import{_ as f}from"./Brk5FU9k.js";import{_ as C}from"./DDV-HLQE.js";import{_ as b}from"./BM2RuFkr.js";import{_ as x}from"./C682XpkB.js";import g from"./G1F3Bacz.js";import{a as E}from"./J_-A5ce2.js";import{d as I,R as S,a as h,f as t,U as A,w as r,g as i,F as N,i as U,o as D,A as k,h as T,t as v,n as y}from"./dVzHJMF1.js";import{u as B}from"./CJ1p9Ehj.js";import{u as F}from"./BWID9sOX.js";import"./yXj_05M0.js";import"./Bhud8mbC.js";import"./DhLu8RVk.js";import"./CWHHmK0V.js";import"./tESAK1vk.js";import"./B79Hoqpc.js";import"./CX2DUt_P.js";import"./BqnRxGiA.js";import"./cMkL48JQ.js";import"./iZ-xiGRB.js";import"./BSLzRQpY.js";import"./CPhxMljB.js";import"./CH1bAkoS.js";import"./DaykkcNl.js";import"./D2P12BLM.js";import"./DTJCrQga.js";import"./B7Hqpkvs.js";import"./DiwqsPB4.js";import"./KcBrPYTF.js";import"./C5Oc2f2M.js";import"./CBbadgK0.js";import"./a1m94JqE.js";import"./CM8mMzv6.js";import"./DP0doleY.js";import"./BAtzogEJ.js";import"./r1Y5hC84.js";import"./DDpCYtr5.js";import"./C9UvFovT.js";import"./FaLtR_4n.js";import"./C9L2ikqF.js";import"./B3dHCiEQ.js";import"./BZjcnCH7.js";import"./B_Kqq5Cu.js";import"./BSe03gVj.js";import"./B-6EeO4n.js";import"./BuQ9u7Je.js";import"./BW5cYMVL.js";import"./CPg0DzIm.js";import"./BphmgIhx.js";import"./ClA_a7pZ.js";import"./FcRkkR--.js";import"./Bpf-t_rp.js";import"./yHxjwlra.js";import"./KG16xCEZ.js";const Rt=I({__name:"index",setup(R){const n=B({add:S.LIC_TAB_ENTIDADE_INCLUIR}),s=U.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 D(),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};
