import { h, resolveComponent } from 'vue';
import { d as defineNuxtComponent } from './auth-2d06b6ac.mjs';
import './nuxt-link-5ac46069.mjs';
import 'ufo';
import 'hookable';
import 'unctx';
import 'h3';
import './composables-31566dd1.mjs';
import '@ucast/mongo2js';
import 'change-case';
import '@ebec/http';
import 'hapic';
import '@hapic/oauth2';

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("PermissionForm");
    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-68f2e29d.mjs.map
