PageSourceSearch

https://moreishpuff.com/cdn/shop/t/11/assets/theme.js?v=57959591668178462771568047898

js moreishpuff.com collected 2026-10-01 06:48:44 UTC 56,270 bytes, 2 lines download raw bytes

1window.theme=window.theme||{},window.theme=window.theme||{},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.namespace?"focusin."+options.namespace:"focusin";options.$elementToFocus||(options.$elementToFocus=options.$container),options.$container.attr("tabindex","-1"),options.$elementToFocus.focus(),$(document).off("focusin"),$(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.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?match[1]:null}function getSizedImageUrl(src,size){if(size==null)return src;if(size==="master")return this.removeProtocol(src);var match=src.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?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}})(),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}})(),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})(),theme.Drawers=(function(){function Drawer(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:$("html").add("body"),$page:$("#PageContainer, #shopify-section-header")},this.config=$.extend(defaults,options),this.position=position,this.$drawer=$("#"+id),!this.$drawer.length)return!1;this.drawerIsOpen=!1,this.init()}return Drawer.prototype.init=function(){$(this.config.open).on("click",$.proxy(this.open,this)),this.$drawer.on("click",this.config.close,$.proxy(this.close,this))},Drawer.prototype.open=function(evt){var externalCall=!1;return evt?evt.preventDefault():externalCall=!0,evt&&evt.stopPropagation&&(evt.stopPropagation(),this.$activeSource=$(evt.currentTarget)),this.drawerIsOpen&&!externalCall?this.close():(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(),this)},Drawer.prototype.close=function(){this.drawerIsOpen&&($(document.activeElement).trigger("blur"),this.$drawer.prepareTransition(),this.nodes.$parent.removeClass(this.config.dirOpenClass+" "+this.config.openClass),this.drawerIsOpen=!1,slate.a11y.removeTrapFocus({$container:this.$drawer,namespace:"drawer_focus"}),this.unbindEvents())},Drawer.prototype.bindEvents=function(){this.nodes.$parent.on("keyup.drawer",$.proxy(function(evt){return evt.keyCode===27?(this.close(),!1):!0},this)),this.nodes.$page.on("touchmove.drawer",function(){return!1}),this.nodes.$page.on("click.drawer",$.proxy(function(){return this.close(),!1},this))},Drawer.prototype.unbindEvents=function(){this.nodes.$page.off(".drawer"),this.nodes.$parent.off(".drawer")},Drawer})(),window.theme=window.theme||{},theme.Header=(function(){var selectors={body:"body",sitenav:"#siteNav",navLinks:"#siteNav .lvl1 > a",menuToggle:".js-mobile-nav-toggle",mobilenav:".mobile-nav-wrapper",menuLinks:"#MobileNav .fa",closemenu:".closemobileMenu"};
1function init(){$(selectors.navLinks).each(function(){$(this).attr("href")==window.location.pathname&&$(this).addClass("active")}),$(selectors.menuToggle).on("click",function(){$(selectors.mobilenav).toggleClass("active"),$(selectors.body).toggleClass("menuOn"),$(selectors.menuToggle).toggleClass("open close")}),$(selectors.closemenu).on("click",function(){$(selectors.mobilenav).toggleClass("active"),$(selectors.body).toggleClass("menuOn"),$(selectors.menuToggle).toggleClass("open close")}),$(selectors.menuLinks).on("click",function(e){e.preventDefault(),$(this).toggleClass("fa-plus fa-minus"),$(this).parent().next().slideToggle()})}return{init:init}})(),window.theme=window.theme||{},theme.Search=(function(){var selectors={search:".search",searchSubmit:".search__submit",searchInput:".search__input"},classes={focus:"search--focus"};function init(){searchSubmit();var currentAjaxRequest=null,searchForms=$('form[action="/search"]').css("position","relative").each(function(){var input=$(this).find('input[name="q"]'),offSet=input.position().top+input.innerHeight();$('<ul class="search-results"></ul>').css({position:"absolute",left:"0px",top:offSet}).appendTo($(this)).hide(),input.attr("autocomplete","off").bind("keyup change",function(){var term=$(this).val(),form=$(this).closest("form"),searchURL="/search?type=product&q="+term,resultsList=form.find(".search-results");term.length>3&&term!=$(this).attr("data-old-term")&&($(this).attr("data-old-term",term),currentAjaxRequest!=null&&currentAjaxRequest.abort(),currentAjaxRequest=$.getJSON(searchURL+"&view=json",function(data){resultsList.empty(),data.results_count==0?resultsList.hide():($.each(data.results,function(index,item){var link=$("<a></a>").attr("href",item.url);link.append('<span class="img"><img src="'+item.thumbnail+'" /></span>'),link.append('<span class="title">'+item.title+"</span>"),link.wrap("<li></li>"),resultsList.append(link.parent())}),data.results_count>6&&resultsList.append('<li class="more"><a href="'+searchURL+'">See all results ('+data.results_count+")</a></li>"),resultsList.fadeIn(200))}))})});$(".header-search").bind("click",function(s){s.stopPropagation()}),$("body").bind("click",function(){$(".search-results").hide()})}function searchSubmit(){$(selectors.searchSubmit).on("click",function(evt){var $el=$(evt.target),$input=$el.parents(selectors.search).find(selectors.searchInput);$input.val().length===0&&(evt.preventDefault(),searchFocus($input))})}return{init:init}})(),(function(){var selectors={backButton:".return-link"},$backButton=$(selectors.backButton);if(!document.referrer||!$backButton.length||!window.history.length)return;$backButton.one("click",function(evt){evt.preventDefault();var referrerDomain=urlDomain(document.referrer),shopDomain=urlDomain(window.location.href);return shopDomain===referrerDomain&&history.back(),!1});function urlDomain(url){var anchor=document.createElement("a");return anchor.ref=url,anchor.hostname}})(),theme.Slideshow=(function(){this.$slideshow=null;var classes={wrapper:"slideshow-wrapper",slideshow:"slideshow",currentSlide:"slick-current",video:"slideshow__video",videoBackground:"slideshow__video--background",closeVideoBtn:"slideshow__video-control--close",pauseButton:"slideshow__pause",isPaused:"is-paused"};function slideshow(el){this.$slideshow=$(el),this.$wrapper=this.$slideshow.closest("."+classes.wrapper),this.$pause=this.$wrapper.find("."+classes.pauseButton),this.settings={accessibility:!0,arrows:!0,dots:!1,fade:!0,rtl:theme.rtl,draggable:!0,touchThreshold:20,autoplay:this.$slideshow.data("autoplay"),autoplaySpeed:this.$slideshow.data("speed")},this.$slideshow.on("beforeChange",beforeChange.bind(this)),this.$slideshow.on("init",slideshowA11y.bind(this)),this.$slideshow.slick(this.settings),this.$pause.on("click",this.togglePause.bind(this))}function slideshowA11y(event,obj){var $slider=obj.$slider,$list=obj.$list,$wrapper=this.$wrapper,autoplay=this.settings.autoplay;$list.removeAttr("aria-live"),$wrapper.on("focusin",function(evt){$wrapper.has(evt.target).length&&($list.attr("aria-live","polite"),autoplay&&$slider.slick("slickPause"))}),$wrapper.on("focusout",function(evt){if($wrapper.has(evt.target).length&&($list.removeAttr("aria-live"),autoplay)){if($(evt.target).hasClass(classe
1s.closeVideoBtn))return;$slider.slick("slickPlay")}}),obj.$dots&&obj.$dots.on("keydown",function(evt){evt.which===37&&$slider.slick("slickPrev"),evt.which===39&&$slider.slick("slickNext"),(evt.which===37||evt.which===39)&&obj.$dots.find(".slick-active button").focus()})}function beforeChange(event,slick,currentSlide,nextSlide){var $slider=slick.$slider,$currentSlide=$slider.find("."+classes.currentSlide),$nextSlide=$slider.find('.slideshow__slide[data-slick-index="'+nextSlide+'"]');if(isVideoInSlide($currentSlide)){var $currentVideo=$currentSlide.find("."+classes.video),currentVideoId=$currentVideo.attr("id");theme.SlideshowVideo.pauseVideo(currentVideoId),$currentVideo.attr("tabindex","-1")}if(isVideoInSlide($nextSlide)){var $video=$nextSlide.find("."+classes.video),videoId=$video.attr("id"),isBackground=$video.hasClass(classes.videoBackground);isBackground?theme.SlideshowVideo.playVideo(videoId):$video.attr("tabindex","0")}}function isVideoInSlide($slide){return $slide.find("."+classes.video).length}slideshow.prototype.togglePause=function(){var slideshowSelector=getSlideshowId(this.$pause);
1this.$pause.hasClass(classes.isPaused)?(this.$pause.removeClass(classes.isPaused),$(slideshowSelector).slick("slickPlay")):(this.$pause.addClass(classes.isPaused),$(slideshowSelector).slick("slickPause"))};function getSlideshowId($el){return"#Slideshow-"+$el.data("id")}return slideshow})();function onYouTubeIframeAPIReady(){theme.SlideshowVideo.loadVideos()}theme.SlideshowVideo=(function(){var autoplayCheckComplete=!1,autoplayAvailable=!1,playOnClickChecked=!1,playOnClick=!1,youtubeLoaded=!1,videos={},videoPlayers=[],videoOptions={ratio:16/9,playerVars:{iv_load_policy:3,modestbranding:1,autoplay:0,controls:0,showinfo:0,wmode:"opaque",branding:0,autohide:0,rel:0},events:{onReady:onPlayerReady,onStateChange:onPlayerChange}},classes={playing:"video-is-playing",paused:"video-is-paused",loading:"video-is-loading",loaded:"video-is-loaded",slideshowWrapper:"slideshow-wrapper",slide:"slideshow__slide",slideBackgroundVideo:"slideshow__slide--background-video",slideDots:"slick-dots",videoChrome:"slideshow__video--chrome",videoBackground:"slideshow__video--background",playVideoBtn:"slideshow__video-control--play",closeVideoBtn:"slideshow__video-control--close",currentSlide:"slick-current",slickClone:"slick-cloned",supportsAutoplay:"autoplay",supportsNoAutoplay:"no-autoplay"};function init($video){if($video.length&&(videos[$video.attr("id")]={id:$video.attr("id"),videoId:$video.data("id"),type:$video.data("type"),status:$video.data("type")==="chrome"?"closed":"background",videoSelector:$video.attr("id"),$parentSlide:$video.closest("."+classes.slide),$parentSlideshowWrapper:$video.closest("."+classes.slideshowWrapper),controls:$video.data("type")==="background"?0:1,slideshow:$video.data("slideshow")},!youtubeLoaded)){var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}function customPlayVideo(playerId){!playOnClickChecked&&!playOnClick||playerId&&typeof videoPlayers[playerId].playVideo=="function"&&privatePlayVideo(playerId)}function pauseVideo(playerId){videoPlayers[playerId]&&typeof videoPlayers[playerId].pauseVideo=="function"&&videoPlayers[playerId].pauseVideo()}function loadVideos(){for(var key in videos)if(videos.hasOwnProperty(key)){var args=$.extend({},videoOptions,videos[key]);args.playerVars.controls=args.controls,videoPlayers[key]=new YT.Player(key,args)}initEvents(),youtubeLoaded=!0}function loadVideo(key){if(youtubeLoaded){var args=$.extend({},videoOptions,videos[key]);args.playerVars.controls=args.controls,videoPlayers[key]=new YT.Player(key,args),initEvents()}}function privatePlayVideo(id,clicked){var videoData=videos[id],player=videoPlayers[id],$slide=videos[id].$parentSlide;if(playOnClick)setAsPlaying(videoData);else if(clicked||autoplayCheckComplete&&autoplayAvailable){$slide.removeClass(classes.loading),setAsPlaying(videoData),player.playVideo();return}autoplayCheckComplete||autoplayCheckFunction(player,$slide)}function setAutoplaySupport(supported){var supportClass=supported?classes.supportsAutoplay:classes.supportsNoAutoplay;$(document.documentElement).addClass(supportClass),supported||(playOnClick=!0),autoplayCheckComplete=!0}function autoplayCheckFunction(player,$slide){player.playVideo(),autoplayTest(player).then(function(){setAutoplaySupport(!0)}).fail(function(){setAutoplaySupport(!1),player.stopVideo()}).always(function(){autoplayCheckComplete=!0,$slide.removeClass(classes.loading)})}function autoplayTest(player){var deferred=$.Deferred(),wait,timeout;return wait=setInterval(function(){player.getCurrentTime()<=0||(autoplayAvailable=!0,clearInterval(wait),clearTimeout(timeout),deferred.resolve())},500),timeout=setTimeout(function(){clearInterval(wait),deferred.reject()},4e3),deferred}function playOnClickCheck(){playOnClickChecked||(($(window).width()<750||window.mobileCheck())&&(playOnClick=!0),playOnClick&&setAutoplaySupport(!1),playOnClickChecked=!0)}function onPlayerReady(evt){evt.target.setPlaybackQuality("hd1080");var videoData=getVideoOptions(evt);switch(playOnClickCheck(),$("#"+videoData.id).attr("tabindex","-1"),sizeBackgroun
1dVideos(),videoData.type){case"background-chrome":case"background":evt.target.mute(),videoData.$parentSlide.hasClass(classes.currentSlide)&&privatePlayVideo(videoData.id);break}videoData.$parentSlide.addClass(classes.loaded)}function onPlayerChange(evt){var videoData=getVideoOptions(evt);switch(evt.data){case 0:setAsFinished(videoData);break;case 1:setAsPlaying(videoData);break;case 2:setAsPaused(videoData);break}}function setAsFinished(videoData){switch(videoData.type){case"background":videoPlayers[videoData.id].seekTo(0);break;case"background-chrome":videoPlayers[videoData.id].seekTo(0),closeVideo(videoData.id);break;case"chrome":closeVideo(videoData.id);break}}function setAsPlaying(videoData){var $slideshow=videoData.$parentSlideshowWrapper,$slide=videoData.$parentSlide;if($slide.removeClass(classes.loading),videoData.status!=="background"){switch($("#"+videoData.id).attr("tabindex","0"),videoData.type){case"chrome":case"background-chrome":$slideshow.removeClass(classes.paused).addClass(classes.playing),$slide.removeClass(classes.paused).addClass(classe
1s.playing);break}$slide.find("."+classes.closeVideoBtn).focus()}}function setAsPaused(videoData){var $slideshow=videoData.$parentSlideshowWrapper,$slide=videoData.$parentSlide;if(videoData.type==="background-chrome"){closeVideo(videoData.id);return}videoData.status!=="closed"&&videoData.type!=="background"&&($slideshow.addClass(classes.paused),$slide.addClass(classes.paused)),videoData.type==="chrome"&&videoData.status==="closed"&&($slideshow.removeClass(classes.paused),$slide.removeClass(classes.paused)),$slideshow.removeClass(classes.playing),$slide.removeClass(classes.playing)}function closeVideo(playerId){var videoData=videos[playerId],$slideshow=videoData.$parentSlideshowWrapper,$slide=videoData.$parentSlide,classesToRemove=[classes.pause,classes.playing].join(" ");switch($("#"+videoData.id).attr("tabindex","-1"),videoData.status="closed",videoData.type){case"background-chrome":videoPlayers[playerId].mute(),setBackgroundVideo(playerId);break;case"chrome":videoPlayers[playerId].stopVideo(),setAsPaused(videoData);break}$slideshow.removeClass(classesToRemove),$slide.removeClass(classesToRemove)}function getVideoOptions(evt){return videos[evt.target.h.id]}function startVideoOnClick(playerId){var videoData=videos[playerId];
1switch(videoData.$parentSlide.addClass(classes.loading),videoData.status="open",videoData.type){case"background-chrome":unsetBackgroundVideo(playerId,videoData),videoPlayers[playerId].unMute(),privatePlayVideo(playerId,!0);break;case"chrome":privatePlayVideo(playerId,!0);break}$(document).on("keydown.videoPlayer",function(evt){evt.keyCode===27&&closeVideo(playerId)})}function sizeBackgroundVideos(){$("."+classes.videoBackground).each(function(index,el){sizeBackgroundVideo($(el))})}function sizeBackgroundVideo($player){var $slide=$player.closest("."+classes.slide);if(!$slide.hasClass(classes.slickClone)){var slideWidth=$slide.width(),playerWidth=$player.width(),playerHeight=$player.height();slideWidth/videoOptions.ratio<playerHeight?(playerWidth=Math.ceil(playerHeight*videoOptions.ratio),$player.width(playerWidth).height(playerHeight).css({left:(slideWidth-playerWidth)/2,top:0})):(playerHeight=Math.ceil(slideWidth/videoOptions.ratio),$player.width(slideWidth).height(playerHeight).css({left:0,top:(playerHeight-playerHeight)/2}
1)),$player.prepareTransition().addClass(classes.loaded)}}function unsetBackgroundVideo(playerId){$("#"+playerId).removeAttr("style").removeClass(classes.videoBackground).addClass(classes.videoChrome),videos[playerId].$parentSlideshowWrapper.removeClass(classes.slideBackgroundVideo).addClass(classes.playing),videos[playerId].$parentSlide.removeClass(classes.slideBackgroundVideo).addClass(classes.playing),videos[playerId].status="open"}function setBackgroundVideo(playerId){var $player=$("#"+playerId).addClass(classes.videoBackground).removeClass(classes.videoChrome);videos[playerId].$parentSlide.addClass(classes.slideBackgroundVideo),videos[playerId].status="background",sizeBackgroundVideo($player)}function initEvents(){$(document).on("click.videoPlayer","."+classes.playVideoBtn,function(evt){var playerId=$(evt.currentTarget).data("controls");startVideoOnClick(playerId)}),$(document).on("click.videoPlayer","."+classes.closeVideoBtn,function(evt){var playerId=$(evt.currentTarget).data("controls");closeVideo(playerId)}),$(window).on("resize.videoPlayer",$.debounce(250,function(){youtubeLoaded&&sizeBackgroundVideos()}))}function removeEvents(){$(document).off(".videoPlayer"),$(window).off(".videoPlayer")}return{init:init,loadVideos:loadVideos,loadVideo:loadVideo,playVideo:customPlayVideo,pauseVideo:pauseVideo,removeEvents:removeEvents}})(),window.theme=theme||{},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(){var $formState=$(".reset-password-success");$formState.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;hash==="#recover"&&toggleRecoverPasswordForm()}return{init:function(){checkUrlHash(),initEventListeners(),resetPasswordSuccess(),customerAddressForm()}}})(),window.theme=window.theme||{},theme.Cart=(function(){var selectors={edit:".js-edit-toggle"},config={showClass:"cart__update--show",showEditClass:"cart__edit--active",cartNoCookies:"cart--no-cookies"};function Cart(container){this.$container=$(container),this.$edit=$(selectors.edit,this.$container),this.cookiesEnabled()||this.$container.addClass(config.cartNoCookies),this.$edit.on("click",this._onEditClick.bind(this))}return Cart.prototype=_.assignIn({},Cart.prototype,{onUnload:function(){this.$edit.off("click",this._onEditClick)},_onEditClick:function(evt){var $evtTarget=$(evt.target),$updateLine=$("."+$evtTarget.data("target"));$evtTarget.toggleClass(config.showEditClass),$updateLine.toggleClass(config.showClass)},cookiesEnabled:function(){var cookieEnabled=navigator.cookieEnabled;return cookieEnabled||(document.cookie="testcookie",cookieEnabled=document.cookie.indexOf("testcookie")!==-1),cookieEnabled}}),Cart})(),window.theme=window.theme||{},theme.Filters=(function(){var constants={SORT_BY:"sort_by"},selectors={filterSelection:".filters-toolbar__input--filter",sortSelection:".filters-toolbar__input--sort",defaultSort:".collection-header__default-sort"};function Filters(container){var $container=this.$container=$(container);this.$filterSelect=$(selectors.filterSelection,$container),this.$sortSelect=$(selectors.sortSelection,$container),this.$selects=$(selectors.filterSelection,$container).add($(selectors.sortSelection,$container)),this.defaultSort=this._getDefaultSortValue(),this._resizeSelect(this.$selects),this.$selects.removeClass("hidden"),this.$filterSelect.on("change",this._onFilterChange.bind(this)),this.$sortSelect.on("change",this._onSortChange.bind(this))}return Filters.prototype=_.assignIn({},Filters.prototype,{_onSortChange:function(evt){var sort=this._sortValue();sort.length?window.location.search=sort:window.location.href=window.location.href.replace(window.location.search,""),this._resizeSelect($(evt.target))},_onFilterChange:function(evt){window.location.href=this.$filterSelect.val()+window.location.search,this._resizeSelect($(evt.target))},_getSortValue:function(){return this.$sortSelect.val()||this.defaultSort},_getDefaultSortValue:function(){return $(selectors.defaultSort,this.$container).val()},_sortValue:function(){var sort=this._getSortValue(),query="";return sort!==this.defaultSort&&(query=constants.SORT_BY+"="+sort),query},_resizeSelect:function($selection){$selection.each(function(){var $this=$(this),arrowWidth=10,text=$this.find("option:selected").text(),$test=$("<span>").html(text);$test.appendTo("body");var width=$test.width();$test.remove(),$this.width(width+arrowWidth)})},onUnload:function(){this.$filterSelect.off("change",this._onFilterChange),this.$sortSelect.off("change",this._onSortChange)}}),Filters})(),window.theme=window.theme||{},theme.HeaderSection=(function(){function Header(){theme.Header.init(),theme.Search.init()}return Header.prototype=_.assignIn({},Header.prototype,{onUnload:function(){theme.Header.unload()}}),Header})(),theme.Maps=(function(){var config={zoom:14},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/ma
1ps/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,center:results[0].geometry.location,disableDefaultUI:!0},map=this.map=new google.maps.Map($map[0],mapOptions),center=this.center=map.getCenter(),marker=new google.maps.Marker({map:map,position:map.getCenter()});google.maps.event.addDomListener(window,"resize",$.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">'+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.Product=(function(){function Product(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),sliderRelatedAnimationSpeed=$container.attr("proRelated-aniamtion"),sliderRelatedToShow=$container.attr("proRelated-num"),sliderRelatedAutoSpeed=$container.attr("proRelated-timeout"),sliderRelatedAuto=$container.attr("proRelated-autoplay"),tabs=this.tabs="#ProductSection-"+sectionId+" .tablink";$(tabs).on("click",function(e){e.preventDefault(),$(this).parent().addClass("active"),$(this).parent().siblings().removeClass("active");var tab=$(this).attr("href");$(".tab-content").not(tab).css("display","none"),$(tab).fadeIn()}),$(".product-tabs li:first-child").addClass("active"),$(".tab-container h2:first-child + .tab-content").show(),$(".reviewLink").on("click",function(e){e.preventDefault(),$(".product-tabs li").removeClass("active"),$(".reviewtab").addClass("active");var tab=$(this).attr("href");$(".tab-content").not(tab).css("display","none"),$(tab).fadeIn();var tabposition=$("#tab2").offset();$(window).width()<767?$("html, body").animate({scrollTop:tabposition.top-50},700):$("html, body").animate({scrollTop:tabposition.top-80},700)}),this.settings={mediaQueryMediumUp:"screen and (min-width: 750px)",mediaQuerySmall:"screen and (max-width: 749px)",bpSmall:!1,enableHistoryState:$container.data("enable-history-state")||!1,imageSize:null,imageZoomSize:null,namespace:".slideshow-"+sectionId,sectionId:sectionId,sliderActive:!1,zoomEnabled:!1},this.selectors={addToCart:"#AddToCart-"+sectionId,addToCartText:"#AddToCartText-"+sectionId,comparePrice:"#ComparePrice-"+sectionId,originalPrice:"#ProductPrice-"+sectionId,SKU:".variant-sku",originalPriceWrapper:".product-price__price-"+sectionId,originalSelectorId:"#ProductSelect-"+sectionId,productFeaturedImage:"#FeaturedImage-"+sectionId,productImageWrap:"#FeaturedImageZoom-"+sectionId,productPrices:".product-single__price-"+sectionId,productThumbImages:".product-single__thumbnail--"+sectionId,productThumbs:".product-single__thumbnails-"+sectionId,saleClasses:"product-price__sale product-price__sale--single",saleLabel:".product-price__sale-label-"+sectionId,singleOptionSelector:".single-option-selector-"+sectionId},$("#ProductJson-"+sectionId).html()&&(this.productSingleObject=JSON.parse(document.getElementById("ProductJson-"+sectionId).innerHTML),this.settings.zoomEnabled=$(this.selectors.productFeaturedImage).hasClass("js-zoom-enabled"),this.settings.imageSize=theme.Images.imageSize($(this.selectors.productFeaturedImage).attr("src")),this.settings.zoomEnabled&&(this.settings.imageZoomSize=theme.Images.imageSize($(this.selectors.productImageWrap).data("zoom"))),this._initBreakpoints(),this._stringOverrides(),this._initVariants(),this._initImageSwitch(),this._setActiveThumbn
1ail(),theme.Images.preload(this.productSingleObject.images,this.settings.imageSize))}Product.prototype=_.assignIn({},Product.prototype,{_stringOverrides:function(){theme.productStrings=theme.productStrings||{},$.extend(theme.strings,theme.productStrings)},_initBreakpoints:function(){var self=this;enquire.register(this.settings.mediaQuerySmall,{match:function(){$(self.selectors.productThumbImages).length>3&&self._initThumbnailSlider(),self.settings.zoomEnabled&&_destroyZoom($(self.selectors.productImageWrap)),self.settings.bpSmall=!0},unmatch:function(){self.settings.sliderActive&&self._destroyThumbnailSlider(),self.settings.bpSmall=!1}}),enquire.register(this.settings.mediaQueryMediumUp,{match:function(){$(self.selectors.productThumbImages).length>3&&self._initThumbnailSlider(),self.settings.zoomEnabled&&_enableZoom($(self.selectors.productImageWrap))}})},_initVariants:function(){var options={$container:this.$container,enableHistoryState:this.$container.data("enable-history-state")||!1,singleOptionSelector:this.selectors.singleOptionSelector,originalSelectorId:this.selectors.originalSelectorId,product:this.productSingleObject};this.variants=new slate.Variants(options),this.$container.on("variantChange"+this.settings.namespace,this._updateAddToCart.bind(this)),this.$container.on("variantImageChange"+this.settings.namespace,this._updateImages.bind(this)),this.$container.on("variantPriceChange"+this.settings.namespace,this._updatePrice.bind(this)),this.$container.on("variantSKUChange"+this.settings.namespace,this._updateSKU.bind(this))},_initImageSwitch:function(){if($(this.selectors.productThumbImages).length){var self=this;$(this.selectors.productThumbImages).on("click",function(evt){evt.preventDefault();var $el=$(this),imageSrc=$el.attr("href"),zoomSrc=$el.data("zoom");self._switchImage(imageSrc,zoomSrc),self._setActiveThumbnail(imageSrc)})}},_setActiveThumbnail:function(src){var activeClass="active-thumb";typeof src=="undefined"&&(src=$(this.selectors.productFeaturedImage).attr("src"));var $thumbnail=$(this.selectors.productThumbImages+'[href="'+src+'"]');$(this.selectors.productThumbImages).removeClass(activeClass),$thumbnail.addClass(activeClass)},_switchImage:function(image,zoomImage){$(this.selectors.productFeaturedImage).attr("src",image),this.settings.zoomEnabled&&_destroyZoom($(this.selectors.productImageWrap)),!this.settings.bpSmall&&this.settings.zoomEnabled&&zoomImage&&($(this.selectors.productImageWrap).data("zoom",zoomImage),_enableZoom($(this.selectors.productImageWrap)))},_initThumbnailSlider:function(){var options={slidesToShow:4,slidesToScroll:1,rtl:theme.rtl,infinite:!1,responsive:[{breakpoint:480,settings:{slidesToShow:3,vertical:!1,swipe:!0,verticalSwiping:!1,draggable:!1}}]};$(this.selectors.productThumbs).slick(options),this.settings.sliderActive=!0},_destroyThumbnailSlider:function(){$(this.selectors.productThumbs).slick("unslick"),this.settings.sliderActive=!1},_updateAddToCart:function(evt){var variant=evt.variant;if(variant)if($(this.selectors.productPrices).removeClass("visibility-hidden").attr("aria-hidden","true"),variant.available){$(this.selectors.addToCart).prop("disabled",!1),$(this.selectors.addToCartText).text(theme.strings.addToCart);var quantity=$("#pvr-"+variant.id).text();$("#quantity_message").show().find(".items").text(quantity)}else $(this.selectors.addToCart).prop("disabled",!0),$(this.selectors.addToCartText).text(theme.strings.soldOut),$("#quantity_message").hide();else $(this.selectors.addToCart).prop("disabled",!0),$(this.selectors.addToCartText).text(theme.strings.unavailable),$(this.selectors.productPrices).addClass("visibility-hidden").attr("aria-hidden","false"),$("#quantity_message").hide()},_updateImages:function(evt){var variant=evt.variant,sizedImgUrl=theme.Images.getSizedImageUrl(variant.featured_image.src,this.settings.imageSize),zoomSizedImgUrl;this.settings.zoomEnabled&&(zoomSizedImgUrl=theme.Images.getSizedImageUrl(variant.featured_image.src,this.settings.imageZoomSize)),this._switchImage(sizedImgUrl,zoomSizedImgUrl),this._setActiveThumbnail(sizedImgUrl)},_updatePrice:function(evt){var variant=evt.variant;$(this.selectors.originalPrice).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.originalPriceWrapper).addClass(this.selectors.saleClasses),$(this.selectors.saleLabel).removeClass("hide")):($(this.selectors.comparePrice).addClass("hide"),$(this.selectors.saleLabel).addClass("hide"),$(this.selectors.originalPriceWrapper).removeClass(this.selectors.saleClasses))},_updateSKU:function(evt){var variant=evt.variant;$(this.selectors.SKU).html(variant.sku)},onUnload:function(){this.$container.off(this.settings.namespace)}});function _enableZoom($el){var zoomUrl=$el.data("zoom");$el.zoom({url:zoomUrl})}function _destroyZoom($el){$el.trigger("zoom.destroy")}return Product})(),theme.QuickView=(function(){$("body").on("click",".quick-view",function(e){$.ajax({beforeSend:function(){$("body").addClass("loading")},url:$(this).attr("href"),success:function(data){$.magnificPopup.open({items:{src:'<div class="quick-view-popup" id="content_quickview">'+data+"</div>",type:"inline"},removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-horizontal"},open:function(){$(".product-photoslider").slick({dots:!1,infinite:!0,speed:300,rtl:theme.rtl,slidesToShow:1,slidesToScroll:1})},close:function(){$("#content_quickview").empty()}}})},complete:function(){$("body").removeClass("loading")}}),e.preventDefault(),e.stopPropagation()})})(),theme.Quotes=(function(){var config={mediaQuerySmall:"screen and (max-width: 749px)",mediaQueryMediumUp:"screen and (min-width: 750px)",slideCount:0},defaults={accessibility:!0,arrows:!0,dots:!1,autoplay:!1,touchThreshold:20,rtl:theme.rtl,slidesToShow:1,slidesToScroll:1};function Quotes(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),wrapper=this.wrapper=".quotes-wrapper",slider=this.slider="#Quotes-"+sectionId,$slider=$(slider,wrapper),sliderActive=!1,mobileOptions=$.extend({},defaults,{slidesToShow:1,slidesToScroll:1,rtl:theme.rtl,adaptiveHeight:!0});config.slideCount=$slider.data("count"),config.slideCount<defaults.slidesToShow&&(defaults.slidesToShow=config.slideCount,defaults.slidesToScroll=config.slideCount),$slider.on("init",this.a11y.bind(this)),enquire.register(config.mediaQuerySmall,{match:function(){initSlider($slider,mobileOptions)}}),enquire.register(config.mediaQueryMediumUp,{match:function(){initSlider($slider,defaults)}});function initSlider(sliderObj,args){sliderActive&&(sliderObj.slick("unslick"),sliderActive=!1),sliderObj.slick(args),sliderActive=!0}}return Quotes.prototype=_.assignIn({},Quotes.prototype,{onUnload:function(){enquire.unregister(config.mediaQuerySmall),enquire.unregister(config.mediaQueryMediumUp),$(this.slider,this.wrapper).slick("unslick")},onBlockSelect:function(evt){var $slide=$(".quotes-slide--"+evt.detail.blockId+":not(.slick-cloned)"),slideIndex=$slide.data("slick-index");$(this.slider,this.wrapper).slick("slickGoTo",slideIndex)},a11y:function(event,obj){var $list=obj.$list,$wrapper=$(this.wrapper,this.$container);$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")})}}),Quotes})(),theme.slideshows={},theme.SlideshowSection=(function(){function SlideshowSection(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),slideshow=this.slideshow="#Slideshow-"+sectionId;$(".slideshow__video",slideshow).each(function(){var $el=$(this);theme.SlideshowVideo.init($el),theme.SlideshowVideo.loadVideo($el.attr("id"))}),theme.slideshows[slideshow]=new theme.Slideshow(slideshow)}return SlideshowSection})(),theme.SlideshowSection.prototype=_.assignIn({},theme.SlideshowSection.prototype,{onUnload:function(){delete theme.slideshows[this.slideshow]},onBlockSelect:function(evt){var $slideshow=$(this.slideshow),$slide=$(".slideshow__slide--"+evt.detail.blockId+":not(.slick-cloned)"),slideIndex=$slide.data("slick-index");$slideshow.slick("slickGoTo",slideIndex).slick("slickPause")},onBlockDeselect:function(){$(this.slideshow).slick("slickPlay")}}),theme.collectionView=(function(){function collectionView(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),sliderSecond=$container.attr("data-section-timeout");
1$("#collection-slideshow").slick({dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:7e3,speed:600,rtl:theme.rtl,slidesToShow:1,slidesToScroll:1}),$("#sideProdSlider").slick({dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:7e3,speed:600,rtl:theme.rtl,slidesToShow:1,slidesToScroll:1}),$(window).on("load delayed-resize",function(e,resizeEvent){productGridView(sectionId)})}return collectionView})(),theme.productSlider={},theme.prodcarouselSection=(function(){function prodcarouselSection(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),productSlider=this.productSlider="#"+sectionId+" .productSlider",productitems=$container.attr("data-ds"),productitemsTb=$container.attr("data-tb"),productitemsMb=$container.attr("data-mb"),tabs=this.tabs="#"+sectionId+" .tablink",tabcontent=this.tabcontent="#"+sectionId+" .tab-content",productRowSlider=this.productRowSlider="#products-"+sectionId+" .productSlider";$(tabs).on("click",function(e){e.preventDefault(),$(this).parent().addClass("active"),$(this).parent().siblings().removeClass("active");var tab=$(this).attr("href");$(tabcontent).not(tab).removeClass("active").css("display","none"),$(tab).addClass("active").fadeIn(),prodslider(tab+" .productSlider")}),$("#"+sectionId).each(function(){$(this).find(".collection-tabs li:first-child").addClass("active"),$(this).find(".tab-container h2:first-child + .tab-content").addClass("active").show();var firsttab=$(this).find(".collection-tabs li:first-child a").attr("href");prodslider(firsttab+" .productSlider")}),$(".prSliderOuter").length&&prodslider(".prSliderOuter "+productSlider),$("#related-products").length&&prodslider(productSlider);function prodslider($slider){$($slider).not(".slick-initialized").slick({dots:!1,infinite:!0,speed:300,centerPadding:20,rtl:theme.rtl,slidesToShow:productitems,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:999,settings:{slidesToShow:productitemsTb,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:productitemsMb,slidesToScroll:1}}]}),$($slider).resize()}$(window).on("load delayed-resize",function(e,resizeEvent){productGridView(sectionId)})}return prodcarouselSection})();function productGridView(sectionId){var gridRows=[],tempRow=[];productGridElements=$("#"+sectionId+" .grid-products .grid__item"),productGridElements.each(function(index){$(this).css("clear")!="none"&&index!=0&&(gridRows.push(tempRow),tempRow=[]),tempRow.push(this),productGridElements.length==index+1&&gridRows.push(tempRow)}),$.each(gridRows,function(){var tallestHeight=0;$.each(this,function(){$(this).find(".grid-view_image a.grid-view-item__link").css("height",""),elHeight=parseInt($(this).find(".grid-view_image").css("height")),elHeight>tallestHeight&&(tallestHeight=elHeight)}),$.each(this,function(){$(this).find(".grid-view_image > a.grid-view-item__link").css("height",tallestHeight)})})}theme.instagram={},theme.instagramSection=(function(){function instagramSection(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),token=$container.attr("data-token"),dataget=$container.attr("data-get"),tags=$container.attr("data-tags"),user=$container.attr("data-user"),imagesize=$container.attr("data-image"),num_photos=$container.attr("data-count");dataget=="tagged"?instagramurl="https://api.instagram.com/v1/tags/"+tags+"/media/recent":instagramurl="https://api.instagram.com/v1/users/"+user+"/media/recent",$.ajax({url:instagramurl,dataType:"jsonp",type:"GET",data:{access_token:token,count:num_photos},success:function(data){for(x in data.data)imagesize=="thumbnail"?imageurl=data.data[x].images.thumbnail.url:imagesize=="standard_resolution"?imageurl=data.data[x].images.standard_resolution.url:imageurl=data.data[x].images.low_resolution.url,$("#instafeed").append('<div class="insta-img"><a href="'+data.data[x].link+'"><img src="'+imageurl+'"></a></div>')},error:function(data){console.log(data)}})}return instagramSection})(),theme.sliderbox={},theme.sliderbox=(function(){function sliderbox(container){var $container=this.$container=$(container),sectionId=$container.attr("data-section-id"),sliderbox2=this.sliderbox="#sliderbox-"+sectionId+" .sliderbox",desktop=$container.attr("data-section-sli
1de"),laptop=4,tablet=2,mobile=1;$($container).hasClass("logo-bar")&&(laptop=5,tablet=3,mobile=2),$(sliderbox2).slick({dots:!1,infinite:!0,slidesToShow:desktop,rtl:theme.rtl,speed:600,slidesToScroll:1,responsive:[{breakpoint:1199,settings:{slidesToShow:laptop}},{breakpoint:989,settings:{slidesToShow:tablet}},{breakpoint:481,settings:{slidesToShow:mobile}}]}),$(sliderbox2).resize()}return sliderbox})(),$(document).ready(function(){var sections=new theme.Sections;sections.register("header-section",theme.HeaderSection),sections.register("cart-template",theme.Cart),sections.register("product",theme.Product),sections.register("collection-template",theme.Filters),sections.register("collection-template",theme.collectionView),sections.register("product-template",theme.Product),sections.register("map",theme.Maps),sections.register("slideshow-section",theme.SlideshowSection),sections.register("carousel-section",theme.prodcarouselSection),sections.register("slider-box",theme.sliderbox),sections.register("quotes",theme.Quotes),sections.register("instagram",theme.instagramSection),sections.register("collection-box",theme.collectionListBox),$(".selected-currency").click(function(){$("#currencies").slideToggle()}),$("#currencies li").click(function(){$(this).parent().slideUp()})});var resizeTimer;$(window).resize(function(){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){$(window).trigger("delayed-resize")},250)}),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()})},$(theme.init);var ab={drawerTimeout:null,init:function(){this.hideDrawer(),this.prodAddToCart(),this.gridAddToCart(),this.cartDropdown(),this.wishlist(),this.updateWishlist()},showLoadingBox:function(){$("body").addClass("loading")},hideLoadingBox:function(){$("body").removeClass("loading")},showDrawer:function(i){$("body").addClass("showOverly"),$(i).fadeIn(500),ab.drawerTimeout=setTimeout(function(){$("body").removeClass("showOverly"),$(i).fadeOut(500)},8e3)},hideDrawer:function(){$(".continue-shopping, .modalOverly, .closeDrawer").click(function(){clearTimeout(ab.drawerTimeout),$(this).closest(".modal").fadeOut(500),$("body").removeClass("showOverly")}),$(".modalOverly").click(function(){clearTimeout(ab.drawerTimeout),$("#successDrawer,#errorDrawer").fadeOut(500),$("body").removeClass("showOverly")})},gridAddToCart:function(){$(".add-to-cart").click(function(i){if(i.preventDefault(),theme.ajax_cart){var att=$(this).attr("id"),qty=$(this).attr("rel");ab.addinToCart(att,qty)}else $(this).next().submit()})},prodAddToCart:function(){$(".product-form__cart-submit").click(function(i){if(theme.ajax_cart){if(i.preventDefault(),$(this).attr("disabled")!="disabled")var att=$(".product-form select[name=id]").val();att||(att=$(".product-form-product-template input[name=id]").val());var qty=$(".product-form-product-template input[name=quantity]").val();qty||(qty=1),ab.addinToCart(att,qty)}else $(".product-form-product-template").submit()})},addinToCart:function(att,qty){ab.showLoadingBox(),CartJS.addItem(att,qty,{},{success:function(data,textStatus,jqXHR){var pimg=data.image,pimg_path=pimg.replace(/(\.[^\.]*$|$)/,"_small$&");$("#successDrawer").find(".modal-prod-img").attr("src",pimg_path),$("#successDrawer").find(".modal-prod-img").load(function(){ab.hideLoadingBox(),$("#successDrawer").find(".modal-prod-name").text(data.product_title),ab.showDrawer("#successDrawer")})},error:function(jqXHR,textStatus,errorThrown){var errormsg=JSON.parse(jqXHR.responseText).description;ab.hideLoadingBox(),$(".error-message").text(errormsg),ab.showDrawer("#errorDrawer")}})},cartDropdown:function(){var cartLink=$(".header-cart"),cartBox=$("#cart-drawer"),cartClose=$(".close-cart");cartLink.click(function(i){i.preventDefault(),i.stopPropagation(),cartBox.toggleClass("active")}),$(".page-wrapper").on("click",function(e){cartBox.removeClass("active")}),$(cartClose).on("click",function(e){cartBox.removeClass("active")})},closeDrawer:function(){$(".closeDrawer").click(function(){ab.hideLoadingBox(),ab.hideDrawer()})},wishlist:function(){var cookieName="wishlistList";
1$(".add-to-wishlist").click(function(e){e.preventDefault();var id=$(this).attr("rel");if($.cookie(cookieName)==null)var str=id;else if($.cookie(cookieName).indexOf(id)==-1)var str=$.cookie(cookieName)+"__"+id;$.cookie(cookieName,str,{expires:30,path:"/"}),$(this).find(".fa-spin").css("display","inline-block"),$(this).find(".fa-heart-o").hide(),setTimeout(function(){$('.add-to-wishlist[rel="'+id+'"]').hide(),$('.added-wishlist[rel="'+id+'"]').css("display","inline-block")},2e3)})},updateWishlist:function(){var cookieName="wishlistList";try{if($.cookie(cookieName)!=null&&$.cookie(cookieName)!="__"&&$.cookie(cookieName)!="")for(var str=String($.cookie(cookieName)).split("__"),i=0;i<str.length;i++)str[i]!=""&&($('.added-wishlist[rel="'+str[i]+'"]').css("display","inline-block"),$('.add-to-wishlist[rel="'+str[i]+'"]').hide())}catch(err){}}};$(document).ready(function(){"use strict";ab.init();var date=new Date;date.setTime(date.getTime()+1),Cookies.get("visited")!="true"?setTimeout(function(){$(".newsletter-wrap").fadeIn()},1e4):$(".newsletter-wrap").hide(),$(document).mouseup(function(e){var container=$("#newsletter-modal");!container.is(e.target)&&container.has(e.target).length===0&&$(".newsletter-wrap").fadeOut()}),$(".closepopup").click(function(){$(".newsletter-wrap").fadeOut(),Cookies.set("visited","true",{expires:1})}),Cookies.get("promotion")!="true"&&$(".notification-bar").show(),$(".close-announcement").click(function(){$(".notification-bar").slideUp(),Cookies.set("promotion","true",{expires:1})}),$(".btn-filter").click(function(){$(".filterbar").toggleClass("active")}),$(".closeFilter").click(function(){$(".filterbar").removeClass("active")}),$("body").click(function(event){var $target=$(event.target);!$target.parents().is(".filterbar")&&!$target.is(".filterbar")&&!$target.is(".btn-filter")&&$(".filterbar").removeClass("active")}),$(".user-menu").click(function(){$(".customer-links ul").slideToggle()}),theme.fixedHeader&&$(window).scroll(function(){$(window).width()>1199&&($(window).scrollTop()>145?$("#shopify-section-navigation").addClass("stickyNav animated fadeInDown"):$("#shopify-section-navigation").removeClass("stickyNav fadeInDown"))}),$(".footer-links .h4").click(function(){$(window).width()<750&&($(this).toggleClass("active"),$(this).next().slideToggle())}),$(".grid-view-item .swatches li:not(.noImg)").hover(function(){var newImage=$(this).attr("rel");return $(this).parents(".grid-view-item").find(".grid-view-item__link").addClass("showLoading"),$(this).parents(".grid-view-item").find(".variantImg").attr({src:newImage}),$(this).parents(".grid-view-item").find(".variantImg").load(function(){$(this).parents(".grid-view-item").find(".grid-view-item__link").removeClass("showLoading"),$(this).parents(".grid-view-item").find(".grid-view-item__link").addClass("showVariantImg")}),!1},function(){return $(this).parents(".grid-view-item").find(".grid-view-item__link").removeClass("showLoading"),$(this).parents(".grid-view-item").find(".grid-view-item__link").removeClass("showVariantImg"),!1}),$("#faq .panel-title").click(function(){$(this).toggleClass("active"),$(this).next().slideToggle()}),$("#site-scroll").click(function(){return $("html, body").animate({scrollTop:0},1e3),!1}),$(window).scroll(function(){$(this).scrollTop()>300?$("#site-scroll").fadeIn():$("#site-scroll").fadeOut()}),theme.animationMobile&&$(window).width()<767&&$(".wow").removeClass("wow"),theme.animation&&new WOW().init(),$("#shipping-calculator").length&&Shopify.Cart.ShippingCalculator.show({submitButton:theme.strings.shippingCalcSubmitButton,submitButtonDisabled:theme.strings.shippingCalcSubmitButtonDisabled,customerIsLoggedIn:theme.strings.shippingCalcCustomerIsLoggedIn,moneyFormat:"\xA3{{amount}}"})});
2//# sourceMappingURL=/cdn/shop/t/11/assets/theme.js.map?v=57959591668178462771568047898

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.