PageSourceSearch

https://europe.analysisgroup.com/scripts/news-events-card-row-737071e8.js

js analysisgroup.com collected 2026-10-01 10:14:18 UTC 2,775 bytes, 2 lines download raw bytes

1var u=Object.defineProperty;var h=(a,i,e)=>i in a?u(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e;var d=(a,i,e)=>(h(a,typeof i!="symbol"?i+"":i,e),e);import{C as m}from"./vendor-a6c4fc13.js";import{S as g}from"./splide.min-0e039398.js";import{i as l,a as p}from"./index-4af11e01.js";import{s as w}from"./stagger-a0fa08d5.js";class v extends m{constructor(e){super(e);d(this,"splide");d(this,"isReducedMotion",window.matchMedia("(prefers-reduced-motion: reduce)").matches);this.setupDefaults_(),this.addListeners_()}setupDefaults_(){this.dom={el:this.el,splideEl:this.el.querySelector(".splide"),paginationPrev:this.el.querySelector(".news-events-card-row__pagination-prev"),paginationNext:this.el.querySelector(".news-events-card-row__pagination-next"),paginationCurrent:this.el.querySelector(".news-events-card-row__pagination-current"),paginationTotal:this.el.querySelector(".news-events-card-row__pagination-total"),title:this.el.querySelector(".news-events-card-row__title")},this.initSplide(),this.animateTitle()}addListeners_(){const{paginationPrev:e,paginationNext:t}=this.dom;e==null||e.addEventListener("click",()=>this.splide.go("<")),t==null||t.addEventListener("click",()=>this.splide.go(">"))}initSplide(){const e=this.dom.splideEl;if(!e)return;const t=new g(e,{pagination:!1,arrows:!1,gap:"24px",perPage:3,rewind:!0,breakpoints:{1279:{perPage:1}}});t.on("mounted",()=>{const s=Math.ceil(t.length/(t.options.perPage??1)),r=Array.from(e.querySelectorAll(".splide__slide")).map(n=>n.querySelector(".news-event-card")).filter(Boolean);this.updateCurrentPage(t.index),this.updateTotalPages(s),r.forEach(n=>{n.style.opacity="0",n.style.transform="translateY(20px)"}),l(this.el,()=>{p(r,{opacity:[0,1],transform:["translateY(50px)","translateY(0)"]},{duration:.75,delay:w(.15)})},{amount:.75})}),t.on("moved",s=>{window.matchMedia("(min-width: 1280px)").matches||this.updateCurrentPage(s)}),t.on("active",s=>{if(!window.matchMedia("(min-width: 1280px)").matches)return;const n=s.index+2,c=Math.floor(n/3);this.updateCurrentPage(c)}),t.on("updated",()=>{const s=Math.ceil(t.length/(t.options.perPage??1)),o=t.index>=s?s-1:t.index;this.updateTotalPages(s),this.updateCurrentPage(o)}),t.on("overflow",s=>{t.options={drag:s}}),this.splide=t,t.mount()}updateCurrentPage(e){const t=this.dom.paginationCurrent;t&&(t.textContent=String(e+1))}updateTotalPages(e){const t=this.dom.paginationTotal;t&&(t.textContent=String(e))}animateTitle(){const{title:e}=this.dom;if(this.isReducedMotion||!e){e==null||e.classList.add("module--reduced-motion");return}l(e,()=>{p(e,{opacity:[0,1],transform:["translateY(20px)","translateY(0px)"]},{duration:.5,ease:"easeInOut"})},{amount:.75})}}export{v as default};
2//# sourceMappingURL=news-events-card-row-737071e8.js.map

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.