1class u{constructor(){this.modalsShow=document.querySelectorAll(".js-fullscreen-video-show")}init(){this.modalsShow.length>0&&this.modalsShow.forEach(s=>{s.addEventListener("click",()=>{const i=document.querySelector(`.${s.dataset.modal}`);let t=null;if(i){const e=i.querySelector(".fullscreen__item__container"),l=s.getAttribute("data-location-uuid"),r=s.getAttribute("data-url"),a=i.querySelector(".js-fullscreen-video-close");i.showModal(),a&&a.addEventListener("click",()=>{i.close(),l&&e&&(e.innerHTML="")}),l&&r&&(e==null?void 0:e.innerHTML)===""&&fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uuid:l})}).then(c=>c.json()).then(c=>{e.innerHTML="";const o=document.createElement("div");for(o.innerHTML=c.html;o.firstChild;)e.appendChild(o.firstChild);const n=e.querySelector("script");n&&(t=document.createElement("script"),t.src=n.src,t.async=!0,t.className=n.className,t.setAttribute("data-player-id",n.getAttribute("data-player-id")),n.remove(),e.appendChild(t))}).catch(c=>{console.log(c)})}})})}}export{u as FullscreenLive};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.