import { defineComponent, resolveComponent, h } from 'vue';
import { e as __nuxt_component_0$1, A as AuthEntityDelete } from './server.mjs';
import { SlotName } from '@vue-layout/hyperscript';
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 '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';

const index = defineComponent({
  emits: ["deleted"],
  setup(props, { emit }) {
    const list = resolveComponent("RealmList");
    const handleDeleted = (e) => {
      emit("deleted", e);
    };
    return () => h(list, {
      onDeleted: handleDeleted
    }, {
      [SlotName.HEADER]: () => h("h6", [
        h("i", { class: "fa-solid fa-list pe-1" }),
        "Overview"
      ]),
      [SlotName.ITEM_ACTIONS]: (props2) => h("div", [
        h(
          __nuxt_component_0$1,
          {
            class: "btn btn-xs btn-outline-primary me-1",
            to: `/admin/realms/${props2.data.id}`
          },
          {
            default: () => h("i", { class: "fa fa-bars" })
          }
        ),
        h(AuthEntityDelete, {
          class: "btn btn-xs btn-outline-danger",
          entityId: props2.data.id,
          entityType: "realm",
          withText: false,
          onDeleted: props2.deleted
        })
      ])
    });
  }
});

export { index as default };
//# sourceMappingURL=index.887e36b1.mjs.map
