import{u as n,t as p}from"./auth.8c936e9a.js";import{i as d}from"./utils.2e24de1e.js";import{n as l}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=>{l({path:`/admin/permissions/${e.id}`})},r=e=>{o("failed",e)},a=c("PermissionForm"),m=n(),{realmManagement:i,realmManagementId:s}=p(m);return()=>{let e;return d(i.value)||(e=s.value),u(a,{onCreated:t,onFailed:r,realmId:e})}}});export{A as default};
