import{_ as r}from"./production-translator.js";(function(){s()})();function s(){let i=document.querySelectorAll(".modal-video");if(i.length==0)return;let n=document.createElement("div");n.id="current-modal",document.getElementById("current-modal")||document.body.prepend(n),[...i].forEach(e=>{let t=e.nextElementSibling;t&&t.classList.contains("modal")});function a(){let e=n.firstElementChild;if(e){e.style.display="none";let t=e.getElementsByClassName("modal__actions");if(t!=null)for(let l=0;l'}}n.firstElementChild.style.display="block"}[...i].forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.insertAdjacentHTML("afterend",``);let l=e.nextElementSibling;if(l&&l.classList.contains("modal"))return d(l),n.firstElementChild.addEventListener("click",o=>{(o.target.classList.contains("modal__dialog")||o.target.classList.contains("modal__close"))&&(l.remove(),a())}),!1})})}(function(){document.addEventListener("DOMContentLoaded",function(){c()})})();function c(){let i=new IntersectionObserver((a,d)=>{a.forEach(e=>{if(e.isIntersecting){let t=e.target;t.src=t.dataset.src,d.unobserve(t)}})},{threshold:.1});document.querySelectorAll("iframe.lazyload[data-src]").forEach(a=>{i.observe(a)})} //# sourceMappingURL=production-content_catalogvideos.js.map