text: (this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[0],{289:function(e,t,s){},427:function(e,t,s){"use strict";s.r(t),s.d(t,"store",(function(){return ra}));var a=s(0),r=s.n(a),n=s(15),c=s.n(n),i=s(11),l=s(14),o=s(62),d=s(260),m=(s(288),s(289),s(25)),u=s(1),j=function(e){var t=e.value,s=e.text;return Object(u.jsxs)("div",{className:"space-x-1 inline-flex items-center",children:[Object(u.jsx)("svg",{className:"w-4 h-4 ".concat(t&&t>=1?"text-pink-500 ":"text-gray-500"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),Object(u.jsx)("svg",{className:"w-4 h-4 ".concat(t&&t>=2?"text-pink-500 ":"text-gray-500"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),Object(u.jsx)("svg",{className:"w-4 h-4 ".concat(t&&t>=3?"text-pink-500 ":"text-gray-500"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),Object(u.jsx)("svg",{className:"w-4 h-4 ".concat(t&&t>=4?"text-pink-500 ":"text-gray-500"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),Object(u.jsx)("svg",{className:"w-4 h-4 ".concat(t&&t>=5?"text-pink-500 ":"text-gray-500"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),s&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("span",{children:"\xb7"}),Object(u.jsx)("span",{className:"text-gray-500 text-xs",children:s&&s})]})]})},x=function(e){var t=e.productItem;return Object(u.jsx)("div",{className:"w-full sm:w-1/2 md:w-1/3 lg:w-1/4 px-3 flex flex-col mb-8 group hover:scale-105 transition ease-in-out duration-200 transform",children:Object(u.jsxs)(i.b,{to:"/product/".concat(null===t||void 0===t?void 0:t._id),className:"bg-white rounded-lg shadow hover:shadow-md hover:translate-y-7 transition flex-1 flex flex-col overflow-hidden",children:[Object(u.jsx)("div",{className:"relative w-full rounded-md h-40",children:Object(u.jsx)("div",{className:"absolute inset-0 rounded-md overflow-hidden",children:Object(u.jsx)("img",{src:t.image[0],alt:t.name,className:"object-cover object-center"})})}),Object(u.jsxs)("div",{className:"p-5 flex-1 flex flex-col justify-between",children:[Object(u.jsx)("div",{children:Object(u.jsx)("p",{className:"bg-pink-50 text-pink-500 rounded-lg px-2 py-1 mb-1 text-xs inline-block",children:null===t||void 0===t?void 0:t.category})}),Object(u.jsx)("h3",{className:"text-gray-900 text-lg mb-3 leading-7",children:null===t||void 0===t?void 0:t.name}),Object(u.jsx)(j,{value:t.rating,text:"".concat(t.numReviews," commentaires")}),Object(u.jsx)("div",{children:Object(u.jsx)("p",{className:"inline-flex items-center",children:Object(u.jsxs)("span",{className:"text-gray-600 text-base mt-2 font-semibold",children:[t.price," Frs"]})})})]})]})})},p="PRODUCT_START",b="PRODUCT_ERROR",h="GET_PRODUCT_SUCCESS",f="GET_PRODUCT_DETAILS_SUCCESS",g="PRODUCT_DELETE_SUCCESS",v="PRODUCT_SEARCH_START",O="PRODUCT_SEARCH_RESET",y="PRODUCT_SEARCH_SUCESS",N="PRODUCT_UPDATE_START",w="PRODUCT_UPDATE_ERROR",S="PRODUCT_UPDATE_SUCESS",k="PRODUCT_UPDATE_RESET",_="PRODUCT_RATING_TOP_START",R="PRODUCT_RATING_TOP_ERROR",C="PRODUCT_RATING_TOP_SUCESS",E="PRODUCT_CREATE_START",L="PRODUCT_CREATE_ERROR",A="PRODUCT_CREATE_SUCESS",T="PRODUCT_CREATE_RESET",P="PRODUCT_CREATE_REVIEW_ERROR",D="PRODUCT_CREATE_REVIEW_START",I="PRODUCT_CREATE_REVIEW_SUCESS",M="PRODUCT_CREATE_REVIEW_RESET",U="ADD_NOTIFICATION",B="REMOVE_NOTIFICATION",z="CART_ITEM_REMOVE",F="CART_ITEM_RESET",H="CART_ITEM_ADD",W="CART_SAVE_SHIPPING_ADDRESS",Z="CART_SAVE_PAYMENT_METHOD",V="USER_LOGIN_START",K="USER_LOGIN_ERROR",G="USER_LOGIN_SUCCESS",q="USER_LOGOUT",J="USER_REGISTER_START",Y="USER_REGISTER_ERROR",Q="USER_DETAILS_START",X="USER_DETAILS_ERROR",$="USER_DETAILS_SUCCESS",ee="USER_DETAILS_RESET",te="USER_LIST_START",se="USER_LIST_ERROR",ae="USER_LIST_SUCCESS",re="USER_DELETE_SUCCESS",ne="USER_EDIT_START",ce="USER_EDIT_ERROR",ie="USER_EDIT_SUCCESS",le="USER_UPDATE_START",oe="USER_UPDATE_ERROR",de="USER_UPDATE_SUCESS",me="USER_UPDATE_PROFILE_START",ue="USER_UPDATE_PROFILE_ERROR",je="USER_UPDATE_PROFILE_SUCCESS",xe="USER_UPDATE_PROFILE_RESET",pe="ORDER_START",be="ORDER_ERROR",he="ORDER_CREATE_SUCCESS",fe="ORDER_DETAILS_SUCCESS",ge="ORDER_LIST_START",ve="ORDER_LIST_ERROR",Oe="ORDER_LIST_SUCCESS",ye="ORDERS_PAY_START",Ne="ORDERS_PAY_ERROR",we="ORDERS_PAY_SUCCESS",Se="ORDERS_PAY_RESET",ke="ORDERS_DELIVER_START",_e="ORDERS_DELIVER_ERROR",Re="ORDERS_DELIVER_SUCCESS",Ce="ORDERS_DELIVER_RESET",Ee="USER_ORDERS_START",Le="USER_ORDERS_ERROR",Ae="USER_ORDERS_SUCCESS",Te="USER_ORDERS_RESET",Pe=function(e,t){return{type:U,payload:{type:e,msg:t}}},De=function(e,t){return function(s){s(Pe(e,t))}},Ie="application/json",Me=s(16),Ue=s.n(Me),Be=function(){return{type:p}},ze=function(){return{type:b}},Fe=function(){return function(e){var t,s;e(Be()),Ue.a.get("/api/products",{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(t=ra.getState())||void 0===t||null===(s=t.user)||void 0===s?void 0:s.token)}}).then((function(t){var s,a;e((a=null===(s=t.data)||void 0===s?void 0:s.products,{type:h,payload:{products:a}}))})).catch((function(t){var s=t.response&&t.response.data.message?t.response.data.message:t.message;e(Pe("ERROR",s)),e(ze())}))}},He=function(e){return function(t){var s,a;t(Be()),Ue.a.get("/api/products/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){var s,a;t((a=null===(s=e.data)||void 0===s?void 0:s.product,{type:f,payload:{product:a}}))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),t(ze())}))}},We=function(e){return function(t){var s,a;Ue.a.delete("/api/products/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(s){t(function(e){return{type:g,payload:{productId:e}}}(e)),t(Pe("SUCCESS",s.data.msg))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),console.log(e)}))}},Ze=function(){return function(e){var t,s;e({type:E}),Ue.a.post("/api/products",{},{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(t=ra.getState())||void 0===t||null===(s=t.user)||void 0===s?void 0:s.token)}}).then((function(t){var s;e((s=t.data.createdProduct,{type:A,payload:{createdProduct:s}}))})).catch((function(t){var s=t.response&&t.response.data.message?t.response.data.message:t.message;e(Pe("ERROR",s)),e({type:L}),console.log(t)}))}},Ve=function(e,t){return function(s){var a,r;s({type:N}),Ue.a.put("/api/products/".concat(e),t,{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(a=ra.getState())||void 0===a||null===(r=a.user)||void 0===r?void 0:r.token)}}).then((function(e){(null===e||void 0===e?void 0:e.data)&&(s({type:S}),s(Pe("SUCCESS",e.data.msg)))})).catch((function(e){console.log(e);var t=e.response&&e.response.data.message?e.response.data.message:e.message;s(Pe("ERROR",t)),s({type:w})}))}},Ke=function(e,t){return function(s){var a,r;s({type:D}),Ue.a.post("/api/products/".concat(e,"/reviews"),t,{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(a=ra.getState())||void 0===a||null===(r=a.user)||void 0===r?void 0:r.token)}}).then((function(e){var t;s((t=e.data.createdProduct,{type:I,payload:{createdReview:t}})),s(Pe("SUCCESS",e.data.msg))})).catch((function(e){var t=e.response&&e.response.data.message?e.response.data.message:e.message;s(Pe("ERROR",t)),s({type:P}),console.log(e)}))}},Ge=function(){return function(e){e({type:_}),Ue.a.get("/api/products/rating/top",{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie}}).then((function(t){var s;e((s=t.data.products,{type:C,payload:{products:s}}))})).catch((function(t){var s=t.response&&t.response.data.message?t.response.data.message:t.message;e(Pe("ERROR",s)),e({type:R}),console.log(t)}))}},qe=function(e){return function(t){t(function(e){return{type:z,payload:{cartItem:{product:e}}}}(e)),localStorage.setItem("cartItems",JSON.stringify(ra.getState().cart.cartItems)),t(Pe("SUCCESS","produit supprim\xe9 de votre pannier."))}},Je=function(e,t){return function(s){var a,r;Ue.a.get("/api/products/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(a=ra.getState())||void 0===a||null===(r=a.user)||void 0===r?void 0:r.token)}}).then((function(e){var a;s(function(e,t){return{type:H,payload:{cartItem:{product:null===e||void 0===e?void 0:e._id,name:null===e||void 0===e?void 0:e.name,price:null===e||void 0===e?void 0:e.price,countInStock:null===e||void 0===e?void 0:e.countInStock,image:null===e||void 0===e?void 0:e.image,qty:t}}}}(null===(a=e.data)||void 0===a?void 0:a.product,t)),localStorage.setItem("cartItems",JSON.stringify(ra.getState().cart.cartItems))})).catch((function(e){var t=e.response&&e.response.data.message?e.response.data.message:e.message;s(Pe("ERROR",t))}))}},Ye=function(e){return function(t){t(function(e){return{type:W,payload:{shippingAddress:e}}}(e)),localStorage.setItem("shippingAddress",JSON.stringify(e))}},Qe=function(e){return function(t){t(function(e){return{type:Z,payload:{paymentMethod:e}}}(e)),localStorage.setItem("paymentMethod",JSON.stringify(e))}},Xe=s(27),$e=function(e,t){return{type:G,payload:{userInfo:t,token:e}}},et=function(e,t){return function(s){var a,r;s({type:V}),Ue.a.post("/api/users/login",{email:e,password:t},{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(a=ra.getState())||void 0===a||null===(r=a.user)||void 0===r?void 0:r.token)}}).then((function(e){s($e(e.data.userLoggedIn.token,e.data.userLoggedIn)),s(Pe("SUCCESS",e.data.msg)),localStorage.setItem("token",e.data.userLoggedIn.token),localStorage.setItem("userInfo",JSON.stringify(ra.getState().user.userInfo))})).catch((function(e){var t=e.response&&e.response.data.message?e.response.data.message:e.message;s({type:K}),s(Pe("ERROR",t))}))}},tt=function(){return function(e){localStorage.removeItem("userInfo"),localStorage.removeItem("token"),localStorage.removeItem("shippingAddress"),localStorage.removeItem("cartItems"),e({type:F}),e({type:q}),e({type:ee}),e({type:Te})}},st=function(e,t,s){return function(a){var r,n;a({type:J}),Ue.a.post("/api/users/register",{name:e,email:t,password:s},{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(r=ra.getState())||void 0===r||null===(n=r.user)||void 0===n?void 0:n.token)}}).then((function(e){a($e(e.data.userRegistered.token,e.data.userRegistered)),a(Pe("SUCCESS",e.data.msg)),localStorage.setItem("token",e.data.userRegistered.token),localStorage.setItem("userInfo",JSON.stringify(ra.getState().user.userInfo))})).catch((function(e){var t=e.response&&e.response.data.message?e.response.data.message:e.message;a({type:Y}),a(Pe("ERROR",t))}))}},at=function(e){return function(t){var s,a;t({type:me}),Ue.a.put("/api/users/profile",e,{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){var s;t((s=e.data.updatedProfile,{type:je,payload:{userDetails:s}})),t(Pe("SUCCESS",e.data.msg)),localStorage.setItem("userInfo",JSON.stringify(Object(Xe.a)(Object(Xe.a)({},ra.getState().user.userInfo),e.data.updatedProfile)))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t({type:ue}),t(Pe("ERROR",s))}))}},rt=function(e){return function(t){var s,a;t({type:Q}),Ue.a.get("/api/users/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){var s;t((s=e.data.userProfile,{type:$,payload:{userDetails:s}}))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t({type:X}),t(Pe("ERROR",s))}))}},nt=function(){return{type:pe}},ct=function(){return{type:be}},it=function(e){return function(t){var s,a;t(nt()),Ue.a.post("/api/orders",e,{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){var s,a;t((a=null===(s=e.data)||void 0===s?void 0:s.createdOrderItem,{type:he,payload:{orderItem:a}}))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),t(ct())}))}},lt=function(e){return function(t){var s,a;t(nt()),Ue.a.get("/api/orders/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){var s,a;t((a=null===(s=e.data)||void 0===s?void 0:s.orderDetails,{type:fe,payload:{orderDetails:a}}))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),t(ct())}))}},ot=function(e,t){return function(s){var a,r;s({type:ye}),Ue.a.put("/api/orders/".concat(e,"/pay"),t,{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(a=ra.getState())||void 0===a||null===(r=a.user)||void 0===r?void 0:r.token)}}).then((function(e){s({type:we}),s(Pe("SUCCESS",e.data.msg))})).catch((function(e){var t=e.response&&e.response.data.message?e.response.data.message:e.message;s(Pe("ERROR",t)),s({type:Ne})}))}},dt=function(){return function(e){var t,s;e({type:te}),Ue.a.get("/api/users",{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(t=ra.getState())||void 0===t||null===(s=t.user)||void 0===s?void 0:s.token)}}).then((function(t){var s;e((s=t.data.userList,{type:ae,payload:{userList:s}}))})).catch((function(t){var s=t.response&&t.response.data.message?t.response.data.message:t.message;e(Pe("ERROR",s)),e({type:se}),console.log(t)}))}},mt=function(e){return function(t){var s,a;Ue.a.delete("/api/users/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(s){t(function(e){return{type:re,payload:{userId:e}}}(e)),t(Pe("SUCCESS",s.data.msg))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),console.log(e)}))}},ut=function(e){return function(t){var s,a;t({type:ne}),Ue.a.get("/api/users/".concat(e),{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){var s;t((s=e.data.user,{type:ie,payload:{userEdit:s}}))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),t({type:ce}),console.log(e)}))}},jt=function(e,t){return function(s){var a,r;s({type:le}),Ue.a.put("/api/users/".concat(e),t,{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(a=ra.getState())||void 0===a||null===(r=a.user)||void 0===r?void 0:r.token)}}).then((function(e){(null===e||void 0===e?void 0:e.data)&&(s({type:de}),s(Pe("SUCCESS",e.data.msg)))})).catch((function(e){console.log(e);var t=e.response&&e.response.data.message?e.response.data.message:e.message;s(Pe("ERROR",t)),s({type:oe})}))}},xt=function(){return function(e){var t,s;e({type:Ee}),Ue.a.get("/api/orders/myorders",{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(t=ra.getState())||void 0===t||null===(s=t.user)||void 0===s?void 0:s.token)}}).then((function(t){var s;e((s=t.data.userOrders,{type:Ae,payload:{userOrders:s}}))})).catch((function(t){var s=t.response&&t.response.data.message?t.response.data.message:t.message;e(Pe("ERROR",s)),e({type:Le}),console.log(t)}))}},pt=function(){return function(e){var t,s;e({type:ge}),Ue.a.get("/api/orders",{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(t=ra.getState())||void 0===t||null===(s=t.user)||void 0===s?void 0:s.token)}}).then((function(t){var s;e((s=t.data.orders,{type:Oe,payload:{orders:s}}))})).catch((function(t){var s=t.response&&t.response.data.message?t.response.data.message:t.message;e(Pe("ERROR",s)),e({type:ve}),console.log(t)}))}},bt=function(e){return function(t){var s,a;t({type:ke}),Ue.a.put("/api/orders/".concat(e,"/deliver"),{},{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(s=ra.getState())||void 0===s||null===(a=s.user)||void 0===a?void 0:a.token)}}).then((function(e){t({type:Re}),t(Pe("SUCCESS",e.data.msg))})).catch((function(e){var s=e.response&&e.response.data.message?e.response.data.message:e.message;t(Pe("ERROR",s)),t({type:_e})}))}},ht=function(e){return Object(u.jsxs)("div",{className:"flex flex-col items-center space-y-4 text-center text-gray-500 justify-center",children:[Object(u.jsxs)("svg",{className:"w-3/4 h-72 mb-2",viewBox:"0 0 1116.21 857.08",children:[Object(u.jsxs)("defs",{children:[Object(u.jsxs)("linearGradient",{id:"6af09e6e-7617-4e7d-96c6-87d8d61cc5fb",x1:"654.32",y1:"613.24",x2:"654.32",y2:"117",gradientUnits:"userSpaceOnUse",children:[Object(u.jsx)("stop",{offset:"0",stopColor:"gray",stopOpacity:"0.25"}),Object(u.jsx)("stop",{offset:"0.54",stopColor:"gray",stopOpacity:"0.12"}),Object(u.jsx)("stop",{offset:"1",stopColor:"gray",stopOpacity:"0.1"})]}),Object(u.jsx)("linearGradient",{id:"f366e0cb-9767-4f71-a21d-568f9afb6f3a",x1:"475.65",y1:"861.71",x2:"475.65",y2:"223.28",xlinkHref:"#6af09e6e-7617-4e7d-96c6-87d8d61cc5fb"})]}),Object(u.jsx)("title",{children:e.children}),Object(u.jsx)("path",{d:"M1131.06,604.2c-1,.73-1.92,1.44-2.9,2.13a97.79,97.79,0,0,1-11.33,6.91c-20.58,10.85-45.95,16.15-70.66,19.75-55.42,8.08-112,9.65-168.34,11.19C725.6,648.36,573,652.53,421.14,642.9c-60-3.8-121.32-10.16-175.69-29.66q-11.69-4.18-22.92-9.22c-15.15-6.81-29.7-15.1-41.8-25-11.37-9.28-20.59-19.94-26.1-32.06-11.49-25.24-5.41-53.59,7.71-78.33a243.42,243.42,0,0,1,18.39-28.77c10.13-13.93,21.3-27.46,31.49-41.38C248.48,349,272.14,286.4,238.67,235.65c-9.62-14.58-23.52-27.38-31.36-42.6-10-19.47-9.23-41.09-6.05-62.09q.62-4,1.31-7.92C208,91.9,218.22,58.35,249.73,38.91c32.73-20.2,79.21-19.18,119.83-12C432.73,38.19,491,61.67,549.89,82.87s120.5,40.57,185.22,42.65c57.15,1.84,123.81-11.93,161.74-47.72,36.84-34.76,106.09-37.41,156-16.41,34.26,14.41,59.82,40.37,70.6,69.57a90.81,90.81,0,0,1,4.69,18.12,83.56,83.56,0,0,1,.84,17.09c-.15,2.82-.44,5.61-.84,8.37-8.34,57.62-68.37,103.07-104.86,154.54-17.83,25.14-30.42,55.34-18.16,82.45,18.7,41.31,83.73,56,123,86.74a92.4,92.4,0,0,1,19.3,19.8C1166.47,545.43,1159.44,582.38,1131.06,604.2Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899",opacity:"0.1"}),Object(u.jsxs)("g",{id:"d00831fc-a64a-413c-b5dd-d7bd6eafa01d","data-name":"flowers",children:[Object(u.jsx)("path",{d:"M299.89,346.32s-46-81.52-115.32-105c-29.09-9.86-54.48-28.4-71.84-53.74a238,238,0,0,1-21.2-38.12",transform:"translate(-41.9 -21.46)",fill:"none",stroke:"#535461",strokeMiterlimit:"10",strokeWidth:"2"}),Object(u.jsx)("path",{d:"M47.94,134.37C55.84,142,92.62,150,92.62,150s-9-36.52-16.92-44.19a19.93,19.93,0,0,0-27.76,28.6Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M68.75,200.46c10.79,2.14,46-11.19,46-11.19S87.3,163.51,76.5,161.37a19.93,19.93,0,0,0-7.75,39.09Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M144.5,272c10.4-3.6,34-32.87,34-32.87s-36.68-8.39-47.07-4.79a19.93,19.93,0,1,0,13,37.66Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M214,313.19c10.86-1.8,39.1-26.65,39.1-26.65s-34.73-14.47-45.59-12.68A19.93,19.93,0,0,0,214,313.19Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M145.39,160.73c0,11-19.9,42.93-19.9,42.93s-19.94-31.91-19.95-42.91a19.93,19.93,0,1,1,39.85,0Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M226.07,210c-3.29,10.5-31.84,35-31.84,35S184.75,208.55,188,198a19.93,19.93,0,0,1,38,11.91Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M297.91,268.55c-1.46,10.91-25.46,39.88-25.46,39.88s-15.5-34.28-14-45.19a19.93,19.93,0,0,1,39.5,5.31Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M47.94,134.37C55.84,142,92.62,150,92.62,150s-9-36.52-16.92-44.19a19.93,19.93,0,0,0-27.76,28.6Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M68.75,200.46c10.79,2.14,46-11.19,46-11.19S87.3,163.51,76.5,161.37a19.93,19.93,0,0,0-7.75,39.09Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M144.5,272c10.4-3.6,34-32.87,34-32.87s-36.68-8.39-47.07-4.79a19.93,19.93,0,1,0,13,37.66Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M214,313.19c10.86-1.8,39.1-26.65,39.1-26.65s-34.73-14.47-45.59-12.68A19.93,19.93,0,0,0,214,313.19Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M145.39,160.73c0,11-19.9,42.93-19.9,42.93s-19.94-31.91-19.95-42.91a19.93,19.93,0,1,1,39.85,0Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M226.07,210c-3.29,10.5-31.84,35-31.84,35S184.75,208.55,188,198a19.93,19.93,0,0,1,38,11.91Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M297.91,268.55c-1.46,10.91-25.46,39.88-25.46,39.88s-15.5-34.28-14-45.19a19.93,19.93,0,0,1,39.5,5.31Z",transform:"translate(-41.9 -21.46)",opacity:"0.25"}),Object(u.jsx)("path",{d:"M297.24,344.7s-9-93.18-62.88-142.74c-22.59-20.8-38.29-48-43.9-78.24a238.15,238.15,0,0,1-3.92-43.45",transform:"translate(-41.9 -21.46)",fill:"none",stroke:"#535461",strokeMiterlimit:"10",strokeWidth:"2"}),Object(u.jsx)("path",{d:"M152.79,48.84c4.12,10.21,34.53,32.36,34.53,32.36s6.55-37.05,2.44-47.26a19.93,19.93,0,0,0-37,14.9Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M145,117.69c9,6.33,46.57,8.4,46.57,8.4S177,91.43,168,85.1A19.92,19.92,0,1,0,145,117.69Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M185.31,213.77c11,.93,44.44-16.26,44.44-16.26s-30.13-22.53-41.1-23.45a19.93,19.93,0,1,0-3.34,39.71Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M232.15,279.61c10.66,2.76,46.55-8.52,46.55-8.52s-25.89-27.3-36.54-30.06a19.93,19.93,0,0,0-10,38.58Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M231.2,112.43c-4.45,10.06-35.59,31.17-35.59,31.17s-5.3-37.24-.85-47.31a19.93,19.93,0,1,1,36.44,16.14Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M285,190.11c-7.26,8.27-43.29,19.1-43.29,19.1s6.08-37.12,13.35-45.39A19.92,19.92,0,1,1,285,190.11Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M327,272.8c-5.76,9.38-39.44,26.14-39.44,26.14s-.28-37.62,5.48-47a19.93,19.93,0,0,1,34,20.86Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"})]}),Object(u.jsx)("ellipse",{cx:"408.16",cy:"837.18",rx:"111.53",ry:"14.52",fill:"#ec4899",opacity:"0.1"}),Object(u.jsxs)("g",{id:"5cfdbbb0-8197-4f02-a5fd-2740d54b5dec","data-name":"floor flowers",children:[Object(u.jsx)("ellipse",{cx:"182.88",cy:"836.06",rx:"33.88",ry:"5.8",fill:"#ec4899",opacity:"0.1"}),Object(u.jsx)("path",{d:"M232.14,792.94s5.49,7.19-2.54,18-14.65,20-12,26.77c0,0,12.11-20.15,22-20.43S243,805.06,232.14,792.94Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M232.14,792.94a8.83,8.83,0,0,1,1.12,2.26c9.62,11.3,14.75,21.85,5.5,22.11-8.61.25-18.95,15.65-21.42,19.54a9.24,9.24,0,0,0,.29.89s12.11-20.15,22-20.43S243,805.06,232.14,792.94Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M242.35,802.1c0,2.53-.28,4.58-.63,4.58s-.64-2-.64-4.58.36-1.34.71-1.34S242.35,799.57,242.35,802.1Z",transform:"translate(-41.9 -21.46)",fill:"#ffd037"}),Object(u.jsx)("path",{d:"M245.86,805.12c-2.22,1.21-4.16,1.94-4.33,1.63s1.5-1.54,3.72-2.75,1.34-.33,1.51,0S248.08,803.91,245.86,805.12Z",transform:"translate(-41.9 -21.46)",fill:"#ffd037"}),Object(u.jsx)("path",{d:"M203.12,792.94s-5.49,7.19,2.54,18,14.65,20,12,26.77c0,0-12.11-20.15-22-20.43S192.28,805.06,203.12,792.94Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("path",{d:"M203.12,792.94A8.83,8.83,0,0,0,202,795.2c-9.62,11.3-14.75,21.85-5.5,22.11,8.62.25,18.95,15.65,21.42,19.54a7.11,7.11,0,0,1-.29.89s-12.11-20.15-22-20.43S192.28,805.06,203.12,792.94Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M192.91,802.1c0,2.53.28,4.58.63,4.58s.64-2,.64-4.58-.36-1.34-.71-1.34S192.91,799.57,192.91,802.1Z",transform:"translate(-41.9 -21.46)",fill:"#ffd037"}),Object(u.jsx)("path",{d:"M189.41,805.12c2.22,1.21,4.15,1.94,4.32,1.63s-1.5-1.54-3.72-2.75-1.34-.33-1.51,0S187.19,803.91,189.41,805.12Z",transform:"translate(-41.9 -21.46)",fill:"#ffd037"}),Object(u.jsx)("path",{d:"M194.66,836.8s15.36-.48,20-3.77,23.62-7.24,24.77-1.95,23.08,26.29,5.74,26.43-40.29-2.7-44.91-5.51S194.66,836.8,194.66,836.8Z",transform:"translate(-41.9 -21.46)",fill:"#a8a8a8"}),Object(u.jsx)("path",{d:"M245.47,855.67c-17.34.14-40.29-2.7-44.91-5.51-3.52-2.15-4.92-9.84-5.39-13.38l-.51,0s1,12.38,5.59,15.2,27.57,5.65,44.91,5.51c5,0,6.74-1.82,6.64-4.46C251.11,854.65,249.2,855.64,245.47,855.67Z",transform:"translate(-41.9 -21.46)",opacity:"0.2"}),Object(u.jsx)("path",{d:"M707.6,836.21s-42.28-2.55-37.29,27.08c0,0-1,5.23,3.75,7.61,0,0,.08-2.19,4.34-1.45a19.36,19.36,0,0,0,4.59.22,9.5,9.5,0,0,0,5.62-2.32h0s11.88-4.9,16.5-24.33c0,0,3.42-4.24,3.29-5.33l-7.14,3s2.44,5.15.52,9.43c0,0-.23-9.24-1.6-9-.28,0-3.71,1.78-3.71,1.78s4.2,9,1,15.48c0,0,1.2-11-2.34-14.83l-5,2.93s4.9,9.26,1.58,16.82c0,0,.85-11.59-2.63-16.11l-4.55,3.55s4.6,9.13,1.79,15.4c0,0-.36-13.49-2.78-14.51,0,0-4,3.51-4.59,5,0,0,3.15,6.62,1.2,10.12,0,0-1.2-9-2.19-9,0,0-4,6-4.38,10,0,0,.18-6.07,3.42-10.61a11.94,11.94,0,0,0-6.07,3.15s.62-4.21,7-4.58c0,0,3.28-4.52,4.16-4.79,0,0-6.4-.54-10.28,1.18,0,0,3.41-4,11.45-2.17l4.49-3.66s-8.42-1.16-12,.12c0,0,4.12-3.52,13.21-1l4.9-2.92s-7.19-1.55-11.47-1c0,0,4.52-2.44,12.9.2l3.5-1.57s-5.27-1-6.81-1.19-1.62-.59-1.62-.59a18.26,18.26,0,0,1,9.89,1.1S707.73,836.68,707.6,836.21Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("ellipse",{cx:"636.58",cy:"852.02",rx:"29.92",ry:"5.06",fill:"#ec4899",opacity:"0.1"}),Object(u.jsx)("path",{d:"M633.53,837.79s-23.84-1.44-21,15.27a4.08,4.08,0,0,0,2.12,4.29s0-1.24,2.45-.82a11.67,11.67,0,0,0,2.58.13,5.47,5.47,0,0,0,3.17-1.31h0s6.7-2.77,9.31-13.72c0,0,1.92-2.39,1.85-3l-4,1.71s1.37,2.91.29,5.32c0,0-.13-5.21-.9-5.09-.16,0-2.09,1-2.09,1s2.36,5,.58,8.73c0,0,.67-6.23-1.32-8.37l-2.83,1.66s2.76,5.22.89,9.48c0,0,.48-6.54-1.49-9.08l-2.56,2s2.59,5.15,1,8.68c0,0-.21-7.61-1.57-8.18a15.64,15.64,0,0,0-2.59,2.79s1.78,3.74.68,5.71c0,0-.68-5.07-1.23-5.09,0,0-2.24,3.36-2.47,5.66a12.15,12.15,0,0,1,1.92-6,6.72,6.72,0,0,0-3.42,1.77s.35-2.38,4-2.58c0,0,1.84-2.55,2.34-2.7,0,0-3.61-.31-5.8.66,0,0,1.93-2.24,6.46-1.22l2.53-2.07s-4.75-.65-6.76.07c0,0,2.32-2,7.45-.54l2.75-1.64a24.71,24.71,0,0,0-6.46-.56s2.55-1.37,7.27.11l2-.88s-3-.59-3.83-.68-.92-.33-.92-.33a10.32,10.32,0,0,1,5.58.62S633.6,838.06,633.53,837.79Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("ellipse",{cx:"575.21",cy:"837.35",rx:"16.87",ry:"2.85",fill:"#ec4899",opacity:"0.1"}),Object(u.jsx)("path",{d:"M678.9,802.38s-28.77-1.74-25.38,18.43a4.92,4.92,0,0,0,2.56,5.18s0-1.49,2.95-1a14.19,14.19,0,0,0,3.12.15,6.59,6.59,0,0,0,3.83-1.58h0s8.09-3.34,11.23-16.57c0,0,2.33-2.88,2.24-3.62l-4.86,2.07s1.66,3.51.36,6.42c0,0-.16-6.29-1.1-6.14-.18,0-2.52,1.21-2.52,1.21s2.86,6.11.7,10.54c0,0,.82-7.52-1.59-10.1l-3.42,2s3.34,6.3,1.08,11.45c0,0,.58-7.89-1.8-11l-3.1,2.41s3.14,6.21,1.23,10.48c0,0-.25-9.18-1.9-9.88,0,0-2.71,2.39-3.12,3.37,0,0,2.15,4.51.81,6.89,0,0-.81-6.11-1.48-6.14,0,0-2.7,4-3,6.83a14.71,14.71,0,0,1,2.32-7.22,8.13,8.13,0,0,0-4.13,2.14s.42-2.87,4.8-3.12c0,0,2.23-3.07,2.83-3.26,0,0-4.36-.36-7,.81,0,0,2.32-2.71,7.8-1.48l3.06-2.49s-5.74-.79-8.17.08c0,0,2.8-2.39,9-.65l3.33-2s-4.89-1-7.8-.67c0,0,3.07-1.66,8.78.13l2.38-1.06s-3.59-.71-4.64-.82-1.1-.4-1.1-.4a12.43,12.43,0,0,1,6.73.75S679,802.7,678.9,802.38Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("ellipse",{cx:"617.19",cy:"806.29",rx:"20.37",ry:"3.44",fill:"#ec4899",opacity:"0.1"})]}),Object(u.jsxs)("g",{id:"1cf578eb-5ffb-4cd7-95b8-45aaaddab7e0","data-name":"browser",children:[Object(u.jsx)("path",{d:"M1130,606.13V117H178.65V578.07c12.15,10.14,26.76,18.67,42,25.68q11.26,5.19,23,9.49h875Z",transform:"translate(-41.9 -21.46)",fill:"url(#6af09e6e-7617-4e7d-96c6-87d8d61cc5fb)"}),Object(u.jsx)("path",{d:"M1128.16,606.33V131H180.73v448.1c12.1,9.86,26.65,18.15,41.8,25q11.22,5,22.92,9.22h871.38Z",transform:"translate(-41.9 -21.46)",fill:"#fff"}),Object(u.jsx)("rect",{x:"138.84",y:"96.93",width:"947.42",height:"25.14",fill:"#5a5773"})]}),Object(u.jsxs)("g",{id:"6703b009-63cb-4af0-a0d7-9948e224c180","data-name":"buttons",children:[Object(u.jsx)("circle",{cx:"157.76",cy:"109.5",r:"6.5",fill:"#fff"}),Object(u.jsx)("circle",{cx:"175.26",cy:"109.5",r:"6.5",fill:"#fff"}),Object(u.jsx)("circle",{cx:"192.76",cy:"109.5",r:"6.5",fill:"#fff"})]}),Object(u.jsxs)("g",{id:"8c4e1fb4-b9ff-4530-b767-610e84618ea6","data-name":"boxes",children:[Object(u.jsx)("rect",{x:"380.95",y:"177.32",width:"156.5",height:"98.34",fill:"#ec4899"}),Object(u.jsx)("rect",{x:"164.26",y:"177.32",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"597.64",y:"177.32",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"164.26",y:"317.91",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"380.95",y:"317.91",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"597.64",y:"317.91",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"164.26",y:"458.49",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"380.95",y:"458.49",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"}),Object(u.jsx)("rect",{x:"597.64",y:"458.49",width:"156.5",height:"98.34",fill:"#5a5773",opacity:"0.2"})]}),Object(u.jsxs)("g",{id:"2796dd85-6618-42ad-b8a0-d6b4cc80ab2d","data-name":"woman",children:[Object(u.jsx)("path",{d:"M551.37,445.2S523.26,393.82,528,385.46,536.23,365,536.23,365s10.38-7.1,10.38-10,8.22-9.61,12.55-12.53,2.16-16.71,0-18.38-5.59-7.52-5.59-7.52,3-8.35,0-10.86.44-5,0-7.52,0-11.69,0-11.69c-3.51-4.88-7.4-7.16-11.06-8l-.32-1.32-1.85-7.79s9-17.25-5.6-26.28a24.4,24.4,0,0,0-3.23-1.7s0-.42-.08-1.13c-.2-2.58-.81-9-2.12-13.21-.76-2.42-1.75-4.05-3-3.68a2,2,0,0,0-.82.47,9.12,9.12,0,0,0-1.55,1.83s0,0,0,0a.41.41,0,0,1-.07.11,0,0,0,0,1,0,0,31.36,31.36,0,0,0-3.44,9.55,55.16,55.16,0,0,0-1,6,.08.08,0,0,0,0,0,33,33,0,0,0-1.67,3.71c-1.77,4.59-3.84,12.54-.07,18.42,3.2,5,7.51,11.87,10.64,16.87l.1.16.19.31-.33.21,0,.77.29,4.21L531,322.39a15.45,15.45,0,0,0-2.22-.47,20.17,20.17,0,0,0-3.23-.21c-2.11-8.29-7.9-16-9-24.66a22.87,22.87,0,0,1-.17-2.61c.09-5.45,1.45-10.92,1.34-16.36,0-1,0-2-.1-3v0c0-.27-.05-.55-.08-.83a24.59,24.59,0,0,0-13.37-18.63c-2.51-1.25-5.23-2.08-7.67-3.45-5.64-3.16-9.25-8.86-14.37-12.77-3.81-2.91-9.5-4.47-13.75-3a63.49,63.49,0,0,0-6.69,1.38h0a60.35,60.35,0,0,0-15.31,6.36c-.65.39-1.3.79-1.92,1.25a8.46,8.46,0,0,0-3.09,3.61,9.46,9.46,0,0,0-.48,3.89c0,.95,0,1.92.06,2.87-.28,16-17.52,28.38-18.94,44,0,.37-.06.74-.08,1.11,0,.11,0,.22,0,.34,0,.45,0,.91,0,1.37v0c0,.21,0,.41,0,.62s0,.42,0,.63c.25,6.85,3.81,13.23,4.46,20.05.06.61.09,1.21.1,1.82a30.24,30.24,0,0,1-1.77,9.18,26.87,26.87,0,0,0-6.21,2.52c-5.24,3.37-14.7,9.19-18.15,20.32a29.76,29.76,0,0,0-1.31,8.92,186.26,186.26,0,0,1-2.92,31.85,59.53,59.53,0,0,1-1.84,7.83,1.84,1.84,0,0,0-.06.77l-2.08,27-.37,4.75-.52,6.76s.15.41.37,1.1a31.8,31.8,0,0,1,.82,3.12,16.78,16.78,0,0,1,.27,7,4.82,4.82,0,0,1-1.46,2.57,1.08,1.08,0,0,0-.17.19c-.59.83-1.12,3.3-1.58,6.88-.18,1.4-.35,3-.52,4.66-1,10.65-1.62,26.59-2,39.77-.36,13-.49,23.27-.49,23.27a26.54,26.54,0,0,0,5.37,2.66c-.14.35-.29.71-.43,1.09a52.53,52.53,0,0,0-3.26,13.74c-.84,9.83,1.91,20.75,15.62,26.37a22.06,22.06,0,0,0,2.69.92c3,.8,5.21.58,6.84-.42,0,.59.07,1.16.1,1.73.14,2.44.26,4.67.32,6.54.43,11.7,3.33,32.16,3.33,32.16s1,8.36.13,10.86,0,12.53,0,12.53,3,5,0,7.52-3.89,15-3,16.71a.56.56,0,0,1,.05.19c.66,4.15-3.07,65.81-3.07,65.81s-3.53,9.44-6.34,19.24c-2.74,9.54-4.8,19.42-2.26,21.27,1.26.92,4.19,1.61,7.91,2.14,0,.41-.06.82-.1,1.24-.36,4.41-.93,9.16-1.75,10.36-1.19,1.7-2.44,14.88-3.05,22l-.06.79a73.7,73.7,0,0,0-3.22,9.34s-9.57,24-6.33,30.23a5.11,5.11,0,0,0,1.19,1.47h0a2.7,2.7,0,0,0,.31.28c4.61,3.69,16.16,4.46,20.35,4.63l-.16,5.94v.22h5.45v-.15c0-.75.12-4.19.3-8.79,0-.82.06-1.68.1-2.56,0-.69.07-1.39.1-2.11A37,37,0,0,0,426,834.76a58.58,58.58,0,0,1,2.1-15.48,43,43,0,0,1,2.77-7.55s1.7-9-.67-15.37a11.1,11.1,0,0,0-2-3.46c0-.21,0-.42,0-.64s0-.48,0-.73,0-.41,0-.63a57.69,57.69,0,0,1,1.28-12.82,1.42,1.42,0,0,1,0-.2c.08-.35.17-.68.26-1l.06-.22,1.77.06c5.43.15,9.42.15,9.42.15s4.33-22.14,3.9-31.74c0-.42,0-.86,0-1.3-.15-9.54,2.62-22.51,2.62-22.51L451,687.47s-1.73-5.86,0-10c1.07-2.58,3.28-7.37,4.82-10.67.72-1.53,1.29-2.73,1.53-3.25l.14-.28a6.47,6.47,0,0,1-1.54-.77h0c-1.41-.94-2.67-2.78,1.55-5.49,6.49-4.18,4.33-14.62,4.33-14.62s-1.91-3.76.34-7.1,0-15.87,0-15.87a52.47,52.47,0,0,0,4.44-10.45c1.61-5,5.68-29.45,7.6-41.24.63-3.87,1-6.37,1-6.37l.06.61.06.66h0l.54,5.57.07.74,1,10.53s2,27.68.75,38.53c0,.07,0,.14,0,.2a12.82,12.82,0,0,1-.73,3.29c-2.3,5.2-1.88,25.86-1.76,30.43,0,.37,0,.67,0,.92s-1.63,4.08-1.22,7.06h0a4.53,4.53,0,0,0,.79,2.1,5.32,5.32,0,0,1,.77,3.25v.1a11.81,11.81,0,0,1-.12,1.44,27.46,27.46,0,0,1-1.52,5.66s-2.32,6.1-1.44,9.29c0,0,0,0,0,0a2.94,2.94,0,0,0,.57,1.13,2.67,2.67,0,0,1,.33,1.2.43.43,0,0,0,0,.11c.81,6.73-1.28,36.44-2.52,52.7-.5,6.42-.86,10.74-.86,10.74l-3.43,35.5.34.24c.39.28,1.12.76,2.1,1.34,0,0,0,0,0,.08l-.15,1.07c-.49,3.42-1.15,7.4-1.87,10.44-.06.23-.11.45-.17.66a9.57,9.57,0,0,0-3.67,1.47c-7.28,12.93-4.06,23.18,0,26.16,1.15.84,1.93,3.19,2.45,6.11l1,12.89c0,.52,0,1,0,1.48a3.84,3.84,0,0,0,.19,1.18l.31,3.91.42,5.44h3.32V849h.18c5.24.18,13.69.4,17.37.11h.1c.39,0,.72-.07,1-.11a2.51,2.51,0,0,0,.58-.16c1.95-.94,6.81-14.72,2.43-17.85s-5.35-12-5.35-12c-.38-1.16-.76-2.26-1.15-3.31,0-.23,0-.45,0-.68-.12-4.29-.07-8.94.52-11.46.66-2.77,1-8.59,1.14-13.69,0-.39,0-.77,0-1.15v-.12a17.07,17.07,0,0,0,2.23-.73l.16-.07a15.71,15.71,0,0,0,3.73-2.21L506,731.33l1.29-6.31,7.35-35.89s-2.59-12.53,0-14.61c.95-.76,1.21-4,1.15-7.75-.1-6.56-1.15-14.81-1.15-14.81s3.46-5.43,5.2-8.77,0-12.11,0-12.11L523.25,611s3.9-23.81,13.41-43.86c7-14.75,2.54-54.58-2-75.78-.12-.55-.24-1.09-.36-1.61l0-.08c2.14-1.06,4.76-2.34,7.56-3.68l1.06-.5c3.55-1.67,7.31-3.39,10.68-4.82l.22-.09a74.58,74.58,0,0,1,7.43-2.78,12.47,12.47,0,0,1,2.28-.47C569.54,476.94,551.37,445.2,551.37,445.2ZM416.06,513.15l1.8,0c-.21.39-.41.79-.61,1.19-.12.24-.24.47-.35.71-.66,1.37-1.27,2.77-1.77,4.14.2-1.48.45-3.09.73-4.81C415.93,514,416,513.55,416.06,513.15Zm-4.86,26.07a.74.74,0,0,0,0-.14l-.15-.47c-.11-.32-.21-.64-.31-1q.93-.28,1.89-.63l.13,0c0,.11,0,.22,0,.33-.05.47-.11.94-.17,1.4h0a1,1,0,0,1,0,.18c0,.38-.09.74-.13,1.1-.09.72-.18,1.42-.26,2.09-.19-.63-.38-1.25-.58-1.86C411.42,539.89,411.31,539.55,411.2,539.22Z",transform:"translate(-41.9 -21.46)",fill:"url(#f366e0cb-9767-4f71-a21d-568f9afb6f3a)"}),Object(u.jsx)("path",{d:"M541,284.92l-10.8,3.82-3.92-6.5c-3-5-7.16-11.84-10.23-16.81-5.42-8.74,1.67-22.06,1.67-22.06S519,230,523.56,225.88s5.83,17.49,5.83,17.49c18.31,8.32,8.5,27.89,8.5,27.89l1.78,7.76Z",transform:"translate(-41.9 -21.46)",fill:"#efb7b9"}),Object(u.jsx)("path",{d:"M541,284.92l-10.8,3.82-3.92-6.5,0-.57s6.19-4.25,13.41-2.65Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M523.56,328.72l5.41-4.58-2.71-41.22s14-9.58,24.36,5.41c0,0-.42,9.16,0,11.66s-2.91,5,0,7.49,0,10.83,0,10.83,3.29,5.83,5.37,7.49,4.17,15.41,0,18.32S544,353.7,544,356.61s-10,10-10,10L525.22,355Z",transform:"translate(-41.9 -21.46)",fill:"#ff6484"}),Object(u.jsx)("path",{d:"M406.56,578.94c-20.18-8.56-15.7-29.47-11.9-40a54.46,54.46,0,0,1,2.67-6.24l11.32-6.87s2.31,5.89,4.78,13.79C419.16,558,425.75,587.09,406.56,578.94Z",transform:"translate(-41.9 -21.46)",fill:"#efb7b9"}),Object(u.jsx)("path",{d:"M434.3,769.73a34,34,0,0,0-3,8.42A60.81,60.81,0,0,0,430,792.48c.08,3.33.36,5.51.36,5.51l-22.48,15.46s.13-1.81.35-4.47c.58-7.08,1.79-20.22,2.93-21.92.79-1.18,1.34-5.92,1.69-10.32s.49-8.26.49-8.26S440.39,758.34,434.3,769.73Z",transform:"translate(-41.9 -21.46)",fill:"#efb7b9"}),Object(u.jsx)("path",{d:"M487.39,780.82s0,4.3-.16,9.3-.46,10.9-1.09,13.65c-.58,2.52-.62,7.15-.51,11.42.15,5,.51,9.5.51,9.5s-22.95-21.7-20.61-23.42c.63-.46,1.25-2.31,1.82-4.77.7-3,1.33-7,1.8-10.4.56-4.05.91-7.31.91-7.31Z",transform:"translate(-41.9 -21.46)",fill:"#efb7b9"}),Object(u.jsx)("path",{d:"M434.3,769.73a34,34,0,0,0-3,8.42,183.72,183.72,0,0,1-18.4-1.41c.34-4.3.49-8.26.49-8.26S440.39,758.34,434.3,769.73Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M487.39,780.82s0,4.3-.16,9.3c-7.16,1.83-14.52-1.83-18.08-4,.56-4.05.91-7.31.91-7.31Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M534.38,568.12c-9.16,20-12.91,43.72-12.91,43.72l-3.33,20s1.67,8.74,0,12.07-5,8.75-5,8.75,2.5,20.4,0,22.48,0,14.57,0,14.57l-8.33,42-11.66,54.12c-11.24,9.17-26.2-2.49-26.2-2.49l3.3-35.39s5-62,2.92-64.54S474,673,474,673s2.92-7.5.84-10.41.41-9.16.41-9.16-.83-25.4,1.67-31.23,0-41.89,0-41.89l-1-11.23-.58-6.22-.05-.61s-.38,2.49-1,6.35c-1.84,11.75-5.76,36.1-7.31,41.11a53.53,53.53,0,0,1-4.27,10.41s2.16,12.49,0,15.82-.33,7.08-.33,7.08,2.08,10.41-4.17,14.57,0,6.25,0,6.25-4.58,10-6.24,14.15,0,10,0,10l-3.33,33.72s-2.92,14.15-2.5,23.73-3.75,31.64-3.75,31.64-32.06,0-37-3.75S413.64,733,413.64,733s3.75-64.12,2.91-65.78,0-14.16,2.92-16.65,0-7.5,0-7.5-.83-10,0-12.49-.13-10.83-.13-10.83-2.79-20.4-3.2-32.06-2.5-37.88-2.5-37.88,2.18-16.22,2.51-23.94c.12-2.84,1.39-6.39,3-9.73a86.81,86.81,0,0,1,6.2-10.88S524,476.1,528.14,479c1.1.77,2.7,6,4.28,13.57C536.82,513.72,541.12,553.42,534.38,568.12Z",transform:"translate(-41.9 -21.46)",fill:"#444053"}),Object(u.jsx)("circle",{cx:"431.7",cy:"263.46",r:"28.73",fill:"#a1616a"}),Object(u.jsx)("path",{d:"M532.42,492.59c-3.31,1.7-5.53,2.87-5.53,2.87S480.26,517.53,467,516.28c-10.26-1-36.45-.43-47.86-.15a86.81,86.81,0,0,1,6.2-10.88S524,476.1,528.14,479C529.24,479.79,530.84,485,532.42,492.59Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M453.61,330.8S427,335,420.72,339.12,402,351.2,402,368.27s-2.91,34.56-4.58,39.55,26.23,45.38,26.23,45.38l-10,61.21s40-1.25,53.32,0,59.93-20.82,59.93-20.82,27.48-14.57,33.31-15-11.66-32.06-11.66-32.06S521.48,395.33,526.06,387,534,366.6,534,366.6l-5-42.46s-7.49-2.5-13.74,2.08-27.48,2.08-27.48,2.08Z",transform:"translate(-41.9 -21.46)",fill:"#ff6484"}),Object(u.jsx)("path",{d:"M408.44,404.91,398,407.82,395.11,447s3.75,10.41,0,13.74-4.58,74.53-4.58,74.53,12.08,8.74,26.23,2.08c0,0-2.08-7.91,4.17-36.64s6.24-43.3,6.24-43.3,0-35.81,2.92-41.64,0-20.4,0-20.4-5.83-7.91-5.42-10.82S408.44,404.91,408.44,404.91Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M413.43,539.65a26.59,26.59,0,0,1-18.77-.68,54.46,54.46,0,0,1,2.67-6.24l11.32-6.87S411,531.75,413.43,539.65Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M407.81,404.91l-10.41,2.91L394.49,447s3.75,10.41,0,13.74-4.58,74.53-4.58,74.53S402,544,416.14,537.31c0,0-2.08-7.91,4.16-36.64s6.25-43.3,6.25-43.3,0-35.81,2.91-41.64,0-20.4,0-20.4-5.83-7.91-5.41-10.82S407.81,404.91,407.81,404.91Z",transform:"translate(-41.9 -21.46)",fill:"#ff6484"}),Object(u.jsx)("path",{d:"M514.4,411.15s-5.41,46.63-21.24,55.38C493.16,466.53,528.55,456.54,514.4,411.15Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M434.88,415.32s19.56,9.57,15,16.23S434.88,415.32,434.88,415.32Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M434.88,434.47s12.49,12.91,10,17.49S434.88,434.47,434.88,434.47Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M535.63,327.47s4.9,8.32,5.37,13.74S535.63,327.47,535.63,327.47Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M535.63,316.23s2.46-2.09,8.74,0S535.63,316.23,535.63,316.23Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M511.59,559.58a57.9,57.9,0,0,1-30.45-3.9l-5.25,13.44-.58-6.22c.86-5.22,2.53-10.81,5.83-12.22C481.14,550.68,492.7,559.89,511.59,559.58Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M426.18,577.07s25.61,5.31,32.79,4.37Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M428.84,583.78s10.93-.47,16.39,1.72Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M430.09,588.31a98,98,0,0,0,15.14,2Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M429.46,645.61c.47-.31,21.86-5.31,24.52-1.72Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M429.46,652.17s18.58-2.19,19.05,0S429.46,652.17,429.46,652.17Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M429.46,658.1S449.29,654,451.63,655,429.46,658.1,429.46,658.1Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M430.4,798l-22.48,15.46s.13-1.81.35-4.47c5-12.3,11.51-18.79,11.51-18.79,5.07-1.32,8.27-.1,10.26,2.29C430.12,795.81,430.4,798,430.4,798Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M432.59,811.89a55.79,55.79,0,0,0-4.69,23,35.67,35.67,0,0,1-4.76,18.51,18.24,18.24,0,0,1-1.58,2.26s-15.62-.13-21.09-4.66A5.41,5.41,0,0,1,399,849.2c-3.13-6.24,6.09-30.13,6.09-30.13,4.84-18.42,14.67-28.26,14.67-28.26C437.27,786.28,432.59,811.89,432.59,811.89Z",transform:"translate(-41.9 -21.46)",fill:"#444053"}),Object(u.jsx)("path",{d:"M423.14,853.35a18.24,18.24,0,0,1-1.58,2.26s-15.62-.13-21.09-4.66c2.69-8.9,11.27-35.83,15.29-31.25C419.54,824,422.17,844.69,423.14,853.35Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M421,821.37l-1.09,40.34h5.24s.85-35.39,3.19-40.34S421,821.37,421,821.37Z",transform:"translate(-41.9 -21.46)",fill:"#444053"}),Object(u.jsx)("path",{d:"M486.14,824.69s-22.95-21.7-20.61-23.42c.63-.46,1.25-2.31,1.82-4.77,4.41-.77,12,1.07,18.28,18.69C485.78,820.19,486.14,824.69,486.14,824.69Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M489.57,848.89a2.33,2.33,0,0,1-.55.16c-2.7.47-12.65.2-18.22,0a3.94,3.94,0,0,1-3.81-3.93c0-1.5,0-3.33-.12-5.28-.26-6.16-1-13.49-3.21-15.14-3.91-3-7-13.18,0-26.07,0,0,13.42-10.25,23.1,20.56,0,0,.94,8.79,5.15,11.91S491.45,848,489.57,848.89Z",transform:"translate(-41.9 -21.46)",fill:"#444053"}),Object(u.jsx)("path",{d:"M489,849.05c-2.7.47-12.65.2-18.22,0a3.94,3.94,0,0,1-3.81-3.93c0-1.5,0-3.33-.12-5.28,1.69-7.46,4.12-15.14,7.25-16.89C474.12,822.94,483.59,821.87,489,849.05Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("polygon",{points:"423.46 800.58 425.98 834.15 429.18 834.15 429.18 797.72 423.46 800.58",fill:"#444053"}),Object(u.jsx)("path",{d:"M473.18,239.14a57.42,57.42,0,0,0-25.62,8.23c-2,1.21-4,2.68-4.83,4.85-.72,1.88-.42,4-.39,6,.27,17.22-18.93,30.25-18.33,47.46.24,6.83,3.67,13.19,4.3,20,1.05,11.36-5.67,21.81-12.11,31.22a25.86,25.86,0,0,0,18.25-6.05A138.39,138.39,0,0,1,437,420.6l9.21,0a7,7,0,0,1,2.69.33,6.76,6.76,0,0,1,2.13,1.59c8.61,8.57,14.38,21.24,11.09,32.94l19.6-7.35c4.69-1.76,9.45-3.55,13.53-6.45s7.5-7.11,8.36-12.05c.53-3,.36-6.58,2.83-8.32a15.4,15.4,0,0,1,3.86-1.43c5.38-1.9,7.76-8.12,8.86-13.72a79,79,0,0,0,1.25-20.87c-.87-11.7-4.33-23.58-1.48-35,1.61-6.41,5.19-12.38,5.48-19,.47-10.91-8.06-20.31-9.33-31.16-.89-7.56,1.84-15.21.95-22.77a24.46,24.46,0,0,0-12.87-18.57c-2.41-1.24-5-2.07-7.38-3.44-5.43-3.15-8.9-8.82-13.83-12.72s-13.14-5.37-16.85-.3Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M473.18,237.89a57.42,57.42,0,0,0-25.62,8.23c-2,1.21-4,2.68-4.83,4.85-.72,1.88-.42,4-.39,6,.27,17.22-18.93,30.25-18.33,47.47.24,6.82,3.67,13.18,4.3,20,1.05,11.36-5.67,21.81-12.11,31.23a26,26,0,0,0,18.25-6.05A138.34,138.34,0,0,1,437,419.35l9.21,0a7,7,0,0,1,2.69.34,6.58,6.58,0,0,1,2.13,1.58c8.61,8.58,14.38,21.24,11.09,32.94l19.6-7.35c4.69-1.76,9.45-3.55,13.53-6.45s7.5-7.11,8.36-12.05c.53-3,.36-6.58,2.83-8.32a15.4,15.4,0,0,1,3.86-1.43c5.38-1.9,7.76-8.12,8.86-13.72A79,79,0,0,0,520.44,384c-.87-11.7-4.33-23.58-1.48-35,1.61-6.41,5.19-12.38,5.48-19,.47-10.91-8.06-20.31-9.33-31.16-.89-7.56,1.84-15.2.95-22.77a24.48,24.48,0,0,0-12.87-18.57c-2.41-1.24-5-2.07-7.38-3.43-5.43-3.16-8.9-8.83-13.83-12.73s-13.14-5.37-16.85-.3Z",transform:"translate(-41.9 -21.46)",fill:"#925978"}),Object(u.jsxs)("g",{opacity:"0.1",children:[Object(u.jsx)("path",{d:"M442.32,252.81a11.12,11.12,0,0,0-.06,1.16C442.29,253.59,442.31,253.2,442.32,252.81Z",transform:"translate(-41.9 -21.46)"}),Object(u.jsx)("path",{d:"M515,292.84c.36-5.3,1.54-10.62,1.1-15.9C515.77,282.24,514.59,287.56,515,292.84Z",transform:"translate(-41.9 -21.46)"}),Object(u.jsx)("path",{d:"M428.31,319.19c-.58-6.2-3.47-12-4.15-18.19a22.8,22.8,0,0,0-.15,3.42c.24,6.75,3.59,13.06,4.27,19.78A27,27,0,0,0,428.31,319.19Z",transform:"translate(-41.9 -21.46)"}),Object(u.jsx)("path",{d:"M519,343.82a42.88,42.88,0,0,0-1,12.42,37.65,37.65,0,0,1,1-7.21c1.61-6.41,5.19-12.38,5.48-19a20.61,20.61,0,0,0-.16-3.52C523.54,332.46,520.43,338,519,343.82Z",transform:"translate(-41.9 -21.46)"}),Object(u.jsx)("path",{d:"M434.45,344.36a26,26,0,0,1-14.76,6c-1.14,1.78-2.32,3.52-3.49,5.24a26,26,0,0,0,18.25-6.05A138,138,0,0,1,440.27,387,138.31,138.31,0,0,0,434.45,344.36Z",transform:"translate(-41.9 -21.46)"}),Object(u.jsx)("path",{d:"M519.19,399.65c-1.1,5.6-3.48,11.82-8.86,13.71a15,15,0,0,0-3.86,1.44c-2.47,1.74-2.3,5.34-2.83,8.32-.86,4.94-4.27,9.14-8.36,12s-8.84,4.7-13.53,6.46l-18.7,7a25.81,25.81,0,0,1-.9,5.55l19.6-7.35c4.69-1.76,9.45-3.55,13.53-6.45s7.5-7.11,8.36-12.05c.53-3,.36-6.58,2.83-8.32a15.4,15.4,0,0,1,3.86-1.43c5.38-1.9,7.76-8.12,8.86-13.72a78.42,78.42,0,0,0,1.41-17.7A78.3,78.3,0,0,1,519.19,399.65Z",transform:"translate(-41.9 -21.46)"}),Object(u.jsx)("path",{d:"M451.06,416a6.61,6.61,0,0,0-2.13-1.59,7.15,7.15,0,0,0-2.69-.34l-8.17,0c-.32,1.74-.66,3.48-1,5.21l9.21,0a7,7,0,0,1,2.69.34,6.58,6.58,0,0,1,2.13,1.58c6.3,6.28,11.07,14.74,11.89,23.42C464,434.24,458.62,423.56,451.06,416Z",transform:"translate(-41.9 -21.46)"})]}),Object(u.jsx)("path",{d:"M405.37,450.08s7.44-3.12,9.1,0S405.37,450.08,405.37,450.08Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M408,455.43s7.44-3.12,9.11,0S408,455.43,408,455.43Z",transform:"translate(-41.9 -21.46)",opacity:"0.1"})]}),Object(u.jsxs)("g",{id:"5f43f84a-a268-4bb5-a31a-6b0c09aee323","data-name":"leaves",children:[Object(u.jsx)("path",{d:"M869.11,51.68s-38.05-2.29-33.56,24.37c0,0-.89,4.71,3.38,6.85,0,0,.07-2,3.9-1.31a17.51,17.51,0,0,0,4.13.2A8.57,8.57,0,0,0,852,79.7h0s10.69-4.41,14.85-21.89c0,0,3.08-3.82,3-4.8l-6.42,2.75s2.19,4.63.46,8.48c0,0-.2-8.32-1.44-8.12-.25,0-3.33,1.6-3.33,1.6s3.77,8.07.92,13.94c0,0,1.08-9.94-2.1-13.35L853.4,61s4.41,8.33,1.42,15.13c0,0,.77-10.43-2.37-14.49l-4.1,3.19S852.5,73,850,78.64c0,0-.33-12.15-2.51-13.06,0,0-3.58,3.16-4.12,4.46,0,0,2.83,6,1.07,9.1,0,0-1.08-8.08-2-8.12,0,0-3.57,5.36-3.94,9a19.51,19.51,0,0,1,3.07-9.55,10.67,10.67,0,0,0-5.46,2.84s.55-3.79,6.34-4.13c0,0,2.95-4.06,3.74-4.31,0,0-5.76-.48-9.25,1.07,0,0,3.07-3.58,10.31-2l4-3.3s-7.58-1-10.8.11c0,0,3.7-3.16,11.89-.86l4.4-2.63s-6.46-1.4-10.31-.89c0,0,4.06-2.19,11.6.18l3.15-1.41s-4.74-.93-6.12-1.08-1.46-.53-1.46-.53a16.36,16.36,0,0,1,8.89,1S869.22,52.1,869.11,51.68Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899",opacity:"0.1"}),Object(u.jsx)("path",{d:"M814.88,30.06s-32,20.71-12.59,39.52c0,0,2.07,4.32,6.78,3.52,0,0-1.12-1.64,2.37-3.37a17.36,17.36,0,0,0,3.45-2.29,8.61,8.61,0,0,0,2.83-4.67h0s6-9.9-1-26.44c0,0,.22-4.9-.46-5.62l-3.54,6s4.51,2.43,5.4,6.55c0,0-5.09-6.57-6-5.68-.18.18-1.74,3.27-1.74,3.27s7.83,4.26,9,10.67c0,0-5-8.65-9.61-9.5l-2.08,4.8s8.5,4.1,10.12,11.35c0,0-5.57-8.86-10.5-10.27l-1.4,5s8.2,4.16,9.51,10.2c0,0-7.46-9.58-9.76-9,0,0-1,4.66-.68,6,0,0,5.82,3.12,6.26,6.7,0,0-5.66-5.87-6.39-5.38,0,0,.3,6.43,2.17,9.61a19.53,19.53,0,0,1-3.18-9.51,10.7,10.7,0,0,0-2.72,5.52s-1.8-3.38,2.67-7.08c0,0,0-5,.45-5.69,0,0-4.92,3-6.82,6.34,0,0,.36-4.7,7.15-7.68l1.3-5.05s-6.72,3.66-8.63,6.49c0,0,1.11-4.74,9.06-7.74l2-4.73s-6,2.71-8.84,5.4c0,0,2-4.18,9.46-6.73l1.7-3s-4.37,2.06-5.57,2.76-1.49.44-1.49.44a16.39,16.39,0,0,1,7.75-4.47S815.22,30.34,814.88,30.06Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899",opacity:"0.1"}),Object(u.jsx)("path",{d:"M766.18,54.19s-19.13,33,6.7,40.93c0,0,3.81,2.91,7.64,0,0,0-1.73-.94.59-4.07a17.51,17.51,0,0,0,2-3.6,8.64,8.64,0,0,0,.41-5.45h0s.85-11.54-12.9-23.11c0,0-2-4.46-3-4.79l-.43,7s5.12.12,7.79,3.39c0,0-7.52-3.55-7.9-2.36-.08.24-.07,3.7-.07,3.7S776,66.1,780,71.28c0,0-8.4-5.43-12.87-4.11l.32,5.22s9.43-.2,14.16,5.53c0,0-9-5.37-14-4.39l1,5.09s9.2,0,13.1,4.78c0,0-11-5.16-12.79-3.63,0,0,1.21,4.62,2.13,5.69,0,0,6.6.14,8.62,3.13,0,0-7.71-2.67-8.14-1.89,0,0,3.19,5.59,6.3,7.57a19.53,19.53,0,0,1-7.15-7,10.71,10.71,0,0,0,.08,6.15s-3.14-2.19-.84-7.52c0,0-2.3-4.46-2.17-5.27,0,0-3,4.93-3.2,8.74,0,0-1.82-4.35,2.88-10.08l-1.13-5.1s-4.33,6.31-4.75,9.7c0,0-1.16-4.73,4.57-11l-.38-5.11s-4.14,5.15-5.42,8.82c0,0-.14-4.62,5.37-10.29l.15-3.45s-3,3.81-3.71,5S761,68.88,761,68.88a16.46,16.46,0,0,1,4.88-7.51S766.6,54.28,766.18,54.19Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899",opacity:"0.1"})]}),Object(u.jsx)("path",{d:"M930.43,430.37a14.31,14.31,0,1,0,14.31,14.31A14.35,14.35,0,0,0,930.43,430.37ZM888.59,318.08v14.31H902.9l25.76,52.18L917.89,402.1a13.76,13.76,0,0,0-1.79,6.8c0,9.58,6.55,14.31,15.43,14.31h83.67V409.45H933.28a1.69,1.69,0,0,1-1.79-1.79,9,9,0,0,1,.76-1.78l7.15-11.29h53.31a14,14,0,0,0,12.52-7.51L1031,342.77a8.31,8.31,0,0,0,.72-3.58,6.88,6.88,0,0,0-7.16-6.8H918.65l-6.8-14.31Zm112.29,112.29a14.31,14.31,0,1,0,14.32,14.31A14.35,14.35,0,0,0,1000.88,430.37Z",transform:"translate(-41.9 -21.46)",fill:"#ec4899"}),Object(u.jsx)("polygon",{points:"940.67 336.21 928.67 336.21 928.67 324.21 919.67 324.21 919.67 336.21 907.67 336.21 907.67 345.21 919.67 345.21 919.67 357.21 928.67 357.21 928.67 345.21 940.67 345.21 940.67 336.21",fill:"#fff"})]}),Object(u.jsx)("p",{className:"mt-4 max-w-2xl text-lg leading-7 text-gray-500 mx-auto",children:e.children})]})},ft=function(){return Object(u.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(u.jsxs)("div",{className:"flex flex-row items-center space-x-4 justify-center text-pink-800 mt-6 font-semibold sm:text-lg",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-10 w-10 text-pink-600",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Chargement..."]})})},gt=function(e){return Object(u.jsxs)("div",{className:"flex flex-col items-center space-y-4 text-center text-gray-500 justify-center",children:[Object(u.jsxs)("svg",{className:"w-3/4 h-72 mb-2",viewBox:"0 0 1080.0487 748.00219",children:[Object(u.jsx)("title",{children:e.children}),Object(u.jsx)("path",{d:"M832.20759,587.46822c0,67.693-40.24241,91.32887-89.88394,91.32887s-89.88394-23.63587-89.88394-91.32887,89.88394-153.80916,89.88394-153.80916S832.20759,519.77523,832.20759,587.46822Z",transform:"translate(-59.97565 -75.99891)",fill:"#db2777"}),Object(u.jsx)("polygon",{points:"679.994 535.79 718.305 465.702 680.138 526.903 680.552 501.43 706.956 450.722 680.662 494.688 681.406 448.873 709.68 408.504 681.523 441.669 681.988 357.66 679.191 464.109 650.56 420.284 678.845 473.092 676.166 524.259 676.087 522.901 642.948 476.597 675.986 527.699 675.651 534.098 675.591 534.195 675.619 534.72 668.823 603 677.902 603 678.992 597.484 711.949 546.507 679.074 592.443 679.994 535.79",fill:"#3f3d56"}),Object(u.jsx)("path",{d:"M1140.02435,369.81269c0,129.31047-76.873,174.46085-171.7007,174.46085s-171.7007-45.15038-171.7007-174.46085S968.32365,75.99891,968.32365,75.99891,1140.02435,240.50222,1140.02435,369.81269Z",transform:"translate(-59.97565 -75.99891)",fill:"#f2f2f2"}),Object(u.jsx)("polygon",{points:"902.093 448.494 903.851 340.273 977.035 206.388 904.127 323.296 904.918 274.635 955.355 177.771 905.127 261.758 905.127 261.759 906.549 174.24 960.558 97.124 906.772 160.478 907.661 0 902.078 212.444 902.537 203.68 847.625 119.628 901.656 220.503 896.54 318.246 896.387 315.652 833.084 227.2 896.196 324.817 895.556 337.041 895.441 337.225 895.494 338.228 882.513 586.21 899.856 586.21 901.937 458.123 964.894 360.745 902.093 448.494",fill:"#3f3d56"}),Object(u.jsx)("path",{d:"M1132.97565,640.5574c0,38.59549-250.36912,183.44369-543.05156,183.44369S59.97565,749.0362,59.97565,710.44071s231.44239,7.27952,524.12483,7.27952S1132.97565,601.96192,1132.97565,640.5574Z",transform:"translate(-59.97565 -75.99891)",fill:"#3f3d56"}),Object(u.jsx)("path",{d:"M1132.97565,640.5574c0,38.59549-250.36912,183.44369-543.05156,183.44369S59.97565,749.0362,59.97565,710.44071s231.44239,7.27952,524.12483,7.27952S1132.97565,601.96192,1132.97565,640.5574Z",transform:"translate(-59.97565 -75.99891)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M1132.97565,640.5574c0,38.59549-250.36912,139.76663-543.05156,139.76663S59.97565,749.0362,59.97565,710.44071,291.418,674.04316,584.10048,674.04316,1132.97565,601.96192,1132.97565,640.5574Z",transform:"translate(-59.97565 -75.99891)",fill:"#3f3d56"}),Object(u.jsx)("ellipse",{cx:"535.87833",cy:"641.77394",rx:"225.04403",ry:"17.40672",opacity:"0.1"}),Object(u.jsx)("path",{d:"M417.57367,368.96457s65.88345,1.22006,53.68281,12.81067-57.953,0-57.953,0Z",transform:"translate(-59.97565 -75.99891)",fill:"#a0616a"}),Object(u.jsx)("path",{d:"M280.30415,228.18183s26.60021-4.75031,35.84921,16.72359,28.244,82.71589,28.244,82.71589,50.83308,33.64785,60.079,32.54232,25.05178,1.15023,22.15247,11.2372-1.6122,21.52484-8.28694,22.92668-17.29058-11.97954-25.415-5.53421-80.53015-17.09648-85.17856-21.97431-43.27878-110.50134-43.27878-110.50134S266.01479,227.83769,280.30415,228.18183Z",transform:"translate(-59.97565 -75.99891)",fill:"#db2777"}),Object(u.jsx)("polygon",{points:"277.379 605.607 280.429 631.228 254.808 637.939 240.167 631.228 240.167 608.657 277.379 605.607",fill:"#a0616a"}),Object(u.jsx)("polygon",{points:"208.445 622.078 211.495 647.699 185.874 654.41 171.233 647.699 171.233 625.128 208.445 622.078",fill:"#a0616a"}),Object(u.jsx)("path",{d:"M339.7946,401.60128l11.59061,42.0922L368.4661,529.098s4.88026,20.74108-4.88025,45.75239S336.13441,681.60593,339.7946,686.48618s-41.48217,8.54045-40.87214,3.66019,6.71036-71.98376,6.71036-71.98376,8.54044-59.1731,12.81067-66.49348-19.521-25.62134-19.521-25.62134-6.10031,70.15367-15.25079,76.254S275.74125,702.957,271.471,704.17711s-35.38185,6.10032-39.042,0,0-107.97565,0-107.97565,20.74108-77.47406,16.47086-88.45463-1.8301-57.953-1.8301-57.953-15.86083-35.99189-7.32038-54.90287Z",transform:"translate(-59.97565 -75.99891)",fill:"#2f2e41"}),Object(u.jsx)("path",{d:"M337.96451,167.349s-25.62134,31.72166-24.40128,45.75239-40.26211-25.62134-40.26211-25.62134,29.89157-40.2621,29.89157-48.80255S337.96451,167.349,337.96451,167.349Z",transform:"translate(-59.97565 -75.99891)",fill:"#a0616a"}),Object(u.jsx)("circle",{cx:"277.68384",cy:"62.98363",r:"40.26211",fill:"#a0616a"}),Object(u.jsx)("path",{d:"M236.19284,378.78c-1.824,6.79577-4.08719,14.50047-3.76385,20.99122.20746,4.20313,11.36489,6.96045,26.79255,8.76616,14.30529,1.67758,32.283,2.53161,48.62569,2.97085,17.16021.46363,32.50245.46363,39.87779.46363,21.96115,0,4.27022-14.03074-4.27023-20.74109s-6.71035-101.87533-6.10031-114.076-5.49029-47.58249-5.49029-54.29285-14.35407-24.22438-14.35407-24.22438-3.33686,9.58362-16.75756-3.227-31.11163-16.47086-31.11163-16.47086c-13.4207,4.88025-35.99188,58.56306-37.21194,67.71354-.49417,3.71507-.08542,22.742.74422,44.46523,1.20174,31.75216,3.30029,69.2874,4.74606,73.27093C239.06,367.531,237.7973,372.80166,236.19284,378.78Z",transform:"translate(-59.97565 -75.99891)",fill:"#db2777"}),Object(u.jsx)("polygon",{points:"241.387 338.413 245.657 353.664 229.186 370.745 223.696 346.953 241.387 338.413",fill:"#a0616a"}),Object(u.jsx)("path",{d:"M306.85288,700.51692s12.81067,14.64076,22.57118,4.88025,9.15048-15.86083,10.98058-15.86083,29.28153,24.40128,29.28153,24.40128,46.97245,10.98057,21.35111,18.911-98.21513,2.44013-98.21513,0-1.8301-34.77182,4.88025-34.77182Z",transform:"translate(-59.97565 -75.99891)",fill:"#2f2e41"}),Object(u.jsx)("path",{d:"M237.91927,716.98778s12.81067,14.64076,22.57118,4.88025,9.15048-15.86083,10.98058-15.86083,29.28153,24.40128,29.28153,24.40128,46.97246,10.98057,21.35112,18.911-98.21514,2.44013-98.21514,0-1.8301-34.77182,4.88025-34.77182Z",transform:"translate(-59.97565 -75.99891)",fill:"#2f2e41"}),Object(u.jsx)("path",{d:"M292.45633,171.12178c-1.30065.84028-2.99385,1.69175-4.29617.85407a194.661,194.661,0,0,1-10.803-37.40333c-.82225-4.49515-1.393-9.49233,1.10424-13.3194.9849-1.50939,2.40274-2.74371,3.12416-4.39532,1.09254-2.50124.37345-5.39643.73641-8.10163.76042-5.66737,6.11775-9.62022,11.505-11.5373s11.23835-2.51176,16.37345-5.02733c4.87591-2.38861,8.78111-6.35,13.3025-9.35611s10.31287-5.0615,15.34812-3.03018c4.45436,1.797,7.229,6.33734,11.43921,8.64913,2.8571,1.5688,6.17272,2.00534,9.36187,2.67875a59.9218,59.9218,0,0,1,24.33972,11.30812,17.67252,17.67252,0,0,1,4.42964,4.56639c5.40289,8.8953-4.27062,20.98885-.00283,30.48113l-9.22662-7.28052a32.13074,32.13074,0,0,0-8.24035-5.237c-3.05623-1.15765-6.67559-1.29745-9.45179.42692-3.89609,2.42-4.95269,7.47582-6.3137,11.8557s-4.3705,9.23676-8.95561,9.12455c-6.23545-.15259-8.41611-8.85468-14.012-11.60979-3.6479-1.796-8.23962-.61324-11.34953,2.00618-3.10968,2.61923-4.97572,6.41973-6.34429,10.24826-.85526,2.39254-1.65774,5.08957-3.1768,7.16346-1.6754,2.28735-3.81829,2.47136-5.60773,4.17946C301.08225,162.81226,298.21838,167.39921,292.45633,171.12178Z",transform:"translate(-59.97565 -75.99891)",fill:"#2f2e41"}),Object(u.jsx)("path",{d:"M236.19284,378.78c7.58272,10.99889,16.12928,22.34547,23.0287,29.75738,14.30529,1.67758,32.283,2.53161,48.62569,2.97085a38.52679,38.52679,0,0,0-10.75486-9.90691C289.162,396.721,270.251,338.768,270.251,338.768s23.18122-59.78313,29.28154-82.35431-17.69093-35.38185-17.69093-35.38185C270.861,211.88135,251.95,233.23247,251.95,233.23247s-9.65075,29.1107-18.7768,57.88593c1.20174,31.75216,3.30029,69.2874,4.74606,73.27093C239.06,367.531,237.7973,372.80166,236.19284,378.78Z",transform:"translate(-59.97565 -75.99891)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M280.01148,216.15157s23.79124,12.81067,17.69092,35.38185-29.28153,82.35431-29.28153,82.35431,18.911,57.953,26.8414,62.83329,18.911,16.47086,10.37055,22.57118-14.64077,15.86083-20.74109,12.81067-6.10032-20.13105-16.47086-20.13105-52.46275-63.44332-53.07278-70.15367,34.77182-113.46594,34.77182-113.46594S269.0309,207.00109,280.01148,216.15157Z",transform:"translate(-59.97565 -75.99891)",fill:"#db2777"}),Object(u.jsx)("path",{d:"M774.7215,382.89095l-6.8628-6.86279a21.34485,21.34485,0,0,0-30.18617,0L604.55734,509.14335,471.44215,376.02816a21.34485,21.34485,0,0,0-30.18617,0l-6.86279,6.86279a21.34484,21.34484,0,0,0,0,30.18618L567.50837,546.19232,434.39319,679.3075a21.34484,21.34484,0,0,0,0,30.18618l6.86279,6.86279a21.34485,21.34485,0,0,0,30.18617,0L604.55734,583.24128,737.67253,716.35647a21.34485,21.34485,0,0,0,30.18617,0l6.8628-6.86279a21.34486,21.34486,0,0,0,0-30.18618L641.60631,546.19232,774.7215,413.07713A21.34486,21.34486,0,0,0,774.7215,382.89095Z",transform:"translate(-59.97565 -75.99891)",fill:"#ff6584"}),Object(u.jsx)("path",{d:"M429.6427,686.54463,558.80505,557.38235l-1.24334-1.24334L434.39317,679.30748A21.2598,21.2598,0,0,0,429.6427,686.54463Z",transform:"translate(-59.97565 -75.99891)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M432.5526,387.21818a21.34488,21.34488,0,0,1,30.18621,0L595.854,520.33335,728.96915,387.21818a21.34488,21.34488,0,0,1,30.18621,0l6.86279,6.86279a21.34354,21.34354,0,0,1,4.75047,22.949l3.95289-3.95289a21.34479,21.34479,0,0,0,0-30.18614l-6.86279-6.86279a21.3449,21.3449,0,0,0-30.18621,0L604.55734,509.14331,471.44217,376.02814a21.3449,21.3449,0,0,0-30.18621,0l-6.86279,6.86279a21.2598,21.2598,0,0,0-4.75047,7.23715Z",transform:"translate(-59.97565 -75.99891)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M642.84968,547.43565l-9.94669,9.9467L766.01815,690.49752a21.34356,21.34356,0,0,1,4.75047,22.94907l3.95289-3.953a21.34479,21.34479,0,0,0,0-30.18614Z",transform:"translate(-59.97565 -75.99891)",opacity:"0.1"}),Object(u.jsx)("path",{d:"M214.97565,636.19129c0,56.22159-33.42284,75.85206-74.652,75.85206s-74.652-19.63047-74.652-75.85206,74.652-127.7443,74.652-127.7443S214.97565,579.96971,214.97565,636.19129Z",transform:"translate(-59.97565 -75.99891)",fill:"#db2777"}),Object(u.jsx)("polygon",{points:"78.393 580.392 110.212 522.181 78.513 573.011 78.857 551.854 100.786 509.739 78.948 546.255 79.566 508.204 103.048 474.675 79.663 502.221 80.049 432.448 77.726 520.858 53.947 484.46 77.438 528.318 75.214 570.815 75.148 569.687 47.625 531.23 75.064 573.672 74.786 578.987 74.736 579.067 74.759 579.503 69.115 636.212 76.656 636.212 77.561 631.631 104.933 589.293 77.629 627.444 78.393 580.392",fill:"#3f3d56"})]}),Object(u.jsx)("p",{className:"mt-4 max-w-2xl text-lg leading-7 text-gray-500 mx-auto",children:e.children})]})},vt=s(271),Ot=Object(l.b)((function(e){return{topProducts:e.productRatingTop.topProducts,isLoading:e.productRatingTop.isLoading}}),(function(e){return{onGetTopRatedProducts:function(){return e(Ge())}}}))((function(e){return Object(a.useEffect)((function(){e.onGetTopRatedProducts()}),[e.onGetTopRatedProducts]),Object(u.jsx)("div",{className:"max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8 relative pt-8 pb-10",children:Object(u.jsx)("div",{className:"mx-auto w-full",children:Object(u.jsx)(vt.a,Object(Xe.a)(Object(Xe.a)({},{dots:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:4,isRTL:!1,showArrows:!1}),{},{children:e.topProducts.map((function(e,t){return Object(u.jsx)("div",{className:"px-3 md:px-0 shadow-lg rounded-lg overflow-hidden relative items-center justify-center py-20 sm:py-28 w-full",style:{height:"420px"},children:Object(u.jsxs)(i.b,{to:"/product/".concat(e._id),children:[Object(u.jsx)("img",{src:(null===e||void 0===e?void 0:e.image.length)>0?null===e||void 0===e?void 0:e.image[0]:"",alt:e.name,className:"absolute inset-0 object-center object-cover w-full h-full"}),Object(u.jsxs)("div",{className:"mx-auto max-w-sm sm:max-w-xl text-center relative z-10",children:[Object(u.jsx)("h2",{className:"group-hover:underline line-clamp-3 text-4xl tracking-tight leading-10 font-extrabold text-white sm:text-5xl sm:leading-none md:text-6xl",children:null===e||void 0===e?void 0:e.name}),Object(u.jsx)("p",{className:"mt-3 text-gray-300 line-clamp-2 tracking-wide leading-6",children:null===e||void 0===e?void 0:e.description})]}),Object(u.jsx)("div",{className:"absolute inset-0 bg-black opacity-50"})]})},t)}))}))})})})),yt=s(265),Nt=function(e){return Object(u.jsxs)(yt.a,{children:[Object(u.jsx)("meta",{charSet:"utf-8"}),Object(u.jsx)("title",{children:e.title}),Object(u.jsx)("meta",{name:"description",content:e.description}),Object(u.jsx)("meta",{name:"keywords",content:e.keywords})]})};Nt.defaultProps={title:"Bienvenue sur E-Shop - Home",description:"Nous vendons les meilleurs deals de toutes l'Afrique \xe0 des prix battant toutes concurrences.",keywords:"achats, electronics, moins ch\xe8re, e-commerce"};var wt=Nt,St=Object(l.b)((function(e){return{products:e.product.products,isLoading:e.product.isLoading,error:e.product.error}}),(function(e){return{onGetProductList:function(){return e(Fe())}}}))((function(e){var t,s;return Object(a.useEffect)((function(){e.onGetProductList()}),[]),Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn",children:[Object(u.jsx)(wt,{}),Object(u.jsx)("div",{className:"w-full mb-10",children:Object(u.jsx)(Ot,{})}),Object(u.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsxs)("div",{className:"flex items-baseline justify-between border-b border-gray-200 mb-10",children:[Object(u.jsxs)("h2",{className:"text-base inline-flex items-center space-x-3 font-bold leading-8 tracking-tight text-gray-600 sm:text-xl sm:leading-10 py-4 border-b-2 border-pink-500 -mb-2px",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})}),Object(u.jsx)("span",{children:"Derniers produits"})]}),Object(u.jsx)(i.b,{to:"/#",className:"font-semibold text-pink-500 hover:underline no-underline",children:"Voir tous"})]}),Object(u.jsx)("div",{className:"mt-3",children:e.isLoading?Object(u.jsx)(ft,{}):e.error?Object(u.jsx)(gt,{children:"Une erreur est survenue veuillez recharger la page."}):e.products&&(null===(t=e.products)||void 0===t?void 0:t.length)>0?Object(u.jsx)("div",{className:"flex flex-wrap -mx-3",children:null===(s=e.products)||void 0===s?void 0:s.map((function(e){return Object(u.jsx)(x,{productItem:e},null===e||void 0===e?void 0:e._id)}))}):Object(u.jsx)(ht,{children:"Aucun produit n'a encore \xe9t\xe9 ajout\xe9."})})]})]})})),kt=s(13),_t=s(19),Rt=Object(l.b)((function(e){return{isSearch:e.product.isSearch,isLoading:e.product.isLoading,productsSearch:e.product.productsSearch}}),(function(e){return{onResetProductSearch:function(){return e({type:O})},onSearchProduct:function(t){return e({type:y,payload:{productSearch:t}})}}}))((function(e){var t,s,r=Object(a.useState)(""),n=Object(kt.a)(r,2),c=n[0],l=n[1];Object(a.useEffect)((function(){""!==c&&e.onSearchProduct(c)}),[c,e.onSearchProduct]);var o=function(){l(""),e.onResetProductSearch()};return Object(u.jsx)(_t.e,{show:e.isSearch,as:a.Fragment,children:Object(u.jsx)(_t.a,{as:"div",id:"modal",className:"fixed inset-0 z-10 overflow-y-auto",static:!0,open:e.isSearch,onClose:o,children:Object(u.jsxs)("div",{className:"min-h-screen px-4 text-center",children:[Object(u.jsx)(_t.e.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Object(u.jsx)(_t.a.Overlay,{className:"fixed inset-0 bg-black opacity-70"})}),Object(u.jsx)("span",{className:"inline-block h-screen align-middle","aria-hidden":"true",children:"\u200b"}),Object(u.jsx)(_t.e.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:Object(u.jsxs)("div",{className:"inline-block w-full max-w-xl p-6 my-8 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl",children:[Object(u.jsx)(_t.a.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:"Rechercher un produit"}),Object(u.jsx)("div",{className:"w-full mt-2",children:Object(u.jsx)("div",{className:"w-full flex justify-center",children:Object(u.jsx)("form",{className:"w-full",children:Object(u.jsxs)("div",{className:"relative w-full max-w-xl mr-6 focus-within:text-brand-500",children:[Object(u.jsx)("div",{className:"absolute inset-y-0 flex items-center pl-2",children:Object(u.jsx)("svg",{className:"w-5 h-5 text-pink-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:Object(u.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),Object(u.jsx)("input",{className:"w-full pl-9 py-3 pr-2 text-sm text-gray-700 placeholder-gray-600 bg-gray-100 border-0 rounded-md focus:ring-2 focus:ring-pink-500 form-input",type:"text",name:"searchWord",autoFocus:!0,onChange:function(e){return l(e.target.value)},value:c,placeholder:"Rechercher un produit...","aria-label":"Search",autoComplete:"false"})]})})})}),Object(u.jsx)("div",{className:"mt-4",children:(null===(t=e.productsSearch)||void 0===t?void 0:t.length)>0&&(null===(s=e.productsSearch)||void 0===s?void 0:s.map((function(e){return Object(u.jsx)("div",{className:"group border-t border-gray-300 hover:bg-gray-100 transition duration-150 ease-in-out cursor-pointer",children:Object(u.jsx)(i.b,{to:"/product/".concat(null===e||void 0===e?void 0:e._id),children:Object(u.jsxs)("div",{onClick:o,className:"flex flex-row items-center space-x-3 py-6",children:[Object(u.jsx)("div",{className:"h-14 w-14 overflow-hidden",children:Object(u.jsx)("img",{src:null===e||void 0===e?void 0:e.image[0],alt:null===e||void 0===e?void 0:e.name,className:"rounded h-full w-full"})}),Object(u.jsxs)("div",{className:"flex-1",children:[Object(u.jsx)("p",{className:"text-gray-700 font-bold group-hover:underline",children:null===e||void 0===e?void 0:e.name}),Object(u.jsx)("p",{className:"text-gray-500 text-sm line-clamp-3",children:null===e||void 0===e?void 0:e.description})]})]})})},e._id)})))})]})})]})})})})),Ct=Object(l.b)((function(e){return{isSearch:e.product.isSearch,products:e.product.products}}),(function(e){return{onSearchProductStart:function(){return e({type:v})},onGetProductsList:function(){return e(Fe())}}}))((function(e){return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{onClick:function(){e.onGetProductsList(),e.products.length>0&&e.onSearchProductStart()},className:"cursor-pointer hover:bg-pink-100 p-2 rounded-full",children:Object(u.jsx)("svg",{className:"w-7 h-7 text-pink-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:Object(u.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),Object(u.jsx)(Rt,{})]})})),Et=s(49),Lt=Object(l.b)((function(e){return{cartItems:e.cart.cartItems,userInfo:e.user.userInfo,isAuthenticated:!!e.user.token}}),(function(e){return{onloggedOutUser:function(){return e(tt())}}}))((function(e){return Object(u.jsx)("div",{className:"-mr-2 flex items-center md:hidden",children:Object(u.jsx)(_t.d,{className:"",children:function(t){var s,r,n,c,l,o,d=t.open;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(_t.d.Button,{className:"\n                ".concat(d?"":"text-opacity-90","\n                 group p-2 rounded-md text-gray-400 hover:text-gray-500 focus:outline-none hover:bg-gray-100 focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"),children:Object(u.jsx)(Et.d,{className:"w-6 h-6"})}),Object(u.jsx)(_t.e,{show:d,as:a.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:Object(u.jsx)(_t.d.Panel,{static:!0,className:"absolute top-0 inset-x-0 p-2 transition transform origin-top-right md:hidden",children:Object(u.jsxs)("div",{className:"relative overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 bg-white",children:[Object(u.jsx)(_t.d.Button,{className:"\n                ".concat(d?"":"text-opacity-90","\n                 group absolute p-2 right-2 top-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"),children:Object(u.jsx)(Et.h,{className:"h-6 w-6"})}),Object(u.jsx)("div",{className:"grid gap-8 p-7 sm:grid-cols-2 mt-8",children:e.isAuthenticated&&(null===(s=e.userInfo)||void 0===s?void 0:s.isAdmin)&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsxs)(i.b,{to:"/",className:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg hover:bg-gray-50 focus:outline-none focus-visible:ring focus-visible:ring-orange-500 focus-visible:ring-opacity-50",children:[Object(u.jsx)("div",{className:"flex items-center justify-center p-2 bg-pink-50 rounded-md",children:Object(u.jsx)(Et.b,{className:"w-6 h-6 text-pink-500"})}),Object(u.jsxs)("div",{className:"ml-4",children:[Object(u.jsx)("p",{className:"text-sm text-gray-900",children:"Accueil"}),Object(u.jsx)("p",{className:"text-sm text-gray-500",children:"Consultez nos derniers produits via notre home page."})]})]}),Object(u.jsxs)(i.b,{to:"/admin/users",className:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg hover:bg-gray-50 focus:outline-none focus-visible:ring focus-visible:ring-orange-500 focus-visible:ring-opacity-50",children:[Object(u.jsx)("div",{className:"flex items-center justify-center p-2 bg-pink-50 rounded-md",children:Object(u.jsx)(Et.g,{className:"w-6 h-6 text-pink-500"})}),Object(u.jsxs)("div",{className:"ml-4",children:[Object(u.jsx)("p",{className:"text-sm text-gray-900",children:"Gestion des utilisateurs"}),Object(u.jsx)("p",{className:"text-sm text-gray-500",children:"G\xe9rer vos utilisateurs selon la vision de la plateforme."})]})]}),Object(u.jsxs)(i.b,{to:"/admin/products",className:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg hover:bg-gray-50 focus:outline-none focus-visible:ring focus-visible:ring-orange-500 focus-visible:ring-opacity-50",children:[Object(u.jsx)("div",{className:"flex items-center justify-center p-2 bg-pink-50 rounded-md",children:Object(u.jsx)(Et.e,{className:"w-6 h-6 text-pink-500"})}),Object(u.jsxs)("div",{className:"ml-4",children:[Object(u.jsx)("p",{className:"text-sm text-gray-900",children:"Gestion des Produits"}),Object(u.jsx)("p",{className:"text-sm text-gray-500",children:"Organisez les produits disponibles sur la plateforme en fonction de vos requirements."})]})]}),Object(u.jsxs)(i.b,{to:"/admin/orders",className:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg hover:bg-gray-50 focus:outline-none focus-visible:ring focus-visible:ring-orange-500 focus-visible:ring-opacity-50",children:[Object(u.jsx)("div",{className:"flex items-center justify-center p-2 bg-pink-50 rounded-md",children:Object(u.jsx)(Et.f,{className:"w-6 h-6 text-pink-500"})}),Object(u.jsxs)("div",{className:"ml-4",children:[Object(u.jsx)("p",{className:"text-sm text-gray-900",children:"Gestion des Commandes"}),Object(u.jsx)("p",{className:"text-sm text-gray-500",children:"G\xe9rez les commandes utilisateurs pass\xe9es sur la plateforme."})]})]})]})}),Object(u.jsxs)("div",{className:"p-4 bg-gray-50",children:[!(null===e||void 0===e?void 0:e.isAuthenticated)&&Object(u.jsx)(i.b,{to:"/login",className:"btn p-2 w-full flex justify-center items-center",children:"Se connecter"}),e.isAuthenticated&&Object(u.jsxs)("div",{children:[Object(u.jsxs)("div",{className:"px-4 py-3 flex items-start space-x-3",children:[Object(u.jsx)("div",{className:"pt-2",children:Object(u.jsx)("img",{src:null===e||void 0===e||null===(r=e.userInfo)||void 0===r?void 0:r.image,alt:null===e||void 0===e||null===(n=e.userInfo)||void 0===n?void 0:n.name,className:"rounded-full h-10 w-10 border-2 border-green-600"})}),Object(u.jsxs)("div",{children:[Object(u.jsx)("p",{className:"text-gray-900 text-sm leading-7 font-semibold",children:null===e||void 0===e||null===(c=e.userInfo)||void 0===c?void 0:c.name}),Object(u.jsx)("p",{className:"text-xs font-medium leading-5 text-gray-400 truncate",children:null===e||void 0===e||null===(l=e.userInfo)||void 0===l?void 0:l.email})]})]}),Object(u.jsxs)(i.b,{to:"/profile",className:"mb-3 mt-1 flex items-center px-4 py-3 transition duration-150 ease-in-out rounded-lg hover:bg-gray-100 focus:outline-none focus-visible:ring focus-visible:ring-orange-500 focus-visible:ring-opacity-50",children:[Object(u.jsx)("div",{className:"flex items-center justify-center p-2 bg-gray-100 rounded-md",children:Object(u.jsx)(Et.a,{className:"w-6 h-6 text-gray-500"})}),Object(u.jsxs)("div",{className:"ml-4",children:[Object(u.jsx)("p",{className:"text-sm text-gray-900",children:"Compte Utilisateur"}),Object(u.jsx)("p",{className:"text-sm text-gray-500 max-w-md ",children:"Modifiez vos infos infos personnelles, et consultez l'historique de vos commandes."})]})]})]}),Object(u.jsxs)(i.b,{to:"/cart",className:"btn flex flex-row hover:bg-pink-200 bg-pink-100 text-pink-500 relative my-2 justify-center items-center",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})}),Object(u.jsx)("span",{children:"Pannier"}),(null===e||void 0===e?void 0:e.cartItems)&&(null===e||void 0===e||null===(o=e.cartItems)||void 0===o?void 0:o.length)>0?Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"absolute top-0 right-0 -mr-1 -mt-1 w-3 h-3 rounded-full bg-pink-500 animate-ping"}),Object(u.jsx)("div",{className:"absolute top-0 right-0 -mr-1 -mt-1 w-3 h-3 rounded-full bg-pink-500"})]}):null]}),e.isAuthenticated&&Object(u.jsx)("span",{onClick:e.onloggedOutUser,className:"btn p-2 w-full flex justify-center items-center cursor-pointer bg-red-500 hover:bg-red-600",children:"Se d\xe9connecter"})]})]})})})]})}})})})),At=Object(l.b)((function(e){return{cartItems:e.cart.cartItems,userInfo:e.user.userInfo,isAuthenticated:!!e.user.token}}),(function(e){return{onloggedOutUser:function(){return e(tt())}}}))((function(e){var t,s=Object(a.useState)(!1),r=Object(kt.a)(s,2);r[0],r[1];return Object(u.jsx)("header",{children:Object(u.jsx)("div",{className:"relative py-3 bg-white shadow-md z-10",children:Object(u.jsxs)("nav",{className:"relative max-w-screen-xl mx-auto flex items-center px-4 sm:px-6",children:[Object(u.jsx)("div",{className:"flex items-center justify-between flex-1",children:Object(u.jsx)("div",{className:"flex items-center justify-between w-full ",children:Object(u.jsxs)(i.b,{to:"/",title:"Page d'accueil",className:"text-xl",children:[Object(u.jsx)("span",{className:"text-pink-500 font-bold",children:"E-"}),Object(u.jsx)("span",{className:"text-gray-900 leading-snug ml-1",children:"Shop"}),Object(u.jsx)("span",{className:"text-pink-500 font-bold",children:"."})]})})}),Object(u.jsxs)("div",{className:"flex items-center space-x-4",children:[Object(u.jsx)(Ct,{}),Object(u.jsx)(Lt,{}),Object(u.jsxs)("div",{className:"hidden space-x-6 md:flex items-start",children:[Object(u.jsx)(i.c,{to:"/",activeClassName:"text-pink-500",className:"font-medium text-gray-500 hover:text-gray-800 transition duration-150 ease-in-out",children:"Home"}),Object(u.jsx)("a",{href:"https://twitter.com/CalebElat",className:"font-medium text-gray-500 hover:text-gray-800 transition duration-150 ease-in-out",children:"Contact"})]}),Object(u.jsxs)(i.b,{to:"/cart",className:"btn hidden md:flex hover:bg-pink-100 bg-pink-50 text-pink-500 relative",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})}),Object(u.jsx)("span",{children:"Pannier"}),(null===e||void 0===e?void 0:e.cartItems)&&(null===e||void 0===e||null===(t=e.cartItems)||void 0===t?void 0:t.length)>0?Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"absolute top-0 right-0 -mr-1 -mt-1 w-3 h-3 rounded-full bg-pink-500 animate-ping"}),Object(u.jsx)("div",{className:"absolute top-0 right-0 -mr-1 -mt-1 w-3 h-3 rounded-full bg-pink-500"})]}):null]}),(null===e||void 0===e?void 0:e.isAuthenticated)||null!=(null===e||void 0===e?void 0:e.userInfo)?Object(u.jsx)("div",{className:"flex items-center justify-center",children:Object(u.jsx)("div",{className:"relative inline-block text-left",children:Object(u.jsx)(_t.c,{children:function(t){var s,a,r,n,c,l,o,d=t.open;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsxs)(_t.c.Button,{className:"hidden md:inline-flex items-center space-x-2 w-full text-sm font-medium leading-5 text-gray-700 transition duration-150 ease-in-out hover:text-gray-500 focus:outline-none focus:border-pink-300 focus:shadow-outline-blue active:bg-gray-50 active:text-gray-800",children:[Object(u.jsx)("img",{src:null===e||void 0===e||null===(s=e.userInfo)||void 0===s?void 0:s.image,alt:null===e||void 0===e||null===(a=e.userInfo)||void 0===a?void 0:a.name,className:"rounded-full h-10 w-auto border-2 border-green-600"}),Object(u.jsx)("svg",{className:"w-5 h-5 ml-2 -mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:Object(u.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),Object(u.jsx)(_t.e,{show:d,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:Object(u.jsxs)(_t.c.Items,{static:!0,className:"absolute right-0 w-56 mt-2 origin-top-right bg-white border border-gray-200 divide-y divide-gray-100 rounded-md shadow-lg outline-none",children:[Object(u.jsxs)("div",{className:"px-4 py-3 flex items-start space-x-2",children:[Object(u.jsx)("div",{className:"pt-2",children:Object(u.jsx)("img",{src:null===e||void 0===e||null===(r=e.userInfo)||void 0===r?void 0:r.image,alt:null===e||void 0===e||null===(n=e.userInfo)||void 0===n?void 0:n.name,className:"rounded-full h-7 w-7 border-2 border-green-600"})}),Object(u.jsxs)("div",{children:[Object(u.jsx)("p",{className:"text-gray-900 text-sm leading-7",children:null===e||void 0===e||null===(c=e.userInfo)||void 0===c?void 0:c.name}),Object(u.jsx)("p",{className:"text-xs font-medium leading-5 text-gray-400 truncate",children:null===e||void 0===e||null===(l=e.userInfo)||void 0===l?void 0:l.email})]})]}),Object(u.jsxs)("div",{className:"py-1",children:[(null===e||void 0===e?void 0:e.isAuthenticated)&&(null===e||void 0===e||null===(o=e.userInfo)||void 0===o?void 0:o.isAdmin)&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(_t.c.Item,{children:function(e){var t=e.active;return Object(u.jsx)(i.b,{to:"/admin/users",className:"".concat(t?"bg-gray-100 text-gray-900":"text-gray-700"," flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),children:"Gestion des Utilisateurs"})}}),Object(u.jsx)(_t.c.Item,{children:function(e){var t=e.active;return Object(u.jsx)(i.b,{to:"/admin/orders",className:"".concat(t?"bg-gray-100 text-gray-900":"text-gray-700"," flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),children:"Gestion des Commandes"})}}),Object(u.jsx)(_t.c.Item,{children:function(e){var t=e.active;return Object(u.jsx)(i.b,{to:"/admin/products",className:"".concat(t?"bg-gray-100 text-gray-900":"text-gray-700"," flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),children:"Gestion des Produits"})}})]}),(null===e||void 0===e?void 0:e.isAuthenticated)&&Object(u.jsx)(_t.c.Item,{children:function(e){var t=e.active;return Object(u.jsx)(i.b,{to:"/profile",className:"".concat(t?"bg-gray-100 text-gray-900":"text-gray-700"," flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),children:"Compte utilisateur"})}}),Object(u.jsx)(_t.c.Item,{as:"span",disabled:!0,className:"flex justify-between w-full px-4 py-2 text-sm leading-5 text-left text-gray-700 cursor-not-allowed opacity-50",children:"Param\xe8tre (soon)"}),Object(u.jsx)(_t.c.Item,{children:function(e){var t=e.active;return Object(u.jsx)("a",{href:"#license",className:"".concat(t?"bg-gray-100 text-gray-900":"text-gray-700"," flex justify-between w-full px-4 py-2 text-sm leading-5 text-left"),children:"Mentions j'aime"})}})]}),Object(u.jsx)("div",{className:"py-1",children:Object(u.jsx)(_t.c.Item,{children:function(t){var s=t.active;return Object(u.jsx)("span",{onClick:e.onloggedOutUser,className:"".concat(s?"bg-red-100 text-red-600":"text-red-500"," flex justify-between w-full px-4 py-2 text-sm leading-5 text-left cursor-pointer"),children:"D\xe9connexion"})}})})]})})]})}})})}):Object(u.jsxs)(i.b,{to:"/login",className:"btn hidden md:flex",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"})}),Object(u.jsx)("span",{children:"Se connecter"})]})]})]})})})})),Tt=function(){return Object(u.jsxs)("div",{className:"px-4 pt-16 mx-auto sm:max-w-xl md:max-w-full lg:max-w-screen-xl md:px-24 lg:px-8 border-t border-gray-300",children:[Object(u.jsxs)("div",{className:"grid gap-10 row-gap-6 mb-8 sm:grid-cols-2 lg:grid-cols-4",children:[Object(u.jsxs)("div",{className:"sm:col-span-2",children:[Object(u.jsxs)(i.b,{to:"/",title:"Page d'accueil",className:"text-xl",children:[Object(u.jsx)("span",{className:"text-pink-500 font-bold",children:"E-"}),Object(u.jsx)("span",{className:"text-gray-900 leading-snug ml-1",children:"Shop"}),Object(u.jsx)("span",{className:"text-pink-500 font-bold",children:"."})]}),Object(u.jsxs)("div",{className:"mt-6 lg:max-w-sm",children:[Object(u.jsx)("p",{className:"text-sm text-gray-800",children:"Site de commerce en ligne. Rechercher les meilleurs produits \xe0 un prix cadeau."}),Object(u.jsx)("p",{className:"mt-4 text-sm text-gray-800",children:"Profitez de nos produits \xe0 15% de r\xe9duction."})]})]}),Object(u.jsxs)("div",{className:"space-y-2 text-sm",children:[Object(u.jsx)("p",{className:"text-base font-bold tracking-wide text-gray-900",children:"Contacts"}),Object(u.jsxs)("div",{className:"flex",children:[Object(u.jsx)("p",{className:"mr-1 text-gray-800",children:"Phone:"}),Object(u.jsx)("a",{href:"tel:850-123-5021","aria-label":"Our phone",title:"Our phone",className:"transition-colors duration-300 text-deep-purple-accent-400 hover:text-deep-purple-800",children:"850-123-5021"})]}),Object(u.jsxs)("div",{className:"flex",children:[Object(u.jsx)("p",{className:"mr-1 text-gray-800",children:"Email:"}),Object(u.jsx)("a",{href:"mailto:calebrussel77@gmail.com","aria-label":"Mon adresse email",title:"Mon adresse email",className:"transition-colors duration-300 text-deep-purple-accent-400 hover:text-deep-purple-800",children:"calebrussel77@gmail.com"})]}),Object(u.jsxs)("div",{className:"flex",children:[Object(u.jsx)("p",{className:"mr-1 text-gray-800",children:"Address:"}),Object(u.jsx)("a",{href:"https://www.google.com/maps",target:"_blank",rel:"noopener noreferrer","aria-label":"Our address",title:"Our address",className:"transition-colors duration-300 text-deep-purple-accent-400 hover:text-deep-purple-800",children:"312 Douala Street, CMR"})]})]}),Object(u.jsxs)("div",{children:[Object(u.jsx)("span",{className:"text-base font-bold tracking-wide text-gray-900",children:"Social"}),Object(u.jsxs)("div",{className:"flex items-center mt-1 space-x-3",children:[Object(u.jsx)("a",{href:"/",className:"text-gray-500 transition-colors duration-300 hover:text-deep-purple-accent-400",children:Object(u.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-5",children:Object(u.jsx)("path",{d:"M24,4.6c-0.9,0.4-1.8,0.7-2.8,0.8c1-0.6,1.8-1.6,2.2-2.7c-1,0.6-2,1-3.1,1.2c-0.9-1-2.2-1.6-3.6-1.6 c-2.7,0-4.9,2.2-4.9,4.9c0,0.4,0,0.8,0.1,1.1C7.7,8.1,4.1,6.1,1.7,3.1C1.2,3.9,1,4.7,1,5.6c0,1.7,0.9,3.2,2.2,4.1 C2.4,9.7,1.6,9.5,1,9.1c0,0,0,0,0,0.1c0,2.4,1.7,4.4,3.9,4.8c-0.4,0.1-0.8,0.2-1.3,0.2c-0.3,0-0.6,0-0.9-0.1c0.6,2,2.4,3.4,4.6,3.4 c-1.7,1.3-3.8,2.1-6.1,2.1c-0.4,0-0.8,0-1.2-0.1c2.2,1.4,4.8,2.2,7.5,2.2c9.1,0,14-7.5,14-14c0-0.2,0-0.4,0-0.6 C22.5,6.4,23.3,5.5,24,4.6z"})})}),Object(u.jsx)("a",{href:"/",className:"text-gray-500 transition-colors duration-300 hover:text-deep-purple-accent-400",children:Object(u.jsxs)("svg",{viewBox:"0 0 30 30",fill:"currentColor",className:"h-6",children:[Object(u.jsx)("circle",{cx:"15",cy:"15",r:"4"}),Object(u.jsx)("path",{d:"M19.999,3h-10C6.14,3,3,6.141,3,10.001v10C3,23.86,6.141,27,10.001,27h10C23.86,27,27,23.859,27,19.999v-10   C27,6.14,23.859,3,19.999,3z M15,21c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S18.309,21,15,21z M22,9c-0.552,0-1-0.448-1-1   c0-0.552,0.448-1,1-1s1,0.448,1,1C23,8.552,22.552,9,22,9z"})]})}),Object(u.jsx)("a",{href:"/",className:"text-gray-500 transition-colors duration-300 hover:text-deep-purple-accent-400",children:Object(u.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"h-5",children:Object(u.jsx)("path",{d:"M22,0H2C0.895,0,0,0.895,0,2v20c0,1.105,0.895,2,2,2h11v-9h-3v-4h3V8.413c0-3.1,1.893-4.788,4.659-4.788 c1.325,0,2.463,0.099,2.795,0.143v3.24l-1.918,0.001c-1.504,0-1.795,0.715-1.795,1.763V11h4.44l-1,4h-3.44v9H22c1.105,0,2-0.895,2-2 V2C24,0.895,23.105,0,22,0z"})})})]}),Object(u.jsx)("p",{className:"mt-4 text-sm text-gray-500",children:"Fais avec amour et passion par Caleb Russel."})]})]}),Object(u.jsxs)("div",{className:"flex flex-col-reverse justify-between pt-5 pb-10 border-t lg:flex-row",children:[Object(u.jsx)("p",{className:"text-sm text-gray-600",children:"\xa9 Copyright 2021 Caleb Russel Inc. Tous droits Reserv\xe9s."}),Object(u.jsxs)("ul",{className:"flex flex-col mb-3 space-y-2 lg:mb-0 sm:space-y-0 sm:space-x-5 sm:flex-row",children:[Object(u.jsx)("li",{children:Object(u.jsx)("a",{href:"/",className:"text-sm text-gray-600 transition-colors duration-300 hover:text-deep-purple-accent-400",children:"F.A.Q"})}),Object(u.jsx)("li",{children:Object(u.jsx)("a",{href:"/",className:"text-sm text-gray-600 transition-colors duration-300 hover:text-deep-purple-accent-400",children:"Privacy Policy"})}),Object(u.jsx)("li",{children:Object(u.jsx)("a",{href:"/",className:"text-sm text-gray-600 transition-colors duration-300 hover:text-deep-purple-accent-400",children:"Terms & Conditions"})})]})]})]})},Pt=function(e){return Object(u.jsxs)(r.a.Fragment,{children:[Object(u.jsx)(At,{}),Object(u.jsx)("main",{className:"mb-auto",children:e.children}),Object(u.jsx)(Tt,{})]})},Dt=s(32),It=s.n(Dt),Mt=(s(81),s(108)),Ut=s.n(Mt),Bt=s(118),zt=function(e){return Object(u.jsx)("div",{className:"bg-pink-600",children:Object(u.jsx)("div",{className:"max-w-7xl mx-auto py-3 px-3 sm:px-6 lg:px-8",children:Object(u.jsxs)("div",{className:"flex items-center justify-between flex-wrap",children:[Object(u.jsxs)("div",{className:"w-0 flex-1 flex items-center",children:[Object(u.jsx)("span",{className:"flex p-2 rounded-lg bg-pink-800",children:Object(u.jsx)(Et.c,{className:"h-6 w-6 text-white","aria-hidden":"true"})}),Object(u.jsx)("p",{className:"ml-3 font-medium text-white truncate",children:Object(u.jsx)("span",{children:e.children})})]}),Object(u.jsx)("div",{className:"order-3 mt-2 flex-shrink-0 w-full sm:order-2 sm:mt-0 sm:w-auto",children:Object(u.jsx)(i.b,{to:"/login",className:"flex items-center justify-center px-4 py-2 rounded text-sm font-medium text-pink-600 bg-white hover:bg-pink-50",children:"Se connecter"})})]})})})},Ft=s(43),Ht=s.n(Ft),Wt=s(61),Zt=s(156),Vt=[{name:"01 - Produit Nul",number:1},{name:"02 - Mauvais Produit",number:2},{name:"03 - Bon Produit",number:3},{name:"04 - Tr\xe8s Bon Produit",number:4},{name:"05 - Excellent Produit",number:5}],Kt=function(e){var t=Object(a.useState)(Vt[4]),s=Object(kt.a)(t,2),r=s[0],n=s[1];return e.onchangeHandle(r.number),Object(u.jsx)("div",{className:"w-full md:w-72",children:Object(u.jsx)(_t.b,{value:r,onChange:n,children:function(e){var t=e.open;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(_t.b.Label,{className:"block text-gray-700 text-sm font-semibold tracking-wide uppercase",children:"APPR\xc9CIATION"}),Object(u.jsxs)("div",{className:"relative mt-2",children:[Object(u.jsxs)(_t.b.Button,{className:"relative w-full py-3 pl-3 pr-10 text-left bg-white rounded-md shadow-md cursor-default focus:outline-none focus-visible:ring-2 focus-visible:ring-opacity-75 focus-visible:ring-white focus-visible:ring-offset-pink-300 focus-visible:ring-offset-2 focus-visible:border-indigo-500 sm:text-sm",children:[Object(u.jsx)("span",{className:"block truncate",children:r.name}),Object(u.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none",children:Object(u.jsx)(Zt.b,{className:"w-5 h-5 text-gray-400","aria-hidden":"true"})})]}),Object(u.jsx)(_t.e,{show:t,as:a.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Object(u.jsx)(_t.b.Options,{static:!0,className:"absolute w-full py-1 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:Vt.map((function(e,t){return Object(u.jsx)(_t.b.Option,{className:function(e){var t=e.active;return"".concat(t?"text-pink-900 bg-pink-100":"text-gray-900","\n                          cursor-default select-none relative py-2 pl-10 pr-4")},value:e,children:function(t){var s=t.selected;t.active;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("span",{className:"".concat(s?"font-medium":"font-normal"," block truncate"),children:e.name}),s?Object(u.jsx)("span",{className:"".concat("text-pink-600","\n                                absolute inset-y-0 left-0 flex items-center pl-3"),children:Object(u.jsx)(Zt.a,{className:"w-5 h-5","aria-hidden":"true"})}):null]})}},t)}))})})]})]})}})})},Gt=r.a.memo(Kt),qt=Object(l.b)((function(e){return{isLoading:e.productCreateReview.isLoading,userInfo:e.user.userInfo,successCreateReview:e.productCreateReview.success}}),(function(e){return{onCreateReview:function(t,s){return e(Ke(t,s))}}}))((function(e){var t=Object(a.useState)(""),s=Object(kt.a)(t,2),r=s[0],n=s[1],c=Object(a.useState)(0),i=Object(kt.a)(c,2),l=i[0],o=i[1],d=function(){var t=Object(Wt.a)(Ht.a.mark((function t(s){return Ht.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.preventDefault(),e.onCreateReview(e.productId,{comment:r,rating:l}),(null===e||void 0===e?void 0:e.successCreateReview)&&(n(""),o(0));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return Object(u.jsxs)("form",{onSubmit:d,children:[Object(u.jsxs)("div",{className:"w-full md:w-1/2 space-y-8",children:[Object(u.jsx)(Gt,{onchangeHandle:function(e){o(e)}}),Object(u.jsxs)("div",{children:[Object(u.jsx)("label",{htmlFor:"about",className:"block text-gray-700 text-sm font-semibold tracking-wide uppercase",children:"Votre Commentaire"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("textarea",{id:"about",name:"comment",onChange:function(e){return n(e.target.value)},rows:3,value:r,required:!0,className:"shadow-sm h-28 focus:ring-pink-500 focus:border-pink-500 mt-1 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"Appr\xe9ciation du produit"})})]})]}),Object(u.jsx)("button",{disabled:e.isLoading,className:"btn mt-4 rounded-md px-5 font-bold uppercase text-sm ".concat(e.isLoading?"opacity-50 hover:opacity-50 cursor-not-allowed":""),type:"submit",children:e.isLoading?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{className:"text-white",children:"patientez..."})]}):Object(u.jsx)("span",{children:"Envoyer"})})]})})),Jt=Object(l.b)((function(e){return{isLoading:e.product.isLoading,error:e.product.error,productDetails:e.product.productDetails,userInfo:e.user.userInfo,successCreateReview:e.productCreateReview.success}}),(function(e){return{onGetProductDetails:function(t){return e(He(t))},onProductReviewReset:function(){return e({type:M})}}}))((function(e){var t,s,r,n,c,i,l,o,d,m,x,p,b,h,f,g,v,O,y,N,w,S,k,_,R,C,E,L,A,T,P,D,I,M,U,B,z=null===e||void 0===e||null===(t=e.match)||void 0===t||null===(s=t.params)||void 0===s?void 0:s.id,F=Object(a.useState)(1),H=Object(kt.a)(F,2),W=H[0],Z=H[1],V=Object(a.useState)(!1),K=Object(kt.a)(V,2),G=K[0],q=K[1],J=Object(a.useState)(0),Y=Object(kt.a)(J,2),Q=Y[0],X=Y[1];Object(a.useEffect)((function(){e.successCreateReview&&e.onProductReviewReset(),e.onGetProductDetails(z)}),[z,e.successCreateReview]);var $=function(){var t,s=Array.from(Array(null===(t=e.productDetails)||void 0===t?void 0:t.countInStock).keys());return Object(u.jsx)("select",{className:"w-full rounded-lg border border-gray-200 focus:border-pink-500 focus:ring-pink-500",name:"qty",value:W,id:"qtyId",onChange:function(e){return Z(Number(e.target.value))},children:s.map((function(e){return Object(u.jsx)("option",{value:e+1,children:e+1},e+1)}))})};return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[e.error&&Object(u.jsx)(gt,{children:"Une erreur est survenue veuillez recharger la page."}),Object(u.jsx)(wt,{title:null===(r=e.productDetails)||void 0===r?void 0:r.name}),Object(u.jsxs)("span",{onClick:function(){return e.history.goBack()},className:"cursor-pointer p-2 inline-flex items-center text-pink-500 hover:bg-pink-100 rounded-md font-semibold space-x-1",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})}),Object(u.jsx)("span",{children:"Retour"})]}),e.isLoading&&Object(u.jsx)("div",{className:"mt-10 w-full",children:Object(u.jsx)(ft,{})}),Object(u.jsxs)("div",{className:"mt-10 max-w-xl mx-auto flex-col space-x-0 space-y-3 md:flex md:max-w-none md:mx-0 md:flex-row md:space-y-0 md:items-start md:space-x-4",children:[Object(u.jsxs)("div",{className:"lg:flex-1 lg:flex items-start space-y-3 lg:space-y-0 lg:space-x-4",children:[Object(u.jsxs)("div",{className:"w-full",children:[(null===(n=e.productDetails)||void 0===n?void 0:n.image.length)>0&&Object(u.jsxs)("div",{className:"w-full relative group shadow-lg rounded-md overflow-hidden",onClick:function(){return q(!0)},children:[Object(u.jsx)(Ut.a,{images:(null===(c=e.productDetails)||void 0===c?void 0:c.image.length)>0&&(null===(i=e.productDetails)||void 0===i?void 0:i.image)}),Object(u.jsx)("div",{className:"group-hover:visible invisible cursor-pointer absolute inset-0 bg-black bg-opacity-40 text-center text-white font-bold text-lg flex justify-center items-center flex-col transition ease-in-out duration-150",children:"Voir l'aper\xe7u"})]}),G&&Object(u.jsx)(Bt.a,{mainSrc:null===(l=e.productDetails)||void 0===l?void 0:l.image[Q],nextSrc:null===(o=e.productDetails)||void 0===o?void 0:o.image[(Q+1)%(null===(d=e.productDetails)||void 0===d?void 0:d.image.length)],prevSrc:null===(m=e.productDetails)||void 0===m?void 0:m.image[(Q-1)%(null===(x=e.productDetails)||void 0===x?void 0:x.image.length)],onCloseRequest:function(){return q(!1)},onMovePrevRequest:function(){return X((function(t){var s,a;return(t+(null===(s=e.productDetails)||void 0===s?void 0:s.image.length)-1)%(null===(a=e.productDetails)||void 0===a?void 0:a.image.length)}))},onMoveNextRequest:function(){return X((function(t){var s,a;return(t+(null===(s=e.productDetails)||void 0===s?void 0:s.image.length)+1)%(null===(a=e.productDetails)||void 0===a?void 0:a.image.length)}))}})]}),Object(u.jsxs)("div",{className:"flex flex-col space-y-3 divide-y divide-gray-100",children:[Object(u.jsx)("h1",{className:"text-gray-900 text-xl mb-3 leading-7",children:null===(p=e.productDetails)||void 0===p?void 0:p.name}),Object(u.jsx)("p",{className:"inline-flex items-center",children:Object(u.jsx)("span",{className:"text-gray-600 text-base max-w-lg",children:null===(b=e.productDetails)||void 0===b?void 0:b.description})}),Object(u.jsx)(j,{value:null===(h=e.productDetails)||void 0===h?void 0:h.rating,text:"".concat(null===(f=e.productDetails)||void 0===f?void 0:f.numReviews," commentaires")}),Object(u.jsxs)("p",{className:"inline-flex items-center text-gray-800 text-lg space-x-2",children:[Object(u.jsx)("span",{children:"prix :"}),Object(u.jsxs)("span",{className:"",children:[null===(g=e.productDetails)||void 0===g?void 0:g.price," Frs"]})]})]})]}),Object(u.jsx)("div",{className:"w-full md:w-60",children:Object(u.jsxs)("div",{className:"w-full rounded",children:[Object(u.jsx)("table",{className:"w-full table-auto",children:Object(u.jsxs)("tbody",{className:"text-gray-600 text-sm border",children:[Object(u.jsxs)("tr",{className:"border-b",children:[Object(u.jsx)("td",{className:"py-3 px-4 text-left whitespace-nowrap",children:Object(u.jsx)("div",{className:"flex items-center",children:Object(u.jsx)("span",{className:"font-medium",children:"Prix"})})}),Object(u.jsx)("td",{className:"py-3 px-4 text-center",children:Object(u.jsxs)("span",{className:"bg-pink-100 text-pink-500 py-1 px-3 rounded-full text-xs",children:[null===(v=e.productDetails)||void 0===v?void 0:v.price," Frs"]})})]}),Object(u.jsxs)("tr",{className:"border-b",children:[Object(u.jsx)("td",{className:"py-3 px-4 text-left whitespace-nowrap",children:Object(u.jsx)("div",{className:"flex items-center",children:Object(u.jsx)("span",{className:"font-medium",children:"Status"})})}),Object(u.jsx)("td",{className:"py-3 px-4 text-center",children:Object(u.jsx)("span",{className:"py-1 px-3 rounded-full text-xs ".concat((null===(O=e.productDetails)||void 0===O?void 0:O.countInStock)&&(null===(y=e.productDetails)||void 0===y?void 0:y.countInStock)>0?"text-green-500":"text-red-500"),children:(null===(N=e.productDetails)||void 0===N?void 0:N.countInStock)&&(null===(w=e.productDetails)||void 0===w?void 0:w.countInStock)>0?"En stock":"Rupture de stock"})})]})]})}),Object(u.jsxs)("div",{children:[(null===(S=e.productDetails)||void 0===S?void 0:S.countInStock)>0&&Object(u.jsxs)("div",{className:"w-full my-3 space-y-2",children:[Object(u.jsx)("label",{htmlFor:"qtyId",className:"text-gray-600",children:"Quantit\xe9:"}),Object(u.jsx)($,{})]}),Object(u.jsxs)("button",{onClick:function(){e.history.push("/cart/".concat(z,"?qty=").concat(W))},className:"btn mt-4 w-full justify-center items-center space-x-2 ".concat(0===(null===(k=e.productDetails)||void 0===k?void 0:k.countInStock)?"opacity-40 hover:opacity-50 cursor-not-allowed":""),disabled:0===(null===(_=e.productDetails)||void 0===_?void 0:_.countInStock),children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})}),Object(u.jsx)("span",{children:"Ajouter au pannier"})]})]})]})})]}),Object(u.jsxs)("div",{className:"mt-16",children:[Object(u.jsxs)("h2",{className:"text-lg xl:text-2xl font-semibold text-gray-800 pb-2 border-b border-gray-300",children:[(null===e||void 0===e||null===(R=e.productDetails)||void 0===R||null===(C=R.reviews)||void 0===C?void 0:C.length)>0?null===e||void 0===e||null===(E=e.productDetails)||void 0===E||null===(L=E.reviews)||void 0===L?void 0:L.length:null," ","Commentaires"]}),Object(u.jsxs)("div",{className:"py-10",children:[0===(null===e||void 0===e||null===(A=e.productDetails)||void 0===A||null===(T=A.reviews)||void 0===T?void 0:T.length)&&Object(u.jsx)(ht,{children:"Aucun commentaires pour ce produit. Soyez le premier \xe0 commenter."}),(null===e||void 0===e?void 0:e.userInfo)?Object(u.jsx)("div",{className:"my-4",children:Object(u.jsx)(qt,{productId:null===e||void 0===e||null===(P=e.match)||void 0===P||null===(D=P.params)||void 0===D?void 0:D.id})}):Object(u.jsx)("div",{className:"my-4",children:Object(u.jsx)(zt,{children:"Connectez-vous pour soumettre votre commentaire et vos appr\xe9ciations du produit."})}),(null===(I=e.productDetails)||void 0===I||null===(M=I.reviews)||void 0===M?void 0:M.length)>0&&(null===(U=e.productDetails)||void 0===U||null===(B=U.reviews)||void 0===B?void 0:B.reverse().map((function(e){var t,s,a;return Object(u.jsxs)("div",{className:"mt-8 pt-6 border-t border-gray-200",children:[Object(u.jsxs)("div",{className:"flex flex-row items-center space-x-3",children:[Object(u.jsx)("img",{src:null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.image,alt:null===e||void 0===e||null===(s=e.user)||void 0===s?void 0:s.name,className:"rounded-full h-10 w-auto border border-pink-500"}),Object(u.jsxs)("div",{className:"",children:[Object(u.jsx)("p",{className:"text-gray-700 font-bold",children:null===e||void 0===e||null===(a=e.user)||void 0===a?void 0:a.name}),Object(u.jsx)("p",{className:"text-gray-500 text-sm",children:It()(null===e||void 0===e?void 0:e.createdAt).locale("fr").fromNow()})]})]}),Object(u.jsx)("div",{className:"mt-3",children:Object(u.jsx)(j,{value:null===e||void 0===e?void 0:e.rating})}),Object(u.jsx)("p",{className:"text-gray-800 leading-8 tracking-wide",children:null===e||void 0===e?void 0:e.comment})]},e._id)})))]})]})]})})),Yt=function(){return Object(u.jsx)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6",children:"Product Lists"})},Qt=Object(l.b)((function(e){return{notifs:e.notif.notifications}}),(function(e){return{onRemoveNotif:function(t){return e(function(e){return{type:B,payload:{id:e}}}(t))}}}))((function(e){var t=Object(a.useState)(!1),s=Object(kt.a)(t,2),r=s[0],n=s[1];return Object(u.jsx)("div",{style:{zIndex:1e10},className:"fixed bottom-3 sm:bottom-5 sm:right-3 sm:px-0 sm:w-96 w-full px-2 ",children:e.notifs&&e.notifs.map((function(t){return Object(u.jsx)("div",{className:"notification-item bg-white shadow-lg rounded-lg mb-3 ".concat(r?"exit":""),children:Object(u.jsxs)("div",{className:"rounded-lg shadow-xs overflow-hidden",children:[Object(u.jsx)("div",{className:"h-1 rounded-lg ".concat("SUCCESS"===t.type?"bg-green-600 ":"INFO"===t.type?"bg-yellow-500":"bg-red-600"),style:{width:"100%"}}),Object(u.jsx)("div",{className:"p-4",children:Object(u.jsxs)("div",{className:"flex items-start",children:[Object(u.jsx)("div",{className:"flex-shrink-0",children:"SUCCESS"===t.type?Object(u.jsx)("div",{className:"inline-flex items-center bg-green-600 p-2 text-white text-sm rounded-full flex-shrink-0",children:Object(u.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"w-5 h-5",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})})}):"INFO"===t.type?Object(u.jsx)("div",{className:"inline-flex items-center bg-yellow-500 p-2 text-white text-sm rounded-full flex-shrink-0",children:Object(u.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}):Object(u.jsx)("div",{className:"inline-flex items-center bg-red-600 p-2 text-white text-sm rounded-full flex-shrink-0",children:Object(u.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"w-5 h-5",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),Object(u.jsx)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:Object(u.jsx)("p",{className:"mt-1 text-sm leading-5 text-gray-600",children:t.msg})}),Object(u.jsx)("div",{className:"ml-4 flex-shrink-0 flex",children:Object(u.jsx)("button",{onClick:function(){return s=t.id,n(!0),void e.onRemoveNotif(s);var s},className:"cursor-pointer inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",children:Object(u.jsx)("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:Object(u.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})})]})})]})},t.id)}))})})),Xt=Object(l.b)((function(e){return{cartItems:e.cart.cartItems}}),(function(e){return{onAddToCart:function(t,s){return e(Je(t,s))},onRemoveToCart:function(t){return e(qe(t))}}}))((function(e){var t,s,r,n,c,l,o,d,m=null===e||void 0===e||null===(t=e.match)||void 0===t||null===(s=t.params)||void 0===s?void 0:s.id,j=(null===e||void 0===e||null===(r=e.location)||void 0===r?void 0:r.search)?Number(null===e||void 0===e||null===(n=e.location)||void 0===n?void 0:n.search.split("=")[1]):1;Object(a.useEffect)((function(){m&&e.onAddToCart(m,j)}),[m,j]);var x=function(t){var s=Array.from(Array(null===t||void 0===t?void 0:t.item.countInStock).keys());return Object(u.jsx)("select",{className:"w-full rounded-lg border border-gray-200 focus:border-pink-500 focus:ring-pink-500",name:"qty",value:t.item.qty,onChange:function(s){return e.onAddToCart(t.item.product,Number(s.target.value))},children:s.map((function(e){return Object(u.jsx)("option",{value:e+1,children:e+1},e+1)}))})};return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[e.cartItems.length?Object(u.jsx)("div",{className:"mb-4",children:Object(u.jsxs)("span",{onClick:function(){return e.history.goBack()},className:"cursor-pointer p-2 inline-flex items-center text-pink-500 hover:bg-pink-100 rounded-md font-semibold space-x-1",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})}),Object(u.jsx)("span",{children:"Retour"})]})}):null,Object(u.jsx)("div",{className:"border-b border-gray-200 mb-8",children:Object(u.jsxs)("div",{className:"inline-flex items-center space-x-2 text-gray-600 ",children:[Object(u.jsx)("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})}),Object(u.jsx)("span",{className:"text-base font-bold leading-8 tracking-tight sm:text-xl sm:leading-10 py-4 ",children:"Votre pannier d'achat"})]})}),!e.cartItems.length&&Object(u.jsx)(ht,{children:Object(u.jsxs)("p",{className:" text-gray-600",children:["Votre pannier est vide."," ",Object(u.jsx)("span",{onClick:function(){return e.history.goBack()},className:"cursor-pointer font-bold text-gray-600 hover:underline",children:"Revenir en arri\xe8re"})]})}),Object(u.jsxs)("div",{className:"flex items-start space-x-10",children:[Object(u.jsx)("div",{className:"w-full divide-y divide-gray-200",children:e.cartItems.map((function(t){return Object(u.jsxs)("div",{className:"flex items-center py-6 space-x-8 text-gray-600 transition ease-in-out duration-150",children:[Object(u.jsx)("div",{className:"shadow-md overflow-hidden rounded w-52",children:Object(u.jsx)("img",{src:t.image,alt:t.name,className:"object-cover object-center"})}),Object(u.jsxs)("div",{className:"flex-1 flex items-center space-x-8",children:[Object(u.jsxs)("div",{className:"space-y-3 flex-1",children:[Object(u.jsx)("p",{className:"font-bold text-lg hover:underline",children:Object(u.jsx)(i.b,{to:"/product/".concat(t.product),children:t.name})}),Object(u.jsxs)("p",{className:"text-pink-500 font-semibold",children:[t.price," frs"]})]}),Object(u.jsx)("div",{className:"w-40",children:Object(u.jsx)(x,{item:t})}),Object(u.jsx)("div",{onClick:function(){return s=t.product,void e.onRemoveToCart(s);var s},className:"p-2 rounded-lg hover:bg-red-100 cursor-pointer",children:Object(u.jsx)("svg",{className:"w-7 h-7 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})]},t.product)}))}),e.cartItems&&e.cartItems.length>0?Object(u.jsxs)("div",{className:"w-72 text-gray-600",children:[Object(u.jsxs)("h2",{className:"font-bold",children:["Quantit\xe9 total de produits :"," ",Object(u.jsx)("span",{className:"text-pink-600",children:null===(c=e.cartItems)||void 0===c?void 0:c.reduce((function(e,t){return e+t.qty}),0)})]}),Object(u.jsxs)("p",{className:"pt-1 font-bold",children:["Prix :"," ",Object(u.jsxs)("span",{className:"text-pink-600",children:[null===(l=e.cartItems)||void 0===l?void 0:l.reduce((function(e,t){return e+t.qty*t.price}),0).toFixed(2)," ","frs"]})]}),Object(u.jsxs)("button",{onClick:function(){e.history.push("/login?redirect=shipping")},className:"animate-bounce btn mt-4 w-full justify-center items-center space-x-2 ".concat(0===(null===(o=e.cartItems)||void 0===o?void 0:o.length)?"opacity-40 hover:opacity-50 cursor-not-allowed":""),disabled:0===(null===(d=e.cartItems)||void 0===d?void 0:d.length),children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})}),Object(u.jsx)("span",{children:"Proc\xe9der au payement"})]})]}):null]})]})})),$t=s.p+"static/media/Logo.18c312e6.png",es=s.p+"static/media/svgLogin.a6182a16.svg",ts=Object(l.b)((function(e){return{isLoading:e.user.isLoading,userInfo:e.user.userInfo,error:e.user.error}}),(function(e){return{onUserAuthSignIn:function(t,s){return e(et(t,s))}}}))((function(e){var t=Object(a.useState)(""),s=Object(kt.a)(t,2),r=s[0],n=s[1],c=Object(a.useState)(""),l=Object(kt.a)(c,2),o=l[0],d=l[1];console.log(e.location.search);var m=e.location.search?e.location.search.split("=")[1]:"/";return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn min-h-screen flex items-center justify-center py-6 px-4 sm:px-6 lg:px-8 relative bg-pink-100 bg-opacity-10",children:[Object(u.jsx)("img",{className:"hidden sm:inline-block absolute left-36 top-10 w-1/3 mt-36 transform translate-x-10 opacity-10",src:es,alt:"Workflow"}),Object(u.jsxs)("div",{className:"relative max-w-md w-full space-y-8 z-10",children:[Object(u.jsxs)("div",{children:[Object(u.jsx)("img",{className:"mx-auto h-12 w-auto",src:$t,alt:"Workflow"}),Object(u.jsx)("h2",{className:"mt-6 text-center text-3xl font-bold text-gray-900 tracking-wide",children:"Se connecter \xe0 son compte"}),Object(u.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["Et"," ",Object(u.jsx)("span",{className:"font-medium text-pink-500",children:"Profitez de nos produits \xe0 15% de r\xe9duction."})]})]}),Object(u.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:function(t){t.preventDefault(),e.onUserAuthSignIn(r,o),d("")},children:[Object(u.jsx)("input",{type:"hidden",name:"remember",value:"true"}),Object(u.jsx)("div",{children:Object(u.jsxs)("div",{className:"py-3",children:[Object(u.jsxs)("div",{className:"col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Adresse e-mail"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("input",{className:"w-full border-gray-300 shadow-sm rounded-lg focus:border-pink-500 focus:ring-pink-500",name:"email",type:"email",required:!0,placeholder:"janedoe@example.com",onChange:function(e){n(e.target.value)},value:r,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-4 col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Mot de passe"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("input",{className:"w-full border-gray-300 shadow-sm rounded-lg focus:border-pink-500 focus:ring-pink-500",name:"password",type:"password",required:!0,placeholder:"Votre Mot de passe",onChange:function(e){d(e.target.value)},value:o,autoComplete:"off"})})]})]})}),Object(u.jsxs)("div",{className:"flex flex-col space-y-3 sm:space-y-0 sm:flex-row sm:items-center justify-between",children:[Object(u.jsxs)("div",{className:"flex items-center",children:[Object(u.jsx)("input",{id:"remember_me",name:"remember_me",type:"checkbox",className:"h-4 w-4 text-pink-600 focus:ring-pink-500 border-gray-300 rounded"}),Object(u.jsx)("label",{htmlFor:"remember_me",className:"ml-2 block text-sm text-gray-900",children:"se souvenir de moi"})]}),Object(u.jsx)("div",{className:"text-sm",children:Object(u.jsxs)("span",{className:"",children:["Pas encore membre ?"," ",Object(u.jsx)(i.b,{to:m?"/register?redirect=".concat(m):"/register",className:"text-pink-500 hover:underline cursor-pointer",children:"cr\xe9er votre Compte"})]})})]}),Object(u.jsx)("div",{children:Object(u.jsxs)("button",{type:"submit",disabled:e.isLoading,className:"group relative w-full shadow flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500 ".concat(e.isLoading?"opacity-50 hover:opacity-50 cursor-not-allowed":"hover:bg-pink-600 "),children:[Object(u.jsx)("span",{className:"absolute left-0 inset-y-0 flex items-center pl-3",children:Object(u.jsx)("svg",{className:"h-5 w-5 text-pink-300 group-hover:text-pink-400",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:Object(u.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),e.isLoading?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{children:"patientez..."})]}):Object(u.jsx)("span",{children:"Connexion"})]})})]})]})]})})),ss=Object(l.b)((function(e){return{isLoading:e.user.isLoading,userInfo:e.user.userInfo,error:e.user.error,token:e.user.token}}),(function(e){return{onRegisterUser:function(t,s,a){return e(st(t,s,a))},onAddNotif:function(t,s){return e(De(t,s))}}}))((function(e){var t=Object(a.useState)(""),s=Object(kt.a)(t,2),r=s[0],n=s[1],c=Object(a.useState)(""),l=Object(kt.a)(c,2),o=l[0],d=l[1],m=Object(a.useState)(""),j=Object(kt.a)(m,2),x=j[0],p=j[1],b=Object(a.useState)(""),h=Object(kt.a)(b,2),f=h[0],g=h[1],v=e.location.search?e.location.search.split("=")[1]:"/";return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn min-h-screen flex items-center justify-center py-6 px-4 sm:px-6 lg:px-8 relative bg-pink-100 bg-opacity-10",children:[Object(u.jsx)("img",{className:"hidden sm:inline-block absolute left-36 top-10 w-1/3 mt-36 transform translate-x-10 opacity-10",src:es,alt:"Workflow"}),Object(u.jsxs)("div",{className:"relative max-w-md w-full space-y-8 z-10",children:[Object(u.jsxs)("div",{children:[Object(u.jsx)("img",{className:"mx-auto h-12 w-auto",src:$t,alt:"Workflow"}),Object(u.jsx)("h2",{className:"mt-6 text-center text-3xl font-bold text-gray-900 tracking-wide",children:"Cr\xe9er son compte"}),Object(u.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["Et"," ",Object(u.jsx)("span",{className:"font-medium text-pink-500",children:"Profitez de nos produits \xe0 15% de r\xe9duction."})]})]}),Object(u.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:function(t){t.preventDefault(),x!==f?e.onAddNotif("INFO","Les mots de passe ne correspondent pas."):(e.onRegisterUser(r,o,x),p(""),g(""))},children:[Object(u.jsx)("input",{type:"hidden",name:"remember",value:"true"}),Object(u.jsx)("div",{children:Object(u.jsxs)("div",{className:"py-3",children:[Object(u.jsxs)("div",{className:"col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Nom d'utilisateur"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("input",{className:"w-full border-gray-300 shadow-sm rounded-lg focus:border-pink-500 focus:ring-pink-500",name:"name",type:"text",required:!0,placeholder:"John Doe",onChange:function(e){n(e.target.value)},value:r,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-4 col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Adresse e-mail"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("input",{className:"w-full border-gray-300 shadow-sm rounded-lg focus:border-pink-500 focus:ring-pink-500",name:"email",type:"email",required:!0,placeholder:"johndoe@example.com",onChange:function(e){d(e.target.value)},value:o,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-4 col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Mot de passe"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("input",{className:"w-full border-gray-300 shadow-sm rounded-lg focus:border-pink-500 focus:ring-pink-500",name:"password",type:"password",required:!0,placeholder:"Votre Mot de passe",onChange:function(e){p(e.target.value)},value:x,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-4 col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Confirmation du mot de passe"}),Object(u.jsx)("div",{className:"mt-2",children:Object(u.jsx)("input",{className:"w-full border-gray-300 shadow-sm rounded-lg focus:border-pink-500 focus:ring-pink-500",name:"password2",type:"password",required:!0,placeholder:"Confirmez votre mot de passe",onChange:function(e){g(e.target.value)},value:f,autoComplete:"off"})})]})]})}),Object(u.jsxs)("div",{className:"flex flex-col space-y-3 sm:space-y-0 sm:flex-row sm:items-center justify-between",children:[Object(u.jsxs)("div",{className:"flex items-center",children:[Object(u.jsx)("input",{id:"remember_me",name:"remember_me",type:"checkbox",className:"h-4 w-4 text-pink-600 focus:ring-pink-500 border-gray-300 rounded"}),Object(u.jsx)("label",{htmlFor:"remember_me",className:"ml-2 block text-sm text-gray-900",children:"se souvenir de moi"})]}),Object(u.jsx)("div",{className:"text-sm",children:Object(u.jsxs)("span",{className:"",children:["Vous avez un compte ?"," ",Object(u.jsx)(i.b,{to:v?"/login?redirect=".concat(v):"/login",className:"text-pink-500 hover:underline cursor-pointer",children:"connectez-vous"})]})})]}),Object(u.jsx)("div",{children:Object(u.jsxs)("button",{type:"submit",disabled:e.isLoading,className:"group relative w-full shadow flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500 ".concat(e.isLoading?"opacity-50 hover:opacity-50 cursor-not-allowed":"hover:bg-pink-600 "),children:[Object(u.jsx)("span",{className:"absolute left-0 inset-y-0 flex items-center pl-3",children:Object(u.jsx)("svg",{className:"h-5 w-5 text-pink-300 group-hover:text-pink-400",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:Object(u.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),e.isLoading?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{children:"patientez..."})]}):Object(u.jsx)("span",{children:"Connexion"})]})})]})]})]})})),as=Object(l.b)((function(e){return{isLoading:e.user.isLoading,isLoadingUserOrders:e.userOrders.isLoading,userOrders:e.userOrders.userOrders,userDetails:e.user.userDetails,error:e.user.error}}),(function(e){return{onGetUserProfile:function(t){return e(rt(t))},onGetuserOrders:function(){return e(xt())},onResetUserProfile:function(){return e({type:xe})},onUserOrdersReset:function(){return e({type:Te})},onUpdateUserProfil:function(t){return e(at(t))},onAddNotif:function(t,s){return e(De(t,s))}}}))((function(e){var t=Object(a.useState)(""),s=Object(kt.a)(t,2),r=s[0],n=s[1],c=Object(a.useState)(""),l=Object(kt.a)(c,2),o=l[0],d=l[1],m=Object(a.useState)(""),j=Object(kt.a)(m,2),x=j[0],p=j[1],b=Object(a.useState)(""),h=Object(kt.a)(b,2),f=h[0],g=h[1],v=Object(a.useState)(""),O=Object(kt.a)(v,2),y=O[0],N=O[1],w=Object(a.useState)(""),S=Object(kt.a)(w,2),k=S[0],_=S[1],R=Object(a.useState)(""),C=Object(kt.a)(R,2),E=C[0],L=C[1],A=Object(a.useState)(""),T=Object(kt.a)(A,2),P=T[0],D=T[1],I=Object(a.useState)(""),M=Object(kt.a)(I,2),U=M[0],B=M[1],z=Object(a.useState)(""),F=Object(kt.a)(z,2),H=F[0],W=(F[1],Object(a.useState)("")),Z=Object(kt.a)(W,2),V=Z[0],K=Z[1],G=e.userDetails,q=e.onUpdateUserProfil,J=e.onGetuserOrders,Y=e.onGetUserProfile,Q=e.onAddNotif,X=e.isLoadingUserOrders,$=e.isLoading,ee=e.userOrders,te=e.onResetUserProfile,se=e.onUserOrdersReset;Object(a.useEffect)((function(){J()}),[J]),Object(a.useEffect)((function(){G?(n(String(G.name)),d(String(G.image)),L(String(G.email)),p(String(G.website)),g(String(G.city)),N(String(G.state)),_(String(G.zipCode))):Y("profile")}),[te,Y,J,G,se]);var ae=function(e){e.preventDefault(),P&&P!==U?Q("INFO","Les mots de passe ne correspondent pas."):q({name:r,website:x,image:V||o,email:E,city:f,state:y,zipCode:k})};return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsx)("div",{children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Mes Commandes"}),Object(u.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Consultez la liste de vos commandes pass\xe9es sur notre plateforme."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("div",{className:"shadow sm:rounded-md sm:overflow-hidden",children:Object(u.jsxs)("div",{className:"px-4 py-5 bg-white space-y-6 sm:p-6",children:[X&&Object(u.jsx)(ft,{}),Object(u.jsx)("div",{className:"w-full overflow-hidden rounded-lg shadow-xs",children:Object(u.jsxs)("div",{className:"w-full overflow-x-auto",children:[ee&&(null===ee||void 0===ee?void 0:ee.length)>0&&Object(u.jsxs)("table",{className:"w-full whitespace-no-wrap",children:[Object(u.jsx)("thead",{children:Object(u.jsxs)("tr",{className:"text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("th",{className:"px-4 py-3",children:"ID Commande"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Date"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Total"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Pay\xe9"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Livr\xe9"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Actions"})]})}),Object(u.jsx)("tbody",{className:"bg-white divide-y dark:divide-gray-700 dark:bg-gray-800",children:ee.map((function(e,t){var s,a;return Object(u.jsxs)("tr",{className:"text-gray-700 dark:text-gray-400",children:[Object(u.jsx)("td",{className:"px-4 py-3",children:Object(u.jsx)("div",{className:"flex items-center",children:Object(u.jsx)("p",{className:"whitespace-nowrap text-sm text-gray-600 dark:text-gray-400 text-center",children:(null===e||void 0===e||null===(s=e.paymentResult)||void 0===s?void 0:s.id)?null===e||void 0===e||null===(a=e.paymentResult)||void 0===a?void 0:a.id:"Non d\xe9fini"})})}),Object(u.jsx)("td",{className:"whitespace-nowrap px-4 py-3 text-sm",children:It()(e.createdAt).locale("fr").format("ll")}),Object(u.jsxs)("td",{className:"whitespace-nowrap px-4 py-3 font-semibold",children:[e.totalPrice.toFixed(2)," frs"]}),Object(u.jsx)("td",{className:"px-4 py-3",children:Object(u.jsx)("span",{className:"whitespace-nowrap text-xs px-2 py-1 font-semibold leading-tight rounded-full dark:bg-green-700 dark:text-green-100 ".concat(e.isPaid?"text-green-500 bg-green-100  ":"text-red-500 bg-red-100 "," "),children:e.isPaid?It()(e.paidAt).locale("fr").format("ll"):"Non Pay\xe9"})}),Object(u.jsx)("td",{className:"px-4 py-3 text-sm",children:Object(u.jsx)("span",{className:"whitespace-nowrap text-xs px-2 py-1 font-semibold leading-tight rounded-full dark:bg-green-700 dark:text-green-100 ".concat(e.isDelivered?"text-green-500 bg-green-100  ":"text-red-500 bg-red-100 "," "),children:e.isDelivered?It()(e.deliveredAt).locale("fr").format("ll"):"Non Livr\xe9"})}),Object(u.jsx)("td",{className:"px-4 py-3",children:Object(u.jsx)("div",{className:"flex items-center space-x-4 ",children:Object(u.jsx)(i.b,{to:"order/".concat(null===e||void 0===e?void 0:e._id),className:"btn relative text-xs",children:Object(u.jsx)("span",{className:"whitespace-nowrap",children:"Voir les d\xe9tails"})})})})]},t)}))})]}),!X&&0===ee.length&&Object(u.jsx)(ht,{children:"Aucune commande n'a encore \xe9t\xe9 effectu\xe9e."})]})})]})})})]})}),Object(u.jsx)("div",{className:"hidden sm:block","aria-hidden":"true",children:Object(u.jsx)("div",{className:"py-5",children:Object(u.jsx)("div",{className:"border-t border-gray-200"})})}),Object(u.jsx)("div",{className:"mt-10 sm:mt-0",children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Profil"}),Object(u.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Ces informations seront affich\xe9es publiquement, alors faites attention \xe0 ce que vous partagez."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("form",{onSubmit:ae,children:Object(u.jsxs)("div",{className:"shadow sm:rounded-md sm:overflow-hidden",children:[Object(u.jsxs)("div",{className:"px-4 py-5 bg-white space-y-6 sm:p-6",children:[Object(u.jsx)("div",{className:"grid grid-cols-3 gap-6",children:Object(u.jsxs)("div",{className:"col-span-3 sm:col-span-2",children:[Object(u.jsx)("label",{htmlFor:"company_website",className:"block text-sm font-medium text-gray-700",children:"Site web"}),Object(u.jsxs)("div",{className:"mt-1 flex rounded-md shadow-sm",children:[Object(u.jsx)("span",{className:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 text-sm",children:"http://"}),Object(u.jsx)("input",{type:"text",name:"website",id:"company_website",onChange:function(e){p(e.target.value)},value:x,className:"focus:ring-pink-500 focus:border-pink-500 flex-1 block w-full rounded-none rounded-r-md sm:text-sm border-gray-300",placeholder:"www.example.com"})]})]})}),Object(u.jsxs)("div",{children:[Object(u.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Photo"}),Object(u.jsxs)("div",{className:"mt-1 flex items-center",children:[Object(u.jsx)("span",{className:"inline-block h-12 w-12 rounded-full overflow-hidden bg-gray-100 mt-3 md:mt-0 border border-gray-200",children:Object(u.jsx)("img",{src:V||o,alt:"profil",className:"h-full w-full object-cover object-center"})}),Object(u.jsxs)("div",{tabIndex:0,children:[Object(u.jsx)("input",{type:"file",id:"defaultBtn",name:"postImage",accept:"image/png, image/jpeg, image/jpg, image/JPEG, image/JPG, image/PNG",value:H,onChange:function(e){!function(e){var t=new FileReader;null===t||void 0===t||t.readAsDataURL(e),t.onloadend=function(){K(String(null===t||void 0===t?void 0:t.result))}}(e.target.files[0])},className:"hidden"}),Object(u.jsx)("button",{id:"customBtn",onClick:function(){document.querySelector("#defaultBtn").click()},type:"button",className:"ml-5 bg-white py-2 px-3 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500",children:"Changez"})]})]})]})]}),Object(u.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-right sm:px-6",children:Object(u.jsx)("button",{type:"submit",disabled:$,className:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500  ".concat($?"opacity-50 hover:opacity-50 cursor-not-allowed":"hover:bg-pink-600 "),children:$?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{children:"patientez..."})]}):Object(u.jsx)("span",{children:"Mettre \xe0 Jour"})})})]})})})]})}),Object(u.jsx)("div",{className:"hidden sm:block","aria-hidden":"true",children:Object(u.jsx)("div",{className:"py-5",children:Object(u.jsx)("div",{className:"border-t border-gray-200"})})}),Object(u.jsx)("div",{className:"mt-10 sm:mt-0",children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Informations personnelles"}),Object(u.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Utilisez une adresse permanente o\xf9 vous pouvez recevoir vos courriers."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("form",{onSubmit:ae,children:Object(u.jsxs)("div",{className:"shadow overflow-hidden sm:rounded-md",children:[Object(u.jsx)("div",{className:"px-4 py-5 bg-white sm:p-6",children:Object(u.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[Object(u.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:"Nom d'utilisateur"}),Object(u.jsx)("input",{type:"text",name:"name",id:"name",onChange:function(e){n(e.target.value)},value:r,autoComplete:"name",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[Object(u.jsx)("label",{htmlFor:"email_address",className:"block text-sm font-medium text-gray-700",children:"Addresse email"}),Object(u.jsx)("input",{type:"email",name:"email",id:"email_address",value:E,onChange:function(e){L(e.target.value)},autoComplete:"email",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[Object(u.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700",children:"Mot de passe"}),Object(u.jsx)("input",{type:"password",name:"password",id:"password",minLength:6,title:"Votre mot de passe doit contenir au moins 06 caract\xe8res.",onChange:function(e){D(e.target.value)},value:P,className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[Object(u.jsx)("label",{htmlFor:"password2",className:"block text-sm font-medium text-gray-700",children:"Confirmation du mot de passe"}),Object(u.jsx)("input",{type:"password",name:"password2",id:"password2",title:"Votre mot de passe doit contenir au moins 06 caract\xe8res.",minLength:6,onChange:function(e){B(e.target.value)},value:U,className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3 lg:col-span-2",children:[Object(u.jsx)("label",{htmlFor:"city",className:"block text-sm font-medium text-gray-700",children:"Quartier"}),Object(u.jsx)("input",{type:"text",name:"city",id:"city",value:f,onChange:function(e){g(e.target.value)},className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3 lg:col-span-2",children:[Object(u.jsx)("label",{htmlFor:"state",className:"block text-sm font-medium text-gray-700",children:"Etat / Region"}),Object(u.jsx)("input",{type:"text",name:"state",id:"state",value:y,onChange:function(e){N(e.target.value)},className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3 lg:col-span-2",children:[Object(u.jsx)("label",{htmlFor:"postal_code",className:"block text-sm font-medium text-gray-700",children:"ZIP / Code Postal"}),Object(u.jsx)("input",{type:"text",name:"zipCode",id:"postal_code",value:k,onChange:function(e){_(e.target.value)},autoComplete:"postal-code",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]})]})}),Object(u.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-right sm:px-6",children:Object(u.jsx)("button",{type:"submit",disabled:$,className:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500  ".concat($?"opacity-50 hover:opacity-50 cursor-not-allowed":"hover:bg-pink-600 "),children:$?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{children:"patientez..."})]}):Object(u.jsx)("span",{children:"Mettre \xe0 Jour"})})})]})})})]})})]})})),rs=function(e){var t=e.step1,s=e.step2,a=e.step3,r=e.step4;return Object(u.jsx)("div",{className:"w-full pb-12 pt-6",children:Object(u.jsxs)("div",{className:"flex",children:[Object(u.jsx)("div",{className:"w-1/4",children:Object(u.jsx)("div",{className:"relative mb-2",children:t?Object(u.jsxs)(i.b,{to:"/login",className:"space-y-2",children:[Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-pink-500 rounded-full text-lg text-white flex items-center justify-center",children:Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"})})}),Object(u.jsx)("p",{className:"text-xs text-center md:text-base",children:"Se connecter"})]}):Object(u.jsxs)("div",{className:"space-y-2",children:[Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-white border-2 border-gray-200 rounded-full text-lg flex items-center justify-center",children:Object(u.jsx)("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"})})}),Object(u.jsx)("p",{className:"text-xs text-center md:text-base",children:"Se connecter"})]})})}),Object(u.jsxs)("div",{className:"w-1/4",children:[Object(u.jsx)("div",{className:"relative mb-2",children:s?Object(u.jsxs)(u.Fragment,{children:[" ",Object(u.jsx)("div",{className:"absolute flex align-center items-center align-middle content-center",style:{width:"calc(100% - 2.5rem - 1rem)",top:"50%",transform:"translate(-50%, -50%)"},children:Object(u.jsx)("div",{className:"w-full bg-gray-200 rounded items-center align-middle align-center flex-1",children:Object(u.jsx)("div",{className:"w-0 bg-pink-300 py-1 rounded",style:{width:"100%"}})})}),Object(u.jsx)(i.b,{to:"/shipping",className:"space-y-2",children:Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-pink-500 rounded-full text-lg text-white flex items-center justify-center",children:Object(u.jsxs)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})})})]}):Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"absolute flex align-center items-center align-middle content-center",style:{width:"calc(100% - 2.5rem - 1rem)",top:"50%",transform:"translate(-50%, -50%)"},children:Object(u.jsx)("div",{className:"w-full bg-gray-200 rounded items-center align-middle align-center flex-1",children:Object(u.jsx)("div",{className:"w-0 bg-pink-300 py-1 rounded",style:{width:"0%"}})})}),Object(u.jsx)("div",{className:"space-y-2",children:Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-white border-2 border-gray-200 rounded-full text-lg flex items-center justify-center",children:Object(u.jsxs)("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})})})]})}),Object(u.jsx)("div",{className:"text-xs text-center md:text-base",children:"Adresse de Livraison"})]}),Object(u.jsxs)("div",{className:"w-1/4",children:[Object(u.jsx)("div",{className:"relative mb-2",children:a?Object(u.jsxs)(u.Fragment,{children:[" ",Object(u.jsx)("div",{className:"absolute flex align-center items-center align-middle content-center",style:{width:"calc(100% - 2.5rem - 1rem)",top:"50%",transform:"translate(-50%, -50%)"},children:Object(u.jsx)("div",{className:"w-full bg-gray-200 rounded items-center align-middle align-center flex-1",children:Object(u.jsx)("div",{className:"w-0 bg-pink-300 py-1 rounded",style:{width:"100%"}})})}),Object(u.jsx)(i.b,{to:"/payment",className:"space-y-2",children:Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-pink-500 rounded-full text-lg text-white flex items-center justify-center",children:Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})})})})]}):Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"absolute flex align-center items-center align-middle content-center",style:{width:"calc(100% - 2.5rem - 1rem)",top:"50%",transform:"translate(-50%, -50%)"},children:Object(u.jsx)("div",{className:"w-full bg-gray-200 rounded items-center align-middle align-center flex-1",children:Object(u.jsx)("div",{className:"w-0 bg-pink-300 py-1 rounded",style:{width:"0%"}})})}),Object(u.jsx)("div",{className:"space-y-2",children:Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-white border-2 border-gray-200 rounded-full text-lg flex items-center justify-center",children:Object(u.jsx)("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})})})})]})}),Object(u.jsx)("div",{className:"text-xs text-center md:text-base",children:"Payement"})]}),Object(u.jsxs)("div",{className:"w-1/4",children:[Object(u.jsx)("div",{className:"relative mb-2",children:r?Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"absolute flex align-center items-center align-middle content-center",style:{width:"calc(100% - 2.5rem - 1rem)",top:"50%",transform:"translate(-50%, -50%)"},children:Object(u.jsx)("div",{className:"w-full bg-gray-200 rounded items-center align-middle align-center flex-1",children:Object(u.jsx)("div",{className:"w-0 bg-pink-300 py-1 rounded",style:{width:"100%"}})})}),Object(u.jsx)(i.b,{to:"/placeorder",className:"space-y-2",children:Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-pink-500 rounded-full text-lg text-white flex items-center justify-center",children:Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})})})})]}):Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"absolute flex align-center items-center align-middle content-center",style:{width:"calc(100% - 2.5rem - 1rem)",top:"50%",transform:"translate(-50%, -50%)"},children:Object(u.jsx)("div",{className:"w-full bg-gray-200 rounded items-center align-middle align-center flex-1",children:Object(u.jsx)("div",{className:"w-0 bg-pink-300 py-1 rounded",style:{width:"0%"}})})}),Object(u.jsx)("div",{className:"space-y-2",children:Object(u.jsx)("div",{className:"w-10 h-10 mx-auto bg-white border-2 border-gray-200 rounded-full text-lg flex items-center justify-center",children:Object(u.jsx)("svg",{className:"w-6 h-6 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})})})})]})}),Object(u.jsx)("div",{className:"text-xs text-center md:text-base",children:"D\xe9tails de l'achat"})]})]})})},ns=Object(l.b)((function(e){return{isLoading:e.cart.isLoading,shippingAddress:e.cart.shippingAddress}}),(function(e){return{onSaveShippingAddress:function(t){return e(Ye(t))}}}))((function(e){var t=e.shippingAddress,s=e.history,r=e.onSaveShippingAddress,n=Object(a.useState)(t.address),c=Object(kt.a)(n,2),i=c[0],l=c[1],o=Object(a.useState)(t.city),d=Object(kt.a)(o,2),m=d[0],j=d[1],x=Object(a.useState)(t.postalCode),p=Object(kt.a)(x,2),b=p[0],h=p[1],f=Object(a.useState)(t.country),g=Object(kt.a)(f,2),v=g[0],O=g[1];return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsx)(rs,{step1:!0,step2:!0}),Object(u.jsx)("div",{className:"mt-10 sm:mt-0",children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Adresse de Livraison"}),Object(u.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Utilisez une adresse permanente o\xf9 vous pouvez recevoir vos courriers."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("form",{onSubmit:function(e){e.preventDefault(),r({address:i,city:m,postalCode:b,country:v}),s.push("/payment")},children:Object(u.jsxs)("div",{className:"shadow overflow-hidden sm:rounded-md",children:[Object(u.jsx)("div",{className:"px-4 py-5 bg-white sm:p-6",children:Object(u.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[Object(u.jsx)("label",{htmlFor:"address",className:"block text-sm font-medium text-gray-700",children:"Addresse de livraison"}),Object(u.jsx)("input",{type:"text",name:"address",id:"address",required:!0,onChange:function(e){l(e.target.value)},value:i,autoComplete:"street-address",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[Object(u.jsx)("label",{htmlFor:"country",className:"block text-sm font-medium text-gray-700",children:"Pays"}),Object(u.jsx)("input",{type:"text",name:"country",id:"country",required:!0,value:v,onChange:function(e){O(e.target.value)},className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsx)("br",{}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3 lg:col-span-2",children:[Object(u.jsx)("label",{htmlFor:"city",className:"block text-sm font-medium text-gray-700",children:"Ville d'exp\xe9dition"}),Object(u.jsx)("input",{type:"text",name:"city",id:"city",required:!0,value:m,onChange:function(e){j(e.target.value)},className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-3 lg:col-span-2",children:[Object(u.jsx)("label",{htmlFor:"postalCode",className:"block text-sm font-medium text-gray-700",children:"ZIP / Code Postal"}),Object(u.jsx)("input",{type:"text",name:"postalCode",id:"postalCode",required:!0,value:b,onChange:function(e){h(e.target.value)},autoComplete:"postal-code",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]})]})}),Object(u.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-right sm:px-6",children:Object(u.jsx)("button",{type:"submit",className:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm hover:bg-pink-600 text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500",children:Object(u.jsx)("span",{children:"Suivant"})})})]})})})]})})]})})),cs=s.p+"static/media/Paypal.3344eef6.svg",is=s.p+"static/media/Stripe.166c9620.svg",ls=Object(l.b)((function(e){return{shippingAddress:e.cart.shippingAddress,paymentMethodProps:e.cart.paymentMethod}}),(function(e){return{onSavePaymentMethod:function(t){return e(Qe(t))}}}))((function(e){var t=e.shippingAddress,s=e.history,r=e.onSavePaymentMethod,n=e.paymentMethodProps;t||s.push("/shipping");var c=Object(a.useState)(n),i=Object(kt.a)(c,2),l=i[0],o=i[1],d=function(e){o(e.target.value)};return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsx)(rs,{step1:!0,step2:!0,step3:!0}),Object(u.jsx)("div",{className:"mt-10 sm:mt-0",children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Methode de Payement"}),Object(u.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Choisissez votre methode de payement selon votre convenance."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("form",{onSubmit:function(e){e.preventDefault(),r(l),s.push("/placeorder")},children:Object(u.jsxs)("div",{className:"shadow overflow-hidden sm:rounded-md",children:[Object(u.jsx)("div",{className:"px-4 py-5 bg-white sm:p-6",children:Object(u.jsxs)("div",{className:"border border-gray-300 divide-y divide-gray-300 rounded-lg",children:[Object(u.jsx)("div",{className:"p-5 cursor-pointer hover:bg-pink-50 transition ease-in-out duration-150",children:Object(u.jsxs)("label",{className:"inline-flex items-center space-x-2 w-full h-full",children:[Object(u.jsx)("input",{type:"radio",className:"form-radio h-4 w-4 text-pink-500 focus:ring-pink-500",name:"paymentMethod",value:"Paypal",checked:"Paypal"===l,onChange:d}),Object(u.jsx)("div",{className:"inline-flex space-x-1 items-center",children:Object(u.jsx)("img",{src:cs,className:"h-9 w-auto",alt:"Paypal"})})]})}),Object(u.jsx)("div",{className:"p-5 cursor-pointer hover:bg-pink-50 transition ease-in-out duration-150",children:Object(u.jsxs)("label",{className:"inline-flex items-center space-x-2 w-full h-full",children:[Object(u.jsx)("input",{type:"radio",className:"form-radio h-4 w-4 text-pink-500 focus:ring-pink-500",name:"paymentMethod",onChange:d,checked:"Stripe"===l,value:"Stripe"}),Object(u.jsx)("div",{className:"inline-flex space-x-1 items-center",children:Object(u.jsx)("img",{src:is,className:"h-9 w-auto",alt:"Stripe"})})]})})]})}),Object(u.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-right sm:px-6",children:Object(u.jsx)("button",{type:"submit",className:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm hover:bg-pink-600 text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500",children:Object(u.jsx)("span",{children:"Suivant"})})})]})})})]})})]})})),os=Object(l.b)((function(e){return{shippingAddress:e.cart.shippingAddress,cartItems:e.cart.cartItems,paymentMethodProps:e.cart.paymentMethod,orderItem:e.order.orderItem,success:e.order.success,isLoading:e.order.isLoading}}),(function(e){return{onSaveShippingAddress:function(t){return e(Ye(t))},onCreateOrderItem:function(t){return e(it(t))}}}))((function(e){var t=e.shippingAddress,s=e.cartItems,r=e.paymentMethodProps,n=e.onCreateOrderItem,c=e.isLoading,l=e.orderItem,o=e.success,d=e.history;Object(a.useEffect)((function(){o&&d.push("/order/".concat(l._id))}),[o,d]);var m=function(e){return(Math.round(100*e)/100).toFixed(2)},j=m(Number(s.reduce((function(e,t){return e+t.qty*t.price}),0).toFixed(2))),x=m(Number(j)>2e3?0:1e3),p=m(Number((.19*Number(j)).toFixed(2))),b=Number(j)+Number(x)+Number(p);return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsx)(rs,{step1:!0,step2:!0,step3:!0,step4:!0}),Object(u.jsxs)("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg",children:[Object(u.jsxs)("div",{className:"px-4 py-5 sm:px-6",children:[Object(u.jsx)("h3",{className:"text-xl leading-6 font-medium text-gray-900",children:"Details de l'achat"}),Object(u.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-gray-500",children:"Details du processus d'achat de vos articles."})]}),Object(u.jsx)("div",{className:"border-t border-gray-200",children:Object(u.jsxs)("dl",{children:[Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Adresse de Livraison"}),Object(u.jsxs)("dd",{className:"mt-1 text-base text-gray-900 sm:mt-0 sm:col-span-2 space-x-1",children:[Object(u.jsx)("span",{children:t.address}),",",Object(u.jsx)("span",{children:t.city}),",",Object(u.jsx)("span",{children:t.country}),",",Object(u.jsx)("span",{children:t.postalCode})]})]}),Object(u.jsxs)("div",{className:"bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Methode de Payement"}),Object(u.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:"Paypal"===r?Object(u.jsx)("div",{className:"inline-flex space-x-1 items-center",children:Object(u.jsx)("img",{src:cs,className:"h-9 w-auto",alt:"Paypal"})}):Object(u.jsx)("div",{className:"inline-flex space-x-1 items-center",children:Object(u.jsx)("img",{src:is,className:"h-9 w-auto",alt:"Paypal"})})})]}),Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Produits command\xe9s"}),Object(u.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:0===s.length?"Votre pannier est vide":Object(u.jsx)("div",{className:"flex flex-col flex-wrap -mx-3 space-y-4",children:s.map((function(e){return Object(u.jsxs)("div",{className:"inline-flex space-x-3 items-center",children:[Object(u.jsx)("img",{src:e.image,alt:e.name,className:"h-10 w-10 rounded-md shadow-md"}),Object(u.jsx)(i.b,{to:"/product/".concat(e.product),className:"text-base text-gray-600 font-semibold hover:underline",children:e.name}),Object(u.jsxs)("span",{className:"text-base",children:[e.qty," x ",e.price," ="," ",Object(u.jsxs)("span",{className:"font-semibold text-pink-500",children:[" ",((null===e||void 0===e?void 0:e.qty)*(null===e||void 0===e?void 0:e.price)).toFixed(2)," ","frs"]})]})]},e.product)}))})})]})]})})]}),Object(u.jsxs)("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg max-w-md mt-3",children:[Object(u.jsxs)("div",{className:"px-4 py-5 sm:px-6",children:[Object(u.jsx)("h3",{className:"text-xl leading-6 font-medium text-gray-900",children:"R\xe9capitulatif de vos commandes"}),Object(u.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-gray-500",children:"Consultez ci-dessous le recapitulatif de vos commandes."})]}),Object(u.jsx)("div",{className:"border-t border-gray-200",children:Object(u.jsxs)("dl",{children:[Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Prix des Produits"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2 space-x-1",children:[j," frs"]})]}),Object(u.jsxs)("div",{className:"bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Prix de la livraison"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:[x," frs"]})]}),Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"TVA / Tax"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:[p," frs (19,25 %)"]})]}),Object(u.jsxs)("div",{className:"bg-pink-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-pink-500",children:"Prix Total"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-pink-500 font-bold sm:mt-0 sm:col-span-2",children:[b.toFixed(2)," frs"]})]}),Object(u.jsx)("div",{className:"m-3",children:Object(u.jsx)("button",{disabled:c,onClick:function(){n({orderItems:s,shippingAddress:t,paymentMethod:r,itemsPrice:j,shippingPrice:x,taxPrice:p,totalPrice:b})},className:"btn w-full inline-flex justify-center items-center space-x-2 shadow-lg ".concat(c?"opacity-50 hover:opacity-50 cursor-not-allowed hover:bg-current":"hover:bg-pink-700 "),children:c?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{children:"patientez..."})]}):Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})}),Object(u.jsx)("span",{children:" Passer la commande"})]})})})]})})]})]})})),ds=s(270),ms=Object(l.b)((function(e){return{orderDetails:e.order.orderDetails,orderItem:e.order.orderItem,userInfo:e.user.userInfo,success:e.order.success,isLoading:e.order.isLoading,successPay:e.orderPay.success,successDeliver:e.orderDeliver.success,isLoadingPay:e.orderPay.isLoading}}),(function(e){return{onGetOrderDetails:function(t){return e(lt(t))},onPayOrder:function(t,s){return e(ot(t,s))},onOrderDeliver:function(t){return e(bt(t))},onPayOrderReset:function(){return e({type:Se})}}}))((function(e){var t,s,r,n,c,l,o,d,m,j,x,p,b,h,f,g,v=e.onGetOrderDetails,O=(e.isLoading,e.orderDetails),y=e.match,N=e.successPay,w=e.isLoadingPay,S=e.orderItem,k=e.onPayOrderReset,_=e.onPayOrder,R=e.userInfo,C=e.onOrderDeliver,E=e.successDeliver,L=y.params.id,A=Object(a.useState)(!1),T=Object(kt.a)(A,2),P=T[0],D=T[1],I=(g=Number(null===O||void 0===O||null===(t=O.orderItems)||void 0===t?void 0:t.reduce((function(e,t){return e+t.qty*t.price}),0).toFixed(2)),(Math.round(100*g)/100).toFixed(2));Object(a.useEffect)((function(){v(L)}),[v,L]);Object(a.useEffect)((function(){var e=function(){var e=Object(Wt.a)(Ht.a.mark((function e(){var t,s,a,r,n;return Ht.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ue.a.get("/api/config/paypal",{baseURL:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_BASE_URL,headers:{"content-type":Ie,Authorization:"Bearer ".concat(null===ra||void 0===ra||null===(t=ra.getState())||void 0===t||null===(s=t.user)||void 0===s?void 0:s.token)}});case 2:a=e.sent,r=a.data,(n=document.createElement("script")).type="text/javascript",n.src="https://www.paypal.com/sdk/js?client-id=".concat(r,"&currency=EUR"),n.async=!0,n.onload=function(){D(!0)},document.body.appendChild(n);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();!S||N||E?(k(),v(L)):S.isPaid||(window.paypal?D(!0):(e(),console.log("salut")))}),[v,N,L,S,k,E]);var M=function(){var e=Object(Wt.a)(Ht.a.mark((function e(t,s){return Ht.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s.order.capture().then((function(e){_(L,{id:e.id,status:e.status,email_address:e.payer.email_address,update_time:e.update_time})})));case 1:case"end":return e.stop()}}),e)})));return function(t,s){return e.apply(this,arguments)}}();return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16 flex flex-col md:flex-row md:space-x-6 items-start",children:[Object(u.jsxs)("div",{className:" flex-1",children:[Object(u.jsxs)("span",{onClick:function(){var t;return null===e||void 0===e||null===(t=e.history)||void 0===t?void 0:t.goBack()},className:"cursor-pointer p-2 inline-flex items-center text-pink-500 hover:bg-pink-100 rounded-md font-semibold space-x-1",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})}),Object(u.jsx)("span",{children:"Retour"})]}),Object(u.jsxs)("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg mt-2",children:[Object(u.jsxs)("div",{className:"px-4 py-5 sm:px-6",children:[Object(u.jsx)("h3",{className:"text-xl leading-6 font-medium text-gray-900",children:"Informations sur l'acheteur"}),Object(u.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-gray-500",children:"V\xe9rifiez vos informations ci-dessous."})]}),Object(u.jsx)("div",{className:"border-t border-gray-200",children:Object(u.jsx)("dl",{children:Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Acheteur"}),Object(u.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2 space-x-1",children:Object(u.jsxs)("div",{className:"flex flex-row space-x-3 items-center",children:[Object(u.jsx)("div",{children:Object(u.jsx)("img",{src:null===O||void 0===O||null===(s=O.user)||void 0===s?void 0:s.image,alt:null===O||void 0===O||null===(r=O.user)||void 0===r?void 0:r.name,className:"h-10 w-10 rounded-md shadow-md"})}),Object(u.jsxs)("div",{className:"flex flex-col space-y-1",children:[Object(u.jsx)("span",{className:"text-gray-700 text-sm font-semibold",children:null===O||void 0===O||null===(n=O.user)||void 0===n?void 0:n.name}),Object(u.jsx)("span",{className:"text-gray-700 text-sm",children:Object(u.jsx)("a",{className:"hover:underline",href:"mailto:".concat(null===O||void 0===O||null===(c=O.user)||void 0===c?void 0:c.email),children:null===O||void 0===O||null===(l=O.user)||void 0===l?void 0:l.email})})]})]})})]})})})]}),Object(u.jsxs)("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg mt-3",children:[Object(u.jsxs)("div",{className:"px-4 py-5 sm:px-6",children:[Object(u.jsx)("h3",{className:"text-xl leading-6 font-medium text-gray-900",children:"Details de l'achat"}),Object(u.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-gray-500",children:"Details du processus d'achat de vos articles."})]}),Object(u.jsx)("div",{className:"border-t border-gray-200",children:Object(u.jsxs)("dl",{children:[Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Adresse de Livraison"}),Object(u.jsxs)("dd",{className:"mt-1 text-base text-gray-900 sm:mt-0 sm:col-span-2 space-x-1",children:[Object(u.jsx)("span",{children:null===O||void 0===O||null===(o=O.shippingAddress)||void 0===o?void 0:o.address}),",",Object(u.jsx)("span",{children:null===O||void 0===O||null===(d=O.shippingAddress)||void 0===d?void 0:d.city}),",",Object(u.jsx)("span",{children:null===O||void 0===O||null===(m=O.shippingAddress)||void 0===m?void 0:m.country}),",",Object(u.jsx)("span",{children:null===O||void 0===O||null===(j=O.shippingAddress)||void 0===j?void 0:j.postalCode})]})]}),Object(u.jsxs)("div",{className:"bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Methode de Payement"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:["Paypal"===(null===O||void 0===O||null===(x=O.paymentMethod)||void 0===x?void 0:x.toString())&&Object(u.jsx)("div",{className:"inline-flex space-x-1 items-center",children:Object(u.jsx)("img",{src:cs,className:"h-9 w-auto",alt:"Paypal"})}),"Stripe"===(null===O||void 0===O||null===(p=O.paymentMethod)||void 0===p?void 0:p.toString())&&Object(u.jsx)("div",{className:"inline-flex space-x-1 items-center",children:Object(u.jsx)("img",{src:is,className:"h-9 w-auto",alt:"Paypal"})})]})]}),Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Produits command\xe9s"}),Object(u.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:0===(null===O||void 0===O||null===(b=O.orderItems)||void 0===b?void 0:b.length)?"Votre commande est vide":Object(u.jsx)("div",{className:"flex flex-col flex-wrap -mx-3 space-y-4",children:null===O||void 0===O||null===(h=O.orderItems)||void 0===h?void 0:h.map((function(e){return Object(u.jsxs)("div",{className:"inline-flex space-x-3 items-center",children:[Object(u.jsx)("img",{src:e.image,alt:e.name,className:"h-10 w-10 rounded-md shadow-md"}),Object(u.jsx)(i.b,{to:"/product/".concat(e.product),className:"text-base text-gray-600 font-semibold hover:underline",children:e.name}),Object(u.jsxs)("span",{className:"text-base",children:[e.qty," x ",e.price," ="," ",Object(u.jsxs)("span",{className:"font-semibold text-gray-500",children:[" ",((null===e||void 0===e?void 0:e.qty)*(null===e||void 0===e?void 0:e.price)).toFixed(2)," ","frs"]})]})]},e.product)}))})})]}),Object(u.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 ".concat((null===O||void 0===O?void 0:O.isPaid)?"bg-green-100 text-green-600 font-bold":"bg-red-100 text-red-600 font-bold"," "),children:[Object(u.jsx)("dt",{className:"text-sm font-medium",children:"Etat de Payement :"}),Object(u.jsx)("dd",{className:"mt-1 text-sm sm:mt-0 sm:col-span-2",children:(null===O||void 0===O?void 0:O.isPaid)?"Pay\xe9 le ".concat(It()(O.paidAt).locale("fr").format("ll")," "):"Non Pay\xe9"})]}),Object(u.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 ".concat((null===O||void 0===O?void 0:O.isDelivered)?"bg-green-100 text-green-600 font-bold border-t border-green-100":"bg-red-100 text-red-600 font-bold border-t border-red-100"," "),children:[Object(u.jsx)("dt",{className:"text-sm font-medium",children:"Etat de livraison :"}),Object(u.jsx)("dd",{className:"mt-1 text-sm sm:mt-0 sm:col-span-2",children:(null===O||void 0===O?void 0:O.isDelivered)?"Livr\xe9 le ".concat(It()(O.deliveredAt).locale("fr").format("ll")," "):"Non Livr\xe9"})]})]})})]})]}),Object(u.jsxs)("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg w-1/3",children:[Object(u.jsxs)("div",{className:"px-4 py-5 sm:px-6",children:[Object(u.jsx)("h3",{className:"text-xl leading-6 font-medium text-gray-900",children:"R\xe9capitulatif de vos commandes"}),Object(u.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-gray-500",children:"Consultez ci-dessous le recapitulatif de vos commandes."})]}),Object(u.jsx)("div",{className:"border-t border-gray-200",children:Object(u.jsxs)("dl",{children:[Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Prix des Produits"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2 space-x-1",children:[I," frs"]})]}),Object(u.jsxs)("div",{className:"bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Prix de la livraison"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:[null===O||void 0===O?void 0:O.shippingPrice," frs"]})]}),Object(u.jsxs)("div",{className:"bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"TVA / Tax"}),Object(u.jsxs)("dd",{className:"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2",children:[null===O||void 0===O?void 0:O.taxPrice," frs (19,25 %)"]})]}),Object(u.jsxs)("div",{className:"bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",children:[Object(u.jsx)("dt",{className:"text-sm font-medium text-gray-800",children:"Prix Total"}),Object(u.jsxs)("dd",{className:"mt-1 text-gray-800 font-bold sm:mt-0 sm:col-span-2",children:[null===O||void 0===O||null===(f=O.totalPrice)||void 0===f?void 0:f.toFixed(2)," frs"]})]})]})}),Object(u.jsx)("div",{className:"bg-gray-50",children:!S.isPaid&&Object(u.jsxs)("div",{className:"p-6",children:[w&&Object(u.jsx)(ft,{}),P?(null===O||void 0===O?void 0:O.isPaid)?R.isAdmin&&(null===O||void 0===O?void 0:O.isPaid)&&!(null===O||void 0===O?void 0:O.isDelivered)?Object(u.jsxs)("button",{className:"btn w-full inline-flex space-x-3 items-center justify-center font-semibold",onClick:function(){C(String(O._id))},children:[Object(u.jsxs)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[Object(u.jsx)("path",{d:"M9 17a2 2 0 11-4 0 2 2 0 014 0zM19 17a2 2 0 11-4 0 2 2 0 014 0z"}),Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16V6a1 1 0 00-1-1H4a1 1 0 00-1 1v10a1 1 0 001 1h1m8-1a1 1 0 01-1 1H9m4-1V8a1 1 0 011-1h2.586a1 1 0 01.707.293l3.414 3.414a1 1 0 01.293.707V16a1 1 0 01-1 1h-1m-6-1a1 1 0 001 1h1M5 17a2 2 0 104 0m-4 0a2 2 0 114 0m6 0a2 2 0 104 0m-4 0a2 2 0 114 0"})]}),Object(u.jsx)("span",{children:"Marqu\xe9 comme livr\xe9"})]}):null:Object(u.jsx)(ds.PayPalButton,{createOrder:function(e,t){var s;return t.order.create({purchase_units:[{amount:{value:null===O||void 0===O||null===(s=O.totalPrice)||void 0===s?void 0:s.toFixed(2)}}],application_context:{shipping_preference:"NO_SHIPPING"}})},onApprove:M,onError:function(e){return console.log("ERROR",e)}}):Object(u.jsx)(ft,{})]})})]})]})})),us=Object(l.b)((function(e){return{isLoading:e.userList.isLoading,users:e.userList.users,successDelete:e.userList.successDelete}}),(function(e){return{onGetUsersList:function(){return e(dt())},onDeleteUser:function(t){return e(mt(t))}}}))((function(e){var t=e.onGetUsersList,s=e.users,r=e.isLoading,n=e.onDeleteUser,c=e.successDelete;return Object(a.useEffect)((function(){t()}),[t,c]),Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[Object(u.jsx)("h4",{className:"mb-4 text-lg font-semibold tracking-wide text-gray-900 uppercase",children:"Liste des Utilisateurs"}),Object(u.jsx)("button",{className:"btn",children:"Ajouter un Compte"})]}),r&&Object(u.jsx)(ft,{}),Object(u.jsxs)("div",{className:"w-full overflow-hidden rounded-lg shadow-xs mt-6",children:[s&&(null===s||void 0===s?void 0:s.length)>0&&Object(u.jsx)("div",{className:"w-full overflow-x-auto",children:Object(u.jsxs)("table",{className:"w-full whitespace-no-wrap",children:[Object(u.jsx)("thead",{children:Object(u.jsxs)("tr",{className:"text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("th",{className:"px-4 py-3",children:"ID"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Utilisateurs"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Admin"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Date"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Actions"})]})}),Object(u.jsx)("tbody",{className:"bg-white divide-y dark:divide-gray-700 dark:bg-gray-800",children:null===s||void 0===s?void 0:s.map((function(e){return Object(u.jsxs)("tr",{className:"text-gray-700 dark:text-gray-400",children:[Object(u.jsx)("td",{className:"pl-2 pr-4 py-4 text-sm",children:Object(u.jsx)("p",{className:"text-sm text-gray-800 dark:text-gray-400 text-center",children:null===e||void 0===e?void 0:e._id})}),Object(u.jsx)("td",{className:"px-4 py-4",children:Object(u.jsxs)("div",{className:"flex items-center text-sm",children:[Object(u.jsxs)("div",{className:"relative hidden w-8 h-8 mr-3 rounded-md md:block",children:[Object(u.jsx)("img",{className:"object-cover w-full h-full rounded-md",src:null===e||void 0===e?void 0:e.image,alt:null===e||void 0===e?void 0:e.name,loading:"lazy"}),Object(u.jsx)("div",{className:"absolute inset-0 rounded-full shadow-inner","aria-hidden":"true"})]}),Object(u.jsxs)("div",{children:[Object(u.jsx)("p",{className:"font-semibold",children:null===e||void 0===e?void 0:e.name}),Object(u.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 w-56 truncate",children:null===e||void 0===e?void 0:e.email})]})]})}),Object(u.jsx)("td",{className:"px-4 py-4 text-xs",children:Object(u.jsx)("span",{className:"px-2 py-1 font-semibold leading-tight rounded-full dark:bg-green-700 whitespace-nowrap ".concat((null===e||void 0===e?void 0:e.isAdmin)?"text-blue-500 bg-blue-100 ":"text-green-600 bg-green-100  "," "),children:(null===e||void 0===e?void 0:e.isAdmin)?"Administrateur(rice)":"Visiteur"})}),Object(u.jsx)("td",{className:"px-4 py-4 text-sm whitespace-nowrap",children:It()(null===e||void 0===e?void 0:e.createdAt).locale("fr").format("ll")}),Object(u.jsx)("td",{className:"px-4 py-4",children:Object(u.jsxs)("div",{className:"flex items-center space-x-4 text-sm",children:[Object(u.jsxs)(i.b,{to:"/admin/user/".concat(e._id,"/edit"),className:"group relative hover:bg-green-100 flex items-center justify-between px-2 py-2 text-sm font-medium leading-5 text-green-600 rounded-full transition ease-in-out duration-200 focus:outline-none focus:shadow-outline-gray","aria-label":"Delete",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),Object(u.jsx)("p",{className:"bg-red-100 invisible absolute top-0 -mt-7 right-0 -mr-6 group-hover:visible text-xs p-1 rounded-md",children:"Editer"})]}),Object(u.jsxs)("button",{onClick:function(){return t=String(e._id),void(window.confirm("Vous voulez vraiment supprim\xe9 cet utilisateur ?")&&n(t));var t},className:"group relative hover:bg-red-100 flex items-center justify-between px-2 py-2 text-sm font-medium leading-5 text-red-600 rounded-full transition ease-in-out duration-200 focus:outline-none focus:shadow-outline-gray","aria-label":"Delete",children:[Object(u.jsx)("svg",{className:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:Object(u.jsx)("path",{strokeWidth:1,fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})}),Object(u.jsx)("p",{className:"bg-red-100 invisible absolute top-0 -mt-7 right-0 -mr-6 group-hover:visible text-xs p-1 rounded-md",children:"Supprimer"})]})]})})]},null===e||void 0===e?void 0:e._id)}))})]})}),Object(u.jsxs)("div",{className:"grid px-4 py-4 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("span",{className:"flex items-center col-span-3",children:"Montrant ".concat(r?"chargement...":null===s||void 0===s?void 0:s.length," sur ").concat(r?"loading...":null===s||void 0===s?void 0:s.length)}),Object(u.jsx)("span",{className:"col-span-2"}),Object(u.jsx)("span",{className:"flex col-span-4 mt-2 sm:mt-auto sm:justify-end"})]})]})]})})),js=Object(l.b)((function(e){return{isLoadingEdit:e.userEdit.isLoading,isLoadingUpdate:e.userUpdate.isLoading,updateSuccess:e.userUpdate.success,userEdit:e.userEdit.userEdit}}),(function(e){return{onGetUserEditData:function(t){return e(ut(t))},onUpdateUserData:function(t,s){return e(jt(t,s))}}}))((function(e){var t,s=Object(a.useState)(""),r=Object(kt.a)(s,2),n=r[0],c=r[1],i=Object(a.useState)(!1),l=Object(kt.a)(i,2),o=l[0],d=l[1],m=Object(a.useState)(""),j=Object(kt.a)(m,2),x=j[0],p=j[1],b=e.userEdit,h=e.isLoadingEdit,f=e.isLoadingUpdate,g=e.onGetUserEditData,v=e.onUpdateUserData,O=e.history,y=e.match,N=e.updateSuccess,w=null===y||void 0===y||null===(t=y.params)||void 0===t?void 0:t.id;Object(a.useEffect)((function(){(null===b||void 0===b?void 0:b.name)&&(null===b||void 0===b?void 0:b._id)===w?(c(String(null===b||void 0===b?void 0:b.name)),p(String(null===b||void 0===b?void 0:b.email)),d(Boolean(null===b||void 0===b?void 0:b.isAdmin))):g(w)}),[b,w,g,O,N]);return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[h&&Object(u.jsx)(ft,{}),Object(u.jsxs)("span",{onClick:function(){return O.goBack()},className:"cursor-pointer p-2 inline-flex items-center text-pink-500 hover:bg-pink-100 rounded-md font-semibold space-x-1",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})}),Object(u.jsx)("span",{children:"Retour"})]}),Object(u.jsx)("div",{className:"mt-10 sm:mt-0",children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Informations de l'utilisateur"}),Object(u.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Modifier de mani\xe8re conforme les informations de l'utilisateur."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("form",{onSubmit:function(e){e.preventDefault(),v(w,{name:n,email:x,isAdmin:o})},children:Object(u.jsxs)("div",{className:"shadow overflow-hidden sm:rounded-md",children:[Object(u.jsx)("div",{className:"px-4 py-5 bg-white sm:p-6",children:Object(u.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[Object(u.jsx)("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:"Nom d'utilisateur"}),Object(u.jsx)("input",{type:"text",name:"name",id:"name",onChange:function(e){c(e.target.value)},value:n,autoComplete:"name",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[Object(u.jsx)("label",{htmlFor:"email_address",className:"block text-sm font-medium text-gray-700",children:"Addresse email"}),Object(u.jsx)("input",{type:"email",name:"email",id:"email_address",value:x,onChange:function(e){p(e.target.value)},autoComplete:"email",className:"mt-1 focus:ring-pink-500 focus:border-pink-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"})]}),Object(u.jsx)("div",{className:"col-span-6 sm:col-span-4",children:Object(u.jsxs)("div",{className:"flex items-center space-x-2",children:[Object(u.jsx)("input",{id:"isAdmin",name:"isAdmin",type:"checkbox",checked:o,onChange:function(){d(!o)},className:"cursor-pointer h-4 w-4 text-pink-600 focus:ring-pink-500 border-gray-300 rounded"}),Object(u.jsx)("label",{htmlFor:"isAdmin",className:"ml-2 block text-sm text-gray-900 cursor-pointer",children:"Assign\xe9 en tant que Administrateur"})]})})]})}),Object(u.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-right sm:px-6",children:Object(u.jsx)("button",{type:"submit",disabled:f,className:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-pink-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink-500  ".concat(f?"opacity-50 hover:opacity-50 cursor-not-allowed":"hover:bg-pink-600 "),children:f?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{children:"patientez..."})]}):Object(u.jsx)("span",{children:"Mettre \xe0 Jour"})})})]})})})]})})]})})),xs=Object(l.b)((function(e){return{isLoading:e.product.isLoading,isLoadingCreateProd:e.productCreate.isLoading,products:e.product.products,successDelete:e.product.successDelete,successCreate:e.productCreate.success,createdProduct:e.productCreate.product}}),(function(e){return{onGetProductsList:function(){return e(Fe())},onResetProduct:function(){return e({type:T})},onCreateProduct:function(){return e(Ze())},onDeleteProduct:function(t){return e(We(t))}}}))((function(e){var t=e.onGetProductsList,s=e.onDeleteProduct,r=e.isLoading,n=e.successDelete,c=e.products,l=e.history,o=e.isLoadingCreateProd,d=e.createdProduct,m=e.onCreateProduct,j=e.successCreate,x=e.onResetProduct;Object(a.useEffect)((function(){x(),j?l.push("/admin/product/".concat(null===d||void 0===d?void 0:d._id,"/edit")):t()}),[t,n,l,j]);return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[Object(u.jsx)("h4",{className:"mb-4 text-lg font-semibold tracking-wide text-gray-900 uppercase",children:"Liste des Produits"}),Object(u.jsx)("button",{disabled:o,className:"group btn ".concat(o?"opacity-50 hover:opacity-50 cursor-not-allowed":"hover:bg-pink-700 "),onClick:function(){m()},children:"Ajouter un Produit"})]}),r&&Object(u.jsx)(ft,{}),Object(u.jsxs)("div",{className:"w-full overflow-hidden rounded-lg shadow-xs mt-6",children:[c&&(null===c||void 0===c?void 0:c.length)>0&&Object(u.jsx)("div",{className:"w-full overflow-x-auto",children:Object(u.jsxs)("table",{className:"w-full whitespace-no-wrap",children:[Object(u.jsx)("thead",{children:Object(u.jsxs)("tr",{className:"text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("th",{className:"px-4 py-3",children:"ID"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Produit"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Prix"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Cat\xe9gorie"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Marque"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Actions"})]})}),Object(u.jsx)("tbody",{className:"bg-white divide-y dark:divide-gray-700 dark:bg-gray-800",children:null===c||void 0===c?void 0:c.map((function(e){return Object(u.jsxs)("tr",{className:"text-gray-700 dark:text-gray-400",children:[Object(u.jsx)("td",{className:"pl-2 pr-4 py-4 text-sm",children:Object(u.jsx)("p",{className:"text-sm text-gray-800 dark:text-gray-400 text-center",children:null===e||void 0===e?void 0:e._id})}),Object(u.jsx)("td",{className:"px-4 py-4",children:Object(u.jsxs)("div",{className:"flex items-center text-sm",children:[Object(u.jsxs)("div",{className:"relative hidden w-8 h-8 mr-3 rounded-md md:block",children:[Object(u.jsx)("img",{className:"object-cover w-full h-full rounded-md",src:null===e||void 0===e?void 0:e.image[0],alt:null===e||void 0===e?void 0:e.name}),Object(u.jsx)("div",{className:"absolute inset-0 rounded-full shadow-inner","aria-hidden":"true"})]}),Object(u.jsxs)("div",{children:[Object(u.jsx)(i.b,{to:"/product/".concat(e._id),className:"font-semibold hover:underline",children:null===e||void 0===e?void 0:e.name}),Object(u.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 w-56 truncate mt-1",children:null===e||void 0===e?void 0:e.description})]})]})}),Object(u.jsxs)("td",{className:"px-4 py-4 text-sm whitespace-nowrap",children:[null===e||void 0===e?void 0:e.price," frs"]}),Object(u.jsx)("td",{className:"px-4 py-4 text-sm whitespace-nowrap",children:null===e||void 0===e?void 0:e.category}),Object(u.jsx)("td",{className:"px-4 py-4 text-sm whitespace-nowrap",children:null===e||void 0===e?void 0:e.brand}),Object(u.jsx)("td",{className:"px-4 py-4",children:Object(u.jsxs)("div",{className:"flex items-center space-x-4 text-sm",children:[Object(u.jsxs)(i.b,{to:"/admin/product/".concat(e._id,"/edit"),className:"group relative hover:bg-green-100 flex items-center justify-between px-2 py-2 text-sm font-medium leading-5 text-green-600 rounded-full transition ease-in-out duration-200 focus:outline-none focus:shadow-outline-gray","aria-label":"Delete",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),Object(u.jsx)("p",{className:"bg-red-100 invisible absolute top-0 -mt-7 right-0 -mr-6 group-hover:visible text-xs p-1 rounded-md",children:"Editer"})]}),Object(u.jsxs)("button",{onClick:function(){return t=String(e._id),void(window.confirm("Vous voulez vraiment supprim\xe9 ce produit ?")&&s(t));var t},className:"group relative hover:bg-red-100 flex items-center justify-between px-2 py-2 text-sm font-medium leading-5 text-red-600 rounded-full transition ease-in-out duration-200 focus:outline-none focus:shadow-outline-gray","aria-label":"Delete",children:[Object(u.jsx)("svg",{className:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:Object(u.jsx)("path",{strokeWidth:1,fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})}),Object(u.jsx)("p",{className:"bg-red-100 invisible absolute top-0 -mt-7 right-0 -mr-6 group-hover:visible text-xs p-1 rounded-md",children:"Supprimer"})]})]})})]},null===e||void 0===e?void 0:e._id)}))})]})}),Object(u.jsxs)("div",{className:"grid px-4 py-4 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("span",{className:"flex items-center col-span-3",children:"Montrant ".concat(r?"chargement...":null===c||void 0===c?void 0:c.length," sur ").concat(r?"loading...":null===c||void 0===c?void 0:c.length)}),Object(u.jsx)("span",{className:"col-span-2"}),Object(u.jsx)("span",{className:"flex col-span-4 mt-2 sm:mt-auto sm:justify-end"})]})]})]})})),ps=s(106),bs=s(56),hs=Object(l.b)((function(e){return{isLoadingUpdate:e.productUpdate.isLoading,updateSuccess:e.productUpdate.success,isLoadingEdit:e.product.isLoading,productEdit:e.product.productDetails}}),(function(e){return{onGetProductEditData:function(t){return e(He(t))},onUpdateProductData:function(t,s){return e(Ve(t,s))},onResetUpdatedProduct:function(){return e({type:k})}}}))((function(e){var t,s=Object(a.useState)({name:"",price:0,image:[],brand:"",category:"",countInStock:0,description:""}),r=Object(kt.a)(s,2),n=r[0],c=r[1],i=e.productEdit,l=e.isLoadingEdit,o=e.isLoadingUpdate,d=e.onGetProductEditData,m=e.onUpdateProductData,j=e.onResetUpdatedProduct,x=e.history,p=e.match,b=e.updateSuccess,h=Object(a.useState)(""),f=Object(kt.a)(h,2),g=f[0],v=(f[1],Object(a.useState)(!1)),O=Object(kt.a)(v,2),y=O[0],N=O[1],w=Object(a.useState)(0),S=Object(kt.a)(w,2),k=S[0],_=S[1],R=Object(a.useState)([]),C=Object(kt.a)(R,2),E=C[0],L=C[1],A=null===p||void 0===p||null===(t=p.params)||void 0===t?void 0:t.id,T=function(e){c(Object(Xe.a)(Object(Xe.a)({},n),{},Object(ps.a)({},e.target.name,e.target.value)))};Object(a.useEffect)((function(){b?(j(),x.goBack()):(null===i||void 0===i?void 0:i.name)&&(null===i||void 0===i?void 0:i._id)===A?c({name:String(i.name),image:i.image,price:Number(i.price),brand:String(i.brand),category:String(i.category),countInStock:Number(i.countInStock),description:String(i.description)}):d(A)}),[i,A,d,b,x,j]);var P=function(){var e=Object(Wt.a)(Ht.a.mark((function e(t){return Ht.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault();try{m(A,E?Object(Xe.a)(Object(Xe.a)({},n),{},{image:E}):n)}catch(s){console.log(s.message)}case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[l&&!n.name&&Object(u.jsx)(ft,{}),n.name&&!l&&Object(u.jsxs)(u.Fragment,{children:[Object(u.jsxs)("span",{onClick:function(){return x.goBack()},className:"cursor-pointer p-2 inline-flex items-center text-pink-500 hover:bg-pink-100 rounded-md font-semibold space-x-1",children:[Object(u.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Object(u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})}),Object(u.jsx)("span",{children:"Retour"})]}),Object(u.jsx)("div",{className:"h-full flex flex-col space-y-6 py-6 pb-16",children:Object(u.jsx)("div",{className:"max-w-7xl mx-auto relative px-4 sm:px-6 lg:px-8",children:Object(u.jsx)("div",{className:"py-8 border-t border-gray-200 w-full",children:Object(u.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[Object(u.jsx)("div",{className:"md:col-span-1",children:Object(u.jsxs)("div",{className:"px-4 sm:px-0",children:[Object(u.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Mettre \xe0 jour un Produit"}),Object(u.jsx)("p",{className:"mt-1 text-sm leading-5 text-gray-500",children:"Remplissez les informations du produit de tel sorte que les utilisateurs de la plateforme puissent clairement l'identifier."})]})}),Object(u.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:Object(u.jsx)("form",{onSubmit:P,children:Object(u.jsxs)("div",{className:"shadow rounded-md overflow-hidden",children:[Object(u.jsxs)("div",{className:"px-4 py-5 bg-white sm:p-6",children:[Object(u.jsxs)("div",{children:[Object(u.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Images de L'article"}),Object(u.jsxs)("div",{className:"w-full mt-2",children:[Object(u.jsx)("button",{onClick:function(){document.querySelector("#browse").click()},type:"button",className:"shadow-sm py-2 px-3 border border-gray-300 rounded-md text-sm leading-4 font-medium text-gray-700 hover:text-gray-500 hover:bg-gray-50 focus:outline-none focus:border-pink-200 focus:shadow-outline-pink active:bg-gray-50 active:text-gray-800 transition duration-150 ease-in-out",children:"Ajouter l'image de fond"}),Object(u.jsx)("div",{tabIndex:0,children:Object(u.jsx)("input",{type:"file",id:"browse",name:"postImage",accept:"image/png, image/jpeg, image/jpg, image/JPEG, image/JPG, image/PNG",value:g,onChange:function(e){var t=document.querySelector("#preview");[].forEach.call(e.target.files,(function(e){var s=new FileReader;s.readAsDataURL(e),s.onloadend=function(){L((function(e){return[].concat(Object(bs.a)(e),[String(null===s||void 0===s?void 0:s.result)])}))};var a=new Image;a.onload=function(){return(URL||webkitURL).revokeObjectURL(a.src)},a.className="h-44 shadow-md object-cover object-center",a.src=(URL||webkitURL).createObjectURL(e);var r=document.createElement("div");r.className="w-1/3 lg:w-1/4 px-2 flex flex-col mb-6",r.appendChild(a),null===t||void 0===t||t.appendChild(r)}))},multiple:!0,className:"hidden"})}),n.image&&n.image.length>0&&Object(u.jsxs)("div",{className:"max-w-lg mt-2 relative group",onClick:function(){return N(!0)},children:[Object(u.jsx)(Ut.a,{images:E.length>0?E:n.image,maxWidth:512}),Object(u.jsx)("div",{className:"group-hover:visible invisible cursor-pointer absolute inset-0 bg-black bg-opacity-40 text-center text-white font-bold text-lg flex justify-center items-center flex-col transition ease-in-out duration-150",children:"Voir un aper\xe7u"})]}),y&&Object(u.jsx)(Bt.a,{mainSrc:E.length>0?E[k]:n.image[k],nextSrc:E.length>0?E[(k+1)%E.length]:n.image[(k+1)%n.image.length],prevSrc:E.length>0?E[(k-1)%E.length]:n.image[(k-1)%n.image.length],onCloseRequest:function(){return N(!1)},onMovePrevRequest:E.length>0?function(){return _((function(e){return(e+E.length-1)%E.length}))}:function(){return _((function(e){return(e+n.image.length-1)%n.image.length}))},onMoveNextRequest:E.length>0?function(){return _((function(e){return(e+E.length+1)%E.length}))}:function(){return _((function(e){return(e+n.image.length+1)%n.image.length}))}})]})]}),Object(u.jsxs)("div",{className:"grid grid-cols-3 gap-6 mt-6",children:[Object(u.jsxs)("div",{className:"col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Nom du Produit"}),Object(u.jsx)("div",{className:"mt-2 rounded-md shadow-sm",children:Object(u.jsx)("input",{className:"form-input border border-gray-300 flex-1 block w-full focus:shadow-outline-pink focus:border-pink-200 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5",name:"name",type:"text",onChange:T,value:null===n||void 0===n?void 0:n.name,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-4 col-span-3",children:[Object(u.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Description du produit"}),Object(u.jsx)("div",{className:"mt-2 flex w-full rounded-md shadow-sm relative",children:Object(u.jsx)("textarea",{rows:3,className:"form-textarea border border-gray-300 flex-1 block w-full focus:shadow-outline-pink focus:border-pink-200 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5",autoComplete:"off",onChange:T,value:null===n||void 0===n?void 0:n.description,name:"description"})})]})]}),Object(u.jsxs)("div",{className:"mt-6",children:[Object(u.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Prix du produit"}),Object(u.jsx)("div",{className:"mt-2 rounded-md shadow-sm",children:Object(u.jsx)("input",{className:"form-input border border-gray-300 flex-1 block w-full focus:shadow-outline-pink focus:border-pink-200 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5",name:"price",type:"number",onChange:T,value:null===n||void 0===n?void 0:n.price,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-6",children:[Object(u.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Nombre en Stock"}),Object(u.jsx)("div",{className:"mt-2 rounded-md shadow-sm",children:Object(u.jsx)("input",{className:"form-input border border-gray-300 flex-1 block w-full focus:shadow-outline-pink focus:border-pink-200 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5",name:"countInStock",type:"number",onChange:T,value:null===n||void 0===n?void 0:n.countInStock,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-6",children:[Object(u.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Marque"}),Object(u.jsx)("div",{className:"mt-2 rounded-md shadow-sm",children:Object(u.jsx)("input",{className:"form-input border border-gray-300 flex-1 block w-full focus:shadow-outline-pink focus:border-pink-200 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5",name:"brand",type:"text",onChange:T,value:null===n||void 0===n?void 0:n.brand,autoComplete:"off"})})]}),Object(u.jsxs)("div",{className:"mt-6",children:[Object(u.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Cat\xe9gorie"}),Object(u.jsx)("div",{className:"mt-2 rounded-md shadow-sm",children:Object(u.jsx)("input",{className:"form-input border border-gray-300 flex-1 block w-full focus:shadow-outline-pink focus:border-pink-200 rounded-md transition duration-150 ease-in-out sm:text-sm sm:leading-5",name:"category",type:"text",onChange:T,value:null===n||void 0===n?void 0:n.category,autoComplete:"off"})})]})]}),Object(u.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-right sm:px-6",children:Object(u.jsx)("span",{className:"inline-flex rounded-md shadow-sm",children:Object(u.jsx)("button",{disabled:o,className:"px-4 py-2 font-medium leading-5 text-white transition-colors duration-150 bg-pink-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-pink-700 focus:outline-none focus:shadow-outline-purpleitems-center justify-center text-sm ".concat(o?"opacity-50 hover:opacity-50 cursor-not-allowed":""),type:"submit",children:o?Object(u.jsxs)("span",{className:"flex flex-row space-x-2 items-center",children:[Object(u.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",fill:"none",viewBox:"0 0 24 24",children:[Object(u.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(u.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Object(u.jsx)("span",{className:"text-white",children:"patientez..."})]}):Object(u.jsx)("span",{children:"Mettre \xe0 jour"})})})})]})})})]})})})})]})]})})),fs=Object(l.b)((function(e){return{isLoading:e.orderList.isLoading,orders:e.orderList.orders}}),(function(e){return{onGetOrdersList:function(){return e(pt())}}}))((function(e){var t=e.onGetOrdersList,s=e.orders,r=e.isLoading;return Object(a.useEffect)((function(){t()}),[t]),Object(u.jsxs)("div",{className:"animate__animated animate__fadeIn max-w-screen-xl mx-auto px-4 sm:px-6 py-16",children:[Object(u.jsx)("div",{className:"flex flex-row justify-between items-center",children:Object(u.jsx)("h4",{className:"mb-4 text-lg font-semibold tracking-wide text-gray-900 uppercase",children:"Liste des Commandes"})}),r&&Object(u.jsx)(ft,{}),Object(u.jsxs)("div",{className:"w-full overflow-hidden rounded-lg shadow-xs mt-6",children:[s&&(null===s||void 0===s?void 0:s.length)>0&&Object(u.jsx)("div",{className:"w-full overflow-x-auto",children:Object(u.jsxs)("table",{className:"w-full whitespace-no-wrap",children:[Object(u.jsx)("thead",{children:Object(u.jsxs)("tr",{className:"text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("th",{className:"px-4 py-3",children:"ID"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Commanditaire"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Pay\xe9"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Livr\xe9"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Date"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Montant total"}),Object(u.jsx)("th",{className:"px-4 py-3",children:"Action"})]})}),Object(u.jsx)("tbody",{className:"bg-white divide-y dark:divide-gray-700 dark:bg-gray-800",children:null===s||void 0===s?void 0:s.map((function(e){var t,s,a,r;return Object(u.jsxs)("tr",{className:"text-gray-700 dark:text-gray-400",children:[Object(u.jsx)("td",{className:"pl-2 pr-4 py-4 text-sm",children:Object(u.jsx)("p",{className:"text-sm text-gray-800 dark:text-gray-400 text-center",children:null===e||void 0===e?void 0:e._id})}),Object(u.jsx)("td",{className:"px-4 py-4",children:Object(u.jsxs)("div",{className:"flex items-center text-sm",children:[Object(u.jsxs)("div",{className:"relative hidden w-8 h-8 mr-3 rounded-md md:block",children:[Object(u.jsx)("img",{className:"object-cover w-full h-full rounded-md",src:null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.image,alt:null===e||void 0===e||null===(s=e.user)||void 0===s?void 0:s.name,loading:"lazy"}),Object(u.jsx)("div",{className:"absolute inset-0 rounded-full shadow-inner","aria-hidden":"true"})]}),Object(u.jsxs)("div",{children:[Object(u.jsx)("p",{className:"font-semibold",children:null===e||void 0===e||null===(a=e.user)||void 0===a?void 0:a.name}),Object(u.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 w-56 truncate",children:null===e||void 0===e||null===(r=e.user)||void 0===r?void 0:r.email})]})]})}),Object(u.jsx)("td",{className:"px-4 py-4 text-xs",children:Object(u.jsx)("span",{className:"px-2 py-1 font-semibold leading-tight rounded-full dark:bg-green-700 whitespace-nowrap ".concat((null===e||void 0===e?void 0:e.isPaid)?"text-green-500 bg-green-50 ":"text-red-600 bg-red-50  "," "),children:(null===e||void 0===e?void 0:e.isPaid)?It()(null===e||void 0===e?void 0:e.paidAt).locale("fr").format("ll"):"Non Pay\xe9"})}),Object(u.jsx)("td",{className:"px-4 py-4 text-xs",children:Object(u.jsx)("span",{className:"px-2 py-1 font-semibold leading-tight rounded-full dark:bg-green-700 whitespace-nowrap ".concat((null===e||void 0===e?void 0:e.isDelivered)?"text-green-600 bg-green-50 ":"text-red-600 bg-red-50  "," "),children:(null===e||void 0===e?void 0:e.isDelivered)?It()(null===e||void 0===e?void 0:e.deliveredAt).locale("fr").format("ll"):"Non Livr\xe9"})}),Object(u.jsx)("td",{className:"px-4 py-4 text-sm whitespace-nowrap",children:It()(null===e||void 0===e?void 0:e.createdAt).locale("fr").format("ll")}),Object(u.jsxs)("td",{className:"px-4 py-4 text-sm whitespace-nowrap font-semibold",children:[null===e||void 0===e?void 0:e.totalPrice.toFixed(2)," frs"]}),Object(u.jsx)("td",{className:"px-4 py-4",children:Object(u.jsx)("div",{className:"flex items-center space-x-4 text-sm",children:Object(u.jsx)(i.b,{to:"/order/".concat(e._id),className:"btn text-xs p-2",children:"Voir les details"})})})]},null===e||void 0===e?void 0:e._id)}))})]})}),Object(u.jsxs)("div",{className:"grid px-4 py-4 text-xs font-semibold tracking-wide text-gray-500 uppercase border-t dark:border-gray-700 bg-gray-50 sm:grid-cols-9 dark:text-gray-400 dark:bg-gray-800",children:[Object(u.jsx)("span",{className:"flex items-center col-span-3",children:"Montrant ".concat(r?"chargement...":null===s||void 0===s?void 0:s.length," sur ").concat(r?"loading...":null===s||void 0===s?void 0:s.length)}),Object(u.jsx)("span",{className:"col-span-2"}),Object(u.jsx)("span",{className:"flex col-span-4 mt-2 sm:mt-auto sm:justify-end"})]})]})]})})),gs=Object(m.g)(Object(l.b)((function(e){return{isAuthenticated:!!e.user.token,isAdmin:!(!e.user.userInfo||!e.user.userInfo.isAdmin),notifications:e.notif.notifications}}))((function(e){var t=e.location.search?e.location.search.split("=")[1]:"/",s=Object(u.jsxs)(m.d,{children:[Object(u.jsx)(m.b,{exact:!0,path:"/",component:St}),Object(u.jsx)(m.b,{exact:!0,path:"/products",component:Yt}),Object(u.jsx)(m.b,{path:"/product/:id",component:Jt}),Object(u.jsx)(m.b,{path:"/cart/:id?",component:Xt}),Object(u.jsx)(m.b,{exact:!0,path:"/order/:id",component:ms}),Object(u.jsx)(m.b,{exact:!0,path:"/login",component:ts,children:e.isAuthenticated?Object(u.jsx)(m.a,{to:t}):null}),Object(u.jsx)(m.b,{exact:!0,path:"/register",component:ss,children:e.isAuthenticated?Object(u.jsx)(m.a,{to:t}):null}),Object(u.jsx)(m.b,{exact:!0,path:"/shipping",component:ns,children:e.isAuthenticated?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/payment",component:ls,children:e.isAuthenticated?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/placeorder",component:os,children:e.isAuthenticated?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{path:"/profile",component:as,children:e.isAuthenticated?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/admin/products",component:xs,children:e.isAuthenticated&&e.isAdmin?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/admin/product/:id/edit",component:hs,children:e.isAuthenticated&&e.isAdmin?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/admin/users",component:us,children:e.isAuthenticated&&e.isAdmin?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/admin/user/:id/edit",component:js,children:e.isAuthenticated&&e.isAdmin?null:Object(u.jsx)(m.a,{to:"/login"})}),Object(u.jsx)(m.b,{exact:!0,path:"/admin/orders",component:fs,children:e.isAuthenticated&&e.isAdmin?null:Object(u.jsx)(m.a,{to:"/login"})})]});return Object(u.jsxs)(Pt,{children:[e.notifications.length>0?Object(u.jsx)(Qt,{}):null,s]})}))),vs=function(e,t){return Object(Xe.a)(Object(Xe.a)({},e),t)},Os=s(440),ys={notifications:[]},Ns=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ys,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case U:return vs(e,{notifications:[].concat(Object(bs.a)(e.notifications),[{id:Object(Os.a)(),type:t.payload.type,msg:t.payload.msg}])});case B:return vs(e,{notifications:e.notifications.filter((function(e){return e.id!==t.payload.id}))});default:return e}},ws={isLoading:!1,error:!1,successDelete:!1,products:[],isSearch:!1,productsSearch:[],productDetails:null},Ss=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ws,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case p:return vs(t,{isLoading:!0});case h:return vs(t,{isLoading:!1,products:s.payload.products});case f:return vs(t,{isLoading:!1,productDetails:s.payload.product});case b:return vs(t,{isLoading:!1,error:!0});case v:return vs(t,{isSearch:!0});case y:var a=new RegExp("".concat(s.payload.productSearch),"gi");return console.log(s.payload.productSearch),vs(t,{productsSearch:t.products.filter((function(e){return(null===e||void 0===e?void 0:e.name.match(a))||(null===e||void 0===e?void 0:e.description.match(a))}))});case O:return vs(t,{productsSearch:[],isSearch:!1});case g:return vs(t,{users:null===(e=t.products)||void 0===e?void 0:e.filter((function(e){return(null===e||void 0===e?void 0:e._id)!==s.payload.productId})),successDelete:!0});default:return t}},ks={cartItems:localStorage.getItem("cartItems")?JSON.parse(String(localStorage.getItem("cartItems"))):[],shippingAddress:localStorage.getItem("shippingAddress")?JSON.parse(String(localStorage.getItem("shippingAddress"))):{},paymentMethod:localStorage.getItem("paymentMethod")?JSON.parse(String(localStorage.getItem("paymentMethod"))):{}},_s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ks,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case H:var s=t.payload.cartItem,a=e.cartItems.find((function(e){return e.product===s.product}));return vs(e,a?{cartItems:e.cartItems.map((function(e){return e.product===(null===a||void 0===a?void 0:a.product)?s:e}))}:{cartItems:[].concat(Object(bs.a)(e.cartItems),[s])});case z:return vs(e,{cartItems:e.cartItems.filter((function(e){return e.product!==t.payload.cartItem.product}))});case F:return vs(e,{cartItems:[]});case W:return vs(e,{shippingAddress:t.payload.shippingAddress});case Z:return vs(e,{paymentMethod:t.payload.paymentMethod});default:return e}},Rs=localStorage.getItem("userInfo")?JSON.parse(String(localStorage.getItem("userInfo"))):null,Cs=localStorage.getItem("token")?localStorage.getItem("token"):"",Es={isLoading:!1,error:!1,userInfo:Rs,token:String(Cs),userDetails:null},Ls=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Es,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case V:return vs(e,{isLoading:!0});case G:return vs(e,{isLoading:!1,userInfo:t.payload.userInfo,token:t.payload.token});case ee:return vs(e,{isLoading:!1,userInfo:null,token:"",error:!1,userDetails:null});case K:return vs(e,{isLoading:!1,error:!0});case q:return vs(e,{isLoading:!1,userInfo:null,token:null});case J:return vs(e,{isLoading:!0});case Y:return vs(e,{isLoading:!1,error:!0});case me:return vs(e,{isLoading:!0});case xe:return vs(e,{isLoading:!1,userDetails:null});case je:return vs(e,{isLoading:!1,userDetails:Object(Xe.a)(Object(Xe.a)({},e.userDetails),t.payload.userDetails),userInfo:Object(Xe.a)(Object(Xe.a)({},e.userInfo),t.payload.userDetails)});case ue:return vs(e,{isLoading:!1,error:!0});case Q:return vs(e,{isLoading:!0});case $:return vs(e,{isLoading:!1,userDetails:t.payload.userDetails});case X:return vs(e,{isLoading:!1,error:!0});default:return e}},As={isLoading:!1,error:!1,orderItem:{},success:!1,orderDetails:{}},Ts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:As,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pe:return vs(e,{isLoading:!0});case he:return vs(e,{isLoading:!1,orderItem:t.payload.orderItem,success:!0});case fe:return vs(e,{isLoading:!1,orderDetails:t.payload.orderDetails});case be:return vs(e,{isLoading:!1,error:!0,success:!1});default:return e}},Ps={isLoading:!1,error:!1,success:!1},Ds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ps,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ye:return vs(e,{isLoading:!0});case we:return vs(e,{isLoading:!1,success:!0});case Se:return vs(e,{isLoading:!1,error:!1,success:!1});case Ne:return vs(e,{isLoading:!1,error:!0,success:!1});default:return e}},Is={isLoading:!1,error:!1,userOrders:[],success:!1},Ms=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Is,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ee:return vs(e,{isLoading:!0});case Ae:return vs(e,{isLoading:!1,userOrders:Object(bs.a)(t.payload.userOrders),success:!0});case Te:return vs(e,{isLoading:!1,userOrders:[]});case Le:return vs(e,{isLoading:!1,error:!0,success:!1});default:return e}},Us={users:[],isLoading:!1,error:!1,successDelete:!1},Bs=function(){var e,t,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Us,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case te:return vs(s,{isLoading:!0});case ae:return vs(s,{isLoading:!1,users:null===a||void 0===a||null===(e=a.payload)||void 0===e?void 0:e.userList});case se:return vs(s,{isLoading:!1,error:!0});case re:return vs(s,{users:null===(t=s.users)||void 0===t?void 0:t.filter((function(e){return(null===e||void 0===e?void 0:e._id)!==a.payload.userId})),successDelete:!0});default:return s}},zs={isLoading:!1,error:!1,userEdit:null},Fs=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zs,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case ne:return vs(t,{isLoading:!0});case ie:return vs(t,{userEdit:null===s||void 0===s||null===(e=s.payload)||void 0===e?void 0:e.userEdit,isLoading:!1});case ce:return vs(t,{isLoading:!1});default:return t}},Hs={isLoading:!1,error:!1,success:!1},Ws=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hs,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:return vs(e,{isLoading:!0});case de:return vs(e,{isLoading:!1,success:!0});case oe:return vs(e,{isLoading:!1});default:return e}},Zs={isLoading:!1,error:!1,success:!1,product:null},Vs=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zs,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case E:return vs(t,{isLoading:!0});case A:return vs(t,{product:null===s||void 0===s||null===(e=s.payload)||void 0===e?void 0:e.createdProduct,isLoading:!1,success:!0});case L:return vs(t,{isLoading:!1});case T:return vs(t,{isLoading:!1,error:!1,success:!1,product:null});default:return t}},Ks={isLoading:!1,error:!1,success:!1},Gs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ks,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case N:return vs(e,{isLoading:!0});case S:return vs(e,{isLoading:!1,success:!0});case k:return vs(e,{isLoading:!1,error:!1,success:!1});case w:return vs(e,{isLoading:!1});default:return e}},qs={orders:[],isLoading:!1,error:!1},Js=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qs,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case ge:return vs(t,{isLoading:!0});case Oe:return vs(t,{isLoading:!1,orders:null===s||void 0===s||null===(e=s.payload)||void 0===e?void 0:e.orders});case ve:return vs(t,{isLoading:!1,error:!0});default:return t}},Ys={isLoading:!1,error:!1,success:!1},Qs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ys,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ke:return vs(e,{isLoading:!0});case Re:return vs(e,{isLoading:!1,success:!0});case Ce:return vs(e,{isLoading:!1,error:!1,success:!1});case _e:return vs(e,{isLoading:!1,error:!0,success:!1});default:return e}},Xs={isLoading:!1,error:!1,success:!1,product:null},$s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xs,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case D:return vs(t,{isLoading:!0});case I:return vs(t,{review:null===s||void 0===s||null===(e=s.payload)||void 0===e?void 0:e.createdReview,isLoading:!1,success:!0});case P:return vs(t,{isLoading:!1,success:!1});case M:return vs(t,{isLoading:!1,error:!1,success:!1,review:null});default:return t}},ea={isLoading:!1,error:!1,success:!1,topProducts:[]},ta=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ea,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case _:return vs(t,{isLoading:!0});case C:return vs(t,{topProducts:null===s||void 0===s||null===(e=s.payload)||void 0===e?void 0:e.products,isLoading:!1,success:!0});case R:return vs(t,{isLoading:!1,error:!0,success:!1});default:return t}},sa=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||o.d,aa=Object(o.c)({product:Ss,notif:Ns,cart:_s,user:Ls,order:Ts,orderPay:Ds,userOrders:Ms,userList:Bs,userUpdate:Ws,userEdit:Fs,productCreate:Vs,productUpdate:Gs,orderList:Js,orderDeliver:Qs,productCreateReview:$s,productRatingTop:ta}),ra=Object(o.e)(aa,sa(Object(o.a)(d.a))),na=Object(u.jsx)(l.a,{store:ra,children:Object(u.jsx)(i.a,{children:Object(u.jsx)(gs,{})})});c.a.render(na,document.getElementById("root"))}},[[427,1,2]]]);
  //# sourceMappingURL=main.83d18aa1.chunk.js.map