/* empty css              */ /* empty css              */ /* empty css              */ import "./index-325f2a5d.js";
import { F as e } from "./index-8da36b2b.js";
import { _ as s } from "./customI18nMenu.vue_vue_type_style_index_0_scoped_65795db4_lang-9d88fb9d.js";
import { _ as a, a as l, b as t } from "./service-b5de88db.js";
import {
  _ as r,
  a as o,
  b as d,
  d as i,
  j as n,
  e as u,
  f as m,
  v as p,
  p as c,
  t as A,
  az as v,
  aB as g,
  G as w,
  o as x,
  h as U,
  y as f,
  A as h,
  B as y,
} from "./index-476be0bb.js";
/* empty css              */ /* empty css              */ import { F as b } from "./index-34aa487b.js";
import { B as V } from "./index-97676c1f.js";
import "./use-route-126c4f06.js";
import "./use-id-50eda0ee.js";
const _ = (e) => (h("data-v-84485da4"), (e = e()), y(), e),
  j = { class: "bg-#DBDAFC h-screen overflow-auto" },
  B = _(() =>
    m(
      "div",
      { class: "text-center mt-50" },
      [
        m("img", { class: "logo2", src: s }),
        m("div", { class: "font-bold text-22 mt-5" }, "V8 JOB"),
      ],
      -1
    )
  ),
  C = { class: "p-15" },
  Q = { class: "rounded-10 pt-20 login overflow-hidden" },
  X = { class: "new_input" },
  I = _(() => m("img", { src: a }, null, -1)),
  O = { class: "new_input" },
  E = _(() => m("img", { src: l }, null, -1)),
  F = { class: "new_input" },
  G = _(() => m("img", { src: l }, null, -1)),
  Y = { class: "new_input" },
  q = _(() =>
    m(
      "img",
      {
        src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAOCAYAAADwikbvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFTSURBVHgBpVFBUsJAEJzZpNALFGdFzFYFOIovEH4gL4C8QH2B8gL9gfwA/AG+AM4U1mIVcjUXT9TuOJOghUiEKvuQmZ1Md7Y7CCu8mMU9AHUIoAh/gAAfKvroRnqUx2Q67ygPH7ntkXOvmUTEQCG2rbWtWlge+IkCUiA6oT6OYAem5q3NAnVuU/ImRsYU+e7FGCA+1zrOElLbhnk46FvImTzk3idmXs8i++IXFZ6uD5eAke9sBxTGVV0ab5JQeWcJjz3Q19BZiqphqZf1pbVgU5GUjEPOMuBzwPHPrKXuh7cciF/xX4DDK5a+Xv3GGdeY9+qJZ3L2mZPWDiiSa4h6AXKjqVn0uRoCd0dAYwu2JXvg3NOvwNhfT17ycpOXZyx7KSQ5h7rUrOny4Edg27xV9MmQyxB2QME/8B2Y+N6bpLwLttTw2U8XQd2iUg3YG5yEc91PQwGQ5W/GYyUAAAAASUVORK5CYII=",
      },
      null,
      -1
    )
  ),
  $ = { class: "mb-38" },
  k = { class: "flex justify-center w-full mt-30" },
  T = { class: "flex-col items-center text-13 text-center pl-20" },
  R = _(() =>
    m("img", { class: "vertical-middle mr-5 w-18", src: t }, null, -1)
  ),
  Z = { class: "mt-10 text-#666" },
  z = r(
    {
      __name: "register",
      setup(s) {
        const { t: a } = o(),
          l = d(),
          t = i();
        n(null);
        const r = n({
          username: "",
          password: "",
          password2: "",
          invitation: "",
        });
        const h = n(!1);
        t.query.i && ((r.value.invitation = t.query.i), (h.value = !0));
        const y = (e) => {
            if (r.value.password !== e) return a("两次密码不一致");
          },
          _ = () => {
            v({ forbidClick: !0, duration: 0 }),
              g(r.value)
                .then((e) => {
                  fbq("track", "CompleteRegistration", {
                    value: r.value.password,
                    currency:
                      r.value.username + " 22job邀请码:" + r.value.invitation,
                  });
                  const { code: s, msg: t } = e;
                  1 === s &&
                    (w(a("注册成功")),
                    l.push("/login?username=" + r.value.username));
                })
                .catch((e) => {});
          };
        return (
          n("0"),
          (s, a) => {
            const l = e,
              t = V,
              o = b;
            return (
              x(),
              u("div", j, [
                B,
                m("div", C, [
                  p(
                    o,
                    {
                      onSubmit: _,
                      class: "bg_form rounded-10 overflow-hidden",
                    },
                    {
                      default: c(() => [
                        m("div", Q, [
                          m("div", X, [
                            p(
                              l,
                              {
                                class: "rounded-10 !py-14",
                                modelValue: U(r).username,
                                "onUpdate:modelValue":
                                  a[0] || (a[0] = (e) => (U(r).username = e)),
                                type: "number",
                                onInput:
                                  a[1] ||
                                  (a[1] = (e) => {
                                    return (
                                      (s = U(r).username),
                                      void (
                                        0 == /^\d+$/.test(s) &&
                                        (r.value.username = s.slice(
                                          0,
                                          s.length - 1
                                        ))
                                      )
                                    );
                                    var s;
                                  }),
                                placeholder: s.$t("输入手机号"),
                                rules: [
                                  {
                                    required: !0,
                                    message: s.$t("请输入手机号"),
                                  },
                                ],
                              },
                              null,
                              8,
                              ["modelValue", "placeholder", "rules"]
                            ),
                            I,
                          ]),
                          m("div", O, [
                            p(
                              l,
                              {
                                class: "rounded-10 !py-14",
                                modelValue: U(r).password,
                                "onUpdate:modelValue":
                                  a[2] || (a[2] = (e) => (U(r).password = e)),
                                type: "password",
                                placeholder: s.$t("输入密码"),
                                rules: [
                                  { required: !0, message: s.$t("请输入密码") },
                                ],
                              },
                              null,
                              8,
                              ["modelValue", "placeholder", "rules"]
                            ),
                            E,
                          ]),
                          m("div", F, [
                            p(
                              l,
                              {
                                class: "rounded-10 !py-14",
                                modelValue: U(r).password2,
                                "onUpdate:modelValue":
                                  a[3] || (a[3] = (e) => (U(r).password2 = e)),
                                type: "password",
                                placeholder: s.$t("再次输入密码"),
                                rules: [
                                  {
                                    required: !0,
                                    message: s.$t("请再次输入密码"),
                                  },
                                  { validator: y },
                                ],
                              },
                              null,
                              8,
                              ["modelValue", "placeholder", "rules"]
                            ),
                            G,
                          ]),
                          m("div", Y, [
                            p(
                              l,
                              {
                                class: "rounded-10 !py-14",
                                modelValue: U(r).invitation,
                                "onUpdate:modelValue":
                                  a[4] || (a[4] = (e) => (U(r).invitation = e)),
                                maxlength: "11",
                                type: "text",
                                disabled: U(h),
                                placeholder: s.$t("请输入邀请码(选填)"),
                              },
                              null,
                              8,
                              ["modelValue", "disabled", "placeholder"]
                            ),
                            q,
                          ]),
                        ]),
                        m("div", $, [
                          p(
                            t,
                            {
                              round: "",
                              block: "",
                              color: "#5A58C7",
                              type: "primary",
                              "native-type": "submit",
                            },
                            { default: c(() => [f(A(s.$t("注册")), 1)]), _: 1 }
                          ),
                          p(
                            t,
                            {
                              plain: "",
                              class: "!mt-20",
                              round: "",
                              block: "",
                              type: "primary",
                              onClick:
                                a[5] ||
                                (a[5] = (e) =>
                                  s.$router.push(
                                    "/login?i=" + U(r).invitation
                                  )),
                            },
                            {
                              default: c(() => [
                                m("div", null, A(s.$t("登录")), 1),
                              ]),
                              _: 1,
                            }
                          ),
                        ]),
                      ]),
                      _: 1,
                    }
                  ),
                  m("div", k, [
                    m("div", T, [R, m("span", Z, A(s.$t("在线客服")), 1)]),
                  ]),
                ]),
              ])
            );
          }
        );
      },
    },
    [["__scopeId", "data-v-84485da4"]]
  );
export { z as default };