PageSourceSearch

https://erpbuffet.vercel.app/assets/VisitaNegociacaoCard-_tHKLyc_.js

js erpbuffet.vercel.app collected 2026-10-03 06:56:39 UTC 3,292 bytes, 1 lines download raw bytes

1import{r as i,j as e}from"./vendor-react-7u1RWBxh.js";import{g as x,a1 as m,q as p,l as u}from"./index-CsmgEP4X.js";import{f}from"./vendor-utils-c_osFa8l.js";import{a0 as h,j,_ as N,F as g,k as b,ca as v,by as w,Z as y}from"./vendor-ui-BP3jJasw.js";const _={criacao:g,pagamento:b,assinatura:v,logistica:w,status_change:y};function I({contrato:l,timeline:r}){const o=l?.clientes,a=l?.propostas,[n,d]=i.useState(null);return e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(h,{className:"h-4 w-4"}),e.jsx("h3",{className:"text-sm font-bold uppercase tracking-wider",children:"Histórico"}),e.jsxs(x,{variant:"outline",className:"ml-auto text-[10px]",children:[r.length," eventos"]})]}),e.jsxs("div",{className:"p-3 rounded-lg border bg-muted/30 mb-3 space-y-1",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Cliente"}),e.jsx("span",{className:"text-[10px] font-semibold",children:o?.nome||"—"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Evento"}),e.jsx("span",{className:"text-[10px] font-semibold",children:a?.evento_nome||"—"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Convidados"}),e.jsx("span",{className:"text-[10px] font-semibold",children:a?.evento_numero_convidados||"—"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Local"}),e.jsx("span",{className:"text-[10px] font-semibold truncate max-w-[60%]",children:a?.evento_local||"—"})]}),a?.assessoria_nome&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Assessoria"}),e.jsx("span",{className:"text-[10px] font-semibold",children:a.assessoria_nome})]})]}),e.jsx(m,{className:"flex-1 min-h-0",children:e.jsxs("div",{className:"space-y-0 relative pr-2",children:[e.jsx("div",{className:"absolute left-[7px] top-2 bottom-2 w-px bg-border"}),r.map(s=>{const c=_[s.tipo]||j,t=n===s.id;return e.jsxs("div",{className:"relative pl-0",children:[e.jsxs("button",{onClick:()=>d(t?null:s.id),className:"w-full flex gap-2.5 py-1.5 text-left hover:bg-muted/30 rounded px-1 transition-colors",children:[e.jsx("div",{className:"shrink-0 w-[15px] h-[15px] rounded-full bg-foreground
1/10 border border-foreground/30 flex items-center justify-center z-10",children:e.jsx(c,{className:"h-2 w-2 text-foreground"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-[10px] font-medium leading-tight",children:s.titulo}),e.jsx("p",{className:"text-[9px] text-muted-foreground",children:f(new Date(s.created_at),"dd/MM HH:mm",{locale:u})})]}),s.descricao&&e.jsx(N,{className:p("h-3 w-3 shrink-0 text-muted-foreground transition-transform",t&&"rotate-180")})]}),t&&s.descricao&&e.jsx("div",{className:"ml-6 mb-2 px-2 py-1.5 rounded bg-muted/30 border",children:e.jsx("p",{className:"text-[10px] text-muted-foreground whitespace-pre-wrap",children:s.descricao})})]},s.id)})]})})]})}export{I as VisitaNegociacaoCard};

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.