import{p as d,m,s as i,h as p,l as f,r as u}from"./entry.e097670d.js";import{i as c}from"./utils.c307b373.js";const R=d({emits:["failed","created"],setup(h,{emit:a}){const o=e=>{f({path:`/admin/roles/${e.id}`})},t=e=>{a("failed",e)},r=u("RoleForm"),s=m(),{realmManagement:n,realmManagementId:l}=i(s);return()=>{let e;return c(n.value)||(e=l.value),p(r,{onCreated:o,onFailed:t,realmId:e})}}});export{R as default};
