import{p as f,m as b,s as h,h as t,x as i,P as l,A as R,t as p,r as D}from"./entry.e097670d.js";import{i as d}from"./utils.c307b373.js";import{_}from"./nuxt-link.1a4e25e4.js";/* empty css                    */const M=f({emits:["deleted"],setup(v,{emit:o}){const m=D("RealmList"),a=b(),{realmManagement:n,realmManagementId:r}=h(a),u=e=>{o("deleted",e)};return()=>t(m,{onDeleted:u},{[i.HEADER]:()=>t("h6",[t("i",{class:"fa-solid fa-list pe-1"}),"Overview"]),[i.ITEM_ACTIONS]:e=>{const s=[];return r.value!==e.data.id&&d(n.value)&&s.push(t("button",{class:"btn btn-xs btn-primary me-1",onClick(c){c.preventDefault(),a.setRealmManagement(e.data)}},[t("i",{class:"fa-solid fa-check"})])),d(n.value,e.data.id)&&s.push(t(_,{class:"btn btn-xs btn-outline-primary me-1",to:`/admin/realms/${e.data.id}`,disabled:!a.has(l.REALM_EDIT)},{default:()=>t("i",{class:"fa fa-bars"})}),t(R,{class:"btn btn-xs btn-outline-danger",entityId:e.data.id,entityType:p.REALM,withText:!1,onDeleted:e.deleted,disabled:!a.has(l.REALM_DROP)||!e.data.drop_able})),t("div",s)}})}});export{M as default};
