import{p as u,m as f,s as c,h as t,x as i,P as n,A as _,t as b,r as h}from"./entry.e097670d.js";import{i as l}from"./utils.c307b373.js";import{_ as p}from"./nuxt-link.1a4e25e4.js";/* empty css                    */const y=u({emits:["deleted"],setup(D,{emit:d}){const o=h("UserList"),r=e=>{d("deleted",e)},a=f(),{realmManagement:s,realmManagementId:m}=c(a);return()=>t(o,{onDeleted:r,query:{filter:{realm_id:m.value}}},{[i.HEADER]:()=>t("h6",[t("i",{class:"fa-solid fa-list pe-1"}),"Overview"]),[i.ITEM_ACTIONS]:e=>t("div",[t(p,{class:"btn btn-xs btn-outline-primary me-1",to:`/admin/users/${e.data.id}`,disabled:!a.has(n.USER_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:b.USER,withText:!1,onDeleted:e.deleted,disabled:!a.has(n.USER_DROP)||!l(s.value,e.data.realm_id)})])})}});export{y as default};
