PageSourceSearch

https://strandboards.com/cdn/shop/t/17/assets/components-splide-product.bundle.min.js

js strandboards.com collected 2026-09-29 09:47:37 UTC 2,069 bytes, 1 lines download raw bytes

1import{E as e}from"./shared-import-splide.esm.bundle.min.js";function t(t){const{on:o,off:i,bind:d,unbind:n}=e(t);function s(e){const o=t.Components.Slides.filter((t=>t.slide.dataset.mediaId===e.toString()));o.length&&t.go(o[0].index)}function a(e){const o=t.Components.Slides.getAt(e);if(!o)return;const i=o.slide.querySelector("[data-product-single-media-wrapper]");t.root.querySelector(".splide__track").style.maxHeight=i.offsetHeight+"px"}t.root.addEventListener("click",(e=>{e.target.classList.contains("splide__pagination__page")&&(t.paginationClicked=!0)})),d(document.body,"cascade:product:variantchange",(e=>{if(e.target.contains(t.root)&&void 0!==e.detail.variant.featured_media){s(e.detail.variant.featured_media.id)}}));const r=debounce((e=>{a(t.index)}),150);function c(){t.root.querySelectorAll("[aria-hidden]").forEach((e=>{e.removeAttribute("aria-hidden")})),n(document.body,"cascade:product:variantchange"),delete window.productSectionsWithSlideshows[t.root.id]}function l(){if(t.root.dataset.firstMedia)if(t.splides){const e=[];for(const o of t.splides){const t=new Promise(((e,t)=>{o.on("mount",e())}));e.push(t)}Promise.all(e).then((()=>{s(t.root.dataset.firstMedia)}))}else s(t.root.dataset.firstMedia);window.productSectionsWithSlideshows[t.root.id]=t.root.closest("[data-product-section]"),a(t.index)}function u(e,o){const i=t.Components.Slides,d=i.getAt(o).slide.querySelector("[data-product-single-media-wrapper]"),n=i.getAt(e).slide,s=i.getAt(e).slide.querySelector("[data-product-single-media-wrapper]");d&&d.dispatchEvent(new CustomEvent("mediaHidden")),s&&s.offsetHeight&&s.dispatchEvent(new CustomEvent("mediaVisible"));const a=parseInt(n.dataset.mediaId,10),r=window.productSectionsWithSlideshows[`${t.root.id}`];r&&r.dispatchEvent(new CustomEvent("cascade:product:slidechange",{bubbles:!0,detail:{currentMediaId:a}}))}function p(e){a(e)}return d(window,"resize",r),{mount(){o("mounted",l),o("moved",u),o("move",p),o("destroy",c)}}}window.productSectionsWithSlideshows=window.productSectionsWithSlideshows||{};export{t as SplideProduct};

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.