1"use strict";(self.webpackChunksaje_theme=self.webpackChunksaje_theme||[]).push([[9411],{401:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(172),o=n(3453);const i=function(e){var t,n=e.product;return(null==n||null===(t=n.tags)||void 0===t?void 0:t.includes("not-for-sale"))?null:(0,l.h)(l.FK,null,parseFloat(n.compareAtPriceRange.minVariantPrice.amount)>0&&(0,l.h)("s",{className:"text-grey-2"},(0,o.up)({amount:n.compareAtPriceRange.minVariantPrice.amount})),(0,l.h)("span",{className:"".concat(parseFloat(n.compareAtPriceRange.minVariantPrice.amount)>0?"text-red ml-2":"")},(0,o.up)(n.priceRange.minVariantPrice)))}},4835:(e,t,n)=>{n.r(t),n.d(t,{default:()=>L});var l=n(172),o=n(467),i=n(296),r=n(4467),a=n(5458),u=n(4756),c=n.n(u),s=n(5994),d=n(299),p=n(8478),m=n(1321),v=n(7186),f=n(401),g=n(1509),h=n(7946),b=n(7664),w=n(3453),x=n(2794),y=n(7629),k=n(4984),N=n(1474),_=n(2789),T=n(8525),S=n(1724),q=n(6456);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,l)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var C=["functional ingredients","aroma profile","how to use","package information"];const M=function(e){var t,n,r,u,A,M,L,j,P,W,F,D,J,E,I,z,B=e.data,V=d.default.getInstance(),Y=(0,s.J0)(null),Q=(0,i.A)(Y,2),H=Q[0],R=Q[1],K=(0,s.J0)(null),X=(0,i.A)(K,2),U=X[0],$=X[1],G=(0,s.J0)(null),Z=(0,i.A)(G,2),ee=Z[0],te=Z[1],ne=(0,s.J0)(null),le=(0,i.A)(ne,2),oe=le[0],ie=le[1],re=(0,s.J0)(null),ae=(0,i.A)(re,2),ue=ae[0],ce=ae[1],se=(0,s.J0)(null),de=(0,i.A)(se,2),pe=de[0],me=de[1],ve=(0,s.J0)(!1),fe=(0,i.A)(ve,2),ge=fe[0],he=fe[1],be=(0,s.J0)(!1),we=(0,i.A)(be,2),xe=we[0],ye=we[1],ke=(0,s.J0)("default"),Ne=(0,i.A)(ke,2),_e=Ne[0],Te=Ne[1],Se=(0,s.J0)({}),qe=(0,i.A)(Se,2),Ae=qe[0],Oe=qe[1],Ce=(0,s.li)(null),Me=(0,s.li)(null),Le=(0,s.li)(null),je=(0,s.li)(0),Pe=function(e){Fe(e).then(R)},We=function(e){Ce.current&&(clearTimeout(Ce.current),Ce.current=null);var t=e.detail||{},n=t.payload,l=t.viewType,o=void 0===l?"default":l,i=t.meta,r=void 0===i?{}:i;Te(o),Oe(r),Pe(n)};(0,s.vJ)(function(){return document.addEventListener("quick-view:open",We),function(){document.removeEventListener("quick-view:open",We)}},[]);var Fe=function(){var e=(0,o.A)(c().mark(function e(t){var n,l,o,i;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="string"==typeof t?t:null==t?void 0:t.handle){e.next=1;break}return e.abrupt("return",null);case 1:return e.next=2,V.request({query:p.__,variables:{handle:n}});case 2:if((l=e.sent).data){e.next=3;break}return console.error("quick-view.js: Storefront API request failed",l),e.abrupt("return",null);case 3:if(o=l.data.productByHandle){e.next=4;break}return console.error("quick-view.js: product not available in Storefront for handle",n),e.abrupt("return",null);case 4:return i=(0,w.Tj)(o),e.abrupt("return",{product:i,products:[i]});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();(0,s.vJ)(function(){var e,t,n=function(){var e,t,n=H.product;null!=n&&null!==(e=n.variants)&&void 0!==e&&e.length&&(te(n),$(n.variants[0]),he(!0),setTimeout(function(){ye(!0)},100),null===(t=window.yotpoWidgetsContainer)||void 0===t||t.initWidgets())};if(null!=H&&H.product&&(null!==(e=H.product.tags)&&void 0!==e&&e.length||n(),null!==(t=H.product.tags)&&void 0!==t&&t.length)){var l=H.product.tags.find(function(e){return e.includes("group::")}),o=H.product.tags.find(function(e){return"bundle"===e}),i=H.product.tags.find(function(e){return e.includes("gift_cart")});l&&ie(l),o&&me(o),i&&me(i),l||o||n()}},[H]),(0,s.vJ)(function(){if(oe||pe){var e,t;if(null==H||null===(e=H.product)||void 0===e||null===(e=e.variants)||void 0===e||!e.length)return;te(H.product),$(H.product.variants[0]);var n=function(){var e=(0,o.A)(c().mark(function e(){var t;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,x.F)(oe,{extended:!0});case 1:t=e.sent,R(t),ye(!0);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=function(){var e=(0,o.A)(c().mark(function e(){var t;return c().wrap(function(e){for(;;
1)switch(e.prev=e.next){case 0:return t=ce,e.next=1,(0,m.H)(H.product);case 1:t(e.sent),ye(!0);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();oe&&n().catch(console.error),pe&&l().catch(console.error),he(!0),null===(t=window.yotpoWidgetsContainer)||void 0===t||t.initWidgets()}},[oe,pe]);var De=function(){ye(!1),Ce.current&&clearTimeout(Ce.current),Ce.current=setTimeout(function(){he(null),me(null),ce(null),ie(!1),Te("default"),Oe({}),Ce.current=null},320)},Je=function(e){"Escape"===e.key&&(document.querySelector(".accordion-modal-overlay")||De())};(0,s.vJ)(function(){if(H&&U){var e=H.products.find(function(e){var t;return null==e||null===(t=e.variants)||void 0===t?void 0:t.find(function(e){return e.id===U.id})});e&&te(e)}},[U]);var Ee=function(){Me.current&&(Me.current.style.transform="")},Ie=function(){var e;null!==Le.current&&(null===(e=Me.current)||void 0===e||e.classList.remove("is-dragging"),je.current>120?De():Ee(),Le.current=null,je.current=0)},ze=null;if((0,s.vJ)(function(){return ge&&(ze||(ze=new v.A(document.querySelector(".quick-view"))),document.body.classList.add("no-scroll"),ze.init(!0),document.querySelector(".quick-view__overlay").addEventListener("click",De),document.addEventListener("keydown",Je)),function(){document.body.classList.remove("no-scroll"),document.removeEventListener("keydown",Je),ze&&null!=H&&H.product&&ze.destroy(document.querySelector("[data-handle=".concat(H.product.handle,"]")))}},[ge,ze]),!ge||null==H||!H.product||!ee)return null;var Be,Ve=H.product,Ye=B.backInStockData,Qe="bundle"===_e,He=!Qe&&!ue&&"Title"!==(null===(t=Ve.options[0])||void 0===t?void 0:t.name),Re=null==U||null===(n=U.selectedOptions)||void 0===n?void 0:n.find(function(e){var t;return"size"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}),Ke=null===(r=Ve.id)||void 0===r?void 0:r.split("Product/")[1],Xe=(0,l.h)(T.A,{maxOrder:null===(u=B.maxOrderQTY)||void 0===u?void 0:u.max_order_qty,errorMessage:null===(A=B.maxOrderQTY)||void 0===A?void 0:A.error_message,quantity:1}),Ue=null==ee||null===(M=ee.tags)||void 0===M?void 0:M.includes("gift_card"),$e=ue?null==ue?void 0:ue.available:null==U?void 0:U.availableForSale,Ge=null==ee||null===(L=ee.tags)||void 0===L?void 0:L.includes("not-for-sale");Be=ue?ue.available?window.TMW.Strings.product.addToCart:window.TMW.Strings.product.unavailable:null!=U&&U.availableForSale?window.TMW.Strings.product.addToCart:window.TMW.Strings.product.outOfStock;var Ze,et,tt,nt,lt=null!=ee&&ee.availableForSale?(null===(j=window.TMW)||void 0===j||null===(j=j.Strings)||void 0===j||null===(j=j.product)||void 0===j?void 0:j.addToBundle)||"Add to Bundle":(null===(P=window.TMW)||void 0===P||null===(P=P.Strings)||void 0===P||null===(P=P.product)||void 0===P?void 0:P.outOfStock)||"Out of stock";return(0,l.h)(l.FK,null,(0,l.h)("div",{ref:Me,role:"dialog","aria-modal":"true","aria-labelledby":"quick-view-title",className:"quick-view quick-view--sheet fixed z-[1000] bg-white flex flex-col font-sans text-brown-1\n bottom-0 left-0 right-0 max-h-[90vh]\n lg:bottom-auto lg:top-1/2 lg:left-1/2 lg:right-auto\n lg:w-[840px] lg:max-w-[calc(100vw-40px)] lg:h-auto lg:max-h-[85vh]\n ".concat(xe?"is-loaded":"")},(0,l.h)("div",{className:"quick-view__drag-zone relative pt-3 pb-2",onTouchStart:function(e){var t;window.innerWidth>=1024||(Le.current=e.touches?e.touches[0].clientY:e.clientY,je.current=0,null===(t=Me.current)||void 0===t||t.classList.add("is-dragging"))},onTouchMove:function(e){if(null!==Le.current){var t=(e.touches?e.touches[0].clientY:e.clientY)-Le.current;if(t<=0)return je.current=0,void Ee();je.current=t,function(e){Me.current&&(Me.current.style.transform="translateY(".concat(e,"px)"))}(t)}},onTouchEnd:Ie,onTouchCancel:Ie},(0,l.h)("span",{className:"quick-view__drag-handle block","aria-hidden":"true"})),(0,l.h)("button",{type:"button",className:"quick-view__button hidden lg:flex items-center justify-center absolute lg:top-6 lg:right-6 w-6 h-6 z-20","aria-label":window.TMW.Strings.icons.close,title:window.TMW.Strings.icons.close,onClick:De},(0,l.h)(b.bm,null)),(0,l.h)("button",{type:"button",className:"sr-only lg:hidden",onClick:De},window.TMW.Strings.icons.close),(0,l.h)("div",{className:"flex flex-col lg:flex-row flex-1 min-h-0 overflow-hidden lg:gap-8 lg:px-4 lg:pt-4"},(0,l.h)("div",{className:"relative shrink-0 pl-6 lg:pl-0 lg:w-[317px]"},(0,l.h)(S.A,{actualProduct:ee,isQuickview:!0})),(0,l.h)("div",{className:"quick-view__body flex-1 overflow-y-auto lg:overflow-visible flex flex-col min-h-0 lg:w-[459px] lg:flex-initial lg:pr-4"},(0,l.h)("div",{className:"px-6 pt-6 lg:px-0 lg:pt-3 lg:flex-shrink-0"},(0,l.h)("h2",{id:"quick-view-title",className:"font-sans font-medium text-[24px] leading-[1.2] tracking-[0.01em] lg:text-[32px] mb-0"},ee.title),ee.subtitle&&(tt=ee.subtitle.toLowerCase(),nt=tt.charAt(0).toUpperCase()+tt.slice(1),(0,l.h)("p",{className:"!text-[14px] !leading-[1.2] mb-3"},nt)),Qe&&(null==Ae?void 0:Ae.promoMessage)&&(0,l.h)("p",{className:"text-body-2 font-medium uppercase tracking-[0.04em] text-green-1 mb-3"},Ae.promoMessage),Ke&&(0,l.h)(_.A,{id:Ke}),Qe&&Re&&(0,l.h)("p",{className:"text-body-2 mt-2 mb-3"},(0,l.h)("span",{className:"font-medium"},(null===(W=window.TMW)||void 0===W||null===(W=W.Strings)||void 0===W||null===(W=W.product)||void 0===W?void 0:W.size)||"Size")," ",(0,l.h)("span",null,Re.value))),(0,l.h)("div",{className:"quick-view__body-scroll px-6 pb-6 lg:overflow-y-auto lg:flex-1 lg:px-0 lg:pr-4 lg:pb-0 lg:min-h-0"},He&&(0,l.h)("div",{className:"mt-[9px] mb-6"},null==Ve||null===(F=Ve.options)||void 0===F?void 0:F.map(function(e){return(0,l.h)(N.A,{isQuickView:!0,currentVariant:U,product:Ve,key:e.name,option:e,setCurrentVariant:$})})),!(null===(D=ee.description)||void 0===D||!D.length)&&(0,l.h)("div",{className:"rte text-body-2 mb-5",dangerouslySetInnerHTML:{__html:ee.descriptionHtml||ee.description}}),ue&&(0,l.h)("div",{className:"pb-5 border-b border-grey-4 mb-5"},(0,l.h)("span",{className:"flex items-center lg:mb-1"},(0,l.h)("span",{className:"text-body-2 font-medium"},window.TMW.Strings.bundle.bundleTitle),(0,l.h)("span",{className:"text-body-2 font-medium"},"Â (",null===(J=ue.products)||void 0===J?void 0:J.length,")")),ue.products.map(function(e,t){return(0,l.h)("span",{className:"text-body-2",key:"prod-".concat(t)},t===ue.products.length-2?"".concat(e.title," & "):t===ue.products.length-1?"".concat(e.title):"".concat(e.title,", "))})),(0,l.h)(k.A,{product:ee,isQuickView:!0,isBundlePlp:Qe}),Xe,(null===(E=ee.accordionData)||void 0===E||null===(E=E.accordions)||void 0===E?void 0:E.length)>0?(0,l.h)(q.A,{data:O(O({},ee.accordionData),{},{accordions:(Ze=ee.accordionData.accordions,et=function(e){var t=C.indexOf((e||"").trim().toLowerCase());return-1===t?C.length:t},(0,a.A)(Ze).sort(function(e,t){return et(e.title)-et(t.title)}).map(function(e){return O(O({},e),{},{open_by_default:"functional ingredients"===(e.title||"").trim().toLowerCase()})}))}),isQuickview:!0}):(ee.feelsLike||ee.smellsLike)&&(0,l.h)("div",{className:"mt-4"},(0,l.h)("ul",{className:"border-t border-grey-4"},ee.feelsLike&&(0,l.h)("li",{className:"border-b border-grey-4 py-[18px] last-of-type:border-b-0"},(0,l.h)("span",{className:"block text-body-2 font-medium"},window.TMW.Strings.product.feelsTitle),(0,l.h)("span",{className:"block text-body-2"},ee.feelsLike)),ee.smellsLike&&(0,l.h)("li",{className:"border-b border-grey-4 py-[18px] last-of-type:border-b-0"},(0,l.h)("span",{className:"block text-body-2 font-medium"},window.TMW.Strings.product.smellsTitle),(0,l.h)("span",{className:"block text-body-2"},ee.smellsLike)))),(null===(I=ee.singleBundleItems)||void 0===I?void 0:I.length)>0&&(0,l.h)("div",{className:"mb-5 bundle-items-container"},(0,l.h)("div",{className:"flex items-center justify-between py-4"},(0,l.h)("span",{className:"flex items-center font-medium"},(0,l.h)("span",{className:"bundle-title-name"},window.TMW.Strings.bundle.bundleTitle),(0,l.h)("span",{className:"number-of-items-count"},"Â (",ee.singleBundleItems.reduce(function(e,t){return e+(parseInt(t.number_of_items,10)||0)},0)||ee.singleBundleItems.length,")"))),(0,l.h)("div",{className:"bundle-items-container-inner px-[12px] bg-[#F9F6F1]"},ee.singleBundleItems.map(function(e,t){return(0,l.h)("div",{className:"flow md:flex flex-1 flex-col justify-center bg-[#F9F6F1] py-5 bundle-item-row ".concat(t===ee.singleBundleItems.length-1?"":"border-b border-[#D6CCC7]"),key:"single-bundle-".concat(t)},(0,l.h)("div",{className:"block md:flex items-center justify-between"},(0,l.h)("p",{className:"text-[#402518] leading-[110%] md:max-w-[calc(100%-132px)]"},e.title),e.badge_text&&(0,l.h)("span",{className:"menu-link-tag !mr-8 !h-auto mb-0 !hidden md:!inline-block"}
1,e.badge_text)),e.shortDescription&&(0,l.h)("p",{className:"text-[#402518] font-normal text-[13px] leading-[18px] mt-1"},e.shortDescription),e.options&&(0,l.h)("p",{className:"text-link-light text-[#402518] text-[13px] leading-[18px] mt-1"},e.options),e.badge_text&&(0,l.h)("span",{className:"menu-link-tag !h-auto mt-1 inline-flex w-auto md:!hidden"},e.badge_text))})))))),(0,l.h)("div",{className:"quick-view__footer bg-white shrink-0 p-3 lg:p-4"},Qe?(0,l.h)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between lg:gap-10"},null!=Ae&&Ae.bundleCountMessage?(0,l.h)("span",{className:"text-body-2 font-medium order-2 lg:order-1 lg:flex-1 text-center lg:text-left"},Ae.bundleCountMessage):(0,l.h)("span",{className:"hidden lg:block lg:flex-1","aria-hidden":"true"}),Re&&(0,l.h)("span",{className:"hidden lg:flex items-center gap-2 text-body-2 order-2 lg:order-2"},(0,l.h)("span",{className:"font-medium"},(null===(z=window.TMW)||void 0===z||null===(z=z.Strings)||void 0===z||null===(z=z.product)||void 0===z?void 0:z.size)||"Size"),(0,l.h)("span",null,Re.value)),(0,l.h)("button",{type:"button",className:"quick-view__atb-button order-1 lg:order-3 lg:ml-auto",disabled:!(null!=ee&&ee.availableForSale)||(null==Ae?void 0:Ae.atcDisabled),onClick:function(){null!=ee&&ee.availableForSale&&(document.dispatchEvent(new CustomEvent("bundle-builder:add",{detail:{id:ee.id,handle:ee.handle}})),setTimeout(De,150))}},lt)):(0,l.h)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between lg:gap-10"},(0,l.h)("a",{href:"".concat(Shopify.routes.root,"products/").concat(ee.handle),className:"quick-view__view-details text-body-2 underline order-2 lg:order-1",onClick:function(e){e.preventDefault(),(0,y.m)({item:ee.title,itemId:U.sku}),window.location=(0,g.A)("".concat(Shopify.routes.root,"products/").concat(ee.handle))}},window.TMW.Strings.product.viewPage),!Ge&&(0,l.h)("div",{className:"quick-view__footer-actions order-1 lg:order-3 flex flex-col gap-3 lg:flex-row lg:items-center lg:gap-6 lg:ml-auto"},(0,l.h)("span",{className:"text-body-2 text-center lg:text-right"},(0,l.h)(f.A,{product:ee})),$e||!Ye.enabled?(0,l.h)("button",{type:"button",className:"quick-view__atb-button",disabled:!$e,onClick:function(e){var t,n;e.preventDefault();var l,o="".concat(Shopify.routes.root,"products/").concat(ee.handle);Ue?window.location.href=o:(l=ue?window.getBundlePayload(ue,Ve,U,1):O(O({},window.getPayload(U,1)),{},{attributes:(0,h.A)(ee)}),(0,y.L$)({item:Ve.title,itemId:U.sku,size:"size"===(null===(t=U.selectedOptions[0])||void 0===t||null===(t=t.name)||void 0===t?void 0:t.toLowerCase())?U.selectedOptions[0].value:"",quantity:1,color:"color"===(null===(n=U.selectedOptions[0])||void 0===n||null===(n=n.name)||void 0===n?void 0:n.toLowerCase())?U.selectedOptions[0].value:""}),document.dispatchEvent(new CustomEvent("cart:add",{detail:{payload:l}})),setTimeout(De,150))}},Ue?window.TMW.Strings.product.viewDetails:Be):(0,l.h)("button",{type:"button",className:"quick-view__atb-button klaviyo-bis-trigger","data-bis-variant-id":U.id.split("/").pop()},Ye.atcText))))),(0,l.h)("div",{className:"quick-view__overlay"}))},L=function(e,t){(0,l.XX)((0,l.h)(M,{data:t}),e)}}}]); 2//# sourceMappingURL=0466aec3f962831d9643.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.