@sheerid/jslib 1.135.0 → 1.137.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 +2 -9
- package/es5/Tmetrix.bundle.js.LICENSE.txt +8 -0
- package/es5/Tmetrix.bundle.js.map +1 -1
- package/es5/messages_ar.bundle.js +2 -10
- package/es5/messages_ar.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_bg.bundle.js +2 -10
- package/es5/messages_bg.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_cs.bundle.js +2 -10
- package/es5/messages_cs.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_da.bundle.js +2 -10
- package/es5/messages_da.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_de.bundle.js +2 -10
- package/es5/messages_de.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_el.bundle.js +2 -10
- package/es5/messages_el.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_en-GB.bundle.js +2 -10
- package/es5/messages_en-GB.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_es-ES.bundle.js +2 -10
- package/es5/messages_es-ES.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_es.bundle.js +2 -10
- package/es5/messages_es.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_fi.bundle.js +2 -10
- package/es5/messages_fi.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_fr-CA.bundle.js +2 -10
- package/es5/messages_fr-CA.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_fr.bundle.js +2 -10
- package/es5/messages_fr.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_ga.bundle.js +2 -10
- package/es5/messages_ga.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_hr.bundle.js +2 -10
- package/es5/messages_hr.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_hu.bundle.js +2 -10
- package/es5/messages_hu.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_id.bundle.js +2 -10
- package/es5/messages_id.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_it.bundle.js +2 -10
- package/es5/messages_it.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_iw.bundle.js +2 -10
- package/es5/messages_iw.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_ja.bundle.js +2 -10
- package/es5/messages_ja.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_ko.bundle.js +2 -10
- package/es5/messages_ko.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_lo.bundle.js +2 -10
- package/es5/messages_lo.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_lt.bundle.js +2 -10
- package/es5/messages_lt.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_ms.bundle.js +2 -10
- package/es5/messages_ms.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_nl.bundle.js +2 -10
- package/es5/messages_nl.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_no.bundle.js +2 -10
- package/es5/messages_no.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_pl.bundle.js +2 -10
- package/es5/messages_pl.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_pt-BR.bundle.js +2 -10
- package/es5/messages_pt-BR.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_pt.bundle.js +2 -10
- package/es5/messages_pt.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_ru.bundle.js +2 -10
- package/es5/messages_ru.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_sk.bundle.js +2 -10
- package/es5/messages_sk.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_sl.bundle.js +2 -10
- package/es5/messages_sl.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_sr.bundle.js +2 -10
- package/es5/messages_sr.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_sv.bundle.js +2 -10
- package/es5/messages_sv.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_th.bundle.js +2 -10
- package/es5/messages_th.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_tr.bundle.js +2 -10
- package/es5/messages_tr.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_zh-HK.bundle.js +2 -10
- package/es5/messages_zh-HK.bundle.js.LICENSE.txt +8 -0
- package/es5/messages_zh.bundle.js +2 -10
- package/es5/messages_zh.bundle.js.LICENSE.txt +8 -0
- package/es6/{ar-f4b1c657.es.js → ar-51894b2d.es.js} +6 -1
- package/es6/{ar-f4b1c657.es.js.map → ar-51894b2d.es.js.map} +1 -1
- package/es6/{bg-11a96fdc.es.js → bg-882cc7da.es.js} +6 -1
- package/es6/{bg-11a96fdc.es.js.map → bg-882cc7da.es.js.map} +1 -1
- package/es6/{cs-5dd50daf.es.js → cs-089af4d4.es.js} +6 -1
- package/es6/{cs-5dd50daf.es.js.map → cs-089af4d4.es.js.map} +1 -1
- package/es6/{da-9b265831.es.js → da-2d95722e.es.js} +6 -1
- package/es6/{da-9b265831.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 +43 -215
- package/metrics-preview.js +1 -23
- package/metrics-sandbox.js +1 -23
- package/metrics.js +1 -23
- package/package.json +1 -1
- package/sheerid-requestOrg.css +6 -6
- package/sheerid-requestOrg.css.map +1 -1
- package/sheerid-requestOrg.js +2 -70
- package/sheerid-requestOrg.js.LICENSE.txt +58 -0
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +2 -25
- package/sheerid-utils.js.LICENSE.txt +16 -0
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +6 -6
- package/sheerid.css.map +1 -1
- package/sheerid.js +2 -91
- package/sheerid.js.LICENSE.txt +73 -0
- package/sheerid.js.map +1 -1
- package/sheerides6.js +178 -134
- 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 +16 -29
- package/src/lib/types/types.d.ts +13 -6
- package/types-reference.zip +0 -0
- package/es5/messages_ar.bundle.js.map +0 -1
- package/es5/messages_bg.bundle.js.map +0 -1
- package/es5/messages_cs.bundle.js.map +0 -1
- package/es5/messages_da.bundle.js.map +0 -1
- package/es5/messages_de.bundle.js.map +0 -1
- package/es5/messages_el.bundle.js.map +0 -1
- package/es5/messages_en-GB.bundle.js.map +0 -1
- package/es5/messages_es-ES.bundle.js.map +0 -1
- package/es5/messages_es.bundle.js.map +0 -1
- package/es5/messages_fi.bundle.js.map +0 -1
- package/es5/messages_fr-CA.bundle.js.map +0 -1
- package/es5/messages_fr.bundle.js.map +0 -1
- package/es5/messages_ga.bundle.js.map +0 -1
- package/es5/messages_hr.bundle.js.map +0 -1
- package/es5/messages_hu.bundle.js.map +0 -1
- package/es5/messages_id.bundle.js.map +0 -1
- package/es5/messages_it.bundle.js.map +0 -1
- package/es5/messages_iw.bundle.js.map +0 -1
- package/es5/messages_ja.bundle.js.map +0 -1
- package/es5/messages_ko.bundle.js.map +0 -1
- package/es5/messages_lo.bundle.js.map +0 -1
- package/es5/messages_lt.bundle.js.map +0 -1
- package/es5/messages_ms.bundle.js.map +0 -1
- package/es5/messages_nl.bundle.js.map +0 -1
- package/es5/messages_no.bundle.js.map +0 -1
- package/es5/messages_pl.bundle.js.map +0 -1
- package/es5/messages_pt-BR.bundle.js.map +0 -1
- package/es5/messages_pt.bundle.js.map +0 -1
- package/es5/messages_ru.bundle.js.map +0 -1
- package/es5/messages_sk.bundle.js.map +0 -1
- package/es5/messages_sl.bundle.js.map +0 -1
- package/es5/messages_sr.bundle.js.map +0 -1
- package/es5/messages_sv.bundle.js.map +0 -1
- package/es5/messages_th.bundle.js.map +0 -1
- package/es5/messages_tr.bundle.js.map +0 -1
- package/es5/messages_zh-HK.bundle.js.map +0 -1
- package/es5/messages_zh.bundle.js.map +0 -1
- 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
|
@@ -3,6 +3,43 @@ import { FormattedHTMLMessage, injectIntl, IntlProvider } from 'react-intl';
|
|
|
3
3
|
import 'react-intl/locale-data/en.js';
|
|
4
4
|
import ReactDOMServer from 'react-dom/server';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @description TODO
|
|
8
|
+
*/
|
|
9
|
+
const MILITARY_STATUS = [
|
|
10
|
+
"ACTIVE_DUTY",
|
|
11
|
+
"VETERAN",
|
|
12
|
+
"RESERVIST",
|
|
13
|
+
"MILITARY_RETIREE",
|
|
14
|
+
"MILITARY_FAMILY",
|
|
15
|
+
"GOLD_STAR_FAMILY",
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* @description TODO
|
|
19
|
+
*/
|
|
20
|
+
const FIRST_RESPONDER_STATUS = [
|
|
21
|
+
"FIREFIGHTER",
|
|
22
|
+
"EMT",
|
|
23
|
+
"POLICE",
|
|
24
|
+
"SEARCH_AND_RESCUE",
|
|
25
|
+
];
|
|
26
|
+
const MEDICAL_PROFESSIONAL_STATUS = [
|
|
27
|
+
"NURSE",
|
|
28
|
+
"DOCTOR",
|
|
29
|
+
"DENTIST",
|
|
30
|
+
"PHARMACIST",
|
|
31
|
+
"OTHER_HEALTH_WORKER",
|
|
32
|
+
];
|
|
33
|
+
const LICENSED_PROFESSIONAL_STATUS = [
|
|
34
|
+
"LICENSED_COSMETOLOGIST",
|
|
35
|
+
"LICENSED_REAL_ESTATE_AGENT",
|
|
36
|
+
"VETERINARIAN",
|
|
37
|
+
"CHILD_CARE_WORKER",
|
|
38
|
+
"LIBRARIAN",
|
|
39
|
+
];
|
|
40
|
+
const RECENT_MOVER_STATUS = ["HOME_BUYER", "OTHER_MOVER"];
|
|
41
|
+
const LOW_INCOME_STATUS = ["SNAP_BENEFITS", "OTHER_GOVERNMENT_ASSISTANCE"];
|
|
42
|
+
|
|
6
43
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
44
|
|
|
8
45
|
function unwrapExports (x) {
|
|
@@ -609,15 +646,14 @@ var SubSegmentEnum;
|
|
|
609
646
|
SubSegmentEnum["LIBRARIAN"] = "librarian";
|
|
610
647
|
})(SubSegmentEnum || (SubSegmentEnum = {}));
|
|
611
648
|
Object.values(SubSegmentEnum); // For runtime checks
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
})(MilitaryStatusDefaultMessagesEnum || (MilitaryStatusDefaultMessagesEnum = {}));
|
|
649
|
+
const MilitaryStatusDefaultMessagesEnum = {
|
|
650
|
+
ACTIVE_DUTY: "Active Duty",
|
|
651
|
+
MILITARY_RETIREE: "Military Retiree",
|
|
652
|
+
RESERVIST: "Reservist or National Guard",
|
|
653
|
+
VETERAN: "Military Veteran or Retiree",
|
|
654
|
+
MILITARY_FAMILY: "Military Family",
|
|
655
|
+
GOLD_STAR_FAMILY: "Gold Star Family",
|
|
656
|
+
};
|
|
621
657
|
const militaryReservistOrgNames = [
|
|
622
658
|
"Air Force Reserve",
|
|
623
659
|
"Air National Guard",
|
|
@@ -627,30 +663,27 @@ const militaryReservistOrgNames = [
|
|
|
627
663
|
"Marine Corps Forces Reserve",
|
|
628
664
|
"Navy Reserve",
|
|
629
665
|
];
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
LowIncomeStatusDefaultMessagesEnum["SNAP_BENEFITS"] = "Snap Benefits Recipient";
|
|
652
|
-
LowIncomeStatusDefaultMessagesEnum["OTHER_GOVERNMENT_ASSISTANCE"] = "Other Government Assistance Recipient";
|
|
653
|
-
})(LowIncomeStatusDefaultMessagesEnum || (LowIncomeStatusDefaultMessagesEnum = {}));
|
|
666
|
+
const FirstResponderStatusDefaultMessagesEnum = {
|
|
667
|
+
FIREFIGHTER: "Firefighter",
|
|
668
|
+
POLICE: "Police",
|
|
669
|
+
EMT: "EMT",
|
|
670
|
+
SEARCH_AND_RESCUE: "Search and Rescue",
|
|
671
|
+
};
|
|
672
|
+
const MedicalProfessionalStatusDefaultMessagesEnum = {
|
|
673
|
+
NURSE: "Nurse",
|
|
674
|
+
DOCTOR: "Doctor",
|
|
675
|
+
OTHER_HEALTH_WORKER: "Other Health Worker",
|
|
676
|
+
DENTIST: "Dentist",
|
|
677
|
+
PHARMACIST: "Pharmacist",
|
|
678
|
+
};
|
|
679
|
+
const RecentMoverStatusDefaultMessagesEnum = {
|
|
680
|
+
HOME_BUYER: "Home Buyer",
|
|
681
|
+
OTHER_MOVER: "Other Mover",
|
|
682
|
+
};
|
|
683
|
+
const LowIncomeStatusDefaultMessagesEnum = {
|
|
684
|
+
SNAP_BENEFITS: "Snap Benefits Recipient",
|
|
685
|
+
OTHER_GOVERNMENT_ASSISTANCE: "Other Government Assistance Recipient",
|
|
686
|
+
};
|
|
654
687
|
Object.values(MilitaryStatusDefaultMessagesEnum); // For runtime checks
|
|
655
688
|
Object.values(FirstResponderStatusDefaultMessagesEnum); // For runtime checks
|
|
656
689
|
Object.values(MedicalProfessionalStatusDefaultMessagesEnum); // For runtime checks
|
|
@@ -1913,6 +1946,7 @@ var enUSMessages = {
|
|
|
1913
1946
|
"defaultMessages.PHARMACIST": "Pharmacist",
|
|
1914
1947
|
"defaultMessages.POLICE": "Police",
|
|
1915
1948
|
"defaultMessages.RESERVIST": "Reservist or National Guard",
|
|
1949
|
+
"defaultMessages.SEARCH_AND_RESCUE": "Search and Rescue",
|
|
1916
1950
|
"defaultMessages.SNAP_BENEFITS": "Snap Benefits Recipient",
|
|
1917
1951
|
"defaultMessages.VETERAN": "Military Veteran or Retiree",
|
|
1918
1952
|
"defaultMessages.VETERINARIAN": "Veterinarian",
|
|
@@ -2312,6 +2346,7 @@ var enUSMessages = {
|
|
|
2312
2346
|
"defaultMessages.locales.pl": "Polish",
|
|
2313
2347
|
"defaultMessages.locales.pt": "Portuguese",
|
|
2314
2348
|
"defaultMessages.locales.pt-BR": "Portuguese (Brazil)",
|
|
2349
|
+
"defaultMessages.locales.ro": "Romanian",
|
|
2315
2350
|
"defaultMessages.locales.ru": "Russia",
|
|
2316
2351
|
"defaultMessages.locales.sk": "Slovak",
|
|
2317
2352
|
"defaultMessages.locales.sl": "Slovenian",
|
|
@@ -2319,8 +2354,11 @@ var enUSMessages = {
|
|
|
2319
2354
|
"defaultMessages.locales.sv": "Swedish",
|
|
2320
2355
|
"defaultMessages.locales.th": "Thai",
|
|
2321
2356
|
"defaultMessages.locales.tr": "Turkish",
|
|
2357
|
+
"defaultMessages.locales.ur": "Urdu",
|
|
2358
|
+
"defaultMessages.locales.vi": "Vietnamese",
|
|
2322
2359
|
"defaultMessages.locales.zh": "Chinese (Traditional)",
|
|
2323
2360
|
"defaultMessages.locales.zh-HK": "Chinese (Hong Kong)",
|
|
2361
|
+
"defaultMessages.locales.zu": "Zulu",
|
|
2324
2362
|
"defaultMessages.lowIncomeOrganization": "Government Assistance Program",
|
|
2325
2363
|
"defaultMessages.lowIncomeOrganizationPlaceholder": "Government Assistance Program",
|
|
2326
2364
|
"defaultMessages.lowRewardPool": "<span class='sid-fire-emoji'>🔥</span> Only {offersRemaining} offers left!",
|
|
@@ -2888,154 +2926,154 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2888
2926
|
switch (locale) {
|
|
2889
2927
|
case "ar":
|
|
2890
2928
|
localizedMessages = await import(
|
|
2891
|
-
/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2929
|
+
/* webpackChunkName: "messages_ar" */ './es6/ar-51894b2d.es.js').then((m) => m.default);
|
|
2892
2930
|
break;
|
|
2893
2931
|
case "bg":
|
|
2894
2932
|
localizedMessages = await import(
|
|
2895
|
-
/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2933
|
+
/* webpackChunkName: "messages_bg" */ './es6/bg-882cc7da.es.js').then((m) => m.default);
|
|
2896
2934
|
break;
|
|
2897
2935
|
case "cs":
|
|
2898
2936
|
localizedMessages = await import(
|
|
2899
|
-
/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2937
|
+
/* webpackChunkName: "messages_cs" */ './es6/cs-089af4d4.es.js').then((m) => m.default);
|
|
2900
2938
|
break;
|
|
2901
2939
|
case "da":
|
|
2902
2940
|
localizedMessages = await import(
|
|
2903
|
-
/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2941
|
+
/* webpackChunkName: "messages_da" */ './es6/da-2d95722e.es.js').then((m) => m.default);
|
|
2904
2942
|
break;
|
|
2905
2943
|
case "de":
|
|
2906
2944
|
localizedMessages = await import(
|
|
2907
|
-
/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2945
|
+
/* webpackChunkName: "messages_de" */ './es6/de-93e2a822.es.js').then((m) => m.default);
|
|
2908
2946
|
break;
|
|
2909
2947
|
case "el":
|
|
2910
2948
|
localizedMessages = await import(
|
|
2911
|
-
/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2949
|
+
/* webpackChunkName: "messages_el" */ './es6/el-98f59284.es.js').then((m) => m.default);
|
|
2912
2950
|
break;
|
|
2913
2951
|
case "en-GB":
|
|
2914
2952
|
localizedMessages = await import(
|
|
2915
|
-
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2953
|
+
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-3e0f8ef5.es.js').then((m) => m.default);
|
|
2916
2954
|
break;
|
|
2917
2955
|
case "en-US":
|
|
2918
2956
|
localizedMessages = enUSMessages;
|
|
2919
2957
|
break;
|
|
2920
2958
|
case "es-ES":
|
|
2921
2959
|
localizedMessages = await import(
|
|
2922
|
-
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2960
|
+
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-775dd501.es.js').then((m) => m.default);
|
|
2923
2961
|
break;
|
|
2924
2962
|
case "es":
|
|
2925
2963
|
localizedMessages = await import(
|
|
2926
|
-
/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2964
|
+
/* webpackChunkName: "messages_es" */ './es6/es-519d8eca.es.js').then((m) => m.default);
|
|
2927
2965
|
break;
|
|
2928
2966
|
case "fi":
|
|
2929
2967
|
localizedMessages = await import(
|
|
2930
|
-
/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2968
|
+
/* webpackChunkName: "messages_fi" */ './es6/fi-897da29d.es.js').then((m) => m.default);
|
|
2931
2969
|
break;
|
|
2932
2970
|
case "fr-CA":
|
|
2933
2971
|
localizedMessages = await import(
|
|
2934
|
-
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2972
|
+
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-c1063ccc.es.js').then((m) => m.default);
|
|
2935
2973
|
break;
|
|
2936
2974
|
case "fr":
|
|
2937
2975
|
localizedMessages = await import(
|
|
2938
|
-
/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2976
|
+
/* webpackChunkName: "messages_fr" */ './es6/fr-98d586dc.es.js').then((m) => m.default);
|
|
2939
2977
|
break;
|
|
2940
2978
|
case "ga":
|
|
2941
2979
|
localizedMessages = await import(
|
|
2942
|
-
/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2980
|
+
/* webpackChunkName: "messages_ga" */ './es6/ga-b943c1d7.es.js').then((m) => m.default);
|
|
2943
2981
|
break;
|
|
2944
2982
|
case "hr":
|
|
2945
2983
|
localizedMessages = await import(
|
|
2946
|
-
/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2984
|
+
/* webpackChunkName: "messages_hr" */ './es6/hr-9d5efcb0.es.js').then((m) => m.default);
|
|
2947
2985
|
break;
|
|
2948
2986
|
case "hu":
|
|
2949
2987
|
localizedMessages = await import(
|
|
2950
|
-
/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2988
|
+
/* webpackChunkName: "messages_hu" */ './es6/hu-954c2355.es.js').then((m) => m.default);
|
|
2951
2989
|
break;
|
|
2952
2990
|
case "id":
|
|
2953
2991
|
localizedMessages = await import(
|
|
2954
|
-
/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2992
|
+
/* webpackChunkName: "messages_id" */ './es6/id-cd5385a5.es.js').then((m) => m.default);
|
|
2955
2993
|
break;
|
|
2956
2994
|
case "it":
|
|
2957
2995
|
localizedMessages = await import(
|
|
2958
|
-
/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2996
|
+
/* webpackChunkName: "messages_it" */ './es6/it-ceb32d54.es.js').then((m) => m.default);
|
|
2959
2997
|
break;
|
|
2960
2998
|
case "iw":
|
|
2961
2999
|
localizedMessages = await import(
|
|
2962
|
-
/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
3000
|
+
/* webpackChunkName: "messages_iw" */ './es6/iw-3063fe3c.es.js').then((m) => m.default);
|
|
2963
3001
|
break;
|
|
2964
3002
|
case "ja":
|
|
2965
3003
|
localizedMessages = await import(
|
|
2966
|
-
/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
3004
|
+
/* webpackChunkName: "messages_ja" */ './es6/ja-0d97a6ad.es.js').then((m) => m.default);
|
|
2967
3005
|
break;
|
|
2968
3006
|
case "ko":
|
|
2969
3007
|
localizedMessages = await import(
|
|
2970
|
-
/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
3008
|
+
/* webpackChunkName: "messages_ko" */ './es6/ko-94f3a3e5.es.js').then((m) => m.default);
|
|
2971
3009
|
break;
|
|
2972
3010
|
case "lo":
|
|
2973
3011
|
localizedMessages = await import(
|
|
2974
|
-
/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
3012
|
+
/* webpackChunkName: "messages_lo" */ './es6/lo-76ce290d.es.js').then((m) => m.default);
|
|
2975
3013
|
break;
|
|
2976
3014
|
case "lt":
|
|
2977
3015
|
localizedMessages = await import(
|
|
2978
|
-
/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
3016
|
+
/* webpackChunkName: "messages_lt" */ './es6/lt-55e250ad.es.js').then((m) => m.default);
|
|
2979
3017
|
break;
|
|
2980
3018
|
case "ms":
|
|
2981
3019
|
localizedMessages = await import(
|
|
2982
|
-
/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
3020
|
+
/* webpackChunkName: "messages_ms" */ './es6/ms-5422f739.es.js').then((m) => m.default);
|
|
2983
3021
|
break;
|
|
2984
3022
|
case "nl":
|
|
2985
3023
|
localizedMessages = await import(
|
|
2986
|
-
/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
3024
|
+
/* webpackChunkName: "messages_nl" */ './es6/nl-2f39cad8.es.js').then((m) => m.default);
|
|
2987
3025
|
break;
|
|
2988
3026
|
case "no":
|
|
2989
3027
|
localizedMessages = await import(
|
|
2990
|
-
/* webpackChunkName: "messages_no" */ './es6/no-
|
|
3028
|
+
/* webpackChunkName: "messages_no" */ './es6/no-97c5ef89.es.js').then((m) => m.default);
|
|
2991
3029
|
break;
|
|
2992
3030
|
case "pl":
|
|
2993
3031
|
localizedMessages = await import(
|
|
2994
|
-
/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
3032
|
+
/* webpackChunkName: "messages_pl" */ './es6/pl-fd238f3a.es.js').then((m) => m.default);
|
|
2995
3033
|
break;
|
|
2996
3034
|
case "pt-BR":
|
|
2997
3035
|
localizedMessages = await import(
|
|
2998
|
-
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
3036
|
+
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-45ea70a9.es.js').then((m) => m.default);
|
|
2999
3037
|
break;
|
|
3000
3038
|
case "pt":
|
|
3001
3039
|
localizedMessages = await import(
|
|
3002
|
-
/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
3040
|
+
/* webpackChunkName: "messages_pt" */ './es6/pt-f9d151b2.es.js').then((m) => m.default);
|
|
3003
3041
|
break;
|
|
3004
3042
|
case "ru":
|
|
3005
3043
|
localizedMessages = await import(
|
|
3006
|
-
/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
3044
|
+
/* webpackChunkName: "messages_ru" */ './es6/ru-cb3119d4.es.js').then((m) => m.default);
|
|
3007
3045
|
break;
|
|
3008
3046
|
case "sk":
|
|
3009
3047
|
localizedMessages = await import(
|
|
3010
|
-
/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
3048
|
+
/* webpackChunkName: "messages_sk" */ './es6/sk-160f8210.es.js').then((m) => m.default);
|
|
3011
3049
|
break;
|
|
3012
3050
|
case "sl":
|
|
3013
3051
|
localizedMessages = await import(
|
|
3014
|
-
/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
3052
|
+
/* webpackChunkName: "messages_sl" */ './es6/sl-531afdc0.es.js').then((m) => m.default);
|
|
3015
3053
|
break;
|
|
3016
3054
|
case "sr":
|
|
3017
3055
|
localizedMessages = await import(
|
|
3018
|
-
/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
3056
|
+
/* webpackChunkName: "messages_sr" */ './es6/sr-1e4134ac.es.js').then((m) => m.default);
|
|
3019
3057
|
break;
|
|
3020
3058
|
case "sv":
|
|
3021
3059
|
localizedMessages = await import(
|
|
3022
|
-
/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
3060
|
+
/* webpackChunkName: "messages_sv" */ './es6/sv-9363a83e.es.js').then((m) => m.default);
|
|
3023
3061
|
break;
|
|
3024
3062
|
case "th":
|
|
3025
3063
|
localizedMessages = await import(
|
|
3026
|
-
/* webpackChunkName: "messages_th" */ './es6/th-
|
|
3064
|
+
/* webpackChunkName: "messages_th" */ './es6/th-4ed02573.es.js').then((m) => m.default);
|
|
3027
3065
|
break;
|
|
3028
3066
|
case "tr":
|
|
3029
3067
|
localizedMessages = await import(
|
|
3030
|
-
/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
3068
|
+
/* webpackChunkName: "messages_tr" */ './es6/tr-ee32e948.es.js').then((m) => m.default);
|
|
3031
3069
|
break;
|
|
3032
3070
|
case "zh-HK":
|
|
3033
3071
|
localizedMessages = await import(
|
|
3034
|
-
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
3072
|
+
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-230a17f2.es.js').then((m) => m.default);
|
|
3035
3073
|
break;
|
|
3036
3074
|
case "zh":
|
|
3037
3075
|
localizedMessages = await import(
|
|
3038
|
-
/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
3076
|
+
/* webpackChunkName: "messages_zh" */ './es6/zh-981d5854.es.js').then((m) => m.default);
|
|
3039
3077
|
break;
|
|
3040
3078
|
default:
|
|
3041
3079
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -3228,7 +3266,7 @@ const getRequestOrganizationLocale = (programTheme = null) => {
|
|
|
3228
3266
|
}
|
|
3229
3267
|
return locale;
|
|
3230
3268
|
};
|
|
3231
|
-
const standardizeLocale = (locale) => locale
|
|
3269
|
+
const standardizeLocale = (locale) => locale.replace("-", "_");
|
|
3232
3270
|
|
|
3233
3271
|
const getCompanyName = (programTheme) => {
|
|
3234
3272
|
let companyName = "{Company}"; // Show literal string "{Company}" so implementor is prompted to fix by adding in my.sheerid.com
|
|
@@ -4607,40 +4645,9 @@ const getStatusesValidationError = (value) => {
|
|
|
4607
4645
|
return invalidStatuses;
|
|
4608
4646
|
}
|
|
4609
4647
|
};
|
|
4610
|
-
const isValidMilitaryStatus = (value) =>
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
"VETERAN",
|
|
4614
|
-
"RESERVIST",
|
|
4615
|
-
"MILITARY_RETIREE",
|
|
4616
|
-
"MILITARY_FAMILY",
|
|
4617
|
-
"GOLD_STAR_FAMILY",
|
|
4618
|
-
];
|
|
4619
|
-
if (validMilitaryStatuses.indexOf(value) >= 0) {
|
|
4620
|
-
return true;
|
|
4621
|
-
}
|
|
4622
|
-
return false;
|
|
4623
|
-
};
|
|
4624
|
-
const isValidFirstResponderStatus = (value) => {
|
|
4625
|
-
const validFirstResponderStatuses = ["FIREFIGHTER", "POLICE", "EMT"];
|
|
4626
|
-
if (validFirstResponderStatuses.indexOf(value) >= 0) {
|
|
4627
|
-
return true;
|
|
4628
|
-
}
|
|
4629
|
-
return false;
|
|
4630
|
-
};
|
|
4631
|
-
const isValidMedicalProfessionalStatus = (value) => {
|
|
4632
|
-
const validMedicalProfessionalStatuses = [
|
|
4633
|
-
"NURSE",
|
|
4634
|
-
"DOCTOR",
|
|
4635
|
-
"OTHER_HEALTH_WORKER",
|
|
4636
|
-
"DENTIST",
|
|
4637
|
-
"PHARMACIST",
|
|
4638
|
-
];
|
|
4639
|
-
if (validMedicalProfessionalStatuses.indexOf(value) >= 0) {
|
|
4640
|
-
return true;
|
|
4641
|
-
}
|
|
4642
|
-
return false;
|
|
4643
|
-
};
|
|
4648
|
+
const isValidMilitaryStatus = (value) => MILITARY_STATUS.includes(value);
|
|
4649
|
+
const isValidFirstResponderStatus = (value) => FIRST_RESPONDER_STATUS.includes(value);
|
|
4650
|
+
const isValidMedicalProfessionalStatus = (value) => MEDICAL_PROFESSIONAL_STATUS.includes(value);
|
|
4644
4651
|
const getStatusValidationError = (value) => {
|
|
4645
4652
|
const invalidStatus = "invalidStatus";
|
|
4646
4653
|
if (!value ||
|
|
@@ -17014,7 +17021,26 @@ const formatTwoDigitValues = (value) => {
|
|
|
17014
17021
|
}
|
|
17015
17022
|
};
|
|
17016
17023
|
|
|
17017
|
-
|
|
17024
|
+
/**
|
|
17025
|
+
* Returns true if the given locale formats dates with day-month-year.
|
|
17026
|
+
*
|
|
17027
|
+
* this function works by abusing Intl date formatting and using jan 3, 2222
|
|
17028
|
+
* which will use unique digits for each date part.
|
|
17029
|
+
*/
|
|
17030
|
+
function isDayFirst(locale) {
|
|
17031
|
+
const day = 3;
|
|
17032
|
+
const date = new Date(2222, 0, day);
|
|
17033
|
+
try {
|
|
17034
|
+
const formatted = new Intl.DateTimeFormat(locale).format(date);
|
|
17035
|
+
// strip zeros in case a date part is zero padded
|
|
17036
|
+
return formatted.replace("0", "").startsWith(day.toString());
|
|
17037
|
+
}
|
|
17038
|
+
catch (error) {
|
|
17039
|
+
return false;
|
|
17040
|
+
}
|
|
17041
|
+
}
|
|
17042
|
+
|
|
17043
|
+
const DateInput = ({ onChange, intl, isErrored, isRequired = true, value = "2000-01-01", errorMsg, label, fieldName, fieldId, mode = "date", locale = DEFAULT_LOCALE, }) => {
|
|
17018
17044
|
const cssId = `sid-${fieldId}`;
|
|
17019
17045
|
const dateParts = value.split("-");
|
|
17020
17046
|
const dateYear = Number.parseInt(dateParts[0], 10) || undefined;
|
|
@@ -17098,27 +17124,32 @@ const DateInput = ({ onChange, intl, isErrored, isRequired = true, value = "2000
|
|
|
17098
17124
|
const monthFieldId = `${cssId}__month`;
|
|
17099
17125
|
const fieldLabelId = `${cssId}-label`;
|
|
17100
17126
|
const wrappedErrMsg = React.createElement("div", { className: "sid-field-error" }, errorMsg);
|
|
17127
|
+
const month = (React.createElement(InputSelectComponent, { className: `${cssId}__month sid-date__month`, fieldId: fieldName, inputId: monthFieldId, fieldLabelId: fieldLabelId, isErrored: isErrored, options: months, onChange: (choice) => {
|
|
17128
|
+
if (choice) {
|
|
17129
|
+
updateMonth(choice.value);
|
|
17130
|
+
}
|
|
17131
|
+
else {
|
|
17132
|
+
// clear the birth month
|
|
17133
|
+
updateMonth(null);
|
|
17134
|
+
}
|
|
17135
|
+
}, placeholder: intl.formatHTMLMessage({ id: "dateTime.month", defaultMessage: "Month" }), suppressPlaceholder: false, value: dateMonth ? months[dateMonth - 1] : undefined, isRequired: isRequired, buttonRef: "inputSelectButtonBirthDate" }));
|
|
17136
|
+
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 || "" }));
|
|
17101
17137
|
return (React.createElement("div", { className: `sid-field ${cssId}` },
|
|
17102
17138
|
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
17103
17139
|
React.createElement(FieldLabel, { text: label, htmlForLabel: monthFieldId, id: fieldLabelId, displayClasses: "sid-field__label-with-explanation", isRequired: isRequired },
|
|
17104
17140
|
React.createElement(FormattedHTMLMessage, { id: "verificationPurposesOnly", defaultMessage: "Used for verification purposes only" })),
|
|
17105
17141
|
React.createElement("div", { className: `${cssId}__inputs sid-date__inputs` },
|
|
17106
|
-
React.createElement(
|
|
17107
|
-
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
// clear the birth month
|
|
17112
|
-
updateMonth(null);
|
|
17113
|
-
}
|
|
17114
|
-
}, placeholder: intl.formatHTMLMessage({ id: "dateTime.month", defaultMessage: "Month" }), suppressPlaceholder: false, value: dateMonth ? months[dateMonth - 1] : undefined, isRequired: isRequired, buttonRef: "inputSelectButtonBirthDate" }),
|
|
17115
|
-
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 || "" })),
|
|
17142
|
+
isDayFirst(locale) ? (React.createElement(React.Fragment, null,
|
|
17143
|
+
day,
|
|
17144
|
+
month)) : (React.createElement(React.Fragment, null,
|
|
17145
|
+
month,
|
|
17146
|
+
day)),
|
|
17116
17147
|
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 })),
|
|
17117
17148
|
isErrored ? wrappedErrMsg : null));
|
|
17118
17149
|
};
|
|
17119
17150
|
const DateComponent = injectIntl(DateInput);
|
|
17120
17151
|
|
|
17121
|
-
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" })) }));
|
|
17152
|
+
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" })) }));
|
|
17122
17153
|
|
|
17123
17154
|
function replaceCustomTags(text, tagmap) {
|
|
17124
17155
|
if (typeof text !== "string")
|
|
@@ -17453,6 +17484,7 @@ const StepStudentPersonalInfo = ({ verificationService, }) => {
|
|
|
17453
17484
|
});
|
|
17454
17485
|
verificationService.updateViewModel(nextState);
|
|
17455
17486
|
};
|
|
17487
|
+
const locale = viewModel.localeChoice.value;
|
|
17456
17488
|
return (React.createElement("div", { id: "sid-step-student-personal-info", className: "sid-l-container" },
|
|
17457
17489
|
failedInstantMatch ? (React.createElement("div", { className: "sid-header" },
|
|
17458
17490
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
@@ -17485,7 +17517,7 @@ const StepStudentPersonalInfo = ({ verificationService, }) => {
|
|
|
17485
17517
|
updateStudentViewModel("lastName", newValue);
|
|
17486
17518
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17487
17519
|
} })),
|
|
17488
|
-
React.createElement(BirthDateComponent, { value: viewModel.birthDate, isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, isRequired: true, onChange: (newValue) => {
|
|
17520
|
+
React.createElement(BirthDateComponent, { value: viewModel.birthDate, isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, isRequired: true, onChange: (newValue) => {
|
|
17489
17521
|
updateStudentViewModel("birthDate", newValue);
|
|
17490
17522
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17491
17523
|
} }),
|
|
@@ -17539,6 +17571,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
17539
17571
|
const { fieldValidationErrors } = verificationService;
|
|
17540
17572
|
const verificationResponse = verificationService.verificationResponse;
|
|
17541
17573
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17574
|
+
const locale = viewModel.localeChoice.value;
|
|
17542
17575
|
const updateSeniorViewModel = (key, value) => {
|
|
17543
17576
|
const nextState = fn(viewModel, (draft) => {
|
|
17544
17577
|
draft[key] = value;
|
|
@@ -17572,7 +17605,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
17572
17605
|
updateSeniorViewModel("lastName", newValue);
|
|
17573
17606
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17574
17607
|
} })),
|
|
17575
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
17608
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
17576
17609
|
updateSeniorViewModel("birthDate", newValue);
|
|
17577
17610
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17578
17611
|
}, value: viewModel.birthDate }),
|
|
@@ -17647,6 +17680,7 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
17647
17680
|
const { isSmsNotifierConfigured, smsLoopEnabled } = verificationService.programTheme;
|
|
17648
17681
|
const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);
|
|
17649
17682
|
const defaultRequiredFields = safeCountryValue === "US" ? [{ key: "postalCode" }] : [];
|
|
17683
|
+
const locale = viewModel.localeChoice.value;
|
|
17650
17684
|
const [requiredFields, setRequiredFields] = React.useState(defaultRequiredFields);
|
|
17651
17685
|
if (!fieldValidationErrors.phoneNumber &&
|
|
17652
17686
|
verificationResponse.errorIds &&
|
|
@@ -17729,7 +17763,7 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
17729
17763
|
updateAgeViewModel("lastName", newValue);
|
|
17730
17764
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17731
17765
|
} })),
|
|
17732
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
17766
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
17733
17767
|
updateAgeViewModel("birthDate", newValue);
|
|
17734
17768
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17735
17769
|
}, value: viewModel.birthDate }),
|
|
@@ -17801,6 +17835,7 @@ const StepTeacherPersonalInfo = ({ verificationService, }) => {
|
|
|
17801
17835
|
const { fieldValidationErrors } = verificationService;
|
|
17802
17836
|
const verificationResponse = verificationService.verificationResponse;
|
|
17803
17837
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17838
|
+
const locale = viewModel.localeChoice.value;
|
|
17804
17839
|
const updateTeacherViewModel = (key, value) => {
|
|
17805
17840
|
const nextState = fn(viewModel, (draft) => {
|
|
17806
17841
|
draft[key] = value;
|
|
@@ -17849,7 +17884,7 @@ const StepTeacherPersonalInfo = ({ verificationService, }) => {
|
|
|
17849
17884
|
updateTeacherViewModel("lastName", newValue);
|
|
17850
17885
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
17851
17886
|
} })),
|
|
17852
|
-
verificationService.programTheme.idCheckAddOnEnabled ? (React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
17887
|
+
verificationService.programTheme.idCheckAddOnEnabled ? (React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
17853
17888
|
updateTeacherViewModel("birthDate", newValue);
|
|
17854
17889
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17855
17890
|
}, value: viewModel.birthDate })) : null,
|
|
@@ -17917,6 +17952,7 @@ const StepMemberPersonalInfo = ({ verificationService }) => {
|
|
|
17917
17952
|
const { fieldValidationErrors } = verificationService;
|
|
17918
17953
|
const verificationResponse = verificationService.verificationResponse;
|
|
17919
17954
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
17955
|
+
const locale = viewModel.localeChoice.value;
|
|
17920
17956
|
const updateMemberViewModel = (key, value) => {
|
|
17921
17957
|
const nextState = fn(viewModel, (draft) => {
|
|
17922
17958
|
draft[key] = value;
|
|
@@ -17959,7 +17995,7 @@ const StepMemberPersonalInfo = ({ verificationService }) => {
|
|
|
17959
17995
|
updateMemberViewModel("email", newValue);
|
|
17960
17996
|
updateFieldValidationErrorsByFieldId("email", newValue, verificationService);
|
|
17961
17997
|
}, onKeyDown: (event) => handleEmailOnKeyDown(event) }),
|
|
17962
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, isRequired: false, onChange: (newValue) => {
|
|
17998
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, isRequired: false, onChange: (newValue) => {
|
|
17963
17999
|
updateMemberViewModel("birthDate", newValue);
|
|
17964
18000
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
17965
18001
|
}, value: viewModel.birthDate }),
|
|
@@ -18097,7 +18133,7 @@ const BranchOfService = ({ autoFocus, onChange, value, isErrored, organizations,
|
|
|
18097
18133
|
};
|
|
18098
18134
|
const BranchOfServiceComponent = injectIntl(BranchOfService);
|
|
18099
18135
|
|
|
18100
|
-
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",
|
|
18136
|
+
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" }) }));
|
|
18101
18137
|
|
|
18102
18138
|
/**
|
|
18103
18139
|
* TODO - preamble
|
|
@@ -18110,6 +18146,7 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18110
18146
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18111
18147
|
const { status } = verificationService.viewModel;
|
|
18112
18148
|
const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);
|
|
18149
|
+
const locale = viewModel.localeChoice.value;
|
|
18113
18150
|
const updateActiveMilitaryViewModel = (key, value) => {
|
|
18114
18151
|
verificationService.updateViewModel(updateMilitaryViewModel(key, value, verificationService, availableStatuses));
|
|
18115
18152
|
};
|
|
@@ -18172,11 +18209,11 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18172
18209
|
updateActiveMilitaryViewModel("lastName", newValue);
|
|
18173
18210
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18174
18211
|
} })),
|
|
18175
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18212
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18176
18213
|
updateActiveMilitaryViewModel("birthDate", newValue);
|
|
18177
18214
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18178
18215
|
}, value: viewModel.birthDate }),
|
|
18179
|
-
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, errorId: fieldValidationErrors.activeDutyStartDate, onChange: (newValue) => {
|
|
18216
|
+
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, errorId: fieldValidationErrors.activeDutyStartDate, locale: locale, onChange: (newValue) => {
|
|
18180
18217
|
updateActiveMilitaryViewModel("activeDutyStartDate", newValue);
|
|
18181
18218
|
updateFieldValidationErrorsByFieldId("activeDutyStartDate", newValue, verificationService);
|
|
18182
18219
|
}, value: viewModel.activeDutyStartDate })),
|
|
@@ -18220,6 +18257,7 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18220
18257
|
const verificationResponse = verificationService.verificationResponse;
|
|
18221
18258
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18222
18259
|
const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);
|
|
18260
|
+
const locale = viewModel.localeChoice.value;
|
|
18223
18261
|
const updateInactiveMilitaryViewModel = (key, value) => {
|
|
18224
18262
|
verificationService.updateViewModel(updateMilitaryViewModel(key, value, verificationService, availableStatuses));
|
|
18225
18263
|
};
|
|
@@ -18280,11 +18318,11 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18280
18318
|
updateInactiveMilitaryViewModel("lastName", newValue);
|
|
18281
18319
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18282
18320
|
} })),
|
|
18283
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18321
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18284
18322
|
updateInactiveMilitaryViewModel("birthDate", newValue);
|
|
18285
18323
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18286
18324
|
}, value: viewModel.birthDate }),
|
|
18287
|
-
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, onChange: (newValue) => {
|
|
18325
|
+
verificationService.programTheme.strictMilitaryValidationEnabled && (React.createElement(ActiveDutyStartDateComponent, { isErrored: !!fieldValidationErrors.activeDutyStartDate, locale: locale, onChange: (newValue) => {
|
|
18288
18326
|
updateInactiveMilitaryViewModel("activeDutyStartDate", newValue);
|
|
18289
18327
|
updateFieldValidationErrorsByFieldId("activeDutyStartDate", newValue, verificationService);
|
|
18290
18328
|
}, value: viewModel.activeDutyStartDate })),
|
|
@@ -18341,6 +18379,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18341
18379
|
const { fieldValidationErrors } = verificationService;
|
|
18342
18380
|
const verificationResponse = verificationService.verificationResponse;
|
|
18343
18381
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18382
|
+
const locale = viewModel.localeChoice.value;
|
|
18344
18383
|
const updateFirstResponderViewModel = (key, value) => {
|
|
18345
18384
|
const nextState = fn(viewModel, (draft) => {
|
|
18346
18385
|
draft[key] = value;
|
|
@@ -18407,7 +18446,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18407
18446
|
updateFirstResponderViewModel("lastName", newValue);
|
|
18408
18447
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18409
18448
|
} })),
|
|
18410
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18449
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18411
18450
|
updateFirstResponderViewModel("birthDate", newValue);
|
|
18412
18451
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18413
18452
|
}, value: viewModel.birthDate }),
|
|
@@ -18474,6 +18513,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
18474
18513
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18475
18514
|
const [memberIdMessageKeys, setMemberIdMessageKeys] = React.useState(undefined);
|
|
18476
18515
|
const [showMemberId, setShowMemberId] = React.useState(false);
|
|
18516
|
+
const locale = viewModel.localeChoice.value;
|
|
18477
18517
|
const updateMedicalProfessionalViewModel = (key, value) => {
|
|
18478
18518
|
const nextState = produceDraftViewModel(viewModel, key, value);
|
|
18479
18519
|
verificationService.updateViewModel(nextState);
|
|
@@ -18551,7 +18591,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
18551
18591
|
updateMedicalProfessionalViewModel("lastName", newValue);
|
|
18552
18592
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
18553
18593
|
} })),
|
|
18554
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18594
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18555
18595
|
updateMedicalProfessionalViewModel("birthDate", newValue);
|
|
18556
18596
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18557
18597
|
}, value: viewModel.birthDate }),
|
|
@@ -18819,6 +18859,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18819
18859
|
const { fieldValidationErrors } = verificationService;
|
|
18820
18860
|
const verificationResponse = verificationService.verificationResponse;
|
|
18821
18861
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18862
|
+
const locale = viewModel.localeChoice.value;
|
|
18822
18863
|
const updateIdentityViewModel = (key, value) => {
|
|
18823
18864
|
const nextState = fn(viewModel, (draft) => {
|
|
18824
18865
|
draft[key] = value;
|
|
@@ -18863,7 +18904,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18863
18904
|
updateIdentityViewModel("phoneNumber", newValue);
|
|
18864
18905
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
18865
18906
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
18866
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
18907
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18867
18908
|
updateIdentityViewModel("birthDate", newValue);
|
|
18868
18909
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18869
18910
|
}, value: viewModel.birthDate }),
|
|
@@ -18912,6 +18953,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18912
18953
|
const { fieldValidationErrors } = verificationService;
|
|
18913
18954
|
const verificationResponse = verificationService.verificationResponse;
|
|
18914
18955
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18956
|
+
const locale = viewModel.localeChoice.value;
|
|
18915
18957
|
const updateIdentityViewModel = (key, value) => {
|
|
18916
18958
|
const nextState = fn(viewModel, (draft) => {
|
|
18917
18959
|
draft[key] = value;
|
|
@@ -18956,7 +18998,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18956
18998
|
updateIdentityViewModel("phoneNumber", newValue);
|
|
18957
18999
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
18958
19000
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
18959
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
19001
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
18960
19002
|
updateIdentityViewModel("birthDate", newValue);
|
|
18961
19003
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
18962
19004
|
}, value: viewModel.birthDate }),
|
|
@@ -19028,6 +19070,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19028
19070
|
const { fieldValidationErrors } = verificationService;
|
|
19029
19071
|
const verificationResponse = verificationService.verificationResponse;
|
|
19030
19072
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
19073
|
+
const locale = viewModel.localeChoice.value;
|
|
19031
19074
|
const updateLicensedProfessionalViewModel = (key, value) => {
|
|
19032
19075
|
const nextState = fn(viewModel, (draft) => {
|
|
19033
19076
|
draft[key] = value;
|
|
@@ -19089,7 +19132,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19089
19132
|
updateLicensedProfessionalViewModel("lastName", newValue);
|
|
19090
19133
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
19091
19134
|
} })),
|
|
19092
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
19135
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
19093
19136
|
updateLicensedProfessionalViewModel("birthDate", newValue);
|
|
19094
19137
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
19095
19138
|
}, value: viewModel.birthDate }),
|
|
@@ -19231,6 +19274,7 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19231
19274
|
const { fieldValidationErrors } = verificationService;
|
|
19232
19275
|
const verificationResponse = verificationService.verificationResponse;
|
|
19233
19276
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
19277
|
+
const locale = viewModel.localeChoice.value;
|
|
19234
19278
|
const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;
|
|
19235
19279
|
const isSelectedStatusSnapBenefits = selectedStatus === "SNAP_BENEFITS";
|
|
19236
19280
|
const updateLowIncomeViewModel = (key, value) => {
|
|
@@ -19308,7 +19352,7 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19308
19352
|
updateLowIncomeViewModel("lastName", newValue);
|
|
19309
19353
|
updateFieldValidationErrorsByFieldId("lastName", newValue, verificationService);
|
|
19310
19354
|
} })),
|
|
19311
|
-
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, onChange: (newValue) => {
|
|
19355
|
+
React.createElement(BirthDateComponent, { isErrored: !!fieldValidationErrors.birthDate, errorId: fieldValidationErrors.birthDate, locale: locale, onChange: (newValue) => {
|
|
19312
19356
|
updateLowIncomeViewModel("birthDate", newValue);
|
|
19313
19357
|
updateFieldValidationErrorsByFieldId("birthDate", newValue, verificationService);
|
|
19314
19358
|
}, value: viewModel.birthDate }),
|
|
@@ -22482,5 +22526,5 @@ const collectDeviceProfile = async (verificationId, programId) => {
|
|
|
22482
22526
|
includeIPQSDeviceFingerprintScript(programTheme, verificationId);
|
|
22483
22527
|
};
|
|
22484
22528
|
|
|
22485
|
-
export { ACCEPTED_DOC_MIME_TYPES, AcceptableUploadsComponent, AddressComponent, BirthDateComponent, BranchOfServiceComponent, ChangeLocaleComponent, CityComponent, CollegeNameComponent, CompanyComponent, CopyToClipboard, CountDownComponent, CountryComponent, CountryComponentWrapper, DEFAULT_LOCALE, DEFAULT_MINIMUM_ORG_SEARCH_VALUE_LENGTH, DEFAULT_PRIVACY_POLICY_URL, DeleteJson, DischargeDateComponent, DriverLicenseNumberComponent, EmailComponent, ExtraMessage, FaqLinkComponent, FetchOrganizationsComponent, FieldIdEnum, FieldIds, FieldLabel, FirstNameComponent, FirstResponderOrganizationComponent, FirstResponderStatusComponent, FirstResponderStatusDefaultMessagesEnum, FormFieldCheckbox, FormFieldCustom, FormFieldLayout, FormFieldText, FormFooterComponent, GetEmptyTheme, GetJson, GetResponse, HTTP_REQUEST_TIMEOUT, HookNameEnum, HookNames, HowDoesVerifyingWorkComponent, InputSelectButtonComponent, InputSelectComponent, InputSelectListComponent, InputTextComponent, LastNameComponent, LinkExternal, LoadingSpinnerComponent, Locales, LogoComponent, LowIncomeOrganizationComponent, LowIncomeStatusDefaultMessagesEnum, MAX_DOC_UPLOAD_DOCS_ALLOWED, MarketConsentWrapperComponent as MarketConsentWrapper, MedicalProfessionalOrganizationComponent, MedicalProfessionalStatusDefaultMessagesEnum, MedicalStatusComponent, MemberIdComponent, MembershipOrganizationComponent, MilitaryStatusComponent, MilitaryStatusDefaultMessagesEnum, MockSteps, MockStepsEnum, OptInComponent, OptInInputComponent, OrganizationListComponent, OrganizationResultComponent, PhoneNumberComponent, PostFiles, PostJson, PostalCodeComponent, PostalCodeInputComponent, PoweredByComponent, PrivacyPolicyLinkComponent, QUERY_STRING_ERRORID_OVERRIDE, QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_REDIRECT_URL_OVERRIDE, QUERY_STRING_REWARD_CODE_OVERRIDE, QUERY_STRING_SEGMENT_OVERRIDE, QUERY_STRING_STEP_OVERRIDE, QUERY_STRING_SUBSEGMENT_OVERRIDE, RequestOrganizationContext, RequestOrganizationErrorComponent, RequestOrganizationForm, RequestOrganizationFormFooterComponent, RequestOrganizationSearchComponent, RequestOrganizationSearchResultComponent, RequestOrganizationSuccessComponent, ReviewPendingComponent, RewardsRemainingComponent, SHEERID, SMSCodeComponent, SSN_STRING_LENGTH, SSOPendingComponent, SearchFieldComponent, SegmentEnum, Segments, SelectButtonComponent, SelectComponent, SelectListComponent, SocialSecurityNumber, SortByLabel, SsnChoice, StateComponent, StateEnum, StateSelectComponent, StatusComponent, StepActiveMilitaryPersonalInfoComponent, StepDriverLicensePersonalInfoComponent, StepGeneralIdentityPersonalInfoComponent, StepHybridIdentityPersonalInfoComponent, StepLowIncomePersonalInfoComponent, StepOverrideComponent, SubSegmentEnum, TeacherSchoolComponent, TryAgainButtonComponent, TryAgainSteps, TypeaheadComponent, UPLOAD_FILE_PREFIX, UploadInfoComponent, VerificationApiClient, VerificationForm, VerificationSteps, VerificationStepsEnum, addFiles, addHook, allMockedResponses, arrayUnique, assertValidConversionRequest, assertValidDatabaseId, assertValidFieldId, assertValidFunction, assertValidHook, assertValidHookName, assertValidHtmlElement, assertValidLocale, assertValidMockStepName, assertValidProgramId, assertValidSegmentName, assertValidTrackingId, assertValidTryAgainStep, assertValidVerificationStepName, blankOrganization, carrierConsentValueValidator, closeTabRef, collectDeviceProfile, conversion, convertByTrackingId, convertByVerificationId, customValidatorExists$1 as customValidatorExists, deepClone, deepMerge, displaySSN, employmentPInfoReqEmpty, ensureMaxMetadataKeyValueLengths, ensureTrailingSlash, fetchExistingVerificationRequest, fetchProgramOrganizations, fetchRequestOrganizations, formatTwoDigitValues, getAddSchoolRequestUrl, getAllEmptyViewModels, getAvailableCountryChoices, getAvailableLocaleChoices, getAvailableLocales, getAvailableMilitaryStatuses, getAvailableStateChoices, getCompanyName, getConfiguredCountries, getConfiguredStates, getCustomValidator, getCustomValidatorFields, getDefaultCountryChoice, getDomainFromUrl, getEmptyViewModel, getEstAndMaxReviewTimes, getEstimatedReviewTime, getExtendedFieldValidationErrorsEmpty, getFaqLink, getFieldDisplayOrderFromRefs, getFieldValidationErrors, getFieldValidationErrorsEmpty, getFingerprint, getFirstErroredFieldId, getHook, getLocaleSafely, getLogoUrl, getMarketConsent, getMaxReviewTime, getMessages, getMetadata, getNewEmailCodeResendUrl, getNewSmsCodeResendUrl, getNewVerificationRequestUrl, getOptions, getOrgSearchCountryTags, getOverriddenMock, getOverridenValidator, getPhoneNumberValidationError, getPrivacyPolicyCompanyName, getPrivacyPolicyUrl, getProgramThemeUrl, getQueryOrOption, getQueryParamsFromUrl, getRefByFieldId, getRefs, getRouteOverride, getSafe, getSheerIdScriptBasePath, getStatusLabel, getTabRef, getTrackingIdFromQueryString, getVerificationIdFromQueryString, getVerificationStatusUrl, handleCountryOnKeyDown, handleEmailOnKeyDown, handleStateChange, hasFailedInstantMatch, howDoesVerifyingWorkMessages, isFormErrored, isFormFilled, isTestEmailDomains, isValidLocale, isValidUsPostalCode, listenToSheerIdFrame, loadInModal, loadInlineIframe, logger, orgToOption, orgsInStatus, overrideComponent, overrideValidator, phoneNumberValidator, populateViewModelFromQueryParams, postVerificationSizeUpdates, postalCodeMatchers, postalCodeValidator, produceDraftViewModel, produceDraftViewModelWithRequiredFields, recordEvent, recordVerificationResponse, recordViewModelChange, refreshStore, registerAdditionalLocales, removeAllFiles, removeCustomValidator, removeFile, requestOrganizationConstants, resetCustomValidators, resetHooks, resetMetadata, resetOptions, resetOverriddenComponents, resetOverriddenValidators, resetRefs, resetStore, resetTabRef, resetViewModel, resolveTrackingId, setCustomValidator, setDimension, setFocus, setGaDimensionIsTest, setMetadata, setOptions, setRef, setTabRef, setViewModel, shouldCollectAddressFields, shouldCollectPostalCode, socialSecurityEmpty, speakToOuterFrame, submitAddSchoolRequest, submitForm, unDisplaySSN, updateFieldValidationErrors, updateFieldValidationErrorsByFieldId, updateMilitaryViewModel, updateViewModelOrganization, usePollingInterval, validateFieldById, validateMetadata };
|
|
22529
|
+
export { ACCEPTED_DOC_MIME_TYPES, AcceptableUploadsComponent, AddressComponent, BirthDateComponent, BranchOfServiceComponent, ChangeLocaleComponent, CityComponent, CollegeNameComponent, CompanyComponent, CopyToClipboard, CountDownComponent, CountryComponent, CountryComponentWrapper, DEFAULT_LOCALE, DEFAULT_MINIMUM_ORG_SEARCH_VALUE_LENGTH, DEFAULT_PRIVACY_POLICY_URL, DeleteJson, DischargeDateComponent, DriverLicenseNumberComponent, EmailComponent, ExtraMessage, FIRST_RESPONDER_STATUS, FaqLinkComponent, FetchOrganizationsComponent, FieldIdEnum, FieldIds, FieldLabel, FirstNameComponent, FirstResponderOrganizationComponent, FirstResponderStatusComponent, FirstResponderStatusDefaultMessagesEnum, FormFieldCheckbox, FormFieldCustom, FormFieldLayout, FormFieldText, FormFooterComponent, GetEmptyTheme, GetJson, GetResponse, HTTP_REQUEST_TIMEOUT, HookNameEnum, HookNames, HowDoesVerifyingWorkComponent, InputSelectButtonComponent, InputSelectComponent, InputSelectListComponent, InputTextComponent, LICENSED_PROFESSIONAL_STATUS, LOW_INCOME_STATUS, LastNameComponent, LinkExternal, LoadingSpinnerComponent, Locales, LogoComponent, LowIncomeOrganizationComponent, LowIncomeStatusDefaultMessagesEnum, MAX_DOC_UPLOAD_DOCS_ALLOWED, MEDICAL_PROFESSIONAL_STATUS, MILITARY_STATUS, MarketConsentWrapperComponent as MarketConsentWrapper, MedicalProfessionalOrganizationComponent, MedicalProfessionalStatusDefaultMessagesEnum, MedicalStatusComponent, MemberIdComponent, MembershipOrganizationComponent, MilitaryStatusComponent, MilitaryStatusDefaultMessagesEnum, MockSteps, MockStepsEnum, OptInComponent, OptInInputComponent, OrganizationListComponent, OrganizationResultComponent, PhoneNumberComponent, PostFiles, PostJson, PostalCodeComponent, PostalCodeInputComponent, PoweredByComponent, PrivacyPolicyLinkComponent, QUERY_STRING_ERRORID_OVERRIDE, QUERY_STRING_INSTALL_PAGE_URL, QUERY_STRING_REDIRECT_URL_OVERRIDE, QUERY_STRING_REWARD_CODE_OVERRIDE, QUERY_STRING_SEGMENT_OVERRIDE, QUERY_STRING_STEP_OVERRIDE, QUERY_STRING_SUBSEGMENT_OVERRIDE, RECENT_MOVER_STATUS, RequestOrganizationContext, RequestOrganizationErrorComponent, RequestOrganizationForm, RequestOrganizationFormFooterComponent, RequestOrganizationSearchComponent, RequestOrganizationSearchResultComponent, RequestOrganizationSuccessComponent, ReviewPendingComponent, RewardsRemainingComponent, SHEERID, SMSCodeComponent, SSN_STRING_LENGTH, SSOPendingComponent, SearchFieldComponent, SegmentEnum, Segments, SelectButtonComponent, SelectComponent, SelectListComponent, SocialSecurityNumber, SortByLabel, SsnChoice, StateComponent, StateEnum, StateSelectComponent, StatusComponent, StepActiveMilitaryPersonalInfoComponent, StepDriverLicensePersonalInfoComponent, StepGeneralIdentityPersonalInfoComponent, StepHybridIdentityPersonalInfoComponent, StepLowIncomePersonalInfoComponent, StepOverrideComponent, SubSegmentEnum, TeacherSchoolComponent, TryAgainButtonComponent, TryAgainSteps, TypeaheadComponent, UPLOAD_FILE_PREFIX, UploadInfoComponent, VerificationApiClient, VerificationForm, VerificationSteps, VerificationStepsEnum, addFiles, addHook, allMockedResponses, arrayUnique, assertValidConversionRequest, assertValidDatabaseId, assertValidFieldId, assertValidFunction, assertValidHook, assertValidHookName, assertValidHtmlElement, assertValidLocale, assertValidMockStepName, assertValidProgramId, assertValidSegmentName, assertValidTrackingId, assertValidTryAgainStep, assertValidVerificationStepName, blankOrganization, carrierConsentValueValidator, closeTabRef, collectDeviceProfile, conversion, convertByTrackingId, convertByVerificationId, customValidatorExists$1 as customValidatorExists, deepClone, deepMerge, displaySSN, employmentPInfoReqEmpty, ensureMaxMetadataKeyValueLengths, ensureTrailingSlash, fetchExistingVerificationRequest, fetchProgramOrganizations, fetchRequestOrganizations, formatTwoDigitValues, getAddSchoolRequestUrl, getAllEmptyViewModels, getAvailableCountryChoices, getAvailableLocaleChoices, getAvailableLocales, getAvailableMilitaryStatuses, getAvailableStateChoices, getCompanyName, getConfiguredCountries, getConfiguredStates, getCustomValidator, getCustomValidatorFields, getDefaultCountryChoice, getDomainFromUrl, getEmptyViewModel, getEstAndMaxReviewTimes, getEstimatedReviewTime, getExtendedFieldValidationErrorsEmpty, getFaqLink, getFieldDisplayOrderFromRefs, getFieldValidationErrors, getFieldValidationErrorsEmpty, getFingerprint, getFirstErroredFieldId, getHook, getLocaleSafely, getLogoUrl, getMarketConsent, getMaxReviewTime, getMessages, getMetadata, getNewEmailCodeResendUrl, getNewSmsCodeResendUrl, getNewVerificationRequestUrl, getOptions, getOrgSearchCountryTags, getOverriddenMock, getOverridenValidator, getPhoneNumberValidationError, getPrivacyPolicyCompanyName, getPrivacyPolicyUrl, getProgramThemeUrl, getQueryOrOption, getQueryParamsFromUrl, getRefByFieldId, getRefs, getRouteOverride, getSafe, getSheerIdScriptBasePath, getStatusLabel, getTabRef, getTrackingIdFromQueryString, getVerificationIdFromQueryString, getVerificationStatusUrl, handleCountryOnKeyDown, handleEmailOnKeyDown, handleStateChange, hasFailedInstantMatch, howDoesVerifyingWorkMessages, isFormErrored, isFormFilled, isTestEmailDomains, isValidLocale, isValidUsPostalCode, listenToSheerIdFrame, loadInModal, loadInlineIframe, logger, orgToOption, orgsInStatus, overrideComponent, overrideValidator, phoneNumberValidator, populateViewModelFromQueryParams, postVerificationSizeUpdates, postalCodeMatchers, postalCodeValidator, produceDraftViewModel, produceDraftViewModelWithRequiredFields, recordEvent, recordVerificationResponse, recordViewModelChange, refreshStore, registerAdditionalLocales, removeAllFiles, removeCustomValidator, removeFile, requestOrganizationConstants, resetCustomValidators, resetHooks, resetMetadata, resetOptions, resetOverriddenComponents, resetOverriddenValidators, resetRefs, resetStore, resetTabRef, resetViewModel, resolveTrackingId, setCustomValidator, setDimension, setFocus, setGaDimensionIsTest, setMetadata, setOptions, setRef, setTabRef, setViewModel, shouldCollectAddressFields, shouldCollectPostalCode, socialSecurityEmpty, speakToOuterFrame, submitAddSchoolRequest, submitForm, unDisplaySSN, updateFieldValidationErrors, updateFieldValidationErrorsByFieldId, updateMilitaryViewModel, updateViewModelOrganization, usePollingInterval, validateFieldById, validateMetadata };
|
|
22486
22530
|
//# sourceMappingURL=sheerides6.js.map
|