PageSourceSearch

https://spenceltd.co.uk/wp-content/themes/spence/dist/js/block_med…edia-overlay-txt-js.1ccb1430b0725b809514.js

js spenceltd.co.uk collected 2026-10-02 19:41:06 UTC 2,206 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcdrs_wp_theme=self.webpackChunkcdrs_wp_theme||[]).push([[1060],{1258:function(e,i,t){t.r(i);var s=t(6404),n=t(2112),l=t(8352);i.default={debug:!1,inview:{trigger:".swiper-slide:first-child .content-wrapper"},mount(){this.ref("swiper")&&(this.initializeSwiper(),window.addEventListener("resize",(()=>{this.swiper&&this.swiper.update()})))},get isMobile(){return window.innerWidth<=768},initializeSwiper(){const e=this.ref("swiper"),i=this.ref("pagination"),t=[];if(e.querySelectorAll(".swiper-slide").forEach(((e,i)=>{const s=i+1,n=this.ref(`slidePagination-${s}`);n&&t.push({el:n,slideIndex:i})})),e){this.log("Initializing Swiper");const r=()=>this.isMobile;this.swiper=new n.A(e,{modules:[l.Jq,l._R,l.s3,l.dK],slidesPerView:1,spaceBetween:0,autoplay:!1,loop:!1,speed:600,effect:"fade",keyboard:!0,rewind:!0,allowTouchMove:r(),a11y:{enabled:!0},pagination:{clickable:!0,el:i},on:{init:e=>{s.uY.refresh(),this.updateMobileCounter(e),this.syncSlidePagination(e),e.el.addEventListener("click",(()=>{e.slideNext()}))},slideChange:e=>{this.updateMobileCounter(e),this.syncSlidePagination(e)}}}),t.forEach((e=>{this.createPaginationBullets(e.el,this.swiper.slides.length,e.slideIndex)})),window.addEventListener("resize",(()=>{if(this.swiper){const e=r();this.swiper.allowTouchMove=e,this.swiper.update()}})),this.log("Swiper initialized successfully")}else this.log("Swiper element not found, skipping initialization","warn")},createPaginationBullets(e,i,t){if(e){e.innerHTML="";for(let s=0;s<i;s++){const i=document.createElement("span");i.classList.add("swiper-pagination-bullet"),s===t&&i.classList.add("swiper-pagination-bullet-active"),i.addEventListener("click",(()=>{this.swiper&&this.swiper.slideTo(s)})),e.appendChild(i)}}},syncSlidePagination(e){const i=e.activeIndex,t=e.slides.length;for(let e=1;e<=t;e++){const s=this.ref(`slidePagination-${e}`);s&&this.createPaginationBullets(s,t,i)}},updateMobileCounter(e){const i=this.ref("counter");if(i){const t=i.querySelector(".current");if(t){const i=e.slides[e.activeIndex];if(i){const e=i.getAttribute("data-slide-num")||"01";t.textContent=e}}}},unmount(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)}}}}]);

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.