PageSourceSearch

https://portal.easymarine.com.br/assets/CommercialPendingDocs_27b5d083.js

js easymarine.com.br collected 2026-09-24 13:45:50 UTC 4,129 bytes, 1 lines download raw bytes

1import{L as e,c9 as p,ag as n,T as d,Y as x,aj as u,O as h,ca as f,cb as j,cc as g,bV as N,bS as y,bU as v,cd as b}from"./index_ec3ba43a.js";import{P as C}from"./PageContainer_aa557e4a.js";import{u as w}from"./contract-queries_b0d5a95e.js";import{D as _}from"./DocumentSignatureFlow_69099a44.js";import"./design-tokens_ac19ed4e.js";import"./radio-group_40170f7f.js";import"./ClassificationBadge_4cd4cfc5.js";import"./contract_52c92b27.js";import"./signedFileUtils_c86d409c.js";import"./queryKeys_6fb14ad9.js";import"./file-check-2_a1cc9707.js";import"./shield-question_e78acb55.js";import"./useDocumentSigners_1dab4d7d.js";import"./cloud-upload_0b8d3c83.js";import"./circle-check-big_d5c77637.js";import"./download_2fc5ca08.js";import"./pencil_83058099.js";import"./plus_f3170890.js";import"./user-check_a3ff4fbd.js";import"./circle-x_7eac93d2.js";import"./useAssinafy_9e6f81cf.js";function D(s,t="BRL"){return s==null?"—":new Intl.NumberFormat("pt-BR",{style:"currency",currency:t}).format(s)}function z({contract:s}){var i,o,l,m,c;const[t,r]=h.useState(!1),a=((i=s.company)==null?void 0:i.razao_social)||((l=(o=s.proposal)==null?void 0:o.company)==null?void 0:l.razao_social)||((m=s.organization)==null?void 0:m.razao_social)||"Sem empresa";return e.jsx(f,{open:t,onOpenChange:r,children:e.jsxs(d,{className:"overflow-hidden",children:[e.jsx(j,{asChild:!0,children:e.jsxs(x,{className:"flex items-center gap-4 py-4 cursor-pointer hover:bg-muted/40 transition-colors",children:[e.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-primary/10 text-primary shrink-0",children:t?e.jsx(g,{className:"h-4 w-4"}):e.jsx(N,{className:"h-4 w-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"font-medium text-sm",children:["#",s.contract_number]}),s.title&&e.jsxs("span",{className:"text-sm text-muted-foreground truncate",children:["— ",s.title]})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground mt-0.5",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(y,{className:"h-3 w-3"}),a]}),((c=s.organization)==null?void 0:c.nome_fantasia)&&e.jsxs("span",{children:["• ",s.organization.nome_fantasia]})]})]}),e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.contract_value!=null&&e.jsxs(n,{variant:"outline",className:"gap-1",children:[e.jsx(v,{className:"h-3 w-3"}),D(s.contract_value,s.currency)]}),e.jsx(n,{variant:"secondary",children:"Aguardando Docs"})]})]})}),e.jsx(b,{children:e.jsx("div",{className:"border-t px-6 py-4 bg-muted/20",children:e.jsx(_,{contractId:s.id,canManage:!0})})})]})})}function Q(){const{data:s=[],isLoading:t}=w(),r=s.filter(a=>(a.status==="draft"||a.status==="pending_upload")&&!a.skip_documents);return e.jsx(C,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[e.jsx(p,{className:"h-6 w-6"}),"Aguardando Documentação"]}),e.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Contratos que precisam de documentação e definição de assinaturas"})]}),e.jsxs(n,{variant:"outline",className:"text-base px-3 py-1",children:[r.length," contrato",r.length!==1?"s":""]})]}),t?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):r.length===0?e.jsx(d,{children:e.jsxs(x,{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx(u,{className:"h-12 w-12 text-muted-foreground/40 mb-4"}),e.jsx("p",{className:"font-medium text-muted-foreground",children:"Nenhum contrato aguardando documentação"}),e.jsx("p",{className:"text-sm text-muted-foreground/70 mt-1",children:'Contratos aparecerão aqui quando estiverem com status "Aguardando Documentação"'})]})}):e.jsx("div",{className:"space-y-3",children:r.map(a=>e.jsx(z,{contract:a},a.id))})]})})}export{Q 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.