PageSourceSearch

https://respoke.com/cdn/shop/t/30/assets/theme.nomin.js?v=27094504033749949101766703035

js respoke.com collected 2026-10-06 22:36:31 UTC 57,115 bytes, 20 lines download raw bytes

1(function(modules){function webpackJsonpCallback(data){for(var chunkIds=data[0],moreModules=data[1],executeModules=data[2],moduleId,chunkId,i2=0,resolves=[];i2<chunkIds.length;i2++)chunkId=chunkIds[i2],Object.prototype.hasOwnProperty.call(installedChunks,chunkId)&&installedChunks[chunkId]&&resolves.push(installedChunks[chunkId][0]),installedChunks[chunkId]=0;for(moduleId in moreModules)Object.prototype.hasOwnProperty.call(moreModules,moduleId)&&(modules[moduleId]=moreModules[moduleId]);for(parentJsonpFunction&&parentJsonpFunction(data);resolves.length;)resolves.shift()();return deferredModules.push.apply(deferredModules,executeModules||[]),checkDeferredModules()}function checkDeferredModules(){for(var result,i2=0;i2<deferredModules.length;i2++){for(var deferredModule=deferredModules[i2],fulfilled=!0,j=1;j<deferredModule.length;j++){var depId=deferredModule[j];installedChunks[depId]!==0&&(fulfilled=!1)}fulfilled&&(deferredModules.splice(i2--,1),result=__webpack_require__(__webpack_require__.s=deferredModule[0]))}return result}var installedModules={},installedChunks={16:0},deferredModules=[];function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})}
1,__webpack_require__.t=function(value,mode){if(mode&1&&(value=__webpack_require__(value)),mode&8||mode&4&&typeof value=="object"&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),mode&2&&typeof value!="string")for(var key in value)__webpack_require__.d(ns,key,function(key2){return value[key2]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="";var jsonpArray=window.loftWebpackJsonp=window.loftWebpackJsonp||[],oldJsonpFunction=jsonpArray.push.bind(jsonpArray);jsonpArray.push=webpackJsonpCallback,jsonpArray=jsonpArray.slice();for(var i=0;i<jsonpArray.length;i++)webpackJsonpCallback(jsonpArray[i]);var parentJsonpFunction=oldJsonpFunction;return deferredModules.push([60,0]),checkDeferredModules()})({0:(function(module,exports){module.exports=jQuery}),14:(function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target};exports.default=(function(w){if(!w)return;var toArray=function(nl){return[].slice.call(nl)},DrawState={IDLE:0,DIRTY_CONTENT:1,DIRTY_LAYOUT:2,DIRTY:3},fitties=[],redrawFrame=null,requestRedraw="requestAnimationFrame"in w?function(){w.cancelAnimationFrame(redrawFrame),redrawFrame=w.requestAnimationFrame(function(){return redraw(fitties.filter(function(f){return f.dirty&&f.active}))})}:function(){},redrawAll=function(type){return function(){fitties.forEach(function(f){return f.dirty=type}),requestRedraw()}},redraw=function(fitties2){fitties2.filter(function(f){return!f.styleComputed}).forEach(function(f){f.styleComputed=computeStyle(f)}),fitties2.filter(shouldPreStyle).forEach(applyStyle);var fittiesToRedraw=fitties2.filter(shouldRedraw);fittiesToRedraw.forEach(calculateStyles),fittiesToRedraw.forEach(function(f){applyStyle(f),markAsClean(f)}),fittiesToRedraw.forEach(dispatchFitEvent)},markAsClean=function(f){return f.dirty=DrawState.IDLE},calculateStyles=function(f){f.availableWidth=f.element.parentNode.clientWidth,f.currentWidth=f.element.scrollWidth,f.previousFontSize=f.currentFontSize,f.currentFontSize=Math.min(Math.max(f.minSize,f.availableWidth/f.currentWidth*f.previousFontSize),f.maxSize),f.whiteSpace=f.multiLine&&f.currentFontSize===f.minSize?"normal":"nowrap"},shouldRedraw=function(f){return f.dirty!==DrawState.DIRTY_LAYOUT||f.dirty===DrawState.DIRTY_LAYOUT&&f.element.parentNode.clientWidth!==f.availableWidth},computeStyle=function(f){var style=w.getComputedStyle(f.element,null);f.currentFontSize=parseFloat(style.getPropertyValue("font-size")),f.display=style.getPropertyValue("display"),f.whiteSpace=style.getPropertyValue("white-space")},shouldPreStyle=function(f){var preStyle=!1;return f.preStyleTestCompleted?!1:(/inline-/.test(f.display)||(preStyle=!0,f.display="inline-block"),f.whiteSpace!=="nowrap"&&(preStyle=!0,f.whiteSpace="nowrap"),f.preStyleTestCompleted=!0,preStyle)},applyStyle=function(f){f.element.style.whiteSpace=f.whiteSpace,f.element.style.display=f.display,f.element.style.fontSize=f.currentFontSize+"px"},dispatchFitEvent=function(f){f.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:f.previousFontSize,newValue:f.currentFontSize,scaleFactor:f.currentFontSize/f.previousFontSize}}))},fit=function(f,type){return function(){f.dirty=type,f.active&&requestRedraw()}},init=function(f){f.originalStyle={whiteSpace:f.element.style.whiteSpace,display:f.element.style.display,fontSize:f.element.style.fontSize},observeMutations(f),f.newbie=!0,f.dirty=!0,fitties.push(f)},destroy=function(f){return function(){fitties=fitties.filter(function(_){return _.element!==f.element}),f.observeMutations&&f.observer.disconnect(),f.element.style.whiteSpace=f.originalStyle.whiteSpace,f.element.style.display=f.originalStyle.display,f.element.style.fontSize=f.originalStyle.fontSize}},subscribe=function(f){return function(){f.active||(f.active=!0,requestRedraw())}},unsubscribe=function(f){return function(){return f.active=!1}},observeMutations=function(f){f.observeMutations&&(f.observer=new MutationObserver(fit(f,DrawState.DIRTY_CONTENT)),f.observer.observe(f.element,f.observeMutations))},mutationObserverDefaultSetting={subtree:!0,childList:!0,characterData:!0}
1,defaultOptions={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in w?mutationObserverDefaultSetting:!1};function fittyCreate(elements,options){var fittyOptions=_extends({},defaultOptions,options),publicFitties=elements.map(function(element){var f=_extends({},fittyOptions,{element:element,active:!0});return init(f),{element:element,fit:fit(f,DrawState.DIRTY),unfreeze:subscribe(f),freeze:unsubscribe(f),unsubscribe:destroy(f)}});return requestRedraw(),publicFitties}function fitty(target){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof target=="string"?fittyCreate(toArray(document.querySelectorAll(target)),options):fittyCreate([target],options)[0]}var resizeDebounce=null,onWindowResized=function(){w.clearTimeout(resizeDebounce),resizeDebounce=w.setTimeout(redrawAll(DrawState.DIRTY_LAYOUT),fitty.observeWindowDelay)},events=["resize","orientationchange"];return Object.defineProperty(fitty,"observeWindow",{set:function(enabled){var method=(enabled?"add":"remove")+"EventListener";events.forEach(function(e){w[method](e,onWindowResized)})}}),fitty.observeWindow=!0,fitty.observeWindowDelay=100,fitty.fitAll=redrawAll(DrawState.DIRTY),fitty})(typeof window=="undefined"?null:window)}),23:(function(module,exports){}),60:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var external_jQuery_=__webpack_require__(0),external_jQuery_default=__webpack_require__.n(external_jQuery_),events=__webpack_require__(1),events_default=__webpack_require__.n(events),fitty=__webpack_require__(14),fitty_default=__webpack_require__.n(fitty),flickity=__webpack_require__(2),flickity_default=__webpack_require__.n(flickity),micromodal_es=__webpack_require__(5),global_video=__webpack_require__(7),product_section=__webpack_require__(10),cart=__webpack_require__(12),cart_events=__webpack_require__(3);function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _iterableToArray(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}window.jQuery=external_jQuery_default.a;var Modernizr=__webpack_require__(23),LoftSiteVideo=Object(global_video.a)();(function(a){a.fn.prepareTransition=function(){return this.each(function(){var b=a(this);b.one("TransitionEnd webkitTransitionEnd transitionend oTransitionEnd",function(){b.removeClass("is-transitioning")});var c=["transition-duration","-moz-transition-duration","-webkit-transition-duration","-o-transition-duration"],d=0;a.each(c,function(a2,c2){d=parseFloat(b.css(c2))||d}),d!=0&&(b.addClass("is-transitioning"),b[0].offsetWidth)})}})(jQuery);function replaceUrlParam(e,r,a){var n=new RegExp("("+r+"=).*?(&|$)"),c=e;return c=e.search(n)>=0?e.replace(n,"$1"+a+"$2"):c+(c.indexOf("?")>0?"&":"?")+r+"="+a}/*!
2* FitVids 1.1
3*
4* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
5* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
6* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
7*
8*/(function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("div");a.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',r.appendChild(a.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e2=['iframe[src*="player.vimeo.com"]','
8iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e2.push(i.customSelector);var r2=".fitvidsignore";i.ignore&&(r2=r2+", "+i.ignore);var a2=t(this).find(e2.join(","));(a2=(a2=a2.not("object object")).not(r2)).each(function(){var e3=t(this);if(!(e3.parents(r2).length>0||this.tagName.toLowerCase()==="embed"&&e3.parent("object").length||e3.parent(".fluid-width-video-wrapper").length)){e3.css("height")||e3.css("width")||!isNaN(e3.attr("height"))&&!isNaN(e3.attr("width"))||(e3.attr("height",9),e3.attr("width",16));var i2=(this.tagName.toLowerCase()==="object"||e3.attr("height")&&!isNaN(parseInt(e3.attr("height"),10))?parseInt(e3.attr("height"),10):e3.height())/(isNaN(parseInt(e3.attr("width"),10))?e3.width():parseInt(e3.attr("width"),10));if(!e3.attr("name")){var a3="fitvid"+t.fn.fitVids._count;e3.attr("name",a3),t.fn.fitVids._count++}e3.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i2+"%"),e3.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0})(window.jQuery||window.Zepto);/*!
9 * Check if an element is out of the viewport
10 * (c) 2018 Chris Ferdinandi, MIT License, https://gomakethings.com
11 * @param  {Node}  elem The element to check
12 * @return {Object}     A set of booleans for each side of the element
13 */var isOutOfViewport=function(elem){var bounding=elem.getBoundingClientRect(),out={};return out.top=bounding.top<0,out.left=bounding.left<0,out.bottom=bounding.bottom>(window.innerHeight||document.documentElement.clientHeight),out.right=bounding.right>(window.innerWidth||document.documentElement.clientWidth),out.any=out.top||out.left||out.bottom||out.right,out.all=out.top&&out.left&&out.bottom&&out.right,out};/*!
14 * Get all direct descendant elements that match a test condition
15 * (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com
16 * @param  {Node}   elem     The element to get direct descendants for
17 * @param  {Function} callback The test condition
18 * @return {Array}           The matching direct descendants
19 */function childrenMatches(elem,callback){return Array.from(elem.children).filter(callback)}window.themeInfo={name:"Loft"},window.themeData={name:"Loft",version:"2.4.1",jQuery:""+external_jQuery_default.a.fn.jquery,settings:{}};var videoPlayer=[];typeof Shopify=="undefined"&&(Shopify={}),window.timber=window.timber||{},timber.cacheSelectors=function(){timber.cache={$html:external_jQuery_default()("html"),$body:external_jQuery_default()(document.body),$navigation:external_jQuery_default()("#AccessibleNav"),$mobileSubNavToggle:external_jQuery_default()(".mobile-nav__toggle"),$changeView:external_jQuery_default()(".change-view"),$productImage:external_jQuery_default()("#ProductPhotoImg"),$thumbImages:external_jQuery_default()("#ProductThumbs").find("a.product-single__thumbnail"),$recoverPasswordLink:external_jQuery_default()("#RecoverPassword"),$hideRecoverPasswordLink:external_jQuery_default()("#HideRecoverPasswordLink"),$recoverPasswordForm:external_jQuery_default()("#RecoverPasswordForm"),$customerLoginForm:external_jQuery_default()("#CustomerLoginForm"),$passwordResetSuccess:external_jQuery_default()("#ResetSuccess")}},timber.init=function(){timber.cacheSelectors(),timber.drawersInit(),timber.responsiveVideos(),timber.loginForms()},timber.drawersInit=function(){timber.LeftDrawer=new timber.Drawers("NavDrawer","left")},timber.getHash=function(){return window.location.hash},timber.responsiveVideos=function(){var $iframeVideo=external_jQuery_default()('.rte iframe[src*="youtube.com/embed"], .rte iframe[src*="player.vimeo"]'),$iframeReset=$iframeVideo.add("iframe#admin_bar_iframe");$iframeVideo.each(function(){external_jQuery_default()(this).wrap('<div class="video-wrapper"></div>')}),$iframeReset.each(function(){this.src=this.src})},timber.loginForms=function(){function showRecoverPasswordForm(){timber.cache.$recoverPasswordForm.show(),timber.cache.$customerLoginForm.hide()}function hideRecoverPasswordForm(){timber.cache.$recoverPasswordForm.hide(),timber.cache.$customerLoginForm.show()}timber.cache.$recoverPasswordLink.on("click",function(evt){evt.preventDefault(),showRecoverPasswordForm()}),timber.cache.$hideRecoverPasswordLink.on("click",function(evt){evt.preventDefault(),hideRecoverPasswordForm()}),timber.getHash()=="#recover"&&showRecoverPasswordForm()},timber.resetPasswordSuccess=function(){timber.cache.$passwordResetSuccess.show()},timber.Drawers=(function(){var Drawer=function(id,position,options){var defaults={close:".js-drawer-close",open:".js-drawer-open-"+position,openClass:"js-drawer-open",dirOpenClass:"js-drawer-open-bottom"};if(this.$nodes={parent:external_jQuery_default()("body, html"),page:external_jQuery_default()("#PageContainer"),moved:external_jQuery_default()(".is-moved-by-drawer")},this.config=external_jQuery_default.a.extend(defaults,options),this.position=position,this.$drawer=external_jQuery_default()("#"+id),!this.$drawer.length)return!1;this.drawerIsOpen=external_jQuery_default()("html").hasClass("js-drawer-open"),this.init()};return Drawer.prototype.init=function(){external_jQuery_default()(".js-drawer-open-left").off("click"),this.$drawer.find(this.config.close).off("click"),external_jQuery_default()(".js-drawer-open-left").on("click",external_jQuery_default.a.proxy(this.open,this)),this.$drawer.find(this.config.close).on("click",external_jQuery_default.a.proxy(this.close,this))},Drawer.prototype.open=function(evt){var externalCall=!1;if(evt?evt.preventDefault():externalCall=!0,evt&&evt.stopPropagation&&(evt.stopPropagation(),this.$activeSource=external_jQuery_default()(evt.currentTarget)),this.drawerIsOpen&&!externalCall)return this.close();timber.cache.$body.trigger("beforeDrawerOpen.timber",this),this.config.onDrawerOpen&&typeof this.config.onDrawerOpen=="function"&&(externalCall||this.config.onDrawerOpen()),this.$activeSource&&this.$activeSource.attr("aria-expanded")&&this.$activeSource.attr("aria-expanded","true"),this.$nodes.page.on("touchmove.drawer",function(){return!1}),this.$nodes.page.on("click.drawer",external_jQuery_default.a.proxy(function(){return this.close(),!1},this)),this.trapFocus(this.$drawer,"drawer_focus"),this.$nodes.moved.addClass("is-transitioning"),this.$drawer.prepareTransition(),this.$nodes.parent.addClass(this.config.openClass+" "+this.config.dirOpenClass),this.drawerIsOpen=!0;function resizeGroup(){var newCalc=external_jQuery_default()("#NavDrawer").outerHeight()-(external_jQuery_default()(".drawer__header").outerHeight()+external_jQuery_default()(".mobile__nav-social-media").innerHeight())-55;external_jQuery_default()(".mobile-nav__link-group").css("height",newCalc)}setTimeout(function(){resizeGroup()},600);var lastWidth=external_jQuery_default()(window).width();external_jQuery_default()(window).on("resize",function(){external_jQuery_default()(window).width()!=lastWidth&&(lastWidth=external_jQuery_default()(window).width(),resizeGroup())}),timber.cache.$body.trigger("afterDrawerOpen.timber",this)},Drawer.prototype.close=function(){this.drawerIsOpen&&(timber.cache.$body.trigger("beforeDrawerClose.timber",this),external_jQuery_default()(document.activeElement).trigger("blur"),this.$nodes.moved.prepareTransition({disableExisting:!0}),this.$drawer.prepareTransition({disableExisting:!0}),this.$nodes.parent.removeClass(this.config.dirOpenClass+" "+this.config.openClass),this.drawerIsOpen=!1,this.removeTrapFocus(this.$drawer,"drawer_focus"),this.$nodes.page.off(".drawer"),timber.cache.$body.trigger("afterDrawerClose.timber",this))},Drawer.prototype.trapFocus=function($container,eventNamespace){var eventName=eventNamespace?"focusin."+eventNamespace:"focusin";$container.attr("tabindex","-1"),$container.focus(),external_jQuery_default()(document).on(eventName,function(evt){$container[0]!==evt.target&&!$container.has(evt.target).length&&$container.focus()})},Drawer.prototype.removeTrapFocus=function($container,eventNamespace){var eventName=eventNamespace?"focusin."+eventNamespace:"focusin";$container.removeAttr("tabindex"),external_jQuery_default()(document).off(eventName)},Drawer})(),external_jQuery_default()(timber.init);var theme=window.theme||theme||{};theme.Helpers=(function(){var touchDevice=!1;function setTouch(){touchDevice=!0}function isTouch(){return touchDevice}return{setTouch:setTouch,isTouch:isTouch}})(),theme.Disclosure=(function(){var selectors={disclosureList:"[data-disclosure-list]",disclosureToggle:"[data-disclosure-toggle]",disclosureInput:"[data-disclosure-input]",disclosureOptions:"[data-disclosure-option]",disclosureSection:".disclosure-section"},classes={listVisible:"disclosure-list--visible",layerTop:"disclosure-section--zIndex"};function Disclosure($disclosure){this.$container=$disclosure,this.cache={},this._cacheSelectors(),this._connectOptions(),this._connectToggle(),this._onFocusOut()}return Disclosure.prototype=Object.assign({},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),$disclosureSection:external_jQuery_default()(selectors.disclosureSection)}},_connectToggle:function(){this.cache.$disclosureToggle.on("click",function(evt){var ariaExpanded=external_jQuery_default()(evt.currentTarget).attr("aria-expanded")==="true";external_jQuery_default()(evt.currentTarget).attr("aria-expanded",!ariaExpanded),this.cache.$disclosureList.toggleClass(classe
19s.listVisible),this.cache.$disclosureSection.toggleClass(classes.layerTop)}.bind(this))},_connectOptions:function(){this.cache.$disclosureOptions.on("click",function(evt){this._submitForm(external_jQuery_default()(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=external_jQuery_default()(evt.currentTarget).has(evt.relatedTarget).length>0,isVisible=this.cache.$disclosureList.hasClass(classes.listVisible);isVisible&&!childInFocus&&this._hideList()}.bind(this)),this.$container.on("keyup",function(evt){evt.which===slate.utils.keyboardKeys.ESCAPE&&(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),external_jQuery_default()("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.$disclosureSection.removeClass(classes.layerTop),this.cache.$disclosureToggle.attr("aria-expanded",!1)},unload:function(){external_jQuery_default()("body").off("click",this.bodyOnClick),this.cache.$disclosureOptions.off(),this.cache.$disclosureToggle.off(),this.cache.$disclosureList.off(),this.$container.off()}}),Disclosure})(),theme.Site=(function(){return{init:function(){this._initPlugins(),this._initScrollFixed(),this._extendjQuery()},_initPlugins:function(){var animations_active=theme.settings.enable_animations;if(!(animations_active==="false"||animations_active===void 0)){var intersectionObserver=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){if(entry.isIntersecting){var childElements=entry.target.querySelectorAll("div");childElements.forEach(function(item){(item.style.backgroundImage!==""||item.hasAttribute("data-bgset"))&&item.classList.add("section__load-animations--fade")});var leftRevealAnimationElements=entry.target.querySelectorAll(".section__image-animations--left-reveal");leftRevealAnimationElements.length>0&&leftRevealAnimationElements.forEach(function(elem){elem.classList.remove("section__image-animations--left-reveal")}),external_jQuery_default.a.each(external_jQuery_default()(entry.target).find("div"),function(i,elem){elem.style.backgroundImage!==""&&(elem.classList.contains("section__image-animations--scale")?(elem.classList.add("section__load-animations--scale"),elem.classList.remove("section__load-animations--fade")):elem.classList.contains("plyr__poster")==!1&&elem.classList.add("section__load-animations--fade"))}),external_jQuery_default()(entry.target).find("img").length>0&&external_jQuery_default.a.each(external_jQuery_default()(entry.target).find("img"),function(i,elem){elem.classList.contains("section__image-animations--scale")?(elem.classList.add("section__load-animations--scale"),elem.classList.remove("section__load-animations--fade")):elem.classList.add("section__load-animations--fade")}),observer.unobserve(entry.target)}})}),elements=_toConsumableArray(document.querySelectorAll(".shopify-section"));elements.forEach(function(element){return intersectionObserver.observe(element)})}},_initScrollFixed:function(){var scrollFixedSelector=".scroll_fixed";if(external_jQuery_default()(scrollFixedSelector).offset()){var leftInit=external_jQuery_default()(scrollFixedSelector).offset().left,top=external_jQuery_default()(scrollFixedSelector).offset().top-parseFloat(external_jQuery_default()(scrollFixedSelector).css("margin-top").replace(/auto/,0));external_jQuery_default()(window).scroll(function(event){var x=0-external_jQuery_default()(this).scrollLeft(),y=external_jQuery_default()(this).scrollTop();y>=top?external_jQuery_default()(scrollFixedSelector).addClass("fixed"):external_jQuery_default()(scrollFixedSelector).removeClass("fixed"),external_jQuery_default()(this.selectors.scrollFixed).offset({left:x+leftInit})})}},_extendjQuery:function(){external_jQuery_default.a.fn.extend({mySection:function(){return this.closest("[data-section-id]")}})},_initVideo:function(){if(window.YT&&window.YT.loaded)external_jQuery_default()("[data-youtube]").length>-1&&setupVideo();else if(external_jQuery_default()("[data-youtube]").length>-1){var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag),tag.onload=function(){setTimeout(function(){setupVideo()},800)}}function setupVideo(){window.YT.ready(function(){external_jQuery_default.a.each(external_jQuery_default()("[data-youtube]"),function(index,elm){var bgVideoID=external_jQuery_default()(elm).data("video");if(!window.videoPlayer||window.videoPlayer[bgVideoID]==null){var onPlayerReady=function(event){videoPlayer[videoID]=event.target,typeof external_jQuery_default()(elm).data("aspect-ratio")!="undefined"&&external_jQuery_default()(elm).fitVids(),setTimeout(function(){event.target.playVideo()},0),window.videoPlayer=videoPlayer;var videoDuration=event.target.getDuration();setInterval(function(){var videoCurrentTime=event.target.getCurrentTime(),timeDifference=videoDuration-videoCurrentTime;2>timeDifference>0&&event.target.seekTo(0)},1e3)},autoplay=external_jQuery_default()(elm).data("autoplay"),controls=external_jQuery_default()(elm).data("c
19ontrols"),loop=external_jQuery_default()(elm).data("loop"),playerOptions={autoplay:0,mute:1,autohide:1,modestbranding:1,rel:0,showinfo:0,controls:0,disablekb:1,enablejsapi:1,iv_load_policy:3,loop:loop,playlist:bgVideoID},videoOverlay=external_jQuery_default()(elm).siblings(".video-preload-image"),videoID=external_jQuery_default()(".video-player",elm).attr("id"),ytPlayer;ytPlayer=new YT.Player(videoID,{width:"1280px",height:"720px",videoId:bgVideoID,playerVars:playerOptions,events:{onReady:onPlayerReady}})}})})}}}})();function fadeOut(el){el.style.opacity=1,(function fade(){(el.style.opacity-=.1)<0?el.style.display="none":requestAnimationFrame(fade)})()}function loadPage(){var statusIcon=document.getElementById("status"),loadingBackground=document.getElementById("preloader");statusIcon&&fadeOut(statusIcon),loadingBackground&&fadeOut(loadingBackground),theme.Site.init()}var windowType=window.parent.location;if(theme.settings.enable_preloader&&window.location===window.parent.location&&windowType.toString().indexOf("shopifypreview")<0)loadPage();else{var bodyElement=document.body;bodyElement.classList.remove("animations-enabled"),loadPage()}var version=detectIE();function detectIE(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>0)return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);var trident=ua.indexOf("Trident/");if(trident>0){var rv=ua.indexOf("rv:");return parseInt(ua.substring(rv+3,ua.indexOf(".",rv)),10)}var edge=ua.indexOf("Edge/");return edge>0?parseInt(ua.substring(edge+5,ua.indexOf(".",edge)),10):!1}theme.Maps=(function(){var apiStatus=null,mapsToLoad=[],errors={addressNoResults:"No results for that address",addressQueryLimit:'You have exceeded the Google API usage limit. Consider upgrading to a <a href="https://developers.google.com/maps/premium/usage-limits">Premium Plan</a>.',addressError:'"Error looking up that address',authError:"There was a problem authenticating your Google Maps account."},selectors={section:'[data-section-type="map"]',map:"[data-map]",mapOverlay:"[data-map-overlay]",mapType:"[data-type]"},classes={mapError:"map-section--load-error",errorMsg:"map-section__error errors text-center"};window.gm_authFailure=function(){Shopify.designMode&&(external_jQuery_default()(selectors.section).addClass(classe
19s.mapError),external_jQuery_default()(selectors.map).remove(),external_jQuery_default()(selectors.mapOverlay).after('<div class="'+classes.errorMsg+'">'+theme.strings.authError+"</div>"))};function Map(container){this.$container=external_jQuery_default()(container),this.$type=this.$container.find(selectors.mapType),this.$map=this.$container.find(selectors.map),this.key=this.$map.data("api-key"),typeof this.key!="undefined"&&(apiStatus==="loaded"?this.createMap():(mapsToLoad.push(this),apiStatus!=="loading"&&(apiStatus="loading",typeof window.google=="undefined"&&external_jQuery_default.a.getScript("https://maps.googleapis.com/maps/api/js?key="+this.key).then(function(){apiStatus="loaded",initAllMaps()}))))}function initAllMaps(){external_jQuery_default.a.each(mapsToLoad,function(index,instance){instance.createMap()})}function geolocate($map){var deferred=external_jQuery_default.a.Deferred(),geocoder=new google.maps.Geocoder,address=$map.data("address-setting");return geocoder.geocode({address:address},function(results,status2){status2!==google.maps.GeocoderStatus.OK&&deferred.reject(status2),deferred.resolve(results)}),deferred}return Map.prototype={createMap:function(){var $map=this.$map,$type=this.$type;return geolocate($map).then(function(results){var mapOptions={zoom:$map.data("zoom"),center:results[0].geometry.location,draggable:!1,clickableIcons:!1,scrollwheel:!1,disableDoubleClickZoom:!0,disableDefaultUI:!0,mapTypeId:$map.data("type")},map=this.map=new google.maps.Map($map[0],mapOptions),center=this.center=map.getCenter(),marker=new google.maps.Marker({map:map,position:map.getCenter()});google.maps.event.addDomListener(window,"resize",function(){google.maps.event.trigger(map,"resize"),map.setCenter(center),$map.removeAttr("style")})}.bind(this)).fail(function(){var errorMessage;switch(status){case"ZERO_RESULTS":errorMessage=errors.addressNoResults;break;case"OVER_QUERY_LIMIT":errorMessage=errors.addressQueryLimit;break;case"REQUEST_DENIED":errorMessage=errors.authError;break;default:errorMessage=errors.addressError;break}
19Shopify.designMode&&$map.parent().addClass(classes.mapError).html('<div class="'+classes.errorMsg+'">'+errorMessage+"</div>")})},onUnload:function(){this.$map.length!==0&&google.maps.event.clearListeners(this.map,"resize")}},Map})(),(function(){external_jQuery_default()(document).one("touchstart",function(){theme.Helpers.setTouch()}),theme.HashScrolling=function(){external_jQuery_default()('a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var target=external_jQuery_default()(this.hash);if(target=target.length?target:external_jQuery_default()("[name="+this.hash.slice(1)+"]"),target.length)return external_jQuery_default()("html, body").animate({scrollTop:target.offset().top},1e3),!1}})}})(),theme.Navigation=(function(){return{_selectors:{id:"#AccessibleNav",dim:".dim",openedNav:"#AccessibleNav .nav-hover",closeOnMouseLeave:".main-menu-dropdown, .site-nav--has-dropdown",nextNav:".site-header .header-icons",topLevelMenuItems:".site-nav--has-dropdown",childNavLinks:".child-site-nav__link",subMenuDiv:".child-div",sectionHeaderMenuItems:".nav-section-header",bottomLevelMenuItems:".grandchild-link .site-nav__link",siteHeaderId:"#header",mainMenuDropdown:".main-menu-dropdown",singleDropdown:".single-dropdown",navigationList:".header__nav",navItemContainer:".site-nav__link-container"},_classes:{hover:"nav-hover",navBg:"mega-nav-bg"},_scrollHandler:null,init:function(){var self=this;self._scrollHandler=self.exitNav.bind(self);var navUL=external_jQuery_default()("#AccessibleNav").height(),navRows=navUL/external_jQuery_default()("#AccessibleNav li").outerHeight(),singleDMenu=!1,multiNav=!1;if(external_jQuery_default()(self._selectors.singleDropdown).length>0)var singleDMenu=!0;if(navRows>=2){var multiNav=!0;external_jQuery_default()("#AccessibleNav").addClass("multinav")}!multiNav||singleDMenu?(external_jQuery_default()(self._selectors.topLevelMenuItems).mouseenter(function(){if(external_jQuery_default()(self._selectors.topLevelMenuItems).removeClass(self._classes.hover),singleDMenu){var $link=external_jQuery_default()(this),$dropdown=external_jQuery_default()("> .child-link",$link),screenWidth=external_jQuery_default()(window).width(),edge=$link.outerWidth()+$link.offset().left+$dropdown.width(),offscreen=edge-screenWidth>$link.outerWidth()*.01;external_jQuery_default()(this).addClass(self._classes.navBg),offscreen?($link.addClass("single-dropdown--reverse"),$dropdown.css({right:0,left:"initial"})):$link.removeClass("single-dropdown--reverse"),external_jQuery_default()(".has-children").on("mouseover",function(){var $menuItem=external_jQuery_default()(this),$submenuWrapper=external_jQuery_default()("> .grandchild-link",$menuItem);$menuItem.addClass("menu-open");var menuItemPos=$menuItem.position(),edge2=$menuItem.outerWidth()+$menuItem.offset().left+$submenuWrapper.width(),screenWidth2=external_jQuery_default()(window).width(),offscreen2=edge2-screenWidth2>
19$menuItem.outerWidth()*.01,direction={top:menuItemPos.top,left:menuItemPos.left+Math.round($menuItem.outerWidth()*.8)};offscreen2?(direction={top:menuItemPos.top,left:-Math.abs(menuItemPos.left+Math.round($menuItem.outerWidth()))},$submenuWrapper.css(direction),$submenuWrapper.find("ul").addClass("dropdown-left")):($submenuWrapper.css(direction),$submenuWrapper.find("ul").removeClass("dropdown-left"))}),external_jQuery_default()(".has-children").on("mouseleave",function(){var $menuItem=external_jQuery_default()(this);$menuItem.removeClass("menu-open")})}else external_jQuery_default()(self._selectors.siteHeaderId).addClass(self._classes.navBg);external_jQuery_default()(this).addClass(self._classes.hover),external_jQuery_default()(self._selectors.dim).show(),external_jQuery_default()(window).scroll(self._scrollHandler)}),singleDMenu||external_jQuery_default()(self._selectors.topLevelMenuItems).mouseleave(function(){setTimeout(function(){external_jQuery_default()(".main-menu-dropdown:hover").length==0&&external_jQuery_default()("#AccessibleNav > .site-nav--has-dropdown:hover").length==0&&self.exitNav()},500)}),singleDMenu&&external_jQuery_default()(self._selectors.closeOnMouseLeave).mouseleave(function(){external_jQuery_default()(this).removeClass(self._classes.navBg),self.exitNav()}),external_jQuery_default()(self._selectors.siteHeaderId).mouseleave(function(){external_jQuery_default()("main-menu-dropdown:hover").length==0&&!external_jQuery_default()("#AccessibleNav").hasClass("multinav")&&self.exitNav()})):(external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id,"#AccessibleNav > li").unbind("mouseenter mouseleave"),external_jQuery_default()(self._selectors.topLevelMenuItems).click(function(e){return!1}),external_jQuery_default()(self._selectors.childNavLinks).click(function(e){return e.stopPropagation(),!0}),external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id).click(function(){self.exitNav(),external_jQuery_default()(self._selectors.siteHeaderId).addClass(self._classes.navBg),external_jQuery_default()(this).addClass(self._classes.hover),external_jQuery_default()(self._selectors.dim).show(),external_jQuery_default()(window).scroll(self._scrollHandler)}),external_jQuery_default()(window).click(function(){external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id).hasClass(self._classes.hover)&&self.exitNav()}));function checkNavigationRows(parentContainer,childElement){return parentContainer.offsetHeight/childElement.offsetHeight}external_jQuery_default()(window).resize(function(){if(external_jQuery_default()(window).width()>768){var mainNavigationList=document.querySelector(self._selectors.navigationList),firstMenuItem=mainNavigationList.querySelector(self._selectors.navItemContainer),numberOfRows=checkNavigationRows(mainNavigationList,firstMenuItem),naviRows=checkNavigationRows(mainNavigationList,firstMenuItem),singleDMenus=!1,multiNavi=!1;external_jQuery_default()(self._selectors.singleDropdown).length>0&&(singleDMenus=!0),naviRows>1?(multiNavi=!0,external_jQuery_default()("#AccessibleNav").addClass("multinav")):external_jQuery_default()("#AccessibleNav").removeClass("multinav"),!multiNavi||singleDMenus?(multiNavi||external_jQuery_default()("#AccessibleNav > .site-nav--active").mouseenter(function(){external_jQuery_default()("#AccessibleNav").hasClass("multinav")||self.exitNav()}),external_jQuery_default()(self._selectors.topLevelMenuItems).mouseenter(function(){external_jQuery_default()(self._selectors.topLevelMenuItems).removeClass(self._classes.hover),singleDMenus?external_jQuery_default()(this).addClass(self._classes.navBg):external_jQuery_default()(self._selectors.siteHeaderId).addClass(self._classes.navBg),external_jQuery_default()(this).addClass(self._classes.hover),external_jQuery_default()(self._selectors.dim).show(),external_jQuery_default()(window).scroll(self._scrollHandler)}),singleDMenus||external_jQuery_default()(self._selectors.topLevelMenuItems).mouseleave(function(){setTimeout(function(){external_jQuery_default()(".main-menu-dropdown:hover").length==0&&external_jQuery_default()("#AccessibleNav > li:hover").length==0&&self.exitNav()},500)}),singleDMenus&&external_jQuery_default()(self._selectors.closeOnMouseLeave).mouseleave(function(){external_jQuery_default()(this).removeClass(self._classes.navBg),self.exitNav()}),external_jQuery_default()(self._selectors.siteHeaderId).mouseleave(function(){external_jQuery_default()("main-menu-dropdown:hover").length==0&&!external_jQuery_default()("#AccessibleNav").hasClass("multinav")&&self.exitNav()})):(external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id,"#AccessibleNav > .site-nav--active").unbind("mouseenter mouseleave"),external_jQuery_default()(self._selectors.topLevelMenuItems).click(function(e){return!1}),external_jQuery_default()(self._selectors.childNavLinks).click(function(e){return e.stopPropagation(),!0}),external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id).click(function(){self.exitNav(),external_jQuery_default()(self._selectors.siteHeaderId).addClass(self._classes.navBg),external_jQuery_default()(this).addClass(self._classes.hover),external_jQuery_default()(self._selectors.dim).show(),external_jQuery_default()(window).scroll(self._scrollHandler)}),external_jQuery_default()(window).click(function(){external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id).hasClass(self._classes.hover)&&self.exitNav()}))}}),this.Keyboard.init()},displayOrHideSharedElements:function(hide){hide?(external_jQuery_default()(this._selectors.dim).hide(),external_jQuery_default()(this._selectors.siteHeaderId).removeClass(this._classes.navBg)):(external_jQuery_default()(this._selectors.dim).show(),external_jQuery_default()(this._selectors.siteHeaderId).addClass(this._classes.navBg))},exitNav:function(){var $mainNavBar=external_jQuery_default()(this._selectors.id);this.displayOrHideSharedElements($mainNavBar.closest("[data-section-id]"),!0),$mainNavBar.find(this._selectors.topLevelMenuItems).removeClass(this._classes.navBg),$mainNavBar.find(this._selectors.topLevelMenuItems).removeClass(this._classes.hover),$mainNavBar.find(this._selectors.mainMenuDropdown+", "+this._selectors.singleDropdown).css("display",""),external_jQuery_default()(window).off("scroll",this._scrollHandler)},initTimber:function(){timber.cacheSelectors(),timber.drawersInit()},Keyboard:{_selectors:null,_classes:null,_scrollHandler:null,init:function(){var self=this;self._selectors=theme.Navigation._selectors,self._classes=external_jQuery_default.a.extend(theme.Navigation._classes,{subMenuDiv:"child-div"}),self._scrollHandler=theme.Navigation._scrollHandler,external_jQuery_default()(document).keyup(function(e){if(e.keyCode===27)return theme.Navigation.exitNav(),!1}),external_jQuery_default()(self._selectors.topLevelMenuItems,self._selectors.id).each(function(){var $this=external_jQuery_default()(this);$this.keydown(function(e){if(37<=e.keyCode&&e.keyCode<=40){e.preventDefault();var $this2=external_jQuery_default()(this);switch(e.keyCode){case 38:self._closeMainNav(external_jQuery_default()(this));break;case 40:$this2.hasClass(self._classes.hover)?self._focusFirstAvailableSubMenu($this2):self._openMainNav(external_jQuery_default()(this));break;case 37:case 39:self._openAdjacentNav($this2,e.keyCode==37,$this2.hasClass(self._classes.hover));break}}}),$this.find(self._selectors.sectionHeaderMenuItems).keydown(function(e){if(37<=e.keyCode&&e.keyCode<=40)switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case 38:var $topNav=external_jQuery_default()(this).closest(self._selectors.topLevelMenuItems);$topNav.children("a").focus();break;case 40:external_jQuery_default()(this).parent().find(self._selectors.bottomLevelMenuItems+":first").focus();break;case 37:case 39:self._focusNextTitle(external_jQuery_default()(this).parent(),e.keyCode==37);break}}),$this.find(self._selectors.bottomLevelMenuItems).keydown(function(e){if(37<=e.keyCode&&e.keyCode<=40){e.preventDefault(),e.stopPropagation();var $this2=external_jQuery_default()(this),myIndex=$this2.parent().index();switch(e.keyCode){case 38:case 40:self._focusSiblingMenuItem($this2.parent(),e.keyCode==38);break;case 37:case 39:self._focusAdjacentMenuItem($this2.closest(self._selectors.subMenuDiv),e.keyCode==37,myIndex);break}}})})},_focusFirstAvailableSubMenu:function($nav){var toFocus=$nav.find(this._selectors.sectionHeaderMenuItems+":first");toFocus&&toFocus.length>0?toFocus.focus():$nav.find(this._selectors.bottomLevelMenuItems+":first").focus()},_openMainNav:function($nav,ignoreFocus){theme.Navigation.displayOrHideSharedElements(),$nav.find(this._selectors.mainMenuDropdown).show(),$nav.addClass(this._classes.hover),ignoreFocus?$nav.children("a").focus():this._focusFirstAvailableSubMenu($nav),external_jQuery_default()(window).scroll(this._scrollHandler)},_closeMainNav:function($nav){theme.Navigation.displayOrHideSharedElements($nav.mySection(),!0),$nav.find(this._selectors.mainMenuDropdown).hide(),$nav.removeClass(this._classes.hover),external_jQuery_default()(window).off("scroll",theme.Navigation._scrollHandler)},_getAdjacentElement:function($nav,goLeft,selector){return goLeft?$nav.prev(selector):$nav.next(selector)},_openAdjacentNav:function($nav,goLeft,ignoreFocus){var $adjacent=this._getAdjacentElement($nav,goLeft,this._selectors.topLevelMenuItems);$adjacent.length>0&&(this._closeMainNav($nav),this._openMainNav($adjacent,ignoreFocus))},_focusNextTitle:function($nav,goLeft){var $adjacent=this._getAdjacentElement($nav,goLeft,this._selectors.subMenuDiv);$adjacent.length>0?$adjacent.find(this._selectors.sectionHeaderMenuItems).focus():this._openAdjacentNav($nav.closest(this._selectors.topLevelMenuItems),goLeft)},_focusSiblingMenuItem:function($nav,goUp){var $sibling;if(goUp)if($sibling=$nav.prev(),$sibling.length>0)$sibling.children("a").focus();else{var $closestTitle=$nav.closest(this._selectors.subMenuDiv).children("a");$closestTitle.length>0?$closestTitle.focus():$nav.closest(this._selectors.topLevelMenuItems).children("a").focus()}else $sibling=$nav.next(),$sibling.length>0&&$sibling.children("a").focus()},_performAdjacentMenuItemFocus:function($adjacentList,index){var $menuItems;$adjacentList.hasClass(this._classes.subMenuDiv)?$menuItems=$adjacentList.find(this._selectors.bottomLevelMenuItems):$menuItems=$adjacentList,index=$menuItems.length-1<index?$menuItems.length-1:index,$menuItems.eq(index).focus()},_focusAdjacentMenuItem:function($nav,goLeft,index){var $adjacentList=this._getAdjacentElement($nav,goLeft,this._selectors.subMenuDiv+","+this._selectors.bottomLevelMenuItems);$adjacentList.length>0?this._performAdjacentMenuItemFocus($adjacentList,index):this._openAdjacentNav($nav.closest(this._selectors.topLevelMenuItems),goLeft)}}}})(),theme.Search=(function(){return{_selectors:{searchForm:".search-bar",searchBaseSubmit:".js-base-search"},init:function(container){var self=this;self.container=container},initBaseSearch:function(container){var $container=external_jQuery_default()(container);$container.find(this._selectors.searchBaseSubmit).click(function(e){e.preventDefault();var $form=external_jQuery_default()(this).closest("form"),searchQuery=$form.find('input[name="q"]').val();searchQuery="q="+(searchQuery===""?"**":encodeURIComponent(searchQuery)),window.location.href=theme.routes.search_url+"?"+searchQuery+"&type=product"})}}})(),theme.SectionManager=function(){this.constructors={},this.sections=[],Shopify.designMode&&external_jQuery_default()("body").addClass("editor-window"),external_jQuery_default()(document).on("shopify:section:load",this._onSectionLoad.bind(this)).on("shopify:section:unload",this._onSectionUnload.bind(this)).on("shopify:block:select",this._onBlockSelect.bind(this)).on("shopify:block:deselect",this._onBlockDeselect.bind(this))},theme.SectionManager.prototype={_findSectionIndex:function(sectionId){return this.sections.findIndex(function(element){return element.i
19d===parseInt(sectionId)})},_runEventFunction:function(func,evt){func&&typeof func=="function"&&func(evt)},_createSection:function(container,constructor){var $container=external_jQuery_default()(container),type=$container.data("section-type");if(constructor=constructor||this.constructors[type],!!constructor){var newInstance=new constructor(container);newInstance.id=$container.data("section-id"),this.sections.push(newInstance)}},_onSectionLoad:function(evt){var container=external_jQuery_default()("[data-section-id]",evt.target)[0];container&&this._createSection(container)},_onSectionUnload:function(evt){var instanceNdx=this._findSectionIndex(evt.originalEvent.detail.sectionId);instanceNdx!==-1&&(this._runEventFunction(this.sections[instanceNdx].onUnload,evt),this.sections.splice(instanceNdx,1))},_onBlockSelect:function(evt){var instanceNdx=this._findSectionIndex(evt.originalEvent.detail.sectionId);instanceNdx!==-1&&this._runEventFunction(this.sections[instanceNdx].onBlockSelect,evt)},_onBlockDeselect:function(evt){var instanceNdx=this._findSectionIndex(evt.originalEvent.detail.sectionId);instanceNdx!==-1&&this._runEventFunction(this.sections[instanceNdx].onBlockDeselect,evt)},register:function(container,type,constructor){constructor!==void 0&&(this.constructors[type]=constructor,this._createSection(container,constructor))}},theme.Sections={},theme.Sections.Cart=function(container){var CartContainer=container;cart.a.init(CartContainer)},theme.Sections.Maps=function(container){theme.Maps()},theme.Sections.Footer=function(container){var localeDisclosure=new theme.Disclosure(external_jQuery_default()("[data-disclosure-locale]",container)),currencyDisclosure=new theme.Disclosure(external_jQuery_default()("[data-disclosure-currency]",container))},theme.Sections.Header=function(container){this.container=container,this.headerContainer=this.container.querySelector(".header__wrapper"),this.logoContainer=this.headerContainer.querySelector(".header__logo"),this.navDropdownPanels=this.headerContainer.querySelectorAll(".main-menu-dropdown"),this.headerHeight=this._getElementSizes().headerHeight,this.settings={},this.headerHeightChanged=new CustomEvent("loft:NewHeaderHeight"),this.init()},theme.Sections.Header.prototype={init:function(){this._getWindowSize(),this._addEventListeners(),this._resizeLogo(),this._initNav()},_getWindowSize:function(){return this.container.size=window.innerWidth},_addEventListeners:function(){events_default.a.on("resize","*",function(){this._compareSizes(),this._resizeLogo()}.bind(this)),events_default.a.on("loft:NewHeaderHeight","*",function(){this._recordNewHeaderHeight(this._getElementSizes().headerHeight,this._setDropdownMenuTopLocation()),this._setMaxMenuHeight(this.headerContainer)}.bind(this)),events_default.a.on(cart_events.a.eventStrs.addToCartSuccess,"*",function(event){this._getCartData()}.bind(this))},_getCartData:function(){var cartItemCountContainer=document.getElementById("cart-svg-count"),oldItemCount=parseInt(cartItemCountContainer.textContent);fetch("/cart.js").then(function(response){return response.json()}).then(function(cartResponse){var cartItemCountContainer2=document.getElementById("cart-svg-count"),oldItemCount2=parseInt(cartItemCountContainer2.textContent);cartResponse.item_count>oldItemCount2&&(cartItemCountContainer2.style.display="block",cartItemCountContainer2.textContent=cartResponse.item_count)})},_getElementSizes:function(){var headerHeight=this.headerContainer.getBoundingClientRect().height,headerHeightVariable=headerHeight+"px";return document.documentElement.style.setProperty("--header_height",headerHeightVariable),{headerHeight:headerHeight,logoWidth:this.logoContainer.offsetWidth}},_resizeLogo:function(){var logoElement=this.headerContainer.querySelector(".header__logo-text");if(logoElement!==null){this.logoContainer.style.width="";var sizeData=this._getElementSizes(),logoText=fitty_default()(".header__logo-text",{maxSize:42,multiLine:!1});this.logoText=logoText[0].element,this.logoText.addEventListener("fit",function(e){this._compareSizes()}.bind(this)),logoText[0].fit(),logoElement.style.visibility="visible"}},_recordNewHeaderHeight:function(height,callback){this.headerHeight=height,callback&&callback(this.navDropdownPanels)},_compareSizes:function(){var originalHeight=this.headerHeight,newHeight=this._getElementSizes().headerHeight;originalHeight!==newHeight&&window.dispatchEvent(this.headerHeight
19Changed)},_initNav:function(){this.container.size>768&&(this._setDropdownMenuTopLocation(this.navDropdownPanels),this._setMaxMenuHeight(this.headerContainer),theme.Navigation.initTimber(this.container),theme.Navigation.init(this.container))},_setDropdownMenuTopLocation:function(menus){var menusToCheck=menus||this.navDropdownPanels;if(menusToCheck!==void 0){var sizeData=this._getElementSizes(),offsetHeightBy=this._calculateMenuOffset(sizeData);menusToCheck.forEach(function(item){item.style.top=offsetHeightBy})}},_setMaxMenuHeight:function(headerElement){var headerHeight=headerElement.offsetHeight,maxHeight=(window.innerHeight-headerHeight)*.8;this.navDropdownPanels.forEach(function(menu){menu.style.maxHeight=maxHeight+"px"})},_calculateMenuOffset:function(sizes){return sizes.headerHeight+"px"}},theme.Sections.Announcement=function(container){this.container=container;var localeDisclosure=new theme.Disclosure(external_jQuery_default()("[data-disclosure-locale]",this.container)),currencyDisclosure=new theme.Disclosure(external_jQuery_default()("[data-disclosure-currency]",this.container)),sliderEnabled=this.checkBlockCount(container.getAttribute("data-block-count"));if(sliderEnabled){var sliderAutoplay=this.checkAutoplay(container.getAttribute("data-autoplay"));sliderAutoplay&&this.watchForScroll(this.container),this.slider=new flickity_default.a(".swiper-wrapper",{arrowShape:{x0:10,x1:60,y1:50,x2:75,y2:35,x3:40},groupCells:"100%",prevNextButtons:!0,pageDots:!1,adaptiveHeight:!0,autoPlay:sliderAutoplay})}if(window.innerWidth<769){var crossborderForm=document.getElementById("localization_form"),mobileMenuCrossborderForm=document.querySelector(".mobile__nav-crossborder");if(crossborderForm==null)return;mobileMenuCrossborderForm!==null&&mobileMenuCrossborderForm.appendChild(crossborderForm)}},theme.Sections.Announcement.prototype={checkBlockCount:function(shopifyValue){var htmlValue=parseInt(shopifyValue);return htmlValue>1},checkAutoplay:function(shopifyValue){return shopifyValue==="false"?!1:parseInt(shopifyValue)},checkCurrentAutoplayState:function(){return this.autoplayState},toggleAutoplayState:function(desiredState){var currentState=this.checkCurrentAutoplayState();(currentState===null||currentState!==desiredState)&&(this.autoplayState=desiredState)},pauseAutoplay:function(){this.toggleAutoplayState("paused"),this.slider.pausePlayer()},resumeAutoplay:function(){this.toggleAutoplayState("playing"),this.slider.unpausePlayer()},checkIfElementIsInViewport:function(elementToCheck){var isOut=isOutOfViewport(elementToCheck);isOut.any?this.pauseAutoplay():this.resumeAutoplay()},watchForScroll:function(elementToWatch){var lastKnownScrollPosition=0,ticking=!1;events_default.a.on("scroll","*",function(){lastKnownScrollPosition=window.scrollY,ticking||(window.requestAnimationFrame(function(){this.checkIfElementIsInViewport(elementToWatch),ticking=!1}.bind(this)),ticking=!0)}.bind(this))}},theme.Sections.FeaturedProduct=function(container){var $mainContainer=external_jQuery_default()(container);$mainContainer.find(".desktop-featured-product").each(function(){var $container=external_jQuery_default()(this);product_section.a.init($container)})},theme.Sections.SearchTemplate=function(container){theme.Search.initBaseSearch(container)},theme.Sections.Video=function(container){var _this=this,selectors={videoWrapper:"[data-loft-video-wrapper]",playButton:"[data-video-play]",billboardImage:"[data-video-billboard]",videoSrc:"data-video-src",videoElement:"iframe"};this.container=container,this.sectionId=container.getAttribute("data-section-id"),this.videoWrapper=container.querySelector(selectors.videoWrapper),this.billboard=container.querySelector(selectors.billboardImage),this.playButton=container.querySelector(selectors.playButton),this.videoSrc=this.videoWrapper.getAttribute(selectors.videoSrc),this.videoElement=this.videoWrapper.querySelector("iframe")||this.videoWrapper.querySelector("video"),this.sectionVideo=this.container.querySelector("iframe"),this.sectionVideoElement="";function setupLoadEvent(element,section){section.billboard!==null&&section.billboard!==void 0&&element.play()}this.billboard!==null&&this.billboard!==void 0?(events_default.a.once("click",
19selectors.videoWrapper,function(){this.videoElement.src=this.videoSrc,LoftSiteVideo.init(this.container,this.sectionId),this.billboard.classList.add("animate__animated","animate__zoomOut"),this.playButton.classList.add("animate__animated","animate__faster","animate__fadeOut")}.bind(this)),this.billboard.addEventListener("animationend",function(){_this.billboard.style.display="none",_this.playButton.style.display="none"})):(this.videoElement.src=this.videoSrc,this.videoElement.muted=!0,LoftSiteVideo.init(this.container,this.sectionId));var videoWrapper=container.querySelector(".video-section__wrapper"),videoElement=container.querySelector("[data-id]"),sectionId=container.getAttribute("data-section-id");function checkLoadStatus(element){return element.ready===!0}events_default.a.on("loft:VideoPlayer__Loaded","*",function(event){var self=this;this.sectionVideoElement=event.detail.player;var player=event.detail.player;setupLoadEvent(player,self)}.bind(this))},theme.Sections.Availability=function(container){};function buildSections(){var sections=new theme.SectionManager,sectionsPresent=document.querySelectorAll("[data-section-type]"),uniqueSections=[];sectionsPresent.forEach(function(item){var sectionContainer=item,sectionType=sectionContainer.getAttribute("data-section-type"),sectionData={container:sectionContainer,type:sectionType};uniqueSections.push(sectionData)});function initSections(data){var sectionData=data,sectionConstructorName=sectionData.type.replace("-","_"),sectionPrototypes={announcement:theme.Sections.Announcement,header:theme.Sections.Header,featured_product:theme.Sections.FeaturedProduct,cart:theme.Sections.Cart,map:theme.Maps,collection:theme.Filters,search_template:theme.Sections.SearchTemplate,video:theme.Sections.Video,footer:theme.Sections.Footer,availability:theme.Sections.Availability};sections.register(sectionData.container,sectionData.type,sectionPrototypes[sectionConstructorName])}uniqueSections.forEach(function(section){initSections(section)})}window.addEventListener("load",function(event){buildSections()}),micromodal_es.a.init({onShow:function(modal){window.dispatchEvent(new CustomEvent("loft:QuickviewModal__Opened",{detail:{modal_id:modal.id}}))},onClose:function(modal){document.body.dispatchEvent(new CustomEvent("loft:QuickviewModal__Closed",{detail:{modal:modal,modal_id:modal.id,product_id:modal.getAttribute("data-product-id")}}))},openClass:"is-open",disableScroll:!0,disableFocus:!1,awaitOpenAnimation:!0,awaitCloseAnimation:!0,debugMode:!0})})});
20//# sourceMappingURL=/cdn/shop/t/30/assets/theme.nomin.js.map?v=27094504033749949101766703035

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.