import{_ as a,q as t,f as e,e as c,b as s,a as n,aH as o,w as i}from"./index-4c745ab9.js";import{d as l,l as r,o as u,a as d,g as p,t as f,u as _,F as y,i as v,f as h,an as m,c as w}from"./vendor-edc0678f.js";const g={class:"content"},x={class:"list"},N=["onClick"],j={class:"left"},k={class:"right"},C=a({__name:"withdraw-list",props:{data:{type:Array,default:[]}},setup(a){const{_toast:n}=t(),o=l(),i=r(!0);return(t,l)=>{const r=s;return u(),d("div",g,[p("p",null,f(_(e)("coinList")),1),p("div",x,[(u(!0),d(y,null,v(a.data,(a,t)=>(u(),d("div",{class:"listCoin",key:t,onClick:t=>(a=>{var t,e;const s=c(),{userInfo:l}=m(s);if(1!==(null==(e=null==(t=l.value)?void 0:t.user)?void 0:e.isTest))if(1==a.type){if(["paxpay"].includes(__config._APP_ENV),i.value=!0,i.value){let t="";t=a.fee&&a.fee>0?"type=".concat(a.card||a.title,"&icon=").concat(a.icon,"&ratio=").concat(a.ratio,"&fee=").concat(a.fee):"type=".concat(a.card||a.title,"&icon=").concat(a.icon,"&ratio=").concat(a.ratio),setTimeout(()=>{o.push("/withdraw-apply?".concat(t))},200)}}else 2==a.type&&(["paxpay"].includes(__config._APP_ENV),i.value=!0,i.value&&o.push("/withdraw-apply?type=银行卡&icon=".concat(a.icon)));else n("mock_account_not_allowed")})(a)},[p("div",j,[h(r,{name:a.icon,class:"coin"},null,8,["name"]),p("span",null,f(a.title),1)]),p("div",k,[h(r,{name:"jiantou",class:"jiantou"})])],8,N))),128))])])}}},[["__scopeId","data-v-e77286cc"]]),P={__name:"index",setup(a){const t=n(),s=c();m(s);const l=w(()=>{let a=[];return t.getWithdrawList.forEach((t,c)=>{if("1"==t.status){let c={type:1};c.ratio=t.ratio||"",c.fee=t.fee,0==t.type?(c.icon=t.rechargeType,c.title=t.rechargeName):(c.icon="card",c.title=e("withdraw_card"),c.card=o(t.rechargeType).toLocaleUpperCase()),a.push(c)}}),a});return(a,t)=>{const c=i;return u(),d(y,null,[h(c,{currentName:_(e)("withdraw",["latcoin"])},null,8,["currentName"]),h(C,{data:_(l)},null,8,["data"])],64)}}};export{P as default};
