1import{gsap as i}from"./node_modules/gsap/index.CJFGfNU_.js";import{ScrollTrigger as o}from"./node_modules/gsap/ScrollTrigger.Bh4EE-2t.js";i.registerPlugin(o);class n{constructor(t){this.element=t,this.parent=this.element.closest(".page-component"),this.scrollContainer=this.element.querySelector(".tile-scroller__wrapper"),this.tileGrid=this.element.querySelector(".tile-scroller__grid"),this.breakpoint=992,this.setup()}setup(){i.matchMedia().add({_isDesktop:`(min-width: ${this.breakpoint}px)`,_isMobile:`(max-width: ${this.breakpoint-.02}px)`},t=>{const{_isDesktop:l,_isMobile:s}=t.conditions;let e=this.calculateScrollWidth();i.to(this.scrollContainer,{x:s?()=>e*-1:0,y:l?()=>(this.scrollContainer.offsetHeight-window.innerHeight)*-1:0,ease:"none",scrollTrigger:{pin:this.parent,start:"top top",trigger:this.parent,scrub:0,invalidateOnRefresh:!0,end:()=>{if(s)return"+="+e;if(l)return"+="+(this.scrollContainer.offsetHeight-window.innerHeight)},onRefreshInit:()=>{e=this.calculateScrollWidth()}}})})}calculateScrollWidth(){return this.tileGrid.offsetWidth<=document.body.clientWidth?0:this.tileGrid.offsetWidth-document.body.clientWidth}}const c=document.querySelectorAll(".tile-scroller");c.forEach(r=>{new n(r)});
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.