{ "version": 3, "sources": ["../src/js/form-thank-you.js", "../src/js/terms.js", "../src/js/nav.js", "../src/js/index.js"], "sourcesContent": ["document.addEventListener('DOMContentLoaded', function(e) {\n let forms = document.querySelectorAll('form#contact-form,form#request-maintenace-form');\n if (forms.length > 0) {\n forms.forEach(form => {\n var status = form.querySelector('.form-status');\n async function handleSubmit(event) {\n event.preventDefault();\n let statusHead = status.querySelector('h6');\n let statusBody = status.querySelector('p');\n let button = form.querySelector('input[type=submit]');\n var data = new FormData(event.target);\n button.value = \"Submitting...\";\n fetch(event.target.action, {\n method: form.method,\n body: data,\n headers: {\n 'Accept': 'application/json'\n }\n }).then(response => {\n status.classList.add('open');\n statusHead.innerText = \"Thank you!\";\n statusBody.innerText = \"We will be in touch soon regarding your submission.\";\n form.reset()\n button.value = \"Submitted!\";\n }).catch(error => {\n status.classList.add('open');\n statusHead.innerText = \"Oops!\"\n statusBody.innerText = \"There was a problem submitting your form. Please try again, or reach out to us for assistance if the problem persists.\"\n button.value = \"Submit\";\n });\n }\n\n form.addEventListener(\"submit\", handleSubmit);\n\n status.addEventListener('click', function(e) {\n if (e.target.closest('.card') == null) {\n status.classList.remove('open');\n }\n })\n })\n }\n})\n", "window.addEventListener('DOMContentLoaded', ()=>{\n const maintenaceForm = document.querySelector('#request-maintenace-form')\n if(maintenaceForm){\n const arrowDown = maintenaceForm.querySelector('.arrow-down')\n const termsContent = maintenaceForm.querySelector('.terms-content')\n if(termsContent){\n termsContent.setAttribute('style', `--tooltip-height: ${termsContent.scrollHeight}px`)\n\n window.addEventListener('resize', ()=>{\n termsContent.style.height = 'auto'\n termsContent.setAttribute('style', `--tooltip-height: ${termsContent.scrollHeight}px`)\n })\n\n if(arrowDown){\n arrowDown.addEventListener('click', ()=>{\n termsContent.classList.toggle('active')\n })\n }\n }\n }\n})", "addEventListener('DOMContentLoaded', () => {\n\tinitMobileNavMenu()\n\tinitNavHeight()\n})\n\nfunction initNavHeight() {\n\tconst obs = new ResizeObserver((entries) => {\n\t\t// console.log(entries)\n\n\t\tconst heights = entries.flatMap((entry) => entry.borderBoxSize.map((size) => size.blockSize) ?? 0)\n\n\t\tconst navHeight = Math.max(...heights)\n\t\tif (navHeight) {\n\t\t\tdocument.documentElement.style.setProperty('--nav-height', `${navHeight}px`)\n\t\t}\n\t})\n\n\tobs.observe(document.querySelector('header.tablet'))\n\tobs.observe(document.querySelector('header.desktop'))\n}\n\nfunction initMobileNavMenu() {\n\tconst targetBurger = document.querySelector('.target-burger')\n\tconst nav = document.querySelector('.main-nav')\n\tconst container = document.querySelector('.container')\n\n\ttargetBurger.addEventListener('click', (e) => {\n\t\te.preventDefault()\n\n\t\tconst state = !targetBurger.classList.contains('toggled')\n\n\t\ttargetBurger.classList.toggle('toggled', state)\n\t\tnav.classList.toggle('toggled', state)\n\t\tcontainer.classList.toggle('toggled', state)\n\t})\n}\n", "import './form-thank-you'\nimport './terms'\nimport './nav'\n\naddEventListener('DOMContentLoaded', () => {\n\tAOS.init({\n\t\tstartEvent: 'DOMContentLoaded',\n\t\tonce: true,\n\t\tduration: 1800,\n\t})\n})\n"], "mappings": "MAAA,SAAS,iBAAiB,mBAAoB,SAAS,EAAG,CACtD,GAAI,GAAQ,SAAS,iBAAiB,kDACtC,AAAI,EAAM,OAAS,GACf,EAAM,QAAQ,GAAQ,CAClB,GAAI,GAAS,EAAK,cAAc,gBAChC,iBAA4B,EAAO,CAC/B,EAAM,iBACN,GAAI,GAAa,EAAO,cAAc,MAClC,EAAa,EAAO,cAAc,KAClC,EAAS,EAAK,cAAc,sBAChC,GAAI,GAAO,GAAI,UAAS,EAAM,QAC9B,EAAO,MAAQ,gBACf,MAAM,EAAM,OAAO,OAAQ,CACzB,OAAQ,EAAK,OACb,KAAM,EACN,QAAS,CACL,OAAU,sBAEb,KAAK,GAAY,CAClB,EAAO,UAAU,IAAI,QACrB,EAAW,UAAY,aACvB,EAAW,UAAY,sDACvB,EAAK,QACL,EAAO,MAAQ,eACd,MAAM,GAAS,CAChB,EAA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