{"version":3,"file":"../blocks/content_section/content-section.min.js","mappings":"mBAEAA,SAASC,iBAAiB,oBAAoB,WAEhBD,SAASE,iBACnC,oEAGkBC,SAAQ,SAACC,GAC3BA,EAAOH,iBAAiB,SAAS,SAACI,GAEhC,IAAIA,EAAMC,OAAOC,QAAQ,aAAzB,CAEA,IAAMC,EAAUJ,EAAOG,QAAQ,0BACzBE,EAAeL,EAAOM,cAAc,mBACpCC,EAAiBH,EAAQE,cAAc,oBAG7CF,EAAQI,UAAUC,OAAO,gBAGzB,IAAMC,EAAcN,EAAQI,UAAUG,SAAS,gBAC/CN,EAAaO,aAAa,iBAAkBF,GAC5CH,EAAeK,aAAa,cAAeF,GAGxBL,EAAaC,cAAc,gBACnCO,MAAMC,UAAYJ,EACzB,iBACA,cAlByC,CAmB/C,GACF,GACF,G","sources":["webpack://umbrellas/./blocks/content_section/content-section.js"],"sourcesContent":["import \"./content-section.scss\";\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n // Select all collapsible section headers\n const collapsibleSections = document.querySelectorAll(\n \".content-section-block.is-collapsible .section-header-toggleable\"\n );\n\n collapsibleSections.forEach((header) => {\n header.addEventListener(\"click\", (event) => {\n // Prevent event if clicked on a link or button within the header\n if (event.target.closest(\"a, button\")) return;\n\n const section = header.closest(\".content-section-block\");\n const toggleButton = header.querySelector(\".section-toggle\");\n const contentSection = section.querySelector(\".content-section\");\n\n // Toggle collapsed state\n section.classList.toggle(\"is-collapsed\");\n\n // Update aria-expanded attribute\n const isCollapsed = section.classList.contains(\"is-collapsed\");\n toggleButton.setAttribute(\"aria-expanded\", !isCollapsed);\n contentSection.setAttribute(\"aria-hidden\", isCollapsed);\n\n // Rotate toggle icon\n const toggleIcon = toggleButton.querySelector(\".toggle-icon\");\n toggleIcon.style.transform = isCollapsed\n ? \"rotate(-90deg)\"\n : \"rotate(0deg)\";\n });\n });\n});\n"],"names":["document","addEventListener","querySelectorAll","forEach","header","event","target","closest","section","toggleButton","querySelector","contentSection","classList","toggle","isCollapsed","contains","setAttribute","style","transform"],"sourceRoot":""}