import{b7 as V,r as v,Q as w,aY as t,aT as r,a$ as n,b9 as d,N as s,bf as c,b_ as p,b0 as u,bg as y,bh as D,aS as T,bc as h,c as F,bq as O,ba as R,bo as q,aX as H}from"./index-xnhGKCfe.js";import{C as M,R as Q}from"./index-BprM6Ssl.js";import{u as W}from"./BettingPopup-BrL_1D5T.js";import{E as X}from"./index-DxHrjCNU.js";import{a as Y}from"./main.vue_vue_type_style_index_0_scoped_cf719de6_lang-BLJh8Idj.js";/* empty css              *//* empty css              */import"./index-BaI210iY.js";import"./index-CPJxzQTf.js";import"./dragon-65oA2ftS.js";import"./useWorkerIntervalFn.hook-BuwsgSxq.js";import"./tips-DJIxz9GI.js";import"./currency-DTUBf2lI.js";import"./countdown-Bkuhrach.js";import"./wingo-D-E9w345.js";import"./index-BPVaJMve.js";import"./use-route-ooe9RtXE.js";const j={class:"record"},A={class:"record-head"},G={class:"record-body"},J={key:0},K={key:1},U={class:"record-origin"},Z={key:1,class:"record-origin-I green"},ee={key:2,class:"record-origin-I red"},oe={key:0,class:"flex-center record-body-loading",style:{height:"100%"}},ae={key:1,class:"record-body-empty flex-center"},se={key:0,class:"record-foot"},re={class:"record-foot-page"},te=V({__name:"record",setup(ne){const{historyIssues:k,historyIssuesTotalPage:b,gameCode:$}=W(),_=v([]),g=v(!1),f=F(()=>_.value.length?_.value:k.value),m=v(b.value),x=v(10),l=v(1),z=()=>{l.value<2||(l.value--,C())},L=()=>{l.value++,!(l.value>m.value)&&C()},C=async()=>{try{g.value=!0;const{result:o,data:e}=await Y({gameCode:$.value,pageNo:l.value,pageSize:x.value});o&&(_.value=e.list||[],l.value=e.pageNo||1,m.value=e.totalPage||0)}catch{}finally{g.value=!1}},P=o=>parseInt(o,10)%2!==0,S=o=>{let e="";switch(P(o)?e="greenColor":e="defaultColor",o){case"0":e="mixedColor0";break;case"5":e="mixedColor5";break}return e};return w(k,()=>{_.value=[],l.value=1}),w(b,()=>{m.value=b.value}),(o,e)=>{const i=M,N=Q,B=O,I=q;return r(),t("div",j,[n("div",A,[s(N,null,{default:c(()=>[s(i,{span:"10"},{default:c(()=>[p(u(o.$t("common.issueMay")),1)]),_:1}),s(i,{span:"5"},{default:c(()=>[p(u(o.$t("common.number")),1)]),_:1}),s(i,{span:"5"},{default:c(()=>[p(u(o.$t("common.bigOrSmall")),1)]),_:1}),s(i,{span:"4"},{default:c(()=>[p(u(o.$t("common.color")),1)]),_:1})]),_:1})]),n("div",G,[(r(!0),t(y,null,D(f.value,(a,E)=>(r(),T(N,{key:E},{default:c(()=>[s(i,{span:"10"},{default:c(()=>[p(u(a.issueNumber),1)]),_:2},1024),s(i,{span:"5",class:"numcenter"},{default:c(()=>[n("div",{class:h(["record-body-num",S(a.number)])},u(a.number),3)]),_:2},1024),s(i,{span:"5"},{default:c(()=>[Number(a.number)>4?(r(),t("span",J,u(o.$t("common.big")),1)):(r(),t("span",K,u(o.$t("common.small")),1))]),_:2},1024),s(i,{span:"4"},{default:c(()=>[n("div",U,[a.number=="0"?(r(),t(y,{key:0},[e[0]||(e[0]=n("div",{class:"record-origin-I red"},null,-1)),e[1]||(e[1]=n("div",{class:"record-origin-I violet"},null,-1))],64)):d("",!0),a.number=="1"||a.number=="3"||a.number=="7"||a.number=="9"?(r(),t("div",Z)):d("",!0),a.number=="2"||a.number=="4"||a.number=="6"||a.number=="8"?(r(),t("div",ee)):d("",!0),a.number=="5"?(r(),t(y,{key:3},[e[2]||(e[2]=n("div",{class:"record-origin-I green"},null,-1)),e[3]||(e[3]=n("div",{class:"record-origin-I violet"},null,-1))],64)):d("",!0)])]),_:2},1024)]),_:2},1024))),128)),g.value?(r(),t("section",oe,[s(B,{type:"spinner",color:"#FD565C"})])):d("",!0),f.value.length===0&&!g.value?(r(),t("div",ae,[s(R(X))])):d("",!0)]),f.value.length?(r(),t("div",se,[n("div",{class:h(["record-foot-previous",{disabled:l.value<=1}]),onClick:z},[s(I,{name:"arrow-left",class:"record-icon",size:"20"})],2),n("div",re,u(l.value)+"/"+u(m.value),1),n("div",{class:h(["record-foot-next",{disabled:l.value>=m.value}]),onClick:L},[s(I,{name:"arrow",class:"record-icon",size:"20"})],2)])):d("",!0)])}}}),Ie=H(te,[["__scopeId","data-v-35e3faa1"]]);export{Ie as default};
