1import{S as m}from"./splide-core.min-CcUYgyd3.js";function f(r,t){var e=t.Elements.track,s=t.Elements.list,i=null,n=null,d=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return{mount:function(){},start:function(a,o){if(clearTimeout(i),clearTimeout(n),d){t.Move.jump(a),o();return}var l=a>r.index,p=l?"-20px":"20px",c=l?"20px":"-20px";e.style.transition="opacity 0.2s ease, transform 0.2s ease",e.style.opacity="0",e.style.transform="translateY("+p+")",i=setTimeout(function(){s.style.transition="none",t.Move.jump(a),e.style.transition="none",e.style.transform="translateY("+c+")",e.offsetHeight,e.style.transition="opacity 0.3s ease, transform 0.3s ease",e.style.opacity="1",e.style.transform="translateY(0)",n=setTimeout(o,300)},200)},cancel:function(){clearTimeout(i),clearTimeout(n),e.style.transition="",e.style.opacity="",e.style.transform=""}}}function g(){Alpine.data("newsSlider",()=>({splide:null,progress:0,init(){const r=this.$refs.slider;if(!r)return;const t=this.$refs.prevBtn,e=this.$refs.nextBtn;this.splide=new m(r,{type:"slide",perPage:3,perMove:1,gap:"1.75rem",drag:!0,arrows:!1,pagination:!1,mediaQuery:"min",breakpoints:{0:{perPage:1,gap:"1rem",padding:{right:"15%"}},640:{perPage:2,gap:"1.25rem",padding:{right:"10%"}},1024:{perPage:3,gap:"1.75rem",padding:0}}}),this.splide.on("mounted move",()=>{const s=this.splide.Components.Controller.getEnd(),i=this.splide.index;this.progress=s>0?i/s*100:0,t&&(t.disabled=i===0),e&&(e.disabled=i>=s)}),this.splide.mount({Transition:f}),t&&t.addEventListener("click",()=>this.splide.go("-1")),e&&e.addEventListener("click",()=>this.splide.go("+1"))},destroy(){this.splide&&this.splide.destroy()}}))}export{g 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.