PageSourceSearch

https://aawl.org/wp-content/themes/aawl/build/assets/hero-slider-init-9ssCViIB.js

js aawl.org collected 2026-10-02 05:51:40 UTC 1,767 bytes, 2 lines download raw bytes

1import{Swiper as f}from"./swiper-BNEyc3_Z.js";import{N as v,A as y}from"./a11y-D84grS8y.js";import{Autoplay as m}from"./index-gCrC00L8.js";/* empty css             */import"./utils-DpHTzDqq.js";const S=()=>window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,d=(i,e)=>{if(!e)return;const t=(i.realIndex??i.activeIndex)+1;e.querySelectorAll(".c-slider-nav__pad--toe").forEach(r=>{const s=String(r.dataset.toe)===String(t);r.classList.toggle("is-active",s)}),e.querySelectorAll(".c-slider-nav__toe-btn").forEach(r=>{const s=String(r.dataset.toe)===String(t);r.setAttribute("aria-current",s?"true":"false")})};function A(){const i=document.querySelectorAll(".c-hero-slider[data-swiper]");i.length&&i.forEach(e=>{let t={};try{t=JSON.parse(e.dataset.swiper||"{}")}catch(o){console.warn("aawl/hero-slider: malformed data-swiper, using defaults",o)}const r=e.querySelector(".c-slider-nav"),s=e.querySelector(".c-slider-nav__arrow--prev"),u=e.querySelector(".c-slider-nav__arrow--next"),p=e.querySelectorAll(".c-slider-nav__toe-btn"),c={modules:[v,m,y],loop:!!t.loop,speed:t.speed||600,navigation:{prevEl:s,nextEl:u},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide"},on:{init:o=>d(o,r),slideChange:o=>d(o,r)}};t.autoplay&&!S()&&(c.autoplay={delay:t.autoplay.delay||6e3,pauseOnMouseEnter:!0,disableOnInteraction:!1});const n=new f(e,c);p.forEach(o=>{o.addEventListener("click",()=>{const a=parseInt(o.dataset.toe,10);Number.isNaN(a)||(typeof n.slideToLoop=="function"?n.slideToLoop(a-1):n.slideTo(a-1))})});const l=e.querySelector(".c-slider-nav__heel-btn");l&&l.addEventListener("click",()=>{typeof n.slideNext=="function"&&n.slideNext()})})}export{A as initHeroSliders};
2//# sourceMappingURL=hero-slider-init-9ssCViIB.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.