import { defineComponent, resolveComponent, h } from 'vue';
import { f as useAuthStore, e as useToast } from './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';

const index = defineComponent({
  setup() {
    const { user } = useAuthStore();
    const handleUpdated = () => {
      const toast = useToast();
      toast.success("The account was successfully updated.");
    };
    const handleFailed = (e) => {
      const toast = useToast();
      toast.warning(e.message);
    };
    const userForm = resolveComponent("UserForm");
    return () => h("div", [
      h("h6", { class: "title" }, ["General"]),
      h(userForm, {
        canManage: false,
        realmId: user.realm_id,
        entity: user,
        onUpdated: handleUpdated,
        onFailed: handleFailed
      })
    ]);
  }
});

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