{"mappings":"C,A,WCAA,IAAM,EAAa,SAAS,aAAa,CAAC,sBACpC,EAAc,SAAS,aAAa,CAAC,gBACrC,EAAa,SAAS,aAAa,CAAC,yBAG1C,GAAY,iBAAiB,QAAS,AAAA,IACpC,EAAE,cAAc,GAChB,GAAY,UAAU,OAAO,OAgB/B,GAEA,GAAa,iBAAiB,QAAS,AAAA,IACrC,EAAE,cAAc,GAChB,IAAM,EAAU,SAAS,gBAAgB,CAAC,UAC1C,GAAY,UAAU,OAAO,QAC7B,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,EAAS,AAAA,IACpC,EAAO,aAAa,CAAC,WAAW,CAC9B,mDACA,IAEJ,EACF,E","sources":["","components/featured-video/featured-video.ts"],"sourcesContent":["(function () {\nconst $a880d368cdc53bd2$var$openButton = document.querySelector(\".open-video-button\");\nconst $a880d368cdc53bd2$var$closeButton = document.querySelector(\".close-modal\");\nconst $a880d368cdc53bd2$var$videoModal = document.querySelector(\".featured-video-modal\");\n// const videoEmbed = document.querySelector('.featured-video-embed');\n$a880d368cdc53bd2$var$openButton?.addEventListener(\"click\", (e)=>{\n e.preventDefault();\n $a880d368cdc53bd2$var$videoModal?.classList.toggle(\"open\");\n// const iframes = document.querySelectorAll('iframe');\n// if (iframes.length == 0) {\n// console.log('adding iframe');\n// const iframe = document.querySelector('iframe');\n// const vidUrl = iframe?.getAttribute('rel-iframe');\n// console.log(vidUrl);\n// iframe?.setAttribute(\"src\", \"https://youtu.be/8Se43-bWPm0\");\n// // const iframe = document.createElement('iframe');\n// // iframe.src = \"https://youtu.be/8Se43-bWPm0\";\n// // iframe.width = \"100%\";\n// // iframe.height = \"100%\";\n// // videoEmbed?.appendChild(iframe);\n// }\n});\n$a880d368cdc53bd2$var$closeButton?.addEventListener(\"click\", (e)=>{\n e.preventDefault();\n const iframes = document.querySelectorAll(\"iframe\");\n $a880d368cdc53bd2$var$videoModal?.classList.toggle(\"open\");\n Array.prototype.forEach.call(iframes, (iframe)=>{\n iframe.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"stopVideo\",\"args\":[]}', \"*\");\n });\n});\n\n})();\n//# sourceMappingURL=featured-video.js.map\n","const openButton = document.querySelector('.open-video-button');\nconst closeButton = document.querySelector('.close-modal');\nconst videoModal = document.querySelector('.featured-video-modal');\n// const videoEmbed = document.querySelector('.featured-video-embed');\n\nopenButton?.addEventListener('click', e => {\n e.preventDefault();\n videoModal?.classList.toggle('open');\n\n // const iframes = document.querySelectorAll('iframe');\n\n // if (iframes.length == 0) {\n // console.log('adding iframe');\n // const iframe = document.querySelector('iframe');\n // const vidUrl = iframe?.getAttribute('rel-iframe');\n // console.log(vidUrl);\n // iframe?.setAttribute(\"src\", \"https://youtu.be/8Se43-bWPm0\");\n // // const iframe = document.createElement('iframe');\n // // iframe.src = \"https://youtu.be/8Se43-bWPm0\";\n // // iframe.width = \"100%\";\n // // iframe.height = \"100%\";\n // // videoEmbed?.appendChild(iframe);\n // }\n});\n\ncloseButton?.addEventListener('click', e => {\n e.preventDefault();\n const iframes = document.querySelectorAll('iframe');\n videoModal?.classList.toggle('open');\n Array.prototype.forEach.call(iframes, iframe => {\n iframe.contentWindow.postMessage(\n '{\"event\":\"command\",\"func\":\"stopVideo\",\"args\":[]}',\n '*',\n );\n });\n});\n"],"names":["$a880d368cdc53bd2$var$openButton","document","querySelector","$a880d368cdc53bd2$var$closeButton","$a880d368cdc53bd2$var$videoModal","addEventListener","e","preventDefault","classList","toggle","iframes","querySelectorAll","Array","prototype","forEach","call","iframe","contentWindow","postMessage"],"version":3,"file":"featured-video.js.map"}