PageSourceSearch

https://www.restaurantlepastel.fr/assets/ClientsPage-CPtwcpw5.js

js restaurantlepastel.fr collected 2026-10-07 13:25:49 UTC 20,577 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-ui-DELSo7-E.js";import{r as c}from"./vendor-react-1Y0lFJaB.js";import{aP as y,d as $}from"./index-DScsaRlo.js";import{u as re,m as j,a as k,b as R}from"./useControlMode-Bm7NGZN9.js";import{I as w}from"./input-Dq3QoBKa.js";import{k as F,a2 as I,q as Q,a3 as W,n as L,b2 as Y,J as ne,X as G,L as C,d as ie,O as de,h as ce,V as me,a_ as Z,m as xe,aJ as oe,B as pe,b3 as H}from"./vendor-icons-CaP16M2k.js";const X={Réservation:"bg-blue-50 text-blue-700",Commande:"bg-emerald-50 text-emerald-700",Message:"bg-purple-50 text-purple-700",Devis:"bg-amber-50 text-amber-700","Menu sur mesure":"bg-rose-50 text-rose-700",Newsletter:"bg-pastel-gold/10 text-pastel-gold-dark"};function B(t){return t?new Date(t).toLocaleDateString("fr-FR",{day:"numeric",month:"short",year:"numeric"}):"—"}function ue(t){return t?new Date(t).toLocaleDateString("fr-FR",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function K(t){if(!t)return"—";const r=new Date(t),x=new Date().getTime()-r.getTime(),d=Math.floor(x/(1e3*60*60*24));return d===0?"Aujourd'hui":d===1?"Hier":d<7?`Il y a ${d}j`:d<30?`Il y a ${Math.floor(d/7)} sem.`:d<365?`Il y a ${Math.floor(d/30)} mois`:`Il y a ${Math.floor(d/365)} an(s)`}function Ee(){const{controlMode:t}=re(),[r,l]=c.useState([]),[x,d]=c.useState(!0),[o,g]=c.useState(""),[N,E]=c.useState(""),[a,m]=c.useState("clients"),[u,D]=c.useState(null),[n,T]=c.useState(null),[ee,P]=c.useState(!1),[h,O]=c.useState("reservations"),[q,f]=c.useState(!1),[p,v]=c.useState({name:"",email:"",phone:""}),[A,U]=c.useState(!1),[z,b]=c.useState(null);c.useEffect(()=>{const s=setTimeout(()=>E(o),300);return()=>clearTimeout(s)},[o]);const M=c.useCallback(async()=>{try{d(!0);const s=await y.list(N||void 0);l(s.clients||[])}catch(s){console.error("Error loading clients:",s)}finally{d(!1)}},[N]);c.useEffect(()=>{M()},[M]);const J=async s=>{D(s),P(!0),O("reservations"),f(!1);try{const i=await y.get(s);T(i)}catch(i){console.error("Error loading client detail:",i)}finally{P(!1)}},V=()=>{D(null),T(null),f(!1)},se=()=>{!n||t||(v({name:n.name||"",email:n.email,phone:n.phone||""}),b(null),f(!0))},te=async()=>{if(u){if(!p.email.trim()){b("L'email est obligatoire.");return}U(!0),b(null);try{const i=(await y.update(u,{name:p.name,phone:p.phone,email:p.email})).email||u;f(!1),D(i);const le=await y.get(i);T(le),M()}catch(s){console.error("Error updating client:",s),b("Erreur lors de l'enregistrement. Veuillez réessayer.")}finally{U(!1)}}},ae=n?[{key:"reservations",label:"Réservations",icon:F,count:n.reservations.length},{key:"orders",label:"Commandes",icon:I,count:n.orders.length},{key:"messages",label:"Messages",icon:Q,count:n.messages.length},{key:"devis",label:"Devis",icon:W,count:n.devis.length}]:[];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-serif font-semibold text-pastel-dark",children:"Base Clients"}),e.jsxs("p",{className:"text-sm text-pastel-muted mt-1",children:[r.length," client",r.length!==1?"s":""," au total"]})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{className:"w-8 h-8 text-pastel-gold"})})]}),e.jsxs("div",{className:"flex gap-1 bg-pastel-cream-dark/50 rounded-xl p-1 w-fit",children:[e.jsxs("button",{onClick:()=>m("clients"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ${a==="clients"?"bg-white text-pastel-dark shadow-sm":"text-pastel-muted hover:text-pastel-dark"}`,children:[e.jsx(L,{className:"w-4 h-4"}),"Tous les clients"]}),e.jsxs("button",{onClick:()=>m("meilleurs"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all ${a==="meilleurs"?"bg-white text-pastel-gold-dark shadow-sm":"text-pastel-muted hover:text-pastel-dark"}`,children:[e.jsx(Y,{className:"w-4 h-4"}),"Meilleurs clients"]})]}),a==="clients"&&e.jsxs("div",{className:"relative max-w-md",children:[e.jsx(ne,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-pastel-muted"}),e.jsx(w,{value:o,onChange:s=>g(s.target.value),placeholder:"Rechercher par nom, email ou téléphone...",className:"pl-10 pr-10"}),o&&e.jsx("button",{onClick:()=>g(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-pastel-muted hover:text-pastel-dark",children:e.jsx(G,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex gap-6",children:[e.jsx("div",{className:`flex-1 min-w-0 ${u?"hidden lg:block":""}`,children:a==="meilleurs"?e.jsx(he,{clients:r,loading:x,onOpenDetail:J,controlMode:t}):x?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(C,{className:"w-6 h-6 animate-spin text-pastel-gold"})}):r.length===0?e.jsxs("div",{className:"text-center py-20",children:[e.jsx(L,{className:"w-12 h-12 text-pastel-muted/30 mx-auto mb-3"}),e.jsx("p",{className:"text-pastel-muted",children:o?"Aucun client trouvé":"Aucun client dans la base"})]}):e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"hidden md:grid md:grid-cols-[1fr_1fr_140px_80px_80px_120px] gap-4 px-5 py-3 bg-gray-50 text-xs font-medium text-pastel-muted uppercase tracking-wider border-b",children:[e.jsx("span",{children:"Nom"}),e.jsx("span",{children:"Email"}),e.jsx("span",{children:"Téléphone"}),e.jsx("span",{className:"text-center",children:"Rés."}),e.jsx("span",{className:"text-center",children:"Cmd."}),e.jsx("span",{className:"text-right",children:"Dernière activité"})]}),r.map(s=>e.jsxs("button",{onClick:()=>J(s.email),className:`w-full text-left px-5 py-3.5 border-b border-gray-100 last:border-0 hover:bg-pastel-cream/30 transition-colors ${u===s.email?"bg-pastel-gold/5":""}`,children:[e.jsxs("div",{className:"md:hidden space-y-1.5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-pastel-dark text-sm",children:t?j(s.name):s.name||"—"}),e.jsx("span",{className:"text-xs text-pastel-muted",children:K(s.lastActivity)})]}),e.jsx("p",{className:"text-xs text-pastel-muted",children:t?k(s.email):s.email}),e.jsxs("div",{className:"flex gap-1.5 flex-wrap",children:[s.tags.slice(0,3).map(i=>e.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded-full ${X[i]||"bg-gray-100 text-gray-600"}`,children:i},i)),s.tags.length>3&&e.jsxs("span",{className:"text-[10px] text-pastel-muted",children:["+",s.tags.length-3]})]})]}),e.jsxs("div",{className:"hidden md:grid md:grid-cols-[1fr_1fr_140px_80px_80px_120px] gap-4 items-center",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-pastel-dark text-sm",children:t?j(s.name):s.name||"—"}),e.jsx("div",{className:"flex gap-1 mt-1 flex-wrap",children:s.tags.map(i=>e.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded-full ${X[i]||"bg-gray-100 text-gray-600"}`,children:i},i))})]}),e.jsx("span",{className:"text-sm text-pastel-muted truncate",children:t?k(s.email):s.email}),e.jsx("span",{className:"text-sm text-pastel-muted",children:t?R(s.phone):$(s.phone)||"—"}),e.jsx("span",{className:"text-sm text-center font-medium text-pastel-dark",children:s.reservationCount||"—"}),e.jsx("span",{className:"text-sm text-center font-medium text-pastel-dark",children:s.orderCount||"—"}),e.jsx("span",{className:"text-xs text-pastel-muted text-right",children:K(s.lastActivity)})]})]},s.email))]})}),u&&e.jsx("div",{className:"w-full lg:w-[480px] lg:flex-shrink-0",children:e.jsx("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden sticky top-24",children:ee?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(C,{className:"w-6 h-6 animate-spin text-pastel-gold"})}
1):n?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-5 py-4 bg-pastel-dark text-white",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:V,className:"lg:hidden p-1 -ml-1 rounded-lg hover:bg-white/10",children:e.jsx(ie,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h2",{className:"font-serif text-lg truncate",children:t?j(n.name):n.name||n.email}),n.name&&e.jsx("p",{className:"text-xs text-pastel-cream/60 truncate",children:t?k(n.email):n.email})]}),e.jsx("button",{onClick:se,disabled:t,title:t?"Modification désactivée en mode contrôle":"Modifier les informations",className:`p-1.5 rounded-lg transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${q?"bg-pastel-gold/20 text-pastel-gold":"hover:bg-white/10 text-pastel-cream/70 hover:text-white"}`,children:e.jsx(de,{className:"w-4 h-4"})}),e.jsx("button",{onClick:V,className:"hidden lg:block p-1 rounded-lg hover:bg-white/10",children:e.jsx(G,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-3 text-xs text-pastel-cream/70",children:[n.phone&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ce,{className:"w-3 h-3"}),t?R(n.phone):$(n.phone)]}),n.isSubscriber&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(me,{className:"w-3 h-3"}),"Newsletter"]}),n.totalSpent>0&&e.jsxs("span",{className:"flex items-center gap-1 text-pastel-gold",children:[e.jsx(Z,{className:"w-3 h-3"}),e.jsxs("span",{className:"font-serif font-semibold",children:[n.totalSpent.toFixed(0)," €"]})]})]})]}),q&&!t&&e.jsxs("div",{className:"px-5 py-4 bg-pastel-cream/40 border-b border-gray-200 space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-pastel-muted",children:"Nom"}),e.jsx(w,{value:p.name,onChange:s=>v(i=>({...i,name:s.target.value})),placeholder:"Nom du client",className:"mt-1 bg-white"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-pastel-muted",children:"Email"}),e.jsx(w,{type:"email",value:p.email,onChange:s=>v(i=>({...i,email:s.target.value})),placeholder:"[email protected]",className:"mt-1 bg-white"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs font-medium text-pastel-muted",children:"Téléphone"}),e.jsx(w,{value:p.phone,onChange:s=>v(i=>({...i,phone:s.target.value})),placeholder:"06 12 34 56 78",className:"mt-1 bg-white"})]}),z&&e.jsx("p",{className:"text-xs text-red-600",children:z}),e.jsx("p",{className:"text-[11px] text-pastel-muted",children:"Les modifications seront appliquées à tout l'historique du client (réservations, commandes, messages, devis…)."}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx("button",{onClick:()=>f(!1),disabled:A,className:"px-3 py-1.5 rounded-lg text-xs font-medium bg-white border border-gray-200 text-pastel-muted hover:text-pastel-dark transition-colors",children:"Annuler"}),e.jsxs("button",{onClick:te,disabled:A,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-pastel-gold text-white hover:bg-pastel-gold-dark transition-colors disabled:opacity-60",children:[A?e.jsx(C,{className:"w-3.5 h-3.5 animate-spin"}):e.jsx(xe,{className:"w-3.5 h-3.5"}),"Enregistrer"]})]})]}),e.jsx("div",{className:"flex border-b border-gray-200",children:ae.map(s=>{const i=s.icon;return e.jsxs("button",{onClick:()=>O(s.key),className:`flex-1 flex items-center justify-center gap-1.5 px-2 py-2.5 text-xs font-medium transition-colors ${h===s.key?"text-pastel-gold border-b-2 border-pastel-gold":"text-pastel-muted hover:text-pastel-dark"}`,children:[e.jsx(i,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:s.label}),s.count>0&&e.jsx("span",{className:`min-w-[18px] h-[18px] flex items-center justify-center rounded-full text-[10px] ${h===s.key?"bg-pastel-gold/10 text-pastel-gold":"bg-gray-100 text-gray-500"}`,children:s.count})]},s.key)})}),e.jsxs("div",{className:"max-h-[60vh] overflow-y-auto",children:[h==="reservations"&&e.jsx(je,{items:n.reservations,controlMode:t}),h==="orders"&&e.jsx(Ne,{items:n.orders,controlMode:t}),h==="messages"&&e.jsx(ve,{items:n.messages,controlMode:t}),h==="devis"&&e.jsx(be,{items:n.devis})]})]}):null})})]})]})}function he({clients:t,loading:r,onOpenDetail:l,controlMode:x}){const[d,o]=c.useState("reservations"),g=[...t].filter(a=>d==="reservations"?a.reservationCount>0:d==="spent"?a.totalSpent>0:d==="orders"?a.orderCount>0:!0).sort((a,m)=>d==="reservations"?m.reservationCount-a.reservationCount:d==="spent"?m.totalSpent-a.totalSpent:d==="orders"?m.orderCount-a.orderCount:0).slice(0,30),N=a=>a===0?e.jsx(pe,{className:"w-5 h-5 text-yellow-500"}):a===1?e.jsx(H,{className:"w-5 h-5 text-gray-400"}):a===2?e.jsx(H,{className:"w-5 h-5 text-amber-600"}):e.jsx("span",{className:"w-5 h-5 flex items-center justify-center text-xs font-bold text-pastel-muted",children:a+1}),E=a=>a===0?"bg-yellow-50 border-yellow-200":a===1?"bg-gray-50 border-gray-200":a===2?"bg-amber-50 border-amber-200":"bg-white border-gray-100";return r?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(C,{className:"w-6 h-6 animate-spin text-pastel-gold"})}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-pastel-muted",children:"Trier par :"}),[{key:"reservations",label:"Réservations",icon:F}
1,{key:"spent",label:"Dépenses",icon:Z},{key:"orders",label:"Commandes",icon:I}].map(a=>{const m=a.icon;return e.jsxs("button",{onClick:()=>o(a.key),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${d===a.key?"bg-pastel-gold/10 text-pastel-gold-dark border border-pastel-gold/30":"bg-white text-pastel-muted border border-gray-200 hover:border-gray-300"}`,children:[e.jsx(m,{className:"w-3.5 h-3.5"}),a.label]},a.key)})]}),g.length===0?e.jsxs("div",{className:"text-center py-16",children:[e.jsx(Y,{className:"w-12 h-12 text-pastel-muted/30 mx-auto mb-3"}),e.jsx("p",{className:"text-pastel-muted",children:"Aucun client trouvé pour ce critère"})]}):e.jsx("div",{className:"space-y-2",children:g.map((a,m)=>e.jsxs("button",{onClick:()=>l(a.email),className:`w-full text-left flex items-center gap-4 p-4 rounded-xl border transition-all hover:shadow-md cursor-pointer ${E(m)}`,children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center",children:N(m)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-medium text-pastel-dark text-sm truncate",children:x?j(a.name):a.name||a.email}),m<3&&e.jsx(oe,{className:"w-3.5 h-3.5 text-yellow-400 fill-yellow-400 flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 mt-0.5 text-xs text-pastel-muted",children:[e.jsx("span",{children:x?k(a.email):a.email}),a.phone&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsx("span",{children:x?R(a.phone):$(a.phone)})]})]})]}),e.jsxs("div",{className:"flex items-center gap-4 flex-shrink-0",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-bold text-pastel-dark",children:a.reservationCount}),e.jsx("div",{className:"text-[10px] text-pastel-muted",children:"rés."})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-bold text-pastel-dark",children:a.orderCount}),e.jsx("div",{className:"text-[10px] text-pastel-muted",children:"cmd."})]}),a.totalSpent>0&&e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-sm font-serif font-bold text-pastel-gold-dark",children:[a.totalSpent.toFixed(0)," €"]}),e.jsx("div",{className:"text-[10px] text-pastel-muted",children:"dépensé"})]})]})]},a.email))})]})}const ge={pending:"bg-amber-50 text-amber-700",confirmed:"bg-emerald-50 text-emerald-700",cancelled:"bg-red-50 text-red-600",paid:"bg-emerald-50 text-emerald-700",sent:"bg-blue-50 text-blue-700",used:"bg-gray-100 text-gray-500",expired:"bg-gray-100 text-gray-500",new:"bg-pastel-gold/10 text-pastel-gold-dark",read:"bg-blue-50 text-blue-600",replied:"bg-emerald-50 text-emerald-700",archived:"bg-gray-100 text-gray-500",draft:"bg-gray-100 text-gray-600",filling:"bg-blue-50 text-blue-700",completed:"bg-emerald-50 text-emerald-700"},fe={pending:"En attente",confirmed:"Confirmée",cancelled:"Annulée",paid:"Payée",sent:"Envoyé",used:"Utilisé",expired:"Expiré",new:"Nouveau",read:"Lu",replied:"Répondu",archived:"Archivé",draft:"Brouillon",filling:"En cours",completed:"Complété"};function S({text:t}){return e.jsx("div",{className:"px-5 py-12 text-center text-sm text-pastel-muted",children:t})}function _({status:t}){return e.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full font-medium ${ge[t]||"bg-gray-100 text-gray-600"}`,children:fe[t]||t})}function je({items:t,controlMode:r}){return t.length===0?e.jsx(S,{text:"Aucune réservation"}):e.jsx("div",{className:"divide-y divide-gray-100",children:t.map(l=>e.jsxs("div",{className:"px-5 py-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{className:"w-3.5 h-3.5 text-pastel-muted"}),e.jsx("span",{className:"text-sm font-medium text-pastel-dark",children:new Date(l.date).toLocaleDateString("fr-FR",{weekday:"short",day:"numeric",month:"short",year:"numeric"})}),e.jsx("span",{className:"text-xs text-pastel-muted",children:l.service==="midi"?"Midi":"Soir"})]}),e.jsx(_,{status:l.status})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-xs text-pastel-muted",children:[e.jsxs("span",{children:[l.guest_count," convive",l.guest_count>1?"s":""]}),l.arrival_time&&e.jsx("span",{children:l.arrival_time}),l.code&&e.jsx("span",{className:"font-mono text-[10px]",children:l.code})]}),l.message&&e.jsx("p",{className:"text-xs text-pastel-muted mt-1 italic line-clamp-2",children:r?"Message masqué":l.message})]},l.id))})}function Ne({items:t,controlMode:r}){return t.length===0?e.jsx(S,{text:"Aucune commande"}):e.jsx("div",{className:"divide-y divide-gray-100",children:t.map(l=>e.jsxs("div",{className:"px-5 py-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(I,{className:"w-3.5 h-3.5 text-pastel-muted"}),e.jsx("span",{className:"text-sm font-medium text-pastel-dark",children:l.recipient_name?`Pour ${r?j(l.recipient_name):l.recipient_name}`:"Bon cadeau"})]}),e.jsx(_,{status:l.status})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-xs text-pastel-muted",children:[l.total_amount!=null&&e.jsxs("span",{className:"font-serif font-semibold text-pastel-gold-dark",children:[Number(l.total_amount).toFixed(0)," €"]}),e.jsx("span",{children:B(l.created_at)}),l.code&&e.jsx("span",{className:"font-mono text-[10px]",children:l.code})]})]},l.id))})}function ve({items:t,controlMode:r}){return t.length===0?e.jsx(S,{text:"Aucun message"}):e.jsx("div",{className:"divide-y divide-gray-100",children:t.map(l=>e.jsxs("div",{className:"px-5 py-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{className:"w-3.5 h-3.5 text-pastel-muted"}),e.jsx("span",{className:"text-sm font-medium text-pastel-dark capitalize",children:l.category||"Message"})]}),e.jsx(_,{status:l.status})]}),e.jsx("p",{className:"text-xs text-pastel-muted mt-1.5 line-clamp-2",children:r?"Message masqué":l.message}),e.jsx("span",{className:"text-[10px] text-pastel-muted mt-1 block",children:ue(l.created_at)})]},l.id))})}function be({items:t}){return t.length===0?e.jsx(S,{text:"Aucun devis"}):e.jsx("div",{className:"divide-y divide-gray-100",children:t.map(r=>e.jsxs("div",{className:"px-5 py-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-3.5 h-3.5 text-pastel-muted"}),e.jsx("span",{className:"text-sm font-medium text-pastel-dark",children:r.title||"Devis"})]}),e.jsx(_,{status:r.status})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-xs text-pastel-muted",children:[r.guest_count&&e.jsxs("span",{children:[r.guest_count," convive",r.guest_count>1?"s":""]}),r.price_per_person!=null&&e.jsxs("span",{className:"font-serif font-semibold text-pastel-gold-dark",children:[Number(r.price_per_person).toFixed(0)," €/pers."]}),r.event_date&&e.jsx("span",{children:B(r.event_date)})]}),e.jsxs("span",{className:"text-[10px] text-pastel-muted mt-1 block",children:["Créé le ",B(r.created_at)]})]},r.id))})}export{Ee as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.