{"version":3,"file":"lumos-chat-button.js","sources":["lumos-chat-button.js"],"sourcesContent":["var setChatService;\nvar chatService = \"\";\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n var zipRegion = 0;\n var chatOpen = false;\n\n // sessionStorage.setItem(\n // \"lumosZipResult\",\n // '{\"Status\":\"success\",\"Message\":\"\",\"Data\":[{\"Zip\":23323,\"Region\":1,\"Description\":\"New Stack\"}]}'\n // );\n\n setChatService = function () {\n loadFive9Chat()\n .then(openFive9Chat)\n .catch((e) => {\n console.log(\"Five9ChatPlugin failed to load\");\n console.log(e);\n });\n };\n setChatService();\n\n function setZip(zip) {\n return new Promise((resolve, reject) => {\n // console.log(\"setZip \" + zip);\n var params = \"action=get_region_from_zip&zip=\" + zip;\n var url = \"/wp-content/themes/lumos-tidewater/api_helper.php?\" + params;\n var xhr = new XMLHttpRequest();\n xhr.open(\"GET\", url, true);\n xhr.onreadystatechange = function () {\n if (xhr.readyState == 4) {\n if (xhr.status == 200) {\n var zipResult = xhr.responseText;\n var resObject = zipResult;\n if (zipResult.substring(0, 1) != \"{\") {\n reject();\n } else {\n resObject = JSON.parse(resObject);\n if (resObject[\"Status\"] == \"success\") {\n // sessionStorage.setItem(\n // \"lumosZipResult\",\n // JSON.stringify(resObject)\n // );\n Cookies.set(\n \"lumosZipResult\",\n JSON.stringify(resObject),\n { expires: 5 } // Expires in 5 days\n );\n checkAccountZipInput();\n } else {\n console.log(\"res objectstatus not good\");\n console.log(zipResult);\n document\n .querySelector(\"#lumosZipModal .zip-not-available\")\n .classList.add(\"d-none\");\n document\n .querySelector(\"#lumosZipModal #zipCode\")\n .classList.add(\"is-invalid\");\n document\n .querySelector(\"#validationZipFormat\")\n .classList.add(\"d-none\");\n document\n .querySelector(\"#lumosZipModal .zip-no-service\")\n .classList.remove(\"d-none\");\n document\n .querySelector(\"#lumosZipModal .modal-dialog\")\n .setAttribute(\"style\", \"max-width: 385px!important;\");\n document\n .querySelector(\"#lumosZipModal .modal-body\")\n .setAttribute(\"style\", \"height: auto;\");\n }\n resolve();\n }\n } else {\n console.log(\"setZip fail\");\n console.log(xhr.responseText);\n reject();\n }\n }\n };\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n xhr.send();\n });\n }\n\n function loadSFChat() {\n /*\n Salesforce Chat\n refer to https://developer.salesforce.com/docs/atlas.en-us.244.0.snapins_web_dev.meta/snapins_web_dev/snapins_web_overview.htm\n */\n envConsoleLog(\"loadSFChat\");\n chatService = \"sf\";\n return new Promise((resolve, reject) => {\n // console.log(\"loadSFChat\");\n var script = document.createElement(\"script\");\n script.type = \"text/javascript\";\n script.src =\n \"https://nslumoscomm111.my.salesforce.com/embeddedservice/5.0/esw.min.js\";\n\n script.onload = function () {\n var initESW = function (gslbBaseURL) {\n embedded_svc.settings.displayHelpButton = true; //Or false\n embedded_svc.settings.language = \"\"; //For example, enter 'en' or 'en-US'\n // embedded_svc.settings.defaultMinimizedText = \"...\"; //(Defaults to Chat with an Expert)\n // embedded_svc.settings.disabledMinimizedText = \"...\"; //(Defaults to Agent Offline)\n //embedded_svc.settings.loadingText = ''; //(Defaults to Loading)\n //embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)\n // Settings for Chat\n //embedded_svc.settings.directToButtonRouting = function(prechatFormData) { // Dynamically changes the button ID based on what the visitor enters in the pre-chat form. // Returns a valid button ID. //};\n //embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields\n //embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId\n //embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)\n embedded_svc.settings.enabledFeatures = [\"LiveAgent\"];\n embedded_svc.settings.entryFeature = \"LiveAgent\";\n embedded_svc.settings.widgetHeight = \"451px\";\n embedded_svc.settings.widgetWidth = \"272px\";\n // embedded_svc.settings.smallCompanyLogoImgURL = \"/wp-content/themes/lumos-tidewater/assets/images/icons/chat-icon.svg\";\n embedded_svc.init(\n \"https://nslumoscomm111.my.salesforce.com\",\n \"https://nslumoscomm111.my.site.com/myaccount\",\n gslbBaseURL,\n \"00D6t000000R6dc\",\n \"Chat_Team\",\n {\n baseLiveAgentContentURL:\n \"https://c.la4-c1cs-ia4.salesforceliveagent.com/content\",\n deploymentId: \"5726t000000GnwT\",\n buttonId: \"5736t000000Go6S\",\n baseLiveAgentURL:\n \"https://d.la4-c1cs-ia4.salesforceliveagent.com/chat\",\n eswLiveAgentDevName: \"Chat_Team\",\n isOfflineSupportEnabled: true,\n }\n );\n\n envConsoleLog(embedded_svc.settings);\n };\n if (!window.embedded_svc) {\n var s = document.createElement(\"script\");\n s.setAttribute(\n \"src\",\n \"https://nslumoscomm111.my.salesforce.com/embeddedservice/5.0/esw.min.js\"\n );\n s.onload = function () {\n initESW(null);\n resolve();\n };\n document.body.appendChild(s);\n } else {\n initESW(\"https://service.force.com\");\n resolve();\n }\n };\n document.body.appendChild(script);\n\n envConsoleLog(\"Salesforce Chat loaded\");\n });\n }\n\n function loadFive9Chat() {\n chatService = \"f9\";\n return new Promise((resolve, reject) => {\n // console.log(\"loadFive9Chat\");\n var script = document.createElement(\"script\");\n script.type = \"text/javascript\";\n script.src =\n \"https://psapps006.scl.five9.com/ps-live-chat/Five9ChatPlugin.js\";\n\n script.onload = function () {\n var profileList = isChatActive();\n var currentURI = window.location.pathname;\n\n if(profileList == false){\n return;\n }\n\n if (currentURI.includes(\"business\")) {\n profileList = profileList.filter(\n (profile) => profile !== \"Residential Sales\"\n );\n } else {\n profileList = profileList.filter(\n (profile) => profile !== \"Business Sales\"\n );\n }\n\n var profileObj = [{ label: \"\", value: \"\" }];\n profileList.forEach((profile) => {\n profileObj.push({\n label: profile,\n value: profile,\n });\n });\n\n var profileListJSON = JSON.stringify(profileObj);\n var siteUrl = window.location.protocol + \"//\" + window.location.host;\n\n let cssLink =\n \"/wp-content/themes/lumos-tidewater/assets/css/five9-chat.css\";\n if (window.innerWidth < 460) {\n cssLink =\n \"/wp-content/themes/lumos-tidewater/assets/css/five9-chat-mobile.css\";\n }\n\n jQuery(document).ready(function ($) {\n let options = {\n appId: \"NorthState\",\n region: \"USA\",\n campaignName: \"Live Chat\",\n showEndButton: true,\n endButtonText: \"End Chat\",\n minimizeOnEnd: true,\n titleBackgroundColor: \"#400080\",\n buttonTextColor: \"#fff\",\n buttonBackgroundColor: \"#B003D3\",\n miniSubmitColor: \"#400080\",\n waitingMessage:\n \"You are the {{pos}}{{nth}} in queue with a {{wait}} minute wait. Please hold for the next team member to assist you...\",\n endConfirmation: true,\n miniForm: true,\n launcherButton:\n siteUrl +\n \"/wp-content/themes/lumos-tidewater/assets/images/icons/chat-icon.svg\",\n css: siteUrl + cssLink,\n closeButton:\n siteUrl +\n \"/wp-content/themes/lumos-tidewater/assets/images/icons/close-line-icon.svg\",\n minimizeButton:\n siteUrl +\n \"/wp-content/themes/lumos-tidewater/assets/images/icons/close-line-icon.svg\",\n\n title: \"Lumos Live Chat\",\n subtitle: \"Lumos Live Chat\",\n formData: [\n {\n type: \"select\",\n formType: \"both\",\n required: true,\n label: \"How Can We Help You\",\n cav: \"Chat.Category\",\n pos: \"\",\n value: \"\",\n readOnly: false,\n options: JSON.parse(profileListJSON),\n },\n {\n label: \"Your Name\",\n cav: \"contact.name\",\n formType: \"both\",\n type: \"text\",\n required: true,\n },\n {\n label: \"Your Email Address\",\n cav: \"contact.email\",\n formType: \"both\",\n type: \"email\",\n required: true,\n },\n {\n type: \"select\",\n formType: \"both\",\n required: true,\n label: \"Your Location (State)\",\n cav: \"Chat.Location\",\n pos: \"\",\n options: [\n {\n label: \"\",\n value: \"\",\n },\n {\n label: \"NC\",\n value: \"NC\",\n },\n {\n label: \"VA\",\n value: \"VA\",\n },\n {\n label: \"SC\",\n value: \"SC\",\n },\n {\n label: \"Other\",\n value: \"SC\",\n },\n ],\n },\n {\n label: \"Question\",\n cav: \"Question\",\n formType: \"both\",\n type: \"textarea\",\n required: true,\n },\n {\n label: \"Subject\",\n cav: \"Subject\",\n formType: \"email\",\n type: \"text\",\n required: true,\n },\n ],\n surveyMsg: \"How was your experience today?\",\n surveyUrl: \"https://www.lumosfiber.com/\",\n timezone: \"America/New_York\",\n miniSubmitBackgroundColorCompleted: \"#ffffff\",\n };\n Five9ChatPlugin(options);\n });\n // console.log(\"Five9ChatPlugin loaded\");\n resolve();\n };\n script.onerror = function () {\n console.log(\"Five9ChatPlugin failed to load\");\n reject();\n };\n document.body.appendChild(script);\n });\n }\n\n function openFive9Chat() {\n // console.log(\"openFive9Chat\");\n $(\".full-loader\").addClass(\"hide\");\n function attemptToClickButton() {\n var $button = $(\"#five9OpenChatButton\");\n if (chatOpen) {\n if ($button.length) {\n $button.click();\n // console.log(\"Button clicked\");\n } else {\n console.log(\"Button not yet available, retrying...\");\n setTimeout(attemptToClickButton, 500); // Check again in 500 milliseconds\n }\n }\n }\n attemptToClickButton();\n }\n\n function unloadChatService() {\n // console.log(\"unloadChatService\");\n if (\n chatService == \"sf\" &&\n (zipRegion != 1 ||\n (localStorage.getItem(\"lumosMixedAccount\") &&\n localStorage.getItem(\"lumosMixedAccount\") == true))\n ) {\n closeSFChat();\n } else if (\n chatService == \"f9\" &&\n zipRegion != 2 &&\n zipRegion != 3 &&\n localStorage.getItem(\"lumosMixedAccount\") &&\n localStorage.getItem(\"lumosMixedAccount\") != true\n ) {\n closeFive9Chat();\n }\n }\n\n function openSFChat() {\n $(\".full-loader\").addClass(\"hide\");\n $(\"#lumosZipModal\").modal(\"hide\");\n if (chatOpen) {\n // console.log(\"openSFChat\");\n function attemptToStartChat() {\n if (embedded_svc && embedded_svc.liveAgentAPI) {\n // console.log(embedded_svc.liveAgentAPI);\n // console.log(embedded_svc);\n embedded_svc.bootstrapEmbeddedService();\n } else {\n console.log(\"Salesforce chat is not yet initialized\");\n setTimeout(attemptToStartChat, 500); // Check again in 500 milliseconds\n }\n }\n attemptToStartChat();\n\n // console.log(embedded_svc);\n } else {\n $(\".sf-chat-button\").click(() => {\n embedded_svc.bootstrapEmbeddedService();\n });\n $(\".sf-chat-button\").removeClass(\"d-none\");\n }\n }\n function getChatSchedule() {\n if (typeof lumosChatData !== \"undefined\") {\n // Replace with the logic to set the time zone if needed\n const schedule = [];\n // const chatSchedule = get_field(\"chat_schedule\", \"option\"); // Replace with JavaScript logic\n const chatSchedule = lumosChatData.chat_schedule;\n\n if (chatSchedule) {\n chatSchedule.forEach((cs) => {\n schedule.push({\n day: cs.day,\n start: new Date(\"1970-01-01T\" + cs.start + \"Z\").getTime(),\n end: new Date(\"1970-01-01T\" + cs.end + \"Z\").getTime(),\n profiles: cs.available_profiles,\n });\n });\n }\n\n return schedule;\n }\n }\n function isChatActive() {\n const options = {\n timeZone: \"America/New_York\",\n hour12: false,\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n };\n const currentTime = new Date().toLocaleTimeString(\"en-US\", options);\n const currentTimestamp = new Date(\n \"1970-01-01T\" + currentTime + \"Z\"\n ).getTime();\n const currentDay = new Date().toLocaleDateString(\"en-US\", {\n weekday: \"short\",\n });\n\n // if (!getThemeMod(\"show_chat_button\")) {\n // return \"\";\n // }\n\n const chatActive = [];\n const schedule = getChatSchedule();\n\n if (schedule) {\n schedule.forEach((sched) => {\n if (sched.day === currentDay) {\n const startTimestamp = sched.start;\n const endTimestamp = sched.end;\n if (\n currentTimestamp >= startTimestamp &&\n currentTimestamp <= endTimestamp\n ) {\n chatActive.push(sched.profiles);\n }\n }\n });\n\n return chatActive;\n }else{\n return false;\n }\n }\n function closeSFChat() {\n // console.log(\"closeSFChat\");\n var sfScript = document.querySelectorAll(\n \".embeddedServiceSidebar, .embeddedServiceHelpButton, .help-button\"\n );\n if (sfScript) sfScript.forEach((script) => script.classList.add(\"d-none\"));\n\n //attempt to open hidden alternative chat service\n try {\n var five9Script = document.querySelectorAll(\n \"#five9OpenChatButton, #five9LiveChatWidget\"\n );\n if (five9Script)\n five9Script.forEach((script) => script.classList.remove(\"d-none\"));\n } catch (e) {}\n }\n\n function closeFive9Chat() {\n var five9Script = document.querySelectorAll(\n \"#five9OpenChatButton, #five9LiveChatWidget\"\n );\n if (five9Script)\n five9Script.forEach((script) => script.classList.add(\"d-none\"));\n\n //attempt to open hidden alternative chat service\n try {\n var sfScript = document.querySelectorAll(\n \".embeddedServiceSidebar, .embeddedServiceHelpButton, .help-button\"\n );\n if (sfScript)\n sfScript.forEach((script) => script.classList.remove(\"d-none\"));\n } catch (e) {}\n }\n\n //prevent form submission\n var modalZipForm = document.getElementById(\"modalZipForm\");\n\n // if (modalZipForm) {\n // modalZipForm.addEventListener(\"submit\", function (e) {\n // e.preventDefault();\n // e.stopPropagation();\n // });\n // }\n\n // Chat Button Click Handler\n // var zipModalButton = document.querySelector(\"#lumosZipModal .zip-button\");\n // if (zipModalButton) {\n // zipModalButton.addEventListener(\"click\", function (e) {\n // e.preventDefault();\n // e.stopPropagation();\n // // console.log(\"Chat Button Clicked\");\n // var zipCode = document.querySelector(\"#lumosZipModal #zipCode\").value;\n\n // if (!zipCode.match(/^\\d{5}$/)) {\n // document\n // .querySelector(\"#lumosZipModal #zipCode\")\n // .classList.add(\"is-invalid\");\n // document\n // .querySelector(\"#validationZipFormat\")\n // .classList.remove(\"d-none\");\n // document\n // .querySelector(\"#lumosZipModal .zip-no-service\")\n // .classList.add(\"d-none\");\n // document\n // .querySelector(\"#lumosZipModal .zip-not-available\")\n // .classList.add(\"d-none\");\n // document\n // .querySelector(\"#lumosZipModal .modal-dialog\")\n // .setAttribute(\"style\", \"max-width: 315px!important;\");\n // document\n // .querySelector(\"#lumosZipModal .modal-body\")\n // .setAttribute(\"style\", \"height: auto;\");\n // document\n // .querySelector(\"#lumosZipModal .modal-text\")\n // .classList.add(\"d-none\");\n // return false;\n // }\n // document\n // .querySelector(\"#lumosZipModal #zipCode\")\n // .classList.remove(\"is-invalid\");\n\n // $(\".full-loader\").removeClass(\"hide\");\n // setZip(zipCode)\n // .then(() => {\n // chatOpen = true;\n // setChatService();\n // })\n // .catch((e) => {\n // console.log(e);\n // document\n // .querySelector(\"#lumosZipModal #zipCode\")\n // .classList.add(\"is-invalid\");\n // document\n // .querySelector(\"#validationZipFormat\")\n // .classList.add(\"d-none\");\n // document\n // .querySelector(\"#lumosZipModal .zip-no-service\")\n // .classList.add(\"d-none\");\n // document\n // .querySelector(\"#lumosZipModal .zip-not-available\")\n // .classList.remove(\"d-none\");\n // document\n // .querySelector(\"#lumosZipModal .modal-dialog\")\n // .setAttribute(\"style\", \"max-width: 385px!important;\");\n // document\n // .querySelector(\"#lumosZipModal .modal-body\")\n // .setAttribute(\"style\", \"height: auto;\");\n // document\n // .querySelector(\"#lumosZipModal .modal-text\")\n // .classList.remove(\"d-none\");\n // $(\".full-loader\").addClass(\"hide\");\n // });\n\n // return false;\n // });\n // }\n\n // var zipModal = document.getElementById(\"lumosZipModal\");\n // zipModal.addEventListener(\"show.bs.modal\", function () {\n // console.log(\"Modal is opening\");\n // document.querySelector(\".lumos-chat-button\").classList.add(\"d-none\");\n // });\n // zipModal.addEventListener(\"hide.bs.modal\", function () {\n // document.querySelector(\".lumos-chat-button\").classList.remove(\"d-none\");\n // });\n});\n"],"names":["setChatService","chatService","document","addEventListener","chatOpen","openFive9Chat","$","addClass","attemptToClickButton","$button","length","click","setTimeout","Promise","resolve","reject","script","createElement","type","src","onload","profileList","currentTime","Date","toLocaleTimeString","timeZone","hour12","hour","minute","second","currentTimestamp","getTime","currentDay","toLocaleDateString","weekday","chatActive","schedule","lumosChatData","chatSchedule","chat_schedule","forEach","push","day","cs","start","end","profiles","available_profiles","startTimestamp","endTimestamp","sched","currentURI","window","location","pathname","includes","filter","profile","profileObj","label","value","profileListJSON","JSON","stringify","siteUrl","protocol","host","let","cssLink","innerWidth","jQuery","ready","options","appId","region","campaignName","showEndButton","endButtonText","minimizeOnEnd","titleBackgroundColor","buttonTextColor","buttonBackgroundColor","miniSubmitColor","waitingMessage","endConfirmation","miniForm","launcherButton","css","closeButton","minimizeButton","title","subtitle","formData","formType","required","cav","pos","readOnly","parse","surveyMsg","surveyUrl","timezone","miniSubmitBackgroundColorCompleted","Five9ChatPlugin","onerror","body","appendChild","then","catch","getElementById"],"mappings":"AAAA,IAAIA,eACAC,YAAc,GAElBC,SAASC,iBAAiB,mBAAoB,WAC5C,IACIC,EAAW,CAAA,EA6Tf,SAASC,IAEPC,EAAE,cAAc,EAAEC,SAAS,MAAM,EACjC,SAASC,IACP,IAAIC,EAAUH,EAAE,sBAAsB,EAClCF,IACEK,EAAQC,OACVD,EAAQE,MAAM,EAIdC,WAAWJ,EAAsB,GAAG,EAG1C,EACqB,CACvB,EAtUAR,eAAiB,WAoJfC,YAAc,KACP,IAAIY,QAAQ,CAACC,EAASC,KAE3B,IAAIC,EAASd,SAASe,cAAc,QAAQ,EAC5CD,EAAOE,KAAO,kBACdF,EAAOG,IACL,kEAEFH,EAAOI,OAAS,WACd,IAAIC,GA6OV,KACE,IAOMC,GAAc,IAAIC,MAAOC,mBAAmB,QAPlC,CACdC,SAAU,mBACVC,OAAQ,CAAA,EACRC,KAAM,UACNC,OAAQ,UACRC,OAAQ,SACV,CACkE,EAC5DC,EAAmB,IAAIP,KAC3B,cAAgBD,EAAc,GAChC,EAAES,QAAQ,EACJC,GAAa,IAAIT,MAAOU,mBAAmB,QAAS,CACxDC,QAAS,OACX,CAAC,EAMKC,EAAa,GACbC,GA1CR,KACE,GAA6B,aAAzB,OAAOC,cAA+B,CAExC,IAAMD,EAAW,GAEjB,IAAME,EAAeD,cAAcE,cAanC,OAXID,GACFA,EAAaE,QAAQ,IACnBJ,EAASK,KAAK,CACZC,IAAKC,EAAGD,IACRE,MAAO,IAAIrB,KAAK,cAAgBoB,EAAGC,MAAQ,GAAG,EAAEb,QAAQ,EACxDc,IAAK,IAAItB,KAAK,cAAgBoB,EAAGE,IAAM,GAAG,EAAEd,QAAQ,EACpDe,SAAUH,EAAGI,kBACf,CAAC,CACH,CAAC,EAGIX,CACT,CACF,GAsBm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