import { useSSRContext, resolveComponent } from 'vue';
import { _ as _export_sfc, d as defineNuxtComponent, N as UserPasswordForm, g as useAuthStore, s as storeToRefs$1 } from '../server.mjs';
import { useToast } from 'bootstrap-vue-next';
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
import 'ofetch';
import 'hookable';
import 'unctx';
import 'vue-router';
import 'h3';
import 'ufo';
import '@ebec/http';
import 'hapic';
import '@hapic/oauth2';
import 'rapiq';
import '@hapic/vault';
import '@vue-layout/navigation';
import 'destr';
import 'change-case';
import '@vue-layout/list-controls/core';
import '@vue-layout/form-controls';
import '@vue-layout/list-controls';
import 'smob';
import '@ucast/mongo2js';
import '@vue-layout/pagination';
import '@vuelidate/validators';
import '@vuelidate/core';
import 'ilingo';
import 'nanoid';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import '@vue-layout/preset-bootstrap-v5';
import '@vue-layout/preset-font-awesome';
import '@vue-layout/countdown';
import '@vue-layout/timeago';
import 'browser-storage-adapter';
import 'cookie-es';
import 'ohash';
import 'defu';
import '../../nitro/node-server.mjs';
import 'node-fetch-native/polyfill';
import 'node:http';
import 'node:https';
import 'unenv/runtime/fetch/index';
import 'scule';
import 'klona';
import 'unstorage';
import 'radix3';
import 'node:fs';
import 'node:url';
import 'pathe';
import 'http-graceful-shutdown';

const _sfc_main = /* @__PURE__ */ defineNuxtComponent({
  components: {
    UserPasswordForm
  },
  setup() {
    const toast = useToast();
    const store = useAuthStore();
    const { userId } = storeToRefs$1(store);
    const handleUpdated = () => {
      if (toast) {
        toast.success({ body: "The account was successfully updated." });
      }
    };
    const handleFailed = (e) => {
      if (toast) {
        toast.warning({ body: e.message });
      }
    };
    return {
      id: userId,
      handleUpdated,
      handleFailed
    };
  }
}, "$FDI4uUNUCd");
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
  const _component_UserPasswordForm = resolveComponent("UserPasswordForm");
  _push(`<div${ssrRenderAttrs(_attrs)}><h6 class="title"> Password </h6>`);
  _push(ssrRenderComponent(_component_UserPasswordForm, {
    id: _ctx.id,
    onUpdated: _ctx.handleUpdated,
    onFailed: _ctx.handleFailed
  }, null, _parent));
  _push(`</div>`);
}
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/settings/index/security.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const security = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);

export { security as default };
//# sourceMappingURL=security-e86c1042.mjs.map
