import {
    G as C,
    z as G,
    r as m,
    H as w,
    I as n,
    K as c,
    M as u,
    N as o,
    J as a,
    ap as v,
    P as t,
    ao as r,
    O as L,
    a$ as A,
    aB as d,
    Q as T
} from "./common.modules-f9fa5dc7.js";
import {
    c as h,
    L as b,
    _ as N
} from "./page-activity-ActivityDetail-0d51a056.js";
const D = {
        class: "MyGameRecordList__C"
    },
    B = ["onClick"],
    V = {
        class: "MyGameRecordList__C-item-m"
    },
    E = {
        class: "MyGameRecordList__C-item-m-top"
    },
    O = {
        class: "MyGameRecordList__C-item-m-bottom"
    },
    H = {
        key: 0,
        class: "MyGameRecordList__C-detail"
    },
    I = {
        class: "MyGameRecordList__C-detail-text"
    },
    j = {
        key: 0,
        class: "MyGameRecordList__C-detail-line"
    },
    S = ["onClick"],
    z = {
        class: "MyGameRecordList__C-detail-line"
    },
    K = {
        class: "MyGameRecordList__C-detail-line"
    },
    P = {
        class: "MyGameRecordList__C-detail-line"
    },
    q = {
        class: "MyGameRecordList__C-detail-line"
    },
    F = {
        class: "red"
    },
    J = {
        class: "MyGameRecordList__C-detail-line"
    },
    Q = {
        class: "MyGameRecordList__C-detail-line"
    },
    U = {
        key: 0,
        class: "numList"
    },
    W = {
        key: 1
    },
    X = {
        class: "MyGameRecordList__C-detail-line noLine"
    },
    Y = {
        key: 0,
        class: "line1"
    },
    Z = {
        key: 1,
        class: "line1"
    },
    x = {
        class: ""
    },
    ee = {
        class: ""
    },
    se = {
        key: 2,
        class: "line1"
    },
    te = {
        class: ""
    },
    ne = {
        key: 1,
        class: "btn actionBtn"
    },
    oe = {
        key: 3,
        class: "line1"
    },
    ae = {
        class: ""
    },
    re = {
        key: 1,
        class: "actionBtn"
    },
    ie = {
        class: ""
    },
    ce = {
        class: "MyGameRecordList__C-detail-line"
    },
    le = {
        key: 1
    },
    de = {
        class: "MyGameRecordList__C-detail-line"
    },
    ue = {
        key: 1
    },
    _e = {
        class: "MyGameRecordList__C-detail-line"
    },
    ye = C({
        __name: "MayrecordList",
        props: {
            mayrecord: {
                type: Array,
                required: !0
            }
        },
        setup(ve) {
            const {
                t: p
            } = G(), k = m(-1), M = e => {
                switch (e) {
                    case "H":
                        return p("k3Big");
                    case "L":
                        return p("k3Small");
                    case "O":
                        return p("k3Odd");
                    case "E":
                        return p("k3Even");
                    default:
                        return e
                }
            }, R = e => {
                k.value == e ? k.value = -1 : k.value = e
            }, $ = e => {
                var y, _, s;
                if (e.gameType == "3") {
                    if (e.selectType == "|AAA|") return "3=";
                    if (e.oneList.length) return e.oneList[0]
                }
                if (e.gameType == "4") return e.selectType == "|ABC|" ? "3≠" : e.threeList.length ? `${e.threeList.join("")}` : `${e.oneList.join("")}`;
                if ((y = e.towList) != null && y.length) return e.towList[0];
                if ((_ = e.towListArr) != null && _.length) return e.towListArr[0];
                if ((s = e.oneList) != null && s.length) switch (e.oneList[0]) {
                    case "H":
                        return "Big";
                    case "L":
                        return "Small";
                    case "O":
                        return "Odd";
                    case "E":
                        return "Even";
                    default:
                        return e.oneList[0]
                }
            }, g = e => {
                var y, _;
                if ((y = e.towList) != null && y.length) return "num";
                if ((_ = e.oneList) != null && _.length) return e.oneList[0].length > 2 ? "num" : e.oneList[0]
            };
            return (e, y) => {
                const _ = w("svg-icon");
                return o(), n("div", D, [(o(!0), n(c, null, u(e.mayrecord, (s, f) => (o(), n(c, {
                    key: f
                }, [a("div", {
                    class: "MyGameRecordList__C-item",
                    onClick: A(i => R(f), ["stop", "prevent"])
                }, [a("div", {
                    class: v(["MyGameRecordList__C-item-l", ["MyGameRecordList__C-item-l-" + g(s)]])
                }, t($(s)), 3), a("div", V, [a("div", E, t(s.issueNumber), 1), a("div", O, t(s.addTime), 1)]), s.profitAmount ? (o(), n("div", {
                    key: 0,
                    class: v(["MyGameRecordList__C-item-r", {
                        success: s.state
                    }])
                }, [s.profitAmount ? (o(), n("div", {
                    key: 0,
                    class: v({
                        success: s.state
                    })
                }, t(s.state ? e.$t("success") : e.$t("fail")), 3)) : r("v-if", !0), a("span", null, t(`${s.state?"+":"-"}${L(h)(s.profitAmount)}`), 1)], 2)) : r("v-if", !0)], 8, B), f == k.value ? (o(), n("div", H, [a("div", I, t(e.$t("detailMay")), 1), s.orderNumber ? (o(), n("div", j, [d(t(e.$t("orderNoMay")) + " ", 1), a("div", {
                    onClick: i => L(b)(s.orderNumber)
                }, [d(t(s.orderNumber) + " ", 1), T(_, {
                    name: "copy"
                })], 8, S)])) : r("v-if", !0), a("div", z, [d(t(e.$t("issueMay")) + " ", 1), a("div", null, t(s.issueNumber), 1)]), a("div", K, [d(t(e.$t("amountMay")) + " ", 1), a("div", null, t(L(h)(s.amount)), 1)]), a("div", P, [d(t(e.$t("numMay")) + " ", 1), a("div", null, t(s.betCount), 1)]), a("div", q, [d(t(e.$t("afterTaxAmount")) + " ", 1), a("div", F, t(L(h)(s.realAmount)), 1)]), a("div", J, [d(t(e.$t("tax")) + " ", 1), a("div", null, t(L(h)(s.fee)), 1)]), a("div", Q, [d(t(e.$t("resultMay")) + " ", 1), s.premium ? (o(), n("div", U, [(o(!0), n(c, null, u(s.premium, (i, l) => (o(), n("div", {
                    key: l,
                    class: v(["n" + i])
                }, null, 2))), 128))])) : (o(), n("div", W, "--"))]), a("div", X, [d(t(e.$t("selectMay")) + " ", 1), s.gameType == 1 ? (o(), n("div", Y, [s.oneList.length > 0 ? (o(), n(c, {
                    key: 0
                }, [a("span", null, t(e.$t("k3RecordDesc1")), 1), (o(!0), n(c, null, u(s.oneList, (i, l) => (o(), n("span", {
                    key: l + "1",
                    class: "btn"
                }, t(M(i)), 1))), 128))], 64)) : r("v-if", !0)])) : r("v-if", !0), r(" 2个相同的数字 "), s.gameType == 2 ? (o(), n("div", Z, [s.oneList.length > 0 ? (o(), n(c, {
                    key: 0
                }, [a("span", x, t(e.$t("k3RecordDesc2")), 1), (o(!0), n(c, null, u(s.oneList, (i, l) => (o(), n("span", {
                    class: "btn actionViolet",
                    key: l + "1"
                }, t(i), 1))), 128))], 64)) : r("v-if", !0), s.towList.length > 0 ? (o(), n(c, {
                    key: 1
                }, [a("span", ee, t(e.$t("k3RecordDesc3")), 1), (o(!0), n(c, null, u(s.towList, (i, l) => (o(), n("span", {
                    class: "btn actionRedGreen",
                    key: l + "1"
                }, t(i), 1))), 128))], 64)) : r("v-if", !0)])) : r("v-if", !0), s.gameType == 3 ? (o(), n("div", se, [s.oneList.length > 0 ? (o(), n(c, {
                    key: 0
                }, [a("span", te, t(e.$t("k3RecordDesc4")), 1), (o(!0), n(c, null, u(s.oneList, (i, l) => (o(), n("span", {
                    class: "btn actionViolet",
                    key: l + "1"
                }, t(i), 1))), 128))], 64)) : r("v-if", !0), s.towList ? (o(), n("div", ne, t(e.$t("k3RecordDesc5")), 1)) : r("v-if", !0)])) : r("v-if", !0), r(" 不同的号码 "), s.gameType == 4 ? (o(), n("div", oe, [s.oneList.length > 0 ? (o(), n(c, {
                    key: 0
                }, [a("span", ae, t(e.$t("k3RecordDesc6")), 1), (o(!0), n(c, null, u(s.oneList, (i, l) => (o(), n("span", {
                    class: "actionViolet",
                    key: l + "1"
                }, t(i), 1))), 128))], 64)) : r("v-if", !0), s.towList ? (o(), n("div", re, t(e.$t("k3RecordDesc7")), 1)) : r("v-if", !0), s.threeList.length > 0 ? (o(), n(c, {
                    key: 2
                }, [a("span", ie, t(e.$t("k3RecordDesc8")), 1), (o(!0), n(c, null, u(s.threeList, (i, l) => (o(), n("span", {
                    class: "actionViolet",
                    key: l + "1"
                }, t(i), 1))), 128))], 64)) : r("v-if", !0)])) : r("v-if", !0)]), a("div", ce, [d(t(e.$t("statusMay")) + " ", 1), s.state != 2 ? (o(), n("div", {
                    key: 0,
                    class: v([s.state ? "green" : "red"])
                }, t(s.state ? e.$t("success") : e.$t("fail")), 3)) : (o(), n("div", le, t(e.$t("k3RecordDesc9")), 1))]), a("div", de, [d(t(e.$t("winOrLose")) + " ", 1), s.state != 2 ? (o(), n("div", {
                    key: 0,
                    class: v([s.state ? "green" : "red"])
                }, t(`${s.state?"+":"-"} ${L(h)(s.profitAmount)}`), 3)) : (o(), n("div", ue, "--"))]), a("div", _e, [d(t(e.$t("createTime")) + " ", 1), a("div", null, t(s.addTime), 1)])])) : r("v-if", !0)], 64))), 128))])
            }
        }
    });
const pe = N(ye, [
    ["__scopeId", "data-v-a5ef3154"],
    ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/K3/MayrecordList.vue"]
]);
export {
    pe as M
};