1import{f as r,dZ as m,d_ as C,b0 as _,gq as B,ce as D,T,bA as u,j5 as E,gl as d,K as I,dq as K,cJ as Y,b7 as g,aH as i,t5 as v,sQ as h}from"./commonChunk.EMM8Cpbg.js";import{s as t}from"./style.module.B6v0yd5p.js";import{b as o,F as x}from"../vendors/vendor-stable.CeU5EqBW.js";import"./vendorChunk.Ci2UuwNH.js";import"../vendors/vendor-swiper.9T5ztYNS.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(){K({openType:"overlay",options:{payEntryId:Y.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(){K({openType:"overlay",options:{payEntryId:Y.KYC_RECHARGE}})}})},k=async e=>{const{t:s}=r(),n=_();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:a,isNeedUpIdSelfieAfterKYC:f}=n,c=e&&"isForce"in e?e.isForce:a.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:!c,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&&h()},onConfirm(){n.setKycDialogVisible(!1),v(e)},message:()=>o(g,{class:t.kycNeedRichWrap,html:a.legalUserEkycTips},null)})},A=e=>{const s=_();k({isForce:!1,needIdSelfie:!1,...!e.isForce&&{onClose:()=>{s.setGameKycDialogShown(),e.onProceed()}}})},V=(e,s)=>{var p;const{t:n}=r(),b=()=>E().navigateToServicePage(),a="lobby.modal.loginRegister.contactCustomer",c=(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:a,btnClick:b,content:"lobby.center.KYC.apiMessage.noProvider"}},{codes:[d.TODAY_LIMITED,u.KYC_USER_TODAY_LIMITED],config:{btnText:a,btnClick:b,content:"lobby.center.KYC.apiMessage.todayLimited"}},{codes:[d.TOTAL_LIMITED,u.KYC_USER_TOTAL_LIMITED],config:{btnText:a,btnClick:b,content:"lobby.center.KYC.apiMessage.totalLimited"}},{codes:[u.KYC_PROVIDER_TODAY_LIMITED],config:{cancelBtnText:a,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(!c){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(c.btnText),message:()=>n(c.content),overlayClass:t.createDialogZindex,onCancel(){var l;(l=c.cancelBtnClick)==null||l.call(c)},onConfirm(){var l;(l=c.btnClick)==null||l.call(c)}};c.cancelBtnText&&(y.showCancelButton=!0,y.cancelButtonText=()=>n(c.cancelBtnText)),m(C.KYC_ERROR_MESSAGE,y)},F=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})},P=(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,P as createKYCNeedBindPhoneDialog,F 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.