import{p as u,m as f,s as b,h as t,x as i,P as n,A as c,t as _,r as T}from"./entry.e097670d.js";import{i as l}from"./utils.c307b373.js";import{_ as O}from"./nuxt-link.1a4e25e4.js";/* empty css                    */const x=u({emits:["deleted"],setup(R,{emit:o}){const d=T("RobotList"),r=e=>{o("deleted",e)},a=f(),{realmManagement:s,realmManagementId:m}=b(a);return()=>t(d,{onDeleted:r,query:{filter:{realm_id:m.value}}},{[i.HEADER]:()=>t("h6",[t("i",{class:"fa-solid fa-list pe-1"}),"Overview"]),[i.ITEM_ACTIONS]:e=>t("div",[t(O,{class:"btn btn-xs btn-outline-primary me-1",to:`/admin/robots/${e.data.id}`,disabled:!a.has(n.ROBOT_EDIT)||!l(s.value,e.data.realm_id)},{default:()=>t("i",{class:"fa fa-bars"})}),t(c,{class:"btn btn-xs btn-outline-danger",entityId:e.data.id,entityType:_.ROBOT,withText:!1,onDeleted:e.deleted,disabled:!a.has(n.ROBOT_DROP)||!l(s.value,e.data.realm_id)})])})}});export{x as default};
