import {G as x, B as se, r as f, I as l, J as e, P as n, aB as V, K as S, M as E, ao as P, Q as y, aC as be, aD as Ce, N as a, ap as I, z as ue, C as oe, H as Y, V as ve, $ as pe, aA as Ke, av as W, O as X, Z as De, ax as le, p as ke, u as qe, ay as me, au as ne, aY as Le, W as Te, a$ as ye, R as je, A as Me, T as We, E as Ee, bm as He} from "./common.modules-f9fa5dc7.js";
import {r as ze, G as Ve, R as Fe, W as Qe, a as Xe} from "./audio-eb7fb307.js";
import {bP as we, _ as ee, c as $e, A as ie, eY as Ue, eZ as Ze, bY as _e, e_ as he, y as Ye, e$ as Je, f0 as xe, f1 as et, G as tt, eU as st, f2 as nt} from "./page-activity-ActivityDetail-0d51a056.js";
import {E as Be} from "./page-activity-Bonus-f5229d51.js";
import {N as at} from "./page-home-other-6e2f6e99.js";
import {M as ot} from "./MyGameRecord-550f4194.js";
import {C as lt} from "./page-saasLottery-D5-6db471d0.js";
import {D as it} from "./page-activity-Championship-a046222e.js";
import "./page-turntable-assets-d6267459.js";
import "./native/index-eb46cb93.js";
import "./en-0806f032.js";
import "./MayrecordList-54929218.js";
const Oe = R => (be("data-v-75b35bf5"),
R = R(),
Ce(),
R)
  , ut = {
    class: "K3TL__C"
}
  , ct = {
    class: "K3TL__C-l1"
}
  , rt = {
    class: "left"
}
  , dt = Oe( () => e("svg", {
    xmlns: "http://www.w3.org/2000/svg",
    width: "33",
    height: "32",
    viewBox: "0 0 33 32",
    fill: "none"
}, [e("path", {
    d: "M9.0484 25.8284L9.04089 25.8359L9.03366 25.8437C8.47797 26.4402 7.97942 26.8014 7.56631 26.9797C7.15908 27.1556 6.87147 27.141 6.67169 27.055C6.46753 26.967 6.24252 26.7559 6.06263 26.3149C5.88195 25.8718 5.76602 25.2377 5.76602 24.3993V9.38602C5.76602 6.69019 6.09509 5.23943 6.86083 4.42092C7.61326 3.61665 8.94055 3.26602 11.4593 3.26602H21.5393C24.0584 3.26602 25.3852 3.61676 26.1358 4.42054C26.8997 5.23844 27.226 6.68864 27.2193 9.38453V9.38602V24.386C27.2193 25.2248 27.1041 25.8592 26.9242 26.3024C26.7451 26.7438 26.5211 26.9543 26.3182 27.0418C26.1198 27.1275 25.8328 27.1424 25.4244 26.9663C25.0105 26.7878 24.5102 26.4264 23.9512 25.8299C23.2918 25.1224 22.4328 24.7733 21.5701 24.8202C20.7074 24.8672 19.8916 25.3075 19.3127 26.0793L19.3123 26.0799L17.9676 27.8772C17.9673 27.8776 17.967 27.878 17.9667 27.8785C17.5231 28.4638 16.9844 28.7094 16.4927 28.7094C16.001 28.7094 15.4623 28.4638 15.0187 27.8785C15.0184 27.878 15.0181 27.8776 15.0177 27.8772L13.6733 26.0802C13.6732 26.0801 13.6732 26.08 13.6731 26.0799C12.5033 24.515 10.4028 24.3993 9.05577 25.8211L9.0484 25.8284ZM8.93935 14.666C8.93935 15.7307 9.80798 16.5993 10.8727 16.5993C11.9374 16.5993 12.806 15.7307 12.806 14.666C12.806 13.6013 11.9374 12.7327 10.8727 12.7327C9.80798 12.7327 8.93935 13.6013 8.93935 14.666ZM8.93935 9.33268C8.93935 10.3974 9.80798 11.266 10.8727 11.266C11.9374 11.266 12.806 10.3974 12.806 9.33268C12.806 8.26798 11.9374 7.39935 10.8727 7.39935C9.80798 7.39935 8.93935 8.26798 8.93935 9.33268ZM14.806 16.266H22.1393C23.0174 16.266 23.7393 15.5441 23.7393 14.666C23.7393 13.788 23.0174 13.066 22.1393 13.066H14.806C13.928 13.066 13.206 13.788 13.206 14.666C13.206 15.5441 13.928 16.266 14.806 16.266ZM14.806 10.9327H22.1393C23.0174 10.9327 23.7393 10.2107 23.7393 9.33268C23.7393 8.45465 23.0174 7.73268 22.1393 7.73268H14.806C13.928 7.73268 13.206 8.45465 13.206 9.33268C13.206 10.2107 13.928 10.9327 14.806 10.9327Z",
    stroke: "currentColor",
    "stroke-width": "1.2"
})], -1))
  , pt = {
    class: "K3TL__C-l2"
}
  , mt = {
    class: "K3TL__C-time"
}
  , vt = Oe( () => e("div", {
    notime: ""
}, ":", -1))
  , _t = {
    class: "K3TL__C-l3"
}
  , ht = {
    class: "box"
}
  , ft = x({
    __name: "TimeLeft",
    props: {
        currentInfo: {
            type: Object,
            default: () => ({
                gameNo: "loading",
                currentTime: "",
                beginTime: "",
                passTime: 180,
                time1: 0,
                time2: 0,
                time3: 0,
                time4: 0
            })
        },
        premium: {
            type: String,
            default: "666"
        },
        currentGame: {
            type: Object,
            default: () => ({})
        }
    },
    setup(R) {
        const $ = R
          , s = se( () => [...$.premium])
          , o = f(!1)
          , p = we()
          , b = () => {
            o.value = !0,
            p.getK3Rule($.currentGame.typeID)
        }
        ;
        return (t, u) => (a(),
        l(S, null, [e("div", ut, [e("div", ct, [e("div", rt, [e("div", null, n(t.$t("k3Number")), 1), e("div", {
            class: "K3TL__C-rule",
            onClick: b
        }, [dt, V(" " + n(t.$t("winTrxIndicate")), 1)])]), e("div", null, n(t.$t("k3TimeLeftToBuy")), 1)]), e("div", pt, [e("div", null, n($.currentInfo.gameNo), 1), e("div", mt, [e("div", null, n(R.currentInfo.time1), 1), e("div", null, n(R.currentInfo.time2), 1), vt, e("div", null, n(R.currentInfo.time3), 1), e("div", null, n(R.currentInfo.time4), 1)])]), e("div", _t, [e("div", ht, [(a(!0),
        l(S, null, E(s.value, (d, c) => (a(),
        l("div", {
            key: c,
            class: I(["num" + d])
        }, null, 2))), 128))])])]), P(" 规则弹层 begin"), y(ze, {
            howPlayShow: o.value,
            gamePresentation: R.currentGame.gamePresentation,
            onClose: u[0] || (u[0] = d => o.value = !1)
        }, null, 8, ["howPlayShow", "gamePresentation"])], 64))
    }
});
const gt = ee(ft, [["__scopeId", "data-v-75b35bf5"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/TimeLeft.vue"]])
  , kt = {
    class: "K3B__C-bettingList"
}
  , yt = ["onClick"]
  , bt = {
    key: 1,
    class: ""
}
  , Ct = {
    key: 2,
    class: "K3B__C-odds-rate"
}
  , Lt = {
    key: 3,
    class: "K3B__C-odds-rate"
}
  , Tt = {
    key: 4,
    class: "K3B__C-odds-rate"
}
  , wt = x({
    __name: "Betting1",
    props: {
        OddsList: {
            type: Array,
            required: !0
        },
        betnumList: {
            type: Array,
            required: !0
        }
    },
    emits: ["showP", "upAll"],
    setup(R, {expose: $, emit: s}) {
        const o = R
          , {t: p} = ue()
          , b = f([{
            num: 3,
            odds: 191.16,
            chack: !1
        }, {
            num: 4,
            odds: 63.72,
            chack: !1
        }, {
            num: 5,
            odds: 31.86,
            chack: !1
        }, {
            num: 6,
            odds: 19.11,
            chack: !1
        }, {
            num: 7,
            odds: 12.74,
            chack: !1
        }, {
            num: 8,
            odds: 9.1,
            chack: !1
        }, {
            num: 9,
            odds: 7.64,
            chack: !1
        }, {
            num: 10,
            odds: 7.08,
            chack: !1
        }, {
            num: 11,
            odds: 7.08,
            chack: !1
        }, {
            num: 12,
            odds: 7.64,
            chack: !1
        }, {
            num: 13,
            odds: 9.1,
            chack: !1
        }, {
            num: 14,
            odds: 12.74,
            chack: !1
        }, {
            num: 15,
            odds: 19.11,
            chack: !1
        }, {
            num: 16,
            odds: 31.86,
            chack: !1
        }, {
            num: 17,
            odds: 63.72,
            chack: !1
        }, {
            num: 18,
            odds: 191.16,
            chack: !1
        }, {
            num: "A",
            odds: 2,
            chack: !1
        }, {
            num: "B",
            odds: 2,
            chack: !1
        }, {
            num: "C",
            odds: 2,
            chack: !1
        }, {
            num: "D",
            odds: 2,
            chack: !1
        }])
          , t = C => {
            switch (C) {
            case "A":
                return p("k3Big");
            case "B":
                return p("k3Small");
            case "C":
                return p("k3Odd");
            case "D":
                return p("k3Even");
            default:
                return C
            }
        }
          , u = (C, T) => {
            T < 16 ? b.value[T].chack ? v(C, T) : (o.betnumList.push(C.num),
            b.value[T].chack = !0) : d(C, T),
            o.betnumList.length > 0 ? s("showP", !0) : s("showP", !1),
            s("upAll")
        }
          , d = (C, T) => {
            switch (T) {
            case 16:
                c(C, T, 17);
                break;
            case 17:
                c(C, T, 16);
                break;
            case 18:
                c(C, T, 19);
                break;
            case 19:
                c(C, T, 18);
                break
            }
        }
          , c = (C, T, B) => {
            b.value[B].chack && v(b.value[B], B),
            b.value[T].chack ? v(C, T) : (o.betnumList.push(C.num),
            b.value[T].chack = !0)
        }
          , v = (C, T) => {
            b.value[T].chack = !1;
            let B = o.betnumList.indexOf(C.num);
            B > -1 && o.betnumList.splice(B, 1)
        }
        ;
        return $({
            clearList: () => {
                b.value = b.value.map(C => (C.chack = !1,
                C))
            }
        }),
        (C, T) => (a(),
        l("div", kt, [(a(!0),
        l(S, null, E(b.value, (B, r) => (a(),
        l("div", {
            class: I("num num" + B.num),
            key: r,
            onClick: D => u(B, r)
        }, [r < 16 ? (a(),
        l("div", {
            key: 0,
            class: I(r % 2 == 0 ? "ball rball" : "ball gball")
        }, [e("div", {
            class: I("K3B__C-odds-bet num" + B.num)
        }, n(t(B.num)), 3)], 2)) : (a(),
        l("div", bt, n(t(B.num)), 1)), r < 16 ? (a(),
        l("div", Ct, n(o.OddsList[r] && (o.OddsList[r].playRate || o.OddsList[r].playRate_Original)) + "X ", 1)) : r < 18 ? (a(),
        l("div", Lt, n(o.OddsList[16] && (o.OddsList[16].playRate || o.OddsList[16].playRate_Original)) + "X ", 1)) : (a(),
        l("div", Tt, n(o.OddsList[17] && (o.OddsList[17].playRate || o.OddsList[17].playRate_Original)) + "X ", 1))], 10, yt))), 128))]))
    }
});
const $t = ee(wt, [["__scopeId", "data-v-ed0c8e79"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/Betting1.vue"]])
  , Bt = {
    class: "K3B__C-betting2"
}
  , Ot = {
    class: "K3B__C-betting2-tip1"
}
  , Pt = {
    key: 0
}
  , At = {
    class: "K3B__C-betting2-line1 mb30"
}
  , Rt = ["onClick"]
  , Nt = {
    class: "K3B__C-betting2-tip1"
}
  , It = {
    key: 0
}
  , Gt = {
    class: "K3B__C-betting2-line2"
}
  , St = ["onClick"]
  , Kt = {
    class: ""
}
  , Dt = {
    class: "K3B__C-betting2-line3"
}
  , qt = ["onClick"]
  , jt = {
    class: ""
}
  , Mt = x({
    __name: "Betting2",
    props: {
        OddsList: {
            type: Array,
            required: !0
        },
        numList: {
            type: null,
            required: !0
        },
        betnumList: {
            type: Array,
            required: !0
        },
        numTow: {
            type: Array,
            required: !0
        },
        numOne: {
            type: Array,
            required: !0
        },
        numChack: {
            type: Boolean,
            required: !0
        }
    },
    emits: ["showP", "upAll", "selectNum", "onQuestion"],
    setup(R, {emit: $}) {
        const s = R
          , o = (t, u, d) => {
            let c = t.num
              , v = t.num + "" + t.num;
            if (d == 1)
                if (s.numList[u].chackOne) {
                    s.numList[u].chackOne = !1;
                    let _ = s.numTow.indexOf(v);
                    _ > -1 && s.numTow.splice(_, 1)
                } else {
                    s.numList[u].chackOne = !0,
                    s.numList[u].chackTow = !1;
                    let _ = s.numOne.indexOf(c);
                    _ > -1 && s.numOne.splice(_, 1),
                    s.numTow.push(v)
                }
            else if (s.numList[u].chackTow) {
                s.numList[u].chackTow = !1;
                let _ = s.numOne.indexOf(c);
                _ > -1 && s.numOne.splice(_, 1)
            } else {
                s.numList[u].chackTow = !0,
                s.numList[u].chackOne = !1;
                let _ = s.numTow.indexOf(v);
                _ > -1 && s.numTow.splice(_, 1),
                s.numOne.push(c)
            }
            $("selectNum"),
            s.numTow.length > 0 && s.numOne.length > 0 || s.betnumList.length > 0 ? $("showP", !0) : $("showP", !1)
        }
          , p = (t, u) => {
            let d = t.num + "" + t.num;
            if (s.numList[u].chack) {
                s.numList[u].chack = !1;
                let c = s.betnumList.indexOf(d);
                c > -1 && s.betnumList.splice(c, 1)
            } else
                s.betnumList.push(d),
                s.betnumList.sort(),
                s.numList[u].chack = !0;
            s.numChack || s.betnumList.length > 0 || s.numTow.length > 0 && s.numOne.length > 0 ? $("showP", !0) : $("showP", !1)
        }
          , b = (t, u) => {
            $("onQuestion", t, u)
        }
        ;
        return oe( () => {}
        ),
        (t, u) => {
            const d = Y("van-icon");
            return a(),
            l("div", Bt, [e("div", Ot, [V(n(t.$t("k3bet2Desc1")), 1), t.OddsList[20] ? (a(),
            l("span", Pt, "(" + n(t.OddsList[20].playRate ? t.OddsList[20].playRate : t.OddsList[20].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[0] || (u[0] = c => b(t.$t("k3bet2Desc2"), [5, 5])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", At, [(a(!0),
            l(S, null, E(t.numList, (c, v) => (a(),
            l("div", {
                class: I({
                    active: c.chack
                }),
                key: v,
                onClick: _ => p(c, v)
            }, [e("div", null, n(c.num) + n(c.num), 1)], 10, Rt))), 128))]), e("div", Nt, [V(n(t.$t("k3bet2Desc3")), 1), t.OddsList[19] ? (a(),
            l("span", It, "(" + n(t.OddsList[19].playRate ? t.OddsList[19].playRate : t.OddsList[19].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[1] || (u[1] = c => b(t.$t("k3bet2Desc4"), [6, 1, 6])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", Gt, [(a(!0),
            l(S, null, E(t.numList, (c, v) => (a(),
            l("div", {
                class: I({
                    active: c.chackOne
                }),
                key: v,
                onClick: _ => o(c, v, 1)
            }, [e("div", Kt, n(c.num) + n(c.num), 1)], 10, St))), 128))]), e("div", Dt, [(a(!0),
            l(S, null, E(t.numList, (c, v) => (a(),
            l("div", {
                class: I({
                    active: c.chackTow
                }),
                key: v,
                onClick: _ => o(c, v, 2)
            }, [e("div", jt, n(c.num), 1)], 10, qt))), 128))])])
        }
    }
});
const Wt = ee(Mt, [["__scopeId", "data-v-5c28a69e"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/Betting2.vue"]])
  , Et = {
    class: "K3B__C-betting3"
}
  , Ht = {
    class: "K3B__C-betting3-tip1"
}
  , zt = {
    key: 0
}
  , Vt = {
    class: "K3B__C-betting3-line1 mb30"
}
  , Ft = ["onClick"]
  , Qt = {
    class: "K3B__C-betting3-tip1"
}
  , Xt = {
    key: 0
}
  , Ut = x({
    __name: "Betting3",
    props: {
        OddsList: {
            type: Array,
            required: !0
        },
        numList: {
            type: null,
            required: !0
        },
        betnumList: {
            type: null,
            required: !0
        },
        numChack: {
            type: null,
            required: !0
        },
        numTow: {
            type: null,
            required: !0
        },
        numOne: {
            type: null,
            required: !0
        }
    },
    emits: ["showP", "upAll", "selectNum", "cNumChack", "onQuestion"],
    setup(R, {emit: $}) {
        const s = R
          , o = (t, u) => {
            let d = t.num + "" + t.num + t.num;
            if (s.numList[u].chack) {
                s.numList[u].chack = !1;
                let c = s.betnumList.indexOf(d);
                c > -1 && s.betnumList.splice(c, 1)
            } else
                s.betnumList.push(d),
                s.betnumList.sort(),
                s.numList[u].chack = !0;
            s.numChack || s.betnumList.length > 0 || s.numTow.length > 0 && s.numOne.length > 0 ? $("showP", !0) : $("showP", !1)
        }
          , p = () => {
            $("cNumChack"),
            ve( () => {
                s.numChack || s.betnumList.length > 0 || s.numTow.length > 1 || s.numOne.length > 2 ? $("showP", !0) : $("showP", !1)
            }
            )
        }
          , b = (t, u) => {
            $("onQuestion", t, u)
        }
        ;
        return oe( () => {}
        ),
        (t, u) => {
            const d = Y("van-icon");
            return a(),
            l("div", Et, [e("div", Ht, [V(n(t.$t("k3bet3Desc1")) + " ", 1), t.OddsList[21] ? (a(),
            l("span", zt, "(" + n(t.OddsList[21].playRate ? t.OddsList[21].playRate : t.OddsList[21].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[0] || (u[0] = c => b(t.$t("k3bet3Desc2"), [6, 6, 6])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", Vt, [(a(!0),
            l(S, null, E(t.numList, (c, v) => (a(),
            l("div", {
                class: I({
                    active: c.chack
                }),
                key: v,
                onClick: _ => o(c, v)
            }, [e("div", null, n(c.num) + n(c.num) + n(c.num), 1)], 10, Ft))), 128))]), e("div", Qt, [V(n(t.$t("k3bet3Desc3")) + " ", 1), t.OddsList[22] ? (a(),
            l("span", Xt, "(" + n(t.OddsList[22].playRate ? t.OddsList[22].playRate : t.OddsList[22].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[1] || (u[1] = c => b(t.$t("k3bet3Desc5"), [7, 7, 7])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", {
                class: I(["K3B__C-betting3-btn", {
                    active: s.numChack
                }]),
                onClick: p
            }, n(t.$t("k3bet3Desc4")), 3)])
        }
    }
});
const Zt = ee(Ut, [["__scopeId", "data-v-3deb049d"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/Betting3.vue"]])
  , Yt = {
    class: "K3B__C-betting4"
}
  , Jt = {
    class: "K3B__C-betting4-tip1"
}
  , xt = {
    key: 0
}
  , es = {
    class: "K3B__C-betting4-line1 mb30"
}
  , ts = ["onClick"]
  , ss = {
    class: "K3B__C-betting4-tip1"
}
  , ns = {
    key: 0
}
  , as = {
    class: "K3B__C-betting4-tip1"
}
  , os = {
    key: 0
}
  , ls = {
    class: "K3B__C-betting4-line1"
}
  , is = ["onClick"]
  , us = x({
    __name: "Betting4",
    props: {
        OddsList: {
            type: Array,
            required: !0
        },
        numList: {
            type: null,
            required: !0
        },
        numTow: {
            type: Array,
            required: !0
        },
        numOne: {
            type: Array,
            required: !0
        },
        numChack: {
            type: null,
            required: !0
        },
        betnumList: {
            type: null,
            required: !0
        }
    },
    emits: ["showP", "upAll", "selectNum", "cNumChack", "onQuestion"],
    setup(R, {emit: $}) {
        const s = R
          , o = (t, u, d) => {
            if (d == 1)
                if (s.numList[u].chackOne) {
                    s.numList[u].chackOne = !1;
                    var c = s.numOne.indexOf(t.num);
                    c > -1 && s.numOne.splice(c, 1)
                } else
                    s.numList[u].chackOne = !0,
                    s.numOne.push(t.num),
                    s.numOne.sort();
            else if (s.numList[u].chackTow) {
                s.numList[u].chackTow = !1;
                var u = s.numTow.indexOf(t.num);
                u > -1 && s.numTow.splice(u, 1)
            } else
                s.numList[u].chackTow = !0,
                s.numTow.push(t.num),
                s.numTow.sort();
            s.numChack || s.numTow.length > 1 || s.numOne.length > 2 ? $("showP", !0) : $("showP", !1)
        }
          , p = (t, u) => {
            $("onQuestion", t, u)
        }
          , b = () => {
            $("cNumChack"),
            ve( () => {
                s.numChack || s.betnumList.length > 0 || s.numTow.length > 1 || s.numOne.length > 2 ? $("showP", !0) : $("showP", !1)
            }
            )
        }
        ;
        return oe( () => {}
        ),
        (t, u) => {
            const d = Y("van-icon");
            return a(),
            l("div", Yt, [e("div", Jt, [V(n(t.$t("k3bet4Desc1")) + " ", 1), t.OddsList[23] ? (a(),
            l("span", xt, "(" + n(t.OddsList[23].playRate ? t.OddsList[23].playRate : t.OddsList[23].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[0] || (u[0] = c => p(t.$t("k3bet4Desc2"), [1, 2, 4])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", es, [(a(!0),
            l(S, null, E(t.numList, (c, v) => (a(),
            l("div", {
                class: I({
                    active: c.chackOne
                }),
                key: v,
                onClick: _ => o(c, v, 1)
            }, [e("div", null, n(c.num), 1)], 10, ts))), 128))]), e("div", ss, [V(n(t.$t("k3bet4Desc3")) + " ", 1), t.OddsList[24] ? (a(),
            l("span", ns, "(" + n(t.OddsList[24].playRate ? t.OddsList[24].playRate : t.OddsList[24].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[1] || (u[1] = c => p(t.$t("k3bet4Desc4"), [1, 2, 3])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", {
                class: I(["K3B__C-betting4-btn", {
                    active: t.numChack
                }]),
                onClick: b
            }, n(t.$t("betPopDesc7")), 3), e("div", as, [V(n(t.$t("k3bet4Desc5")) + " ", 1), t.OddsList[18] ? (a(),
            l("span", os, "(" + n(t.OddsList[18].playRate ? t.OddsList[18].playRate : t.OddsList[18].playRate_Original) + ")", 1)) : P("v-if", !0), y(d, {
                onClick: u[2] || (u[2] = c => p(t.$t("k3bet4Desc6"), [1, 2])),
                class: "icon",
                color: "#FA574A",
                size: "16",
                name: "question"
            })]), e("div", ls, [(a(!0),
            l(S, null, E(t.numList, (c, v) => (a(),
            l("div", {
                class: I({
                    active: c.chackTow
                }),
                key: v,
                onClick: _ => o(c, v, 2)
            }, [e("div", null, n(c.num), 1)], 10, is))), 128))])])
        }
    }
});
const cs = ee(us, [["__scopeId", "data-v-bcf2c3f9"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/Betting4.vue"]])
  , rs = R => (be("data-v-5f002ad4"),
R = R(),
Ce(),
R)
  , ds = {
    class: "Betting__Popup-body"
}
  , ps = {
    key: 0,
    class: "Betting__Popup-type1"
}
  , ms = {
    class: "title"
}
  , vs = {
    class: "list"
}
  , _s = {
    key: 0,
    class: "Betting__Popup-type2"
}
  , hs = {
    class: "title"
}
  , fs = {
    class: "list"
}
  , gs = {
    key: 1,
    class: "Betting__Popup-type2"
}
  , ks = {
    class: "title"
}
  , ys = {
    class: "list"
}
  , bs = ["innerHTML"]
  , Cs = {
    key: 0,
    class: "Betting__Popup-type2"
}
  , Ls = {
    class: "title"
}
  , Ts = {
    class: "list"
}
  , ws = {
    key: 1,
    class: "title"
}
  , $s = {
    key: 2,
    class: "Betting__Popup-type2-r"
}
  , Bs = {
    key: 0,
    class: "Betting__Popup-type2"
}
  , Os = {
    class: "title"
}
  , Ps = {
    class: "list"
}
  , As = {
    key: 1,
    class: "title"
}
  , Rs = {
    key: 2,
    class: "Betting__Popup-type2-r"
}
  , Ns = {
    key: 3,
    class: "Betting__Popup-type2"
}
  , Is = {
    class: "title"
}
  , Gs = {
    class: "list"
}
  , Ss = {
    class: "Betting__Popup-body-line"
}
  , Ks = {
    class: "Betting__Popup-body-line-list"
}
  , Ds = ["onClick"]
  , qs = {
    class: "Betting__Popup-body-line"
}
  , js = {
    class: "Betting__Popup-body-line-btnL"
}
  , Ms = {
    class: "Betting__Popup-body-line"
}
  , Ws = rs( () => e("div", null, null, -1))
  , Es = {
    class: "Betting__Popup-body-line-list"
}
  , Hs = ["onClick"]
  , zs = {
    class: "Betting__Popup-body-line"
}
  , Vs = {
    class: "Betting__Popup-foot"
}
  , Fs = {
    class: "Betting__Popup-foot-s bgcolor"
}
  , Qs = {
    class: "Betting__Popup-PreSale"
}
  , Xs = {
    class: "Betting__Popup-PreSale-head"
}
  , Us = {
    class: "Betting__Popup-PreSale-body"
}
  , Zs = {
    class: "Betting__Popup-PreSale-foot"
}
  , Ys = x({
    __name: "BettingPopup",
    props: {
        currentInfo: {
            type: null,
            required: !0
        },
        currentGame: {
            type: null,
            required: !0
        },
        bettingPopupShow: {
            type: null,
            required: !0
        },
        betTypeList: {
            type: null,
            required: !0
        },
        betnumList: {
            type: Array,
            required: !0
        },
        numTow: {
            type: Array,
            required: !0
        },
        numOne: {
            type: Array,
            required: !0
        },
        actNav: {
            type: Number,
            required: !0
        },
        numTowList: {
            type: Array,
            required: !0
        },
        numChack: {
            type: null,
            required: !0
        }
    },
    emits: ["update:bettingPopupShow", "update:selectInfo", "clearBetting", "submitBetting"],
    setup(R, {expose: $, emit: s}) {
        const o = R
          , {t: p} = ue()
          , b = f(!1)
          , t = f(!0)
          , u = se( () => o.currentGame.betMultiple.split("|"));
        pe( () => o.bettingPopupShow, () => {
            d.value.coin = Number(o.betTypeList[0]),
            d.value.count = u.value[0]
        }
        );
        const d = f({
            coin: 0,
            count: u.value[0],
            allCoin: 0,
            gametype: 0,
            typeid: 1,
            issuenumber: "",
            selecttype: "1"
        });
        pe( () => u, () => {
            d.value.count = u.value[0]
        }
        , {
            deep: !0,
            immediate: !0
        });
        let c = se({
            get() {
                return N(),
                o.bettingPopupShow || !1
            },
            set(i) {
                s("update:bettingPopupShow", i)
            }
        });
        const v = i => {
            switch (i) {
            case 1:
                d.value.count > 1 && (d.value.count--,
                N());
                break;
            case 2:
                d.value.count++,
                N();
                break
            }
        }
          , _ = i => {
            i > 0 && (d.value.count = parseInt(i),
            N())
        }
          , C = i => {
            d.value.count = i,
            N()
        }
          , T = i => {
            d.value.coin = i,
            N()
        }
          , B = () => {
            b.value = !1,
            t.value = !0
        }
          , r = async () => {
            if (!t.value) {
                ke(p("agreePresaleRules"));
                return
            }
            let {coin: i, count: O, selecttype: h} = d.value;
            if (O == 0)
                return qe(p("bteNoCount"));
            let z = null
              , q = o.betnumList;
            if (o.actNav === 0 && o.betnumList.length) {
                z = D(o.betnumList),
                q.sort();
                for (let m = 0; q.length > m; m++)
                    q[m] == "A" && (q[m] = "H"),
                    q[m] == "B" && (q[m] = "L"),
                    q[m] == "C" && (q[m] = "O"),
                    q[m] == "D" && (q[m] = "E");
                h = q.join(",")
            } else if (o.actNav == 1) {
                let m = []
                  , G = ""
                  , j = "";
                if (q.length > 0) {
                    let k = [];
                    for (let L = 0; q.length > L; L++) {
                        let K = "|" + q[L] + "|";
                        k.push(K)
                    }
                    j = k.join(","),
                    m.push(6)
                }
                if (o.numTowList.length > 0) {
                    let k = []
                      , L = [];
                    for (let K = 0; o.numOne.length > K; K++) {
                        let H = ":" + o.numOne[K] + ":";
                        k.push(H),
                        k = k.sort()
                    }
                    for (let K = 0; o.numTow.length > K; K++) {
                        let H = ":" + o.numTow[K] + ":";
                        L.push(H),
                        L = L.sort()
                    }
                    G = L.join(",") + "," + k.join(","),
                    m.push(5)
                }
                m = m.sort( (k, L) => k - L),
                z = m.join(","),
                G && (h = G),
                j && (h = j),
                G && j && (h = G + "," + j)
            } else if (o.actNav == 2) {
                let m = []
                  , G = ""
                  , j = "";
                if (q.length > 0) {
                    let k = [];
                    for (let L = 0; q.length > L; L++) {
                        let K = "|" + q[L] + "|";
                        k.push(K),
                        k = k.sort()
                    }
                    G = k.join(","),
                    m.push(7)
                }
                o.numChack && (j = "|AAA|",
                m.push(8)),
                m = m.sort( (k, L) => k - L),
                z = m.join(","),
                G && (h = G),
                j && (h = j),
                G && j && (h = G + "," + j)
            } else if (o.actNav == 3) {
                let m = []
                  , G = ""
                  , j = ""
                  , k = "";
                if (o.numOne.length > 2) {
                    let L = [];
                    for (let K = 0; o.numOne.length > K; K++) {
                        let H = "|" + o.numOne[K] + "|";
                        L.push(H),
                        L = L.sort()
                    }
                    G = L.join(","),
                    m.push(9)
                }
                if (o.numChack && (j = "|ABC|",
                m.push(10)),
                o.numTow.length > 1) {
                    let L = [];
                    for (let K = 0; o.numTow.length > K; K++) {
                        let H = "." + o.numTow[K] + ".";
                        L.push(H),
                        L = L.sort()
                    }
                    k = L.join(","),
                    m.push(4)
                }
                m = m.sort( (L, K) => L - K),
                z = m.join(","),
                k && (h = k),
                G && (h = G),
                j && (h = j),
                G && j && (h = G + "," + j),
                k && G && (h = k + "," + G),
                k && j && (h = k + "," + j),
                k && G && j && (h = k + "," + G + "," + j)
            }
            const g = await ie(Ue({
                amount: i,
                betCount: Number(O),
                gameType: z,
                selectType: h,
                typeId: o.currentGame.typeID,
                issuenumber: o.currentInfo.gameNo
            }));
            (g == null ? void 0 : g.code) === 0 ? (ke(p("code" + (g == null ? void 0 : g.msgCode))),
            s("submitBetting", o.currentInfo.gameNo)) : s("clearBetting")
        }
          , D = i => {
            let O = [];
            for (let h = 0; i.length > h; h++) {
                if (i[h] == "3" || i[h] == "4" || i[h] == "5" || i[h] == "6" || i[h] == "7" || i[h] == "8" || i[h] == "9" || i[h] == "10" || i[h] == "11" || i[h] == "12" || i[h] == "13" || i[h] == "14" || i[h] == "15" || i[h] == "16" || i[h] == "17" || i[h] == "18") {
                    O.push(1);
                    continue
                }
                if (i[h] == "A" || i[h] == "B") {
                    O.push(2);
                    continue
                }
                if (i[h] == "C" || i[h] == "D") {
                    O.push(3);
                    continue
                }
            }
            return O = O.sort(function(h, z) {
                return h - z
            }),
            [...new Set(O)].join(",")
        }
          , N = () => {
            const i = o.betnumList.length + Q() + (o.numChack ? 1 : 0) + te(o.numOne, 3) + te(o.numTow);
            d.value.allCoin = d.value.coin * d.value.count * i
        }
          , Q = () => {
            const i = o.numTowList.length;
            return i && o.numTowList[0].split("|")[1].split(",").length * i
        }
          , te = (i, O=2) => {
            if (o.actNav != 3)
                return 0;
            function h(q) {
                let g = 1;
                for (let m = 2; m <= q; m++)
                    g *= m;
                return g
            }
            const z = i.length;
            return z < O ? 0 : h(z) / (h(O) * h(z - O))
        }
          , M = i => {
            switch (i) {
            case "A":
                return p("betBig");
            case "B":
                return p("betSmall");
            case "C":
                return p("betOdd");
            case "D":
                return p("betEven");
            default:
                return i
            }
        }
          , J = i => {
            let O = i.split("|")
              , h = "";
            return O.forEach(z => {
                h += `<div>${z}</div>`
            }
            ),
            h
        }
        ;
        return $({
            setAllCoin: N
        }),
        (i, O) => {
            const h = Y("van-field")
              , z = Y("van-popup")
              , q = Ke("throttle-click");
            return a(),
            l(S, null, [P(" 投注内容 begin "), y(z, {
                show: X(c),
                "onUpdate:show": O[6] || (O[6] = g => De(c) ? c.value = g : c = g),
                position: "bottom",
                style: {
                    "box-shadow": "0px -18px 40px rgba(37, 37, 60, 0.26)"
                },
                round: !0,
                overlay: !1,
                "close-on-click-overlay": !1,
                "lock-scroll": !1
            }, {
                default: W( () => [e("div", ds, [i.actNav === 0 && i.betnumList.length ? (a(),
                l("div", ps, [e("p", ms, n(i.$t("betPopDesc1")), 1), e("div", vs, [(a(!0),
                l(S, null, E(i.betnumList, (g, m) => (a(),
                l("div", {
                    class: I(g % 2 === 0 ? "green" : "red num" + g),
                    key: m
                }, n(M(g)), 3))), 128))])])) : P("v-if", !0), i.actNav === 1 ? (a(),
                l(S, {
                    key: 1
                }, [i.betnumList.length ? (a(),
                l("div", _s, [e("p", hs, n(i.$t("betPopDesc2")), 1), e("div", fs, [(a(!0),
                l(S, null, E(i.betnumList, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: "Betting__Popup-type2-d"
                }, n(M(g)), 1))), 128))])])) : P("v-if", !0), i.numTowList.length ? (a(),
                l("div", gs, [e("p", ks, n(i.$t("betPopDesc3")), 1), e("div", ys, [(a(!0),
                l(S, null, E(i.numTowList, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: "Betting__Popup-type2-o",
                    innerHTML: J(g)
                }, null, 8, bs))), 128))])])) : P("v-if", !0)], 64)) : P("v-if", !0), i.actNav === 2 ? (a(),
                l(S, {
                    key: 2
                }, [i.betnumList.length ? (a(),
                l("div", Cs, [e("p", Ls, n(i.$t("betPopDesc4")), 1), e("div", Ts, [(a(!0),
                l(S, null, E(i.betnumList, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: "Betting__Popup-type2-d"
                }, n(M(g)), 1))), 128))])])) : P("v-if", !0), i.numChack ? (a(),
                l("p", ws, n(i.$t("betPopDesc5")), 1)) : P("v-if", !0), i.numChack ? (a(),
                l("div", $s, n(i.$t("k3bet3Desc4")), 1)) : P("v-if", !0)], 64)) : P("v-if", !0), i.actNav === 3 ? (a(),
                l(S, {
                    key: 3
                }, [i.numOne.length > 2 ? (a(),
                l("div", Bs, [e("p", Os, n(i.$t("betPopDesc6")), 1), e("div", Ps, [(a(!0),
                l(S, null, E(i.numOne, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: "Betting__Popup-type2-d"
                }, n(M(g)), 1))), 128))])])) : P("v-if", !0), i.numChack ? (a(),
                l("p", As, n(i.$t("betPopDesc7")), 1)) : P("v-if", !0), i.numChack ? (a(),
                l("div", Rs, n(i.$t("betPopDesc7")), 1)) : P("v-if", !0), i.numTow.length > 1 ? (a(),
                l("div", Ns, [e("p", Is, n(i.$t("betPopDesc8")), 1), e("div", Gs, [(a(!0),
                l(S, null, E(i.numTow, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: "Betting__Popup-type2-d"
                }, n(M(g)), 1))), 128))])])) : P("v-if", !0)], 64)) : P("v-if", !0), e("div", Ss, [V(n(X(p)("amount")) + " ", 1), e("div", Ks, [(a(!0),
                l(S, null, E(i.betTypeList, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: I(["Betting__Popup-body-line-item", {
                        bgcolor: d.value.coin == g
                    }]),
                    onClick: G => T(g)
                }, n(g), 11, Ds))), 128))])]), e("div", qs, [V(n(X(p)("numbers")) + " ", 1), e("div", js, [e("div", {
                    class: I(["Betting__Popup-btn", {
                        bgcolor: d.value.count > 0
                    }]),
                    onClick: O[0] || (O[0] = g => v(1))
                }, "-", 2), y(h, {
                    class: "Betting__Popup-input",
                    modelValue: d.value.count,
                    "onUpdate:modelValue": O[1] || (O[1] = g => d.value.count = g),
                    type: "digit",
                    maxlength: 4,
                    onInput: _
                }, null, 8, ["modelValue"]), e("div", {
                    class: "Betting__Popup-btn bgcolor",
                    onClick: O[2] || (O[2] = g => v(2))
                }, "+")])]), e("div", Ms, [Ws, e("div", Es, [(a(!0),
                l(S, null, E(u.value, (g, m) => (a(),
                l("div", {
                    key: m,
                    class: I(["Betting__Popup-body-line-item", {
                        bgcolor: d.value.count == g
                    }]),
                    onClick: G => C(g)
                }, " X" + n(g), 11, Hs))), 128))])]), e("div", zs, [e("span", {
                    class: I(["Betting__Popup-agree", {
                        active: t.value
                    }]),
                    onClick: O[3] || (O[3] = g => t.value = !t.value)
                }, n(X(p)("agree")), 3), e("span", {
                    onClick: O[4] || (O[4] = g => b.value = !0),
                    class: "Betting__Popup-preSaleShow"
                }, n(X(p)("presaleRules")), 1)])]), e("div", Vs, [e("div", {
                    class: "Betting__Popup-foot-c",
                    onClick: O[5] || (O[5] = g => s("clearBetting"))
                }, n(X(p)("cancel")), 1), le((a(),
                l("div", Fs, [V(n(X(p)("totalAmount")) + " " + n(X($e)(d.value.allCoin || 0)), 1)])), [[q, {
                    handler: r,
                    wait: 2e3
                }]])])]),
                _: 1
            }, 8, ["show"]), P(" 规则弹层 begin"), y(z, {
                show: b.value,
                "onUpdate:show": O[7] || (O[7] = g => b.value = g),
                "close-on-click-overlay": !1,
                round: ""
            }, {
                default: W( () => [e("div", Qs, [e("div", Xs, n(X(p)("presaleRules")), 1), e("div", Us, n(i.$t("betPopTXT")), 1), e("div", Zs, [e("div", {
                    class: "Betting__Popup-PreSale-foot-btn",
                    onClick: B
                }, n(X(p)("iKonw")), 1)])])]),
                _: 1
            }, 8, ["show"])], 64)
        }
    }
});
const Js = ee(Ys, [["__scopeId", "data-v-5f002ad4"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/BettingPopup.vue"]])
  , xs = {
    class: "K3B__C"
}
  , en = {
    class: "K3B__C-mark"
}
  , tn = {
    class: "K3B__C-nav"
}
  , sn = ["onClick"]
  , nn = {
    class: "qpopup-box"
}
  , an = {
    class: "qpopup-box-list"
}
  , on = {
    class: "qpopup-box-txt"
}
  , ln = x({
    __name: "Betting",
    props: {
        currentInfo: {
            type: Object,
            default: () => ({})
        },
        ProhibitBuyTime: {
            type: Number,
            default: 5
        },
        currentGame: {
            type: Object,
            default: () => ({})
        }
    },
    emits: ["betting", "changeBettingP"],
    setup(R, {expose: $, emit: s}) {
        const o = R
          , {t: p} = ue()
          , b = {
            bt1: $t,
            bt2: Wt,
            bt3: Zt,
            bt4: cs
        }
          , t = f()
          , u = f()
          , d = f([])
          , c = f(0)
          , v = f([{
            name: p("totalBet"),
            comp: "bt1"
        }, {
            name: p("sameNum"),
            comp: "bt2"
        }, {
            name: p("numbersMatch"),
            comp: "bt3"
        }, {
            name: p("numbersUnmatch"),
            comp: "bt4"
        }])
          , _ = f([{
            num: 1,
            chack: !1,
            chackOne: !1,
            chackTow: !1
        }, {
            num: 2,
            chack: !1,
            chackOne: !1,
            chackTow: !1
        }, {
            num: 3,
            chack: !1,
            chackOne: !1,
            chackTow: !1
        }, {
            num: 4,
            chack: !1,
            chackOne: !1,
            chackTow: !1
        }, {
            num: 5,
            chack: !1,
            chackOne: !1,
            chackTow: !1
        }, {
            num: 6,
            chack: !1,
            chackOne: !1,
            chackTow: !1
        }])
          , C = f([])
          , T = f([])
          , B = f([])
          , r = f(!1)
          , D = f([])
          , N = f(!1)
          , Q = se( () => (o.currentInfo.passTime < o.ProhibitBuyTime && M(),
        o.currentInfo.passTime < o.ProhibitBuyTime))
          , te = se( () => o.currentGame.scope ? o.currentGame.scope.split("|").map(k => Number(k)) : [])
          , M = () => {
            N.value = !1,
            J()
        }
          , J = () => {
            u.value.clearList && u.value.clearList(),
            C.value = [],
            T.value = [],
            B.value = [],
            r.value = !1,
            D.value = [],
            _.value = [{
                num: 1,
                chack: !1,
                chackOne: !1,
                chackTow: !1
            }, {
                num: 2,
                chack: !1,
                chackOne: !1,
                chackTow: !1
            }, {
                num: 3,
                chack: !1,
                chackOne: !1,
                chackTow: !1
            }, {
                num: 4,
                chack: !1,
                chackOne: !1,
                chackTow: !1
            }, {
                num: 5,
                chack: !1,
                chackOne: !1,
                chackTow: !1
            }, {
                num: 6,
                chack: !1,
                chackOne: !1,
                chackTow: !1
            }]
        }
          , i = async () => {
            const k = await ie(Ze());
            d.value = (k == null ? void 0 : k.data) || []
        }
          , O = () => {
            t.value.setAllCoin()
        }
          , h = k => {
            c.value = k,
            N.value = !1,
            J()
        }
          , z = () => {
            let k = [];
            for (let L = 0; T.value.length > L; L++) {
                let K = T.value[L]
                  , H = [];
                for (let U = 0; B.value.length > U; U++)
                    H.push(B.value[U]);
                if (H.length > 0) {
                    let U = H.sort().join(",");
                    k.push(K + "|" + U)
                }
            }
            D.value = k.sort()
        }
          , q = async k => {
            s("betting", k),
            N.value = !1,
            J()
        }
          , g = f(!1)
          , m = f([])
          , G = f("")
          , j = (k, L) => {
            G.value = k,
            m.value = L,
            g.value = !0
        }
        ;
        return oe( () => {
            i()
        }
        ),
        $({
            bettingPopupShow: N
        }),
        (k, L) => {
            const K = Y("van-popup");
            return a(),
            l("div", xs, [le(e("div", en, [e("div", null, n(o.currentInfo.time3 || "0"), 1), e("div", null, n(o.currentInfo.time4 || "0"), 1)], 512), [[me, Q.value]]), e("div", tn, [(a(!0),
            l(S, null, E(v.value, (H, U) => (a(),
            l("div", {
                key: U,
                class: I({
                    active: c.value == U
                }),
                onClick: ce => h(U)
            }, n(H.name), 11, sn))), 128))]), (a(),
            ne(Le(b[v.value[c.value].comp]), {
                ref_key: "BetRef",
                ref: u,
                OddsList: d.value,
                numList: _.value,
                numTow: T.value,
                numOne: B.value,
                numChack: r.value,
                betnumList: C.value,
                onSelectNum: z,
                onShowP: L[0] || (L[0] = H => N.value = H),
                onUpAll: O,
                onCNumChack: L[1] || (L[1] = H => r.value = !r.value),
                onOnQuestion: j
            }, null, 40, ["OddsList", "numList", "numTow", "numOne", "numChack", "betnumList"])), y(Js, {
                ref_key: "betPopupRef",
                ref: t,
                currentInfo: o.currentInfo,
                bettingPopupShow: N.value,
                numTow: T.value,
                numOne: B.value,
                betTypeList: te.value,
                numTowList: D.value,
                currentGame: R.currentGame,
                actNav: c.value,
                betnumList: C.value,
                numChack: r.value,
                onClearBetting: M,
                onSubmitBetting: q
            }, null, 8, ["currentInfo", "bettingPopupShow", "numTow", "numOne", "betTypeList", "numTowList", "currentGame", "actNav", "betnumList", "numChack"]), P(" 玩法提示 "), y(K, {
                class: "qpopup",
                show: g.value,
                "onUpdate:show": L[2] || (L[2] = H => g.value = H),
                "close-on-click-overlay": !1,
                closeable: "",
                "close-icon": "close",
                "close-icon-position": "bottom-left",
                round: ""
            }, {
                default: W( () => [e("div", nn, [e("div", an, [(a(!0),
                l(S, null, E(m.value, (H, U) => (a(),
                l("div", {
                    class: I("num num" + H),
                    key: U
                }, null, 2))), 128))]), e("div", on, n(G.value), 1)])]),
                _: 1
            }, 8, ["show"])])
        }
    }
});
const un = ee(ln, [["__scopeId", "data-v-8a4509d7"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/Betting.vue"]])
  , cn = {
    class: "GameRecord__C"
}
  , rn = {
    class: "GameRecord__C-head"
}
  , dn = {
    class: "GameRecord__C-body"
}
  , pn = {
    class: "GameRecord__C-body-premium"
}
  , mn = {
    key: 1,
    class: "GameRecord__C-body-empty"
}
  , vn = {
    key: 0,
    class: "GameRecord__C-foot"
}
  , _n = {
    class: "GameRecord__C-foot-page"
}
  , hn = x({
    __name: "GameRecord",
    props: {
        typeid: {
            type: Number,
            required: !0
        }
    },
    setup(R, {expose: $}) {
        const s = R
          , o = f([])
          , p = f(4)
          , b = f(10)
          , t = f(1)
          , u = () => {
            t.value--,
            c()
        }
          , d = () => {
            t.value++,
            c()
        }
          , c = async (v=!1) => {
            if (s.typeid == null)
                return;
            v && (t.value = 1);
            const [_,C] = await _e(he({
                pageSize: b.value,
                pageNo: t.value,
                typeId: s.typeid
            }));
            o.value = C.list || [],
            p.value = C.totalPage
        }
        ;
        return $({
            getData: c
        }),
        Te( () => {
            c()
        }
        ),
        (v, _) => {
            const C = Y("van-col")
              , T = Y("van-row")
              , B = Y("van-icon");
            return a(),
            l("div", cn, [e("div", rn, [y(T, null, {
                default: W( () => [y(C, {
                    span: "10"
                }, {
                    default: W( () => [V(n(v.$t("gameRecordNum")), 1)]),
                    _: 1
                }), y(C, {
                    span: "4"
                }, {
                    default: W( () => [V(n(v.$t("gameRecordTotal")), 1)]),
                    _: 1
                }), y(C, {
                    span: "10"
                }, {
                    default: W( () => [V(n(v.$t("gameRecordResult")), 1)]),
                    _: 1
                })]),
                _: 1
            })]), e("div", dn, [o.value.length ? (a(!0),
            l(S, {
                key: 0
            }, E(o.value, (r, D) => (a(),
            ne(T, {
                key: D
            }, {
                default: W( () => [y(C, {
                    span: "10"
                }, {
                    default: W( () => [V(n(r.issueNumber), 1)]),
                    _: 2
                }, 1024), y(C, {
                    span: "1"
                }, {
                    default: W( () => [e("span", null, n(r.sumCount), 1)]),
                    _: 2
                }, 1024), y(C, {
                    span: "3"
                }, {
                    default: W( () => [e("span", null, n(r.sumCount > 10 ? v.$t("big") : v.$t("small")), 1)]),
                    _: 2
                }, 1024), y(C, {
                    span: "3"
                }, {
                    default: W( () => [e("span", null, n(r.sumCount % 2 ? v.$t("k3Odd") : v.$t("k3Even")), 1)]),
                    _: 2
                }, 1024), y(C, {
                    span: "6"
                }, {
                    default: W( () => [e("div", pn, [(a(!0),
                    l(S, null, E(r.premium, (N, Q) => (a(),
                    l("div", {
                        key: Q,
                        class: I("n" + N)
                    }, null, 2))), 128))])]),
                    _: 2
                }, 1024)]),
                _: 2
            }, 1024))), 128)) : (a(),
            l("div", mn, [y(Be)]))]), o.value.length ? (a(),
            l("div", vn, [e("div", {
                class: I(["GameRecord__C-foot-previous", {
                    disabled: t.value <= 1
                }]),
                onClick: u
            }, [y(B, {
                name: "arrow-left",
                class: "GameRecord__C-icon",
                size: "20"
            })], 2), e("div", _n, n(t.value) + "/" + n(p.value), 1), e("div", {
                class: I(["GameRecord__C-foot-next", {
                    disabled: t.value >= p.value
                }]),
                onClick: d
            }, [y(B, {
                name: "arrow",
                class: "GameRecord__C-icon",
                size: "20"
            })], 2)])) : P("v-if", !0)])
        }
    }
});
const fn = ee(hn, [["__scopeId", "data-v-4e09079f"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/GameRecord.vue"]])
  , gn = {
    class: "Trend__C"
}
  , kn = {
    class: "Trend__C-head"
}
  , yn = {
    class: "Trend__C-body"
}
  , bn = {
    class: "Trend__C-body-premium"
}
  , Cn = {
    class: "Trend__C-body-gameText"
}
  , Ln = {
    key: 1,
    class: "Trend__C-body-empty"
}
  , Tn = {
    key: 0,
    class: "Trend__C-foot"
}
  , wn = {
    class: "Trend__C-foot-page"
}
  , $n = x({
    __name: "Trend",
    props: {
        typeid: {
            type: Number,
            required: !0
        }
    },
    setup(R, {expose: $}) {
        const s = R
          , {t: o} = ue()
          , p = f([])
          , b = f(4)
          , t = f(10)
          , u = f(1)
          , d = () => {
            u.value--,
            v()
        }
          , c = () => {
            u.value++,
            v()
        }
          , v = async (T=!1) => {
            if (s.typeid == null)
                return;
            T && (u.value = 1);
            const [B,r] = await _e(he({
                pageSize: t.value,
                pageNo: u.value,
                typeId: s.typeid
            }));
            p.value = r.list.map(D => {
                let N = [0, 0, 0, 0, 0, 0]
                  , Q = D.premium.split("").map(Number)
                  , te = D.premium.split("").map(Number);
                for (let M = 0; N.length > M; M++)
                    N[Q[M] - 1] = Q[M];
                return D.Premiums = N,
                D.AllEqual = C(te),
                D
            }
            ) || [],
            b.value = r.totalPage
        }
          , _ = f([o("trendTXT1"), o("trendTXT2"), o("trendTXT3"), o("trendTXT4")])
          , C = T => {
            let B = [0, 0, 0, 0, 0, 0]
              , r = T.sort()
              , D = 2;
            for (let N = 0; N < r.length - 1; N++)
                r[N] == r[N + 1] && (B[r[N] - 1] = D++);
            return B
        }
        ;
        return $({
            getData: v
        }),
        Te( () => {
            v()
        }
        ),
        (T, B) => {
            const r = Y("van-col")
              , D = Y("van-row")
              , N = Y("van-icon");
            return a(),
            l("div", gn, [e("div", kn, [y(D, null, {
                default: W( () => [y(r, {
                    span: "9"
                }, {
                    default: W( () => [V(n(T.$t("trendNumber")), 1)]),
                    _: 1
                }), y(r, {
                    span: "5"
                }, {
                    default: W( () => [V(n(T.$t("trendResult")), 1)]),
                    _: 1
                }), y(r, {
                    span: "10"
                }, {
                    default: W( () => [V(n(T.$t("trendNum")), 1)]),
                    _: 1
                })]),
                _: 1
            })]), e("div", yn, [p.value.length ? (a(!0),
            l(S, {
                key: 0
            }, E(p.value, (Q, te) => (a(),
            ne(D, {
                key: te
            }, {
                default: W( () => [y(r, {
                    span: "9"
                }, {
                    default: W( () => [V(n(Q.issueNumber), 1)]),
                    _: 2
                }, 1024), y(r, {
                    span: "5"
                }, {
                    default: W( () => [e("div", bn, [(a(!0),
                    l(S, null, E(Q.premium, (M, J) => (a(),
                    l("div", {
                        key: J,
                        class: I("n" + M)
                    }, null, 2))), 128))])]),
                    _: 2
                }, 1024), y(r, {
                    span: "10"
                }, {
                    default: W( () => [e("div", Cn, [e("span", null, n(_.value[Q.gameType]), 1)])]),
                    _: 2
                }, 1024)]),
                _: 2
            }, 1024))), 128)) : (a(),
            l("div", Ln, [y(Be)]))]), p.value.length ? (a(),
            l("div", Tn, [e("div", {
                class: I(["Trend__C-foot-previous", {
                    disabled: u.value <= 1
                }]),
                onClick: d
            }, [y(N, {
                name: "arrow-left",
                class: "Trend__C-icon",
                size: "20"
            })], 2), e("div", wn, n(u.value) + "/" + n(b.value), 1), e("div", {
                class: I(["Trend__C-foot-next", {
                    disabled: u.value >= b.value
                }]),
                onClick: c
            }, [y(N, {
                name: "arrow",
                class: "Trend__C-icon",
                size: "20"
            })], 2)])) : P("v-if", !0)])
        }
    }
});
const Bn = ee($n, [["__scopeId", "data-v-4159c83a"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/Trend.vue"]])
  , On = {
    key: 1,
    class: "WinningTip__C-body-l1"
}
  , Pn = {
    class: "WinningTip__C-body-l2"
}
  , An = {
    class: "line1"
}
  , Rn = {
    class: "line2"
}
  , Nn = {
    class: "yuan"
}
  , In = {
    class: "WinningTip__C-body-l3"
}
  , Gn = {
    key: 0,
    class: "isLose"
}
  , Sn = {
    class: "head"
}
  , Kn = {
    class: "bonus"
}
  , Dn = {
    class: "gameDetail"
}
  , qn = {
    class: "WinningTip__C-body-l4"
}
  , jn = ["onClick"]
  , Mn = x({
    __name: "WinningTips",
    setup(R, {expose: $}) {
        const s = se( () => b.value[0] ? b.value[0].state == 0 : !1)
          , o = se( () => b.value[0] || {})
          , p = f(!1)
          , b = f([]);
        let t = f();
        const u = () => {
            clearTimeout(t.value),
            b.value.shift(),
            p.value && b.value.length && (t.value = setTimeout( () => {
                u()
            }
            , 1e3 * 3))
        }
          , d = () => {
            p.value = !p.value,
            p.value ? t.value = setTimeout( () => {
                u()
            }
            , 1e3 * 3) : clearTimeout(t.value)
        }
          , c = _ => {
            _.list = _.premium.split(""),
            _.sum = Number(_.list[0]) + Number(_.list[1]) + Number(_.list[2]),
            b.value.push(_),
            p.value && (t.value = setTimeout( () => {
                u()
            }
            , 1e3 * 3))
        }
          , v = () => {
            b.value = []
        }
        ;
        return $({
            showMark: c
        }),
        (_, C) => {
            const T = Y("van-icon");
            return le((a(),
            l("div", {
                class: "WinningTip__C",
                onClick: u
            }, [e("div", {
                class: I(["WinningTip__C-body", {
                    isL: s.value
                }])
            }, [s.value ? (a(),
            l("div", {
                key: 0,
                class: I(["WinningTip__C-body-l1", {
                    isL: s.value
                }])
            }, n(_.$t("k3WarningTip1")), 3)) : (a(),
            l("div", On, n(_.$t("k3WarningTip2")), 1)), e("div", Pn, [e("div", An, [(a(!0),
            l(S, null, E(o.value.list, (B, r) => (a(),
            l("div", {
                class: I(["n" + B])
            }, null, 2))), 256))]), e("div", Rn, [e("div", null, n(o.value.premium), 1), e("div", Nn, n(o.value.sum > 10 ? _.$t("big") : _.$t("small")), 1), e("div", null, n(o.value.sum % 2 ? _.$t("k3Odd") : _.$t("k3Even")), 1)])]), e("div", In, [s.value ? (a(),
            l("div", Gn, n(_.$t("k3WarningTip3")), 1)) : (a(),
            l(S, {
                key: 1
            }, [e("div", Sn, n(_.$t("k3WarningTip4")), 1), e("div", Kn, n(X($e)(Number(o.value.winAmount))), 1)], 64)), e("div", Dn, n(_.$t("k3WarningTip5")) + n(o.value.typeName) + " " + n(o.value.issueNumber), 1)]), e("div", qn, [e("div", {
                class: I(["acitveBtn", {
                    active: p.value
                }]),
                onClick: ye(d, ["stop"])
            }, null, 10, jn), V(" " + n(_.$t("autoShutOff3s")), 1)]), e("div", {
                class: "closeBtn",
                onClick: v
            }), le(y(T, {
                name: "arrow",
                color: "#fff",
                size: "30px",
                class: "arrowBtn",
                onClick: ye(u, ["stop"])
            }, null, 8, ["onClick"]), [[me, b.value.length > 1]])], 2)], 512)), [[me, b.value.length]])
        }
    }
});
const Wn = ee(Mn, [["__scopeId", "data-v-2d418cc5"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/WinningTips.vue"]])
  , En = {
    class: "K3__C"
}
  , Hn = {
    class: "K3__C-head-more"
}
  , zn = x({
    __name: "index",
    setup(R) {
        const $ = {
            GameRecord: fn,
            Trend: Bn,
            MyGameRecord: ot
        }
          , s = f()
          , o = f()
          , p = f()
          , b = f(!1)
          , t = f("GameRecord")
          , u = je()
          , d = we();
        let c = Me([]);
        const v = f(0)
          , _ = f(localStorage.getItem("volumeShow") || "1")
          , C = f(!1)
          , T = f([])
          , B = f(null)
          , r = f({
            gameNo: "loading",
            currentTime: "",
            beginTime: "",
            passTime: 180,
            time1: 0,
            time2: 0,
            time3: 0,
            time4: 0
        })
          , D = f("666")
          , N = f(5)
          , Q = f("")
          , te = f(!1)
          , M = f(null)
          , J = se( () => d.k3[v.value] || {})
          , i = Ye()
          , O = se( () => i.getIsShowLotteryDragon)
          , z = We().query.typeId;
        oe( () => {
            G()
        }
        ),
        Ee( () => {
            clearInterval(B.value),
            clearInterval(ae.value),
            fe.value.forEach(w => {
                clearInterval(w)
            }
            ),
            de.value && clearTimeout(de.value)
        }
        ),
        pe( () => tt().visibility, w => {
            w === 0 ? clearInterval(B.value) : G(v.value)
        }
        );
        const q = () => {
            u.go(-1),
            sessionStorage.setItem("clickedGameType", "lottery")
        }
          , g = () => {
            _.value == "1" ? _.value = "2" : _.value = "1",
            localStorage.setItem("volumeShow", _.value)
        }
          , m = w => {
            u.push({
                name: w
            })
        }
          , G = async (w=null) => {
            await d.getK3Data(),
            c = d.getK3;
            const A = c.findIndex(F => F.typeID == z);
            M.value == null && !z ? k(0) : k(w ?? A)
        }
          , j = async (w, A=!1) => {
            const F = await ie(xe({
                typeId: w
            }));
            F && (D.value = F.data.premium,
            A && Re(D.value))
        }
          , k = w => {
            d.getK3Data(),
            v.value = w,
            M.value = c[w].typeID,
            L(M.value),
            ve( () => {
                s.value.getData(M.value)
            }
            )
        }
          , L = async (w, A=!1) => {
            j(w, A);
            const [F,Z] = await _e(Je({
                typeId: w
            }));
            r.value.gameNo = Z.issueNumber,
            r.value.currentTime = Z.serviceTime.replace(/-/g, "/"),
            r.value.beginTime = Z.startTime.replace(/-/g, "/"),
            K()
        }
          , K = () => {
            if (!c.length)
                return;
            var w = new Date(r.value.currentTime).getTime()
              , A = new Date(r.value.beginTime).getTime();
            let F = (w - A) / 1e3
              , Z = c[v.value];
            if (F > Z.intervalM * 60 && (F = Z.intervalM * 60),
            r.value.passTime = Z.intervalM * 60 - F,
            r.value.passTime < 0) {
                Q.value = "An error occurred, please contact customer service。The game time is " + Z.intervalM + " minutes,start time is " + r.value.beginTime + ",current time is" + r.value.currentTime + "!",
                C.value = !0;
                return
            }
            H()
        }
          , H = () => {
            clearInterval(B.value),
            U(!1),
            B.value = setInterval(function() {
                U()
            }, 1e3)
        }
          , U = (w=!0) => {
            if (r.value.passTime <= N.value && (te.value = !1),
            _.value == "1" && (r.value.passTime <= N.value && r.value.passTime > 1 ? ce(1) : r.value.passTime == 1 && ce(2)),
            r.value.passTime > 0) {
                let A = r.value.passTime;
                r.value.time2 = Math.floor(A / 60),
                r.value.time3 = Math.floor(A % 60 / 10),
                r.value.time4 = Math.floor(A % 10),
                r.value.passTime--
            } else
                clearInterval(B.value),
                w && Pe()
        }
          , ce = (w=1) => {
            const A = document.getElementById(`voice${w}`);
            A && A.play()
        }
          , Pe = () => {
            L(M.value, !0),
            p.value.getWinsUserAmount(!1),
            s.value.getData(!0)
        }
          , ae = f(null)
          , Ae = (w, A) => {
            if (w >= 0 && A > 0 && A >= w) {
                let F = A - w + 1;
                return Math.floor(Math.random() * F + w)
            } else
                return 0
        }
          , Re = w => {
            ae.value || (ae.value = setInterval(function() {
                for (var A = [], F = 0; 3 > F; F++)
                    A.push(Ae(1, 6));
                D.value = A.join("")
            }, 50)),
            setTimeout(function() {
                clearInterval(ae.value),
                D.value = w,
                ae.value = null
            }, 2e3)
        }
          , re = f({})
          , fe = f([])
          , Ne = w => {
            if (p.value.getWinsUserAmount(!1),
            s.value.getData(),
            re.value[w])
                return;
            re.value[w] = !0;
            const {time1: A, time2: F, time3: Z, time4: Ge} = r.value
              , Se = (A * 10 * 60 + F * 60 + Z * 10 + Ge) * 1e3;
            fe.value[J.value.intervalM] = setTimeout( () => {
                ge(w)
            }
            , Se)
        }
          , Ie = w => {
            b.value = w
        }
          , de = f(null)
          , ge = async w => {
            const A = await ie(et({
                issueNumber: w
            }));
            if (A) {
                if (!(A.data.state != 2)) {
                    de.value = setTimeout( () => {
                        ge(w)
                    }
                    , 2e3);
                    return
                }
                o.value.showMark(A.data),
                delete re.value[w]
            }
        }
        ;
        return (w, A) => {
            const F = Y("NavBar");
            return a(),
            l("div", En, [y(F, {
                "left-arrow": "",
                onClickLeft: q,
                class: "main",
                headLogo: !0
            }, {
                right: W( () => [e("div", Hn, [e("div", {
                    onClick: A[0] || (A[0] = Z => m("CustomerService"))
                }), e("div", {
                    class: I({
                        disableVoice: _.value == "2"
                    }),
                    onClick: g
                }, null, 2)])]),
                _: 1
            }), P(" 钱包余额 "), y(Qe, {
                ref_key: "WallteRef",
                ref: p
            }, null, 512), y(at, {
                siteMsg: T.value,
                key: "k3"
            }, null, 8, ["siteMsg"]), P(" 游戏类型 "), y(Ve, {
                gameList: X(c),
                currentGameIndex: v.value,
                onChangeGame: k
            }, null, 8, ["gameList", "currentGameIndex"]), P(" 游戏开始时间倒计时 "), y(gt, {
                currentInfo: r.value,
                premium: D.value,
                currentGame: J.value
            }, null, 8, ["currentInfo", "premium", "currentGame"]), P(" 投注表 "), y(un, {
                currentInfo: r.value,
                currentGame: J.value,
                VoiceType: _.value,
                typeid: M.value,
                onBetting: Ne,
                onChangeBettingP: Ie
            }, null, 8, ["currentInfo", "currentGame", "VoiceType", "typeid"]), P(" 记录导航 "), y(Fe, {
                record: t.value,
                onChangeC: A[1] || (A[1] = Z => t.value = Z)
            }, null, 8, ["record"]), P(" 动态展示对应的组件 "), (a(),
            ne(He, null, [(a(),
            ne(Le($[t.value]), {
                ref_key: "RecordComponent",
                ref: s,
                typeid: M.value,
                ApiFun: X(st),
                listApi: X(he),
                EmerdApi: X(nt),
                goPathName: "AllLotteryGames-BettingRecordK3"
            }, null, 8, ["typeid", "ApiFun", "listApi", "EmerdApi"]))], 1024)), P(" 弹窗组件 "), y(it, {
                show: C.value,
                onConfirm: A[2] || (A[2] = Z => m("/login"))
            }, {
                content: W( () => [e("div", null, n(Q.value), 1)]),
                _: 1
            }, 8, ["show"]), P(" 中奖提示组件 "), y(Wn, {
                ref_key: "WinningTipsRef",
                ref: o
            }, null, 512), O.value ? (a(),
            ne(lt, {
                key: 0
            })) : P("v-if", !0), y(Xe)])
        }
    }
});
const na = ee(zn, [["__scopeId", "data-v-d024c659"], ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/views/home/AllLotteryGames/K3/index.vue"]]);
export {na as default};
