import{p as u,m as c,s as f,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 T=u({emits:["deleted"],setup(D,{emit:d}){const o=h("ScopeList"),m=e=>{d("deleted",e)},a=c(),{realmManagement:s,realmManagementId:r}=f(a);return()=>t(o,{onDeleted:m,query:{filter:{realm_id:[r.value,null]}}},{[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/scopes/${e.data.id}`,disabled:!a.has(n.SCOPE_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.SCOPE,withText:!1,onDeleted:e.deleted,disabled:e.data.built_in||!a.has(n.SCOPE_DROP)||!l(s.value,e.data.realm_id)})])})}});export{T as default};
