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