import{p as u,m as c,s as f,h as t,x as n,P as i,A as _,r as b}from"./entry.e097670d.js";import{i as l}from"./utils.c307b373.js";import{_ as h}from"./nuxt-link.1a4e25e4.js";/* empty css                    */const E=u({emits:["deleted"],setup(T,{emit:d}){const o=b("ClientList"),r=e=>{d("deleted",e)},a=c(),{realmManagement:s,realmManagementId:m}=f(a);return()=>t(o,{onDeleted:r,query:{filter:{realm_id:[m.value,null]}}},{[n.HEADER]:()=>t("h6",[t("i",{class:"fa-solid fa-list pe-1"}),"Overview"]),[n.ITEM_ACTIONS]:e=>t("div",[t(h,{class:"btn btn-xs btn-outline-primary me-1",to:`/admin/clients/${e.data.id}`,disabled:!a.has(i.CLIENT_EDIT)||!l(s.value,e.data.realm_id)},{default:()=>t("i",{class:"fa fa-bars"})}),t(_,{class:"btn btn-xs btn-outline-danger",entityId:e.data.id,entityType:"client",withText:!1,onDeleted:e.deleted,disabled:!a.has(i.CLIENT_DROP)||!l(s.value,e.data.realm_id)})])})}});export{E as default};
