import { h, resolveComponent } from 'vue';
import { d as defineNuxtComponent } from './component.ed786e27.mjs';
import './server.mjs';
import 'ofetch';
import 'hookable';
import 'unctx';
import 'destr';
import 'ufo';
import 'h3';
import '@unhead/vue';
import '@unhead/dom';
import 'vue-router';
import '@ebec/http';
import 'hapic';
import 'rapiq';
import '@vue-layout/basic';
import 'change-case';
import '@ucast/mongo2js';
import '@hapic/oauth2';
import '@vuelidate/validators';
import 'ilingo';
import 'nanoid';
import '@vue-layout/hyperscript';
import 'smob';
import 'browser-storage-adapter';
import 'cookie-es';
import 'ohash';
import 'vue/server-renderer';
import 'defu';
import './node-server.mjs';
import 'node-fetch-native/polyfill';
import 'http';
import 'https';
import 'unenv/runtime/fetch/index';
import 'scule';
import 'unstorage';
import 'radix3';
import 'node:fs';
import 'node:url';
import 'pathe';
import './composables.c25fc8b8.mjs';

const index = defineNuxtComponent({
  props: {
    entity: {
      type: Object,
      required: true
    }
  },
  emits: ["updated", "failed"],
  setup(props, { emit }) {
    if (!props.entity) {
      return () => h("div", []);
    }
    const handleUpdated = (e) => {
      emit("updated", e);
    };
    const handleFailed = (e) => {
      emit("failed", e);
    };
    const form = resolveComponent("RealmForm");
    return () => h("div", { class: "row" }, [
      h("h6", { class: "title" }, ["General"]),
      h(form, {
        entity: props.entity,
        onUpdated: handleUpdated,
        onFailed: handleFailed
      })
    ]);
  }
});

export { index as default };
//# sourceMappingURL=index.7ee3fc6d.mjs.map
