@sheerid/jslib 1.114.0 → 1.115.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/__tests__/__mocks__/mockResponses.d.ts +3 -1
- package/__tests__/__mocks__/mockVerificationService.d.ts +2 -0
- 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-27f8a3fb.es.js → ar-be8a4ea7.es.js} +6 -1
- package/es6/{cs-0a738d79.es.js.map → ar-be8a4ea7.es.js.map} +1 -1
- package/es6/{bg-a9edc7f5.es.js → bg-7d68b084.es.js} +6 -1
- package/es6/{ar-27f8a3fb.es.js.map → bg-7d68b084.es.js.map} +1 -1
- package/es6/{cs-0a738d79.es.js → cs-76972631.es.js} +6 -1
- package/es6/{da-6d465014.es.js.map → cs-76972631.es.js.map} +1 -1
- package/es6/{da-6d465014.es.js → da-ac1717ad.es.js} +6 -1
- package/es6/{bg-a9edc7f5.es.js.map → da-ac1717ad.es.js.map} +1 -1
- package/es6/{de-ecfb36e6.es.js → de-074f4e20.es.js} +6 -1
- package/es6/de-074f4e20.es.js.map +1 -0
- package/es6/{el-efb0eb96.es.js → el-3f65cd3e.es.js} +6 -1
- package/es6/el-3f65cd3e.es.js.map +1 -0
- package/es6/{en-GB-ec95a71d.es.js → en-GB-a9ddb9ae.es.js} +6 -1
- package/es6/{en-GB-ec95a71d.es.js.map → en-GB-a9ddb9ae.es.js.map} +1 -1
- package/es6/{es-02739eef.es.js → es-0b85cd1e.es.js} +6 -1
- package/es6/es-0b85cd1e.es.js.map +1 -0
- package/es6/{es-ES-6e018097.es.js → es-ES-09a85ab4.es.js} +6 -1
- package/es6/{es-ES-6e018097.es.js.map → es-ES-09a85ab4.es.js.map} +1 -1
- package/es6/{fi-639ce3ed.es.js → fi-e9d2aa76.es.js} +6 -1
- package/es6/fi-e9d2aa76.es.js.map +1 -0
- package/es6/{fr-CA-ea4679bd.es.js → fr-CA-e6486012.es.js} +6 -1
- package/es6/{fr-CA-ea4679bd.es.js.map → fr-CA-e6486012.es.js.map} +1 -1
- package/es6/{fr-1f9d20d7.es.js → fr-c29171e7.es.js} +6 -1
- package/es6/fr-c29171e7.es.js.map +1 -0
- package/es6/{ga-834b76d1.es.js → ga-9f436ad1.es.js} +6 -1
- package/es6/ga-9f436ad1.es.js.map +1 -0
- package/es6/{hr-acda52c1.es.js → hr-98b6b845.es.js} +6 -1
- package/es6/hr-98b6b845.es.js.map +1 -0
- package/es6/{hu-1f25d049.es.js → hu-c24b11a8.es.js} +6 -1
- package/es6/hu-c24b11a8.es.js.map +1 -0
- package/es6/{id-63296be9.es.js → id-7f3237d0.es.js} +6 -1
- package/es6/id-7f3237d0.es.js.map +1 -0
- package/es6/{it-50e6c872.es.js → it-ee9d3e4d.es.js} +6 -1
- package/es6/it-ee9d3e4d.es.js.map +1 -0
- package/es6/{iw-c2e37d78.es.js → iw-1105c657.es.js} +6 -1
- package/es6/iw-1105c657.es.js.map +1 -0
- package/es6/{ja-96f7c7dd.es.js → ja-5a7bda14.es.js} +6 -1
- package/es6/ja-5a7bda14.es.js.map +1 -0
- package/es6/{ko-78d7b382.es.js → ko-293bcc87.es.js} +6 -1
- package/es6/ko-293bcc87.es.js.map +1 -0
- package/es6/{lo-e211dcec.es.js → lo-d4965434.es.js} +6 -1
- package/es6/lo-d4965434.es.js.map +1 -0
- package/es6/{lt-b08d150f.es.js → lt-1dd3f6bc.es.js} +6 -1
- package/es6/lt-1dd3f6bc.es.js.map +1 -0
- package/es6/{ms-d7018245.es.js → ms-a2b49f0e.es.js} +6 -1
- package/es6/ms-a2b49f0e.es.js.map +1 -0
- package/es6/{nl-51a9f4ec.es.js → nl-1c1caaa7.es.js} +6 -1
- package/es6/nl-1c1caaa7.es.js.map +1 -0
- package/es6/{no-a8391221.es.js → no-6b809f77.es.js} +6 -1
- package/es6/no-6b809f77.es.js.map +1 -0
- package/es6/{pl-4502a589.es.js → pl-d19254aa.es.js} +6 -1
- package/es6/pl-d19254aa.es.js.map +1 -0
- package/es6/{pt-c335287a.es.js → pt-6940ccd4.es.js} +6 -1
- package/es6/pt-6940ccd4.es.js.map +1 -0
- package/es6/{pt-BR-3ef8396a.es.js → pt-BR-fd0de0f9.es.js} +6 -1
- package/es6/{pt-BR-3ef8396a.es.js.map → pt-BR-fd0de0f9.es.js.map} +1 -1
- package/es6/{ru-3e70d7bf.es.js → ru-5a707928.es.js} +6 -1
- package/es6/ru-5a707928.es.js.map +1 -0
- package/es6/{sk-3cfda03f.es.js → sk-89ce05be.es.js} +6 -1
- package/es6/sk-89ce05be.es.js.map +1 -0
- package/es6/{sl-91041e4c.es.js → sl-31c230c2.es.js} +6 -1
- package/es6/sl-31c230c2.es.js.map +1 -0
- package/es6/{sr-cc3139eb.es.js → sr-b7ed8dda.es.js} +6 -1
- package/es6/sr-b7ed8dda.es.js.map +1 -0
- package/es6/{sv-178885a6.es.js → sv-62e472d2.es.js} +6 -1
- package/es6/sv-62e472d2.es.js.map +1 -0
- package/es6/{th-54b3e8ec.es.js → th-4b41f086.es.js} +6 -1
- package/es6/th-4b41f086.es.js.map +1 -0
- package/es6/{tr-63995de1.es.js → tr-57f74930.es.js} +6 -1
- package/es6/tr-57f74930.es.js.map +1 -0
- package/es6/{zh-038b18f8.es.js → zh-077bb71f.es.js} +6 -1
- package/es6/zh-077bb71f.es.js.map +1 -0
- package/es6/{zh-HK-fa9bd73f.es.js → zh-HK-f0861267.es.js} +6 -1
- package/es6/zh-HK-f0861267.es.js.map +1 -0
- package/localized-messages/ar.json +6 -1
- package/localized-messages/bg.json +6 -1
- package/localized-messages/cs.json +6 -1
- package/localized-messages/da.json +6 -1
- package/localized-messages/de.json +6 -1
- package/localized-messages/el.json +6 -1
- package/localized-messages/en-GB.json +6 -1
- package/localized-messages/en-US.json +6 -1
- package/localized-messages/es-ES.json +6 -1
- package/localized-messages/es.json +6 -1
- package/localized-messages/fi.json +6 -1
- package/localized-messages/fr-CA.json +6 -1
- package/localized-messages/fr.json +6 -1
- package/localized-messages/ga.json +6 -1
- package/localized-messages/hr.json +6 -1
- package/localized-messages/hu.json +6 -1
- package/localized-messages/id.json +6 -1
- package/localized-messages/it.json +6 -1
- package/localized-messages/iw.json +6 -1
- package/localized-messages/ja.json +6 -1
- package/localized-messages/ko.json +6 -1
- package/localized-messages/lo.json +6 -1
- package/localized-messages/lt.json +6 -1
- package/localized-messages/ms.json +6 -1
- package/localized-messages/nl.json +6 -1
- package/localized-messages/no.json +6 -1
- package/localized-messages/pl.json +6 -1
- package/localized-messages/pt-BR.json +6 -1
- package/localized-messages/pt.json +6 -1
- package/localized-messages/ru.json +6 -1
- package/localized-messages/sk.json +6 -1
- package/localized-messages/sl.json +6 -1
- package/localized-messages/sr.json +6 -1
- package/localized-messages/sv.json +6 -1
- package/localized-messages/th.json +6 -1
- package/localized-messages/tr.json +6 -1
- package/localized-messages/zh-HK.json +6 -1
- package/localized-messages/zh.json +6 -1
- package/manifest.json +46 -46
- package/package.json +1 -1
- package/sheerid-requestOrg.css +4 -4
- package/sheerid-requestOrg.js +14 -14
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +9 -9
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +17 -17
- package/sheerid.js.map +1 -1
- package/sheerides6.js +124 -60
- package/sheerides6.js.map +1 -1
- package/src/components/LogoComponent/LogoComponent.d.ts +2 -1
- package/src/components/StepConsolation/StepConsolationComponent.d.ts +7 -0
- package/src/components/{StepErrorComponent.test.d.ts → StepConsolation/StepConsolationComponent.test.d.ts} +0 -0
- package/src/components/StepConsolation/index.d.ts +1 -0
- package/src/components/{StepErrorComponent.d.ts → StepError/StepErrorComponent.d.ts} +1 -1
- package/src/components/StepError/StepErrorComponent.test.d.ts +1 -0
- package/src/lib/types/runtimeTypes.d.ts +2 -1
- package/src/lib/types/types.d.ts +21 -4
- package/src/serverMocks/mocks.d.ts +2 -1
- package/types-reference.zip +0 -0
- package/es6/de-ecfb36e6.es.js.map +0 -1
- package/es6/el-efb0eb96.es.js.map +0 -1
- package/es6/es-02739eef.es.js.map +0 -1
- package/es6/fi-639ce3ed.es.js.map +0 -1
- package/es6/fr-1f9d20d7.es.js.map +0 -1
- package/es6/ga-834b76d1.es.js.map +0 -1
- package/es6/hr-acda52c1.es.js.map +0 -1
- package/es6/hu-1f25d049.es.js.map +0 -1
- package/es6/id-63296be9.es.js.map +0 -1
- package/es6/it-50e6c872.es.js.map +0 -1
- package/es6/iw-c2e37d78.es.js.map +0 -1
- package/es6/ja-96f7c7dd.es.js.map +0 -1
- package/es6/ko-78d7b382.es.js.map +0 -1
- package/es6/lo-e211dcec.es.js.map +0 -1
- package/es6/lt-b08d150f.es.js.map +0 -1
- package/es6/ms-d7018245.es.js.map +0 -1
- package/es6/nl-51a9f4ec.es.js.map +0 -1
- package/es6/no-a8391221.es.js.map +0 -1
- package/es6/pl-4502a589.es.js.map +0 -1
- package/es6/pt-c335287a.es.js.map +0 -1
- package/es6/ru-3e70d7bf.es.js.map +0 -1
- package/es6/sk-3cfda03f.es.js.map +0 -1
- package/es6/sl-91041e4c.es.js.map +0 -1
- package/es6/sr-cc3139eb.es.js.map +0 -1
- package/es6/sv-178885a6.es.js.map +0 -1
- package/es6/th-54b3e8ec.es.js.map +0 -1
- package/es6/tr-63995de1.es.js.map +0 -1
- package/es6/zh-038b18f8.es.js.map +0 -1
- package/es6/zh-HK-fa9bd73f.es.js.map +0 -1
package/sheerides6.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import React, { useRef, useCallback, useEffect, useMemo, cloneElement, Component, useLayoutEffect, useReducer, PureComponent, Children, useState, forwardRef, useImperativeHandle, Fragment as Fragment$4, Suspense as Suspense$4 } from 'react';
|
|
2
2
|
import { FormattedHTMLMessage, injectIntl, IntlProvider } from 'react-intl';
|
|
3
3
|
import 'react-intl/locale-data/en.js';
|
|
4
4
|
import ReactDOMServer from 'react-dom/server';
|
|
@@ -527,6 +527,7 @@ var VerificationStepsEnum;
|
|
|
527
527
|
VerificationStepsEnum["smsLoop"] = "smsLoop";
|
|
528
528
|
VerificationStepsEnum["emailLoop"] = "emailLoop";
|
|
529
529
|
VerificationStepsEnum["cancelEmailLoop"] = "cancelEmailLoop";
|
|
530
|
+
VerificationStepsEnum["consolation"] = "consolation";
|
|
530
531
|
})(VerificationStepsEnum || (VerificationStepsEnum = {}));
|
|
531
532
|
const VerificationSteps = Object.values(VerificationStepsEnum); // For runtime checks
|
|
532
533
|
// This depends on all collect steps starting with the string 'collect' if that
|
|
@@ -2209,6 +2210,7 @@ var enUSMessages = {
|
|
|
2209
2210
|
"defaultMessages.locales.hr": "Croatian",
|
|
2210
2211
|
"defaultMessages.locales.hu": "Hungarian",
|
|
2211
2212
|
"defaultMessages.locales.id": "Indonesian",
|
|
2213
|
+
"defaultMessages.locales.in": "Indonesian",
|
|
2212
2214
|
"defaultMessages.locales.it": "Italian",
|
|
2213
2215
|
"defaultMessages.locales.iw": "Hebrew",
|
|
2214
2216
|
"defaultMessages.locales.ja": "Japanese",
|
|
@@ -2258,6 +2260,7 @@ var enUSMessages = {
|
|
|
2258
2260
|
"defaultMessages.proceed": "Proceed",
|
|
2259
2261
|
"defaultMessages.requestSchool": "Don't see your school? Request to have it added.",
|
|
2260
2262
|
"defaultMessages.requiredFields": "All fields are required",
|
|
2263
|
+
"defaultMessages.rewardCodeEmailNotification": "We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.",
|
|
2261
2264
|
"defaultMessages.school": "School",
|
|
2262
2265
|
"defaultMessages.schoolName": "University / College name",
|
|
2263
2266
|
"defaultMessages.schoolNamePlaceholder": "University / College name",
|
|
@@ -2339,6 +2342,9 @@ var enUSMessages = {
|
|
|
2339
2342
|
"defaultMessages.step.collectSocialSecurityNumber.uploadDoc": "Upload a document",
|
|
2340
2343
|
"defaultMessages.step.collectSocialSecurityNumber.uploadInstead": "Upload a document instead",
|
|
2341
2344
|
"defaultMessages.step.collectSocialSecurityNumber.useSsn": "Verify using your social security number",
|
|
2345
|
+
"defaultMessages.step.consolation.subtitle": "Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.",
|
|
2346
|
+
"defaultMessages.step.consolation.title": "Claim your offer",
|
|
2347
|
+
"defaultMessages.step.consolation.verificationOnly": "Please direct any and all questions about this offer to {companyName}.",
|
|
2342
2348
|
"defaultMessages.step.docUpload.acceptableUploadExamples": "Acceptable examples include:",
|
|
2343
2349
|
"defaultMessages.step.docUpload.acceptableUploads.age.birthCertificate": "Your birth certificate",
|
|
2344
2350
|
"defaultMessages.step.docUpload.acceptableUploads.age.driversLicense": "Your drivers license",
|
|
@@ -2783,154 +2789,158 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2783
2789
|
switch (locale) {
|
|
2784
2790
|
case "ar":
|
|
2785
2791
|
localizedMessages = await import(
|
|
2786
|
-
/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2792
|
+
/* webpackChunkName: "messages_ar" */ './es6/ar-be8a4ea7.es.js').then((m) => m.default);
|
|
2787
2793
|
break;
|
|
2788
2794
|
case "bg":
|
|
2789
2795
|
localizedMessages = await import(
|
|
2790
|
-
/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2796
|
+
/* webpackChunkName: "messages_bg" */ './es6/bg-7d68b084.es.js').then((m) => m.default);
|
|
2791
2797
|
break;
|
|
2792
2798
|
case "cs":
|
|
2793
2799
|
localizedMessages = await import(
|
|
2794
|
-
/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2800
|
+
/* webpackChunkName: "messages_cs" */ './es6/cs-76972631.es.js').then((m) => m.default);
|
|
2795
2801
|
break;
|
|
2796
2802
|
case "da":
|
|
2797
2803
|
localizedMessages = await import(
|
|
2798
|
-
/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2804
|
+
/* webpackChunkName: "messages_da" */ './es6/da-ac1717ad.es.js').then((m) => m.default);
|
|
2799
2805
|
break;
|
|
2800
2806
|
case "de":
|
|
2801
2807
|
localizedMessages = await import(
|
|
2802
|
-
/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2808
|
+
/* webpackChunkName: "messages_de" */ './es6/de-074f4e20.es.js').then((m) => m.default);
|
|
2803
2809
|
break;
|
|
2804
2810
|
case "el":
|
|
2805
2811
|
localizedMessages = await import(
|
|
2806
|
-
/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2812
|
+
/* webpackChunkName: "messages_el" */ './es6/el-3f65cd3e.es.js').then((m) => m.default);
|
|
2807
2813
|
break;
|
|
2808
2814
|
case "en-GB":
|
|
2809
2815
|
localizedMessages = await import(
|
|
2810
|
-
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2816
|
+
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-a9ddb9ae.es.js').then((m) => m.default);
|
|
2811
2817
|
break;
|
|
2812
2818
|
case "en-US":
|
|
2813
2819
|
localizedMessages = enUSMessages;
|
|
2814
2820
|
break;
|
|
2815
2821
|
case "es-ES":
|
|
2816
2822
|
localizedMessages = await import(
|
|
2817
|
-
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2823
|
+
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-09a85ab4.es.js').then((m) => m.default);
|
|
2818
2824
|
break;
|
|
2819
2825
|
case "es":
|
|
2820
2826
|
localizedMessages = await import(
|
|
2821
|
-
/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2827
|
+
/* webpackChunkName: "messages_es" */ './es6/es-0b85cd1e.es.js').then((m) => m.default);
|
|
2822
2828
|
break;
|
|
2823
2829
|
case "fi":
|
|
2824
2830
|
localizedMessages = await import(
|
|
2825
|
-
/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2831
|
+
/* webpackChunkName: "messages_fi" */ './es6/fi-e9d2aa76.es.js').then((m) => m.default);
|
|
2826
2832
|
break;
|
|
2827
2833
|
case "fr-CA":
|
|
2828
2834
|
localizedMessages = await import(
|
|
2829
|
-
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2835
|
+
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-e6486012.es.js').then((m) => m.default);
|
|
2830
2836
|
break;
|
|
2831
2837
|
case "fr":
|
|
2832
2838
|
localizedMessages = await import(
|
|
2833
|
-
/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2839
|
+
/* webpackChunkName: "messages_fr" */ './es6/fr-c29171e7.es.js').then((m) => m.default);
|
|
2834
2840
|
break;
|
|
2835
2841
|
case "ga":
|
|
2836
2842
|
localizedMessages = await import(
|
|
2837
|
-
/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2843
|
+
/* webpackChunkName: "messages_ga" */ './es6/ga-9f436ad1.es.js').then((m) => m.default);
|
|
2838
2844
|
break;
|
|
2839
2845
|
case "hr":
|
|
2840
2846
|
localizedMessages = await import(
|
|
2841
|
-
/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2847
|
+
/* webpackChunkName: "messages_hr" */ './es6/hr-98b6b845.es.js').then((m) => m.default);
|
|
2842
2848
|
break;
|
|
2843
2849
|
case "hu":
|
|
2844
2850
|
localizedMessages = await import(
|
|
2845
|
-
/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2851
|
+
/* webpackChunkName: "messages_hu" */ './es6/hu-c24b11a8.es.js').then((m) => m.default);
|
|
2846
2852
|
break;
|
|
2847
2853
|
case "id":
|
|
2848
2854
|
localizedMessages = await import(
|
|
2849
|
-
/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2855
|
+
/* webpackChunkName: "messages_id" */ './es6/id-7f3237d0.es.js').then((m) => m.default);
|
|
2856
|
+
break;
|
|
2857
|
+
case "in":
|
|
2858
|
+
localizedMessages = await import(
|
|
2859
|
+
/* webpackChunkName: "messages_in" */ './es6/id-7f3237d0.es.js').then((m) => m.default);
|
|
2850
2860
|
break;
|
|
2851
2861
|
case "it":
|
|
2852
2862
|
localizedMessages = await import(
|
|
2853
|
-
/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2863
|
+
/* webpackChunkName: "messages_it" */ './es6/it-ee9d3e4d.es.js').then((m) => m.default);
|
|
2854
2864
|
break;
|
|
2855
2865
|
case "iw":
|
|
2856
2866
|
localizedMessages = await import(
|
|
2857
|
-
/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
2867
|
+
/* webpackChunkName: "messages_iw" */ './es6/iw-1105c657.es.js').then((m) => m.default);
|
|
2858
2868
|
break;
|
|
2859
2869
|
case "ja":
|
|
2860
2870
|
localizedMessages = await import(
|
|
2861
|
-
/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
2871
|
+
/* webpackChunkName: "messages_ja" */ './es6/ja-5a7bda14.es.js').then((m) => m.default);
|
|
2862
2872
|
break;
|
|
2863
2873
|
case "ko":
|
|
2864
2874
|
localizedMessages = await import(
|
|
2865
|
-
/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
2875
|
+
/* webpackChunkName: "messages_ko" */ './es6/ko-293bcc87.es.js').then((m) => m.default);
|
|
2866
2876
|
break;
|
|
2867
2877
|
case "lo":
|
|
2868
2878
|
localizedMessages = await import(
|
|
2869
|
-
/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
2879
|
+
/* webpackChunkName: "messages_lo" */ './es6/lo-d4965434.es.js').then((m) => m.default);
|
|
2870
2880
|
break;
|
|
2871
2881
|
case "lt":
|
|
2872
2882
|
localizedMessages = await import(
|
|
2873
|
-
/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
2883
|
+
/* webpackChunkName: "messages_lt" */ './es6/lt-1dd3f6bc.es.js').then((m) => m.default);
|
|
2874
2884
|
break;
|
|
2875
2885
|
case "ms":
|
|
2876
2886
|
localizedMessages = await import(
|
|
2877
|
-
/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
2887
|
+
/* webpackChunkName: "messages_ms" */ './es6/ms-a2b49f0e.es.js').then((m) => m.default);
|
|
2878
2888
|
break;
|
|
2879
2889
|
case "nl":
|
|
2880
2890
|
localizedMessages = await import(
|
|
2881
|
-
/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
2891
|
+
/* webpackChunkName: "messages_nl" */ './es6/nl-1c1caaa7.es.js').then((m) => m.default);
|
|
2882
2892
|
break;
|
|
2883
2893
|
case "no":
|
|
2884
2894
|
localizedMessages = await import(
|
|
2885
|
-
/* webpackChunkName: "messages_no" */ './es6/no-
|
|
2895
|
+
/* webpackChunkName: "messages_no" */ './es6/no-6b809f77.es.js').then((m) => m.default);
|
|
2886
2896
|
break;
|
|
2887
2897
|
case "pl":
|
|
2888
2898
|
localizedMessages = await import(
|
|
2889
|
-
/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
2899
|
+
/* webpackChunkName: "messages_pl" */ './es6/pl-d19254aa.es.js').then((m) => m.default);
|
|
2890
2900
|
break;
|
|
2891
2901
|
case "pt-BR":
|
|
2892
2902
|
localizedMessages = await import(
|
|
2893
|
-
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
2903
|
+
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-fd0de0f9.es.js').then((m) => m.default);
|
|
2894
2904
|
break;
|
|
2895
2905
|
case "pt":
|
|
2896
2906
|
localizedMessages = await import(
|
|
2897
|
-
/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
2907
|
+
/* webpackChunkName: "messages_pt" */ './es6/pt-6940ccd4.es.js').then((m) => m.default);
|
|
2898
2908
|
break;
|
|
2899
2909
|
case "ru":
|
|
2900
2910
|
localizedMessages = await import(
|
|
2901
|
-
/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
2911
|
+
/* webpackChunkName: "messages_ru" */ './es6/ru-5a707928.es.js').then((m) => m.default);
|
|
2902
2912
|
break;
|
|
2903
2913
|
case "sk":
|
|
2904
2914
|
localizedMessages = await import(
|
|
2905
|
-
/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
2915
|
+
/* webpackChunkName: "messages_sk" */ './es6/sk-89ce05be.es.js').then((m) => m.default);
|
|
2906
2916
|
break;
|
|
2907
2917
|
case "sl":
|
|
2908
2918
|
localizedMessages = await import(
|
|
2909
|
-
/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
2919
|
+
/* webpackChunkName: "messages_sl" */ './es6/sl-31c230c2.es.js').then((m) => m.default);
|
|
2910
2920
|
break;
|
|
2911
2921
|
case "sr":
|
|
2912
2922
|
localizedMessages = await import(
|
|
2913
|
-
/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
2923
|
+
/* webpackChunkName: "messages_sr" */ './es6/sr-b7ed8dda.es.js').then((m) => m.default);
|
|
2914
2924
|
break;
|
|
2915
2925
|
case "sv":
|
|
2916
2926
|
localizedMessages = await import(
|
|
2917
|
-
/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
2927
|
+
/* webpackChunkName: "messages_sv" */ './es6/sv-62e472d2.es.js').then((m) => m.default);
|
|
2918
2928
|
break;
|
|
2919
2929
|
case "th":
|
|
2920
2930
|
localizedMessages = await import(
|
|
2921
|
-
/* webpackChunkName: "messages_th" */ './es6/th-
|
|
2931
|
+
/* webpackChunkName: "messages_th" */ './es6/th-4b41f086.es.js').then((m) => m.default);
|
|
2922
2932
|
break;
|
|
2923
2933
|
case "tr":
|
|
2924
2934
|
localizedMessages = await import(
|
|
2925
|
-
/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
2935
|
+
/* webpackChunkName: "messages_tr" */ './es6/tr-57f74930.es.js').then((m) => m.default);
|
|
2926
2936
|
break;
|
|
2927
2937
|
case "zh-HK":
|
|
2928
2938
|
localizedMessages = await import(
|
|
2929
|
-
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
2939
|
+
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-f0861267.es.js').then((m) => m.default);
|
|
2930
2940
|
break;
|
|
2931
2941
|
case "zh":
|
|
2932
2942
|
localizedMessages = await import(
|
|
2933
|
-
/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
2943
|
+
/* webpackChunkName: "messages_zh" */ './es6/zh-077bb71f.es.js').then((m) => m.default);
|
|
2934
2944
|
break;
|
|
2935
2945
|
default:
|
|
2936
2946
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -3686,6 +3696,7 @@ const getAllEmptyViewModels = () => ({
|
|
|
3686
3696
|
emailLoop: deepClone(emailLoopEmpty),
|
|
3687
3697
|
pending: deepClone(emptyViewModel),
|
|
3688
3698
|
success: deepClone(emptyViewModel),
|
|
3699
|
+
consolation: deepClone(emptyViewModel),
|
|
3689
3700
|
error: deepClone(emptyViewModel),
|
|
3690
3701
|
cancelSocialSecurityNumber: deepClone(emptyViewModel),
|
|
3691
3702
|
docReviewLimitExceeded: deepClone(emptyViewModel),
|
|
@@ -5101,7 +5112,7 @@ const orgTypes = {
|
|
|
5101
5112
|
};
|
|
5102
5113
|
function byType(org) {
|
|
5103
5114
|
return org.type === orgTypes[this];
|
|
5104
|
-
}
|
|
5115
|
+
}
|
|
5105
5116
|
const RequestOrganizationSearchResult = ({ eligibleOrgs, ineligibleOrgs, intl, }) => {
|
|
5106
5117
|
const hasMaxResults = () => eligibleOrgs.length + ineligibleOrgs.length >= requestOrganizationConstants.MAX_RESULT_SIZE;
|
|
5107
5118
|
const eligibleUniversities = eligibleOrgs.filter(byType, "university");
|
|
@@ -5137,7 +5148,7 @@ const RequestOrganizationSearchResult = ({ eligibleOrgs, ineligibleOrgs, intl, }
|
|
|
5137
5148
|
React.createElement("div", { className: "sid-l-space-top-sm" },
|
|
5138
5149
|
React.createElement(FormattedHTMLMessage, { id: "orgType.university", defaultMessage: "Universities ({e})", values: { e: intl.formatHTMLMessage({ id: "orgType.ineligible" }) } })),
|
|
5139
5150
|
React.createElement("div", { className: "sid-l-space-top-sm" }, ineligibleUniversities.map((organization) => (React.createElement(OrganizationResultComponent, { key: organization.id, organization: organization, isEligible: false })))))),
|
|
5140
|
-
ineligibleK12.length > 0 && (React.createElement(React.Fragment, null,
|
|
5151
|
+
ineligibleK12.length > 0 && eligibleHighSchools.length <= 0 && (React.createElement(React.Fragment, null,
|
|
5141
5152
|
React.createElement("div", { className: "sid-l-space-top-sm" },
|
|
5142
5153
|
React.createElement(FormattedHTMLMessage, { id: "orgType.k12", defaultMessage: "K12 ({e})", values: { e: intl.formatHTMLMessage({ id: "orgType.ineligible" }) } })),
|
|
5143
5154
|
React.createElement("div", { className: "sid-l-space-top-sm" }, ineligibleK12.map((organization) => (React.createElement(OrganizationResultComponent, { key: organization.id, organization: organization, isEligible: false })))))),
|
|
@@ -5145,7 +5156,7 @@ const RequestOrganizationSearchResult = ({ eligibleOrgs, ineligibleOrgs, intl, }
|
|
|
5145
5156
|
React.createElement("div", { className: "sid-l-space-top-sm" },
|
|
5146
5157
|
React.createElement(FormattedHTMLMessage, { id: "orgType.postSecondary", defaultMessage: "Post Secondary Institutions ({e})", values: { e: intl.formatHTMLMessage({ id: "orgType.ineligible" }) } })),
|
|
5147
5158
|
React.createElement("div", { className: "sid-l-space-top-sm" }, ineligiblePostSecondaries.map((organization) => (React.createElement(OrganizationResultComponent, { key: organization.id, organization: organization, isEligible: false })))))),
|
|
5148
|
-
ineligibleHighSchools.length > 0 && (React.createElement(React.Fragment, null,
|
|
5159
|
+
ineligibleHighSchools.length > 0 && eligibleK12.length <= 0 && (React.createElement(React.Fragment, null,
|
|
5149
5160
|
React.createElement("div", { className: "sid-l-space-top-sm" },
|
|
5150
5161
|
React.createElement(FormattedHTMLMessage, { id: "orgType.highSchool", defaultMessage: "High Schools / Secondary Schools ({e})", values: { e: intl.formatHTMLMessage({ id: "orgType.ineligible" }) } })),
|
|
5151
5162
|
React.createElement("div", { className: "sid-l-space-top-sm" }, ineligibleHighSchools.map((organization) => (React.createElement(OrganizationResultComponent, { key: organization.id, organization: organization, isEligible: false }))))))));
|
|
@@ -10823,6 +10834,16 @@ const mockSuccessResponse = {
|
|
|
10823
10834
|
locale: "en-US",
|
|
10824
10835
|
};
|
|
10825
10836
|
// There is no request associated with this step
|
|
10837
|
+
// ========================= "Step" Consolation =======================
|
|
10838
|
+
const mockConsolationResponse = {
|
|
10839
|
+
verificationId: "5a3bffd5e4b05f0b878a9762",
|
|
10840
|
+
currentStep: "consolation",
|
|
10841
|
+
segment: "student",
|
|
10842
|
+
subSegment: null,
|
|
10843
|
+
consolationRewardCode: "MY_REWARD_123",
|
|
10844
|
+
locale: "en-US",
|
|
10845
|
+
};
|
|
10846
|
+
// There is no request associated with this step
|
|
10826
10847
|
// ============================ "Step" Error ===========================
|
|
10827
10848
|
const mockErrorResponse = {
|
|
10828
10849
|
verificationId: "5a3bffd5e4b05f0b878a9762",
|
|
@@ -10901,6 +10922,7 @@ const allMockedResponses = {
|
|
|
10901
10922
|
collectMemberPersonalInfo: mockMemberPersonalInfoResponse,
|
|
10902
10923
|
docUpload: mockDocUploadVerificationResponse,
|
|
10903
10924
|
success: mockSuccessResponse,
|
|
10925
|
+
consolation: mockConsolationResponse,
|
|
10904
10926
|
error: mockErrorResponse,
|
|
10905
10927
|
pending: mockPendingResponse,
|
|
10906
10928
|
docReviewLimitExceeded: mockDocReviewLimitExceededResponse,
|
|
@@ -11085,6 +11107,14 @@ const getSuccessStepMockResponseOverrides = (mockResponse) => {
|
|
|
11085
11107
|
}
|
|
11086
11108
|
return mockResponseClone;
|
|
11087
11109
|
};
|
|
11110
|
+
const getConsolationStepMockResponseOverrides = (mockResponse) => {
|
|
11111
|
+
const mockResponseClone = deepClone(mockResponse);
|
|
11112
|
+
const consolationRewardCodeMock = getRewardCodeOverride();
|
|
11113
|
+
if (consolationRewardCodeMock) {
|
|
11114
|
+
mockResponseClone.consolationRewardCode = consolationRewardCodeMock;
|
|
11115
|
+
}
|
|
11116
|
+
return mockResponseClone;
|
|
11117
|
+
};
|
|
11088
11118
|
/**
|
|
11089
11119
|
* Based on page request query params, return a fake response to allow direct access to any step.
|
|
11090
11120
|
*
|
|
@@ -11102,6 +11132,9 @@ const getOverriddenMock = async (overriddenStep, serverResponse) => {
|
|
|
11102
11132
|
case VerificationStepsEnum.success:
|
|
11103
11133
|
mockResponse = getSuccessStepMockResponseOverrides(mockResponse);
|
|
11104
11134
|
break;
|
|
11135
|
+
case VerificationStepsEnum.consolation:
|
|
11136
|
+
mockResponse = getConsolationStepMockResponseOverrides(mockResponse);
|
|
11137
|
+
break;
|
|
11105
11138
|
}
|
|
11106
11139
|
}
|
|
11107
11140
|
else {
|
|
@@ -17942,12 +17975,15 @@ const MarketConsentWrapperComponent = ({ verificationService, isErrored, onChang
|
|
|
17942
17975
|
return marketConsentConfig.enabled ? (React.createElement(OptInComponent, { isErrored: isErrored, isRequired: marketConsentConfig.required, verificationService: verificationService, value: (viewModel.metadata && viewModel.metadata.marketConsentValue) || false, onChange: (value) => onChange(value) })) : null;
|
|
17943
17976
|
};
|
|
17944
17977
|
|
|
17945
|
-
const LogoComponent = ({ verificationService }) => {
|
|
17978
|
+
const LogoComponent = ({ verificationService, fallbackLogo }) => {
|
|
17946
17979
|
const logoUrl = getLogoUrl(verificationService.programTheme);
|
|
17947
17980
|
if (logoUrl) {
|
|
17948
17981
|
return (React.createElement("div", { className: "sid-logo sid-l-space-top-md" },
|
|
17949
17982
|
React.createElement(FormattedHTMLMessage, { id: "companyName", defaultMessage: "{Company}" }, (companyName) => (React.createElement("img", { className: "sid-logo__img", alt: `${companyName} logo`, src: logoUrl })))));
|
|
17950
17983
|
}
|
|
17984
|
+
if (fallbackLogo) {
|
|
17985
|
+
return fallbackLogo;
|
|
17986
|
+
}
|
|
17951
17987
|
return null;
|
|
17952
17988
|
};
|
|
17953
17989
|
|
|
@@ -18067,7 +18103,8 @@ var debounce_2 = debounce_1.debounce;
|
|
|
18067
18103
|
const ROW_HEIGHT = 42;
|
|
18068
18104
|
const MAX_ITEMS = 26;
|
|
18069
18105
|
const OrganizationList = ({ getItemProps, highlightedIndex, organizations, itemToString, children, maxItemsToDisplay = MAX_ITEMS, }) => {
|
|
18070
|
-
const
|
|
18106
|
+
const childrenCount = Children.count(children);
|
|
18107
|
+
const fullHeight = (organizations.length + childrenCount) * ROW_HEIGHT;
|
|
18071
18108
|
const item = (organization, index) => (React.createElement("div", Object.assign({ className: `sid-organization-list__item ${highlightedIndex === index ? "sid-organization-list__item--highlighted" : ""}`, key: index }, getItemProps({
|
|
18072
18109
|
index,
|
|
18073
18110
|
item: organization,
|
|
@@ -20874,7 +20911,6 @@ const TryAgainButtonComponent = ({ verificationService }) => {
|
|
|
20874
20911
|
const BtnContainer = ({ children }) => (React.createElement("div", { className: "sid-l-space-top-lg sid-l-half-width sid-l-horz-center" }, children));
|
|
20875
20912
|
const StepError = ({ verificationService, errorId }) => {
|
|
20876
20913
|
const verificationResponse = verificationService.verificationResponse;
|
|
20877
|
-
const hasLogo = !!getLogoUrl(verificationService.programTheme);
|
|
20878
20914
|
let errorIds = getSafe(() => verificationResponse.errorIds) || [];
|
|
20879
20915
|
if (errorId) {
|
|
20880
20916
|
errorIds = [errorId, ...errorIds]; // Prefer passed in err over any others, so it goes first
|
|
@@ -20913,7 +20949,8 @@ const StepError = ({ verificationService, errorId }) => {
|
|
|
20913
20949
|
}
|
|
20914
20950
|
return (React.createElement("div", { id: "sid-step-error", className: "sid-l-container" },
|
|
20915
20951
|
React.createElement("div", { className: "sid-header sid-l-horz-center" },
|
|
20916
|
-
React.createElement("div", { className: logoContainerClass },
|
|
20952
|
+
React.createElement("div", { className: logoContainerClass },
|
|
20953
|
+
React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-exclamation.svg" }) })),
|
|
20917
20954
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md" },
|
|
20918
20955
|
React.createElement(FormattedHTMLMessage, Object.assign({}, errorTitle))),
|
|
20919
20956
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center sid-l-space-top-md" },
|
|
@@ -20937,7 +20974,6 @@ const StepSSOComponent = ({ verificationService }) => {
|
|
|
20937
20974
|
const verificationResponse = verificationService.verificationResponse;
|
|
20938
20975
|
const previousVerificationResponse = verificationService.previousVerificationResponse || undefined;
|
|
20939
20976
|
const { verificationId } = verificationService.verificationResponse;
|
|
20940
|
-
const hasLogo = !!getLogoUrl(verificationService.programTheme);
|
|
20941
20977
|
let timeout;
|
|
20942
20978
|
const pollForVerificationServiceUpdates = () => setTimeout(() => {
|
|
20943
20979
|
verificationService.fetchExistingVerificationRequest(programId, verificationId, previousVerificationResponse);
|
|
@@ -20971,7 +21007,8 @@ const StepSSOComponent = ({ verificationService }) => {
|
|
|
20971
21007
|
}
|
|
20972
21008
|
return (React.createElement("div", { id: "sid-step-sso", className: "sid-l-container" },
|
|
20973
21009
|
viewModel.isSSOActive ? (React.createElement("div", { className: "sid-header sid-l-horz-center" },
|
|
20974
|
-
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21010
|
+
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21011
|
+
React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg" }) })),
|
|
20975
21012
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md" },
|
|
20976
21013
|
React.createElement(FormattedHTMLMessage, { id: "step.sso.title", defaultMessage: "Verify using your school credentials" })),
|
|
20977
21014
|
React.createElement("div", { className: "sid-header__subtitle-one" },
|
|
@@ -20983,7 +21020,8 @@ const StepSSOComponent = ({ verificationService }) => {
|
|
|
20983
21020
|
React.createElement("button", { onClick: cancelSSOStep, type: "submit", className: "sid-btn sid-btn--dark sid-l-full-width", "aria-label": "submit" },
|
|
20984
21021
|
React.createElement(FormattedHTMLMessage, { id: "step.sso.cancel", defaultMessage: "Upload Proof of Enrollment" })))),
|
|
20985
21022
|
React.createElement("div", { className: "sid-l-space-top-xl" }))) : (React.createElement("div", { className: "sid-header sid-l-horz-center" },
|
|
20986
|
-
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21023
|
+
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21024
|
+
React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/sso-step.svg" }) })),
|
|
20987
21025
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md" },
|
|
20988
21026
|
React.createElement(FormattedHTMLMessage, { id: "step.sso.title", defaultMessage: "Verify using your school credentials" })),
|
|
20989
21027
|
React.createElement("div", { className: "sid-header__subtitle-one" },
|
|
@@ -21001,7 +21039,6 @@ const redirect = (redirectDestination) => {
|
|
|
21001
21039
|
win.focus();
|
|
21002
21040
|
};
|
|
21003
21041
|
const StepSuccess = ({ verificationService }) => {
|
|
21004
|
-
const hasLogo = !!getLogoUrl(verificationService.programTheme);
|
|
21005
21042
|
const redirectDestination = verificationService.verificationResponse
|
|
21006
21043
|
.redirectUrl;
|
|
21007
21044
|
const showRedirect = Boolean(redirectDestination);
|
|
@@ -21009,7 +21046,8 @@ const StepSuccess = ({ verificationService }) => {
|
|
|
21009
21046
|
const noCodeType = verificationService.programTheme.config.offerType === "noCode";
|
|
21010
21047
|
return (React.createElement("div", { id: "sid-step-success", className: "sid-l-container" },
|
|
21011
21048
|
React.createElement("div", { className: "sid-header sid-l-horz-center sid-l-space-top-md" },
|
|
21012
|
-
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21049
|
+
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21050
|
+
React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "", src: "https://assets-resources.sheerid.com/common/images/2018/icons/circle-check.svg" }) })),
|
|
21013
21051
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md", role: "alert", "aria-live": "polite" },
|
|
21014
21052
|
React.createElement(FormattedHTMLMessage, { id: "step.success.title", defaultMessage: "Success! You've been verified." })),
|
|
21015
21053
|
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center sid-l-two-thirds-width" },
|
|
@@ -21145,7 +21183,9 @@ const usePollingInterval = (callback, pollTime) => {
|
|
|
21145
21183
|
const DOC_UPLOAD_POLL_DURATION_DURING_COUNTDOWN = 5000;
|
|
21146
21184
|
const DOC_UPLOAD_POLL_DURATION = 20000;
|
|
21147
21185
|
const SSO_POLL_DURATION = 5000;
|
|
21148
|
-
const calculateShowCountdown = (isPreviousStepSSO,
|
|
21186
|
+
const calculateShowCountdown = (isExplicitlyMockingPending, isPreviousStepSSO, isMockingPreviousStepSSO, isMockingPreviousStepDocUpload) => (isExplicitlyMockingPending || !isPreviousStepSSO) &&
|
|
21187
|
+
!isMockingPreviousStepSSO &&
|
|
21188
|
+
!isMockingPreviousStepDocUpload;
|
|
21149
21189
|
const StepPending = ({ verificationService, intl }) => {
|
|
21150
21190
|
const { programId } = verificationService;
|
|
21151
21191
|
const { viewModel } = verificationService;
|
|
@@ -21154,7 +21194,6 @@ const StepPending = ({ verificationService, intl }) => {
|
|
|
21154
21194
|
verificationService.previousVerificationResponse ||
|
|
21155
21195
|
undefined;
|
|
21156
21196
|
const { verificationId } = verificationService.verificationResponse;
|
|
21157
|
-
const hasLogo = !!getLogoUrl(verificationService.programTheme);
|
|
21158
21197
|
const countdownSeconds = 20;
|
|
21159
21198
|
const isMockingPreviousStepSSO = getPreviousStepOverride() && getPreviousStepOverride() === VerificationStepsEnum.sso;
|
|
21160
21199
|
const isMockingPreviousStepDocUpload = getPreviousStepOverride() && getPreviousStepOverride() === VerificationStepsEnum.docUpload;
|
|
@@ -21165,8 +21204,7 @@ const StepPending = ({ verificationService, intl }) => {
|
|
|
21165
21204
|
}
|
|
21166
21205
|
return false;
|
|
21167
21206
|
};
|
|
21168
|
-
const [showCountDown, setShowCountDown] = React.useState(calculateShowCountdown(isPreviousStepSSO(), isMockingPreviousStepSSO, isMockingPreviousStepDocUpload));
|
|
21169
|
-
const getLogo = () => hasLogo ? (React.createElement(LogoComponent, { verificationService: verificationService })) : (React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg" }));
|
|
21207
|
+
const [showCountDown, setShowCountDown] = React.useState(calculateShowCountdown(getOptions().mockStep === "pending", isPreviousStepSSO(), isMockingPreviousStepSSO, isMockingPreviousStepDocUpload));
|
|
21170
21208
|
const pollTime = isPreviousStepSSO()
|
|
21171
21209
|
? SSO_POLL_DURATION
|
|
21172
21210
|
: showCountDown
|
|
@@ -21184,7 +21222,7 @@ const StepPending = ({ verificationService, intl }) => {
|
|
|
21184
21222
|
const onCountdownFinish = () => {
|
|
21185
21223
|
setShowCountDown(false);
|
|
21186
21224
|
};
|
|
21187
|
-
const logo =
|
|
21225
|
+
const logo = (React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg" }) }));
|
|
21188
21226
|
const getPendingContent = () => {
|
|
21189
21227
|
const showSSO = isPreviousStepSSO() || isMockingPreviousStepSSO;
|
|
21190
21228
|
if (showCountDown) {
|
|
@@ -21316,8 +21354,6 @@ const StepEmailLoop = ({ intl, verificationService }) => {
|
|
|
21316
21354
|
const previousViewModel = verificationService.previousViewModel || undefined;
|
|
21317
21355
|
const previousVerificationResponse = verificationService.previousVerificationResponse || undefined;
|
|
21318
21356
|
const [resendMessage, setResendMessage] = React.useState("");
|
|
21319
|
-
const hasLogo = !!getLogoUrl(verificationService.programTheme);
|
|
21320
|
-
const logo = hasLogo ? (React.createElement(LogoComponent, { verificationService: verificationService })) : (React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg" }));
|
|
21321
21357
|
const email = getSafe(() => previousViewModel.email);
|
|
21322
21358
|
const submitForm = () => {
|
|
21323
21359
|
logger.info("StepEmailLoopComponent submitting form");
|
|
@@ -21364,7 +21400,8 @@ const StepEmailLoop = ({ intl, verificationService }) => {
|
|
|
21364
21400
|
};
|
|
21365
21401
|
return (React.createElement("div", { id: "sid-step-email-loop", className: "sid-l-container" },
|
|
21366
21402
|
React.createElement("div", { className: "sid-header sid-l-horz-center" },
|
|
21367
|
-
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21403
|
+
React.createElement("div", { className: "sid-l-horz-center" },
|
|
21404
|
+
React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg" }) })),
|
|
21368
21405
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md" },
|
|
21369
21406
|
React.createElement(FormattedHTMLMessage, { id: "step.emailLoop.title", defaultMessage: "Check your email" })),
|
|
21370
21407
|
React.createElement("div", { className: "sid-header__subtitle-one" }, email ? (React.createElement(FormattedHTMLMessage, { id: "step.emailLoop.subtitleWithEmail", defaultMessage: "An email has been sent to {email} with a personalized link to complete the verification process.", values: { email } })) : (React.createElement(FormattedHTMLMessage, { id: "step.emailLoop.subtitleWithoutEmail", defaultMessage: "An email has been sent to your email account with a personalized link to complete the verification process." }))),
|
|
@@ -23039,7 +23076,6 @@ const StepDocUpload = ({ verificationService, intl }) => {
|
|
|
23039
23076
|
const { programTheme } = verificationService;
|
|
23040
23077
|
const viewModel = verificationService.viewModel;
|
|
23041
23078
|
const { fieldValidationErrors } = verificationService;
|
|
23042
|
-
const hasLogo = !!getLogoUrl(programTheme);
|
|
23043
23079
|
const subSegment = getSafe(() => verificationService.verificationResponse.subSegment);
|
|
23044
23080
|
const getFileForView = (file) => ({
|
|
23045
23081
|
name: file.name,
|
|
@@ -23122,7 +23158,8 @@ const StepDocUpload = ({ verificationService, intl }) => {
|
|
|
23122
23158
|
: null)) : null;
|
|
23123
23159
|
return (React.createElement("div", { id: "sid-step-doc-upload", className: "sid-l-container" },
|
|
23124
23160
|
React.createElement("div", { className: "sid-header sid-l-horz-center sid-l-space-top-md" },
|
|
23125
|
-
React.createElement("div", { className: "sid-l-horz-center" },
|
|
23161
|
+
React.createElement("div", { className: "sid-l-horz-center" },
|
|
23162
|
+
React.createElement(LogoComponent, { verificationService: verificationService, fallbackLogo: React.createElement("img", { className: "sid-l-lead-image", alt: "design element", src: "https://assets-resources.sheerid.com/common/images/2018/icons/doc-upload2.svg" }) })),
|
|
23126
23163
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md" },
|
|
23127
23164
|
React.createElement(FormattedHTMLMessage, { id: "step.docUpload.title", defaultMessage: "We need more information" })),
|
|
23128
23165
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService }),
|
|
@@ -23179,6 +23216,28 @@ const StepDocUpload = ({ verificationService, intl }) => {
|
|
|
23179
23216
|
};
|
|
23180
23217
|
const StepDocUploadComponent = injectIntl(StepDocUpload);
|
|
23181
23218
|
|
|
23219
|
+
const StepConsolation = ({ verificationService }) => {
|
|
23220
|
+
const consolationRewardCode = verificationService.verificationResponse.consolationRewardCode ||
|
|
23221
|
+
"${consolationRewardCode}"; // eslint-disable-line no-template-curly-in-string
|
|
23222
|
+
return (React.createElement("div", { id: "sid-step-consolation", className: "sid-l-container" },
|
|
23223
|
+
React.createElement("div", { className: "sid-header sid-l-horz-center sid-l-space-top-md" },
|
|
23224
|
+
React.createElement("div", { className: "sid-l-horz-center" },
|
|
23225
|
+
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
23226
|
+
React.createElement("div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md", role: "alert", "aria-live": "polite" },
|
|
23227
|
+
React.createElement(FormattedHTMLMessage, { id: "step.consolation.title", defaultMessage: "Claim your offer" })),
|
|
23228
|
+
React.createElement("div", { className: "sid-header__subtitle sid-l-horz-center sid-l-two-thirds-width" },
|
|
23229
|
+
React.createElement(FormattedHTMLMessage, { id: "step.consolation.subtitle", defaultMessage: "Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once." }))),
|
|
23230
|
+
React.createElement("div", { className: "sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center" }, consolationRewardCode),
|
|
23231
|
+
React.createElement("div", { className: "sid-l-space-top-md sid-h-bold-text sid-l-horz-center" },
|
|
23232
|
+
React.createElement(CopyToClipboard, { textToCopy: consolationRewardCode, notificationText: React.createElement(FormattedHTMLMessage, { id: "copied", defaultMessage: "Copied" }) },
|
|
23233
|
+
React.createElement(FormattedHTMLMessage, { id: "step.success.copyCouponCode", defaultMessage: "Copy Coupon code" }))),
|
|
23234
|
+
React.createElement("div", { className: "sid-footer sid-l-horz-center sid-l-space-top-lg" },
|
|
23235
|
+
React.createElement(FormattedHTMLMessage, { id: "rewardCodeEmailNotification", defaultMessage: "We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com." })),
|
|
23236
|
+
React.createElement("div", { className: "sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text" },
|
|
23237
|
+
React.createElement(FormattedHTMLMessage, { id: "companyName", defaultMessage: "{Company}" }, (companyName) => (React.createElement(FormattedHTMLMessage, { id: "step.consolation.verificationOnly", defaultMessage: "Please direct any and all questions about this offer to {companyName}.", values: { companyName } }))))));
|
|
23238
|
+
};
|
|
23239
|
+
const StepConsolationComponent = StepConsolation;
|
|
23240
|
+
|
|
23182
23241
|
/**
|
|
23183
23242
|
* TODO - preamble
|
|
23184
23243
|
*/
|
|
@@ -23202,6 +23261,7 @@ const defaultComponents = {
|
|
|
23202
23261
|
StepLowIncomePersonalInfoComponent,
|
|
23203
23262
|
StepSocialSecurityNumber,
|
|
23204
23263
|
StepSuccessComponent,
|
|
23264
|
+
StepConsolationComponent,
|
|
23205
23265
|
StepDocUploadComponent,
|
|
23206
23266
|
StepPendingComponent,
|
|
23207
23267
|
StepSSOComponent,
|
|
@@ -23281,6 +23341,10 @@ const LoadStepComponent = ({ stepToLoad, verificationService }) => {
|
|
|
23281
23341
|
Component = getComponent("StepSuccessComponent");
|
|
23282
23342
|
isSecondaryStep = true;
|
|
23283
23343
|
break;
|
|
23344
|
+
case VerificationStepsEnum.consolation:
|
|
23345
|
+
Component = getComponent("StepConsolationComponent");
|
|
23346
|
+
isSecondaryStep = true;
|
|
23347
|
+
break;
|
|
23284
23348
|
case VerificationStepsEnum.docUpload:
|
|
23285
23349
|
Component = getComponent("StepDocUploadComponent");
|
|
23286
23350
|
isSecondaryStep = true;
|