vendor: 8,347 bytes, line 1
1var _createClass=(function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}})();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(function(){if(typeof window>"u"||typeof Element>"u")return;var slice=Array.prototype.slice,matches=Element.prototype.matches||Element.prototype.msMatchesSelector,_focusableElementsString=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","video","[contenteditable]"].join(","),InertRoot=(function(){function InertRoot2(rootElement,inertManager2){_classCallCheck(this,InertRoot2),this._inertManager=inertManager2,this._rootElement=rootElement,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return _createClass(InertRoot2,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(this._savedAriaHidden!==null?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach(function(inertNode){this._unmanageNode(inertNode.node)},this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(startNode){var _this2=this;composedTreeWalk(startNode,function(node2){return _this2._visitNode(node2)});var activeElement=document.activeElement;if(!document.body.contains(startNode)){for(var node=startNode,root=void 0;node;){if(node.nodeType===Node.DOCUMENT_FRAGMENT_NODE){root=node;break}node=node.parentNode}root&&(activeElement=root.activeElement)}startNode.contains(activeElement)&&(activeElement.blur(),activeElement===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(node){if(node.nodeType===Node.ELEMENT_NODE){var element=node;element!==this._rootElement&&element.hasAttribute("inert")&&this._adoptInertRoot(element),(matches.call(element,_focusableElementsString)||element.hasAttribute("tabindex"))&&this._manageNode(element)}}},{key:"_manageNode",value:function(node){var inertNode=this._inertManager.register(node,this);this._managedNodes.add(inertNode)}},{key:"_unmanageNode",value:function(node){var inertNode=this._inertManager.deregister(node,this);inertNode&&this._managedNodes.delete(inertNode)}},{key:"_unmanageSubtree",value:function(startNode){var _this3=this;composedTreeWalk(startNode,function(node){return _this3._unmanageNode(node)})}},{key:"_adoptInertRoot",value:function(node){var inertSubroot=this._inertManager.getInertRoot(node);inertSubroot||(this._inertManager.setInert(node,!0),inertSubroot=this._inertManager.getInertRoot(node)),inertSubroot.managedNodes.forEach(function(savedInertNode){this._manageNode(savedInertNode.node)},this)}},{key:"_onMutation",value:function(records,self){records.forEach(function(record){var target=record.target;if(record.type==="childList")slice.call(record.addedNodes).forEach(function(node){this._makeSubtreeUnfocusable(node)},this),slice.call(record.removedNodes).forEach(function(node){this._unmanageSubtree(node)},this);else if(record.type==="attributes"){if(record.attributeName==="tabindex")this._manageNode(target);else if(target!==this._rootElement&&record.attributeName==="inert"&&target.hasAttribute("inert")){this._adoptInertRoot(target);var inertSubroot=this._inertManager.getInertRoot(target);this._managedNodes.forEach(function(managedNode){target.contains(managedNode.node)&&inertSubroot._manageNode(managedNode.node)})}}},this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return this._savedAriaHidden!==null}},{key:"savedAriaHidden",set:function(ariaHidden){this._savedAriaHidden=ariaHidden},get:function(){return this._savedAriaHidden}}]),InertRoot2})(),InertNode=(function(){function InertNode2(node,inertRoot){_classCallCheck(this,InertNode2),this._node=node,this._overrodeFocusMethod=!1,this._inertRoots=new Set([inertRoot]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return _createClass(InertNode2,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var element=this._node;this._savedTabIndex!==null?element.setAttribute("tabindex",this._savedTabIndex):element.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete element.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var element=this.node;if(matches.call(element,_focusableElementsString)){if(element.tabIndex===-1&&this.hasSavedTabIndex)return;element.hasAttribute("tabindex")&&(this._savedTabIndex=element.tabIndex),element.setAttribute("tabindex","-1"),element.nodeType===Node.ELEMENT_NODE&&(element.focus=function(){},this._overrodeFocusMethod=!0)}else element.hasAttribute("tabindex")&&(this._savedTabIndex=element.tabIndex,element.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(inertRoot){this._throwIfDestroyed(),this._inertRoots.add(inertRoot)}},{key:"removeInertRoot",value:function(inertRoot){this._throwIfDestroyed(),this._inertRoots.delete(inertRoot),this._inertRoots.size===0&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return this._savedTabIndex!==null}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(tabIndex){this._throwIfDestroyed(),this._savedTabIndex=tabIndex},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),InertNode2})(),InertManager=(function(){function InertManager2(document2){if(_classCallCheck(this,InertManager2),!document2)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=document2,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),addInertStyle(document2.head||document2.body||document2.documentElement),document2.readyState==="loading"?document2.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return _createClass(InertManager2,[{key:"setInert",value:function(root,inert){if(inert){if(this._inertRoots.has(root))return;var inertRoot=new InertRoot(root,this);if(root.setAttribute("inert",""),this._inertRoots.set(root,inertRoot),!this._document.body.contains(root))for(var parent=root.parentNode;parent;)parent.nodeType===11&&addInertStyle(parent),parent=parent.parentNode}else{if(!this._inertRoots.has(root))return;var _inertRoot=this._inertRoots.get(root);_inertRoot.destructor(),this._inertRoots.delete(root),root.removeAttribute("inert")}}},{key:"getInertRoot",value:function(element){return this._inertRoots.get(element)}},{key:"register",value:function(node,inertRoot){var inertNode=this._managedNodes.get(node);return inertNode!==void 0?inertNode.addInertRoot(inertRoot):inertNode=new InertNode(node,inertRoot),this._managedNodes.set(node,inertNode),inertNode}},{key:"deregister",value:function(node,inertRoot){var inertNode=this._managedNodes.get(node);return inertNode?(inertNode.removeInertRoot(inertRoot),inertNode.destroyed&&this._managedNodes.delete(node),inertNode):null}},{key:"_onDocumentLoaded",value:function(){var inertElements=slice.call(this._document.querySelectorAll("[inert]"));
1inertElements.forEach(function(inertElement){this.setInert(inertElement,!0)},this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(records,self){var _this=this;records.forEach(function(record){switch(record.type){case"childList":slice.call(record.addedNodes).forEach(function(node){if(node.nodeType===Node.ELEMENT_NODE){var inertElements=slice.call(node.querySelectorAll("[inert]"));matches.call(node,"[inert]")&&inertElements.unshift(node),inertElements.forEach(function(inertElement){this.setInert(inertElement,!0)},_this)}},_this);break;case"attributes":if(record.attributeName!=="inert")return;var target=record.target,inert=target.hasAttribute("inert");_this.setInert(target,inert);break}},this)}}]),InertManager2})();function composedTreeWalk(node,callback,shadowRootAncestor){if(node.nodeType==Node.ELEMENT_NODE){var element=node;callback&&callback(element);var shadowRoot=element.shadowRoot;if(shadowRoot){composedTreeWalk(shadowRoot,callback,shadowRoot);return}if(element.localName=="content"){for(var content=element,distributedNodes=content.getDistributedNodes?content.getDistributedNodes():[],i=0;i<distributedNodes.length;i++)composedTreeWalk(distributedNodes[i],callback,shadowRootAncestor);return}if(element.localName=="slot"){for(var slot=element,_distributedNodes=slot.assignedNodes?slot.assignedNodes({flatten:!0}):[],_i=0;_i<_distributedNodes.length;_i++)composedTreeWalk(_distributedNodes[_i],callback,shadowRootAncestor);return}}for(var child=node.firstChild;child!=null;)composedTreeWalk(child,callback,shadowRootAncestor),child=child.nextSibling}function addInertStyle(node){if(!node.querySelector("style#inert-style, link#inert-style")){var style=document.createElement("style");style.setAttribute("id","inert-style"),style.textContent=` 2[inert] { 3 pointer-events: none; 4 cursor: default; 5} 6 7[inert], [inert] * { 8 -webkit-user-select: none; 9 -moz-user-select: none; 10 -ms-user-select: none; 11 user-select: none; 12} 13`,node.appendChild(style)}}if(!HTMLElement.prototype.hasOwnProperty("inert")){var inertManager=new InertManager(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(inert){inertManager.setInert(this,inert)}})}})();import{Alpine as Alpine2,AlpinePlugins}from"vendor";function fetched_fragment_default(Alpine3){Alpine3.magic("fetchedFragment",(el,{Alpine:Alpine4,evaluateLater})=>(url,selector,loadingClasses=null)=>{let classNames;return loadingClasses&&(classNames=loadingClasses.split(/\s+/g),el.classList.add(...classNames)),async()=>{const html=await fetchHTMLFragment(url,selector);return Alpine4.nextTick(()=>{classNames&&el.classList.remove(...classNames)}),html}})}function html_if_set_default(Alpine3){Alpine3.directive("html-if-set",(el,{modifiers,expression},{effect,evaluateLater})=>{let evaluate=evaluateLater(expression),useEmpty=modifiers.includes("use-empty");function saveInitialHTML(){el._x_custom_initialHTML=el.innerHTML}function getInitialHTML(){return el._x_custom_initialHTML}effect(()=>{let newHTML;evaluate(value=>{value?(newHTML=value,getInitialHTML()||saveInitialHTML()):useEmpty&&value===""?newHTML=value:getInitialHTML()&&(newHTML=getInitialHTML()),(newHTML||useEmpty&&newHTML==="")&&Alpine3.mutateDom(()=>{el.innerHTML=newHTML,el._x_ignoreSelf=!0,Alpine3.initTree(el),delete el._x_ignoreSelf})})})})}var modals_default={domContentLoaded:!1,leftDrawer:{open:!1,contents:""},rightDrawer:{open:!1,contents:""},quickBuyDrawer:{open:!1,contents:""},modal:{open:!1,contents:""},promo:{open:!1,contents:""},popup:{open:!1,contents:""},modals:{},async init(){await switchOnDOMContentLoaded(),await Alpine.nextTick(),await Alpine.nextTick();for(const slotName of["leftDrawer","rightDrawer","quickBuyDrawer","modal","popup"])this.setUpShow(slotName),this.setUpHide(slotName)},register(name,slotName){this.modals[name]=slotName},async open(name,{mightBeEmpty=!1,openerEl=null}={}){if(this.modals[name]){const slotName=this.modals[name];if(this[slotName].contents===name&&this[slotName].open===!0)return;if(document.body.dispatchEvent(new CustomEvent(`${kebabCase(name)}-will-open`,{bubbles:!0})),document.body.dispatchEvent(new CustomEvent(`${kebabCase(slotName)}-will-open`,{bubbles:!0})),this[slotName].contents=name,mightBeEmpty){await Alpine.nextTick();const slotEl=this.getSlotEl(slotName),mightBeEmptyEl=slotEl.matches("[data-might-be-empty]")?slotEl:slotEl.querySelector("[data-might-be-empty]");try{await waitForContent(mightBeEmptyEl)}catch(e){console.error(e,e.element),document.body.dispatchEvent(new CustomEvent(`${kebabCase(name)}-failed-to-open`,{bubbles:!0})),document.body.dispatchEvent(new CustomEvent(`${kebabCase(slotName)}-failed-to-open`,{bubbles:!0,detail:{name}})),this[slotName].contents="";return}}this[slotName].open=!0}
13else openerEl&&openerEl.dispatchEvent(new CustomEvent("modal-not-registered"))},close(nameOrSlotName){let name,slotName;this.modals[nameOrSlotName]?(name=nameOrSlotName,slotName=this.modals[nameOrSlotName]):(name=this[nameOrSlotName].contents,slotName=nameOrSlotName),!(this[slotName].contents!==name||this[slotName].open!==!0)&&(document.body.dispatchEvent(new CustomEvent(`${kebabCase(name)}-will-close`,{bubbles:!0})),document.body.dispatchEvent(new CustomEvent(`${kebabCase(slotName)}-will-close`,{bubbles:!0,detail:{name}})),this[slotName].open=!1)},setUpShow(slotName){const slotEl=document.getElementById(`${kebabCase(slotName)}-slot`);if(!slotEl)return;const xShowEl=slotEl.closest("[x-show]");if(!(xShowEl&&xShowEl._x_doShow))return;const doShow=xShowEl._x_doShow;xShowEl._x_doShow=async()=>{const xTransitionEl=xShowEl.closest("[x-transition], [x-transition\\:enter], [x-transition\\:enter-start], [x-transition\\:enter-end]")??xShowEl;doShow(),await rafTick();let animations=xTransitionEl.getAnimations();animations.length||(await rafTick(),animations=xTransitionEl.getAnimations()),animations.length&&await Promise.all(animations.map(animation=>animation.finished)).catch(()=>{});const name=Alpine.store("modals")[slotName].contents;document.body.dispatchEvent(new CustomEvent(`${kebabCase(name)}-is-open`,{bubbles:!0})),document.body.dispatchEvent(new CustomEvent(`${kebabCase(slotName)}-is-open`,{bubbles:!0,detail:{name}}))}},setUpHide(slotName){const slotEl=document.getElementById(`${kebabCase(slotName)}-slot`);if(!slotEl)return;const xHideEl=slotEl.closest("[x-show]");if(!(xHideEl&&xHideEl._x_doHide))return;const doHide=xHideEl._x_doHide;xHideEl._x_doHide=async()=>{doHide();const name=Alpine.store("modals")[slotName].contents;Alpine.store("modals")[slotName].contents="",document.body.dispatchEvent(new CustomEvent(`${kebabCase(name)}-is-closed`,{bubbles:!0})),document.body.dispatchEvent(new CustomEvent(`${kebabCase(slotName)}-is-closed`,{bubbles:!0,detail:{name}})),await rafTick(),await rafTick(),this.anyOpen()||(document.documentElement.style.removeProperty("overflow"),document.documentElement.style.removeProperty("padding-right"))}},anyOpen(){return Object.values(Alpine.store("modals")).some(v=>v.open===!0)},closeAll(){Object.keys(this.modals).forEach(modal=>{Alpine.store("modals").close(modal)})},getSlotEl(slotName){return document.getElementById(`${kebabCase(slotName)}-slot`)||null},removeExistingContents(slotName,selector){const existingModalContents=this.getSlotEl(slotName)?.querySelector(selector);existingModalContents&&existingModalContents.remove()},isRegistered(name){return!!this.modals[name]},isOpen(name){if(Object.keys(this.modals).includes(name)){const slotName=this.modals[name];if(this[slotName].contents===name&&this[slotName].open)return!0}return!1}},cart_count_default={count:window.theme&&window.theme.cartItemCount||0,init(){window.addEventListener("shapes:cart:afteradditem",e=>{this._setFromFetchedSection(e.detail.response)}),window.addEventListener("shapes:cart:cartqtychange",e=>{this._setFromFetchedSection(e.detail.response)}),window.addEventListener("shapes:cart:update",e=>{this._setFromFetchedSection(e.detail.response)})},_setFromFetchedSection(data){const countSectionHTML=getCartSectionHTML(data.sections,"count");if(!countSectionHTML){console.error("Unable to render cart count from section response.");return}this.count=parseInt(parseDOMFromString(countSectionHTML).firstElementChild.innerText.trim(),10),window.theme.cartItemCount=this.count},get countWithText(){let string=theme.strings.itemCountOther;return this.count===1&&(string=theme.strings.itemCountOne),string.replace("{{ count }}",this.count)}},breakpoints_default={maxMd:window.isMaxMdBreakpoint(),md:window.isMdBreakpoint(),maxLg:window.isMaxLgBreakpoint(),lg:window.isLgBreakpoint(),motionSafe:window.isMotionSafe(),init(){window.maxMdBreakpointMQL().addEventListener("change",e=>{this.maxMd=e.matches}),window.mdBreakpointMQL().addEventListener("change",e=>{this.md=e.matches}),window.maxLgBreakpointMQL().addEventListener("change",e=>{this.maxLg=e.matches}
13),window.lgBreakpointMQL().addEventListener("change",e=>{this.lg=e.matches}),window.motionSafeMQL().addEventListener("change",e=>{this.motionSafe=!e.matches})}},age_check_default=({mode,dateFormat,minimumAge,redirectURL,enabled,declineAction})=>({authenticated:!1,mode,dateFormat,minimumAge,redirectURL,month:"",day:"",year:"",date:"",enabled,sectionId:null,storageKey:null,boundOnSectionSelect:null,boundOnSectionDeselect:null,showDeclinedMessage:!1,get fullDate(){return`${this.month}/${this.day}/${this.year}`},init(){this.sectionId=getSectionId(this.$root),this.storageKey=`switch-age-check-${this.sectionId}`,window.location.pathname!=="/challenge"&&(Shopify.designMode&&Alpine.store("modals").removeExistingContents("modal",`#age-check-${this.sectionId}`),initTeleport(this.$root),Alpine.store("modals").register("ageCheck","modal"),Shopify.designMode?(window.theme.designMode.selected===this.sectionId&&(this.enabled===!0?Alpine.store("modals").open("ageCheck"):Alpine.store("modals").close("ageCheck")),this.boundOnSectionSelect=this.onSectionSelect.bind(this),this.boundOnSectionDeselect=this.onSectionDeselect.bind(this),document.addEventListener("shopify:section:select",this.boundOnSectionSelect),document.addEventListener("shopify:section:deselect",this.boundOnSectionDeselect)):getExpiringStorageItem(this.storageKey)!=="approved"&&Alpine.store("modals").open("ageCheck"),this.redirectURL===null&&(this.redirectURL="https://www.google.com"),this.mode==="dob"&&(this.date=new Date,setTimeout(()=>this.setUpDOB(),100)))},onSectionSelect(e){e.target.contains(this.$root)&&this.enabled&&(Alpine.store("modals").isOpen("ageCheck")||Alpine.store("modals").open("ageCheck"))},onSectionDeselect(e){e.target.contains(this.$root)&&this.$store.modals.close("ageCheck")},approveEntry(){Alpine.store("modals").close("ageCheck"),Shopify.designMode||setExpiringStorageItem(this.storageKey,"approved",daysInMs(30))},denyEntry(){declineAction==="redirect"?window.Shopify&&window.Shopify.designMode?this.$event.preventDefault():window.location=this.redirectURL:this.showDeclinedMessage=!0},checkInput(name){switch(name){case"day":const day=Number(this.day);return day>0&&day<32;case"month":const month=Number(this.month);return month>0&&month<13;case"year":const year=Number(this.year);return year>1900&&year<=this.date.getFullYear();default:return!1}},checkAge(){const currentDate=Math.round(this.date.getTime()/1e3),enteredDate=Math.round(new Date(`${this.fullDate}`).getTime()/1e3);Math.floor((currentDate-enteredDate)/31536e3)>parseInt(this.minimumAge,10)?this.approveEntry():this.denyEntry()},setUpDOB(){const formEl=document.getElementById(`dob-form-${this.sectionId}`);formEl.addEventListener("input",e=>{const target=e.target,maxLength=parseInt(target.attributes.maxlength.value,10),targetLength=target.value.length;if(targetLength>=maxLength){if(!this.checkInput(target.getAttribute("name")))return target.value="",!1;let next=target.closest(".input-grid-item");for(;next=next.nextElementSibling;){let input=next.querySelector("input");if(input!==null){input.focus();break}}}else if(targetLength===0){let previous=target.closest(".input-grid-item");for(;previous=previous.previousElementSibling;){const input=previous.querySelector("input");if(input!==null){input.focus();break}}}}),formEl.addEventListener("submit",e=>{e.preventDefault(),this.checkInput("day")&&this.checkInput("month")&&this.checkInput("year")&&this.checkAge()})},destroy(){document.removeEventListener("shopify:section:select",this.boundOnSectionSelect),document.removeEventListener("shopify:section:deselect",this.boundOnSectionDeselect)}}),product_form_default=()=>({formEl:null,init(){this.formEl=this.$root.querySelector("form"),this.formEl?.addEventListener("submit",this.submit.bind(this))},async submit(event){event?.preventDefault?.(),this.$root.dispatchEvent(new CustomEvent("shapes:productform:loading",{bubbles:!0})),liveRegion(window.theme.strings.loading);const hasForm=event&&event.target&&event.target instanceof HTMLFormElement;let formId,formData;if(hasForm)formId=event.target.getAttribute("id"),formData=new FormData(event.target);else{formId=this.$root.getAttribute("id")||`transient-form-${Date.now()}`,formData=new FormData;const id=this.$root.querySelector('input[name="id"]:not(:disabled)')?.value||null;formData.append("id",id)}const options=fetchConfigDefaults("application/javascript");formData.append("sections",getCartSectionRequestIds().join(",")),formData.append("sections_url",window.location.pathname),options.body=formData,options.headers["X-Requested-With"]="XMLHttpRequest",delete options.headers["Content-Type"];let response,data,fetchError=null;try{response=await fetch(`${theme.routes.cart_add_url}`,options),data=await response.json()}catch(e){fetchError=e}if(data?.status||fetchError){let errors=data?.errors||data?.description||fetchError,message=data?.description||data?.message||null;const errorDetail={sourceId:formId,variantId:Number(formData.get("id")),errors,message};this.$root.dispatchEvent(new CustomEvent("shapes:productform:error",{detail:errorDetail,bubbles:!0}));const formEl=this.formEl,productRootEl=formEl?.closest("[data-product-root]")||null;if(document.dispatchEvent(new CustomEvent("theme:product:error:add-to-cart",{detail:{productRootEl,formEl,...errorDetail}})),errors){console.error(`Encountered the following errors in form #${formId}:`),Array.isArray(errors)||(errors=[errors]);for(const error of errors)console.error(error.message||error);console.error(`End errors for form #${formId}.`)}}else this.$root.dispatchEvent(new CustomEvent("shapes:productform:success",{bubbles:!0})),document.body.dispatchEvent(new CustomEvent("shapes:cart:afteradditem",{bubbles:!0,detail:{response:data,sourceId:formId}}))}}),product_default={loading:!1,addedToCart:!1,cartAddErrorMessage:null,hasGiftCardRecipientForm:!1,coreInit(){this.$root.querySelector('[x-data="GiftCardRecipient"]')&&(this.hasGiftCardRecipientForm=!0),this.setUpProductFormEvents(),Shopify?.PaymentButtons?.init()},setUpProductFormEvents(){this.$root.addEventListener("shapes:productform:loading",event=>{event.stopPropagation(),this.loading=!0,this.addedToCart=!1}),this.$root.addEventListener("shapes:productform:success",event=>{event.stopPropagation(),this.loading=!1,this.cartAddErrorMessage=null,this.addedToCart=!0,typeof this.refreshPreloadCache=="function"&&this.refreshPreloadCache()}),this.hasGiftCardRecipientForm||this.$root.addEventListener("shapes:productform:error",event=>{event.stopPropagation();const quantityEl=this.$root.querySelector('[name="quantity"]');this.cartAddErrorMessage=event.detail?.message||window.theme.strings.cartError,this.quantity=quantityEl?Number(quantityEl.getAttribute("min")):1,this.loading=!1})}},quick_buy_default=()=>({...product_default,init(){this.coreInit()}}),variant_buttons_quick_buy_default=({currentVariantId=null,currentVariantAvailable=null,currentVariantPrice=0,currentVariantCompareAtPrice=0,productUrl=null,detachedDisplay=null})=>({...product_default,currentVariantId,currentVariantAvailable,currentVariantPrice,currentVariantCompareAtPrice,productUrl,detachedDisplay,init(){if(this.coreInit(),typeof this.detachedDisplay=="string")for(const detachedPropertyKey of["currentVariantId","currentVariantAvailable","currentVariantPrice","currentVariantCompareAtPrice","productUrl"])this.$watch(detachedPropertyKey,value=>
13{const changeEvent=new CustomEvent("variant-buttons-display-change",{detail:{key:detachedPropertyKey,value}}),targetEls=document.querySelectorAll(`[data-variant-buttons-display-for="${this.detachedDisplay}"]`);for(const targetEl of targetEls)targetEl.dispatchEvent(changeEvent)})}}),ALLOWED_KEYS=new Set(["currentVariantId","currentVariantAvailable","currentVariantPrice","currentVariantCompareAtPrice","productUrl"]),variant_buttons_display_default=({currentVariantId=null,currentVariantAvailable=null,currentVariantPrice=0,currentVariantCompareAtPrice=0,productUrl=null})=>({currentVariantId,currentVariantAvailable,currentVariantPrice,currentVariantCompareAtPrice,productUrl,onPropertyChange(){const{detail}=this.$event;if(detail==null)return;const key=detail.key||null,value=detail.value??null;key===null||!ALLOWED_KEYS.has(key)||(this[key]=value)}}),swatch_remote_default=({currentVariantId=null,currentVariantAvailable=null,currentVariantPrice=0,currentVariantCompareAtPrice=0,productUrl=null,remoteProductForm=null})=>({currentVariantId,currentVariantAvailable,currentVariantPrice,currentVariantCompareAtPrice,productUrl,remoteProductForm,init(){if(typeof this.remoteProductForm=="string")for(const detachedPropertyKey of["currentVariantId","currentVariantAvailable","productUrl"])this.$watch(detachedPropertyKey,value=>
13{const changeEvent=new CustomEvent("product-form-remote-change",{detail:{key:detachedPropertyKey,value}}),targetEls=document.querySelectorAll(`[data-remote-product-form-for="${this.remoteProductForm}"]`);for(const targetEl of targetEls)targetEl.dispatchEvent(changeEvent)})}}),ALLOWED_KEYS2=new Set(["currentVariantId","currentVariantAvailable"]),remote_product_form_default=({currentVariantId=null,currentVariantAvailable=null})=>({...product_default,currentVariantId,currentVariantAvailable,init(){this.coreInit()},onPropertyChange(){const{detail}=this.$event;if(detail==null)return;const key=detail.key||null,value=detail.value??null;key===null||!ALLOWED_KEYS2.has(key)||(this[key]=value)}}),cart_items_default=()=>({itemsRoot:null,loading:null,boundOnAfterAddItem:null,boundOnCartQuantityChange:null,boundOnCartUpdate:null,boundOnCartLock:null,boundOnCartUnlock:null,init(){this.itemsRoot=this.$root,this.boundOnAfterAddItem=this.onCartQuantityChange.bind(this),this.boundOnCartQuantityChange=this.onCartQuantityChange.bind(this),this.boundOnCartUpdate=this.onCartQuantityChange.bind(this),this.boundOnCartLock=()=>{this.loading=!0},this.boundOnCartUnlock=()=>{this.loading=!1},window.addEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),window.addEventListener("shapes:cart:cartqtychange",this.boundOnCartQuantityChange),window.addEventListener("shapes:cart:update",this.boundOnCartUpdate),document.addEventListener("shapes:cart:lock",this.boundOnCartLock),document.addEventListener("shapes:cart:unlock",this.boundOnCartUnlock)},onCartQuantityChange(e){const cartItemsHTML=getCartSectionHTML(e.detail.response.sections,"items"),cartItems=cartItemsHTML?parseDOMFromString(cartItemsHTML).body.firstElementChild:null,preserveContentChangeOnlyEls=e.type==="shapes:cart:cartqtychange"&&this.hasMatchingLineItemKeys(e.detail.response.items);if(!cartItems){console.error("Unable to render cart items from section response.");return}Alpine.morph(this.itemsRoot,cartItems.outerHTML,{updating(el,toEl,_childrenOnly,skip){if(el.nodeType===1){if(preserveContentChangeOnlyEls&&el.hasAttribute("data-update-on-cart-contents-change")){skip();return}if(el.hasAttribute("data-replace-on-morph")){el.replaceWith(toEl),skip();return}el.hasAttribute("ready")&&toEl.setAttribute("ready","")}}}),this.$nextTick(()=>{this.itemsRoot.querySelectorAll("input").forEach(inputEl=>{inputEl.value=inputEl.getAttribute("value"),inputEl.dispatchEvent(new Event("input"))})});const liveRegionHTML=getCartSectionHTML(e.detail.response.sections,"liveRegion");this.updateLiveRegion(liveRegionHTML?parseDOMFromString(liveRegionHTML).body.textContent.trim():null),e.detail.originalTarget&&this.$nextTick(()=>{if(!this.itemsRoot.contains(e.detail.originalTarget)){let focusRoot;this.itemsRoot.closest('[role="dialog"]')?focusRoot=this.itemsRoot.closest('[role="dialog"]').parentNode:focusRoot=this.itemsRoot,this.$focus.within(focusRoot).first()}});const itemsRootEl=this.itemsRoot;switch(e.type){case"shapes:cart:afteradditem":document.dispatchEvent(new CustomEvent("theme:product:add",{detail:{cartItemCount:window.theme.cartItemCount,itemsRootEl,lineItemEl:document.querySelector(`[data-line-item-key="${e.detail.response.key}"]`)||null,variantId:e.detail.response.variant_id,key:e.detail.response.key,formEl:document.getElementById(e.detail.sourceId),get cartPromise(){return fetch(window.theme.routes.cart_url,fetchConfigDefaults()).then(res=>res.json()).then(cart=>cart).catch(error=>console.error("Error fetching cart in `theme:product:add`",error))}}}));break;case"shapes:cart:cartqtychange":document.dispatchEvent(new CustomEvent("theme:line-item:change",{detail:{cartItemCount:e.detail.response.item_count,itemsRootEl,lineItemEl:document.querySelector(`[data-line-item-key="${e.detail.key}
13"]`)||null,variantId:e.detail.variantId,key:e.detail.key,quantity:e.detail.quantity,previousQuantity:e.detail.previousQuantity,cart:e.detail.response}}));break;case"shapes:cart:update":document.dispatchEvent(new CustomEvent("theme:cart:update",{detail:{cartItemCount:window.theme.cartItemCount,itemsRootEl,get cartPromise(){return fetch(window.theme.routes.cart_url,fetchConfigDefaults()).then(res=>res.json()).then(cart=>cart).catch(error=>console.error("Error fetching cart in `theme:cart:update`",error))}}}));break}},getCurrentLineItemKeys(){return Array.from(this.itemsRoot.querySelectorAll("[data-line-item-key]")).map(el=>el.getAttribute("data-line-item-key")).filter(Boolean)},hasMatchingLineItemKeys(items){if(!Array.isArray(items))return!1;const currentLineItemKeys=this.getCurrentLineItemKeys(),nextLineItemKeys=items.map(item=>item.key).filter(Boolean);return currentLineItemKeys.length!==nextLineItemKeys.length?!1:currentLineItemKeys.every((key,index)=>key===nextLineItemKeys[index])},updateLiveRegion(liveRegionText){if(!liveRegionText)return;const cartStatus=document.getElementById("cart-live-region-text");cartStatus.textContent=liveRegionText,cartStatus.setAttribute("aria-hidden",!1),setTimeout(()=>{cartStatus.setAttribute("aria-hidden",!0)},1e3)},destroy(){window.removeEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),window.removeEventListener("shapes:cart:cartqtychange",this.boundOnCartQuantityChange),window.removeEventListener("shapes:cart:update",this.boundOnCartUpdate),document.removeEventListener("shapes:cart:lock",this.boundOnCartLock),document.removeEventListener("shapes:cart:unlock",this.boundOnCartUnlock)}}),cart_upsells_default=()=>({...product_default,init(){this.coreInit(),destroySlideshowsIn(this.$el),discoverNewSlideshows(this.$el)}}),cart_item_default=key=>({quantity:null,previousQuantity:null,key,locked:!1,errorMessage:null,boundOnCartLock:null,boundOnCartUnlock:null,init(){this.boundOnCartLock=()=>{this.locked=!0},this.boundOnCartUnlock=()=>{this.locked=!1},document.addEventListener("shapes:cart:lock",this.boundOnCartLock),document.addEventListener("shapes:cart:unlock",this.boundOnCartUnlock)},async itemQuantityChange(){if(this.locked||this.loading||this.$refs.quantityInput.hasAttribute("data-last-value")&&this.quantity===Number(this.$refs.quantityInput.dataset.lastValue))return;this.locked=!0,this.loading=!0;const request={...fetchConfigDefaults("application/javascript"),body:JSON.stringify({id:this.key,quantity:this.quantity,sections:getCartSectionRequestIds().join(","),sections_url:window.location.pathname})};try{const data=await(await fetch(theme.routes.cart_change_url,request)).json();data.status?(this.errorMessage=data.message,this.quantity=this.previousQuantity,document.dispatchEvent(new CustomEvent("theme:line-item:error",{detail:{message:this.errorMessage,itemsRootEl:this.itemsRoot,lineItemEl:document.querySelector(`[data-line-item-key="${this.key}"]`)||null,variantId:Number(this.$refs.quantityInput.dataset.variantId),key:this.key,quantity:this.quantity}}))):(this.errorMessage=null,document.body.dispatchEvent(new CustomEvent("shapes:cart:cartqtychange",{bubbles:!0,detail:{response:data,key:this.key,quantity:this.quantity,previousQuantity:this.previousQuantity,variantId:Number(this.$refs.quantityInput.dataset.variantId),originalTarget:this.$refs.quantityControl}})))}catch(e){console.error(e),document.getElementById("cart-errors").textContent=theme.strings.cartError,document.dispatchEvent(new CustomEvent("theme:cart:error:other",{detail:{message:theme.strings.cartError,error:e}}))}finally{this.locked=!1,this.loading=!1}},removeItem(){Array.from(this.$root.querySelectorAll('[x-data="CartItemQuantity"]')).filter(el=>el.offsetParent)[0].dispatchEvent(new CustomEvent("remove"))},destroy(){document.removeEventListener("shapes:cart:lock",this.boundOnCartLock),document.removeEventListener("shapes:cart:unlock",this.boundOnCartUnlock)}}),quantity_default={adjustQuantity(adjustCb){typeof this.previousQuantity<"u"&&(this.previousQuantity=this.quantity);const quantityBeforeAdjustment=this.quantity;adjustCb(),this.dispatchInputEvent(),this.quantity!==quantityBeforeAdjustment&&this.$nextTick(()=>{this.dispatchChangeEvent()})},increment(){this.adjustQuantity(()=>{this.$refs.quantityInput.stepUp()})}
13,decrement(){this.adjustQuantity(()=>{this.$refs.quantityInput.stepDown()})},dispatchInputEvent(){this.$refs.quantityInput.dispatchEvent(new Event("input"))},dispatchChangeEvent(){this.$refs.quantityInput.dispatchEvent(new Event("change"))}},cart_item_quantity_default=()=>({quantity:null,remove(){this.adjustQuantity(()=>{this.$refs.quantityInput.value=0})},...quantity_default}),cart_footer_default=()=>({footerRoot:null,boundOnAfterAddItem:null,boundOnCartQuantityChange:null,boundOnCartUpdate:null,_morphFooter(e){const cartFooterHTML=getCartSectionHTML(e.detail.response.sections,"footer"),cartFooter=cartFooterHTML?parseDOMFromString(cartFooterHTML).body.firstElementChild:null;Alpine.morph(this.footerRoot,cartFooter?cartFooter.outerHTML:"",{updating(el,toEl,childrenOnly,skip){el.classList&&el.classList.contains("additional-checkout-buttons")&&skip()}})},init(){this.footerRoot=this.$root,this.boundOnAfterAddItem=this._morphFooter.bind(this),this.boundOnCartQuantityChange=this._morphFooter.bind(this),this.boundOnCartUpdate=this._morphFooter.bind(this),window.addEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),window.addEventListener("shapes:cart:cartqtychange",this.boundOnCartQuantityChange),window.addEventListener("shapes:cart:update",this.boundOnCartUpdate)},destroy(){window.removeEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),window.removeEventListener("shapes:cart:cartqtychange",this.boundOnCartQuantityChange),window.removeEventListener("shapes:cart:update",this.boundOnCartUpdate)}}),cart_note_default=()=>({updating:!1,updateNote(){this.updating=!0,fetch(theme.routes.cart_update_url,{method:"POST",body:JSON.stringify({note:this.$el.value}),credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json;",Accept:"application/json"}}).then(()=>{this.updating=!1})}}),footer_default=({showCountrySelector,showLocaleSelector})=>({init(){showCountrySelector&&Alpine.store("modals").register("country","rightDrawer"),showLocaleSelector&&Alpine.store("modals").register("locale","rightDrawer")}}),header_default=({showCountrySelector,showLocaleSelector})=>({menuOpen:{},searchOpen:!1,headerIsSticky:!1,scrollY:0,navWrapped:!1,headerHeight:0,activeWrappedMenuToggleEl:null,get isStuck(){return this.headerIsSticky&&this.scrollY>this.headerHeight*2},get menuIsActive(){return Object.values(this.menuOpen).some(Boolean)},get headerIsActive(){return this.menuIsActive||this.searchOpen},init(){Alpine.store("modals").register("nav","leftDrawer"),showCountrySelector&&Alpine.store("modals").register("country","rightDrawer"),showLocaleSelector&&Alpine.store("modals").register("locale","rightDrawer"),document.addEventListener("keyup",this.keyUpListener.bind(this)),document.body.addEventListener("shapes:search:closebutton",this.searchCloseButtonListener.bind(this)),this.$root.hasAttribute("data-sticky-header")&&this.setUpStickyDetection(),this.headerResizeFunctions(),this._debouncedHeaderFunctions=debounce(this.headerResizeFunctions.bind(this),300),window.addEventListener("resize",this._debouncedHeaderFunctions),Shopify.designMode&&document.addEventListener("shopify:section:load",this.sectionLoadListener.bind(this)),this.$watch("menuIsActive",value=>{!value&&this.activeWrappedMenuToggleEl&&(this.activeWrappedMenuToggleEl=null)}),this.$watch("navWrapped",value=>{value&&(this.activeWrappedMenuToggleEl=null)})},headerResizeFunctions(){this.calculateHeaderHeight(),this.calculateNavWrap()},setUpStickyDetection(){const headerContainerEl=this.$root.closest(".shopify-section"),sentinelEl=document.createElement("div");sentinelEl.setAttribute("id","HeaderSentinel"),headerContainerEl.parentNode.insertBefore(sentinelEl,headerContainerEl),new IntersectionObserver(e=>{e.forEach(entry=>{this.headerIsSticky=entry.intersectionRatio<1})},{rootMargin:"-1px 0px 0px 0px",threshold:[1]}).observe(sentinelEl);let timer=null;const checkScrollPosition=e=>{this.scrollY=window.scrollY,timer!==null&&clearTimeout(timer),timer=setTimeout(()=>{this.scrollY=window.scrollY},150)};this._throttledScrollHandler=throttle(checkScrollPosition,150),window.addEventListener("scroll",this._throttledScrollHandler.bind(this),{passive:!0}),this.scrollY=window.scrollY},calculateNavWrap(){const wrappedItems=[];let prevItemRect={},currItemRect={};if(this.$refs.navigation!==void 0){const items=this.$refs.navigation.children;for(let i=0;i<items.length;i++){const currItem=items[i];window.requestAnimationFrame(()=>{currItemRect=currItem.getBoundingClientRect(),prevItemRect&&prevItemRect.top<currItemRect.top&&wrappedItems.push(items[i]),prevItemRect=currItemRect,i===items.length-1&&(wrappedItems.length>0?this.navWrapped=!0:this.navWrapped=!1)})}}},calculateHeaderHeight(){window.requestAnimationFrame(()=>{this.headerHeight=document.getElementById("headerBorderWrap").clientHeight,document.documentElement.style.setProperty("--header-height",`${this.headerHeight}px`)})},toggleMenu(key){this.menuOpen[key]=!this.menuOpen[key]},focusOut(event,menu){if(event.relatedTarget){let focusedOnTopLevelButton=!1,dropdownParent=event.relatedTarget.getAttribute("data-dropdown-parent");dropdownParent&&dropdownParent===menu&&(focusedOnTopLevelButton=!0);const focusedOnChild=event.relatedTarget.closest("[data-header-dropdown]");!focusedOnTopLevelButton&&!focusedOnChild&&(this.menuOpen[menu]=!1)}},searchFocusOut(){this.$nextTick(()=>{this.$refs.searchFieldComponent.contains(document.activeElement)||(this.searchOpen=!1)})},closeSearch(){this.searchOpen=!1,this.$refs.search.focus()},openSearch(){this.searchOpen=!0;let input=document.querySelector(".header-search-input");setTimeout(()=>{input.focus()},100)},keyUpListener(event){event.key==="Escape"&&(this.searchOpen===!1?Object.keys(this.menuOpen).forEac
13h(key=>{if(this.menuOpen[key]){this.menuOpen[key]=!1;const focusEl=document.querySelector(`[aria-controls="${key}"]`);focusEl&&this.$focus.focus(focusEl)}}):document.getElementById("predictiveSearchResults")||document.body.dispatchEvent(new CustomEvent("shapes:search:closebutton")))},searchCloseButtonListener(){this.searchOpen=!1,this.$nextTick(()=>{const searchToggleEl=this.$root.querySelector("[data-open-search]");searchToggleEl&&setTimeout(()=>{searchToggleEl.focus()},300)})},sectionLoadListener(event){event.target.querySelector(".site-header")&&this.headerResizeFunctions()},destroy(){document.removeEventListener("keyup",this.keyUpListener),document.body.removeEventListener("shapes:search:closebutton",this.searchCloseButtonListener),window.removeEventListener("resize",this._debouncedHeaderFunctions),window.removeEventListener("scroll",this._throttledScrollHandler),Shopify.designMode&&document.removeEventListener("shopify:section:load",this.sectionLoadListener)}}),predictive_search_default=resources=>({cachedResults:{},loading:!1,resultsOpen:!1,rawQuery:"",results:!1,resultsMarkup:null,resources,get trimmedQuery(){return this.rawQuery.trim()},get queryKey(){return this.trimmedQuery.replace(" ","-").toLowerCase()},init(){this.cachedResults={},document.querySelectorAll("[data-open-search]").forEach(toggle=>{toggle.setAttribute("role","button")}),this.$watch("searchOpen",value=>{value===!0&&this.onOpen()})},close(clearSearchTerm=!0){this.closeResults(clearSearchTerm),this.closePredictiveSearch()},closePredictiveSearch(){document.body.dispatchEvent(new CustomEvent("shapes:search:closebutton"))},closeResults(clearSearchTerm=!1){this.resultsOpen=!1,clearSearchTerm&&(this.rawQuery="");const selected=this.$root.querySelector('[aria-selected="true"]');selected&&selected.setAttribute("aria-selected",!1),this.$refs.input.setAttribute("aria-activedescendant",""),this.$refs.input.setAttribute("aria-expanded",!1),document.documentElement.style.overflowY="auto"},getSearchResults(){this.loading=!0,liveRegion(window.theme.strings.loading),fetch(`${window.theme.routes.predictive_search_url}?q=${encodeURIComponent(this.trimmedQuery)}&${encodeURIComponent("resources[type]")}=${this.resources}§ion_id=predictive-search`).then(response=>{if(this.loading=!1,!response.ok){var error=new Error(response.status);throw this.close(!0),error}return response.text()}).then(text=>{this.results=!0;const resultsMarkup=new DOMParser().parseFromString(text,"text/html").querySelector("#shopify-section-predictive-search").innerHTML,liveRegionText=new DOMParser().parseFromString(text,"text/html").querySelector("#predictive-search-count").textContent;this.cachedResults[this.queryKey]=resultsMarkup,this.renderSearchResults(resultsMarkup),liveRegion(liveRegionText)}).catch(error=>{throw this.close(!0),error})},onChange(){this.trimmedQuery.length?(this.openResults(),this.getSearchResults()):this.closeResults()},onFocus(){this.trimmedQuery.length&&(this.results===!0?this.openResults():this.getSearchResults())},onFormSubmit(){(!this.trimmedQuery.length||this.$root.querySelector('[aria-selected="true"] a'))&&this.$event.preventDefault()},onKeyup(){switch(this.$event.preventDefault(),this.$event.code){case"ArrowUp":this.switchOption("up");break;case"ArrowDown":this.switchOption("down");break;case"Enter":this.selectOption();break}},onKeydown(){this.$event.code==="Escape"&&this.trimmedQuery.length&&this.$event.preventDefault(),(this.$event.code==="ArrowUp"||this.$event.code==="ArrowDown"||this.$event.code==="Enter"&&this.selectedElement)&&this.$event.preventDefault()},onOpen(){this.trimmedQuery.length&&(this.openResults(),this.$nextTick(()=>{this.cachedResults[this.queryKey]?this.renderSearchResults(this.cachedResults[this.queryKey]):this.getSearchResults()}))},openResults(){this.resultsOpen=!0,this.$refs.input.setAttribute("aria-expanded",!0),document.documentElement.style.overflowY="hidden"},renderSearchResults(resultsMarkup){this.$refs.results.innerHTML=resultsMarkup,this.results=!0,this.openResults()},selectOption(){const selectedProduct=this.$root.querySelector('[aria-selected="true"] a, [aria-selected="true"] button');selectedProduct&&selectedProduct.click()},switchOption(direction){if(!this.resultsOpen)return;const moveUp=direction==="up",selectedElement=this.$root.querySelector('[aria-selected="true"]'),allElements=Array.from(this.$root.querySelectorAll(".predictive-search__option"));let activeElement=this.$root.querySelector(".predictive-search__option");moveUp&&!allElements.length||(!moveUp&&selectedElement?activeElement=allElements[allElements.indexOf(selectedElement)+1]||allElements[0]:moveUp&&(activeElement=allElements[allElements.indexOf(selectedElement)-1]||allElements[allElements.length-1]),activeElement!==selectedElement&&(activeElement.setAttribute("aria-selected",!0),selectedElement&&selectedElement.setAttribute("aria-selected",!1),this.$refs.input.setAttribute("aria-activedescendant",activeElement.id),activeElement.scrollIntoView(!1,{behavior:"smooth"}
13)))}}),video_default=(playback="inline",mode="preview")=>({player:null,enabled:!1,shown:!1,playing:!1,id:"",playback,mode,init(){this.id=this.$root.id,document.body.addEventListener("pauseAllMedia",e=>{this.mode==="autoplay"||e.detail!==null&&e.detail.id===this.$root.id||this.pause()}),this.$watch("enabled",async value=>{await this.$nextTick(),this.shown=value,value===!0&&(this.player=this.$root.querySelector("[\\@play][\\@pause]"),this.player.addEventListener("playing",()=>{this.playing=!0}),this.player.addEventListener("paused",()=>{this.playing=!1}))}),this.$watch("playing",value=>{value===!0&&this.dispatchPauseAllMediaEvent()}),this.productMediaWrapper=this.$root.closest("[data-product-single-media-wrapper]"),this.productMediaWrapper&&this.setUpProductMediaListeners(),Shopify.designMode&&document.addEventListener("shopify:section:unload",e=>{e.target.contains(this.$root)&&this.player&&this.player.dispatchEvent(new CustomEvent("deinit"))}),this.mode==="autoplay"&&(this.enabled=!0)},dispatchPauseAllMediaEvent(){document.body.dispatchEvent(new CustomEvent("pauseAllMedia",{detail:{id:this.$root.id}}))},enable(){this.enabled=!0},play(){this.enabled===!1||this.player===null||this.player.dispatchEvent(new CustomEvent("play"))},pause(){this.enabled===!1||this.player===null||this.player.dispatchEvent(new CustomEvent("pause"))},setUpProductMediaListeners(){this.productMediaWrapper.addEventListener("mediaHidden",()=>{this.pause()}),this.productMediaWrapper.addEventListener("mediaVisible",()=>{})}}),html_video_default=()=>({init(){this.$refs.video.addEventListener("play",()=>{this.$root.dispatchEvent(new CustomEvent("playing",{bubbles:!0}))}),this.$refs.video.addEventListener("pause",()=>{this.$root.dispatchEvent(new CustomEvent("paused",{bubbles:!0}))}),this.$refs.video.autoplay&&this.$nextTick(()=>{this.$refs.video.play()})},play(){this.$refs.video.play()},pause(){this.$refs.video.pause()}}),product_thumbnails_default=()=>({firstVisible:!0,lastVisible:!1,init(){const firstThumbnail=this.$refs.firstThumbnail,lastThumbnail=this.$refs.lastThumbnail,options={root:this.$root.querySelector(".splide__track"),rootMargin:"0px",threshold:1},firstThumbnailObserver=new window.IntersectionObserver(([entry])=>{entry.isIntersecting?this.firstVisible=!0:this.firstVisible=!1},options),lastThumbnailObserver=new window.IntersectionObserver(([entry])=>{entry.isIntersecting?this.lastVisible=!0:this.lastVisible=!1},options);firstThumbnailObserver.observe(firstThumbnail),lastThumbnailObserver.observe(lastThumbnail)}}),filterable_default=()=>({loading:!1,focusId:"",filterData:[],sectionId:null,init(){this.sectionId=getSectionId(this.$root),initTeleport(this.$root),Alpine.store("modals").register("filters","leftDrawer"),Alpine.store("modals").register("sort","rightDrawer"),window.addEventListener("popstate",this.onHistoryChange.bind(this)),this._observeResultsMutations()},filterFormSubmit(e,close){this.focusId=e.target.id,close&&Alpine.store("modals").close(close);let form=e.target.form;e.target.tagName.toLowerCase()==="form"&&(form=e.target);const formData=new FormData(form),searchParams=new URLSearchParams(formData);searchParams.delete("price_range"),this.loading=!0,this.renderPage(searchParams.toString(),e)},clearAllFilters(e){this.loading=!0,Alpine.store("modals").close("filters"),this.renderPage(new URL(e.currentTarget.href).searchParams.toString())},renderPage(searchParams,event,updateURLHash=!0){document.getElementById("facets-results").classList.add("opacity-50");const url=`${window.location.pathname}?section_id=${this.sectionId}&${searchParams}`,filterDataUrl=element=>element.url===url;this.filterData.some(filterDataUrl)?this.renderFromCache(filterDataUrl,event):this.renderFromFetch(url,event),updateURLHash&&this.updateURLHash(searchParams)},renderFromFetch(url,event){fetch(url).then(response=>response.text()).then(responseText=>{const html=responseText;this.filterData=[...this.filterData,{html,url}],this.renderMarkup(html)}).catch(error=>{console.error("Failed to fetch filter results:",error),this.loading=!1})},renderFromCache(filterDataUrl,event){const html=this.filterData.find(filterDataUrl).html;this.renderMarkup(html)},renderMarkup(html){const parsed=new DOMParser().parseFromString(html,"text/html"),innerHTML=parsed.getElementById("facets-filterable").innerHTML,filterableEl=document.getElementById("facets-filterable");innerHTML!==filterableEl.innerHTML?(filterableEl.closest(".shopify-section").dispatchEvent(new CustomEvent("shapes:section:willmutate",{bubbles:!0})),setTimeout(()=>{filterableEl.querySelectorAll("[x-teleport]").forEach(el=>{el.remove()}),filterableEl.innerHTML=innerHTML,this.loading=!1,this.$nextTick(()=>{initTeleport(filterableEl)})},300)):(document.getElementById("facets-results").classList.remove("opacity-50"),this.loading=!1);const count=parsed.getElementById("facets-results-count").innerHTML;liveRegion(count),document.getElementById(this.focusId)&&setTimeout(()=>{document.getElementById(this.focusId).focus()},50)},updateURLHash(searchParams){history.pushState({searchParams},"",`${window.location.pathname}${searchParams&&"?".concat(searchParams)}`)},onHistoryChange(event){const searchParams=event.state.searchParams||"";this.renderPage(searchParams,null,!1)},_observeResultsMutations(){const containerEl=document.getElementById("facets-filterable"),mutationObserverOptions={childList:!0,attributes:!1,subtree:!1},callback=(mutationList,observer)=>{mutationList.forEach(mutation=>{mutation.type==="childList"&&mutation.target.closest(".shopify-section").dispatchEvent(new CustomEvent("shapes:section:hasmutated",{bubbles:!0}))})};new MutationObserver(callback).observe(containerEl,mutationObserverOptions)}}),quantity_default2=()=>({...quantity_default}),add_to_cart_price_default=()=>({totalCurrentPrice:null,totalCurrentComparePrice:null,quantity:1,init(){this.$watch("currentVariant",()=>{this.updateTotalCurrentPrice()});const quantityInputEl=this.resolvedParentRoot.querySelector('[name="quantity"]');if(!quantityInputEl){this.updateTotalCurrentPrice();return}const quantityDataStack=Alpine.$data(quantityInputEl);quantityDataStack&&"quantity"in quantityDataStack&&(this.quantity=quantityDataStack.quantity,this.updateTotalCurrentPrice(),quantityDataStack.$watch("quantity",value=>{this.quantity=value,this.updateTotalCurrentPrice()}))},updateTotalCurrentPrice(){if(!(this.currentVariant&&this.currentVariant.price!==void 0&&this.currentVariant.price!==null)){this.totalCurrentPrice
13=null,this.totalCurrentComparePrice=null;return}this.totalCurrentPrice=this.currentVariant.price*this.quantity,this.currentVariant.compare_at_price?this.totalCurrentComparePrice=this.currentVariant.compare_at_price*this.quantity:this.totalCurrentComparePrice=null}});function filterOptions(options=[],filter,exclude=[]){return options.filter(option=>option.toLowerCase().indexOf(filter.toLowerCase())===0&&exclude.indexOf(option)<0)}function getIndexByLetter(options,filter,startIndex=0){const orderedOptions=[...options.slice(startIndex),...options.slice(0,startIndex)],firstMatch=filterOptions(orderedOptions,filter)[0],allSameLetter=array=>array.every(letter=>letter===array[0]);if(firstMatch)return options.indexOf(firstMatch);if(allSameLetter(filter.split(""))){const matches=filterOptions(orderedOptions,filter[0]);return options.indexOf(matches[0])}else return-1}var SelectActions={Close:0,CloseSelect:1,First:2,Last:3,Next:4,Open:5,PageDown:6,PageUp:7,Previous:8,Select:9,Type:10},combobox_default=({onSelect=()=>{},isDisabled=()=>!1}={})=>({listboxOpen:!1,searchString:"",searchTimeout:null,highlightedValue:null,selectedValue:null,onSelect,isDisabled,savedDocumentStyle:null,get listboxOptionEls(){return Array.from(this.$root.querySelector('[role="listbox"]')?.querySelectorAll('[role="option"]')||[])},get optionStrings(){return this.listboxOptionEls.map(el=>el.dataset.valueText.trim()||"")},get optionsByValue(){return new Map(this.listboxOptionEls.map(el=>[el.dataset.value,el]))},get highlightedEl(){return this.optionsByValue.get(this.highlightedValue)??null},get selectedEl(){return this.optionsByValue.get(this.selectedValue)??null},get selectedText(){return this.selectedEl?.dataset.valueText.trim()||""},get highlightedIndex(){return this.listboxOptionEls.findIndex(el=>el.dataset.value===this.highlightedValue)},get listBoxIsScrollable(){return this.$refs.listbox&&this.$refs.listbox.clientHeight<this.$refs.listbox.scrollHeight},init(){this.selectedValue=this.$root.querySelector('[aria-selected="true"]')?.dataset.value??"",this.setUpListboxShowAndHide(),this.$watch("$store.breakpoints.maxMd",value=>{this.listboxOpen&&(value===!0?(document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight="0px"):(document.documentElement.style.overflow=this.savedDocumentStyle?.overflow||"",document.documentElement.style.paddingRight=this.savedDocumentStyle?.paddingRight||""))})},setUpListboxShowAndHide(){const openingXShowEl=this.$refs.listbox.closest("[x-show]");if(!openingXShowEl)return;let hasOpened=!1;openingXShowEl._x_doShow=()=>{hasOpened=!0;const closestSectionEl=this.$root.closest(".shopify-section");closestSectionEl&&closestSectionEl.classList.add("is-lifted"),this.savedDocumentStyle={overflow:document.documentElement.style.overflow,paddingRight:document.documentElement.style.paddingRight},this.$store.breakpoints.maxMd&&(document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight="0px"),Alpine.mutateDom(()=>{openingXShowEl.style.length===1&&openingXShowEl.style.display==="none"?openingXShowEl.removeAttribute("style"):openingXShowEl.style.removeProperty("display")})};const onClose=()=>{const closestSectionEl=this.$root.closest(".shopify-section");closestSectionEl&&closestSectionEl.classList.remove("is-lifted"),document.documentElement.style.overflow=this.savedDocumentStyle?.overflow||"",document.documentElement.style.paddingRight=this.savedDocumentStyle?.paddingRight||"",this.savedDocumentStyle=null},closingXShowEls=[this.$refs.listbox,this.$refs.backdrop].map(el=>el?.closest("[x-show]")).filter(Boolean),isHidden=el=>el.style.display==="none";for(const closingXShowEl of closingXShowEls)closingXShowEl._x_doHide=async()=>{Alpine.mutateDom(()=>{closingXShowEl.style.setProperty("display","none")}),!(!hasOpened||this.listboxOpen)&&closingXShowEls.every(isHidden
13)&&(await rafTick(),onClose())}},getUpdatedIndex(currentIndex,maxIndex,action){switch(action){case SelectActions.First:return 0;case SelectActions.Last:return maxIndex;case SelectActions.Previous:return Math.max(0,currentIndex-1);case SelectActions.Next:return Math.min(maxIndex,currentIndex+1);case SelectActions.PageUp:return Math.max(0,currentIndex-10);case SelectActions.PageDown:return Math.min(maxIndex,currentIndex+10);default:return currentIndex}},getSearchString(char){return this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString=""},500),this.searchString+=char,this.searchString},getActionFromKey(event){const{key,altKey,ctrlKey,metaKey}=event,openKeys=["ArrowDown","ArrowUp","Enter"," "];if(!this.listboxOpen&&openKeys.includes(key))return SelectActions.Open;if(key==="Home")return SelectActions.First;if(key==="End")return SelectActions.Last;if(key==="Backspace"||key==="Clear"||key.length===1&&key!==" "&&!altKey&&!ctrlKey&&!metaKey)return SelectActions.Type;if(this.listboxOpen){if(key==="ArrowUp"&&altKey)return SelectActions.CloseSelect;if(key==="ArrowDown"&&!altKey)return SelectActions.Next;if(key==="ArrowUp")return SelectActions.Previous;if(key==="PageUp")return SelectActions.PageUp;if(key==="PageDown")return SelectActions.PageDown;
13if(key==="Escape")return SelectActions.Close;if(key==="Enter"||key===" ")return SelectActions.CloseSelect}},onLabelClick(){this.$focus.focus(this.$refs.combobox)},onComboBlur(){this.$refs.listbox.contains(this.$event.relatedTarget)||this.$event.relatedTarget&&this.$event.relatedTarget===this.$refs.mobileCloseButton||this.listboxOpen&&this.updateMenuState(!1,!1)},onComboClick(){this.isDisabled()||this.updateMenuState(!this.listboxOpen,!1)},onComboKeyDown(){if(this.isDisabled())return;const max=this.listboxOptionEls.length-1,action=this.getActionFromKey(this.$event);switch(action!==void 0&&action!==SelectActions.Type&&(this.$event.preventDefault(),action===SelectActions.Close&&this.$event.stopPropagation()),action){case SelectActions.Last:case SelectActions.First:this.updateMenuState(!0);case SelectActions.Next:case SelectActions.Previous:case SelectActions.PageUp:case SelectActions.PageDown:this.onOptionChange(this.listboxOptionEls[this.getUpdatedIndex(this.highlightedIndex,max,action)]?.dataset.value);break;case SelectActions.CloseSelect:this.selectOption(this.highlightedValue);case SelectActions.Close:this.updateMenuState(!1);break;case SelectActions.Type:this.onComboType(this.$event.key);break;case SelectActions.Open:this.updateMenuState(!0);break}},onComboType(letter){this.updateMenuState(!0);const searchString=this.getSearchString(letter),startIndex=searchString.split("").every(char=>char===searchString[0])?this.highlightedIndex+1:this.highlightedIndex,searchIndex=getIndexByLetter(this.optionStrings,searchString,Math.max(startIndex,0));searchIndex>=0?this.onOptionChange(this.listboxOptionEls[searchIndex]?.dataset.value):(clearTimeout(this.searchTimeout),this.searchString="")},onOptionChange(value){this.highlightedValue=value,this.highlightedEl&&(this.listBoxIsScrollable&&maintainScrollVisibility(this.highlightedEl,this.$refs.listbox),isInView(this.highlightedEl)||this.highlightedEl.scrollIntoView({behavior:"smooth",block:"nearest"}))},async onOptionClick(){this.updateMenuState(!1),await rafTick(),this.onOptionChange(this.$el.dataset.value),this.selectOption(this.$el.dataset.value)},async selectOption(value){value!=null&&this.selectedValue!==value&&(this.selectedValue=value,typeof this.onSelect=="function"&&(await this.$nextTick(),this.onSelect(this.selectedEl)))},updateMenuState(open,doFocus=!0){this.listboxOpen!==open&&(this.listboxOpen=open,open&&(this.highlightedValue=this.selectedValue),!open&&!isInView(this.$refs.combobox)&&this.$refs.combobox.scrollIntoView({behavior:"smooth",block:"nearest"}),doFocus&&this.$focus.focus(this.$refs.combobox))}}),modal_cart_default=({openOnAddToCart,useModalCart})=>({openOnAddToCart,useModalCart,sectionId:null,boundOnAfterAddItem:null,boundOnSectionLoad:null,boundOnSectionUnload:null,boundOnSectionSelect:null,boundOnSectionDeselect:null,init(){this.sectionId=this.$root.id,Shopify?.designMode&&this.removeDrawerContents(),Alpine.store("modals").register("cart","rightDrawer"),openOnAddToCart===!0&&this.isActive&&(this.boundOnAfterAddItem=this.open.bind(this),document.body.addEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem)),Shopify?.designMode&&(this.syncOpenState(),this.boundOnSectionLoad=this.onSectionLoad.bind(this),this.boundOnSectionUnload=this.onSectionUnload.bind(this),this.boundOnSectionSelect=this.onSectionSelect.bind(this),this.boundOnSectionDeselect=this.onSectionDeselect.bind(this),document.addEventListener("shopify:section:load",this.boundOnSectionLoad),document.addEventListener("shopify:section:unload",this.boundOnSectionUnload),document.addEventListener("shopify:section:select",this.boundOnSectionSelect),document.addEventListener("shopify:section:deselect",this.boundOnSectionDeselect))},get isActive(){return this.useModalCart},open(){this.isActive&&(Alpine.store("modals").closeAll(),Alpine.store("modals").open("cart"))},removeDrawerContents(){Alpine.store("modals").removeExistingContents("rightDrawer","#cartDrawer")},syncOpenState(){this.$nextTick(()=>{this.$nextTick(()=>{window.theme.designMode.selected===this.sectionId&&(this.isActive?this.open():Alpine.store("modals").close("cart"))})})},onSectionLoad(e){e.detail.sectionId===this.sectionId&&(this.removeDrawerContents(),this.syncOpenState())},onSectionUnload(e){e.detail.sectionId===this.sectionId&&(this.removeDrawerContents(),Alpine.store("modals").close("cart"))},onSectionSelect(e){e.target.contains(this.$root)&&this.open()},onSectionDeselect(e){e.target.contains(this.$root)&&Alpine.store("modals").close("cart")},destroy(){this.boundOnAfterAddItem&&document.body.removeEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),document.removeEventListener("shopify:section:load",this.boundOnSectionLoad),document.removeEventListener("shopify:section:unload",this.boundOnSectionUnload),document.removeEventListener("shopify:section:select",this.boundOnSectionSelect),document.removeEventListener("shopify:section:deselect",this.boundOnSectionDeselect)}}),rte_default=()=>({init(){this.$root.querySelectorAll("table").forEach(tableEl=>{wrap(tableEl).classList.add("table-wrapper")}),this.$root.querySelectorAll('iframe[src*="youtube.com"],iframe[src*="player.vimeo"]').forEach(extVideoEl=>{wrap(extVideoEl).classList.add("video-wrapper")})}}),shape_divider_default=()=>({_debouncedResizeHandler:null,init(){const resizeHandler=e=>{const animationContainerEl=this.$root.querySelector("[data-animation-container]");animationContainerEl.style.display="none",animationContainerEl.style.animation="none",animationContainerEl.offsetHeight,animationContainerEl.style.display="",setTimeout(()=>{animationContainerEl.style.animation=null},100)};this._debouncedResizeHandler=debounce(resizeHandler,150),window.addEventListener("resize",this._debouncedResizeHandler.bind(this)),Shopify.designMode&&this.designModeMarginFix()},async designModeMarginFix(){const animationContainerEl=this.$root.querySelector("[data-animation-container]");animationContainerEl.style.marginBlock="0",await rafTick(),animationContainerEl.style.marginBlock=""},destroy(){window.removeEventListener("resize",this._debouncedResizeHandler)}}),free_shipping_bar_default=()=>
13({contentHTML:null,styleString:null,boundOnAfterAddItem:null,boundOnCartQuantityChange:null,boundOnCartUpdate:null,init(){this.updateStyleString(this.$root),this.boundOnAfterAddItem=this.onCartUpdate.bind(this),this.boundOnCartQuantityChange=this.onCartUpdate.bind(this),this.boundOnCartUpdate=this.onCartUpdate.bind(this),window.addEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),window.addEventListener("shapes:cart:cartqtychange",this.boundOnCartQuantityChange),window.addEventListener("shapes:cart:update",this.boundOnCartUpdate)},async onCartUpdate(){const updatedSection=await freshHTML(getURLWithParams(window.theme.routes.root_url,{section_id:this.$root.id})),updatedRoot=querySelectorInHTMLString('[x-data="FreeShippingBar"]',updatedSection);this.updateStyleString(updatedRoot),this.contentHTML=updatedRoot.querySelector("[data-content]").innerHTML},updateStyleString(el){this.$root.hasAttribute("style")&&(this.styleString=el.style.cssText)},destroy(){window.removeEventListener("shapes:cart:afteradditem",this.boundOnAfterAddItem),window.removeEventListener("shapes:cart:cartqtychange",this.boundOnCartQuantityChange),window.removeEventListener("shapes:cart:update",this.boundOnCartUpdate)}}),offset_gallery_item_default=()=>({tabIndex:-1,init(){new IntersectionObserver(([entry])=>{if(entry.isIntersecting){this.tabIndex=0;return}this.isVisible=-1},{root:null,threshold:0}).observe(this.$root)},focused(){const containerEl=this.$el.closest(".offset-gallery-container");containerEl.scrollTop=0,containerEl.scrollLeft=0}}),tiktok_embed_default=tikTokURL=>({tikTokURL,async init(){try{const data=await(await fetch(`https://www.tiktok.com/oembed?url=${encodeURIComponent(this.tikTokURL)}`)).json(),rootElement=this.$el;if(rootElement){rootElement.innerHTML=data.html;const scripts=rootElement.getElementsByTagName("script");for(let i=0;i<scripts.length;i++){const script=document.createElement("script");scripts[i].src?script.src=scripts[i].src:script.textContent=scripts[i].textContent,document.body.appendChild(script)}}}catch(error){console.error("Error fetching TikTok embed code:",error)}}}),async_script_loader_default=()=>({init(){const scripts=this.$refs.scripts.content.querySelectorAll("script");for(let i=0;i<scripts.length;i++){const script=document.createElement("script");scripts[i].src?script.src=scripts[i].src:script.textContent=scripts[i].textContent,document.body.appendChild(script)}}}),focus_carousel_default=splideID=>({slideIndex:0,isTransitioning:!1,splideID,init(){window.addEventListener("switch:focus-carousel:move",event=>{const{splideID:splideID2}=event.detail;this.splideID===splideID2&&(this.isTransitioning=!0)}),window.addEventListener("switch:focus-carousel:moved",event=>{const{splideID:splideID2,newIndex}=event.detail;this.splideID===splideID2&&(this.isTransitioning=!1,this.slideIndex=newIndex)})}}),promo_popup_default=({delay,frequency,enabled})=>({delay,frequency,enabled,sectionId:null,storageKey:null,boundOnSectionSelect:null,boundOnSectionDeselect:null,async init(){if(this.sectionId=this.$root.id,this.storageKey=`switch-popup-${this.sectionId}`,window.location.pathname==="/challenge")return;this.enabled&&(Shopify.designMode&&Alpine.store("modals").removeExistingContents("promo","#promoPopup"),initTeleport(this.$root),Alpine.store("modals").register("promoPopup","promo"),this.$watch("$store.modals.promo.open",(isOpen,wasOpen)=>{wasOpen&&!isOpen&&setExpiringStorageItem(this.storageKey,"shown",daysInMs(this.frequency))}));const popupContent=this.$refs.teleported.content.querySelector("template").content,hasErrors=!!popupContent.querySelector("[data-errors]");(popupContent.querySelector("[data-success-message]")||hasErrors)&&(this.open(),this.clearSuccessParams(),setExpiringStorageItem(this.storageKey,"shown",daysInMs(200))),Shopify.designMode?(window.theme.designMode.selected===this.sectionId&&(this.enabled===!0?this.open():Alpine.store("modals").close("promoPopup")),this.boundOnSectionSelect=this.onSectionSelect.bind(this),this.boundOnSectionDeselect=this.onSectionDeselect.bind(this),document.addEventListener("shopify:section:select",this.boundOnSectionSelect),document.addEventListener("shopify:section:deselect",this.boundOnSectionDeselect)):getExpiringStorageItem(this.storageKey)!=="shown"&&setTimeout(()=>{this.open();const escapeHandler=e=>{e.code==="Escape"&&(this.$store.modals.close("promoPopup"),document.body.removeEventListener("keydown",escapeHandler))};document.body.addEventListener("keydown",escapeHandler)},this.delay*1e3)},open(){this.$store.modals.open("promoPopup"),this.$focus.first()},onSectionSelect(e){e.target.contains(this.$root)&&this.enabled&&this.open()},onSectionDeselect(e){e.target.contains(this.$root)&&this.$store.modals.close("promoPopup")},clearSuccessParams(){const updatedParams=new URLSearchParams(window.location.search);updatedParams.has("customer_posted")&&updatedParams.delete("customer_posted");let newURL;updatedParams.toString().length>0?newURL=`${window.location.pathname}?${updatedParams.toString()}`:newURL=window.location.pathname,history.replaceState("",document.title,newURL)},destroy(){document.removeEventListener("shopify:section:select",this.boundOnSectionSelect),document.removeEventListener("shopify:section:deselect",this.boundOnSectionDeselect)}}),featured_collections_default=({carouselMode=!1}={})=>({index:1,carouselMode,selectedBlock:null,sectionId:null,boundOnBlockSelect:null,init(){this.sectionId=getSectionId(this.$root),Shopify.designMode&&this._setUpDesignModeHandlers()},switchCollection(index,carouselID){this.index=index,this.carouselMode&&this.$nextTick(()=>{window.slideshows[carouselID]&&window.slideshows[carouselID].refresh()})},_setCollectionFromThemeEditorEvent(target,detail){if(detail.sectionId===this.sectionId){const block=target,slideIndex=Array.from(block.closest("[data-featured-collections-list]").children).indexOf(block);
13this.index=slideIndex+1}},_setUpDesignModeHandlers(){this.boundOnBlockSelect=this.onBlockSelect.bind(this),document.addEventListener("shopify:block:select",this.boundOnBlockSelect)},onBlockSelect(e){this._setCollectionFromThemeEditorEvent(e.target,e.detail)},destroy(){document.removeEventListener("shopify:block:select",this.boundOnBlockSelect)}}),range_control_default=(min,max,start,end)=>({min:Math.floor(min/100)*100,max:Math.ceil(max/100)*100,valueA:Math.floor(start/100)*100,valueB:Math.ceil(end/100)*100,ready:!1,get rangeStart(){return Math.min(this.valueA,this.valueB)},set rangeStart(value){this.valueA<=this.valueB?this.valueA=value:this.valueB=value},get rangeEnd(){return Math.max(this.valueA,this.valueB)},set rangeEnd(value){this.valueA>=this.valueB?this.valueA=value:this.valueB=value},get rangeStartInMajorUnits(){return this.rangeStart/100},set rangeStartInMajorUnits(value){const num=Number(typeof value=="string"?value.replaceAll(/\D/g,""):value);Number.isNaN(num)||(this.rangeStart=num*100)},get rangeEndInMajorUnits(){return this.rangeEnd/100},set rangeEndInMajorUnits(value){const num=Number(typeof value=="string"?value.replaceAll(/\D/g,""):value);Number.isNaN(num)||(this.rangeEnd=num*100)},get range(){return this.rangeEnd-this.rangeStart},get rangeStartInPercent(){return this.normalize(this.rangeStart)},get rangeEndInPercent(){return this.normalize(this.rangeEnd)},get rangeInPercent(){return this.rangeEndInPercent-this.rangeStartInPercent},get valueCenter(){return this.rangeStart+this.range/2},set valueCenter(value){const proposedRangeStart=Math.round((value-this.range/2)/100)*100,proposedRangeEnd=Math.round((value+this.range/2)/100)*100;if(proposedRangeStart<this.min||proposedRangeEnd>this.max){this.$nextTick(()=>{this.$refs.centerHandle.value=this.valueCenter});return}this.valueA=proposedRangeStart,this.valueB=proposedRangeEnd},init(){this.$nextTick(()=>{this.ready=!0})},normalize(value){return this.max===this.min?0:(value-this.min)/(this.max-this.min)*100},handleRangeStartControlChange(){this.$refs.rangeStartFormField.dispatchEvent(new CustomEvent("indirect-change"))},handleRangeEndControlChange(){this.$refs.rangeEndFormField.dispatchEvent(new CustomEvent("indirect-change"))},handleRangeCenterControlChange(){this.$refs.rangeStartFormField.dispatchEvent(new CustomEvent("indirect-change"))}}),ScrollingItemsContainer=class extends HTMLElement{constructor(){super()}connectedCallback(){this.isConnected&&(this.scrollingItemsEl=this.firstElementChild,this.resizeObserver=new ResizeObserver(debounce(entries=>{const entry=entries[0];entry.contentRect.width!==this.lastWidth&&(this.lastWidth=entry.contentRect.width,this.scrollingItemsEl.adjustScrollingItemsSpeed(),this.scrollingItemsEl.makeClones())},150)),this.resizeObserver.observe(this),this.addEventListener("scrolling-items:change",()=>{this.scrollingItemsEl.adjustScrollingItemsSpeed(),this.scrollingItemsEl.makeClones()}),Shopify.designMode&&document.addEventListener("shopify:section:unload",e=>{e.target.contains(this)&&this.resizeObserver.disconnect()}))}disconnectedCallback(){this.resizeObserver.disconnect()}},ScrollingItems=class extends HTMLElement{constructor(){super()}connectedCallback(){this.isConnected&&(this.adjustScrollingItemsSpeed(),this.makeClones())}adjustScrollingItemsSpeed(){document.documentElement.style.setProperty("--global-scrolling-items-speed-multiplier",window.innerWidth/1024)}makeClones(){let i=0;this.querySelector("noscript")&&this.querySelector("noscript").remove();const scrollingItemsSurfaceEl=this.querySelector("scrolling-items-surface"),originalContentEl=this.querySelector("scrolling-items-content");if(!scrollingItemsSurfaceEl||!originalContentEl)return;const originalContentWidth=originalContentEl.getBoundingClientRect().width;if(originalContentWidth===0)return;const totalClonesNeeded=2*Math.ceil(window.innerWidth*2/originalContentWidth/2),addClone=()=>{const clone=originalContentEl.cloneNode(!0);clone.setAttribute("aria-hidden","true"),scrollingItemsSurfaceEl.append(clone)};for(;scrollingItemsSurfaceEl.children.length!==totalClonesNeeded;){if(totalClonesNeeded===1/0||Number.isNaN(totalClonesNeeded)||i>1e3){console.error("Shapes: Scrolling items: Something went wrong inside the scrolling items layout function",{originalContentWidth,windowInnerWidth:window.innerWidth,totalExistingClones:scrollingItemsSurfaceEl.children.length,totalClonesNeeded});break}scrollingItemsSurfaceEl.children.length>totalClonesNeeded?scrollingItemsSurfaceEl.removeChild(scrollingItemsSurfaceEl.lastChild):addClone()}this.style.setProperty("--local-scrolling-items-speed-multiplier",this.getBoundingClientRect().width/window.innerWidth)}},moneyFormat="${{amount}}";function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));let value="";const placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||moneyFormat;function formatWithDelimiters(number,precision=2,thousands=",",decimal="."){if(isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);const parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,`$1${thousands}`),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break}return formatString.replace(placeholderRegex,value)}function liveRegion2(content,clear){clearTimeout(window.liveRegionTimeout);let region=document.getElementById("screenreader-announce");region.innerHTML=content,window.liveRegionTimeout=setTimeout(()=>{region.innerHTML=""},3e3)}function cartLiveRegion(item){const templateString=theme.strings.update+": [QuantityLabel]: [Quantity], [Regular] [$$] [DiscountedPrice] [$]. [PriceInformation]";function _liveRegionContent(){let liveRegionContent=templateString;liveRegionContent=liveRegionContent.replace("[QuantityLabel]",theme.strings.quantity).replace("[Quantity]",item.quantity);let regularLabel="",regularPrice=formatMoney(item.original_line_price,theme.moneyFormat),discountLabel="",discountPrice="",discountInformation="";return item.original_line_price>item.final_line_price&&(regularLabel=theme.strings.regularTotal,discountLabel=theme.strings.discountedTotal,discountPrice=formatMoney(item.final_line_price,theme.moneyFormat),discountInformation=theme.strings.priceColumn),liveRegionContent=liveRegionContent.replace("[Regular]",regularLabel).replace("[$$]",regularPrice).replace("[DiscountedPrice]",discountLabel).replace("[$]",discountPrice).replace("[PriceInformation]",discountInformation).replace(" .","").trim(),liveRegionContent}liveRegion2(_liveRegionContent(),!0)}function variantLiveRegion(variant){const templateString="[Availability] [Regular] [$$] [Sale] [$]. [UnitPrice] [$$$]";function _getBaseUnit(){return variant.unit_price_measurement.reference_value===1?variant.unit_price_measurement.reference_unit:variant.unit_price_measurement.reference_value+variant.unit_price_measurement.reference_unit}function _liveRegionContent(){let liveRegionContent=templateString;const availability=variant.available?"":theme.strings.soldOut+",";liveRegionContent=liveRegionContent.replace("[Availability]",availability);let regularLabel="",regularPrice=formatMoney(variant.price,theme.moneyFormat),saleLabel="",salePrice="",unitLabel="",unitPrice="";return variant.compare_at_price>variant.price&&(regularLabel=theme.strings.regularPrice,regularPrice=formatMoney(variant.compare_at_price,theme.moneyFormat),saleLabel=theme.strings.sale,salePrice=formatMoney(variant.price,theme.moneyFormat)),variant.unit_price&&(unitLabel=theme.strings.unitPrice,unitPrice=formatMoney(variant.unit_price,theme.moneyFormat)+" "+theme.strings.unitPriceSeparator+" "+_getBaseUnit()),liveRegionContent=liveRegionContent.replace("[Regular]",regularLabel).replace("[$$]",regularPrice).replace("[Sale]",saleLabel).replace("[$]",salePrice).replace("[UnitPrice]",unitLabel).replace("[$$$]",unitPrice).replace(" .","").trim(),liveRegionContent}liveRegion2(_liveRegionContent(),!1)}import{Splide,SplideEventInterface as EventInterface,SplideAutoScroll as AutoScroll}from"vendor";window.Splide=Splide,window.slideshows={};
13var applyInert=function(slides){slides.forEach(slide=>{const slideEl=slide.slide;slideEl.matches(".is-visible")?slideEl.removeAttribute("inert"):slideEl.setAttribute("inert","")})};function SplideProduct(Splide2){const{on,off,bind,unbind}=EventInterface(Splide2);Splide2.root.addEventListener("click",event=>{event.target.classList.contains("splide__pagination__page")&&(Splide2.paginationClicked=!0)});function _goToFirstSlideForMediaWithId(mediaId){const targetSlides=Splide2.Components.Slides.filter(slide=>slide.slide.dataset.mediaId===mediaId.toString());targetSlides.length&&Splide2.go(targetSlides[0].index)}bind(document.body,"shapes:product:slideshow:variantchange",e=>{if(!e.target.contains(Splide2.root)||!e.detail?.variant?.featured_media)return;const mediaId=e.detail.variant.featured_media.id;_goToFirstSlideForMediaWithId(mediaId)});function _resizeTrackForSlideAtIndex(index){const targetSlideObject=Splide2.Components.Slides.getAt(index);if(!targetSlideObject)return;const targetSlide=targetSlideObject.slide;let newHeight=targetSlide.querySelector("[data-product-single-media-wrapper]").offsetHeight;if(Splide2.root.hasAttribute("data-two-slides-visible-on-mobile")&&window.matchMedia("(max-width: 989px").matches){const nextSlide=targetSlide.nextElementSibling;if(nextSlide!==null){const nextSlideHeight=nextSlide.querySelector("[data-product-single-media-wrapper]").offsetHeight;newHeight=nextSlideHeight>newHeight?nextSlideHeight:newHeight}}Splide2.root.querySelector(".splide__track").style.maxHeight=newHeight+"px"}const resizeHandler=e=>{_resizeTrackForSlideAtIndex(Splide2.index)},_debouncedResizeHandler=debounce(resizeHandler,150);bind(window,"resize",_debouncedResizeHandler);function handleDestroy(){Splide2.root.querySelectorAll("[inert]").forEach(inertEl=>{inertEl.removeAttribute("inert")}),Splide2.root.querySelectorAll("[aria-hidden]").forEach(ariaHiddenEl=>{ariaHiddenEl.removeAttribute("aria-hidden")}),unbind(document.body,"shapes:product:slideshow:variantchange"),queueMicrotask(()=>{Splide2.root.dispatchEvent(new CustomEvent("shapes:productslideshow:destroyed",{bubbles:!0}))})}function handleMountedMoved(){Splide2.options.destroy===!0?handleDestroy():applyInert(Splide2.Components.Slides.get())}function optionsUpdated(options){options.destroy===!0&&handleDestroy()}function handleMounted(){Splide2.root.dataset.firstMedia&&_goToFirstSlideForMediaWithId(Splide2.root.dataset.firstMedia),_resizeTrackForSlideAtIndex(Splide2.index)}function handleMoved(newIndex,oldIndex){applyInert(Splide2.Components.Slides.get());const slides=Splide2.Components.Slides,oldSlide=slides.getAt(oldIndex).slide.querySelector("[data-product-single-media-wrapper]"),newSlide=slides.getAt(newIndex).slide.querySelector("[data-product-single-media-wrapper]");oldSlide&&oldSlide.dispatchEvent(new CustomEvent("mediaHidden")),newSlide&&newSlide.dispatchEvent(new CustomEvent("mediaVisible"))}function handleMove(newIndex){_resizeTrackForSlideAtIndex(newIndex)}return{mount(){on("mounted",handleMounted),on("mounted moved",handleMountedMoved),on("moved",handleMoved),on("move",handleMove),on("destroy",handleDestroy),on("updated",optionsUpdated)}}}var _setUpAutoPlay=splideRoot=>{const autoplayControl=splideRoot.querySelector(".splide__toggle"),playText=autoplayControl.dataset.play,pauseText=autoplayControl.dataset.pause;window.slideshows[splideRoot.id].on("autoplay:play",()=>{autoplayControl.setAttribute("aria-label",pauseText)}),window.slideshows[splideRoot.id].on("autoplay:pause",event=>{autoplayControl.setAttribute("aria-label",playText)})},_setUpFocusCarousel=splideRoot=>{const splide=window.slideshows[splideRoot.id],enlargeActiveSlideEnabled=splideRoot.hasAttribute("data-enlarge-active-slide");splide.on("move",newIndex=>{const slides=splide.Components.Slides.get();
13slides.forEach(slide=>{const scaleContainer=slide.slide.querySelector("[data-slide-scale-container]"),highlightText=slide.slide.querySelector("[data-slide-highlight-text]");enlargeActiveSlideEnabled&&(scaleContainer.classList.remove("scale-100"),scaleContainer.classList.add("scale-[0.8]")),highlightText&&(highlightText.classList.add("opacity-0"),highlightText.classList.remove("opacity-100"))}),slides.filter(slide=>slide.index===newIndex).forEach(slide=>{const scaleContainer=slide.slide.querySelector("[data-slide-scale-container]"),highlightText=slide.slide.querySelector("[data-slide-highlight-text]");highlightText&&highlightText.classList.add("opacity-100"),enlargeActiveSlideEnabled&&(scaleContainer.classList.remove("scale-[0.8]"),scaleContainer.classList.add("scale-100"))});const event=new CustomEvent("switch:focus-carousel:move",{detail:{splideID:splideRoot.id,newIndex}});window.dispatchEvent(event)}),splide.on("moved",newIndex=>{const event=new CustomEvent("switch:focus-carousel:moved",{detail:{splideID:splideRoot.id,newIndex}});window.dispatchEvent(event)})},_createSplideInstance=(splideRoot,options,extensions)=>{if(splideRoot.hasAttribute("data-thumbnails")){const thumbsRoot=document.getElementById(splideRoot.getAttribute("data-thumbnails")),direction=thumbsRoot.dataset.direction||"ltr",fixedWidth=thumbsRoot.dataset.fixedWidth||"var(--thumbnails-width)",height=thumbsRoot.dataset.height||"auto";window.slideshows[thumbsRoot.id]=new Splide(`#${thumbsRoot.id}`,{direction,fixedWidth,height,autoHeight:!0,arrows:!1,pagination:!1,isNavigation:!0,focus:"left",gap:"0.625rem",slideFocus:!1,mediaQuery:"max",breakpoints:{989:{destroy:!0}}}),window.slideshows[splideRoot.id]=new Splide(`#${splideRoot.id}`,options);const mainSplide=window.slideshows[splideRoot.id],thumbsSplide=window.slideshows[thumbsRoot.id];mainSplide.mount(extensions),document.addEventListener("shapes:product:arrow-change",e=>{e.detail.direction==="prev"?thumbsSplide.go("<"):thumbsSplide.go(">"),thumbsSplide.Components.Slides.getAt(thumbsSplide.index).slide.querySelector(".media-thumbnail").click()}),document.addEventListener("shapes:product:slideshow:variantchange",e=>{if(!e.target.contains(splideRoot)||!e.detail?.variant?.featured_media)return;const mediaId=e.detail.variant.featured_media.id,targetSlides=thumbsSplide.Components.Slides.filter(slide=>slide.slide.dataset.mediaId===mediaId.toString());targetSlides.length&&thumbsSplide.go(targetSlides[0].index)}),thumbsSplide.mount()}else window.slideshows[splideRoot.id]=new Splide(`#${splideRoot.id}`,options),window.slideshows[splideRoot.id].on("mounted",e=>{const clones=window.slideshows[splideRoot.id].root.querySelectorAll(".splide__slide--clone");for(let i=0;i<clones.length;i++){let elements=clones[i].getElementsByTagName("*");for(let j=0;j<elements.length;j++){let el=elements[j];if(el.hasAttribute("id")&&(el.id=el.getAttribute("id")+"-"+i),el.hasAttribute("for")){let newForAttr=el.getAttribute("for")+"-"+i;el.setAttribute("for",newForAttr)}}}}),splideRoot.dataset.autoRotate==="true"&&_setUpAutoPlay(splideRoot),splideRoot.hasAttribute("data-focus-carousel")&&_setUpFocusCarousel(splideRoot),window.slideshows[splideRoot.id].mount(extensions)};window.destroySlideshow=splideRoot=>{window.slideshows[splideRoot.id]&&(window.slideshows[splideRoot.id].destroy(),delete window.slideshows[splideRoot.id])},window.makeSlideshow=splideRoot=>{if(splideRoot.matches(".splide--thumbnails"))return;if(!splideRoot.id){console.error("Shapes Theme: makeSlideshow requires a unique ID on the slideshow root");return}if(window.slideshows[splideRoot.id])return;const mobileOnly=splideRoot.matches(".splide--mobile");let options={mediaQuery:"min",perPage:1,perMove:1,autoWidth:!0,arrows:!0,pagination:!1,rewind:!0,autoScroll:{autoStart:!1},breakpoints:mobileOnly?{990:{destroy:!0}}:{}};if(splideRoot.querySelector(".slideshow-options")!==null&&(options=JSON.parse(splideRoot.querySelector(".slideshow-options").textContent)),splideRoot.matches(".splide--product")){const productOptions={mediaQuery:"min",type:"slide",perPage:1,perMove:1,autoWidth:!0,pagination:!1,arrows:splideRoot.dataset.showArrowsOnMobile==="true",rewind:!0,drag:splideRoot.dataset.dragDisabled!=="true",autoScroll:{autoStart:!1},breakpoints:{990:{destroy:!0}}};_createSplideInstance(splideRoot,productOptions,{SplideProduct})}else{splideRoot.dataset.autoRotate==="true"&&(options.drag=!1,options.pauseOnHover=!0,options.pauseOnFocus=!0);let extensions={};options.autoScroll&&options.autoScroll.autoStart===!0&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(extensions={AutoScroll}),_createSplideInstance(splideRoot,options,extensions)}},window.discoverNewSlideshows=(container=document)=>{container?.querySelectorAll(".splide").forEach(splideRoot=>{makeSlideshow(splideRoot)})},window.destroySlideshowsIn=(container=document)=>{container?.querySelectorAll(".splide").forEach(splideRoot=>{destroySlideshow(splideRoot)})},window.switchOnDOMContentLoaded(()=>{discoverNewSlideshows()}),document.addEventListener("shapes:productquickbuy:added",()=>{discoverNewSlideshows()}),document.addEventListener("shapes:productquickbuy:willremove",e=>{e.detail.container&&destroySlideshowsIn(e.detail.container)}),document.addEventListener("shapes:product:mediachange",e=>{const splideInstance=window.slideshows[e.detail.slideshowId];if(!splideInstance)return;const slideIndex=splideInstance.Components.Elements.slides.findIndex(slide=>Number(slide.dataset.mediaId)===e.detail.mediaId);slideIndex>-1&&splideInstance.go(slideIndex)});var DataIsland=class extends HTMLElement{constructor(){super()}async connectedCallback(){if(!this.isConnected)return;this._x_ignore=!0;let onVisible=!1,onIdle=!1,onInteraction=!1,onVisibleModifier;if(this.hasAttribute("on")){const onAttribute=this.getAttribute("on");onAttribute==="idle"?onIdle=!0:onAttribute.endsWith("visible")?(onVisible=!0,onVisibleModifier=onAttribute.includes(":")?onAttribute.split(":")[0]:null):onAttribute==="interaction"&&(onInteraction=!0)}else onVisible=!0;onIdle?await this.idle():onVisible?await this.visible(onVisibleModifier):onInteraction&&await this.interaction(),this.hydrate()}idle(){return new Promise(resolve=>{requestIdleCallback(()=>{resolve()})})}interaction(){const events=["touchstart","click"];return new Promise(resolve=>{const onInteractionListener=event=>{for(const eventName of events)this.removeEventListener(eventName,onInteractionListener);resolve()};for(const eventName of events)this.addEventListener(eventName,onInteractionListener)})}visible(modifier=null){const options={rootMargin:"25%"};if(modifier)switch(modifier){case"before":options.rootMargin="125%";break;case"mostly":options.rootMargin="0px",options.threshold=.75;break;case"fully":options.rootMargin="0px",options.threshold=1;break}return new Promise(resolve=>{const io=new IntersectionObserver(entries=>
13{for(const entry of entries){if(!entry.isIntersecting)return;resolve(),io.disconnect();break}},options);if(getComputedStyle(this).display==="contents")for(const childEl of this.children)io.observe(childEl);else io.observe(this)})}async hydrate(){const componentName=this.getAttribute("x-data")?.trim().split("(")[0];componentName&&!componentName.startsWith("{")&&this.hasAttribute("src")&&await importOrImportShim(this.getAttribute("src")),await this.parentHydration(),window.Alpine||await window.alpineInitPromise(),window.alpineIsStarted||await window.alpineStartedPromise(),delete this._x_ignore,await Alpine.nextTick(),Alpine.initTree(this),this.setAttribute("ready","")}parentHydration(){const parentDeferredEl=this.parentElement.closest("data-island:not([ready])");if(parentDeferredEl)return new Promise((resolve,reject)=>{parentDeferredEl&&new MutationObserver((mutationsList,observer)=>{parentDeferredEl.hasAttribute("ready")&&(observer.disconnect(),resolve())}).observe(parentDeferredEl,{attributes:!0,attributeFilter:["ready"]})})}};function init(){!(HTMLScriptElement.supports&&HTMLScriptElement.supports("importmap"))||typeof window.importShim<"u"?window.importOrImportShim=name=>importShim(name):window.importOrImportShim=name=>import(name),window.alpineIsInitialized=!1,window.alpineIsStarted=!1,document.addEventListener("alpine:initialized",()=>{window.alpineIsInitialized=!0}),document.addEventListener("switch:alpine:started",()=>{window.alpineIsStarted=!0}),window.alpineInitPromise=()=>new Promise(resolve=>{window.alpineIsInitialized&&resolve(),document.addEventListener("alpine:initialized",()=>{resolve()})}),window.alpineStartedPromise=()=>new Promise(resolve=>{window.alpineIsStarted&&resolve(),document.addEventListener("switch:alpine:started",()=>{resolve()})}),customElements.get("data-island")||customElements.define("data-island",DataIsland)}var{intersect,focus,collapse,morph,mask}=AlpinePlugins;Alpine2.plugin(intersect),Alpine2.plugin(focus),Alpine2.plugin(collapse),Alpine2.plugin(morph),Alpine2.plugin(mask),Alpine2.plugin(fetched_fragment_default),Alpine2.plugin(html_if_set_default),window.Alpine=Alpine2,window.Spruce=Alpine2,init(),window.liveRegion=liveRegion2,window.variantLiveRegion=variantLiveRegion,window.cartLiveRegion=cartLiveRegion,document.addEventListener("alpine:init",()=>{Alpine2.store("modals",modals_default),Alpine2.store("cart_count",cart_count_default),Alpine2.store("breakpoints",breakpoints_default)}),Alpine2.data("AgeCheck",age_check_default),Alpine2.data("ProductForm",product_form_default),Alpine2.data("QuickBuy",quick_buy_default),Alpine2.data("VariantButtonsQuickBuy",variant_buttons_quick_buy_default),Alpine2.data("VariantButtonsDisplay",variant_buttons_display_default),Alpine2.data("SwatchRemote",swatch_remote_default),Alpine2.data("RemoteProductForm",remote_product_form_default),Alpine2.data("FreeShippingBar",free_shipping_bar_default),Alpine2.data("CartItems",cart_items_default),Alpine2.data("CartUpsells",cart_upsells_default),Alpine2.data("CartItem",cart_item_default),Alpine2.data("CartItemQuantity",cart_item_quantity_default),Alpine2.data("CartFooter",cart_footer_default),Alpine2.data("CartNote",cart_note_default),Alpine2.data("Footer",footer_default),Alpine2.data("Header",header_default),Alpine2.data("PredictiveSearch",predictive_search_default),Alpine2.data("Video",video_default),Alpine2.data("HTMLVideo",html_video_default),Alpine2.data("Filterable",filterable_default),Alpine2.data("ProductThumbnails",product_thumbnails_default),Alpine2.data("Quantity",quantity_default2),Alpine2.data("AddToCartPrice",add_to_cart_price_default),Alpine2.data("Combobox",combobox_default),Alpine2.data("ModalCart",modal_cart_default),Alpine2.data("RTE",rte_default),Alpine2.data("ShapeDivider",shape_divider_default),Alpine2.data("OffsetGalleryItem",offset_gallery_item_default),Alpine2.data("TikTokEmbed",tiktok_embed_default),Alpine2.data("AsyncScriptLoader",async_script_loader_default),Alpine2.data("FocusCarousel",focus_carousel_default),Alpine2.data("PromoPopup",promo_popup_default),Alpine2.data("FeaturedCollections",featured_collections_default),Alpine2.data("RangeControl",range_control_default),customElements.get("scrolling-items-container")||customElements.define("scrolling-items-container",ScrollingItemsContainer),customElements.get("scrolling-items")||customElements.define("scrolling-items",ScrollingItems),setTimeout(()=>{Alpine2.start(),document.dispatchEvent(new CustomEvent("switch:alpine:started"))}),console.log("Shapes theme (5.0.1) by SWITCH | Make the switch: https://switchthemes.co"); 14//# sourceMappingURL=/cdn/shop/t/6/assets/global.bundle.js.map?v=107250576204975713501791169712
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.