1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e55771f5-f33d-4f11-afc9-d3682681a4a0",e._sentryDebugIdIdentifier="sentry-dbid-e55771f5-f33d-4f11-afc9-d3682681a4a0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7650],{20354:(e,t,a)=>{"use strict";a.d(t,{default:()=>r});var s=a(95155),l=a(18854);let r=e=>{let{fallback:t="/"}=e;return(0,s.jsx)("button",{className:"absolute left-4 block lg:hidden",onClick:()=>{window.history.length>1?window.history.back():window.location.href=t},children:(0,s.jsx)(l.rZ,{})})}},26870:(e,t,a)=>{"use strict";a.d(t,{J:()=>l});var s=a(34477);let l=(0,s.createServerReference)("4073eec94d8cfe2b2d10d29dab40d916c40e891366",s.callServer,void 0,s.findSourceMapURL,"deleteLineItem")},27145:(e,t,a)=>{"use strict";a.d(t,{default:()=>z});var s=a(95155),l=a(53753),r=a(12115),i=a(76133),n=a(26870),c=a(67385),d=a(43734),o=a(18854);let u=e=>{let{id:t,children:a,className:l,"data-testid":i}=e,[u,m]=(0,r.useState)(!1),x=async e=>{m(!0),await (0,n.J)(e).catch(e=>{m(!1)})};return(0,s.jsx)("div",{className:(0,d.E)("flex items-center justify-between text-small-regular",l),children:(0,s.jsxs)("button",{className:"flex gap-x-1 text-ui-fg-subtle hover:text-ui-fg-base cursor-pointer hover:scale-110",onClick:()=>x(t),"data-testid":i,children:[u?(0,s.jsx)(c.A,{className:"animate-spin"}):(0,s.jsx)(o.ep,{}),(0,s.jsx)("span",{children:a})]})})};var m=a(10193),x=a(91228),p=a(76113),h=a(34477);let g=(0,h.createServerReference)("409cc4ca3ae37f7b74a93cd316429bfea54a7c73ba",h.callServer,void 0,h.findSourceMapURL,"updateLineItem"),f=e=>{let{value:t,onChange:a,max:l=10,updating:r}=e;return(0,s.jsxs)("div",{className:"flex items-center border-gray-300 w-full",children:[(0,s.jsx)("button",{onClick:()=>{t>1&&a(t-1)},className:"w-6 h-6 lg:w-8 lg:h-8 text-gray-400 text-[10px] lg:text-xl border bg-[#fbfbfb] flex items-center justify-center hover:text-gray-500 hover:font-bold",children:(0,s.jsx)("span",{className:"mb-[4px]",children:"-"})}),(0,s.jsx)("span",{className:"w-6 h-6 lg:w-8 lg:h-8 text-center border flex items-center justify-center font-medium text-gray-700",children:r?(0,s.jsx)(c.A,{className:"animate-spin"}):t}),(0,s.jsx)("button",{onClick:()=>{t<l&&a(t+1)},className:"w-6 h-6 lg:w-8 lg:h-8 text-orange-400 text-[10px] lg:text-xl border bg-[#fbfbfb] flex items-center justify-center hover:text-orange-500 hover:font-bold",children:(0,s.jsx)("span",{className:"mb-[4px]",children:"+"})})]})},v=e=>{let{id:t,children:a,className:l,"data-testid":i}=e,[o,u]=(0,r.useState)(!1),m=async e=>{u(!0),await (0,n.J)(e).catch(e=>{u(!1)})};return(0,s.jsx)("div",{className:(0,d.E)("flex lg:hidden items-center justify-between text-small-regular absolute top-2 right-1",l),children:(0,s.jsxs)("button",{className:"flex gap-x-1 text-ui-fg-subtle hover:text-ui-fg-base cursor-pointer",onClick:()=>m(t),"data-testid":i,children:[o?(0,s.jsx)(c.A,{className:"animate-spin"}):(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.225 6.225a.75.75 0 011.06 0L12 10.94l4.715-4.715a.75.75 0 111.06 1.06L13.06 12l4.715 4.715a.75.75 0 11-1.06 1.06L12 13.06l-4.715 4.715a.75.75 0 11-1.06-1.06L10.94 12 6.225 7.285a.75.75 0 010-1.06z",clipRule:"evenodd"})}),(0,s.jsx)("span",{children:a})]})})};var j=a(47056),b=a(66766),N=a(62770),y=a(91225),w=a(35695);let _=e=>{var t,a,l,n,c;let{item:d,type:o="full"}=e,{t:h}=(0,j.WD)(),_=(0,y.CC)((0,w.usePathname)()),[k,C]=(0,r.useState)(!1),[S,D]=(0,r.useState)(null),[A,V]=(0,r.useState)([]),M=(null==(t=d.variant)||t.manage_inventory,10),{handle:T}=null!=(c=null==(a=d.variant)?void 0:a.product)?c:{},I=async e=>{D(null),C(!0),await g({lineId:d.id,quantity:e}).catch(e=>{D(e.message)}).finally(()=>{C(!1)})},O=(0,N.sZ)(),P=O.getUTCDay(),E=O.getUTCHours(),U=1,F=2;E>=17&&(U=2,F=3),6===P&&(U=2,F=3);let L=(e,t)=>{let a=e;for(;t>0;)0!==(a=(0,N.LN)(a,1)).getUTCDay()&&t--;return a},X=L(O,U),G=L(O,F),R=e=>({day:e.getUTCDate(),month:(0,N.xx)(e,_)}),W=R(X),q=R(G),$=W.month===q.month?"".concat(W.day," - ").concat(q.day," ").concat(W.month):"".concat(W.day," ").concat(W.month," - ").concat(q.day," ").concat(q.month);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"add-to-basket-item-container","data-testid":"cart-line-item",children:[(0,s.jsx)(m.default,{className:"w-[25rem]",href:(0,i.X4)({handle:d.product_handle}),children:(0,s.jsx)(b.default,{width:200,height:200,src:(null==(n=d.variant)||null==(l=n.product)?void 0:l.thumbnail)||"/images/placeholder.png",alt:d.product_title||"Product Image",title:d.product_title||"Product Image",className:"img-add-to-basket"})}),(0,s.jsxs)("div",{className:"add-to-basket-header-container ",children:[(0,s.jsx)("p",{className:"add-to-basket-header ",children:d.product_title}),(0,s.jsxs)("p",{className:"add-to-basket-delivery-time",suppressHydrationWarning:!0,children:[h("shipping"),": ",$]}),(0,s.jsx)(x.A,{variant:d.variant,"data-testid":"product-variant"}),(0,s.jsx)("div",{className:"quantity-counter-mobile","data-testid":"cart-item-quantity-mobile",children:(0,s.jsx)(f,{value:d.quantity,onChange:e=>I(e),max:M,updating:k})}),(0,s.jsx)("div",{className:"flex lg:hidden items-center lg:justify-center lg:-ml-16",children:(0,s.jsx)(p.default,{item:d,isFromOrder:!0})})]}),(0,s.jsxs)("div",{className:"quantity-counter-web","data-testid":"cart-item-quantity-web",children:[(0,s.jsx)(f,{value:d.quantity,onChange:e=>I(e),max:M,updating:k}),k]}),(0,s.jsx)("div",{className:"hidden lg:flex items-center justify-center",children:(0,s.jsx)(p.default,{item:d,isFromOrder:!0})}),(0,s.jsx)(u,{id:d.id,"data-testid":"product-delete-button",className:"lg:flex hidden"}),(0,s.jsx)(v,{id:d.id,"data-testid":"product-delete-button"})]})})};var k=a(96554);let C=e=>{let{items:t}=e;return(0,s.jsx)(s.Fragment,{children:t?t.sort((e,t)=>
1{var a,s;return(null!=(a=e.created_at)?a:"")>(null!=(s=t.created_at)?s:"")?-1:1}).map(e=>(0,s.jsx)(_,{item:e},e.id)):(0,l.A)(5).map(e=>(0,s.jsx)(k.A,{},e))})};var S=a(71808),D=a(47732),A=a(30610);let V=e=>{var t,a;return(null==e||null==(t=e.shipping_address)?void 0:t.address_1)&&e.email?(null==e||null==(a=e.shipping_methods)?void 0:a.length)===0?"delivery":"payment":"address"},M=e=>{let{totals:t,cart:a}=e,{currency_code:l,total:r,subtotal:i,tax_total:n,shipping_total:c,discount_total:d,original_item_total:u}=t,{t:x}=(0,j.WD)();return V(a),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"order-summary-container",children:[(0,s.jsx)("span",{className:"order-summary-title",children:x("order-result")}),(0,s.jsxs)("div",{className:"summary-details-container",children:[(0,s.jsx)("span",{className:"summary-details-title",children:x("subtotal")}),(0,s.jsxs)("span",{className:"summary-details-price",children:[" ",(0,s.jsx)("span",{"data-testid":"cart-subtotal","data-value":u||0,children:(0,S.$)({amount:null!=u?u:0,currency_code:l})})]})]}),(0,s.jsxs)("div",{className:"summary-details-container ",children:[(0,s.jsx)("span",{className:"summary-details-title",children:x("shipping")}),(0,s.jsxs)("span",{className:"summary-details-price",children:[" ",(0,s.jsx)("span",{"data-testid":"cart-shipping","data-value":c||0,children:(0,S.$)({amount:null!=c?c:0,currency_code:l})})]})]}),d>0&&(0,s.jsxs)("div",{className:"promotions-basket-container",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.Qn,{}),(0,s.jsx)("span",{className:"font-bold text-[14px] text-custom-black ",children:x("promotions")})]}),(0,s.jsx)("span",{className:"promotion-total-container ",children:(0,s.jsxs)("span",{"data-testid":"cart-discount","data-value":d||0,children:["-",(0,S.$)({amount:null!=d?d:0,currency_code:l})]})})]}),(0,s.jsx)(D.A,{className:"mt-3"}),(0,s.jsxs)("div",{className:"total-price-container ",children:[(0,s.jsxs)("span",{className:"total-price-text ",children:[x("total")," ",(0,s.jsxs)("span",{className:"tva-included-text ",children:[" ",x("tva")," "]})]}),(0,s.jsxs)("span",{className:"total-price-final-value ",children:[" ",(0,s.jsx)("span",{"data-testid":"cart-total","data-value":r||0,children:(0,S.$)({amount:null!=r?r:0,currency_code:l})})]})]}),(0,s.jsx)(m.default,{href:"/checkout","data-testid":"checkout-button",title:x("payment-button-enabled"),children:(0,s.jsx)("button",{className:"checkout-button-cart",children:x("payment-button-enabled")})})]}),(0,s.jsxs)("div",{className:"payment-container-cart-section",children:[(0,s.jsxs)("div",{className:"small-3-sections-pay",children:[(0,s.jsx)("img",{src:(0,A.V)("/images/cod-v4.webp"),className:"w-[34px] h-[23px]",alt:"Cod",title:"Cod"}),(0,s.jsx)("div",{className:"small-3-sections-pay-text",children:x("pay-card-1")})]}),(0,s.jsxs)("div",{className:"small-3-sections-pay",children:[(0,s.jsx)("img",{src:(0,A.V)("/images/Banca Transilvania_idhrEWpjBu_1.png"),className:"h-[20px]",alt:"Ing",title:"Ing"}),(0,s.jsx)("div",{className:"small-3-sections-pay-text",children:x("pay-card-2")})]}),(0,s.jsxs)("div",{className:"small-3-sections-pay",children:[(0,s.jsx)("img",{src:(0,A.V)("/images/garanti-bank.webp"),className:"w-[34px] h-[20px]",alt:"Garanti",title:"Garanti"}),(0,s.jsx)("div",{className:"small-3-sections-pay-text",children:x("pay-card-3")})]})]}),(0,s.jsxs)("div",{className:"payment-icons-cart ",children:[(0,s.jsx)("img",{src:(0,A.V)("/images/Mastercard3x.png"),className:"w-[37px] h-[24px]",alt:"Mastercard",title:"Mastercard"}),(0,s.jsx)("img",{src:(0,A.V)("/images/maestro2.png"),className:"w-[37px] h-[24px]",alt:"Maestro",title:"Maestro"}),(0,s.jsx)("img",{src:(0,A.V)("/images/gpay3x.png"),className:"w-[37px] h-[24px]",alt:"Google Pay",title:"Google Pay"}),(0,s.jsx)("img",{src:(0,A.V)("/images/Visa3x.png"),className:"w-[37px] h-[24px]",alt:"Visa",title:"Visa"}),(0,s.jsx)("img",{src:(0,A.V)("/images/cod-v4.png"),className:"w-[37px] h-[24px]",alt:"Cod",title:"Cod"})]})]})};var T=a(82173);let I=e=>{let{cart:t}=e;return(0,s.jsxs)("div",{className:"add-to-basket-wrapper",children:[(0,s.jsx)(T.default,{cart:t}),(0,s.jsx)(M,{totals:t,cart:t})]})};var O=a(98428),P=a(40130),E=a(98468),U=a(75213);let F=e=>{var t,a,l;let{product:n,region:c,language:d}=e,{t:o}=(0,j.WD)(),{cheapestPrice:u}=(0,O.X)({product:n}),[x,p]=(0,r.useState)(!1),[h,g]=(0,r.useState)({}),[f,v]=(0,r.useState)();(0,r.useEffect)(()=>{var e,t;(null==(e=n.variants)?void 0:e.length)===1&&(g((null==(t=n.variants[0].options)?void 0:t.reduce((e,t)=>
1(t.option_id&&(e[t.option_id]=t.value),e),{}))||{}),v(n.variants[0]))},[n.variants]),(0,r.useEffect)(()=>{var e;v(null==(e=n.variants)?void 0:e.find(e=>{var t;return null==(t=e.options)?void 0:t.every(e=>e.option_id&&h[e.option_id]===e.value)}))},[h,n.variants]);let N=(e,t)=>{e&&g(a=>({...a,[e]:t}))},y=async()=>{if(null==f?void 0:f.id){p(!0);try{await (0,P.b)({variantId:f.id,quantity:1}),_(!0),window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{_(!1)},2e3)}catch(e){console.error("Failed to add to cart:",e)}finally{p(!1)}}},[w,_]=(0,r.useState)(!1);return(0,s.jsx)(m.default,{className:"p-4 hover:scale-[1.02]",href:(0,i.X4)(n),title:n.title,children:(0,s.jsxs)("div",{className:"flex gap-3 lg:gap-0 sm:flex-col h-full",children:[(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"w-[160px] h-[160px] sm:h-[250px] sm:w-full lg:full lg:w-full flex justify-center overflow-hidden",children:(0,s.jsx)(b.default,{height:300,width:300,src:n.thumbnail||"/placeholder.png",alt:n.title,title:n.title,className:"object-contain w-full h-full"})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-center lg:block w-full",children:[(0,s.jsx)("h3",{className:"text-[14px] lg:mt-2 h-fit font-bold",children:null==n?void 0:n.title}),u&&(0,s.jsx)("div",{className:"flex justify-start mt-1",children:(0,s.jsxs)("p",{className:"text-custom-orange font-bold text-[14px] lg:text-[16px] whitespace-nowrap",children:[u.calculated_price_number," ",u.currency_code.toUpperCase()]})}),(0,s.jsxs)("div",{className:"flex flex-col lg:hidden items-center gap-2 mt-3",children:[(0,s.jsx)("div",{className:"lg:flex-1 w-full",children:n&&n.options&&"Default option"!==(0,E.w)(null==n||null==(t=n.options[0])?void 0:t.title)?(0,s.jsx)("div",{className:"lg:flex-1",children:(n.options||[]).map(e=>{if((e.values||[]).length>0){var t;return(0,s.jsx)(U.A,{option:e,current:h[e.id],updateOption:N,title:null!=(t=e.title)?t:"",disabled:x,setOpenMobileActions:()=>{},language:d,hideOptionTitle:!0,fromCart:!0},e.id)}return null})}):(0,s.jsx)(s.Fragment,{})}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),y()},disabled:x||!f,className:"w-full py-3 px-4 text-white text-[10px] font-semibold rounded ".concat(x||w?"bg-custom-orange cursor-not-allowed":"bg-custom-orange hover:bg-custom-hover-orange"),children:o(w?"added-to-cart":"add-to-cart")})})]})]}),(0,s.jsxs)("div",{className:"hidden lg:flex items-end gap-2 mt-2 h-full",children:[n&&n.options&&"Default option"!==(0,E.w)(null==n||null==(a=n.options[0])?void 0:a.title)?(0,s.jsx)("div",{className:"lg:flex-1 w-1/2",children:(0,s.jsx)("div",{className:"lg:flex-1",children:(n.options||[]).map(e=>{if((e.values||[]).length>0){var t;return(0,s.jsx)(U.A,{option:e,current:h[e.id],updateOption:N,title:null!=(t=e.title)?t:"",disabled:x,setOpenMobileActions:()=>{},language:d,hideOptionTitle:!0,fromCart:!0},e.id)}return null})})}):null,(0,s.jsx)("div",{className:"".concat(n&&n.options&&"Default option"!==(0,E.w)(null==n||null==(l=n.options[0])?void 0:l.title)?"w-1/2":"w-full"),children:(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),y()},disabled:x||!f,className:"w-full py-3 px-4 text-white text-[10px] font-semibold rounded ".concat(x||w?"bg-custom-orange cursor-not-allowed":"bg-custom-orange hover:bg-custom-hover-orange"),children:o(w?"added-to-cart":"add-to-cart")})})]})]})})},L=e=>{let{cart:t,language:a,recommendedProducts:l}=e;return(0,s.jsx)("div",{className:"grid sm:grid-cols-3",children:(null==t?void 0:t.region)&&(null==l?void 0:l.map(e=>(0,s.jsx)(F,{region:t.region,product:e,language:a},e.id)))})};var X=a(82687);let G=e=>{let{product:t}=e,{cheapestPrice:a}=(0,O.X)({product:t}),[l,n]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),{t:o}=(0,j.WD)(),u=async()=>{var e,a;if(null==(e=t.variants[0])?void 0:e.id){n(!0);try{await (0,P.b)({variantId:null==(a=t.variants[0])?void 0:a.id,quantity:1}),d(!0),window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{d(!1)},2e3)}catch(e){console.error("Failed to add to cart:",e)}finally{n(!1)}}};return(0,s.jsxs)("div",{className:"bg-white border-2 border-custom-orange rounded-md w-full",children:[(0,s.jsx)("div",{className:"border-b-2 border-custom-orange py-4",children:(0,s.jsx)("span",{className:"border-b-2 border-custom-orange py-[18px] px-4 text-custom-orange font-bold",children:o("promotion-of-the-week")})}),(0,s.jsxs)("div",{className:"px-4 py-5",children:[(0,s.jsxs)("p",{className:"text-[14px] text-word-black",children:[o("add-in-cart"),(0,s.jsxs)("span",{className:"font-bold",children:[" ",t.title," "]})]}),(0,s.jsx)("div",{className:"flex justify-between items-center pt-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-4 w-full",children:[(0,s.jsx)(m.default,{className:"border",title:t.title,href:(0,i.X4)(t),children:(0,s.jsx)("img",{title:t.title,alt:t.title,className:"w-32",src:t.thumbnail})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 text-custom-orange font-bold text-[14px] w-full",children:[(0,s.jsx)(m.default,{href:(0,i.X4)(t),title:t.title,className:"text-word-black font-normal h-8",children:t.title})," ",(0,s.jsx)(X.A,{price:a}),(0,s.jsx)("button",{onClick:u,disabled:l,className:"w-full py-2 px-4 text-white text-[10px] font-semibold rounded ".concat(l||c?"bg-custom-orange cursor-not-allowed":"bg-custom-orange hover:bg-custom-hover-orange"),children:o(c?"added-to-cart":"add-to-cart")})]})]})})]})]})},R=e=>{let{product:t}=e,{cheapestPrice:a}=(0,O.X)({product:t}),[l,n]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),{t:o}=(0,j.WD)(),u=async()=>{var e,a;if(null==(e=t.variants[0])?void 0:e.id){n(!0);try{await (0,P.b)({variantId:null==(a=t.variants[0])?void 0:a.id,quantity:1}),d(!0),window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{d(!1)},2e3)}catch(e){console.error("Failed to add to cart:",e)}finally{n(!1)}}};return(0,s.jsxs)("div",{className:"bg-white border-1 border-[#e6e6e6] rounded-md w-full",children:[(0,s.jsx)("div",{className:"border-b-2 border-gray-300 py-4",children:(0,s.jsx)("span",{className:"border-b-2 border-custom-orange py-[18px] px-4 text-custom-orange font-bold",children:o("essential-recommendation")})}),(0,s.jsxs)("div",{className:"px-4 py-5",children:["prod_01JZ282W4FG9DAS1152WK359DE"===t.id&&(0,s.jsx)("p",{className:"text-[14px] text-word-black",children:o("essential-recommendation-text")}),(0,s.jsx)("div",{className:"flex justify-between items-center pt-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-4 w-full",children:[(0,s.jsx)(m.default,{className:"border",href:(0,i.X4)(t),title:t.title,children:(0,s.jsx)("img",{title:t.title,alt:t.title,className:"w-32",src:t.thumbnail})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 text-custom-orange font-bold text-[14px] w-full",children:[(0,s.jsx)(m.default,{href:(0,i.X4)(t),className:"text-word-black font-normal h-8",title:t.title,children:t.title}),(0,s.jsx)(X.A,{price:a}),(0,s.jsx)("button",{onClick:u,disabled:l,className:"w-full py-2 px-4 text-white text-[10px] font-semibold rounded ".concat(l||c?"bg-custom-orange cursor-not-allowed":"bg-custom-orange hover:bg-custom-hover-orange"),children:o(c?"added-to-cart":"add-to-cart")})]})]})})]})]})},W=e=>{let{customer:t,language:a,cart:l,recommendedProducts:r,weeklyProduct:i,brush:n}=e,{t:c}=(0,j.WD)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"empty-cart-wrapper",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"empty-cart-section ",children:[(0,s.jsx)(o.lI,{}),(0,s.jsxs)("h2",{className:"empty-cart-text",children:[c("empty-cart-1")," "]}),void 0===t&&(0,s.jsxs)(m.default,{href:"/account",title:c("log-in"),className:"log-in-sign-in-button",children:[c("log-in")," / ",c("sign-in")]}),(0,s.jsx)(m.default,{href:"/",title:c("continue-shopping"),className:"continue-shopping-button",children:c("continue-shopping")}),(0,s.jsx)("div",{className:"block lg:hidden mt-4 w-full px-4",children:(0,s.jsxs)("ul",{className:"flex justify-center lg:justify-start flex-wrap gap-3 mt-4 ",children:[(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/maestro2.png"),className:"w-[47.6px]",alt:"Maestro",title:"Maestro"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/Mastercard3x.png"),className:"w-[40.82px]",alt:"Mastercard",title:"Mastercard"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/gpay3x.png"),className:"w-[52.87px]",alt:"Gpay",title:"Gpay"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/Visa3x.png"),className:"w-[40.82px]",alt:"Visa",title:"Visa"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/cod-v4.png"),className:"w-[39.83px]",alt:"Cod",title:"Cod"})})})]})})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:gap-5 ga
1p-2",children:[i&&(0,s.jsx)(G,{product:i}),n&&(0,s.jsx)(R,{product:n})]}),(0,s.jsxs)("div",{className:"bg-white border-1 border-[#e6e6e6] rounded-md mb-[50px]",children:[(0,s.jsx)("div",{className:"border-b-2 border-gray-300 py-4",children:(0,s.jsx)("span",{className:"border-b-2 border-custom-orange py-[18px] px-4 text-custom-orange font-bold",children:c("recommended")})}),(0,s.jsx)("div",{className:"",children:(0,s.jsx)(L,{language:a,cart:l,recommendedProducts:r})})]})]}),(0,s.jsxs)("div",{className:"basket-payment-methods ",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.FF,{}),(0,s.jsx)("div",{className:" text-[12px] text-custom-black font-bold",children:c("pay-method-card")})]}),(0,s.jsxs)("ul",{className:"flex flex-wrap gap-3 mt-4",children:[(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/maestro2.png"),className:"w-[47.6px]",alt:"Maestro",title:"Maestro"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/Mastercard3x.png"),className:"w-[40.82px]",alt:"Mastercard",title:"Mastercard"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/gpay3x.png"),className:"w-[52.87px]",alt:"Gpay",title:"Gpay"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/Visa3x.png"),className:"w-[40.82px]",alt:"Visa",title:"Visa"})})}),(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#",children:(0,s.jsx)("img",{src:(0,A.V)("/images/cod-v4.png"),className:"w-[39.83px]",alt:"Cod",title:"Cod"})})})]})]})]})})};var q=a(20354),$=a(43184);let z=e=>{var t,a,l,i;let{cart:n,customer:c,language:d,brush:u,weeklyProduct:x,recommendedProducts:h}=e,{t:g}=(0,j.WD)(),[f,v]=(0,r.useState)(!1),b=()=>{v(e=>!e)},{currency_code:N,total:y,original_item_total:w,tax_total:_,shipping_total:k,discount_total:A}=n||{};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"top-white-border-cart "}),(0,s.jsx)("div",{className:"cart-template ",children:(0,s.jsxs)("div",{className:"main-container-product-page","data-testid":"cart-container",children:[(0,s.jsxs)("div",{className:"my-cart-text relative",children:[(0,s.jsx)(q.default,{fallback:"/"}),(0,s.jsxs)("h1",{children:[g("my-cart")," (",(null==n||null==(t=n.items)?void 0:t.length)||0,")"]})]}),(null==n||null==(a=n.items)?void 0:a.length)?(0,s.jsxs)("div",{className:"my-cart-template",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 lg:gap-5",children:[(0,s.jsx)(C,{items:null==n?void 0:n.items}),n&&n.region&&(0,s.jsxs)("div",{className:"block lg:hidden",children:[(0,s.jsx)(I,{cart:n}),f&&(0,s.jsx)("div",{onClick:e=>{e.target===e.currentTarget&&v(!1)},className:"fixed inset-0 bg-black bg-opacity-50 flex items-end z-40",children:(0,s.jsxs)("div",{className:"h-[28rem] bg-white w-full rounded-t-lg transform transition-transform duration-300",children:[(0,s.jsxs)("div",{className:"relative w-full border-b py-2.5 flex justify-center font-bold text-word-black",children:[g("checkout-detail-drop"),(0,s.jsx)("button",{onClick:()=>v(!1),className:"absolute right-4",children:"â"})]}),(0,s.jsxs)("div",{className:"p-[15px] border-b",children:[(0,s.jsxs)("div",{className:"flex gap-2 items-center text-[12px] font-bold text-word-black",children:[(0,s.jsx)($.D,{level:"h2",className:"text-[12px] font-bold text-word-black",children:g("my-cart")}),(0,s.jsxs)("p",{children:["(",(0,s.jsx)("span",{className:"px-0.5",children:null==n||null==(l=n.items)?void 0:l.length}),")"]})]}),(0,s.jsx)("div",{className:"flex gap-3 overflow-x-auto pt-2",children:null==n||null==(i=n.items)?void 0:i.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"relative rounded-md w-[60px] h-[80px]",children:[(0,s.jsx)("img",{className:"w-full h-full object-cover",alt:e.product_title||"Product Image",title:e.product_title||"Product Image",src:e.thumbnail}),(0,s.jsxs)("div",{className:"absolute top-0 left-0 bg-white w-4 text-default-gray text-[10px] text-center font-bold",children:["x",e.quantity]})]}),(0,s.jsx)(p.default,{item:e,isFromOrder:!1,fromCheckout:!1,fromReview:!0})]},t))})]}),(0,s.jsxs)("div",{className:"order-summary-container py-[10px]",children:[(0,s.jsx)("span",{className:"order-summary-title",children:g("order-result")}),(0,s.jsxs)("div",{className:"summary-details-container",children:[(0,s.jsx)("span",{className:"summary-details-title",children:g("subtotal")}),(0,s.jsxs)("span",{className:"summary-details-price",children:[" ",(0,s.jsx)("span",{"data-testid":"cart-subtotal","data-value":null!=w?w:0,children:(0,S.$)({amount:null!=w?w:0,currency_code:N})})]})]}),(0,s.jsxs)("div",{className:"summary-details-container ",children:[(0,s.jsx)("span",{className:"summary-details-title",children:g("shipping")}),(0,s.jsxs)("span",{className:"summary-details-price",children:[" ",(0,s.jsx)("span",{"data-testid":"cart-shipping","data-value":k||0,children:(0,S.$)({amount:null!=k?k:0,currency_code:N})})]})]}),A>0&&(0,s.jsxs)("div",{className:"promotions-basket-container",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.Qn,{}),(0,s.jsx)("span",{className:"font-bold text-[14px] text-custom-black ",children:g("promotions")})]}),(0,s.jsx)("span",{className:"promotion-total-container",children:(0,s.jsxs)("span",{"data-testid":"cart-discount","data-value":A||0,children:["-"," ",(0,S.$)({amount:null!=A?A:0,currency_code:N})]})})]}),(0,s.jsx)(D.A,{className:"mt-3"}),(0,s.jsxs)("div",{className:"total-price-container ",children:[(0,s.jsxs)("span",{className:"total-price-text",children:[g("total")," ",(0,s.jsxs)("span",{className:"tva-included-text",children:[" ",g("tva")," "]})]}),(0,s.jsxs)("span",{className:"total-price-final-value ",children:[" ",(0,s.jsx)("span",{"data-testid":"cart-total","data-value":y||0,children:(0,S.$)({amount:null!=y?y:0,currency_code:N})})]})]})]})]})}),(0,s.jsxs)("div",{className:"lg:hidden flex items-center gap-3 px-[15px] fixed bottom-0 h-16 bg-white w-full z-50 ".concat(f?"":"shadow-[0_-2px_5px_rgba(0,0,0,0.1)]"),children:[(0,s.jsx)("button",{onClick:()=>b(),className:"".concat(f?"rotate-180":""," h-full"),children:(0,s.jsx)("div",{className:"bg-gray-300 rounded-full h-5 w-5 flex justify-center items-center",children:(0,s.jsx)(o.t
1K,{})})}),(0,s.jsxs)("div",{className:"flex flex-col items-start text-word-black font-bold text-[12px] leading-4",children:[(0,s.jsxs)("p",{children:[" ",g("total")," ",(0,s.jsx)("span",{className:"text-default-gray text-[10px]",children:g("tva")})]}),(0,s.jsx)("p",{className:"text-custom-orange text-[14px]","data-testid":"cart-total","data-value":y||0,children:(0,S.$)({amount:null!=y?y:0,currency_code:N})})]}),(0,s.jsx)(m.default,{href:"/checkout",title:g("payment-button-enabled"),"data-testid":"checkout-button",className:"flex justify-center text-white font-bold rounded-md py-[10px] px-[15px] lg:p-[15px] w-full bg-custom-orange hover:bg-custom-hover-orange cursor-pointer",children:g("payment-button-enabled")})]})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row lg:gap-5 gap-2",children:[x&&(0,s.jsx)(G,{product:x}),u&&(0,s.jsx)(R,{product:u})]}),(0,s.jsxs)("div",{className:"bg-white border-1 border-[#e6e6e6] rounded-md mb-36",children:[(0,s.jsx)("div",{className:"border-b-2 border-gray-300 py-4",children:(0,s.jsx)("span",{className:"border-b-2 border-custom-orange py-[18px] px-4 text-custom-orange font-bold",children:g("recommended")})}),(0,s.jsx)("div",{className:" lg:px-4 py-5",children:(0,s.jsx)(L,{language:d,cart:n,recommendedProducts:h})})]})]}),n&&n.region&&(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(I,{cart:n})})]}):(0,s.jsx)("div",{children:(0,s.jsx)(W,{customer:c,language:d,cart:n,recommendedProducts:h,brush:u,weeklyProduct:x})})]})})]})}},30225:(e,t,a)=>{"use strict";function s(){for(var e,t,a=0,s="";a<arguments.length;)(e=arguments[a++])&&(t=function e(t){var a,s,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t)if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(s=e(t[a]))&&(l&&(l+=" "),l+=s);else for(a in t)t[a]&&(l&&(l+=" "),l+=a);return l}(e))&&(s&&(s+=" "),s+=t);return s}a.d(t,{Fj:()=>i});let l=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,{compose:r,cva:i,cx:n}=(e=>{let t=function(){for(var t,a,l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];return void 0!==(null==e||null==(t=e.hooks)?void 0:t["cx:done"])?null==e?void 0:e.hooks["cx:done"](s(r)):void 0!==(null==e||null==(a=e.hooks)?void 0:a.onComplete)?null==e?void 0:e.hooks.onComplete(s(r)):s(r)};return{compose:function(){for(var e=arguments.length,a=Array(e),s=0;s<e;s++)a[s]=arguments[s];return e=>{let s=Object.fromEntries(Object.entries(e||{}).filter(e=>{let[t]=e;return!["class","className"].includes(t)}));return t(a.map(e=>e(s)),null==e?void 0:e.class,null==e?void 0:e.className)}},cva:e=>a=>{var s;if((null==e?void 0:e.variants)==null)return t(null==e?void 0:e.base,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:r,defaultVariants:i}=e,n=Object.keys(r).map(e=>{let t=null==a?void 0:a[e],s=null==i?void 0:i[e],n=l(t)||l(s);return r[e][n]}),c={...i,...a&&Object.entries(a).reduce((e,t)=>{let[a,s]=t;return void 0===s?e:{...e,[a]:s}},{})},d=null==e||null==(s=e.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:a,className:s,...l}=t;return Object.entries(l).every(e=>{let[t,a]=e,s=c[t];return Array.isArray(a)?a.includes(s):s===a})?[...e,a,s]:e},[]);return t(null==e?void 0:e.base,n,d,null==a?void 0:a.class,null==a?void 0:a.className)},cx:t}})()},30610:(e,t,a)=>{"use strict";a.d(t,{V:()=>l});let s="https://object-store.eu-east-1.acvile.cloud/swift/v1/oskar";function l(e){return e.startsWith("http")||e.startsWith(s)?e:"".concat(s).concat(e)}},34477:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{callServer:function(){return s.callServer},createServerReference:function(){return r},findSourceMapURL:function(){return l.findSourceMapURL}});let s=a(53806),l=a(31818),r=a(34979).createServerReference},46178:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var s=a(12115),l=a(65125),r=a(59993);let i=e=>{let{cart:t,customer:a}=e,[i,n]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(t&&t.items&&!i){var e,s,c,d,o;n(!0);let i=(0,r.N)();(0,l.sendGTMEvent)({ecommerce:null}),(0,l.sendGTMEvent)({event:"view_cart",event_id:i,user_data:{email_address:(null==a?void 0:a.email)||"",phone_number:(null==a||null==(e=a.addresses[0])?void 0:e.phone)||"",address:{first_name:(null==a?void 0:a.first_name)||"",last_name:(null==a?void 0:a.last_name)||"",city:(null==a||null==(s=a.addresses[0])?void 0:s.city)||"",country:(null==a||null==(d=a.addresses[0])||null==(c=d.country_code)?void 0:c.toUpperCase())||""}},ecommerce:{ecomm_pagetype:"cart",currency:(null==(o=t.currency_code)?void 0:o.toUpperCase())||"RON",value:t.total,items:t.items.map(e=>{var t,a,s,l,r,i,n,c;return{item_id:(null==e||null==(a=e.product)||null==(t=a.metadata)?void 0:t.sku)||(null==e||null==(s=e.variant)?void 0:s.sku),item_name:null==e||null==(l=e.product)?void 0:l.title,item_category:(null==(c=e.variant)||null==(n=c.product)||null==(i=n.categories)||null==(r=i[0])?void 0:r.name)||"Uncategorized",price:e.unit_price||0,quantity:e.quantity}})}})}},[t]),null}},53753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=e=>Array.from(Array(e).keys())},62770:(e,t,a)=>{"use strict";a.d(t,{LN:()=>i,sZ:()=>r,xx:()=>n});var s=a(91225);let l=new Intl.DateTimeFormat("en-US",{timeZone:"Europe/Bucharest",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t={};for(let a of l.formatToParts(e))t[a.type]=a.value;return new Date(Date.UTC(Number(t.year),Number(t.month)-1,Number(t.day),Number(t.hour)%24,Number(t.minute),Number(t.second)))},i=(e,t)=>{let a=new Date(e.getTime());
1return a.setUTCDate(a.getUTCDate()+t),a},n=(e,t)=>e.toLocaleDateString((0,s.uE)(t),{month:"long",timeZone:"UTC"})},66766:(e,t,a)=>{"use strict";a.d(t,{default:()=>l.a});var s=a(71469),l=a.n(s)},71469:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return c},getImageProps:function(){return n}});let s=a(38466),l=a(38883),r=a(33063),i=s._(a(51193));function n(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let c=r.Image},76133:(e,t,a)=>{"use strict";function s(e,t){var a;if(!t)return null;let s=Array.isArray(e)?e[0]:e;return(s?null==(a=t.slugs)?void 0:a[s.toLowerCase()]:void 0)||t.slug||t.handle||null}function l(e){let t=s(null,e);return t?"/products/".concat(t):"/"}function r(e){let t=s(null,e);return t?"/categories/".concat(t):"/"}a.d(t,{GL:()=>r,X4:()=>l}),a(91225)},82687:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155),l=a(24084);function r(e){let{price:t}=e;return t?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"discount-badge-orange",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:["sale"===t.price_type&&(0,s.jsxs)(l.E,{className:"minus-discount",children:["-",t.percentage_diff,"%"]}),(0,s.jsxs)("div",{className:"actual-price",children:[t.calculated_price_number," ",t.currency_code.toUpperCase()]})]}),"sale"===t.price_type&&(0,s.jsxs)(l.E,{className:"reduction-price","data-testid":"original-price",children:[t.original_price_number," ",t.currency_code.toUpperCase()]})]})}):null}},91228:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155),l=a(24084);let r=e=>{let{variant:t,"data-testid":a,"data-value":r,textBlack:i}=e;return(0,s.jsx)(l.E,{"data-testid":a,"data-value":r,className:"add-to-basket-delivery-time",children:(null==t?void 0:t.title)!=="Default option value"&&(0,s.jsx)("span",{className:"".concat(i?"text-[14px]":"text-default-gray text-xs"),children:null==t?void 0:t.title})})}},95917:(e,t,a)=>{Promise.resolve().then(a.bind(a,27145)),Promise.resolve().then(a.bind(a,46178))},96554:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(95155),l=a(94539);let r=()=>(0,s.jsxs)(l.X.Row,{className:"w-full m-4",children:[(0,s.jsx)(l.X.Cell,{className:"p-4 w-24",children:(0,s.jsx)("div",{className:"flex w-24 h-24 p-4 bg-gray-200 animate-pulse"})}),(0,s.jsx)(l.X.Cell,{className:"text-left",children:(0,s.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,s.jsx)("div",{className:"w-32 h-4 bg-gray-200 animate-pulse"}),(0,s.jsx)("div",{className:"w-24 h-4 bg-gray-200 animate-pulse"})]})}),(0,s.jsx)(l.X.Cell,{children:(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("div",{className:"w-6 h-8 bg-gray-200 animate-pulse"}),(0,s.jsx)("div",{className:"w-14 h-10 bg-gray-200 animate-pulse"})]})}),(0,s.jsx)(l.X.Cell,{children:(0,s.jsx)("div",{className:"flex gap-2",children:(0,s.jsx)("div",{className:"w-12 h-6 bg-gray-200 animate-pulse"})})}),(0,s.jsx)(l.X.Cell,{children:(0,s.jsx)("div",{className:"flex gap-2 justify-end",children:(0,s.jsx)("div",{className:"w-12 h-6 bg-gray-200 animate-pulse"})})})]})}},e=>{var t=t=>e(e.s=t);e.O(0,[7056,6874,3734,1597,1869,5125,791,2326,8657,8070,9793,8441,9175,7358],()=>t(95917)),_N_E=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.