@sheerid/jslib 2.249.0 → 2.250.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/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +893 -894
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-BlFms8RU.js → AddressComponent-CmVyKqXc.js} +10 -10
- package/chunk/{AddressComponent-BlFms8RU.js.map → AddressComponent-CmVyKqXc.js.map} +1 -1
- package/chunk/{AddressComponent-DnFQfTYR.js → AddressComponent-ZIF4nAg6.js} +10 -10
- package/chunk/{AddressComponent-DnFQfTYR.js.map → AddressComponent-ZIF4nAg6.js.map} +1 -1
- package/chunk/BirthDateComponent-CMfd5EBF.js +35 -0
- package/chunk/{BirthDateComponent-DBoGs0xO.js.map → BirthDateComponent-CMfd5EBF.js.map} +1 -1
- package/chunk/{BirthDateComponent-Dl0XGTEU.js → BirthDateComponent-qIJ6VyBN.js} +10 -6
- package/chunk/{BirthDateComponent-Dl0XGTEU.js.map → BirthDateComponent-qIJ6VyBN.js.map} +1 -1
- package/chunk/{CaptchaComponent-CpD7kabQ.js → CaptchaComponent-D9qU6ygz.js} +389 -351
- package/chunk/CaptchaComponent-D9qU6ygz.js.map +1 -0
- package/chunk/{CaptchaComponent-CX3VgnkO.js → CaptchaComponent-DtcFKhJ1.js} +416 -386
- package/chunk/CaptchaComponent-DtcFKhJ1.js.map +1 -0
- package/chunk/{ChangeLocaleComponent-CwUU2jUS.js → ChangeLocaleComponent-C506fsyP.js} +15 -15
- package/chunk/{ChangeLocaleComponent-CwUU2jUS.js.map → ChangeLocaleComponent-C506fsyP.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Db5V1sYM.js → ChangeLocaleComponent-D56onLa2.js} +12 -12
- package/chunk/{ChangeLocaleComponent-Db5V1sYM.js.map → ChangeLocaleComponent-D56onLa2.js.map} +1 -1
- package/chunk/{City-Dkthk9oJ.js → City-Ci2TwR7A.js} +10 -10
- package/chunk/{City-COH8oAI6.js.map → City-Ci2TwR7A.js.map} +1 -1
- package/chunk/{City-COH8oAI6.js → City-DcsZCOpS.js} +10 -10
- package/chunk/{City-Dkthk9oJ.js.map → City-DcsZCOpS.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CcQ9X9_B.js → CollegeNameComponent-BgqXaJxu.js} +12 -12
- package/chunk/{CollegeNameComponent-C-dy7DMD.js.map → CollegeNameComponent-BgqXaJxu.js.map} +1 -1
- package/chunk/{CollegeNameComponent-C-dy7DMD.js → CollegeNameComponent-CIzSgol6.js} +13 -13
- package/chunk/{CollegeNameComponent-CcQ9X9_B.js.map → CollegeNameComponent-CIzSgol6.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-DIjRs4qZ.js → CopyToClipboardComponent-BESIJEWv.js} +5 -5
- package/chunk/{CopyToClipboardComponent-DIjRs4qZ.js.map → CopyToClipboardComponent-BESIJEWv.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BkiBQWbH.js +4 -4
- package/chunk/CountryComponentWrapper-CASuw2te.js +70 -0
- package/chunk/{CountryComponentWrapper-BKmiop9j.js.map → CountryComponentWrapper-CASuw2te.js.map} +1 -1
- package/chunk/CountryComponentWrapper-hbHOWlgu.js +74 -0
- package/chunk/{CountryComponentWrapper-cR2hBUDi.js.map → CountryComponentWrapper-hbHOWlgu.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CRwKMsjW.js → DischargeDateComponent-C6MdcBJl.js} +31 -35
- package/chunk/{DischargeDateComponent-CRwKMsjW.js.map → DischargeDateComponent-C6MdcBJl.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DSOfwpfI.js → DischargeDateComponent-GAHaUq3j.js} +34 -30
- package/chunk/{DischargeDateComponent-DSOfwpfI.js.map → DischargeDateComponent-GAHaUq3j.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-akwgy_SO.js → DriverLicenseNumberComponent-Bcrs2J8F.js} +11 -11
- package/chunk/{DriverLicenseNumberComponent-BH6bl91g.js.map → DriverLicenseNumberComponent-Bcrs2J8F.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BH6bl91g.js → DriverLicenseNumberComponent-DRqO_tKm.js} +11 -11
- package/chunk/{DriverLicenseNumberComponent-akwgy_SO.js.map → DriverLicenseNumberComponent-DRqO_tKm.js.map} +1 -1
- package/chunk/{EmailLoopPending-BchQNg80.js → EmailLoopPending-C2nD34JV.js} +29 -29
- package/chunk/{EmailLoopPending-BchQNg80.js.map → EmailLoopPending-C2nD34JV.js.map} +1 -1
- package/chunk/{EmailLoopPending-D7XGFrxz.js → EmailLoopPending-tGJf2KO-.js} +21 -21
- package/chunk/{EmailLoopPending-D7XGFrxz.js.map → EmailLoopPending-tGJf2KO-.js.map} +1 -1
- package/chunk/{ExtraMessage-BNODbSi-.js → ExtraMessage-BF7WCgKF.js} +5 -5
- package/chunk/{ExtraMessage-BNODbSi-.js.map → ExtraMessage-BF7WCgKF.js.map} +1 -1
- package/chunk/ExtraMessage-BKREmfl_.js +18 -0
- package/chunk/{ExtraMessage-D78-mbs6.js.map → ExtraMessage-BKREmfl_.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BEvHXfgc.js → FirstResponderOrganizationComponent-CDUd_3wQ.js} +11 -11
- package/chunk/{FirstResponderOrganizationComponent-BEvHXfgc.js.map → FirstResponderOrganizationComponent-CDUd_3wQ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BLNdDDOa.js → FirstResponderOrganizationComponent-DjVlz-RC.js} +10 -10
- package/chunk/{FirstResponderOrganizationComponent-BLNdDDOa.js.map → FirstResponderOrganizationComponent-DjVlz-RC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-B8lVVG8B.js → FormFieldInputSelect-B9m2vcvX.js} +7 -7
- package/chunk/{FormFieldInputSelect-B8lVVG8B.js.map → FormFieldInputSelect-B9m2vcvX.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C8O7C4IK.js → FormFieldInputSelect-d_7zlfAb.js} +7 -7
- package/chunk/{FormFieldInputSelect-C8O7C4IK.js.map → FormFieldInputSelect-d_7zlfAb.js.map} +1 -1
- package/chunk/{FormFieldLayout-ZhDGr6rb.js → FormFieldLayout-26v_1nBx.js} +5 -5
- package/chunk/{FormFieldLayout-yzfzLAfZ.js.map → FormFieldLayout-26v_1nBx.js.map} +1 -1
- package/chunk/{FormFieldLayout-yzfzLAfZ.js → FormFieldLayout-DJMFhEbe.js} +13 -13
- package/chunk/{FormFieldLayout-ZhDGr6rb.js.map → FormFieldLayout-DJMFhEbe.js.map} +1 -1
- package/chunk/{FormFieldText-B9EYGm5E.js → FormFieldText-BMCOvY3k.js} +6 -6
- package/chunk/{FormFieldText-B9EYGm5E.js.map → FormFieldText-BMCOvY3k.js.map} +1 -1
- package/chunk/{FormFieldText-DIAcRrkr.js → FormFieldText-CK9dvuS4.js} +7 -7
- package/chunk/{FormFieldText-DIAcRrkr.js.map → FormFieldText-CK9dvuS4.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-Y91SkMJD.js → FormFieldTypeahead-ir8rYkOD.js} +435 -439
- package/chunk/{FormFieldTypeahead-BhoK1wVB.js.map → FormFieldTypeahead-ir8rYkOD.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BhoK1wVB.js → FormFieldTypeahead-pZggFuzg.js} +280 -276
- package/chunk/{FormFieldTypeahead-Y91SkMJD.js.map → FormFieldTypeahead-pZggFuzg.js.map} +1 -1
- package/chunk/{FormSelectChoice-BLQgJEYO.js → FormSelectChoice-A_dweQ9k.js} +20 -20
- package/chunk/{FormSelectChoice-BLQgJEYO.js.map → FormSelectChoice-A_dweQ9k.js.map} +1 -1
- package/chunk/{FormSelectChoice-u5sO_GqU.js → FormSelectChoice-C0ZvRRU4.js} +11 -11
- package/chunk/{FormSelectChoice-u5sO_GqU.js.map → FormSelectChoice-C0ZvRRU4.js.map} +1 -1
- package/chunk/{InputText-Cc-nHAaa.js → InputText-CMlYmMPL.js} +5 -5
- package/chunk/{InputText-Cc-nHAaa.js.map → InputText-CMlYmMPL.js.map} +1 -1
- package/chunk/InputText-CtKHbFE7.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-KmfBDjN9.js → LicensedProfessionalOrganizationComponent-C9z4nWyc.js} +10 -10
- package/chunk/{LicensedProfessionalOrganizationComponent-Bd32g18q.js.map → LicensedProfessionalOrganizationComponent-C9z4nWyc.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Bd32g18q.js → LicensedProfessionalOrganizationComponent-CVmJ9eS_.js} +11 -11
- package/chunk/{LicensedProfessionalOrganizationComponent-KmfBDjN9.js.map → LicensedProfessionalOrganizationComponent-CVmJ9eS_.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DmPn8oNy.js → LowIncomeOrganizationComponent-CVYnXbo4.js} +24 -28
- package/chunk/{LowIncomeOrganizationComponent-BDCwBwqA.js.map → LowIncomeOrganizationComponent-CVYnXbo4.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BDCwBwqA.js → LowIncomeOrganizationComponent-CvMiwUmr.js} +27 -23
- package/chunk/{LowIncomeOrganizationComponent-DmPn8oNy.js.map → LowIncomeOrganizationComponent-CvMiwUmr.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CqNumnEx.js → MedicalProfessionalOrganizationComponent-6CxBMyJW.js} +10 -10
- package/chunk/{MedicalProfessionalOrganizationComponent-BvZ5-GKO.js.map → MedicalProfessionalOrganizationComponent-6CxBMyJW.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BvZ5-GKO.js → MedicalProfessionalOrganizationComponent-BAhuoYQR.js} +11 -11
- package/chunk/{MedicalProfessionalOrganizationComponent-CqNumnEx.js.map → MedicalProfessionalOrganizationComponent-BAhuoYQR.js.map} +1 -1
- package/chunk/{MemberIdComponent-CZ4ylsxJ.js → MemberIdComponent-Bc6-XSmk.js} +11 -11
- package/chunk/{MemberIdComponent-CZ4ylsxJ.js.map → MemberIdComponent-Bc6-XSmk.js.map} +1 -1
- package/chunk/{MemberIdComponent-ClhVOK0_.js → MemberIdComponent-D3r9Y4c3.js} +11 -11
- package/chunk/{MemberIdComponent-ClhVOK0_.js.map → MemberIdComponent-D3r9Y4c3.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Ds1UMq_P.js → MembershipOrganizationComponent-PJ1L85G4.js} +10 -10
- package/chunk/{MembershipOrganizationComponent-B2k3iMwP.js.map → MembershipOrganizationComponent-PJ1L85G4.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B2k3iMwP.js → MembershipOrganizationComponent-xgi0R8Qh.js} +11 -11
- package/chunk/{MembershipOrganizationComponent-Ds1UMq_P.js.map → MembershipOrganizationComponent-xgi0R8Qh.js.map} +1 -1
- package/chunk/Onfido-DX6DWIy6.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-C2E_vI6h.js → PersonalInfoStepSubmitButton-COTSMNng.js} +29 -25
- package/chunk/{PersonalInfoStepSubmitButton-BEt7G8pL.js.map → PersonalInfoStepSubmitButton-COTSMNng.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-BEt7G8pL.js → PersonalInfoStepSubmitButton-DL0Qjm6T.js} +29 -33
- package/chunk/{PersonalInfoStepSubmitButton-C2E_vI6h.js.map → PersonalInfoStepSubmitButton-DL0Qjm6T.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DIecrjL_.js → PersonalInfoStepWrapper-BoM-u8Vg.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DIecrjL_.js.map → PersonalInfoStepWrapper-BoM-u8Vg.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-B7jyR5L2.js → PersonalInfoStepWrapper-DgxBk5YC.js} +27 -27
- package/chunk/{PersonalInfoStepWrapper-B7jyR5L2.js.map → PersonalInfoStepWrapper-DgxBk5YC.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BRv1OY2E.js → PostalCodeComponent-BAMN5oNJ.js} +10 -10
- package/chunk/{PostalCodeComponent-C5geCnf3.js.map → PostalCodeComponent-BAMN5oNJ.js.map} +1 -1
- package/chunk/{PostalCodeComponent-C5geCnf3.js → PostalCodeComponent-BoviWgTs.js} +10 -10
- package/chunk/{PostalCodeComponent-BRv1OY2E.js.map → PostalCodeComponent-BoviWgTs.js.map} +1 -1
- package/chunk/{SSN-DbmDwC_V.js → SSN-C-tXgqEW.js} +11 -11
- package/chunk/{SSN-DEDbmtXI.js.map → SSN-C-tXgqEW.js.map} +1 -1
- package/chunk/{SSN-DEDbmtXI.js → SSN-Dm927vAY.js} +11 -11
- package/chunk/{SSN-DbmDwC_V.js.map → SSN-Dm927vAY.js.map} +1 -1
- package/chunk/{StateSelectComponent-BVUvB4i-.js → StateSelectComponent-DRh_P7z6.js} +5 -5
- package/chunk/{StateSelectComponent-BVUvB4i-.js.map → StateSelectComponent-DRh_P7z6.js.map} +1 -1
- package/chunk/{StateSelectComponent-ykysTrKn.js → StateSelectComponent-uvSd1iyo.js} +9 -9
- package/chunk/{StateSelectComponent-ykysTrKn.js.map → StateSelectComponent-uvSd1iyo.js.map} +1 -1
- package/chunk/StatusComponent-Bn_amGh4.js +40 -0
- package/chunk/{StatusComponent-C9qP2xkk.js.map → StatusComponent-Bn_amGh4.js.map} +1 -1
- package/chunk/{StatusComponent-C9qP2xkk.js → StatusComponent-DN4l8Npf.js} +14 -14
- package/chunk/{StatusComponent-K7sbnHoL.js.map → StatusComponent-DN4l8Npf.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-OP3pj1nz.js → StepActiveMilitaryPersonalInfoComponent-C195u8WH.js} +59 -55
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-B19DJheV.js.map → StepActiveMilitaryPersonalInfoComponent-C195u8WH.js.map} +1 -1
- package/chunk/StepActiveMilitaryPersonalInfoComponent-ZcCZn0os.js +174 -0
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-OP3pj1nz.js.map → StepActiveMilitaryPersonalInfoComponent-ZcCZn0os.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-BPeMAudS.js +166 -0
- package/chunk/{StepAgePersonalInfo-Bi-QeGX8.js.map → StepAgePersonalInfo-BPeMAudS.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-ChwZMKcL.js +170 -0
- package/chunk/{StepAgePersonalInfo-CQBDmfRF.js.map → StepAgePersonalInfo-ChwZMKcL.js.map} +1 -1
- package/chunk/StepCard-B06reTxD.js +4 -4
- package/chunk/StepCard-Bypd7Dt8.js +4 -4
- package/chunk/{StepCollectIdentifier-BHAvn2O0.js → StepCollectIdentifier-DuKdS-j5.js} +19 -19
- package/chunk/{StepCollectIdentifier-BHAvn2O0.js.map → StepCollectIdentifier-DuKdS-j5.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CJWthRfj.js → StepCollectIdentifier-SFcn1Kr-.js} +12 -12
- package/chunk/{StepCollectIdentifier-CJWthRfj.js.map → StepCollectIdentifier-SFcn1Kr-.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-Bxu0tcW8.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-C4P5lSIX.js → StepCollectMilitaryStatusComponent-DKO_s_ta.js} +5 -5
- package/chunk/StepCollectPersonalInfo-H3GU_HNZ.js +352 -0
- package/chunk/{StepCollectPersonalInfo-B7--XzLY.js.map → StepCollectPersonalInfo-H3GU_HNZ.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DZpwrzjQ.js → StepCollectPersonalInfo-gDQydB_T.js} +124 -120
- package/chunk/{StepCollectPersonalInfo-DZpwrzjQ.js.map → StepCollectPersonalInfo-gDQydB_T.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-B66TaYiw.js → StepCompleteAuthentication-BjFkNxUn.js} +17 -17
- package/chunk/{StepCompleteAuthentication-B66TaYiw.js.map → StepCompleteAuthentication-BjFkNxUn.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-C0kcCUjP.js → StepCompleteAuthentication-DP1Q0Z7P.js} +24 -24
- package/chunk/{StepCompleteAuthentication-C0kcCUjP.js.map → StepCompleteAuthentication-DP1Q0Z7P.js.map} +1 -1
- package/chunk/{StepConsolation-BKobQblj.js → StepConsolation-C1iBEDx5.js} +13 -13
- package/chunk/{StepConsolation-BKobQblj.js.map → StepConsolation-C1iBEDx5.js.map} +1 -1
- package/chunk/{StepConsolation-CfpgPGx0.js → StepConsolation-DkIj9ddz.js} +19 -19
- package/chunk/{StepConsolation-CfpgPGx0.js.map → StepConsolation-DkIj9ddz.js.map} +1 -1
- package/chunk/{StepDocUpload-BM_hrO6C.js → StepDocUpload-CRn87Rqx.js} +249 -249
- package/chunk/{StepDocUpload-DkHcpKDh.js.map → StepDocUpload-CRn87Rqx.js.map} +1 -1
- package/chunk/{StepDocUpload-DkHcpKDh.js → StepDocUpload-D7O41B7o.js} +266 -266
- package/chunk/{StepDocUpload-BM_hrO6C.js.map → StepDocUpload-D7O41B7o.js.map} +1 -1
- package/chunk/StepDriverLicensePersonalInfoComponent-Bf27mPeI.js +136 -0
- package/chunk/{StepDriverLicensePersonalInfoComponent-DRAZbywp.js.map → StepDriverLicensePersonalInfoComponent-Bf27mPeI.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DRAZbywp.js → StepDriverLicensePersonalInfoComponent-BydWgQhM.js} +44 -40
- package/chunk/{StepDriverLicensePersonalInfoComponent-DvF6gQri.js.map → StepDriverLicensePersonalInfoComponent-BydWgQhM.js.map} +1 -1
- package/chunk/{StepEmailLoop-B2pJ6TII.js → StepEmailLoop-BwdA2js0.js} +31 -31
- package/chunk/{StepEmailLoop-B2pJ6TII.js.map → StepEmailLoop-BwdA2js0.js.map} +1 -1
- package/chunk/{StepEmailLoop-D82Ol-tF.js → StepEmailLoop-CaGMrw-M.js} +19 -19
- package/chunk/{StepEmailLoop-D82Ol-tF.js.map → StepEmailLoop-CaGMrw-M.js.map} +1 -1
- package/chunk/StepEmploymentPersonalInfo-BP0D_L-2.js +211 -0
- package/chunk/{StepEmploymentPersonalInfo-BIzLUyqF.js.map → StepEmploymentPersonalInfo-BP0D_L-2.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BIzLUyqF.js → StepEmploymentPersonalInfo-DokmufZm.js} +70 -70
- package/chunk/{StepEmploymentPersonalInfo-CfW1cRz5.js.map → StepEmploymentPersonalInfo-DokmufZm.js.map} +1 -1
- package/chunk/StepFirstResponderPersonalInfo-CFlC4kHJ.js +167 -0
- package/chunk/{StepFirstResponderPersonalInfo-CcKpt9P9.js.map → StepFirstResponderPersonalInfo-CFlC4kHJ.js.map} +1 -1
- package/chunk/StepFirstResponderPersonalInfo-DxaX2t3m.js +171 -0
- package/chunk/{StepFirstResponderPersonalInfo-fkmalnSR.js.map → StepFirstResponderPersonalInfo-DxaX2t3m.js.map} +1 -1
- package/chunk/StepGeneralIdentityPersonalInfoComponent-D7rWM-zc.js +169 -0
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D-g65U8N.js.map → StepGeneralIdentityPersonalInfoComponent-D7rWM-zc.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DCzOLLXt.js → StepGeneralIdentityPersonalInfoComponent-DjlrFqzf.js} +49 -45
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DCzOLLXt.js.map → StepGeneralIdentityPersonalInfoComponent-DjlrFqzf.js.map} +1 -1
- package/chunk/StepHybridIdentityPersonalInfoComponent-7Tl8uDuV.js +178 -0
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B1U-D-Oa.js.map → StepHybridIdentityPersonalInfoComponent-7Tl8uDuV.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B1U-D-Oa.js → StepHybridIdentityPersonalInfoComponent-QCqe5hPY.js} +51 -47
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CKqXVn71.js.map → StepHybridIdentityPersonalInfoComponent-QCqe5hPY.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-C55YxnHR.js → StepIDCheckLoop-BJgnlAgW.js} +6 -6
- package/chunk/{StepIDCheckLoop-qAopx3ex.js.map → StepIDCheckLoop-BJgnlAgW.js.map} +1 -1
- package/chunk/StepIDCheckLoop-DSWI3l3R.js +21 -0
- package/chunk/{StepIDCheckLoop-C55YxnHR.js.map → StepIDCheckLoop-DSWI3l3R.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CNjlvSWc.js → StepIDCheckLoopOnfido-BQFOVwjz.js} +49 -49
- package/chunk/{StepIDCheckLoopOnfido-CNjlvSWc.js.map → StepIDCheckLoopOnfido-BQFOVwjz.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DMT6NO1B.js → StepIDCheckLoopOnfido-Q2N4Nl-N.js} +50 -50
- package/chunk/{StepIDCheckLoopOnfido-DMT6NO1B.js.map → StepIDCheckLoopOnfido-Q2N4Nl-N.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-qC6UgIrq.js → StepIDCheckLoopRegula-CV50hZTK.js} +40 -40
- package/chunk/{StepIDCheckLoopRegula-CTSRHPQ4.js.map → StepIDCheckLoopRegula-CV50hZTK.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CTSRHPQ4.js → StepIDCheckLoopRegula-G6YJq954.js} +26 -26
- package/chunk/{StepIDCheckLoopRegula-qC6UgIrq.js.map → StepIDCheckLoopRegula-G6YJq954.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DVxON89y.js → StepInactiveMilitaryPersonalInfoComponent-BD5AYCGD.js} +89 -85
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DVxON89y.js.map → StepInactiveMilitaryPersonalInfoComponent-BD5AYCGD.js.map} +1 -1
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-CzS52K0a.js +232 -0
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Sgb4Acqi.js.map → StepInactiveMilitaryPersonalInfoComponent-CzS52K0a.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DssaBYy5.js → StepLicensedProfessionalPersonalInfo-Co6ysIbQ.js} +49 -49
- package/chunk/{StepLicensedProfessionalPersonalInfo-COwznw-a.js.map → StepLicensedProfessionalPersonalInfo-Co6ysIbQ.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-COwznw-a.js → StepLicensedProfessionalPersonalInfo-MyhaHS8O.js} +67 -67
- package/chunk/{StepLicensedProfessionalPersonalInfo-DssaBYy5.js.map → StepLicensedProfessionalPersonalInfo-MyhaHS8O.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C3U0bUtb.js → StepLowIncomePersonalInfo-DEvMpSOc.js} +76 -76
- package/chunk/{StepLowIncomePersonalInfo-X2S_WVZz.js.map → StepLowIncomePersonalInfo-DEvMpSOc.js.map} +1 -1
- package/chunk/StepLowIncomePersonalInfo-MwI07ZDr.js +217 -0
- package/chunk/{StepLowIncomePersonalInfo-C3U0bUtb.js.map → StepLowIncomePersonalInfo-MwI07ZDr.js.map} +1 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-Br3HaEsM.js +199 -0
- package/chunk/{StepMedicalProfessionalPersonalInfo-bRiGlQYY.js.map → StepMedicalProfessionalPersonalInfo-Br3HaEsM.js.map} +1 -1
- package/chunk/StepMedicalProfessionalPersonalInfo-Cz4yih5L.js +203 -0
- package/chunk/{StepMedicalProfessionalPersonalInfo-k9qmhFHs.js.map → StepMedicalProfessionalPersonalInfo-Cz4yih5L.js.map} +1 -1
- package/chunk/StepMemberPersonalInfo-D3y5Orq9.js +149 -0
- package/chunk/{StepMemberPersonalInfo-AnJ_sPsq.js.map → StepMemberPersonalInfo-D3y5Orq9.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-AnJ_sPsq.js → StepMemberPersonalInfo-DxET2t6t.js} +35 -31
- package/chunk/{StepMemberPersonalInfo-DJC6kzko.js.map → StepMemberPersonalInfo-DxET2t6t.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-Bf95T7H2.js → StepMoverPersonalInfo-BJQcx0QE.js} +44 -40
- package/chunk/{StepMoverPersonalInfo-Bf95T7H2.js.map → StepMoverPersonalInfo-BJQcx0QE.js.map} +1 -1
- package/chunk/StepMoverPersonalInfo-ms_oSmJJ.js +136 -0
- package/chunk/{StepMoverPersonalInfo-R8lZHUqS.js.map → StepMoverPersonalInfo-ms_oSmJJ.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C3Wt9p-Y.js → StepOverrideComponent-DR6qA-CV.js} +18 -18
- package/chunk/{StepOverrideComponent-DQ6KQfVX.js.map → StepOverrideComponent-DR6qA-CV.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DQ6KQfVX.js → StepOverrideComponent-DUneGdaQ.js} +26 -26
- package/chunk/{StepOverrideComponent-C3Wt9p-Y.js.map → StepOverrideComponent-DUneGdaQ.js.map} +1 -1
- package/chunk/{StepSMSLoop-BrbJqPhN.js → StepSMSLoop-CmnU4foO.js} +29 -29
- package/chunk/{StepSMSLoop-BrbJqPhN.js.map → StepSMSLoop-CmnU4foO.js.map} +1 -1
- package/chunk/{StepSMSLoop-C48P-QXx.js → StepSMSLoop-D96_oeaY.js} +22 -22
- package/chunk/{StepSMSLoop-C48P-QXx.js.map → StepSMSLoop-D96_oeaY.js.map} +1 -1
- package/chunk/StepSSO-D2pCLSYD.js +9 -0
- package/chunk/{StepSSO-DlRartMb.js → StepSSO-y263jjm-.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-DyiO7ggN.js → StepSocialSecurityNumber-Bv8OGQDM.js} +31 -31
- package/chunk/{StepSocialSecurityNumber-Bn9fK496.js.map → StepSocialSecurityNumber-Bv8OGQDM.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-Bn9fK496.js → StepSocialSecurityNumber-C4iQRaSu.js} +25 -25
- package/chunk/{StepSocialSecurityNumber-DyiO7ggN.js.map → StepSocialSecurityNumber-C4iQRaSu.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BK34pk1g.js → StepStudentPersonalInfo-CStD7GTz.js} +52 -48
- package/chunk/{StepStudentPersonalInfo-BK34pk1g.js.map → StepStudentPersonalInfo-CStD7GTz.js.map} +1 -1
- package/chunk/StepStudentPersonalInfo-DC_LuVGO.js +181 -0
- package/chunk/{StepStudentPersonalInfo-Cpx5Y88n.js.map → StepStudentPersonalInfo-DC_LuVGO.js.map} +1 -1
- package/chunk/{StepSuccess-5zi6JPlJ.js → StepSuccess-D0zwNWtW.js} +47 -47
- package/chunk/{StepSuccess-5zi6JPlJ.js.map → StepSuccess-D0zwNWtW.js.map} +1 -1
- package/chunk/{StepSuccess-BEVsDxMB.js → StepSuccess-DH_SCQ3o.js} +43 -43
- package/chunk/{StepSuccess-BEVsDxMB.js.map → StepSuccess-DH_SCQ3o.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-kUTcaH1X.js → StepTeacherPersonalInfo-BD270H75.js} +36 -32
- package/chunk/{StepTeacherPersonalInfo-JFMv7J7a.js.map → StepTeacherPersonalInfo-BD270H75.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-CdIYEUhN.js +146 -0
- package/chunk/{StepTeacherPersonalInfo-kUTcaH1X.js.map → StepTeacherPersonalInfo-CdIYEUhN.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-C9irc_Or.js +9 -0
- package/chunk/{StepThirdPartyLoop-DgBM8Hjr.js → StepThirdPartyLoop-DfDkHKc3.js} +5 -5
- package/chunk/{TeacherSchoolComponent-BlXd_Ago.js → TeacherSchoolComponent-BVq4mqo8.js} +13 -13
- package/chunk/{TeacherSchoolComponent-lxPkOdX5.js.map → TeacherSchoolComponent-BVq4mqo8.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-lxPkOdX5.js → TeacherSchoolComponent-CBD2dQym.js} +12 -12
- package/chunk/{TeacherSchoolComponent-BlXd_Ago.js.map → TeacherSchoolComponent-CBD2dQym.js.map} +1 -1
- package/chunk/ThreatMetrix-DneXzgNV.js +4 -4
- package/chunk/{VerificationApiUtils-Ci3HFxmT.js → VerificationApiUtils-CuQ536DE.js} +5 -5
- package/chunk/{VerificationApiUtils-Ci3HFxmT.js.map → VerificationApiUtils-CuQ536DE.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Cnf-uqtw.js → VerificationApiUtils-D715lDKh.js} +7 -7
- package/chunk/{VerificationApiUtils-Cnf-uqtw.js.map → VerificationApiUtils-D715lDKh.js.map} +1 -1
- package/chunk/ar-DY-xX8jm.js +4 -4
- package/chunk/bg-DtqxFXxf.js +4 -4
- package/chunk/bn-IN-CLQsDlLx.js +4 -4
- package/chunk/countryUtils-D5jLglud.js +4 -4
- package/chunk/countryUtils-ZO5utVC3.js +4 -4
- package/chunk/cs-zKYalrCx.js +4 -4
- package/chunk/da-B5mz--q8.js +4 -4
- package/chunk/de-C1u5bH-H.js +4 -4
- package/chunk/{downshift.esm-qbGlaZEh.js → downshift.esm-CmXev3Ne.js} +5 -5
- package/chunk/{downshift.esm-qbGlaZEh.js.map → downshift.esm-CmXev3Ne.js.map} +1 -1
- package/chunk/{downshift.esm-fwmIRsQT.js → downshift.esm-CtORkuQS.js} +228 -228
- package/chunk/{downshift.esm-fwmIRsQT.js.map → downshift.esm-CtORkuQS.js.map} +1 -1
- package/chunk/el-By0fu1Nj.js +4 -4
- package/chunk/en-GB-C2Ud3xXN.js +4 -4
- package/chunk/es-CNmoqMfp.js +4 -4
- package/chunk/es-ES-B7X6cedJ.js +4 -4
- package/chunk/et-DjJMLduk.js +4 -4
- package/chunk/fa-C9Wazqks.js +4 -4
- package/chunk/fi-Bt0kXgNy.js +4 -4
- package/chunk/fr-BvwOLEGk.js +4 -4
- package/chunk/fr-CA-DDN6X27Z.js +4 -4
- package/chunk/ga-DyaPZPE4.js +4 -4
- package/chunk/hi-IN-BsHMHntR.js +4 -4
- package/chunk/hr-BVl-px1q.js +4 -4
- package/chunk/hu-D4VjeLtb.js +4 -4
- package/chunk/id-B9cy0h8v.js +4 -4
- package/chunk/is-DFpeGHFj.js +4 -4
- package/chunk/it-DWz5-P-2.js +4 -4
- package/chunk/iw-DdKzE4KC.js +4 -4
- package/chunk/ja-BfUezqgt.js +4 -4
- package/chunk/kk-dxzPsna4.js +4 -4
- package/chunk/ko-BoAyzxes.js +4 -4
- package/chunk/lo-VdDzVd41.js +4 -4
- package/chunk/lt-CtEXkLkn.js +4 -4
- package/chunk/lv-SXvo6W1l.js +4 -4
- package/chunk/militaryStepHelpers--Wm0W_ag.js +4 -4
- package/chunk/militaryStepHelpers-BeuHYTWR.js +4 -4
- package/chunk/{mocks-Cgaq6lp9.js → mocks-DW4afxJL.js} +7 -7
- package/chunk/{mocks-BPyxndtc.js.map → mocks-DW4afxJL.js.map} +1 -1
- package/chunk/{mocks-BPyxndtc.js → mocks-WjVFEPXM.js} +8 -8
- package/chunk/{mocks-Cgaq6lp9.js.map → mocks-WjVFEPXM.js.map} +1 -1
- package/chunk/ms-CAQm5fnc.js +4 -4
- package/chunk/nl-BE-bh2asFFE.js +4 -4
- package/chunk/nl-TH42E1ce.js +4 -4
- package/chunk/no-CWx3bQiE.js +4 -4
- package/chunk/pl-C5UPRDbl.js +4 -4
- package/chunk/pt-BR-WR8V3NBI.js +4 -4
- package/chunk/pt-DuRmZVpm.js +4 -4
- package/chunk/ro-X6KMMewz.js +4 -4
- package/chunk/ru-D8cwuuW9.js +4 -4
- package/chunk/sk-l-usPvHT.js +4 -4
- package/chunk/sl-CcFevFDd.js +4 -4
- package/chunk/sr-5hqdw8W6.js +4 -4
- package/chunk/sv-CHHsIc-_.js +4 -4
- package/chunk/sw-N7xKwBA-.js +4 -4
- package/chunk/ta-CJbnZGAc.js +4 -4
- package/chunk/th-BGQ9NXQb.js +4 -4
- package/chunk/tl-D4edHa4A.js +4 -4
- package/chunk/tr-CzGpuTpn.js +4 -4
- package/chunk/uk-ChRcPkiM.js +4 -4
- package/chunk/ur-DwjvEWmp.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-Clin3AaA.js → useCollectFieldsEndpoint-BEwU2IXN.js} +9 -9
- package/chunk/{useCollectFieldsEndpoint-Cig4wEUB.js.map → useCollectFieldsEndpoint-BEwU2IXN.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Cig4wEUB.js → useCollectFieldsEndpoint-CvOWXfx8.js} +8 -8
- package/chunk/{useCollectFieldsEndpoint-Clin3AaA.js.map → useCollectFieldsEndpoint-CvOWXfx8.js.map} +1 -1
- package/chunk/{useMetrics-CLLh0Tan.js → useMetrics-2o9KG92p.js} +12 -26
- package/chunk/useMetrics-2o9KG92p.js.map +1 -0
- package/chunk/{useMetrics-5ft9MF-y.js → useMetrics-DW_mv5wy.js} +6 -20
- package/chunk/useMetrics-DW_mv5wy.js.map +1 -0
- package/chunk/vi-CyTj2EhC.js +4 -4
- package/chunk/zh-91qJ02Dp.js +4 -4
- package/chunk/zh-HK-xEJkIfby.js +4 -4
- package/chunk/zu-BrvraDYW.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +939 -940
- package/sheerid.js.map +1 -1
- package/chunk/BirthDateComponent-DBoGs0xO.js +0 -39
- package/chunk/CaptchaComponent-CX3VgnkO.js.map +0 -1
- package/chunk/CaptchaComponent-CpD7kabQ.js.map +0 -1
- package/chunk/CountryComponentWrapper-BKmiop9j.js +0 -70
- package/chunk/CountryComponentWrapper-cR2hBUDi.js +0 -74
- package/chunk/ExtraMessage-D78-mbs6.js +0 -18
- package/chunk/StatusComponent-K7sbnHoL.js +0 -40
- package/chunk/StepActiveMilitaryPersonalInfoComponent-B19DJheV.js +0 -178
- package/chunk/StepAgePersonalInfo-Bi-QeGX8.js +0 -166
- package/chunk/StepAgePersonalInfo-CQBDmfRF.js +0 -170
- package/chunk/StepCollectMilitaryStatusComponent-Cp82hWUq.js +0 -9
- package/chunk/StepCollectPersonalInfo-B7--XzLY.js +0 -356
- package/chunk/StepDriverLicensePersonalInfoComponent-DvF6gQri.js +0 -140
- package/chunk/StepEmploymentPersonalInfo-CfW1cRz5.js +0 -211
- package/chunk/StepFirstResponderPersonalInfo-CcKpt9P9.js +0 -167
- package/chunk/StepFirstResponderPersonalInfo-fkmalnSR.js +0 -171
- package/chunk/StepGeneralIdentityPersonalInfoComponent-D-g65U8N.js +0 -173
- package/chunk/StepHybridIdentityPersonalInfoComponent-CKqXVn71.js +0 -182
- package/chunk/StepIDCheckLoop-qAopx3ex.js +0 -21
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-Sgb4Acqi.js +0 -236
- package/chunk/StepLowIncomePersonalInfo-X2S_WVZz.js +0 -217
- package/chunk/StepMedicalProfessionalPersonalInfo-bRiGlQYY.js +0 -203
- package/chunk/StepMedicalProfessionalPersonalInfo-k9qmhFHs.js +0 -199
- package/chunk/StepMemberPersonalInfo-DJC6kzko.js +0 -153
- package/chunk/StepMoverPersonalInfo-R8lZHUqS.js +0 -140
- package/chunk/StepSSO-wafaHYQE.js +0 -9
- package/chunk/StepStudentPersonalInfo-Cpx5Y88n.js +0 -185
- package/chunk/StepTeacherPersonalInfo-JFMv7J7a.js +0 -150
- package/chunk/StepThirdPartyLoop-B12aMzdI.js +0 -9
- package/chunk/useMetrics-5ft9MF-y.js.map +0 -1
- package/chunk/useMetrics-CLLh0Tan.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepEmailLoop-B2pJ6TII.js","names":[],"sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type EmailLoopCollectOrganizationEmailViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import { injectIntl, type InjectedIntl } from \"react-intl\";\n\nimport { type EmailLoopResponse, type VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"mappings":";;;;aAmBa,KAAqC,EAChD,6BAGI;CACJ,IAAM,IAAY,EAAoB,WAChC,IAAwB,EAAoB,uBAC5C,KAAqB,EAAoB,sBAAsB,YAAY,CAAC,GAAG,SACnF,cACF;CAqBA,OACE,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,GAAD;MACuB;M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AA;AAErE,CAAA,CAIqD"}
|
|
1
|
+
{"version":3,"file":"StepEmailLoop-BwdA2js0.js","names":[],"sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type EmailLoopCollectOrganizationEmailViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import { injectIntl, type InjectedIntl } from \"react-intl\";\n\nimport { type EmailLoopResponse, type VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent =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,CAAA;OACK,CAAA;MACL,CAAA;KACF;;IAEL,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAK,WAAU,qBAAsB,CAAA;GAClC;IACF;KACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACvD,EAAA,CAAA;AAEN,GCxIa,IAAyB,GAfR,EAAE,6BAK5B,iBAAA,GAAA,EAAA,KAAC,OAAD;CAAK,IAAG;CAAsB,WAAU;WAHvC,EAAoB,qBAA2C,iBAChE,6BAII,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAwD,uBAAsB,CAAA,IAE9E,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAgD,uBAAsB,CAAA;AAErE,CAAA,CAIqD"}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.250.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1782922524478
|
|
9
|
+
* BUILD_DATE: Wed Jul 01 2026 16:15:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: cb70a3d38f25dac850245b568238895cd279ec48
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { t as d } from "./FormFieldText-
|
|
14
|
-
import { t as f } from "./EmailLoopPending-
|
|
12
|
+
import { $ as e, On as t, Tn as n, Xt as r, Z as i, _t as a, bt as o, ft as s, ot as c, rt as l, vt as u } from "../_mysheerid-preview.js";
|
|
13
|
+
import { t as d } from "./FormFieldText-CK9dvuS4.js";
|
|
14
|
+
import { t as f } from "./EmailLoopPending-tGJf2KO-.js";
|
|
15
15
|
//#region src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx
|
|
16
|
-
var p =
|
|
17
|
-
let o =
|
|
16
|
+
var p = a(), m = ({ verificationService: a }) => {
|
|
17
|
+
let o = a.viewModel, f = a.fieldValidationErrors, m = (a.verificationResponse?.errorIds || []).includes("invalidEmail");
|
|
18
18
|
return /* @__PURE__ */ (0, p.jsxs)(p.Fragment, { children: [/* @__PURE__ */ (0, p.jsxs)("div", {
|
|
19
19
|
className: "sid-header sid-l-horz-center",
|
|
20
20
|
children: [/* @__PURE__ */ (0, p.jsxs)("div", {
|
|
@@ -23,7 +23,7 @@ var p = i(), m = ({ verificationService: i }) => {
|
|
|
23
23
|
/* @__PURE__ */ (0, p.jsx)("div", {
|
|
24
24
|
className: "sid-sso-logo-container sid-l-horz-center",
|
|
25
25
|
children: /* @__PURE__ */ (0, p.jsx)(s, {
|
|
26
|
-
verificationService:
|
|
26
|
+
verificationService: a,
|
|
27
27
|
fallbackLogo: /* @__PURE__ */ (0, p.jsx)("img", {
|
|
28
28
|
className: "sid-sso-logo-default sid-l-lead-image",
|
|
29
29
|
alt: "",
|
|
@@ -63,11 +63,11 @@ var p = i(), m = ({ verificationService: i }) => {
|
|
|
63
63
|
/* @__PURE__ */ (0, p.jsx)(d, {
|
|
64
64
|
fieldId: "emailOverride",
|
|
65
65
|
value: o.organizationEmail,
|
|
66
|
-
onChange: (
|
|
67
|
-
|
|
66
|
+
onChange: (t) => {
|
|
67
|
+
a.updateViewModel({
|
|
68
68
|
...o,
|
|
69
|
-
organizationEmail:
|
|
70
|
-
}),
|
|
69
|
+
organizationEmail: t
|
|
70
|
+
}), e("organizationEmail", t, a);
|
|
71
71
|
},
|
|
72
72
|
placeholder: "",
|
|
73
73
|
label: /* @__PURE__ */ (0, p.jsx)(u, {
|
|
@@ -88,7 +88,7 @@ var p = i(), m = ({ verificationService: i }) => {
|
|
|
88
88
|
id: "sid-submit-btn-sso",
|
|
89
89
|
type: "submit",
|
|
90
90
|
disabled: !!f.organizationEmail,
|
|
91
|
-
onClick: () =>
|
|
91
|
+
onClick: () => i(o, a, n.emailLoopCollectOrganizationEmail),
|
|
92
92
|
className: "sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width ",
|
|
93
93
|
"aria-label": "submit",
|
|
94
94
|
children: /* @__PURE__ */ (0, p.jsx)(u, {
|
|
@@ -118,9 +118,9 @@ var p = i(), m = ({ verificationService: i }) => {
|
|
|
118
118
|
className: "sid-l-space-top-sm",
|
|
119
119
|
children: /* @__PURE__ */ (0, p.jsx)("button", {
|
|
120
120
|
onClick: async () => {
|
|
121
|
-
|
|
122
|
-
let
|
|
123
|
-
return
|
|
121
|
+
t.info("StepEmailLoopComponent submitting form after skipping email loop");
|
|
122
|
+
let e = r(o, () => {});
|
|
123
|
+
return a.submitStep(n.cancelEmailLoop, e, a.verificationResponse);
|
|
124
124
|
},
|
|
125
125
|
className: "sid-h-btn-link-like sid-link sid-h-bold-text",
|
|
126
126
|
type: "button",
|
|
@@ -135,7 +135,7 @@ var p = i(), m = ({ verificationService: i }) => {
|
|
|
135
135
|
/* @__PURE__ */ (0, p.jsx)("div", { className: "sid-l-space-top-lg" })
|
|
136
136
|
]
|
|
137
137
|
})]
|
|
138
|
-
}), /* @__PURE__ */ (0, p.jsx)(
|
|
138
|
+
}), /* @__PURE__ */ (0, p.jsx)(c, { verificationService: a })] });
|
|
139
139
|
}, h = o(({ verificationService: e }) => /* @__PURE__ */ (0, p.jsx)("div", {
|
|
140
140
|
id: "sid-step-email-loop",
|
|
141
141
|
className: "sid-step-email-loop-container sid-l-container",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepEmailLoop-D82Ol-tF.js","names":[],"sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type EmailLoopCollectOrganizationEmailViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import { injectIntl, type InjectedIntl } from \"react-intl\";\n\nimport { type EmailLoopResponse, type VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"mappings":";;;;aAmBa,KAAqC,EAChD,6BAGI;CACJ,IAAM,IAAY,EAAoB,WAChC,IAAwB,EAAoB,uBAC5C,KAAqB,EAAoB,sBAAsB,YAAY,CAAC,GAAG,SACnF,cACF;CAqBA,OACE,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,MAAC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,6BAII,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAwD,uBAAsB,CAAA,IAE9E,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAgD,uBAAsB,CAAA;AAErE,CAAA,CAIqD"}
|
|
1
|
+
{"version":3,"file":"StepEmailLoop-CaGMrw-M.js","names":[],"sources":["../../src/components/StepEmailLoop/EmailLoopCollectOrganizationEmail.tsx","../../src/components/StepEmailLoop/StepEmailLoopComponent.tsx"],"sourcesContent":["import produce from \"immer\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { FormFieldText } from \"../FormFields/FormFieldText/FormFieldText\";\nimport {\n updateFieldValidationErrorsByFieldId,\n submitForm,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type EmailLoopCollectOrganizationEmailViewModel,\n type VerificationService,\n} from \"../../lib/types/types\";\nimport { AnnouncingHeader } from \"../AnnouncingHeader/AnnouncingHeader\";\n\nexport const EmailLoopCollectOrganizationEmail = ({\n verificationService,\n}: {\n verificationService: VerificationService;\n}) => {\n const viewModel = verificationService.viewModel as EmailLoopCollectOrganizationEmailViewModel;\n const fieldValidationErrors = verificationService.fieldValidationErrors;\n const isInvalidOrgEmail = (verificationService.verificationResponse?.errorIds || []).includes(\n \"invalidEmail\",\n );\n\n const setEmailValue = (organizationEmail: string) => {\n verificationService.updateViewModel({ ...viewModel, organizationEmail });\n updateFieldValidationErrorsByFieldId(\n \"organizationEmail\",\n organizationEmail,\n verificationService,\n );\n };\n\n const cancelEmailLoop = async () => {\n logger.info(\"StepEmailLoopComponent submitting form after skipping email loop\");\n const nextState = produce(viewModel, () => {});\n return verificationService.submitStep(\n VerificationStepsEnum.cancelEmailLoop,\n nextState,\n verificationService.verificationResponse,\n );\n };\n\n return (\n <>\n <div className=\"sid-header sid-l-horz-center\">\n <div role=\"main\">\n <div className=\"sid-sso-logo-container sid-l-horz-center\">\n <LogoComponent\n verificationService={verificationService}\n fallbackLogo={\n <img\n className=\"sid-sso-logo-default sid-l-lead-image\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/doc-pending.svg\"\n />\n }\n />\n </div>\n <div className=\"sid-preheader-label sid-l-space-top-md\">\n <span className=\"sid-h-label\">\n <FormattedHTMLMessage id=\"instant\" defaultMessage=\"Instant\" />\n </span>\n </div>\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.title\"\n defaultMessage=\"Verify using your work email address\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle-one\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.subtitle\"\n defaultMessage=\"Enter the email address provided by your employer and we'll send you a verification link\"\n />\n </div>\n </div>\n\n <div className=\"sid-form-region sid-email-submit sid-submit-wrapper sid-l-space-top-md\">\n <FormFieldText\n fieldId=\"emailOverride\"\n value={viewModel.organizationEmail}\n onChange={setEmailValue}\n placeholder=\"\"\n label={\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.label\"\n defaultMessage=\"Work email address\"\n />\n }\n errorMessage={\n (isInvalidOrgEmail && (\n <FormattedHTMLMessage\n id=\"step.emailLoop.errors.invalidEmail\"\n defaultMessage=\"This email address is not valid for instant verification. Please use an email address provided by your employer or upload documentation below.\"\n />\n )) ||\n (fieldValidationErrors.organizationEmail && (\n <FormattedHTMLMessage id=\"emailIds.invalidEmail\" defaultMessage=\"Invalid email\" />\n ))\n }\n />\n <div className=\"sid-l-space-top-sm\">\n <button\n id=\"sid-submit-btn-sso\"\n type=\"submit\"\n disabled={!!fieldValidationErrors.organizationEmail}\n onClick={() =>\n submitForm(\n viewModel,\n verificationService,\n VerificationStepsEnum.emailLoopCollectOrganizationEmail,\n )\n }\n className=\"sid-btn sid-sso-submit-btn sid-btn--dark sid-l-full-width \"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.email.send\"\n defaultMessage=\"Send Email\"\n />\n </button>\n </div>\n\n <div className=\"sid-form-region sid-l-space-top-lg sid-l-horz-center\">\n <div className=\"sid-header__subtitle-two sid-h-bold-text\">\n <FormattedHTMLMessage\n id=\"step.emailLoop.collectOrganizationEmail.alternative\"\n defaultMessage=\"Unable to access a work email address?\"\n />\n </div>\n <div className=\"sid-form-region sid-l-space-btm-sm sid-l-space-top-sm\">\n <FormattedHTMLMessage\n id=\"step.sso.alternative\"\n defaultMessage=\"You can also verify by uploading proof of eligibility\"\n />\n </div>\n <div className=\"sid-l-space-top-sm\">\n <button\n onClick={cancelEmailLoop}\n className=\"sid-h-btn-link-like sid-link sid-h-bold-text\"\n type=\"button\"\n >\n <FormattedHTMLMessage\n id=\"step.sso.cancel\"\n defaultMessage=\"Upload Proof of Enrollment\"\n />\n </button>\n </div>\n </div>\n\n <div className=\"sid-l-space-top-lg\" />\n </div>\n </div>\n <FormFooter verificationService={verificationService} />\n </>\n );\n};\n","import { injectIntl, type InjectedIntl } from \"react-intl\";\n\nimport { type EmailLoopResponse, type VerificationService } from \"../../lib/types/types\";\n\nimport { EmailLoopCollectOrganizationEmail } from \"./EmailLoopCollectOrganizationEmail\";\nimport { EmailLoopPendingComponent } from \"./EmailLoopPending\";\n\nexport interface StepEmailLoopComponentProps {\n // eslint-disable-next-line react/no-unused-prop-types -- this prop type is reused in the sub components\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepEmailLoop = ({ verificationService }: StepEmailLoopComponentProps) => {\n const isCollectOrgEmailState =\n (verificationService.verificationResponse as EmailLoopResponse).currentState ===\n \"collectOrganizationEmail\";\n return (\n <div id=\"sid-step-email-loop\" className=\"sid-step-email-loop-container sid-l-container\">\n {isCollectOrgEmailState ? (\n <EmailLoopCollectOrganizationEmail verificationService={verificationService} />\n ) : (\n <EmailLoopPendingComponent verificationService={verificationService} />\n )}\n </div>\n );\n};\n\nexport const StepEmailLoopComponent = injectIntl(StepEmailLoop);\n"],"mappings":";;;;aAmBa,KAAqC,EAChD,6BAGI;CACJ,IAAM,IAAY,EAAoB,WAChC,IAAwB,EAAoB,uBAC5C,KAAqB,EAAoB,sBAAsB,YAAY,CAAC,GAAG,SACnF,cACF;CAqBA,OACE,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,GAAD;MACuB;MACrB,cACE,iBAAA,GAAA,EAAA,KAAC,OAAD;OACE,WAAU;OACV,KAAI;OACJ,KAAI;MACL,CAAA;KAEJ,CAAA;IACE,CAAA;IACL,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,QAAD;MAAM,WAAU;gBACd,iBAAA,GAAA,EAAA,KAAC,GAAD;OAAsB,IAAG;OAAU,gBAAe;MAAW,CAAA;KACzD,CAAA;IACH,CAAA;IACL,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAkB,OAAM;eACtB,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;MACf,SAAQ;KACT,CAAA;IACe,CAAA;IAClB,iBAAA,GAAA,EAAA,KAAC,OAAD;KAAK,WAAU;eACb,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IACE,CAAA;GACF;MAEL,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,WAAU;aAAf;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,SAAQ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tB,GACA,EAAoB,oBACtB;QACF;QAoGc,WAAU;QACV,MAAK;kBAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;SACE,IAAG;SACH,gBAAe;QAChB,CAAA;OACK,CAAA;MACL,CAAA;KACF;;IAEL,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAK,WAAU,qBAAsB,CAAA;GAClC;IACF;KACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACvD,EAAA,CAAA;AAEN,GCxIa,IAAyB,GAfR,EAAE,6BAK5B,iBAAA,GAAA,EAAA,KAAC,OAAD;CAAK,IAAG;CAAsB,WAAU;WAHvC,EAAoB,qBAA2C,iBAChE,6BAII,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAwD,uBAAsB,CAAA,IAE9E,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAgD,uBAAsB,CAAA;AAErE,CAAA,CAIqD"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* VERSION: 2.250.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1782922520068
|
|
5
|
+
* BUILD_DATE: Wed Jul 01 2026 16:15:20 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: cb70a3d38f25dac850245b568238895cd279ec48
|
|
7
|
+
*/
|
|
8
|
+
import { Bt as e, K as t, L as n, Rt as r, V as i, Vt as a, Z as o, an as s, et as c, r as l, rn as u, tt as d, wn as f, wt as p } from "../sheerid.js";
|
|
9
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-DtcFKhJ1.js";
|
|
10
|
+
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-DL0Qjm6T.js";
|
|
11
|
+
import { t as S } from "./PostalCodeComponent-BAMN5oNJ.js";
|
|
12
|
+
import { t as C } from "./CountryComponentWrapper-CASuw2te.js";
|
|
13
|
+
import { t as w } from "./City-DcsZCOpS.js";
|
|
14
|
+
import { t as T } from "./AddressComponent-ZIF4nAg6.js";
|
|
15
|
+
import { t as E } from "./ExtraMessage-BKREmfl_.js";
|
|
16
|
+
import { t as D } from "./ChangeLocaleComponent-C506fsyP.js";
|
|
17
|
+
import { t as O } from "./PersonalInfoStepWrapper-BoM-u8Vg.js";
|
|
18
|
+
import { t as k } from "./FormFieldTypeahead-ir8rYkOD.js";
|
|
19
|
+
import { t as A } from "./StateSelectComponent-uvSd1iyo.js";
|
|
20
|
+
//#region src/components/FormFields/Company/CompanyComponent.tsx
|
|
21
|
+
var j = r(), M = s(({ value: e, isErrored: t, onChange: n, verificationService: r, intl: a, placeholder: o = "", disabled: s = !1 }) => i("organization")?.hidden ? null : /* @__PURE__ */ (0, j.jsx)(k, {
|
|
22
|
+
fieldId: "company",
|
|
23
|
+
value: e,
|
|
24
|
+
verificationService: r,
|
|
25
|
+
onChange: (e) => n(e),
|
|
26
|
+
placeholder: o || a.formatHTMLMessage({
|
|
27
|
+
id: "companyPlaceholder",
|
|
28
|
+
defaultMessage: "Company"
|
|
29
|
+
}),
|
|
30
|
+
label: /* @__PURE__ */ (0, j.jsx)(u, {
|
|
31
|
+
id: "company",
|
|
32
|
+
defaultMessage: "Company"
|
|
33
|
+
}),
|
|
34
|
+
errorMessage: t && /* @__PURE__ */ (0, j.jsx)(u, {
|
|
35
|
+
id: "errorId.invalidOrganization",
|
|
36
|
+
defaultMessage: "You must select an organization from the list"
|
|
37
|
+
}),
|
|
38
|
+
orgSearchUrl: p(r.viewModel, r.programTheme),
|
|
39
|
+
showPlaceholderAndHideLabel: !!o,
|
|
40
|
+
disabled: s
|
|
41
|
+
})), N = s(({ intl: r, verificationService: s }) => {
|
|
42
|
+
let p = s.viewModel, { fieldValidationErrors: k } = s, N = e(), P = (e, t) => {
|
|
43
|
+
let n = a(p, (n) => {
|
|
44
|
+
n[e] = t;
|
|
45
|
+
});
|
|
46
|
+
s.updateViewModel(n);
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ (0, j.jsxs)(O, {
|
|
49
|
+
verificationService: s,
|
|
50
|
+
step: s.verificationResponse.currentStep,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ (0, j.jsx)(l, {
|
|
53
|
+
verificationService: s,
|
|
54
|
+
classNameIdentifier: "employment"
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ (0, j.jsx)(D, { verificationService: s }),
|
|
57
|
+
/* @__PURE__ */ (0, j.jsx)(C, {
|
|
58
|
+
verificationService: s,
|
|
59
|
+
disabled: i("country")?.disabled,
|
|
60
|
+
viewModelDraftDecorator: (e, t) => {
|
|
61
|
+
let n = e;
|
|
62
|
+
n.shouldCollectAddress = o(t, s.programTheme.config.countries);
|
|
63
|
+
let r = [
|
|
64
|
+
"address1",
|
|
65
|
+
"city",
|
|
66
|
+
"state",
|
|
67
|
+
"postalCode"
|
|
68
|
+
], i = (n.fieldsToSkipValidation || []).filter((e) => !r.includes(e));
|
|
69
|
+
n.shouldCollectAddress ? n.fieldsToSkipValidation = i.length ? i : void 0 : (n.address1 = "", n.city = "", n.state = "", n.postalCode = "", n.fieldsToSkipValidation = [...i, ...r]);
|
|
70
|
+
}
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ (0, j.jsx)(M, {
|
|
73
|
+
value: s.viewModel.organization,
|
|
74
|
+
verificationService: s,
|
|
75
|
+
isErrored: !!k.organization,
|
|
76
|
+
disabled: i("organization")?.disabled,
|
|
77
|
+
onChange: (e) => {
|
|
78
|
+
d(e, s), c("organization", e, s);
|
|
79
|
+
}
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ (0, j.jsxs)("div", {
|
|
82
|
+
className: "sid-names",
|
|
83
|
+
children: [/* @__PURE__ */ (0, j.jsx)(m, {
|
|
84
|
+
value: p.firstName,
|
|
85
|
+
isErrored: !!k.firstName,
|
|
86
|
+
disabled: i("firstName")?.disabled,
|
|
87
|
+
onChange: (e) => {
|
|
88
|
+
P("firstName", e), c("firstName", e, s);
|
|
89
|
+
}
|
|
90
|
+
}), /* @__PURE__ */ (0, j.jsx)(h, {
|
|
91
|
+
value: p.lastName,
|
|
92
|
+
isErrored: !!k.lastName,
|
|
93
|
+
disabled: i("lastName")?.disabled,
|
|
94
|
+
onChange: (e) => {
|
|
95
|
+
P("lastName", e), c("lastName", e, s);
|
|
96
|
+
}
|
|
97
|
+
})]
|
|
98
|
+
}),
|
|
99
|
+
o(p.countryChoice, s.programTheme.config.countries) ? /* @__PURE__ */ (0, j.jsx)(T, {
|
|
100
|
+
isErrored: !!k.address1,
|
|
101
|
+
errorId: k.address1,
|
|
102
|
+
onChange: (e) => {
|
|
103
|
+
P("address1", e), c("address1", e, s);
|
|
104
|
+
},
|
|
105
|
+
isRequired: !0,
|
|
106
|
+
value: p.address1,
|
|
107
|
+
disabled: i("address1")?.disabled,
|
|
108
|
+
explanation: /* @__PURE__ */ (0, j.jsx)(u, {
|
|
109
|
+
id: "addressExplanation",
|
|
110
|
+
defaultMessage: "Use your home address"
|
|
111
|
+
})
|
|
112
|
+
}) : null,
|
|
113
|
+
o(p.countryChoice, s.programTheme.config.countries) ? /* @__PURE__ */ (0, j.jsxs)("div", {
|
|
114
|
+
className: "sid-thirds",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ (0, j.jsx)(w, {
|
|
117
|
+
isErrored: !!k.city,
|
|
118
|
+
errorId: k.city,
|
|
119
|
+
onChange: (e) => {
|
|
120
|
+
P("city", e), c("city", e, s);
|
|
121
|
+
},
|
|
122
|
+
value: p.city,
|
|
123
|
+
isRequired: !0,
|
|
124
|
+
disabled: i("city")?.disabled
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ (0, j.jsx)(A, {
|
|
127
|
+
isRequired: !0,
|
|
128
|
+
options: n(s.programTheme, r),
|
|
129
|
+
value: p.state || void 0,
|
|
130
|
+
isErrored: !!k.state,
|
|
131
|
+
onChange: async (e) => {
|
|
132
|
+
let t = e ? e.value : void 0;
|
|
133
|
+
P("state", t), c("state", t, s);
|
|
134
|
+
},
|
|
135
|
+
label: /* @__PURE__ */ (0, j.jsx)(u, {
|
|
136
|
+
id: "state",
|
|
137
|
+
defaultMessage: "State"
|
|
138
|
+
}),
|
|
139
|
+
disabled: i("state")?.disabled
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ (0, j.jsx)(S, {
|
|
142
|
+
isErrored: !!k.postalCode,
|
|
143
|
+
onChange: (e) => {
|
|
144
|
+
P("postalCode", e), c("postalCode", e, s);
|
|
145
|
+
},
|
|
146
|
+
value: p.postalCode,
|
|
147
|
+
disabled: i("postalCode")?.disabled
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
}) : null,
|
|
151
|
+
/* @__PURE__ */ (0, j.jsx)(b, {
|
|
152
|
+
value: p.email,
|
|
153
|
+
isErrored: !!k.email,
|
|
154
|
+
explanation: /* @__PURE__ */ (0, j.jsx)(u, {
|
|
155
|
+
id: "emailExplanation",
|
|
156
|
+
defaultMessage: "Use your work email if you have one"
|
|
157
|
+
}),
|
|
158
|
+
onChange: (e) => {
|
|
159
|
+
P("email", e), c("email", e, s);
|
|
160
|
+
},
|
|
161
|
+
onKeyDown: (e) => t(e),
|
|
162
|
+
disabled: i("email")?.disabled
|
|
163
|
+
}),
|
|
164
|
+
s.programTheme.isSmsNotifierConfigured || s.programTheme.smsLoopEnabled ? /* @__PURE__ */ (0, j.jsx)(_, {
|
|
165
|
+
isRequired: !!s.programTheme.smsLoopEnabled,
|
|
166
|
+
value: p.phoneNumber,
|
|
167
|
+
isErrored: !!k.phoneNumber,
|
|
168
|
+
onChange: (e) => {
|
|
169
|
+
P("phoneNumber", e), c("phoneNumber", e, s);
|
|
170
|
+
},
|
|
171
|
+
selectedCountryCode: p.countryChoice && p.countryChoice.value,
|
|
172
|
+
disabled: i("phoneNumber")?.disabled
|
|
173
|
+
}) : null,
|
|
174
|
+
N.customFormFields.map((e) => /* @__PURE__ */ (0, j.jsx)(g, {
|
|
175
|
+
config: e,
|
|
176
|
+
verificationService: s
|
|
177
|
+
})),
|
|
178
|
+
/* @__PURE__ */ (0, j.jsx)(v, {
|
|
179
|
+
verificationService: s,
|
|
180
|
+
isErrored: !!k.marketConsentValue,
|
|
181
|
+
onChange: (e) => {
|
|
182
|
+
P("metadata", {
|
|
183
|
+
...s.viewModel.metadata,
|
|
184
|
+
marketConsentValue: e
|
|
185
|
+
}), c("marketConsentValue", e, s);
|
|
186
|
+
},
|
|
187
|
+
viewModel: p,
|
|
188
|
+
disabled: i("marketConsentValue")?.disabled
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ (0, j.jsx)(E, {
|
|
191
|
+
verificationService: s,
|
|
192
|
+
suffix: "CollectAboveSubmit"
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ (0, j.jsx)(y, {
|
|
195
|
+
verificationService: s,
|
|
196
|
+
isErrored: !!k.captchaToken
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ (0, j.jsx)(x, {
|
|
199
|
+
step: f.collectEmployeePersonalInfo,
|
|
200
|
+
verificationService: s,
|
|
201
|
+
viewModel: p,
|
|
202
|
+
buttonText: /* @__PURE__ */ (0, j.jsx)(u, {
|
|
203
|
+
id: "step.personalInfo.submitButtonText",
|
|
204
|
+
defaultMessage: "Verify My Employment Status"
|
|
205
|
+
})
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
//#endregion
|
|
211
|
+
export { N as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepEmploymentPersonalInfo-BIzLUyqF.js","names":[],"sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;aAwDa,IAAmB,GA5CR,EACtB,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAAsB,gBAAgB;CAAU,CAAC;CAEhF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAU,gBAAe;CAAW,CAAA;CACpE,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAI6C,GCsNrC,IAAsC,GA7Nf,EAClC,SACA,6BAC8C;CAC9C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAU,EAAW,GAErB,KAA6B,GAA4C,MAAe;EAC5F,IAAM,IAA6C,EACjD,IACC,MAA2C;GAC1C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAoB,qBAAqB;YAFjD;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;IAC9C,0B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AAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACX,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAGwF"}
|
|
1
|
+
{"version":3,"file":"StepEmploymentPersonalInfo-BP0D_L-2.js","names":[],"sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const Company = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"companyPlaceholder\", defaultMessage: \"Company\" })\n }\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CompanyComponent = injectIntl(Company);\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getAvailableStateChoices,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nconst StepEmploymentPersonalInfo = ({\n intl,\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n options={getAvailableStateChoices(verificationService.programTheme, intl)}\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\n// TODO remove injectIntl, unused\nexport const StepEmploymentPersonalInfoComponent = injectIntl(StepEmploymentPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;aAwDa,IAAmB,GA5CR,EACtB,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAAsB,gBAAgB;CAAU,CAAC;CAEhF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAU,gBAAe;CAAW,CAAA;CACpE,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAI6C,GCsNrC,IAAsC,GA7Nf,EAClC,SACA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