1"use strict";class StickyAddCart extends HTMLElement{constructor(){super(),this.init()}init(){this.getHeightAddToCart();const btn_minimal=this.querySelector("minimal-button");btn_minimal&&btn_minimal.addEventListener("click",this.toggle.bind(this),!1)}getHeightAddToCart(){const _this=this;if(this.main=this.closest(".sec__featured-product"),!this.main)return;const primaryBtn=this.main.querySelector(".button-trigger__sticky"),footer=document.querySelector(".product-sticky-hide");if(primaryBtn){var isVisible=!0;window.addEventListener("scroll",function(){var buttonRect=primaryBtn.getBoundingClientRect(),viewportHeight=window.innerHeight;if(footer){var footerRect=footer.getBoundingClientRect();footerRect.top<window.innerHeight-100?(_this.classList.remove("show-sticky-cart"),isVisible=!0):!isVisible&&buttonRect.top<viewportHeight&&buttonRect.bottom>0?(isVisible=!0,_this.classList.remove("show-sticky-cart")):isVisible&&buttonRect.bottom<=0&&(isVisible=!1,_this.classList.add("show-sticky-cart"))}else!isVisible&&buttonRect.top<viewportHeight&&buttonRect.bottom>0?(isVisible=!0,_this.classList.remove("show-sticky-cart")):isVisible&&buttonRect.bottom<=0&&(isVisible=!1,_this.classList.add("show-sticky-cart"))})}}toggle(e){const target=e.currentTarget;if(target.classList.toggle("opened"),!target)return;const parent=target.closest("sticky-add-cart");if(!parent)return;const content=parent.querySelector(".content--expand");slideAnime({target:content,animeType:"slideToggle"})}}customElements.define("sticky-add-cart",StickyAddCart);class SoldProduct extends HTMLElement{constructor(){super(),this.sold=this.dataset.sold,this.hours=this.dataset.hours,this.message=this.dataset.message,this.init()}init(){if(this.message&&this.sold&&this.hours){var message="";message=this.message.replace("{{ sold }}",this.randomSelect(this.sold)).replace("{{ hours }}",this.randomSelect(this.hours)),this.innerHTML+=message}}randomSelect(numbers){const numberArray=numbers.split(","),randomIndex=Math.floor(Math.random()*numberArray.length);return numberArray[randomIndex]}}customElements.define("sold-product",SoldProduct);class LiveView extends HTMLElement{constructor(){super(),this.min=this.dataset.min,this.max=this.dataset.max,this.interval=this.dataset.interval,this.message=this.dataset.message,this.init()}init(){this.message&&this.max&&this.min&&this.interval&&(this.handle(),setInterval(()=>{this.handle()},this.interval*1e3))}handle(){var message="";message=this.message.replace("[count]",this.randomSelect(parseInt(this.min),parseInt(this.max))),this.innerHTML=message}randomSelect(min,max){return Math.floor(Math.random()*(max-min+1))+min}}customElements.define("live-view",LiveView);class CompareRadios extends SwatchInit{constructor(){super(),this.variantData=this.variantData||JSON.parse(this.querySelector('[type="application/json"]').textContent),this.init(),this.initFunction()}initFunction(){this.querySelectorAll(".product__color-swatches--js").forEach(btn=>{btn.addEventListener("click",this.onVariantChange.bind(this),!1)})}onVariantChange(e){e.preventDefault(),e.currentTarget.classList.toggle("active"),this.handleWhenSwatchUpdate()}handleWhenSwatchUpdate(){this.updateOptions();const arrayItem=this.updateMasterId(this.variantData);this.handleMediaCompare(arrayItem)}handleMediaCompare(arrayItem){if(!arrayItem)return;const html=` 2 ${arrayItem.map(item=>` 3 <div class="compare__items-inner"> 4 <img width="300px" height="300px" src="${item.featured_media.preview_image.src}" alt="${item.featured_media.alt}"> 5 <p class="mb-0 mt-10 heading-style capitalize">${item.title}</p></div> 6 `).join("")} 7 `,compareColorContent=this.closest(".compare-colors__content");if(!compareColorContent)return;const compareItems=compareColorContent.querySelector(".compare__items");compareItems&&(compareItems.innerHTML=html)}updateMasterId(variantData){let arrayItem=[];return this.options.forEach(option=>{const matchingVariant=variantData.find(variant=>variant.options.includes(option));matchingVariant&&arrayItem.push(matchingVariant)}),arrayItem}}customElements.define("compare-radios",CompareRadios);class ProductRecommendations extends SlideSection{constructor(){super()}init(){this.call()}call(){const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");
7html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML),recommendations.innerHTML.trim().length===0&&(this.style.display="none",document.querySelector(".product-recommendations-heading")&&document.querySelector(".product-recommendations-heading").remove())}).finally(()=>{this.querySelector(".swiper-wrapper")&&(this.initSlide(),BlsAnimations.init(),BlsLazyloadImg.init()),initLazyloadItem()}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 400px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations);class SkeletonPage extends HTMLElement{constructor(){super(),this.init()}init(){window.setTimeout(()=>{this.classList.remove("skeleton")},1500)}}customElements.define("skeleton-page",SkeletonPage);class ProductGrouped extends HTMLElement{constructor(){super(),this.init()}init(){var group=this.querySelector('.productGroup[type="application/json"]');if(group){var variantData=JSON.parse(group.innerText),query="";variantData.forEach((e,key,variantData2)=>{Object.is(variantData2.length-1,key)?query+=e:query+=e+"%20OR%20id:"});var productAjaxURL="?q=id:"+query+"§ion_id=product-grouped";fetch(`${window.routes.search_url}${productAjaxURL}`).then(response=>response.text()).then(async responseText=>{const html=new DOMParser().parseFromString(responseText,"text/html");this.innerHTML=html.querySelector(".product-group").innerHTML}).catch(e=>{throw e}).finally(()=>{this.eventProductGroupAction()})}}eventProductGroupAction(){document.querySelectorAll(".product-group-list .product-variant-option").forEach(select=>{select.addEventListener("change",event=>{var target=event.target,image=target.options[target.selectedIndex].getAttribute("data-image"),price=target.options[target.selectedIndex].getAttribute("data-price"),pro_handle=target.getAttribute("data-handle"),image=target.options[target.selectedIndex].getAttribute("data-image"),price=target.options[target.selectedIndex].getAttribute("data-price"),pro_handle=target.getAttribute("data-handle"),compare_price=target.options[target.selectedIndex].getAttribute("data-compare-price"),img=target.closest(".product-group-list").querySelector(".product-group-item ."+pro_handle).querySelector("img");img&&(img.removeAttribute("srcset"),img.setAttribute("src",image));const productTarget=target.closest(".product-group-item"),bls__price=productTarget.querySelector(".product-item__price .card-product-price");if(bls__price){if(!bls__price.querySelector(".compare-price")){var ps=document.createElement("div"),sp=document.createElement("span"),cp=document.createElement("s");cp.classList.add("price-item","compare-price"),sp.appendChild(cp),ps.appendChild(sp),ps.classList.add("price-regular"),productTarget.querySelector(".card-product-price")&&productTarget.querySelector(".card-product-price").appendChild(ps)}const cpp=bls__price.querySelector(".compare-price");if(cpp)if(compare_price&&compare_price>price){const compare_format=Shopify.formatMoney(compare_price,themeGlobalVariables.settings.money_format);cpp.innerHTML=compare_format,bls__price.querySelector(".price-regular")&&bls__price.querySelector(".price-regular").classList.add("primary-color"),bls__price.querySelector(".price-regular .price")&&bls__price.querySelector(".price-regular .price").classList.add("price--special")}else cpp.innerHTML="",bls__price.querySelector(".price-regular")&&bls__price.querySelector(".price-regular").classList.remove("primary-color"),bls__price.querySelector(".price-regular .price")&&(bls__price.querySelector(".price-regular .price").innerHTML=Shopify.formatMoney(price,cartStrings.money_format),bls__price.querySelector(".price-regular .price").classList.remove("price--special"))}target.setAttribute("data-price",price),target.setAttribute("data-compare-price",compare_price)},!1)});let totalQty=0;const classQty=document.querySelectorAll(".quantity__input-product-group");classQty.forEach(input=>{let valueQtyDefault=input.value,valueAsDefault=parseFloat(valueQtyDefault);isNaN(valueAsDefault)||(totalQty+=valueAsDefault),input.addEventListener("change",()=>
7{totalQty=0,classQty.forEach(value=>{let valueQty=value.value,valueAsQty=parseFloat(valueQty);isNaN(valueAsQty)||(totalQty+=valueAsQty)})})}),document.querySelectorAll(".product-group-submit").forEach(button=>{button.addEventListener("click",event=>{if(totalQty===0){const content=document.querySelector(".form-infor .add-cart-error"),messageErrQty=button.getAttribute("data-add-cart-err-qty");if(handleErrorMessagePopup(messageErrQty),!content)return}else this.submitProductGroup(event)},!1)}),document.querySelectorAll(".product-group-buy-now").forEach(button=>{button.addEventListener("click",event=>{if(totalQty===0){const content=document.querySelector(".form-infor .add-cart-error"),messageErrQty=button.getAttribute("data-add-cart-err-qty");if(handleErrorMessagePopup(messageErrQty),!content)return}else this.submitNowProductGroup(event)},!1)})}submitNowProductGroup(event){event.preventDefault();const form=document.getElementById("form-product-grouped"),config=fetchConfig("json");config.headers["X-Requested-With"]="XMLHttpRequest",delete config.headers["Content-Type"];const formData=new FormData(form);config.body=formData,fetch(`${routes.cart_add_url}.js`,config).then(response=>response.text()).then(state=>{if(JSON.parse(state).items)window.location.href="/checkout";else if(!document.querySelector(".form-infor .add-cart-error"))return}).catch(e=>{throw e})}submitProductGroup(event){event.preventDefault();const target=event.currentTarget,cart=document.querySelector("cart-notification")||document.querySelector("cart-drawer"),form=document.getElementById("form-product-grouped"),config=fetchConfig("json");config.headers["X-Requested-With"]="XMLHttpRequest",delete config.headers["Content-Type"];let openMiniCart=0;const formData=new FormData(form);cart&&(formData.append("sections",cart.getSectionsToRender().map(section=>section.id)),formData.append("sections_url",window.location.pathname)),config.body=formData,target.classList.add("loading"),fetch(`${routes.cart_add_url}.js`,config).then(response=>response.text()).then(state=>{fetch("/cart.json").then(res=>res.json()).then(cart2=>{if(cart2.item_count!=null){document.querySelectorAll(".cart-count").forEach(el=>{el.classList.contains("cart-count-drawer")?el.innerHTML=`(${cart2.item_count})`:el.innerHTML=cart2.item_count>100?"~":cart2.item_count}),document.querySelector("header-total-price")&&document.querySelector("header-total-price").updateTotal(cart2);const cart_free_ship=document.querySelector("free-ship-progress-bar");cart_free_ship&&cart_free_ship.init(cart2.items_subtotal_price)}}).catch(error=>{throw error});const parsedState=JSON.parse(state);if(parsedState.message){handleErrorMessagePopup(parsedState.description);return}else parsedState.items.forEach(e=>{e.quantity>0&&(openMiniCart=1)}),cart.getSectionsToRender().forEach(section=>{const elementToReplace=document.getElementById(section.id),html=new DOMParser().parseFromString(parsedState.sections[section.id],"text/html");elementToReplace.innerHTML=html.querySelector("#minicart-form").innerHTML;const countdown=cart.querySelector(".cart-countdown-time"),html_countdown=html.querySelector(".cart-countdown-time");countdown&&html_countdown&&(countdown.innerHTML=html_countdown.innerHTML)}),cart.cartAction()}).catch(e=>{throw e}).finally(()=>{target.classList.remove("loading"),openMiniCart===1&&cart.open();const cartRecommend=document.querySelector(".cart-recommend");if(cartRecommend&&!cartRecommend.classList.contains("hidden-recommend"))if(cartRecommend.classList.contains("cart-recommend-custom")){const cartUpsellItem=document.querySelectorAll(".cart-upsell-item"),cartUpsellSlide=document.querySelectorAll(".swiper-cart-upsell .swiper-slide");cartUpsellItem.length>0?setTimeout(function(){cartRecommend.classList.add("open")},800):cartUpsellSlide.length===0&&(cartRecommend.classList.remove("block"),cartRecommend.classList.add("hidden"))}else setTimeout(function(){cartRecommend.classList.add("open")},800)})}}customElements.define("product-group",ProductGrouped);class SwatchDropdown extends HTMLElement{constructor(){super(),this.spanFor=this.dataset.spanFor,this.init()}init(){this.spanFor&&this.addEventListener("click",this.activeFilterSort.bind(this),!1)}activeFilterSort(){this.querySelector(`#${this.spanFor}`).classList.contains("active")?this.querySelector(`#${this.spanFor}`).classList.remove("active"):this.querySelector(`#${this.spanFor}`).classList.add("active")}}customElements.define("swatch-dropdown",SwatchDropdown);class ProductBoughtTogether extends HTMLElement{constructor(){super(),this.init()}init(){const boughTogether=document.querySelector('.productBoughTogether[type="application/json"]');if(!boughTogether)return;const variantData=JSON.parse(boughTogether.innerText);let query="";variantData.forEach((e,key,variantData2)=>{Object.is(variantData2.length-1,key)?query+=e:query+=e+"%20OR%20id:"});const productAjaxURL="?q=id:"+query+"§ion_id=product-bough-together";fetch(`${window.routes.search_url}${productAjaxURL}`).then(response=>response.text()).then(async responseText=>{const html=new DOMParser().parseFromString(responseText,"text/html");document.getElementById("product-bought-together").innerHTML=html.querySelector(".bought-together").innerHTML}).catch(e=>{throw e}).finally(()=>{this.eventProductBoughTogetherAction()})}eventProductBoughTogetherAction(){var _this=this;document.querySelectorAll(".bought-together-checkbox").forEach(checkbox=>{checkbox.addEventListener("change",event=>{var target=event.target,total_price=0,total_compare_price=0,save_price=0,price,compare_price,pro_handle=event.target.getAttribute("data-handle"),img=target.closest("#product-bought-together").querySelector(".product-bought-image-item."+pro_handle);target.checked?(img.classList.add("select"),target.closest(".product-bought-together-item").classList.add("select"),target.closest(".product-bought-together-item").querySelector(".product-variant-option").removeAttribute("disabled"),target.closest(".product-bought-together-item").querySelector(".quantity").removeAttribute("disabled")):(img.classList.remove("select"),target.closest(".product-bought-together-item").classList.remove("select"),target.closest(".product-bought-together-item").querySelector(".product-variant-option").setAttribute("disabled",!0),target.closest(".product-bought-together-item").querySelector(".quantity").setAttribute("disabled",!0)),setTimeout(function(){var bought_together_select=document.querySelectorAll(".product-bought-together-item.select");bought_together_select.forEach(item=>{var option=item.querySelector(".product-variant-option");price=option.getAttribute("data-price"),compare_price=option.getAttribute("data-compare-price"),total_price=total_price+Number(price),total_compare_price=total_compare_price+Number(compare_price)}),save_price=total_compare_price-total_price,_this.eventProductBoughTogetherUpdatePrice(total_price,total_compare_price,save_price),bought_together_select.length<=1?document.querySelector(".bought-together-submit").setAttribute("disabled",!0):document.querySelector(".bought-together-submit").removeAttribute("disabled")},50)},!1)}),document.querySelectorAll("#product-bought-together .product-variant-option").forEach(select=>{select.addEventListener("change",event=>{var target=event.target,total_price=0,total_compare_price=0,save_price=0,image=target.options[target.selectedIndex].getAttribute("data-image"),price=target.options[target.selectedIndex].getAttribute("data-price"),pro_handle=target.getAttribute("data-handle"),compare_price=target.options[target.selectedIndex].getAttribute("data-compare-price"),img=target.closest("#product-bought-together").querySelector(".product-bought-image-item."+pro_handle).querySelector("img");img&&(img.removeAttribute("srcset"),img.setAttribute("src",image));const productTarget=target.closest(".product-bought-together-item"),bls__price=productTarget.querySelector(".product-item__price .card-product-price");if(bls__price){if(!bls__price.querySelector(".compare-price")){var ps=document.createElement("div"),sp=document.createElement("span"),cp=document.createElement("s");cp.classList.add("price-item","compare-price"),sp.appendChild(cp),ps.appendChild(sp),ps.classList.add("price-regular"),productTarget.querySelector(".card-product-price")&&productTarget.querySelector(".card-product-price").appendChild(ps)}const cpp=bls__price.querySelector(".compare-price");if(cpp)if(compare_price&&compare_price>price){const compare_format=Shopify.formatMoney(compare_price,themeGlobalVariables.settings.money_format);cpp.innerHTML=compare_format,bls__price.querySelector(".price-regular")&&bls__price.querySelector(".price-regular").classList.add("primary-color"),bls__price.querySelector(".price-regular .price")&&bls__price.querySelector(".price-regular .price").classList.add("price--special")}else cpp.innerHTML="",bls__price.querySelector(".price-regular")&&bls__price.querySelector(".price-regular").classList.remove("primary-color"),bls__price.querySelector(".price-regular .price")&&(bls__price.querySelector(".price-regular .price").innerHTML=Shopify.formatMoney(price,cartStrings.money_format),bls__price.querySelector(".price-regular .price").classList.remove("price--special"))}target.setAttribute("data-price",price),target.setAttribute("data-compare-price",compare_price),document.querySelectorAll(".product-bought-together-item.select").forEach(item=>{var option=item.querySelector(".product-variant-option");price=option.getAttribute("data-price"),compare_price=option.getAttribute("data-compare-price"),total_price=total_price+Number(price),total_compare_price=total_compare_price+Number(compare_price)}),save_price=total_compare_price-total_price,_this.eventProductBoughTogetherUpdatePrice(total_price,total_compare_price,save_price)},!1)}),document.querySelectorAll(".bought-together-submit").forEach(button=>{button.addEventListener("click",this.submitBoughtTogether.bind(this),!1)})}submitBoughtTogether(event){event.preventDefault();const target=event.currentTarget,cart=document.querySelector("cart-notification")||document.querySelector("cart-drawer"),form=document.getElementById("bought-together-form"),config=fetchConfig("json");config.headers["X-Requested-With"]="XMLHttpRequest",delete config.headers["Content-Type"];const formData=new FormData(form);cart&&(formData.append("sections",cart.getSectionsToRender().map(section=>section.id)),formData.append("sections_url",window.location.pathname)),config.body=formData,target.classList.add("loading"),fetch(`${routes.cart_add_url}.js`,config).then(response=>response.text()).then(state=>{fetch("/cart.json").then(res=>res.json()).then(cart2=>{if(cart2.item_count!=null){document.querySelectorAll(".cart-count").forEach(el=>{el.classList.contains("cart-count-drawer")?el.innerHTML=`(${cart2.item_count})`:el.innerHTML=cart2.item_count>100?"~":cart2.item_count}),document.querySelector("header-total-price")&&document.querySelector("header-total-price").updateTotal(cart2);const cart_free_ship=document.querySelector("free-ship-progress-bar");cart_free_ship&&cart_free_ship.init(cart2.items_subtotal_price)}}).catch(error=>{throw error});const parsedState=JSON.parse(state);
7cart.getSectionsToRender().forEach(section=>{const elementToReplace=document.getElementById(section.id),html=new DOMParser().parseFromString(parsedState.sections[section.id],"text/html");elementToReplace.innerHTML=html.querySelector("#minicart-form").innerHTML;const countdown=cart.querySelector(".cart-countdown-time"),html_countdown=html.querySelector(".cart-countdown-time");countdown&&html_countdown&&(countdown.innerHTML=html_countdown.innerHTML)}),cart.cartAction()}).catch(e=>{throw e}).finally(()=>{target.classList.remove("loading"),cart.open();const cartRecommend=document.querySelector(".cart-recommend");if(cartRecommend&&!cartRecommend.classList.contains("hidden-recommend"))if(cartRecommend.classList.contains("cart-recommend-custom")){const cartUpsellItem=document.querySelectorAll(".cart-upsell-item"),cartUpsellSlide=document.querySelectorAll(".swiper-cart-upsell .swiper-slide");cartUpsellItem.length>0?setTimeout(function(){cartRecommend.classList.add("open")},800):cartUpsellSlide.length===0&&(cartRecommend.classList.remove("block"),cartRecommend.classList.add("hidden"))}else setTimeout(function(){cartRecommend.classList.add("open")},800)})}eventProductBoughTogetherUpdatePrice(total_price,total_compare_price,save_price){var total=document.querySelector("#product-bought-together .box-total");total&&(total.querySelector(".saved-price .price").innerHTML=Shopify.formatMoney(save_price,cartStrings.money_format),total.querySelector(".total-price .price__sale .price-item").innerHTML=Shopify.formatMoney(total_compare_price,cartStrings.money_format),total.querySelector(".total-price .price").innerHTML=Shopify.formatMoney(total_price,cartStrings.money_format),total_compare_price>total_price?(total.querySelector(".total-price").classList.add("price--on-sale"),total.querySelector(".total-price .price").classList.add("special-price")):(total.querySelector(".total-price").classList.remove("price--on-sale"),total.querySelector(".total-price .price").classList.remove("special-price")),save_price>1?total.querySelector(".saved-price").classList.remove("hidden"):total.querySelector(".saved-price").classList.add("hidden"))}}customElements.define("product-bought-together",ProductBoughtTogether),document.addEventListener("DOMContentLoaded",function(){function addProductEntry(productJson2,storedProducts2){storedProducts2===null&&(storedProducts2=[]);var currentProductID=productJson2.id.toString();if(!storedProducts2.includes(currentProductID))storedProducts2.unshift(currentProductID),storedProducts2.length>25&&storedProducts2.pop(),localStorage.setItem("glozin__recently-viewed-products",JSON.stringify(storedProducts2));else{const index=storedProducts2.indexOf(currentProductID);index>-1&&storedProducts2.splice(index,1),storedProducts2.unshift(currentProductID),localStorage.setItem("glozin__recently-viewed-products",JSON.stringify(storedProducts2))}}const prodData=document.querySelector("[data-product-json]");if(prodData!=null){var productJson=JSON.parse(prodData.innerHTML),storedProducts=JSON.parse(localStorage.getItem("glozin__recently-viewed-products"));addProductEntry(productJson,storedProducts)}});var BlsDropDownProduct=(function(){return{innit:function(){var custom_select=document.querySelectorAll(".custom-select");custom_select&&custom_select.forEach(item=>{item.querySelector(".select__selected").addEventListener("click",e=>{e.target.nextElementSibling.classList.toggle("hidden")})}),document.addEventListener("click",function(event){event.target.closest(".custom-select")||document.querySelectorAll(".select__dropdown")?.forEach(item=>{item.classList.add("hidden")})})}}})();BlsDropDownProduct.innit();var SyncQuantityInput={init:()=>{const syncInputs=document.querySelectorAll(".product-detail__buy-buttons input.quantity-input");syncInputs.forEach(input=>{input.addEventListener("change",function(){const value=this.value;syncInputs.forEach(otherInput=>{otherInput!==input&&(otherInput.value=value)})})})}};SyncQuantityInput.init();class SlideSectionProductSet extends HTMLElement{constructor(){super(),this.globalSlide=null,this.init()}init(){document.body.classList.contains("index")?window.pageYOffset>0||document.body.classList.contains("swiper-lazy")?this.initSlide():this.classList.contains("lazy-loading-swiper-before")?this.initSlide():this.classList.add("lazy-loading-swiper-after"):this.initSlide()}initSlide(){const _this=this;var autoplaying=_this?.dataset.autoplay==="true";const loop=_this?.dataset.loop==="true",itemDesktop=_this?.dataset.desktop?_this?.dataset.desktop:4;var itemTablet=_this?.dataset.tablet?_this?.dataset.tablet:"";const itemMobile=_this?.dataset.mobile?_this?.dataset.mobile:1,direction=_this?.dataset.direction?_this?.dataset.direction:"horizontal";var autoplaySpeed=_this?.dataset.autoplaySpeed?_this?.dataset.autoplaySpeed*1e3:3e3,speed=_this?.dataset.speed?_this?.dataset.speed:400;const effect=_this?.dataset.effect?_this?.dataset.effect:"slide",row=_this?.dataset.row?_this?.dataset.row:1;var spacing=_this?.dataset.spacing?_this?.dataset.spacing:30;const autoItem=_this?.dataset.itemMobile==="true",arrowCenterimage=_this?.dataset.arrowCenterimage?_this?.dataset.arrowCenterimage:0;spacing=Number(spacing),autoplaySpeed=Number(autoplaySpeed),speed=Number(speed),autoplaying&&(autoplaying={delay:autoplaySpeed}),itemTablet||(itemDesktop<2?itemTablet=1:itemDesktop<3?itemTablet=2:itemTablet=3),this.globalSlide=new Swiper(_this,{slidesPerView:autoItem?"auto":itemMobile,spaceBetween:spacing>
7=15?15:spacing,autoplay:autoplaying,direction,loop,effect,speed,watchSlidesProgress:!0,watchSlidesVisibility:!0,grid:{rows:row,fill:"row"},navigation:{nextEl:_this.querySelector(".swiper-button-next"),prevEl:_this.querySelector(".swiper-button-prev")},pagination:{clickable:!0,el:document.querySelector(".swiper-pagination-product-set"),type:"custom",renderCustom:function(swiper,current,total){return current+"/"+total}},breakpoints:{768:{slidesPerView:itemTablet,spaceBetween:spacing>=30?30:spacing},1025:{slidesPerView:itemDesktop,spaceBetween:spacing}},on:{init:function(){if(arrowCenterimage){var items_slide=_this.querySelectorAll(".product-item__media--ratio");if(items_slide.length!=0){var oH=[];items_slide.forEach(e=>{oH.push(e.offsetHeight/2)});var max=Math.max(...oH),arrowsOffset="--arrows-offset-top: "+max+"px";_this.querySelectorAll(".swiper-arrow")&&_this.querySelectorAll(".swiper-arrow").forEach(arrow=>{arrow.setAttribute("style",arrowsOffset)})}}}}})}}customElements.define("slide-section-product-set",SlideSectionProductSet); 8//# sourceMappingURL=/cdn/shop/t/43/assets/main-product.js.map?v=137491880711528280091784016485
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.