PageSourceSearch

https://www.acollectedman.com/cdn/shop/t/312/assets/uwp.slider-main.js?v=142526329982269827921747299557

js acollectedman.com collected 2026-10-02 03:33:54 UTC 3,256 bytes, 1 lines download raw bytes

1import{r as p}from"./uwp.theme-sections.js";import{c as l}from"./uwp.cssClasses.js";import{C as d}from"./uwp.carousel.js";import{b as u}from"./uwp.breakpoints.js";import"./uwp.utils.js";const s={id:"SliderMain",pagination:'[js-slider-main="pagination"]',btnNext:'[js-slider-main="btnNext"]',btnPrev:'[js-slider-main="btnPrev"]',progress:'[js-slider-main="progress"]',cell:'[js-carousel="cell"]'};let r={},a=1,h;p("slider-main",{getConfig(){return{swiper:{autoplay:this.getAutoplaySetting(),autoHeight:!0,navigation:{nextEl:this.btnNext,prevEl:this.btnPrev},pagination:{el:this.pagination,type:"fraction",clickable:!1,renderFraction(t,e){return`<span class="${t}"></span><span class="pagination-separator">|</span><span class="${e}"></span>`}},spaceBetween:0,effect:"fade",fadeEffect:{crossFade:!0},breakpoints:{1024:{autoHeight:!1}}}}},cacheSelectors(){const t=`#${s.id}-${this.id}`,e=`${t} ${s.pagination}`,i=`${t} ${s.btnNext}`,o=`${t} ${s.btnPrev}`,c=`${t} ${s.progress}`,n=`${t} ${s.cell}`;this.cache={container:t,pagination:e,btnNext:i,btnPrev:o,progress:c,cell:n}},setNodeSelectors(){this.container=document.querySelector(this.cache.container),this.pagination=document.querySelector(this.cache.pagination),this.progress=document.querySelector(this.cache.progress),this.btnNext=document.querySelector(this.cache.btnNext),this.btnPrev=document.querySelector(this.cache.btnPrev),this.cell=document.querySelectorAll(this.cache.cell)},getCellCount(){var t;return(t=this.cell)==null?void 0:t.length},getAutoplaySetting(){const t=Number(this.container.dataset.autoplay);return t?{delay:t,disableOnInteraction:!1}:!1},autoplayOnHover(t){if(!this.container)throw new Error(`Could not find container of ${this.cache.container}`);window.matchMedia(`(min-width: ${u.desktop})`).matches&&(this.container.addEventListener("mouseenter",()=>{t.autoplay.stop(),this.progress.classList.add(l.disabled)}),this.container.addEventListener("mouseleave",()=>{t.autoplay.start(),this.progress.classList.remove(l.disabled),this.updateSwiperProgressBar(t)}))},constructCarousel(){if(!this.container)throw new Error(`Could not find container of ${this.cache.container}`);r=d(this.cache.container,this.getConfig()),r.init(),this.swiperInstance=r.getSwiperInstance(),this.getCellCount()>1&&this.getAutoplaySetting()&&(this.autoplayOnHover(this.swiperInstance),this.initProgressBar(this.swiperInstance))},initProgressBar(t){if(!this.container)throw new Error(`Could not find container of ${this.cache.container}`);this.updateSwiperProgressBar(t),t.on("slideChange",()=>{this.updateSwiperProgressBar(t)})},updateSwiperProgressBar(t){if(!this.container)throw new Error(`Could not find container of ${this.cache.container}`);const e=this.progress,i=t.params.autoplay.delay/100;if(!e||!t.autoplay)return;function o(){n(),h=setInterval(c,i)}function c(){!t.autoplay.running&&t.autoplay.paused||(a++,e.style.width=`${a}%`,a>=100&&n())}function n(){a=1,e.style.width=1,clearInterval(h)}o()},onLoad(){this.cacheSelectors(),this.setNodeSelectors(),this.constructCarousel()},onUnload(){r.resize()},onSelect(){r.resize()},onBlockSelect(t){this.swiperInstance.autoplay.stop();const i=t.target.dataset.swiperSlideIndex;r.select(i,0)},onBlockDeselect(){this.swiperInstance.autoplay.start()}});

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.