(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{85526:function(e,t,l){Promise.resolve().then(l.bind(l,83598))},39139:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,l(87461).Z)("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z",key:"16vlm8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]])},83598:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return Q}});var s=l(3827),a=l(22169),r=l(20703);l(86978),l(54244);var n=l(49675),i=l(48344),c=l(87461);/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,c.Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),d=(0,c.Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var u=l(8792),h=l(64090),x=l(99859);l(87644);var m=e=>{let{categories:t}=e,[l,a]=(0,h.useState)(null),[r,c]=(0,h.useState)(null);return(0,s.jsx)("div",{className:"relative w-full py-2 mt-2 flex justify-center items-center",children:t.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.tq,{loop:!0,className:"w-full h-full px-10",slidesPerView:10,centeredSlides:!0,centeredSlidesBounds:!0,modules:[n.W_],navigation:{prevEl:r,nextEl:l,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden"},spaceBetween:10,breakpoints:{320:{slidesPerView:3},480:{slidesPerView:4},640:{slidesPerView:5},740:{slidesPerView:5},840:{slidesPerView:6},940:{slidesPerView:6},1040:{slidesPerView:7}},children:t.map((e,t)=>(0,s.jsx)(i.o5,{children:(0,s.jsx)(x.pT,{className:"w-auto rounded-full text-theme px-3 py-2 border border-theme hover:bg-black hover:text-white dark:bg-white dark:hover:bg-white dark:hover:text-black hover:border-none flex justify-center items-center duration-500",children:(0,s.jsx)(u.default,{title:e.nom,href:"/annonces?categorie=".concat(e.id),className:"w-full",children:(0,s.jsx)("h3",{className:"font-bold w-full text-center truncate",children:e.nom})})})},t))}),(0,s.jsx)("button",{ref:e=>c(e),className:"absolute left-0 bg-theme dark:hover:bg-white dark:hover:text-theme hover:bg-black rounded-full text-white p-2 z-20",children:(0,s.jsx)(o,{className:"w-6 h-6"})}),(0,s.jsx)("button",{ref:e=>a(e),className:"absolute right-0 bg-theme dark:hover:bg-white dark:hover:text-theme hover:bg-black rounded-full text-white p-2 z-20",children:(0,s.jsx)(d,{className:"w-6 h-6"})})]}):(0,s.jsx)("h4",{children:"Pas de categorie disponible pour le moment!"})})},f=l(32716),p=e=>{let{categories:t,settings:l}=e;return(0,s.jsxs)("div",{className:"w-full lg:w-3/4 flex flex-col gap-y-2 justify-center items-center",children:[(0,s.jsxs)("div",{className:"relative w-full h-full flex flex-col border-b-4 border-b-theme mx-auto rounded-lg bg-black p-0 dark:border dark:border-white dark:border-solid shadow-lg",children:[l.app.banner.length>0?(0,s.jsx)("div",{className:"absolute w-full h-full z-0 p-0",children:(0,s.jsx)(i.tq,{modules:[n.pt,n.xW],autoplay:!0,centeredSlides:!0,loop:!0,slidesPerView:1,speed:2e3,className:"w-full h-full",effect:"fade",fadeEffect:{crossFade:!0},children:l.app.banner.map((e,t)=>(0,s.jsx)(i.o5,{children:(0,s.jsx)(r.default,{alt:"banner-".concat(t),src:(0,a.bJ)(e),className:"opacity-80 w-full h-full rounded-lg ".concat("/logo/logo.png"==(0,a.bJ)(e)?"object-contain":"bg-cover"),fill:!0},t)},t))})}):(0,s.jsx)(r.default,{alt:"banner",objectFit:"cover",src:"/images/banner.jpg",className:"opacity-50 object-cover w-full h-full rounded-lg",fill:!0}),(0,s.jsx)("div",{className:"relative h-[300px] lg:h-[500px] w-full mx-auto z-10 p-5 text-white",children:(0,s.jsx)("div",{className:"h-full flex flex-col justify-center items-center",children:(0,s.jsx)("div",{className:"w-full flex items-center justify-center flex-col gap-3 my-4",children:"<p></p>"!=l.app.banner_text||"<p></p>"!=l.app.banner_description?(0,s.jsxs)("div",{className:"w-full",children:["<p></p>"!=l.app.banner_text&&(0,s.jsx)("h1",{className:"text-5xl font-light text-center",children:(0,s.jsx)(f.Z,{content:l.app.banner_text,editable:!1,onChange:()=>{}})}),"<p></p>"!=l.app.banner_description&&(0,s.jsx)("h2",{className:"text-xl font-light text-center my-4",children:(0,s.jsx)(f.Z,{content:l.app.banner_description,editable:!1,onChange:()=>{}})})]}):(0,s.jsx)(s.Fragment,{})})})})]}),(0,s.jsx)(m,{categories:t})]})},g=l(53370),j=l(28670),v=l(39139);/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let b=(0,c.Z)("Wallet2",[["path",{d:"M17 14h.01",key:"7oqj8z"}],["path",{d:"M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14",key:"u1rqew"}]]),w=e=>{let{align:t="center",title:l,description:a,children:r}=e;return(0,s.jsxs)("section",{className:"w-full lg:w-3/4 flex flex-col justify-center items-center mb-4 mx-5",children:[l&&(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center ".concat("center"===t?"items-center":"left"==t?"items-center lg:items-start":"items-center lg:items-end"," "),children:[(0,s.jsx)("h2",{className:"text-3xl font-bold text-left",children:l}),(0,s.jsx)("hr",{className:"w-[100px] h-1 bg-theme text-center rounded my-2"}),a&&(0,s.jsx)("div",{className:"mb-5",children:a})]}),r]})},y=e=>{let{title:t,description:l,children1:a,children2:r}=e;return(0,s.jsxs)("section",{className:"w-full lg:w-3/4 flex flex-col lg:flex-row lg:justify-between lg:items-start my-5 gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col flex-1 justify-center items-center",children:[t&&(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center my-2",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold text-left",children:t}),(0,s.jsx)("hr",{className:"w-[100px] h-1 bg-theme text-center rounded my-2"}),l&&(0,s.jsx)("div",{className:"mb-5",children:l})]}),a]}),r&&(0,s.jsx)("div",{className:"flex flex-1 justify-center items-center",children:r})]})};var N=()=>{let e=[{icon:(0,s.jsx)(j.Z,{className:"w-20 h-20 text-white"}),title:"Recherche",description:"Selectionnez la cat\xe9gorie et trouve les prestataire autour de chez vous."},{icon:(0,s.jsx)(v.Z,{className:"w-20 h-20 text-white"}),title:"Messagerie",description:"Discutez avec les prestaires par message via notre plateforme."},{icon:(0,s.jsx)(b,{className:"w-20 h-20 text-white"}),title:"Paiement",description:"Payez en toute securit\xe9"}];return(0,s.jsx)(w,{title:"Comment \xe7a marche ?",description:"D\xe9couvrez en quelques clics les meilleurs prestataires autour de chez toi.",children:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"w-full flex flex-col lg:flex-row justify-evenly items-center gap-x-2 gap-y-10 my-5",children:(0,s.jsx)(x.pT,{children:e.map((e,t)=>{let{icon:l,title:a,description:r}=e;return(0,s.jsxs)("div",{className:"group relative w-full lg:w-[250px] lg:h-[350px] h-auto rounded hover:border hover:border-black dark:hover:border-white shadow-lg p-5 hover:shadow-lg transition-all cursor-pointer flex flex-col justify-start items-start",children:[(0,s.jsx)("span",{className:"absolute group-hover:bg-theme dark:group-hover:bg-theme group-hover:text-white dark:group-hover:text-white -top-5 left-0 rounded-full flex justify-center items-center font-bold shadow-lg p-4 w-10 h-10 bg-black dark:bg-white dark:text-theme text-white",children:t+1}),(0,s.jsx)("div",{className:"bg-black group-hover:bg-theme p-5 rounded-full shadow-lg my-3",children:l}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl text-theme font-bold",children:a}),(0,s.jsx)("p",{children:r})]})]},t)})})})})})},k=l(77033),z=l(65111);/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let q=(0,c.Z)("ArrowRightCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]),C=(0,c.Z)("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12v0c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"bpx1uq"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11v0c-.11.7-.72 1.22-1.43 1.22H17",key:"1pd0s7"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98v0C9.52 4.9 9 5.52 9 6.23V7",key:"zq5xbz"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);var Z=()=>{let e=(0,k.I0)();return(0,s.jsx)("div",{className:"w-full lg:w-3/4 flex flex-col justify-center items-center bg-black text-white rounded p-5 border-b-8 border-theme mx-auto",children:(0,s.jsx)(x.pT,{className:"w-full",children:(0,s.jsxs)("div",{className:"w-full flex flex-col lg:flex-row  lg:justify-between lg:items-center my-5 z-10",children:[(0,s.jsxs)("div",{className:"flex flex-col flex-1 justify-center items-start",children:[(0,s.jsx)("div",{className:"flex flex-1 flex-col justify-center my-2",children:(0,s.jsx)("h2",{className:"text-3xl font-bold my-4 text-left",children:"Vous \xeates prestataire ?"})}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col justify-start items-start gap-5",children:[(0,s.jsx)("h3",{className:"text-xl",children:"MesPresta sera votre partenaire d'activit\xe9. Il vous permettra d'avoir une meilleure visibilit\xe9 d\xe8s le lancement de votre activit\xe9, et par cons\xe9quent l'augmentation nette de votre chiffre d'affaires.L'atteinte de vos objectifs ne sera plus un tracas..."}),(0,s.jsx)("div",{className:"flex justify-start items-center",children:(0,s.jsxs)("button",{onClick:t=>{e((0,z.IO)())},title:"voir toutes les annonces",className:"h-12 bg-theme py-2 px-6 group hover:px-3 text-white hover:bg-white hover:text-theme rounded-full flex justify-between gap-2 items-center duration-500",children:["Je veux poster une annonce",(0,s.jsx)(q,{className:"w-6 h-6 hidden group-hover:block"})]})})]})]}),(0,s.jsx)("div",{className:"hidden lg:flex flex-1 justify-end items-end",children:(0,s.jsx)("div",{className:"w-full h-full flex justify-end items-end",children:(0,s.jsx)(C,{className:"w-52 h-52 text-white"})})})]})})})},P=l(25062),E=l(80959),V=e=>{let{settings:t}=e;return(0,s.jsx)(x.pT,{className:"w-full h-[500px] p-4 flex flex-col justify-start items-start bg-theme/10 rounded mx-auto overflow-clip",children:(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center items-center p-3 mx-auto gap-5",children:[(0,s.jsx)("h3",{className:"text-4xl font-bold text-center",children:"T\xe9l\xe9charger notre application"}),(0,s.jsx)("p",{className:"text-center my-3",children:"Acc\xe9dez facilement \xe0 nos services o\xf9 que vous soyez en t\xe9l\xe9chargeant notre application mobile."}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row gap-3",children:[(0,s.jsx)(u.default,{href:t.app.stores.google||"",target:"_blank",className:"hover:scale-105 transition-all",children:(0,s.jsx)(r.default,{src:"/images/play-store.webp",alt:"google-play-store",width:150,height:50,title:"T\xe9l\xe9charger sur Google play store"})}),(0,s.jsx)(u.default,{href:t.app.stores.apple||"",target:"_blank",className:"hover:scale-105 transition-all",children:(0,s.jsx)(r.default,{src:"/images/apple-store.png",alt:"google-play-store",width:150,height:50,title:"T\xe9l\xe9charger sur Apple store"})})]}),(0,s.jsx)("div",{className:"relative w-full justify-center items-center hidden sm:flex sm:-mt-5 mt-10",children:(0,s.jsx)(r.default,{src:"/images/phone.png",alt:"phone",width:350,height:100,className:"mx-auto mt-4"})})]})})};/**
 * @license lucide-react v0.338.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let _=(0,c.Z)("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var M=l(39701),S=()=>(0,s.jsx)(y,{title:"De quel service avez-vous besoin ?",description:"Dites nous en plus sur vos besoins afin que nous puissions vous mettre en relation avec le bon prestataire de services.",children2:(0,s.jsx)(x.pT,{className:"w-full h-full flex justify-center items-start",children:(0,s.jsxs)("div",{className:"w-full bg-white dark:bg-black dark:border dark:border-theme rounded-xl shadow-lg flex flex-col gap-3 p-5",children:[(0,s.jsx)(_,{className:"w-20 h-20 text-theme"}),(0,s.jsx)("h3",{className:"text-2xl font-bold",children:"Besoin d'un prestataire specifique, contactez nous !"}),(0,s.jsx)(M.default,{})]})})}),T=l(76862),A=e=>{let{service:t,className:l="w-full"}=e,n=(0,k.v9)(e=>e.user);return(0,s.jsx)(x.pT,{className:(0,a.cn)("relative h-[350px] rounded border border-theme overflow-hidden grow",l),children:(0,s.jsxs)(u.default,{href:"/annonces/".concat(t.id),children:[t.gallerie.length>0?(0,s.jsx)(r.default,{alt:(0,k.XK)(t.name),src:(0,a.bJ)(t.gallerie[0]),fill:!0,className:"w-full h-full object-cover transition-all duration-500 ease-in-out transform hover:scale-105"}):(0,s.jsx)(r.default,{alt:(0,k.XK)(t.name),src:"/logo/logo.png",fill:!0,className:"w-full h-full object-contain transition-all duration-500 ease-in-out transform hover:scale-105"}),t.reviews.length>0&&(0,s.jsx)("div",{className:"absolute top-2 right-2",children:(0,s.jsx)("div",{className:"w-32 rounded-full bg-theme flex justify-center items-center text-white border border-white py-1 px-2 shadow",children:"".concat(t.reviews.length," avis")})}),""!=n.user.id&&(0,s.jsx)("div",{className:"absolute top-2 left-2",children:(0,s.jsx)(T.Z,{service:t})}),(0,s.jsx)("div",{className:"absolute bottom-5 left-2 right-2 px-3 py-2 bg-theme/90 rounded",children:(0,s.jsx)("div",{className:"flex flex-col gap-2",children:(0,s.jsx)("h4",{className:"w-52 capitalize text-white font-bold text-lg truncate",children:t.name})})})]})})},F=l(27043),L=l(11888),I=l(54767),D=l(75523),K=l(99583),H=()=>{var e,t;let{data:l,isLoading:a}=(0,D.rV)(),{data:n,isLoading:i}=(0,L.Su)(20),{data:c,isLoading:o}=(0,I.qP)(0),d=(0,k.I0)(),{getLocalisation:x,locationData:m}=(0,F.Z)();return((0,h.useEffect)(()=>{x()},[]),(0,h.useEffect)(()=>{m&&d((0,K.l6)(m))},[m]),i||o||a)?(0,s.jsx)(E.Z,{}):(0,s.jsx)(P.default,{children:(0,s.jsxs)("div",{className:"w-full h-auto flex flex-col items-center justify-center gap-4 mb-5 mx-auto p-5 pt-0",children:[c&&l&&(0,s.jsx)(p,{categories:c.data,settings:l.data[0]}),(0,s.jsx)(w,{title:"Les Cat\xe9gories",description:"D\xe9couvrez comment nos annonces peuvent r\xe9pondre \xe0 vos besoins sp\xe9cifiques et vous aider \xe0 atteindre vos objectifs !",align:"left",children:(0,s.jsx)(s.Fragment,{children:c&&(null==c?void 0:null===(e=c.data)||void 0===e?void 0:e.length)>0?(0,s.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"w-full flex flex-row flex-wrap gap-4 justify-start items-start mx-auto",children:c.data.slice(0,12).map((e,t)=>(0,s.jsx)(g.Z,{categorie:e,className:"w-[280px]"},t))}),c.data.length>8&&(0,s.jsx)("div",{className:"w-full flex justify-start items-center",children:(0,s.jsxs)(u.default,{href:"/categories",title:"voir toutes les categories",className:"h-12 w-full sm:w-auto lg:text-start bg-black dark:bg-white py-2 px-6 group hover:px-9 text-white dark:text-black hover:bg-theme rounded-full  flex justify-between gap-2 items-center duration-500",children:["Voir toutes les categories",(0,s.jsx)(q,{className:"w-6 h-6 hidden group-hover:block"})]})})]}):(0,s.jsx)("div",{className:"w-full flex justify-center items-center p-3",children:(0,s.jsx)("h3",{children:"Pas de categorie disponibles pour le moment."})})})}),(0,s.jsx)(w,{align:"left",title:"Les annonces populaires",description:"Explorez nos annonces les plus appr\xe9ci\xe9s qui r\xe9pondent \xe0 vos besoins.",children:(0,s.jsx)(s.Fragment,{children:n&&(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.length)>0?(0,s.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"w-full flex flex-row flex-wrap gap-4 justify-start items-start mx-auto",children:n.data.slice(0,12).map((e,t)=>(0,s.jsx)(A,{service:e,className:"w-[280px]"},t))}),n.data.length>8&&(0,s.jsx)("div",{className:"w-full flex justify-start items-center",children:(0,s.jsxs)(u.default,{href:"/annonces",title:"voir toutes les annonces",className:"h-12 w-full sm:w-auto lg:text-start bg-black dark:bg-white py-2 px-6 group hover:px-9 text-white dark:text-black hover:bg-theme rounded-full  flex justify-between gap-2 items-center duration-500",children:["Voir toutes les annonces",(0,s.jsx)(q,{className:"w-6 h-6 hidden group-hover:block"})]})})]}):(0,s.jsx)("div",{className:"w-full flex justify-center items-center p-3",children:(0,s.jsx)("h3",{children:"Pas d'annonce disponibles pour le moment."})})})}),(0,s.jsx)(w,{align:"right",title:"Qui sommes nous ???",children:(0,s.jsx)("div",{className:"w-full flex flex-col gap-4",children:(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center items-center lg:flex-row lg:justify-start lg:items-center",children:[(0,s.jsx)("div",{className:"relative w-full lg:w-1/3 h-full flex justify-center items-center",children:(0,s.jsx)(r.default,{src:"/logo/favicon.png",alt:"",width:200,height:100})}),(0,s.jsxs)("div",{className:"w-full h-full lg:w-2/3 flex-1 flex flex-col justify-center items-center lg:justify-end lg:items-end gap-2",children:[(null==l?void 0:l.data[0].pages.about_us)&&(0,s.jsx)("div",{className:"text-xl flex-1 flex text-justify",children:(0,s.jsx)(f.Z,{content:(0,k.XK)(null==l?void 0:l.data[0].pages.about_us,600),editable:!1,onChange:()=>{}})}),(0,s.jsxs)(u.default,{href:"/qui-sommes-nous",title:"En savoir plus",className:"h-12 w-full sm:w-auto lg:text-start bg-black dark:bg-white py-2 px-6 group hover:px-9 text-white dark:text-black hover:bg-theme rounded-full  flex justify-between gap-2 items-center duration-500",children:["En savoir plus",(0,s.jsx)(q,{className:"w-6 h-6 hidden group-hover:block"})]})]})]})})}),(0,s.jsx)(N,{}),l&&(0,s.jsx)(V,{settings:null==l?void 0:l.data[0]}),(0,s.jsx)(S,{}),(0,s.jsx)(Z,{})]})})},O=l(36962),J=l(16e3),Q=()=>{let{isAuthenticated:e}=(0,J.useAuth)();return e?(0,s.jsx)(H,{}):(0,s.jsx)(O.Z,{})}},53370:function(e,t,l){"use strict";var s=l(3827),a=l(22169),r=l(20703),n=l(8792),i=l(99859);t.Z=e=>{let{categorie:t,className:l="w-full"}=e;return(0,s.jsx)(i.pT,{className:(0,a.cn)("relative h-[350px] rounded overflow-hidden border border-theme grow",l),children:(0,s.jsxs)(n.default,{href:"/annonces?categorie=".concat(t.id),children:[t.cover?(0,s.jsx)(r.default,{alt:t.nom,src:(0,a.bJ)(t.cover),fill:!0,className:"w-full h-full object-cover transition-all duration-500 ease-in-out transform hover:scale-105"}):(0,s.jsx)(r.default,{alt:t.nom,src:"/logo/logo.png",fill:!0,className:"w-full h-full object-contain transition-all duration-500 ease-in-out transform hover:scale-105"}),(0,s.jsx)("div",{className:"absolute bottom-5 left-2 right-2 px-3 py-2 bg-theme/90 rounded",children:(0,s.jsx)("div",{className:"flex flex-col gap-2",children:(0,s.jsx)("h4",{className:"w-full capitalize text-white font-bold text-lg truncate",children:t.nom})})}),(0,s.jsx)("div",{className:"absolute top-2 right-2 flex justify-center items-center",children:(0,s.jsx)("div",{className:"rounded-full bg-theme text-white border border-white py-1 px-3 shadow",children:"".concat(+t.total>1?"".concat(t.total," Annonces"):"".concat(t.total," Annonce"))})})]})})}},39701:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return h}});var s=l(3827),a=l(77033),r=l(3537),n=l(64090),i=l(10963),c=l(72027),o=l(21921),d=e=>{let{setVerified:t}=e;return(0,s.jsx)(o.Z,{size:"invisible",sitekey:c.Ql,onChange:async e=>{try{let l=await (0,a.V$)(e);t(l)}catch(e){t(!1)}}})},u=l(85083),h=()=>{let[e,t]=(0,n.useState)(!1),l=(0,r.TA)({initialValues:{nom:"",prenom:"",email:"",tel:"",object:"",message:""},validate(e){let t={};return e.nom||(t.nom="Nom r\xe9quis"),e.prenom||(t.prenom="Prenom r\xe9quis"),e.email||(t.email="Email r\xe9quis"),e.tel||(t.tel="T\xe9l\xe9phone r\xe9quis"),e.object||(t.object="Object r\xe9quis"),e.message||(t.message="Message r\xe9quis"),t},async onSubmit(e,t){let{nom:l,prenom:s,email:r,tel:n,object:c,message:o}=e,{setSubmitting:d,resetForm:u}=t;d(!0);try{let e=await a.X9.post("/contact",{fullname:"".concat(s," ").concat(l),email:r,tel:n,object:c,message:o});200==e.status?i.default.success("Message envoy\xe9 avec avec succ\xe9es."):i.default.error("Envoie echou\xe9, veuillez ressayer!"),u()}catch(e){i.default.error(e.response.data.message)}finally{d(!1)}}});return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("form",{onSubmit:l.handleSubmit,className:"w-full",children:[(0,s.jsxs)("div",{className:"w-full mb-3",children:[(0,s.jsx)("input",{className:"w-full border border-black outline-none p-3 rounded",type:"text",name:"nom",onChange:l.handleChange,value:l.values.nom,id:"nom",placeholder:"Entrez votre nom"}),l.errors.nom&&l.touched.nom?(0,s.jsx)("div",{className:"text-red-500 my-2",children:l.errors.nom}):null]}),(0,s.jsxs)("div",{className:"w-full mb-3",children:[(0,s.jsx)("input",{className:"w-full border border-black outline-none p-3 rounded",type:"text",name:"prenom",id:"prenom",onChange:l.handleChange,value:l.values.prenom,placeholder:"Entrez votre prenom"}),l.errors.prenom&&l.touched.prenom?(0,s.jsx)("div",{className:"text-red-500 my-2",children:l.errors.prenom}):null]}),(0,s.jsxs)("div",{className:"w-full mb-3",children:[(0,s.jsx)("input",{className:"w-full border border-black outline-none p-3 rounded",type:"email",name:"email",id:"email",onChange:l.handleChange,value:l.values.email,placeholder:"Entrez votre email"}),l.errors.email&&l.touched.email?(0,s.jsx)("div",{className:"text-red-500 my-2",children:l.errors.email}):null]}),(0,s.jsxs)("div",{className:"w-full mb-3",children:[(0,s.jsx)("input",{className:"w-full border border-black outline-none p-3 rounded",type:"text",name:"tel",onChange:l.handleChange,value:l.values.tel,id:"tel",placeholder:"Entrez votre num\xe9ro de t\xe9l\xe9phone"}),l.errors.tel&&l.touched.tel?(0,s.jsx)("div",{className:"text-red-500 my-2",children:l.errors.tel}):null]}),(0,s.jsxs)("div",{className:"w-full mb-3",children:[(0,s.jsx)("input",{className:"w-full border border-black outline-none p-3 rounded",type:"text",name:"object",onChange:l.handleChange,value:l.values.object,id:"object",placeholder:"Entrez l'objet du message"}),l.errors.object&&l.touched.object?(0,s.jsx)("div",{className:"text-red-500 my-2",children:l.errors.object}):null]}),(0,s.jsxs)("div",{className:"w-full mb-3",children:[(0,s.jsx)("textarea",{className:"w-full border border-black outline-none p-3 rounded",name:"message",onChange:l.handleChange,value:l.values.message,placeholder:"En quoi puis-je vous aider ?",rows:5}),l.errors.message&&l.touched.message?(0,s.jsx)("div",{className:"text-red-500 my-2",children:l.errors.message}):null]}),(0,s.jsx)(d,{setVerified:t}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("button",{type:"submit",disabled:l.isSubmitting&&e,className:"w-full h-12 bg-black dark:bg-white py-2 px-6 group hover:px-9 text-white dark:text-black hover:text-white dark:hover:text-white dark:hover:bg-theme  hover:bg-theme rounded transition-all flex justify-center gap-2 items-center",children:l.isSubmitting?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"",children:"Envoie en cours..."}),(0,s.jsx)("span",{className:"animate-spin",children:(0,s.jsx)(u.Z,{})})]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{children:"Envoyez"})})})})]})})}},36962:function(e,t,l){"use strict";var s=l(3827),a=l(91774),r=l(64090),n=l(80959),i=l(36411),c=l(77033),o=l(13818),d=l(47907),u=l(99583);t.Z=()=>{let e=(0,c.I0)(),t=(0,d.useSearchParams)(),l=null==t?void 0:t.get("vt"),h=null==t?void 0:t.get("rspt");return(0,r.useEffect)(()=>{e((0,o.Wi)({title:"Connexion | Inscription",disable_outisedclick:!1}))},[]),(0,r.useEffect)(()=>{if(l){e((0,u.Iv)(!0)),e((0,o.pL)({title:"Verification",disable_outisedclick:!1,token:l}));return}if(h){e((0,u.QS)(!0)),e((0,o._I)({title:"Renitialisation du mot de passe",token:h,disable_outisedclick:!1}));return}},[l,h]),(0,s.jsx)(a.f,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:(0,s.jsx)(r.Suspense,{fallback:(0,s.jsx)(n.Z,{}),children:(0,s.jsx)("main",{className:"h-full w-full flex flex-col bg-white dark:bg-black",children:(0,s.jsx)(i.Z,{})})})})}},76862:function(e,t,l){"use strict";var s=l(3827),a=l(72027),r=l(77033),n=l(10396),i=l(47082),c=l(64090),o=l(99859),d=l(10963),u=l(52840);t.Z=e=>{let{service:t,title:l=!1}=e,h=(0,r.v9)(e=>e.user),{mutateAsync:x}=(0,n.u8)(),[m,f]=(0,c.useState)(!1),p=(0,i.NL)(),g=async(e,t)=>{try{f(!0),(await x({user:h.user.id,service:t})).data.id?(!0==e?d.default.success("Annonce ajout\xe9 au favoris"):d.default.success("Annonce supprim\xe9 du favoris"),p.invalidateQueries()):!0==e?d.default.error("Annonce non ajout\xe9 au favoris"):d.default.error("Annonce non supprim\xe9 du favoris")}catch(e){d.default.error(e.response.data.message)}finally{f(!1)}};return t.statut==a.vQ.ACTIVE&&t.approved&&(""!=h.user.id&&t.favoris.filter(e=>e.user.id==h.user.id).length>0?(0,s.jsx)(o.pT,{children:(0,s.jsxs)("button",{disabled:m,onClick:async e=>{e.preventDefault(),e.stopPropagation(),await g(!1,t.id)},className:"flex items-center justify-between p-2 bg-black dark:border dark:border-theme rounded gap-2",children:[l&&(0,s.jsx)("span",{className:"text-theme",children:"Supprimer du favoris"}),(0,s.jsx)(u.fON,{className:"w-4 h-4 text-theme"})]})}):(0,s.jsx)(o.pT,{children:(0,s.jsxs)("button",{disabled:m,onClick:async e=>{e.preventDefault(),e.stopPropagation(),await g(!0,t.id)},className:"flex items-center justify-between p-2 bg-black dark:bg-border dark:border-white rounded gap-2",children:[l&&(0,s.jsx)("span",{children:"Ajouter au favoris"}),(0,s.jsx)(u.Zwb,{className:"w-4 h-4 text-white"})]})}))}},10396:function(e,t,l){"use strict";l.d(t,{Hx:function(){return i},u8:function(){return o},zN:function(){return c}});var s=l(72027),a=l(94642),r=l(20568),n=l(77033);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,a.a)({queryKey:["favoris"],queryFn:async()=>(await n.bK.get("".concat(s.bT.favoris,"?limit=").concat(e,"&offset=").concat(t))).data})},c=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,a.a)({queryKey:["favoris-user-".concat(e)],queryFn:async()=>(await n.bK.post("".concat(s.bT.favoris,"/user?limit=").concat(t,"&offset=").concat(l),{id:e})).data})},o=()=>(0,r.D)({mutationFn:async e=>(await n.bK.post("".concat(s.bT.favoris,"/register"),e)).data})},54244:function(){}},function(e){e.O(0,[3665,8760,7240,7699,614,3572,7902,5706,4678,9715,1921,8725,5062,2971,8069,1744],function(){return e(e.s=85526)}),_N_E=e.O()}]);