import {
    G as R,
    r as b,
    z as N,
    B as x,
    A as ee,
    C as j,
    at as ne,
    au as F,
    N as f,
    Q as a,
    J as e,
    P as o,
    F as te,
    R as O,
    H as A,
    az as z,
    I as h,
    O as v,
    an as _,
    aw as M,
    K as L,
    aB as se,
    aC as oe,
    t as ae,
    u as q,
    M as E,
    aA as ie,
    a6 as le,
    ax as U
} from "./common.modules-af1f85b9.js";
import {
    U as re
} from "./page-main-SettingCenter-d2500151.js";
import {
    a3 as H,
    A as ce,
    bg as ue,
    bh as de,
    _ as B,
    n as ve,
    bf as K,
    y as _e,
    a5 as me,
    a9 as pe,
    c as G,
    G as V,
    ce as ge,
    cf as J,
    c6 as fe,
    a1 as he,
    cg as Se
} from "./page-activity-ActivityDetail-09e806d3.js";
import {
    D as Q
} from "./page-activity-Championship-a1efdd83.js";
import {
    d as ye,
    V as we
} from "./page-login-index.vue_vue_type_script_setup_true_lang.ts-27051768.js";
const be = {
        class: "footer"
    },
    Ce = R({
        __name: "ActiveVerify",
        props: {
            isVisible: {
                type: Boolean,
                default: b(!1)
            }
        },
        emits: ["update:isVisible", "onConfirm", "onCancel"],
        setup(k, {
            emit: l
        }) {
            const C = k,
                {
                    t: m
                } = N(),
                d = b(!0),
                u = b(!1),
                p = H(),
                S = x({
                    get() {
                        return C.isVisible || !1
                    },
                    set(n) {
                        l("update:isVisible", n)
                    }
                }),
                r = ee({
                    PhoneNumber: "",
                    numberType: localStorage.getItem("numberType"),
                    smsCode: ""
                }),
                y = n => {
                    r.numberType = n
                },
                w = n => {
                    r.PhoneNumber = n
                },
                I = () => {
                    const n = {
                        phone: r.numberType + r.PhoneNumber,
                        smsvCode: r.smsCode
                    };
                    l("onConfirm", n), p.setCountDown(0)
                },
                s = () => {
                    r.PhoneNumber = "", r.smsCode = "", p.setCountDown(0), l("onCancel")
                },
                t = async () => await ce(ue({
                    phone: r.numberType + r.PhoneNumber,
                    codeType: de.bindEmailMmobile
                })) ? te(m("sendSuccess")) : -1;
            return j(() => {
                p.setCountDown(0)
            }), (n, g) => (f(), ne(Q, {
                class: "newDialog",
                show: S.value,
                "onUpdate:show": g[2] || (g[2] = c => S.value = c),
                isShowHeader: !1,
                title: n.$t("bindPhone"),
                showCancelBtn: !0,
                "show-footer": !0
            }, {
                content: F(() => [a(ye, {
                    "show-validate": u.value,
                    "onUpdate:showValidate": g[0] || (g[0] = c => u.value = c),
                    typeP: "bindPhone",
                    number: r.PhoneNumber,
                    "number-type": r.numberType,
                    onChangeT: y,
                    onChangeN: w
                }, null, 8, ["show-validate", "number", "number-type"]), a(we, {
                    isTip: !1,
                    value: r.smsCode,
                    "onUpdate:value": g[1] || (g[1] = c => r.smsCode = c),
                    typeP: "bindPhone",
                    isShowVerifyT: d.value,
                    sendFunc: t,
                    number: r.PhoneNumber,
                    numberType: r.numberType
                }, null, 8, ["value", "isShowVerifyT", "number", "numberType"])]),
                footer: F(() => [e("div", be, [e("button", {
                    onClick: I,
                    class: "sure"
                }, o(n.$t("confirm")), 1), e("button", {
                    onClick: s,
                    class: "cancel"
                }, o(n.$t("cancel")), 1)])]),
                _: 1
            }, 8, ["show", "title"]))
        }
    });
