import{_ as S}from"./G7u0egV4.js";import{U as E}from"./CSyF93-1.js";import{_ as P}from"./DUQr9DrG.js";import{_ as I}from"./B4WCk7Vi.js";import{_ as N}from"./CYDRfonM.js";import{d as D,M as C,a as O,f as o,w as r,g as m,F as U,i as g,o as h,R as s}from"./JQJBiNWj.js";import L from"./CuNuZBQO.js";import{u as M}from"./BfZwoNNq.js";import{P as v}from"./CqHfK9aI.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"./B-La3K3C.js";import"./F98GHXdS.js";import"./DvBDpJyt.js";import"./BtEXx3og.js";import"./ChMy_Kon.js";const Tt=D({__name:"demandantes",setup(A){const n=C("modalDemandante"),e=M("pleitos-demandantes",g.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=L,R=N;return h(),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(v),{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};
