1window.Eurus.loadedScript.has("image-comparison.js")||(window.Eurus.loadedScript.add("image-comparison.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xImageComparison",(sectionId,layout)=>({load(e){layout=="horizontal"?this.$refs.image.style.setProperty("--compare_"+sectionId,e.target.value+"%"):this.$refs.image.style.setProperty("--compare_vertical_"+sectionId,100-e.target.value+"%")},resizeWindow(el){addEventListener("resize",()=>{this.setMinMaxInput(el,layout)})},disableScroll(el){let isfocus=!0;window.addEventListener("wheel",()=>{isfocus&&(el.blur(),isfocus=!1)})},setMinMaxInput(el){el.min=0,el.max=100},animateValue(el){const targetValue=parseFloat(el.value);let currentHorizontalValue=100,currentVerticalValue=0;const totalDuration=1e3;let startTime=null;const easeInOutSlowEnd=t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,step=timestamp=>{startTime||(startTime=timestamp);const elapsedTime=timestamp-startTime,progress=Math.min(elapsedTime/totalDuration,1),easedProgress=easeInOutSlowEnd(progress);layout==="horizontal"?(currentHorizontalValue=100+(targetValue-100)*easedProgress,el.value=currentHorizontalValue.toFixed(2),this.$refs.image.style.setProperty("--compare_"+sectionId,currentHorizontalValue+"%"),progress<1?requestAnimationFrame(step):(el.value=targetValue,this.$refs.image.style.setProperty("--compare_"+sectionId,targetValue+"%"))):(currentVerticalValue=0+(targetValue-0)*easedProgress,el.value=currentVerticalValue.toFixed(2),this.$refs.image.style.setProperty("--compare_vertical_"+sectionId,currentVerticalValue+"%"),progress<1?requestAnimationFrame(step):(el.value=targetValue,this.$refs.image.style.setProperty("--compare_vertical_"+sectionId,targetValue+"%")))};requestAnimationFrame(step)}}))})})); 2//# sourceMappingURL=/cdn/shop/t/201/assets/image-comparison.js.map?v=142852033519059041981782713469
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.