import{u as s,t as l}from"./auth.8c936e9a.js";import{i as p}from"./utils.2e24de1e.js";import{n as d}from"./nuxt-link.a91ddf68.js";import"./app.config.5ff5ca90.js";import"./entry.0b5898f4.js";import{f,h as u,q as c}from"./runtime-core.esm-bundler.24b58585.js";import"./composables.050e3231.js";import"./utils.61cc85c6.js";import"./layout.1eaf47bc.js";import"./page.16487999.js";import"./_plugin-vue_export-helper.c27b6911.js";const A=f({emits:["failed","created"],setup(h,{emit:o}){const t=e=>{d({path:`/admin/roles/${e.id}`})},r=e=>{o("failed",e)},a=c("RoleForm"),m=s(),{realmManagement:i,realmManagementId:n}=l(m);return()=>{let e;return p(i.value)||(e=n.value),u(a,{onCreated:t,onFailed:r,realmId:e})}}});export{A as default};
