import {
    G as T,
    r as O,
    D as be,
    $ as H,
    aw as U,
    ax as L,
    I as C,
    J as s,
    Q as l,
    au as k,
    bd as W,
    N as w,
    an as D,
    aB as se,
    aC as le,
    bx as Se,
    by as G,
    bz as J,
    A as ie,
    aS as $e,
    bA as Ie,
    B as N,
    V as xe,
    C as re,
    W as Be,
    Y as Oe,
    a7 as Ve,
    bB as De,
    K as ue,
    bC as de,
    av as Me,
    z as Ae,
    R as ce,
    H as M,
    aq as oe,
    P as y,
    O as r,
    Z as j,
    at as ne,
    aA as B,
    M as Te
} from "./common.modules-af1f85b9.js";
import {
    _ as pe,
    cy as ze,
    cz as fe,
    cA as Pe,
    cB as ve,
    cC as je,
    cD as Ne,
    cE as Ue,
    cF as ae,
    J as Le,
    bm as Ee,
    A as Fe,
    cG as Re
} from "./page-activity-ActivityDetail-f7c58355.js";
import {
    P as Ge
} from "./page-login-index.vue_vue_type_script_setup_true_lang.ts-fbfa23c0.js";
const he = e => (se("data-v-3492f60f"), e = e(), le(), e),
    He = {
        class: "dialog"
    },
    Ze = {
        class: "dialog-main"
    },
    qe = he(() => s("div", {
        class: "dialog-main-content"
    }, null, -1)),
    Ke = he(() => s("div", {
        style: {
            width: "30px",
            height: "30px"
        }
    }, [s("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        width: "60",
        height: "60",
        viewBox: "0 0 60 60",
        fill: "none"
    }, [s("path", {
        d: "M30 57C44.9117 57 57 44.9117 57 30C57 15.0883 44.9117 3 30 3C15.0883 3 3 15.0883 3 30C3 44.9117 15.0883 57 30 57Z",
        stroke: "white",
        "stroke-width": "4",
        "stroke-linejoin": "round"
    }), s("path", {
        d: "M43 17L17 43",
        stroke: "white",
        "stroke-width": "4",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }), s("path", {
        d: "M17 17L43 43",
        stroke: "white",
        "stroke-width": "4",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    })])], -1)),
    We = [Ke],
    Je = T({
        __name: "Dialog",
        props: {
            show: {
                type: Boolean,
                default: !1
            },
            type: {
                type: String,
                default: "info"
            },
            showCancel: {
                type: Boolean,
                default: !0
            },
            cancelText: {
                type: String,
                default: "取消"
            },
            showConfirm: {
                type: Boolean,
                default: !0
            },
            confirmText: {
                type: String,
                default: "确认"
            },
            title: {
                type: String,
                default: ""
            },
            code: {
                type: String,
                default: ""
            },
            desc: {
                type: [String, Function],
                default: ""
            },
            showClose: {
                type: Boolean,
                default: !0
            },
            maskClose: {
                type: Boolean,
                default: !0
            },
            time: {
                type: Number,
                default: 0
            }
        },
        emits: ["update:show", "cancel", "confirm"],
        setup(e, {
            emit: o
        }) {
            const n = e,
                a = O(n.time !== 0),
                t = O(!1),
                c = () => {
                    n.maskClose && (t.value = !1)
                },
                h = () => {
                    t.value = !1
                },
                i = () => {
                    o("update:show", !1)
                },
                u = be({
                    time: n.time * 1e3,
                    onFinish() {
                        a.value = !1
                    }
                });
            return H(() => n.show, f => {
                t.value = f, f && n.time !== 0 && u.start()
            }), (f, v) => U((w(), C("div", He, [s("div", {
                class: "dialog-bg",
                onClick: c
            }), l(W, {
                name: "dialogIn",
                onAfterLeave: i,
                "enter-active-class": "dialogIn-enter-active",
                "leave-active-class": "dialogIn-leave-active",
                persisted: ""
            }, {
                default: k(() => [U(s("div", Ze, [qe, e.showClose ? (w(), C("div", {
                    key: 0,
                    class: "dialog-main-close",
                    onClick: h
                }, We)) : D("v-if", !0)], 512), [
                    [L, t.value]
                ])]),
                _: 1
            })], 512)), [
                [L, {
                    show: e.show
                }]
            ])
        }
    });
