PageSourceSearch

https://tienda.suvecoex.com/assets/PadronFiscalPage-jnt1JXNV.js

js suvecoex.com collected 2026-10-08 22:38:51 UTC 20,391 bytes, 3 lines download raw bytes

1import{b as W,u as T,a as F,j as e}from"./query-BgSkTsSc.js";import{u as K,a as o}from"./router-p-njPGsf.js";import{u as D}from"./useCerrarConEscape-BXhuppe1.js";import{ak as Q,F as k,v as H,O as J,E as G,Q as A,I as q,bP as X,bQ as Y,bR as Z,aF as ee,w as se,bS as ae,bT as ie,s as re,bU as ne,bV as le,bW as te,bX as oe,bY as ce,k as de}from"./index-eXIxgKx3.js";function ue(){const c=`rif,razon_social,tipo_contribuyente,email_fiscal,telefono,direccion_fiscal
2J-12345678-9,Empresa Ejemplo C.A.,ordinario,[email protected],+58-212-5551234,Av. Principal, Caracas
3`,n=new Blob(["\uFEFF"+c],{type:"text/csv;charset=utf-8"}),l=URL.createObjectURL(n),t=document.createElement("a");t.href=l,t.download="plantilla-padron-fiscal.csv",t.click(),URL.revokeObjectURL(l)}const me={ordinario:"Ordinario",contribuyente_especial:"Contribuyente Especial",ente_publico:"Ente Público"},pe={verificado:"Verificado",no_verificado:"No verificado",en_revision:"En revisión",confirmado:"Confirmado por el cliente"};function he(a){const r={ordinario:"sa-pill draft",contribuyente_especial:"sa-pill info",ente_publico:"sa-pill warn"};return e.jsx("span",{className:r[a],children:me[a]})}function xe(a){const r={verificado:"sa-pill success",no_verificado:"sa-pill draft",en_revision:"sa-pill warn",confirmado:"sa-pill success"};return e.jsx("span",{className:r[a]??"sa-pill draft",children:pe[a]??a})}const fe={rif:"",razon_social:"",tipo_contribuyente:"ordinario",email_fiscal:"",telefono:"",direccion_fiscal:"",origen:"carga_manual"};function je({initial:a,editId:r,onClose:c,onSave:n,saving:l,error:t}){D(c,{bloqueado:l});const[u,h]=o.useState(a),m=(i,j)=>h(d=>({...d,[i]:j})),x=o.useRef(null),[N,z]=o.useState(!1),[f,y]=o.useState(null),[v,S]=o.useState(null),_=async i=>{const j=i.target.files?.[0];if(i.target.value="",!!j){z(!0),y(null);try{const d=await le(j);h(p=>({...p,rif:d.rif||p.rif,razon_social:d.razon_social||p.razon_social,tipo_contribuyente:d.tipo_contribuyente||p.tipo_contribuyente,direccion_fiscal:d.direccion_fiscal||p.direccion_fiscal})),S(p=>(p&&URL.revokeObjectURL(p.url),{url:URL.createObjectURL(j),esPdf:j.type==="application/pdf",nombre:j.name}));const C=d.fecha_inscripcion?` · Inscrito SENIAT: ${d.fecha_inscripcion.split("T")[0]}`:"";y({ok:!0,text:`Leído: ${d.rif}${d.razon_social?` · ${d.razon_social}`:""}${C}. Revisa y guarda.`})}catch(d){y({ok:!1,text:d instanceof Error?d.message:"No se pudo leer el comprobante."})}finally{z(!1)}}};return e.jsx("div",{className:"sa-modal-bg",onMouseDown:i=>{i.target===i.currentTarget&&c()},children:e.jsxs("form",{className:"sa-modal",role:"dialog","aria-modal":"true",onSubmit:i=>{i.preventDefault(),n(u)},children:[e.jsxs("div",{className:"sa-modal-hd",children:[e.jsxs("div",{children:[e.jsx("h3",{children:r?"Editar registro fiscal":"Nuevo registro fiscal"}),e.jsx("p",{className:"sub",children:"RIF autorizado para el checkout B2B."})]}),e.jsx("button",{type:"button",className:"sa-icon-btn","aria-label":"Cerrar",onClick:c,children:e.jsx(q,{size:14})})]}),e.jsxs("div",{className:"sa-modal-bd",children:[!r&&e.jsxs("div",{style:{border:"1px dashed var(--saryad-mist)",borderRadius:8,padding:"12px 14px",marginBottom:14,background:"var(--saryad-paper)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap"},children:[e.jsxs("div",{style:{minWidth:0},children:[e.jsx("div",{style:{fontSize:12.5,fontWeight:600,color:"var(--saryad-ink)"},children:"Leer del comprobante RIF (OCR)"}),e.jsx("div",{style:{fontSize:11.5,color:"var(--saryad-steel-2)",marginTop:2},children:"Sube el PDF del SENIAT y pre-llenamos los campos. Revisas y guardas."})]}),e.jsxs("button",{type:"button",className:"sa-btn secondary sm",disabled:N,onClick:()=>x.current?.click(),children:[e.jsx(k,{size:13})," ",N?"Leyendo…":"Subir comprobante"]}),e.jsx("input",{ref:x,type:"file",accept:"application/pdf,image/jpeg,image/png,.pdf,.jpg,.jpeg,.png",style:{display:"none"},onChange:_})]}),v&&e.jsx("div",{style:{marginTop:10,border:"1px solid #e3e6ea",borderRadius:10,overflow:"hidden",maxWidth:340},children:v.esPdf?e.jsx("iframe",{title:`Comprobante ${v.nombre}`,src:v.url,style:{width:"100%",height:220,border:"none"}}):e.jsx("img",{src:v.url,alt:`Comprobante ${v.nombre}`,style:{width:"100%",display:"block"}})}),f&&e.jsx("div",{style:{marginTop:8,fontSize:11.5,color:f.ok?"var(--saryad-mint)":"var(--saryad-rose)"},children:f.text})]}),e.jsxs("div",{className:"sa-field-row",style:{gridTemplateColumns:"1fr 2fr"},children:[e.jsxs("div",{className:"sa-field",children:[e.jsxs("label",{children:["RIF ",e.jsx("span",{className:"req",children:"*"})]}),e.jsx("input",{value:u.rif,onChange:i=>m("rif",i.target.value.toUpperCase()),placeholder:"J-12345678-9",required:!0,disabled:!!r})]}),e.jsxs("div",{className:"sa-field",children:[e.jsxs("label",{children:["Razón Social ",e.jsx("span",{className:"req",children:"*"})]}
3),e.jsx("input",{value:u.razon_social,onChange:i=>m("razon_social",i.target.value),placeholder:"Empresa Ejemplo C.A.",required:!0})]})]}),e.jsxs("div",{className:"sa-field",children:[e.jsx("label",{children:"Tipo de Contribuyente"}),e.jsxs("select",{value:u.tipo_contribuyente,onChange:i=>m("tipo_contribuyente",i.target.value),children:[e.jsx("option",{value:"ordinario",children:"Ordinario"}),e.jsx("option",{value:"contribuyente_especial",children:"Contribuyente Especial"}),e.jsx("option",{value:"ente_publico",children:"Ente Público"})]})]}),r&&e.jsxs("div",{className:"sa-field",children:[e.jsx("label",{children:"Estado de verificación"}),e.jsxs("select",{value:u.estado_verificacion??"no_verificado",onChange:i=>m("estado_verificacion",i.target.value),children:[e.jsx("option",{value:"no_verificado",children:"No verificado"}),e.jsx("option",{value:"verificado",children:"Verificado"}),e.jsx("option",{value:"en_revision",children:"En revisión"})]})]}),e.jsxs("div",{className:"sa-field",children:[e.jsx("label",{children:"Email Fiscal"}),e.jsx("input",{type:"email",value:u.email_fiscal??"",onChange:i=>m("email_fiscal",i.target.value||null),placeholder:"[email protected]"})]}),e.jsxs("div",{className:"sa-field-row",children:[e.jsxs("div",{className:"sa-field",children:[e.jsx("label",{htmlFor:"padron-telefono",children:"Teléfono"}),e.jsx(Z,{id:"padron-telefono",value:u.telefono??"",onValor:i=>m("telefono",i||null),placeholder:"0212-5551234"})]}),!r&&e.jsxs("div",{className:"sa-field",children:[e.jsx("label",{children:"Origen"}),e.jsxs("select",{value:u.origen,onChange:i=>m("origen",i.target.value),children:[e.jsx("option",{value:"carga_manual",children:"Carga manual"}),e.jsx("option",{value:"autoregistro",children:"Auto-registro"})]})]})]}),e.jsxs("div",{className:"sa-field",children:[e.jsx("label",{children:"Dirección Fiscal"}),e.jsx("textarea",{value:u.direccion_fiscal??"",onChange:i=>m("direccion_fiscal",i.target.value||null),placeholder:"Av. Principal, Edificio Central, Piso 3, Caracas, VE",rows:2})]}),t&&e.jsx("div",{className:"sa-field",children:e.jsxs("div",{className:"err",children:[e.jsx(q,{size:12})," ",t]})})]}),e.jsxs("div",{className:"sa-modal-ft",children:[e.jsx("button",{type:"button",className:"sa-btn ghost",onClick:c,children:"Cancelar"}),e.jsx("button",{type:"submit",className:"sa-btn primary",disabled:l,children:l?e.jsxs(e.Fragment,{children:[e.jsx(ee,{size:13})," Guardando…"]}):e.jsxs(e.Fragment,{children:[e.jsx(se,{size:13})," ",r?"Actualizar":"Registrar"]})})]})]})})}function ve(){const{data:a,isError:r}=T({queryKey:["admin","fiscal-alerts"],queryFn:te,staleTime:6e4});if(r||!a||a.total===0)return null;const c=a.danger>0;return e.jsxs("div",{role:"status","aria-label":"Avisos del padrón",className:"sa-card",style:{marginBottom:12,padding:"12px 16px",borderColor:c?"rgba(231,83,76,.5)":"rgba(243,156,18,.45)"},children:[e.jsxs("strong",{style:{fontSize:12.5},children:[a.total," comprobante(s) conviene volver a pedirlos",a.danger>0&&` · ${a.danger} urgente(s)`]}),e.jsx("ul",{style:{margin:"6px 0 0",paddingLeft:18,fontSize:12},children:a.items.slice(0,8).map(n=>e.jsxs("li",{style:{color:n.severidad==="danger"?"var(--saryad-rose)":"#a46408"},children:[e.jsx("span",{className:"sa-mono",children:n.rif})," · ",n.razon_social," — ",n.mensaje,n.detalle&&e.jsxs("span",{style:{color:"var(--saryad-steel-2)"},children:[" (",n.detalle,")"]})]},`${n.rif}-${n.tipo}`))}),a.items.length>8&&e.jsxs("div",{style:{fontSize:11.5,color:"var(--saryad-steel-2)",marginTop:4},children:["y ",a.items.length-8," más."]})]})}function Ce(){const a=W(),r=K(),[c,n]=o.useState(!1),[l,t]=o.useState(null),[u,h]=o.useState(null),[m,x]=o.useState(""),[N,z]=o.useState(""),[f,y]=o.useState(null),[v,S]=o.useState(null),[_,i]=o.useState(null),[j,d]=o.useState(null),C=o.useRef(null),{data:p=[],isLoading:M}=T({queryKey:["fiscal","padron",m,N],queryFn:()=>oe({q:m||void 0,tipo:N||void 0,limit:200}),staleTime:3e4}),L=F({mutationFn:s=>l?ae(l.id,s):ie(s),onSuccess:()=>{a.invalidateQueries({queryKey:["fiscal","padron"]}),n(!1),t(null),h(null)},onError:s=>h(s.message)}),w=F({mutationFn:s=>ne(s),onSuccess:()=>{a.invalidateQueries({queryKey:["fiscal","padron"]}),i(null)},onError:s=>re.error("No se puede eliminar",s.message)}),I=F({mutationFn:s=>X(s),onSuccess:s=>{a.invalidateQueries({queryKey:["fiscal","padron"]}),y(s),S(null),C.current&&(C.current.value="")},onError:s=>{S(s.message),y(null)}}),U=s=>{const b=s.target.files?.[0];b&&I.mutate(b)},R=o.useRef(null),[E,O]=o.useState(null),P=F({mutationFn:s=>Y(s),onSuccess:s=>{a.invalidateQueries({queryKey:["fiscal","padron"]}),O(s),R.current&&(R.current.value="")},onError:s=>{S(s.message),O(null)}}),$=s=>{const b=Array.from(s.target.files??[]);b.length&&P.mutate(b)},B=s=>{t(s),h(null),n(!0)},V=l?{rif:l.rif,razon_social:l.razon_social,tipo_contribuyente:l.tipo_contribuyente,email_fiscal:l.email_fiscal,telefono:l.telefono,direccion_fiscal:l.direccion_fiscal,origen:l.origen,estado_verificacion:l.estado_verificacion}:fe;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"sa-page-head",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"sa-page-title",children:"Padrón Fiscal"}),e.jsxs("p",{className:"sa-page-sub",children:[p.length," registros · RIFs autorizados para el checkout B2B"]})]}),e.jsxs("div",{className:"sa-page-actions",children:[e.jsxs("button",{type:"button",className:"sa-btn ghost sm",onClick:()=>
3r("/admin/dashboard"),children:[e.jsx(Q,{size:14})," Volver"]}),e.jsxs("button",{type:"button",className:"sa-btn ghost sm",onClick:ue,title:"Descargar plantilla CSV de carga masiva",children:[e.jsx(k,{size:14})," Plantilla CSV"]}),e.jsxs("button",{type:"button",className:"sa-btn secondary",onClick:()=>C.current?.click(),disabled:I.isPending,children:[e.jsx(k,{size:14})," ",I.isPending?"Importando…":"Importar CSV"]}),e.jsx("input",{ref:C,type:"file",accept:".csv",style:{display:"none"},onChange:U}),e.jsxs("button",{type:"button",className:"sa-btn secondary",onClick:()=>R.current?.click(),disabled:P.isPending,title:"Sube hasta 20 comprobantes RIF (PDF/JPG) — OCR y precarga automática",children:[e.jsx(k,{size:14})," ",P.isPending?"Leyendo comprobantes…":"Comprobantes RIF"]}),e.jsx("input",{ref:R,type:"file",multiple:!0,accept:"application/pdf,image/jpeg,image/png,.pdf,.jpg,.jpeg,.png",style:{display:"none"},onChange:$}),e.jsxs("button",{type:"button",className:"sa-btn primary",onClick:()=>{t(null),h(null),n(!0)},children:[e.jsx(H,{size:14})," Nuevo RIF"]})]})]}),e.jsx(ve,{}),E&&e.jsxs("div",{className:"sa-card",style:{marginBottom:12,padding:"12px 16px"},children:[e.jsxs("strong",{style:{fontSize:12.5},children:["Carga masiva: ",E.filter(s=>s.exito).length,"/",E.length," comprobantes leídos"]}),e.jsx("ul",{style:{margin:"6px 0 0",paddingLeft:18,fontSize:12},children:E.map(s=>e.jsxs("li",{style:{color:s.exito?"var(--saryad-mint)":"var(--saryad-rose)"},children:[s.archivo,": ",s.exito?`${s.rif} · ${s.razon_social??""} (${s.accion})`:s.error]},s.archivo))})]}),f&&e.jsxs("div",{style:{background:"var(--saryad-mint-12)",border:"1px solid rgba(0,200,130,.25)",borderRadius:8,padding:"10px 16px",fontSize:12.5,marginTop:16},children:[e.jsxs("p",{style:{margin:0,fontWeight:600,color:"var(--saryad-ink)"},children:["Importación completada: ",e.jsxs("strong",{children:[f.insertados," insertados"]})," · ",f.omitidos," omitidos"]}),f.errores.length>0&&e.jsxs("details",{style:{marginTop:6},children:[e.jsxs("summary",{style:{cursor:"pointer",color:"var(--saryad-steel)"},children:[f.errores.length," filas con error (ver detalles)"]}),e.jsx("ul",{style:{margin:"6px 0 0",paddingLeft:18,color:"var(--saryad-steel)"},children:f.errores.map((s,b)=>e.jsxs("li",{children:["Fila ",s.fila," · ",s.rif||"—",": ",s.motivo]},b))})]}),e.jsx("button",{type:"button",className:"sa-btn ghost sm",style:{marginTop:6},onClick:()=>y(null),children:"Cerrar"})]}),v&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,background:"var(--saryad-rose-12)",border:"1px solid var(--saryad-rose)",borderRadius:8,padding:"10px 16px",fontSize:12.5,color:"var(--saryad-rose)",marginTop:16},children:[e.jsx(J,{size:14,style:{flexShrink:0}})," ",v]}),e.jsxs("div",{className:"sa-card",style:{padding:0,marginTop:16},children:[e.jsxs("div",{className:"sa-filters",children:[e.jsxs("div",{className:"sa-inp-wrap",children:[e.jsx("div",{className:"ico",children:e.jsx(G,{size:14})}),e.jsx("input",{className:"sa-inp",value:m,onChange:s=>x(s.target.value),placeholder:"Buscar RIF o razón social…",style:{width:280,paddingLeft:28}}
3)]}),e.jsxs("select",{className:"sa-inp",value:N,onChange:s=>z(s.target.value),children:[e.jsx("option",{value:"",children:"Todos los tipos"}),e.jsx("option",{value:"ordinario",children:"Ordinario"}),e.jsx("option",{value:"contribuyente_especial",children:"Contribuyente Especial"}),e.jsx("option",{value:"ente_publico",children:"Ente Público"})]}),e.jsx("div",{style:{flex:1}}),e.jsxs("span",{className:"sa-muted",style:{fontSize:12},children:[p.length," registros"]})]}),e.jsx("div",{style:{overflow:"auto"},children:e.jsxs("table",{className:"sa-tbl",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"RIF"}),e.jsx("th",{children:"Razón Social"}),e.jsx("th",{children:"Tipo"}),e.jsx("th",{children:"Estado"}),e.jsx("th",{children:"Email fiscal"}),e.jsx("th",{children:"Origen"}),e.jsx("th",{style:{width:150}})]})}),e.jsx("tbody",{children:M?e.jsx("tr",{children:e.jsx("td",{colSpan:7,children:e.jsx("div",{className:"sa-empty",children:"Cargando…"})})}):p.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:7,children:e.jsxs("div",{className:"sa-empty",children:[e.jsx("div",{style:{fontWeight:500},children:"Padrón vacío"}),e.jsx("div",{style:{fontSize:12.5,marginTop:4},children:"Registra RIFs individualmente o importa un CSV masivo."})]})})}):p.map(s=>e.jsxs("tr",{children:[e.jsx("td",{className:"id-cell",children:s.rif}),e.jsx("td",{className:"pri-cell",style:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.razon_social}),e.jsx("td",{children:he(s.tipo_contribuyente)}),e.jsx("td",{children:xe(s.estado_verificacion)}),e.jsx("td",{className:"sa-muted",children:s.email_fiscal??"—"}),e.jsx("td",{className:"sa-muted",style:{fontSize:11.5},children:s.origen.replace("_"," ")}),e.jsx("td",{children:e.jsxs("div",{style:{display:"flex",gap:6},children:[e.jsx("button",{type:"button",className:"sa-btn sm",onClick:()=>d(s),children:"Ver RIF"}),e.jsx("button",{type:"button",className:"sa-btn sm",onClick:()=>B(s),children:"Editar"}),e.jsxs("button",{type:"button",className:"sa-btn danger sm",onClick:()=>i(s),children:[e.jsx(A,{size:12})," Eliminar"]})]})})]},s.id))})]})})]}),e.jsx("div",{style:{background:"var(--saryad-paper)",border:"1px solid var(--saryad-mist)",borderRadius:8,padding:"10px 16px",marginTop:16},children:e.jsxs("p",{style:{margin:0,fontSize:12,color:"var(--saryad-steel)",lineHeight:1.6},children:[e.jsx("strong",{children:"Formato CSV para importación masiva:"})," ",e.jsx("code",{className:"sa-mono",children:"rif,razon_social,tipo_contribuyente,email_fiscal,telefono,direccion_fiscal"})," ","· Encabezado obligatorio · UTF-8 · máx. 5 MB"]})}),c&&e.jsx(je,{initial:V,editId:l?.id??null,onClose:()=>{n(!1),t(null),h(null)},onSave:s=>L.mutate(s),saving:L.isPending,error:u}),j&&e.jsx(ge,{registro:j,onCerrar:()=>d(null)}),_&&e.jsx("div",{className:"sa-modal-bg",onMouseDown:s=>{s.target===s.currentTarget&&i(null)},children:e.jsxs("div",{className:"sa-modal",role:"dialog","aria-modal":"true",style:{maxWidth:400},children:[e.jsxs("div",{className:"sa-modal-hd",children:[e.jsxs("div",{children:[e.jsx("h3",{children:"¿Eliminar registro?"}),e.jsx("p",{className:"sub",children:"Esta acción no se puede deshacer."})]}),e.jsx("button",{type:"button",className:"sa-icon-btn","aria-label":"Cerrar",onClick:()=>i(null),children:e.jsx(q,{size:14})})]}),e.jsx("div",{className:"sa-modal-bd",children:e.jsxs("p",{style:{margin:0,fontSize:13,color:"var(--saryad-steel)",lineHeight:1.5},children:["Se eliminará el RIF ",e.jsx("strong",{children:_.rif})," (",_.razon_social,"). No se puede deshacer si no tiene pedidos asociados."]})}),e.jsxs("div",{className:"sa-modal-ft",children:[e.jsx("button",{type:"button",className:"sa-btn ghost",onClick:()=>i(null),children:"Cancelar"}),e.jsxs("button",{type:"button",className:"sa-btn danger",onClick:()=>w.mutate(_.id),disabled:w.isPending,children:[e.jsx(A,{size:13})," ",w.isPending?"Eliminando…":"Eliminar"]})]})]})})]})}function ge({registro:a,onCerrar:r}){D(r);const{data:c,isLoading:n,isError:l}=T({queryKey:["padron","documento",a.id],queryFn:()=>ce(a.id),staleTime:0,gcTime:0,retry:!1}),t=T({queryKey:["padron","documento-archivo",a.id],queryFn:()=>de(c.url),enabled:!!c?.disponible&&!!c?.url,staleTime:0,gcTime:0,retry:!1}
3),[u,h]=o.useState(null);o.useEffect(()=>{if(!t.data)return;const x=URL.createObjectURL(t.data);return h(x),()=>URL.revokeObjectURL(x)},[t.data]);const m=t.data?.type==="application/pdf";return e.jsx("div",{className:"sa-modal-bg",onMouseDown:x=>{x.target===x.currentTarget&&r()},children:e.jsxs("div",{className:"sa-modal",style:{maxWidth:980,width:"94vw"},children:[e.jsxs("div",{className:"sa-modal-hd",children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:600},children:a.rif}),e.jsx("div",{className:"sa-muted",style:{fontSize:12},children:a.razon_social})]}),e.jsx("button",{type:"button",className:"sa-btn ghost sm",onClick:r,children:"Cerrar"})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"minmax(0,1.4fr) minmax(0,1fr)",gap:16,padding:18},children:[e.jsxs("div",{style:{border:"1px solid var(--saryad-mist)",borderRadius:10,overflow:"hidden",minHeight:380,background:"var(--saryad-mist-2)"},children:[(n||t.isLoading)&&e.jsx("div",{className:"sa-empty",style:{padding:28},children:"Abriendo el documento…"}),!n&&c?.disponible&&u&&(m?e.jsx("iframe",{title:`Comprobante RIF ${a.rif}`,src:u,style:{width:"100%",height:460,border:"none"}}):e.jsx("img",{src:u,alt:`Comprobante RIF ${a.rif}`,style:{width:"100%",display:"block"}})),!n&&(!c?.disponible||t.isError)&&e.jsxs("div",{className:"sa-empty",style:{padding:28,textAlign:"center"},children:[e.jsx("div",{style:{fontWeight:500},children:"Sin documento que mostrar"}),e.jsx("div",{style:{fontSize:12.5,marginTop:6,color:"var(--saryad-steel-2)"},children:l||t.isError?"No pudimos abrir el documento. Inténtalo de nuevo; los datos de la derecha siguen siendo válidos.":c?.motivo??"Este registro se cargó sin comprobante."})]})]}),e.jsxs("div",{style:{display:"grid",gap:10,alignContent:"start",fontSize:13},children:[e.jsx("div",{style:{fontWeight:600,fontSize:12,letterSpacing:".06em",textTransform:"uppercase",color:"var(--saryad-steel-2)"},children:"Lo que se leyó"}),e.jsx(g,{etq:"RIF",val:a.rif}),e.jsx(g,{etq:"Razón social",val:a.razon_social}),e.jsx(g,{etq:"Tipo",val:a.tipo_contribuyente}),e.jsx(g,{etq:"Dirección fiscal",val:a.direccion_fiscal}),e.jsx(g,{etq:"Correo fiscal",val:a.email_fiscal}),e.jsx(g,{etq:"Teléfono",val:a.telefono}),e.jsx(g,{etq:"Origen",val:(a.origen??"").replace("_"," ")}),e.jsx(g,{etq:"Estado",val:a.estado_verificacion})]})]})]})})}function g({etq:a,val:r}){return e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:11,color:"var(--saryad-steel-2)"},children:a}),e.jsx("div",{style:{fontWeight:500,wordBreak:"break-word"},children:r||"—"})]})}export{Ce as PadronFiscalPage};

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.