import { defineComponent, resolveComponent, h } from 'vue';
import { u as useToast } from './server.mjs';
import { u as useAuthStore } from './auth-2d06b6ac.mjs';
import 'ofetch';
import './nuxt-link-5ac46069.mjs';
import 'ufo';
import 'hookable';
import 'unctx';
import 'h3';
import 'destr';
import '@unhead/vue';
import '@unhead/dom';
import '@unhead/ssr';
import './page-011b4897.mjs';
import 'vue-router';
import 'defu';
import 'hapic';
import 'rapiq';
import '@vue-layout/basic';
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 './composables-31566dd1.mjs';
import './_plugin-vue_export-helper-cc2b3d55.mjs';
import './config.mjs';
import 'scule';
import '@ucast/mongo2js';
import 'change-case';
import '@ebec/http';
import '@hapic/oauth2';

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-3aaf2a9a.mjs.map
