import{_ as E}from"./yKVtex9U.js";import{_ as U}from"./4FMzYxPj.js";import B from"./BWs0r_ue.js";import D from"./D8TjaAl-.js";import F from"./CJYlvWEf.js";import G from"./Dc_YXEFz.js";import N from"./BBDFeM-T.js";import{d as P,O as R,P as v,i as m,b as x,o as C,w as t,e as a,f as o,g as p,K as V,n as j}from"./JQJBiNWj.js";import{u as f}from"./F98GHXdS.js";import{_ as O}from"./G7u0egV4.js";import q from"./D42GNhrT.js";import"./CbtPaznW.js";import"./DmwTwIPt.js";import"./B6O9xiO5.js";import"./B-La3K3C.js";import"./DvBDpJyt.js";import"./FcRkkR--.js";import"./Dk4pWsnS.js";import"./BSHuRY0P.js";import"./CeWG_dyW.js";import"./CDSORL4U.js";import"./DqVYbxj5.js";import"./ClVEEBFD.js";import"./BoTzJngr.js";import"./qAEGbaa4.js";import"./BnQEpK3N.js";import"./BgAkS4D_.js";import"./BuR5k2Xw.js";import"./2JTb7YQn.js";import"./3oa0FK2h.js";import"./HM4z-iuB.js";const z={class:"base-grid"},K=P({__name:"CardGeral",async setup(u){let n,i;const d=R(),r=([n,i]=v(()=>d.getEmpresaSelecionada()),n=await n,i(),n),{data:b}=([n,i]=v(()=>f(()=>m.empresa.findAll(),{default:()=>[]},"$qvpliAgmUR")),n=await n,i(),n),{data:S}=f(()=>m.entidade.findByEmpresa(r.sigla),{default:()=>[]},"$aBVtXw5vk6"),{data:w}=f("empresaAreas",()=>m.empresa.findAreas(r.sigla),{default:()=>[]}),{data:y}=f("itensContrato",()=>m.itensContratos.find(r.sigla),{default:()=>[]});function I(g){return m.usuarios.findUsuarios({...g,empresa:[r.sigla]})}return(g,e)=>{const c=N,s=G,$=E,_=F,T=D,k=B,A=U;return C(),x(A,{title:"Geral"},{default:t(()=>[a("div",z,[o(s,{class:"col-span-4",name:"empresa"},{default:t(()=>[e[0]||(e[0]=a("label",{for:"empresa"},"Empresa:",-1)),o(c,{id:"empresa",options:p(b),"option-label":"nomeFantasia","option-value":"id",placeholder:"Selecione...",filter:""},null,8,["options"])]),_:1}),o(s,{class:"col-span-4",name:"email"},{default:t(()=>[e[1]||(e[1]=a("label",{for:"empresa"},"Órgão/Entidade:",-1)),o(c,{id:"empresa",options:p(S),"option-label":"nome","option-value":"id",placeholder:"Selecione...",filter:""},null,8,["options"])]),_:1}),o(s,{class:"col-span-4",name:"nome"},{default:t(()=>[e[2]||(e[2]=a("label",{for:"nome"},"Nome:",-1)),o($,{id:"idUsuario",name:"nome","paginated-data-key":"usuarios-empresa-relacoes","async-fn":I,"option-value":"id","option-label":"nome",placeholder:"Selecione...",filter:""})]),_:1}),o(s,{class:"col-span-4",name:"email"},{default:t(()=>[e[3]||(e[3]=a("label",{for:"email"},"E-mail:",-1)),o(_,{id:"email"})]),_:1}),o(s,{class:"col-span-4",name:"area"},{default:t(()=>[e[4]||(e[4]=a("label",{for:"area"},"Área/Departamento:",-1)),o(c,{id:"area",options:p(w),"option-label":l=>l.sigla+" - "+l.descricao,"option-value":"id",placeholder:"Selecione...",filter:""},null,8,["options","option-label"])]),_:1}),o(s,{class:"col-span-4",name:"itemContrato"},{default:t(()=>[e[5]||(e[5]=a("label",{for:"itemContrato"},"Item contrato:",-1)),o(c,{id:"itemContrato",options:p(y),"option-label":l=>l.nroItem+" - "+l.descricao,"option-value":"nroItem",placeholder:"Selecione...",filter:""},null,8,["options","option-label"])]),_:1}),o(s,{class:"col-span-4",name:"dataInformacao"},{default:t(()=>[e[6]||(e[6]=a("label",{for:"dataInformacao"},"Data informação:",-1)),o(T,{id:"dataInformacao",placeholder:"dd/mm/aaaa","icon-display":"input","show-icon":""})]),_:1}),o(s,{class:"col-span-4",name:"tema"},{default:t(()=>[e[7]||(e[7]=a("label",{for:"tema"},"Tema:",-1)),o(_,{id:"tema"})]),_:1}),o(s,{class:"col-span-4",name:"subTema"},{default:t(()=>[e[8]||(e[8]=a("label",{for:"subTema"},"Sub-Tema:",-1)),o(_,{id:"subTema"})]),_:1}),o(s,{class:"col-span-12",name:"assunto"},{default:t(()=>[e[9]||(e[9]=a("label",{for:"assunto"},"Assunto:",-1)),o(k,{id:"assunto",rows:"3","auto-resize":""})]),_:1})])]),_:1})}}}),X=Object.assign(K,{__name:"RelacoesInstitucionaisInformacaoCardGeral"}),H={},J={class:"flex -mx-4 -mb-4 p-4 sm:sticky sm:bottom-0 bg-white border-t"},L={class:"flex flex-wrap gap-3 justify-end items-center w-full"};function M(u,n){const i=X,d=O,r=q;return C(),x(r,{class:"space-y-4"},{default:t(()=>[o(i),a("div",J,[a("div",L,[o(d,{mode:"cancel",class:"max-sm:w-full",onClick:n[0]||(n[0]=b=>("navigateTo"in u?u.navigateTo:p(j))("./consultar"))}),o(d,{mode:"save",class:"max-sm:w-full",type:"submit"})])])]),_:1})}const ko=V(H,[["render",M]]);export{ko as default};
