@sheerid/jslib 2.313.0 → 2.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +37 -37
- package/chunk/{AddressComponent-xHLmwR7C.js → AddressComponent-BUOibRxr.js} +5 -5
- package/chunk/{AddressComponent-BHiOCbUv.js.map → AddressComponent-BUOibRxr.js.map} +1 -1
- package/chunk/{AddressComponent-BHiOCbUv.js → AddressComponent-uhBMgV3q.js} +5 -5
- package/chunk/{AddressComponent-xHLmwR7C.js.map → AddressComponent-uhBMgV3q.js.map} +1 -1
- package/chunk/AnnouncingHeader-CM01vEpF.js +4 -4
- package/chunk/AnnouncingHeader-CSh0UW8I.js +4 -4
- package/chunk/{BirthDateComponent-D5pVkYha.js → BirthDateComponent-DEm62ubJ.js} +5 -5
- package/chunk/{BirthDateComponent-CRbZs5-I.js.map → BirthDateComponent-DEm62ubJ.js.map} +1 -1
- package/chunk/{BirthDateComponent-CRbZs5-I.js → BirthDateComponent-i59ScGu6.js} +5 -5
- package/chunk/{BirthDateComponent-D5pVkYha.js.map → BirthDateComponent-i59ScGu6.js.map} +1 -1
- package/chunk/{CaptchaComponent-DpiYztJ5.js → CaptchaComponent-BD4yKfJR.js} +8 -8
- package/chunk/{CaptchaComponent-DpiYztJ5.js.map → CaptchaComponent-BD4yKfJR.js.map} +1 -1
- package/chunk/{CaptchaComponent-Bay_IP0-.js → CaptchaComponent-g9Ye-t7Z.js} +8 -8
- package/chunk/{CaptchaComponent-Bay_IP0-.js.map → CaptchaComponent-g9Ye-t7Z.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-Bmq-3m3v.js → ChangeLocaleComponent-DBoMb2NA.js} +8 -8
- package/chunk/{ChangeLocaleComponent-Bmq-3m3v.js.map → ChangeLocaleComponent-DBoMb2NA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BMuiuSyJ.js → ChangeLocaleComponent-Drpt_vzW.js} +8 -8
- package/chunk/{ChangeLocaleComponent-BMuiuSyJ.js.map → ChangeLocaleComponent-Drpt_vzW.js.map} +1 -1
- package/chunk/{City-CFAsI7Sk.js → City-IKHXV6fA.js} +5 -5
- package/chunk/{City-CFAsI7Sk.js.map → City-IKHXV6fA.js.map} +1 -1
- package/chunk/{City-SZ26Bigy.js → City-gBRdOIsP.js} +5 -5
- package/chunk/{City-SZ26Bigy.js.map → City-gBRdOIsP.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CXQ4oYar.js → CollegeNameComponent-CQvKnECH.js} +8 -8
- package/chunk/{CollegeNameComponent-CXQ4oYar.js.map → CollegeNameComponent-CQvKnECH.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BGNJ8dpo.js → CollegeNameComponent-DpMt-iEi.js} +8 -8
- package/chunk/{CollegeNameComponent-BGNJ8dpo.js.map → CollegeNameComponent-DpMt-iEi.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BN9qCovT.js +4 -4
- package/chunk/CopyToClipboardComponent-Dag4rxf8.js +4 -4
- package/chunk/{CountryComponentWrapper-Ck2iP9bh.js → CountryComponentWrapper-A-NCx760.js} +8 -8
- package/chunk/{CountryComponentWrapper-Ck2iP9bh.js.map → CountryComponentWrapper-A-NCx760.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BlVfixh4.js → CountryComponentWrapper-DHUcGCUF.js} +8 -8
- package/chunk/{CountryComponentWrapper-BlVfixh4.js.map → CountryComponentWrapper-DHUcGCUF.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DzNKj6v5.js → DischargeDateComponent-CifKJfBT.js} +9 -9
- package/chunk/{DischargeDateComponent-DzNKj6v5.js.map → DischargeDateComponent-CifKJfBT.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C8PJeyup.js → DischargeDateComponent-DAeyxPdd.js} +9 -9
- package/chunk/{DischargeDateComponent-C8PJeyup.js.map → DischargeDateComponent-DAeyxPdd.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-B383rPMu.js → DriverLicenseNumberComponent-4I1cN8DR.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-9PlXE0Yo.js.map → DriverLicenseNumberComponent-4I1cN8DR.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-9PlXE0Yo.js → DriverLicenseNumberComponent-ej0LVqRI.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-B383rPMu.js.map → DriverLicenseNumberComponent-ej0LVqRI.js.map} +1 -1
- package/chunk/{EmailLoopPending-pvrnAh2C.js → EmailLoopPending-DQ4KVVzP.js} +6 -6
- package/chunk/{EmailLoopPending-pvrnAh2C.js.map → EmailLoopPending-DQ4KVVzP.js.map} +1 -1
- package/chunk/{EmailLoopPending-29RXro2U.js → EmailLoopPending-DnPlbLqA.js} +6 -6
- package/chunk/{EmailLoopPending-29RXro2U.js.map → EmailLoopPending-DnPlbLqA.js.map} +1 -1
- package/chunk/{ExtraMessage-QVMqiZm3.js → ExtraMessage-CzchllLx.js} +5 -5
- package/chunk/{ExtraMessage-CBPYszyt.js.map → ExtraMessage-CzchllLx.js.map} +1 -1
- package/chunk/{ExtraMessage-CBPYszyt.js → ExtraMessage-v4rZ0l8r.js} +5 -5
- package/chunk/{ExtraMessage-QVMqiZm3.js.map → ExtraMessage-v4rZ0l8r.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CjhnnEGx.js → FirstResponderOrganizationComponent-DUn8PxZo.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-CjhnnEGx.js.map → FirstResponderOrganizationComponent-DUn8PxZo.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DyWgLJrZ.js → FirstResponderOrganizationComponent-JsNBGiPH.js} +8 -8
- package/chunk/{FirstResponderOrganizationComponent-DyWgLJrZ.js.map → FirstResponderOrganizationComponent-JsNBGiPH.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-TMLbT75m.js → FormFieldInputSelect-CtLIp6NY.js} +5 -5
- package/chunk/{FormFieldInputSelect-TMLbT75m.js.map → FormFieldInputSelect-CtLIp6NY.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-bCj6cOF6.js → FormFieldInputSelect-DzfYVFe2.js} +5 -5
- package/chunk/{FormFieldInputSelect-bCj6cOF6.js.map → FormFieldInputSelect-DzfYVFe2.js.map} +1 -1
- package/chunk/FormFieldLayout-KJilu-sR.js +4 -4
- package/chunk/FormFieldLayout-UCIBwDRH.js +4 -4
- package/chunk/FormFieldText-B_2IOFED.js +4 -4
- package/chunk/FormFieldText-CkPmuIPf.js +4 -4
- package/chunk/{FormFieldTypeahead-D65hqbmm.js → FormFieldTypeahead-BQGJX1il.js} +8 -8
- package/chunk/{FormFieldTypeahead-D65hqbmm.js.map → FormFieldTypeahead-BQGJX1il.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-pQn7b3qO.js → FormFieldTypeahead-BjsW2DUM.js} +8 -8
- package/chunk/{FormFieldTypeahead-pQn7b3qO.js.map → FormFieldTypeahead-BjsW2DUM.js.map} +1 -1
- package/chunk/{FormFooterComponent-AuOOdrTD.js → FormFooterComponent-B7fUP0wx.js} +8 -8
- package/chunk/{FormFooterComponent-AuOOdrTD.js.map → FormFooterComponent-B7fUP0wx.js.map} +1 -1
- package/chunk/{FormFooterComponent-DBtwjSTL.js → FormFooterComponent-BTfz7YAX.js} +8 -8
- package/chunk/{FormFooterComponent-DBtwjSTL.js.map → FormFooterComponent-BTfz7YAX.js.map} +1 -1
- package/chunk/{FormSelectChoice-DFY-ryks.js → FormSelectChoice-DGDSioEg.js} +6 -6
- package/chunk/{FormSelectChoice-DFY-ryks.js.map → FormSelectChoice-DGDSioEg.js.map} +1 -1
- package/chunk/{FormSelectChoice-6hD-rK1b.js → FormSelectChoice-DN3XV8go.js} +6 -6
- package/chunk/{FormSelectChoice-6hD-rK1b.js.map → FormSelectChoice-DN3XV8go.js.map} +1 -1
- package/chunk/InputText-Bvj815Th.js +4 -4
- package/chunk/InputText-C2qEtF0t.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-z7QjAVXa.js → LicensedProfessionalOrganizationComponent-C43VAUdy.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-z7QjAVXa.js.map → LicensedProfessionalOrganizationComponent-C43VAUdy.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BGQZWcaF.js → LicensedProfessionalOrganizationComponent-DEwASktt.js} +8 -8
- package/chunk/{LicensedProfessionalOrganizationComponent-BGQZWcaF.js.map → LicensedProfessionalOrganizationComponent-DEwASktt.js.map} +1 -1
- package/chunk/{LogoComponent-BSmQaKpz.js → LogoComponent-BoEYsksW.js} +5 -5
- package/chunk/{LogoComponent-BSmQaKpz.js.map → LogoComponent-BoEYsksW.js.map} +1 -1
- package/chunk/{LogoComponent-Bj0nuSsL.js → LogoComponent-C2diSRfu.js} +5 -5
- package/chunk/{LogoComponent-Bj0nuSsL.js.map → LogoComponent-C2diSRfu.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BqbzF7QP.js → LowIncomeOrganizationComponent-D9qAHj0m.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-BqbzF7QP.js.map → LowIncomeOrganizationComponent-D9qAHj0m.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DfcG7yCt.js → LowIncomeOrganizationComponent-bijYf_Ae.js} +9 -9
- package/chunk/{LowIncomeOrganizationComponent-DfcG7yCt.js.map → LowIncomeOrganizationComponent-bijYf_Ae.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-6KnihjFH.js → MedicalProfessionalOrganizationComponent-CMDxCj_U.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-6KnihjFH.js.map → MedicalProfessionalOrganizationComponent-CMDxCj_U.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BlHxJHTt.js → MedicalProfessionalOrganizationComponent-CsZ0PEb5.js} +8 -8
- package/chunk/{MedicalProfessionalOrganizationComponent-BlHxJHTt.js.map → MedicalProfessionalOrganizationComponent-CsZ0PEb5.js.map} +1 -1
- package/chunk/{MemberIdComponent-CxKnpzyG.js → MemberIdComponent-B9vrsE-q.js} +5 -5
- package/chunk/{MemberIdComponent--hy77hro.js.map → MemberIdComponent-B9vrsE-q.js.map} +1 -1
- package/chunk/{MemberIdComponent--hy77hro.js → MemberIdComponent-JTyvLPTU.js} +5 -5
- package/chunk/{MemberIdComponent-CxKnpzyG.js.map → MemberIdComponent-JTyvLPTU.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CiSCMO-v.js → MembershipOrganizationComponent-C5dWGUPp.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-CiSCMO-v.js.map → MembershipOrganizationComponent-C5dWGUPp.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-C2tLFp9O.js → MembershipOrganizationComponent-Dwnrko48.js} +8 -8
- package/chunk/{MembershipOrganizationComponent-C2tLFp9O.js.map → MembershipOrganizationComponent-Dwnrko48.js.map} +1 -1
- package/chunk/{Message-Dn888b-7.js → Message-CexO4eZq.js} +5 -5
- package/chunk/{Message-Dn888b-7.js.map → Message-CexO4eZq.js.map} +1 -1
- package/chunk/{Message-CftKT89p.js → Message-YS1p6ov3.js} +5 -5
- package/chunk/{Message-CftKT89p.js.map → Message-YS1p6ov3.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-CR8ta98F.js → PersonalInfoStepSubmitButton-Ds_-FUfA.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-CR8ta98F.js.map → PersonalInfoStepSubmitButton-Ds_-FUfA.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-CTdBFGeG.js → PersonalInfoStepSubmitButton-vpNt-1XI.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-CTdBFGeG.js.map → PersonalInfoStepSubmitButton-vpNt-1XI.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DbqQudr4.js → PersonalInfoStepWrapper-CJzVOQ_x.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-DbqQudr4.js.map → PersonalInfoStepWrapper-CJzVOQ_x.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CPDfbnD6.js → PersonalInfoStepWrapper-CyCuyImb.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-CPDfbnD6.js.map → PersonalInfoStepWrapper-CyCuyImb.js.map} +1 -1
- package/chunk/{PostalCodeComponent-tJKRpJv-.js → PostalCodeComponent-B25YSrIO.js} +5 -5
- package/chunk/{PostalCodeComponent-D-7iqpnt.js.map → PostalCodeComponent-B25YSrIO.js.map} +1 -1
- package/chunk/{PostalCodeComponent-D-7iqpnt.js → PostalCodeComponent-IMgjUHRf.js} +5 -5
- package/chunk/{PostalCodeComponent-tJKRpJv-.js.map → PostalCodeComponent-IMgjUHRf.js.map} +1 -1
- package/chunk/{SSN-BQppmw27.js → SSN-0xlUI5ik.js} +5 -5
- package/chunk/{SSN-BQppmw27.js.map → SSN-0xlUI5ik.js.map} +1 -1
- package/chunk/{SSN-B5YqbTT5.js → SSN-BjBIZSyh.js} +5 -5
- package/chunk/{SSN-B5YqbTT5.js.map → SSN-BjBIZSyh.js.map} +1 -1
- package/chunk/{StateSelectComponent-DpYIJuax.js → StateSelectComponent-aAvCOLUg.js} +6 -6
- package/chunk/{StateSelectComponent-DpYIJuax.js.map → StateSelectComponent-aAvCOLUg.js.map} +1 -1
- package/chunk/{StateSelectComponent-CWadMo4I.js → StateSelectComponent-uKT0CUkG.js} +6 -6
- package/chunk/{StateSelectComponent-CWadMo4I.js.map → StateSelectComponent-uKT0CUkG.js.map} +1 -1
- package/chunk/{StatusComponent-BBX4mkER.js → StatusComponent-CmqMjhRY.js} +6 -6
- package/chunk/{StatusComponent-BBX4mkER.js.map → StatusComponent-CmqMjhRY.js.map} +1 -1
- package/chunk/{StatusComponent-Ct5RQIkF.js → StatusComponent-DqlhdO7Q.js} +6 -6
- package/chunk/{StatusComponent-Ct5RQIkF.js.map → StatusComponent-DqlhdO7Q.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-D-tK0wBW.js → StepAgePersonalInfo-BMB7unTI.js} +17 -17
- package/chunk/{StepAgePersonalInfo-D-tK0wBW.js.map → StepAgePersonalInfo-BMB7unTI.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-1PdZQGtF.js → StepAgePersonalInfo-D0vIoD_n.js} +17 -17
- package/chunk/{StepAgePersonalInfo-1PdZQGtF.js.map → StepAgePersonalInfo-D0vIoD_n.js.map} +1 -1
- package/chunk/StepCard-BEucy3JJ.js +4 -4
- package/chunk/StepCard-Blp7ZcI-.js +4 -4
- package/chunk/{StepCollectIdentifier-itJ5kD--.js → StepCollectIdentifier-B_IWZFnm.js} +6 -6
- package/chunk/{StepCollectIdentifier-itJ5kD--.js.map → StepCollectIdentifier-B_IWZFnm.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DBzFener.js → StepCollectIdentifier-RF_12KR0.js} +6 -6
- package/chunk/{StepCollectIdentifier-DBzFener.js.map → StepCollectIdentifier-RF_12KR0.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CJ6z6yOJ.js → StepCollectMilitaryPersonalInfoComponent-CTniITbD.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CJ6z6yOJ.js.map → StepCollectMilitaryPersonalInfoComponent-CTniITbD.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-D6XSgd_g.js → StepCollectMilitaryPersonalInfoComponent-D9Z8yHB3.js} +22 -22
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-D6XSgd_g.js.map → StepCollectMilitaryPersonalInfoComponent-D9Z8yHB3.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-D2aFS5zY.js → StepCollectPersonalInfo-Bmu7n4bc.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-D2aFS5zY.js.map → StepCollectPersonalInfo-Bmu7n4bc.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-CceFy_mY.js → StepCollectPersonalInfo-CYAL3QrN.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-CceFy_mY.js.map → StepCollectPersonalInfo-CYAL3QrN.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-B_0EZ3mH.js +4 -4
- package/chunk/StepCompleteAuthentication-Ds3ieihr.js +4 -4
- package/chunk/{StepConsolation-B5w29LmQ.js → StepConsolation-D12aSsuO.js} +6 -6
- package/chunk/{StepConsolation-B5w29LmQ.js.map → StepConsolation-D12aSsuO.js.map} +1 -1
- package/chunk/{StepConsolation-uujlfm7I.js → StepConsolation-mzf-Xvuk.js} +6 -6
- package/chunk/{StepConsolation-uujlfm7I.js.map → StepConsolation-mzf-Xvuk.js.map} +1 -1
- package/chunk/{StepDocUpload-CCakJpRJ.js → StepDocUpload-BZ1I9-VI.js} +8 -8
- package/chunk/{StepDocUpload-CCakJpRJ.js.map → StepDocUpload-BZ1I9-VI.js.map} +1 -1
- package/chunk/{StepDocUpload-BWHsVHYJ.js → StepDocUpload-_qGcWolC.js} +8 -8
- package/chunk/{StepDocUpload-BWHsVHYJ.js.map → StepDocUpload-_qGcWolC.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DBJI6e7M.js → StepDriverLicensePersonalInfoComponent-BRLFwKvG.js} +13 -13
- package/chunk/{StepDriverLicensePersonalInfoComponent-DBJI6e7M.js.map → StepDriverLicensePersonalInfoComponent-BRLFwKvG.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BsO8PaEy.js → StepDriverLicensePersonalInfoComponent-DTjd9EPj.js} +13 -13
- package/chunk/{StepDriverLicensePersonalInfoComponent-BsO8PaEy.js.map → StepDriverLicensePersonalInfoComponent-DTjd9EPj.js.map} +1 -1
- package/chunk/{StepEmailLoop-CRuym7fa.js → StepEmailLoop-2ftuvoPd.js} +7 -7
- package/chunk/{StepEmailLoop-CRuym7fa.js.map → StepEmailLoop-2ftuvoPd.js.map} +1 -1
- package/chunk/{StepEmailLoop-C-1f3M13.js → StepEmailLoop-CqjFTe3c.js} +7 -7
- package/chunk/{StepEmailLoop-C-1f3M13.js.map → StepEmailLoop-CqjFTe3c.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CdJDYIwe.js → StepEmploymentPersonalInfo-B-iW-S7t.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-CdJDYIwe.js.map → StepEmploymentPersonalInfo-B-iW-S7t.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CNMdyOJ_.js → StepEmploymentPersonalInfo-D7Dp0Cg4.js} +18 -18
- package/chunk/{StepEmploymentPersonalInfo-CNMdyOJ_.js.map → StepEmploymentPersonalInfo-D7Dp0Cg4.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BqRzEbuo.js → StepFirstResponderPersonalInfo-CPSAt1KD.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-BqRzEbuo.js.map → StepFirstResponderPersonalInfo-CPSAt1KD.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-AXfXETg6.js → StepFirstResponderPersonalInfo-LhAbOSlA.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-AXfXETg6.js.map → StepFirstResponderPersonalInfo-LhAbOSlA.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C7tkvOBU.js → StepGeneralIdentityPersonalInfoComponent-CgtkLEB0.js} +16 -16
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C7tkvOBU.js.map → StepGeneralIdentityPersonalInfoComponent-CgtkLEB0.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CUn2efgL.js → StepGeneralIdentityPersonalInfoComponent-t9Kkem2-.js} +16 -16
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CUn2efgL.js.map → StepGeneralIdentityPersonalInfoComponent-t9Kkem2-.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B8SSBkHj.js → StepHybridIdentityPersonalInfoComponent-BUMAYXNM.js} +17 -17
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B8SSBkHj.js.map → StepHybridIdentityPersonalInfoComponent-BUMAYXNM.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DtLvoAhk.js → StepHybridIdentityPersonalInfoComponent-iHwo3WsG.js} +17 -17
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DtLvoAhk.js.map → StepHybridIdentityPersonalInfoComponent-iHwo3WsG.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CVfnTFcW.js → StepIDCheckLoop-CHAvBy1v.js} +5 -5
- package/chunk/{StepIDCheckLoop-CVfnTFcW.js.map → StepIDCheckLoop-CHAvBy1v.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BuNNOIEe.js → StepIDCheckLoop-CLclpa5W.js} +5 -5
- package/chunk/{StepIDCheckLoop-BuNNOIEe.js.map → StepIDCheckLoop-CLclpa5W.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CTFc-TCg.js → StepIDCheckLoopOnfido-BvBFfhtv.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-CTFc-TCg.js.map → StepIDCheckLoopOnfido-BvBFfhtv.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DTkwFKIA.js → StepIDCheckLoopOnfido-DSXpRkVG.js} +8 -8
- package/chunk/{StepIDCheckLoopOnfido-DTkwFKIA.js.map → StepIDCheckLoopOnfido-DSXpRkVG.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-jXzfuOeA.js → StepIDCheckLoopRegula-B1ScLVSh.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-jXzfuOeA.js.map → StepIDCheckLoopRegula-B1ScLVSh.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-rDapkJ6d.js → StepIDCheckLoopRegula-BX_r_E4L.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-rDapkJ6d.js.map → StepIDCheckLoopRegula-BX_r_E4L.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-SbTP67r7.js → StepLicensedProfessionalPersonalInfo-D6e0aKcx.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-SbTP67r7.js.map → StepLicensedProfessionalPersonalInfo-D6e0aKcx.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BrIV2PqV.js → StepLicensedProfessionalPersonalInfo-PDja7OV9.js} +19 -19
- package/chunk/{StepLicensedProfessionalPersonalInfo-BrIV2PqV.js.map → StepLicensedProfessionalPersonalInfo-PDja7OV9.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C5_F7QeG.js → StepLowIncomePersonalInfo-BDgG3QSv.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-C5_F7QeG.js.map → StepLowIncomePersonalInfo-BDgG3QSv.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BMESrbPv.js → StepLowIncomePersonalInfo-D2qFMg0V.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-BMESrbPv.js.map → StepLowIncomePersonalInfo-D2qFMg0V.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo--mcpwTM-.js → StepMedicalProfessionalPersonalInfo-1XPLI2W3.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo--mcpwTM-.js.map → StepMedicalProfessionalPersonalInfo-1XPLI2W3.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-dLbOXQIJ.js → StepMedicalProfessionalPersonalInfo-BC0lr1WI.js} +20 -20
- package/chunk/{StepMedicalProfessionalPersonalInfo-dLbOXQIJ.js.map → StepMedicalProfessionalPersonalInfo-BC0lr1WI.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Bcbs11kI.js → StepMemberPersonalInfo-BFKv1wPh.js} +15 -15
- package/chunk/{StepMemberPersonalInfo-Bcbs11kI.js.map → StepMemberPersonalInfo-BFKv1wPh.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BKHMUtj2.js → StepMemberPersonalInfo-RyxtQuwt.js} +15 -15
- package/chunk/{StepMemberPersonalInfo-BKHMUtj2.js.map → StepMemberPersonalInfo-RyxtQuwt.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DHGhPTGD.js → StepMoverPersonalInfo-BX_5wilp.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-DHGhPTGD.js.map → StepMoverPersonalInfo-BX_5wilp.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BKJIrW0I.js → StepMoverPersonalInfo-Cl4UiqSf.js} +13 -13
- package/chunk/{StepMoverPersonalInfo-BKJIrW0I.js.map → StepMoverPersonalInfo-Cl4UiqSf.js.map} +1 -1
- package/chunk/{StepOverrideComponent-7rPDbArF.js → StepOverrideComponent-CPCNavii.js} +7 -7
- package/chunk/{StepOverrideComponent-7rPDbArF.js.map → StepOverrideComponent-CPCNavii.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BegU2Ypq.js → StepOverrideComponent-mD4Wijhb.js} +7 -7
- package/chunk/{StepOverrideComponent-BegU2Ypq.js.map → StepOverrideComponent-mD4Wijhb.js.map} +1 -1
- package/chunk/{StepSMSLoop-WMnyUemP.js → StepSMSLoop-DE9FVO3o.js} +5 -5
- package/chunk/{StepSMSLoop-WMnyUemP.js.map → StepSMSLoop-DE9FVO3o.js.map} +1 -1
- package/chunk/{StepSMSLoop-k6YbuoGy.js → StepSMSLoop-l4LDphcg.js} +5 -5
- package/chunk/{StepSMSLoop-k6YbuoGy.js.map → StepSMSLoop-l4LDphcg.js.map} +1 -1
- package/chunk/StepSSO-Bx1gQq5b.js +4 -4
- package/chunk/StepSSO-Cy9ViRyN.js +4 -4
- package/chunk/{StepSocialSecurityNumber-DwYQJFSw.js → StepSocialSecurityNumber-Bjru8M0j.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-DwYQJFSw.js.map → StepSocialSecurityNumber-Bjru8M0j.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-Djep-ZY1.js → StepSocialSecurityNumber-DPstxLu3.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-Djep-ZY1.js.map → StepSocialSecurityNumber-DPstxLu3.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DbSj3RAG.js → StepStudentPersonalInfo-BIewd34q.js} +18 -18
- package/chunk/{StepStudentPersonalInfo-DbSj3RAG.js.map → StepStudentPersonalInfo-BIewd34q.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-3JoFLWbf.js → StepStudentPersonalInfo-DRvZ3Vtb.js} +18 -18
- package/chunk/{StepStudentPersonalInfo-3JoFLWbf.js.map → StepStudentPersonalInfo-DRvZ3Vtb.js.map} +1 -1
- package/chunk/{StepSuccess-QubTi-Zr.js → StepSuccess-Dh1ycMJX.js} +6 -6
- package/chunk/{StepSuccess-QubTi-Zr.js.map → StepSuccess-Dh1ycMJX.js.map} +1 -1
- package/chunk/{StepSuccess-Detlzl_x.js → StepSuccess-XOl1mdFQ.js} +6 -6
- package/chunk/{StepSuccess-Detlzl_x.js.map → StepSuccess-XOl1mdFQ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CcCuMb2Q.js → StepTeacherPersonalInfo-B8foLmZZ.js} +16 -16
- package/chunk/{StepTeacherPersonalInfo-CcCuMb2Q.js.map → StepTeacherPersonalInfo-B8foLmZZ.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DgbTjRnf.js → StepTeacherPersonalInfo-ip_pVe12.js} +16 -16
- package/chunk/{StepTeacherPersonalInfo-DgbTjRnf.js.map → StepTeacherPersonalInfo-ip_pVe12.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BFizJiyZ.js +4 -4
- package/chunk/StepThirdPartyLoop-C9d7QWS3.js +4 -4
- package/chunk/{TeacherSchoolComponent-B6wZwHb1.js → TeacherSchoolComponent-kPobTv7N.js} +8 -8
- package/chunk/{TeacherSchoolComponent-B6wZwHb1.js.map → TeacherSchoolComponent-kPobTv7N.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DF0oyfLp.js → TeacherSchoolComponent-nB-dP00I.js} +8 -8
- package/chunk/{TeacherSchoolComponent-DF0oyfLp.js.map → TeacherSchoolComponent-nB-dP00I.js.map} +1 -1
- package/chunk/TestingRouteOverrides-DXjtFZZd.js +4 -4
- package/chunk/TestingRouteOverrides-fnlJLg1Z.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-DC8twM4t.js +4 -4
- package/chunk/countryUtils-DqbdyVbZ.js +12 -0
- package/chunk/{countryUtils-CF4wYFAO.js.map → countryUtils-DqbdyVbZ.js.map} +1 -1
- package/chunk/{countryUtils-DVCfJNrG.js → countryUtils-R4Q_aquD.js} +5 -5
- package/chunk/{countryUtils-DVCfJNrG.js.map → countryUtils-R4Q_aquD.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-Dnlt_89v.js → downshift.esm-D2aHUCbq.js} +5 -5
- package/chunk/{downshift.esm-Dnlt_89v.js.map → downshift.esm-D2aHUCbq.js.map} +1 -1
- package/chunk/{downshift.esm-Dg8Q4WfY.js → downshift.esm-DQMomT6K.js} +5 -5
- package/chunk/{downshift.esm-Dg8Q4WfY.js.map → downshift.esm-DQMomT6K.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-BBKd53_B.js +4 -4
- package/chunk/empties-DcQjcgEV.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/getInstallType-BRxisNNY.js +4 -4
- package/chunk/getInstallType-DlS_DNKt.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-B7aeAwHn.js +4 -4
- package/chunk/hooks-D0X_qdc-.js +4 -4
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/i18next-iyVj5hRL.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/intl-BK4prEGw.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-BUMIo32n.js +4 -4
- package/chunk/jsx-runtime-DwmrsRqi.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramBranding-C9Ysu3Mp.js +4 -4
- package/chunk/mockProgramConfiguration-BNqSCrMG.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramTheme-Cfk2dzF3.js +4 -4
- package/chunk/mocks-DV23paUj.js +4 -4
- package/chunk/mocks-R-p7VtJz.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-Ds4txnn8.js → programThemeGetters-0iwXNOx6.js} +5 -5
- package/chunk/{programThemeGetters-Ds4txnn8.js.map → programThemeGetters-0iwXNOx6.js.map} +1 -1
- package/chunk/{programThemeGetters-Dcff4Bu0.js → programThemeGetters-BEzpDnQy.js} +5 -5
- package/chunk/{programThemeGetters-Dcff4Bu0.js.map → programThemeGetters-BEzpDnQy.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/stepComponentHelpers-CyqXTDdj.js +4 -4
- package/chunk/stepComponentHelpers-Dztw-HNP.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-CslbAox0.js → useCollectFieldsEndpoint-BbzTOhC3.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CslbAox0.js.map → useCollectFieldsEndpoint-BbzTOhC3.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Dye0dLpF.js → useCollectFieldsEndpoint-CKn8va6d.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-Dye0dLpF.js.map → useCollectFieldsEndpoint-CKn8va6d.js.map} +1 -1
- package/chunk/useMetrics-C13Ap129.js +4 -4
- package/chunk/useMetrics-O66_lNx5.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +37 -37
- package/chunk/countryUtils-CF4wYFAO.js +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-CJ6z6yOJ.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","FormattedHTMLMessage","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.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 updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa+C,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOjD,EAAQgD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,C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IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAACkB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-CTniITbD.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","require_jsx_runtime","useProgramConfiguration","VerificationStepsEnum","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","FormattedHTMLMessage","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.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 updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa+C,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOjD,EAAQgD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CA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AAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAACkB,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
@@ -4,35 +4,35 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.315.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793755578665
|
|
9
|
+
* BUILD_DATE: Wed Nov 04 2026 01:26:18 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 22244e83657b6c12023c5aac9710b7924aab6459
|
|
11
11
|
*/
|
|
12
12
|
import { p as e, s as t } from "./intl-BK4prEGw.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as r, t as i } from "./jsx-runtime-BUMIo32n.js";
|
|
15
|
-
import { o as a } from "./programThemeGetters-
|
|
16
|
-
import { m as o } from "./FormFooterComponent-
|
|
15
|
+
import { o as a } from "./programThemeGetters-BEzpDnQy.js";
|
|
16
|
+
import { m as o } from "./FormFooterComponent-B7fUP0wx.js";
|
|
17
17
|
import { a as s } from "./refs-Mq0rtW9K.js";
|
|
18
18
|
import { t as c } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
19
|
+
import { t as l } from "./useCollectFieldsEndpoint-BbzTOhC3.js";
|
|
20
20
|
import { d as u, f as d, r as f, t as p } from "./stepComponentHelpers-Dztw-HNP.js";
|
|
21
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
22
|
-
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as S } from "./FormSelectChoice-
|
|
24
|
-
import { t as C } from "./BirthDateComponent-
|
|
25
|
-
import { t as w } from "./PostalCodeComponent-
|
|
26
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as E } from "./City-
|
|
28
|
-
import { t as D } from "./AddressComponent-
|
|
29
|
-
import { t as O } from "./ExtraMessage-
|
|
30
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
31
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
32
|
-
import { t as j } from "./countryUtils-
|
|
33
|
-
import { t as M } from "./StateSelectComponent-
|
|
34
|
-
import { n as N, r as P, t as F } from "./DischargeDateComponent-
|
|
35
|
-
import { t as I } from "./StatusComponent-
|
|
21
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-BD4yKfJR.js";
|
|
22
|
+
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-Ds_-FUfA.js";
|
|
23
|
+
import { i as S } from "./FormSelectChoice-DN3XV8go.js";
|
|
24
|
+
import { t as C } from "./BirthDateComponent-DEm62ubJ.js";
|
|
25
|
+
import { t as w } from "./PostalCodeComponent-IMgjUHRf.js";
|
|
26
|
+
import { t as T } from "./CountryComponentWrapper-A-NCx760.js";
|
|
27
|
+
import { t as E } from "./City-IKHXV6fA.js";
|
|
28
|
+
import { t as D } from "./AddressComponent-BUOibRxr.js";
|
|
29
|
+
import { t as O } from "./ExtraMessage-CzchllLx.js";
|
|
30
|
+
import { t as k } from "./ChangeLocaleComponent-Drpt_vzW.js";
|
|
31
|
+
import { t as A } from "./PersonalInfoStepWrapper-CJzVOQ_x.js";
|
|
32
|
+
import { t as j } from "./countryUtils-R4Q_aquD.js";
|
|
33
|
+
import { t as M } from "./StateSelectComponent-aAvCOLUg.js";
|
|
34
|
+
import { n as N, r as P, t as F } from "./DischargeDateComponent-CifKJfBT.js";
|
|
35
|
+
import { t as I } from "./StatusComponent-CmqMjhRY.js";
|
|
36
36
|
//#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
|
|
37
37
|
var L = (t, n, r, i) => {
|
|
38
38
|
let a = r.viewModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-D6XSgd_g.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.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 updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAagD,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACrDF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iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAAC3C,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-D9Z8yHB3.js","names":["produce","_Fragment","MilitaryStatusComponent","BranchOfService","FirstName","LastName","BirthDate","DischargeDate","Email","PhoneNumber","MarketConsentWrapper","fn","getOptions","VerificationStepsEnum","FormattedHTMLMessage","require_jsx_runtime","useProgramConfiguration","hasFailedInstantMatch","resetRefs","PersonalInfoHeader","useCollectFieldsEndpoint","updateFieldValidationErrorsByFieldId","updateViewModelOrganization","handleEmailOnKeyDown","getFieldConfigByFieldId","FirstNameComponent","LastNameComponent","FormFieldCustom","PhoneNumberComponent","MarketConsentWrapperComponent","CaptchaComponent","EmailComponent","PersonalInfoStepSubmitButton","useFormSelectChoice","BirthDateComponent","PostalCodeComponent","CountryComponentWrapper","CityComponent","AddressComponent","ExtraMessage","ChangeLocaleV2Component","PersonalInfoWrapper","isCountrySelectionNeeded","StateSelectComponent","BranchOfServiceComponent","ActiveDutyStartDateComponent","DischargeDateComponent","StatusComponent","updateMilitaryViewModel","viewModel","verificationService","key","value","militaryManagedFields","draft","id","availableStatuses","import_jsx_runtime","StepCollectMilitaryPersonalInfoComponent","programConfiguration","verificationResponse","failedInstantMatch","initialRequiredFields","dynamicStatuses","countryChoiceValue","needToPickCountry","statusOptions","locale","options","showDischargeDate","isFieldRequired","isFieldOptional","updateMilitary","option","fieldValidationErrors","status","choice","newValue","event","stateValue","stateChoice"],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\nimport { useProgramConfiguration } from \"@/lib/state/contextHooks\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const programConfiguration = useProgramConfiguration();\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!programConfiguration.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(programConfiguration, countryChoiceValue);\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={programConfiguration.transitionalMilitaryValidityDays ? \"date\" : \"month\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {programConfiguration.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {programConfiguration.isSmsNotifierConfigured || programConfiguration.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!programConfiguration.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\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 updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.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 updateMilitary(\"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={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAagD,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAMC,IAAYC,EAAoB;CACtC,OAAOlD,EAAQiD,IAAY,MAAyC;EAClE,EAAOE,KAAeC;EAGtB,IAAMC,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0BC,EAAM,0BAA0B,CAAC,EAAA,CAAG,QACjE,MAAO,CAACD,EAAsB,SAASE,CAAE,CAC5C,IAEI,CAACC,KAAqBA,EAAkB,WAAW,MACr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F,iBAAA,GAAAkB,EAAA,IAAA,CAAC3B,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC4C,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAAjB,EAAA,IAAA,CAACzB,GAAD;IACE,MAAM4B,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAAH,EAAA,IAAA,CAAC3C,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
@@ -4,43 +4,43 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.315.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793755578665
|
|
9
|
+
* BUILD_DATE: Wed Nov 04 2026 01:26:18 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 22244e83657b6c12023c5aac9710b7924aab6459
|
|
11
11
|
*/
|
|
12
12
|
import { At as e, Et as t, p as n, s as r } from "./intl-BK4prEGw.js";
|
|
13
13
|
import { S as ee, b as i, t as te, u as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as o, s, t as c } from "./jsx-runtime-BUMIo32n.js";
|
|
15
|
-
import { a as l } from "./Message-
|
|
16
|
-
import { o as u } from "./programThemeGetters-
|
|
17
|
-
import { b as ne, m as re, t as ie } from "./FormFooterComponent-
|
|
15
|
+
import { a as l } from "./Message-YS1p6ov3.js";
|
|
16
|
+
import { o as u } from "./programThemeGetters-BEzpDnQy.js";
|
|
17
|
+
import { b as ne, m as re, t as ie } from "./FormFooterComponent-B7fUP0wx.js";
|
|
18
18
|
import { t as ae } from "../_mysheerid-preview.js";
|
|
19
|
-
import { t as oe } from "./useCollectFieldsEndpoint-
|
|
19
|
+
import { t as oe } from "./useCollectFieldsEndpoint-BbzTOhC3.js";
|
|
20
20
|
import { d, f, i as se, l as ce, r as le, s as ue, t as p } from "./stepComponentHelpers-Dztw-HNP.js";
|
|
21
|
-
import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-
|
|
22
|
-
import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-
|
|
23
|
-
import { i as v } from "./FormSelectChoice-
|
|
24
|
-
import { t as y } from "./BirthDateComponent-
|
|
25
|
-
import { t as b } from "./PostalCodeComponent-
|
|
26
|
-
import { t as x } from "./CountryComponentWrapper-
|
|
27
|
-
import { t as S } from "./City-
|
|
28
|
-
import { t as C } from "./AddressComponent-
|
|
29
|
-
import { t as w } from "./ExtraMessage-
|
|
30
|
-
import { t as T } from "./countryUtils-
|
|
31
|
-
import { t as E } from "./CollegeNameComponent-
|
|
32
|
-
import { t as D } from "./StateSelectComponent-
|
|
33
|
-
import { n as O, r as k, t as A } from "./DischargeDateComponent-
|
|
34
|
-
import { t as j } from "./DriverLicenseNumberComponent-
|
|
35
|
-
import { n as M, t as N } from "./LowIncomeOrganizationComponent-
|
|
36
|
-
import { t as P } from "./StatusComponent-
|
|
37
|
-
import { t as F } from "./FirstResponderOrganizationComponent-
|
|
38
|
-
import { t as I } from "./LicensedProfessionalOrganizationComponent-
|
|
39
|
-
import { t as he } from "./MedicalProfessionalOrganizationComponent-
|
|
40
|
-
import { t as L } from "./MemberIdComponent-
|
|
41
|
-
import { t as R } from "./MembershipOrganizationComponent-
|
|
42
|
-
import { t as ge } from "./TeacherSchoolComponent-
|
|
43
|
-
import { t as _e } from "./SSN-
|
|
21
|
+
import { a as de, i as fe, n as pe, o as me, s as m, t as h } from "./CaptchaComponent-BD4yKfJR.js";
|
|
22
|
+
import { n as g, t as _ } from "./PersonalInfoStepSubmitButton-Ds_-FUfA.js";
|
|
23
|
+
import { i as v } from "./FormSelectChoice-DN3XV8go.js";
|
|
24
|
+
import { t as y } from "./BirthDateComponent-DEm62ubJ.js";
|
|
25
|
+
import { t as b } from "./PostalCodeComponent-IMgjUHRf.js";
|
|
26
|
+
import { t as x } from "./CountryComponentWrapper-A-NCx760.js";
|
|
27
|
+
import { t as S } from "./City-IKHXV6fA.js";
|
|
28
|
+
import { t as C } from "./AddressComponent-BUOibRxr.js";
|
|
29
|
+
import { t as w } from "./ExtraMessage-CzchllLx.js";
|
|
30
|
+
import { t as T } from "./countryUtils-R4Q_aquD.js";
|
|
31
|
+
import { t as E } from "./CollegeNameComponent-DpMt-iEi.js";
|
|
32
|
+
import { t as D } from "./StateSelectComponent-aAvCOLUg.js";
|
|
33
|
+
import { n as O, r as k, t as A } from "./DischargeDateComponent-CifKJfBT.js";
|
|
34
|
+
import { t as j } from "./DriverLicenseNumberComponent-4I1cN8DR.js";
|
|
35
|
+
import { n as M, t as N } from "./LowIncomeOrganizationComponent-bijYf_Ae.js";
|
|
36
|
+
import { t as P } from "./StatusComponent-CmqMjhRY.js";
|
|
37
|
+
import { t as F } from "./FirstResponderOrganizationComponent-DUn8PxZo.js";
|
|
38
|
+
import { t as I } from "./LicensedProfessionalOrganizationComponent-C43VAUdy.js";
|
|
39
|
+
import { t as he } from "./MedicalProfessionalOrganizationComponent-CMDxCj_U.js";
|
|
40
|
+
import { t as L } from "./MemberIdComponent-B9vrsE-q.js";
|
|
41
|
+
import { t as R } from "./MembershipOrganizationComponent-C5dWGUPp.js";
|
|
42
|
+
import { t as ge } from "./TeacherSchoolComponent-nB-dP00I.js";
|
|
43
|
+
import { t as _e } from "./SSN-0xlUI5ik.js";
|
|
44
44
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
45
45
|
var z = /* @__PURE__ */ e(s(), 1), B = c(), V = ({ verificationService: e }) => {
|
|
46
46
|
let s = u(), c = e.viewModel, { updateViewModel: V } = e, [H, ve] = z.useState(void 0), U = (e) => H && H.some((t) => t.key === e), { fieldValidationErrors: W } = e, G = e.verificationResponse, ye = re(G), K = (e, t) => {
|