1"use strict";(self.webpackChunkgcom_rhythm=self.webpackChunkgcom_rhythm||[]).push([[3907,3930],{6572(e,t,s){var i=s(7223);window.GeoLocation={callGeo:function(){return fetch("https://ip.ecom.umgapps.com/ip/lookup").then(e=>e.json())},geoContent:function(e,t){const s=document.querySelectorAll("[data-geo-show]");let o="";for(const e of s)if(o=e.dataset.geoShow.split(","),o.includes(t)&&(e.classList.remove("hidden"),e.parentNode.parentNode?.classList.contains("section-soft-redirects"))){i.U.getInstance().updateMeasurements()}const n=document.querySelectorAll("[data-geo-hide]");for(const e of n)o=e.dataset.geoHide.split(","),o.includes(t)&&e.classList.add("!hidden");const r=document.querySelectorAll("[data-geo-countryname-replace]");for(const t of r)t.outerHTML=e;const a=document.querySelectorAll("[data-geo-countryiso-replace]");for(const e of a)e.outerHTML=t;if(document.querySelector('dialog[data-modal="softRedirectPopup"]')){const e=document.querySelector('dialog[data-modal="softRedirectPopup"]');let t=!0;if(sessionStorage.getItem("_x_softRedirectVisible")){"false"===sessionStorage.getItem("_x_softRedirectVisible")&&(t=!1)}t&&e.showModal()}},applyGeo:function(e,t,s){Shopify.designMode||Shopify.analytics.publish("geolocation_detected",{countryCode:t,city:s}),this.geoContent(e,t),window.countryISOCodeGlobal=t},checkGeo:function(){this.callGeo().then(e=>{const t=e.countryISOCode,s=e.country,i=e.city;this.applyGeo(s,t,i)})}},window.addEventListener("load",function(){window.GeoLocation.checkGeo()})},7223(e,t,s){s.d(t,{U:()=>c});var i=s(5805);const o=Object.freeze({none:"none",static:"static",sticky:"sticky",fixed:"fixed",dynamic:"dynamic",siteHeader:"site-header",dynamicHidden:"dynamic_hidden",umgSticky:"umg-sticky",headerGroupSelector:".shopify-section-group-header-group"});class n{constructor(e){this.element=e,this.isSiteHeader=!1,this.computedStyle=window.getComputedStyle(this.element),this.isSticky=this.computedStyle.position===o.sticky,this.isFixed=this.computedStyle.position===o.fixed,this.isHidden=this.computedStyle.display===o.none,this.isDynamicHidden=!1,this.resetStyles(),this.resetVars()}resetStyles(){this.element.classList.remove(o.dynamicHidden),this.element.style.transform="",this.element.style.top="",this.element.classList.add(o.umgSticky,"transition-[transform]")}resetVars(){this.computedStyle=window.getComputedStyle(this.element),this.isSticky=this.computedStyle.position===o.sticky,this.isFixed=this.computedStyle.position===o.fixed,this.isHidden=this.computedStyle.display===o.none,this.isDyanmicHidden=!1}dynamicShow(){!this.isSiteHeader&&this.isSticky||(this.element.classList.remove(o.dynamicHidden),this.element.style.transform="none",this.isDynamicHidden=!1)}dynamicHide(){!this.isSiteHeader&&this.isSticky||(this.element.classList.add(o.dynamicHidden),this.element.style.transform="translateY(calc(-1 * var(--header-group-height)))",this.isDynamicHidden=!0)}}class r extends n{constructor(e){super(e),this.isSiteHeader=!0,this.wrapper=this.element.querySelector(".header__wrapper"),this.isMd=null!==this.wrapper&&this.wrapper.classList.contains("header__wrapper--md"),this.behaviors=this.setBehaviors(),this.updateHeaderPositions(),this.resetVars()}setBehaviors(){const e={dynamic:!1,headerPosition:o.static,groupPosition:o.static},t=this.wrapper?.dataset.position??null,[s,i]=t?.split("_")??[null,null];return s&&i?(e.dynamic=s===o.dynamic,e.headerPosition=i,e.groupPosition=i===o.fixed?o.fixed:o.static,e):e}updateHeaderPositions(){const e=this.isMd?"-md":"";document.body.style.setProperty(`--header-group-header-position${e}`,this.behaviors.headerPosition),document.body.style.setProperty(`--header-group-position${e}`,this.behaviors.groupPosition)}}class a{constructor(e){this.element=e,this.computedStyle=window.getComputedStyle(this.element),this.isHidden=this.computedStyle.display===o.none,this.isSticky=this.computedStyle.position===o.sticky,this.isFixed=this.computedStyle.position===o.fixed}}class d{constructor(e){this.headers=e,this.siteHeaders=this.headers.filter(e=>e.isSiteHeader),this.stickyElements=[],this.fixedGroup=this.siteHeadersBehave("headerPosition","fixed"),this.hasDynamicHeaders=this.siteHeadersBehave("dynamic",!0),this.dynamicTargets=[],this.scrollEventCallback=null}siteHeadersBehave(e,t){for(const s of this.siteHeaders)if(!s.isHidden&&s.behaviors[e]===t)return!0;return!1}hideDynamicTargets(){for(const e of this.dynamicTargets)e.dynamicHide(),this.updateMeasurements()}showDynamicTargets(){for(const e of this.dynamicTargets)e.dynamicShow(),this.updateMeasurements()}updateInitialMeasurements(){return this.updateMeasurements(!0)}updateMeasurements(e=!1){let t=0,s=0,i=0,o=0;const n=[];for(const e of this.headers){if(!e.isHidden){let n=e.element.offsetHeight;0===n&&(n=e.element.querySelector("div")?.offsetHeight??0),t+=n,e.isDynamicHidden||(s+=n,(e.isSticky||e.isFixed)&&(i+=n)),document.body.style.setProperty(`--header-item-height-${o}`,s+"px"),document.body.style.setProperty(`--header-item-sticky-height-${o}`,i+"px"),e.element.style.top=0===o?"0":e.isSticky?`var(--header-item-sticky-height-${o-1})`:`var(--header-item-height-${o-1})`,o++}n.push(e.element)}for(const e of this.stickyElements)if(!n.includes(e.element)){if(!e.isHidden){let t=e.element.offsetHeight;0===t&&(t=e.element.querySelector("div")?.offsetHeight??0),(e.isSticky||e.isFixed)&&(i+=t),document.body.style.setProperty(`--header-item-sticky-height-${o}`,i+"px"),e.element.style.top=0===o?"0":`var(--header-item-sticky-height-${o-1})`,o++}n.push(e.element)}document.body.style.setProperty("--header-group-height",t+"px"),document.body.style.setProperty("--header-sticky-height",i+"px"),e&&document.body.style.setProperty("--header-group-height-init",t+"px")}setScrollListener(){const e=window.scrollY;for(const t of this.siteHeaders){const s=t.isSiteHeader&&t.behaviors.dynamic;!t.isHidden&&s&&(this.dynamicTargets=t.isFixed?this.headers:[t],this.scrollEventCallback=l(e,this),window.addEventListener("scroll",this.scrollEventCallback,{passive:!0}))}}}class c{constructor(){this.headerGroup=null,this.stickyElements=[],document.addEventListener("DOMContentLoaded",()=>this.buildInitialHeaders()),window.addEventListener("resize",(0,i.sg)(()=>this.buildHeaders(!1),100)),Shopify.designMode&&(document.addEventListener("shopify:section:load",()=>this.buildInitialHeaders()),document.addEventListener("shopify:section:unload",()=>this.buildInitialHeaders()),document.addEventListener("shopify:section:reorder",()=>this.buildInitialHeaders()))}static getInstance(){return c.instance||(c.instance=new c),c.instance}buildInitialHeaders(){return this.buildHeaders(!0)}buildHeaders(e=!1){this.headerGroup?.scrollEventCallback&&window.removeEventListener("scroll",this.headerGroup.scrollEventCallback);
1const t=document.querySelectorAll(o.headerGroupSelector),s=[];for(const[i,a]of t.entries()){const t=a.classList.contains(o.siteHeader)?new r(a):new n(a);e&&(t.element.dataset.initialIndex=i.toString()),s.push(t)}const i=new d(s);this.stickyHeaderOrderManager(i),i.updateInitialMeasurements(),i.hasDynamicHeaders&&i.setScrollListener(),this.headerGroup=i,this.setStickyElements(),this.headerGroup.stickyElements=this.stickyElements}setStickyElements(){const e=Array.from(document.querySelectorAll("."+o.umgSticky)).filter(e=>window.getComputedStyle(e).position===o.sticky),t=[];for(const s of e)t.push(new a(s));this.stickyElements=t}stickyHeaderOrderManager(e){if(null!=e){let t=0;for(const s of[...e.headers].reverse())if(e.headers.splice(e.headers.indexOf(s),1),e.fixedGroup&&s.isSticky)e.headers.unshift(s),t+=1;else{const i=s.element.dataset.initialIndex;if(!i)return;e.headers.splice(parseInt(i,10)+t,0,s)}}}updateMeasurements(){return this.headerGroup?.updateMeasurements()}}c.instance=null;const l=(e,t)=>{let s=e;return()=>{const e=window.scrollY,i=s>e;document.body.dataset.scrolled=String(window.scrollY>0);const n=document.querySelectorAll("."+o.siteHeader+" predictive-search");for(const e of n)e.close();if(i&&"up"!==document.body.dataset.scrollDirection)t.showDynamicTargets(),document.body.dataset.scrollDirection="up";else if(!i&&"down"!==document.body.dataset.scrollDirection){if(window.scrollY<=0)return;t.hideDynamicTargets(),document.body.dataset.scrollDirection="down"}s=e}}},5805(e,t,s){function i(e,t=100){let s=null;return function(...i){null===s&&(s=setTimeout(()=>{e.apply(this,i),s=null},t))}}function o(e,t){let s;return(...i)=>{clearTimeout(s),s=setTimeout(()=>e.apply(this,i),t)}}s.d(t,{DT:()=>m,Dz:()=>n,aM:()=>h,nF:()=>i,oM:()=>a,qF:()=>d,sg:()=>o,up:()=>p});function n(e="json"){return{method:"POST",headers:{"Content-Type":"application/json",Accept:`application/${e}`}}}const r={};function a(e,t=e){const s=function(e){return Array.from(e.querySelectorAll('summary, a[href], button:enabled, [tabindex]:not([tabindex^="-"]), [draggable], area, input:not([type=hidden]):enabled, select:enabled, textarea:enabled, object, iframe'))}(e),i=s[0],o=s[s.length-1];d(),r.focusin=t=>{t.target!==e&&t.target!==o&&t.target!==i||document.addEventListener("keydown",r.keydown)},r.focusout=function(){document.removeEventListener("keydown",r.keydown)},r.keydown=function(t){"TAB"===t.code.toUpperCase()&&(t.target!==o||t.shiftKey||(t.preventDefault(),i.focus()),t.target!==e&&t.target!==i||!t.shiftKey||(t.preventDefault(),o.focus()))},document.addEventListener("focusout",r.focusout),document.addEventListener("focusin",r.focusin),t.focus()}function d(e=null){document.removeEventListener("focusin",r.focusin),document.removeEventListener("focusout",r.focusout),document.removeEventListener("keydown",r.keydown),e&&e.focus()}let c,l=0,u=[];function h(e,t){const s=[],i=t.errors?t.errors:t.message;if(function(e){let t="string"!=typeof e?JSON.stringify(e):e;try{t=JSON.parse(t)}catch(e){return!1}return"object"==typeof t&&null!==t}(i)){const t=JSON.parse(i);let o=[];!function(e){let t=e;0===l&&(c=e),1===l&&(u=[...c,...e],t=u);const s=new URLSearchParams;let i=!1;t.forEach(e=>{const t=e.productLevelLimit;let o=t;
1e.variants.forEach(e=>{const n=e.id;if(!n)return;const r="cart-item--"+n,a=document.getElementById(r)?.getAttribute("qty"),d=e.maxVariantLimit;let c=t;(null===c||null!==d&&d<c)&&(c=d);const l=null===c?-1:Number(c);let u;u=a<=l||-1===l?a:l,-1!==o&&(u>o&&(u=o),o&&(o<u?o=0:o-=u)),u!==a&&(i=!0),s.append(`updates[${n}]`,String(u))})}),i&&fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},credentials:"same-origin",body:s.toString()}).then(e=>e.json()).then(e=>{422===e.status&&0===l&&(l++,h(null,e)),window.refreshSections([{id:"cart-drawer"},{id:"header-cart-count"}])})}(t),e.component_ids?o=[...e.component_ids]:o.push(e.id);let n=!1;t.forEach(e=>{e.variants.length&&e.variants.forEach(t=>{null!==t.maxVariantLimit&&""!==t.error&&""!==t.cartLevelError&&(n=!0,o.includes(e.id)?s.push(t.error):s.push(t.cartLevelError))}),null===e.productLevelLimit||""===e.error||""===e.cartLevelError||n||(o.includes(e.id)?s.push(e.error):s.push(e.cartLevelError))})}else s.push(t.errors?t.errors:t.description);throw s}function m(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function p(e){const t=window.shopCurrencyFormat;if(isNaN(e)||!t)return"";const s=parseFloat((e/100).toString()),i=t.includes("amount")&&!t.includes("amount_")||t.includes("amount_with_comma_separator")||t.includes("amount_with_apostrophe_separator")||t.includes("amount_with_space_separator")||t.includes("amount_with_period_and_space_separator")?2:0,o=(e,t=",")=>e.replace(/\B(?=(\d{3})+(?!\d))/g,t);let n=s.toFixed(i);return n=t.includes("amount_with_comma_separator")?o(n.replace(".",","),"."):t.includes("amount_no_decimals_with_comma_separator")?o(parseInt(s).toString(),"."):t.includes("amount_with_apostrophe_separator")?o(n,"'"):t.includes("amount_no_decimals_with_space_separator")?o(parseInt(s).toString()," "):t.includes("amount_with_space_separator")?o(n," "):t.includes("amount_with_period_and_space_separator")?o(n.replace("."," ")," "):t.includes("amount_no_decimals")?parseInt(s).toString():o(n),((e,t)=>t.replace(/{{\s*amount.*?\s*}}/,e))(n,t)}}},e=>{var t;t=6572,e(e.s=t)}]);
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.