import{_ as y}from"./DUQr9DrG.js";import{d as g,a as v,f as e,e as s,b as n,E as c,g as i,w as o,G as _,F as k,R as u,o as a,C as S,s as A,n as w,_ as C,A as j}from"./JQJBiNWj.js";import{T as I}from"./HM4z-iuB.js";import U from"./CKnen0Cc.js";import{u as N}from"./CL7Msd7o.js";import"./BwwR4PPN.js";import"./B6O9xiO5.js";import"./CxkaGOlL.js";import"./DqVYbxj5.js";import"./BgAkS4D_.js";import"./DKM0wLqG.js";const O={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"},R={class:"flex flex-col h-full mt-8"},E={class:"flex-1 flex items-center justify-center"},T={class:"flex justify-center mt-auto"},B={class:"flex flex-col h-full mt-8"},L={class:"flex-1 flex items-center justify-center"},M={class:"flex justify-center mt-auto"},D={class:"flex flex-col h-full mt-8"},Y={class:"flex-1 flex items-center justify-center"},P={class:"flex justify-center mt-auto"},$={class:"flex flex-col h-full mt-8"},V={class:"flex-1 flex items-center justify-center"},F={class:"flex justify-center mt-auto"},G={class:"flex flex-col h-full mt-8"},z={class:"flex-1 flex items-center justify-center"},q={class:"flex justify-center mt-auto"},x="relative h-64 bg-white border rounded-lg p-4 shadow-none",ls=g({__name:"index",setup(H){const l=N({usuarios:u.SYS_USUARIO_CONSULTAR,setores:u.SYS_SETORES_AGENCIA_CONSULTAR,auditoria:u.SYS_AUDITORIA,preferencias:u.ADMIN,emails:u.SYS_MONITORACAO_EMAILS,usuariosAdd:u.SYS_USUARIO_INCLUIR});return(p,t)=>{const b=y,r=A,d=C,m=j,f=U,h=I;return a(),v(k,null,[e(b,{title:"Configurações do sistema"}),s("div",O,[i(l).usuarios?(a(),n(f,{key:0,id:"usuarios",class:_(x)},{content:o(()=>[t[1]||(t[1]=s("h3",{class:"absolute top-4 left-4 text-xl font-semibold"},"Usuários",-1)),i(l).usuariosAdd?S((a(),n(r,{key:0,icon:"pi pi-plus","aria-label":"Adicionar usuário",class:"absolute top-4 right-4 bg-sky-700 text-white hover:bg-sky-800 rounded-full p-2 shadow-md",onClick:t[0]||(t[0]=J=>("navigateTo"in p?p.navigateTo:i(w))("/configuracoes/usuarios/adicionar"))},null,512)),[[h,{value:"Adicionar usuário",showDelay:200,hideDelay:300}]]):c("",!0),s("div",R,[s("div",E,[e(d,{name:"material-symbols:groups",class:"w-16 h-16"})]),s("div",T,[e(m,{to:"/configuracoes/usuarios",class:"flex justify-center mt-auto"},{default:o(()=>[e(r,{label:"Usuários",outlined:"",class:"text-white border-sky-700 hover:bg-sky-100 mb-2"})]),_:1})])])]),_:1})):c("",!0),i(l).setores?(a(),n(f,{key:1,id:"setores",class:_(x)},{content:o(()=>[t[2]||(t[2]=s("h3",{class:"absolute top-4 left-4 text-xl font-semibold"}," Setores da Agência ",-1)),s("div",B,[s("div",L,[e(d,{name:"material-symbols:account-tree-rounded",class:"w-16 h-16"})]),s("div",M,[e(m,{to:"/configuracoes/areas",class:"flex justify-center mt-auto"},{default:o(()=>[e(r,{label:"Setores da Agência",outlined:"",class:"text-white border-sky-700 hover:bg-sky-100 mb-2"})]),_:1})])])]),_:1})):c("",!0),i(l).auditoria?(a(),n(f,{key:2,id:"auditoria",class:_(x)},{content:o(()=>[t[3]||(t[3]=s("h3",{class:"absolute top-4 left-4 text-xl font-semibold"},"Auditoria",-1)),s("div",D,[s("div",Y,[e(d,{name:"material-symbols:visibility",class:"w-16 h-16"})]),s("div",P,[e(m,{to:"/configuracoes/auditoria",class:"flex justify-center mt-auto"},{default:o(()=>[e(r,{label:"Auditoria de acões/acessos",outlined:"",class:"text-white border-sky-700 hover:bg-sky-100 mb-2"})]),_:1})])])]),_:1})):c("",!0),i(l).preferencias?(a(),n(f,{key:3,id:"preferencias",class:_(x)},{content:o(()=>[t[4]||(t[4]=s("h3",{class:"absolute top-4 left-4 text-xl font-semibold"}," Preferências do sistema ",-1)),s("div",$,[s("div",V,[e(d,{name:"material-symbols:settings-applications",class:"w-16 h-16"})]),s("div",F,[e(m,{to:"/configuracoes/preferencias",class:"flex justify-center mt-auto"},{default:o(()=>[e(r,{label:"Preferências do sistema",outlined:"",class:"text-white border-sky-700 hover:bg-sky-100 mb-2"})]),_:1})])])]),_:1})):c("",!0),i(l).emails?(a(),n(f,{key:4,id:"emails",class:_(x)},{content:o(()=>[t[5]||(t[5]=s("h3",{class:"absolute top-4 left-4 text-xl font-semibold"}," Monitoração E-mails ",-1)),s("div",G,[s("div",z,[e(d,{name:"material-symbols:attach-email-sharp",class:"w-16 h-16"})]),s("div",q,[e(m,{to:"/configuracoes/emails",class:"flex justify-center mt-auto"},{default:o(()=>[e(r,{label:"Monitorações de E-mails",outlined:"",class:"text-white border-sky-700 hover:bg-sky-100 mb-2"})]),_:1})])])]),_:1})):c("",!0)])],64)}}});export{ls as default};
