1import{A as r,et as m,eu as C,eP as B,cV as D,aA as T,cj as u,T as E,gJ as d,a0 as I,eh as _,di as K,bY as g,bp as i,eH as h,pq as v}from"./commonChunk.CbHrP2ip.js";import{aN as Y}from"./0_EntryLoginRegisterChunk.DMUz1wnE.js";import{s as t}from"./style.module.B6v0yd5p.js";import{e as o,F as x}from"../vendors/vendor-stable.CbjAnMzp.js";import"./vendorChunk.96TTY5fG.js";const L=()=>{const{t:e}=r();m(C.KYC_DONE,{title:()=>o("div",{class:t.kycWarp},[o(i,{src:"/lobby_asset/common/app/common/comm_icon_verified.png"},null),o("span",null,[e("lobby.center.KYC.indexSuccess.title")])]),showCloseButton:!0,showConfirmButton:!0,showCancelButton:!0,type:"info",confirmButtonText:()=>e("lobby.modal.pay.payBtn"),cancelButtonText:()=>e("lobby.center.KYC.indexSuccess.backIndex"),message:()=>o(g,{class:t.kycMsgWrap,html:e("lobby.center.KYC.indexSuccess.message")},null),overlayClass:t.createDialogZindex,onConfirm(){_({openType:"overlay",options:{payEntryId:K.KYC_RECHARGE}})}})},O=()=>{const{t:e}=r();m(C.KYC_DONE,{title:()=>o("div",{class:t.kycWarp},[o(i,{src:"/lobby_asset/common/app/common/comm_icon_verified.png"},null),o("span",null,[e("lobby.center.KYC.success.title")])]),showCloseButton:!0,showConfirmButton:!0,showCancelButton:!1,type:"info",confirmButtonText:()=>e("lobby.modal.pay.payBtn"),message:()=>o(g,{class:t.kycMsgWrap,html:e("lobby.center.KYC.success.message")},null),overlayClass:t.createDialogZindex,onConfirm(){_({openType:"overlay",options:{payEntryId:K.KYC_RECHARGE}})}})},k=async e=>{const{t:s}=r(),n=Y();if(n.isKycDialogVisible)return;if(n.setKycDialogVisible(!0),e!=null&&e.isDelay&&await B(1500),D().route.name===T.KYC){n.setKycDialogVisible(!1);return}const{kycConfig:c,isNeedUpIdSelfieAfterKYC:f}=n,a=e&&"isForce"in e?e.isForce:c.isRequired;m(C.KYC_NEED,{title:()=>o("div",{class:t.kycWarp},[o(i,{src:"/lobby_asset/common/app/common/comm_icon_tip2.png"},null),o("span",null,[s("lobby.common.tips.title")])]),type:"info",showCloseButton:!a,showConfirmButton:!0,showCancelButton:!1,confirmButtonText:()=>s("lobby.center.KYC.need.button"),overlayClass:t.createDialogZindex,onClose(){var y;if(n.setKycDialogVisible(!1),e!=null&&e.onClose){e.onClose();return}f&&(e==null?void 0:e.needIdSelfie)!==!1&&((y=e==null?void 0:e.needIdSelfieOptions)==null?void 0:y.whenTriggerNotSupportOS)!==!1&&v()},onConfirm(){n.setKycDialogVisible(!1),h(e)},message:()=>o(g,{class:t.kycNeedRichWrap,html:c.legalUserEkycTips},null)})},A=e=>{const s=Y();k({isForce:!1,needIdSelfie:!1,...!e.isForce&&{onClose:()=>{s.setGameKycDialogShown(),e.onProceed()}}})},V=(e,s)=>{var p;const{t:n}=r(),b=()=>E().navigateToServicePage(),c="lobby.modal.loginRegister.contactCustomer",a=(p=[{codes:[u.KYC_IS_VALIDATING],config:{btnText:"lobby.common.tips.confirm",content:"lobby.center.KYC.apiMessage.isValidating"}},{codes:[d.NO_PROVIDER,u.KYC_NO_PROVIDER_CONFIG],config:{btnText:c,btnClick:b,content:"lobby.center.KYC.apiMessage.noProvider"}},{codes:[d.TODAY_LIMITED,u.KYC_USER_TODAY_LIMITED],config:{btnText:c,btnClick:b,content:"lobby.center.KYC.apiMessage.todayLimited"}},{codes:[d.TOTAL_LIMITED,u.KYC_USER_TOTAL_LIMITED],config:{btnText:c,btnClick:b,content:"lobby.center.KYC.apiMessage.totalLimited"}},{codes:[u.KYC_PROVIDER_TODAY_LIMITED],config:{cancelBtnText:c,cancelBtnClick:b,btnText:"lobby.error.upgradedBtn",btnClick:()=>location.reload(),content:"lobby.center.KYC.apiMessage.providerLimited"}}].find(l=>l.codes.includes(e)))==null?void 0:p.config;if(!a){I({type:"error",message:s||"KYC Unknown Error"});return}const y={title:()=>o("div",{class:t.kycWarp},[o(i,{src:"/lobby_asset/common/web/common/comm_icon_tip2.png"},null),o("span",null,[n("lobby.common.tips.title")])]),showCloseButton:!0,showConfirmButton:!0,type:"info",confirmButtonText:()=>n(a.btnText),message:()=>n(a.content),overlayClass:t.createDialogZindex,onCancel(){var l;(l=a.cancelBtnClick)==null||l.call(a)},onConfirm(){var l;(l=a.btnClick)==null||l.call(a)}};a.cancelBtnText&&(y.showCancelButton=!0,y.cancelButtonText=()=>n(a.cancelBtnText)),m(C.KYC_ERROR_MESSAGE,y)},P=e=>{const{t:s}=r();m(C.KYC_DONE,{title:()=>o("div",{class:t.kycWarp},[o(i,{src:"/lobby_asset/common/web/common/comm_icon_tip2.png"},null),o("span",null,[s("lobby.common.tips.title")])]),className:t.kycNeedMobile,showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1,type:"info",message:()=>
1o(g,{class:t.kycMsgWrap,html:s("lobby.center.KYC.needMobile.message")},null),onClose:e,overlayClass:t.createDialogZindex})},F=(e,s)=>{const{t:n}=r();m(C.KYC_DONE,{title:()=>n("lobby.common.tips.title"),className:t.kycNeedMobile,showCloseButton:!1,showCancelButton:!s,showConfirmButton:!0,type:"info",message:()=>o(x,null,[o("div",{class:t.kycNeedMobileIconBg},[o(i,{src:"/lobby_asset/common/common/common/img_kycrz_icon_db.png"},null),o(i,{src:"/lobby_asset/common/common/common/img_kycrz_icon.png"},null)]),o("span",null,[n("lobby.center.KYC.needBindMobile.message")])]),confirmButtonText:()=>n("lobby.center.KYC.needBindMobile.confirm"),cancelButtonText:()=>n("lobby.center.KYC.needBindMobile.notNow"),onConfirm(){e(!0)},onCancel(){e(!1)},overlayClass:t.createDialogZindex})},W=e=>{const{t:s}=r();m(C.KYC_LEAVE_CONFIRM,{title:()=>s("lobby.common.tips.title"),type:"info",showCloseButton:!1,showCancelButton:!0,showConfirmButton:!0,message:()=>s("lobby.center.KYC.leave"),className:t.kycLeaveConfirm,overlayClass:t.kycLeaveConfirm,onConfirm(){e()}})};export{A as createGameEntryKycDialog,L as createKYCDoneByIndexDialog,O as createKYCDoneDialog,V as createKYCErrorMessageDialog,W as createKYCLeaveConfirmDialog,F as createKYCNeedBindPhoneDialog,P as createKYCNeedMobileDialog,k as createNeedKYCDialog};
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.