import{G,z as R,r as b,H as $,I as o,K as m,M as g,N as r,J as e,ap as l,P as a,ao as c,O as i,a$ as k,aB as N,Q as T}from"./common.modules-5cfe2cf4.js";import{c as d,L as A,_ as w}from"./page-activity-ActivityDetail-a58ec568.js";const B={class:"MyGameRecordList__C"},I=["onClick"],V={class:"MyGameRecordList__C-item-m"},z={class:"MyGameRecordList__C-item-m-top"},D={class:"MyGameRecordList__C-item-m-bottom"},E={key:0,class:"MyGameRecordList__C-detail"},H={class:"MyGameRecordList__C-detail-text"},O={key:0,class:"MyGameRecordList__C-detail-line"},P=["onClick"],j={class:"MyGameRecordList__C-detail-line"},q={class:"MyGameRecordList__C-detail-line"},F={class:"MyGameRecordList__C-detail-line"},J={class:"MyGameRecordList__C-detail-line"},K={class:"red"},Q={class:"MyGameRecordList__C-detail-line"},S={class:"MyGameRecordList__C-detail-line"},W={key:0},U={class:"MyGameRecordList__C-inlineB"},X={key:0,class:"MyGameRecordList__C-inlineB purpleColor"},Y={key:1},Z={class:"MyGameRecordList__C-detail-line"},x={class:"MyGameRecordList__C-detail-line"},ee={key:1},se={class:"MyGameRecordList__C-detail-line"},te={key:1},ae={class:"MyGameRecordList__C-detail-line"},oe=G({__name:"MayrecordList",props:{mayrecord:{type:Array,required:!0}},setup(re){const{t:n}=R(),_=b(-1),v=t=>{switch(t){case"big":return"big";case"green":case"red":case"violet":return"";default:return t}},p=t=>{switch(t%2){case 1:return n("greenColor");default:return n("redColor")}},C=t=>{switch(t%2){case 1:return"greenColor";default:return"redColor"}},M=t=>{switch(t){case"small":return n("small");case"big":return n("big");case"green":return n("green");case"violet":return n("purpleColor");case"red":return n("redColor");default:return t}},h=t=>{_.value==t?_.value=-1:_.value=t};return(t,y)=>{const L=$("svg-icon");return r(),o("div",B,[(r(!0),o(m,null,g(t.mayrecord,(s,u)=>(r(),o(m,{key:u},[e("div",{class:"MyGameRecordList__C-item",onClick:k(f=>h(u),["stop","prevent"])},[e("div",{class:l(["MyGameRecordList__C-item-l",["MyGameRecordList__C-item-l-"+s.selectType]])},a(v(s.selectType)),3),e("div",V,[e("div",z,a(s.issueNumber),1),e("div",D,a(s.addTime),1)]),s.profitAmount?(r(),o("div",{key:0,class:l(["MyGameRecordList__C-item-r",{success:s.state}])},[s.profitAmount?(r(),o("div",{key:0,class:l({success:s.state})},a(s.state?t.$t("success"):t.$t("fail")),3)):c("v-if",!0),e("span",null,a(`${s.state?"+":"-"}${i(d)(s.profitAmount)}`),1)],2)):c("v-if",!0)],8,I),u==_.value?(r(),o("div",E,[e("div",H,a(t.$t("detailMay")),1),s.orderNumber?(r(),o("div",O,[e("span",null,a(t.$t("orderNoMay")),1),e("div",{onClick:f=>i(A)(s.orderNumber)},[N(a(s.orderNumber)+" ",1),T(L,{name:"copy"})],8,P)])):c("v-if",!0),e("div",j,[e("span",null,a(t.$t("issueMay")),1),e("div",null,a(s.issueNumber),1)]),e("div",q,[e("span",null,a(t.$t("amountMay")),1),e("div",null,a(i(d)(s.amount)),1)]),e("div",F,[e("span",null,a(t.$t("numMay")),1),e("div",null,a(s.betCount),1)]),e("div",J,[e("span",null,a(t.$t("afterTaxAmount")),1),e("div",K,a(i(d)(s.realAmount)),1)]),e("div",Q,[e("span",null,a(t.$t("tax")),1),e("div",null,a(i(d)(s.fee)),1)]),e("div",S,[e("span",null,a(t.$t("resultMay")),1),s.number?(r(),o("div",W,[e("div",U,a(s.number),1),e("div",{class:l(["MyGameRecordList__C-inlineB",[C(Number(s.number))]])},a(p(Number(s.number))),3),s.number==0||s.number==5?(r(),o("div",X,a(t.$t("purpleColor")),1)):c("v-if",!0),e("div",{class:l(["MyGameRecordList__C-inlineB",[Number(s.number)>4?"big":"small"]])},a(Number(s.number)>4?t.$t("big"):t.$t("small")),3)])):(r(),o("div",Y,"--"))]),e("div",Z,[e("span",null,a(t.$t("selectMay")),1),e("div",null,a(M(s.selectType)),1)]),e("div",x,[e("span",null,a(t.$t("statusMay")),1),s.state!=2?(r(),o("div",{key:0,class:l([s.state?"green":"red"])},a(s.state?t.$t("success"):t.$t("fail")),3)):(r(),o("div",ee,a(t.$t("k3RecordDesc9")),1))]),e("div",se,[e("span",null,a(t.$t("winOrLose")),1),s.state!=2?(r(),o("div",{key:0,class:l([s.state?"green":"red"])},a(`${s.state?"+":"-"} ${i(d)(s.profitAmount)}`),3)):(r(),o("div",te,"--"))]),e("div",ae,[e("span",null,a(t.$t("createTime")),1),e("div",null,a(s.addTime),1)])])):c("v-if",!0)],64))),128))])}}});const ie=w(oe,[["__scopeId","data-v-2faec5cb"],["__file","/usr/local/jenkins-prod/workspace/AR048-Pages-india-91club/src/components/Home/AllLotteryGames/WinGo/MayrecordList.vue"]]);export{ie as M};
