import{_ as a}from"./h-table-paging_1730355973.js";import{d as e,p as s,c as l,e as t,r as n,y as i,z as o,o as p,f as r,P as d,g,F as u,j as m,l as f,N as c,Y as v,h as I,at as _,a3 as x,aA as b,B as y,C as z,_ as C}from"./index_1730355973.js";/* empty css                  */import{_ as h}from"./index_173035597335.js";import{_ as j}from"./index_173035597333.js";const P=a=>(y("data-v-fb5b8a4c"),a=a(),z(),a),A={class:"page"},L={class:"page-body"},N={key:0},S=P((()=>g("span",null,"Date: ",-1))),D=P((()=>g("span",null,"Produção: ",-1))),T={style:{color:"#00e7bb"}},k=P((()=>g("span",null,"Tipo: ",-1))),F=P((()=>g("span",null,"Jogo: ",-1))),J={style:{color:"#00e7bb"}},O={style:{color:"#ffe726"}},w=C(e({__name:"apostas",setup(e){const y=s(),z=l({pageIndex:1,pageSize:8,pageTotal:0}),C=a=>{let e="";return a.replace(/游戏ID：(.*?)\s/g,((a,s,l,t)=>(e=s,a))),e},P=t((()=>a=>{let e=C(a),s=y.originalList.find((a=>a.gameId==e));return s?y.providerList.find((a=>a.providerId===s.providerId)).gameProviderName:""})),w=t((()=>a=>{let e=C(a);if(!e)return"";let s=y.originalList.find((a=>a.gameId==e));return s?s.gameAlias:""})),B=t((()=>a=>{let e=C(a);if(!e)return"";let s=y.originalList.find((a=>a.gameId==e));if(!s)return"";let l=y.gameClassData.find((a=>a.gameClassId===s.gameClassId[s.gameClassId.length-1]));return l?l.gameClassName:""})),M=n([]);i((()=>{Y()}));const Y=()=>{o.getCoinsDetailLog({pageIndex:z.pageIndex,pageSize:z.pageSize,types:[10,20]}).then((a=>{M.value=a.data.rows,z.pageTotal=a.data.total}))},q=a=>{z.pageIndex=a,Y()},E=a=>{z.pageIndex=a,Y()};return(e,s)=>{const l=j,t=h,n=b,i=a;return p(),r("div",A,[d(l,{title:"Minhas Apostas de Jogo"}),g("div",L,[M.value.length>0?(p(),r("div",N,[(p(!0),r(u,null,m(M.value,((a,e)=>(p(),f(t,{key:e},{default:c((()=>[g("p",null,[S,g("span",null,v(I(_)(a.createdAt)),1)]),g("p",null,[D,g("span",T,v(P.value(a.detail)),1)]),g("p",null,[k,g("span",null,v(B.value(a.detail)),1)]),g("p",null,[F,g("span",J,v(w.value(a.detail)),1)]),g("p",null,[g("span",null,v(10==a.type?"Apostar":"Profito e perda")+": ",1),g("span",O,v(I(x)(Number(a.changeCoins/1e4).toFixed(2))),1)])])),_:2},1024)))),128))])):(p(),f(n,{key:1,description:"Sem apostas","image-size":"100"})),d(i,{total:z.pageTotal,"page-size":z.pageSize,onOnPrevious:q,onOnNextPage:E},null,8,["total","page-size"])])])}}}),[["__scopeId","data-v-fb5b8a4c"]]);export{w as default};
