@authing/guard-shim-react18 4.5.3-alpha.2 → 4.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guard.min.js +69 -67
- package/dist/typings/src/_utils/http.d.ts +1 -2
- package/package.json +1 -1
package/dist/guard.min.js
CHANGED
|
@@ -12638,7 +12638,7 @@ caches:["localStorage"],excludeCacheFor:["cimode"]}),
|
|
|
12638
12638
|
// backwards compatibility
|
|
12639
12639
|
this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Au),this.addDetector(Ru),this.addDetector(Lu),this.addDetector(Bu),this.addDetector(Uu),this.addDetector(qu),this.addDetector(Vu),this.addDetector($u)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null;// new i18next v19.5.0
|
|
12640
12640
|
}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();zu.type="languageDetector";// CONCATENATED MODULE: ./src/_utils/locales/en-us/common.json
|
|
12641
|
-
const Hu=JSON.parse('{"alreadyHasAcc":"already have an account,","bind":"Bind","yes":"Yes","no":"No","usernameFormatError":"Enter a valid user name","customNameFormatError":"Enter a valid account number","checkUserName":"The username already exists","checkCustomName":"The account already exists","pleaseSelectDate":"Please select date","bindEmail":"Bind Email","bindPhone":"Bind your phone number","confirm":"Confirm","unlock":"unlock","email":"Email","emailFormatError":"Enter a valid Email address ","emailLabel":"Email","female":"Female","guidance":{},"hasLooseSaftyCode":"Lost the security code?","inputFourVerifyCode":"{{length}}-digit code","login":"Log In","man":"Male","noAccYet":"No account yet,","perfectUserInfo":"Personal Information","phoneFormateError":"Please verify your phone number first","phoneLabel":"Phone","phoneNumber":"Phone number","register":"Sign Up","registerImmediate":"Sign Up","retryAfterTime":"{{time}} seconds","sendVerifyCode":"Send Code","sure":"Confirm","uploadFail":"{{name}} failed to upload","useRecoverCode":"Use recovery code","username":"Username","problem":{"title":"Tell us your problem","noVerify":"Unable to receive the verification code","noLogin":"Unable to log in","noRegister":"Unable to register","noAccount":"Lost Account","noResetPass":"Unable to reset password","locked":"Account is locked","other":"Other","noVerifyTip":{"tip":"If you cannot receive the mobile phone verification code, I suggest you do the following:","type1":"1. Check if your mobile phone is turned off or offline.","type2":"2. Check if your phone number has been entered correctly.","type3":"3. Check if your SMS with the verification code is blocked."},"noLoginTip":{"type1":"1. Check if your username and password have been entered correctly.","type2":"2. Check if your mobile phone is turned off or offline."},"noRegisterTip":{"tip":"If you cannot register, please do the following steps to solve this issue:","type1":"1. Check if your account has been registered.","type2":"2. Check if your phone number has been entered correctly.","type3":"3. Check if your SMS with the verification code is blocked."},"noAccountTip":{"tip":"If your account is lost, please do the following steps to solve this issue:","type1":"1. Check if your username and password have been entered correctly.","type2":"2. Check if your mobile phone is turned off or offline."},"noResetPassTip":{"tip":"If your password cannot be reset, please do the following steps to solve this issue:","type1":"1. Check if your mobile phone is turned off or offline.","type2":"2. Check if your password has been entered correctly."},"otherTip":{},"successTip":"Submitted successfully","successTipMsg":"Your information has been submitted to the application administrator. Your feedback will be processed as soon as possible. Please wait patiently.","form":{"phone":"Contact","question":"Problem","questionDescript":"Problem description","questionClip":"Problem screenshot","submit":"Submit"},"noLoginTips":"If you cannot log in, we suggest you do the following:","lockedTips":"If your account is locked, please contact the administrator to unlock it and try to log in again"},"backLoginPage":"Back","LoginSuccess":"Login Success","welcomeDoc":"Welcome to {{name}}. Providing your personal information will allow us to give you the best online\\nexperience.","copied":"Copied","bindEmailDoc":"please enter the mailbox to bind","copy":"Copy","SMS":"SMS Verification","EmailVerification":"Email Verification","OTPVerification":"OTP Verification","faceVerification":"Face Verification","registrationSuccess":"Registration Success","repeatPasswordDoc":"The Two Passwords Entered are Inconsistent","copyFailed":"Copy Failed","downloadTotpAppAndroid":"Android download","downloadTotpAppDocs":"Please use your mobile phone to scan the code to download the verifier","downloadTotpAppIOS":"IOS download","bindTotp":"Bind OTP","checkEmail":"The email already exists","checkPhone":"The phone number already exists","loginFailCheck":"Reminder: Your password is wrong, you can try {{number}} times","otpText1":"Please go to the OTP binding page to bind","faceText1":"Bind facial recognition","faceText2":"Please turn on the camera to recognize the face for binding","faceText3":"Start","faceText4":"Try again","checkPasswordHasSpace":"No spaces","backToVerify":"Back","backToMFA":"Return to MFA binding","bindSuccess":"Complete binding","clickTodownload":"click to download","goToLogin":"Back","mfaText1":"Scan the code to add MFA, check it on your mobile phone and enter the 6-digit security code.","noQuestions":"no problem,","noValidator":"No validator please","pleaseRecordKey":"Please record the key","timeoutLDAP":"Request timed out, LDAP configuration error","totpText1":"Please keep the recovery code properly","totpText2":"If your MFA is lost, you will need a recovery code","usePhoneOpen":"Please open Google Authenticator or Microsoft Authenticator on your phone","passwordAgain":"Confirm password","isMissing":"{{name}} is missing","password":"Password","captchaCode":"Digit code","account":"Account","phone":"Phone number","pToLogin":"seconds later back","resetSuccess":"Reset successfully","resetSuccessMessage":"The password is reset successfully, you can continue to log in with the new password","welcome":"Welcome","initPasswordText":"To ensure account security, please set your new password.","unsafePasswordChangeText":"Your password does not meet the current password strength requirements. Please set a new password.","updatePsswordSuccess":"Change the password successfully, please log in again","fullCaptchaCode":"Please fill in the complete","feedback":"Need help ?","loginProtocolTips":"Please check the login protocol","registerProtocolTips":"Please check the registration agreement","accountLock":"The account is locked, please click the question mark below to give feedback","corsErrorMessage":"The current domain name is not in the list of allowed domain names","corsErrorMessage2":"If you have any questions, you can <a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">refer to the document</a>","totpGenerateCode":"Generate a new recovery code for you, please record this key safely","verifyCodeLogin":"Verify Code","phoneVerifyCode":"Phone Code","emailVerifyCode":"Email Code","phoneCodeTab":"Phone Code","emailCodeTab":"Email Code","phoneOrEmail":"Phone Or Email","skip":"Skip","back":"Back","publicAccount":"Public account","identityBindingAskTitle":"Choose how to connect","identityBindingAskDesc":"If you are bound to an existing account, you can directly log in to the existing account by this method next time.","identityBindingCreate":"Create a new account","identityBindingBinding":"Bind to an existing account","identityBindingTitle":"Bind existing account","identityBindingDesc":"After binding, you can log in to this account directly by this method next time","identityBindingSkipAskTitle":"Account Binding","identityBindingSkipAskDesc":"Enter an exisiting account to bind, or enter a new account to sign up.","internationPhoneMessage":"Please enter a valid mobile phone number","areaCodePhone":"Area code Mobile number","timeoutAD":"Request timed out, AD misconfigured","timeout":"Request timed out, please try again later","userNameIsExists":"This username already exists!","fetchError":"Network connection failed, please try again later","i18nCheckErrorMessage":"Please enter a valid mobile phone number or correct email address","verifyCodeRegister":"Verify Code","PasswordRegister":"Password","EmailRegister":"Email","registerTab":"{{text}}","noFindEmail":"Can\'t find the email account","noFindPhone":"Can\'t find the phone account","noFindUsername":"Can\'t find the username account","jobNumber":"Account first letter must be capital","passwordUnsafeTip":"Password strength has been updated, please refresh the page and try again","loginWithWechatmpQrcodeTipsTitle":"Long press the QR code to login","del":"Delete","qrcode":"QR Code","registerCompletePasswordDesc":"To ensure account security, please set your password.","mfaCertification":"Multi-factor authentication","emailMfaCheck":"Please enter email verification code","SmsMfaCheck":"Please enter SMS verification code","faceCheck":"Please keep the camera turned on and unobstructed","resetAccount":{"title":"Set the user name","message":"The current user name is not unique, please reset the user name before you can successfully log on."}}'),Wu=JSON.parse('{"inputAccount":"Enter {{text}}","inputAdUsername":"Enter AD username","accPwdLoginVerify":"Account login verification","captchaCode":"Captcha","inputAdPwd":"Enter AD password","inputCaptchaCode":"Digit code","inputCorrectPhone":"Enter correct phone number or email address","inputEmail":"Enter Email","inputLdapPwd":"LDAP Password","inputLdapUsername":"LDAP Username","inputLoginPwd":"Enter Password","inputPhone":"Phone number","inputPhoneOrEmail":"Enter Phone number or Email","inputPwdAgain":"Enter password again","inputRecoverCode":"Enter recovery code","inputSixCode":"Enter 6-digit security code","loginBy":"Sign in with {{name}}","mfaAfterReset":"If you do not have a recovery code, please contact the administrator","noEmpty":"Please enter a {{label}}","rememberedSecret":"This key has been safely recorded","resetPwd":"Reset password","selfUnlock":"self unlock","selfUnlockText":"Your account has been locked, please enter the verification code and password to unlock it by yourself.","thridAccLogin":"Or sign in with","pwdLogin":"Password","bindPwdLogin":"Password","appScanLogin":"Mobile APP QR Code","scanLogin":"QR Code","ldapLogin":"LDAP","adLogin":"AD","authingOtpPushLogin":"Login by push","authingOtpPushCancelLogin":"Cancel login","loginText":"Login","otpLoginPendingText":"The request has been sent to the Authoring Token APP. Please confirm login at the client","getOtpLoginRequestAgain":"The login request is invalid. Please send request again","downloadOtpVerifier":"Download Authing OTP","loginToMobileClient":"Login Authing OTP","scanQrCode":"Scan QR code","setAuthingTokenVerify":"Set Authing OTP Verify","phoneScanCodeAndDownloadAuthingToken":"Please scan the code with your mobile phone or go to the app market to download the Authing OTP","noPrompt":"Don\'t prompt again","directLogin":"Direct login","openAuthingOtp":"Open the Authing OTP and click \\"Login / Register\\"","clickAndScanQrcode":"Click the scanning entry at the upper right corner of the \\"Login Application\\" page to scan the QR code below","downloadIOS":"IOS download","downloadAndroid":"Android download","howBindClient":"How to bind client applications","installAuthingToken":"Install the Authing Token App","downloadAuthingToken":"Please use your mobile phone to scan the code or go to the application market to download the Authoring token","openAppList":"Open app list","addApp":"Open the \\"Application List\\" and click \\"Add Application\\"","openLoginPage":"Open the login page","scanQrcode":"Click the \\"Scan QR code\\" button to scan the application QR code","scanFollowingQrcode":"Scan the following application QR code","relevanceApp":"Associate the application and log in to the account","receiveMessageFromAuthingToken":"After logging in to the application account, you can complete the login by receiving the Web application push in the Authing token","howUsePushLogin":"How to use push login","inputAccountInWeb":"Enter account information in the web login panel","clickLoginButton":"Click \\"Login\\"","receiveMessageInApp":"Receive login push on the bound mobile application","confirmLoginInApp":"Confirm \\"Login\\" to successfully log in to the web side.","howGetAppLoginUrl":"How to get the application login address","getCodeFromAdmin":"Get the associated application QR code from the administrator","getCodeFromAdminTips":"The administrator can get the application QR code in the application login control, and scan the QR code to log in to the corresponding application.","getCodeFromPersonalCenter":"Get application QR code from personal center","getCodeFromPersonalCenterTips":"Users can save the application login QR code in \\"Personal Center - Quick Authentication\\", and use the Authoring token to scan the code and select the application to log in","getLoginUrlFromConsole":"The administrator obtains the login address from the console","getLoginUrlFromConsoleTips":"Administrators can copy the authentication address in \\"Console - Application Details - Application Configuration - Authentication Configuration\\". Users can log in and bind after copying the authentication address.","nextStep":"Next Step","enterAccount":"Please enter the account","inputEmailCode":"Enter email verification code","otherVerifyWay":"Other verification methods","otherLoginWay":"OR","verifyCodeSended":"Verification code has been sent to","clickSent":"Click send","bindPhoneInfo":"Please enter the phone number to bind","inputPhoneCode":"Please enter the phone verification code","forgetPwd":"Forgot Password","inputPwd":"Password","login":{"setPwdLimit2":"At least six digits, must contain two of English, numbers and symbols","setPwdLimit3":"At least six digits, including English, numbers and symbols"},"setPwdLimit1":"Set a password of at least 6 characters","setPwdLimitMsg1":"Passwords must be at least 6 characters long","setPwdLimitMsg2":"The password must be at least 6 characters long and must contain two of English, numbers and symbols","setPwdLimitMsg3":"The password must be at least 6 digits long and must contain English, numbers and symbols at the same time","wechatmpQrcode":"WechatMp QRcode\\t","inputUsername":"Username","moreWays":"More Login","inputCorrectPhoneOrEmail":"Enter a valid Email or Phone number","sendCodeTimeout":"Sending failed, please try later","mediaDevicesSupport":"The current device does not support face recognition","noLoginMethodsDesc":"No login method configured","inputNewPwd":"Please enter a new password","socialConnectionMessage":"Login with {{provider}} is not supported, please choose another way to log in, or try again in another browser","selectLoginAccount":"Select login account","useOtherAccount":"Use another account","wechatScanLogin":"WeChat QR Code","qrcodeRefer":"Refresh","qrcodeNetWorkError":"Retry","scanAgain":"Scan the code again","scanSuccess":"Scan Success","tenant":{"consoleManage":"Admin console","ssoPad":"Single sign-on application panel"},"AuthorizationCamera":"Please enable authorization first","checkPreferences":"Please check preferences","requireError":"Unable to satisfy request error","hardwareSupport":"Hardware not supported","verifyCodeTip":"Try another","resetPassword":{"pleaseInputPassword":"Please input a password","checkPasswordDiff":"Please enter a consistent password","nextStep":"Next","reset":"reset password","back":"Back","resetPasswordText1":"Please enter your registered mobile phone number/email to receive the verification code, and we will reset your password.","resetPasswordText2":"You are resetting Password for {{account}}。","input":"Input{{text}}","inputFourVerifyCode":"{{length}}-digit code","inputNewPwd":"Please enter a new password","confirmNewPwd":"Please confirm the new password","successTipMsg":"You can continue to log in with your new password","successTip":"Password reset succeeded","backLogin":"Seconds will automatically jump to the login page"}}'),Gu=JSON.parse('{"inputCurrPwd":"Enter current password","inputNewPwd":"Enter a new Password","inputOldPwd":"Enter a old Password","mfaBind":"MFA Binding","modifyPwd":"Change Password","nextStep":"Next","numberSafteyCode":"Digital Security Code","error":"Error~","contactAdministrator":"Unknown error ~ please contact the administrator for processing","resetpasswordText1":"Enter your registered phone number/email, enter the verification code received, and we will reset your password.","modifyPwdText":"Your password has been used continuously for more than {{number}} months, which may be risky. Please reset your password.","modifyNoticePwdText":"Your password has been used continuously for more than {{number}} months, It will expire soon, in order not to affect your use, please set a new password","unlockTip":"If you encounter problems with unlocking, please click"}'),Ku=JSON.parse('{"guidance":{},"uploadFail":"{{name}} 上传失败","confirm":"确认","retryAfterTime":"{{time}} 秒","sendVerifyCode":"发送验证码","emailFormatError":"输入有效的邮箱","usernameFormatError":"输入有效的用户名","customNameFormatError":"输入有效的账号","phoneFormateError":"输入有效的手机号","username":"用户名","login":"登录","noAccYet":"还没有账号,","registerImmediate":"立即注册","sure":"确定","hasLooseSaftyCode":"安全码丢失?","useRecoverCode":"使用恢复代码","register":"注册","unlock":"解锁","alreadyHasAcc":"已有账号,","perfectUserInfo":"完善用户信息","man":"男","female":"女","emailLabel":"邮箱","phoneLabel":"手机号","pleaseSelectDate":"请选择日期","bindEmail":"绑定邮箱","email":"邮箱","inputFourVerifyCode":"请输入 {{length}} 位验证码","bindPhone":"绑定手机号","phoneNumber":"手机号","bind":"绑定","yes":"是","no":"否","problem":{"title":"问题反馈","noVerify":"无法收到验证码","noLogin":"无法登录","noRegister":"无法注册","noAccount":"帐号丢失","noResetPass":"无法重置密码","locked":"账号被锁定","other":"其他","noVerifyTip":{"tip":"如果无法收到手机验证码,建议你进行以下操作:","type1":"1. 检查你的手机是否停机/无网络","type2":"2. 检查你的手机号是否输入正确","type3":"3. 检查你的验证码短信是否被屏蔽"},"noLoginTip":{"type1":"1. 检查你的用户名与密码输入是否正确","type2":"2. 检查你的手机是否停机/无网络"},"noRegisterTip":{"tip":"如果无法注册,建议你进行以下操作:","type1":"1. 检查你的帐号是否已注册","type2":"2. 检查你的注册手机号是否输入正确","type3":"3. 检查你的验证码短信是否被屏蔽"},"noAccountTip":{"tip":"如果帐号丢失,建议你进行以下操作:","type1":"1. 检查你的用户名与密码输入是否正确","type2":"2. 检查你的手机是否停机/无网络"},"noResetPassTip":{"tip":"如果无法重置密码,建议你进行以下操作:","type1":"1. 检查你的手机是否停机/无网络","type2":"2. 检查你的设置的密码是否正确"},"otherTip":{},"successTip":"提交成功","successTipMsg":"你的信息已经提交给应用管理员,会尽快处理你的反馈,请你耐心等待。","form":{"phone":"联系方式","question":"相关问题","questionDescript":"问题描述","questionClip":"问题截图","submit":"提交"},"lockedTips":"如果你的账号被锁定,请联系管理员解锁后再尝试登录","noLoginTips":"如果无法登录,建议你进行以下操作:"},"backLoginPage":"返回登录","LoginSuccess":"登录成功","welcomeDoc":"欢迎加入 {{name}} ,为了更好的使用体验,请先完善你的个人信息","bindEmailDoc":"请输入邮箱进行绑定","copied":"已复制","copy":"复制","repeatPasswordDoc":"两次密码输入不一致","SMS":"短信验证码验证","EmailVerification":"电子邮箱验证","OTPVerification":"OTP 口令验证","faceVerification":"人脸识别验证","registrationSuccess":"注册成功","copyFailed":"复制失败","downloadTotpAppIOS":"IOS 下载","downloadTotpAppAndroid":"Android 下载","downloadTotpAppDocs":"请使用手机扫码下载验证器","bindTotp":"绑定 OTP","checkEmail":"该邮箱已存在","checkUserName":"该用户名已存在","checkCustomName":"该账号已存在","checkPhone":"该手机号已存在","loginFailCheck":"温馨提示:你的密码错误,还可以尝试 {{number}} 次","bindSuccess":"完成绑定","pleaseRecordKey":"请记录密钥","totpText1":"请妥善保存恢复代码","totpText2":"如果你的 MFA 丢失时,你将需要一个恢复代码","otpText1":"请前往 OTP 绑定页面进行绑定","faceText1":"绑定人脸识别","faceText2":"请打开摄像头识别人脸进行绑定","faceText3":"开始验证","faceText4":"重试一次","publicAccount":"公共账号","checkPasswordHasSpace":"不能包含空格","backToVerify":"返回验证页","usePhoneOpen":"请在手机打开 Google Authenticator 或 Microsoft Authenticator","noValidator":"没有验证器请","clickTodownload":"点击下载","mfaText1":"扫码添加 OTP,在手机查看并输入 6 位数字安全码。","backToMFA":"返回 MFA 绑定","timeoutLDAP":"请求超时,LDAP 配置错误","noQuestions":"没有问题,","goToLogin":"直接登录","passwordAgain":"请确认密码","isMissing":"{{name}}未填写","password":"密码","captchaCode":"验证码","account":"账号","phone":"手机号","pToLogin":"秒后返回登录","resetSuccess":"重置成功","resetSuccessMessage":"密码重置成功,你可以使用新密码继续登录","welcome":"欢迎访问","initPasswordText":"为了保障账号安全,请设置你的新密码。","unsafePasswordChangeText":"你的密码不符合当前密码强度要求,请设置新密码。","updatePsswordSuccess":"修改密码成功,请重新登录","fullCaptchaCode":"请填写完整的{{name}}","feedback":"问题反馈","loginProtocolTips":"请勾选登录协议","registerProtocolTips":"请勾选注册协议","accountLock":"账号被锁定,请点击下方问号进行反馈","corsErrorMessage":"当前域名不在允许访问的域名列表中。","corsErrorMessage2":"如果有疑问可以<a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">参考文档</a>","totpGenerateCode":"为你生成一串新的恢复代码,请安全地记录这段密钥","verifyCodeLogin":"验证码登录","phoneCodeTab":"手机号登录","emailCodeTab":"邮箱登录","phoneVerifyCode":"短信验证码","emailVerifyCode":"邮箱验证码","phoneOrEmail":"手机号或邮箱","skip":"跳过","back":"返回","identityBindingAskTitle":"选择关联方式","identityBindingAskDesc":"如果绑定到已有账号,下次可以通过本次的方式直接登录已有账号","identityBindingCreate":"我想创建一个新账号","identityBindingBinding":"我想绑定到已有账号","identityBindingTitle":"绑定已有账号","identityBindingDesc":"绑定后,下次可以直接通过这次的方式登录到此账号","identityBindingSkipAskTitle":"账号绑定","identityBindingSkipAskDesc":"若存在已有账号,输入成功后将会完成绑定;若输入新账号则会完成创建和绑定","internationPhoneMessage":"请输入所在区号合法的手机号","areaCodePhone":"+区号 手机号","timeoutAD":"请求超时,AD 配置错误","timeout":"请求超时,请稍后重试","userNameIsExists":"该用户名已存在!","fetchError":"网络连接失败,请稍后再试","passwordUnsafeTip":"密码强度已更新,请刷新页面后重试","i18nCheckErrorMessage":"请输入所在区号合法的手机号或正确的邮箱","verifyCodeRegister":"验证码注册","PasswordRegister":"密码注册","EmailRegister":"邮箱注册","registerTab":"{{text}}注册","noFindEmail":"找不到该邮箱账号","noFindPhone":"找不到该手机账号","noFindUsername":"找不到该用户名账号","jobNumber":"工号首字母大写","loginWithWechatmpQrcodeTipsTitle":"长按二维码登录","del":"移除","qrcode":"二维码","registerCompletePasswordDesc":"为了保障账号安全,请设置你的密码。","mfaCertification":"多因素认证","emailMfaCheck":"请输入电子邮箱验证码","SmsMfaCheck":"请输入短信验证码","faceCheck":"请保持摄像头已打开并无遮挡","resetAccount":{"title":"设置用户名","message":"当前用户名不是唯一的,请重新设置用户名后才可以成功登录。"}}'),Yu=JSON.parse('{"inputAccount":"请输入{{text}}","inputAdUsername":"请输入 AD 用户名","inputAdPwd":"请输入 AD 密码","inputLdapUsername":"请输入 LDAP 用户名","inputLdapPwd":"请输入 LDAP 密码","inputCaptchaCode":"请输入图形验证码","captchaCode":"图形验证码","accPwdLoginVerify":"账号登录验证","inputSixCode":"请输入绑定的 6 位数字安全码","inputLoginPwd":"请输入登录密码","inputPhone":"请输入手机号","inputEmail":"请输入邮箱","inputPwdAgain":"再输入一次密码","loginBy":"使用 {{name}} 登录","thridAccLogin":"第三方账号登录","inputRecoverCode":"请输入恢复代码","rememberedSecret":"已经安全地记录了这段密钥","mfaAfterReset":"如果你没有恢复代码,请联系管理员处理","noEmpty":"{{label}} 不能为空","inputCorrectPhone":"请输入正确的手机号或邮箱","inputPhoneOrEmail":"请输入手机号或邮箱","resetPwd":"重置密码","selfUnlock":"自助解锁","selfUnlockText":"你的账号已被锁定,请输入验证码及密码自助解锁。","pwdLogin":"密码登录","bindPwdLogin":"密码登录","appScanLogin":"移动端 APP 扫码登录","scanLogin":"扫码登录","scanAgain":"重新扫码","wechatScanLogin":"使用微信扫码登录","scanSuccess":"扫码成功","ldapLogin":"LDAP 登录","adLogin":"AD 登录","loginText":"登录","authingOtpPushLogin":"推送登录","authingOtpPushCancelLogin":"取消登录","otpLoginPendingText":"已发送请求到 Authing 令牌 APP,请在客户端确认登录","getOtpLoginRequestAgain":"登录请求已失效,请重新获取","downloadOtpVerifier":"下载验证器","loginToMobileClient":"登录移动端","scanQrCode":"扫描二维码","setAuthingTokenVerify":"设置 Authing 令牌 Verify","phoneScanCodeAndDownloadAuthingToken":"请用手机扫码或前往应用市场下载 Authing 令牌","noPrompt":"以后不再提示","directLogin":"直接登录","openAuthingOtp":"打开 Authing 令牌,点击“登录/注册”","clickAndScanQrcode":"点击“登录应用”页面右上角的扫码入口,扫描下方二维码","downloadIOS":"iOS下载","downloadAndroid":"安卓下载","howBindClient":"如何绑定客户端应用","installAuthingToken":"安装 Authing 令牌","downloadAuthingToken":"请使用手机扫码或前往应用市场下载 Authing 令牌","openAppList":"打开应用列表","addApp":"打开\\"应用列表\\",点击\\"添加应用\\"","openLoginPage":"打开登录页","scanQrcode":"点击\\"扫描二维码\\"按钮扫描应用二维码","scanFollowingQrcode":"扫描以下应用二维码","relevanceApp":"关联应用并登录账号","receiveMessageFromAuthingToken":"登录应用账号后即可在 Authing 令牌接收 Web 应用推送完成登录","howUsePushLogin":"如何使用推送登录","inputAccountInWeb":"在 Web 端登录面板输入账号信息","clickLoginButton":"点击\\"登录\\"","receiveMessageInApp":"在已绑定的移动端应用上接收登录推送","confirmLoginInApp":"确认“登录”,即可成功登录 Web 端。","howGetAppLoginUrl":"如何获取应用登录地址","getCodeFromAdmin":"从管理员处获取关联应用二维码","getCodeFromAdminTips":"管理员可在应用登录控制中得到应用二维码,扫描二维码即可登录对应应用。","getCodeFromPersonalCenter":"从个人中心获取应用二维码","getCodeFromPersonalCenterTips":"用户可在\\"个人中心 - 快速认证\\"保存应用登录二维码,使用 Authing 令牌扫码后选择应用即可登录。","getLoginUrlFromConsole":"管理员从控制台取得登录地址","getLoginUrlFromConsoleTips":"管理员可在「控制台 - 应用详情 - 应用配置 - 认证配置」复制认证地址,用户复制认证地址后即可登录和绑定。","nextStep":"下一步","enterAccount":"请输入账号","verifyCodeSended":"验证码已发送至","inputEmailCode":"请输入邮箱验证码","otherVerifyWay":"其他验证方式","otherLoginWay":"其他登录方式","clickSent":"点击发送验证码","bindPhoneInfo":"请输入手机号进行绑定","inputPhoneCode":"请输入手机验证码","forgetPwd":"忘记密码","inputPwd":"请输入密码","setPwdLimit1":"设置至少 6 位字符密码","login":{"setPwdLimit2":"至少六位,需包含英文、数字与符号中的两种","setPwdLimit3":"至少六位,需包含英文、数字与符号"},"setPwdLimitMsg1":"密码长度至少为 6 位","setPwdLimitMsg2":"密码长度至少为 6 位,且要包含英文、数字与符号中的两种","setPwdLimitMsg3":"密码长度至少为 6 位,且要同时包含英文、数字与符号","wechatmpQrcode":"公众号关注登录","inputUsername":"请输入用户名","moreWays":"更多登录","inputCorrectPhoneOrEmail":"请输入有效的手机号或邮箱","sendCodeTimeout":"发送失败,请稍后尝试","mediaDevicesSupport":"当前设备暂不支持人脸识别","qrcodeNetWorkError":"网络异常 点击重试","qrcodeRefer":"刷新","noLoginMethodsDesc":"未配置登录方式","socialConnectionMessage":"不支持使用{{provider}}登录,请选择其他方式登录,或在其它浏览器中重试","inputNewPwd":"请输入新密码","selectLoginAccount":"选择登录账号","useOtherAccount":"使用其他账号","tenant":{"consoleManage":"管理员控制台","ssoPad":"单点登录应用面板"},"AuthorizationCamera":"请先开启授权","checkPreferences":"请检查偏好设置","requireError":"无法满足要求错误","hardwareSupport":"硬件不支持","verifyCodeTip":"看不清?换一张","resetPassword":{"pleaseInputPassword":"请输入密码","checkPasswordDiff":"请输入一致的密码","nextStep":"下一步","reset":"重置密码","back":"返回","resetPasswordText1":"请输入你注册的手机号/邮箱用于接收验证码,我们将为你重置密码。","resetPasswordText2":"你正在重置 {{account}} 的密码。","input":"输入{{text}}","inputFourVerifyCode":"请输入 {{length}} 位验证码","inputNewPwd":"请输入新密码","confirmNewPwd":"请确认新密码","successTipMsg":"你可以使用新密码继续登录","successTip":"密码重置成功","backLogin":"秒后将自动跳转登录页"}}'),Ju=JSON.parse('{"numberSafteyCode":"数字安全码","mfaBind":"MFA 绑定","nextStep":"下一步","inputCurrPwd":"请输入当前密码","inputNewPwd":"请输入新密码","inputOldPwd":"请输入原登录密码","modifyPwd":"修改密码","modifyPwdText":"你的密码连续使用超过 {{number}} 个月,可能存在风险。请重新设置密码。","modifyNoticePwdText":"你的密码连续使用超过 {{number}} 个月,即将过期,为了不影响你的使用,请设置新密码","error":"错误信息","contactAdministrator":"未知的错误~ 请你联系管理员进行处理","resetpasswordText1":"输入你的注册电话/邮箱,输入收到的验证码,我们将为你进行密码重置。","unlockTip":"若解锁遇到问题,请点"}'),Zu=JSON.parse('{"EmailVerification":"電子郵件驗證","LoginSuccess":"登入成功","OTPVerification":"OTP 口令驗證","PasswordRegister":"密碼註冊","EmailRegister":"電子郵件註冊","registerTab":"{{text}}註冊","SMS":"短信驗證碼驗證","account":"賬號","accountLock":"賬號被鎖定,請點擊下方問號進行反饋","alreadyHasAcc":"已有賬號,","areaCodePhone":"區號 手機號碼","back":"返回","backLoginPage":"返回登入","backToMFA":"返回 MFA 綁定","backToVerify":"返回驗證頁","bind":"綁定","bindEmail":"綁定電子郵件","bindEmailDoc":"請輸入電子郵件進行綁定","bindPhone":"綁定手機號碼","bindSuccess":"完成綁定","bindTotp":"綁定 OTP","captchaCode":"驗證碼","checkEmail":"該電子郵件已存在","checkPasswordHasSpace":"不能包含空格","checkPhone":"該手機號碼已存在","checkUserName":"該用戶名已存在","checkCustomName":"該帳號已存在","clickTodownload":"點擊下載","confirm":"確認","copied":"已復制","copy":"複製","copyFailed":"複製失敗","corsErrorMessage":"當前域名不在允許訪問的域名列表中。","corsErrorMessage2":"如果有疑問可以<a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">參考文檔</a>","downloadTotpAppAndroid":"Android 下載","downloadTotpAppDocs":"請使用手機掃碼下載驗證器","downloadTotpAppIOS":"IOS 下載","email":"電子郵件","emailFormatError":"請輸入有效的電子郵件","emailLabel":"電子郵件","emailVerifyCode":"電子郵件驗證碼","faceText1":"綁定人臉識別","faceText2":"請打開攝像頭識別人臉進行綁定","faceText3":"開始驗證","faceText4":"重試一次","faceVerification":"人臉識別驗證","feedback":"幫助中心","female":"女","fetchError":"網路連接失敗,請稍後再試","fullCaptchaCode":"請填寫完整的{{name}}","goToLogin":"直接登入","hasLooseSaftyCode":"安全碼丟失?","i18nCheckErrorMessage":"請輸入所在區號合法的手機號或正確的郵箱","identityBindingAskDesc":"如果綁定到已有賬號,下次可以通過本次的方式直接登入已有賬號","identityBindingAskTitle":"選擇關聯方式","identityBindingBinding":"我想綁定到已有賬號","identityBindingCreate":"我想創建一個新賬號","identityBindingDesc":"綁定後,下次可以直接通過這次的方式登入到此賬號","identityBindingTitle":"綁定已有賬號","identityBindingSkipAskTitle":"帳號綁定","identityBindingSkipAskDesc":"若存在已有帳號,輸入成功後將會完成綁定; 若輸入新帳號則會完成創建和綁定","initPasswordText":"為了保障賬號安全,請設置您的新密碼。","inputFourVerifyCode":"請輸入 {{length}} 位數驗證碼","internationPhoneMessage":"請輸入所在區號合法的手機號碼","isMissing":"{{name}}未填寫","jobNumber":"工號首字母大寫","login":"登入","loginFailCheck":"溫馨提示:您的密碼錯誤,還可以嘗試 {{number}} 次","loginProtocolTips":"請勾選登入協議","man":"男","mfaText1":"掃碼添加 OTP,在手機查看並輸入 6 位數字安全碼。","no":"否","noAccYet":"還沒有賬號,","noFindEmail":"找不到該電子郵件","noFindPhone":"找不到該手機賬號","noFindUsername":"找不到該用戶名賬號","noQuestions":"沒有問題,","noValidator":"沒有驗證器請","otpText1":"請前往 OTP 綁定頁面進行綁定","pToLogin":"秒後返回","password":"密碼","passwordAgain":"請確認密碼","publicAccount":"公共帳戶","passwordUnsafeTip":"密碼強度已更新,請刷新頁面後重試","perfectUserInfo":"個人資訊","phone":"手機號碼","phoneFormateError":"輸入有效的手機號碼","phoneLabel":"手機號碼","phoneNumber":"手機號碼","phoneOrEmail":"手機號碼或電子郵件","phoneVerifyCode":"短信驗證碼","pleaseRecordKey":"請記錄密鑰","pleaseSelectDate":"請選擇日期","problem":{"form":{"phone":"聯絡方式","question":"相關問題","questionClip":"截圖","questionDescript":"問題描述","submit":"提交"},"locked":"帳號被鎖住","lockedTips":"如果您的帳號被鎖定,請聯繫管理員解鎖後再嘗試登入","noAccount":"帳號遺失","noAccountTip":{"tip":"如果帳號丟失,建議您進行以下操作:","type1":"1. 檢查您的帳號與密碼是否正確輸入","type2":"2. 檢查您的手機服務是否停用 / 沒有網路"},"noLogin":"無法登入","noLoginTip":{"type1":"1. 檢查您的帳號與密碼是否正確輸入","type2":"2. 檢查您的手機服務是否停用 / 沒有網路"},"noLoginTips":"如果無法登入,建議您進行以下操作:","noRegister":"無法註冊","noRegisterTip":{"tip":"如果無法註冊,建議您進行以下操作:","type1":"1. 檢查您的帳號是否已註冊","type2":"2. 檢查您的註冊手機號碼是否正確輸入","type3":"3. 檢查您的驗證碼簡訊是否被阻擋"},"noResetPass":"無法重設密碼","noResetPassTip":{"tip":"如果無法重設密碼,建議您進行以下操作:","type1":"1. 檢查您的手機服務是否停用 / 沒有網路","type2":"2. 檢查您設定的密碼是否正確"},"noVerify":"無法收到驗證碼","noVerifyTip":{"tip":"如果無法收到手機驗證碼,建議您進行以下操作:","type1":"1. 檢查您的手機服務是否停用 / 沒有網路","type2":"2. 檢查您的手機號碼是否輸入正確","type3":"3. 檢查您的驗證碼簡訊是否被阻擋"},"other":"其他","successTip":"提交成功","successTipMsg":"您的信息已經提交給應用管理員,會盡快處理您的反饋,請您耐心等待。","title":"問題回報"},"register":"註冊","registerImmediate":"立即註冊","registerProtocolTips":"請勾選註冊協議","registrationSuccess":"註冊成功","repeatPasswordDoc":"兩次密碼輸入不一致","resetSuccess":"重設密碼","resetSuccessMessage":"密碼重設成功,請使用新密碼登入","retryAfterTime":"{{time}} 秒","sendVerifyCode":"發送驗證碼","skip":"跳過","sure":"確定","timeout":"請求超時,請稍後重試","timeoutAD":"請求超時,AD 配置錯誤","timeoutLDAP":"請求超時,LDAP 配置錯誤","totpGenerateCode":"為您生成一串新的恢復代碼,請安全地記錄這段密鑰","totpText1":"請妥善保存恢復代碼","totpText2":"如果您的 MFA 丟失時,您將需要一個恢復代碼","unlock":"解鎖","unsafePasswordChangeText":"您的密碼不符合當前密碼強度要求,請設置新密碼。","updatePsswordSuccess":"修改密碼成功,請重新登入","uploadFail":"{{name}} 上傳失敗","usePhoneOpen":"請在手機打開 Google Authenticator 或 Microsoft Authenticator","useRecoverCode":"使用恢復代碼","userNameIsExists":"該用戶名已存在!","username":"用戶名","usernameFormatError":"輸入有效的用戶名","customNameFormatError":"輸入有效的帳號","verifyCodeLogin":"驗證碼登入","phoneCodeTab":"手機號登錄","emailCodeTab":"郵箱登錄","verifyCodeRegister":"驗證碼註冊","welcome":"歡迎訪問","welcomeDoc":"歡迎加入 {{name}} ,為了提供最佳的線上體驗,請填寫您的個人資訊","yes":"是","loginWithWechatmpQrcodeTipsTitle":"長按二維碼登入","del":"移除","qrcode":"二維碼","registerCompletePasswordDesc":"為了保障賬號安全,請設置您的密碼。","mfaCertification":"多因素認證","emailMfaCheck":"請輸入電子郵箱驗證碼","SmsMfaCheck":"請輸入短信驗證碼","faceCheck":"請保持攝像頭已打開並無遮擋","resetAccount":{"title":"設定用戶名","message":"當前用戶名不是唯一的,請重新設定用戶名後才可以成功登入。"}}'),Qu=JSON.parse('{"accPwdLoginVerify":"賬號登入驗證","adLogin":"AD 登入","authingOtpPushLogin":"推送登錄","authingOtpPushCancelLogin":"取消登錄","loginText":"登録","otpLoginPendingText":"已發送請求到Authing權杖APP,請在用戶端確認登入","getOtpLoginRequestAgain":"登錄請求已失效,請重新獲取","downloadOtpVerifier":"下載驗證器","loginToMobileClient":"登錄移動端","scanQrCode":"掃描二維碼","setAuthingTokenVerify":"設定Authing權杖Verify","phoneScanCodeAndDownloadAuthingToken":"请用手机扫码或前往应用市场下载 Authing 令牌","noPrompt":"以後不再提示","directLogin":"直接登錄","openAuthingOtp":"打開Authing權杖,點擊“登入/注册”","clickAndScanQrcode":"點擊“登入應用”頁面右上角的掃碼入口,掃描下方二維碼","downloadIOS":"iOS下載","downloadAndroid":"安卓下載","howBindClient":"如何綁定用戶端應?","installAuthingToken":"安裝Authing權杖","downloadAuthingToken":"請使用手機掃碼或前往應用市場下載Authing權杖","openAppList":"打開應用清單","addApp":"打開“應用清單”,點擊“添加應用”","openLoginPage":"打開登入頁","scanQrcode":"點擊“掃描二維碼”按鈕掃描應用二維碼","scanFollowingQrcode":"掃描以下應用二維碼","relevanceApp":"關聯應用並登入帳號","receiveMessageFromAuthingToken":"登录应用账号后即可在 Authing 令牌接收 Web 应用推送完成登录","howUsePushLogin":"如何使用推送登入","inputAccountInWeb":"在Web端登入面板輸入帳號資訊","clickLoginButton":"點擊\\"登入\\"","receiveMessageInApp":"在已綁定的移動端應用上接收登入推送","confirmLoginInApp":"確認“登入”,即可成功登入Web端。","howGetAppLoginUrl":"如何獲取應用登入地址","getCodeFromAdmin":"從管理員處獲取關聯應用二維碼","getCodeFromAdminTips":"管理員可在應用登入控制中得到應用二維碼,掃描二維碼即可登入對應應用。","getCodeFromPersonalCenter":"從個人中心獲取應用二維碼","getCodeFromPersonalCenterTips":"用戶可在“個人中心-快速認證”保存應用登入二維碼,使用Authing權杖掃碼後選擇應用即可登入。","getLoginUrlFromConsole":"管理員從控制台取得登入地址","getLoginUrlFromConsoleTips":"管理員可在「控制台-應用詳情-應用配寘-認證配寘」複製認證地址,用戶複製認證地址後即可登入和綁定。","nextStep":"下一步","enterAccount":"請輸入帳號","appScanLogin":"移動端 APP 掃碼登入","bindPhoneInfo":"請輸入手機號碼進行綁定","captchaCode":"圖形驗證碼","clickSent":"點擊發送驗證碼","forgetPwd":"忘記密碼","inputAccount":"請輸入{{text}}","inputAdPwd":"請輸入 AD 密碼","inputAdUsername":"請輸入 AD 用戶名","inputCaptchaCode":"請輸入圖形驗證碼","inputCorrectPhone":"請輸入正確的手機號碼或電子郵件","inputCorrectPhoneOrEmail":"請輸入有效的手機號碼或電子郵件","inputEmail":"請輸入電子郵件","inputEmailCode":"請輸入電子郵件驗證碼","inputLdapPwd":"請輸入 LDAP 密碼","inputLdapUsername":"請輸入 LDAP 用戶名","inputLoginPwd":"請輸入密碼","inputNewPwd":"請輸入新密碼","inputPhone":"請輸入手機號碼","inputPhoneCode":"請輸入手機驗證碼","inputPhoneOrEmail":"請輸入手機號碼或電子郵件","inputPwd":"請輸入密碼","inputPwdAgain":"再輸入一次密碼","inputRecoverCode":"請輸入恢復代碼","inputSixCode":"請輸入綁定的 6 位數字安全碼","inputUsername":"請輸入用戶名","ldapLogin":"LDAP 登入","login":{"setPwdLimit2":"至少六位,需包含英文、數字與符號中的兩種","setPwdLimit3":"至少六位,需包含英文、數字與符號"},"loginBy":"使用 {{name}} 登入","mediaDevicesSupport":"當前設備暫不支持人臉識別","mfaAfterReset":"如果您沒有恢復代碼,請聯繫管理員處理","moreWays":"更多登入","noEmpty":"請填入 {{label}}","noLoginMethodsDesc":"未配置登入方式","otherLoginWay":"其他登入方式","otherVerifyWay":"其他驗證方式","pwdLogin":"帳號","bindPwdLogin":"帳號","rememberedSecret":"已經安全地記錄了這段密鑰","resetPwd":"重設密碼","scanLogin":"掃碼登入","selfUnlock":"自助解鎖","selfUnlockText":"您的賬號已被鎖定,請輸入驗證碼及密碼自助解鎖。","sendCodeTimeout":"發送失敗,請稍後嘗試","setPwdLimit1":"設置至少 6 位字符密碼","setPwdLimitMsg1":"密碼長度至少為 6 位","setPwdLimitMsg2":"密碼長度至少為 6 位,且要包含英文、數字與符號中的兩種","setPwdLimitMsg3":"密碼長度至少為 6 位,且要同時包含英文、數字與符號","socialConnectionMessage":"不支持使用{{provider}}登入,請選擇其他方式登入,或在其它瀏覽器中重試","thridAccLogin":"第三方帳號登入","verifyCodeSended":"驗證碼已發送至","wechatmpQrcode":"公眾號關注登入","selectLoginAccount":"選擇登入賬號","useOtherAccount":"使用其他賬號","wechatScanLogin":"使用微信掃碼登錄","qrcodeRefer":"刷新","qrcodeNetWorkError":"網路異常 點擊重試","scanAgain":"重新掃碼","scanSuccess":"掃碼成功","tenant":{"consoleManage":"管理員控制台","ssoPad":"單點登錄應用面板"},"AuthorizationCamera":"請先開啟授權","checkPreferences":"請檢查偏好設置","requireError":"無法滿足要求錯誤","hardwareSupport":"硬件不支持","verifyCodeTip":"看不清?換一張","resetPassword":{"pleaseInputPassword":"請輸入密碼","checkPasswordDiff":"請輸入一致的密碼","nextStep":"下一步","reset":"重置密碼","back":"返回","resetPasswordText1":"請輸入你注册的手機號/郵箱用於接收驗證碼,我們將為你重置密碼。","resetPasswordText2":"你正在重置 {{account}} 的密碼。","input":"輸入{{text}}","inputFourVerifyCode":"請輸入 {{length}} 位數驗證碼","inputNewPwd":"請輸入新密碼","confirmNewPwd":"請確認新密碼","successTipMsg":"你可以使用新密碼繼續登入","successTip":"密碼重置成功","backLogin":"秒後將自動跳轉登入頁"}}'),Xu=JSON.parse('{"contactAdministrator":"未知的錯誤~ 請您聯繫管理員進行處理","error":"錯誤信息","inputCurrPwd":"請輸入當前密碼","inputNewPwd":"請輸入新密碼","inputOldPwd":"請輸入原登入密碼","mfaBind":"MFA 綁定","modifyNoticePwdText":"您的密碼連續使用超過 {{number}} 個月,即將過期,為了不影響您的使用,請設置新密碼","modifyPwd":"修改密碼","modifyPwdText":"您的密碼連續使用超過 {{number}} 個月,可能存在風險。\\n請重新設置密碼。","nextStep":"下一步","numberSafteyCode":"數字安全碼","resetpasswordText1":"請輸入您的註冊電子郵件 / 手機號碼,以及收到的驗證碼,我們將為您進行密碼重設。","unlockTip":"若解鎖遇到問題,請點"}'),ed=JSON.parse('{"guidance":{},"uploadFail":"{{name}} アップロード失敗","confirm":"確認","retryAfterTime":"{{time}} 秒","sendVerifyCode":"認証コードを送信します","emailFormatError":"有効なメールアドレスをご入力ください","usernameFormatError":"有効なユーザー名を入力する","customNameFormatError":"有効なアカウントを入力","phoneFormateError":"有効な携帯番号を入力する","username":"ユーザー名","login":"ログイン","noAccYet":"アカウントがないので,","registerImmediate":"すぐに登録します","sure":"確定","hasLooseSaftyCode":"セキュリティコードの紛失?","useRecoverCode":"復旧コードを使って","register":"登録","unlock":"ロック","alreadyHasAcc":"すでにアカウントがある,","perfectUserInfo":"プロフィール充実","publicAccount":"パブリックアカウント","man":"男","female":"女","emailLabel":"メールアドレス","phoneLabel":"携帯電話番号","pleaseSelectDate":"日付を選んでください","bindEmail":"メールボックスを結びつける","email":"メールアドレス","inputFourVerifyCode":"{{length}}桁の認証コードをご入力ください","bindPhone":"携帯電話番号を結びつける","phoneNumber":"携帯電話","bind":"据え置き","yes":"は","no":"いいえ","problem":{"title":"ヘルプ・お問い合わせ","noVerify":"認証コードが届きません","noLogin":"ログインできません","noRegister":"登録できません","noAccount":"アカウントをお忘れ","noResetPass":"パスワードのリセットができません","locked":"アカウントがロックされました","other":"その他","noVerifyTip":{"tip":"認証コードのSMSが届かない原因としては以下の事象等が考えられます。","type1":"1. 通信状況が不安定 /モバイル通信ができない状態","type2":"2. 電話番号の入力間違い","type3":"3. SMSの受信の制限"},"noLoginTip":{"type1":"1. アカウントとパスワードの入力が正しいかどうかチェックします。","type2":"2. 携帯電話が利用停止かどうか若しくはネットワーク接続状態チェックします。"},"noRegisterTip":{"tip":"ログインできない場合は、以下の操作をお勧めします。","type1":"1. すでにアカウント登録済みとなっているかどうかチェックします。","type2":"2. 携帯電話番号が正しく入力しているかどうかチェックします。","type3":"3. 認証コードのSMSがブロックされているかどうかチェックします。"},"noAccountTip":{"tip":"アカウントが紛失した場合は、以下の操作をお勧めします。","type1":"1. アカウントとパスワードの入力が正しいかどうかチェックします。","type2":"2. 携帯電話が利用停止かどうか若しくはネットワーク接続状態チェックします。"},"noResetPassTip":{"tip":"パスワードをリセットできない場合は、以下の操作をお勧めします。","type1":"1. 携帯電話が利用停止かどうか若しくはネットワーク接続状態チェックします。","type2":"2. 設定したパスワードが正しいかどうかチェックします。"},"otherTip":{},"successTip":"提出に成功する","successTipMsg":"あなたの情報はアプリケーション管理者に提出されており、フィードバックはすぐに処理されますので、お待ちください。","form":{"phone":"連絡方法","question":"ご用件","questionDescript":"お問い合わせ内容","questionClip":"スクリーンショット","submit":"提出"},"lockedTips":"アカウントがロックされた場合は、管理者にご連絡頂き、ロック解除された後もう一度ログインするようお願い致します。","noLoginTips":"ログインできない場合は、以下の操作をお勧めします。"},"backLoginPage":"ログイン画面に戻ります","LoginSuccess":"ログインに成功する","welcomeDoc":"{{name}}へようこそ、より良い使用体験をご提供できるよう個人情報のご記入をお願い致します。","bindEmailDoc":"メールアドレスを入力して結びつけてください","copied":"複製済み","copy":"コピー","repeatPasswordDoc":"2回のパスワード入力が一致しません","SMS":"sms認証","EmailVerification":"電子メール認証","OTPVerification":"OTP パスワード検証","faceVerification":"顔認証認証","registrationSuccess":"登録に成功する","copyFailed":"コピー失敗","downloadTotpAppIOS":"IOS のダウンロード","downloadTotpAppAndroid":"Android ダウンロード","downloadTotpAppDocs":"携帯電話のコードを使って検証をダウンロードしてください","bindTotp":"バインディング OTP","checkEmail":"メールボックスはすでに存在しています","checkUserName":"ユーザ名はすでに存在する","checkCustomName":"このアカウントは既に存在します","checkPhone":"携帯電話番号はすでに存在しています","loginFailCheck":"暖かい提示:あなたのパスワードは間違って、また試みることができます {{number}} 回","bindSuccess":"バインディング完了","pleaseRecordKey":"鍵を記録してください","totpText1":"回復コードを適切に保存してください","totpText2":"MFA が紛失した場合復旧コードが必要になります","otpText1":"バインドするには OTP バインド ページに移動してください","faceText1":"顔認証を結びつける","faceText2":"バインドする顔を認識するためにカメラをオンにしてください","faceText3":"検証を開始する","faceText4":"もう一度やってみる","checkPasswordHasSpace":"フレームを含まない","backToVerify":"検証ページに戻る","usePhoneOpen":"携帯で Google Authenticator または Microsoft Authenticator を開いてください","noValidator":"ベリファイアなしで","clickTodownload":"クリックしてダウンロードする","mfaText1":"OTP を追加して、携帯電話で調べて 6 桁の数字の安全なコードを入力します。","backToMFA":"MFA バインディングを戻す","timeoutLDAP":"要求タイムアウト、LDAP構成エラー","noQuestions":"問題がなく、","goToLogin":"直接にログインします","passwordAgain":"パスワードを確認してください","isMissing":"{{name}}が未入力です","password":"パスワード","captchaCode":"認証コード","account":"アカウント","phone":"携帯電話番号","pToLogin":"秒後に、ログイン画面に戻ります","resetSuccess":"リセットが完了しました","resetSuccessMessage":"パスワードのリセットが完了しました。新しいパスワードにて再ログインしてください。","welcome":"訪問を歓迎する","initPasswordText":"アカウントを安全に保つために、新しいパスワードを設定してください。","unsafePasswordChangeText":"あなたのパスワードは現在のパスワード強度の要件を満たしていません。新しいパスワードを設定してください。","updatePsswordSuccess":"パスワードの変更に成功しましたので、再ログインしてください","fullCaptchaCode":"{{name}}を記入してください","feedback":"ヘルプ・お問い合わせ","loginProtocolTips":"ログインプロトコルにチェックを入れてください","registerProtocolTips":"登録プロトコルにチェックを入れてください","accountLock":"アカウントがロックされたら、下の疑問符をクリックしてフィードバックしてください","corsErrorMessage":"現在のドメイン名はアクセスが許可されているドメイン名のリストには含まれていない。","corsErrorMessage2":"質問があれば<a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">ドキュメント参照</a>","totpGenerateCode":"この鍵を安全に記録してください","verifyCodeLogin":"認証コード登録","phoneCodeTab":"携帯電話番号でのログイン","emailCodeTab":"電子メールでのログイン","phoneVerifyCode":"sms認証コード","emailVerifyCode":"メールボックス認証コード","phoneOrEmail":"携帯電話/メールアドレス","skip":"飛び越え","back":"戻る","identityBindingAskTitle":"つながり方を選ぶ","identityBindingAskDesc":"既存アカウントに紐付いている場合は、今回の方法で直接既存アカウントにログインすることができます。","identityBindingCreate":"新しいアカウントを作りたいのですが","identityBindingBinding":"既存のアカウントと結びつけたい","identityBindingTitle":"既存のアカウントを結びつける","identityBindingDesc":"紐付け后、次回から直接今回の方法でこのアカウントにログインすることができます","identityBindingSkipAskTitle":"アカウントのバインド","identityBindingSkipAskDesc":"既存のアカウントが存在する場合は、入力に成功するとバインドが完了します。新規アカウントを入力すると作成とバインドが完了します","internationPhoneMessage":"合法的な局番の携帯番号を入力してください","areaCodePhone":"+局番付き携帯番号","timeoutAD":"要求タイムアウト、AD設定ミス","timeout":"タイムアウトをお願いしますので,後ほど再試行してください","userNameIsExists":"このユーザー名はすでに存在します!","fetchError":"ネットワーク接続に失敗した場合は後ほどお試しください","passwordUnsafeTip":"パスワードが更新されましたので、ページを更新して再試行してください","i18nCheckErrorMessage":"地域番号の合法的な携帯電話番号または正しいメールアドレスを入力してください","verifyCodeRegister":"認証コード登録","EmailRegister":"Eメール登録","registerTab":"{{text}}登録","PasswordRegister":"アカウント登録","noFindEmail":"該当メールアドレスが見つかりません","noFindPhone":"携帯電話のアカウントが見つかりません","noFindUsername":"該当ユーザー名アカウントが見つからない","jobNumber":"工番の頭文字を大文字にする","loginWithWechatmpQrcodeTipsTitle":"qrコードを長押しして登録する","del":"除去","qrcode":"qrコード","registerCompletePasswordDesc":"アカウントを安全に保つために、パスワードを設定してください。","mfaCertification":"多要素認証","emailMfaCheck":"メール認証コードを入力してください","SmsMfaCheck":"SMS認証コードを入力してください","faceCheck":"カメラの電源を入れ、遮るものがない状態にしてください","resetAccount":{"title":"ユーザー名の設定","message":"現在のユーザー名は一つではありません。ユーザー名を再設定してからログインできます。"}}'),td=JSON.parse('{"inputAccount":"{{text}}をご入力ください","inputAdUsername":"AD ユーザー名を入力してください","inputAdPwd":"AD パスワードを入力してください","inputLdapUsername":"LDAP ユーザ名を入力してください","inputLdapPwd":"LDAP パスワードを入力してください","inputCaptchaCode":"図形認証コードを入力してください","captchaCode":"グラフィックス認証コード","accPwdLoginVerify":"アカウント登録検証","inputSixCode":"バインドされた 6 桁のセキュリティ コードを入力してください","inputLoginPwd":"パスワードをご入力ください","inputPhone":"携帯番号を入力してください","inputEmail":"メールアドレスをご入力ください","inputPwdAgain":"もう一度パスワードを入力する","loginBy":"{{name}}を使ってログインする","thridAccLogin":"第三者アカウントのログイン","inputRecoverCode":"復旧コードを入力してください","rememberedSecret":"鍵は安全に記録されています","mfaAfterReset":"復旧コードがない場合は管理者に連絡してください","noEmpty":"{{label}}が未入力です","inputCorrectPhone":"メールアドレス/携帯電話を正しくご入力ください","inputPhoneOrEmail":"携帯番号またはメールアドレスをご入力ください","resetPwd":"パスワードをリセット","selfUnlock":"セルフロック","selfUnlockText":"あなたのアカウントはロックされています。認証コードとパスワードを入力してセルフロックを解除してください。","pwdLogin":"既にアカウントをお持ち","bindPwdLogin":"アカウントログイン","appScanLogin":"モバイルアプリでコード登録","scanLogin":"コード登録","scanAgain":"コードを掃き直す","wechatScanLogin":"wechatのコードを使ってログインする","scanSuccess":"コード掃きに成功する","ldapLogin":"LDAP ログイン","adLogin":"AD 登録","authingOtpPushLogin":"プッシュ登録","authingOtpPushCancelLogin":"登録をキャンセルする","loginText":"登録","otpLoginPendingText":"AuthingトークンAPPにリクエストを送信しました。クライアントでログインを確認してください","getOtpLoginRequestAgain":"ログイン要求は無効になりましたので、再取得してください","downloadOtpVerifier":"ベリファイアのダウンロード","loginToMobileClient":"モバイル端末へのログイン","scanQrCode":"スキャン2次元コード","setAuthingTokenVerify":"AuthingトークンVerifyの設定","phoneScanCodeAndDownloadAuthingToken":"携帯電話でコードをスキャンするか、アプリケーション市場に行ってAuthingトークンをダウンロードしてください","noPrompt":"後でプロンプトしない","directLogin":"直接ログイン","openAuthingOtp":"Authingトークンを開き、「ログイン/登録」をクリックします","clickAndScanQrcode":"「ログインアプリケーション」ページの右上にあるスキャンコードの入り口をクリックし、下のQRコードをスキャンします","downloadIOS":"iOSダウンロード","downloadAndroid":"Androidダウンロード","howBindClient":"クライアントアプリケーションをバインドする方法","installAuthingToken":"Authingトークンのインストール","downloadAuthingToken":"携帯電話でコードをスキャンするか、アプリケーション市場に行ってAuthingトークンをダウンロードしてください","openAppList":"アプリケーションリストを開く","addApp":"「アプリケーションリスト」を開き、「アプリケーションの追加」をクリックします","openLoginPage":"ログインページを開く","scanQrcode":"「QRコードをスキャン」ボタンをクリックしてQRコードをスキャンして適用する","scanFollowingQrcode":"スキャン以下にQRコードを適用","relevanceApp":"アプリケーションを関連付けてアカウントにログインする","receiveMessageFromAuthingToken":"アプリケーションアカウントにログインすると、AuthingトークンでWebアプリケーションのプッシュを受信してログインを完了することができます","howUsePushLogin":"プッシュログインの使用方法","inputAccountInWeb":"Webログインパネルにアカウント情報を入力する","clickLoginButton":"「ログイン」をクリック","receiveMessageInApp":"バインドされたモバイル端末アプリケーションへのログインプッシュの受信","confirmLoginInApp":"「ログイン」を確認すると、Web側に正常にログインできます。","howGetAppLoginUrl":"アプリケーションログインアドレスを取得する方法","getCodeFromAdmin":"管理者から関連アプリケーションのQRコードを取得する","getCodeFromAdminTips":"管理者はアプリケーションログイン制御に二次元コードを適用することができ、二次元コードをスキャンすれば対応するアプリケーションにログインすることができる。","getCodeFromPersonalCenter":"パーソナルセンターからアプリケーションQRコードを取得する","getCodeFromPersonalCenterTips":"ユーザーは「パーソナルセンター-クイック認証」保存アプリケーションに二次元コードを登録し、Authingトークンを使用してコードをスキャンした後、アプリケーションを選択することでログインすることができます","getLoginUrlFromConsole":"管理者はコンソールからログインアドレスを取得する","getLoginUrlFromConsoleTips":"管理者は、コンソール-アプリケーション詳細-アプリケーション構成-認証構成で認証アドレスをコピーでき、ユーザーは認証アドレスをコピーするとログインとバインドできます。","nextStep":"次のステップ","enterAccount":"アカウントを入力してください","verifyCodeSended":"認証コードが送信され","inputEmailCode":"メールアドレス認証を入力してください","otherVerifyWay":"その他の検証方法","otherLoginWay":"その他の登録方法","clickSent":"認証コードの送信をクリックする","bindPhoneInfo":"携帯番号を入力して結びつけてください","inputPhoneCode":"携帯認証コードを入力してください","forgetPwd":"パスワードをお忘れの場合","inputPwd":"パスワードを入力してください","setPwdLimit1":"最低 6 ビットの文字パスワードを設定する","login":{"setPwdLimit2":"少なくとも6桁で、英数字と記号のうち2種類を含むこと","setPwdLimit3":"少なくとも6桁の英数字および記号を含むこと"},"setPwdLimitMsg1":"パスワードの長も 6桁で","setPwdLimitMsg2":"パスワードの長さは少なくとも 6桁で、英語、数字、記号のうち 2種類を含むこと","setPwdLimitMsg3":"パスワードの長も 6桁で、英文、数字および記号を同時に含むこと","wechatmpQrcode":"公衆番号フォロー登録","inputUsername":"ユーザー名を入力してください","moreWays":"もっとログインする","inputCorrectPhoneOrEmail":"有効な携帯番号またはメールアドレスをご入力ください","sendCodeTimeout":"送信に失敗した場合は後ほどお試しください","mediaDevicesSupport":"現在のデバイスは顔認識をサポートしていない","qrcodeNetWorkError":"ネットワーク異常クリック再試行","qrcodeRefer":"更新","noLoginMethodsDesc":"未構成登録方式","socialConnectionMessage":"{{provider}}を使用したログインはサポートされていません。他の方法でログインするか、他のブラウザで再試行してください。","inputNewPwd":"新しいパスワードをご入力ください","selectLoginAccount":"ログインアカウントを選択する","useOtherAccount":"別のアカウントを使う","tenant":{"consoleManage":"管理コンソール","ssoPad":"シングル サインオン アプリケーション パネル"},"AuthorizationCamera":"最初に認証を有効にしてください","checkPreferences":"設定を確認してください","requireError":"要求エラーを満たすことができません","hardwareSupport":"ハードウェアはサポートされていません","verifyCodeTip":"別の画像を表示","resetPassword":{"pleaseInputPassword":"パスワードを入力してください","checkPasswordDiff":"一貫したパスワードを入力してください","nextStep":"次のステップ","reset":"パスワードをリセット","back":"戻る","resetPasswordText1":"認証コードを受け取るために登録した携帯電話番号/メールボックスを入力してください。パスワードをリセットします。","resetPasswordText2":"あなたはリセットしています {{account}} のパスワード。","input":"インプット{{text}}","inputFourVerifyCode":"入力してください {{length}} ビット認証コード","inputNewPwd":"新しいパスワードを入力してください","confirmNewPwd":"新しいパスワードを確認してください","successTipMsg":"新しいパスワードを使用してログインを続けることができます","successTip":"パスワードのリセットに成功しました","backLogin":"秒ログインページが自動的にジャンプされます"}}'),nd=JSON.parse('{"numberSafteyCode":"デジタルセキュリティコード","mfaBind":"MFA バインディング","nextStep":"次のステップ","inputCurrPwd":"現在のパスワードを入力してください","inputNewPwd":"新しいパスワードをご入力ください","inputOldPwd":"元のログインパスワードを入力してください","modifyPwd":"パスワードを変更する","modifyPwdText":"{{number}} か月以上連続して使用すると、パスワードが危険にさらされる可能性があります。 あなたのパスワードをリセットしてください。","modifyNoticePwdText":"あなたのパスワードは {{number}} か月以上継続して使用されており、有効期限が近づいています。使用に影響を与えないように、新しいパスワードを設定してください。","error":"エラーメッセージ","contactAdministrator":"不明なエラーです ~ 処理については管理者に連絡してください","resetpasswordText1":"登録の携帯番号/メールアドレスを入力し、認証コードを入力しください。パスワードのリセットをさせて頂きます。","unlockTip":"ロック解除に問題がある場合は、クリックしてください"}');// CONCATENATED MODULE: ./src/_utils/locales/index.ts
|
|
12641
|
+
const Hu=JSON.parse('{"alreadyHasAcc":"already have an account,","bind":"Bind","yes":"Yes","no":"No","usernameFormatError":"Enter a valid user name","customNameFormatError":"Enter a valid account number","checkUserName":"The username already exists","checkCustomName":"The account already exists","pleaseSelectDate":"Please select date","bindEmail":"Bind Email","bindPhone":"Bind your phone number","confirm":"Confirm","unlock":"unlock","email":"Email","emailFormatError":"Enter a valid Email address ","emailLabel":"Email","female":"Female","guidance":{},"hasLooseSaftyCode":"Lost the security code?","inputFourVerifyCode":"{{length}}-digit code","login":"Log In","man":"Male","noAccYet":"No account yet,","perfectUserInfo":"Personal Information","phoneFormateError":"Please verify your phone number first","phoneLabel":"Phone","phoneNumber":"Phone number","register":"Sign Up","registerImmediate":"Sign Up","retryAfterTime":"{{time}} seconds","sendVerifyCode":"Send Code","sure":"Confirm","uploadFail":"{{name}} failed to upload","useRecoverCode":"Use recovery code","username":"Username","problem":{"title":"Tell us your problem","noVerify":"Unable to receive the verification code","noLogin":"Unable to log in","noRegister":"Unable to register","noAccount":"Lost Account","noResetPass":"Unable to reset password","locked":"Account is locked","other":"Other","noVerifyTip":{"tip":"If you cannot receive the mobile phone verification code, I suggest you do the following:","type1":"1. Check if your mobile phone is turned off or offline.","type2":"2. Check if your phone number has been entered correctly.","type3":"3. Check if your SMS with the verification code is blocked."},"noLoginTip":{"type1":"1. Check if your username and password have been entered correctly.","type2":"2. Check if your mobile phone is turned off or offline."},"noRegisterTip":{"tip":"If you cannot register, please do the following steps to solve this issue:","type1":"1. Check if your account has been registered.","type2":"2. Check if your phone number has been entered correctly.","type3":"3. Check if your SMS with the verification code is blocked."},"noAccountTip":{"tip":"If your account is lost, please do the following steps to solve this issue:","type1":"1. Check if your username and password have been entered correctly.","type2":"2. Check if your mobile phone is turned off or offline."},"noResetPassTip":{"tip":"If your password cannot be reset, please do the following steps to solve this issue:","type1":"1. Check if your mobile phone is turned off or offline.","type2":"2. Check if your password has been entered correctly."},"otherTip":{},"successTip":"Submitted successfully","successTipMsg":"Your information has been submitted to the application administrator. Your feedback will be processed as soon as possible. Please wait patiently.","form":{"phone":"Contact","question":"Problem","questionDescript":"Problem description","questionClip":"Problem screenshot","submit":"Submit"},"noLoginTips":"If you cannot log in, we suggest you do the following:","lockedTips":"If your account is locked, please contact the administrator to unlock it and try to log in again"},"backLoginPage":"Back","LoginSuccess":"Login Success","welcomeDoc":"Welcome to {{name}}. Providing your personal information will allow us to give you the best online\\nexperience.","copied":"Copied","bindEmailDoc":"please enter the mailbox to bind","copy":"Copy","SMS":"SMS Verification","EmailVerification":"Email Verification","OTPVerification":"OTP Verification","faceVerification":"Face Verification","registrationSuccess":"Registration Success","repeatPasswordDoc":"The Two Passwords Entered are Inconsistent","copyFailed":"Copy Failed","downloadTotpAppAndroid":"Android download","downloadTotpAppDocs":"Please use your mobile phone to scan the code to download the verifier","downloadTotpAppIOS":"IOS download","bindTotp":"Bind OTP","checkEmail":"The email already exists","checkPhone":"The phone number already exists","loginFailCheck":"Reminder: Your password is wrong, you can try {{number}} times","otpText1":"Please go to the OTP binding page to bind","faceText1":"Bind facial recognition","faceText2":"Please turn on the camera to recognize the face for binding","faceText3":"Start","faceText4":"Try again","checkPasswordHasSpace":"No spaces","backToVerify":"Back","backToMFA":"Return to MFA binding","bindSuccess":"Complete binding","clickTodownload":"click to download","goToLogin":"Back","mfaText1":"Scan the code to add MFA, check it on your mobile phone and enter the 6-digit security code.","noQuestions":"no problem,","noValidator":"No validator please","pleaseRecordKey":"Please record the key","timeoutLDAP":"Request timed out, LDAP configuration error","totpText1":"Please keep the recovery code properly","totpText2":"If your MFA is lost, you will need a recovery code","usePhoneOpen":"Please open Google Authenticator or Microsoft Authenticator on your phone","passwordAgain":"Confirm password","isMissing":"{{name}} is missing","password":"Password","captchaCode":"Digit code","account":"Account","phone":"Phone number","pToLogin":"seconds later back","resetSuccess":"Reset successfully","resetSuccessMessage":"The password is reset successfully, you can continue to log in with the new password","welcome":"Welcome","initPasswordText":"To ensure account security, please set your new password.","unsafePasswordChangeText":"Your password does not meet the current password strength requirements. Please set a new password.","updatePsswordSuccess":"Change the password successfully, please log in again","fullCaptchaCode":"Please fill in the complete","feedback":"Need help ?","loginProtocolTips":"Please check the login protocol","registerProtocolTips":"Please check the registration agreement","accountLock":"The account is locked, please click the question mark below to give feedback","corsErrorMessage":"The current domain name is not in the list of allowed domain names","corsErrorMessage2":"If you have any questions, you can <a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">refer to the document</a>","totpGenerateCode":"Generate a new recovery code for you, please record this key safely","verifyCodeLogin":"Verify Code","phoneVerifyCode":"Phone Code","emailVerifyCode":"Email Code","phoneCodeTab":"Phone Code","emailCodeTab":"Email Code","phoneOrEmail":"Phone Or Email","skip":"Skip","back":"Back","publicAccount":"Public account","identityBindingAskTitle":"Choose how to connect","identityBindingAskDesc":"If you are bound to an existing account, you can directly log in to the existing account by this method next time.","identityBindingCreate":"Create a new account","identityBindingBinding":"Bind to an existing account","identityBindingTitle":"Bind existing account","identityBindingDesc":"After binding, you can log in to this account directly by this method next time","identityBindingSkipAskTitle":"Account Binding","identityBindingSkipAskDesc":"Enter an exisiting account to bind, or enter a new account to sign up.","internationPhoneMessage":"Please enter a valid mobile phone number","areaCodePhone":"Area code Mobile number","timeoutAD":"Request timed out, AD misconfigured","timeout":"Request timed out, please try again later","userNameIsExists":"This username already exists!","fetchError":"Network connection failed, please try again later","i18nCheckErrorMessage":"Please enter a valid mobile phone number or correct email address","verifyCodeRegister":"Verify Code","PasswordRegister":"Password","EmailRegister":"Email","registerTab":"{{text}}","noFindEmail":"Can\'t find the email account","noFindPhone":"Can\'t find the phone account","noFindUsername":"Can\'t find the username account","jobNumber":"Account first letter must be capital","passwordUnsafeTip":"Password strength has been updated, please refresh the page and try again","loginWithWechatmpQrcodeTipsTitle":"Long press the QR code to login","del":"Delete","qrcode":"QR Code","registerCompletePasswordDesc":"To ensure account security, please set your password.","mfaCertification":"Multi-factor authentication","emailMfaCheck":"Please enter email verification code","SmsMfaCheck":"Please enter SMS verification code","faceCheck":"Please keep the camera turned on and unobstructed","resetAccount":{"title":"Set the user name","message":"The current user name is not unique, please reset the user name before you can successfully log on."}}'),Wu=JSON.parse('{"inputAccount":"Enter {{text}}","inputAdUsername":"Enter AD username","accPwdLoginVerify":"Account login verification","captchaCode":"Captcha","inputAdPwd":"Enter AD password","inputCaptchaCode":"Digit code","inputCorrectPhone":"Enter correct phone number or email address","inputEmail":"Enter Email","inputLdapPwd":"LDAP Password","inputLdapUsername":"LDAP Username","inputLoginPwd":"Enter Password","inputPhone":"Phone number","inputPhoneOrEmail":"Enter Phone number or Email","inputPwdAgain":"Enter password again","inputRecoverCode":"Enter recovery code","inputSixCode":"Enter 6-digit security code","loginBy":"Sign in with {{name}}","mfaAfterReset":"If you do not have a recovery code, please contact the administrator","noEmpty":"Please enter a {{label}}","rememberedSecret":"This key has been safely recorded","resetPwd":"Reset password","selfUnlock":"self unlock","selfUnlockText":"Your account has been locked, please enter the verification code and password to unlock it by yourself.","thridAccLogin":"Or sign in with","pwdLogin":"Password","bindPwdLogin":"Password","appScanLogin":"Mobile APP QR Code","scanLogin":"QR Code","ldapLogin":"LDAP","adLogin":"AD","authingOtpPushLogin":"Login by push","authingOtpPushCancelLogin":"Cancel login","loginText":"Login","otpLoginPendingText":"The request has been sent to the Authoring Token APP. Please confirm login at the client","getOtpLoginRequestAgain":"The login request is invalid. Please send request again","downloadOtpVerifier":"Download Authing OTP","loginToMobileClient":"Login Authing OTP","scanQrCode":"Scan QR code","setAuthingTokenVerify":"Set Authing OTP Verify","phoneScanCodeAndDownloadAuthingToken":"Please scan the code with your mobile phone or go to the app market to download the Authing OTP","noPrompt":"Don\'t prompt again","directLogin":"Direct login","openAuthingOtp":"Open the Authing OTP and click \\"Login / Register\\"","clickAndScanQrcode":"Click the scanning entry at the upper right corner of the \\"Login Application\\" page to scan the QR code below","downloadIOS":"IOS download","downloadAndroid":"Android download","howBindClient":"How to bind client applications","installAuthingToken":"Install the Authing Token App","downloadAuthingToken":"Please use your mobile phone to scan the code or go to the application market to download the Authoring token","openAppList":"Open app list","addApp":"Open the \\"Application List\\" and click \\"Add Application\\"","openLoginPage":"Open the login page","scanQrcode":"Click the \\"Scan QR code\\" button to scan the application QR code","scanFollowingQrcode":"Scan the following application QR code","relevanceApp":"Associate the application and log in to the account","receiveMessageFromAuthingToken":"After logging in to the application account, you can complete the login by receiving the Web application push in the Authing token","howUsePushLogin":"How to use push login","inputAccountInWeb":"Enter account information in the web login panel","clickLoginButton":"Click \\"Login\\"","receiveMessageInApp":"Receive login push on the bound mobile application","confirmLoginInApp":"Confirm \\"Login\\" to successfully log in to the web side.","howGetAppLoginUrl":"How to get the application login address","getCodeFromAdmin":"Get the associated application QR code from the administrator","getCodeFromAdminTips":"The administrator can get the application QR code in the application login control, and scan the QR code to log in to the corresponding application.","getCodeFromPersonalCenter":"Get application QR code from personal center","getCodeFromPersonalCenterTips":"Users can save the application login QR code in \\"Personal Center - Quick Authentication\\", and use the Authoring token to scan the code and select the application to log in","getLoginUrlFromConsole":"The administrator obtains the login address from the console","getLoginUrlFromConsoleTips":"Administrators can copy the authentication address in \\"Console - Application Details - Application Configuration - Authentication Configuration\\". Users can log in and bind after copying the authentication address.","nextStep":"Next Step","enterAccount":"Please enter the account","inputEmailCode":"Enter email verification code","otherVerifyWay":"Other verification methods","otherLoginWay":"OR","verifyCodeSended":"Verification code has been sent to","clickSent":"Click send","reSent":"Click to resend the verification code","bindPhoneInfo":"Please enter the phone number to bind","inputPhoneCode":"Please enter the phone verification code","forgetPwd":"Forgot Password","inputPwd":"Password","login":{"setPwdLimit2":"At least six digits, must contain two of English, numbers and symbols","setPwdLimit3":"At least six digits, including English, numbers and symbols"},"setPwdLimit1":"Set a password of at least 6 characters","setPwdLimitMsg1":"Passwords must be at least 6 characters long","setPwdLimitMsg2":"The password must be at least 6 characters long and must contain two of English, numbers and symbols","setPwdLimitMsg3":"The password must be at least 6 digits long and must contain English, numbers and symbols at the same time","wechatmpQrcode":"WechatMp QRcode\\t","inputUsername":"Username","moreWays":"More Login","inputCorrectPhoneOrEmail":"Enter a valid Email or Phone number","sendCodeTimeout":"Sending failed, please try later","mediaDevicesSupport":"The current device does not support face recognition","noLoginMethodsDesc":"No login method configured","inputNewPwd":"Please enter a new password","socialConnectionMessage":"Login with {{provider}} is not supported, please choose another way to log in, or try again in another browser","selectLoginAccount":"Select login account","useOtherAccount":"Use another account","wechatScanLogin":"WeChat QR Code","qrcodeRefer":"Refresh","qrcodeNetWorkError":"Retry","scanAgain":"Scan the code again","scanSuccess":"Scan Success","tenant":{"consoleManage":"Admin console","ssoPad":"Single sign-on application panel"},"AuthorizationCamera":"Please enable authorization first","checkPreferences":"Please check preferences","requireError":"Unable to satisfy request error","hardwareSupport":"Hardware not supported","verifyCodeTip":"Try another","resetPassword":{"pleaseInputPassword":"Please input a password","checkPasswordDiff":"Please enter a consistent password","nextStep":"Next","reset":"reset password","back":"Back","resetPasswordText1":"Please enter your registered mobile phone number/email to receive the verification code, and we will reset your password.","resetPasswordText2":"You are resetting Password for {{account}}。","input":"Input{{text}}","inputFourVerifyCode":"{{length}}-digit code","inputNewPwd":"Please enter a new password","confirmNewPwd":"Please confirm the new password","successTipMsg":"You can continue to log in with your new password","successTip":"Password reset succeeded","backLogin":"Seconds will automatically jump to the login page"}}'),Gu=JSON.parse('{"inputCurrPwd":"Enter current password","inputNewPwd":"Enter a new Password","inputOldPwd":"Enter a old Password","mfaBind":"MFA Binding","modifyPwd":"Change Password","nextStep":"Next","numberSafteyCode":"Digital Security Code","error":"Error~","contactAdministrator":"Unknown error ~ please contact the administrator for processing","resetpasswordText1":"Enter your registered phone number/email, enter the verification code received, and we will reset your password.","modifyPwdText":"Your password has been used continuously for more than {{number}} months, which may be risky. Please reset your password.","modifyNoticePwdText":"Your password has been used continuously for more than {{number}} months, It will expire soon, in order not to affect your use, please set a new password","unlockTip":"If you encounter problems with unlocking, please click"}'),Ku=JSON.parse('{"guidance":{},"uploadFail":"{{name}} 上传失败","confirm":"确认","retryAfterTime":"{{time}} 秒","sendVerifyCode":"发送验证码","emailFormatError":"输入有效的邮箱","usernameFormatError":"输入有效的用户名","customNameFormatError":"输入有效的账号","phoneFormateError":"输入有效的手机号","username":"用户名","login":"登录","noAccYet":"还没有账号,","registerImmediate":"立即注册","sure":"确定","hasLooseSaftyCode":"安全码丢失?","useRecoverCode":"使用恢复代码","register":"注册","unlock":"解锁","alreadyHasAcc":"已有账号,","perfectUserInfo":"完善用户信息","man":"男","female":"女","emailLabel":"邮箱","phoneLabel":"手机号","pleaseSelectDate":"请选择日期","bindEmail":"绑定邮箱","email":"邮箱","inputFourVerifyCode":"请输入 {{length}} 位验证码","bindPhone":"绑定手机号","phoneNumber":"手机号","bind":"绑定","yes":"是","no":"否","problem":{"title":"问题反馈","noVerify":"无法收到验证码","noLogin":"无法登录","noRegister":"无法注册","noAccount":"帐号丢失","noResetPass":"无法重置密码","locked":"账号被锁定","other":"其他","noVerifyTip":{"tip":"如果无法收到手机验证码,建议你进行以下操作:","type1":"1. 检查你的手机是否停机/无网络","type2":"2. 检查你的手机号是否输入正确","type3":"3. 检查你的验证码短信是否被屏蔽"},"noLoginTip":{"type1":"1. 检查你的用户名与密码输入是否正确","type2":"2. 检查你的手机是否停机/无网络"},"noRegisterTip":{"tip":"如果无法注册,建议你进行以下操作:","type1":"1. 检查你的帐号是否已注册","type2":"2. 检查你的注册手机号是否输入正确","type3":"3. 检查你的验证码短信是否被屏蔽"},"noAccountTip":{"tip":"如果帐号丢失,建议你进行以下操作:","type1":"1. 检查你的用户名与密码输入是否正确","type2":"2. 检查你的手机是否停机/无网络"},"noResetPassTip":{"tip":"如果无法重置密码,建议你进行以下操作:","type1":"1. 检查你的手机是否停机/无网络","type2":"2. 检查你的设置的密码是否正确"},"otherTip":{},"successTip":"提交成功","successTipMsg":"你的信息已经提交给应用管理员,会尽快处理你的反馈,请你耐心等待。","form":{"phone":"联系方式","question":"相关问题","questionDescript":"问题描述","questionClip":"问题截图","submit":"提交"},"lockedTips":"如果你的账号被锁定,请联系管理员解锁后再尝试登录","noLoginTips":"如果无法登录,建议你进行以下操作:"},"backLoginPage":"返回登录","LoginSuccess":"登录成功","welcomeDoc":"欢迎加入 {{name}} ,为了更好的使用体验,请先完善你的个人信息","bindEmailDoc":"请输入邮箱进行绑定","copied":"已复制","copy":"复制","repeatPasswordDoc":"两次密码输入不一致","SMS":"短信验证码验证","EmailVerification":"电子邮箱验证","OTPVerification":"OTP 口令验证","faceVerification":"人脸识别验证","registrationSuccess":"注册成功","copyFailed":"复制失败","downloadTotpAppIOS":"IOS 下载","downloadTotpAppAndroid":"Android 下载","downloadTotpAppDocs":"请使用手机扫码下载验证器","bindTotp":"绑定 OTP","checkEmail":"该邮箱已存在","checkUserName":"该用户名已存在","checkCustomName":"该账号已存在","checkPhone":"该手机号已存在","loginFailCheck":"温馨提示:你的密码错误,还可以尝试 {{number}} 次","bindSuccess":"完成绑定","pleaseRecordKey":"请记录密钥","totpText1":"请妥善保存恢复代码","totpText2":"如果你的 MFA 丢失时,你将需要一个恢复代码","otpText1":"请前往 OTP 绑定页面进行绑定","faceText1":"绑定人脸识别","faceText2":"请打开摄像头识别人脸进行绑定","faceText3":"开始验证","faceText4":"重试一次","publicAccount":"公共账号","checkPasswordHasSpace":"不能包含空格","backToVerify":"返回验证页","usePhoneOpen":"请在手机打开 Google Authenticator 或 Microsoft Authenticator","noValidator":"没有验证器请","clickTodownload":"点击下载","mfaText1":"扫码添加 OTP,在手机查看并输入 6 位数字安全码。","backToMFA":"返回 MFA 绑定","timeoutLDAP":"请求超时,LDAP 配置错误","noQuestions":"没有问题,","goToLogin":"直接登录","passwordAgain":"请确认密码","isMissing":"{{name}}未填写","password":"密码","captchaCode":"验证码","account":"账号","phone":"手机号","pToLogin":"秒后返回登录","resetSuccess":"重置成功","resetSuccessMessage":"密码重置成功,你可以使用新密码继续登录","welcome":"欢迎访问","initPasswordText":"为了保障账号安全,请设置你的新密码。","unsafePasswordChangeText":"你的密码不符合当前密码强度要求,请设置新密码。","updatePsswordSuccess":"修改密码成功,请重新登录","fullCaptchaCode":"请填写完整的{{name}}","feedback":"问题反馈","loginProtocolTips":"请勾选登录协议","registerProtocolTips":"请勾选注册协议","accountLock":"账号被锁定,请点击下方问号进行反馈","corsErrorMessage":"当前域名不在允许访问的域名列表中。","corsErrorMessage2":"如果有疑问可以<a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">参考文档</a>","totpGenerateCode":"为你生成一串新的恢复代码,请安全地记录这段密钥","verifyCodeLogin":"验证码登录","phoneCodeTab":"手机号登录","emailCodeTab":"邮箱登录","phoneVerifyCode":"短信验证码","emailVerifyCode":"邮箱验证码","phoneOrEmail":"手机号或邮箱","skip":"跳过","back":"返回","identityBindingAskTitle":"选择关联方式","identityBindingAskDesc":"如果绑定到已有账号,下次可以通过本次的方式直接登录已有账号","identityBindingCreate":"我想创建一个新账号","identityBindingBinding":"我想绑定到已有账号","identityBindingTitle":"绑定已有账号","identityBindingDesc":"绑定后,下次可以直接通过这次的方式登录到此账号","identityBindingSkipAskTitle":"账号绑定","identityBindingSkipAskDesc":"若存在已有账号,输入成功后将会完成绑定;若输入新账号则会完成创建和绑定","internationPhoneMessage":"请输入所在区号合法的手机号","areaCodePhone":"+区号 手机号","timeoutAD":"请求超时,AD 配置错误","timeout":"请求超时,请稍后重试","userNameIsExists":"该用户名已存在!","fetchError":"网络连接失败,请稍后再试","passwordUnsafeTip":"密码强度已更新,请刷新页面后重试","i18nCheckErrorMessage":"请输入所在区号合法的手机号或正确的邮箱","verifyCodeRegister":"验证码注册","PasswordRegister":"密码注册","EmailRegister":"邮箱注册","registerTab":"{{text}}注册","noFindEmail":"找不到该邮箱账号","noFindPhone":"找不到该手机账号","noFindUsername":"找不到该用户名账号","jobNumber":"工号首字母大写","loginWithWechatmpQrcodeTipsTitle":"长按二维码登录","del":"移除","qrcode":"二维码","registerCompletePasswordDesc":"为了保障账号安全,请设置你的密码。","mfaCertification":"多因素认证","emailMfaCheck":"请输入电子邮箱验证码","SmsMfaCheck":"请输入短信验证码","faceCheck":"请保持摄像头已打开并无遮挡","resetAccount":{"title":"设置用户名","message":"当前用户名不是唯一的,请重新设置用户名后才可以成功登录。"}}'),Yu=JSON.parse('{"inputAccount":"请输入{{text}}","inputAdUsername":"请输入 AD 用户名","inputAdPwd":"请输入 AD 密码","inputLdapUsername":"请输入 LDAP 用户名","inputLdapPwd":"请输入 LDAP 密码","inputCaptchaCode":"请输入图形验证码","captchaCode":"图形验证码","accPwdLoginVerify":"账号登录验证","inputSixCode":"请输入绑定的 6 位数字安全码","inputLoginPwd":"请输入登录密码","inputPhone":"请输入手机号","inputEmail":"请输入邮箱","inputPwdAgain":"再输入一次密码","loginBy":"使用 {{name}} 登录","thridAccLogin":"第三方账号登录","inputRecoverCode":"请输入恢复代码","rememberedSecret":"已经安全地记录了这段密钥","mfaAfterReset":"如果你没有恢复代码,请联系管理员处理","noEmpty":"{{label}} 不能为空","inputCorrectPhone":"请输入正确的手机号或邮箱","inputPhoneOrEmail":"请输入手机号或邮箱","resetPwd":"重置密码","selfUnlock":"自助解锁","selfUnlockText":"你的账号已被锁定,请输入验证码及密码自助解锁。","pwdLogin":"密码登录","bindPwdLogin":"密码登录","appScanLogin":"移动端 APP 扫码登录","scanLogin":"扫码登录","scanAgain":"重新扫码","wechatScanLogin":"使用微信扫码登录","scanSuccess":"扫码成功","ldapLogin":"LDAP 登录","adLogin":"AD 登录","loginText":"登录","authingOtpPushLogin":"推送登录","authingOtpPushCancelLogin":"取消登录","otpLoginPendingText":"已发送请求到 Authing 令牌 APP,请在客户端确认登录","getOtpLoginRequestAgain":"登录请求已失效,请重新获取","downloadOtpVerifier":"下载验证器","loginToMobileClient":"登录移动端","scanQrCode":"扫描二维码","setAuthingTokenVerify":"设置 Authing 令牌 Verify","phoneScanCodeAndDownloadAuthingToken":"请用手机扫码或前往应用市场下载 Authing 令牌","noPrompt":"以后不再提示","directLogin":"直接登录","openAuthingOtp":"打开 Authing 令牌,点击“登录/注册”","clickAndScanQrcode":"点击“登录应用”页面右上角的扫码入口,扫描下方二维码","downloadIOS":"iOS下载","downloadAndroid":"安卓下载","howBindClient":"如何绑定客户端应用","installAuthingToken":"安装 Authing 令牌","downloadAuthingToken":"请使用手机扫码或前往应用市场下载 Authing 令牌","openAppList":"打开应用列表","addApp":"打开\\"应用列表\\",点击\\"添加应用\\"","openLoginPage":"打开登录页","scanQrcode":"点击\\"扫描二维码\\"按钮扫描应用二维码","scanFollowingQrcode":"扫描以下应用二维码","relevanceApp":"关联应用并登录账号","receiveMessageFromAuthingToken":"登录应用账号后即可在 Authing 令牌接收 Web 应用推送完成登录","howUsePushLogin":"如何使用推送登录","inputAccountInWeb":"在 Web 端登录面板输入账号信息","clickLoginButton":"点击\\"登录\\"","receiveMessageInApp":"在已绑定的移动端应用上接收登录推送","confirmLoginInApp":"确认“登录”,即可成功登录 Web 端。","howGetAppLoginUrl":"如何获取应用登录地址","getCodeFromAdmin":"从管理员处获取关联应用二维码","getCodeFromAdminTips":"管理员可在应用登录控制中得到应用二维码,扫描二维码即可登录对应应用。","getCodeFromPersonalCenter":"从个人中心获取应用二维码","getCodeFromPersonalCenterTips":"用户可在\\"个人中心 - 快速认证\\"保存应用登录二维码,使用 Authing 令牌扫码后选择应用即可登录。","getLoginUrlFromConsole":"管理员从控制台取得登录地址","getLoginUrlFromConsoleTips":"管理员可在「控制台 - 应用详情 - 应用配置 - 认证配置」复制认证地址,用户复制认证地址后即可登录和绑定。","nextStep":"下一步","enterAccount":"请输入账号","verifyCodeSended":"验证码已发送至","inputEmailCode":"请输入邮箱验证码","otherVerifyWay":"其他验证方式","otherLoginWay":"其他登录方式","clickSent":"点击发送验证码","reSent":"点击重发验证码","bindPhoneInfo":"请输入手机号进行绑定","inputPhoneCode":"请输入手机验证码","forgetPwd":"忘记密码","inputPwd":"请输入密码","setPwdLimit1":"设置至少 6 位字符密码","login":{"setPwdLimit2":"至少六位,需包含英文、数字与符号中的两种","setPwdLimit3":"至少六位,需包含英文、数字与符号"},"setPwdLimitMsg1":"密码长度至少为 6 位","setPwdLimitMsg2":"密码长度至少为 6 位,且要包含英文、数字与符号中的两种","setPwdLimitMsg3":"密码长度至少为 6 位,且要同时包含英文、数字与符号","wechatmpQrcode":"公众号关注登录","inputUsername":"请输入用户名","moreWays":"更多登录","inputCorrectPhoneOrEmail":"请输入有效的手机号或邮箱","sendCodeTimeout":"发送失败,请稍后尝试","mediaDevicesSupport":"当前设备暂不支持人脸识别","qrcodeNetWorkError":"网络异常 点击重试","qrcodeRefer":"刷新","noLoginMethodsDesc":"未配置登录方式","socialConnectionMessage":"不支持使用{{provider}}登录,请选择其他方式登录,或在其它浏览器中重试","inputNewPwd":"请输入新密码","selectLoginAccount":"选择登录账号","useOtherAccount":"使用其他账号","tenant":{"consoleManage":"管理员控制台","ssoPad":"单点登录应用面板"},"AuthorizationCamera":"请先开启授权","checkPreferences":"请检查偏好设置","requireError":"无法满足要求错误","hardwareSupport":"硬件不支持","verifyCodeTip":"看不清?换一张","resetPassword":{"pleaseInputPassword":"请输入密码","checkPasswordDiff":"请输入一致的密码","nextStep":"下一步","reset":"重置密码","back":"返回","resetPasswordText1":"请输入你注册的手机号/邮箱用于接收验证码,我们将为你重置密码。","resetPasswordText2":"你正在重置 {{account}} 的密码。","input":"输入{{text}}","inputFourVerifyCode":"请输入 {{length}} 位验证码","inputNewPwd":"请输入新密码","confirmNewPwd":"请确认新密码","successTipMsg":"你可以使用新密码继续登录","successTip":"密码重置成功","backLogin":"秒后将自动跳转登录页"}}'),Ju=JSON.parse('{"numberSafteyCode":"数字安全码","mfaBind":"MFA 绑定","nextStep":"下一步","inputCurrPwd":"请输入当前密码","inputNewPwd":"请输入新密码","inputOldPwd":"请输入原登录密码","modifyPwd":"修改密码","modifyPwdText":"你的密码连续使用超过 {{number}} 个月,可能存在风险。请重新设置密码。","modifyNoticePwdText":"你的密码连续使用超过 {{number}} 个月,即将过期,为了不影响你的使用,请设置新密码","error":"错误信息","contactAdministrator":"未知的错误~ 请你联系管理员进行处理","resetpasswordText1":"输入你的注册电话/邮箱,输入收到的验证码,我们将为你进行密码重置。","unlockTip":"若解锁遇到问题,请点"}'),Zu=JSON.parse('{"EmailVerification":"電子郵件驗證","LoginSuccess":"登入成功","OTPVerification":"OTP 口令驗證","PasswordRegister":"密碼註冊","EmailRegister":"電子郵件註冊","registerTab":"{{text}}註冊","SMS":"短信驗證碼驗證","account":"賬號","accountLock":"賬號被鎖定,請點擊下方問號進行反饋","alreadyHasAcc":"已有賬號,","areaCodePhone":"區號 手機號碼","back":"返回","backLoginPage":"返回登入","backToMFA":"返回 MFA 綁定","backToVerify":"返回驗證頁","bind":"綁定","bindEmail":"綁定電子郵件","bindEmailDoc":"請輸入電子郵件進行綁定","bindPhone":"綁定手機號碼","bindSuccess":"完成綁定","bindTotp":"綁定 OTP","captchaCode":"驗證碼","checkEmail":"該電子郵件已存在","checkPasswordHasSpace":"不能包含空格","checkPhone":"該手機號碼已存在","checkUserName":"該用戶名已存在","checkCustomName":"該帳號已存在","clickTodownload":"點擊下載","confirm":"確認","copied":"已復制","copy":"複製","copyFailed":"複製失敗","corsErrorMessage":"當前域名不在允許訪問的域名列表中。","corsErrorMessage2":"如果有疑問可以<a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">參考文檔</a>","downloadTotpAppAndroid":"Android 下載","downloadTotpAppDocs":"請使用手機掃碼下載驗證器","downloadTotpAppIOS":"IOS 下載","email":"電子郵件","emailFormatError":"請輸入有效的電子郵件","emailLabel":"電子郵件","emailVerifyCode":"電子郵件驗證碼","faceText1":"綁定人臉識別","faceText2":"請打開攝像頭識別人臉進行綁定","faceText3":"開始驗證","faceText4":"重試一次","faceVerification":"人臉識別驗證","feedback":"幫助中心","female":"女","fetchError":"網路連接失敗,請稍後再試","fullCaptchaCode":"請填寫完整的{{name}}","goToLogin":"直接登入","hasLooseSaftyCode":"安全碼丟失?","i18nCheckErrorMessage":"請輸入所在區號合法的手機號或正確的郵箱","identityBindingAskDesc":"如果綁定到已有賬號,下次可以通過本次的方式直接登入已有賬號","identityBindingAskTitle":"選擇關聯方式","identityBindingBinding":"我想綁定到已有賬號","identityBindingCreate":"我想創建一個新賬號","identityBindingDesc":"綁定後,下次可以直接通過這次的方式登入到此賬號","identityBindingTitle":"綁定已有賬號","identityBindingSkipAskTitle":"帳號綁定","identityBindingSkipAskDesc":"若存在已有帳號,輸入成功後將會完成綁定; 若輸入新帳號則會完成創建和綁定","initPasswordText":"為了保障賬號安全,請設置您的新密碼。","inputFourVerifyCode":"請輸入 {{length}} 位數驗證碼","internationPhoneMessage":"請輸入所在區號合法的手機號碼","isMissing":"{{name}}未填寫","jobNumber":"工號首字母大寫","login":"登入","loginFailCheck":"溫馨提示:您的密碼錯誤,還可以嘗試 {{number}} 次","loginProtocolTips":"請勾選登入協議","man":"男","mfaText1":"掃碼添加 OTP,在手機查看並輸入 6 位數字安全碼。","no":"否","noAccYet":"還沒有賬號,","noFindEmail":"找不到該電子郵件","noFindPhone":"找不到該手機賬號","noFindUsername":"找不到該用戶名賬號","noQuestions":"沒有問題,","noValidator":"沒有驗證器請","otpText1":"請前往 OTP 綁定頁面進行綁定","pToLogin":"秒後返回","password":"密碼","passwordAgain":"請確認密碼","publicAccount":"公共帳戶","passwordUnsafeTip":"密碼強度已更新,請刷新頁面後重試","perfectUserInfo":"個人資訊","phone":"手機號碼","phoneFormateError":"輸入有效的手機號碼","phoneLabel":"手機號碼","phoneNumber":"手機號碼","phoneOrEmail":"手機號碼或電子郵件","phoneVerifyCode":"短信驗證碼","pleaseRecordKey":"請記錄密鑰","pleaseSelectDate":"請選擇日期","problem":{"form":{"phone":"聯絡方式","question":"相關問題","questionClip":"截圖","questionDescript":"問題描述","submit":"提交"},"locked":"帳號被鎖住","lockedTips":"如果您的帳號被鎖定,請聯繫管理員解鎖後再嘗試登入","noAccount":"帳號遺失","noAccountTip":{"tip":"如果帳號丟失,建議您進行以下操作:","type1":"1. 檢查您的帳號與密碼是否正確輸入","type2":"2. 檢查您的手機服務是否停用 / 沒有網路"},"noLogin":"無法登入","noLoginTip":{"type1":"1. 檢查您的帳號與密碼是否正確輸入","type2":"2. 檢查您的手機服務是否停用 / 沒有網路"},"noLoginTips":"如果無法登入,建議您進行以下操作:","noRegister":"無法註冊","noRegisterTip":{"tip":"如果無法註冊,建議您進行以下操作:","type1":"1. 檢查您的帳號是否已註冊","type2":"2. 檢查您的註冊手機號碼是否正確輸入","type3":"3. 檢查您的驗證碼簡訊是否被阻擋"},"noResetPass":"無法重設密碼","noResetPassTip":{"tip":"如果無法重設密碼,建議您進行以下操作:","type1":"1. 檢查您的手機服務是否停用 / 沒有網路","type2":"2. 檢查您設定的密碼是否正確"},"noVerify":"無法收到驗證碼","noVerifyTip":{"tip":"如果無法收到手機驗證碼,建議您進行以下操作:","type1":"1. 檢查您的手機服務是否停用 / 沒有網路","type2":"2. 檢查您的手機號碼是否輸入正確","type3":"3. 檢查您的驗證碼簡訊是否被阻擋"},"other":"其他","successTip":"提交成功","successTipMsg":"您的信息已經提交給應用管理員,會盡快處理您的反饋,請您耐心等待。","title":"問題回報"},"register":"註冊","registerImmediate":"立即註冊","registerProtocolTips":"請勾選註冊協議","registrationSuccess":"註冊成功","repeatPasswordDoc":"兩次密碼輸入不一致","resetSuccess":"重設密碼","resetSuccessMessage":"密碼重設成功,請使用新密碼登入","retryAfterTime":"{{time}} 秒","sendVerifyCode":"發送驗證碼","skip":"跳過","sure":"確定","timeout":"請求超時,請稍後重試","timeoutAD":"請求超時,AD 配置錯誤","timeoutLDAP":"請求超時,LDAP 配置錯誤","totpGenerateCode":"為您生成一串新的恢復代碼,請安全地記錄這段密鑰","totpText1":"請妥善保存恢復代碼","totpText2":"如果您的 MFA 丟失時,您將需要一個恢復代碼","unlock":"解鎖","unsafePasswordChangeText":"您的密碼不符合當前密碼強度要求,請設置新密碼。","updatePsswordSuccess":"修改密碼成功,請重新登入","uploadFail":"{{name}} 上傳失敗","usePhoneOpen":"請在手機打開 Google Authenticator 或 Microsoft Authenticator","useRecoverCode":"使用恢復代碼","userNameIsExists":"該用戶名已存在!","username":"用戶名","usernameFormatError":"輸入有效的用戶名","customNameFormatError":"輸入有效的帳號","verifyCodeLogin":"驗證碼登入","phoneCodeTab":"手機號登錄","emailCodeTab":"郵箱登錄","verifyCodeRegister":"驗證碼註冊","welcome":"歡迎訪問","welcomeDoc":"歡迎加入 {{name}} ,為了提供最佳的線上體驗,請填寫您的個人資訊","yes":"是","loginWithWechatmpQrcodeTipsTitle":"長按二維碼登入","del":"移除","qrcode":"二維碼","registerCompletePasswordDesc":"為了保障賬號安全,請設置您的密碼。","mfaCertification":"多因素認證","emailMfaCheck":"請輸入電子郵箱驗證碼","SmsMfaCheck":"請輸入短信驗證碼","faceCheck":"請保持攝像頭已打開並無遮擋","resetAccount":{"title":"設定用戶名","message":"當前用戶名不是唯一的,請重新設定用戶名後才可以成功登入。"}}'),Qu=JSON.parse('{"accPwdLoginVerify":"賬號登入驗證","adLogin":"AD 登入","authingOtpPushLogin":"推送登錄","authingOtpPushCancelLogin":"取消登錄","loginText":"登録","otpLoginPendingText":"已發送請求到Authing權杖APP,請在用戶端確認登入","getOtpLoginRequestAgain":"登錄請求已失效,請重新獲取","downloadOtpVerifier":"下載驗證器","loginToMobileClient":"登錄移動端","scanQrCode":"掃描二維碼","setAuthingTokenVerify":"設定Authing權杖Verify","phoneScanCodeAndDownloadAuthingToken":"请用手机扫码或前往应用市场下载 Authing 令牌","noPrompt":"以後不再提示","directLogin":"直接登錄","openAuthingOtp":"打開Authing權杖,點擊“登入/注册”","clickAndScanQrcode":"點擊“登入應用”頁面右上角的掃碼入口,掃描下方二維碼","downloadIOS":"iOS下載","downloadAndroid":"安卓下載","howBindClient":"如何綁定用戶端應?","installAuthingToken":"安裝Authing權杖","downloadAuthingToken":"請使用手機掃碼或前往應用市場下載Authing權杖","openAppList":"打開應用清單","addApp":"打開“應用清單”,點擊“添加應用”","openLoginPage":"打開登入頁","scanQrcode":"點擊“掃描二維碼”按鈕掃描應用二維碼","scanFollowingQrcode":"掃描以下應用二維碼","relevanceApp":"關聯應用並登入帳號","receiveMessageFromAuthingToken":"登录应用账号后即可在 Authing 令牌接收 Web 应用推送完成登录","howUsePushLogin":"如何使用推送登入","inputAccountInWeb":"在Web端登入面板輸入帳號資訊","clickLoginButton":"點擊\\"登入\\"","receiveMessageInApp":"在已綁定的移動端應用上接收登入推送","confirmLoginInApp":"確認“登入”,即可成功登入Web端。","howGetAppLoginUrl":"如何獲取應用登入地址","getCodeFromAdmin":"從管理員處獲取關聯應用二維碼","getCodeFromAdminTips":"管理員可在應用登入控制中得到應用二維碼,掃描二維碼即可登入對應應用。","getCodeFromPersonalCenter":"從個人中心獲取應用二維碼","getCodeFromPersonalCenterTips":"用戶可在“個人中心-快速認證”保存應用登入二維碼,使用Authing權杖掃碼後選擇應用即可登入。","getLoginUrlFromConsole":"管理員從控制台取得登入地址","getLoginUrlFromConsoleTips":"管理員可在「控制台-應用詳情-應用配寘-認證配寘」複製認證地址,用戶複製認證地址後即可登入和綁定。","nextStep":"下一步","enterAccount":"請輸入帳號","appScanLogin":"移動端 APP 掃碼登入","bindPhoneInfo":"請輸入手機號碼進行綁定","captchaCode":"圖形驗證碼","clickSent":"點擊發送驗證碼","reSent":"點擊重發驗證碼","forgetPwd":"忘記密碼","inputAccount":"請輸入{{text}}","inputAdPwd":"請輸入 AD 密碼","inputAdUsername":"請輸入 AD 用戶名","inputCaptchaCode":"請輸入圖形驗證碼","inputCorrectPhone":"請輸入正確的手機號碼或電子郵件","inputCorrectPhoneOrEmail":"請輸入有效的手機號碼或電子郵件","inputEmail":"請輸入電子郵件","inputEmailCode":"請輸入電子郵件驗證碼","inputLdapPwd":"請輸入 LDAP 密碼","inputLdapUsername":"請輸入 LDAP 用戶名","inputLoginPwd":"請輸入密碼","inputNewPwd":"請輸入新密碼","inputPhone":"請輸入手機號碼","inputPhoneCode":"請輸入手機驗證碼","inputPhoneOrEmail":"請輸入手機號碼或電子郵件","inputPwd":"請輸入密碼","inputPwdAgain":"再輸入一次密碼","inputRecoverCode":"請輸入恢復代碼","inputSixCode":"請輸入綁定的 6 位數字安全碼","inputUsername":"請輸入用戶名","ldapLogin":"LDAP 登入","login":{"setPwdLimit2":"至少六位,需包含英文、數字與符號中的兩種","setPwdLimit3":"至少六位,需包含英文、數字與符號"},"loginBy":"使用 {{name}} 登入","mediaDevicesSupport":"當前設備暫不支持人臉識別","mfaAfterReset":"如果您沒有恢復代碼,請聯繫管理員處理","moreWays":"更多登入","noEmpty":"請填入 {{label}}","noLoginMethodsDesc":"未配置登入方式","otherLoginWay":"其他登入方式","otherVerifyWay":"其他驗證方式","pwdLogin":"帳號","bindPwdLogin":"帳號","rememberedSecret":"已經安全地記錄了這段密鑰","resetPwd":"重設密碼","scanLogin":"掃碼登入","selfUnlock":"自助解鎖","selfUnlockText":"您的賬號已被鎖定,請輸入驗證碼及密碼自助解鎖。","sendCodeTimeout":"發送失敗,請稍後嘗試","setPwdLimit1":"設置至少 6 位字符密碼","setPwdLimitMsg1":"密碼長度至少為 6 位","setPwdLimitMsg2":"密碼長度至少為 6 位,且要包含英文、數字與符號中的兩種","setPwdLimitMsg3":"密碼長度至少為 6 位,且要同時包含英文、數字與符號","socialConnectionMessage":"不支持使用{{provider}}登入,請選擇其他方式登入,或在其它瀏覽器中重試","thridAccLogin":"第三方帳號登入","verifyCodeSended":"驗證碼已發送至","wechatmpQrcode":"公眾號關注登入","selectLoginAccount":"選擇登入賬號","useOtherAccount":"使用其他賬號","wechatScanLogin":"使用微信掃碼登錄","qrcodeRefer":"刷新","qrcodeNetWorkError":"網路異常 點擊重試","scanAgain":"重新掃碼","scanSuccess":"掃碼成功","tenant":{"consoleManage":"管理員控制台","ssoPad":"單點登錄應用面板"},"AuthorizationCamera":"請先開啟授權","checkPreferences":"請檢查偏好設置","requireError":"無法滿足要求錯誤","hardwareSupport":"硬件不支持","verifyCodeTip":"看不清?換一張","resetPassword":{"pleaseInputPassword":"請輸入密碼","checkPasswordDiff":"請輸入一致的密碼","nextStep":"下一步","reset":"重置密碼","back":"返回","resetPasswordText1":"請輸入你注册的手機號/郵箱用於接收驗證碼,我們將為你重置密碼。","resetPasswordText2":"你正在重置 {{account}} 的密碼。","input":"輸入{{text}}","inputFourVerifyCode":"請輸入 {{length}} 位數驗證碼","inputNewPwd":"請輸入新密碼","confirmNewPwd":"請確認新密碼","successTipMsg":"你可以使用新密碼繼續登入","successTip":"密碼重置成功","backLogin":"秒後將自動跳轉登入頁"}}'),Xu=JSON.parse('{"contactAdministrator":"未知的錯誤~ 請您聯繫管理員進行處理","error":"錯誤信息","inputCurrPwd":"請輸入當前密碼","inputNewPwd":"請輸入新密碼","inputOldPwd":"請輸入原登入密碼","mfaBind":"MFA 綁定","modifyNoticePwdText":"您的密碼連續使用超過 {{number}} 個月,即將過期,為了不影響您的使用,請設置新密碼","modifyPwd":"修改密碼","modifyPwdText":"您的密碼連續使用超過 {{number}} 個月,可能存在風險。\\n請重新設置密碼。","nextStep":"下一步","numberSafteyCode":"數字安全碼","resetpasswordText1":"請輸入您的註冊電子郵件 / 手機號碼,以及收到的驗證碼,我們將為您進行密碼重設。","unlockTip":"若解鎖遇到問題,請點"}'),ed=JSON.parse('{"guidance":{},"uploadFail":"{{name}} アップロード失敗","confirm":"確認","retryAfterTime":"{{time}} 秒","sendVerifyCode":"認証コードを送信します","emailFormatError":"有効なメールアドレスをご入力ください","usernameFormatError":"有効なユーザー名を入力する","customNameFormatError":"有効なアカウントを入力","phoneFormateError":"有効な携帯番号を入力する","username":"ユーザー名","login":"ログイン","noAccYet":"アカウントがないので,","registerImmediate":"すぐに登録します","sure":"確定","hasLooseSaftyCode":"セキュリティコードの紛失?","useRecoverCode":"復旧コードを使って","register":"登録","unlock":"ロック","alreadyHasAcc":"すでにアカウントがある,","perfectUserInfo":"プロフィール充実","publicAccount":"パブリックアカウント","man":"男","female":"女","emailLabel":"メールアドレス","phoneLabel":"携帯電話番号","pleaseSelectDate":"日付を選んでください","bindEmail":"メールボックスを結びつける","email":"メールアドレス","inputFourVerifyCode":"{{length}}桁の認証コードをご入力ください","bindPhone":"携帯電話番号を結びつける","phoneNumber":"携帯電話","bind":"据え置き","yes":"は","no":"いいえ","problem":{"title":"ヘルプ・お問い合わせ","noVerify":"認証コードが届きません","noLogin":"ログインできません","noRegister":"登録できません","noAccount":"アカウントをお忘れ","noResetPass":"パスワードのリセットができません","locked":"アカウントがロックされました","other":"その他","noVerifyTip":{"tip":"認証コードのSMSが届かない原因としては以下の事象等が考えられます。","type1":"1. 通信状況が不安定 /モバイル通信ができない状態","type2":"2. 電話番号の入力間違い","type3":"3. SMSの受信の制限"},"noLoginTip":{"type1":"1. アカウントとパスワードの入力が正しいかどうかチェックします。","type2":"2. 携帯電話が利用停止かどうか若しくはネットワーク接続状態チェックします。"},"noRegisterTip":{"tip":"ログインできない場合は、以下の操作をお勧めします。","type1":"1. すでにアカウント登録済みとなっているかどうかチェックします。","type2":"2. 携帯電話番号が正しく入力しているかどうかチェックします。","type3":"3. 認証コードのSMSがブロックされているかどうかチェックします。"},"noAccountTip":{"tip":"アカウントが紛失した場合は、以下の操作をお勧めします。","type1":"1. アカウントとパスワードの入力が正しいかどうかチェックします。","type2":"2. 携帯電話が利用停止かどうか若しくはネットワーク接続状態チェックします。"},"noResetPassTip":{"tip":"パスワードをリセットできない場合は、以下の操作をお勧めします。","type1":"1. 携帯電話が利用停止かどうか若しくはネットワーク接続状態チェックします。","type2":"2. 設定したパスワードが正しいかどうかチェックします。"},"otherTip":{},"successTip":"提出に成功する","successTipMsg":"あなたの情報はアプリケーション管理者に提出されており、フィードバックはすぐに処理されますので、お待ちください。","form":{"phone":"連絡方法","question":"ご用件","questionDescript":"お問い合わせ内容","questionClip":"スクリーンショット","submit":"提出"},"lockedTips":"アカウントがロックされた場合は、管理者にご連絡頂き、ロック解除された後もう一度ログインするようお願い致します。","noLoginTips":"ログインできない場合は、以下の操作をお勧めします。"},"backLoginPage":"ログイン画面に戻ります","LoginSuccess":"ログインに成功する","welcomeDoc":"{{name}}へようこそ、より良い使用体験をご提供できるよう個人情報のご記入をお願い致します。","bindEmailDoc":"メールアドレスを入力して結びつけてください","copied":"複製済み","copy":"コピー","repeatPasswordDoc":"2回のパスワード入力が一致しません","SMS":"sms認証","EmailVerification":"電子メール認証","OTPVerification":"OTP パスワード検証","faceVerification":"顔認証認証","registrationSuccess":"登録に成功する","copyFailed":"コピー失敗","downloadTotpAppIOS":"IOS のダウンロード","downloadTotpAppAndroid":"Android ダウンロード","downloadTotpAppDocs":"携帯電話のコードを使って検証をダウンロードしてください","bindTotp":"バインディング OTP","checkEmail":"メールボックスはすでに存在しています","checkUserName":"ユーザ名はすでに存在する","checkCustomName":"このアカウントは既に存在します","checkPhone":"携帯電話番号はすでに存在しています","loginFailCheck":"暖かい提示:あなたのパスワードは間違って、また試みることができます {{number}} 回","bindSuccess":"バインディング完了","pleaseRecordKey":"鍵を記録してください","totpText1":"回復コードを適切に保存してください","totpText2":"MFA が紛失した場合復旧コードが必要になります","otpText1":"バインドするには OTP バインド ページに移動してください","faceText1":"顔認証を結びつける","faceText2":"バインドする顔を認識するためにカメラをオンにしてください","faceText3":"検証を開始する","faceText4":"もう一度やってみる","checkPasswordHasSpace":"フレームを含まない","backToVerify":"検証ページに戻る","usePhoneOpen":"携帯で Google Authenticator または Microsoft Authenticator を開いてください","noValidator":"ベリファイアなしで","clickTodownload":"クリックしてダウンロードする","mfaText1":"OTP を追加して、携帯電話で調べて 6 桁の数字の安全なコードを入力します。","backToMFA":"MFA バインディングを戻す","timeoutLDAP":"要求タイムアウト、LDAP構成エラー","noQuestions":"問題がなく、","goToLogin":"直接にログインします","passwordAgain":"パスワードを確認してください","isMissing":"{{name}}が未入力です","password":"パスワード","captchaCode":"認証コード","account":"アカウント","phone":"携帯電話番号","pToLogin":"秒後に、ログイン画面に戻ります","resetSuccess":"リセットが完了しました","resetSuccessMessage":"パスワードのリセットが完了しました。新しいパスワードにて再ログインしてください。","welcome":"訪問を歓迎する","initPasswordText":"アカウントを安全に保つために、新しいパスワードを設定してください。","unsafePasswordChangeText":"あなたのパスワードは現在のパスワード強度の要件を満たしていません。新しいパスワードを設定してください。","updatePsswordSuccess":"パスワードの変更に成功しましたので、再ログインしてください","fullCaptchaCode":"{{name}}を記入してください","feedback":"ヘルプ・お問い合わせ","loginProtocolTips":"ログインプロトコルにチェックを入れてください","registerProtocolTips":"登録プロトコルにチェックを入れてください","accountLock":"アカウントがロックされたら、下の疑問符をクリックしてフィードバックしてください","corsErrorMessage":"現在のドメイン名はアクセスが許可されているドメイン名のリストには含まれていない。","corsErrorMessage2":"質問があれば<a href=\\"https://docs.authing.cn/v2/guides/security/config-domain.html\\">ドキュメント参照</a>","totpGenerateCode":"この鍵を安全に記録してください","verifyCodeLogin":"認証コード登録","phoneCodeTab":"携帯電話番号でのログイン","emailCodeTab":"電子メールでのログイン","phoneVerifyCode":"sms認証コード","emailVerifyCode":"メールボックス認証コード","phoneOrEmail":"携帯電話/メールアドレス","skip":"飛び越え","back":"戻る","identityBindingAskTitle":"つながり方を選ぶ","identityBindingAskDesc":"既存アカウントに紐付いている場合は、今回の方法で直接既存アカウントにログインすることができます。","identityBindingCreate":"新しいアカウントを作りたいのですが","identityBindingBinding":"既存のアカウントと結びつけたい","identityBindingTitle":"既存のアカウントを結びつける","identityBindingDesc":"紐付け后、次回から直接今回の方法でこのアカウントにログインすることができます","identityBindingSkipAskTitle":"アカウントのバインド","identityBindingSkipAskDesc":"既存のアカウントが存在する場合は、入力に成功するとバインドが完了します。新規アカウントを入力すると作成とバインドが完了します","internationPhoneMessage":"合法的な局番の携帯番号を入力してください","areaCodePhone":"+局番付き携帯番号","timeoutAD":"要求タイムアウト、AD設定ミス","timeout":"タイムアウトをお願いしますので,後ほど再試行してください","userNameIsExists":"このユーザー名はすでに存在します!","fetchError":"ネットワーク接続に失敗した場合は後ほどお試しください","passwordUnsafeTip":"パスワードが更新されましたので、ページを更新して再試行してください","i18nCheckErrorMessage":"地域番号の合法的な携帯電話番号または正しいメールアドレスを入力してください","verifyCodeRegister":"認証コード登録","EmailRegister":"Eメール登録","registerTab":"{{text}}登録","PasswordRegister":"アカウント登録","noFindEmail":"該当メールアドレスが見つかりません","noFindPhone":"携帯電話のアカウントが見つかりません","noFindUsername":"該当ユーザー名アカウントが見つからない","jobNumber":"工番の頭文字を大文字にする","loginWithWechatmpQrcodeTipsTitle":"qrコードを長押しして登録する","del":"除去","qrcode":"qrコード","registerCompletePasswordDesc":"アカウントを安全に保つために、パスワードを設定してください。","mfaCertification":"多要素認証","emailMfaCheck":"メール認証コードを入力してください","SmsMfaCheck":"SMS認証コードを入力してください","faceCheck":"カメラの電源を入れ、遮るものがない状態にしてください","resetAccount":{"title":"ユーザー名の設定","message":"現在のユーザー名は一つではありません。ユーザー名を再設定してからログインできます。"}}'),td=JSON.parse('{"inputAccount":"{{text}}をご入力ください","inputAdUsername":"AD ユーザー名を入力してください","inputAdPwd":"AD パスワードを入力してください","inputLdapUsername":"LDAP ユーザ名を入力してください","inputLdapPwd":"LDAP パスワードを入力してください","inputCaptchaCode":"図形認証コードを入力してください","captchaCode":"グラフィックス認証コード","accPwdLoginVerify":"アカウント登録検証","inputSixCode":"バインドされた 6 桁のセキュリティ コードを入力してください","inputLoginPwd":"パスワードをご入力ください","inputPhone":"携帯番号を入力してください","inputEmail":"メールアドレスをご入力ください","inputPwdAgain":"もう一度パスワードを入力する","loginBy":"{{name}}を使ってログインする","thridAccLogin":"第三者アカウントのログイン","inputRecoverCode":"復旧コードを入力してください","rememberedSecret":"鍵は安全に記録されています","mfaAfterReset":"復旧コードがない場合は管理者に連絡してください","noEmpty":"{{label}}が未入力です","inputCorrectPhone":"メールアドレス/携帯電話を正しくご入力ください","inputPhoneOrEmail":"携帯番号またはメールアドレスをご入力ください","resetPwd":"パスワードをリセット","selfUnlock":"セルフロック","selfUnlockText":"あなたのアカウントはロックされています。認証コードとパスワードを入力してセルフロックを解除してください。","pwdLogin":"既にアカウントをお持ち","bindPwdLogin":"アカウントログイン","appScanLogin":"モバイルアプリでコード登録","scanLogin":"コード登録","scanAgain":"コードを掃き直す","wechatScanLogin":"wechatのコードを使ってログインする","scanSuccess":"コード掃きに成功する","ldapLogin":"LDAP ログイン","adLogin":"AD 登録","authingOtpPushLogin":"プッシュ登録","authingOtpPushCancelLogin":"登録をキャンセルする","loginText":"登録","otpLoginPendingText":"AuthingトークンAPPにリクエストを送信しました。クライアントでログインを確認してください","getOtpLoginRequestAgain":"ログイン要求は無効になりましたので、再取得してください","downloadOtpVerifier":"ベリファイアのダウンロード","loginToMobileClient":"モバイル端末へのログイン","scanQrCode":"スキャン2次元コード","setAuthingTokenVerify":"AuthingトークンVerifyの設定","phoneScanCodeAndDownloadAuthingToken":"携帯電話でコードをスキャンするか、アプリケーション市場に行ってAuthingトークンをダウンロードしてください","noPrompt":"後でプロンプトしない","directLogin":"直接ログイン","openAuthingOtp":"Authingトークンを開き、「ログイン/登録」をクリックします","clickAndScanQrcode":"「ログインアプリケーション」ページの右上にあるスキャンコードの入り口をクリックし、下のQRコードをスキャンします","downloadIOS":"iOSダウンロード","downloadAndroid":"Androidダウンロード","howBindClient":"クライアントアプリケーションをバインドする方法","installAuthingToken":"Authingトークンのインストール","downloadAuthingToken":"携帯電話でコードをスキャンするか、アプリケーション市場に行ってAuthingトークンをダウンロードしてください","openAppList":"アプリケーションリストを開く","addApp":"「アプリケーションリスト」を開き、「アプリケーションの追加」をクリックします","openLoginPage":"ログインページを開く","scanQrcode":"「QRコードをスキャン」ボタンをクリックしてQRコードをスキャンして適用する","scanFollowingQrcode":"スキャン以下にQRコードを適用","relevanceApp":"アプリケーションを関連付けてアカウントにログインする","receiveMessageFromAuthingToken":"アプリケーションアカウントにログインすると、AuthingトークンでWebアプリケーションのプッシュを受信してログインを完了することができます","howUsePushLogin":"プッシュログインの使用方法","inputAccountInWeb":"Webログインパネルにアカウント情報を入力する","clickLoginButton":"「ログイン」をクリック","receiveMessageInApp":"バインドされたモバイル端末アプリケーションへのログインプッシュの受信","confirmLoginInApp":"「ログイン」を確認すると、Web側に正常にログインできます。","howGetAppLoginUrl":"アプリケーションログインアドレスを取得する方法","getCodeFromAdmin":"管理者から関連アプリケーションのQRコードを取得する","getCodeFromAdminTips":"管理者はアプリケーションログイン制御に二次元コードを適用することができ、二次元コードをスキャンすれば対応するアプリケーションにログインすることができる。","getCodeFromPersonalCenter":"パーソナルセンターからアプリケーションQRコードを取得する","getCodeFromPersonalCenterTips":"ユーザーは「パーソナルセンター-クイック認証」保存アプリケーションに二次元コードを登録し、Authingトークンを使用してコードをスキャンした後、アプリケーションを選択することでログインすることができます","getLoginUrlFromConsole":"管理者はコンソールからログインアドレスを取得する","getLoginUrlFromConsoleTips":"管理者は、コンソール-アプリケーション詳細-アプリケーション構成-認証構成で認証アドレスをコピーでき、ユーザーは認証アドレスをコピーするとログインとバインドできます。","nextStep":"次のステップ","enterAccount":"アカウントを入力してください","verifyCodeSended":"認証コードが送信され","inputEmailCode":"メールアドレス認証を入力してください","otherVerifyWay":"その他の検証方法","otherLoginWay":"その他の登録方法","clickSent":"認証コードの送信をクリックする","reSent":"認証コードの再送をクリックしてください","bindPhoneInfo":"携帯番号を入力して結びつけてください","inputPhoneCode":"携帯認証コードを入力してください","forgetPwd":"パスワードをお忘れの場合","inputPwd":"パスワードを入力してください","setPwdLimit1":"最低 6 ビットの文字パスワードを設定する","login":{"setPwdLimit2":"少なくとも6桁で、英数字と記号のうち2種類を含むこと","setPwdLimit3":"少なくとも6桁の英数字および記号を含むこと"},"setPwdLimitMsg1":"パスワードの長も 6桁で","setPwdLimitMsg2":"パスワードの長さは少なくとも 6桁で、英語、数字、記号のうち 2種類を含むこと","setPwdLimitMsg3":"パスワードの長も 6桁で、英文、数字および記号を同時に含むこと","wechatmpQrcode":"公衆番号フォロー登録","inputUsername":"ユーザー名を入力してください","moreWays":"もっとログインする","inputCorrectPhoneOrEmail":"有効な携帯番号またはメールアドレスをご入力ください","sendCodeTimeout":"送信に失敗した場合は後ほどお試しください","mediaDevicesSupport":"現在のデバイスは顔認識をサポートしていない","qrcodeNetWorkError":"ネットワーク異常クリック再試行","qrcodeRefer":"更新","noLoginMethodsDesc":"未構成登録方式","socialConnectionMessage":"{{provider}}を使用したログインはサポートされていません。他の方法でログインするか、他のブラウザで再試行してください。","inputNewPwd":"新しいパスワードをご入力ください","selectLoginAccount":"ログインアカウントを選択する","useOtherAccount":"別のアカウントを使う","tenant":{"consoleManage":"管理コンソール","ssoPad":"シングル サインオン アプリケーション パネル"},"AuthorizationCamera":"最初に認証を有効にしてください","checkPreferences":"設定を確認してください","requireError":"要求エラーを満たすことができません","hardwareSupport":"ハードウェアはサポートされていません","verifyCodeTip":"別の画像を表示","resetPassword":{"pleaseInputPassword":"パスワードを入力してください","checkPasswordDiff":"一貫したパスワードを入力してください","nextStep":"次のステップ","reset":"パスワードをリセット","back":"戻る","resetPasswordText1":"認証コードを受け取るために登録した携帯電話番号/メールボックスを入力してください。パスワードをリセットします。","resetPasswordText2":"あなたはリセットしています {{account}} のパスワード。","input":"インプット{{text}}","inputFourVerifyCode":"入力してください {{length}} ビット認証コード","inputNewPwd":"新しいパスワードを入力してください","confirmNewPwd":"新しいパスワードを確認してください","successTipMsg":"新しいパスワードを使用してログインを続けることができます","successTip":"パスワードのリセットに成功しました","backLogin":"秒ログインページが自動的にジャンプされます"}}'),nd=JSON.parse('{"numberSafteyCode":"デジタルセキュリティコード","mfaBind":"MFA バインディング","nextStep":"次のステップ","inputCurrPwd":"現在のパスワードを入力してください","inputNewPwd":"新しいパスワードをご入力ください","inputOldPwd":"元のログインパスワードを入力してください","modifyPwd":"パスワードを変更する","modifyPwdText":"{{number}} か月以上連続して使用すると、パスワードが危険にさらされる可能性があります。 あなたのパスワードをリセットしてください。","modifyNoticePwdText":"あなたのパスワードは {{number}} か月以上継続して使用されており、有効期限が近づいています。使用に影響を与えないように、新しいパスワードを設定してください。","error":"エラーメッセージ","contactAdministrator":"不明なエラーです ~ 処理については管理者に連絡してください","resetpasswordText1":"登録の携帯番号/メールアドレスを入力し、認証コードを入力しください。パスワードのリセットをさせて頂きます。","unlockTip":"ロック解除に問題がある場合は、クリックしてください"}');// CONCATENATED MODULE: ./src/_utils/locales/index.ts
|
|
12642
12642
|
var rd=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},od=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},id={"en-US":{translation:e},"zh-CN":{translation:t},"zh-TW":{translation:n},"ja-JP":{translation:r}},ad=function(e){if(void 0===e&&(e=""),!e||"en"===e)return["en-US"];if(!e||"zh"===e)return["zh-CN"];if(!e||"ja"===e)return["ja-JP"];var t=[];return e.startsWith("en-")?(t.push("en-US"),t):e.startsWith("ja-")?(t.push("ja-JP"),t):e.startsWith("zh-")?(["zh-tw","zh-hk","zh-mo","zh-hant"].includes(e.toLocaleLowerCase())?t.push("zh-TW"):(["zh-cn","zh-sg","zh-my"].includes(e.toLocaleLowerCase()),t.push("zh-CN")),t):["en-US"]},sd=i(8424),cd=i.n(sd),ld=i(6888),ud=i.n(ld);// CONCATENATED MODULE: ./shim-antd4/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
12643
12643
|
function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dd.apply(this,arguments)}// CONCATENATED MODULE: ./shim-antd4/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
12644
12644
|
function fd(e){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(e)}// CONCATENATED MODULE: ./shim-antd4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -17587,8 +17587,8 @@ var qD=i(4232),VD=i(4631),$D=i(1062),zD=i(8787),HD={zhCN:qD/* default */.Z,enUS:
|
|
|
17587
17587
|
* 多账号 状态
|
|
17588
17588
|
*/
|
|
17589
17589
|
multipleInstance:{isMultipleAccount:!1,instance:void 0,referMultipleState:void 0,multipleAccountData:void 0,clearBackFillData:void 0},phoneRegex:null,defaultLanguageConfig:"zh-CN",tenantInstance:void 0,isForeignUserpool:!1},XD=y().createContext(QD),eL=y().createContext({spin:!1,spinChange:function(){}}),tL=function(){return JD(eL)},nL=function(){return JD(XD).publicConfig},rL=function(){return JD(XD).httpClient},oL=function(){return JD(XD).appId},iL=function(){return JD(XD).tenantId};function aL(){return JD(XD).initData}var sL=function(){return JD(XD).currentModule},cL=function(){return JD(XD).events},lL=function(){var e=JD(XD);return{changeModule:e.changeModule,backModule:e.backModule,currentModule:e.currentModule}},uL=function(){return JD(XD).finallyConfig},dL=function(){return JD(XD).isAuthFlow},fL=function(){return JD(XD).multipleInstance},pL=function(){return JD(XD).phoneRegex},hL=function(){return JD(XD).defaultLanguageConfig},mL=function(){var e=nL(),t=e.customSecurityEnabled,n=e.appRobotVerify,r=e.userpoolRobotVerify;return t?n:r},vL=function(){return JD(XD).isForeignUserpool},gL=y().useMemo,yL={"zh-CN":{label:"简体中文"},"zh-TW":{label:"繁體中文"},"en-US":{label:"English"},"ja-JP":{label:"日本語"}},bL=function(e){var t=e.langRange,n=void 0===t?["zh-CN","zh-TW","en-US","ja-JP"]:t,r=e.onLangChange,o=xu().i18n,i=JD(XD).guardPageConfig,a=uL(),s=gL((function(){return"g2-change-language-text ".concat(a.mode)}),[a]),c=gL((function(){var e;return null===(e=i.global)||void 0===e?void 0:e.showChangeLanguage}),[i]),l=gL((function(){return Object.keys(yL).includes(o.language)?o.language:ad(o.language)[0]||"en-US"}),[o.language]),u=gL((function(){return y().createElement(y().Fragment,null,y().createElement("span",null,yL[l].label))}),[l]),d=gL((function(){return Object.keys(yL).filter((function(e){return n.includes(e)})).map((function(e){return{key:e,label:yL[e].label}}))}),[n]);if(!c||0===n.length)return null;var f={items:d,onClick:function(e){l!==e.key&&(o.changeLanguage(e.key),null==r||r(e.key))}};return y().createElement("div",{className:"g2-change-language-container"},y().createElement(y_,{menu:f,trigger:["click"],placement:"bottom",overlayClassName:"authing-g2-change-language-menu"},y().createElement("span",{className:s},u,y().createElement(GD,{type:"authing-arrow-down-s-fill",className:"down-fill-svg"}))))};// CONCATENATED MODULE: ./package.json
|
|
17590
|
-
const wL=
|
|
17591
|
-
function CL(){return wL
|
|
17590
|
+
const wL="4.5.3";// CONCATENATED MODULE: ./src/_utils/getVersion.ts
|
|
17591
|
+
function CL(){return wL}// CONCATENATED MODULE: ./src/_utils/flowHandleStorage.ts
|
|
17592
17592
|
var EL,kL=function(){return EL},SL=function(e){EL=e},xL=function(){return xL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xL.apply(this,arguments)},PL=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},_L=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},TL=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},OL=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},NL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return PL(void 0,void 0,void 0,(function(){return _L(this,(function(t){switch(t.label){case 0:return[4/*yield*/,fetch.apply(void 0,OL([],TL(e),!1))];case 1:return[2/*return*/,t.sent().json()]}}))}))},IL=function(e){return new Promise((function(t){setTimeout((function(){t({data:{code:-1}}),e()}),1e4)}))};NL.get=function(e,t,n){return void 0===t&&(t={}),PL(void 0,void 0,void 0,(function(){var r,o,i,a,s;return _L(this,(function(c){switch(c.label){case 0:r=xL(xL({},null==n?void 0:n.headers),((s={"Content-Type":"application/json"})[NL.langHeader]=QJ(),s)),""!==NL.tenantId&&(r[NL.tenantHeader]=NL.tenantId),c.label=1;case 1:return c.trys.push([1,3,,4]),o=ha().CancelToken,i=o.source(),[4/*yield*/,Promise.race([IL(i.cancel),ha()("".concat(NL.baseUrl).concat(e).concat(Lc().stringify(t,{addQueryPrefix:!0})),xL(xL({method:"GET"},n),{withCredentials:!0,headers:r,cancelToken:i.token}))])];case 2:return[2/*return*/,null==(a=c.sent())?void 0:a.data];case 3:return c.sent(),[2/*return*/,Promise.resolve({code:-2})];case 4:return[2/*return*/]}}))}))},NL.post=function(e,t,n){return PL(void 0,void 0,void 0,(function(){var r,o,i,a,s,c;return _L(this,(function(l){switch(l.label){case 0:r=xL(xL({},null==n?void 0:n.headers),((s={"Content-Type":"application/json"})[NL.langHeader]=au.language,s)),""!==NL.tenantId&&(r[NL.tenantHeader]=NL.tenantId),l.label=1;case 1:return l.trys.push([1,3,,4]),o=ha().CancelToken,i=o.source(),[4/*yield*/,Promise.race([IL(i.cancel),ha()("".concat(NL.baseUrl).concat(e),{data:t,method:"POST",withCredentials:!0,cancelToken:i.token,headers:xL(xL({"Content-Type":"application/json"},null==n?void 0:n.headers),(c={},c[NL.langHeader]=QJ(),c))})])];case 2:return[2/*return*/,null==(a=l.sent())?void 0:a.data];case 3:return l.sent(),[2/*return*/,Promise.resolve({code:-2})];case 4:return[2/*return*/]}}))}))},NL.postForm=function(e,t,n){return PL(void 0,void 0,void 0,(function(){var r,o,i,a;return _L(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),r=ha().CancelToken,o=r.source(),[4/*yield*/,Promise.race([IL(o.cancel),ha()("".concat(NL.baseUrl).concat(e),{method:"POST",data:t,withCredentials:!0,cancelToken:o.token,headers:xL(xL({},null==n?void 0:n.headers),(a={},a[NL.langHeader]=QJ(),a))})])];case 1:return[2/*return*/,null==(i=s.sent())?void 0:i.data];case 2:return s.sent(),[2/*return*/,Promise.resolve({code:-2})];case 3:return[2/*return*/]}}))}))},NL.baseUrl="",NL.setBaseUrl=function(e){NL.baseUrl=e.replace(/\/$/,"")};var AL,RL="x-authing-lang";NL.langHeader=RL,NL.tenantHeader="x-authing-app-tenant-idåå",NL.tenantId="",NL.setLangHeader=function(e){NL.langHeader=e||RL},NL.setTenantHeader=function(e){NL.tenantHeader=e||RL},NL.setTenantId=function(e){NL.tenantId=e},function(e){e.ERROR="error",e.LOGIN="login",e.REGISTER="register",e.MFA="mfa",e.FORGET_PWD="forgetPassword",e.FORCED_PASSWORD_RESET="forcedPasswordReset",e.NOTICE_PASSWORD_RESET="noticePasswordReset",e.FIRST_LOGIN_PASSWORD="firstLoginPassword",e.UNSAFE_PASSWORD_RESET="unsafePasswordReset",e.DOWNLOAD_AT="downloadAT",e.BIND_TOTP="bindTotp",e.ANY_QUESTIONS="anyQuestions",e.LOGIN_COMPLETE_INFO="loginCompleteInfo",e.REGISTER_PASSWORD="registerPassword",e.REGISTER_COMPLETE_INFO="registerCompleteInfo",e.RECOVERY_CODE="recoveryCode",e.SUBMIT_SUCCESS="submitSuccess",e.IDENTITY_BINDING_ASK="identityBindingAsk",e.IDENTITY_BINDING="identityBinding",e.IDENTITY_BINDING_NO_ASK="identityBindingNoAsk",e.SELF_UNLOCK="selfUnlock",e.FLOW_SELECT_ACCOUNT="flowSelectAccount",
|
|
17593
17593
|
/** 多租户门户选择页 */
|
|
17594
17594
|
e.TENANT_PORTAL="tenant-portal",e.New_SUBMIT_SUCCESS="newSubmitSuccess",e.SELECT_ACCOUNT_2_LOGIN="selectAccout2Login",e.RESET_ACCOUNT_NAME="resetAccountName"}(AL||(AL={}));// CONCATENATED MODULE: ./src/AuthClientProvider/context.tsx
|
|
@@ -18040,7 +18040,7 @@ return e.push(k),
|
|
|
18040
18040
|
/* harmony default export */const jB=FB;// CONCATENATED MODULE: ./src/InputPassword/index.tsx
|
|
18041
18041
|
var BB,UB=function(){return UB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UB.apply(this,arguments)},qB=function(e){return y().createElement(tO.Password,UB({autoComplete:"off"},e,{iconRender:function(e){return y().createElement("span",{style:{display:"flex",height:"100%",alignItems:"center"}},e?y().createElement(GD,{type:"authing-a-eye-line1"}):y().createElement(GD,{type:"authing-a-eye-close-line1"}))}}))},VB=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},$B=y().useState,zB=function(){var e=xu().t,t=VB($B(!1),2),n=t[0];return{setPasswordErrorTextShow:t[1],getPassWordUnsafeText:function(){return y().createElement(y().Fragment,null,n?y().createElement("div",{style:{marginBottom:23,fontSize:12,color:"#E8353E",display:"block"}},e("common.passwordUnsafeTip")):y().createElement(y().Fragment,null))}}},HB=function(){return HB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HB.apply(this,arguments)},WB=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},GB=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},KB=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},YB=y().useRef,JB=y().useCallback,ZB=function(){var e=xu().t,t=cL(),n=KB(iT.useForm(),1)[0],r=aj().isPhoneMedia,o=wJ().post,i=aL(),a=i.businessRequestName,s=i.content,c=i.isChangeComplete,l=i.onRegisterSuccess,u=i.onRegisterFailed,d=YB(null),f=lL().changeModule,p=nL().publicKey,h=zL().options.encryptFunction,m=zB(),v=m.getPassWordUnsafeText,g=m.setPasswordErrorTextShow,b=JB((function(e){return WB(void 0,void 0,void 0,(function(){var n,r,i,m,v,y,b,w,C,E,k,S,x,P;return GB(this,(function(_){switch(_.label){case 0:return[4/*yield*/,h(e.password,p)];case 1:return n=_.sent(),null===(C=d.current)||void 0===C||C.onSpin(!0),c?(
|
|
18042
18042
|
// 需要进行信息补全
|
|
18043
|
-
null==f||f(AL.REGISTER_COMPLETE_INFO,{businessRequestName:a,content:HB(HB({},s),{password:n}),onRegisterSuccess:l,onRegisterFailed:u}),[2/*return*/]):[3/*break*/,2];case 2:return _.trys.push([2,7,,8]),"registerByEmailCode"!==a?[3/*break*/,4]:[4/*yield*/,o("/api/v2/register-email-code",HB(HB({},s),{password:n,postUserInfoPipeline:!1}))];case 3:return r=_.sent(),v=r.statusCode,y=r.apiCode,m=r.data,b=r.onGuardHandling,w=r.message,d.current.onSpin(!1),200===v?l(m):(v===JY.UNSAFE_PASSWORD_TIP&&g(!0),null==b||b(),u(y,m,w),null===(E=null==t?void 0:t.onRegisterError)||void 0===E||E.call(t,{code:y,data:m,message:w})),[3/*break*/,6];case 4:return"registerByPhoneCode"!==a?[3/*break*/,6]:[4/*yield*/,o("/api/v2/register-phone-code",HB(HB({},s),{password:n,postUserInfoPipeline:!1}))];case 5:i=_.sent(),m=i.data,v=i.statusCode,y=i.apiCode,b=i.onGuardHandling,w=i.message,200===v?(null===(k=d.current)||void 0===k||k.onSpin(!1),l(m)):(y===JY.UNSAFE_PASSWORD_TIP&&g(!0),null==b||b(),null===(S=d.current)||void 0===S||S.onSpin(!1),u(y,m,w),null===(x=null==t?void 0:t.onRegisterError)||void 0===x||x.call(t,{apiCode:y,data:m,message:w})),_.label=6;case 6:return[3/*break*/,8];case 7:return _.sent(),null===(P=d.current)||void 0===P||P.onSpin(!1),[3/*break*/,8];case 8:return[2/*return*/]}}))}))}),[a,f,s,h,t,c,u,l,o,p,g]);return y().createElement("div",{className:"authing-g2-login-phone-code"},y().createElement(iT,{name:"resetPassword",form:n,onFinish:b,onFinishFailed:function(){var e;null===(e=null==d?void 0:d.current)||void 0===e||e.onError()},autoComplete:"off"},y().createElement(jB.Password,{className:"authing-g2-input-form",name:"password",required:!0},y().createElement(qB,{autoFocus:!r,className:"authing-g2-input",size:"large",placeholder:e("login.inputPwd"),prefix:y().createElement(GD,{type:"authing-a-lock-line1",style:{color:"#878A95"}})})),y().createElement(iT.Item,{validateTrigger:["onBlur","onChange"],className:"authing-g2-input-form",name:"password2",rules:[{validator:function(t,r){var o=n.getFieldValue("password");return r?r!==o?Promise.reject(e("common.repeatPasswordDoc")):Promise.resolve():Promise.reject(e("login.inputPwd"))}}]},y().createElement(qB,{className:"authing-g2-input",size:"large",placeholder:e("login.inputPwdAgain"),prefix:y().createElement(GD,{type:"authing-a-lock-line1",style:{color:"#878A95"}})})),v(),y().createElement(iT.Item,{className:"authing-g2-sumbit-form submit-form"},y().createElement(yj,{className:"forget-password",text:e("common.confirm"),ref:d}))))},QB=function(){return QB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},QB.apply(this,arguments)},XB=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},eU=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e.ResetPassword="reset-password-first-time",e.FirstLoginReset="reset-password-forced",e.ResetPasswordStrengthDetection="reset-password-strength-detection"}(BB||(BB={}));var tU,nU,rU,oU,iU=function(e,t){return XB(void 0,void 0,void 0,(function(){return eU(this,(function(n){switch(n.label){case 0:return[4/*yield*/,(0,wJ().authFlow)(e,QB({},t))];case 1:return[2/*return*/,n.sent()]}}))}))},aU=function(){return aU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aU.apply(this,arguments)},sU=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},cU=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},lU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},uU=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},dU=y().useState,fU=y().useRef,pU=y().useEffect,hU=y().useMemo,mU=function(e){var t,n=xu().t,r=e.sendDesc,o=void 0===r?n("login.clickSent"):r,i=e.beforeSend,a=e.btnRef,s=e.setSent,c=lU(e,["sendDesc","beforeSend","btnRef","setSent"]),l=function(e){var t=uU(dU(0),2),n=t[0],r=t[1],o=fU(0);return pU((function(){return function(){return clearInterval(o.current)}}),[]),pU((function(){n<=0?(clearInterval(o.current),null==e||e(!1)):null==e||e(!0)}),[n,e]),{enabled:hU((function(){return n<=0}),[n]),send:function(){r(60),o.current=setInterval((function(){r((function(e){return e-1}))}),1e3)},countDown:n}}(s),u=l.enabled,d=l.send,f=l.countDown,p=uU(dU(!1),2),h=p[0],m=p[1],v=hU((function(){return!u||h}),[u,h]);return y().createElement(ay,aU({},c,{className:"".concat(null!==(t=c.type)&&void 0!==t?t:"authing-g2-send-code-btn g2-loading-btn-center"," ").concat("ja-JP"===au.language?"send-code-btn-jp":""),disabled:v,loading:h,onClick:function(e){return sU(void 0,void 0,void 0,(function(){return cU(this,(function(e){switch(e.label){case 0:return m(!0),v?[2/*return*/]:[4/*yield*/,i()];case 1:return!e.sent()?(m(!1),[2/*return*/]):(m(!1),d(),[2/*return*/])}}))}))},ref:a}),!0===h&&y().createElement("span",null),!1===h&&y().createElement("span",null,u?o:n("common.retryAfterTime",{time:f})))},vU=function(){return vU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vU.apply(this,arguments)},gU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},yU=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},bU=y().useEffect,wU=y().useState,CU=function(e){return/^[0-9]*$/.test(String(e))},EU=y().forwardRef((function(e,t){var n=e.onChange,r=e.value,o=gU(e,["onChange","value"]),i=yU(wU(CU(r)?r:""),2),a=i[0],s=i[1];return bU((function(){s(CU(r)?r:"")}),[r]),y().createElement(tO,vU({autoComplete:"off"},o,{ref:t,value:a,type:"tel",pattern:"[0-9]*",onChange:function(e){var t=e.target.value;/^[0-9]*$/.test(t)&&function(e){s(e.target.value),null==n||n(e)}(e)}}))})),kU=function(){return kU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kU.apply(this,arguments)},SU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},xU=function(e){var t=e.value,n=e.onChange,r=e.autoSubmit,o=void 0!==r&&r,i=e.form,a=e.beforeSend,s=e.maxLength,c=SU(e,["value","onChange","autoSubmit","form","beforeSend","maxLength"]),l=xu().t;return y().createElement(y().Fragment,null,y().createElement(MA,{justify:"space-between",align:"middle"},y().createElement(ow,{span:/ja/.test(au.language)?9:15,className:"g2-send-code-input-col"},y().createElement(EU,kU({value:t,onChange:function(e){null==n||n(e),o&&s&&e.target.value.length>=s&&(null==i||i.submit())}},c,{maxLength:s}))),y().createElement(ow,{offset:1,span:/ja/.test(au.language)?14:8},y().createElement(mU,{beforeSend:a,sendDesc:l("common.sendVerifyCode")}))))},PU=function(){return PU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PU.apply(this,arguments)},_U=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},TU=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},OU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},NU=function(e){var t=e.scene,n=e.data,r=e.form,o=e.areaCode,i=e.onSendCodeBefore,a=e.fieldName,s=e.isInternationSms,c=void 0!==s&&s,l=e.codeFieldName,u=e.captchaCode,d=OU(e,["scene","data","form","areaCode","onSendCodeBefore","fieldName","isInternationSms","codeFieldName","captchaCode"]),f=xu().t,p=zL(),h=cL(),m=CJ().post,v=function(e,n,r){return _U(void 0,void 0,void 0,(function(){var o,i,a,s,c;return TU(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4/*yield*/,m("/api/v2/sms/send",{phone:e,phoneCountryCode:n,scene:t,captchaCode:r})];case 1:
|
|
18043
|
+
null==f||f(AL.REGISTER_COMPLETE_INFO,{businessRequestName:a,content:HB(HB({},s),{password:n}),onRegisterSuccess:l,onRegisterFailed:u}),[2/*return*/]):[3/*break*/,2];case 2:return _.trys.push([2,7,,8]),"registerByEmailCode"!==a?[3/*break*/,4]:[4/*yield*/,o("/api/v2/register-email-code",HB(HB({},s),{password:n,postUserInfoPipeline:!1}))];case 3:return r=_.sent(),v=r.statusCode,y=r.apiCode,m=r.data,b=r.onGuardHandling,w=r.message,d.current.onSpin(!1),200===v?l(m):(v===JY.UNSAFE_PASSWORD_TIP&&g(!0),null==b||b(),u(y,m,w),null===(E=null==t?void 0:t.onRegisterError)||void 0===E||E.call(t,{code:y,data:m,message:w})),[3/*break*/,6];case 4:return"registerByPhoneCode"!==a?[3/*break*/,6]:[4/*yield*/,o("/api/v2/register-phone-code",HB(HB({},s),{password:n,postUserInfoPipeline:!1}))];case 5:i=_.sent(),m=i.data,v=i.statusCode,y=i.apiCode,b=i.onGuardHandling,w=i.message,200===v?(null===(k=d.current)||void 0===k||k.onSpin(!1),l(m)):(y===JY.UNSAFE_PASSWORD_TIP&&g(!0),null==b||b(),null===(S=d.current)||void 0===S||S.onSpin(!1),u(y,m,w),null===(x=null==t?void 0:t.onRegisterError)||void 0===x||x.call(t,{apiCode:y,data:m,message:w})),_.label=6;case 6:return[3/*break*/,8];case 7:return _.sent(),null===(P=d.current)||void 0===P||P.onSpin(!1),[3/*break*/,8];case 8:return[2/*return*/]}}))}))}),[a,f,s,h,t,c,u,l,o,p,g]);return y().createElement("div",{className:"authing-g2-login-phone-code"},y().createElement(iT,{name:"resetPassword",form:n,onFinish:b,onFinishFailed:function(){var e;null===(e=null==d?void 0:d.current)||void 0===e||e.onError()},autoComplete:"off"},y().createElement(jB.Password,{className:"authing-g2-input-form",name:"password",required:!0},y().createElement(qB,{autoFocus:!r,className:"authing-g2-input",size:"large",placeholder:e("login.inputPwd"),prefix:y().createElement(GD,{type:"authing-a-lock-line1",style:{color:"#878A95"}})})),y().createElement(iT.Item,{validateTrigger:["onBlur","onChange"],className:"authing-g2-input-form",name:"password2",rules:[{validator:function(t,r){var o=n.getFieldValue("password");return r?r!==o?Promise.reject(e("common.repeatPasswordDoc")):Promise.resolve():Promise.reject(e("login.inputPwd"))}}]},y().createElement(qB,{className:"authing-g2-input",size:"large",placeholder:e("login.inputPwdAgain"),prefix:y().createElement(GD,{type:"authing-a-lock-line1",style:{color:"#878A95"}})})),v(),y().createElement(iT.Item,{className:"authing-g2-sumbit-form submit-form"},y().createElement(yj,{className:"forget-password",text:e("common.confirm"),ref:d}))))},QB=function(){return QB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},QB.apply(this,arguments)},XB=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},eU=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e.ResetPassword="reset-password-first-time",e.FirstLoginReset="reset-password-forced",e.ResetPasswordStrengthDetection="reset-password-strength-detection"}(BB||(BB={}));var tU,nU,rU,oU,iU=function(e,t){return XB(void 0,void 0,void 0,(function(){return eU(this,(function(n){switch(n.label){case 0:return[4/*yield*/,(0,wJ().authFlow)(e,QB({},t))];case 1:return[2/*return*/,n.sent()]}}))}))},aU=function(){return aU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aU.apply(this,arguments)},sU=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},cU=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},lU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},uU=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},dU=y().useState,fU=y().useRef,pU=y().useEffect,hU=y().useMemo,mU=function(e){var t,n=xu().t,r=e.sendDesc,o=void 0===r?n("login.reSent"):r,i=e.beforeSend,a=e.btnRef,s=e.setSent,c=lU(e,["sendDesc","beforeSend","btnRef","setSent"]),l=function(e){var t=uU(dU(0),2),n=t[0],r=t[1],o=fU(0);return pU((function(){return function(){return clearInterval(o.current)}}),[]),pU((function(){n<=0?(clearInterval(o.current),null==e||e(!1)):null==e||e(!0)}),[n,e]),{enabled:hU((function(){return n<=0}),[n]),send:function(){r(60),o.current=setInterval((function(){r((function(e){return e-1}))}),1e3)},countDown:n}}(s),u=l.enabled,d=l.send,f=l.countDown,p=uU(dU(!1),2),h=p[0],m=p[1],v=hU((function(){return!u||h}),[u,h]);return y().createElement(ay,aU({},c,{className:"".concat(null!==(t=c.type)&&void 0!==t?t:"authing-g2-send-code-btn g2-loading-btn-center"," ").concat("ja-JP"===au.language?"send-code-btn-jp":""),disabled:v,loading:h,onClick:function(e){return sU(void 0,void 0,void 0,(function(){return cU(this,(function(e){switch(e.label){case 0:return m(!0),v?[2/*return*/]:[4/*yield*/,i()];case 1:return!e.sent()?(m(!1),[2/*return*/]):(m(!1),d(),[2/*return*/])}}))}))},ref:a}),!0===h&&y().createElement("span",null),!1===h&&y().createElement("span",null,u?o:n("common.retryAfterTime",{time:f})))},vU=function(){return vU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vU.apply(this,arguments)},gU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},yU=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},bU=y().useEffect,wU=y().useState,CU=function(e){return/^[0-9]*$/.test(String(e))},EU=y().forwardRef((function(e,t){var n=e.onChange,r=e.value,o=gU(e,["onChange","value"]),i=yU(wU(CU(r)?r:""),2),a=i[0],s=i[1];return bU((function(){s(CU(r)?r:"")}),[r]),y().createElement(tO,vU({autoComplete:"off"},o,{ref:t,value:a,type:"tel",pattern:"[0-9]*",onChange:function(e){var t=e.target.value;/^[0-9]*$/.test(t)&&function(e){s(e.target.value),null==n||n(e)}(e)}}))})),kU=function(){return kU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kU.apply(this,arguments)},SU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},xU=function(e){var t=e.value,n=e.onChange,r=e.autoSubmit,o=void 0!==r&&r,i=e.form,a=e.beforeSend,s=e.maxLength,c=SU(e,["value","onChange","autoSubmit","form","beforeSend","maxLength"]),l=xu().t;return y().createElement(y().Fragment,null,y().createElement(MA,{justify:"space-between",align:"middle"},y().createElement(ow,{span:/ja/.test(au.language)?9:15,className:"g2-send-code-input-col"},y().createElement(EU,kU({value:t,onChange:function(e){null==n||n(e),o&&s&&e.target.value.length>=s&&(null==i||i.submit())}},c,{maxLength:s}))),y().createElement(ow,{offset:1,span:/ja/.test(au.language)?14:8},y().createElement(mU,{beforeSend:a,sendDesc:l("common.sendVerifyCode")}))))},PU=function(){return PU=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PU.apply(this,arguments)},_U=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},TU=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},OU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},NU=function(e){var t=e.scene,n=e.data,r=e.form,o=e.areaCode,i=e.onSendCodeBefore,a=e.fieldName,s=e.isInternationSms,c=void 0!==s&&s,l=e.codeFieldName,u=e.captchaCode,d=OU(e,["scene","data","form","areaCode","onSendCodeBefore","fieldName","isInternationSms","codeFieldName","captchaCode"]),f=xu().t,p=zL(),h=cL(),m=CJ().post,v=function(e,n,r){return _U(void 0,void 0,void 0,(function(){var o,i,a,s,c;return TU(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4/*yield*/,m("/api/v2/sms/send",{phone:e,phoneCountryCode:n,scene:t,captchaCode:r})];case 1:
|
|
18044
18044
|
// 200 表示请求成功,不报错
|
|
18045
18045
|
return o=l.sent(),i=o.code,a=o.statusCode,c=o.message,200===a||200===i?[2/*return*/,{status:!0}]:
|
|
18046
18046
|
// 由于使用项目中 post 方法进行请求,外层进行了处理,不会抛错,catch 不会走,在这对 code 进行针对处理
|
|
@@ -18341,7 +18341,7 @@ var d="authing-".concat(t.provider.replace(/:/g,"-"));return y().createElement(d
|
|
|
18341
18341
|
// 托管登录页,直接写死登录 URL
|
|
18342
18342
|
l.identifier=t.identifier;var f=Lz[t.protocol];if(!f)return null;c="".concat(r).concat(f,"?").concat(Lc().stringify(l))}else{var p=Fz[t.protocol];if(!p)return null;
|
|
18343
18343
|
// 嵌入式组件,从配置字段获取登录 URL
|
|
18344
|
-
c=t.config[p]}return y().createElement(dj,{key:t.identifier,className:"g2-guard-third-login-btn",block:!0,size:"large",icon:y().createElement(vv,{size:20,src:t.logo,style:{marginRight:8}}),onClick:function(){l.redirected?window.location.replace(c):EJ(c)}},i("login.loginBy",{name:t.displayName}))}),[n,t,i,o,r,a]);return c()},Bz=y().useEffect,Uz=
|
|
18344
|
+
c=t.config[p]}return y().createElement(dj,{key:t.identifier,className:"g2-guard-third-login-btn",block:!0,size:"large",icon:y().createElement(vv,{size:20,src:t.logo,style:{marginRight:8}}),onClick:function(){l.redirected?window.location.replace(c):EJ(c)}},i("login.loginBy",{name:t.displayName}))}),[n,t,i,o,r,a]);return c()},Bz=y().useEffect,Uz=function(e){var t,n,r=e.appId,o=e.config,i=e.onLoginFailed,a=e.onLoginSuccess,s=e.enterpriseConnectionObjs,c=e.socialConnectionObjs,l=e.multipleInstance,u=!(null===(t=null==o?void 0:o.loginMethods)||void 0===t?void 0:t.length),d=nL(),f=null==d?void 0:d.userPoolId,p=xu().t,h=aj().isPhoneMedia,m=(n=rL().responseIntercept,function(e){var t=e.data,r=t.message,o=t.data,i=t.event,a=t.code;
|
|
18345
18345
|
// 社会化登录是用 authing-js-sdk 实现的,不用再在这里回调了
|
|
18346
18346
|
// if (source === 'authing' && eventType === 'socialLogin') {
|
|
18347
18347
|
// return
|
|
@@ -18350,46 +18350,46 @@ if("authing"===(i||{}).source){
|
|
|
18350
18350
|
// 如果直接为 200 代表成功了
|
|
18351
18351
|
if(200===a)return{code:a,data:o,onGuardHandling:void 0};
|
|
18352
18352
|
// TODO 完整的登陆信息 在 message 中 以 Json 的形式返回 待优化
|
|
18353
|
-
var s;try{s=JSON.parse(r)}catch(e){return}var c=s.code,l=s.statusCode,u=s.apiCode,d=s.message,f=s.data,p=s.flowHandle;return n({statusCode:l,apiCode:u,data:f,message:d,code:c,flowHandle:p})}}),v=iL()
|
|
18353
|
+
var s;try{s=JSON.parse(r)}catch(e){return}var c=s.code,l=s.statusCode,u=s.apiCode,d=s.message,f=s.data,p=s.flowHandle;return n({statusCode:l,apiCode:u,data:f,message:d,code:c,flowHandle:p})}}),v=iL();Bz((function(){var e=function(e){var t,n=m(e);if(n){
|
|
18354
18354
|
// 更新本次登录方式
|
|
18355
18355
|
l&&l.setLoginWay("input","social");var r=n.code,o=n.data,s=n.onGuardHandling;if(200===r)a(o);else
|
|
18356
18356
|
// 向上层抛出错误
|
|
18357
|
-
(null==s?void 0:s(
|
|
18357
|
+
(null==s?void 0:s())===YY.RENDER_MESSAGE&&i(r,o,null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.message)}},t=oZ();return null==t||t.addEventListener("message",e),function(){null==t||t.removeEventListener("message",e)}}),[i,l,a,m]);var g=s.map((function(e){return y().createElement(jz,{key:e.identifier,i:e,appId:r,appHost:null==o?void 0:o.host,userPoolId:f,isHost:null==o?void 0:o.isHost})})),b=c.map((function(e){var t,n,i,a,s,c,l,d="authing-".concat(e.provider.replace(/:/g,"-")),f=CL(),m={from_guard:"1",app_id:r,guard_version:"Guard@".concat(f)};if(v&&(m.tenant_id=v),(null==o?void 0:o.isHost)&&(m.from_hosted_guard="1",Uc())){m.redirected="1";var g=oZ();g&&(
|
|
18358
18358
|
// 如果 isHost 是 true,则从 url 获取 finish_login_url 作为 social.authorize 方法的 targetUrl 参数
|
|
18359
|
-
m.redirect_url=null===(t=Rz.parse(g.location.search))||void 0===t?void 0:t.finish_login_url)}var b=function(){var t,n;if(e.action===QF.Message)hC.error(p("login.socialConnectionMessage",{provider:null!==(n=null!==(t=e.displayName)&&void 0!==t?t:"zh-CN"===au.language?e.name:e.name_en)&&void 0!==n?n:e.provider}));else if(e.action===QF.Auth){var r="".concat(o.host,"/connections/social/").concat(e.identifier,"?").concat(Rz.stringify(m));m.redirected?window.location.replace(r):EJ(r)}},w=o.socialConnectionsBtnShape;return"button"===w?y().createElement(dj,{key:e.id,block:!0,size:"large",className:"g2-guard-third-login-btn",icon:y().createElement(GD,{type:"".concat(d,"-fill"),style:{fontSize:20,marginRight:8}}),onClick:b,style:{marginBottom:8}},null!==(i=null!==(n=e.displayName)&&void 0!==n?n:"zh-CN"===au.language?e.name:e.name_en)&&void 0!==i?i:e.provider):"icon"===w?h?y().createElement(dj,{className:"g2-social-login-item",onClick:b,icon:y().createElement(GD,{type:"".concat(d,"-fill")})}):y().createElement(lv,{key:e.id,title:(null===(a=e.tooltip)||void 0===a?void 0:a[au.language])||e.name,trigger:["hover","click","contextMenu"]},y().createElement(dj,{className:"g2-social-login-item",onClick:b,icon:y().createElement(GD,{type:"".concat(d,"-fill")})})):u?y().createElement(dj,{key:e.id,block:!0,size:"large",className:"g2-guard-third-login-btn",icon:y().createElement(GD,{type:"".concat(d,"-fill"),style:{fontSize:20,marginRight:8}}),onClick:b},null!==(c=null!==(s=e.displayName)&&void 0!==s?s:"zh-CN"===au.language?e.name:e.name_en)&&void 0!==c?c:e.provider):h?y().createElement(dj,{className:"g2-social-login-item",onClick:b,key:e.id,icon:y().createElement(GD,{type:"".concat(d,"-fill")})}):y().createElement(lv,{overlayStyle:{fontFamily:"sans-serif"},key:e.id,title:e.displayName||(null===(l=e.tooltip)||void 0===l?void 0:l[au.language])||e.name,trigger:["hover","click","contextMenu"]},y().createElement(dj,{className:"g2-social-login-item",onClick:b,icon:y().createElement(GD,{type:"".concat(d,"-fill")})}))})),
|
|
18359
|
+
m.redirect_url=null===(t=Rz.parse(g.location.search))||void 0===t?void 0:t.finish_login_url)}var b=function(){var t,n;if(e.action===QF.Message)hC.error(p("login.socialConnectionMessage",{provider:null!==(n=null!==(t=e.displayName)&&void 0!==t?t:"zh-CN"===au.language?e.name:e.name_en)&&void 0!==n?n:e.provider}));else if(e.action===QF.Auth){var r="".concat(o.host,"/connections/social/").concat(e.identifier,"?").concat(Rz.stringify(m));m.redirected?window.location.replace(r):EJ(r)}},w=o.socialConnectionsBtnShape;return"button"===w?y().createElement(dj,{key:e.id,block:!0,size:"large",className:"g2-guard-third-login-btn",icon:y().createElement(GD,{type:"".concat(d,"-fill"),style:{fontSize:20,marginRight:8}}),onClick:b,style:{marginBottom:8}},null!==(i=null!==(n=e.displayName)&&void 0!==n?n:"zh-CN"===au.language?e.name:e.name_en)&&void 0!==i?i:e.provider):"icon"===w?h?y().createElement(dj,{className:"g2-social-login-item",onClick:b,icon:y().createElement(GD,{type:"".concat(d,"-fill")})}):y().createElement(lv,{key:e.id,title:(null===(a=e.tooltip)||void 0===a?void 0:a[au.language])||e.name,trigger:["hover","click","contextMenu"]},y().createElement(dj,{className:"g2-social-login-item",onClick:b,icon:y().createElement(GD,{type:"".concat(d,"-fill")})})):u?y().createElement(dj,{key:e.id,block:!0,size:"large",className:"g2-guard-third-login-btn",icon:y().createElement(GD,{type:"".concat(d,"-fill"),style:{fontSize:20,marginRight:8}}),onClick:b},null!==(c=null!==(s=e.displayName)&&void 0!==s?s:"zh-CN"===au.language?e.name:e.name_en)&&void 0!==c?c:e.provider):h?y().createElement(dj,{className:"g2-social-login-item",onClick:b,key:e.id,icon:y().createElement(GD,{type:"".concat(d,"-fill")})}):y().createElement(lv,{overlayStyle:{fontFamily:"sans-serif"},key:e.id,title:e.displayName||(null===(l=e.tooltip)||void 0===l?void 0:l[au.language])||e.name,trigger:["hover","click","contextMenu"]},y().createElement(dj,{className:"g2-social-login-item",onClick:b,icon:y().createElement(GD,{type:"".concat(d,"-fill")})}))})),w=s.length?y().createElement(y().Fragment,null,!u&&y().createElement("div",{className:"g2-social-login-title"},au.t("login.otherLoginWay")),y().createElement("div",{className:"g2-social-login-list"},g)):null,C=b.length>0&&u?y().createElement(f_,{size:u?0:12,className:"g2-guard-full-width-space no-login-methods",direction:"vertical"},b):b.length>0&&y().createElement(y().Fragment,null,y().createElement("div",{className:"g2-social-login-title"},p("login.thridAccLogin")),y().createElement("div",{className:"g2-social-login-list"},b));return y().createElement(y().Fragment,null,!u&&y().createElement("div",{style:{flex:1,minHeight:16}}),y().createElement(f_,{size:u?0:8,direction:"vertical",className:"g2-guard-full-width-space"},!(null==d?void 0:d.ssoPageComponentDisplay.idpBtns)||w,!(null==d?void 0:d.ssoPageComponentDisplay.socialLoginBtns)||C))},qz=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Vz=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},$z=y().useMemo,zz=y().useCallback,Hz=function(e){var t=e.lists,n=e.handleDel,r=e.onClick,o=xu().t,i=aj().isPhoneMedia,a=$z((function(){return i?"click":"hover"}),[i]),s=$z((function(){return Vz(Vz([],qz(t),!1),[{operation:!1,id:"other",title:o("login.useOtherAccount"),element:y().createElement("div",{className:"g2-multiple__icon--add-line"},y().createElement(GD,{style:{fontSize:24,color:"#4E5969"},type:"authing-add-line"}))}],!1)}),[t,o]),c=zz((function(e,t){n(t),e.stopPropagation()}),[n]),l=$z((function(){return s.map((function(e){var t=e,n=t.photo,i=t.title,s=t.description,l=t.id,u=t.operation,d=void 0===u||u,f=t.element;return y().createElement("li",{className:"g2-multiple__li",key:l,onClick:function(){return r(l)}},f||y().createElement("img",{className:"g2-multiple__avatar",alt:"",src:n}),y().createElement("section",{className:"g2-multiple__body"},i&&y().createElement("span",{className:"g2-multiple__title"},i),y().createElement("span",{className:i?"g2-multiple__desc":"g2-multiple__title"},s)),d&&y().createElement("span",{className:"g2-multiple__op",onClick:function(e){return e.stopPropagation()}},y().createElement(pv,{trigger:a,overlayClassName:"g2-multiple__op-wrapper",getPopupContainer:function(e){return e},content:y().createElement("div",{className:"g2-multiple__del",onClick:function(e){return c(e,l)}},y().createElement(GD,{style:{fontSize:20,marginRight:8},type:"authing-indeterminate-circle-line"}),o("common.del"))},y().createElement("div",{className:"g2-multiple__icon"},y().createElement(GD,{type:"authing-more-fill"})))))}))}),[s,r,c,o,a]);return y().createElement("ul",{className:"g2-multiple"},l)},Wz=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Gz=y().useCallback,Kz=y().useState,Yz=y().memo((function(e){var t=Wz(Kz(0),2)[1],n=e.multipleInstance,r=e.referMultipleState,o=null==n?void 0:n.getMemoUser(),i=Gz((function(){return t(Math.random)}),[]);if(!o)
|
|
18360
18360
|
// 这里应该额外处理下 其实本质上应该是存在的
|
|
18361
18361
|
return null;
|
|
18362
18362
|
/**
|
|
18363
18363
|
* 用户手动删除记录的用户
|
|
18364
|
-
*/return y().createElement(
|
|
18364
|
+
*/return y().createElement(Hz,{lists:o,onClick:function(e){
|
|
18365
18365
|
// way && account
|
|
18366
18366
|
var t=null==n?void 0:n.getMemoSingleUser(e);null==r||r("login",t)},handleDel:function(e){null==n||n.delUserById(e);var t=null==n?void 0:n.getMemoUser();0===(null==t?void 0:t.length)?
|
|
18367
18367
|
// 7.15: 如果仅剩一个需求跳转
|
|
18368
|
-
null==r||r("login"):i()}})})),
|
|
18368
|
+
null==r||r("login"):i()}})})),Jz=function(){return Jz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jz.apply(this,arguments)},Zz=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Qz=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Xz=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},eH=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},tH=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},nH=y().useCallback,rH=y().useRef,oH=function(){var e=rH(null),t=tH(iT.useForm(),1)[0],n=cL(),r=zL(),o=nH((function(t){return Xz(void 0,void 0,void 0,(function(){var o,i,a,s,c,l,u,d,f;return eH(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),[4/*yield*/,(h="reset-username-before-auth"/* ResetAccountBusinessAction.ResetName */,m=t,Zz(void 0,void 0,void 0,(function(){return Qz(this,(function(e){switch(e.label){case 0:return[4/*yield*/,(0,wJ().authFlow)(h,Jz({},m))];case 1:return[2/*return*/,e.sent()]}}))})))];case 1:return o=p.sent(),i=o.apiCode,a=o.onGuardHandling,s=o.message,c=o.isFlowEnd,l=o.data,null===(u=e.current)||void 0===u||u.onSpin(!1),c?null===(d=null==n?void 0:n.onLogin)||void 0===d||d.call(n,l,r):i===JY.RESET_ACCOUNT_NAME?
|
|
18369
18369
|
// 用户名重复
|
|
18370
|
-
hC.error(s):(null===(f=e.current)||void 0===f||f.onError(),null==a||a()),[3/*break*/,3];case 2:return p.sent(),[3/*break*/,3];case 3:return[2/*return*/]}var h,m}))}))}),[r,n]);return y().createElement("div",{className:"g2-view-reset-username"},y().createElement("div",{className:"g2-view-reset-username__title"},au.t("common.resetAccount.title")),y().createElement(iT,{name:"passworLogin",onFinish:o,onFinishFailed:function(){var t;return null===(t=e.current)||void 0===t?void 0:t.onError()},autoComplete:"off",form:t},y().createElement(jB.UserName,null,y().createElement(tO,{className:"authing-g2-input",size:"large",prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}}),placeholder:au.t("login.inputUsername")})),y().createElement(iT.Item,{className:"authing-g2-sumbit-form"},y().createElement(yj,{text:au.t("common.sure"),className:"password",ref:e}))))},
|
|
18370
|
+
hC.error(s):(null===(f=e.current)||void 0===f||f.onError(),null==a||a()),[3/*break*/,3];case 2:return p.sent(),[3/*break*/,3];case 3:return[2/*return*/]}var h,m}))}))}),[r,n]);return y().createElement("div",{className:"g2-view-reset-username"},y().createElement("div",{className:"g2-view-reset-username__title"},au.t("common.resetAccount.title")),y().createElement(iT,{name:"passworLogin",onFinish:o,onFinishFailed:function(){var t;return null===(t=e.current)||void 0===t?void 0:t.onError()},autoComplete:"off",form:t},y().createElement(jB.UserName,null,y().createElement(tO,{className:"authing-g2-input",size:"large",prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}}),placeholder:au.t("login.inputUsername")})),y().createElement(iT.Item,{className:"authing-g2-sumbit-form"},y().createElement(yj,{text:au.t("common.sure"),className:"password",ref:e}))))},iH=function(){return iH=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iH.apply(this,arguments)},aH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},sH=y().useMemo,cH=function(e){var t=e.methods,n=aH(e,["methods"]),r=nL(),o=xu().t,i=sH((function(){var e;return{"email-code":{t:o("common.email"),sort:2},"phone-code":{t:(null===(e=null==r?void 0:r.internationalSmsConfig)||void 0===e?void 0:e.enabled)?o("common.areaCodePhone"):o("common.phoneNumber"),sort:1}}}),[r,o]),a=sH((function(){return o("login.inputAccount",{text:null==t?void 0:t.map((function(e){return i[e]})).sort((function(e,t){return e.sort-t.sort})).map((function(e){return e.t})).join(" / ")})}),[t,o,i]),s=sH((function(){return 1===t.length&&"phone-code"===t[0]?y().createElement(EU,iH({maxLength:11,placeholder:a},n)):y().createElement(tO,iH({placeholder:a},n,{prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}})}))}),[n,t,a]);return y().createElement(y().Fragment,null,s)},lH=function(){return lH=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lH.apply(this,arguments)},uH=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},dH=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},fH=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},pH=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(e){e.Phone="phone",e.Email="email"}(Cz||(Cz={}));var hH,mH=y().useCallback,vH=y().useEffect,gH=y().useMemo,yH=y().useRef,bH=y().useState,wH=function(e){var t,n,r,o=nL(),i=uL(),a=aL(),s=a._firstItemInitialValue,c=void 0===s?"":s,l=a.specifyDefaultLoginMethod,u=a._lockMethod,d=e.agreements,f=e.methods,p=e.autoRegister,h=e.submitButText,m=e.onLoginFailed,v=e.onLoginSuccess,g=e.saveIdentify,b=e.multipleInstance,w=e.backfillData,C=e.specifyCodeMethod,E=null!==(t=null==o?void 0:o.verifyCodeLength)&&void 0!==t?t:4,k=rL().post,S=aj().isPhoneMedia,x=(null===(n=null==o?void 0:o.internationalSmsConfig)||void 0===n?void 0:n.enabled)||!1,P=yH(!1),_=fH(bH(!1),2),T=_[0],O=_[1],N=fH(bH(""),2),I=N[0],A=N[1],R=fH(bH(l&&null!=u?u:f[0]),2),M=R[0],D=R[1],L=fH(bH(!1),2),F=L[0],j=L[1],B=fH(bH(!1),2),U=B[0],q=B[1],V=fH(bH((null===(r=null==o?void 0:o.internationalSmsConfig)||void 0===r?void 0:r.defaultISOType)||"CN"),2),$=V[0],z=V[1],H=vL(),W=fH(bH(""),2),G=W[0],K=W[1],Y=fH(iT.useForm(),1)[0],J=mH((function(e){1!==f.length&&(NJ("email",e)?D(_c.EmailCode):
|
|
18371
18371
|
// 放开手机号校验 方便同时开启邮箱和短信国际化手机号通过
|
|
18372
|
-
D(_c.PhoneCode))}),[f.length]),Z=
|
|
18372
|
+
D(_c.PhoneCode))}),[f.length]),Z=mH((function(e){A(e),J(e)}),[J]);v$({form:Y,way:Vs.PhoneCode,formKey:"identify",backfillData:w,isOnlyInternationSms:F,setAreaCode:z,cancelBackfill:l===Vs.PhoneCode,changeCurrentMethod:Z});var Q=yH(null),X=xu().t,ee=mH((function(e){return F?y().createElement(NU,lH({},e,{form:Y,fieldName:"identify",className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:X("common.inputFourVerifyCode",{length:E}),areaCode:$,prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),isInternationSms:x,scene:Ni.SCENE_TYPE_LOGIN,maxLength:E,onSendCodeBefore:function(){return uH(void 0,void 0,void 0,(function(){return dH(this,(function(e){switch(e.label){case 0:return[4/*yield*/,Y.validateFields(["identify"])];case 1:return e.sent(),[4/*yield*/,Y.validateFields(["captchaCode"])];case 2:return e.sent(),[2/*return*/]}}))}))}})):y().createElement(y().Fragment,null,M===_c.PhoneCode&&y().createElement(NU,lH({},e,{isInternationSms:x,className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:X("common.inputFourVerifyCode",{length:E}),areaCode:$,prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Ni.SCENE_TYPE_LOGIN,maxLength:E,form:Y,fieldName:"identify",data:I,codeFieldName:"captchaCode",onSendCodeBefore:function(){return uH(void 0,void 0,void 0,(function(){return dH(this,(function(e){switch(e.label){case 0:return[4/*yield*/,Y.validateFields(["identify"])];case 1:return e.sent(),[4/*yield*/,Y.validateFields(["captchaCode"])];case 2:return e.sent(),[2/*return*/]}}))}))}})),M===_c.EmailCode&&y().createElement(gq,lH({},e,{className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:X("common.inputFourVerifyCode",{length:E}),prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),form:Y,fieldName:"identify",scene:Oc.LOGIN_VERIFY_CODE,maxLength:E,data:I,onSendCodeBefore:function(){return uH(void 0,void 0,void 0,(function(){return dH(this,(function(e){switch(e.label){case 0:return[4/*yield*/,Y.validateFields(["identify"])];case 1:return e.sent(),[2/*return*/]}}))}))}})))}),[$,M,Y,I,x,F,X,E]);vH((function(){var e;
|
|
18373
18373
|
// 开启国际化配置且登录方式为手机号码时
|
|
18374
18374
|
(1===f.length&&"phone-code"===f[0]&&(null===(e=null==o?void 0:o.internationalSmsConfig)||void 0===e?void 0:e.enabled)||C===Cz.Phone)&&(j(!0),D(_c.PhoneCode)),
|
|
18375
18375
|
// 指定了只用邮箱验证码
|
|
18376
|
-
C===Cz.Email&&(q(!0),D(_c.EmailCode))}),[o,f,C]),
|
|
18376
|
+
C===Cz.Email&&(q(!0),D(_c.EmailCode))}),[o,f,C]),vH((function(){
|
|
18377
18377
|
/** 如果是国外用户池,那么有图形验证码,需要请求图片 */
|
|
18378
|
-
H&&K(g$(i.host))}),[H,null==i?void 0:i.host]),
|
|
18378
|
+
H&&K(g$(i.host))}),[H,null==i?void 0:i.host]),vH((function(){
|
|
18379
18379
|
// 方法发生变化时,图像验证码数据应该清空
|
|
18380
|
-
H&&(null==Y||Y.setFieldsValue({captchaCode:void 0}))}),[Y,M,H]);var te=function(e){return
|
|
18380
|
+
H&&(null==Y||Y.setFieldsValue({captchaCode:void 0}))}),[Y,M,H]);var te=function(e){return uH(void 0,void 0,void 0,(function(){var t,n,r,a,s,c,l,u;return dH(this,(function(d){switch(d.label){case 0:return t={phone:e.phoneNumber,code:e.code,customData:(null==i?void 0:i.isHost)?jJ(["login_page_context"]):void 0,autoRegister:p,withCustomData:!1},o&&(null===(l=o.internationalSmsConfig)||void 0===l?void 0:l.enabled)&&(t.phoneCountryCode=e.phoneCountryCode),[4/*yield*/,k("/api/v2/login/phone-code",t)];case 1:return n=d.sent(),r=n.code,a=n.data,s=n.onGuardHandling,c=n.message,null===(u=Q.current)||void 0===u||u.onSpin(!1),200===r?
|
|
18381
18381
|
// props.onLogin(200, data)
|
|
18382
18382
|
v(a):
|
|
18383
18383
|
// 向上层抛出错误
|
|
18384
|
-
(null==s?void 0:s())===YY.RENDER_MESSAGE&&m(r,a,c),[2/*return*/]}}))}))},ne=function(e){return
|
|
18384
|
+
(null==s?void 0:s())===YY.RENDER_MESSAGE&&m(r,a,c),[2/*return*/]}}))}))},ne=function(e){return uH(void 0,void 0,void 0,(function(){var t,n,r,o,a,s,c;return dH(this,(function(l){switch(l.label){case 0:return t={email:e.identify,code:e.code,customData:(null==i?void 0:i.isHost)?jJ(["login_page_context"]):void 0,autoRegister:p,withCustomData:!1},[4/*yield*/,k("/api/v2/login/email-code",t)];case 1:return n=l.sent(),r=n.code,o=n.data,a=n.onGuardHandling,s=n.message,null===(c=Q.current)||void 0===c||c.onSpin(!1),200===r?
|
|
18385
18385
|
// props.onLogin(200, data)
|
|
18386
18386
|
v(o):
|
|
18387
18387
|
// 向上层抛出错误
|
|
18388
|
-
(null==a?void 0:a())===YY.RENDER_MESSAGE&&m(r,o,s),[2/*return*/]}}))}))},re=
|
|
18388
|
+
(null==a?void 0:a())===YY.RENDER_MESSAGE&&m(r,o,s),[2/*return*/]}}))}))},re=gH((function(){var e,t;return h||(p&&!o.registerDisabled&&(null===(t=null===(e=i.registerMethods)||void 0===e?void 0:e.filter((function(e){
|
|
18389
18389
|
// @ts-ignore
|
|
18390
|
-
return[Ws.Phone,Ws.EmailCode].includes(e)})))||void 0===t?void 0:t.length)?"".concat(X("common.login")," / ").concat(X("common.register")):X("common.login"))}),[p,h,X,i.registerMethods,o.registerDisabled]),oe=
|
|
18390
|
+
return[Ws.Phone,Ws.EmailCode].includes(e)})))||void 0===t?void 0:t.length)?"".concat(X("common.login")," / ").concat(X("common.register")):X("common.login"))}),[p,h,X,i.registerMethods,o.registerDisabled]),oe=mH((function(e){return y().createElement(xq,lH({},e,{className:"authing-g2-input",size:"large",areaCode:$,onAreaCodeChange:function(e){z(e),Y.getFieldValue(["identify"])&&Y.validateFields(["identify"])}}))}),[$,Y]),ie=qc();
|
|
18391
18391
|
// 邮箱验证码登录
|
|
18392
|
-
return y().createElement("div",{className:"authing-g2-login-phone-code"},y().createElement(iT,{name:"phoneCode",form:Y,onFinish:function(t){return
|
|
18392
|
+
return y().createElement("div",{className:"authing-g2-login-phone-code"},y().createElement(iT,{name:"phoneCode",form:Y,onFinish:function(t){return uH(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,c,l,u,f,p,h,g,y,w;return dH(this,(function(C){switch(C.label){case 0:return O(!0),(null==d?void 0:d.length)&&!P.current?(
|
|
18393
18393
|
// message.error(t('common.loginProtocolTips'))
|
|
18394
18394
|
Q.current.onError(),[2/*return*/]):(n=sj(x,t.identify,$),r=n.phoneNumber,o=n.countryCode,
|
|
18395
18395
|
// onBeforeLogin
|
|
@@ -18397,97 +18397,99 @@ null===(p=Q.current)||void 0===p||p.onSpin(!0),i={type:M,data:{identity:r,code:t
|
|
|
18397
18397
|
// 向上层抛出错误 执行绑定失败钩子
|
|
18398
18398
|
(null==u?void 0:u())===YY.RENDER_MESSAGE&&m(null!=c?c:s,l,f),[2/*return*/];case 3:
|
|
18399
18399
|
// 其实这里应该是保存两个 一个是 countryCode 一个是对应的 code
|
|
18400
|
-
return b&&b.setLoginWay("input","phone-code"===M?"phone-code":"email-code",void 0,x?{phoneCountryCode:o,areaCode:$}:void 0),"phone-code"!==M?[3/*break*/,5]:[4/*yield*/,te(
|
|
18401
|
-
function
|
|
18402
|
-
var
|
|
18403
|
-
var OH,NH=Object.defineProperty,IH=Object.getOwnPropertySymbols,AH=Object.prototype.hasOwnProperty,RH=Object.prototype.propertyIsEnumerable,MH=(e,t,n)=>t in e?NH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DH=(e,t)=>{for(var n in t||(t={}))AH.call(t,n)&&MH(e,n,t[n]);if(IH)for(var n of IH(t))RH.call(t,n)&&MH(e,n,t[n]);return e},LH=(e,t)=>{var n={};for(var r in e)AH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&IH)for(var r of IH(e))t.indexOf(r)<0&&RH.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const r=8*t.getNumDataCodewords(u,n),o=s.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(u,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,l=Math.floor(s/o);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+l-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),u.push(o.concat(i))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=l-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(OH||(OH={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(OH||(OH={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(OH||(OH={}));var FH=OH,jH={L:FH.QrCode.Ecc.LOW,M:FH.QrCode.Ecc.MEDIUM,Q:FH.QrCode.Ecc.QUARTILE,H:FH.QrCode.Ecc.HIGH},BH=128,UH="L",qH="#FFFFFF",VH="#000000",$H=!1,zH=4,HH=.1;
|
|
18400
|
+
return b&&b.setLoginWay("input","phone-code"===M?"phone-code":"email-code",void 0,x?{phoneCountryCode:o,areaCode:$}:void 0),"phone-code"!==M?[3/*break*/,5]:[4/*yield*/,te(lH(lH({},t),{phoneNumber:r,phoneCountryCode:o}))];case 4:return C.sent(),[3/*break*/,7];case 5:return[4/*yield*/,ne(t)];case 6:C.sent(),C.label=7;case 7:return[2/*return*/]}}))}))},onFinishFailed:function(){return Q.current.onError()},autoComplete:"off",onValuesChange:function(e){(null==e?void 0:e.identify)&&g&&g(Vs.PhoneCode,null==e?void 0:e.identify)}},y().createElement(EV,{initialValue:l===Vs.PhoneCode?c:"phone"!==C&&x||!ie?"":ie,name:"identify",className:F?"authing-g2-input-form remove-padding":"authing-g2-input-form",methods:f,checkExist:!p,currentMethod:M,areaCode:$},F?y().createElement(oe,{autoFocus:!S}):y().createElement(cH,{className:"authing-g2-input",size:"large",autoFocus:!S,value:I,methods:U?["email-code"]:f,onChange:function(e){var t=e.target.value;J(t)},onBlur:function(e){var t=e.target.value;J(t)},prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}})})),H&&M===_c.PhoneCode&&y().createElement(iT.Item,{className:"authing-g2-input-form",validateTrigger:["onBlur","onChange"],name:"captchaCode",rules:IJ(X("common.captchaCode"))},y().createElement(r$,{className:"authing-g2-input",size:"large",placeholder:X("login.inputCaptchaCode"),verifyCodeUrl:G,changeCode:function(){return K(g$(i.host))}})),y().createElement(iT.Item,{validateTrigger:["onBlur","onChange"],className:"authing-g2-input-form",name:"code",rules:pH([],fH(IJ(X("common.captchaCode"))),!1)},y().createElement(ee,null)),Boolean(null==d?void 0:d.length)&&y().createElement(d$,{onChange:function(e){P.current=e},agreements:d,showError:T}),y().createElement(iT.Item,{className:"authing-g2-sumbit-form"},y().createElement(yj,{text:re,className:"password",ref:Q}))))},CH=function(){return hH},EH=function(e){hH=e};// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/PushLoginGuideSelector.tsx
|
|
18401
|
+
function kH(e){var t=e.defaultValue,n=e.onChange,r=e.options;return y().createElement(aI,{defaultValue:t,onChange:n,options:r,dropdownMatchSelectWidth:!1,showArrow:!0})}// CONCATENATED MODULE: ./src/LazyloadImage/index.tsx
|
|
18402
|
+
var SH=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},xH=y().useEffect,PH=y().useState;function _H(e){var t=e.src,n=e.placeholder,r=e.className,o=e.style,i=e.alt,a=e.width,s=e.height,c=SH(PH(!1),2),l=c[0],u=c[1],d=new Image(0,0);return d.src=t,xH((function(){d.onload=function(){u(!0)}})),y().createElement(y().Fragment,null,l&&y().createElement("img",{src:t,width:a,height:s,className:r,style:o,alt:i})||n)}// CONCATENATED MODULE: ./node_modules/qrcode.react/lib/esm/index.js
|
|
18403
|
+
var TH,OH=Object.defineProperty,NH=Object.getOwnPropertySymbols,IH=Object.prototype.hasOwnProperty,AH=Object.prototype.propertyIsEnumerable,RH=(e,t,n)=>t in e?OH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MH=(e,t)=>{for(var n in t||(t={}))IH.call(t,n)&&RH(e,n,t[n]);if(NH)for(var n of NH(t))AH.call(t,n)&&RH(e,n,t[n]);return e},DH=(e,t)=>{var n={};for(var r in e)IH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&NH)for(var r of NH(e))t.indexOf(r)<0&&AH.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const r=8*t.getNumDataCodewords(u,n),o=s.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(u,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,l=Math.floor(s/o);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+l-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),u.push(o.concat(i))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=l-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(TH||(TH={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(TH||(TH={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(TH||(TH={}));var LH=TH,FH={L:LH.QrCode.Ecc.LOW,M:LH.QrCode.Ecc.MEDIUM,Q:LH.QrCode.Ecc.QUARTILE,H:LH.QrCode.Ecc.HIGH},jH=128,BH="L",UH="#FFFFFF",qH="#000000",VH=!1,$H=4,zH=.1;
|
|
18404
18404
|
// src/index.tsx
|
|
18405
18405
|
/**
|
|
18406
18406
|
* @license qrcode.react
|
|
18407
18407
|
* Copyright (c) Paul O'Shannessy
|
|
18408
18408
|
* SPDX-License-Identifier: ISC
|
|
18409
|
-
*/function
|
|
18410
|
-
return y().createElement("svg",
|
|
18411
|
-
function
|
|
18412
|
-
function
|
|
18413
|
-
var
|
|
18414
|
-
var
|
|
18409
|
+
*/function HH(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}}))})),n.join("")}function WH(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function GH(e,t,n,r){if(null==r)return null;const o=n?$H:0,i=e.length+2*o,a=Math.floor(t*zH),s=i/t,c=(r.width||a)*s,l=(r.height||a)*s,u=null==r.x?e.length/2-c/2:r.x*s,d=null==r.y?e.length/2-l/2:r.y*s;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:f}}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();function KH(e){const t=e,{value:n,size:r=jH,level:o=BH,bgColor:i=UH,fgColor:a=qH,includeMargin:s=VH,imageSettings:c}=t,l=DH(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=LH.QrCode.encodeText(n,FH[o]).getModules();const d=s?$H:0,f=u.length+2*d,p=GH(u,r,s,c);let h=null;null!=c&&null!=p&&(null!=p.excavation&&(u=WH(u,p.excavation)),h=y().createElement("image",{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:"none"}));const m=HH(u,d);
|
|
18410
|
+
return y().createElement("svg",MH({height:r,width:r,viewBox:`0 0 ${f} ${f}`},l),y().createElement("path",{fill:i,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),y().createElement("path",{fill:a,d:m,shapeRendering:"crispEdges"}),h)}var YH=y().useMemo;function JH(){var e=xu().t,t=uL(),n=nL(),r=oL(),o=YH((function(){var e={appId:r,appHost:t.host,scene:"APP_OPTIONS",userPoolId:n.userPoolId};return JSON.stringify(e)}),[t,r]);return y().createElement(y().Fragment,null,y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"1. ",e("login.installAuthingToken"))),y().createElement("div",{className:"desc"},e("login.downloadAuthingToken")),y().createElement("div",{className:"qrcode-container space-between"},y().createElement("div",{className:"qrcode-app grey-bg"},y().createElement(_H,{src:"https://cdn.authing.co/authing-assets/qrcode-download-android.png",placeholder:y().createElement(yI,null),className:"qrcode-verifier download-app",alt:e("login.downloadAndroid")}),y().createElement("div",{className:"qrcode-tips"},e("login.downloadAndroid"))),y().createElement("div",{className:"qrcode-app grey-bg"},y().createElement(_H,{src:"https://cdn.authing.co/authing-assets/qrcode-download-ios.png",placeholder:y().createElement(yI,null),className:"qrcode-verifier download-app",alt:e("login.downloadIOS")}),y().createElement("div",{className:"qrcode-tips"},e("login.downloadIOS"))))),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"2. ",e("login.openAppList"))),y().createElement("div",{className:"desc"},e("login.addApp")),y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-open-application-list.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.downloadIOS")})),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"3. ",e("login.openLoginPage"))),y().createElement("div",{className:"desc"},e("login.scanQrcode")),y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-open-application.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.downloadIOS")})),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"4. ",e("login.scanFollowingQrcode"))),y().createElement("div",{className:"qrcode-container center grey-bg",style:{marginTop:"16px",padding:"25px 0",boxSizing:"border-box"}},y().createElement(KH,{size:80,value:o,style:{padding:"5px",backgroundColor:"#fff"}}))),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"5. ",e("login.relevanceApp"))),y().createElement("div",{className:"desc"},e("login.receiveMessageFromAuthingToken")),y().createElement("div",{className:"qrcode-container center grey-bg"},y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-relevance-application.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.receiveMessageFromAuthingToken")}))))}// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/HowUsePushLogin.tsx
|
|
18411
|
+
function ZH(){var e=xu().t;return y().createElement(y().Fragment,null,y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"1. ",e("login.inputAccountInWeb"))),y().createElement("div",{className:"desc"},e("login.clickLoginButton")),y().createElement("div",{className:"qrcode-container center grey"},y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-input-account.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.clickLoginButton")}))),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"2. ",e("login.receiveMessageInApp"))),y().createElement("div",{className:"desc"},e("login.confirmLoginInApp")),y().createElement("div",{className:"qrcode-container center grey"},y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-receive-message-in-app.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.confirmLoginInApp")}))))}// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.tsx
|
|
18412
|
+
function QH(){var e=xu().t;return y().createElement(y().Fragment,null,y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"1. ",e("login.getCodeFromAdmin"))),y().createElement("div",{className:"desc"},e("login.getCodeFromAdminTips")),y().createElement("div",{className:"qrcode-container center grey"},y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-get-associated-qrcode-from-admin.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.getCodeFromAdmin")}))),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"2. ",e("login.getCodeFromPersonalCenter"))),y().createElement("div",{className:"desc"},e("login.getCodeFromPersonalCenterTips")),y().createElement("div",{className:"qrcode-container center grey"},y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-get-code-from-personal.svg",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.getCodeFromPersonalCenter")}))),y().createElement("div",{className:"guide-step"},y().createElement("div",{className:"title"},y().createElement("span",{className:"dot"}),y().createElement("span",null,"3. ",e("login.getLoginUrlFromConsole"))),y().createElement("div",{className:"desc"},e("login.getLoginUrlFromConsoleTips")),y().createElement("div",{className:"qrcode-container center grey"},y().createElement(_H,{src:"https://files.authing.co/authing-guard/push-login-get-login-url-from-console.png",placeholder:y().createElement(yI,null),className:"qrcode-verifier",alt:e("login.getLoginUrlFromConsole")}))))}// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/PushLoginGuideModal.tsx
|
|
18413
|
+
var XH=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},eW=y().useMemo,tW=y().useState;function nW(e){var t=e.visible,n=e.onClose,r=xu().t,o=r("login.howBindClient"),i=r("login.howGetAppLoginUrl"),a=r("login.howUsePushLogin"),s=XH(tW("howUsePushLogin"),2),c=s[0],l=s[1],u=aj().isPhoneMedia,d=eW((function(){return[{value:"howUsePushLogin",label:a},{value:"howBindClient",label:o},{value:"howGetAppLoginUrl",label:i}]}),[a,o,i]),f={howBindClient:y().createElement(JH,null),howGetAppLoginUrl:y().createElement(QH,null),howUsePushLogin:y().createElement(ZH,null)};return y().createElement(US,{title:y().createElement(kH,{defaultValue:"howUsePushLogin",onChange:function(e){var t=d.find((function(t){return t.value===e}));t&&l(t.value)},options:d}),placement:"right",onClose:n,open:t,width:u?"375":"640",closeIcon:y().createElement(GD,{type:"authing-close-line"})},f[c])}// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/BeforeLogin.tsx
|
|
18414
|
+
var rW=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},oW=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},iW=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},aW=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},sW=y().useMemo,cW=y().useRef,lW=y().useState;function uW(e){var t,n=this,r=e.onPushSuccess,o=e.signinByPush,i=e.pushLoginStatus,a=e.setAccount,s=e.agreements,c=aj().isPhoneMedia,l=xu().t,u=uL(),d=nL(),f=hL(),p=iW(iT.useForm(),1)[0],h=iW(lW(!1),2),m=h[0],v=h[1],g=iW(lW(!1),2),b=g[0],w=g[1],C=cW(null),E=sW((function(){var e=new Map;return d.tabMethodsFields.forEach((function(t){e.set(t.key,t)})),e}),[d.tabMethodsFields]),k=iW(lW(!1),2),S=k[0],x=k[1],P=sW((function(){var e,t=(null===(e=d.authingOtpPushTabConfig)||void 0===e?void 0:e.validLoginMethods)||[];
|
|
18415
18415
|
// 登录注册合并
|
|
18416
|
-
return(null==u?void 0:u.autoRegister)?l("login.inputAccount",{text:tZ(t,E,f)}):l("login.inputAccount",{text:tZ(
|
|
18416
|
+
return(null==u?void 0:u.autoRegister)?l("login.inputAccount",{text:tZ(t,E,f)}):l("login.inputAccount",{text:tZ(aW([],iW(t),!1),E,f)});
|
|
18417
18417
|
// 登录注册分页
|
|
18418
|
-
}),[null==u?void 0:u.autoRegister,E,f,null===(t=d.authingOtpPushTabConfig)||void 0===t?void 0:t.validLoginMethods,l]);return y().createElement("div",null,!i&&y().createElement("div",{className:"push-login-error-tips-container"},y().createElement("div",{className:"push-login-error-warning-box"},y().createElement(GD,{type:"authing-error-warning-fill1",className:"icon-push-login-error-warning"}),y().createElement("div",null,l("login.getOtpLoginRequestAgain"))),y().createElement("div",{onClick:e.onchangePushLoginStatus},y().createElement(GD,{type:"authing-close-line",className:"close-line"}))),y().createElement(iT,{onFinish:function(e){return
|
|
18419
|
-
function
|
|
18420
|
-
var
|
|
18421
|
-
var CW
|
|
18418
|
+
}),[null==u?void 0:u.autoRegister,E,f,null===(t=d.authingOtpPushTabConfig)||void 0===t?void 0:t.validLoginMethods,l]);return y().createElement("div",null,!i&&y().createElement("div",{className:"push-login-error-tips-container"},y().createElement("div",{className:"push-login-error-warning-box"},y().createElement(GD,{type:"authing-error-warning-fill1",className:"icon-push-login-error-warning"}),y().createElement("div",null,l("login.getOtpLoginRequestAgain"))),y().createElement("div",{onClick:e.onchangePushLoginStatus},y().createElement(GD,{type:"authing-close-line",className:"close-line"}))),y().createElement(iT,{onFinish:function(e){return rW(n,void 0,void 0,(function(){return oW(this,(function(t){return function(e){rW(n,void 0,void 0,(function(){var t,n,i,c;return oW(this,(function(u){switch(u.label){case 0:return w(!0),(null==s?void 0:s.length)&&!m?(null==C||C.current.onError(),[2/*return*/]):e?[4/*yield*/,o({account:e})]:[2/*return*/,hC.error(l("login.enterAccount"))];case 1:return t=u.sent(),n=t.statusCode,i=t.message,c=t.data,200===n?(a(e),r({pushCodeId:(null==c?void 0:c.pushCodeId)||""})):hC.error(i),[2/*return*/]}}))}))}(e.account),[2/*return*/]}))}))},form:p},y().createElement(iT.Item,{name:"account"},y().createElement(tO,{className:"authing-g2-input",autoComplete:"off",size:"large",autoFocus:!c,placeholder:P,prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}})})),Boolean(null==s?void 0:s.length)&&y().createElement(d$,{agreements:s,showError:b,onChange:v}),y().createElement(iT.Item,{className:"authing-g2-sumbit-form"},y().createElement(yj,{text:l("login.loginText"),htmlType:"submit",ref:C}))),y().createElement("div",{className:"how-use-push-login",onClick:function(){x(!0)}},l("login.howUsePushLogin"),"?"),y().createElement(nW,{visible:S,onClose:function(){x(!1)}}))}// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/PendingLogin.tsx
|
|
18419
|
+
function dW(e){var t=xu().t;return y().createElement(y().Fragment,null,y().createElement("div",{className:"pending-tips"},y().createElement("div",{className:"code-success"},y().createElement(GD,{type:"authing-checkbox-circle-fill"})),y().createElement("div",null,t("login.otpLoginPendingText"))),y().createElement(iT,null,y().createElement(iT.Item,{className:"authing-g2-sumbit-form"},y().createElement(ay,{block:!0,style:{width:"348px",height:"44px",background:"#F2F3F5",borderRadius:"4px",border:"none"},onClick:function(){e.onCancelLogin()}},t("login.authingOtpPushCancelLogin")))))}// CONCATENATED MODULE: ./src/Login/core/withAuthingOtpPush/index.tsx
|
|
18420
|
+
var fW=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},pW=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},hW=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},mW=y().useCallback,vW=y().useEffect,gW=y().useRef,yW=y().useState;function bW(e){var t=this,n=e.onLoginSuccess,r=e.multipleInstance,o=e.agreements,i=hW(yW("before"),2),a=i[0],s=i[1],c=hW(yW(""),2),l=c[0],u=c[1],d=hW(yW(!0),2),f=d[0],p=d[1],h=gW(),m=hW(yW(""),2),v=m[0],g=m[1],b=function(){h.current&&clearInterval(h.current)},w=CJ(),C=w.post,E=w.get,k=nL(),S=mW((function(){b(),s("before")}),[]),x=mW((function(e){void 0===e&&(e=!0),p(e)}),[]),P=mW((function(e){return fW(t,void 0,void 0,(function(){var t,n;return pW(this,(function(r){switch(r.label){case 0:return t=e.pushCodeId,n="/api/v3/check-pushcode-status?pushCodeId=".concat(t),[4/*yield*/,E(n)];case 1:return[2/*return*/,r.sent()]}}))}))}),[E]),_=mW((function(e){return fW(t,void 0,void 0,(function(){var t;return pW(this,(function(n){switch(n.label){case 0:return"/api/v2/users/me/info",t={headers:{"x-authing-userpool-id":k.userPoolId,authorization:"Bearer ".concat(e)}},[4/*yield*/,E("/api/v2/users/me/info",{},t)];case 1:return[2/*return*/,n.sent()]}}))}))}),[E,k.userPoolId]),T=function(){return fW(t,void 0,void 0,(function(){var e,t,o,i,a,s,c,u,d;return pW(this,(function(f){switch(f.label){case 0:return[4/*yield*/,P({pushCodeId:l})];case 1:return e=f.sent(),t=e.statusCode,o=e.data,i=e.message,200!==t?(hC.error(i),S(),[2/*return*/]):"AUTHORIZED"!==o.status?[3/*break*/,3]:(a=o.tokenSet.access_token,b(),[4/*yield*/,_(a)]);case 2:if(s=f.sent(),c=s.code,u=s.data,d=s.message,200===c)return null==r||r.setLoginWay("input",Vs.AuthingOtpPush),n(u,d),[2/*return*/];f.label=3;case 3:return"PUSHED"!==o.status&&(p(!1),S()),[2/*return*/]}}))}))};vW((function(){if(l)return h.current=setInterval(T,1e3),function(){b()}}),[l,P,_,n,S]);var O={before:y().createElement(uW,{defaultAccount:v,setAccount:g,onPushSuccess:function(e){s("pending"),u(e.pushCodeId)},signinByPush:function(e){return fW(t,void 0,void 0,(function(){var t;return pW(this,(function(n){switch(n.label){case 0:return t=e.account,"/api/v3/signin-by-push",[4/*yield*/,C("/api/v3/signin-by-push",{account:t})];case 1:return[2/*return*/,n.sent()]}}))}))},pushLoginStatus:f,onchangePushLoginStatus:x,agreements:o}),pending:y().createElement(dW,{onCancelLogin:S})};return y().createElement("div",null,O[a])}// CONCATENATED MODULE: ./src/Login/index.tsx
|
|
18421
|
+
var wW,CW=function(){return CW=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},CW.apply(this,arguments)},EW=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},kW=y().useEffect,SW=y().useLayoutEffect,xW=y().useState,PW=y().useRef,_W=y().useMemo,TW=y().useCallback,OW=[Vs.Password,Vs.PhoneCode,Vs.AD,Vs.LDAP,Vs.AuthingOtpPush,Vs.EmailCode],NW=[Vs.AppQr,Vs.WxMinQr,Vs.WechatMpQrcode],IW=function(e){return e.length>20?"".concat(e.substring(0,20),"..."):e},AW=function(e){var t,n,r,o,i,a,s,c,l,u=e.isResetPage,d=void 0!==u&&u,f=aL().specifyDefaultLoginMethod,p=uL(),h=oL(),m=lL().changeModule,v=cL(),g=nL(),b=EW(function(e){var t=null==e?void 0:e.defaultLoginMethod,n=null==e?void 0:e.loginMethods;return(null==n?void 0:n.includes(t))||(t=null==n?void 0:n[0]),[t,WV()(n,OW).length>0,WV()(n,NW).length>0]}(p),3),w=b[0],C=b[1],E=b[2],k=null==p?void 0:p.agreementEnabled,S=xu().t,x=EW(xW(f||w),2),P=x[0],_=x[1];lB({currentTab:P,changeTab:_});var T=function(e){var t=h$(),n=fL(),r=n.instance,o=n.referMultipleState,i=n.isMultipleAccount,a=n.multipleAccountData,s=p$((function(n){var r=n.way,o=n.qrCodeId,i=o?r+o:r;t.current=i,e(r)}),[e]);
|
|
18422
18422
|
// 多账号实例
|
|
18423
18423
|
// 没办法了 TODO: 我真的是没办法了... 只有Default方式去硬逻辑加载
|
|
18424
18424
|
return(null==a?void 0:a.qrCodeId)&&(t.current=a.way+(null==a?void 0:a.qrCodeId)),m$((function(){
|
|
18425
18425
|
// 非多账号登录页面 并且存在返回值
|
|
18426
|
-
!i&&a&&s(a)}),[i,a,s]),{isMultipleAccount:i,multipleInstance:r,referMultipleState:o,backfillData:a,defaultQrWay:t.current}}(_),O=T.defaultQrWay,N=T.backfillData,I=T.multipleInstance,A=T.isMultipleAccount,R=T.referMultipleState,M=
|
|
18426
|
+
!i&&a&&s(a)}),[i,a,s]),{isMultipleAccount:i,multipleInstance:r,referMultipleState:o,backfillData:a,defaultQrWay:t.current}}(_),O=T.defaultQrWay,N=T.backfillData,I=T.multipleInstance,A=T.isMultipleAccount,R=T.referMultipleState,M=EW(xW(!1),2),D=M[0],L=M[1],F=zL(),j=null==g?void 0:g.qrcodeTabsSettings,B=EW(xW(0),2),U=B[0],q=B[1],V=EW(xW(!1),2),$=V[0],z=V[1],H=PW({}),W=JD(XD).tenantInstance,G=_W((function(){return[(null==W?void 0:W.isTenantConsole())&&{name:au.t("login.tenant.consoleManage")},(null==W?void 0:W.isTenantSSOLaunchPad())&&{name:S("login.tenant.ssoPad")}].filter(Boolean)}),[S,W]),K=null==p?void 0:p.publicKey,Y=null==p?void 0:p.loginMethods,J=OW.filter((function(e){return null==Y?void 0:Y.includes(e)}))[0],Z=NW.filter((function(e){return null==Y?void 0:Y.includes(e)}))[0],Q=function(e){var t=e.config,n=t.disableResetPwd,r=t.disableRegister,o=e.loginWay,i=e.autoRegister;return o===Vs.PhoneCode&&(n=!0),[Vs.LDAP,Vs.AuthingOtpPush].includes(o)&&(n=!0,r=!0),o===Vs.AD&&(
|
|
18427
18427
|
// TODO P0 需求暂时先取消掉
|
|
18428
18428
|
// disableResetPwd = true
|
|
18429
|
-
r=!0),!0===i&&(r=!0),{disableResetPwd:n,disableRegister:r}}({config:p,loginWay:P,autoRegister:null==p?void 0:p.autoRegister}),X=Q.disableResetPwd,ee=Q.disableRegister,te=
|
|
18430
|
-
return!(e.length>1)&&(!!e.includes(Vs.AppQr)||(!j||!((null==j?void 0:j[Vs.WechatMpQrcode].length)>1||(null==j?void 0:j[Vs.WxMinQr].length)>1)))}),[Y,j]),ne=
|
|
18429
|
+
r=!0),!0===i&&(r=!0),{disableResetPwd:n,disableRegister:r}}({config:p,loginWay:P,autoRegister:null==p?void 0:p.autoRegister}),X=Q.disableResetPwd,ee=Q.disableRegister,te=_W((function(){var e=Y?Y.filter((function(e){return NW.includes(e)})):[];//取到扫码登录类型
|
|
18430
|
+
return!(e.length>1)&&(!!e.includes(Vs.AppQr)||(!j||!((null==j?void 0:j[Vs.WechatMpQrcode].length)>1||(null==j?void 0:j[Vs.WxMinQr].length)>1)))}),[Y,j]),ne=_W((function(){var e,t;
|
|
18431
18431
|
// 如果存在多账号的二维码方式
|
|
18432
|
-
if(O)return O;if([Vs.WechatMpQrcode,Vs.WxMinQr].includes(w)){var n=null===(t=null===(e=null==j?void 0:j[w])||void 0===e?void 0:e.find((function(e){return e.isDefault})))||void 0===t?void 0:t.id;return w+n}return w}),[O,w,j]),re=
|
|
18432
|
+
if(O)return O;if([Vs.WechatMpQrcode,Vs.WxMinQr].includes(w)){var n=null===(t=null===(e=null==j?void 0:j[w])||void 0===e?void 0:e.find((function(e){return e.isDefault})))||void 0===t?void 0:t.id;return w+n}return w}),[O,w,j]),re=TW((function(e,t){var n;null===(n=null==v?void 0:v.onLogin)||void 0===n||n.call(v,e,F)}),[F,v]),oe=TW((function(e,t){var n;H.current=CW(CW({},H.current),((n={})[e]=ZJ(t),n))}),[]);
|
|
18433
18433
|
// 重置用户名页面
|
|
18434
|
-
|
|
18434
|
+
kW((function(){d&&hC.info({content:au.t("common.resetAccount.message"),className:"g2-view-message-info"})}),[d]);var ie=TW((function(e,t,n){var r,o=Az[e];
|
|
18435
18435
|
// TODO 与拦截器中 render-message 同步
|
|
18436
|
-
"message"===(null==o?void 0:o.action)&&q(U+1),"accountLock"===(null==o?void 0:o.action)&&z(!0),null===(r=null==v?void 0:v.onLoginError)||void 0===r||r.call(v,{code:e,data:t,message:n})}),[U,v]),ae=
|
|
18436
|
+
"message"===(null==o?void 0:o.action)&&q(U+1),"accountLock"===(null==o?void 0:o.action)&&z(!0),null===(r=null==v?void 0:v.onLoginError)||void 0===r||r.call(v,{code:e,data:t,message:n})}),[U,v]),ae=TW((function(e){var t;return(null==v?void 0:v.onBeforeLogin)?null===(t=null==v?void 0:v.onBeforeLogin)||void 0===t?void 0:t.call(v,e,F):function(){}}),[F,v]);kW((function(){NW.includes(P)?L(!0):L(!1);
|
|
18437
18437
|
// 可以设定 = fasle 的时候关闭 qrcode 的几个定时器
|
|
18438
18438
|
// 不关的话,第二次进入会更快,也没什么代价(只有轮询)
|
|
18439
|
-
}),[P]);var se=function(e){var t=au.t("login.scanLogin");return
|
|
18439
|
+
}),[P]);var se=function(e){var t=au.t("login.scanLogin");return NW.includes(e)&&(t=au.t("login.moreWays")),{switchText:t,inputNone:OW.includes(e)?"":"none",qrcodeNone:NW.includes(e)?"":"none"}}(P),ce=se.switchText,le=se.inputNone,ue=se.qrcodeNone,de=_W((function(){var e,t;return k&&null!==(t=null===(e=null==p?void 0:p.agreements)||void 0===e?void 0:e.filter((function(e){return ad(au.language).find((function(t){return t.includes(e.lang)}))&&((null==p?void 0:p.autoRegister)||!!(null==e?void 0:e.availableAt))})))&&void 0!==t?t:[]}),[k,null==p?void 0:p.autoRegister,null==p?void 0:p.agreements,au.language]),fe=_W((function(){var e,t;return null!==(t=null===(e=null==g?void 0:g.verifyCodeTabConfig)||void 0===e?void 0:e.enabledLoginMethods)&&void 0!==t?t:["phone-code"]}),[null===(t=null==g?void 0:g.verifyCodeTabConfig)||void 0===t?void 0:t.enabledLoginMethods]),pe=EW(cj({config:p,publicConfig:g}),3),he=pe[0],me=pe[1],ve=pe[2],ge=!(null===(n=null==p?void 0:p.loginMethods)||void 0===n?void 0:n.length),ye=aj().isPhoneMedia;
|
|
18440
18440
|
//availableAt 0或者null-注册时,1-登录时,2-注册和登录时 注册登录合并时应该登录注册协议全部显示
|
|
18441
18441
|
// 渲染前执行
|
|
18442
|
-
|
|
18442
|
+
SW((function(){var e;if(ge&&!ye){
|
|
18443
18443
|
// 无表单登录方式,且不是手机端
|
|
18444
|
-
var t=null===(e=
|
|
18444
|
+
var t=null===(e=CH().getElementsByClassName("g2-view-container"))||void 0===e?void 0:e[0];
|
|
18445
18445
|
// pc 下
|
|
18446
18446
|
if(t)
|
|
18447
18447
|
// @ts-ignore
|
|
18448
18448
|
return t.style["min-height"]=ve?"456px":"280px",t.classList.add("no-login-methods-view"),function(){
|
|
18449
18449
|
// @ts-ignore
|
|
18450
|
-
t.style["min-height"]="540px",t.classList.remove("no-login-methods-view")}}}),[ve,ye,ge]),
|
|
18450
|
+
t.style["min-height"]="540px",t.classList.remove("no-login-methods-view")}}}),[ve,ye,ge]),kW((function(){var e,t=CH(),n=null===(e=t.getElementsByClassName("g2-view-header"))||void 0===e?void 0:e[0],r=t.querySelector(".g2-view-login>.g2-view-container-inner");return ye&&ge?(n&&n.classList.add("g2-view-header-mobile"),r&&r.classList.add("g2-view-login-mobile-inner")):(null==n||n.classList.remove("g2-view-header-mobile"),null==r||r.classList.remove("g2-view-login-mobile-inner")),function(){null==n||n.classList.remove("g2-view-header-mobile"),null==r||r.classList.remove("g2-view-login-mobile-inner")}}),[ye,ge]);
|
|
18451
18451
|
// 获取登录 tab 多语言
|
|
18452
|
-
var be=(null===(r=null==g?void 0:g.ssoPageComponentDisplay)||void 0===r?void 0:r.loginMethodsI18nDisplaySettings)||{},we=be.password,Ce=be.verifyCode,Ee=be.ad,ke=be.ldap,Se=
|
|
18452
|
+
var be=(null===(r=null==g?void 0:g.ssoPageComponentDisplay)||void 0===r?void 0:r.loginMethodsI18nDisplaySettings)||{},we=be.password,Ce=be.verifyCode,Ee=be.ad,ke=be.ldap,Se=_W((function(){var e,t,n,r;return(null==Y?void 0:Y.includes(Vs.Password))&&y().createElement(ER.TabPane,{key:Vs.Password,tab:IW((null===(t=null===(e=null==we?void 0:we.tab)||void 0===e?void 0:e.i18n)||void 0===t?void 0:t[au.language])||(null===(n=null==we?void 0:we.tab)||void 0===n?void 0:n.default)||S("login.pwdLogin"))},y().createElement(_$,{loginWay:P,publicKey:K,autoRegister:null==p?void 0:p.autoRegister,host:null==p?void 0:p.host,
|
|
18453
18453
|
// onLogin={onLogin}
|
|
18454
|
-
backfillData:N,onLoginSuccess:re,onLoginFailed:ie,onBeforeLogin:ae,saveIdentify:oe,passwordLoginMethods:null!==(r=null==p?void 0:p.passwordLoginMethods)&&void 0!==r?r:[],agreements:de,multipleInstance:I}))}),[de,Y,I,N,p,K,P,ae,oe,ie,re,S,we]),xe=
|
|
18454
|
+
backfillData:N,onLoginSuccess:re,onLoginFailed:ie,onBeforeLogin:ae,saveIdentify:oe,passwordLoginMethods:null!==(r=null==p?void 0:p.passwordLoginMethods)&&void 0!==r?r:[],agreements:de,multipleInstance:I}))}),[de,Y,I,N,p,K,P,ae,oe,ie,re,S,we]),xe=_W((function(){var e,t,n,r,o,i,a,s;if(!(null==Y?void 0:Y.includes(Vs.PhoneCode)))return y().createElement(y().Fragment,null);
|
|
18455
18455
|
// 是否开启了国际化短信功能
|
|
18456
18456
|
var c=[];
|
|
18457
18457
|
// 开启国际化短信时要将短信和邮箱 tab 拆分,方便下拉选取手机区号
|
|
18458
18458
|
return(null===(e=null==g?void 0:g.internationalSmsConfig)||void 0===e?void 0:e.enabled)||!1?((null===(n=null===(t=g.verifyCodeTabConfig)||void 0===t?void 0:t.enabledLoginMethods)||void 0===n?void 0:n.includes("phone-code"))&&c.push(y().createElement(ER.TabPane,{key:Vs.PhoneCode,
|
|
18459
18459
|
// TODO 需要适配控制台的配置
|
|
18460
|
-
tab:
|
|
18460
|
+
tab:IW(S("common.phoneCodeTab"))},y().createElement(wH,{verifyCodeLength:null==g?void 0:g.verifyCodeLength,autoRegister:null==p?void 0:p.autoRegister,onBeforeLogin:ae,
|
|
18461
18461
|
// onLogin={onLogin}
|
|
18462
18462
|
onLoginSuccess:re,onLoginFailed:ie,saveIdentify:oe,agreements:de,methods:fe,backfillData:N,multipleInstance:I,specifyCodeMethod:Cz.Phone}))),(null===(o=null===(r=g.verifyCodeTabConfig)||void 0===r?void 0:r.enabledLoginMethods)||void 0===o?void 0:o.includes("email-code"))&&c.push(y().createElement(ER.TabPane,{key:Vs.EmailCode,
|
|
18463
18463
|
// TODO 需要适配控制台的配置
|
|
18464
|
-
tab:
|
|
18464
|
+
tab:IW(S("common.emailCodeTab"))},y().createElement(wH,{verifyCodeLength:null==g?void 0:g.verifyCodeLength,autoRegister:null==p?void 0:p.autoRegister,onBeforeLogin:ae,
|
|
18465
18465
|
// onLogin={onLogin}
|
|
18466
|
-
onLoginSuccess:re,onLoginFailed:ie,saveIdentify:oe,agreements:de,methods:fe,backfillData:N,multipleInstance:I,specifyCodeMethod:Cz.Email}))),c):y().createElement(ER.TabPane,{key:Vs.PhoneCode,tab:
|
|
18466
|
+
onLoginSuccess:re,onLoginFailed:ie,saveIdentify:oe,agreements:de,methods:fe,backfillData:N,multipleInstance:I,specifyCodeMethod:Cz.Email}))),c):y().createElement(ER.TabPane,{key:Vs.PhoneCode,tab:IW((null===(a=null===(i=null==Ce?void 0:Ce.tab)||void 0===i?void 0:i.i18n)||void 0===a?void 0:a[au.language])||(null===(s=null==Ce?void 0:Ce.tab)||void 0===s?void 0:s.default)||S("common.verifyCodeLogin"))},y().createElement(wH,{verifyCodeLength:null==g?void 0:g.verifyCodeLength,autoRegister:null==p?void 0:p.autoRegister,onBeforeLogin:ae,
|
|
18467
18467
|
// onLogin={onLogin}
|
|
18468
|
-
onLoginSuccess:re,onLoginFailed:ie,saveIdentify:oe,agreements:de,methods:fe,backfillData:N,multipleInstance:I}))}),[Y,null===(o=null==g?void 0:g.internationalSmsConfig)||void 0===o?void 0:o.enabled,null===(i=g.verifyCodeTabConfig)||void 0===i?void 0:i.enabledLoginMethods,null==g?void 0:g.verifyCodeLength,S,null==p?void 0:p.autoRegister,ae,re,ie,oe,de,fe,N,I,null===(a=null==Ce?void 0:Ce.tab)||void 0===a?void 0:a.i18n,null===(s=null==Ce?void 0:Ce.tab)||void 0===s?void 0:s.default]),Pe=
|
|
18468
|
+
onLoginSuccess:re,onLoginFailed:ie,saveIdentify:oe,agreements:de,methods:fe,backfillData:N,multipleInstance:I}))}),[Y,null===(o=null==g?void 0:g.internationalSmsConfig)||void 0===o?void 0:o.enabled,null===(i=g.verifyCodeTabConfig)||void 0===i?void 0:i.enabledLoginMethods,null==g?void 0:g.verifyCodeLength,S,null==p?void 0:p.autoRegister,ae,re,ie,oe,de,fe,N,I,null===(a=null==Ce?void 0:Ce.tab)||void 0===a?void 0:a.i18n,null===(s=null==Ce?void 0:Ce.tab)||void 0===s?void 0:s.default]),Pe=_W((function(){var e,t,n;return(null==Y?void 0:Y.includes(Vs.LDAP))&&y().createElement(ER.TabPane,{key:Vs.LDAP,tab:IW((null===(t=null===(e=null==ke?void 0:ke.tab)||void 0===e?void 0:e.i18n)||void 0===t?void 0:t[au.language])||(null===(n=null==ke?void 0:ke.tab)||void 0===n?void 0:n.default)||S("login.ldapLogin"))},y().createElement(R$,{publicKey:K,autoRegister:null==p?void 0:p.autoRegister,host:null==p?void 0:p.host,
|
|
18469
18469
|
// onLogin={onLogin}
|
|
18470
|
-
onLoginSuccess:re,onLoginFailed:ie,onBeforeLogin:ae,agreements:de,backfillData:N,multipleInstance:I}))}),[de,N,null==p?void 0:p.autoRegister,null==p?void 0:p.host,I,ae,ie,re,K,Y,S,ke]),_e=
|
|
18470
|
+
onLoginSuccess:re,onLoginFailed:ie,onBeforeLogin:ae,agreements:de,backfillData:N,multipleInstance:I}))}),[de,N,null==p?void 0:p.autoRegister,null==p?void 0:p.host,I,ae,ie,re,K,Y,S,ke]),_e=_W((function(){var e,t,n;return(null==Y?void 0:Y.includes(Vs.AD))&&y().createElement(ER.TabPane,{key:Vs.AD,tab:IW((null===(t=null===(e=null==Ee?void 0:Ee.tab)||void 0===e?void 0:e.i18n)||void 0===t?void 0:t[au.language])||(null===(n=null==Ee?void 0:Ee.tab)||void 0===n?void 0:n.default)||S("login.adLogin"))},y().createElement(U$,{backfillData:N,multipleInstance:I,publicKey:K,autoRegister:null==p?void 0:p.autoRegister,
|
|
18471
18471
|
// onLogin={onLogin}
|
|
18472
|
-
onLoginSuccess:re,onLoginFailed:ie,onBeforeLogin:ae,agreements:de}))}),[de,N,null==p?void 0:p.autoRegister,I,ae,ie,re,K,Y,S,Ee]),Te=
|
|
18472
|
+
onLoginSuccess:re,onLoginFailed:ie,onBeforeLogin:ae,agreements:de}))}),[de,N,null==p?void 0:p.autoRegister,I,ae,ie,re,K,Y,S,Ee]),Te=TW((function(e){var t;return y().createElement(ER.TabPane,{key:Vs.WxMinQr+e.id,tab:null!==(t=e.title)&&void 0!==t?t:S("login.scanLogin")},y().createElement(Tz,{id:e.id,multipleInstance:I,onLoginSuccess:re,canLoop:D,qrCodeScanOptions:{extIdpConnId:e.id}}))}),[D,I,re,S]),Oe=TW((function(){return y().createElement(ER.TabPane,{key:Vs.AppQr,tab:S("login.appScanLogin")},y().createElement(xz,{multipleInstance:I,onLoginSuccess:re,canLoop:D}))}),[D,I,re,S]),Ne=TW((function(e){var t;return y().createElement(ER.TabPane,{key:Vs.WechatMpQrcode+e.id,tab:null!==(t=e.title)&&void 0!==t?t:S("login.wechatmpQrcode")},y().createElement(Iz,{id:e.id,multipleInstance:I,onLoginSuccess:re,canLoop:D,qrCodeScanOptions:{extIdpConnId:e.id}}))}),[D,I,re,S]),Ie=_W((function(){return(null==Y?void 0:Y.includes(Vs.AuthingOtpPush))&&y().createElement(ER.TabPane,{key:Vs.AuthingOtpPush,tab:S("login.authingOtpPushLogin")},y().createElement(bW,{onLoginSuccess:re,multipleInstance:I,initData:N,agreements:de}))}),[Y,re,S,N,I,de]),Ae=_W((function(){var e;return(e={})[Vs.Password]=Se,e[Vs.PhoneCode]=xe,e[Vs.LDAP]=Pe,e[Vs.AD]=_e,e[Vs.AuthingOtpPush]=Ie,e}),[Se,xe,Pe,_e,Ie]),Re=_W((function(){var e,t=null==Y?void 0:Y.filter((function(e){return[Vs.Password,Vs.PhoneCode,Vs.LDAP,Vs.AD,Vs.AuthingOtpPush].includes(e)}));return t?nZ(t,null!==(e=p.defaultLoginMethod)&&void 0!==e?e:"").map((function(e){return Ae[e]})):null}),[p.defaultLoginMethod,Y,Ae]),Me=_W((function(){var e;return(e={})[Vs.AppQr]=Oe,e[Vs.WechatMpQrcode]=Ne,e[Vs.WxMinQr]=Te,e}),[Oe,Ne,Te]),De=_W((function(){var e,t={};Object.keys(j).forEach((function(e){j[e].forEach((function(n){t[n.id]={type:e,title:n.title,id:n.id}}))}));var n=(null===(e=g.qrCodeSortConfig)||void 0===e?void 0:e.loginMethodsSort)||[],r=(n||[]).map((function(e){var n;return{key:e,type:(null===(n=t[e])||void 0===n?void 0:n.type)||Vs.AppQr}})),o=null==r?void 0:r.findIndex((function(e){return e.type===w}));if(o>0){var i=n.splice(o,1);n.unshift(i[0])}return(n||[]).map((function(e){var n;return t[e]?null===(n=Me[t[e].type])||void 0===n?void 0:n.call(Me,t[e]):Me[Vs.AppQr]()}))}),[Me,j,null===(c=g.qrCodeSortConfig)||void 0===c?void 0:c.loginMethodsSort,w]);return y().createElement("div",{className:"g2-view-container g2-view-login"},y().createElement("div",{className:"g2-view-container-inner"},ve?y().createElement(y().Fragment,null,y().createElement("div",{className:"g2-view-header"},y().createElement("img",{src:null==p?void 0:p.logo,alt:"",className:"icon"}),y().createElement("div",{className:"title"},null==p?void 0:p.title),!!(null==g?void 0:g.welcomeMessage)&&y().createElement("div",{className:"title-description"},null==g?void 0:g.welcomeMessage[au.language])),y().createElement("div",{className:"no-login-methods-view"},y().createElement(GD,{type:"authing-bianzu",style:{width:178,height:120}}),y().createElement("span",{className:"no-login-methods-desc"},S("login.noLoginMethodsDesc")))):y().createElement(y().Fragment,null,!A&&C&&E&&y().createElement("div",{className:"g2-qrcode-switch"},y().createElement(pv,{placement:"leftTop",content:ce,overlayClassName:ce===au.t("login.moreWays")?"long-switch-text":"switch-text",getPopupContainer:function(e){return e?e.parentElement:document.body}},y().createElement("div",{className:"switch-img",onClick:function(){hC.destroy(),OW.includes(P)?_(Z):NW.includes(P)&&_(J)}},y().createElement("div",{className:"imgae-mask"}),y().createElement(GD,{type:"authing-a-erweima22",className:"qrcode-switch-image ".concat(le)}),y().createElement(GD,{type:"authing-diannao",className:"qrcode-switch-image ".concat(ue)})))),y().createElement("div",{className:"g2-view-header"},y().createElement("img",{src:null==p?void 0:p.logo,alt:"",className:"icon"}),y().createElement("div",{className:"title"},A?S("login.selectLoginAccount"):null==p?void 0:p.title),!!(null==g?void 0:g.welcomeMessage)&&y().createElement("div",{className:"title-description"},null==g?void 0:g.welcomeMessage[au.language]),null===(l=null==G?void 0:G.map)||void 0===l?void 0:l.call(G,(function(e,t){
|
|
18473
18473
|
// @ts-ignore
|
|
18474
|
-
return y().createElement(mE,{className:"authing-header-tag",style:{color:null==e?void 0:e.color,backgroundColor:null==e?void 0:e.backgroundColor},key:t},e.name)}))),A?y().createElement(
|
|
18474
|
+
return y().createElement(mE,{className:"authing-header-tag",style:{color:null==e?void 0:e.color,backgroundColor:null==e?void 0:e.backgroundColor},key:t},e.name)}))),A?y().createElement(Yz,{multipleInstance:I,referMultipleState:R,changeModule:m}):y().createElement(y().Fragment,null,C&&y().createElement("div",{className:le},d?y().createElement(oH,null):y().createElement("div",{className:"g2-view-tabs"},y().createElement(ER,{destroyInactiveTabPane:!0,onChange:function(e){var t;_(e),hC.destroy(),null===(t=null==v?void 0:v.onLoginTabChange)||void 0===t||t.call(v,e)},activeKey:P},null==Re?void 0:Re.flat())),y().createElement("div",{className:"g2-tips-line"},!X&&!d&&y().createElement("div",null,y().createElement(dj,{type:"link",className:"link-like forget-password-link",onClick:function(){return null==m?void 0:m(AL.FORGET_PWD,{})}},S("login.forgetPwd")),(U>=2||$)&&y().createElement("span",{style:{margin:"0 4px",color:"#EAEBEE"}},"丨")),d&&y().createElement(dj,{type:"link",onClick:function(){null==m||m(AL.LOGIN)}},S("common.backLoginPage")),(U>=2||$)&&y().createElement(lv,{title:S("common.feedback")},y().createElement("div",{className:"touch-tip question-feedback",onClick:function(){return null==m?void 0:m(AL.ANY_QUESTIONS,{identify:H.current[P]})}},y().createElement(GD,{type:"authing-a-question-line1",style:{fontSize:16}}))),!ee&&y().createElement("span",{className:"go-to-register"},y().createElement(dj,{type:"link",className:"link-like register-link",onClick:function(){return null==m?void 0:m(AL.REGISTER,{})}},S("common.registerImmediate"))))),E&&y().createElement("div",{className:"g2-view-tabs ".concat(ue," ").concat(te&&"hidden")},y().createElement(ER,{destroyInactiveTabPane:!0,defaultActiveKey:ne,onChange:function(e){var t;hC.destroy(),null===(t=null==v?void 0:v.onLoginTabChange)||void 0===t||t.call(v,e)}},De))),y().createElement("div",{className:"g2-social-login"},y().createElement(Uz,{appId:h,config:p,multipleInstance:I,
|
|
18475
18475
|
// onLogin={onLogin}
|
|
18476
|
-
onLoginSuccess:re,onLoginFailed:ie,socialConnectionObjs:he,enterpriseConnectionObjs:me})))),y().createElement(bL,{langRange:null==p?void 0:p.langRange,onLangChange:null==v?void 0:v.onLangChange}))},
|
|
18476
|
+
onLoginSuccess:re,onLoginFailed:ie,socialConnectionObjs:he,enterpriseConnectionObjs:me})))),y().createElement(bL,{langRange:null==p?void 0:p.langRange,onLangChange:null==v?void 0:v.onLangChange}))},RW=function(){return RW=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RW.apply(this,arguments)},MW=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},DW=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e.VerifyEmail="verify-email",e.VerifySms="verify-sms",e.VerifyTotp="verify-totp",e.VerifyFace="verify-face",e.AssociateFace="associate-face"}(wW||(wW={}));var LW=function(e,t){return MW(void 0,void 0,void 0,(function(){return DW(this,(function(n){switch(n.label){case 0:return[4/*yield*/,(0,wJ().authFlow)(e,RW({},t))];case 1:return[2/*return*/,n.sent()]}}))}))},FW=function(){var e,t=dL();return(e={})[wW.VerifyEmail]=function(e){return t?LW(wW.VerifyEmail,e):function(e){return MW(void 0,void 0,void 0,(function(){var t,n,r;return DW(this,(function(o){switch(o.label){case 0:return t=e.email,n=e.code,r=e.mfaToken,[4/*yield*/,(0,wJ().post)("/api/v2/applications/mfa/email/verify",{email:t,code:n},{headers:{authorization:"Bearer ".concat(r)}})];case 1:return[2/*return*/,o.sent()]}}))}))}(e)},e[wW.VerifySms]=function(e){return t?LW(wW.VerifySms,e):function(e){return MW(void 0,void 0,void 0,(function(){var t,n,r,o;return DW(this,(function(i){switch(i.label){case 0:return t=e.phone,n=e.code,r=e.mfaToken,o=e.phoneCountryCode,[4/*yield*/,(0,wJ().post)("/api/v2/applications/mfa/sms/verify",{phone:t,code:n,phoneCountryCode:o},{headers:{authorization:"Bearer ".concat(r)}})];case 1:return[2/*return*/,i.sent()]}}))}))}(e)},e[wW.VerifyTotp]=function(e){return t?LW(wW.VerifyTotp,e):function(e){return MW(void 0,void 0,void 0,(function(){var t,n;return DW(this,(function(r){switch(r.label){case 0:return t=e.totp,n=e.mfaToken,[4/*yield*/,(0,wJ().post)("/api/v2/applications/mfa/totp/verify",{totp:t},{headers:{authorization:"Bearer ".concat(n)}})];case 1:return[2/*return*/,r.sent()]}}))}))}(e)},e[wW.VerifyFace]=function(e){return t?LW(wW.VerifyFace,e):function(e){return MW(void 0,void 0,void 0,(function(){var t,n;return DW(this,(function(r){switch(r.label){case 0:return t=e.photo,n=e.mfaToken,[4/*yield*/,(0,wJ().post)("/api/v2/applications/mfa/face/verify",{photo:t},{headers:{authorization:"Bearer ".concat(n)}})];case 1:return[2/*return*/,r.sent()]}}))}))}(e)},e[wW.AssociateFace]=function(e){return t?LW(wW.AssociateFace,e):function(e){return MW(void 0,void 0,void 0,(function(){var t,n,r,o;return DW(this,(function(i){switch(i.label){case 0:return t=e.photoA,n=e.photoB,r=e.isExternalPhoto,o=e.mfaToken,[4/*yield*/,(0,wJ().post)("/api/v2/mfa/face/associate",{photoA:t,photoB:n,isExternalPhoto:r},{headers:{authorization:"Bearer ".concat(o)}})];case 1:return[2/*return*/,i.sent()]}}))}))}(e)},e};
|
|
18477
|
+
/* harmony default export */const jW=function(e){(0,g.useEffect)(e,[])};// CONCATENATED MODULE: ./src/MFA/core/email.tsx
|
|
18478
|
+
var BW,UW,qW=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},VW=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},$W=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},zW=y().useRef,HW=y().useState,WW=function(e){e.mfaToken;var t=e.onBind,n=(e.config,zW(null)),r=xu().t,o=$W(iT.useForm(),1)[0];return y().createElement(y().Fragment,null,y().createElement("p",{className:"authing-g2-mfa-title"},r("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},r("common.bindEmailDoc")),y().createElement(iT,{form:o,onSubmitCapture:function(){return n.current.onSpin(!0)},onFinish:function(e){var r=e.email;return qW(void 0,void 0,void 0,(function(){var e,i;return VW(this,(function(a){switch(a.label){case 0:return[4/*yield*/,o.validateFields()];case 1:a.sent(),null===(i=n.current)||void 0===i||i.onSpin(!1);try{t(r)}catch(t){e=JSON.parse(null==t?void 0:t.message),n.current.onError(),hC.error(e.message)}return[2/*return*/]}}))}))},onFinishFailed:function(){return n.current.onError()}},y().createElement(jB.Email,{className:"authing-g2-input-form",name:"email",form:o,
|
|
18477
18479
|
// checkRepeat={true}
|
|
18478
|
-
required:!0},y().createElement(tO,{className:"authing-g2-input",autoComplete:"off",size:"large",placeholder:r("login.inputEmail"),prefix:y().createElement(GD,{type:"authing-a-mail-line3",style:{color:"#878A95"}})})),y().createElement(yj,{text:r("common.sure"),ref:n})))},GW=function(e){var t=e.email,n=e.mfaToken,r=e.onVerify,o=e.sendCodeRef,i=e.codeLength,a=wJ().post,s=
|
|
18480
|
+
required:!0},y().createElement(tO,{className:"authing-g2-input",autoComplete:"off",size:"large",placeholder:r("login.inputEmail"),prefix:y().createElement(GD,{type:"authing-a-mail-line3",style:{color:"#878A95"}})})),y().createElement(yj,{text:r("common.sure"),ref:n})))},GW=function(e){var t=e.email,n=e.mfaToken,r=e.onVerify,o=e.sendCodeRef,i=e.codeLength,a=wJ().post,s=FW()[wW.VerifyEmail],c=zW(null),l=xu().t,u=$W(iT.useForm(),1)[0],d=$W(HW(!1),2),f=d[0],p=d[1];jW((function(){var e;null===(e=o.current)||void 0===e||e.click()}));var h=function(e){return qW(void 0,void 0,void 0,(function(){var e,o,i,a,l,d,f,p,h;return VW(this,(function(m){switch(m.label){case 0:return null===(f=c.current)||void 0===f||f.onSpin(!0),e=u.getFieldValue("mfaCode"),o={mfaToken:n,email:t,code:e.join("")},[4/*yield*/,s(o)];case 1:return i=m.sent(),a=i.isFlowEnd,l=i.data,d=i.onGuardHandling,null===(p=c.current)||void 0===p||p.onSpin(!1),a?r(200,l):(null===(h=c.current)||void 0===h||h.onError(),null==d||d()),[2/*return*/]}}))}))};return y().createElement(y().Fragment,null,y().createElement("p",{className:"authing-g2-mfa-title"},l("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},f?"".concat(l("login.verifyCodeSended")," ").concat(WJ(t)):l("common.emailMfaCheck")),y().createElement(iT,{form:u,onFinish:h,onFinishFailed:function(){var e;return null===(e=c.current)||void 0===e?void 0:e.onError()}},y().createElement(Uj,{codeLength:i,ruleKeyword:l("common.captchaCode")},y().createElement(Jj,{length:i,onFinish:h})),y().createElement(mU,{btnRef:o,setSent:p,beforeSend:function(){return qW(void 0,void 0,void 0,(function(){var e,n,r,o,i;return VW(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4/*yield*/,a("/api/v2/email/send",{email:t,scene:Oc.MFA_VERIFY_CODE})];case 1:return e=s.sent(),n=e.code,r=e.message,2080===e.apiCode?(
|
|
18479
18481
|
// 一分钟只能发一次邮箱验证码的提示信息,特殊处理
|
|
18480
18482
|
hC.error(r),[2/*return*/,!1]):200===n?(p(!0),[2/*return*/,!0]):(hC.error(l("login.sendCodeTimeout")),[2/*return*/,!1]);case 2:return"ECONNABORTED"===(o=s.sent()).code?(hC.error(l("login.sendCodeTimeout")),[2/*return*/,!1]):(i=JSON.parse(o.message),hC.error(i.message),[2/*return*/,!1]);case 3:return[2/*return*/]}}))}))},type:"link"}),y().createElement(yj,{text:l("common.sure"),ref:c,className:"g2-mfa-submit-button"})))},KW=function(e){var t=e.email,n=e.mfaToken,r=e.mfaLogin,o=e.config,i=$W(HW(t),2),a=i[0],s=i[1],c=zW(null),l=nL(),u=null==l?void 0:l.verifyCodeLength;return y().createElement(y().Fragment,null,a?y().createElement(GW,{mfaToken:n,email:a,onVerify:function(e,t){r(e,t)},sendCodeRef:c,codeLength:null!=u?u:4}):y().createElement(WW,{config:o,mfaToken:n,onBind:function(e){var t;s(e),null===(t=c.current)||void 0===t||t.click()}}))},YW=function(){return YW=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YW.apply(this,arguments)},JW=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ZW=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},QW=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},XW=y().useCallback,eG=y().useMemo,tG=y().useRef,nG=y().useState,rG=function(e){e.mfaToken;var t=e.onBind,n=(e.config,e.areaCode),r=e.setAreaCode,o=e.isInternationSms,i=tG(null),a=xu().t,s=QW(iT.useForm(),1)[0],c=XW((function(e){return o?y().createElement(xq,YW({},e,{className:"authing-g2-input",size:"large",areaCode:n,onAreaCodeChange:function(e){r(e),s.getFieldValue(["phone"])&&s.validateFields(["phone"])},maxLength:20})):y().createElement(EU,YW({},e,{className:"authing-g2-input",autoComplete:"off",size:"large",placeholder:a("login.inputPhone"),prefix:y().createElement(GD,{type:"authing-a-smartphone-line1",style:{color:"#878A95"}}),maxLength:20}))}),[n,s,o,r,a]);return y().createElement(y().Fragment,null,y().createElement("h3",{className:"authing-g2-mfa-title"},a("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},a("login.bindPhoneInfo")),y().createElement(iT,{form:s,onSubmitCapture:function(){return i.current.onSpin(!0)},onFinish:function(e){var n=e.phone;return JW(void 0,void 0,void 0,(function(){var e,r;return ZW(this,(function(o){switch(o.label){case 0:return[4/*yield*/,s.validateFields()];case 1:o.sent(),null===(e=i.current)||void 0===e||e.onSpin(!1);try{t(n)}catch(e){
|
|
18481
18483
|
// do nothing
|
|
18482
18484
|
null===(r=i.current)||void 0===r||r.onError()}return[2/*return*/]}}))}))},onFinishFailed:function(){return i.current.onError()}},y().createElement(jB.Phone,{className:o?"authing-g2-input-form remove-padding":"authing-g2-input-form",name:"phone",form:s,
|
|
18483
18485
|
// checkRepeat={true}
|
|
18484
|
-
required:!0,areaCode:n},y().createElement(c,null)),y().createElement(yj,{text:a("common.sure"),ref:i})))},oG=function(e){var t=e.mfaToken,n=e.phone,r=e.userPhone,o=e.onVerify,i=e.sendCodeRef,a=e.codeLength,s=void 0===a?4:a,c=e.areaCode,l=e.phoneCountryCode,u=e.isInternationSms,d=zL(),f=tG(null),p=xu().t,h=QW(iT.useForm(),1)[0],m=QW(nG(!1),2),v=m[0],g=m[1],b=sj(u,n,c),w=b.phoneNumber,C=b.countryCode
|
|
18486
|
+
required:!0,areaCode:n},y().createElement(c,null)),y().createElement(yj,{text:a("common.sure"),ref:i})))},oG=function(e){var t=e.mfaToken,n=e.phone,r=e.userPhone,o=e.onVerify,i=e.sendCodeRef,a=e.codeLength,s=void 0===a?4:a,c=e.areaCode,l=e.phoneCountryCode,u=e.isInternationSms,d=zL(),f=tG(null),p=xu().t,h=QW(iT.useForm(),1)[0],m=QW(nG(!1),2),v=m[0],g=m[1],b=sj(u,n,c),w=b.phoneNumber,C=b.countryCode;jW((function(){var e;null===(e=i.current)||void 0===e||e.click()}));var E=FW()[wW.VerifySms],k=function(e){return JW(void 0,void 0,void 0,(function(){var e,r,i,a,s,c,u,d;return ZW(this,(function(p){switch(p.label){case 0:return null===(u=f.current)||void 0===u||u.onSpin(!0),e=h.getFieldValue("mfaCode"),r={mfaToken:t,phone:n,code:e.join(""),phoneCountryCode:l||C},[4/*yield*/,E(r)];case 1:return i=p.sent(),a=i.isFlowEnd,s=i.data,c=i.onGuardHandling,null===(d=f.current)||void 0===d||d.onSpin(!1),a?o(200,s):(f.current.onError(),null==c||c()),[2/*return*/]}}))}))},S=eG((function(){return v?"".concat(p("login.verifyCodeSended")," ").concat(u?l||C:""," ").concat(GJ(n)):p("common.SmsMfaCheck")}),[C,u,n,l,v,p]);return y().createElement(y().Fragment,null,y().createElement("h3",{className:"authing-g2-mfa-title"},p("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},S),y().createElement(iT,{form:h,onFinish:k,onFinishFailed:function(){return f.current.onError()}},y().createElement(Uj,{codeLength:s,ruleKeyword:p("common.captchaCode")},y().createElement(Jj,{length:s,onFinish:k})),y().createElement(mU,{btnRef:i,beforeSend:function(){return JW(void 0,void 0,void 0,(function(){var e,t;return ZW(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4/*yield*/,d.sendSmsCode(r||w,l||C,Ni.SCENE_TYPE_MFA_VERIFY)];case 1:return n.sent(),[2/*return*/,!0];case 2:return"ECONNABORTED"===(e=n.sent()).code?(hC.error(p("login.sendCodeTimeout")),[2/*return*/,!1]):(t=JSON.parse(e.message),hC.error(t.message),[2/*return*/,!1]);case 3:return[2/*return*/]}}))}))},type:"link",setSent:g}),y().createElement(yj,{text:p("common.sure"),ref:f,className:"g2-mfa-submit-button"})))},iG=function(e){var t,n,r=e.mfaLogin,o=e.config,i=e.initData,a=i.mfaPhone,s=i.mfaToken,c=i.mfaPhoneCountryCode,l=QW(nG(a),2),u=l[0],d=l[1],f=tG(null),p=nL(),h=null==p?void 0:p.verifyCodeLength,m=QW(nG((null===(t=null==p?void 0:p.internationalSmsConfig)||void 0===t?void 0:t.defaultISOType)||"CN"),2),v=m[0],g=m[1],b=Boolean(null===(n=null==p?void 0:p.internationalSmsConfig)||void 0===n?void 0:n.enabled);
|
|
18485
18487
|
// todo 后续改 不用 phone 作为判断模式
|
|
18486
|
-
return y().createElement(y().Fragment,null,u?y().createElement(oG,{mfaToken:s,phone:u,userPhone:a,phoneCountryCode:c,isInternationSms:b,onVerify:function(e,t){r(e,t)},codeLength:null!=h?h:4,sendCodeRef:f,areaCode:v}):y().createElement(rG,{config:o,mfaToken:s,areaCode:v,setAreaCode:g,isInternationSms:b,onBind:function(e){var t;d(e),null===(t=f.current)||void 0===t||t.click()}}))},aG=function(){if(
|
|
18488
|
+
return y().createElement(y().Fragment,null,u?y().createElement(oG,{mfaToken:s,phone:u,userPhone:a,phoneCountryCode:c,isInternationSms:b,onVerify:function(e,t){r(e,t)},codeLength:null!=h?h:4,sendCodeRef:f,areaCode:v}):y().createElement(rG,{config:o,mfaToken:s,areaCode:v,setAreaCode:g,isInternationSms:b,onBind:function(e){var t;d(e),null===(t=f.current)||void 0===t||t.click()}}))},aG=function(){if(BW)return BW},sG={video:{width:210,height:210}};function cG(){var e=aG();if(e)return e.nets.tinyFaceDetector}!function(e){e.NotAllowedError="NotAllowedError",e.AbortError="AbortError",e.NotReadableError="NotReadableError",e.OverconstrainedError="OverconstrainedError",e.SecurityError="SecurityError"}(UW||(UW={}));var lG,uG,dG,fG=y().createContext(void 0),pG=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},hG=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},mG=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},vG=y().useCallback,gG=y().useContext,yG=y().useEffect,bG=y().useRef,wG=y().useState,CG=function(e){var t,n,r,o=gG(fG),i=CJ().postForm,a=xu().t,s=mG(wG("ready"),2),c=s[0],l=s[1],u=mG(wG(0),2),d=u[0],f=u[1],p=FW(),h=tL().spinChange,m=p[wW.VerifyFace],v=p[wW.AssociateFace],g=bG(null),b=bG(null),w=bG(),C=bG(),E=bG(),k=bG(0),S=nL(),x=null==S?void 0:S.cdnBase,P=function(e){return{offset:7*e,dashStyle:{}}}(d),_=P.offset,T=P.dashStyle,O=null!==(n=null===(t=null==S?void 0:S.mfa)||void 0===t?void 0:t.faceScore)&&void 0!==n?n:.65;
|
|
18487
18489
|
// 预加载数据
|
|
18488
18490
|
yG((function(){if(
|
|
18489
18491
|
// 载入 cdn
|
|
18490
|
-
cG().loadFromUri("".concat(x,"/face-api/v1/tiny_face_detector_model-weights_manifest.json")),"identifying"===c)return navigator.mediaDevices.getUserMedia(sG).then((function(e){g.current.srcObject=e})).catch((function(e){var t=function(e){var t="";switch(e.name){case
|
|
18492
|
+
cG().loadFromUri("".concat(x,"/face-api/v1/tiny_face_detector_model-weights_manifest.json")),"identifying"===c)return navigator.mediaDevices.getUserMedia(sG).then((function(e){g.current.srcObject=e})).catch((function(e){var t=function(e){var t="";switch(e.name){case UW.NotAllowedError:t="login.AuthorizationCamera";break;case UW.SecurityError:t="login.checkPreferences";break;case UW.OverconstrainedError:t="login.requireError";break;default:t="login.hardwareSupport"}return t}(e);hC.error(a(t))})),function(){w.current&&clearInterval(w.current)}}),[c,w,e.config,x,a]),
|
|
18491
18493
|
// 监听 faceState
|
|
18492
18494
|
yG((function(){
|
|
18493
18495
|
// if (faceState === 'identifying' || faceState === 'retry') {
|
|
@@ -18508,7 +18510,7 @@ return y().createElement("div",null,y().createElement("h3",{className:"authing-g
|
|
|
18508
18510
|
// TODO 之后添加人脸识别插件支持 减小包体积
|
|
18509
18511
|
navigator.mediaDevices?(l("identifying"),(null==o?void 0:o.setMfaBackState)&&o.setMfaBackState("check"),R()):hC.error(a("login.mediaDevicesSupport"))},text:a("common.faceText3"),className:"mfa-face"})):y().createElement("p",{className:"authing-g2-mfa-tips"},a("common.faceCheck")),y().createElement("div",{className:"g2-mfa-face-identifying",style:{display:"ready"!==c&&"login"!==(null==o?void 0:o.mfaBackState)?"flex":"none"}},y().createElement("video",{className:"video-round",ref:g,style:{transform:"rotateY(180deg)"},
|
|
18510
18512
|
// onLoadedMetadata={() => onIdentify()}
|
|
18511
|
-
id:"inputVideo",autoPlay:!0,muted:!0,playsInline:!0}),y().createElement("div",{className:"video-round mesh",style:{display:"retry"===c?"flex":"none"},onClick:function(){l("identifying"),f(0),R()}},a("common.faceText4")),y().createElement("div",{className:"video-round ring"},y().createElement("svg",{width:240,height:240,fill:"none"},y().createElement("circle",{className:"svg-circle-running",style:T,strokeDasharray:700,strokeDashoffset:700-_,cx:120,cy:120,r:110})))),y().createElement("canvas",{style:{width:210,height:210,opacity:0,position:"absolute",display:"none"},ref:b}))},EG=function(){return EG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},EG.apply(this,arguments)},kG=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},SG=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},xG=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},PG=y().useRef,_G=function(e){var t=e.changeModule,n=e.initData,r=xu().t;return y().createElement(y().Fragment,null,y().createElement("p",{className:"authing-g2-mfa-title"},r("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},r("common.otpText1")),y().createElement("div",{style:{display:"flex",justifyContent:"center"}},y().createElement(GD,{type:"authing-otp",style:{width:247,height:131}})),y().createElement(yj,{text:r("common.sure"),onClick:function(){return t(AL.BIND_TOTP,n)},className:"g2-mfa-submit-button bind-totp"}))},TG=function(e){var t=e.mfaToken,n=e.mfaLogin,r=e.changeModule,o=xu().t,i=xG(iT.useForm(),1)[0],a=PG(null),s=aL(),c=
|
|
18513
|
+
id:"inputVideo",autoPlay:!0,muted:!0,playsInline:!0}),y().createElement("div",{className:"video-round mesh",style:{display:"retry"===c?"flex":"none"},onClick:function(){l("identifying"),f(0),R()}},a("common.faceText4")),y().createElement("div",{className:"video-round ring"},y().createElement("svg",{width:240,height:240,fill:"none"},y().createElement("circle",{className:"svg-circle-running",style:T,strokeDasharray:700,strokeDashoffset:700-_,cx:120,cy:120,r:110})))),y().createElement("canvas",{style:{width:210,height:210,opacity:0,position:"absolute",display:"none"},ref:b}))},EG=function(){return EG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},EG.apply(this,arguments)},kG=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},SG=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},xG=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},PG=y().useRef,_G=function(e){var t=e.changeModule,n=e.initData,r=xu().t;return y().createElement(y().Fragment,null,y().createElement("p",{className:"authing-g2-mfa-title"},r("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},r("common.otpText1")),y().createElement("div",{style:{display:"flex",justifyContent:"center"}},y().createElement(GD,{type:"authing-otp",style:{width:247,height:131}})),y().createElement(yj,{text:r("common.sure"),onClick:function(){return t(AL.BIND_TOTP,n)},className:"g2-mfa-submit-button bind-totp"}))},TG=function(e){var t=e.mfaToken,n=e.mfaLogin,r=e.changeModule,o=xu().t,i=xG(iT.useForm(),1)[0],a=PG(null),s=aL(),c=FW()[wW.VerifyTotp],l=xG(ZF((function(){return kG(void 0,void 0,void 0,(function(){var e,r,o,s,l,u,d,f;return SG(this,(function(p){switch(p.label){case 0:return null===(d=a.current)||void 0===d||d.onSpin(!0),e=i.getFieldValue("mfaCode"),r={totp:e.join(""),mfaToken:t},[4/*yield*/,c(r)];case 1:return o=p.sent(),s=o.isFlowEnd,l=o.data,u=o.onGuardHandling,null===(f=a.current)||void 0===f||f.onSpin(!1),s?n(200,l):(a.current.onError(),null==u||u()),[2/*return*/]}}))}))}),[t]),2),u=l[1];return y().createElement(y().Fragment,null,y().createElement("p",{className:"authing-g2-mfa-title"},o("common.mfaCertification")),y().createElement("p",{className:"authing-g2-mfa-tips"},o("login.inputSixCode")),y().createElement(iT,{form:i,onSubmitCapture:function(){},onFinish:u,onFinishFailed:function(){return a.current.onError()}},y().createElement(Uj,{codeLength:6},y().createElement(Jj,{length:6,showDivider:!1,gutter:"10px",onFinish:u})),y().createElement(yj,{text:o("common.sure"),ref:a}),y().createElement("p",{className:"authing-g2-mfa-totp-recoveryCode"},o("common.hasLooseSaftyCode"),y().createElement(dj,{type:"link",onClick:function(){r(AL.RECOVERY_CODE,EG({},s))}},o("common.useRecoverCode")))))},OG=function(e){var t=e.changeModule,n=e.initData,r=e.mfaLogin;return y().createElement(y().Fragment,null,n.totpMfaEnabled?y().createElement(TG,{mfaToken:n.mfaToken,mfaLogin:r,changeModule:t}):y().createElement(_G,{initData:n,changeModule:t}))},NG=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},IG=y().useMemo,AG=y().useState,RG=((lG={})[kj.EMAIL]={title:function(){return au.t("common.EmailVerification")},icon:"authing-mail"},lG[kj.SMS]={title:function(){return au.t("common.SMS")},icon:"authing-phone"},lG[kj.TOTP]={title:function(){return au.t("common.OTPVerification")},icon:"authing-totp"},lG[kj.FACE]={title:function(){return au.t("common.faceVerification")},icon:"authing-face"},lG),MG=function(e){var t=e.method,n=e.onChangeMethod,r=NG(AG(t),2),o=r[0],i=r[1],a=xu().t,s=aL().applicationMfa,c=IG((function(){return s.filter((function(e){return Object.keys(RG).includes(e.mfaPolicy)})).filter((function(e){return e.mfaPolicy!==o})).filter((function(e){if(e.mfaPolicy===kj.FACE){var t=aG();return Boolean(t)}return!0})).sort((function(e,t){return e.sort-t.sort})).map((function(e){return y().createElement(dj,{className:"g2-guard-mfa-methods-btn",onClick:function(t){n(e.mfaPolicy),i(e.mfaPolicy)},key:e.mfaPolicy},y().createElement(GD,{type:RG[e.mfaPolicy].icon}),"".concat(RG[e.mfaPolicy].title()))}))}),[s,o,n]);return y().createElement(y().Fragment,null,0!==c.length&&y().createElement(y().Fragment,null,y().createElement("div",{style:{minHeight:32}}),y().createElement("div",{className:"g2-mfa-method"},y().createElement("div",{className:"g2-mfa-method-title"},a("login.otherVerifyWay")),c)))},DG={
|
|
18512
18514
|
// 待添加
|
|
18513
18515
|
2021:{action:"changeModule",module:AL.LOGIN},1700:{action:"insideFix",message:"verification failed, let components inside fix is fine."},1701:{action:"insideFix",message:"verification failed, let components inside fix is fine."},1702:{action:"insideFix",message:"verification failed, let components inside fix is fine."},500:{action:"message"},6001:{action:"message"},602:{action:"message"}},LG=function(){return LG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LG.apply(this,arguments)},FG=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},jG=y().useMemo,BG=y().useState,UG=((uG={})[kj.EMAIL]=function(e){var t=e.config,n=e.initData,r=e.mfaLogin;return y().createElement(KW,{config:t,mfaToken:n.mfaToken,email:n.mfaEmail,mfaLogin:r})},uG[kj.SMS]=function(e){var t=e.config,n=e.initData,r=e.mfaLogin;return y().createElement(iG,{config:t,initData:n,mfaLogin:r})},uG[kj.TOTP]=function(e){var t=e.initData,n=e.config,r=e.changeModule,o=e.mfaLogin;return y().createElement(OG,{changeModule:r,config:n,initData:t,mfaLogin:o})},uG[kj.FACE]=function(e){var t=e.config,n=e.initData,r=e.mfaLogin,o=e.setShowMethods;return y().createElement(CG,{config:t,initData:n,mfaLogin:r,setShowMethods:o})},uG),qG=function(){var e,t,n=aL(),r=uL(),o=lL().changeModule;lB();var i=cL(),a=FG(BG(null!==(e=n.current)&&void 0!==e?e:null===(t=n.applicationMfa)||void 0===t?void 0:t.sort((function(e,t){return e.sort-t.sort}))[0].mfaPolicy),2),s=a[0],c=a[1],l=FG(BG("login"),2),u=l[0],d=l[1],f=FG(BG(!0),2),p=f[0],h=f[1],m=zL(),v=xu().t,g=function(e,t){var n=DG[e];if(200===e)return function(e){var t;null===(t=null==i?void 0:i.onLogin)||void 0===t||t.call(i,e,m)};if(!n)return function(e){
|
|
18514
18516
|
// message.error(data.message)
|
|
@@ -18559,7 +18561,7 @@ return k=W.sent(),_=k.statusCode,x=k.data,I=x.valid,A=x.message,200===_&&I?(null
|
|
|
18559
18561
|
// 托管模式下注册携带query上自定义参数login_page_context
|
|
18560
18562
|
params:(null==m?void 0:m.isHost)?JSON.stringify(jJ(["login_page_context"])):void 0},f=function(e){o(e,{registerFrom:Ws.EmailCode,account:r})},t?[4/*yield*/,w("/api/v2/email/preCheckCode",{email:r,emailCode:L})]:[3/*break*/,7]);case 6:
|
|
18561
18563
|
// 验证码校验通过 进入密码补全流程
|
|
18562
|
-
return p=U.sent(),k=p.statusCode,v=p.data,P=v.valid,_=v.message,200===k&&P?(null==b||b(AL.REGISTER_PASSWORD,{businessRequestName:"registerByEmailCode",content:NK({},d),isChangeComplete:h,onRegisterSuccess:f,onRegisterFailed:i}),[2/*return*/]):(C.current.onError(),hC.error(_),[2/*return*/]);case 7:return h?[4/*yield*/,w("/api/v2/email/preCheckCode",{email:r,emailCode:L})]:[3/*break*/,9];case 8:return y=U.sent(),k=y.statusCode,x=y.data,P=x.valid,_=x.message,200===k&&P?(null==b||b(AL.REGISTER_COMPLETE_INFO,{businessRequestName:"registerByEmailCode",content:NK({},d),onRegisterSuccess:f,onRegisterFailed:i}),[2/*return*/]):(C.current.onError(),hC.error(_),[2/*return*/]);case 9:return[4/*yield*/,w("/api/v2/register-email-code",NK(NK({},d),{postUserInfoPipeline:!1}))];case 10:O=U.sent(),N=O.statusCode,F=O.data,I=O.apiCode,A=O.onGuardHandling,R=O.message,C.current.onSpin(!1),200===N?f(F):(null==A||A(),i(I,F,R)),U.label=11;case 11:return[3/*break*/,14];case 12:return M=U.sent(),D=M.message,L=M.code,F=M.data,C.current.onError(),hC.error(D),!t&&i(L,F,hC),[3/*break*/,14];case 13:return null===(B=C.current)||void 0===B||B.onSpin(!1),[7/*endfinally*/];case 14:return[2/*return*/]}}))}))}),[null==m?void 0:m.isHost,m.passwordLoginMethods,a,g,E,null==s?void 0:s.length,S,l,w,b,h,o,i,null==c?void 0:c.enableCompletePassword]),Q=MK((function(e){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(t){switch(t.label){case 0:return M!==_c.EmailCode?[3/*break*/,2]:[4/*yield*/,Z(e)];case 1:return t.sent(),[3/*break*/,4];case 2:return M!==_c.PhoneCode?[3/*break*/,4]:[4/*yield*/,J(e)];case 3:t.sent(),t.label=4;case 4:return[2/*return*/]}}))}))}),[M,Z,J]),X=MK((function(e){return $?y().createElement(NU,NK({},e,{form:E,fieldName:"identify",className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:f("common.inputFourVerifyCode",{length:A}),areaCode:N,prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),isInternationSms:H,scene:Ni.SCENE_TYPE_REGISTER,maxLength:A,onSendCodeBefore:function(){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(e){switch(e.label){case 0:return[4/*yield*/,E.validateFields(["identify"])];case 1:return e.sent(),[4/*yield*/,E.validateFields(["captchaCode"])];case 2:return e.sent(),[2/*return*/]}}))}))}})):y().createElement(y().Fragment,null,M===_c.PhoneCode&&y().createElement(NU,NK({},e,{isInternationSms:H,className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:f("common.inputFourVerifyCode",{length:A}),areaCode:N,prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Ni.SCENE_TYPE_REGISTER,maxLength:A,data:F,captchaCode:U,onSendCodeBefore:function(){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(e){switch(e.label){case 0:return[4/*yield*/,E.validateFields(["identify"])];case 1:return e.sent(),[4/*yield*/,E.validateFields(["captchaCode"])];case 2:return e.sent(),[2/*return*/]}}))}))}})),M===_c.EmailCode&&y().createElement(gq,NK({},e,{className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:f("common.inputFourVerifyCode",{length:A}),prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Oc.REGISTER_VERIFY_CODE,maxLength:A,data:F,onSendCodeBefore:function(){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(e){switch(e.label){case 0:return[4/*yield*/,E.validateFields(["identify"])];case 1:return e.sent(),[2/*return*/]}}))}))}})))}),[N,M,E,F,H,$,f,A,U]),ee=MK((function(e){return y().createElement(xq,NK({},e,{className:"authing-g2-input",size:"large",areaCode:N,onAreaCodeChange:function(e){I(e),E.getFieldValue(["identify"])&&E.validateFields(["identify"])}}))}),[N,E]);return y().createElement("div",{className:"authing-g2-register-email"},y().createElement(iT,{form:E,name:"emailRegister",autoComplete:"off",onSubmitCapture:function(){return C.current.onSpin(!0)},onFinish:Q,onFinishFailed:function(){return C.current.onError()}},y().createElement(EV,{name:"identify",className:$?"authing-g2-input-form remove-padding":"authing-g2-input-form",methods:d,currentMethod:M,areaCode:N,checkRepeat:!0,required:!0},$?y().createElement(ee,{autoFocus:!v}):y().createElement(
|
|
18564
|
+
return p=U.sent(),k=p.statusCode,v=p.data,P=v.valid,_=v.message,200===k&&P?(null==b||b(AL.REGISTER_PASSWORD,{businessRequestName:"registerByEmailCode",content:NK({},d),isChangeComplete:h,onRegisterSuccess:f,onRegisterFailed:i}),[2/*return*/]):(C.current.onError(),hC.error(_),[2/*return*/]);case 7:return h?[4/*yield*/,w("/api/v2/email/preCheckCode",{email:r,emailCode:L})]:[3/*break*/,9];case 8:return y=U.sent(),k=y.statusCode,x=y.data,P=x.valid,_=x.message,200===k&&P?(null==b||b(AL.REGISTER_COMPLETE_INFO,{businessRequestName:"registerByEmailCode",content:NK({},d),onRegisterSuccess:f,onRegisterFailed:i}),[2/*return*/]):(C.current.onError(),hC.error(_),[2/*return*/]);case 9:return[4/*yield*/,w("/api/v2/register-email-code",NK(NK({},d),{postUserInfoPipeline:!1}))];case 10:O=U.sent(),N=O.statusCode,F=O.data,I=O.apiCode,A=O.onGuardHandling,R=O.message,C.current.onSpin(!1),200===N?f(F):(null==A||A(),i(I,F,R)),U.label=11;case 11:return[3/*break*/,14];case 12:return M=U.sent(),D=M.message,L=M.code,F=M.data,C.current.onError(),hC.error(D),!t&&i(L,F,hC),[3/*break*/,14];case 13:return null===(B=C.current)||void 0===B||B.onSpin(!1),[7/*endfinally*/];case 14:return[2/*return*/]}}))}))}),[null==m?void 0:m.isHost,m.passwordLoginMethods,a,g,E,null==s?void 0:s.length,S,l,w,b,h,o,i,null==c?void 0:c.enableCompletePassword]),Q=MK((function(e){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(t){switch(t.label){case 0:return M!==_c.EmailCode?[3/*break*/,2]:[4/*yield*/,Z(e)];case 1:return t.sent(),[3/*break*/,4];case 2:return M!==_c.PhoneCode?[3/*break*/,4]:[4/*yield*/,J(e)];case 3:t.sent(),t.label=4;case 4:return[2/*return*/]}}))}))}),[M,Z,J]),X=MK((function(e){return $?y().createElement(NU,NK({},e,{form:E,fieldName:"identify",className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:f("common.inputFourVerifyCode",{length:A}),areaCode:N,prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),isInternationSms:H,scene:Ni.SCENE_TYPE_REGISTER,maxLength:A,onSendCodeBefore:function(){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(e){switch(e.label){case 0:return[4/*yield*/,E.validateFields(["identify"])];case 1:return e.sent(),[4/*yield*/,E.validateFields(["captchaCode"])];case 2:return e.sent(),[2/*return*/]}}))}))}})):y().createElement(y().Fragment,null,M===_c.PhoneCode&&y().createElement(NU,NK({},e,{isInternationSms:H,className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:f("common.inputFourVerifyCode",{length:A}),areaCode:N,prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Ni.SCENE_TYPE_REGISTER,maxLength:A,data:F,captchaCode:U,onSendCodeBefore:function(){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(e){switch(e.label){case 0:return[4/*yield*/,E.validateFields(["identify"])];case 1:return e.sent(),[4/*yield*/,E.validateFields(["captchaCode"])];case 2:return e.sent(),[2/*return*/]}}))}))}})),M===_c.EmailCode&&y().createElement(gq,NK({},e,{className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:f("common.inputFourVerifyCode",{length:A}),prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Oc.REGISTER_VERIFY_CODE,maxLength:A,data:F,onSendCodeBefore:function(){return IK(void 0,void 0,void 0,(function(){return AK(this,(function(e){switch(e.label){case 0:return[4/*yield*/,E.validateFields(["identify"])];case 1:return e.sent(),[2/*return*/]}}))}))}})))}),[N,M,E,F,H,$,f,A,U]),ee=MK((function(e){return y().createElement(xq,NK({},e,{className:"authing-g2-input",size:"large",areaCode:N,onAreaCodeChange:function(e){I(e),E.getFieldValue(["identify"])&&E.validateFields(["identify"])}}))}),[N,E]);return y().createElement("div",{className:"authing-g2-register-email"},y().createElement(iT,{form:E,name:"emailRegister",autoComplete:"off",onSubmitCapture:function(){return C.current.onSpin(!0)},onFinish:Q,onFinishFailed:function(){return C.current.onError()}},y().createElement(EV,{name:"identify",className:$?"authing-g2-input-form remove-padding":"authing-g2-input-form",methods:d,currentMethod:M,areaCode:N,checkRepeat:!0,required:!0},$?y().createElement(ee,{autoFocus:!v}):y().createElement(cH,{className:"authing-g2-input",size:"large",autoFocus:!v,value:F,methods:d,onChange:function(e){var t=e.target.value;j(t),1!==d.length&&(NJ("email",t)?D(_c.EmailCode):
|
|
18563
18565
|
// 放开手机号校验 方便同时开启邮箱和短信国际化手机号通过
|
|
18564
18566
|
D(_c.PhoneCode))},prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}})})),W&&M===_c.PhoneCode&&y().createElement(iT.Item,{className:"authing-g2-input-form",validateTrigger:["onBlur","onChange"],name:"captchaCode",rules:IJ(f("common.captchaCode"))},y().createElement(r$,{className:"authing-g2-input",size:"large",placeholder:f("login.inputCaptchaCode"),verifyCodeUrl:K,changeCode:function(){return Y(g$(m.host))},onChange:function(e){q(e.target.value)}})),y().createElement(iT.Item,{key:"code",name:"code",validateTrigger:["onBlur","onChange"],rules:IJ(f("common.captchaCode")),className:"authing-g2-input-form",validateFirst:!0},y().createElement(X,null)),Boolean(null==s?void 0:s.length)&&y().createElement(d$,{onChange:x,agreements:s,showError:_}),y().createElement(iT.Item,{className:"authing-g2-sumbit-form"},y().createElement(yj,{
|
|
18565
18567
|
// disabled={
|
|
@@ -18573,13 +18575,13 @@ var o;void 0===n&&(n={}),null===(o=null==e?void 0:e.onRegisterError)||void 0===o
|
|
|
18573
18575
|
agreements:o&&null!==(i=null===(r=null==t?void 0:t.agreements)||void 0===r?void 0:r.filter((function(e){return ad(au.language).find((function(t){return t.includes(e.lang)}))&&1!==(null==e?void 0:e.availableAt)})))&&void 0!==i?i:[],publicConfig:s,methods:l}}),[o,null==t?void 0:t.agreements,null==e?void 0:e.onBeforeRegister,au.language,l]),d=$K((function(){var e,t="";return t=l.length>1?r("common.verifyCodeRegister"):l.includes("phone-code")?r("common.phoneVerifyCode"):l.includes("email-code")?r("common.emailVerifyCode"):r("common.verifyCodeRegister"),(e={})[Gs.Email]={component:y().createElement(OK,BK({},u)),name:r("common.EmailRegister")},e[Gs.Phone]={component:y().createElement(jK,BK({},u)),name:t},e}),[u,r,l]),f=$K((function(){var e=new Map;return s.tabMethodsFields.forEach((function(t){e.set(t.key,t)})),e}),[s.tabMethodsFields]),p=UK(zK(""),2),h=p[0],m=p[1],v=$K((function(){return t.defaultRegisterMethod&&HJ(t.defaultRegisterMethod)}),[t.defaultRegisterMethod]);VK((function(){v&&m(v)}),[v]),lB({currentTab:h,changeTab:m});var g=$K((function(){var e,n=t.registerMethods,o=qK([],UK(new Set(null===(e=qK([],UK(void 0===n?[]:n),!1))||void 0===e?void 0:e.map((function(e){return HJ(e)})))),!1);return nZ(o,v).map((function(e){var t=d[e],n=eZ(e,f,c);return y().createElement(ER.TabPane,{tab:(null==t?void 0:t.name)||r("common.registerTab",{text:n}),key:e},(null==t?void 0:t.component)||y().createElement(OK,BK({label:n,method:e},u)))}))}),[t,d,s,v,f,au.language,u,c,r]);return y().createElement("div",{className:"g2-view-container g2-view-register"},y().createElement("div",{className:"g2-view-container-inner"},y().createElement("div",{className:"g2-view-header"},y().createElement("img",{src:null==t?void 0:t.logo,alt:"",className:"icon"}),y().createElement("div",{className:"title"},null==t?void 0:t.title)),y().createElement("div",{className:"g2-view-tabs"},y().createElement(ER,{destroyInactiveTabPane:!0,activeKey:h,onChange:function(t){var n;m(t),null===(n=null==e?void 0:e.onRegisterTabChange)||void 0===n||n.call(e,t)}},g)),y().createElement("div",{className:"g2-tips-line"},y().createElement("span",{className:"back-to-login"},y().createElement("span",{className:"link-like",onClick:function(){return null==n?void 0:n(AL.LOGIN,{})}},r("common.backLoginPage"))))),y().createElement(bL,{langRange:i,onLangChange:null==e?void 0:e.onLangChange}))},WK=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},GK=y().useEffect,KK=y().useRef,YK=y().useState,JK=function(){var e=xu().t,t=aL(),n=lL().changeModule,r=WK(YK(5),2),o=r[0],i=r[1],a=KK(0),s=nL();lB();var c=null!=t?t:{},l=c.title,u=void 0===l?e("common.problem.successTip"):l,d=c.message,f=void 0===d?e("common.problem.successTipMsg"):d,p=c.text,h=void 0===p?e("common.backLoginPage"):p,m=c.countDesc,v=void 0===m?e("common.pToLogin"):m,g=c.changeModule,b=void 0===g?AL.LOGIN:g,w=null==s?void 0:s.cdnBase;return GK((function(){return a.current=setInterval((function(){i((function(e){return e-1}))}),1e3),function(){return clearInterval(a.current)}}),[]),GK((function(){o<=0&&(clearInterval(a.current),null==n||n(b))}),[o]),y().createElement("div",{className:"g2-view-container g2-submit-success"},y().createElement("div",{className:"g2-view-tabs g2-questions-send-success-page"},y().createElement(Lj,{className:"plate",src:"".concat(w,"/questions-send-ok.png"),alt:"",width:191,height:146}),y().createElement("div",{className:"title"},u),y().createElement("div",{className:"message"},f),y().createElement(yj,{onClick:function(){null==n||n(b)},text:h}),y().createElement("div",{className:"timer-tip"},o," ",v)))};!function(e){e.PhoneCode="phone-code",e.EmailCode="emial-code",e.Password="password"}(eK||(eK={})),function(e){e.CreateUser="create-federation-account",e.BindByPassword="bind-identity-by-password",e.BindByPhoneCode="bind-identity-by-phone-code",e.BindByEmailCode="bind-identity-by-email-code",e.RegisterByPassword="register-bind-by-password",e.RegisterByPhoneCode="register-bind-by-phone-code",e.RegisterByEmailCode="register-bind-by-email-code"}(tK||(tK={}));var ZK,QK=function(e){var t;void 0===e&&(e="bind");var n=CJ().authFlow;return(t={})[eK.PhoneCode]=function(t){return n("bind"===e?tK.BindByPhoneCode:tK.RegisterByPhoneCode,t)},t[eK.EmailCode]=function(t){return n("bind"===e?tK.BindByEmailCode:tK.RegisterByEmailCode,t)},t[eK.Password]=function(t){return n("bind"===e?tK.BindByPassword:tK.RegisterByPassword,t)},t},XK=function(){return XK=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XK.apply(this,arguments)},eY=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},tY=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},nY=y().useMemo,rY=function(e){var t,n=e.skipAsk,r=void 0!==n&&n,o=aL(),i=uL(),a=lL().backModule;lB();var s=xu().t,c=cL(),l=i.publicKey,u=i.agreementEnabled,d=nL(),f=tL().spinChange,p=(null===(t=null==d?void 0:d.internationalSmsConfig)||void 0===t?void 0:t.enabled)||!1,h=zL(),m=r?"register":"bind",v=QK(m)[eK.PhoneCode],g=QK(m)[eK.EmailCode],b=QK(m)[eK.Password],w={"phone-code":function(e){return eY(void 0,void 0,void 0,(function(){var t,n,r,o;return tY(this,(function(i){switch(i.label){case 0:return t=e.identity,n=e.code,r=e.phoneCountryCode,o={phone:t,code:n},p&&(o.phoneCountryCode=r),[4/*yield*/,v(o)];case 1:return[2/*return*/,i.sent()]}}))}))},"email-code":function(e){return eY(void 0,void 0,void 0,(function(){var t,n;return tY(this,(function(r){switch(r.label){case 0:return t=e.identity,n=e.code,[4/*yield*/,g({email:t,code:n})];case 1:return[2/*return*/,r.sent()]}}))}))},password:function(e){return eY(void 0,void 0,void 0,(function(){var t,n,r,o,i;return tY(this,(function(a){switch(a.label){case 0:return t=e.identity,n=e.password,r=h.options.encryptFunction,o=e.captchaCode&&e.captchaCode.trim(),[4/*yield*/,r(n,l)];case 1:return i=a.sent(),[4/*yield*/,b({account:t,password:i,captchaCode:o})];case 2:return[2/*return*/,a.sent()]}}))}))}},C=function(e){var t,n;null===(t=null==c?void 0:c.onBinding)||void 0===t||t.call(c,e,h),// 绑定成功
|
|
18574
18576
|
null===(n=null==c?void 0:c.onLogin)||void 0===n||n.call(c,e,h)},E=function(e,t,n){var r,o;null===(r=null==c?void 0:c.onBindingError)||void 0===r||r.call(c,{code:e,data:t,message:n}),null===(o=null==c?void 0:c.onLoginError)||void 0===o||o.call(c,{code:e,data:t,message:n})},k=function(e){return eY(void 0,void 0,void 0,(function(){var t,n,r,o,i;return tY(this,(function(a){switch(a.label){case 0:return t=e.type,n=e.data,f(!0),[4/*yield*/,null===(i=w[t])||void 0===i?void 0:i.call(w,n)];case 1:return r=a.sent(),o=r.isFlowEnd,f(!1),o?[2/*return*/,XK(XK({},r),{apiCode:200,code:200})]:[2/*return*/,r]}}))}))},S=nY((function(){var e,t;return u&&null!==(t=null===(e=null==i?void 0:i.agreements)||void 0===e?void 0:e.filter((function(e){return ad(au.language).find((function(t){return t.includes(e.lang)}))&&!!(null==e?void 0:e.availableAt)})))&&void 0!==t?t:[]}),[u,null==i?void 0:i.agreements,au.language]),x=nY((function(){var e=["username-password","email-password","phone-password"];
|
|
18575
18577
|
// @ts-ignore
|
|
18576
|
-
return o.methods.filter((function(t){return e.includes(t)}))}),[o.methods]),P=nY((function(){var e=["email-code","phone-code"];return o.methods.filter((function(t){return e.includes(t)}))}),[o.methods]),_=nY((function(){return r?"".concat(s("common.bind")," / ").concat(s("common.register")):s("common.bind")}),[r,s]),T=[{key:"code",title:s("common.verifyCodeLogin"),component:y().createElement(
|
|
18578
|
+
return o.methods.filter((function(t){return e.includes(t)}))}),[o.methods]),P=nY((function(){var e=["email-code","phone-code"];return o.methods.filter((function(t){return e.includes(t)}))}),[o.methods]),_=nY((function(){return r?"".concat(s("common.bind")," / ").concat(s("common.register")):s("common.bind")}),[r,s]),T=[{key:"code",title:s("common.verifyCodeLogin"),component:y().createElement(wH,{verifyCodeLength:null==d?void 0:d.verifyCodeLength,autoRegister:!!r,onLoginRequest:k,
|
|
18577
18579
|
// onLogin={onLogin}
|
|
18578
18580
|
onLoginSuccess:C,onLoginFailed:E,agreements:S,methods:P,submitButText:_})},{key:"password",title:s("login.bindPwdLogin"),component:y().createElement(_$,{publicKey:l,autoRegister:!!r,host:i.host,onLoginRequest:k,passwordLoginMethods:x,
|
|
18579
18581
|
// onLogin={onLogin}
|
|
18580
18582
|
onLoginSuccess:C,onLoginFailed:E,agreements:S,submitButText:_})}],O=nY((function(){return o.source===AL.IDENTITY_BINDING_ASK?y().createElement(aB,{onBack:function(){return null==a?void 0:a()}},s("common.back")):y().createElement(iB,null)}),[a,o.source,s]);return y().createElement("div",{className:"g2-view-container g2-view-identity-binding"},O,y().createElement("div",{className:"g2-view-identity-binding-content"},y().createElement("div",{className:"g2-view-identity-binding-content-logo"},y().createElement("img",{src:null==i?void 0:i.logo,alt:"",className:"logo"})),y().createElement("div",{className:"g2-view-identity-binding-content-title"},y().createElement("span",null,s(r?"common.identityBindingSkipAskTitle":"common.identityBindingTitle"))),y().createElement("div",{className:"g2-view-identity-binding-content-desc"},y().createElement("span",null,s(r?"common.identityBindingSkipAskDesc":"common.identityBindingDesc"))),y().createElement("div",{className:"g2-view-identity-binding-content-login"},y().createElement(ER,null,T.filter((function(e){return"password"===e.key?0!==x.length:"code"!==e.key||0!==P.length})).map((function(e){return y().createElement(ER.TabPane,{key:e.key,tab:e.title},e.component)}))))))},oY=function(){return oY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oY.apply(this,arguments)},iY=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},aY=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},sY=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},cY=function(){var e=aL(),t=lL().changeModule;lB();var n=xu().t,r=CJ().authFlow,o=zL(),i=cL(),a=tL().spinChange,s=sY(ZF((function(){return iY(void 0,void 0,void 0,(function(){var e,t,n,s,c;return aY(this,(function(l){switch(l.label){case 0:return a(!0),[4/*yield*/,r(tK.CreateUser)];case 1:return e=l.sent(),t=e.code,n=e.onGuardHandling,s=e.data,c=e.isFlowEnd,a(!1),c?function(e){var t,n;null===(t=null==i?void 0:i.onLogin)||void 0===t||t.call(i,e,o),null===(n=null==i?void 0:i.onCreate)||void 0===n||n.call(i,e,o)}(s):(!function(e,t){var n,r;null===(n=null==i?void 0:i.onCreateError)||void 0===n||n.call(i,{code:e,data:t}),null===(r=null==i?void 0:i.onLoginError)||void 0===r||r.call(i,{code:e,data:t})}(t,s),null==n||n()),[2/*return*/]}}))}))}),[]),2),c=s[0],l=s[1];return y().createElement("div",{className:"g2-view-container g2-view-identity-binding-ask"},y().createElement(iB,null),y().createElement("div",{className:"g2-view-identity-binding-ask-content"},y().createElement("div",{className:"g2-view-identity-binding-ask-content-title"},y().createElement("span",null,n("common.identityBindingAskTitle"))),y().createElement("div",{className:"g2-view-identity-binding-ask-content-desc"},y().createElement("span",null,n("common.identityBindingAskDesc"))),y().createElement("div",{className:"g2-view-identity-binding-ask-content-img"},y().createElement(GD,{type:"authing-bind"})),y().createElement("div",{className:"g2-view-identity-binding-ask-content-button-group"},y().createElement(dj,{className:"g2-view-identity-binding-ask-content-button g2-view-identity-binding-ask-content-button-create",loading:c.loading,onClick:l},n("common.identityBindingCreate")),y().createElement(dj,{className:" g2-view-identity-binding-ask-content-button g2-view-identity-binding-ask-content-button-binding authing-g2-submit-button",onClick:function(){null==t||t(AL.IDENTITY_BINDING,oY(oY({},e),{source:AL.IDENTITY_BINDING_ASK}))},type:"primary"},n("common.identityBindingBinding")))))},lY=function(){return lY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lY.apply(this,arguments)},uY=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},dY=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},fY=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},pY=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},hY=y().useCallback,mY=y().useEffect,vY=y().useRef,gY=y().useState;!function(e){e.email="email-code",e.phone="phone-code"}(ZK||(ZK={}));var yY,bY,wY=function(e){var t=e.identifyRef,n=xu().t,r=fY(iT.useForm(),1)[0],o=fY(gY(""),2),i=o[0],a=o[1],s=fY(gY("phone"),2),c=s[0],l=s[1],u=vY(null),d=aj().isPhoneMedia,f=zL(),p=cL(),h=aL();mY((function(){h.defaultEmail&&(a(h.defaultEmail),r.setFieldsValue({identify:h.defaultEmail}),l("email")),h.defaultPhone&&(a(h.defaultPhone),r.setFieldsValue({identify:h.defaultPhone}),l("phone"))}),[h,r]),mY((function(){t&&(t.current=ZJ(i))}),[i,t]);var m=CJ().authFlow,v=nL(),g=v.publicKey,b=v.verifyCodeLength,w=v.internationalSmsConfig,C=v.selfUnlockStrategy,E=void 0===C?"password-captcha":C,k=(null==w?void 0:w.enabled)||!1,S=hY((function(e){return y().createElement(y().Fragment,null,"phone"===c&&y().createElement(NU,lY({},e,{isInternationSms:k,className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:n("common.inputFourVerifyCode",{length:b}),prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Ni.SCENE_TYPE_RESET,maxLength:b,data:i,onSendCodeBefore:function(){return uY(void 0,void 0,void 0,(function(){return dY(this,(function(e){switch(e.label){case 0:return[4/*yield*/,r.validateFields(["identify"])];case 1:return e.sent(),[2/*return*/]}}))}))}})),"email"===c&&y().createElement(gq,lY({},e,{className:"authing-g2-input g2-send-code-input",autoComplete:"off",size:"large",placeholder:n("common.inputFourVerifyCode",{length:b}),prefix:y().createElement(GD,{type:"authing-a-shield-check-line1",style:{color:"#878A95"}}),scene:Oc.SELF_UNLOCKING_VERIFY_CODE,maxLength:b,data:i,onSendCodeBefore:function(){return uY(void 0,void 0,void 0,(function(){return dY(this,(function(e){switch(e.label){case 0:return[4/*yield*/,r.validateFields(["identify"])];case 1:return e.sent(),[2/*return*/]}}))}))},value:i})))}),[c,r,i,k,n,b]);return y().createElement("div",{className:"authing-g2-login-phone-code"},y().createElement(iT,{name:"resetPassword",form:r,onFinish:function(e){return uY(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,d,h,v,y,b,w,C,S;return dY(this,(function(x){switch(x.label){case 0:return t=e.identify,n=e.code,r=e.password||"",[4/*yield*/,null===(y=null===(v=f.options)||void 0===v?void 0:v.encryptFunction)||void 0===y?void 0:y.call(v,r,g)];case 1:return o=x.sent(),
|
|
18581
18583
|
// 密码,经过加密后的, 仅“验证码”时不传 password 字段
|
|
18582
|
-
r="password-captcha"===E?o:void 0,"email"!==c?[3/*break*/,3]:[4/*yield*/,m("unlock-account-by-email",{email:t,code:n,password:r})];case 2:i=x.sent(),l=i.isFlowEnd,d=i.data,h=i.onGuardHandling,null===(b=u.current)||void 0===b||b.onSpin(!1),l?null===(w=null==p?void 0:p.onLogin)||void 0===w||w.call(p,d,f):null==h||h(),x.label=3;case 3:return"phone"!==c?[3/*break*/,5]:(a=sj(k,t).phoneNumber,[4/*yield*/,m("unlock-account-by-phone",{phone:a,code:n,password:r})]);case 4:s=x.sent(),l=s.isFlowEnd,d=s.data,h=s.onGuardHandling,null===(C=u.current)||void 0===C||C.onSpin(!1),l?null===(S=null==p?void 0:p.onLogin)||void 0===S||S.call(p,d,f):null==h||h(),x.label=5;case 5:return[2/*return*/]}}))}))},onFinishFailed:function(){var e;null===(e=null==u?void 0:u.current)||void 0===e||e.onError()},autoComplete:"off"},y().createElement(EV,{name:"identify",className:"authing-g2-input-form",methods:["email-code","phone-code"],currentMethod:ZK[c]},y().createElement(
|
|
18584
|
+
r="password-captcha"===E?o:void 0,"email"!==c?[3/*break*/,3]:[4/*yield*/,m("unlock-account-by-email",{email:t,code:n,password:r})];case 2:i=x.sent(),l=i.isFlowEnd,d=i.data,h=i.onGuardHandling,null===(b=u.current)||void 0===b||b.onSpin(!1),l?null===(w=null==p?void 0:p.onLogin)||void 0===w||w.call(p,d,f):null==h||h(),x.label=3;case 3:return"phone"!==c?[3/*break*/,5]:(a=sj(k,t).phoneNumber,[4/*yield*/,m("unlock-account-by-phone",{phone:a,code:n,password:r})]);case 4:s=x.sent(),l=s.isFlowEnd,d=s.data,h=s.onGuardHandling,null===(C=u.current)||void 0===C||C.onSpin(!1),l?null===(S=null==p?void 0:p.onLogin)||void 0===S||S.call(p,d,f):null==h||h(),x.label=5;case 5:return[2/*return*/]}}))}))},onFinishFailed:function(){var e;null===(e=null==u?void 0:u.current)||void 0===e||e.onError()},autoComplete:"off"},y().createElement(EV,{name:"identify",className:"authing-g2-input-form",methods:["email-code","phone-code"],currentMethod:ZK[c]},y().createElement(cH,{methods:["email-code","phone-code"],className:"authing-g2-input",autoComplete:"off",autoFocus:!d,size:"large",value:i,onChange:function(e){var t=e.target.value;a(t),NJ("email",t)?l("email"):l("phone")},prefix:y().createElement(GD,{type:"authing-a-user-line1",style:{color:"#878A95"}})})),y().createElement(iT.Item,{validateTrigger:["onBlur","onChange"],className:"authing-g2-input-form",name:"code",rules:pY([],fY(IJ(n("common.captchaCode"))),!1)},y().createElement(S,null)),"password-captcha"===E&&y().createElement(iT.Item,{validateTrigger:["onBlur","onChange"],className:"authing-g2-input-form",name:"password",rules:pY([],fY(IJ(n("common.password"))),!1)},y().createElement(qB,{className:"authing-g2-input",size:"large",placeholder:n("user.inputOldPwd"),prefix:y().createElement(GD,{type:"authing-a-lock-line1",style:{color:"#878A95"}})})),y().createElement(iT.Item,{className:"authing-g2-sumbit-form submit-form"},y().createElement(yj,{className:"forget-password",text:n("common.unlock"),ref:u}))))},CY=y().useRef,EY=function(){var e=xu().t,t=uL(),n=lL().changeModule,r=CY("");return lB(),y().createElement("div",{className:"g2-view-container g2-forget-password"},y().createElement("div",{className:"g2-view-header"},y().createElement(Lj,{src:null==t?void 0:t.logo,size:48,borderRadius:4,alt:"",className:"icon"}),y().createElement("div",{className:"title"},e("login.selfUnlock")),y().createElement("div",{className:"title-explain"},e("login.selfUnlockText"))),y().createElement("div",{className:"g2-view-tabs"},y().createElement(wY,{identifyRef:r})),y().createElement("div",{className:"g2-tips-line"},y().createElement("span",null,e("user.unlockTip")," "),y().createElement("span",{className:"link-like",onClick:function(){return null==n?void 0:n(AL.ANY_QUESTIONS,{identify:r.current})}},e("common.feedback")),y().createElement("div",{className:"link-like back-to-login",onClick:function(){return null==n?void 0:n(AL.LOGIN)}},e("common.backLoginPage"))))},kY=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},SY=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},xY=y().useCallback,PY=y().useMemo,_Y=function(){var e=uL(),t=cL(),n=zL(),r=rL().post,o=PY((function(){return e.loadingComponent}),[e.loadingComponent]),i=aL();lB();var a=xY((function(e){return kY(void 0,void 0,void 0,(function(){var o,i,a,s,c;return SY(this,(function(l){switch(l.label){case 0:return[4/*yield*/,r("/interaction/federation/binding/select",{account:e.id})];case 1:return o=l.sent(),i=o.isFlowEnd,a=o.data,s=o.onGuardHandling,i?null===(c=null==t?void 0:t.onLogin)||void 0===c||c.call(t,a,n):null==s||s(),[2/*return*/]}}))}))}),[n,r,t]),s=PY((function(){return i?null==i?void 0:i.accounts.map((function(e){var t=e.id,n=e.photo,r=e.phone,o=e.email,i=e.username,s=e.nickname,c=e.name||s||i||void 0,l=r||o;return y().createElement("li",{className:"g2-select-account__li",key:t,onClick:function(){return a(e)}},y().createElement("img",{className:"g2-select-account__avatar",alt:"",src:n||""}),y().createElement("div",{className:"g2-select-account__body"},c&&y().createElement("span",{className:"g2-select-account__title"},c),y().createElement("span",{className:c?"g2-multiple__desc":"g2-multiple__title"},l)))})):null}),[a,i]),c=PY((function(){return i?i.i18n:""}),[i]);return y().createElement(y().Fragment,null,i?y().createElement("div",{className:"g2-view-container"},y().createElement("div",{className:"g2-view-header"},y().createElement(Lj,{src:null==e?void 0:e.logo,size:48,borderRadius:4,alt:"",className:"icon"}),y().createElement("div",{className:"title"},c)),y().createElement("div",{className:"g2-view-tabs"},y().createElement("ul",{className:"g2-select-account_wrapper"},s))):o)},TY=function(){return TY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TY.apply(this,arguments)},OY=function(e){var t,n=e.avatar,r=e.title,o=e.description,i=e.tags,a="string"==typeof n?{shape:"square",size:48,src:n}:n;return y().createElement("div",{className:"g2-view-header"},y().createElement(vv,TY({className:"g2-view-avatar icon"},a)),y().createElement("div",{className:"title"},r),y().createElement("div",{className:"title-description"},o),null===(t=null==i?void 0:i.map)||void 0===t?void 0:t.call(i,(function(e,t){
|
|
18583
18585
|
// @ts-ignore
|
|
18584
18586
|
return y().createElement(mE,TY({key:t,className:"authing-header-tag"},e))})))},NY=function(){return NY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NY.apply(this,arguments)},IY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},AY=function(e){var t=e.dataSource,n=e.onSelect,r=e.gap,o=void 0===r?20:r,i=IY(e,["dataSource","onSelect","gap"]);
|
|
18585
18587
|
// @ts-ignore
|
|
@@ -18593,7 +18595,7 @@ b=void 0===g||g,w=c.goBack,C=void 0===w?function(){return null==n?void 0:n(AL.LO
|
|
|
18593
18595
|
// Error
|
|
18594
18596
|
(t={})[AL.ERROR]=function(e){return y().createElement(pV,{key:e})},
|
|
18595
18597
|
// Login
|
|
18596
|
-
t[AL.LOGIN]=function(e){return y().createElement(
|
|
18598
|
+
t[AL.LOGIN]=function(e){return y().createElement(AW,{key:e})},t[AL.RESET_ACCOUNT_NAME]=function(e){return y().createElement(AW,{key:e,isResetPage:!0})},
|
|
18597
18599
|
// 身份源绑定
|
|
18598
18600
|
t[AL.IDENTITY_BINDING]=function(e){return y().createElement(rY,{key:e})},
|
|
18599
18601
|
// 身份源绑定 跳过询问页面
|
|
@@ -18635,13 +18637,13 @@ t[AL.SELF_UNLOCK]=function(e){return y().createElement(EY,{key:e})},t[AL.UNSAFE_
|
|
|
18635
18637
|
// 初始化 请求拦截器 (Error Code)
|
|
18636
18638
|
HY((function(){if(l&&u){l.initErrorCodeInterceptor((function(e,t){var n;
|
|
18637
18639
|
// 判断有没有 flowHandle
|
|
18638
|
-
t.flowHandle&&SL(t.flowHandle);var r=((n={})[YY.CHANGE_MODULE]=function(
|
|
18640
|
+
t.flowHandle&&SL(t.flowHandle);var r=((n={})[YY.CHANGE_MODULE]=function(){var e=dJ[t.apiCode],n=t.data;return u(e,n),YY.CHANGE_MODULE},n[YY.RENDER_MESSAGE]=function(){var e;return hC.error(null!==(e=t.message)&&void 0!==e?e:t.messages),YY.RENDER_MESSAGE},n[YY.FLOW_END]=function(){return YY.FLOW_END},n)[e];if(!r)return t;if(t.apiCode===JY.FLOW_END){var o=t.data.user;return zY(zY({},t),{onGuardHandling:r,isFlowEnd:!0,data:o?zY({},o):t})}return zY(zY({},t),{onGuardHandling:r})}))}
|
|
18639
18641
|
// 错误码处理回调 切换 module 和 错误信息提示
|
|
18640
18642
|
}),[l,u]);var h=WY((function(){return s?
|
|
18641
18643
|
// 传入的渲染指令不正确的情况处理
|
|
18642
|
-
c&&p[c]?p[c]((new Date).toString()):y().createElement(pV,{error:new Error("未知错误!moduleName 为 <b>".concat(c,"</b> 无法识别"))}):f||null}),[p,s,f,c]),m=WY((function(){return i.visible}),[i.visible]),v=WY((function(){return y().createElement(d,null,h)}),[d,h]);return y().createElement(rE,{prefixCls:GY,locale:ZY[au.language]},a.mode===Ks.Modal?y().createElement(cA,{className:"authing-g2-render-module-modal",closeIcon:y().createElement(GD,{type:"authing-close-line",className:"g2-modal-close"}),closable:null===(n=a.clickCloseable)||void 0===n||n,open:m,onCancel:null==i?void 0:i.onClose,keyboard:a.escCloseable,maskClosable:!1,getContainer:null!==(r=a.target)&&void 0!==r&&r},y().createElement("div",{className:"authing-g2-render-module"},v)):y().createElement("div",{style:a.style,className:"authing-g2-render-module ".concat(a.__internalRequest__?"":"authing-g2-render-module-normal")},v))},XY=function(e){if(!e)return!0;var t=function(e){return
|
|
18644
|
+
c&&p[c]?p[c]((new Date).toString()):y().createElement(pV,{error:new Error("未知错误!moduleName 为 <b>".concat(c,"</b> 无法识别"))}):f||null}),[p,s,f,c]),m=WY((function(){return i.visible}),[i.visible]),v=WY((function(){return y().createElement(d,null,h)}),[d,h]);return y().createElement(rE,{prefixCls:GY,locale:ZY[au.language]},a.mode===Ks.Modal?y().createElement(cA,{className:"authing-g2-render-module-modal",closeIcon:y().createElement(GD,{type:"authing-close-line",className:"g2-modal-close"}),closable:null===(n=a.clickCloseable)||void 0===n||n,open:m,onCancel:null==i?void 0:i.onClose,keyboard:a.escCloseable,maskClosable:!1,getContainer:null!==(r=a.target)&&void 0!==r&&r},y().createElement("div",{className:"authing-g2-render-module"},v)):y().createElement("div",{style:a.style,className:"authing-g2-render-module ".concat(a.__internalRequest__?"":"authing-g2-render-module-normal")},v))},XY=function(e){if(!e)return!0;var t=function(e){return BW=e}(e);return cd()(t,e)},eJ=function(e){var t,n=e.guardProps,r=e.initState;return t=n.facePlugin,XY(t),y().createElement(JF,{guardProps:n,initState:r},y().createElement(QY,{guardProps:n}))},tJ=function(){return tJ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tJ.apply(this,arguments)},nJ=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},rJ=y().memo,oJ=y().useEffect,iJ=y().useRef,aJ=y().useState,sJ=rJ((function(e){var t,n,r=e.config,o=iJ(null),i=nJ(aJ(!1),2),a=i[0],s=i[1];
|
|
18643
18645
|
// 锁定 Guard 中 window 指向
|
|
18644
|
-
oJ((function(){if(null==o?void 0:o.current){var e=YJ(o.current);
|
|
18646
|
+
oJ((function(){if(null==o?void 0:o.current){var e=YJ(o.current);EH(e),s(!0)}}),[]);
|
|
18645
18647
|
// 首页 init 数据
|
|
18646
18648
|
var c={moduleName:null!==(t=null==r?void 0:r.defaultScenes)&&void 0!==t?t:AL.LOGIN,initData:null!==(n=null==r?void 0:r.defaultInitData)&&void 0!==n?n:{}};return y().createElement("div",{ref:o},a&&y().createElement(eJ,{guardProps:e,initState:c}))}),(function(e,t){return KJ(e,t)}));function cJ(e){return oJ((function(){var t,n,r,o,i;t={container:document.querySelector("#authing-guard-container-v4"),element:y().createElement(sJ,tJ({},e))},n=t.container,r=t.element,o=(0,b/* createRoot */.s)(n),(i=w.findIndex((function(e){return e.container===n})))>-1?w.splice(i,1,{root:o,container:n}):w.push({container:n,root:o}),o.render(r)}),[e]),y().createElement("div",{id:"authing-guard-container-v4"})}!function(e){
|
|
18647
18649
|
// 切换 Module
|
|
@@ -18690,7 +18692,7 @@ return t===Ws.Phone?a.includes(Vs.PhoneCode)&&s.includes("phone-code")?{specifyD
|
|
|
18690
18692
|
// 通过邮箱验证码注册成功
|
|
18691
18693
|
t===Ws.EmailCode?a.includes(Vs.PhoneCode)&&s.includes("email-code")?{specifyDefaultLoginMethod:Vs.PhoneCode,lockMethod:"email-code"}:a.includes(Vs.Password)&&c.includes("email-password")?{specifyDefaultLoginMethod:Vs.Password}:void 0:
|
|
18692
18694
|
// 通过邮箱密码注册成功
|
|
18693
|
-
t===Ws.Email?a.includes(Vs.Password)&&c.includes("email-password")?{specifyDefaultLoginMethod:Vs.Password}:a.includes(Vs.PhoneCode)&&s.includes("email-code")?{specifyDefaultLoginMethod:Vs.PhoneCode,lockMethod:"email-code"}:void 0:void 0},ZJ=function(e){return NJ("phone",e)||NJ("email",e)?e:""},QJ=function(){var e,t;return Object.keys(yL).includes(au.language)?au.language:null===(e=null==au?void 0:au.languages)||void 0===e?void 0:e[(null===(t=null==au?void 0:au.languages)||void 0===t?void 0:t.length)-1]},XJ=function(e){var t=/^\/(.*)\/([a-z]*)$/.exec(e);return t?new RegExp(t[1],t[2]):null},eZ=function(e,t,n){var r,o,i,a,s,c,l=QJ(),u=e.split("-")[0];return t.get(u)?null!==(c=null!==(i=null===(o=null===(r=t.get(u))||void 0===r?void 0:r.i18n)||void 0===o?void 0:o[l])&&void 0!==i?i:null===(s=null===(a=t.get(u))||void 0===a?void 0:a.i18n)||void 0===s?void 0:s[n])&&void 0!==c?c:t.get(u).label:""},tZ=function(e,t,n){var r=[];return e.forEach((function(e){var o=eZ(e,t,n);o&&r.push(o)})),r.join(" / ")},nZ=function(e,t){var n=e.findIndex((function(e){return e===t}));if(n>0){var r=e.splice(n,1);e.unshift(r[0])}return e},rZ=y().useEffect,oZ=function(){if("undefined"!=typeof window){var e=
|
|
18695
|
+
t===Ws.Email?a.includes(Vs.Password)&&c.includes("email-password")?{specifyDefaultLoginMethod:Vs.Password}:a.includes(Vs.PhoneCode)&&s.includes("email-code")?{specifyDefaultLoginMethod:Vs.PhoneCode,lockMethod:"email-code"}:void 0:void 0},ZJ=function(e){return NJ("phone",e)||NJ("email",e)?e:""},QJ=function(){var e,t;return Object.keys(yL).includes(au.language)?au.language:null===(e=null==au?void 0:au.languages)||void 0===e?void 0:e[(null===(t=null==au?void 0:au.languages)||void 0===t?void 0:t.length)-1]},XJ=function(e){var t=/^\/(.*)\/([a-z]*)$/.exec(e);return t?new RegExp(t[1],t[2]):null},eZ=function(e,t,n){var r,o,i,a,s,c,l=QJ(),u=e.split("-")[0];return t.get(u)?null!==(c=null!==(i=null===(o=null===(r=t.get(u))||void 0===r?void 0:r.i18n)||void 0===o?void 0:o[l])&&void 0!==i?i:null===(s=null===(a=t.get(u))||void 0===a?void 0:a.i18n)||void 0===s?void 0:s[n])&&void 0!==c?c:t.get(u).label:""},tZ=function(e,t,n){var r=[];return e.forEach((function(e){var o=eZ(e,t,n);o&&r.push(o)})),r.join(" / ")},nZ=function(e,t){var n=e.findIndex((function(e){return e===t}));if(n>0){var r=e.splice(n,1);e.unshift(r[0])}return e},rZ=y().useEffect,oZ=function(){if("undefined"!=typeof window){var e=CH(),t=null==e?void 0:e.defaultView;return t||window}},iZ=function(e,t,n){rZ((function(){t&&(e(Date.now()),function(e){void 0===e&&(e={}),e}(n),(null==n?void 0:n.publicConfig)&&gZ(t,n.publicConfig),(null==n?void 0:n.pageConfig)&&wZ(t,n.pageConfig))}),[t,n,e])},aZ=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=oZ();if(n&&e.length>0){var r=function(e,t,n){var r=i(2655);return!!(t.includes(n)||$c()(t,(function(e){return!!r(e,n)}))||e.includes(n)||$c()(e,(function(e){return!!r(e,n)})))}(e,t,n.location.origin);if(!r)throw new Error("".concat(au.t("common.corsErrorMessage")).concat(au.t("common.corsErrorMessage2")))}},sZ=function(){return sZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sZ.apply(this,arguments)},cZ=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},lZ=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},uZ=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},dZ=y().useCallback,fZ=y().useEffect,pZ=y().useMemo,hZ=y().useState,mZ={},vZ=function(e){return null==mZ?void 0:mZ[e]},gZ=function(e,t){return mZ[e]=t},yZ={},bZ=function(e){return null==yZ?void 0:yZ[e]},wZ=function(e,t){return yZ[e]=t},CZ=function(e,t){return cZ(void 0,void 0,void 0,(function(){var n,r,o,i;return lZ(this,(function(a){switch(a.label){case 0:r=t.get,a.label=1;case 1:return a.trys.push([1,3,,4]),[4/*yield*/,r("/api/v2/applications/".concat(e,"/public-config"))];case 2:return n=a.sent(),[3/*break*/,4];case 3:throw a.sent(),SJ.error("Please check your config or network"),new Error("Please check your config or network");case 4:if(200!==n.code||!n.data)throw SJ.error(null!==(o=null==n?void 0:n.message)&&void 0!==o?o:"Please check your config"),new Error(null!==(i=null==n?void 0:n.message)&&void 0!==i?i:"Please check your config");return aZ(n.data.allowedOrigins,n.data.corsWhitelist),gZ(e,n.data),t.setUserpoolId(n.data.userPoolId),[2/*return*/,vZ(e)]}}))}))},EZ=function(e,t){return cZ(void 0,void 0,void 0,(function(){var n,r,o,i;return lZ(this,(function(a){switch(a.label){case 0:r=t.get,a.label=1;case 1:return a.trys.push([1,3,,4]),[4/*yield*/,r("/api/v2/applications/".concat(e,"/components-public-config/guard"))];case 2:return n=a.sent(),[3/*break*/,4];case 3:throw a.sent(),SJ.error("Please check your config or network"),new Error("Please check your config or network");case 4:if(200!==n.code||!n.data)throw SJ.error(null!==(o=null==n?void 0:n.message)&&void 0!==o?o:"Please check your config"),new Error(null!==(i=null==n?void 0:n.message)&&void 0!==i?i:"Please check your config");return wZ(e,n.data),[2/*return*/,bZ(e)]}}))}))},kZ=function(e,t){var n=uZ(hZ(),2),r=n[0],o=n[1];return fZ((function(){o(sZ(sZ({},e),t))}),[e,t]),r},SZ=function(e,t){var n,r,o,i,a,s,c,l,u,d,f,p,h,m,v,g,y,b,w,C,E=null!==(n=e.autoRegister)&&void 0!==n?n:t.ssoPageComponentDisplay.autoRegisterThenLoginHintInfo,k=null===(r=t.passwordTabConfig.validRegisterMethods)||void 0===r?void 0:r.concat((null===(i=null===(o=t.verifyCodeTabConfig)||void 0===o?void 0:o.validRegisterMethods)||void 0===i?void 0:i.map((function(e){return function(e){switch(e){case Gs.Email:return Ws.Email;case Gs.EmailCode:return Ws.EmailCode;case Gs.Phone:return Ws.Phone;default:return e}}(e)})))||[]),S=qc()&&Vs.PhoneCode;return sZ(sZ({},e),{title:null!==(a=e.title)&&void 0!==a?a:t.name,logo:e.logo?e.logo:t.logo,loginMethods:null!==(l=null!==(s=null==e?void 0:e.loginMethods)&&void 0!==s?s:null===(c=t.loginTabs)||void 0===c?void 0:c.list)&&void 0!==l?l:[],passwordLoginMethods:null!==(d=null!==(u=null==e?void 0:e.passwordLoginMethods)&&void 0!==u?u:t.passwordTabConfig.validLoginMethods)&&void 0!==d?d:[],
|
|
18694
18696
|
// 默认登录方式
|
|
18695
18697
|
defaultLoginMethod:S||e.defaultLoginMethod||t.loginTabs.default,
|
|
18696
18698
|
// 禁止重制密码
|