1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[523],{46523:function(e,t,s){s.r(t),s.d(t,{default:function(){return N}});var i=s(85893),l=s(67024),a=s(21737),n=s(78126),r=s(9627),o=s(60155),d=s(96872),c=s(63879),x=s(51649),m=s(11129),u=(0,s(67294).memo)((function(e){var t,s=e.item,l=(0,a.jD)(),n=l.isInStock,o=l.addItemToCart,u=l.removeItemFromCart,p=l.clearItemFromCart,f=!n(s._id),h=(0,r.ZP)({amount:s.price}).price;return(0,i.jsxs)("div",{className:"group w-full h-auto flex justify-start items-center bg-skin-fill py-4 md:py-7 border-b border-skin-one border-opacity-70 relative last:border-b-0",title:null===s||void 0===s?void 0:s.name,children:[(0,i.jsxs)("div",{className:"relative flex rounded overflow-hidden flex-shrink-0 cursor-pointer w-[90px] md:w-[100px] h-[90px] md:h-[100px]",children:[(0,i.jsx)(c.Z,{src:null!==(t=null===s||void 0===s?void 0:s.image)&&void 0!==t?t:"/assets/placeholder/cart-item.svg",width:100,height:100,placeholder:"blur",blurDataURL:"/assets/placeholder/config-blur.png",alt:s.name||"Product Image",className:"object-cover bg-skin-thumbnail"}),(0,i.jsx)("div",{className:"absolute top-0 start-0 h-full w-full bg-black bg-opacity-30 md:bg-opacity-0 flex justify-center items-center transition duration-200 ease-in-out md:group-hover:bg-opacity-30",onClick:function(){return p(s._id)},role:"button",children:(0,i.jsx)(x.FMH,{className:"relative text-white text-2xl transform md:scale-0 md:opacity-0 transition duration-300 ease-in-out md:group-hover:scale-100 md:group-hover:opacity-100"})})]}),(0,i.jsxs)("div",{className:"flex w-full overflow-hidden items-start justify-between",children:[(0,i.jsxs)("div",{className:"ps-3 md:ps-4",children:[(0,i.jsx)(d.Z,{href:"/shop/product/".concat(decodeURIComponent(null===s||void 0===s?void 0:s.lien)),className:"block text-skin-base text-[13px] sm:text-sm mb-2 lg:text-[15px] transition-all leading-5 hover:text-skin-primary",children:null===s||void 0===s?void 0:s.title}),(0,i.jsxs)("div",{className:"text-13px sm:text-sm text-skin-muted mt-1.5 md:block mb-2 hidden",children:["x ",s.quantity]}),(0,i.jsx)(m.Z,{value:s.quantity,onIncrement:function(){o(s,1)},onDecrement:function(){u(s._id)},variant:"cart",disabled:f})]}),(0,i.jsx)("div",{className:"flex font-semibold text-sm md:text-base text-skin-base leading-5 flex-shrink-0 min-w-[65px] md:min-w-[80px] justify-end",children:h})]})]})}));u.displayName="CartItem";var p=u,f=s(49732),h=s(58448),b=function(){return(0,i.jsxs)("div",{className:"px-5 md:px-7 pt-8 pb-5 flex justify-center flex-col items-center",children:[(0,i.jsx)("div",{className:"flex mx-auto w-[220px] md:w-auto",children:(0,i.jsx)(o.toq,{className:"text-[120px] text-gray-400"})}),(0,i.jsx)(h.Z,{variant:"titleMedium",className:"mb-1.5 pt-8",children:"Votre panier est vide."}),(0,i.jsx)(f.Z,{children:"Veuillez ajouter des produits \xe0 votre liste de panier."})]})},v=s(68139),j=s(94184),k=s.n(j),g=s(40872),y=function(e){(0,g.Z)({},e);return(0,i.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,i.jsx)("path",{d:"M14.3546 3.46335L13.207 16.5406H4.79372L3.64636 3.46335L2.1925 3.59079L3.36082 16.9052C3.42231 17.5189 3.95478 18 4.57336 18H13.4274C14.0458 18 14.5784 17.5191 14.6409 16.8964L15.8085 3.59079L14.3546 3.46335Z",fill:"black"}),(0,i.jsx)("path",{d:"M11.6758 0H6.32445C5.65381 0 5.10822 0.54559 5.10822 1.21623V3.52705H6.56766V1.45944H11.4325V3.52702H12.8919V1.2162C12.892 0.54559 12.3464 0 11.6758 0Z",fill:"black"}),(0,i.jsx)("path",{d:"M16.7838 2.79724H1.21625C0.813183 2.79724 0.486511 3.12391 0.486511 3.52698C0.486511 3.93005 0.813183 4.25672 1.21625 4.25672H16.7838C17.1869 4.25672 17.5136 3.93005 17.5136 3.52698C17.5136 3.12391 17.1869 2.79724 16.7838 2.79724Z",fill:"black"})]})})};var N=function(){var e=(0,n.l8)().closeDrawer,t=(0,a.jD)(),s=t.items,c=t.total,x=t.isEmpty,m=t.resetCart,u=(0,r.ZP)({amount:c}).price;return(0,i.jsxs)("div",{className:"flex flex-col w-full h-full justify-between",children:[(0,i.jsxs)("div",{className:"w-full flex justify-between items-center relative ps-5 md:ps-7 border-b border-skin-base",children:[(0,i.jsx)(h.Z,{variant:"titleMedium",children:"Panier"}),(0,i.jsxs)("div",{className:"flex items-center",children:[!x&&(0,i.jsxs)("button",{className:"flex flex-shrink items-center text-15px transition duration-150 ease-in focus:outline-none text-skin-base opacity-50 hover:opacity-100 -me-1.5","aria-label":"Effacer tout",onClick:m,children:[(0,i.jsx)(y,{}),(0,i.jsx)("span",{className:"ps-1",children:"Effacer tout"})]}),(0,i.jsx)("button",{className:"flex text-2xl items-center justify-center px-4 md:px-6 py-6 lg:py-7 focus:outline-none transition-opacity text-skin-base hover:opacity-60",onClick:e,"aria-label":"close",children:(0,i.jsx)(o.bjh,{})})]})]}),x?(0,i.jsx)(b,{}):(0,i.jsx)(l.Z,{className:"cart-scrollbar w-full flex-grow",children:(0,i.jsx)("div",{className:"w-full px-5 md:px-7",children:null===s||void 0===s?void 0:s.map((function(e){return(0,i.jsx)(p,{item:e},e._id)}))})}),(0,i.jsxs)("div",{className:"border-t border-skin-base px-5 md:px-7 pt-5 md:pt-6 pb-5 md:pb-6",children:[(0,i.jsxs)("div",{className:"flex pb-5 md:pb-7",children:[(0,i.jsxs)("div",{className:"pe-3",children:[(0,i.jsx)(h.Z,{className:"mb-2.5",children:"Sous-total:"}),(0,i.jsx)(f.Z,{className:"leading-6",children:"Le prix final et les r\xe9ductions seront d\xe9termin\xe9s au moment du traitement du paiement."})]}),(0,i.jsx)("div",{className:"flex-shrink-0 font-semibold text-base md:text-lg text-skin-base -mt-0.5 min-w-[80px] text-end",children:u})]}),(0,i.jsx)("div",{className:"flex flex-col",onClick:e,children:(0,i.jsx)(d.Z,{href:!1===x?v.Z.CHECKOUT:"/",className:k()("w-full px-5 py-3 md:py-4 flex items-center justify-center bg-heading rounded font-semibold text-sm sm:text-15px text-skin-inverted bg-skin-primary focus:outline-none transition duration-300 hover:bg-opacity-90",{"curs
1or-not-allowed !text-skin-base !text-opacity-25 bg-skin-button-disable hover:bg-skin-button-disable":x}),children:(0,i.jsx)("span",{className:"py-0.5",children:"PASSER COMMANDE"})})})]})]})}}}]);
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.