{"version":3,"file":"chunk-orbit-40742f35-esm.js","sources":["src/modules/orbit.ts"],"sourcesContent":["function handleButtonClick(event: Event): void {\n const clickedButton = event.currentTarget as HTMLButtonElement;\n\n const parentElement = clickedButton.parentElement;\n\n if (!parentElement || !parentElement.children) {\n return;\n }\n\n const siblingButtons = Array.from(parentElement.children)?.filter(\n (child) => child !== clickedButton && child.tagName === 'BUTTON'\n ) as HTMLButtonElement[];\n\n clickedButton.setAttribute('aria-current', 'true');\n siblingButtons.forEach((button) => {\n button.removeAttribute('aria-current');\n });\n}\n\nexport function initializeCarouselButtons(): void {\n const buttons = document.querySelectorAll('.orbit nav.orbit-bullets button');\n\n buttons.forEach((button) => {\n button.addEventListener('click', handleButtonClick);\n });\n}\n"],"names":["handleButtonClick","event","_Array$from","clickedButton","currentTarget","parentElement","children","siblingButtons","Array","from","filter","child","tagName","setAttribute","forEach","button","removeAttribute","initializeCarouselButtons","buttons","document","querySelectorAll","addEventListener"],"mappings":"AAAA,SAASA,iBAAiBA,CAACC,KAAY,EAAQ;EAAA,IAAAC,WAAA;EAC7C,MAAMC,aAAa,GAAGF,KAAK,CAACG,aAAkC;EAE9D,MAAMC,aAAa,GAAGF,aAAa,CAACE,aAAa;EAEjD,IAAI,CAACA,aAAa,IAAI,CAACA,aAAa,CAACC,QAAQ,EAAE;IAC7C;;EAGF,MAAMC,cAAc,IAAAL,WAAA,GAAGM,KAAK,CAACC,IAAI,CAACJ,aAAa,CAACC,QAAQ,CAAC,cAAAJ,WAAA,uBAAlCA,WAAA,CAAoCQ,MAAM,CAC9DC,KAAK,IAAKA,KAAK,KAAKR,aAAa,IAAIQ,KAAK,CAACC,OAAO,KAAK,QAC1D,CAAwB;EAExBT,aAAa,CAACU,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC;EAClDN,cAAc,CAACO,OAAO,CAAEC,MAAM,IAAK;IACjCA,MAAM,CAACC,eAAe,CAAC,cAAc,CAAC;GACvC,CAAC;;AAGJ,AAAO,SAASC,yBAAyBA,GAAS;EAChD,MAAMC,OAAO,GAAGC,QAAQ,CAACC,gBAAgB,CAAC,iCAAiC,CAAC;EAE5EF,OAAO,CAACJ,OAAO,CAAEC,MAAM,IAAK;IAC1BA,MAAM,CAACM,gBAAgB,CAAC,OAAO,EAAErB,iBAAiB,CAAC;GACpD,CAAC;;;;;"}