1var c=Object.defineProperty;var m=(i,e,o)=>e in i?c(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o;var h=(i,e,o)=>(m(i,typeof e!="symbol"?e+"":e,o),o);import{C as L}from"./vendor-B8v9NfwB.js";import{a as p}from"./index-DrfTo-uH.js";import"./default-Cfl4IcRX.js";class b extends L{constructor(o){super(o);h(this,"visibleLogos");h(this,"hiddenLogos");!(this.dom.logos.length<=6)&&(this.visibleLogos=[],this.hiddenLogos=[],this.setupAnimation(),setTimeout(()=>{this.animateLogos()},3e3))}setupDefaults(){this.dom={logosContainer:this.el.querySelector(".logo-container__logos"),logos:this.el.querySelectorAll(".logo-container__logo"),logoWrappers:this.el.querySelectorAll(".logo-container__logo-wrapper")}}setupAnimation(){var n;this.dom.logos.forEach((t,s)=>{var l,a;s<6?(l=this.visibleLogos)==null||l.push(t):(a=this.hiddenLogos)==null||a.push(t)});const o=document.createElement("div");o.classList.add("logo-container__hidden-logos"),(n=this.hiddenLogos)==null||n.forEach(t=>{o.appendChild(t)}),this.dom.hiddenLogoContainer=o,this.el.appendChild(o)}animateLogos(){const o=Math.floor(Math.random()*this.visibleLogos.length),n=Math.floor(Math.random()*this.hiddenLogos.length),t=this.visibleLogos[o],s=this.hiddenLogos[n];this.visibleLogos.splice(o,1,s),this.hiddenLogos.splice(n,1,t),t.parentElement.appendChild(s),s.style.opacity="0",requestAnimationFrame(async()=>{await p(t,{opacity:0},{duration:1}),await p(s,{opacity:1},{duration:.75}),this.visibleLogos.forEach(a=>{const d=a.parentElement;if(!d)return;const g=Array.from(d.querySelectorAll("img")).filter(r=>getComputedStyle(r).opacity==="1");g.length>1&&g.slice(0,-1).forEach(r=>{r.style.opacity="0"})})}),setTimeout(()=>{this.animateLogos()},3e3)}addListeners(){}}export{b as default}; 2//# sourceMappingURL=logoContainer-KSwXfx-0.js.map
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.