import {
    G,
    z as R,
    r as $,
    H as g,
    I as o,
    K as y,
    M,
    N as i,
    J as a,
    ap as c,
    P as s,
    ao as v,
    O as d,
    a$ as b,
    aB as r,
    Q as N
} from "./common.modules-f9fa5dc7.js";
import {
    c as l,
    L as T,
    _ as A
} from "./page-activity-ActivityDetail-0d51a056.js";
const w = {
        class: "MyGameRecordList__C"
    },
    B = ["onClick"],
    E = {
        class: "MyGameRecordList__C-item-m"
    },
    O = {
        class: "MyGameRecordList__C-item-m-top"
    },
    H = {
        class: "MyGameRecordList__C-item-m-bottom"
    },
    I = {
        key: 0,
        class: "MyGameRecordList__C-detail"
    },
    V = {
        class: "MyGameRecordList__C-detail-text"
    },
    D = {
        key: 0,
        class: "MyGameRecordList__C-detail-line"
    },
    S = ["onClick"],
    z = {
        class: "MyGameRecordList__C-detail-line"
    },
    F = {
        class: "MyGameRecordList__C-detail-line"
    },
    P = {
        class: "MyGameRecordList__C-detail-line"
    },
    j = {
        class: "MyGameRecordList__C-detail-line"
    },
    q = {
        class: "red"
    },
    J = {
        class: "MyGameRecordList__C-detail-line"
    },
    K = {
        class: "MyGameRecordList__C-detail-line"
    },
    Q = {
        key: 0,
        class: "numList"
    },
    U = {
        key: 1
    },
    W = {
        class: "MyGameRecordList__C-detail-line"
    },
    X = {
        class: "line1"
    },
    Y = {
        class: "MyGameRecordList__C-detail-line"
    },
    Z = {
        key: 1
    },
    x = {
        class: "MyGameRecordList__C-detail-line"
    },
    ee = {
        key: 1
    },
    se = {
        class: "MyGameRecordList__C-detail-line"
    },
    te = G({
        __name: "MayrecordList",
        props: {
            mayrecord: {
                type: Array,
                required: !0
            }
        },
        setup(ae) {
            const {
                t: _
            } = R(), u = $(-1), h = t => ["", "A", "B", "C", "D", "E"][t], L = t => {
                switch (t) {
                    case "L":
                        return _("k3Small");
                    case "O":
                        return _("k3Odd");
                    case "E":
                        return _("k3Even");
                    case "H":
                        return _("k3Big");
                    default:
                        return t
                }
            }, C = t => {
                u.value == t ? u.value = -1 : u.value = t
            }, f = t => {
                switch (t) {
                    case "E":
                        return "Even";
                    case "O":
                        return "Odd";
                    case "H":
                        return "Big";
                    case "L":
                        return "Small";
                    default:
                        return t
                }
            };
            return (t, oe) => {
                const k = g("svg-icon");
                return i(), o("div", w, [(i(!0), o(y, null, M(t.mayrecord, (e, m) => (i(), o(y, {
                    key: m
                }, [a("div", {
                    class: "MyGameRecordList__C-item",
                    onClick: b(n => C(m), ["stop", "prevent"])
                }, [a("div", {
                    class: c(["MyGameRecordList__C-item-l", ["MyGameRecordList__C-item-l-" + e.selectType]])
                }, s(f(e.selectType)), 3), a("div", E, [a("div", O, s(e.issueNumber), 1), a("div", H, s(e.addTime), 1)]), e.profitAmount ? (i(), o("div", {
                    key: 0,
                    class: c(["MyGameRecordList__C-item-r", {
                        success: e.state
                    }])
                }, [e.profitAmount ? (i(), o("div", {
                    key: 0,
                    class: c({
                        success: e.state
                    })
                }, s(e.state ? t.$t("success") : t.$t("fail")), 3)) : v("v-if", !0), a("span", null, s(`${e.state?"+":"-"}${d(l)(e.profitAmount)}`), 1)], 2)) : v("v-if", !0)], 8, B), m == u.value ? (i(), o("div", I, [a("div", V, s(t.$t("detailMay")), 1), e.orderNumber ? (i(), o("div", D, [r(s(t.$t("orderNoMay")) + " ", 1), a("div", {
                    onClick: n => d(T)(e.orderNumber)
                }, [r(s(e.orderNumber) + " ", 1), N(k, {
                    name: "copy"
                })], 8, S)])) : v("v-if", !0), a("div", z, [r(s(t.$t("issueMay")) + " ", 1), a("div", null, s(e.issueNumber), 1)]), a("div", F, [r(s(t.$t("amountMay")) + " ", 1), a("div", null, s(d(l)(e.amount)), 1)]), a("div", P, [r(s(t.$t("numMay")) + " ", 1), a("div", null, s(e.betCount), 1)]), a("div", j, [r(s(t.$t("afterTaxAmount")) + " ", 1), a("div", q, s(d(l)(e.realAmount)), 1)]), a("div", J, [r(s(t.$t("tax")) + " ", 1), a("div", null, s(d(l)(e.fee)), 1)]), a("div", K, [r(s(t.$t("resultMay")) + " ", 1), e.premium ? (i(), o("div", Q, [(i(!0), o(y, null, M(e.premium, (n, p) => (i(), o("div", {
                    key: p
                }, s(n), 1))), 128))])) : (i(), o("div", U, "--"))]), a("div", W, [r(s(t.$t("selectMay")) + " ", 1), a("div", X, [a("div", null, s(h(e.gameType)), 1), (i(!0), o(y, null, M(e.selectType.split("|"), (n, p) => (i(), o("div", {
                    class: "num",
                    key: p
                }, s(L(n)), 1))), 128))])]), a("div", Y, [r(s(t.$t("statusMay")) + " ", 1), e.state != 2 ? (i(), o("div", {
                    key: 0,
                    class: c([e.state ? "green" : "red"])
                }, s(e.state ? t.$t("success") : t.$t("fail")), 3)) : (i(), o("div", Z, s(t.$t("unsettled")), 1))]), a("div", x, [r(s(t.$t("winOrLose")) + " ", 1), e.state != 2 ? (i(), o("div", {
                    key: 0,
                    class: c([e.state ? "green" : "red"])
                }, s(`${e.state?"+":"-"} ${d(l)(e.profitAmount)}`), 3)) : (i(), o("div", ee, "--"))]), a("div", se, [r(s(t.$t("createTime")) + " ", 1), a("div", null, s(e.addTime), 1)])])) : v("v-if", !0)], 64))), 128))])
            }
        }
    });
const de = A(te, [
    ["__scopeId", "data-v-8bb41fd5"],
    ["__file", "/usr/local/jenkins-prod/workspace/AR079-Pages-india-tashanwin/src/components/Home/AllLotteryGames/FD/MayrecordList.vue"]
]);
export {
    de as M
};