PageSourceSearch

https://sentinel-365-c9d4f.web.app/assets/ResultadoPage-CYuLwuUg.js

js sentinel-365-c9d4f.web.app collected 2026-10-03 12:36:24 UTC 2,284 bytes, 1 lines download raw bytes

1import{u as m,j as e}from"./react-vendor-pafHdoJx.js";import{b as n,d}from"./index-Db0fDLGN.js";import{R as i}from"./ResultadoDoMes-CDuhubaN.js";import{n as l,v as c,A as u}from"./ui-vendor-DLXJn6s3.js";import"./map-vendor-Dr8zbd0c.js";import"./firebase-vendor-D3UzkAhn.js";import"./ErrorState-B9i6eo2M.js";function y(){const t=m(),{data:s,loading:o}=n(()=>d.resultado().catch(()=>null),[]),a=s==null?void 0:s.cobertura,r=!!a&&((a.documentosEmitidos??0)>0||(a.viagensEncerradas??0)>0);return e.jsxs("div",{className:"space-y-4","data-testid":"resultado",children:[e.jsxs("header",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5",style:{color:"#059669"},"aria-hidden":"true"}),e.jsx("h1",{className:"text-xl font-bold",style:{color:"var(--page-text)"},children:"Resultado"})]}),e.jsx("p",{className:"text-xs mt-1",style:{color:"var(--page-text-muted)"},children:"Como foi o mês, lido do CT-e e do MDF-e — sem depender de lançamento manual."})]}),o&&!s&&e.jsx("p",{className:"text-sm",style:{color:"var(--page-text-muted)"},children:"Lendo os documentos do mês…"}),!o&&!r&&e.jsx(x,{onIr:()=>t("/documentos?tab=entrada")}),r&&e.jsx(i,{})]})}function x({onIr:t}){return e.jsxs("div",{className:"rounded-xl px-4 py-6 text-center",style:{background:"var(--surface-primary)",border:"1px solid var(--border-primary)"},children:[e.jsx(c,{className:"w-8 h-8 mx-auto mb-2",style:{color:"var(--page-text-muted)"},"aria-hidden":"true"}),e.jsx("p",{className:"text-sm font-medium",style:{color:"var(--page-text)"},children:"Nenhum documento fiscal neste mês."}),e.jsx("p",{className:"text-xs mt-1 max-w-md mx-auto leading-relaxed",style:{color:"var(--page-text-muted)"},children:"Estes números saem do CT-e e do MDF-e — o mesmo documento que a sua empresa já emite por obrigação legal. Eles chegam de dois jeitos, indiferentemente: pelo nosso emissor, ou pela busca automática na SEFAZ com o certificado A1. Enquanto nenhum dos dois trouxe documento, não há o que somar."}),e.jsxs("button",{type:"button",onClick:t,className:"btn-secondary text-sm mt-3 inline-flex items-center gap-1.5",children:["Ligar a busca de documentos",e.jsx(u,{className:"w-3.5 h-3.5","aria-hidden":"true"})]})]})}export{y as ResultadoPage,y 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.