@sheerid/jslib 1.109.0 → 1.112.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/README.md +57 -0
- package/es5/Tmetrix.bundle.js +5 -5
- package/es5/messages_ar.bundle.js +5 -5
- package/es5/messages_bg.bundle.js +5 -5
- package/es5/messages_cs.bundle.js +5 -5
- package/es5/messages_da.bundle.js +5 -5
- package/es5/messages_de.bundle.js +5 -5
- package/es5/messages_el.bundle.js +5 -5
- package/es5/messages_en-GB.bundle.js +5 -5
- package/es5/messages_es-ES.bundle.js +5 -5
- package/es5/messages_es.bundle.js +5 -5
- package/es5/messages_fi.bundle.js +5 -5
- package/es5/messages_fr-CA.bundle.js +5 -5
- package/es5/messages_fr.bundle.js +5 -5
- package/es5/messages_ga.bundle.js +5 -5
- package/es5/messages_hr.bundle.js +5 -5
- package/es5/messages_hu.bundle.js +5 -5
- package/es5/messages_id.bundle.js +5 -5
- package/es5/messages_it.bundle.js +5 -5
- package/es5/messages_iw.bundle.js +5 -5
- package/es5/messages_ja.bundle.js +5 -5
- package/es5/messages_ko.bundle.js +5 -5
- package/es5/messages_lo.bundle.js +5 -5
- package/es5/messages_lt.bundle.js +5 -5
- package/es5/messages_ms.bundle.js +5 -5
- package/es5/messages_nl.bundle.js +5 -5
- package/es5/messages_no.bundle.js +5 -5
- package/es5/messages_pl.bundle.js +5 -5
- package/es5/messages_pt-BR.bundle.js +5 -5
- package/es5/messages_pt.bundle.js +5 -5
- package/es5/messages_ru.bundle.js +5 -5
- package/es5/messages_sk.bundle.js +5 -5
- package/es5/messages_sl.bundle.js +5 -5
- package/es5/messages_sr.bundle.js +5 -5
- package/es5/messages_sv.bundle.js +5 -5
- package/es5/messages_th.bundle.js +5 -5
- package/es5/messages_tr.bundle.js +5 -5
- package/es5/messages_zh-HK.bundle.js +5 -5
- package/es5/messages_zh.bundle.js +5 -5
- package/es6/{ar-4956061a.es.js → ar-3ae39586.es.js} +5 -1
- package/es6/{cs-1de96b4c.es.js.map → ar-3ae39586.es.js.map} +1 -1
- package/es6/{bg-d6354db2.es.js → bg-6620ee13.es.js} +5 -1
- package/es6/{ar-4956061a.es.js.map → bg-6620ee13.es.js.map} +1 -1
- package/es6/{cs-1de96b4c.es.js → cs-9acf0460.es.js} +5 -1
- package/es6/{da-8f1dfa43.es.js.map → cs-9acf0460.es.js.map} +1 -1
- package/es6/{da-8f1dfa43.es.js → da-0b0465fd.es.js} +5 -1
- package/es6/{bg-d6354db2.es.js.map → da-0b0465fd.es.js.map} +1 -1
- package/es6/{de-1aa4e429.es.js → de-e370c535.es.js} +5 -1
- package/es6/de-e370c535.es.js.map +1 -0
- package/es6/{el-2d5e12dd.es.js → el-98e713da.es.js} +5 -1
- package/es6/el-98e713da.es.js.map +1 -0
- package/es6/{en-GB-20967dc5.es.js → en-GB-4c9b2809.es.js} +5 -1
- package/es6/{en-GB-20967dc5.es.js.map → en-GB-4c9b2809.es.js.map} +1 -1
- package/es6/{es-8e86100a.es.js → es-29447ba1.es.js} +5 -1
- package/es6/es-29447ba1.es.js.map +1 -0
- package/es6/{es-ES-4bd1e82e.es.js → es-ES-ad689109.es.js} +5 -1
- package/es6/{es-ES-4bd1e82e.es.js.map → es-ES-ad689109.es.js.map} +1 -1
- package/es6/{fi-1d11aab4.es.js → fi-9a9cfb4b.es.js} +5 -1
- package/es6/fi-9a9cfb4b.es.js.map +1 -0
- package/es6/{fr-CA-5adbcd22.es.js → fr-CA-6318fdae.es.js} +5 -1
- package/es6/{fr-CA-5adbcd22.es.js.map → fr-CA-6318fdae.es.js.map} +1 -1
- package/es6/{fr-d80e65df.es.js → fr-bbb1ff16.es.js} +5 -1
- package/es6/fr-bbb1ff16.es.js.map +1 -0
- package/es6/{ga-06830697.es.js → ga-1ef386d0.es.js} +5 -1
- package/es6/ga-1ef386d0.es.js.map +1 -0
- package/es6/{hr-4684ff5d.es.js → hr-3a56687e.es.js} +5 -1
- package/es6/hr-3a56687e.es.js.map +1 -0
- package/es6/{hu-7a4f3a78.es.js → hu-a70ecd9a.es.js} +5 -1
- package/es6/hu-a70ecd9a.es.js.map +1 -0
- package/es6/{id-b6fe2fcd.es.js → id-66daacc1.es.js} +5 -1
- package/es6/id-66daacc1.es.js.map +1 -0
- package/es6/{it-18fd5526.es.js → it-2032b91e.es.js} +5 -1
- package/es6/it-2032b91e.es.js.map +1 -0
- package/es6/{iw-b1f73ffa.es.js → iw-7c41f1f9.es.js} +5 -1
- package/es6/iw-7c41f1f9.es.js.map +1 -0
- package/es6/{ja-05eb217d.es.js → ja-fb4128c9.es.js} +5 -1
- package/es6/ja-fb4128c9.es.js.map +1 -0
- package/es6/{ko-6026fe32.es.js → ko-54d59d72.es.js} +5 -1
- package/es6/ko-54d59d72.es.js.map +1 -0
- package/es6/{lo-30da01da.es.js → lo-0b09b49c.es.js} +5 -1
- package/es6/lo-0b09b49c.es.js.map +1 -0
- package/es6/{lt-a08f94d6.es.js → lt-85367514.es.js} +5 -1
- package/es6/lt-85367514.es.js.map +1 -0
- package/es6/{ms-4b69e218.es.js → ms-0decdf24.es.js} +5 -1
- package/es6/ms-0decdf24.es.js.map +1 -0
- package/es6/{nl-9acf82f8.es.js → nl-06109373.es.js} +5 -1
- package/es6/nl-06109373.es.js.map +1 -0
- package/es6/{no-443dff87.es.js → no-a26a72a5.es.js} +5 -1
- package/es6/no-a26a72a5.es.js.map +1 -0
- package/es6/{pl-0b4902db.es.js → pl-dc0c2f70.es.js} +5 -1
- package/es6/pl-dc0c2f70.es.js.map +1 -0
- package/es6/{pt-BR-afd2234b.es.js → pt-BR-80d5ee2f.es.js} +5 -1
- package/es6/{pt-BR-afd2234b.es.js.map → pt-BR-80d5ee2f.es.js.map} +1 -1
- package/es6/{pt-eefd6a76.es.js → pt-c72dbd5e.es.js} +5 -1
- package/es6/pt-c72dbd5e.es.js.map +1 -0
- package/es6/{ru-55b959b7.es.js → ru-18843366.es.js} +5 -1
- package/es6/ru-18843366.es.js.map +1 -0
- package/es6/{sk-1751ddd2.es.js → sk-1cd8142d.es.js} +5 -1
- package/es6/sk-1cd8142d.es.js.map +1 -0
- package/es6/{sl-3d874685.es.js → sl-626bf398.es.js} +5 -1
- package/es6/sl-626bf398.es.js.map +1 -0
- package/es6/{sr-9449946e.es.js → sr-81bca4d0.es.js} +5 -1
- package/es6/sr-81bca4d0.es.js.map +1 -0
- package/es6/{sv-b3117f27.es.js → sv-98cd630e.es.js} +5 -1
- package/es6/sv-98cd630e.es.js.map +1 -0
- package/es6/{th-1fb295d2.es.js → th-36130f7a.es.js} +5 -1
- package/es6/th-36130f7a.es.js.map +1 -0
- package/es6/{tr-b7aed90b.es.js → tr-b8f5e402.es.js} +5 -1
- package/es6/tr-b8f5e402.es.js.map +1 -0
- package/es6/{zh-6c863e80.es.js → zh-866fc64f.es.js} +5 -1
- package/es6/zh-866fc64f.es.js.map +1 -0
- package/es6/{zh-HK-8bc1767d.es.js → zh-HK-f2672873.es.js} +5 -1
- package/es6/zh-HK-f2672873.es.js.map +1 -0
- package/localized-messages/ar.json +4 -0
- package/localized-messages/bg.json +4 -0
- package/localized-messages/cs.json +4 -0
- package/localized-messages/da.json +4 -0
- package/localized-messages/de.json +4 -0
- package/localized-messages/el.json +4 -0
- package/localized-messages/en-GB.json +4 -0
- package/localized-messages/en-US.json +5 -1
- package/localized-messages/es-ES.json +4 -0
- package/localized-messages/es.json +4 -0
- package/localized-messages/fi.json +4 -0
- package/localized-messages/fr-CA.json +4 -0
- package/localized-messages/fr.json +4 -0
- package/localized-messages/ga.json +4 -0
- package/localized-messages/hr.json +4 -0
- package/localized-messages/hu.json +4 -0
- package/localized-messages/id.json +4 -0
- package/localized-messages/it.json +4 -0
- package/localized-messages/iw.json +4 -0
- package/localized-messages/ja.json +4 -0
- package/localized-messages/ko.json +4 -0
- package/localized-messages/lo.json +4 -0
- package/localized-messages/lt.json +4 -0
- package/localized-messages/ms.json +4 -0
- package/localized-messages/nl.json +4 -0
- package/localized-messages/no.json +4 -0
- package/localized-messages/pl.json +4 -0
- package/localized-messages/pt-BR.json +4 -0
- package/localized-messages/pt.json +4 -0
- package/localized-messages/ru.json +4 -0
- package/localized-messages/sk.json +4 -0
- package/localized-messages/sl.json +4 -0
- package/localized-messages/sr.json +4 -0
- package/localized-messages/sv.json +4 -0
- package/localized-messages/th.json +4 -0
- package/localized-messages/tr.json +4 -0
- package/localized-messages/zh-HK.json +4 -0
- package/localized-messages/zh.json +4 -0
- 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 +14 -14
- 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 +12 -12
- package/sheerid.js.map +1 -1
- package/sheerides6.js +252 -184
- package/sheerides6.js.map +1 -1
- package/src/components/ExtraMessage.d.ts +17 -0
- package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +14 -2
- package/src/components/FormFields/Country/CountryComponentWrapper.d.ts +6 -4
- package/src/components/FormFields/FormFieldCheckbox/FormFieldCheckbox.d.ts +10 -0
- package/src/components/FormFields/FormFieldCheckbox/FormFieldCheckbox.test.d.ts +1 -0
- package/src/components/FormFields/State/StateSelectComponent.d.ts +1 -1
- package/src/components/FormInputs/OptInInput/OptInInputComponent.d.ts +3 -2
- package/src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.d.ts +1 -0
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +2 -9
- package/src/components/StepStudentPersonalInfo/StepStudentPersonalInfoComponent.d.ts +2 -9
- package/src/components/StepTeacherPersonalInfo/StepTeacherPersonalInfoComponent.d.ts +2 -10
- package/src/constants.d.ts +1 -0
- package/src/es6.d.ts +2 -0
- package/src/lib/installScript/iframe.d.ts +1 -0
- package/src/lib/types/runtimeTypes.d.ts +4 -0
- package/src/lib/types/types.d.ts +4 -0
- package/src/lib/validators/validators.d.ts +1 -0
- package/types-reference.zip +0 -0
- package/es6/de-1aa4e429.es.js.map +0 -1
- package/es6/el-2d5e12dd.es.js.map +0 -1
- package/es6/es-8e86100a.es.js.map +0 -1
- package/es6/fi-1d11aab4.es.js.map +0 -1
- package/es6/fr-d80e65df.es.js.map +0 -1
- package/es6/ga-06830697.es.js.map +0 -1
- package/es6/hr-4684ff5d.es.js.map +0 -1
- package/es6/hu-7a4f3a78.es.js.map +0 -1
- package/es6/id-b6fe2fcd.es.js.map +0 -1
- package/es6/it-18fd5526.es.js.map +0 -1
- package/es6/iw-b1f73ffa.es.js.map +0 -1
- package/es6/ja-05eb217d.es.js.map +0 -1
- package/es6/ko-6026fe32.es.js.map +0 -1
- package/es6/lo-30da01da.es.js.map +0 -1
- package/es6/lt-a08f94d6.es.js.map +0 -1
- package/es6/ms-4b69e218.es.js.map +0 -1
- package/es6/nl-9acf82f8.es.js.map +0 -1
- package/es6/no-443dff87.es.js.map +0 -1
- package/es6/pl-0b4902db.es.js.map +0 -1
- package/es6/pt-eefd6a76.es.js.map +0 -1
- package/es6/ru-55b959b7.es.js.map +0 -1
- package/es6/sk-1751ddd2.es.js.map +0 -1
- package/es6/sl-3d874685.es.js.map +0 -1
- package/es6/sr-9449946e.es.js.map +0 -1
- package/es6/sv-b3117f27.es.js.map +0 -1
- package/es6/th-1fb295d2.es.js.map +0 -1
- package/es6/tr-b7aed90b.es.js.map +0 -1
- package/es6/zh-6c863e80.es.js.map +0 -1
- package/es6/zh-HK-8bc1767d.es.js.map +0 -1
package/sheerides6.js
CHANGED
|
@@ -696,6 +696,7 @@ var StateEnum;
|
|
|
696
696
|
StateEnum["AL"] = "AL";
|
|
697
697
|
StateEnum["AR"] = "AR";
|
|
698
698
|
StateEnum["AZ"] = "AZ";
|
|
699
|
+
StateEnum["AS"] = "AS";
|
|
699
700
|
StateEnum["CA"] = "CA";
|
|
700
701
|
StateEnum["CO"] = "CO";
|
|
701
702
|
StateEnum["CT"] = "CT";
|
|
@@ -703,6 +704,7 @@ var StateEnum;
|
|
|
703
704
|
StateEnum["DE"] = "DE";
|
|
704
705
|
StateEnum["FL"] = "FL";
|
|
705
706
|
StateEnum["GA"] = "GA";
|
|
707
|
+
StateEnum["GU"] = "GU";
|
|
706
708
|
StateEnum["HI"] = "HI";
|
|
707
709
|
StateEnum["IA"] = "IA";
|
|
708
710
|
StateEnum["ID"] = "ID";
|
|
@@ -731,6 +733,7 @@ var StateEnum;
|
|
|
731
733
|
StateEnum["OK"] = "OK";
|
|
732
734
|
StateEnum["OR"] = "OR";
|
|
733
735
|
StateEnum["PA"] = "PA";
|
|
736
|
+
StateEnum["PR"] = "PR";
|
|
734
737
|
StateEnum["RI"] = "RI";
|
|
735
738
|
StateEnum["SC"] = "SC";
|
|
736
739
|
StateEnum["SD"] = "SD";
|
|
@@ -738,6 +741,7 @@ var StateEnum;
|
|
|
738
741
|
StateEnum["TX"] = "TX";
|
|
739
742
|
StateEnum["UT"] = "UT";
|
|
740
743
|
StateEnum["VA"] = "VA";
|
|
744
|
+
StateEnum["VI"] = "VI";
|
|
741
745
|
StateEnum["VT"] = "VT";
|
|
742
746
|
StateEnum["WA"] = "WA";
|
|
743
747
|
StateEnum["WI"] = "WI";
|
|
@@ -1132,6 +1136,7 @@ const iframeClassNames = {
|
|
|
1132
1136
|
CLOSE_TEXT: "sid-modal__close-text",
|
|
1133
1137
|
CLOSE_ICON: "sid-modal__close-icon",
|
|
1134
1138
|
};
|
|
1139
|
+
const iframeTitle = "SheerID Verification Form";
|
|
1135
1140
|
const iframeConstants = {
|
|
1136
1141
|
CLASS_NAMES: iframeClassNames,
|
|
1137
1142
|
DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,
|
|
@@ -2265,6 +2270,7 @@ var enUSMessages = {
|
|
|
2265
2270
|
"defaultMessages.states.AK": "Alaska",
|
|
2266
2271
|
"defaultMessages.states.AL": "Alabama",
|
|
2267
2272
|
"defaultMessages.states.AR": "Arkansas",
|
|
2273
|
+
"defaultMessages.states.AS": "American Samoa",
|
|
2268
2274
|
"defaultMessages.states.AZ": "Arizona",
|
|
2269
2275
|
"defaultMessages.states.CA": "California",
|
|
2270
2276
|
"defaultMessages.states.CO": "Colorado",
|
|
@@ -2273,6 +2279,7 @@ var enUSMessages = {
|
|
|
2273
2279
|
"defaultMessages.states.DE": "Delaware",
|
|
2274
2280
|
"defaultMessages.states.FL": "Florida",
|
|
2275
2281
|
"defaultMessages.states.GA": "Georgia",
|
|
2282
|
+
"defaultMessages.states.GU": "Guam",
|
|
2276
2283
|
"defaultMessages.states.HI": "Hawaii",
|
|
2277
2284
|
"defaultMessages.states.IA": "Iowa",
|
|
2278
2285
|
"defaultMessages.states.ID": "Idaho",
|
|
@@ -2281,7 +2288,7 @@ var enUSMessages = {
|
|
|
2281
2288
|
"defaultMessages.states.KS": "Kansas",
|
|
2282
2289
|
"defaultMessages.states.KY": "Kentucky",
|
|
2283
2290
|
"defaultMessages.states.LA": "Louisiana",
|
|
2284
|
-
"defaultMessages.states.MA": "
|
|
2291
|
+
"defaultMessages.states.MA": "Massachusetts",
|
|
2285
2292
|
"defaultMessages.states.MD": "Maryland",
|
|
2286
2293
|
"defaultMessages.states.ME": "Maine",
|
|
2287
2294
|
"defaultMessages.states.MI": "Michigan",
|
|
@@ -2301,6 +2308,7 @@ var enUSMessages = {
|
|
|
2301
2308
|
"defaultMessages.states.OK": "Oklahoma",
|
|
2302
2309
|
"defaultMessages.states.OR": "Oregon",
|
|
2303
2310
|
"defaultMessages.states.PA": "Pennsylvania",
|
|
2311
|
+
"defaultMessages.states.PR": "Puerto Rico",
|
|
2304
2312
|
"defaultMessages.states.RI": "Rhode Island",
|
|
2305
2313
|
"defaultMessages.states.SC": "South Carolina",
|
|
2306
2314
|
"defaultMessages.states.SD": "South Dakota",
|
|
@@ -2308,6 +2316,7 @@ var enUSMessages = {
|
|
|
2308
2316
|
"defaultMessages.states.TX": "Texas",
|
|
2309
2317
|
"defaultMessages.states.UT": "Utah",
|
|
2310
2318
|
"defaultMessages.states.VA": "Virginia",
|
|
2319
|
+
"defaultMessages.states.VI": "Virgin Islands",
|
|
2311
2320
|
"defaultMessages.states.VT": "Vermont",
|
|
2312
2321
|
"defaultMessages.states.WA": "Washington",
|
|
2313
2322
|
"defaultMessages.states.WI": "Wisconsin",
|
|
@@ -2768,154 +2777,154 @@ const getMessagesModuleByLocale = async (locale) => {
|
|
|
2768
2777
|
switch (locale) {
|
|
2769
2778
|
case "ar":
|
|
2770
2779
|
localizedMessages = await import(
|
|
2771
|
-
/* webpackChunkName: "messages_ar" */ './es6/ar-
|
|
2780
|
+
/* webpackChunkName: "messages_ar" */ './es6/ar-3ae39586.es.js').then((m) => m.default);
|
|
2772
2781
|
break;
|
|
2773
2782
|
case "bg":
|
|
2774
2783
|
localizedMessages = await import(
|
|
2775
|
-
/* webpackChunkName: "messages_bg" */ './es6/bg-
|
|
2784
|
+
/* webpackChunkName: "messages_bg" */ './es6/bg-6620ee13.es.js').then((m) => m.default);
|
|
2776
2785
|
break;
|
|
2777
2786
|
case "cs":
|
|
2778
2787
|
localizedMessages = await import(
|
|
2779
|
-
/* webpackChunkName: "messages_cs" */ './es6/cs-
|
|
2788
|
+
/* webpackChunkName: "messages_cs" */ './es6/cs-9acf0460.es.js').then((m) => m.default);
|
|
2780
2789
|
break;
|
|
2781
2790
|
case "da":
|
|
2782
2791
|
localizedMessages = await import(
|
|
2783
|
-
/* webpackChunkName: "messages_da" */ './es6/da-
|
|
2792
|
+
/* webpackChunkName: "messages_da" */ './es6/da-0b0465fd.es.js').then((m) => m.default);
|
|
2784
2793
|
break;
|
|
2785
2794
|
case "de":
|
|
2786
2795
|
localizedMessages = await import(
|
|
2787
|
-
/* webpackChunkName: "messages_de" */ './es6/de-
|
|
2796
|
+
/* webpackChunkName: "messages_de" */ './es6/de-e370c535.es.js').then((m) => m.default);
|
|
2788
2797
|
break;
|
|
2789
2798
|
case "el":
|
|
2790
2799
|
localizedMessages = await import(
|
|
2791
|
-
/* webpackChunkName: "messages_el" */ './es6/el-
|
|
2800
|
+
/* webpackChunkName: "messages_el" */ './es6/el-98e713da.es.js').then((m) => m.default);
|
|
2792
2801
|
break;
|
|
2793
2802
|
case "en-GB":
|
|
2794
2803
|
localizedMessages = await import(
|
|
2795
|
-
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-
|
|
2804
|
+
/* webpackChunkName: "messages_en-GB" */ './es6/en-GB-4c9b2809.es.js').then((m) => m.default);
|
|
2796
2805
|
break;
|
|
2797
2806
|
case "en-US":
|
|
2798
2807
|
localizedMessages = enUSMessages;
|
|
2799
2808
|
break;
|
|
2800
2809
|
case "es-ES":
|
|
2801
2810
|
localizedMessages = await import(
|
|
2802
|
-
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-
|
|
2811
|
+
/* webpackChunkName: "messages_es-ES" */ './es6/es-ES-ad689109.es.js').then((m) => m.default);
|
|
2803
2812
|
break;
|
|
2804
2813
|
case "es":
|
|
2805
2814
|
localizedMessages = await import(
|
|
2806
|
-
/* webpackChunkName: "messages_es" */ './es6/es-
|
|
2815
|
+
/* webpackChunkName: "messages_es" */ './es6/es-29447ba1.es.js').then((m) => m.default);
|
|
2807
2816
|
break;
|
|
2808
2817
|
case "fi":
|
|
2809
2818
|
localizedMessages = await import(
|
|
2810
|
-
/* webpackChunkName: "messages_fi" */ './es6/fi-
|
|
2819
|
+
/* webpackChunkName: "messages_fi" */ './es6/fi-9a9cfb4b.es.js').then((m) => m.default);
|
|
2811
2820
|
break;
|
|
2812
2821
|
case "fr-CA":
|
|
2813
2822
|
localizedMessages = await import(
|
|
2814
|
-
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-
|
|
2823
|
+
/* webpackChunkName: "messages_fr-CA" */ './es6/fr-CA-6318fdae.es.js').then((m) => m.default);
|
|
2815
2824
|
break;
|
|
2816
2825
|
case "fr":
|
|
2817
2826
|
localizedMessages = await import(
|
|
2818
|
-
/* webpackChunkName: "messages_fr" */ './es6/fr-
|
|
2827
|
+
/* webpackChunkName: "messages_fr" */ './es6/fr-bbb1ff16.es.js').then((m) => m.default);
|
|
2819
2828
|
break;
|
|
2820
2829
|
case "ga":
|
|
2821
2830
|
localizedMessages = await import(
|
|
2822
|
-
/* webpackChunkName: "messages_ga" */ './es6/ga-
|
|
2831
|
+
/* webpackChunkName: "messages_ga" */ './es6/ga-1ef386d0.es.js').then((m) => m.default);
|
|
2823
2832
|
break;
|
|
2824
2833
|
case "hr":
|
|
2825
2834
|
localizedMessages = await import(
|
|
2826
|
-
/* webpackChunkName: "messages_hr" */ './es6/hr-
|
|
2835
|
+
/* webpackChunkName: "messages_hr" */ './es6/hr-3a56687e.es.js').then((m) => m.default);
|
|
2827
2836
|
break;
|
|
2828
2837
|
case "hu":
|
|
2829
2838
|
localizedMessages = await import(
|
|
2830
|
-
/* webpackChunkName: "messages_hu" */ './es6/hu-
|
|
2839
|
+
/* webpackChunkName: "messages_hu" */ './es6/hu-a70ecd9a.es.js').then((m) => m.default);
|
|
2831
2840
|
break;
|
|
2832
2841
|
case "id":
|
|
2833
2842
|
localizedMessages = await import(
|
|
2834
|
-
/* webpackChunkName: "messages_id" */ './es6/id-
|
|
2843
|
+
/* webpackChunkName: "messages_id" */ './es6/id-66daacc1.es.js').then((m) => m.default);
|
|
2835
2844
|
break;
|
|
2836
2845
|
case "it":
|
|
2837
2846
|
localizedMessages = await import(
|
|
2838
|
-
/* webpackChunkName: "messages_it" */ './es6/it-
|
|
2847
|
+
/* webpackChunkName: "messages_it" */ './es6/it-2032b91e.es.js').then((m) => m.default);
|
|
2839
2848
|
break;
|
|
2840
2849
|
case "iw":
|
|
2841
2850
|
localizedMessages = await import(
|
|
2842
|
-
/* webpackChunkName: "messages_iw" */ './es6/iw-
|
|
2851
|
+
/* webpackChunkName: "messages_iw" */ './es6/iw-7c41f1f9.es.js').then((m) => m.default);
|
|
2843
2852
|
break;
|
|
2844
2853
|
case "ja":
|
|
2845
2854
|
localizedMessages = await import(
|
|
2846
|
-
/* webpackChunkName: "messages_ja" */ './es6/ja-
|
|
2855
|
+
/* webpackChunkName: "messages_ja" */ './es6/ja-fb4128c9.es.js').then((m) => m.default);
|
|
2847
2856
|
break;
|
|
2848
2857
|
case "ko":
|
|
2849
2858
|
localizedMessages = await import(
|
|
2850
|
-
/* webpackChunkName: "messages_ko" */ './es6/ko-
|
|
2859
|
+
/* webpackChunkName: "messages_ko" */ './es6/ko-54d59d72.es.js').then((m) => m.default);
|
|
2851
2860
|
break;
|
|
2852
2861
|
case "lo":
|
|
2853
2862
|
localizedMessages = await import(
|
|
2854
|
-
/* webpackChunkName: "messages_lo" */ './es6/lo-
|
|
2863
|
+
/* webpackChunkName: "messages_lo" */ './es6/lo-0b09b49c.es.js').then((m) => m.default);
|
|
2855
2864
|
break;
|
|
2856
2865
|
case "lt":
|
|
2857
2866
|
localizedMessages = await import(
|
|
2858
|
-
/* webpackChunkName: "messages_lt" */ './es6/lt-
|
|
2867
|
+
/* webpackChunkName: "messages_lt" */ './es6/lt-85367514.es.js').then((m) => m.default);
|
|
2859
2868
|
break;
|
|
2860
2869
|
case "ms":
|
|
2861
2870
|
localizedMessages = await import(
|
|
2862
|
-
/* webpackChunkName: "messages_ms" */ './es6/ms-
|
|
2871
|
+
/* webpackChunkName: "messages_ms" */ './es6/ms-0decdf24.es.js').then((m) => m.default);
|
|
2863
2872
|
break;
|
|
2864
2873
|
case "nl":
|
|
2865
2874
|
localizedMessages = await import(
|
|
2866
|
-
/* webpackChunkName: "messages_nl" */ './es6/nl-
|
|
2875
|
+
/* webpackChunkName: "messages_nl" */ './es6/nl-06109373.es.js').then((m) => m.default);
|
|
2867
2876
|
break;
|
|
2868
2877
|
case "no":
|
|
2869
2878
|
localizedMessages = await import(
|
|
2870
|
-
/* webpackChunkName: "messages_no" */ './es6/no-
|
|
2879
|
+
/* webpackChunkName: "messages_no" */ './es6/no-a26a72a5.es.js').then((m) => m.default);
|
|
2871
2880
|
break;
|
|
2872
2881
|
case "pl":
|
|
2873
2882
|
localizedMessages = await import(
|
|
2874
|
-
/* webpackChunkName: "messages_pl" */ './es6/pl-
|
|
2883
|
+
/* webpackChunkName: "messages_pl" */ './es6/pl-dc0c2f70.es.js').then((m) => m.default);
|
|
2875
2884
|
break;
|
|
2876
2885
|
case "pt-BR":
|
|
2877
2886
|
localizedMessages = await import(
|
|
2878
|
-
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-
|
|
2887
|
+
/* webpackChunkName: "messages_pt-BR" */ './es6/pt-BR-80d5ee2f.es.js').then((m) => m.default);
|
|
2879
2888
|
break;
|
|
2880
2889
|
case "pt":
|
|
2881
2890
|
localizedMessages = await import(
|
|
2882
|
-
/* webpackChunkName: "messages_pt" */ './es6/pt-
|
|
2891
|
+
/* webpackChunkName: "messages_pt" */ './es6/pt-c72dbd5e.es.js').then((m) => m.default);
|
|
2883
2892
|
break;
|
|
2884
2893
|
case "ru":
|
|
2885
2894
|
localizedMessages = await import(
|
|
2886
|
-
/* webpackChunkName: "messages_ru" */ './es6/ru-
|
|
2895
|
+
/* webpackChunkName: "messages_ru" */ './es6/ru-18843366.es.js').then((m) => m.default);
|
|
2887
2896
|
break;
|
|
2888
2897
|
case "sk":
|
|
2889
2898
|
localizedMessages = await import(
|
|
2890
|
-
/* webpackChunkName: "messages_sk" */ './es6/sk-
|
|
2899
|
+
/* webpackChunkName: "messages_sk" */ './es6/sk-1cd8142d.es.js').then((m) => m.default);
|
|
2891
2900
|
break;
|
|
2892
2901
|
case "sl":
|
|
2893
2902
|
localizedMessages = await import(
|
|
2894
|
-
/* webpackChunkName: "messages_sl" */ './es6/sl-
|
|
2903
|
+
/* webpackChunkName: "messages_sl" */ './es6/sl-626bf398.es.js').then((m) => m.default);
|
|
2895
2904
|
break;
|
|
2896
2905
|
case "sr":
|
|
2897
2906
|
localizedMessages = await import(
|
|
2898
|
-
/* webpackChunkName: "messages_sr" */ './es6/sr-
|
|
2907
|
+
/* webpackChunkName: "messages_sr" */ './es6/sr-81bca4d0.es.js').then((m) => m.default);
|
|
2899
2908
|
break;
|
|
2900
2909
|
case "sv":
|
|
2901
2910
|
localizedMessages = await import(
|
|
2902
|
-
/* webpackChunkName: "messages_sv" */ './es6/sv-
|
|
2911
|
+
/* webpackChunkName: "messages_sv" */ './es6/sv-98cd630e.es.js').then((m) => m.default);
|
|
2903
2912
|
break;
|
|
2904
2913
|
case "th":
|
|
2905
2914
|
localizedMessages = await import(
|
|
2906
|
-
/* webpackChunkName: "messages_th" */ './es6/th-
|
|
2915
|
+
/* webpackChunkName: "messages_th" */ './es6/th-36130f7a.es.js').then((m) => m.default);
|
|
2907
2916
|
break;
|
|
2908
2917
|
case "tr":
|
|
2909
2918
|
localizedMessages = await import(
|
|
2910
|
-
/* webpackChunkName: "messages_tr" */ './es6/tr-
|
|
2919
|
+
/* webpackChunkName: "messages_tr" */ './es6/tr-b8f5e402.es.js').then((m) => m.default);
|
|
2911
2920
|
break;
|
|
2912
2921
|
case "zh-HK":
|
|
2913
2922
|
localizedMessages = await import(
|
|
2914
|
-
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-
|
|
2923
|
+
/* webpackChunkName: "messages_zh-HK" */ './es6/zh-HK-f2672873.es.js').then((m) => m.default);
|
|
2915
2924
|
break;
|
|
2916
2925
|
case "zh":
|
|
2917
2926
|
localizedMessages = await import(
|
|
2918
|
-
/* webpackChunkName: "messages_zh" */ './es6/zh-
|
|
2927
|
+
/* webpackChunkName: "messages_zh" */ './es6/zh-866fc64f.es.js').then((m) => m.default);
|
|
2919
2928
|
break;
|
|
2920
2929
|
default:
|
|
2921
2930
|
logger.warn(`getMessagesModuleByLocale: Unable to load messages for ${locale}, falling back to en-US`);
|
|
@@ -4184,6 +4193,7 @@ const DECIMAL_RADIX = 10;
|
|
|
4184
4193
|
const ADOLESCENT_AGE = 16;
|
|
4185
4194
|
const MIN_BIRTHYEAR = 1900;
|
|
4186
4195
|
const MAX_BIRTHYEAR = 3000;
|
|
4196
|
+
const MAX_METADATA_KEYS = 50;
|
|
4187
4197
|
const VALID_PHONE_NUMBER_REGEXPS = [
|
|
4188
4198
|
/^\+?0*\d{10,}(x[0-9]{0,5})?$/,
|
|
4189
4199
|
/(^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$)/,
|
|
@@ -4191,8 +4201,8 @@ const VALID_PHONE_NUMBER_REGEXPS = [
|
|
|
4191
4201
|
const validateMetadata = (metadata) => {
|
|
4192
4202
|
const metadataKeyCount = Object.keys(metadata).length;
|
|
4193
4203
|
// TOOD: Other metadata restrictions?
|
|
4194
|
-
if (metadataKeyCount >
|
|
4195
|
-
logger.error(
|
|
4204
|
+
if (metadataKeyCount > MAX_METADATA_KEYS) {
|
|
4205
|
+
logger.error(`Invalid number of metadata keys (max ${MAX_METADATA_KEYS})`, "metadata keys");
|
|
4196
4206
|
return false;
|
|
4197
4207
|
}
|
|
4198
4208
|
return true;
|
|
@@ -5021,11 +5031,12 @@ const InputText = ({ id, isErrored, className = undefined, hidePlaceholder = tru
|
|
|
5021
5031
|
// DO NOT INJECT INTL. Localize your strings pass them down as props
|
|
5022
5032
|
const InputTextComponent = InputText;
|
|
5023
5033
|
|
|
5034
|
+
const isEmptyText = (allegedNode) => !React.isValidElement(allegedNode) && allegedNode === "";
|
|
5024
5035
|
const FieldLabel = ({ text, htmlForLabel, id, displayClasses, isRequired, children, }) => (React.createElement("label", { htmlFor: htmlForLabel },
|
|
5025
5036
|
React.createElement("div", { id: id, className: `sid-field__label sid-l-space-btm-sm ${displayClasses}` },
|
|
5026
5037
|
React.createElement("span", { className: "sid-field__label-name", "aria-hidden": "true" },
|
|
5027
5038
|
text,
|
|
5028
|
-
isRequired && (React.createElement("span", { "aria-hidden": "true", className: "sid-field__label--required" }, "*"))),
|
|
5039
|
+
isRequired && !isEmptyText(text) && (React.createElement("span", { "aria-hidden": "true", className: "sid-field__label--required" }, "*"))),
|
|
5029
5040
|
children && React.createElement("div", { className: "sid-field__label-explanation" }, children))));
|
|
5030
5041
|
FieldLabel.defaultProps = {
|
|
5031
5042
|
id: "",
|
|
@@ -9702,8 +9713,10 @@ suppressPlaceholder = true, value, autoFocus, ariaLabel, isRequired, buttonRef,
|
|
|
9702
9713
|
onKeyDown(event);
|
|
9703
9714
|
}
|
|
9704
9715
|
};
|
|
9716
|
+
const inputRef = React.createRef();
|
|
9705
9717
|
return (React.createElement(Downshift, { id: inputId, onChange: onChange, itemToString: itemToString, selectedItem: value && value.value && value.label ? value : "", defaultHighlightedIndex: 0 }, ({ clearSelection, getInputProps, getItemProps, getMenuProps, getToggleButtonProps, highlightedIndex, inputValue, isOpen, openMenu, selectedItem, selectHighlightedItem, }) => (React.createElement("div", { className: `sid-input-select-list ${className}` },
|
|
9706
9718
|
React.createElement("input", Object.assign({}, getInputProps({
|
|
9719
|
+
ref: inputRef,
|
|
9707
9720
|
onClick: () => openMenu(),
|
|
9708
9721
|
onBlur: (event) => handleOnBlur(event, selectHighlightedItem, selectedItem),
|
|
9709
9722
|
onKeyDown: (event) => handleOnKeyDown(event),
|
|
@@ -9712,9 +9725,9 @@ suppressPlaceholder = true, value, autoFocus, ariaLabel, isRequired, buttonRef,
|
|
|
9712
9725
|
// eslint-disable-next-line
|
|
9713
9726
|
autoFocus: autoFocus, id: inputId, className: `sid-l-full-width sid-text-input ${suppressPlaceholder ? "sid-hidden-placeholder" : ""} ${isErrored ? "sid-text-input--error" : ""}`, disabled: disabled, placeholder: placeholder, ref: (input) => setRef(fieldId, input), "aria-required": isRequired, "aria-labelledby": fieldLabelId, role: role })),
|
|
9714
9727
|
React.createElement(InputSelectButtonComponent, { disabled: disabled, getToggleButtonProps: getToggleButtonProps, isOpen: isOpen, clearSelection: selectedItem ? clearSelection : undefined, buttonRef: buttonRef }),
|
|
9715
|
-
isOpen ? (React.createElement("div", null, filterOptions(options, inputValue).length > 0 ? (React.createElement(InputSelectListComponent, { highlightedIndex: highlightedIndex, itemToString: itemToString, options: filterOptions(options, inputValue), getItemProps: getItemProps, getMenuProps: getMenuProps })) : (React.createElement("div", Object.assign({ className: "sid-input-select-list__menu" }, getMenuProps({ "aria-label": ariaLabel })),
|
|
9728
|
+
React.createElement("div", Object.assign({}, getMenuProps()), isOpen ? (React.createElement("div", null, filterOptions(options, inputValue).length > 0 ? (React.createElement(InputSelectListComponent, { highlightedIndex: highlightedIndex, itemToString: itemToString, options: filterOptions(options, inputValue), getItemProps: getItemProps, getMenuProps: getMenuProps })) : (React.createElement("div", Object.assign({ className: "sid-input-select-list__menu" }, getMenuProps({ "aria-label": ariaLabel })),
|
|
9716
9729
|
React.createElement("div", { className: "sid-input-select-list__message" },
|
|
9717
|
-
React.createElement(FormattedHTMLMessage, { id: "noOptions", defaultMessage: "No Options" })))))) : null))));
|
|
9730
|
+
React.createElement(FormattedHTMLMessage, { id: "noOptions", defaultMessage: "No Options" })))))) : null)))));
|
|
9718
9731
|
};
|
|
9719
9732
|
InputSelect.defaultProps = {
|
|
9720
9733
|
className: undefined,
|
|
@@ -9806,7 +9819,25 @@ const ChangeLocale = ({ value, options, onChange, intl, }) => {
|
|
|
9806
9819
|
} }),
|
|
9807
9820
|
React.createElement("div", { className: "sid-l-space-btm-sm" })));
|
|
9808
9821
|
};
|
|
9809
|
-
const ChangeLocaleComponent = injectIntl(ChangeLocale);
|
|
9822
|
+
const ChangeLocaleComponent = injectIntl(ChangeLocale);
|
|
9823
|
+
const ChangeLocaleV2 = ({ verificationService, intl }) => {
|
|
9824
|
+
const localeChoices = getAvailableLocaleChoices(verificationService.programTheme, intl);
|
|
9825
|
+
const defaultLocaleChoice = {
|
|
9826
|
+
value: "en-US",
|
|
9827
|
+
label: "English",
|
|
9828
|
+
};
|
|
9829
|
+
const updateLocale = (localeChoice) => {
|
|
9830
|
+
const nextState = fn(verificationService.viewModel, (draft) => {
|
|
9831
|
+
draft.localeChoice = localeChoice;
|
|
9832
|
+
});
|
|
9833
|
+
verificationService.updateLocale(nextState, verificationService.programTheme, verificationService.verificationResponse.segment);
|
|
9834
|
+
};
|
|
9835
|
+
if (localeChoices.length <= 1) {
|
|
9836
|
+
return null;
|
|
9837
|
+
}
|
|
9838
|
+
return (React.createElement(ChangeLocaleComponent, { options: localeChoices, value: verificationService.viewModel.localeChoice || defaultLocaleChoice, isErrored: false, onChange: (localeChoice) => updateLocale(localeChoice) }));
|
|
9839
|
+
};
|
|
9840
|
+
const ChangeLocaleV2Component = injectIntl(ChangeLocaleV2);
|
|
9810
9841
|
|
|
9811
9842
|
const LoadingSpinnerComponent = () => (React.createElement("div", { className: "sid-spinner" },
|
|
9812
9843
|
React.createElement("div", { className: "sid-spinner__frame" }),
|
|
@@ -10983,9 +11014,13 @@ const getRedirectUrlOverride = () => {
|
|
|
10983
11014
|
const getErrorStepMockResponseOverrides = (mockResponse) => {
|
|
10984
11015
|
const mockResponseClone = deepClone(mockResponse);
|
|
10985
11016
|
const errorMock = getErrorIdOverride();
|
|
11017
|
+
const redirectUrlMock = getRedirectUrlOverride();
|
|
10986
11018
|
if (errorMock) {
|
|
10987
11019
|
mockResponseClone.errorIds = [errorMock];
|
|
10988
11020
|
}
|
|
11021
|
+
if (redirectUrlMock) {
|
|
11022
|
+
mockResponseClone.redirectUrl = redirectUrlMock;
|
|
11023
|
+
}
|
|
10989
11024
|
return mockResponseClone;
|
|
10990
11025
|
};
|
|
10991
11026
|
const getSuccessStepMockResponseOverrides = (mockResponse) => {
|
|
@@ -14619,6 +14654,7 @@ const verificationServiceReducer = (state = getInitialState(), action) => {
|
|
|
14619
14654
|
case "RESET_STATE":
|
|
14620
14655
|
return {
|
|
14621
14656
|
...deepClone(getInitialState()),
|
|
14657
|
+
programId: state.programId,
|
|
14622
14658
|
};
|
|
14623
14659
|
case "FORCE_UPDATE":
|
|
14624
14660
|
return deepClone(state);
|
|
@@ -14653,7 +14689,7 @@ const store$1 = getStore();
|
|
|
14653
14689
|
/**
|
|
14654
14690
|
* @description Set the viewModel for the form or reset it by passing an empty object
|
|
14655
14691
|
*/
|
|
14656
|
-
const setViewModel = (newViewModel, options = { partial:
|
|
14692
|
+
const setViewModel = (newViewModel, options = { partial: true }) => {
|
|
14657
14693
|
const state = store$1.getState();
|
|
14658
14694
|
const doSet = () => {
|
|
14659
14695
|
const updatedViewModel = deepClone(newViewModel);
|
|
@@ -17812,9 +17848,12 @@ var rtlDetect_1 = {
|
|
|
17812
17848
|
rtlDetect_1.isRtlLang;
|
|
17813
17849
|
rtlDetect_1.getLangDir;
|
|
17814
17850
|
|
|
17815
|
-
const OptInInput = ({ id = "new", isErrored, onChange, value }) =>
|
|
17816
|
-
|
|
17817
|
-
React.createElement("
|
|
17851
|
+
const OptInInput = ({ id = "new", isErrored, onChange, value, ariaLabelledby, }) => {
|
|
17852
|
+
const a = ariaLabelledby ? { "aria-labelledby": ariaLabelledby } : {};
|
|
17853
|
+
return (React.createElement("div", { className: "sid-checkbox" },
|
|
17854
|
+
React.createElement("input", { className: "sid-checkbox__input", id: `sid-opt-in__${id}`, name: "sid-opt-in", type: "checkbox", checked: value, ref: (ref) => setRef("optIn", ref), onChange: (e) => onChange(e.target.checked), "aria-hidden": true }),
|
|
17855
|
+
React.createElement("span", Object.assign({}, a, { className: `sid-checkbox__input-like ${isErrored ? "sid-checkbox__input-like--error" : ""}`, onClick: onChange, onKeyUp: onChange, role: "checkbox", "aria-checked": value, tabIndex: 0, "data-testid": "stylable-checkbox-input" }))));
|
|
17856
|
+
};
|
|
17818
17857
|
const OptInInputComponent = OptInInput;
|
|
17819
17858
|
|
|
17820
17859
|
const OptInComponent = ({ isErrored, isRequired, onChange, value, verificationService, }) => {
|
|
@@ -17976,7 +18015,7 @@ var debounce_1 = debounce;
|
|
|
17976
18015
|
var debounce_2 = debounce_1.debounce;
|
|
17977
18016
|
|
|
17978
18017
|
const ROW_HEIGHT = 42;
|
|
17979
|
-
const MAX_ITEMS =
|
|
18018
|
+
const MAX_ITEMS = 26;
|
|
17980
18019
|
const OrganizationList = ({ getItemProps, highlightedIndex, organizations, itemToString, children, maxItemsToDisplay = MAX_ITEMS, }) => {
|
|
17981
18020
|
const fullHeight = organizations.length * ROW_HEIGHT;
|
|
17982
18021
|
const item = (organization, index) => (React.createElement("div", Object.assign({ className: `sid-organization-list__item ${highlightedIndex === index ? "sid-organization-list__item--highlighted" : ""}`, key: index }, getItemProps({
|
|
@@ -17984,10 +18023,11 @@ const OrganizationList = ({ getItemProps, highlightedIndex, organizations, itemT
|
|
|
17984
18023
|
item: organization,
|
|
17985
18024
|
})), itemToString(organization)));
|
|
17986
18025
|
return (React.createElement("div", { className: "sid-organization-list__menu", tabIndex: -1 },
|
|
17987
|
-
React.createElement("div", { style: { height: Math.min(fullHeight, 280) } },
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
|
|
18026
|
+
React.createElement("div", { style: { height: Math.min(fullHeight, 280) } },
|
|
18027
|
+
organizations
|
|
18028
|
+
.filter((_, index) => index <= maxItemsToDisplay - 1)
|
|
18029
|
+
.map((organization, index) => item(organization, index)),
|
|
18030
|
+
children)));
|
|
17991
18031
|
};
|
|
17992
18032
|
const OrganizationListComponent = OrganizationList;
|
|
17993
18033
|
|
|
@@ -18068,7 +18108,7 @@ class FetchOrganizations extends React.Component {
|
|
|
18068
18108
|
return (React.createElement(OrganizationListComponent, { getItemProps: getItemProps, getMenuProps: getMenuProps, highlightedIndex: highlightedIndex, itemToString: itemToString, organizations: organizations }, searchValue &&
|
|
18069
18109
|
!openOrgSearchEnabled &&
|
|
18070
18110
|
urlAddSchoolForm &&
|
|
18071
|
-
(!organizations || organizations.length
|
|
18111
|
+
(!organizations || organizations.length < 26) && (React.createElement(AddSchoolRequestRow, { urlAddSchoolForm: urlAddSchoolForm, programId: programId, locale: locale }))));
|
|
18072
18112
|
}
|
|
18073
18113
|
if (searchValue &&
|
|
18074
18114
|
!openOrgSearchEnabled &&
|
|
@@ -18367,7 +18407,7 @@ const FormFooterComponent = ({ verificationService, children }) => {
|
|
|
18367
18407
|
}
|
|
18368
18408
|
const privacyPolicyText = privacyPolicyRef.current.innerHTML.replace(cleanupCommonTags, "");
|
|
18369
18409
|
const updatedViewModel = { metadata: { submissionOptIn: privacyPolicyText } };
|
|
18370
|
-
setViewModel(updatedViewModel
|
|
18410
|
+
setViewModel(updatedViewModel);
|
|
18371
18411
|
}, [privacyPolicyRef, locale]);
|
|
18372
18412
|
return (React.createElement("div", { className: "sid-footer sid-h-small-text sid-l-space-top-md" },
|
|
18373
18413
|
!children && (React.createElement("div", { className: "sid-footer__shield" },
|
|
@@ -18478,14 +18518,20 @@ const HowDoesVerifyingWorkComponent = ({ verificationService, initialVisibility
|
|
|
18478
18518
|
React.createElement(FaqLinkComponent, { verificationService: verificationService })))) : null));
|
|
18479
18519
|
};
|
|
18480
18520
|
|
|
18481
|
-
const BaseCountryComponentWrapper = ({ verificationService,
|
|
18521
|
+
const BaseCountryComponentWrapper = ({ verificationService, viewModelDraftDecorator = undefined, intl, viewModel = undefined, nextFocusField = undefined, }) => {
|
|
18522
|
+
if (viewModel) {
|
|
18523
|
+
logger.warn("viewModel prop is deprecated, use verificationService.viewModel instead");
|
|
18524
|
+
}
|
|
18525
|
+
if (nextFocusField) {
|
|
18526
|
+
logger.warn("nextFocusField prop is deprecated");
|
|
18527
|
+
}
|
|
18482
18528
|
const countryChoices = getAvailableCountryChoices(verificationService.programTheme, intl);
|
|
18483
18529
|
const defaultCountryChoice = getDefaultCountryChoice(countryChoices);
|
|
18484
18530
|
const { fieldValidationErrors } = verificationService;
|
|
18485
18531
|
const hasMultipleCountries = countryChoices.length > 1;
|
|
18486
18532
|
const [firstRender, setFirstRender] = React.useState(true);
|
|
18487
18533
|
const updateCountryChoice = (countryChoice) => {
|
|
18488
|
-
const nextState = fn(viewModel, (draft) => {
|
|
18534
|
+
const nextState = fn(verificationService.viewModel, (draft) => {
|
|
18489
18535
|
draft.countryChoice = countryChoice || undefined;
|
|
18490
18536
|
// Adds backwards compatibility with Age and Employment programs
|
|
18491
18537
|
draft.country = countryChoice ? countryChoice.value : undefined;
|
|
@@ -18498,8 +18544,8 @@ const BaseCountryComponentWrapper = ({ verificationService, viewModel, intl, vie
|
|
|
18498
18544
|
React.useEffect(() => {
|
|
18499
18545
|
if (firstRender) {
|
|
18500
18546
|
setFirstRender(false);
|
|
18501
|
-
const countryChoice = viewModel.countryChoice
|
|
18502
|
-
? viewModel.countryChoice
|
|
18547
|
+
const countryChoice = verificationService.viewModel.countryChoice
|
|
18548
|
+
? verificationService.viewModel.countryChoice
|
|
18503
18549
|
: defaultCountryChoice;
|
|
18504
18550
|
updateCountryChoice(countryChoice);
|
|
18505
18551
|
}
|
|
@@ -18507,27 +18553,28 @@ const BaseCountryComponentWrapper = ({ verificationService, viewModel, intl, vie
|
|
|
18507
18553
|
React.useEffect(() => {
|
|
18508
18554
|
const includesUS = countryChoices.some((choice) => choice.value === "US");
|
|
18509
18555
|
if (!hasMultipleCountries && !includesUS) {
|
|
18510
|
-
const fieldsToSkip = viewModel.fieldsToSkipValidation
|
|
18511
|
-
? [...viewModel.fieldsToSkipValidation, "country"]
|
|
18556
|
+
const fieldsToSkip = verificationService.viewModel.fieldsToSkipValidation
|
|
18557
|
+
? [...verificationService.viewModel.fieldsToSkipValidation, "country"]
|
|
18512
18558
|
: ["country", "address1", "postalCode", "state", "city"];
|
|
18513
|
-
verificationService.updateViewModel(produceDraftViewModel(viewModel, "fieldsToSkipValidation", fieldsToSkip));
|
|
18559
|
+
verificationService.updateViewModel(produceDraftViewModel(verificationService.viewModel, "fieldsToSkipValidation", fieldsToSkip));
|
|
18514
18560
|
}
|
|
18515
18561
|
}, [hasMultipleCountries]);
|
|
18516
18562
|
React.useEffect(() => {
|
|
18517
18563
|
const updatedFieldValidationErrors = fn(verificationService.fieldValidationErrors, (draft) => {
|
|
18518
18564
|
if (draft.country) {
|
|
18519
|
-
draft.country = validateFieldById("country", viewModel.countryChoice, verificationService.formValidationOptions);
|
|
18565
|
+
draft.country = validateFieldById("country", verificationService.viewModel.countryChoice, verificationService.formValidationOptions);
|
|
18520
18566
|
}
|
|
18521
|
-
if ("postalCode" in viewModel &&
|
|
18522
|
-
|
|
18567
|
+
if ("postalCode" in verificationService.viewModel &&
|
|
18568
|
+
verificationService.viewModel.postalCode) {
|
|
18569
|
+
draft.postalCode = validateFieldById("postalCode", verificationService.viewModel.postalCode, verificationService.formValidationOptions);
|
|
18523
18570
|
}
|
|
18524
18571
|
});
|
|
18525
18572
|
updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);
|
|
18526
|
-
}, [viewModel.countryChoice]);
|
|
18573
|
+
}, [verificationService.viewModel.countryChoice]);
|
|
18527
18574
|
if (!hasMultipleCountries) {
|
|
18528
18575
|
return null;
|
|
18529
18576
|
}
|
|
18530
|
-
return (React.createElement(CountryComponent, { isRequired: true, options: countryChoices, value: viewModel.countryChoice, isErrored: Boolean(fieldValidationErrors.country), onChange: async (countryChoice) => {
|
|
18577
|
+
return (React.createElement(CountryComponent, { isRequired: true, options: countryChoices, value: verificationService.viewModel.countryChoice, isErrored: Boolean(fieldValidationErrors.country), onChange: async (countryChoice) => {
|
|
18531
18578
|
const countryValue = countryChoice ? countryChoice.value : undefined;
|
|
18532
18579
|
updateCountryChoice(countryChoice);
|
|
18533
18580
|
updateFieldValidationErrorsByFieldId("country", countryValue, verificationService);
|
|
@@ -18546,13 +18593,25 @@ const RewardsRemainingComponent = ({ verificationService, }) => {
|
|
|
18546
18593
|
return null;
|
|
18547
18594
|
};
|
|
18548
18595
|
|
|
18596
|
+
const FormFieldCheckbox = ({ fieldId, value, onChange, label, errorMessage, }) => {
|
|
18597
|
+
const labelIntlId = `${fieldId}Label`;
|
|
18598
|
+
const labelHtmlId = `sid-${dashed(labelIntlId)}`;
|
|
18599
|
+
const setOppositeValue = () => onChange(!value);
|
|
18600
|
+
return (React.createElement("div", { className: `sid-field sid-${dashed(fieldId)}` },
|
|
18601
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
18602
|
+
React.createElement("div", { className: "sid-checkbox-flex" },
|
|
18603
|
+
React.createElement(OptInInputComponent, { id: dashed(fieldId), isErrored: !!errorMessage, value: value, onChange: setOppositeValue, ariaLabelledby: labelHtmlId }),
|
|
18604
|
+
React.createElement("div", { className: "sid-checkbox__label", onClick: setOppositeValue, onKeyPress: setOppositeValue, role: "button", tabIndex: 0, id: labelHtmlId }, label)),
|
|
18605
|
+
errorMessage && React.createElement("div", { className: "sid-field-error" }, errorMessage)));
|
|
18606
|
+
};
|
|
18607
|
+
|
|
18549
18608
|
/**
|
|
18550
18609
|
* Custom form field component.
|
|
18551
18610
|
* Implementors can render a form field passing in config using setOptions, rather than
|
|
18552
18611
|
* having to create an entire React project and override component(s).
|
|
18553
18612
|
*/
|
|
18554
18613
|
const FormFieldCustom = injectIntl(({ config, verificationService, intl }) => {
|
|
18555
|
-
const currentValue = getSafe(() => verificationService.viewModel.metadata[config.fieldId])
|
|
18614
|
+
const currentValue = getSafe(() => verificationService.viewModel.metadata[config.fieldId]);
|
|
18556
18615
|
const errorId = getSafe(() => verificationService.fieldValidationErrors[config.fieldId]);
|
|
18557
18616
|
const onChange = (value) => {
|
|
18558
18617
|
verificationService.updateViewModel(fn(verificationService.viewModel, (draft) => {
|
|
@@ -18567,23 +18626,39 @@ const FormFieldCustom = injectIntl(({ config, verificationService, intl }) => {
|
|
|
18567
18626
|
// Don't set error. Only do that when submit is clicked, same as jslib's built-in fields
|
|
18568
18627
|
}));
|
|
18569
18628
|
};
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18629
|
+
switch (config.fieldType) {
|
|
18630
|
+
case "text":
|
|
18631
|
+
return (React.createElement(FormFieldText, { fieldId: config.fieldId, value: `${currentValue || ""}`, onChange: onChange, placeholder: intl.formatHTMLMessage({
|
|
18632
|
+
id: `${config.fieldId}Placeholder`,
|
|
18633
|
+
defaultMessage: config.fieldId,
|
|
18634
|
+
}), label: React.createElement(FormattedHTMLMessage, { id: `${config.fieldId}Label`, defaultMessage: config.fieldId }), errorMessage: errorId && (React.createElement(FormattedHTMLMessage, { id: `errorId.${errorId}`, defaultMessage: `Invalid ${config.fieldId}` })), showPlaceholderAndHideLabel: config.showPlaceholderAndHideLabel, required: config.required }));
|
|
18635
|
+
case "checkbox":
|
|
18636
|
+
return (React.createElement(FormFieldCheckbox, { fieldId: config.fieldId, value: typeof currentValue === "boolean" ? currentValue : false, onChange: onChange, label: React.createElement(FormattedHTMLMessage, { id: `${config.fieldId}Label`, defaultMessage: config.fieldId }), errorMessage: errorId && (React.createElement(FormattedHTMLMessage, { id: `errorId.${errorId}`, defaultMessage: `Invalid ${config.fieldId}` })) }));
|
|
18637
|
+
default:
|
|
18638
|
+
logger.warn(`Unknown field type: ${config.fieldType}`);
|
|
18639
|
+
return null;
|
|
18640
|
+
}
|
|
18574
18641
|
});
|
|
18575
18642
|
|
|
18643
|
+
/**
|
|
18644
|
+
* Extra message component
|
|
18645
|
+
*
|
|
18646
|
+
* Easily register extra messages to specific spots in the form using this component
|
|
18647
|
+
*
|
|
18648
|
+
* These new regions do NOT have a message by default, but messages can be added simply by specifying the messageId + value
|
|
18649
|
+
* either in my.sheerid.com or via setOptions(). No need to override a component just to add a message as long as the ExtraMessage
|
|
18650
|
+
* appears in a desirable spot.
|
|
18651
|
+
*/
|
|
18652
|
+
const ExtraMessage = ({ verificationService, suffix }) => verificationService.messages[`extraMessage${suffix}`] ? (React.createElement("div", { className: `sid-extra-message sid-extra-message-${suffix}` },
|
|
18653
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
18654
|
+
React.createElement(FormattedHTMLMessage, { id: `extraMessage${suffix}`, defaultMessage: " " }))) : null;
|
|
18655
|
+
|
|
18576
18656
|
/**
|
|
18577
18657
|
* TODO - preamble
|
|
18578
18658
|
*/
|
|
18579
|
-
const StepStudentPersonalInfo = ({
|
|
18659
|
+
const StepStudentPersonalInfo = ({ verificationService, }) => {
|
|
18580
18660
|
const viewModel = verificationService.viewModel;
|
|
18581
18661
|
const { fieldValidationErrors } = verificationService;
|
|
18582
|
-
const localeChoices = getAvailableLocaleChoices(verificationService.programTheme, intl);
|
|
18583
|
-
const defaultLocaleChoice = {
|
|
18584
|
-
value: "en-US",
|
|
18585
|
-
label: "English",
|
|
18586
|
-
};
|
|
18587
18662
|
const verificationResponse = verificationService.verificationResponse;
|
|
18588
18663
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18589
18664
|
const updateStudentViewModel = (key, value) => {
|
|
@@ -18592,12 +18667,6 @@ const StepStudentPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18592
18667
|
});
|
|
18593
18668
|
verificationService.updateViewModel(nextState);
|
|
18594
18669
|
};
|
|
18595
|
-
const updateLocale = (localeChoice) => {
|
|
18596
|
-
const nextState = fn(viewModel, (draft) => {
|
|
18597
|
-
draft.localeChoice = localeChoice;
|
|
18598
|
-
});
|
|
18599
|
-
verificationService.updateLocale(nextState, verificationService.programTheme, verificationService.verificationResponse.segment);
|
|
18600
|
-
};
|
|
18601
18670
|
return (React.createElement("div", { id: "sid-step-student-personal-info", className: "sid-l-container" },
|
|
18602
18671
|
failedInstantMatch ? (React.createElement("div", { className: "sid-header" },
|
|
18603
18672
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
@@ -18615,8 +18684,8 @@ const StepStudentPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18615
18684
|
"\u00A0",
|
|
18616
18685
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
18617
18686
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
18618
|
-
|
|
18619
|
-
React.createElement(CountryComponentWrapper, { verificationService: verificationService
|
|
18687
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
18688
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
18620
18689
|
React.createElement(CollegeNameComponent, { value: verificationService.viewModel.organization, verificationService: verificationService, isErrored: !!fieldValidationErrors.organization, isRequired: true, onChange: (choice) => {
|
|
18621
18690
|
updateViewModelOrganization(choice, verificationService);
|
|
18622
18691
|
updateFieldValidationErrorsByFieldId("organization", choice, verificationService);
|
|
@@ -18651,6 +18720,7 @@ const StepStudentPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18651
18720
|
});
|
|
18652
18721
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
18653
18722
|
}, viewModel: viewModel }),
|
|
18723
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
18654
18724
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
18655
18725
|
React.createElement("div", { className: "sid-submit" },
|
|
18656
18726
|
React.createElement("button", { id: "sid-submit-wrapper__collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectStudentPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -18659,7 +18729,7 @@ const StepStudentPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18659
18729
|
React.createElement("span", { id: "verify-status-text" }, failedInstantMatch ? (React.createElement(FormattedHTMLMessage, { id: "tryAgain", defaultMessage: "Try Again" })) : (React.createElement(FormattedHTMLMessage, { id: "verifyMyStudentStatus", defaultMessage: "Verify My Student Status" })))))),
|
|
18660
18730
|
React.createElement(FormFooterComponent, { verificationService: verificationService })));
|
|
18661
18731
|
};
|
|
18662
|
-
const StepStudentPersonalInfoComponent =
|
|
18732
|
+
const StepStudentPersonalInfoComponent = StepStudentPersonalInfo;
|
|
18663
18733
|
|
|
18664
18734
|
const PostalCodeInput = ({ onChange, value, isValid, intl, placeholder = "", ariaLabelledBy, }) => (React.createElement(InputTextComponent, { id: "postal-code", isErrored: !isValid, onChange: (e) => onChange(e.target.value), pattern: "[a-zA-Z0-9 ]*", placeholder: placeholder ||
|
|
18665
18735
|
intl.formatHTMLMessage({ id: "postalCodePlaceholder", defaultMessage: "Postal Code" }), refId: "postalCode", value: value, required: true, "aria-labelledby": ariaLabelledBy }));
|
|
@@ -18689,7 +18759,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
18689
18759
|
});
|
|
18690
18760
|
verificationService.updateViewModel(nextState);
|
|
18691
18761
|
};
|
|
18692
|
-
return (React.createElement("div", { id: "sid-step-
|
|
18762
|
+
return (React.createElement("div", { id: "sid-step-senior-personal-info", className: "sid-l-container" },
|
|
18693
18763
|
failedInstantMatch ? (React.createElement("div", { className: "sid-header" },
|
|
18694
18764
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
18695
18765
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
@@ -18706,6 +18776,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
18706
18776
|
"\u00A0",
|
|
18707
18777
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
18708
18778
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
18779
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
18709
18780
|
React.createElement("div", { className: "sid-names" },
|
|
18710
18781
|
React.createElement(FirstNameComponent, { value: viewModel.firstName, isErrored: !!fieldValidationErrors.firstName, onChange: (newValue) => {
|
|
18711
18782
|
updateSeniorViewModel("firstName", newValue);
|
|
@@ -18740,6 +18811,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
18740
18811
|
});
|
|
18741
18812
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
18742
18813
|
}, viewModel: viewModel }),
|
|
18814
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
18743
18815
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
18744
18816
|
React.createElement("div", { className: "sid-submit" },
|
|
18745
18817
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectSeniorPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -18854,7 +18926,8 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
18854
18926
|
"\u00A0",
|
|
18855
18927
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
18856
18928
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
18857
|
-
React.createElement(
|
|
18929
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
18930
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService, viewModelDraftDecorator: (draft, countryChoice) => {
|
|
18858
18931
|
const viewModelDraft = draft;
|
|
18859
18932
|
const country = countryChoice ? countryChoice.value : undefined;
|
|
18860
18933
|
if (!displayPhoneNumber(country, smsLoopEnabled)) {
|
|
@@ -18902,6 +18975,7 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
18902
18975
|
});
|
|
18903
18976
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
18904
18977
|
}, viewModel: viewModel }),
|
|
18978
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
18905
18979
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
18906
18980
|
React.createElement("div", { className: "sid-submit" },
|
|
18907
18981
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectAgePersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -18936,32 +19010,17 @@ const TeacherSchool = ({ value, isErrored, onChange, verificationService, intl,
|
|
|
18936
19010
|
};
|
|
18937
19011
|
const TeacherSchoolComponent = injectIntl(TeacherSchool);
|
|
18938
19012
|
|
|
18939
|
-
|
|
18940
|
-
* Step Teacher Personal Info Component
|
|
18941
|
-
* TODO - We need to import more from es6
|
|
18942
|
-
*/
|
|
18943
|
-
const StepTeacherPersonalInfo = ({ intl, verificationService, }) => {
|
|
19013
|
+
const StepTeacherPersonalInfo = ({ verificationService, }) => {
|
|
18944
19014
|
const viewModel = verificationService.viewModel;
|
|
18945
19015
|
const { fieldValidationErrors } = verificationService;
|
|
18946
19016
|
const verificationResponse = verificationService.verificationResponse;
|
|
18947
19017
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
18948
|
-
const localeChoices = getAvailableLocaleChoices(verificationService.programTheme, intl);
|
|
18949
|
-
const defaultLocaleChoice = {
|
|
18950
|
-
value: "en-US",
|
|
18951
|
-
label: "English",
|
|
18952
|
-
};
|
|
18953
19018
|
const updateTeacherViewModel = (key, value) => {
|
|
18954
19019
|
const nextState = fn(viewModel, (draft) => {
|
|
18955
19020
|
draft[key] = value;
|
|
18956
19021
|
});
|
|
18957
19022
|
verificationService.updateViewModel(nextState);
|
|
18958
19023
|
};
|
|
18959
|
-
const updateLocale = (localeChoice) => {
|
|
18960
|
-
const nextState = fn(viewModel, (draft) => {
|
|
18961
|
-
draft.localeChoice = localeChoice;
|
|
18962
|
-
});
|
|
18963
|
-
verificationService.updateLocale(nextState, verificationService.programTheme, verificationService.verificationResponse.segment);
|
|
18964
|
-
};
|
|
18965
19024
|
// Don't validate DOB if ID Check is not enabled
|
|
18966
19025
|
useEffect(() => {
|
|
18967
19026
|
if (!verificationService.programTheme.idCheckAddOnEnabled) {
|
|
@@ -18989,8 +19048,8 @@ const StepTeacherPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18989
19048
|
"\u00A0",
|
|
18990
19049
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
18991
19050
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
18992
|
-
|
|
18993
|
-
React.createElement(CountryComponentWrapper, { verificationService: verificationService
|
|
19051
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19052
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
18994
19053
|
React.createElement(TeacherSchoolComponent, { value: verificationService.viewModel.organization, verificationService: verificationService, isErrored: !!fieldValidationErrors.organization, onChange: (choice) => {
|
|
18995
19054
|
updateViewModelOrganization(choice, verificationService);
|
|
18996
19055
|
updateFieldValidationErrorsByFieldId("organization", choice, verificationService);
|
|
@@ -19029,6 +19088,7 @@ const StepTeacherPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19029
19088
|
});
|
|
19030
19089
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19031
19090
|
}, viewModel: viewModel }),
|
|
19091
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19032
19092
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19033
19093
|
React.createElement("div", { className: "sid-submit" },
|
|
19034
19094
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectTeacherPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19037,7 +19097,7 @@ const StepTeacherPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19037
19097
|
React.createElement("span", { id: "verify-status-text" }, failedInstantMatch ? (React.createElement(FormattedHTMLMessage, { id: "tryAgain", defaultMessage: "Try Again" })) : (React.createElement(FormattedHTMLMessage, { id: "verifyMyTeacherStatus", defaultMessage: "Verify My Teacher Status" })))))),
|
|
19038
19098
|
React.createElement(FormFooterComponent, { verificationService: verificationService })));
|
|
19039
19099
|
};
|
|
19040
|
-
const StepTeacherPersonalInfoComponent =
|
|
19100
|
+
const StepTeacherPersonalInfoComponent = StepTeacherPersonalInfo;
|
|
19041
19101
|
|
|
19042
19102
|
const MemberId = ({ value, isErrored, onChange, explanation, intl, placeholder = "", isRequired = false, label, }) => {
|
|
19043
19103
|
const getDefaultExplanation = () => !isRequired ? React.createElement(FormattedHTMLMessage, { id: "optional", defaultMessage: "Optional" }) : "";
|
|
@@ -19066,31 +19126,17 @@ const MembershipOrganization = ({ value, isErrored, onChange, verificationServic
|
|
|
19066
19126
|
};
|
|
19067
19127
|
const MembershipOrganizationComponent = injectIntl(MembershipOrganization);
|
|
19068
19128
|
|
|
19069
|
-
|
|
19070
|
-
* Step Member Personal Info Component
|
|
19071
|
-
*/
|
|
19072
|
-
const StepMemberPersonalInfo = ({ intl, verificationService, }) => {
|
|
19129
|
+
const StepMemberPersonalInfo = ({ verificationService }) => {
|
|
19073
19130
|
const viewModel = verificationService.viewModel;
|
|
19074
19131
|
const { fieldValidationErrors } = verificationService;
|
|
19075
19132
|
const verificationResponse = verificationService.verificationResponse;
|
|
19076
19133
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
19077
|
-
const localeChoices = getAvailableLocaleChoices(verificationService.programTheme, intl);
|
|
19078
|
-
const defaultLocaleChoice = {
|
|
19079
|
-
value: "en-US",
|
|
19080
|
-
label: "English",
|
|
19081
|
-
};
|
|
19082
19134
|
const updateMemberViewModel = (key, value) => {
|
|
19083
19135
|
const nextState = fn(viewModel, (draft) => {
|
|
19084
19136
|
draft[key] = value;
|
|
19085
19137
|
});
|
|
19086
19138
|
verificationService.updateViewModel(nextState);
|
|
19087
19139
|
};
|
|
19088
|
-
const updateLocale = (localeChoice) => {
|
|
19089
|
-
const nextState = fn(viewModel, (draft) => {
|
|
19090
|
-
draft.localeChoice = localeChoice;
|
|
19091
|
-
});
|
|
19092
|
-
verificationService.updateLocale(nextState, verificationService.programTheme, verificationService.verificationResponse.segment);
|
|
19093
|
-
};
|
|
19094
19140
|
return (React.createElement("div", { id: "sid-step-member-personal-info", className: "sid-l-container" },
|
|
19095
19141
|
failedInstantMatch ? (React.createElement("div", { className: "sid-header" },
|
|
19096
19142
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
@@ -19108,8 +19154,8 @@ const StepMemberPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19108
19154
|
"\u00A0",
|
|
19109
19155
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
19110
19156
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
19111
|
-
|
|
19112
|
-
React.createElement(CountryComponentWrapper, { verificationService: verificationService
|
|
19157
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19158
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
19113
19159
|
React.createElement(MembershipOrganizationComponent, { value: verificationService.viewModel.organization, verificationService: verificationService, isErrored: !!fieldValidationErrors.organization, onChange: (choice) => {
|
|
19114
19160
|
updateViewModelOrganization(choice, verificationService);
|
|
19115
19161
|
updateFieldValidationErrorsByFieldId("organization", choice, verificationService);
|
|
@@ -19148,6 +19194,7 @@ const StepMemberPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19148
19194
|
});
|
|
19149
19195
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19150
19196
|
}, viewModel: viewModel }),
|
|
19197
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19151
19198
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19152
19199
|
React.createElement("div", { className: "sid-submit" },
|
|
19153
19200
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectMemberPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19156,7 +19203,7 @@ const StepMemberPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19156
19203
|
React.createElement("span", { id: "verify-status-text" }, failedInstantMatch ? (React.createElement(FormattedHTMLMessage, { id: "tryAgain", defaultMessage: "Try Again" })) : (React.createElement(FormattedHTMLMessage, { id: "verifyMyMembershipStatus", defaultMessage: "Verify My Membership Status" })))))),
|
|
19157
19204
|
React.createElement(FormFooterComponent, { verificationService: verificationService })));
|
|
19158
19205
|
};
|
|
19159
|
-
const StepMemberPersonalInfoComponent =
|
|
19206
|
+
const StepMemberPersonalInfoComponent = StepMemberPersonalInfo;
|
|
19160
19207
|
|
|
19161
19208
|
const compareLabel = (a, b) => {
|
|
19162
19209
|
let sortValue;
|
|
@@ -19299,7 +19346,8 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19299
19346
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
19300
19347
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
19301
19348
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
19302
|
-
React.createElement(
|
|
19349
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19350
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
19303
19351
|
availableStatuses ? (React.createElement(MilitaryStatusComponent, { value: {
|
|
19304
19352
|
value: viewModel.status,
|
|
19305
19353
|
label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),
|
|
@@ -19348,6 +19396,7 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19348
19396
|
});
|
|
19349
19397
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19350
19398
|
}, viewModel: viewModel }),
|
|
19399
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19351
19400
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19352
19401
|
React.createElement("div", { className: "sid-submit" },
|
|
19353
19402
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectActiveMilitaryPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19508,7 +19557,8 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19508
19557
|
"\u00A0",
|
|
19509
19558
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
19510
19559
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
19511
|
-
React.createElement(
|
|
19560
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19561
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
19512
19562
|
availableStatuses ? (React.createElement(MilitaryStatusComponent, { value: {
|
|
19513
19563
|
value: viewModel.status,
|
|
19514
19564
|
label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),
|
|
@@ -19559,6 +19609,7 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19559
19609
|
});
|
|
19560
19610
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19561
19611
|
}, viewModel: viewModel }),
|
|
19612
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19562
19613
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19563
19614
|
React.createElement("div", { className: "sid-submit" },
|
|
19564
19615
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectInactiveMilitaryPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19646,7 +19697,8 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19646
19697
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
19647
19698
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
19648
19699
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
19649
|
-
React.createElement(
|
|
19700
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19701
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
19650
19702
|
React.createElement(FirstResponderStatusComponent, { value: {
|
|
19651
19703
|
value: viewModel.status,
|
|
19652
19704
|
label: getStatusLabel(intl, viewModel.status, FirstResponderStatusDefaultMessagesEnum),
|
|
@@ -19692,6 +19744,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19692
19744
|
});
|
|
19693
19745
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19694
19746
|
}, viewModel: viewModel }),
|
|
19747
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19695
19748
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19696
19749
|
React.createElement("div", { className: "sid-submit" },
|
|
19697
19750
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectFirstResponderPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19800,7 +19853,8 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19800
19853
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
19801
19854
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
19802
19855
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
19803
|
-
React.createElement(
|
|
19856
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19857
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
19804
19858
|
React.createElement(MedicalStatusComponent, { value: {
|
|
19805
19859
|
value: viewModel.status,
|
|
19806
19860
|
label: getStatusLabel(intl, viewModel.status, MedicalProfessionalStatusDefaultMessagesEnum),
|
|
@@ -19850,6 +19904,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19850
19904
|
});
|
|
19851
19905
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19852
19906
|
}, viewModel: viewModel }),
|
|
19907
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19853
19908
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19854
19909
|
React.createElement("div", { className: "sid-submit" },
|
|
19855
19910
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectMedicalProfessionalPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19860,13 +19915,33 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19860
19915
|
};
|
|
19861
19916
|
const StepMedicalProfessionalPersonalInfoComponent = injectIntl(StepMedicalProfessionalPersonalInfo);
|
|
19862
19917
|
|
|
19863
|
-
const
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
|
|
19868
|
-
|
|
19869
|
-
|
|
19918
|
+
const StateSelect = ({ value, isErrored, options, onChange, intl, placeholder = "", label = "", isRequired = false, }) => {
|
|
19919
|
+
const stateFieldId = "sid-state";
|
|
19920
|
+
const handleOnKeyDown = (event) => {
|
|
19921
|
+
if (event.key === "Tab" && !event.shiftKey) {
|
|
19922
|
+
event.preventDefault();
|
|
19923
|
+
setFocus("inputSelectButtonState");
|
|
19924
|
+
}
|
|
19925
|
+
};
|
|
19926
|
+
return (React.createElement("div", { className: `sid-field ${stateFieldId}__select` },
|
|
19927
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
19928
|
+
React.createElement(FieldLabel, { text: label || React.createElement(FormattedHTMLMessage, { id: "state", defaultMessage: "State where you live" }), htmlForLabel: stateFieldId, id: `${stateFieldId}-label`, displayClasses: placeholder && "sid-h-screen-reader-only", isRequired: isRequired }),
|
|
19929
|
+
React.createElement(InputSelectComponent, { fieldId: "state", inputId: stateFieldId, fieldLabelId: `${stateFieldId}-label`, isErrored: isErrored, options: options, onChange: (state) => onChange(state), onKeyDown: (event) => handleOnKeyDown(event), placeholder: intl.formatHTMLMessage({
|
|
19930
|
+
id: "statePlaceholder",
|
|
19931
|
+
defaultMessage: "State",
|
|
19932
|
+
}), value: value
|
|
19933
|
+
? {
|
|
19934
|
+
value,
|
|
19935
|
+
label: intl.formatHTMLMessage({
|
|
19936
|
+
id: `states.${value}`,
|
|
19937
|
+
defaultMessage: value.label || value,
|
|
19938
|
+
}),
|
|
19939
|
+
}
|
|
19940
|
+
: undefined, suppressPlaceholder: false, isRequired: isRequired, buttonRef: "inputSelectButtonState" }),
|
|
19941
|
+
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
19942
|
+
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidState", defaultMessage: "Invalid state" }))) : null));
|
|
19943
|
+
};
|
|
19944
|
+
const StateSelectComponent = injectIntl(StateSelect);
|
|
19870
19945
|
|
|
19871
19946
|
const Company = ({ onChange, value, isErrored, verificationService, intl, placeholder = "", }) => {
|
|
19872
19947
|
const { programId } = verificationService;
|
|
@@ -19883,7 +19958,7 @@ const CompanyComponent = injectIntl(Company);
|
|
|
19883
19958
|
/**
|
|
19884
19959
|
* TODO - preamble
|
|
19885
19960
|
*/
|
|
19886
|
-
const StepEmploymentPersonalInfo = ({ verificationService, }) => {
|
|
19961
|
+
const StepEmploymentPersonalInfo = ({ intl, verificationService, }) => {
|
|
19887
19962
|
const viewModel = verificationService.viewModel;
|
|
19888
19963
|
const { fieldValidationErrors } = verificationService;
|
|
19889
19964
|
const updateEmploymentViewModel = (key, value) => {
|
|
@@ -19903,7 +19978,8 @@ const StepEmploymentPersonalInfo = ({ verificationService, }) => {
|
|
|
19903
19978
|
"\u00A0",
|
|
19904
19979
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
19905
19980
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService }))),
|
|
19906
|
-
React.createElement(
|
|
19981
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
19982
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService, viewModelDraftDecorator: (draft, countryChoice) => {
|
|
19907
19983
|
const viewModel = draft;
|
|
19908
19984
|
viewModel.shouldCollectAddress = shouldCollectAddressFields(countryChoice, verificationService.programTheme.config.countries);
|
|
19909
19985
|
if (!viewModel.shouldCollectAddress) {
|
|
@@ -19939,10 +20015,11 @@ const StepEmploymentPersonalInfo = ({ verificationService, }) => {
|
|
|
19939
20015
|
updateEmploymentViewModel("city", newValue);
|
|
19940
20016
|
updateFieldValidationErrorsByFieldId("city", newValue, verificationService);
|
|
19941
20017
|
}, value: viewModel.city, isRequired: true }),
|
|
19942
|
-
React.createElement(
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
20018
|
+
React.createElement(StateSelectComponent, { isRequired: true, options: getAvailableStateChoices(verificationService.programTheme, intl), value: viewModel.state || undefined, isErrored: Boolean(fieldValidationErrors.state), onChange: async (stateChoice) => {
|
|
20019
|
+
const stateValue = stateChoice ? stateChoice.value : undefined;
|
|
20020
|
+
updateEmploymentViewModel("state", stateValue);
|
|
20021
|
+
updateFieldValidationErrorsByFieldId("state", stateValue, verificationService);
|
|
20022
|
+
}, label: React.createElement(FormattedHTMLMessage, { id: "state", defaultMessage: "State" }) }),
|
|
19946
20023
|
React.createElement(PostalCodeComponent, { isErrored: !!fieldValidationErrors.postalCode, onChange: (newValue) => {
|
|
19947
20024
|
updateEmploymentViewModel("postalCode", newValue);
|
|
19948
20025
|
updateFieldValidationErrorsByFieldId("postalCode", newValue, verificationService);
|
|
@@ -19964,6 +20041,7 @@ const StepEmploymentPersonalInfo = ({ verificationService, }) => {
|
|
|
19964
20041
|
});
|
|
19965
20042
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
19966
20043
|
}, viewModel: viewModel }),
|
|
20044
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
19967
20045
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
19968
20046
|
React.createElement("div", { className: "sid-submit" },
|
|
19969
20047
|
React.createElement("button", { id: "sid-submit-wrapper__collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectEmployeePersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -19991,29 +20069,6 @@ const DriverLicenseNumber = ({ value, isErrored, onChange, explanation, intl, pl
|
|
|
19991
20069
|
};
|
|
19992
20070
|
const DriverLicenseNumberComponent = injectIntl(DriverLicenseNumber);
|
|
19993
20071
|
|
|
19994
|
-
const StateSelect = ({ value, isErrored, options, onChange, onKeyDown, intl, placeholder = "", label = "", isRequired = false, }) => {
|
|
19995
|
-
const inputId = "sid-state";
|
|
19996
|
-
return (React.createElement("div", { className: `sid-field ${inputId}` },
|
|
19997
|
-
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
19998
|
-
React.createElement(FieldLabel, { text: label || React.createElement(FormattedHTMLMessage, { id: "state", defaultMessage: "State where you live" }), htmlForLabel: inputId, id: `${inputId}-label`, displayClasses: placeholder && "sid-h-screen-reader-only", isRequired: isRequired }),
|
|
19999
|
-
React.createElement(InputSelectComponent, { fieldId: "state", inputId: inputId, fieldLabelId: `${inputId}-label`, isErrored: isErrored, options: options, onChange: (state) => onChange(state), onKeyDown: onKeyDown, placeholder: placeholder ||
|
|
20000
|
-
intl.formatHTMLMessage({
|
|
20001
|
-
id: "statePlaceholder",
|
|
20002
|
-
defaultMessage: "State",
|
|
20003
|
-
}), value: value
|
|
20004
|
-
? {
|
|
20005
|
-
value: value.value,
|
|
20006
|
-
label: intl.formatHTMLMessage({
|
|
20007
|
-
id: `states.${value.value}`,
|
|
20008
|
-
defaultMessage: value.label || value.value,
|
|
20009
|
-
}),
|
|
20010
|
-
}
|
|
20011
|
-
: undefined }),
|
|
20012
|
-
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
20013
|
-
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidState", defaultMessage: "Invalid state" }))) : null));
|
|
20014
|
-
};
|
|
20015
|
-
const StateSelectComponent = injectIntl(StateSelect);
|
|
20016
|
-
|
|
20017
20072
|
/**
|
|
20018
20073
|
* TODO - preamble
|
|
20019
20074
|
*/
|
|
@@ -20047,6 +20102,7 @@ const StepDriverLicensePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20047
20102
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
20048
20103
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20049
20104
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
20105
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20050
20106
|
React.createElement("div", { className: "sid-names" },
|
|
20051
20107
|
React.createElement(FirstNameComponent, { value: viewModel.firstName, isErrored: !!fieldValidationErrors.firstName, onChange: (newValue) => {
|
|
20052
20108
|
updateIdentityViewModel("firstName", newValue);
|
|
@@ -20082,6 +20138,7 @@ const StepDriverLicensePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20082
20138
|
});
|
|
20083
20139
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
20084
20140
|
}, viewModel: viewModel }),
|
|
20141
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
20085
20142
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
20086
20143
|
React.createElement("div", { className: "sid-submit" },
|
|
20087
20144
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectDriverLicensePersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -20125,6 +20182,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20125
20182
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
20126
20183
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20127
20184
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
20185
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20128
20186
|
React.createElement("div", { className: "sid-names" },
|
|
20129
20187
|
React.createElement(FirstNameComponent, { value: viewModel.firstName, isErrored: !!fieldValidationErrors.firstName, onChange: (newValue) => {
|
|
20130
20188
|
updateIdentityViewModel("firstName", newValue);
|
|
@@ -20173,6 +20231,7 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20173
20231
|
});
|
|
20174
20232
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
20175
20233
|
}, viewModel: viewModel }),
|
|
20234
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
20176
20235
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
20177
20236
|
React.createElement("div", { className: "sid-submit" },
|
|
20178
20237
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectGeneralIdentityPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -20216,6 +20275,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20216
20275
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
20217
20276
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20218
20277
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
20278
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20219
20279
|
React.createElement("div", { className: "sid-names" },
|
|
20220
20280
|
React.createElement(FirstNameComponent, { value: viewModel.firstName, isErrored: !!fieldValidationErrors.firstName, onChange: (newValue) => {
|
|
20221
20281
|
updateIdentityViewModel("firstName", newValue);
|
|
@@ -20268,6 +20328,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20268
20328
|
});
|
|
20269
20329
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
20270
20330
|
}, viewModel: viewModel }),
|
|
20331
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
20271
20332
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
20272
20333
|
React.createElement("div", { className: "sid-submit" },
|
|
20273
20334
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectHybridIdentityPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -20343,7 +20404,9 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
20343
20404
|
return availableStatuses;
|
|
20344
20405
|
};
|
|
20345
20406
|
return (React.createElement("div", { id: "sid-step-licensed-professional-personal-info", className: "sid-l-container" },
|
|
20346
|
-
failedInstantMatch ? (
|
|
20407
|
+
failedInstantMatch ? (
|
|
20408
|
+
// TODO localize this message
|
|
20409
|
+
React.createElement("p", null, "Failied instant match")) : (React.createElement("div", { className: "sid-header" },
|
|
20347
20410
|
React.createElement("div", { className: "sid-l-horz-center" },
|
|
20348
20411
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
20349
20412
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
@@ -20353,6 +20416,8 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
20353
20416
|
React.createElement("div", { className: "sid-header__how-verifying-works sid-l-horz-center" },
|
|
20354
20417
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20355
20418
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
20419
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20420
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
20356
20421
|
React.createElement(StatusComponent, { segmentId: SEGMENT_ID$1, value: {
|
|
20357
20422
|
value: viewModel.statuses ? viewModel.statuses[0] : "",
|
|
20358
20423
|
label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : "",
|
|
@@ -20399,6 +20464,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
20399
20464
|
});
|
|
20400
20465
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
20401
20466
|
}, viewModel: viewModel }),
|
|
20467
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
20402
20468
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
20403
20469
|
React.createElement("div", { className: "sid-submit" },
|
|
20404
20470
|
React.createElement("button", { id: "sid-submit-btn-collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectLicensedProfessionalPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -20441,6 +20507,7 @@ const StepMoverPersonalInfo = ({ verificationService }) => {
|
|
|
20441
20507
|
React.createElement("br", null),
|
|
20442
20508
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20443
20509
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
20510
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20444
20511
|
React.createElement("div", { className: "sid-names" },
|
|
20445
20512
|
React.createElement(FirstNameComponent, { value: viewModel.firstName, isErrored: !!fieldValidationErrors.firstName, onChange: (newValue) => {
|
|
20446
20513
|
updateMoverViewModel("firstName", newValue);
|
|
@@ -20475,6 +20542,7 @@ const StepMoverPersonalInfo = ({ verificationService }) => {
|
|
|
20475
20542
|
});
|
|
20476
20543
|
updateFieldValidationErrorsByFieldId("marketConsentValue", newValue, verificationService);
|
|
20477
20544
|
}, viewModel: viewModel }),
|
|
20545
|
+
React.createElement(ExtraMessage, { verificationService: verificationService, suffix: "CollectAboveSubmit" }),
|
|
20478
20546
|
React.createElement("div", { className: "sid-form-region sid-submit-wrapper sid-l-space-top-md" },
|
|
20479
20547
|
React.createElement("div", { className: "sid-submit" },
|
|
20480
20548
|
React.createElement("button", { id: "sid-submit-wrapper__collect-info", onClick: () => submitForm(viewModel, verificationService, VerificationStepsEnum.collectMoverPersonalInfo), type: "submit", className: `sid-btn sid-btn--dark sid-l-full-width ${!isFormFilled(viewModel, verificationService.formValidationOptions)
|
|
@@ -20514,11 +20582,6 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20514
20582
|
const { fieldValidationErrors } = verificationService;
|
|
20515
20583
|
const verificationResponse = verificationService.verificationResponse;
|
|
20516
20584
|
const failedInstantMatch = hasFailedInstantMatch(verificationResponse);
|
|
20517
|
-
const localeChoices = getAvailableLocaleChoices(verificationService.programTheme, intl);
|
|
20518
|
-
const defaultLocaleChoice = {
|
|
20519
|
-
value: "en-US",
|
|
20520
|
-
label: "English",
|
|
20521
|
-
};
|
|
20522
20585
|
const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;
|
|
20523
20586
|
const isSelectedStatusSnapBenefits = selectedStatus === "SNAP_BENEFITS";
|
|
20524
20587
|
const updateLowIncomeViewModel = (key, value) => {
|
|
@@ -20546,16 +20609,10 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20546
20609
|
}
|
|
20547
20610
|
return availableStatuses;
|
|
20548
20611
|
};
|
|
20549
|
-
const updateLocale = (localeChoice) => {
|
|
20550
|
-
const nextState = fn(viewModel, (draft) => {
|
|
20551
|
-
draft.localeChoice = localeChoice;
|
|
20552
|
-
});
|
|
20553
|
-
verificationService.updateLocale(nextState, verificationService.programTheme, verificationService.verificationResponse.segment);
|
|
20554
|
-
};
|
|
20555
20612
|
React.useEffect(() => {
|
|
20556
20613
|
if (isSelectedStatusSnapBenefits) {
|
|
20557
20614
|
const updatedViewModel = { fieldsToSkipValidation: ["organization"] };
|
|
20558
|
-
setViewModel(updatedViewModel
|
|
20615
|
+
setViewModel(updatedViewModel);
|
|
20559
20616
|
}
|
|
20560
20617
|
}, [isSelectedStatusSnapBenefits]);
|
|
20561
20618
|
return (React.createElement("div", { id: "sid-step-low-income-personal-info", className: "sid-l-container" },
|
|
@@ -20575,8 +20632,8 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20575
20632
|
"\u00A0",
|
|
20576
20633
|
React.createElement(HowDoesVerifyingWorkComponent, { verificationService: verificationService }),
|
|
20577
20634
|
React.createElement(RewardsRemainingComponent, { verificationService: verificationService })))),
|
|
20578
|
-
|
|
20579
|
-
React.createElement(CountryComponentWrapper, { verificationService: verificationService
|
|
20635
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20636
|
+
React.createElement(CountryComponentWrapper, { verificationService: verificationService }),
|
|
20580
20637
|
React.createElement(StatusComponent, { segmentId: SEGMENT_ID, value: {
|
|
20581
20638
|
value: viewModel.statuses ? viewModel.statuses[0] : "",
|
|
20582
20639
|
label: viewModel.statuses ? getStatusLabel(viewModel.statuses[0]) : "",
|
|
@@ -20722,6 +20779,7 @@ const Step = ({ verificationService }) => {
|
|
|
20722
20779
|
React.createElement(LogoComponent, { verificationService: verificationService })),
|
|
20723
20780
|
React.createElement("div", { className: "sid-header__title sid-l-horz-center" },
|
|
20724
20781
|
React.createElement(FormattedHTMLMessage, { id: "step.collectSocialSecurityNumber.title", defaultMessage: "Enter your social security number" })),
|
|
20782
|
+
React.createElement(ChangeLocaleV2Component, { verificationService: verificationService }),
|
|
20725
20783
|
React.createElement("div", { className: "sid-ssn-wrapper" },
|
|
20726
20784
|
React.createElement(SocialSecurityNumber, { value: viewModel.socialSecurityNumber, onChange: (value) => {
|
|
20727
20785
|
updateSSNViewModel("socialSecurityNumber", value);
|
|
@@ -23325,7 +23383,7 @@ class NewVerification extends React.Component {
|
|
|
23325
23383
|
maintainFocusInLightbox();
|
|
23326
23384
|
listenToInstallPage((event) => {
|
|
23327
23385
|
if (event.data.action === "setViewModel") {
|
|
23328
|
-
setViewModel(event.data.viewModel
|
|
23386
|
+
setViewModel(event.data.viewModel);
|
|
23329
23387
|
}
|
|
23330
23388
|
});
|
|
23331
23389
|
// Special-case, mocking the loading psuedo-step
|
|
@@ -23405,6 +23463,14 @@ const VerificationForm = React.forwardRef(({ programId, trackingId = undefined }
|
|
|
23405
23463
|
React.createElement(NewVerificationComponent, { programId: programId, trackingId: trackingId })))));
|
|
23406
23464
|
});
|
|
23407
23465
|
|
|
23466
|
+
const State = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = "", }) => (React.createElement("div", { className: "sid-field sid-state" },
|
|
23467
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
23468
|
+
React.createElement(FieldLabel, { text: React.createElement(FormattedHTMLMessage, { id: "state", defaultMessage: "State" }), htmlForLabel: "sid-state", id: "sid-state-label", displayClasses: placeholder && "sid-h-screen-reader-only" }),
|
|
23469
|
+
React.createElement(InputTextComponent, { id: "state", isErrored: isErrored, onChange: (e) => onChange(e.target.value), onKeyDown: typeof onKeyDown === "function" ? (e) => onKeyDown(e) : undefined, placeholder: placeholder || intl.formatHTMLMessage({ id: "statePlaceholder", defaultMessage: "State" }), value: value, "aria-labelledby": "sid-state-label" }),
|
|
23470
|
+
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
23471
|
+
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidState", defaultMessage: "Invalid state" }))) : null));
|
|
23472
|
+
const StateComponent = injectIntl(State);
|
|
23473
|
+
|
|
23408
23474
|
const PrivacyPolicyLink = ({ verificationService, includeCompanyName, intl, }) => {
|
|
23409
23475
|
const { programTheme } = verificationService;
|
|
23410
23476
|
const privacyPolicyHref = getPrivacyPolicyUrl(programTheme);
|
|
@@ -23460,6 +23526,7 @@ class Iframe {
|
|
|
23460
23526
|
if (Iframe.isValidHttpUrl(url)) {
|
|
23461
23527
|
const options = {
|
|
23462
23528
|
className: iframeConstants.CLASS_NAMES.INLINE_IFRAME_CONTENT,
|
|
23529
|
+
title: iframeTitle,
|
|
23463
23530
|
};
|
|
23464
23531
|
this.containerElement = containerElement;
|
|
23465
23532
|
this.verificationUrl = new URL(getVerificationUrl(url));
|
|
@@ -23486,7 +23553,7 @@ class Iframe {
|
|
|
23486
23553
|
createIframe(options) {
|
|
23487
23554
|
this.iframe = document.createElement("iframe");
|
|
23488
23555
|
this.iframe.classList.add(options.className);
|
|
23489
|
-
this.iframe.title =
|
|
23556
|
+
this.iframe.title = options.title;
|
|
23490
23557
|
let mark = "?";
|
|
23491
23558
|
if (this.verificationUrl.search) {
|
|
23492
23559
|
mark = "&";
|
|
@@ -23611,6 +23678,7 @@ class Modal {
|
|
|
23611
23678
|
this.iframeInstance = new Iframe(wrapper, this.verificationUrl);
|
|
23612
23679
|
const options = {
|
|
23613
23680
|
className: iframeConstants.CLASS_NAMES.MODAL_IFRAME,
|
|
23681
|
+
title: iframeTitle,
|
|
23614
23682
|
};
|
|
23615
23683
|
this.iframeInstance.createIframe(options);
|
|
23616
23684
|
wrapper.appendChild(this.iframeInstance.iframe);
|
|
@@ -23706,5 +23774,5 @@ const collectDeviceProfile = async (verificationId, programId) => {
|
|
|
23706
23774
|
includeIPQSDeviceFingerprintScript(programTheme, verificationId);
|
|
23707
23775
|
};
|
|
23708
23776
|
|
|
23709
|
-
export { ACCEPTED_DOC_MIME_TYPES, AcceptableUploadsComponent, AddressComponent, BirthDateComponent, BranchOfServiceComponent, ChangeLocaleComponent, CityComponent, CollegeNameComponent, CompanyComponent, CopyToClipboard, CountDownComponent, CountryComponent, CountryComponentWrapper, DEFAULT_LOCALE, DEFAULT_MINIMUM_ORG_SEARCH_VALUE_LENGTH, DEFAULT_PRIVACY_POLICY_URL, DeleteJson, DischargeDateComponent, DriverLicenseNumberComponent, EmailComponent, FaqLinkComponent, FetchOrganizationsComponent, FieldIdEnum, FieldIds, FieldLabel, FirstNameComponent, FirstResponderOrganizationComponent, FirstResponderStatusComponent, FirstResponderStatusDefaultMessagesEnum, 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, SubSegmentEnum, TeacherSchoolComponent, TryAgainButtonComponent, TryAgainSteps, TypeaheadComponent, UPLOAD_FILE_PREFIX, UploadInfoComponent, VerificationApiClient, VerificationForm, VerificationSteps, VerificationStepsEnum, addFiles, addHook, allMockedResponses, arrayUnique, assertValidConversionRequest, assertValidDatabaseId, assertValidFieldId, assertValidFunction, assertValidHook, assertValidHookName, assertValidHtmlElement, assertValidLocale, assertValidMockStepName, assertValidProgramId, assertValidSegmentName, assertValidTrackingId, assertValidTryAgainStep, assertValidVerificationStepName, carrierConsentValueValidator, closeTabRef, collectDeviceProfile, conversion, convertByTrackingId, convertByVerificationId, customValidatorExists$1 as customValidatorExists, deepClone, deepMerge, displaySSN, employmentPInfoReqEmpty, ensureMaxMetadataKeyValueLengths, ensureTrailingSlash, fetchExistingVerificationRequest, fetchProgramOrganizations, fetchRequestOrganizations, formatTwoDigitValues, getAddSchoolRequestUrl, getAllEmptyViewModels, getAvailableCountryChoices, getAvailableLocaleChoices, getAvailableLocales, getAvailableMilitaryStatuses, getAvailableStateChoices, getCompanyName, getConfiguredCountries, getConfiguredStates, getCustomValidator, getCustomValidatorFields, getDefaultCountryChoice, getDomainFromUrl, getEmptyViewModel, getEstAndMaxReviewTimes, getEstimatedReviewTime, getExtendedFieldValidationErrorsEmpty, getFaqLink, getFieldDisplayOrderFromRefs, getFieldValidationErrors, getFieldValidationErrorsEmpty, getFingerprint, getFirstErroredFieldId, getHook, getLocaleSafely, getLogoUrl, getMarketConsent, getMaxReviewTime, getMessages, getMetadata, getNewEmailCodeResendUrl, getNewSmsCodeResendUrl, getNewVerificationRequestUrl, getOptions, getOrgSearchCountryTags, getOverriddenMock, getOverridenValidator, getPhoneNumberValidationError, getPrivacyPolicyCompanyName, getPrivacyPolicyUrl, getProgramThemeUrl, getQueryParamsFromUrl, getRefByFieldId, getRefs, getRouteOverride, getSafe, getSheerIdScriptBasePath, getStatusLabel, getTabRef, getTrackingIdFromQueryString, getVerificationIdFromQueryString, getVerificationStatusUrl, handleCountryOnKeyDown, handleEmailOnKeyDown, handleStateChange, hasFailedInstantMatch, howDoesVerifyingWorkMessages, isFormErrored, isFormFilled, isTestEmailDomains, isValidLocale, isValidUsPostalCode, listenToSheerIdFrame, loadInModal, loadInlineIframe, logger, orgToOption, orgsInStatus, overrideComponent, overrideValidator, phoneNumberValidator, populateViewModelFromQueryParams, postVerificationSizeUpdates, postalCodeMatchers, postalCodeValidator, produceDraftViewModel, produceDraftViewModelWithRequiredFields, recordEvent, recordVerificationResponse, recordViewModelChange, refreshStore, registerAdditionalLocales, removeAllFiles, removeCustomValidator, removeFile, requestOrganizationConstants, resetCustomValidators, resetHooks, resetMetadata, resetOptions, resetOverriddenComponents, resetOverriddenValidators, resetRefs, resetStore, resetTabRef, resetViewModel, resolveTrackingId, setCustomValidator, setDimension, setFocus, setGaDimensionIsTest, setMetadata, setOptions, setRef, setTabRef, setViewModel, shouldCollectAddressFields, shouldCollectPostalCode, socialSecurityEmpty, speakToOuterFrame, submitAddSchoolRequest, submitForm, unDisplaySSN, updateFieldValidationErrors, updateFieldValidationErrorsByFieldId, updateMilitaryViewModel, updateViewModelOrganization, usePollingInterval, validateFieldById, validateMetadata };
|
|
23777
|
+
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, SubSegmentEnum, TeacherSchoolComponent, TryAgainButtonComponent, TryAgainSteps, TypeaheadComponent, UPLOAD_FILE_PREFIX, UploadInfoComponent, VerificationApiClient, VerificationForm, VerificationSteps, VerificationStepsEnum, addFiles, addHook, allMockedResponses, arrayUnique, assertValidConversionRequest, assertValidDatabaseId, assertValidFieldId, assertValidFunction, assertValidHook, assertValidHookName, assertValidHtmlElement, assertValidLocale, assertValidMockStepName, assertValidProgramId, assertValidSegmentName, assertValidTrackingId, assertValidTryAgainStep, assertValidVerificationStepName, carrierConsentValueValidator, closeTabRef, collectDeviceProfile, conversion, convertByTrackingId, convertByVerificationId, customValidatorExists$1 as customValidatorExists, deepClone, deepMerge, displaySSN, employmentPInfoReqEmpty, ensureMaxMetadataKeyValueLengths, ensureTrailingSlash, fetchExistingVerificationRequest, fetchProgramOrganizations, fetchRequestOrganizations, formatTwoDigitValues, getAddSchoolRequestUrl, getAllEmptyViewModels, getAvailableCountryChoices, getAvailableLocaleChoices, getAvailableLocales, getAvailableMilitaryStatuses, getAvailableStateChoices, getCompanyName, getConfiguredCountries, getConfiguredStates, getCustomValidator, getCustomValidatorFields, getDefaultCountryChoice, getDomainFromUrl, getEmptyViewModel, getEstAndMaxReviewTimes, getEstimatedReviewTime, getExtendedFieldValidationErrorsEmpty, getFaqLink, getFieldDisplayOrderFromRefs, getFieldValidationErrors, getFieldValidationErrorsEmpty, getFingerprint, getFirstErroredFieldId, getHook, getLocaleSafely, getLogoUrl, getMarketConsent, getMaxReviewTime, getMessages, getMetadata, getNewEmailCodeResendUrl, getNewSmsCodeResendUrl, getNewVerificationRequestUrl, getOptions, getOrgSearchCountryTags, getOverriddenMock, getOverridenValidator, getPhoneNumberValidationError, getPrivacyPolicyCompanyName, getPrivacyPolicyUrl, getProgramThemeUrl, getQueryParamsFromUrl, getRefByFieldId, getRefs, getRouteOverride, getSafe, getSheerIdScriptBasePath, getStatusLabel, getTabRef, getTrackingIdFromQueryString, getVerificationIdFromQueryString, getVerificationStatusUrl, handleCountryOnKeyDown, handleEmailOnKeyDown, handleStateChange, hasFailedInstantMatch, howDoesVerifyingWorkMessages, isFormErrored, isFormFilled, isTestEmailDomains, isValidLocale, isValidUsPostalCode, listenToSheerIdFrame, loadInModal, loadInlineIframe, logger, orgToOption, orgsInStatus, overrideComponent, overrideValidator, phoneNumberValidator, populateViewModelFromQueryParams, postVerificationSizeUpdates, postalCodeMatchers, postalCodeValidator, produceDraftViewModel, produceDraftViewModelWithRequiredFields, recordEvent, recordVerificationResponse, recordViewModelChange, refreshStore, registerAdditionalLocales, removeAllFiles, removeCustomValidator, removeFile, requestOrganizationConstants, resetCustomValidators, resetHooks, resetMetadata, resetOptions, resetOverriddenComponents, resetOverriddenValidators, resetRefs, resetStore, resetTabRef, resetViewModel, resolveTrackingId, setCustomValidator, setDimension, setFocus, setGaDimensionIsTest, setMetadata, setOptions, setRef, setTabRef, setViewModel, shouldCollectAddressFields, shouldCollectPostalCode, socialSecurityEmpty, speakToOuterFrame, submitAddSchoolRequest, submitForm, unDisplaySSN, updateFieldValidationErrors, updateFieldValidationErrorsByFieldId, updateMilitaryViewModel, updateViewModelOrganization, usePollingInterval, validateFieldById, validateMetadata };
|
|
23710
23778
|
//# sourceMappingURL=sheerides6.js.map
|