1"use strict";(self.webpackChunk_muchmore_turmeric=self.webpackChunk_muchmore_turmeric||[]).push([[866],{6585:(e,t,r)=>{r(2105);var n=r(2897),o=r(4306),i=r(3099),s=r(8678),a=r(9801),c=r(8779),l=r(111);let d=null;const u=()=>{window.theme=window.theme||{},theme.customerTemplates=function(){function e(){let e=document.getElementById("RecoverEmail");document.getElementById("RecoverPasswordForm").classList.remove("hide"),document.getElementById("CustomerLoginForm").classList.add("hide"),"true"===e.getAttribute("aria-invalid")&&e.focus()}return{init:function(){var t,r;(function(){let t=document.getElementById("RecoverHeading"),r=document.getElementById("LoginHeading");document.getElementById("RecoverPassword").addEventListener("click",(function(r){r.preventDefault(),e(),t.setAttribute("tabindex","-1"),t.focus()})),document.getElementById("HideRecoverPasswordLink").addEventListener("click",(function(e){e.preventDefault(),document.getElementById("RecoverPasswordForm").classList.add("hide"),document.getElementById("CustomerLoginForm").classList.remove("hide"),r.setAttribute("tabindex","-1"),r.focus()})),t.addEventListener("blur",(function(){this.removeAttribute("tabindex")})),r.addEventListener("blur",(function(){this.removeAttribute("tabindex")}))})(),function(){"#recover"===window.location.hash&&e.bind(this)()}(),function(){if(document.querySelector(".reset-password-success")){var e=document.getElementById("ResetSuccess");e.classList.remove("hide"),e.focus()}}(),t=document.getElementById("AddressNewForm"),r=document.getElementById("AddressNewButton"),t&&("undefined"!=typeof Shopify&&new Shopify.CountryProvinceSelector("AddressCountryNew","AddressProvinceNew",{hideElement:"AddressProvinceContainerNew"}),document.querySelectorAll(".address-country-option").forEach((function(e){var t=e.dataset.formId,r="AddressCountry_"+t,n="AddressProvince_"+t,o="AddressProvinceContainer_"+t;new Shopify.CountryProvinceSelector(r,n,{hideElement:o})})),document.querySelectorAll(".address-new-toggle").forEach((function(e){e.addEventListener("click",(function(){var e="true"===r.getAttribute("aria-expanded");t.classList.toggle("hide"),r.setAttribute("aria-expanded",!e),r.focus()}))})),document.querySelectorAll(".address-edit-toggle").forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.formId,r=document.getElementById("EditFormButton_"+t),n=document.getElementById("EditAddress_"+t),o="true"===r.getAttribute("aria-expanded");n.classList.toggle("hide"),r.setAttribute("aria-expanded",!o),r.focus()}))})),document.querySelectorAll(".address-delete").forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.formId,r=e.dataset.confirmMessage;confirm(r||"Are you sure you wish to delete this address?")&&Shopify.postLink("/account/addresses/"+t,{parameters:{_method:"delete"}})}))})))}}}(),theme.init=function(){theme.customerTemplates.init()},document.addEventListener("DOMContentLoaded",theme.init)};let h,y=window.mm_ttc_options,m=document.location.href,p="";document.querySelector(".myaccount__order-history"),document.querySelector(".myaccount__marketing");const f=document.querySelector("#shareable_with_abacus_checkbox"),g=document.querySelector("#account-marketing-save-btn"),w=document.querySelector(".notifications .close-icon"),v=(document.querySelector(".notifications .message"),document.querySelector(".notifications .success")),S=document.querySelector(".notifications .warning");function q(e){e.style.transition="height 0.3s ease-out",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.height="0",e.style.overflow="hidden",setTimeout((()=>{e.style.display="none"}),300)}function L(e){e.style.display="block";const t=e.scrollHeight+"px";e.style.transition="height 0.3s ease-out",e.style.height="0",e.offsetHeight,e.style.height=t,e.style.overflow="hidden",setTimeout((()=>{e.style.height="",e.style.overflow=""}),300)}function b(e){"show"===e?L(v):q(v)}const E=()=>{m.includes("view=marketing")&&(p=f.checked?"NotShareWithAbacus":"ShareWithAbacus",f.addEventListener("change",(function(){p=this.checked?"NotShareWithAbacus":"ShareWithAbacus"})),w.addEventListener("click",(function(){const e=this.closest(".message");e&&q(e)})),g.addEventListener("click",(()=>{!function(){const e={email:y.customer.email,tag:p,source:"Account"};fetch("https://hooks.zapier.com/hooks/catch/10704514/biaew6b/",{method:"POST",body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{b("show"),clearTimeout(h),h=setTimeout((()=>{b("hide")}),5e3)}
1)).catch((e=>{console.error("Error:",e),clearTimeout(h),h=setTimeout((()=>{q(S)}),5e3)}))}()})))};var k=r(7091);const A=()=>{const e={isSafari:navigator.userAgent.indexOf("Safari")>-1,isChrome:navigator.userAgent.indexOf("Chrome")>-1},t={affiliateContainer:document.querySelector(".affiliate-shopify-init"),affiliateLink:document.querySelector(".btn-affiliate"),isCustomerLoggedIn:document.body.classList.contains("customer-logged-in")},r=async()=>{const t=document.querySelector("#refersion-iframe-wrapper");if(!t)return!1;const r=t.dataset.frameUrl;if(!r)return!1;try{if(!(await fetch("https://www.refersion.com/iframe")).ok)throw new Error("Failed to load iframe content");return t.innerHTML=(n=r,e.isSafari&&!e.isChrome?`\n <p>This browser is not supported, please click the button below to open this frame in a new tab.</p>\n <input type="button" onclick="window.open('${n}', '_blank');" value="Click here" />\n `:`<iframe src="${n}" frameBorder="0" height="1600" width="100%"></iframe>`),!0}catch(e){return console.error("Error loading iframe:",e),!1}var n},n=async()=>{const{affiliateContainer:n,isCustomerLoggedIn:o}=t;if(!o||!n)return;const i=`${n.dataset.affiliateUrl}/ssourl/${n.dataset.customerEmail}`;try{n.innerHTML="<p>Loading Dashboard...</p>";const t=await fetch(i);if(!t.ok)throw new Error("Network response was not ok");const o=await t.text(),s=(e=>{const t=document.createElement("div");return t.id="refersion-iframe-wrapper",t.dataset.frameUrl=e,t})(String(o).replace(/\r?\n|\r|\s/g,"").replace("www","theturmericco"));n.innerHTML="",n.appendChild(s),e.isChrome&&e.isSafari&&(e.isSafari=!1),r()}catch(e){n.innerHTML="<p>Could not obtain affiliate data for your account, please try refreshing the page</p>",console.error("Error loading affiliate dashboard:",e)}},o=()=>{n(),(async()=>{const{affiliateLink:e,isCustomerLoggedIn:r}=t;if(!r||!e||!e.classList.contains("d-none"))return;const n=e.querySelector("a");if(!n)return;const o=`${n.dataset.affiliateUrl}/isaffiliate`,i=n.dataset.customerEmail;let s=(0,k.getCookieValue)("isaffiliate");const a=t=>{e.classList.toggle("d-none",!t)};if(void 0===s)try{const e=await fetch(`${o}/${i}`);if(!e.ok)throw new Error("Failed to check affiliate status");const t=await e.text();s=!!parseInt(String(t).replace(/\r?\n|\r|\s/g,"")),a(s);const r=new Date((new Date).setMinutes((new Date).getMinutes()+1));(0,k.setCookie)({name:"isaffiliate",value:s,expires:r})}catch(e){console.error("Affiliate status check failed:",e)}else a(s)})()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()},C=document.body;var x=r(4615);let _,I=[],T={},B={},D={},M={},P={};let R=!1,$=0,H=window.scrollY,O=!1;function N(){const e=window.scrollY,t=Math.abs(e-H);$+=t,H=e,$>=100&&!O&&(O=!0,F()),R=!1}function Z(){R||(requestAnimationFrame(N),R=!0)}function F(){B.classList.toggle("-translate-y-full"),_.querySelector("svg").classList.toggle("-rotate-180"),window.removeEventListener("scroll",Z),B.classList.contains("-translate-y-full")||(H=window.scrollY,$=0,O=!1,window.addEventListener("scroll",Z))}document.body;let j=!1,W=!1;const z=function(){W||(window.requestAnimationFrame((()=>{const e=window.scrollY;e>100&&!j?(document.body.classList.add("header-is-sticky"),j=!0):e<25&&j&&(document.body.classList.remove("header-is-sticky"),j=!1),W=!1})),W=!0)},U=()=>{if(document.body.classList.add("sticky-header-is-ready"),window.addEventListener("scroll",z),z(),document.getElementById("pdp-navbar")&&document.body.classList.contains("template-product")&&document.querySelector(".pdp-navbar-source-section template")){if(!function(){let e=document.querySelector("#pdp-navbar"),t=document.querySelector(".pdp-navbar-source-section template");return!(!e||!t||(e.appendChild(t.content.cloneNode(!0)),0))}()||!function(){let e=document.querySelector(".dropdown-sticky.dropdown .dropdown-menu"),t=document.querySelector(".dropdown-page-navbar .dropdown");return!(!e||!t||(t.appendChild(e),0))}())return;T=document.querySelector(".sticky-nav-container"),B=document.querySelector(".dropdown-page-navbar"),I=B.querySelectorAll("a.sticky-nav-link"),D=document.querySelectorAll("main .section-wrapper"),M={offset:0,triggerHook:.1},_=T.querySelector(".sticky-nav-text-wrapper"),P=T.querySelector(".sticky-nav-text"),function(e){if(document.body.classList.contains("sticky-header-is-ready"))return void e();const t=new MutationObserver((r=>{document.body.classList.contains("sticky-header-is-ready")&&(t.disconnect(),e())}));t.observe(document.body,{attributes:!0,attributeFilter:["class"]})}((()=>{!function(){const e=D[0];let t=window.scrollY,r=!1;const n=new IntersectionObserver((e=>{e.forEach((e=>{const n=window.scrollY,o=n>t;e.isIntersecting&&o&&!r&&(document.body.classList.add("is-sticky-nav-active"),r=!0),e.isIntersecting||o||!r||(document.body.classList.remove("is-sticky-nav-active"),r=!1),t=n}))}),{root:null,rootMargin:"-96px 0px 0px 0px",threshold:0});e&&n.observe(e),window.addEventListener("DOMContentLoaded",(()=>{e.getBoundingClientRect().top<-96&&(document.body.classList.add("is-sticky-nav-active"),r=!0)}))}(),function(){const e=Array.from(document.querySelectorAll('a[data-target]:not([data-target=""])')).map((e=>{const t=e.dataset.target;return{link:e,selector:t,sections:Array.from(document.querySelectorAll(t)),active:!1}}));function t(){const t=function(){const t=window.innerHeight/2;let r=null,n=1/0;return e.forEach((e=>{e.sections.forEach((o=>{const i=o.getBoundingClientRect(),s=i.top+i.height/2,a=Math.abs(s-t);i.top<t&&i.bottom>t&&a<n&&(n=a,r=e)}))})),r}();e.forEach((e=>{(null==e?void 0:e.selector)===(null==t?void 0:t.selector)?e.link.classList.add("active"):e.link.classList.remove("active")}))}window.addEventListener("scroll",(0,l.Z)((()=>{requestAnimationFrame(t)}),150)),window.addEventListener("resize",(0,x.Z)((()=>{requestAnimationFrame(t)}),150)),t()}(),_.addEventListener("click",F),I.forEach((e=>{e.addEventListener("click",(e=>{F()}))}))}))}};function K(e){let t=e.querySelector(".selected-wrapper");e.querySelectorAll(".tag-wrapper").length>0?t.classList.remove("hidden"):t.classList.add("hidden")}function Y(e,t,r){e.querySelector(".selected-wrapper").appendChild(function(e){let t=document.querySelector("template").content.querySelector(".tag-wrapper").cloneNode(!0);return t.setAttribute("data-keyword",e.toLowerCase().replace(" ","-")),t.querySelector(".tag-name").textContent=e,t}(t)),r.style.display="none",function(e,t){let r=e.toLowerCase().replace(" ","-");t.querySelector(`.tag-wrapper[data-keyword=${r}]`).querySelector(".remove-tag-btn").addEventListener("click",(e=>{e.target.closest(".tag-wrapper").remove();let n=t.querySelector(`.keyword[data-keyword=${r}]`);n.style.display="";let o=n.scrollHeight,i=n.closest(".accordion-items"),s=t.querySelectorAll(".accordion"),a=i.previousElementSibling;a.classList.contains("active-accordion")||(s.forEach((e=>{e.classList.remove("active-accordion"),e.nextElementSibling.style.maxHeight=0})),a.classList.add("active-accordion"));let c=parseInt(i.style.maxHeight.replace("px",""));0===c&&(c=i.childNodes[1].scrollHeight),i.style.maxHeight=c+o+"px",K(t)}))}(t,e),K(e)}const G=()=>{let e=document.querySelector("#shopify-section-search .search");if(e){let t=e.querySelectorAll(".keyword");e.querySelectorAll(".tag-wrapper"),!function(e){const t=window.location.search,r=new
1URLSearchParams(t);let n=e.querySelectorAll(".keyword"),o=[];n.forEach((e=>{let t=e.textContent.trim();o.push(t)})),r.has("q")&&r.get("q").split(" OR ").forEach((t=>{if(o.includes(t)){console.log("includes",t);let r=e.querySelector(`.keyword[data-keyword="${t.toLowerCase().replace(" ","-")}"]`);Y(e,t,r)}else console.log("not iclude",t),function(e,t){e.querySelector("input#search-input").value=t}(e,t)}))}(e),t.forEach((t=>{t.addEventListener("click",(r=>{let n=t.textContent.trim();Y(e,n,r.target)}))})),function(e){let t=e.querySelector("button .label"),r=e.querySelector("button .loading");e.addEventListener("submit",(n=>{n.preventDefault();let o=e.querySelector("input#search-input"),i=e.querySelectorAll(".tag-wrapper"),s=[];if(o.value.length>0&&s.push(o.value),i.forEach((e=>{let t=e.querySelector(".tag-name").textContent;s.push(t)})),s.length>0){t.style.display="none",r.style.display="block",function(e){let t=e.querySelector(".notifications");t.querySelector(".error").style.marginTop="-100%",setTimeout((()=>{t.style.display="none"}),600)}(e);let n="search?q=";n+=s.join("%20OR%20"),n+="&type=product";let o=n.replaceAll(" ","%20"),i=window.mmShopOptions.shop_url+"/";window.location.href=i+o}else!function(e){let t=e.querySelector(".notifications"),r=t.querySelector(".error");t.style.display="",setTimeout((()=>{r.style.marginTop="0%"}),100)}(e)}))}(e)}};let J=document.querySelectorAll(".add-to-cart-modal-section");o.Z.plugin(n.Z),o.Z.plugin(s.Z),o.Z.plugin(i.Z),o.Z.plugin(a.Z),o.Z.asyncData("cardSlider",(()=>Promise.all([r.e(660),r.e(440)]).then(r.bind(r,2607)))),o.Z.asyncData("embedLoad",(()=>r.e(807).then(r.bind(r,6583)))),o.Z.asyncData("pdpBuyBox",(()=>r.e(430).then(r.bind(r,9251)))),o.Z.asyncData("slider",(()=>Promise.all([r.e(660),r.e(309)]).then(r.bind(r,8822)))),window.Alpine=o.Z,o.Z.store("_devtools_stores"),new class{constructor(){document.querySelectorAll(".yotpo-reviews-section")[0]&&(this.$reviewsWrapper=document.querySelectorAll(".yotpo-reviews-section"),this.perPage=18,this.proxy_uri="https://theturmeric.co/apps/reviews-widget-proxy",this.app_key="5jTwhtSmMrw3RGPb4AK1f23q1Kxbx6vEhG2OoJBX",this.url=`${this.proxy_uri}/batch/app_key/${this.app_key}/domain_key/4466362056791/widget/reviews`,this.$reviewsWrapper.forEach((e=>{let t=1,r="";const n=e.querySelector("#keywords"),o=e.querySelector("#reset-filter"),i=e.querySelector(".load-more-btn");window.addEventListener("beforeKeywordChange",(e=>{})),n.addEventListener("change",(n=>{this.buildSkeleton(e),t=1,r=n.target.value,this.buildSkeleton(e),this.fetchData(r,t).then((t=>this.processData(t,e))),this.handleResetFilterBtn(r,e)})),i.addEventListener("click",(n=>{this.loadMoreBtnLoading(i),this.fetchData(r,t).then((t=>this.processData(t,e)))})),window.addEventListener("afterKeywordChange",(e=>{t++,this.buildGrid(e.detail.data,e.detail.wrapper),this.loadMoreBtnLoaded(i),this.loadMoreBtnVisibility(i,e.detail.data),this.readMoreInit()})),o.addEventListener("click",(i=>{this.buildSkeleton(e),t=1,n.options[0].selected=!0,r="",this.fetchData(r,t).then((t=>this.processData(t,e))),o.style.display="none"})),this.fetchData(r,t).then((t=>this.processData(t,e)))})))}fetchData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return window.dispatchEvent(new CustomEvent("beforeKeywordChange")),console.log(e),new Promise((r=>{let n=e.length>0?"filtered_reviews":"reviews",o=e.length>0?`"free_text_search":"${e}",`:"",i=`methods=[{"method":"${n}","params":{"page":${t},"host-widget":"testimonials","is_mobile":false,"pictures_per_review":0,"reference":"testimonials_widget_internal",${o}"hide_custom_fields":true,"per_page":${this.perPage},"type":"testimonials_custom_tab","is_bottomline_summary":false}}]&app_key=${this.app_key}&is_mobile=false&widget_version=2021-09-20_08-30-06`;r(fetch(this.url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:encodeURI(i)}))})).then((e=>e.json())).catch((e=>{console.error("Reviews - fetchData \n Error:",e)}))}processData(e,t){return new Promise(((t,r)=>{t(this.createReviewsObject(e[0].result))})).then((e=>{window.dispatchEvent(new CustomEvent("afterKeywordChange",{detail:{data:e,wrapper:t}}))})).catch((e=>{console.error("Reviews - processData \n Error:",e)}))}createReviewsObject(e){const t=(new DOMParser).parseFromString(e,"text/html"),r=t.querySelectorAll(".yotpo-review");let n=[],o=t.querySelector(".yotpo-pager"),i=o.querySelectorAll('[role="menuitem"]'),s=parseInt(o.querySelector('[aria-current="true"]').textContent);return r.forEach((e=>{n.push({name:e.querySelector(".yotpo-user-name")?e.querySelector(".yotpo-user-name").textContent.trim():null,title:e.querySelector(".content-title")?e.querySelector(".content-title").textContent.trim():null,content:e.querySelector(".content-review")?e.querySelector(".content-review").textContent.trim():null,productName:e.querySelector(".grouping-reference-link")?e.querySelector(".grouping-reference-link").textContent.trim():null,productUrl:e.querySelector(".grouping-reference-link")?e.querySelector(".grouping-reference-link").href:null,rating:e.querySelector(".yotpo-review-stars")?e.querySelector(".yotpo-review-stars").querySelectorAll(".rating-star").length:null,verified:!!e.querySelector(".yotpo-user-title")})})),{reviews:n,perPage:parseInt(o.dataset.perPage),currentPage:s,hasMore:parseInt(i[i.length-1].dataset.page)>s}}buildSkeleton(e){e.querySelector("#reviews-grid").textContent="";let t=document.querySelector("template#skeleton-card"),r=e.querySelector("#reviews-grid");for(let e=0;e<3;e++){let e=t.content.cloneNode(!0);r.append(e)}}
1buildGrid(e,t){t.querySelectorAll(".skeleton-card").length>0&&(t.querySelector("#reviews-grid").textContent="");let r=document.querySelector("template#review-card"),n=t.querySelector("#reviews-grid");e.reviews.forEach((e=>{let t=r.content.cloneNode(!0);t.querySelector(".title").textContent=e.title,t.querySelector(".content").textContent=e.content,t.querySelector(".name").textContent=e.name,t.querySelector(".score-progress").style.width=e.rating/5*100+"%",e.verified||t.querySelector(".verified").remove(),null===e.productName?t.querySelector(".reviewed").remove():t.querySelector(".reviewed-link").textContent=e.productName,n.append(t)}))}loadMoreBtnVisibility(e,t){t.hasMore||(e.style.display="none")}loadMoreBtnLoading(e){e.querySelector(".label").style.opacity=0,e.querySelector(".loading").style.opacity=""}loadMoreBtnLoaded(e){e.querySelector(".label").style.opacity="",e.querySelector(".loading").style.opacity=0}handleResetFilterBtn(e,t){let r=t.querySelector("#reset-filter");e.length>0?r.style.display="":r.style.display="none"}handleResize(){return(0,l.Z)((()=>{window.innerWidth<(0,c.cv)("46rem")&&(d&&d.destroy(),window.removeEventListener("resize",this.handleResize()))}),1e3)}readMoreInit(){d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=document.querySelectorAll(e),n=t.collapsedHeight||170,o=t.moreLink||d("Show more"),i=t.lessLink||d("Show less"),s=t.beforeToggle||function(){},a=t.afterToggle||function(){},c=[];function l(e){if("string"==typeof e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild}return e instanceof Element?e.cloneNode(!0):d("Toggle")}function d(e){const t=document.createElement("a");return t.href="#",t.className="readmore-toggle",t.textContent=e,t}return r.forEach((e=>{const t=e.scrollHeight;if(t<=n)return;let r=!1;e.style.height=`${n}px`,e.style.overflow="hidden",e.dataset.readmore="collapsed";let d=function c(h){const y=l(h?i:o);return y.addEventListener("click",(function(o){o.preventDefault(),s(y,e,r),r=!r,e.dataset.readmore=r?"expanded":"collapsed",e.style.height=r?`${t}px`:`${n}px`;const i=c(r);y.replaceWith(i),d=i,u.toggleLink=i,a(i,e,r)})),y}(r);e.after(d);const u={el:e,toggleLink:d,destroy:()=>{e.style.height="",e.style.overflow="",delete e.dataset.readmore,d.remove()}};c.push(u)})),{destroy(){c.forEach((e=>e.destroy())),c.length=0}}}(".content",{collapsedHeight:170,moreLink:'<a href="#" class="more-link text-primary hover:text-primary-dark transition-colors duration-150 inline-block py-2" style="margin: 0 !important;">Show more</a>',lessLink:'<a href="#" class="less-link text-primary hover:text-primary-dark transition-colors duration-150 inline-block py-2" style="margin: 0 !important;">Show less</a>',beforeToggle:function(e,t,r){let n=t.closest(".review-card");n&&(n.style.height="")}}),window.addEventListener("resize",this.handleResize()),this.handleResize()}},document.body,document.addEventListener("DOMContentLoaded",(function(){o.Z.start(),U(),(()=>{const e=document.querySelector(".slideout");if(e){const t=document.querySelector(".slideout-btn"),r=e.querySelectorAll("li"),n=e.querySelectorAll(".back-btn");let o=e.querySelector(".top-layer > .layer"),i=null;window.addEventListener("resize",(0,l.Z)((()=>{window.innerWidth>=(0,c.cv)("80rem")&&(C.classList.remove("active-slideout"),t.classList.remove("pointer-events-none"))}),1e3)),document.addEventListener("mouseup",(r=>{e.contains(r.target)||(C.classList.remove("active-slideout"),t.classList.remove("pointer-events-none"),setTimeout((()=>{o.style.marginLeft=0}),500))})),t.addEventListener("click",(e=>{C.classList.remove("active-search"),C.classList.contains("active-slideout")||(C.classList.add("active-slideout"),t.classList.add("pointer-events-none"))})),r.forEach((e=>{e.querySelector("a").addEventListener("click",(t=>{e.classList.contains("has-children")&&(t.preventDefault(),o.style.marginLeft=parseInt(o.style.marginLeft)-100+"%",Array.from(r).filter((t=>t.classList.contains("has-children")&&t!==e)).forEach((e=>e.querySelector(".layer").classList.add("hidden"))))}))}
1)),n.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),o.style.marginLeft=`${parseInt(o.style.marginLeft)+100}%`,clearTimeout(i),i=setTimeout((()=>{Array.from(r).filter((e=>e.classList.contains("has-children"))).forEach((e=>e.querySelector(".layer").classList.remove("hidden")))}),300)}))}))}})(),G(),J[0]&&J.forEach((e=>{e.querySelectorAll(".drawer-item").forEach((e=>{!function(e){let t=e.querySelector(".add-to-cart-btn");t.addEventListener("click",(r=>{r.preventDefault();let n=e.querySelectorAll(".single-product"),o=e.querySelector(".discount-code"),i="checkout",s={items:[]};n.forEach((e=>{let t=e.querySelector('input[name="variant-id"]'),r=e.querySelector('input[name="selling-plan"]'),n=e.querySelector('input[name="quantity"]');if(t){let e={id:parseInt(t.value),quantity:parseInt(n.value)};r&&(e.selling_plan=parseInt(r.value)),s.items.push(e)}}));let a=t.querySelector(".label"),c=t.querySelector(".loading"),l=t.querySelector(".info"),d=t.querySelector(".error");a.style.display="none",c.style.display="",l.style.display="",d.style.display="none",o&&(i+=`?discount=${o.value}`),console.log(i),async function(){await fetch(window.Shopify.routes.root+"cart/clear.js",{method:"POST",headers:{"Content-Type":"application/json"},body:""}).then((function(e){return e.json()})).catch((function(e){console.error("Error:",e)}))}().then((e=>{(async function(e){return await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e)).catch((e=>{console.error("Error:",e)}))})(s).then((e=>{200===e.status?window.location.href=window.Shopify.routes.root+i:(a.style.display="",c.style.display="none",l.style.display="none",d.style.display="")}))}))}))}(e)}))})),(()=>{const e=document.querySelector(".search");if(e){const t=document.querySelectorAll(".search-btn"),r=document.querySelector(".close-search-btn");document.addEventListener("mouseup",(r=>{e.contains(r.target)||(C.classList.remove("active-search"),t.forEach((e=>{e.classList.remove("pointer-events-none")})),function(e){let t=e.querySelector(".notifications");t.querySelector(".error").style.marginTop="-100%",setTimeout((()=>{t.style.display="none"}),600)}(e))})),r.addEventListener("click",(e=>{C.classList.remove("active-search"),t.forEach((e=>{e.classList.remove("pointer-events-none")}))})),t.forEach((e=>{e.addEventListener("click",(t=>{C.classList.remove("active-search"),C.classList.contains("active-search")||(C.classList.add("active-search"),e.classList.add("pointer-events-none"))}))}))}})(),u();const e={".posts-load-on-scroll":()=>Promise.all([r.e(660),r.e(898)]).then(r.bind(r,3761)).then((e=>e.tagsFilter())),".accordion":()=>r.e(209).then(r.bind(r,7924)).then((e=>e.accordion())),".instant-add-to-cart":()=>r.e(116).then(r.bind(r,4329)).then((e=>e.instantAddToCart())),".sticky-add-to-card-container":()=>r.e(561).then(r.bind(r,2328)).then((e=>e.stickyAddToCart2())),".shareon":()=>r.e(660).then(r.bind(r,6997)).then((e=>e.init())),".testimonial-slider-slides":()=>Promise.all([r.e(660),r.e(683)]).then(r.bind(r,959)).then((e=>e.default())),".trustpilot-widget":()=>r.e(610).then(r.bind(r,8369)).then((e=>{document.addEventListener("slider-ready",e.initTrustpilotInClonedSlides),document.addEventListener("slider-slide-changed",e.initTrustpilotInClonedSlides)}))};Object.entries(e).forEach((e=>{let[t,r]=e;document.querySelector(t)&&r()})),A(),E()}))},2105:(e,t,r)=>{r.p=window.__webpack_public_path__},8779:(e,t,r)=>{function n(e){return"string"==typeof e&&e.endsWith("rem")?16*parseFloat(e):null}function o(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}r.d(t,{cv:()=>n,v4:()=>o})},8646:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[143,660],(()=>(t(6585),t(8646)))),e.O()}]);
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.