import{u as n,t as l,S as i}from"./auth.8c936e9a.js";import{P as d}from"./entry.0b5898f4.js";import{i as f}from"./utils.2e24de1e.js";import"./components.client.8c0e2f0e.js";import{_ as u}from"./nuxt-link.a91ddf68.js";import{f as c,h as t,q as _}from"./runtime-core.esm-bundler.24b58585.js";import"./composables.050e3231.js";import"./app.config.5ff5ca90.js";import"./utils.61cc85c6.js";import"./layout.1eaf47bc.js";import"./page.16487999.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./header.vue.a5725157.js";import"./sidebar.vue.f4078c43.js";import"./api.4ad3383d.js";import"./AccountSVG.3eaa8808.js";import"./LoginSVG.52eb3125.js";/* empty css                    */import"./nuxt-error-boundary.eaaf5a22.js";import"./client-only.eb4a3450.js";import"./dev-only.ae8b1c36.js";import"./server-placeholder.93f5b750.js";import"./nuxt-loading-indicator.65caef1d.js";import"./components.da5780c2.js";const k=c({emits:["deleted"],setup(b,{emit:r}){const o=n(),{realmManagement:m,realmManagementId:s}=l(o),a=_("PermissionList"),p=e=>{r("deleted",e)};return()=>t(a,{onDeleted:p,query:{filter:{realm_id:[s.value,null]}}},{[i.HEADER]:()=>t("h6",[t("i",{class:"fa-solid fa-list pe-1"}),"Overview"]),[i.ITEM_ACTIONS]:e=>t("div",[t(u,{class:"btn btn-xs btn-outline-primary me-1",to:`/admin/permissions/${e.data.id}`,disabled:!o.has(d.PERMISSION_EDIT)||!f(m.value,e.data.realm_id)},{default:()=>t("i",{class:"fa fa-bars"})})])})}});export{k as default};
