PageSourceSearch

https://www.shopddmine.com/cdn/shop/t/8/assets/theme.js?v=99664478688531331471718652423

js shopddmine.com collected 2026-10-06 05:55:34 UTC 50,988 bytes, 2 lines download raw bytes

1window.theme=window.theme||{},window.slate=window.slate||{},theme.Sections=function(){this.constructors={},this.instances=[],$(document).on("shopify:section:load",this._onSectionLoad.bind(this)).on("shopify:section:unload",this._onSectionUnload.bind(this)).on("shopify:section:select",this._onSelect.bind(this)).on("shopify:section:deselect",this._onDeselect.bind(this)).on("shopify:block:select",this._onBlockSelect.bind(this)).on("shopify:block:deselect",this._onBlockDeselect.bind(this))},theme.Sections.prototype=_.assignIn({},theme.Sections.prototype,{_createInstance:function(container,constructor){var $container=$(container),id=$container.attr("data-section-id"),type=$container.attr("data-section-type");if(constructor=constructor||this.constructors[type],!_.isUndefined(constructor)){var instance=_.assignIn(new constructor(container),{id:id,type:type,container:container});this.instances.push(instance)}},_onSectionLoad:function(evt){var container=$("[data-section-id]",evt.target)[0];container&&this._createInstance(container)},_onSectionUnload:function(evt){this.instances=_.filter(this.instances,function(instance){var isEventInstance=instance.id===evt.detail.sectionId;return isEventInstance&&_.isFunction(instance.onUnload)&&instance.onUnload(evt),!isEventInstance})},_onSelect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onSelect)&&instance.onSelect(evt)},_onDeselect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onDeselect)&&instance.onDeselect(evt)},_onBlockSelect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onBlockSelect)&&instance.onBlockSelect(evt)},_onBlockDeselect:function(evt){var instance=_.find(this.instances,function(instance2){return instance2.id===evt.detail.sectionId});!_.isUndefined(instance)&&_.isFunction(instance.onBlockDeselect)&&instance.onBlockDeselect(evt)},register:function(type,constructor){this.constructors[type]=constructor,$("[data-section-type="+type+"]").each(function(index,container){this._createInstance(container,constructor)}.bind(this))}}),window.slate=window.slate||{},slate.rte={wrapTable:function(){$(".rte table").wrap('<div class="rte__table-wrapper"></div>')},iframeReset:function(){var $iframeVideo=$('.rte iframe[src*="youtube.com/embed"], .rte iframe[src*="player.vimeo"]'),$iframeReset=$iframeVideo.add(".rte iframe#admin_bar_iframe");$iframeVideo.each(function(){$(this).wrap('<div class="video-wrapper"></div>')}),$iframeReset.each(function(){this.src=this.src})}},window.slate=window.slate||{},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.eventNamespace?"focusin."+options.eventNamespace:"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&&!options.$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)}},theme.Currency=(function(){var moneyFormat="${{amount}}";function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||moneyFormat;function formatWithDelimiters(number,precision,thousands,decimal){if(precision=precision||2,thousands=thousands||",",decimal=decimal||".",isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ");break}return formatString.replace(placeholderRegex,value)}return{formatMoney:formatMoney}})(),theme.Images=(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 switchImage(image,element,callback){var size=this.imageSize(element.src),imageUrl=this.getSizedImageUrl(image.src,size);callback?callback(imageUrl,image,element):element.src=imageUrl}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===null?null:match[1]}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)(\?v=\d+)?$/i);if(match!=null){var prefix=src.split(match[0]),suffix=match[0];
1return this.removeProtocol(prefix[0]+"_"+size+suffix)}return null}function removeProtocol(path){return path.replace(/http(s)?:/,"")}return{preload:preload,loadImage:loadImage,switchImage:switchImage,imageSize:imageSize,getSizedImageUrl:getSizedImageUrl,removeProtocol:removeProtocol}})(),slate.Variants=(function(){function Variants(options){this.$container=options.$container,this.product=options.product,this.singleOptionSelector=options.singleOptionSelector,this.originalSelectorId=options.originalSelectorId,this.enableHistoryState=options.enableHistoryState,this.currentVariant=this._getVariantFromOptions(),$(this.singleOptionSelector,this.$container).on("change",this._onSelectChange.bind(this))}return Variants.prototype=_.assignIn({},Variants.prototype,{_getCurrentOptions:function(){var currentOptions=_.map($(this.singleOptionSelector,this.$container),function(element){var $element=$(element),type=$element.attr("type"),currentOption={};return type==="radio"||type==="checkbox"?$element[0].checked?(currentOption.value=$element.val(),currentOption.index=$element.data("index"),currentOption):!1:(currentOption.value=$element.val(),currentOption.index=$element.data("index"),currentOption)});return currentOptions=_.compact(currentOptions),currentOptions},_getVariantFromOptions:function(){var selectedValues=this._getCurrentOptions(),variants=this.product.variants,found=_.find(variants,function(variant){return selectedValues.every(function(values){return _.isEqual(variant[values.index],values.value)})});return found},_onSelectChange:function(){var variant=this._getVariantFromOptions();this.$container.trigger({type:"variantChange",variant:variant}),variant&&(this._updateMasterSelect(variant),this._updateImages(variant),this._updatePrice(variant),this._updateSKU(variant),this.currentVariant=variant,this.enableHistoryState&&this._updateHistoryState(variant))},_updateImages:function(variant){var variantImage=variant.featured_image||{},currentVariantImage=this.currentVariant.featured_image||{};!variant.featured_image||variantImage.src===currentVariantImage.src||this.$container.trigger({type:"variantImageChange",variant:variant})},_updatePrice:function(variant){variant.price===this.currentVariant.price&&variant.compare_at_price===this.currentVariant.compare_at_price||this.$container.trigger({type:"variantPriceChange",variant:variant})},_updateSKU:function(variant){variant.sku!==this.currentVariant.sku&&this.$container.trigger({type:"variantSKUChange",variant:variant})},_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){$(this.originalSelectorId,this.$container).val(variant.id)}}),Variants})(),window.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-"+position};if(this.$nodes={parent:$("body, html"),page:$(".page-element"),moved:$(".is-moved-by-drawer")},this.config=$.extend(defaults,options),this.position=position,this.$drawer=$("#"+id),this.$open=$(this.config.open),!this.$drawer.length)return!1;this.drawerIsOpen=!1,this.init()};return Drawer.prototype.init=function(){this.$open.attr("aria-expanded","false"),this.$open.on("click",$.proxy(this.open,this)),this.$drawer.find(this.config.close).on("click",$.proxy(this.close,this))},Drawer.prototype.open=function(evt){var externalCall=!1;if(!this.drawerIsOpen){if(this.$open.addClass(this.config.openClass),evt?evt.preventDefault():externalCall=!0,evt&&evt.stopPropagation&&(evt.stopPropagation(),this.$activeSource=$(evt.currentTarget)),this.drawerIsOpen&&!externalCall)return this.close();this.$nodes.moved.addClass("is-transitioning"),this.$drawer.prepareTransition(),this.$nodes.parent.addClass(this.config.openClass+" "+this.config.dirOpenClass),this.drawerIsOpen=!0,slate.a11y.trapFocus({$container:this.$drawer,namespace:"drawer_focus"}),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.bindEvents()}},Drawer.prototype.close=function(){this.drawerIsOpen&&(this.$open.removeClass(this.config.openClass),$(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,slate.a11y.removeTrapFocus({$container:this.$drawer,namespace:"drawer_focus"}),this.$activeSource&&this.$activeSource.attr("aria-expanded")&&this.$activeSource.attr("aria-expanded","fal
1se"),this.unbindEvents())},Drawer.prototype.bindEvents=function(){this.$nodes.page.on("touchmove.drawer",function(){return!1}),this.$nodes.page.on("click.drawer",$.proxy(function(){return this.close(),!1},this)),this.$nodes.parent.on("keyup.drawer",$.proxy(function(evt){evt.keyCode===27&&this.close()},this))},Drawer.prototype.unbindEvents=function(){this.$nodes.page.off(".drawer"),this.$nodes.parent.off(".drawer")},Drawer})(),theme.Hero=(function(){var selectors={hero:".hero",heroWrapper:".hero-wrapper",heroArrows:".hero__arrow",heroImage:".hero__image",heroPause:".hero__pause"};function Hero(){this.namespace=".hero",this.$hero=$(selectors.hero),this.$hero.on("init"+this.namespace,this._a11y.bind(this)),this.$hero.on("init"+this.namespace,this._arrowsInit.bind(this)),this.$hero.slick({accessibility:!0,arrows:!1,draggable:!1,autoplay:this.$hero.data("autoplay"),autoplaySpeed:this.$hero.data("speed")}),$(selectors.heroImage).on("click"+this.namespace,function(){this.$hero.slick("slickNext")}.bind(this)),$(selectors.heroPause).on("click"+this.namespace,function(){$(selectors.heroPause).hasClass("is-paused")?this._play():this._pause()}.bind(this))}return Hero.prototype=_.assignIn({},Hero.prototype,{_pause:function(){this.$hero.slick("slickPause"),$(selectors.heroPause).addClass("is-paused")},_play:function(){this.$hero.slick("slickPlay"),$(selectors.heroPause).removeClass("is-paused")},_a11y:function(event,obj){var $list=obj.$list;$list.removeAttr("aria-live"),$(selectors.heroWrapper).on("focusin"+this.namespace,function(evt){$(selectors.heroWrapper).has(evt.target).length&&($list.attr("aria-live","polite"),this._pause())}.bind(this)),$(selectors.heroWrapper).on("focusout"+this.namespace,function(evt){$(selectors.heroWrapper).has(evt.target).length&&($list.removeAttr("aria-live"),this._play())}.bind(this))},_arrowsInit:function(event,obj){var count=obj.slideCount,$slider=obj.$slider,$arrows=$(selectors.heroArrows);$arrows.length&&count>1?$arrows.on("click"+this.namespace,function(evt){evt.preventDefault(),$(evt.currentTarget).hasClass("hero__arrow--prev")?$slider.slick("slickPrev"):$slider.slick("slickNext"),this._scrollTop()}.bind(this)):$arrows.remove()},_scrollTop:function(){var currentScroll=$(document).scrollTop(),heroOffset=this.$hero.offset().top;currentScroll>heroOffset&&$("html").add("body").animate({scrollTop:heroOffset},250)},goToSlide:function(slideIndex){this.$hero.slick("slickGoTo",slideIndex)},pause:function(){this.$hero.slick("slickPause")},play:function(){this.$hero.slick("slickPlay")},destroy:function(){this.$hero.off(this.namespace),$(selectors.heroImage).off(this.namespace),$(selectors.heroPause).off(this.namespace),$(selectors.heroWrapper).off(this.namespace),$(selectors.heroArrows).off(this.namespace),this.$hero.slick("unslick")}}),Hero})(),window.Modals=(function(){var Modal=function(id,name,options){var defaults={close:".js-modal-close",open:".js-modal-open-"+name,openClass:"modal--is-active"};if(this.$modal=$("#"+id),!this.$modal.length)return!1;this.$nodes={body:$("body")},this.config=$.extend(defaults,options),this.modalIsOpen=!1,this.focusOnOpen=this.config.focusOnOpen?$(this.config.focusOnOpen):this.$modal,this.init()};return Modal.prototype.init=function(){var $openBtn=$(this.config.open);$openBtn.attr("aria-expanded","false"),$(this.config.open).on("click",$.proxy(this.open,this)),this.$modal.find(this.config.close).on("click",$.proxy(this.close,this))},Modal.prototype.open=function(evt){var externalCall=!1;if(!this.modalIsOpen){if(evt?evt.preventDefault():externalCall=!0,evt&&evt.stopPropagation&&(evt.stopPropagation(),this.$activeSource=$(evt.currentTarget)),this.modalIsOpen&&!externalCall)return this.close();this.$modal.prepareTransition().addClass(this.config.openClass),this.$nodes.body.addClass(this.config.openClass),this.modalIsOpen=!0,slate.a11y.trapFocus({$container:this.$modal,namespace:"modal_focus",$elementToFocus:this.focusOnOpen}),this.$activeSource&&this.$activeSource.attr("aria-expanded")&&this.$activeSource.attr("aria-expanded","true"),this.bindEvents()}},Modal.prototype.close=function(){this.modalIsOpen&&($(document.activeElement).trigger("blur"),this.$modal.prepareTransition().removeClass(this.config.openClass),this.$nodes.body.removeClass(this.config.openClass),this.modalIsOpen=!1,slate.a11y.removeTrapFocus({$container:this.$modal,namespace:"modal_focus"}),this.$activeSource&&this.$activeSource.attr("aria-expanded")&&this.$activeSource.attr("aria-expanded","fal
1se").focus(),this.unbindEvents())},Modal.prototype.bindEvents=function(){this.$nodes.body.on("keyup.modal",$.proxy(function(evt){evt.keyCode===27&&this.close()},this))},Modal.prototype.unbindEvents=function(){this.$nodes.body.off(".modal")},Modal})(),window.Meganav=(function(){var Meganav=function(options){this.cache={$document:$(document),$page:$(".page-element")};var defaults={$meganavs:$(".meganav"),$meganavToggle:$(".meganav-toggle"),isOpen:!1,preventDuplicates:!1,closeOnPageClick:!1,activeClass:"meganav--active",noAnimationClass:"meganav--no-animation"};this.config=$.extend(defaults,options),this.init()};return Meganav.prototype.init=function(){var $openBtn=this.config.$meganavToggle;$openBtn.attr("aria-expanded","false"),$openBtn.each(function(i,el){var $el=$(el);$el.attr("aria-controls",$el.attr("data-aria-controls"))}),$openBtn.on("click",$.proxy(this.requestMeganav,this))},Meganav.prototype.requestMeganav=function(evt){evt&&evt.preventDefault(),evt&&evt.stopPropagation&&evt.stopPropagation();var $el=$(evt.currentTarget),$targetedMeganav=$("#"+$el.attr("aria-controls")),anotherNavIsOpen=this.config.isOpen;if($el.hasClass(this.config.activeClass))if($el.is("a")){window.location=$el.attr("href");return}else return this.close(evt,$el);this.config.preventDuplicates&&this.close(),$el.addClass(this.config.activeClass).attr("aria-expanded","true"),this.open($targetedMeganav,anotherNavIsOpen),this.bindEvents(),this.config.isOpen=!0},Meganav.prototype.open=function($target,noAnimation){$target.addClass(this.config.activeClass),noAnimation&&$target.addClass(this.config.noAnimationClass)},Meganav.prototype.close=function(evt,$target){if(this.config.preventDuplicates)this.config.$meganavs.removeClass([this.config.activeClass,this.config.noAnimationClass].join(" ")),this.config.$meganavToggle.removeClass(this.config.activeClass).attr("aria-expanded","false");else{var $targetedMeganav=$("#"+$target.attr("aria-controls"));$targetedMeganav.removeClass([this.config.activeClass,this.config.noAnimationClass].join(" ")),$target.removeClass(this.config.activeClass).attr("aria-expanded","false")}this.unbindEvents(),this.config.isOpen=!1},Meganav.prototype.bindEvents=function(){this.config.closeOnPageClick&&(this.cache.$page.on("click.meganav",$.proxy(this.close,this)),this.config.$meganavs.on("click.meganav",function(evt){evt.stopImmediatePropagation()}),this.cache.$document.on("keyup.meganav",$.proxy(function(evt){evt.keyCode===27&&(this.config.$meganavToggle.filter("."+this.config.activeClass).focus(),this.close())},this)))},Meganav.prototype.unbindEvents=function(){this.config.closeOnPageClick&&(this.cache.$page.off(".meganav"),this.config.$meganavs.off(".meganav"),this.cache.$document.off(".meganav"))},Meganav})(),window.QtySelector=(function(){var QtySelector2=function($el){this.cache={$body:$("body"),$subtotal:$("#CartSubtotal"),$discountTotal:$("#cartDiscountTotal"),$cartTable:$(".cart-table"),$cartTemplate:$("#CartProducts")},this.settings={loadingClass:"js-qty--is-loading",isCartTemplate:this.cache.$body.hasClass("template-cart"),minQty:this.cache.$body.hasClass("template-cart")?0:1},this.$el=$el,this.qtyUpdateTimeout,this.createInputs(),this.bindEvents()};return QtySelector2.prototype.createInputs=function(){var $el=this.$el,data={value:$el.val(),key:$el.attr("id"),name:$el.attr("name"),line:$el.attr("data-line")},source=$("#QuantityTemplate").html(),template=Handlebars.compile(source);this.$wrapper=$(template(data)).insertBefore($el),$el.remove()},QtySelector2.prototype.validateAvailability=function(line,quantity){var product=theme.cartObject.items[line-1],handle=product.handle,id=product.id,params={type:"GET",url:"/products/"+handle+".js",dataType:"json",success:$.proxy(function(cartProduct){this.validateAvailabilityCallback(line,quantity,id,cartProduct)},this)};$.ajax(params)},QtySelector2.prototype.validateAvailabilityCallback=function(line,quantity,id,product){for(var quantityIsAvailable=!0,i=0;i<product.variants.length;i++){var variant=product.variants[i];if(variant.id===id)break}variant.inventory_management!==null&&variant.inventory_policy==="deny"&&variant.inventory_quantity<quantity&&(theme.Notify.open("error",theme.strings.noStockAvailable,!0),this.$wrapper.find(".js-qty__input").val(variant.inventory_quantity),quantityIsAvailable=!1,this.$wrapper.removeClass(this.settings.loadingClass)),quantityIsAvailable&&this.updateItemQuantity(line,quantity)},QtySelector2.prototype.validateQty=function(qty){return parseFloat(qty)===parseInt(qty,10)&&!isNaN(qty)||(qty=1),parseInt(qty,10)},QtySelector2.prototype.adjustQty=function(evt){var $el=$(evt.currentTarget),$input
1=$el.siblings(".js-qty__input"),qty=this.validateQty($input.val()),line=$input.attr("data-line");$el.hasClass("js-qty__adjust--minus")?(qty-=1,qty<=this.settings.minQty&&(qty=this.settings.minQty)):qty+=1,this.settings.isCartTemplate?($el.parent().addClass(this.settings.loadingClass),this.updateCartItemPrice(line,qty)):$input.val(qty)},QtySelector2.prototype.bindEvents=function(){this.$wrapper.find(".js-qty__adjust").on("click",$.proxy(this.adjustQty,this)),this.$wrapper.on("click",".js-qty__input",function(){this.setSelectionRange(0,this.value.length)}),this.settings.isCartTemplate&&this.$wrapper.on("change",".js-qty__input",$.proxy(function(evt){var $input=$(evt.currentTarget),line=$input.attr("data-line"),qty=this.validateQty($input.val());$input.parent().addClass(this.settings.loadingClass),this.updateCartItemPrice(line,qty)},this))},QtySelector2.prototype.updateCartItemPrice=function(line,qty){clearTimeout(this.qtyUpdateTimeout),this.qtyUpdateTimeout=setTimeout($.proxy(function(){this.validateAvailability(line,qty)},this),200)},QtySelector2.prototype.updateItemQuantity=function(line,quantity){var params={type:"POST",url:"/cart/change.js",data:"quantity="+quantity+"&line="+line,dataType:"json",success:$.proxy(function(cart){this.updateCartItemCallback(cart)},this)};$.ajax(params)},QtySelector2.prototype.updateCartItemCallback=function(cart){if(cart.item_count===0){location.reload();return}theme.cartObject=cart;var data={},items=[],item={},source=$("#CartProductTemplate").html(),template=Handlebars.compile(source),prodImg;$.each(cart.items,function(index,cartItem){cartItem.image===null?prodImg="//cdn.shopify.com/s/assets/admin/no-image-medium-cc9732cb976dd349a0df1d39816fbcc7.gif":prodImg=cartItem.image.replace(/(\.[^.]*)$/,"_240x240$1").replace("http:",""),cartItem.properties!==null&&$.each(cartItem.properties,function(key,value){(key.charAt(0)==="_"||!value)&&delete cartItem.properties[key]}),item={key:cartItem.key,line:index+1,url:cartItem.url,img:prodImg,name:cartItem.product_title,variation:cartItem.variant_title,properties:cartItem.properties,itemQty:cartItem.quantity,price:theme.Currency.formatMoney(cartItem.price,theme.moneyFormat),vendor:cartItem.vendor,linePrice:theme.Currency.formatMoney(cartItem.line_price,theme.moneyFormat),originalLinePrice:theme.Currency.formatMoney(cartItem.original_line_price,theme.moneyFormat),discounts:cartItem.discounts,discountsApplied:cartItem.line_price!==cartItem.original_line_price},items.push(item)}),data={items:items},this.cache.$cartTemplate.empty().append(template(data)),this.cache.$cartTable.find('input[type="number"]').each(function(i,el){new QtySelector2($(el))}),this.cache.$subtotal.html(theme.Currency.formatMoney(cart.total_price,theme.moneyFormat)),cart.total_discount>0?this.cache.$discountTotal.html(theme.strings.totalCartDiscount.replace("[savings]",theme.Currency.formatMoney(cart.total_discount,theme.moneyFormat))):this.cache.$discountTotal.empty(),slate.a11y.pageLinkFocus(this.cache.$cartTable)},QtySelector2})(),window.AjaxCart=(function(){var cart=function($form){this.cache={$cartIconIndicator:$(".site-header__cart-indicator")},this.$form=$form,this.eventListeners()};return cart.prototype.eventListeners=function(){this.$form.length&&this.$form.on("submit",$.proxy(this.addItemFromForm,this))},cart.prototype.addItemFromForm=function(evt){evt.preventDefault();var params={type:"POST",url:"/cart/add.js",data:this.$form.serialize(),dataType:"json",success:$.proxy(function(lineItem){this.success(lineItem)},this),error:$.proxy(function(XMLHttpRequest,textStatus){this.error(XMLHttpRequest,textStatus)},this)};$.ajax(params)},cart.prototype.success=function(){theme.Notify.open("success",!1,!0),this.cache.$cartIconIndicator.removeClass("hide")},cart.prototype.error=function(XMLHttpRequest){var data=JSON.parse(XMLHttpRequest.responseText);data.message&&theme.Notify.open("error",data.description,!0)},cart})(),window.Notify=(function(){var notify=function(){this.cache={$scrollParent:$("html").add("body"),$notificationSuccess:$("#NotificationSuccess"),$notificationSuccessLink:$("#NotificationSuccess").find("a"),$notificationError:$("#NotificationError"),$notificationPromo:$("#NotificationPromo"),$notificationClose:$(".
1notification__close"),$notificationErrorMessage:$(".notification__message--error")},this.settings={notifyActiveClass:"notification--active",closeTimer:5e3,promoKeyName:"promo-"+this.cache.$notificationPromo.data("text")},this.notifyTimer,this.$lastFocusedElement=null,this.isLocalStorageSupported=isLocalStorageSupported(),this.cache.$notificationClose.on("click",this.close.bind(this)),this.showPromo()};function isLocalStorageSupported(){if(window.self!==window.top)return!1;var testKey="test";try{var storage=window.sessionStorage;return storage.setItem(testKey,"1"),storage.removeItem(testKey),!0}catch(error){return!1}}return notify.prototype.open=function(state,message,autoclose){this.close(),state==="success"?(this.cache.$notificationSuccess.attr("aria-hidden",!1).addClass(this.settings.notifyActiveClass),this.$lastFocusedElement=$(document.activeElement),this.cache.$notificationSuccess.one("TransitionEnd webkitTransitionEnd transitionend oTransitionEnd",$.proxy(function(){slate.a11y.pageLinkFocus(this.cache.$notificationSuccessLink)},this)),this.cache.$scrollParent.hasClass("no-csstransitions")&&slate.a11y.pageLinkFocus(this.cache.$notificationSuccessLink)):(this.cache.$notificationErrorMessage.html(message),this.cache.$notificationError.attr("aria-hidden",!1).addClass(this.settings.notifyActiveClass)),autoclose&&(clearTimeout(this.notifyTimer),this.notifyTimer=setTimeout(this.close.bind(this),this.settings.closeTimer))},notify.prototype.close=function(evt){evt&&$(evt.currentTarget).attr("id")==="NotificationPromoClose"&&this.isLocalStorageSupported&&localStorage.setItem(this.settings.promoKeyName,"hidden"),this.$lastFocusedElement&&this.cache.$notificationSuccessLink.is(":focus")&&slate.a11y.pageLinkFocus(this.$lastFocusedElement),this.cache.$notificationSuccess.attr("aria-hidden",!0).removeClass(this.settings.notifyActiveClass),this.cache.$notificationError.attr("aria-hidden",!0).removeClass(this.settings.notifyActiveClass),this.cache.$notificationPromo.attr("aria-hidden",!0).removeClass(this.settings.notifyActiveClass),this.$lastFocusedElement=null},notify.prototype.showPromo=function(SFEevent){SFEevent&&this.initCache(),!(this.isLocalStorageSupported&&localStorage[this.settings.promoKeyName]==="hidden")&&this.cache.$notificationPromo.attr("aria-hidden",!1).addClass(this.settings.notifyActiveClass)},notify})(),theme.Maps=(function(){var config={zoom:14,styles:[{featureType:"water",elementType:"geometry",stylers:[{color:"#cacaca"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#e1e1e1"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#e1e1e1"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#bbbbbb"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}]},apiStatus=null,mapsToLoad=[],key=theme.mapKey?theme.mapKey:"";function Map(container){this.$container=$(container),apiStatus==="loaded"?this.createMap():(mapsToLoad.push(this),apiStatus!=="loading"&&(apiStatus="loading",typeof window.google=="undefined"&&$.getScript("https://maps.googleapis.com/maps/api/js?key="+key).then(function(){apiStatus="loaded",initAllMaps()})))}function initAllMaps(){$.each(mapsToLoad,function(index,instance){instance.createMap()})}function geolocate($map){var deferred=$.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=_.assignIn({},Map.prototype,{createMap:function(){var $map=this.$container.find(".map-section__container");return geolocate($map).then(function(results){var mapOptions={zoom:config.zoom,styles:config.styles,center:results[0].geometry.location,disableDefaultUI:!0},map=this.map=new google.maps.Map($map[0],mapOptions),center=this.center=map.getCenter(),markerColor=$map.data("marker-color"),markerIcon={path:"M57.7,0C25.8,0,0,25.8,0,57.7C0,89.5,50,170,57.7,170s57.7-80.5,57.7-112.3C115.3,25.8,89.5,0,57.7,0z M57.7,85 c-14.9,0-27-12.1-27-27c0-14.9,12.1-27,27-27c14.9,0,27,12.1,27,27C84.7,72.9,72.6,85,57.7,85z",fillColor:markerColor,fillOpacity:.9,scale:.2,strokeWeight:0},marker=new google.maps.Marker({map:map,position:map.getCenter(),icon:markerIcon});google.maps.event.addDomListener(window,"resize",$.debounce(250,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}$map.parent().addClass("page-width map-section--load-error").html('<div class="errors text-center">
1'+errorMessage+"</div>")})},onUnload:function(){google.maps.event.clearListeners(this.map,"resize")}}),Map})();function gm_authFailure(){$(".map-section").addClass("map-section--load-error"),$(".map-section__container").remove(),$(".map-section__link").remove(),$(".map-section__overlay").after('<div class="errors text-center">'+theme.strings.authError+"</div>")}theme.stickyHeader=(function(){var selectors={searchCartWrapper:"#SiteNavSearchCart",stickyNavSearchCart:"#StickyNavSearchCart",stickyNavWrapper:"#StickNavWrapper",stickyBar:"#StickyBar"},config={lastScroll:0,navClass:"sticky--active",openTransitionClass:"sticky--open",closeTransitionClass:"sticky--close"},cache={};function cacheSelectors(){cache={$window:$(window),$siteNavSearchCart:$(selectors.searchCartWrapper),$stickyBar:$(selectors.stickyBar)}}function init(){cacheSelectors(),config.isActive=!1,cache.$siteNavSearchCart.contents().length&&cache.$siteNavSearchCart.contents().clone().appendTo($(selectors.stickyNavSearchCart)),cache.$window.on("scroll.stickynav",$.throttle(15,stickyHeaderOnScroll))}function stickyHeaderOnScroll(){var scroll=cache.$window.scrollTop(),$el=$(selectors.stickyNavWrapper),threshold=$el.offset().top+$el.height()+10;scroll<config.lastScroll&&(threshold=$el.offset().top),scroll>threshold?stickNav():unstickNav(),config.lastScroll=scroll}function stickNav(){config.isActive||(config.isActive=!0,cache.$stickyBar.addClass(config.navClass),setTimeout(function(){cache.$stickyBar.addClass(config.openTransitionClass)},0))}function unstickNav(){config.isActive&&(cache.$stickyBar.removeClass(config.openTransitionClass).removeClass(config.navClass),config.isActive=!1)}function unload(){$(window).off(".stickynav")}return{init:init,unload:unload}})(),theme.headerNav=(function(){var selectors={siteNav:"#SiteNav",siteNavCompressed:"#SiteNavCompressed",siteNavParent:"#SiteNavParent",siteNavItem:".site-nav__item",stickyNavWrapper:"#StickNavWrapper",stickyNav:"#StickyNav"},config={lastScroll:0,isActive:!1,navClass:"sticky--active",openTransitionClass:"sticky--open",closeTransitionClass:"sticky--close",searchShowClass:"site-header__search-input--visible",searchInputClass:"site-header__search-input",searchSubmitClass:"site-header__search-submit"};function init(){sizeNav(),initMegaNavs(),initHeaderSearch(),$(window).on("resize.headernav",$.debounce(250,sizeNav))}function sizeNav(){var navWidth=0,parentWidth=$(selectors.siteNavParent).width(),hideClass="hide";$(selectors.stickyNavWrapper).height($(selectors.stickyNav).height()),$(selectors.siteNav).removeClass(hideClass),$(selectors.siteNavItem).each(function(i,el){navWidth+=$(el).width()}),navWidth>parentWidth?($(selectors.siteNav).addClass(hideClass),$(selectors.siteNavCompressed).removeClass(hideClass)):($(selectors.siteNav).removeClass(hideClass),$(selectors.siteNavCompressed).addClass(hideClass))}function initMegaNavs(){var headerMeganavs=new window.Meganav({$meganavs:$(".site-nav__dropdown"),$meganavToggle:$(".site-nav__meganav-toggle"),preventDuplicates:!0,closeOnPageClick:!0}),indexMeganavs=new window.Meganav({$meganavs:$(".meganav--index"),$meganavToggle:$(".index__meganav-toggle")}),drawerMeganavs=new window.Meganav({$meganavs:$(".meganav--drawer"),$meganavToggle:$(".drawer__meganav-toggle")})}function initHeaderSearch(){var $searchForm=$(".site-header__search");$searchForm.each(function(i,el){var $form=$(el),$input=$form.find("."+config.searchInputClass),$submit=$form.find("."+config.searchSubmitClass);$input.on("focus",function(){$input.addClass(config.searchShowClass)}),$input.on("blur",function(){$input.val()?$input.addClass(config.searchShowClass):$input.removeClass(config.searchShowClass)}),$submit.on("click",function(evt){$input.hasClass(config.searchShowClass)||(evt.preventDefault(),$input.addClass(config.searchShowClass).focus())})})}function unload(){$(window).off(".stickynav")}return{init:init,unload:unload}})(),theme.customerTemplates=(function(){function initEventListeners(){$("#RecoverPassword").on("click",function(evt){evt.preventDefault(),toggleRecoverPasswordForm()}),$("#HideRecoverPasswordLink").on("click",function(evt){evt.preventDefault(),toggleRecoverPasswordForm()})}function toggleRecoverPasswordForm(){$("#RecoverPasswordForm").toggleClass("hide"),$("#CustomerLoginForm").toggleClass("hide")}function resetPasswordSuccess(){$(".reset-password-success").length&&$("#ResetSuccess").removeClass("hide")}function customerAddressForm(){var $newAddressForm=$("#AddressNewForm");$newAddressForm.length&&(Shopify&&new Shopify.CountryProvinceSelector("AddressCountryNew","AddressProvinceNew",{hideElement:"AddressProvinceContainerNew"}),$(".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})}),$(".address-new-toggle").on("click",function(){$newAddressForm.toggleClass("hide")}),$(".address-edit-toggle").on("click",function(){var formId=$(this).data("form-id");$("#EditAddress_"+formId).toggleClass("hide")}),$(".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("/account/addresses/"+formId,{parameters:{_method:"delete"}})}))}function checkUrlHash(){var hash=window.location.hash;
1hash==="#recover"&&toggleRecoverPasswordForm()}return{init:function(){checkUrlHash(),initEventListeners(),resetPasswordSuccess(),customerAddressForm()}}})(),theme.HeaderSection=(function(){function Header(){theme.stickyHeader.init(),theme.headerNav.init(),theme.Notify=new window.Notify,theme.NavDrawer=new window.Drawers("NavDrawer","left"),drawerSearch()}function drawerSearch(){var $drawerSearch=$(".drawer__search-input"),$drawerSearchSubmit=$(".drawer__search-submit");$drawerSearchSubmit.on("click",function(evt){$drawerSearch.val().length===0&&(evt.preventDefault(),$drawerSearch.focus())})}return Header.prototype=_.assignIn({},Header.prototype,{onUnload:function(){theme.stickyHeader.unload(),theme.headerNav.unload()}}),Header})(),theme.Filters=(function(){var selectors={filterSelection:"#SortTags",sortSelection:"#SortBy"};function Filters(){this.$filterSelect=$(selectors.filterSelection),this.$sortSelect=$(selectors.sortSelection),this.default=this._getDefaultSortValue(),this.$sortSelect.val(this.default),this.$filterSelect.on("change",this._onFilterChange.bind(this)),this.$sortSelect.on("change",this._onSortChange.bind(this))}return Filters.prototype=_.assignIn({},Filters.prototype,{_getDefaultSortValue:function(){return Shopify.queryParams.sort_by?Shopify.queryParams.sort_by:this.$sortSelect.data("default-sort")},_onFilterChange:function(){delete Shopify.queryParams.page,$.isEmptyObject(Shopify.queryParams)?location.href=this.$filterSelect.val():location.href=this.$filterSelect.val()+"?"+$.param(Shopify.queryParams)},_onSortChange:function(){Shopify.queryParams.sort_by=this.$sortSelect.val(),location.search=$.param(Shopify.queryParams)},onUnload:function(){this.$filterSelect.off("change",this._onFilterChange),this.$sortSelect.off("change",this._onSortChange)}}),Filters})(),theme.Product=(function(){var defaults={smallBreakpoint:750,productThumbIndex:0,productThumbMax:0,ajaxCart:!1,stockSetting:!1};function Product(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id");this.selectors={originalSelectorId:"#ProductSelect-"+sectionId,modal:"ProductModal",productZoomImage:"#ProductZoomImg",addToCart:"#AddToCart-"+sectionId,productPrice:"#ProductPrice-"+sectionId,comparePrice:"#ComparePrice-"+sectionId,addToCartText:"#AddToCartText-"+sectionId,SKU:".variant-sku",productFeaturedImage:"#ProductPhotoImg-"+sectionId,productImageWrap:"#ProductPhotoLink-"+sectionId,productThumbAllImages:".product-single__thumbnail",productThumbImages:".product-single__thumbnail-"+sectionId,productThumbs:"#ProductThumbs-"+sectionId,saleTag:"#ProductSaleTag-"+sectionId,productStock:"#ProductStock-"+sectionId,singleOptionSelector:".single-option-selector-"+sectionId},this.settings=$.extend({},defaults,{sectionId:sectionId,ajaxCart:$container.data("ajax"),stockSetting:$container.data("stock"),enableHistoryState:$container.data("enable-history-state")||!1,namespace:".product-"+sectionId,imageSize:theme.Images.imageSize($(this.selectors.productFeaturedImage).attr("src"))}),$("#ProductJson-"+sectionId).html()&&(this.productSingleObject=JSON.parse($("#ProductJson-"+sectionId).html()),this.addVariantInfo(),this.init())}return Product.prototype=_.assignIn({},Product.prototype,{init:function(){this._stringOverrides(),this._initVariants(),this._productZoomImage(),this._productThumbSwitch(),this._productThumbnailSlider(),this._initQtySelector(),this.settings.ajaxCart&&(theme.AjaxCart=new window.AjaxCart($("#AddToCartForm"))),theme.Images.preload(this.productSingleObject.images,this.settings.imageSize)},_stringOverrides:function(){window.productStrings=window.productStrings||{},$.extend(theme.strings,window.productStrings)},addVariantInfo:function(){if(!(!this.productSingleObject||!this.settings.stockSetting))for(var variantInfo=JSON.parse($("#VariantJson-"+this.settings.sectionId).html()),i=0;i<variantInfo.length;i++)$.extend(this.productSingleObject.variants[i],variantInfo[i])},_initVariants:function(){var options={$container:this.$container,enableHistoryState:this.settings.enableHistoryState,product:this.productSingleObject,singleOptionSelector:this.selectors.singleOptionSelector,originalSelectorId:this.selectors.originalSelectorId};this.variants=new slate.Variants(options),this.$container.on("variantChange"+this.settings.namespace,this._updateAddToCartBtn.bind(this)),this.$container.on("variantPriceChange"+this.settings.namespace,this._updatePrice.bind(this)),this.$container.on("variantSKUChange"+this.settings.namespace,this._updateSKU.bind(this)),this.$container.on("variantImageChange"+this.settings.namespace,this._updateImages.bind(this))},_updateAddToCartBtn:function(evt){var variant=evt.variant,cache={$stock:$(this.selectors.productStock),$addToCart:$(this.selectors.addToCart),$addToCartText:$(this.selectors.addToCartText)};variant?variant.available?(cache.$addToCart.removeClass("btn--sold-out").prop("disabled",!1),cache.$addToCartText.html(theme.strings.addToCart),this.settings.stockSetting&&(variant.inventory_management?variant.inventory_quantity<10&&variant.inventory_quantity>0?cache.$stock.html(theme.strings.stockAvailable.replace("1",variant.inventory_quantity)).removeClass("hide"):variant.inventory_quantity<=0&&variant.incoming?cache.$stock.html(theme.strings.willNotShipUntil.replace("[date]",variant.next_incoming_date)).removeClass("hide"):cache.$stock.addClass("hide"):cache.$stock.addClass("hide"))):(cache.$addToCart.prop("disabled",!0).addClass("btn--sold-out"),cache.$addToCartText.html(theme.strings.soldOut),this.settings.stockSetting&&(variant.incoming?cache.$stock.html(theme.strings.willBeInStockAfter.replace("[date]",variant.next_incoming_date)).removeClass("hide"):cache.$stock.addClass("hide"))):(cache.$addToCart.prop("disabled",!0).removeClass("btn--sold-out"),cache.$addToCartText.html(theme.strings.unavailable),this.settings.stockSetting&&cache.$stock.addClass("hide"))},_updatePrice:function(evt){var variant=evt.variant;variant?($(this.selectors.productPrice).html(theme.Currency.formatMoney(variant.price,theme.moneyFormat)),variant.compare_at_price>variant.price?($(this.selectors.comparePrice).html(theme.Currency.formatMoney(variant.compare_at_price,theme.moneyFormat)).removeClass("hide"),$(this.selectors.saleTag).removeClass("hide")):($(this.selectors.comparePrice).addClass("hide"),$(this.selectors.saleTag).addClass("hide"))):$(this.selectors.comparePrice).addClass("hide")},_updateSKU:function(evt){var variant=evt.variant;variant&&$(this.selectors.SKU).html(variant.sku)},_updateImages:function(evt){var variant=evt.variant;if(variant&&variant.featured_image){var sizedImgUrl=theme.Images.getSizedImageUrl(variant.featured_image.src,this.settings.imageSize),largeImgUrl=theme.Images.getSizedImageUrl(variant.featured_image.src,"1024x1024");this.switchProductImage(sizedImgUrl,largeImgUrl),this.setActiveThumbn
1ail()}},switchProductImage:function(image,largeImage){$(this.selectors.productFeaturedImage).attr("src",image),$(this.selectors.productImageWrap).attr("href",largeImage)},setActiveThumbnail:function($el){var $thumbnails=$(this.selectors.productThumbs);if(typeof $el=="undefined"){var src=$(this.selectors.productFeaturedImage).attr("src");$el=$('.product-single__thumbnail[href="'+src+'"]')}if($thumbnails.find(".product-single__thumbnail-item").removeClass("is-active"),$el.parent().addClass("is-active"),$thumbnails.hasClass("slick-initialized")){var currentActiveSlideIndex=$thumbnails.slick("slickCurrentSlide"),newActiveSlideIndex=$el.parent().attr("data-slick-index");currentActiveSlideIndex!==newActiveSlideIndex&&$thumbnails.slick("slickGoTo",newActiveSlideIndex,!1)}},_productZoomImage:function(){if($(this.selectors.productFeaturedImage).length){var self=this;$(this.selectors.productImageWrap).on("click"+this.settings.namespace,function(evt){evt.preventDefault(),$(self.selectors.productZoomImage).attr("src","").attr("src",$(this).attr("href"))}),this.ProductModal=new window.Modals(this.selectors.modal,"product-modal"),this.ProductModal.$modal.on("click"+this.settings.namespace,function(evt){evt.target.nodeName!=="IMG"&&self.ProductModal.close()})}},_productThumbSwitch:function(){if($(this.selectors.productThumbs).length){var self=this;$(this.selectors.productThumbImages).on("click"+this.settings.namespace,function(evt){evt.preventDefault();var $el=$(this),sizedImageUrl=$el.attr("href"),largeImageUrl=$el.attr("data-zoom");self.setActiveThumbnail($el),self.switchProductImage(sizedImageUrl,largeImageUrl)})}},_productThumbnailSlider:function(){var $productThumbWrapper=$(this.selectors.productThumbs);if($productThumbWrapper.length){var thumbnailCount=$productThumbWrapper.find(this.selectors.productThumbAllImages).length;if(thumbnailCount>2){$productThumbWrapper.on("init"+this.settings.namespace,this._productSwipeInit.bind(this));var nextArrow,prevArrow,sliderArrows=window.sliderArrows||!1;sliderArrows&&(nextArrow='<button type="button" class="slick-next"><span class="medium-up--hide">'+sliderArrows.right+'</span><span class="small--hide">'+sliderArrows.down+"</span></button>",prevArrow='<button type="button" class="slick-prev"><span class="medium-up--hide">'+sliderArrows.left+'</span><span class="small--hide">'+sliderArrows.up+"</span></button>"),$productThumbWrapper.slick({accessibility:!1,arrows:!0,dots:!1,infinite:!1,autoplay:!1,slidesToShow:3,slidesToScroll:3,vertical:!0,verticalSwiping:!0,nextArrow:nextArrow,prevArrow:prevArrow,responsive:[{breakpoint:this.settings.smallBreakpoint,settings:{vertical:!1,verticalSwiping:!1}}]}),$productThumbWrapper.slick("slickGoTo",$productThumbWrapper.find(".is-active").attr("data-slick-index"),!0)}}},_productSwipeInit:function(evt,obj){this.settings.productThumbIndex=obj.currentSlide,this.settings.productThumbMax=obj.slideCount-1,$(this.selectors.productFeaturedImage).on("swipeleft swiperight",function(event){event.type==="swipeleft"&&this._goToNextThumbnail(),event.type==="swiperight"&&this._goToPrevThumbnail(),$('.product-single__thumbnail-item[data-slick-index="'+this.settings.productThumbIndex+'"]').find(".product-single__thumbnail").trigger("click")})},_goToNextThumbnail:function(){this.settings.productThumbIndex++,this.settings.productThumbIndex>this.settings.productThumbMax&&(this.settings.productThumbIndex=0),$(this.selectors.productThumbs).slick("slickGoTo",this.settings.productThumbIndex,!0)},_goToPrevThumbnail:function(){this.settings.productThumbIndex--,this.settings.productThumbIndex<0&&(this.settings.productThumbIndex=this.settings.productThumbMax),$(this.selectors.productThumbs).slick("slickGoTo",this.settings.productThumbIndex,!0)},_initQtySelector:function(){this.$container.find(".product-form__quantity").each(function(i,el){new QtySelector($(el))})},onUnload:function(){$(this.selectors.productImageWrap).off(this.settings.namespace),$(this.selectors.productThumbImages).off(this.settings.namespace),$(this.selectors.productThumbs).slick("unslick"),this.ProductModal.$modal.off(this.settings.namespace)}}),Product})(),theme.Slideshow=(function(){function Slideshow(){this.slideshow=new theme.Hero}return Slideshow.prototype=_.assignIn({},Slideshow.prototype,{onUnload:function(){this.slideshow.destroy()},onSelect:function(){this.slideshow.pause()},onDeselect:function(){this.slideshow.play()},onBlockSelect:function(evt){var $slide=$(".hero__slide--"+evt.detail.blockId+":not(.slick-cloned)"),slideIndex=$slide.data("slick-index");this.slideshow.pause(),this.slideshow.goToSlide(slideIndex)},onBlockDeselect:function(){this.slideshow.play()}}),Slideshow})(),theme.Cart=(function(){var selectors={cartNote:"#CartSpecialInstructions",cartQtyInput:".cart__quantity",cart
1NoCookiesClass:"cart--no-cookies"};function Cart(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id");theme.cartObject=JSON.parse($("#CartJson-"+sectionId).html()),this.init($container)}return Cart.prototype=_.assignIn({},Cart.prototype,{init:function($container){this._initQtySelector(),this._initCartNote(),this._cookiesEnabled()||$container.addClass(selectors.cartNoCookiesClass)},_initQtySelector:function(){$(selectors.cartQtyInput).each(function(i,el){new QtySelector($(el))})},_initCartNote:function(){if($(selectors.cartNote).length){var $el=$(selectors.cartNote),noteText,params,noteOffset=$el[0].offsetHeight-$el[0].clientHeight;$el.on("keyup input",function(){$(this).css("height","auto").css("height",$el[0].scrollHeight+noteOffset)}),$el.on("change",$.proxy(function(){noteText=$el.val(),params={type:"POST",url:"/cart/update.js",data:"note="+this._attributeToString(noteText),dataType:"json"},$.ajax(params)},this))}},_attributeToString:function(attr){return typeof attr!="string"&&(attr=String(attr),attr==="undefined"&&(attr="")),$.trim(attr)},_cookiesEnabled:function(){var cookieEnabled=navigator.cookieEnabled;return cookieEnabled||(document.cookie="testcookie",cookieEnabled=document.cookie.indexOf("testcookie")!==-1),cookieEnabled}}),Cart})(),theme.Quotes=(function(){function Quotes(container){this.$container=$(container).on("init",this._a11y.bind(this)),this.$container.slick({accessibility:!0,arrows:!1,dots:!0,draggable:!0,autoplay:!1})}return Quotes.prototype=_.assignIn({},Quotes.prototype,{_a11y:function(event,obj){var $list=obj.$list,$wrapper=this.$container.parent();$list.removeAttr("aria-live"),$wrapper.on("focusin",function(evt){$wrapper.has(evt.target).length&&$list.attr("aria-live","polite")}),$wrapper.on("focusout",function(evt){$wrapper.has(evt.target).length&&$list.removeAttr("aria-live")})},_goToSlide:function(slideIndex){this.$container.slick("slickGoTo",slideIndex)},onUnload:function(){delete this.$container},onBlockSelect:function(evt){var $slide=$(".quote__slide-wrapper--"+evt.detail.blockId+":not(.slick-cloned)"),slideIndex=$slide.data("slick-index");this._goToSlide(slideIndex)}}),Quotes})(),theme.init=function(){theme.customerTemplates.init(),slate.rte.wrapTable(),slate.rte.iframeReset(),slate.a11y.pageLinkFocus($(window.location.hash)),$(".in-page-link").on("click",function(evt){slate.a11y.pageLinkFocus($(evt.currentTarget.hash))}),$('a[href="#"]').on("click",function(evt){evt.preventDefault()});var sections=new theme.Sections;sections.register("header",theme.HeaderSection),sections.register("product",theme.Product),sections.register("collection-filters",theme.Filters),sections.register("map",theme.Maps),sections.register("slideshow",theme.Slideshow),sections.register("cart",theme.Cart),sections.register("quotes",theme.Quotes),$(window).on("load",theme.articleImages),theme.passwordModalInit()},theme.articleImages=function(){var $indentedRteImages=$(".rte--indented-images");$indentedRteImages.length&&$indentedRteImages.find("img").each(function(i,el){var $el=$(el),attr=$el.attr("style");(!attr||attr==="float: none;")&&$el.width()>=$indentedRteImages.width()&&$el.parent("p").addClass("rte__image-indent")})},theme.passwordModalInit=function(){var $loginModal=$("#LoginModal");$loginModal.length&&(theme.PasswordModal=new window.Modals("LoginModal","login-modal",{focusOnOpen:"#Password"}),$loginModal.find(".errors").length&&theme.PasswordModal.open())},$(theme.init),$(document).ready(function(){$("body").on("click",'[name="checkout"], [name="goto_pp"], [name="goto_gc"]',function(){if($("#agree").is(":checked"))$(this).submit();else return alert("You must agree with the terms and conditions of sales to check out."),!1})});
2//# sourceMappingURL=/cdn/shop/t/8/assets/theme.js.map?v=99664478688531331471718652423

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.