1import{an as p,dn as d,u as l,bt as h,j as a,aq as u,ar as g,ax as y,q as s,bu as f,dp as v,c as x}from"./index-D1LcTXUm.js";import{A as j}from"./Tabs-BMwJXkFx.js";import{S as F}from"./form-oxU3Jncy.js";import"./vendor-CWc6w16D.js";import"./index-DqUnA_7P.js";function A(){const{shippingCompanyId:n}=p(),{loading:t,register:r}=d(n),o=l(),i=()=>{o(-1)},e=h({resolver:f(v),defaultValues:async()=>({shipping_company_id:n})}),c=async m=>{try{await r({...m,shipping_company_id:n}),x("Lançamento criado com sucesso!"),window.dispatchEvent(new CustomEvent("refreshFinancialBalance")),setTimeout(()=>{i()},1e3)}catch{}};return a.jsxs(a.Fragment,{children:[a.jsx(j,{active:"financeiro"}),a.jsx(u,{...e,children:a.jsx("form",{onSubmit:e.handleSubmit(c),children:a.jsx(g,{header:{icon:y,title:"Registro financeiro",description:"Registre um novo lançamento no saldo da transportadora."},footer:{hint:"Revise os valores antes de confirmar o lançamento.",children:a.jsxs(a.Fragment,{children:[a.jsx(s,{type:"button",variant:"secondary",onClick:i,children:"Voltar"}),a.jsx(s,{type:"submit",variant:"primary",loading:t,children:"Cadastrar"})]})},children:a.jsx(F,{})})})})]})}export{A 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.