PageSourceSearch

https://shop.plugos.net/cdn/shop/t/65/assets/global.js?v=16790104193656413541787830513

js plugos.net collected 2026-10-01 16:02:23 UTC 55,596 bytes, 2 lines download raw bytes

1const sliderInit=isUpdate=>{document.querySelectorAll(".js-media-list")&&document.querySelectorAll(".js-media-list").length>0&&document.querySelectorAll(".js-media-list").forEach(elem=>{const mediaListId=elem.dataset?.jsMediaListId,mediaSublist=Array.from(document.querySelectorAll(".js-media-sublist")).find(subElem=>subElem.dataset?.jsMediaListId===mediaListId&&subElem.swiper),autoplay=elem.dataset.autoplay=="true";let autoplaySettings;const stopAutoplay=elem.dataset.stopAutoplay=="true",delay=elem.dataset.delay*1e3,speed=elem.dataset.speed*1e3,id=elem.dataset.section;autoplay?autoplaySettings={autoplay:{delay,pauseOnMouseEnter:stopAutoplay,disableOnInteraction:!1,waitForTransition:!0}}:autoplaySettings={};let slider=new Swiper(elem,{slidesPerView:1,spaceBetween:1,autoHeight:!0,speed,navigation:{nextEl:`#${id}-slider .product__slider-nav .swiper-button-next`,prevEl:`#${id}-slider .product__slider-nav .swiper-button-prev`},pagination:{el:`#${id}-slider .product__pagination`,type:"bullets",clickable:!0},thumbs:{swiper:mediaListId&&mediaSublist?mediaSublist.swiper:""},on:{init:function(){elem.style.setProperty("--bullet-duration",`${delay}ms`),document.body.style.setProperty("--bullet-duration-product-modal",`${delay}ms`)},slideChangeTransitionStart:function(){mediaListId&&mediaSublist&&window.innerWidth>=990&&mediaSublist.swiper.slides.forEach((slide,index)=>{index===this.activeIndex?slide.classList.add("swiper-slide-thumb-active"):slide.classList.remove("swiper-slide-thumb-active")})},slideChange:function(){window.pauseAllMedia(),this.params.noSwiping=!1,elem.style.setProperty("--bullet-duration",`${delay+speed}ms`);let allBullets=this.el.querySelectorAll(".swiper-pagination-bullet");allBullets&&allBullets.length>0&&(allBullets.forEach(item=>{item.classList.remove("swiper-pagination-bullet-active")}),allBullets[this.activeIndex].classList.add("swiper-pagination-bullet-active")),document.body.style.setProperty("--bullet-duration-product-modal",`${delay+speed}ms`),document.querySelector(".js-popup-slider")&&document.querySelector(".js-popup-slider").swiper&&document.querySelector(".js-popup-slider").swiper.slideTo(this.activeIndex)},slideChangeTransitionEnd:function(){this.slides[this.activeIndex].querySelector("model-viewer")&&this.slides[this.activeIndex].querySelector(".shopify-model-viewer-ui__button--poster").removeAttribute("hidden")},touchStart:function(){this.slides[this.activeIndex].querySelector("model-viewer")&&(this.slides[this.activeIndex].querySelector("model-viewer").classList.contains("shopify-model-viewer-ui__disabled")?this.params.noSwiping=!1:(this.params.noSwiping=!0,this.params.noSwipingClass="swiper-slide"))}},...autoplaySettings});if(autoplay&&stopAutoplay){const sliderWrapper=document.querySelector(".product__main");sliderWrapper.addEventListener("mouseenter",()=>{document.querySelector(".product__main .swiper-pagination-bullet-active").classList.remove("animation-start"),document.querySelector(".product__main .swiper-pagination-bullet-active").classList.add("animation-none")}),sliderWrapper.addEventListener("mouseleave",()=>{document.querySelector(".product__main .swiper-pagination-bullet-active").classList.remove("animation-none"),document.querySelector(".product__main .swiper-pagination-bullet-active").classList.add("animation-start")})}isUpdate&&setTimeout(function(){slider.update()},800)})},subSliderInit=isUpdate=>{document.querySelectorAll(".js-media-sublist")&&document.querySelectorAll(".js-media-sublist").length>0&&document.querySelectorAll(".js-media-sublist").forEach((elem,index)=>{const box=document.querySelector(".js-media-sublist"),mediaListId=elem.dataset?.jsMediaListId,mainImgHeight=document.querySelector(".product__media-list").offsetHeight,subitems=document.querySelectorAll(".product__media-subitem"),subitemsHeight=subitems[0].offsetWidth/.775+16,subitemsCountInView=mainImgHeight/subitemsHeight;let perViewDesktopPlus=subitems.length>6?5.8:subitems.length,perViewDesktop=subitems.length>5?5:subitems.length,perViewTablet=subitems.length>3?3.9:subitems.length,perViewLaptop=subitems.length>4?3.8:subitems.length,perViewLarge=subitems.length>8?7.8:subitems.length;const perView=box.dataset.sectionLayout=="container"?perViewTablet:perViewLarge;perViewDesktopPlus=box.dataset.sectionLayout=="container"?perViewTablet:perViewDesktopPlus;let subSlider=new Swiper(elem,{slidesPerView:subitems.length||3.5,spaceBetween:3,direction:"horizontal",freeMode:!1,watchSlidesProgress:!0,centeredSlides:!0,centeredSlidesB
1ounds:!0,slideToClickedSlide:!0,updateOnWindowResize:!0,on:{touchEnd:function(s,e){let range=5,diff=s.touches.diff=s.isHorizontal()?s.touches.currentX-s.touches.startX:s.touches.currentY-s.touches.startY;(diff<range||diff>-range)&&(s.allowClick=!0)},slideChange:function(){}},breakpoints:{990:{spaceBetween:5,direction:"horizontal",slidesPerView:subitems.length||perViewTablet,centeredSlides:!0,centeredSlidesBounds:!0,slideToClickedSlide:!1,allowTouchMove:!1,simulateTouch:!1,touchRatio:0},1200:{spaceBetween:3,direction:"horizontal",slidesPerView:subitems.length||perViewLaptop,slideToClickedSlide:!1,allowTouchMove:!1,simulateTouch:!1,touchRatio:0},1400:{spaceBetween:3,direction:"horizontal",slidesPerView:subitems.length||perViewDesktop,slideToClickedSlide:!1,allowTouchMove:!1,simulateTouch:!1,touchRatio:0},1600:{spaceBetween:3,direction:"horizontal",slidesPerView:subitems.length||box.dataset.sectionLayout=="container"?perViewTablet:perViewDesktop,slideToClickedSlide:!1,allowTouchMove:!1,simulateTouch:!1,touchRatio:0},1920:{spaceBetween:3,direction:"horizontal",slidesPerView:subitems.length||perViewDesktopPlus,slideToClickedSlide:!1,allowTouchMove:!1,simulateTouch:!1,touchRatio:0},2300:{spaceBetween:3,direction:"horizontal",slidesPerView:subitems.length||perView,slideToClickedSlide:!1,allowTouchMove:!1,simulateTouch:!1,touchRatio:0}}});const sliderResizeObserve=new ResizeObserver(entries=>{const[entry]=entries;setTimeout(()=>{const sliders=document.querySelectorAll(".js-media-list"),thumbs=document.querySelectorAll(".product__media-sublist");if(sliders.length>0&&thumbs.length>0&&index>=0&&index<sliders.length){const sliderHeight=sliders[index].getBoundingClientRect().height;thumbs[index].style.height=`${sliderHeight-1}px`}},400)});document.querySelector(".product-section")&&sliderResizeObserve.observe(document.querySelector(".product-section")),document.querySelector(".featured-product")&&sliderResizeObserve.observe(document.querySelector(".featured-product")),isUpdate&&setTimeout(function(){subSlider.update()},800)})},popupSliderInit=isUpdate=>{if(document.querySelector(".js-popup-slider")){let popupSlider=new Swiper(document.querySelector(".js-popup-slider"),{slidesPerView:1,navigation:{nextEl:".product-media-modal .product__slider-nav .swiper-button-next",prevEl:".product-media-modal .product__slider-nav .swiper-button-prev"},pagination:{el:".product-media-modal .product__pagination",type:"bullets",clickable:!0},on:{afterInit:function(){document.querySelector(".product__outer--slideshow")&&document.querySelectorAll(".product__media-list .product__media-toggle").forEach((elem,index)=>{elem.addEventListener("click",e=>{document.querySelector(".js-popup-slider")&&document.querySelector(".js-popup-slider").swiper&&document.querySelector(".js-popup-slider").swiper.slideTo(index)})})},slideChange:function(){window.pauseAllMedia(),this.params.noSwiping=!1,document.querySelector(".product-media-modal__content").classList.remove("zoom")},touchMove:function(){document.querySelector(".product-media-modal__content").classList.remove("zoom")},slideChangeTransitionEnd:function(){this.slides[this.activeIndex].querySelector("model-viewer")&&this.slides[this.activeIndex].querySelector(".shopify-model-viewer-ui__button--poster").removeAttribute("hidden")}}});isUpdate&&setTimeout(function(){popupSlider.update()},800)}};navigator.userAgent.indexOf("iPhone")>-1&&document.querySelector("[name=viewport]").setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1");function getFocusableElements(container){return container?Array.from(container.querySelectorAll("summary, a[href], button:enabled, [tabindex]:not([tabindex^='-']), [draggable], area, input:not([type=hidden]):enabled, select:enabled, textarea:enabled, object, iframe")):[]}document.querySelectorAll('[id^="Details-"] summary').forEach(summary=>{summary.setAttribute("role","button"),summary.setAttribute("aria-expanded","false"),summary.nextElementSibling.getAttribute("id")&&summary.setAttribute("aria-controls",summary.nextElementSibling.id),summary.addEventListener("click",event2=>{event2.currentTarget.setAttribute("aria-expanded",!event2.currentTarget.closest("details").hasAttribute("open"))}),!summary.closest("header-drawer")&&summary.parentElement.addEventListener("keyup",onKeyUpEscape)});function onKeyUpEscape(event2){if(event2.code.toUpperCase()!=="ESCAPE")return;const openDetailsElement=event2.target.closest("details[open]");if(!openDetailsElement)return;const summaryElement=openDetailsElement.querySelector("summary");openDetailsElement.removeAttribute("open"),summaryElement.setAttribute("aria-expanded",!1),summaryElement.focus()}const trapFocusHandlers={};function trapFocus(container,elementToFocus=container){var elements=getFocusableElements(container),first=elements[0],last=elements[elements.length-1];removeTrapFocus(),trapFocusHandlers.focusin=event2=>{event2.target!==container&&event2.target!==last&&event2.target!==first||document.addEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.keydown=function(event2){event2.code.toUpperCase()==="TAB"&&(event2.target===last&&!event2.shiftKey&&(event2.preventDefault(),first.focus()),(event2.target===container||event2.target===first)&&event2.shiftKey&&(event2.preventDefault(),last.focus()))},document.addEventListener("focusout",trapFocusHandlers.focusout),document.addEventListener("focusin",trapFocusHandlers.focusin),elementToFocus&&elementToFocus.focus()}function pauseAllMedia(){document.querySelectorAll(".product__outer .js-youtube").forEach(video=>{video.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),document.querySelectorAll(".product__outer .js-vimeo").forEach(video=>{video.contentWindow.postMessage('{"method":"pause"}',"*")}),document.querySelectorAll(".product__outer video").forEach(video=>video.pause()),document.querySelectorAll(".product__outer product-model").forEach(model=>{model.modelViewerUI&&model.modelViewerUI.pause()})}function removeTrapFocus(elementToFocus=null){document.removeEventListener("focusin",trapFocusHandlers.focusin),document.removeEventListener("focusout",trapFocusHandlers.focusout),document.removeEventListener("keydown",trapFocusHandlers.keydown),elementToFocus&&!elementToFocus.classList.contains("card-focused")&&elementToFocus.focus()}class QuantityInput extends HTMLElement{constructor(){super(),this.input=this.querySelector("input"),this.changeEvent=ne
1w Event("change",{bubbles:!0}),this.querySelectorAll("button").forEach(button=>{this.setMinimumDisable(),button.addEventListener("click",this.onButtonClick.bind(this))});var eventList=["paste","input"];for(event of eventList)this.input.addEventListener(event,function(e){/^0*?[1-9]\d*$/.test(e.currentTarget.value)||e.currentTarget.value===""?e.currentTarget.value:e.currentTarget.value=1,e.currentTarget.value===1||e.currentTarget.value===""?this.previousElementSibling.classList.add("disabled"):this.previousElementSibling.classList.remove("disabled")});this.input.addEventListener("focusout",function(e){e.currentTarget.value===""&&(e.currentTarget.value=1)})}setMinimumDisable(){this.input.value==1?this.querySelector('button[name="minus"]').classList.add("disabled"):this.querySelector('button[name="minus"]').classList.remove("disabled")}onButtonClick(event2){event2.preventDefault();const previousValue=this.input.value;event2.target.name==="plus"||event2.target.classList.contains("quantity__button_plus")?this.input.stepUp():this.input.stepDown(),previousValue!==this.input.value&&this.input.dispatchEvent(this.changeEvent),this.setMinimumDisable()}}customElements.define("quantity-input",QuantityInput);function debounce(fn,wait){let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn.apply(this,args),wait)}}const serializeForm=form=>{const obj={},formData=new FormData(form);for(const key of formData.keys())obj[key]=formData.get(key);return JSON.stringify(obj)};function fetchConfig(type="json"){return{method:"POST",headers:{"Content-Type":"application/json",Accept:`application/${type}`}}}typeof window.Shopify>"u"&&(window.Shopify={}),Shopify.bind=function(fn,scope){return function(){return fn.apply(scope,arguments)}},Shopify.setSelectorByValue=function(selector,value){for(var i=0,count=selector.options.length;i<count;i++){var option=selector.options[i];if(value==option.value||value==option.innerHTML)return selector.selectedIndex=i,i}},Shopify.addListener=function(target,eventName,callback){target.addEventListener?target.addEventListener(eventName,callback,!1):target.attachEvent("on"+eventName,callback)},Shopify.postLink=function(path,options){options=options||{};var method=options.method||"post",params=options.parameters||{},form=document.createElement("form");form.setAttribute("method",method),form.setAttribute("action",path);for(var key in params){var hiddenField=document.createElement("input");hiddenField.setAttribute("type","hidden"),hiddenField.setAttribute("name",key),hiddenField.setAttribute("value",params[key]),form.appendChild(hiddenField)}document.body.appendChild(form),form.submit(),document.body.removeChild(form)},Shopify.CountryProvinceSelector=function(country_domid,province_domid,options){this.countryEl=document.getElementById(country_domid),this.provinceEl=document.getElementById(province_domid),this.provinceContainer=document.getElementById(options.hideElement||province_domid),Shopify.addListener(this.countryEl,"change",Shopify.bind(this.countryHandler,this)),this.initCountry(),this.initProvince()},Shopify.CountryProvinceSelector.prototype={initCountry:function(){var value=this.countryEl.getAttribute("data-default");Shopify.setSelectorByValue(this.countryEl,value),this.countryHandler()},initProvince:function(){var value=this.provinceEl.getAttribute("data-default");value&&this.provinceEl.options.length>0&&Shopify.setSelectorByValue(this.provinceEl,value)},countryHandler:function(e){var opt=this.countryEl.options[this.countryEl.selectedIndex],raw=opt.getAttribute("data-provinces"),provinces=JSON.parse(raw);if(this.clearOptions(this.provinceEl),provinces&&provinces.length==0)this.provinceContainer.style.display="none";else{for(let i=0;i<provinces.length;i++){var opt=document.createElement("option");opt.value=provinces[i][0],opt.innerHTML=provinces[i][1],this.provinceEl.appendChild(opt)}this.provinceContainer.style.display=""}},clearOptions:function(selector){for(;selector.firstChild;)selector.removeChild(selector.firstChild)},setOptions:function(selector,values){for(var i=0,count=values.length;i<values.length;i++){var opt=document.createElement("option");opt.value=values[i],opt.innerHTML=values[i],selector.appendChild(opt)}}};const body=document.body;let bodyScrollTop=null,locked=!1;function getScrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}function preventScroll(e){e.preventDefault()}function lockScroll(){bodyScrollTop=typeof window.pageYOffset<"u"?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var scrollBarWidth=getScrollbarWidth();body.style.paddingRight=scrollBarWidth+"px",body.classList.add("scroll-locked"),body.style.setProperty("--scroll",`${-bodyScrollTop+"px"}`),locked=!0,document.addEventListener("scroll",preventScroll,{passive:!1})}function unlockScroll(){body.classList.remove("scroll-locked"),body.style.setProperty("--scroll",`${-bodyScrollTop+"px"}`),body.style.paddingRight="",window.scrollTo(0,bodyScrollTop),document.removeEventListener("scroll",preventScroll)}class MenuDrawer extends HTMLElement{constructor(){super(),this.mainDetailsToggle=this.querySelector("details");const summaryElements=this.querySelectorAll("summary");this.addAccessibilityAttributes(summaryElements),this.headerWrapper=document.querySelector(".header-wrapper"),this.headerWrapper&&(this.headerWrapper.preventHide=!1),navigator.platform==="iPhone"&&document.documentElement.style.setProperty("--viewport-height",`${window.innerHeight}px`),this.addEventListener("keyup",this.onKeyUp.bind(this)),this.addEventListener("focusout",this.onFocusOut.bind(this)),this.bindEvents()}bindEvents(){this.querySelectorAll("summary").forEach(summary=>summary.addEventListener("click",this.onSummaryClick.bind(this))),this.querySelectorAll("button").forEach(button=>{this.querySelector(".toggle-scheme-button")!==button&&this.querySelector(".header__localization-button")!==button&&this.querySelector(".header__localization-lang-button")!==button&&button.addEventListener("click",this.onCloseButtonClick.bind(this))})}addAccessibilityAttributes(summaryElements){summaryElements.forEac
1h(element=>{element.setAttribute("role","button"),element.setAttribute("aria-expanded",!1),element.setAttribute("aria-controls",element.nextElementSibling.id)})}onKeyUp(event2){if(event2.code.toUpperCase()!=="ESCAPE")return;const openDetailsElement=event2.target.closest("details[open]");openDetailsElement&&(openDetailsElement===this.mainDetailsToggle?this.closeMenuDrawer(this.mainDetailsToggle.querySelector("summary")):this.closeSubmenu(openDetailsElement))}onSummaryClick(event2){const summaryElement=event2.currentTarget,detailsElement=summaryElement.parentNode,isOpen=detailsElement.hasAttribute("open");detailsElement===this.mainDetailsToggle?(isOpen&&event2.preventDefault(),isOpen?this.closeMenuDrawer(summaryElement):this.openMenuDrawer(summaryElement)):(trapFocus(summaryElement.nextElementSibling,detailsElement.querySelector("button")),setTimeout(()=>{detailsElement.classList.add("menu-opening")}))}openMenuDrawer(summaryElement){this.headerWrapper&&(this.headerWrapper.preventHide=!0),setTimeout(()=>{this.mainDetailsToggle.classList.add("menu-opening")}),summaryElement.setAttribute("aria-expanded",!0),trapFocus(this.mainDetailsToggle,summaryElement),document.body.classList.add(`overflow-hidden-${this.dataset.breakpoint}`)}closeMenuDrawer(event2,elementToFocus=!1){if(event2!==void 0){this.mainDetailsToggle.classList.remove("menu-opening"),this.mainDetailsToggle.querySelectorAll("details").forEach(details=>{details.removeAttribute("open"),details.classList.remove("menu-opening")}),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1),document.body.classList.remove(`overflow-hidden-${this.dataset.breakpoint}`),removeTrapFocus(elementToFocus),this.closeAnimation(this.mainDetailsToggle),this.header=this.header||document.querySelector(".shopify-section-header");const main=document.querySelector("main");if(main?.querySelectorAll(".shopify-section")[0]?.classList.contains("section--has-overlay")&&!this.header.classList.contains("animate")){this.header.classList.remove("color-background-overlay-hidden");const colorScheme=main.querySelectorAll(".shopify-section")[0]?.querySelector("[data-header-transparent]")?.getAttribute("data-header-transparent-color-scheme")||"";main.querySelectorAll(".shopify-section")[0]?.querySelector("[data-header-transparent]")&&this.header.querySelector(".header-wrapper").classList.contains("header-wrapper--full-width")&&(this.header.classList.add("color-background-overlay"),this.header.classList.add(colorScheme))}this.headerWrapper&&(this.headerWrapper.preventHide=!1)}}onFocusOut(event2){setTimeout(()=>{this.mainDetailsToggle.hasAttribute("open")&&!this.mainDetailsToggle.contains(document.activeElement)&&this.closeMenuDrawer()})}onCloseButtonClick(event2){const detailsElement=event2.currentTarget.closest("details");this.closeSubmenu(detailsElement)}closeSubmenu(detailsElement){detailsElement.classList.remove("menu-opening"),removeTrapFocus(),this.closeAnimation(detailsElement)}closeAnimation(detailsElement){let animationStart;const handleAnimation=time=>{animationStart===void 0&&(animationStart=time),time-animationStart<400?window.requestAnimationFrame(handleAnimation):(detailsElement.removeAttribute("open"),detailsElement.closest("details[open]")&&trapFocus(detail
1sElement.closest("details[open]"),detailsElement.querySelector("summary")))};window.requestAnimationFrame(handleAnimation)}}customElements.define("menu-drawer",MenuDrawer);class HeaderDrawer extends MenuDrawer{constructor(){super(),this.headerWrapper=document.querySelector(".header-wrapper"),this.headerWrapper&&(this.headerWrapper.preventHide=!1);const overlay=document.querySelector(".header-drawer-overlay");overlay&&overlay.addEventListener("click",event2=>{this.closeMenuDrawer(event2)})}openMenuDrawer(summaryElement){this.headerWrapper&&(this.headerWrapper.preventHide=!0),this.header=this.header||document.querySelector(".shopify-section-header"),this.borderOffset=this.borderOffset||this.closest(".header-wrapper").classList.contains("header-wrapper--border-bottom")?1:0;const main=document.querySelector("main");if(main?.querySelectorAll(".shopify-section")[0]?.classList.contains("section--has-overlay")){const colorScheme=main.querySelectorAll(".shopify-section")[0]?.querySelector("[data-header-transparent]")?.getAttribute("data-header-transparent-color-scheme")||"";this.header.classList.remove("color-background-overlay"),colorScheme&&this.header.classList.remove(colorScheme);const headerTransparent=document.querySelector(".shopify-section-header").querySelector(".header-wrapper").classList.contains("header-wrapper--full-width");main.querySelectorAll(".shopify-section")[0].querySelector("[data-header-transparent]")&&headerTransparent&&this.header.classList.add("color-background-overlay-hidden")}setTimeout(()=>{this.mainDetailsToggle.classList.add("menu-opening"),document.querySelector(".header-drawer-overlay").classList.add("active")}),summaryElement.setAttribute("aria-expanded",!0),trapFocus(this.mainDetailsToggle,summaryElement),this.closest("sticky-header").disableScroll(),lockScroll()}closeMenuDrawer(event2,elementToFocus=!1){if(event2!==void 0){this.mainDetailsToggle.classList.remove("menu-opening"),document.querySelector(".header-drawer-overlay").classList.remove("active"),this.mainDetailsToggle.querySelectorAll("details").forEach(details=>{details.removeAttribute("open"),details.classList.remove("menu-opening"),document.querySelector(".header-drawer-overlay").classList.remove("active")}),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1),unlockScroll(),this.closest("sticky-header").enableScroll(),removeTrapFocus(elementToFocus),this.closeAnimation(this.mainDetailsToggle),this.header=this.header||document.querySelector(".shopify-section-header");const main=document.querySelector("main");if(main?.querySelectorAll(".shopify-section")[0]?.classList.contains("section--has-overlay")&&!this.header.classList.contains("animate")){this.header.classList.remove("color-background-overlay-hidden");const colorScheme=main.querySelectorAll(".shopify-section")[0]?.querySelector("[data-header-transparent]")?.getAttribute("data-header-transparent-color-scheme")||"";main.querySelectorAll(".shopify-section")[0]?.querySelector("[data-header-transparent]")&&this.header.querySelector(".header-wrapper").classList.contains("header-wrapper--full-width")&&(this.header.classList.add("color-background-overlay"),this.header.classList.add(colorScheme))}this.headerWrapper&&(this.headerWrapper.preventHide=!1)}}}customElements.define("header-drawer",HeaderDrawer);class ModalDialog extends HTMLElement{constructor(){super(),this.querySelector('[id^="ModalClose-"]').addEventListener("click",this.hide.bind(this,!1)),this.addEventListener("keyup",event2=>{event2.code.toUpperCase()==="ESCAPE"&&this.hide()}),this.classList.contains("media-modal")?this.addEventListener("pointerup",event2=>{event2.pointerType==="mouse"&&!event2.target.closest("deferred-media, product-model")&&this.hide()}):this.addEventListener("click",event2=>{event2.target===this&&this.hide()})}connectedCallback(){this.moved||(this.moved=!0,document.body.appendChild(this))}show(opener){this.openedBy=opener;const popup=this.querySelector(".template-popup");document.body.classList.add("overflow-hidden-modal"),this.setAttribute("open",""),popup&&popup.loadContent(),trapFocus(this,this.querySelector('[role="dialog"]')),window.pauseAllMedia()}hide(){let isOpen=!1;this.removeAttribute("open"),removeTrapFocus(this.openedBy),window.pauseAllMedia(),document.querySelectorAll("body > quick-add-modal").forEach(el=>{el.hasAttribute("open")&&(isOpen=!0)}),isOpen||(document.body.classList.remove("overflow-hidden-modal"),document.body.dispatchEvent(new CustomEvent("modalClosed")));const images=document.querySelector(".product-media-modal__content");images&&images.classList.remove("zoom")}}customElements.define("modal-dialog",ModalDialog);class ModalOpener extends HTMLElement{constructor(){super();const button=this.querySelector("button");button&&button.addEventListener("click",()=>{const modal=document.querySelector(this.getAttribute("data-modal"));modal&&modal.show(button)})}}customElements.define("modal-opener",ModalOpener);class DeferredMedia extends HTMLElement{constructor(){super(),this.querySelector('[id^="Deferred-Poster-"]')?.addEventListener("click",this.loadContent.bind(this)),this.getAttribute("data-autoplay")&&this.loadContent()}loadContent(){if(!this.getAttribute("loaded")){const content=document.createElement("div");content.appendChild(this.querySelector("template").content.firstElementChild.cloneNode(!0)),this.setAttribute("loaded",!0),window.pauseAllMedia(),this.appendChild(content.querySelector("video, model-viewer, iframe")).focus();const videoObserver=new IntersectionObserver(entries=>
1{entries.forEach(entry=>{if(entry.isIntersecting){if(this.getAttribute("data-autoplay")){let playPromise=entry.target.play();playPromise!==void 0&&playPromise.then(_=>{}).catch(error=>{})}}else entry.target.pause()})}),deferredElement=this.appendChild(content.querySelector("video, model-viewer, iframe"));if(deferredElement.nodeName=="VIDEO"||deferredElement.nodeName=="IFRAME")if(this.classList.contains("video-section__media")){let playPromise=deferredElement.play();playPromise!==void 0&&playPromise.then(_=>{}).catch(error=>{}),videoObserver.observe(deferredElement)}else deferredElement.play();this.closest(".swiper")?.swiper.slides[this.closest(".swiper").swiper.activeIndex].querySelector("model-viewer")&&(this.closest(".swiper").swiper.slides[this.closest(".swiper").swiper.activeIndex].querySelector("model-viewer").classList.contains("shopify-model-viewer-ui__disabled")||(this.closest(".swiper").swiper.params.noSwiping=!0,this.closest(".swiper").swiper.params.noSwipingClass="swiper-slide"))}}}customElements.define("deferred-media",DeferredMedia);class VariantSelects extends HTMLElement{constructor(){super(),this.addEventListener("change",this.onVariantChange)}onVariantChange(event2){this.getAvailableVariant(event2),this.updateOptions(),this.updateMasterId(),this.toggleAddButton(!0,"",!1),this.updatePickupAvailability(),this.updateVariantStatuses(),this.currentVariant?(this.closest("floated-form")||this.updateMedia(),this.updateURL(),this.updateVariantInput(),this.resetProductFormState(),this.renderProductInfo()):(this.toggleAddButton(!0,"",!0),this.setUnavailable())}getAvailableVariant(event2){if(this.variantData||this.querySelector('[type="application/json"]')){let fixedOptionValue;const fieldsets=this.querySelectorAll("fieldset");event2.target.tagName=="SELECT"?fixedOptionValue=event2.target.options[event2.target.selectedIndex].value:event2.target.tagName=="INPUT"&&(fixedOptionValue=event2.target.value),fieldsets.forEach((fieldset,index)=>{const select=fieldset.querySelector('select[name^="options"]'),radio=fieldset.querySelector(`input[type="radio"][value="${encodeURIComponent(fixedOptionValue)}"]`);select?select.name.includes(event2.target.name)&&(this.fixedSelectIndex=index):radio&&(this.fixedSelectIndex=index)});const fixedOptionValues=Array.from(fieldsets).slice(0,this.fixedSelectIndex+1).map(fieldset=>{const select=fieldset.querySelector('select[name^="options"]');if(select)return select.options[select.selectedIndex].value;const radioSelected=fieldset.querySelector('input[type="radio"]:checked');return radioSelected?radioSelected.value:null}).filter(value=>value!==null);this.availableVariant=this.getVariantData().find(variant=>variant.available&&fixedOptionValues.every((value,index)=>variant[`option${index+1}`]===value)),this.availableVariant||(this.availableVariant=this.getVariantData().find(variant=>variant.available&&variant[`option${this.fixedSelectIndex+1}`]===fixedOptionValue))}}updateOptions(){const fieldsets=Array.from(this.querySelectorAll(".js-radio-colors"));this.options=Array.from(this.querySelectorAll("select"),select=>select.value).concat(fieldsets.map(fieldset=>Array.from(fieldset.querySelectorAll("input")).find(radio=>radio.checked).value))}updateMasterId(){(this.variantData||this.querySelector('[type="application/json"]'))&&(this.currentVariant=this.getVariantData().find(variant=>(this.options.sort(),variant.options.sort(),!variant.options.map((option,index)=>this.options[index]===option).includes(!1))),(!this.currentVariant||!this.currentVariant?.available)&&this.availableVariant&&(this.currentVariant=this.availableVariant,this.querySelectorAll("fieldset").forEach((fieldset,index)=>{const optionValue=this.currentVariant[`option${index+1}`],select=fieldset.querySelector('select[name^="options"]'),radioToSelect=fieldset.querySelector(`input[type="radio"][value="${optionValue}"]`);index!=this.fixedSelectIndex&&(select?select.value=optionValue:radioToSelect&&(radioToSelect.checked=!0))})))}isHidden(elem){const styles=window.getComputedStyle(elem);return styles.display==="none"||styles.visibility==="hidden"}updateMedia(){if(!this.currentVariant||!this.currentVariant?.featured_media)return;document.querySelectorAll(".product__media-wrapper").forEach(elem=>{if(this.isHidden(elem))return;const mainSlider=elem.querySelector(".js-media-list"),thumbsSlider=elem.querySelector(".js-media-sublist");if(this.currentVariant&&this.currentVariant?.featured_media){const newMedia=elem.querySelector(`[data-media-id="${this.dataset.section}-${this.currentVariant.featured_media.id}"]`);if(mainSlider?.swiper&&newMedia){const slideIndex=Number(newMedia.dataset.mediaIndex);Number.isNaN(slideIndex)?mainSlider.swiper.slideTo(mainSlider.swiper.slides.indexOf(newMedia)):(mainSlider.swiper.slideTo(slideIndex),thumbsSlider?.swiper&&thumbsSlider.swiper.slideTo(slideIndex))}}})}updateURL(){if(!this.classList.contains("featured-product-radios")){if(!this.currentVariant||this.dataset.updateUrl==="false")return;const url=appendParamsToUrl({variant:this.currentVariant.id},this.dataset.url);window.history.replaceState({},"",url)}}updateVariantInput(){document.querySelectorAll(`#product-form-${this.dataset.section}, #product-form-installment-${this.dataset.section}`).forEach(productForm=>{const input=productForm.querySelector('input[name="id"]');input.value=this.currentVariant.id,input.dispatchEvent(new Event("change",{bubbles:!0}))})}updateVariantStatuses(){const selectedOptionOneVariants=this.variantData.filter(variant=>this.querySelector(":checked").value===variant.option1),inputWrappers=[...this.querySelectorAll(".product-form__controls")];
1inputWrappers.forEach((option,index)=>{if(index===0)return;const optionInputs=[...option.querySelectorAll('input[type="radio"], option')],previousOptionSelected=inputWrappers[index-1].querySelector(":checked").value,availableOptionInputsValue=selectedOptionOneVariants.filter(variant=>variant.available&&variant[`option${index}`]===previousOptionSelected).map(variantOption=>variantOption[`option${index+1}`]);this.setInputAvailability(optionInputs,availableOptionInputsValue)})}setInputAvailability(listOfOptions,listOfAvailableOptions){listOfOptions.forEach(input=>{listOfAvailableOptions.includes(input.getAttribute("value"))?input.tagName==="OPTION"?input.innerText=input.getAttribute("value"):input.tagName==="INPUT"&&input.classList.remove("disabled"):input.tagName==="OPTION"?input.innerText=window.variantStrings.unavailable_with_option.replace("[value]",input.getAttribute("value")):input.tagName==="INPUT"&&input.classList.add("disabled")})}updatePickupAvailability(){const pickUpAvailability=document.querySelector("pickup-availability");pickUpAvailability&&(this.currentVariant&&this.currentVariant.available?pickUpAvailability.fetchAvailability(this.currentVariant.id):(pickUpAvailability.removeAttribute("available"),pickUpAvailability.innerHTML=""))}renderProductInfo(){const requestedVariantId=this.currentVariant.id,sectionId=this.dataset.originalSection?this.dataset.originalSection:this.dataset.section;fetch(`${this.dataset.url}?variant=${this.currentVariant.id}&section_id=${this.dataset.originalSection?this.dataset.originalSection:this.dataset.section}`).then(response=>response.text()).then(responseText=>{if(!this.currentVariant||this.currentVariant.id!==requestedVariantId)return;const html=new DOMParser().parseFromString(responseText,"text/html"),destination=document.getElementById(`price-${this.dataset.section}`),source=html.getElementById(`price-${this.dataset.originalSection?this.dataset.originalSection:this.dataset.section}`),skuSource=html.getElementById(`Sku-${this.dataset.originalSection?this.dataset.originalSection:this.dataset.section}`),skuDestination=document.getElementById(`Sku-${this.dataset.section}`),inventorySource=html.getElementById(`Inventory-${this.dataset.originalSection?this.dataset.originalSection:this.dataset.section}`),inventoryDestination=document.getElementById(`Inventory-${this.dataset.section}`),colorNameSource=html.getElementById(`ColorName-${this.dataset.originalSection?this.dataset.originalSection:this.dataset.section}`),colorNameDestination=document.getElementById(`ColorName-${this.dataset.section}`);source&&destination&&(destination.innerHTML=source.innerHTML),inventorySource&&inventoryDestination&&(inventoryDestination.innerHTML=inventorySource.innerHTML),skuSource&&skuDestination&&(skuDestination.innerHTML=skuSource.innerHTML,skuDestination.classList.toggle("visibility-hidden",skuSource.classList.contains("visibility-hidden"))),colorNameSource&&colorNameDestination&&(colorNameDestination.innerHTML=colorNameSource.innerHTML);const price=document.getElementById(`price-${this.dataset.section}`);price&&price.classList.remove("visibility-hidden"),inventoryDestination&&inventoryDestination.classList.toggle("visibility-hidden",inventorySource.innerText===""),this.toggleAddButton(!this.currentVariant.available,window.variantStrings.soldOut)})}toggleAddButton(disable=!0,text,modifyClass=!0){const productForm=document.getElementById(`product-form-${this.dataset.section}`);if(!productForm)return;const addButton=productForm.querySelector('[name="add"]'),addButtonText=productForm.querySelector('[name="add"] > span');addButton&&(disable?(addButton.setAttribute("disabled","disabled"),text&&(addButtonText.textContent=text)):(addButton.removeAttribute("disabled"),addButtonText.textContent=window.variantStrings.addToCart))}setUnavailable(){const addButton=document.getElementById(`product-form-${this.dataset.section}`).querySelector('[name="add"]'),price=document.getElementById(`price-${this.dataset.section}`),inventory=document.getElementById(`Inventory-${this.dataset.section}`),sku=document.getElementById(`Sku-${this.dataset.section}`);addButton&&(this.toggleAddButton(!0,window.variantStrings.unavailable),price&&price.classList.add("visibility-hidden"),inventory&&inventory.classList.add("visibility-hidden"),sku&&sku.classList.add("visibility-hidden"))}
1resetProductFormState(){const productForm=document.getElementById(`product-form-${this.dataset.section}`).closest("product-form");if(productForm){const quantity=productForm.querySelector("quantity-input");quantity&&(quantity.input.value=1),productForm?.handleErrorMessage()}}getVariantData(){return this.variantData=this.variantData||JSON.parse(this.querySelector('[type="application/json"]').textContent),this.variantData}}customElements.define("variant-selects",VariantSelects);class VariantRadios extends VariantSelects{constructor(){super()}setInputAvailability(listOfOptions,listOfAvailableOptions){listOfOptions.forEach(input=>{listOfAvailableOptions.includes(input.getAttribute("value"))?input.classList.remove("disabled"):input.classList.add("disabled")})}updateOptions(){const fieldsets=Array.from(this.querySelectorAll("fieldset"));this.options=fieldsets.map(fieldset=>Array.from(fieldset.querySelectorAll("input")).find(radio=>radio.checked).value)}}customElements.define("variant-radios",VariantRadios);class PasswordViewer{constructor(){document.querySelectorAll(".field--pass").forEach(el=>{const input=el.querySelector("input"),btnWrapper=el.querySelector(".button-pass-visibility"),btnOpen=el.querySelector(".icon-eye-close"),btnClose=el.querySelector(".icon-eye");input.addEventListener("input",()=>{input.value!==""?btnWrapper.style.display="block":btnWrapper.style.display="none"}),btnOpen.addEventListener("click",()=>{input.type="text",btnOpen.style.display="none",btnClose.style.display="block"}),btnClose.addEventListener("click",()=>{input.type="password",btnOpen.style.display="block",btnClose.style.display="none"})})}}class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),this.querySelector(".product-recommendations__loading")&&(this.querySelector(".product-recommendations__loading").classList.add("loading"),this.querySelector(".product-recommendations__loading").style.display="flex"),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML),this.querySelector(".product-recommendations__empty")&&(this.querySelector(".product-recommendations__empty").style.display="flex");const generateSrcset=(image,widths=[])=>{const imageUrl=new URL(image.src);return widths.filter(width=>width<=image.width).map(width=>(imageUrl.searchParams.set("width",width.toString()),`${imageUrl.href} ${width}w`)).join(", ")},createImageElement=(image,classes,sizes,productTitle)=>{const previewImage=image.preview_image,newImage=new Image(previewImage.width,previewImage.height);return newImage.className=classes,newImage.alt=image.alt||productTitle,newImage.sizes=sizes,newImage.src=previewImage.src,newImage.srcset=generateSrcset(previewImage,[165,360,533,720,940,1066]),newImage.loading="lazy",newImage};document.querySelectorAll(".js-color-swatches-wrapper").forEach(wrapper=>{wrapper.querySelectorAll(".js-color-swatches input").forEach(input=>{input.addEventListener("click",event2=>{const primaryImage=wrapper.querySelector(".media--first"),secondaryImage=wrapper.querySelector(".media--second"),handleProduct=wrapper.dataset.product;if(event2.currentTarget.checked&&primaryImage){wrapper.querySelector(".js-color-swatches-link").setAttribute("href",event2.currentTarget.dataset.variantLink),wrapper.querySelector('.card__add-to-cart button[name="add"]')&&(wrapper.querySelector('.card__add-to-cart button[name="add"]').setAttribute("aria-disabled",!1),wrapper.querySelector('.card__add-to-cart button[name="add"] > span')&&(wrapper.querySelector('.card__add-to-cart button[name="add"] > span').classList.remove("hidden"),wrapper.querySelector('.card__add-to-cart button[name="add"] .sold-out-message').classList.add("hidden")),wrapper.querySelector('.card__add-to-cart input[name="id"]').value=event2.currentTarget.dataset.variantId);const currentColor=event2.currentTarget.value;jQuery.getJSON(window.Shopify.routes.root+`products/${handleProduct}.js`,function(product){const variant=product.variants.filter(item=>item.featured_media!=null&&item.options.includes(currentColor))[0];if(variant){const newPrimaryImage=createImageElement(variant.featured_media,primaryImage.className,primaryImage.sizes,product.title);if(newPrimaryImage.src!==primaryImage.src){let flag=!1;if(secondaryImage){const secondaryImagePathname=new URL(secondaryImage.src).pathname,newPrimaryImagePathname=new URL(newPrimaryImage.src).pathname;secondaryImagePathname==newPrimaryImagePathname&&(primaryImage.remove(),secondaryImage.classList.remove("media--second"),secondaryImage.classList.add("media--first"),flag=!0)}flag==!1&&(primaryImage.animate({opacity:[1,0]},{duration:200,easing:"ease-in",fill:"forwards"}).finished,setTimeout(function(){primaryImage.replaceWith(newPrimaryImage),newPrimaryImage.animate({opacity:[0,1]},{duration:200,easing:"ease-in"}),secondaryImage&&secondaryImage.remove()},200))}}})}})})});const addClasses=slider=>{const sliderWrapper=slider.querySelector(".product-recommendations__wrapper"),slides=slider.querySelectorAll(".product-recommendations__item");slider.classList.add("swiper"),sliderWrapper&&sliderWrapper.classList.add("swiper-wrapper"),slides.length>
11&&slides.forEach(slide=>{slide.classList.add("swiper-slide")})},initSlider=()=>{const productSlider=()=>{const productSliders=Array.from(document.querySelectorAll(".products-slider"));productSliders.length!==0&&productSliders.forEach(slider=>{const sectionId=slider.dataset.id,perRow=+slider.dataset.perRow,mobilePerView=+slider.dataset.slidersPerViewMobile;let perRowTablet,perRowDesktop,perRowLarge;const speed=slider.dataset.speed*1e3,delay=slider.dataset.delay*1e3,productLimit=+slider.dataset.productLimit,autoplay=toBoolean(slider.dataset.autoplay),mobileAutoplay=toBoolean(slider.dataset.mobileAutoplay),stopAutoplay=toBoolean(slider.dataset.stopAutoplay),showArrows=toBoolean(slider.dataset.showArrows),productCount=+slider.dataset.productCount,offsetWidth=document.body.offsetWidth;let autoplayParm={},arrowsParm={},paginationParm={};offsetWidth>750&&autoplay&&productCount>perRow&&productLimit>perRow?autoplayParm={autoplay:{delay,pauseOnMouseEnter:stopAutoplay,disableOnInteraction:!1}}:offsetWidth<=750&&mobileAutoplay&&(autoplayParm={autoplay:{delay,pauseOnMouseEnter:stopAutoplay,disableOnInteraction:!1}}),showArrows&&(arrowsParm={navigation:{nextEl:`#${sectionId} .swiper-button-next`,prevEl:`#${sectionId} .swiper-button-prev`}});const containerOuter=(document.body.offsetWidth-document.querySelector(`#${sectionId} .popular-product__wrapper`).offsetWidth)/2;document.querySelector(`#${sectionId} .swiper-pagination`).style.paddingLeft=`${containerOuter}px`;const buttonNext=document.querySelector(`#${sectionId} .swiper-button-next`),buttonPrev=document.querySelector(`#${sectionId} .swiper-button-prev`);if(buttonNext&&buttonPrev)if(window.innerWidth>=1200){const buttonOffset=+containerOuter-21;buttonNext.style.right=`${buttonOffset}px`,buttonPrev.style.left=`${buttonOffset}px`}else buttonNext.style.right=`${containerOuter+21}px`,buttonPrev.style.left=`${containerOuter+21}px`;const sectionHeader=document.querySelector(".popular-products .popular-product__wrapper");let columnGaps=(perRow-1)*16,oneCard=(sectionHeader.offsetWidth-columnGaps)/perRow,perViewRightOffset=+(containerOuter*2/oneCard).toFixed(3);if(perViewRightOffset=+(containerOuter*2/oneCard).toFixed(3)-+(perViewRightOffset/oneCard)*16,perRow==1)perRowTablet=perRowDesktop=perRowLarge=1+perViewRightOffset;else{let columnGapsTablet=16,oneCard2=(sectionHeader.offsetWidth-32)/3,oneCardTablet=(sectionHeader.offsetWidth-columnGapsTablet)/2,perViewRightOffsetDekstop=+(containerOuter*2/oneCard2).toFixed(3)-+(perViewRightOffset/oneCard2)*16;perRowTablet=2+(+(containerOuter*2/oneCardTablet).toFixed(3)-+(perViewRightOffset/oneCardTablet)*16),perRowDesktop=3+perViewRightOffsetDekstop,perRowLarge=perRow+perViewRightOffset}perRow==2&&(perRowTablet=perRowDesktop=perRowLarge=2+perViewRightOffset),productCount>4&&(paginationParm={pagination:{el:`#${sectionId} .swiper-pagination`,clickable:!0}});let swiperParms={speed,keyboard:!0,slidesPerView:mobilePerView==1?1.1:2.3,spaceBetween:10,slidesOffsetBefore:containerOuter,breakpoints:{576:{slidesPerView:perRowTablet},750:{spaceBetween:16,slidesPerView:perRowTablet},990:{spaceBetween:16,slidesPerView:perRowDesktop},1200:{spaceBetween:16,slidesPerView:perRow+perViewRightOffset},1800:{spaceBetween:16,slidesPerView:perRowLarge},2e3:{spaceBetween:16,slidesPerView:perRowLarge}},...paginationParm,...arrowsParm,...autoplayParm};function changeBtnPosition(){if(window.innerWidth<750){document.querySelectorAll(`#${sectionId} .swiper-button`).forEach(button=>{button.style.display="none"});return}const image1=document.querySelectorAll(`#${sectionId} .swiper .product-card .card`)[0];image1&&document.querySelectorAll(`#${sectionId} .swiper-button`).forEach(button=>{button.style.display="block",button.style.top=image1.offsetHeight/2-15+"px"})}const swiper=new Swiper(`#${sectionId} .swiper`,swiperParms);swiper.on("slideChange",function(){let allBullets=document.querySelectorAll(`#${sectionId} .swiper-pagination-bullet`);allBullets&&allBullets.length>0&&(allBullets.forEach(item=>{item.classList.remove("swiper-pagination-bullet-active")}),allBullets[swiper.activeIndex].classList.add("swiper-pagination-bullet-active"))}),changeBtnPosition()})};function toBoolean(string){return string==="true"}if(document.querySelector("product-recommendations")!==null){const initslider=setInterval(()=>{document.querySelector("product-recommendations").querySelector(".swiper")!==null&&(document.querySelector("product-recommendations").querySelector(".swiper").classList.contains("swiper-initialized")&&clearInterval(initslider),productSlider())},100)}productSlider(),document.addEventListener("shopify:section:load",function(){productSlider()}),window.addEventListener("resize",function(){productSlider()})};new ResizeObserver(entries2=>{const[entry]=entries2;initSlider()}).observe(this)}).catch(e=>{console.error(e)}).finally(()=>{this.querySelector(".product-recommendations__loading")&&(this.querySelector(".product-recommendations__loading").classList.remove("loading"),this.querySelector(".product-recommendations__loading").remove())}
1))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations);class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector("ul")},this.elements.button.addEventListener("click",this.openSelector.bind(this)),this.elements.button.addEventListener("focusout",this.closeSelector.bind(this)),this.addEventListener("keyup",this.onContainerKeyUp.bind(this)),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this)))}hidePanel(){this.elements.button.setAttribute("aria-expanded","false"),this.elements.panel.setAttribute("hidden",!0)}onContainerKeyUp(event2){event2.code.toUpperCase()==="ESCAPE"&&(this.hidePanel(),this.elements.button.focus())}onItemClick(event2){event2.preventDefault(),this.elements.input.value=event2.currentTarget.dataset.value,this.querySelector("form")?.submit()}openSelector(){this.elements.button.focus(),this.elements.panel.toggleAttribute("hidden"),this.elements.button.setAttribute("aria-expanded",(this.elements.button.getAttribute("aria-expanded")==="false").toString())}closeSelector(event2){this.contains(event2.relatedTarget)||this.hidePanel()}}customElements.define("localization-form",LocalizationForm),(function(){const initHeaderOverlay=()=>{const main=document.getElementById("MainContent");if(!main)return;const sections=main.querySelectorAll(".shopify-section");if(!sections||sections.length===0)return;const firstSection=sections[0];if(!firstSection)return;const sectionFirstChild=firstSection.querySelector("[data-header-overlay]"),sectionFirstChildTransparent=firstSection.querySelector("[data-header-transparent]"),headerGroupSections=document.querySelectorAll(".shopify-section-group-header-group"),header=document.querySelector(".shopify-section-header");if(!header)return;const headerWrapper=header.querySelector(".header-wrapper");if(!headerWrapper)return;const headerTransparent=headerWrapper.classList.contains("header-wrapper--full-width"),colorScheme=sectionFirstChild?.getAttribute("data-header-transparent-color-scheme"),lastHeaderGroupSection=headerGroupSections&&headerGroupSections.length>0?headerGroupSections[headerGroupSections.length-1]:null;sectionFirstChild?lastHeaderGroupSection===header?(firstSection.classList.add("section--has-overlay"),sectionFirstChildTransparent&&headerTransparent&&(header.classList.add("color-background-overlay"),header.classList.forEach(className=>{className.startsWith("color-background-")&&className!=="color-background-overlay"&&header.classList.remove(className)}),colorScheme&&header.classList.add(colorScheme))):(firstSection.classList.remove("section--has-overlay"),sectionFirstChildTransparent&&headerTransparent&&(header.classList.remove("color-background-overlay"),header.classList.forEach(className=>{className.startsWith("color-background-")&&className!=="color-background-overlay"&&header.classList.remove(className)}))):(firstSection.classList.remove("section--has-overlay"),sectionFirstChildTransparent&&headerTransparent&&(header.classList.remove("color-background-overlay"),header.classList.forEach(className=>{className.startsWith("color-background-")&&className!=="color-background-overlay"&&header.classList.remove(className)})))};initHeaderOverlay(),document.addEventListener("shopify:section:load",initHeaderOverlay),document.addEventListener("shopify:section:unload",initHeaderOverlay),document.addEventListener("shopify:section:reorder",initHeaderOverlay)})(),(function(){const productSlider=()=>{const productSliders=Array.from(document.querySelectorAll(".popular-products-section .products-slider"));
1productSliders.length!==0&&productSliders.forEach(slider=>{const sectionId=slider.dataset.id,perRow=+slider.dataset.perRow;let perRowTablet,perRowDesktop,perRowLarge;const speed=slider.dataset.speed*1e3,delay=slider.dataset.delay*1e3,autoplay=toBoolean(slider.dataset.autoplay),mobileAutoplay=toBoolean(slider.dataset.mobileAutoplay),stopAutoplay=toBoolean(slider.dataset.stopAutoplay),showArrows=toBoolean(slider.dataset.showArrows),mobilePerView=slider.dataset.slidersPerViewMobile,offsetWidth=document.body.offsetWidth;let arrowsParm={},autoplayParm={};offsetWidth>750&&autoplay?autoplayParm={autoplay:{delay,pauseOnMouseEnter:stopAutoplay,disableOnInteraction:!1}}:offsetWidth<=750&&mobileAutoplay&&(autoplayParm={autoplay:{delay,pauseOnMouseEnter:stopAutoplay,disableOnInteraction:!1}}),showArrows&&(arrowsParm={navigation:{nextEl:`#${sectionId} .swiper-button-next`,prevEl:`#${sectionId} .swiper-button-prev`}});const containerOuter=(document.body.offsetWidth-document.querySelector(`#${sectionId} .popular-product__wrapper`).offsetWidth)/2;document.querySelector(`#${sectionId} .swiper-pagination`).style.padding=`0 ${containerOuter}px 1rem`;const buttonNext=document.querySelector(`#${sectionId} .swiper-button-next`),buttonPrev=document.querySelector(`#${sectionId} .swiper-button-prev`);if(buttonNext&&buttonPrev)if(window.innerWidth>=1200){const buttonOffset=+containerOuter-21;buttonNext.style.right=`${buttonOffset}px`,buttonPrev.style.left=`${buttonOffset}px`}else buttonNext.style.right=`${containerOuter+21}px`,buttonPrev.style.left=`${containerOuter+21}px`;const sectionHeader=document.querySelector(".popular-products .popular-product__wrapper");let columnGaps=(perRow-1)*16,oneCard=(sectionHeader.offsetWidth-columnGaps)/perRow,perViewRightOffset=+(containerOuter*2/oneCard).toFixed(3);if(perViewRightOffset=+(containerOuter*2/oneCard).toFixed(3)-+(perViewRightOffset/oneCard)*16,perRow==1)perRowTablet=perRowDesktop=perRowLarge=1+perViewRightOffset;else{let columnGapsTablet=16,oneCard2=(sectionHeader.offsetWidth-32)/3,oneCardTablet=(sectionHeader.offsetWidth-columnGapsTablet)/2,perViewRightOffsetDekstop=+(containerOuter*2/oneCard2).toFixed(3)-+(perViewRightOffset/oneCard2)*16;perRowTablet=2+(+(containerOuter*2/oneCardTablet).toFixed(3)-+(perViewRightOffset/oneCardTablet)*16),perRowDesktop=3+perViewRightOffsetDekstop,perRowLarge=perRow+perViewRightOffset}perRow==2&&(perRowTablet=perRowDesktop=perRowLarge=2+perViewRightOffset);let swiperParms={speed,keyboard:!0,slidesPerView:mobilePerView==1?1.1:2.3,spaceBetween:10,slidesOffsetBefore:containerOuter,breakpoints:{576:{slidesPerView:perRowTablet},750:{spaceBetween:16,slidesPerView:perRowTablet},990:{spaceBetween:16,slidesPerView:perRowDesktop},1200:{spaceBetween:16,slidesPerView:perRow+perViewRightOffset},1800:{spaceBetween:16,slidesPerView:perRowLarge},2e3:{spaceBetween:16,slidesPerView:perRowLarge}},pagination:{el:`#${sectionId} .swiper-pagination`,clickable:!0},...arrowsParm,...autoplayParm};new Swiper(`#${sectionId} .swiper`,swiperParms)})};function toBoolean(string){return string==="true"}if(document.querySelector("product-recommendations")!==null){const initslider=setInterval(()=>{document.querySelector("product-recommendations").querySelector(".swiper")!==null&&(document.querySelector("product-recommendations").querySelector(".swiper").classList.contains("swiper-initialized")&&clearInterval(initslider),productSlider())},100)}document.addEventListener("shopify:section:load",function(){productSlider()}),document.addEventListener("DOMContentLoaded",function(){productSlider(),document.addEventListener("shopify:section:load",function(){productSlider()}),window.addEventListener("resize",function(){productSlider()})})})();function formatMoney(cents,format=""){typeof cents=="string"&&(cents=cents.replace(".","")),cents=parseInt(cents,10);let value="";const placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||theme.moneyFormat;function formatWithDelimiters(number,precision=2,thousands=",",decimal="."){if(isNaN(number)||number==null)return"0";number=(number/100).toFixed(precision);const parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${thousands}`),centsAmount=precision>0?decimal+parts[1]:"";return dollarsAmount+centsAmount}const match=formatString.match(placeholderRegex);switch(match?match[1]:"amount"){case"amount":value=formatWithDelimiters(cents,2,",",".");break;case"amount_no_decimals":value=formatWithDelimiters(cents,0,",",".");break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break;case"amount_with_apostrophe_separator":value=formatWithDelimiters(cents,2,"'",".");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ",".");break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",",");break;case"amount_with_period_and_space_separator":value=formatWithDelimiters(cents,2," ",".");break;default:value=formatWithDelimiters(cents,2,",",".")}return formatString.replace(placeholderRegex,value)}
2//# sourceMappingURL=/cdn/shop/t/65/assets/global.js.map?v=16790104193
2656413541787830513

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.