PageSourceSearch

https://www.juliska.com/cdn/shop/t/722/assets/collection-list.js?v=61918188857174791851789995314

js juliska.com collected 2026-09-25 19:11:54 UTC 4,790 bytes, 2 lines download raw bytes

1if(!customElements.get("collection-list")){class CollectionList extends HTMLElement{constructor(){super()}connectedCallback(){this.selectors={sliderWrapper:".collection-list__items",pagination:".swiper-pagination",nextEl:".swiper-btn-next",prevEl:".swiper-btn-prev"},this.classes={grid:"f-grid",swiper:"swiper",swiperWrapper:"swiper-wrapper"},this.sectionId=this.dataset.sectionId,this.section=this.closest(`.section-${this.sectionId}`),this.sliderWrapper=this.querySelector(this.selectors.sliderWrapper),this.sliderPagination=this.parentElement.querySelector(this.selectors.pagination),this.enableSlider=this.dataset.enableSlider==="true",this.items=parseInt(this.dataset.items),this.tabletItems=parseInt(this.dataset.tabletItems),this.mobileItems=parseInt(this.dataset.mobileItems||"1"),this.sliderInstance=!1,this.enableSwipeMobile=this.classList.contains("swipe-mobile"),!(!this.enableSlider||!this.enableSwipeMobile)&&(this.init(),document.addEventListener("matchMobile",()=>{this.handleViewportChange()}),document.addEventListener("unmatchMobile",()=>{this.handleViewportChange()}))}init(){if(this.enableSlider){this.initSlider();return}FoxTheme.config.mqlMobile&&(this.destroySlider(),this.enableSwipeMobile&&this.initSlider())}initSlider(){const columnGap=FoxTheme.utils.getGridColumnGap(this.sliderWrapper),sliderOptions={slidesPerView:Number.isFinite(this.mobileItems)?this.mobileItems:this.tabletItems>3?3:parseInt(this.tabletItems),slidesPerGroup:1,spaceBetween:columnGap.mobile,navigation:{nextEl:this.section.querySelector(this.selectors.nextEl),prevEl:this.section.querySelector(this.selectors.prevEl)},pagination:{el:this.sliderPagination,clickable:!0,renderBullet:function(index,className){return`<button class="${className}"></button>`}},breakpoints:{768:{slidesPerView:this.tabletItems>2?2:parseInt(this.tabletItems),spaceBetween:columnGap.tablet},1024:{slidesPerView:this.tabletItems>2?2:parseInt(this.tabletItems),spaceBetween:columnGap.tabletLarge},1280:{slidesPerView:parseInt(this.items),spaceBetween:columnGap.desktop}},loop:!0,threshold:2,grabCursor:!0,allowTouchMove:!0,simulateTouch:!0,touchRatio:1,touchAngle:45,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,speed:400,preventInteractionOnTransition:!1,observer:!0,observeParents:!0,on:{init:this.handleSliderInit.bind(this),transitionEnd:this.handleTransitionEnd.bind(this),slideChange:this.handleBulletAriaUpdate.bind(this)}};typeof this.sliderInstance!="object"&&(this.classList.add(this.classes.swiper),this.sliderWrapper.classList.contains("dynamic")||this.sliderWrapper.classList.remove(this.classes.grid),this.sliderWrapper.classList.add(this.classes.swiperWrapper),this.sliderInstance=new window.FoxTheme.Carousel(this,sliderOptions),this.sliderInstance.init(),FoxTheme.a11y.getFocusableElements(this).forEach(element=>{element.addEventListener("focusin",()=>{const slide=element.closest(".swiper-slide");this.sliderInstance.slider.slideTo(this.sliderInstance.slider.slides.indexOf(slide))})})),Shopify.designMode&&typeof this.sliderInstance=="object"&&document.addEventListener("shopify:block:select",e=>{if(e.detail.sectionId!=this.sectionId)return;let{target}=e;const index=Number(target.dataset.index);this.sliderInstance.slider.slideToLoop(index)})}handleViewportChange(){if(this.enableSlider){this.destroySlider(),this.initSlider();return}this.init()}handleSliderInit(swiper){if(this.sliderPagination){const activeBullet=this.sliderPagination.querySelector(".swiper-pagination-bullet-active");activeBullet&&(activeBullet.classList.remove("swiper-pagination-bullet-active"),activeBullet.offsetHeight,activeBullet.classList.add("swiper-pagination-bullet-active"))}if(swiper&&swiper.pagination&&swiper.pagination.bullets.length){const total=swiper.pagination.bullets.length;swiper.pagination.bullets.forEach((bullet,i)=>{bullet.setAttribute("aria-label",`Go to slide ${i+1} of ${total}`),i===swiper.realIndex&&bullet.setAttribute("aria-current","true")})}}handleBulletAriaUpdate(swiper){swiper.pagination&&swiper.pagination.bullets.length&&swiper.pagination.bullets.forEach((bullet,i)=>{i===swiper.realIndex?bullet.setAttribute("aria-current","true"):bullet.removeAttribute("aria-current")})}handleTransitionEnd(){this.sliderInstance&&this.sliderInstance.slider&&this.sliderInstance.slider.update(
1)}destroySlider(){this.classList.remove(this.classes.swiper),this.sliderWrapper.classList.remove(this.classes.swiperWrapper),this.sliderWrapper.classList.contains("dynamic")||this.sliderWrapper.classList.add(this.classes.grid),typeof this.sliderInstance=="object"&&(this.sliderInstance.slider.destroy(),this.sliderInstance=!1)}}customElements.define("collection-list",CollectionList)}
2//# sourceMappingURL=/cdn/shop/t/722/assets/collection-list.js.map?v=61918188857174791851789995314

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.