PageSourceSearch

https://shop.annmariegianni.com/cdn/shop/t/269/assets/bvaccel.js?v=18681095444050304261787091263

js annmariegianni.com collected 2026-09-25 14:18:03 UTC 51,418 bytes, 2 lines download raw bytes

1var RC,AMG=AMG||{};AMG.collections=AMG.collections||{},(RC=RC||{}).adminBar=(function(e,t){return{init:function(){var e2=t("#rc-admin-bar"),o=e2.find("> button"),a=e2.find("> ul").find("> li"),i=a.find("> button"),n=e2.find("> p");e2.length?(o.on("click",function(){e2.hasClass("open")?(a.removeClass("active"),e2.removeClass("open")):e2.addClass("open")}),i.on("click",function(){t(this).parent().hasClass("active")?t(this).parent().removeClass("active"):(a.removeClass("active"),t(this).parent().addClass("active"))}),setTimeout(function(){var e3=t("iframe#admin_bar_iframe").contents(),o2=e3.find(".store-password > span").html();o2.length?n.find("em").html(o2):n.remove(),e3.remove()},500)):console.log("Note: you must include 'rc-admin-bar.liquid' in your theme.")}}})(0,jQuery),(RC=RC||{}).cart=(function(e,t){function o(e2){var t2;try{t2=JSON.parse(e2)}catch(e3){t2={}}return t2}return{update:function(o2,a,i){t.ajax({type:"POST",url:"/cart/update.js",data:o2,dataType:"json",cache:!1}).done(function(i2){typeof a=="function"&&a(i2),t(e).trigger("cart:updated",[i2,o2])}).fail(function(a2){typeof i=="function"&&i(a2),t(e).trigger("cart:failure",[a2,o2])})},add:function(o2,a,i){t.ajax({type:"POST",url:"/cart/add.js",data:o2,dataType:"json",cache:!1}).done(function(i2){typeof a=="function"&&a(i2),t(e).trigger("cart:item_added",[i2,o2])}).fail(function(a2){typeof i=="function"&&i(a2),t(e).trigger("cart:failure",[a2,o2])})},get:function(e2,o2){t.ajax({type:"GET",url:"/cart.js",dataType:"json",cache:!1}).done(function(t2){typeof e2=="function"&&e2(t2)}).fail(function(e3){typeof o2=="function"&&o2(e3)})},change:function(o2,a,i){t.ajax({type:"POST",url:"/cart/change.js",data:o2,dataType:"json",cache:!1}).done(function(i2){typeof a=="function"&&a(i2),t(e).trigger("cart:changed",[i2,o2])}).fail(function(a2){typeof i=="function"&&i(a2),t(e).trigger("cart:failure",[a2,o2])})},clear:function(e2,o2){t.ajax({type:"POST",url:"/cart/clear.js",dataType:"json",cache:!1}).done(function(t2){typeof e2=="function"&&e2(t2),console.log("cart cleared")}).fail(function(t2){typeof e2=="function"&&o2(t2)})},getItem:function(e2,o2,a){t.ajax({type:"GET",url:"/products/"+e2+".js",dataType:"json",cache:!1}).done(function(e3){typeof o2=="function"&&o2(e3)}).fail(function(e3){typeof o2=="function"&&a(e3)})},api:{get:function(e2,a){t.ajax({type:"GET",url:"/cart?view=api",dataType:"html",cache:!1}).done(function(t2){typeof e2=="function"&&e2(o(t2))}).fail(function(e3){typeof a=="function"&&a(o(e3))})}}}})(RC,jQuery),(RC=RC||{}).floatingLabels=(function(e,t){return{floatMyLabels:function(e2){for(var o=[].concat(e2).length,a=0;a<o;a++)t(e2).on("blur change",function(){t(this).val().length>0?t(this).addClass("filled"):t(this).removeClass("filled")})}}})(0,jQuery),(RC=RC||{}).sidePanel=(function(e,t){var o=[],a=!1;return{init:function(i,n,r){typeof t.fn.swipe=="function"&&(a=!0),t(document).on("keyup",function(t2){t2.keyCode===27&&e.sidePanel.close()}),t('.panel_overlay, .side_panel--close, [data-sidepanel-action="close"]').on("click",function(t2){t2.preventDefault(),e.sidePanel.close()}),triggersArray=[].concat(i),triggersArray.forEach(function(i2){o.push(i2),typeof r=="string"&&t(n).attr("data-direction")!==r&&t(n).attr("data-direction",r),t(i2).on("click",function(t2){t2.preventDefault(),e.sidePanel.open(n)}),a&&(function(o2,a2){var i3=t(o2);switch(a2){case"up":i3.swipe({swipeDown:function(){e.sidePanel.close()}});break;case"down":i3.swipe({swipeUp:function(){e.sidePanel.close()}});break;case"left":i3.swipe({swipeRight:function(){e.sidePanel.close()}});break;case"right":i3.swipe({swipeLeft:function(){e.sidePanel.close()}})}})(n,t(n).attr("data-direction"))})},open:function(o2){t(o2).addClass("open"),t("body").addClass("no-scroll"),t(e.sidePanel).trigger("panel--opening")},close:function(){t(".side_panel.open").removeClass("open"),t("body.no-scroll").removeClass("no-scroll"),t(e.sidePanel).trigger("panel--closing")},destroy:function(){return o.forEach(function(e2){t(e2).off("click"),o.unshift()}),t(e.sidePanel).trigger("panels--destroyed"),!0}}})(RC,jQuery),(RC=RC||{}).utils=(function(e,t){return{shuffle:function(e2){var t2,o,a;for(t2=e2.length-1;t2>0;t2--)o=Math.floor(Math.random()*(t2+1)),a=e2[t2],e2[t2]=e2[o],e2[o]=a;return e2},urlParam:function(e2){return decodeURIComponent((new RegExp("[?|&]"+e2+"=([^&;]+?)(&|#|;|$)").exec(location.search)||["",""])[1].replace(/\+/g,"%20"))||null}
1,urlParams:function(e2){return(e2||document.location.search).replace(/(^\?)/,"").split("&").map(function(e3){return this[(e3=e3.split("="))[0]]=e3[1],this}.bind({}))[0]},urlHash:function(){return window.location.hash.split("#")[1]},urlParts:function(){return window.location.pathname.split(/\s*\/\s*/).filter(function(e2){return e2!=""})},getClickTouch:function(e2,o){t(e2).on("click touchstart",function(e3){if(e3.stopPropagation(),e3.preventDefault(),e3.handled===!0)return!1;o(e3),e3.handled=!0})},centsToDollars:function(e2){return+e2%100==0?+e2/100:(+e2/100).toFixed(2)},getCookie:function(e2){for(var t2=e2+"=",o=document.cookie.split(";"),a=0;a<o.length;a++){for(var i=o[a];i.charAt(0)==" ";)i=i.substring(1);if(i.indexOf(t2)==0)return i.substring(t2.length,i.length)}return""},setCookie:function(e2,t2,o){var a=new Date;a.setTime(a.getTime()+24*o*60*60*1e3);var i=";Secure;Expires="+a.toUTCString();document.cookie=e2+"="+t2+"; "+i}}})(0,jQuery),(RC=RC||{}).utils=RC.utils||{},RC.utils.validate=(function(e,t){var o=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return{email:function(e2){return!(!e2||e2.trim()===""||!o.test(e2))}}})(0,jQuery),(RC=RC||{}).shopifyPreviewButton=(function(e){var t=0;function o(e2){window.setTimeout(function(){e2.style.transform="translateX(-350px)"},5e3)}return{init:function(){(function e2(){window.setTimeout(function(){if(document.getElementById("shopify-theme-controls")!==null)a=document.getElementById("shopify-theme-controls"),i=document.querySelectorAll("a[title=Minimize]")[0],n=document.querySelectorAll(".shopify-preview-bar__title")[0],r=document.querySelectorAll(".shopify-preview-bar__btn")[0],a.setAttribute("style","display: block !important; width: 40px; height: 40px; padding: 5px; pointer-events: none;"),n.setAttribute("style","position: absolute; left: 45px; bottom: 0; width: 300px; background: rgba(0,0,0,.7); padding: 5px; transition: transform .2s ease-in; transform: translateX(0);"),n.textContent=n.textContent.replace(/You are currently previewing the theme: /gi,""),i.textContent="\xD7",i.setAttribute("style","position: absolute; font-size: 50px; color: white; bottom: -32px; left: -21px; text-decoration: none; pointer-events: auto;"),r.setAttribute("style","display: none;"),o(n),i.addEventListener("mouseover",function(){n.style.transform="translateX(0)",o(n)});else{if(t>30)return;t+=1,e2()}var a,i,n,r},250)})()}}})(),AMG.account=(function(e,t){var o={},a=function(){o.accordions.on("click",function(e2){var a2=t(e2.currentTarget),s={el:a2,elTargetId:a2.data("accordion-toggle"),elTargetEl:t("#"+a2.data("accordion-toggle")),active:a2.hasClass("active"),primary:a2.hasClass("account-nav__primary-link"),current:a2.hasClass("is--current-page")};if(o.isWishlist||o.isSubscriptions||o.isAddresses||o.isOrder){if(!o.isMobile||!s.primary)return;e2.preventDefault()}else e2.preventDefault();if(o.isMobile)s.primary?s.active?Accordion.close(s.elTargetId):s.current?Accordion.open(s.elTargetId):(n(),console.log("\uD83D\uDD2E",a2),i(a2),Accordion.open(s.elTargetId),r(s.elTargetEl)):s.active||(n(t(".account-nav__secondary-link.active")),Accordion.open(s.elTargetId));else{if(s.active)return;s.primary?(n(),i(s.el),r(s.elTargetEl)):n(t(".account-nav__secondary-link.active")),Accordion.open(s.elTargetId)}})},i=function(e2){t(".account-nav__primary-link").removeClass("is--current-page"),t("body").attr("data-accountsection",t(e2).attr("data-accountsection")),t(e2).addClass("is--current-page")}
1,n=function(e2){e2||(e2=t(".js-accordion.active")),e2.each(function(){Accordion.close(t(this).data("accordion-toggle"),!0)})},r=function(e2){var t2=e2.find("a").first();Accordion.open(t2.data("accordion-toggle"))};return{init:function(){t(document).ready(function(){o.accordions=t(".js-accordion"),o.controls=t(".js--account-control"),o.primaryNav=t(".account-header:visible .account-nav__primary-link"),o.isMobile=t(".account-header:visible").hasClass("account-header__mobile"),o.isAccount=t(".account").length>0,o.isAddresses=t(".customersaddresses").length>0,o.isOrder=t(".customersorder").length>0,o.isWishlist=t(".iwishWrapper").length>0,o.isSubscriptions=t("body").data("accountsection")=="subscriptions",(function(){o.accordions.off("click"),a();var e2=o.primaryNav.first(),n2=window.location.hash.substr(1),r2=null,s=null;if(n2.length){if(r2=n2.split("-")[0],s=n2.split("-")[1],r2.length){var c=t('.account-nav:visible [data-accountsection="'+r2+'"]');c.length&&(e2=c)}}else o.isSubscriptions&&(e2=t('.account-nav:visible [data-accountsection="subscriptions"]'));i(e2);var l=t(e2).data("accordion-toggle"),d=t("#"+l).find("a").first().data("accordion-toggle");if(s&&(d=t('.account-subnav:visible [data-accountsubsection="'+s+'"]').data("accordion-toggle")),o.isWishlist&&(d=t('.account-subnav:visible [data-accountsubsection="wishlist"]').data("accordion-toggle")),o.isAddresses&&(d=t('.account-subnav:visible [data-accountsubsection="settings"]').data("accordion-toggle")),o.isOrder&&(d=t('.account-subnav:visible [data-accountsubsection="orders"]').data("accordion-toggle")),o.isSubscriptions){var u,p=window.location.href;u=p.indexOf("/subscriptions")!=-1||p.indexOf("/products")!=-1?"recharge-subscriptions":p.indexOf("/delivery_schedule")!=-1?"recharge-schedule":p.indexOf("/orders")!=-1?"recharge-history":"recharge-account",d=null,t('.account-subnav [data-accountsubsection="'+u+'"]').addClass("active")}o.isMobile||Accordion.open(l),Accordion.open(d)})()})}}})(0,jQuery),AMG.collection=(function(e,t){return{init:function(){e.sidecartSettings.enable_sidecart&&t(".product--atc").on("click",function(o){var a={id:t(this).closest(".collection_grid--product").attr("data-id"),quantity:1};o.preventDefault(),t(this).hasClass("no-atc")||RC.cart.add(a,function(){window.location.href.indexOf("cart")>-1?location.reload():e.sidecart.refresh(RC.sidePanel.open("#sidecart"))})}),t(".collection_slider--wrapper").length&&t(".collection_slider--wrapper").slick({dots:!0,adaptiveHeight:!1,responsive:[{breakpoint:768,settings:{adaptiveHeight:!0}}]}),t(".collection_faqs").length&&t(".faq").on("click",function(){t(this).hasClass("active")?t(".faq.active").removeClass("active"):(t(".faq.active").removeClass("active"),t(this).addClass("active"))})}}})(AMG,jQuery),AMG.nav=(function(e,t){var o;return{init:function(){window.innerWidth<=768&&t(".footer_column--header").on("click",function(){var e3,o2=t(this).closest(".footer_column"),a2=t(this).closest(".footer_column--subcolumn");e3=o2,a2.length&&(e3=a2),e3.hasClass("active")?e3.removeClass("active"):(t(".footer_column.active").removeClass("active"),t(".footer_column--subcolumn.active").removeClass("active"),e3.addClass("active"))}),t(".nav--primary_link").on("mouseenter",function(e3){window.clearTimeout(o),t(this).attr("data-dropdown-index")?(t(".header--dropdown_group.active").removeClass("active"),t(".header--dropdown:not(.active)").addClass("active"),t('.header--dropdown_group[data-dropdown-index="'+t(this).attr("data-dropdown-index")+'"]').addClass("active"),t(".nav--primary_link.open").removeClass("open"),t(this).addClass("open")):(t(".header--dropdown.active").removeClass("active"),t(".nav--primary_link.open").removeClass("open"),o=window.setTimeout(function(){t(".header--dropdown_group.active").removeClass("active")},350))}),t("#content, #homepage1, .desktop-12, .header--row:nth-child(1), .footer").on("mouseenter",function(e3){t(".header--dropdown.active").removeClass("active"),t(".nav--primary_link.open").removeClass("open"),window.clearTimeout(o),o=window.setTimeout(function(){t(".header--dropdown_group.active").removeClass("active")},350)}),t(".nav--primary_link").on("mouseleave",function(e3){t(e3.target).attr("data-dropdown-index")||(t(".header--dropdown.active").removeClass("active"),t(".nav--primary_link.open").removeClass("open"))}),t(".nav--primary_link").on("keydown",function(e3){var $link=t(this),index=$link.attr("data-dropdown-index");if(index){if(e3.key==="Enter"||e3.key==="ArrowDown"){e3.preventDefault();var $dropdown=t('.header--dropdown_group[data-dropdown-index="'+index+'"]'),$firstItem=$dropdown.find("a, button").first();$firstItem.length&&($link.trigger("mouseenter"),$firstItem.focus())}if(e3.key==="Tab"&&!e3.shiftKey){var $dropdown=t('.header--dropdown_group[data-dropdown-index="'+index+'"]'),$firstItem=$dropdown.find("a, button").first();$firstItem.length&&(e3.preventDefault(),$link.trigger("mouseenter"),$firstItem.focus())}}}),t(".header--dropdown_group").on("keydown","a, button",function(e3){var $item=t(this),$group=$item.closest(".header--dropdown_group"),index=$group.attr("data-dropdown-index"),$items=$group.find("a, button"),$first=$items.first(),$last=$items.last(
1);if(e3.key==="Tab"&&e3.shiftKey&&$item.is($first)&&(e3.preventDefault(),t('.nav--primary_link[data-dropdown-index="'+index+'"]').focus()),e3.key==="Tab"&&!e3.shiftKey&&$item.is($last)){e3.preventDefault();var $allLinks=t(".nav--primary_link"),$current=t('.nav--primary_link[data-dropdown-index="'+index+'"]'),currentIndex=$allLinks.index($current),$next=$allLinks.eq(currentIndex+1);t("#content").trigger("mouseenter"),$next.length&&($next.focus(),$next.attr("data-dropdown-index")&&$next.trigger("mouseenter"))}}),t(document).on("focusin",function(){setTimeout(function(){var $active=t(document.activeElement);!$active.closest(".nav--primary_link").length&&!$active.closest(".header--dropdown_group").length&&t("#content").trigger("mouseenter")},50)}),t(document).on("keydown",function(e3){e3.key==="Escape"&&t("#content").trigger("mouseenter")}),t(".mobile_nav--primary_link[data-panel-index]").on("click",function(e3){e3.preventDefault();var o2=t(this).attr("data-panel-index");t(".mobile_nav--nav_panel").addClass("secondary_open"),t('.mobile_nav--subnav_panel[data-panel-index="'+o2+'"]').addClass("open")}),t(".mobile_nav--close_subpanel").on("click",function(e3){e3.preventDefault(),t(".mobile_nav--nav_panel.secondary_open").removeClass("secondary_open"),t(".mobile_nav--subnav_panel.open").removeClass("open")}),t(".header--mobile_trigger").on("click",function(e3){e3.preventDefault(),t(".mobile_nav--nav_panel").toggleClass("openMenu"),t(".header--mobile_hamburger, .header--mobile_close").toggleClass("available"),t(".mobile_nav--nav_panel.secondary_open").removeClass("secondary_open")}),t(window).on("resize",function(){t(".mobile_nav--nav_panel.secondary_open").removeClass("secondary_open"),t(".mobile_nav--nav_panel.open, .mobile_nav--subnav_panel.open, .nav--primary_link.open").removeClass("open"),t(".header--mobile_close.available").removeClass("available"),t(".header--mobile_hamburger:not(.available)").addClass("available"),t(".header--dropdown.active").removeClass("active"),Scroll.unlock()}),t(".js--track-referral-cookie").on("click",function(){setTimeout(function(){t(".lion-referral-widget-needs-auth__buttons .lion-action-button").on("click",function(){RC.utils.setCookie("bva_amg_open_referral_modal",!0,.25)})},1e3)});var e2=RC.utils.getCookie("bva_amg_open_referral_modal")=="true",a=!!ENV.customer;e2&&a&&(RC.utils.setCookie("bva_amg_open_referral_modal","",0),setTimeout(function(){window.location.href=window.location.href+"?ll_act=refer"},500))}}})(0,jQuery),AMG.product=(function(e,t){var o;function a(e2){var o2=t(document).scrollTop();t(".product_sections--navigation a").each(function(){var e3=t(this),a2=t(e3.attr("href"));a2.position().top<=o2+68&&a2.position().top+a2.height()>o2+68?(t(".product_sections--navigation ul li a").removeClass("active"),e3.addClass("active")):e3.removeClass("active")})}function i(){t(window).scrollTop()>=o?(t(".product_sections--navigation").addClass("sticky"),t(".product_additional_info").addClass("nav_stuck"),t(".product_sections--top-link").addClass("visible")):(t(".product_sections--navigation.sticky").removeClass("sticky"),t(".product_additional_info.nav_stuck").removeClass("nav_stuck"),t(".product_sections--top-link").removeClass("visible"))}return{init:function(){if(e.sidecartSettings.enable_sidecart&&t(".product-cta-form").on("submit",function(o2){o2.preventDefault(),o2.stopImmediatePropagation();var a2=t(".product-cta-form").serialize();RC.cart.add(a2,function(){e.sidecart.refresh(RC.sidePanel.open("#sidecart"))})}),window.innerWidth>1024&&t(".bigimage").zoom(),t("a.clicker").click(function(){var e2=t(this).attr("href");return t(".bigimage img").attr({src:e2}),t(".clicker.active").removeClass("active"),t(this).addClass("active"),!1}),t("a.next_thumb").on("click",function(e2){e2.preventDefault(),t(".clicker.active").parent().next().find(".clicker").length>0?t(".clicker.active").parent().next().find(".clicker").trigger("click"):(t(".clicker.active").removeClass("active"),t(".clicker").first().trigger("click"))}),t("a.previous_thumb").on("click",function(e2){e2.preventDefault(),t(".clicker.active").parent().prev().find(".clicker").length>0?t(".clicker.active").parent().prev().find(".clicker").trigger("click"):(t(".clicker.active").removeClass("active"),t(".clicker").last().trigger("click"))}),t(".product_sections--navigation").length){var n=t(".rc_container").innerHeight();o=t(".product_sections--navigation").offset().top+n+34,t(window).on("scroll",i),t(document).on("scroll",a),t(".product_sections--navigation a").on("click",function(e2){var o2,n2=this.hash,r2=t(this.hash);e2.preventDefault(),t(".product_sections--navigation a").blur(),t(".product_sections--navigation a.active").removeClass("active"),t(this).addClass("active"),console.log(r2.offset().top);var scrollTo=$(t(this).attr("href")).offset().top;t("body, html").animate({scrollTop:scrollTo+"px"},100)})}t("span.pq.left").each(function(){var e2=t(this).clone();e2.removeClass("pq left"),e2.addClass("pulledquote left"),t(this).parent().after(e2)}),t("span.pq.right").each(function(){var e2=t(this).clone();e2.removeClass("pq right"),e2.addClass("pulledquote right"),t(this).parent().before(e2)}),t(".product--wishlist_trigger").on("click",function(){document.querySelector("#wishlistbuttons a").click()}),t(".product_sections--testimonials").length&&t(".product_sections--testimonials_slider").slick({dots:!1,accessibility:!1,adaptiveHeight:!1,responsive:[{breakpoint:768,settings:{adaptiveHeight:!0}}]}),e.sidecartSettings.enable_sidecart&&t(".atc_cta--form").on("submit",function(o2){o2.preventDefault(),o2.stopImmediatePropagation();var a2=t(".atc_cta--form").serialize();RC.cart.add(a2,function(){e.sidecart.refresh(RC.sidePanel.open("#sidecart"))})}),t(".product--quantity_wrapper").on("click",".decrement, .increment",function(){var e2=t(this).hasClass("decrement")?-1:1,o2=parseInt(t(".product--quantity").val(),10);t(".product--quantity").val(o2+e2)}),t("#product_faqs").length&&t(".faq").on("click",function(){t(this).hasClass("active")?t(".faq.active").removeClass("active"):(t(".faq.active").removeClass("active"),t(this).addClass("active"))}),t(document).on("closed",".product_video--embed",function(e2){var o2,a2=t(e2.target).find("iframe");o2=a2.attr("src"),a2.attr("src",""),a2.attr("src",o2)});var r=setInterval(function(){!t("input.addtocart").hasClass("disabled")&&t("[data-product-form-select]").length&&t("input.addtocart").addClass("disabled").attr("disabled","disabled")},100);t("[data-image-variant]").on("click",function(){var e2=t(this).attr("data-image-variant"),o2=JSON.parse(e2);
1t("[data-add-to-wishlist]").show(),clearInterval(r),t("input.add.clearfix.addtocart").removeClass("disabled");var a2=(o2.price/100).toFixed(2);t("span.product-price").text("$ "+a2),o2.options.forEach(function(e3,a3){t('[data-product-form-select="option'+(a3+1)+'"]').val(e3).trigger("click"),t('[data-product-form-select-clone="option'+(a3+1)+'"]').val(o2.id).trigger("click");var i2=t('[data-discount-variant-id="'+o2.id+'"]').attr("value");t("[data-subscription-select]").val(i2)})}),t("[data-product-form-select]").change(function(){var e2=t(this).val(),o2=t(this).attr("data-product-form-select");t("[data-add-to-wishlist]").show(),clearInterval(r),t("input.add.clearfix.addtocart").removeClass("disabled"),t('[data-option="'+o2+'"]').val(e2).trigger("change")}),t("[data-add-to-wishlist]").hide()}}})(AMG,jQuery),AMG.sidecart=(function(e,t){var o={};o.sidecartSettings=e.sidecartSettings,o.enablePromo=e.enablePromo,o.enablePromoMessage=e.enablePromoMessage,o.promoType=e.promoType,o.promoProduct=e.promoProduct,o.promoCode=e.promoCode,o.promoSKU=e.promoSKU,o.promoId=e.promoId,o.promoSKUorId=e.promoSKUorId,o.promoThreshold=e.promoThreshold,o.promoEnd=e.promoEnd,o.havePromoItem=!1,o.haveSKUItem=!1,o.adjustTotal=!1,o.promoCollection=e.promoCollection,o.promoProductAvailable=e.promoProductAvailable;var a={},i=t("#sidecart-line-item").html(),n=t("#sidecart-promo-item").html(),r=!1;function s(s2){RC.cart.api.get(function(l2){var d2=l2.cart;if(d2&&d2.items){var u2={},em=!1,total=0,h2=!0;t(".sidecart--line_items").empty(),r=!1,d2.items=d2.items.sort(function(e2,t2){return e2.id===o.promoProduct?-1:0});for(var f2=0;f2<d2.items.length;f2++){var m2=d2.items[f2];if(m2.upsell){var v2=m2;d2.items.splice(f2,1),d2.items.push(v2)}if(d2.items[f2].id==30863921643594)var h2=!1}if(d2.items=d2.items.reverse(),d2&&d2.items&&d2.items.length){o.haveSKUItem=!1,o.adjustTotal=!1;for(var yt=0,yyt=0,g2=d2.items.length-1;g2>=0;g2--){var C2="$"+(d2.items[g2].price.unit/100).toFixed(2),b2="",_2=!0,y2=!1,yy=!1,w2=d2.items[g2].url.includes("selling_plan"),k="",F=100-d2.items[g2].price.unit/d2.items[g2].product.price*100;console.log(F),w2==1&&(k=F.toFixed()+".00% Off Auto renew"),d2.items[g2].product.variants[0].sku==o.promoSKU&&o.promoSKUorId=="promo_sku"&&(o.haveSKUItem=!0),d2.items[g2].id==o.promoId&&o.promoSKUorId=="promo_id"&&(o.haveSKUItem=!0),d2.items[g2].id==o.promoProduct?(b2=!0,_2="",o.adjustTotal=d2.items[g2].price.unit):(b2="",_2=!0),d2.items[g2].id==49434900231&&e.cacaoSpoonAvailable==="true"&&(y2=!0)&&(em=!0)&&(yt=d2.items[g2].quantity),d2.items[g2].id==40479063081034&&e.cacaoSpoonAvailable==="true"&&(yy=!0)&&(em=!0)&&(yyt=d2.items[g2].quantity),u2={id:d2.items[g2].id,key:d2.items[g2].key,sku:d2.items[g2].product.variants[0].sku,image:d2.items[g2].product.images[0].url,price:C2,handle:d2.items[g2].product.handle,discount:k,title:d2.items[g2].product.title,quantity:d2.items[g2].quantity,variant:d2.items[g2].variant_title,index:g2+1,upsell:!1,promoId:o.promoProduct,promoSKU:o.promoSKU,normal:_2,gift:b2,cacaoMask:y2,haiSerum:yy,thereIsNoSpoon:h2},console.log(u2),d2.items[g2].is_subscription&&(r=!0),d2.items[g2].upsell&&e.sidecartSettings.enable_upsells&&(u2.upsell={id:d2.items[g2].upsell.product.id,sku:d2.items[g2].product.sku,handle:d2.items[g2].upsell.handle,heading:d2.items[g2].upsell.heading,text:d2.items[g2].upsell.text,content:d2.items[g2].upsell.content,image:d2.items[g2].upsell.image,title:d2.items[g2].upsell.product.title,variant_title:d2.items[g2].upsell.product.variant_title,variant:d2.items[g2].upsell.product.variant_id,price:"$"+(d2.items[g2].upsell.product.price/100).toFixed(2)}),b2?(t(".sidecart__promo--remove").attr("data-id",u2.id).fadeIn(),t(".sidecart__promo__item").html(Mustache.render(n,u2)).fadeIn()):t(".sidecart--line_items").append(Mustache.render(i,u2))}total=yt+yyt,em==!0&&h2==!1?(console.log(total+"#########"),t('[data-id="30863921643594"]').find("input").attr("value",total),RC.cart.change({id:30863921643594,quantity:total})):em==!1&&h2==!1&&(t('[data-id="30863921643594"]').find(".line_item--remove").trigger("click"),RC.cart.change({id:30863921643594,quantity:0})),checkoutUrl=c(),t(".sidecart--total").text("$"+(d2.total_price/100).toFixed(2)),t(".sidecart--empty.visible, .sidecart--continue_shopping.visible").removeClass("visible"),t(".sidecart--checkout_btn:not(.visible), .sidecart--line_items:not(.visible), .sidecart--header_cart_items:not(.visible), .sidecart--continue_cart:not(.visible), .sidecart--secondary_close:not(.visible)").addClass("visible"),t(".sidecart--checkout_btn").attr("href",checkoutUrl),a.sidecartPromo&&a.sidecartPromo.fadeIn("fast")}else t(".sidecart--line_items.visible, .sidecart--continue_cart.visible, .sidecart--checkout_btn.visible, .sidecart--header_cart_items.visible, .sidecart--secondary_close.visible").removeClass("visible"),t(".sidecart--empty:not(.visible), .sidecart--continue_shopping:not(.visible)").addClass("visible"),a.sidecartPromo&&a.sidecartPromo.fadeOut("fast");o.enablePromo&&o.promoProductAvailable&&RC.cart.get(function(e2){p(e2)}),d2&&(t(".sidecart--count").text("("+d2.products_count+")"),t(".header--cart_count").text(d2.products_count)),typeof s2=="function"&&s2()}})}function c(){var e2=ENV.shop.shopify_domain.replace("https://",""),t2=Cookies.get("cart"),o2=ENV.customer?ENV.customer.id:"",a2=ENV.customer?ENV.customer.email:"",i2="/checkout";if(r){try{var n2=ga.getAll()[0].get("linkerParam")}catch(e3){n2=""}i2="https://checkout.rechargeapps.com/r/checkout?myshopify_domain="+e2+"&cart_token="+t2+"&"+n2+"&customer_id="+o2+"&customer_email="+a2}return i2}function l(e2,t2){RC.cart.change({id:e2,quantity:parseInt(t2,10)},function(e3){s()})}function d(e2){t(this).siblings("[data-update-cart]").addClass("active")}function u(e2){e2.preventDefault();var a2=t(this).closest(".sidecart--line_item"),i2=a2.find(".line_item--qty").val();if(i2==0){var n2=!1;a2.attr("data-id")==o.promoProduct&&(n2=!0),v(a2.attr("data-key"),a2.attr("data-id"),n2,parseInt(a2.find(".line_item--qty").val(),10)-1)}if(a2.attr("data-handle")==="free-cosmetic-spoon"){var r2=t('[data-handle="charcoal-cacao-mask"]');if(r2.length==0||parseInt(r2.find(".line_item--qty").val())<=i2)return!1}l(a2.attr("data-key"),i2)}var p=function(e2){!o.enablePromoMessage&&a.sidecartPromo&&a.sidecartPromo.fadeOut("fast"),f();var t2=(function(e3){var t3=Math.round(e3.total_price/100);return a.sidecart.find('[data-id="'+o.promoProduct+'"]').length>0&&(t3-=Math.round(o.adjustTotal/100)),t3})(e2);o.promoType==="threshold"&&b(t2),o.promoType==="promo_sku"&&y(t2)},f=function(){RC.cart.get(function(e2){_.find(e2.items,function(e3){return e3.id===o.promoProduct})&&RC.cart.change({id:o.promoProduct,quantity:1},function(e3){})})},m=function(e2,o2,a2){var i2=t(".sidecart--line_items").find('[data-id="'+e2+'"]'),n2=1;o2.isInteger&&(n2=o2),i2.length>0&&!a2?(n2=parseInt(i2.find(".js-sidecart-product-quantity").text(),10)+n2,l(e2,o2)):h(e2,n2,a2,!0)},v=function(e2,t2){var a2=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i2=arguments[3];i2||(i2=0),t2==o.promoProduct&&a2&&w(),l(e2,i2)},h=function(e2,o2,a2){arguments.length>3&&arguments[3]!==void 0&&arguments[3],arguments.length>4&&arguments[4]!==void 0&&arguments[4],RC.cart.add({id:e2,quantity:o2,properties:a2},function(){s(function(){t(".sidecart--line_items").scrollTop(0)})},function(e3){console.error(e3)})}
1,g=function(){RC.cart.get(function(e2){e2.items.forEach(function(e3){e3.properties&&e3.properties.Promo_Product&&e3.properties.Promo_Product==="true"&&e3.id!==o.promoProduct&&v(e3.id,e3.id,!1,0)})})},C=function(e2,o2){var a2=arguments.length>2&&arguments[2]!==void 0&&arguments[2];t(".sidecart__promo--remove").removeAttr("data-id","").fadeOut(),t(".sidecart__promo__item").fadeOut(),t(".sidecart__promo__item").empty(),RC.cart.get(function(e3){e3.items.forEach(function(e4){e4.properties&&e4.properties.Promo_Product&&e4.properties.Promo_Product==="true"&&v(e4.id,e4.id,a2,0)})})},b=function(e2){var t2=o.promoThreshold-e2,i2=a.sidecart.find('[data-id="'+o.promoProduct+'"]').length>0,n2=a.sidecart.find('[data-id="'+o.promoProduct+'"]').attr("data-id");g();var r2=sessionStorage.getItem("hasRemovedPromoProduct")==="1";t2>0?(C(n2),(i2||r2)&&a.sidecartPromoSuccess.fadeOut("fast",function(){return a.sidecartPromoDetails.fadeIn("fast")}),a.sidecartPromoProgress.css("width",e2/o.promoThreshold*100+"%"),a.sidecartPromoThreshold.text("$"+t2)):i2||r2?(r2&&a.sidecartPromoReadd.show(),!o.enablePromoMessage&&a.sidecartPromo&&a.sidecartPromo.fadeIn("fast"),a.sidecartPromoDetails.fadeOut("fast",function(){return a.sidecartPromoSuccess.fadeIn("fast")})):(a.sidecartPromoProgress.css("width","100%"),a.sidecartPromoThreshold.text("$0"),a.sidecartPromoDetails.fadeOut("fast",function(){return a.sidecartPromoSuccess.fadeIn("fast")}),m(o.promoProduct,1,{Promo_Product:"true"}))},y=function(e2){var t2=a.sidecart.find('[data-id="'+o.promoProduct+'"]').length>0,i2=a.sidecart.find('[data-id="'+o.promoProduct+'"]').attr("data-id"),n2=sessionStorage.getItem("hasRemovedPromoProduct")==="1";g(),o.haveSKUItem?!o.haveSKUItem||t2||n2?o.haveSKUItem&&(n2&&a.sidecartPromoReadd.show(),o.enablePromoMessage||a.sidecartPromo.fadeIn("fast"),a.sidecartPromoDetails.fadeOut("fast",function(){return a.sidecartPromoSuccess.fadeIn("fast")})):(a.sidecartPromoDetails.fadeOut("fast",function(){return a.sidecartPromoSuccess.fadeIn("fast")}),m(o.promoProduct,1,{Promo_Product:"true"})):(C(i2),(t2||n2)&&a.sidecartPromoSuccess.fadeOut("fast",function(){return a.sidecartPromoDetails.fadeIn("fast")}))},w=function(){sessionStorage.setItem("hasRemovedPromoProduct","1")};return{init:function(){Mustache.parse(i),Mustache.parse(n),a.body=t("body"),a.sidecart=t(".js-sidecart"),a.open=t(".js-open-sidecart"),a.close=t(".js-close-sidecart"),a.totalItems=t(".js-sidecart-total-items"),a.navTotalItems=t("#minicart-count"),a.emptyMessage=t(".js-sidecart-empty"),a.itemList=t(".js-sidecart-items"),a.variantSelect=t(".js-product-variant-selector"),a.sidecartTotal=t(".js-sidecart-total"),a.quantitySelect=t(".js-product-quantity-selector"),a.sidecartDrawer=t(".js-sidecart-drawer"),a.sidecartDrawerImage=t(".js-sidecart-drawer-image"),a.sidecartDrawerTitle=t(".js-sidecart-drawer-title"),a.openSidecartFromDrawer=t(".js-open-sidecart-from-drawer"),a.sidecartPromo=t(".js-sidecart-promo"),a.sidecartPromoDetails=t(".js-sidecart-promo-details"),a.sidecartPromoSuccess=t(".js-sidecart-promo-success"),a.sidecartPromoReadd=t(".js-sidecart-promo-re-add"),a.sidecartPromoTimer=t(".js-sidecart-promo-timer"),a.sidecartPromoThreshold=t(".js-sidecart-promo-threshold"),a.sidecartPromoProgress=t(".js-sidecart-promo-progress"),a.checkoutBtn=t('button[name="checkout"]'),RC.sidePanel.init(".header--cart_link","#sidecart"),s(function(){RC.utils.urlHash()=="cart"&&RC.sidePanel.open("#sidecart")}),t(".side_panel--footer").on("click",".sidecart--checkout_btn.bold_clone",function(e2){RC.sidePanel.close()}),t(".sidecart__promo--remove").click(function(e2){e2.preventDefault();var o2=t(this).attr("data-id");o2&&C(o2,o2,!0)}),t(".sidecart--line_items").on("click","[data-update-cart]",u),t(".sidecart--line_items").on("click",".line_item--remove",function(e2){var o2=t(this).closest(".sidecart--line_item");e2.preventDefault(),v(o2.attr("data-key"),o2.attr("data-id"),!0,0)}),t(".sidecart--line_items").on("input",".line_item--qty",d),t(".sidecart--line_items").on("click",".line_item--increment",function(e2){e2.preventDefault();var o2=t(this).closest(".sidecart--line_item"),a2=o2.find(".line_item--qty").val();if(o2.attr("data-handle")==="free-cosmetic-spoon"){var i2=t('[data-handle="charcoal-cacao-mask"]'),ii=t('[data-handle="smoothing-hair-serumn"]');if(i2.length==0||ii.length==0||parseInt(i2.find(".line_item--qty").val())+parseInt(ii.find(".line_item--qty").val())<=a2)return!1}l(o2.attr("data-key"),parseInt(a2,10)+1)}),t(".sidecart--line_items").on("click",".line_item--decrement",function(e2){var a2=t(this).closest(".sidecart--line_item");e2.preventDefault();var i2=!1;a2.attr("data-id")==o.promoProduct&&(i2=!0),v(a2.attr("data-key"),a2.attr("data-id"),i2,parseInt(a2.find(".line_item--qty").val(),10)-1)}),t(".sidecart--line_items").on("click",".upsell--atc",function(e2){var o2,a2=t(this).closest(".sidecart--line_item_upsell");e2.preventDefault(),o2=a2.attr("data-id"),RC.cart.add({id:o2,quantity:1},function(){s(function(){t(".sidecart--line_items").scrollTop(0)})},function(e3){console.error(e3)})}),a.sidecartPromoReadd.on("click",function(){sessionStorage.removeItem("hasRemovedPromoProduct"),a.sidecartPromoReadd.fadeOut("fast"),m(o.promoProduct,1,{Promo_Product:"true"})})},refresh:s,checkoutUrl:c,rechargeStatus:r}})(AMG,jQuery),(function(e,t){var o={},a=function(e2){$toggle=o.accordion.filter('[data-accordion-toggle="'+e2+'"]'),$content=t('[data-accordion-content="'+e2+'"]'),$toggle.addClass("active").attr("aria-expanded","true"),$content.slideDown("slow").attr("aria-hidden","false")},i=function(e2,a2){$toggle=o.accordion.filter('[data-accordion-toggle="'+e2+'"]'),$content=t('[data-accordion-content="'+e2+'"]'),$toggle.removeClass("active").attr("aria-expanded","fal
1se"),a2?$content.hide():$content.slideUp("slow"),$content.attr("aria-hidden","true")};e.init=function(){o.accordion=t(".js-accordion"),o.accordion.each(function(){var e2=t(this);$content=t("#"+e2.data("accordion-toggle")),e2.hasClass("active")||i(e2.data("accordion-toggle"),!0),e2.attr("aria-controls",e2.data("accordion-toggle")).attr("aria-expanded","false"),$content.attr("aria-hidden","true")}),o.accordion.on("click",function(e2){$toggle=t(e2.currentTarget),e2.preventDefault(),$toggle.hasClass("active")?i($toggle.data("accordion-toggle")):a($toggle.data("accordion-toggle"))})},e.open=a,e.close=i})(window.Accordion=window.Accordion||{},jQuery),(function(e,t){e.init=function(){t(document).on("click",".js-bs-add-to-cart",function(e2){var o=t(e2.currentTarget);e2.preventDefault(),RC.cart.add({id:o.data("product-id"),quantity:1},function(){AMG.sidecart.refresh(RC.sidePanel.open("#sidecart"))})}),t(document).on("click",".js-bs-shop",function(e2){var o=t(e2.currentTarget);e2.preventDefault();var a="/collections/"+o.data("product-collection")+o.data("product-url");window.location.href=a})}})(window.BestSellers=window.BestSellers||{},jQuery),(function(e,t){var o={},a=function(e2){t(e2.currentTarget).siblings("[data-update-cart]").addClass("active")},i=function(e2){e2.preventDefault();var a2=t(e2.currentTarget);a2.removeClass("active"),a2.siblings("[data-updating-cart]").addClass("active"),o.cartForm.submit()};e.init=function(){o.cartForm=t("#cartform"),o.lineItemControl=t("[data-line-item-control]"),o.lineItemInput=t("[data-line-item-input]"),o.updateCartLink=t("[data-update-cart]"),o.lineItemControl.on("click",function(e2){(function(e3){var o2=t(e3.currentTarget),a2=o2.attr("line-item-id"),i2=o2.attr("data-line-item-control"),n=t("[data-line-item-input="+a2+"]");i2==="increment"?n.val(function(e4,t2){return++t2}):i2==="decrement"&&n.val(function(e4,t2){return t2==0?0:--t2})})(e2),a(e2)}),o.lineItemInput.on("input",a),o.updateCartLink.on("click",i)}})(window.CartPage=window.CartPage||{},jQuery),(function(e,t){var o={};e.init=function(){o.carousel=t(".js-collections-carousel"),o.carousel.slick({slidestoShow:1,dots:!0,arrows:!1,infinite:!0})}})(window.CollectionsCarousel=window.CollectionsCarousel||{},jQuery),(function(e,t){var o={};e.init=function(){o.productCount=t(".js-mega-collection-total-products"),o.products=t(".js-collections-product"),o.productCount.text(o.products.length+" Items")}})(window.CollectionsUtil=window.CollectionsUtil||{},jQuery),(function(e,t){$checkbox=t("[data-cart-spoon-checkbox]"),$spoonLineItem=t("#div_30863921643594");var o=function(e2,ee,o2){ee==""?e2==""?(console.log(1111),o2.val(0),t("#cartform").submit()):(console.log(2222),o2.val(e2.val())):e2==""?(console.log(3333),o2.val(ee.val())):(console.log(44444),o2.val(parseInt(e2.val())+parseInt(ee.val())))};if($spoonLineItem.length>0){var a="",aa="";if(t("#div_49434900231").length>0)var a=t("#div_49434900231").find('input[type="number"]');if(t("#div_40479063081034").length>0)var aa=t("#div_40479063081034").find('input[type="number"]');var i=$spoonLineItem.find('input[type="number"]');o(a,aa,i),i.on("change",function(){o(a,aa,i)}),a!=""&&a.on("change",function(){o(a,aa,i)}),aa!=""&&aa.on("change",function(){o(a,aa,i)})}e.addSpoon=function(e2){if(!(t('[data-id="30863921643594"]').length>0)){console.log(11111111);var total=0,x=0,y=0;if(t('[data-id="49434900231"]').length>0)var x=t('[data-id="49434900231"]').find("input").val();if(t('[data-id="40479063081034"]').length>0)var y=t('[data-id="40479063081034"]').find("input").val();total=parseInt(x)+parseInt(y),t('[data-id="49434900231"]').length>0||t('[data-id="40479063081034"]').length>0?a={quantity:total,id:30863921643594}:a={quantity:o2?parseInt($checkbox.attr("data-quantity")):e2,id:30863921643594};var o2=window.location.pathname.includes("cart");RC.cart.add(a,function(){o2?location.reload():AMG.sidecart.refresh(RC.sidePanel.open("#sidecart"))},function(e3){console.log("error adding:",e3),t("[data-cart-spoon-checkbox]").html("<label>Sorry, but the spoons are currently out of stock</label>")})}},$checkbox.one("click",e.addSpoon)})(window.FreeSpoon=window.FreeSpoon||{},jQuery),(function(e,t){"use strict";var o={},a=bodyScrollLock.disableBodyScroll,i=bodyScrollLock.enableBodyScroll,n=function(){var e2=document.querySelector(".js-gift-note-modal");o.giftNoteForm.removeClass("is-hidden"),o.giftNoteSuccess.removeClass("is-active"),o.modal.addClass("is-active"),o.overlay.addClass("is-active"),a(e2)},r=function(){var e2=document.querySelector(".js-gift-note-modal");o.modal.removeClass("is-active"),o.overlay.removeClass("is-active"),i(e2),o.giftNote==""&&(o.openModal.attr("checked",!1),o.giftNoteLabel.removeClass("is-active"))},s=function(e2){t(e2.currentTarget).hasClass("is-active")?(o.giftNoteLabel.removeClass("is-active"),c(),o.giftNoteLabelSpan.html("This is a gift. Add a note to this order."),o.editNote.removeClass("is-active")):o.openModal.trigger("change")},c=function(){t.post("/cart/update.js",{attributes:{"Gift Note":null}})};e.init=function(){o.openModal=t(".js-add-gift-note"),o.closeModal=t(".js-modal-close, .bva-overlay"),o.modal=t(".js-gift-note-modal"),o.giftNote=o.modal.find("textarea"),o.editNote=t(".js-edit-note"),o.giftNoteForm=t(".js-gift-note-form"),o.giftNoteLabel=t(".js-gift-note-label"),o.giftNoteLabelSpan=t(".js-gift-note-label-span"),o.giftNoteSuccess=t(".js-gift-note-success"),o.overlay=t(".bva-overlay"),o.giftNoteLabel.on("click",
1s),o.openModal.on("change",n),o.giftNoteForm.on("submit",function(e2){var a2;e2.preventDefault(),a2=o.giftNote.val(),t.post("/cart/update.js",{attributes:{"Gift Note":a2}}),o.giftNoteForm.addClass("is-hidden"),o.giftNoteSuccess.addClass("is-active"),o.giftNoteLabel.addClass("is-active"),o.giftNoteLabelSpan.html("This order contains a gift note."),o.editNote.addClass("is-active")}),o.closeModal.on("click",r),o.editNote.on("click",function(e2){e2.preventDefault(),n()})}})(window.GiftNote=window.GiftNote||{},jQuery),(function(e,t){var o={};e.init=function(){o.slider=t(".js-shop-instagram-slider"),o.slider.slick({slidesToShow:4,accessibility:!1,responsive:[{breakpoint:680,settings:{centerMode:!0,slidesToShow:1,arrows:!1}},{breakpoint:960,settings:{centerMode:!0,slidesToShow:3,arrows:!1}}]})}})(window.InstagramSlider=window.InstagramSlider||{},jQuery),(function(e,t){"use strict";var o={};e.show=function(e2){var a=t('[data-modal="'+e2+'"]');o.body.attr("data-active-modal",e2),a.fadeIn(300,function(){return a.trigger("modal-opened")}).addClass("show")},e.hide=function(e2){var a=t('[data-modal="'+e2+'"]');o.body.removeAttr("data-active-modal"),a.fadeOut(300,function(){return a.trigger("modal-closed").removeClass("show")})},e.init=function(){o.body=t("body"),o.modal=t("[data-modal]"),o.modalShow=t("[data-open-modal]"),o.modalHide=t("[data-close-modal]"),o.modalShow.on("click",function(e2){e2.preventDefault(),window.Modal.show(t(this).data("open-modal"))}),o.modalHide.on("click",function(e2){e2.preventDefault(),window.Modal.hide(t(this).data("close-modal"))})}})(window.Modal=window.Modal||{},jQuery),(function(e,t){var o=bodyScrollLock.disableBodyScroll,a=bodyScrollLock.enableBodyScroll,i={},n=void parseInt(Cookies.get("referralCount")),r=!1,s=function(e2){errorMessage=e2,i.formError.html(errorMessage),i.formError.addClass("is-active"),i.sendSpan.removeClass("is-hidden"),i.loading.removeClass("is-active")},c=function(e2){var t2=document.querySelector(".js-samples-modal");i.modal.removeClass("is-active"),i.overlay.removeClass("is-active"),a(t2)},l=function(){(Cookies.get("referralCount")===void 0||isNaN(Cookies.get("referralCount")))&&Cookies.set("referralCount",0)};e.init=function(){var e2;i.form=t(".js-growsurf-form"),i.firstName=t(".js-first-name"),i.lastName=t(".js-last-name"),i.email=t(".js-email"),i.referredBy=t(".js-referred-by"),i.formError=t(".js-samples-error"),i.modal=t(".js-samples-modal"),i.modalEntry=t(".js-samples-modal-entry"),i.overlay=t(".js-bva-overlay"),i.modalClose=t(".js-modal-close"),i.sendSpan=t(".js-samples-send"),i.loading=t(".js-samples-loading"),i.form.on("submit",function(e3){e3.preventDefault(),(function(){if(r)return!1;l(),i.sendSpan.addClass("is-hidden"),i.loading.addClass("is-active");var e4={firstName:i.firstName.val(),lastName:i.lastName.val(),email:encodeURIComponent(i.email.val()),referredBy:""+n};if(e4.firstName==""||e4.lastName==""||e4.email=="")s("Please fill out every field");else if(parseInt(Cookies.get("referralCount"))>2)s("Oops! Looks like you have already referred three friends");else{r=!0;var a2="https://growsurf-production.herokuapp.com/friends?first_name="+e4.firstName+"&last_name="+e4.lastName+"&email="+e4.email+"&referred_by="+e4.referredBy;console.log(e4),t.ajax({type:"GET",url:encodeURI(a2),headers:{"Access-Control-Allow-Origin":"*"},success:function(e5){var t2,a3;e5.status==="failure"?s(e5.message):(t2=document.querySelector(".js-samples-modal"),(a3=parseInt(Cookies.get("referralCount"))+1)>2?i.modalEntry.html('\n			<h3 class="samples__modal-headline">Thank you!</h3>\n			<p>Your form was successfully submitted.</p>\n			<a class="samples__modal-return" href="/collections/all">Click Here to Return to Our Shop</a>\n	'):i.modalEntry.html('\n			<h3 class="samples__modal-headline">Sent!</h3>\n			<button class="samples__modal-close js-modal-close">Add Another Friend</button>\n			<a class="samples__modal-return" href="/collections/all">Click Here to Return to Our Shop</a>\n	'),i.modal.addClass("is-active"),i.overlay.addClass("is-active"),o(t2),i.firstName.val(""),i.lastName.val(""),i.email.val(""),i.sendSpan.removeClass("is-hidden"),i.loading.removeClass("is-active"),i.formError.removeClass("is-active"),Cookies.set("referralCount",a3))},complete:function(){r=!1}})}})()}),t("body").on("click",".js-modal-close",c),i.overlay.on("click",c),l(),e2={},window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t2,o2,a2){e2[o2]=a2}),n=e2.email}})(window.Samples=window.Samples||{},jQuery),(function(e,t){var o=jQuery("body");e.lock=function(){o.addClass("locked")},e.unlock=function(){o.removeClass("locked")}})(window.Scroll=window.Scroll||{}),(function(e,t){var o=t(".js-search-form"),a=t(".js-search"),i=t(".js-search-results"),n=t(".js-rotate-search"),r=t(".js-search-placeholder"),s=t(".js-search-close"),c=t(".js-results-grid"),l=t(".js-results-count"),d=n.data("rotate").split(","),u=!1,currentIndex=-1,p=function(e2,o2){c.append('<div class="js-placeholder" data-index="'+o2+'"></div>'),t.get("/products/"+e2+"?view=search-item",function(e3){c.find(".js-placeholder[data-index="+o2+"]").replaceWith(e3),t(".grid-item.is-hidden").removeClass("is-hidden")})},f=function(e2){var tTag=e2.tags.find(function(e3){return e3.indexOf("search-type:")>-1}),html="";return html+='<a class="grid-item grid-item-wide" href="/products/'+e2.handle+'" title="'+e2.title+'" tabindex="0">',html+='<div class="grid-image-wrapper"><img src="'+e2.product_image+'" alt="'+e2.title+'" class="grid-image" /></div>',html+='<div class="grid-info"><p class="grid-title">'+e2.title+"</p>",tTag!==void 0&&(html+='<p class="grid-short-info">'+tTag.split(":")[1]+"</p>"),html+="</div></a>",html},highlightItem=function(index){var items=i.find("a");if(items.removeClass("is-active").attr("aria-selected","false"),index>=0&&index<items.length){var current=items.eq(index);current.addClass("is-active").attr("aria-selected","true"),current[0].scrollIntoView({block:"nearest"})}},m=function(e2,type){if(e2.hits!==void 0){var html="",unique=(function(arr){var out=[];return arr.forEach(function(item){out.find(function(x){return x.id===item.id})||out.push(item)}),out})(e2.hits),count=unique.length;if(type=="grid"){var text=count>1?count+" results":count+" result";l.html(text).parent().fadeIn(300)}for(var sIndex=0;sIndex<count;sIndex++)if(type=="grid")p(unique[sIndex].handle,sIndex);else if(html+=f(unique[sIndex]),sIndex>=4||sIndex>=count-1){html+='<div class="search-prod-footer">Press Enter to See All Results</div>',i.html(html),i.prev().hide();break}currentIndex=-1}},v=function(query,type){query===""?h(!0):u&&u.search({query:query}
1,function(err,res){if(err)throw err;m(res,type)})},h=function(show){show?(r.removeClass("is-hidden"),i.prev().show(),i.html("")):r.addClass("is-hidden")},g=function(open){open?(o.addClass("is-active"),a.attr("aria-expanded","true"),t(window).innerWidth()<846&&Scroll.lock(),h(!1)):(Scroll.unlock(),o.removeClass("is-active"),a.attr("aria-expanded","false"),a.val()||h(!0))};e.init=function(){var client;a.on("change keyup",function(){var val=t(this).val();val?(v(val,"list"),h(!1)):h(!0)}),a.on("keydown",function(e2){var items=i.find("a");if(items.length)switch(e2.key){case"ArrowDown":e2.preventDefault(),currentIndex=(currentIndex+1)%items.length,highlightItem(currentIndex);break;case"ArrowUp":e2.preventDefault(),currentIndex=(currentIndex-1+items.length)%items.length,highlightItem(currentIndex);break;case"Enter":currentIndex>=0&&(e2.preventDefault(),window.location.href=items.eq(currentIndex).attr("href"));break;case"Escape":g(!1),a.blur();break}}),i.on("mouseenter","a",function(){currentIndex=t(this).index(),highlightItem(currentIndex)}),a.on("focusin",function(){g(!0)}),t(document).on("mousedown",function(e2){t(e2.target).closest(".js-search-form").length||g(!1)}),o.on("focusout",function(){setTimeout(function(){t(document.activeElement).closest(".js-search-form").length||g(!1)},0)}),s.on("click",function(){return g(!1),!1}),t(".search-results").on("mousedown touchstart",function(e2){var link=t(e2.target).closest("a");link.attr("href")&&(window.location.href=link.attr("href"))}),(function loop(idx){idx=idx===void 0||d[idx]===void 0?0:idx,n.addClass("is-hidden"),setTimeout(function(){n.text(d[idx]).removeClass("is-hidden"),setTimeout(function(){loop(idx+1)},3e3)},500)})(),client=algoliasearch("5YZQ1X6FQ3","445ac15cba46e2455e0d4e7b606a4bbd"),u=client.initIndex("shopify_products"),window.location.pathname==="/search"&&window.location.search!==""&&v(window.location.search.split("=")[1],"grid")}})(window.Search=window.Search||{},jQuery),(function(e,t){var o={};e.init=function(){o.select=t(".js-select-nav"),o.select.change(function(e2){window.location.href=t(e2.currentTarget).val()})}})(window.SelectNav=window.SelectNav||{},jQuery),(function(e,t){var o={};e.init=function(){o.slider=t(".js-shop-hero"),o.slider.slick({arrows:!1,dots:!0,accessibility:!1})}})(window.ShopHero=window.ShopHero||{},jQuery),(function(e,t){var o=bodyScrollLock.disableBodyScroll,a=bodyScrollLock.enableBodyScroll,i={},n=function(e2){var a2=t(e2.currentTarget).attr("data-handle");t.get("/products/"+a2+"?view=subscription-modal").done(function(e3){i.overlay.addClass("is-active"),i.modalEntry.html(e3),i.subscriptionModal.addClass("is-active");var t2=document.querySelector(".js-subscription-modal");o(t2)}).fail(function(e3){console.error("product get fail",e3)})},r=function(e2){i.overlay.removeClass("is-active"),i.subscriptionModal.removeClass("is-active");var t2=document.querySelector(".js-subscription-modal");a(t2)};e.init=function(){i.overlay=t(".bva-overlay"),i.openModal=t(".js-open-subscription-modal"),i.modalEntry=t(".js-subscription-modal-entry"),i.subscriptionModal=t(".js-subscription-modal"),i.closeModal=t(".js-modal-close"),i.openModal.on("click",n),t(document).on("submit",".product-cta-form",function(e2){e2.preventDefault(),e2.stopImmediatePropagation(),window.selectionMade?(function(e3){if(AMG.sidecartSettings.enable_sidecart){var o2=t
1(e3).serialize();RC.cart.add(o2,function(){r(),window.location.href.indexOf("cart")>-1?(window.scrollTo(0,0),location.reload()):AMG.sidecart.refresh(RC.sidePanel.open("#sidecart"))})}})(this):t(".product-variants-quantity").addClass("is-error")}),t(document).on("click",".js-modal-close",r),i.overlay.on("click",r),t(document).on("click",".increment",function(e2){e2.preventDefault(),console.log(t(".recharge-modal-input").attr("value"));var o2=parseInt(t(".atc_cta--quantity").attr("value"))+1;t(".atc_cta--quantity").attr("value",o2)}),t(document).on("click",".decrement",function(e2){e2.preventDefault();var o2=parseInt(t(".recharge-modal-input").attr("value"))-1;o2===0&&(o2=1),t(".atc_cta--quantity").attr("value",o2)})}})(window.SubscriptionModal=window.SubscriptionModal||{},jQuery),(function(e,t){var o={},a=[],i=function(e2){var o2=t(e2.currentTarget),i2=o2.attr("data-variant-id");return o2.toggleClass("is-active"),a.indexOf(i2)!=-1?a.splice(a.indexOf(i2),1):a.push(i2),a},n=function(e2){var t2="/",o2="?";e2.map(function(e3,a2){return a2>0&&(o2="&"),t2+=o2+"id[]="+e3,e3}),e2.length?window.location.href="https://shop.annmariegianni.com/cart/add"+t2:alert("Please select a product!")},r=function(){o.upsellProduct.not(".is-active, .is-selected").trigger("click"),setTimeout(function(){n(a)},600)};e.init=function(){o.upsellProduct=t(".js-upsell-product"),o.addItems=t(".js-upsell-add"),o.addAll=t(".js-upsell-add-all"),o.upsellProduct.on("click",i),o.addItems.on("click",function(){return n(a)}),o.addAll.on("click",r)}})(window.Upsell=window.Upsell||{},jQuery),(function(e,t){e.init=function(){}})(window.CrossSell=window.CrossSell||{},jQuery),AMG.router=(function(e,t){return{init:function(){e.nav.init(),!t('body[data-template="cart"]').length&&e.sidecartSettings.enable_sidecart&&e.sidecart.init(),t(".collection_grid--product").length&&e.collection.init(),(t('body[data-template="product"]').length||t('body[data-template="product.product-with-top-select"]').length||t('body[data-template="product.bundle-builder"]').length)&&e.product.init(),(t(".account").length||t(".customersorder").length||t(".iwishWrapper").length||t("#ReCharge").length)&&e.account.init()}}})(AMG,jQuery),AMG.router.init();
2//# sourceMappingURL=/cdn/shop/t/269/assets/bvaccel.js.map?v=18681095444050304261787091263

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.