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Aa,iBACK,IAAjCY,EAAgBG,MAAMW,QAAgBK,EAAOpF,UAAUiF,SAAS,uBACnEhB,EAAgBvE,aAAa,eAAgB,SAG/C,MAAM6F,EAAepI,SAASsC,eAAe,cACvC+F,EAAWD,GAAcF,cAAcC,QAAQ,OAMrD,GALkD,SAA9CC,EAAalC,aAAa,iBACK,IAA9BkC,EAAanB,MAAMW,QAAgBS,EAASxF,UAAUiF,SAAS,uBAClEM,EAAa7F,aAAa,eAAgB,SAGf,aAAzB8E,EAASC,OAAOjG,MAA+C,0BAAxBgG,EAASC,QAAQC,GAAgC,CAC1F,MAAMe,EAAYjB,EAASC,OAErBiB,EAAgBD,EAAUJ,cAAc1F,cAAc,QACvD+F,GAAehB,KAClBgB,EAAchB,GAAK,qBACnBe,EAAU9D,gBAAgB,cAC1B8D,EAAU/F,aAAa,kBAAmBgG,EAAchB,IAE5D,CACF,CACF,IAMSiB,QAAQtB,EApHF,CACbuB,YAAY,EAAMC,WAAW,EAAMC,SAAS,EAAMC,eAAe,G","sources":["webpack://auth0-login/./src/resources.js","webpack://auth0-login/../shared/resources.js","webpack://auth0-login/webpack/bootstrap","webpack://auth0-login/./src/login-page.js"],"sourcesContent":["const sharedResources = require('../../shared/resources');\r\n\r\n/* eslint-disable max-len */\r\nconst enCopy = {\r\n error: {\r\n forgotPassword: {\r\n // too_many_requests: 'You have reached the limit on password change attempts. Please wait before trying again.',\r\n 'lock.fallback': 'Something went wrong. Try again.',\r\n // enterprise_email: 'Your email's domain is part of an Enterprise identity provider. To reset your password, please see your security administrator.',\r\n },\r\n login: {\r\n // blocked_user: 'The user is blocked.',\r\n invalid_user_password: 'Incorrect email or password. Try again.',\r\n // invalid_captcha: 'Solve the challenge question to verify you are not a robot.',\r\n // invalid_recaptcha: 'Select the checkbox to verify you are not a robot.',\r\n 'lock.fallback': 'Something went wrong. Try again.',\r\n // 'lock.invalid_code': 'Wrong code.',\r\n 'lock.invalid_email_password': 'Your email or password is incorrect. Please check your details and try again.',\r\n // 'lock.invalid_username_password': 'Wrong username or password.',\r\n // 'lock.network': 'We could not reach the server. Please check your connection and try again.',\r\n // 'lock.popup_closed': 'Popup window closed. Try again.',\r\n 'lock.unauthorized': 'Account locked. Reset password to continue.',\r\n // 'lock.mfa_registration_required': 'Multifactor authentication is required but your device is not enrolled. Please enroll it before moving on.',\r\n // 'lock.mfa_invalid_code': 'Wrong code. Please try again.',\r\n // password_change_required: 'You need to update your password because this is the first time you are logging in, or because your password has expired.', // TODO: verify error code\r\n // password_leaked: 'We have detected a potential security issue with this account. To protect your account, we have blocked this login. An email was sent with instruction on how to unblock your account.',\r\n too_many_attempts: 'Account locked. Reset password to continue.',\r\n // too_many_requests: \"We're sorry. There are too many requests right now. Please reload the page and try again. If this persists, please try again later.\",\r\n // session_missing: \"Couldn't complete your authentication request. Please try again after closing all open dialogs\",\r\n // 'hrd.not_matching_email': 'Please use your corporate email to login.'\r\n },\r\n // passwordless: {\r\n // 'bad.email': 'The email is invalid',\r\n // 'bad.phone_number': 'The phone number is invalid',\r\n // 'lock.fallback': \"We're sorry, something went wrong\"\r\n // },\r\n signUp: {\r\n // invalid_password: 'Password is invalid.',\r\n 'lock.fallback': 'Something went wrong. Try again.',\r\n // password_dictionary_error: 'Password is too common.',\r\n // password_no_user_info_error: 'Password is based on user information.',\r\n password_strength_error: 'Your password does not meet the requirements.',\r\n user_exists: 'An account with this email already exists.',\r\n // username_exists: 'The username already exists.',\r\n // social_signup_needs_terms_acception: 'Please agree to the Terms of Service below to continue.'\r\n },\r\n },\r\n blankEmailErrorHint: 'Enter email.',\r\n // codeInputPlaceholder: 'your code',\r\n // databaseEnterpriseLoginInstructions: '',\r\n // databaseEnterpriseAlternativeLoginInstructions: 'or',\r\n // databaseSignUpInstructions: '',\r\n // databaseAlternativeSignUpInstructions: 'or',\r\n // emailInputPlaceholder: 'yours@example.com',\r\n // captchaCodeInputPlaceholder: 'Enter the code shown above',\r\n // captchaMathInputPlaceholder: 'Solve the formula shown above',\r\n // enterpriseLoginIntructions: 'Login with your corporate credentials.',\r\n // enterpriseActiveLoginInstructions: 'Please enter your corporate credentials at %s.',\r\n // failedLabel: 'Failed!',\r\n forgotPasswordTitle: 'Reset your password',\r\n forgotPasswordAction: 'Forgot your password?',\r\n forgotPasswordInstructions: 'Enter your email address and we’ll send you a link to reset your password.',\r\n forgotPasswordSubmitLabel: 'Send Reset Link',\r\n forgotPasswordLinkExpired: 'Expired link: Request new link to reset your password.',\r\n // invalidErrorHint: '',\r\n invalidPasswordErrorHint: 'Your password does not meet the requirements.',\r\n invalidEmailErrorHint: 'Enter valid email.',\r\n // invalidUsernameErrorHint: 'Username is invalid',\r\n // lastLoginInstructions: 'Last time you logged in with',\r\n // loginAtLabel: 'Log in at %s',\r\n loginLabel: 'Sign In',\r\n loginSubmitLabel: 'Sign In',\r\n // loginWithLabel: 'Sign in with %s',\r\n // notYourAccountAction: 'Not your account?',\r\n // passwordInputPlaceholder: 'your password',\r\n title: 'Sign in to your account',\r\n // passwordlessEmailAlternativeInstructions: 'Otherwise, enter your email to sign in
or create an account',\r\n // passwordlessEmailCodeInstructions: 'An email with the code has been sent to %s.',\r\n // passwordlessEmailInstructions: 'Enter your email to sign in
or create an account',\r\n // passwordlessSMSAlternativeInstructions: 'Otherwise, enter your phone to sign in
or create an account',\r\n // passwordlessSMSCodeInstructions: 'An SMS with the code has been sent to %s.',\r\n // passwordlessSMSInstructions: 'Enter your phone to sign in
or create an account',\r\n // phoneNumberInputPlaceholder: 'your phone number',\r\n // resendCodeAction: 'Did not get the code?',\r\n // resendLabel: 'Resend',\r\n // resendingLabel: 'Resending...',\r\n // retryLabel: 'Retry',\r\n // sentLabel: 'Sent!',\r\n // showPassword: 'Show password',\r\n signUpTitle: 'Create your account',\r\n signUpLabel: 'Create an account',\r\n signUpSubmitLabel: 'Create Account',\r\n // signUpTerms: 'By signing up, you agree to our terms of service and privacy policy.',\r\n // signUpWithLabel: 'Sign up with %s',\r\n // socialLoginInstructions: '',\r\n // socialSignUpInstructions: '',\r\n // ssoEnabled: 'Single Sign-On enabled',\r\n // submitLabel: 'Submit',\r\n // unrecoverableError: 'Something went wrong.
Please contact technical support.',\r\n // usernameFormatErrorHint: 'Use %d-%d letters, numbers and the following characters: \"_\", \".\", \"+\", \"-\"',\r\n // usernameInputPlaceholder: 'your username',\r\n // usernameOrEmailInputPlaceholder: 'username/email',\r\n // welcome: 'Welcome %s!',\r\n // windowsAuthInstructions: 'You are connected from your corporate network…',\r\n // windowsAuthLabel: 'Windows Authentication',\r\n // mfaInputPlaceholder: 'Code',\r\n // mfaLoginTitle: '2-Step Verification',\r\n // mfaLoginInstructions: 'Please enter the verification code generated by your mobile application.',\r\n // mfaSubmitLabel: 'Log In',\r\n // mfaCodeErrorHint: 'Use %d numbers'\r\n privacyPolicy: 'Privacy Policy',\r\n privacyPolicyHref: 'en-ca/legal/privacy-policy/',\r\n termsOfUse: 'Terms of Use',\r\n termsOfUseHref: 'en-ca/legal/terms-of-use/ ',\r\n copyright: 'All rights reserved.',\r\n passwordLabel: 'Password',\r\n emailLabel: 'Email address',\r\n goBack: 'go back',\r\n firstName: 'First name',\r\n lastName: 'Last name',\r\n daytimePhone: 'Phone number',\r\n emailOptIn: 'Join our email list to get exclusive offers, the best in books, and more. You may unsubscribe at any time.',\r\n requiredField: 'Enter information.',\r\n blankPasswordErrorHint: 'Enter password.',\r\n createBlankPasswordErrorHint: 'Create password.',\r\n invalidEmailGlobalError: 'Enter valid email.',\r\n verifyEmailLinkExpired: 'Expired link: Sign in to request new link to verify your email.',\r\n ...sharedResources.enCopy,\r\n};\r\n\r\nconst frCopy = {\r\n error: {\r\n forgotPassword: {\r\n // too_many_requests: 'Vous avez atteint la limite de tentatives de changement de mot de passe. Veuillez patienter avant de recommencer.',\r\n 'lock.fallback': 'Une erreur s\\'est produite. Veuillez réessayer.',\r\n // enterprise_email: \"Le domaine de votre messagerie fait partie d'un fournisseur d'identité d'entreprise. Pour réinitialiser votre mot de passe, veuillez contacter votre administrateur de sécurité.\"\r\n },\r\n login: {\r\n // blocked_user: 'L’utilisateur est bloqué.',\r\n invalid_user_password: 'L\\'adresse de courriel ou le mot de passe est invalide. Veuillez réessayer.',\r\n // invalid_captcha: \"Résolvez la question du défi pour vérifier que vous n'êtes pas un robot.\",\r\n // invalid_recaptcha: \"Cochez la case pour vérifier que vous n'êtes pas un robot.\"\r\n 'lock.fallback': 'Une erreur s\\'est produite. Veuillez réessayer.',\r\n // 'lock.invalid_code': 'Mauvais code.',\r\n 'lock.invalid_email_password': 'Votre adresse de courriel ou votre mot de passe ne correspondent pas. Veuillez vérifier vos identifiants de connexion et réessayer.',\r\n // 'lock.invalid_username_password': 'Mauvais nom d’utilisateur ou mot de passe.',\r\n // 'lock.network': 'Nous ne pouvons pas joindre le serveur. Vérifiez votre connexion et réessayez.',\r\n // 'lock.popup_closed': 'La fenêtre popup a été fermée. Veuillez réessayer.',\r\n 'lock.unauthorized': 'Le compte a été verrouillé. Veuillez réinitialiser le mot de passe pour continuer.',\r\n // 'lock.mfa_registration_required': \"l'authentification multifactorielle est nécessaire, mais votre appareil n'est pas inscrit. Veuillez vous inscrire avant de passer.\",\r\n // 'lock.mfa_invalid_code': 'Mauvais code. Veuillez réessayer.',\r\n // password_change_required: 'Vous devez mettre à jour votre mot de passe, soit parce qu’il s’agit de votre première connexion, soit parce que ce dernier a expiré.',\r\n // password_leaked: 'Cette connexion a été bloquée parce que votre mot de passe a été utilisé sur un autre site web. Nous vous avons envoyé un courriel avec des instructions pour la débloquer.',\r\n too_many_attempts: 'Le compte a été verrouillé. Veuillez réinitialiser le mot de passe pour continuer.',\r\n // too_many_requests: 'Nous sommes désolés. Il y a trop de demandes en ce moment. Veuillez recharger la page et réessayer. Si cela persiste, veuillez réessayer ultérieurement.',\r\n // session_missing: \"Impossible de terminer votre demande d'authentification. Veuillez essayer de nouveau après la fermeture de tous les dialogues ouverts\",\r\n // 'hrd.not_matching_email': \"Veuillez utiliser votre messagerie d'entreprise pour vous connecter.\",\r\n },\r\n // passwordless: {\r\n // 'bad.email': 'L’adresse de messagerie n’est pas valide',\r\n // 'bad.phone_number': 'Le numéro de téléphone n’est pas valide',\r\n // 'lock.fallback': 'Nous sommes désolés, un problème est survenu'\r\n // },\r\n signUp: {\r\n // invalid_password: 'Le mot de passe n’est pas valide.',\r\n 'lock.fallback': 'Une erreur s\\'est produite. Veuillez réessayer.',\r\n // password_dictionary_error: 'Le mot de passe est trop commun.',\r\n // password_no_user_info_error: 'Le mot de passe est basé sur des informations utilisateur.',\r\n password_strength_error: 'Le mot de passe ne répond pas aux critères.',\r\n user_exists: 'Un compte lié à cette adresse de courriel existe déjà.',\r\n // username_exists: 'Ce nom d’utilisateur existe déjà.',\r\n // social_signup_needs_terms_acception: \"Veuillez accepter les conditions d'utilisation ci-dessous pour continuer.\"\r\n },\r\n },\r\n blankEmailErrorHint: 'Entrez une adresse de courriel.',\r\n // codeInputPlaceholder: 'votre code',\r\n // databaseEnterpriseLoginInstructions: '',\r\n // databaseEnterpriseAlternativeLoginInstructions: 'ou',\r\n // databaseSignUpInstructions: '',\r\n // databaseAlternativeSignUpInstructions: 'ou',\r\n // emailInputPlaceholder: 'votreadresse@exemple.com',\r\n // captchaCodeInputPlaceholder: 'Entrez le code ci-dessus',\r\n // captchaMathInputPlaceholder: 'Résolvez la formule ci-dessus'\r\n // enterpriseLoginIntructions: 'Connectez-vous avec vos identifiants d’entreprise.',\r\n // enterpriseActiveLoginInstructions: 'Veuillez entrer les identifiants de connexion de votre entreprise %s.',\r\n // failedLabel: 'A échoué !',\r\n forgotPasswordTitle: 'Réinitialisez votre mot de passe',\r\n forgotPasswordAction: 'Vous avez oublié votre mot de passe?',\r\n forgotPasswordInstructions: 'Entrez votre adresse de courriel et nous vous enverrons un lien vous permettant de réinitialiser votre mot de passe.',\r\n forgotPasswordSubmitLabel: 'Envoyer le lien',\r\n forgotPasswordLinkExpired: 'Lien expiré. Veuillez faire une nouvelle demande de réinitialisation.',\r\n // invalidErrorHint: '',\r\n invalidPasswordErrorHint: 'Le mot de passe ne répond pas aux critères.',\r\n invalidEmailErrorHint: 'Entrez une adresse de courriel valide.',\r\n // invalidUsernameErrorHint: 'Invalide',\r\n // lastLoginInstructions: 'Dernière connexion avec',\r\n // loginAtLabel: 'Connexion à %s',\r\n loginLabel: 'Ouvrez une session',\r\n loginSubmitLabel: 'Ouvrir une session',\r\n // loginWithLabel: 'Se connecter avec %s',\r\n // notYourAccountAction: 'Ceci n’est pas votre compte ?',\r\n // passwordInputPlaceholder: 'Votre mot de passe',\r\n title: 'Ouvrez une session dans votre compte',\r\n // passwordlessEmailAlternativeInstructions: 'Sinon entrez votre adresse de messagerie pour vous connecter
ou créez un compte',\r\n // passwordlessEmailCodeInstructions: 'Un courriel avec le code a été envoyé à %s.',\r\n // passwordlessEmailInstructions: 'Entrez votre adresse de messagerie pour vous connecter
ou créez un compte',\r\n // passwordlessSMSAlternativeInstructions: 'Sinon saisissez votre numéro de téléphone pour vous connecter
ou créez un compte',\r\n // passwordlessSMSCodeInstructions: 'Un SMS avec le code a été envoyé à %s.',\r\n // passwordlessSMSInstructions: 'Saisissez votre numéro de téléphone pour vous connecter
ou créez un compte',\r\n // phoneNumberInputPlaceholder: 'votre numéro de téléphone',\r\n // resendCodeAction: 'Vous n’avez pas reçu le code ?',\r\n // resendLabel: 'Envoyer une nouvelle fois',\r\n // resendingLabel: 'Nouvel envoi en cours…',\r\n // retryLabel: 'Réessayer',\r\n // sentLabel: 'Envoyé !',\r\n // showPassword: 'Montrer le mot de passe',\r\n signUpTitle: 'Créez votre compte',\r\n signUpLabel: 'Créez un compte',\r\n signUpSubmitLabel: 'Créer un compte',\r\n // signUpTerms: \"En vous inscrivant, vous acceptez nos conditions d'utilisation et notre politique de confidentialité.\",\r\n // signUpWithLabel: 'S’inscrire avec %s',\r\n // socialLoginInstructions: '',\r\n // socialSignUpInstructions: '',\r\n // ssoEnabled: 'Authentification unique activée',\r\n // submitLabel: 'Envoyer',\r\n // unrecoverableError: 'Un problème est survenu.
Veuillez contacter l’assistance technique.',\r\n // usernameFormatErrorHint: 'Utilisez %d-%d lettres, chiffres et les caractères suivants: \"_\", \".\", \"+\", \"-\"',\r\n // usernameInputPlaceholder: 'votre nom d’utilisateur',\r\n // usernameOrEmailInputPlaceholder: 'nom d’utilisateur/adresse de messagerie',\r\n // welcome: 'Bienvenue %s !',\r\n // windowsAuthInstructions: 'Vous êtes connecté depuis votre réseau d’entreprise...',\r\n // windowsAuthLabel: 'Authentification Windows',\r\n // mfaInputPlaceholder: 'Code',\r\n // mfaLoginTitle: '2-Step Vérification',\r\n // mfaLoginInstructions: 'Veuillez entrer le code de vérification généré par votre application mobile.',\r\n // mfaSubmitLabel: \"S'identifier\",\r\n // mfaCodeErrorHint: 'Utilisez des numéros %d',\r\n privacyPolicy: 'Politique de confidentialité',\r\n privacyPolicyHref: 'fr-ca/politique-juridique/politique-de-confidentialite/',\r\n termsOfUse: 'Conditions d’utilisation',\r\n termsOfUseHref: 'fr-ca/politique-juridique/conditions-dutilisation/',\r\n copyright: 'Tous droits réservés.',\r\n passwordLabel: 'Mot de passe',\r\n emailLabel: 'Adresse de courriel',\r\n goBack: 'retour',\r\n firstName: 'Prénom',\r\n lastName: 'Nom de famille',\r\n daytimePhone: 'Numéro de téléphone',\r\n emailOptIn: 'Inscrivez-vous à notre liste de diffusion pour recevoir des offres exclusives, des recommandations de lecture et bien plus. Vous pouvez vous désinscrire à tout moment.',\r\n requiredField: 'Entrez les renseignements.',\r\n blankPasswordErrorHint: 'Entrez le mot de passe.',\r\n createBlankPasswordErrorHint: 'Créez un mot de passe.',\r\n invalidEmailGlobalError: 'Entrez une adresse de courriel.',\r\n verifyEmailLinkExpired: 'Lien expiré. Ouvrez une session pour demander qu\\'on vous envoie un nouveau courriel de validation.',\r\n ...sharedResources.frCopy,\r\n};\r\n\r\nmodule.exports = {\r\n enCopy,\r\n frCopy,\r\n};\r\n","/* eslint-disable max-len */\r\nconst enCopy = {\r\n // success: {\r\n // // success messages show above the form or in a confirmation pane\r\n // logIn: 'Thanks for logging in.',\r\n // forgotPassword: \"We've just sent you an email to reset your password.\",\r\n // magicLink: 'We sent you a link to log in
to %s.',\r\n // signUp: 'Thanks for signing up.'\r\n // },\r\n // blankErrorHint: '',\r\n // blankPasswordErrorHint: 'Create password.',\r\n // blankUsernameErrorHint: \"Username can't be blank\",\r\n // blankCaptchaErrorHint: \"Can't be blank\",\r\n\r\n passwordStrength: {\r\n containsAtLeast: 'Include %d of these %d:',\r\n // identicalChars: 'No more than %d identical characters in a row (e.g., \"%s\" not allowed)',\r\n // nonEmpty: 'Non-empty password required',\r\n numbers: 'A number',\r\n lengthAtLeast: 'A minimum of %d characters',\r\n lowerCase: 'A lowercase letter',\r\n // shouldContain: 'Should contain:',\r\n specialCharacters: 'A symbol',\r\n upperCase: 'An uppercase letter',\r\n },\r\n pwdStrengthTitle: 'Password requirements',\r\n};\r\n \r\nconst frCopy = {\r\n // success: {\r\n // logIn: 'Merci de vous être connecté.',\r\n // forgotPassword: 'Nous venons de vous envoyer un courriel pour réinitialiser votre mot de passe.',\r\n // magicLink: 'Nous vous avons envoyé un lien pour vous connecter
à %s.',\r\n // signUp: 'Merci de vous être inscrit.'\r\n // },\r\n // blankErrorHint: '',\r\n // blankPasswordErrorHint: 'Créez un mot de passe.',\r\n // blankUsernameErrorHint: 'Ne peut être vide',\r\n // blankCaptchaErrorHint: 'Ne peut être vide',\r\n\r\n passwordStrength: {\r\n containsAtLeast: 'Au moins %d de ces %d éléments:',\r\n // identicalChars: 'Pas plus de %d caractères identiques dans une ligne (par ex., « %s » n’est pas autorisé)',\r\n // nonEmpty: 'Mot de passe non vide requis',\r\n numbers: 'Un chiffre',\r\n lengthAtLeast: 'Au moins %d caractères',\r\n lowerCase: 'Une lettre minuscule',\r\n // shouldContain: 'Doit contenir :',\r\n specialCharacters: 'Un symbole',\r\n upperCase: 'Une lettre majuscule',\r\n },\r\n pwdStrengthTitle: 'Votre mot de passe doit comprendre',\r\n};\r\n\r\nmodule.exports = {\r\n enCopy,\r\n frCopy,\r\n};\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","const { enCopy, frCopy } = require('./resources');\r\n\r\nlet forgotPasswordFlag = true;\r\nlet createPasswordFlag = false;\r\nconst FORM_MODE = {\r\n sign_in: 0,\r\n sign_up: 1,\r\n forgot_password: 2,\r\n};\r\n\r\n// handle languages\r\nconst params = (new URL(document.location)).searchParams;\r\nconst lang = params.get('lang');\r\nconst isFrench = lang === 'fr' || window.navigator.language.startsWith('fr');\r\ndocument.title = isFrench ? frCopy.title : enCopy.title;\r\n\r\n// initialize auth0 widget\r\nconst terms = isFrench ? frCopy : enCopy;\r\nwindow.loginConfig.language = isFrench ? 'fr' : 'en';\r\nwindow.loginConfig.languageDictionary = {\r\n ...window.loginConfig.languageDictionary,\r\n ...terms,\r\n};\r\n\r\nwindow.loginConfig.avatar = null;\r\nwindow.loginConfig.allowShowPassword = true;\r\nwindow.loginConfig.additionalSignUpFields = [\r\n {\r\n name: 'signup_given_name',\r\n placeholder: terms.firstName,\r\n validator(firstName) {\r\n return {\r\n valid: !!firstName,\r\n hint: terms.requiredField,\r\n };\r\n },\r\n },\r\n {\r\n name: 'signup_family_name',\r\n placeholder: terms.lastName,\r\n validator(lastName) {\r\n return {\r\n valid: !!lastName,\r\n hint: terms.requiredField,\r\n };\r\n },\r\n },\r\n {\r\n name: 'phone_daytime',\r\n placeholder: terms.daytimePhone,\r\n validator(phoneNumber) {\r\n return {\r\n valid: !!phoneNumber,\r\n hint: terms.requiredField,\r\n };\r\n },\r\n },\r\n {\r\n type: 'checkbox',\r\n name: 'signup_email_opt_in',\r\n placeholder: terms.emailOptIn,\r\n validator() {\r\n return true;\r\n },\r\n },\r\n];\r\n\r\nconst isChangePasswordLinkExpired = params.get('isChangePasswordLinkExpired') === 'true';\r\n\r\nif (isChangePasswordLinkExpired) {\r\n window.loginConfig.initialScreen = 'forgotPassword';\r\n}\r\n\r\nconst lock = new window.Auth0Lock(window.config.clientID, window.config.auth0Domain, window.loginConfig);\r\n\r\nconst isVerifyEmailLinkExpired = params.get('isVerifyEmailLinkExpired') === 'true';\r\n\r\nif (isChangePasswordLinkExpired) {\r\n const changePasswordLinkExpiredMessage = {\r\n flashMessage: {\r\n type: 'error',\r\n text: isFrench ? frCopy.forgotPasswordLinkExpired : enCopy.forgotPasswordLinkExpired,\r\n },\r\n };\r\n lock.show(changePasswordLinkExpiredMessage);\r\n} else if (isVerifyEmailLinkExpired) {\r\n const verifyEmailLinkExpiredMessage = {\r\n flashMessage: {\r\n type: 'error',\r\n text: isFrench ? frCopy.verifyEmailLinkExpired : enCopy.verifyEmailLinkExpired,\r\n },\r\n };\r\n lock.show(verifyEmailLinkExpiredMessage);\r\n} else {\r\n lock.show();\r\n}\r\n\r\nlock.on('signup error', (error) => {\r\n if (error.code === 'user_exists' || error.code.includes('error in email')) {\r\n const emailField = document.getElementById('1-email');\r\n emailField.setAttribute('aria-invalid', 'true');\r\n if (error.code.includes('error in email')) {\r\n const parent = document.querySelector('#auth0-lock-container-1');\r\n const child1 = parent.querySelector('.auth0-global-message-error');\r\n child1.querySelectorAll('span')[1].innerHTML = terms.invalidEmailGlobalError;\r\n }\r\n }\r\n});\r\n\r\nlock.on('authorization_error', (error) => {\r\n if (error.error === 'invalid_user_password') {\r\n const emailField = document.getElementById('1-email');\r\n emailField.parentNode.classList.add('invalid-user-password');\r\n emailField.setAttribute('aria-invalid', 'true');\r\n const passwordField = document.getElementById('1-password');\r\n passwordField.parentNode.classList.add('invalid-user-password');\r\n passwordField.setAttribute('aria-invalid', 'true');\r\n }\r\n\r\n window.indigoAnalyticsDataLayer.push({\r\n event: 'loginError',\r\n error: {\r\n error: error.description,\r\n },\r\n });\r\n});\r\n\r\nlock.on('signin submit', () => {\r\n window.indigoAnalyticsDataLayer.push({\r\n event: 'clickLogin',\r\n });\r\n});\r\n\r\nlock.on('signup success', (result) => {\r\n window.indigoAnalyticsDataLayer.push({\r\n event: 'createAccount',\r\n user: {\r\n email: result.email,\r\n membershipID: result.userId,\r\n emailOptIn: result.userMetadata.signupEmailOptIn,\r\n status: 'registered',\r\n },\r\n });\r\n});\r\n\r\nconst pwrequirements = document.querySelector('form');\r\nif (pwrequirements) pwrequirements.style.setProperty('--pw-requirements', `'${terms.pwdStrengthTitle}'`);\r\n\r\nfunction getCommonSvgElems(width, height, className = '') {\r\n const namespace = 'http://www.w3.org/2000/svg';\r\n const svgElem = document.createElementNS(namespace, 'svg');\r\n const svgPath = document.createElementNS(namespace, 'path');\r\n\r\n svgElem.setAttribute('aria-hidden', 'true');\r\n svgElem.setAttribute('role', 'img');\r\n svgElem.setAttribute('focusable', 'false');\r\n svgElem.setAttribute('width', `${width}`);\r\n svgElem.setAttribute('height', `${height}`);\r\n svgElem.setAttribute('viewbox', `0 0 ${width} ${height}`);\r\n if (className) {\r\n svgElem.classList.add(className);\r\n }\r\n\r\n return [svgElem, svgPath];\r\n}\r\n\r\nfunction getBackSvg() {\r\n const [svgElem, svgPath] = getCommonSvgElems(24, 24, 'back-arrow-svg');\r\n\r\n svgElem.setAttribute('version', '1.0');\r\n // eslint-disable-next-line max-len\r\n svgPath.setAttributeNS(null, 'd', 'M20.9502 7.99995L13.1623 0.212036L11.8364 1.53786L17.361 7.06247H0.5V8.93747H17.361L11.8364 14.462L13.1623 15.7879L20.9502 7.99995Z');\r\n\r\n svgElem.appendChild(svgPath);\r\n\r\n return svgElem;\r\n}\r\n\r\nfunction reorderFormFields() {\r\n const firstNameNode = document.querySelector('.auth0-lock-input-signup_given_name');\r\n const lastNameNode = document.querySelector('.auth0-lock-input-signup_family_name');\r\n const phoneNode = document.querySelector('.auth0-lock-input-phone_daytime');\r\n const emailNode = document.querySelector('.auth0-lock-input-email');\r\n\r\n if (emailNode) {\r\n emailNode.parentNode.insertBefore(firstNameNode, emailNode);\r\n emailNode.parentNode.insertBefore(lastNameNode, emailNode);\r\n emailNode.parentNode.insertBefore(phoneNode, emailNode);\r\n }\r\n}\r\n\r\nfunction augmentMarkup() {\r\n // add a lang=\"xx\" attribute to the top-level HTML tag\r\n const htmlTag = document.querySelector('html');\r\n htmlTag.setAttribute('lang', window.loginConfig.language);\r\n\r\n // relocate the navigation bar when in sign-in mode only...\r\n const titleElem = document.querySelector('.auth0-lock-name') || '';\r\n const origTabs = document.querySelector('.auth0-lock-form > div > .auth0-lock-tabs-container');\r\n const newTabs = document.querySelector('.auth0-lock-cred-pane-internal-wrapper > .auth0-lock-tabs-container');\r\n const newTabsWrapper = document.querySelector('.auth0-lock-cred-pane-internal-wrapper');\r\n\r\n // [a11y] remove redundant title attribute and add attributes to identify the title as a heading...\r\n titleElem.removeAttribute('title');\r\n titleElem.setAttribute('role', 'heading');\r\n titleElem.setAttribute('aria-level', '2');\r\n // [a11y] remove the placeholder attributes since they add extra noise for screen reader...\r\n document.querySelectorAll('input[type=\"email\"], input[type=\"password\"]')\r\n .forEach((elem) => elem.removeAttribute('placeholder'));\r\n\r\n if (titleElem.textContent === terms.title) {\r\n if (origTabs) {\r\n const origTabsParent = origTabs.parentNode;\r\n if (newTabs) {\r\n newTabsWrapper.removeChild(newTabs);\r\n }\r\n origTabsParent.removeChild(origTabs);\r\n newTabsWrapper.appendChild(origTabs);\r\n }\r\n } else if (titleElem.textContent === terms.signUpTitle) {\r\n if (newTabs) {\r\n newTabsWrapper.removeChild(newTabs);\r\n }\r\n }\r\n\r\n // create the back arrow SVG for when in log in/sign up mode; the back arrow for forgot password\r\n // is created automatically by lock\r\n // (note: when the two arrows are present at the same time, this one is styled out)\r\n if (!document.querySelector('.back-button-alt')) {\r\n const arrowBackBtn = document.createElement('button');\r\n const a11yTextSpan = document.createElement('span');\r\n a11yTextSpan.classList.add('sr-only');\r\n a11yTextSpan.textContent = terms.goBack;\r\n arrowBackBtn.appendChild(a11yTextSpan);\r\n\r\n arrowBackBtn.type = 'button';\r\n arrowBackBtn.className = 'back-button-alt';\r\n arrowBackBtn.appendChild(getBackSvg());\r\n document.querySelector('.auth0-lock-header').prepend(arrowBackBtn);\r\n document.querySelector('.back-button-alt').addEventListener('click', (e) => {\r\n e.preventDefault();\r\n const resetPasswordBackCTA = document.querySelector('.auth0-lock-back-button');\r\n const formNode = document.querySelector('form.auth0-lock-widget');\r\n const formMode = formNode.getAttribute('data-mode');\r\n const signUpBackCTA = document.querySelector('.auth0-lock-tabs a');\r\n if (resetPasswordBackCTA) {\r\n resetPasswordBackCTA.click();\r\n } else if (Number(formMode) === FORM_MODE.sign_up && signUpBackCTA) {\r\n signUpBackCTA.click();\r\n } else {\r\n // eslint-disable-next-line no-restricted-globals\r\n history.back();\r\n }\r\n }, false);\r\n }\r\n\r\n // add legal copy footer\r\n if (!document.querySelector('.legal-container')) {\r\n const legalContainer = document.createElement('div');\r\n legalContainer.classList.add('legal-container');\r\n legalContainer.innerHTML = `${terms.privacyPolicy}\r\n ${terms.termsOfUse}\r\n