import{u as f,t as c,S as s}from"./auth.8c936e9a.js";import{P as m,A as b}from"./entry.0b5898f4.js";import{i as r}from"./utils.2e24de1e.js";import"./components.client.8c0e2f0e.js";import{_ as h}from"./nuxt-link.a91ddf68.js";import{f as R,h as e,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 F=R({emits:["deleted"],setup(v,{emit:n}){const l=_("RealmList"),a=f(),{realmManagement:o,realmManagementId:d}=c(a),p=t=>{n("deleted",t)};return()=>e(l,{onDeleted:p},{[s.HEADER]:()=>e("h6",[e("i",{class:"fa-solid fa-list pe-1"}),"Overview"]),[s.ITEM_ACTIONS]:t=>{const i=[];return d.value!==t.data.id&&r(o.value)&&i.push(e("button",{class:"btn btn-xs btn-primary me-1",onClick(u){u.preventDefault(),a.setRealmManagement(t.data)}},[e("i",{class:"fa-solid fa-check"})])),r(o.value,t.data.id)&&i.push(e(h,{class:"btn btn-xs btn-outline-primary me-1",to:`/admin/realms/${t.data.id}`,disabled:!a.has(m.REALM_EDIT)},{default:()=>e("i",{class:"fa fa-bars"})}),e(b,{class:"btn btn-xs btn-outline-danger",entityId:t.data.id,entityType:"realm",withText:!1,onDeleted:t.deleted,disabled:!a.has(m.REALM_DROP)||!t.data.drop_able})),e("div",i)}})}});export{F as default};
