import{C as V,r as u,aM as W,W as T,U as G,R as M,D as y,I as i,E as p,F as a,M as s,as as n,K as t,G as j,H as F,ar as L,ay as k,al as D,am as h,J as q}from"./common.modules-7b90237f.js";import{u as A,E as J,v as K}from"./page-saasLottery-D5-37e0c0cf.js";import{_ as R}from"./page-activity-ActivityDetail-27bd7cf0.js";import"./page-home-other-f6cc81a5.js";import"./page-activity-Bonus-9d46271c.js";import"./page-turntable-assets-d6267459.js";import"./native/index-ecf1462d.js";import"./en-91d2fc72.js";const U={class:"trx_r"},O={class:"trx_r-head"},Q={class:"trx_r-body"},X={class:"fl"},Y=["onClick"],Z={class:"numberC"},ee={key:1,class:"trx_r-body-empty"},ae={key:0,class:"trx_r-foot"},se={class:"trx_r-foot-page"},te=V({__name:"record",emits:["changefive"],setup(oe,{emit:ne}){u([]);const I=W("trxWinHook"),{gameCode:$,trigger:B}=A(),m=u([]),{historyIssuesTotalPage:x,historyIssues:re,update:z}=I,d=u(x.value),E=u(10),r=u(1),N=u(!1),H=()=>{r.value<2||(r.value--,_())},P=()=>{r.value++,!(r.value>d.value)&&_()},_=async()=>{try{N.value=!0;const{result:l,data:c}=await K({gameCode:$.value,pageNo:r.value,pageSize:E.value});l&&(m.value=c.list.map(e=>{if(e.blockId){var v=e.blockId.length,f=e.blockId.substring(v-4,v);e.blockName="**"+f}if(e.issueNumber){var o=e.issueNumber.substring(0,3),b=e.issueNumber.length,C=e.issueNumber.substring(b-4,b);e.issue=o+"**"+C}if(e.blockTimestamp){let g=new Date(e.blockTimestamp);e.time=g.getHours()+":"+g.getMinutes()+":"+g.getSeconds()}return e})||[],r.value=c.pageNo||1,d.value=c.totalPage||0)}catch{}finally{N.value=!1}},S=l=>{let c=`https://tronscan.org/#/block/${l}`;window.location.href=c},w=u(!1);return T(x,()=>{d.value=x.value}),T(z,()=>{r.value=1,_()}),G(()=>{w.value=!0}),M(()=>{w.value=!1,_()}),B.on(()=>{_()}),(l,c)=>{const e=y("van-col"),v=y("van-row"),f=y("van-icon");return i(),p("div",U,[a("div",O,[s(v,null,{default:n(()=>[s(e,{span:"5"},{default:n(()=>[a("span",null,t(l.$t("winTrxNum")),1)]),_:1}),s(e,{span:"5"},{default:n(()=>[a("span",null,t(l.$t("winTrxDesc1")),1)]),_:1}),s(e,{span:"5"},{default:n(()=>[a("span",null,t(l.$t("winTrxDesc2")),1)]),_:1}),s(e,{span:"4"},{default:n(()=>[a("span",null,t(l.$t("winTrxDesc3")),1)]),_:1}),s(e,{span:"5"},{default:n(()=>[a("span",null,t(l.$t("winTrxDesc4")),1)]),_:1})]),_:1})]),a("div",Q,[m.value.length?(i(!0),p(j,{key:0},F(m.value,(o,b)=>(i(),L(v,{key:b},{default:n(()=>[s(e,{span:"5"},{default:n(()=>[k(t(o.issue),1)]),_:2},1024),s(e,{span:"6"},{default:n(()=>[a("div",X,[k(t(o.blockNumber)+" ",1),o.blockNumber?(i(),p("div",{key:0,class:"Binquire",onClick:C=>S(o.blockNumber)},null,8,Y)):D("v-if",!0)])]),_:2},1024),s(e,{span:"4"},{default:n(()=>[k(t(o.time),1)]),_:2},1024),s(e,{span:"4"},{default:n(()=>[k(t(o.blockName),1)]),_:2},1024),s(e,{span:"4"},{default:n(()=>[a("div",Z,[a("div",{class:h(["number",["num"+o.number]])},t(o.number),3),a("div",{class:h([Number(o.number)>4?"big":"small"])},t(Number(o.number)>4?"B":"S"),3)])]),_:2},1024)]),_:2},1024))),128)):(i(),p("div",ee,[s(q(J))]))]),m.value.length?(i(),p("div",ae,[a("div",{class:h(["trx_r-foot-previous",{disabled:r.value<=1}]),onClick:H},[s(f,{name:"arrow-left",class:"trx_r-icon",size:"20"})],2),a("div",se,t(r.value)+"/"+t(d.value),1),a("div",{class:h(["trx_r-foot-next",{disabled:r.value>=d.value}]),onClick:P},[s(f,{name:"arrow",class:"trx_r-icon",size:"20"})],2)])):D("v-if",!0)])}}});const me=R(te,[["__scopeId","data-v-0aa97d86"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/saasLottery/game/TrxWinGo/components/trx2/record.vue"]]);export{me as default};
