System.register(["./index-legacy-9fc2ee5c.js","./vendor-legacy-aeda4e3d.js","./index-legacy-6df88539.js","./filters-legacy-a7d53620.js","./index-legacy-ccba432a.js"],function(e,t){"use strict";var a,i,l,s,n,o,r,d,m,c,v,u,f,g,h,p,y,b,_,j,x,w,O,R;return{setters:[e=>{a=e._,i=e.f,l=e.i,s=e.w,n=e.h},e=>{o=e.o,r=e.a,d=e.g,m=e.t,c=e.u,v=e.k,u=e.l,f=e.q,g=e.f,h=e.h,p=e.w,y=e.e,b=e.ar,_=e.F,j=e.i},null,e=>{x=e.t,w=e.k},e=>{O=e.p,R=e.i}],execute:function(){var t=document.createElement("style");t.textContent=".recordItem[data-v-42460100]{padding:.8rem .4rem .533333rem;border-bottom:.026667rem solid var(--ex-border-color)}.recordItem .item[data-v-42460100]{padding:.266667rem 0;display:flex;justify-content:space-between;align-items:center;font-size:.32rem;color:var(--ex-passive-font-color)}.recordItem .item .itemRight[data-v-42460100]{font-size:.32rem;color:var(--ex-default-font-color)}.columnFlex[data-v-a872cefe]{height:100vh}.invest[data-v-a872cefe]{padding:.266667rem .4rem}.invest .item[data-v-a872cefe]{padding:.266667rem 0;display:flex;justify-content:space-between;align-items:center;font-size:.32rem;color:var(--ex-passive-font-color)}.invest .item .itemRight[data-v-a872cefe]{font-size:.32rem;color:var(--ex-default-font-color)}.invest .item .blueColor[data-v-a872cefe]{color:var(--ex-font-color9)}.record[data-v-a872cefe]{font-size:.426667rem;color:var(--ex-default-font-color);padding:.533333rem .4rem 0;border-top:.026667rem solid var(--ex-border-color)}.recordList[data-v-a872cefe]{flex:1;overflow:auto}[data-v-a872cefe] .van-list__finished-text{height:2.106667rem;display:flex;align-items:center;justify-content:center;font-size:.373333rem;color:var(--ex-passive-font-color)}\n",document.head.appendChild(t);const I={class:"recordItem"},C={class:"item"},k={class:"itemRight"},z={class:"item"},T={class:"itemRight fw-num"},U={class:"item"},L={class:"itemRight fw-num"},S={class:"item"},D={class:"itemRight fw-num"},E={class:"item"},F={class:"itemRight fw-num"},A={class:"item"},N={class:"itemRight fw-num"},q={class:"item"},H=a({__name:"recordItem",props:{itemObj:{type:Object,default:{}}},setup:e=>(t,a)=>(o(),r("div",I,[d("div",C,[d("div",null,m(c(i)("fund_name")),1),d("div",k,m(e.itemObj.planTitle),1)]),d("div",z,[d("div",null,m(c(i)("Lock-up_days")),1),d("div",T,m(e.itemObj.days),1)]),d("div",U,[d("div",null,m(c(i)("host_dailyrateof_return")),1),d("div",L,m(e.itemObj.avgRate)+"%",1)]),d("div",S,[d("div",null,m(c(i)("investment_amount")),1),d("div",D,m(e.itemObj.amount)+" "+m(e.itemObj.coin?e.itemObj.coin.toUpperCase():""),1)]),d("div",E,[d("div",null,m(c(i)("Estimated income")),1),d("div",F,m(c(l)(e.itemObj.amount*e.itemObj.days*.05/100,6))+" "+m(e.itemObj.coin?e.itemObj.coin.toUpperCase():""),1)]),d("div",A,[d("div",null,m(c(i)("Arrival_time")),1),d("div",N,m(c(x)(e.itemObj.settlementType,e.itemObj.days,e.itemObj.params.createTime)),1)]),d("div",q,[d("div",null,m(c(i)("mining_status")),1),d("div",{class:"itemRight fw-num",style:v({color:c(w)(e.itemObj.status).color})},m(c(w)(e.itemObj.status).name),5)])]))},[["__scopeId","data-v-42460100"]]),K={class:"columnFlex"},B={class:"invest"},G={class:"item"},J={class:"itemRight fw-num"},M={class:"item"},P={class:"itemRight fw-num"},Q={class:"item"},V={class:"itemRight blueColor fw-num"},W={class:"item"},X={class:"itemRight fw-num"},Y={class:"record"},Z={class:"recordList"};e("default",a({__name:"myInvestment",setup(e){const t=u({}),a=u([]),l=u(1),v=u(5),x=u(!1),w=u(!1),I=u(!1),C=u(0),k=async()=>{try{const e=await z();a.value=[...a.value,...e],0===a.value.length?x.value=!0:x.value=!1,a.value.length===C.value&&(I.value=!0),l.value++}catch(e){}finally{w.value=!1}},z=async()=>{try{const e=await R(l.value,v.value);if(200===e.code)return C.value=e.total,e.rows;I.value=!0}catch(e){}};return f(()=>{(async()=>{try{const e=await O();200===e.code&&(t.value=e.data)}catch(e){}})(),k()}),(e,l)=>{const v=b,u=n;return o(),r("div",K,[g(s,{currentName:c(i)("my_invest")},null,8,["currentName"]),d("div",B,[d("div",G,[d("div",null,m(c(i)("sum_bet_value")),1),d("div",J,m(t.value.sumAmount)+" USDT",1)]),d("div",M,[d("div",null,m(c(i)("earn_rewards")),1),d("div",P,m(t.value.commission)+" USDT",1)]),d("div",Q,[d("div",null,m(c(i)("Cumulative_income")),1),d("div",V,m(t.value.sumEarn)+" USDT",1)]),d("div",W,[d("div",null,m(c(i)("number_of_positions")),1),d("div",X,m(t.value.position),1)])]),d("div",Y,m(c(i)("transaction_record")),1),d("div",Z,[a.value.length>0&&!x.value?(o(),h(v,{key:0,loading:w.value,"onUpdate:loading":l[0]||(l[0]=e=>w.value=e),finished:I.value,"finished-text":c(i)("no_more_data"),"loading-text":c(i)("loading"),onLoad:k},{default:p(()=>[(o(!0),r(_,null,j(a.value,e=>(o(),h(H,{key:e,itemObj:e},null,8,["itemObj"]))),128))]),_:1},8,["loading","finished","finished-text","loading-text"])):y("",!0),0===a.value.length&&x.value?(o(),h(u,{key:1})):y("",!0)])])}}},[["__scopeId","data-v-a872cefe"]]))}}});
