PageSourceSearch

https://lucidiait.com/cdn/shop/t/54/assets/theme.js?v=178792814315457120421786824603

js lucidiait.com collected 2026-10-04 13:24:11 UTC 76,523 bytes, 2 lines download raw bytes

1(function(){if(typeof window.CustomEvent=="function")return!1;function CustomEvent2(event,params){params=params||{bubbles:!1,cancelable:!1,detail:void 0};var evt=document.createEvent("CustomEvent");return evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail),evt}CustomEvent2.prototype=window.Event.prototype,window.CustomEvent=CustomEvent2})(),typeof theme=="undefined"&&(theme={});var html=$("html"),body=$("body"),winWidth=$(window).width(),winHeight=$(window).height();theme.mobileBrkp=768,theme.tabletBrkp=981,theme.LibraryLoader=(function(){var types={link:"link",script:"script"},status={requested:"requested",loaded:"loaded"},cloudCdn="https://cdn.shopify.com/shopifycloud/",libraries={youtubeSdk:{tagId:"youtube-sdk",src:"https://www.youtube.com/iframe_api",type:types.script},plyr:{tagId:"plyr",src:"https://cdn.shopify.com/s/files/1/2333/0623/t/70/assets/plyr.min.js",type:types.script},plyrShopify:{tagId:"plyr-shopify",src:cloudCdn+"shopify-plyr/v1.0/shopify-plyr-legacy.en.js",type:types.script},plyrShopifyStyles:{tagId:"plyr-shopify-styles",src:cloudCdn+"shopify-plyr/v1.0/shopify-plyr.css",type:types.link},shopifyXr:{tagId:"shopify-model-viewer-xr",src:cloudCdn+"shopify-xr-js/assets/v1.0/shopify-xr.en.js",type:types.script},modelViewerUi:{tagId:"shopify-model-viewer-ui",src:cloudCdn+"model-viewer-ui/assets/v1.0/model-viewer-ui.en.js",type:types.script},modelViewerUiStyles:{tagId:"shopify-model-viewer-ui-styles",src:cloudCdn+"model-viewer-ui/assets/v1.0/model-viewer-ui.css",type:types.link}};function load(libraryName,callback){var library=libraries[libraryName];if(library&&library.status!==status.requested){if(callback=callback||function(){},library.status===status.loaded){callback();return}library.status=status.requested;var tag;switch(library.type){case types.script:tag=createScriptTag(library,callback);break;case types.link:tag=createLinkTag(library,callback);break}tag.id=library.tagId,library.element=tag;var firstScriptTag=document.getElementsByTagName(library.type)[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}function createScriptTag(library,callback){var tag=document.createElement("script");return tag.src=library.src,tag.addEventListener("load",function(){library.status=status.loaded,callback()}),tag}function createLinkTag(library,callback){var tag=document.createElement("link");return tag.href=library.src,tag.rel="stylesheet",tag.type="text/css",tag.addEventListener("load",function(){library.status=status.loaded,callback()}),tag}return{load:load}})(),theme.homeMaps=function(){mapInit=function(mapId,mapSection,mapAddress,mapStyle,mapPin){var geocoder,map;geocoder=new google.maps.Geocoder;var latlng=new google.maps.LatLng(1,1),myOptions={zoom:14,center:latlng,disableDefaultUI:!0,scrollwheel:!1,keyboardShortcuts:!1,styles:mapStyles[mapStyle]};map=new google.maps.Map(document.getElementById(mapId),myOptions),geocoder&&geocoder.geocode({address:mapAddress},function(results,status){if(status==google.maps.GeocoderStatus.OK&&status!=google.maps.GeocoderStatus.ZERO_RESULTS){map.setCenter(results[0].geometry.location);var marker=new google.maps.Marker({position:results[0].geometry.location,map:map,icon:window[mapPin]})}})},theme.runMap=function(map){var thisMap=$("#"+map),mapId=thisMap.data("map-id"),mapSection=thisMap.data("map-section"),mapAddress=thisMap.data("map-address"),mapStyle=thisMap.data("map-style"),mapPin=thisMap.data("map-pin");mapInit(mapId,mapSection,mapAddress,mapStyle,mapPin)};function eachMapInit(){$(".js-map-ids").each(function(){var thisMapId=$(this).data("map-id");theme.runMap(thisMapId)})}function mapTrigger(){var item=$(".js-map-info"),trigger=$(".js-map-trigger"),items=item.hide(),activeClass="js-active";$(".js-map").each(function(i){$(this).find(item).first().addClass(activeClass).show(),$(this).find(trigger).first().addClass(activeClass)}),trigger.click(function(){var thisItem=$(this).attr("href"),theseItems=$(thisItem).parents(".js-map").find(".js-map-info");if($(thisItem).hasClass(activeClass)||(theseItems.removeClass(activeClass).slideUp(),$(thisItem).addClass(activeClass).slideDown()),$(this).parents(".js-map").find(".js-map-media").removeClass(activeClass),$('.js-map-media[data-map-id="'+thisItem+'"]').addClass(activeClass),$(thisItem).find(".home-map__media-canvas").length){var thisMapId=$(thisItem).find(".home-map__media-canvas").attr("id");typeof thisMapId!="undefined"&&theme.runMap(thisMapId)}return $(this).hasClass(activeClass)||(trigger.removeClass(activeClass),$(this).addClass(activeClass)),!1})}mapTrigger();var lazyMap=new LazyLoad({elements_selector:".js-lazy-map",callback_set:function(el){if($(".
1js-map-ids").length>0)if(typeof window.google=="undefined"){var google_key;typeof theme.map.key!="undefined"?google_key=theme.map.key:google_key="",$.getScript("https://maps.googleapis.com/maps/api/js?key="+google_key).then(function(){mapPinDark={path:"M50,9.799c-15.188,0-27.499,12.312-27.499,27.499S50,90.201,50,90.201s27.499-37.715,27.499-52.902S65.188,9.799,50,9.799z   M50,44.813c-4.15,0-7.515-3.365-7.515-7.515S45.85,29.784,50,29.784s7.514,3.365,7.514,7.515S54.15,44.813,50,44.813z",fillColor:"#000000",anchor:new google.maps.Point(55,85),fillOpacity:1,scale:.6,strokeWeight:0},mapPinLight={path:"M50,9.799c-15.188,0-27.499,12.312-27.499,27.499S50,90.201,50,90.201s27.499-37.715,27.499-52.902S65.188,9.799,50,9.799z   M50,44.813c-4.15,0-7.515-3.365-7.515-7.515S45.85,29.784,50,29.784s7.514,3.365,7.514,7.515S54.15,44.813,50,44.813z",fillColor:"#ffffff",anchor:new google.maps.Point(55,85),fillOpacity:1,scale:.6,strokeWeight:0},mapStyles={light:[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f0f0f0"},{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:"#f0f0f0"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{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}]}],dark:[{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#000000"},{lightness:40}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#000000"},{lightness:16}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:17},{weight:1.2}]},{featureType:"administrative",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.country",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"administrative.country",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"simplified"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"all",stylers:[{visibility:"simplified"},{saturation:"-100"},{lightness:"30"}]},{featureType:"administrative.neighborhood",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{visibility:"simplified"},{gamma:"0.00"},{lightness:"74"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#000000"},{lightness:20}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{lightness:"3"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#000000"},{lightness:21}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#000000"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#000000"},{lightness:16}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#000000"},{lightness:19}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"},{lightness:17}]}],flat:[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#6195a0"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"geometry",stylers:[{lightness:"0"},{saturation:"0"},{color:"#f5f5f2"},{gamma:"1"}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{lightness:"-3"},{gamma:"1.00"}]},{featureType:"landscape.natural.terrain",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#bae5ce"},{visibility:"on"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45},{visibility:"simplified"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#fac9a9"},{visibility:"simplified"}]},{featureType:"road.highway",elementType:"labels.text",stylers:[{color:"#4e4e4e"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#787878"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"transit.station.airport",elementType:"labels.icon",stylers:[{hue:"#0a00ff"},{saturation:"-77"},{gamma:"0.57"},{lightness:"0"}]},{featureType:"transit.station.rail",elementType:"labels.text.fill",stylers:[{color:"#43321e"}]},{featureType:"transit.station.rail",elementType:"labels.icon",stylers:[{hue:"#ff6c00"},{lightness:"4"},{gamma:"0.75"},{saturation:"-68"}]},{featureType:"water",elementType:"all",stylers:[{color:"#eaf6f8"},{visibility:"on"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#c7eced"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{lightness:"-49"},{saturation:"-53"},{gamma:"0.79"}]}],clean_cut:[{featureType:"road",elementType:"geometry",stylers:[{lightness:100},{visibility:"simplified"}]},{featureType:"water",elementType:"geometry",stylers:[{visibility:"on"},{color:"#C6E2FF"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{color:"#C5E3BF"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#D1D1B8"}]}],minimal_dark:[{featureType:"all",elementType:"all",stylers:[{hue:"#ff0000"},{saturation:-100},{lightness:-30}]},{featureType:"all",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{color:"#353535"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#656565"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{color:"#505050"}]},{featureType:"poi",elementType:"geometry.stroke",stylers:[{color:"#808080"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#454545"}]},{featureType:"transit",elementType:"labels",stylers:[{hue:"#000000"},{saturation:100},{lightness:-40},{invert_lightness:!0}
1,{gamma:1.5}]}],blue_water:[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]}]},eachMapInit()})}else eachMapInit()}})},theme.layoutSlider=function(slider){$(window).resize(function(){winWidth=$(window).width();var thisSlider=$(slider);winWidth<theme.mobileBrkp?thisSlider.not(".slick-initialized").slick({slidesToShow:1,infinite:!1,dots:!0,arrows:!1,centerMode:!0,centerPadding:"30px"}):thisSlider.hasClass("slick-initialized")&&thisSlider.slick("unslick"),thisSlider.on("afterChange",function(event,slick,currentSlide){$(this).find(".slick-current").addClass("js-slide-seen")})}).resize()},theme.productCollSwatch=function(){$(".product__swatch__item").click(function(){var currentProduct=$(this).parents(".js-product"),currentProudctImage=currentProduct.find(".product__img"),variantProductImage=$(this).data("variant-image"),variantUrl=$(this).data("variant-url");return currentProudctImage.attr("data-src",variantProductImage),currentProudctImage.addClass("lazyload"),currentProduct.find(".js-product-link").attr("href",variantUrl),currentProduct.find(".js-product-swatch-item").removeClass("js-active"),$(this).addClass("js-active"),!1})};function onYouTubeIframeAPIReady(){theme.ProductVideo.loadVideos(theme.ProductVideo.hosts.youtube)}theme.ProductVideo=(function(){var productCarousel=$(".js-product-slider"),videos={},hosts={html5:"html5",youtube:"youtube"},selectors={productMediaWrapper:"[data-product-media-wrapper]"},attributes={enableVideoLooping:"enable-video-looping",videoId:"video-id"};function init(videoContainer,sectionId){if(videoContainer.length){var videoElement=videoContainer.find("iframe, video")[0],mediaId=videoContainer.data("mediaId");if(videoElement){videos[mediaId]={mediaId:mediaId,sectionId:sectionId,host:hostFromVideoElement(videoElement),container:videoContainer,element:videoElement,ready:function(){createPlayer(this)}};var video=videos[mediaId];switch(video.host){case hosts.html5:theme.LibraryLoader.load("plyrShopify",loadVideos.bind(this,hosts.html5)),theme.LibraryLoader.load("plyrShopifyStyles");break;case hosts.youtube:theme.LibraryLoader.load("youtubeSdk");break}}}}function createPlayer(video){if(!video.player){var productMediaWrapper=video.container.closest(selectors.productMediaWrapper),enableLooping=productMediaWrapper.data(attributes.enableVideoLooping);switch(video.host){case hosts.html5:video.player=new Shopify.Plyr(video.element,{controls:["play","progress","mute","volume","play-large","fullscreen"],loop:{active:enableLooping},hideControlsOnPause:!0,iconUrl:"//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.svg",tooltips:{controls:!1,seek:!0}});break;case hosts.youtube:var videoId=productMediaWrapper.data(attributes.videoId);video.player=new YT.Player(video.element,{videoId:videoId,events:{onStateChange:function(event){event.data===0&&enableLooping&&event.target.seekTo(0)}}});break}productCarousel.on("beforeChange",function(event,slick,currentSlide,nextSlide){var thisSectionId=$(this).parents(".section").data("section-id");thisSectionId==video.sectionId&&video.container.data("slide-id")==nextSlide&&(Modernizr.touchevents||nextSlide!==currentSlide&&setTimeout(function(){video.host===hosts.html5&&video.player.play(),video.host===hosts.youtube&&video.player.playVideo&&video.player.playVideo()},300))}),productCarousel.on("afterChange",function(event,slick,currentSlide){var thisSectionId=$(this).parents(".section").data("section-id");thisSectionId==video.sectionId&&video.container.data("slide-id")!=currentSlide&&(video.host===hosts.html5&&video.player.pause(),video.host===hosts.youtube&&video.player.pauseVideo&&video.player.pauseVideo())}),$(document).on("shopify_xr_launch",function(){video.host===hosts.html5&&video.player.pause(),video.host===hosts.youtube&&video.player.pauseVideo&&video.player.pauseVideo()})}}function hostFromVideoElement(video){return video.tagName==="VIDEO"?hosts.html5:video.tagName==="IFRAME"&&/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(video.src)?hosts.youtube:null}function loadVideos(host){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];video.host===host&&video.ready()}}function removeSectionVideos(sectionId){for(var key in videos)if(videos.hasOwnProperty(key)){var video=videos[key];video.sectionId===sectionId&&(video.player&&video.player.destroy(),delete videos[key])}}return{init:init,hosts:hosts,loadVideos:loadVideos,removeSectionVideos:removeSectionVideos}})(),theme.ProductModel=(function(){var modelJsonSections={},models={},xrButtons={},productCarousel=$(".js-product-slider"),selectors={mediaGroup:"[data-product-media-group]",xrButton:"[data-shopify-xr]"};function init(modelViewerContainers,sectionId){modelJsonSections[sectionId]={loaded:!1},modelViewerContainers.each(function(index){var $modelViewerContainer=$(this),mediaId=$modelViewerContainer.data("media-id"),$modelViewerElement=$($modelViewerContainer.find("model-viewer")[0]),modelId=$modelViewerElement.data("model-id");if(index===0){var $xrButton=$modelViewerContainer.closest(selectors.mediaGroup).find(selectors.xrButton);xrButtons[sectionId]={$element:$xrButton,defaultId:modelId}}models[mediaId]={modelId:modelId,sectionId:sectionId,$container:$modelViewerContainer,$element:$modelViewerElement}}),window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0",onLoad:setupShopifyXr}
1,{name:"model-viewer-ui",version:"1.0",onLoad:setupModelViewerUi}]),theme.LibraryLoader.load("modelViewerUiStyles")}function setupShopifyXr(errors){if(!errors){if(!window.ShopifyXR){document.addEventListener("shopify_xr_initialized",function(){setupShopifyXr()});return}for(var sectionId in modelJsonSections)if(modelJsonSections.hasOwnProperty(sectionId)){var modelSection=modelJsonSections[sectionId];if(modelSection.loaded)continue;var $modelJson=$("#ModelJson-"+sectionId);window.ShopifyXR.addModels(JSON.parse($modelJson.html())),modelSection.loaded=!0}window.ShopifyXR.setupXRElements()}}function setupModelViewerUi(errors){if(!errors){for(var key in models)if(models.hasOwnProperty(key)){var model=models[key];model.modelViewerUi||(model.modelViewerUi=new Shopify.ModelViewerUI(model.$element)),setupModelViewerListeners(model)}}}function setupModelViewerListeners(model){var xrButton=xrButtons[model.sectionId];productCarousel.on("beforeChange",function(event,slick,currentSlide,nextSlide){var thisSectionId=$(this).parents(".section").data("section-id");thisSectionId==model.sectionId&&model.$container.data("slide-id")==nextSlide&&(Modernizr.touchevents||nextSlide!==currentSlide&&(xrButton.$element.attr("data-shopify-model3d-id",model.modelId),setTimeout(function(){model.modelViewerUi.play()},300)),$(this).slick("slickSetOption","swipe",!1))}),productCarousel.on("beforeChange",function(event,slick,currentSlide,nextSlide){var thisSectionId=$(this).parents(".section").data("section-id");thisSectionId==model.sectionId&&model.$container.data("slide-id")==currentSlide&&model.$container.data("slide-id")!=nextSlide&&(xrButton.$element.attr("data-shopify-model3d-id",xrButton.defaultId),model.modelViewerUi.pause(),$(this).slick("slickSetOption","swipe",!0))}),$(document).on("shopify_xr_launch",function(){model.modelViewerUi.pause()})}function removeSectionModels(sectionId){for(var key in models)if(models.hasOwnProperty(key)){var model=models[key];model.sectionId===sectionId&&delete models[key]}delete modelJsonSections[sectionId]}return{init:init,removeSectionModels:removeSectionModels}})(),theme.productMediaInit=function(){$(".product-single__photo__item--video").each(function(index){theme.ProductVideo.init($(this),$(".section--product-single").data("section-id"))}),$(".product-single__photo__item--model").length>0&&theme.ProductModel.init($(".product-single__photo__item--model"),$(".section--product-single").data("section-id"))},theme.homeProductMediaInit=function(){$(".product-featured__photo__item--video").each(function(index){theme.ProductVideo.init($(this),$(this).parents(".section").data("section-id"))}),$(".js-section__home-product").each(function(index){$(this).has(".product-featured__photo__item--model").length&&theme.ProductModel.init($(this).find(".product-featured__photo__item--model"),$(this).children(".section").data("section-id"))})},theme.productSelect=function(sectionId,cssClass,historyState){var productObj=document.getElementById("ProductJson-"+sectionId).innerHTML;productObj=JSON.parse(productObj||"{}");var sectionClass=cssClass,selectCallback=function(variant,selector){var productId=productObj.id;if(sectionClass=sectionClass,document.dispatchEvent(new CustomEvent("venue:variant:update",{bubbles:!0,detail:{product:productObj,variant:variant,cssClass:cssClass}})),variant){if(variant.unit_price_measurement){var unitPrice=$(".js-product-"+productId+" .js-price-unit-price"),unitMeasure=$(".js-product-"+productId+" .js-price-unit-measure"),unitCurrentPrice=Shopify.formatMoney(variant.unit_price,theme.money_format),unitCurrentMeasure=variant.unit_price_measurement.reference_value===1?variant.unit_price_measurement.reference_unit:variant.unit_price_measurement.reference_value+variant.unit_price_measurement.reference_unit;unitPrice.html('<span class="money">'+unitCurrentPrice+"</span>"),unitMeasure.text(unitCurrentMeasure),$(".js-product-"+productId+" .js-price-unit-note").show()}else $(".js-product-"+productId+" .js-price-unit-note").hide();if(variant.available){if(variant.inventory_management){var qtyLimit=$(".js-product-"+productId+" .js-price-stock-note").data("qty-limit"),variantQty=$(".js-product-"+productId+" .js-product-variant-select option[value="+variant.id+"]").data("qty");variantQty<=qtyLimit?($(".js-product-"+productId+" .js-price-stock-note").show(),$(".js-product-"+productId+" .js-price-stock-note span").text(variantQty)):$(".js-product-"+productId+" .js-price-stock-note").hide()}else $(".js-product-"+productId+" .js-price-stock-note").hide();$(".js-product-"+productId+" .js-product-add").removeClass("disabled").prop("disabled",!1).find(".js-product-add-text").text(theme.t.add_to_cart),$(".js-product-"+productId+" .js-product-buttons").removeClass("product-single__add--sold"),variant.compare_at_price>
1variant.price?($(".js-product-"+productId+" .js-product-price-number").html('<span class="product-'+sectionClass+"__price-number product-"+sectionClass+'__price-number--sale"><span class="money">'+Shopify.formatMoney(variant.price,theme.money_format)+"</span></span>"),$(".js-product-"+productId+" .js-product-price-compare").html('<s class="product-'+sectionClass+'__price-compare"><span class="money">'+Shopify.formatMoney(variant.compare_at_price,theme.money_format)+"</span></s>")):($(".js-product-"+productId+" .js-product-price-number").html('<span class="product-'+sectionClass+'__price-number"><span class="money">'+Shopify.formatMoney(variant.price,theme.money_format)+"</span></span>"),$(".js-product-"+productId+" .js-product-price-compare").empty())}else $(".js-product-"+productId+" .js-price-stock-note").hide(),$(".js-product-"+productId+" .js-product-add").addClass("disabled").prop("disabled",!0).find(".js-product-add-text").text(theme.t.sold_out),$(".js-product-"+productId+" .js-product-buttons").addClass("product-single__add--sold"),variant.compare_at_price>variant.price?($(".js-product-"+productId+" .js-product-price-number").html('<span class="product-'+sectionClass+"__price-number product-"+sectionClass+'__price-number--sale"><span class="money">'+Shopify.formatMoney(variant.price,theme.money_format)+"</span></span>"),$(".js-product-"+productId+" .js-product-price-compare").html('<s class="product-'+sectionClass+'__price-compare"><span class="money">'+Shopify.formatMoney(variant.compare_at_price,theme.money_format)+"</span></s>")):($(".js-product-"+productId+" .js-product-price-number").html('<span class="product-'+sectionClass+'__price-number"><span class="money">'+Shopify.formatMoney(variant.price,theme.money_format)+"</span></span>"),$(".js-product-"+productId+" .js-product-price-compare").empty())}else $(".js-product-"+productId+" .js-price-unit-note").hide(),$(".js-product-"+productId+" .js-price-stock-note").hide(),$(".js-product-"+productId+" .js-product-price-number").html("&nbsp;"),$(".js-product-"+productId+" .js-product-price-compare").empty(),$(".js-product-"+productId+" .js-product-add").addClass("disabled").prop("disabled",!0).find(".js-product-add-text").text(theme.t.unavailable);var thisSlider=$(".js-product-"+productId+" .js-product-slider");function checkSlick(slideToGo){var interval=setInterval(function(){thisSlider.hasClass("slick-initialized")&&(thisSlider.slick("slickGoTo",slideToGo),clearInterval(interval))},100)}if(variant.featured_image!==null)if(variant.featured_image.variant_ids.length>0){var mediaId=variant.featured_media.id,slide=$(".js-product-"+productId+" .product-"+sectionClass+"__photo__item[data-media-id*="+variant.featured_media.id+"]"),slideId=slide.attr("data-slide-id");checkSlick(slideId)}else checkSlick(0);document.dispatchEvent(new CustomEvent("venue:variant:updated",{bubbles:!0,detail:{product:productObj,variant:variant,cssClass:cssClass}})),typeof window.BOLD!="undefined"&&typeof window.BOLD.common!="undefined"&&typeof window.BOLD.common.eventEmitter!="undefined"&&typeof window.BOLD.common.eventEmitter.emit!="undefined"&&BOLD.common.eventEmitter.emit("BOLD_COMMON_variant_changed")};$(".js-product-single-swatch :radio").change(function(){var optionIndex=$(this).closest(".js-product-single-swatch").attr("data-option-index"),optionValue=$(this).val();$(this).closest("form").find(".single-option-selector").eq(optionIndex-1).val(optionValue).change();var value=$(this).val(),sub_title=$(this).parents(".js-product-single-swatch").find(".js-swatch-variant-title");sub_title.text(value)}),$(".js-swatch-variant-title").text($(".js-swatch-color-item :radio:checked").val()),productObj.onboarding!==!0&&(new Shopify.OptionSelectors("productSelect-"+sectionId,{product:productObj,onVariantSelected:selectCallback,enableHistoryState:historyState}),productObj.options.length==1&&productObj.options[0]!="Title"&&$(".js-product-"+productObj.id+" .selector-wrapper:eq(0)").prepend('<label for="productSelect-option-0">'+productObj.options[0]+"</label>"),productObj.variants.length==1&&productObj.variants[0].title.indexOf("Default")>-1&&($(".js-product-"+productObj.id+" .selector-wrapper").hide(),$(".js-product-"+productObj.id+" .swatch").hide()))},theme.eventFeed=function(apiKey,templateId,anchorId,sectionId){var orgUrl="https://www.eventbriteapi.com//v3/users/me/organizations/?token="+apiKey;$.getJSON(orgUrl,function(data){}).done(function(data){var orgId=data.organizations[0].id,eventsUrl="https://www.eventbriteapi.com//v3/organizations/"+orgId+"/events/?token="+apiKey+"&expand=venue&status=live";$.getJSON(eventsUrl,function(data2){var template=$(templateId).html(),compile=Handlebars.compile(template)(data2);$(anchorId).append(compile),theme.layoutSlider(".js-layout-slider-"+sectionId),$("body").data("anim-load")&&(sr.reveal(".section--"+sectionId+" .section__link",{distance:0}),sr.reveal(".section--"+sectionId+" .home-event__item",{interval:theme.intervalValue}))}),Handlebars.registerHelper("formatDate",function(date){return fecha.format(new Date(date),"ddd, DD MMM, HH:mm")}
1),Handlebars.registerHelper("each_upto",function(ary,max,options){if(!ary||ary.length===0)return options.inverse(this);for(var result=[],i=0;i<max&&i<ary.length;++i)result.push(options.fn(ary[i]));return result.join("")})})},theme.homeMainCarousel=function(){var carousels=$(".js-home-carousel"),currWinWidth=$(window).width(),mobileCond=currWinWidth>=1;carousels.each(function(){var carousel2=$(this);carousel2.on("init",function(event,slick){if($(this).find(".js-home-carousel-video--yt").length&&mobileCond){var thisCarousel=$(this);typeof YT=="undefined"?$.getScript("https://www.youtube.com/iframe_api").done(function(){var interval=setInterval(function(){$.isFunction(YT.Player)&&(loadVideos(thisCarousel),clearInterval(interval))},100)}):loadVideos(thisCarousel)}if($(this).find(".js-home-carousel-video--self").length&&$(this).find("[data-slide-id='0']").find(".js-home-carousel-video--self").length){var thisSelfVideo=$(this).find("[data-slide-id='0']").find(".js-home-carousel-video--self");setTimeout(function(){thisSelfVideo.addClass("js-loaded")},300)}$(this).find(".slick-active").addClass("js-slide-active")}),carousel2.on("afterChange",function(event,slick,currentSlide){if(mobileCond){var currentSlideElement=$(this).find("[data-slide-id='"+currentSlide+"']");if(currentSlideElement.find(".js-home-carousel-video--yt").length){var dataPlayerId=$(this).find(".slick-active .js-home-carousel-video-data").attr("data-player-id");window[dataPlayerId].B?window[dataPlayerId].playVideo():setTimeout(function(){window[dataPlayerId].playVideo()},1e3);var thisYTVideo=$(this).find(".slick-active .js-home-carousel-video");setTimeout(function(){thisYTVideo.addClass("js-loaded")},800)}if(currentSlideElement.find(".js-home-carousel-video--self").length){var thisSelfVideo=$(this).find(".slick-active .js-home-carousel-video");setTimeout(function(){thisSelfVideo.addClass("js-loaded")},300)}}$(this).find(".slick-slide").removeClass("js-slide-active"),$(this).find(".slick-active").addClass("js-slide-active")}),carousel2.not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!0,fade:!0,cssEase:"linear",prevArrow:'<div class="home-carousel__nav home-carousel__nav--prev"><i class="icon icon--left-t"></i></div>',nextArrow:'<div class="home-carousel__nav home-carousel__nav--next"><i class="icon icon--right-t"></i></div>'});for(var i=0;i<10;i++)setTimeout(function(){$(".js-home-carousel").slick("setPosition")},250*i)});function loadVideos(thisCarousel){var players=$(thisCarousel).find(".js-home-carousel-video-data");function onReadyVideo(event){event.target.mute(),theme.videoSize(event.target.f),$(event.target.f).parents(".slick-slide").hasClass("slick-active")&&(event.target.playVideo(),setTimeout(function(){$(event.target.f).parent().addClass("js-loaded")},800))}function onChangeVideo(event){event.data===YT.PlayerState.ENDED&&event.target.playVideo()}for(var i=0;i<players.length;i++)window[players[i].getAttribute("data-player-id")]=new YT.Player(players[i],{videoId:players[i].getAttribute("data-video-id"),playerVars:{iv_load_policy:3,modestbranding:1,playsinline:1,cc_load_policy:0,fs:0,autoplay:1,mute:1,controls:0,showinfo:0,wmode:"opaque",quality:"hd720",branding:0,autohide:0,rel:0},events:{onReady:onReadyVideo,onStateChange:onChangeVideo}})}var videoResizeTimer;$(window).resize(function(){winWidth=$(window).width(),clearTimeout(videoResizeTimer),videoResizeTimer=setTimeout(function(){theme.videoSize($(".js-home-carousel-video-data"))},500)})},theme.videoSize=function(video){var iframe=$(video),origHeight=iframe.attr("height"),origWidth=iframe.attr("width"),parentHeigt=iframe.parent().height(),parentWidth=iframe.parent().width(),newHeight=parentWidth/origWidth*origHeight,newWidth=parentHeigt/origHeight*origWidth;parentHeigt<newHeight?iframe.css({width:parentWidth+"px",height:newHeight+120+"px",top:(parentHeigt-newHeight)/2-60+"px",left:0}):iframe.css({width:newWidth+"px",height:parentHeigt+120+"px",left:(parentWidth-newWidth)/2+"px",top:"-60px"})},theme.homeVideoGallery=function(){function vimeoThumbs(){var i=0;function next(){if(i<$(".js-vimeo-thumb").length){thisThumb=$(".js-vimeo-thumb")[i];var vimeoID2=$(thisThumb).attr("data-video-id");$.ajax({url:"https://vimeo.com/api/v2/video/"+vimeoID2+".json",dataType:"json",complete:function(data){$(thisThumb).attr("data-bgset",data.responseJSON[0].thumbnail_medium),i++,next()}})}}if(next(),$(".js-vimeo-placeholder").length>0){var vimeoID=$(".js-vimeo-placeholder").attr("data-video-id");$.ajax({url:"https://vimeo.com/api/v2/video/"+vimeoID+".json",dataType:"json",success:function(data){var img=data[0].thumbnail_large,newImg=img.replace("640","1280");$(".js-vimeo-placeholder").attr("data-bgset",newImg)}})}}vimeoThumbs(),homePlayers=[];var lazyVideoGallery=new LazyLoad({elements_selector:".js-home-video-stage",callback_set:function(el){theme.LibraryLoader.load("plyr",videoPlayersInit),theme.LibraryLoader.load("plyrShopifyStyles"),$(el).find(".js-lazy-iframe").each(function(i){$(this).attr("src",$(this).data("src")).removeAttr("data-src")});function videoPlayersInit(){$(el).find(".js-home-video-player").each(function(i){var videoId=$(this).attr("id");window[videoId]=new Plyr(".js-home-video-player",{controls:["play","progress","mute","volume","play-large","fullscreen"],loop:{active:!1},hideControlsOnPause:!0,iconUrl:"//cdn.shopify.com/shopifycloud/shopify-plyr/v1.0/shopify-plyr.svg",tooltips:{controls:!1,seek:!0}}),homePlayers.push(window[videoId])})}}});$(".js-home-video-placeholder-trigger").click(function(e){e.preventDefault();var triggerTarget=$(this).attr("href"),triggerId=$(this).attr("href").replace(/#/,"");
1$(this).parent(".js-home-video-placeholder").addClass("js-hidden"),homePlayers.forEach(function(instance){instance.pause()}),window["home_player_"+triggerId].play()}),$(".js-home-video-trigger").click(function(e){e.preventDefault();var triggerTarget="#js-home-video-"+$(this).attr("href").replace(/#/,""),triggerId=$(this).attr("href").replace(/#/,""),sectionPlaceholder=$(this).parents(".home-video").find(".js-home-video-placeholder");sectionPlaceholder.addClass("js-hidden"),$(this).parents(".home-video").find(".js-home-video").removeClass("js-active"),$(triggerTarget).addClass("js-active"),homePlayers.forEach(function(instance){instance.pause()}),$(this).parent().hasClass("js-paused")?(window["home_player_"+triggerId].play(),$(this).parent().removeClass("js-paused")):$(this).parent().hasClass("js-active")?$(this).parent().addClass("js-paused"):window["home_player_"+triggerId].play(),$(".js-home-video-trigger").parent().removeClass("js-active"),$(".js-home-video-trigger").parent().removeClass("js-init"),$(this).parent().addClass("js-active")})},theme.masonryLayout=function(){$(".o-layout--masonry").imagesLoaded().always(function(instance){$(".o-layout--masonry").masonry({itemSelector:".o-layout__item",transitionDuration:0}),$("body").data("anim-load")&&sr.delegate()}).progress(function(instance,image){$(".o-layout--masonry").masonry({itemSelector:".o-layout__item",transitionDuration:0}),$("body").data("anim-load")&&sr.delegate()})},theme.animFade=function(){$("body").data("anim-fade")&&($('a[href^="#"], a[target="_blank"], a[href^="mailto:"], a[href^="tel:"], a[href*="youtube.com/watch"], a[href*="youtu.be/"]').each(function(){$(this).addClass("js-no-transition")}),(navigator.userAgent.match(/Version\/[\d\.]+.*Safari/)||navigator.userAgent.match(/Firefox\/([0-9]+)\./))&&$("a").on("click",function(){window.setTimeout(function(){$("body").removeClass("js-theme-unloading")},1200)}),$("a:not(.js-no-transition, .js-header-sub-link-a, .js-header-sub-t-a)").bind("click",function(e){if(e.metaKey)return!0;e.preventDefault(),$.magnificPopup.close(),$("body").addClass("js-theme-unloading");var src=$(this).attr("href");window.setTimeout(function(){location.href=src},50)}))},theme.animScroll=function(){if($("body").data("anim-load")){theme.intervalStyle={},$("body").data("anim-interval-style")=="fade_down"?theme.intervalStyle="-20px":$("body").data("anim-interval-style")=="fade_up"?theme.intervalStyle="20px":theme.intervalStyle="0",theme.intervalValue={},$("body").data("anim-interval")?theme.intervalValue=200:theme.intervalValue=0;var config={viewFactor:.1,duration:1e3,distance:theme.intervalStyle,scale:1,delay:0,mobile:!0,useDelay:"once",beforeReveal:function(el){$(el).addClass("js-sr-loaded")}};window.sr=new ScrollReveal(config),sr.reveal(".section__title",{distance:"5px"}),sr.reveal(".section__title-desc",{distance:0,delay:300}),sr.reveal(".newsletter, .section__link, .account",{distance:0}),sr.reveal(".product-top, .collection-list__item",{interval:theme.intervalValue}),sr.reveal(".cart .section__title",{distance:"20px"}),sr.reveal(".cart__content",{distance:0,delay:500}),sr.reveal(".search-page .section__title",{distance:"20px"}),sr.reveal(".search-page__form, .search-page-pagination",{distance:0,delay:200}),sr.reveal(".search-page .product-top, .search-page__other-item",{interval:theme.intervalValue,delay:0}),sr.reveal(".blog",{delay:300,interval:theme.intervalValue}),sr.reveal(".blog-page__tags, .blog-pagination",{distance:0,delay:300}),sr.reveal(".blog-page .section__title",{distance:"20px"}),sr.reveal(".article .section__title",{distance:"20px"}),sr.reveal(".article__date",{distance:"-10px",delay:500}),sr.reveal(".article__featured-media, .article__content",{distance:0,delay:200}),sr.reveal(".article__meta, .article-paginate",{distance:0}),sr.reveal(".collection__header-info__title",{distance:"20px"}),sr.reveal(".collection .product-top",{interval:theme.intervalValue}),sr.reveal(".collection__header-media, .collection__header-info__text, .collection-main__sort, .collection-empty, .collection-pagination",{distance:0,delay:200}),sr.reveal(".list-collections .section__title",{distance:"20px"}),sr.reveal(".list-collections .collection-list__item",{interval:theme.intervalValue,delay:500}),sr.reveal(".product-single__title-text",{distance:"20px"}),sr.reveal(".product-single__title-desc, .breadcrumb, .product-single__photos, .product-single__content, .product-single--minimal .product-single__content-text",{distance:0,delay:300,useDelay:"onload"}),sr.reveal(".page .section__title",{distance:"20px"}),sr.reveal(".faq__cta",{distance:0,delay:300}),sr.reveal(".faq__search",{distance:0,delay:300}),sr.reveal(".faq__accordion",{distance:0,delay:500}),sr.reveal(".faq__category__title",{distance:0}),sr.reveal(".page__contact-form",{distance:0,delay:200}
1),sr.reveal(".home-carousel .section__title",{distance:0}),sr.reveal(".home-image-grid__item",{interval:theme.intervalValue}),sr.reveal(".home-promo__box"),sr.reveal(".home-intro",{distance:0}),sr.reveal(".home-intro__media, .home-intro__text, .home-intro__video, .home-intro__link-wrap"),sr.reveal(".home-logo-list__items",{distance:0}),sr.reveal(".home-testimonials",{distance:0}),sr.reveal(".product-featured__photo-wrapper",{distance:0,delay:500}),sr.reveal(".home-event__item",{interval:theme.intervalValue}),sr.reveal(".home-delivery",{distance:0}),sr.reveal(".home-delivery__content",{distance:theme.intervalStyle}),sr.reveal(".home-map__items"),sr.reveal(".home-rich-text__content",{distance:0,delay:500}),sr.reveal(".home-inline__item",{interval:theme.intervalValue}),sr.reveal(".home-video__stage, .home-video__items",{distance:0}),sr.reveal(".home-custom__item",{interval:theme.intervalValue}),sr.reveal(".home-html",{distance:0})}},theme.thumbsCarousel=function(){$(".js-section__product-single .js-product-slider").not(".slick-initialized").each(function(){$(this).slick({focusOnSelect:!0,accessibility:!0,slidesToShow:1,slidesToScroll:1,infinite:!1,arrows:!0,dots:!0,swipe:!0,fade:!0,adaptiveHeight:!0,speed:300,cssEase:"ease",lazyLoad:"progressive",prevArrow:'<div class="product-single__photo__nav__item product-single__photo__nav__item--prev"><i class="icon icon--left-l"></i></div>',nextArrow:'<div class="product-single__photo__nav__item product-single__photo__nav__item--next"><i class="icon icon--right-l"></i></div>',customPaging:function(slider,i2){return'<button><div class="product-single__photo-thumbs__item">'+$(".js-product-single-thumbs div:nth-child("+(i2+1)+")").html()+"</div></button>"},appendDots:$(this).parent().find(".js-product-slider-nav-dots"),responsive:[{breakpoint:768,settings:{appendArrows:$(this).parent().find(".js-product-slider-nav")}}]}).on("setPosition",function(event,slick){if($(".product-single").hasClass("product-single--classic")){$(".js-product-bg").hasClass("js-product-bg--full")?heightFraction=1:heightFraction=.55;var photoHeight=$(".js-product-slider").find(".slick-list").height(),thumbsHeight=0;$(".js-product-slider-nav").find(".slick-dots").length&&(thumbsHeight=$(".js-product-slider-nav").find(".slick-dots").outerHeight(!0));var breadcrumbHeight=0;$(".js-breadcrumb").length&&(breadcrumbHeight=$(".js-breadcrumb").outerHeight(!0));var viewInSpaceBtnHeight=0;$(".js-product-view-in-space-btn").length>0&&!$(".js-product-view-in-space-btn").is("[data-shopify-xr-hidden]")&&(viewInSpaceBtnHeight=$(".js-product-view-in-space-btn").outerHeight(!0)),$(".js-product-bg").css("height",photoHeight*heightFraction+thumbsHeight+breadcrumbHeight+viewInSpaceBtnHeight+60+"px")}})});for(var i=0;i<15;i++)setTimeout(function(){$(".js-product-slider").slick("setPosition")},250*i)},theme.logoCarousel=function(){function logoCarouselInitFull(carousel2){carousel2.not(".slick-initialized").slick({slidesToShow:slideCount,slidesToScroll:slideCount,arrows:!0,dots:!0,fade:!1,adaptiveHeight:!1,speed:300,cssEase:"ease",lazyLoad:"progressive",prevArrow:'<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--prev"><i class="icon icon--left-l"></i></div>',nextArrow:'<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--next"><i class="icon icon--right-l"></i></div>',responsive:[{breakpoint:theme.mobileBrkp,settings:{swipeToSlide:!0,variableWidth:!0,slidesToShow:1,slidesToScroll:1}}]})}function logoCarouselInitDesk(carousel2){carousel2.not(".slick-initialized").slick({slidesToShow:slideCount,slidesToScroll:slideCount,arrows:!0,dots:!0,fade:!1,adaptiveHeight:!1,speed:300,cssEase:"ease",lazyLoad:"progressive",prevArrow:'<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--prev"><i class="icon icon--left-l"></i></div>',nextArrow:'<div class="home-logo-list-carousel__nav home-logo-list-carousel__nav--next"><i class="icon icon--right-l"></i></div>'})}function logoCarouselInitMobile(carousel2){carousel2.not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,variableWidth:!0,arrows:!1,dots:!0,fade:!1,adaptiveHeight:!1,speed:300,cssEase:"ease",lazyLoad:"progressive"})}$(window).resize(function(){winWidth=$(window).width();var carousels=$(".js-home-logo-list-carousel");carousels.each(function(){carousel=$(this),slideCount=carousel.data("carouselCount"),desktop=carousel.data("carouselDesktop"),mobile=carousel.data("carouselMobile"),desktop&&mobile?logoCarouselInitFull(carousel,slideCount):desktop?winWidth>=theme.mobileBrkp?logoCarouselInitDesk(carousel,slideCount):carousel.hasClass("slick-initialized")&&carousel.slick("unslick"):mobile&&(winWidth<theme.mobileBrkp?logoCarouselInitMobile(carousel,slideCount):carousel.hasClass("slick-initialized")&&carousel.slick("unslick"))})}).resize()}
1,theme.testimonialsCarousel=function(){function testimonialsCarouselInit(carousel2){carousel2.not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!0,fade:!1,adaptiveHeight:!1,speed:300,cssEase:"ease",lazyLoad:"progressive",prevArrow:'<div class="home-testimonials-carousel__nav home-testimonials-carousel__nav--prev"><i class="icon icon--left-l"></i></div>',nextArrow:'<div class="home-testimonials-carousel__nav home-testimonials-carousel__nav--next"><i class="icon icon--right-l"></i></div>'})}$(window).resize(function(){winWidth=$(window).width();var carousels=$(".js-home-testimonials-carousel");carousels.each(function(){carousel=$(this),desktop=carousel.data("carouselDesktop"),mobile=carousel.data("carouselMobile"),desktop&&mobile?testimonialsCarouselInit(carousel):desktop?winWidth>=theme.mobileBrkp?testimonialsCarouselInit(carousel):carousel.hasClass("slick-initialized")&&carousel.slick("unslick"):mobile&&(winWidth<theme.mobileBrkp?testimonialsCarouselInit(carousel):carousel.hasClass("slick-initialized")&&carousel.slick("unslick"))})}).resize()},theme.headerScrollUp=function(){function hasScrolled(){var st=$(this).scrollTop();Math.abs(lastScrollTop-st)<=delta||(st>lastScrollTop&&st>navbarHeight?$(body).removeClass("header-down").addClass("header-up"):$(body).removeClass("header-up").addClass("header-down"),lastScrollTop=st)}if($(".js-header").hasClass("js-header-scroll")){var didScroll,lastScrollTop=0,delta=5,navbarHeight=$(".js-header").outerHeight()+50;$(window).scroll(function(event){didScroll=!0}),setInterval(function(){$(".js-header").hasClass("js-header-scroll")&&didScroll&&(hasScrolled(),didScroll=!1)},250)}},theme.accordion=function(){var item=$(".js-accordion-info"),trigger=$(".js-accordion-trigger"),items=item.hide(),activeClass="js-active";trigger.click(function(){var thisItem=$(this).attr("href");if(setTimeout(function(){$(".js-product-single-box").trigger("resize")},400),$(this).hasClass("js-accordion-scroll")){var outsideAccordion=$(".js-accordion").find("[href='"+$(this).attr("href")+"']");return $(".js-header").hasClass("js-header-sticky")?scrollOffset=$(".js-header").outerHeight()+18:scrollOffset=18,$("html,body").animate({scrollTop:outsideAccordion.offset().top-scrollOffset},800),$(thisItem).addClass(activeClass).stop().slideDown(),outsideAccordion.addClass(activeClass),!1}return $(thisItem).hasClass(activeClass)?($(this).removeClass(activeClass),$(thisItem).removeClass(activeClass).stop().slideUp()):($(thisItem).addClass(activeClass).stop().slideDown(),$(this).addClass(activeClass)),!1}),typeof faq_items!="undefined"&&($(".js-faq-autocomplete").autocomplete({lookup:faq_items,lookupFilter:function(suggestion,query,queryLowerCase){var content=suggestion.content.toLowerCase(),value=suggestion.value.toLowerCase();return content.indexOf(queryLowerCase)>-1||value.indexOf(queryLowerCase)>-1},onSelect:function(suggestion){$(".js-header").hasClass("js-header-sticky")?scrollOffset=$(".js-header").outerHeight()+18:scrollOffset=18,$("html,body").animate({scrollTop:$(".js-accordion").find("[href='#"+suggestion.data+"']").offset().top-scrollOffset},800),setTimeout(function(){$("#"+suggestion.data).addClass(activeClass).stop().slideDown(),$(".js-accordion").find("[href='#"+suggestion.data+"']").addClass(activeClass)},800),$(this).val("")}}),$(".js-faq-autocomplete").disableAutoFill())},theme.scrollToDiv=function(){$(".js-scroll-id").click(function(e){var thisId=$(this).attr("href");return $(".js-header").hasClass("js-header-sticky")?scrollOffset=$(".js-header").outerHeight()+18:scrollOffset=18,$("html,body").animate({scrollTop:$(thisId).offset().top-scrollOffset},800),!1})},theme.localizeToggle=function(){var box=$(".js-localize-box"),trigger=$(".js-localize-trigger"),item=$(".js-localize-item"),activeClass="js-active";item.click(function(){var value=$(this).data("value");return $(this).parents(".js-localize-wrapper").find("[data-disclosure-input]").val(value),$(this).parents("form").submit(),!1}),trigger.click(function(){var thisTarget=$(this).parents(".js-localize-wrapper").find(box);return $(this).hasClass(activeClass)?($(this).removeClass(activeClass).attr("aria-expanded","fal
1se"),$(thisTarget).removeClass(activeClass)):(box.removeClass(activeClass),trigger.removeClass(activeClass).attr("aria-expanded","false"),$(thisTarget).addClass(activeClass),$(this).addClass(activeClass).attr("aria-expanded","true")),!1}),box.focusin(function(){$(this).addClass(activeClass),$(this).parents(".js-localize-wrapper").find(trigger).addClass(activeClass).attr("aria-expanded","true")}).focusout(function(){$(this).removeClass(activeClass),$(this).parents(".js-localize-wrapper").find(trigger).removeClass(activeClass).attr("aria-expanded","false")}),$(document).click(function(e){!box.is(e.target)&&box.has(e.target).length===0&&(box.removeClass(activeClass),trigger.removeClass(activeClass).attr("aria-expanded","false"))})},theme.headerNav=function(){var link=$(".js-header-sub-link"),tLink=$(".js-header-sub-t-link"),linkA=$(".js-header-sub-link-a"),tLinkA=$(".js-header-sub-t-a"),activeClass="js-active",headerNavs=$(".js-heaver-navs"),mobileDraw=$(".js-mobile-draw-icon"),searchDraw=$(".js-search-draw-icon"),cartDraw=$(".js-cart-draw-icon"),primaryNav=$(".js-primary-nav"),secondaryNav=$(".js-secondary-nav"),logoImg=$(".js-main-logo");link.focusin(function(){$(this).addClass(activeClass),$(this).find(linkA).attr("aria-expanded","true")}).focusout(function(){link.removeClass(activeClass),$(this).find(linkA).attr("aria-expanded","false")}),tLink.focusin(function(){tLink.removeClass(activeClass),tLinkA.attr("aria-expanded","false"),$(this).addClass(activeClass),$(this).find(tLinkA).attr("aria-expanded","true")}),link.mouseout(function(){$(this).removeClass(activeClass)}),tLink.mouseout(function(){$(this).removeClass(activeClass)}),$(".header--parent-disabled .js-header-sub-link-a, .header--parent-disabled .js-header-sub-t-a").click(function(e){e.preventDefault()}),$(window).resize(function(){winWidth=$(window).width();var navsWidth=headerNavs.width(),primaryWidth=primaryNav.width(),secondaryWidth=secondaryNav.width(),logoWidth=logoImg.width(),navSpace=navsWidth/2-logoImg.width()/2;winWidth>=theme.mobileBrkp?$(".js-header").hasClass("header--center")?($(".js-header").removeClass("header--inline-icons"),mobileDraw.show(),searchDraw.show(),cartDraw.show()):navSpace<primaryWidth||navSpace<secondaryWidth?($(".js-header").removeClass("header--inline-icons"),mobileDraw.show(),searchDraw.show(),cartDraw.show(),primaryNav.hide(),secondaryNav.hide()):(mobileDraw.show(),searchDraw.show(),cartDraw.show(),primaryNav.show(),secondaryNav.show()):(mobileDraw.show(),searchDraw.show(),cartDraw.show())}).resize(),tLink.on("mouseover focusin",function(){var subNavT=$(this).find(".js-nav-sub-t"),ofsNo=winWidth-(subNavT.offset().left+subNavT.width());ofsNo<1&&(subNavT.css("right","179px"),subNavT.css("left","auto"))})},theme.homeFeaturedProduct=function(){$(".js-section__home-product .js-product-slider").not(".slick-initialized").each(function(){$(this).slick({slidesToShow:1,slidesToScroll:1,accessibility:!0,arrows:!0,dots:!0,fade:!0,adaptiveHeight:!0,infinite:!1,swipe:!0,speed:300,cssEase:"ease",prevArrow:'<div class="product-featured__photo__nav__item product-featured__photo__nav__item--prev"><i class="icon icon--left"></i></div>',nextArrow:'<div class="product-featured__photo__nav__item product-featured__photo__nav__item--next"><i class="icon icon--right"></i></div>',appendDots:$(this).parent().find(".js-product-slider-nav-dots"),appendArrows:$(this).parent().find(".js-product-slider-nav")})})},theme.triggerActive=function(){var $target=$(".js-toggle-target"),trigger=$(".js-toggle-trigger"),activeClass="js-active";trigger.click(function(e){var thisTarget=$(this).attr("href");$(this).hasClass(activeClass)?($(this).removeClass(activeClass),$(thisTarget).removeClass(activeClass),$(this).parent().attr("aria-expanded","false")):($(this).addClass(activeClass),$(thisTarget).addClass(activeClass),$(this).parent().attr("aria-expanded","true")),e.preventDefault()})},theme.selectWrapper=function(){function setWidth(){$(".selector-wrapper").each(function(i){var labelWidth=$(this).find("label").width();$(this).find("select").css("padding-left",20+labelWidth)})}setWidth(),setTimeout(setWidth,500),setTimeout(setWidth,2e3)},theme.homeSectionMargin=function(){$(".shopify-section").each(function(){var thisSection=$(this).find(".section");thisSection.removeAttr("style"),thisSection.hasClass("section--has-bg")&&$(this).next().find(".section").is(".section--full-bg.section--has-bg")&&thisSection.css("margin-bottom","0")}
1)},theme.ageCheckerCookie=function(){var ageCookie="age-checked";$(".js-age-draw").data("age-check-enabled")&&typeof Cookies!="undefined"&&Cookies(ageCookie)!=="1"&&theme.mfpOpen("age"),$(".js-age-close").click(function(e){Cookies(ageCookie,"1",{expires:14,path:"/"}),$.magnificPopup.close(),e.preventDefault()})},theme.promoPopCookie=function(){var promoCookie="promo-showed",promoDelay=$(".js-promo-pop").data("promo-delay"),promoExpiry=$(".js-promo-pop").data("promo-expiry");$(".js-promo-pop").data("promo-enabled")&&typeof Cookies!="undefined"&&Cookies(promoCookie)!=="1"&&setTimeout(function(){theme.promoPop("open")},promoDelay),$(".js-promo-pop-close").click(function(e){Cookies(promoCookie,"1",{expires:promoExpiry,path:"/"}),theme.promoPop("close"),e.preventDefault()})},theme.footerTweet=function(){var twtEnable=$(".js-footer-tweet").data("footer-tweet-enable");if(twtEnable){var twtUsername=$(".js-footer-tweet").data("footer-tweet-user").substring(1);window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};return d.getElementById(id)||(js=d.createElement(s),js.id=id,js.src="https://platform.twitter.com/widgets.js",fjs.parentNode.insertBefore(js,fjs),t._e=[],t.ready=function(f){t._e.push(f)}),t})(document,"script","twitter-wjs"),twttr.ready(function(){twttr.widgets.createTimeline({sourceType:"profile",screenName:twtUsername},document.getElementById("footer-tweet"),{tweetLimit:1}).then(function(data){var tweetText=$(data).contents().find(".timeline-Tweet-text").html();$(".js-footer-tweet-text").html(tweetText)})})}},theme.mfpOpen=function(popup){var closeBtn='<button title="Close (Esc)" type="button" class="mfp-close mfp-close--custom js-close-mfp"><i class="icon icon--close"></i></button>';switch(popup){case"cart":theme.cart_ajax&&(theme.cart_type=="modal"?$.magnificPopup.open({items:{src:".js-cart-draw"},type:"inline",mainClass:"mfp-medium",fixedContentPos:!0,midClick:!0,closeMarkup:closeBtn,removalDelay:200}):$.magnificPopup.open({items:{src:".js-cart-draw"},type:"inline",alignTop:!0,mainClass:"mfp-notification",fixedContentPos:!1,midClick:!0,closeMarkup:closeBtn,removalDelay:200,closeOnBgClick:!1,callbacks:{open:function(item){var thisPopup=$.magnificPopup.instance;setTimeout(function(){thisPopup.isOpen&&thisPopup.close()},4e3)}}}));break;case"search":$.magnificPopup.open({items:{src:".js-search-draw"},type:"inline",mainClass:"mfp-medium",fixedContentPos:!0,focus:".js-search-input",closeMarkup:closeBtn,removalDelay:200});break;case"age":$.magnificPopup.open({items:{src:".js-age-draw"},type:"inline",mainClass:"mfp-dark",fixedContentPos:!0,modal:!0,showCloseBtn:!1,removalDelay:200});break;case"menu-draw":$.magnificPopup.open({items:{src:".js-menu-draw"},type:"inline",mainClass:"mfp-draw",fixedContentPos:!0,closeMarkup:closeBtn,removalDelay:200});break;case"collection-draw":$.magnificPopup.open({items:{src:".js-collection-draw"},callbacks:{resize:function(){$(".js-collection-draw").hasClass("collection-sidebar--sidebar")&&winWidth>=theme.tabletBrkp&&$.magnificPopup.close()}},type:"inline",mainClass:"mfp-draw",fixedContentPos:!0,closeMarkup:closeBtn,removalDelay:200});break}},theme.collectionSort=function(){if(Shopify.queryParams={},location.search.length)for(var aKeyValue,i=0,aCouples=location.search.substr(1).split("&");i<aCouples.length;i++)aKeyValue=aCouples[i].split("="),aKeyValue.length>1&&(Shopify.queryParams[decodeURIComponent(aKeyValue[0])]=decodeURIComponent(aKeyValue[1]));var defaultSort=$(".js-collection-sort").data("default-sort");$("#SortBy").val(defaultSort).bind("change",function(){Shopify.queryParams.sort_by=jQuery(this).val(),location.search=jQuery.param(Shopify.queryParams)})},theme.collectionTagFilter=function(){var tagGroupLink=$(".js-collection-group-link");tagGroupLink.on("click",function(e){var tag=$(this).parent(),tagCategory=tag.data("category-group"),tagUrl=tag.data("tag-url"),activeTag=$('.js-active[data-category-group="'+tagCategory+'"]');if(!tag.hasClass("js-active")&&activeTag.length>0){e.preventDefault();var newPath=window.location.pathname.replace(activeTag.data("tag-url"),tagUrl).replace(/(&page=\d+)|(page=\d+&)|(\?page=\d+$)/,"");window.location.pathname=newPath}})},theme.magnificVideo=function(){$(".js-pop-video").magnificPopup({type:"iframe",mainClass:"mfp-medium mfp-close-corner",removalDelay:200,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close mfp-close--custom js-close-mfp"><i class="icon icon--close"></i></button>'})},theme.productZoom=function(){var openPhotoSwipe=function(thisBtn,thisImageCount){var pswpElement=document.querySelectorAll(".pswp")[0],productGallery=$(".js-product-slider"),galleryItems=[];$(".js-pswp-img").each(function(){var smallSrc=$(this).prop("currentSrc")||$(this).prop("src"),item={msrc:smallSrc,src:$(this).data("pswp-src"),w:$(this).data("pswp-width"),h:$(this).data("pswp-height"),mediaId:$(this).data("media-id"),el:$(this)[0]};galleryItems.push(item)});var options={history:!1,index:thisImageCount,closeOnScroll:!1,getThumbBoundsFn:function(){var pageYScroll=window.pageYOffset||document.documentElement.scrollTop,thumbnail=galleryItems[thisImageCount].el,rect=thumbnail.getBoundingClientRect();return{x:rect.left,y:rect.top+pageYScroll,w:rect.width}}},pswpGallery=new PhotoSwipe(pswpElement,PhotoSwipeUI_Default,galleryItems,options);
1pswpGallery.init(),pswpGallery.listen("close",function(){var thisSlideItem=$(".product-single__photo__item[data-media-id="+this.currItem.mediaId+"]");productGallery.slick("slickGoTo",thisSlideItem[0].dataset.slideId)})};$(document).on("click",".js-pswp-zoom",function(){var thisBtn=$(this),thisImageCount=$(this).data("image-count");openPhotoSwipe(thisBtn,thisImageCount)})},theme.promoPop=function(action){var popup=$(".js-promo-pop"),activeClass="js-active";action=="open"?popup.addClass(activeClass):action=="close"&&popup.removeClass(activeClass)},theme.cartCheckbox=function(){$(document).on("click",".js-cart-checkout-validate",function(){if($(".js-cart-terms-input").is(":checked"))$(this).submit();else{var errorBox=$(this).parents("form").find(".js-cart-terms-error");return errorBox.addClass("js-active"),!1}}),$(document).on("change",".js-cart-terms-input",function(){$(".js-cart-terms-error").removeClass("js-active")})},theme.runAjaxCart=function(){theme.ajaxCartInit(),ajaxCart.load()},theme.productRecommendations=function(){var productRecommendationsSection=document.querySelector(".js-product-recommendations");
1if(productRecommendationsSection!==null){var productId=productRecommendationsSection.dataset.productId,limit=productRecommendationsSection.dataset.limit,requestUrl=productRecommendationsSection.dataset.baseUrl+"?section_id=product-recommendations&limit="+limit+"&product_id="+productId,request=new XMLHttpRequest;request.open("GET",requestUrl),request.onload=function(){if(request.status>=200&&request.status<300){var container=document.createElement("div");container.innerHTML=request.response,productRecommendationsSection.parentElement.innerHTML=container.querySelector(".js-product-recommendations").innerHTML,theme.runAjaxCart(),theme.productCollSwatch(),$(".js-related-products").each(function(i){var thisSectionId=$(this).data("section-id");theme.layoutSlider(".js-layout-slider-"+thisSectionId)}),$("body").data("anim-load")&&setTimeout(function(){sr.reveal(".section--related-products .product-top",{interval:theme.intervalValue}),sr.reveal(".section--related-products .section__title",{distance:"5px"})},1e3)}},request.send()}},$(document).ready(function(){$("body").on("afterAddItem.ajaxCart",function(){setTimeout(function(){theme.mfpOpen("cart")},100)});function tabClick(e){e.keyCode===9&&(body.addClass("js-using-tab"),window.removeEventListener("keydown",tabClick))}window.addEventListener("keydown",tabClick),$(".js-events").each(function(i){var thisSectionId=$(this).data("section-id"),thisApiKey=$(this).data("api-key");theme.eventFeed(thisApiKey,"#eventTemplate"+thisSectionId,"#eventContainer"+thisSectionId,thisSectionId)}),$(".js-events-onboarding").each(function(i){var thisSectionId=$(this).data("section-id");theme.layoutSlider(".js-layout-slider-"+thisSectionId)}),$(".js-home-collection-list").each(function(i){var thisSectionId=$(this).data("section-id");theme.layoutSlider(".js-layout-slider-"+thisSectionId)}),$(".js-home-products").each(function(i){var thisSectionId=$(this).data("section-id");theme.layoutSlider(".js-layout-slider-"+thisSectionId)}),$(".js-page-products").each(function(i){var thisSectionId=$(this).data("section-id");theme.layoutSlider(".js-layout-slider-"+thisSectionId)}),$(".js-home-testimonials").each(function(i){var thisSectionId=$(this).data("section-id");theme.layoutSlider(".js-layout-slider-"+thisSectionId)}),$(".video-wrapper").fitVids(),$('.rte iframe[src*="youtube"]').parent().fitVids(),$('.rte iframe[src*="vimeo"]').parent().fitVids(),$(".rte table").wrap("<div style='overflow:auto;-webkit-overflow-scrolling:touch'></div>"),$(".js-map-replace").appendAround(),$(".js-cart-replace").appendAround(),$(document).on("click",".js-search-trigger",function(e){theme.mfpOpen("search"),e.preventDefault()}),theme.cart_ajax&&$(document).on("click",".js-cart-trigger",function(e){theme.mfpOpen("cart"),e.preventDefault()}),$(document).on("click",".js-mobile-draw-trigger",function(e){theme.mfpOpen("menu-draw"),e.preventDefault()}),$(document).on("click",".js-collection-draw-trigger",function(e){theme.mfpOpen("collection-draw"),e.preventDefault()}),$(document).on("click",".js-close-mfp",function(e){$.magnificPopup.close(),e.preventDefault()}),$(document).on("lazybeforeunveil",function(){theme.masonryLayout()});function checkLazySize(){lazySizes.autoSizer.checkElems()}setTimeout(checkLazySize(),2e3),setTimeout(checkLazySize(),4e3),document.querySelector(".js-product-recommendations")===null&&theme.runAjaxCart(),theme.headerScrollUp(),$(".js-header").hasClass("js-header-sticky")&&stickybits(".js-section__header",{useStickyClasses:!0}),theme.productRecommendations(),theme.masonryLayout(),theme.selectWrapper(),theme.triggerActive(),theme.headerNav(),theme.localizeToggle(),theme.magnificVideo(),theme.ageCheckerCookie(),theme.promoPopCookie(),theme.footerTweet(),theme.scrollToDiv(),theme.animFade(),theme.animScroll(),theme.productCollSwatch(),theme.cartCheckbox(),theme.homeMaps(),theme.homeVideoGallery(),theme.homeMainCarousel(),theme.homeProductMediaInit(),theme.homeFeaturedProduct(),theme.homeSectionMargin(),theme.testimonialsCarousel(),theme.logoCarousel(),theme.collectionSort(),theme.collectionTagFilter(),theme.productMediaInit(
1),theme.thumbsCarousel(),theme.accordion(),theme.productZoom()}),$(document).on("shopify:section:load",function(event){var section=$(event.target),type=section.attr("class").replace("shopify-section","").trim(),id=event.originalEvent.detail.sectionId,sectionId=".section--"+id;switch(theme.homeSectionMargin(),$("body").data("anim-load")&&(sr.reveal(sectionId+" .section__title",{distance:"5px"}),sr.reveal(sectionId+" .section__title-desc",{distance:0,delay:300}),sr.reveal(sectionId+" .section__link",{distance:0})),type){case"js-section__home-collection":theme.layoutSlider(".js-layout-slider-"+id),theme.masonryLayout(),theme.productCollSwatch(),$("body").data("anim-load")&&sr.reveal(sectionId+" .product-top",{interval:theme.intervalValue});break;case"js-section__home-events":var thisEvents=$(".js-events-"+id),thisSectionId=thisEvents.data("section-id"),thisApiKey=thisEvents.data("api-key");$("body").data("anim-load")&&sr.reveal(sectionId+" .home-event__item",{interval:theme.intervalValue}),$(section).find(".js-events-onboarding").length?theme.layoutSlider(".js-layout-slider-"+id):theme.eventFeed(thisApiKey,"#eventTemplate"+thisSectionId,"#eventContainer"+thisSectionId,thisSectionId);break;case"js-section__home-slider":section.find(".js-home-carousel-video-data").each(function(){var playerId=$(this).attr("data-player-id");window[playerId]="undefined"}),theme.homeMainCarousel(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-carou
1sel",{distance:0});break;case"js-section__home-testimonials":theme.testimonialsCarousel(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-testimonials",{distance:0});break;case"js-section__home-image-grid":$("body").data("anim-load")&&sr.reveal(sectionId+" .home-image-grid__item",{interval:theme.intervalValue});break;case"js-section__home-logo-list":theme.logoCarousel(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-logo-list__items",{distance:0});break;case"js-section__home-video":theme.homeVideoGallery(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-video__stage, .home-video__items",{distance:0});break;case"js-section__home-blog":theme.masonryLayout(),$("body").data("anim-load")&&sr.reveal(sectionId+" .blog",{delay:500,interval:theme.intervalValue});break;case"js-section__home-intro":theme.magnificVideo(),$("body").data("anim-load")&&(sr.reveal(sectionId+" .home-intro",{distance:0}),sr.reveal(sectionId+" .home-intro__media,"+sectionId+" .home-intro__text,"+sectionId+" .home-intro__video,"+sectionId+" .home-intro__link-wrap"));break;case"js-section__home-promo":theme.magnificVideo(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-promo__box");break;case"js-section__home-custom":$("body").data("anim-load")&&sr.reveal(sectionId+" .home-custom__item",{interval:theme.intervalValue});break;case"js-section__home-html":$("body").data("anim-load")&&sr.reveal(sectionId+" .home-html",{distance:0});break;case"js-section__rich-text":$("body").data("anim-load")&&sr.reveal(sectionId+" .home-rich-text__content",{distance:0});break;case"js-section__home-map":$(".js-map-replace").appendAround(),theme.homeMaps(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-map__items");break;case"js-section__home-delivery":$("body").data("anim-load")&&(sr.reveal(sectionId+" .home-delivery",{distance:0}),sr.reveal(sectionId+" .home-delivery__content",{distance:theme.intervalStyle}));break;case"js-section__home-inline":$("body").data("anim-load")&&sr.reveal(sectionId+" .home-inline__item",{interval:theme.intervalValue});break;case"js-section__home-collection-list":theme.layoutSlider(".js-layout-slider-"+id),$("body").data("anim-load")&&sr.reveal(sectionId+" .collection-list__item",{interval:theme.intervalValue});break;case"js-section__home-product":$(this).find(".section").attr("data-section-onboarding")!="true"&&theme.productSelect(id,"featured",!1),theme.selectWrapper(),theme.runAjaxCart(),theme.homeProductMediaInit(),$(".js-product-slider").hide(),$(".js-product-slider-spinner").show(),$(".js-product-slider").imagesLoaded(function(){$(".js-product-slider").show(),$(".js-product-slider-spinner").hide(),theme.homeFeaturedProduct()}),$("body").data("anim-load")&&(sr.reveal(sectionId+" .product-featured__details",{distance:0}),sr.reveal(sectionId+" .product-featured__photo-wrapper",{distance:0,delay:500}));break;case"js-section__product-single":theme.selectWrapper(),theme.accordion(),theme.runAjaxCart(),theme.productSelect("1","single",!0),theme.selectWrapper(),theme.productMediaInit(),$(".js-product-slider").imagesLoaded(function(){theme.thumbsCarousel()}),$(".js-cart-replace").appendAround(),$("body").data("anim-load")&&(sr.reveal(".product-single__title-text",{distance:"20px"}),sr.reveal(".product-single__title-desc, .breadcrumb, .product-single__photos, .product-single__content, .product-single--minimal .product-single__content-text",{distance:0,delay:500}));break;case"js-section__product-testimonials":theme.testimonialsCarousel(),$("body").data("anim-load")&&sr.reveal(sectionId+" .home-testimonials",{distance:0});break;case"js-section__product-custom":$("body").data("anim-load")&&(sr.reveal(".home-custom__item",{interval:theme.intervalValue}),sr.reveal(".home-image-grid__item",{interval:theme.intervalValue}));break;case"js-section__product-related":theme.productRecommendations();break;case"js-section__blog":theme.masonryLayout(),theme.layoutSlider(".js-layout-slider-"+id),theme.productCollSwatch(),$("body").data("anim-load")&&(sr.reveal(".blog",{delay:500,interval:theme.intervalValue}),sr.reveal(".blog-page__tags, .blog-pagination",{distance:0,delay:500}),sr.reveal(".blog-page .section__title",{distance:"20px"}),sr.reveal(".product-top",{interval:theme.intervalValue}));break;case"js-section__article":theme.masonryLayout(),theme.layoutSlider(".js-layout-slider-"+id),theme.productC
1ollSwatch(),$("body").data("anim-load")&&(sr.reveal(".article .section__title",{distance:"20px"}),sr.reveal(".article__date",{distance:"-10px",delay:500}),sr.reveal(".article__featured-media, .article__content",{distance:0,delay:200}),sr.reveal(".article__meta, .article-paginate",{distance:0}),sr.reveal(".product-top",{interval:theme.intervalValue}));break;case"shopify-section-header js-section__header":theme.headerNav(),theme.triggerActive(),theme.localizeToggle(),$(body).removeClass("header-down").removeClass("header-up"),document.documentElement.style.setProperty("--header-height",document.getElementsByClassName("js-header")[0].offsetHeight+"px"),$(".js-header").hasClass("js-header-sticky")&&stickybits(".js-section__header",{useStickyClasses:!0}),theme.headerScrollUp();break;case"js-section__newsletter":$("body").data("anim-load")&&sr.reveal(sectionId+" .newsletter",{distance:0});break;case"js-section__footer":theme.footerTweet(),theme.localizeToggle(),$("body").data("anim-load")&&sr.reveal(sectionId+" .newsletter",{distance:0});break;case"js-section__collection":theme.selectWrapper(),theme.masonryLayout(),theme.collectionSort(),theme.collectionTagFilter(),theme.productCollSwatch(),$("body").data("anim-load")&&(sr.reveal(".collection__header-info__title",{distance:"20px"}),sr.reveal(".collection .product-top",{interval:theme.intervalValue,delay:500}),sr.reveal(".collection__header-media, .collection__header-info__text, .collection-main__sort, .collection-empty, .collection-pagination",{distance:0,delay:500}));break;case"js-section__list-collections":$("body").data("anim-load")&&(sr.reveal(".list-collections .section__title",{distance:"20px"}),sr.reveal(".list-collections .collection-list__item",{interval:theme.intervalValue,delay:500}));break;case"js-section__mobile-draw":theme.triggerActive(),theme.localizeToggle();break;case"js-section__promo-pop":$("body").data("anim-load")&&sr.reveal(".promo-pop .section__title",{distance:0});break;case"js-section__faq-page":theme.accordion(),theme.scrollToDiv(),$("body").data("anim-load")&&(sr.reveal(".page .section__title",{distance:"20px"}),sr.reveal(".faq__cta",{distance:0,delay:500}),sr.reveal(".faq__search",{distance:0,delay:700}),sr.reveal(".faq__accordion",{distance:0,delay:900}),sr.reveal(".page__contact-form",{distance:0,delay:200}),sr.reveal(".faq__category__title",{distance:0}));break;case"js-section__page-custom":$("body").data("anim-load")&&(sr.reveal(".home-custom__item",{interval:theme.intervalValue}),sr.reveal(".home-image-grid__item",{interval:theme.intervalValue}));break;case"js-section__page-contact":$(".js-map-replace").appendAround(),theme.homeMaps(),$("body").data("anim-load")&&(sr.reveal(sectionId+" .home-map__items"),sr.reveal(".page__contact-form",{distance:0,delay:200}));break}}).on("shopify:section:reorder",function(event){theme.homeSectionMargin()}).on("shopify:section:select",function(event){var section=$(event.target),type=section.attr("class").replace("shopify-section","").trim(),id=event.originalEvent.detail.sectionId;switch(type){case"js-section__mobile-draw":theme.currentOffset=$(document).scrollTop(),theme.mfpOpen("menu-draw");break;case"js-section__age-checker":var ageEnabled=$(section).find(".js-age-draw").data("age-check-enabled");ageEnabled?theme.mfpOpen("age"):$.magnificPopup.close(),theme.currentOffset=$(document).scrollTop();break;case"js-section__promo-pop":var promoEnabled=$(section).find(".js-promo-pop").data("promo-enabled");promoEnabled?theme.promoPop("open"):theme.promoPop("close"),theme.currentOffset=$(document).scrollTop();break;case"js-section__home-slider":var currSlideshowSection=$('[data-section-id="'+id+'"]').find(".js-home-carousel");currSlideshowSection.slick("slickPause");break;case"js-section__home-testimonials":var currTestimonialsSection=$('[data-section-id="'+id+'"]').find(".js-home-testimonials-carousel");currTestimonialsSection.slick("slickPause");break;case"js-section__product-testimonials":var currProdTestimonialsSection=$('[data-section-id="'+id+'"]').find(".js-home-testimonials-carousel");currProdTestimonialsSection.slick("slickPause");break}}).on("shopify:section:deselect",function(event){var section=$(event.target),type=section.attr("class").replace("shopify-section","").trim(),id=event.originalEvent.detail.sectionId;switch(type){case"js-section__mobile-draw":$(document).scrollTop(theme.currentOffset),$.magnificPopup.close();break;case"js-section__age-checker":$(document).scrollTop(theme.currentOffset),$.magnificPopup.close();break;case"js-section__promo-pop":theme.promoPop("close"),$(document).scrollTop(theme.currentOffset);break;case"js-section__home-slider":var currSlideshowSection=$('[data-section-id="'+id+'"]').find(".js-home-carou
1sel");currSlideshowSection.data("autoplay")&&currSlideshowSection.slick("slickPlay");break;case"js-section__home-testimonials":var currTestimonialsSection=$('[data-section-id="'+id+'"]').find(".js-home-testimonials-carousel");currTestimonialsSection.data("autoplay")&&currTestimonialsSection.slick("slickPlay");break;case"js-section__product-testimonials":var currProdTestimonialsSection=$('[data-section-id="'+id+'"]').find(".js-home-testimonials-carousel");currProdTestimonialsSection.data("autoplay")&&currProdTestimonialsSection.slick("slickPlay");break}}).on("shopify:block:select",function(event){var id=event.originalEvent.detail.sectionId,slide=$(event.target),type=slide.parents(".shopify-section").attr("class").replace("shopify-section","").trim();switch(type){case"js-section__home-slider":var currSlideshowSlide=$(slide).find(".home-carousel__item").attr("data-slide-id"),currSlideshowSlider=$('[data-section-id="'+id+'"]').find(".js-home-carousel");currSlideshowSlider.slick("slickGoTo",currSlideshowSlide);break;case"js-section__home-testimonials":var currTestimonialsSlide=$(slide).find(".home-testimonials__item").attr("data-slide-id"),currTestimonialsSlider=$('[data-section-id="'+id+'"]').find(".js-home-testimonials-carousel");currTestimonialsSlider.slick("slickGoTo",currTestimonialsSlide);break;case"js-section__product-testimonials":var currProdTestimonialsSlide=$(slide).find(".home-testimonials__item").attr("data-slide-id"),currProdTestimonialsSlider=$('[data-section-id="'+id+'"]').find(".js-home-testimonials-carousel");currProdTestimonialsSlider.slick("slickGoTo",currProdTestimonialsSlide);break}}),typeof Shopify=="undefined"&&(Shopify={}),Shopify.formatMoney||(Shopify.formatMoney=function(cents,format){var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||this.money_format;typeof cents=="string"&&(cents=cents.replace(".",""));function defaultOption(opt,def){return typeof opt=="undefined"?def:opt}function formatWithDelimiters(number,precision,thousands,decimal){if(precision=defaultOption(precision,2),thousands=defaultOption(thousands,","),decimal=defaultOption(decimal,"."),isNaN(number)||number===null)return 0;number=(number/100).toFixed(precision);var parts=number.split("."),dollars=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),cents2=parts[1]?decimal+parts[1]:"";return dollars+cents2}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break}return formatString.replace(placeholderRegex,value)}),(function(){var ieV,ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");msie>0&&(ieV=parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10),document.querySelector("html").className+=" ie11");var trident=ua.indexOf("Trident/");if(trident>0){var rv=ua.indexOf("rv:");ieV=parseInt(ua.substring(rv+3,ua.indexOf(".",rv)),10),document.querySelector("html").className+=" ie11"}return!1})();
2//# sourceMappingURL=/cdn/shop/t/54/assets/theme.js.map?v=178792814315457120421786824603

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.