PageSourceSearch

https://www.bridgemuseum.com.au/dist/assets/mobile-slider-DVuYXIZX.js

js bridgemuseum.com.au collected 2026-10-09 05:04:13 UTC 1,859 bytes, 1 lines download raw bytes

1import{S as y,N as g}from"./navigation-CevUovE6.js";import{P as h}from"./pagination-CRCU0I6N.js";const N=(r,E,e={})=>{const b=e.breakpoint||768;let a=null,s=!1;const l=()=>window.innerWidth<b,w=()=>{if(s||!l())return;const i=r;if(!i||!i.classList.contains("grid")){console.warn("Mobile slider: Grid container not found");return}const o=Array.from(i.children);if(o.length===0)return;const n=document.createElement("div");n.className="swiper c-mobile-slider__swiper";const c=document.createElement("div");c.className="swiper-wrapper",o.forEach(C=>{const m=document.createElement("div");m.className="swiper-slide c-mobile-slider__slide",m.innerHTML=C.innerHTML,c.appendChild(m)}),n.appendChild(c);const p=e.disableDots===!0;let t=null;p||(t=document.createElement("div"),t.className="c-mobile-slider__pagination"),i.style.display="none";const d=i.parentElement;d&&(d.insertBefore(n,i),t&&(n.nextSibling?d.insertBefore(t,n.nextSibling):d.appendChild(t)));const v={modules:p?[g]:[g,h],loop:e.loop!==void 0?e.loop:!1,speed:e.speed!==void 0?e.speed:600,slidesPerView:e.slidesPerView!==void 0?typeof e.slidesPerView=="string"?parseFloat(e.slidesPerView):e.slidesPerView:1.2,spaceBetween:e.spaceBetween!==void 0?e.spaceBetween:16,...p?{}:{pagination:{el:t,clickable:!0,bulletClass:"c-mobile-slider__pagination-bullet",bulletActiveClass:"c-mobile-slider__pagination-bullet--active"}}};a=new y(n,v),s=!0,r.__swiperInstance=a,r.__swiperContainer=n,r.__gridContainer=i,r.__pagination=t},u=()=>{if(!s)return;a&&(a.destroy(!0,!0),a=null);const i=r.__swiperContainer,o=r.__gridContainer,n=r.__pagination;i&&o&&(i.remove(),n&&n.remove(),o.style.display=""),s=!1},f=()=>{l()&&!s?w():!l()&&s&&u()};l()&&w();let _;return window.addEventListener("resize",()=>{clearTimeout(_),_=setTimeout(f,150)}),{destroy:()=>{u(),window.removeEventListener("resize",f)}}};export{N 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.