1import{n as M,ci as j,p as ee,A as G,bd as U,a8 as X,bo as B,b$ as oe,b6 as ge,a3 as H,Q as he,aH as V,gF as re,aL as K,bl as ye,bf as ve,R as be,bC as Ce,ei as we,bL as Re,bH as ce,mS as Se,bK as J}from"./commonChunk.BS0jzoOr.js";import{l as Ne,r as I,d as F,s as pe,e as o,j as ae,c as le,O as ie,a5 as Y,S as We}from"../vendors/vendor-stable.Bob7ohop.js";import{n as Q,cO as xe,aw as Ie,b1 as fe,C as ke,t as Pe,l as Oe,s as Ae,ff as ze,aB as de,aD as Be,aJ as De}from"./0_EntryLoginRegisterChunk.CK55L-p4.js";import{u as Me,a6 as je,L as Ue,w as Fe,d as Qe,x as Le,g as Z}from"./0_RechargeDialogsChunk.3jXtcyVz.js";import{t as D}from"./vendorChunk.LVLHXJtX.js";import{P as $e}from"./0_WithdrawChunk.svEHwTJi.js";var k=(e=>(e[e.All=0]="All",e[e.Recharge=1]="Recharge",e[e.Purchase=2]="Purchase",e[e.Sale=3]="Sale",e[e.Withdraw=4]="Withdraw",e))(k||{}),C=(e=>(e[e.ScanPaymentZero=0]="ScanPaymentZero",e[e.BankCard=1]="BankCard",e[e.Alipay=2]="Alipay",e[e.WeChat=3]="WeChat",e[e.AlipayQRCode=4]="AlipayQRCode",e[e.WeChatQRCode=5]="WeChatQRCode",e[e.GameWalletBalance=6]="GameWalletBalance",e[e.QQAccount=7]="QQAccount",e[e.QQQRCode=8]="QQQRCode",e[e.DigitalRMB=9]="DigitalRMB",e[e.TransferBalance=10]="TransferBalance",e[e.USDTBalance=11]="USDTBalance",e[e.ScanPayment=12]="ScanPayment",e[e.BalancePayment=13]="BalancePayment",e[e.Upi=15]="Upi",e[e.Zalo=1e3]="Zalo",e[e.Momo=1001]="Momo",e))(C||{}),t=(e=>(e[e.PendingReview=1]="PendingReview",e[e.PendingConfirmation=2]="PendingConfirmation",e[e.PendingPayment=3]="PendingPayment",e[e.PaymentDelayed=4]="PaymentDelayed",e[e.PendingRelease=5]="PendingRelease",e[e.ReleaseDelayed=6]="ReleaseDelayed",e[e.Complaint=7]="Complaint",e[e.RightsProtection=8]="RightsProtection",e[e.TransactionSuccess=9]="TransactionSuccess",e[e.TransactionFailed=10]="TransactionFailed",e[e.ReviewTimeout=11]="ReviewTimeout",e[e.Canceled=12]="Canceled",e[e.WithdrawMoney=13]="WithdrawMoney",e))(t||{}),E=(e=>(e[e.ImmediateRecharge=120205]="ImmediateRecharge",e[e.ReleaseUponArrival=120204]="ReleaseUponArrival",e[e.ConfirmationSale=120203]="ConfirmationSale",e))(E||{}),_e=(e=>(e[e.NormalOrder=0]="NormalOrder",e[e.VIPRecharge=1]="VIPRecharge",e[e.VIPWithdrawal=2]="VIPWithdrawal",e))(_e||{});const Ve=e=>M.request({baseURL:"/",method:"post",url:"/wallet/v2/noWalletBubble/userIdBubble",data:e,headers:{...Q()}},{error:{action:"noMessage",dataChecker:l=>l.response.data.code===j.SUCCESSCODE},crypto:{enable:!1}}),qe=e=>M.request({baseURL:"/",method:"post",url:"/wallet/v2/noWalletBubble/getUserBubbleInfo",data:e,headers:{...Q()}},{crypto:{enable:!1},error:{dataChecker:l=>l.response.data.code===j.SUCCESSCODE}}),Te=e=>M.request({baseURL:"/",method:"post",url:"/wallet/v2/noWalletBubble/depositPay",data:e,headers:{...Q()}},{error:{dataChecker:l=>l.response.data.code===j.SUCCESSCODE},crypto:{enable:!1}}),Ze=e=>M.request({baseURL:"/",method:"post",url:"/wallet/v2/noWalletBubble/sellConfirm",data:e,headers:{...Q()}},{error:{dataChecker:l=>l.response.data.code===j.SUCCESSCODE},crypto:{enable:!1}}),He=e=>M.request({baseURL:"/",method:"post",url:"/wallet/v2/noWalletBubble/sellPass",data:e,headers:{...Q()}},{error:{dataChecker:l=>l.response.data.code===j.SUCCESSCODE},crypto:{enable:!1}}),Ge=e=>M.request({baseURL:"/",method:"post",url:"/wallet/v2/noWalletBubble/safeCheck",data:e,headers:{...Q()}},{error:{action:"noMessage",dataChecker:l=>l.response.data.code===j.SUCCESSCODE},crypto:{enable:!1}}),q=Ne("no-wallet-order",()=>{var u,i,b,p,w;const e=ee(),l=I(!1),n=I(),a=I(""),d=I(""),_=I({merchantMemberNo:String((u=e.userInfos)==null?void 0:u.username),depositAppId:String((b=(i=n.value)==null?void 0:i.depositAppId)!=null?b:""),merchCode:(p=n.value)!=null&&p.merchCode?String((w=n.value)==null?void 0:w.merchCode):"",orderType:k.All,size:10,lastOrderNo:""}),N=()=>{var s,r,y,c;_.value.merchantMemberNo=String((s=e.userInfos)==null?void 0:s.username),_.value.lastOrderNo="",_.value.orderType=k.All,n.value&&(_.value.depositAppId=String((r=n.value)==null?void 0:r.depositAppId),_.value.merchCode=(y=n.value)!=null&&y.merchCode?String((c=n.value)==null?void 0:c.merchCode):"")},g=async()=>{var c,f,h;if(!e.userInfos)return;l.value=!0;const s={merchantMemberNo:String((c=e.userInfos)==null?void 0:c.username),depositAppId:((f=e.userInfos)==null?void 0:f.noWalletMerchNo)||
1((h=e.userInfos)==null?void 0:h.withdrawNoWalletMerchNo)},[r,y]=await D(Ve(s));l.value=!1,!r&&A(y.data.data)},A=s=>{var r,y,c,f;s&&(((r=e.userInfos)==null?void 0:r.currency)==="CNY"&&((y=s.orderNum)!=null?y:0)>((f=(c=n.value)==null?void 0:c.orderNum)!=null?f:0)&&xe.NoWalletOrderCNY(),n.value={...n.value,...s},s!=null&&s.depositAppId&&(s!=null&&s.merchCode)?(_.value.depositAppId=s==null?void 0:s.depositAppId,_.value.merchCode=s==null?void 0:s.merchCode):n.value.depositAppId=d.value)},P=Me(qe,{immediate:!1,defaultPageSize:10,alias:{pageSize:"size",page:"page"},payload:_,transformFn(s){var y,c,f,h,R,W,S,z;const r=(y=s.data)==null?void 0:y.data;return r&&(_.value.lastOrderNo=(f=(c=r==null?void 0:r.list[r.list.length-1])==null?void 0:c.orderNo)!=null?f:"",_.value.orderType=(R=(h=r==null?void 0:r.list[(r==null?void 0:r.list.length)-1])==null?void 0:h.orderType)!=null?R:k.All,a.value=r==null?void 0:r.url),{data:(W=r==null?void 0:r.list)!=null?W:[],total:(z=(S=n.value)==null?void 0:S.orderNum)!=null?z:0}}});return{orderPayload:_,bubbleInfo:n,listObj:P,url:a,initPayload:N,getBubbleInfo:g,setBubbleInfo:A,reset:()=>{_.value.lastOrderNo="",_.value.orderType=k.All,P.reset()},pushDepositAppId:d}}),Go=Object.freeze(Object.defineProperty({__proto__:null,useNoWalletOrderStore:q},Symbol.toStringTag,{value:"Module"})),Ye=e=>{const{t:l}=G();return{[t.PendingReview]:l("lobby.modal.noWalletOrder.pendingReview"),[t.PendingConfirmation]:l("lobby.modal.noWalletOrder.pendingConfirmation"),[t.PendingPayment]:l("lobby.modal.noWalletOrder.pendingPayment"),[t.PaymentDelayed]:l("lobby.modal.noWalletOrder.paymentDelayed"),[t.PendingRelease]:l("lobby.modal.noWalletOrder.pendingRelease"),[t.ReleaseDelayed]:l("lobby.modal.noWalletOrder.releaseDelayed"),[t.Complaint]:l("lobby.modal.noWalletOrder.complaint"),[t.RightsProtection]:l("lobby.modal.noWalletOrder.rightsProtection"),[t.TransactionSuccess]:l("lobby.modal.noWalletOrder.transactionSuccess"),[t.TransactionFailed]:l("lobby.modal.noWalletOrder.reviewTimeout"),[t.ReviewTimeout]:l("lobby.modal.noWalletOrder.reviewTimeout"),[t.Canceled]:l("lobby.modal.noWalletOrder.canceled"),[t.WithdrawMoney]:l("lobby.modal.noWalletOrder.pendingReview")}[e]},me=(e,l,n)=>{const{t:a}=G();if(e===k.Recharge&&n.kind===_e.NormalOrder)return a("lobby.modal.noWalletOrder.continuePayment");if(e===k.Purchase)switch(l){case t.PendingPayment:return a("lobby.modal.noWalletOrder.transferCompleted");case t.ReviewTimeout:return a("lobby.modal.noWalletOrder.handlingException");case t.Complaint:return a("lobby.modal.noWalletOrder.handlingComplaint");case t.RightsProtection:return a("lobby.modal.noWalletOrder.handlingRightsProtection");case t.TransactionFailed:return a("lobby.modal.noWalletOrder.handlingException");default:return""}if(e===k.Sale)switch(l){case t.PendingConfirmation:return a("lobby.modal.noWalletOrder.confirmSale");case t.PendingRelease:return a("lobby.modal.noWalletOrder.releaseOnArrival");case t.ReviewTimeout:return a("lobby.modal.noWalletOrder.handlingException");case t.Complaint:return a("lobby.modal.noWalletOrder.handlingComplaint");case t.RightsProtection:return a("lobby.modal.noWalletOrder.handlingRightsProtection");case t.TransactionFailed:return a("lobby.modal.noWalletOrder.handlingException");default:return""}return""},ue={[C.BankCard]:"/lobby_asset/common/common/wallet/zhifu_icon_yinlian.png",[C.Alipay]:"/lobby_asset/common/common/wallet/zhifu_icon_zhifubaozhuanzhang.png",[C.WeChat]:"/lobby_asset/common/common/wallet/zhifu_icon_wexinzhuanzhang.png",[C.AlipayQRCode]:"/lobby_asset/common/common/wallet/zhifu_icon_zhifubaosaoma.png",[C.WeChatQRCode]:"/lobby_asset/common/common/wallet/zhifu_icon_wexinsaoma.png",[C.GameWalletBalance]:"/lobby_asset/common/common/wallet/zhifu_icon_youxiqianbaoyue.png",[C.QQAccount]:"/lobby_asset/common/common/wallet/zhifu_icon_qqzhuanzhang.png",[C.QQQRCode]:"/lobby_asset/common/common/wallet/zhifu_icon_qqsaoma.png",[C.DigitalRMB]:"/lobby_asset/common/common/wallet/zhifu_icon_shuzirenminbi.png",[C.TransferBalance]:"/lobby_asset/common/common/wallet/zhifu_icon_banzhuan.png",[C.USDTBalance]:"/lobby_asset/common/common/wallet/zhifu_icon_usdt.png",[C.ScanPayment]:"/lobby_asset/common/common/wallet/zhifu_icon_saomazhifu.png",[C.BalancePayment]:"/lobby_asset/common/common/wallet/zhifu_icon_yuezhifu.png",[C.Upi]:"/lobby_asset/common/common/wallet/zhifu_icon_UPI.png",[C.Zalo]:"/lobby_asset/common/common/wallet/zhifu_icon_zalopay.png",[C.Momo]:"/lobby_asset/common/common/wallet/zhifu_icon_momo.png"},Je="_form_1xv2k_91",Xe="_info_1xv2k_101",Ke="_amount_1xv2k_106",Ee="_value_1xv2k_120",eo="_mt20_1xv2k_124",oo="_label_1xv2k_130",ao="_text_1xv2k_136",lo="_icon_1xv2k_146",no="_show_1xv2k_152",to="_hidden_1xv2k_155",so="_button_1xv2k_171",x={form:Je,info:Xe,amount:Ke,value:Ee,mt20:eo,"item-password":"_item-password_1xv2k_127",label:oo,text:ao,"no-icon":"_no-icon_1xv2k_142",icon:lo,show:no,hidden:to,button:so};function ro(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ae(e)}const[co]=U("pages-dialogs-no-wallet-password-dialog"),io=F({name:co,props:{order:Object},emits:["close"],setup(e,{emit:l}){const{t:n}=G(),a=I(!0),d=pe({password:""}),_=I(),N=I(!1),g=q(),A=async()=>{var s,r,y,c;if(!g.bubbleInfo||!e.order)return;N.value=!0;const{merchantMemberNo:m,depositAppId:u,merchCode:i}=g.bubbleInfo,b={merchantMemberNo:m,depositAppId:u,merchCode:i,merchantOrderNo:(s=e.order)==null?void 0:s.orderNo,password:ge.SHA256(d.password).toString()},p={[t.PendingPayment]:Te,[t.PendingRelease]:He},[w]=await D((y=p[(r=e.order)==null?void 0:r.state])==null?void 0:y.call(p,b));N.value=!1,!w&&(g.initPayload(),H.success({message:((c=e.order)==null?void 0:c.state)===t.PendingPayment?n("lobby.modal.noWalletOrder.rechargeSuccess"):n("lobby.modal.noWalletOrder.transactionSuccess")}),l("close"),g.reset())},P=()=>{a.value=!a.value};return()=>{let m;return o(fe,{ref:_,model:d,layout:"horizontal",onSubmit:A,class:x.form},{default:()=>{var u,i,b,p,w,s,r,y,c;return[o("div",{class:x.info},[((u=e.order)==null?void 0:u.state)===t.PendingPayment&&o("p",{class:x.amount},[X((b=(i=e.order)==null?void 0:i.amount)!=null?b:0,{sign:"auto",toFixedType:"currency"}).toString()]),((p=e.order)==null?void 0:p.state)===t.PendingRelease&&o("div",null,[o("span",null,[n("lobby.modal.noWalletOrder.arrivalAmount")]),o("span",{class:x.value},[X((s=(w=e.order)==null?void 0:w.amount)!=null?s:0,{sign:!1,toFixedType:"currency"}).toString()])]),((r=e.order)==null?void 0:r.state)===t.PendingRelease&&o("div",{class:x.mt20},[o("span",null,[n("lobby.modal.noWalletOrder.payerName")]),o("span",{class:x.value},[(y=e.order)==null?void 0:y.name])]),((c=e.order)==null?void 0:c.state)===t.PendingPayment&&o("div",null,[o("span",null,[n("lobby.modal.noWalletOrder.paymentMethod")]),o("span",{class:x.value},[n("lobby.modal.pay.gameWalletBalance")])])]),o(Ie,{name:"password",label:"",required:!0,validateTrigger:["onBlur"],rules:[f=>f?!0:n("lobby.modal.pay.passwordNotEmpty")]},{default:()=>[o("div",{class:x["item-password"]},[o("div",{class:x.label},[o("div",{class:x.text},[o(B,{class:x["no-icon"],src:"/lobby_asset/common/common/deposit/icon_cz_no.png"},null),o("span",null,[n("lobby.modal.noWalletOrder.label")])]),o("span",{class:x.icon,onClick:P},[o(B,{src:a.value?"/lobby_asset/common/web/common/comm_icon_hide.svg":"/lobby_asset/common/web/common/comm_icon_show.svg",class:a.value?x.hidden:x.show},null)])]),o($e,{length:"6",modelValue:d.password,"onUpdate:modelValue":f=>d.password=f,mask:a.value,onComplete:()=>_.value.validate()},null)])]}
1),o(oe,{class:x.button,loading:N.value,nativeType:"submit"},ro(m=n("lobby.modal.passModal.ok"))?m:{default:()=>[m]})]}})}}}),mo="_title_ikxx3_105",uo="_copy_ikxx3_134",bo="_status_ikxx3_121",po="_icon_ikxx3_141",fo="_content_ikxx3_147",_o="_money_ikxx3_160",go="_name_ikxx3_176",ho="_date_ikxx3_181",yo="_indent_ikxx3_193",v={"no-wallet-password-dialog":"_no-wallet-password-dialog_ikxx3_91","order-type":"_order-type_ikxx3_98",title:mo,"order-item":"_order-item_ikxx3_112","status-box":"_status-box_ikxx3_121",copy:uo,status:bo,icon:po,content:fo,money:_o,name:go,date:ho,"sale-confirmation-dialog":"_sale-confirmation-dialog_ikxx3_187",indent:yo};function vo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ae(e)}const[Co]=U("pages-dialogs-no-wallet-order-item"),wo=F({name:Co,props:{order:Object},setup(e){const{t:l}=G(),n=q(),a=le(()=>e.order),d=()=>{if(!n.bubbleInfo||!a.value)return;const{orderNo:m}=a.value,{merchantMemberNo:u,depositAppId:i,merchCode:b}=n.bubbleInfo;return{merchantMemberNo:u,depositAppId:i,merchCode:b,merchantOrderNo:m}},_=()=>{re({type:"success",className:v["sale-confirmation-dialog"],title:()=>l("lobby.modal.noWalletOrder.orderConfirmed"),message:()=>o("div",{class:v.indent},[o("b",null,[l("lobby.modal.noWalletOrder.waitForArrival")]),o("span",null,[l("lobby.modal.noWalletOrder.checkBalance")])]),showConfirmButton:!1,showCloseButton:!0})},N=async()=>{if(!n.bubbleInfo||!a.value)return;const{state:m,orderType:u,url:i,isScan:b}=a.value;if(u===k.Sale&&m===t.PendingConfirmation){const[p]=await D(Ze({...d()}));if(p)return;_(),n.initPayload(),n.reset();return}if(m===t.PendingRelease||u===k.Recharge&&m===t.PendingPayment&&!b){const p=await re({className:v["no-wallet-password-dialog"],title:()=>o("span",null,[m===t.PendingRelease?l("lobby.modal.noWalletOrder.confirmRelease"):l("lobby.modal.noWalletOrder.confirmPayment")]),message:()=>o(io,{onClose:()=>{w()},order:a.value},null),showConfirmButton:!1,showCloseButton:!0}),w=()=>{p==null||p.close()};return}g(i),n.reset()},g=m=>{m&&K(m)},A=async m=>{var i,b,p;const[u]=await D(Ge({...d(),orderType:m}));if(V().closeDialog("securityCheck"),u){const w=(b=(i=u.data)==null?void 0:i.data)==null?void 0:b.verifyUrl;if(w)je({cancelButtonText:l("lobby.modal.noWalletOrder.cancelRelease"),onConfirm:()=>{K(w)}});else{const s=(p=u.data)==null?void 0:p.msg;H.error({message:s})}return}N()},P=()=>{var m,u,i,b;return[k.Recharge,k.Withdraw].includes(a.value.orderType)?[C.ScanPaymentZero,C.ScanPayment].includes(a.value.payType)?o(B,{src:"/lobby_asset/common/common/wallet/zhifu_icon_saomazhifu.png",class:v.icon},null):o(B,{src:"/lobby_asset/common/common/wallet/zhifu_icon_yuezhifu.png",class:v.icon},null):ue[(u=(m=a.value)==null?void 0:m.payType)!=null?u:""]?o(B,{src:ue[(b=(i=a.value)==null?void 0:i.payType)!=null?b:""],class:v.icon},null):null};return()=>{var u,i,b,p,w,s,r,y,c,f,h,R,W;let m;return o("div",{class:v["order-item"],onClick:()=>{var S;g((S=a.value)==null?void 0:S.url)}},[o("div",{class:v["status-box"]},[o("div",null,[o("span",null,[(u=a.value)==null?void 0:u.orderNo]),o(ke,{class:v.copy,text:String((i=a.value)==null?void 0:i.orderNo)},null)]),o("div",{class:v.status},[o("span",null,[!!a.value&&Ye((b=a.value)==null?void 0:b.state)]),o(B,{src:"/lobby_asset/common/web/common/comm_icon_fh.svg",class:v.icon},null)])]),o("div",{class:v.content},[o("div",{class:v.left},[o("div",{class:v.money},[o(P,null,null),o("span",null,[X((w=(p=a.value)==null?void 0:p.amount)!=null?w:0,{toFixedType:"currency"}).toString()]),!!((s=a.value)!=null&&s.name)&&o("span",{class:v.name},[ie("ï¼"),(r=a.value)==null?void 0:r.name,ie("ï¼")])]),o("p",{class:v.date},[!!((y=a.value)!=null&&y.createdAt)&&he((c=a.value)==null?void 0:c.createdAt)])]),a.value&&me((f=a.value)==null?void 0:f.orderType,(h=a.value)==null?void 0:h.state,a.value)?o(oe,{type:"primary",size:"small",onClick:S=>{var ne,te,se;S.stopPropagation();const L={[t.PendingRelease]:E.ReleaseUponArrival,[t.PendingConfirmation]:E.ConfirmationSale}[(te=(ne=a.value)==null?void 0:ne.state)!=null?te:""];((se=a.value)==null?void 0:se.orderType)===k.Sale&&L?(V().openDialog("securityCheck",{openType:"overlay"}),A(L)):N()}},vo(m=me((R=a.value)==null?void 0:R.orderType,(W=a.value)==null?void 0:W.state,a.value))?m:{default:()=>[m]}):null])])}}}),[Ro]=U("pages-dialogs-no-wallet-order-type"),So=F({name:Ro,props:{title:ve(""),orders:ye([])},setup(e){return()=>{var l;return o("div",{class:v["order-type"]},[o("div",{class:v.title},[e==null?void 0:e.title]),(l=e.orders)==null?void 0:l.map(n=>o(wo,{class:v["order-item"],order:n},null))])}}}),[No]=U("pages-dialogs-no-wallet-order-list"),Wo=F({name:No,setup(){const{t:e}=Y(),l=q(),n=le(()=>{const a=[{name:e("lobby.modal.noWalletOrder.recharge"),list:[]},{name:e("lobby.modal.noWalletOrder.purchase"),list:[]},{name:e("lobby.modal.noWalletOrder.sale"),list:[]},{name:e("lobby.modal.noWalletOrder.withdraw"),list:[]}];return l.listObj.list.forEach(d=>{switch(d.orderType){case 1:a[0].list.push(d);break;case 2:a[1].list.push(d);break;case 3:a[2].list.push(d);break;case 4:a[3].list.push(d);break}}),a.filter(d=>d.list.length>0)});return()=>o("div",{class:v["order-list"]},[o(Ue,{finished:l.listObj.finished,error:!!l.listObj.listError,loading:l.listObj.loading,class:v.recordMain,onLoad:l.listObj.loadD
1ata,onRetry:l.reset,emptyText:e("lobby.event.luckyWheel.tabs.noData")},{default:()=>{var a;return[(a=n.value)==null?void 0:a.map(d=>o(So,{title:d.name,orders:d.list},null))]}})])}}),$={"wallet-order":"_wallet-order_1lh8m_91","wallet-order-title":"_wallet-order-title_1lh8m_104","no-icon":"_no-icon_1lh8m_112","record-icon":"_record-icon_1lh8m_116"},[xo]=U("pages-dialogs-no-wallet-order"),Io=F({name:xo,setup(){const{t:e}=Y(),l=q(),{onDialogOpen:n,visible:a}=V("noWalletOrder"),d=We(()=>{l.initPayload(),l.listObj.reset()},1e3,{leading:!0,trailing:!1});n(async()=>{await l.getBubbleInfo(),d()});const _=()=>{K(l.url),l.reset()},N=()=>o("div",{class:$["wallet-order-title"]},[o(B,{class:$["no-icon"],src:"/lobby_asset/common/common/deposit/icon_cz_no.png"},null),o("span",null,[e("lobby.modal.noWalletOrder.title")]),o(B,{class:$["record-icon"],useSkeleton:!0,src:"/lobby_asset/common/web/deposit/comm_icon_cz_jl.svg",onClick:_},null)]);return()=>o(be,{show:a.value,"onUpdate:show":g=>a.value=g,class:$["wallet-order"],closeControl:{shouldOccupySpace:!0},title:N},{default:()=>[o(Ce,{class:$.scrollBox},{default:()=>[o(Wo,null,null)]})]})}}),Yo=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),ko=e=>{const{t:l}=Y(),n=Fe(),a=ee(),d=Qe(),_=Le(),N=Pe(),g=pe({cpf:"",realName:""}),A=I("online"),P=I(!1),m=I(!1),u=I(!1),i=I(),b=()=>{var c,f,h;g.cpf=(f=(c=a.userInfos)==null?void 0:c.cpf)!=null?f:"",g.realName=(h=Z())!=null?h:"",u.value=!1,i.value=null};e(c=>{A.value=c==null?void 0:c.type,b()});const p=async()=>{var z;if(!i.value)return;const{consultId:c,realName:f}=i.value,h={realName:Z()||f,cpf:g.cpf.replace(/\D/g,""),consultId:c,source:ce.Recharge};P.value=!0;const[R,W]=await D(Se({data:h}));if(P.value=!1,R)return;const S=(z=W==null?void 0:W.data)==null?void 0:z.data;S&&w(S)},w=c=>{var R,W,S;const f=A.value,h=c.realName;
1N.paymentMode?(_.formModel.pinNumber=c.cpf,_.formModel.realName=h,_.formModel.cId=(R=i.value)==null?void 0:R.consultId):(n.formModel[f].cpf=Ae(c.cpf,"3.3.3-2"),n.formModel[f].realName=h,n.formModel[f].cId=(W=i.value)==null?void 0:W.consultId),!Z()&&h&&d.updateRealname(h),!((S=a.userInfos)!=null&&S.cpf)&&g.cpf&&a.updateUserInfos({cpf:g.cpf}),H.success({message:l("lobby.modal.pay.bindQianNengWalletSuccess")}),V().closeDialog("realNameCompliance")},s=async c=>{var W,S,z,L;Oe(we.sensorEvents.RechargeRealNameAuthenticationVerification),c||(m.value=!0),u.value=!1;const[f,h]=await D(Re({data:{cpf:g.cpf.replace(/\D/g,""),source:ce.Recharge}}));m.value=!1;const R=(W=h==null?void 0:h.data)==null?void 0:W.data;if(f||R&&!(R!=null&&R.realName)){const T=f;H.error({message:((S=T==null?void 0:T.data)==null?void 0:S.msg)||l("lobby.finance.withdraw.add.getError")}),u.value=!0;return}i.value=R,c?p():g.realName=(L=(z=i.value)==null?void 0:z.realName)!=null?L:""},r=async()=>{i.value?p():s(!0)},y=le(()=>!u.value);return{form:g,loading:P,checkCpfLoading:m,cpfValidationError:u,cpfCheckData:i,realNameDisabled:y,checkCpf:s,submit:r}},Po="_description_1bygj_100",Oo="_bold_1bygj_105",Ao="_form_1bygj_108",zo="_action_1bygj_111",Bo="_retryIcon_1bygj_112",Do="_disabled_1bygj_115",Mo="_tips_1bygj_118",jo="_accent_1bygj_123",Uo="_submit_1bygj_126",O={"real-name-compliance":"_real-name-compliance_1bygj_91",description:Po,bold:Oo,form:Ao,action:zo,retryIcon:Bo,disabled:Do,tips:Mo,accent:jo,submit:Uo,"form-item-cpf":"_form-item-cpf_1bygj_131"};function Fo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ae(e)}const[Qo]=U("pages-dialogs-real-name-compliance"),Lo=F({name:Qo,setup(){const{t:e}=Y(),l=ee(),{visible:n,onDialogOpen:a}=V("realNameCompliance"),{form:d,loading:_,checkCpfLoading:N,realNameDisabled:g,checkCpf:A,submit:P}=ko(a),m=I(!1);return()=>{let u;return o(be,{show:n.value,"onUpdate:show":i=>n.value=i,class:O["real-name-compliance"],closeControl:{shouldOccupySpace:!0},title:e("lobby.modal.realNameCompliance.title")},{default:()=>[o("div",{class:O.description},[o("span",{class:O.bold},[e("lobby.modal.realNameCompliance.validateRealCpfBeforeRecharge1")]),o("span",null,[e("lobby.modal.realNameCompliance.validateRealCpfBeforeRecharge2")])]),o(fe,{class:O.form,model:d,onSubmit:P,layout:"vertical"},{default:()=>{var i;return[o(ze,{class:O["form-item-cpf"],name:"cpf",label:e("lobby.modal.pay.cpfRemark"),required:!0,showRequired:!0,disabled:!!((i=l.userInfos)!=null&&i.cpf),modelValue:d.cpf,"onUpdate:modelValue":b=>d.cpf=b,placeholder:e("lobby.modal.pay.cpfPlaceholder"),formItemIcon:"/lobby_asset/common/web/common/input_icon_zsxm.svg",rules:()=>(m.value=!1,de(d.cpf)?(m.value=!0,!0):e("lobby.modal.realNameCompliance.tips1"))},{suffix:()=>{var b;return(b=l.userInfos)!=null&&b.cpf?null:o(Be,{tag:"span",onPaste:p=>{d.cpf=p.replace(/\D/g,"")}},null)}}),o(De,{name:"realName",label:e("lobby.modal.pay.realName"),modelValue:d.realName,"onUpdate:modelValue":b=>d.realName=b,disabled:g.value,placeholder:g.value?e("lobby.modal.realNameCompliance.step1"):e("lobby.finance.withdraw.add.realNamePlaceholder"),required:!0,showRequired:!0,showHelp:!1,formItemIcon:"/lobby_asset/common/web/common/input_icon_zsxm1.svg",rules:b=>de(d.cpf)&&!b?e("lobby.finance.withdraw.warning.realNameEmpty"):!0},{suffix:()=>Z()?null:N.value?o("span",{class:O.retry},[o(B,{useSkeleton:!0,class:[O.retryIcon,{[J.Animated]:N.value},J.Actions.Spin,J.Repeat.Infinite],src:"/lobby_asset/common/web/common/comm_icon_retry.svg"},null)]):o("span",{class:{[O.action]:!0,[O.disabled]:!m.value},onClick:()=>{m.value&&A()}},[e("lobby.modal.realNameCompliance.action")])}),o("div",{class:O.tips},[o("span",{class:O.accent},[e("lobby.modal.realNameCompliance.step2")]),o("span",null,[e("lobby.modal.realNameCompliance.step3")])]),o(oe,{nativeType:"submit",class:O.submit,loading:_.value,"data-theme-btn":!0,"data-theme-btn-keep":"background"},Fo(u=e("lobby.modal.realNameCompliance.validateCpf"))?u:{default:()=>[u]})]}})]})}}}),Jo=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"}));
1export{Yo as N,Jo as R,Go as i,q as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.