import{C as V,v as x,r as m,x as K,W as b,D as g,I as r,E as c,F as t,M as e,as as o,ay as p,K as n,G as N,H as w,ar as O,al as $,am as C}from"./common.modules-7b90237f.js";import{u as S,v as T}from"./page-saasLottery-D5-37e0c0cf.js";import{_ as F}from"./page-activity-ActivityDetail-27bd7cf0.js";import{u as H}from"./page-saasLottery-K3-85d5f7ea.js";import{E as j}from"./page-activity-Bonus-9d46271c.js";import"./page-home-other-f6cc81a5.js";import"./page-turntable-assets-d6267459.js";import"./native/index-ecf1462d.js";import"./en-91d2fc72.js";const M={class:"GameRecord__C"},W={class:"GameRecord__C-head"},q={class:"GameRecord__C-body"},A={class:"GameRecord__C-body-premium"},J={key:1,class:"GameRecord__C-body-empty"},Q={key:0,class:"GameRecord__C-foot"},U={class:"GameRecord__C-foot-page"},X=V({__name:"Record",setup(Y){const{gameCode:E,trigger:Z}=S();x();const{historyIssues:y,historyIssuesTotalPage:v}=H(),i=m([]),R=m(!1),f=K(()=>i.value.length?i.value:y.value),u=m(v.value),I=m(10),a=m(1),z=()=>{a.value<2||(a.value--,h())},D=()=>{a.value++,!(a.value>u.value)&&h()},h=async()=>{try{R.value=!0;const{result:s,data:_}=await T({gameCode:E.value,pageNo:a.value,pageSize:I.value});s&&(i.value=_.list||[],a.value=_.pageNo||1,u.value=_.totalPage||0)}catch{}finally{R.value=!1}};return b(y,()=>{i.value=[],a.value=1}),b(v,()=>{u.value=v.value}),(s,_)=>{const l=g("van-col"),k=g("van-row"),G=g("van-icon");return r(),c("div",M,[t("div",W,[e(k,null,{default:o(()=>[e(l,{span:"10"},{default:o(()=>[p(n(s.$t("gameRecordNum")),1)]),_:1}),e(l,{span:"8"},{default:o(()=>[p(n(s.$t("gameRecordTotal")),1)]),_:1}),e(l,{span:"6"},{default:o(()=>[p(n(s.$t("gameRecordResult")),1)]),_:1})]),_:1})]),t("div",q,[f.value.length?(r(!0),c(N,{key:0},w(f.value,(d,L)=>(r(),O(k,{key:L},{default:o(()=>[e(l,{span:"9"},{default:o(()=>[p(n(d.issueNumber),1)]),_:2},1024),e(l,{span:"2"},{default:o(()=>[t("span",null,n(d.sum),1)]),_:2},1024),e(l,{span:"4"},{default:o(()=>[t("span",null,n(d.sum>10?s.$t("big"):s.$t("small")),1)]),_:2},1024),e(l,{span:"4"},{default:o(()=>[t("span",null,n(d.sum%2?s.$t("k3Odd"):s.$t("k3Even")),1)]),_:2},1024),$(` <van-col span="6">
						<span>{{ item.sum }}</span>
						<span>{{ sumOfDigits(item.premium) > 10 ? t('common.big') : t('common.small') }}</span>
						<span>{{ sumOfDigits(item.premium) % 2 ? t('common.odd') : t('common.even') }}</span>
					</van-col> `),e(l,{span:"5"},{default:o(()=>[t("div",A,[(r(!0),c(N,null,w(d.premium,(P,B)=>(r(),c("div",{key:B,class:C("number"+P)},null,2))),128))])]),_:2},1024)]),_:2},1024))),128)):(r(),c("div",J,[e(j)]))]),f.value.length?(r(),c("div",Q,[t("div",{class:C(["GameRecord__C-foot-previous",{disabled:a.value<=1}]),onClick:z},[e(G,{name:"arrow-left",class:"GameRecord__C-icon",size:"20"})],2),t("div",U,n(a.value)+"/"+n(u.value),1),t("div",{class:C(["GameRecord__C-foot-next",{disabled:a.value>=u.value}]),onClick:D},[e(G,{name:"arrow",class:"GameRecord__C-icon",size:"20"})],2)])):$("v-if",!0)])}}});const ue=F(X,[["__scopeId","data-v-ad665b84"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/saasLottery/game/K3/components/k33/Record.vue"]]);export{ue as default};
