PageSourceSearch

https://craibas.al.gov.br/build/assets/Create-Dy-18UbQ.js

js craibas.al.gov.br collected 2026-10-02 23:54:40 UTC 20,445 bytes, 1 lines download raw bytes

1import{c as Ut,u as Xt,a as Yt,r as Mt,j as t,H as Zt,b as Pt}from"./app-CTaY8UJf.js";import{B as $e}from"./button-DXCKLHtj.js";import{C as ea,a as ta,b as aa,c as sa}from"./card-UxP9oPxk.js";import{I as o}from"./input-7aHhCeCr.js";import{L as n}from"./label-CxCrcTSv.js";import{S as kt,a as Ht,c as It,b as Ot,d as zt}from"./select-BBMYAKnd.js";import{T as la}from"./textarea-0W-7qht9.js";import{A as ia}from"./AppLayoutWithNotifications-mus8tTbI.js";import ra from"./arrow-left-CPptMQyl.js";import na from"./paperclip-CmJi9_qe.js";import ca from"./plus-BsfGhhT4.js";import oa from"./trash-2-QtamTJOn.js";import ma from"./save-tvu6uyS3.js";import"./app-CNmQMdEi.js";import"./index-fQ3brVpV.js";import"./index-CsfSsVkk.js";import"./index-DXg2b8Vm.js";import"./index-CJBlix5Q.js";import"./index-DHUBBKJC.js";import"./index-ClkQdPrn.js";import"./index-BE_AIKwc.js";import"./chevron-down-COTwZrVV.js";import"./createLucideIcon-CmjF8lT1.js";import"./check-COSJjDXC.js";import"./chevron-up-dKr-3op1.js";import"./x-DmP7A1Bz.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-Svmmcv6D.js";import"./video-CWkR2iFG.js";import"./chevron-right-Dcl2lTY9.js";import"./dropdown-menu-D6OZoFra.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"./users-BYuco8Ea.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 js(){const e=Ut.c(258),{page_title:c,page_description:Ae,types:vt}=Xt().props;let Ee;e[0]===Symbol.for("react.memo_cache_sentinel")?(Ee=[{value:"em_execucao",label:"Em Execução"},{value:"executado",label:"Executado"},{value:"cancelado",label:"Cancelado"}],e[0]=Ee):Ee=e[0];const Kt=Ee;let Me;e[1]===Symbol.for("react.memo_cache_sentinel")?(Me=[],e[1]=Me):Me=e[1];let Pe;e[2]===Symbol.for("react.memo_cache_sentinel")?(Pe={numero:"",ano:"",concedentes:"",convenente:"",type:"",valor_repasse:"",valor_total:"",contra_partida:"",vigencia_inicial:"",vigencia_final:"",objeto:"",situacao:"",data_publicacao:"",arquivos:Me,transferencias:[{data:"",valor:"",descricao:""}]},e[2]=Pe):Pe=e[2];const{data:s,setData:l,post:jt,processing:ke,errors:a}=Yt(Pe),[_t,Wt]=Mt.useState(""),[gt,Gt]=Mt.useState(""),[yt,Jt]=Mt.useState("");let He;e[3]!==l?(He=(i,m)=>d=>{const r=d.target.value.replace(/\D/g,"");if(!r){m(""),l(i,"");return}const we=Number(r)/100;m(we.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})),l(i,String(we))},e[3]=l,e[4]=He):He=e[4];const p=He,Qt=va;let Ie;e[5]!==s.transferencias||e[6]!==l?(Ie=i=>m=>{const d=m.target.value.replace(/\D/g,""),r=[...s.transferencias];if(!d){r[i]={...r[i],valor:""},l("transferencias",r);return}const we=Number(d)/100;r[i]={...r[i],valor:String(we)},l("transferencias",r)},e[5]=s.transferencias,e[6]=l,e[7]=Ie):Ie=e[7];const Le=Ie;let Oe;e[8]!==jt?(Oe=i=>{i.preventDefault(),jt("/admin/convenios",{forceFormData:!0,onSuccess:ha})},e[8]=jt,e[9]=Oe):Oe=e[9];const bt=Oe;let ze;e[10]!==s.transferencias||e[11]!==l?(ze=()=>{l("transferencias",[...s.transferencias,{data:"",valor:"",descricao:""}])},e[10]=s.transferencias,e[11]=l,e[12]=ze):ze=e[12];const Nt=ze;let Ke;e[13]!==s.transferencias||e[14]!==l?(Ke=i=>{const m=s.transferencias.filter((d,r)=>r!==i);l("transferencias",m.length>0?m:[{data:"",valor:"",descricao:""}])},e[13]=s.transferencias,e[14]=l,e[15]=Ke):Ke=e[15];const Be=Ke;let We;e[16]!==s.transferencias||e[17]!==l?(We=(i,m,d)=>{l("transferencias",s.transferencias.map((r,we)=>we===i?{...r,[m]:d}:r))},e[16]=s.transferencias,e[17]=l,e[18]=We):We=e[18];const f=We;let u;e[19]!==c?(u=t.jsx(Zt,{title:c}),e[19]=c,e[20]=u):u=e[20];let x;e[21]!==c?(x=t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:c}),e[21]=c,e[22]=x):x=e[22];let h;e[23]!==Ae?(h=t.jsx("p",{className:"mt-1 text-gray-600",children:Ae}),e[23]=Ae,e[24]=h):h=e[24];let v;
1e[25]!==x||e[26]!==h?(v=t.jsxs("div",{children:[x,h]}),e[25]=x,e[26]=h,e[27]=v):v=e[27];let Ge;e[28]===Symbol.for("react.memo_cache_sentinel")?(Ge=t.jsxs($e,{variant:"outline",onClick:xa,className:"gap-2",children:[t.jsx(ra,{className:"h-4 w-4"})," Voltar"]}),e[28]=Ge):Ge=e[28];let j;e[29]!==v?(j=t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[v,Ge]}),e[29]=v,e[30]=j):j=e[30];let Je;e[31]===Symbol.for("react.memo_cache_sentinel")?(Je=t.jsx(ea,{children:t.jsx(ta,{children:"Novo Convênio"})}),e[31]=Je):Je=e[31];let Qe;e[32]===Symbol.for("react.memo_cache_sentinel")?(Qe=t.jsx(n,{htmlFor:"numero",children:"Número do convênio"}),e[32]=Qe):Qe=e[32];let _;e[33]!==l?(_=i=>l("numero",i.target.value),e[33]=l,e[34]=_):_=e[34];const St=a.numero?"border-red-500":"";let g;e[35]!==s.numero||e[36]!==_||e[37]!==St?(g=t.jsx(o,{id:"numero",value:s.numero,onChange:_,className:St}),e[35]=s.numero,e[36]=_,e[37]=St,e[38]=g):g=e[38];let y;e[39]!==a.numero?(y=a.numero&&t.jsx("p",{className:"text-sm text-red-500",children:a.numero}),e[39]=a.numero,e[40]=y):y=e[40];let b;e[41]!==g||e[42]!==y?(b=t.jsxs("div",{className:"space-y-2",children:[Qe,g,y]}),e[41]=g,e[42]=y,e[43]=b):b=e[43];let Ue;e[44]===Symbol.for("react.memo_cache_sentinel")?(Ue=t.jsx(n,{htmlFor:"ano",children:"Ano"}),e[44]=Ue):Ue=e[44];let N;e[45]!==l?(N=i=>l("ano",i.target.value),e[45]=l,e[46]=N):N=e[46];const Ct=a.ano?"border-red-500":"";let S;e[47]!==s.ano||e[48]!==N||e[49]!==Ct?(S=t.jsx(o,{id:"ano",value:s.ano,onChange:N,className:Ct}),e[47]=s.ano,e[48]=N,e[49]=Ct,e[50]=S):S=e[50];let C;e[51]!==a.ano?(C=a.ano&&t.jsx("p",{className:"text-sm text-red-500",children:a.ano}),e[51]=a.ano,e[52]=C):C=e[52];let D;e[53]!==S||e[54]!==C?(D=t.jsxs("div",{className:"space-y-2",children:[Ue,S,C]}),e[53]=S,e[54]=C,e[55]=D):D=e[55];let Xe;e[56]===Symbol.for("react.memo_cache_sentinel")?(Xe=t.jsx(n,{htmlFor:"concedentes",children:"Concedentes"}),e[56]=Xe):Xe=e[56];let F;e[57]!==l?(F=i=>l("concedentes",i.target.value),e[57]=l,e[58]=F):F=e[58];const Dt=a.concedentes?"border-red-500":"";let R;e[59]!==s.concedentes||e[60]!==F||e[61]!==Dt?(R=t.jsx(o,{id:"concedentes",value:s.concedentes,onChange:F,className:Dt}),e[59]=s.concedentes,e[60]=F,e[61]=Dt,e[62]=R):R=e[62];let q;e[63]!==a.concedentes?(q=a.concedentes&&t.jsx("p",{className:"text-sm text-red-500",children:a.concedentes}),e[63]=a.concedentes,e[64]=q):q=e[64];let T;e[65]!==R||e[66]!==q?(T=t.jsxs("div",{className:"space-y-2",children:[Xe,R,q]}),e[65]=R,e[66]=q,e[67]=T):T=e[67];let Ye;e[68]===Symbol.for("react.memo_cache_sentinel")?(Ye=t.jsx(n,{htmlFor:"convenente",children:"Convenente"}),e[68]=Ye):Ye=e[68];let V;e[69]!==l?(V=i=>l("convenente",i.target.value),e[69]=l,e[70]=V):V=e[70];const Ft=a.convenente?"border-red-500":"";let w;e[71]!==s.convenente||e[72]!==V||e[73]!==Ft?(w=t.jsx(o,{id:"convenente",value:s.convenente,onChange:V,className:Ft}),e[71]=s.convenente,e[72]=V,e[73]=Ft,e[74]=w):w=e[74];let A;e[75]!==a.convenente?(A=a.convenente&&t.jsx("p",{className:"text-sm text-red-500",children:a.convenente}),e[75]=a.convenente,e[76]=A):A=e[76];let L;e[77]!==w||e[78]!==A?(L=t.jsxs("div",{className:"space-y-2",children:[Ye,w,A]}),e[77]=w,e[78]=A,e[79]=L):L=e[79];let Ze;e[80]===Symbol.for("react.memo_cache_sentinel")?(Ze=t.jsxs(n,{htmlFor:"type",children:["Tipo ",t.jsx("span",{className:"text-red-500",children:"*"})]}),e[80]=Ze):Ze=e[80];let B;e[81]!==l?(B=i=>l("type",i),e[81]=l,e[82]=B):B=e[82];const Rt=a.type?"border-red-500":"";let et;e[83]===Symbol.for("react.memo_cache_sentinel")?(et=t.jsx(It,{placeholder:"Selecione o tipo"}),e[83]=et):et=e[83];let $;e[84]!==Rt?($=t.jsx(Ot,{id:"type",className:Rt,children:et}),e[84]=Rt,e[85]=$):$=e[85];let E;e[86]!==vt?(E=t.jsx(kt,{children:Object.entries(vt).map(ua)}),e[86]=vt,e[87]=E):E=e[87];let M;e[88]!==s.type||e[89]!==B||e[90]!==$||e[91]!==E?(M=t.jsxs(Ht,{value:s.type,onValueChange:B,children:[$,E]}),e[88]=s.type,e[89]=B,e[90]=$,e[91]=E,e[92]=M):M=e[92];let P;e[93]!==a.type?(P=a.type&&t.jsx("p",{className:"text-sm text-red-500",children:a.type}),e[93]=a.type,e[94]=P):P=e[94];let k;e[95]!==M||e[96]!==P?(k=t.jsxs("div",{className:"space-y-2",children:[Ze,M,P]}),e[95]=M,e[96]=P,e[97]=k):k=e[97];let tt;e[98]===Symbol.for("react.memo_cache_sentinel")?(tt=t.jsx(n,{htmlFor:"situacao",children:"Situação"}),e[98]=tt):tt=e[98];let H;
1e[99]!==l?(H=i=>l("situacao",i),e[99]=l,e[100]=H):H=e[100];const qt=a.situacao?"border-red-500":"";let at;e[101]===Symbol.for("react.memo_cache_sentinel")?(at=t.jsx(It,{placeholder:"Selecione a situação"}),e[101]=at):at=e[101];let I;e[102]!==qt?(I=t.jsx(Ot,{id:"situacao",className:qt,children:at}),e[102]=qt,e[103]=I):I=e[103];let st;e[104]===Symbol.for("react.memo_cache_sentinel")?(st=t.jsx(kt,{children:Kt.map(fa)}),e[104]=st):st=e[104];let O;e[105]!==s.situacao||e[106]!==H||e[107]!==I?(O=t.jsxs(Ht,{value:s.situacao,onValueChange:H,children:[I,st]}),e[105]=s.situacao,e[106]=H,e[107]=I,e[108]=O):O=e[108];let z;e[109]!==a.situacao?(z=a.situacao&&t.jsx("p",{className:"text-sm text-red-500",children:a.situacao}),e[109]=a.situacao,e[110]=z):z=e[110];let K;e[111]!==O||e[112]!==z?(K=t.jsxs("div",{className:"space-y-2",children:[tt,O,z]}),e[111]=O,e[112]=z,e[113]=K):K=e[113];let lt;e[114]===Symbol.for("react.memo_cache_sentinel")?(lt=t.jsx(n,{htmlFor:"valor_repasse",children:"Valor repasse (Valor Recebido)"}),e[114]=lt):lt=e[114];let W;e[115]!==p?(W=p("valor_repasse",Wt),e[115]=p,e[116]=W):W=e[116];const Tt=a.valor_repasse?"border-red-500":"";let G;e[117]!==W||e[118]!==Tt||e[119]!==_t?(G=t.jsx(o,{id:"valor_repasse",inputMode:"numeric",value:_t,onChange:W,placeholder:"R$ 0,00",className:Tt}),e[117]=W,e[118]=Tt,e[119]=_t,e[120]=G):G=e[120];let J;e[121]!==a.valor_repasse?(J=a.valor_repasse&&t.jsx("p",{className:"text-sm text-red-500",children:a.valor_repasse}),e[121]=a.valor_repasse,e[122]=J):J=e[122];let Q;e[123]!==G||e[124]!==J?(Q=t.jsxs("div",{className:"space-y-2",children:[lt,G,J]}),e[123]=G,e[124]=J,e[125]=Q):Q=e[125];let it;e[126]===Symbol.for("react.memo_cache_sentinel")?(it=t.jsx(n,{htmlFor:"valor_total",children:"Valor total"}),e[126]=it):it=e[126];let U;e[127]!==p?(U=p("valor_total",Gt),e[127]=p,e[128]=U):U=e[128];const Vt=a.valor_total?"border-red-500":"";let X;e[129]!==U||e[130]!==Vt||e[131]!==gt?(X=t.jsx(o,{id:"valor_total",inputMode:"numeric",value:gt,onChange:U,placeholder:"R$ 0,00",className:Vt}),e[129]=U,e[130]=Vt,e[131]=gt,e[132]=X):X=e[132];let Y;e[133]!==a.valor_total?(Y=a.valor_total&&t.jsx("p",{className:"text-sm text-red-500",children:a.valor_total}),e[133]=a.valor_total,e[134]=Y):Y=e[134];let Z;e[135]!==X||e[136]!==Y?(Z=t.jsxs("div",{className:"space-y-2",children:[it,X,Y]}),e[135]=X,e[136]=Y,e[137]=Z):Z=e[137];let rt;e[138]===Symbol.for("react.memo_cache_sentinel")?(rt=t.jsx(n,{htmlFor:"contra_partida",children:"Contrapartida"}),e[138]=rt):rt=e[138];let ee;e[139]!==p?(ee=p("contra_partida",Jt),e[139]=p,e[140]=ee):ee=e[140];const wt=a.contra_partida?"border-red-500":"";let te;e[141]!==yt||e[142]!==ee||e[143]!==wt?(te=t.jsx(o,{id:"contra_partida",inputMode:"numeric",value:yt,onChange:ee,placeholder:"R$ 0,00",className:wt}),e[141]=yt,e[142]=ee,e[143]=wt,e[144]=te):te=e[144];let ae;e[145]!==a.contra_partida?(ae=a.contra_partida&&t.jsx("p",{className:"text-sm text-red-500",children:a.contra_partida}),e[145]=a.contra_partida,e[146]=ae):ae=e[146];let se;e[147]!==te||e[148]!==ae?(se=t.jsxs("div",{className:"space-y-2",children:[rt,te,ae]}),e[147]=te,e[148]=ae,e[149]=se):se=e[149];let nt;e[150]===Symbol.for("react.memo_cache_sentinel")?(nt=t.jsx(n,{htmlFor:"data_publicacao",children:"Data de publicação"}),e[150]=nt):nt=e[150];let le;e[151]!==l?(le=i=>l("data_publicacao",i.target.value),e[151]=l,e[152]=le):le=e[152];const At=a.data_publicacao?"border-red-500":"";let ie;e[153]!==s.data_publicacao||e[154]!==le||e[155]!==At?(ie=t.jsx(o,{id:"data_publicacao",type:"date",value:s.data_publicacao,onChange:le,className:At}),e[153]=s.data_publicacao,e[154]=le,e[155]=At,e[156]=ie):ie=e[156];let re;e[157]!==a.data_publicacao?(re=a.data_publicacao&&t.jsx("p",{className:"text-sm text-red-500",children:a.data_publicacao}),e[157]=a.data_publicacao,e[158]=re):re=e[158];let ne;e[159]!==ie||e[160]!==re?(ne=t.jsxs("div",{className:"space-y-2",children:[nt,ie,re]}),e[159]=ie,e[160]=re,e[161]=ne):ne=e[161];let ct;e[162]===Symbol.for("react.memo_cache_sentinel")?(ct=t.jsx(n,{htmlFor:"vigencia_inicial",children:"Vigência inicial"}),e[162]=ct):ct=e[162];let ce;e[163]!==l?(ce=i=>l("vigencia_inicial",i.target.value),e[163]=l,e[164]=ce):ce=e[164];const Lt=a.vigencia_inicial?"border-red-500":"";let oe;e[165]!==s.vigencia_inicial||e[166]!==ce||e[167]!==Lt?(oe=t.jsx(o,{id:"vigencia_inicial",type:"date",value:s.vigencia_inicial,onCh
1ange:ce,className:Lt}),e[165]=s.vigencia_inicial,e[166]=ce,e[167]=Lt,e[168]=oe):oe=e[168];let me;e[169]!==a.vigencia_inicial?(me=a.vigencia_inicial&&t.jsx("p",{className:"text-sm text-red-500",children:a.vigencia_inicial}),e[169]=a.vigencia_inicial,e[170]=me):me=e[170];let de;e[171]!==oe||e[172]!==me?(de=t.jsxs("div",{className:"space-y-2",children:[ct,oe,me]}),e[171]=oe,e[172]=me,e[173]=de):de=e[173];let ot;e[174]===Symbol.for("react.memo_cache_sentinel")?(ot=t.jsx(n,{htmlFor:"vigencia_final",children:"Vigência final"}),e[174]=ot):ot=e[174];let pe;e[175]!==l?(pe=i=>l("vigencia_final",i.target.value),e[175]=l,e[176]=pe):pe=e[176];const Bt=a.vigencia_final?"border-red-500":"";let fe;e[177]!==s.vigencia_final||e[178]!==pe||e[179]!==Bt?(fe=t.jsx(o,{id:"vigencia_final",type:"date",value:s.vigencia_final,onChange:pe,className:Bt}),e[177]=s.vigencia_final,e[178]=pe,e[179]=Bt,e[180]=fe):fe=e[180];let ue;e[181]!==a.vigencia_final?(ue=a.vigencia_final&&t.jsx("p",{className:"text-sm text-red-500",children:a.vigencia_final}),e[181]=a.vigencia_final,e[182]=ue):ue=e[182];let xe;e[183]!==fe||e[184]!==ue?(xe=t.jsxs("div",{className:"space-y-2",children:[ot,fe,ue]}),e[183]=fe,e[184]=ue,e[185]=xe):xe=e[185];let mt;e[186]===Symbol.for("react.memo_cache_sentinel")?(mt=t.jsx(n,{htmlFor:"objeto",children:"Objeto"}),e[186]=mt):mt=e[186];let he;e[187]!==l?(he=i=>l("objeto",i.target.value),e[187]=l,e[188]=he):he=e[188];const $t=a.objeto?"border-red-500":"";let ve;e[189]!==s.objeto||e[190]!==he||e[191]!==$t?(ve=t.jsx(la,{id:"objeto",rows:5,value:s.objeto,onChange:he,className:$t}),e[189]=s.objeto,e[190]=he,e[191]=$t,e[192]=ve):ve=e[192];let je;e[193]!==a.objeto?(je=a.objeto&&t.jsx("p",{className:"text-sm text-red-500",children:a.objeto}),e[193]=a.objeto,e[194]=je):je=e[194];let _e;e[195]!==ve||e[196]!==je?(_e=t.jsxs("div",{className:"md:col-span-2 space-y-2",children:[mt,ve,
1je]}),e[195]=ve,e[196]=je,e[197]=_e):_e=e[197];let dt;e[198]===Symbol.for("react.memo_cache_sentinel")?(dt=t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-gray-900",children:"Arquivos do convênio"}),t.jsx("p",{className:"text-sm text-gray-500",children:"Anexe um ou mais arquivos relacionados ao convênio."})]}),t.jsx(na,{className:"h-5 w-5 text-gray-400"})]}),e[198]=dt):dt=e[198];let ge;e[199]!==l?(ge=t.jsx(o,{type:"file",multiple:!0,onChange:i=>l("arquivos",Array.from(i.target.files??[]))}),e[199]=l,e[200]=ge):ge=e[200];let ye;e[201]!==s.arquivos?(ye=Array.isArray(s.arquivos)&&s.arquivos.length>0&&t.jsx("div",{className:"space-y-2 rounded-md bg-muted/30 p-3 text-sm",children:s.arquivos.map(pa)}),e[201]=s.arquivos,e[202]=ye):ye=e[202];let be;e[203]!==a.arquivos?(be=a.arquivos&&t.jsx("p",{className:"text-sm text-red-500",children:a.arquivos}),e[203]=a.arquivos,e[204]=be):be=e[204];let Ne;e[205]!==ge||e[206]!==ye||e[207]!==be?(Ne=t.jsxs("div",{className:"md:col-span-2 space-y-3 rounded-lg border p-4",children:[dt,ge,ye,be]}),e[205]=ge,e[206]=ye,e[207]=be,e[208]=Ne):Ne=e[208];let pt;e[209]===Symbol.for("react.memo_cache_sentinel")?(pt=t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-gray-900",children:"Transferências vinculadas"}),t.jsx("p",{className:"text-sm text-gray-500",children:"Cadastre as transferências relacionadas ao convênio."})]}),e[209]=pt):pt=e[209];let ft;e[210]===Symbol.for("react.memo_cache_sentinel")?(ft=t.jsx(ca,{className:"h-4 w-4"}),e[210]=ft):ft=e[210];let Se;e[211]!==Nt?(Se=t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[pt,t.jsxs($e,{type:"button",variant:"outline",onClick:Nt,className:"gap-2",children:[ft," Adicionar transferência"]})]}),e[211]=Nt,e[212]=Se):Se=e[212];let Ce;if(e[213]!==s.transferencias||e[214]!==Le||e[215]!==Be||e[216]!==f){let i;e[218]!==Le||e[219]!==Be||e[220]!==f?(i=(m,d)=>t.jsxs("div",{className:"grid grid-cols-1 gap-4 rounded-md border p-4 md:grid-cols-[180px_180px_1fr_auto]",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx(n,{children:"Data"}),t.jsx(o,{type:"date",value:m.data,onChange:r=>f(d,"data",r.target.value)})]}),t.jsxs("div",{className:"space-y-1",children:[t.jsx(n,{children:"Valor"}),t.jsx(o,{type:"text",inputMode:"numeric",value:Qt(m.valor),onChange:Le(d),placeholder:"R$ 0,00"})]}),t.jsxs("div",{className:"space-y-1",children:[t.jsx(n,{children:"Descrição"}),t.jsx(o,{value:m.descricao,onChange:r=>f(d,"descricao",r.target.value),placeholder:"Descrição da transferência"})]}),t.jsx("div",{className:"flex items-end",children:t.jsxs($e,{type:"button",variant:"outline",onClick:()=>Be(d),className:"gap-2 text-red-600 hover:text-red-700",children:[t.jsx(oa,{className:"h-4 w-4"})," Remover"]})})]},d),e[218]=Le,e[219]=Be,e[220]=f,e[221]=i):i=e[221],Ce=s.transferencias.map(i),e[213]=s.transferencias,e[214]=Le,e[215]=Be,e[216]=f,e[217]=Ce}else Ce=e[217];let De;e[222]!==Ce?(De=t.jsx("div",{className:"space-y-4",children:Ce}),e[222]=Ce,e[223]=De):De=e[223];let Fe;e[224]!==Se||e[225]!==De?(Fe=t.jsxs("div",{className:"md:col-span-2 space-y-4 rounded-lg border p-4",children:[Se,De]}),e[224]=Se,e[225]=De,e[226]=Fe):Fe=e[226];let Re;e[227]!==Ne||e[228]!==Fe||e[229]!==b||e[230]!==D||e[231]!==T||e[232]!==L||e[233]!==k||e[234]!==K||e[235]!==Q||e[236]!==Z||e[237]!==se||e[238]!==ne||e[239]!==de||e[240]!==xe||e[241]!==_e?(Re=t.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:[b,D,T,L,k,K,Q,Z,se,ne,de,xe,_e,Ne,Fe]}),e[227]=Ne,e[228]=Fe,e[229]=b,e[230]=D,e[231]=T,e[232]=L,e[233]=k,e[234]=K,e[235]=Q,e[236]=Z,e[237]=se,e[238]=ne,e[239]=de,e[240]=xe,e[241]=_e,e[242]=Re):Re=e[242];let ut;e[243]===Symbol.for("react.memo_cache_sentinel")?(ut=t.jsx($e,{type:"button",variant:"outline",onClick:da,children:"Cancelar"}),e[243]=ut):ut=e[243];let xt;e[244]===Symbol.for("react.memo_cache_sentinel")?(xt=t.jsx(ma,{className:"h-4 w-4"}),e[244]=xt):xt=e[244];const Et=ke?"Salvando...":"Salvar convênio";let qe;e[245]!==ke||e[246]!==Et?(qe=t.jsxs("div",{className:"flex justify-end gap-3 border-t pt-6",children:[ut,t.jsxs($e,{type:"submit",className:"gap-2",disabled:ke,children:[xt,Et]})]}),e[245]=ke,e[246]=Et,e[247]=qe):qe=e[247];let Te;e[248]!==bt||e[249]!==Re||e[250]!==qe?(Te=t.jsxs(aa,{children:[Je,t.jsx(sa,{children:t.jsxs("form",{onSubmit:bt,className:"space-y-6",children:[Re,qe]})})]}),e[248]=bt,e[249]=Re,e[250]=qe,e[251]=Te):Te=e[251];let Ve;e[252]!==Te||e[253]!==j?(Ve=t.jsxs("div",{className:"space-y-6 p-6",children:[j,Te]}),e[252]=Te,e[253]=j,e[254]=Ve):Ve=e[254];let ht;return e[255]!==Ve||e[256]!==u?(ht=t.jsxs(ia,{children:[u,Ve]}),e[255]=Ve,e[256]=u,e[257]=ht):ht=e[257],ht}function da(){return Pt.visit("/admin/convenios")}function pa(e,c){return t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx("span",{className:"truncate",children:e.name}),t.jsxs("span",{className:"text-xs text-gray-500",children:[Math.round(e.size/1024)," KB"]}
1)]},`${e.name}-${c}`)}function fa(e){return t.jsx(zt,{value:e.value,children:e.label},e.value)}function ua(e){const[c,Ae]=e;return t.jsx(zt,{value:c,children:Ae},c)}function xa(){return Pt.visit("/admin/convenios")}function ha(){return Pt.visit("/admin/convenios")}function va(e){if(e==null||e==="")return"";const c=Number(String(e));return Number.isNaN(c)?"":c.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}export{js 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.