import { e as useMaghaleStore, a as useNuxtApp, _ as __nuxt_component_0, b as useRuntimeConfig } from "../server.mjs";
import { ref, mergeProps, unref, withCtx, createTextVNode, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr } from "vue/server-renderer";
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: "signup.client",
  __ssrInlineRender: true,
  setup(__props) {
    useMaghaleStore();
    const { $CustomAlert } = useNuxtApp();
    var massageIsSend = ref(false);
    var singUpInformaiton = ref({});
    var isLoadSendInformation = ref(false);
    var isLoadVerifyMassageCode = ref(false);
    ref(1);
    return (_ctx, _push, _parent, _attrs) => {
      const _component_nuxt_link = __nuxt_component_0;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "font-sins p-4" }, _attrs))}><div class="flex flex-row-reverse items-center justify-center font-medium gap-4 mb-5 mt-4 text-sm dark:text-white">`);
      _push(ssrRenderComponent(_component_nuxt_link, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Signup,
        class: "text-[#0077FE] border-b-2 border-[#0077FE] pb-2"
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`ثبت نام `);
          } else {
            return [
              createTextVNode("ثبت نام ")
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(ssrRenderComponent(_component_nuxt_link, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Login,
        class: "pb-2"
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`ورود`);
          } else {
            return [
              createTextVNode("ورود")
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div><div class="w-full flex flex-col items-center justify-center p-12"><div class="flex flex-col w-full items-center justify-center">`);
      if (!unref(massageIsSend)) {
        _push(`<form class="flex flex-col w-full mt-2"><div class="w-full text-right mt-2"><label for="phoneNumber" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">شماره تلفن</label><input type="text" id="phoneNumber"${ssrRenderAttr("value", unref(singUpInformaiton).phoneNumber)} placeholder="09123456789" required pattern="09[0-9]{9}"${ssrRenderAttr("maxlength", 11)} class="bg-zinc-50 border border-zinc-300 text-zinc-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-zinc-700 dark:border-zinc-600 dark:placeholder-zinc-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></div><div class="w-full text-right mt-2"><label for="password" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">رمز عبور</label><input type="password" id="password" pattern="(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="بیش از ۸ شناسه و ترکیبی از عدد و حروف کوچک و بزرگ انگلیسی" minlength="8"${ssrRenderAttr("value", unref(singUpInformaiton).password)} required placeholder="********" class="bg-zinc-50 border border-zinc-300 text-zinc-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-zinc-700 dark:border-zinc-600 dark:placeholder-zinc-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></div><div class="w-full text-right mt-2"><label for="rePassword" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">تکرار رمز عبور</label><input type="password" id="rePassword" pattern="(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="بیش از ۸ شناسه و ترکیبی از عدد و حروف کوچک و بزرگ انگلیسی" minlength="8"${ssrRenderAttr("value", unref(singUpInformaiton).rePassword)} required placeholder="********" class="bg-zinc-50 border border-zinc-300 text-zinc-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-zinc-700 dark:border-zinc-600 dark:placeholder-zinc-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"></div><div class="text-xs w-full flex-row-reverse gap-2 items-center justify-center hidden"><div> حساب کاربری دارید؟ </div>`);
        _push(ssrRenderComponent(_component_nuxt_link, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Login,
          class: "text-[#0077FE]"
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(`وارد شوید`);
            } else {
              return [
                createTextVNode("وارد شوید")
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(`</div>`);
        if (!unref(isLoadSendInformation)) {
          _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(`<!---->`);
      }
      if (unref(massageIsSend)) {
        _push(`<form><div class="text-right pr-2 font-medium my-4"><label for="massageCode" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">کد پیامک شده</label></div><input type="text" id="massageCode" minlength="7" maxlength="7"${ssrRenderAttr("value", unref(singUpInformaiton).massageCode)} required placeholder="*******" class="bg-zinc-50 border border-zinc-300 text-zinc-950 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-1 dark:bg-zinc-700 dark:border-zinc-600 dark:placeholder-zinc-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"><div class="w-full h-14 flex flex-row-reverse items-center justify-center gap-4"><div> کد براتون نیومده؟ </div><div class="border-[#0077FE] w-32 border rounded-lg text-[#0077FE] px-4 py-2 text-sm font-bold text-center"> ارسال مجدد </div><div class="border-[#0077FE] w-32 border rounded-lg text-[#0077FE] px-4 py-2 text-sm font-bold text-center"> تغییر شماره </div></div>`);
        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></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/users/signup.client.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export {
  _sfc_main as default
};
//# sourceMappingURL=signup.client-dBv1IpBs.js.map
