1function L(o){if(!o)return;const p=o.querySelectorAll(".tab-button"),h=o.querySelectorAll(".tab-content");if(!p.length||!h.length)return;p.forEach(e=>{e.addEventListener("click",()=>{p.forEach(i=>i.classList.remove("active")),h.forEach(i=>i.classList.remove("active")),e.classList.add("active");const t=e.getAttribute("data-tab"),d=o.querySelector(`#${t}`);d&&d.classList.add("active")})});const b=o.querySelector(".block-gallery-inner"),f=o.querySelectorAll(".block-gallery-item");if(!b||!f.length)return;const g=document.createElement("div");g.classList.add("sentinel"),b.after(g);let m=6,c;function v(){f.forEach((e,t)=>{t<m?e.classList.remove("hidden"):e.classList.add("hidden")})}function x(){c&&c.disconnect(),c=new IntersectionObserver(e=>{e[0].isIntersecting&&(m+=6,v(),m>=f.length&&c.disconnect())}),c.observe(g)}v(),x();let u=null,k=Array.from(document.querySelectorAll(".block-gallery-item .img-wrapper img")),s=document.querySelector(".fullscreen-gallery"),l=document.createElement("div");l.textContent="â¹",l.classList.add("gal_prev"),l.style.cssText=` 2 position: absolute; 3 top: 50%; 4 left: 30px; 5 transform: translateY(-50%); 6 font-size: 60px; 7 color: white; 8 cursor: pointer; 9 user-select: none; 10`;let r=document.createElement("div");r.textContent="âº",r.classList.add("gal_next"),r.style.cssText=` 11 position: absolute; 12 top: 50%; 13 right: 30px; 14 transform: translateY(-50%); 15 font-size: 60px; 16 color: white; 17 cursor: pointer; 18 user-select: none; 19`,s.appendChild(l),s.appendChild(r);let a=document.createElement("div");a.textContent="Ã",a.classList.add("gal_close"),a.style.cssText=` 20 position: absolute; 21 top: 20px; 22 right: 30px; 23 font-size: 50px; 24 color: white; 25 cursor: pointer; 26 user-select: none; 27 line-height: 1; 28 font-weight: 300; 29 z-index: 10000; 30`,s.appendChild(a),a.addEventListener("click",e=>{e.stopPropagation(),s.style.display="none"});let n=[];function y(e){if(!e)return;u=e,s.style.backgroundImage=`url(${e.src})`,s.style.display="block";const t=n.indexOf(u);n.length<=1?(l.style.display="none",r.style.display="none"):(l.style.display=t===0?"none":"block",r.style.display=t===n.length-1?"none":"block")}k.forEach(e=>{e.addEventListener("click",t=>{t.stopPropagation();const d=e.closest(".block-gallery-item");if(!d||(n=Array.from(document.querySelectorAll(".block-gallery-item .img-wrapper-modal img")),n.length===0))return;const i=d.querySelector(".img-wrapper-modal img");i&&(n=Array.from(document.querySelectorAll(".block-gallery-item .img-wrapper-modal img")),y(i))})}),r.addEventListener("click",e=>{e.stopPropagation();const t=n.indexOf(u);t<n.length-1&&y(n[t+1])}),l.addEventListener("click",e=>{e.stopPropagation();const t=n.indexOf(u);t>0&&y(n[t-1])})}export{L as default};
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.