PageSourceSearch

https://besthybridbatteries.com/cdn/shop/t/15/assets/custom.js?v=135779379299202241301790348219

js besthybridbatteries.com collected 2026-10-08 20:29:34 UTC 59,092 bytes, 9 lines download raw bytes

1"use strict";/*! Global scope initializations -------------------------------------------------- */let html_tag=document.documentElement,root_styles=html_tag,top_id=document.querySelector(".shopify-section-header"),nav_top_id=document.querySelector("#nav-top"),header_outer=document.querySelector("#header-outer"),header_inner=document.querySelector("#header-inner"),header_id=header_outer?header_outer.querySelector("#header"):null,search_id=document.querySelector("#search"),nav_outer=document.querySelector("#nav-outer"),nav_bar_id=document.querySelector("#nav-bar"),nav_id=document.querySelector("#nav"),nav_main=nav_bar_id??nav_id,content_id=document.getElementById("content");const viewportWidth=window.innerWidth,mediaMax1000=window.matchMedia("(max-width: 1000px)"),mediaMin1000=window.matchMedia("(min-width: 1001px)"),asyncOnce={once:!0},asyncPass={passive:!0,once:!0};html_tag.classList.add("js");/*! Environment & feature detection -------------------------------------------------- */const fp=(localPath,key)=>window.filepaths&&window.filepaths[key]||localPath,isMobile=window.matchMedia("(pointer: coarse)").matches||"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;html_tag.classList.add(isMobile?"mobile":"no-mobile");const isShopify=()=>window.Shopify===void 0||Object.keys(window.Shopify).length<3,isShopifyDesignMode=()=>typeof window.Shopify<"u"&&!!window.Shopify.designMode,isHasSelectorSupported=()=>{try{return document.querySelector(":has(*)"),!0}catch{return!1}},global_dir=html_tag.getAttribute("dir")==="rtl"?["rtl",!1]:["ltr",!0],getHtmlTheme=(themes=["xclusive","xtra"])=>{const theme=html_tag.dataset.theme?html_tag.dataset.theme.toLowerCase():null;return theme&&themes.includes(theme)?theme:null};/*! Helper Functions -------------------------------------------------- */const initPopupRootRelocator=(function(){if(window.__popupRelocatorInitialized)return;window.__popupRelocatorInitialized=!0;const MOVED_ATTR="data-popup-moved";function movePopupToRoot(popup,root_id2){!popup||popup.nodeType!==1||popup.getAttribute(MOVED_ATTR)!=="1"&&(root_id2.appendChild(popup),popup.setAttribute(MOVED_ATTR,"1"))}function relocateNow(){const root_id2=document.getElementById("root")||document.body;if(!root_id2||!content_id)return!1;const popups=content_id.querySelectorAll(".popup-a");for(let i=0;i<popups.length;i++)movePopupToRoot(popups[i],root_id2);if(!window.__popupRelocatorContentObserver&&"MutationObserver"in window){const obs=new MutationObserver(mutations=>{for(let m=0;m<mutations.length;m++){const added=mutations[m].addedNodes;for(let j=0;j<added.length;j++){const node=added[j];if(!(!node||node.nodeType!==1)){if(node.classList&&node.classList.contains("popup-a")){movePopupToRoot(node,root_id2);continue}if(node.querySelectorAll){const nested=node.querySelectorAll(".popup-a");for(let k=0;k<nested.length;k++)movePopupToRoot(nested[k],root_id2)}}}}});
1obs.observe(content_id,{childList:!0,subtree:!0}),window.__popupRelocatorContentObserver=obs}return!0}if(!relocateNow())if("MutationObserver"in window){const bootObs=new MutationObserver(()=>{relocateNow()&&bootObs.disconnect()});bootObs.observe(document.documentElement,{childList:!0,subtree:!0})}else document.addEventListener("DOMContentLoaded",relocateNow,{once:!0})})(),getSiblings=el=>el?.parentNode?[...el.parentNode.children].filter(s=>s!==el):[],append_url=(el,content,className,href,access)=>{if(!el)return;const link=createElementWithClass("a",className);link.href=href||"#",access&&(link.tabIndex=-1,link.setAttribute("aria-hidden","true"),link.setAttribute("focusable","false")),link.innerHTML=content,el.appendChild(link)};function new_css(id,href,media){if(document.getElementById(id))return;const link=document.createElement("link");media=media||"screen",link.setAttribute("id",id),link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.setAttribute("media",media);const css=document.querySelectorAll("link[id]");css.length?css[css.length-1].after(link):document.head.appendChild(link)}function loadRes(u,c,i){if(html_tag.classList.contains(i))return typeof c=="function"&&c(),!0;const s=document.createElement("script");s.src=u,s.async=!0,typeof c=="function"&&(s.onload=c),s.onerror=()=>console.warn(`Script failed: ${u}`),document.body.appendChild(s),html_tag.classList.add(i)}function throttle(callback,delay){let timeoutId;return function(){timeoutId||(timeoutId=setTimeout(()=>{callback(),timeoutId=null},delay))}}function clone_with_class(el,cl1,cl2){if(!el)return;const cln=el.cloneNode(!0);cln.classList.add(cl1),el.after(cln),el.classList.add(cl2)}function create_slider(el,settings,minSlides){const imgOverlays=[];let bg=!1;const children=Array.from(el.children),childrenLength=children.length;for(let i=0;i<childrenLength;i++){const child=children[i];child.classList.contains("img-overlay")&&(bg=!0,imgOverlays.push(child),child.remove())}if(childrenLength>1){if(el.tagName.toLowerCase()==="ul"){const ul=el;requestAnimationFrame(()=>{ul.setAttribute("role","none");for(let i=0;i<childrenLength;i++){const li=children[i];li.setAttribute("role","none"),li.classList.add("li")}})}if(minSlides=minSlides||1,childrenLength>parseFloat(minSlides)){let paginationClass=settings&&settings.pagination&&settings.pagination.el||".swiper-pagination";paginationClass=paginationClass.replace(/\./g," ").trim();const dots=document.createElement("span");dots.className=paginationClass;const prev=document.createElement("span");prev.classList.add("swiper-button-prev","swiper-button-nav");const next=document.createElement("span");next.classList.add("swiper-button-next","swiper-button-nav"),el.classList.add("s4wi"),requestAnimationFrame(()=>{prev.setAttribute("role","navigation"),next.setAttribute("role","navigation")});const slidesFragment=document.createDocumentFragment();for(let i=0;i<childrenLength;i++){const child=children[i],wrapper=document.createElement("div");wrapper.classList.add("swiper-slide"),wrapper.appendChild(child),slidesFragment.appendChild(wrapper)}const swiperOuter=document.createElement("div");swiperOuter.className="swiper-outer";const swiperWrapper=document.createElement("div");swiperWrapper.className="swiper-wrapper",swiperWrapper.appendChild(slidesFragment),swiperOuter.appendChild(swiperWrapper);const swiperFragment=document.createDocumentFragment();swiperFragment.appendChild(swiperOuter);const pagination=document.createElement("div");if(pagination.className="swiper-custom-pagination",swiperFragment.appendChild(pagination),settings&&settings.pagination)settings.pagination.el=settings.pagination.el||pagination,pagination.append(prev,dots,createElementWithClass("span","swiper-custom-fraction"),next);else{const navFragment=document.createDocumentFragment();navFragment.append(prev,next),swiperFragment.appendChild(navFragment)}el.appendChild(swiperFragment),settings.navigation=settings.navigation||{},settings.navigation.prevEl=prev,settings.navigation.nextEl=next;const swiperInstance=new Swiper(swiperOuter,settings);return requestAnimationFrame(()=>{const paginationBullets=el.querySelectorAll(".swiper-pagination-bullet");for(let i=0;i<paginationBullets.length;i++)paginationBullets[i].setAttribute("role","navigation")}),swiperInstance}}return bg&&requestAnimationFrame(()=>{for(let i=0;i<imgOverlays.length;i++){const imgOverlay=imgOverlays[i];el.appendChild(imgOverlay)}}),null}function randomize(el){el.setAttribute("data-random",Math.floor(Math.random()*1e4)+1)}
1function assignIndex(elements){elements.forEach((el,index)=>{el.style.zIndex=elements.length-index})}function createElementWithClass(tag,classList){const el=document.createElement(tag);return Array.isArray(classList)||(classList=[classList]),el.classList.add(...classList),el}function runWhenIdle(fn){"requestIdleCallback"in window?requestIdleCallback(fn,{timeout:2e3}):setTimeout(fn,300)}function updateSliders(el){if(!el.classList.contains("s4wi"))return;const sl_el=el.querySelector(".swiper-outer");if(!sl_el)return;function io(entries){for(const entry of entries)entry.isIntersecting&&sl_el.swiper&&sl_el.swiper.updateAutoHeight()}new IntersectionObserver(io).observe(el),setTimeout(()=>{sl_el.swiper&&sl_el.swiper.updateAutoHeight()},300)}/*! Layout utilities -------------------------------------------------- */let stickyOffsetCalculated=!1,stickyOffsetScheduled=!1,stickyListenersAdded=!1;const SO_req=[".m6pr",'[id^="section-"]',".f8ps",".f8sr",".m6cl",".m6ac"],requiredElementsExist=SO_req.some(sel=>document.querySelector(sel));function stickyOffset(){stickyOffsetScheduled||(stickyOffsetScheduled=!0,requestAnimationFrame(()=>{if(stickyOffsetScheduled=!1,stickyOffsetCalculated||!nav_main||!header_outer||!header_inner||!requiredElementsExist)return;const setStickyOffset=()=>{const h=header_outer.getBoundingClientRect().height;html_tag.style.setProperty("--sticky_offset",`${h}px`)},setNavMainOffset=()=>{const h=nav_main.getBoundingClientRect().height;html_tag.style.setProperty("--sticky_offset",`${h}px`)},updateSticky=()=>{mediaMax1000.matches?setStickyOffset():mediaMin1000.matches&&setNavMainOffset()};header_inner.classList.contains("sticky-nav")?(html_tag.classList.add("has-sticky-nav"),updateSticky(),stickyListenersAdded||(mediaMax1000.addEventListener("change",updateSticky),mediaMin1000.addEventListener("change",updateSticky),stickyListenersAdded=!0)):setStickyOffset(),stickyOffsetCalculated=!0}))}isMobile||window.addEventListener("mousemove",stickyOffset,asyncOnce),document.addEventListener("scroll",stickyOffset,asyncPass),window.addEventListener("resize",throttle(()=>{stickyOffsetCalculated=!1,stickyOffset()},500));let scrollbarWidth=null;function getScrollbarWidth(){if(scrollbarWidth!==null)return scrollbarWidth;const docWidth=html_tag.clientWidth;return scrollbarWidth=viewportWidth-docWidth,scrollbarWidth<0&&(scrollbarWidth=0),html_tag.style.setProperty("--scrollbar_width",scrollbarWidth+"px"),scrollbarWidth}mediaMin1000.matches&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{runWhenIdle(getScrollbarWidth)}):runWhenIdle(getScrollbarWidth)),isShopifyDesignMode()&&window.addEventListener("resize",()=>{runWhenIdle(()=>getScrollbarWidth(!0))}),header_inner&&(header_inner.classList.contains("mobile-visible-search")&&html_tag.classList.add("has-mobile-visible-search"),header_inner.classList.contains("t1nn")&&html_tag.classList.add("t1nn")),window.addEventListener("resize",throttle(()=>{customDropHeight(),!(!header_outer||!header_inner)&&requestAnimationFrame(()=>{const headerHeight=header_outer.getBoundingClientRect().height+"px";html_tag.style.setProperty("--header_height_static",headerHeight)})},500));function customDropHeight(){!nav_main||![".m6fr.wide-transparent",".m6fr.size-xl",".m6fr article.size-xl"].some(selector=>document.querySelector(selector))||requestAnimationFrame(function(){if(header_outer&&header_inner){const headerHeight=header_outer.getBoundingClientRect().height+"px";html_tag.style.setProperty("--header_height_static",headerHeight)}if(nav_top_id){const nav_top_idHeight=nav_top_id.getBoundingClientRect().height+"px";html_tag.style.setProperty("--nav_top_h",nav_top_idHeight)}})}let logo_id=document.querySelector("#logo"),logo_img=null;logo_id&&(logo_img=logo_id.querySelector("img")||null),logo_img?logo_img.complete?customDropHeight():logo_img.addEventListener("load",customDropHeight):customDropHeight();const breadcrumb_back=document.querySelectorAll(".breadcrumb-back");if(breadcrumb_back)for(const el of breadcrumb_back)document.referrer.includes(window.location.host)?el.addEventListener("click",e=>{e.preventDefault(),history.back()}):el.remove();const alignMiddleElements=document.getElementsByClassName("align-middle"),alignCenterElements=document.getElementsByClassName("align-center");function checkAndAddClass(elements,className){for(const el of elements){const parent=el.parentNode,grandparent=parent?parent.parentNode:null;(el.previousElementSibling===null&&el.nextElementSibling===null&&parent.id==="content"||el.previousElementSibling===null&&el.nextElementSibling===null&&parent.previousElementSibling===null&&parent.nextElementSibling===null&&grandparent.i
1d==="content")&&content_id.classList.add(className)}}if(checkAndAddClass(alignMiddleElements,"align-center"),checkAndAddClass(alignCenterElements,"align-center-static"),!isHasSelectorSupported()){const list_featured_content_box=document.querySelectorAll(".l4ft .content.box");for(const el of list_featured_content_box){let closestLi=el.closest("li");closestLi&&closestLi.classList.add("has-content-box")}}function scrollToTargetAdjusted(el){"scrollRestoration"in history&&(history.scrollRestoration="manual"),el.scrollIntoView({block:"center"})}const loadMoreItemClicked=localStorage.getItem("loadMoreItemClicked");if(loadMoreItemClicked){const loadMoreSelectors=[`#collection > li > figure > a[href="${loadMoreItemClicked}"]`,`.m6cl .results > div a[href="${loadMoreItemClicked}"]`,`.m6cl .results > .l4ne a[href="${loadMoreItemClicked}"]`],loadMoreTarget=document.querySelector(loadMoreSelectors.join(", ")),loadMoreURL=window.location.href;loadMoreTarget&&!loadMoreURL.includes(loadMoreItemClicked)&&scrollToTargetAdjusted(loadMoreTarget),localStorage.removeItem("loadMoreItemClicked")}/*! Custom Events -------------------------------------------------- */let quickShopEvt=new CustomEvent("quickShop"),ajaxCartEvt=new CustomEvent("ajaxCart"),searchClassesEvt=new CustomEvent("searchClasses"),inputPaddingEvt=new CustomEvent("inputPadding");const transparentHeaderEvt=new CustomEvent("transparentHeaderAsync");window.addEventListener("transparentHeaderAsync",function(){if(!content_id||!header_inner)return;const ffa=content_id.children[0];let ffc,ffd=!1,ffe=!1;if(ffa)if(ffc=ffa.children[0],ffa.classList.contains("shopify-section")&&header_inner.hasAttribute("data-transparent")&&(ffd=!0),ffc&&(ffc.classList.contains("m6bx")||ffc.classList.contains("m6fr"))&&ffc.classList.contains("wide")&&(ffe=!0,ffc.classList.add("im-tr")),ffd&&document.querySelector('.shopify-section-header ~ [class*="shopify-section-announcement-bar"]')&&(ffd=!1),ffd&&ffe&&ffc&&ffc.classList.contains("wide-transparent")){top_id.classList.add("transparent"),html_tag.classList.add("has-first-m6fr-wide"),ffc.classList.contains("m6bx")&&html_tag.classList.add("has-first-m6bx-wide");const hasFlexible=ffc.classList.contains("flexible-section");html_tag.classList.toggle("has-first-flexbile-wide",hasFlexible),ffc.classList.add("is-first-m6fr-wide");const slides=ffa.querySelectorAll(".swiper-slide-active article"),firstSlide=slides.length>0?slides[0]:ffa.querySelector("article"),fallbackEl=ffa.querySelector(".m6fr"),palette=firstSlide&&firstSlide.getAttribute("data-color-palette")||fallbackEl&&fallbackEl.getAttribute("data-active-content-desktop");palette&&setTimeout(function(){const base=palette.replace("_gradient","");html_tag.style.setProperty("--transparent_header_fg",`var(--${base}_fg)`),html_tag.style.setProperty("--transparent_header_bg",`var(--${palette}_bg)`),html_tag.style.setProperty("--transparent_header_btn_bg",`var(--${base}_btn_bg)`),html_tag.style.setProperty("--transparent_header_btn_fg",`var(--${base}_btn_fg)`);const bd=palette.includes("white")||palette.includes("light")?"var(--header_border_color_light)":"var(--header_border_color_dark)";html_tag.style.setProperty("--transparent_header_bd",bd)},0)}else header_inner.classList.remove("transparent"),html_tag.classList.remove("has-first-m6fr-wide","has-first-m6bx-wide")}),window.dispatchEvent(transparentHeaderEvt);const topEvt=new CustomEvent("top");window.addEventListener("top",function(event){function checkIfImageExists(url,callback){const img=new Image;img.onload=()=>callback(!0),img.onerror=()=>callback(!1),img.src=url}if(logo_id){const logo_text=logo_id.querySelectorAll("span");logo_id.parentElement&&logo_id.parentElement.classList.contains("text-center-logo")&&header_inner&&!header_inner.classList.contains("hide-btn")&&search_id&&search_id.classList.add("compact"),logo_text.length&&header_inner&&header_inner.classList.add("logo-text");const imgWithAlt=logo_id.querySelector("img[alt]");if(imgWithAlt){const pt=imgWithAlt.parentNode;checkIfImageExists(imgWithAlt.src,exists=>{exists||requestAnimationFrame(()=>{const span=document.createElement("span");span.innerHTML=imgWithAlt.alt,pt.appendChild(span),pt.classList.add("broken-img")})})}}let calcLogoOffsetScheduled=!1;function calcLogoOffset(){calcLogoOffsetScheduled||(calcLogoOffsetScheduled=!0,requestAnimationFrame(()=>
1{if(header_id&&logo_id&&header_inner.classList.contains("text-center-logo")){const header_width=header_id.getBoundingClientRect().width,offsetPercent=logo_id.offsetLeft/header_width*100+"%";html_tag.style.setProperty("--logo_offset",offsetPercent)}calcLogoOffsetScheduled=!1}))}nav_id&&nav_id.classList.contains("no-wide")&&top_id.classList.add("has-no-wide"),nav_bar_id&&nav_bar_id.classList.contains("no-wide")&&top_id.classList.add("has-no-wide");function checkInv(el,ratio){requestAnimationFrame(()=>{const el_rect=el.getBoundingClientRect();(global_dir[1]===!1?viewportWidth-el_rect.left-el.offsetWidth:el_rect.left)>viewportWidth*ratio?el.classList.add("inv"):el.classList.remove("inv")})}function countNavDist(el,em,nav){const dc=el.dataset.copy,show=nav.querySelector(`.show-all li[data-copy="${dc}"]`);let shouldHide=!1;el.classList.contains("temp-hidden")&&(el.classList.remove("temp-hidden"),show&&show.classList.remove("temp-hidden"));const elRect=el.getBoundingClientRect(),navRect=nav.getBoundingClientRect(),wdth=elRect.width,nwth=navRect.width,off=global_dir[1]===!1?nwth-el.offsetLeft-wdth-0:el.offsetLeft-0,tolr=el.parentElement.querySelectorAll(".temp-hidden:not(.show-all)").length>0?1.2:0,calc=off+wdth+wdth+em*tolr+10;nwth<calc&&(shouldHide=!0),shouldHide?(el.classList.add("temp-hidden"),show&&show.classList.add("temp-hidden")):(el.classList.remove("temp-hidden"),show&&show.classList.remove("temp-hidden"))}function countNavDistF(el,em,en,nav){let mdc=null,resizeAttached=!1;function calcNav(){if(!mediaMin1000.matches)return;let mdf;if(mdc===null){const mdm=Math.abs(parseFloat(getComputedStyle(el).getPropertyValue("margin-right")));mdc=(nav.classList.contains("text-justify")||nav.classList.contains("have-text-justify"))&&!isNaN(mdm)?mdm:0}const replaceMap={"have-text-center":"text-center","have-text-justify":"text-justify","have-text-end":"text-end","text-center":"have-text-center","text-justify":"have-text-justify","text-end":"have-text-end"},replaceTextClass=(original,replacement)=>{nav.classList.contains(original)&&(nav.classList.remove(original),nav.classList.add(replacement))};if(!(el.clientWidth>nav.clientWidth+mdc))replaceTextClass("have-text-center","text-center"),replaceTextClass("have-text-justify","text-justify"),replaceTextClass("have-text-end","text-end");else{replaceTextClass("text-center","have-text-center"),replaceTextClass("text-justify","have-text-justify"),replaceTextClass("text-end","have-text-end"),em.length&&(en=em[0].getBoundingClientRect().width);const children=Array.from(el.children),handleResize=()=>{requestAnimationFrame(()=>{children.forEach(eo=>{countNavDist(eo,en,nav)})})};handleResize(),resizeAttached||(window.addEventListener("resize",throttle(handleResize,100)),resizeAttached=!0)}}calcNav(),mediaMin1000.addEventListener("change",calcNav)}const navs=document.querySelectorAll("#nav, #nav-bar");if(navs.length&&(nav_outer&&top_id.classList.add("has-nav-outer"),navs.forEach(nav_main2=>{nav_main2.closest("#header-inner")&&html_tag.classList.add("has-inside-nav");const nmu=nav_main2.querySelector("[data-type]"),nms=0;if(!nmu)return;Array.from(nmu.children).forEach(function(el,index){el.setAttribute("data-copy",nmu.children.length-index)});const nml=nmu.querySelector("li.show-all");if(nml){let markReady=function(){top_id?.classList.add("ready"),header_id?.classList.add("ready"),header_outer?.classList.add("ready")},updateNav=function(){calcLogoOffset(),countNavDistF(nmu,nml,nms,nav_main2),markReady()},initLogoLoad=function(){logo_img?logo_img.complete?updateNav():logo_img.addEventListener("load",updateNav,{once:!0}):updateNav()};const all_submenu=createElementWithClass("ul","show-all-submenu");nml.appendChild(all_submenu);for(const el of nml.closest("ul").children)el.classList.contains("show-all")||all_submenu.appendChild(el.cloneNode(!0));nav_outer?(calcLogoOffset(),setTimeout(initLogoLoad,250)):setTimeout(()=>{countNavDistF(nmu,nml,nms,nav_main2),header_outer.classList.add("ready")},250),window.addEventListener("resize",throttle(()=>{calcLogoOffset(),header_outer.classList.remove("ready"),countNavDistF(nmu,nml,nms,nav_main2),header_outer.classList.add("ready")},250))}function executeCheckInv(nmv2){Array.from(nmv2).forEach(el=>checkInv(el,.5))}const nmv=nav_main2.getElementsByClassName("sub-static");if(nmv.length){let runCheckInv=function(){checkInvExecuted||(executeCheckInv(nmv),checkInvExecuted=!0)},checkInvExecuted=!1;window.addEventListener("mousemove",runCheckInv),window.addEventListener("resize",throttle(()=>{checkInvExecuted=!1,runCheckInv()},500))}for(const el of nav_main2.querySelectorAll('a[href="#"]:not(.toggle)')){const parent=el.parentElement;parent&&parent.classList.add("empty-url")}})),search_id&&header_inner&&(search_id.classList.contains("no-bg")&&!search_id.classList.contains("bd-b")&&top_id.classList.add("no-bd-m"),search_id.classList.contains("no-bg")&&top_id.classList.add("no-bd"),search_id.classList.contains("no-pd-t")&&top_id.classList.add("no-pd-t"),!search_id.classList.contains("compact")&&header_inner.classList.contains("hide-btn")&&header_inner.classList.contains("text-center-logo")&&(search_id.classList.add("not-compact"),search_id.classList.contains("not-compact")))){let updateSearch=function(){mediaMax1000.matches?search_id.classList.add("compact"):mediaMin1000.matches&&search_id.classList.remove("compact")};updateSearch(),mediaMax1000.addEventListener("change",updateSearch),mediaMin1000.addEventListener("change",updateSearch)}
1search_id&&(search_id.classList.contains("compact-handle")?html_tag.classList.add("t1sh-mobile","search-compact-handle"):html_tag.classList.remove("t1sh-mobile","search-compact-handle"),search_id.classList.contains("compact-handle-mobile")?html_tag.classList.add("t1sh-mobile","search-compact-handle","search-compact-handle-mobile"):html_tag.classList.remove("search-compact-handle-mobile"),search_id.classList.contains("compact")?(search_id.classList.contains("compact-handle")?html_tag.classList.add("t1sh"):html_tag.classList.remove("t1sh"),html_tag.classList.add("t1sr")):html_tag.classList.remove("t1sr","t1sh"),html_tag.classList.toggle("search-compact-is-centered",search_id.classList.contains("text-center-sticky")));const accessible_css=fp("styles/theme-accessible.css","theme_accessible_css"),a_accessible=document.getElementsByClassName("link-accessible");function accessibleLink(el){if(html_tag.classList.contains("t1ac")?(html_tag.classList.remove("t1ac"),Cookies.set("accessible","no")):(new_css("accessible-mode-css",accessible_css),html_tag.classList.add("t1ac"),Cookies.set("accessible","yes")),nav_id||nav_bar_id){const tempHidden=nav_main.getElementsByClassName("temp-hidden");setTimeout(()=>
1{for(const el2 of tempHidden)el2.classList.remove("temp-hidden");window.dispatchEvent(new Event("resize"))},100)}}if(a_accessible.length){for(const el of a_accessible){const parent=el.parentElement;parent&&!parent.classList.contains("has-link-accessible")&&parent.classList.add("has-link-accessible")}html_tag.addEventListener("click",event2=>{const link=event2.target.closest("a.link-accessible");link&&(accessibleLink(link),event2.preventDefault())}),html_tag.addEventListener("keyup",event2=>{if(event2.key===" "||event2.key==="Enter"){const link=event2.target.closest("a.link-accessible");link&&(accessibleLink(link),event2.preventDefault())}})}Cookies.get("accessible")==="yes"?(new_css("accessible-mode-css",accessible_css),html_tag.classList.add("t1ac")):(html_tag.classList.remove("t1ac"),Cookies.remove("accessible"))}),window.dispatchEvent(topEvt);const backgroundEvt=new CustomEvent("background");window.addEventListener("background",function(event){const bg_done=document.querySelector("#background.done");bg_done&&bg_done.remove();const bg_id=document.getElementById("background");if(bg_id&&!bg_id.classList.contains("static")&&(bg_id.parentNode.id==="content"||bg_id.parentNode.classList.contains("shopify-section"))){const root=document.getElementById("root")||document.body;root_id&&(root_id.appendChild(bg_id),bg_id.classList.add("done"))}}),window.dispatchEvent(backgroundEvt);const moduleTabsEvt=new CustomEvent("moduleTabs");window.addEventListener("moduleTabs",function(event){if(typeof semanticTabs!="function")return;const tabs_holder=document.querySelectorAll("#content, .m6pn");if(tabs_holder)for(const container of tabs_holder){const module_tabs=container.getElementsByClassName("m6tb");for(const tab of module_tabs)semanticTabs(tab)}}),runWhenIdle(()=>window.dispatchEvent(moduleTabsEvt));const inputPaddingsEvt=new CustomEvent("inputPaddings");window.addEventListener("inputPaddings",function(event){const inputs=document.querySelectorAll('[class*="input-"][class*="fix"]');if(!inputs.length)return;const io=new IntersectionObserver((entries,observer)=>{for(const entry of entries){if(!entry.isIntersecting)continue;const el=entry.target,prefix=el.querySelector("span:first-child");if(!prefix){observer.unobserve(el);continue}const sibling=prefix.nextElementSibling;if(!sibling){observer.unobserve(el);continue}sibling.style.setProperty("--pdi",prefix.offsetWidth+"px"),observer.unobserve(el)}},{root:null,threshold:0});for(const el of inputs)io.observe(el)}),window.dispatchEvent(inputPaddingsEvt);let moduleFeaturedResize=!1;const moduleFeaturedSliderEvt=new CustomEvent("moduleFeaturedSlider");window.addEventListener("moduleFeaturedSlider",function(event){const module_featured=document.querySelectorAll(".m6fr:not(.s4wi)");if(module_featured.length){for(const el of module_featured){let updateSwiper=function(swiper){for(const aside of el.querySelectorAll(".swiper-slide > article.aside"))aside.parentNode.classList.add("has-aside");const activeArticle=swiper.el.querySelector(".swiper-slide-active > article");el.dataset.activeContent=activeArticle&&activeArticle.className||"",updateClasses(swiper)},updateClasses=function(swiper){el.classList.toggle("changed",swiper.realIndex>0),el.classList.toggle("last-slide-active",swiper.realIndex+1===total_sl)};const total_sl=el.children.length;let pagination_type=el.classList.contains("slider-fraction")?"fraction":"bullets",autoplay_int=el.dataset.autoplay?{delay:parseFloat(el.dataset.autoplay),pauseOnMouseEnter:!0}:!1;if(!isHasSelectorSupported())for(const em of el.querySelectorAll("figure"))em.querySelectorAll("picture").length>1&&em.classList.add("has-pics");randomize(el);const randomId=el.dataset.random,featuredSlider=create_slider(el,{direction:"horizontal",loop:!0,autoHeight:!0,resizeObserver:!0,autoplay:autoplay_int,threshold:50,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,type:pagination_type,renderBullet:(i,className)=>`<span class="${className}">${i+1}<span class="prg"></span></span>`,renderFraction:(curr,total)=>`<span class="${curr}"></span> <span class="slash">/</span> <span class="${total}"></span>`},on:{afterInit:swiper=>{updateSwiper(swiper),swiper.updateAutoHeight(),updateSliders(el)},slideChangeTransitionStart:swiper=>updateSwiper(swiper),resize:swiper=>{if(isShopifyDesignMode())for(let i=0;i<swiper.slides.length;i++)swiper.slideNext(0);setTimeout(()=>{swiper&&typeof swiper.updateAutoHeight=="function"&&swiper.updateAutoHeight()},500)}}});if(featuredSlider&&el.dataset.autoplay&&!el.classList.contains("no-controls")&&el.dataset.playPauseBound!=="1"){let toggleAutoplay=function(forceStart=!1){el.classList.toggle("paused",!forceStart&&!el.classList.contains("paused"))?featuredSlider.autoplay.stop():featuredSlider.autoplay.start()};el.dataset.playPauseBound="1",append_url(el,"Play/Pause","play-pause");const playPauseBtn=el.querySelector(".play-pause");playPauseBtn&&playPauseBtn.addEventListener("click",e=>{e.preventDefault(),toggleAutoplay()}),el.addEventListener("mouseleave",()=>{el.classList.contains("paused")||featuredSlider.autoplay.start()})}setTimeout(()=>{featuredSlider&&typeof featuredSlider.updateAutoHeight=="function"&&featuredSlider.updateAutoHeight()},500)}moduleFeaturedResize||(moduleFeaturedResize=!0,window.addEventListener("resize",throttle(()=>document.documentElement.classList.add("resized"),200),!0))}}),window.dispatchEvent(moduleFeaturedSliderEvt);const listTestimonialsSliderEvt=new CustomEvent("listTestimonialsSlider");window.addEventListener("listTestimonialsSlider",function(event){const list_testimonials=document.querySelectorAll(".l4ts:not
1(.s4wi)");if(list_testimonials.length)for(const el of list_testimonials){let ln=[1,2,3];(el.classList.contains("wide")||el.classList.contains("width-100"))&&(ln=[1,1,1]),el.classList.contains("width-50")&&(ln=[1,2,2]);const pagination_type=el.classList.contains("slider-fraction")?"fraction":"bullets";let autoplay_int=!1;el.getAttribute("data-autoplay")&&(autoplay_int={delay:parseFloat(el.getAttribute("data-autoplay")),pauseOnMouseEnter:!0,disableOnInteraction:!1}),randomize(el);const randomId=el.getAttribute("data-random"),total_sl=el.children.length,options={direction:"horizontal",loop:!0,autoHeight:!0,spaceBetween:16,slidesPerView:ln,slidesPerGroup:ln,autoplay:autoplay_int,loopAddBlankSlides:!1,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,type:pagination_type,renderFraction:(currentClass,totalClass)=>`<span class="${currentClass}"></span> <span class="slash">/</span> <span class="${totalClass}"></span>`},on:{slideChangeTransitionStart:function(swiper){swiper.el.parentNode.classList.toggle("changed",swiper.realIndex>0),swiper.el.parentNode.classList.toggle("last-slide-active",swiper.realIndex+1===total_sl)}},breakpoints:{0:{slidesPerView:ln[0],slidesPerGroup:ln[0]},760:{slidesPerView:ln[1],slidesPerGroup:ln[1]},1e3:{slidesPerView:ln[2],slidesPerGroup:ln[2]}}};if(el.classList.contains("slider")&&el.children.length>ln[2]&&create_slider(el,options),el.classList.contains("slider-mobile")&&el.children.length>ln[0]){const nextSibling=el.nextElementSibling;nextSibling&&nextSibling.matches(".l4ts.mobile-only")&&(nextSibling.hasAttribute("id")&&nextSibling.removeAttribute("id"),create_slider(el.nextElementSibling,options))}}}),window.dispatchEvent(listTestimonialsSliderEvt);const listStaticSliderEvt=new CustomEvent("listStaticSlider");window.addEventListener("listStaticSlider",function(event){const listStatic=document.querySelectorAll(".l4st:not(.static, .s4wi)");if(listStatic.length)for(const el of listStatic){const total_sl=el.children.length,pagination_type=el.classList.contains("slider-fraction")?"fraction":"bullets",autoAttr=el.getAttribute("data-autoplay"),autoplay_int=autoAttr?{delay:parseFloat(autoAttr),pauseOnMouseEnter:!0,disableOnInteraction:!1}:!1;randomize(el);const randomId=el.getAttribute("data-random");clone_with_class(el,"mobile-only","mobile-hide");const nextEl=el.nextElementSibling;nextEl&&nextEl.classList.contains("mobile-only")&&(nextEl.removeAttribute("id"),create_slider(nextEl,{direction:"horizontal",loop:!0,autoHeight:!0,spaceBetween:16,autoplay:autoplay_int,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,type:pagination_type,renderFraction:(currentClass,totalClass)=>`<span class="${currentClass}"></span> <span class="slash">/</span> <span class="${totalClass}"></span>`},on:{slideChangeTransitionStart:swiper=>{const parent=swiper.el.parentNode;parent.classList.toggle("changed",swiper.realIndex>0),parent.classList.toggle("last-slide-active",swiper.realIndex+1===total_sl)}}}))}}),window.dispatchEvent(listStaticSliderEvt);function bindInlineSlideNext(sliderEl){sliderEl&&sliderEl.dataset.inlineNextBound!=="1"&&(sliderEl.dataset.inlineNextBound="1",sliderEl.addEventListener("click",function(e){const link=e.target.closest(".swiper-button-next");if(!link||!link.closest(".swiper-slide"))return;e.preventDefault();const swiperOuter=sliderEl.querySelector(".swiper-outer");!swiperOuter||!swiperOuter.swiper||swiperOuter.swiper.slideNext()}))}const listUspSliderEvt=new CustomEvent("listUspSlider");window.addEventListener("listUspSlider",function(event){const listUsp=document.querySelectorAll(".l4us:not(.l4us-initialized)");if(listUsp.length)for(const el of listUsp){if(el.closest(".m6kn")||(el.classList.add("l4us-initialized"),el.classList.contains("static")))continue;let autoplayInt=!1;el.hasAttribute("data-autoplay")&&(autoplayInt={delay:parseFloat(el.getAttribute("data-autoplay")),pauseOnMouseEnter:!0,disableOnInteraction:!1});const spaceBetween=el.classList.contains("no-arrows")?16:44;let slidesPerView=1;el.closest("#nav-top")&&el.classList.contains("slider")&&(el.classList.add("slider-in-header"),el.classList.contains("slider-single")||(slidesPerView="auto")),el.querySelectorAll("li").length===1&&el.classList.remove("slider","slider-single");const options={direction:"horizontal",loop:!0,pagination:!1,autoplay:autoplayInt,slidesPerView,autoHeight:!0,spaceBetween,breakpoints:{0:{slidesPerView:1},760:{slidesPerView},1e3:{spaceBetween},1100:{spaceBetween:20}}};if(!el.classList.contains("mobile-static")){if(el.classList.contains("slider"))create_slider(el,options),bindInlineSlideNext(el);else if(el.children.length>1){clone_with_class(el,"l4us-mobile","mobile-hide");const nextEl=el.nextElementSibling;nextEl&&nextEl.classList.contains("l4us-mobile")&&(nextEl.classList.remove("slider","slider-in-header"),nextEl.hasAttribute("id")&&nextEl.removeAttribute("id"),create_slider(nextEl,options),bindInlineSlideNext(nextEl))}}}}),window.dispatchEvent(listUspSliderEvt);function createRatingsHtmlElement(rating,total){const ratingElem=createElementWithClass("span","rating"),split=rating.toString().split("."),intRating=+split[0];let intDecimalRating=+split[1]||0;function createStarHtmlElement(fillPercentage){const star=createElementWithClass("span","star"),fill=createElementWithClass("span","fill");return fill.style.width=fillPercentage+"%",star.appendChild(fill),star}for(let i=1;i<=total;i++)if(i<=intRating)ratingElem.appendChild(createStarHtmlElement(100));else if(intDecimalRating>0){const baseTenValue=(intDecimalRating+"0").substr(0,2);ratingElem.appendChild(createStarHtmlElement(baseTenValue)),intDecimalRating=0}else ratingElem.appendChild(createStarHtmlElement(0));return ratingElem}const ratingsEvt=new CustomEvent("ratings");window.addEventListener("ratings",function(event){const ratingElements=document.querySelectorAll("[data-val][data-of]:not(.rating-initialized)");if(ratingElements.length)for(const el of ratingElements){el.classList.add("rating-initialized");const fragment=document.createDocumentFragment(),reviewsElem=createElementWithClass("span","rating-label"),reviews=el.innerHTML,rating=el.dataset.val,total=el.dataset.of;!(el.classList.contains("s1ld")||el.classList.contains("s1br"))?(fragment.appendChild(createRatingsHtmlElement(rating,total)),reviewsElem.innerHTML=reviews):reviewsElem.innerHTML=`<span class="bar" style="width: ${rating/total*100}%;"></span>`,fragment.appendChild(reviewsElem),el.textContent="",el.appendChild(fragment)}}),window.dispatchEvent(ratingsEvt);
1const mediaFlexibleEvt=new CustomEvent("mediaFlexbile");window.addEventListener("mediaFlexbile",function(event){const mediaFlexible=document.querySelectorAll(".media-flexible:not(.media-flexible-initialized)");if(mediaFlexible.length)for(const el of mediaFlexible){const parent=el.parentElement;if(!el.classList.contains("media-flexible-initialized")&&!parent.classList.contains("flexible-stack")&&(el.classList.contains("slider-mobile")||parent.classList.contains("mobile-static"))){if(!parent.getElementsByClassName("media-flexible-mobile").length){const tag=document.createElement("div");tag.classList.add("media-flexible-mobile"),el.after(tag),el.classList.add("mobile-hide");const clonedMobile=parent.querySelector(".media-flexible-mobile"),childrenToClone=parent.querySelectorAll(".media-flexible:not(.mobile-hide-media-flexible) > *:not(.mobile-hide-media-flexible)");for(const child of childrenToClone)clonedMobile.appendChild(child.cloneNode(!0));clonedMobile.classList.remove("media-flexible","mobile-hide"),clonedMobile.hasAttribute("id")&&clonedMobile.removeAttribute("id");for(const child of Array.from(clonedMobile.children))child.classList.contains("mobile-hide")&&child.remove();randomize(clonedMobile);const randomId=clonedMobile.getAttribute("data-random");clonedMobile.classList.contains("s4wi")||create_slider(clonedMobile,{direction:"horizontal",loop:!0,autoHeight:!0,pagination:{el:".swiper-pagination-"+randomId,clickable:!0,type:"bullets",renderBullet:(index,className)=>`<span class="${className}">${index+1}<span class='prg'></span></span>`},on:{slideChangeTransitionStart:swiper=>{const activeContent=swiper.el.querySelector('.swiper-slide[data-swiper-slide-index="'+swiper.realIndex+'"] > *');if(activeContent){const closestSlider=el.closest(".m6fr");closestSlider&&closestSlider.setAttribute("data-active-content",activeContent.getAttribute("data-color-palette"))}}}})}el.classList.add("media-flexible-initialized")}}}),window.dispatchEvent(mediaFlexibleEvt);const createColsEvt=new CustomEvent("createCols");window.addEventListener("createCols",function(event){const servicePageElement=document.querySelector('[id$="page-service-info-blocks"]');if(!servicePageElement)return;const parent=servicePageElement.parentElement;if(parent.classList.contains("cols")){const article=parent.querySelector("article.w64.t55");article&&article.replaceWith(...article.childNodes),parent.replaceWith(...parent.childNodes)}const wrapper=document.createElement("div");wrapper.classList.add("cols","section-width-boxed");const wrapperInner=document.createElement("article");wrapperInner.classList.add("w64","t55"),wrapper.appendChild(wrapperInner);const possibleSiblings=["shopify-section-page-service-menu","shopify-section-faq","shopify-section-contact-form","shopify-section-google-maps"];let anySiblingFound=!1;const findSibling=()=>{const prevSibling=servicePageElement.previousElementSibling;if(!prevSibling)return;let correctSiblingFound=!1;for(const cls of possibleSiblings)prevSibling.classList.contains(cls)&&(correctSiblingFound=!0,anySiblingFound=!0,prevSibling.classList.add("w64","t55"),wrapperInner.appendChild(prevSibling));if(correctSiblingFound)findSibling();else if(anySiblingFound){for(let i=1;i<wrapperInner.childNodes.length;i++)wrapperInner.insertBefore(wrapperInner.childNodes[i],wrapperInner.firstChild);servicePageElement.parentNode.insertBefore(wrapper,servicePageElement),wrapper.appendChild(servicePageElement)}};findSibling()}),window.dispatchEvent(createColsEvt);const showAlertEvt=new CustomEvent("showAlert");window.addEventListener("showAlert",function(event){if(!event||!event.detail||!event.detail.message)return;const{message:messageText,type:messageType,header,origin}=event.detail||{};let messageHeader=header||!1;const messageOrigin=origin?`message-${origin}`:!1,typeMap={success:{color:"lime",defaultHeader:window.translations&&window.translations.general_alerts_success_text||"Success"},info:{color:"pine",defaultHeader:window.translations&&window.translations.general_alerts_info_text||"Info"},error:{color:"rose",defaultHeader:window.translations&&window.translations.general_alerts_error_text||"Error"}}
1,{color:messageColor,defaultHeader}=typeMap[messageType]||{color:"lime",defaultHeader:""};messageHeader||(messageHeader=defaultHeader);const message=`
2		<li class="overlay-${messageColor} ${messageOrigin||""}">
3			<i aria-hidden="true" class="icon-${messageType}"></i>
4			<p class="strong">${messageHeader}</p>
5			<p>${messageText}</p>
6			<a href="#" class="close">Close</a>
7		</li>
8	`;let listAlerts=document.querySelector(".l4al:not(.inline):not(.l4al-trustbadge)");if(listAlerts||(listAlerts=document.createElement("ul"),listAlerts.classList.add("l4al","fixed"),(document.getElementById("root")||document.body).appendChild(listAlerts)),!messageOrigin||listAlerts.getElementsByClassName(messageOrigin).length===0){const temp=document.createElement("div");temp.innerHTML=message.trim();const li=temp.firstElementChild;li&&listAlerts.appendChild(li)}typeof alertsEvt<"u"&&window.dispatchEvent(alertsEvt)},!1);const lazyVideoEvt=new CustomEvent("lazyVideo");window.addEventListener("lazyVideo",function(event){const lazyVideos=Array.from(document.querySelectorAll("video.lazy"));if(!lazyVideos.length||!("IntersectionObserver"in window))return;const lazyVideoObserver=new IntersectionObserver((entries,observer)=>{for(const entry of entries){if(!entry.isIntersecting)continue;const video=entry.target;for(const source of video.children)source.tagName.toLowerCase()==="source"&&(source.src=source.dataset.src);video.load(),video.classList.remove("lazy"),lazyVideoObserver.unobserve(video)}});for(const lazyVideo of lazyVideos)lazyVideoObserver.observe(lazyVideo)}),window.dispatchEvent(lazyVideoEvt);const check_limit_event=new CustomEvent("check-limit-event");window.addEventListener("check-limit-event",function(){const checkLimitElements=document.querySelectorAll(".check[data-limit]");if(checkLimitElements.length)for(const el of checkLimitElements){if(el.classList.contains("check-limit-initialized"))continue;el.classList.add("check-limit-initialized");let tagLimit=el.tagName.toLowerCase()==="ul"||el.tagName.toLowerCase()==="ol"?"li":"a";const limitEl=createElementWithClass(tagLimit,"limit"),limitIndex=parseInt(el.dataset.limit,10)-1,trigger=el.children[limitIndex];if(!trigger)continue;const nextAll=Array.from(trigger.parentNode.children).slice(limitIndex+1);for(const em of nextAll)em.classList.contains("hidden")||em.classList.add("hidden-check");const visibleItemsCount=el.querySelectorAll("li:not(.hidden, .tip-cont)").length;if(limitEl.innerText=`+${Math.abs(visibleItemsCount-el.dataset.limit)}`,tagLimit==="li"){const a=document.createElement("a");for(a.href="./";limitEl.firstChild;)a.appendChild(limitEl.firstChild);limitEl.appendChild(a)}el.append(limitEl);const lastDesc=el.querySelector("li.hidden");lastDesc&&el.appendChild(lastDesc)}}),window.dispatchEvent(check_limit_event);const listCollectionEvt=new CustomEvent("listCollection");window.addEventListener("listCollection",event=>{const list_collection=document.querySelectorAll(".l4cl");list_collection.length&&requestAnimationFrame(()=>{for(const el of list_collection){if(el.clientHeight<el.scrollHeight&&el.classList.add("is-scrollable"),isHasSelectorSupported())continue;el.querySelectorAll(".small a").forEach(a=>a.classList.add("has-link"));const selectors=[{sel:"div.box",cls:"has-div-box"},{sel:'[class*="l4ml"]',cls:"has-l4ml"},{sel:"picture ~ picture",cls:"has-picture-picture"}];for(const{sel,cls}of selectors)el.querySelectorAll(sel).forEach(em=>{const li=em.closest("li");li&&li.classList.add(cls)})}})}),window.dispatchEvent(listCollectionEvt);const listCollectionSliderEvt=new CustomEvent("listCollectionSlider");window.addEventListener("listCollectionSlider",()=>{const list_collection_slider=document.querySelectorAll(".l4cl.slider:not(.s4wi), .l4ft.slider:not(.s4wi)");if(list_collection_slider.length)for(const el of list_collection_slider){if(el.closest(".popup-a")){el.classList.add("in-popup");continue}const closestTabs=el.closest(".m6tb"),hasFigure=!!el.querySelector("figure:not(:last-child)"),classes=el.classList,computed=getComputedStyle(el),dist_a_value=computed.getPropertyValue("--dist_a").trim(),rowValue=computed.getPropertyValue("--row").trim(),row=rowValue?parseFloat(rowValue):NaN;let spacing=16;if(dist_a_value&&dist_a_value!=="px"){const dist_a=parseFloat(dist_a_value);isNaN(dist_a)||(spacing=dist_a)}
8let loopMe=classes.contains("slider-loop"),autoHeight=!(classes.contains("static-height")&&!classes.contains("align-stretch")),allowTouch=classes.contains("static-height")||classes.contains("align-center")||classes.contains("align-stretch"),allowTouch_760=!classes.contains("mobile-compact"),autoPlayMe=!1,autoPlaySpeed=300;hasFigure||el.classList.add("no-img"),classes.contains("autoplay")&&(autoPlayMe={delay:0},loopMe=!0,autoPlaySpeed=el.children.length*1e3);let items=[5,5,3];if(classes.contains("text-justify")||classes.contains("auto-width"))items=["auto","auto","auto"],autoHeight=!1;else{const rowItemsMap={12:[12,6,4],11:[11,6,4],10:[10,6,4],9:[9,6,4],8:[8,6,4],7:[7,6,4],6:[6,5,3],5:[5,5,3],4:[4,4,3],3:[3,3,3],2:[2,2,2]};if(!Number.isNaN(row)&&rowItemsMap[row])items=rowItemsMap[row];else{const itemsMap={"in-col":[4,4,3],w8:[12,6,4],w9:[11,6,4],w10:[10,6,4],w11:[9,6,4],w12:[8,6,4],w14:[7,6,4],w16:[6,5,3],w20:[5,5,3],w25:[4,4,3],w33:[3,3,3],w50:[2,2,2]};for(const cls in itemsMap)if(classes.contains(cls)){items=itemsMap[cls];break}}}const handleInit=swiper=>{if(!hasFigure)return;const fig=el.querySelector(".swiper-slide-active figure");fig&&fig.offsetHeight>0?el.style.setProperty("--fih",fig.offsetHeight+"px"):el.style.removeProperty("--fih")},throttledHandleInit=throttle(handleInit,100);randomize(el);const randomId=el.getAttribute("data-random");if(create_slider(el,{direction:"horizontal",loop:loopMe,autoHeight,slidesPerView:items[0],focusableElements:"input",spaceBetween:spacing,touchStartPreventDefault:!1,lazy:{loadPrevNext:!0},pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0},autoplay:autoPlayMe,speed:autoPlaySpeed,breakpoints:{0:{simulateTouch:!1,allowTouchMove:!1},760:{slidesPerView:items[2],simulateTouch:allowTouch_760,allowTouchMove:allowTouch_760},1e3:{slidesPerView:items[1],simulateTouch:allowTouch,allowTouchMove:allowTouch},1100:{slidesPerView:items[0],simulateTouch:allowTouch,allowTouchMove:allowTouch}},on:{afterInit(swiper){closestTabs&&setTimeout(handleInit,100),typeof lazyVideoEvt<"u"&&window.dispatchEvent(lazyVideoEvt),updateSliders(el),handleInit()},resize:throttledHandleInit,transitionStart(swiper){swiper.el.classList.add("transition")},transitionEnd(swiper){swiper.el.classList.remove("transition"),handleInit()}}}),el.querySelectorAll(".has-text, .cols").forEach(em=>{const p=em.parentElement;em.classList.contains("has-text")&&p.classList.add("has-text"),em.classList.contains("cols")&&p.classList.add("has-cols")}),hasFigure&&closestTabs&&closestTabs.children.length&&closestTabs.querySelectorAll("a").forEach(link=>link.addEventListener("click",()=>setTimeout(handleInit,100))),hasFigure){const subLi=el.closest("li.sub");subLi&&subLi.addEventListener("mouseenter",()=>setTimeout(handleInit,100))}el.querySelectorAll(".swiper-wrapper[id], .swiper-button-nav[aria-controls]").forEach(node=>{node.removeAttribute("id"),node.removeAttribute("aria-controls")})}}),window.dispatchEvent(listCollectionSliderEvt);const listProductSliderEvt=new CustomEvent("listProductSlider");let l4prDelegatesAttached=!1;function l4prClick(element){let index=parseInt(element.dataset.l4prIndex,10);if(isNaN(index))return;const m6prElement=element.closest(".m6pr");let findSwiper;if(m6prElement!==null)findSwiper=m6prElement.querySelector(".l4pr.s4wi").children[0].swiper;else{const firstL4pr=document.querySelector(".l4pr.s4wi");if(!firstL4pr||!firstL4pr.children.length)return;findSwiper=firstL4pr.children[0].swiper}findSwiper!==void 0&&findSwiper.slideTo(index)}function attachL4prDelegates(){l4prDelegatesAttached||(l4prDelegatesAttached=!0,document.addEventListener("click",function(event){const tag=event.target.tagName.toLowerCase();if(tag==="option")return;const l4prElement=event.target.closest("[data-l4pr-index]");if(l4prElement&&l4prClick(l4prElement),tag==="a"&&event.target.classList.contains("swiper-pagination-bullet")){const slide=event.target.closest(".swiper-slide");
8slide&&(Array.from(getSiblings(slide)).forEach(sib=>{sib.firstElementChild&&sib.firstElementChild.classList.remove("swiper-pagination-bullet-active")}),event.target.classList.add("swiper-pagination-bullet-active")),event.preventDefault()}}),document.addEventListener("change",function(event){if(event.target.tagName.toLowerCase()!=="select")return;const selectedOption=event.target.options[event.target.selectedIndex];selectedOption&&l4prClick(selectedOption)}))}window.addEventListener("listProductSlider",event=>{const list_product_slider=document.querySelectorAll(".l4pr");if(list_product_slider.length){html_tag.classList.add("t1pr"),attachL4prDelegates();for(let el of list_product_slider){if(el.classList.contains("s4wi")||el.classList.contains("l4pr-initialized"))continue;el.classList.add("l4pr-initialized");let hasStickyNote=!1,stickyNote=[];if(el.classList.contains("static")){const clone_me=el.cloneNode(!0);clone_me.classList.remove("static"),clone_me.classList.add("desktop-hide"),el.classList.add("desktop-only"),el.after(clone_me),el=el.nextElementSibling}const mainSliderElement=el,children=[...mainSliderElement.children],total_sl=children.length;let initial_slide=parseFloat(el.getAttribute("data-featured_media_position")||1)-1;const stickyNotes=[...mainSliderElement.querySelectorAll("li.sticky")];stickyNotes.length&&(hasStickyNote=!0,stickyNote=stickyNotes,stickyNotes.forEach(child=>child.remove())),mainSliderElement.querySelectorAll("a > .model-3d:first-child model-viewer[poster]").forEach(em=>{const posterSrc=em.getAttribute("poster");if(!posterSrc)return;const staticPosterWrapper=createElementWithClass("picture","just-poster"),staticPoster=document.createElement("img");staticPoster.src=staticPoster.dataset.src=posterSrc;const alt=em.getAttribute("alt");alt&&(staticPoster.alt=alt),staticPosterWrapper.prepend(staticPoster);const closestLink=em.closest("a");closestLink&&closestLink.prepend(staticPosterWrapper)}),!el.classList.contains("thumbs-static")&&!el.classList.contains("thumbs-slider")&&children[4]&&(children[4].classList.add("more"),append_url(children[4],"+"+(children.length-5),"more"));const slides=[...mainSliderElement.cloneNode(!0).children];[...el.getElementsByClassName("m6bx")].forEach(em=>{em.classList.add("m6bx-inside"),el.firstElementChild.appendChild(em),em.remove()}),randomize(el);const randomId=el.getAttribute("data-random"),setNavigationHeight=swiper=>{const h=`${swiper.height}px`;swiper.navigation.prevEl&&(swiper.navigation.prevEl.style.height=h),swiper.navigation.nextEl&&(swiper.navigation.nextEl.style.height=h)},mainSlider=create_slider(mainSliderElement,{direction:"horizontal",loop:!1,autoHeight:!0,preloadImages:!1,initialSlide:initial_slide,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,renderBullet:(index,className)=>{const finalSpan=createElementWithClass("a",className),slideClass=slides[index].className||"";["portrait","landscape","square","stripe"].forEach(o=>{slideClass.includes(o)&&finalSpan.classList.add(`orientation-${o}`)}),slideClass.includes("auto")&&(finalSpan.classList.add("auto"),finalSpan.classList.remove("landscape","portrait"));const img=slides[index].querySelector("picture, img");if(img){const a_thumb=img.closest("a[data-gallery-thumb]");if(a_thumb){const thumbImg=document.createElement("img");thumbImg.src=a_thumb.getAttribute("data-gallery-thumb"),thumbImg.loading="lazy",thumbImg.alt="Thumbnail";const thumbPic=document.createElement("picture"),picClassEl=a_thumb.querySelector("picture[class]");picClassEl&&(thumbPic.className=picClassEl.className),thumbPic.appendChild(thumbImg),finalSpan.appendChild(thumbPic)}else finalSpan.appendChild(img)}const divFlex=document.createElement("span");if(slides[index].querySelector("a.more")&&children.length-1-index>0){const span=document.createElement("span");span.innerText="+"+(children.length-1-index),divFlex.appendChild(span),finalSpan.classList.add("has-more"),slides[index].querySelectorAll("a[data-fancybox]").forEach(em=>finalSpan.setAttribute("href",em.getAttribute("href")))}const icon=slides[index].querySelector("i[class^=icon-]");return icon&&divFlex.appendChild(icon),finalSpan.appendChild(divFlex),finalSpan.outerHTML}},navigation:{nextEl:`[data-random="${randomId}"] .swiper-button-next`,prevEl:`[data-random="${randomId}"] .swiper-button-prev`},on:{activeIndexChange(){const activeIndex=this.activeIndex,slidesCount=this.slides?this.slides.length:children.length;[...this.el.parentNode.getElementsByClassName("custom-progressbar-inner")].forEac
8h(bar=>{bar.style.width=`${100*(activeIndex+1)/slidesCount}%`})},afterInit(swiper){const progress_bar=createElementWithClass("div","custom-progressbar"),progress_bar_inner=createElementWithClass("div","custom-progressbar-inner");if(progress_bar_inner.style.width=`${100/children.length}%`,progress_bar.appendChild(progress_bar_inner),swiper.el.appendChild(progress_bar),[...swiper.el.querySelectorAll(".s1lb, .label")].forEach(em=>swiper.el.parentNode.appendChild(em)),[...swiper.el.getElementsByClassName("m6bx-inside")].forEach(em=>swiper.el.appendChild(em)),el.classList.contains("no-thumbs-mobile")||el.classList.contains("slider-fraction")){const custom_fraction=swiper.el.parentNode.querySelector(".swiper-custom-fraction"),current=createElementWithClass("span","swiper-pagination-current");current.textContent="1";const slash=createElementWithClass("span","slash");slash.textContent="/";const total=createElementWithClass("span","total-el");total.textContent=swiper.slides.length,custom_fraction.append(current,document.createTextNode(" "),slash,document.createTextNode(" "),total)}setTimeout(()=>setNavigationHeight(swiper),300)},slideChangeTransitionEnd(swiper){setTimeout(()=>setNavigationHeight(swiper),300)},slideChangeTransitionStart(swiper){setTimeout(()=>{const slidesCount=swiper.slides?swiper.slides.length:total_sl;if(el.classList.contains("no-thumbs-mobile")||el.classList.contains("slider-fraction")){const custom_fraction=swiper.el.parentNode.querySelector(".swiper-pagination-current");custom_fraction.innerHTML=swiper.realIndex+1,swiper.el.classList.toggle("changed",swiper.realIndex>0)}swiper.el.classList.toggle("last-slide-active",swiper.realIndex+1===slidesCount)},300)},resize(swiper){setNavigationHeight(swiper)}}});if(hasStickyNote&&stickyNote.forEach(imgOverlay=>{(el.querySelector(".swiper-outer")||el).appendChild(imgOverlay)}),el.classList.contains("thumbs-slider")){const bulletsSelector=`[data-random="${randomId}"] .swiper-pagination-bullets`,customBullets=el.querySelector(bulletsSelector);clone_with_class(customBullets,"cloned","hidden");const clonedBullets=el.querySelector(`${bulletsSelector}.cloned`);[...clonedBullets.children].forEach((child,i)=>child.dataset.l4prIndex=i),create_slider(clonedBullets,{direction:"horizontal",loop:!1,autoHeight:!1,slidesPerView:"auto",navigation:{nextEl:`${bulletsSelector} .swiper-button-next`,prevEl:`${bulletsSelector} .swiper-button-prev`}})}}}}),window.dispatchEvent(listProductSliderEvt);const selectTagEvt=new CustomEvent("selectTag");window.addEventListener("selectTag",function(event){const select_tag=document.getElementsByTagName("select");if(select_tag.length)for(const el of select_tag){const parentNode=el.parentNode;parentNode&&parentNode.classList.add("has-select");const closestParagraph=el.closest("p");closestParagraph&&closestParagraph.classList.add("has-select"),el.addEventListener("change",()=>{el.classList.contains("changed")||el.classList.add("changed")})}}),window.dispatchEvent(selectTagEvt);const formZindexEvt=new CustomEvent("formZindex");window.addEventListener("formZindex",function(event){window.dispatchEvent(selectTagEvt);let handleFormChildrenCalculated=!1,handleFormChildrenScheduled=!1;function handleFormChildren(){handleFormChildrenScheduled||(handleFormChildrenScheduled=!0,requestAnimationFrame(()=>{if(!handleFormChildrenCalculated){const formChildren=document.querySelectorAll("form > *, fieldset > *, .no-zindex, .no-zindex > *, .has-select, .f8pr > *, .l4ca.compact.in-panel > *, .l4cl.box > li, .f8pr-bulk > *");formChildren.length&&assignIndex(formChildren),handleFormChildrenCalculated=!0}handleFormChildrenScheduled=!1}))}isMobile||window.addEventListener("mousemove",handleFormChildren,asyncOnce),document.addEventListener("keyup",handleFormChildren,asyncOnce),document.addEventListener("touchstart",handleFormChildren,asyncPass),document.addEventListener("scroll",handleFormChildren,asyncPass),window.addEventListener("resize",throttle(handleFormChildren,500))}),runWhenIdle(()=>window.dispatchEvent(formZindexEvt));/*! Async Resources & Touch Interaction -------------------------------------------------- */const outline_js=fp("js/plugin-outline.js","plugin_outline_js"),css_async=fp("styles/async.css","async_css"),css_menu=fp("styles/async-menu.css","async_menu_css"),css_hovers=fp("styles/async-hovers.css","async_hovers_css"),css_hovers_hack=fp("styles/async-hovers-hack.css","async_hovers_hack_css"),validation_css=fp("styles/async-validation.css","async_validation_css"),isFakeNoHover=navigator.maxTouchPoints>0&&window.matchMedia("(pointer: fine)").matches&&!window.matchMedia("(hover: hover)").matches;let asyncCSSLoaded=!1;function asyncCSS(){if(asyncCSSLoaded)return;new_css("async-css",css_async),new_css("hovers-css",css_hovers),isFakeNoHover&&new_css("hovers-hack-css",css_hovers_hack),new_css("menu-css",css_menu),loadRes(outline_js,()=>{},"outline-loaded"),asyncCSSLoaded=!0;const skip_id=document.getElementById("skip");if(skip_id&&nav_bar_id){const link=skip_id.querySelector('a[href="#nav"]');link&&link.setAttribute("href","#nav-bar")}}window.addEventListener("mousemove",asyncCSS,asyncOnce),document.addEventListener("keyup",asyncCSS,asyncOnce),document.addEventListener("touchstart",asyncCSS,asyncPass),document.addEventListener("pointerdown",asyncCSS,asyncPass),document.addEventListener("scroll",asyncCSS,asyncPass);let touchMoving=!1,lastScrollY=0,scrollCheckTimeout;window.addEventListener("touchstart",()=>{clearTimeout(scrollCheckTimeout),touchMoving=!0,html_tag.classList.add("touch-moving")}),window.addEventListener("touchend",()=>{const checkScrollEnd=()=>{const currentY=window.scrollY;Math.abs(currentY-lastScrollY)<2?(touchMoving=!1,html_tag.classList.remove("touch-moving")):(lastScrollY=currentY,scrollCheckTimeout=setTimeout(checkScrollEnd,100))};lastScrollY=window.scrollY,scrollCheckTimeout=setTimeout(checkScrollEnd,100)});const custom_async_js=fp("js/custom-async.js","custom_async_js");runWhenIdle(()=>{loadRes(custom_async_js,()=>{},"custom-async-loaded")}),(function(){const checkNav=setInterval(function(){const nav=document.getElementById("nav");nav&&typeof mediaMax1000<"u"&&(clearInterval(checkNav),nav.addEventListener("click",function(e){if(!mediaMax1000.matches||!html_tag.classList.contains("m2a"))return;const link=e.target.closest("a");if(!link||link.classList.contains("toggle")||link.classList.contains("toggle-back"))return;const parentLi=link.closest("li.sub");if(!parentLi||parentLi.classList.contains("toggle"))return;const toggleButton=parentLi.querySelector(":scope > a.toggle");toggleButton&&(console.log("Triggering toggle instead of navigating"),e.preventDefault(),e.stopPropagation(),toggleButton.click())},!0))},100)})();
9//# sourceMappingURL=/cdn/shop/t/15/assets/custom.js.map?v=135779379299202241301790348219

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.