{ "version": 3, "sources": ["../../views/main.ts"], "sourcesContent": ["const setMobileActiveStateListener = () => {\n // Get the hamburger button element\n const hamburger = document.getElementById('hamburger') as HTMLButtonElement\n\n const mm_toggle_elements = [\n document.body,\n document.querySelector('aside.mobile_controls') as HTMLElement,\n document.querySelector('nav.mobile') as HTMLElement,\n ]\n\n // Add click event listener to the hamburger button\n hamburger.addEventListener('click', _ => {\n // Toggle the 'is-active' class for each element\n hamburger.classList.toggle('is-active')\n mm_toggle_elements.forEach(\n el =>\n (el.dataset.mmActive =\n el.dataset.mmActive === 'true' ? 'false' : 'true')\n )\n })\n}\n\n// const setCopyrights = () => {\n// // Get all elements with 'data-copyright' attribute\n// const copyrights: NodeListOf =\n// document.querySelectorAll('[data-copyright]')\n\n// // Set the inner text of each copyright element to the COPYRIGHT value from the environment\n// copyrights.forEach((el: HTMLElement) => {\n// el.innerText = env.COPYRIGHT\n// })\n// }\n\nconst setPhoneCallListener = () => {\n // Get all elements with 'data-phone-number' attribute\n const callButtons: NodeListOf = document.querySelectorAll(\n '[data-phone-number]'\n )\n\n // Add a click event listener to each button\n callButtons.forEach((button: HTMLElement) => {\n button.addEventListener('click', _ => {\n // Get the phone number from the 'data-phone-number' attribute\n const phoneNumber = button.getAttribute('data-phone-number')\n\n // Call the phone number\n window.open(`tel:${phoneNumber}`)\n })\n })\n}\n\nconst isLongTestimonial = () => {\n const max_length = 180\n\n const review = document.querySelector('footer blockquote.testimonial')\n const size = review?.getAttribute('data-count')\n\n if (size && parseInt(size) > max_length) review?.classList.add('long')\n}\n\n;(() => {\n // Set the mobile active state listener\n setMobileActiveStateListener()\n\n // Set the COPYRIGHT value from the environment to each element with 'data-copyright' attribute\n // setCopyrights()\n\n // Set the phone call listener for each element with 'data-phone-number' attribute\n setPhoneCallListener()\n\n // Adjust Footer Testimonial CSS\n isLongTestimonial()\n\n // Set the focal point of each image\n // setImageFocalPoints()\n})()\n"], "mappings": "mBAAA,IAAMA,EAA+B,IAAM,CAEvC,IAAMC,EAAY,SAAS,eAAe,WAAW,EAE/CC,EAAqB,CACvB,SAAS,KACT,SAAS,cAAc,uBAAuB,EAC9C,SAAS,cAAc,YAAY,CACvC,EAGAD,EAAU,iBAAiB,QAASE,GAAK,CAErCF,EAAU,UAAU,OAAO,WAAW,EACtCC,EAAmB,QACfE,GACKA,EAAG,QAAQ,SACRA,EAAG,QAAQ,WAAa,OAAS,QAAU,MACvD,CACJ,CAAC,CACL,EAaMC,EAAuB,IAAM,CAEc,SAAS,iBAClD,qBACJ,EAGY,QAASC,GAAwB,CACzCA,EAAO,iBAAiB,QAASH,GAAK,CAElC,IAAMI,EAAcD,EAAO,aAAa,mBAAmB,EAG3D,OAAO,KAAK,OAAOC,CAAW,EAAE,CACpC,CAAC,CACL,CAAC,CACL,EAEMC,EAAoB,IAAM,CAG5B,IAAMC,EAAS,SAAS,cAAc,+BAA+B,EAC/DC,EAAOD,GAAQ,aAAa,YAAY,EAE1CC,GAAQ,SAASA,CAAI,EAAI,KAAYD,GAAQ,UAAU,IAAI,MAAM,CACzE,EAIIT,EAA6B,EAM7BK,EAAqB,EAGrBG,EAAkB", "names": ["setMobileActiveStateListener", "hamburger", "mm_toggle_elements", "_", "el", "setPhoneCallListener", "button", "phoneNumber", "isLongTestimonial", "review", "size"] }