import {
    G as ie,
    z as _e,
    r as g,
    R as le,
    B as J,
    $ as oe,
    C as ue,
    aJ as de,
    H as L,
    I as M,
    Q as _,
    J as s,
    O as d,
    P as v,
    an as N,
    at as fe,
    aw as q,
    ax as X,
    aE as he,
    au as ce,
    b4 as we,
    u as f,
    F as be,
    V as Y,
    aB as ye,
    aC as Se,
    N as D,
    aA as ke,
    a_ as Ie,
    al as Ce,
    n as Oe,
    ao as Q
} from "./common.modules-af1f85b9.js";
import {
    d as Ue,
    V as xe,
    P as ee,
    v as W,
    S as Re,
    E as qe,
    b as Le,
    c as me,
    e as Ge
} from "./page-login-index.vue_vue_type_script_setup_true_lang.ts-fbfa23c0.js";
import {
    y as He,
    a3 as ve,
    ct as te,
    a4 as Je,
    cu as Te,
    c0 as pe,
    A as K,
    bh as Ke,
    bi as Pe,
    aM as De,
    G as ge,
    cv as Fe,
    bl as Be,
    b6 as $e,
    _ as Ee,
    bn as je,
    n as ze,
    cw as Ze
} from "./page-activity-ActivityDetail-f7c58355.js";
const Qe = S => (ye("data-v-e26f70e7"), S = S(), Se(), S),
    We = ["onKeydown"],
    Xe = {
        class: "tip"
    },
    Ye = {
        key: 0,
        class: "red"
    },
    et = {
        key: 1,
        class: "red"
    },
    tt = {
        class: "register__container-tip"
    },
    at = Qe(() => s("div", {
        class: "tipbg"
    }, null, -1)),
    st = {
        class: "register__container-tips"
    },
    rt = {
        class: "register__container-invitation"
    },
    nt = {
        class: "register__container-invitation__label"
    },
    ot = {
        class: "register__container-invitation__input"
    },
    it = ["placeholder", "disabled"],
    lt = {
        class: "register__container-remember"
    },
    ut = {
        class: "register__container-button"
    },
    dt = {
        class: "account"
    },
    ct = {
        class: "loginin"
    },
    vt = ie({
        __name: "Register",
        props: {
            registerData: {
                type: Object,
                required: !0
            }
        },
        emits: ["submit"],
        setup(S, {
            expose: G,
            emit: H
        }) {
            const R = S,
                {
                    t: e
                } = _e(),
                w = He(),
                o = ve(),
                n = g(!1),
                t = g({
                    number: "",
                    numberType: o.rPwdForm.numberType,
                    smsvcode: "",
                    password: "",
                    rePassword: "",
                    invitecode: "",
                    registerType: "mobile",
                    packId: te.getPackId() || ""
                }),
                F = g("register");
            t.value.number = "", sessionStorage.getItem("register_a") && (t.value = JSON.parse(sessionStorage.getItem("register_a") || ""), sessionStorage.setItem("register_a", ""));
            const T = le(),
                k = g(!1),
                b = g(!1),
                V = g({}),
                i = J(() => {
                    var a, r, p, h, u;
                    return !!((r = (a = V.value) == null ? void 0 : a.apkInfo) != null && r.invitationCode || (p = T.currentRoute.value.query) != null && p.invitationCode || (u = (h = T.currentRoute.value.query) == null ? void 0 : h.r_code) != null && u.toString() || sessionStorage.getItem("invitecode"))
                }),
                m = J(() => R.registerData.isInvitecode == "1" ? e("plsEnterInvitationCode") : e("notNecessary")),
                y = w.isOpenRegisterPhoneFirstZeroSwitch;
            oe(() => t.value.number, a => {
                o.setCountDown(0)
            }, {
                flush: "post"
            }), oe(() => o.rPwdForm.numberType, a => {
                !t.value.numberType && (t.value.numberType = a)
            }, {
                flush: "post"
            });

            function B() {
                T.push({
                    name: "login"
                })
            }
            const $ = async () => {
                if (!pe(t.value.numberType, t.value.number.trim().length)) return o.setCountDown(0), f({
                    message: e("wrongTel"),
                    wordBreak: "break-word"
                });
                await K(Ke({
                    phone: t.value.numberType.replace("+", "") + t.value.number,
                    codeType: Pe.Registr
                })) ? be(e("sendSuccess")) : setTimeout(() => {
                    o.setCountDown(0)
                }, 500)
            };
            J(() => {
                var h;
                let a = e("regTip2").match(/\d+/);
                "" + t.value.numberType;
                const r = (h = w.getAreaPhoneLenList.find(u => (u == null ? void 0 : u.area) == "+" + t.value.numberType)) == null ? void 0 : h.len;
                let p = 9;
                return (r == null ? void 0 : r.indexOf("-")) != -1 ? p = r == null ? void 0 : r.toString().split("-")[0] : p = r, a ? a[0].substr(0, p) : ""
            });
            const x = a => {
                    const r = a.target;
                    r.value = r.value.replace(/[\s\n\t\r]/g, "")
                },
                O = async () => {
                    if (!pe(t.value.numberType, t.value.number.trim().length)) return f({
                        message: e("wrongTel"),
                        wordBreak: "break-word"
                    });
                    if (t.value.number.charAt(0) === "0" && w.isOpenRegisterPhoneFirstZeroSwitch) return f({
                        message: e("registerNumberTip"),
                        wordBreak: "break-word"
                    });
                    if (R.registerData.registerMobileState !== "1") return f({
                        message: e("registerClose"),
                        wordBreak: "break-word"
                    });
                    if (!t.value.number.trim() || k.value) {
                        k.value = !0;
                        return
                    }
                    if (R.registerData.isOpenRegisterSMS !== "0")
                        if (t.value.smsvcode.trim()) {
                            if (t.value.smsvcode.trim().length != 6) return f({
                                message: e("verifyCode6Digits"),
                                wordBreak: "break-word"
                            })
                        } else return f({
                            message: e("registerTip1"),
                            wordBreak: "break-word"
                        });
                    if (!t.value.password.trim()) return f({
                        message: e("registerTip2"),
                        wordBreak: "break-word"
                    });
                    if (!W.passReg3.test(t.value.password)) {
                        n.value = !0;
                        return
                    }
                    if (!t.value.rePassword.trim()) return f({
                        message: e("registerTip3"),
                        wordBreak: "break-word"
                    });
                    if (t.value.rePassword !== t.value.password) {
                        b.value = !0;
                        return
                    } else b.value = !1;
                    if (!o.userForm.termAndPolicy) return f({
                        message: e("registerDesc1"),
                        wordBreak: "break-word"
                    });
                    R.registerData.hasRegisterCaptcha === "1" ? A() : I("")
                },
                P = a => {
                    t.value.numberType = a
                },
                U = a => {
                    t.value.number = a
                },
                j = () => {
                    Ce("toPath", "ResetPassword"), T.push({
                        name: "About-AboutDetail"
                    })
                },
                E = g(),
                c = g(""),
                {
                    setLoading: l
                } = Je(),
                I = async a => {
                    Y(async () => {
                        l(!0), E.value.startRequestVerify();
                        const {
                            number: r,
                            numberType: p,
                            smsvcode: h,
                            password: u,
                            invitecode: z,
                            packId: ae
                        } = t.value;
                        let se = {
                            username: p.replace("+", "") + r,
                            smsvcode: h,
                            registerType: t.value.registerType,
                            pwd: u,
                            invitecode: z,
                            packId: ae,
                            domainurl: window.location.hostname,
                            phonetype: De(),
                            captchaId: c.value,
                            track: a,
                            deviceId: localStorage.getItem("arvId") || te.getDeviceId()
                        };
                        o.register(se).then(async C => {
                            var Z;
                            if (C) {
                                l(!1);
                                const Ae = ge(),
                                    {
                                        token: re,
                                        tokenHeader: Me,
                                        parentUserId: Ne
                                    } = C == null ? void 0 : C.data;
                                Ae.setToken(re), localStorage.setItem("tokenHeader", Me), localStorage.setItem("numberType", o.getUserForm.numberType), localStorage.setItem("number", o.userForm.number), H("submit"), T.replace("/"), await o.getUserInfo({
                                    signature: re
                                });
                                const ne = await o.getUserInfo({
                                    signature: re
                                });
                                Fe("prediction", "userId", [Ne]);
                                const {
                                    onTriggerRegister: Ve
                                } = $e();
                                Ve((Z = ne == null ? void 0 : ne.data) == null ? void 0 : Z.userId)
                            }
                        }).catch(C => {}).finally(() => {
                            var C;
                            l(!1), (C = E.value) == null || C.setShowHiden(!1)
                        })
                    })
                },
                A = async () => {
                    Y(async () => {
                        E.value.startRequestGenerate();
                        const a = await K(Be());
                        a ? (c.value = a.data.captchaId, E.value.endRequestGenerate(a.data.backgroundImage, a.data.sliderImage)) : E.value.endRequestGenerate(null, null)
                    })
                };
            return ue(async () => {
                var r, p, h, u;
                o.setCountDown(0), V.value = await Te(["apkInfo"]);
                const a = ((p = (r = V.value) == null ? void 0 : r.apkInfo) == null ? void 0 : p.invitationCode) || ((h = T.currentRoute.value.query.invitationCode) == null ? void 0 : h.toString()) || ((u = T.currentRoute.value.query.r_code) == null ? void 0 : u.toString()) || sessionStorage.getItem("invitecode") || "";
                a && (t.value.invitecode = a, sessionStorage.setItem("invitecode", a)), o.getIp()
            }), de((a, r) => {
                a.name == "About-AboutDetail" ? sessionStorage.setItem("register_a", JSON.stringify(t.value)) : sessionStorage.setItem("register_a", "")
            }), G({
                showPhoneValidate: k
            }), (a, r) => {
                const p = L("svg-icon"),
                    h = L("van-checkbox");
                return D(), M("div", {
                    class: "register__container",
                    onKeydown: we(O, ["enter"])
                }, [_(Ue, {
                    "show-validate": k.value,
                    "onUpdate:showValidate": r[0] || (r[0] = u => k.value = u),
                    number: t.value.number,
                    "onUpdate:number": r[1] || (r[1] = u => t.value.number = u),
                    "number-type": t.value.numberType,
                    type: F.value,
                    onChangeT: P,
                    onChangeN: U,
                    typeP: "register"
                }, null, 8, ["show-validate", "number", "number-type", "type"]), s("div", Xe, [d(y) ? (D(), M("span", Ye, v(d(e)("regTip1")), 1)) : N("v-if", !0), d(y) ? (D(), M("p", et, v(d(e)("regTip2")), 1)) : N("v-if", !0), N("{{ truncateNumber }} ")]), a.registerData.isOpenRegisterSMS !== "0" ? (D(), fe(xe, {
                    key: 0,
                    value: t.value.smsvcode,
                    "onUpdate:value": r[2] || (r[2] = u => t.value.smsvcode = u),
                    sendFunc: $,
                    number: t.value.number,
                    numberType: t.value.numberType
                }, null, 8, ["value", "number", "numberType"])) : N("v-if", !0), _(ee, {
                    value: t.value.password,
                    "onUpdate:value": r[3] || (r[3] = u => t.value.password = u),
                    label: d(e)("setPsw")
                }, null, 8, ["value", "label"]), q(s("div", tt, [at, s("span", null, v(d(e)("pswRule")), 1)], 512), [
                    [X, n.value]
                ]), _(ee, {
                    value: t.value.rePassword,
                    "onUpdate:value": r[4] || (r[4] = u => t.value.rePassword = u),
                    label: d(e)("comfirmPsw")
                }, null, 8, ["value", "label"]), q(s("div", st, [s("span", null, v(d(e)("unmatchedInput")), 1)], 512), [
                    [X, b.value]
                ]), s("div", rt, [s("div", nt, [_(p, {
                    name: "invitation"
                }), s("span", null, v(d(e)("invitationCode")), 1)]), s("div", ot, [q(s("input", {
                    type: "text",
                    "auto-complete": "new-password",
                    autocomplete: "off",
                    name: "userNumber",
                    "onUpdate:modelValue": r[5] || (r[5] = u => t.value.invitecode = u),
                    placeholder: m.value,
                    disabled: i.value,
                    maxlength: "20",
                    onInput: x
                }, null, 40, it), [
                    [he, t.value.invitecode, void 0, {
                        trim: !0
                    }]
                ])])]), s("div", lt, [_(h, {
                    modelValue: d(o).userForm.termAndPolicy,
                    "onUpdate:modelValue": r[7] || (r[7] = u => d(o).userForm.termAndPolicy = u)
                }, {
                    default: ce(() => [ke(v(d(e)("readNagree")) + " ", 1), s("span", {
                        onClick: r[6] || (r[6] = Ie(u => j(), ["stop"]))
                    }, v(d(e)("desPrivacy")), 1)]),
                    _: 1
                }, 8, ["modelValue"])]), s("div", ut, [s("button", {
                    onClick: O
                }, v(d(e)("register")), 1), s("button", {
                    class: "login",
                    onClick: B
                }, [s("div", dt, v(d(e)("iHaveAcount")), 1), s("div", ct, v(d(e)("goLogin")), 1)])]), _(Re, {
                    ref_key: "captchaRef",
                    ref: E,
                    "refresh-color": "#FFFFFF",
                    "show-refresh": !0,
                    onFinish: I,
                    onRefresh: A
                }, null, 512)], 40, We)
            }
        }
    });
