@sheerid/jslib-nightly 2.252.0-alpha.1 → 2.252.0-alpha.2
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 +3 -3
- package/_mysheerid-preview.js +34 -34
- package/chunk/AddressComponent-DeVavXuU.js +3 -3
- package/chunk/AddressComponent-tDOYXYuf.js +3 -3
- package/chunk/AnnouncingHeader-C8n6ru67.js +3 -3
- package/chunk/AnnouncingHeader-D1yijRkk.js +3 -3
- package/chunk/{ApiUrls-isbiU17_.js → ApiUrls-CB34tBwu.js} +4 -4
- package/chunk/{ApiUrls-Ny9uxtAY.js.map → ApiUrls-CB34tBwu.js.map} +1 -1
- package/chunk/{ApiUrls-Ny9uxtAY.js → ApiUrls-DBbzZ_5d.js} +4 -4
- package/chunk/{ApiUrls-isbiU17_.js.map → ApiUrls-DBbzZ_5d.js.map} +1 -1
- package/chunk/{BirthDateComponent-Bvw2hLXB.js → BirthDateComponent-74LmrsUh.js} +4 -4
- package/chunk/{BirthDateComponent-Bvw2hLXB.js.map → BirthDateComponent-74LmrsUh.js.map} +1 -1
- package/chunk/{BirthDateComponent-CjTuz9cR.js → BirthDateComponent-DeiRjfqb.js} +4 -4
- package/chunk/{BirthDateComponent-CjTuz9cR.js.map → BirthDateComponent-DeiRjfqb.js.map} +1 -1
- package/chunk/{CaptchaComponent-CGuBecVr.js → CaptchaComponent-CuhEe-JS.js} +5 -5
- package/chunk/{CaptchaComponent-CGuBecVr.js.map → CaptchaComponent-CuhEe-JS.js.map} +1 -1
- package/chunk/{CaptchaComponent-CL2iBcHK.js → CaptchaComponent-DrHxUXmn.js} +5 -5
- package/chunk/{CaptchaComponent-CL2iBcHK.js.map → CaptchaComponent-DrHxUXmn.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DHRFafXo.js → ChangeLocaleComponent-CMgHD59I.js} +4 -4
- package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js.map → ChangeLocaleComponent-CMgHD59I.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js → ChangeLocaleComponent-luffC-5n.js} +4 -4
- package/chunk/{ChangeLocaleComponent-DHRFafXo.js.map → ChangeLocaleComponent-luffC-5n.js.map} +1 -1
- package/chunk/City-Bn6z_tV9.js +3 -3
- package/chunk/City-Dr5JQzXh.js +3 -3
- package/chunk/{CollegeNameComponent-DxIY7Hjd.js → CollegeNameComponent-CkHW8X3_.js} +4 -4
- package/chunk/{CollegeNameComponent-B_DipcU2.js.map → CollegeNameComponent-CkHW8X3_.js.map} +1 -1
- package/chunk/{CollegeNameComponent-B_DipcU2.js → CollegeNameComponent-DTT3AdDm.js} +4 -4
- package/chunk/{CollegeNameComponent-DxIY7Hjd.js.map → CollegeNameComponent-DTT3AdDm.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BV_IRGmr.js +3 -3
- package/chunk/CopyToClipboardComponent-C_H3DLRY.js +3 -3
- package/chunk/{CountryComponentWrapper-C9D_Yvat.js → CountryComponentWrapper-Bl2FKDot.js} +4 -4
- package/chunk/{CountryComponentWrapper-Br71T6PI.js.map → CountryComponentWrapper-Bl2FKDot.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Br71T6PI.js → CountryComponentWrapper-Cm5132xB.js} +4 -4
- package/chunk/{CountryComponentWrapper-C9D_Yvat.js.map → CountryComponentWrapper-Cm5132xB.js.map} +1 -1
- package/chunk/{DischargeDateComponent-ZcytGukr.js → DischargeDateComponent-BWUkxVcX.js} +6 -6
- package/chunk/{DischargeDateComponent-Blu8ao8l.js.map → DischargeDateComponent-BWUkxVcX.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Blu8ao8l.js → DischargeDateComponent-DGGNuN0D.js} +6 -6
- package/chunk/{DischargeDateComponent-ZcytGukr.js.map → DischargeDateComponent-DGGNuN0D.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-6lnx4TLm.js +3 -3
- package/chunk/DriverLicenseNumberComponent-Cz2hxBlw.js +3 -3
- package/chunk/{EmailLoopPending-s7pO4MYL.js → EmailLoopPending-DM5dagn5.js} +4 -4
- package/chunk/{EmailLoopPending-s7pO4MYL.js.map → EmailLoopPending-DM5dagn5.js.map} +1 -1
- package/chunk/{EmailLoopPending-C06EgjqJ.js → EmailLoopPending-niobeQv6.js} +4 -4
- package/chunk/{EmailLoopPending-C06EgjqJ.js.map → EmailLoopPending-niobeQv6.js.map} +1 -1
- package/chunk/{ExtraMessage-BkEeYdJ6.js → ExtraMessage-BV_tbK2V.js} +4 -4
- package/chunk/{ExtraMessage-BFiXfjWJ.js.map → ExtraMessage-BV_tbK2V.js.map} +1 -1
- package/chunk/{ExtraMessage-BFiXfjWJ.js → ExtraMessage-DbVKYg6z.js} +4 -4
- package/chunk/{ExtraMessage-BkEeYdJ6.js.map → ExtraMessage-DbVKYg6z.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DxL5zTJM.js → FirstResponderOrganizationComponent-4IQGU7Ka.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-CuHnKems.js.map → FirstResponderOrganizationComponent-4IQGU7Ka.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CuHnKems.js → FirstResponderOrganizationComponent-_QjLFfMC.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DxL5zTJM.js.map → FirstResponderOrganizationComponent-_QjLFfMC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-D-lRLgJc.js → FormFieldInputSelect-BNMMo-M-.js} +4 -4
- package/chunk/{FormFieldInputSelect-D-lRLgJc.js.map → FormFieldInputSelect-BNMMo-M-.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DcYjsGZY.js → FormFieldInputSelect-DNfezB8Q.js} +4 -4
- package/chunk/{FormFieldInputSelect-DcYjsGZY.js.map → FormFieldInputSelect-DNfezB8Q.js.map} +1 -1
- package/chunk/FormFieldLayout-CvBeqSO2.js +3 -3
- package/chunk/FormFieldLayout-DHm3-7NK.js +3 -3
- package/chunk/FormFieldText-CmWzhNxx.js +3 -3
- package/chunk/FormFieldText-Ty1Ufwon.js +3 -3
- package/chunk/{FormFieldTypeahead-Bw-si92C.js → FormFieldTypeahead-BiaLXv_2.js} +6 -6
- package/chunk/{FormFieldTypeahead-Bw-si92C.js.map → FormFieldTypeahead-BiaLXv_2.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BejkrONN.js → FormFieldTypeahead-BlWzuBPT.js} +6 -6
- package/chunk/{FormFieldTypeahead-BejkrONN.js.map → FormFieldTypeahead-BlWzuBPT.js.map} +1 -1
- package/chunk/{FormFooterComponent-SC3z7wto.js → FormFooterComponent-BPl4luwp.js} +13 -9
- package/chunk/FormFooterComponent-BPl4luwp.js.map +1 -0
- package/chunk/{FormFooterComponent-CGXehL7a.js → FormFooterComponent-DPNJTTLQ.js} +13 -9
- package/chunk/{FormFooterComponent-CGXehL7a.js.map → FormFooterComponent-DPNJTTLQ.js.map} +1 -1
- package/chunk/{FormSelectChoice-Dx-bXGwm.js → FormSelectChoice-B5iX1Wbg.js} +4 -4
- package/chunk/{FormSelectChoice-CTPh3Zs_.js.map → FormSelectChoice-B5iX1Wbg.js.map} +1 -1
- package/chunk/{FormSelectChoice-CTPh3Zs_.js → FormSelectChoice-BsIeAIak.js} +4 -4
- package/chunk/{FormSelectChoice-Dx-bXGwm.js.map → FormSelectChoice-BsIeAIak.js.map} +1 -1
- package/chunk/InputText-Dcc1GAzk.js +3 -3
- package/chunk/InputText-O-R5oYpH.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-Bw5UZYDy.js → LicensedProfessionalOrganizationComponent-469sp0ma.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-pRz7Hey5.js.map → LicensedProfessionalOrganizationComponent-469sp0ma.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-pRz7Hey5.js → LicensedProfessionalOrganizationComponent-Bqbm-4re.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-Bw5UZYDy.js.map → LicensedProfessionalOrganizationComponent-Bqbm-4re.js.map} +1 -1
- package/chunk/LogoComponent-CxMD1sHy.js +3 -3
- package/chunk/LogoComponent-RNO3O5IN.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-DEjaiJQ1.js → LowIncomeOrganizationComponent-BJWlF8dC.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-CzlNXek1.js.map → LowIncomeOrganizationComponent-BJWlF8dC.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CzlNXek1.js → LowIncomeOrganizationComponent-wfrRwozi.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-DEjaiJQ1.js.map → LowIncomeOrganizationComponent-wfrRwozi.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-AC2qiDUU.js → MedicalProfessionalOrganizationComponent-DIuKlJ7D.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-AC2qiDUU.js.map → MedicalProfessionalOrganizationComponent-DIuKlJ7D.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-P7XyWT_d.js → MedicalProfessionalOrganizationComponent-DJx4Sdog.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-P7XyWT_d.js.map → MedicalProfessionalOrganizationComponent-DJx4Sdog.js.map} +1 -1
- package/chunk/MemberIdComponent--KEsNJQy.js +3 -3
- package/chunk/MemberIdComponent-CTvlL62f.js +3 -3
- package/chunk/{MembershipOrganizationComponent-DUtEbO1h.js → MembershipOrganizationComponent-B60A7V5l.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-C-JF69xs.js.map → MembershipOrganizationComponent-B60A7V5l.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-C-JF69xs.js → MembershipOrganizationComponent-WuhfGOXa.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-DUtEbO1h.js.map → MembershipOrganizationComponent-WuhfGOXa.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-B3DigKNy.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-CEvJtoqt.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-Bp9-hSi7.js → PersonalInfoStepWrapper-BTi6sZUM.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-Bp9-hSi7.js.map → PersonalInfoStepWrapper-BTi6sZUM.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DBDHCmcI.js → PersonalInfoStepWrapper-Ds44QLny.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DBDHCmcI.js.map → PersonalInfoStepWrapper-Ds44QLny.js.map} +1 -1
- package/chunk/PostalCodeComponent-DC6y88Ff.js +3 -3
- package/chunk/PostalCodeComponent-Q7cxuIiG.js +3 -3
- package/chunk/SSN-CCkJwsHx.js +3 -3
- package/chunk/SSN-Dxjw5wjo.js +3 -3
- package/chunk/{StateSelectComponent-Cfe-O0nI.js → StateSelectComponent-BL6nNILS.js} +4 -4
- package/chunk/{StateSelectComponent-CV23i9UP.js.map → StateSelectComponent-BL6nNILS.js.map} +1 -1
- package/chunk/{StateSelectComponent-CV23i9UP.js → StateSelectComponent-DZ4ekMz3.js} +4 -4
- package/chunk/{StateSelectComponent-Cfe-O0nI.js.map → StateSelectComponent-DZ4ekMz3.js.map} +1 -1
- package/chunk/{StatusComponent-CCZcMgf5.js → StatusComponent-DNirnu24.js} +4 -4
- package/chunk/{StatusComponent-CCZcMgf5.js.map → StatusComponent-DNirnu24.js.map} +1 -1
- package/chunk/{StatusComponent-D5PBJKSy.js → StatusComponent-lNFX8uYC.js} +4 -4
- package/chunk/{StatusComponent-D5PBJKSy.js.map → StatusComponent-lNFX8uYC.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DyJonsZi.js → StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DyJonsZi.js.map → StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js → StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js.map → StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Shxz_I62.js → StepAgePersonalInfo-BnqyuLSN.js} +11 -11
- package/chunk/{StepAgePersonalInfo-RRJXxFD4.js.map → StepAgePersonalInfo-BnqyuLSN.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-RRJXxFD4.js → StepAgePersonalInfo-DSzM4N_r.js} +11 -11
- package/chunk/{StepAgePersonalInfo-Shxz_I62.js.map → StepAgePersonalInfo-DSzM4N_r.js.map} +1 -1
- package/chunk/StepCard-BYvktbj-.js +3 -3
- package/chunk/StepCard-xJowORFe.js +3 -3
- package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js → StepCollectIdentifier-2dBrIR9W.js} +4 -4
- package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js.map → StepCollectIdentifier-2dBrIR9W.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DSlIlcXW.js → StepCollectIdentifier-CzLFzq-f.js} +4 -4
- package/chunk/{StepCollectIdentifier-DSlIlcXW.js.map → StepCollectIdentifier-CzLFzq-f.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-BP0hnzA-.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-Ci_-jhy9.js → StepCollectMilitaryStatusComponent-WX-lVSG6.js} +4 -4
- package/chunk/{StepCollectPersonalInfo-B83xrl6r.js → StepCollectPersonalInfo-Dc7ziTls.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-B83xrl6r.js.map → StepCollectPersonalInfo-Dc7ziTls.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js → StepCollectPersonalInfo-rd0zB5Qf.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js.map → StepCollectPersonalInfo-rd0zB5Qf.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-Cp0QfXMC.js +3 -3
- package/chunk/StepCompleteAuthentication-iIbsyk7K.js +3 -3
- package/chunk/{StepConsolation-DNYGDZzR.js → StepConsolation-BE-Eo_IB.js} +4 -4
- package/chunk/{StepConsolation-D9CuvYbU.js.map → StepConsolation-BE-Eo_IB.js.map} +1 -1
- package/chunk/{StepConsolation-D9CuvYbU.js → StepConsolation-BbenSSL0.js} +4 -4
- package/chunk/{StepConsolation-DNYGDZzR.js.map → StepConsolation-BbenSSL0.js.map} +1 -1
- package/chunk/{StepDocUpload-BgETpFvN.js → StepDocUpload-1ysAiDDK.js} +4 -4
- package/chunk/{StepDocUpload-BgETpFvN.js.map → StepDocUpload-1ysAiDDK.js.map} +1 -1
- package/chunk/{StepDocUpload-BNNsivJb.js → StepDocUpload-BDcmBXio.js} +4 -4
- package/chunk/{StepDocUpload-BNNsivJb.js.map → StepDocUpload-BDcmBXio.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-D96qSJuQ.js → StepDriverLicensePersonalInfoComponent-BYIHo8aS.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-D96qSJuQ.js.map → StepDriverLicensePersonalInfoComponent-BYIHo8aS.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-OyIdNeVc.js → StepDriverLicensePersonalInfoComponent-BYz9sOSI.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-OyIdNeVc.js.map → StepDriverLicensePersonalInfoComponent-BYz9sOSI.js.map} +1 -1
- package/chunk/{StepEmailLoop-DFpV_Jbb.js → StepEmailLoop-CsmaHQIC.js} +5 -5
- package/chunk/{StepEmailLoop-B87Xkxlc.js.map → StepEmailLoop-CsmaHQIC.js.map} +1 -1
- package/chunk/{StepEmailLoop-B87Xkxlc.js → StepEmailLoop-DsaZyN6s.js} +5 -5
- package/chunk/{StepEmailLoop-DFpV_Jbb.js.map → StepEmailLoop-DsaZyN6s.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D67sqEmM.js → StepEmploymentPersonalInfo-Dk86CJgZ.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-D67sqEmM.js.map → StepEmploymentPersonalInfo-Dk86CJgZ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DRw2UHWP.js → StepEmploymentPersonalInfo-VEaVpeBO.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-DRw2UHWP.js.map → StepEmploymentPersonalInfo-VEaVpeBO.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DGYraioF.js → StepFirstResponderPersonalInfo-CGrthQIW.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-DGYraioF.js.map → StepFirstResponderPersonalInfo-CGrthQIW.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-GyykKYMf.js → StepFirstResponderPersonalInfo-DRZZAK3Z.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-GyykKYMf.js.map → StepFirstResponderPersonalInfo-DRZZAK3Z.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cj9r_Dm1.js → StepGeneralIdentityPersonalInfoComponent-3mFgLh4B.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-4DD_K-bp.js.map → StepGeneralIdentityPersonalInfoComponent-3mFgLh4B.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-4DD_K-bp.js → StepGeneralIdentityPersonalInfoComponent-BfxOy5hx.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cj9r_Dm1.js.map → StepGeneralIdentityPersonalInfoComponent-BfxOy5hx.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-0Oe_vlAv.js → StepHybridIdentityPersonalInfoComponent-CmvNDHhr.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-0Oe_vlAv.js.map → StepHybridIdentityPersonalInfoComponent-CmvNDHhr.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-COHk_4eA.js → StepHybridIdentityPersonalInfoComponent-CuiU_Wka.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-COHk_4eA.js.map → StepHybridIdentityPersonalInfoComponent-CuiU_Wka.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CpQmgiuP.js → StepIDCheckLoop-CjZpv63f.js} +4 -4
- package/chunk/{StepIDCheckLoop-CpQmgiuP.js.map → StepIDCheckLoop-CjZpv63f.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CyhEQpIW.js → StepIDCheckLoop-Z1Ae3hAN.js} +4 -4
- package/chunk/{StepIDCheckLoop-CyhEQpIW.js.map → StepIDCheckLoop-Z1Ae3hAN.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CQtLaCtk.js → StepIDCheckLoopOnfido-BUtNgLV7.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-O0UpQfMj.js.map → StepIDCheckLoopOnfido-BUtNgLV7.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-O0UpQfMj.js → StepIDCheckLoopOnfido-LQ2bEmdZ.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-CQtLaCtk.js.map → StepIDCheckLoopOnfido-LQ2bEmdZ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-ekPS9EqN.js → StepIDCheckLoopRegula-C_GSHyPP.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-B56RrMfx.js.map → StepIDCheckLoopRegula-C_GSHyPP.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B56RrMfx.js → StepIDCheckLoopRegula-CeVUkdgc.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-ekPS9EqN.js.map → StepIDCheckLoopRegula-CeVUkdgc.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-cQ52ASXe.js → StepInactiveMilitaryPersonalInfoComponent-B7Sh5ISw.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C3soLfoE.js.map → StepInactiveMilitaryPersonalInfoComponent-B7Sh5ISw.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C3soLfoE.js → StepInactiveMilitaryPersonalInfoComponent-DtxPAYHR.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-cQ52ASXe.js.map → StepInactiveMilitaryPersonalInfoComponent-DtxPAYHR.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BQJMsmNG.js → StepLicensedProfessionalPersonalInfo-CTDv5DHB.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-BQJMsmNG.js.map → StepLicensedProfessionalPersonalInfo-CTDv5DHB.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-uXRz37Cg.js → StepLicensedProfessionalPersonalInfo-CxM759_p.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-uXRz37Cg.js.map → StepLicensedProfessionalPersonalInfo-CxM759_p.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BA3o4C5Q.js → StepLowIncomePersonalInfo-BiiBIGXH.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-BA3o4C5Q.js.map → StepLowIncomePersonalInfo-BiiBIGXH.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Cv8fetBp.js → StepLowIncomePersonalInfo-YvMSq6ES.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-Cv8fetBp.js.map → StepLowIncomePersonalInfo-YvMSq6ES.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1Ecc04Q.js → StepMedicalProfessionalPersonalInfo-BRCJT5VV.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-4mV21wDQ.js.map → StepMedicalProfessionalPersonalInfo-BRCJT5VV.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-4mV21wDQ.js → StepMedicalProfessionalPersonalInfo-D4NOqS9P.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1Ecc04Q.js.map → StepMedicalProfessionalPersonalInfo-D4NOqS9P.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CZ_R2Kol.js → StepMemberPersonalInfo-CtI5S9mx.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-CP-hcjB6.js.map → StepMemberPersonalInfo-CtI5S9mx.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CP-hcjB6.js → StepMemberPersonalInfo-rXbbPI7P.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-CZ_R2Kol.js.map → StepMemberPersonalInfo-rXbbPI7P.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DSuGgttw.js → StepMoverPersonalInfo-CO0vnQCT.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-B9floByn.js.map → StepMoverPersonalInfo-CO0vnQCT.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-B9floByn.js → StepMoverPersonalInfo-wxu_tc2P.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-DSuGgttw.js.map → StepMoverPersonalInfo-wxu_tc2P.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CtiK7Cll.js → StepOverrideComponent-Cryz-7RC.js} +4 -4
- package/chunk/{StepOverrideComponent-C3G33eaP.js.map → StepOverrideComponent-Cryz-7RC.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C3G33eaP.js → StepOverrideComponent-rm5pBJUY.js} +4 -4
- package/chunk/{StepOverrideComponent-CtiK7Cll.js.map → StepOverrideComponent-rm5pBJUY.js.map} +1 -1
- package/chunk/{StepSMSLoop-CQIK_pcx.js → StepSMSLoop-BHOsYIvB.js} +4 -4
- package/chunk/{StepSMSLoop-CQIK_pcx.js.map → StepSMSLoop-BHOsYIvB.js.map} +1 -1
- package/chunk/{StepSMSLoop-DWj4eseQ.js → StepSMSLoop-DzsadZry.js} +4 -4
- package/chunk/{StepSMSLoop-DWj4eseQ.js.map → StepSMSLoop-DzsadZry.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-DsOd-7QG.js → StepSocialSecurityNumber-DDF4h4AC.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-CDj1yUok.js.map → StepSocialSecurityNumber-DDF4h4AC.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CDj1yUok.js → StepSocialSecurityNumber-xTBWXuft.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-DsOd-7QG.js.map → StepSocialSecurityNumber-xTBWXuft.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Pe2ZUK9j.js → StepStudentPersonalInfo-Cme66aGU.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-CBHCCIVO.js.map → StepStudentPersonalInfo-Cme66aGU.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CBHCCIVO.js → StepStudentPersonalInfo-DYuIs4lY.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-Pe2ZUK9j.js.map → StepStudentPersonalInfo-DYuIs4lY.js.map} +1 -1
- package/chunk/{StepSuccess-DXxmnibi.js → StepSuccess-BFyOCPpD.js} +4 -4
- package/chunk/{StepSuccess-D3uLwpVH.js.map → StepSuccess-BFyOCPpD.js.map} +1 -1
- package/chunk/{StepSuccess-D3uLwpVH.js → StepSuccess-D2ZJymvE.js} +4 -4
- package/chunk/{StepSuccess-DXxmnibi.js.map → StepSuccess-D2ZJymvE.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CF1vJAwL.js → StepTeacherPersonalInfo-CQpDH1lu.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-CF1vJAwL.js.map → StepTeacherPersonalInfo-CQpDH1lu.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Dm-LW5uh.js → StepTeacherPersonalInfo-DZF9MgTQ.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-Dm-LW5uh.js.map → StepTeacherPersonalInfo-DZF9MgTQ.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-C_2QC6xv.js → TeacherSchoolComponent-BHpkm-dw.js} +4 -4
- package/chunk/{TeacherSchoolComponent-C_2QC6xv.js.map → TeacherSchoolComponent-BHpkm-dw.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-CFdPvPp4.js → TeacherSchoolComponent-to0mPiRt.js} +4 -4
- package/chunk/{TeacherSchoolComponent-CFdPvPp4.js.map → TeacherSchoolComponent-to0mPiRt.js.map} +1 -1
- package/chunk/TestingRouteOverrides-B-fy3D14.js +3 -3
- package/chunk/TestingRouteOverrides-CNrBdUEi.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-Bekn2hBS.js → VerificationApiClient-5TWq2h7g.js} +4 -4
- package/chunk/{VerificationApiClient-Bekn2hBS.js.map → VerificationApiClient-5TWq2h7g.js.map} +1 -1
- package/chunk/{VerificationApiClient-BPQW9aD2.js → VerificationApiClient-DCRPmrmy.js} +4 -4
- package/chunk/{VerificationApiClient-BPQW9aD2.js.map → VerificationApiClient-DCRPmrmy.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CR0L90MH.js → VerificationApiUtils-C6P5ADMI.js} +5 -5
- package/chunk/{VerificationApiUtils-Bj_D78B_.js.map → VerificationApiUtils-C6P5ADMI.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Bj_D78B_.js → VerificationApiUtils-CN4JXSCm.js} +5 -5
- package/chunk/{VerificationApiUtils-CR0L90MH.js.map → VerificationApiUtils-CN4JXSCm.js.map} +1 -1
- package/chunk/ar-BjzzbrcH.js +3 -3
- package/chunk/bg-Bkp5NQGt.js +3 -3
- package/chunk/bn-IN-BjHyWNcN.js +3 -3
- package/chunk/countryUtils-BUkGwgOv.js +3 -3
- package/chunk/countryUtils-BukgZOkT.js +3 -3
- package/chunk/cs-BXKIfyMn.js +3 -3
- package/chunk/da-KAd6QtNr.js +3 -3
- package/chunk/de-DJBgNK4j.js +3 -3
- package/chunk/{downshift.esm-DpXuqnbQ.js → downshift.esm-B3lxiir8.js} +4 -4
- package/chunk/{downshift.esm-DpXuqnbQ.js.map → downshift.esm-B3lxiir8.js.map} +1 -1
- package/chunk/{downshift.esm-trn0IS72.js → downshift.esm-DYBaK8k2.js} +4 -4
- package/chunk/{downshift.esm-trn0IS72.js.map → downshift.esm-DYBaK8k2.js.map} +1 -1
- package/chunk/el-D24Z3wzy.js +3 -3
- package/chunk/empties-B76EQa_e.js +3 -3
- package/chunk/empties-BCarcDSb.js +3 -3
- package/chunk/en-GB-CF3Dl7KN.js +3 -3
- package/chunk/es-CpfDbBaF.js +3 -3
- package/chunk/es-ES-NTqqQD-Z.js +3 -3
- package/chunk/et-D-MKFDXp.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-Xd-EWw-p.js +3 -3
- package/chunk/fi-vZnj0EV7.js +3 -3
- package/chunk/fr-46skWKoq.js +3 -3
- package/chunk/fr-CA-MGhcSzZR.js +3 -3
- package/chunk/ga-C6UbHKgo.js +3 -3
- package/chunk/hi-IN-D-B9DfgR.js +3 -3
- package/chunk/hr-BoMO1lAl.js +3 -3
- package/chunk/hu-C3wkObfm.js +3 -3
- package/chunk/id-DCJPXPB3.js +3 -3
- package/chunk/intl-Dlq5_d98.js +3 -3
- package/chunk/is-n7ZX-W4l.js +3 -3
- package/chunk/it-DQlsfBOE.js +3 -3
- package/chunk/iw-BKQiC-JL.js +3 -3
- package/chunk/ja-BLBbjU9-.js +3 -3
- package/chunk/jsx-runtime-DLOeB2wW.js +3 -3
- package/chunk/jsx-runtime-DpgCUpxa.js +3 -3
- package/chunk/kk--5reOjXd.js +3 -3
- package/chunk/ko-MNENZRnS.js +3 -3
- package/chunk/lo-CsZFzDBR.js +3 -3
- package/chunk/lt-B5Y8RB_n.js +3 -3
- package/chunk/lv-B8k3nXjr.js +3 -3
- package/chunk/militaryStepHelpers-BqE-KZl2.js +3 -3
- package/chunk/militaryStepHelpers-DgD1gxLi.js +3 -3
- package/chunk/mocks-BvwzMEuE.js +3 -3
- package/chunk/mocks-BzQvvEnm.js +3 -3
- package/chunk/ms-Eeq0sa2s.js +3 -3
- package/chunk/nl-BE-Q-VcH1RL.js +3 -3
- package/chunk/nl-DxP54Wjx.js +3 -3
- package/chunk/no-ANC_rNlg.js +3 -3
- package/chunk/options-kGoKaqH1.js +3 -3
- package/chunk/pl-DPRx8p-N.js +3 -3
- package/chunk/programThemeGetters-D1_n1gAQ.js +3 -3
- package/chunk/programThemeGetters-g9jo8zcw.js +3 -3
- package/chunk/pt-BR-CXuV1qFh.js +3 -3
- package/chunk/pt-D750WNnE.js +3 -3
- package/chunk/refs-aTynbs74.js +3 -3
- package/chunk/refs-rlVEzXRZ.js +3 -3
- package/chunk/ro-Dfw74qwR.js +3 -3
- package/chunk/ru-DIfpRqK4.js +3 -3
- package/chunk/sk-CPxzhPDR.js +3 -3
- package/chunk/sl-ZRK2V5CC.js +3 -3
- package/chunk/sr-DQ95rOm6.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-CcFYvoGI.js +3 -3
- package/chunk/sw-D5sN0Ucb.js +3 -3
- package/chunk/ta-BUE37EiO.js +3 -3
- package/chunk/th-BUntaztH.js +3 -3
- package/chunk/tl-CY2mXMuK.js +3 -3
- package/chunk/tr-C0uQMNlc.js +3 -3
- package/chunk/uk-D4dPV9ho.js +3 -3
- package/chunk/ur-DCmi_xNC.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-DHje25fr.js → useCollectFieldsEndpoint-CA0WUL-t.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DVsW9TzX.js.map → useCollectFieldsEndpoint-CA0WUL-t.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DVsW9TzX.js → useCollectFieldsEndpoint-Crk6K05m.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DHje25fr.js.map → useCollectFieldsEndpoint-Crk6K05m.js.map} +1 -1
- package/chunk/useMetrics-BmevR9lU.js +3 -3
- package/chunk/useMetrics-CC3avpOk.js +3 -3
- package/chunk/validators-BzVIDpk_.js +3 -3
- package/chunk/validators-ncvf0dvm.js +3 -3
- package/chunk/vi-BfTLjHg7.js +3 -3
- package/chunk/zh-CB4_bXo2.js +3 -3
- package/chunk/zh-HK-DycNxL4f.js +3 -3
- package/chunk/zu-CWhDRsFE.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +34 -34
- package/chunk/FormFooterComponent-SC3z7wto.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-CA1qdNSr.js +0 -9
package/chunk/{StepCollectPersonalInfo-B83xrl6r.js.map → StepCollectPersonalInfo-Dc7ziTls.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectPersonalInfo-B83xrl6r.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\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 updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6lBa,IAAmC,GAnhBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,EAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,GAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EAC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oB,GAAG;IAC1D,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAmC;KAAqB,QAAO;IAAsB,CAAA;IAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,WAAW,CAAC,CAAC,EAAsB;IACpC,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET,CAEkF"}
|
|
1
|
+
{"version":3,"file":"StepCollectPersonalInfo-Dc7ziTls.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\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 updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6lBa,IAAmC,GAnhBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,EAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,GAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CAEc,CAAS;CAC3B,GAEM,MAAqC,MAA0C;EAKnF,EAJgD,GAC9C,GACA,CAEc,CAAS;CAC3B,GAEM,IAAS,EAAU,aAAa,OAChC,KAAU,GAAW,GAErB,EAAE,YAAS,yBAAsB,GACjC,KAAoB,EAAQ,OAAO,CAAC,EAAE,YAAY,IAAI,EAAQ,MAAM,CAAC,GAErE,UACJ,MACC,MAAY,EAAY,mBACvB,MAAY,EAAY,WACxB,MAAY,EAAY,cACxB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G;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET,CAEkF"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, Ft as t, Wt as n, c as ee, ct as r, kt as i, n as te, yt as ne } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { a, c as o, n as s, t as c } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
|
-
import { t as re, x as ie } from "./FormFooterComponent-
|
|
11
|
-
import { n as ae } from "./VerificationApiClient-
|
|
10
|
+
import { t as re, x as ie } from "./FormFooterComponent-DPNJTTLQ.js";
|
|
11
|
+
import { n as ae } from "./VerificationApiClient-5TWq2h7g.js";
|
|
12
12
|
import { s as oe } from "./programThemeGetters-g9jo8zcw.js";
|
|
13
13
|
import { G as se, K as ce, L as l, Q as u, R as le, V as d, X as ue, et as f, q as de, r as fe, tt as p } from "../sheerid.js";
|
|
14
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
14
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-DrHxUXmn.js";
|
|
15
15
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-B3DigKNy.js";
|
|
16
|
-
import { t as S } from "./BirthDateComponent-
|
|
16
|
+
import { t as S } from "./BirthDateComponent-74LmrsUh.js";
|
|
17
17
|
import { t as C } from "./PostalCodeComponent-DC6y88Ff.js";
|
|
18
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
18
|
+
import { t as w } from "./CountryComponentWrapper-Bl2FKDot.js";
|
|
19
19
|
import { t as T } from "./City-Dr5JQzXh.js";
|
|
20
20
|
import { t as E } from "./AddressComponent-DeVavXuU.js";
|
|
21
|
-
import { t as D } from "./ExtraMessage-
|
|
22
|
-
import { t as O } from "./CollegeNameComponent-
|
|
23
|
-
import { t as k } from "./StateSelectComponent-
|
|
24
|
-
import { n as A, r as j, t as M } from "./DischargeDateComponent-
|
|
21
|
+
import { t as D } from "./ExtraMessage-BV_tbK2V.js";
|
|
22
|
+
import { t as O } from "./CollegeNameComponent-CkHW8X3_.js";
|
|
23
|
+
import { t as k } from "./StateSelectComponent-BL6nNILS.js";
|
|
24
|
+
import { n as A, r as j, t as M } from "./DischargeDateComponent-BWUkxVcX.js";
|
|
25
25
|
import { t as N } from "./DriverLicenseNumberComponent-6lnx4TLm.js";
|
|
26
|
-
import { n as P, t as F } from "./LowIncomeOrganizationComponent-
|
|
27
|
-
import { t as I } from "./StatusComponent-
|
|
28
|
-
import { t as pe } from "./FirstResponderOrganizationComponent-
|
|
29
|
-
import { t as L } from "./LicensedProfessionalOrganizationComponent-
|
|
30
|
-
import { t as R } from "./MedicalProfessionalOrganizationComponent-
|
|
26
|
+
import { n as P, t as F } from "./LowIncomeOrganizationComponent-BJWlF8dC.js";
|
|
27
|
+
import { t as I } from "./StatusComponent-lNFX8uYC.js";
|
|
28
|
+
import { t as pe } from "./FirstResponderOrganizationComponent-4IQGU7Ka.js";
|
|
29
|
+
import { t as L } from "./LicensedProfessionalOrganizationComponent-469sp0ma.js";
|
|
30
|
+
import { t as R } from "./MedicalProfessionalOrganizationComponent-DJx4Sdog.js";
|
|
31
31
|
import { t as z } from "./MemberIdComponent-CTvlL62f.js";
|
|
32
|
-
import { t as B } from "./MembershipOrganizationComponent-
|
|
33
|
-
import { t as me } from "./TeacherSchoolComponent-
|
|
32
|
+
import { t as B } from "./MembershipOrganizationComponent-B60A7V5l.js";
|
|
33
|
+
import { t as me } from "./TeacherSchoolComponent-to0mPiRt.js";
|
|
34
34
|
import { t as he } from "./SSN-Dxjw5wjo.js";
|
|
35
35
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
36
36
|
var V = /* @__PURE__ */ n(o(), 1), H = c(), U = a(({ intl: n, verificationService: a }) => {
|
package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js.map → StepCollectPersonalInfo-rd0zB5Qf.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectPersonalInfo-C-QpTTB4.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\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 updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6lBa,IAAmC,GAnhBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,GAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,GAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CAEc,CAAS;CAC3B,GAEM,MAAqC,MAA0C;EAKnF,EAJgD,GAC9C,GACA,CAEc,CAAS;CAC3B,GAEM,IAAS,EAAU,aAAa,OAChC,KAAU,GAAW,GAErB,EAAE,YAAS,yBAAsB,GACjC,KAAoB,EAAQ,OAAO,CAAC,EAAE,YAAY,IAAI,EAAQ,MAAM,CAAC,GAErE,UACJ,MACC,MAAY,EAAY,mBACvB,MAAY,EAAY,WACxB,MAAY,EAAY,cACxB,MAAY,EAAY,yBACxB,MAAY,EAA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J,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,IAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET,CAEkF"}
|
|
1
|
+
{"version":3,"file":"StepCollectPersonalInfo-rd0zB5Qf.js","names":[],"sources":["../../src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport produce from \"immer\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type Organization,\n type FormSelectChoice,\n type State,\n type CollectFieldsResponse,\n type CollectPersonalInfoResponse,\n type FieldDescription,\n type AllStatuses,\n} from \"../../lib/types/types\";\nimport {\n getAvailableStateChoices,\n orgToOption,\n getStatusLabel,\n handleEmailOnKeyDown,\n submitForm,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n produceDraftViewModelWithAllRequiredFields,\n getAvailableStatuses,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { CollegeNameComponent as CollegeName } from \"../FormFields/CollegeName/CollegeNameComponent\";\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 { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { FieldIdEnum, SegmentEnum, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DriverLicenseNumberComponent as DriverLicenseNumber } from \"../FormFields/DriverLicenseNumber/DriverLicenseNumberComponent\";\nimport { EBTCardNumberComponent } from \"../FormFields/EBTCardNumber/EBTCardNumberComponent\";\nimport { StatusComponent as Status } from \"../FormFields/Status/StatusComponent\";\nimport { LowIncomeOrganizationComponent as LowIncomeOrganization } from \"../FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { LicensedProfessionalOrganizationComponent as LicensedProfessionalOrganization } from \"../FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent\";\nimport { MedicalProfessionalOrganizationComponent as MedicalProfessionalOrganization } from \"../FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent\";\nimport { MemberIdComponent as MemberId } from \"../FormFields/MemberId/MemberIdComponent\";\nimport { MembershipOrganizationComponent as MembershipOrganization } from \"../FormFields/MembershipOrganization/MembershipOrganizationComponent\";\nimport { TeacherSchoolComponent as TeacherSchool } from \"../FormFields/TeacherSchool/TeacherSchoolComponent\";\nimport { SocialSecurityNumber } from \"../FormFields/SSN/SSN\";\nimport { DischargeDateComponent } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { getAllFieldsToCollect } from \"../../lib/ServerApi/VerificationApiClient\";\nimport { getMarketConsent } from \"../../lib/ProgramTheme/programThemeGetters\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepCollectPersonalInfoProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nexport const StepCollectPersonalInfo = ({\n intl,\n verificationService,\n}: StepCollectPersonalInfoProps) => {\n const viewModel = verificationService.viewModel as CollectPersonalInfoViewModel;\n const { updateViewModel, programTheme } = verificationService;\n\n const [requiredFields, setRequiredFields] = React.useState<FieldDescription[]>(undefined);\n\n const isFieldRequired = (key: keyof CollectPersonalInfoViewModel) =>\n requiredFields && requiredFields.some((field) => field.key === key);\n\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as CollectPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updatePersonalInfoViewModel = (key: keyof CollectPersonalInfoViewModel, value: any) => {\n const nextState: CollectPersonalInfoViewModel = produce(\n viewModel,\n (draft: CollectPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n updateViewModel(nextState);\n };\n\n const updateViewModelWithRequiredFields = (newRequiredFields: FieldDescription[]) => {\n const nextState: CollectPersonalInfoViewModel = produceDraftViewModelWithAllRequiredFields(\n viewModel,\n newRequiredFields,\n );\n updateViewModel(nextState);\n };\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const { segment, availableStatuses } = verificationResponse;\n const pascalCaseSegment = segment.charAt(0).toUpperCase() + segment.slice(1);\n\n const isStatusRequired = (): boolean =>\n availableStatuses &&\n (segment === SegmentEnum.FIRST_RESPONDER ||\n segment === SegmentEnum.MEDICAL ||\n segment === SegmentEnum.LOW_INCOME ||\n segment === SegmentEnum.LICENSED_PROFESSIONAL ||\n segment === SegmentEnum.EMPLOYMENT ||\n segment === SegmentEnum.RECENT_MOVER ||\n segment === SegmentEnum.MILITARY);\n\n const getAndSetRequiredFields = (requestBody: { statuses?: AllStatuses[] }) =>\n (async () => {\n try {\n const collectFieldsResponse: CollectFieldsResponse = await getAllFieldsToCollect(\n verificationResponse.verificationId,\n verificationResponse.currentStep,\n requestBody,\n );\n const newRequiredFields = getSafe(() => collectFieldsResponse.fieldsToCollect.required, []);\n\n if (isStatusRequired()) {\n // Adding `status` as a required input field if it's been removed by getting\n // all fields to collect with a statuses req body\n newRequiredFields.push({ key: \"status\" });\n }\n\n updateViewModelWithRequiredFields(newRequiredFields);\n setRequiredFields(newRequiredFields);\n } catch (error) {\n logger.error(`Failed to determine fields to collect: ${error}`);\n }\n })();\n\n const getOrganizationField = () => {\n switch (segment) {\n case SegmentEnum.STUDENT:\n return (\n <CollegeName\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n );\n case SegmentEnum.TEACHER:\n return (\n <TeacherSchool\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MEMBER:\n return (\n <MembershipOrganization\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).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 case SegmentEnum.MILITARY:\n return (\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.id,\n ),\n label: getSafe(\n () =>\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization.name,\n ),\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.FIRST_RESPONDER:\n return (\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.MEDICAL:\n return (\n <MedicalProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LICENSED_PROFESSIONAL:\n return (\n <LicensedProfessionalOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as CollectPersonalInfoViewModel).organization}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n case SegmentEnum.LOW_INCOME:\n return (\n <LowIncomeOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={orgToOption(\n (verificationService.viewModel as CollectPersonalInfoViewModel).organization,\n )}\n verificationService={verificationService}\n isRequired\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n );\n default:\n return null;\n }\n };\n\n React.useEffect(() => {\n if (availableStatuses && segment === SegmentEnum.MILITARY) {\n // display all required military fields by setting an initial default status\n getAndSetRequiredFields({ statuses: [] });\n } else {\n // fetch initial list of required input fields\n getAndSetRequiredFields({});\n }\n }, []);\n\n React.useEffect(() => {\n if (!getMarketConsent(programTheme).enabled && requiredFields && requiredFields.length === 0) {\n // skip this step if there are no required fields, and marketConsent is not enabled\n submitForm(viewModel, verificationService, VerificationStepsEnum.collectPersonalInfo);\n }\n }, [requiredFields]);\n\n React.useEffect(() => {\n if (viewModel.status) {\n // if status changes, re-fetch required fields because they may have changed based on selected status\n getAndSetRequiredFields({ statuses: [viewModel.status] });\n }\n }, [viewModel.status]);\n\n return (\n <div\n id=\"sid-step-personal-info-personal-info\"\n className=\"sid-personal-info-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"personal-info\"\n />\n\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n {isStatusRequired() && (\n <Status\n segmentId={segment}\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, null),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId={`invalid${pascalCaseSegment}Status`}\n options={getAvailableStatuses(intl, availableStatuses)}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updatePersonalInfoViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"organization\") && getOrganizationField()}\n\n <div className=\"sid-names\">\n {isFieldRequired(\"firstName\") && (\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"lastName\") && (\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n )}\n </div>\n\n {isFieldRequired(\"birthDate\") && (\n <BirthDate\n value={viewModel.birthDate}\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n isRequired\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"email\") && (\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation=\" \"\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"phoneNumber\") && (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updatePersonalInfoViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"dischargeDate\") && (\n <DischargeDateComponent\n errorId={fieldValidationErrors.dischargeDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"driverLicenseNumber\") && (\n <DriverLicenseNumber\n value={viewModel.driverLicenseNumber}\n isErrored={!!fieldValidationErrors.driverLicenseNumber}\n isRequired\n disabled={getFieldConfigByFieldId(\"driverLicenseNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"driverLicenseNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"driverLicenseNumber\",\n newValue,\n verificationService,\n );\n }}\n />\n )}\n\n {isFieldRequired(\"ebtCardNumber\") && (\n <EBTCardNumberComponent\n value={viewModel.ebtCardNumber}\n isErrored={!!fieldValidationErrors.ebtCardNumber}\n disabled={getFieldConfigByFieldId(\"ebtCardNumber\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"ebtCardNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"ebtCardNumber\", newValue, verificationService);\n }}\n />\n )}\n\n {isFieldRequired(\"memberId\") && (\n <MemberId\n value={viewModel.memberId}\n isErrored={!!fieldValidationErrors.memberId}\n isRequired={getFieldConfigByFieldId(\"memberId\")?.requireIfOptional}\n disabled={getFieldConfigByFieldId(\"memberId\")?.disabled}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"memberId\", newValue);\n updateFieldValidationErrorsByFieldId(\"memberId\", newValue, verificationService);\n }}\n label={\n <FormattedHTMLMessage\n id=\"step.collectMedicalPersonalInfo.registrationNumberLabel\"\n defaultMessage=\"Registration Number\"\n />\n }\n />\n )}\n\n {isFieldRequired(\"postalCode\") && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"socialSecurityNumber\") && (\n <div className=\"sid-ssn-wrapper\">\n <SocialSecurityNumber\n value={viewModel.socialSecurityNumber}\n onChange={(value: string) => {\n updatePersonalInfoViewModel(\"socialSecurityNumber\", value);\n updateFieldValidationErrorsByFieldId(\n \"socialSecurityNumber\",\n value,\n verificationService,\n );\n }}\n isErrored={!!fieldValidationErrors[FieldIdEnum.socialSecurityNumber]}\n placeholder=\"000-00-0000\"\n disabled={getFieldConfigByFieldId(\"socialSecurityNumber\")?.disabled}\n />\n </div>\n )}\n\n {isFieldRequired(\"state\") && (\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 updatePersonalInfoViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n )}\n\n {isFieldRequired(\"activeDutyStartDate\") &&\n verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updatePersonalInfoViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n />\n )}\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 updatePersonalInfoViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\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.collectPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectPersonalInfoComponent = injectIntl(StepCollectPersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6lBa,IAAmC,GAnhBR,EACtC,SACA,6BACkC;CAClC,IAAM,IAAY,EAAoB,WAChC,EAAE,oBAAiB,oBAAiB,GAEpC,CAAC,GAAgB,MAAA,EAA2B,SAA6B,KAAA,CAAS,GAElF,KAAmB,MACvB,KAAkB,EAAe,MAAM,MAAU,EAAM,QAAQ,CAAG,GAE9D,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,KAAqB,GAAsB,CAAoB,GAE/D,KAA+B,GAAyC,MAAe;EAO3F,EANgD,GAC9C,IACC,MAAwC;GACvC,EAAO,KAAe;EACxB,CAEc,CAAS;CAC3B,GAEM,MAAqC,MAA0C;EAKnF,EAJgD,GAC9C,GACA,CAEc,CAAS;CAC3B,GAEM,IAAS,EAAU,aAAa,OAChC,KAAU,GAAW,GAErB,EAAE,YAAS,yBAAsB,GACjC,KAAoB,EAAQ,OAAO,CAAC,EAAE,YAAY,IAAI,EAAQ,MAAM,CAAC,GAErE,UACJ,MACC,MAAY,EAAY,mBACvB,MAAY,EAAY,WACxB,MAAY,EAAY,cACxB,MAAY,EAAY,yBACxB,MAAY,EAAY,cACxB,MAAY,EAAY,gBACxB,MAAY,EAAY,WAEtB,KAA2B,OAC9B,YAAY;EACX,IAAI;GACF,IAAM,IAA+C,MAAM,GACzD,EAAqB,gBACrB,EAAqB,aACrB,CACF,GACM,IAAoB,QAAc,EAAsB,gBAAgB,UAAU,CAAC,CAAC;GAS1F,AAPI,EAAiB,KAGnB,EAAkB,KAAK,EAAE,KAAK,SAAS,CAAC,GAG1C,GAAkC,CAAiB,GACnD,GAAkB,CAAi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
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, Wt as t, c as n } from "./options-kGoKaqH1.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
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.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { Ht as e, jt as t, p as n } from "./intl-Dlq5_d98.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Ot as e } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { n as t, t as n } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
|
-
import { t as r } from "./ApiUrls-
|
|
10
|
+
import { t as r } from "./ApiUrls-DBbzZ_5d.js";
|
|
11
11
|
import { t as i } from "./LogoComponent-CxMD1sHy.js";
|
|
12
12
|
import { t as a } from "./CopyToClipboardComponent-BV_IRGmr.js";
|
|
13
13
|
//#region src/components/StepConsolation/StepConsolationComponent.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepConsolation-
|
|
1
|
+
{"version":3,"file":"StepConsolation-BE-Eo_IB.js","names":[],"sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService, type ConsolationResponse } from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"mappings":";;;;;;aAgHa,KApGY,EAAE,6BAAgD;CACzE,IAAM,IACH,EAAoB,qBAA6C,yBAClE,4BAEI,IAAa,EAAoB,aAA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,WAAU;KACV,KAAK;KACL,KAAK,EAAc,GAAgB,yBAAyB,CAAW;IACxE,GAJM,CAIN,CAuBN;GACE,CAAA;GAGP,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;cACb,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GACE,CAAA;GAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;IACE,WAAU;IACV,MAAK;cAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAsB,IAAG;KAAc,gBAAe;gBAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;MACf,QAAQ,EAAE,eAAY;KACvB,CAAA;IAEiB,CAAA;GACnB,CAAA;EACF;;AAET"}
|
|
@@ -4,14 +4,14 @@
|
|
|
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.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { wt as e } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { n as t, t as n } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
|
-
import { t as r } from "./ApiUrls-
|
|
14
|
+
import { t as r } from "./ApiUrls-CB34tBwu.js";
|
|
15
15
|
import { t as i } from "./LogoComponent-RNO3O5IN.js";
|
|
16
16
|
import { t as a } from "./CopyToClipboardComponent-C_H3DLRY.js";
|
|
17
17
|
//#region src/components/StepConsolation/StepConsolationComponent.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepConsolation-
|
|
1
|
+
{"version":3,"file":"StepConsolation-BbenSSL0.js","names":[],"sources":["../../src/components/StepConsolation/StepConsolationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService, type ConsolationResponse } from \"../../lib/types/types\";\nimport { LogoComponent } from \"../LogoComponent/LogoComponent\";\nimport { CopyToClipboard } from \"../CopyToClipboard/CopyToClipboardComponent\";\nimport { RewardDisplayEnum } from \"../../lib/types/runtimeTypes\";\nimport { getBarcodeUrl } from \"../../lib/ServerApi/ApiUrls\";\n\ninterface StepConsolationProps {\n verificationService: VerificationService;\n}\n\nconst StepConsolation = ({ verificationService }: StepConsolationProps) => {\n const consolationRewardCode =\n (verificationService.verificationResponse as ConsolationResponse).consolationRewardCode ||\n \"${consolationRewardCode}\"; // eslint-disable-line no-template-curly-in-string\n\n const noCodeType = verificationService.programTheme.config.offerType === \"noCode\";\n const { verificationId } = verificationService.verificationResponse;\n\n const { rewardDisplay } = verificationService.programTheme.config;\n const showReward = !noCodeType && !!rewardDisplay.length;\n\n return (\n <div id=\"sid-step-consolation\" className=\"sid-l-container\">\n <div className=\"sid-header sid-l-horz-center sid-l-space-top-md\">\n <div className=\"sid-l-horz-center\">\n <LogoComponent verificationService={verificationService} />\n </div>\n\n <div\n className=\"sid-header__title sid-l-horz-center sid-l-space-top-md\"\n id=\"consolation-status\"\n role=\"alertdialog\"\n >\n <FormattedHTMLMessage\n id=\"step.consolation.title\"\n defaultMessage=\"Claim your offer\"\n tagName=\"h1\"\n />\n </div>\n\n <div className=\"sid-l-horz-center\">\n <FormattedHTMLMessage\n id=\"step.consolation.subtitle\"\n defaultMessage=\"Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once.\"\n />\n </div>\n </div>\n\n {showReward && (\n <div className=\"sid-l-horz-center sid-reward-container sid-l-space-top-md\">\n {rewardDisplay.map((displayType) => {\n if (displayType !== RewardDisplayEnum.TEXT)\n return (\n <img\n key={displayType}\n className=\"sid-l-space-top-md sid-barcode\"\n alt={consolationRewardCode}\n src={getBarcodeUrl(verificationId, \"consolationRewardCode\", displayType)}\n />\n );\n return (\n <>\n <div\n className=\"sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center\"\n role=\"region\"\n >\n {consolationRewardCode}\n </div>\n <div className=\"sid-l-space-top-md sid-h-bold-text sid-l-horz-center\">\n <CopyToClipboard\n textToCopy={consolationRewardCode}\n notificationText={<FormattedHTMLMessage id=\"copied\" defaultMessage=\"Copied\" />}\n >\n <FormattedHTMLMessage\n id=\"step.success.copyCouponCode\"\n defaultMessage=\"Copy Coupon code\"\n />\n </CopyToClipboard>\n </div>\n </>\n );\n })}\n </div>\n )}\n\n <div className=\"sid-footer sid-l-horz-center sid-l-space-top-lg\">\n <FormattedHTMLMessage\n id=\"rewardCodeEmailNotification\"\n defaultMessage=\"We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com.\"\n />\n </div>\n\n <div\n className=\"sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text\"\n role=\"contentinfo\"\n >\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedHTMLMessage\n id=\"step.consolation.verificationOnly\"\n defaultMessage=\"Please direct any and all questions about this offer to {companyName}.\"\n values={{ companyName }}\n />\n )}\n </FormattedHTMLMessage>\n </div>\n </div>\n );\n};\n\nexport const StepConsolationComponent = StepConsolation;\n"],"mappings":";;;;;;aAgHa,KApGY,EAAE,6BAAgD;CACzE,IAAM,IACH,EAAoB,qBAA6C,yBAClE,4BAEI,IAAa,EAAoB,aAAa,OAAO,cAAc,UACnE,EAAE,sBAAmB,EAAoB,sBAEzC,EAAE,qBAAkB,EAAoB,aAAa,QACrD,IAAa,CAAC,KAAc,CAAC,CAAC,EAAc;CAElD,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;E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A,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GACE,CAAA;GAEL,iBAAA,GAAA,EAAA,KAAC,OAAD;IACE,WAAU;IACV,MAAK;cAEL,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAsB,IAAG;KAAc,gBAAe;gBAClD,MACA,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;MACf,QAAQ,EAAE,eAAY;KACvB,CAAA;IAEiB,CAAA;GACnB,CAAA;EACF;;AAET"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, Ft as t, Ht as n, Mt as r, N as i, Wt as a, c as o, ct as s, d as c, kt as l, m as u } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { a as d, c as f, n as p, o as m, t as h } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
|
-
import { t as ee } from "./FormFooterComponent-
|
|
10
|
+
import { t as ee } from "./FormFooterComponent-DPNJTTLQ.js";
|
|
11
11
|
import { i as g } from "./TestingRouteOverrides-CNrBdUEi.js";
|
|
12
12
|
import { a as _ } from "./validators-ncvf0dvm.js";
|
|
13
13
|
import { n as te, o as ne } from "./refs-rlVEzXRZ.js";
|