import{_ as E}from"./CL2jyiz8.js";import{_ as U}from"./DW2OqR52.js";import B from"./5WXaDlrT.js";import D from"./CELWndHG.js";import F from"./B7Hqpkvs.js";import G from"./BSLzRQpY.js";import N from"./C5Oc2f2M.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,M as V,n as j}from"./dVzHJMF1.js";import{u as f}from"./yHxjwlra.js";import{_ as O}from"./Brk5FU9k.js";import q from"./iZ-xiGRB.js";import"./B-d7gz-d.js";import"./CNJ8Vm0G.js";import"./CWHHmK0V.js";import"./Bpf-t_rp.js";import"./KG16xCEZ.js";import"./FcRkkR--.js";import"./DP0doleY.js";import"./BAtzogEJ.js";import"./DiwqsPB4.js";import"./KcBrPYTF.js";import"./Bhud8mbC.js";import"./a1m94JqE.js";import"./Bc99g-CG.js";import"./BSe03gVj.js";import"./BGFPOxrp.js";import"./B79Hoqpc.js";import"./CBbadgK0.js";import"./CM8mMzv6.js";import"./r1Y5hC84.js";import"./yXj_05M0.js";const z={class:"base-grid"},M=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(M,{__name:"RelacoesInstitucionaisInformacaoCardGeral"}),H={},J={class:"flex -mx-4 -mb-4 p-4 sm:sticky sm:bottom-0 bg-white border-t"},K={class:"flex flex-wrap gap-3 justify-end items-center w-full"};function L(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",K,[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",L]]);export{ko as default};
