{"version":3,"mappings":";sCAAO,MAAMA,EAAe,IAAY,CAChC,MAAAC,EAAkC,SAAS,iBAAiB,cAAc,EAC1EC,EAAyC,SAAS,iBAAiB,YAAY,EAE/EC,EAAO,SAA2B,CACtC,MAAAC,EAAA,IAAM,OAAO,6BAAyC,MACtD,MAAAA,EAAA,IAAM,mBAAiD,uBACzCC,EAAA,CAChB,EAEMA,EAAgB,IAAY,CAClBH,EAAA,QAASI,GAAsB,CACvC,UAAU,QAAQ,UACfA,EAAA,UAAU,IAAI,QAAQ,EAEtBA,EAAA,UAAU,OAAO,QAAQ,CAChC,CACD,CACH,EAEIL,GAAUC,IACPC,EAAK,EACH,wBAAiB,oBAAqBE,EAAe,EAAK,EAC1D,wBAAiB,qBAAsBA,EAAe,EAAK,EAEtE","names":["videoHandler","videos","cookieBanners","load","__vitePreload","toggleBanners","item"],"ignoreList":[],"sources":["../../../src/js/video.ts"],"sourcesContent":["export const videoHandler = (): void => {\n const videos: NodeListOf = document.querySelectorAll('lite-youtube');\n const cookieBanners: NodeListOf = document.querySelectorAll('.js-cookie');\n\n const load = async (): Promise => {\n await import('lite-youtube-embed/src/lite-yt-embed.js');\n await import('lite-youtube-embed/src/lite-yt-embed.css');\n toggleBanners();\n };\n\n const toggleBanners = (): void => {\n cookieBanners.forEach((item: HTMLElement) => {\n if (Cookiebot.consent.marketing) {\n item.classList.add('hidden');\n } else {\n item.classList.remove('hidden');\n }\n });\n };\n\n if (videos && cookieBanners) {\n void load();\n window.addEventListener('CookiebotOnAccept', toggleBanners, false);\n window.addEventListener('CookiebotOnDecline', toggleBanners, false);\n }\n};\n"],"file":"assets/video-DceoDkt4.js"}