const ke = B(Ce, [
        ["__scopeId", "data-v-362d668a"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/common/ActiveVerify.vue"]
    ]),
    $e = k => (se("data-v-7d799898"), k = k(), oe(), k),
    Ie = {
        class: "totalSavings__container"
    },
    Te = {
        class: "totalSavings__container-header"
    },
    Pe = {
        class: "totalSavings__container-header-box ar-1px-b"
    },
    Ae = {
        class: "balance_info"
    },
    Re = {
        class: "totalSavings__container-header__title"
    },
    xe = {
        class: "totalSavings__container-header__subtitle"
    },
    Ve = {
        class: "totalSavings__container-content"
    },
    Be = $e(() => e("span", null, "VIP", -1)),
    Me = R({
        __name: "index",
        props: {
            userInfo: {
                type: null,
                required: !0
            }
        },
        setup(k) {
            const {
                downAppTip: l
            } = ve(), C = O(), m = K(), d = _e(), {
                t: u
            } = N(), p = b(!1), {
                goWallet: S,
                isArWalletActive: r,
                goActive: y,
                getInfo: w,
                activeBind: I
            } = me(), s = x(() => d.getIsOpenInvitedWheel), t = b(!1), n = async $ => {
                $ == "Recharge" || $ == "Withdraw" ? await l($) : C.push({
                    name: $
                })
            }, g = $ => {
                I($, "main"), p.value = !1
            }, c = async () => {
                ae({
                    message: u("loading") + "...",
                    forbidClick: !0
                });
                const $ = {
                        returnUrl: "https://" + window.location.host + "/#/main"
                    },
                    i = await pe($);
                if ((i == null ? void 0 : i.code) === 1) return (i == null ? void 0 : i.msgCode) === 1010 && (p.value = !0), q(i == null ? void 0 : i.msg);
                if ((i == null ? void 0 : i.code) === 0) {
                    const {
                        walletActivationPageUrl: T,
                        memberId: D,
                        merchantCode: P,
                        timestamp: Z
                    } = (i == null ? void 0 : i.data) || {};
                    window.location.href = T + "&memberId=" + D + "&merchantCode=" + P + "&timestamp=" + Z
                }
            }, W = async () => {
                if (t.value) await w();
                else return;
                r.value ? S("main") : c()
            }, X = x(() => m.getAmount);
            async function Y() {
                d.getIsSwitchSaasBalance ? m.GetARGameAndPlatWallets(!1) : m.resetData(!1, !0)
            }
            return j(() => {
                d.getIsSwitchSaasBalance && m.GetARGameAndPlatWallets(), t.value = sessionStorage.getItem("ar_pay") === "1"
            }), ($, i) => {
                const T = A("svg-icon"),
                    D = z("throttle-click");
                return f(), h(L, null, [e("div", Ie, [e("div", Te, [e("div", Pe, [e("div", Ae, [e("div", Re, [e("span", null, o(v(u)("totalBalance")), 1), _(` <img v-lazy="getIcons('main', 'balanceIcon')" alt="" /> `)]), e("p", xe, [e("span", null, o(v(G)(X.value)), 1), M(a(T, {
                    name: "refreshBalance"
                }, null, 512), [
                    [D, {
                        handler: Y,
                        wait: 3e3
                    }]
                ])])]), t.value && s.value ? (f(), h("div", {
                    key: 0,
                    class: "comminWallet",
                    onClick: i[0] || (i[0] = P => n("wallet"))
                }, o(v(u)("comminWallet")), 1)) : _("v-if", !0)])]), e("div", Ve, [t.value ? (f(), h("div", {
                    key: 0,
                    onClick: W,
                    class: "totalSavings__container-content-item"
                }, [e("div", null, [a(T, {
                    name: "wallets"
                }), e("span", null, "AR" + o(v(u)("wallet")), 1)])])) : (f(), h("div", {
                    key: 1,
                    onClick: i[1] || (i[1] = P => n("wallet")),
                    class: "totalSavings__container-content-item"
                }, [e("div", null, [a(T, {
                    name: "wallets"
                }), e("span", null, o(v(u)("wallet")), 1)])])), e("div", {
                    onClick: i[2] || (i[2] = P => n("Recharge")),
                    class: "totalSavings__container-content-item"
                }, [e("div", null, [a(T, {
                    name: "rechargeIcon"
                }), e("span", null, o(v(u)("recharge")), 1)])]), e("div", {
                    onClick: i[3] || (i[3] = P => n("Withdraw")),
                    class: "totalSavings__container-content-item"
                }, [e("div", null, [a(T, {
                    name: "widthdrawBlue"
                }), e("span", null, o(v(u)("withdraw")), 1)])]), e("div", {
                    onClick: i[4] || (i[4] = P => n("vip")),
                    class: "totalSavings__container-content-item"
                }, [e("div", null, [a(T, {
                    name: "VipIcon"
                }), Be])])])]), _("激活绑定验证"), a(ke, {
                    isVisible: p.value,
                    onOnConfirm: g,
                    onOnCancel: i[5] || (i[5] = P => p.value = !1)
                }, null, 8, ["isVisible"])], 64)
            }
        }
    });
const Ne = B(Me, [
        ["__scopeId", "data-v-7d799898"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/Main/TotalSavings/index.vue"]
    ]),
    Oe = {
        class: "financialServices__container"
    },
    Le = {
        key: 0,
        class: "financialServices__container-footer"
    },
    We = {
        class: "financialServices__container-footer-des"
    },
    De = {
        class: "financialServices__container-footer-des"
    },
    Ue = {
        class: "financialServices__container-box"
    },
    Ge = {
        class: "financialServices__container-box-para"
    },
    He = {
        class: "financialServices__container-box-para"
    },
    Fe = {
        class: "financialServices__container-box-para"
    },
    je = {
        class: "financialServices__container-box-para"
    },
    ze = R({
        __name: "index",
        props: {
            userInfo: {
                type: null,
                required: !0
            }
        },
        setup(k) {
            const l = J(),
                m = V().getUserInfo,
                d = O(),
                u = b(0),
                p = b(0),
                S = b(0),
                r = b("0"),
                y = b(!1),
                w = s => {
                    s === "RechargeHistory" && l.emit("changeKeepAliveKey"), d.push({
                        name: s
                    })
                };
            return (() => {
                ge().then(s => {
                    r.value = s.state, u.value = s.dayShareRate, p.value = s.shareTime, S.value = s.safeAmount, y.value = s.isOpenNewSetting === "1"
                })
            })(), (s, t) => {
                const n = A("svg-icon"),
                    g = A("van-icon");
                return f(), h("div", Oe, [r.value == "1" || v(m).isOpenPointMall == 1 ? (f(), h("div", Le, [_(" 保险箱 "), r.value == "1" ? (f(), h("div", {
                    key: 0,
                    onClick: t[0] || (t[0] = c => w("StrongBox"))
                }, [a(n, {
                    name: "vault"
                }), e("div", null, [e("div", null, [e("span", null, o(s.$t("vault")), 1), e("div", We, [a(n, {
                    name: "vaultSmallIcon"
                }), e("h4", null, o(v(G)(S.value)), 1), a(g, {
                    name: "arrow",
                    color: "var(--text_color_L2)"
                })])]), _(" <span>{{ $t('dailyRate') + dayShareRate }}%，{{ shareTime + $t('minCalculateIncome') }}</span> "), e("span", null, o(y.value ? s.$t("dailyRateReturn2", [v(fe)(u.value / 48, 3, 1), p.value]) : s.$t("dailyRateReturn", [u.value, p.value])), 1)])])) : _("v-if", !0), _(" 积分商城 "), v(m).isOpenPointMall == 1 ? (f(), h("div", {
                    key: 1,
                    onClick: t[1] || (t[1] = c => w("PointMall"))
                }, [a(n, {
                    name: "points"
                }), e("div", null, [e("div", null, [e("span", null, o(s.$t("points")), 1), e("div", De, [a(n, {
                    name: "pointsSmallIncon"
                }), e("h4", null, o(v(G)(v(m).integral, " ")), 1), a(g, {
                    name: "arrow",
                    color: "var(--text_color_L2)"
                })])]), e("span", null, o(s.$t("vaultdesc2")), 1)])])) : _("v-if", !0)])) : _("v-if", !0), _(" 下注-交易-充值-提现 "), e("div", Ue, [e("div", {
                    onClick: t[2] || (t[2] = c => w("BetRecords"))
                }, [a(n, {
                    name: "betHistory"
                }), e("div", Ge, [e("h3", null, o(s.$t("bet")), 1), e("span", null, o(s.$t("mybetRecords")), 1)])]), e("div", {
                    onClick: t[3] || (t[3] = c => w("TransAction"))
                }, [a(n, {
                    name: "tradeHistory"
                }), e("div", He, [e("h3", null, o(s.$t("trade")), 1), e("span", null, o(s.$t("tradeRecords")), 1)])]), e("div", {
                    onClick: t[4] || (t[4] = c => w("RechargeHistory"))
                }, [a(n, {
                    name: "rechargeHistory"
                }), e("div", Fe, [e("h3", null, o(s.$t("recharge")), 1), e("span", null, o(s.$t("myRchargeHistory")), 1)])]), e("div", {
                    onClick: t[5] || (t[5] = c => w("WithdrawHistory"))
                }, [a(n, {
                    name: "myWithdrawHistory"
                }), e("div", je, [e("h3", null, o(s.$t("withdraw")), 1), e("span", null, o(s.$t("myWithdrawHistory")), 1)])])])])
            }
        }
    });
const qe = B(ze, [
        ["__scopeId", "data-v-acd6d46f"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/Main/FinancialServices/index.vue"]
    ]),
    Ee = {
        class: "serviceCenter-wrap"
    },
    Ke = {
        class: "serviceCenter__container"
    },
    Je = {
        class: "serviceCenter__container-items"
    },
    Qe = ["onClick"],
    Xe = {
        class: "serviceCenter-wrap-header"
    },
    Ye = R({
        __name: "index",
        setup(k) {
            const {
                t: l
            } = N(), {
                getSelfCustomerServiceLink: C,
                isCenterServer: m
            } = he({
                ServerType: 2
            }), d = O(), u = V(), p = K(), S = H(), r = [{
                name: "settingCenter",
                title: l("setting"),
                link: "SettingCenter"
            }, {
                name: "feedback",
                title: l("feedback"),
                link: "Feedback"
            }, {
                name: "notificationCenter",
                title: l("noti"),
                link: "Notification"
            }, {
                name: m.value ? "serverTicket" : "server",
                title: m.value ? l("serverTicket") : l("wholeTimeService"),
                link: "CustomerService"
            }, {
                name: "guide",
                title: l("guide"),
                link: "Guide"
            }, {
                name: "about",
                title: l("about"),
                link: "About"
            }], y = b(!1);

            function w(t) {
                if (t == "CustomerService") return C();
                d.push({
                    name: t
                })
            }

            function I() {
                y.value = !0
            }

            function s() {
                Se({}).then(async t => {
                    u.token = "", y.value = !1, p.setTimestampLast(0), localStorage.removeItem("isOpenFollow"), S.userForm.vCode = "", S.loginout()
                }).catch(t => {
                    q({
                        message: t.msg,
                        wordBreak: "break-word"
                    })
                }).finally(() => {
                    localStorage.setItem("isToLogin", "1"), V().setToken(""), d.push({
                        name: "login"
                    })
                })
            }
            return (t, n) => {
                const g = A("svg-icon");
                return f(), h("div", Ee, [e("div", Ke, [e("h1", null, o(t.$t("serviceCenter")), 1), e("div", Je, [(f(), h(L, null, E(r, c => e("div", {
                    key: c.title,
                    onClick: W => w(c.link),
                    class: "serviceCenter__container-items__item"
                }, [a(g, {
                    name: `${c.name}`
                }, null, 8, ["name"]), _(" <img v-lazy=\"getIcons('main', `${item.icon}`)\" /> "), e("span", null, o(c.title), 1)], 8, Qe)), 64))])]), e("div", Xe, [e("button", {
                    onClick: I
                }, [a(g, {
                    name: "logout"
                }), _(` <img v-lazy="getIcons('home', 'logout')" /> `), ie(" " + o(t.$t("logout")), 1)])]), _("退出登录弹窗"), a(Q, {
                    show: y.value,
                    "onUpdate:show": n[0] || (n[0] = c => y.value = c),
                    onConfirm: s,
                    confirmText: v(l)("confirm"),
                    cancelText: v(l)("cancel"),
                    "show-cancel-btn": !0,
                    title: t.$t("tipLogout1")
                }, null, 8, ["show", "confirmText", "cancelText", "title"])])
            }
        }
    });
const Ze = B(Ye, [
        ["__scopeId", "data-v-159bf81f"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/Main/ServiceCenter/index.vue"]
    ]),
    en = {
        class: "settingPanel__container"
    },
    nn = {
        class: "settingPanel__container-items"
    },
    tn = ["onClick"],
    sn = {
        class: "settingPanel__container-items__title"
    },
    on = {
        class: "settingPanel__container-items-right"
    },
    an = R({
        __name: "index",
        setup(k) {
            const {
                t: l
            } = N(), C = O(), m = V(), d = x(() => m.userInfo);
            let u = le("permission", null);
            u && (u = JSON.parse(u.value));
            const p = x(() => d.value.isOpenChampion),
                S = b([{
                    name: "notification",
                    title: l("notifications"),
                    link: "Messages",
                    isopen: "1"
                }, {
                    name: "gifts",
                    title: l("giftExchange"),
                    link: "RedeemGift",
                    isopen: "1"
                }, {
                    name: "tournament",
                    title: l("cpsTip6"),
                    link: "MyCps",
                    isopen: p
                }, {
                    name: "productCode",
                    title: l("productOrder"),
                    link: "PointMall-MyOrders",
                    isopen: d.value.isOpenPointMall
                }, {
                    name: "myDraw",
                    title: l("MyLottery"),
                    link: "PointMall-MyLottery",
                    isopen: d.value.isOpenPointMall
                }, {
                    name: "statsIcon",
                    title: l("gameStatistics"),
                    link: "GameStats",
                    isopen: "1",
                    haspermission: 17
                }, {
                    name: "language",
                    title: l("switchLanguages"),
                    link: "Language",
                    isopen: "1"
                }]);

            function r(y) {
                C.push({
                    name: y.link
                })
            }
            return (y, w) => {
                const I = A("svg-icon"),
                    s = A("van-icon"),
                    t = z("haspermission");
                return f(), h("div", en, [e("div", nn, [(f(!0), h(L, null, E(S.value, n => {
                    var g, c;
                    return M((f(), h("div", {
                        key: n.title,
                        onClick: W => r(n),
                        class: "settingPanel__container-items__item ar-1px-b"
                    }, [e("div", sn, [a(I, {
                        name: `${n.name}`
                    }, null, 8, ["name"]), _(" <img :src=\"getIcons('main', `${item.icon}`)\" /> "), e("span", null, o(n.title), 1)]), e("div", on, [M(e("h5", null, o((g = d.value) == null ? void 0 : g.unRead), 513), [
                        [U, n.name === "notification" && ((c = d.value) == null ? void 0 : c.unRead) > 0]
                    ]), M(e("span", null, o(v(m).getLanguageName), 513), [
                        [U, n.name === "language"]
                    ]), a(s, {
                        name: "arrow",
                        color: "#666"
                    })])], 8, tn)), [
                        [U, n.isopen == "1"],
                        [t, n.haspermission]
                    ])
                }), 128))])])
            }
        }
    });
const ln = B(an, [
        ["__scopeId", "data-v-a30d19b1"],
        ["__file", "/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/components/Main/SettingPanel/index.vue"]
    ]),
    rn = {
        class: "userinfo-content"
    },
    mn = R({
        __name: "index",
        setup(k) {
            const l = J(),
                C = V();
            H().getUserInfo({
                signature: C.token
            });
            const d = C.getUserInfo;
            return localStorage.getItem("needUpd") === "1" && (localStorage.setItem("isReload", "1"), localStorage.setItem("needUpd", "2"), l.emit("keyChange")), (p, S) => (f(), h(L, null, [_(" 头部 "), a(re, {
                userInfo: v(d)
            }, null, 8, ["userInfo"]), e("div", rn, [_(" 总余额及钱包 "), a(Ne, {
                userInfo: v(d)
            }, null, 8, ["userInfo"]), _(" 保险箱 积分商城 下注-交易-充值-提现 "), a(qe, {
                userInfo: v(d)
            }, null, 8, ["userInfo"]), _(" 通知 邀请奖励 礼物兑换 商品订单 游戏统计 语言变更 "), a(ln), _(" 服务中心 "), a(Ze)])], 64))
        }
    });
export {
    ke as A, mn as _
};