PageSourceSearch

https://www.antonsvpatisserie.com/cdn/shop/t/15/assets/shop.js?v=180690392936459301031769791722

js antonsvpatisserie.com collected 2026-10-10 00:09:16 UTC 18,355 bytes, 6 lines download raw bytes

1/*!
2 * enquire.js v2.1.2 - Awesome Media Queries in JavaScript
3 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js
4 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5 */(function(a,b,c){var d=window.matchMedia;typeof module!="undefined"&&module.exports?module.exports=c(d):typeof define=="function"&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)})("enquire",this,function(a){"use strict";function b(a2,b2){var c2,d2=0,e2=a2.length;for(d2;e2>d2&&(c2=b2(a2[d2],d2),c2!==!1);d2++);}function c(a2){return Object.prototype.toString.apply(a2)==="[object Array]"}function d(a2){return typeof a2=="function"}function e(a2){this.options=a2,!a2.deferSetup&&this.setup()}function f(b2,c2){this.query=b2,this.isUnconditional=c2,this.handlers=[],this.mql=a(b2);var d2=this;this.listener=function(a2){d2.mql=a2,d2.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a2){return this.options===a2||this.options.match===a2}},f.prototype={addHandler:function(a2){var b2=new e(a2);this.handlers.push(b2),this.matches()&&b2.on()},removeHandler:function(a2){var c2=this.handlers;b(c2,function(b2,d2){return b2.equals(a2)?(b2.destroy(),!c2.splice(d2,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a2){a2.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a2=this.matches()?"on":"off";b(this.handlers,function(b2){b2[a2]()})}},g.prototype={register:function(a2,e2,g2){var h=this.queries,i=g2&&this.browserIsIncapable;return h[a2]||(h[a2]=new f(a2,i)),d(e2)&&(e2={match:e2}),c(e2)||(e2=[e2]),b(e2,function(b2){d(b2)&&(b2={match:b2}),h[a2].addHandler(b2)}),this},unregister:function(a2,b2){var c2=this.queries[a2];return c2&&(b2?c2.removeHandler(b2):(c2.clear(),delete this.queries[a2])),this}},new g}),(function(a){a.fn.equalHeights=function(){var b=0,c=a(this);return c.each(function(){var c2=a(this).innerHeight();c2>b&&(b=c2)}),c.css("height",b)},a("[data-equal]").each(function(){var b=a(this),c=b.data("equal");b.find(c).equalHeights()})})(jQuery);var afterResize=(function(){var t={};return function(callback,ms,uniqueId){uniqueId||(uniqueId="Don't call this twice without a uniqueId"),t[uniqueId]&&clearTimeout(t[uniqueId]),t[uniqueId]=setTimeout(callback,ms)}})();window.timber=window.timber||{},timber.cacheSelectors=function(){timber.cache={$window:$(window),$html:$("html"),$body:$("body"),mediaQuerySmall:"screen and (max-width: 480px)",mediaQueryMedium:"screen and (min-width: 480px) and (max-width: 768px)",mediaQueryLarge:"screen and (min-width: 769px)",scrollPosition:0,isAjaxCartVisible:!1,$navigation:$("#accessibleNav"),$menuToggle:$(".menu-toggle"),$hasDropdownItem:$(".site-nav--has-dropdown"),$mobileNav:$(".mobile-nav--sticky"),$siteHeader:$(".site-header"),$productImage:$("#productPhotoImg"),$thumbImages:$("#productThumbs").find("a.product-photo-thumb"),$shareButtons:$(".social-sharing"),$blogSortBy:$("#blogSortBy"),cartNoteAdd:".cart__note-add",cartNote:".cart__note",$gridImages:$(".grid-image"),$filterDropdowns:$(".filter-dropdown"),$filterSelect:$(".filter-dropdown__select"),$filterLabel:$(".filter-dropdown__label"),$sortDropdown:$("#sortBy"),$tagsDropdown:$("#sortTags"),$carousel:$(".carousel-items"),$carouselItems:$(".product-item"),carouselItemsSmall:1,carouselItemsMedium:2,carouselItemsLarge:3,$rte:$(".rte")}},timber.init=function(){timber.cacheSelectors(),timber.toggleMenu(),timber.productImageSwitch(),timber.equalHeights(),timber.responsiveVideos(),timber.blogFilters(),timber.setFilterLabels(),timber.setQueryParams(),timber.socialSharing(),timber.cartPage(),timber.homepageSlider(),timber.setBreakpoint(),timber.positionSubNav(),timber.rteBannerImages(),timber.cache.$sortDropdown.on("change",timber.sortCollection),timber.cache.$tagsDropdown.on("change",timber.filterCollection),timber.cache.$window.on("load",timber.responsiveNav),timber.cache.$window.on("scroll",timber.detectScroll),timber.cache.$window.on("load",timber.equalHeights),timber.cache.$window.on("resize",function(){afterResize(function(){timber.equalHeights()},250,"id")}),timber.isInitialized=!0},timber.setBreakpoint=function(){enquire.register(timber.cache.mediaQuerySmall,{match:function(){window.bpSmall=!0,timber.cache.siteHeaderHeight=timber.cache.$siteHeader.outerHeight(!0),timber.cache.$siteHeader.css("min-height",timber.cache.siteHeaderHeight),timber.checkCollectionCarousel(timber.cache.carouselItemsSmall)},unmatch:function(){window.bpSmall=!1,timber.cache.$siteHeader.removeAttr("style"),timber.positionSubNav()}}).register(timber.cache.mediaQueryMedium,{match:function(){timber.checkCollectionCarousel(timber.cache.carouselItemsMedium)}}).register(timber.cache.mediaQueryLarge,{match:function(){timber.checkCollectionCarousel(timber.cache.carouselItemsLarge)}},!0)},timber.detectScroll=function(){var currentScrollTop=timber.cache.$window.scrollTop(),siteHeaderScrollTop=0;if(window.bpSmall){if(timber.cache.isAjaxCartVisible&&(siteHeaderScrollTop=timber.cache.$siteHeader.offset().top),currentScrollTop<=siteHeaderScrollTop){timber.cache.$mobileNav.removeClass("sticky"),timber.cache.$mobileNav.removeClass("unsticky"),timber.cache.scrollPosition=currentScrollTop;return}if(currentScrollTop>timber.cache.scrollPosition&&currentScrollTop>timber.cache.siteHeaderHeight+siteHeaderScrollTop){timber.cache.$mobileNav.removeClass("sticky"),timber.cache.$mobileNav.addClass("unsticky"),timber.cache.scrollPosition=currentScrollTop;return}if(currentScrollTop<timber.cache.scrollPosition){if(currentScrollTop+window.innerHeight>=document.body.scrollHeight)return;timber.cache.$mobileNav.removeClass("unsticky"),timber.cache.$mobileNav.addClass("sticky"),timber.cache.scrollPosition=currentScrollTop;return}}},timber.accessibleNav=function(){var $nav=timber.cache.$navigation,$allLinks=$nav.find("a"),$topLevel=$nav.children("li").find("a"),$parents=$nav.find(".site-nav--has-dropdown"),$subMenuLinks=$nav.find(".site-nav--dropdown").find("a"),activeClass="nav-hover",focu
5sClass="nav-focus";$parents.on("mouseenter touchstart",function(evt){var $el=$(this);$el.hasClass(activeClass)||evt.preventDefault(),showDropdown($el)}),$parents.on("mouseleave",function(){hideDropdown($(this))}),$subMenuLinks.on("touchstart",function(evt){evt.stopImmediatePropagation()}),$allLinks.focus(function(){handleFocus($(this))}),$allLinks.blur(function(){removeFocus($topLevel)});function handleFocus($el){var $subMenu=$el.next("ul"),hasSubMenu=!!$subMenu.hasClass("sub-nav"),isSubItem=$(".site-nav--dropdown").has($el).length,$newFocus=null;isSubItem?($newFocus=$el.closest(".site-nav--has-dropdown").find("a"),addFocus($newFocus)):(removeFocus($topLevel),addFocus($el))}function showDropdown($el){$el.addClass(activeClass),setTimeout(function(){timber.cache.$body.on("touchstart",function(){hideDropdown($el)})},250)}function hideDropdown($el){$el.removeClass(activeClass),timber.cache.$body.off("touchstart")}function addFocus($el){$el.addClass(focusClass)}function removeFocus($el){$el.removeClass(focusClass)}},timber.responsiveNav=function(){timber.cache.$window.on("resize",function(){afterResize(function(){timber.cache.$navigation.append($(".js-more-menu--list").html()),$(".js-more-menu").remove(),timber.alignMenu(),timber.accessibleNav()},200,"uniqueID")}),timber.alignMenu(),timber.accessibleNav(),timber.positionSubNav()},timber.alignMenu=function(){var $nav=timber.cache.$navigation,w=0,i=0,wrapperWidth=$nav.outerWidth()-101,menuhtml="";window.bpSmall||($.each($nav.children(),function(){var $el=$(this);$el.hasClass("large-hide")||(w+=$el.outerWidth(!0)),wrapperWidth<w&&(menuhtml+=$("<div>").append($el.clone()).html(),$el.remove(),$el.hasClass("large-hide")||i++)}),wrapperWidth<w&&($nav.append('<li class="js-more-menu site-nav--has-dropdown"><a href="#">More<span class="icon icon-arrow-down" aria-hidden="true"></span></a><ul class="js-more-menu--list site-nav--dropdown">'+menuhtml+"</ul></li>"),timber.cache.$hasDropdownItem=$(".site-nav--has-dropdown")))},timber.toggleMenu=function(){timber.cache.$menuToggle.on("click",function(){timber.cache.$body.toggleClass("show-nav"),$("#ajaxifyModal").hasClass("is-visible")&&($("#ajaxifyModal").removeClass("is-visible"),timber.cache.$body.addClass("show-nav"))}),timber.cache.$hasDropdownItem.on("click touchend",function(evt){if(timber.cache.$body.hasClass("show-nav")){var $el=$(this);$el.hasClass("show-dropdown")||(evt.preventDefault(),$el.addClass("show-dropdown"))}})},timber.productPage=function(options){var moneyFormat=options.moneyFormat,variant=options.variant,selector=options.selector,$productImage=$("#productPhotoImg"),$addToCart=$("#addToCart"),$productPrice=$("#productPrice"),$comparePrice=$("#comparePrice"),$quantityElements=$(".quantity-selector, label + .js-qty"),$lowStock=$(".low-stock-container"),$variantQuantity=$("#variantQuantity"),$addToCartText=$("#addToCartText");if(variant){if(variant.featured_image){var newImg=variant.featured_image,el=$productImage[0];Shopify.Image.switchImage(newImg,el,timber.switchImage)}variant.available?($addToCart.removeClass("disabled").prop("disabled",!1),$addToCartText.text("Add to Cart")):($addToCart.addClass("disabled").prop("disabled",!0),$addToCartText.text("SOLD OUT"),$lowStock.hide()),$productPrice.html(Shopify.formatMoney(variant.price,moneyFormat)),variant.compare_at_price>variant.price?$comparePrice.html(Shopify.formatMoney(variant.compare_at_price,moneyFormat)).show():$comparePrice.hide()}else $addToCart.addClass("disabled").prop("disabled",!0),$addToCartText.text("Unavailable"),$lowStock.hide()},timber.checkCollectionCarousel=function(itemLimit){timber.cache.$carousel&&timber.cache.$carousel.find(".owl-item:not(.cloned)").length<=itemLimit&&timber.destroyCollectionCarousel(),timber.cache.$carousel&&timber.cache.$carousel.find(".product-item").length>itemLimit&&timber.createCollectionCarousel()},timber.createCollectionCarousel=function(){var carouselLength=timber.cache.$carouselItems.length,carouselOptions={dots:!1,navSpeed:100,smartSpeed:100,loop:!1,baseClass:"owl-carousel",navText:['<button type="button" class="carousel__nav-control--prev btn-secondary carousel__nav-control icon-fallback-text"><span class="icon icon-arrow-long-left" aria-hidden="true"></span><span class="fallback-text">prev</span></button>','<button type="button" class="carousel__nav-control--next btn-secondary carousel__nav-control icon-fallback-text"><span class="icon icon-arrow-long-right" aria-hidden="true"></span><span class="fallback-text">next</span></button>'],nav:!0,responsive:{0:{items:timber.cache.carouselItemsSmall,nav:!1,stagePadding:65},321:{items:timber.cache.carouselItemsSmall,nav:!1,stagePadding:80},400:{items:timber.cache.carouselItemsSmall,nav:!1,stagePadding:90},480:{items:timber.cache.carouselItemsMedium,nav:!0,slideBy:timber.cache.carouselItemsMedium},769:{items:timber.cache.carouselItemsLarge,nav:!0,slideBy:timber.cache.carouselItemsLarge}}};carouselLength>1&&(carouselOptions.loop=!0),carouselLength>0&&(timber.cache.$carouselItems.removeClass("fluid-grid-item").addClass("grid-item"),timber.cache.$carousel.owlCarousel(carouselOptions))},timber.destroyCollectionCarousel=function(){timber.cache.$carousel.trigger("destroy.owl.carousel"),timber.cache.$carouselItems.addClass("fluid-grid-item").removeClass("grid-item")},timber.carouselEqualHeights=function(){var imageHeight=timber.cache.$carousel.find(".owl-item:not(.cloned) .grid-image").height();timber.cache.$carousel.find(".cloned .grid-image").css("height",imageHeight)},timber.homepageSlider=function(options){var $homepageSlider=$(".homepage-slider__slides"),sliderOptions={items:1,loop:!0,smartSpeed:750,animateOut:"fadeOut",autoplayTimeout:5e3,autoplay:!0,dots:!0,center:!0,nav:!1};$homepageSlider.children().length===1&&(sliderOptions.loop=!1,sliderOptions.dots=!1),$homepageSlider.length&&$homepageSlider.owlCarousel(sliderOptions)},timber.productImageSwitch=function(){timber.cache.$thumbImages.length&&timber.cache.$thumbImages.on("click",function(evt){evt.preventDefault();var newImage=$(this).attr("href");timber.switchImage(newImage,null,timber.cache.$productImage)})},timber.switchImage=function(src,imgObject,el){var $el=$(el);$el.attr("src",src),timber.markActiveThumb($el)},timber.markActiveThumb=function($el){timber.isInitialized&&timber.cache.$thumbImages.each(function(){if($self=$(this),$self.removeClass("active"),thumbImageUrl=$self.attr("href").split("?")[0],linkImageUrl=$el.attr("src").split("?")[0],thumbImageUrl===linkImageUrl){$self.addClass("active");return}})},timber.blogFilters=function(){var path=window.location.pathname,queryParam=window.location.search,tag=new RegExp("tagged"),trimPath=new RegExp("/tagged.*"),isTagUrl=tag.test(path),blogUrl=path.replace(trimPath,"");timber.cache.$blogSortBy.length&&timber.cache.$blogSortBy.bind("change",function(){if($(this).val()==="all"){window.location=blogUrl;return}if(isTagUrl){window.location=$(this).val();return}window.location=blogUrl+"/tagged/"+jQuery(this).val()})},timber.setQueryParams=function(){if(timber.cache.$sortDropdown.length){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]));timber.cache.$sortDropdown.val(Shopify.queryParams.sort_by),timber.cache.$html.hasClass("supports-pointerevents")&&Shopify.queryParams.sort_by&&timber.updateFilterLabel(null,timber.cache.$sortDropdown)}},timber.filterCollection=function(){timber.cache.$tagsDropdown.length&&(Shopify.queryParams?window.location.href=timber.cache.$tagsDropdown.val()+"?"+$.param(Shopify.queryParams):window.location.href=timber.cache.$tagsDropdown.val())},timber.sortCollection=function(){timber.cache.$sortDropdown&&(Shopify.queryParams.sort_by=timber.cache.$sortDropdown.val(),location.search=jQuery.param(Shopify.queryParams))},timber.responsiveVideos=function(){var $iframeVideo=$('iframe[src*="youtube.com/embed"], iframe[src*="player.vimeo"]'),$iframeReset=$iframeVideo.add("iframe#admin_bar_iframe");$iframeVideo.each(function(){$(this).wrap('<div class="video-wrapper"></div>')}),$iframeReset.each(function(){this.src=this.src})},timber.setFilterLabels=function(){timber.cache.$filterSelect.length&&timber.cache.$html.hasClass("supports-pointerevents")&&(timber.cache.$filterSelect.each(function(){timber.updateFilterLabel(null,this)}),timber.cache.$filterSelect.on("change",timber.updateFilterLabel))},timber.updateFilterLabel=function(evt,element){var $label,renderedLabel,selectedVariant,$select=evt?$(evt.target):$(element);$label=$select.prev(".filter-dropdown__label").find(".filter-dropdown__label--active"),selectedVariant=$select.find("option:selected").text(),$label.html(" "+selectedVariant),timber.cache.$filterDropdowns.addClass("loaded")},timber.socialSharing=function(){var $buttons=timber.cache.$shareButtons,$shareLinks=$buttons.find("a"),permalink=$buttons.attr("data-permalink"),$fbLink=$(".share-facebook"),$twitLink=$(".share-twitter"),$pinLink=$(".share-pinterest"),$googleLink=$(".share-google");$fbLink.length&&$.getJSON("https://graph.facebook.com/?id="+permalink+"&callback=?",function(data){data.shares?$fbLink.find(".share-count").text(data.shares).addClass("is-loaded"):$fbLink.find(".share-count").remove()}),$twitLink.length&&$.getJSON("https://cdn.api.twitter.com/1/urls/count.json?url="+permalink+"&callback=?",function(data){data.count>0?$twitLink.find(".share-count").text(data.count).addClass("is-loaded"):$twitLink.find(".share-count").remove()}),$pinLink.length&&$.getJSON("https://api.pinterest.com/v1/urls/count.json?url="+permalink+"&callback=?",function(data){data.count>0?$pinLink.find(".share-count").text(data.count).addClass("is-loaded"):$pinLink.find(".share-count").remove()}),$googleLink.length&&$googleLink.find(".share-count").addClass("is-loaded"),$shareLinks.on("click",function(e){e.preventDefault();var $el=$(this),popup=$el.attr("class").replace("-","_"),link=$el.attr("href"),w=700,h=400;switch(popup){case"share-twitter":h=300;break;case"share-fancy":w=480,h=720;break;case"share-google":w=500;break}window.open(link,popup,"width="+w+", height="+h)})},timber.positionSubNav=function(){timber.cache.$hasDropdownItem.each(function(){var $currentPrimaryNav=$(this),$currentSubN
5av=$currentPrimaryNav.find(".site-nav--dropdown");primaryNavWidth=Math.floor($currentPrimaryNav.width()),subNavWidth=Math.floor($currentSubNav.width()),offset=Math.floor((primaryNavWidth-subNavWidth)/2),$currentPrimaryNav.hasClass("js-more-menu")||$currentSubNav.css("left",offset)})},timber.rteBannerImages=function(){if(timber.cache.$rte){var $imgContainers=timber.cache.$rte.find("img:not([style])").parent("p");$imgContainers&&$imgContainers.addClass("banner-img")}},timber.equalHeights=function(){timber.cache.$html.hasClass("lt-ie9")||(timber.cache.$gridImages.css("height","auto").equalHeights(),timber.cache.$carousel&&timber.carouselEqualHeights())},timber.cartPage=function(){timber.cache.$body.on("click",timber.cache.cartNoteAdd,function(evt){evt.preventDefault(),$(this).addClass("is-hidden"),$(timber.cache.cartNote).addClass("is-active"),ajaxifyShopify.sizeDrawer()})},timber.cartToggleCallback=function(data){data.is_visible?(timber.cache.isAjaxCartVisible=!0,setTimeout(function(){timber.cartPage()},1e3)):timber.cache.isAjaxCartVisible=!1},timber.debounce=function(func,wait,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}},$(timber.init);
6//# sourceMappingURL=/cdn/shop/t/15/assets/shop.js.map?v=180690392936459301031769791722

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.