@sheerid/jslib 1.106.0 → 1.107.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 +104 -0
- package/__tests__/__helpers__/renderers.d.ts +7 -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/manifest.json +46 -46
- package/package.json +1 -1
- package/sheerid-requestOrg.css +4 -4
- package/sheerid-requestOrg.js +15 -15
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +9 -9
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +18 -18
- package/sheerid.js.map +1 -1
- package/sheerides6.js +124 -57
- package/sheerides6.js.map +1 -1
- package/src/components/FieldLabel.d.ts +2 -2
- package/src/components/FormFields/Address/AddressComponent.d.ts +3 -7
- package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
- package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +1 -1
- package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +1 -1
- package/src/components/FormFields/City/City.d.ts +2 -2
- package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +1 -1
- package/src/components/FormFields/Company/CompanyComponent.d.ts +1 -1
- package/src/components/FormFields/Country/CountryComponent.d.ts +1 -1
- package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
- package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +1 -1
- package/src/components/FormFields/Email/EmailComponent.d.ts +1 -1
- package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +1 -1
- package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +1 -1
- package/src/components/FormFields/FirstResponderStatus/FirstResponderStatusComponent.d.ts +1 -1
- package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +18 -0
- package/src/components/FormFields/FormFieldCustom/FormFieldCustom.test.d.ts +1 -0
- package/src/components/FormFields/FormFieldLayout/FormFieldLayout.d.ts +14 -0
- package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +17 -0
- package/src/components/FormFields/FormFieldText/FormFieldText.test.d.ts +1 -0
- package/src/components/FormFields/LastName/LastNameComponent.d.ts +1 -1
- package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +1 -1
- package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +1 -1
- package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +1 -1
- package/src/components/FormFields/MedicalStatus/MedicalStatusComponent.d.ts +1 -1
- package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +1 -1
- package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +1 -1
- package/src/components/FormFields/MilitaryStatus/MilitaryStatusComponent.d.ts +1 -1
- package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +1 -1
- package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +1 -1
- package/src/components/FormFields/SSN/SSN.d.ts +1 -1
- package/src/components/FormFields/State/State.d.ts +1 -1
- package/src/components/FormFields/State/StateSelectComponent.d.ts +1 -1
- package/src/components/FormFields/Status/StatusComponent.d.ts +1 -1
- package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +1 -1
- package/src/components/FormInputs/InputText/InputText.d.ts +3 -19
- package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +0 -1
- package/src/components/StepMilitaryPersonalInfo/StepCollectMilitaryStatusComponent.d.ts +1 -1
- package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
- package/src/es6.d.ts +3 -0
- package/src/lib/installScript/modal.d.ts +3 -3
- package/src/lib/types/types.d.ts +9 -1
- package/src/lib/utils/strings.d.ts +1 -0
- package/src/lib/utils/strings.test.d.ts +1 -0
- package/types-reference.zip +0 -0
package/sheerides6.js
CHANGED
|
@@ -1190,6 +1190,7 @@ const defaultOptions = {
|
|
|
1190
1190
|
httpRequestTimeout: HTTP_REQUEST_TIMEOUT,
|
|
1191
1191
|
hideTestModeFlag: false,
|
|
1192
1192
|
hideMilitaryFamilyAcceptableUploads: true,
|
|
1193
|
+
customFormFields: [],
|
|
1193
1194
|
};
|
|
1194
1195
|
let options$1 = { ...defaultOptions };
|
|
1195
1196
|
const getOptions = () => options$1;
|
|
@@ -1358,6 +1359,10 @@ const setOptions = (newOptions) => {
|
|
|
1358
1359
|
options$1.hideMilitaryFamilyAcceptableUploads = newOptions.hideMilitaryFamilyAcceptableUploads;
|
|
1359
1360
|
logger.info('option "hideMilitaryFamilyAcceptableUploads" set to', options$1.hideMilitaryFamilyAcceptableUploads);
|
|
1360
1361
|
}
|
|
1362
|
+
if (newOptions.hasOwnProperty("customFormFields")) {
|
|
1363
|
+
options$1.customFormFields = newOptions.customFormFields;
|
|
1364
|
+
logger.info('option "customFormFields" set to', options$1.customFormFields);
|
|
1365
|
+
}
|
|
1361
1366
|
};
|
|
1362
1367
|
|
|
1363
1368
|
class ResponseTimeLogger {
|
|
@@ -4217,6 +4222,24 @@ const getFieldValidationErrors = (viewModel, formValidationOptions) => {
|
|
|
4217
4222
|
fieldValidationErrors[fieldId] = validateFieldById(fieldId, fieldValue, formValidationOptions);
|
|
4218
4223
|
}
|
|
4219
4224
|
}
|
|
4225
|
+
const { customFormFields } = getOptions();
|
|
4226
|
+
if (customFormFields) {
|
|
4227
|
+
customFormFields.forEach((customField) => {
|
|
4228
|
+
let errorId;
|
|
4229
|
+
try {
|
|
4230
|
+
errorId = customField.validate(viewModel.metadata[customField.fieldId]);
|
|
4231
|
+
}
|
|
4232
|
+
catch (e) {
|
|
4233
|
+
logger.warn(`Error validating custom field ${customField.fieldId}`, e);
|
|
4234
|
+
}
|
|
4235
|
+
if (errorId) {
|
|
4236
|
+
fieldValidationErrors[customField.fieldId] = errorId;
|
|
4237
|
+
}
|
|
4238
|
+
else {
|
|
4239
|
+
delete fieldValidationErrors[customField.fieldId];
|
|
4240
|
+
}
|
|
4241
|
+
});
|
|
4242
|
+
}
|
|
4220
4243
|
return fieldValidationErrors;
|
|
4221
4244
|
};
|
|
4222
4245
|
const isFormFilled = (viewModel, formValidationOptions) => {
|
|
@@ -4959,18 +4982,7 @@ const produceDraftViewModel = (previousModel, key, value) => fn(previousModel, (
|
|
|
4959
4982
|
draft[key] = value;
|
|
4960
4983
|
});
|
|
4961
4984
|
|
|
4962
|
-
const
|
|
4963
|
-
React.createElement("div", { id: id, className: `sid-field__label sid-l-space-btm-sm ${displayClasses}` },
|
|
4964
|
-
React.createElement("span", { className: "sid-field__label-name", "aria-hidden": "true" },
|
|
4965
|
-
text,
|
|
4966
|
-
isRequired && (React.createElement("span", { "aria-hidden": "true", className: "sid-field__label--required" }, "*"))),
|
|
4967
|
-
children && React.createElement("div", { className: "sid-field__label-explanation" }, children))));
|
|
4968
|
-
FieldLabel.defaultProps = {
|
|
4969
|
-
id: "",
|
|
4970
|
-
displayClasses: "",
|
|
4971
|
-
isRequired: true,
|
|
4972
|
-
children: null,
|
|
4973
|
-
};
|
|
4985
|
+
const dashed = (camel) => camel.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
|
|
4974
4986
|
|
|
4975
4987
|
const InputText = ({ id, isErrored, className = undefined, hidePlaceholder = true, refId, required = false, type = "text", ariaDescribedBy, ariaLabel, ...props // forward any remaining props to the input
|
|
4976
4988
|
}) => {
|
|
@@ -4987,25 +4999,53 @@ const InputText = ({ id, isErrored, className = undefined, hidePlaceholder = tru
|
|
|
4987
4999
|
const finalRefId = refId || id;
|
|
4988
5000
|
return (React.createElement("input", Object.assign({ className: internalClassName, id: `sid-${id}`, name: `sid-${id}`, type: type, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-required": required, "aria-invalid": isErrored, ref: (input) => setRef(finalRefId, input) }, props)));
|
|
4989
5001
|
};
|
|
4990
|
-
//
|
|
4991
|
-
const InputTextComponent =
|
|
5002
|
+
// DO NOT INJECT INTL. Localize your strings pass them down as props
|
|
5003
|
+
const InputTextComponent = InputText;
|
|
4992
5004
|
|
|
4993
|
-
const
|
|
4994
|
-
React.createElement("div", { className:
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5005
|
+
const FieldLabel = ({ text, htmlForLabel, id, displayClasses, isRequired, children, }) => (React.createElement("label", { htmlFor: htmlForLabel },
|
|
5006
|
+
React.createElement("div", { id: id, className: `sid-field__label sid-l-space-btm-sm ${displayClasses}` },
|
|
5007
|
+
React.createElement("span", { className: "sid-field__label-name", "aria-hidden": "true" },
|
|
5008
|
+
text,
|
|
5009
|
+
isRequired && (React.createElement("span", { "aria-hidden": "true", className: "sid-field__label--required" }, "*"))),
|
|
5010
|
+
children && React.createElement("div", { className: "sid-field__label-explanation" }, children))));
|
|
5011
|
+
FieldLabel.defaultProps = {
|
|
5012
|
+
id: "",
|
|
5013
|
+
displayClasses: "",
|
|
5014
|
+
isRequired: true,
|
|
5015
|
+
children: null,
|
|
5016
|
+
};
|
|
5017
|
+
|
|
5018
|
+
/**
|
|
5019
|
+
* In the JSLIB, a FormField has a label, inline error message, and children like a text input
|
|
5020
|
+
* This component provides consistent structure, classnames and some accessibility considerations for all FormFields
|
|
5021
|
+
*/
|
|
5022
|
+
const FormFieldLayout = ({ fieldId, label, errorMessage, isRequired, showPlaceholderAndHideLabel = false, children, }) => {
|
|
5023
|
+
const labelIntlId = `${fieldId}Label`;
|
|
5024
|
+
const labelHtmlId = `sid-${dashed(labelIntlId)}`;
|
|
5025
|
+
return (React.createElement("div", { className: `sid-field sid-${dashed(fieldId)}` },
|
|
5026
|
+
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
5027
|
+
React.createElement(FieldLabel, { text: label, isRequired: isRequired, htmlForLabel: `sid-${dashed(fieldId)}`, id: labelHtmlId, displayClasses: showPlaceholderAndHideLabel ? "sid-h-screen-reader-only" : "" }),
|
|
5028
|
+
children,
|
|
5029
|
+
errorMessage && React.createElement("div", { className: "sid-field-error" }, errorMessage)));
|
|
5030
|
+
};
|
|
5031
|
+
|
|
5032
|
+
/**
|
|
5033
|
+
* Generic text field component.
|
|
5034
|
+
* In the JSLIB, a field has a label, inline error message, and an input of some kind.
|
|
5035
|
+
*/
|
|
5036
|
+
const FormFieldText = ({ fieldId, value, onChange, placeholder, label, errorMessage, showPlaceholderAndHideLabel = false, required = true, ...inputTextProps }) => {
|
|
5037
|
+
const labelIntlId = `${fieldId}Label`;
|
|
5038
|
+
const labelHtmlId = `sid-${dashed(labelIntlId)}`;
|
|
5039
|
+
return (React.createElement(FormFieldLayout, { fieldId: fieldId, label: label, errorMessage: errorMessage, showPlaceholderAndHideLabel: showPlaceholderAndHideLabel, isRequired: required },
|
|
5040
|
+
React.createElement(InputTextComponent, Object.assign({ id: dashed(fieldId), value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, hidePlaceholder: !showPlaceholderAndHideLabel, "aria-labelledby": labelHtmlId, refId: fieldId, isErrored: !!errorMessage, required: required }, inputTextProps))));
|
|
5041
|
+
};
|
|
5042
|
+
|
|
5043
|
+
const FirstName = ({ value, isErrored, onChange, intl, placeholder = "", }) => (React.createElement(FormFieldText, { fieldId: "firstName", value: value, onChange: onChange, placeholder: placeholder ||
|
|
5044
|
+
intl.formatHTMLMessage({ id: "firstNamePlaceholder", defaultMessage: "First Name" }), label: React.createElement(FormattedHTMLMessage, { id: "firstName", defaultMessage: "First name" }), errorMessage: isErrored && (React.createElement(FormattedHTMLMessage, { id: "errorId.invalidFirstName", defaultMessage: "Invalid first name" })), showPlaceholderAndHideLabel: !!placeholder }));
|
|
5000
5045
|
const FirstNameComponent = injectIntl(FirstName);
|
|
5001
5046
|
|
|
5002
|
-
const LastName = ({ value, isErrored, onChange, intl, placeholder = "", }) => (React.createElement(
|
|
5003
|
-
|
|
5004
|
-
React.createElement(FieldLabel, { text: React.createElement(FormattedHTMLMessage, { id: "lastName", defaultMessage: "Last name" }), htmlForLabel: "sid-last-name", id: "sid-last-name-label", displayClasses: placeholder && "sid-h-screen-reader-only" }),
|
|
5005
|
-
React.createElement(InputTextComponent, { id: "last-name", isErrored: isErrored, onChange: (event) => onChange(event.target.value), placeholder: placeholder ||
|
|
5006
|
-
intl.formatHTMLMessage({ id: "lastNamePlaceholder", defaultMessage: "Last Name" }), refId: "lastName", value: value, required: true, "aria-labelledby": "sid-last-name-label" }),
|
|
5007
|
-
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
5008
|
-
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidLastName", defaultMessage: "Invalid last name" }))) : null));
|
|
5047
|
+
const LastName = ({ value, isErrored, onChange, intl, placeholder = "", }) => (React.createElement(FormFieldText, { fieldId: "lastName", value: value, onChange: onChange, placeholder: placeholder ||
|
|
5048
|
+
intl.formatHTMLMessage({ id: "lastNamePlaceholder", defaultMessage: "Last Name" }), label: React.createElement(FormattedHTMLMessage, { id: "lastName", defaultMessage: "Last name" }), errorMessage: isErrored && (React.createElement(FormattedHTMLMessage, { id: "errorId.invalidLastName", defaultMessage: "Invalid last name" })), showPlaceholderAndHideLabel: !!placeholder }));
|
|
5009
5049
|
const LastNameComponent = injectIntl(LastName);
|
|
5010
5050
|
|
|
5011
5051
|
const Email = ({ value, isErrored, onChange, explanation, intl, onKeyDown = undefined, placeholder = "", }) => (React.createElement("div", { className: "sid-field sid-email" },
|
|
@@ -18487,6 +18527,33 @@ const RewardsRemainingComponent = ({ verificationService, }) => {
|
|
|
18487
18527
|
return null;
|
|
18488
18528
|
};
|
|
18489
18529
|
|
|
18530
|
+
/**
|
|
18531
|
+
* Custom form field component.
|
|
18532
|
+
* Implementors can render a form field passing in config using setOptions, rather than
|
|
18533
|
+
* having to create an entire React project and override component(s).
|
|
18534
|
+
*/
|
|
18535
|
+
const FormFieldCustom = injectIntl(({ config, verificationService, intl }) => {
|
|
18536
|
+
const currentValue = getSafe(() => verificationService.viewModel.metadata[config.fieldId]) || "";
|
|
18537
|
+
const errorId = getSafe(() => verificationService.fieldValidationErrors[config.fieldId]);
|
|
18538
|
+
const onChange = (value) => {
|
|
18539
|
+
verificationService.updateViewModel(fn(verificationService.viewModel, (draft) => {
|
|
18540
|
+
draft.metadata = draft.metadata || {};
|
|
18541
|
+
draft.metadata[config.fieldId] = value;
|
|
18542
|
+
}));
|
|
18543
|
+
verificationService.updateFieldValidationErrors(fn(verificationService.fieldValidationErrors, (draft) => {
|
|
18544
|
+
const errorId = config.validate(value);
|
|
18545
|
+
if (errorId === undefined) {
|
|
18546
|
+
delete draft[config.fieldId];
|
|
18547
|
+
}
|
|
18548
|
+
// Don't set error. Only do that when submit is clicked, same as jslib's built-in fields
|
|
18549
|
+
}));
|
|
18550
|
+
};
|
|
18551
|
+
return (React.createElement(FormFieldText, { fieldId: config.fieldId, value: `${currentValue}`, onChange: onChange, placeholder: intl.formatHTMLMessage({
|
|
18552
|
+
id: `${config.fieldId}Placeholder`,
|
|
18553
|
+
defaultMessage: config.fieldId,
|
|
18554
|
+
}), 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 }));
|
|
18555
|
+
});
|
|
18556
|
+
|
|
18490
18557
|
/**
|
|
18491
18558
|
* TODO - preamble
|
|
18492
18559
|
*/
|
|
@@ -18557,6 +18624,7 @@ const StepStudentPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18557
18624
|
updateStudentViewModel("phoneNumber", newValue);
|
|
18558
18625
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
18559
18626
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
18627
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
18560
18628
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
18561
18629
|
updateStudentViewModel("metadata", {
|
|
18562
18630
|
...verificationService.viewModel.metadata,
|
|
@@ -18645,6 +18713,7 @@ const StepSeniorPersonalInfo = ({ verificationService }) => {
|
|
|
18645
18713
|
updateSeniorViewModel("phoneNumber", newValue);
|
|
18646
18714
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
18647
18715
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
18716
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
18648
18717
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
18649
18718
|
updateSeniorViewModel("metadata", {
|
|
18650
18719
|
...verificationService.viewModel.metadata,
|
|
@@ -18682,21 +18751,10 @@ const carrierConsentValueValidator = (countryChoiceValue) => (value, programThem
|
|
|
18682
18751
|
}
|
|
18683
18752
|
};
|
|
18684
18753
|
|
|
18685
|
-
const City = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = "", }) => (React.createElement("
|
|
18686
|
-
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
18687
|
-
React.createElement(FieldLabel, { text: React.createElement(FormattedHTMLMessage, { id: "city", defaultMessage: "City" }), htmlForLabel: "sid-city", id: "sid-city-label", displayClasses: placeholder && "sid-h-screen-reader-only" }),
|
|
18688
|
-
React.createElement(InputTextComponent, { id: "city", isErrored: isErrored, onChange: (e) => onChange(e.target.value), onKeyDown: typeof onKeyDown === "function" ? (e) => onKeyDown(e) : undefined, placeholder: placeholder || intl.formatHTMLMessage({ id: "cityPlaceholder", defaultMessage: "City" }), value: value, "aria-labelledby": "sid-city-label" }),
|
|
18689
|
-
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
18690
|
-
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidCity", defaultMessage: "Invalid city" }))) : null));
|
|
18754
|
+
const City = ({ value, isErrored, onChange, intl, isRequired = false, onKeyDown = undefined, placeholder = "", }) => (React.createElement(FormFieldText, { fieldId: "city", value: value, onChange: onChange, placeholder: placeholder || intl.formatHTMLMessage({ id: "cityPlaceholder", defaultMessage: "City" }), label: React.createElement(FormattedHTMLMessage, { id: "city", defaultMessage: "City" }), errorMessage: isErrored && React.createElement(FormattedHTMLMessage, { id: "errorId.invalidCity", defaultMessage: "Invalid city" }), showPlaceholderAndHideLabel: !!placeholder, required: isRequired, onKeyDown: typeof onKeyDown === "function" ? (e) => onKeyDown(e) : undefined }));
|
|
18691
18755
|
const CityComponent = injectIntl(City);
|
|
18692
18756
|
|
|
18693
|
-
const Address = ({ value, isErrored, onChange, intl, onKeyDown = undefined, placeholder = "", }) => (React.createElement("
|
|
18694
|
-
React.createElement("div", { className: "sid-l-space-top-md" }),
|
|
18695
|
-
React.createElement(FieldLabel, { text: React.createElement(FormattedHTMLMessage, { id: "address", defaultMessage: "Address" }), htmlForLabel: "sid-address", id: "sid-address-label", displayClasses: placeholder && "sid-h-screen-reader-only" }),
|
|
18696
|
-
React.createElement(InputTextComponent, { id: "address", isErrored: isErrored, onChange: (e) => onChange(e.target.value), onKeyDown: typeof onKeyDown === "function" ? (e) => onKeyDown(e) : undefined, placeholder: placeholder ||
|
|
18697
|
-
intl.formatHTMLMessage({ id: "addressPlaceholder", defaultMessage: "Address" }), value: value, "aria-labelledby": "sid-address-label" }),
|
|
18698
|
-
isErrored ? (React.createElement("div", { className: "sid-field-error" },
|
|
18699
|
-
React.createElement(FormattedHTMLMessage, { id: "errorId.invalidAddress", defaultMessage: "Invalid address" }))) : null));
|
|
18757
|
+
const Address = ({ value, isErrored, onChange, intl, isRequired = false, onKeyDown = undefined, placeholder = "", }) => (React.createElement(FormFieldText, { fieldId: "address", value: value, onChange: onChange, placeholder: placeholder || intl.formatHTMLMessage({ id: "addressPlaceholder", defaultMessage: "Address" }), label: React.createElement(FormattedHTMLMessage, { id: "address", defaultMessage: "Address" }), errorMessage: isErrored && (React.createElement(FormattedHTMLMessage, { id: "errorId.invalidAddress", defaultMessage: "Invalid address" })), showPlaceholderAndHideLabel: !!placeholder, required: isRequired, onKeyDown: typeof onKeyDown === "function" ? (e) => onKeyDown(e) : undefined }));
|
|
18700
18758
|
const AddressComponent = injectIntl(Address);
|
|
18701
18759
|
|
|
18702
18760
|
/**
|
|
@@ -18817,6 +18875,7 @@ const StepAgePersonalInfo = ({ verificationService, intl }) => {
|
|
|
18817
18875
|
updateAgeViewModel("phoneNumber", value);
|
|
18818
18876
|
updateFieldValidationErrorsByFieldId("phoneNumber", value, verificationService);
|
|
18819
18877
|
}, errorId: fieldValidationErrors.phoneNumber, requireCarrierConsent: verificationService.programTheme.smsLoopEnabled || safeCountryValue !== "US", onCarrierConsentChange: onCarrierConsentChange, carrierConsent: Boolean(viewModel.metadata && viewModel.metadata.carrierConsentValue), selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })),
|
|
18878
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
18820
18879
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
18821
18880
|
updateAgeViewModel("metadata", {
|
|
18822
18881
|
...verificationService.viewModel.metadata,
|
|
@@ -18943,6 +19002,7 @@ const StepTeacherPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
18943
19002
|
updateTeacherViewModel("postalCode", newValue);
|
|
18944
19003
|
updateFieldValidationErrorsByFieldId("postalCode", newValue, verificationService);
|
|
18945
19004
|
}, value: viewModel.postalCode })) : null,
|
|
19005
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
18946
19006
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
18947
19007
|
updateTeacherViewModel("metadata", {
|
|
18948
19008
|
...verificationService.viewModel.metadata,
|
|
@@ -18989,7 +19049,6 @@ const MembershipOrganizationComponent = injectIntl(MembershipOrganization);
|
|
|
18989
19049
|
|
|
18990
19050
|
/**
|
|
18991
19051
|
* Step Member Personal Info Component
|
|
18992
|
-
* TODO - We need to import more from es6
|
|
18993
19052
|
*/
|
|
18994
19053
|
const StepMemberPersonalInfo = ({ intl, verificationService, }) => {
|
|
18995
19054
|
const viewModel = verificationService.viewModel;
|
|
@@ -19062,6 +19121,7 @@ const StepMemberPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19062
19121
|
updateMemberViewModel("phoneNumber", newValue);
|
|
19063
19122
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
19064
19123
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
19124
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
19065
19125
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
19066
19126
|
updateMemberViewModel("metadata", {
|
|
19067
19127
|
...verificationService.viewModel.metadata,
|
|
@@ -19261,6 +19321,7 @@ const StepActiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19261
19321
|
updateActiveMilitaryViewModel("phoneNumber", newValue);
|
|
19262
19322
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
19263
19323
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
19324
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
19264
19325
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
19265
19326
|
updateActiveMilitaryViewModel("metadata", {
|
|
19266
19327
|
...verificationService.viewModel.metadata,
|
|
@@ -19519,6 +19580,7 @@ const StepInactiveMilitaryPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19519
19580
|
updateInactiveMilitaryViewModel("socialSecurityNumber", value);
|
|
19520
19581
|
updateFieldValidationErrorsByFieldId("socialSecurityNumber", value, verificationService);
|
|
19521
19582
|
}, isRequired: false, isErrored: !!fieldValidationErrors[FieldIdEnum.socialSecurityNumber], placeholder: "000-00-0000", label: React.createElement(FormattedHTMLMessage, { id: "ssn", defaultMessage: "Social Security Number" }), explanation: React.createElement(FormattedHTMLMessage, { id: "optional", defaultMessage: "Optional" }) }),
|
|
19583
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
19522
19584
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
19523
19585
|
updateInactiveMilitaryViewModel("metadata", {
|
|
19524
19586
|
...verificationService.viewModel.metadata,
|
|
@@ -19651,6 +19713,7 @@ const StepFirstResponderPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
19651
19713
|
updateFirstResponderViewModel("postalCode", newValue);
|
|
19652
19714
|
updateFieldValidationErrorsByFieldId("postalCode", newValue, verificationService);
|
|
19653
19715
|
}, value: viewModel.postalCode })) : null,
|
|
19716
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
19654
19717
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
19655
19718
|
updateFirstResponderViewModel("metadata", {
|
|
19656
19719
|
...verificationService.viewModel.metadata,
|
|
@@ -19808,6 +19871,7 @@ const StepMedicalProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
19808
19871
|
updateMedicalProfessionalViewModel("memberId", newValue);
|
|
19809
19872
|
updateFieldValidationErrorsByFieldId("memberId", newValue, verificationService);
|
|
19810
19873
|
}, explanation: memberIdMessageKeys && (React.createElement(FormattedHTMLMessage, { id: memberIdMessageKeys.explanationKey, defaultMessage: "Your Professional Membership Registration Number" })), label: memberIdMessageKeys && (React.createElement(FormattedHTMLMessage, { id: memberIdMessageKeys.labelKey, defaultMessage: "Registration Number" })) })),
|
|
19874
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
19811
19875
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
19812
19876
|
updateMedicalProfessionalViewModel("metadata", {
|
|
19813
19877
|
...verificationService.viewModel.metadata,
|
|
@@ -19898,12 +19962,12 @@ const StepEmploymentPersonalInfo = ({ verificationService, }) => {
|
|
|
19898
19962
|
shouldCollectAddressFields(viewModel.countryChoice, verificationService.programTheme.config.countries) ? (React.createElement(AddressComponent, { isErrored: !!fieldValidationErrors.address1, errorId: fieldValidationErrors.address1, onChange: (newValue) => {
|
|
19899
19963
|
updateEmploymentViewModel("address1", newValue);
|
|
19900
19964
|
updateFieldValidationErrorsByFieldId("address1", newValue, verificationService);
|
|
19901
|
-
}, value: viewModel.address1 })) : null,
|
|
19965
|
+
}, isRequired: true, value: viewModel.address1 })) : null,
|
|
19902
19966
|
shouldCollectAddressFields(viewModel.countryChoice, verificationService.programTheme.config.countries) ? (React.createElement("div", { className: "sid-thirds" },
|
|
19903
19967
|
React.createElement(CityComponent, { isErrored: !!fieldValidationErrors.city, errorId: fieldValidationErrors.city, onChange: (newValue) => {
|
|
19904
19968
|
updateEmploymentViewModel("city", newValue);
|
|
19905
19969
|
updateFieldValidationErrorsByFieldId("city", newValue, verificationService);
|
|
19906
|
-
}, value: viewModel.city }),
|
|
19970
|
+
}, value: viewModel.city, isRequired: true }),
|
|
19907
19971
|
React.createElement(StateComponent, { isErrored: !!fieldValidationErrors.state, errorId: fieldValidationErrors.state, onChange: (newValue) => {
|
|
19908
19972
|
updateEmploymentViewModel("state", newValue);
|
|
19909
19973
|
updateFieldValidationErrorsByFieldId("state", newValue, verificationService);
|
|
@@ -19921,6 +19985,7 @@ const StepEmploymentPersonalInfo = ({ verificationService, }) => {
|
|
|
19921
19985
|
updateEmploymentViewModel("phoneNumber", newValue);
|
|
19922
19986
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
19923
19987
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
19988
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
19924
19989
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
19925
19990
|
updateEmploymentViewModel("metadata", {
|
|
19926
19991
|
...verificationService.viewModel.metadata,
|
|
@@ -20038,6 +20103,7 @@ const StepDriverLicensePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20038
20103
|
updateIdentityViewModel("driverLicenseNumber", newValue);
|
|
20039
20104
|
updateFieldValidationErrorsByFieldId("driverLicenseNumber", newValue, verificationService);
|
|
20040
20105
|
} }),
|
|
20106
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
20041
20107
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
20042
20108
|
updateIdentityViewModel("metadata", {
|
|
20043
20109
|
...verificationService.viewModel.metadata,
|
|
@@ -20113,12 +20179,12 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20113
20179
|
React.createElement(AddressComponent, { isErrored: !!fieldValidationErrors.address1, errorId: fieldValidationErrors.address1, onChange: (newValue) => {
|
|
20114
20180
|
updateIdentityViewModel("address1", newValue);
|
|
20115
20181
|
updateFieldValidationErrorsByFieldId("address1", newValue, verificationService);
|
|
20116
|
-
}, value: viewModel.address1 }),
|
|
20182
|
+
}, value: viewModel.address1, isRequired: true }),
|
|
20117
20183
|
React.createElement("div", { className: "sid-thirds" },
|
|
20118
20184
|
React.createElement(CityComponent, { isErrored: !!fieldValidationErrors.city, errorId: fieldValidationErrors.city, onChange: (newValue) => {
|
|
20119
20185
|
updateIdentityViewModel("city", newValue);
|
|
20120
20186
|
updateFieldValidationErrorsByFieldId("city", newValue, verificationService);
|
|
20121
|
-
}, value: viewModel.city }),
|
|
20187
|
+
}, value: viewModel.city, isRequired: true }),
|
|
20122
20188
|
React.createElement(StateSelectComponent, { isRequired: true, options: getAvailableStateChoices(verificationService.programTheme, intl), value: viewModel.state || undefined, isErrored: Boolean(fieldValidationErrors.state), onChange: async (stateChoice) => {
|
|
20123
20189
|
const stateValue = stateChoice ? stateChoice.value : undefined;
|
|
20124
20190
|
updateIdentityViewModel("state", stateValue);
|
|
@@ -20127,7 +20193,8 @@ const StepGeneralIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20127
20193
|
React.createElement(PostalCodeComponent, { isErrored: !!fieldValidationErrors.postalCode, onChange: (newValue) => {
|
|
20128
20194
|
updateIdentityViewModel("postalCode", newValue);
|
|
20129
20195
|
updateFieldValidationErrorsByFieldId("postalCode", newValue, verificationService);
|
|
20130
|
-
}, value: viewModel.postalCode })),
|
|
20196
|
+
}, value: viewModel.postalCode, isRequired: true })),
|
|
20197
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
20131
20198
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
20132
20199
|
updateIdentityViewModel("metadata", {
|
|
20133
20200
|
...verificationService.viewModel.metadata,
|
|
@@ -20203,12 +20270,12 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20203
20270
|
React.createElement(AddressComponent, { isErrored: !!fieldValidationErrors.address1, errorId: fieldValidationErrors.address1, onChange: (newValue) => {
|
|
20204
20271
|
updateIdentityViewModel("address1", newValue);
|
|
20205
20272
|
updateFieldValidationErrorsByFieldId("address1", newValue, verificationService);
|
|
20206
|
-
}, value: viewModel.address1 }),
|
|
20273
|
+
}, value: viewModel.address1, isRequired: true }),
|
|
20207
20274
|
React.createElement("div", { className: "sid-thirds" },
|
|
20208
20275
|
React.createElement(CityComponent, { isErrored: !!fieldValidationErrors.city, errorId: fieldValidationErrors.city, onChange: (newValue) => {
|
|
20209
20276
|
updateIdentityViewModel("city", newValue);
|
|
20210
20277
|
updateFieldValidationErrorsByFieldId("city", newValue, verificationService);
|
|
20211
|
-
}, value: viewModel.city }),
|
|
20278
|
+
}, value: viewModel.city, isRequired: true }),
|
|
20212
20279
|
React.createElement(StateSelectComponent, { isRequired: true, options: getAvailableStateChoices(verificationService.programTheme, intl), value: viewModel.state || undefined, isErrored: Boolean(fieldValidationErrors.state), onChange: async (stateChoice) => {
|
|
20213
20280
|
const stateValue = stateChoice ? stateChoice.value : undefined;
|
|
20214
20281
|
updateIdentityViewModel("state", stateValue);
|
|
@@ -20222,6 +20289,7 @@ const StepHybridIdentityPersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20222
20289
|
updateIdentityViewModel("driverLicenseNumber", newValue);
|
|
20223
20290
|
updateFieldValidationErrorsByFieldId("driverLicenseNumber", newValue, verificationService);
|
|
20224
20291
|
} }),
|
|
20292
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
20225
20293
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
20226
20294
|
updateIdentityViewModel("metadata", {
|
|
20227
20295
|
...verificationService.viewModel.metadata,
|
|
@@ -20352,6 +20420,7 @@ const StepLicensedProfessionalPersonalInfo = ({ intl, verificationService, }) =>
|
|
|
20352
20420
|
updateLicensedProfessionalViewModel("phoneNumber", newValue);
|
|
20353
20421
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
20354
20422
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
20423
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
20355
20424
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
20356
20425
|
updateLicensedProfessionalViewModel("metadata", {
|
|
20357
20426
|
...verificationService.viewModel.metadata,
|
|
@@ -20413,7 +20482,7 @@ const StepMoverPersonalInfo = ({ verificationService }) => {
|
|
|
20413
20482
|
React.createElement(AddressComponent, { value: viewModel.address1, isErrored: !!fieldValidationErrors.address1, errorId: fieldValidationErrors.address1, onChange: (newValue) => {
|
|
20414
20483
|
updateMoverViewModel("address1", newValue);
|
|
20415
20484
|
updateFieldValidationErrorsByFieldId("address1", newValue, verificationService);
|
|
20416
|
-
} }),
|
|
20485
|
+
}, isRequired: true }),
|
|
20417
20486
|
React.createElement(PostalCodeComponent, { value: viewModel.postalCode, isErrored: !!fieldValidationErrors.postalCode, onChange: (newValue) => {
|
|
20418
20487
|
updateMoverViewModel("postalCode", newValue);
|
|
20419
20488
|
updateFieldValidationErrorsByFieldId("postalCode", newValue, verificationService);
|
|
@@ -20427,6 +20496,7 @@ const StepMoverPersonalInfo = ({ verificationService }) => {
|
|
|
20427
20496
|
updateMoverViewModel("phoneNumber", newValue);
|
|
20428
20497
|
updateFieldValidationErrorsByFieldId("phoneNumber", newValue, verificationService);
|
|
20429
20498
|
}, selectedCountryCode: viewModel.countryChoice && viewModel.countryChoice.value })) : null,
|
|
20499
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
20430
20500
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
20431
20501
|
updateMoverViewModel("metadata", {
|
|
20432
20502
|
...verificationService.viewModel.metadata,
|
|
@@ -20525,6 +20595,7 @@ const StepLowIncomePersonalInfo = ({ intl, verificationService, }) => {
|
|
|
20525
20595
|
updateLowIncomeViewModel("email", newValue);
|
|
20526
20596
|
updateFieldValidationErrorsByFieldId("email", newValue, verificationService);
|
|
20527
20597
|
}, onKeyDown: (event) => handleEmailOnKeyDown(event) }),
|
|
20598
|
+
getOptions().customFormFields.map((config) => (React.createElement(FormFieldCustom, { config: config, verificationService: verificationService }))),
|
|
20528
20599
|
React.createElement(MarketConsentWrapperComponent, { verificationService: verificationService, isErrored: !!fieldValidationErrors.marketConsentValue, onChange: (newValue) => {
|
|
20529
20600
|
updateLowIncomeViewModel("metadata", {
|
|
20530
20601
|
...verificationService.viewModel.metadata,
|
|
@@ -23407,7 +23478,7 @@ class Iframe {
|
|
|
23407
23478
|
|
|
23408
23479
|
class Modal {
|
|
23409
23480
|
constructor(url, userConfig) {
|
|
23410
|
-
this.popStateEventHandler = () => this.closeModal(
|
|
23481
|
+
this.popStateEventHandler = () => this.closeModal();
|
|
23411
23482
|
const thresholdConfig = userConfig.mobileThreshold
|
|
23412
23483
|
? userConfig.mobileThreshold
|
|
23413
23484
|
: iframeConstants.DEFAULT_MOBILE_THRESHOLD_WIDTH;
|
|
@@ -23444,14 +23515,11 @@ class Modal {
|
|
|
23444
23515
|
});
|
|
23445
23516
|
return this.closeButton;
|
|
23446
23517
|
}
|
|
23447
|
-
closeModal(
|
|
23518
|
+
closeModal() {
|
|
23448
23519
|
window.removeEventListener("popstate", this.popStateEventHandler);
|
|
23449
23520
|
const transitionTimeout = iframeConstants.MODAL_OPACITY_TRANSITION_PERIOD;
|
|
23450
23521
|
removeElement(this.overlay, transitionTimeout);
|
|
23451
23522
|
removeElement(this.wrapper, transitionTimeout);
|
|
23452
|
-
if (!historyEventTrigger) {
|
|
23453
|
-
window.history.back();
|
|
23454
|
-
}
|
|
23455
23523
|
}
|
|
23456
23524
|
static createOverlay() {
|
|
23457
23525
|
const overlay = document.createElement("div");
|
|
@@ -23504,7 +23572,6 @@ class Modal {
|
|
|
23504
23572
|
});
|
|
23505
23573
|
document.body.appendChild(this.overlay);
|
|
23506
23574
|
document.body.appendChild(this.wrapper);
|
|
23507
|
-
window.history.pushState({}, document.title);
|
|
23508
23575
|
this.addPopStateListener();
|
|
23509
23576
|
}
|
|
23510
23577
|
init() {
|
|
@@ -23563,5 +23630,5 @@ const collectDeviceProfile = async (verificationId, programId) => {
|
|
|
23563
23630
|
includeIPQSDeviceFingerprintScript(programTheme, verificationId);
|
|
23564
23631
|
};
|
|
23565
23632
|
|
|
23566
|
-
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, 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 };
|
|
23633
|
+
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 };
|
|
23567
23634
|
//# sourceMappingURL=sheerides6.js.map
|