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,EAAY,gBAAA,CAAiB,QAAS,WACpC,EAAa,SAAA,CAAU,MAAA,CAAO,0BAC9B,IAAI,CAAC,SAAA,CAAU,MAAA,CAAO,0BACxB,GAEA,EAAc,OAAA,CAAQ,SAAU,CAAQ,EACtC,EAAS,gBAAA,CAAiB,QAAS,SAAU,CAAC,EAC5C,EAAc,OAAA,CAAQ,SAAU,CAAE,EAChC,EAAG,SAAA,CAAU,MAAA,CAAO,6BACtB,GACA,EAAE,MAAA,CAAO,SAAA,CAAU,GAAA,CAAI,8BACvB,EAAY,SAAA,CAAY,IAAI,CAAC,SAA7B,CACA,EAAc,KAAA,CAAQ,IAAI,CAAC,OAAA,CAAQ,KAAnC,CACA,EAAa,SAAA,CAAU,MAAA,CAAO,yBAChC,EACF,GAEA,SAAS,gBAAA,CAAiB,QAAS,SAAU,CAAC,EACxC,EAAE,MAAA,GAAW,IACf,EAAY,SAAA,CAAU,MAAA,CAAO,2BAC7B,EAAa,SAAA,CAAU,MAAA,CAAO,0BAElC,GAEA,SAAS,gBAAA,CAAiB,UAAW,SAAU,CAAC,EAC1C,CAAA,AAAU,QAAV,EAAE,GAAA,EAAiB,AAAU,WAAV,EAAE,GAAA,AAAQ,IAC/B,EAAY,SAAA,CAAU,MAAA,CAAO,2BAC7B,EAAa,SAAA,CAAU,MAAA,CAAO,0BAElC,EACF","sources":["","src/js/pricing.js"],"sourcesContent":["var $4ab7550819b472d8$exports = {};\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n let buttons = document.querySelectorAll(\".pricing__item .pricing__item__top--expandable\");\n buttons.forEach((button)=>{\n button.addEventListener(\"click\", function(event) {\n let parentPricingItem = event.currentTarget.closest(\".pricing__item\");\n if (parentPricingItem) {\n let content = parentPricingItem.querySelector(\".pricing__item__content\");\n if (content) content.classList.toggle(\"active\");\n button.classList.toggle(\"active\");\n }\n });\n });\n document.getElementById(\"pricing-form\").addEventListener(\"submit\", function(event) {\n event.preventDefault();\n const formData = new FormData();\n formData.append(\"name\", document.getElementById(\"name\").value);\n formData.append(\"email\", document.getElementById(\"email\").value);\n formData.append(\"tel\", document.getElementById(\"phone\").value);\n formData.append(\"message\", document.getElementById(\"membershipType\").value);\n fetch(\"https://email-service-glxivwm5yq-nw.a.run.app\", {\n method: \"POST\",\n body: formData\n }).then((data)=>{\n const pricingForm = document.getElementById(\"pricing-form\");\n const formSuccess = document.getElementById(\"form-success\");\n if (pricingForm) pricingForm.style.display = \"none\";\n if (formSuccess) formSuccess.style.display = \"block\";\n }).catch((error)=>{\n console.error(\"Error:\", error);\n });\n });\n});\nconst $4ab7550819b472d8$var$handleSelect = ()=>{\n document.querySelectorAll(\".dropdown\").forEach(function(dropdownWrapper) {\n const dropdownBtn = dropdownWrapper.querySelector(\".dropdown__button\");\n const dropdownList = dropdownWrapper.querySelector(\".dropdown__list\");\n const dropdownItems = dropdownList.querySelectorAll(\".dropdown__list-item\");\n const dropdownInput = dropdownWrapper.querySelector(\".dropdown__input_hidden\");\n dropdownBtn.addEventListener(\"click\", function() {\n dropdownList.classList.toggle(\"dropdown__list_visible\");\n this.classList.toggle(\"dropdown__button_active\");\n });\n dropdownItems.forEach(function(listItem) {\n listItem.addEventListener(\"click\", function(e) {\n dropdownItems.forEach(function(el) {\n el.classList.remove(\"dropdown__list-item_active\");\n });\n e.target.classList.add(\"dropdown__list-item_active\");\n dropdownBtn.innerText = this.innerText;\n dropdownInput.value = this.dataset.value;\n dropdownList.classList.remove(\"dropdown__list_visible\");\n });\n });\n document.addEventListener(\"click\", function(e) {\n if (e.target !== dropdownBtn) {\n dropdownBtn.classList.remove(\"dropdown__button_active\");\n dropdownList.classList.remove(\"dropdown__list_visible\");\n }\n });\n document.addEventListener(\"keydown\", function(e) {\n if (e.key === \"Tab\" || e.key === \"Escape\") {\n dropdownBtn.classList.remove(\"dropdown__button_active\");\n dropdownList.classList.remove(\"dropdown__list_visible\");\n }\n });\n });\n};\n$4ab7550819b472d8$var$handleSelect();\n\n\n//# sourceMappingURL=pricing.7117cbcc.js.map\n","document.addEventListener('DOMContentLoaded', function () {\n let buttons = document.querySelectorAll(\n '.pricing__item .pricing__item__top--expandable'\n );\n\n buttons.forEach((button) => {\n button.addEventListener('click', function (event) {\n let parentPricingItem = event.currentTarget.closest('.pricing__item');\n if (parentPricingItem) {\n let content = parentPricingItem.querySelector(\n '.pricing__item__content'\n );\n if (content) {\n content.classList.toggle('active');\n }\n button.classList.toggle('active');\n }\n });\n });\n\n document\n .getElementById('pricing-form')\n .addEventListener('submit', function (event) {\n event.preventDefault();\n\n const formData = new FormData();\n formData.append('name', document.getElementById('name').value);\n formData.append('email', document.getElementById('email').value);\n formData.append('tel', document.getElementById('phone').value);\n formData.append(\n 'message',\n document.getElementById('membershipType').value\n );\n\n fetch('https://email-service-glxivwm5yq-nw.a.run.app', {\n method: 'POST',\n body: formData,\n })\n .then((data) => {\n const pricingForm = document.getElementById('pricing-form');\n const formSuccess = document.getElementById('form-success');\n\n if (pricingForm) {\n pricingForm.style.display = 'none';\n }\n\n if (formSuccess) {\n formSuccess.style.display = 'block';\n }\n })\n .catch((error) => {\n console.error('Error:', error);\n });\n });\n});\n\nconst handleSelect = () => {\n document.querySelectorAll('.dropdown').forEach(function (dropdownWrapper) {\n const dropdownBtn = dropdownWrapper.querySelector('.dropdown__button');\n const dropdownList = dropdownWrapper.querySelector('.dropdown__list');\n const dropdownItems = dropdownList.querySelectorAll('.dropdown__list-item');\n const dropdownInput = dropdownWrapper.querySelector(\n '.dropdown__input_hidden'\n );\n\n dropdownBtn.addEventListener('click', function () {\n dropdownList.classList.toggle('dropdown__list_visible');\n this.classList.toggle('dropdown__button_active');\n });\n\n dropdownItems.forEach(function (listItem) {\n listItem.addEventListener('click', function (e) {\n dropdownItems.forEach(function (el) {\n el.classList.remove('dropdown__list-item_active');\n });\n e.target.classList.add('dropdown__list-item_active');\n dropdownBtn.innerText = this.innerText;\n dropdownInput.value = this.dataset.value;\n dropdownList.classList.remove('dropdown__list_visible');\n });\n });\n\n document.addEventListener('click', function (e) {\n if (e.target !== dropdownBtn) {\n dropdownBtn.classList.remove('dropdown__button_active');\n dropdownList.classList.remove('dropdown__list_visible');\n }\n });\n\n document.addEventListener('keydown', function (e) {\n if (e.key === 'Tab' || e.key === 'Escape') {\n dropdownBtn.classList.remove('dropdown__button_active');\n dropdownList.classList.remove('dropdown__list_visible');\n }\n });\n });\n};\n\nhandleSelect();\n"],"names":["document","addEventListener","buttons","querySelectorAll","forEach","button","event","parentPricingItem","currentTarget","closest","content","querySelector","classList","toggle","getElementById","preventDefault","formData","FormData","append","value","fetch","method","body","then","data","pricingForm","formSuccess","style","display","catch","error","console","dropdownWrapper","dropdownBtn","dropdownList","dropdownItems","dropdownInput","listItem","e","el","remove","target","add","innerText","dataset","key"],"version":3,"file":"pricing.7117cbcc.js.map"}