import { ref, mergeProps, unref, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderAttr, ssrIncludeBooleanAttr } from "vue/server-renderer";
import { a as useNuxtApp } from "../server.mjs";
import "ofetch";
import "#internal/nuxt/paths";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/hookable/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/unctx/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/h3/dist/index.mjs";
import "pinia";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/defu/dist/defu.mjs";
import "vue-router";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/radix3/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/ufo/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/klona/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/destr/dist/index.mjs";
import "deep-pick-omit";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/cookie-es/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/ohash/dist/index.mjs";
import "sweetalert2";
import "axios";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/@unhead/vue/dist/index.mjs";
const _sfc_main = {
  __name: "forgot",
  __ssrInlineRender: true,
  setup(__props) {
    const { $CustomAlert } = useNuxtApp();
    var massageIsSend = ref(false);
    var resetPasswordContent = ref({});
    var isLoadSendPhoneNumber = ref(false);
    var isLoadVerifyMassageCode = ref(false);
    ref(1);
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "p-4" }, _attrs))}><form class="mt-40"><div class="mt-2"><label for="phoneNumber" class="block mb-2 text-xs font-medium text-cyen-950 dark:text-white">شماره تلفن همراه</label><input type="text" id="phoneNumber"${ssrRenderAttr("value", unref(resetPasswordContent).phoneNumber)}${ssrIncludeBooleanAttr(unref(massageIsSend)) ? " disabled" : ""} class="bg-cyen-50 border border-cyen-300 text-cyen-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-cyen-700 dark:border-cyen-600 dark:placeholder-cyen-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="09123456789" required pattern="09[0-9]{9}"></div>`);
      if (!unref(isLoadSendPhoneNumber)) {
        _push(`<button type="submit" class="w-full mt-4 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg px-3 py-1.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">دریافت کد</button>`);
      } else {
        _push(`<!---->`);
      }
      _push(`</form>`);
      if (unref(massageIsSend)) {
        _push(`<form><div class="mt-2"><label for="massageCode" class="block mb-2 text-xs font-medium text-cyen-950 dark:text-white">کد ارسال شده</label><input type="text" id="massageCode" minlength="7" maxlength="7"${ssrRenderAttr("value", unref(resetPasswordContent).massageCode)} class="bg-cyen-50 border border-cyen-300 text-cyen-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-cyen-700 dark:border-cyen-600 dark:placeholder-cyen-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required placeholder="6666666"></div><div class="mt-2"><label for="password" class="block mb-2 text-xs font-medium text-cyen-950 dark:text-white">گذرواژه جدید</label><input type="password" id="password" minlength="8"${ssrRenderAttr("value", unref(resetPasswordContent).password)} required class="bg-cyen-50 border border-cyen-300 text-cyen-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-cyen-700 dark:border-cyen-600 dark:placeholder-cyen-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="********"></div><div class="mt-2"><label for="rePassword" class="block mb-2 text-xs font-medium text-cyen-950 dark:text-white">تکرار گذرواژه</label><input type="password" id="rePassword" minlength="8"${ssrRenderAttr("value", unref(resetPasswordContent).rePassword)} required class="bg-cyen-50 border border-cyen-300 text-cyen-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-cyen-700 dark:border-cyen-600 dark:placeholder-cyen-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="********"></div><button type="button"> phone number </button>`);
        if (!unref(isLoadVerifyMassageCode)) {
          _push(`<button type="submit" class="w-full mt-4 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg px-3 py-1.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">ثبت</button>`);
        } else {
          _push(`<!---->`);
        }
        _push(`</form>`);
      } else {
        _push(`<!---->`);
      }
      _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/users/forgot.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export {
  _sfc_main as default
};
//# sourceMappingURL=forgot-ajU0Czg-.js.map
