import{_ as f}from"./G7u0egV4.js";import{_ as C}from"./DUQr9DrG.js";import{_ as b}from"./B4WCk7Vi.js";import{_ as x}from"./CYDRfonM.js";import g from"./CuNuZBQO.js";import{a as E}from"./J_-A5ce2.js";import{d as I,R as S,a as h,f as t,W as A,w as r,g as i,F as N,i as D,o as U,A as k,h as T,t as v,n as y}from"./JQJBiNWj.js";import{u as B}from"./CL7Msd7o.js";import{u as F}from"./BfZwoNNq.js";import"./HM4z-iuB.js";import"./DqVYbxj5.js";import"./BwwR4PPN.js";import"./B6O9xiO5.js";import"./CxkaGOlL.js";import"./BgAkS4D_.js";import"./DKM0wLqG.js";import"./gxHWKiUc.js";import"./Dm5UwSfy.js";import"./D42GNhrT.js";import"./Dc_YXEFz.js";import"./DTOFlTEg.js";import"./CH1bAkoS.js";import"./Dd3ROLQd.js";import"./f6QOa6wf.js";import"./Tk23Dwa0.js";import"./CJYlvWEf.js";import"./CeWG_dyW.js";import"./CDSORL4U.js";import"./BBDFeM-T.js";import"./BuR5k2Xw.js";import"./ClVEEBFD.js";import"./2JTb7YQn.js";import"./Dk4pWsnS.js";import"./BSHuRY0P.js";import"./3oa0FK2h.js";import"./DMxbovom.js";import"./DBWLnasn.js";import"./RO0fiRDZ.js";import"./Cr9ZZaT-.js";import"./DNRi6U01.js";import"./BYfmWBgX.js";import"./vkXHPWu2.js";import"./qAEGbaa4.js";import"./CASPyZT-.js";import"./CeGk6Fsr.js";import"./D1rKqwCM.js";import"./CfLdzzlL.js";import"./CjLYEAc3.js";import"./BTchAptP.js";import"./FcRkkR--.js";import"./B-La3K3C.js";import"./F98GHXdS.js";import"./DvBDpJyt.js";const Rt=I({__name:"index",setup(R){const n=B({add:S.LIC_TAB_ENTIDADE_INCLUIR}),s=D.entidade,e=F("entidades-meio-ambiente",s.findAll);function p(o){var a;y(`/meio-ambiente/cadastros/entidades/${o.data.id}`,{open:(a=o==null?void 0:o.originalEvent)!=null&&a.ctrlKey?{target:"_blank"}:void 0})}return(o,a)=>{const _=f,c=C,d=b,m=g,l=x;return U(),h(N,null,[t(c,{title:"Entidades"},A({_:2},[i(n).add?{name:"title-buttons",fn:r(()=>[t(i(k),{to:"/meio-ambiente/cadastros/entidades/nova"},{default:r(()=>[t(_,{mode:"add"})]),_:1})]),key:"0"}:void 0]),1024),t(d,{status:i(e).status.value,"paginated-url":!0},null,8,["status"]),t(l,{class:"mt-10","empty-message":"Nenhuma entidade encontrada.",value:i(e),onRowClick:p},{default:r(()=>[t(m,{field:"nome",header:"Nome",sortable:""}),t(m,{field:"classificacao",header:"Classificação",sortable:""},{body:r(({data:u})=>[T(v(i(E)[u.classificacao]),1)]),_:1})]),_:1},8,["value"])],64)}}});export{Rt as default};
