PageSourceSearch

https://japaratinga.al.gov.br/build/assets/Edit-ysz3Z7f-.js

js japaratinga.al.gov.br collected 2026-10-02 22:58:47 UTC 42,029 bytes, 1 lines download raw bytes

1import{c as Ga,j as t,a as ns,r as aa,b as Ha,H as xs,L as ps}from"./app-CTaY8UJf.js";import{C as Wa,a as Ja,b as Qa,c as Ua}from"./card-UxP9oPxk.js";import{B as Y}from"./button-DXCKLHtj.js";import{I as q}from"./input-7aHhCeCr.js";import{C as js}from"./currency-input-SUW_Z-3x.js";import{L as N}from"./label-CxCrcTSv.js";import{T as _s}from"./textarea-0W-7qht9.js";import{T as ge,a as k,c as X,b as es,d as ts,e as as}from"./table-Cb1Hol7G.js";import{A as gs}from"./AppLayoutWithNotifications-mus8tTbI.js";import{D as is,a as cs,b as ms,c as ds,d as fs,e as hs}from"./dialog-BKzHwCpL.js";import vs from"./triangle-alert-Dd-lbaJ8.js";import{D as rs}from"./users-BYuco8Ea.js";import{C as Ns}from"./video-CWkR2iFG.js";import bs from"./eye-BixEHFrD.js";import ss from"./trash-2-QtamTJOn.js";import ys from"./arrow-left-CPptMQyl.js";import Cs from"./save-tvu6uyS3.js";import Ss from"./paperclip-CmJi9_qe.js";import ls from"./plus-BsfGhhT4.js";import"./app-CNmQMdEi.js";import"./index-fQ3brVpV.js";import"./x-DmP7A1Bz.js";import"./createLucideIcon-CmjF8lT1.js";import"./circle-alert-CTn79Wf8.js";import"./circle-x-VMcb1sXz.js";import"./circle-check-big-0QGs7tCc.js";import"./app-layout-DHg6PkRO.js";import"./index-sraz7nLe.js";import"./index-CsfSsVkk.js";import"./index-Svmmcv6D.js";import"./index-CJBlix5Q.js";import"./index-DHUBBKJC.js";import"./index-BE_AIKwc.js";import"./chevron-right-Dcl2lTY9.js";import"./dropdown-menu-D6OZoFra.js";import"./index-DXg2b8Vm.js";import"./index-msf3AG1t.js";import"./avatar-BRFzpAWX.js";import"./index-BGC6_Qsa.js";import"./index-C_SHgnPd.js";import"./layers-Cb0hKdx0.js";import"./shield-check-CXJJ4XEh.js";import"./file-text-jraIksbC.js";import"./file-check-tR1YCl9R.js";import"./message-square-BtERmk2L.js";import"./trending-up-CsQX3MuM.js";import"./handshake-ppgb6oUe.js";import"./calendar-CEIt2YqY.js";import"./trending-down-B7TczfdV.js";import"./building-BaJqVYxM.js";import"./list-Dehc_B-t.js";import"./activity-D1Ey-wIS.js";import"./search-BOJp92ky.js";import"./breadcrumbs-ByKSkPWt.js";function os(c){const e=Ga.c(27),{isOpen:a,onClose:u,onConfirm:I,title:P,description:V,itemName:i,isLoading:m}=c,O=P===void 0?"Confirmar Exclusão":P,S=V===void 0?"Tem certeza que deseja excluir este item? Esta ação não pode ser desfeita.":V,o=m===void 0?!1:m;let p;e[0]!==I?(p=()=>{I()},e[0]=I,e[1]=p):p=e[1];const f=p;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(vs,{className:"h-5 w-5 text-red-500"}),e[2]=b):b=e[2];let g;e[3]!==O?(g=t.jsxs(is,{className:"flex items-center gap-2",children:[b,O]}),e[3]=O,e[4]=g):g=e[4];const y=i?`${S} Item: ${i}`:S;let C;e[5]!==y?(C=t.jsx(cs,{children:y}),e[5]=y,e[6]=C):C=e[6];let h;e[7]!==g||e[8]!==C?(h=t.jsxs(ms,{children:[g,C]}),e[7]=g,e[8]=C,e[9]=h):h=e[9];let d;e[10]!==o||e[11]!==u?(d=t.jsx(Y,{variant:"outline",onClick:u,disabled:o,children:"Cancelar"}),e[10]=o,e[11]=u,e[12]=d):d=e[12];const x=o?"Excluindo...":"Excluir";let j;e[13]!==f||e[14]!==o||e[15]!==x?(j=t.jsx(Y,{variant:"destructive",onClick:f,disabled:o,children:x}),e[13]=f,e[14]=o,e[15]=x,e[16]=j):j=e[16];let v;e[17]!==d||e[18]!==j?(v=t.jsxs(ds,{className:"flex gap-2",children:[d,j]}),e[17]=d,e[18]=j,e[19]=v):v=e[19];let _;e[20]!==v||e[21]!==h?(_=t.jsxs(fs,{className:"sm:max-w-[425px]",children:[h,v]}),e[20]=v,e[21]=h,e[22]=_):_=e[22];let D;return e[23]!==a||e[24]!==u||e[25]!==_?(D=t.jsx(hs,{open:a,onOpenChange:u,children:_}),e[23]=a,e[24]=u,e[25]=_,e[26]=D):D=e[26],D}function Ds(c){const e=Ga.c(104),{isOpen:a,onClose:u,empenhoId:I,empenhoNumero:P}=c;let V;e[0]===Symbol.for("react.memo_cache_sentinel")?(V={numero:"",data:"",valor:""},e[0]=V):V=e[0];const{data:i,setData:m,post:O,processing:S,errors:o,reset:p}=ns(V);let f,b,g,y,C,h,d,x,j,v,_,D,A,R,E,z,H,L;if(e[1]!==i.data||e[2]!==i.numero||e[3]!==i.valor||e[4]!==I||e[5]!==P||e[6]!==o.data||e[7]!==o.numero||e[8]!==a||e[9]!==u||e[10]!==O||e[11]!==p||e[12]!==m){C=F=>{const ce=F.target.value,re=ce.replace(/\D/g,""),xe=parseInt(re)||0;m("valor",(xe/100).toString()),F.target.value=se(ce)};const se=ws;let U;e[31]!==I||e[32]!==u||e[33]!==O||e[34]!==p?(U=F=>{F.preventDefault(),O(`/portal/admin/empenhos/${I}/liquidacoes`,{onSuccess:()=>{p(),u(),window.location.reload()},onError:Ls}
1)},e[31]=I,e[32]=u,e[33]=O,e[34]=p,e[35]=U):U=e[35];const ve=U;let ne;e[36]!==u||e[37]!==p?(ne=()=>{p(),u()},e[36]=u,e[37]=p,e[38]=ne):ne=e[38],y=ne,g=hs,j=a,v=y,b=fs,d="sm:max-w-[500px]";let ie;e[39]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsxs(is,{className:"flex items-center gap-2",children:[t.jsx(rs,{className:"h-5 w-5"}),"Cadastrar Liquidação"]}),e[39]=ie):ie=e[39],e[40]!==P?(x=t.jsxs(ms,{children:[ie,t.jsxs(cs,{children:["Empenho: ",P]})]}),e[40]=P,e[41]=x):x=e[41],z=ve,H="space-y-4";let me;e[42]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(N,{htmlFor:"numero",children:"Número da Liquidação"}),e[42]=me):me=e[42];let ee;e[43]!==m?(ee=F=>m("numero",F.target.value),e[43]=m,e[44]=ee):ee=e[44];let G;e[45]!==i.numero||e[46]!==ee?(G=t.jsx(q,{id:"numero",value:i.numero,onChange:ee,placeholder:"LIQ001",required:!0}),e[45]=i.numero,e[46]=ee,e[47]=G):G=e[47];let le;e[48]!==o.numero?(le=o.numero&&t.jsx("p",{className:"text-sm text-red-500",children:o.numero}),e[48]=o.numero,e[49]=le):le=e[49],e[50]!==G||e[51]!==le?(L=t.jsxs("div",{className:"space-y-2",children:[me,G,le]}),e[50]=G,e[51]=le,e[52]=L):L=e[52];let K;e[53]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(N,{htmlFor:"data",children:"Data"}),e[53]=K):K=e[53];let te;e[54]!==m?(te=F=>m("data",F.target.value),e[54]=m,e[55]=te):te=e[55];let $;e[56]!==i.data||e[57]!==te?($=t.jsx(q,{id:"data",type:"date",value:i.data,onChange:te,required:!0}),e[56]=i.data,e[57]=te,e[58]=$):$=e[58];let oe;e[59]!==o.data?(oe=o.data&&t.jsx("p",{className:"text-sm text-red-500",children:o.data}),e[59]=o.data,e[60]=oe):oe=e[60],e[61]!==$||e[62]!==oe?(h=t.jsxs("div",{className:"space-y-2",children:[K,$,oe]}),e[61]=$,e[62]=oe,e[63]=h):h=e[63],R="space-y-2",e[64]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(N,{htmlFor:"valor",children:"Valor"}),e[64]=E):E=e[64],f=q,_="valor",D="text",A=se((parseFloat(i.valor)*100).toString()),e[1]=i.data,e[2]=i.numero,e[3]=i.valor,e[4]=I,e[5]=P,e[6]=o.data,e[7]=o.numero,e[8]=a,e[9]=u,e[10]=O,e[11]=p,e[12]=m,e[13]=f,e[14]=b,e[15]=g,e[16]=y,e[17]=C,e[18]=h,e[19]=d,e[20]=x,e[21]=j,e[22]=v,e[23]=_,e[24]=D,e[25]=A,e[26]=R,e[27]=E,e[28]=z,e[29]=H,e[30]=L}else f=e[13],b=e[14],g=e[15],y=e[16],C=e[17],h=e[18],d=e[19],x=e[20],j=e[21],v=e[22],_=e[23],D=e[24],A=e[25],R=e[26],E=e[27],z=e[28],H=e[29],L=e[30];let W;e[65]!==f||e[66]!==C||e[67]!==_||e[68]!==D||e[69]!==A?(W=t.jsx(f,{id:_,type:D,value:A,onChange:C,placeholder:"R$ 0,00",required:!0}),e[65]=f,e[66]=C,e[67]=_,e[68]=D,e[69]=A,e[70]=W):W=e[70];let T;e[71]!==o.valor?(T=o.valor&&t.jsx("p",{className:"text-sm text-red-500",children:o.valor}),e[71]=o.valor,e[72]=T):T=e[72];let r;e[73]!==W||e[74]!==T||e[75]!==R||e[76]!==E?(r=t.jsxs("div",{className:R,children:[E,W,T]}),e[73]=W,e[74]=T,e[75]=R,e[76]=E,e[77]=r):r=e[77];let n;e[78]!==y||e[79]!==S?(n=t.jsx(Y,{type:"button",variant:"outline",onClick:y,disabled:S,children:"Cancelar"}),e[78]=y,e[79]=S,e[80]=n):n=e[80];const ae=S?"Salvando...":"Cadastrar";let M;e[81]!==S||e[82]!==ae?(M=t.jsx(Y,{type:"submit",disabled:S,className:"flex items-center gap-2",children:ae}),e[81]=S,e[82]=ae,e[83]=M):M=e[83];let s;e[84]!==n||e[85]!==M?(s=t.jsxs(ds,{className:"flex gap-2",children:[n,M]}),e[84]=n,e[85]=M,e[86]=s):s=e[86];let Z;e[87]!==h||e[88]!==r||e[89]!==s||e[90]!==z||e[91]!==H||e[92]!==L?(Z=t.jsxs("form",{onSubmit:z,className:H,children:[L,h,r,s]}),e[87]=h,e[88]=r,e[89]=s,e[90]=z,e[91]=H,e[92]=L,e[93]=Z):Z=e[93];let J;e[94]!==b||e[95]!==d||e[96]!==x||e[97]!==Z?(J=t.jsxs(b,{className:d,children:[x,Z]}),e[94]=b,e[95]=d,e[96]=x,e[97]=Z,e[98]=J):J=e[98];let Q;return e[99]!==g||e[100]!==j||e[101]!==v||e[102]!==J?(Q=t.jsx(g,{open:j,onOpenChange:v,children:J}),e[99]=g,e[100]=j,e[101]=v,e[102]=J,e[103]=Q):Q=e[103],Q}function Ls(c){console.error("Error creating liquidacao:",c)}function ws(c){const e=c.replace(/\D/g,""),a=parseInt(e)||0;return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2}).format(a/100)}function qs(c){const e=Ga.c(149),{isOpen:a,onClose:u,empenhoId:I,empenhoNumero:P}=c;let V;e[0]===Symbol.for("react.memo_cache_sentinel")?(V={banco:"",agencia:"",conta:"",documento:"",valor:"",data:""},e[0]=V):V=e[0];const{data:i,setData:m,post:O,processing:S,errors:o,reset:p}=ns(V);let f,b,g,y,C,h,d,x,j,v,_,D,A,R,E,z,H,L,W,T,r;if(e[1]!==i.agencia||e[2]!==i.banco||e[3]!==i.conta||e[4]!==i.data||e[5]!==i.documento||e[6]!==i.valor||e[7]!==I||e[8]!==P||e[9]!==o.agencia||e[10]!==o.banco||e[11]!==o.conta||e[12]!==o.data||e[13]!==o.documento||e[14]!==a||e[15]!==u||e[16]!==O||e[17]!==p||e[18]!==m){C=w=>{const Se=w.target.value,Le=Se.replace(/\D/g,""),ye=parseInt(Le)||
10;m("valor",(ye/100).toString()),w.target.value=ne(Se)};const ne=Fs;let ie;e[40]!==I||e[41]!==u||e[42]!==O||e[43]!==p?(ie=w=>{w.preventDefault(),O(`/portal/admin/empenhos/${I}/pagamentos`,{onSuccess:()=>{p(),u(),window.location.reload()},onError:Os})},e[40]=I,e[41]=u,e[42]=O,e[43]=p,e[44]=ie):ie=e[44];const me=ie;let ee;e[45]!==u||e[46]!==p?(ee=()=>{p(),u()},e[45]=u,e[46]=p,e[47]=ee):ee=e[47],y=ee,g=hs,D=a,A=y,b=fs,v="sm:max-w-[500px]";let G;e[48]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsxs(is,{className:"flex items-center gap-2",children:[t.jsx(Ns,{className:"h-5 w-5"}),"Cadastrar Pagamento"]}),e[48]=G):G=e[48],e[49]!==P?(_=t.jsxs(ms,{children:[G,t.jsxs(cs,{children:["Empenho: ",P]})]}),e[49]=P,e[50]=_):_=e[50],W=me,T="space-y-4";let le;e[51]===Symbol.for("react.memo_cache_sentinel")?(le=t.jsx(N,{htmlFor:"banco",children:"Banco"}),e[51]=le):le=e[51];let K;e[52]!==m?(K=w=>m("banco",w.target.value),e[52]=m,e[53]=K):K=e[53];let te;e[54]!==i.banco||e[55]!==K?(te=t.jsx(q,{id:"banco",value:i.banco,onChange:K,placeholder:"Banco do Brasil",required:!0}),e[54]=i.banco,e[55]=K,e[56]=te):te=e[56];let $;e[57]!==o.banco?($=o.banco&&t.jsx("p",{className:"text-sm text-red-500",children:o.banco}),e[57]=o.banco,e[58]=$):$=e[58],e[59]!==te||e[60]!==$?(r=t.jsxs("div",{className:"space-y-2",children:[le,te,$]}),e[59]=te,e[60]=$,e[61]=r):r=e[61];let oe;e[62]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(N,{htmlFor:"agencia",children:"Agência"}),e[62]=oe):oe=e[62];let F;e[63]!==m?(F=w=>m("agencia",w.target.value),e[63]=m,e[64]=F):F=e[64];let ce;e[65]!==i.agencia||e[66]!==F?(ce=t.jsx(q,{id:"agencia",value:i.agencia,onChange:F,placeholder:"1234-5",required:!0}),e[65]=i.agencia,e[66]=F,e[67]=ce):ce=e[67];let re;e[68]!==o.agencia?(re=o.agencia&&t.jsx("p",{className:"text-sm text-red-500",children:o.agencia}),e[68]=o.agencia,e[69]=re):re=e[69],e[70]!==ce||e[71]!==re?(h=t.jsxs("div",{className:"space-y-2",children:[oe,ce,re]}),e[70]=ce,e[71]=re,e[72]=h):h=e[72];let xe;e[73]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(N,{htmlFor:"conta",children:"Conta"}),e[73]=xe):xe=e[73];let de;e[74]!==m?(de=w=>m("conta",w.target.value),e[74]=m,e[75]=de):de=e[75];let Ne;e[76]!==i.conta||e[77]!==de?(Ne=t.jsx(q,{id:"conta",value:i.conta,onChange:de,placeholder:"12345-6",required:!0}),e[76]=i.conta,e[77]=de,e[78]=Ne):Ne=e[78];let fe;e[79]!==o.conta?(fe=o.conta&&t.jsx("p",{className:"text-sm text-red-500",children:o.conta}),e[79]=o.conta,e[80]=fe):fe=e[80],e[81]!==Ne||e[82]!==fe?(d=t.jsxs("div",{className:"space-y-2",children:[xe,Ne,fe]}),e[81]=Ne,e[82]=fe,e[83]=d):d=e[83];let De;e[84]===Symbol.for("react.memo_cache_sentinel")?(De=t.jsx(N,{htmlFor:"documento",children:"Documento"}),e[84]=De):De=e[84];let he;e[85]!==m?(he=w=>m("documento",w.target.value),e[85]=m,e[86]=he):he=e[86];let be;e[87]!==i.documento||e[88]!==he?(be=t.jsx(q,{id:"documento",value:i.documento,onChange:he,placeholder:"DOC001",required:!0}),e[87]=i.documento,e[88]=he,e[89]=be):be=e[89];let pe;e[90]!==o.documento?(pe=o.documento&&t.jsx("p",{className:"text-sm text-red-500",children:o.documento}),e[90]=o.documento,e[91]=pe):pe=e[91],e[92]!==be||e[93]!==pe?(x=t.jsxs("div",{className:"space-y-2",children:[De,be,pe]}),e[92]=be,e[93]=pe,e[94]=x):x=e[94];let Ce;e[95]===Symbol.for("react.memo_cache_sentinel")?(Ce=t.jsx(N,{htmlFor:"data",children:"Data"}),e[95]=Ce):Ce=e[95];let ue;e[96]!==m?(ue=w=>m("data",w.target.value),e[96]=m,e[97]=ue):ue=e[97];let je;e[98]!==i.data||e[99]!==ue?(je=t.jsx(q,{id:"data",type:"date",value:i.data,onChange:ue,required:!0}),e[98]=i.data,e[99]=ue,e[100]=je):je=e[100];let _e;e[101]!==o.data?(_e=o.data&&t.jsx("p",{className:"text-sm text-red-500",children:o.data}),e[101]=o.data,e[102]=_e):_e=e[102],e[103]!==je||e[104]!==_e?(j=t.jsxs("div",{className:"space-y-2",children:[Ce,je,_e]}),e[103]=je,e[104]=_e,e[105]=j):j=e[105],H="space-y-2",e[106]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(N,{htmlFor:"valor",children:"Valor"}),e[106]=L):L=e[106],f=q,R="valor",E="text",z=ne((parseFloat(i.valor)*100).toString()),e[1]=i.agencia,e[2]=i.banco,e[3]=i.conta,e[4]=i.data,e[5]=i.documento,e[6]=i.valor,e[7]=I,e[8]=P,e[9]=o.agencia,e[10]=o.banco,e[11]=o.conta,e[12]=o.data,e[13]=o.documento,e[14]=a,e[15]=u,e[16]=O,e[17]=p,e[18]=m,e[19]=f,e[20]=b,e[21]=g,e[22]=y,e[23]=C,e[24]=h,e[25]=d,e[26]=x,e[27]=j,e[28]=v,e[29]=_,e[30]=D,e[31]=A,e[32]=R,e[33]=E,e[34]=z,e[35]=H,e[36]=L,e[37]=W,e[38]=T,e[39]=r}else f=e[19],b=e[20],g=e[21],y=e[22],C=e[23],h=e[24],d=e[25],x=e[26],j=e[27],v=e[28],_=e[29],D=e[30],A=e[31],R=e[32],E=e[33],z=e[34],H=e[35],L=e[36],W=e[37],T=e[38],r=e[39];let n;e[107]!==f||e[108]!==C||e[109]!==R||e[110]!==E||e[111]!==z?(n=t.jsx(f,{id:R,type:E,value:z,onChange:C,placeholder:"R$ 0,00",required:!0}),e[107]=f,e[108]=C,e[109]=R,e[110]=E,e[111]=z,e[112]=n):n=e[112];let ae;e[113]!==o.valor?(ae=o.valor&&t.jsx("p",{className:"text-sm text-red-500",children:o.valor}),e[113]=o.valor,e[114]=ae):ae=e[114];let M;e[115]!==n||e[116]!==ae||e[117]!==H||e[118]!==L?(M=t.jsxs("div",{className:H,children:[L,n,ae]}),e[115]=n,e[116]=ae,e[117]=H,e[118]=L,e[119]=M):M=e[119];let s;e[120]!==y||e[121]!==S?(s=t.jsx(Y,{type:"button",variant:"outline",onClick:y,disabled:S,children:"Cancelar"}),e[120]=y,e[121]=S,e[122]=s):s=e[122];const Z=S?"Salvando...":"Cadastrar";let J;e[123]!==S||e[124]!==Z?(J=t.jsx(Y,{type:"submit",disabled:S,className:"flex items-center gap-2",children:Z}),e[123]=S,e[124]=Z,e[125]=J):J=e[125];let Q;e[126]!==s||e[127]!==J?(Q=t.jsxs(ds,{className:"flex gap-2",children:[s,J]}),e[126]=s,e[127]=J,e[128]=Q):Q=e[128];let se;e[129]!==h||e[130]!==d||e[131]!==x||e[132]!==j||e[133]!==M||e[134]!==Q||e[135]!==W||e[136]!==T||e[137]!==r?(se=t.jsxs("form",{onSubmit:W,className:T,children:[r,h,d,x,j,M,Q]}),e[129]=h,e[130]=d,e[131]=x,e[132]=j,e[133]=M,e[134]=Q,e[135]=W,e[136]=T,e[137]=r,e[138]=se):se=e[138];let U;e[139]!==b||e[140]!==v||e[141]!==_||e[142]!==se?(U=t.jsxs(b,{className:v,children:[_,se]}),e[139]=b,e[140]=v,e[141]=_,e[142]=se,e[143]=U):U=e[143];let ve;
1return e[144]!==g||e[145]!==D||e[146]!==A||e[147]!==U?(ve=t.jsx(g,{open:D,onOpenChange:A,children:U}),e[144]=g,e[145]=D,e[146]=A,e[147]=U,e[148]=ve):ve=e[148],ve}function Os(c){console.error("Error creating pagamento:",c)}function Fs(c){const e=c.replace(/\D/g,""),a=parseInt(e)||0;return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2}).format(a/100)}const us=c=>c?new Date(c).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"}):"";function Rl(c){const e=Ga.c(330),{empenho:a,page_title:u,page_description:I}=c,P=As;let V;e[0]===Symbol.for("react.memo_cache_sentinel")?(V={isOpen:!1,attachmentId:null,attachmentName:"",isLoading:!1},e[0]=V):V=e[0];const[i,m]=aa.useState(V);let O;e[1]===Symbol.for("react.memo_cache_sentinel")?(O={isOpen:!1},e[1]=O):O=e[1];const[S,o]=aa.useState(O);let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p={isOpen:!1,liquidacaoId:null,liquidacaoNumero:"",isLoading:!1},e[2]=p):p=e[2];const[f,b]=aa.useState(p);let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g={isOpen:!1},e[3]=g):g=e[3];const[y,C]=aa.useState(g);let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h={isOpen:!1,pagamentoId:null,pagamentoNumero:"",isLoading:!1},e[4]=h):h=e[4];const[d,x]=aa.useState(h),j=a.unidade_orcamentaria||"",v=a.funcao||"",_=a.subfuncao||"",D=a.programa||"",A=a.acao||"",R=a.fonte_de_recurso||"",E=a.elemento_de_despesa||"",z=a.cpf_cnpj||"",H=a.numero_do_processo||"",L=a.valor||"",W=a.historico||"";let T;e[5]!==a.covid19||e[6]!==a.credor||e[7]!==a.data||e[8]!==a.numero||e[9]!==A||e[10]!==R||e[11]!==E||e[12]!==z||e[13]!==H||e[14]!==L||e[15]!==W||e[16]!==j||e[17]!==v||e[18]!==_||e[19]!==D?(T={data:a.data,numero:a.numero,credor:a.credor,unidade_orcamentaria:j,funcao:v,subfuncao:_,programa:D,acao:A,fonte_de_recurso:R,elemento_de_despesa:E,cpf_cnpj:z,numero_do_processo:H,valor:L,covid19:a.covid19,historico:W},e[5]=a.covid19,e[6]=a.credor,e[7]=a.data,e[8]=a.numero,e[9]=A,e[10]=R,e[11]=E,e[12]=z,e[13]=H,e[14]=L,e[15]=W,e[16]=j,e[17]=v,e[18]=_,e[19]=D,e[20]=T):T=e[20];const{data:r,setData:n,put:ae,processing:M,errors:s}=ns(T);let Z;e[21]!==a.id||e[22]!==ae?(Z=l=>{l.preventDefault(),ae(`/portal/admin/empenhos/edit/${a.id}`)},e[21]=a.id,e[22]=ae,e[23]=Z):Z=e[23];const J=Z;let Q;if(e[24]!==a.id){const l=B=>{B.preventDefault();const Xa=document.getElementById("attachment-file"),Ya=Xa?.files?.[0];if(!Ya){alert("Por favor, selecione um arquivo");return}const Za=new FormData;Za.append("file",Ya),Za.append("nome",Ya.name),Ha.post(`/portal/admin/empenhos/store/${a.id}/attachments`,Za,{forceFormData:!0,onSuccess:()=>{Xa.value="",window.location.reload()},onError:Vs})};Q=B=>{B.target.files?.[0]&&l(B)},e[24]=a.id,e[25]=Q}else Q=e[25];const se=Q;let U;e[26]===Symbol.for("react.memo_cache_sentinel")?(U=(l,B)=>{m({isOpen:!0,attachmentId:l,attachmentName:B,isLoading:!1})},e[26]=U):U=e[26];const ve=U;let ne;e[27]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>{m(Ps)}
1,e[27]=ne):ne=e[27];const ie=ne;let me;e[28]!==i.attachmentId?(me=()=>{m(Bs),Ha.delete(`/portal/admin/empenhos/delete/${i.attachmentId}/attachments`,{onSuccess:()=>{ie(),window.location.reload()},onError:l=>{console.error("Error deleting attachment:",l),m($s)}})},e[28]=i.attachmentId,e[29]=me):me=e[29];const ee=me;let G;e[30]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{o({isOpen:!0})},e[30]=G):G=e[30];const le=G;let K;e[31]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{o({isOpen:!1})},e[31]=K):K=e[31];const te=K;let $;e[32]===Symbol.for("react.memo_cache_sentinel")?($=(l,B)=>{b({isOpen:!0,liquidacaoId:l,liquidacaoNumero:B,isLoading:!1})},e[32]=$):$=e[32];const oe=$;let F;e[33]===Symbol.for("react.memo_cache_sentinel")?(F=()=>{b({isOpen:!1,liquidacaoId:null,liquidacaoNumero:"",isLoading:!1})},e[33]=F):F=e[33];const ce=F;let re;e[34]!==a.id||e[35]!==f.liquidacaoId?(re=async()=>{b(Ms);try{await Ha.delete(`/portal/admin/empenhos/${a.id}/liquidacoes/${f.liquidacaoId}`),ce(),window.location.reload()}catch(l){console.error("Error deleting liquidacao:",l),b(Ts)}},e[34]=a.id,e[35]=f.liquidacaoId,e[36]=re):re=e[36];const xe=re;let de;e[37]===Symbol.for("react.memo_cache_sentinel")?(de=()=>{C({isOpen:!0})},e[37]=de):de=e[37];const Ne=de;let fe;e[38]===Symbol.for("react.memo_cache_sentinel")?(fe=()=>{C({isOpen:!1})},e[38]=fe):fe=e[38];const De=fe;let he;e[39]===Symbol.for("react.memo_cache_sentinel")?(he=(l,B)=>{x({isOpen:!0,pagamentoId:l,pagamentoNumero:B,isLoading:!1})},e[39]=he):he=e[39];const be=he;let pe;e[40]===Symbol.for("react.memo_cache_sentinel")?(pe=()=>{x({isOpen:!1,pagamentoId:null,pagamentoNumero:"",isLoading:!1})},e[40]=pe):pe=e[40];const Ce=pe;let ue;e[41]!==a.id||e[42]!==d.pagamentoId?(ue=async()=>{x(ks);try{await Ha.delete(`/portal/admin/empenhos/${a.id}/pagamentos/${d.pagamentoId}`),Ce(),window.location.reload()}catch(l){console.error("Error deleting pagamento:",l),x(Es)}},e[41]=a.id,e[42]=d.pagamentoId,e[43]=ue):ue=e[43];const je=ue,_e=`Editar Empenho - ${u}`;let w;e[44]!==_e?(w=t.jsx(xs,{title:_e}),e[44]=_e,e[45]=w):w=e[45];let Se,Le;e[46]===Symbol.for("react.memo_cache_sentinel")?(Se=t.jsx(ps,{href:"/portal/admin/empenhos",children:t.jsxs(Y,{variant:"outline",size:"sm",className:"flex items-center gap-2",children:[t.jsx(ys,{className:"h-4 w-4"}),"Voltar"]})}),Le=t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Editar Empenho"}),e[46]=Se,e[47]=Le):(Se=e[46],Le=e[47]);let ye;e[48]!==I?(ye=t.jsxs("div",{className:"flex items-center gap-4",children:[Se,t.jsxs("div",{children:[Le,t.jsx("p",{className:"mt-1 text-gray-600",children:I})]})]}),e[48]=I,e[49]=ye):ye=e[49];let sa;e[50]===Symbol.for("react.memo_cache_sentinel")?(sa=t.jsx(Wa,{children:t.jsx(Ja,{children:"Informações do Empenho"})}),e[50]=sa):sa=e[50];let la;e[51]===Symbol.for("react.memo_cache_sentinel")?(la=t.jsx(N,{htmlFor:"data",children:"Data"}),e[51]=la):la=e[51];let we;e[52]!==n?(we=l=>n("data",l.target.value),e[52]=n,e[53]=we):we=e[53];let qe;e[54]!==r.data||e[55]!==we?(qe=t.jsx(q,{id:"data",type:"date",value:r.data,onChange:we}),e[54]=r.data,e[55]=we,e[56]=qe):qe=e[56];let Oe;e[57]!==s.data?(Oe=s.data&&t.jsx("p",{className:"text-sm text-red-500",children:s.data}),e[57]=s.data,e[58]=Oe):Oe=e[58];let Fe;e[59]!==qe||e[60]!==Oe?(Fe=t.jsxs("div",{className:"space-y-2",children:[la,qe,Oe]}),e[59]=qe,e[60]=Oe,e[61]=Fe):Fe=e[61];let oa;e[62]===Symbol.for("react.memo_cache_sentinel")?(oa=t.jsx(N,{htmlFor:"numero",children:"Número"}),e[62]=oa):oa=e[62];let Ie;e[63]!==n?(Ie=l=>n("numero",l.target.value),e[63]=n,e[64]=Ie):Ie=e[64];let Ee;e[65]!==r.numero||e[66]!==Ie?(Ee=t.jsx(q,{id:"numero",value:r.numero,onChange:Ie}),e[65]=r.numero,e[66]=Ie,e[67]=Ee):Ee=e[67];let ke;e[68]!==s.numero?(ke=s.numero&&t.jsx("p",{className:"text-sm text-red-500",children:s.numero}),e[68]=s.numero,e[69]=ke):ke=e[69];let Te;e[70]!==Ee||e[71]!==ke?(Te=t.jsxs("div",{className:"space-y-2",children:[oa,Ee,ke]}),e[70]=Ee,e[71]=ke,e[72]=Te):Te=e[72];let ra;e[73]===Symbol.for("react.memo_cache_sentinel")?(ra=t.jsx(N,{htmlFor:"credor",children:"Credor"}),e[73]=ra):ra=e[73];let Me;e[74]!==n?(Me=l=>n("credor",l.target.value),e[74]=n,e[75]=Me):Me=e[75];let $e;e[76]!==r.credor||e[77]!==Me?($e=t.jsx(q,{id:"credor",value:r.credor,onChange:Me}),e[76]=r.credor,e[77]=Me,e[78]=$e):$e=e[78];let Be;e[79]!==s.credor?(Be=s.credor&&t.jsx("p",{className:"text-sm text-red-500",children:s.credor}),e[79]=s.credor,e[80]=Be):Be=e[80];let Pe;e[81]!==$e||e[82]!==Be?(Pe=t.jsxs("div",{className:"space-y-2",children:[ra,$e,Be]}),e[81]=$e,e[82]=Be,e[83]=Pe):Pe=e[83];let na;e[84]===Symbol.for("react.memo_cache_sentinel")?(na=t.jsx(N,{htmlFor:"unidade_orcamentaria",children:"Unidade Orçamentária"}),e[84]=na):na=e[84];let Ve;e[85]!==n?(Ve=l=>n("unidade_orcamentaria",l.target.value),e[85]=n,e[86]=Ve):Ve=e[86];let Ae;e[87]!==r.unidade_orcamentaria||e[88]!==Ve?(Ae=t.jsx(q,{id:"unidade_orcamentaria",value:r.unidade_orcamentaria,onChange:Ve}),e[87]=r.unidade_orcamentaria,e[88]=Ve,e[89]=Ae):Ae=e[89];let Re;e[90]!==s.unidade_orcamentaria?(Re=s.unidade_orcamentaria&&t.jsx("p",{className:"text-sm text-red-500",children:s.unidade_orcamentaria}),e[90]=s.unidade_orcamentaria,e[91]=Re):Re=e[91];let ze;
1e[92]!==Ae||e[93]!==Re?(ze=t.jsxs("div",{className:"space-y-2",children:[na,Ae,Re]}),e[92]=Ae,e[93]=Re,e[94]=ze):ze=e[94];let ia;e[95]===Symbol.for("react.memo_cache_sentinel")?(ia=t.jsx(N,{htmlFor:"funcao",children:"Função"}),e[95]=ia):ia=e[95];let He;e[96]!==n?(He=l=>n("funcao",l.target.value),e[96]=n,e[97]=He):He=e[97];let We;e[98]!==r.funcao||e[99]!==He?(We=t.jsx(q,{id:"funcao",value:r.funcao,onChange:He}),e[98]=r.funcao,e[99]=He,e[100]=We):We=e[100];let Je;e[101]!==s.funcao?(Je=s.funcao&&t.jsx("p",{className:"text-sm text-red-500",children:s.funcao}),e[101]=s.funcao,e[102]=Je):Je=e[102];let Qe;e[103]!==We||e[104]!==Je?(Qe=t.jsxs("div",{className:"space-y-2",children:[ia,We,Je]}),e[103]=We,e[104]=Je,e[105]=Qe):Qe=e[105];let ca;e[106]===Symbol.for("react.memo_cache_sentinel")?(ca=t.jsx(N,{htmlFor:"subfuncao",children:"Sub-Função"}),e[106]=ca):ca=e[106];let Ue;e[107]!==n?(Ue=l=>n("subfuncao",l.target.value),e[107]=n,e[108]=Ue):Ue=e[108];let Ge;e[109]!==r.subfuncao||e[110]!==Ue?(Ge=t.jsx(q,{id:"subfuncao",value:r.subfuncao,onChange:Ue}),e[109]=r.subfuncao,e[110]=Ue,e[111]=Ge):Ge=e[111];let Ke;e[112]!==s.subfuncao?(Ke=s.subfuncao&&t.jsx("p",{className:"text-sm text-red-500",children:s.subfuncao}),e[112]=s.subfuncao,e[113]=Ke):Ke=e[113];let Xe;e[114]!==Ge||e[115]!==Ke?(Xe=t.jsxs("div",{className:"space-y-2",children:[ca,Ge,Ke]}),e[114]=Ge,e[115]=Ke,e[116]=Xe):Xe=e[116];let ma;e[117]===Symbol.for("react.memo_cache_sentinel")?(ma=t.jsx(N,{htmlFor:"programa",children:"Programa"}),e[117]=ma):ma=e[117];let Ye;e[118]!==n?(Ye=l=>n("programa",l.target.value),e[118]=n,e[119]=Ye):Ye=e[119];let Ze;e[120]!==r.programa||e[121]!==Ye?(Ze=t.jsx(q,{id:"programa",value:r.programa,onChange:Ye}),e[120]=r.programa,e[121]=Ye,e[122]=Ze):Ze=e[122];let et;e[123]!==s.programa?(et=s.programa&&t.jsx("p",{className:"text-sm text-red-500",children:s.programa}),e[123]=s.programa,e[124]=et):et=e[124];let tt;e[125]!==Ze||e[126]!==et?(tt=t.jsxs("div",{className:"space-y-2",children:[ma,Ze,et]}),e[125]=Ze,e[126]=et,e[127]=tt):tt=e[127];let da;e[128]===Symbol.for("react.memo_cache_sentinel")?(da=t.jsx(N,{htmlFor:"acao",children:"Ação"}),e[128]=da):da=e[128];let at;e[129]!==n?(at=l=>n("acao",l.target.value),e[129]=n,e[130]=at):at=e[130];let st;e[131]!==r.acao||e[132]!==at?(st=t.jsx(q,{id:"acao",value:r.acao,onChange:at}),e[131]=r.acao,e[132]=at,e[133]=st):st=e[133];let lt;e[134]!==s.acao?(lt=s.acao&&t.jsx("p",{className:"text-sm text-red-500",children:s.acao}),e[134]=s.acao,e[135]=lt):lt=e[135];let ot;e[136]!==st||e[137]!==lt?(ot=t.jsxs("div",{className:"space-y-2",children:[da,st,lt]}),e[136]=st,e[137]=lt,e[138]=ot):ot=e[138];let fa;e[139]===Symbol.for("react.memo_cache_sentinel")?(fa=t.jsx(N,{htmlFor:"fonte_de_recurso",children:"Fonte de Recurso"}),e[139]=fa):fa=e[139];let rt;e[140]!==n?(rt=l=>n("fonte_de_recurso",l.target.value),e[140]=n,e[141]=rt):rt=e[141];let nt;e[142]!==r.fonte_de_recurso||e[143]!==rt?(nt=t.jsx(q,{id:"fonte_de_recurso",value:r.fonte_de_recurso,onChange:rt}),e[142]=r.fonte_de_recurso,e[143]=rt,e[144]=nt):nt=e[144];let it;e[145]!==s.fonte_de_recurso?(it=s.fonte_de_recurso&&t.jsx("p",{className:"text-sm text-red-500",children:s.fonte_de_recurso}),e[145]=s.fonte_de_recurso,e[146]=it):it=e[146];let ct;e[147]!==nt||e[148]!==it?(ct=t.jsxs("div",{className:"space-y-2",children:[fa,nt,it]}),e[147]=nt,e[148]=it,e[149]=ct):ct=e[149];let ha;e[150]===Symbol.for("react.memo_cache_sentinel")?(ha=t.jsx(N,{htmlFor:"elemento_de_despesa",children:"Elemento de Despesa"}),e[150]=ha):ha=e[150];let mt;e[151]!==n?(mt=l=>n("elemento_de_despesa",l.target.value),e[151]=n,e[152]=mt):mt=e[152];let dt;e[153]!==r.elemento_de_despesa||e[154]!==mt?(dt=t.jsx(q,{id:"elemento_de_despesa",value:r.elemento_de_despesa,onChange:mt}),e[153]=r.elemento_de_despesa,e[154]=mt,e[155]=dt):dt=e[155];let ft;e[156]!==s.elemento_de_despesa?(ft=s.elemento_de_despesa&&t.jsx("p",{className:"text-sm text-red-500",children:s.elemento_de_despesa}),e[156]=s.elemento_de_despesa,e[157]=ft):ft=e[157];let ht;e[158]!==dt||e[159]!==ft?(ht=t.jsxs("div",{className:"space-y-2",children:[ha,dt,ft]}),e[158]=dt,e[159]=ft,e[160]=ht):ht=e[160];let pa;e[161]===Symbol.for("react.memo_cache_sentinel")?(pa=t.jsx(N,{htmlFor:"cpf_cnpj",children:"CPF/CNPJ"}),e[161]=pa):pa=e[161];let pt;e[162]!==n?(pt=l=>n("cpf_cnpj",l.target.value),e[162]=n,e[163]=pt):pt=e[163];let ut;
1e[164]!==r.cpf_cnpj||e[165]!==pt?(ut=t.jsx(q,{id:"cpf_cnpj",value:r.cpf_cnpj,onChange:pt}),e[164]=r.cpf_cnpj,e[165]=pt,e[166]=ut):ut=e[166];let xt;e[167]!==s.cpf_cnpj?(xt=s.cpf_cnpj&&t.jsx("p",{className:"text-sm text-red-500",children:s.cpf_cnpj}),e[167]=s.cpf_cnpj,e[168]=xt):xt=e[168];let jt;e[169]!==ut||e[170]!==xt?(jt=t.jsxs("div",{className:"space-y-2",children:[pa,ut,xt]}),e[169]=ut,e[170]=xt,e[171]=jt):jt=e[171];let ua;e[172]===Symbol.for("react.memo_cache_sentinel")?(ua=t.jsx(N,{htmlFor:"numero_do_processo",children:"Número do Processo"}),e[172]=ua):ua=e[172];let _t;e[173]!==n?(_t=l=>n("numero_do_processo",l.target.value),e[173]=n,e[174]=_t):_t=e[174];let gt;e[175]!==r.numero_do_processo||e[176]!==_t?(gt=t.jsx(q,{id:"numero_do_processo",value:r.numero_do_processo,onChange:_t}),e[175]=r.numero_do_processo,e[176]=_t,e[177]=gt):gt=e[177];let vt;e[178]!==s.numero_do_processo?(vt=s.numero_do_processo&&t.jsx("p",{className:"text-sm text-red-500",children:s.numero_do_processo}),e[178]=s.numero_do_processo,e[179]=vt):vt=e[179];let Nt;e[180]!==gt||e[181]!==vt?(Nt=t.jsxs("div",{className:"space-y-2",children:[ua,gt,vt]}),e[180]=gt,e[181]=vt,e[182]=Nt):Nt=e[182];let xa;e[183]===Symbol.for("react.memo_cache_sentinel")?(xa=t.jsx(N,{htmlFor:"valor",children:"Valor"}),e[183]=xa):xa=e[183];let bt;e[184]!==n?(bt=l=>n("valor",l),e[184]=n,e[185]=bt):bt=e[185];let yt;e[186]!==r.valor||e[187]!==bt?(yt=t.jsx(js,{id:"valor",value:r.valor,onChange:bt}),e[186]=r.valor,e[187]=bt,e[188]=yt):yt=e[188];let Ct;e[189]!==s.valor?(Ct=s.valor&&t.jsx("p",{className:"text-sm text-red-500",children:s.valor}),e[189]=s.valor,e[190]=Ct):Ct=e[190];let St;e[191]!==yt||e[192]!==Ct?(St=t.jsxs("div",{className:"space-y-2",children:[xa,yt,Ct]}),e[191]=yt,e[192]=Ct,e[193]=St):St=e[193];let Dt;e[194]!==n?(Dt=l=>n("covid19",l.target.checked),e[194]=n,e[195]=Dt):Dt=e[195];let Lt;e[196]!==r.covid19||e[197]!==Dt?(Lt=t.jsx("input",{type:"checkbox",id:"covid19",checked:r.covid19,onChange:Dt,className:"checkbox checkbox-success"}),e[196]=r.covid19,e[197]=Dt,e[198]=Lt):Lt=e[198];let ja;e[199]===Symbol.for("react.memo_cache_sentinel")?(ja=t.jsx(N,{htmlFor:"covid19",children:"COVID-19"}),e[199]=ja):ja=e[199];let wt;e[200]!==Lt?(wt=t.jsxs("div",{className:"flex items-center space-x-2",children:[Lt,ja]}),e[200]=Lt,e[201]=wt):wt=e[201];let qt;e[202]!==s.covid19?(qt=s.covid19&&t.jsx("p",{className:"text-sm text-red-500",children:s.covid19}),e[202]=s.covid19,e[203]=qt):qt=e[203];let Ot;e[204]!==wt||e[205]!==qt?(Ot=t.jsxs("div",{className:"space-y-2",children:[wt,qt]}),e[204]=wt,e[205]=qt,e[206]=Ot):Ot=e[206];let Ft;e[207]!==St||e[208]!==Ot||e[209]!==Fe||e[210]!==Te||e[211]!==Pe||e[212]!==ze||e[213]!==Qe||e[214]!==Xe||e[215]!==tt||e[216]!==ot||e[217]!==ct||e[218]!==ht||e[219]!==jt||e[220]!==Nt?(Ft=t.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4",children:[Fe,Te,Pe,ze,Qe,Xe,tt,ot,ct,ht,jt,Nt,St,Ot]}),e[207]=St,e[208]=Ot,e[209]=Fe,e[210]=Te,e[211]=Pe,e[212]=ze,e[213]=Qe,e[214]=Xe,e[215]=tt,e[216]=ot,e[217]=ct,e[218]=ht,e[219]=jt,e[220]=Nt,e[221]=Ft):Ft=e[221];let _a;e[222]===Symbol.for("react.memo_cache_sentinel")?(_a=t.jsx(N,{htmlFor:"historico",children:"Histórico"}),e[222]=_a):_a=e[222];let It;e[223]!==n?(It=l=>n("historico",l.target.value),e[223]=n,e[224]=It):It=e[224];let Et;e[225]!==r.historico||e[226]!==It?(Et=t.jsx(_s,{id:"historico",value:r.historico,onChange:It,rows:4}),e[225]=r.historico,e[226]=It,e[227]=Et):Et=e[227];let kt;e[228]!==s.historico?(kt=s.historico&&t.jsx("p",{className:"text-sm text-red-500",children:s.historico}),e[228]=s.historico,e[229]=kt):kt=e[229];let Tt;e[230]!==Et||e[231]!==kt?(Tt=t.jsxs("div",{className:"space-y-2",children:[_a,Et,kt]}),e[230]=Et,e[231]=kt,e[232]=Tt):Tt=e[232];let ga;e[233]===Symbol.for("react.memo_cache_sentinel")?(ga=t.jsx(ps,{href:"/portal/admin/empenhos",children:t.jsx(Y,{variant:"outline",type:"button",children:"Cancelar"})}),e[233]=ga):ga=e[233];let va;e[234]===Symbol.for("react.memo_cache_sentinel")?(va=t.jsx(Cs,{className:"h-4 w-4"}),e[234]=va):va=e[234];const Ka=M?"Salvando...":"Salvar";let Mt;e[235]!==M||e[236]!==Ka?(Mt=t.jsxs("div",{className:"flex justify-end gap-4",children:[ga,t.jsxs(Y,{type:"submit",disabled:M,className:"flex items-center gap-2",children:[va,Ka]})]}),e[235]=M,e[236]=Ka,e[237]=Mt):Mt=e[237];let $t;e[238]!==J||e[239]!==Ft||e[240]!==Tt||e[241]!==Mt?($t=t.jsxs(Qa,{children:[sa,t.jsx(Ua,{children:t.jsxs("form",{onSubmit:J,className:"space-y-6",children:[Ft,Tt,Mt]})})]}),e[238]=J,e[239]=Ft,e[240]=Tt,e[241]=Mt,e[242]=$t):$t=e[242];let Na;e[243]===Symbol.for("react.memo_cache_sentinel")?(Na=t.jsxs(Ja,{className:"flex items-center gap-2",children:[t.jsx(Ss,{className:"h-5 w-5"}),"Listagem de Anexos"]}),e[243]=Na):Na=e[243];let Bt;e[244]!==se?(Bt=t.jsx("input",{type:"file",className:"hidden",id:"attachment-file",onChange:se}),e[244]=se,e[245]=Bt):Bt=e[245];let ba;e[246]===Symbol.for("react.memo_cache_sentinel")?(ba=t.jsxs(Y,{size:"sm",onClick:Is,children:[t.jsx(ls,{className:"mr-2 h-4 w-4"}),"Cadastrar"]}),e[246]=ba):ba=e[246];let Pt;e[247]!==Bt?(Pt=t.jsx(Wa,{children:t.jsxs("div",{className:"flex items-center justify-between",children:[Na,t.jsxs("div",{className:"flex items-center gap-2",children:[Bt,ba]})]})}),e[247]=Bt,e[248]=Pt):Pt=e[248];let ya,Ca;e[249]===Symbol.for("react.memo_cache_sentinel")?(ya=t.jsx(X,{className:"pl-0",children:"#ID"}),Ca=t.jsx(X,{children:"Título"}),e[249]=ya,e[250]=Ca):(ya=e[249],Ca=e[250]);let Sa;e[251]===Symbol.for("react.memo_cache_sentinel")?(Sa=t.jsx(es,{children:t.jsxs(ge,{children:[ya,Ca,t.jsx(X,{className:"pr-0 text-right",style:{minWidth:"160px"},children:"Ações"})]})}),e[251]=Sa):Sa=e[251];let Vt;e[252]!==a.attachments?(Vt=a.attachments?.map((l,B)=>t.jsxs(ge,{children:[t.jsx(k,{className:"pl-0",children:t.jsx("span",{className:"block text-gray-800",children:l.id})}),t.jsx(k,{children:t.jsx("a",{href:"#",target:"_blank",className:"text-gray-800 hover:text-blue-600",children:l.original_name})}),t.jsx(k,{className:"pr-0 text-right",children:t.jsxs("div",{className:"space-x-2",children:[t.jsx(Y,{onClick:()=>{window.open(l.path,"_blank")},size:"sm",variant:"outline",children:t.jsx(bs,{className:"h-4 w-4"})}),t.jsx(Y,{size:"sm",variant:"destructive",className:"hover:border-red-200 hover:bg-red-50 hover:text-red-600",onClick:()=>ve(l.id,l.original_name),children:t.jsx(ss,{className:"h-4 w-4"})})]})})]},B)),e[252]=a.attachments,e[253]=Vt):Vt=e[253];let At;e[254]!==a.attachments?(At=(!a.attachments||a.attachments.length===0)&&t.jsx(ge,{children:t.jsx(k,{colSpan:3,className:"text-center",children:t.jsx("em",{children:"Nenhum registro encontrado"})})}),e[254]=a.attachments,e[255]=At):At=e[255];let Rt;e[256]!==Vt||e[257]!==At?(Rt=t.jsx(Ua,{children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs(ts,{children:[Sa,t.jsxs(as,{children:[Vt,At]})]})})}),e[256]=Vt,e[257]=At,e[258]=Rt):Rt=e[258];let zt;e[259]!==Pt||e[260]!==Rt?(zt=t.jsxs(Qa,{className:"mb-6",children:[Pt,Rt]}),e[259]=Pt,e[260]=Rt,e[261]=zt):zt=e[261];let Da;e[262]===Symbol.for("react.memo_cache_sentinel")?(Da=t.jsxs(Ja,{className:"flex items-center gap-2",children:[t.jsx(rs,{className:"h-5 w-5"}),"Listagem de Liquidações"]}),e[262]=Da):Da=e[262];let La;e[263]===Symbol.for("react.memo_cache_sentinel")?(La=t.jsx(Wa,{children:t.jsxs("div",{className:"flex items-center justify-between",children:[Da,t.jsxs(Y,{size:"sm",onClick:le,children:[t.jsx(ls,{className:"mr-2 h-4 w-4"}),"Cadastrar"]})]})}),e[263]=La):La=e[263];let wa,qa,Oa,Fa;e[264]===Symbol.for("react.memo_cache_sentinel")?(wa=t.jsx(X,{className:"pl-0",children:"#ID"}),qa=t.jsx(X,{children:"Número"}),Oa=t.jsx(X,{children:"Valor"}),Fa=t.jsx(X,{children:"Data"}),e[264]=wa,e[265]=qa,e[266]=Oa,e[267]=Fa):(wa=e[264],qa=e[265],Oa=e[266],Fa=e[267]);let Ia;e[268]===Symbol.for("react.memo_cache_sentinel")?(Ia=t.jsx(es,{children:t.jsxs(ge,{children:[wa,qa,Oa,Fa,t.jsx(X,{className:"pr-0 text-right",style:{minWidth:"160px"},children:"Ações"})]})}),e[268]=Ia):Ia=e[268];let Ht;e[269]!==a.liquidacoes?(Ht=a.liquidacoes?.map((l,B)=>t.jsxs(ge,{children:[t.jsx(k,{className:"pl-0",children:t.jsx("span",{className:"block text-gray-800",children:l.id})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:l.numero})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:P(l.valor)})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:us(l.data)})}),t.jsx(k,{className:"pr-0 text-right",children:t.jsx("div",{className:"flex justify-end gap-2",children:t.jsx(Y,{size:"sm",variant:"destructive",className:"hover:border-red-200 hover:bg-red-50 hover:text-red-600",onClick:()=>oe(l.id,l.numero),children:t.jsx(ss,{className:"h-4 w-4"})})})})]},B)),e[269]=a.liquidacoes,e[270]=Ht):Ht=e[270];let Wt;e[271]!==a.liquidacoes?(Wt=(!a.liquidacoes||a.liquidacoes.length===0)&&t.jsx(ge,{children:t.jsx(k,{colSpan:5,className:"text-center",children:t.jsx("em",{children:"Nenhum registro encontrado"})})}),e[271]=a.liquidacoes,e[272]=Wt):Wt=e[272];let Jt;e[273]!==Ht||e[274]!==Wt?(Jt=t.jsxs(Qa,{className:"mb-6",children:[La,t.jsx(Ua,{children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs(ts,{children:[Ia,t.jsxs(as,{children:[Ht,Wt]})]})})})]}),e[273]=Ht,e[274]=Wt,e[275]=Jt):Jt=e[275];let Ea;e[276]===Symbol.for("react.memo_cache_sentinel")?(Ea=t.jsxs(Ja,{className:"flex items-center gap-2",children:[t.jsx(rs,{className:"h-5 w-5"}),"Listagem de Pagamentos"]}),e[276]=Ea):Ea=e[276];let ka;e[277]===Symbol.for("react.memo_cache_sentinel")?(ka=t.jsx(Wa,{children:t.jsxs("div",{className:"flex items-center justify-between",children:[Ea,t.jsxs(Y,{size:"sm",onClick:Ne,children:[t.jsx(ls,{className:"mr-2 h-4 w-4"}),"Cadastrar"]})]})}),e[277]=ka):ka=e[277];let Ta,Ma,$a,Ba,Pa,Va,Aa;e[278]===Symbol.for("react.memo_cache_sentinel")?(Ta=t.jsx(X,{className:"pl-0",children:"#ID"}),Ma=t.jsx(X,{children:"Banco"}),$a=t.jsx(X,{children:"Agência"}),Ba=t.jsx(X,{children:"Conta"}),Pa=t.jsx(X,{children:"Documento"}),Va=t.jsx(X,{children:"Valor"}),Aa=t.jsx(X,{children:"Data"}),e[278]=Ta,e[279]=Ma,e[280]=$a,e[281]=Ba,e[282]=Pa,e[283]=Va,e[284]=Aa):(Ta=e[278],Ma=e[279],$a=e[280],Ba=e[281],Pa=e[282],Va=e[283],Aa=e[284]);let Ra;e[285]===Symbol.for("react.memo_cache_sentinel")?(Ra=t.jsx(es,{children:t.jsxs(ge,{children:[Ta,Ma,$a,Ba,Pa,Va,Aa,t.jsx(X,{className:"pr-0 text-right",style:{minWidth:"160px"},children:"Ações"})]})}),e[285]=Ra):Ra=e[285];let Qt;e[286]!==a.pagamentos?(Qt=a.pagamentos?.map((l,B)=>t.jsxs(ge,{children:[t.jsx(k,{className:"pl-0",children:t.jsx("span",{className:"block text-gray-800",children:l.id})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:l.banco||"Banco do Brasil"})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:l.agencia||"1234-5"})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:l.conta||"12345-6"})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:l.documento||"DOC001"})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:P(l.valor)})}),t.jsx(k,{children:t.jsx("span",{className:"block text-gray-800",children:us(l.data)})}),t.jsx(k,{className:"pr-0 text-right",children:t.jsx("div",{className:"flex justify-end gap-2",children:t.jsx(Y,{size:"sm",variant:"destructive",className:"hover:border-red-200 hover:bg-red-50 hover:text-red-600",onClick:()=>be(l.id,l.numero),children:t.jsx(ss,{className:"h-4 w-4"})})})})]},B)),e[286]=a.pagamentos,e[287]=Qt):Qt=e[287];let Ut;e[288]!==a.pagamentos?(Ut=(!a.pagamentos||a.pagamentos.length===0)&&t.jsx(ge,{children:t.jsx(k,{colSpan:8,className:"text-center",children:t.jsx("em",{children:"Nenhum registro encontrado"})})}),e[288]=a.pagamentos,e[289]=Ut):Ut=e[289];let Gt;e[290]!==Qt||e[291]!==Ut?(Gt=t.jsxs(Qa,{children:[ka,t.jsx(Ua,{children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs(ts,{children:[Ra,t.jsxs(as,{children:[Qt,Ut]})]})})})]}),e[290]=Qt,e[291]=Ut,e[292]=Gt):Gt=e[292];let Kt;e[293]!==$t||e[294]!==zt||e[295]!==Jt||e[296]!==Gt||e[297]!==ye?(Kt=t.jsxs("div",{className:"space-y-6 p-6",children:[ye,$t,zt,Jt,Gt]}),e[293]=$t,e[294]=zt,e[295]=Jt,e[296]=Gt,e[297]=ye,e[298]=Kt):Kt=e[298];let Xt;e[299]!==i.attachmentName||e[300]!==i.isLoading||e[301]!==i.isOpen||e[302]!==ee?(Xt=t.
1jsx(os,{isOpen:i.isOpen,onClose:ie,onConfirm:ee,title:"Excluir Anexo",description:"Tem certeza que deseja excluir este anexo? Esta ação não pode ser desfeita.",itemName:i.attachmentName,isLoading:i.isLoading}),e[299]=i.attachmentName,e[300]=i.isLoading,e[301]=i.isOpen,e[302]=ee,e[303]=Xt):Xt=e[303];let Yt;e[304]!==a.id||e[305]!==a.numero||e[306]!==S.isOpen?(Yt=t.jsx(Ds,{isOpen:S.isOpen,onClose:te,empenhoId:a.id,empenhoNumero:a.numero}),e[304]=a.id,e[305]=a.numero,e[306]=S.isOpen,e[307]=Yt):Yt=e[307];let Zt;e[308]!==xe||e[309]!==f.isLoading||e[310]!==f.isOpen||e[311]!==f.liquidacaoNumero?(Zt=t.jsx(os,{isOpen:f.isOpen,onClose:ce,onConfirm:xe,title:"Excluir Liquidação",description:"Tem certeza que deseja excluir esta liquidação? Esta ação não pode ser desfeita.",itemName:f.liquidacaoNumero,isLoading:f.isLoading}),e[308]=xe,e[309]=f.isLoading,e[310]=f.isOpen,e[311]=f.liquidacaoNumero,e[312]=Zt):Zt=e[312];let ea;e[313]!==a.id||e[314]!==a.numero||e[315]!==y.isOpen?(ea=t.jsx(qs,{isOpen:y.isOpen,onClose:De,empenhoId:a.id,empenhoNumero:a.numero}),e[313]=a.id,e[314]=a.numero,e[315]=y.isOpen,e[316]=ea):ea=e[316];let ta;e[317]!==je||e[318]!==d.isLoading||e[319]!==d.isOpen||e[320]!==d.pagamentoNumero?(ta=t.jsx(os,{isOpen:d.isOpen,onClose:Ce,onConfirm:je,title:"Excluir Pagamento",description:"Tem certeza que deseja excluir este pagamento? Esta ação não pode ser desfeita.",itemName:d.pagamentoNumero,isLoading:d.isLoading}),e[317]=je,e[318]=d.isLoading,e[319]=d.isOpen,e[320]=d.pagamentoNumero,e[321]=ta):ta=e[321];let za;return e[322]!==Kt||e[323]!==Xt||e[324]!==Yt||e[325]!==Zt||e[326]!==ea||e[327]!==ta||e[328]!==w?(za=t.jsxs(gs,{children:[w,Kt,Xt,Yt,Zt,ea,ta]}),e[322]=Kt,e[323]=Xt,e[324]=Yt,e[325]=Zt,e[326]=ea,e[327]=ta,e[328]=w,e[329]=za):za=e[329],za}function Is(){return document.getElementById("attachment-file")?.click()}function Es(c){return{...c,isLoading:!1}}function ks(c){return{...c,isLoading:!0}}function Ts(c){return{...c,isLoading:!1}}function Ms(c){return{...c,isLoading:!0}}function $s(c){return{...c,isLoading:!1}}function Bs(c){return{...c,isLoading:!0}}function Ps(c){return{...c,isOpen:!1}}function Vs(c){console.error("Error uploading attachment:",c)}function As(c){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(c)}export{Rl 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.