import{_ as S}from"./Brk5FU9k.js";import{U as E}from"./Bd4Q_GB1.js";import{_ as P}from"./DDV-HLQE.js";import{_ as I}from"./BM2RuFkr.js";import{_ as N}from"./C682XpkB.js";import{d as D,L as C,a as O,f as o,w as r,g as m,F as U,i as L,o as g,R as s}from"./dVzHJMF1.js";import h from"./G1F3Bacz.js";import{u as v}from"./BWID9sOX.js";import{P as A}from"./we8C7gbp.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"./Bpf-t_rp.js";import"./yHxjwlra.js";import"./KG16xCEZ.js";import"./Cn3xUAbr.js";import"./DzXlli-V.js";const Tt=D({__name:"demandantes",setup(M){const n=C("modalDemandante"),e=v("pleitos-demandantes",L.pleitos.cadastros.demandantes.findAll);function _(){var t;(t=n.value)==null||t.open()}function d(t){var a;(a=n.value)==null||a.open(t.data)}function i(){if(e.page.value===0){e.refresh();return}e.updatePageable({page:0,rows:e.size.value})}return(t,a)=>{const l=S,p=E,u=P,c=I,f=h,R=N;return g(),O(U,null,[o(u,{title:"Gestão de Processos - Demandantes"},{"title-buttons":r(()=>[o(p,{permissions:[("PERMISSION_ROLES"in t?t.PERMISSION_ROLES:m(s)).PLT_TAB_DEMANDANTE_INCLUIR]},{default:r(()=>[o(l,{mode:"add",onClick:_})]),_:1},8,["permissions"])]),_:1}),o(p,{permissions:[("PERMISSION_ROLES"in t?t.PERMISSION_ROLES:m(s)).PLT_TAB_DEMANDANTE_INCLUIR]},{default:r(()=>[o(m(A),{ref_key:"modalDemandante",ref:n,onUpdate:i,onDelete:i},null,512)]),_:1},8,["permissions"]),o(c,{status:m(e).status.value,"paginated-url":!0},null,8,["status"]),o(R,{class:"mt-10","empty-message":"Nenhum demandante encontrado.",value:m(e),onRowClick:d},{default:r(()=>[o(f,{field:"nome",header:"Nome",sortable:""})]),_:1},8,["value"])],64)}}});export{Tt as default};
