1var h=Object.defineProperty;var o=(s,i,t)=>i in s?h(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t;var a=(s,i,t)=>(o(s,typeof i!="symbol"?i+"":i,t),t);import{C as m}from"./js-c3ec3b4d.js";class r extends m{constructor(){super(...arguments);a(this,"mql",window.matchMedia("(min-width: 1024px)"));a(this,"animationsInitialized",!1);a(this,"observerOptions",{root:null,rootMargin:"0px 0px",threshold:[.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});a(this,"observer",new IntersectionObserver(t=>{t.forEach(e=>{const n=e.target.dataset.index;e.target.style.opacity=Math.max(.1,e.intersectionRatio*.85),e.intersectionRatio===1&&(this.indexValue=n)})},this.observerOptions));a(this,"resizeObserver",new ResizeObserver(t=>{for(const e of t)!this.mql.matches&&this.animationsInitialized&&this.animationDestroy(),this.mql.matches&&!this.animationsInitialized&&this.animationSetup()}))}connect(){this.mql.matches&&this.animationSetup(),this.resizeObserver.observe(this.element)}animationSetup(){this.imageTargets.forEach(t=>{this.observer.observe(t)}),this.animateImages(this.indexValue),this.animateContent(this.indexValue),this.layOutHeading(),this.layOutCopy(),this.animationsInitialized=!0}animationDestroy(){this.imageTargets.forEach(t=>{this.observer.unobserve(t)}),this.layOutHeading(),this.layOutCopy(),this.animationsInitialized=!1}indexValueChanged(){this.mql.matches&&(this.animateImages(this.indexValue),this.animateContent(this.indexValue),this.layOutCopy())}layOutHeading(){if(!this.mql.matches){this.headingTrackTarget.style.removeProperty("margin");return}const t=this.headingTarget.offsetHeight/2;this.headingTrackTarget.style.margin=`${t}px 0 ${t*-1}px 0`}layOutCopy(){if(!this.mql.matches){this.copyTrackTarget.style.removeProperty("margin");return}const t=this.copyTargets[this.indexValue].offsetHeight/2;this.copyTrackTarget.style.margin=`${t}px 0 ${t*-1}px 0`}animateImages(t){this.imageTargets.forEach((e,n)=>{!e[n]!==t&&(e.dataset.active=!1)}),this.imageTargets[t].dataset.active=!0}animateContent(t){this.copyTargets.forEach((e,n)=>{!e[n]!==t&&(e.dataset.active=!1)}),this.copyTargets[t].dataset.active=!0}}a(r,"targets",["image","copy","copyTrack","heading","headingTrack"]),a(r,"values",{index:Number});export{r 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.