import { useSSRContext, resolveComponent } from 'vue';
import { u as useToast } from './toast-YYpe1XMm.mjs';
import { _ as _export_sfc, d as defineNuxtComponent, X as AUserPasswordForm, b as useAuthStore, s as storeToRefs$1 } from './server.mjs';
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
import 'bootstrap-vue-next';
import '../runtime.mjs';
import 'node:http';
import 'node:https';
import 'fs';
import 'path';
import 'node:fs';
import 'node:url';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'devalue';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import 'hapic';
import '@hapic/oauth2';
import 'rapiq';
import '@hapic/vault';
import '@vuecs/navigation';
import '@vuecs/list-controls/core';
import 'smob';
import '@vuecs/list-controls';
import 'ilingo';
import '@vuelidate/validators';
import '@vuelidate/core';
import 'nanoid';
import '@vuecs/form-controls';
import '@vuecs/pagination';
import '@ucast/mongo2js';
import '@vuecs/preset-bootstrap-v5';
import '@vuecs/preset-font-awesome';
import '@vuecs/countdown';
import '@vuecs/timeago';
import '@vuecs/form-controls/core';
import 'browser-storage-adapter';

const _sfc_main = defineNuxtComponent({
  components: {
    AUserPasswordForm
  },
  setup() {
    const toast = useToast();
    const store = useAuthStore();
    const { userId } = storeToRefs$1(store);
    const handleUpdated = () => {
      if (toast) {
        toast.show({ variant: "success", body: "The account was successfully updated." });
      }
    };
    const handleFailed = (e) => {
      if (toast) {
        toast.show({ variant: "warning", body: e.message });
      }
    };
    return {
      id: userId,
      handleUpdated,
      handleFailed
    };
  }
}, "$FDI4uUNUCd");
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
  const _component_AUserPasswordForm = resolveComponent("AUserPasswordForm");
  _push(`<div${ssrRenderAttrs(_attrs)}><h6 class="title"> Password </h6>`);
  _push(ssrRenderComponent(_component_AUserPasswordForm, {
    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-CayWxHWt.mjs.map
