import { useSSRContext, resolveComponent, mergeProps } from 'vue';
import { _ as _export_sfc, d as defineNuxtComponent, V as UserForm, W as UserPasswordForm } from '../server.mjs';
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
import '../../nitro/node-server.mjs';
import 'node:http';
import 'node:https';
import 'fs';
import 'path';
import 'node:fs';
import 'node:url';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import '@ebec/http/core';
import 'hapic';
import '@hapic/oauth2';
import 'rapiq';
import '@hapic/vault';
import '@vue-layout/navigation';
import 'change-case';
import '@vue-layout/list-controls/core';
import 'smob';
import '@vue-layout/list-controls';
import '@vue-layout/form-controls';
import '@vue-layout/pagination';
import '@ucast/mongo2js';
import 'ilingo';
import '@vuelidate/validators';
import '@vuelidate/core';
import 'nanoid';
import 'bootstrap-vue-next';
import '@vue-layout/preset-bootstrap-v5';
import '@vue-layout/preset-font-awesome';
import '@vue-layout/countdown';
import '@vue-layout/timeago';
import 'browser-storage-adapter';

const _sfc_main = /* @__PURE__ */ defineNuxtComponent({
  components: {
    UserForm,
    UserPasswordForm
  },
  props: {
    entity: {
      type: Object,
      required: true
    }
  },
  emits: ["updated", "failed"],
  async setup(props, { emit }) {
    const handleUpdated = (e) => {
      emit("updated", e);
    };
    const handleFailed = (e) => {
      emit("failed", e);
    };
    return {
      entity: props.entity,
      handleUpdated,
      handleFailed
    };
  }
}, "$fNUy0tdfF8");
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
  const _component_UserForm = resolveComponent("UserForm");
  const _component_UserPasswordForm = resolveComponent("UserPasswordForm");
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "row" }, _attrs))}><div class="col-7"><h6 class="title"> General </h6>`);
  _push(ssrRenderComponent(_component_UserForm, {
    entity: _ctx.entity,
    "realm-id": _ctx.entity.realm_id,
    onUpdated: _ctx.handleUpdated,
    onFailed: _ctx.handleFailed
  }, null, _parent));
  _push(`</div><div class="col-5"><h6 class="title"> Password </h6>`);
  _push(ssrRenderComponent(_component_UserPasswordForm, {
    id: _ctx.entity.id,
    onUpdated: _ctx.handleUpdated,
    onFailed: _ctx.handleFailed
  }, null, _parent));
  _push(`</div></div>`);
}
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/admin/users/[id]/index.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);

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