@sheerid/jslib-nightly 2.252.0-alpha.1 → 2.252.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +3 -3
- package/_mysheerid-preview.js +34 -34
- package/chunk/AddressComponent-DeVavXuU.js +3 -3
- package/chunk/AddressComponent-tDOYXYuf.js +3 -3
- package/chunk/AnnouncingHeader-C8n6ru67.js +3 -3
- package/chunk/AnnouncingHeader-D1yijRkk.js +3 -3
- package/chunk/{ApiUrls-isbiU17_.js → ApiUrls-CB34tBwu.js} +4 -4
- package/chunk/{ApiUrls-Ny9uxtAY.js.map → ApiUrls-CB34tBwu.js.map} +1 -1
- package/chunk/{ApiUrls-Ny9uxtAY.js → ApiUrls-DBbzZ_5d.js} +4 -4
- package/chunk/{ApiUrls-isbiU17_.js.map → ApiUrls-DBbzZ_5d.js.map} +1 -1
- package/chunk/{BirthDateComponent-Bvw2hLXB.js → BirthDateComponent-74LmrsUh.js} +4 -4
- package/chunk/{BirthDateComponent-Bvw2hLXB.js.map → BirthDateComponent-74LmrsUh.js.map} +1 -1
- package/chunk/{BirthDateComponent-CjTuz9cR.js → BirthDateComponent-DeiRjfqb.js} +4 -4
- package/chunk/{BirthDateComponent-CjTuz9cR.js.map → BirthDateComponent-DeiRjfqb.js.map} +1 -1
- package/chunk/{CaptchaComponent-CGuBecVr.js → CaptchaComponent-CuhEe-JS.js} +5 -5
- package/chunk/{CaptchaComponent-CGuBecVr.js.map → CaptchaComponent-CuhEe-JS.js.map} +1 -1
- package/chunk/{CaptchaComponent-CL2iBcHK.js → CaptchaComponent-DrHxUXmn.js} +5 -5
- package/chunk/{CaptchaComponent-CL2iBcHK.js.map → CaptchaComponent-DrHxUXmn.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DHRFafXo.js → ChangeLocaleComponent-CMgHD59I.js} +4 -4
- package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js.map → ChangeLocaleComponent-CMgHD59I.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js → ChangeLocaleComponent-luffC-5n.js} +4 -4
- package/chunk/{ChangeLocaleComponent-DHRFafXo.js.map → ChangeLocaleComponent-luffC-5n.js.map} +1 -1
- package/chunk/City-Bn6z_tV9.js +3 -3
- package/chunk/City-Dr5JQzXh.js +3 -3
- package/chunk/{CollegeNameComponent-DxIY7Hjd.js → CollegeNameComponent-CkHW8X3_.js} +4 -4
- package/chunk/{CollegeNameComponent-B_DipcU2.js.map → CollegeNameComponent-CkHW8X3_.js.map} +1 -1
- package/chunk/{CollegeNameComponent-B_DipcU2.js → CollegeNameComponent-DTT3AdDm.js} +4 -4
- package/chunk/{CollegeNameComponent-DxIY7Hjd.js.map → CollegeNameComponent-DTT3AdDm.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BV_IRGmr.js +3 -3
- package/chunk/CopyToClipboardComponent-C_H3DLRY.js +3 -3
- package/chunk/{CountryComponentWrapper-C9D_Yvat.js → CountryComponentWrapper-Bl2FKDot.js} +4 -4
- package/chunk/{CountryComponentWrapper-Br71T6PI.js.map → CountryComponentWrapper-Bl2FKDot.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Br71T6PI.js → CountryComponentWrapper-Cm5132xB.js} +4 -4
- package/chunk/{CountryComponentWrapper-C9D_Yvat.js.map → CountryComponentWrapper-Cm5132xB.js.map} +1 -1
- package/chunk/{DischargeDateComponent-ZcytGukr.js → DischargeDateComponent-BWUkxVcX.js} +6 -6
- package/chunk/{DischargeDateComponent-Blu8ao8l.js.map → DischargeDateComponent-BWUkxVcX.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Blu8ao8l.js → DischargeDateComponent-DGGNuN0D.js} +6 -6
- package/chunk/{DischargeDateComponent-ZcytGukr.js.map → DischargeDateComponent-DGGNuN0D.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-6lnx4TLm.js +3 -3
- package/chunk/DriverLicenseNumberComponent-Cz2hxBlw.js +3 -3
- package/chunk/{EmailLoopPending-s7pO4MYL.js → EmailLoopPending-DM5dagn5.js} +4 -4
- package/chunk/{EmailLoopPending-s7pO4MYL.js.map → EmailLoopPending-DM5dagn5.js.map} +1 -1
- package/chunk/{EmailLoopPending-C06EgjqJ.js → EmailLoopPending-niobeQv6.js} +4 -4
- package/chunk/{EmailLoopPending-C06EgjqJ.js.map → EmailLoopPending-niobeQv6.js.map} +1 -1
- package/chunk/{ExtraMessage-BkEeYdJ6.js → ExtraMessage-BV_tbK2V.js} +4 -4
- package/chunk/{ExtraMessage-BFiXfjWJ.js.map → ExtraMessage-BV_tbK2V.js.map} +1 -1
- package/chunk/{ExtraMessage-BFiXfjWJ.js → ExtraMessage-DbVKYg6z.js} +4 -4
- package/chunk/{ExtraMessage-BkEeYdJ6.js.map → ExtraMessage-DbVKYg6z.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DxL5zTJM.js → FirstResponderOrganizationComponent-4IQGU7Ka.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-CuHnKems.js.map → FirstResponderOrganizationComponent-4IQGU7Ka.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CuHnKems.js → FirstResponderOrganizationComponent-_QjLFfMC.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DxL5zTJM.js.map → FirstResponderOrganizationComponent-_QjLFfMC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-D-lRLgJc.js → FormFieldInputSelect-BNMMo-M-.js} +4 -4
- package/chunk/{FormFieldInputSelect-D-lRLgJc.js.map → FormFieldInputSelect-BNMMo-M-.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DcYjsGZY.js → FormFieldInputSelect-DNfezB8Q.js} +4 -4
- package/chunk/{FormFieldInputSelect-DcYjsGZY.js.map → FormFieldInputSelect-DNfezB8Q.js.map} +1 -1
- package/chunk/FormFieldLayout-CvBeqSO2.js +3 -3
- package/chunk/FormFieldLayout-DHm3-7NK.js +3 -3
- package/chunk/FormFieldText-CmWzhNxx.js +3 -3
- package/chunk/FormFieldText-Ty1Ufwon.js +3 -3
- package/chunk/{FormFieldTypeahead-Bw-si92C.js → FormFieldTypeahead-BiaLXv_2.js} +6 -6
- package/chunk/{FormFieldTypeahead-Bw-si92C.js.map → FormFieldTypeahead-BiaLXv_2.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BejkrONN.js → FormFieldTypeahead-BlWzuBPT.js} +6 -6
- package/chunk/{FormFieldTypeahead-BejkrONN.js.map → FormFieldTypeahead-BlWzuBPT.js.map} +1 -1
- package/chunk/{FormFooterComponent-SC3z7wto.js → FormFooterComponent-BPl4luwp.js} +13 -9
- package/chunk/FormFooterComponent-BPl4luwp.js.map +1 -0
- package/chunk/{FormFooterComponent-CGXehL7a.js → FormFooterComponent-DPNJTTLQ.js} +13 -9
- package/chunk/{FormFooterComponent-CGXehL7a.js.map → FormFooterComponent-DPNJTTLQ.js.map} +1 -1
- package/chunk/{FormSelectChoice-Dx-bXGwm.js → FormSelectChoice-B5iX1Wbg.js} +4 -4
- package/chunk/{FormSelectChoice-CTPh3Zs_.js.map → FormSelectChoice-B5iX1Wbg.js.map} +1 -1
- package/chunk/{FormSelectChoice-CTPh3Zs_.js → FormSelectChoice-BsIeAIak.js} +4 -4
- package/chunk/{FormSelectChoice-Dx-bXGwm.js.map → FormSelectChoice-BsIeAIak.js.map} +1 -1
- package/chunk/InputText-Dcc1GAzk.js +3 -3
- package/chunk/InputText-O-R5oYpH.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-Bw5UZYDy.js → LicensedProfessionalOrganizationComponent-469sp0ma.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-pRz7Hey5.js.map → LicensedProfessionalOrganizationComponent-469sp0ma.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-pRz7Hey5.js → LicensedProfessionalOrganizationComponent-Bqbm-4re.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-Bw5UZYDy.js.map → LicensedProfessionalOrganizationComponent-Bqbm-4re.js.map} +1 -1
- package/chunk/LogoComponent-CxMD1sHy.js +3 -3
- package/chunk/LogoComponent-RNO3O5IN.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-DEjaiJQ1.js → LowIncomeOrganizationComponent-BJWlF8dC.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-CzlNXek1.js.map → LowIncomeOrganizationComponent-BJWlF8dC.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CzlNXek1.js → LowIncomeOrganizationComponent-wfrRwozi.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-DEjaiJQ1.js.map → LowIncomeOrganizationComponent-wfrRwozi.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-AC2qiDUU.js → MedicalProfessionalOrganizationComponent-DIuKlJ7D.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-AC2qiDUU.js.map → MedicalProfessionalOrganizationComponent-DIuKlJ7D.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-P7XyWT_d.js → MedicalProfessionalOrganizationComponent-DJx4Sdog.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-P7XyWT_d.js.map → MedicalProfessionalOrganizationComponent-DJx4Sdog.js.map} +1 -1
- package/chunk/MemberIdComponent--KEsNJQy.js +3 -3
- package/chunk/MemberIdComponent-CTvlL62f.js +3 -3
- package/chunk/{MembershipOrganizationComponent-DUtEbO1h.js → MembershipOrganizationComponent-B60A7V5l.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-C-JF69xs.js.map → MembershipOrganizationComponent-B60A7V5l.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-C-JF69xs.js → MembershipOrganizationComponent-WuhfGOXa.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-DUtEbO1h.js.map → MembershipOrganizationComponent-WuhfGOXa.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-B3DigKNy.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-CEvJtoqt.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-Bp9-hSi7.js → PersonalInfoStepWrapper-BTi6sZUM.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-Bp9-hSi7.js.map → PersonalInfoStepWrapper-BTi6sZUM.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DBDHCmcI.js → PersonalInfoStepWrapper-Ds44QLny.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DBDHCmcI.js.map → PersonalInfoStepWrapper-Ds44QLny.js.map} +1 -1
- package/chunk/PostalCodeComponent-DC6y88Ff.js +3 -3
- package/chunk/PostalCodeComponent-Q7cxuIiG.js +3 -3
- package/chunk/SSN-CCkJwsHx.js +3 -3
- package/chunk/SSN-Dxjw5wjo.js +3 -3
- package/chunk/{StateSelectComponent-Cfe-O0nI.js → StateSelectComponent-BL6nNILS.js} +4 -4
- package/chunk/{StateSelectComponent-CV23i9UP.js.map → StateSelectComponent-BL6nNILS.js.map} +1 -1
- package/chunk/{StateSelectComponent-CV23i9UP.js → StateSelectComponent-DZ4ekMz3.js} +4 -4
- package/chunk/{StateSelectComponent-Cfe-O0nI.js.map → StateSelectComponent-DZ4ekMz3.js.map} +1 -1
- package/chunk/{StatusComponent-CCZcMgf5.js → StatusComponent-DNirnu24.js} +4 -4
- package/chunk/{StatusComponent-CCZcMgf5.js.map → StatusComponent-DNirnu24.js.map} +1 -1
- package/chunk/{StatusComponent-D5PBJKSy.js → StatusComponent-lNFX8uYC.js} +4 -4
- package/chunk/{StatusComponent-D5PBJKSy.js.map → StatusComponent-lNFX8uYC.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DyJonsZi.js → StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DyJonsZi.js.map → StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js → StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js.map → StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Shxz_I62.js → StepAgePersonalInfo-BnqyuLSN.js} +11 -11
- package/chunk/{StepAgePersonalInfo-RRJXxFD4.js.map → StepAgePersonalInfo-BnqyuLSN.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-RRJXxFD4.js → StepAgePersonalInfo-DSzM4N_r.js} +11 -11
- package/chunk/{StepAgePersonalInfo-Shxz_I62.js.map → StepAgePersonalInfo-DSzM4N_r.js.map} +1 -1
- package/chunk/StepCard-BYvktbj-.js +3 -3
- package/chunk/StepCard-xJowORFe.js +3 -3
- package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js → StepCollectIdentifier-2dBrIR9W.js} +4 -4
- package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js.map → StepCollectIdentifier-2dBrIR9W.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DSlIlcXW.js → StepCollectIdentifier-CzLFzq-f.js} +4 -4
- package/chunk/{StepCollectIdentifier-DSlIlcXW.js.map → StepCollectIdentifier-CzLFzq-f.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-BP0hnzA-.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-Ci_-jhy9.js → StepCollectMilitaryStatusComponent-WX-lVSG6.js} +4 -4
- package/chunk/{StepCollectPersonalInfo-B83xrl6r.js → StepCollectPersonalInfo-Dc7ziTls.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-B83xrl6r.js.map → StepCollectPersonalInfo-Dc7ziTls.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js → StepCollectPersonalInfo-rd0zB5Qf.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js.map → StepCollectPersonalInfo-rd0zB5Qf.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-Cp0QfXMC.js +3 -3
- package/chunk/StepCompleteAuthentication-iIbsyk7K.js +3 -3
- package/chunk/{StepConsolation-DNYGDZzR.js → StepConsolation-BE-Eo_IB.js} +4 -4
- package/chunk/{StepConsolation-D9CuvYbU.js.map → StepConsolation-BE-Eo_IB.js.map} +1 -1
- package/chunk/{StepConsolation-D9CuvYbU.js → StepConsolation-BbenSSL0.js} +4 -4
- package/chunk/{StepConsolation-DNYGDZzR.js.map → StepConsolation-BbenSSL0.js.map} +1 -1
- package/chunk/{StepDocUpload-BgETpFvN.js → StepDocUpload-1ysAiDDK.js} +4 -4
- package/chunk/{StepDocUpload-BgETpFvN.js.map → StepDocUpload-1ysAiDDK.js.map} +1 -1
- package/chunk/{StepDocUpload-BNNsivJb.js → StepDocUpload-BDcmBXio.js} +4 -4
- package/chunk/{StepDocUpload-BNNsivJb.js.map → StepDocUpload-BDcmBXio.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-D96qSJuQ.js → StepDriverLicensePersonalInfoComponent-BYIHo8aS.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-D96qSJuQ.js.map → StepDriverLicensePersonalInfoComponent-BYIHo8aS.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-OyIdNeVc.js → StepDriverLicensePersonalInfoComponent-BYz9sOSI.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-OyIdNeVc.js.map → StepDriverLicensePersonalInfoComponent-BYz9sOSI.js.map} +1 -1
- package/chunk/{StepEmailLoop-DFpV_Jbb.js → StepEmailLoop-CsmaHQIC.js} +5 -5
- package/chunk/{StepEmailLoop-B87Xkxlc.js.map → StepEmailLoop-CsmaHQIC.js.map} +1 -1
- package/chunk/{StepEmailLoop-B87Xkxlc.js → StepEmailLoop-DsaZyN6s.js} +5 -5
- package/chunk/{StepEmailLoop-DFpV_Jbb.js.map → StepEmailLoop-DsaZyN6s.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D67sqEmM.js → StepEmploymentPersonalInfo-Dk86CJgZ.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-D67sqEmM.js.map → StepEmploymentPersonalInfo-Dk86CJgZ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DRw2UHWP.js → StepEmploymentPersonalInfo-VEaVpeBO.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-DRw2UHWP.js.map → StepEmploymentPersonalInfo-VEaVpeBO.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DGYraioF.js → StepFirstResponderPersonalInfo-CGrthQIW.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-DGYraioF.js.map → StepFirstResponderPersonalInfo-CGrthQIW.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-GyykKYMf.js → StepFirstResponderPersonalInfo-DRZZAK3Z.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-GyykKYMf.js.map → StepFirstResponderPersonalInfo-DRZZAK3Z.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cj9r_Dm1.js → StepGeneralIdentityPersonalInfoComponent-3mFgLh4B.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-4DD_K-bp.js.map → StepGeneralIdentityPersonalInfoComponent-3mFgLh4B.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-4DD_K-bp.js → StepGeneralIdentityPersonalInfoComponent-BfxOy5hx.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cj9r_Dm1.js.map → StepGeneralIdentityPersonalInfoComponent-BfxOy5hx.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-0Oe_vlAv.js → StepHybridIdentityPersonalInfoComponent-CmvNDHhr.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-0Oe_vlAv.js.map → StepHybridIdentityPersonalInfoComponent-CmvNDHhr.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-COHk_4eA.js → StepHybridIdentityPersonalInfoComponent-CuiU_Wka.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-COHk_4eA.js.map → StepHybridIdentityPersonalInfoComponent-CuiU_Wka.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CpQmgiuP.js → StepIDCheckLoop-CjZpv63f.js} +4 -4
- package/chunk/{StepIDCheckLoop-CpQmgiuP.js.map → StepIDCheckLoop-CjZpv63f.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CyhEQpIW.js → StepIDCheckLoop-Z1Ae3hAN.js} +4 -4
- package/chunk/{StepIDCheckLoop-CyhEQpIW.js.map → StepIDCheckLoop-Z1Ae3hAN.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CQtLaCtk.js → StepIDCheckLoopOnfido-BUtNgLV7.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-O0UpQfMj.js.map → StepIDCheckLoopOnfido-BUtNgLV7.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-O0UpQfMj.js → StepIDCheckLoopOnfido-LQ2bEmdZ.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-CQtLaCtk.js.map → StepIDCheckLoopOnfido-LQ2bEmdZ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-ekPS9EqN.js → StepIDCheckLoopRegula-C_GSHyPP.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-B56RrMfx.js.map → StepIDCheckLoopRegula-C_GSHyPP.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B56RrMfx.js → StepIDCheckLoopRegula-CeVUkdgc.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-ekPS9EqN.js.map → StepIDCheckLoopRegula-CeVUkdgc.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-cQ52ASXe.js → StepInactiveMilitaryPersonalInfoComponent-B7Sh5ISw.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C3soLfoE.js.map → StepInactiveMilitaryPersonalInfoComponent-B7Sh5ISw.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C3soLfoE.js → StepInactiveMilitaryPersonalInfoComponent-DtxPAYHR.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-cQ52ASXe.js.map → StepInactiveMilitaryPersonalInfoComponent-DtxPAYHR.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BQJMsmNG.js → StepLicensedProfessionalPersonalInfo-CTDv5DHB.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-BQJMsmNG.js.map → StepLicensedProfessionalPersonalInfo-CTDv5DHB.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-uXRz37Cg.js → StepLicensedProfessionalPersonalInfo-CxM759_p.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-uXRz37Cg.js.map → StepLicensedProfessionalPersonalInfo-CxM759_p.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BA3o4C5Q.js → StepLowIncomePersonalInfo-BiiBIGXH.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-BA3o4C5Q.js.map → StepLowIncomePersonalInfo-BiiBIGXH.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Cv8fetBp.js → StepLowIncomePersonalInfo-YvMSq6ES.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-Cv8fetBp.js.map → StepLowIncomePersonalInfo-YvMSq6ES.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1Ecc04Q.js → StepMedicalProfessionalPersonalInfo-BRCJT5VV.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-4mV21wDQ.js.map → StepMedicalProfessionalPersonalInfo-BRCJT5VV.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-4mV21wDQ.js → StepMedicalProfessionalPersonalInfo-D4NOqS9P.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1Ecc04Q.js.map → StepMedicalProfessionalPersonalInfo-D4NOqS9P.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CZ_R2Kol.js → StepMemberPersonalInfo-CtI5S9mx.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-CP-hcjB6.js.map → StepMemberPersonalInfo-CtI5S9mx.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CP-hcjB6.js → StepMemberPersonalInfo-rXbbPI7P.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-CZ_R2Kol.js.map → StepMemberPersonalInfo-rXbbPI7P.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DSuGgttw.js → StepMoverPersonalInfo-CO0vnQCT.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-B9floByn.js.map → StepMoverPersonalInfo-CO0vnQCT.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-B9floByn.js → StepMoverPersonalInfo-wxu_tc2P.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-DSuGgttw.js.map → StepMoverPersonalInfo-wxu_tc2P.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CtiK7Cll.js → StepOverrideComponent-Cryz-7RC.js} +4 -4
- package/chunk/{StepOverrideComponent-C3G33eaP.js.map → StepOverrideComponent-Cryz-7RC.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C3G33eaP.js → StepOverrideComponent-rm5pBJUY.js} +4 -4
- package/chunk/{StepOverrideComponent-CtiK7Cll.js.map → StepOverrideComponent-rm5pBJUY.js.map} +1 -1
- package/chunk/{StepSMSLoop-CQIK_pcx.js → StepSMSLoop-BHOsYIvB.js} +4 -4
- package/chunk/{StepSMSLoop-CQIK_pcx.js.map → StepSMSLoop-BHOsYIvB.js.map} +1 -1
- package/chunk/{StepSMSLoop-DWj4eseQ.js → StepSMSLoop-DzsadZry.js} +4 -4
- package/chunk/{StepSMSLoop-DWj4eseQ.js.map → StepSMSLoop-DzsadZry.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-DsOd-7QG.js → StepSocialSecurityNumber-DDF4h4AC.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-CDj1yUok.js.map → StepSocialSecurityNumber-DDF4h4AC.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CDj1yUok.js → StepSocialSecurityNumber-xTBWXuft.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-DsOd-7QG.js.map → StepSocialSecurityNumber-xTBWXuft.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Pe2ZUK9j.js → StepStudentPersonalInfo-Cme66aGU.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-CBHCCIVO.js.map → StepStudentPersonalInfo-Cme66aGU.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CBHCCIVO.js → StepStudentPersonalInfo-DYuIs4lY.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-Pe2ZUK9j.js.map → StepStudentPersonalInfo-DYuIs4lY.js.map} +1 -1
- package/chunk/{StepSuccess-DXxmnibi.js → StepSuccess-BFyOCPpD.js} +4 -4
- package/chunk/{StepSuccess-D3uLwpVH.js.map → StepSuccess-BFyOCPpD.js.map} +1 -1
- package/chunk/{StepSuccess-D3uLwpVH.js → StepSuccess-D2ZJymvE.js} +4 -4
- package/chunk/{StepSuccess-DXxmnibi.js.map → StepSuccess-D2ZJymvE.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CF1vJAwL.js → StepTeacherPersonalInfo-CQpDH1lu.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-CF1vJAwL.js.map → StepTeacherPersonalInfo-CQpDH1lu.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Dm-LW5uh.js → StepTeacherPersonalInfo-DZF9MgTQ.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-Dm-LW5uh.js.map → StepTeacherPersonalInfo-DZF9MgTQ.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-C_2QC6xv.js → TeacherSchoolComponent-BHpkm-dw.js} +4 -4
- package/chunk/{TeacherSchoolComponent-C_2QC6xv.js.map → TeacherSchoolComponent-BHpkm-dw.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-CFdPvPp4.js → TeacherSchoolComponent-to0mPiRt.js} +4 -4
- package/chunk/{TeacherSchoolComponent-CFdPvPp4.js.map → TeacherSchoolComponent-to0mPiRt.js.map} +1 -1
- package/chunk/TestingRouteOverrides-B-fy3D14.js +3 -3
- package/chunk/TestingRouteOverrides-CNrBdUEi.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-Bekn2hBS.js → VerificationApiClient-5TWq2h7g.js} +4 -4
- package/chunk/{VerificationApiClient-Bekn2hBS.js.map → VerificationApiClient-5TWq2h7g.js.map} +1 -1
- package/chunk/{VerificationApiClient-BPQW9aD2.js → VerificationApiClient-DCRPmrmy.js} +4 -4
- package/chunk/{VerificationApiClient-BPQW9aD2.js.map → VerificationApiClient-DCRPmrmy.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CR0L90MH.js → VerificationApiUtils-C6P5ADMI.js} +5 -5
- package/chunk/{VerificationApiUtils-Bj_D78B_.js.map → VerificationApiUtils-C6P5ADMI.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Bj_D78B_.js → VerificationApiUtils-CN4JXSCm.js} +5 -5
- package/chunk/{VerificationApiUtils-CR0L90MH.js.map → VerificationApiUtils-CN4JXSCm.js.map} +1 -1
- package/chunk/ar-BjzzbrcH.js +3 -3
- package/chunk/bg-Bkp5NQGt.js +3 -3
- package/chunk/bn-IN-BjHyWNcN.js +3 -3
- package/chunk/countryUtils-BUkGwgOv.js +3 -3
- package/chunk/countryUtils-BukgZOkT.js +3 -3
- package/chunk/cs-BXKIfyMn.js +3 -3
- package/chunk/da-KAd6QtNr.js +3 -3
- package/chunk/de-DJBgNK4j.js +3 -3
- package/chunk/{downshift.esm-DpXuqnbQ.js → downshift.esm-B3lxiir8.js} +4 -4
- package/chunk/{downshift.esm-DpXuqnbQ.js.map → downshift.esm-B3lxiir8.js.map} +1 -1
- package/chunk/{downshift.esm-trn0IS72.js → downshift.esm-DYBaK8k2.js} +4 -4
- package/chunk/{downshift.esm-trn0IS72.js.map → downshift.esm-DYBaK8k2.js.map} +1 -1
- package/chunk/el-D24Z3wzy.js +3 -3
- package/chunk/empties-B76EQa_e.js +3 -3
- package/chunk/empties-BCarcDSb.js +3 -3
- package/chunk/en-GB-CF3Dl7KN.js +3 -3
- package/chunk/es-CpfDbBaF.js +3 -3
- package/chunk/es-ES-NTqqQD-Z.js +3 -3
- package/chunk/et-D-MKFDXp.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-Xd-EWw-p.js +3 -3
- package/chunk/fi-vZnj0EV7.js +3 -3
- package/chunk/fr-46skWKoq.js +3 -3
- package/chunk/fr-CA-MGhcSzZR.js +3 -3
- package/chunk/ga-C6UbHKgo.js +3 -3
- package/chunk/hi-IN-D-B9DfgR.js +3 -3
- package/chunk/hr-BoMO1lAl.js +3 -3
- package/chunk/hu-C3wkObfm.js +3 -3
- package/chunk/id-DCJPXPB3.js +3 -3
- package/chunk/intl-Dlq5_d98.js +3 -3
- package/chunk/is-n7ZX-W4l.js +3 -3
- package/chunk/it-DQlsfBOE.js +3 -3
- package/chunk/iw-BKQiC-JL.js +3 -3
- package/chunk/ja-BLBbjU9-.js +3 -3
- package/chunk/jsx-runtime-DLOeB2wW.js +3 -3
- package/chunk/jsx-runtime-DpgCUpxa.js +3 -3
- package/chunk/kk--5reOjXd.js +3 -3
- package/chunk/ko-MNENZRnS.js +3 -3
- package/chunk/lo-CsZFzDBR.js +3 -3
- package/chunk/lt-B5Y8RB_n.js +3 -3
- package/chunk/lv-B8k3nXjr.js +3 -3
- package/chunk/militaryStepHelpers-BqE-KZl2.js +3 -3
- package/chunk/militaryStepHelpers-DgD1gxLi.js +3 -3
- package/chunk/mocks-BvwzMEuE.js +3 -3
- package/chunk/mocks-BzQvvEnm.js +3 -3
- package/chunk/ms-Eeq0sa2s.js +3 -3
- package/chunk/nl-BE-Q-VcH1RL.js +3 -3
- package/chunk/nl-DxP54Wjx.js +3 -3
- package/chunk/no-ANC_rNlg.js +3 -3
- package/chunk/options-kGoKaqH1.js +3 -3
- package/chunk/pl-DPRx8p-N.js +3 -3
- package/chunk/programThemeGetters-D1_n1gAQ.js +3 -3
- package/chunk/programThemeGetters-g9jo8zcw.js +3 -3
- package/chunk/pt-BR-CXuV1qFh.js +3 -3
- package/chunk/pt-D750WNnE.js +3 -3
- package/chunk/refs-aTynbs74.js +3 -3
- package/chunk/refs-rlVEzXRZ.js +3 -3
- package/chunk/ro-Dfw74qwR.js +3 -3
- package/chunk/ru-DIfpRqK4.js +3 -3
- package/chunk/sk-CPxzhPDR.js +3 -3
- package/chunk/sl-ZRK2V5CC.js +3 -3
- package/chunk/sr-DQ95rOm6.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-CcFYvoGI.js +3 -3
- package/chunk/sw-D5sN0Ucb.js +3 -3
- package/chunk/ta-BUE37EiO.js +3 -3
- package/chunk/th-BUntaztH.js +3 -3
- package/chunk/tl-CY2mXMuK.js +3 -3
- package/chunk/tr-C0uQMNlc.js +3 -3
- package/chunk/uk-D4dPV9ho.js +3 -3
- package/chunk/ur-DCmi_xNC.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-DHje25fr.js → useCollectFieldsEndpoint-CA0WUL-t.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DVsW9TzX.js.map → useCollectFieldsEndpoint-CA0WUL-t.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DVsW9TzX.js → useCollectFieldsEndpoint-Crk6K05m.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DHje25fr.js.map → useCollectFieldsEndpoint-Crk6K05m.js.map} +1 -1
- package/chunk/useMetrics-BmevR9lU.js +3 -3
- package/chunk/useMetrics-CC3avpOk.js +3 -3
- package/chunk/validators-BzVIDpk_.js +3 -3
- package/chunk/validators-ncvf0dvm.js +3 -3
- package/chunk/vi-BfTLjHg7.js +3 -3
- package/chunk/zh-CB4_bXo2.js +3 -3
- package/chunk/zh-HK-DycNxL4f.js +3 -3
- package/chunk/zu-CWhDRsFE.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +34 -34
- package/chunk/FormFooterComponent-SC3z7wto.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-CA1qdNSr.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\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 MilitaryStatus } 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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\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 <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"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: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .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 updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\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\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAd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H,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
1
|
+
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\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 MilitaryStatus } 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 { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\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 <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"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: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .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 updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"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 updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\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\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GAED,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA;GACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACA,IACC,iBAAA,GAAA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cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { Ht as e, It as t, jt as n, s as r } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
|
-
import { T as c } from "./FormFooterComponent-
|
|
14
|
+
import { T as c } from "./FormFooterComponent-BPl4luwp.js";
|
|
15
15
|
import { $ as l, A as u, B as d, G as f, J as p, R as m, n as h } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as g } from "./useCollectFieldsEndpoint-
|
|
17
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
16
|
+
import { t as g } from "./useCollectFieldsEndpoint-Crk6K05m.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-CuhEe-JS.js";
|
|
18
18
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CEvJtoqt.js";
|
|
19
|
-
import { t as T } from "./BirthDateComponent-
|
|
19
|
+
import { t as T } from "./BirthDateComponent-DeiRjfqb.js";
|
|
20
20
|
import { t as E } from "./PostalCodeComponent-Q7cxuIiG.js";
|
|
21
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-Cm5132xB.js";
|
|
22
22
|
import { t as O } from "./City-Bn6z_tV9.js";
|
|
23
23
|
import { t as k } from "./AddressComponent-tDOYXYuf.js";
|
|
24
|
-
import { t as A } from "./ExtraMessage-
|
|
25
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
24
|
+
import { t as A } from "./ExtraMessage-DbVKYg6z.js";
|
|
25
|
+
import { t as j } from "./ChangeLocaleComponent-luffC-5n.js";
|
|
26
|
+
import { t as M } from "./PersonalInfoStepWrapper-Ds44QLny.js";
|
|
27
27
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
28
28
|
var N = /* @__PURE__ */ e(a(), 1), P = s(), F = i(({ verificationService: e, intl: i }) => {
|
|
29
29
|
let a = e.viewModel, { fieldValidationErrors: s } = e, F = e.verificationResponse, I = c(F), L = t(() => a.countryChoice.value, m(u(e.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, B = L !== "US" || e.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-RRJXxFD4.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { 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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGn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StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { 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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,G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AC1C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, Wt as t, ct as n, n as r } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
|
-
import { x as c } from "./FormFooterComponent-
|
|
10
|
+
import { x as c } from "./FormFooterComponent-DPNJTTLQ.js";
|
|
11
11
|
import { K as l, V as u, Y as d, et as f, j as p, r as m, z as h } from "../sheerid.js";
|
|
12
|
-
import { t as g } from "./useCollectFieldsEndpoint-
|
|
13
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
12
|
+
import { t as g } from "./useCollectFieldsEndpoint-CA0WUL-t.js";
|
|
13
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-DrHxUXmn.js";
|
|
14
14
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-B3DigKNy.js";
|
|
15
|
-
import { t as T } from "./BirthDateComponent-
|
|
15
|
+
import { t as T } from "./BirthDateComponent-74LmrsUh.js";
|
|
16
16
|
import { t as E } from "./PostalCodeComponent-DC6y88Ff.js";
|
|
17
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-Bl2FKDot.js";
|
|
18
18
|
import { t as O } from "./City-Dr5JQzXh.js";
|
|
19
19
|
import { t as k } from "./AddressComponent-DeVavXuU.js";
|
|
20
|
-
import { t as A } from "./ExtraMessage-
|
|
21
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
20
|
+
import { t as A } from "./ExtraMessage-BV_tbK2V.js";
|
|
21
|
+
import { t as j } from "./ChangeLocaleComponent-CMgHD59I.js";
|
|
22
|
+
import { t as M } from "./PersonalInfoStepWrapper-BTi6sZUM.js";
|
|
23
23
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
24
24
|
var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, intl: i }) => {
|
|
25
25
|
let a = t.viewModel, { fieldValidationErrors: s } = t, F = t.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, h(p(t.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || t.programTheme.isSmsNotifierConfigured || t.programTheme.smsLoopEnabled, B = L !== "US" || t.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-Shxz_I62.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { 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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,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epAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { 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 { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.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 updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK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Ae,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { t as e } from "./jsx-runtime-DLOeB2wW.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { t as e } from "./jsx-runtime-DpgCUpxa.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, c as t } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
|
-
import { t as i, x as a } from "./FormFooterComponent-
|
|
10
|
+
import { t as i, x as a } from "./FormFooterComponent-DPNJTTLQ.js";
|
|
11
11
|
import { K as o, et as s, r as c } from "../sheerid.js";
|
|
12
12
|
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-B3DigKNy.js";
|
|
13
13
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js.map → StepCollectIdentifier-2dBrIR9W.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-2dBrIR9W.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { jt as e, p as t } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { n, t as r } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
|
-
import { T as i, t as a } from "./FormFooterComponent-
|
|
14
|
+
import { T as i, t as a } from "./FormFooterComponent-BPl4luwp.js";
|
|
15
15
|
import { $ as o, G as s, n as c } from "../_mysheerid-preview.js";
|
|
16
16
|
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-CEvJtoqt.js";
|
|
17
17
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-DSlIlcXW.js.map → StepCollectIdentifier-CzLFzq-f.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-CzLFzq-f.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
|
+
*/
|
|
8
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js";
|
|
9
|
+
export { e as default };
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
|
-
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-
|
|
12
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js";
|
|
13
13
|
export { e as default };
|
|
@@ -4,37 +4,37 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { Ht as e, It as t, Lt as n, Tt as r, ht as ee, jt as i, p as te, s as ne } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { a, c as o, n as s, t as c } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
|
-
import { T as l, t as re } from "./FormFooterComponent-
|
|
15
|
-
import { n as ie } from "./VerificationApiClient-
|
|
14
|
+
import { T as l, t as re } from "./FormFooterComponent-BPl4luwp.js";
|
|
15
|
+
import { n as ie } from "./VerificationApiClient-DCRPmrmy.js";
|
|
16
16
|
import { s as ae } from "./programThemeGetters-D1_n1gAQ.js";
|
|
17
17
|
import { $ as u, B as d, G as oe, I as se, K as ce, L as le, W as ue, Y as de, Z as fe, et as f, n as p } from "../_mysheerid-preview.js";
|
|
18
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
18
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-CuhEe-JS.js";
|
|
19
19
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-CEvJtoqt.js";
|
|
20
|
-
import { t as S } from "./BirthDateComponent-
|
|
20
|
+
import { t as S } from "./BirthDateComponent-DeiRjfqb.js";
|
|
21
21
|
import { t as C } from "./PostalCodeComponent-Q7cxuIiG.js";
|
|
22
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
22
|
+
import { t as w } from "./CountryComponentWrapper-Cm5132xB.js";
|
|
23
23
|
import { t as T } from "./City-Bn6z_tV9.js";
|
|
24
24
|
import { t as E } from "./AddressComponent-tDOYXYuf.js";
|
|
25
|
-
import { t as D } from "./ExtraMessage-
|
|
26
|
-
import { t as O } from "./CollegeNameComponent-
|
|
27
|
-
import { t as k } from "./StateSelectComponent-
|
|
28
|
-
import { n as A, r as j, t as M } from "./DischargeDateComponent-
|
|
25
|
+
import { t as D } from "./ExtraMessage-DbVKYg6z.js";
|
|
26
|
+
import { t as O } from "./CollegeNameComponent-DTT3AdDm.js";
|
|
27
|
+
import { t as k } from "./StateSelectComponent-DZ4ekMz3.js";
|
|
28
|
+
import { n as A, r as j, t as M } from "./DischargeDateComponent-DGGNuN0D.js";
|
|
29
29
|
import { t as N } from "./DriverLicenseNumberComponent-Cz2hxBlw.js";
|
|
30
|
-
import { n as P, t as F } from "./LowIncomeOrganizationComponent-
|
|
31
|
-
import { t as I } from "./StatusComponent-
|
|
32
|
-
import { t as pe } from "./FirstResponderOrganizationComponent-
|
|
33
|
-
import { t as L } from "./LicensedProfessionalOrganizationComponent-
|
|
34
|
-
import { t as R } from "./MedicalProfessionalOrganizationComponent-
|
|
30
|
+
import { n as P, t as F } from "./LowIncomeOrganizationComponent-wfrRwozi.js";
|
|
31
|
+
import { t as I } from "./StatusComponent-DNirnu24.js";
|
|
32
|
+
import { t as pe } from "./FirstResponderOrganizationComponent-_QjLFfMC.js";
|
|
33
|
+
import { t as L } from "./LicensedProfessionalOrganizationComponent-Bqbm-4re.js";
|
|
34
|
+
import { t as R } from "./MedicalProfessionalOrganizationComponent-DIuKlJ7D.js";
|
|
35
35
|
import { t as z } from "./MemberIdComponent--KEsNJQy.js";
|
|
36
|
-
import { t as B } from "./MembershipOrganizationComponent-
|
|
37
|
-
import { t as me } from "./TeacherSchoolComponent-
|
|
36
|
+
import { t as B } from "./MembershipOrganizationComponent-WuhfGOXa.js";
|
|
37
|
+
import { t as me } from "./TeacherSchoolComponent-BHpkm-dw.js";
|
|
38
38
|
import { t as he } from "./SSN-CCkJwsHx.js";
|
|
39
39
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
40
40
|
var V = /* @__PURE__ */ e(o(), 1), H = c(), U = a(({ intl: e, verificationService: a }) => {
|