1(function($){var $=jQuery=$;let cc={sections:[]};theme.cartNoteMonitor={load:function($notes){$notes.on("change.themeCartNoteMonitor paste.themeCartNoteMonitor keyup.themeCartNoteMonitor",function(){theme.cartNoteMonitor.postUpdate($(this).val())})},unload:function($notes){$notes.off(".themeCartNoteMonitor")},updateThrottleTimeoutId:-1,updateThrottleInterval:500,postUpdate:function(val){clearTimeout(theme.cartNoteMonitor.updateThrottleTimeoutId),theme.cartNoteMonitor.updateThrottleTimeoutId=setTimeout(function(){$.post(theme.routes.cart_url+"/update.js",{note:val},function(data){},"json")},theme.cartNoteMonitor.updateThrottleInterval)}},theme.scriptsLoaded={},theme.loadScriptOnce=function(src,callback,beforeRun,sync){if(typeof theme.scriptsLoaded[src]>"u"){theme.scriptsLoaded[src]=[];var tag=document.createElement("script");tag.src=src,(sync||beforeRun)&&(tag.async=!1),beforeRun&&beforeRun(),typeof callback=="function"&&(theme.scriptsLoaded[src].push(callback),tag.readyState?tag.onreadystatechange=function(){if(tag.readyState=="loaded"||tag.readyState=="complete"){tag.onreadystatechange=null;for(var i=0;i<theme.scriptsLoaded[this].length;i++)theme.scriptsLoaded[this][i]();theme.scriptsLoaded[this]=!0}}.bind(src):tag.onload=function(){for(var i=0;i<theme.scriptsLoaded[this].length;i++)theme.scriptsLoaded[this][i]();theme.scriptsLoaded[this]=!0}.bind(src));var firstScriptTag=document.getElementsByTagName("script")[0];return firstScriptTag.parentNode.insertBefore(tag,firstScriptTag),!0}else if(typeof theme.scriptsLoaded[src]=="object"&&typeof callback=="function")theme.scriptsLoaded[src].push(callback);else return typeof callback=="function"&&callback(),!1},theme.loadStyleOnce=function(src){var srcWithoutProtocol=src.replace(/^https?:/,"");if(!document.querySelector('link[href="'+encodeURI(srcWithoutProtocol)+'"]')){var tag=document.createElement("link");tag.href=srcWithoutProtocol,tag.rel="stylesheet",tag.type="text/css";var firstTag=document.getElementsByTagName("link")[0];firstTag.parentNode.insertBefore(tag,firstTag)}},theme.debounce=function(func){let wait=arguments.length>1&&arguments[1]!==void 0?arguments[1]:700,immediate=arguments.length>2?arguments[2]:void 0;var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}},theme.Disclosure=(function(){var selectors={disclosureList:"[data-disclosure-list]",disclosureToggle:"[data-disclosure-toggle]",disclosureInput:"[data-disclosure-input]",disclosureOptions:"[data-disclosure-option]"},classes={listVisible:"disclosure-list--visible"};function Disclosure($disclosure){this.$container=$disclosure,this.cache={},this._cacheSelectors(),this._connectOptions(),this._connectToggle(),this._onFocusOut()}return Disclosure.prototype=$.extend({},Disclosure.prototype,{_cacheSelectors:function(){this.cache={$disclosureList:this.$container.find(selectors.disclosureList),$disclosureToggle:this.$container.find(selectors.disclosureToggle),$disclosureInput:this.$container.find(selectors.disclosureInput),$disclosureOptions:this.$container.find(selectors.disclosureOptions)}},_connectToggle:function(){this.cache.$disclosureToggle.on("click",function(evt){var ariaExpanded=$(evt.currentTarget).attr("aria-expanded")==="true";$(evt.currentTarget).attr("aria-expanded",!ariaExpanded),this.cache.$disclosureList.toggleClass(classes.listVisible)}.bind(this))},_connectOptions:function(){this.cache.$disclosureOptions.on("click",function(evt){evt.preventDefault(),this._submitForm($(evt.currentTarget).data("value"))}.bind(this))},_onFocusOut:function(){this.cache.$disclosureToggle.on("focusout",function(evt){var disclosureLostFocus=this.$container.has(evt.relatedTarget).length===0;disclosureLostFocus&&this._hideList()}.bind(this)),this.cache.$disclosureList.on("focusout",function(evt){var childInFocus=$(evt.currentTarget).has(evt.relatedTarget).length>
10,isVisible=this.cache.$disclosureList.hasClass(classes.listVisible);isVisible&&!childInFocus&&this._hideList()}.bind(this)),this.$container.on("keyup",function(evt){evt.which===27&&(this._hideList(),this.cache.$disclosureToggle.focus())}.bind(this)),this.bodyOnClick=function(evt){var isOption=this.$container.has(evt.target).length>0,isVisible=this.cache.$disclosureList.hasClass(classes.listVisible);isVisible&&!isOption&&this._hideList()}.bind(this),$("body").on("click",this.bodyOnClick)},_submitForm:function(value){this.cache.$disclosureInput.val(value),this.$container.parents("form").submit()},_hideList:function(){this.cache.$disclosureList.removeClass(classes.listVisible),this.cache.$disclosureToggle.attr("aria-expanded",!1)},unload:function(){$("body").off("click",this.bodyOnClick),this.cache.$disclosureOptions.off(),this.cache.$disclosureToggle.off(),this.cache.$disclosureList.off(),this.$container.off()}}),Disclosure})(),(function(){function throttle(callback,threshold){let debounceTimeoutId=-1,tick=!1;return function(){clearTimeout(debounceTimeoutId),debounceTimeoutId=setTimeout(callback,threshold),tick||(callback.call(),tick=!0,setTimeout(function(){tick=!1},threshold))}}const scrollEvent=document.createEvent("Event");scrollEvent.initEvent("throttled-scroll",!0,!0),window.addEventListener("scroll",throttle(function(){window.dispatchEvent(scrollEvent)},200))})(),theme.Sections=new function(){var _=this;_._instances=[],_._deferredSectionTargets=[],_._sections=[],_._deferredLoadViewportExcess=300,_._deferredWatcherRunning=!1,_.init=function(){$(document).on("shopify:section:load",function(e){var target=_._themeSectionTargetFromShopifySectionTarget(e.target);target&&_.sectionLoad(target)}).on("shopify:section:unload",function(e){var target=_._themeSectionTargetFromShopifySectionTarget(e.target);target&&_.sectionUnload(target)}).on("shopify:section:reorder",function(e){var target=_._themeSectionTargetFromShopifySectionTarget(e.target);target&&_.sectionReorder(target)}),$(window).on("throttled-scroll.themeSectionDeferredLoader debouncedresize.themeSectionDeferredLoader",_._processDeferredSections),_._deferredWatcherRunning=!0},_.register=function(type,section,options){_._sections.push({type,section,afterSectionLoadCallback:options?options.afterLoad:null,afterSectionUnloadCallback:options?options.afterUnload:null}),$('[data-section-type="'+type+'"]').each(function(){Shopify.designMode||options&&options.deferredLoad===!1||!_._deferredWatcherRunning?_.sectionLoad(this):_.sectionDeferredLoad(this,options)})},_.sectionDeferredLoad=function(target,options){_._deferredSectionTargets.push({target,deferredLoadViewportExcess:options&&options.deferredLoadViewportExcess?options.deferredLoadViewportExcess:_._deferredLoadViewportExcess}),_._processDeferredSections(!0)},_._processDeferredSections=function(firstRunCheck){if(_._deferredSectionTargets.length)for(var viewportTop=$(window).scrollTop(),viewportBottom=viewportTop+$(window).height(),loopStart=firstRunCheck===!0?_._deferredSectionTargets.length-1:0,i=loopStart;i<_._deferredSectionTargets.length;i++){var target=_._deferredSectionTargets[i].target,viewportExcess=_._deferredSectionTargets[i].deferredLoadViewportExcess,sectionTop=$(target).offset().top-viewportExcess,doLoad=sectionTop>viewportTop&§ionTop<viewportBottom;if(!doLoad){var sectionBottom=sectionTop+$(target).outerHeight()+viewportExcess*2;doLoad=sectionBottom>viewportTop&§ionBottom<viewportBottom}(doLoad||sectionTop<viewportTop&§ionBottom>viewportBottom)&&(_.sectionLoad(target),_._deferredSectionTargets.splice(i,1),i--)}firstRunCheck!==!0&&_._deferredSectionTargets.length===0&&(_._deferredWatcherRunning=!1,$(window).off(".themeSectionDeferredLoader"))},_.sectionLoad=function(target){var target=target,sectionObj=_._sectionForTarget(target),section=!1;if(sectionObj.section?section=sectionObj.section:section=sectionObj,section!==!1){var instance={target,section,$shopifySectionContainer:$(target).closest(".shopify-section"),thisContext:{functions:section.functions,registeredEventListeners:[]}};instance.thisContext.registerEventListener=_._registerEventListener.bind(instance.thisContext),_._instances.push(instance),$(target).data("c
1omponents")&&$(target).data("components").split(",").forEach(component=>{$(document).trigger("cc:component:load",[component,target])}),_._callSectionWith(section,"onSectionLoad",target,instance.thisContext),_._callSectionWith(section,"afterSectionLoadCallback",target,instance.thisContext),section.onSectionSelect&&instance.$shopifySectionContainer.on("shopify:section:select",function(e){_._callSectionWith(section,"onSectionSelect",e.target,instance.thisContext)}),section.onSectionDeselect&&instance.$shopifySectionContainer.on("shopify:section:deselect",function(e){_._callSectionWith(section,"onSectionDeselect",e.target,instance.thisContext)}),section.onBlockSelect&&$(target).on("shopify:block:select",function(e){_._callSectionWith(section,"onBlockSelect",e.target,instance.thisContext)}),section.onBlockDeselect&&$(target).on("shopify:block:deselect",function(e){_._callSectionWith(section,"onBlockDeselect",e.target,instance.thisContext)})}},_.sectionUnload=function(target){for(var sectionObj=_._sectionForTarget(target),instanceIndex=-1,i=0;i<_._instances.length;i++)_._instances[i].target==target&&(instanceIndex=i);if(instanceIndex>-1){var instance=_._instances[instanceIndex];$(target).off("shopify:block:select shopify:block:deselect"),instance.$shopifySectionContainer.off("shopify:section:select shopify:section:deselect"),_._callSectionWith(instance.section,"onSectionUnload",target,instance.thisContext),_._unloadRegisteredEventListeners(instance.thisContext.registeredEventListeners),_._callSectionWith(sectionObj,"afterSectionUnloadCallback",target,instance.thisContext),_._instances.splice(instanceIndex),$(target).data("components")&&$(target).data("components").split(",").forEach(component=>{$(document).trigger("cc:component:unload",[component,target])})}else for(var i=0;i<_._deferredSectionTargets.length;i++)if(_._deferredSectionTargets[i].target==target){_._deferredSectionTargets[i].splice(i,1);break}},_.sectionReorder=function(target){for(var instanceIndex=-1,i=0;i<_._instances.length;i++)_._instances[i].target==target&&(instanceIndex=i);if(instanceIndex>-1){var instance=_._instances[instanceIndex];_._callSectionWith(instance.section,"onSectionReorder",target,instance.thisContext)}},_._registerEventListener=function(element,eventType,callback){element.addEventListener(eventType,callback),this.registeredEventListeners.push({element,eventType,callback})},_._unloadRegisteredEventListeners=function(registeredEventListeners){registeredEventListeners.forEach(rel=>{rel.element.removeEventListener(rel.eventType,rel.callback)})},_._callSectionWith=function(section,method,container,thisContext){if(typeof section[method]=="function")try{thisContext?section[method].bind(thisContext)(container):section[method](container)}catch(ex){const sectionType=container.dataset.sectionType;console.warn(`Theme warning: '${method}' failed for section '${sectionType}'`),console.debug(container,ex)}},_._themeSectionTargetFromShopifySectionTarget=function(target){var $target=$("[data-section-type]:first",target);return $target.length>0?$target[0]:!1},_._sectionForTarget=function(target){for(var type=$(target).attr("data-section-type"),i=0;i<_._sections.length;i++)if(_._sections[i].type==type)return _._sections[i];return!1},_._sectionAlreadyRegistered=function(type){for(var i=0;i<_._sections.length;i++)if(_._sections[i].type==type)return!0;return!1}};class ccComponent{constructor(name){let cssSelector=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`.cc-${name}`;const _this=this;this.instances=[],$(document).on("cc:component:load",function(event,component,target){component===name&&$(target).find(`${cssSelector}:not(.cc-initialized)`).each(function(){_this.init(this)})}),$(document).on("cc:component:unload",function(event,component,target){component===name&&$(target).find(cssSelector).each(function(){_this.destroy(this)})}),$(cssSelector).each(function(){_this.init(this)})}init(container){$(container).addClass("cc-initialized")}destroy(container){$(container).removeClass("cc-initialized")}registerInstance(container,instance){this.instances.push({container,instance})}destroyInstance(container){this.instances=this.instances.filter(item=>{if(item.container===container)return typeof item.instance.destroy=="function"&&item.instance.destroy(),item.container!==container})}}theme.showQuickPopup=function(message,$origin){var $popup=$('<div class="simple-popup"/>'),offs=$origin.offset();$popup.html(message).css({left:offs.left,top:offs.top}).hide(),$("body").append($popup),$popup.css({marginTop:-$popup.outerHeight()-10,marginLeft:-($popup.outerWidth()-$origin.outerWidth())/2}),$popup.fadeIn(200).delay(3500).fadeOut(400,function(){$(this).remove()})},theme.Shopify={formatMoney:function(t,r){function e(t2,r2){return t2===void 0?r2:t2}function a(t2,r2,a2,o2){if(r2=e(r2,2),a2=e(a2,","),o2=e(o2,"."),isNaN(t2)||t2==null)return 0;t2=(t2/100).toFixed(r2);var n2=t2.split(".");return n2[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+a2)+(n2[1]?o2+n2[1]:"")}typeof t=="string"&&(t=t.replace(".",""));var o="",n=/\{\{\s*(\w+)\s*\}\}/,i=r||this.money_format;switch(i.match(n)[1]){case"amount":o=a(t,2);break;case"amount_no_decimals":o=a(t,0);break;case"amount_with_comma_separator":o=a(t,2,".",",");break;case"amount_with_space_separator":o=a(t,2," ",",");break;case"amount_with_period_and_space_separator":o=a(t,2," ",".");break;case"amount_no_decimals_with_comma_separator":o=a(t,0,".",",");break;case"amount_no_decimals_with_space_separator":o=a(t,0," ","");break;case"amount_with_apostrophe_separator":o=a(t,2,"'",".");break;case"amount_with_decimal_separator":o=a(t,2,".",".")}return i.replace(n,o)},formatImage:function(originalImageUrl,format){return originalImageUrl?originalImageUrl.replace(/^(.*)\.([^\.]*)$/g,"$1_"+format+".$2"):""},Image:{imageSize:function(t){var e=t.match(/.+_((?:pico|icon|thumb|small|compact|medium|large|grande)|\d{1,4}x\d{0,4}|x\d{1,4})[_\.@]/);return e!==null?e[1]:null},getSizedImageUrl:function(t,e){if(e==null)return t;if(e=="master")return this.removeProtocol(t);var o=t.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i);
1if(o!=null){var i=t.split(o[0]),r=o[0];return this.removeProtocol(i[0]+"_"+e+r)}return null},removeProtocol:function(t){return t.replace(/http(s)?:/,"")}}},theme.createTemplateVariableEncoder=function(){return{utilityElement:document.createElement("div"),values:{},add:function(key,value,type){switch(type){case"attribute":this.utilityElement.innerHTML="",this.utilityElement.setAttribute("util",value),this.values[key]=this.utilityElement.outerHTML.match(/util="([^"]*)"/)[1];break;case"html":this.utilityElement.innerText=value,this.values[key]=this.utilityElement.innerHTML;break;case"raw":this.values[key]=value;break;default:throw`Type '${type}' not handled`}}}};class AccordionInstance{constructor(container){this.accordion=container,this.itemClass=".cc-accordion-item",this.titleClass=".cc-accordion-item__title",this.panelClass=".cc-accordion-item__panel",this.allowMultiOpen=this.accordion.dataset.allowMultiOpen==="true",this.allowMultiOpen||(this.activeItem=this.accordion.querySelector(`${this.itemClass}[open]`)),this.bindEvents()}static addPanelHeight(panel){panel.style.height=`${panel.scrollHeight}px`}static removePanelHeight(panel){panel.getAttribute("style"),panel.removeAttribute("style")}open(item,panel){if(panel.style.height="0",item.open=!0,AccordionInstance.addPanelHeight(panel),setTimeout(()=>{item.classList.add("is-open")},10),!this.allowMultiOpen){if(this.activeItem&&this.activeItem!==item){const activePanel=this.activeItem.querySelector(this.panelClass);this.close(this.activeItem,activePanel)}this.activeItem=item}}close(item,panel){AccordionInstance.addPanelHeight(panel),item.classList.remove("is-open"),item.classList.add("is-closing"),this.activeItem===item&&(this.activeItem=null),setTimeout(()=>{panel.style.height="0"},10)}handleClick(e){const toggle=e.target.closest(this.titleClass);if(!toggle)return;e.preventDefault();const item=toggle.parentNode,panel=toggle.nextElementSibling;item.open?this.close(item,panel):this.open(item,panel)}handleTransition(e){if(!e.target.matches(this.panelClass))return;const panel=e.target,item=panel.parentNode;item.classList.contains("is-closing")&&(item.classList.remove("is-closing"),item.open=!1),AccordionInstance.removePanelHeight(panel)}bindEvents(){this.clickHandler=this.handleClick.bind(this),this.transitionHandler=this.handleTransition.bind(this),this.accordion.addEventListener("click",this.clickHandler),this.accordion.addEventListener("transitionend",this.transitionHandler)}destroy(){this.accordion.removeEventListener("click",this.clickHandler),this.accordion.removeEventListener("transitionend",this.transitionHandler)}}class Accordion extends ccComponent{constructor(){let name=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"accordion",cssSelector=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`.cc-${name}`;super(name,cssSelector)}init(container){super.init(container),this.registerInstance(container,new AccordionInstance(container))}destroy(container){this.destroyInstance(container),super.destroy(container)}}new Accordion;class CustomSelectInstance{constructor(el){this.el=el,this.button=el.querySelector(".cc-select__btn"),this.listbox=el.querySelector(".cc-select__listbox"),this.options=el.querySelectorAll(".cc-select__option"),this.selectedOption=el.querySelector('[aria-selected="true"]'),this.nativeSelect=document.getElementById(`${el.id}-native`),this.swatches="swatch"in this.options[this.options.length-1].dataset,this.focusedClass="is-focused",this.searchString="",this.listboxOpen=!1,this.selectedOption||(this.selectedOption=this.listbox.firstElementChild),this.bindEvents(),this.setButtonWidth()}bindEvents(){this.el.addEventListener("keydown",this.handleKeydown.bind(this)),this.el.addEventListener("selectOption",this.handleSelectOption.bind(this)),this.button.addEventListener("mousedown",this.handleMousedown.bind(this))}addListboxOpenEvents(){this.mouseoverHandler=this.handleMouseover.bind(this),this.mouseleaveHandler=this.handleMouseleave.bind(this),this.clickHandler=this.handleClick.bind(this),this.blurHandler=this.handleBlur.bind(this),this.listbox.addEventListener("mouseover",this.mouseoverHandler),this.listbox.addEventListener("mouseleave",this.mouseleaveHandler),this.listbox.addEventListener("click",this.clickHandler),this.listbox.addEventListener("blur",this.blurHandler)}removeListboxOpenEvents(){this.listbox.removeEventListener("mouseover",this.mouseoverHandler),this.listbox.removeEventListener("mouseleave",this.mouseleaveHandler),this.listbox.removeEventListener("click",this.clickHandler),this.listbox.removeEventListener("blur",this.blurHandler)}handleKeydown(e){this.listboxOpen?this.handleKeyboardNav(e):(e.key==="ArrowUp"||e.key==="ArrowDown"||e.key===" ")&&(e.preventDefault(),this.showListbox())}handleMousedown(e){!this.listboxOpen&&e.button===0&&this.showListbox()}handleMouseover(e){e.target.matches("li")&&this.focusOption(e.target)}handleMouseleave(){this.focusOption(this.selectedOption)}handleClick(e){e.target.matches(".js-option")&&this.selectOption(e.target)}handleBlur(){this.listboxOpen&&this.hideListbox()}handleKeyboardNav(e){let optionToFocus;switch(e.key==="Tab"&&e.preventDefault(),e.key){case"ArrowUp":case"ArrowDown":e.preventDefault(),e.key==="ArrowUp"?optionToFocus=this.focusedOption.previousElementSibling:optionToFocus=this.focusedOption.nextElementSibling,optionToFocus&&!optionToFocus.classList.contains("is-disabled")&&this.focusOption(optionToFocus);break;case"Enter":case" ":e.preventDefault(),this.selectOption(this.focusedOption);break;case"Escape":e.preventDefault(),this.hideListbox();break;default:optionToFocus=this.findOption(e.key),optionToFocus&&this.focusOption(optionToFocus);break}}setButtonWidth(){const getUnpaddedWidth=el=>{const elStyle=getComputedStyle(el);return parseFloat(elStyle.paddingLeft)+parseFloat(elStyle.paddingRight)},buttonPadding=getUnpaddedWidth(this.button),optionPadding=getUnpaddedWidth(this.selectedOption),buttonBorder=this.button.offsetWidth-this.button.clientWidth,optionWidth=Math.ceil(this.selectedOption.getBoundingClientRect().width);this.button.style.width=`${optionWidth-optionPadding+buttonPadding+buttonBorder}px`}showListbox(){this.listbox.hidden=!1,this.listboxOpen=!0,this.el.classList.add("is-open"),this.button.setAttribute("aria-expanded","true"),this.listbox.setAttribute("aria-hidden","false"),setTimeout(()=>{this.focusOption(this.selectedOption),this.listbox.focus(),this.addListboxOpenEvents()},10)}hideListbox(){this.listboxOpen&&(this.listbox.hidden=!0,this.listboxOpen=!1,this.el.classList.remove("is-open"),this.button.setAttribute("aria-expanded","fal
1se"),this.listbox.setAttribute("aria-hidden","true"),this.focusedOption&&(this.focusedOption.classList.remove(this.focusedClass),this.focusedOption=null),this.button.focus(),this.removeListboxOpenEvents())}findOption(key){return this.searchString+=key,this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>{this.searchString=""},500),[...this.options].find(option=>option.innerText.toLowerCase().includes(this.searchString)&&!option.classList.contains("is-disabled"))}focusOption(option){if(this.focusedOption&&this.focusedOption.classList.remove(this.focusedClass),this.focusedOption=option,this.focusedOption.classList.add(this.focusedClass),this.listbox.scrollHeight>this.listbox.clientHeight){const scrollBottom=this.listbox.clientHeight+this.listbox.scrollTop,optionBottom=option.offsetTop+option.offsetHeight;optionBottom>scrollBottom?this.listbox.scrollTop=optionBottom-this.listbox.clientHeight:option.offsetTop<this.listbox.scrollTop&&(this.listbox.scrollTop=option.offsetTop)}}handleSelectOption(e){const matchingOption=[...this.options].find(option=>option.dataset.value===e.detail.value);matchingOption&&this.selectOption(matchingOption)}selectOption(option){if(option!==this.selectedOption)if(option.setAttribute("aria-selected","true"),this.selectedOption.setAttribute("aria-selected","false"),this.swatches&&(option.dataset.swatch?this.button.dataset.swatch=option.dataset.swatch:this.button.removeAttribute("data-swatch")),this.button.firstChild.textContent=option.firstElementChild.textContent,this.listbox.setAttribute("aria-activedescendant",option.id),this.selectedOption=document.getElementById(option.id),this.nativeSelect)this.nativeSelect.value=option.dataset.value,this.nativeSelect.dispatchEvent(new Event("change",{bubbles:!0}));else{const detail={selectedValue:option.dataset.value};this.el.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail}))}this.hideListbox()}}class CustomSelect extends ccComponent{constructor(){let name=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"custom-select",cssSelector=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".cc-select";super(name,cssSelector)}init(container){super.init(container),this.registerInstance(container,new CustomSelectInstance(container))}destroy(container){this.destroyInstance(container),super.destroy(container)}}new CustomSelect;class FacetFiltersInstance{constructor(el){this.section=el.closest(".shopify-section"),this.form=this.section.querySelector(".cc-facet-filters"),this.results=this.section.querySelector(".cc-filters-results"),this.filteringEnabled=el.dataset.filtering==="true",this.sortingEnabled=el.dataset.sorting==="true",this.utils={hidden:"is-hidden",loading:"is-loading",open:"is-open",filtersOpen:"filters-open"},this.bindElements(),this.bindEvents(),document.addEventListener("click",this.handleClickOutside.bind(this)),window.addEventListener("popstate",this.handleHistoryChange.bind(this))}bindElements(){this.filtersControl=document.querySelector(".cc-filters-control"),this.filtersContainer=document.querySelector(".cc-filters-container"),this.filteringEnabled&&(this.filters=document.querySelector(".cc-filters"),this.filtersFooter=document.querySelector(".cc-filters__footer"),this.activeFilters=document.querySelector(".cc-active-filters")),this.sortingEnabled&&(this.sortBy=document.querySelector(".cc-filter--sort"),this.activeSortText=document.querySelector(".cc-sort-selected")),this.filteringEnabled&&!this.filtersFooter.classList.contains(this.utils.hidden)&&(this.filters.style.height=`calc(100% - ${this.filtersFooter.offsetHeight}px)`)}bindEvents(){this.filtersControl.addEventListener("click",this.handleControlClick.bind(this)),this.filtersContainer.addEventListener("click",this.handleFiltersClick.bind(this)),this.filtersContainer.addEventListener("input",this.debounce(this.handleFilterChange.bind(this),500)),this.filteringEnabled&&(document.querySelector(".cc-price-range")&&this.filtersContainer.addEventListener("change",this.debounce(this.handleFilterChange.bind(this),500)),this.activeFilters.addEventListener("click",this.handleActiveFiltersClick.bind(this)))}debounce(fn,wait){var _this2=this;let timer;return function(){for(var _len=arguments.length,args=new Array(_len),_
1key=0;_key<_len;_key++)args[_key]=arguments[_key];clearTimeout(timer),timer=setTimeout(()=>fn.apply(_this2,args),wait)}}handleControlClick(e){e.target.matches(".cc-filters-control__btn")&&(document.body.classList.add(this.utils.filtersOpen),e.target.matches(".js-show-filters")?this.filters.classList.add(this.utils.open):(this.sortBy.open=!0,setTimeout(()=>{this.sortBy.classList.add(this.utils.open)},10)))}handleFiltersClick(e){const{target}=e,filter=target.closest(".cc-filter");if(target.matches(".cc-filter-clear-btn")){e.preventDefault(),this.applyFilters(new URL(e.target.href).searchParams.toString(),e);return}if(target.matches(".js-close-filters")){filter&&setTimeout(()=>{filter.classList.remove(this.utils.open),filter.open=!1},300),this.filteringEnabled&&this.filters.classList.remove(this.utils.open),document.body.classList.remove(this.utils.filtersOpen);return}if(target.matches(".cc-filter__toggle")||target.matches(".cc-filter-back-btn")){const openFilter=document.querySelector(`.cc-filter[open]:not([data-index="${filter.dataset.index}"])`);openFilter&&this.closeFilter(openFilter,!1),filter.classList.contains(this.utils.open)?(e.preventDefault(),this.closeFilter(filter)):setTimeout(()=>{filter.classList.add(this.utils.open)},10)}}handleClickOutside(e){const openFilter=document.querySelector(`.cc-filter.${this.utils.open}`);if(openFilter){const filter=e.target.closest(".cc-filter");(!filter||filter!==openFilter)&&this.closeFilter(openFilter)}}handleFilterChange(e){if(e.type==="change"&&(!e.detail||e.detail.sender!=="theme:component:price_range"))return;e.type==="input"&&e.target.classList.contains("cc-price-range__input")&&e.target.dispatchEvent(new Event("change",{bubbles:!0}));const formData=new FormData(document.getElementById("filters")),searchParams=new URLSearchParams(formData);this.applyFilters(searchParams.toString(),e)}handleActiveFiltersClick(e){e.preventDefault(),e.target.tagName==="A"&&this.applyFilters(new URL(e.target.href).searchParams.toString(),e)}handleHistoryChange(e){let searchParams="";e.state&&e.state.searchParams&&(searchParams=e.state.searchParams),this.applyFilters(searchParams,null,!1)}applyFilters(searchParams,e){var _e$target;let updateUrl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this.activeElementId=((_e$target=e.target)===null||_e$target===void 0?void 0:_e$target.id)||null;const containerElements=[this.form,this.results];containerElements.forEach(el=>el.classList.add(this.utils.loading));let fetchUrl=`${window.location.pathname}?${searchParams}`;this.form.dataset.filterSectionId&&(fetchUrl+=`§ion_id=${this.form.dataset.filterSectionId}`),this.applyFiltersFetchAbortController&&this.applyFiltersFetchAbortController.abort("Request changed"),this.applyFiltersFetchAbortController=new AbortController,fetch(fetchUrl,{method:"GET",signal:this.applyFiltersFetchAbortController.signal}).then(response=>{if(!response.ok)throw new Error(`HTTP error! Status: ${response.status}`);return response.text()}).then(response=>{const template=document.createElement("template");if(template.innerHTML=response,this.form.querySelectorAll(".cc-filter").forEach(existingFilter=>{const target=template.content.getElementById(existingFilter.id);target&&(target.classList.toggle(this.utils.open,existingFilter.open),target.open=existingFilter.open)}),template.content.querySelectorAll(".cc-facet-filters, .cc-filters-results").forEach((el,index)=>{containerElements[index].innerHTML=el.innerHTML}),$(document).trigger("cc:component:load",["price-range",this.section]),this.bindElements(),this.bindEvents(),containerElements.forEach(el=>el.classList.remove(this.utils.loading)),this.activeElementId){const activeElement=document.getElementById(this.activeElementId);activeElement&&activeElement.focus()}updateUrl&&this.updateURL(searchParams),document.dispatchEvent(new CustomEvent("filters-applied",{bubbles:!0}))}).catch(error=>{console.warn(error)})}updateURL(searchParams){history.pushState({searchParams},"",`${window.location.pathname}${searchParams&&"?".concat(searchParams)}`)}closeFilter(filter){let delay=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;clearTimeout(this.closeTimer),filter.classList.remove(this.utils.open),this.closeTimer=setTimeout(()=>{filter.open=!1},delay?300:null)}}class FacetFilters extends ccComponent{constructor(){let name=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"facet-filters",cssSelector=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".cc-facet-filters";super(name,cssSelector)}init(container){super.init(container),this.registerInstance(container,new FacetFiltersInstance(container))}destroy(container){this.destroyInstance(container),super.destroy(container)}}new FacetFilters;class PriceRangeInstance{constructor(container){this.container=container,this.selectors={inputMin:".cc-price-range__input--min",inputMa
1x:".cc-price-range__input--max",control:".cc-price-range__control",controlMin:".cc-price-range__control--min",controlMax:".cc-price-range__control--max",bar:".cc-price-range__bar",activeBar:".cc-price-range__bar-active"},this.controls={min:{barControl:container.querySelector(this.selectors.controlMin),input:container.querySelector(this.selectors.inputMin)},max:{barControl:container.querySelector(this.selectors.controlMax),input:container.querySelector(this.selectors.inputMax)}},this.controls.min.value=parseInt(this.controls.min.input.value===""?this.controls.min.input.placeholder:this.controls.min.input.value),this.controls.max.value=parseInt(this.controls.max.input.value===""?this.controls.max.input.placeholder:this.controls.max.input.value),this.valueMin=this.controls.min.input.min,this.valueMax=this.controls.min.input.max,this.valueRange=this.valueMax-this.valueMin,[this.controls.min,this.controls.max].forEach(item=>{item.barControl.setAttribute("aria-valuemin",this.valueMin),item.barControl.setAttribute("aria-valuemax",this.valueMax)}),this.controls.min.barControl.setAttribute("aria-valuenow",this.controls.min.value),this.controls.max.barControl.setAttribute("aria-valuenow",this.controls.max.value),this.bar=container.querySelector(this.selectors.bar),this.activeBar=container.querySelector(this.selectors.activeBar),this.inDrag=!1,this.bindEvents(),this.render()}getPxToValueRatio(){return this.bar.clientWidth/(this.valueMax-this.valueMin)}getPcToValueRatio(){return 100/(this.valueMax-this.valueMin)}setActiveControlValue(value,reset){this.activeControl===this.controls.min?(value===""&&(value=this.valueMin),value=Math.max(this.valueMin,value),value=Math.min(value,this.controls.max.value)):(value===""&&(value=this.valueMax),value=Math.min(this.valueMax,value),value=Math.max(value,this.controls.min.value)),this.activeControl.value=Math.round(value),this.activeControl.input.value!=this.activeControl.value&&(this.activeControl.value==this.activeControl.input.placeholder?this.activeControl.input.value="":this.activeControl.input.value=this.activeControl.value,reset||this.activeControl.input.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{sender:"theme:component:price_range"}}))),this.activeControl.barControl.setAttribute("aria-valuenow",this.activeControl.value)}render(){this.drawControl(this.controls.min),this.drawControl(this.controls.max),this.drawActiveBar()}drawControl(control){control.barControl.style.left=`${(control.value-this.valueMin)*this.getPcToValueRatio()}%`}drawActiveBar(){this.activeBar.style.left=`${(this.controls.min.value-this.valueMin)*this.getPcToValueRatio()}%`,this.activeBar.style.right=`${(this.valueMax-this.controls.max.value)*this.getPcToValueRatio()}%`}handleControlTouchStart(e){e.preventDefault(),this.startDrag(e.target,e.touches[0].clientX),this.boundControlTouchMoveEvent=this.handleControlTouchMove.bind(this),this.boundControlTouchEndEvent=this.handleControlTouchEnd.bind(this),window.addEventListener("touchmove",this.boundControlTouchMoveEvent),window.addEventListener("touchend",this.boundControlTouchEndEvent)}handleControlTouchMove(e){this.moveDrag(e.touches[0].clientX)}handleControlTouchEnd(e){e.preventDefault(),window.removeEventListener("touchmove",this.boundControlTouchMoveEvent),window.removeEventListener("touchend",this.boundControlTouchEndEvent),this.stopDrag(
1)}handleControlMouseDown(e){e.preventDefault(),this.startDrag(e.target,e.clientX),this.boundControlMouseMoveEvent=this.handleControlMouseMove.bind(this),this.boundControlMouseUpEvent=this.handleControlMouseUp.bind(this),window.addEventListener("mousemove",this.boundControlMouseMoveEvent),window.addEventListener("mouseup",this.boundControlMouseUpEvent)}handleControlMouseMove(e){this.moveDrag(e.clientX)}handleControlMouseUp(e){e.preventDefault(),window.removeEventListener("mousemove",this.boundControlMouseMoveEvent),window.removeEventListener("mouseup",this.boundControlMouseUpEvent),this.stopDrag()}startDrag(target,startX){this.activeControl=this.controls.min.barControl===target?this.controls.min:this.controls.max,this.dragStartX=startX,this.dragStartValue=this.activeControl.value,this.inDrag=!0}moveDrag(moveX){if(this.inDrag){const value=this.dragStartValue+(moveX-this.dragStartX)/this.getPxToValueRatio();this.setActiveControlValue(value),this.render()}}stopDrag(){this.inDrag=!1}handleInputChange(e){if(e.target.tagName==="INPUT"&&(!e.detail||e.detail.sender!=="theme:component:price_range")){const reset=e.detail&&e.detail.sender==="reset";this.activeControl=this.controls.min.input===e.target?this.controls.min:this.controls.max,this.setActiveControlValue(e.target.value,reset),this.render()}}bindEvents(){[this.controls.min,this.controls.max].forEach(item=>{item.barControl.addEventListener("touchstart",this.handleControlTouchStart.bind(this)),item.barControl.addEventListener("mousedown",this.handleControlMouseDown.bind(this))}),this.container.addEventListener("change",this.handleInputChange.bind(this))}destroy(){}}class PriceRange extends ccComponent{constructor(){let name=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"price-range",cssSelector=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`.cc-${name}`;super(name,cssSelector)}init(container){super.init(container),this.registerInstance(container,new PriceRangeInstance(container))}destroy(container){this.destroyInstance(container),super.destroy(container)}}new PriceRange;class GiftCardRecipient extends HTMLElement{constructor(){super(),this.recipientCheckbox=null,this.recipientFields=null,this.recipientEmail=null,this.recipientName=null,this.recipientMessage=null,this.recipientSendOn=null,this.recipientOffsetProperty=null}connectedCallback(){this.recipientEmail=this.querySelector('[name="properties[Recipient email]"]'),this.recipientEmailLabel=this.querySelector(`label[for="${this.recipientEmail.id}"]`),this.recipientName=this.querySelector('[name="properties[Recipient name]"]'),this.recipientMessage=this.querySelector('[name="properties[Message]"]'),this.recipientSendOn=this.querySelector('[name="properties[Send on]"]'),this.recipientOffsetProperty=this.querySelector('[name="properties[__shopify_offset]"]'),this.recipientEmailLabel&&this.recipientEmailLabel.dataset.jsLabel&&(this.recipientEmailLabel.innerText=this.recipientEmailLabel.dataset.jsLabel),this.recipientEmail.dataset.jsPlaceholder&&(this.recipientEmail.placeholder=this.recipientEmail.dataset.jsPlaceholder,this.recipientEmail.ariaLabel=this.recipientEmail.dataset.jsAriaLabel),this.recipientOffsetProperty&&(this.recipientOffsetProperty.value=new Date().getTimezoneOffset().toString(),this.recipientOffsetProperty.removeAttribute("disabled")),this.recipientCheckbox=this.querySelector(".cc-gift-card-recipient__checkbox"),this.recipientFields=this.querySelector(".cc-gift-card-recipient__fields"),this.recipientCheckbox.addEventListener("change",()=>this.synchronizeProperties()),this.synchronizeProperties()}synchronizeProperties(){this.recipientCheckbox.checked?(this.recipientFields.style.display="block",this.recipientEmail.setAttribute("required",""),this.recipientEmail.removeAttribute("disabled"),this.recipientName.removeAttribute("disabled"),this.recipientMessage.removeAttribute("disabled"),this.recipientSendOn.removeAttribute("disabled"),this.recipientOffsetProperty&&this.recipientOffsetProperty.removeAttribute("disabled")):(this.recipientFields.style.display="none",this.recipientEmail.removeAttribute("required"),this.recipientEmail.setAttribute("disabled",""),this.recipientName.setAttribute("disabled",""),this.recipientMessage.setAttribute("disabled",""),this.recipientSendOn.setAttribute("disabled",""),this.recipientOff
1setProperty&&this.recipientOffsetProperty.setAttribute("disabled",""))}}window.customElements.get("gift-card-recipient")||window.customElements.define("gift-card-recipient",GiftCardRecipient);class ccPopup{constructor($container,namespace){this.$container=$container,this.namespace=namespace,this.cssClasses={visible:"cc-popup--visible",bodyNoScroll:"cc-popup-no-scroll",bodyNoScrollPadRight:"cc-popup-no-scroll-pad-right"}}open(callback){if(this.$container.data("freeze-scroll")){clearTimeout(theme.ccPopupRemoveScrollFreezeTimeoutId),$("body").addClass(this.cssClasses.bodyNoScroll);var scrollDiv=document.createElement("div");scrollDiv.className="popup-scrollbar-measure",document.body.appendChild(scrollDiv);var scrollbarWidth=scrollDiv.getBoundingClientRect().width-scrollDiv.clientWidth;document.body.removeChild(scrollDiv),scrollbarWidth>0&&$("body").css("padding-right",scrollbarWidth+"px").addClass(this.cssClasses.bodyNoScrollPadRight)}this.$container.addClass(this.cssClasses.visible),this.previouslyActiveElement=document.activeElement,setTimeout(()=>{this.$container.find(".cc-popup-close")[0].focus()},500),$(window).on("keydown"+this.namespace,event=>{event.keyCode===27&&this.close()}),callback&&callback()}close(callback){if(this.$container.removeClass(this.cssClasses.visible),this.previouslyActiveElement&&$(this.previouslyActiveElement).focus(),$(window).off("keydown"+this.namespace),$("."+this.cssClasses.visible).filter(()=>this.$container.data("freeze-scroll")).length===0){let transitionDuration=500;const $innerModal=this.$container.find(".cc-popup-modal");$innerModal.length&&(transitionDuration=parseFloat(getComputedStyle($innerModal[0]).transitionDuration),transitionDuration&&transitionDuration>0&&(transitionDuration*=1e3)),theme.ccPopupRemoveScrollFreezeTimeoutId=setTimeout(()=>{$("body").removeClass(this.cssClasses.bodyNoScroll).removeClass(this.cssClasses.bodyNoScrollPadRight).css("padding-right","0")},transitionDuration)}callback&&callback()}}if(document.body.classList.contains("cc-animate-enabled"))if("IntersectionObserver"in window&&"MutationObserver"in window){const initAnimateOnScroll=()=>{const animatableElems=document.querySelectorAll("[data-cc-animate]:not(.cc-animate-init)");if(animatableElems.length>0){const intersectionObserver=new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{entry.isIntersecting&&!entry.target.classList.contains("cc-animate-in")&&(entry.target.classList.add("cc-animate-in"),observer.unobserve(entry.target))})});
1animatableElems.forEach(elem=>{elem.dataset.ccAnimateDelay&&(elem.style.animationDelay=elem.dataset.ccAnimateDelay),elem.dataset.ccAnimateDuration&&(elem.style.animationDuration=elem.dataset.ccAnimateDuration),elem.dataset.ccAnimate&&elem.classList.add(elem.dataset.ccAnimate),elem.classList.add("cc-animate-init"),intersectionObserver.observe(elem)})}},aosMinWidth=getComputedStyle(document.documentElement).getPropertyValue("--aos-min-width")||"0",mq=window.matchMedia(`(min-width: ${aosMinWidth}px)`);if(mq.matches)initAnimateOnScroll(),document.addEventListener("DOMContentLoaded",()=>{new MutationObserver(theme.debounce(initAnimateOnScroll,250)).observe(document.body,{subtree:!0,childList:!0})});else{document.body.classList.remove("cc-animate-enabled");try{mq.addEventListener("change",event=>{event.matches&&(document.body.classList.add("cc-animate-enabled"),setTimeout(initAnimateOnScroll,100))})}catch{}}}else document.body.classList.remove("cc-animate-enabled");theme.MapSection=new function(){var _=this;_.config={zoom:14,styles:{default:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#172
163c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]}},_.apiStatus=null,this.geolocate=function($map){var deferred=$.Deferred(),geocoder=new google.maps.Geocoder,address=$map.data("address-setting");return geocoder.geocode({address},function(results,status2){status2!==google.maps.GeocoderStatus.OK&&deferred.reject(status2),deferred.resolve(results)}),deferred},this.createMap=function(container){var $map=$(".map-section__map-container",container);return _.geolocate($map).then(function(results){var mapOptions={zoom:_.config.zoom,styles:_.config.styles[$(container).data("map-style")],center:results[0].geometry.location,scrollwheel:!1,disableDoubleClickZoom:!0,disableDefaultUI:!0,zoomControl:!$map.data("hide-zoom")};_.map=new google.maps.Map($map[0],mapOptions),_.center=_.map.getCenter();var marker=new google.maps.Marker({map:_.map,position:_.center,clickable:!1});google.maps.event.addDomListener(window,"resize",function(){google.maps.event.trigger(_.map,"resize"),_.map.setCenter(_.center)})}.bind(this)).fail(function(){var errorMessage;switch(status){case"ZERO_RESULTS":errorMessage=theme.strings.addressNoResults;break;case"OVER_QUERY_LIMIT":errorMessage=theme.strings.addressQueryLimit;break;default:errorMessage=theme.strings.addressError;break}if(Shopify.designMode){var $mapContainer=$map.parents(".map-section");$mapContainer.addClass("page-width map-section--load-error"),$mapContainer.find(".map-section__wrapper").html('<div class="errors text-center">'+errorMessage+"</div>")}})},this.onSectionLoad=function(target){var $container=$(target);window.gm_authFailure=function(){Shopify.designMode&&($container.addClass("page-width map-section--load-error"),$container.find(".map-section__wrapper").html('<div class="errors text-center">'+theme.strings.authError+"</div>"))};var key=$container.data("api-key");typeof key!="string"||key===""||theme.loadScriptOnce("https://maps.googleapis.com/ma
1ps/api/js?key="+key,function(){_.createMap($container)})},this.onSectionUnload=function(target){typeof window.google<"u"&&typeof google.maps<"u"&&google.maps.event.clearListeners(_.map,"resize")}},cc.sections.push({name:"map",section:theme.MapSection}),theme.VideoManager=new function(){let _=this;_.videos={incrementor:0,videoData:{}},_._loadYoutubeVideos=function(container){$('.video-container[data-video-type="youtube"]:not(.video--init)',container).each(function(){$(this).addClass("video--init"),_.videos.incrementor++;let containerId="theme-yt-video-"+_.videos.incrementor;$(this).data("video-container-id",containerId);let autoplay=$(this).data("video-autoplay"),loop=$(this).data("video-loop"),videoId=$(this).data("video-id"),isBackgroundVideo=$(this).hasClass("video-container--background"),ytURLSearchParams=new URLSearchParams("iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&enablejsapi=1&playslinline=1");ytURLSearchParams.append("origin",location.origin),ytURLSearchParams.append("playlist",videoId),ytURLSearchParams.append("loop",loop?1:0),ytURLSearchParams.append("autoplay",0),ytURLSearchParams.append("controls",isBackgroundVideo?0:1);let widgetid=_.videos.incrementor;ytURLSearchParams.append("widgetid",widgetid);let src="https://www.youtube.com/embed/"+videoId+"?"+ytURLSearchParams.toString(),$videoElement=$('<iframe class="video-container__video-element" frameborder="0" allowfullscreen="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture">').attr({id:containerId,width:640,height:360,tabindex:isBackgroundVideo?"-1":null}).appendTo($(".video-container__video",this));_.videos.videoData[containerId]={type:"yt",id:containerId,container:this,mute:()=>$videoElement[0].contentWindow.postMessage('{"event":"command","func":"mute","args":""}',"*"),play:()=>$videoElement[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),pause:()=>$videoElement[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),stop:()=>$videoElement[0].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"),seekTo:to=>$videoElement[0].contentWindow.postMessage(`{"event":"command","func":"seekTo","args":[${to},true]}`,"*"),videoElement:$videoElement[0],isBackgroundVideo,establishedYTComms:!1},autoplay&&$videoElement.on("load",()=>setTimeout(()=>{window.addEventListener("message",message=>{if(message.origin==="https://www.youtube.com"&&message.data&&typeof message.data=="string"){let data=JSON.parse(message.data);data.event==="initialDelivery"&&data.info&&data.info.duration&&(_.videos.videoData[containerId].duration=data.info.duration),data.event==="infoDelivery"&&data.channel==="widget"&&data.id===widgetid&&(_.videos.videoData[containerId].establishedYTComms=!0,data.info&&data.info.playerState===1&&$(this).addClass("video-container--playing"),loop&&data.info&&data.info.currentTime>_.videos.videoData[containerId].duration-1&&_.videos.videoData[containerId].seekTo(0))}}),$videoElement[0].contentWindow.postMessage(`{"event":"listening","id":${widgetid},"channel":"widget"}`,"*"),_.videos.videoData[containerId].mute(),_.videos.videoData[containerId].play(),setTimeout(()=>{_.videos.videoData[containerId].establishedYTComms||$(this).addClass("video-container--playing")},2e3)},100)),isBackgroundVideo&&($videoElement.attr("tabindex","-1"),_._initBackgroun
1dVideo(_.videos.videoData[containerId]),_.addYTPageshowListenerHack()),$videoElement.attr("src",src),fetch("https://www.youtube.com/oembed?format=json&url="+encodeURIComponent($(this).data("video-url"))).then(response=>{if(!response.ok)throw new Error(`HTTP error! Status: ${response.status}`);return response.json()}).then(response=>{response.width&&response.height&&($videoElement.attr({width:response.width,height:response.height}),_.videos.videoData[containerId].assessBackgroundVideo&&_.videos.videoData[containerId].assessBackgroundVideo())})})},_._loadVimeoVideos=function(container){$('.video-container[data-video-type="vimeo"]:not(.video--init)',container).each(function(){$(this).addClass("video--init"),_.videos.incrementor++;var containerId="theme-vi-video-"+_.videos.incrementor;$(this).data("video-container-id",containerId);var autoplay=$(this).data("video-autoplay");let loop=$(this).data("video-loop"),videoId=$(this).data("video-id"),isBackgroundVideo=$(this).hasClass("video-container--background"),viURLSearchParams=new URLSearchParams;autoplay&&viURLSearchParams.append("muted",1),loop&&viURLSearchParams.append("loop",1),isBackgroundVideo&&viURLSearchParams.append("controls",0);let src="https://player.vimeo.com/video/"+videoId+"?"+viURLSearchParams.toString(),$videoElement=$('<iframe class="video-container__video-element" frameborder="0" allowfullscreen="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture">').attr({id:containerId,width:640,height:360,tabindex:isBackgroundVideo?"-1":null}).appendTo($(".video-container__video",this));_.videos.videoData[containerId]={type:"vimeo",id:containerId,container:this,play:()=>$videoElement[0].contentWindow.postMessage('{"method":"play"}',"*"),pause:()=>$videoElement[0].contentWindow.postMessage('{"method":"pause"}',"*"),videoElement:$videoElement[0],isBackgroundVideo,establishedVimeoComms:!1},autoplay&&$videoElement.on("load",()=>setTimeout(()=>{window.addEventListener("message",message=>{if(message.origin!=="https://player.vimeo.com"||message.source!==$videoElement[0].contentWindow||!message.data)return;let data=message.data;
1typeof data=="string"&&(data=JSON.parse(data)),(data.method==="ping"||data.event==="playing")&&(_.videos.videoData[containerId].establishedVimeoComms=!0),data.event==="playing"&&$(this).addClass("video-container--playing")}),$videoElement[0].contentWindow.postMessage({method:"addEventListener",value:"playing"},"*"),$videoElement[0].contentWindow.postMessage({method:"appendVideoMetadata",value:location.origin},"*"),$videoElement[0].contentWindow.postMessage({method:"ping"},"*"),_.videos.videoData[containerId].play(),setTimeout(()=>{_.videos.videoData[containerId].establishedVimeoComms||$(this).addClass("video-container--playing")},2e3)},100)),isBackgroundVideo&&($videoElement.attr("tabindex","-1"),_._initBackgroundVideo(_.videos.videoData[containerId])),$videoElement.attr("src",src),fetch("https://vimeo.com/api/oembed.json?url="+encodeURIComponent($(this).data("video-url"))).then(response=>{if(!response.ok)throw new Error(`HTTP error! Status: ${response.status}`);return response.json()}).then(response=>{response.width&&response.height&&($videoElement.attr({width:response.width,height:response.height}),_.videos.videoData[containerId].assessBackgroundVideo&&_.videos.videoData[containerId].assessBackgroundVideo())})})},_._loadMp4Videos=function(container){$('.video-container[data-video-type="mp4"]:not(.video--init)',container).addClass("video--init").each(function(){_.videos.incrementor++;var containerId="theme-mp-video-"+_.videos.incrementor,$container=$(this);$(this).data("video-container-id",containerId);var $videoElement=$('<div class="video-container__video-element">').attr("id",containerId).appendTo($(".video-container__video",this)),autoplay=$(this).data("video-autoplay");let isBackgroundVideo=$(this).hasClass("video-container--background");var $video=$("<video playsinline>");if($(this).data("video-loop")&&$video.attr("loop","loop"),$video.on("click mouseenter",()=>$video.attr("controls","controls")),autoplay&&($video.attr({autoplay:"autoplay",muted:"muted"}),$video[0].muted=!0,$video.one("loadeddata",function(){this.play(),$container.addClass("video-container--playing")})),$(this).data("video-url")&&$video.attr("src",$(this).data("video-url")),$(this).data("video-sources")){const sources=$(this).data("video-sources").split("|");for(let i=0;i<sources.length;i++){const[format,mimeType,url]=sources[i].split(" ");
1format==="m3u8"&&$(this).data("video-loop")||$("<source>").attr({src:url,type:mimeType}).appendTo($video)}}$video.appendTo($videoElement);const videoData=_.videos.videoData[containerId]={type:"mp4",element:$video[0],play:()=>$video[0].play(),pause:()=>$video[0].pause(),isBackgroundVideo};isBackgroundVideo&&($video.attr("tabindex","-1"),autoplay&&container.addEventListener("click",videoData.play,{once:!0}))})},_._initBackgroundVideo=function(videoData){videoData.container.classList.contains("video-container--background")&&(videoData.assessBackgroundVideo=function(){var cw=this.offsetWidth,ch=this.offsetHeight,cr=cw/ch,frame=this.querySelector("iframe"),vr=parseFloat(frame.width)/parseFloat(frame.height),pan=this.querySelector(".video-container__video"),vCrop=75;if(cr>vr){var vh=cw/vr+vCrop*2;pan.style.marginTop=(ch-vh)/2-vCrop+"px",pan.style.marginInlineStart="",pan.style.height=vh+vCrop*2+"px",pan.style.width=""}else{var ph=ch+vCrop*2,pw=ph*vr;pan.style.marginTop=-vCrop+"px",pan.style.marginInlineStart=(cw-pw)/2+"px",pan.style.height=ph+"px",pan.style.width=pw+"px"}}.bind(videoData.container),videoData.assessBackgroundVideo(),$(window).on("debouncedresize."+videoData.id,videoData.assessBackgroundVideo),videoData.container.addEventListener("click",videoData.play,{once:!0}))},_._unloadVideos=function(container){for(let dataKey in _.videos.videoData){let data=_.videos.videoData[dataKey];if($(container).find(data.container).length){delete _.videos.videoData[dataKey];return}}},this.onSectionLoad=function(container){$(".video-container[data-video-url]:not([data-video-type])").each(function(){var url=$(this).data("video-url");url.indexOf(".mp4")>-1&&$(this).attr("data-video-type","mp4"),url.indexOf("vimeo.com")>-1&&($(this).attr("data-video-type","vimeo"),$(this).attr("data-video-id",url.split("?")[0].split("/").pop())),(url.indexOf("youtu.be")>-1||url.indexOf("youtube.com")>-1)&&($(this).attr("data-video-type","youtube"),url.indexOf("v=")>-1?$(this).attr("data-video-id",url.split("v=").pop().split("&")[0]):$(this).attr("data-video-id",url.split("?")[0].split("/").pop()))}),_._loadYoutubeVideos(container),_._loadVimeoVideos(container),_._loadMp4Videos(container),$(".video-container__play",container).on("click",function(evt){evt.preventDefault();var $container=$(this).closest(".video-container");$container.addClass("video-container--playing"),$container.trigger("cc:video:play");var id=$container.data("video-container-id");_.videos.videoData[id].play()}),$(".video-container__stop",container).on("click",function(evt){evt.preventDefault();var $container=$(this).closest(".video-container");$container.removeClass("video-container--playing"),$container.trigger("cc:video:stop");var id=$container.data("video-container-id");_.videos.videoData[id].pause()})},this.onSectionUnload=function(container){$(".video-container__play, .video-container__stop",container).off("click"),$(window).off("."+$(".video-container").data("video-container-id")),$(window).off("debouncedresize.video-manager-resize"),_._unloadVideos(container),$(container).trigger("cc:video:stop")},_.addYTPageshowListenerHack=function(){_.pageshowListenerAdded||(_.pageshowListenerAdded=!0,window.addEventListener("pageshow",event=>{event.persisted&&Object.keys(_.videos.videoData).filter(key=>_.videos.videoData[key].type==="yt"&&_.videos.videoData[key].isBackgroundVideo).forEach(key=>{_.videos.videoData[key].stop(),_.videos.videoData[key].play()})}))}},cc.sections.push({name:"video",section:theme.VideoManager}),theme.CollapsibleTabs=new function(){this.onSectionLoad=function(container){this.functions.notifyFaqHeaderOfChange()},this.onSectionReorder=function(container){this.functions.notifyFaqHeaderOfChange()},this.onSectionUnload=function(container){this.functions.notifyFaqHeaderOfChange()},this.functions={notifyFaqHeaderOfChange:function(){document.dispatchEvent(new CustomEvent("theme:faq-header-update",{bubbles:!0,cancelable:!1}))}}},cc.sections.push({name:"collapsible-tabs",section:theme.CollapsibleTabs,deferredLoad:!1}),theme.FaqHeader=new function(){this.onSectionLoad=function(container){this.namespace=theme.namespaceFromSection(container),this.container=container,this.classNames={questionContainerInactive:"faq-search-item-inactive",sectionWithIndexStatus:"section-faq-header--with-index"},this.searchInput=this.container.querySelector(".faq-search__input"),this.searchInput&&(this.registerEventListener(this.searchInput,"change",this.functions.performSearch.bind(this)),this.registerEventListener(this.searchInput,"keyup",this.functions.performSearch.bind(this)),this.registerEventListener(this.searchInput,"paste",this.functions.performSearch.bind(this))),this.functions.debouncedBuildIndex=theme.debounce(this.functions.buildIndex.bind(this),50),this.registerEventListener(document,"theme:faq-header-update",this.functions.debouncedBuildIndex),this.functions.debouncedBuildIndex(),this.container.querySelector(".faq-index")&&(this.registerEventListener(this.container,"click",this.functions.handleIndexClick.bind(this)),this.container.closest(".section-faq-header").classList.add(this.classNames.sectionWithIndexStatus),this.functions.resizeIndex.call(this),this.registerEventListener(window,"resize",theme.debounce(this.functions.resizeIndex.bind(this),250)))},this.onSectionReorder=function(container){this.functions.debouncedBuildIndex()},this.functions={buildIndex:function(){const faqHeaderSection=this.container.closest(".section-faq-header"),indexContainer=this.container.querySelector(".faq-index__item-container");indexContainer&&indexContainer.querySelectorAll(".faq-index-item").forEach(element=>{element.parentNode.removeChild(element)}),this.linkedCollapsibleTabs=[],this.linkedQuestionContainers=[],this.linkedContent=[];let currentElement=faqHeaderSection;for(;currentElement.nextElementSibling&¤tElement.nextElementSibling.classList.contains("section-collapsible-tabs");)if(currentElement=currentElement.nextElementSibling,this.linkedCollapsibleTabs.push(currentElement),currentElement.querySelectorAll(".collapsible-tabs__tab").forEach(element=>this.linkedQuestionContainers.push(element)),currentElement.querySelectorAll(".collapsible-tabs__content").forEach(element=>this.linkedContent.push(element)),indexContainer){const currentElementHeading=currentElement.querySelector(".collapsible-tabs__heading");if(currentElementHeading){const tve=theme.createTemplateVariableEncoder();tve.add("title_id",currentElementHeading.id,"attribute"),tve.add("title",currentElementHeading.innerHTML,"raw");const html=` 2 <div class="faq-index-item"> 3 <a class="faq-index-item__link" href="#${tve.values.title_id}">${tve.values.title}</a> 4 </div>`,htmlFragment=document.createRange().createContextualFragment(html);indexContainer.appendChild(htmlFragment)}}indexContainer&&this.functions.resizeIndex.call(this)},resizeIndex:function(){const stickyContainer=this.container.querySelector(".faq-index__sticky-container");let currentElement=this.container.closest(".section-faq-header");for(;currentElement.nextElementSibling&¤tElement.nextElementSibling.classList.contains("section-collapsible-tabs");)currentElement=currentElement.nextElementSibling;const stickyContainerRect=stickyContainer.getBoundingClientRect(),currentElementRect=currentElement.getBoundingClientRect();stickyContainer.style.height=currentElementRect.bottom-stickyContainerRect.top+"px"},performSearch:function(){setTimeout(()=>{const splitValue=this.searchInput.value.split(" ");let terms=[];splitValue.forEach(t=>{t.length>0&&terms.push(t.toLowerCase())}
4),this.linkedQuestionContainers.forEach(element=>{if(terms.length){let termFound=!1;const matchContent=element.textContent.toLowerCase();terms.forEach(term=>{matchContent.indexOf(term)>=0&&(termFound=!0)}),termFound?element.classList.remove(this.classNames.questionContainerInactive):element.classList.add(this.classNames.questionContainerInactive)}else element.classList.remove(this.classNames.questionContainerInactive)}),this.linkedContent.forEach(element=>{terms.length?element.classList.add(this.classNames.questionContainerInactive):element.classList.remove(this.classNames.questionContainerInactive)})},10)},handleIndexClick:function(evt){if(evt.target.classList.contains("faq-index-item__link")){evt.preventDefault();const id=evt.target.href.split("#")[1];let scrollTargetY=document.getElementById(id).getBoundingClientRect().top+window.pageYOffset-50;const stickyHeight=getComputedStyle(document.documentElement).getPropertyValue("--theme-sticky-header-height");stickyHeight&&(scrollTargetY-=parseInt(stickyHeight)),window.scrollTo({top:scrollTargetY,behavior:"smooth"})}}}},cc.sections.push({name:"faq-header",section:theme.FaqHeader,deferredLoad:!1}),theme.Popup=new function(){var dismissedStorageKey="cc-theme-popup-dismissed";this.onSectionLoad=function(container){this.namespace=theme.namespaceFromSection(container),this.$container=$(container),this.popup=new ccPopup(this.$container,this.namespace);var dismissForDays=this.$container.data("dismiss-for-days"),delaySeconds=this.$container.data("delay-seconds"),showPopup=!0,testMode=this.$container.data("test-mode"),lastDismissed=window.localStorage.getItem(dismissedStorageKey);if(lastDismissed){var dismissedDaysAgo=(new Date().getTime()-lastDismissed)/864e5;dismissedDaysAgo<dismissForDays&&(showPopup=!1)}this.$container.find(".cc-popup-form__response").length&&(showPopup=!0,delaySeconds=1,this.$container.find(".cc-popup-form__response--success").length&&this.functions.popupSetAsDismissed.call(this)),document.querySelector(".shopify-challenge__container")&&(showPopup=!1),(showPopup||testMode)&&setTimeout(()=>{this.popup.open()},delaySeconds*1e3),this.$container.on("click"+this.namespace,".cc-popup-close, .cc-popup-background",()=>{this.popup.close(()=>{this.functions.popupSetAsDismissed.call(this)})})},this.onSectionSelect=function(){this.popup.open()},this.functions={popupSetAsDismissed:function(){window.localStorage.setItem(dismissedStorageKey,new Date().getTime())}},this.onSectionUnload=function(){this.$container.off(this.namespace)}},cc.sections.push({name:"newsletter-popup",section:theme.Popup}),theme.StoreAvailability=function(container){const loadingClass="store-availability-loading",initClass="store-availability-initialized",storageKey="cc-location";this.onSectionLoad=function(container2){this.namespace=theme.namespaceFromSection(container2),this.$container=$(container2),this.productId=this.$container.data("store-availability-container"),this.sectionUrl=this.$container.data("section-url"),this.$modal,this.$container.addClass(initClass),this.transitionDurationMS=parseFloat(getComputedStyle(container2).transitionDuration)*1e3,this.removeFixedHeightTimeout=-1,$(window).on(`cc-variant-updated${this.namespace}${this.productId}`,(e,args)=>{args.product.id===this.productId&&this.functions.updateContent.bind(this)(args.variant?args.variant.id:null,args.product.title,this.$container.data("has-only-default-variant"),args.variant&&typeof args.variant.available<"u")}),this.$container.data("single-variant-id")&&this.functions.updateContent.bind(this)(this.$container.data("single-variant-id"),this.$container.data("single-variant-product-title"),this.$container.data("has-only-default-variant"),this.$container.data("single-variant-product-available"))},this.onSectionUnload=function(){$(window).off(`cc-variant-updated${this.namespace}${this.productId}`),this.$container.off("click"),this.$modal&&this.$modal.off("click")},this.functions={getUserLocation:function(){return new Promise((resolve,reject)=>{let storedCoords;sessionStorage[storageKey]&&(storedCoords=JSON.parse(sessionStorage[storageKey])),storedCoords?resolve(storedCoords):navigator.geolocation?navigator.geolocation.getCurrentPosition(function(position){const coords={latitude:position.coords.latitude,longitude:position.coords.longitude};fetch("/localization.json",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(coords)}),sessionStorage[storageKey]=JSON.stringify(coords),resolve(coords)},function(){resolve(!1)},{maximumAge:36e5,timeout:5e3}):resolve(!1)})},getAvailableStores:function(variantId,cb){return $.get(this.sectionUrl.replace("VARIANT_ID",variantId),cb)}
4,calculateDistance:function(coords1,coords2,unitSystem){var dtor=Math.PI/180,radius=unitSystem==="metric"?6378.14:3959,rlat1=coords1.latitude*dtor,rlong1=coords1.longitude*dtor,rlat2=coords2.latitude*dtor,rlong2=coords2.longitude*dtor,dlon=rlong1-rlong2,dlat=rlat1-rlat2,a=Math.pow(Math.sin(dlat/2),2)+Math.cos(rlat1)*Math.cos(rlat2)*Math.pow(Math.sin(dlon/2),2),c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return radius*c},updateLocationDistances:function(coords){const unitSystem=this.$modal.find("[data-unit-system]").data("unit-system"),self=this;this.$modal.find('[data-distance="false"]').each(function(){const thisCoords={latitude:parseFloat($(this).data("latitude")),longitude:parseFloat($(this).data("longitude"))};if(thisCoords.latitude&&thisCoords.longitude){const distance=self.functions.calculateDistance(coords,thisCoords,unitSystem).toFixed(1);$(this).html(distance),setTimeout(()=>{$(this).closest(".store-availability-list__location__distance").addClass("-in")},0)}$(this).attr("data-distance","true")})},updateContent:function(variantId,productTitle,isSingleDefaultVariant,isVariantAvailable){this.$container.off("click","[data-store-availability-modal-open]"),this.$container.off("click"+this.namespace,".cc-popup-close, .cc-popup-background"),$(".store-availabilities-modal").remove(),isVariantAvailable?(this.$container.addClass(loadingClass),this.transitionDurationMS>0&&this.$container.css("height",this.$container.outerHeight()+"px")):(this.$container.addClass(loadingClass),this.transitionDurationMS>0&&this.$container.css("height","0px")),isVariantAvailable&&this.functions.getAvailableStores.call(this,variantId,response=>{if(response.trim().length>0&&!response.includes("NO_PICKUP")){this.$container.html(response),this.$container.html(this.$container.children().first().html()),this.$container.find("[data-store-availability-modal-product-title]").html(productTitle),isSingleDefaultVariant&&this.$container.find(".store-availabilities-modal__variant-title").remove(),this.$container.find(".cc-popup").appendTo("body"),this.$modal=$("body").find(".store-availabilities-modal");const popup=new ccPopup(this.$modal,this.namespace);if(this.$container.on("click","[data-store-availability-modal-open]",()=>(popup.open(),this.functions.getUserLocation().then(coords=>{coords&&this.$modal.find('[data-distance="false"]').length&&this.functions.getAvailableStores.call(this,variantId,response2=>{this.$modal.find(".store-availabilities-list").html($(response2).find(".store-availabilities-list").html()),this.functions.updateLocationDistances.bind(this)(coords)})}),!1)),this.$modal.on("click"+this.namespace,".cc-popup-close, .cc-popup-background",()=>{popup.close()}),this.$container.removeClass(loadingClass),this.transitionDurationMS>0){let newHeight=this.$container.find(".store-availability-container").outerHeight();this.$container.css("height",newHeight>0?newHeight+"px":""),clearTimeout(this.removeFixedHeightTimeout),this.removeFixedHeightTimeout=setTimeout(()=>{this.$container.css("height","")},this.transitionDurationMS)}}})}},this.onSectionLoad(container)},cc.sections.push({name:"store-availability",section:theme.StoreAvailability});try{theme.shopifyFeatures=JSON.parse(document.documentElement.querySelector("#shopify-features").textContent)}catch{theme.shopifyFeatures={}}slate.a11y={pageLinkFocus:function($element){var focusClass="js-focus-hidden";$element.first().attr("tabIndex","-1").focus().addClass(focusClass).one("blur",callback);function callback(){$element.first().removeClass(focusClass).removeAttr("tabindex")}},focusHash:function(){var hash=window.location.hash;hash&&document.getElementById(hash.slice(1))&&this.pageLinkFocus($(hash))},bindInPageLinks:function(){$("a[href*=#]").on("click",function(evt){this.pageLinkFocus($(evt.currentTarget.hash))}.bind(this))},trapFocus:function(options){var eventName=options.namespace?"focusin."+options.namespace:"focusin";options.$elementToFocus||(options.$elementToFocus=options.$container),options.$container.attr("tabindex","-1"),options.$elementToFocus.focus(),$(document).on(eventName,function(evt){options.$container[0]!==evt.target&&!
4options.$container.has(evt.target).length&&options.$container.focus()})},removeTrapFocus:function(options){var eventName=options.namespace?"focusin."+options.namespace:"focusin";options.$container&&options.$container.length&&options.$container.removeAttr("tabindex"),$(document).off(eventName)}},slate.cart={cookiesEnabled:function(){var cookieEnabled=navigator.cookieEnabled;return cookieEnabled||(document.cookie="testcookie",cookieEnabled=document.cookie.indexOf("testcookie")!==-1),cookieEnabled}},slate.utils={findInstance:function(array,key,value){for(var i=0;i<array.length;i++)if(array[i][key]===value)return array[i]},removeInstance:function(array,key,value){for(var i=array.length;i--;)if(array[i][key]===value){array.splice(i,1);break}return array},compact:function(array){for(var index=-1,length=array==null?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];value&&(result[resIndex++]=value)}return result},defaultTo:function(value,defaultValue){return value==null||value!==value?defaultValue:value}},slate.rte={wrapTable:function(options){var tableWrapperClass=typeof options.tableWrapperClass>"u"?"":options.tableWrapperClass;options.$tables.wrap('<div class="'+tableWrapperClass+'"></div>')},wrapIframe:function(options){var iframeWrapperClass=typeof options.iframeWrapperClass>"u"?"":options.iframeWrapperClass;options.$iframes.each(function(){$(this).wrap('<div class="'+iframeWrapperClass+'"></div>'),this.src=this.src})}},slate.Image=(function(){function preload(images,size){typeof images=="string"&&(images=[images]);for(var i=0;i<images.length;i++){var image=images[i];this.loadImage(this.getSizedImageUrl(image,size))}}function loadImage(path){new Image().src=path}function imageSize(src){var match=src.match(/.+_((?:pico|icon|thumb|small|compact|medium|large|grande)|\d{1,4}x\d{0,4}|x\d{1,4})[_\.@]/);return match?match[1]:null}function getSizedImageUrl(src,size){if(size===null)return src;if(size==="master")return this.removeProtocol(src);var match=src.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif|webp|heic)(\?v=\d+)?$/i);if(match){var prefix=src.split(match[0]),suffix=match[0];return this.removeProtocol(prefix[0]+"_"+size+suffix)}else return null}function removeProtocol(path){return path.replace(/http(s)?:/,"")}return{preload,loadImage,imageSize,getSizedImageUrl,removeProtocol}})(),slate.Variants=(function(){function Variants(options){this.$container=options.$container,this.product=options.product,this.singleOptionSelector=options.singleOptionSelector,this.originalSelectorId=options.originalSelectorId,this.secondaryIdSelectors=options.secondaryIdSelectors,this.enableHistoryState=options.enableHistoryState,this.currentVariant=this._getVariantFromOptions(),this._updateQtySelector(this.currentVariant),$(this.singleOptionSelector,this.$container).on("change",this._onSelectChange.bind(this))}return Variants.prototype=$.extend({},Variants.prototype,{_getCurrentOptions:function(){return $.map($(this.singleOptionSelector,this.$container),function(element){const type=element.dataset.selectorType,currentOption={};if(type==="listed"){const selectedOption=element.querySelector("input:checked");return selectedOption?(currentOption.value=selectedOption.value,currentOption.index=element.dataset.index,currentOption):!1}else{const selectedOption=element.querySelector('[aria-selected="true"]');return selectedOption?(currentOption.value=selectedOption.dataset.value,currentOption.index=element.dataset.index,currentOption):!1}})},_getVariantFromOptions:function(){var selectedValues=this._getCurrentOptions(),variants=this.product.variants,found=!1;
4return variants.forEach(function(variant){var satisfied=!0;selectedValues.forEach(function(option){satisfied&&(satisfied=option.value===variant[option.index])}),satisfied&&(found=variant)}),found||null},_getVariantOptionElement:function(variant){return this.$container.find('select[name="id"] option[value="'+variant.id+'"]')},_onSelectChange:function(){var variant=this._getVariantFromOptions();this.$container.trigger({type:"variantChange",variant}),this._updateSecondarySelects(variant),this._updateInventoryNotice(variant),this._updateQtySelector(variant),variant&&($(window).trigger("cc-variant-updated",{variant,product:this.product}),this._updateMasterSelect(variant),this._updateImages(variant),this._updatePrice(variant),this.currentVariant=variant,this.enableHistoryState&&this._updateHistoryState(variant))},_updateImages:function(variant){var variantMedia=variant.featured_media||{},currentVariantMedia=this.currentVariant.featured_media||{};!variant.featured_media||variantMedia.id===currentVariantMedia.id||this.$container.trigger({type:"variantImageChange",variant})},_updatePrice:function(variant){var hasChanged=!1;(variant.price!==this.currentVariant.price||variant.compare_at_price!==this.currentVariant.compare_at_price||variant.unit_price_measurement!==this.currentVariant.unit_price_measurement||variant.unit_price_measurement&&(variant.unit_price!==this.currentVariant.unit_price||variant.unit_price_measurement.reference_value!==this.currentVariant.unit_price_measurement.reference_value||variant.unit_price_measurement.reference_unit!==this.currentVariant.unit_price_measurement.reference_unit))&&(hasChanged=!0),hasChanged&&this.$container.trigger({type:"variantPriceChange",variant})},_updateInventoryNotice:function(variant){const invNotice=document.querySelector(".product-inventory");if(!invNotice)return;const hideInventoryNotice=()=>{invNotice.classList.remove("product-inventory--low"),invNotice.classList.add("product-inventory--none"),invNotice.innerHTML=""};if(!variant){hideInventoryNotice();return}const variantEl=this._getVariantOptionElement(variant);if(variantEl[0].dataset.stock==="out")hideInventoryNotice();else{const{showNotice,showCount}=invNotice.dataset,invCount=Number(variantEl[0].dataset.inventory),invLow=invCount&&invCount<=Number(invNotice.dataset.threshold);if(showNotice==="low"&&!invLow){hideInventoryNotice();return}const invStatus=invLow?theme.strings.low_stock:theme.strings.in_stock;let invText="";(showCount==="always"||showCount==="low"&&invLow)&&(invCount===1?invText=` - ${theme.strings.single_unit_available}`:invText=` - ${theme.strings.x_units_available.replace("[[ quantity ]]",invCount)}`),invNotice.classList.remove("product-inventory--none"),invNotice.classList.toggle("product-inventory--low",invLow),invNotice.innerHTML=`<span class="product-inventory__status">${invStatus}</span>${invText}`}}
4,_updateQtySelector:function(variant){const qtySelector=this.$container[0].querySelector(".qty-wrapper");if(!qtySelector)return;if(!variant||!variant.available){qtySelector.classList.add("is-disabled");return}const variantEl=this._getVariantOptionElement(variant),invCount=Number(variantEl[0].dataset.inventory),qytOptionEls=qtySelector.querySelectorAll(".cc-select__option"),dynamicOpts=theme.settings.dynamicQtyOpts&&invCount&&invCount>0&&invCount<10;qytOptionEls.forEach((el,index)=>{el.hidden=dynamicOpts&&index+1>invCount}),qtySelector.classList.remove("is-disabled")},_updateHistoryState:function(variant){if(!(!history.replaceState||!variant)){var newurl=window.location.protocol+"//"+window.location.host+window.location.pathname+"?variant="+variant.id;window.history.replaceState({path:newurl},"",newurl)}},_updateMasterSelect:function(variant){const select=$(this.originalSelectorId,this.$container)[0];select&&(select.value=variant.id,select.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1})))},_updateSecondarySelects:function(variant){$(this.secondaryIdSelectors,this.$container).each(function(){this.value=variant?variant.id:null,this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1}))})}}),Variants})();const CCFetchedContent=class extends HTMLElement{connectedCallback(){fetch(this.dataset.url).then(response=>{if(!response.ok)throw new Error(`HTTP error! Status: ${response.status}`);return response.text()}).then(response=>{let frag=document.createDocumentFragment(),fetchedContent=document.createElement("div");frag.appendChild(fetchedContent),fetchedContent.innerHTML=response;let replacementContent=fetchedContent.querySelector(`[data-id="${CSS.escape(this.dataset.id)}"]`);replacementContent&&(this.innerHTML=replacementContent.innerHTML,this.hasAttribute("contains-product-blocks")&&$(".js-content-products-slider .grid",this).each(function(index,value){let section=value.closest("[data-section-type]");theme.peekCarousel.init($(section),$(value),section.dataset.sectionId,function(){return!0},!1,{infinite:!1,slidesToShow:2,slidesToScroll:1,swipeToSlide:!0,dots:!1,prevArrow:$(value).closest(".content-products").find(".content-products-controls .prev"),nextArrow:$(value).closest(".content-products").find(".content-products-controls .next"),responsive:[{breakpoint:960,settings:{slidesToShow:1}}]})}))})}};window.customElements.define("cc-fetched-content",CCFetchedContent),theme.storageAvailable=function(type){try{var storage=window[type],x="__storage_test__";return storage.setItem(x,x),storage.removeItem(x),!0}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&storage.length!==0}},theme.variants={selectors:{originalSelectorId:"[data-product-select]",secondaryIdSelectors:"[data-product-secondary-select]",priceWrapper:"[data-price-wrapper]",productPrice:"[data-product-price]",addToCart:"[data-add-to-cart]",addToCartText:"[data-add-to-cart-text]",comparePrice:"[data-compare-price]",comparePriceText:"[data-compare-text]",unitPrice:".unit-price",preorder:"[data-preorder]"},getBaseUnit:function(variant){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},updateAddToCartState:function(evt){var variant=evt.variant;if(variant)$(theme.variants.selectors.priceWrapper,this.$container).removeClass("hide");else{$(theme.variants.selectors.addToCart,this.$container).prop("disabled",!0),$(theme.variants.selectors.addToCartText,this.$container).html(theme.strings.unavailable),$(theme.variants.selectors.priceWrapper,this.$container).addClass("hide");return}variant.available?($(theme.variants.selectors.addToCart,this.$container).prop("disabled",!1),$("form",this.$container).removeClass("variant--unavailable"),$(theme.variants.selectors.preorder,this.$container).length?$(theme.variants.selectors.addToCartText,this.$container).html(theme.strings.productPreorder):$(theme.variants.selectors.addToCartText,this.$container).html(theme.strings.addToCart)):($(theme.variants.selectors.addToCart,this.$container).prop("disabled",!0),$(theme.variants.selectors.addToCartText,this.$container).html(theme.strings.soldOut),$("form",this.$container).addClass("variant--unavailable"));var $backorderContainer=$(".backorder",this.$container);if($backorderContainer.length)if(variant&&variant.available){var $option=$(theme.variants.selectors.originalSelectorId+' option[value="'+variant.id+'"]',this.$container);variant.inventory_management&&$option.data("stock")=="out"?($backorderContainer.find(".backorder__variant").html(this.productSingleObject.title+(variant.title.indexOf("Default")>=0?"":" - "+variant.title)),$backorderContainer.show()):$backorderContainer.hide()}else $backorderContainer.hide()},updateProductPrices:function(evt){var variant=evt.variant,$comparePrice=$(theme.variants.selectors.comparePrice,this.$container),$compareEls=$comparePrice.add(theme.variants.selectors.comparePriceText,this.$container),$price=$(theme.variants.selectors.productPrice,this.$container),$unitPrice=$(theme.variants.selectors.unitPrice,this.$container),isInDetail=$price.is("[data-product-detail-price]");if($price.html('<span class="theme-money'+(isInDetail?" large-title":"")+'">'+theme.Shopify.formatMoney(variant.price,theme.moneyFormatWithCodeForProductsPreference)+"</span>"),variant.compare_at_price>variant.price?($price.addClass("product-price__reduced"),$comparePrice.html('<span class="product-price__compare theme-money">'+theme.Shopify.formatMoney(variant.compare_at_price,theme.moneyFormat)+"</span>"),$compareEls.removeClass("hide")):($price.removeClass("product-price__reduced"),$comparePrice.html(""),$compareEls.addClass("hide")),variant.unit_price_measurement){var $newUnitPriceArea=$('<div class="unit-price small-text">');$('<span class="unit-price__price theme-money">').html(theme.Shopify.formatMoney(variant.unit_price,theme.moneyFormat)).appendTo($newUnitPriceArea),$('<span class="unit-price__separator">').html(theme.strings.unitPriceSeparator).appendTo($newUnitPriceArea),$('<span class="unit-price__unit">').html(theme.variants.getBaseUnit(variant)).appendTo($newUnitPriceArea),$unitPrice.length?$unitPrice.replaceWith($newUnitPriceArea):$(theme.variants.selectors.priceWrapper,this.$container).append($newUnitPriceArea)}else $unitPrice.remove()}},theme.initAjaxAddToCartForm=function($form_param){$form_param.on("submit",function(evt){evt.preventDefault();var $form=$(this);$form.addClass("add-in-progress").find(":submit").attr("disabled","disabled").each(function(){var contentFunc=$(this).is("button")?"html":"val";$(this).data("previous-value",$(this)[contentFunc]())[contentFunc](theme.strings.addingToCart)}),$.post(theme.routes.cart_add_url+".js",$form.serialize(),function(itemData){var $btn=$form.find(":submit").each(function(){var $btn2=$(this),contentFunc=$(this).is("button")?"html":"val";$btn2[contentFunc](theme.strings.addedToCart),setTimeout(function(){$btn2.removeAttr("disabled")[contentFunc]($btn2.data("previous-value")),$form.removeClass("add-in-progress")},1e3)}).first();if(theme.settings.onAddToCart==="add_and_redirect"){window.location=theme.routes.cart_url;return}$.get(theme.routes.search_url,function(data){for(var selectors=[".page-header .header-cart",".docked-navigation-container .header-cart"],$parsed=$($.parseHTML("<div>"+data+"</div>")),i2=0;i2<selectors.length;i2++){var cartSummarySelector=selectors[i2],$newCartObj=$parsed.find(cartSummarySelector).clone(),$currCart=$(cartSummarySelector);$currCart.replaceWith($newCartObj)}}),$.colorbox.close(),theme.productData=theme.productData||{},theme.productData[itemData.product_id]||(theme.productData[itemData.product_id]=JSON.parse(document.querySelector(".ProductJson-"+itemData.product_id).innerHTML));for(var productVariant=null,i=0;i<theme.productData[itemData.product_id].variants.length;i++){var variant=theme.productData[itemData.product_id].variants[i];variant.id==itemData.variant_id&&(productVariant=variant)}let productLineItems={};const formData=new FormData($form[0]);for(const[key,value]of formData)if(key.indexOf("properties[")===0&&value){const name=key.split("[")[1].split("]")[0];name[0]!=="_"&&(productLineItems[name]=value)}
4var productPrice="";itemData.original_line_price>itemData.final_line_price?(productPrice+='<span class="cart-summary__price-reduced product-price__reduced theme-money">'+theme.Shopify.formatMoney(itemData.final_line_price,theme.moneyFormat)+"</span>",productPrice+='<span class="cart-summary__price-compare product-price__compare theme-money">'+theme.Shopify.formatMoney(itemData.original_line_price,theme.moneyFormat)+"</span>"):productPrice+='<span class="theme-money">'+theme.Shopify.formatMoney(itemData.final_line_price,theme.moneyFormat)+"</span>",itemData.unit_price&&(productPrice+='<span class="cart-summary__unit-price unit-price theme-money">'+theme.Shopify.formatMoney(itemData.unit_price,theme.moneyFormat)+theme.strings.unitPriceSeparator+itemData.unit_price_measurement.reference_unit+"</span>");var productQty="";itemData.quantity>1&&(productQty=' <span class="cart-summary__quantity">'+itemData.quantity+"</span>");var productPreorderHTML="";if($form.parent()[0].hasAttribute("data-preorder")&&(productPreorderHTML=' <span class="cart-summary__preorder">'+theme.strings.productPreorder+"</span>"),itemData.line_level_discount_allocations&&itemData.line_level_discount_allocations.length>0){productPrice+='<ul class="cart-discount-list small-text">';for(var i=0;i<itemData.line_level_discount_allocations.length;i++){var discount_allocation=itemData.line_level_discount_allocations[i];productPrice+=['<li class="cart-discount">','<div class="cart-discount__label">',discount_allocation.discount_application.title.replace(/</g,"<").replace(/>/g,">"),"</div>",'<div class="cart-discount__amount theme-money">',theme.Shopify.formatMoney(discount_allocation.amount,theme.moneyFormat),"</div>","</li>"].join("")}productPrice+="</ul>"}var sellingPlanHTML="";itemData.selling_plan_allocation&&itemData.selling_plan_allocation.selling_plan.name&&(sellingPlanHTML=['<div class="cart-summary__selling-plan ">',itemData.selling_plan_allocation.selling_plan.name,"</div>"].join(""));var productVariantsHTML="";if(productVariant){var optionNames=theme.productData[itemData.product_id].options;productVariantsHTML='<div class="cart-summary__product__variants">';for(var i=0;i<productVariant.options.length;i++)productVariant.options[i].indexOf("Default Title")<0&&(productVariantsHTML+='<div class="cart-summary__variant">',productVariantsHTML+='<span class="cart-summary__variant-label">'+optionNames[i]+":</span> ",productVariantsHTML+='<span class="cart-summary__variant-value">'+productVariant.options[i]+"</span>",productVariantsHTML+="</div>");productVariantsHTML+="</div>"}var productLineItemsHTML="";if(Object.keys(productLineItems).length>0){productLineItemsHTML='<div class="cart-summary__product__line-items">';const tempSpan=document.createElement("span");for(const key of Object.keys(productLineItems))tempSpan.innerText=productLineItems[key],productLineItemsHTML+=`<div>${key}: ${tempSpan.innerHTML}</div>`;productLineItemsHTML+="</div>"}var productImage;productVariant.featured_media?productImage=slate.Image.getSizedImageUrl(productVariant.featured_media.preview_image.src,"200x"):theme.productData[itemData.product_id].media&&theme.productData[itemData.product_id].media.length>0&&(productImage=slate.Image.getSizedImageUrl(theme.productData[itemData.product_id].media[0].preview_image.src,"200x")),$.getJSON(theme.routes.cart_url+".js",function(cartData){var $template=$(['<div class="added-notice global-border-radius added-notice--pre-reveal">','<div class="added-notice__header">','<span class="added-notice__title">',theme.strings.addedToCartPopupTitle,"</span>",'<a class="added-notice__close feather-icon" href="#" aria-label="',theme.strings.close,'">',theme.icons.close,"</a>","</div>",'<div class="cart-summary global-border-radius">','<div class="cart-summary__product">','<div class="cart-summary__product-image"><img class="global-border-radius" src="',productImage,'" role="presentation" alt=""></div>','<div class="cart-summary__product__description">','<div class="cart-summary__product-title">',theme.productData[itemData.product_id].title,productQty,"</div>",productVariantsHTML,productLineItemsHTML,productPreorderHTML,sellingPlanHTML,'<div class="cart-summary__price">',productPrice,"</div>","</div>","</div>","</div>",'<div class="cart-summary__footer">','<div class="cart-summary__total-quantity-row">',"<span>",theme.strings.addedToCartPopupItems,"</span>","<span>",cartData.item_count,"</span>","</div>",'<div class="cart-summary__total-price-row large-text">',"<span>",theme.strings.addedToCartPopupSubtotal,"</span>",'<span class="theme-money">',theme.Shopify.formatMoney(cartData.total_price,theme.moneyFormatWithCodeForCartPreference),"</sp
4an>","</div>",'<a href="',theme.routes.cart_url,'" class="btn btn--primary btn--small btn--fullwidth cart-summary__button">',theme.strings.addedToCartPopupGoToCart,"</a>","</div>","</div>"].join(""));$template.appendTo("body"),setTimeout(function(){$template.removeClass("added-notice--pre-reveal")},10),theme.addedToCartNoticeHideTimeoutId=setTimeout(function(){$template.find(".added-notice__close").trigger("click")},5e3)})},"json").fail(function(data){$form.removeClass("add-in-progress");var $firstBtn=$form.find(":submit").removeAttr("disabled").each(function(){var $btn=$(this),contentFunc=$btn.is("button")?"html":"val";$btn[contentFunc]($btn.data("previous-value"))}).first();if(typeof data<"u"&&data.responseJSON){var errorMessage=typeof data.responseJSON.description=="string"?data.responseJSON.description:data.responseJSON.message;data.responseJSON.errors&&typeof data.responseJSON.errors=="object"&&(errorMessage=Object.entries(data.responseJSON.errors).map(item=>item[1].join(", ")).join("<br>")),theme.showQuickPopup(errorMessage,$firstBtn)}else $form.off("submit").submit()})}),$(document).off(".ajaxAddToCart"),$(document).on("click.ajaxAddToCart",".added-notice__close",function(){var $template=$(this).closest(".added-notice").addClass("added-notice--pre-destroy");return setTimeout(function(){$template.remove()},500),!1}),$(document).on("mouseenter.ajaxAddToCart",".header-cart",function(){clearTimeout(theme.addedToCartNoticeHideTimeoutId),$(".added-notice__close").trigger("click")})},theme.unloadAjaxAddToCartForm=function($form){$form.off("submit")},$(function(){var overlapGutter=10,overlapGutterFuzzed=overlapGutter+1,GRAVITY_LEFT=0,GRAVITY_CENTRE=1,GRAVITY_RIGHT=2;function oaElementToOriginalRectangle($el){var t={left:$el.offset().left-parseFloat($el.css("margin-left")),top:$el.offset().top-parseFloat($el.css("margin-top")),width:$el.outerWidth(),height:$el.outerHeight()};return t.right=t.left+t.width,t.bottom=t.top+t.height,$el.hasClass("avoid-overlaps__item--gravity-left")?t.gravity=GRAVITY_LEFT:$el.hasClass("avoid-overlaps__item--gravity-right")?t.gravity=GRAVITY_RIGHT:t.gravity=GRAVITY_CENTRE,t}function oaSetOffsetFromCentre(item){item.newRect.gravity==GRAVITY_LEFT||(item.newRect.gravity==GRAVITY_RIGHT?(item.newRect.right=item.newRect.left,item.newRect.left=item.newRect.right-item.newRect.width):(item.newRect.left=item.newRect.left-item.newRect.width/2,item.newRect.right=item.newRect.left+item.newRect.width)),item.newRect.top=item.newRect.top-item.newRect.height/2,item.newRect.bottom=item.newRect.top+item.newRect.height}function oaRectIsInsideBoundary(rect,container){return rect.left>=container.left+overlapGutter&&rect.top>=container.top+overlapGutter&&rect.right<=container.right-overlapGutter&&rect.bottom<=container.bottom-overlapGutter}function oaEnforceBoundaryConstraint(item,containerRect){item.newRect.left<containerRect.left+overlapGutter&&(item.newRect.left=containerRect.left+overlapGutterFuzzed,item.newRect.right=item.newRect.left+item.newRect.width),item.newRect.top<containerRect.top+overlapGutter&&(item.newRect.top=containerRect.top+overlapGutterFuzzed,item.newRect.bottom=item.newRect.top+item.newRect.height),item.newRect.right>containerRect.right-overlapGutter&&(item.newRect.right=containerRect.right-overlapGutterFuzzed,item.newRect.left=item.newRect.right-item.newRect.width),item.newRect.bottom>containerRect.bottom-overlapGutter&&(item.newRect.bottom=containerRect.bottom-overlapGutterFuzzed,item.newRect.top=item.newRect.bottom-item.newRect.height)}function oaRectanglesOverlap(rect1,rect2){return!(rect1.right<rect2.left||rect1.left>rect2.right||rect1.bottom<rect2.top||rect1.top>rect2.bottom)}function oaRectanglesOverlapWithGutter(rect1,rect2){return!(rect1.right+overlapGutter<rect2.left||rect1.left-overlapGutter>rect2.right||rect1.bottom+overlapGutter<rect2.top||rect1.top-overlapGutter>rect2.bottom)}function oaGetSortedVectorsToAttempt(rect1,rect2){var deltaX=rect2.left+(rect2.right-rect2.left)/2-(rect1.left+(rect1.right-rect1.left)/2),deltaY=rect2.top+(rect2.bottom-rect2.top)/2-(rect1.top+(rect1.bottom-rect1.top)/2);return Math.abs(deltaX)>Math.abs(deltaY)?deltaX>0?[1,0,2,3]:[3,0,2,1]:deltaY>0?[2,1,3,0]:[0,1,3,2]}function oaAttemptReposition(toMove,vector,movingAwayFrom,containerRect,allItems){var newRect=$.extend({},toMove.newRect);switch(vector){case 0:newRect.bottom=movingAwayFrom.newRect.top-overlapGutterFuzzed,newRect.top=newRect.bottom-newRect.height;break;case 1:newRect.left=movingAwayFrom.newRect.right+overlapGutterFuzzed,newRect.right=newRect.left+newRect.width;break;case 2:newRect.top=movingAwayFrom.newRect.bottom+overlapGutterFuzzed,newRect.bottom=newRect.top+new
4Rect.height;break;case 3:newRect.right=movingAwayFrom.newRect.left-overlapGutterFuzzed,newRect.left=newRect.right-newRect.width;break}for(var isInsideBoundary=oaRectIsInsideBoundary(newRect,containerRect),doesOverlap=!1,i=0;i<allItems.length;i++){var item=allItems[i];item.el[0]!=toMove.el[0]&&oaRectanglesOverlap(newRect,item.newRect)&&(doesOverlap=!0)}return isInsideBoundary&&!doesOverlap?(toMove.newRect=newRect,!0):!1}theme.checkOverlaps=function(){$(".avoid-overlaps").each(function(){$(this).hasClass("avoid-overlaps--processed")||($(this).addClass("avoid-overlaps--processed"),checkOverlapsResizeObserver.observe(this));var $container=$(this),$mobileContainer=$(".avoid-overlaps__mobile-container",this),containerRect=null;$mobileContainer.length&&$mobileContainer.css("position")=="relative"?containerRect=oaElementToOriginalRectangle($mobileContainer):containerRect=oaElementToOriginalRectangle($container);var $candidates=$(this).find(".avoid-overlaps__item"),itemsToProcess=[],itemsThatCanBeMoved=[],itemsThatCanBeMoveALot=[];$candidates.each(function(){var item2={el:$(this),newRect:oaElementToOriginalRectangle($(this)),oldRect:oaElementToOriginalRectangle($(this)),overlaps:!1};itemsToProcess.push(item2),$(this).hasClass("overlay")||itemsThatCanBeMoveALot.push(item2),$(this).css("position")=="absolute"&&!$(this).hasClass("overlay--bottom-wide")&&!$(this).hasClass("overlay--low-wide")&&itemsThatCanBeMoved.push(item2)});for(var i=0;i<itemsThatCanBeMoved.length;i++){var candidate=itemsThatCanBeMoved[i];oaSetOffsetFromCentre(candidate),oaEnforceBoundaryConstraint(candidate,containerRect)}for(var i=0;i<itemsToProcess.length;i++)for(var candidate=itemsToProcess[i],j=0;j<itemsThatCanBeMoveALot.length;j++){var checking=itemsThatCanBeMoveALot[j];if(checking.el[0]!=candidate.el[0])for(var vectorPreference=oaGetSortedVectorsToAttempt(candidate.newRect,checking.newRect);vectorPreference.length>0&&oaRectanglesOverlapWithGutter(candidate.newRect,checking.newRect);){var moved=oaAttemptReposition(checking,vectorPreference.shift(),candidate,containerRect,itemsToProcess);checking.overlaps=!moved}}for(var j=0;j<itemsToProcess.length;j++){var item=itemsToProcess[j],deltaX=item.newRect.left-item.oldRect.left,deltaY=item.newRect.top-item.oldRect.top;item.el.css({marginLeft:deltaX!=0?deltaX:"",marginTop:deltaY!=0?deltaY:""}),item.el.toggleClass("is-overlapping",item.overlaps)}});const lastSectionIsFullWidthScrollingBanner=document.querySelector("main .shopify-section:last-child .scrolling-banner--full-width"),footerGroup=document.querySelector(".footer-group");footerGroup&&(footerGroup.childElementCount===0||lastSectionIsFullWidthScrollingBanner)&&footerGroup.classList.remove("footer-group--shift-up")};let checkOverlapsResizeObserver=new ResizeObserver(theme.debounce(theme.checkOverlaps,100));theme.checkOverlaps(),$(document).on("shopify:section:load",theme.checkOverlaps),$(document).on("shopify:section:unload",theme.checkOverlaps),$(document).on("shopify:section:reorder",theme.checkOverlaps),$(document).on("shopify:section:select",theme.checkOverlaps),$(document).on("shopify:section:deselect",theme.checkOverlaps)}),theme.assessLoadedRTEImage=function(el){var rteWidth=$(el).closest(".rte").width();if($(el)[0].naturalWidth>rteWidth){var para=$(el).parentsUntil(".rte").filter("p");para.length>0?para.addClass("expanded-width"):$(el).wrap('<p class="expanded-width"></p>')}else $(el).closest(".expanded-width").removeClass("expanded-width")},theme.assessRTEImagesOnLoad=function(container){$(".rte--expanded-images img:not(.exp-loaded)",container).each(function(){var originalImage=this,img=new Image;$(img).on("load.rteExpandedImage",function(){$(originalImage).addClass("exp-loaded"),theme.assessLoadedRTEImage(originalImage)}),img.src=this.src,(img.complete||img.readyState===4)&&($(img).off("load.rteExpandedImage"),$(originalImage).addClass("exp-loaded"),theme.assessLoadedRTEImage(originalImage))})},theme.assessRTEImagesOnLoad(),$(window).on("debouncedresize",function(){$(".rte--expanded-images img.exp-loaded").each(function(){theme.assessLoadedRTEImage(this)})}),theme.recentProductCacheExpiry=1e3*60*10,theme.recentProductHistoryCap=12,theme.recentProductsStorageKey="theme.recent_products_v3",theme.addRecentProduct=function(recentArr,index,$container,showHover,showVendor){var item=recentArr[index],_recentArr=recentArr,_showHover=showHover,_showVendor=showVendor,_$container=$container,$itemContainer=$('<div class="product-block product-block--recent-unloaded grid__item one-sixth medium--one-quarter small-down--one-whole">'),currentTimestamp=new Date().getTime();item.timestamp&&item.timestamp>currentTimestamp-theme.recentProductCacheExpiry?$itemContainer.append(theme.buildRecentProduct(item,_showHover,_showVendor)).removeClass("product-block--recent-unloaded"):$.getJSON(item.url+".js",function(data){item.title=data.title,item.image=data.media&&data.media.length?data.media[0].preview_image.src:"",item.timestamp=currentTimestamp,window.localStorage.setItem(theme.recentProductsStorageKey,JSON.stringify(_recentArr)),_$container.filter(".slick-initialized").slick("slickUnfilter"),$itemContainer.append(theme.buildRecentProduct(item,_showHover,_showVendor)).removeClass("product-block--recent-unloaded"),_$container.filter(".slick-initialized").slick("slickFilter",":not(.product-block--recent-unloaded)")}
4),$container.append($itemContainer),theme.assessRecentProductGrid($container)},theme.assessRecentProductGrid=function($container){var $items=$container.children(),toHideOnTablet=Math.max($items.length-4,0);if(toHideOnTablet>0){$items.slice(0,3).removeClass("medium--hide");for(var i=0;i<toHideOnTablet;i++)$($items[i]).addClass("medium--hide")}},theme.onRecentProductImageLoad=function(){},theme.buildRecentProduct=function(item,showHover,showVendor){var $item=$('<a class="recently-viewed-product plain-link">').attr({href:item.url,title:item.title}),$imageContWrapper=$('<div class="product-block__image-container">').appendTo($item),$imageCont=$('<div class="hover-images global-border-radius relative">').appendTo($imageContWrapper);return item.image&&$('<div class="image-one">').append($('<img role="presentation">').on("load",theme.onRecentProductImageLoad).attr({src:item.image,alt:item.title})).appendTo($imageCont),showHover&&item.image2&&($imageCont.addClass("hover-images--two"),$('<div class="image-two">').css("background-image","url("+item.image2+")").appendTo($imageCont)),item.available===!1?theme.settings.soldLabelEnabled&&$('<span class="product-label product-label--sold-out global-border-radius"></span>').html(theme.strings.soldOut).appendTo($imageCont):theme.settings.saleLabelEnabled&&item.compareAtPrice>item.price&&$('<span class="product-label product-label--on-sale global-border-radius"></span>').html(theme.strings.onSale).appendTo($imageCont),$('<div class="product-block__title small-text">').html(item.title).appendTo($item),showVendor&&$('<div class="product-block__vendor tiny-text">').html(item.vendor).appendTo($item),$item},theme.getRecentProducts=function(){var existingValue=window.localStorage.getItem(theme.recentProductsStorageKey);if(existingValue)try{return JSON.parse(existingValue)}catch{}return[]},theme.addToAndReturnRecentProducts=function(data){for(var existingArr=theme.getRecentProducts(),run=!0;run;){run=!1;for(var i=0;i<existingArr.length;i++)if(existingArr[i].handle==data.handle){existingArr.splice(i,1),run=!0;break}}for(data.timestamp=new Date().getTime(),existingArr.push(data);existingArr.length>theme.recentProductHistoryCap;)existingArr.shift();return window.localStorage.setItem(theme.recentProductsStorageKey,JSON.stringify(existingArr)),existingArr},theme.loadRecentlyViewed=function($container){theme.peekCarousel.init($container,$(".grid",$container),".recentlyViewed",function(){return $(window).width()<768}),$(".grid",$container).filter(".slick-initialized").slick("slickFilter",":not(.product-block--recent-unloaded)")},theme.unloadRecentlyViewed=function($container){theme.peekCarousel.destroy($container,$(".slick-initialized",$container),".recentlyViewed")},theme.ProductMedia=new function(){var _=this;_._setupShopifyXr=function(){if(!window.ShopifyXR){document.addEventListener("shopify_xr_initialized",_._setupShopifyXr.bind(this));return}window.ShopifyXR.addModels(JSON.parse($(this).html())),window.ShopifyXR.setupXRElements()},this.init=function(container,callbacks){var callbacks=callbacks||{},_container=container;$(container).on("mediaVisible",".product-media--video-loaded, .product-media--model-loaded",function(){$(window).width()>=768&&$(this).data("player").play(),$(this).hasClass("product-media--model")&&$(".view-in-space",_container).attr("data-shopify-model3d-id",$(this).data("model-id"))}),$(container).on("mediaHidden",".product-media--video-loaded, .product-media--model-loaded",function(){$(this).data("player").pause()}),callbacks.onVideoVisible&&$(container).on("mediaVisible",".product-media--video-loaded",callbacks.onVideoVisible),callbacks.onVideoHidden&&$(container).on("mediaHidden",".product-media--video-loaded",callbacks.onVideoHidden),$("model-viewer",container).each(function(){callbacks.onModelViewerPlay&&$(this).on("shopify_model_viewer_ui_toggle_play",callbacks.onModelViewerPlay),callbacks.onModelViewerPause&&$(this).on("shopify_model_viewer_ui_toggle_pause",callbacks.onModelViewerPause)}),$(container).find(".product-media--video").each(function(index){var enableLooping=$(this).data("enable-video-looping"),element=$(this).find("iframe, video")[0],$currentMedia=$(this);if(element.tagName==="VIDEO")window.Shopify.loadFeatures([{name:"video-u
4i",version:"1.0",onLoad:function(){var playerObj={playerType:"html5",element};playerObj.play=function(){this.plyr.play()}.bind(playerObj),playerObj.pause=function(){this.plyr.pause()}.bind(playerObj),playerObj.destroy=function(){this.plyr.destroy()}.bind(playerObj),playerObj.plyr=new Shopify.Plyr(element,{controls:["play","progress","mute","volume","play-large","fullscreen"],loop:{active:enableLooping},hideControlsOnPause:!0,iconUrl:"//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.svg",tooltips:{controls:!1,seek:!0}}),$(this).data("player",playerObj).addClass("product-media--video-loaded"),$(element).on("playing",function(){$(".product-media").not($currentMedia).trigger("mediaHidden"),$currentMedia.find(".plyr__controls").off(".themeMediaEventFix").on("keydown.themeMediaEventFix touchstart.themeMediaEventFix mousedown.themeMediaEventFix keydown.themeMediaEventFix",function(e){e.stopPropagation()}),callbacks.onPlyrPlay&&callbacks.onPlyrPlay(playerObj)}),$(element).on("pause ended",function(){$currentMedia.find(".plyr__controls").off(".themeMediaEventFix"),callbacks.onPlyrPause&&callbacks.onPlyrPause(playerObj)}),callbacks.onPlyrInit&&callbacks.onPlyrInit(playerObj)}.bind(this)}]),theme.loadStyleOnce("https://cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.css");else if(element.tagName==="IFRAME"&&/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(element.src)){var existingYTCB=window.onYouTubeIframeAPIReady,loadYoutubeVideo=function(){var playerObj={playerType:"youtube",element},videoId=$(this).data("video-id");playerObj.player=new YT.Player(element,{videoId,events:{onStateChange:function(event){event.data===YT.PlayerState.ENDED&&enableLooping&&event.target.seekTo(0),event.data===YT.PlayerState.PLAYING&&($(".product-media").not($currentMedia).trigger("mediaHidden"),callbacks.onYouTubePlay&&callbacks.onYouTubePlay(playerObj)),event.data===YT.PlayerState.PAUSED&&event.data===YT.PlayerState.ENDED&&callbacks.onYouTubePause&&callbacks.onYouTubePause(playerObj)}}}),playerObj.play=function(){this.player.playVideo()}.bind(playerObj),playerObj.pause=function(){this.player.pauseVideo()}.bind(playerObj),playerObj.destroy=function(){this.player.destroy()}.bind(playerObj),$(this).data("player",playerObj).addClass("product-media--video-loaded"),callbacks.onYouTubeInit&&callbacks.onYouTubeInit(playerObj)}.bind(this);window.YT&&window.YT.Player?loadYoutubeVideo():(window.onYouTubeIframeAPIReady=function(){existingYTCB&&existingYTCB(),loadYoutubeVideo()},theme.loadScriptOnce("https://www.youtube.com/iframe_api"))}}),$(container).on("mediaVisible mediaVisibleInitial",".product-media--model:not(.product-media--model-loaded):not(.product-media--model-loading)",function(e){var element=$(this).find("model-viewer")[0],$currentMedia=$(this),autoplay=e.type!="mediaVisibleInitial";$(this).addClass("product-media--model-loading"),theme.loadStyleOnce("https://cdn.shopify.com/shopifycloud/model-viewer-ui/assets/v1.0/model-viewer-ui.css"),window.Shopify.loadFeatures([{name:"model-viewer-ui",version:"1.0",onLoad:function(){$(this).data("player",new Shopify.ModelViewerUI(element)),$('<div class="theme-event-proxy">').on("mouseup",function(e2){e2.stopPropagation(),e2.preventDefault();var newEventTarget=$(e2.currentTarget).closest(".product-media")[0];newEventTarget.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}).appendTo($(this).find(".shopify-model-viewer-ui__controls-overlay")),$(this).find("model-viewer").on("shopify_model_viewer_ui_toggle_play",function(){$(this).closest(".product-media").on("touchstart.themeModelViewerFix mousedown.themeModelViewerFix keydown.themeModelViewerFix",function(e2){e2.stopPropagation()})}).on("shopify_model_viewer_ui_toggle_pause",function(){$(this).closest(".shopify-model-viewer-ui").off(".themeMediaEventFix")}),$(this).find("model-viewer").on("shopify_model_viewer_ui_toggle_play",function(){$(".product-media").not($currentMedia).trigger("mediaHidden")}),$(this).addClass("product-media--model-loaded").removeClass("product-media--model-loading"),callbacks.onModelViewerInit&&callbacks.onModelViewerInit(element),autoplay&&$(this).trigger("mediaVisible")}.bind(this)}])}),$(".model-json",container).length&&(window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0",onLoad:_._setupShopifyXr.bind($(".model-json",container))}]),$(document).on("shopify_xr_launch",function(){$(".product-media--video-loaded").each(function(){$(this).data("player").pause()})})),setTimeout(function(){$(".product-media:first",this).filter(".product-media--model").trigger("mediaVisibleInitial")}.bind(container),50)},this.destroy=function(container){$(document).off("shopify_xr_launch"),$(container).off("mediaVisible mediaVisibleInitial mediaHidden"),$(".product-media--video-loaded, .product-media--model-loaded",container).each(function(){$(this).data("player").destroy()}),$(".product-media--video video",container).off("playing pause ended"),$("model-viewer",container).off("shopify_model_viewer_ui_toggle_play shopify_model_viewer_ui_toggle_pause")}},theme.Header=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$nav=$(".site-nav",container),this.$navLinks=this.$nav.children(".site-nav__item:not(.site-nav__more-links)"),this.$navMoreLinksLink=$(".site-nav__more-links",this.$nav),this.$navMoreLinksContainer=$(".small-dropdown__container",this.$navMoreLinksLink),this.$navMoreLinksSubmenuContainer=$(".site-nav__more-links .more-links__dropdown-container",this.$nav),this.search={ongoingRequest:null,ongoingTimeoutId:-1,throttleMs:500,searchUrlKey:"searchUrl",resultsSelector:".search-bar__results",resultsLoadingClass:"search-bar--loading-results",resultsLoadedClass:"search-bar--has-results",loadingMessage:theme.strings.searchLoading,moreResultsMessage:theme.strings.searchMoreResults,emptyMessage:theme.strings.searchNoResults};var breakpoint=767.98;$(this.$container).on("click"+this.namespace,".js-search-form-open",this.functions.searchFormOpen.bind(this)),$(this.$container).on("click"+this.namespace,".js-search-form-focus",this.functions.searchFormFocus.bind(this)),$(this.$container).on("click"+this.namespace,".js-search-form-close",this.functions.searchFormClose.bind(this)),$(this.$container).on("click"+this.namespace,".js-mobile-menu-icon",this.functions.mobileMenuOpen.bind(this)),$(this.$container).on("click"+this.namespace,".js-close-mobile-menu",this.functions.mobileMenuClose.bind(this)),$(this.$container).on("focusin"+this.namespace,".search-bar",this.functions.searchFocusIn.bind(this)),$(this.$container).on("focusout"+this.namespace,".search-bar",this.functions.searchFocusOut.bind(this)),$('.search-bar[data-live-search="true"]',this.$container).length&&$(this.$container).on("keyup"+this.namespace+" change"+this.namespace,'.search-bar[data-live-search="true"] input[name="q"]',this.functions.updateSearchResults.bind(this)),this.functions.setSearchTabbing.bind(this)(),$(".focus-tint").on("click"+this.namespace,this.functions.onFocusTintClick.bind(this)),$("body").toggleClass("header-has-messages",this.$container.find(".store-messages-bar").length>0),$(".js-messages-slider",this.$container).slick({infinite:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1,prevArrow:!1,nextArrow:!1}),$(".js-mobile-messages-slider",this.$container).slick({infinite:!0,autoplay:!0,slidesToShow:1,slidesToScroll:1,mobileFirst:!0,prevArrow:!1,nextArrow:!1,responsive:[{breakpoint,settings:"unslick"}]}),$(window).on("debouncedresize"+this.namespace,function(e){$(".js-mobile-messages-slider",this.$container).slick("resize")}),$(this.$container).on("click"+this.namespace,'.mobile-site-nav__icon, .mobile-site-nav__link[href="#"]',function(e){e.preventDefault(),$(this).siblings(".mobile-site-nav__menu").slideToggle(250),$(this).toggleClass("submenu-open")}),this.$container.hasClass("docking-header")&&(this.desktopHeaderWasDocked=!1,this.$dockedDesktopContentsContainer=$(".docked-navigation-container__inner",container),this.$dockedDesktopBaseContainer=$(".docked-navigation-container",container),this.mobileHeaderWasDocked=!1,this.$dockedMobileContentsContainer=$(".docked-mobile-navigation-container__inner",container),this.$dockedMobileBaseContainer=$(".docked-mobile-navigation-container",container),$(this.functions.dockedNavCheck.call(this)),$(window).on("scroll"+this.namespace,this.functions.dockedNavCheck.bind(this)),$(window).on("debouncedresize"+this.namespace,this.functions.dockedNavCheck.bind(this)),$(this.functions.updateDockedNavHeightStyle.call(this)),$(window).on("debouncedresize"+this.namespace,this.functions.updateDockedNavHeightStyle.bind(this))),$(this.functions.menuLinkVisibilityCheck.call(this)),$(window).on("debouncedresize"+this.namespace,this.functions.menuLinkVisibilityCheck.bind(this)),$(this.$container).on("mouseenter"+this.namespace,".more-links--with-dropdown .site-nav__item",this.functions.onMoreLinksSubMenuActive.bind(this)),$(this.$container).find(".site-nav__item--has-dropdown").each(function(index,dropdownContainer){var $container=$(dropdownContainer).closest(".site-header"),$dropdown=$(dropdownContainer).children(".small-dropdown:not(.more-links-dropdown)");if($dropdown.length&&$(dropdownContainer).parent().hasClass("site-nav")){var right=$(dropdownContainer).offset().left+$dropdown.outerWidth(),transform="",containerWidth=$container.outerWidth()-10;right>containerWidth&&(transform="translateX("+(containerWidth-right)+"px)"),$dropdown.css("transform",transform)}}),this.navHoverDelay=250,this.$navLastOpenDropdown=$(),$(this.$container).on("mouseenter"+this.namespace+" mouseleave"+this.namespace,".site-nav__item--has-dropdown",function(evt){var $dropdownContainer=$(evt.currentTarget);if(evt.type=="mouseenter"){clearTimeout(this.navOpenTimeoutId),clearTimeout($dropdownContainer.data("navCloseTimeoutId"));var $openSiblings=$dropdownContainer.siblings(".open");$openSiblings.not(this.$navLastOpenDropdown).removeClass("open"),this.$navLastOpenDropdown=$dropdownContainer;var timeoutDelay=$openSiblings.length==0?0:this.navHoverDelay,navOpenTimeoutId=setTimeout(function(){$dropdownContainer.addClass("open").siblings(".open").removeClass("open");var $dropdown=$dropdownContainer.children(".small-dropdown:not(.more-links-dropdown)");if($dropdown.length&&$dropdownContainer.parent().hasClass("site-nav")){var right=$dropdownContainer.offset().left+$dropdown.outerWidth(),transform="",containerWidth=this.$container.outerWidth()-10;right>containerWidth&&(transform="translateX("+(containerWidth-right)+"px)"),$dropdown.css("transform",transform)}}.bind(this),timeoutDelay);this.navOpenTimeoutId=navOpenTimeoutId,$dropdownContainer.data("navOpenTimeoutId",navOpenTimeoutId)}else clearTimeout($dropdownContainer.data("navOpenTimeoutId")),$dropdownContainer.data("navCloseTimeoutId",setTimeout(function(){$dropdownContainer.removeClass("open").children(".small-dropdown:not(.more-links-dropdown)")},this.navHoverDelay));$dropdownContainer.children("[aria-expanded]").attr("aria-expanded",evt.type=="mouseenter")}.bind(this)),$(this.$container).on("keydown"+this.namespace,".site-nav__item--has-dropdown > .site-nav__link",this.functions.dropdownLinkKeyPress.bind(this)),$(this.$container).on("touchstart"+this.namespace+" touchend"+this.namespace+" click"+this.namespace,".site-nav__item--has-dropdown > .site-nav__link",function(evt){if(evt.type=="touchstart")$(this).data("touchstartedAt",evt.timeStamp);else if(evt.type=="touchend"){if(evt.timeStamp-$(this).data("touchstartedAt")<1e3)return $(this).data("touchOpenTriggeredAt",evt.timeStamp),$(this).parent().hasClass("open")?$(this).parent().trigger("mouseleave"):($(".site-nav__item.open").trigger("mouseleave"),$(this).parent().trigger("mouseenter")),!1}else if(evt.type=="click"&&$(this).data("touchOpenTriggeredAt")&&evt.timeStamp-$(this).data("touchOpenTriggeredAt")<1e3)return!1}),$(this.$container).on("touchstart"+this.namespace,".customer-account__parent-link",function(){$(this).closest(".customer-account").addClass("customer-account--using-touch")}),$(this.$container).on("click"+this.namespace,".customer-account__parent-link",this.functions.onAccountIconClick.bind(this)),$(".disclosure",this.$container).each(function(){$(this).data("disclosure",new theme.Disclosure($(this)))})},this.functions={onAccountIconClick:function(evt){if($(window).width()>=768){evt.preventDefault();var isOpen=$(evt.target).closest(".customer-account").toggleClass("customer-account--reveal-menu").hasClass("customer-account--reveal-menu");$(evt.target).closest(".customer-account__parent-link").attr("aria-expanded",isOpen)}},dropdownLinkKeyPress:function(evt){if(evt.which==13){if($(evt.target).closest(".site-nav__dropdown").length&&$(evt.target).closest(".more-links").length)$(evt.target).trigger("mouseenter");else{var isOpen=$(evt.target).closest(".site-nav__item--has-dropdown").toggleClass("open").hasClass("open");$(evt.target).attr("aria-expanded",isOpen)}return!1}},setSearchTabbing:function(evt){$(".search-bar",this.$container).each(function(){$(this).css("pointer-events")=="none"?$(this).find("a, input, button").attr("tabindex","-1"):$(this).find("a, input, button").removeAttr("tabindex")})},onMoreLinksSubMenuActive:function(evt){this.$navMoreLinksSubmenuContainer.empty();var $childMenu=$(evt.currentTarget).children(".site-nav__dropdown");
4if($childMenu.length){var $clone=$childMenu.clone();$clone.find(".mega-dropdown__container .one-third").removeClass("one-third").addClass("one-half"),$clone.find(".mega-dropdown__container .one-quarter").removeClass("one-quarter").addClass("one-third"),$clone.find(".site-nav__promo-container > .three-quarters").removeClass("three-quarters").addClass("two-thirds"),$clone.find(".site-nav__promo-container > .one-quarter").removeClass("one-quarter").addClass("one-third"),$clone.appendTo(this.$navMoreLinksSubmenuContainer)}var submenuHeight=this.$navMoreLinksSubmenuContainer.outerHeight()+30;this.$navMoreLinksSubmenuContainer.parent().css("min-height",submenuHeight),$(evt.currentTarget).removeClass("more-links__parent--inactive").addClass("more-links__parent--active").siblings().removeClass("more-links__parent--active").addClass("more-links__parent--inactive"),$(evt.target).attr("aria-expanded",!0),$(evt.target).parent().siblings().find("a").attr("aria-expanded",!1)},menuLinkVisibilityCheck:function(evt){var navWidth=this.$nav.width(),moreLinksWidth=this.$navMoreLinksLink.width(),spacingOffset=4,total=0;if(this.$navLinks.each(function(){total+=$(this).width()+spacingOffset}),total>navWidth){total=moreLinksWidth;var $_ref=this.$navMoreLinksContainer.empty();this.$navLinks.each(function(){total+=$(this).width()+spacingOffset,total>navWidth?($_ref.append($(this).clone().removeClass("site-nav__invisible")),$(this).addClass("site-nav__invisible").find("a").attr("tabindex","-1")):$(this).removeClass("site-nav__invisible").find("a").removeAttr("tabindex")}),this.$navMoreLinksLink.attr("role","menu"),this.$navMoreLinksContainer.find("a").removeAttr("tabindex"),this.$navMoreLinksLink.removeClass("site-nav__invisible"),this.$navMoreLinksLink.toggleClass("more-links--with-dropdown",this.$navMoreLinksLink.find(".small-dropdown:first, .mega-dropdown:first").length>0),this.$navMoreLinksLink.toggleClass("more-links--with-mega-dropdown",this.$navMoreLinksLink.find(".mega-dropdown:first").length>0),this.$navMoreLinksContainer.find(".small-dropdown").css("transform","")}else this.$navLinks.removeClass("site-nav__invisible"),this.$navMoreLinksLink.addClass("site-nav__invisible"),this.$navMoreLinksLink.removeAttr("role"),this.$navMoreLinksContainer.empty()},searchFormOpen:function(evt){evt.preventDefault(),evt.stopPropagation(),$("body").addClass("search-bar-open"),$('.search-bar:not(.mobile-menu-search):visible input[name="q"]',this.$container).focus(),this.functions.setSearchTabbing.bind(this)()},searchFormFocus:function(evt){$('.search-bar:visible input[name="q"]',this.$container).focus()},searchFormClose:function(evt){$("body").removeClass("search-bar-open search-bar-in-focus"),this.functions.setSearchTabbing.bind(this)(),evt&&evt.target&&$(evt.target).closest(".search-bar").prev("a").focus().blur()},searchFocusIn:function(evt){clearTimeout(this.searchFocusOutTimeout),$("body").addClass("search-bar-in-focus")},searchFocusOut:function(evt){this.searchFocusOutTimeout=setTimeout(function(){$("body").removeClass("search-bar-in-focus"),$(".search-bar").removeClass("search-bar--has-results")},100)},onFocusTintClick:function(evt){return this.functions.searchFormClose.bind(this)(),!1},mobileMenuOpen:function(evt){$(".header-navigation",this.$container).addClass("header-navigation--open"),$(document.body,this.$container).addClass("mobile-menu-open")},mobileMenuClose:function(evt){$(".header-navigation",this.$container).removeClass("header-navigation--open"),$(document.body,this.$container).removeClass("mobile-menu-open")},updateSearchResults:function(evt){var $form=$(evt.target).closest("form"),$bar=$form.closest(".search-bar"),searchUrl=$form.attr("action")+($form.attr("action").indexOf("?")>=0?"&":"?")+$form.serialize();if(searchUrl!=$form.data(this.search.searchUrlKey)){$form.data(this.search.searchUrlKey,searchUrl),this.functions._abortSearch.bind(this)();var term=$form.find('input[name="q"]').val();term.length<2?this.functions._searchResultsHide.bind(this)($bar):($bar.addClass(this.search.resultsLoadingClass),$bar.find(this.search.resultsSelector).html('<div class="search-result search-result--loading">'+this.search.loadingMessage+"</div>"),this.search.ongoingTimeoutId=setTimeout(this.functions._fetchResults.bind(this,$form,searchUrl,$bar),this.search.throttleMs))}},_abortSearch:function(){this.search.ongoingRequest&&this.search.ongoingRequest.abort(),clearTimeout(this.search.ongoingTimeoutId)},_fetchResults:function($searchForm,searchUrl,$bar){var ajaxUrl,ajaxData;theme.shopifyFeatures.predictiveSearch?(ajaxUrl=theme.routes.search_url+"/suggest.json",ajaxData={q:$searchForm.find('input[name="q"]').val(),resources:{type:$searchForm.find('input[name="type"]').val(),limit:5,limit_scope:"each",o
4ptions:{unavailable_products:"last",fields:$bar.data("live-search-meta")?"title,product_type,variants.title,vendor,tag,variants.sku":"title,product_type,variants.title,vendor"}}}):(ajaxUrl=$searchForm.attr("action")+"?"+$searchForm.serialize()+"&view=data",ajaxData=null),this.search.ongoingRequest=$.ajax({url:ajaxUrl,data:ajaxData,dataType:"json",success:this.functions._searchResultsSuccess.bind(this,$bar,searchUrl)}).fail(function($bar2,request){console.log("Error fetching results"),console.log(request),this.functions._searchResultsHide.bind(this,$bar2)}.bind(this,$bar)).always(function(){this.search.ongoingRequest=null}.bind(this))},_searchResultsSuccess:function($bar,searchUrl,response){$bar.addClass(this.search.resultsLoadedClass).removeClass(this.search.resultsLoadingClass);const $results=$('<div class="search-results__results">'),$queries=$('<div class="search-results__queries">'),showPrice=$bar.data("live-search-price"),showVendor=$bar.data("live-search-vendor");let $moreResults=null;if(response.resources.results.products&&response.resources.results.products.length>0||response.resources.results.pages&&response.resources.results.pages.length>0||response.resources.results.articles&&response.resources.results.articles.length>0||response.resources.results.queries&&response.resources.results.queries.length>0){if(response.resources.results.products)for(var i=0;i<response.resources.results.products.length;i++){var result=response.resources.results.products[i],$result=$('<a class="search-result">').attr("href",result.url),$titleAndPrice=$('<div class="search-result__title">').appendTo($result);if($('<div class="search-result__product">').html(result.title).appendTo($titleAndPrice),showVendor&&$('<div class="search-result__vendor">').text(result.vendor).appendTo($titleAndPrice),showPrice){var $price=$('<div class="search-result__price product-price">').appendTo($titleAndPrice);parseFloat(result.price_min)!=parseFloat(result.price_max)&&$price.append($('<span class="product-price__from">').html(theme.strings.priceFrom)).append(" "),parseFloat(result.compare_at_price_min)>parseFloat(result.price_min)?$price.append($('<span class="theme-money">').addClass("product-price__reduced").html(theme.Shopify.formatMoney(result.price_min,theme.moneyFormatWithCodeForProductsPreference))).append(" ").append($('<span class="product-price__compare theme-money">').html(theme.Shopify.formatMoney(result.compare_at_price_min,theme.moneyFormat))):$('<span class="theme-money">').html(theme.Shopify.formatMoney(result.price_min,theme.moneyFormatWithCodeForProductsPreference)).appendTo($price)}var $thumb;result.image?$thumb=$('<span class="search-result__image">').append($('<img role="presentation" alt="">').attr("src",slate.Image.getSizedImageUrl(result.image,"100x100_crop_center"))):$thumb=$('<span class="search-result__image">').append($('<span class="search-result__char">').html(result.title[0])),$result.prepend($thumb).appendTo($results)}if(response.resources.results.articles)for(var i=0;i<response.resources.results.articles.length;i++){var result=response.resources.results.articles[i],$result=$('<a class="search-result">').attr("href",result.url).append($('<span class="search-result__title">').text(result.title)),$thumb;result.image?$thumb=$('<span class="search-result__image">').append($('<img role="presentation" alt="">').attr("src",slate.Image.getSizedImageUrl(result.image,"100x100_crop_center"))):$thumb=$('<span class="search-result__image">').append($('<span class="search-result__char">').html(result.title[0])),$result.prepend($thumb).appendTo($results)}if(response.resources.results.pages)for(var i=0;i<response.resources.results.pages.length;i++){var result=response.resources.results.pages[i],$result=$('<a class="search-result">').attr("href",result.url).append($('<span class="search-result__title">').text(result.title)),$thumb=$('<span class="search-result__image">').append($('<span class="search-result__char">').html(result.title[0]));$result.prepend($thumb).appendTo($results)}if(response.resources.results.queries&&response.resources.results.queries.length>0){for(var queries="",i=0;i<response.resources.results.queries.length;i++){var query=response.resources.results.queries[i];queries+=`<li class="search-result search-result--query"><a href="${query.url}">${query.styled_text}</a></li>`}$queries.html(queries)}$moreResults=$('<a class="search-result search-result--more">').attr("href",searchUrl).html(this.search.moreResultsMessage)}else $results.append('<div class="search-result search-result--empty">'+this.search.emptyMessage+"</div>");const $resultContainer=$bar.find(this.search.resultsSelector);$resultContainer.html($results),$moreResults&&$moreResults.appendTo($resultContainer),response.resources.results.queries&&response.resources.results.queries.length>0&&$resultContainer.prepend($queries)},_searchResultsHide:function($bar){$bar.removeClass(this.search.resultsLoadedClass).removeClass(this.search.resultsLoadingClass).find(this.search.resultsSelector).empty()},dockedNavCheck:function(evt){var scrollTop=$(window).scrollTop(),desktopShouldDock=$(window).width()>=theme.dockedNavDesktopMinWidth&&this.$dockedDesktopBaseContainer.offset().top<scrollTop,mobileShouldDock=$(window).width()<theme.dockedNavDesktopMinWidth&&this.$dockedMobileBaseContainer.offset().top<scrollTop;desktopShouldDock?this.$dockedDesktopBaseContainer.css("height",this.$dockedDesktopContentsContainer.outerHeight()):this.desktopHeaderWasDocked&&this.$dockedDesktopBaseContainer.css("height",""),mobileShouldDock?this.$dockedMobileBaseContainer.css("height",this.$dockedMobileContentsContainer.outerHeight()):this.mobileHeaderWasDocked&&this.$dockedMobileBaseContainer.css("height",""),this.$container.toggleClass("docked-header--dock",desktopShouldDock||mobileShouldDock),desktopShouldDock!=this.desktopHeaderWasDocked&&this.functions.menuLinkVisibilityCheck.bind(this)(),this.desktopHeaderWasDocked=desktopShouldDock,this.mobileHeaderWasDocked=mobileShouldDock},updateDockedNavHeightStyle:function(){var productStickyTop=theme.dockedNavHeight()+30;document.documentElement.style.setProperty("--theme-sticky-header-height",theme.dockedNavHeight()+"px")}},this.onSectionUnload=function(){this.$container.off(this.namespace),$(".focus-tint").off(this.namespace),$(window).off(this.namespace),$(".js-messages-slider",this.$container).slick("unslick"),$(".js-mobile-messages-slider",this.$container).slick("unslick"),$(".disclosure",this.$container).each(function(){$(this).data("disclosure").unload()})}},theme.Footer=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$stickyFooter=$(".sticky-footer",container),$("body").removeClass("sticky-footer-not-visible sticky-footer-partly-visible sticky-footer-fully-visible sticky-footer-taller-than-page sticky-footer-scrolled-into"),this.$stickyFooter.length?(this.functions.stickyResize.bind(this)(),this.functions.stickyScroll.bind(this)(),$(window).on("debouncedresize"+this.namespace,this.functions.stickyResize.bind(this)),$(window).on("scroll"+this.namespace,this.functions.stickyScroll.bind(this))):(this.$footerInner=this.$container.find(".page-footer__inner "),this.functions.pushDown.call(this),$(window).on("debouncedresize"+this.namespace,this.functions.pushDown.bind(this))),$(".disclosure",this.$container).each(function(){$(this).data("disclosure",new theme.Disclosure($(this)))})},this.functions={pushDown:function(){var gap=$(window).height()-(this.$container.offset().top+this.$footerInner.outerHeight());gap>0?this.$container.css("padding-top",gap):this.$container.css("padding-top","")},stickyScroll:function(){$("body").toggleClass("sticky-footer-scrolled-into",$(window).scrollTop()>this.$container.offset().top)},stickyResize:function(){var footerHeight=this.$stickyFooter.outerHeight(),footerOffsetTop=this.$container.offset().top,partlyVisible=footerOffsetTop<$(window).height(),fullyVisible=footerOffsetTop+footerHeight<$(window).height(),tallerThanPage=footerHeight>$(window).height();$("body").toggleClass("sticky-footer-not-visible",!partlyVisible),$("body").toggleClass("sticky-footer-partly-visible",partlyVisible&&!fullyVisible),$("body").toggleClass("sticky-footer-fully-visible",fullyVisible),$("body").toggleClass("sticky-footer-taller-than-page",tallerThanPage),this.$container.css("min-height",footerHeight)}},this.onSectionUnload=function(){$(window).off(this.namespace),$(".disclosure",this.$container).each(function(){$(this).data("disclosure").unload()})}}
4,theme.Product=new function(){var selectors=$.extend({},theme.variants.selectors,{productJson:"[data-product-json]",productMediaContainer:".product-detail__images",productMedia:"[data-product-media]",productImages:"[data-product-image]",productMediaThumbnails:"[data-product-media-thumbnail]",singleOptionSelector:"[data-single-option-selector]",skuWrapper:".sku-wrapper",sku:".sku-wrapper__sku",storeAvailability:"[data-store-availability-container]"});this.onSectionLoad=function(container){if(this.$container=$(container),this.namespace=theme.namespaceFromSection(container),$(selectors.storeAvailability,container).length&&(this.storeAvailability=new theme.StoreAvailability($(selectors.storeAvailability,container)[0])),!!$(selectors.productJson,this.$container).html()){var sectionId=this.$container.attr("data-section-id");this.productSingleObject=JSON.parse($(selectors.productJson,this.$container).html());var options={$container:this.$container,enableHistoryState:this.$container.data("enable-history-state")||!1,singleOptionSelector:selectors.singleOptionSelector,originalSelectorId:selectors.originalSelectorId,secondaryIdSelectors:selectors.secondaryIdSelectors,product:this.productSingleObject};this.settings={},this.settings.imageSize="master",this.variants=new slate.Variants(options),this.$productMediaContainer=$(selectors.productMediaContainer,this.$container),this.$productMedia=$(selectors.productMedia,this.$container),this.$productImages=$(selectors.productImages,this.$container),this.$productMediaThumbnails=$(selectors.productMediaThumbnails,this.$container),this.$container.on("variantChange"+this.namespace,theme.variants.updateAddToCartState.bind(this)),this.$container.on("variantPriceChange"+this.namespace,theme.variants.updateProductPrices.bind(this)),this.$container.find(selectors.skuWrapper)&&this.$container.on("variantChange"+this.namespace,this.functions.updateSKU.bind(this)),this.$productMediaThumbnails.length?(this.$productMedia.length>1&&(this.$container.on("click"+this.namespace,selectors.productMediaThumbnails,this.functions.updatePrimaryProductMediaFromThumbnailClick.bind(this)),this.$container.on("variantImageChange"+this.namespace,this.functions.updateProductMediaSlideshowFromVariantChange.bind(this))),this.$container.on("click"+this.namespace,selectors.productImages,this.functions.openGallery.bind(this))):(this.$productMedia.length>1&&(this.$container.on("variantImageChange"+this.namespace,this.functions.updateProductMediaColumn.bind(this)),$(document).on("click"+this.namespace+" keydown"+this.namespace,function(){this.$productMedia.not(".variant-dim--fixed").removeClass("variant-dim")}.bind(this)),$(window).on("scroll"+this.namespace+" ontouchstart"+this.namespace,function(){this.$productMedia.not(".variant-dim--fixed").removeClass("variant-dim")}.bind(this)),$(window).on("scroll"+this.namespace,this.functions.notifyMediaOfVisibilityInColumn.bind(this)),this.functions.notifyMediaOfVisibilityInColumn.bind(this)()),this.$container.on("click"+this.namespace,selectors.productImages,this.functions.openGallery.bind(this))),this.mediaSlideshowActive=!1,$(window).on("debouncedresize"+this.namespace,this.functions.assessMediaSlideshow.bind(this)),this.functions.assessMediaSlideshow.bind(this)(),theme.ProductMedia.init(this.$container,{onPlyrInit:function(playerObj){var $slideshow=$(playerObj.element).closest(".slick-initialized");$slideshow.length&&theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide)},onYoutubeInit:function(playerObj){var $slideshow=$(playerObj.element).closest(".slick-initialized");$slideshow.length&&theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide)},onModelViewerInit:function(playerObj){var $slideshow=$(playerObj.element).closest(".slick-initialized");$slideshow.length&&theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide)}}),this.$container.find(".product-media").trigger("mediaVisibleInitial"),theme.initVariantSelectors($(selectors.singleOptionSelector,container),options.product),this.variants.product.variants.length>1&&$(window).trigger("cc-variant-updated",{variant:this.variants.currentVariant,product:this.productSingleObject}),this.$container.on("click",".js-size-chart-open",function(e){e.preventDefault(),$("body").addClass("size-chart-is-open")}),this.$container.on("click",".js-size-chart-close",function(){$("body").removeClass("size-chart-is-open")}),theme.initAjaxAddToCartForm($("form.ajax-product-form",this.$container)),theme.asse
4ssRTEImagesOnLoad(this.$container)}},this.functions={updateSKU:function(evt){var variant=evt.variant;variant&&variant.sku?($(selectors.skuWrapper,this.$container).removeClass("sku-wrapper--empty"),$(selectors.sku,this.$container).html(variant.sku)):($(selectors.skuWrapper,this.$container).addClass("sku-wrapper--empty"),$(selectors.sku,this.$container).empty())},notifyMediaOfVisibilityInColumn:function(){var viewportTop=$(window).scrollTop(),viewportBottom=viewportTop+$(window).height();$(".product-media",this.$container).each(function(){var mediaTop=$(this).offset().top,mediaBottom=mediaTop+$(this).outerHeight();mediaTop>viewportTop&&mediaTop<viewportBottom||mediaBottom>viewportTop&&mediaBottom<viewportBottom?$(this).hasClass("product-media--on-screen")||($(this).addClass("product-media--on-screen"),$(this).is(".product-media--model:not(.product-media--model-loaded)")&&$(this).trigger("mediaVisibleInitial")):$(this).hasClass("product-media--on-screen")&&$(this).removeClass("product-media--on-screen").trigger("mediaHidden")})},_updatePrimaryProductMediaFromThumbnail:function($mediaWithId){if(this.$productMediaContainer.hasClass("slick-slider")){var index=this.$productMedia.filter('[data-media-id="'+$mediaWithId.data("media-id")+'"]').closest(".slick-slide").data("slick-index");this.$productMediaContainer.slick("slickGoTo",index)}},updatePrimaryProductMediaFromThumbnailClick:function(evt){evt.preventDefault(),this.functions._updatePrimaryProductMediaFromThumbnail.bind(this)($(evt.currentTarget))},updateProductMediaSlideshowFromVariantChange:function(evt){var variant=evt.variant,$found=this.$productMedia.filter(function(){return $(this).data("media-id")==variant.featured_media.id});$found.length==1&&this.functions._updatePrimaryProductMediaFromThumbnail.bind(this)($found)},updateProductMediaColumn:function(evt){var variant=evt.variant,$found=this.$productMedia.filter(function(){return $(this).data("media-id")==variant.featured_media.id});$found.length==1&&(this.$productMediaContainer.hasClass("slick-slider")?this.functions._updatePrimaryProductMediaFromThumbnail.bind(this)($found):(clearTimeout(this.variantScrollTimeoutId),this.variantScrollTimeoutId=setTimeout(function(){var desiredScrollTop=$found.offset().top-theme.dockedNavHeight(),$cont=$found.closest(".product-detail");$("html,body").animate({scrollTop:desiredScrollTop},500,function(){$found.removeClass("variant-dim"),this.$productImages.not($found).addClass("variant-dim variant-dim--fixed"),setTimeout(function(){$(".variant-dim--fixed").removeClass("variant-dim--fixed")},500)}.bind(this))}.bind(this),25)))},assessMediaSlideshow:function(evt){var windowWidth=$(window).width(),count=!1;this.$productMediaContainer.children().length>1&&(count=!0);var wantSlideshow=windowWidth<768||$(".product-detail__thumbnails").length;if(wantSlideshow){if(!this.mediaSlideshowActive){var initialSlide=0,fmid=this.$productMediaContainer.data("featured-media-id");this.$productMediaContainer.data("featured-media-id",null),initialSlide=this.$productMediaContainer.find('[data-media-id="'+fmid+'"]').parent().index();var $slideshow=this.$productMediaContainer.slick({infinite:!1,fade:!0,arrows:!1,dots:!1,adaptiveHeight:!0,prevArrow:theme.icons.slideshowPrevArrow,nextArrow:theme.icons.slideshowNextArrow,appendArrows:$(".slick-external-controls .slick-arrows",this.$container),appendDots:$(".slick-external-controls .slick-dots",this.$container),initialSlide,waitForAnimate:!1,responsive:[{breakpoint:767.98,settings:{fade:!1,arrows:!0,dots:count}}]});$slideshow.find(".product-media").trigger("mediaVisibleInitial"),$slideshow.on("afterChange",function(evt2,slick,current){var $currentMedia=$(".product-media",slick.$slides[current]);$(".product-media").not($currentMedia).trigger("mediaHidden"),$currentMedia.trigger("mediaVisible");var $currentSlideLink=$("[data-product-image]",slick.$slides[current]);$('.product-detail__thumbnail[data-media-id="'+$currentSlideLink.data("media-id")+'"]').addClass("thumb-active").siblings().removeClass("thumb-active"),theme.productGallerySlideshowTabFix(slick.$slides,current),$(this).closest(".quickbuy-container").trigger("changedsize")}),theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide),this.mediaSlideshowActive=!0}}else this.mediaSlideshowActive&&(this.$productMediaContainer.slick("unslick"),this.mediaSlideshowActive=!1)},openGallery:function(evt){evt.preventDefault();var pswpElement=document.querySelectorAll(".pswp")[0],items=[];this.$productImages.each(function(index){$(this).data("image-index",index);var item={src:$(this).attr("href"),w:$(this).data("image-w"),h:$(this).data("image-h")},img=$(this).find("img")[0];typeof img.currentSrc<"u"&&(item.msrc=img.currentSrc),items.push(item)});var options={history:!1,captionEl:!1,shareEl:!1,fullscreenEl:!1};options.index=$(evt.target).closest("a").data("image-index"),options.getThumbBoundsFn=function(index){var thumbnail=this.$productImages[index].getElementsByTagName("img")[0],pageYScroll=window.pageYOffset||document.documentElement.scrollTop,rect=thumbnail.getBoundingClientRect();return{x:rect.left,y:rect.top+pageYScroll,w:rect.width}}.bind(this),this.imageGallery=new PhotoSwipe(pswpElement,PhotoSwipeUI_Default,items,options),this.imageGallery.init(),this.imageGallery.listen("destroy",function(){this.imageGallery=null}.bind(this));var _this=this;this.imageGallery.listen("afterChange",function(){var currentSrc=this.currItem.src,$currentThumb=_this.$productImages.filter(function(){return $(this).attr("href")==currentSrc});_this.functions._updatePrimaryProductMediaFromThumbnail.bind(_this)($currentThumb)})}},this.onSectionUnload=function(){this.$container.off(this.namespace),$(document).off(this.namespace),$(window).off(this.namespace),this.imageGallery&&this.imageGallery.close(),this.storeAvailability&&this.storeAvailability.onSectionUnload(),theme.ProductMedia.destroy(this.$container),this.$container.find(".slick-initialized").slick("unslick").off("afterChange"),theme.unloadAjaxAddToCartForm($("form.ajax-product-form",this.$container))}},theme.Blog=new function(){var selectors={header:".featured-blog__header, .blog-featured-image",headerImage:".featured-blog__header-image, .blog-image",slideshow:".js-content-products-slider .grid"},breakpoint=768,resizeTimer;this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$header=$(selectors.header,this.$container),this.$headerImage=$(selectors.headerImage,this.$container),$(".js-content-products-slider .grid",this.$container).each(function(index,value){theme.peekCarou
4sel.init(this.$container,$(value),this.namespace,function(){return!0},!1,{infinite:!1,slidesToShow:3,slidesToScroll:1,swipeToSlide:!0,dots:!1,prevArrow:$(value).closest(".content-products").find(".content-products-controls .prev"),nextArrow:$(value).closest(".content-products").find(".content-products-controls .next"),responsive:[{breakpoint:$(".single-column-layout",this.$container).length?768:960,settings:{slidesToShow:1}}]})}.bind(this)),this.functions.assessSection.bind(this)(),$(window).on("debouncedresize"+this.namespace,this.functions.assessSection.bind(this))},this.functions={assessSection:function(evt){var windowWidth=$(window).width();if(windowWidth<768)this.$headerImage.css("height","");else{var headerPadding=parseInt(this.$header.css("padding-top"));this.$headerImage.css("height",$(window).height()-headerPadding*2-theme.dockedNavHeight())}}},this.onSectionUnload=function(container){this.$container.off(this.namespace),$(window).off(this.namespace),theme.peekCarousel.destroy(this.$container,$(".js-content-products-slider .grid",this.$container),this.namespace)}},theme.Article=new function(){var selectors={slideshow:".js-content-products-slider .grid"};this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container);var rteWidth=$(".template-article .rte").width();$(selectors.slideshow,this.$container).each(function(index,value){theme.peekCarousel.init(this.$container,$(value),this.namespace,function(){return!0},!1,{infinite:!1,slidesToShow:3,slidesToScroll:1,swipeToSlide:!0,dots:!1,prevArrow:$(value).closest(".content-products").find(".content-products-controls .prev"),nextArrow:$(value).closest(".content-products").find(".content-products-controls .next"),responsive:[{breakpoint:$(".single-column-layout",this.$container).length?768:960,settings:{slidesToShow:1}}]})}.bind(this)),theme.assessRTEImagesOnLoad(this.$container)},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace),theme.peekCarousel.destroy(this.$container,$(selectors.slideshow,this.$container),this.namespace)}},theme.Slideshow=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$slideshow=$(".js-slideshow-section",this.$container);var count=!1;if(this.$slideshow.children().length>1)var count=!0;this.$slideshow.slick({infinite:!0,slidesToShow:1,slidesToScroll:1,dots:count,adaptiveHeight:!1,autoplay:this.$slideshow.data("autoplay"),fade:this.$slideshow.data("transition")!=="slide",autoplaySpeed:this.$slideshow.data("autoplayspeed"),prevArrow:$(".full-width-slideshow-controls .prev",this.$container),nextArrow:$(".full-width-slideshow-controls .next",this.$container)}).on("beforeChange",function(event,slick,currentSlide,nextSlide){$(slick.$slides.get(currentSlide)).addClass("slick--leaving")}).on("afterChange",function(event,slick,currentSlide){const $lastSlide=$(slick.$slides).filter(".slick--leaving");setTimeout(function(){$lastSlide.removeClass("slick--leaving")},100)}),$(window).on("debouncedresize"+this.namespace,this.functions.onResize.bind(this)),theme.checkOverlaps&&theme.checkOverlaps()},this.functions={onResize:function(evt){this.$slideshow.slick("setPosition")}},this.onBlockSelect=function(block){this.$slideshow.slick("slickGoTo",$(block).data("slick-index"),!0).slick("slickPause")},this.onBlockDeselect=function(block){this.$slideshow.slick("slickPlay")},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace),this.$slideshow.slick("unslick")}},theme.Banner=new function(){this.onSectionLoad=theme.Slideshow.onSectionLoad,this.onSectionUnload=theme.Slideshow.onSectionUnload,this.onBlockSelect=theme.Slideshow.onBlockSelect,this.onBlockDeselect=theme.Slideshow.onBlockDeselect,this.functions=theme.Slideshow.functions},theme.StandoutCollection=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),theme.peekCarousel.init(this.$container,$(".js-standout-collection-sli
4der",this.$container),this.namespace,function(){return!0},!1,{infinite:!1,slidesToShow:1,slidesToScroll:1,dots:!1,prevArrow:$(".standout-collection-slider__controls .prev",this.$container),nextArrow:$(".standout-collection-slider__controls .next",this.$container)})},this.onSectionUnload=function(){this.$container.off(this.namespace),theme.peekCarousel.destroy(this.$container,$(".js-standout-collection-slider",this.$container),this.namespace)}},theme.GetTheLook=new function(){var selectors={header:".get-the-look__image-container",headerImage:".get-the-look__image-container .placeholder-svg, .get-the-look__image-container .rimage-background",slideshow:".js-get-the-look-slider",product:".get-the-look__product:first"},breakpoint=768,resizeTimer;this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$header=$(selectors.header,this.$container),this.$headerImage=$(selectors.headerImage,this.$container),this.$slideshow=$(selectors.slideshow,this.$container),this.$firstProduct=$(selectors.product,this.$container),theme.peekCarousel.init(this.$container,this.$slideshow,this.namespace,function(){return this.$firstProduct.length&&parseInt(this.$firstProduct.css("margin-right"))==0}.bind(this)),this.functions.assessSection.bind(this)(),$(window).on("debouncedresize"+this.namespace,this.functions.assessSection.bind(this))},this.functions={assessSection:function(evt){if(this.$firstProduct.length&&parseInt(this.$firstProduct.css("margin-right"))==0)this.$headerImage.css("height","");else{var headerPadding=parseInt(this.$header.css("margin-top"));this.$headerImage.css("height",$(window).height()-headerPadding*2-theme.dockedNavHeight())}}},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace),theme.peekCarousel.destroy(this.$container,this.$slideshow,this.namespace)}},theme.PromotionalImages=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),$(this.functions.assessSection.call(this)),$(window).on("debouncedresize"+this.namespace,this.functions.assessSection.bind(this))},this.functions={assessSection:function(evt){$(window).width()>=768?$(".promotional-row").each(function(){var tallest=0;$(this).find(".text_over_image .promotional-row__content").each(function(){var thisHeight=$(this).outerHeight()+60;thisHeight>tallest&&(tallest=thisHeight)}),$(this).find(".text_over_image").css("min-height",tallest)}):$(".promotional-row .text_over_image").css("min-height","")}},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace)}},theme.FeaturedCollection=new function(){var selectors={slideshow:"[data-carousel-enabled]"},breakpoint=768,resizeTimer;this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$slideshow=$(selectors.slideshow,this.$container),this.$slideshow.each(function(index,value){theme.peekCarousel.init(this.$container,$(value),this.namespace,function(){return!0},!1,{infinite:!1,slidesToShow:this.$slideshow.data("slides-per-row"),slidesToScroll:1,swipeToSlide:!0,dots:!1,prevArrow:$(".featured-collection-controls .prev",this.$container),nextArrow:$(".featured-collection-controls .next",this.$container),responsive:[{breakpoint,settings:{slidesToShow:1,nextArrow:!1,prevArrow:!1}}]})}.bind(this))},this.onSectionUnload=function(){this.$container.off(this.namespace),theme.peekCarousel.destroy(this.$container,this.$slideshow,this.namespace)}},theme.ListCollections=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),theme.assessRTEImagesOnLoad(this.$container),$(".js-list-collection-slider",this.$container).each(function(index,value){theme.peekCarousel.init(this.$container,$(value),this.namespace,function(){return!0},!1,{infinite:!0,slidesToShow:1,slidesToScroll:1,dots:!1,prevArrow:$(value).siblings(".standout-collection-slider__controls").children(".prev"),nextArrow:$(value).siblings(".standout-collection-sli
4der__controls").children(".next"),responsive:[{breakpoint:768,settings:{slidesToShow:1}}]})}.bind(this))},this.onSectionUnload=function(){this.$container.off(this.namespace),theme.peekCarousel.destroy(this.$container,$(".js-list-collection-slider",this.$container),this.namespace)}},theme.Cart=new function(){this.onSectionLoad=function(container){if(this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$container.on("click"+this.namespace,".js-shipping-calculator-trigger",function(){var $this=$(this),$parent=$this.parents(".shipping-calculator-container");$parent.toggleClass("calculator-open"),$parent.hasClass("calculator-open")?($this.html(theme.strings.cart_shipping_calculator_hide_calculator),$parent.children(".shipping-calculator").slideDown(250)):($this.html(theme.strings.cart_shipping_calculator_title),$parent.children(".shipping-calculator").slideUp(250))}),this.$container.on("click"+this.namespace,".js-cart-notes-trigger",function(){var $this=$(this),$parent=$this.parent(".cart-notes-container");$parent.toggleClass("notes-open"),$parent.hasClass("notes-open")?($this.html(theme.strings.cart_general_hide_note),$parent.children(".cart-notes").slideDown(250)):($this.html(theme.strings.cart_general_show_note),$parent.children(".cart-notes").slideUp(250))}),theme.cartNoteMonitor.load($('.cart-notes [name="note"]',this.$container)),this.$container.data("ajax-update")){var updateCartFunction=theme.debounce(this.functions.updateCart.bind(this),500);this.$container.on("keyup"+this.namespace+" change"+this.namespace,".quantity__change input",function(){if(!($(this).data("initial-value")&&$(this).data("initial-value")==$(this).val())&&!($(this).val().length==0||$(this).val()=="0")){var inputId=$(this).attr("id");updateCartFunction({line:$(this).data("line"),quantity:$(this).val()},function(){$("#"+inputId).focus()}),$(this).data("previousValue",$(this).val())}}),this.$container.on("click"+this.namespace,".quantity__minus, .quantity__plus",function(e){var $input=$(this).closest(".quantity__change").find(".quantity__number");return $(this).hasClass("quantity__minus")?$input.val(parseInt($input.val())-1).trigger("change"):$input.val(parseInt($input.val())+1).trigger("change"),!1})}this.$container.on("focusin"+this.namespace+" click"+this.namespace,"input.quantity__number",function(){$(this).select()}).on("mouseup"+this.namespace,"input.quantity__number",function(e){e.preventDefault()}),$("#terms",container).length>0&&$(document).on("click"+this.namespace,'[name="checkout"], a[href*="/checkout"]',function(){if($("#terms:checked").length==0)return alert(theme.strings.cartTermsNotChecked),!1}),this.$recentlyViewed=$(".recently-viewed",this.$container),this.$recentlyViewed.length&&(this.functions.loadRecentlyViewed.bind(this)(),theme.loadRecentlyViewed(this.$recentlyViewed))},this.functions={loadRecentlyViewed:function(evt){if(theme.storageAvailable("localStorage")){var recentDisplayCount=6,existingArr=theme.getRecentProducts();if(existingArr.length){var handlesToExcludeValue=this.$recentlyViewed.data("exclude"),handlesToExclude=[];handlesToExcludeValue.length&&(handlesToExclude=handlesToExcludeValue.split(","));for(var $recentlyViewedBucket=this.$recentlyViewed.find(".grid"),count=0,iterator=0,showVendor=this.$recentlyViewed.data("show-vendor"),showHoverImage=this.$recentlyViewed.data("show-hover-image");count<recentDisplayCount&&iterator<existingArr.length;){for(var showThis=!0,i=0;i<handlesToExclude.length;i++)if(existingArr[iterator].handle==handlesToExclude[i]){showThis=!1;break}showThis&&(count++,theme.addRecentProduct(existingArr,iterator,$recentlyViewedBucket,showHoverImage,showVendor)),iterator++}count>0&&this.$recentlyViewed.removeClass("hidden")}}},refreshCartAreas:function(successCallback){const cartSectionId=this.$container.data("section-id");this.cartRefreshXhr=$.ajax({type:"GET",url:theme.routes.cart_url+`?sections=header,${cartSectionId}`,success:function(data){const toReplace={};toReplace.header=[".page-header .header-cart",".docked-navigation-container .header-cart"],toReplace[cartSectionId]=['[data-section-type="cart"] .cart-items','[data-section-type="cart"] .subtotal-row'],Object.keys(toReplace).forEach(section=>{let $newDom=$(data[section]);$newDom.find(".fade-in").removeClass("fade-in");for(let i=0;i<toReplace[section].length;i++)$(toReplace[section][i]).html($newDom.find(toReplace[section][i]).html())}),successCallback()},error:function(data){data.statusText!="abort"&&(console.log("Error refreshing page"),console.log(data))},complete:()=>{this.cartRefreshXhr=null}})},updateCart:function(params,successCallback){var _=this;_.cartXhr&&_.cartXhr.abort(),_.cartRefreshXhr&&_.cartRefreshXhr.abort(),_.cartXhr=$.ajax({type:"POST",url:theme.routes.cart_
4change_url+".js",data:params,dataType:"json",success:function(data){_.cartRefreshXhr&&_.cartRefreshXhr.abort(),_.functions.refreshCartAreas.call(_,successCallback)},error:data=>{console.log("Error processing update"),console.log(data),data.responseJSON&&(data.responseJSON.description?theme.showQuickPopup(data.responseJSON.description,$(document.activeElement)):data.responseJSON.message&&theme.showQuickPopup(data.responseJSON.message,$(document.activeElement))),setTimeout(()=>{this.functions.refreshCartAreas.call(this,successCallback)},1e3)}})}},this.onSectionUnload=function(){this.$container.off(this.namespace),$(document).off(this.namespace),this.$recentlyViewed.length&&theme.unloadRecentlyViewed(this.$recentlyViewed),theme.cartNoteMonitor.unload($('.cart-notes [name="note"]',this.$container))}},theme.ImageWithText=new function(){this.onSectionLoad=function(container){this.namespace=theme.namespaceFromSection(container),this.$container=$(container),this.$imageContainer=$(".image-with-text__image",container),this.$image=$(".image-with-text__image .rimage__image",container),this.$text=$(".image-with-text__content",container)},this.onSectionUnload=function(){$(window).off(this.namespace)}},theme.FeaturedProduct=new function(){this.onSectionLoad=function(container){this.namespace=theme.namespaceFromSection(container),this.$container=$(container),this.$row=$(".featured-product-section",container),this.$imageOuterContainer=$(".featured-product-image",container),this.$mediaContainer=$(".featured-product-image-link, .product-media-wrapper",container),this.$media=$(".product-media",container),this.$media.length&&theme.ProductMedia.init(this.$container)},this.onSectionUnload=function(){this.$media.length&&theme.ProductMedia.destroy(this.$container),$(window).off(this.namespace)}},theme.RecentlyViewed=new function(){var selectors={recentlyViewed:".recently-viewed"};this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$recentlyViewed=$(selectors.recentlyViewed,this.$container),this.$recentlyViewed.length&&(this.functions.loadRecentlyViewed.bind(this)(),theme.loadRecentlyViewed(this.$recentlyViewed))},this.functions={loadRecentlyViewed:function(evt){if(theme.storageAvailable("localStorage")){var recentDisplayCount=6,recentProductData={handle:this.$recentlyViewed.data("handle"),url:this.$recentlyViewed.data("url").split("?")[0],title:this.$recentlyViewed.data("title"),vendor:this.$recentlyViewed.data("vendor"),available:this.$recentlyViewed.data("available"),image:this.$recentlyViewed.data("image"),image2:this.$recentlyViewed.data("image2")},existingArr=theme.addToAndReturnRecentProducts(recentProductData);if(existingArr.length>1)for(var $recentlyViewedBucket=this.$recentlyViewed.removeClass("hidden").find(".grid"),showVendor=this.$recentlyViewed.data("show-vendor"),showHoverImage=this.$recentlyViewed.data("show-hover-image"),rangeStart=Math.max(0,existingArr.length-recentDisplayCount-1),rangeEnd=existingArr.length-1,i=rangeStart;i<rangeEnd;i++)theme.addRecentProduct(existingArr,i,$recentlyViewedBucket,showHoverImage,showVendor)}}},this.onSectionUnload=function(){this.$recentlyViewed.length&&theme.unloadRecentlyViewed(this.$recentlyViewed)}},theme.SearchTemplate=new function(){var selectors={productsContainer:".cc-filters-results"};this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$productsContainer=$(selectors.productsContainer,container)},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace)}},theme.Testimonials=new function(){this.onSectionLoad=function(container){this.$container=$(container),this.namespace=theme.namespaceFromSection(container),this.$slideshow=$(".js-testimonials-section",this.$container);var breakpoint=768,count=!1;if(this.$slideshow.children().length>2)var count=!0;if(this.$slideshow.children().length>1)var mobileCount=!0;this.$slideshow.slick({infinite:!0,slidesToShow:2,slidesToScroll:1,dots:count,adaptiveHeight:!1,autoplay:this.$slideshow.data("autoplay"),autoplaySpeed:this.$slideshow.data("autoplayspeed"),arrows:!1,responsive:[{breakpoint,settings:{slidesToShow:1,dots:mobileCount}}]}),$(window).on("debouncedresize"+this.namespace,this.functions.onResize.bind(this))},this.functions={onResize:function(evt){this.$slideshow.slick("setPosition")}},this.onBlockSelect=function(block){this.$slideshow.slick("slickGoTo",$(block).data("slick-index"),!0).slick("slickPause")},this.onBlockDeselect=function(block){this.$slideshow.slick("slickPlay")},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace),this.$slideshow.slick("unslick")}},theme.Gallery=new function(){var selectors={slideshow:".gallery--mobile-carou
4sel"},breakpoint=768;this.onSectionLoad=function(container){if(this.$container=$(container),this.namespace=theme.namespaceFromSection(container),$(selectors.slideshow,this.$container).length){let assessCarouselFunction=function(){let $slideshow=$(selectors.slideshow,this.$container),isCarousel=$slideshow.hasClass("slick-slider"),shouldShowCarousel=$(window).width()<breakpoint;if(shouldShowCarousel||$(".lazyload--manual",$slideshow).removeClass("lazyload--manual").addClass("lazyload"),isCarousel&&!shouldShowCarousel){$slideshow.slick("unslick").off("init"),$slideshow.find("a, .gallery__item").removeAttr("tabindex").removeAttr("role");var rowLimit=$slideshow.data("grid"),$currentRow=null;$slideshow.find(".gallery__item").each(function(index){index%rowLimit===0&&($currentRow=$('<div class="gallery__row">').appendTo($slideshow)),$(this).appendTo($currentRow)})}else!isCarousel&&shouldShowCarousel&&($slideshow.find(".gallery__item").appendTo($slideshow),$slideshow.find(".gallery__row").remove(),$slideshow.on("init",function(){$(".lazyload--manual",this).removeClass("lazyload--manual").addClass("lazyload")}).slick({autoplay:!1,fade:!1,infinite:!0,useTransform:!0,dots:!0,prevArrow:$(".gallery-slideshow-controls .prev",this.$container),nextArrow:$(".gallery-slideshow-controls .next",this.$container)}))};assessCarouselFunction.call(this),$(window).on("debouncedresize"+this.namespace,assessCarouselFunction.bind(this))}},this.onSectionUnload=function(){this.$container.off(this.namespace),$(window).off(this.namespace),$(".slick-slider",this.$container).each(function(){$(this).slick("unslick").off("init")})},this.onBlockSelect=function(block){$(block).closest(".slick-slider").each(function(){$(this).slick("slickGoTo",$(this).data("slick-index")).slick("slickPause")})},this.onBlockDeselect=function(block){$(block).closest(".slick-slider").each(function(){$(this).slick("slickPlay")})}},theme.ScrollingBannerSection=new function(){this.onSectionLoad=function(target){document.fonts.ready.then(()=>target.querySelector(".marquee").classList.add("marquee--animate"))}},theme._initCustomerAddressCountryDropdown=function(){new Shopify.CountryProvinceSelector("AddressCountryNew","AddressProvinceNew",{hideElement:"AddressProvinceContainerNew"}),$("#AddressCountryNew-modal").length&&new Shopify.CountryProvinceSelector("AddressCountryNew-modal","AddressProvinceNew-modal",{hideElement:"AddressProvinceContainerNew-modal"}),$(".address-country-option").each(function(){var formId=$(this).data("form-id"),countrySelector="AddressCountry_"+formId,provinceSelector="AddressProvince_"+formId,containerSelector="AddressProvinceContainer_"+formId;new Shopify.CountryProvinceSelector(countrySelector,provinceSelector,{hideElement:containerSelector})})},theme._setupCustomAddressModal=function(){var suffix="-modal";$(".lightbox-content form, .lightbox-content input[id], .lightbox-content select[id], .lightbox-content div[id]").each(function(){$(this).attr("id",$(this).attr("id")+suffix)}),$(".lightbox-content label[for]").each(function(){$(this).attr("for",$(this).attr("for")+suffix)}),$(".lightbox-content .address-country-option").each(function(){var formId=$(this).data("form-id")+suffix;$(this).attr("data-form-id",formId).data("form-id",formId)}),theme._initCustomerAddressCountryDropdown()},theme.customerAddresses=(function(){var $newAddressForm=$("#AddressNewForm");$newAddressForm.length&&(Shopify&&theme._initCustomerAddressCountryDropdown(),$(".address-new-toggle").on("click",function(){return $.colorbox({transition:"fade",html:'<div class="lightbox-content">'+$newAddressForm.html()+"</div>",onComplete:theme._setupCustomAddressModal}),!1}),$(".address-edit-toggle").on("click",function(){var formId=$(this).data("form-id");return $.colorbox({transition:"fade",html:'<div class="lightbox-content">'+$("#EditAddress_"+formId).html()+"</div>",onComplete:theme._setupCustomAddressModal}),!1}),$(".address-delete").on("click",function(){var $el=$(this),formId=$el.data("form-id"),confirmMessage=$el.data("confirm-message");confirm(confirmMessage||"Are you sure you wish to delete this address?")&&Shopify.postLink(theme.routes.account_addresses_url+"/"+formId,{parameters:{_method:"delete"}})}),$("#AddressNewForm .errors").length&&$(".address-new-toggle").
4click(),$(".grid .address-card .errors").length&&$(".grid .address-card .errors").first().closest(".address-card").find(".address-edit-toggle").click())})(),theme.customerLogin=(function(){var selectors={recoverPasswordForm:"#RecoverPassword",hideRecoverPasswordLink:"#HideRecoverPasswordLink"};$(document).on("click",selectors.recoverPasswordForm,onShowHidePasswordForm),$(document).on("click",selectors.hideRecoverPasswordLink,onShowHidePasswordForm);function onShowHidePasswordForm(evt){evt.preventDefault(),toggleRecoverPasswordForm($(this).closest(".container"))}function toggleRecoverPasswordForm(container){$("[id=RecoverPasswordForm]",container).toggleClass("hide"),$("[id=CustomerLoginForm]",container).toggleClass("hide")}if($(selectors.recoverPasswordForm).length){let checkUrlHash2=function(){var hash=window.location.hash;hash==="#recover"&&toggleRecoverPasswordForm(null)},resetPasswordSuccess2=function(){var $formState=$(".reset-password-success");$formState.length&&$("#ResetSuccess").removeClass("hide")};var checkUrlHash=checkUrlHash2,resetPasswordSuccess=resetPasswordSuccess2;checkUrlHash2(),resetPasswordSuccess2()}})(),theme.icons={close:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',slideshowPrevArrow:'<button class="slick-prev" aria-label="'+theme.strings.previous+'"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>',slideshowNextArrow:'<button class="slick-next" aria-label="'+theme.strings.next+'"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/></svg></button>'},theme.initVariantSelectors=function($els,data,inLightbox){var $btns=$els.filter(function(){return $(this).data("selector-type")=="listed"});if($btns.each(function(){var $label=$(this).find(".js-option-title");$label.length&&($label.data("default-content",$label.html()),$(this).on("change",function(){$label.data("default-content",$(this).find(".opt-btn:checked").val())}).on("mouseenter",".opt-label",function(){$label.html($(this).prev().val())}).on("mouseleave",".opt-label",function(){$label.html($label.data("default-content"))}))}),$btns.length>0)for(var optionIndex=0;optionIndex<data.options.length;optionIndex++){for(var optionValues={},variantIndex=0;variantIndex<data.variants.length;variantIndex++){var variant=data.variants[variantIndex];typeof optionValues[variant.options[optionIndex]]>"u"&&(optionValues[variant.options[optionIndex]]=!1),variant.available&&(optionValues[variant.options[optionIndex]]=!0)}for(var key in optionValues)optionValues[key]||$($els[optionIndex]).find(".opt-btn").filter(function(){return $(this).val()==key}).addClass("is-unavailable")}inLightbox&&$.colorbox.resize()},theme.namespaceFromSection=function(container){return[".",$(container).data("section-type"),$(container).data("section-id")].join("")},theme.dockedNavDesktopMinWidth=768,theme.dockedNavHeight=function(){if($(window).width()>=theme.dockedNavDesktopMinWidth){if($(".docked-navigation-container").length)return $(".docked-navigation-container__inner").height()}else if($(".docked-mobile-navigation-container").length)return $(".docked-mobile-navigation-container__inner").height();return 0},theme.resizeAccent=function(){var accentHeight=0,$firstSection=$(".accent-background").next();if($firstSection.length){var $marginTop=parseInt($firstSection.css("margin-top"));$firstSection[0].id==="shopify-section-banner"&&!$firstSection.children().length&&!$firstSection.text().trim().length&&($firstSection=$firstSection.next()),$firstSection.hasClass("no-accent-if-full-width")&&$firstSection.find(".container").length===0?accentHeight="":$firstSection.find(".sticky-element").length?accentHeight=Math.round($firstSection.find(".sticky-element").outerHeight()/2+$marginTop):accentHeight=Math.round($firstSection.outerHeight()/2+$marginTop),$(".accent-background").css("height",accentHeight)}else accentHeight="";$(".accent-background").css("height",accentHeight)}
4,theme.peekCarousel={init:function($container,$slideshows,globalNamespace,useCarouselCheckFn,removeClasses,slickConfig){theme.peekCarousel._checkAdvice($container);var data={$slideshows,useCarouselCheckFn,removeClasses,slickConfig:typeof slickConfig=="object"?slickConfig:{infinite:!1,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,dots:!1,arrows:!1}};theme.peekCarousel._assess.bind(data)(),$(window).on("debouncedresize"+globalNamespace,theme.peekCarousel._assess.bind(data)),$(".product-carousel-peek__advice",$container).on("click",function(){$(this).closest(".product-carousel-peek").find(".slick-initialized").slick("slickNext").trigger("dismissAdvice")})},destroy:function($container,$slideshows,globalNamespace){$slideshows.hasClass("slick-initialized")&&$slideshows.slick("unslick").off("swipe dismissAdvice afterChange init"),$(window).off("debouncedresize"+globalNamespace,theme.peekCarousel._assess),$(".product-carousel-peek__advice",$container).off("click")},_assess:function(){for(var i=0;i<this.$slideshows.length;i++){var $slideshow=$(this.$slideshows[i]);this.useCarouselCheckFn()?$slideshow.hasClass("slick-initialized")||(this.removeClasses&&$slideshow.children().each(function(){$(this).data("peekOriginalClassName",this.className),this.className=""}),$slideshow.children().length==0&&$slideshow.closest(".product-carousel-peek").addClass("product-carousel-peek--empty"),$slideshow.children().length==1&&$slideshow.closest(".product-carousel-peek").addClass("product-carousel-peek--single"),$slideshow.on("afterChange init",theme.peekCarousel._lazyLoadProduct),$slideshow.slick(this.slickConfig).on("swipe dismissAdvice",theme.peekCarousel._dismissAdviceOnSlickSwipe)):$slideshow.hasClass("slick-initialized")&&($slideshow.slick("unslick").off("swipe dismissAdvice afterChange"),this.removeClasses&&$slideshow.children().each(function(){this.className=$(this).data("peekOriginalClassName")}))}},_checkAdvice:function(container){$.cookie("theme.boost.dismissPeekAdvice")!="1"&&$(".product-carousel-peek",container).addClass("product-carousel-peek--show-advice")},_dismissAdvice:function(){$.cookie("theme.boost.dismissPeekAdvice","1",{expires:7,path:"/",domain:window.location.hostname}),$(".product-carousel-peek").addClass("product-carousel-peek--dismiss-advice")},_dismissAdviceOnSlickSwipe:function(evt,slick){theme.peekCarousel._dismissAdvice(),$(this).off("swipe")},_lazyLoadProduct:function(evt,slick){var data=this;slick.$slides.filter("[data-lazy-product-url]").filter(function(){return $(this).hasClass("slick-active")||$(this).prev().hasClass("slick-active")}).each(function(){var $this=$(this);$.get($(this).data("lazy-product-url")+"?sections=product-block",function(response){$this.html($(response["product-block"]).children().html())}),$this.removeAttr("data-lazy-product-url")})}},theme.productGallerySlideshowTabFix=function(slides,current){$(slides[current]).attr("tabindex","-1").find("[tabindex]").each(function(){$(this).attr("tabindex","0"),$(this).filter("model-viewer").attr("tabindex","-1")}),$(slides).not(slides[current]).attr("tabindex","-1").find("a, input, select, textarea, button, iframe, video, model-viewer, [tabindex]").each(function(){$(this).attr("tabindex","-1")})},$(function(){slate.a11y.pageLinkFocus($(window.location.hash)),$(".in-page-link").on("click",function(evt){slate.a11y.pageLinkFocus($(evt.currentTarget.hash))}),$(document).on("keyup.themeTabCheck",function(evt){evt.keyCode===9&&($("body").addClass("tab-used"),$(document).off("keyup.themeTabCheck"))});var tableSelectors=".rte table";slate.rte.wrapTable({$tables:$(tableSelectors),tableWrapperClass:"rte__table-wrapper"});var iframeSelectors='.rte iframe[src*="youtube.com/embed"],.rte iframe[src*="player.vimeo"]';slate.rte.wrapIframe({$iframes:$(iframeSelectors),iframeWrapperClass:"rte__video-wrapper"}),slate.cart.cookiesEnabled()&&(document.documentElement.className=document.documentElement.className.replace("supports-no-cookies","supports-cookies")),$(document).on("change focusout inputstateEmpty",'.input-wrapper input:not([type="date"]), .input-wrapper textarea',function(){$(this).closest(".input-wrapper").toggleClass("is-empty",$(this).val().length==0)}),$(document).on("focusin focusout",".input-wrapper input, .input-wrapper textarea",function(evt){$(this).closest(".input-wrapper").toggleClass("in-focus",evt.type=="focusin")}),$(document).on("shopify:section:load",function(){$(".input-wrapper input, .input-wrapper textarea").trigger("inputstateEmpty")}),$(".input-wrapper input:focus, .input-wrapper textarea:focus").closest(".input-wrapper").addClass("in-focus"),$(".input-wrapper input, .input-wrapper textarea").trigger("inputstateEmpty"),$(".input-wrapper input, .input-wrapper textarea").on("animationstart",function(e){e.originalEvent.animationName=="onAutoFillStart"?$(this).closest(".input-wrapper").removeClass("is-empty"):e.originalEvent.animationName=="onAutoFillCancel"&&$(this).trigger("inputstateEmpty")}),$(window).width()>1024&&$("input[data-desktop-autofocus]").focus(),$(document).on("click asse
4ss",".tabs a",function(evt){$(this).addClass("tab--active").closest("ul").find(".tab--active").not(this).removeClass("tab--active"),$(this).closest("li").siblings().find("a").each(function(){$($(this).attr("href")).removeClass("tab-content--active")}),$($(this).attr("href")).addClass("tab-content--active"),evt.preventDefault()});function tabFunc(){$(".tabs:not(:has(.tab--active)) a:first").trigger("assess")}tabFunc(),$(document).on("shopify:section:load",tabFunc);var activeQuickBuyRequest=null,breakpoint=768;$(document).on("click",".js-contains-quickbuy .js-quickbuy-button",function(e){if($(window).width()>breakpoint){if(activeQuickBuyRequest)return!1;var $qbButton=$(this),$prod=$(this).closest(".js-contains-quickbuy"),placeholder=$prod.find(".quickbuy-placeholder-template").html(),$template=$('<div class="quickbuy">'+placeholder+"</div>"),buttonObserved=!1,buttonObserver=new MutationObserver(function(mutations){$.colorbox.resize()});return $.colorbox({closeButton:!1,preloading:!1,open:!0,speed:200,slideshow:!0,html:[$template.wrap("<div>").parent().html()].join(""),onComplete:function(){var $slideshow=$(".quickbuy__product-media").slick({infinite:!1,slidesToScroll:1,speed:300,slidesToShow:1,swipeToSlide:!0,variableWidth:!0,waitForAnimate:!1,prevArrow:$(".quickbuy__slider-controls .prev"),nextArrow:$(".quickbuy__slider-controls .next")});theme.ProductMedia.init($(".quickbuy__media-container"),{onPlyrInit:function(playerObj){theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide)},onYoutubeInit:function(playerObj){theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide)},onModelViewerInit:function(playerObj){theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide)},onVideoVisible:function(e2){$(e2.target).closest(".slick-slider").slick("slickSetOption","swipe",!1)},onVideoHidden:function(e2){$(e2.target).closest(".slick-slider").slick("slickSetOption","swipe",!0)},onPlyrPlay:function(e2){$(e2.target).closest(".slick-slider").slick("slickSetOption","swipe",!1)},onPlyrPause:function(e2){$(e2.target).closest(".slick-slider").slick("slickSetOption","swipe",!0)},onModelViewerPlay:function(e2){$(e2.target).closest(".slick-slider").slick("slickSetOption","swipe",!1).slick("slickSetOption","accessibility",!1).closest(".quickbuy__media-container").addClass("media-playing")},onModelViewerPause:function(e2){$(e2.target).closest(".slick-slider").slick("slickSetOption","swipe",!0).slick("slickSetOption","accessibility",!0).closest(".quickbuy__media-container").removeClass("media-playing")}}),$slideshow.find(".product-media").trigger("mediaVisibleInitial"),$slideshow.on("afterChange",function(evt,slick,current){$(".product-media--activated").removeClass("product-media--activated").trigger("mediaHidden");var $currentMedia=$(".product-media",slick.$slides[current]).addClass("product-media--activated").trigger("mediaVisible");theme.productGallerySlideshowTabFix(slick.$slides,current),$slideshow.closest(".quickbuy__media-container").toggleClass("quickbuy__media-container--current-image",$currentMedia.hasClass("product-media--image")),$(this).closest(".quickbuy-container").trigger("changedsize")}),theme.productGallerySlideshowTabFix($slideshow.slick("getSlick").$slides,$slideshow.slick("getSlick").currentSlide),$.colorbox.resize();var $container=$(".quickbuy-form"),productData=JSON.parse($("[data-product-json]",$prod).html()),options={$container,enableHistoryState:!1,singleOptionSelector:"[data-single-option-selector]",originalSelectorId:"[data-product-select]",secondaryIdSelectors:"[data-product-secondary-select]",product:productData,productSingleObject:productData},variants=new slate.Variants(options);$container.on("variantChange",theme.variants.updateAddToCartState.bind(options)),$container.on("variantPriceChange",theme.variants.updateProductPrices.bind(options)),$(".quickbuy__product-media .slick-slide",$container).length>1&&$container.on("variantImageChange",function(evt){var variant=evt.variant,$found=$('.quickbuy__product-media .slick-slide:not(.slick-cloned)[data-media-id="'+variant.featured_media.id+'"]',$container);$found.length&&$found.closest(".slick-slider").slick("slickGoTo",$found.data("slick-index"))}),$container.on("variantChange",$.colorbox.resize),theme.initVariantSelectors($(".quickbuy .option-selector"),options.product,!0),$(document).trigger("cc:component:load",["custom-select",".quickbuy"]),Shopify.PaymentButton&&($(document).on("shopify:payment_button:loaded.themeQuickBuy",function(){$(document).off("shopify:payment_button:loaded.themeQuickBuy"),$.colorbox.resize(),buttonObserved=$(".quickbuy-form .shopify-payment-button")[0],buttonObserved&&buttonObserver.observe(buttonObserved,{attributes:!0,childList:!0,subtree:!0})}),Shopify.PaymentButton.init()),theme.initAjaxAddToCartForm($("form.ajax-product-form",$container));for(var recentProductData={handle:productData.handle,url:$qbButton.attr("href").split("?")[0],title:productData.title,vendor:productData.vendor,available:productData.available,image:productData.media&&productData.media.length>0?productData.media[0].preview_image.src:null,image2:productData.media&&productData.media.length>1?productData.media[1].preview_image.src:null,price:productData.price,priceVaries:productData.price_varies,compareAtPrice:productData.compare_at_price},lowestPriceVariant=productData.variants[0],i=1;i<productData.variants.length;i++)productData.variants[i].price<lowestPriceVariant.price&&(lowestPriceVariant=productData.variants[i]);lowestPriceVariant.unit_price_measurement&&(recentProductData.unitPrice=lowestPriceVariant.unit_price,recentProductData.unitPriceUnit=theme.variants.getBaseUnit(lowestPriceVariant)),theme.addToAndReturnRecentProducts(recentProductData)},onCleanup:function(){buttonObserver.disconnect(),theme.ProductMedia.destroy($(".quickbuy__media-container")),$(".quickbuy .slick-initialized").slick("unslick").off("afterChange"),$(".quickbuy-form").off("variantChange variantPriceChange variantImageChange"),theme.initAjaxAddToCartForm($(".quickbuy form.ajax-product-form"))}}),!1}}),$(document).on("click","#colorbox .quickbuy__close .js-close-quickbuy",function(){return $.colorbox.close(),!1}),$(document).on("click",".js-close-lightbox",function(){return $.colorbox.close(),!1}),$(document).on("change",".qty-wrapper > .cc-select",function(){var value=$(this).find('[aria-selected="true"]').data("value"),$input
4=$(this).siblings(".qty-actual").find('[name="quantity"]');value=="10+"?($input.val("10").closest(".qty-wrapper").addClass("hide-proxy"),setTimeout(function(){$input.select().focus()},10)):$input.val(value)});var $newsletterSuccess=$(".subscribe-form__response--success");$newsletterSuccess.length&&!$(".cc-popup-form__response--success").length&&$.colorbox({transition:"fade",html:'<div class="subscribe-form-lightbox-response">'+$newsletterSuccess.html()+"</div>",onOpen:function(){$("#colorbox").css("opacity",0)},onComplete:function(){$("#colorbox").animate({opacity:1},350)}}),$(".accent-background").length&&($(function(){theme.resizeAccent()}),$(window).on("debouncedresize",theme.resizeAccent),$(document).on("shopify:section:load",function(evt){$(evt.target).prev().hasClass("accent-background")&&theme.resizeAccent()}),$(document).on("shopify:section:reorder",theme.resizeAccent),$(document).on("shopify:section:load",theme.resizeAccent)),$(document).on("cc:video:play",function(){$(window).outerWidth()<768&&$("body").addClass("video-modal-open")}).on("cc:video:stop",function(){$(window).outerWidth()<768&&$("body").removeClass("video-modal-open")})}),theme.Sections.init(),theme.Sections.register("header",theme.Header,{deferredLoad:!1}),theme.Sections.register("footer",theme.Footer),theme.Sections.register("product",theme.Product,{deferredLoad:!1}),theme.Sections.register("blog",theme.Blog),theme.Sections.register("article",theme.Article),theme.Sections.register("slideshow",theme.Slideshow),theme.Sections.register("banner",theme.Banner),theme.Sections.register("standout-collection",theme.StandoutCollection),theme.Sections.register("get-the-look",theme.GetTheLook),theme.Sections.register("promotional-images",theme.PromotionalImages),theme.Sections.register("featured-collection",theme.FeaturedCollection),theme.Sections.register("list-collections",theme.ListCollections,{deferredLoad:!1}),theme.Sections.register("cart",theme.Cart,{deferredLoad:!1}),theme.Sections.register("image-with-text",theme.ImageWithText),theme.Sections.register("featured-product",theme.FeaturedProduct),theme.Sections.register("recently-viewed",theme.RecentlyViewed),theme.Sections.register("testimonials",theme.Testimonials),theme.Sections.register("gallery",theme.Gallery),theme.Sections.register("video",theme.VideoManager),theme.Sections.register("background-video",theme.VideoManager),theme.Sections.register("scrolling-banner",theme.ScrollingBannerSection),theme.Sections.register("search-template",theme.SearchTemplate,{deferredLoad:!1}),$(function($2){cc.sections.length?cc.sections.forEach(section=>{try{let data={};typeof section.deferredLoad<"u"&&(data.deferredLoad=section.deferredLoad),typeof section.deferredLoadViewportExcess<"u"&&(data.deferredLoadViewportExcess=section.deferredLoadViewportExcess),theme.Sections.register(section.name,section.section,data)}catch(err){console.error(`Unable to register section ${section.name}.`,err)}}):console.warn("Barry: No common sections have been registered.")})})(theme.jQuery); 5//# sourceMappingURL=/cdn/shop/t/13/assets/theme.js.map?v=127163021561253529881769703168
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.