import { defineComponent, h } from 'vue';
import { N as NuxtPage, b as useToast } from './server.mjs';
import { b as buildDomainEntityNav } from './enity-nav.3b505301.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';

const index = defineComponent({
  setup() {
    const items = [
      {
        name: "overview",
        urlSuffix: "",
        icon: "fa fa-bars"
      },
      {
        name: "add",
        urlSuffix: "/add",
        icon: "fa fa-plus"
      }
    ];
    const handleDeleted = (e) => {
      const toast = useToast();
      toast.success(`The user ${e.name} was successfully deleted.`);
    };
    const handleFailed = (e) => {
      const toast = useToast();
      toast.warning(e.message);
    };
    return () => h("div", [
      h("h1", { class: "title no-border mb-3" }, [
        h("i", { class: "fa fa-user me-1" }),
        "User",
        h("span", { class: "sub-title ms-1" }, [
          "Management"
        ])
      ]),
      h("div", { class: "content-wrapper" }, [
        h("div", { class: "content-sidebar flex-column" }, [
          buildDomainEntityNav("/admin/users", items, { direction: "vertical" })
        ]),
        h("div", { class: "content-container" }, [
          h(NuxtPage, {
            onDeleted: handleDeleted,
            onFailed: handleFailed
          })
        ])
      ])
    ]);
  }
});

export { index as default };
//# sourceMappingURL=index.55989bcb.mjs.map
