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