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