PageSourceSearch

https://www.frogsleap.com/wp-content/themes/commerce7/assets/javascript/theme.min.js?ver=1786950380

js frogsleap.com collected 2026-09-25 19:11:39 UTC 46,088 bytes, 2 lines download raw bytes

1(()=>{var e={108:()=>{c7={hooks:{action:{},filter:{}},addAction:function(e,t,o,n){c7.addHook("action",e,t,o,n)},addFilter:function(e,t,o,n){c7.addHook("filter",e,t,o,n)},doAction:function(e){c7.doHook("action",e,arguments)},applyFilters:function(e){return c7.doHook("filter",e,arguments)},removeAction:function(e,t){c7.removeHook("action",e,t)},removeFilter:function(e,t,o){c7.removeHook("filter",e,t,o)},addHook:function(e,t,o,n,i){null==c7.hooks[e][t]&&(c7.hooks[e][t]=[]);var r=c7.hooks[e][t];null==i&&(i=t+"_"+r.length),null==n&&(n=10),c7.hooks[e][t].push({tag:i,callable:o,priority:n})},doHook:function(e,t,o){if(o=Array.prototype.slice.call(o,1),null!=c7.hooks[e][t]){var n,i=c7.hooks[e][t];i.sort((function(e,t){return e.priority-t.priority}));for(var r=0;r<i.length;r++)"function"!=typeof(n=i[r].callable)&&(n=window[n]),"action"==e?n.apply(null,o):o[0]=n.apply(null,o)}if("filter"==e)return o[0]},removeHook:function(e,t,o,n){if(null!=c7.hooks[e][t])for(var i=c7.hooks[e][t],r=i.length-1;r>=0;r--)null!=n&&n!=i[r].tag||null!=o&&o!=i[r].priority||i.splice(r,1)}};const e=()=>{const e=jQuery(window).height(),t=jQuery("body").height(),o=jQuery("footer").height();jQuery("footer").hasClass("sticky")?e<t+o&&jQuery("footer").removeClass("sticky"):e>t&&jQuery("footer").addClass("sticky")};(()=>{const t=document.querySelectorAll(".c7-product-collection, .c7-personalization");t.length&&t.forEach((t=>{new MutationObserver(((o,n)=>{document.querySelector(".c7-product-collection__products")&&(n.disconnect(),c7.doAction("c7_collection_products_rendered",t),e())})).observe(t,{childList:!0,subtree:!0})}))})(),(()=>{const t=document.getElementById("c7-content");t&&new MutationObserver(((o,n)=>{n.disconnect(),c7.doAction("c7_product_detail_rendered",t),e()})).observe(t,{childList:!0,subtree:!0})})(),(()=>{const t=document.getElementById("c7-content");t&&new MutationObserver(((o,n)=>{document.querySelector(".c7-product-collection__products")&&(n.disconnect(),c7.doAction("c7_collection_products_rendered",t)),e()})).observe(t,{childList:!0,subtree:!0})})(),(()=>{const e=document.getElementById("c7-content");e&&new MutationObserver(((t,o)=>{document.querySelector(".c7-product__image")&&(o.disconnect(),c7.doAction("c7_products_detail_rendered",e))})).observe(e,{childList:!0,subtree:!0})})(),(()=>{const e=document.getElementById("c7-content");e&&new MutationObserver(((t,o)=>{document.querySelector(".c7-product__add-to-cart__form")&&document.querySelector(".show-popup-gift-card")&&(o.disconnect(),c7.doAction("c7_products_gift_card_rendered",e))})).observe(e,{childList:!0,subtree:!0})})(),(()=>{const e=document.getElementById("c7-content");e&&new MutationObserver(((t,o)=>{(document.querySelector(".c7-club-list")||document.querySelector(".c7-cart__content"))&&(o.disconnect(),c7.doAction("c7_page_rendered",e))})).observe(e,{childList:!0,subtree:!0})})(),(()=>{const e=document.querySelector("body");e&&new MutationObserver(((t,o)=>{document.querySelector("#c7-side-cart")&&(o.disconnect(),c7.doAction("c7_side_cart_rendered",e))})).observe(e,{childList:!0,subtree:!0})})(),(()=>{const t=document.getElementById("c7-content");t&&new MutationObserver(((o,n)=>{document.querySelector(".c7-account-order-detail")&&(n.disconnect(),c7.doAction("c7_thankyou_rendered",t)),e()})).observe(t,{childList:!0,subtree:!0})})()}},t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}(()=>{"use strict";o(108);const e=(e,t=!1)=>{jQuery(e).find(".c7-product--vivino").each(((e,t)=>{((e,t,o,n)=>{if(!e||!t)return!1;const i=e.match(/\/w\/(\d+)\??/);if(!i)return!1;const r=`https://api.vivino.com/wines/${i[1]}`;jQuery.ajax({type:"GET",url:theme_object.ajax_url,data:{action:"get_vivino_score",vivinoUrl:r,vintage:t},async:!0,success:function(t){t&&t.ratings_average&&(o.innerHTML=((e,t,o="",n)=>`<div class="rating-container">\n        <div class="stars-container">\n            ${Array(5).fill().map(((e,o)=>`<i class="star star-under icon-star">\n            <i class="star star-over icon-star" style="width: ${o<=t-1?100:o<=t?parseInt(100*t%100):0}%"></i>\n        </i>`)).join("")}\n        </div>\n        <div class="rating-score">${t} | ${e} Ratings&nbsp;On&nbsp;<a target="_blank" rel="noopener noreferrer" href="${o}">
1Vivino.com</a></div>\n    </div>`)(t.ratings_count,t.ratings_average,e),jQuery(o).addClass("show"))},error:function(e){console.log(e)}})})(jQuery(t).data("vivino"),jQuery(t).data("vintage"),t)}))};function t(){const t=".wine-load-more",o=".load-more-waiting";this.init=()=>{c7.addAction("c7_collection_products_rendered",(t=>{i(),e(t),r(),n()}))};const n=()=>{jQuery(".c7-product__add-to-cart__price span.c7-sr-only + span,.c7-product__add-to-cart__price .c7-price--discounted").each((function(e,t){let o=jQuery(t).text();jQuery(t).text(o.replace(".00","").replace("Was","").replace("Now",""))}))},i=()=>{jQuery(document).on("click",".c7-show-modal",(function(){s(jQuery(this))})),jQuery(document).on("click",".c7-product-popup-close",(function(){d()})),jQuery(document).on("click",".c7-product-purchase-btn",(function(){l(jQuery(this))})),jQuery(document).on("click",t,(function(){u()}))},r=()=>{c(),jQuery(".c7-product-collection .loader").hide(),u(),setTimeout((()=>{p()}),1e3)},c=()=>{jQuery(".filter-item--content li a.active").closest(".filter-item--content").prev().addClass("open"),jQuery(".filter-item--content li a.active").closest(".filter-item--content").show()},a=e=>{"open"===e?(document.querySelector(o).classList.add("loading"),jQuery(".load-more-waiting .loader").show()):(document.querySelector(o).classList.remove("loading"),jQuery(".load-more-waiting .loader").hide())},s=e=>{const t=jQuery(e).data("slug");jQuery.ajax({type:"GET",url:theme_object.ajax_url,data:{action:"get_product_details",slug:t},beforeSend:function(){a("open")},success:function(e){a("close"),e.success&&(jQuery("body").append(e.html),jQuery(".owl-carousel").length&&(jQuery(".owl-carousel").owlCarousel({autoplay:!0,autoplayTimeout:7e3,dots:!0,items:1,loop:!0,nav:!1,smartSpeed:400}),jQuery(".c7-product-popup .c7-product-popup-images").click((function(){jQuery(".c7-product-popup-images.owl-carousel").trigger("next.owl.carousel")}))))},error:function(e){console.log(e)}})},d=()=>{jQuery(".c7-product-popup").remove()},l=e=>{const t=jQuery(e).data("target"),o=jQuery(`#${t}`),n=jQuery(e).parents(".c7-product-purchase").find(".c7-product-purchase-quantity").val();jQuery(o).val(n),jQuery(o).parents(".c7-product__add-to-cart__form").find(".c7-btn").trigger("click"),d()},u=()=>{jQuery(".c7-product:not(.display)").map((function(e){e<8&&jQuery(this).addClass("display")}));const e=jQuery(".c7-product.display").length,o=jQuery(".c7-product").length;jQuery(".show-counts").html(`${e}`),jQuery(".total-counts").html(`${o}`),o&&jQuery(".info-container").show(),o<=e?jQuery(t).hide():jQuery(t).show()},p=()=>{var e;const t=window.location.pathname.match(/[^/]+(?=\/?$)/),o=t&&t.length>0?t[0]:null;e="shop"!=o?o:jQuery(".filter-shop li").first().data("collection");const n=jQuery(".c7-product"),i=jQuery(".shop-callouts .callout");n.length&&i.each((function(t){const o=jQuery(this).data("collection"),i=jQuery(this).clone();i.find("img.lazyloading").removeClass("lazyloading").addClass("lazyloaded");const r=jQuery(this).data("seq");o.forEach((function(t){t.value==e&&(n.length>=r?1==r?jQuery(i).insertBefore(`.c7-product-collection__product-list >div:nth-child(${r})`):jQuery(i).insertAfter(`.c7-product-collection__product-list >div:nth-child(${r-1})`):jQuery(i).appendTo(".c7-product-collection__product-list"))}))})),jQuery(".shop-callouts .callout").each((function(){const t=jQuery(this).data("collection");var o=jQuery(this),n=!1;t.forEach((function(t){t.value==e&&(n=!0)})),n?o.show():o.hide()}))}}function n(){this.init=()=>{c7.addAction("c7_products_detail_rendered",(s=>{jQuery(".c7-product__image ul").addClass("owl-carousel owl-theme"),jQuery(".c7-product__image ul.owl-carousel").owlCarousel({loop:!0,nav:!1,dots:!0,items:1});const d=document.querySelector(".product-cart-sticky"),l=document.querySelector(".sticky-show");d&&l&&jQuery(window).scroll((function(){jQuery(this).scrollTop()>=jQuery(".sticky-show").offset().top?d.classList.add("enabled"):d.classList.remove("enabled")})),o(),jQuery(window).on("resize",(()=>o())),t(),c(),r();const u=n();i(u),a(),e()})),c7.addAction("c7_products_gift_card_rendered",(e=>{jQuery(".c7-product__add-to-cart__price").after(jQuery(".gift-card-model")),jQuery(".model-body").append(jQuery(".c7-product__add-to-cart__giftcard")),jQuery(".model-body").append('<button type="button" class="c7-btn c7-btn--primary checkrequire-add-to-card">add to cart</button>'),jQuery(".model-body").append(jQuery(".c7-product__add-to-cart__form")),jQuery(".show-popup-gift-card").click((()=>{jQuery(".gift-card-model").toggleClass("open")})),jQuery(".gift-card-model .close").click((function(){jQuery(this).closest(".gift-card-model").removeClass("open")})),jQuery("#c7-giftMessage-group").removeClass("c7--hidden"),jQuery(".c7-product__add-to-cart__giftcard button").addClass("c7--hidden"),jQuery('textarea[name="giftMessage"]').before(jQuery(".text-note")),jQuery('.gift-card-model textarea[name="giftMessage"]').attr("placeholder","Your message is required"),jQuery(".gift-card-model .checkrequire-add-to-card").click((()=>{jQuery(".your-message-is-required").remove(),""!=jQuery('.gift-card-model input[name="email"]').val()&&""!=jQuery('.gift-card-model textarea[name="giftMessage"]').val()?(jQuery(".gift-card-model .c7-product__add-to-cart__form button").click(),jQuery(".gift-card-model .close").click()):""==jQuery('.gift-card-model textarea[name="giftMessage"]').val()?jQuery('.gift-card-model textarea[name="giftMessage"]').after('<p class="c7-form__error your-message-is-required" role="alert">Your message is required</p>'):jQuery(".gift-card-model .c7-product__add-to-cart__form button").click()}))}))};const e=()=>{const e=jQuery(".c7-product__add-to-cart__form button");0!=e.length&&e&&e.on("click",(function(){jQuery.ajax({type:"GET",dataType:"json",url:theme_object.ajax_url,data:{action:"get_cart"},success:function(e){if(!e||!e.success||!e.data)return;const t=e.data,o=t.items||[];if(!o.length)return;const n=o[o.length-1],i=e=>"number"==typeof e?e/100:0,r={$value:i(t.total||t.subTotal||0),AddedItemProductName:n.productTitle,AddedItemProductID:n.productId,AddedItemSKU:n.sku,AddedItemCategories:n.type?[n.type]:[],AddedItemImageURL:n.image,AddedItemURL:window.location.origin+"/product/"+n.productSlug,AddedItemPrice:i(n.price),AddedItemQuantity:n.quantity||1,ItemNames:o.map((e=>e.productTitle)),CheckoutURL:window.location.origin+"/checkout/cart",Items:o.map((e=>{const t=i(e.price),o=e.quantity||1;return{ProductID:e.productId,SKU:e.sku,ProductName:e.productTitle,Quantity:o,ItemPrice:t,RowTotal:t*o,ProductURL:window.location.origin+"/product/"+e.productSlug,ImageURL:e.image,ProductCategories:e.type?[e.type]:[]}}))};window._klOnsite=window._klOnsite||[],window._klOnsite.push(["track","Added to Cart",r])},error:function(e,t,o){console.log("get_cart error:",t,o)}})}))},t=()=>{const e=jQuery(".c7-product-Bundle");if(0==e.length||!e)return;let t=location.pathname.split("/").slice(1);if(t.length){let e=t[1];jQuery.ajax({type:"GET",dataType:"json",url:theme_object.ajax_url,data:{action:"get_bundle_items",slug:e},context:this,beforeSend:function(){},success:function(e){if(e.success){const t=jQuery(".product-cart-sticky .product-title").text();jQuery(".bundle-list-line").html(e.content.bundle_line),jQuery(".bundle-list-cards-wrapper").append(`<h2 class="title-section">A look into <i>‘${t}’</i></h2>`),jQuery(".bundle-list-cards-wrapper").append(e.content.bundle_card),e.content.bundle_items.forEac
1h((e=>{jQuery(".product-detail .product-details .bundle-item").append(`<h5>${e.productTitle}</h5>`)})),c7.doAction("c7_product_bundle_collections_rendered")}},error:function(e,t,o){console.log("The following error occured: "+t,o)}})}},o=()=>{jQuery(window).outerWidth()<=1023?jQuery(".product-detail").prepend(jQuery(".c7-product__title.product-title")):jQuery(".product-details").prepend(jQuery(".c7-product__title.product-title"))},n=()=>{const e=jQuery("#get-product-video").val();if(!e)return{videoUrl:e};let t="other";if(-1!==e.indexOf("youtube")||-1!==e.indexOf("youtu.be")){t="youtube";const o=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/gm,n=[...e.matchAll(o)][0][7];return{videoUrl:e,type:t,videoID:n}}if(-1!==e.indexOf("vimeo")){t="vimeo";const o=/(?:https?:\/\/)?(?:www.)?(?:player.)?vimeo.com\/(?:[a-z]*)*([0-9]{6,11})[?]?.*/gm,n=[...e.matchAll(o)];return{videoUrl:e,type:t,videoID:n[0][1]}}return{videoUrl:e,type:t}},i=e=>{let t="";e.videoUrl&&(t+='<div class="video-container">',"youtube"===e.type?t+='<iframe class="background-video" src="https://www.youtube.com/embed/?'+e.videoID+"&modestbranding=1&autohide=1&controls=1&rel=0&loop=1&enablejsapi=1&disablekb=1&playlist="+e.videoID+'&autoplay=0&mute=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>':"vimeo"===e.type?t+='<iframe class="background-video" src="https://player.vimeo.com/video/'+e.videoID+'?loop=1&controls=1&autoplay=0&muted=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>':t+='<iframe class="background-video" src="'+e.videoUrl+'&modestbranding=1&autohide=1&controls=0&rel=0&loop=1&autoplay=1&muted=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>',t+="</div>"),jQuery(".product-video")&&jQuery(".product-video").append(t)},r=()=>{if("null"===shop_promo||"undefined"==typeof shop_promo)return;const e=jQuery("#get-data-shop-promo").val();let t=[];const o=JSON.parse(shop_promo);let n='<div class="shop-promo-detail">';if(0==jQuery(".c7-error-page").length||!jQuery(".c7-error-page"))var i=document.querySelector(".c7-product-detail").getAttribute("data-product-type");if(0!=o.length){if("Wine"===i?o.forEach((function(e,o){o<=1&&e.code&&t.push(e.code)})):"Bundle"===i&&o.forEach((function(e,o){o<=0&&e.code&&t.push(e.code)})),"null"!=jQuery("#get-data-shop-promo").val()&&(t=e.trim().toLowerCase().replace(" ","-").split("\n")),t)for(let e=0;e<o.length;e++){const i=o[e];-1!==t.indexOf(i.code)&&(n+='<div class="c7-promo-block">',n+='<div class="c7-promo-icon">',n+='<img src="'+i.icon+'" alt="icon">',n+="</div>",n+='<div class="c7-promo-text">',n+=atob(i.text),n+="</div>",n+="</div>")}n+="</div>",jQuery(".section-shop-promo-detail").append(n)}},c=()=>{jQuery(".c7-product__add-to-cart__price span.c7-sr-only + span,.c7-product__add-to-cart__price .c7-price--discounted").each((function(e,t){let o=jQuery(t).text();jQuery(t).text(o.replace(".00","").replace("Was","").replace("Now",""))}))},a=()=>{jQuery(".c7-product__image.product-image").click((function(){jQuery(".c7-product__image ul.owl-carousel").trigger("next.owl.carousel")}))}}function i(){this.init=()=>{e(),setInterval(o,400)};const e=()=>{c7.addAction("c7_page_rendered",(e=>{document.getElementById("c7-content").classList.add("c7-render-page")})),c7.addAction("c7_side_cart_rendered",(e=>{t()}))},t=()=>{const e=document.getElementById("c7-side-cart");new MutationObserver((t=>{e.classList.contains("c7-side-cart--visible")?(window.screen.width<=550?jQuery("body").addClass("overflow-hidden"):jQuery("body").removeClass("overflow-hidden"),jQuery(".c7-order-item__description").each((function(e,t){jQuery(t).html("<ul><li>"+jQuery(t).text().split("---").join("</li><li>")+"</ul></li>")}))):jQuery("body").removeClass("overflow-hidden")})).observe(e,{attributes:!0,childList:!0,characterData:!0})},o=()=>{let e=Number(jQuery(".c7-user-nav__cart__count").text());e>12&&(e=12);let t='<div class="c7-carrot__slide-bar">';t+='<div class="c7-carrot__slide-bar__process" qty="'+e+'">',t+='<span class="slide-bar__step" style="width: calc( '+e+'/12 * 100%);"></span>',t+="</div>",t+='<div class="c7-carrot__slide-bar__text">',t+="<span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span><span>7</span><span>8</span><span>9</span><span>10</span><span>11</span><span>12</span>",t+="</div>",t+="</div>",0===jQuery(".c7-carrot__slide-bar").length?jQuery(".c7-carrot").append(t):jQuery(".slide-bar__step").css("width",e/12*100+"%")}}function r(){this.init=()=>{c7.addAction("c7_thankyou_rendered",(()=>{const e=window.location.pathname.split("/"),t=e[e.length-2];jQuery.ajax({type:"GET",dataType:"json",url:theme_object.ajax_url,data:{action:"get_order_detail",id:t},context:this,beforeSend:function(){},success:function(e){var t=(e.data.total/100).toFixed(2)||"0.00",o=e.data.orderNumber;const n=e.data.channel;window.AWIN={Tracking:{Sale:{amount:t,channel:n,orderRef:o,parts:"DEFAULT:"+t,test:"0",voucher:e.data.coupons[0],customerAcquisition:e.data.previousOrderNumber?"RETURNING":"NEW"}}};const i=(e.data.items||[]).map((e=>{const t=(e.price/100).toFixed(2);return`AW:P|115939|${o}|${e.productId}|${e.productTitle}|${t}|${e.quantity}|${e.sku||e.id}|DEFAULT|${e.type||"Wine"}\r\n`})).join("");console.log(i);const r=document.createElement("form");r.setAttribute("name","aw_basket_form"),r.setAttribute("style","display:none;");const c=document.createElement("textarea");c.setAttribute("wrap","physical"),c.setAttribute("id","aw_basket"),c.innerText=i,r.appendChild(c),document.body.appendChild(r)},error:function(e,t,o){}})}))}}function c(){const e=".accordion-src",t=".accordion-dist",o=".single-accordion";this.init=()=>{jQuery(o).length&&jQuery(o).each((function(){jQuery(this).find(t).slide
1Up(400)})),jQuery(e).on("click",(function(n){jQuery(this).closest(o).siblings().each((function(){jQuery(this).find(e).hasClass("open")&&(jQuery(this).find(t).slideUp(400),jQuery(this).find(e).toggleClass("open"))})),jQuery(this).hasClass("open")?(jQuery(this).closest(o).find(t).slideUp(400),jQuery(this).toggleClass("open")):(jQuery(this).closest(o).find(t).slideDown(400),jQuery(this).toggleClass("open"))}))}}function a(){this.init=()=>{jQuery(".hwy__countdown-timer").length&&jQuery(".hwy__countdown-timer").each((function(){const t=jQuery(this),o=t.find(".countdown__timer");let n=o.data("event_start_date"),i=o.data("event_end_date"),r=o.data("schedule");const c=new Date;if("One Time Schedule"===r){if(!n||!i)return;const o=new Date(n),r=new Date(i);if(c.getTime()-o.getTime()<0)return void jQuery(this).hide();const a=r.getTime()-c.getTime();e(a,t)}else if("Day"===r){let o=new Date;o.setHours(23,59,59,999);const n=o.getTime()-c.getTime();e(n,t)}else if("Week"===r){let o=new Date;o.setHours(23,59,59,999);const n=7-c.getDay();o.setDate(c.getDate()+n);const i=o.getTime()-c.getTime();e(i,t)}else if("Month"===r){let o=new Date;o.setMonth(c.getMonth()+1),o.setDate(0),o.setHours(23,59,59,999);const n=o.getTime()-c.getTime();e(n,t)}else if("Coming soon"==r){if(!n||!i)return;new Date(n);const o=new Date(i);if(c.getTime()-o.getTime()>0)return void jQuery(this).hide();const r=o.getTime()-c.getTime();e(r,t)}}))};const e=(e,o)=>{if(e<=0)return void jQuery(o).hide();t(e,o),o.slideDown();const n=setInterval((function(){t(e,o),(e-=1e3)<0&&(clearInterval(n),o.slideUp(),setTimeout((function(){o.remove()}),500))}),1e3)},t=(e,t)=>{const o=Math.floor(e/864e5),n=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),r=Math.floor(e%6e4/1e3);t.find(".days").text((o<10?"0":"")+o),t.find(".hours").text((n<10?"0":"")+n),t.find(".minutes").text((i<10?"0":"")+i),t.find(".seconds").text((r<10?"0":"")+r)}}function s(){this.init=()=>{e(),t(!0),jQuery(window).on("resize",(function(){e(),t(!1)})),o(),n()};const e=()=>{jQuery(document).ready((function(e){e(".hwy__explore-more").length>0&&e(".hwy__explore-more").each((function(){e(this),0!==e(this).find(".content-block-content").length&&(e(window).width()<800?(e(this).find(".content-block-content").addClass("owl-carousel owl-theme"),e(this).find(".content-block-content .content-block-content-item").each((function(){e(this).addClass("item")})),e(this).find(".content-block-content").owlCarousel({items:1,autoWidth:!1,nav:!0,dots:!1,navText:['<svg width="15" height="25" viewBox="0 0 15 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n              <path d="M13.92 0.522545C12.293 2.19973 11.8411 2.28801 9.85248 3.96519L-8.50266e-06 12.3511L8.40622 20.737C10.0332 22.4142 10.4852 22.5025 11.7507 24.1797L12.9257 23.2087L1.7174 12.3511L14.9143 1.40527L13.92 0.522545Z" fill="#8D8C7F"/>\n              </svg>\n              ','<svg width="15" height="25" viewBox="0 0 15 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n                <path d="M0.994471 24.1796C2.62148 22.5024 3.07344 22.4141 5.06201 20.737L14.9145 12.351L6.50827 3.9651C4.88126 2.28792 4.42929 2.19965 3.16384 0.522461L1.98877 1.49346L13.1971 12.351L0.000213623 23.2969L0.994471 24.1796Z" fill="#8D8C7F"/>\n                </svg>\n                  ']})):e(this).find(".content-block-content").owlCarousel("destroy"))}))}))},t=e=>{jQuery(document).ready((function(t){t(".hwy__field-notes").length>0&&t(".hwy__field-notes").each((function(){var o=t(this).find(".section-latest-buzz-content");t(window).width()>=1024?o.owlCarousel("destroy"):(o.addClass("owl-theme owl-carousel"),o.owlCarousel({loop:!1,nav:!1,autoWidth:!0,margin:56,dots:!1,responsive:{0:{center:!0},800:{center:!1}}}),e&&(t(this).find(".slider-control .btn-prev").click((function(){t(this).closest(".hwy__field-notes").find(".section-latest-buzz-content").trigger("prev.owl.carousel")})),t(this).find(".slider-control .btn-next").click((function(){t(this).closest(".hwy__field-notes").find(".section-latest-buzz-content").trigger("next.owl.carousel")}))))}))}))},o=()=>{jQuery(document).ready((function(e){e(".product-drop .section-products").length>0&&e(".product-drop .section-products .product-item").each((function(){e(this).find(".product-item-img .product-item-img-container").owlCarousel({loop:!0,nav:!1,dots:!0,items:1,margin:5})}))}))},n=()=>{jQuery(".product-item-img-container").click((function(){jQuery(this).trigger("next.owl.carousel")}))}}function d(){this.init=()=>{jQuery(".secondary-block-right .lead-image").length>1&&jQuery(".secondary-block-right").length>0&&(jQuery(".secondary-block-right").addClass("owl-carousel owl-theme"),jQuery(".secondary-block-right .lead-image").each((function(){jQuery(this).addClass("item")})),jQuery(document).ready((function(e){e(".secondary-block-right").owlCarousel({items:1,loop:!0})}))),e()};const e=()=>{setTimeout((function(){var e=jQuery(".hero-background-image").data("image");jQuery(".hero-background-image").css("background-image","url("+e+")")}),3e3)}}function l(){const e="youtube-video",t="vimeo-video",o=".background-video";this.init=()=>{n()};const n=()=>{jQuery(".play-button").on("click",(function(){jQuery(this).toggleClass("d-none"),jQuery(this).next().toggleClass("d-none"),jQuery(this).hasClass(e)?jQuery(this).siblings(o).each((function(){this.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")})):jQuery(this).hasClass(t)&&jQuery(this).siblings(o).each((function(){this.contentWindow.postMessage('{"method":"play"}',"*")}))})),jQuery(".pause-button").on("click",(function(){jQuery(this).toggleClass("d-none"),jQuery(this).prev().toggleClass("d-none"),jQuery(this).hasClass(e)?jQuery(this).siblings(o).each((function(){this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})):jQuery(this).hasClass(t)&&jQuery(this).siblings(o).each((function(){this.contentWindow.postMessage('{"method":"pause"}',"*")}))}))}}function u(){this.init=()=>{jQuery(".main-menu-mobile-body .menu-main-menu li").length&&jQuery(".main-menu-mobile-body .menu-main-menu li").each((function(){jQuery(this).find(".sub-menu").slideUp(400)})),jQuery(".main-menu-mobile-header-right-close").click((function(){jQuery("body").css("overflow-y","auto"),jQuery(".main-menu-mobile").removeClass("active"),jQuery(".main-menu-mobile").css({"padding-top":0}
1)})),jQuery(".icon-toggle").click((function(){if(jQuery(this).closest(".main-menu-mobile-body .menu-main-menu li").siblings().each((function(){jQuery(this).find(".icon-toggle").hasClass("open")&&(jQuery(this).find(".sub-menu").slideUp(400),jQuery(this).find(".icon-toggle").toggleClass("open"))})),jQuery(this).hasClass("open"))return jQuery(this).toggleClass("open"),void jQuery(this).closest(".menu-main-menu li").find(".sub-menu").slideUp(400);jQuery(this).toggleClass("open"),jQuery(this).closest(".menu-main-menu li").find(".sub-menu").slideDown(400)})),e()};const e=()=>{jQuery(window).width()<800?(jQuery(".header .header-top .header-right").append('\n    <span class="view-cart" href="#">\n        <div id="c7-cart"></div>\n    </span>\n    <div class="mobile-hamburger">\n        <input class="menu-btn" type="checkbox" id="menu-btn" />\n        <label class="menu-icon" for="menu-btn"><span class="navicon"></span></label>\n    </div>'),jQuery(".main-menu-mobile .main-menu").append('<div id="c7-account"></div>')):jQuery(".header .header-top .header-right").append('\n    <div id="c7-account"></div>\n    <span class="view-cart" href="#">\n        <div id="c7-cart"></div>\n    </span>\n    <div class="mobile-hamburger">\n        <input class="menu-btn" type="checkbox" id="menu-btn" />\n        <label class="menu-icon" for="menu-btn"><span class="navicon"></span></label>\n    </div>'),jQuery(".mobile-hamburger").click((function(){(()=>{jQuery("body").css("overflow-y","hidden");const e=jQuery(".announcement_bar").outerHeight();jQuery(".main-menu-mobile").addClass("active"),jQuery(".main-menu-mobile").css({"padding-top":e})})()}))}}function p(){this.init=()=>{jQuery(document).on("click",".filter-categories-header .category-close",(function(){jQuery(".shop-filter .filter-control").removeClass("active")})),jQuery(document).on("click",".c7-collection-filter-bar-mobile-toggle",(function(){jQuery(".shop-filter .filter-control").addClass("active")}))}}function m(){this.init=()=>{e(),t(),o(),n(),i()};const e=()=>{jQuery(document).ready((function(e){var t=new ScrollMagic.Controller,o=0;e(".history-page-content-time-line .history-page-content-time-line-item ").each((function(){o+=e(this).width()})),o=o+50*(e(".history-page-content-time-line .history-page-content-time-line-item ").length-1)-(e(window).width()-100)/2;var n=(new TimelineMax).to(".history-page-content-time-line",1,{x:-o},{x:"0%",ease:Linear.easeNone});new ScrollMagic.Scene({triggerElement:".timeline-content",triggerHook:"onLeave",duration:"200%"}).setPin(".timeline-content").setTween(n).addTo(t)}))},t=()=>{jQuery(".history-page-content-time-line-item").click((function(){const e=jQuery(this).data("val");
1jQuery(".modal-history").addClass("opened"),jQuery("body").css("overflow","hidden");let t="";var o="";t=e.now_toggle?"now":e.month?e.month+" - "+e.year:e.year,e.images.image_gallery.length&&e.images.image_gallery.forEach((function(e){o+=`<div class="item image-item" style="background-image:url('${e.additional_images.url}')"></div>`})),o+=`<div class="item image-item" style="background-image:url('${e.images.featured_image.featured_image.url}')"></div>`,jQuery(".modal-history .history-info .time-periods h5").text(t),jQuery(".modal-history .history-info .time-line-header h2").text(e.header),jQuery(".modal-history .history-info .time-line-description").html(e.description);const n='<div class="history-image owl-carousel owl-theme">'+o+"</div>";jQuery(".modal-history .modal-content").append(n),jQuery(document).ready((function(e){e(".modal-history .history-image").owlCarousel({loop:!1,nav:!1,autoWidth:!0,dots:!0,items:1})}))}))},o=()=>{jQuery(".btn-close").click((function(){jQuery(".modal-history").removeClass("opened"),jQuery("body").css("overflow","auto"),jQuery(".modal
1-history .modal-content .history-image").remove()}))},n=()=>{jQuery(".history-page-content-control .btn-prev").click((function(){jQuery("html, body").animate({scrollTop:"-=100px"},500)}))},i=()=>{jQuery(".history-page-content-control .btn-next").click((function(){jQuery("html, body").animate({scrollTop:"+=100px"},500)}))}}function y(){this.init=()=>{jQuery(document).ready((function(o){o(".wines-carousel").owlCarousel({loop:!0,nav:!1,autoWidth:!0,margin:35,dots:!1,responsive:{0:{center:!0},800:{center:!1}}}),e(),o(".wines-carousel").on("translated.owl.carousel",(function(t){e()})),t(".section-wine",".wines-carousel"),o(".nav-main-mobile .nav-main-mobile-container").click((function(){o(".nav-main-mobile .sidebar-menu").addClass("active")})),o(".sidebar-menu-close").click((function(){o(".nav-main-mobile .sidebar-menu").removeClass("active")})),o(".sidebar-menu-main a").click((function(){o(".nav-main-mobile .sidebar-menu").removeClass("active")})),o(window).scroll((function(){var e=o(".hwy__nav-sticky .nav-main");0!=e.length&&(o(this).scrollTop()>o(".hwy__nav-sticky").position().top?e.addClass("active"):e.removeClass("active"))}))}))};const e=()=>{jQuery(document).ready((function(e){var t=e(".wines-carousel .owl-stage .owl-item.active").length;e(".wines-carousel .owl-stage .owl-item").removeClass("first-active-item last-active-item"),e(".wines-carousel .owl-stage .owl-item.active").each((function(o){0===o&&e(this).addClass("first-active-item"),o===t-1&&t>1&&e(this).addClass("last-active-item")}))}))},t=(e,t)=>{jQuery(document).ready((function(o){o(e+" .slider-control .btn-prev").click((function(){o(t).trigger("prev.owl.carousel")})),o(e+" .slider-control .btn-next").click((function(){o(t).trigger("next.owl.carousel")}))}))}}function h(){const e=".load-more-button",t=".load-more-current-page",o=".load-more-waiting";this.init=()=>{i()};const n=e=>{"open"===e?document.querySelector(o).classList.add("loading"):document.querySelector(o).classList.remove("loading")},i=()=>{null!=document.querySelector(e)&&document.querySelector(e).addEventListener("click",(()=>{const e={action:"event_post_load_more",load_page:Number(document.querySelector(t).getAttribute("data-current-paged"))+1};jQuery.ajax({type:"GET",dataType:"json",url:theme_object.ajax_url,data:e,beforeSend:function(){n("open")},success:function(e){var o,i,r;o=e.html,document.querySelector(".events-wrap .list-event").innerHTML+=o,n("close"),i=Number(e.loadPage),r=Number(e.postShowed),document.querySelector(t).setAttribute("data-current-paged",i),document.querySelector(t).innerText=i*r,i===Number(document.querySelector(".load-more-total-page").getAttribute("data-total-paged"))&&document.querySelector(".load-more").remove()},error:function(e,t,o){console.log("The following error occured: "+t,o)}})}))}}function g(){this.init=()=>{jQuery(document).ready((function(){e()}))};const e=()=>{jQuery.each(jQuery(".hwy__carousel"),(function(e,o){const n=jQuery(o.querySelector(".carousel-image-wrap")),i=jQuery(o.querySelector(".carousel-text-wrap"));t(n,i)}))},t=(e,t)=>{e&&e.owlCarousel({items:1,loop:!0,responsiveRefreshRate:500,responsive:{0:{margin:25},800:{center:!0,items:2,loop:!0,margin:57,responsiveRefreshRate:500,autoWidth:!0},1024:{center:!0,items:2,loop:!0,margin:76,responsiveRefreshRate:500,autoWidth:!0}}}).on("changed.owl.carousel",(function(e){var o=e.item.count-1,n=Math.round(e.item.index-e.item.count/2-.5);n<0&&(n=o),n>o&&(n=0),t&&t.find(".owl-item").removeClass("current").eq(n).addClass("current");var i=t.find(".owl-item.active").length-1,r=t.find(".owl-item.active").first().index();n>t.find(".owl-item.active").last().index()&&t.data("owl.carousel").to(n,100,!0),n<r&&t.data("owl.carousel").to(n-i,100,!0)})),t&&t.on("initialized.owl.carousel",(function(){t.find(".owl-item").eq(0).addClass("current")})).owlCarousel({items:1,dots:!1,nav:!1,smartSpeed:200,slideSpeed:500,slideBy:1,responsiveRefreshRate:100,touchDrag:!1,mouseDrag:!1,pullDrag:!1}).on("changed.owl.carousel",(function(t){var o=t.item.index;e.data("owl.carousel").to(o,100,!0)})),t.on("click",".owl-item",(function(t){t.preventDefault();var o=jQuery(this).index();e.data("owl.carousel").to(o,300,!0)}))}}function f(){this.init=()=>{e()};const e=()=>{jQuery(document).ready((function(e){e(".hwy_quote_testimonial .testimonials.owl-carousel").length>0&&e(".hwy_quote_testimonial .testimonials.owl-carousel").owlCarousel({items:1,nav:!0,dots:!1,loop:!0,navText:['<svg width="15" height="25" viewB
1ox="0 0 15 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n                <path d="M13.92 0.522545C12.293 2.19973 11.8411 2.28801 9.85248 3.96519L-8.50266e-06 12.3511L8.40622 20.737C10.0332 22.4142 10.4852 22.5025 11.7507 24.1797L12.9257 23.2087L1.7174 12.3511L14.9143 1.40527L13.92 0.522545Z" fill="#8D8C7F"/>\n                </svg>\n                ','<svg width="15" height="25" viewBox="0 0 15 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n                    <path d="M0.994471 24.1796C2.62148 22.5024 3.07344 22.4141 5.06201 20.737L14.9145 12.351L6.50827 3.9651C4.88126 2.28792 4.42929 2.19965 3.16384 0.522461L1.98877 1.49346L13.1971 12.351L0.000213623 23.2969L0.994471 24.1796Z" fill="#8D8C7F"/>\n                    </svg>\n                    ']})}))}}function j(){this.init=()=>{e()};const e=()=>{jQuery("a").click((function(e){e.preventDefault();var t=jQuery(this).attr("href"),o=jQuery(this).attr("target");if(-1===t.indexOf("#"))return o?void window.open(t,o):void(window.location.href=t);if(t.replace("#","")){jQuery(window).width();var n;n=jQuery(window).width()<800?30:50,jQuery("html, body").animate({scrollTop:jQuery(t).offset().top-n},500)}}))}}function w(){var e=2,t=null,o=parseInt(jQuery("#blog-posts .total").data("total"));this.init=()=>{n(),i()};const n=()=>{jQuery("#load-more-btn").on("click",(function(){r()}))},i=()=>{jQuery(".filter-by-category a").click((function(){jQuery("#blog-posts .inner").empty(),jQuery("#blog-posts .load-more-wrapper").hide(),t=jQuery(this).data("id"),e=1,c()}))},r=()=>{jQuery(document).ready((function(n){var i={action:"load_more_posts",page:e,post_per_page:7,cat_id:t};n.ajax({url:theme_object.ajax_url,type:"POST",data:i,success:function(t){n("#blog-posts .load-more-wrapper").show(),0!=t?(n("#blog-posts .inner").append(t),n(".load-more-wrapper .pagination .current").text(n("#blog-posts .inner .post-item").length),n("#blog-posts .inner .post-item").length>=o?n("#load-more-btn").hide():n("#load-more-btn").show(),e++):(n(".load-more-wrapper .pagination .current").text(n("#blog-posts .inner .post-item").length),n("#load-more-btn").hide())}})}))},c=()=>{jQuery(document).ready((function(e){var n={action:"get_filtered_post_count",cat_id:t};e.ajax({url:theme_object.ajax_url,type:"GET",data:n,success:function(t){e("#blog-posts .load-more-wrapper .total").attr("data-total",t),e("#blog-posts .load-more-wrapper .total").text(t),o=t,r()}})}))}}function Q(){var e={};this.init=()=>{document.querySelector(".fellowship-step-page")&&(t(),r(),n(),i())};const t=()=>{if(document.querySelector(".fellowship-step-page"))for(const e of dataFellowship.bottles){const t=jQuery(".step-bottles .step-product-wrap .product-product-item."+e);t.addClass("show-option");const o=dataFellowship[e].min_price.sort(((e,t)=>Number(e)-Number(t)))[0],n=dataFellowship[e].max_price.sort(((e,t)=>Number(t)-Number(e)))[0];let i="$"+o+"-$"+n;o==n&&(i="$"+n),t.find(".product-price").text(i)}},o=()=>{let t=e.bottles,o=e.style,n=e["win-selection"];const i=jQuery(".step-final .step-product-wrap .product-product-item");i.addClass("show-option");const r=dataFellowship[t]?.product_info[o][n]?.price.min_price,c=dataFellowship[t]?.product_info[o][n]?.price.max_price,a=dataFellowship[t]?.product_info[o][n]?.product_name,s=dataFellowship[t]?.product_info[o][n]?.product_link;let d="$"+r+"-$"+c;r==c&&(d="$"+c),i.find(".product-price").text(d),i.find(".product-title").text(a),i.find(".hwy-text-block-button a").attr("href",s)},n=()=>{jQuery(".step-section .step-section-item .hwy-text-block-button button").click((function(t){e.bottles&&(()=>{let t=e.bottles;for(const e of dataFellowship[t]?.style){const o=jQuery(".step-style .step-product-wrap .product-product-item."+e);o.addClass("show-option");const n=dataFellowship[t]?.style_min_price[e]?.sort(((e,t)=>Number(e)-Number(t)))[0],i=dataFellowship[t]?.style_max_price[e]?.sort(((e,t)=>Number(t)-Number(e)))[0];let r="$"+n+"-$"+i;n==i&&(r="$"+i),o.find(".product-price").text(r)}})(),e.style&&(()=>{let t=e.bottles,n=e.style;if(n&&t)for(const i of dataFellowship[t]?.wine_selection[n])if("none"===i)e["win-selection"]=i,o();else{const e=jQuery(".step-win-selection .step-product-wrap .product-product-item."+i);e.addClass("show-option");const o=dataFellowship[t]?.product_info[n][i]?.price.min_price,r=dataFellowship[t]?.product_info[n][i]?.price.max_price;let c="$"+o+"-$"+r;o==r&&(c="$"+r),e.find(".product-price").text(c)}})(),e["win-selection"]&&o();let n=jQuery(this).closest(".step-section-item").next();n.hasClass("step-win-selection")&&"none"==e["win-selection"]&&(n=n.next());const i=n.index();-1!==i&&(jQuery(".step-section .step-section-item").removeClass("active"),n.addClass("active"),jQuery(".step-wrap .step-item ").eq(i).addClass("active"),c())}))},i=()=>
1{jQuery(".step-wrap .step-item").click((function(){const e=jQuery(this).index();-1!==e&&(jQuery(this).addClass("active"),jQuery(".step-section .step-section-item").removeClass("active"),jQuery(".step-section .step-section-item").eq(e).addClass("active"))}))},r=()=>{document.querySelector(".fellowship-step-page")&&jQuery(".fellowship-step-page .hwy-text-block-button button").click((function(){const t=jQuery(this).data("type"),o=jQuery(this).data("value");let n=["bottles","style","win-selection","final"],i=n.indexOf(t);if(-1!==i&&i<Object.keys(e).length-1)for(;i<n.length;i++){const t=n[i];"final"!==t&&delete e[t],jQuery(".step-wrap ."+t).removeClass("active"),0!==i&&jQuery(".step-section .step-"+t+" .product-product-item").removeClass("show-option").removeClass("selected")}e[t]=o,jQuery(".step-"+t+" .product-product-item").removeClass("selected"),jQuery(".product-product-item."+o).addClass("selected")}))},c=()=>{if(Object.keys(e).length>0)for(const t in e)Object.hasOwnProperty.call(e,t)&&"none"!=e[t]&&jQuery(".step-wrap ."+t).addClass("active")}}function v(){var e={};const t=".page-step-3",o=".load-more-waiting",n=".gift-set-step-page .select-page",i=".gift-set-step-page .final-step",r="hidden-page",c=".select-page .step-section .selected-button";this.init=()=>{document.querySelector(".gift-set-step-page")&&(a(),l(),jQuery(".final-step .back-to-gift").click((function(){jQuery(n+t).removeClass(r),jQuery(i).addClass(r)})),jQuery(".select-page .back-step").click((function(){let t=jQuery(this).data("back"),o=jQuery(this).data("current");jQuery(n).addClass(r),jQuery(n+"."+t).removeClass(r),delete e[o],s()})))};const a=()=>{document.querySelector(".gift-set-step-page")&&jQuery(c).click((function(){var t=jQuery(this).closest(".select-page").data("item"),o=jQuery(this).data("slug"),n=Number(jQuery(this).data("price")),i=jQuery(this).data("title"),r=jQuery(this).data("image"),c=jQuery(this).data("id"),a=jQuery(this).data("variant");e[t]={id:c,item:t,slug:o,price:n,title:i,image:r,variant:a},s(),d(),u()}))},s=()=>
1{if(document.querySelector(".select-page")){let t=Object.keys(e).length/Number(jQuery(".select-page").length)*100;if(jQuery(".step-process-item").css("width",t+"%"),Object.keys(e).length>0){jQuery(c).removeClass("selected");for(const t in e)if(Object.hasOwnProperty.call(e,t)){const o=e[t];jQuery(".select-page."+t+' button[data-slug="'+o.slug+'"]').addClass("selected")}}}},d=()=>{let o="",c=0,a=Object.keys(e).length;3===a?(jQuery(n).addClass(r),jQuery(i).removeClass(r)):(jQuery(n).addClass(r),1===a?jQuery(n+".page-step-2").removeClass(r):2===a?jQuery(n+t).removeClass(r):jQuery(n+".page-step-1").removeClass(r),jQuery(i).addClass(r));let s="";if(a>0){for(const t in e)if(Object.hasOwnProperty.call(e,t)){const i=e[t];o+="<h5>"+i.title+"</h5>",c+=Number(i.price),s+='<div class="image-item"><img src="'+i.image+'" alt="'+i.title+'"></div>',jQuery(n+" .back-step").removeClass(r)}jQuery(".gift-set-step-page .list-name").html(o),jQuery(".gift-set-step-page .total-price").html("$"+c),jQuery(".gift-set-step-page .group-image").html(s)}},l=()=>{document.querySelector(".final-content")&&jQuery(".final-content .add-cart-gift-set .add-giftset-cart").click((function(){let e=jQuery(this).data("background");p(e)}))},u=()=>{jQuery("html, body").stop().animate({scrollTop:0},800,"swing",(function(){}))},p=t=>{let n=(()=>{var t={price:0,images:[],bundleItems:[{productVariantId:"17c109ca-1695-44fa-a282-d8748dd4d2e5",quantity:1}],titles:["Gift Box "]};let o=0;if(Object.keys(e).length>0){let n=1;for(const i in e){if(Object.hasOwnProperty.call(e,i)){const r=e[i];o+=Number(r.price),t.bundleItems.push({productVariantId:r.variant,quantity:1}),t.images.push({sortOrder:n+1,src:r.image}),t.titles.push(r.title)}t.price=o,n++}}return t})();jQuery.ajax({type:"GET",dataType:"json",url:theme_object.ajax_url,data:{apiData:n,background:t,action:"create_gift_set_bundle"},beforeSend:function(){document.querySelector(o).classList.add("loading"),document.querySelector(".notification").classList.add("show")},success:function(e){if(200==e.code){let t=window.location.origin+window.location.pathname+"?addToCart="+e.sku;window.location.href=t}else console.log("Can't create bundle by API")},error:function(e,t,o){console.log("The following error occured: "+t,o)}})}}function b(){var e=jQuery(".etched-page input[type=radio][name=product]:checked").data("product"),t={};this.init=()=>{n(),i(),r(),o()};const o=()=>{jQuery(document).ready((function(e){if(e(".etched-page")){var t=new URL(window.location.href).searchParams,o=t.get("meta-etched-sign-off"),n=t.get("meta-etched-greeting"),i=t.get("meta-etched-message");n&&e(".product-detail .product-detail-info .form-meta input[name=greeting]").val(n),o&&e(".product-detail .product-detail-info .form-meta input[name=sign_off]").val(o),i&&e(".product-detail .product-detail-info .form-meta input[name=message]").val(i)}}))},n=()=>{jQuery(".etched-page input[type=radio][name=product]").change((function(){const t=jQuery(".etched-page input[type=radio][name=product]:checked").data("product");e=t,jQuery(".etched-page .product-detail-image img").attr("src",t.image),void 0===t.variants[0]?(jQuery(".etched-page .product-detail-info .product-price").hide(),jQuery(".etched-page .product-detail-info .box-add-to-cart").hide()):(jQuery(".etched-page .product-detail-info .product-price").show(),jQuery(".etched-page .product-detail-info .box-add-to-cart").show(),jQuery(".etched-page .product-detail-info .product-price .price-discounted").html('<span class="price-original d-none"></span>\n            $'+t.variants[0].price/100),t.variants[0].comparePrice&&(jQuery(".etched-page .product-detail-info .product-price .price-original").text("$"+t.variants[0].comparePrice/100),jQuery(".etched-page .product-detail-info .product-price .price-original").removeClass("d-none")))}))},i=()=>{jQuery(".etched-page .form-meta input, .form-meta textarea").on("keyup",(function(){const e=jQuery(".etched-page .form-meta").serializeArray(),o={};for(let t=0;t<e.length;t++){const n=e[t],i=n.value;o[n.name]=i}t=o,jQuery(".etched-page .product-detail-image .data-note")&&jQuery(".etched-page .product-detail-image .data-note").remove();const n=`<div class="data-note">\n        <p class="data-note-greeting">${o.greeting}</p>\n        <p class="data-note-message">${o.message}</p>\n        <p class="data-note-sign-off">${o.sign_off}</p>\n    </div>`;jQuery(".etched-page .product-detail-image img").hasClass("zoom")?jQuery(".etched-page .product-detail-image").append(n):(jQuery(".etched-page .product-detail-image img").addClass("zoom"),setTimeout((function(){jQuery(".etched-page .product-detail-image").append(n)}),1e3))}))},r=()=>{jQuery(".etched-page .product-detail-info .btn-add-to-cart").click((function(){if(void 0===e.variants[0])return;let o=window.location.origin+window.location.pathname+"?addToCart="+e.variants[0].sku+"&meta-etched-greeting="+encodeURIComponent(t.greeting)+"&meta-etched-message="+encodeURIComponent(t.message)+"&meta-etched-sign-off="+encodeURIComponent(t.sign_off);window.location.href=o}))}}(new function(){this.init=()=>{(new t).init(),(new n).init(),(new i).init(),(new r).init()}}).init(),(new function(){this.init=()=>{(new c).init(),(new a).init(),(new s).init(),(new d).init(),(new l).init(),(new u).init(),(new p).init(),(new m).init(),(new y).init(),(new h).init(),(new g).init(),(new f).init(),(new j).init(),(new w).init(),(new Q).init(),(new v).init(),(new b).init()}}).init(),jQuery(document).ready((function(e){const t=()=>{const e=jQuery(window).height(),t=jQuery("body").height(),o=jQuery("footer").height();jQuery("footer").hasClass("sticky")?e<t+o&&jQuery("footer").removeClass("sticky"):e>t&&jQuery("footer").addClass("sticky")};if(0==jQuery("#c7-content").length&&t(),jQuery(window).resize((function(){t()})),jQuery("ul#menu-footer-nav > li").click((function(){let e=jQuery(this).hasClass("open");jQuery("ul#menu-footer-nav > li").removeClass("open"),e||jQuery(this).addClass("open")})),e(".product-drop").length>0){var o=new Date(e(".product-drop").data("end")),n=new Date(e(".product-drop").data("start")),i=new Date;i.getTime()<n.getTime()?(e(".product-drop-now-available").hide(),e(".product-drop-sold-out").hide()):i.getTime()>o.getTime()?(e(".product-drop-now-available").hide(),e(".product-drop-coming-soon").hide()):(e(".product-drop-coming-soon").hide(),e(".product-drop-sold-out").hide(),setInterval((function(){var t=new Date;o.getTime()-t.getTime()<0&&e(".product-drop-now-available .section-products .product-item").each((function(){e(this).find(".c7-buy-product .c7-product__add-to-cart button").attr("disabled",!0)}))}),1e3))}e(".btn-test-atc").click((function(){const t=e(this).closest(".product-item").data("id"),o=e(this).closest(".product-item").data("variants");e.ajax({type:"POST",dataType:"json",url:theme_object.ajax_url,data:{action:"add_to_cart",productId:t,quantity:2,variantId:o,note:"This is a note about the product"},success:function(e){console.log(e)}})}))}))})()})();
2//# sourceMappingURL=theme.min.js.map

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.