PageSourceSearch

https://www.comfii.com.my/cdn/shop/t/4/assets/dbtfy-addons.min.js?v=179260960929671846111759403771

js comfii.com.my collected 2026-10-08 16:57:02 UTC 47,133 bytes, 115 lines download raw bytes

1(function() {
2  /* start-dbtfy-addons */
3
4  /* start-dbtfy-addtocart-animation */ function themeAddtocartAnimation(){} /* 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 BackInStock(){const e=document.querySelector(".dbtfy-back_in_stock");if(!e)return;const t=e.querySelector("form"),o=document.querySelectorAll(".product-single__variants"),r=[];let n=!1;function i(e,t,o){if(n)return void(n=!1);const r=e.getAttribute("data-section-id"),i=e.querySelector(".product-single__meta--wrapper"),c=e.querySelector(".notify_form__label"),s=e.querySelector(".notify_form_message"),a=e.querySelector(".product-single__add-to-cart"),d=e.querySelector("[id^='MainProductSelect']"),u=e.querySelector(".notify_form__inputs"),l=e.querySelector(".notify_form__success"),p=+d.value,y=t[r]?t[r].variants:[],S=!!i&&i.classList.contains("variant-soldout");let h=null,_=!1;if($.each(y,function(e,t){p===this.id&&(h=this,_=this.available)}),l&&o&&l.setAttribute("hidden","hidden"),!_||S){const e=u.dataset.url,t=u.dataset.bodyMessage;u.removeAttribute("hidden"),c.removeAttribute("hidden"),s.setAttribute("data-body",`${t}${e}?variant=${p}`),s.setAttribute("value",`${t}${e}?variant=${p}`),a&&a.setAttribute("hidden","hidden")}else u.setAttribute("hidden","hidden"),c.setAttribute("hidden","hidden"),a&&a.removeAttribute("hidden")}o.length&&o.forEach(e=>{const t=e.closest("[data-section-type='product-template'], [data-section-type='quick-view-template']"),o=t.getAttribute("data-section-id"),c=+t.querySelector(".product-single").dataset.productId,s=t.querySelector(".product-single__meta--wrapper");if(function(e,t){const o=sessionStorage.getItem("notify_products"),r=(o?JSON.parse(o):[]).find(e=>e.id===t);if(!r)return;const i=e.dataset.productSelector,c=e.querySelector(`[id^='MainProductSelect'] option[value='${r.variantId}']`);if(!c)return;const s=[c.getAttribute("data-option-1"),c.getAttribute("data-option-2"),c.getAttribute("data-option-3")];switch(i){case"radio":s.forEach((t,o)=>{const r=e.querySelectorAll(`.single-option-selector__radio[name='option${o+1}'][value='${CSS.escape(t)}'], .input-color_swatches[data-option-position='option${o+1}'][value='${CSS.escape(t)}']`);r.forEach(e=>{e.checked=!0,e.dispatchEvent(new Event("change"))})});break;case"select":s.forEach((t,o)=>{const r=e.querySelectorAll(".single-option-selector__radio");if(!r.length)return;const n=r[o];if(!n)return;const i=n.querySelector(`option[value='${CSS.escape(t)}']`);i&&(n.value=t,n.dispatchEvent(new Event("change")))})}const a=e.querySelector(".notify_form__success"),d=e.querySelector(".notify_form__label"),u=e.querySelector(".notify_form__inputs");a.removeAttribute("hidden"),d.setAttribute("hidden","hidden"),u.setAttribute("hidden","hidden"),n=!0}(t,c),$(`#ProductJson-${o}`).length){if(r[o]=JSON.parse(document.getElementById(`ProductJson-${o}`).innerHTML),s){const e={attributes:!0,childList:!1,subtree:!1};new MutationObserver(()=>{i(t,r)}).observe(s,e)}document.body.addEventListener("change",function(e){i(t,r,!0)}),i(t,r,!0)}}),sessionStorage.removeItem("notify_products"),document.querySelectorAll(".input-color_swatches:checked").forEach(e=>{const t=e.closest(".custom_swatch_elements"),o=t?t.querySelector(".label-color_swatches"):null,r=o?o.getAttribute("data-label"):null,n=e.value;o&&r&&(o.innerHTML=`${r}: <span class="variant-label-option-value">${n}</span>`)}),t&&t.addEventListener("submit",()=>{const e=t.closest("div[data-section-type='product-template']"),o=+e.querySelector(".product-single").dataset.productId,r=e.querySelector("[id^='MainProductSelect']").querySelector("option:checked"),n=r?+r.value:null,i=sessionStorage.getItem("notify_products");let c=[];i&&(c=JSON.parse(i)),(c=c.filter(e=>e.id!==o)).push({id:o,variantId:n}),sessionStorage.setItem("notify_products",JSON.stringify(c))})}BackInStock();} function themeBackInStockDestroy() {function destroyBackInStock(){const c=document.querySelectorAll(".dbtfy-back_in_stock");
12c.length&&c.forEach(c=>{c.remove()})}destroyBackInStock();} /* end-dbtfy-back-in-stock */
13
14  /* start-dbtfy-cart-discount */ function themeCartDiscount(){function CartDiscount(){var t=$(".dbtfy-cart_discount"),n=$(".input-cart_discount");t.length&&(n.on("keydown",function(t){13===t.keyCode&&(t.preventDefault(),""!==$(this).val()&&$(t.target).closest("form").find("button[name='checkout']").trigger("click"))}),$(document).on("click",".cd-apply",function(t){if(t.preventDefault(),""!==$(t.target).closest(".CartDiscount").find(".input-cart_discount").val()){var n=$(t.target).closest("form").find("button[name='checkout']");n.length||(n=$(t.target).closest("#CartDrawer").find("button[name='checkout']")),n.trigger("click")}}))}CartDiscount(),$("body").on("ajaxCart.afterCartLoad",function(t,n){CartDiscount()});} function themeCartDiscountDestroy() {function destroyCartDiscount(){const t=document.querySelectorAll(".dbtfy-cart_discount");t.length&&t.forEach(t=>{t.remove()})}destroyCartDiscount(),$("body").on("ajaxCart.afterCartLoad",function(t,o){destroyCartDiscount()});} /* end-dbtfy-cart-discount */
15
16  /* 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 */
17
18  /* start-dbtfy-cart-goal */ function themeCartGoal(){async function CartGoal(e){const t=document.querySelector(".dbtfy-cart_goal_list");if(!t)return;const a=t.querySelectorAll(".dbtfy-cart_goal");if(!a.length)return;const r=await theme.getUserLocationData();if(!r)return;const n=r.country_name,o={AF:"Africa",AN:"Antarctica",AS:"Asia",EU:"Europe",NA:"North america",OC:"Oceania",SA:"South america"}[r.continent_code],c=Array.from(a).find((e=>{const t=e.dataset.goalRegion,a=theme.capitalizeFirstLetter(t),r=theme.capitalizeFirstLetter(n);if(a===theme.capitalizeFirstLetter(o)||a===r||"All"===a)return e}));if(a.forEach((e=>{e!==c&&e.remove()})),!c)return;const s=c.dataset.beforeAmountText,i=c.dataset.afterAmountText,l=c.dataset.goalReachedText,d=c.querySelector(".cg-wrapper"),u=c.querySelector(".cg-free-shipping-text"),m=c.querySelector(".cg-progress-bar"),p=parseInt(c.dataset.cartTotalCount);let y=parseFloat(c.dataset.goalAmount),f=parseFloat(c.dataset.cartTotalAmount);const g=document.querySelector("#currency-list-header"),h=theme.strings.shopCurrency;let A="";g&&(A=g.value,A!==h&&(y=parseFloat(c.querySelector("span.cart_goal_amount_new").innerText))),e&&(f=e.total_price/100);const S=parseFloat(y-f);let _=0,b=`<span>${l}</span>`;if(S>0){const e=theme.strings.moneyFormat;_=100*(y-S)/y,b=`<span>${s} <span class="cg-goal-amount text-money text-secondary"><span class="money">${theme.Currency.formatMoney(100*S,e)}</span></span> ${i}</span>`}else _=100;if(u.innerHTML=b,m.style.width=`${_}%`,d.hidden=!1,e?e.item_count||(d.hidden=!0):0===p&&(d.hidden=!0),document.body.classList.contains("template-cart")){const e=c.cloneNode(!0),t=document.querySelector(".page-title-wrapper"),a=t.nextElementSibling;a&&a.classList.contains("dbtfy-cart_goal")&&a.remove(),t.insertAdjacentElement("afterend",e)}const C=document.querySelector("#CartDrawer"),L=C.querySelector(".cart-products");if(C&&L){const e=c.cloneNode(!0),t=L.previousSibling;t&&t.classList.contains("dbtfy-cart_goal")&&t.remove(),e.classList.add("drawer__inner-section"),L.insertAdjacentElement("beforebegin",e)}document.dispatchEvent(new CustomEvent("CartGoalLoaded"))}CartGoal(),$("body").on("ajaxCart.afterCartLoad",(function(e,t){CartGoal(t)}));} 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 */
19
20  /* start-dbtfy-cart-reminder */ function themeCartReminder(){function CartReminder(){function e(){const e=theme.cart.items.length;if(0===e)return;const t=theme.getRandomNumberInRange(0,e-1);!function(e){document.querySelectorAll(".notification-toast-image").forEach(t=>{e.url?t.innerHTML=`<img src="${e.url}" alt="${e.alt}">`:t.innerHTML=theme.variables.productPlaceholderSvg})}(theme.cart.items[t].featured_image)}document.querySelectorAll(".dbtfy-cart_reminder").length&&(e(),theme.NotificationToast.init(".dbtfy-cart_reminder_wrapper",e,!0))}document.addEventListener("shopify:section:load",e=>{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 */
21
22  /* start-dbtfy-cart-savings */ function themeCartSavings(){function CartSavings(){const t={cartCurrentValues:{price:0,qt:0,compareAtPrice:0,cartSavingsValue:0,cartTotalWithDiscount:0},drawerCartCurrentValues:{price:0,qt:0,compareAtPrice:0,cartSavingsValue:0,cartTotalWithDiscount:0}};function e(e){function a(){let a="";a=e?"drawer"===e?"#CartDrawer":"modal"===e?"#CartModal":".dbtfy-cart-page-container":"#CartDrawer, .dbtfy-cart-page-container, #CartModal";const r=document.querySelectorAll(a),n=theme.strings.moneyFormat;
22r.forEach(e=>{const a=e.querySelector(".cart_savings-wrapper");if(!a)return;const r=e.querySelector("[data-cart-total]"),c=e.querySelector("[data-cart-total-value]"),o=a.parentElement.querySelector(".cart-discount"),s=o?+o.dataset.discountValue:0,i=a.querySelector(".cart_savings-wrapper-text"),u=+a.dataset.totalWithComparePrice,l=+a.dataset.totalSavingsByComparePrice,d=theme.Currency.formatMoney(u,n),p=!!r.querySelectorAll(".cart__subtotal-discounted").length,m=theme.cart.item_count;let y=l;if(y>0||s>0){let e=u-y;const l=a.closest(".main-content")?"cartCurrentValues":"drawerCartCurrentValues",C=t[l];if(C.qt!=m&&C.compareAtPrice===u&&p)return;if(C.qt=m,o&&(e=u-(y+=s),C.price===e&&C.compareAtPrice===u&&p))return;if(C.price===e&&C.compareAtPrice===u&&p)return;C.price=e,C.compareAtPrice=u;const h=theme.Currency.formatMoney(e,n);i.innerHTML=`<span class="money">${theme.Currency.formatMoney(y,n)}</span>`,f(r,!0,d,h),c.innerHTML=`<span class="money">${h}</span>`,a.removeAttribute("hidden")}else f(r,!1,d),c.innerHTML=`<span class="money">${d}</span>`,a.setAttribute("hidden","hidden");function f(t,e,a,r){t.querySelector(".cart__subtotal-compare-at")&&(t.innerHTML=""),t.innerHTML=e?`<span class="cart__subtotal-discounted text-sale"><span class="money">${r}</span></span> <span class="cart__subtotal-discounted text-muted text-strike"><span class="money">${a}</span></span>`:`<span class="money">${a}</span>`}})}theme.cart?a():document.addEventListener("dbtfy:cartLoaded",a)}e(),$("body").on("ajaxCart.afterCartLoad",function(t,a,r){e(r)}),document.addEventListener("dbtfy:cartDiscountSaved",()=>{e()})}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 */
23
24  /* start-dbtfy-cart-upsell */ function themeCartUpsell(){} function themeCartUpsellDestroy() {} /* end-dbtfy-cart-upsell */
25
26  /* start-dbtfy-collection-addtocart */ function themeCollectionAddtocart(){} function themeCollectionAddtocartDestroy() {} /* end-dbtfy-collection-addtocart */
27
28  /* start-dbtfy-collection-filters */ function themeCollectionFilters(){function CollectionFilters(){document.body.classList.remove("dbtfy-collection_filters-destroy");const e=document.querySelector(".collection-section"),t=document.querySelector(".filter-clear-all"),r=document.querySelector("#dbtfyCollectionFilter .drawer__footer");function o(){document.querySelectorAll(".filter-card-item input[id^='filter_group']").forEach((e=>{e.addEventListener("change",(t=>{if(e.closest(".checkbox").classList.contains("disabled"))return;const r=e.value;let o=[];if(Shopify.queryParams.constraint&&(o=Shopify.queryParams.constraint.split("+")),r){const e=o.indexOf(r);e>=0?o.splice(e,1):o.push(r)}o.length?Shopify.queryParams.constraint=o.join("+"):delete Shopify.queryParams.constraint,c()}))}))}function n(){if(Shopify.queryParams={},location.search.length){const e=location.search.substr(1).split("&");let t="";for(let r=0;r<e.length;r++)t=e[r].split("="),t.length>1&&(Shopify.queryParams[decodeURIComponent(t[0])]=decodeURIComponent(t[1]))}}function c(e){delete Shopify.queryParams.page;const t=i(e);history.pushState({param:Shopify.queryParams},t,t),l(t)}function i(e){const t=new URLSearchParams(Object.entries(Shopify.queryParams)).toString().replace(/%2B/g,"+"),r=document.querySelector("#sortBy"),o=r?`sort_by=${r.value}`:"";return e?""!==t?e+"?"+t:e+"?"+o:t?location.pathname+"?"+t:location.pathname+"?"+o}function l(e){fetch(e).then((function(e){return e.text()})).then((function(e){const t=(new DOMParser).parseFromString(e,"text/html"),r=function(e){const t=document.querySelector(".collection-list-products"),r=e.querySelector(".collection-list-products"),o=null!==t.getAttribute("id")?".dbtfy-infinite_scroll":".pagination",n=e.querySelector(o),c=document.querySelector(o);c&&c.remove();n&&r.insertAdjacentElement("afterend",n);return e}(t);!function(e){const t=document.querySelector("#dbtfyCollectionFilter").querySelector(".drawer-left__inner"),r=e.querySelector("#dbtfyCollectionFilter").querySelector(".drawer-left__inner");t&&(t.innerHTML=r.innerHTML);s(),o(),u(),a()}(t),function(e){const t=e.querySelector(".collection-and-pagination-container"),r=document.querySelector(".collection-and-pagination-container"),o=r.querySelector(".collection-list-products");r.innerHTML=t.innerHTML,o&&null!==o.getAttribute("id")?themeInfiniteScroll():d();themeQuickView()}(r),function(e){const t=document.querySelector(".hero-container"),r=document.querySelector(".simple_collection_header"),o=e.querySelector(".hero-container"),n=e.querySelector(".hero-header-style"),c=e.querySelector(".simple_collection_header"),i=document.querySelector("#mainContent");document.title=e.title,t?(document.querySelector(".hero-header-style").remove(),t.remove()):r&&r.remove();o?(i.insertAdjacentElement("afterbegin",o),i.insertAdjacentElement("afterbegin",n)):document.querySelector(".collection-controls").insertAdjacentHTML("beforebegin",c.outerHTML)}(r),document.body.dispatchEvent(new CustomEvent("afterRecommendationLoad"))}))}function a(){document.querySelectorAll(".dbtfy-filter-list-links a").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();let r=e.closest("li"),o=document.querySelector(".dbtfy-filter-list-links li.active");if(!r.classList.contains("active")){let t=e.href;delete Shopify.queryParams.q,c(t),o&&o.classList.remove("active"),r.classList.add("active")}}))}))}function s(){const e=document.querySelectorAll(".dbtfy-filter-tags-group");let o=0;e.forEach((e=>{let t=e.querySelectorAll("input"),r=Array.from(t).filter((e=>!0===e.checked)),n=e.querySelector(".filter-clear");r.length>0?(n&&(n.hidden=!1),o++):n&&(n.hidden=!0)})),o?(t&&(t.hidden=!1),r&&(r.hidden=!1)):(t&&(t.hidden=!0),r&&(r.hidden=!0))}function u(){document.querySelectorAll(".filter-clear").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();let r=[],o=e.closest(".dbtfy-filter-tags-group").querySelectorAll("input"),n=Array.from(o).filter((e=>!0===e.checked));Shopify.queryParams.constraint&&(r=Shopify.queryParams.constraint.split("+")),n.forEac
28h((e=>{let t=e.value;if(e.checked=!1,t){let e=r.indexOf(t);e>=0&&r.splice(e,1)}})),r.length?Shopify.queryParams.constraint=r.join("+"):delete Shopify.queryParams.constraint,c()}))}))}function d(){const t=document.querySelector(".pagination");if(!t)return;t.querySelectorAll(".page a").forEach((t=>{t.addEventListener("click",(r=>{const o=t.getAttribute("href").match(/page=\d+/g);if(o&&(Shopify.queryParams.page=parseInt(o[0].match(/\d+/g)),Shopify.queryParams.page)){const t=i();history.pushState({param:Shopify.queryParams},t,t),l(t),e.scrollIntoView({block:"start",behavior:"smooth"})}r.preventDefault()}))}))}e&&(window.addEventListener("popstate",(e=>{history.scrollRestoration="manual",n(),c()})),n(),s(),u(),function(){const e=document.querySelectorAll(".filter-clear");t&&t.addEventListener("click",(t=>{e.forEach((e=>{e.hidden=!0})),delete Shopify.queryParams.constraint,c()}))}(),d(),o(),a())}document.addEventListener("shopify:section:select",(e=>{"dbtfy-collection-filters"===e.detail.sectionId&&timber.FilterDrawer.open(e)})),document.addEventListener("shopify:section:deselect",(e=>{"dbtfy-collection-filters"===e.detail.sectionId&&timber.FilterDrawer.close(e)})),CollectionFilters();} function themeCollectionFiltersDestroy() {function CollectionFiltersDestroy(){const e=document.querySelector("#shopify-section-dbtfy-collection-filters"),o=document.querySelector(".collection-filters-btn"),t=o?o.closest("div"):null;e&&e.remove(),t&&t.remove()}document.body.classList.add("dbtfy-collection_filters-destroy"),CollectionFiltersDestroy();} /* end-dbtfy-collection-filters */
29
30  /* start-dbtfy-color-swatches */ function themeColorSwatches(){} function themeColorSwatchesDestroy() {} /* end-dbtfy-color-swatches */
31
32  /* start-dbtfy-cookie-box */ function themeCookieBox(){} function themeCookieBoxDestroy() {} /* end-dbtfy-cookie-box */
33
34  /* start-dbtfy-custom-currencies */ function themeCustomCurrencies(){} function themeCustomCurrenciesDestroy() {} /* end-dbtfy-custom-currencies */
35
36  /* start-dbtfy-customizable-products */ function themeCustomizableProducts() {function CustomizableProducts(){const e=document.querySelector(".dbtfy-customizable_products");if(!e)return;if(!e.querySelectorAll(".line-item-property__field").length)return;const t=theme.visibilitySettings.sortVisibilityTypes(e,".line-item-property__field"),r=document.querySelectorAll(".featured-product-section, .product-section");for(let[e,c]of t)c.forEach(e=>{const t={visibility:e.dataset.visibilityType,tags:e.dataset.tags,types:e.dataset.types,productId:e.dataset.productId,collection:e.dataset.collection,template:e.cloneNode(!0)};r.forEach(e=>{const r=e.querySelector(".mainProductJson");if(!r)return;const c=JSON.parse(r.innerHTML);theme.visibilitySettings.checkForVisibility(c,t,function(){o(e,t)})})});function o(e,t){const r=t.template.cloneNode(!0),o=e.querySelector(".product-single__add-to-cart"),c=e.querySelector(".dbtfy-list-property-fields");if(c)c.insertAdjacentElement("beforeend",r);else{const e=document.createElement("div");e.classList.add("dbtfy-list-property-fields"),e.insertAdjacentElement("beforeend",r),o.insertAdjacentElement("beforebegin",e)}}document.querySelectorAll(".dbtfy-list-property-fields").forEach((e,t)=>{const r=e.querySelectorAll(".line-item-property__field");r.forEach((e,r)=>{const o=e.querySelectorAll("input:not([type='hidden']), textarea, select"),c=e.querySelectorAll(".cp-checkbox-group-checkbox"),i=e.querySelector(".cp-checkbox-group-hidden");c.forEach(e=>{e.addEventListener("change",()=>{const e=Array.from(c).reduce((e,t)=>t.checked?`${e}, ${t.value}`:e,"").slice(2);i.value=e})}),o.forEach((e,o)=>{const c=e.parentElement.querySelector("label");c.setAttribute("for",`${e.id}-${t}-${r}-${o}`),e.setAttribute("id",`${e.id}-${t}-${r}-${o}`)})})})}CustomizableProducts();} function themeCustomizableProductsDestroy() {function destroyCustomizableProducts(){const o=document.querySelector(".dbtfy-customizable_products");o&&o.remove()}destroyCustomizableProducts();} /* end-dbtfy-customizable-products */
37
38  /* start-dbtfy-delivery-date */  function themeDeliveryDate() {} function themeDeliveryDateDestroy() {} /* end-dbtfy-delivery-date */
39
40  /* start-dbtfy-delivery-time */  function themeDeliveryTime() {} function themeDeliveryTimeDestroy() {} /* end-dbtfy-delivery-time */
41
42  /* start-dbtfy-discount-saved */ function themeDiscountSaved(){function DiscountSaved(){const e=document.querySelectorAll(".dbtfy-discount_saved");function t(e){const t=e.querySelector("[id^='MainProductSelect']");if(!t)return;
42e.querySelectorAll(".number-discount_saved").forEach(e=>{e.classList.add("hide")});const o=t.value;if(!o)return;const c=e.querySelector(`.discount_saved-${o}`);c&&c.classList.remove("hide")}e.length&&e.forEach(e=>{const o=e.closest("[data-section-type='product-template']");o&&(t(o),o.querySelectorAll(".product-form__input, .single-option-selector__radio").forEach(e=>{e.addEventListener("change",()=>{t(o)})}))})}DiscountSaved();} function themeDiscountSavedDestroy() {function destroyDiscountSaved(){const e=document.querySelectorAll(".dbtfy-discount_saved"),t=document.querySelectorAll(".dbtfy-sticky_addtocart .discount-sticky-price");e.forEach(e=>{e.remove()}),t.forEach(e=>{e.remove()})}destroyDiscountSaved();} /* end-dbtfy-discount-saved */
43
44  /* start-dbtfy-facebook-messenger */ function themeFacebookMessengerDestroy() {} /* end-dbtfy-facebook-messenger */
45
46  /* start-dbtfy-faq-page */ function themeFaqPage(){} function themeFaqPageDestroy() {} /* end-dbtfy-faq-page */
47
48  /* start-dbtfy-gift-wrap */ function themeGiftWrap(){} function themeGiftWrapDestroy() {} /* end-dbtfy-gift-wrap */
49
50  /* start-dbtfy-inactive-tab-message */ function themeInactiveTabMessage(){function InactiveTabMessage(){const e=document.title,t=theme.settings.dbtfyInactiveTabFirstMessage,n=theme.settings.dbtfyInactiveTabSecondMessage?theme.settings.dbtfyInactiveTabSecondMessage:e,a=theme.decodeString(t),i=theme.decodeString(n),d=!!theme.settings.dbtfyInactiveTabSecondMessage,s=1e3*theme.settings.dbtfyInactiveTabDelay;let c=!1,o="";a&&document.addEventListener("visibilitychange",function(t){document.dispatchEvent(new CustomEvent("tabChanged",{detail:{isTabChanged:document.hidden}})),!document.hidden?(clearInterval(o),document.title=e):d?o=setInterval(function(){document.title=c?i:a,c=!c},s):document.title=a})}InactiveTabMessage();} /* end-dbtfy-inactive-tab-message */
51
52  /* start-dbtfy-infinite-scroll */ function themeInfiniteScroll(){} function themeInfiniteScrollDestroy() {} /* end-dbtfy-instagram-feed */
53
54  /* start-dbtfy-instagram-feed */ function themeInstagramFeed(){} function themeInstagramFeedDestroy() {} /* end-dbtfy-instagram-feed */
55
56  /* start-dbtfy-inventory-quantity */ function themeInventoryQuantity(){} function themeInventoryQuantityDestroy() {} /* end-dbtfy-inventory-quantity */
57
58  /* start-dbtfy-linked-options */ function themeLinkedOptions(){} /* end-dbtfy-linked-options */
59
60  /* start-dbtfy-mega-menu */ function themeMegaMenu(){} function themeMegaMenuDestroy() {} /* end-dbtfy-mega-menu */
61
62  /* 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 */
63
64  /* start-dbtfy-minimum-order */ function themeMinimumOrderDestroy() {} /* end-dbtfy-minimum-order */
65
66  /* start-dbtfy-newsletter-popup */ function themeNewsletterPopup(){} function themeNewsletterPopupDestroy() {} /* end-dbtfy-newsletter-popup */
67
68  /* start-dbtfy-order-feedback */ function themeOrderFeedback(){} function themeOrderFeedbackDestroy() {} /* end-dbtfy-order-feedback */
69
70  /* start-dbtfy-order-tracking */ function themeOrderTracking(){} function themeOrderTrackingDestroy() {} /* end-dbtfy-order-tracking */
71
72  /* start-dbtfy-page-transition */ function themePageTransition() {} function themePageTransitionDestroy() {} /* end-dbtfy-page-transition */
73
74  /* start-dbtfy-page-speed-booster */ function themePageSpeedBooster() {function PageSpeedBooster(){theme.loadScript(theme.variables.speedBoosterPluginLink)}PageSpeedBooster();} /* end-dbtfy-page-speed-booster */
75
76  /* start-dbtfy-pricing-table */ function themePricingTableDestroy() {} /* end-dbtfy-pricing-table */
77
78  /* start-dbtfy-product-bullet-points */ function themeProductBulletPoints() {function ProductBulletPoints(){const t=document.querySelector(".dbtfy-product_bullet_points");if(!t)return;const e=t.querySelectorAll(".pbp-point");if(!e.length)return;const n=document.querySelectorAll(".product-single[data-product-handle]"),i={};
78if(n.length&&n.forEach(t=>{const n=t.querySelector(".pbp-points"),o=t.querySelector(".product-info-JSON"),c=o?JSON.parse(o.innerHTML):null;if(n&&n.remove(),!c)return;const r=c.handle;e.forEach(t=>{const e={visibility:t.dataset.visibilityType,tags:t.dataset.visibilityProductTags,types:t.dataset.visibilityProductTypes,productId:t.dataset.visibilityProduct,collection:t.dataset.visibilityCollection};theme.visibilitySettings.checkForVisibility(c,e,function(){!function(t,e){i[t]?i[t].includes(e)||i[t].push(e):i[t]=[e]}(r,t)})})}),!Object.keys(i).length)return;const o=t.dataset.position,c=t.dataset.alignment,r=t.dataset.displayType;for(const[t,e]of Object.entries(i)){const n=document.querySelector(`.product-single[data-product-handle="${t}"]`),i=n.querySelector(".product-wl-qc-buttons-wrapper");if(!n)return;let s=null;const l=[];switch(o){case"under-product-price":s=i||n.querySelector(".price-container");break;case"under-addtocart-button":s=n.querySelector(".product-single__add-to-cart")}if(!s)return;const d=document.createElement("ul");d.classList.add("pbp-points","inline-list",...l),"left"===c?d.classList.add("text-left"):d.classList.add("text-center"),"newline"===r&&(d.style.display="grid"),e.forEach(t=>{d.insertAdjacentElement("beforeend",t.cloneNode(!0))}),s.insertAdjacentElement("afterend",d)}}ProductBulletPoints(),document.addEventListener("shopify:section:load",t=>{ProductBulletPoints()});} function themeProductBulletPointsDestroy() {function destroyProductBulletPoints(){const t=document.querySelector(".dbtfy-product_bullet_points");t&&t.remove()}destroyProductBulletPoints();} /* end-dbtfy-product-bullet-points */
79
80  /* start-dbtfy-product-image-crop */ function themeProductImageCropDestroy() {} /* end-dbtfy-product-image-crop */
81
82  /* start-dbtfy-product-swatches */ function themeProductSwatches() {function ProductSwatches(){const e=document.querySelector(".dbtfy-product_swatches");if(!e)return;const t=e.dataset.showInProductGrid;document.querySelectorAll(".product-section, .featured-product-section").forEach(t=>{const o=+t.querySelector(".product-single").dataset.productId,r=e.cloneNode(!0),n=r.querySelectorAll(".ps-group"),d=theme.settings.enableHistoryState;if(c(n,o,r,t,!1),!d){const e=window.location.pathname.split("?");window.history.replaceState({},"",e[0])}});const o=document.querySelectorAll(".grid-product, .list-product");function c(e,t,o,c,r,n){if(e.length){e.forEach(e=>{const o=e.querySelectorAll("li");let c=!1;o.forEach(e=>{if(+e.dataset.productId===t){const t=e.dataset.productOption,o=e.closest(".ps-group").querySelector(".variant-label-option-value");c=!0,e.classList.add("active"),o&&(o.innerHTML=t)}}),(!c||o.length<=1)&&e.remove()}),(c?c.querySelectorAll(".product_swatches_container"):[]).forEach(e=>{e.remove()});const d=c?c.querySelector(".pbp-points"):null,s=c?c.querySelector(".price-container-desktop"):null,a=document.createElement("div");if(a.classList.add("product_swatches_container"),a.insertAdjacentElement("afterbegin",o),s){s.nextElementSibling.classList.contains("pbp-points")&&d?d.insertAdjacentElement("afterend",a):s.insertAdjacentElement("afterend",a)}o.hidden=!1,a.hidden=!1,r&&(n?(n.insertAdjacentElement("afterend",a),o.classList.add("list-version")):(c&&c.insertAdjacentElement("afterbegin",a),o.classList.add("card-version")))}}"true"===t&&o.forEach(t=>{const o=t.classList.contains("empty-state"),r=+t.dataset.productId,n=t.querySelector(".grid-product__meta, .list-product__details-wrapper"),d=t.querySelector(".list-product__price-wrap"),s=e.cloneNode(!0),a=s.querySelectorAll(".ps-group");o||c(a,r,s,n,!0,d)})}ProductSwatches(),document.addEventListener("dbtfy:addedRecentlyViewedProduct",()=>{ProductSwatches()}),document.addEventListener("shopify:section:load",e=>{ProductSwatches()}),$("body").on("afterRecommendationLoad",function(e){ProductSwatches()});} function themeProductSwatchesDestroy() {function destroyProductSwatches(){const e=document.querySelector(".dbtfy-product_swatches");e&&e.remove()}destroyProductSwatches(),document.addEventListener("dbtfy:addedRecentlyViewedProduct",()=>{destroyProductSwatches()});} /* end-dbtfy-product-swatches */
83
84  /* start-dbtfy-product-tabs */ function themeProductTabs() {} function themeProductTabsDestroy() {} /* end-dbtfy-product-tabs */
85
86  /* start-dbtfy-quantity-breaks */ function themeQuantityBreaks() {} function themeQuantityBreaksDestroy() {} /* end-dbtfy-quantity-breaks */
87
88  /* start-dbtfy-quick-compare */ function themeQuickCompare() {} function themeQuickCompareDestroy() {} /* end-dbtfy-quick-compare */
89
90  /* start-dbtfy-quick-view */ function themeQuickView() {} function themeQuickViewDestroy() {} /* end-dbtfy-quick-view */
91
92  /* start-dbtfy-recently-viewed */ function themeRecentlyViewed(){} function themeRecentlyViewedDestroy() {} /* end-dbtfy-recently-viewed */
93
94  /* start-dbtfy-shop-protect */ function themeShopProtect() {} /* end-dbtfy-shop-protect */
95
96  /* start-dbtfy-size-chart */ function themeSizeChart(){}
96 function themeSizeChartDestroy() {} /* end-dbtfy-size-chart */
97
98  /* start-dbtfy-smart-search */ function themeSmartSearch() {} function themeSmartSearchDestroy() {} /* end-dbtfy-smart-search */
99
100  /* start-dbtfy-social-discount */ function themeSocialDiscount(){function SocialDiscount(){var o=$(".dbtfy-social_discount"),t=$(".sd-btn"),e=$("#socialDiscountPopup"),i=$(".sd-social-sharing a"),s=$("#socialDiscountRewardPopup"),c=s.find(".sd-reward-apply"),n=$(".sd-loading"),a=$(".sd-body"),d=localStorage.getItem("DebutifySocialDiscount");if(o.length){if("Yes"===d)return t.hide(),void o.addClass("sd-used");i.on("click",function(){a.hide(),n.show(),null==(d=localStorage.getItem("DebutifySocialDiscount"))&&setTimeout(function(){theme.modal.close(e),theme.modal.open(s)},1e4)}),c.on("click",function(){const o=s[0].dataset.discountName,t=s[0].dataset.discountType,e=+s[0].dataset.discountAmount;o&&t&&e&&(theme.discountCode.addDiscount(o,t,e),theme.discountCode.init())}),s.on("modal.close",function(){localStorage.setItem("DebutifySocialDiscount","Yes"),t.hide(),o.addClass("sd-used")})}}$(document).on("shopify:section:load",function(){localStorage.removeItem("DebutifySocialDiscount")}),SocialDiscount();} function themeSocialDiscountDestroy() {function destroySocialDiscount(){const o=document.querySelectorAll(".dbtfy-social_discount");o.length&&o.forEach(o=>{o.remove()})}destroySocialDiscount(),$(document).on("shopify:section:load",function(){destroySocialDiscount()});} /* end-dbtfy-social-discount */
101
102  /* 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");
102if(!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 */
103
104  /* 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=[];
104t.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 */
105
106  /* 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 */
107
108  /* start-dbtfy-upsell-bundles */function themeUpsellBundles(){} function themeUpsellBundlesDestroy(){}/* end-dbtfy-upsell-bundles */
109
110  /* start-dbtfy-upsell-popup */ function themeUpsellPopup() {} function themeUpsellPopupDestroy() {} /* end-dbtfy-upsell-popup */
111
112  /* start-dbtfy-wish-list */ function themeWishList(){} function themeWishListDestroy() {} /* end-dbtfy-wish-list */
113
114  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_cart_discount:{init:themeCartDiscount,destroy:themeCartDiscountDestroy},dbtfy_cart_favicon:{init:themeCartFavicon,destroy:()=>{}},dbtfy_cart_goal:{init:themeCartGoal,destroy:themeCartGoalDestroy},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:()=>{}
114,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:()=>{},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_shop_protect:{init:themeShopProtect,destroy:()=>{}},dbtfy_size_chart:{init:themeSizeChart,destroy:themeSizeChartDestroy},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_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;for(const[e,t]of Object.entries(addons)){enabledAddons.some((t=>t.name===e))?t.init():t.destroy()}function addonsLimitReached(){const e=document.querySelector("#TrialOverPopup"),t=sessionStorage.getItem("addonsLimitPopupClosed");if(theme.toast.hide(e),t)return;const o=theme.addons.addons,r=Object.entries(o),i=r.filter((e=>e[1]));if(enabledAddons.length>=i.length)return;const s={5:{name:"Starter Plan",maxAddons:5,link:"https://theme.debutify.com/plans/starter?billing=yearly",nextAddon:"30"},30:{name:"Pro Plan",maxAddons:30,link:"https://theme.debutify.com/plans/pro?billing=yearly",nextAddon:"master"},master:{name:"Enterprise Plan",maxAddons:r.length,link:"https://theme.debutify.com/plans/enterprise?billing=yearly"}},d=document.querySelector("#AddonsLimitReachedPopup");if(!d)return;const n=d.querySelectorAll(".to-link-btn, [data-toast-close]"),a=d.querySelector(".addons-limit-popup-text"),y=d.querySelector(".addons-limit-popup-note"),m=d.querySelector(".addons-limit-popup-button"),c=s[enabledAddons.length],l=s[c.nextAddon];a.innerHTML=a.innerHTML.replace("[plan_name]",c.name).replace("[current_limit]",c.maxAddons).replace("[upgraded_plan]",`<a class="text-link" href="${l.link}">${l.name}</a>`).replace("[upgraded_limit]",l.maxAddons),y.innerHTML=y.innerHTML.replace(/&lt;/g,"<").replace(/&gt;/g,">").replaceAll("[current_limit]",c.maxAddons),m.href=l.link,theme.toast.show(d),n.forEach((e=>{e.addEventListener("click",(e=>{sessionStorage.setItem("addonsLimitPopupClosed","true"),theme.toast.hide(d)}))}))}Shopify.designMode&&addonsLimitReached();
115})();

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.