PageSourceSearch

https://himalayan-chew.co.uk/cdn/shop/t/53/assets/dbtfy-addons.min.js?v=148358909196486104321746611807

js himalayan-chew.co.uk collected 2026-10-04 07:04:03 UTC 69,663 bytes, 128 lines download raw bytes

1(function() {
2  /* start-dbtfy-addons */
3
4  /* start-dbtfy-addtocart-animation */ function themeAddtocartAnimation(){function AddtocartAnimation(){const t=theme.settings.dbtfyATCAnimationType,n=1e3*theme.settings.dbtfyATCAnimationInterval,a=theme.variables.animationSlow,o=`slow ${t}`;$(".product-single__add-to-cart .btn--add-to-cart:not([disabled])").addClass("btn--addtocart_animation"),setInterval(function(){const t=$(".btn--addtocart_animation");t.addClass(o),setTimeout(function(){t.removeClass(o)},a)},n)}AddtocartAnimation();} /* end-dbtfy-addtocart-animation */
5
6  /* start-dbtfy-age-check */ function themeAgeCheck(){} function themeAgeCheckDestroy() {} /* end-dbtfy-age-check */
7
8  /* start-dbtfy-agree-to-terms */ function themeAgreeToTerms(){} function themeAgreeToTermsDestroy() {} /* end-dbtfy-agree-to-terms */
9
10  /* start-dbtfy-automatic-geolocation */ function themeAutomaticGeolocation(){} /* end-dbtfy-automatic-geolocation */
11
12  /* start-dbtfy-back-in-stock */ function themeBackInStock(){} function themeBackInStockDestroy() {} /* end-dbtfy-back-in-stock */
13
14  /* start-dbtfy-back-to-top */ function themeBackToTop(){document.body.classList.remove("dbtfy-back_to_top-destroy");} function themeBackToTopDestroy() {function destroyBackInStock(){const t=document.querySelectorAll(".dbtfy-back_to_top");t.length&&t.forEach((t=>{t.remove()}))}document.body.classList.add("dbtfy-back_to_top-destroy"),destroyBackInStock();} /* end-dbtfy-back-to-top */
15
16  /* start-dbtfy-cart-discount */ function themeCartDiscount(){} function themeCartDiscountDestroy() {} /* end-dbtfy-cart-discount */
17
18  /* start-dbtfy-cart-favicon */ function themeCartFavicon(){function CartFavicon(){const t=theme.settings.faviconImage,e=theme.settings.cartFaviconImage;function n(n){const a=n?n.item_count:theme.variables.cartCount,o=document.getElementById("favicon");e&&(a>0?o.setAttribute("href",e):o.setAttribute("href",t)),!e&&t&&function(e,n){if(e.classList.contains("notification-enabled")&&n>0)return;n>0?function(e,n){const a=document.createElement("img");a.crossOrigin="anonymous",a.src=t,a.onload=function(){const t=document.createElement("canvas"),n=t.getContext("2d"),o=a.width-a.width/4.5-5,c=a.width/4.5;t.width=a.width,t.height=a.height,n.clearRect(0,0,a.width,a.height),n.drawImage(a,0,0),n.fillStyle="#eb361e",n.strokeStyle="#ffffff",n.lineWidth=5,n.beginPath(),n.arc(o,25,c,0,2*Math.PI,!1),n.closePath(),n.fill(),n.stroke();const r=n.canvas.toDataURL();i(e,r,"image/x-icon","add")}}(e):i(e,t,"image/png","remove")}(o,a)}function i(t,e,n,i){const a=document.querySelector("head"),o=document.createElement("link");o.sizes="192x192",o.type="image/x-icon",o.rel="shortcut icon",o.id="favicon",o.href=e,t.remove(),a.appendChild(o),o.classList[i]("notification-enabled")}t&&(n(),$("body").on("ajaxCart.afterCartLoad",function(t,e){n(e)}))}CartFavicon();} /* end-dbtfy-cart-favicon */
19
20  /* start-dbtfy-cart-goal */ function themeCartGoal(){async function CartGoal(a){const b=document.querySelector(".dbtfy-cart_goal_list");if(!b)return;const c=b.querySelectorAll(".dbtfy-cart_goal");if(!c.length)return;const d=await theme.getUserLocationData();let e,f;d?(e=d.country_name,f=d.continent_code):(e="Austria",f="EU");const g={AF:"Africa",AN:"Antarctica",AS:"Asia",EU:"Europe",NA:"North america",OC:"Oceania",SA:"South america"}[f],h=Array.from(c).find(a=>{const b=a.dataset.goalRegion,c=theme.capitalizeFirstLetter(b),d=theme.capitalizeFirstLetter(e),f=theme.capitalizeFirstLetter(g);if(c===f||c===d||"All"===c)return a});if(c.forEach(a=>{a!==h&&a.remove()}),!h)return;const i=h.dataset.beforeAmountText,j=h.dataset.afterAmountText,k=h.dataset.goalReachedText,l=h.querySelector(".cg-wrapper"),m=h.querySelector(".cg-free-shipping-text"),n=h.querySelector(".cg-progress-bar"),o=parseInt(h.dataset.cartTotalCount);let p=parseFloat(h.dataset.goalAmount),q=parseFloat(h.dataset.cartTotalAmount);const r=document.querySelector("#currency-list-header"),s=theme.strings.shopCurrency;let t="";r&&(t=r.value,t!==s&&(p=parseFloat(h.querySelector("span.cart_goal_amount_new").innerText))),a&&(q=a.total_price/100);const u=parseFloat(p-q);let v=0,w=`<span>${k}</span>`;if(0<u){const a=theme.strings.moneyFormat;v=100*(p-u)/p,w=`<span>${i} <span class="cg-goal-amount text-money text-secondary"><span class="money">${theme.Currency.formatMoney(100*u,a)}</span></span> ${j}</span>`}else v=100;if(m.innerHTML=w,n.style.width=`${v}%`,l.hidden=!1,a?!a.item_count&&(l.hidden=!0):0===o&&(l.hidden=!0),document.body.classList.contains("template-cart")){const a=h.cloneNode(!0),b=document.querySelector(".page-title-wrapper"),c=b.nextElementSibling;c&&c.classList.contains("dbtfy-cart_goal")&&c.remove(),b.insertAdjacentElement("afterend",a)}theme.settings.cartType;let x;"drawer"===theme.settings.cartType?x="#CartDrawer":"modal"===theme.settings.cartType&&(x="#CartModal");const y=document.querySelector(x),z=y&&y.querySelector(".cart-products");if(y&&z){const a=h.cloneNode(!0),b=z.previousSibling;b&&b.classList.contains("dbtfy-cart_goal")&&b.remove(),a.classList.add("drawer__inner-section"),z.insertAdjacentElement("beforebegin",a)}document.dispatchEvent(new CustomEvent("CartGoalLoaded"))}CartGoal(),$("body").on("ajaxCart.afterCartLoad",function(a,b){CartGoal(b)});} function themeCartGoalDestroy() {function destroyCartGoal(){const o=document.querySelectorAll(".dbtfy-cart_goal");o.length&&o.forEach(o=>{o.remove()})}destroyCartGoal(),$("body").on("ajaxCart.afterCartLoad",function(o,t){destroyCartGoal()});} /* end-dbtfy-cart-goal */
21
22  /* start-dbtfy-cart-notification */ function themeCartNotification(){} function themeCartNotificationDestroy() {} /* end-dbtfy-cart-notification */
23
24  /* start-dbtfy-cart-reminder */ function themeCartReminder(){function CartReminder(){function a(){const a=theme.cart.items.length;if(0===a)return;const c=theme.getRandomNumberInRange(0,a-1),d=theme.cart.items&&theme.cart.items[c],e=d.featured_image;b(e)}function b(a){const b=document.querySelectorAll(".notification-toast-image");b.forEach(b=>{b.innerHTML=a.url?`<img src="${a.url}" alt="${a.alt}">`:theme.variables.productPlaceholderSvg})}const c=document.querySelectorAll(".dbtfy-cart_reminder");c.length&&(theme.isCartLoaded?(a(),theme.NotificationToast.init(".dbtfy-cart_reminder_wrapper",a,!0)):document.addEventListener("dbtfy:cartLoaded",function(){a(),theme.NotificationToast.init(".dbtfy-cart_reminder_wrapper",a,!0)}))}document.addEventListener("shopify:section:load",()=>{sessionStorage.removeItem("cartReminderClosed")}),CartReminder();} function themeCartReminderDestroy() {function destroyCartReminder(){const e=document.querySelectorAll(".dbtfy-cart_reminder");e.forEach(r=>{r&&e.remove()})}destroyCartReminder();} /* end-dbtfy-cart-reminder */
25  
26  /* start-dbtfy-cart-savings */ function themeCartSavings(){function CartSavings(){function a(a){function c(){let c="";c=a?"drawer"===a?"#CartDrawer":"modal"===a?"#CartModal":".dbtfy-cart-page-container":"#CartDrawer, .dbtfy-cart-page-container, #CartModal";const d=document.querySelectorAll(c),e=theme.strings.moneyFormat;d.forEach(a=>{function c(a,b,c,d){const e=a.querySelector(".cart__subtotal-compare-at");e&&(a.innerHTML=""),a.innerHTML=b?`<span class="cart__subtotal-discounted text-sale"><span class="money">${d}</span></span> <span class="cart__subtotal-discounted text-muted text-strike"><span class="money">${c}</span></span>`:`<span class="money">${c}</span>`}const d=a.querySelector(".cart_savings-wrapper");if(!d)return;const f=a.querySelector("[data-cart-total]"),g=a.querySelector("[data-cart-total-value]"),h=d.parentElement.querySelector(".cart-discount"),i=h?+h.dataset.discountValue:0,j=d.querySelector(".cart_savings-wrapper-text"),k=+d.dataset.totalWithComparePrice,l=+d.dataset.totalSavingsByComparePrice,m=theme.Currency.formatMoney(k,e),n=!!f.querySelectorAll(".cart__subtotal-discounted").length,o=theme.cart.item_count;let p=l;
26if(0<p||0<i){let a=k-p;const l=d.closest(".main-content")?"cartCurrentValues":"drawerCartCurrentValues",q=b[l];if(q.qt!=o&&q.compareAtPrice===k&&n)return;if(q.qt=o,h&&(p+=i,a=k-p,q.price===a&&q.compareAtPrice===k&&n))return;if(q.price===a&&q.compareAtPrice===k&&n)return;q.price=a,q.compareAtPrice=k;const r=theme.Currency.formatMoney(a,e);j.innerHTML=`<span class="money">${theme.Currency.formatMoney(p,e)}</span>`,c(f,!0,m,r),g&&(g.innerHTML=`<span class="money">${r}</span>`,d.removeAttribute("hidden"))}else c(f,!1,m),g&&(g.innerHTML=`<span class="money">${m}</span>`,d.setAttribute("hidden","hidden"))})}theme.isCartLoaded?c():document.addEventListener("dbtfy:cartLoaded",c)}const b={cartCurrentValues:{price:0,qt:0,compareAtPrice:0,cartSavingsValue:0,cartTotalWithDiscount:0},drawerCartCurrentValues:{price:0,qt:0,compareAtPrice:0,cartSavingsValue:0,cartTotalWithDiscount:0}};a(),$("body").on("ajaxCart.afterCartLoad",function(b,c,d){a(d)}),document.addEventListener("dbtfy:cartDiscountSaved",()=>{a()})}CartSavings();} function themeCartSavingsDestroy() {function destroyCartSavings(){const a=document.querySelectorAll(".cart_savings-wrapper");a.length&&a.forEach(a=>{a.remove()})}destroyCartSavings(),$("body").on("ajaxCart.afterCartLoad",function(a,r){destroyCartSavings()});} /* end-dbtfy-cart-savings */
27
28  /* start-dbtfy-cart-upsell */ function themeCartUpsell(){function CartUpsell(){const dbtfy=document.querySelector(".cu-wrapper");function SpecificCartUpsell(e){document.querySelectorAll(".specific-upsell").forEach(e=>{e.remove()});const t=dbtfy.querySelectorAll(".cu-specific-upsell");if(!t.length||!e)return;const r=Array.from(t).filter(t=>{const r=+t.dataset.offerId;return!e.items.some(e=>e.product_id===r)});r.length&&e.items.forEach((e,t)=>{const a=e.product_id,n=r.filter(e=>{const t=+e.dataset.triggerId;return a===t});if(!n.length)return;const c=[];n.filter(e=>{const t=+e.dataset.offerId;return!c.includes(t)&&(c.push(t),!0)}).forEach(e=>{const r=document.querySelector("#CartContainer .drawer__inner");if(r){const a=e.cloneNode(!0),n=a.querySelector("form");n&&(n.removeAttribute("data-has-submit-event"),n.removeAttribute("data-has-submit-listener"));const c=r.querySelector(`.ajaxcart_row[data-line="${t+1}"]`);if(c){c.querySelector(".specific-upsell")||c.insertAdjacentHTML("beforeend",`\n                    <div class="card-group spacer-top specific-upsell" data-line="${t+1}"></div>\n                  `);const e=r.querySelector(`.specific-upsell[data-line="${t+1}"]`);e&&e.insertAdjacentElement("beforeend",a)}}const a=document.querySelector("#cartForm .dbtfy_main_cart_container");if(a){const r=e.cloneNode(!0),n=r.querySelector("form");n&&(n.removeAttribute("data-has-submit-event"),n.removeAttribute("data-has-submit-listener"));const c=a.querySelector(`.cart__row[data-line="${t+1}"]`);if(c){c.querySelector(".specific-upsell")||c.insertAdjacentHTML("beforeend",`\n                    <div class="card-group spacer-top specific-upsell" data-line="${t+1}"></div>\n                  `);const e=a.querySelector(`.specific-upsell[data-line="${t+1}"]`);e&&e.insertAdjacentElement("beforeend",r)}}theme.ajaxCart.init({enableQtySelectors:!1})})})}function GeneralCartUpsell(e){document.querySelectorAll(".ajaxcart__general-upsell, .general-upsell").forEach(e=>{e.remove()});const t=dbtfy.querySelectorAll(".cu-general-upsell");if(!t.length||!e)return;const r=Array.from(t).filter(t=>{const r=+t.dataset.productId;return!e.items.some(e=>e.product_id===r)});r.length&&r.forEach(e=>{const t=document.querySelector("#CartContainer .drawer__inner");if(t){const r=e.cloneNode(!0),a=r.querySelector("form");a&&(a.removeAttribute("data-has-submit-event"),a.removeAttribute("data-has-submit-listener")),t.querySelector(".ajaxcart__general-upsell")||t.insertAdjacentHTML("beforeend",'\n                  <div class="ajaxcart__general-upsell drawer__inner-section card-group"></div>\n                ');const n=t.querySelector(".ajaxcart__general-upsell");n&&n.insertAdjacentElement("beforeend",r)}const r=document.querySelector("#cartForm .dbtfy_main_cart_container");if(r){const t=e.cloneNode(!0),a=t.querySelector("form");a&&(a.removeAttribute("data-has-submit-event"),a.removeAttribute("data-has-submit-listener"));const n=+t.dataset.productId;r.insertAdjacentHTML("beforeend",`\n                <div class="card-group spacer-top general-upsell" data-product-id="${n}"></div>\n              `);const c=r.querySelector(`.general-upsell[data-product-id="${n}"]`);c&&c.insertAdjacentElement("beforeend",t)}theme.ajaxCart.init({enableQtySelectors:!1})})}function addListeners(){const selects=document.querySelectorAll(".cu-select");function changeVariantImage(e){const t=e.closest(".cu-product-wrapper"),r=e.selectedOptions[0].dataset.variantImg;if(r&&t){const e=t.querySelector(".cu-variant-img");e&&e.setAttribute("src",r)}}function changeVariantUrl(e){const t=e.selectedOptions[0].dataset.variantUrl,r=e.closest(".cu-upsell"),a=e.closest(".cu-product-wrapper");if(r){const e=r.querySelector(".cu-product-name a");e&&e.setAttribute("href",t)}if(a){const e=a.querySelector(".image-link");e&&e.setAttribute("href",t)}}
28selects.forEach(e=>{e.hasAttribute("data-has-change-event")?e.setAttribute("data-has-change-event","true"):e.addEventListener("change",()=>{changeVariantImage(e),changeVariantUrl(e)})});const cartUpsellButtons=document.querySelectorAll(".cu-addtocart-btn"),cartType=theme.settings.cartType;cartUpsellButtons.forEach(upsellButton=>{const isEventAdded=upsellButton.hasAttribute("data-has-click-event");isEventAdded?upsellButton.setAttribute("data-has-click-event","true"):upsellButton.addEventListener("click",event=>{event.preventDefault();const button=event.target.closest(".cu-addtocart-btn"),form=button.closest(".cu-form"),upsellAddon=document.querySelector(".dbtfy-upsell_popup");if(theme.loadingState.init(button),button.classList.contains("cu-replace-offer")){const e=button.closest(".cart__row"),t=+e.dataset.line,r=e.querySelector(".cart__product-qty");let a=!1;if(r){const e=r.value,t=form.querySelector(".qty-input"),n=+form.querySelector(".cu-select").selectedOptions[0].dataset.variantQuantity;a=n>=+e,t.value=e}a&&$.ajax({type:"POST",url:"/cart/change.js",dataType:"json",async:!1,data:{line:t,quantity:0}})}ShopifyAPI.addItemFromForm(form,()=>{$("body").on("ajaxCart.afterCartLoad",function(e,t){theme.loadingState.destroy(button)}),upsellAddon?document.dispatchEvent(new CustomEvent("dbtfy:formSubmitted",{detail:{form:form}})):theme.ajaxCart.update(),document.body.classList.remove("js-modal-open")},(XMLHttpRequest,textStatus,form)=>{const data=eval(`(${XMLHttpRequest.responseText})`);if(theme.loadingState.destroy(button),data.message&&422===data.status){const e=button.nextElementSibling;e&&e.remove(),button.insertAdjacentHTML("afterend",`<div class="errors qty-error">${data.description}</div>`)}})})});const isCartPage=document.body.classList.contains("template-cart");"drawer"===cartType&&isCartPage&&theme.ajaxCart.init()}dbtfy&&($("body").on("ajaxCart.afterCartLoad",function(e,t){t.items.length&&(SpecificCartUpsell(t),GeneralCartUpsell(t),addListeners(),$("body").trigger("dbtfy:cartUpsellLoaded",t))}),$("body").hasClass("template-cart")&&ShopifyAPI.getCart(e=>{e.items.length&&(SpecificCartUpsell(e),GeneralCartUpsell(e),addListeners(),$("body").trigger("dbtfy:cartUpsellLoaded",e))}))}CartUpsell();} function themeCartUpsellDestroy() {function destroyCartUpsell(){const t=document.querySelectorAll(".dbtfy-cart_upsell");t.length&&t.forEach(t=>{t.remove()})}destroyCartUpsell(),$("body").on("ajaxCart.afterCartLoad",function(){destroyCartUpsell()});} /* end-dbtfy-cart-upsell */
29
30  /* start-dbtfy-collection-addtocart */ function themeCollectionAddtocart(){} function themeCollectionAddtocartDestroy() {} /* end-dbtfy-collection-addtocart */
31
32  /* start-dbtfy-collection-filters */ function themeCollectionFilters(){} function themeCollectionFiltersDestroy() {} /* end-dbtfy-collection-filters */
33
34  /* start-dbtfy-color-swatches */ function themeColorSwatches(){} function themeColorSwatchesDestroy() {} /* end-dbtfy-color-swatches */
35
36  /* start-dbtfy-cookie-box */ function themeCookieBox(){} function themeCookieBoxDestroy() {} /* end-dbtfy-cookie-box */
37
38  /* start-dbtfy-custom-currencies */ function themeCustomCurrencies(){} function themeCustomCurrenciesDestroy() {} /* end-dbtfy-custom-currencies */
39
40  /* start-dbtfy-customizable-products */ function themeCustomizableProducts() {} function themeCustomizableProductsDestroy() {} /* end-dbtfy-customizable-products */
41
42  /* start-dbtfy-delivery-date */  function themeDeliveryDate() {} function themeDeliveryDateDestroy() {} /* end-dbtfy-delivery-date */
43
44  /* start-dbtfy-delivery-time */  function themeDeliveryTime() {function DeliveryTime(){document.body.classList.remove("dbtfy-delivery_time-destroy");const e=document.querySelector(".dbtfy-delivery_time");if(!e)return;const t=e.querySelectorAll(".dt-info");if(!t.length)return;const a=theme.visibilitySettings.sortVisibilityTypes(e,".dt-info"),r=document.querySelectorAll(".featured-product-section, .product-section");for(let[e,t]of a)t.forEach((e=>{const t={visibility:e.dataset.visibilityType,tags:e.dataset.productTags,types:e.dataset.productTypes,productId:e.dataset.product,collection:e.dataset.productC
44ollection,template:e.cloneNode(!0),minDate:e.dataset.minDate,maxDate:e.dataset.maxDate,showAsDate:e.dataset.showAsDate,dateFormat:e.dataset.timeFormat,excludeDays:e.dataset.excludeDays,showCutOff:e.dataset.showCutOff,cutOffTime:e.dataset.cutOffTime,cutOffMessage:e.dataset.cutOffMessage,timeZone:e.dataset.timeZone};r.forEach((e=>{const a=e.querySelector(".mainProductJson");if(!a)return;const r=JSON.parse(a.innerHTML);theme.visibilitySettings.checkForVisibility(r,t,(function(){s(e,t)}))}))}));function n(e,t){const a=+e.minDate,r=+e.maxDate;theme.strings.months;return function(e,t,a,r,n){const s=function(e){const t=new Date,a=e.timeZone/60;return t.getTimezoneOffset()/60-a}(r),o=function(e,t,a,r,n){const s={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},o=Boolean("true"===e.showAsDate),d=864e5,i=e.excludeDays&&e.excludeDays.split(",").filter((e=>e)).map((e=>e.trim().toLowerCase())),l=[];for(const e in s)i&&i.forEach((t=>{s[e].toLowerCase().includes(t)&&l.push(e)}));const c=(new Date).getTime(),u=new Date(c),y=new Date(c+d),f=new Date(c+100*d+a*d),m=[],h=function(e,t,a){const r=t.querySelector(".delivery_cut_off_time"),n=Boolean("true"===e.showCutOff),s=new Date;let o=s.getDate();if(n){const t=e.cutOffTime;let n,d;if(a%1!=0){const e=(Number(t.substring(0,2))-a)%1,r=60*e;n=Number(t.substring(0,2))-a-e,d=r}else n=Number(t.substring(0,2))-a,d="00";n<0?n=24+n:n>24&&(n=Number(t.substring(0,2))-a-24,o=s.getDate()+1);const i=`${n}:${d}:${t.substring(6)}`,l=new Date(`${s.getFullYear()}-${s.getMonth()+1}-${o} ${i}`);return r.innerText=i,s.getTime()>=l}return!1}(e,r,n),D=new Date(f),g=h?new Date(y):new Date(u);let p=0,b=0;a=h?a+1:a;for(let r=g;r<D;r.setDate(r.getDate()+1)){const n=r.getDay(),s=l&&l.some((e=>+e===n));if(!s&&p<t&&(p++,p===t)){const e=r.getFullYear(),a=r.getMonth()+1,n=theme.strings.months.full[a],s=theme.strings.months.short[a],d=r.getDay(),i=theme.strings.weekdays.full[d],l=theme.strings.weekdays.short[d],c=r.getDate(),u={};o?(u.startYear=e,u.startDateMonthFull=n,u.startDateMonthShort=s,u.startWeekdayFull=i,u.startWeekdayShort=l,u.startDateDay=c):u.startDateDay=t,m.push(u)}if(!s&&b<a&&(b++,b===a)){const t=r.getFullYear(),a=r.getMonth()+1,n=theme.strings.months.full[a],s=theme.strings.months.short[a],d=r.getDay(),i=theme.strings.weekdays.full[d],l=theme.strings.weekdays.short[d],c=r.getDate(),u={};o?(u.endYear=t,u.endMonthFull=n,u.endMonthShort=s,u.endWeekdayFull=i,u.endWeekdayShort=l,u.endDateDay=c):u.endDateDay=+e.maxDate,m.push(u)}}return m}(r,e,t,n,s),d=Boolean("true"===r.showAsDate),[i,l]=o,c=r.dateFormat,u={"%Y":i.startYear&&i.startYear,"%y":i.startYear&&i.startYear.toString().slice(2),"%B":i.startDateMonthFull&&i.startDateMonthFull,"%b":i.startDateMonthShort&&i.startDateMonthShort,"%A":i.startWeekdayFull&&i.startWeekdayFull,"%a":i.startWeekdayShort&&i.startWeekdayShort,"%d":i.startDateDay&&i.startDateDay},y={"%Y":l.endYear&&l.endYear,"%y":l.endYear&&l.endYear.toString().slice(2),"%B":l.endMonthFull&&l.endMonthFull,"%b":l.endMonthShort&&l.endMonthShort,"%A":l.endWeekdayFull&&l.endWeekdayFull,"%a":l.endWeekdayShort&&l.endWeekdayShort,"%d":l.endDateDay&&l.endDateDay};let f=c,m=c;if(d){for(let[e,t]of Object.entries(u))f=f.replaceAll(e,t);for(let[e,t]of Object.entries(y))m=m.replaceAll(e,t)}else f=i?i.startDateDay:"",m=l?l.endDateDay:"";return f===m?f:[f,m]}(a,r,0,e,t)}function s(a,r){const s=e.dataset.position,o=function(e,t){const a=n(e,t),r=t.querySelector(".from-text-delivery_time"),s=t.querySelector(".to-text-delivery_time"),o=t.querySelector(".delivery_time_sufix"),d=t.querySelector(".delivery_time_separator");if(Array.isArray(a)){const[e,n]=a;r.innerText=e,s.innerText=n,t.removeAttribute("hidden")}else r.innerText=a,d.setAttribute("hidden","hidden"),isNaN(a)&&o.setAttribute("hidden","hidden");return t}(r,r.template.cloneNode(!0)),d=a.querySelector(".product-single[data-product-handle]");if(a.querySelectorAll(".dt-info").forEach((e=>{e.remove()})),d)if("under-addtocart-button"===s){const e=d.querySelector(".dbtfy-sold_items"),a=e?e.dataset.position:"",r=d.querySelector(".dbtfy-trust_badge"),n=d.querySelector(".product-single__meta-info"),s=document.createElement("div");s.classList.add("card","card-body","spacer-auto","spacer-top","spacer-bottom"),t.forEach((e=>{s.insertAdjacentElement("beforeend",o)})),e&&"under_add_to_cart_button"===a?t.forEach((t=>{e.insertAdjacentElement("afterend",o)})):r?r.insertAdjacentElement("afterend",s):n.insertAdjacentElement("afterend",s)}else{const e=d.querySelector(".dbtfy-sold_items"),a=e?e.dataset.position:"",r=d.querySelector(".price-container"),n=document.createElement("div");n.classList.add("card","card-body","spacer-auto","spacer-bottom"),t.forEach((e=>{n.insertAdjacentElement("beforeend",o)})),e&&"under_product_price"===a?t.forEach((t=>{e.insertAdjacentElement("afterend",o)})):r&&r.insertAdjacentElement("afterend",n)}}}DeliveryTime(),document.addEventListener("shopify:section:load",(e=>{DeliveryTime()}
44));} function themeDeliveryTimeDestroy() {function destroyDeliveryTime(){document.querySelectorAll(".dbtfy-delivery_time").forEach((e=>{e.remove()}))}document.body.classList.add("dbtfy-delivery_time-destroy"),destroyDeliveryTime(),$(document).on("shopify:section:load",(function(){destroyDeliveryTime()}));} /* end-dbtfy-delivery-time */
45
46  /* start-dbtfy-discount-saved */ function themeDiscountSaved(){} function themeDiscountSavedDestroy() {} /* end-dbtfy-discount-saved */
47
48  /* start-dbtfy-facebook-messenger */ function themeFacebookMessengerDestroy() {} /* end-dbtfy-facebook-messenger */
49
50  /* start-dbtfy-faq-page */ function themeFaqPage(){function FaqPage(){document.body.classList.remove("dbtfy-faq_page-destroy");var e=$(".dbtfy-faq_page");function t(){e.each((function(){var e=$(this),t=e.find(".fq-main").data("section-id"),a=[],i=e.find(".fp-item"),n=e.find(`#FaqSearch-${t}`);i.each((function(){var e=$(this),t={label:e.attr("data-question"),value:e.attr("data-question"),index:e.attr("data-index")};a.push(t)})),n.autocomplete({maxShowItems:5,source:a,search:function(e,t){$("ul.ui-autocomplete").css("max-width",`${n.outerWidth()}px`)},select:function(t,a){const i=e.find(`.fp-item[data-index="${a.item.index}"]`).find(".tab-header");theme.tabs.scroll(i)}})}))}e.length&&theme.loadScript(theme.variables.jQueryUIPluginLink,(()=>{theme.loadScript(theme.variables.jQueryUIAutocompletePluginLink,t)}))}FaqPage();} function themeFaqPageDestroy() {function destroyFaqPage(){const e=document.querySelector(".dbtfy-faq_page");e&&e.remove()}document.body.classList.add("dbtfy-faq_page-destroy"),destroyFaqPage();} /* end-dbtfy-faq-page */
51
52  /* start-dbtfy-gift-wrap */ function themeGiftWrap(){} function themeGiftWrapDestroy() {} /* end-dbtfy-gift-wrap */
53
54  /* start-dbtfy-inactive-tab-message */ function themeInactiveTabMessage(){} /* end-dbtfy-inactive-tab-message */
55
56  /* start-dbtfy-infinite-scroll */ function themeInfiniteScroll(){function InfiniteScroll(){const n=document.querySelector(".dbtfy-infinite_scroll");n&&theme.loadScript(theme.variables.ajaxinatePluginLink,function(){const e=n.dataset.endlessType;new Ajaxinate({container:"#infiniteScrollContainer",pagination:"#infiniteScrollPagination",method:e,callback:function(){document.body.dispatchEvent(new CustomEvent("afterRecommendationLoad"))}}),document.querySelectorAll(".pagination").forEach(n=>{n.setAttribute("hidden","hidden")})})}InfiniteScroll();} function themeInfiniteScrollDestroy() {function destroyInfiniteScroll(){const e=document.querySelector(".dbtfy-infinite_scroll");e&&(e.remove(),"undefined"!=typeof Ajaxinate&&(new Ajaxinate).destroy())}destroyInfiniteScroll();} /* end-dbtfy-instagram-feed */
57
58  /* start-dbtfy-instagram-feed */ function themeInstagramFeed(){} function themeInstagramFeedDestroy() {} /* end-dbtfy-instagram-feed */
59
60  /* start-dbtfy-inventory-quantity */ function themeInventoryQuantity(){} function themeInventoryQuantityDestroy() {} /* end-dbtfy-inventory-quantity */
61
62  /* start-dbtfy-linked-options */ function themeLinkedOptions(){} /* end-dbtfy-linked-options */
63
64  /* start-dbtfy-mega-menu */ function themeMegaMenu(){} function themeMegaMenuDestroy() {} /* end-dbtfy-mega-menu */
65
66  /* start-dbtfy-menu-bar */ function themeMenuBarDestroy() {function destroyMenuBars(){const e=document.querySelectorAll(".dbtfy-menu_bar");e.length&&e.forEach(e=>{e.remove()})}destroyMenuBars();} /* end-dbtfy-menu-bar */
67
68  /* start-dbtfy-minimum-order */ function themeMinimumOrderDestroy() {} /* end-dbtfy-minimum-order */
69
70  /* start-dbtfy-newsletter-popup */ function themeNewsletterPopup(){} function themeNewsletterPopupDestroy() {} /* end-dbtfy-newsletter-popup */
71
72  /* start-dbtfy-order-feedback */ function themeOrderFeedback(){} function themeOrderFeedbackDestroy() {} /* end-dbtfy-order-feedback */
73
74  /* start-dbtfy-order-tracking */ function themeOrderTracking(){function OrderTracking(){const t=document.getElementById("ot-form"),e=document.getElementById("ot-num"),n=document.getElementById("ot-btn");t&&theme.loadScript(theme.variables.trackingPluginLink,function(){t.addEventListener("submit",function(t){t.preventDefault();const i=e.value;if(""===i)return alert("Enter your number."),theme.loadingState.destroy(n),void setTimeout(()=>{n.removeAttribute("disabled")},0);n.setAttribute("disabled","disabled"),n.classList.add("btn--loading");try{!function(t){YQV5.trackSingle({YQ_ContainerId:"ot-container",YQ_Height:560,YQ_Fc:"0",YQ_Lang:"en",YQ_Num:t})}(i)}finally{setTimeout(function(){n.removeAttribute("disabled"),n.classList.remove("btn--loading")},1500)}})})}OrderTracking();} function themeOrderTrackingDestroy() {function destroyOrderTracking(){const r=document.querySelector(".dbtfy-order_tracking");r&&r.remove()}destroyOrderTracking();} /* end-dbtfy-order-tracking */
75
76  /* start-dbtfy-page-transition */ function themePageTransition() {} function themePageTransitionDestroy() {} /* end-dbtfy-page-transition */
77
78  /* start-dbtfy-page-speed-booster */ function themePageSpeedBooster() {function PageSpeedBooster(){theme.loadScript(theme.variables.speedBoosterPluginLink)}PageSpeedBooster();} /* end-dbtfy-page-speed-booster */
79
80  /* start-dbtfy-pricing-table */ function themePricingTableDestroy() {} /* end-dbtfy-pricing-table */
81
82  /* start-dbtfy-product-bullet-points */ function themeProductBulletPoints() {} function themeProductBulletPointsDestroy() {} /* end-dbtfy-product-bullet-points */
83
84  /* start-dbtfy-product-image-crop */ function themeProductImageCrop() {function ProductImageCrop(){document.body.classList.remove("dbtfy-product_image_crop-destroy")}ProductImageCrop();} function themeProductImageCropDestroy() {document.body.classList.add("dbtfy-product_image_crop-destroy");} /* end-dbtfy-product-image-crop */
85
86  /* start-dbtfy-product-swatches */ function themeProductSwatches() {} function themeProductSwatchesDestroy() {} /* end-dbtfy-product-swatches */
87
88  /* start-dbtfy-product-tabs */ function themeProductTabs() {} function themeProductTabsDestroy() {} /* end-dbtfy-product-tabs */
89
90  /* start-dbtfy-quantity-breaks */ function themeQuantityBreaks() {function QuantityBreaks(){document.body.classList.remove("dbtfy-quantity_breaks-destroy");const e=document.querySelector(".dbtfy-quantity_breaks");if(!e)return;const t={singleBreakText:e.dataset.singleBreakText,moreDiscountBeforeQuantityText:e.dataset.moreDiscountBeforeQuantityText,moreDiscountAfterQuantityText:e.dataset.moreDiscountAfterQuantityText,moreDiscountAfterPercentageText:e.dataset.moreDiscountAfterPercentageText,highestDiscountText:e.dataset.highestDiscountText,singleBreakPriceType:e.dataset.singleBreakPriceType,productSectionSelector:"[data-section-type='product-template']",cartBreakSelector:".qb-cart_break",productBreaksContainerSelector:".qb-product_breaks_container",productBreaksSelector:".qb-product_breaks",productBreakSelector:".qb-product_break",quantitySelector:".qb-quantity",moneyFormat:theme.strings.moneyFormat},n={add:function(e){const t=this.getStoredQuantityBreaks();if(!t.length)return void sessionStorage.setItem("breaks-discounts",JSON.stringify([e]));t.some((t=>t.productId===e.productId))||(t.push(e),sessionStorage.setItem("breaks-discounts",JSON.stringify(t)))},getStoredQuantityBreaks:function(){const e=sessionStorage.getItem("breaks-discounts");if(!e)return[];const t=JSON.parse(e);return"object"!=typeof t?[]:t}};function o(){const n=theme.cart;n&&(r(),function(n){const o=e.querySelectorAll(t.cartBreakSelector);if(!o.length)return;const r=n.total_price;let a=n.item_count,c=document.createElement("div"),i=document.createElement("div"),u=document.createElement("div");c.classList.add("dbtfy","dbtfy-quantity_breaks","qb-cart_break"),i.classList.add("card","card-body-xs","text-center","qb-alert"),u.classList.add("qb-text"),c.appendChild(i),i.appendChild(u);let d=Array.from(o).map((e=>{const t=+e.dataset.range,n=e.dataset.discountCode,o=+e.dataset.discountAmount;return{name:n,type:e.dataset.discountType,amount:o,range:t}})),l=Array.from(d,(e=>e.range)),y=l.sort(((e,t)=>e-t)),m=y.reduce(((e,t)=>Math.abs(t-a)<Math.abs(e-a)?t:e));function p(e,n){let o;o="$"===e.type?`<span class="money">${theme.Currency.formatMoney(100*e.amount,t.moneyFormat)}</span>`:`${e.amount}%`,(t.moreDiscountBeforeQuantityText||t.moreDiscountAfterQuantityText||t.moreDiscountAfterPercentageText)&&(u.innerHTML=`${t.moreDiscountBeforeQuantityText} <strong class="text-secondary">${n}</strong> ${t.moreDiscountAfterQuantityText} <strong class="text-secondary">${o}</strong> ${t.moreDiscountAfterPercentageText}</div>`)}let f=m-a,b=d.find((e=>e.range===m));if(0===y.indexOf(m)&&a<m)p(b,f);else if(y.indexOf(m)===y.length-1)t.highestDiscountText&&(u.innerHTML=`<div class="qb
90-highest-discount-text">${t.highestDiscountText}</div>`);else{let e=y.indexOf(m)+1;for(;e;){let t=y[e],o=d.find((e=>e.range===t));if(e++,!t)break;let r=theme.discountCode.getStoredDiscounts(),c=theme.discountCode.getMostValuableDiscount(r,n);const i=s(c,n),u=s(o,n);if(t&&c&&u>i){p(o,t-a);break}}}function h(){const e=document.querySelector("#CartDrawer .cart__total-price-info"),t=document.querySelector("#CartModal .cart__total-price-info"),n="drawer"===theme.settings.cartType?e:t,o=document.querySelector("#cartForm .cart__total-price-info"),r=document.querySelector(".qb-alert-drawer-wrapper");if(r&&r.remove(),n&&!n.parentElement.querySelector(".qb-cart_break")){const e=c.querySelector(".qb-text");e&&e.innerHTML&&n.insertAdjacentHTML("afterend",c.outerHTML);const t=document.querySelector("#CartDrawer .qb-cart_break"),o=document.querySelector("#CartModal .qb-cart_break"),r="drawer"===theme.settings.cartType?t:o;if(r){const e=r.querySelector(".qb-alert");e&&""!==e.innerHTML.trim()&&r.classList.add("qb-alert-drawer-wrapper","spacer-top")}}const a=document.querySelector(".qb-alert-wrapper");if(a&&a.remove(),o&&!o.parentElement.querySelector(".qb-cart_break")){const e=c.querySelector(".qb-text");e&&e.innerHTML&&o.insertAdjacentHTML("afterend",c.outerHTML);const t=document.querySelector("#cartForm .qb-cart_break");if(t){const e=t.querySelector(".qb-alert");e&&""!==e.innerHTML.trim()&&t.classList.add("qb-alert-wrapper","spacer-top-sm","spacer-bottom")}}}o.forEach(((e,t)=>{const o=+e.dataset.range,c=e.dataset.discountCode,i=+e.dataset.discountAmount,u=e.dataset.discountType,d={name:c,type:u,amount:i};0===a?theme.discountCode.removeAllDiscountsByName(c,{role:"cart-break",needUpdate:!1}):theme.discountCode.removeDiscount(c,{role:"cart-break",needUpdate:!1});const l=theme.discountCode.getStoredDiscounts(),y=s(theme.discountCode.getMostValuableDiscount(l,n),n),m=s(d,n),p=(document.querySelector("#CartDrawer .qb-product_break_remains, #cartForm .qb-product_break_remains"),theme.settings.dbtfyGiftWrap),f=+e.dataset.giftWrapProductId,b=n.items.some((e=>e.product_id===f));if(p&&b&&a--,m>y&&m<=r&&a>=o){theme.discountCode.addDiscount(c,u,i,{role:"cart-break"})}})),h();const q=$("#currency-list-header[name='dbtfy-custom-currencies']"),S=theme.strings.shopCurrency;q.length&&Currency.convertAll(S,Currency.currentCurrency,".qb-alert .money");theme.discountCode.init()}(n),r())}function r(){!function(){const n=e.querySelectorAll(t.productBreaksSelector);if(!n.length)return;const o=`\n            <div class="qb-product_breaks_container">\n              ${Array.from(n).reduce(((e,n)=>{const o=n.querySelectorAll(t.productBreakSelector);if(!o.length)return e;const r={showOnProductPage:n.dataset.showOnProductPage,visibilityType:n.dataset.visibilityType,tags:n.dataset.tags,types:n.dataset.types,productId:n.dataset.productId,collection:n.dataset.collection},a=Array.from(o).reduce(((e,n)=>e+`\n                <div class="radio qb-quantity">\n                  <input type="radio"\n                         id="Quantity-break"\n                         name="quantity"\n                         value="${n.dataset.range}"\n                         data-discount-code="${n.dataset.discountCode}"\n                         data-discount-type="${n.dataset.discountType}"\n                         data-discount-amount="${n.dataset.discountAmount}">\n\n                  <label for="Quantity-break">\n                    ${t.singleBreakText}\n                  </label>\n                </div>\n              `),"");return e+`\n              <div class="qb-product_breaks"\n                   data-show-on-product-page="${r.showOnProductPage}"\n                   data-visibility-type="${r.visibilityType}"\n                   data-tags="${r.tags}"\n                   data-types="${r.types}"\n                   data-product-id="${r.productId}"\n                   data-collection="${r.collection}">\n\n                <div class="radio qb-quantity">\n                  <input type="radio"\n                         id="Quantity-break"\n                         name="quantity"\n                         value="1">\n\n                  <label for="Quantity-break">\n                    ${t.singleBreakText}\n                  </label>\n                </div>\n\n                ${a}\n              </div>\n            `}),"")}\n            </div>\n          `;e.insertAdjacentHTML("beforeend",o)}();const o=document.querySelectorAll(t.productSectionSelector);o.length&&(function(n){const o=theme.visibilitySettings.sortVisibilityTypes(e,t.productBreaksSelector);for(let[e,t]of o)t.forEach((e=>{const t={showOnProductPage:e.dataset.showOnProductPage,visibility:e.dataset.visibilityType,tags:e.dataset.tags,types:e.dataset.types,productId:e.dataset.productId,collection:e.dataset.collection,template:e.cloneNode(!0)};
90n.forEach((e=>{const n=e.querySelector(".product-info-JSON");if(!n)return;const o=JSON.parse(n.innerHTML);theme.visibilitySettings.checkForVisibility(o,t,(function(){a(e,t)}))}))}));const r=e.querySelector(t.productBreaksContainerSelector);r&&r.remove()}(o),document.querySelectorAll(t.productBreaksSelector).forEach(((e,n)=>{e.querySelectorAll(t.quantitySelector).forEach(((e,t)=>{const o=e.querySelector("label"),r=e.querySelector("input");o.setAttribute("for",`${r.id}-${n}-${t}`),r.setAttribute("id",`${r.id}-${n}-${t}`),0===t&&r.setAttribute("checked","checked")}))})),function(){const e=document.querySelectorAll(".product-form__input, .single-option-radio, .input-color_swatches"),t=document.querySelectorAll(".product-single__form--no-variants");e.length&&e.forEach((e=>{e.addEventListener("change",(function(e){c(e)})),c({target:e})})),t.forEach((e=>{c({target:e})}))}(),function(e){if(!e.length)return;e.forEach((e=>{const o=e.querySelector(".product-single__form");o&&o.addEventListener("submit",(()=>{!function(e,o){if(!e||!o)return;const r=+e.dataset.productId,a=o.querySelectorAll(t.quantitySelector),c=Array.from(a).map((e=>{const t=e.querySelector("input"),n=+t.value,o=t.dataset.discountCode,r=t.dataset.discountType,a=+t.dataset.discountAmount;if(1!==n)return{breakCount:n,discount:{code:o,type:r,amount:a}}})).filter((e=>e)),s={productId:r,breaks:c};n.add(s)}(e,o)}))}))}(o)),function(){const e=theme.cart,o=n.getStoredQuantityBreaks();o.forEach((t=>{const n=t.productId,o=t.breaks,r=e.items.reduce(((e,t)=>t.product_id===n?e+t.quantity:e),0),a=o.slice().reverse().find((e=>e.breakCount<=r));a?theme.discountCode.removeAllDiscountsByName("",{productId:n,breakCount:{checkFunction:function(e){return e.breakCount>a.breakCount}}}):theme.discountCode.removeAllDiscountsByName("",{productId:n});const c=a?a.discount:null,i=theme.discountCode.getStoredDiscounts(),u=s(theme.discountCode.getMostValuableDiscount(i,e),e),d=s(c,e),l=e.total_price,y=o.find((t=>{const n=s(t.discount,e);return t.breakCount>r&&n>u}));if(d>u)c&&d<=l&&theme.discountCode.addDiscount(c.code,c.type,c.amount,{role:"quantity-breaks",productId:n,breakCount:a.breakCount});else{const e=c?null:y;e&&theme.discountCode.removeDiscount(e.discount.code,{role:"quantity-breaks",productId:n,breakCount:e.breakCount})}theme.discountCode.init()})),o.forEach((n=>{const o=n.productId,r=n.breaks,a=e.items.reduce(((e,t)=>t.product_id===o?e+t.quantity:e),0),
91  c=r.slice().reverse().find((e=>e.breakCount<=a)),i=c?c.discount:null,u=theme.discountCode.getStoredDiscounts(),d=s(theme.discountCode.getMostValuableDiscount(u,e),e),l=s(i,e),y=e.total_price,m=r.find((t=>{const n=s(t.discount,e);return t.breakCount>a&&n>d})),p=m?m.discount:null,f=s(p,e);let b='<div class="dbtfy dbtfy-quantity_breaks qb-product_break"><div class="card card-body-xs text-center qb-alert qb-product_break_remains">';if(l>d)b+=f>l&&f<=y?h():q();else{const t=theme.discountCode.getStoredDiscounts(),n=s(theme.discountCode.getMostValuableDiscount(t,e),e);b+=f>n&&f<=y?h():q()}function h(){let e="";const n=m.breakCount-a;let o=`${p.amount}%`;return"$"===p.type&&(o=`<span class="money">${theme.Currency.formatMoney(100*p.amount,t.moneyFormat)}</span>`),(t.moreDiscountBeforeQuantityText||t.moreDiscountAfterQuantityText||t.moreDiscountAfterPercentageText)&&(e+=`<div class="qb-text">${t.moreDiscountBeforeQuantityText} <strong class="text-secondary">${n}</strong> ${t.moreDiscountAfterQuantityText} <strong class="text-secondary">${o}</strong> ${t.moreDiscountAfterPercentageText}</div>`),e}function q(){return t.highestDiscountText&&d>0?`<div class="qb-highest-discount-text">${t.highestDiscountText}</div>`:""}b+="</div></div>",e.items.forEach((e=>{const t=e.product_id;if(t!==o)return;document.querySelectorAll(`.cart__row[data-product-id='${t}']`).forEach((e=>{const t=e.closest(".ajaxcart-form");if(e.querySelectorAll(".dbtfy-quantity_breaks").forEach((e=>{e.remove()})),e.insertAdjacentHTML("afterbegin",b),t){const t=e.querySelector(".qb-product_break");t&&t.classList.add("spacer-bottom")}}))}));const S=$("#currency-list-header[name='dbtfy-custom-currencies']"),g=theme.strings.shopCurrency;S.length&&Currency.convertAll(g,Currency.currentCurrency,".qb-alert .money"),theme.discountCode.init()}))}()}function a(e,n){if(!e)return;const o=e.querySelectorAll(t.productBreaksSelector),r=document.querySelector(".quantity-sticky_addtocart");r&&r.remove(),o.forEach((e=>{e.remove()}));const a=e.querySelector(".product-single__quantity"),c=a.querySelector(".qty-container");for(a.querySelector(".inline-label").removeAttribute("hidden");c.firstChild;)c.removeChild(c.lastChild);const s=n.template.cloneNode(!0),i=document.body.classList.contains("template-product");"true"!==s.dataset.showOnProductPage&&i?c.setAttribute("hidden","hidden"):c.removeAttribute("hidden"),c.insertAdjacentElement("beforeend",s)}function c(e){const n=e.target.closest(t.productSectionSelector);if(!n)return;const o=n.querySelector("[id^='MainProductSelect']").querySelector("option:checked"),r=o?+o.value:null,a=n.querySelectorAll(t.quantitySelector),c=n.querySelector(".mainProductJson");if(!c)return;const s=JSON.parse(c.innerHTML).variants.find((e=>e.id===r));if(s){a.forEach((e=>{const n=e.querySelector("label"),o=e.querySelector("input"),r=+o.value,a=o.dataset.discountType,c=+o.dataset.discountAmount,i=!!t.singleBreakPriceType&&t.singleBreakPriceType.includes("single");let u=s.price,d=s.compare_at_price,l=t.singleBreakText,y="";if(l=l.replace("_COUNT_",r),r>1)switch(d=i?u:u*r,a){case"$":i?(y=`<span class="money">${theme.Currency.formatMoney(100*c/r,t.moneyFormat)}</span>`,u=d-100*c/r):(y=`<span class="money">${theme.Currency.formatMoney(100*c,t.moneyFormat)}</span>`,u=d-100*c);break;case"%":u=d-d/100*c,y=`${c}%`}if(r>1&&!c||u<0||d<0?e.setAttribute("data-invalid-value","true"):e.removeAttribute("data-invalid-value"),l=d?l.replace("_PRICE_",`\n                  <sp
91an class="qb-price text-money">\n                    <span class="qb-discounted-price on-sale text-sale" data-price="${u}">\n                      <span class="money">\n                        ${theme.Currency.formatMoney(u,t.moneyFormat)}\n                      </span>\n                    </span>\n\n                    <span class="qb-original-price text-strike text-muted" data-compare-price="${d}">\n                      <span class="money">\n                        ${theme.Currency.formatMoney(d,t.moneyFormat)}\n                      </span>\n                    </span>\n                  </span>\n                `):l.replace("_PRICE_",`\n                  <span class="qb-price text-money">\n                    <span class="money">\n                      ${theme.Currency.formatMoney(u,t.moneyFormat)}\n                    <span>\n                  </span>\n                `),r>1){const e=theme.strings.saveLabel.replace("\{\{ saved_amount \}\}",y);l=l.replace("_SAVED_AMOUNT_",`\n                  <span class="badge qb-saved-amount">\n                    ${e}\n                  </span>\n                `)}else l=l.replace("_SAVED_AMOUNT_","");n.innerHTML=l})),function(){theme.isCartLoaded?e():document.addEventListener("dbtfy:cartLoaded",e);function e(){document.querySelectorAll(t.productBreaksSelector).forEach((e=>{const o=e.querySelectorAll(t.quantitySelector),r=e.closest(t.productSectionSelector);if(!r)return;const a=r.querySelector("[id^='MainProductSelect']").querySelector("option:checked"),c=+a.value,s=r.querySelector(".mainProductJson");if(!s)return;const i=JSON.parse(s.innerHTML).variants.find((e=>e.id===c));if(!i)return;const u=theme.cart,d=+a.dataset.inventoryQuantity||0,l=a.dataset.inventoryPolicy,y=d-u.items.reduce(((e,t)=>t.id===c?e+t.quantity:e),0);i.available?"shopify"===i.inventory_management&&"continue"!==l?n(y,o):n(30,o):n(0,o)}))}function n(e,t){t.forEach((t=>{const n=t.querySelector("input"),o=+n.value;1===o&&(n.checked=!0),o>e||t.hasAttribute("data-invalid-value")?t.setAttribute("hidden","hidden"):t.removeAttribute("hidden")}))}}();var i=$("#currency-list-header[name='dbtfy-custom-currencies']"),u=theme.strings.shopCurrency;i.length&&Currency.convertAll(u,Currency.currentCurrency,".qb-price .money, .qb-saved-amount .money")}}function s(e,t,n){const o=n||t.items_subtotal_price;let r=0;if(e)switch(e.type){case"$":r=100*e.amount;break;case"%":r=o*(e.amount/100)}return r}!function(){function n(){theme.isCartLoaded?o():document.addEventListener("dbtfy:cartLoaded",(()=>{o()}))}n(),document.addEventListener("dbtfy:upsellPopupLoaded",(()=>{n()})),$("body").on("ajaxCart.afterCartLoad",(function(e,t){n()})),setTimeout((()=>{document.querySelectorAll("[data-testid]").forEach((n=>{const o=n.closest(t.productSectionSelector);if(!o)return;o.querySelector(t.productBreaksSelector)&&n.addEventListener("click",(r=>{r.preventDefault(),r.stopPropagation();const a=o.querySelector(".product-single__form").querySelectorAll(t.quantitySelector),c=o.querySelector("[id^='MainProductSelect']").querySelector("option:checked"),i=c?+c.value:null;let u="";a.forEach((e=>{const t=e.querySelector("input:checked");t&&(u={variantID:i,quantity:+t.value,discountCode:t.dataset.discountCode,discountType:t.dataset.discountType,discountAmount:t.dataset.discountAmount})})),function(n,o){if(!o)return;let r=`${window.location.origin}/cart/${o.variantID}:${o.quantity}?locale=${Shopify.locale}`;const a=["amazon","apple","google","paypal","shop","venmo"],c=n.dataset.testid.toLowerCase();if(o.discountCode){theme.discountCode.addDiscount(o.discountCode,o.discountType,o.discountAmount),function(n,o){const r=o.closest(".product-single[data-product-handle]").querySelector(`.qb-quantity input[value='${n}']`),a=r?+r.parentElement.querySelector(".qb-discounted-price").dataset.price:0,c=e.querySelectorAll(t.cartBreakSelector),i=Array.from(c).filter((e=>n>=e.dataset.range));let u=null,d=0;if(i.forEach((e=>{const t=s({type:e.dataset.discountType,amount:+e.dataset.discountAmount},theme.cart,a);t>d&&(u=e,d=t)})),!u)return;const l={quantity:+u.dataset.range,discountCode:u.dataset.discountCode,discountType:u.dataset.discountType,discountAmount:u.dataset.discountAmount};n>=l.quantity&&theme.discountCode.addDiscount(l.discountCode,l.discountType,l.discountAmount)}(o.quantity,n);const a=theme.discountCode.getStoredDiscounts(),c=theme.discountCode.getMostValuableDiscount(a,theme.cart);c&&(r=`${r}&discount=${c.name}`),theme.discountCode.removeAllDiscounts()}
91a.forEach((e=>{let t=!1;if(c.includes(e))t=!0;else{const o=n.querySelector("[role='button']");o&&o.dataset.testid.toLowerCase().includes(e)&&(t=!0)}if(t){r=`${r}&payment=${`${e}_pay`}`}})),window.location.assign(r)}(n,u)}),!0)}))}),1e3)}(),$(document).on("shopify:section:load",(function(e){"dbtfy-quantity-breaks"===e.detail.sectionId&&sessionStorage.removeItem("breaks-discounts")}))}QuantityBreaks(),document.addEventListener("shopify:section:load",(e=>{QuantityBreaks()}));} function themeQuantityBreaksDestroy() {function destroyQuantityBreaks(){const t=document.querySelectorAll(".dbtfy-quantity_breaks"),e=document.querySelectorAll(".product-single__quantity");t.length&&t.forEach(t=>{t.remove()}),e.length&&e.forEach(t=>{const e=t.hasAttribute("data-quantity-enabled"),a=t.hasAttribute("data-inventory-quantity-enabled");e||a||t.remove()})}document.body.classList.add("dbtfy-quantity_breaks-destroy"),destroyQuantityBreaks();} /* end-dbtfy-quantity-breaks */
92
93  /* start-dbtfy-quick-compare */ function themeQuickCompare() {} function themeQuickCompareDestroy() {} /* end-dbtfy-quick-compare */
94
95  /* start-dbtfy-quick-view */ function themeQuickView() {} function themeQuickViewDestroy() {} /* end-dbtfy-quick-view */
96
97  /* start-dbtfy-recently-viewed */ function themeRecentlyViewed(){} function themeRecentlyViewedDestroy() {} /* end-dbtfy-recently-viewed */
98
99  /* start-dbtfy-remove-debutify-branding */ function themeRemoveDebutifyBranding(){document.body.classList.remove("dbtfy-remove_debutify_branding-destroy");} function themeRemoveDebutifyBrandingDestroy() {document.body.classList.add("dbtfy-remove_debutify_branding-destroy");} /* end-dbtfy-remove-debutify-branding */
100
101  /* start-dbtfy-shop-protect */ function themeShopProtect() {} /* end-dbtfy-shop-protect */
102
103  /* start-dbtfy-show-second-image-on-hover */ function themeShowSecondImageOnHover(){document.body.classList.remove("dbtfy-show_second_image_on_hover-destroy");} function themeShowSecondImageOnHoverDestroy() {document.body.classList.add("dbtfy-show_second_image_on_hover-destroy");} /* end-dbtfy-show-second-image-on-hover */
104
105  /* start-dbtfy-size-chart */ function themeSizeChart(){} function themeSizeChartDestroy() {} /* end-dbtfy-size-chart */
106
107  /* start-dbtfy-skip-cart */ function themeSkipCart() {} function themeSkipCartDestroy() {} /* end-dbtfy-skip-cart */
108
109  /* start-dbtfy-smart-search */ function themeSmartSearch() {class PredictiveSearch extends HTMLElement{constructor(){super(),this.cachedResults={},this.input=this.querySelector("input[type='search']"),this.predictiveSearchResults=this.querySelector(".ss-section-wrapper"),this.smartSearchSection=this.querySelector(".dbtfy-smart_search"),this.limit=this.smartSearchSection.dataset.limit,this.resourcesType=this.smartSearchSection.dataset.resourcesType,this.input.setAttribute("autocomplete","off"),this.setupEventListeners()}setupEventListeners(){this.querySelector("form.search-bar").addEventListener("submit",this.onFormSubmit.bind(this)),this.input.addEventListener("input",theme.debounce(e=>{this.onChange(e)},300).bind(this)),this.input.addEventListener("focus",this.onFocus.bind(this)),this.addEventListener("focusout",this.onFocusOut.bind(this)),this.addEventListener("keyup",this.onKeyup.bind(this)),this.addEventListener("keydown",this.onKeydown.bind(this))}getQuery(){return this.input.value.trim()}onChange(){const e=this.getQuery();e.length?this.getSearchResults(e):this.close(!0)}onFormSubmit(e){this.getQuery().length&&!this.querySelector(".item-selected a")||e.preventDefault()}onFocus(){const e=this.getQuery();e.length&&("true"===this.getAttribute("results")?this.open():this.getSearchResults(e))}onFocusOut(){setTimeout(()=>{this.contains(document.activeElement)||this.close()})}onKeyup(e){switch(this.getQuery().length||this.close(!0),e.preventDefault(),e.code){case"ArrowUp":this.switchOption("up");break;case"ArrowDown":this.switchOption("down");break;case"Enter":this.selectOption()}}onKeydown(e){"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()}switchOption(e){if(!this.getAttribute("open"))return;const t="up"===e,s=this.querySelector(".item-selected"),i=Array.from(this.querySelectorAll(".ss-item"));let r=i[0];if(t&&!s)return;const n=s?i.indexOf(s):0;!t&&s?r=i[n+1]||i[0]:t&&(r=i[n-1]||i[i.length-1]),r!==s&&(r.classList.add("item-selected"),s&&s.classList.remove("item-selected"),this.input.setAttribute("aria-activedescendant",r.id))}selectOption(){const e=this.querySelector(".item-selected a, .item-selected button");e&&e.click()}getSearchResults(e){const t=e.replace(" ","-").toLowerCase();this.cachedResults[t]?this.renderSearchResults(this.cachedResults[t]):fetch(`${theme.routes.predictive_search_url}?q=${encodeURIComponent(e)}&${encodeURIComponent("resources[type]")}=${this.resourcesType}&${encodeURIComponent("resources[limit]")}=${this.limit}&${encodeURIComponent("resources[options][unavailable_products]")}=last&${encodeURIComponent("resources[options][fields]")}=title,product_type,variants.title,vendor,body&section_id=dbtfy-smart-search`).then(e=>{if(!e.ok){var t=new Error(e.status);throw this.close(),t}return e.text()}).then(e=>{const s=(new DOMParser).parseFromString(e,"text/html").querySelector("#shopify-section-dbtfy-smart-search").innerHTML;this.cachedResults[t]=s,this.renderSearchResults(s)}).catch(e=>{throw this.close(),e})}renderSearchResults(e){this.predictiveSearchResults.innerHTML=e,this.updateCurrencies(),this.setAttribute("results",!0),this.open()}
109updateCurrencies(){var e=$("#currency-list-header[name='dbtfy-custom-currencies']"),t=theme.strings.shopCurrency;e.length&&t&&Currency.currentCurrency&&Currency.convertAll(t,Currency.currentCurrency)}open(){this.predictiveSearchResults.hidden=!1,this.setAttribute("open",!0),this.input.setAttribute("aria-expanded",!0)}close(e=!1){e&&(this.input.value="",this.removeAttribute("results"));const t=this.querySelector(".item-selected");t&&t.classList.remove("item-selected"),this.input.setAttribute("aria-activedescendant",""),this.predictiveSearchResults.hidden=!0,this.removeAttribute("open"),this.input.setAttribute("aria-expanded",!1)}}customElements.define("predictive-search",PredictiveSearch);} function themeSmartSearchDestroy() {function destroySmartSearch(){const e=document.querySelectorAll(".dbtfy-smart_search");e.length&&e.forEach(e=>{e.remove()})}destroySmartSearch();} /* end-dbtfy-smart-search */
110
111  /* start-dbtfy-social-discount */ function themeSocialDiscount(){} function themeSocialDiscountDestroy() {} /* end-dbtfy-social-discount */
112
113  /* start-dbtfy-sticky-addtocart */ function themeStickyAddtocart(){function StickyAddtocart(){document.body.classList.remove("dbtfy-sticky_addtocart-destroy");const t=document.querySelector(".dbtfy-sticky_addtocart");if(!t)return;const e=document.querySelectorAll(".single-option-selector__radio"),n=document.querySelector("[id^='MainProductSelect']"),r=document.querySelector(".product-single__meta--wrapper");let c,a=t.dataset.position,i=t.querySelectorAll(".image-sticky_addtocart"),o=document.querySelector(".product-single__add-to-cart .btn--add-to-cart"),s=t.querySelector("#stickyAddToCart"),d=t.querySelector("form"),u=t.querySelector(".btn--sticky_addtocart"),l=u.querySelector(".btn-text-sticky_addtocart"),y=o.offsetTop+o.offsetHeight,m=theme.strings.moneyFormat,p=theme.variables.animationDuration,h="top"===a?null:"scroll-sticky_addtocart",f="sa-visible",S=!1,b=document.querySelector(".quantity-sticky_addtocart"),k=t.querySelector(".select-sticky_addtocart");function v(){let e=t.querySelector(".total-sticky-price"),n=t.querySelector(".total-sticky-compare-price"),r=t.querySelector(".discount-sticky-price"),c=t.querySelector(".discount-sticky-price-text"),a=k.options[k.selectedIndex];if(!a)return;let i=+a.dataset.price,o=+a.dataset.compareAtPrice,s=Boolean(t.querySelector(".dbtfy-sticky-price-box").dataset.discountSaved);if(e.innerHTML=`<span class="money">${theme.Currency.formatMoney(i,m)}</span>`,i<o){if(n.innerHTML=`<span class="money">${theme.Currency.formatMoney(o,m)}</span>`,n.style.display="inline-block",e.classList.add("text-sale"),r&&s){let t=r.dataset.discountVariant,e=function(t,e,n){let r=null;if("percentage"===n)r=`${Math.floor(100*(e-t)/e)}%`;else{let n=e-t;r=theme.Currency.formatMoney(n,m)}return r}(i,o,t);const n="percentage"===t?e:`<span class="money">${e}</span>`;c.innerHTML=theme.strings.saveFormat.replace(/\{\{ saved_amount \}\}/,n),r.style.display="inline-block"}}else n.style.display="none",e.classList.remove("text-sale"),r&&(r.style.display="none");var d=$("#currency-list-header[name='dbtfy-custom-currencies']"),u=theme.strings.shopCurrency;d.length&&u&&Currency.currentCurrency&&Currency.convertAll(u,Currency.currentCurrency)}function Q(){const t=k.selectedOptions[0];if(!t)return;const e=document.querySelector(".product-single__meta--wrapper"),n=t.hasAttribute("data-remain-qty")?+t.dataset.remainQty:+t.dataset.productQty,r=!e||!e.classList.contains("variant-soldout");n>0&&r?(u.removeAttribute("disabled"),l.innerHTML=theme.strings.addToCart):(u.setAttribute("disabled","disabled"),l.innerHTML=theme.strings.soldOut),document.dispatchEvent(new CustomEvent("stickyATCButtonStateChanged"))}function q(t){document.querySelector(".featured-product-section [data-section-type='product-template']")||t&&!t.includes("no-image")&&(i[1].src=t)}window.updateStickyAtcVariant=!0,b&&(c=b.querySelector("input")),window.addEventListener("scroll",(()=>{window.pageYOffset>y?(s.classList.add(f),h&&document.body.classList.add(h),S=!0):S&&(S=!1,theme.closeTransition({elementToTransition:s,animationSpeed:p},(function(){s.classList.remove(f),h&&document.body.classList.remove(h)})))})),d.addEventListener("submit",(t=>{o&&o.click();const e=document.querySelector(".dbtfy-list-property-fields");
113if(!e)return;const n=e.querySelectorAll("[required]");if(!n)return;const r=Array.from(n).find((t=>("checkbox"!==t.getAttribute("type")||t.checked)&&t.value?void 0:t));return t.preventDefault(),t.stopImmediatePropagation(),r&&setTimeout((()=>{theme.loadingState.destroy(u)}),0),!1})),theme.ProductQuantities.setMaxQuantity(b,k,c),theme.ProductQuantities.setVariantQuantities(b,k,c),theme.ProductQuantities.syncQuantityInputs(c),theme.ProductQuantities.checkQuantity(b,k,c),v(),Q(),b&&b.querySelectorAll("button").forEach((t=>{t.addEventListener("click",(t=>{theme.ProductQuantities.checkQuantity(b,k,c),theme.ProductQuantities.syncQuantityInputs(c)}))})),k&&k.addEventListener("change",(async e=>{let n=e.target,r=n.options[n.selectedIndex].dataset.image,a=n.options[n.selectedIndex].dataset.price;q(r),theme.ProductQuantities.setMaxQuantity(b,k,c),theme.ProductQuantities.checkQuantity(b,k,c),theme.ProductQuantities.syncQuantityInputs(c),Q(),t.querySelector(".total-sticky-price").innerHTML=`<span class="money">${theme.Currency.formatMoney(a,m)}</span>`,v();let i=document.querySelector("#currency-list-header[name='dbtfy-custom-currencies']"),o=theme.strings.shopCurrency;i&&Currency.convertAll(o,Currency.currentCurrency,".dbtfy-sticky-price-box .money"),window.updateStickyAtcVariant&&theme.syncedProductVariant(n,"sticky")})),e.forEach((t=>t.addEventListener("change",(t=>{if(!window.updateStickyAtcVariant)return;let e=k.querySelector(`option[value="${n.value}"]`);!r.classList.contains("variant-unavailable")&&e&&(k.value=n.value,q(n.options[n.selectedIndex].dataset.image),Q(),v())})))),$("body").on("hideStickyAtcOnUnavailableButton",(function(){s&&s.setAttribute("hidden","hidden")})),$("body").on("productQuantitySync",(function(){theme.ProductQuantities.checkQuantity(b,k,c)})),$("body").on("ajaxCart.afterCartLoad",(function(){theme.ProductQuantities.setVariantQuantities(b,k,c),v(),Q()})),$("body").on("updatedProductRemainingQuantities",(function(){Q()})),c&&c.addEventListener("keydown",(function(t){const e=t.code;("ArrowUp"===e||"ArrowDown"===e||e.includes("Digit"))&&setTimeout((()=>{theme.ProductQuantities.checkQuantity(b,k,c),theme.ProductQuantities.syncQuantityInputs(c)}))})),document.addEventListener("productInfoLoaded",(()=>{Q()}))}StickyAddtocart();} function themeStickyAddtocartDestroy() {function destroyStickyAddtocart(){const t=document.querySelectorAll(".dbtfy-sticky_addtocart");t.length&&t.forEach(t=>{t.remove()})}document.body.classList.add("dbtfy-sticky_addtocart-destroy"),destroyStickyAddtocart();} /* end-dbtfy-sticky-addtocart */
114
115  /* start-dbtfy-sticky-header */ function themeStickyHeader(){document.body.classList.remove("dbtfy-sticky_header-destroy");} function themeStickyHeaderDestroy() {function destroyStickyHeader(){document.body.classList.remove("sticky-header")}document.body.classList.add("dbtfy-sticky_header-destroy"),destroyStickyHeader();} /* end-dbtfy-sticky-header */
116
117  /* start-dbtfy-synced-variant-image */ function themeSyncedVariantImage(){function SyncedVariantImage(){const e=document.querySelectorAll("[data-section-type='product-template'], [data-section-type='quick-view-template']");e.length&&e.forEach(e=>{const t=e.querySelectorAll(".product-single__thumb");if(t.length>1){const n=e.dataset.sectionId,o=e.querySelector("[id^='ProductJson-'], .mainProductJson"),a=o?JSON.parse(o.innerHTML):null;if(!a)return;const i=$(e).find(".product-single__media-group-wrapper .slick");if(a.variants.length>1){let o=null;i.on("beforeChange",function(e,t,n,a){o=a}),i.on("afterChange",function(i,c,r){if(o!==r)return;o=0;const s=function(e,t,n){const o=n.querySelector(".product-single__variants, .qv-master-select"),a=o.options[o.selectedIndex];let i=[];
117t.variants.forEach(t=>{t.featured_media&&t.featured_media.id&&t.featured_media.id===e&&i.push(t)});let c=3;for(;c>0;){const e=a.dataset[`option-${c}`];if(""!==e){const t=i.filter(t=>Object.values(t).includes(e));i=t.length?t:i}c--}return i.shift()}(+t[r].closest(".product-single__thumbnail").dataset.mediaId.replace(`${n}-`,""),a,e);var l;s&&function(e,t){const n=t.featured_media.id,o=e.querySelector(`.qv-image-${n}`),a=o?+o.dataset.slickIndex:null,i=e.querySelector(".qv-slick");n&&Number.isInteger(a)&&i&&$(i).slick("slickGoTo",a);[t.option1,t.option2,t.option3].forEach((t,n)=>{const o=e.querySelectorAll(`.single-option-selector__radio[name='option${n+1}'][value='${CSS.escape(t)}'], .single-option-selector__radio[name='option${n+1}'] option[value='${CSS.escape(t)}'], .input-color_swatches[data-option-position='option${n+1}'][value='${CSS.escape(t)}']`);o.forEach(e=>{const n=e.closest(".single-option-selector__radio");e.checked=!0,e.value=t,n&&(n.value=t,n.dispatchEvent(new Event("change"))),e.dispatchEvent(new Event("change"))})})}(e,s),l=document.querySelectorAll("iframe"),Array.prototype.forEach.call(l,e=>{e.contentWindow.postMessage(JSON.stringify({event:"command",func:"stopVideo"}),"*")})})}}})}$(document).on("QuickViewLoaded",function(e){SyncedVariantImage()}),SyncedVariantImage();} /* end-dbtfy-synced-variant-image */
118
119  /* start-dbtfy-trust-badge */ function themeTrustBadge() {function TrustBadge(){document.body.classList.remove("dbtfy-trust_badge-destroy")}TrustBadge();} function themeTrustBadgeDestroy() {function destroyTrustBadge(){const t=document.querySelectorAll(".dbtfy-trust_badge");t.length&&t.forEach((t=>{t.remove()}))}document.body.classList.add("dbtfy-trust_badge-destroy"),destroyTrustBadge(),$("body").on("ajaxCart.afterCartLoad",((t,d)=>{destroyTrustBadge()}));} /* end-dbtfy-trust-badge */
120
121  /* start-dbtfy-upsell-bundles */function themeUpsellBundles(){} function themeUpsellBundlesDestroy(){}/* end-dbtfy-upsell-bundles */
122
123  /* start-dbtfy-upsell-popup */ function themeUpsellPopup() {} function themeUpsellPopupDestroy() {} /* end-dbtfy-upsell-popup */
124
125  /* start-dbtfy-wish-list */ function themeWishList(){} function themeWishListDestroy() {} /* end-dbtfy-wish-list */
126
127  var sections=new theme.Sections;const addons={dbtfy_addtocart_animation:{init:()=>{sections.register("product-template",themeAddtocartAnimation)},destroy:()=>{}},dbtfy_age_check:{init:themeAgeCheck,destroy:themeAgeCheckDestroy},dbtfy_agree_to_terms:{init:themeAgreeToTerms,destroy:themeAgreeToTermsDestroy},dbtfy_automatic_geolocation:{init:themeAutomaticGeolocation,destroy:()=>{}},dbtfy_back_in_stock:{init:themeBackInStock,destroy:themeBackInStockDestroy},dbtfy_back_to_top:{init:themeBackToTop,destroy:themeBackToTopDestroy},dbtfy_cart_discount:{init:themeCartDiscount,destroy:themeCartDiscountDestroy},dbtfy_cart_favicon:{init:themeCartFavicon,destroy:()=>{}},dbtfy_cart_goal:{init:themeCartGoal,destroy:themeCartGoalDestroy},dbtfy_cart_notification:{init:themeCartNotification,destroy:themeCartNotificationDestroy},dbtfy_cart_reminder:{init:themeCartReminder,destroy:themeCartReminderDestroy},dbtfy_cart_savings:{init:themeCartSavings,destroy:themeCartSavingsDestroy},dbtfy_cart_upsell:{init:themeCartUpsell,destroy:themeCartUpsellDestroy},dbtfy_collection_addtocart:{init:themeCollectionAddtocart,destroy:themeCollectionAddtocartDestroy},dbtfy_collection_filters:{init:themeCollectionFilters,destroy:themeCollectionFiltersDestroy},dbtfy_color_swatches:{init:themeColorSwatches,destroy:themeColorSwatchesDestroy},dbtfy_cookie_box:{init:themeCookieBox,destroy:themeCookieBoxDestroy},dbtfy_custom_currencies:{init:themeCustomCurrencies,destroy:themeCustomCurrenciesDestroy},dbtfy_customizable_products:{init:themeCustomizableProducts,destroy:themeCustomizableProductsDestroy},dbtfy_delivery_date:{init:themeDeliveryDate,destroy:themeDeliveryDateDestroy},dbtfy_delivery_time:{init:themeDeliveryTime,destroy:themeDeliveryTimeDestroy},dbtfy_discount_saved:{init:themeDiscountSaved,destroy:themeDiscountSavedDestroy},dbtfy_faq_page:{init:()=>{sections.register("faq-page",themeFaqPage)},destroy:themeFaqPageDestroy},dbtfy_facebook_messenger:{init:()=>{},destroy:themeFacebookMessengerDestroy},dbtfy_gift_wrap:{init:themeGiftWrap,destroy:themeGiftWrapDestroy},dbtfy_inactive_tab_message:{init:themeInactiveTabMessage,destroy:()=>{}},dbtfy_infinite_scroll:{init:themeInfiniteScroll,destroy:themeInfiniteScrollDestroy},dbtfy_instagram_feed:{init:()=>{sections.register("instagram-feed",themeInstagramFeed)},destroy:themeInstagramFeedDestroy},dbtfy_inventory_quantity:{init:themeInventoryQuantity,destroy:themeInventoryQuantityDestroy},dbtfy_linked_options:{init:themeLinkedOptions,destroy:()=>{}},dbtfy_mega_menu:{init:()=>{sections.register("header-section",themeMegaMenu)},destroy:themeMegaMenuDestroy},dbtfy_menu_bar:{init:()=>{},destroy:themeMenuBarDestroy},dbtfy_minimum_order:{init:()=>{}
127,destroy:themeMinimumOrderDestroy},dbtfy_newsletter_popup:{init:themeNewsletterPopup,destroy:themeNewsletterPopupDestroy},dbtfy_order_feedback:{init:themeOrderFeedback,destroy:themeOrderFeedbackDestroy},dbtfy_order_tracking:{init:themeOrderTracking,destroy:themeOrderTrackingDestroy},dbtfy_page_speed_booster:{init:themePageSpeedBooster,destroy:()=>{}},dbtfy_page_transition:{init:themePageTransition,destroy:themePageTransitionDestroy},dbtfy_pricing_table:{init:()=>{},destroy:themePricingTableDestroy},dbtfy_product_bullet_points:{init:themeProductBulletPoints,destroy:themeProductBulletPointsDestroy},dbtfy_product_image_crop:{init:themeProductImageCrop,destroy:themeProductImageCropDestroy},dbtfy_product_swatches:{init:themeProductSwatches,destroy:themeProductSwatchesDestroy},dbtfy_product_tabs:{init:themeProductTabs,destroy:themeProductTabsDestroy},dbtfy_quantity_breaks:{init:themeQuantityBreaks,destroy:themeQuantityBreaksDestroy},dbtfy_quick_compare:{init:themeQuickCompare,destroy:themeQuickCompareDestroy},dbtfy_quick_view:{init:themeQuickView,destroy:themeQuickViewDestroy},dbtfy_recently_viewed:{init:themeRecentlyViewed,destroy:themeRecentlyViewedDestroy},dbtfy_remove_debutify_branding:{init:themeRemoveDebutifyBranding,destroy:themeRemoveDebutifyBrandingDestroy},dbtfy_shop_protect:{init:themeShopProtect,destroy:()=>{}},dbtfy_show_second_image_on_hover:{init:themeShowSecondImageOnHover,destroy:themeShowSecondImageOnHoverDestroy},dbtfy_size_chart:{init:themeSizeChart,destroy:themeSizeChartDestroy},dbtfy_skip_cart:{init:themeSkipCart,destroy:themeSkipCartDestroy},dbtfy_smart_search:{init:themeSmartSearch,destroy:themeSmartSearchDestroy},dbtfy_social_discount:{init:()=>{sections.register("product-template",themeSocialDiscount)},destroy:themeSocialDiscountDestroy},dbtfy_sticky_addtocart:{init:()=>{sections.register("product-template",themeStickyAddtocart)},destroy:themeStickyAddtocartDestroy},dbtfy_sticky_header:{init:themeStickyHeader,destroy:themeStickyHeaderDestroy},dbtfy_synced_variant_image:{init:themeSyncedVariantImage,destroy:()=>{}},dbtfy_trust_badge:{init:themeTrustBadge,destroy:themeTrustBadgeDestroy},dbtfy_upsell_bundles:{init:themeUpsellBundles,destroy:themeUpsellBundlesDestroy},dbtfy_upsell_popup:{init:()=>{sections.register("upsell-popup",themeUpsellPopup)},destroy:themeUpsellPopupDestroy},dbtfy_wish_list:{init:themeWishList,destroy:themeWishListDestroy}},enabledAddons=window.enabledAddons,pAddons=["dbtfy_sticky_header","dbtfy_sticky_addtocart","dbtfy_trust_badge","dbtfy_discount_saved","dbtfy_color_swatches","dbtfy_addtocart_animation","dbtfy_delivery_time","dbtfy_faq_page","dbtfy_cart_discount","dbtfy_shop_protect","dbtfy_automatic_geolocation","dbtfy_quantity_breaks","dbtfy_cart_goal","dbtfy_cart_savings","dbtfy_skip_cart","dbtfy_collection_addtocart","dbtfy_page_transition","dbtfy_upsell_bundles","dbtfy_cart_upsell","dbtfy_cookie_box","dbtfy_order_tracking","dbtfy_agree_to_terms","dbtfy_upsell_popup","dbtfy_mega_menu","dbtfy_remove_debutify_branding"];let pDisplayed=0,sDisplayed=0;for(const[e,t]of Object.entries(addons)){enabledAddons.some((t=>t.name===e))?pAddons.includes(e)?pDisplayed<window.pAmount?(t.init(),pDisplayed++):t.destroy():sDisplayed<window.sAmount?(t.init(),sDisplayed++):t.destroy():t.destroy()}function addonsLimitReached(){const e=document.querySelector("#TrialOverPopup"),t=sessionStorage.getItem("addonsLimitPopupClosed");if(theme.toast.hide(e),t)return;const o=Object.entries(theme.addons.addons),i=o.filter((e=>e[1]));let r=0,d=0;if(i.forEach((e=>{const t=e[0];pAddons.includes(t)?d++:r++})),window.sAmount>=r&&window.pAmount>=d)return;const s=window.plan.toLowerCase(),n={growth:{name:"Growth",maxSAddons:6,maxPAddons:3,link:"https://theme.debutify.com/plans/growth?billing=yearly"},pro:{name:"Pro",maxSAddons:20,maxPAddons:10,link:"https://theme.debutify.com/plans/pro?billing=yearly"},enterprise:{name:"Enterprise",maxSAddons:o.length-25,maxPAddons:25,link:"https://theme.debutify.com/plans/enterprise?billing=yearly"}},a=document.querySelector("#AddonsLimitReachedPopup");if(!a)return;const y=a.querySelectorAll(".to-link-btn, [data-toast-close]"),m=a.querySelector(".addons-limit-popup-text"),c=a.querySelector(".addons-limit-popup-note"),_=a.querySelector(".addons-limit-popup-button"),h=n[s],l=Object.keys(n),b=l.indexOf(s)+1,p=n[l[b]];m.innerHTML=m.innerHTML.replace("[plan_name]",h.name).replace("[current_limit]",`${h.maxSAddons} Standard and ${h.maxPAddons} Premium`).replace("[upgraded_plan]",`<a class="text-link" href="${p.link}">${p.name}</a>`).replace("[upgraded_limit]",`${p.maxSAddons} Standard and ${p.maxPAddons}
127 Premium`),c.innerHTML=c.innerHTML.replace(/&lt;/g,"<").replace(/&gt;/g,">").replaceAll("[current_limit]",`${h.maxSAddons} Standard and ${h.maxPAddons} Premium`),_.href=p.link,theme.toast.show(a),y.forEach((e=>{e.addEventListener("click",(e=>{sessionStorage.setItem("addonsLimitPopupClosed","true"),theme.toast.hide(a)}))}))}Shopify.designMode&&addonsLimitReached();
128})();

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.