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 '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/plugins';
import 'unhead/utils';
import 'pinia';
import 'vue-router';
import 'deep-pick-omit';
import 'sweetalert2';
import 'axios';

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(`\u062B\u0628\u062A \u0646\u0627\u0645 `);
          } else {
            return [
              createTextVNode("\u062B\u0628\u062A \u0646\u0627\u0645 ")
            ];
          }
        }),
        _: 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(`\u0648\u0631\u0648\u062F`);
          } else {
            return [
              createTextVNode("\u0648\u0631\u0648\u062F")
            ];
          }
        }),
        _: 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">\u0634\u0645\u0627\u0631\u0647 \u062A\u0644\u0641\u0646</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">\u0631\u0645\u0632 \u0639\u0628\u0648\u0631</label><input type="password" id="password" pattern="(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="\u0628\u06CC\u0634 \u0627\u0632 \u06F8 \u0634\u0646\u0627\u0633\u0647 \u0648 \u062A\u0631\u06A9\u06CC\u0628\u06CC \u0627\u0632 \u0639\u062F\u062F \u0648 \u062D\u0631\u0648\u0641 \u06A9\u0648\u0686\u06A9 \u0648 \u0628\u0632\u0631\u06AF \u0627\u0646\u06AF\u0644\u06CC\u0633\u06CC" 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">\u062A\u06A9\u0631\u0627\u0631 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631</label><input type="password" id="rePassword" pattern="(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="\u0628\u06CC\u0634 \u0627\u0632 \u06F8 \u0634\u0646\u0627\u0633\u0647 \u0648 \u062A\u0631\u06A9\u06CC\u0628\u06CC \u0627\u0632 \u0639\u062F\u062F \u0648 \u062D\u0631\u0648\u0641 \u06A9\u0648\u0686\u06A9 \u0648 \u0628\u0632\u0631\u06AF \u0627\u0646\u06AF\u0644\u06CC\u0633\u06CC" 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> \u062D\u0633\u0627\u0628 \u06A9\u0627\u0631\u0628\u0631\u06CC \u062F\u0627\u0631\u06CC\u062F\u061F </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(`\u0648\u0627\u0631\u062F \u0634\u0648\u06CC\u062F`);
            } else {
              return [
                createTextVNode("\u0648\u0627\u0631\u062F \u0634\u0648\u06CC\u062F")
              ];
            }
          }),
          _: 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">\u062F\u0631\u06CC\u0627\u0641\u062A \u06A9\u062F</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">\u06A9\u062F \u067E\u06CC\u0627\u0645\u06A9 \u0634\u062F\u0647</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> \u06A9\u062F \u0628\u0631\u0627\u062A\u0648\u0646 \u0646\u06CC\u0648\u0645\u062F\u0647\u061F </div><div class="border-[#0077FE] w-32 border rounded-lg text-[#0077FE] px-4 py-2 text-sm font-bold text-center"> \u0627\u0631\u0633\u0627\u0644 \u0645\u062C\u062F\u062F </div><div class="border-[#0077FE] w-32 border rounded-lg text-[#0077FE] px-4 py-2 text-sm font-bold text-center"> \u062A\u063A\u06CC\u06CC\u0631 \u0634\u0645\u0627\u0631\u0647 </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">\u062B\u0628\u062A \u0646\u0627\u0645</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.mjs.map
