{"mappings":"ACAA,SAAS,gBAAA,CAAiB,mBAAoB,KAE7C,IAAM,EAAQ,SAAS,cAAA,CAAe,WAChC,EAAe,SAAS,cAAA,CAAe,gBACvC,EAAW,SAAS,sBAAA,CAAuB,cAAc,CAAC,EAAE,CAC5D,EAAe,SAAS,aAAA,CAAc,kBAGtC,EAAa,SAAS,cAAA,CAAe,cAG3C,EAAa,gBAAA,CAAiB,QAAS,KACrC,EAAM,KAAA,CAAM,OAAA,CAAU,QAEtB,EAAW,GAAA,CAAM,sFACnB,GAGA,EAAS,gBAAA,CAAiB,QAAS,KACjC,EAAM,KAAA,CAAM,OAAA,CAAU,OAEtB,EAAW,GAAA,CAAM,EACnB,GAGA,EAAM,gBAAA,CAAiB,QAAS,AAAC,IAC5B,EAAM,MAAA,GAAW,IACnB,EAAM,KAAA,CAAM,OAAA,CAAU,OAEtB,EAAW,GAAA,CAAM,GAEpB,GAGA,EAAa,gBAAA,CAAiB,QAAS,AAAC,IACvC,EAAM,eAAN,EACD,EAED","sources":["","src/scripts/modal.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", ()=>{\n // Get references to the modal, open button, and close button\n const modal = document.getElementById(\"myModal\");\n const openModalBtn = document.getElementById(\"openModalBtn\");\n const closeBtn = document.getElementsByClassName(\"close-modal\")[0];\n const modalContent = document.querySelector(\".modal-content\");\n // Get the iframe element\n const videoFrame = document.getElementById(\"videoFrame\");\n // Open the modal when the open button is clicked\n openModalBtn.addEventListener(\"click\", ()=>{\n modal.style.display = \"block\";\n // Set the source of the iframe to load the video\n videoFrame.src = \"https://www.youtube.com/embed/y1CbjbOwGmA?autoplay=1&rel=0&controls=0&modestbranding\";\n });\n // Close the modal when the close button is clicked or when the overlay is clicked\n closeBtn.addEventListener(\"click\", ()=>{\n modal.style.display = \"none\";\n // Pause the video when the modal is closed\n videoFrame.src = \"\";\n });\n // Close the modal when the modal overlay (outside the video) is clicked\n modal.addEventListener(\"click\", (event)=>{\n if (event.target === modal) {\n modal.style.display = \"none\";\n // Pause the video when the modal is closed\n videoFrame.src = \"\";\n }\n });\n // Prevent clicks within the modal content from closing the modal\n modalContent.addEventListener(\"click\", (event)=>{\n event.stopPropagation();\n });\n});\n\n//# sourceMappingURL=directors-report.efaa91f3.js.map\n","document.addEventListener(\"DOMContentLoaded\", () => {\n\t// Get references to the modal, open button, and close button\n\tconst modal = document.getElementById(\"myModal\");\n\tconst openModalBtn = document.getElementById(\"openModalBtn\");\n\tconst closeBtn = document.getElementsByClassName(\"close-modal\")[0];\n\tconst modalContent = document.querySelector(\".modal-content\");\n\n\t// Get the iframe element\n\tconst videoFrame = document.getElementById(\"videoFrame\");\n\n\t// Open the modal when the open button is clicked\n\topenModalBtn.addEventListener(\"click\", () => {\n\t\t\tmodal.style.display = \"block\";\n\t\t\t// Set the source of the iframe to load the video\n\t\t\tvideoFrame.src = \"https://www.youtube.com/embed/y1CbjbOwGmA?autoplay=1&rel=0&controls=0&modestbranding\";\n\t});\n\n\t// Close the modal when the close button is clicked or when the overlay is clicked\n\tcloseBtn.addEventListener(\"click\", () => {\n\t\t\tmodal.style.display = \"none\";\n\t\t\t// Pause the video when the modal is closed\n\t\t\tvideoFrame.src = \"\";\n\t});\n\n\t// Close the modal when the modal overlay (outside the video) is clicked\n\tmodal.addEventListener(\"click\", (event) => {\n\t\tif (event.target === modal) {\n\t\t\t\tmodal.style.display = \"none\";\n\t\t\t\t// Pause the video when the modal is closed\n\t\t\t\tvideoFrame.src = \"\";\n\t\t}\n\t});\n\n\t// Prevent clicks within the modal content from closing the modal\n\tmodalContent.addEventListener(\"click\", (event) => {\n\t\tevent.stopPropagation();\n\t});\n\n});"],"names":["document","addEventListener","modal","getElementById","openModalBtn","closeBtn","getElementsByClassName","modalContent","querySelector","videoFrame","style","display","src","event","target","stopPropagation"],"version":3,"file":"directors-report.efaa91f3.js.map"}