import { defineComponent, resolveComponent, h } from 'vue';
import { b as navigateTo } from './nuxt-link-5ac46069.mjs';
import 'ufo';
import 'hookable';
import 'unctx';
import 'h3';

const add = defineComponent({
  emits: ["failed", "created"],
  setup(props, { emit }) {
    const handleCreated = (e) => {
      navigateTo({ path: `/admin/realms/${e.id}` });
    };
    const handleFailed = (e) => {
      emit("failed", e);
    };
    const form = resolveComponent("RealmForm");
    return () => h(form, {
      onCreated: handleCreated,
      onFailed: handleFailed
    });
  }
});

export { add as default };
//# sourceMappingURL=add-069843cf.mjs.map
