@sheerid/jslib 1.134.0 → 1.136.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 +4 -4
- 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-f4b1c657.es.js → ar-51894b2d.es.js} +6 -1
- package/es6/{cs-5dd50daf.es.js.map → ar-51894b2d.es.js.map} +1 -1
- package/es6/{bg-11a96fdc.es.js → bg-882cc7da.es.js} +6 -1
- package/es6/{ar-f4b1c657.es.js.map → bg-882cc7da.es.js.map} +1 -1
- package/es6/{cs-5dd50daf.es.js → cs-089af4d4.es.js} +6 -1
- package/es6/{da-9b265831.es.js.map → cs-089af4d4.es.js.map} +1 -1
- package/es6/{da-9b265831.es.js → da-2d95722e.es.js} +6 -1
- package/es6/{bg-11a96fdc.es.js.map → da-2d95722e.es.js.map} +1 -1
- package/es6/{de-8a3d5aa2.es.js → de-93e2a822.es.js} +6 -1
- package/es6/de-93e2a822.es.js.map +1 -0
- package/es6/{el-3d378930.es.js → el-98f59284.es.js} +6 -1
- package/es6/el-98f59284.es.js.map +1 -0
- package/es6/{en-GB-d28a6e35.es.js → en-GB-3e0f8ef5.es.js} +6 -1
- package/es6/{en-GB-d28a6e35.es.js.map → en-GB-3e0f8ef5.es.js.map} +1 -1
- package/es6/{es-6b19a2c3.es.js → es-519d8eca.es.js} +6 -1
- package/es6/es-519d8eca.es.js.map +1 -0
- package/es6/{es-ES-5c4af7f0.es.js → es-ES-775dd501.es.js} +6 -1
- package/es6/{es-ES-5c4af7f0.es.js.map → es-ES-775dd501.es.js.map} +1 -1
- package/es6/{fi-c856851e.es.js → fi-897da29d.es.js} +6 -1
- package/es6/fi-897da29d.es.js.map +1 -0
- package/es6/{fr-c25ecdc7.es.js → fr-98d586dc.es.js} +6 -1
- package/es6/fr-98d586dc.es.js.map +1 -0
- package/es6/{fr-CA-9cef23e0.es.js → fr-CA-c1063ccc.es.js} +6 -1
- package/es6/{fr-CA-9cef23e0.es.js.map → fr-CA-c1063ccc.es.js.map} +1 -1
- package/es6/{ga-79f12f9f.es.js → ga-b943c1d7.es.js} +6 -1
- package/es6/ga-b943c1d7.es.js.map +1 -0
- package/es6/{hr-7723f1b9.es.js → hr-9d5efcb0.es.js} +6 -1
- package/es6/hr-9d5efcb0.es.js.map +1 -0
- package/es6/{hu-61d5568f.es.js → hu-954c2355.es.js} +6 -1
- package/es6/hu-954c2355.es.js.map +1 -0
- package/es6/{id-28b2a6f6.es.js → id-cd5385a5.es.js} +6 -1
- package/es6/id-cd5385a5.es.js.map +1 -0
- package/es6/{it-84349e94.es.js → it-ceb32d54.es.js} +6 -1
- package/es6/it-ceb32d54.es.js.map +1 -0
- package/es6/{iw-102f63ac.es.js → iw-3063fe3c.es.js} +6 -1
- package/es6/iw-3063fe3c.es.js.map +1 -0
- package/es6/{ja-355e3932.es.js → ja-0d97a6ad.es.js} +6 -1
- package/es6/ja-0d97a6ad.es.js.map +1 -0
- package/es6/{ko-dab58c8c.es.js → ko-94f3a3e5.es.js} +6 -1
- package/es6/ko-94f3a3e5.es.js.map +1 -0
- package/es6/{lo-a21a9c48.es.js → lo-76ce290d.es.js} +6 -1
- package/es6/lo-76ce290d.es.js.map +1 -0
- package/es6/{lt-9a19fff5.es.js → lt-55e250ad.es.js} +6 -1
- package/es6/lt-55e250ad.es.js.map +1 -0
- package/es6/{ms-6a6cb7ff.es.js → ms-5422f739.es.js} +6 -1
- package/es6/ms-5422f739.es.js.map +1 -0
- package/es6/{nl-7d622a35.es.js → nl-2f39cad8.es.js} +6 -1
- package/es6/nl-2f39cad8.es.js.map +1 -0
- package/es6/{no-26fb0d8d.es.js → no-97c5ef89.es.js} +6 -1
- package/es6/no-97c5ef89.es.js.map +1 -0
- package/es6/{pl-d9a378cf.es.js → pl-fd238f3a.es.js} +6 -1
- package/es6/pl-fd238f3a.es.js.map +1 -0
- package/es6/{pt-BR-38695537.es.js → pt-BR-45ea70a9.es.js} +6 -1
- package/es6/{pt-BR-38695537.es.js.map → pt-BR-45ea70a9.es.js.map} +1 -1
- package/es6/{pt-d526a714.es.js → pt-f9d151b2.es.js} +6 -1
- package/es6/pt-f9d151b2.es.js.map +1 -0
- package/es6/{ru-df8fe3db.es.js → ru-cb3119d4.es.js} +6 -1
- package/es6/ru-cb3119d4.es.js.map +1 -0
- package/es6/{sk-e8534b4c.es.js → sk-160f8210.es.js} +6 -1
- package/es6/sk-160f8210.es.js.map +1 -0
- package/es6/{sl-83742af9.es.js → sl-531afdc0.es.js} +6 -1
- package/es6/sl-531afdc0.es.js.map +1 -0
- package/es6/{sr-1d9e11fd.es.js → sr-1e4134ac.es.js} +6 -1
- package/es6/sr-1e4134ac.es.js.map +1 -0
- package/es6/{sv-4deb4db2.es.js → sv-9363a83e.es.js} +6 -1
- package/es6/sv-9363a83e.es.js.map +1 -0
- package/es6/{th-9aa13bce.es.js → th-4ed02573.es.js} +6 -1
- package/es6/th-4ed02573.es.js.map +1 -0
- package/es6/{tr-6e871a20.es.js → tr-ee32e948.es.js} +6 -1
- package/es6/tr-ee32e948.es.js.map +1 -0
- package/es6/{zh-0268cdd5.es.js → zh-981d5854.es.js} +6 -1
- package/es6/zh-981d5854.es.js.map +1 -0
- package/es6/{zh-HK-606d2cf5.es.js → zh-HK-230a17f2.es.js} +6 -1
- package/es6/zh-HK-230a17f2.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/ro.json +16 -6
- 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/ur.json +19 -6
- package/localized-messages/vi.json +16 -6
- package/localized-messages/zh-HK.json +6 -1
- package/localized-messages/zh.json +6 -1
- package/localized-messages/zu.json +16 -6
- package/manifest.json +48 -48
- package/package.json +1 -1
- package/sheerid-requestOrg.css +5 -5
- package/sheerid-requestOrg.css.map +1 -1
- package/sheerid-requestOrg.js +13 -13
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +8 -8
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.css.map +1 -1
- package/sheerid.js +10 -10
- package/sheerid.js.map +1 -1
- package/sheerides6.js +114 -67
- package/sheerides6.js.map +1 -1
- package/src/components/DateComponent/DateComponent.d.ts +3 -2
- package/src/components/DateComponent/isDayFirst.d.ts +7 -0
- package/src/components/DateComponent/isDayFirst.test.d.ts +1 -0
- package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +5 -1
- package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +5 -1
- package/src/lib/types/runtimeTypes.d.ts +2 -1
- package/src/lib/types/types.d.ts +1 -0
- package/types-reference.zip +0 -0
- package/es6/de-8a3d5aa2.es.js.map +0 -1
- package/es6/el-3d378930.es.js.map +0 -1
- package/es6/es-6b19a2c3.es.js.map +0 -1
- package/es6/fi-c856851e.es.js.map +0 -1
- package/es6/fr-c25ecdc7.es.js.map +0 -1
- package/es6/ga-79f12f9f.es.js.map +0 -1
- package/es6/hr-7723f1b9.es.js.map +0 -1
- package/es6/hu-61d5568f.es.js.map +0 -1
- package/es6/id-28b2a6f6.es.js.map +0 -1
- package/es6/it-84349e94.es.js.map +0 -1
- package/es6/iw-102f63ac.es.js.map +0 -1
- package/es6/ja-355e3932.es.js.map +0 -1
- package/es6/ko-dab58c8c.es.js.map +0 -1
- package/es6/lo-a21a9c48.es.js.map +0 -1
- package/es6/lt-9a19fff5.es.js.map +0 -1
- package/es6/ms-6a6cb7ff.es.js.map +0 -1
- package/es6/nl-7d622a35.es.js.map +0 -1
- package/es6/no-26fb0d8d.es.js.map +0 -1
- package/es6/pl-d9a378cf.es.js.map +0 -1
- package/es6/pt-d526a714.es.js.map +0 -1
- package/es6/ru-df8fe3db.es.js.map +0 -1
- package/es6/sk-e8534b4c.es.js.map +0 -1
- package/es6/sl-83742af9.es.js.map +0 -1
- package/es6/sr-1d9e11fd.es.js.map +0 -1
- package/es6/sv-4deb4db2.es.js.map +0 -1
- package/es6/th-9aa13bce.es.js.map +0 -1
- package/es6/tr-6e871a20.es.js.map +0 -1
- package/es6/zh-0268cdd5.es.js.map +0 -1
- package/es6/zh-HK-606d2cf5.es.js.map +0 -1
package/sheerides6.js
CHANGED
|
@@ -632,6 +632,7 @@ var FirstResponderStatusDefaultMessagesEnum;
|
|
|
632
632
|
FirstResponderStatusDefaultMessagesEnum["FIREFIGHTER"] = "Firefighter";
|
|
633
633
|
FirstResponderStatusDefaultMessagesEnum["POLICE"] = "Police";
|
|
634
634
|
FirstResponderStatusDefaultMessagesEnum["EMT"] = "EMT";
|
|
635
|
+
FirstResponderStatusDefaultMessagesEnum["SEARCH_AND_RESCUE"] = "Search and Rescue";
|
|
635
636
|
})(FirstResponderStatusDefaultMessagesEnum || (FirstResponderStatusDefaultMessagesEnum = {}));
|
|
636
637
|
var MedicalProfessionalStatusDefaultMessagesEnum;
|
|
637
638
|
(function (MedicalProfessionalStatusDefaultMessagesEnum) {
|
|
@@ -1913,6 +1914,7 @@ var enUSMessages = {
|
|
|
1913
1914
|
"defaultMessages.PHARMACIST": "Pharmacist",
|
|
1914
1915
|
"defaultMessages.POLICE": "Police",
|
|
1915
1916
|
"defaultMessages.RESERVIST": "Reservist or National Guard",
|
|
1917
|
+
"defaultMessages.SEARCH_AND_RESCUE": "Search and Rescue",
|
|
1916
1918
|
"defaultMessages.SNAP_BENEFITS": "Snap Benefits Recipient",
|
|
1917
1919
|
"defaultMessages.VETERAN": "Military Veteran or Retiree",
|
|
1918
1920
|
"defaultMessages.VETERINARIAN": "Veterinarian",
|
|
@@ -2312,6 +2314,7 @@ var enUSMessages = {
|
|
|
2312
2314
|
"defaultMessages.locales.pl": "Polish",
|
|
2313
2315
|
"defaultMessages.locales.pt": "Portuguese",
|
|
2314
2316
|
"defaultMessages.locales.pt-BR": "Portuguese (Brazil)",
|
|
2317
|
+
"defaultMessages.locales.ro": "Romanian",
|
|
2315
2318
|
"defaultMessages.locales.ru": "Russia",
|
|
2316
2319
|
"defaultMessages.locales.sk": "Slovak",
|
|
2317
2320
|
"defaultMessages.locales.sl": "Slovenian",
|
|
@@ -2319,8 +2322,11 @@ var enUSMessages = {
|
|
|
2319
2322
|
"defaultMessages.locales.sv": "Swedish",
|
|
2320
2323
|
"defaultMessages.locales.th": "Thai",
|
|
2321
2324
|
"defaultMessages.locales.tr": "Turkish",
|
|
2325
|
+
"defaultMessages.locales.ur": "Urdu",
|
|
2326
|
+
"defaultMessages.locales.vi": "Vietnamese",
|
|
2322
2327
|
"defaultMessages.locales.zh": "Chinese (Traditional)",
|
|
2323
2328
|
"defaultMessages.locales.zh-HK": "Chinese (Hong Kong)",
|
|
2329
|
+
"defaultMessages.locales.zu": "Zulu",
|
|
2324
2330
|
"defaultMessages.lowIncomeOrganization": "Government Assistance Program",
|
|
2325
2331
|
"defaultMessages.lowIncomeOrganizationPlaceholder": "Government Assistance Program",
|
|
2326
2332
|
"defaultMessages.lowRewardPool": "<span class='sid-fire-emoji'>🔥</span> Only {offersRemaining} offers left!",
|
|
@@ -2888,154 +2894,154 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2888
2894
|
switch (locale) {
|
|
2889
2895
|
case "ar":
|
|
2890
2896
|
localizedMessages = await import(
|
|
2891
|
-
/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2897
|
+
/* webpackChunkName: "messages_ar" */ './es6/ar-51894b2d.es.js').then((m) => m.default);
|
|
2892
2898
|
break;
|
|
2893
2899
|
case "bg":
|
|
2894
2900
|
localizedMessages = await import(
|
|
2895
|
-
/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2901
|
+
/* webpackChunkName: "messages_bg" */ './es6/bg-882cc7da.es.js').then((m) => m.default);
|
|
2896
2902
|
break;
|
|
2897
2903
|
case "cs":
|
|
2898
2904
|
localizedMessages = await import(
|
|
2899
|
-
/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2905
|
+
/* webpackChunkName: "messages_cs" */ './es6/cs-089af4d4.es.js').then((m) => m.default);
|
|
2900
2906
|
break;
|
|
2901
2907
|
case "da":
|
|
2902
2908
|
localizedMessages = await import(
|
|
2903
|
-
/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2909
|
+
/* webpackChunkName: "messages_da" */ './es6/da-2d95722e.es.js').then((m) => m.default);
|
|
2904
2910
|
break;
|
|
2905
2911
|
case "de":
|
|
2906
2912
|
localizedMessages = await import(
|
|
2907
|
-
/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2913
|
+
/* webpackChunkName: "messages_de" */ './es6/de-93e2a822.es.js').then((m) => m.default);
|
|
2908
2914
|
break;
|
|
2909
2915
|
case "el":
|
|
2910
2916
|
localizedMessages = await import(
|
|
2911
|
-
/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2917
|
+
/* webpackChunkName: "messages_el" */ './es6/el-98f59284.es.js').then((m) => m.default);
|
|
2912
2918
|
break;
|
|
2913
2919
|
case "en-GB":
|
|
2914
2920
|
localizedMessages = await import(
|
|
2915
|
-
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2921
|
+
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-3e0f8ef5.es.js').then((m) => m.default);
|
|
2916
2922
|
break;
|
|
2917
2923
|
case "en-US":
|
|
2918
2924
|
localizedMessages = enUSMessages;
|
|
2919
2925
|
break;
|
|
2920
2926
|
case "es-ES":
|
|
2921
2927
|
localizedMessages = await import(
|
|
2922
|
-
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2928
|
+
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-775dd501.es.js').then((m) => m.default);
|
|
2923
2929
|
break;
|
|
2924
2930
|
case "es":
|
|
2925
2931
|
localizedMessages = await import(
|
|
2926
|
-
/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2932
|
+
/* webpackChunkName: "messages_es" */ './es6/es-519d8eca.es.js').then((m) => m.default);
|
|
2927
2933
|
break;
|
|
2928
2934
|
case "fi":
|
|
2929
2935
|
localizedMessages = await import(
|
|
2930
|
-
/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2936
|
+
/* webpackChunkName: "messages_fi" */ './es6/fi-897da29d.es.js').then((m) => m.default);
|
|
2931
2937
|
break;
|
|
2932
2938
|
case "fr-CA":
|
|
2933
2939
|
localizedMessages = await import(
|
|
2934
|
-
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2940
|
+
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-c1063ccc.es.js').then((m) => m.default);
|
|
2935
2941
|
break;
|
|
2936
2942
|
case "fr":
|
|
2937
2943
|
localizedMessages = await import(
|
|
2938
|
-
/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2944
|
+
/* webpackChunkName: "messages_fr" */ './es6/fr-98d586dc.es.js').then((m) => m.default);
|
|
2939
2945
|
break;
|
|
2940
2946
|
case "ga":
|
|
2941
2947
|
localizedMessages = await import(
|
|
2942
|
-
/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2948
|
+
/* webpackChunkName: "messages_ga" */ './es6/ga-b943c1d7.es.js').then((m) => m.default);
|
|
2943
2949
|
break;
|
|
2944
2950
|
case "hr":
|
|
2945
2951
|
localizedMessages = await import(
|
|
2946
|
-
/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2952
|
+
/* webpackChunkName: "messages_hr" */ './es6/hr-9d5efcb0.es.js').then((m) => m.default);
|
|
2947
2953
|
break;
|
|
2948
2954
|
case "hu":
|
|
2949
2955
|
localizedMessages = await import(
|
|
2950
|
-
/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2956
|
+
/* webpackChunkName: "messages_hu" */ './es6/hu-954c2355.es.js').then((m) => m.default);
|
|
2951
2957
|
break;
|
|
2952
2958
|
case "id":
|
|
2953
2959
|
localizedMessages = await import(
|
|
2954
|
-
/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2960
|
+
/* webpackChunkName: "messages_id" */ './es6/id-cd5385a5.es.js').then((m) => m.default);
|
|
2955
2961
|
break;
|
|
2956
2962
|
case "it":
|
|
2957
2963
|
localizedMessages = await import(
|
|
2958
|
-
/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2964
|
+
/* webpackChunkName: "messages_it" */ './es6/it-ceb32d54.es.js').then((m) => m.default);
|
|
2959
2965
|
break;
|
|
2960
2966
|
case "iw":
|
|
2961
2967
|
localizedMessages = await import(
|
|
2962
|
-
/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
2968
|
+
/* webpackChunkName: "messages_iw" */ './es6/iw-3063fe3c.es.js').then((m) => m.default);
|
|
2963
2969
|
break;
|
|
2964
2970
|
case "ja":
|
|
2965
2971
|
localizedMessages = await import(
|
|
2966
|
-
/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
2972
|
+
/* webpackChunkName: "messages_ja" */ './es6/ja-0d97a6ad.es.js').then((m) => m.default);
|
|
2967
2973
|
break;
|
|
2968
2974
|
case "ko":
|
|
2969
2975
|
localizedMessages = await import(
|
|
2970
|
-
/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
2976
|
+
/* webpackChunkName: "messages_ko" */ './es6/ko-94f3a3e5.es.js').then((m) => m.default);
|
|
2971
2977
|
break;
|
|
2972
2978
|
case "lo":
|
|
2973
2979
|
localizedMessages = await import(
|
|
2974
|
-
/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
2980
|
+
/* webpackChunkName: "messages_lo" */ './es6/lo-76ce290d.es.js').then((m) => m.default);
|
|
2975
2981
|
break;
|
|
2976
2982
|
case "lt":
|
|
2977
2983
|
localizedMessages = await import(
|
|
2978
|
-
/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
2984
|
+
/* webpackChunkName: "messages_lt" */ './es6/lt-55e250ad.es.js').then((m) => m.default);
|
|
2979
2985
|
break;
|
|
2980
2986
|
case "ms":
|
|
2981
2987
|
localizedMessages = await import(
|
|
2982
|
-
/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
2988
|
+
/* webpackChunkName: "messages_ms" */ './es6/ms-5422f739.es.js').then((m) => m.default);
|
|
2983
2989
|
break;
|
|
2984
2990
|
case "nl":
|
|
2985
2991
|
localizedMessages = await import(
|
|
2986
|
-
/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
2992
|
+
/* webpackChunkName: "messages_nl" */ './es6/nl-2f39cad8.es.js').then((m) => m.default);
|
|
2987
2993
|
break;
|
|
2988
2994
|
case "no":
|
|
2989
2995
|
localizedMessages = await import(
|
|
2990
|
-
/* webpackChunkName: "messages_no" */ './es6/no-
|
|
2996
|
+
/* webpackChunkName: "messages_no" */ './es6/no-97c5ef89.es.js').then((m) => m.default);
|
|
2991
2997
|
break;
|
|
2992
2998
|
case "pl":
|
|
2993
2999
|
localizedMessages = await import(
|
|
2994
|
-
/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
3000
|
+
/* webpackChunkName: "messages_pl" */ './es6/pl-fd238f3a.es.js').then((m) => m.default);
|
|
2995
3001
|
break;
|
|
2996
3002
|
case "pt-BR":
|
|
2997
3003
|
localizedMessages = await import(
|
|
2998
|
-
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
3004
|
+
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-45ea70a9.es.js').then((m) => m.default);
|
|
2999
3005
|
break;
|
|
3000
3006
|
case "pt":
|
|
3001
3007
|
localizedMessages = await import(
|
|
3002
|
-
/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
3008
|
+
/* webpackChunkName: "messages_pt" */ './es6/pt-f9d151b2.es.js').then((m) => m.default);
|
|
3003
3009
|
break;
|
|
3004
3010
|
case "ru":
|
|
3005
3011
|
localizedMessages = await import(
|
|
3006
|
-
/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
3012
|
+
/* webpackChunkName: "messages_ru" */ './es6/ru-cb3119d4.es.js').then((m) => m.default);
|
|
3007
3013
|
break;
|
|
3008
3014
|
case "sk":
|
|
3009
3015
|
localizedMessages = await import(
|
|
3010
|
-
/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
3016
|
+
/* webpackChunkName: "messages_sk" */ './es6/sk-160f8210.es.js').then((m) => m.default);
|
|
3011
3017
|
break;
|
|
3012
3018
|
case "sl":
|
|
3013
3019
|
localizedMessages = await import(
|
|
3014
|
-
/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
3020
|
+
/* webpackChunkName: "messages_sl" */ './es6/sl-531afdc0.es.js').then((m) => m.default);
|
|
3015
3021
|
break;
|
|
3016
3022
|
case "sr":
|
|
3017
3023
|
localizedMessages = await import(
|
|
3018
|
-
/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
3024
|
+
/* webpackChunkName: "messages_sr" */ './es6/sr-1e4134ac.es.js').then((m) => m.default);
|
|
3019
3025
|
break;
|
|
3020
3026
|
case "sv":
|
|
3021
3027
|
localizedMessages = await import(
|
|
3022
|
-
/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
3028
|
+
/* webpackChunkName: "messages_sv" */ './es6/sv-9363a83e.es.js').then((m) => m.default);
|
|
3023
3029
|
break;
|
|
3024
3030
|
case "th":
|
|
3025
3031
|
localizedMessages = await import(
|
|
3026
|
-
/* webpackChunkName: "messages_th" */ './es6/th-
|
|
3032
|
+
/* webpackChunkName: "messages_th" */ './es6/th-4ed02573.es.js').then((m) => m.default);
|
|
3027
3033
|
break;
|
|
3028
3034
|
case "tr":
|
|
3029
3035
|
localizedMessages = await import(
|
|
3030
|
-
/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
3036
|
+
/* webpackChunkName: "messages_tr" */ './es6/tr-ee32e948.es.js').then((m) => m.default);
|
|
3031
3037
|
break;
|
|
3032
3038
|
case "zh-HK":
|
|
3033
3039
|
localizedMessages = await import(
|
|
3034
|
-
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
3040
|
+
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-230a17f2.es.js').then((m) => m.default);
|
|
3035
3041
|
break;
|
|
3036
3042
|
case "zh":
|
|
3037
3043
|
localizedMessages = await import(
|
|
3038
|
-
/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
3044
|
+
/* webpackChunkName: "messages_zh" */ './es6/zh-981d5854.es.js').then((m) => m.default);
|
|
3039
3045
|
break;
|
|
3040
3046
|
default:
|
|
3041
3047
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -3228,7 +3234,7 @@ const getRequestOrganizationLocale = (programTheme = null) => {
|
|
|
3228
3234
|
}
|
|
3229
3235
|
return locale;
|
|
3230
3236
|
};
|
|
3231
|
-
const standardizeLocale = (locale) => locale
|
|
3237
|
+
const standardizeLocale = (locale) => locale.replace("-", "_");
|
|
3232
3238
|
|
|
3233
3239
|
const getCompanyName = (programTheme) => {
|
|
3234
3240
|
let companyName = "{Company}"; // Show literal string "{Company}" so implementor is prompted to fix by adding in my.sheerid.com
|
|
@@ -14920,6 +14926,10 @@ const verificationServiceReducer = (state = getInitialState(), action) => {
|
|
|
14920
14926
|
},
|
|
14921
14927
|
};
|
|
14922
14928
|
case "REQUIRED_METADATA_CHECK":
|
|
14929
|
+
// Check if current step is a first step
|
|
14930
|
+
if (!CollectInfoSteps.includes(state.verificationResponse.currentStep)) {
|
|
14931
|
+
return state;
|
|
14932
|
+
}
|
|
14923
14933
|
const metadataConfig = getMetadataConfig(state.programTheme);
|
|
14924
14934
|
const metadata = getMetadata();
|
|
14925
14935
|
return {
|
|
@@ -17010,7 +17020,26 @@ const formatTwoDigitValues = (value) => {
|
|
|
17010
17020
|
}
|
|
17011
17021
|
};
|
|
17012
17022
|
|
|
17013
|
-
|
|
17023
|
+
/**
|
|
17024
|
+
* Returns true if the given locale formats dates with day-month-year.
|
|
17025
|
+
*
|
|
17026
|
+
* this function works by abusing Intl date formatting and using jan 3, 2222
|
|
17027
|
+
* which will use unique digits for each date part.
|
|
17028
|
+
*/
|
|
17029
|
+
function isDayFirst(locale) {
|
|
17030
|
+
const day = 3;
|
|
17031
|
+
const date = new Date(2222, 0, day);
|
|
17032
|
+
try {
|
|
17033
|
+
const formatted = new Intl.DateTimeFormat(locale).format(date);
|
|
17034
|
+
// strip zeros in case a date part is zero padded
|
|
17035
|
+
return formatted.replace("0", "").startsWith(day.toString());
|
|
17036
|
+
}
|
|
17037
|
+
catch (error) {
|
|
17038
|
+
return false;
|
|
17039
|
+
}
|
|
17040
|
+
}
|
|
17041
|
+
|
|
17042
|
+
const DateInput = ({ onChange, intl, isErrored, isRequired = true, value = "2000-01-01", errorMsg, label, fieldName, fieldId, mode = "date", locale = DEFAULT_LOCALE, }) => {
|
|
17014
17043
|
const cssId = `sid-${fieldId}`;
|
|
17015
17044
|
const dateParts = value.split("-");
|
|
17016
17045
|
const dateYear = Number.parseInt(dateParts[0], 10) || undefined;
|
|
@@ -17094,27 +17123,32 @@ const DateInput = ({ onChange, intl, isErrored, isRequired = true, value = "2000
|
|
|
17094
17123
|
const monthFieldId = `${cssId}__month`;
|
|
17095
17124
|
const fieldLabelId = `${cssId}-label`;
|
|
17096
17125
|
const wrappedErrMsg = React.createElement("div", { className: "sid-field-error" }, errorMsg);
|
|
17126
|
+
const month = (React.createElement(InputSelectComponent, { className: `${cssId}__month sid-date__month`, fieldId: fieldName, inputId: monthFieldId, fieldLabelId: fieldLabelId, isErrored: isErrored, options: months, onChange: (choice) => {
|
|
17127
|
+
if (choice) {
|
|
17128
|
+
updateMonth(choice.value);
|
|
17129
|
+
}
|
|
17130
|
+
else {
|
|
17131
|
+
// clear the birth month
|
|
17132
|
+
updateMonth(null);
|
|
17133
|
+
}
|
|
17134
|
+
}, placeholder: intl.formatHTMLMessage({ id: "dateTime.month", defaultMessage: "Month" }), suppressPlaceholder: false, value: dateMonth ? months[dateMonth - 1] : undefined, isRequired: isRequired, buttonRef: "inputSelectButtonBirthDate" }));
|
|
17135
|
+
const day = mode === "date" && (React.createElement(InputTextComponent, { className: `${cssId}__day sid-date__day sid-text-input sid-text-input--required ${isErrored ? "sid-text-input--error" : ""}`, id: `${fieldId}-day`, isErrored: isErrored, min: 1, max: 31, name: `${cssId}-day`, onChange: (e) => updateDay(e.target.value), onBlur: getDate, pattern: "\\d*", placeholder: intl.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }), hidePlaceholder: false, "aria-label": intl.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }), "aria-labelledby": cssId, "aria-required": isRequired, refId: `${fieldName}Day`, type: "text", value: dateDay || "" }));
|
|
17097
17136
|
return (React.createElement("div", { className: `sid-field ${cssId}` },
|
|
17098
17137
|
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
17099
17138
|
React.createElement(FieldLabel, { text: label, htmlForLabel: monthFieldId, id: fieldLabelId, displayClasses: "sid-field__label-with-explanation", isRequired: isRequired },
|
|
17100
17139
|
React.createElement(FormattedHTMLMessage, { id: "verificationPurposesOnly", defaultMessage: "Used for verification purposes only" })),
|
|
17101
17140
|
React.createElement("div", { className: `${cssId}__inputs sid-date__inputs` },
|
|
17102
|
-
React.createElement(
|
|
17103
|
-
|
|
17104
|
-
|
|
17105
|
-
|
|
17106
|
-
|
|
17107
|
-
|
|
17108
|
-
updateMonth(null);
|
|
17109
|
-
}
|
|
17110
|
-
}, placeholder: intl.formatHTMLMessage({ id: "dateTime.month", defaultMessage: "Month" }), suppressPlaceholder: false, value: dateMonth ? months[dateMonth - 1] : undefined, isRequired: isRequired, buttonRef: "inputSelectButtonBirthDate" }),
|
|
17111
|
-
mode === "date" && (React.createElement(InputTextComponent, { className: `${cssId}__day sid-date__day sid-text-input sid-text-input--required ${isErrored ? "sid-text-input--error" : ""}`, id: `${fieldId}-day`, isErrored: isErrored, min: 1, max: 31, name: `${cssId}-day`, onChange: (e) => updateDay(e.target.value), onBlur: getDate, pattern: "\\d*", placeholder: intl.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }), "aria-label": intl.formatHTMLMessage({ id: "dateTime.day", defaultMessage: "Day" }), "aria-labelledby": cssId, "aria-required": isRequired, refId: `${fieldName}Day`, type: "text", value: dateDay || "" })),
|
|
17112
|
-
React.createElement(InputTextComponent, { className: `${cssId}__year sid-date__year sid-text-input sid-text-input--required ${isErrored ? "sid-text-input--error" : ""}`, id: `${fieldId}-year`, name: `${cssId}-year`, type: "text", isErrored: isErrored, min: minYear, max: thisYear, value: dateYear || "", pattern: "\\d*", placeholder: intl.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }), "aria-label": intl.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }), "aria-labelledby": cssId, "aria-required": isRequired, refId: `${fieldName}Year`, onChange: (e) => updateBirthYear(e.target.value), onBlur: getDate })),
|
|
17141
|
+
isDayFirst(locale) ? (React.createElement(React.Fragment, null,
|
|
17142
|
+
day,
|
|
17143
|
+
month)) : (React.createElement(React.Fragment, null,
|
|
17144
|
+
month,
|
|
17145
|
+
day)),
|
|
17146
|
+
React.createElement(InputTextComponent, { className: `${cssId}__year sid-date__year sid-text-input sid-text-input--required ${isErrored ? "sid-text-input--error" : ""}`, id: `${fieldId}-year`, name: `${cssId}-year`, type: "text", isErrored: isErrored, min: minYear, max: thisYear, value: dateYear || "", pattern: "\\d*", placeholder: intl.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }), hidePlaceholder: false, "aria-label": intl.formatHTMLMessage({ id: "dateTime.year", defaultMessage: "Year" }), "aria-labelledby": cssId, "aria-required": isRequired, refId: `${fieldName}Year`, onChange: (e) => updateBirthYear(e.target.value), onBlur: getDate })),
|
|
17113
17147
|
isErrored ? wrappedErrMsg : null));
|
|
17114
17148
|
};
|
|
17115
17149
|
const DateComponent = injectIntl(DateInput);
|
|
17116
17150
|
|
|
17117
|
-
const BirthDateComponent = ({ onChange, isErrored, isRequired = true, errorId, value = "2000-01-01", }) => (React.createElement(DateComponent, { value: value, label: React.createElement(FormattedHTMLMessage, { id: "birthDate", defaultMessage: "Date of birth" }), onChange: onChange, fieldId: "birthdate", fieldName: "birthDate", isErrored: isErrored, isRequired: isRequired, errorMsg: errorId ? (React.createElement(FormattedHTMLMessage, { id: `errorId.${errorId}`, defaultMessage: "Invalid birth date" })) : (React.createElement(FormattedHTMLMessage, { id: "errorId.invalidBirthDate", defaultMessage: "Invalid birth date" })) }));
|
|
17151
|
+
const BirthDateComponent = ({ onChange, isErrored, isRequired = true, errorId, value = "2000-01-01", locale = DEFAULT_LOCALE, }) => (React.createElement(DateComponent, { value: value, label: React.createElement(FormattedHTMLMessage, { id: "birthDate", defaultMessage: "Date of birth" }), onChange: onChange, fieldId: "birthdate", fieldName: "birthDate", isErrored: isErrored, isRequired: isRequired, locale: locale, errorMsg: errorId ? (React.createElement(FormattedHTMLMessage, { id: `errorId.${errorId}`, defaultMessage: "Invalid birth date" })) : (React.createElement(FormattedHTMLMessage, { id: "errorId.invalidBirthDate", defaultMessage: "Invalid birth date" })) }));
|
|
17118
17152
|
|
|
17119
17153
|
function replaceCustomTags(text, tagmap) {
|
|
17120
17154
|
if (typeof text !== "string")
|
|
@@ -17449,6 +17483,7 @@ const StepStudentPersonalInfo = ({ verificationService, }) => {
|
|
|
17449
17483
|
});
|
|
17450
17484
|
verificationService.updateViewModel(nextState);
|
|
17451
17485
|
};
|
|
17486
|
+
const locale = viewModel.localeChoice.value;
|
|
17452
17487
|
return (React.createElement("div", { id: "sid-step-student-personal-info", className: "sid-l-container" },
|
|
17453
17488
|
failedInstantMatch ? (React.createElement("div", { className: "sid-header" },
|
|
17454
17489
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
@@ -17481,7 +17516,7 @@ const StepStudentPersonalInfo = ({ verificationService, }) => {
|
|
|
17481
17516
|
updateStudentViewModel("lastName", newValue);
|
|
17482
17517
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17483
17518
|
} })),
|
|
17484
|
-
React.createElement(BirthDateComponent, { value: viewModel.birthDate, isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, isRequired: true, onChange: (newValue) => {
|
|
17519
|
+
React.createElement(BirthDateComponent, { value: viewModel.birthDate, isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, isRequired: true, onChange: (newValue) => {
|
|
17485
17520
|
updateStudentViewModel("birthDate", newValue);
|
|
17486
17521
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17487
17522
|
} }),
|
|
@@ -17535,6 +17570,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
17535
17570
|
const { fieldValidationErrors } = verificationService;
|
|
17536
17571
|
const verificationResponse = verificationService.verificationResponse;
|
|
17537
17572
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17573
|
+
const locale = viewModel.localeChoice.value;
|
|
17538
17574
|
const updateSeniorViewModel = (key, value) => {
|
|
17539
17575
|
const nextState = fn(viewModel, (draft) => {
|
|
17540
17576
|
draft[key] = value;
|
|
@@ -17568,7 +17604,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
17568
17604
|
updateSeniorViewModel("lastName", newValue);
|
|
17569
17605
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17570
17606
|
} })),
|
|
17571
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
17607
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
17572
17608
|
updateSeniorViewModel("birthDate", newValue);
|
|
17573
17609
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17574
17610
|
}, value: viewModel.birthDate }),
|
|
@@ -17643,6 +17679,7 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
17643
17679
|
const { isSmsNotifierConfigured, smsLoopEnabled } = verificationService.programTheme;
|
|
17644
17680
|
const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);
|
|
17645
17681
|
const defaultRequiredFields = safeCountryValue === "US" ? [{ key: "postalCode" }] : [];
|
|
17682
|
+
const locale = viewModel.localeChoice.value;
|
|
17646
17683
|
const [requiredFields, setRequiredFields] = React.useState(defaultRequiredFields);
|
|
17647
17684
|
if (!fieldValidationErrors.phoneNumber &&
|
|
17648
17685
|
verificationResponse.errorIds &&
|
|
@@ -17725,7 +17762,7 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
17725
17762
|
updateAgeViewModel("lastName", newValue);
|
|
17726
17763
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17727
17764
|
} })),
|
|
17728
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
17765
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
17729
17766
|
updateAgeViewModel("birthDate", newValue);
|
|
17730
17767
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17731
17768
|
}, value: viewModel.birthDate }),
|
|
@@ -17797,6 +17834,7 @@ const StepTeacherPersonalInfo = ({ verificationService, }) => {
|
|
|
17797
17834
|
const { fieldValidationErrors } = verificationService;
|
|
17798
17835
|
const verificationResponse = verificationService.verificationResponse;
|
|
17799
17836
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17837
|
+
const locale = viewModel.localeChoice.value;
|
|
17800
17838
|
const updateTeacherViewModel = (key, value) => {
|
|
17801
17839
|
const nextState = fn(viewModel, (draft) => {
|
|
17802
17840
|
draft[key] = value;
|
|
@@ -17845,7 +17883,7 @@ const StepTeacherPersonalInfo = ({ verificationService, }) => {
|
|
|
17845
17883
|
updateTeacherViewModel("lastName", newValue);
|
|
17846
17884
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17847
17885
|
} })),
|
|
17848
|
-
verificationService.programTheme.idCheckAddOnEnabled ? (React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
17886
|
+
verificationService.programTheme.idCheckAddOnEnabled ? (React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
17849
17887
|
updateTeacherViewModel("birthDate", newValue);
|
|
17850
17888
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17851
17889
|
}, value: viewModel.birthDate })) : null,
|
|
@@ -17913,6 +17951,7 @@ const StepMemberPersonalInfo = ({ verificationService }) => {
|
|
|
17913
17951
|
const { fieldValidationErrors } = verificationService;
|
|
17914
17952
|
const verificationResponse = verificationService.verificationResponse;
|
|
17915
17953
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17954
|
+
const locale = viewModel.localeChoice.value;
|
|
17916
17955
|
const updateMemberViewModel = (key, value) => {
|
|
17917
17956
|
const nextState = fn(viewModel, (draft) => {
|
|
17918
17957
|
draft[key] = value;
|
|
@@ -17955,7 +17994,7 @@ const StepMemberPersonalInfo = ({ verificationService }) => {
|
|
|
17955
17994
|
updateMemberViewModel("email", newValue);
|
|
17956
17995
|
updateFieldValidationErrorsByFieldId("email", newValue, verificationService);
|
|
17957
17996
|
}, onKeyDown: (event) => handleEmailOnKeyDown(event) }),
|
|
17958
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, isRequired: false, onChange: (newValue) => {
|
|
17997
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, isRequired: false, onChange: (newValue) => {
|
|
17959
17998
|
updateMemberViewModel("birthDate", newValue);
|
|
17960
17999
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17961
18000
|
}, value: viewModel.birthDate }),
|
|
@@ -18093,7 +18132,7 @@ const BranchOfService = ({ autoFocus, onChange, value, isErrored, organizations,
|
|
|
18093
18132
|
};
|
|
18094
18133
|
const BranchOfServiceComponent = injectIntl(BranchOfService);
|
|
18095
18134
|
|
|
18096
|
-
const ActiveDutyStartDateComponent = ({ onChange, isErrored, errorId = "invalidActiveDutyStartDate", value = "2000-01-01", }) => (React.createElement(DateComponent, { value: value, label: React.createElement(FormattedHTMLMessage, { id: "activeDutyStartDate", defaultMessage: "Active Duty Start Date" }), onChange: onChange, fieldName: "activeDutyStartDate", fieldId: "sid-active-duty-start-date",
|
|
18135
|
+
const ActiveDutyStartDateComponent = ({ onChange, isErrored, errorId = "invalidActiveDutyStartDate", value = "2000-01-01", locale = DEFAULT_LOCALE, }) => (React.createElement(DateComponent, { value: value, label: React.createElement(FormattedHTMLMessage, { id: "activeDutyStartDate", defaultMessage: "Active Duty Start Date" }), onChange: onChange, fieldName: "activeDutyStartDate", fieldId: "sid-active-duty-start-date", locale: locale, isErrored: isErrored, errorMsg: React.createElement(FormattedHTMLMessage, { id: `errorId.${errorId}`, defaultMessage: "Invalid start date" }) }));
|
|
18097
18136
|
|
|
18098
18137
|
/**
|
|
18099
18138
|
* TODO - preamble
|
|
@@ -18106,6 +18145,7 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18106
18145
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18107
18146
|
const { status } = verificationService.viewModel;
|
|
18108
18147
|
const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);
|
|
18148
|
+
const locale = viewModel.localeChoice.value;
|
|
18109
18149
|
const updateActiveMilitaryViewModel = (key, value) => {
|
|
18110
18150
|
verificationService.updateViewModel(updateMilitaryViewModel(key, value, verificationService, availableStatuses));
|
|
18111
18151
|
};
|
|
@@ -18168,11 +18208,11 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18168
18208
|
updateActiveMilitaryViewModel("lastName", newValue);
|
|
18169
18209
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18170
18210
|
} })),
|
|
18171
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18211
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18172
18212
|
updateActiveMilitaryViewModel("birthDate", newValue);
|
|
18173
18213
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18174
18214
|
}, value: viewModel.birthDate }),
|
|
18175
|
-
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, errorId: fieldValidationErrors.activeDutyStartDate, onChange: (newValue) => {
|
|
18215
|
+
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, errorId: fieldValidationErrors.activeDutyStartDate, locale: locale, onChange: (newValue) => {
|
|
18176
18216
|
updateActiveMilitaryViewModel("activeDutyStartDate", newValue);
|
|
18177
18217
|
updateFieldValidationErrorsByFieldId("activeDutyStartDate", newValue, verificationService);
|
|
18178
18218
|
}, value: viewModel.activeDutyStartDate })),
|
|
@@ -18216,6 +18256,7 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18216
18256
|
const verificationResponse = verificationService.verificationResponse;
|
|
18217
18257
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18218
18258
|
const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);
|
|
18259
|
+
const locale = viewModel.localeChoice.value;
|
|
18219
18260
|
const updateInactiveMilitaryViewModel = (key, value) => {
|
|
18220
18261
|
verificationService.updateViewModel(updateMilitaryViewModel(key, value, verificationService, availableStatuses));
|
|
18221
18262
|
};
|
|
@@ -18276,11 +18317,11 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18276
18317
|
updateInactiveMilitaryViewModel("lastName", newValue);
|
|
18277
18318
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18278
18319
|
} })),
|
|
18279
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18320
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18280
18321
|
updateInactiveMilitaryViewModel("birthDate", newValue);
|
|
18281
18322
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18282
18323
|
}, value: viewModel.birthDate }),
|
|
18283
|
-
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, onChange: (newValue) => {
|
|
18324
|
+
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, locale: locale, onChange: (newValue) => {
|
|
18284
18325
|
updateInactiveMilitaryViewModel("activeDutyStartDate", newValue);
|
|
18285
18326
|
updateFieldValidationErrorsByFieldId("activeDutyStartDate", newValue, verificationService);
|
|
18286
18327
|
}, value: viewModel.activeDutyStartDate })),
|
|
@@ -18337,6 +18378,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18337
18378
|
const { fieldValidationErrors } = verificationService;
|
|
18338
18379
|
const verificationResponse = verificationService.verificationResponse;
|
|
18339
18380
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18381
|
+
const locale = viewModel.localeChoice.value;
|
|
18340
18382
|
const updateFirstResponderViewModel = (key, value) => {
|
|
18341
18383
|
const nextState = fn(viewModel, (draft) => {
|
|
18342
18384
|
draft[key] = value;
|
|
@@ -18403,7 +18445,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18403
18445
|
updateFirstResponderViewModel("lastName", newValue);
|
|
18404
18446
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18405
18447
|
} })),
|
|
18406
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18448
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18407
18449
|
updateFirstResponderViewModel("birthDate", newValue);
|
|
18408
18450
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18409
18451
|
}, value: viewModel.birthDate }),
|
|
@@ -18470,6 +18512,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
18470
18512
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18471
18513
|
const [memberIdMessageKeys, setMemberIdMessageKeys] = React.useState(undefined);
|
|
18472
18514
|
const [showMemberId, setShowMemberId] = React.useState(false);
|
|
18515
|
+
const locale = viewModel.localeChoice.value;
|
|
18473
18516
|
const updateMedicalProfessionalViewModel = (key, value) => {
|
|
18474
18517
|
const nextState = produceDraftViewModel(viewModel, key, value);
|
|
18475
18518
|
verificationService.updateViewModel(nextState);
|
|
@@ -18547,7 +18590,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
18547
18590
|
updateMedicalProfessionalViewModel("lastName", newValue);
|
|
18548
18591
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18549
18592
|
} })),
|
|
18550
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18593
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18551
18594
|
updateMedicalProfessionalViewModel("birthDate", newValue);
|
|
18552
18595
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18553
18596
|
}, value: viewModel.birthDate }),
|
|
@@ -18815,6 +18858,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18815
18858
|
const { fieldValidationErrors } = verificationService;
|
|
18816
18859
|
const verificationResponse = verificationService.verificationResponse;
|
|
18817
18860
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18861
|
+
const locale = viewModel.localeChoice.value;
|
|
18818
18862
|
const updateIdentityViewModel = (key, value) => {
|
|
18819
18863
|
const nextState = fn(viewModel, (draft) => {
|
|
18820
18864
|
draft[key] = value;
|
|
@@ -18859,7 +18903,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18859
18903
|
updateIdentityViewModel("phoneNumber", newValue);
|
|
18860
18904
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
18861
18905
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
18862
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18906
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18863
18907
|
updateIdentityViewModel("birthDate", newValue);
|
|
18864
18908
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18865
18909
|
}, value: viewModel.birthDate }),
|
|
@@ -18908,6 +18952,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18908
18952
|
const { fieldValidationErrors } = verificationService;
|
|
18909
18953
|
const verificationResponse = verificationService.verificationResponse;
|
|
18910
18954
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18955
|
+
const locale = viewModel.localeChoice.value;
|
|
18911
18956
|
const updateIdentityViewModel = (key, value) => {
|
|
18912
18957
|
const nextState = fn(viewModel, (draft) => {
|
|
18913
18958
|
draft[key] = value;
|
|
@@ -18952,7 +18997,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18952
18997
|
updateIdentityViewModel("phoneNumber", newValue);
|
|
18953
18998
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
18954
18999
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
18955
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
19000
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18956
19001
|
updateIdentityViewModel("birthDate", newValue);
|
|
18957
19002
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18958
19003
|
}, value: viewModel.birthDate }),
|
|
@@ -19024,6 +19069,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19024
19069
|
const { fieldValidationErrors } = verificationService;
|
|
19025
19070
|
const verificationResponse = verificationService.verificationResponse;
|
|
19026
19071
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
19072
|
+
const locale = viewModel.localeChoice.value;
|
|
19027
19073
|
const updateLicensedProfessionalViewModel = (key, value) => {
|
|
19028
19074
|
const nextState = fn(viewModel, (draft) => {
|
|
19029
19075
|
draft[key] = value;
|
|
@@ -19085,7 +19131,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19085
19131
|
updateLicensedProfessionalViewModel("lastName", newValue);
|
|
19086
19132
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
19087
19133
|
} })),
|
|
19088
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
19134
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
19089
19135
|
updateLicensedProfessionalViewModel("birthDate", newValue);
|
|
19090
19136
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
19091
19137
|
}, value: viewModel.birthDate }),
|
|
@@ -19227,6 +19273,7 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19227
19273
|
const { fieldValidationErrors } = verificationService;
|
|
19228
19274
|
const verificationResponse = verificationService.verificationResponse;
|
|
19229
19275
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
19276
|
+
const locale = viewModel.localeChoice.value;
|
|
19230
19277
|
const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;
|
|
19231
19278
|
const isSelectedStatusSnapBenefits = selectedStatus === "SNAP_BENEFITS";
|
|
19232
19279
|
const updateLowIncomeViewModel = (key, value) => {
|
|
@@ -19304,7 +19351,7 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19304
19351
|
updateLowIncomeViewModel("lastName", newValue);
|
|
19305
19352
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
19306
19353
|
} })),
|
|
19307
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
19354
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
19308
19355
|
updateLowIncomeViewModel("birthDate", newValue);
|
|
19309
19356
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
19310
19357
|
}, value: viewModel.birthDate }),
|