Files
afrov2/.next/static/chunks/6bacb19c9e0d6276.js
2026-04-08 14:46:10 +02:00

1 line
41 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98003,73667,89844,35774,e=>{"use strict";var s=e.i(75840);let r=(0,s.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>r],98003);let t=(0,s.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);e.s(["Facebook",()=>t],73667);let a=(0,s.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);e.s(["Linkedin",()=>a],89844);let l=(0,s.default)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);e.s(["Instagram",()=>l],35774)},99891,e=>{"use strict";let s=(0,e.i(75840).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>s],99891)},87070,e=>{"use strict";let s=(0,e.i(75840).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",()=>s],87070)},92928,76590,e=>{"use strict";var s=e.i(75840);let r=(0,s.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>r],92928);let t=(0,s.default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);e.s(["Smartphone",()=>t],76590)},18800,e=>{"use strict";var s=e.i(5974),r=e.i(32653),t=e.i(92928),a=e.i(20509),l=e.i(76590),d=e.i(87070),i=e.i(75840);let n=(0,i.default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),c=(0,i.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),o=[{id:"starter",name:"Starter",priceXOF:"Gratuit",priceEUR:"0€",description:"Pour démarrer votre présence en ligne.",features:["Fiche entreprise basique","Visible dans la recherche","1 Offre produit/service","Support par email"],color:"gray"},{id:"booster",name:"Booster",priceXOF:"5.000 FCFA",priceEUR:"8€",description:"L'indispensable pour les entreprises en croissance.",recommended:!0,features:["Tout du plan Starter",'Badge "Vérifié" ✅',"Jusqu'à 10 Offres produits","Lien vers réseaux sociaux & Site Web","Statistiques de base (Vues)"],color:"brand"},{id:"empire",name:"Empire",priceXOF:"15.000 FCFA",priceEUR:"23€",description:"Dominez votre marché avec une visibilité maximale.",features:["Tout du plan Booster",'Badge "Recommandé" 🏆',"Offres illimitées","Intégration vidéo Youtube","Interview écrite sur le Blog","Support prioritaire WhatsApp"],color:"gray"}];e.s(["default",0,()=>{let[e,i]=(0,r.useState)(null),[m,x]=(0,r.useState)("monthly"),[h,u]=(0,r.useState)(!1),[b,p]=(0,r.useState)("method"),[g,f]=(0,r.useState)(null),y=()=>{u(!1),p("method"),i(null),f(null)};return(0,s.jsxs)("div",{className:"py-12 bg-gray-50",children:[(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h2",{className:"text-base font-semibold text-brand-600 tracking-wide uppercase",children:"Tarifs"}),(0,s.jsx)("p",{className:"mt-1 text-4xl font-extrabold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl font-serif",children:"Investissez dans votre croissance"}),(0,s.jsx)("p",{className:"max-w-xl mt-5 mx-auto text-xl text-gray-500",children:"Choisissez le plan adapté à vos ambitions. Changez ou annulez à tout moment."})]}),(0,s.jsx)("div",{className:"mt-12 flex justify-center",children:(0,s.jsxs)("div",{className:"relative bg-white rounded-lg p-0.5 flex sm:mt-0 shadow-sm border border-gray-200",children:[(0,s.jsx)("button",{type:"button",onClick:()=>x("monthly"),className:`${"monthly"===m?"bg-gray-100 border-gray-200 shadow-sm text-gray-900":"border-transparent text-gray-500 hover:text-gray-700"} relative w-1/2 whitespace-nowrap py-2 px-6 rounded-md text-sm font-medium focus:outline-none transition-all sm:w-auto sm:px-8`,children:"Mensuel"}),(0,s.jsxs)("button",{type:"button",onClick:()=>x("yearly"),className:`${"yearly"===m?"bg-gray-100 border-gray-200 shadow-sm text-gray-900":"border-transparent text-gray-500 hover:text-gray-700"} relative w-1/2 whitespace-nowrap py-2 px-6 rounded-md text-sm font-medium focus:outline-none transition-all sm:w-auto sm:px-8`,children:["Annuel ",(0,s.jsx)("span",{className:"text-brand-600 text-xs ml-1 font-bold",children:"-20%"})]})]})}),(0,s.jsx)("div",{className:"mt-12 space-y-4 sm:mt-16 sm:space-y-0 sm:grid sm:grid-cols-2 sm:gap-6 lg:max-w-4xl lg:mx-auto xl:max-w-none xl:mx-0 xl:grid-cols-3",children:o.map(e=>(0,s.jsxs)("div",{className:`rounded-2xl shadow-xl bg-white border-2 flex flex-col ${e.recommended?"border-brand-500 ring-4 ring-brand-50 relative transform scale-105 z-10":"border-gray-100"}`,children:[e.recommended&&(0,s.jsx)("div",{className:"absolute top-0 inset-x-0 -mt-4 flex justify-center",children:(0,s.jsx)("span",{className:"bg-brand-500 text-white px-4 py-1 rounded-full text-xs font-bold uppercase tracking-wider shadow-sm",children:"Populaire"})}),(0,s.jsxs)("div",{className:"p-6 md:p-8 flex-1",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold text-gray-900 font-serif",children:e.name}),(0,s.jsx)("p",{className:"mt-4 text-sm text-gray-500",children:e.description}),(0,s.jsxs)("div",{className:"mt-8 flex items-baseline",children:[(0,s.jsx)("span",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"Gratuit"===e.priceXOF?"Gratuit":"yearly"===m&&"starter"!==e.id?"Sur Devis":e.priceXOF}),"Gratuit"!==e.priceXOF&&(0,s.jsx)("span",{className:"ml-1 text-xl font-medium text-gray-500",children:"/mois"})]}),"Gratuit"!==e.priceXOF&&(0,s.jsxs)("p",{className:"text-xs text-gray-400 mt-1",children:["soit env. ",e.priceEUR," /mois"]}),(0,s.jsx)("ul",{className:"mt-8 space-y-4",children:e.features.map(e=>(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)(t.Check,{className:"h-5 w-5 text-green-500"})}),(0,s.jsx)("p",{className:"ml-3 text-sm text-gray-700",children:e})]},e))})]}),(0,s.jsx)("div",{className:"p-6 bg-gray-50 rounded-b-2xl",children:(0,s.jsx)("button",{onClick:()=>{"starter"!==e.id&&(i(e),p("method"),u(!0))},className:`w-full block text-center rounded-lg border border-transparent px-6 py-3 text-base font-medium transition-colors ${"starter"===e.id?"text-brand-700 bg-brand-100 hover:bg-brand-200":"text-white bg-brand-600 hover:bg-brand-700 shadow-md hover:shadow-lg"}`,children:"starter"===e.id?"Commencer Gratuitement":`Choisir ${e.name}`})})]},e.id))})]}),h&&e&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:(0,s.jsxs)("div",{className:"flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity",onClick:y}),(0,s.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:""}),(0,s.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg w-full",children:[(0,s.jsxs)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-5",children:[(0,s.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900 font-serif",id:"modal-title",children:"Paiement Sécurisé"}),(0,s.jsx)("button",{onClick:y,className:"text-gray-400 hover:text-gray-500",children:(0,s.jsx)(a.X,{className:"h-6 w-6"})})]}),"method"===b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"bg-brand-50 p-4 rounded-md mb-6 border border-brand-100",children:[(0,s.jsxs)("p",{className:"text-sm text-brand-800 font-medium",children:["Vous avez choisi le plan ",(0,s.jsx)("span",{className:"font-bold",children:e.name})]}),(0,s.jsx)("p",{className:"text-2xl font-bold text-brand-900 mt-1",children:e.priceXOF})]}),(0,s.jsx)("p",{className:"text-sm font-medium text-gray-700 mb-3",children:"Moyen de paiement"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-3",children:[(0,s.jsxs)("button",{onClick:()=>f("mobile_money"),className:`flex items-center p-4 border rounded-lg hover:bg-gray-50 transition-all ${"mobile_money"===g?"border-brand-500 ring-1 ring-brand-500 bg-brand-50":"border-gray-300"}`,children:[(0,s.jsx)("div",{className:"h-10 w-10 bg-orange-100 rounded-full flex items-center justify-center text-orange-600 mr-4",children:(0,s.jsx)(l.Smartphone,{className:"h-6 w-6"})}),(0,s.jsxs)("div",{className:"text-left flex-1",children:[(0,s.jsx)("p",{className:"font-bold text-gray-900",children:"Mobile Money"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Orange Money, MTN, Wave, Moov"})]}),(0,s.jsx)("div",{className:"h-4 w-4 rounded-full border border-gray-300 flex items-center justify-center",children:"mobile_money"===g&&(0,s.jsx)("div",{className:"h-2 w-2 rounded-full bg-brand-600"})})]}),(0,s.jsxs)("button",{onClick:()=>f("card"),className:`flex items-center p-4 border rounded-lg hover:bg-gray-50 transition-all ${"card"===g?"border-brand-500 ring-1 ring-brand-500 bg-brand-50":"border-gray-300"}`,children:[(0,s.jsx)("div",{className:"h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mr-4",children:(0,s.jsx)(d.CreditCard,{className:"h-6 w-6"})}),(0,s.jsxs)("div",{className:"text-left flex-1",children:[(0,s.jsx)("p",{className:"font-bold text-gray-900",children:"Carte Bancaire"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Visa, Mastercard"})]}),(0,s.jsx)("div",{className:"h-4 w-4 rounded-full border border-gray-300 flex items-center justify-center",children:"card"===g&&(0,s.jsx)("div",{className:"h-2 w-2 rounded-full bg-brand-600"})})]})]}),"mobile_money"===g&&(0,s.jsxs)("div",{className:"mt-4 animate-in fade-in slide-in-from-top-2",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Numéro de téléphone"}),(0,s.jsx)("input",{type:"text",placeholder:"+225 07...",className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]}),"card"===g&&(0,s.jsxs)("div",{className:"mt-4 animate-in fade-in slide-in-from-top-2 space-y-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Numéro de carte"}),(0,s.jsx)("input",{type:"text",placeholder:"0000 0000 0000 0000",className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Expiration"}),(0,s.jsx)("input",{type:"text",placeholder:"MM/AA",className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"CVC"}),(0,s.jsx)("input",{type:"text",placeholder:"123",className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]})]})]})]}),"processing"===b&&(0,s.jsxs)("div",{className:"py-10 text-center",children:[(0,s.jsx)(n,{className:"h-12 w-12 text-brand-600 animate-spin mx-auto mb-4"}),(0,s.jsx)("p",{className:"text-lg font-medium text-gray-900",children:"Traitement en cours..."}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Veuillez valider la transaction sur votre mobile si nécessaire."})]}),"success"===b&&(0,s.jsxs)("div",{className:"py-6 text-center animate-in zoom-in duration-300",children:[(0,s.jsx)("div",{className:"mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-green-100 mb-4",children:(0,s.jsx)(c,{className:"h-10 w-10 text-green-600"})}),(0,s.jsx)("h3",{className:"text-xl font-bold text-gray-900",children:"Paiement Réussi !"}),(0,s.jsxs)("p",{className:"text-gray-500 mt-2 mb-6",children:["Votre abonnement ",e.name," est maintenant actif."]}),(0,s.jsx)("button",{onClick:y,className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-brand-600 text-base font-medium text-white hover:bg-brand-700 focus:outline-none sm:text-sm",children:"Accéder à mon espace"})]})]}),"method"===b&&(0,s.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,s.jsxs)("button",{type:"button",disabled:!g,onClick:()=>{p("processing"),setTimeout(()=>{p("success")},2500)},className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-brand-600 text-base font-medium text-white hover:bg-brand-700 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed sm:ml-3 sm:w-auto sm:text-sm",children:["Payer ",e.priceXOF]}),(0,s.jsx)("button",{type:"button",onClick:y,className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:"Annuler"})]})]})]})})]})}],18800)},62302,e=>{"use strict";var s=e.i(5974),r=e.i(32653),t=e.i(42500),a=e.i(44543),l=e.i(75840);let d=(0,l.default)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),i=(0,l.default)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);var n=e.i(87070);let c=(0,l.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),o=(0,l.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var m=e.i(23862),x=e.i(67810),h=e.i(98003);let u=({className:e})=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[(0,s.jsx)("path",{d:"M14 4.1 12 6"}),(0,s.jsx)("path",{d:"m5.1 8-2.9-.8"}),(0,s.jsx)("path",{d:"m6 12-1.9 2"}),(0,s.jsx)("path",{d:"M7.2 2.2 8 5.1"}),(0,s.jsx)("path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"})]}),b=({business:e})=>(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold font-serif text-gray-900",children:"Tableau de bord"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-3",children:[(0,s.jsx)("div",{className:"bg-white overflow-hidden shadow rounded-lg",children:(0,s.jsx)("div",{className:"p-5",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0 bg-brand-100 rounded-md p-3",children:(0,s.jsx)(o,{className:"h-6 w-6 text-brand-600"})}),(0,s.jsx)("div",{className:"ml-5 w-0 flex-1",children:(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"text-sm font-medium text-gray-500 truncate",children:"Vues de la fiche"}),(0,s.jsx)("dd",{children:(0,s.jsx)("div",{className:"text-lg font-medium text-gray-900",children:e.viewCount})})]})})]})})}),(0,s.jsx)("div",{className:"bg-white overflow-hidden shadow rounded-lg",children:(0,s.jsx)("div",{className:"p-5",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0 bg-blue-100 rounded-md p-3",children:(0,s.jsx)(u,{className:"h-6 w-6 text-blue-600"})}),(0,s.jsx)("div",{className:"ml-5 w-0 flex-1",children:(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"text-sm font-medium text-gray-500 truncate",children:"Clics Contact"}),(0,s.jsx)("dd",{children:(0,s.jsx)("div",{className:"text-lg font-medium text-gray-900",children:"42"})})]})})]})})}),(0,s.jsx)("div",{className:"bg-white overflow-hidden shadow rounded-lg",children:(0,s.jsx)("div",{className:"p-5",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0 bg-yellow-100 rounded-md p-3",children:(0,s.jsx)(h.Star,{className:"h-6 w-6 text-yellow-600"})}),(0,s.jsx)("div",{className:"ml-5 w-0 flex-1",children:(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"text-sm font-medium text-gray-500 truncate",children:"Note moyenne"}),(0,s.jsx)("dd",{children:(0,s.jsxs)("div",{className:"text-lg font-medium text-gray-900",children:[e.rating,"/5"]})})]})})]})})})]}),(0,s.jsxs)("div",{className:"bg-white shadow rounded-lg p-6",children:[(0,s.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900 mb-4",children:"Performances 30 derniers jours"}),(0,s.jsx)("div",{className:"h-64 bg-gray-50 rounded border border-dashed border-gray-200 flex items-center justify-center text-gray-400",children:"Graphique des visites (À venir en Phase 2)"})]})]}),p=(0,l.default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),g=(0,l.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),f=(0,l.default)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);var y=e.i(20509),j=e.i(99891),v=e.i(73667),N=e.i(89844),w=e.i(35774),k=e.i(57348);let C=async(e,s,r)=>{try{let t=await fetch("/api/gemini",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"description",name:e,category:s,keywords:r})});if(!t.ok)throw Error("API error");return(await t.json()).text||"Impossible de générer une description pour le moment."}catch(e){return console.error("Gemini API Error:",e),"Erreur lors de la génération. Veuillez rédiger votre description manuellement."}},M=e=>{let s=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return s&&11===s[2].length?s[2]:null},S=({business:e,setBusiness:t})=>{let[a,l]=(0,r.useState)(e),[d,i]=(0,r.useState)(e.videoUrl||""),[n,c]=(0,r.useState)(M(e.videoUrl||"")),[o,m]=(0,r.useState)(!1),x=e=>{l({...a,[e.target.name]:e.target.value})},h=(e,s)=>{l({...a,socialLinks:{...a.socialLinks,[e]:s}})},u=async()=>{m(!0);let e=await C(a.name,a.category,"Innovation, Qualité, Service client");l(s=>({...s,description:e})),m(!1)};return(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold font-serif text-gray-900",children:"Éditer mon profil"}),(0,s.jsx)("button",{onClick:()=>{t(a),alert("Profil mis à jour avec succès !")},className:"bg-brand-600 text-white px-4 py-2 rounded-md hover:bg-brand-700 font-medium text-sm shadow-sm",children:"Enregistrer"})]}),(0,s.jsxs)("div",{className:"bg-white shadow rounded-lg p-6",children:[(0,s.jsxs)("h3",{className:"text-lg font-medium text-gray-900 mb-4 flex items-center",children:[(0,s.jsx)(p,{className:"w-5 h-5 mr-2 text-brand-600"})," Identité Visuelle"]}),(0,s.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("img",{className:"h-24 w-24 object-cover rounded-full border-2 border-gray-200",src:a.logoUrl,alt:"Logo actuel"})}),(0,s.jsxs)("div",{className:"flex-1 border-2 border-dashed border-gray-300 rounded-md p-6 flex flex-col items-center justify-center hover:border-brand-400 transition-colors cursor-pointer bg-gray-50",children:[(0,s.jsx)(p,{className:"h-8 w-8 text-gray-400"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"Glissez votre logo ici ou cliquez pour parcourir"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6 mt-6",children:[(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Nom de l'entreprise"}),(0,s.jsx)("input",{type:"text",name:"name",value:a.name,onChange:x,className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]}),(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Secteur d'activité"}),(0,s.jsx)("select",{name:"category",value:a.category,onChange:x,className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm",children:k.CATEGORIES.map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]}),(0,s.jsxs)("div",{className:"sm:col-span-6",children:[(0,s.jsxs)("div",{className:"flex justify-between mb-1",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Description"}),(0,s.jsx)("button",{type:"button",onClick:u,disabled:o,className:"text-xs flex items-center text-brand-600 hover:text-brand-800",children:o?"...":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g,{className:"w-3 h-3 mr-1"})," Générer avec IA"]})})]}),(0,s.jsx)("textarea",{name:"description",rows:3,value:a.description,onChange:x,className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]})]})]}),(0,s.jsxs)("div",{className:"bg-white shadow rounded-lg p-6",children:[(0,s.jsxs)("h3",{className:"text-lg font-medium text-gray-900 mb-4 flex items-center",children:[(0,s.jsx)(f,{className:"w-5 h-5 mr-2 text-red-600"})," Présentation Vidéo"]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Lien de votre vidéo (Youtube)"}),(0,s.jsxs)("div",{className:"mt-1 flex rounded-md shadow-sm",children:[(0,s.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 sm:text-sm",children:"https://"}),(0,s.jsx)("input",{type:"text",value:d.replace("https://",""),onChange:e=>{let s=e.target.value;i(s),c(M(s)),l({...a,videoUrl:s})},className:"flex-1 min-w-0 block w-full px-3 py-2 rounded-none rounded-r-md focus:ring-brand-500 focus:border-brand-500 sm:text-sm border-gray-300",placeholder:"www.youtube.com/watch?v=..."})]}),(0,s.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Copiez l'URL de votre vidéo de présentation pour l'afficher sur votre profil."})]}),n?(0,s.jsx)("div",{className:"aspect-w-16 aspect-h-9 rounded-lg overflow-hidden bg-gray-100 mt-4 border border-gray-200",children:(0,s.jsx)("iframe",{src:`https://www.youtube.com/embed/${n}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-64 sm:h-80 rounded-lg"})}):d&&(0,s.jsx)("div",{className:"rounded-md bg-red-50 p-4 mt-4",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)(y.X,{className:"h-5 w-5 text-red-400","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800",children:"Lien invalide"}),(0,s.jsx)("div",{className:"mt-2 text-sm text-red-700",children:(0,s.jsx)("p",{children:"Impossible de détecter une vidéo YouTube valide. Vérifiez le lien."})})]})]})})]})]}),(0,s.jsxs)("div",{className:"bg-white shadow rounded-lg p-6",children:[(0,s.jsxs)("h3",{className:"text-lg font-medium text-gray-900 mb-4 flex items-center",children:[(0,s.jsx)(j.Globe,{className:"w-5 h-5 mr-2 text-blue-500"})," Coordonnées & Réseaux"]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6",children:[(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Email Contact"}),(0,s.jsx)("input",{type:"email",name:"contactEmail",value:a.contactEmail,onChange:x,className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]}),(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Téléphone"}),(0,s.jsx)("input",{type:"text",name:"contactPhone",value:a.contactPhone||"",onChange:x,className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-brand-500 focus:border-brand-500 sm:text-sm"})]}),(0,s.jsxs)("div",{className:"sm:col-span-6 border-t border-gray-100 pt-4 mt-2",children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-gray-500 mb-3 uppercase",children:"Réseaux Sociaux"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex rounded-md shadow-sm",children:[(0,s.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",children:(0,s.jsx)(v.Facebook,{className:"w-4 h-4"})}),(0,s.jsx)("input",{type:"text",placeholder:"Lien Facebook",value:a.socialLinks?.facebook||"",onChange:e=>h("facebook",e.target.value),className:"flex-1 min-w-0 block w-full px-3 py-2 rounded-none rounded-r-md focus:ring-brand-500 focus:border-brand-500 sm:text-sm border-gray-300"})]}),(0,s.jsxs)("div",{className:"flex rounded-md shadow-sm",children:[(0,s.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",children:(0,s.jsx)(N.Linkedin,{className:"w-4 h-4"})}),(0,s.jsx)("input",{type:"text",placeholder:"Lien LinkedIn",value:a.socialLinks?.linkedin||"",onChange:e=>h("linkedin",e.target.value),className:"flex-1 min-w-0 block w-full px-3 py-2 rounded-none rounded-r-md focus:ring-brand-500 focus:border-brand-500 sm:text-sm border-gray-300"})]}),(0,s.jsxs)("div",{className:"flex rounded-md shadow-sm",children:[(0,s.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",children:(0,s.jsx)(w.Instagram,{className:"w-4 h-4"})}),(0,s.jsx)("input",{type:"text",placeholder:"Lien Instagram",value:a.socialLinks?.instagram||"",onChange:e=>h("instagram",e.target.value),className:"flex-1 min-w-0 block w-full px-3 py-2 rounded-none rounded-r-md focus:ring-brand-500 focus:border-brand-500 sm:text-sm border-gray-300"})]})]})]})]})]})]})},O=(0,l.default)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),z=(0,l.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),T=()=>{let[e,t]=(0,r.useState)(x.MOCK_OFFERS),[a,l]=(0,r.useState)(!1),[n,c]=(0,r.useState)({title:"",price:0,currency:"XOF",type:k.OfferType.SERVICE});return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold font-serif text-gray-900",children:"Mes Offres"}),(0,s.jsxs)("button",{onClick:()=>{c({title:"",price:0,currency:"XOF",type:k.OfferType.SERVICE}),l(!0)},className:"flex items-center bg-brand-600 text-white px-4 py-2 rounded-md hover:bg-brand-700 font-medium text-sm shadow-sm transition-colors",children:[(0,s.jsx)(O,{className:"w-4 h-4 mr-2"}),"Ajouter une offre"]})]}),e.length>0?(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map(r=>(0,s.jsxs)("div",{className:"bg-white rounded-lg shadow border border-gray-200 overflow-hidden group",children:[(0,s.jsxs)("div",{className:"relative h-40 bg-gray-200",children:[(0,s.jsx)("img",{src:r.imageUrl,alt:r.title,className:"w-full h-full object-cover"}),(0,s.jsx)("div",{className:"absolute top-2 right-2",children:(0,s.jsx)("span",{className:`px-2 py-1 text-xs font-bold rounded uppercase ${r.type===k.OfferType.PRODUCT?"bg-blue-100 text-blue-800":"bg-purple-100 text-purple-800"}`,children:r.type===k.OfferType.PRODUCT?"Produit":"Service"})})]}),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("h3",{className:"font-bold text-gray-900 truncate",children:r.title}),(0,s.jsxs)("p",{className:"text-brand-600 font-bold mt-1",children:[new Intl.NumberFormat("fr-FR").format(r.price)," ",r.currency]}),(0,s.jsxs)("div",{className:"mt-4 flex justify-between items-center pt-4 border-t border-gray-100",children:[(0,s.jsx)("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${r.active?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:r.active?"Actif":"Inactif"}),(0,s.jsxs)("div",{className:"flex space-x-2",children:[(0,s.jsx)("button",{onClick:()=>{c(r),l(!0)},className:"p-1 text-gray-400 hover:text-brand-600",title:"Modifier",children:(0,s.jsx)(d,{className:"w-4 h-4"})}),(0,s.jsx)("button",{onClick:()=>{var s;return s=r.id,void(window.confirm("Voulez-vous vraiment supprimer cette offre ?")&&t(e.filter(e=>e.id!==s)))},className:"p-1 text-gray-400 hover:text-red-600",title:"Supprimer",children:(0,s.jsx)(z,{className:"w-4 h-4"})})]})]})]})]},r.id))}):(0,s.jsxs)("div",{className:"text-center py-12 bg-white rounded-lg border-2 border-dashed border-gray-300",children:[(0,s.jsx)(i,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,s.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"Aucune offre"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Commencez à vendre vos produits ou services."})]}),a&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:(0,s.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true",onClick:()=>l(!1)}),(0,s.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:""}),(0,s.jsx)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg w-full",children:(0,s.jsxs)("form",{onSubmit:s=>{s.preventDefault(),n.id?t(e.map(e=>e.id===n.id?{...e,...n}:e)):t([...e,{id:Date.now().toString(),businessId:"1",title:n.title||"Nouvelle offre",type:n.type||k.OfferType.PRODUCT,price:n.price||0,currency:n.currency,imageUrl:n.imageUrl||"https://picsum.photos/300/200?random="+Date.now(),active:!0}]),l(!1)},children:[(0,s.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,s.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,s.jsx)("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-brand-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,s.jsx)(O,{className:"h-6 w-6 text-brand-600"})}),(0,s.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full",children:[(0,s.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",id:"modal-title",children:n.id?"Modifier l'offre":"Ajouter une offre"}),(0,s.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Type d'offre"}),(0,s.jsxs)("div",{className:"mt-2 flex space-x-4",children:[(0,s.jsxs)("label",{className:"inline-flex items-center",children:[(0,s.jsx)("input",{type:"radio",className:"form-radio text-brand-600",name:"type",checked:n.type===k.OfferType.PRODUCT,onChange:()=>c({...n,type:k.OfferType.PRODUCT})}),(0,s.jsx)("span",{className:"ml-2 text-sm",children:"Produit Physique"})]}),(0,s.jsxs)("label",{className:"inline-flex items-center",children:[(0,s.jsx)("input",{type:"radio",className:"form-radio text-brand-600",name:"type",checked:n.type===k.OfferType.SERVICE,onChange:()=>c({...n,type:k.OfferType.SERVICE})}),(0,s.jsx)("span",{className:"ml-2 text-sm",children:"Service / Prestation"})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Titre"}),(0,s.jsx)("input",{type:"text",required:!0,className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 sm:text-sm",value:n.title,onChange:e=>c({...n,title:e.target.value}),placeholder:"Ex: Savon Karité Bio"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Prix"}),(0,s.jsx)("input",{type:"number",required:!0,min:"0",className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 sm:text-sm",value:n.price,onChange:e=>c({...n,price:parseInt(e.target.value)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Devise"}),(0,s.jsxs)("select",{className:"mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 sm:text-sm",value:n.currency,onChange:e=>c({...n,currency:e.target.value}),children:[(0,s.jsx)("option",{value:"XOF",children:"FCFA (XOF)"}),(0,s.jsx)("option",{value:"EUR",children:"EUR (€)"})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:"Photo"}),(0,s.jsx)("div",{className:"mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md",children:(0,s.jsxs)("div",{className:"space-y-1 text-center",children:[(0,s.jsx)(p,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"PNG, JPG jusqu'à 5MB"})]})})]})]})]})]})}),(0,s.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,s.jsx)("button",{type:"submit",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-brand-600 text-base font-medium text-white hover:bg-brand-700 focus:outline-none sm:ml-3 sm:w-auto sm:text-sm",children:n.id?"Mettre à jour":"Publier l'offre"}),(0,s.jsx)("button",{type:"button",onClick:()=>l(!1),className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:"Annuler"})]})]})})]})})]})};var A=e.i(18800),P=e.i(88842);e.s(["default",0,()=>{let{user:e,logout:l}=(0,P.useUser)(),h=(0,m.useRouter)(),[u,p]=(0,r.useState)("overview"),[g,f]=(0,r.useState)(x.MOCK_BUSINESSES[0]);return e?(0,s.jsxs)("div",{className:"min-h-screen bg-gray-100 flex",children:[(0,s.jsxs)("div",{className:"hidden md:flex md:flex-col md:w-64 md:fixed md:inset-y-0 bg-white border-r border-gray-200",children:[(0,s.jsx)("div",{className:"flex items-center h-16 flex-shrink-0 px-4 border-b border-gray-200",children:(0,s.jsxs)(t.default,{href:"/",className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-8 h-8 bg-brand-600 rounded-lg flex items-center justify-center text-white font-bold font-serif",children:"A"}),(0,s.jsx)("span",{className:"font-serif font-bold text-lg text-gray-900",children:"Afropreunariat"})]})}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col overflow-y-auto pt-5 pb-4",children:[(0,s.jsx)("div",{className:"px-4 mb-6",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"h-10 w-10 rounded-full bg-gray-300 flex items-center justify-center text-gray-600 font-bold shrink-0",children:e.name.charAt(0)}),(0,s.jsxs)("div",{className:"ml-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-700 truncate",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center mt-1",children:[(0,s.jsx)("span",{className:"h-2 w-2 rounded-full bg-green-400 mr-1"}),(0,s.jsx)("span",{className:"text-xs text-gray-500",children:"Actif"})]})]})]})}),(0,s.jsxs)("nav",{className:"mt-2 flex-1 px-2 space-y-1",children:[(0,s.jsxs)("button",{onClick:()=>p("overview"),className:`${"overview"===u?"bg-brand-50 text-brand-700":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"} group flex items-center px-2 py-2 text-sm font-medium rounded-md w-full`,children:[(0,s.jsx)(a.LayoutDashboard,{className:`${"overview"===u?"text-brand-500":"text-gray-400 group-hover:text-gray-500"} mr-3 flex-shrink-0 h-5 w-5`}),"Tableau de Bord"]}),(0,s.jsxs)("button",{onClick:()=>p("profile"),className:`${"profile"===u?"bg-brand-50 text-brand-700":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"} group flex items-center px-2 py-2 text-sm font-medium rounded-md w-full`,children:[(0,s.jsx)(d,{className:`${"profile"===u?"text-brand-500":"text-gray-400 group-hover:text-gray-500"} mr-3 flex-shrink-0 h-5 w-5`}),"Éditer mon profil"]}),(0,s.jsxs)("button",{onClick:()=>p("offers"),className:`${"offers"===u?"bg-brand-50 text-brand-700":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"} group flex items-center px-2 py-2 text-sm font-medium rounded-md w-full`,children:[(0,s.jsx)(i,{className:`${"offers"===u?"text-brand-500":"text-gray-400 group-hover:text-gray-500"} mr-3 flex-shrink-0 h-5 w-5`}),"Mes Offres"]}),(0,s.jsxs)("button",{onClick:()=>p("subscription"),className:`${"subscription"===u?"bg-brand-50 text-brand-700":"text-gray-600 hover:bg-gray-50 hover:text-gray-900"} group flex items-center px-2 py-2 text-sm font-medium rounded-md w-full`,children:[(0,s.jsx)(n.CreditCard,{className:`${"subscription"===u?"text-brand-500":"text-gray-400 group-hover:text-gray-500"} mr-3 flex-shrink-0 h-5 w-5`}),"Abonnement"]})]})]}),(0,s.jsx)("div",{className:"flex-shrink-0 flex border-t border-gray-200 p-4",children:(0,s.jsx)("button",{onClick:()=>{l(),h.push("/")},className:"flex-shrink-0 w-full group block text-gray-600 hover:text-red-600 transition-colors",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(c,{className:"inline-block h-5 w-5 mr-2"}),(0,s.jsx)("span",{className:"text-sm font-medium",children:"Déconnexion"})]})})})]}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col md:pl-64 overflow-hidden",children:[(0,s.jsxs)("header",{className:"bg-white shadow-sm z-10 flex justify-between items-center px-6 py-4 sticky top-0",children:[(0,s.jsxs)("h1",{className:"text-2xl font-bold text-gray-900 sm:truncate",children:["overview"===u&&"Vue d'ensemble","profile"===u&&"Mon Profil","offers"===u&&"Gestion des Offres","subscription"===u&&"Mon Abonnement"]}),(0,s.jsx)("div",{className:"flex items-center space-x-4",children:(0,s.jsxs)("a",{href:"/directory",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none",children:[(0,s.jsx)(o,{className:"-ml-1 mr-2 h-4 w-4 text-gray-500"}),"Voir ma fiche"]})})]}),(0,s.jsx)("main",{className:"flex-1 overflow-y-auto p-6",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto",children:["overview"===u&&(0,s.jsx)(b,{business:g}),"profile"===u&&(0,s.jsx)(S,{business:g,setBusiness:f}),"offers"===u&&(0,s.jsx)(T,{}),"subscription"===u&&(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"bg-white shadow rounded-lg p-6 flex justify-between items-center",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"text-lg font-medium text-gray-900",children:["Abonnement Actuel : ",(0,s.jsx)("span",{className:"text-brand-600 font-bold",children:"Starter (Gratuit)"})]}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Passez au niveau supérieur pour débloquer plus de fonctionnalités."})]}),(0,s.jsx)("span",{className:"inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium bg-green-100 text-green-800",children:"Actif"})]}),(0,s.jsx)(A.default,{})]})]})})]})]}):(h.push("/login"),null)}],62302)}]);