{"version":3,"file":"accordion.js","sources":["../../../../../Flow.Showcase.Static.Bundler/Root/entrypoints/accordion.ts"],"sourcesContent":["document.querySelectorAll(\"[data-accordion], [data-expander]\").forEach((el) => {\n if (!(el instanceof HTMLElement)) {\n return;\n }\n const toggle = el.querySelector(\"[data-toggle]\");\n if (toggle instanceof HTMLElement) {\n toggle.addEventListener(\"click\", () => {\n if (el.dataset.open === \"true\") {\n el.dataset.open = \"false\";\n } else {\n el.dataset.open = \"true\";\n }\n });\n }\n});\n"],"names":["el","toggle"],"mappings":"AAAA,SAAS,iBAAiB,mCAAmC,EAAE,QAASA,GAAO,CACvE,GAAA,EAAEA,aAAc,aAChB,OAEE,MAAAC,EAASD,EAAG,cAAc,eAAe,EAC3CC,aAAkB,aACXA,EAAA,iBAAiB,QAAS,IAAM,CAC/BD,EAAG,QAAQ,OAAS,OACpBA,EAAG,QAAQ,KAAO,QAElBA,EAAG,QAAQ,KAAO,MACtB,CACH,CAET,CAAC"}