1document.addEventListener("click",function(e){const description=e.target.closest(".collection-header__description");description&&(description.classList.toggle("collection-header__description--clamped"),description.classList.toggle("collection-header__description--expanded"))});function initSubcollectionsCarousel(root,scrollerSel,prevSel,nextSel){const scroller=root.querySelector(scrollerSel),prevBtn=root.querySelector(prevSel),nextBtn=root.querySelector(nextSel);if(!scroller||!prevBtn||!nextBtn)return;const getStep=()=>{const firstItem=scroller.querySelector(".collection-subcollections__item");if(!firstItem)return Math.round(scroller.clientWidth*.8);const itemWidth=firstItem.getBoundingClientRect().width;return Math.max(120,Math.round(itemWidth+16))},updateButtons=()=>{const maxScrollLeft=scroller.scrollWidth-scroller.clientWidth,epsilon=2,atStart=scroller.scrollLeft<=epsilon,atEnd=scroller.scrollLeft>=maxScrollLeft-epsilon,isScrollable=maxScrollLeft>1;root.classList.toggle("is-scrollable",isScrollable),scroller.classList.toggle("is-scrollable",isScrollable),prevBtn.hidden=!isScrollable||atStart,nextBtn.hidden=!isScrollable||atEnd};prevBtn.addEventListener("click",()=>{scroller.scrollBy({left:-getStep(),behavior:"smooth"})}),nextBtn.addEventListener("click",()=>{scroller.scrollBy({left:getStep(),behavior:"smooth"})}),scroller.addEventListener("focusin",event=>{const link=event.target?.closest?.(".collection-subcollections__link");link&&link.scrollIntoView({block:"nearest",inline:"nearest"})},!0),scroller.addEventListener("scroll",updateButtons,{passive:!0}),window.addEventListener("resize",updateButtons),updateButtons()}function initSubcollectionsCarousels(){document.querySelectorAll("[data-subcollections-images-carousel]").forEach(root=>{initSubcollectionsCarousel(root,"[data-subcollections-images-scroller]","[data-subcollections-images-prev]","[data-subcollections-images-next]")}),document.querySelectorAll("[data-subcollections-icons-carousel]").forEach(root=>{initSubcollectionsCarousel(root,"[data-subcollections-icons-scroller]","[data-subcollections-icons-prev]","[data-subcollections-icons-next]")})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",initSubcollectionsCarousels):initSubcollectionsCarousels(),document.addEventListener("focusin",event=>{const linkBarScroller=event.target?.closest?.("#collection-banner .link-bar__scroller");if(!linkBarScroller)return;const link=event.target?.closest?.("a, button");if(!link)return;const scrollerRect=linkBarScroller.getBoundingClientRect(),linkRect=link.getBoundingClientRect(),padding=12,leftOverflow=linkRect.left-scrollerRect.left-padding,rightOverflow=linkRect.right-scrollerRect.right+padding;leftOverflow<0?linkBarScroller.scrollBy({left:leftOverflow,behavior:"smooth"}):rightOverflow>0&&linkBarScroller.scrollBy({left:rightOverflow,behavior:"smooth"})},!0);var IPSTACK_KEY="607fd5882d54b0cc6b64d1bd27e36511";function GeoCaller(cb,onError){var xhr=new XMLHttpRequest;xhr.onreadystatechange=function(){if(xhr.readyState===4){if(xhr.status===200){try{var result=JSON.parse(xhr.responseText);console.log("Raw IPStack response:",result),cb(result)}catch(error){console.log("Geo lookup parse error:",error),onError&&onError(error)}return}console.log("Geo lookup failed:",xhr.status),onError&&onError(new Error("Geo lookup failed"))}},xhr.open("GET","https://api.ipstack.com/check?access_key="+IPSTACK_KEY,!0),xhr.send()}function setCookie(cname,cvalue,exdays){const d=new Date;d.setTime(d.getTime()+exdays*24*60*60*1e3);let expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+"; "+expires+"; path=/; domain=arneclo.com"}function GetCookie(cname){let name=cname+"=",ca=document.cookie.split(";");for(let i=0;i<ca.length;i++){let c=ca[i];for(;c.charAt(0)==" ";)c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}function updateCurrencyDisplay(countryCode){let currencyText="";switch(countryCode.toUpperCase()){case"IE":currencyText="\u20AC30";break;case"US":currencyText="$30";break;case"NL":currencyText="\u20AC30";break;default:return}document.querySelectorAll(".lion-currency__value").forEach(element=>{element.textContent=currencyText})}function GetParam(param){return new URLSearchParams(window.location.search).get(param)}function getGeoPopupDismissedCookieName(siteCountry){return"arne_geo_popup_dismissed_"+(siteCountry||"").toUpperCase()}function isGeoPopupDismissed(siteCountry){return GetCookie(getGeoPopupDismissedCookieName(siteCountry))==="1"}function setGeoPopupDismissed(siteCountry){setCookie(getGeoPopupDismissedCookieName(siteCountry),"1",.25)}function LoadGeoSection(cb){var geoContainer=document.querySelector(".recommendation-modal__backdrop_new");if(geoContainer)console.log("geo content already loaded :",geoContainer),cb();else if(console.log("loading geo content"),window._geoSectionLoadingQ)window._geoSectionLoadingQ.push(cb);else{window._geoSectionLoadingQ=[cb];var xhr=new XMLHttpRequest;xhr.onreadystatechange=function(){if(xhr.readyState==4&&xhr.status==200){var result=JSON.parse(xhr.responseText),markup=result["arne-locator-popup-content"];document.body.insertAdjacentHTML("beforeend",markup),prepareGeoSection(),handlePopup();try{var elements=document.querySelectorAll("#shopify-section-arne-locator-popup-content form[action='/localization'] input[name='return_to']");
1elements.forEach(function(element){element.setAttribute("value","/"),element.value="/"})}catch(error){console.log("ERROR ",error.stack)}var q=window._geoSectionLoadingQ;window._geoSectionLoadingQ=void 0,q.forEach(function(qcb){qcb()})}},xhr.open("GET",window.Shopify.routes.root+"?sections=arne-locator-popup-content",!0),xhr.send()}}function prepareGeoSection(){var backdrop=document.querySelector(".recommendation-modal__backdrop_new"),mainPopup=document.querySelector(".locator-popup-main"),locationsPopup=document.querySelector(".locater-popup-locations");backdrop&&(backdrop.style.display="none"),mainPopup&&(mainPopup.style.display="none"),locationsPopup&&(locationsPopup.style.display="none"),document.querySelectorAll(".locator-popup-country-content").forEach(function(content){content.classList.add("hidden"),content.setAttribute("hidden",""),content.setAttribute("aria-hidden","true")})}function updateGeolocationContent(countryCode){countryCode=(countryCode||"").toLowerCase(),document.querySelectorAll(".locator-popup-country-content").forEach(function(content){var isTarget=content.dataset.countryCode===countryCode;isTarget?(content.classList.remove("hidden"),content.removeAttribute("hidden"),content.setAttribute("aria-hidden","false")):(content.classList.add("hidden"),content.setAttribute("hidden",""),content.setAttribute("aria-hidden","true"))})}function ShowGeolocationContent(response){LoadGeoSection(function(){updateGeolocationContent(response.country_code)})}function setDataOnBody(code){var body=document.querySelector("body");body.setAttribute("data-market",code.toLowerCase())}function getSiteCountry(){var siteCountry=window.themeVariables&&window.themeVariables.settings&&window.themeVariables.settings.siteCountry;return!siteCountry&&window.Shopify&&window.Shopify.country&&(siteCountry=window.Shopify.country),(siteCountry||"").toUpperCase()}function shouldShowGeoPopup(siteCountry,detectedCountry){return siteCountry=(siteCountry||"").toUpperCase(),detectedCountry=(detectedCountry||"").toUpperCase(),!siteCountry||!detectedCountry?!1:siteCountry==="GB"&&detectedCountry!=="GB"||siteCountry!=="GB"&&detectedCountry==="GB"}function getPopupTargetCountry(siteCountry,detectedCountry){return siteCountry=(siteCountry||"").toUpperCase(),detectedCountry=(detectedCountry||"").toUpperCase(),siteCountry!=="GB"&&detectedCountry==="GB"?"GB":detectedCountry}function isGeoPopupVisible(backdrop){return!!(backdrop&&getComputedStyle(backdrop).display!=="none")}function focusGeoPopupElement(element){if(!(!element||typeof element.focus!="function"))try{element.focus({preventScroll:!0})}catch{element.focus()}}function getGeoPopupElements(){return{backdrop:document.querySelector(".recommendation-modal__backdrop_new"),container:document.querySelector(".locater-popup"),closeButton:document.querySelector(".locater-popup-close")}}function getGeoPopupFocusableElements(container){return container?Array.prototype.slice.call(container.querySelectorAll("a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex='-1'])")).filter(function(el){return el.offsetParent!==null}):[]}function deactivateGeoPopupAccessibility(){window._geoPopupFocusTrapHandler&&(document.removeEventListener("keydown",window._geoPopupFocusTrapHandler),window._geoPopupFocusTrapHandler=null);var popupEls=getGeoPopupElements();popupEls.backdrop&&popupEls.backdrop.setAttribute("aria-hidden","true"),window._geoPopupPreviousFocus&&document.contains(window._geoPopupPreviousFocus)&&window._geoPopupPreviousFocus.focus(),window._geoPopupPreviousFocus=null}function activateGeoPopupAccessibility(){var popupEls=getGeoPopupElements(),container=popupEls.container;if(container){document.activeElement&&!container.contains(document.activeElement)&&(window._geoPopupPreviousFocus=document.activeElement),popupEls.backdrop&&popupEls.backdrop.setAttribute("aria-hidden","false"),container.setAttribute("role","dialog"),container.setAttribute("aria-modal","true"),container.setAttribute("tabindex","-1");var focusable=getGeoPopupFocusableElements(container);popupEls.closeButton?(popupEls.closeButton.setAttribute("tabindex","0"),focusGeoPopupElement(popupEls.closeButton)):focusable.length?focusGeoPopupElement(focusable[0]):focusGeoPopupElement(container),window._geoPopupFocusTrapHandler&&document.removeEventListener("keydown",window._geoPopupFocusTrapHandler),window._geoPopupFocusTrapHandler=function(event){if(isGeoPopupVisible(popupEls.backdrop)){if(event.key==="Escape"){popupEls.closeButton&&popupEls.closeButton.click();return}if(event.key==="Tab"){var modalFocusable=getGeoPopupFocusableElements(container);if(!modalFocusable.length){event.preventDefault();return}var first=modalFocusable[0],last=modalFocusable[modalFocusable.length-1],isShift=event.shiftKey;isShift&&document.activeElement===first?(event.preventDefault(),last.focus()):!isShift&&document.activeElement===last&&(event.preventDefault(),first.focus())}}},document.addEventListener("keydown",window._geoPopupFocusTrapHandler)}}function showGeoPopup(targetCountryCode){LoadGeoSection(function(){targetCountryCode=(targetCountryCode||"").toLowerCase(),updateGeolocationContent(targetCountryCode),HandleGeolocationPopupForm(targetCountryCode);var backdrop=document.querySelector(".recommendation-modal__backdrop_new"),locationsPopup=document.querySelector(".locater-popup-locations"),mainPopup=document.querySelector(".locator-popup-main");mainPopup&&(mainPopup.style.display="block"),locationsPopup&&(locationsPopup.style.display="flex"),backdrop&&(backdrop.style.display="flex"),activateGeoPopupAccessibility()})}function handleDetectedCountry(detectedCountry,siteCountry){detectedCountry=(detectedCountry||"").toUpperCase(),siteCountry=siteCountry||getSiteCountry(),setDataOnBody(detectedCountry),updateCurrencyDisplay(detectedCountry),shouldShowGeoPopup(siteCountry,detectedCountry)&&!isGeoPopupDismissed(siteCountry)&&showGeoPopup(getPopupTargetCountry(siteCountry,detectedCountry))}function HandleArneGeolocation(){var forceCountry=GetParam("forcecountry"),cachedCountryCode=GetCookie("arne_geo_country_code"),siteCountry=getSiteCountry();if(forceCountry){setCookie("arne_geo_country_code",forceCountry,.25),handleDetectedCountry(forceCountry,siteCountry);return}if(cachedCountryCode){handleDetectedCountry(cachedCountryCode,siteCountry);return}GeoCaller(function(response){setCookie("arne_geo_country_code",response.country_code,.25),handleDetectedCountry(response.country_code,siteCountry)})}function HandleGeolocationPopupForm(countryCode){console.log("HandleGeolocationPopupForm Country Code:",countryCode);var dropdown=document.querySelector(".locator-popup-dropdown"),form=document.querySelector(".localization-form");if(dropdown&&form){var options=dropdown.options;if(!dropdown.dataset.initialized){for(var i=0;i<options.length;i++)if(options[i].value.toLowerCase()===countryCode.toLowerCase()){dropdown.selectedIndex=i;break}dropdown.dataset.initialized=!0}var continueBtn=document.querySelector(".locator-first-btn");continueBtn&&continueBtn.addEventListener("click",function(e){e.preventDefault(),form.submit()}),dropdown.addEventListener("change",function(){var selectedCountryCode=dropdown.options[dropdown.selectedIndex].value.toLowerCase();updateGeolocationContent(selectedCountryCode)}
1)}}function initArneGeolocation(){HandleArneGeolocation()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",initArneGeolocation):initArneGeolocation();function handlePopupShow(command,mainPopup,locationsPopup){var mainPopupDisplay="none",locationsPopupDisplay="flex";command==="show"&&(mainPopupDisplay="block",locationsPopupDisplay="none"),mainPopup.style.display=mainPopupDisplay,locationsPopup.style.display=locationsPopupDisplay}function handlePopup(){var closePopupBtn=document.querySelector(".locater-popup-close"),changeLocationBtns=document.querySelectorAll(".locater-popup-change-location"),cancelLocationChangeBtn=document.querySelector(".locater-popup-cancel"),backdrop=document.querySelector(".recommendation-modal__backdrop_new"),mainPopup=document.querySelector(".locator-popup-main"),locationsPopup=document.querySelector(".locater-popup-locations");!backdrop||backdrop.dataset.popupBound==="true"||(backdrop.dataset.popupBound="true",closePopupBtn?(console.log("closePopupBtn found"),closePopupBtn.setAttribute("role","button"),closePopupBtn.setAttribute("aria-label","Close location popup"),closePopupBtn.addEventListener("click",function(){console.log("Close button clicked"),setGeoPopupDismissed(getSiteCountry()),backdrop.style.display="none",locationsPopup.style.display="none",mainPopup&&(mainPopup.style.display="none"),deactivateGeoPopupAccessibility()}),closePopupBtn.addEventListener("keydown",function(event){(event.key==="Enter"||event.key===" ")&&(event.preventDefault(),closePopupBtn.click())})):console.warn("closePopupBtn NOT found at time of binding"),changeLocationBtns&&changeLocationBtns.length&&changeLocationBtns.forEach(function(btn){btn.addEventListener("click",function(){console.log("Change location clicked"),handlePopupShow("hide",mainPopup,locationsPopup)})}),cancelLocationChangeBtn&&cancelLocationChangeBtn.addEventListener("click",function(){console.log("Cancel clicked"),handlePopupShow("show",mainPopup,locationsPopup)}))}document.addEventListener("DOMContentLoaded",function(){handlePopup()}),document.addEventListener("click",function(e){if(e.target.closest(".contact_sidebar_toggle")){const contactSidebar=document.querySelector(".contact_sidebar"),body=document.body;contactSidebar&&contactSidebar.classList.toggle("opened"),body.classList.contains("c_sidebar_opened")||body.classList.add("c_sidebar_opened"),body.classList.contains("menu_opened")&&body.classList.remove("menu_opened")}if(e.target.classList.contains("custom_sidebar_overlay")){const contactSidebar=document.querySelector(".contact_sidebar"),body=document.body;contactSidebar&&contactSidebar.classList.remove("opened"),body.classList.remove("c_sidebar_opened")}if(e.target.closest(".sidebar_closer")){const contactSidebar=document.querySelector(".contact_sidebar"),body=document.body;contactSidebar&&contactSidebar.classList.remove("opened"),body.classList.remove("c_sidebar_opened")}}),document.addEventListener("click",event=>{const proxy=event.target.closest("[data-proxy-toggle]");if(!proxy)return;const wrapper=proxy.closest(".shop-the-look__product-wrapper");if(!wrapper)return;const quickViewLink=wrapper.querySelector(".shop-the-look__product-link");quickViewLink&&quickViewLink.click()}),document.addEventListener("shop-the-look:slide-changed",event=>{const shopTheLook=event.target,activeIndex=shopTheLook.selectedIndex;shopTheLook.querySelectorAll(".shop-the-look__dot-nav").forEach((dot,index)=>{index===activeIndex?dot.classList.add("is-active"):dot.classList.remove("is-active")})}),(function(){const initialized=new WeakSet;function attachPinchHandler(mediaElement){if(initialized.has(mediaElement))return;initialized.add(mediaElement);const carousel=mediaElement.querySelector("flickity-carousel");if(!carousel)return;let scale=1,offsetX=0,offsetY=0,lastDist=null,lastSingleX=null,lastSingleY=null,activeImg=null,activeWrapper=null,isZoomed=!1;function getSelectedImage(){const item=mediaElement.querySelector(".product__media-item.is-selected");return!item||item.getAttribute("data-media-type")!=="image"?null:item.querySelector("img")}function getSelectedWrapper(){const item=mediaElement.querySelector(".product__media-item.is-selected");return item?item.querySelector(".product__media-image-wrapper"):null}function clamp(val,min,max){return Math.min(max,Math.max(min,val))}function clampOffsets(){if(!activeWrapper)return;const w=activeWrapper.clientWidth,h=activeWrapper.clientHeight;offsetX=clamp(offsetX,w*(1-scale),0),offsetY=clamp(offsetY,h*(1-scale),0)}function applyTransform(){activeImg&&(activeImg.style.transformOrigin="0 0",activeImg.style.transform=`translate(${offsetX}px, ${offsetY}px) scale(${scale})`)}function resetZoom(animate){scale=1,offsetX=0,offsetY=0,isZoomed=!1,lastDist=null,lastSingleX=null,lastSingleY=null,activeImg&&(animate?(activeImg.style.transition="transform 0.2s ease",activeImg.style.transform="",activeImg.style.transformOrigin="",setTimeout(()=>{activeImg&&(activeImg.style.transition="")},220)):(activeImg.style.transition="",activeImg.style.transform="",activeImg.style.transformOrigin=""),activeImg.style.willChange=""),activeWrapper&&(activeWrapper.style.touchAction=""),carousel.setDraggable(!0),activeImg=null,activeWrapper=null}carousel.addEventListener("touchstart",function(e){if(e.touches.length===2){const img=getSelectedImage();if(!img)return;e.stopPropagation(),activeImg||(activeImg=img,activeWrapper=getSelectedWrapper(),activeImg.style.willChange="transform",activeWrapper&&(activeWrapper.style.touchAction="none"),carousel.setDraggable(!1));const t1=e.touches[0],t2=e.touches[1];lastDist=Math.hypot(t2.clientX-t1.clientX,t2.clientY-t1.clientY),lastSingleX=null,lastSingleY=null}else e.touches.length===1&&isZoomed&&(e.stopPropagation(),lastSingleX=e.touches[0].clientX,lastSingleY=e.touches[0].clientY)},{passive:!1}),carousel.addEventListener("touchmove",function(e){if(e.touches.length===2&&activeImg){e.preventDefault();const t1=e.touches[0],t2=e.touches[1],newDist=Math.hypot(t2.clientX-t1.clientX,t2.clientY-t1.clientY),rect=carousel.getBoundingClientRect(),midX=(t1.clientX+t2.clientX)/2-rect.left,midY=(t1.clientY+t2.clientY)/2-rect.top,ratio=newDist/lastDist,newScale=clamp(scale*ratio,1,4),imgSpaceX=(midX-offsetX)/scale,imgSpaceY=(midY-offsetY)/scale;offsetX=midX-imgSpaceX*newScale,offsetY=midY-imgSpaceY*newScale,scale=newScale,clampOffsets(),applyTransform(),lastDist=newDist,lastSingleX=null,lastSingleY=null,isZoomed=scale>1.01}else if(e.touches.length===1&&isZoomed&&activeImg){e.preventDefault();const curX=e.touches[0].clientX,curY=e.touches[0].clientY;lastSingleX!==null&&(offsetX+=curX-lastSingleX,offsetY+=curY-lastSingleY,clampOffsets(),applyTransform()),lastSingleX=curX,lastSingleY=curY}},{passive:!1}),carousel.addEventListener("touchend",function(e){e.touches.length<2&&(lastDist=null),e.touches.length===0&&(lastSingleX=null,lastSingleY=null,scale<=1.05&&resetZoom(!0))},{passive:!0}),carousel.addEventListener("flickity:slide-changed",function(){(isZoomed||activeImg)&&resetZoom(!1)})}
1function init(){document.querySelectorAll("product-media").forEach(attachPinchHandler),new MutationObserver(mutations=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{node.nodeType===Node.ELEMENT_NODE&&(node.matches("product-media")&&attachPinchHandler(node),node.querySelectorAll("product-media").forEach(attachPinchHandler))})})}).observe(document.body,{childList:!0,subtree:!0})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(),(function(){document.addEventListener("variant:added",function(event){if(typeof FS!="function")return;const line=event.detail&&event.detail.variant;if(!line||typeof line!="object")return;const productId=line.product_id,variantId=line.variant_id!=null?line.variant_id:null,quantity=typeof line.quantity=="number"?line.quantity:1,sku=typeof line.sku=="string"?line.sku:"",props={};productId!=null&&(props.product_id=productId),variantId!=null&&(props.variant_id=variantId),props.quantity=quantity,sku&&(props.sku=sku);const unitCents=typeof line.final_price=="number"?line.final_price:typeof line.price=="number"?line.price:void 0;typeof unitCents=="number"&&!Number.isNaN(unitCents)&&(props.price_cents=unitCents);try{FS("trackEvent",{name:"add_to_cart",properties:props})}catch{}},!1)})(),(function(){document.addEventListener("nav-drawer:open",function(){if(typeof FS=="function")try{FS("trackEvent",{name:"nav_opened",properties:{}})}catch{}},!1),document.addEventListener("nav-drawer:close",function(event){if(typeof FS!="function")return;const method=event.detail&&typeof event.detail.method=="string"?event.detail.method:"unknown";try{FS("trackEvent",{name:"nav_closed",properties:{method}})}catch{}},!1),document.addEventListener("nav-drawer:item-click",function(event){if(typeof FS!="function")return;const detail=event.detail||{},props={};detail.tier&&(props.tier=detail.tier),detail.label&&(props.label=detail.label);try{FS("trackEvent",{name:"nav_item_clicked",properties:props})}catch{}},!1)})(),(function(){function computeCanonicalHref(urlString){var url=new URL(urlString,window.location.origin),hasActiveFilters=!1,hasSort=!1;url.searchParams.forEach(function(value,key){key.indexOf("filter.")===0&&value!==""&&(hasActiveFilters=!0),key==="sort_by"&&value!==""&&(hasSort=!0)});var base=url.origin+url.pathname;if(hasActiveFilters||hasSort)return base;var page=parseInt(url.searchParams.get("page")||"1",10);return page>1?base+"?page="+page:base}function updateRobotsMeta(urlString){var url=new URL(urlString,window.location.origin),page=parseInt(url.searchParams.get("page")||"1",10),meta=document.querySelector('meta[name="robots"][data-pagination-robots]');page>1?(meta||(meta=document.createElement("meta"),meta.setAttribute("name","robots"),meta.setAttribute("data-pagination-robots",""),document.head.appendChild(meta)),meta.setAttribute("content","index, follow")):meta&&meta.remove()}function stripRedundantPageOne(urlString){var url=new URL(urlString,window.location.origin);return(url.searchParams.get("page")||"1")==="1"&&url.searchParams.delete("page"),url.toString()}function handleUrlChanged(event){if(window.location.pathname.indexOf("/collections/")===0){var url=event.detail&&event.detail.url;if(url){var canonicalLink=document.querySelector('link[rel="canonical"]');canonicalLink&&canonicalLink.setAttribute("href",computeCanonicalHref(url)),updateRobotsMeta(url),history.replaceState({},"",stripRedundantPageOne(url))}}}document.addEventListener("pagination:page-changed",handleUrlChanged),document.addEventListener("facet:criteria-changed",handleUrlChanged)})(),(function(){const initialized=new WeakSet;function updateCounter(productMedia){const counter=productMedia.querySelector(":scope > .product__media-list-wrapper > .product__media-counter");if(!counter)return;const text=counter.querySelector("span");if(!text)return;const list=productMedia.querySelector(".product__media-list");if(!list)return;const cells=Array.from(list.querySelectorAll(".product__media-item:not(.is-filtered)")),selected=list.querySelector(".product__media-item.is-selected:not(.is-filtered)");if(cells.length<2||!selected){counter.hidden=!0;return}const index=cells.indexOf(selected)+1;if(index<1){counter.hidden=!0;return}counter.hidden=!1,text.textContent=`(${index}/${cells.length})`}function attach(productMedia){if(initialized.has(productMedia))return;initialized.add(productMedia);const carousel=productMedia.querySelector("flickity-carousel");if(!carousel)return;const update=()=>updateCounter(productMedia);
1carousel.addEventListener("flickity:ready",update),carousel.addEventListener("flickity:slide-changed",update),update()}function init(){document.querySelectorAll("product-media").forEach(attach),new MutationObserver(mutations=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{node.nodeType===Node.ELEMENT_NODE&&(node.matches("product-media")&&attach(node),node.querySelectorAll("product-media").forEach(attach))})})}).observe(document.body,{childList:!0,subtree:!0})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(); 2//# sourceMappingURL=/cdn/shop/t/956/assets/custom.js.map?v=60469587023605902061790928957
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.