import{_ as w}from"./DW2OqR52.js";import A from"./BuQ9u7Je.js";import C from"./5WXaDlrT.js";import U from"./CELWndHG.js";import $ from"./B7Hqpkvs.js";import D from"./BSLzRQpY.js";import k from"./C5Oc2f2M.js";import{d as B,O as G,P as N,i,b as O,o as V,w as s,e,f as o,g as t}from"./dVzHJMF1.js";import{u as m}from"./yHxjwlra.js";import{_ as j}from"./CL2jyiz8.js";const F={class:"base-grid"},I={class:"col-span-12 flex gap-3 w-full"},P=B({__name:"Geral",async setup(T){let n,f;const b=G(),r=([n,f]=N(()=>b.getEmpresaSelecionada()),n=await n,f(),n),{data:g}=m(()=>i.entidade.findByEmpresa(r.sigla),{default:()=>[]},"$eT1E09NDhj"),{data:v}=m(()=>i.empresa.findAll(),{default:()=>[]},"$vjvvYXiUn2"),{data:x}=m(()=>i.empresa.findAreas(r.sigla),{default:()=>[]},"$GCV7yEBVz7");function E(u){return i.usuarios.findUsuarios({...u,empresa:[r.sigla]})}return(u,a)=>{const d=k,l=D,p=$,c=U,_=C,y=A,S=w;return V(),O(S,{title:"Geral",class:"flex flex-col gap-5"},{default:s(()=>[e("div",F,[o(l,{class:"col-span-12 md:col-span-4",name:"idEmpresa"},{default:s(()=>[a[0]||(a[0]=e("label",{for:"idEmpresa"},"Concessionária:",-1)),o(d,{id:"idEmpresa",options:t(v),"option-label":"nomeFantasia","option-value":"id",placeholder:"Selecione...",filter:""},null,8,["options"])]),_:1}),o(l,{class:"col-span-12 md:col-span-4",name:"idEntidade"},{default:s(()=>[a[1]||(a[1]=e("label",{for:"idEntidade"},"Orgão/Entidade:",-1)),o(d,{id:"idEntidade",options:t(g),"option-value":"id","option-label":"nome",placeholder:"Selecione...",filter:""},null,8,["options"])]),_:1}),o(l,{class:"col-span-12 md:col-span-4",name:"idUsuario"},{default:s(()=>[a[2]||(a[2]=e("label",{for:"idUsuario"},"Nome:",-1)),o(t(j),{id:"idUsuario",name:"idUsuario","paginated-data-key":"usuarios-empresa-relacoes","async-fn":E,"option-value":"id","option-label":"nome",placeholder:"Selecione...",filter:""})]),_:1}),o(l,{class:"col-span-12 md:col-span-4",name:"cargo"},{default:s(()=>[a[3]||(a[3]=e("label",{for:"cargo"},"Cargo:",-1)),o(p,{id:"cargo",name:"cargo"})]),_:1}),o(l,{class:"col-span-12 md:col-span-4",name:"email"},{default:s(()=>[a[4]||(a[4]=e("label",{for:"email"},"E-mail:",-1)),o(p,{id:"email",name:"email"})]),_:1}),o(l,{class:"col-span-12 md:col-span-4",name:"idArea"},{default:s(()=>[a[5]||(a[5]=e("label",{for:"idArea"},"Área/Departamento:",-1)),o(d,{id:"idArea",options:t(x),"option-value":"id","option-label":"descricao",placeholder:"Selecione..."},null,8,["options"])]),_:1}),o(l,{class:"col-span-6 md:col-span-6 lg:col-span-2",name:"dataInteracao"},{default:s(()=>[a[6]||(a[6]=e("label",{for:"data-interacao"},"Data interação:",-1)),o(c,{id:"data-interacao",placeholder:"dd/mm/aaaa","icon-display":"input","show-icon":""})]),_:1}),o(l,{class:"col-span-6 md:col-span-6 lg:col-span-2",name:"inicio"},{default:s(()=>[a[7]||(a[7]=e("label",{for:"inicio"},"Horário inicial/final:",-1)),o(c,{id:"inicio",name:"inicio","time-only":""})]),_:1}),o(l,{class:"col-span-6 md:col-span-6 lg:col-span-2",name:"final"},{default:s(()=>[a[8]||(a[8]=e("label",{for:"final"},"Horário final:",-1)),o(c,{id:"final",name:"termino","time-only":""})]),_:1}),o(l,{class:"col-span-6 md:col-span-6 lg:col-span-6",name:"local"},{default:s(()=>[a[9]||(a[9]=e("label",{for:"local"},"Local da interação:",-1)),o(p,{id:"local",name:"local"})]),_:1}),o(l,{class:"col-span-12 lg:col-span-6",name:"assunto"},{default:s(()=>[a[10]||(a[10]=e("label",{for:"assunto"},"Assunto:",-1)),o(_,{id:"assunto",rows:"4"})]),_:1}),o(l,{class:"col-span-12 lg:col-span-6",name:"observacao"},{default:s(()=>[a[11]||(a[11]=e("label",{for:"observacao"},"Observações:",-1)),o(_,{id:"observacao",name:"observacao",rows:"4"})]),_:1}),e("div",I,[o(l,{name:"declaracao"},{default:s(()=>[o(y,{id:"declaracao",binary:"","default-value":!1,"false-value":0,"true-value":1})]),_:1}),a[12]||(a[12]=e("div",{class:"w-full"},[e("label",{for:"declaracao",class:"text-sm"},[e("div",{class:"font-bold"},"Declaração:"),e("p",null," Declaro que tive acesso, estou ciente e cumpri as diretrizes e regras da norma de interação com o Setor Público da concessionária. ")])],-1))])])]),_:1})}}}),Q=Object.assign(P,{__name:"RelacoesInstitucionaisCardGeral"});export{Q as _};