const Ye = pe(Je, [
        ["__scopeId", "data-v-3492f60f"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar031-india-in999/src/components/Dialog/Dialog.vue"]
    ]),
    Qe = e => {
        const o = J(),
            {
                cancel: n,
                confirm: a,
                close: t,
                ...c
            } = e,
            h = document.createElement("div");
        let i;
        const u = Se(Ye, { ...c,
            onCancel: n,
            onConfirm: a,
            "onUpdate:show" () {
                var f;
                u.component && (u.component.props.show = !1), t == null || t(), (f = i == null ? void 0 : i.unmount) == null || f.call(i)
            }
        });
        return i = {
            isUnmounted: !1,
            vm: u,
            open() {
                var f;
                document.body.appendChild(h), G(u, h), (f = u.component) != null && f.props && (u.component.props.show = !0), u.appContext = (o == null ? void 0 : o.appContext) || null
            },
            unmount() {
                var f, v;
                (f = u.component) != null && f.isUnmounted || (i.isUnmounted = !0, G(null, h), (v = h == null ? void 0 : h.parentNode) == null || v.removeChild(h))
            }
        }, i
    },
    Xe = Qe;
let et = 100;

function me(e) {
    const o = J();
    o && Object.assign(o.proxy, e)
}

function tt() {
    const e = ie({
            show: !1
        }),
        o = t => {
            e.show = t
        },
        n = t => {
            t && Object.assign(e, t, {
                transitionAppear: !0
            }), o(!0)
        },
        a = () => o(!1);
    return me({
        open: n,
        close: a,
        toggle: o
    }), {
        open: n,
        close: a,
        state: e,
        toggle: o
    }
}

function ot(e) {
    var c;
    const o = J(),
        n = l(e);
    n.appContext = (o == null ? void 0 : o.appContext) || null;
    const a = document.createElement("div");
    return document.body.appendChild(a), G(n, a), {
        instance: ((c = n.component) == null ? void 0 : c.proxy) || {},
        unmount() {
            G(null, a), document.body.removeChild(a)
        }
    }
}
const nt = () => ++et;

function ye(e) {
    const o = O(!1);
    return H(e, n => {
        n && (o.value = n)
    }, {
        immediate: !0
    }), n => () => o.value ? n() : null
}

function at(e, {
    args: o = [],
    done: n,
    canceled: a
}) {
    if (e) {
        const t = e.apply(null, o);
        ze(t) ? t.then(c => {
            c ? n() : a && a()
        }).catch(fe) : t ? n() : a ? a() : n()
    } else n()
}
const we = Symbol(),
    st = {
        show: Boolean,
        zIndex: Number,
        role: String,
        duration: {
            type: Number,
            default: 1
        },
        className: {
            type: String
        },
        lockScroll: {
            type: Boolean,
            default: !0
        },
        lazyRender: {
            type: Boolean,
            default: !0
        },
        transition: String,
        tabindex: Number,
        customStyle: Object
    };

function lt() {
    return $e(we, {
        close: () => {}
    })
}
const it = T({
        props: st,
        setup(e, {
            emit: o,
            slots: n
        }) {
            const a = O(),
                t = ye(() => e.show || !e.lazyRender),
                c = i => {
                    e.lockScroll && je(i, !0)
                },
                h = t(() => {
                    var u;
                    const i = Object.assign(Ne(e.zIndex), e.customStyle);
                    return U(l("div", {
                        ref: a,
                        style: i,
                        class: [e.className, "popup-overlay"]
                    }, [(u = n.default) == null ? void 0 : u.call(n)]), [
                        [L, e.show]
                    ])
                });
            return ve("touchmove", c, {
                target: a
            }), () => l(W, {
                name: e.transition || "fade",
                appear: !0
            }, {
                default: h
            })
        }
    }),
    rt = {
        show: Boolean,
        zIndex: Number,
        teleport: {
            type: [String, Object],
            default: "body"
        },
        duration: {
            type: Number
        },
        lockScroll: {
            type: Boolean,
            default: !0
        },
        lazyRender: {
            type: Boolean,
            default: !0
        },
        overlay: {
            type: Boolean,
            default: !1
        },
        transitionAppear: {
            type: Boolean,
            default: !0
        },
        content: Function,
        transition: String,
        destroyOnClose: {
            type: Boolean,
            default: !0
        },
        beforeClose: Function,
        overlayStyle: Object,
        closeOnClickOverlay: {
            type: Boolean,
            default: !1
        }
    },
    ut = Object.assign({}, rt, {
        position: {
            type: String,
            default: ""
        },
        safeAreaInsetTop: Boolean,
        safeAreaInsetBottom: Boolean,
        safeArea: Boolean,
        overlayClass: String,
        closeOnPopstate: Boolean
    }),
    dt = T({
        inheritAttrs: !1,
        props: ut,
        emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay"],
        setup(e, {
            emit: o,
            attrs: n,
            slots: a
        }) {
            let t, c;
            const h = Ie(document.body),
                i = O(),
                u = O(!1),
                f = O(),
                v = ye(() => e.show || !e.lazyRender),
                _ = N(() => {
                    const m = {
                        zIndex: i.value
                    };
                    if (Pe(e.duration)) {
                        const b = e.position === "center" ? "animationDuration" : "transitionDuration";
                        m[b] = `${e.duration}m`
                    }
                    return m
                }),
                V = () => {
                    t || (t = !0, h.value = !0, i.value = e.zIndex !== void 0 ? +e.zIndex : nt(), u.value = !0, o("open"))
                },
                $ = () => {
                    t && at(e.beforeClose, {
                        done() {
                            t = !1, o("close"), o("update:show", !1), h.value = !1, e.destroyOnClose && (u.value = !1)
                        }
                    })
                },
                A = () => o("opened"),
                x = () => o("closed"),
                Z = m => o("keydown", m),
                E = m => {
                    o("clickOverlay", m), e.closeOnClickOverlay && $()
                };
            H(() => e.show, m => {
                m && !t && (V(), n.tabindex === 0 && xe(() => {
                    var b;
                    (b = f.value) == null || b.focus()
                })), !m && t && $()
            }), me({
                popupRef: f
            }), ve("popstate", () => {
                e.closeOnPopstate && ($(), c = !1)
            }), re(() => {
                e.show && V()
            }), Be(() => {
                c && (o("update:show", !0), c = !1)
            }), Oe(() => {
                e.show && e.teleport && ($(), c = !0)
            }), Ve(we, {
                close: $
            });
            const q = v(() => {
                    const {
                        position: m,
                        safeAreaInsetTop: b,
                        safeAreaInsetBottom: S
                    } = e, I = e.content || a.default || fe;
                    return U(l("div", de({
                        ref: f,
                        style: _.value,
                        role: "dialog",
                        tabindex: 0,
                        class: ["popup", m === "center" ? "popup-center" : null, {
                            "van-safe-area-top": b,
                            "van-safe-area-bottom": S
                        }],
                        onKeydown: Z
                    }, n), [u.value && I()]), [
                        [L, e.show]
                    ])
                }),
                z = () => {
                    if (e.overlay) return l(it, {
                        show: e.show,
                        class: e.overlayClass,
                        zIndex: i.value,
                        duration: e.duration,
                        customStyle: e.overlayStyle,
                        role: e.closeOnClickOverlay ? "button" : void 0,
                        tabindex: e.closeOnClickOverlay ? 0 : void 0,
                        onClick: E
                    }, {
                        default: a["overlay-content"]
                    })
                },
                F = () => {
                    const {
                        position: m,
                        transition: b,
                        transitionAppear: S
                    } = e, I = m === "center" ? "fade" : `popup-slide-${m}`;
                    return l(W, {
                        name: b || I,
                        appear: S,
                        onAfterEnter: A,
                        onAfterLeave: x
                    }, {
                        default: q
                    })
                };
            return () => e.teleport ? l(De, {
                to: e.teleport
            }, {
                default: () => [z(), F()]
            }) : l(ue, null, [z(), F()])
        }
    }),
    ct = {
        overlay: !0,
        teleport: "body",
        position: "center",
        transition: "van-fade"
    };
let R = [],
    pt = !0;

function ft(e) {
    const {
        onClosed: o,
        ...n
    } = e;
    return ot({
        setup() {
            const {
                state: t,
                toggle: c
            } = tt();
            return () => l(dt, de(t, n, {
                "onUpdate:show": c
            }), null)
        }
    }).instance
}

function vt(e) {
    if (!R.length || pt) {
        const o = ft(e);
        R.push(o)
    }
    return R[R.length - 1]
}

function ht(e = {}) {
    const o = Object.assign({}, ct, e);
    return vt(o)
}
const Y = e => (se("data-v-954f2fdf"), e = e(), le(), e),
    mt = {
        class: "security"
    },
    yt = {
        class: "security-header"
    },
    wt = Y(() => s("span", {
        class: "security-header-left"
    }, null, -1)),
    _t = {
        key: 0
    },
    gt = {
        key: 1
    },
    Ct = Y(() => s("span", {
        class: "security-header-right"
    }, null, -1)),
    kt = {
        class: "security-content"
    },
    bt = {
        key: 0
    },
    St = {
        class: "security-hit"
    },
    $t = {
        key: 1
    },
    It = {
        class: "security-hit"
    },
    xt = {
        key: 2
    },
    Bt = {
        class: "security-hit"
    },
    Ot = {
        key: 3
    },
    Vt = {
        class: "security-tip"
    },
    Dt = {
        key: 1
    },
    Mt = {
        class: "security-btns"
    },
    At = {
        class: "security-footer"
    },
    Tt = Y(() => s("svg", {
        xmlns: "http://www.w3.org/2000/svg",
        width: "60",
        height: "60",
        viewBox: "0 0 60 60",
        fill: "none"
    }, [s("path", {
        d: "M30 57C44.9117 57 57 44.9117 57 30C57 15.0883 44.9117 3 30 3C15.0883 3 3 15.0883 3 30C3 44.9117 15.0883 57 30 57Z",
        stroke: "white",
        "stroke-width": "4",
        "stroke-linejoin": "round"
    }), s("path", {
        d: "M43 17L17 43",
        stroke: "white",
        "stroke-width": "4",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }), s("path", {
        d: "M17 17L43 43",
        stroke: "white",
        "stroke-width": "4",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    })], -1)),
    zt = [Tt],
    Pt = T({
        __name: "index",
        props: {
            type: {
                type: String,
                default: "",
                required: !0
            },
            code: {
                type: String,
                default: "",
                required: !0
            },
            codeType: {
                type: Number,
                required: !0
            },
            phone: {
                type: String,
                default: ""
            },
            showType: {
                type: String,
                default: "auth"
            }
        },
        emits: ["update:type", "update:code", "confirm"],
        setup(e, {
            emit: o
        }) {
            const n = e,
                {
                    type: a,
                    code: t,
                    phone: c
                } = Me(n, o),
                {
                    t: h
                } = Ae(),
                {
                    close: i
                } = lt(),
                u = ce(),
                {
                    verifyList: f,
                    verifyModal: v,
                    verifyActive: _,
                    openVerify: V,
                    onSelectVerify: $,
                    userInfo: A,
                    isOpenForgetPasswordSMSState: x
                } = Ue(),
                {
                    getEmailCode: Z,
                    isCount: E,
                    seconds: q
                } = ae({
                    time: 300,
                    codeType: n.codeType
                }),
                {
                    isCount: z,
                    seconds: F,
                    getSMSCode: m
                } = ae({
                    time: 120,
                    codeType: n.codeType
                }),
                b = N(() => t.value ? _.value.value === "pwd" ? !(t.value.length >= 8) : t.value.length !== 6 : !0),
                S = N(() => n.showType === "phone"),
                I = N(() => S.value ? {} : _.value),
                Q = N(() => {
                    var d, p;
                    return c.value || ((p = (d = A.value) == null ? void 0 : d.verifyMethods) == null ? void 0 : p.mobile)
                }),
                _e = () => {
                    i(), u.push({
                        name: "rpwd"
                    })
                },
                X = () => {
                    i(), u.push({
                        name: "CustomerService"
                    })
                },
                ge = async () => {
                    o("confirm", {
                        type: a,
                        code: t
                    })
                };
            return H(_, () => {
                a.value = _.value.value
            }), re(() => {
                S.value || (a.value = _.value.value)
            }), (d, p) => {
                var ee, te;
                const P = M("van-button"),
                    K = M("van-field"),
                    Ce = M("van-picker"),
                    ke = M("van-popup");
                return w(), C("div", mt, [s("div", yt, [wt, oe(d.$slots, "header", {}, () => [S.value ? (w(), C("h5", _t, y(r(h)("SMSVerify")), 1)) : (w(), C("h5", gt, y(r(_).title), 1))], !0), Ct]), s("div", kt, [I.value.value === "mobile" || S.value ? (w(), C("div", bt, [s("div", St, [s("p", null, y(d.$t("tipVerifyIdentityForFundSafety")), 1), s("span", null, y(d.$t("tip6digitVeriCode", [`${r(Le)(Q.value)} 6`])), 1)]), l(K, {
                    center: "",
                    type: "digit",
                    placeholder: d.$t("phEnterVerificationCode"),
                    maxlength: 6,
                    modelValue: r(t),
                    "onUpdate:modelValue": p[1] || (p[1] = g => j(t) ? t.value = g : null)
                }, {
                    button: k(() => [l(P, {
                        class: "security-code",
                        disabled: r(z),
                        size: "small",
                        type: "primary",
                        onClick: p[0] || (p[0] = g => r(m)(Q.value))
                    }, {
                        default: k(() => [B(y(r(z) ? `${r(F)}S` : d.$t("send")), 1)]),
                        _: 1
                    }, 8, ["disabled"])]),
                    _: 1
                }, 8, ["placeholder", "modelValue"])])) : D("v-if", !0), I.value.value === "email" ? (w(), C("div", $t, [s("div", It, [s("p", null, y(d.$t("tipVerifyIdentityForFundSafety")), 1), s("span", null, y(d.$t("tipemaildigitVeriCode", [r(Ee)(((te = (ee = r(A)) == null ? void 0 : ee.verifyMethods) == null ? void 0 : te.email) || "")])), 1)]), l(K, {
                    center: "",
                    type: "digit",
                    maxlength: 6,
                    modelValue: r(t),
                    "onUpdate:modelValue": p[3] || (p[3] = g => j(t) ? t.value = g : null),
                    placeholder: d.$t("phEnterVerificationCode")
                }, {
                    button: k(() => [l(P, {
                        class: "security-code",
                        disabled: r(E),
                        size: "small",
                        type: "primary",
                        onClick: p[2] || (p[2] = g => r(Z)())
                    }, {
                        default: k(() => [B(y(r(E) ? `${r(q)}S` : d.$t("send")), 1)]),
                        _: 1
                    }, 8, ["disabled"])]),
                    _: 1
                }, 8, ["modelValue", "placeholder"])])) : D("v-if", !0), I.value.value === "google" ? (w(), C("div", xt, [s("div", Bt, [s("p", null, y(d.$t("openauthenticator")), 1), s("p", null, y(d.$t("verificationcodegoogle")), 1)]), l(K, {
                    center: "",
                    clearable: "",
                    maxlength: 6,
                    modelValue: r(t),
                    "onUpdate:modelValue": p[4] || (p[4] = g => j(t) ? t.value = g : null),
                    type: "number",
                    placeholder: d.$t("PgoogleVerification")
                }, null, 8, ["modelValue", "placeholder"])])) : D("v-if", !0), I.value.value === "pwd" ? (w(), C("div", Ot, [l(Ge, {
                    value: r(t),
                    "onUpdate:value": p[5] || (p[5] = g => j(t) ? t.value = g : null),
                    label: d.$t("withdrawDialogDesc2"),
                    maxlength: 32
                }, null, 8, ["value", "label"]), s("div", Vt, [r(x) ? (w(), C("p", {
                    key: 0,
                    onClick: _e
                }, y(d.$t("withdrawDialogDesc4")), 1)) : (w(), C("p", Dt)), s("div", {
                    onClick: X
                }, y(d.$t("withdrawDialogDesc5")), 1)])])) : D("v-if", !0), s("div", Mt, [S.value ? D("v-if", !0) : U((w(), ne(P, {
                    key: 0,
                    onClick: r(V)
                }, {
                    default: k(() => [B(y(d.$t("otherverificationmethods")), 1)]),
                    _: 1
                }, 8, ["onClick"])), [
                    [L, I.value.value !== "pwd"]
                ]), l(P, {
                    type: "primary",
                    disabled: b.value,
                    onClick: ge
                }, {
                    default: k(() => [B(y(d.$t("confirmAdd")), 1)]),
                    _: 1
                }, 8, ["disabled"]), S.value ? (w(), ne(P, {
                    key: 1,
                    onClick: X
                }, {
                    default: k(() => [B(y(d.$t("contactServicer")), 1)]),
                    _: 1
                })) : D("v-if", !0)])]), s("div", At, [oe(d.$slots, "footer", {}, () => [s("span", {
                    onClick: p[6] || (p[6] = (...g) => r(i) && r(i)(...g))
                }, zt)], !0)]), l(ke, {
                    teleport: "body",
                    show: r(v),
                    "onUpdate:show": p[8] || (p[8] = g => j(v) ? v.value = g : null),
                    "lazy-render": !0,
                    round: "",
                    position: "bottom"
                }, {
                    default: k(() => [l(Ce, {
                        onCancel: p[7] || (p[7] = g => v.value = !1),
                        onConfirm: r($),
                        columns: r(f)
                    }, null, 8, ["onConfirm", "columns"])]),
                    _: 1
                }, 8, ["show"])])
            }
        }
    });
const jt = pe(Pt, [
        ["__scopeId", "data-v-954f2fdf"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar031-india-in999/src/components/SecurityDialog/index.vue"]
    ]),
    Et = T({
        __name: "index",
        setup(e) {
            const o = T({
                    render() {
                        return l("div", null, [B("Test")])
                    }
                }),
                {
                    open: n
                } = Xe({
                    title: "未绑定银行卡或支付宝地址",
                    desc: "您还未绑定银行卡或支付宝地址，请先绑定",
                    confirmText: "绑定"
                }),
                a = ie({
                    phone: "111111",
                    code: ""
                }),
                t = O(),
                c = ce();
            ht({
                content: () => l(jt, {
                    showType: "phone",
                    code: a.code,
                    "onUpdate:code": v => a.code = v,
                    phone: a.phone,
                    "onUpdate:phone": v => a.phone = v
                }, null)
            });
            const h = () => {
                    n()
                },
                i = v => {
                    c.push({
                        path: v
                    })
                },
                u = [{
                    path: "/home"
                }, {
                    path: "/public3"
                }, {
                    path: "/blackGold"
                }, {
                    path: "/blackGold"
                }, {
                    path: "/blueHome"
                }, {
                    path: "/damanHome"
                }, {
                    path: "/goGame"
                }, {
                    path: "/orangeHome"
                }, {
                    path: "/red92Home"
                }, {
                    path: "/whiteGold2Home"
                }, {
                    path: "/whiteGoldBigMumbaiHome"
                }, {
                    path: "/whiteGoldHome"
                }],
                f = async v => {
                    const _ = new FormData;
                    _.append("files", v.file), await Fe(Re(_))
                };
            return (v, _) => {
                const V = M("van-button"),
                    $ = M("van-uploader"),
                    A = M("van-space");
                return w(), C("div", null, [l(r(o)), l(V, {
                    onClick: h
                }, {
                    default: k(() => [B("测试")]),
                    _: 1
                }), l($, {
                    modelValue: t.value,
                    "onUpdate:modelValue": _[0] || (_[0] = x => t.value = x),
                    accept: "image/*",
                    "max-count": 1,
                    "after-read": f
                }, null, 8, ["modelValue"]), l(A, {
                    wrap: ""
                }, {
                    default: k(() => [(w(), C(ue, null, Te(u, x => l(V, {
                        onClick: () => i(x.path)
                    }, {
                        default: k(() => [B(y(x.path), 1)]),
                        _: 2
                    }, 1032, ["onClick"])), 64))]),
                    _: 1
                })])
            }
        }
    });
export {
    jt as S, Et as _, ht as a, lt as u
};