!function(){function e(e,t,a,n,i,r,l){try{var o=e[r](l),u=o.value}catch(e){return void a(e)}o.done?t(u):Promise.resolve(u).then(n,i)}function t(t){return function(){var a=this,n=arguments;return new Promise((function(i,r){var l=t.apply(a,n);function o(t){e(l,i,r,o,u,"next",t)}function u(t){e(l,i,r,o,u,"throw",t)}o(void 0)}))}}System.register(["./vendor-legacy--aGazLR_.js","./common-store-legacy-wEU5_K-j.js"],(function(e,a){"use strict";var n,i,r,l,o,u,d;return{setters:[e=>{n=e.d,i=e.r,r=e.G,l=e.s},e=>{o=e.i,u=e.b3,d=e.b4}],execute:function(){const a=new Map([[1,o.global.t("银行卡")],[2,o.global.t("支付宝")],[3,o.global.t("微信")],[4,o.global.t("数字货币")],[8,o.global.t("三方钱包")]]);e("u",n("withdrawal",(()=>{const e=i({bindPhone:"0",bindEmail:"0",bindKYC:"0",setRealName:"",verificationMethod:"0",verificationFrequency:"0",withdrawalCount:"0",userCheckSwitch:"",userWithdrawTime:0}),n=function(){var a=t((function*(){const t=yield u();1===t.code&&(e.value=t.data)}));return function(){return a.apply(this,arguments)}}();n();const s=i({cardInfoList:[],alreadyWithdrawTimes:0,alipayList:[],wechatList:[],userUsdtAccountInfoRespVO:[],virtualAccountInfoList:[],lastWithdrawWay:null,lastReceiptCodeType:null,lastWithdrawVirtualCurrencyAccountId:null,withdrawableAmount:"",accountBalance:"",unwithdrawableAmount:"",realName:"",neededValidBetAmount:"",checkAmountTotal:"",remainingWithdrawTimes:0,minAmount:"",maxAmount:"",usdtMinCount:0,usdtMaxCount:0,unwithdrawableStartTime:"",unwithdrawableEndTime:"",description:"",remainingFreeWithdrawalTimes:0,serviceFeeRate:"",serviceFeeMinAmount:"",serviceFeeSwitch:0,withdrawLimitSwitch:0,withdrawLimitShareUserCount:null,totalShareValidUserCount:null,lockAmount:"",usdtChainTypes:[],erc20ServiceFeeRatio:"",trc20ServiceFeeRatio:"",totalCashgift:"",isBindPhone:0,isBindEmail:0,isBindKYC:0,isSetRealName:0,isSetPaymentPassword:0,verificationMethod:0,verificationFrequency:0,withdrawalCount:"",erc20ServiceFee:"",trc20ServiceFee:"",maxAmountWithdrawalChannel:0,dayWithdrawAmount:0,dayWithdrawTimes:0,withdrawTypeConfigs:[]}),c=function(){var e=t((function*(){const e=yield d();if(!e.success)return e.message&&l(e.message);const{data:t}=e;s.value=t;try{if(h.value=[...new Set(s.value.withdrawTypeConfigs.map((e=>e.withdrawType)))],h.value.length>0)for(const e of h.value)w.value[e]=s.value.withdrawTypeConfigs.filter((t=>t.withdrawType===e));v.value=h.value[0]}catch(a){}return e}));return function(){return e.apply(this,arguments)}}(),h=i([]),w=i({}),v=i(0),m=i(0),f=r((()=>h.value.map((e=>({label:a.get(e),value:e}))))),y=r((()=>{var e;return null!==(e=w.value[v.value])&&void 0!==e?e:[]})),g=r((()=>{var e;return null!==(e=y.value[m.value])&&void 0!==e?e:{}})),b=r((()=>{const{cardInfoList:e,alipayList:t,wechatList:a,virtualAccountInfoList:n,userUsdtAccountInfoRespVO:i}=s.value,r=g.value.bindCount;return{1:{title:`${o.global.t("银行卡")}(${e.length}/${r})`,ways:e,bindRoute:"/mine/addBankCard"},2:{title:`${o.global.t("支付宝")}(${t.length}/${r})`,ways:t,bindRoute:"/mine/addWithdrawalWays/2"},3:{title:`${o.global.t("微信")}(${a.length}/${r})`,ways:a,bindRoute:"/mine/addWithdrawalWays/3"},4:{title:`${o.global.t("数字货币")}(${i.length}/${r})`,ways:i,bindRoute:"/mine/addDigitalCurrency"},8:{title:`${o.global.t("三方钱包")}(${null==n?void 0:n.length}/${r})`,ways:n,bindRoute:"/mine/addThirdPartyWallet"}}})),C=i("");return{withdrawConfig:e,onRefreshWithdrawalConfig:n,userWithdrawalInfo:s,onGetUserWithdrawalInfo:c,availableWithdrawalWays:h,ways:f,selectedChannel:v,withdrawalChannel:w,selectedType:m,currentType:g,currentChannel:y,userConfig:b,amount:C}})))}}}))}();