const gt = Ee(vt, [
        ["__scopeId", "data-v-e26f70e7"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar031-india-in999/src/components/Login/Register.vue"]
    ]),
    mt = S => (ye("data-v-1679e191"), S = S(), Se(), S),
    pt = ["onKeydown"],
    _t = {
        class: "register__container-tip"
    },
    ft = mt(() => s("div", {
        class: "tipbg"
    }, null, -1)),
    ht = {
        class: "register__container-tips"
    },
    wt = {
        class: "register__container-invitation"
    },
    bt = {
        class: "register__container-invitation__label"
    },
    yt = {
        class: "register__container-invitation__input"
    },
    St = ["placeholder", "disabled"],
    kt = {
        class: "register__container-remember"
    },
    It = {
        class: "register__container-button"
    },
    Ct = {
        class: "account"
    },
    Rt = {
        class: "loginin"
    },
    Tt = ie({
        __name: "EmailRegister",
        props: {
            registerData: {
                type: Object,
                required: !0
            }
        },
        emits: ["submit"],
        setup(S, {
            expose: G,
            emit: H
        }) {
            const R = S,
                {
                    t: e
                } = _e(),
                w = g(!1),
                o = ve(),
                n = g({
                    smsvcode: "",
                    password: "",
                    rePassword: "",
                    invitecode: "",
                    email: "",
                    registerType: "email",
                    packId: te.getPackId() || ""
                }),
                t = g("register");
            sessionStorage.getItem("register") && (n.value = JSON.parse(sessionStorage.getItem("register") || ""), sessionStorage.setItem("register", ""));
            const F = le(),
                T = g(!1),
                k = g(!1),
                b = g({}),
                V = J(() => {
                    var c, l, I;
                    return !!((l = (c = b.value) == null ? void 0 : c.apkInfo) != null && l.invitationCode || (I = F.currentRoute.value.query) != null && I.invitationCode)
                }),
                i = J(() => R.registerData.isInvitecode == "1" ? e("plsEnterInvitationCode") : e("notNecessary"));
            oe(() => n.value.email, c => {
                o.setCountDown(0)
            }, {
                flush: "post"
            });

            function m() {
                F.push({
                    name: "login"
                })
            }
            const y = async () => {
                    if (!W.email1.test(n.value.email)) return o.setCountEmailDown(0), f({
                        message: e(me.email),
                        wordBreak: "break-word"
                    });
                    await K(je({
                        email: n.value.email,
                        emailType: Pe.Registr
                    })) ? be(e("sendSuccess")) : o.setCountEmailDown(0)
                },
                B = c => {
                    const l = c.target;
                    l.value = l.value.replace(/[\s\n\t\r]/g, "")
                },
                $ = async () => {
                    if (R.registerData.registerEmailState !== "1") return f({
                        message: e("registerClose"),
                        wordBreak: "break-word"
                    });
                    if (R.registerData.isOpenRegisterEmail !== "0")
                        if (n.value.smsvcode.trim()) {
                            if (n.value.smsvcode.trim().length != 6) return f({
                                message: e("verifyCode6Digits"),
                                wordBreak: "break-word"
                            })
                        } else return f({
                            message: e("registerTip6"),
                            wordBreak: "break-word"
                        });
                    if (!W.email1.test(n.value.email)) return f({
                        message: e(me.email),
                        wordBreak: "break-word"
                    });
                    if (!n.value.password.trim()) return f({
                        message: e("registerTip2"),
                        wordBreak: "break-word"
                    });
                    if (!W.passReg3.test(n.value.password)) {
                        w.value = !0;
                        return
                    }
                    if (!n.value.rePassword.trim()) return f({
                        message: e("registerTip3"),
                        wordBreak: "break-word"
                    });
                    if (n.value.rePassword !== n.value.password) {
                        k.value = !0;
                        return
                    } else k.value = !1;
                    if (!o.userForm.termAndPolicy) return f({
                        message: e("registerDesc1"),
                        wordBreak: "break-word"
                    });
                    R.registerData.hasRegisterCaptcha === "1" ? E() : j("")
                },
                x = c => {
                    n.value.email = c
                },
                O = () => {
                    Ce("toPath", "ResetPassword"), F.push({
                        name: "About-AboutDetail"
                    })
                },
                P = g(),
                U = g(""),
                j = async c => {
                    Y(async () => {
                        P.value.startRequestVerify();
                        const {
                            smsvcode: l,
                            password: I,
                            invitecode: A,
                            packId: a
                        } = n.value;
                        let r = {
                            username: n.value.email,
                            smsvcode: l,
                            registerType: n.value.registerType,
                            pwd: I,
                            invitecode: A,
                            domainurl: window.location.hostname,
                            phonetype: De(),
                            captchaId: U.value,
                            track: c,
                            deviceId: localStorage.getItem("arvId") || te.getDeviceId(),
                            packId: a
                        };
                        o.register(r).then(async p => {
                            var h;
                            if (p) {
                                const u = ge(),
                                    {
                                        token: z,
                                        tokenHeader: ae,
                                        parentUserId: se
                                    } = p == null ? void 0 : p.data;
                                u.setToken(z), localStorage.setItem("tokenHeader", ae), localStorage.setItem("numberType", o.getUserForm.numberType), localStorage.setItem("number", o.userForm.number), H("submit"), F.replace("/");
                                const C = await o.getUserInfo({
                                    signature: z
                                });
                                Fe("prediction", "userId", [se || ""]);
                                const {
                                    onTriggerRegister: Z
                                } = $e();
                                Z((h = C == null ? void 0 : C.data) == null ? void 0 : h.userId)
                            }
                        }).catch(p => {}).finally(() => {
                            P.value.setShowHiden(!1)
                        })
                    })
                },
                E = async () => {
                    Y(async () => {
                        P.value.startRequestGenerate();
                        const c = await K(Be());
                        c ? (U.value = c.data.captchaId, P.value.endRequestGenerate(c.data.backgroundImage, c.data.sliderImage)) : P.value.endRequestGenerate(null, null)
                    })
                };
            return ue(async () => {
                var l, I, A, a;
                o.setCountEmailDown(0), b.value = await Te(["apkInfo"]);
                const c = ((I = (l = b.value) == null ? void 0 : l.apkInfo) == null ? void 0 : I.invitationCode) || ((A = F.currentRoute.value.query.invitationCode) == null ? void 0 : A.toString()) || ((a = F.currentRoute.value.query.r_code) == null ? void 0 : a.toString()) || sessionStorage.getItem("invitecode") || "";
                c && (n.value.invitecode = c)
            }), de((c, l) => {
                c.name == "About-AboutDetail" ? sessionStorage.setItem("register", JSON.stringify(n.value)) : sessionStorage.setItem("register", "")
            }), G({
                showPhoneValidate: T
            }), (c, l) => {
                const I = L("svg-icon"),
                    A = L("van-checkbox");
                return D(), M("div", {
                    class: "register__container",
                    onKeydown: we($, ["enter"])
                }, [_(qe, {
                    ref: "email",
                    type: t.value,
                    email: n.value.email,
                    onChangeN: x
                }, null, 8, ["type", "email"]), c.registerData.isOpenRegisterEmail !== "0" ? (D(), fe(Le, {
                    key: 0,
                    value: n.value.smsvcode,
                    "onUpdate:value": l[0] || (l[0] = a => n.value.smsvcode = a),
                    sendFunc: y,
                    email: n.value.email
                }, null, 8, ["value", "email"])) : N("v-if", !0), _(ee, {
                    value: n.value.password,
                    "onUpdate:value": l[1] || (l[1] = a => n.value.password = a),
                    label: d(e)("setPsw")
                }, null, 8, ["value", "label"]), q(s("div", _t, [ft, s("span", null, v(d(e)("pswRule")), 1)], 512), [
                    [X, w.value]
                ]), _(ee, {
                    value: n.value.rePassword,
                    "onUpdate:value": l[2] || (l[2] = a => n.value.rePassword = a),
                    label: d(e)("comfirmPsw")
                }, null, 8, ["value", "label"]), q(s("div", ht, [s("span", null, v(d(e)("unmatchedInput")), 1)], 512), [
                    [X, k.value]
                ]), s("div", wt, [s("div", bt, [_(I, {
                    name: "invitation"
                }), s("span", null, v(d(e)("invitationCode")), 1)]), s("div", yt, [q(s("input", {
                    type: "text",
                    "auto-complete": "new-password",
                    autocomplete: "off",
                    name: "userNumber",
                    "onUpdate:modelValue": l[3] || (l[3] = a => n.value.invitecode = a),
                    placeholder: i.value,
                    disabled: V.value,
                    maxlength: "20",
                    onInput: B
                }, null, 40, St), [
                    [he, n.value.invitecode, void 0, {
                        trim: !0
                    }]
                ])])]), s("div", kt, [_(A, {
                    modelValue: d(o).userForm.termAndPolicy,
                    "onUpdate:modelValue": l[5] || (l[5] = a => d(o).userForm.termAndPolicy = a)
                }, {
                    default: ce(() => [ke(v(d(e)("readNagree")) + " ", 1), s("span", {
                        onClick: l[4] || (l[4] = Ie(a => O(), ["stop"]))
                    }, v(d(e)("desPrivacy")), 1)]),
                    _: 1
                }, 8, ["modelValue"])]), s("div", It, [s("button", {
                    onClick: $
                }, v(d(e)("register")), 1), s("button", {
                    class: "login",
                    onClick: m
                }, [s("div", Ct, v(d(e)("iHaveAcount")), 1), s("div", Rt, v(d(e)("goLogin")), 1)])]), _(Re, {
                    ref_key: "captchaRef",
                    ref: P,
                    "refresh-color": "#FFFFFF",
                    "show-refresh": !0,
                    onFinish: j,
                    onRefresh: E
                }, null, 512)], 40, pt)
            }
        }
    });
const Pt = Ee(Tt, [
        ["__scopeId", "data-v-1679e191"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar031-india-in999/src/components/Login/EmailRegister.vue"]
    ]),
    Dt = {
        class: "resgister__C"
    },
    Ft = {
        class: "resgister__C-heading"
    },
    Bt = {
        class: "resgister__C-heading__title"
    },
    $t = {
        class: "resgister__C-heading__subTitle"
    },
    Et = {
        class: "login_container-tab"
    },
    At = {
        class: "resgister__C-form"
    },
    Ot = ie({
        __name: "index",
        setup(S) {
            const {
                openAll: G
            } = ze(), H = ge(), R = ve();
            g("");
            const e = g({
                    isRegisterState: "1",
                    SMSstate: "0",
                    registerStateMsg: "",
                    hasRegisterCaptcha: "0",
                    registerEmailState: "0",
                    registerMobileState: "0",
                    isOpenRegisterSMS: "0",
                    isOpenRegisterEmail: "0",
                    isInvitecode: "0"
                }),
                w = g("phone"),
                o = le();
            H.token && o.push({
                name: "home"
            });
            const n = i => {
                w.value = i
            };
            de((i, m, y) => {
                y(), i.name === "home" && G()
            });
            const t = g();

            function F() {
                o.push({
                    name: "home"
                })
            }
            async function T() {
                var m, y, B, $, x, O, P, U;
                const i = await K(Ze());
                i && (e.value.isRegisterState = i.data.registerState, e.value.registerStateMsg = i.data.registerStateMsg, e.value.registerEmailState = i.data.registerEmailState, e.value.registerMobileState = (m = i.data) == null ? void 0 : m.registerMobileState, e.value.isOpenRegisterSMS = (y = i.data) == null ? void 0 : y.isOpenRegisterSMS, e.value.isOpenRegisterEmail = (B = i.data) == null ? void 0 : B.isOpenRegisterEmail, e.value.hasRegisterCaptcha = i.data.isOpenRegisterCaptcha, e.value.isInvitecode = ($ = i.data) == null ? void 0 : $.isInvitecode, R.setTermAndPolicy(((x = i.data) == null ? void 0 : x.registerPrivacyChecked) === "1"), Number(i.data.registerEmailState) + Number((O = i.data) == null ? void 0 : O.registerMobileState) == 0 ? (((P = i.data) == null ? void 0 : P.isOpenRegisterSMS) !== "1" && (w.value = "email"), o.push({
                    name: "login"
                })) : (e.value.registerSMSState = i.data.registerSMSState, e.value.registerEmailState !== "0" && ((U = i.data) == null ? void 0 : U.registerMobileState) == "0" && (w.value = "email")))
            }
            T();

            function k() {
                const m = window.location.hash.match(/invitationCode=([\d]+)/);
                return m ? m[1] : null
            }
            const b = g(null),
                V = () => {
                    b.value && window.gtag && window.gtag("event", "register_button_click", {
                        invitation_code: b.value
                    })
                };
            return k(), ue(async () => {
                b.value = k(), b.value && (window.gtag ? window.gtag("event", "page_view_with_invitation", {
                    invitation_code: b.value
                }) : console.warn("Google Analytics 未初始化，无法发送事件"));
                const {
                    default: i
                } = await Oe(() =>
                    import ("./chunk.fingerprintjs-833b8cd8.js"), ["assets/js/chunk.fingerprintjs-833b8cd8.js", "assets/js/common.modules-af1f85b9.js", "assets/css/common-e210f711.css"]);
                localStorage.getItem("arvId") || i.load().then(m => {
                    m.get().then(y => {
                        localStorage.setItem("arvId", y.visitorId)
                    })
                }).catch(m => {
                    console.error("Error generating fingerprint:", m)
                })
            }), (i, m) => {
                const y = L("NavBar"),
                    B = L("svg-icon");
                return D(), M("div", Dt, [_(y, {
                    onClickLeft: F,
                    leftArrow: !0,
                    headLogo: !0,
                    class: "main"
                }, {
                    right: ce(() => [_(Ge)]),
                    _: 1
                }), s("div", Ft, [s("h1", Bt, v(i.$t("register")), 1), s("div", $t, [s("span", null, v(i.$t("registerbyphoneoremail")), 1)])]), s("div", Et, [e.value.registerMobileState != "0" ? (D(), M("div", {
                    key: 0,
                    class: Q(["tab", [w.value == "phone" ? "active" : ""]]),
                    onClick: m[0] || (m[0] = $ => n("phone"))
                }, [_(B, {
                    name: "phone"
                }), s("div", null, v(i.$t("phoneregister")), 1)], 2)) : N("v-if", !0), e.value.registerEmailState != "0" ? (D(), M("div", {
                    key: 1,
                    class: Q(["tab", [w.value == "email" ? "active" : ""]]),
                    onClick: m[1] || (m[1] = $ => n("email"))
                }, [_(B, {
                    name: "email"
                }), s("div", null, v(i.$t("emailregister")), 1)], 2)) : N("v-if", !0)]), s("div", At, [e.value.registerMobileState != "0" ? (D(), M("div", {
                    key: 0,
                    class: Q(["tab-content", [w.value == "phone" ? "activecontent" : ""]])
                }, [_(gt, {
                    ref_key: "register",
                    ref: t,
                    registerData: e.value,
                    onSubmit: V
                }, null, 8, ["registerData"])], 2)) : N("v-if", !0), e.value.registerEmailState != "0" ? (D(), M("div", {
                    key: 1,
                    class: Q(["tab-content", [w.value == "email" ? "activecontent" : ""]])
                }, [_(Pt, {
                    ref_key: "register",
                    ref: t,
                    registerData: e.value,
                    onSubmit: V
                }, null, 8, ["registerData"])], 2)) : N("v-if", !0)])])
            }
        }
    });
export {
    Ot as _
};