1var n=(h,s,e)=>new Promise((t,o)=>{var d=i=>{try{a(e.next(i))}catch(l){o(l)}},r=i=>{try{a(e.throw(i))}catch(l){o(l)}},a=i=>i.done?t(i.value):Promise.resolve(i.value).then(d,r);a((e=e.apply(h,s)).next())});import{M as c}from"./media-features-Dpev1hGC.js";import m from"./custom-html-element-Cddc4xm8.js";import"./logger-pamvzmAu.js";import"./exports-NHIMKJG4.js";import"./event-zU-Y6ZHH.js";class y extends m{connectedCallback(){return n(this,null,function*(){this._media=this.querySelectorAll(".js-media"),this._content=this.querySelector(".js-content"),this._sectionId=this.getAttribute("data-section-id"),this._overlay=this.querySelector(".js-bg-overlay"),this.hasVideo=this.querySelector(".js-video"),this.hasVideo&&(this._desktopVideo=this.querySelector("video.js-desktop-view"),this._mobileVideo=this.querySelector("video.js-mobile-view"),this._overlay&&this._overlay.addEventListener("click",this.playPauseVideo.bind(this)),this.autoPlayVideo()),c.prefersReducedMotion()||(this._rafId=null,this._animate(),document.addEventListener("scroll",()=>{this._rafId||(this._rafId=requestAnimationFrame(()=>{this._animate(),this._rafId=null}))},{passive:!0}))})}autoPlayVideo(){screen.width<960?(this._mobileVideo.play(),this._desktopVideo.pause()):(this._desktopVideo.play(),this._mobileVideo.pause())}playPauseVideo(){screen.width<960?this._mobileVideo.paused?this._mobileVideo.play():this._mobileVideo.pause():this._desktopVideo.paused?this._desktopVideo.play():this._desktopVideo.pause()}_animate(){const{height:s,top:e}=this.getBoundingClientRect();if(e<0&&e>-s){const t=Math.abs(e/s),o=1.05-.05*t,d=120*t,r=1-t*3;Array.from(this._media).forEach(a=>{a.style.transform=`matrix(${o}, 0, 0, ${o}, 0, ${d})`}),this._overlay&&(this._overlay.style.opacity=r<0?0:r)}e>0&&(Array.from(this._media).forEach(t=>{t.style.transform="matrix(1.05, 0, 0, 1.05, 0, 0)"}),this._overlay&&(this._overlay.style.opacity=1)),this._content&&(this._content.style.opacity=e<0?0:1)}}window.customElements.get("collection-header")||window.customElements.define("collection-header",y);
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.