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gM,YAAYwB,MAAMC,QAAU,MACrC,GAAC,CAAAvN,IAAA,yBAAAC,MAED,SAAuB2N,GAAQ,IAAAkD,EAAA,KACvBlD,EAAOmD,QAAUnD,EAAOmD,OAAOnQ,OAAS,GACxCgN,EAAOmD,OAAOhP,SAAQ,SAAAiP,GAAS,IAAAC,EACrBC,GAA6B,QAAjBD,EAAAD,EAAMG,mBAAW,IAAAF,GAAK,QAALA,EAAjBA,EAAoB,UAAE,IAAAA,OAAA,EAAtBA,EAAwBG,gBAAiB,GACrDC,EAAQP,EAAK/E,YAAYtI,cAAc,UAADuM,OAAWkB,EAAS,QAChE,GAAIG,EAAO,KAAAC,EACDC,EAAuC,QAA/BD,EAAGD,EAAMG,QAAQ,sBAAc,IAAAF,OAAA,EAA5BA,EAA8B7N,cAAc,sBACzD8N,IACAA,EAASxB,YAAciB,EAAMS,aAC7BF,EAASjE,MAAMC,QAAU,QAEjC,CACJ,IAGAK,EAAO6C,SACP3Q,KAAK2O,aAAab,EAAO6C,SAAS,EAE1C,IAjNJvL,GAAA4F,EAAA9F,EAAAJ,UAAAM,GAAAZ,OAAAC,eAAAS,EAAA,aAAAc,UAAA,IAAAd,EAAA,IAAAA,EAAAE,EAwDKsI,CAyJA,CAhNY,GAmNjB5K,SAASG,iBAAiB,oBAAoB,WAC1C,IAAIoI,CACR","sources":["webpack://AvarnSecurityWeb/./Static/js/analytics-utils.js","webpack://AvarnSecurityWeb/webpack/bootstrap","webpack://AvarnSecurityWeb/webpack/runtime/define property getters","webpack://AvarnSecurityWeb/webpack/runtime/hasOwnProperty shorthand","webpack://AvarnSecurityWeb/./Static/js/MultiSelect/index.js"],"sourcesContent":["class AnalyticsManager {\n constructor() {\n this.initializeDataLayer();\n }\n\n initializeDataLayer() {\n window.dataLayer = window.dataLayer || [];\n }\n\n pushEvent(eventData) {\n if (window.dataLayer) {\n window.dataLayer.push(eventData);\n console.log('DataLayer push completed:', eventData);\n } else {\n console.warn('dataLayer not found - would have pushed:', eventData);\n }\n }\n\n // Form submission tracking\n trackFormSubmission(formType, formData = {}, location = null) {\n // const baseEventData = {\n // 'event': 'form_submission',\n // 'event_category': 'Forms',\n // 'event_label': formType,\n // };\n //\n // this.pushEvent(baseEventData);form/complete\n\n // Track specific form types\n switch (formType) {\n case 'sendmessage':\n this.pushEvent({\n 'event': 'send_message',\n 'name': formData.Name,\n 'phone': formData.PhoneNumber || formData.Phone,\n 'email': formData.Email,\n 'message': formData.Message || formData.Text\n });\n break;\n case 'request_quote':\n this.pushEvent({\n 'event': 'request_quote',\n 'name': formData.Name,\n 'phone': formData.Phone,\n 'email': formData.Email,\n });\n break;\n case 'newsletter':\n this.pushEvent({\n 'event': 'newsletter_signup',\n 'email': formData.Email,\n });\n break;\n case 'contactme':\n this.pushEvent({\n 'event': 'contact_me',\n 'contact': formData.Contact,\n ...(location ? { 'location': location } : {})\n });\n break;\n case 'customer_interest':\n this.pushEvent({\n 'event': 'contact_me',\n 'contact': formData.ContactInfo,\n // 'selected_serviceNames': formData.SelectedNames, renmoved for now, since we use same event as contactme\n // ...(location ? { 'location': location } : {})\n });\n break;\n }\n }\n\n // Click tracking\n trackPhoneClick(phoneNumber) {\n this.pushEvent({\n 'event': 'click_phone',\n 'phone': phoneNumber\n });\n }\n\n trackEmailClick(email) {\n this.pushEvent({\n 'event': 'click_email',\n 'email': email\n });\n }\n\n trackServiceGuideSubmission(formData) {\n const eventData = {\n 'event': 'service_guide_submission',\n 'zipcode': formData.postalCode,\n 'securitysolution': formData.selectedService,\n 'contactinfo': formData.phoneOrEmail\n };\n\n // Add dynamic answer fields from the questions\n formData.answers.forEach(answerObj => {\n const questionField = answerObj.question.formField;\n // Handle multiple answers by joining them with comma\n const answerValue = Array.isArray(answerObj.answer)\n ? answerObj.answer.join(',')\n : answerObj.answer;\n\n eventData[questionField] = answerValue;\n });\n\n this.pushEvent(eventData);\n }\n\n trackCustomEvent(eventType, additionalData = {}) {\n this.pushEvent({\n 'event': eventType,\n ...additionalData\n });\n }\n\n // Setup click handlers\n setupClickTracking() {\n // Phone click tracking\n document.querySelectorAll('a[href^=\"tel:\"]').forEach(link => {\n link.addEventListener('click', () => {\n const phoneNumber = link.href.split(\":\")[1];\n this.trackPhoneClick(phoneNumber);\n });\n });\n\n // Email click tracking\n document.querySelectorAll('a[href^=\"mailto:\"]').forEach(link => {\n link.addEventListener('click', () => {\n const email = link.href.split(\":\")[1];\n this.trackEmailClick(email);\n });\n });\n\n // Custom GA event tracking\n document.querySelectorAll('[data-ga]').forEach(element => {\n const eventType = element.getAttribute('data-ga-event');\n\n if (!eventType) {\n return; // Skip if no event type is specified\n }\n\n if (eventType === 'click_read_details') \n {\n element.addEventListener('click', () => {\n // Find the closest parent section with the correct ID\n const section = element.parentElement.querySelector('#see-more-details');\n // Only add event listener if section exists and is hidden\n if (!section?.classList.contains('hidden')) {\n this.trackCustomEvent(eventType);\n }\n });\n return;\n }\n\n // For all other event types\n element.addEventListener('click', () => {\n this.trackCustomEvent(eventType);\n });\n });\n }\n}\n\n// Export a singleton instance\nexport const analyticsManager = new AnalyticsManager();","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import {analyticsManager} from \"../analytics-utils\";\n\nclass MultiSelect {\n constructor() {\n this.multiselect = document.getElementById('multiselect');\n this.selectedDisplay = this.multiselect.querySelector('.selected-display');\n this.selectedText = this.multiselect.querySelector('.selected-text');\n this.dropdownOptions = this.multiselect.querySelector('.dropdown-options');\n this.allOptions = this.multiselect.querySelectorAll('div[data-type=\"option\"]');\n this.selectedItemsDisplay = document.getElementById('selected-items-display');\n this.hiddenInput = document.getElementById('selected-pages');\n this.hiddenNames = document.getElementById('selected-pages-name');\n\n \n this.formPage = document.getElementById('form-page');\n this.feedbackDiv = this.formPage.querySelector('.feedback');\n this.contactForm = this.formPage.querySelector('form[data-id=\"contact-form\"]');\n this.formType = this.contactForm.dataset.formType;\n this.thankYouPage = document.getElementById('thank-you-page');\n this.selectedPagesInfo = document.getElementById('selected-pages-info');\n this.backButton = document.getElementById('back-button');\n \n this.selectPlaceholder = this.contactForm.dataset.placeholder;\n this.chosenText = this.contactForm.dataset.chosentext;\n \n this.selectedIds = [];\n \n this.setupEventListeners();\n \n }\n \n setupEventListeners() {\n this.contactForm.addEventListener('submit', async (e) => {\n e.preventDefault();\n await this.handleSubmit(e);\n });\n\n this.selectedDisplay.addEventListener('click', () => {\n this.multiselect.classList.toggle('dropdown-open');\n });\n\n document.addEventListener('click', (e) => {\n if (!this.multiselect.contains(e.target)) {\n this.multiselect.classList.remove('dropdown-open');\n }\n });\n \n this.allOptions.forEach(option => {\n option.addEventListener('click', () => this.toggleOption(option));\n });\n\n\n\n this.backButton?.addEventListener('click', () => {\n this.formPage.style.display = 'block';\n this.thankYouPage.style.display = 'none';\n });\n }\n\n\n async handleSubmit(e) {\n this.clearValidationMessages();\n\n try {\n const formDataRaw = new FormData(this.contactForm);\n \n const response = await fetch(this.contactForm.action, {\n method: 'POST',\n body: formDataRaw,\n headers: {\n 'RequestVerificationToken': document.querySelector('input[name=\"__RequestVerificationToken\"]').value\n }\n });\n\n const result = await response.json();\n \n\n if (!response.ok) {\n this.handleValidationErrors(result);\n } else {\n this.handleSuccess(result);\n }\n } catch (error) {\n this.showFeedback(\n this.contactForm.dataset.errorMessage || 'An error occurred while processing your request. Please try again later.',\n false\n );\n } finally {\n // this.setLoadingState(false);\n }\n }\n\n handleSuccess(result) {\n if (result.Success) {\n this.contactForm.reset();\n this.showFeedback(result.Message, true);\n\n // Execute form-specific callback if it exists\n if (this.formType) {\n analyticsManager.trackFormSubmission(this.formType, result.FormData, '');\n }\n\n this.showThankYouPage();\n } else {\n this.showFeedback(result.Message, false);\n }\n }\n \n showThankYouPage() {\n this.formPage.style.display = 'none';\n this.thankYouPage.style.display = 'block';\n\n const selectedPagesInfoChildren = Array.from(this.selectedPagesInfo.children);\n selectedPagesInfoChildren.forEach(child => {\n if (this.selectedIds.includes(child.dataset.epiId)) {\n child.classList.remove('!hidden');\n }\n });\n }\n\n toggleOption(option) {\n option.classList.toggle('option-selected');\n const checkbox = option.querySelector('div[data-type=\"checkbox\"]');\n checkbox.classList.toggle('flex');\n checkbox.classList.toggle('hidden');\n this.updateSelectedPages();\n }\n\n updateSelectedPages() {\n const selectedOptions = Array.from(this.dropdownOptions.querySelectorAll('.option-selected'));\n const selectedIds = selectedOptions.map(opt => opt.dataset.id);\n const selectedNames = selectedOptions.map(opt => opt.dataset.name);\n\n this.hiddenInput.value = JSON.stringify(selectedIds);\n this.hiddenNames.value = JSON.stringify(selectedNames);\n \n this.selectedIds = selectedIds;\n\n this.selectedText.textContent = selectedOptions.length\n ? `${selectedOptions.length} ${this.chosenText}`\n : this.selectPlaceholder;\n\n this.selectedItemsDisplay.innerHTML = '';\n selectedOptions.forEach(opt => {\n const pill = document.createElement('div');\n pill.className = 'bg-blue-100 text-blue-800 text-sm px-2 py-1 rounded-full flex items-center';\n pill.innerHTML = `\n \n `;\n\n pill.querySelector('button').addEventListener('click', (e) => {\n const optionToDeselect = this.dropdownOptions.querySelector(`[data-id=\"${e.currentTarget.dataset.id}\"]`);\n this.toggleOption(optionToDeselect);\n });\n\n this.selectedItemsDisplay.appendChild(pill);\n });\n }\n\n clearValidationMessages() {\n this.contactForm.querySelectorAll('.validation-failed').forEach(div => {\n div.style.display = 'none';\n });\n this.feedbackDiv.style.display = 'none';\n }\n\n showFeedback(message, isSuccess) {\n const content = this.feedbackDiv.querySelector('.content');\n if (content) {\n content.textContent = message;\n }\n\n const icon = this.feedbackDiv.querySelector('.icon');\n\n if (isSuccess) {\n icon.classList.remove('text-red-800');\n icon.classList.remove(\"icon-close\");\n icon.classList.add(\"icon-checkmark\");\n } else {\n icon.classList.add('text-red-800');\n icon.classList.add(\"icon-close\");\n icon.classList.remove(\"icon-checkmark\");\n }\n\n this.feedbackDiv.classList.toggle('bg-foreground-light', isSuccess);\n this.feedbackDiv.classList.toggle('bg-red-800', !isSuccess);\n this.feedbackDiv.style.display = 'flex';\n }\n\n handleValidationErrors(result) {\n if (result.Errors && result.Errors.length > 0) {\n result.Errors.forEach(error => {\n const fieldName = error.MemberNames?.[0]?.toLowerCase() || '';\n const input = this.contactForm.querySelector(`[name=\"${fieldName}\"i]`);\n if (input) {\n const errorDiv = input.closest('.form-group')?.querySelector('.validation-failed');\n if (errorDiv) {\n errorDiv.textContent = error.ErrorMessage;\n errorDiv.style.display = 'block';\n }\n }\n });\n }\n\n if (result.message) {\n this.showFeedback(result.message, false);\n }\n }\n}\n\ndocument.addEventListener('DOMContentLoaded', function () {\n new MultiSelect();\n});"],"names":["analyticsManager","AnalyticsManager","_classCallCheck","this","initializeDataLayer","key","value","window","dataLayer","eventData","push","console","log","warn","formType","formData","arguments","length","undefined","location","pushEvent","Name","PhoneNumber","Phone","Email","Message","Text","_objectSpread","Contact","ContactInfo","phoneNumber","email","postalCode","selectedService","phoneOrEmail","answers","forEach","answerObj","questionField","question","formField","answerValue","Array","isArray","answer","join","eventType","additionalData","_this","document","querySelectorAll","link","addEventListener","href","split","trackPhoneClick","trackEmailClick","element","getAttribute","trackCustomEvent","section","parentElement","querySelector","classList","contains","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","d","definition","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","_regeneratorRuntime","e","t","r","n","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","asyncGeneratorStep","_asyncToGenerator","apply","_next","_throw","_defineProperties","_toPropertyKey","toPrimitive","String","_toPrimitive","MultiSelect","multiselect","getElementById","selectedDisplay","selectedText","dropdownOptions","allOptions","selectedItemsDisplay","hiddenInput","hiddenNames","formPage","feedbackDiv","contactForm","dataset","thankYouPage","selectedPagesInfo","backButton","selectPlaceholder","placeholder","chosenText","chosentext","selectedIds","setupEventListeners","_this$backButton","_ref","_callee","_context","preventDefault","handleSubmit","_x","toggle","target","remove","option","toggleOption","style","display","_handleSubmit","_callee2","formDataRaw","response","result","_context2","clearValidationMessages","FormData","fetch","action","body","headers","json","ok","handleSuccess","handleValidationErrors","t0","showFeedback","errorMessage","_x2","Success","trackFormSubmission","showThankYouPage","_this2","from","children","child","includes","epiId","checkbox","updateSelectedPages","_this3","selectedOptions","map","opt","id","selectedNames","JSON","stringify","textContent","concat","innerHTML","pill","createElement","className","optionToDeselect","currentTarget","appendChild","div","message","isSuccess","content","icon","add","_this4","Errors","error","_error$MemberNames","fieldName","MemberNames","toLowerCase","input","_input$closest","errorDiv","closest","ErrorMessage"],"sourceRoot":""}