import {G as R, r as w, z as N, B as x, A as ee, C as E, au as ne, av as H, N as f, Q as a, J as e, P as o, F as te, R as D, H as A, aA as j, I as h, O as v, ao as _, ax as M, K as O, aC as se, aD as oe, q as ae, u as q, M as z, aB as ie, a5 as le, ay as U} from "./common.modules-5cfe2cf4.js";
import {U as re} from "./page-main-SettingCenter-968f6a13.js";
import {a3 as G, A as ce, bE as ue, bF as de, _ as B, n as ve, bc as K, y as _e, a5 as me, a9 as pe, c as F, G as V, cC as ge, cD as J, cu as fe, a1 as he, cE as Se} from "./page-activity-ActivityDetail-a58ec568.js";
import {D as Q} from "./page-activity-Championship-4e6c587b.js";
import {d as ye, V as be} from "./page-login-index.vue_vue_type_script_setup_true_lang.ts-f69c0404.js";
const we = {
    class: "footer"
}
  , Ce = R({
    __name: "ActiveVerify",
    props: {
        isVisible: {
            type: Boolean,
            default: w(!1)
        }
    },
    emits: ["update:isVisible", "onConfirm", "onCancel"],
    setup(k, {emit: l}) {
        const C = k
          , {t: m} = N()
          , d = w(!0)
          , u = w(!1)
          , p = G()
          , 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
        }
          , b = 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 E( () => {
            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: H( () => [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: b
            }, null, 8, ["show-validate", "number", "number-type"]), a(be, {
                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: H( () => [e("div", we, [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/AR048-Pages-india-91club/src/components/common/ActiveVerify.vue"]])
  , $e = k => (se("data-v-7d799898"),
k = k(),
oe(),
k)
  , Ie = {
    class: "totalSavings__container"
}
  , Pe = {
    class: "totalSavings__container-header"
}
  , Te = {
    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 = D()
          , m = K()
          , d = _e()
          , {t: u} = N()
          , p = w(!1)
          , {goWallet: S, isArWalletActive: r, goActive: y, getInfo: b, activeBind: I} = me()
          , s = x( () => d.getIsOpenInvitedWheel)
          , t = w(!1)
          , n = async $ => {
            $ == "Recharge" || $ == "Withdraw" ? await l($) : C.push({
                name: $
            })
        }
          , g = $ => {
            console.log("进来数据", $),
            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: P, memberId: W, merchantCode: T, timestamp: Z} = (i == null ? void 0 : i.data) || {};
                window.location.href = P + "&memberId=" + W + "&merchantCode=" + T + "&timestamp=" + Z
            }
        }
          , L = async () => {
            if (t.value)
                await b();
            else
                return;
            r.value ? S("main") : c()
        }
          , X = x( () => m.getAmount);
        async function Y() {
            d.getIsSwitchSaasBalance ? m.GetARGameAndPlatWallets(!1) : m.resetData(!1, !0)
        }
        return E( () => {
            d.getIsSwitchSaasBalance && m.GetARGameAndPlatWallets(),
            t.value = sessionStorage.getItem("ar_pay") === "1"
        }
        ),
        ($, i) => {
            const P = A("svg-icon")
              , W = j("throttle-click");
            return f(),
            h(O, null, [e("div", Ie, [e("div", Pe, [e("div", Te, [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(F)(X.value)), 1), M(a(P, {
                name: "refreshBalance"
            }, null, 512), [[W, {
                handler: Y,
                wait: 3e3
            }]])])]), t.value && s.value ? (f(),
            h("div", {
                key: 0,
                class: "comminWallet",
                onClick: i[0] || (i[0] = T => n("wallet"))
            }, o(v(u)("comminWallet")), 1)) : _("v-if", !0)])]), e("div", Ve, [t.value ? (f(),
            h("div", {
                key: 0,
                onClick: L,
                class: "totalSavings__container-content-item"
            }, [e("div", null, [a(P, {
                name: "wallets"
            }), e("span", null, "AR" + o(v(u)("wallet")), 1)])])) : (f(),
            h("div", {
                key: 1,
                onClick: i[1] || (i[1] = T => n("wallet")),
                class: "totalSavings__container-content-item"
            }, [e("div", null, [a(P, {
                name: "wallets"
            }), e("span", null, o(v(u)("wallet")), 1)])])), e("div", {
                onClick: i[2] || (i[2] = T => n("Recharge")),
                class: "totalSavings__container-content-item"
            }, [e("div", null, [a(P, {
                name: "rechargeIcon"
            }), e("span", null, o(v(u)("recharge")), 1)])]), e("div", {
                onClick: i[3] || (i[3] = T => n("Withdraw")),
                class: "totalSavings__container-content-item"
            }, [e("div", null, [a(P, {
                name: "widthdrawBlue"
            }), e("span", null, o(v(u)("withdraw")), 1)])]), e("div", {
                onClick: i[4] || (i[4] = T => n("vip")),
                class: "totalSavings__container-content-item"
            }, [e("div", null, [a(P, {
                name: "VipIcon"
            }), Be])])])]), _("激活绑定验证"), a(ke, {
                isVisible: p.value,
                onOnConfirm: g,
                onOnCancel: i[5] || (i[5] = T => p.value = !1)
            }, null, 8, ["isVisible"])], 64)
        }
    }
});
const Ne = B(Me, [["__scopeId", "data-v-7d799898"], ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/components/Main/TotalSavings/index.vue"]])
  , De = {
    class: "financialServices__container"
}
  , Oe = {
    key: 0,
    class: "financialServices__container-footer"
}
  , Le = {
    class: "financialServices__container-footer-des"
}
  , We = {
    class: "financialServices__container-footer-des"
}
  , Ue = {
    class: "financialServices__container-box"
}
  , Fe = {
    class: "financialServices__container-box-para"
}
  , Ge = {
    class: "financialServices__container-box-para"
}
  , He = {
    class: "financialServices__container-box-para"
}
  , Ee = {
    class: "financialServices__container-box-para"
}
  , je = R({
    __name: "index",
    props: {
        userInfo: {
            type: null,
            required: !0
        }
    },
    setup(k) {
        const l = J()
          , m = V().getUserInfo
          , d = D()
          , u = w(0)
          , p = w(0)
          , S = w(0)
          , r = w("0")
          , y = w(!1)
          , b = 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", De, [r.value == "1" || v(m).isOpenPointMall == 1 ? (f(),
            h("div", Oe, [_(" 保险箱 "), r.value == "1" ? (f(),
            h("div", {
                key: 0,
                onClick: t[0] || (t[0] = c => b("StrongBox"))
            }, [a(n, {
                name: "vault"
            }), e("div", null, [e("div", null, [e("span", null, o(s.$t("vault")), 1), e("div", Le, [a(n, {
                name: "vaultSmallIcon"
            }), e("h4", null, o(v(F)(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 => b("PointMall"))
            }, [a(n, {
                name: "points"
            }), e("div", null, [e("div", null, [e("span", null, o(s.$t("points")), 1), e("div", We, [a(n, {
                name: "pointsSmallIncon"
            }), e("h4", null, o(v(F)(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 => b("BetRecords"))
            }, [a(n, {
                name: "betHistory"
            }), e("div", Fe, [e("h3", null, o(s.$t("bet")), 1), e("span", null, o(s.$t("mybetRecords")), 1)])]), e("div", {
                onClick: t[3] || (t[3] = c => b("TransAction"))
            }, [a(n, {
                name: "tradeHistory"
            }), e("div", Ge, [e("h3", null, o(s.$t("trade")), 1), e("span", null, o(s.$t("tradeRecords")), 1)])]), e("div", {
                onClick: t[4] || (t[4] = c => b("RechargeHistory"))
            }, [a(n, {
                name: "rechargeHistory"
            }), e("div", He, [e("h3", null, o(s.$t("recharge")), 1), e("span", null, o(s.$t("myRchargeHistory")), 1)])]), e("div", {
                onClick: t[5] || (t[5] = c => b("WithdrawHistory"))
            }, [a(n, {
                name: "myWithdrawHistory"
            }), e("div", Ee, [e("h3", null, o(s.$t("withdraw")), 1), e("span", null, o(s.$t("myWithdrawHistory")), 1)])])])])
        }
    }
});
const qe = B(je, [["__scopeId", "data-v-acd6d46f"], ["__file", "/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/components/Main/FinancialServices/index.vue"]])
  , ze = {
    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 = D()
          , u = V()
          , p = K()
          , S = G()
          , 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 = w(!1);
        function b(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", ze, [e("div", Ke, [e("h1", null, o(t.$t("serviceCenter")), 1), e("div", Je, [(f(),
            h(O, null, z(r, c => e("div", {
                key: c.title,
                onClick: L => b(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/AR048-Pages-india-91club/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 = D()
          , m = V()
          , d = x( () => m.userInfo);
        let u = le("permission", null);
        u && (u = JSON.parse(u.value));
        const p = x( () => d.value.isOpenChampion)
          , S = w([{
            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, b) => {
            const I = A("svg-icon")
              , s = A("van-icon")
              , t = j("haspermission");
            return f(),
            h("div", en, [e("div", nn, [(f(!0),
            h(O, null, z(S.value, n => {
                var g, c;
                return M((f(),
                h("div", {
                    key: n.title,
                    onClick: L => 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/AR048-Pages-india-91club/src/components/Main/SettingPanel/index.vue"]])
  , rn = {
    class: "userinfo-content"
}
  , mn = R({
    __name: "index",
    setup(k) {
        const l = J()
          , C = V();
        G().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(O, 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 _};
