1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(Drupal){'use strict';Drupal.lsInitializeSwiper=function(){return new Promise((resolve)=>{if(typeof window.Swiper!=='undefined'){resolve();return;}const checkSwiper=setInterval(()=>{if(typeof window.Swiper!=='undefined'){clearInterval(checkSwiper);resolve();}},100);});};})(Drupal);; 3(function(document,Drupal,once){'use strict';Drupal.behaviors.swiperCarousels={checkExperiment:function(element){const testableOriginBlock=element.closest('.block--original');return testableOriginBlock?.parentElement.classList.contains('block__ab-testable-block');},attach:function(context){const swiperElements=once('swiper-carousel-init','.swiper__carousel .swiper:not(.swiper-initialized)',context);if(swiperElements.length===0)return;Drupal.lsInitializeSwiper().then(()=>{swiperElements.forEach((element,index)=>{if(this.checkExperiment(element))return;const carouselType=element.getAttribute('data-type');const carouselPagination=element.getAttribute('data-pagination');const noTouch=document.querySelector('html').classList.value.includes('no-touchevents');const $wrapper=element.querySelector('.swiper-wrapper');let swiperItems=$wrapper.querySelectorAll('.carousel__item');const activeIndex=Array.prototype.indexOf.call(swiperItems,$wrapper.querySelector('.carousel__item.is-active'));let spaceBetweenMobile=20;let spaceBetweenTablet=34;let spaceBetweenDesktop=34;let slidesPerGroupMobile=1;let slidesPerGroupTablet=1;let slidesPerGroupDesktop=1;let slidesPerGroupAuto=true;let slidesPerViewMobile='auto';let slidesPerViewTablet='auto';let slidesPerViewDesktop='auto';switch(carouselType){case 'mobile_only':spaceBetweenMobile=0;spaceBetweenTablet=0;spaceBetweenDesktop=0;break;case '2_column_layout':spaceBetweenMobile=0;spaceBetweenTablet=0;spaceBetweenDesktop=34;slidesPerGroupAuto=false;slidesPerGroupMobile=1;slidesPerGroupTablet=1;slidesPerGroupDesktop=2;slidesPerViewMobile=1;slidesPerViewTablet=1;slidesPerViewDesktop=2;break;case '3_column_layout':if(element.closest('.section__two-items'))spaceBetweenDesktop=30;break;case '4_column_layout':if(element.closest('.hub-page-section__shop-collection'))spaceBetweenDesktop=70;break;}let swiperSettings={slidesPerView:slidesPerViewMobile,slidesPerGroup:slidesPerGroupMobile,slidesPerGroupAuto,speed:600,spaceBetween:spaceBetweenMobile,slideClass:'carousel__item',initialSlide:activeIndex?activeIndex:0,breakpoints:{640:{slidesPerView:slidesPerViewTablet,slidesPerGroup:slidesPerGroupTablet,spaceBetween:spaceBetweenTablet},960:{slidesPerView:slidesPerViewDesktop,slidesPerGroup:slidesPerGroupDesktop,spaceBetween:spaceBetweenDesktop}},on:{afterInit:()=>{element.classList.remove('is-loading');}}};if(noTouch&&carouselType!=='mobile_only'){const navigationIndex=Date.now().toString()+Math.floor(Math.random()*1000).toString();let parent=element.parentNode;let prevButton=document.createElement('div');let nextButton=document.createElement('div');prevButton.classList.add('swiper-button-prev','swiper-button-prev-'+navigationIndex);nextButton.classList.add('swiper-button-next','swiper-button-next-'+navigationIndex);parent.append(prevButton);parent.append(nextButton);const navigation={navigation:{nextEl:'.swiper-button-next-'+navigationIndex,prevEl:'.swiper-button-prev-'+navigationIndex}};swiperSettings=Object.assign(swiperSettings,navigation);}if(carouselPagination==='true'){let paginationBlock=document.createElement('div');paginationBlock.classList.add('swiper-pagination','swiper-pagination-'+index);element.append(paginationBlock);const pagination={pagination:{el:'.swiper-pagination-'+index,clickable:true}};swiperSettings=Object.assign(swiperSettings,pagination);}new window.Swiper(element,swiperSettings);});});}};})(document,Drupal,once);;
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.