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