@sheerid/jslib 1.80.0 → 1.83.0
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/es5/Tmetrix.bundle.js +5 -5
- package/es5/messages_ar.bundle.js +5 -5
- package/es5/messages_bg.bundle.js +5 -5
- package/es5/messages_cs.bundle.js +5 -5
- package/es5/messages_da.bundle.js +5 -5
- package/es5/messages_de.bundle.js +5 -5
- package/es5/messages_el.bundle.js +5 -5
- package/es5/messages_en-GB.bundle.js +5 -5
- package/es5/messages_es-ES.bundle.js +5 -5
- package/es5/messages_es.bundle.js +5 -5
- package/es5/messages_fi.bundle.js +5 -5
- package/es5/messages_fr-CA.bundle.js +5 -5
- package/es5/messages_fr.bundle.js +5 -5
- package/es5/messages_ga.bundle.js +5 -5
- package/es5/messages_hr.bundle.js +5 -5
- package/es5/messages_hu.bundle.js +5 -5
- package/es5/messages_id.bundle.js +5 -5
- package/es5/messages_it.bundle.js +5 -5
- package/es5/messages_iw.bundle.js +5 -5
- package/es5/messages_ja.bundle.js +5 -5
- package/es5/messages_ko.bundle.js +5 -5
- package/es5/messages_lo.bundle.js +5 -5
- package/es5/messages_lt.bundle.js +5 -5
- package/es5/messages_ms.bundle.js +5 -5
- package/es5/messages_nl.bundle.js +5 -5
- package/es5/messages_no.bundle.js +5 -5
- package/es5/messages_pl.bundle.js +5 -5
- package/es5/messages_pt-BR.bundle.js +5 -5
- package/es5/messages_pt.bundle.js +5 -5
- package/es5/messages_ru.bundle.js +5 -5
- package/es5/messages_sk.bundle.js +5 -5
- package/es5/messages_sl.bundle.js +5 -5
- package/es5/messages_sr.bundle.js +5 -5
- package/es5/messages_sv.bundle.js +5 -5
- package/es5/messages_th.bundle.js +5 -5
- package/es5/messages_tr.bundle.js +5 -5
- package/es5/messages_zh-HK.bundle.js +5 -5
- package/es5/messages_zh.bundle.js +5 -5
- package/es6/{ar-44a61ad2.es.js → ar-9e0fad1f.es.js} +16 -2
- package/es6/{cs-949aa4e9.es.js.map → ar-9e0fad1f.es.js.map} +1 -1
- package/es6/{bg-a8e7079f.es.js → bg-2aca771b.es.js} +16 -2
- package/es6/{ar-44a61ad2.es.js.map → bg-2aca771b.es.js.map} +1 -1
- package/es6/{cs-949aa4e9.es.js → cs-f5c83c6a.es.js} +16 -2
- package/es6/{da-2fc2c80d.es.js.map → cs-f5c83c6a.es.js.map} +1 -1
- package/es6/{da-2fc2c80d.es.js → da-b8d9bd0b.es.js} +16 -2
- package/es6/{bg-a8e7079f.es.js.map → da-b8d9bd0b.es.js.map} +1 -1
- package/es6/{de-401987e2.es.js → de-0a779e2e.es.js} +16 -2
- package/es6/de-0a779e2e.es.js.map +1 -0
- package/es6/{el-cec2efeb.es.js → el-0408a569.es.js} +16 -2
- package/es6/el-0408a569.es.js.map +1 -0
- package/es6/{en-GB-8fc067fd.es.js → en-GB-8b783a90.es.js} +16 -2
- package/es6/{en-GB-8fc067fd.es.js.map → en-GB-8b783a90.es.js.map} +1 -1
- package/es6/{es-aa33cef4.es.js → es-20274dff.es.js} +16 -2
- package/es6/es-20274dff.es.js.map +1 -0
- package/es6/{es-ES-e9527dfc.es.js → es-ES-0f1f844e.es.js} +16 -2
- package/es6/{es-ES-e9527dfc.es.js.map → es-ES-0f1f844e.es.js.map} +1 -1
- package/es6/{fi-21d78621.es.js → fi-a7b09e0e.es.js} +16 -2
- package/es6/fi-a7b09e0e.es.js.map +1 -0
- package/es6/{fr-ac551692.es.js → fr-759c23ea.es.js} +16 -2
- package/es6/fr-759c23ea.es.js.map +1 -0
- package/es6/{fr-CA-8fbf70d7.es.js → fr-CA-77227517.es.js} +16 -2
- package/es6/{fr-CA-8fbf70d7.es.js.map → fr-CA-77227517.es.js.map} +1 -1
- package/es6/{ga-fa4aaf25.es.js → ga-8ad780c1.es.js} +16 -2
- package/es6/ga-8ad780c1.es.js.map +1 -0
- package/es6/{hr-f6a75688.es.js → hr-8f666201.es.js} +16 -2
- package/es6/hr-8f666201.es.js.map +1 -0
- package/es6/{hu-dc5ce68a.es.js → hu-2d552fd1.es.js} +16 -2
- package/es6/hu-2d552fd1.es.js.map +1 -0
- package/es6/{id-8deafa7f.es.js → id-d4274ccb.es.js} +16 -2
- package/es6/id-d4274ccb.es.js.map +1 -0
- package/es6/{it-fd8a0a5d.es.js → it-e6743833.es.js} +16 -2
- package/es6/it-e6743833.es.js.map +1 -0
- package/es6/{iw-60b4ec5f.es.js → iw-0aa73f61.es.js} +16 -2
- package/es6/iw-0aa73f61.es.js.map +1 -0
- package/es6/{ja-8b791dc1.es.js → ja-c1f752a6.es.js} +16 -2
- package/es6/ja-c1f752a6.es.js.map +1 -0
- package/es6/{ko-9291b8b2.es.js → ko-bcddc775.es.js} +16 -2
- package/es6/ko-bcddc775.es.js.map +1 -0
- package/es6/{lo-af088901.es.js → lo-ab067913.es.js} +16 -2
- package/es6/lo-ab067913.es.js.map +1 -0
- package/es6/{lt-83e5c86c.es.js → lt-7f1cd913.es.js} +16 -2
- package/es6/lt-7f1cd913.es.js.map +1 -0
- package/es6/{ms-143f4b1c.es.js → ms-e3f64cc3.es.js} +16 -2
- package/es6/ms-e3f64cc3.es.js.map +1 -0
- package/es6/{nl-be3d61b4.es.js → nl-7a4d62d2.es.js} +16 -2
- package/es6/nl-7a4d62d2.es.js.map +1 -0
- package/es6/{no-b3e07beb.es.js → no-a25a637c.es.js} +16 -2
- package/es6/no-a25a637c.es.js.map +1 -0
- package/es6/{pl-9820aeff.es.js → pl-8981210c.es.js} +16 -2
- package/es6/pl-8981210c.es.js.map +1 -0
- package/es6/{pt-BR-36869313.es.js → pt-BR-ea998ac8.es.js} +16 -2
- package/es6/{pt-BR-36869313.es.js.map → pt-BR-ea998ac8.es.js.map} +1 -1
- package/es6/{pt-da8d7b16.es.js → pt-db66cedf.es.js} +16 -2
- package/es6/pt-db66cedf.es.js.map +1 -0
- package/es6/{ru-f1984706.es.js → ru-b8865189.es.js} +16 -2
- package/es6/ru-b8865189.es.js.map +1 -0
- package/es6/{sk-e3a93a76.es.js → sk-43185e62.es.js} +16 -2
- package/es6/sk-43185e62.es.js.map +1 -0
- package/es6/{sl-7b86c8f9.es.js → sl-efe6c730.es.js} +16 -2
- package/es6/sl-efe6c730.es.js.map +1 -0
- package/es6/{sr-a9993a3b.es.js → sr-a179f1ae.es.js} +16 -2
- package/es6/sr-a179f1ae.es.js.map +1 -0
- package/es6/{sv-54bcca73.es.js → sv-28a792ba.es.js} +16 -2
- package/es6/sv-28a792ba.es.js.map +1 -0
- package/es6/{th-a74755d2.es.js → th-243f9d7e.es.js} +16 -2
- package/es6/th-243f9d7e.es.js.map +1 -0
- package/es6/{tr-efef909b.es.js → tr-68ce213a.es.js} +16 -2
- package/es6/tr-68ce213a.es.js.map +1 -0
- package/es6/{zh-fd96e6cc.es.js → zh-14c4dc8f.es.js} +16 -2
- package/es6/zh-14c4dc8f.es.js.map +1 -0
- package/es6/{zh-HK-cca3f9e3.es.js → zh-HK-cc047d27.es.js} +16 -2
- package/es6/zh-HK-cc047d27.es.js.map +1 -0
- package/localized-messages/ar.json +16 -2
- package/localized-messages/bg.json +16 -2
- package/localized-messages/cs.json +16 -2
- package/localized-messages/da.json +16 -2
- package/localized-messages/de.json +16 -2
- package/localized-messages/el.json +16 -2
- package/localized-messages/en-GB.json +16 -2
- package/localized-messages/en-US.json +15 -1
- package/localized-messages/es-ES.json +16 -2
- package/localized-messages/es.json +16 -2
- package/localized-messages/fi.json +16 -2
- package/localized-messages/fr-CA.json +16 -2
- package/localized-messages/fr.json +16 -2
- package/localized-messages/ga.json +16 -2
- package/localized-messages/hr.json +16 -2
- package/localized-messages/hu.json +16 -2
- package/localized-messages/id.json +16 -2
- package/localized-messages/it.json +16 -2
- package/localized-messages/iw.json +16 -2
- package/localized-messages/ja.json +16 -2
- package/localized-messages/ko.json +16 -2
- package/localized-messages/lo.json +16 -2
- package/localized-messages/lt.json +16 -2
- package/localized-messages/ms.json +16 -2
- package/localized-messages/nl.json +16 -2
- package/localized-messages/no.json +16 -2
- package/localized-messages/pl.json +16 -2
- package/localized-messages/pt-BR.json +16 -2
- package/localized-messages/pt.json +16 -2
- package/localized-messages/ru.json +16 -2
- package/localized-messages/sk.json +16 -2
- package/localized-messages/sl.json +16 -2
- package/localized-messages/sr.json +16 -2
- package/localized-messages/sv.json +16 -2
- package/localized-messages/th.json +16 -2
- package/localized-messages/tr.json +16 -2
- package/localized-messages/zh-HK.json +16 -2
- package/localized-messages/zh.json +16 -2
- package/manifest.json +48 -48
- package/package.json +3 -3
- package/sheerid-requestOrg.css +5 -5
- package/sheerid-requestOrg.css.map +1 -1
- package/sheerid-requestOrg.js +15 -15
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +9 -9
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.css.map +1 -1
- package/sheerid.js +17 -17
- package/sheerid.js.map +1 -1
- package/sheerides6.js +214 -135
- package/sheerides6.js.map +1 -1
- package/src/components/LoadingScreen/LoadingScreenComponent.d.ts +6 -1
- package/src/components/LoadingScreen/LoadingScreenMessage.d.ts +7 -0
- package/src/es6.d.ts +2 -1
- package/src/lib/types/runtimeTypes.d.ts +1 -0
- package/src/lib/types/types.d.ts +10 -0
- package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +9 -7
- package/types-reference.zip +0 -0
- package/es6/de-401987e2.es.js.map +0 -1
- package/es6/el-cec2efeb.es.js.map +0 -1
- package/es6/es-aa33cef4.es.js.map +0 -1
- package/es6/fi-21d78621.es.js.map +0 -1
- package/es6/fr-ac551692.es.js.map +0 -1
- package/es6/ga-fa4aaf25.es.js.map +0 -1
- package/es6/hr-f6a75688.es.js.map +0 -1
- package/es6/hu-dc5ce68a.es.js.map +0 -1
- package/es6/id-8deafa7f.es.js.map +0 -1
- package/es6/it-fd8a0a5d.es.js.map +0 -1
- package/es6/iw-60b4ec5f.es.js.map +0 -1
- package/es6/ja-8b791dc1.es.js.map +0 -1
- package/es6/ko-9291b8b2.es.js.map +0 -1
- package/es6/lo-af088901.es.js.map +0 -1
- package/es6/lt-83e5c86c.es.js.map +0 -1
- package/es6/ms-143f4b1c.es.js.map +0 -1
- package/es6/nl-be3d61b4.es.js.map +0 -1
- package/es6/no-b3e07beb.es.js.map +0 -1
- package/es6/pl-9820aeff.es.js.map +0 -1
- package/es6/pt-da8d7b16.es.js.map +0 -1
- package/es6/ru-f1984706.es.js.map +0 -1
- package/es6/sk-e3a93a76.es.js.map +0 -1
- package/es6/sl-7b86c8f9.es.js.map +0 -1
- package/es6/sr-a9993a3b.es.js.map +0 -1
- package/es6/sv-54bcca73.es.js.map +0 -1
- package/es6/th-a74755d2.es.js.map +0 -1
- package/es6/tr-efef909b.es.js.map +0 -1
- package/es6/zh-HK-cca3f9e3.es.js.map +0 -1
- package/es6/zh-fd96e6cc.es.js.map +0 -1
package/sheerides6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useCallback, useEffect, useMemo, cloneElement, Component, useLayoutEffect, useReducer, PureComponent, useState, forwardRef, useImperativeHandle, Fragment as Fragment$4, Suspense as Suspense$4 } from 'react';
|
|
2
|
-
import { FormattedHTMLMessage, injectIntl,
|
|
2
|
+
import { FormattedHTMLMessage, injectIntl, FormattedMessage, IntlProvider } from 'react-intl';
|
|
3
3
|
import 'react-intl/locale-data/en.js';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -484,6 +484,9 @@ var VerificationStepsEnum;
|
|
|
484
484
|
VerificationStepsEnum["cancelEmailLoop"] = "cancelEmailLoop";
|
|
485
485
|
})(VerificationStepsEnum || (VerificationStepsEnum = {}));
|
|
486
486
|
const VerificationSteps = Object.values(VerificationStepsEnum); // For runtime checks
|
|
487
|
+
// This depends on all collect steps starting with the string 'collect' if that
|
|
488
|
+
// stops being true this will need to change.
|
|
489
|
+
const CollectInfoSteps = VerificationSteps.filter((step) => step.startsWith('collect'));
|
|
487
490
|
var TryAgainStepsEnum;
|
|
488
491
|
(function (TryAgainStepsEnum) {
|
|
489
492
|
TryAgainStepsEnum["docUpload"] = "docUpload";
|
|
@@ -1128,7 +1131,7 @@ const defaultOptions = {
|
|
|
1128
1131
|
urlMedicalFaq: 'https://verify.sheerid.com/us-medical-faq/',
|
|
1129
1132
|
urlEmploymentFaq: 'https://verify.sheerid.com/employment-faq/',
|
|
1130
1133
|
urlIdentityFaq: 'https://verify.sheerid.com/identity-faq/',
|
|
1131
|
-
urlLicensedProfessionalFaq: 'https://verify.sheerid.com/
|
|
1134
|
+
urlLicensedProfessionalFaq: 'https://verify.sheerid.com/professions-faq/',
|
|
1132
1135
|
urlAddSchoolFaq: 'https://verify.sheerid.com/add-school-request-faq/',
|
|
1133
1136
|
urlAddSchoolForm: 'https://offers.sheerid.com/sheerid/add-school-request/',
|
|
1134
1137
|
privacyPolicyUrl: undefined,
|
|
@@ -2348,6 +2351,8 @@ var enUSMessages = {
|
|
|
2348
2351
|
"defaultMessages.step.pending.titleCountdown": "Processing",
|
|
2349
2352
|
"defaultMessages.step.pending.titleReview": "Reviewing",
|
|
2350
2353
|
"defaultMessages.step.pending.turnaroundTime": "Turnaround time for your language is typically {estReviewTime}, and in rare times of high volume may take up to {maxReviewTime}.",
|
|
2354
|
+
"defaultMessages.step.personalInfo.verifyingSubtitle": "This should only take a minute",
|
|
2355
|
+
"defaultMessages.step.personalInfo.verifyingTitle": "Verifying your status",
|
|
2351
2356
|
"defaultMessages.step.smsLoop.errors.codeExpired": "Verification code could not be validated.",
|
|
2352
2357
|
"defaultMessages.step.smsLoop.errors.codeResendLimit": "Maximum number of re-tries has been reached.",
|
|
2353
2358
|
"defaultMessages.step.smsLoop.errors.codeVerification": "Verification code could not be validated.",
|
|
@@ -2427,6 +2432,7 @@ var enUSMessages = {
|
|
|
2427
2432
|
"segmentMessages.age.step.personalInfo.title": "Unlock Your Special Offer",
|
|
2428
2433
|
"segmentMessages.age.step.personalInfo.tryAgain.subtitle": "Your full name and birthdate must match what is on your government-issued documents.",
|
|
2429
2434
|
"segmentMessages.age.step.personalInfo.tryAgain.title": "Check Your Name & Birthdate",
|
|
2435
|
+
"segmentMessages.age.step.personalInfo.verifyingTitle": "Verifying your age",
|
|
2430
2436
|
"segmentMessages.age.step.success.redirectButtonText": "Use code now",
|
|
2431
2437
|
"segmentMessages.age.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2432
2438
|
"segmentMessages.age.step.success.title": "You've been verified",
|
|
@@ -2440,6 +2446,7 @@ var enUSMessages = {
|
|
|
2440
2446
|
"segmentMessages.employment.step.personalInfo.title": "Unlock this Employment-Only Offer",
|
|
2441
2447
|
"segmentMessages.employment.step.personalInfo.tryAgain.subtitle": "The information you have provided should match your official documents.",
|
|
2442
2448
|
"segmentMessages.employment.step.personalInfo.tryAgain.title": "Check the information that you have provided",
|
|
2449
|
+
"segmentMessages.employment.step.personalInfo.verifyingTitle": "Verifying your employment status",
|
|
2443
2450
|
"segmentMessages.employment.step.sso.cancel": "Upload proof of employment",
|
|
2444
2451
|
"segmentMessages.employment.step.sso.login": "Sign in to my email",
|
|
2445
2452
|
"segmentMessages.employment.step.sso.subtitle": "Please sign in to your company's email portal. It will open in a new tab.",
|
|
@@ -2458,6 +2465,7 @@ var enUSMessages = {
|
|
|
2458
2465
|
"segmentMessages.firstResponder.step.personalInfo.title": "Unlock this 1st Responder-Only Offer",
|
|
2459
2466
|
"segmentMessages.firstResponder.step.personalInfo.tryAgain.subtitle": "Your full name, organization name, and email must match what is on record with your agency.",
|
|
2460
2467
|
"segmentMessages.firstResponder.step.personalInfo.tryAgain.title": "Check Your Name, Email & Organization",
|
|
2468
|
+
"segmentMessages.firstResponder.step.personalInfo.verifyingTitle": "Verifying your first responder status",
|
|
2461
2469
|
"segmentMessages.firstResponder.step.success.redirectButtonText": "Use code now",
|
|
2462
2470
|
"segmentMessages.firstResponder.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2463
2471
|
"segmentMessages.firstResponder.step.success.title": "You've been verified",
|
|
@@ -2471,6 +2479,7 @@ var enUSMessages = {
|
|
|
2471
2479
|
"segmentMessages.identity.step.personalInfo.title": "Unlock Your Special Offer",
|
|
2472
2480
|
"segmentMessages.identity.step.personalInfo.tryAgain.subtitle": "Your information must match what is on your government-issued document(s).",
|
|
2473
2481
|
"segmentMessages.identity.step.personalInfo.tryAgain.title": "Check Your Name & other fields",
|
|
2482
|
+
"segmentMessages.identity.step.personalInfo.verifyingTitle": "Verifying your identity",
|
|
2474
2483
|
"segmentMessages.identity.step.success.redirectButtonText": "Use code now",
|
|
2475
2484
|
"segmentMessages.identity.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2476
2485
|
"segmentMessages.identity.step.success.title": "You've been verified",
|
|
@@ -2484,6 +2493,7 @@ var enUSMessages = {
|
|
|
2484
2493
|
"segmentMessages.licensedProfessional.step.personalInfo.title": "Unlock this Special Offer",
|
|
2485
2494
|
"segmentMessages.licensedProfessional.step.personalInfo.tryAgain.subtitle": "Your information must match what is on your government-issued document(s).",
|
|
2486
2495
|
"segmentMessages.licensedProfessional.step.personalInfo.tryAgain.title": "Check Your Name & other fields",
|
|
2496
|
+
"segmentMessages.licensedProfessional.step.personalInfo.verifyingTitle": "Verifying your license",
|
|
2487
2497
|
"segmentMessages.licensedProfessional.step.success.redirectButtonText": "Use code now",
|
|
2488
2498
|
"segmentMessages.licensedProfessional.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2489
2499
|
"segmentMessages.licensedProfessional.step.success.title": "You've been verified",
|
|
@@ -2497,6 +2507,7 @@ var enUSMessages = {
|
|
|
2497
2507
|
"segmentMessages.medical.step.personalInfo.title": "Unlock this Medical Professional-Only Offer",
|
|
2498
2508
|
"segmentMessages.medical.step.personalInfo.tryAgain.subtitle": "Your first and last name, birthdate and organization must match what is on your official documents.",
|
|
2499
2509
|
"segmentMessages.medical.step.personalInfo.tryAgain.title": "Check your Name, Birthdate & Organization",
|
|
2510
|
+
"segmentMessages.medical.step.personalInfo.verifyingTitle": "Verifying your medical professional status",
|
|
2500
2511
|
"segmentMessages.medical.step.sso.login": "Sign into my employer web portal",
|
|
2501
2512
|
"segmentMessages.medical.step.sso.subtitle": "Please sign into your employer's web portal. It will open in a new tab.",
|
|
2502
2513
|
"segmentMessages.medical.step.sso.title": "Verify your Healthcare status",
|
|
@@ -2513,6 +2524,7 @@ var enUSMessages = {
|
|
|
2513
2524
|
"segmentMessages.member.step.personalInfo.title": "Unlock this Members-Only Offer",
|
|
2514
2525
|
"segmentMessages.member.step.personalInfo.tryAgain.subtitle": "The information you have provided should match your official documents.",
|
|
2515
2526
|
"segmentMessages.member.step.personalInfo.tryAgain.title": "Check the information that you have provided",
|
|
2527
|
+
"segmentMessages.member.step.personalInfo.verifyingTitle": "Verifying your membership status",
|
|
2516
2528
|
"segmentMessages.member.step.success.redirectButtonText": "Use code now",
|
|
2517
2529
|
"segmentMessages.member.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2518
2530
|
"segmentMessages.member.step.success.title": "You've been verified",
|
|
@@ -2526,6 +2538,7 @@ var enUSMessages = {
|
|
|
2526
2538
|
"segmentMessages.military.step.personalInfo.title": "Unlock this Military-Only Offer",
|
|
2527
2539
|
"segmentMessages.military.step.personalInfo.tryAgain.subtitle": "Enter your first and last name on the form as it appears on your military document(s). Keep in mind that may be your given name.",
|
|
2528
2540
|
"segmentMessages.military.step.personalInfo.tryAgain.title": "Check Your Name & Birthdate",
|
|
2541
|
+
"segmentMessages.military.step.personalInfo.verifyingTitle": "Verifying your military status",
|
|
2529
2542
|
"segmentMessages.military.step.success.redirectButtonText": "Use code now",
|
|
2530
2543
|
"segmentMessages.military.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2531
2544
|
"segmentMessages.military.step.success.title": "You've been verified",
|
|
@@ -2539,6 +2552,7 @@ var enUSMessages = {
|
|
|
2539
2552
|
"segmentMessages.recentMover.step.personalInfo.title": "Unlock this Special Offer",
|
|
2540
2553
|
"segmentMessages.recentMover.step.personalInfo.tryAgain.subtitle": "Your first and last name and address must match what is on your official documents.",
|
|
2541
2554
|
"segmentMessages.recentMover.step.personalInfo.tryAgain.title": "Check Your Name & Address Information",
|
|
2555
|
+
"segmentMessages.recentMover.step.personalInfo.verifyingTitle": "Verifying your moving status",
|
|
2542
2556
|
"segmentMessages.recentMover.step.success.redirectButtonText": "Use code now",
|
|
2543
2557
|
"segmentMessages.recentMover.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2544
2558
|
"segmentMessages.recentMover.step.success.title": "You've been verified",
|
|
@@ -2552,12 +2566,13 @@ var enUSMessages = {
|
|
|
2552
2566
|
"segmentMessages.senior.step.personalInfo.title": "Unlock Your Special Offer",
|
|
2553
2567
|
"segmentMessages.senior.step.personalInfo.tryAgain.subtitle": "Your full name and birthdate must match what is on your government-issued documents.",
|
|
2554
2568
|
"segmentMessages.senior.step.personalInfo.tryAgain.title": "Check Your Name & Birthdate",
|
|
2569
|
+
"segmentMessages.senior.step.personalInfo.verifyingTitle": "Verifying your age",
|
|
2555
2570
|
"segmentMessages.senior.step.success.redirectButtonText": "Use code now",
|
|
2556
2571
|
"segmentMessages.senior.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2557
2572
|
"segmentMessages.senior.step.success.title": "You've been verified",
|
|
2558
2573
|
"segmentMessages.student.emailExplanation": "Needed to send you your unique code",
|
|
2559
2574
|
"segmentMessages.student.schoolName": "University / college name",
|
|
2560
|
-
"segmentMessages.student.step.docUpload.howDoesVerifyingWorkDetails": "Document review is handled by SheerID, a trusted partner who specializes in verifying students.\n <br/><br/>\n Documents are used only for verifying your student status is current and will be permanently deleted after review is finalized.
|
|
2575
|
+
"segmentMessages.student.step.docUpload.howDoesVerifyingWorkDetails": "Document review is handled by SheerID, a trusted partner who specializes in verifying students.\n <br/><br/>\n Documents are used only for verifying your student status is current and will be permanently deleted after review is finalized.",
|
|
2561
2576
|
"segmentMessages.student.step.docUpload.subtitle": "Documents will be reviewed in {estimatedWaitTime} by staff at SheerID, a trusted partner.",
|
|
2562
2577
|
"segmentMessages.student.step.docUpload.title": "We need your ID & class schedule",
|
|
2563
2578
|
"segmentMessages.student.step.docUpload.uploadInstructions": "Upload your school-issued document that shows",
|
|
@@ -2566,6 +2581,7 @@ var enUSMessages = {
|
|
|
2566
2581
|
"segmentMessages.student.step.personalInfo.title": "Unlock this Student-Only Offer",
|
|
2567
2582
|
"segmentMessages.student.step.personalInfo.tryAgain.subtitle": "Your full name and birthdate must match what is on your official school records.",
|
|
2568
2583
|
"segmentMessages.student.step.personalInfo.tryAgain.title": "Check Your Name & Birthdate",
|
|
2584
|
+
"segmentMessages.student.step.personalInfo.verifyingTitle": "Verifying your student status",
|
|
2569
2585
|
"segmentMessages.student.step.sso.cancel": "Upload Proof of Enrollment",
|
|
2570
2586
|
"segmentMessages.student.step.success.redirectButtonText": "Use code now",
|
|
2571
2587
|
"segmentMessages.student.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
@@ -2581,6 +2597,7 @@ var enUSMessages = {
|
|
|
2581
2597
|
"segmentMessages.teacher.step.personalInfo.title": "Unlock this Teaching Staff-Only Offer",
|
|
2582
2598
|
"segmentMessages.teacher.step.personalInfo.tryAgain.subtitle": "Your full name and email address must match what is on record with your school.",
|
|
2583
2599
|
"segmentMessages.teacher.step.personalInfo.tryAgain.title": "Check Your Name & Email",
|
|
2600
|
+
"segmentMessages.teacher.step.personalInfo.verifyingTitle": "Verifying your teacher status",
|
|
2584
2601
|
"segmentMessages.teacher.step.success.redirectButtonText": "Use code now",
|
|
2585
2602
|
"segmentMessages.teacher.step.success.subtitle": "Here is your personal coupon code. It is unique to you and can only be used once.",
|
|
2586
2603
|
"segmentMessages.teacher.step.success.title": "You've been verified"
|
|
@@ -2605,118 +2622,118 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2605
2622
|
/* tslint:disable:space-in-parens */
|
|
2606
2623
|
switch (locale) {
|
|
2607
2624
|
case 'ar':
|
|
2608
|
-
localizedMessages = await import(/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2625
|
+
localizedMessages = await import(/* webpackChunkName: "messages_ar" */ './es6/ar-9e0fad1f.es.js').then(m => m.default);
|
|
2609
2626
|
break;
|
|
2610
2627
|
case 'bg':
|
|
2611
|
-
localizedMessages = await import(/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2628
|
+
localizedMessages = await import(/* webpackChunkName: "messages_bg" */ './es6/bg-2aca771b.es.js').then(m => m.default);
|
|
2612
2629
|
break;
|
|
2613
2630
|
case 'cs':
|
|
2614
|
-
localizedMessages = await import(/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2631
|
+
localizedMessages = await import(/* webpackChunkName: "messages_cs" */ './es6/cs-f5c83c6a.es.js').then(m => m.default);
|
|
2615
2632
|
break;
|
|
2616
2633
|
case 'da':
|
|
2617
|
-
localizedMessages = await import(/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2634
|
+
localizedMessages = await import(/* webpackChunkName: "messages_da" */ './es6/da-b8d9bd0b.es.js').then(m => m.default);
|
|
2618
2635
|
break;
|
|
2619
2636
|
case 'de':
|
|
2620
|
-
localizedMessages = await import(/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2637
|
+
localizedMessages = await import(/* webpackChunkName: "messages_de" */ './es6/de-0a779e2e.es.js').then(m => m.default);
|
|
2621
2638
|
break;
|
|
2622
2639
|
case 'el':
|
|
2623
|
-
localizedMessages = await import(/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2640
|
+
localizedMessages = await import(/* webpackChunkName: "messages_el" */ './es6/el-0408a569.es.js').then(m => m.default);
|
|
2624
2641
|
break;
|
|
2625
2642
|
case 'en-GB':
|
|
2626
|
-
localizedMessages = await import(/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2643
|
+
localizedMessages = await import(/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-8b783a90.es.js').then(m => m.default);
|
|
2627
2644
|
break;
|
|
2628
2645
|
case 'en-US':
|
|
2629
2646
|
localizedMessages = enUSMessages;
|
|
2630
2647
|
break;
|
|
2631
2648
|
case 'es-ES':
|
|
2632
|
-
localizedMessages = await import(/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2649
|
+
localizedMessages = await import(/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-0f1f844e.es.js').then(m => m.default);
|
|
2633
2650
|
break;
|
|
2634
2651
|
case 'es':
|
|
2635
|
-
localizedMessages = await import(/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2652
|
+
localizedMessages = await import(/* webpackChunkName: "messages_es" */ './es6/es-20274dff.es.js').then(m => m.default);
|
|
2636
2653
|
break;
|
|
2637
2654
|
case 'fi':
|
|
2638
|
-
localizedMessages = await import(/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2655
|
+
localizedMessages = await import(/* webpackChunkName: "messages_fi" */ './es6/fi-a7b09e0e.es.js').then(m => m.default);
|
|
2639
2656
|
break;
|
|
2640
2657
|
case 'fr-CA':
|
|
2641
|
-
localizedMessages = await import(/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2658
|
+
localizedMessages = await import(/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-77227517.es.js').then(m => m.default);
|
|
2642
2659
|
break;
|
|
2643
2660
|
case 'fr':
|
|
2644
|
-
localizedMessages = await import(/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2661
|
+
localizedMessages = await import(/* webpackChunkName: "messages_fr" */ './es6/fr-759c23ea.es.js').then(m => m.default);
|
|
2645
2662
|
break;
|
|
2646
2663
|
case 'ga':
|
|
2647
|
-
localizedMessages = await import(/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2664
|
+
localizedMessages = await import(/* webpackChunkName: "messages_ga" */ './es6/ga-8ad780c1.es.js').then(m => m.default);
|
|
2648
2665
|
break;
|
|
2649
2666
|
case 'hr':
|
|
2650
|
-
localizedMessages = await import(/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2667
|
+
localizedMessages = await import(/* webpackChunkName: "messages_hr" */ './es6/hr-8f666201.es.js').then(m => m.default);
|
|
2651
2668
|
break;
|
|
2652
2669
|
case 'hu':
|
|
2653
|
-
localizedMessages = await import(/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2670
|
+
localizedMessages = await import(/* webpackChunkName: "messages_hu" */ './es6/hu-2d552fd1.es.js').then(m => m.default);
|
|
2654
2671
|
break;
|
|
2655
2672
|
case 'id':
|
|
2656
|
-
localizedMessages = await import(/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2673
|
+
localizedMessages = await import(/* webpackChunkName: "messages_id" */ './es6/id-d4274ccb.es.js').then(m => m.default);
|
|
2657
2674
|
break;
|
|
2658
2675
|
case 'it':
|
|
2659
|
-
localizedMessages = await import(/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2676
|
+
localizedMessages = await import(/* webpackChunkName: "messages_it" */ './es6/it-e6743833.es.js').then(m => m.default);
|
|
2660
2677
|
break;
|
|
2661
2678
|
case 'iw':
|
|
2662
|
-
localizedMessages = await import(/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
2679
|
+
localizedMessages = await import(/* webpackChunkName: "messages_iw" */ './es6/iw-0aa73f61.es.js').then(m => m.default);
|
|
2663
2680
|
break;
|
|
2664
2681
|
case 'ja':
|
|
2665
|
-
localizedMessages = await import(/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
2682
|
+
localizedMessages = await import(/* webpackChunkName: "messages_ja" */ './es6/ja-c1f752a6.es.js').then(m => m.default);
|
|
2666
2683
|
break;
|
|
2667
2684
|
case 'ko':
|
|
2668
|
-
localizedMessages = await import(/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
2685
|
+
localizedMessages = await import(/* webpackChunkName: "messages_ko" */ './es6/ko-bcddc775.es.js').then(m => m.default);
|
|
2669
2686
|
break;
|
|
2670
2687
|
case 'lo':
|
|
2671
|
-
localizedMessages = await import(/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
2688
|
+
localizedMessages = await import(/* webpackChunkName: "messages_lo" */ './es6/lo-ab067913.es.js').then(m => m.default);
|
|
2672
2689
|
break;
|
|
2673
2690
|
case 'lt':
|
|
2674
|
-
localizedMessages = await import(/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
2691
|
+
localizedMessages = await import(/* webpackChunkName: "messages_lt" */ './es6/lt-7f1cd913.es.js').then(m => m.default);
|
|
2675
2692
|
break;
|
|
2676
2693
|
case 'ms':
|
|
2677
|
-
localizedMessages = await import(/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
2694
|
+
localizedMessages = await import(/* webpackChunkName: "messages_ms" */ './es6/ms-e3f64cc3.es.js').then(m => m.default);
|
|
2678
2695
|
break;
|
|
2679
2696
|
case 'nl':
|
|
2680
|
-
localizedMessages = await import(/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
2697
|
+
localizedMessages = await import(/* webpackChunkName: "messages_nl" */ './es6/nl-7a4d62d2.es.js').then(m => m.default);
|
|
2681
2698
|
break;
|
|
2682
2699
|
case 'no':
|
|
2683
|
-
localizedMessages = await import(/* webpackChunkName: "messages_no" */ './es6/no-
|
|
2700
|
+
localizedMessages = await import(/* webpackChunkName: "messages_no" */ './es6/no-a25a637c.es.js').then(m => m.default);
|
|
2684
2701
|
break;
|
|
2685
2702
|
case 'pl':
|
|
2686
|
-
localizedMessages = await import(/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
2703
|
+
localizedMessages = await import(/* webpackChunkName: "messages_pl" */ './es6/pl-8981210c.es.js').then(m => m.default);
|
|
2687
2704
|
break;
|
|
2688
2705
|
case 'pt-BR':
|
|
2689
|
-
localizedMessages = await import(/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
2706
|
+
localizedMessages = await import(/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-ea998ac8.es.js').then(m => m.default);
|
|
2690
2707
|
break;
|
|
2691
2708
|
case 'pt':
|
|
2692
|
-
localizedMessages = await import(/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
2709
|
+
localizedMessages = await import(/* webpackChunkName: "messages_pt" */ './es6/pt-db66cedf.es.js').then(m => m.default);
|
|
2693
2710
|
break;
|
|
2694
2711
|
case 'ru':
|
|
2695
|
-
localizedMessages = await import(/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
2712
|
+
localizedMessages = await import(/* webpackChunkName: "messages_ru" */ './es6/ru-b8865189.es.js').then(m => m.default);
|
|
2696
2713
|
break;
|
|
2697
2714
|
case 'sk':
|
|
2698
|
-
localizedMessages = await import(/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
2715
|
+
localizedMessages = await import(/* webpackChunkName: "messages_sk" */ './es6/sk-43185e62.es.js').then(m => m.default);
|
|
2699
2716
|
break;
|
|
2700
2717
|
case 'sl':
|
|
2701
|
-
localizedMessages = await import(/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
2718
|
+
localizedMessages = await import(/* webpackChunkName: "messages_sl" */ './es6/sl-efe6c730.es.js').then(m => m.default);
|
|
2702
2719
|
break;
|
|
2703
2720
|
case 'sr':
|
|
2704
|
-
localizedMessages = await import(/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
2721
|
+
localizedMessages = await import(/* webpackChunkName: "messages_sr" */ './es6/sr-a179f1ae.es.js').then(m => m.default);
|
|
2705
2722
|
break;
|
|
2706
2723
|
case 'sv':
|
|
2707
|
-
localizedMessages = await import(/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
2724
|
+
localizedMessages = await import(/* webpackChunkName: "messages_sv" */ './es6/sv-28a792ba.es.js').then(m => m.default);
|
|
2708
2725
|
break;
|
|
2709
2726
|
case 'th':
|
|
2710
|
-
localizedMessages = await import(/* webpackChunkName: "messages_th" */ './es6/th-
|
|
2727
|
+
localizedMessages = await import(/* webpackChunkName: "messages_th" */ './es6/th-243f9d7e.es.js').then(m => m.default);
|
|
2711
2728
|
break;
|
|
2712
2729
|
case 'tr':
|
|
2713
|
-
localizedMessages = await import(/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
2730
|
+
localizedMessages = await import(/* webpackChunkName: "messages_tr" */ './es6/tr-68ce213a.es.js').then(m => m.default);
|
|
2714
2731
|
break;
|
|
2715
2732
|
case 'zh-HK':
|
|
2716
|
-
localizedMessages = await import(/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
2733
|
+
localizedMessages = await import(/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-cc047d27.es.js').then(m => m.default);
|
|
2717
2734
|
break;
|
|
2718
2735
|
case 'zh':
|
|
2719
|
-
localizedMessages = await import(/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
2736
|
+
localizedMessages = await import(/* webpackChunkName: "messages_zh" */ './es6/zh-14c4dc8f.es.js').then(m => m.default);
|
|
2720
2737
|
break;
|
|
2721
2738
|
default:
|
|
2722
2739
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -3309,6 +3326,7 @@ const licensedProfessionalPInfoReqEmpty = {
|
|
|
3309
3326
|
name: '',
|
|
3310
3327
|
},
|
|
3311
3328
|
statuses: [],
|
|
3329
|
+
metadata: { marketConsentValue: false },
|
|
3312
3330
|
};
|
|
3313
3331
|
const moverPInfoReqEmpty = {
|
|
3314
3332
|
...coreFieldsEmpty,
|
|
@@ -4489,6 +4507,9 @@ const populateViewModelFromQueryParams = (verificationService) => {
|
|
|
4489
4507
|
});
|
|
4490
4508
|
verificationService.updateViewModel(nextState);
|
|
4491
4509
|
};
|
|
4510
|
+
const updateFieldValidationErrors = (fieldValidationErrors, verificationService) => {
|
|
4511
|
+
verificationService.updateFieldValidationErrors(fieldValidationErrors);
|
|
4512
|
+
};
|
|
4492
4513
|
const updateFieldValidationErrorsByFieldId = (fieldId, value, verificationService) => {
|
|
4493
4514
|
const { fieldValidationErrors } = verificationService;
|
|
4494
4515
|
const nextState = fn(fieldValidationErrors, (draft) => {
|
|
@@ -4498,13 +4519,16 @@ const updateFieldValidationErrorsByFieldId = (fieldId, value, verificationServic
|
|
|
4498
4519
|
});
|
|
4499
4520
|
updateFieldValidationErrors(nextState, verificationService);
|
|
4500
4521
|
};
|
|
4501
|
-
const updateFieldValidationErrors = (fieldValidationErrors, verificationService) => {
|
|
4502
|
-
verificationService.updateFieldValidationErrors(fieldValidationErrors);
|
|
4503
|
-
};
|
|
4504
4522
|
const shouldCollectAddressFields = (countryChoice, countries) => (getSafe(() => countries.length === 1)
|
|
4505
4523
|
&& getSafe(() => countries[0]) === 'US')
|
|
4506
4524
|
|| getSafe(() => countryChoice.value === 'US')
|
|
4507
4525
|
|| getSafe(() => countryChoice.value === undefined);
|
|
4526
|
+
const getStatusLabel = (intl, status, defaultMessages) => {
|
|
4527
|
+
if (!status) {
|
|
4528
|
+
return '';
|
|
4529
|
+
}
|
|
4530
|
+
return intl.formatMessage({ id: status, defaultMessage: defaultMessages[status] });
|
|
4531
|
+
};
|
|
4508
4532
|
const getAvailableMilitaryStatuses = (verificationService, intl) => {
|
|
4509
4533
|
const availableStatusesResponse = verificationService.verificationResponse.availableStatuses
|
|
4510
4534
|
|| (verificationService.previousVerificationResponse
|
|
@@ -4513,12 +4537,12 @@ const getAvailableMilitaryStatuses = (verificationService, intl) => {
|
|
|
4513
4537
|
if (!availableStatusesResponse) {
|
|
4514
4538
|
return null;
|
|
4515
4539
|
}
|
|
4516
|
-
|
|
4540
|
+
availableStatusesResponse.forEach((status) => {
|
|
4517
4541
|
availableStatuses.push({
|
|
4518
4542
|
value: status,
|
|
4519
|
-
label: intl
|
|
4543
|
+
label: getStatusLabel(intl, status, MilitaryStatusDefaultMessagesEnum),
|
|
4520
4544
|
});
|
|
4521
|
-
}
|
|
4545
|
+
});
|
|
4522
4546
|
return availableStatuses;
|
|
4523
4547
|
};
|
|
4524
4548
|
/**
|
|
@@ -4530,18 +4554,6 @@ const getFieldDisplayOrderFromRefs = () => {
|
|
|
4530
4554
|
refs.map((refObject) => fieldDisplayOrder.push(refObject.fieldId));
|
|
4531
4555
|
return fieldDisplayOrder;
|
|
4532
4556
|
};
|
|
4533
|
-
/**
|
|
4534
|
-
* @private
|
|
4535
|
-
*/
|
|
4536
|
-
const getFirstErroredFieldId = (fieldDisplayOrder, fieldValidationErrors) => {
|
|
4537
|
-
let firstErrordFieldId;
|
|
4538
|
-
for (const field of fieldDisplayOrder) {
|
|
4539
|
-
if (fieldValidationErrors[field]) {
|
|
4540
|
-
firstErrordFieldId = field;
|
|
4541
|
-
return adjustFirstErroredFieldId(firstErrordFieldId);
|
|
4542
|
-
}
|
|
4543
|
-
}
|
|
4544
|
-
};
|
|
4545
4557
|
/**
|
|
4546
4558
|
* HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)
|
|
4547
4559
|
*/
|
|
@@ -4551,6 +4563,19 @@ const adjustFirstErroredFieldId = (firstErroredFieldId) => {
|
|
|
4551
4563
|
}
|
|
4552
4564
|
return firstErroredFieldId;
|
|
4553
4565
|
};
|
|
4566
|
+
/**
|
|
4567
|
+
* @private
|
|
4568
|
+
*/
|
|
4569
|
+
const getFirstErroredFieldId = (fieldDisplayOrder, fieldValidationErrors) => {
|
|
4570
|
+
let firstErroredFieldId;
|
|
4571
|
+
fieldDisplayOrder.forEach((field) => {
|
|
4572
|
+
if (fieldValidationErrors[field]) {
|
|
4573
|
+
firstErroredFieldId = field;
|
|
4574
|
+
return adjustFirstErroredFieldId(firstErroredFieldId);
|
|
4575
|
+
}
|
|
4576
|
+
});
|
|
4577
|
+
return adjustFirstErroredFieldId(firstErroredFieldId);
|
|
4578
|
+
};
|
|
4554
4579
|
/**
|
|
4555
4580
|
* @private
|
|
4556
4581
|
*/
|
|
@@ -4630,6 +4655,16 @@ const getAvailableStateChoices = (programTheme, intl) => {
|
|
|
4630
4655
|
}),
|
|
4631
4656
|
}));
|
|
4632
4657
|
};
|
|
4658
|
+
const produceDraftViewModelWithRequiredFields = (previousModel, newRequiredFields, conditionalRequiredFieldKeys) => (fn(previousModel, (draft) => {
|
|
4659
|
+
conditionalRequiredFieldKeys.forEach((requiredFieldKey) => {
|
|
4660
|
+
if (newRequiredFields.some((field) => field.key === requiredFieldKey)) {
|
|
4661
|
+
draft[requiredFieldKey] = previousModel[requiredFieldKey] !== undefined ? previousModel[requiredFieldKey] : '';
|
|
4662
|
+
}
|
|
4663
|
+
else {
|
|
4664
|
+
delete draft[requiredFieldKey];
|
|
4665
|
+
}
|
|
4666
|
+
});
|
|
4667
|
+
}));
|
|
4633
4668
|
/**
|
|
4634
4669
|
* @private
|
|
4635
4670
|
*/
|
|
@@ -9312,12 +9347,12 @@ const InputSelectListComponent = InputSelectList;
|
|
|
9312
9347
|
const InputSelectButton = ({ clearSelection, disabled, getToggleButtonProps, isOpen, buttonRef, }) => {
|
|
9313
9348
|
if (clearSelection) {
|
|
9314
9349
|
return (React.createElement("button", { "aria-label": "clear selection", className: "sid-input-select-button", disabled: disabled, onClick: clearSelection, type: "button", tabIndex: 0, ref: input => setRef(buttonRef, input) },
|
|
9315
|
-
React.createElement("svg", { viewBox: "0 0 20 20", preserveAspectRatio: "none", width: 12, fill: "transparent", stroke: "#
|
|
9350
|
+
React.createElement("svg", { viewBox: "0 0 20 20", preserveAspectRatio: "none", width: 12, fill: "transparent", stroke: "#8A8A8A", strokeWidth: "1.1px" },
|
|
9316
9351
|
React.createElement("path", { d: "M1,1 L19,19" }),
|
|
9317
9352
|
React.createElement("path", { d: "M19,1 L1,19" }))));
|
|
9318
9353
|
}
|
|
9319
9354
|
return (React.createElement("button", Object.assign({}, getToggleButtonProps(), { className: "sid-input-select-button", disabled: disabled, type: "button", tabIndex: 0, ref: input => setRef(buttonRef, input) }),
|
|
9320
|
-
React.createElement("svg", { viewBox: "0 0 20 20", preserveAspectRatio: "none", width: 16, fill: "transparent", stroke: "#
|
|
9355
|
+
React.createElement("svg", { viewBox: "0 0 20 20", preserveAspectRatio: "none", width: 16, fill: "transparent", stroke: "#8A8A8A", strokeWidth: "1.1px", transform: isOpen ? 'rotate(180)' : undefined },
|
|
9321
9356
|
React.createElement("path", { d: "M1,6 L10,15 L19,6" }))));
|
|
9322
9357
|
};
|
|
9323
9358
|
const InputSelectButtonComponent = InputSelectButton;
|
|
@@ -9714,8 +9749,17 @@ const RequestOrganizationSearch = ({ intl }) => {
|
|
|
9714
9749
|
};
|
|
9715
9750
|
const RequestOrganizationSearchComponent = injectIntl(RequestOrganizationSearch);
|
|
9716
9751
|
|
|
9717
|
-
|
|
9718
|
-
|
|
9752
|
+
// eslint-disable-next-line react/prop-types
|
|
9753
|
+
const LoadingScreenMessage = ({ step }) => (React.createElement("div", { className: "sid-loading-screen__message" },
|
|
9754
|
+
CollectInfoSteps.includes(step) && (React.createElement("div", { className: "sid-loading-screen__message-header" },
|
|
9755
|
+
React.createElement(FormattedMessage, { id: "step.personalInfo.verifyingTitle", defaultMessage: "Verifying your status" }))),
|
|
9756
|
+
React.createElement("div", { className: "sid-loading-screen__message-subhead" },
|
|
9757
|
+
React.createElement(FormattedMessage, { id: "step.personalInfo.verifyingSubtitle", defaultMessage: "This should only take a minute" }))));
|
|
9758
|
+
|
|
9759
|
+
// eslint-disable-next-line react/prop-types
|
|
9760
|
+
const LoadingScreenComponent = ({ step }) => (React.createElement("div", { className: "sid-loading-screen" },
|
|
9761
|
+
React.createElement(LoadingSpinnerComponent, null),
|
|
9762
|
+
step && React.createElement(LoadingScreenMessage, { step: step })));
|
|
9719
9763
|
|
|
9720
9764
|
let overriddenComponents = {};
|
|
9721
9765
|
const overrideComponent = (componentName, newComponent) => {
|
|
@@ -9781,6 +9825,7 @@ const firstResponderMessages = {
|
|
|
9781
9825
|
title: 'Check Your Name, Email & Organization',
|
|
9782
9826
|
subtitle: 'Your full name, organization name, and email must match what is on record with your agency.',
|
|
9783
9827
|
},
|
|
9828
|
+
verifyingTitle: 'Verifying your first responder status',
|
|
9784
9829
|
},
|
|
9785
9830
|
docUpload: {
|
|
9786
9831
|
title: 'We need your ID',
|
|
@@ -9814,6 +9859,7 @@ const militaryMessages = {
|
|
|
9814
9859
|
title: 'Check Your Name & Birthdate',
|
|
9815
9860
|
subtitle: 'Enter your first and last name on the form as it appears on your military document(s). Keep in mind that may be your given name.',
|
|
9816
9861
|
},
|
|
9862
|
+
verifyingTitle: 'Verifying your military status',
|
|
9817
9863
|
},
|
|
9818
9864
|
docUpload: {
|
|
9819
9865
|
title: 'We need more information',
|
|
@@ -9847,6 +9893,7 @@ const seniorMessages = {
|
|
|
9847
9893
|
title: 'Check Your Name & Birthdate',
|
|
9848
9894
|
subtitle: 'Your full name and birthdate must match what is on your government-issued documents.',
|
|
9849
9895
|
},
|
|
9896
|
+
verifyingTitle: 'Verifying your age',
|
|
9850
9897
|
},
|
|
9851
9898
|
docUpload: {
|
|
9852
9899
|
title: 'We need your license or passport',
|
|
@@ -9879,6 +9926,7 @@ const ageMessages = {
|
|
|
9879
9926
|
title: 'Check Your Name & Birthdate',
|
|
9880
9927
|
subtitle: 'Your full name and birthdate must match what is on your government-issued documents.',
|
|
9881
9928
|
},
|
|
9929
|
+
verifyingTitle: 'Verifying your age',
|
|
9882
9930
|
},
|
|
9883
9931
|
docUpload: {
|
|
9884
9932
|
howDoesVerifyingWorkDetails: `Document review is handled by SheerID, a trusted partner who specializes in verifying age.
|
|
@@ -9914,13 +9962,14 @@ const studentMessages = {
|
|
|
9914
9962
|
title: 'Check Your Name & Birthdate',
|
|
9915
9963
|
subtitle: 'Your full name and birthdate must match what is on your official school records.',
|
|
9916
9964
|
},
|
|
9965
|
+
verifyingTitle: 'Verifying your student status',
|
|
9917
9966
|
},
|
|
9918
9967
|
docUpload: {
|
|
9919
9968
|
title: 'We need your ID & class schedule',
|
|
9920
9969
|
subtitle: 'Documents will be reviewed in {estimatedWaitTime} by staff at SheerID, a trusted partner.',
|
|
9921
9970
|
howDoesVerifyingWorkDetails: `Document review is handled by SheerID, a trusted partner who specializes in verifying students.
|
|
9922
9971
|
<br/><br/>
|
|
9923
|
-
Documents are used only for verifying your student status is current and will be permanently deleted after review is finalized
|
|
9972
|
+
Documents are used only for verifying your student status is current and will be permanently deleted after review is finalized.`,
|
|
9924
9973
|
uploadInstructions: 'Upload your school-issued document that shows',
|
|
9925
9974
|
},
|
|
9926
9975
|
success: {
|
|
@@ -9952,6 +10001,7 @@ const teacherMessages = {
|
|
|
9952
10001
|
title: 'Check Your Name & Email',
|
|
9953
10002
|
subtitle: 'Your full name and email address must match what is on record with your school.',
|
|
9954
10003
|
},
|
|
10004
|
+
verifyingTitle: 'Verifying your teacher status',
|
|
9955
10005
|
},
|
|
9956
10006
|
docUpload: {
|
|
9957
10007
|
title: 'We need more information',
|
|
@@ -9984,6 +10034,7 @@ const memberMessages = {
|
|
|
9984
10034
|
title: 'Check the information that you have provided',
|
|
9985
10035
|
subtitle: 'The information you have provided should match your official documents.',
|
|
9986
10036
|
},
|
|
10037
|
+
verifyingTitle: 'Verifying your membership status',
|
|
9987
10038
|
},
|
|
9988
10039
|
docUpload: {
|
|
9989
10040
|
title: 'We need more information',
|
|
@@ -10016,6 +10067,7 @@ const medicalMessages = {
|
|
|
10016
10067
|
title: 'Check your Name, Birthdate & Organization',
|
|
10017
10068
|
subtitle: 'Your first and last name, birthdate and organization must match what is on your official documents.',
|
|
10018
10069
|
},
|
|
10070
|
+
verifyingTitle: 'Verifying your medical professional status',
|
|
10019
10071
|
},
|
|
10020
10072
|
docUpload: {
|
|
10021
10073
|
title: 'We need more information',
|
|
@@ -10051,6 +10103,7 @@ const employmentMessages = {
|
|
|
10051
10103
|
title: 'Check the information that you have provided',
|
|
10052
10104
|
subtitle: 'The information you have provided should match your official documents.',
|
|
10053
10105
|
},
|
|
10106
|
+
verifyingTitle: 'Verifying your employment status',
|
|
10054
10107
|
},
|
|
10055
10108
|
docUpload: {
|
|
10056
10109
|
title: 'We need more information',
|
|
@@ -10090,6 +10143,7 @@ const identityMessages = {
|
|
|
10090
10143
|
title: 'Check Your Name & other fields',
|
|
10091
10144
|
subtitle: 'Your information must match what is on your government-issued document(s).',
|
|
10092
10145
|
},
|
|
10146
|
+
verifyingTitle: 'Verifying your identity',
|
|
10093
10147
|
},
|
|
10094
10148
|
docUpload: {
|
|
10095
10149
|
howDoesVerifyingWorkDetails: `Document review is handled by SheerID, a trusted partner who specializes in verifying identity.
|
|
@@ -10122,6 +10176,7 @@ const licensedProfessionalMessages = {
|
|
|
10122
10176
|
title: 'Check Your Name & other fields',
|
|
10123
10177
|
subtitle: 'Your information must match what is on your government-issued document(s).',
|
|
10124
10178
|
},
|
|
10179
|
+
verifyingTitle: 'Verifying your license',
|
|
10125
10180
|
},
|
|
10126
10181
|
docUpload: {
|
|
10127
10182
|
title: 'We need your professional license or certificate',
|
|
@@ -10155,6 +10210,7 @@ const moverMessages = {
|
|
|
10155
10210
|
title: 'Check Your Name & Address Information',
|
|
10156
10211
|
subtitle: 'Your first and last name and address must match what is on your official documents.',
|
|
10157
10212
|
},
|
|
10213
|
+
verifyingTitle: 'Verifying your moving status',
|
|
10158
10214
|
},
|
|
10159
10215
|
docUpload: {
|
|
10160
10216
|
title: 'We need some more info',
|
|
@@ -11080,6 +11136,8 @@ const ageViewModelToRequest = (viewModel) => ({
|
|
|
11080
11136
|
deviceFingerprintHash: viewModel.deviceFingerprintHash,
|
|
11081
11137
|
locale: viewModel.localeChoice.value,
|
|
11082
11138
|
country: viewModel.countryChoice ? viewModel.countryChoice.value : undefined,
|
|
11139
|
+
city: viewModel.city !== '' ? viewModel.city : undefined,
|
|
11140
|
+
address1: viewModel.address1 !== '' ? viewModel.address1 : undefined,
|
|
11083
11141
|
metadata: viewModel.metadata,
|
|
11084
11142
|
});
|
|
11085
11143
|
// ActiveMilitaryPersonalInfoViewModel contains multiple keys we don't want so we can't return the full viewModel as the request body
|
|
@@ -13431,7 +13489,7 @@ const createUpdateFieldValidationErrors = (dispatch) => async (fieldValidationEr
|
|
|
13431
13489
|
const createSubmitStep = (dispatch) => async (stepName, viewModel, previousResponse) => {
|
|
13432
13490
|
logger.log(`submitStep(): submitting stepName ${stepName}, viewModel:`, viewModel);
|
|
13433
13491
|
scrollToWindowTop();
|
|
13434
|
-
await dispatch({ type: 'IS_LOADING', isLoading: true });
|
|
13492
|
+
await dispatch({ type: 'IS_LOADING', isLoading: true, loadingStep: stepName });
|
|
13435
13493
|
logger.info(`submitting step ${stepName}`, viewModel);
|
|
13436
13494
|
setGaDimensionIsTest(viewModel);
|
|
13437
13495
|
const verificationResponse = await VerificationApiClient.submitStep(stepName, previousResponse, viewModel);
|
|
@@ -14027,6 +14085,7 @@ const verificationServiceReducer = (state = getInitialState(), action) => {
|
|
|
14027
14085
|
return {
|
|
14028
14086
|
...state,
|
|
14029
14087
|
isLoading: action.isLoading,
|
|
14088
|
+
loadingStep: action.isLoading ? action.loadingStep : undefined,
|
|
14030
14089
|
};
|
|
14031
14090
|
case 'IS_ERRORED':
|
|
14032
14091
|
return {
|
|
@@ -15639,6 +15698,7 @@ Object.defineProperty(self$1, '_BIDI_RTL_LANGS', {
|
|
|
15639
15698
|
'dv', /* Dhivehi */
|
|
15640
15699
|
'fa', /* 'فارسی', Persian */
|
|
15641
15700
|
'glk', /* 'گیلکی', Gilaki */
|
|
15701
|
+
'he', /* 'עברית', Hebrew */
|
|
15642
15702
|
'ku', /* 'Kurdî / كوردی', Kurdish */
|
|
15643
15703
|
'mzn', /* 'مازِرونی', Mazanderani */
|
|
15644
15704
|
'nqo', /* N'Ko */
|
|
@@ -15646,7 +15706,8 @@ Object.defineProperty(self$1, '_BIDI_RTL_LANGS', {
|
|
|
15646
15706
|
'ps', /* 'پښتو', Pashto, */
|
|
15647
15707
|
'sd', /* 'سنڌي', Sindhi */
|
|
15648
15708
|
'ug', /* 'Uyghurche / ئۇيغۇرچە', Uyghur */
|
|
15649
|
-
'ur' /* 'اردو', Urdu */
|
|
15709
|
+
'ur', /* 'اردو', Urdu */
|
|
15710
|
+
'yi' /* 'ייִדיש', Yiddish */
|
|
15650
15711
|
],
|
|
15651
15712
|
writable: false,
|
|
15652
15713
|
enumerable: true,
|
|
@@ -16270,7 +16331,7 @@ const HowDoesVerifyingWorkComponent = ({ verificationService, initialVisibility
|
|
|
16270
16331
|
timeoutId = window.setTimeout(() => setTooltipVisibility(false));
|
|
16271
16332
|
};
|
|
16272
16333
|
const handleOnClick = (tooltipIsOpen) => (tooltipIsOpen ? hideTooltip() : showTooltip());
|
|
16273
|
-
return (React.createElement("div", { className: "sid-how-verify-works", onMouseEnter: showTooltip, onMouseLeave: hideTooltip
|
|
16334
|
+
return (React.createElement("div", { className: "sid-how-verify-works", onMouseEnter: showTooltip, onMouseLeave: hideTooltip },
|
|
16274
16335
|
React.createElement("a", { href: "#", className: "sid-link", "aria-expanded": tooltipVisibility, onClick: () => handleOnClick(tooltipVisibility), "aria-describedby": tooltipVisibility ? 'how-does-verifying-work-tooltip' : null },
|
|
16275
16336
|
React.createElement(FormattedHTMLMessage, { id: "howDoesVerifyingWork", defaultMessage: "How does verifying work?" })),
|
|
16276
16337
|
tooltipVisibility
|
|
@@ -16387,7 +16448,7 @@ const StepStudentPersonalInfo = ({ intl, verificationService }) => {
|
|
|
16387
16448
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
16388
16449
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
16389
16450
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
16390
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Student-Only Offer" })),
|
|
16451
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Student-Only Offer", tagName: "h1" })),
|
|
16391
16452
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
16392
16453
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a student at a degree-granting school." }),
|
|
16393
16454
|
"\u00A0",
|
|
@@ -16482,7 +16543,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
16482
16543
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
16483
16544
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
16484
16545
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
16485
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock Your Special Offer" })),
|
|
16546
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock Your Special Offer", tagName: "h1" })),
|
|
16486
16547
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
16487
16548
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify your current age." }),
|
|
16488
16549
|
"\u00A0",
|
|
@@ -16549,6 +16610,28 @@ const carrierConsentValueValidator = (countryChoiceValue) => (value, programThem
|
|
|
16549
16610
|
}
|
|
16550
16611
|
};
|
|
16551
16612
|
|
|
16613
|
+
const City = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = '', }) => (React.createElement("div", { className: "sid-field sid-city" },
|
|
16614
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
16615
|
+
React.createElement("label", { htmlFor: "sid-city" },
|
|
16616
|
+
React.createElement("div", { className: `sid-field__label sid-l-space-btm-sm ${placeholder ? 'sid-h-screen-reader-only' : ''}` },
|
|
16617
|
+
React.createElement("div", { className: "sid-field__label sid-field__label--required" },
|
|
16618
|
+
React.createElement(FormattedHTMLMessage, { id: "city", defaultMessage: "City" })))),
|
|
16619
|
+
React.createElement(InputTextComponent, { id: "city", isErrored: isErrored, onChange: e => onChange(e.target.value), onKeyDown: typeof onKeyDown === 'function' ? e => onKeyDown(e) : undefined, placeholder: placeholder || intl.formatMessage({ id: 'cityPlaceholder', defaultMessage: 'City*' }), value: value }),
|
|
16620
|
+
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
16621
|
+
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidCity", defaultMessage: "Invalid city" }))) : null));
|
|
16622
|
+
const CityComponent = injectIntl(City);
|
|
16623
|
+
|
|
16624
|
+
const Address = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = '', }) => (React.createElement("div", { className: "sid-field sid-address" },
|
|
16625
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
16626
|
+
React.createElement("label", { htmlFor: "sid-address" },
|
|
16627
|
+
React.createElement("div", { className: `sid-field__label sid-l-space-btm-sm ${placeholder ? 'sid-h-screen-reader-only' : ''}` },
|
|
16628
|
+
React.createElement("div", { className: "sid-field__label sid-field__label--required" },
|
|
16629
|
+
React.createElement(FormattedHTMLMessage, { id: "address", defaultMessage: "Address" })))),
|
|
16630
|
+
React.createElement(InputTextComponent, { id: "address", isErrored: isErrored, onChange: e => onChange(e.target.value), onKeyDown: typeof onKeyDown === 'function' ? e => onKeyDown(e) : undefined, placeholder: placeholder || intl.formatMessage({ id: 'addressPlaceholder', defaultMessage: 'Address*' }), value: value }),
|
|
16631
|
+
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
16632
|
+
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidAddress", defaultMessage: "Invalid address" }))) : null));
|
|
16633
|
+
const AddressComponent = injectIntl(Address);
|
|
16634
|
+
|
|
16552
16635
|
/**
|
|
16553
16636
|
* TODO - preamble
|
|
16554
16637
|
*/
|
|
@@ -16561,6 +16644,8 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
16561
16644
|
const defaultCountryChoice = getDefaultCountryChoice(countryChoices);
|
|
16562
16645
|
const { isSmsNotifierConfigured, smsLoopEnabled } = verificationService.programTheme;
|
|
16563
16646
|
const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);
|
|
16647
|
+
const defaultRequiredFields = safeCountryValue === 'US' ? [{ key: 'postalCode' }] : [];
|
|
16648
|
+
const [requiredFields, setRequiredFields] = React.useState(defaultRequiredFields);
|
|
16564
16649
|
if (!fieldValidationErrors.phoneNumber && verificationResponse.errorIds && verificationResponse.errorIds.includes('invalidPhoneNumber')) {
|
|
16565
16650
|
verificationService.updateFieldValidationErrors({
|
|
16566
16651
|
...fieldValidationErrors,
|
|
@@ -16569,13 +16654,15 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
16569
16654
|
}
|
|
16570
16655
|
const displayPhoneNumber = (country, displayForSmsLoop) => (country !== 'US' || displayForSmsLoop);
|
|
16571
16656
|
const updateAgeViewModel = (key, value) => {
|
|
16572
|
-
const nextState =
|
|
16573
|
-
draft[key] = value;
|
|
16574
|
-
});
|
|
16657
|
+
const nextState = produceDraftViewModel(viewModel, key, value);
|
|
16575
16658
|
verificationService.updateViewModel(nextState);
|
|
16576
16659
|
};
|
|
16660
|
+
const updateViewModelWithRequiredFields = (newRequiredFields, conditionalRequiredFieldKeys) => {
|
|
16661
|
+
const nextState = produceDraftViewModelWithRequiredFields(viewModel, newRequiredFields, conditionalRequiredFieldKeys);
|
|
16662
|
+
verificationService.updateViewModel(nextState);
|
|
16663
|
+
};
|
|
16664
|
+
const isFieldRequired = (key) => requiredFields.some((field) => field.key === key);
|
|
16577
16665
|
overrideValidator('phoneNumber', phoneNumberValidator(safeCountryValue));
|
|
16578
|
-
overrideValidator('postalCode', postalCodeValidator(safeCountryValue));
|
|
16579
16666
|
if (displayPhoneNumber(safeCountryValue, smsLoopEnabled)) {
|
|
16580
16667
|
if (!customValidatorExists$1('carrierConsentValue')) {
|
|
16581
16668
|
setCustomValidator('carrierConsentValue', carrierConsentValueValidator(safeCountryValue));
|
|
@@ -16588,6 +16675,19 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
16588
16675
|
updateAgeViewModel('metadata', { ...verificationService.viewModel.metadata, carrierConsentValue: newValue });
|
|
16589
16676
|
updateFieldValidationErrorsByFieldId('carrierConsentValue', newValue, verificationService);
|
|
16590
16677
|
};
|
|
16678
|
+
React.useEffect(() => {
|
|
16679
|
+
(async () => {
|
|
16680
|
+
try {
|
|
16681
|
+
const collectFieldsResponse = await getFieldsToCollect(verificationResponse.verificationId, verificationResponse.currentStep, viewModel);
|
|
16682
|
+
const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);
|
|
16683
|
+
updateViewModelWithRequiredFields(newRequiredFields, ['postalCode', 'city', 'address1']);
|
|
16684
|
+
setRequiredFields(newRequiredFields);
|
|
16685
|
+
}
|
|
16686
|
+
catch (error) {
|
|
16687
|
+
logger.error(`Failed to determine fields to collect: ${error}`);
|
|
16688
|
+
}
|
|
16689
|
+
})();
|
|
16690
|
+
}, [viewModel.country]);
|
|
16591
16691
|
return (React.createElement("div", { id: "sid-step-student-personal-info", className: "sid-l-container" },
|
|
16592
16692
|
failedInstantMatch
|
|
16593
16693
|
? (React.createElement("div", { className: "sid-header" },
|
|
@@ -16613,9 +16713,6 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
16613
16713
|
if (!displayPhoneNumber(country, smsLoopEnabled)) {
|
|
16614
16714
|
viewModelDraft.phoneNumber = '';
|
|
16615
16715
|
}
|
|
16616
|
-
if (country !== 'US') {
|
|
16617
|
-
viewModelDraft.postalCode = '';
|
|
16618
|
-
}
|
|
16619
16716
|
} }),
|
|
16620
16717
|
React.createElement("div", { className: "sid-names" },
|
|
16621
16718
|
React.createElement(FirstNameComponent, { value: viewModel.firstName, isErrored: !!fieldValidationErrors.firstName, onChange: (newValue) => {
|
|
@@ -16630,7 +16727,15 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
16630
16727
|
updateAgeViewModel('birthDate', newValue);
|
|
16631
16728
|
updateFieldValidationErrorsByFieldId('birthDate', newValue, verificationService);
|
|
16632
16729
|
}, value: viewModel.birthDate }),
|
|
16633
|
-
|
|
16730
|
+
isFieldRequired('city') && (React.createElement(CityComponent, { value: viewModel.city, isRequired: true, isErrored: !!fieldValidationErrors.city, errorId: fieldValidationErrors.city, onChange: (value) => {
|
|
16731
|
+
updateAgeViewModel('city', value);
|
|
16732
|
+
updateFieldValidationErrorsByFieldId('city', value, verificationService);
|
|
16733
|
+
} })),
|
|
16734
|
+
isFieldRequired('address1') && (React.createElement(AddressComponent, { value: viewModel.address1, isRequired: true, isErrored: !!fieldValidationErrors.address1, errorId: fieldValidationErrors.address1, onChange: (value) => {
|
|
16735
|
+
updateAgeViewModel('address1', value);
|
|
16736
|
+
updateFieldValidationErrorsByFieldId('address1', value, verificationService);
|
|
16737
|
+
} })),
|
|
16738
|
+
isFieldRequired('postalCode') && (React.createElement(PostalCodeComponent, { isErrored: !!fieldValidationErrors.postalCode, onChange: (newValue) => {
|
|
16634
16739
|
updateAgeViewModel('postalCode', newValue);
|
|
16635
16740
|
updateFieldValidationErrorsByFieldId('postalCode', newValue, verificationService);
|
|
16636
16741
|
}, value: viewModel.postalCode })),
|
|
@@ -16725,7 +16830,7 @@ const StepTeacherPersonalInfo = ({ intl, verificationService }) => {
|
|
|
16725
16830
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
16726
16831
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
16727
16832
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
16728
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Teaching Staff-Only Offer" })),
|
|
16833
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Teaching Staff-Only Offer", tagName: "h1" })),
|
|
16729
16834
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
16730
16835
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a teacher, faculty or staff at a K-12 or degree-granting university." }),
|
|
16731
16836
|
"\u00A0",
|
|
@@ -16849,7 +16954,7 @@ const StepMemberPersonalInfo = ({ intl, verificationService }) => {
|
|
|
16849
16954
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
16850
16955
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
16851
16956
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
16852
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Members-Only Offer" })),
|
|
16957
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Members-Only Offer", tagName: "h1" })),
|
|
16853
16958
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
16854
16959
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a current member of an eligible organization." }),
|
|
16855
16960
|
"\u00A0",
|
|
@@ -17022,7 +17127,7 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17022
17127
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17023
17128
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17024
17129
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17025
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Military-Only Offer" })),
|
|
17130
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Military-Only Offer", tagName: "h1" })),
|
|
17026
17131
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17027
17132
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a member of the armed forces." })),
|
|
17028
17133
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -17031,8 +17136,8 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17031
17136
|
React.createElement(CountryComponentWrapper, { verificationService: verificationService, viewModel: viewModel, nextFocusField: "status" }),
|
|
17032
17137
|
availableStatuses
|
|
17033
17138
|
? (React.createElement(MilitaryStatusComponent, { value: {
|
|
17034
|
-
value:
|
|
17035
|
-
label:
|
|
17139
|
+
value: viewModel.status,
|
|
17140
|
+
label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),
|
|
17036
17141
|
}, isErrored: !!fieldValidationErrors.status, options: availableStatuses, onChange: (status) => {
|
|
17037
17142
|
updateActiveMilitaryViewModel('status', status ? status.value : '');
|
|
17038
17143
|
updateFieldValidationErrorsByFieldId('status', status ? status.value : '', verificationService);
|
|
@@ -17205,7 +17310,7 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17205
17310
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17206
17311
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17207
17312
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17208
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Military-Only Offer" })),
|
|
17313
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Military-Only Offer", tagName: "h1" })),
|
|
17209
17314
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17210
17315
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a member of the armed forces." }),
|
|
17211
17316
|
"\u00A0",
|
|
@@ -17214,8 +17319,8 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17214
17319
|
React.createElement(CountryComponentWrapper, { verificationService: verificationService, viewModel: viewModel, nextFocusField: "status" }),
|
|
17215
17320
|
availableStatuses
|
|
17216
17321
|
? (React.createElement(MilitaryStatusComponent, { value: {
|
|
17217
|
-
value:
|
|
17218
|
-
label:
|
|
17322
|
+
value: viewModel.status,
|
|
17323
|
+
label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),
|
|
17219
17324
|
}, isErrored: !!fieldValidationErrors.status, options: availableStatuses, onChange: (status) => {
|
|
17220
17325
|
updateInactiveMilitaryViewModel('status', status ? status.value : '');
|
|
17221
17326
|
updateFieldValidationErrorsByFieldId('status', status ? status.value : '', verificationService);
|
|
@@ -17309,12 +17414,12 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17309
17414
|
const getAvailableFirstResponderStatuses = () => {
|
|
17310
17415
|
const availableStatusesResponse = verificationService.verificationResponse.availableStatuses;
|
|
17311
17416
|
const availableStatuses = [];
|
|
17312
|
-
|
|
17417
|
+
availableStatusesResponse.forEach((status) => {
|
|
17313
17418
|
availableStatuses.push({
|
|
17314
17419
|
value: status,
|
|
17315
|
-
label: intl
|
|
17420
|
+
label: getStatusLabel(intl, status, FirstResponderStatusDefaultMessagesEnum),
|
|
17316
17421
|
});
|
|
17317
|
-
}
|
|
17422
|
+
});
|
|
17318
17423
|
return availableStatuses;
|
|
17319
17424
|
};
|
|
17320
17425
|
const handleFirstResponderStatusOnKeyDown = (event) => {
|
|
@@ -17346,7 +17451,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17346
17451
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17347
17452
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17348
17453
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17349
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this 1st Responder-Only Offer" })),
|
|
17454
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this 1st Responder-Only Offer", tagName: "h1" })),
|
|
17350
17455
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17351
17456
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're an active first responder." })),
|
|
17352
17457
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -17354,8 +17459,8 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17354
17459
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
17355
17460
|
React.createElement(CountryComponentWrapper, { verificationService: verificationService, viewModel: viewModel, nextFocusField: "status" }),
|
|
17356
17461
|
React.createElement(FirstResponderStatusComponent, { value: {
|
|
17357
|
-
value:
|
|
17358
|
-
label:
|
|
17462
|
+
value: viewModel.status,
|
|
17463
|
+
label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),
|
|
17359
17464
|
}, isErrored: !!fieldValidationErrors.status, options: getAvailableFirstResponderStatuses(), onChange: (status) => {
|
|
17360
17465
|
updateFirstResponderViewModel('status', status ? status.value : '');
|
|
17361
17466
|
updateFieldValidationErrorsByFieldId('status', status ? status.value : '', verificationService);
|
|
@@ -17455,12 +17560,6 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17455
17560
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17456
17561
|
const [memberIdMessageKeys, setMemberIdMessageKeys] = React.useState(undefined);
|
|
17457
17562
|
const [showMemberId, setShowMemberId] = React.useState(false);
|
|
17458
|
-
const getStatusLabel = (status) => {
|
|
17459
|
-
if (!status) {
|
|
17460
|
-
return '';
|
|
17461
|
-
}
|
|
17462
|
-
return intl.formatMessage({ id: status, defaultMessage: MedicalProfessionalStatusDefaultMessagesEnum[status] });
|
|
17463
|
-
};
|
|
17464
17563
|
const updateMedicalProfessionalViewModel = (key, value) => {
|
|
17465
17564
|
const nextState = produceDraftViewModel(viewModel, key, value);
|
|
17466
17565
|
verificationService.updateViewModel(nextState);
|
|
@@ -17468,12 +17567,12 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17468
17567
|
const getAvailableMedicalStatuses = () => {
|
|
17469
17568
|
const availableStatusesResponse = verificationResponse.availableStatuses;
|
|
17470
17569
|
const availableStatuses = [];
|
|
17471
|
-
|
|
17570
|
+
availableStatusesResponse.forEach((status) => {
|
|
17472
17571
|
availableStatuses.push({
|
|
17473
17572
|
value: status,
|
|
17474
|
-
label: getStatusLabel(status),
|
|
17573
|
+
label: getStatusLabel(intl, status, MedicalProfessionalStatusDefaultMessagesEnum),
|
|
17475
17574
|
});
|
|
17476
|
-
}
|
|
17575
|
+
});
|
|
17477
17576
|
return availableStatuses;
|
|
17478
17577
|
};
|
|
17479
17578
|
const handleMedicalStatusOnKeyDown = (event) => {
|
|
@@ -17516,7 +17615,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17516
17615
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17517
17616
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17518
17617
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17519
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Medical Professional-Only Offer" })),
|
|
17618
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Medical Professional-Only Offer", tagName: "h1" })),
|
|
17520
17619
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17521
17620
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a licensed medical professional." })),
|
|
17522
17621
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -17525,7 +17624,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17525
17624
|
React.createElement(CountryComponentWrapper, { verificationService: verificationService, viewModel: viewModel }),
|
|
17526
17625
|
React.createElement(MedicalStatusComponent, { value: {
|
|
17527
17626
|
value: viewModel.status,
|
|
17528
|
-
label: getStatusLabel(viewModel.status),
|
|
17627
|
+
label: getStatusLabel(intl, viewModel.status, MedicalProfessionalStatusDefaultMessagesEnum),
|
|
17529
17628
|
}, isErrored: !!fieldValidationErrors.status, options: getAvailableMedicalStatuses(), onChange: (status) => {
|
|
17530
17629
|
updateMedicalProfessionalViewModel('status', status ? status.value : '');
|
|
17531
17630
|
updateFieldValidationErrorsByFieldId('status', status ? status.value : '', verificationService);
|
|
@@ -17582,28 +17681,6 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17582
17681
|
};
|
|
17583
17682
|
const StepMedicalProfessionalPersonalInfoComponent = injectIntl(StepMedicalProfessionalPersonalInfo);
|
|
17584
17683
|
|
|
17585
|
-
const Address = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = '', }) => (React.createElement("div", { className: "sid-field sid-address" },
|
|
17586
|
-
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
17587
|
-
React.createElement("label", { htmlFor: "sid-address" },
|
|
17588
|
-
React.createElement("div", { className: `sid-field__label sid-l-space-btm-sm ${placeholder ? 'sid-h-screen-reader-only' : ''}` },
|
|
17589
|
-
React.createElement("div", { className: "sid-field__label sid-field__label--required" },
|
|
17590
|
-
React.createElement(FormattedHTMLMessage, { id: "address", defaultMessage: "Address" })))),
|
|
17591
|
-
React.createElement(InputTextComponent, { id: "address", isErrored: isErrored, onChange: e => onChange(e.target.value), onKeyDown: typeof onKeyDown === 'function' ? e => onKeyDown(e) : undefined, placeholder: placeholder || intl.formatMessage({ id: 'addressPlaceholder', defaultMessage: 'Address*' }), value: value }),
|
|
17592
|
-
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
17593
|
-
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidAddress", defaultMessage: "Invalid address" }))) : null));
|
|
17594
|
-
const AddressComponent = injectIntl(Address);
|
|
17595
|
-
|
|
17596
|
-
const City = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = '', }) => (React.createElement("div", { className: "sid-field sid-city" },
|
|
17597
|
-
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
17598
|
-
React.createElement("label", { htmlFor: "sid-city" },
|
|
17599
|
-
React.createElement("div", { className: `sid-field__label sid-l-space-btm-sm ${placeholder ? 'sid-h-screen-reader-only' : ''}` },
|
|
17600
|
-
React.createElement("div", { className: "sid-field__label sid-field__label--required" },
|
|
17601
|
-
React.createElement(FormattedHTMLMessage, { id: "city", defaultMessage: "City" })))),
|
|
17602
|
-
React.createElement(InputTextComponent, { id: "city", isErrored: isErrored, onChange: e => onChange(e.target.value), onKeyDown: typeof onKeyDown === 'function' ? e => onKeyDown(e) : undefined, placeholder: placeholder || intl.formatMessage({ id: 'cityPlaceholder', defaultMessage: 'City*' }), value: value }),
|
|
17603
|
-
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
17604
|
-
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidCity", defaultMessage: "Invalid city" }))) : null));
|
|
17605
|
-
const CityComponent = injectIntl(City);
|
|
17606
|
-
|
|
17607
17684
|
const State = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = '', }) => (React.createElement("div", { className: "sid-field sid-state" },
|
|
17608
17685
|
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
17609
17686
|
React.createElement("label", { htmlFor: "sid-state" },
|
|
@@ -17645,7 +17722,7 @@ const StepEmploymentPersonalInfo = ({ verificationService }) => {
|
|
|
17645
17722
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17646
17723
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17647
17724
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17648
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Employment-Only Offer" })),
|
|
17725
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Employment-Only Offer", tagName: "h1" })),
|
|
17649
17726
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17650
17727
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you're a current employee at an eligible company." }),
|
|
17651
17728
|
"\u00A0",
|
|
@@ -17785,7 +17862,7 @@ const StepDriverLicensePersonalInfo = ({ intl, verificationService }) => {
|
|
|
17785
17862
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17786
17863
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17787
17864
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17788
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer" })),
|
|
17865
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
17789
17866
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17790
17867
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you have a valid driver license" })),
|
|
17791
17868
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -17862,7 +17939,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17862
17939
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17863
17940
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17864
17941
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17865
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer" })),
|
|
17942
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
17866
17943
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17867
17944
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify your identity" })),
|
|
17868
17945
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -17952,7 +18029,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService }) => {
|
|
|
17952
18029
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
17953
18030
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
17954
18031
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
17955
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer" })),
|
|
18032
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
17956
18033
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
17957
18034
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify your identity" })),
|
|
17958
18035
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -18091,7 +18168,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService }) =>
|
|
|
18091
18168
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
18092
18169
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
18093
18170
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
18094
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title***", defaultMessage: "Unlock this Special Offer" })),
|
|
18171
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title***", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
18095
18172
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
18096
18173
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle***", defaultMessage: "Verify you have a professional license in your field." })),
|
|
18097
18174
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
@@ -18175,7 +18252,7 @@ const StepMoverPersonalInfo = ({ verificationService }) => {
|
|
|
18175
18252
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
18176
18253
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
18177
18254
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
18178
|
-
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer" })),
|
|
18255
|
+
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.title", defaultMessage: "Unlock this Special Offer", tagName: "h1" })),
|
|
18179
18256
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center" },
|
|
18180
18257
|
React.createElement(FormattedHTMLMessage, { id: "step.personalInfo.subtitle", defaultMessage: "Verify you have recently moved." }),
|
|
18181
18258
|
React.createElement("br", null),
|
|
@@ -20783,10 +20860,10 @@ const NewVerificationInnerComponent = ({ locale, messages, programTheme, verific
|
|
|
20783
20860
|
return (
|
|
20784
20861
|
// Don't change locale, so we don't have to load pluralization data, which has complications. HD-560
|
|
20785
20862
|
React.createElement(IntlProvider, { locale: "en", key: locale, messages: messagesWithOptions, textComponent: CustomTextWrapper },
|
|
20786
|
-
React.createElement(CustomCssWrapperComponent, { styles: getCustomCss(programTheme) },
|
|
20787
|
-
React.createElement("div", { className: rtlDetect_1.isRtlLang(modernizeLocale(locale)) ? 'sid-rtl' : 'sid-ltr' },
|
|
20863
|
+
React.createElement(CustomCssWrapperComponent, { styles: getCustomCss(programTheme) }, verificationService.isLoading ? React.createElement(LoadingScreenComponent, { step: verificationService.loadingStep })
|
|
20864
|
+
: (React.createElement("div", { className: rtlDetect_1.isRtlLang(modernizeLocale(locale)) ? 'sid-rtl' : 'sid-ltr' },
|
|
20788
20865
|
React.createElement(TestModeFlagComponent, { verificationService: verificationService }),
|
|
20789
|
-
React.createElement(LoadStepComponent, { stepToLoad: verificationService.verificationResponse.currentStep, verificationService: verificationService })))));
|
|
20866
|
+
React.createElement(LoadStepComponent, { stepToLoad: verificationService.verificationResponse.currentStep, verificationService: verificationService }))))));
|
|
20790
20867
|
};
|
|
20791
20868
|
|
|
20792
20869
|
/* eslint-disable */
|
|
@@ -20814,9 +20891,11 @@ class NewVerification extends React.Component {
|
|
|
20814
20891
|
}
|
|
20815
20892
|
}
|
|
20816
20893
|
render() {
|
|
20817
|
-
|
|
20894
|
+
// Note: If we have a loadingStep set we don't use this loading screen, we use the one inside
|
|
20895
|
+
// the inner component that is inside the internationalization provoder.
|
|
20896
|
+
if (this.props.verificationService.isLoading && !this.props.verificationService.loadingStep) {
|
|
20818
20897
|
logger.info('NewVerificationComponent: VerificationService is loading');
|
|
20819
|
-
return React.createElement(LoadingScreenComponent, null);
|
|
20898
|
+
return React.createElement(LoadingScreenComponent, null);
|
|
20820
20899
|
}
|
|
20821
20900
|
const { programTheme } = this.props.verificationService;
|
|
20822
20901
|
const { verificationResponse } = this.props.verificationService;
|
|
@@ -21098,5 +21177,5 @@ const collectDeviceProfile = async (verificationId, programId) => {
|
|
|
21098
21177
|
includeIPQSDeviceFingerprintScript(programTheme, verificationId);
|
|
21099
21178
|
};
|
|
21100
21179
|
|
|
21101
|
-
export { ACCEPTED_DOC_MIME_TYPES, AcceptableUploadsComponent, AddressComponent, BirthDateComponent, BranchOfServiceComponent, ChangeLocaleComponent, CityComponent, CollegeNameComponent, CompanyComponent, CopyToClipboard, CountDownComponent, CountryComponent, CountryComponentWrapper, DEFAULT_LOCALE, DEFAULT_MINIMUM_ORG_SEARCH_VALUE_LENGTH, DEFAULT_PRIVACY_POLICY_URL, DeleteJson, DischargeDateComponent, DriverLicenseNumberComponent, EmailComponent, FaqLinkComponent, FetchOrganizationsComponent, FieldIdEnum, FieldIds, FirstNameComponent, FirstResponderOrganizationComponent, FirstResponderStatusComponent, FirstResponderStatusDefaultMessagesEnum, FormFooterComponent, GetEmptyTheme, GetJson, GetResponse, HTTP_REQUEST_TIMEOUT, HookNameEnum, HookNames, HowDoesVerifyingWorkComponent, InputSelectButtonComponent, InputSelectComponent, InputSelectListComponent, InputTextComponent, LastNameComponent, LicensedProfessionalOrganizationComponent, LinkExternal, LoadingSpinnerComponent, Locales, LogoComponent, MAX_DOC_UPLOAD_DOCS_ALLOWED, MarketConsentWrapperComponent as MarketConsentWrapper, MedicalProfessionalOrganizationComponent, MedicalProfessionalStatusDefaultMessagesEnum, MedicalStatusComponent, MemberIdComponent, MembershipOrganizationComponent, MilitaryStatusComponent, MilitaryStatusDefaultMessagesEnum, MockSteps, MockStepsEnum, OptInComponent, OptInInputComponent, OrganizationListComponent, OrganizationResultComponent, PhoneNumberComponent, PostFiles, PostJson, PostalCodeComponent, PostalCodeInputComponent, PoweredByComponent, PrivacyPolicyLinkComponent, QUERY_STRING_ERRORID_OVERRIDE, QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_SEGMENT_OVERRIDE, QUERY_STRING_STEP_OVERRIDE, QUERY_STRING_SUBSEGMENT_OVERRIDE, RequestOrganizationContext, RequestOrganizationErrorComponent, RequestOrganizationForm, RequestOrganizationFormFooterComponent, RequestOrganizationSearchComponent, RequestOrganizationSearchResultComponent, RequestOrganizationSuccessComponent, ReviewPendingComponent, RewardsRemainingComponent, SHEERID, SMSCodeComponent, SSN_STRING_LENGTH, SSOPendingComponent, SearchFieldComponent, SegmentEnum, Segments, SelectButtonComponent, SelectComponent, SelectListComponent, SocialSecurityNumber, SortByLabel, SsnChoice, StateComponent, StateEnum, StateSelectComponent, StatusComponent, StepActiveMilitaryPersonalInfoComponent, StepDriverLicensePersonalInfoComponent, StepGeneralIdentityPersonalInfoComponent, StepHybridIdentityPersonalInfoComponent, SubSegmentEnum, TeacherSchoolComponent, TryAgainButtonComponent, TryAgainSteps, TypeaheadComponent, UPLOAD_FILE_PREFIX, UploadInfoComponent, VerificationApiClient, VerificationForm, VerificationSteps, VerificationStepsEnum, addFiles, addHook, allMockedResponses, arrayUnique, assertValidConversionRequest, assertValidDatabaseId, assertValidFieldId, assertValidFunction, assertValidHook, assertValidHookName, assertValidHtmlElement, assertValidLocale, assertValidMockStepName, assertValidProgramId, assertValidSegmentName, assertValidTrackingId, assertValidTryAgainStep, assertValidVerificationStepName, carrierConsentValueValidator, closeTabRef, collectDeviceProfile, conversion, convertByTrackingId, convertByVerificationId, customValidatorExists$1 as customValidatorExists, deepClone, deepMerge, displaySSN, employmentPInfoReqEmpty, ensureMaxMetadataKeyValueLengths, ensureTrailingSlash, fetchExistingVerificationRequest, fetchProgramOrganizations, fetchRequestOrganizations, formatTwoDigitValues, getAddSchoolRequestUrl, getAllEmptyViewModels, getAvailableCountryChoices, getAvailableLocaleChoices, getAvailableLocales, getAvailableMilitaryStatuses, getAvailableStateChoices, getCompanyName, getConfiguredCountries, getConfiguredStates, getCustomValidator, getCustomValidatorFields, getDefaultCountryChoice, getDomainFromUrl, getEmptyViewModel, getEstAndMaxReviewTimes, getEstimatedReviewTime, getExtendedFieldValidationErrorsEmpty, getFaqLink, getFieldDisplayOrderFromRefs, getFieldValidationErrors, getFieldValidationErrorsEmpty, getFingerprint, getFirstErroredFieldId, getHook, getLocaleSafely, getLogoUrl, getMarketConsent, getMaxReviewTime, getMessages, getMetadata, getNewEmailCodeResendUrl, getNewSmsCodeResendUrl, getNewVerificationRequestUrl, getOptions, getOrgSearchCountryTags, getOverriddenMock, getOverridenValidator, getPhoneNumberValidationError, getPrivacyPolicyCompanyName, getPrivacyPolicyUrl, getProgramThemeUrl, getQueryParamsFromUrl, getRefByFieldId, getRefs, getRouteOverride, getSafe, getSheerIdScriptBasePath, getTabRef, getTrackingIdFromQueryString, getVerificationIdFromQueryString, getVerificationStatusUrl, handleCountryOnKeyDown, handleEmailOnKeyDown, handleStateChange, hasFailedInstantMatch, howDoesVerifyingWorkMessages, isFormErrored, isFormFilled, isValidLocale, isValidUsPostalCode, listenToSheerIdFrame, loadInModal, loadInlineIframe, logger, orgToOption, orgsInStatus, overrideComponent, overrideValidator, phoneNumberValidator, populateViewModelFromQueryParams, postVerificationSizeUpdates, postalCodeMatchers, postalCodeValidator, produceDraftViewModel, refreshStore, registerAdditionalLocales, removeAllFiles, removeCustomValidator, removeFile, requestOrganizationConstants, resetCustomValidators, resetHooks, resetMetadata, resetOptions, resetOverriddenComponents, resetOverriddenValidators, resetRefs, resetStore, resetTabRef, resetViewModel, resolveTrackingId, setCustomValidator, setFocus, setMetadata, setOptions, setRef, setTabRef, setViewModel, shouldCollectAddressFields, shouldCollectPostalCode, socialSecurityEmpty, speakToOuterFrame, submitAddSchoolRequest, submitForm, unDisplaySSN, updateFieldValidationErrors, updateFieldValidationErrorsByFieldId, updateMilitaryViewModel, updateViewModelOrganization, usePollingInterval, validateFieldById, validateMetadata };
|
|
21180
|
+
export { ACCEPTED_DOC_MIME_TYPES, AcceptableUploadsComponent, AddressComponent, BirthDateComponent, BranchOfServiceComponent, ChangeLocaleComponent, CityComponent, CollegeNameComponent, CompanyComponent, CopyToClipboard, CountDownComponent, CountryComponent, CountryComponentWrapper, DEFAULT_LOCALE, DEFAULT_MINIMUM_ORG_SEARCH_VALUE_LENGTH, DEFAULT_PRIVACY_POLICY_URL, DeleteJson, DischargeDateComponent, DriverLicenseNumberComponent, EmailComponent, FaqLinkComponent, FetchOrganizationsComponent, FieldIdEnum, FieldIds, FirstNameComponent, FirstResponderOrganizationComponent, FirstResponderStatusComponent, FirstResponderStatusDefaultMessagesEnum, FormFooterComponent, GetEmptyTheme, GetJson, GetResponse, HTTP_REQUEST_TIMEOUT, HookNameEnum, HookNames, HowDoesVerifyingWorkComponent, InputSelectButtonComponent, InputSelectComponent, InputSelectListComponent, InputTextComponent, LastNameComponent, LicensedProfessionalOrganizationComponent, LinkExternal, LoadingSpinnerComponent, Locales, LogoComponent, MAX_DOC_UPLOAD_DOCS_ALLOWED, MarketConsentWrapperComponent as MarketConsentWrapper, MedicalProfessionalOrganizationComponent, MedicalProfessionalStatusDefaultMessagesEnum, MedicalStatusComponent, MemberIdComponent, MembershipOrganizationComponent, MilitaryStatusComponent, MilitaryStatusDefaultMessagesEnum, MockSteps, MockStepsEnum, OptInComponent, OptInInputComponent, OrganizationListComponent, OrganizationResultComponent, PhoneNumberComponent, PostFiles, PostJson, PostalCodeComponent, PostalCodeInputComponent, PoweredByComponent, PrivacyPolicyLinkComponent, QUERY_STRING_ERRORID_OVERRIDE, QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_SEGMENT_OVERRIDE, QUERY_STRING_STEP_OVERRIDE, QUERY_STRING_SUBSEGMENT_OVERRIDE, RequestOrganizationContext, RequestOrganizationErrorComponent, RequestOrganizationForm, RequestOrganizationFormFooterComponent, RequestOrganizationSearchComponent, RequestOrganizationSearchResultComponent, RequestOrganizationSuccessComponent, ReviewPendingComponent, RewardsRemainingComponent, SHEERID, SMSCodeComponent, SSN_STRING_LENGTH, SSOPendingComponent, SearchFieldComponent, SegmentEnum, Segments, SelectButtonComponent, SelectComponent, SelectListComponent, SocialSecurityNumber, SortByLabel, SsnChoice, StateComponent, StateEnum, StateSelectComponent, StatusComponent, StepActiveMilitaryPersonalInfoComponent, StepDriverLicensePersonalInfoComponent, StepGeneralIdentityPersonalInfoComponent, StepHybridIdentityPersonalInfoComponent, SubSegmentEnum, TeacherSchoolComponent, TryAgainButtonComponent, TryAgainSteps, TypeaheadComponent, UPLOAD_FILE_PREFIX, UploadInfoComponent, VerificationApiClient, VerificationForm, VerificationSteps, VerificationStepsEnum, addFiles, addHook, allMockedResponses, arrayUnique, assertValidConversionRequest, assertValidDatabaseId, assertValidFieldId, assertValidFunction, assertValidHook, assertValidHookName, assertValidHtmlElement, assertValidLocale, assertValidMockStepName, assertValidProgramId, assertValidSegmentName, assertValidTrackingId, assertValidTryAgainStep, assertValidVerificationStepName, carrierConsentValueValidator, closeTabRef, collectDeviceProfile, conversion, convertByTrackingId, convertByVerificationId, customValidatorExists$1 as customValidatorExists, deepClone, deepMerge, displaySSN, employmentPInfoReqEmpty, ensureMaxMetadataKeyValueLengths, ensureTrailingSlash, fetchExistingVerificationRequest, fetchProgramOrganizations, fetchRequestOrganizations, formatTwoDigitValues, getAddSchoolRequestUrl, getAllEmptyViewModels, getAvailableCountryChoices, getAvailableLocaleChoices, getAvailableLocales, getAvailableMilitaryStatuses, getAvailableStateChoices, getCompanyName, getConfiguredCountries, getConfiguredStates, getCustomValidator, getCustomValidatorFields, getDefaultCountryChoice, getDomainFromUrl, getEmptyViewModel, getEstAndMaxReviewTimes, getEstimatedReviewTime, getExtendedFieldValidationErrorsEmpty, getFaqLink, getFieldDisplayOrderFromRefs, getFieldValidationErrors, getFieldValidationErrorsEmpty, getFingerprint, getFirstErroredFieldId, getHook, getLocaleSafely, getLogoUrl, getMarketConsent, getMaxReviewTime, getMessages, getMetadata, getNewEmailCodeResendUrl, getNewSmsCodeResendUrl, getNewVerificationRequestUrl, getOptions, getOrgSearchCountryTags, getOverriddenMock, getOverridenValidator, getPhoneNumberValidationError, getPrivacyPolicyCompanyName, getPrivacyPolicyUrl, getProgramThemeUrl, getQueryParamsFromUrl, getRefByFieldId, getRefs, getRouteOverride, getSafe, getSheerIdScriptBasePath, getStatusLabel, getTabRef, getTrackingIdFromQueryString, getVerificationIdFromQueryString, getVerificationStatusUrl, handleCountryOnKeyDown, handleEmailOnKeyDown, handleStateChange, hasFailedInstantMatch, howDoesVerifyingWorkMessages, isFormErrored, isFormFilled, isTestEmailDomains, isValidLocale, isValidUsPostalCode, listenToSheerIdFrame, loadInModal, loadInlineIframe, logger, orgToOption, orgsInStatus, overrideComponent, overrideValidator, phoneNumberValidator, populateViewModelFromQueryParams, postVerificationSizeUpdates, postalCodeMatchers, postalCodeValidator, produceDraftViewModel, produceDraftViewModelWithRequiredFields, recordEvent, recordVerificationResponse, recordViewModelChange, refreshStore, registerAdditionalLocales, removeAllFiles, removeCustomValidator, removeFile, requestOrganizationConstants, resetCustomValidators, resetHooks, resetMetadata, resetOptions, resetOverriddenComponents, resetOverriddenValidators, resetRefs, resetStore, resetTabRef, resetViewModel, resolveTrackingId, setCustomValidator, setDimension, setFocus, setGaDimensionIsTest, setMetadata, setOptions, setRef, setTabRef, setViewModel, shouldCollectAddressFields, shouldCollectPostalCode, socialSecurityEmpty, speakToOuterFrame, submitAddSchoolRequest, submitForm, unDisplaySSN, updateFieldValidationErrors, updateFieldValidationErrorsByFieldId, updateMilitaryViewModel, updateViewModelOrganization, usePollingInterval, validateFieldById, validateMetadata };
|
|
21102
21181
|
//# sourceMappingURL=sheerides6.js.map
|