@sheerid/jslib-nightly 2.259.0-alpha.2 → 2.259.0-alpha.3
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-CJV3vrMt.js +3 -3
- package/chunk/AddressComponent-DMwOmjiG.js +3 -3
- package/chunk/AnnouncingHeader-BF69hVVm.js +3 -3
- package/chunk/AnnouncingHeader-DjgtqEeX.js +3 -3
- package/chunk/{ApiUrls-Qas0Xjyd.js → ApiUrls-D95iKOSI.js} +4 -4
- package/chunk/{ApiUrls-BpvEY_I3.js.map → ApiUrls-D95iKOSI.js.map} +1 -1
- package/chunk/{ApiUrls-BpvEY_I3.js → ApiUrls-jsXRjACf.js} +4 -4
- package/chunk/{ApiUrls-Qas0Xjyd.js.map → ApiUrls-jsXRjACf.js.map} +1 -1
- package/chunk/{BirthDateComponent-DFHRO9YQ.js → BirthDateComponent-BHSI0CUp.js} +4 -4
- package/chunk/{BirthDateComponent-DFHRO9YQ.js.map → BirthDateComponent-BHSI0CUp.js.map} +1 -1
- package/chunk/{BirthDateComponent-Dh5xAxOF.js → BirthDateComponent-DqkkSB42.js} +4 -4
- package/chunk/{BirthDateComponent-Dh5xAxOF.js.map → BirthDateComponent-DqkkSB42.js.map} +1 -1
- package/chunk/{CaptchaComponent-QYGB0QuK.js → CaptchaComponent-B2bCn0HL.js} +5 -5
- package/chunk/{CaptchaComponent-DaH202Ah.js.map → CaptchaComponent-B2bCn0HL.js.map} +1 -1
- package/chunk/{CaptchaComponent-DaH202Ah.js → CaptchaComponent-pa2v-Kv1.js} +5 -5
- package/chunk/{CaptchaComponent-QYGB0QuK.js.map → CaptchaComponent-pa2v-Kv1.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DdX2nV2D.js → ChangeLocaleComponent-CP_kEafQ.js} +4 -4
- package/chunk/{ChangeLocaleComponent-DdX2nV2D.js.map → ChangeLocaleComponent-CP_kEafQ.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-QMQdbxxB.js → ChangeLocaleComponent-Cy07cdJk.js} +4 -4
- package/chunk/{ChangeLocaleComponent-QMQdbxxB.js.map → ChangeLocaleComponent-Cy07cdJk.js.map} +1 -1
- package/chunk/City-CmO85Z9x.js +3 -3
- package/chunk/City-DlWin4GX.js +3 -3
- package/chunk/{CollegeNameComponent-D_dKLkKY.js → CollegeNameComponent-Cz9Us9RM.js} +4 -4
- package/chunk/{CollegeNameComponent-CIhHISji.js.map → CollegeNameComponent-Cz9Us9RM.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CIhHISji.js → CollegeNameComponent-wdFkAFsj.js} +4 -4
- package/chunk/{CollegeNameComponent-D_dKLkKY.js.map → CollegeNameComponent-wdFkAFsj.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-1BeB_oX_.js +3 -3
- package/chunk/CopyToClipboardComponent-C1BnmvlK.js +3 -3
- package/chunk/{CountryComponentWrapper-zWLRBrRp.js → CountryComponentWrapper-AaraHOGX.js} +4 -4
- package/chunk/{CountryComponentWrapper-Du13nINk.js.map → CountryComponentWrapper-AaraHOGX.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Du13nINk.js → CountryComponentWrapper-BHYHjLHh.js} +4 -4
- package/chunk/{CountryComponentWrapper-zWLRBrRp.js.map → CountryComponentWrapper-BHYHjLHh.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DH3gbXN-.js → DischargeDateComponent-BrziTMXL.js} +6 -6
- package/chunk/{DischargeDateComponent-DH3gbXN-.js.map → DischargeDateComponent-BrziTMXL.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DpNsH3Q4.js → DischargeDateComponent-d85FApuP.js} +6 -6
- package/chunk/{DischargeDateComponent-DpNsH3Q4.js.map → DischargeDateComponent-d85FApuP.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-D8q18o2M.js +3 -3
- package/chunk/DriverLicenseNumberComponent-DgXMM-Pt.js +3 -3
- package/chunk/{EmailLoopPending-BpsA3nlg.js → EmailLoopPending-BBrkjClD.js} +4 -4
- package/chunk/{EmailLoopPending-Dvufu09u.js.map → EmailLoopPending-BBrkjClD.js.map} +1 -1
- package/chunk/{EmailLoopPending-Dvufu09u.js → EmailLoopPending-CFh6KYhR.js} +4 -4
- package/chunk/{EmailLoopPending-BpsA3nlg.js.map → EmailLoopPending-CFh6KYhR.js.map} +1 -1
- package/chunk/{ExtraMessage-9BMK2Fd_.js → ExtraMessage-BYLbcc4O.js} +4 -4
- package/chunk/{ExtraMessage-9BMK2Fd_.js.map → ExtraMessage-BYLbcc4O.js.map} +1 -1
- package/chunk/{ExtraMessage-Ca6AF5JE.js → ExtraMessage-DuEKh0WN.js} +4 -4
- package/chunk/{ExtraMessage-Ca6AF5JE.js.map → ExtraMessage-DuEKh0WN.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C88NJlsu.js → FirstResponderOrganizationComponent-Bm-LyjdU.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-C88NJlsu.js.map → FirstResponderOrganizationComponent-Bm-LyjdU.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DgcptK9s.js → FirstResponderOrganizationComponent-DlrpOY2c.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DgcptK9s.js.map → FirstResponderOrganizationComponent-DlrpOY2c.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BJlHmrSC.js → FormFieldInputSelect-CcSfBZU4.js} +4 -4
- package/chunk/{FormFieldInputSelect-BJlHmrSC.js.map → FormFieldInputSelect-CcSfBZU4.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-qjIEfk_y.js → FormFieldInputSelect-DFoefspo.js} +4 -4
- package/chunk/{FormFieldInputSelect-qjIEfk_y.js.map → FormFieldInputSelect-DFoefspo.js.map} +1 -1
- package/chunk/FormFieldLayout-BpmeMD4X.js +3 -3
- package/chunk/FormFieldLayout-DIcCOsGu.js +3 -3
- package/chunk/FormFieldText-zjWk7Cyc.js +3 -3
- package/chunk/FormFieldText-zuTjfmLt.js +3 -3
- package/chunk/{FormFieldTypeahead-4sP6yrSp.js → FormFieldTypeahead-C6c2tZjB.js} +6 -6
- package/chunk/{FormFieldTypeahead-4sP6yrSp.js.map → FormFieldTypeahead-C6c2tZjB.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CrDv6QmZ.js → FormFieldTypeahead-CWBTzGT7.js} +6 -6
- package/chunk/{FormFieldTypeahead-CrDv6QmZ.js.map → FormFieldTypeahead-CWBTzGT7.js.map} +1 -1
- package/chunk/{FormFooterComponent-CXzDxR2J.js → FormFooterComponent-BvXzhu3G.js} +9 -13
- package/chunk/{FormFooterComponent-CXzDxR2J.js.map → FormFooterComponent-BvXzhu3G.js.map} +1 -1
- package/chunk/{FormFooterComponent-D9_fIqUs.js → FormFooterComponent-CU9v96Pk.js} +9 -13
- package/chunk/FormFooterComponent-CU9v96Pk.js.map +1 -0
- package/chunk/{FormSelectChoice-BQPP65dN.js → FormSelectChoice-C1rXawoW.js} +4 -4
- package/chunk/{FormSelectChoice-BQPP65dN.js.map → FormSelectChoice-C1rXawoW.js.map} +1 -1
- package/chunk/{FormSelectChoice-QRH1HmYa.js → FormSelectChoice-De4VW65J.js} +4 -4
- package/chunk/{FormSelectChoice-QRH1HmYa.js.map → FormSelectChoice-De4VW65J.js.map} +1 -1
- package/chunk/InputText-Bzkl8mKj.js +3 -3
- package/chunk/InputText-DA8wfbQM.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-DD9CuMfT.js → LicensedProfessionalOrganizationComponent-DDLl3nm2.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DD9CuMfT.js.map → LicensedProfessionalOrganizationComponent-DDLl3nm2.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Cy9sdOZC.js → LicensedProfessionalOrganizationComponent-DWw7sAA_.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-Cy9sdOZC.js.map → LicensedProfessionalOrganizationComponent-DWw7sAA_.js.map} +1 -1
- package/chunk/LogoComponent-BMeuu-aK.js +3 -3
- package/chunk/LogoComponent-BxIXOXCM.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-D3-otdoS.js → LowIncomeOrganizationComponent-Js2hdcpd.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-D3-otdoS.js.map → LowIncomeOrganizationComponent-Js2hdcpd.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Dpvvj9n4.js → LowIncomeOrganizationComponent-pg41N7jZ.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-Dpvvj9n4.js.map → LowIncomeOrganizationComponent-pg41N7jZ.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-B-hFqd6W.js → MedicalProfessionalOrganizationComponent-BiAMjeYg.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-B-hFqd6W.js.map → MedicalProfessionalOrganizationComponent-BiAMjeYg.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-B_6Eeh8t.js → MedicalProfessionalOrganizationComponent-CG94dxGF.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-B_6Eeh8t.js.map → MedicalProfessionalOrganizationComponent-CG94dxGF.js.map} +1 -1
- package/chunk/MemberIdComponent-DMGaNM9l.js +3 -3
- package/chunk/MemberIdComponent-Dva2Xx7J.js +3 -3
- package/chunk/{MembershipOrganizationComponent-DuJZlKLf.js → MembershipOrganizationComponent-B4sltAFs.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-CfLlUdPl.js.map → MembershipOrganizationComponent-B4sltAFs.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CfLlUdPl.js → MembershipOrganizationComponent-DqdtAn4g.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-DuJZlKLf.js.map → MembershipOrganizationComponent-DqdtAn4g.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-D3lzSm2E.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-Ywai8bYu.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-DgL_kGk3.js → PersonalInfoStepWrapper-CfEXVPIa.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DgL_kGk3.js.map → PersonalInfoStepWrapper-CfEXVPIa.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-B-1TuvRJ.js → PersonalInfoStepWrapper-lbTtms4r.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-B-1TuvRJ.js.map → PersonalInfoStepWrapper-lbTtms4r.js.map} +1 -1
- package/chunk/PostalCodeComponent-BGzBByZd.js +3 -3
- package/chunk/PostalCodeComponent-C97fgZFI.js +3 -3
- package/chunk/SSN-CNzKgddw.js +3 -3
- package/chunk/SSN-mk_cMbDH.js +3 -3
- package/chunk/{StateSelectComponent-D2j7QCvj.js → StateSelectComponent-C6R9Cjgi.js} +4 -4
- package/chunk/{StateSelectComponent-Cx1_JBfI.js.map → StateSelectComponent-C6R9Cjgi.js.map} +1 -1
- package/chunk/{StateSelectComponent-Cx1_JBfI.js → StateSelectComponent-DVR-oYsL.js} +4 -4
- package/chunk/{StateSelectComponent-D2j7QCvj.js.map → StateSelectComponent-DVR-oYsL.js.map} +1 -1
- package/chunk/{StatusComponent-_HBklXve.js → StatusComponent-DS5eysat.js} +4 -4
- package/chunk/{StatusComponent-Cxw9bsOp.js.map → StatusComponent-DS5eysat.js.map} +1 -1
- package/chunk/{StatusComponent-Cxw9bsOp.js → StatusComponent-VG5PRT7W.js} +4 -4
- package/chunk/{StatusComponent-_HBklXve.js.map → StatusComponent-VG5PRT7W.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-B_rTMccG.js → StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-B_rTMccG.js.map → StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Ceamkjd0.js → StepActiveMilitaryPersonalInfoComponent-CsydoggY.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Ceamkjd0.js.map → StepActiveMilitaryPersonalInfoComponent-CsydoggY.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DmBYGHG8.js → StepAgePersonalInfo-DW1ElYsy.js} +11 -11
- package/chunk/{StepAgePersonalInfo-DmBYGHG8.js.map → StepAgePersonalInfo-DW1ElYsy.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-X-eQf_2z.js → StepAgePersonalInfo-DlOA9WFp.js} +11 -11
- package/chunk/{StepAgePersonalInfo-X-eQf_2z.js.map → StepAgePersonalInfo-DlOA9WFp.js.map} +1 -1
- package/chunk/StepCard-7t2vkHqM.js +3 -3
- package/chunk/StepCard-BtvCt-ND.js +3 -3
- package/chunk/{StepCollectIdentifier-bhlSO88L.js → StepCollectIdentifier-BitqCn5S.js} +4 -4
- package/chunk/{StepCollectIdentifier-bhlSO88L.js.map → StepCollectIdentifier-BitqCn5S.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-8QO4sVSo.js → StepCollectIdentifier-iokOENmH.js} +4 -4
- package/chunk/{StepCollectIdentifier-8QO4sVSo.js.map → StepCollectIdentifier-iokOENmH.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-CwiPlk5w.js → StepCollectMilitaryStatusComponent-DSl_NI5F.js} +4 -4
- package/chunk/StepCollectMilitaryStatusComponent-FkrZTfgt.js +9 -0
- package/chunk/{StepCollectPersonalInfo-R-5UOPTA.js → StepCollectPersonalInfo-BsRPrpbi.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-R-5UOPTA.js.map → StepCollectPersonalInfo-BsRPrpbi.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-r2uBVXk_.js → StepCollectPersonalInfo-D_E9jueP.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-r2uBVXk_.js.map → StepCollectPersonalInfo-D_E9jueP.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-C2HoMZzF.js +3 -3
- package/chunk/StepCompleteAuthentication-Cs4zhI-D.js +3 -3
- package/chunk/{StepConsolation-CwLUx5P6.js → StepConsolation-C4z3-RUr.js} +4 -4
- package/chunk/{StepConsolation-CwLUx5P6.js.map → StepConsolation-C4z3-RUr.js.map} +1 -1
- package/chunk/{StepConsolation-J6tneCHK.js → StepConsolation-CIsDgtMF.js} +4 -4
- package/chunk/{StepConsolation-J6tneCHK.js.map → StepConsolation-CIsDgtMF.js.map} +1 -1
- package/chunk/{StepDocUpload-Dl-gzKui.js → StepDocUpload-DB-j-bu5.js} +4 -4
- package/chunk/{StepDocUpload-Dl-gzKui.js.map → StepDocUpload-DB-j-bu5.js.map} +1 -1
- package/chunk/{StepDocUpload-dc7sQRtA.js → StepDocUpload-QrHXh8mp.js} +4 -4
- package/chunk/{StepDocUpload-dc7sQRtA.js.map → StepDocUpload-QrHXh8mp.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CkHJjXlR.js → StepDriverLicensePersonalInfoComponent-bh1_IVPF.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-CkHJjXlR.js.map → StepDriverLicensePersonalInfoComponent-bh1_IVPF.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DWZtsgBr.js → StepDriverLicensePersonalInfoComponent-siLTyqlG.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-DWZtsgBr.js.map → StepDriverLicensePersonalInfoComponent-siLTyqlG.js.map} +1 -1
- package/chunk/{StepEmailLoop-BDRiI0kO.js → StepEmailLoop-BPyFeeyk.js} +5 -5
- package/chunk/{StepEmailLoop-BDRiI0kO.js.map → StepEmailLoop-BPyFeeyk.js.map} +1 -1
- package/chunk/{StepEmailLoop-DWNRCm1O.js → StepEmailLoop-CLgXP9PF.js} +5 -5
- package/chunk/{StepEmailLoop-DWNRCm1O.js.map → StepEmailLoop-CLgXP9PF.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-al1phPDp.js → StepEmploymentPersonalInfo-BhfN1Swc.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-C0UAANQZ.js.map → StepEmploymentPersonalInfo-BhfN1Swc.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-C0UAANQZ.js → StepEmploymentPersonalInfo-D3OVzQfH.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-al1phPDp.js.map → StepEmploymentPersonalInfo-D3OVzQfH.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Byb5gsnf.js → StepFirstResponderPersonalInfo-CJ_OFUC1.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-Byb5gsnf.js.map → StepFirstResponderPersonalInfo-CJ_OFUC1.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-Ci8gAYOs.js → StepFirstResponderPersonalInfo-Uj_HyOUK.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-Ci8gAYOs.js.map → StepFirstResponderPersonalInfo-Uj_HyOUK.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Ca9lo4Jp.js → StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B2Kv9xw_.js.map → StepGeneralIdentityPersonalInfoComponent-BA1NUm7h.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B2Kv9xw_.js → StepGeneralIdentityPersonalInfoComponent-DhXG5JLx.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Ca9lo4Jp.js.map → StepGeneralIdentityPersonalInfoComponent-DhXG5JLx.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BjS4F6j2.js → StepHybridIdentityPersonalInfoComponent-BGO0rNuA.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BZ7Qu4iK.js.map → StepHybridIdentityPersonalInfoComponent-BGO0rNuA.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BZ7Qu4iK.js → StepHybridIdentityPersonalInfoComponent-DL_yTP9w.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BjS4F6j2.js.map → StepHybridIdentityPersonalInfoComponent-DL_yTP9w.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-Djow0hoO.js → StepIDCheckLoop-1S7sp1g_.js} +4 -4
- package/chunk/{StepIDCheckLoop-DiGRkuBM.js.map → StepIDCheckLoop-1S7sp1g_.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DiGRkuBM.js → StepIDCheckLoop-D6leD-oX.js} +4 -4
- package/chunk/{StepIDCheckLoop-Djow0hoO.js.map → StepIDCheckLoop-D6leD-oX.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BvMXuWoN.js → StepIDCheckLoopOnfido-DS62i7yb.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-CT458GtS.js.map → StepIDCheckLoopOnfido-DS62i7yb.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CT458GtS.js → StepIDCheckLoopOnfido-NLKVzJV1.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-BvMXuWoN.js.map → StepIDCheckLoopOnfido-NLKVzJV1.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BvLpBUxe.js → StepIDCheckLoopRegula-DeLb4d-j.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-BvLpBUxe.js.map → StepIDCheckLoopRegula-DeLb4d-j.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DcB8ugg0.js → StepIDCheckLoopRegula-DpsuIVdU.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-DcB8ugg0.js.map → StepIDCheckLoopRegula-DpsuIVdU.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-k8BFxBXH.js → StepInactiveMilitaryPersonalInfoComponent-BJg7kmzL.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BpiqZDNI.js.map → StepInactiveMilitaryPersonalInfoComponent-BJg7kmzL.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BpiqZDNI.js → StepInactiveMilitaryPersonalInfoComponent-ag9fYZ8M.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-k8BFxBXH.js.map → StepInactiveMilitaryPersonalInfoComponent-ag9fYZ8M.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-C2gyvg1m.js → StepLicensedProfessionalPersonalInfo-6e-HsF9r.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-C2gyvg1m.js.map → StepLicensedProfessionalPersonalInfo-6e-HsF9r.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DWvD1Z6N.js → StepLicensedProfessionalPersonalInfo-CqCGJBV_.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-DWvD1Z6N.js.map → StepLicensedProfessionalPersonalInfo-CqCGJBV_.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CZlgdCqq.js → StepLowIncomePersonalInfo-Vy6xgq87.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-CTZREXGu.js.map → StepLowIncomePersonalInfo-Vy6xgq87.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CTZREXGu.js → StepLowIncomePersonalInfo-nHj8RV6k.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-CZlgdCqq.js.map → StepLowIncomePersonalInfo-nHj8RV6k.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmsfNlPZ.js → StepMedicalProfessionalPersonalInfo-BbkO8cmo.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-CP9XPNbL.js.map → StepMedicalProfessionalPersonalInfo-BbkO8cmo.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CP9XPNbL.js → StepMedicalProfessionalPersonalInfo-wrrupNWv.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmsfNlPZ.js.map → StepMedicalProfessionalPersonalInfo-wrrupNWv.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-TjSa0NJV.js → StepMemberPersonalInfo-Df9tiNq4.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-Dpb5-ENF.js.map → StepMemberPersonalInfo-Df9tiNq4.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Dpb5-ENF.js → StepMemberPersonalInfo-DzmzUubV.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-TjSa0NJV.js.map → StepMemberPersonalInfo-DzmzUubV.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-6bjpRGAv.js → StepMoverPersonalInfo-DtYxf5Tv.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-6bjpRGAv.js.map → StepMoverPersonalInfo-DtYxf5Tv.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-vv7-jdz0.js → StepMoverPersonalInfo-QpfjD_c6.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-vv7-jdz0.js.map → StepMoverPersonalInfo-QpfjD_c6.js.map} +1 -1
- package/chunk/{StepOverrideComponent-4f8ZZxxE.js → StepOverrideComponent-CD6SjHRm.js} +4 -4
- package/chunk/{StepOverrideComponent-4f8ZZxxE.js.map → StepOverrideComponent-CD6SjHRm.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BXnbZhfO.js → StepOverrideComponent-D4YkXhso.js} +4 -4
- package/chunk/{StepOverrideComponent-BXnbZhfO.js.map → StepOverrideComponent-D4YkXhso.js.map} +1 -1
- package/chunk/{StepSMSLoop-DO4S-Aje.js → StepSMSLoop-DPthV2Lc.js} +4 -4
- package/chunk/{StepSMSLoop-DAKxJhXo.js.map → StepSMSLoop-DPthV2Lc.js.map} +1 -1
- package/chunk/{StepSMSLoop-DAKxJhXo.js → StepSMSLoop-DfmUZBbW.js} +4 -4
- package/chunk/{StepSMSLoop-DO4S-Aje.js.map → StepSMSLoop-DfmUZBbW.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-BseFM9rt.js → StepSocialSecurityNumber-CGpWJ3oN.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-BseFM9rt.js.map → StepSocialSecurityNumber-CGpWJ3oN.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-D0_62BYK.js → StepSocialSecurityNumber-DxFxaZ2R.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-D0_62BYK.js.map → StepSocialSecurityNumber-DxFxaZ2R.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CLG5AxSd.js → StepStudentPersonalInfo-DFTqKs_m.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-0LRBqSx5.js.map → StepStudentPersonalInfo-DFTqKs_m.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-0LRBqSx5.js → StepStudentPersonalInfo-DgYva1Rh.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-CLG5AxSd.js.map → StepStudentPersonalInfo-DgYva1Rh.js.map} +1 -1
- package/chunk/{StepSuccess-Be30r2Og.js → StepSuccess-BHqTjF_1.js} +4 -4
- package/chunk/{StepSuccess-8Ek9VvK_.js.map → StepSuccess-BHqTjF_1.js.map} +1 -1
- package/chunk/{StepSuccess-8Ek9VvK_.js → StepSuccess-C6kBfGWn.js} +4 -4
- package/chunk/{StepSuccess-Be30r2Og.js.map → StepSuccess-C6kBfGWn.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BYTmkyxy.js → StepTeacherPersonalInfo-BxaaxkGP.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-BYTmkyxy.js.map → StepTeacherPersonalInfo-BxaaxkGP.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BfyMicng.js → StepTeacherPersonalInfo-a_hD0tId.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-BfyMicng.js.map → StepTeacherPersonalInfo-a_hD0tId.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-IkCV6bH-.js → TeacherSchoolComponent-DSNAhVx8.js} +4 -4
- package/chunk/{TeacherSchoolComponent-Qyri5g_X.js.map → TeacherSchoolComponent-DSNAhVx8.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-Qyri5g_X.js → TeacherSchoolComponent-d1XeOQ1I.js} +4 -4
- package/chunk/{TeacherSchoolComponent-IkCV6bH-.js.map → TeacherSchoolComponent-d1XeOQ1I.js.map} +1 -1
- package/chunk/TestingRouteOverrides-B-zcTBa_.js +3 -3
- package/chunk/TestingRouteOverrides-BDCygTLC.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-D6OYdL72.js → VerificationApiClient-Cx1SikK8.js} +4 -4
- package/chunk/{VerificationApiClient-D6OYdL72.js.map → VerificationApiClient-Cx1SikK8.js.map} +1 -1
- package/chunk/{VerificationApiClient-Br6D_KwQ.js → VerificationApiClient-Dbi5PEQ8.js} +4 -4
- package/chunk/{VerificationApiClient-Br6D_KwQ.js.map → VerificationApiClient-Dbi5PEQ8.js.map} +1 -1
- package/chunk/{VerificationApiUtils-rnfNWA2k.js → VerificationApiUtils-CtfMQ7a_.js} +5 -5
- package/chunk/{VerificationApiUtils-D5oFJWD5.js.map → VerificationApiUtils-CtfMQ7a_.js.map} +1 -1
- package/chunk/{VerificationApiUtils-D5oFJWD5.js → VerificationApiUtils-y5gjtrYk.js} +5 -5
- package/chunk/{VerificationApiUtils-rnfNWA2k.js.map → VerificationApiUtils-y5gjtrYk.js.map} +1 -1
- package/chunk/ar-wkBEXxD9.js +3 -3
- package/chunk/bg-D2-seofX.js +3 -3
- package/chunk/bn-IN-B5PyYaJU.js +3 -3
- package/chunk/countryUtils-D2UBy7Uo.js +3 -3
- package/chunk/countryUtils-QSjR1rBI.js +3 -3
- package/chunk/cs-CsEnIopo.js +3 -3
- package/chunk/da-Da-m3VU_.js +3 -3
- package/chunk/de-BSoD5U3-.js +3 -3
- package/chunk/{downshift.esm-oTd5iRZU.js → downshift.esm-ChSUVkrQ.js} +4 -4
- package/chunk/{downshift.esm-oTd5iRZU.js.map → downshift.esm-ChSUVkrQ.js.map} +1 -1
- package/chunk/{downshift.esm-DWGiKAV_.js → downshift.esm-DVcQrgG5.js} +4 -4
- package/chunk/{downshift.esm-DWGiKAV_.js.map → downshift.esm-DVcQrgG5.js.map} +1 -1
- package/chunk/el-CFa6y9Ri.js +3 -3
- package/chunk/empties-BIoZK05_.js +3 -3
- package/chunk/empties-DHvaWflk.js +3 -3
- package/chunk/en-GB-V8XaGkaI.js +3 -3
- package/chunk/es-D18tLxcT.js +3 -3
- package/chunk/es-ES-7x2bVUQr.js +3 -3
- package/chunk/et-udrWMVlD.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-DgwYULMs.js +3 -3
- package/chunk/fi-CkCWFGDC.js +3 -3
- package/chunk/fr-BprIFEa8.js +3 -3
- package/chunk/fr-CA-DrjICejr.js +3 -3
- package/chunk/ga-LaV5ZJgg.js +3 -3
- package/chunk/hi-IN-7dtEICYI.js +3 -3
- package/chunk/hr-2Bctl997.js +3 -3
- package/chunk/hu-BT0z6TPZ.js +3 -3
- package/chunk/id-BvyYep3X.js +3 -3
- package/chunk/intl-Yr2cw5px.js +3 -3
- package/chunk/is-DOsKfa80.js +3 -3
- package/chunk/it-3dX9AQk7.js +3 -3
- package/chunk/iw-5I90wqQ8.js +3 -3
- package/chunk/ja-CHdgbMgX.js +3 -3
- package/chunk/jsx-runtime-BknAqbDq.js +3 -3
- package/chunk/jsx-runtime-D_-z-h6n.js +3 -3
- package/chunk/kk-BriyNfHL.js +3 -3
- package/chunk/ko-DsMaax3V.js +3 -3
- package/chunk/lo-CjASRmNr.js +3 -3
- package/chunk/lt-DF29E1de.js +3 -3
- package/chunk/lv-DlHBZyt-.js +3 -3
- package/chunk/militaryStepHelpers-DSh6iat_.js +3 -3
- package/chunk/militaryStepHelpers-UF-7lF1f.js +3 -3
- package/chunk/mocks-1r84in2Q.js +3 -3
- package/chunk/mocks-CKXq8CZk.js +3 -3
- package/chunk/ms-B3vDtlFh.js +3 -3
- package/chunk/nl-BE-Dw1IGXuF.js +3 -3
- package/chunk/nl-Cqkrr5-r.js +3 -3
- package/chunk/no-876EdwkX.js +3 -3
- package/chunk/options-D19mRw5a.js +3 -3
- package/chunk/pl-B_G8s05-.js +3 -3
- package/chunk/programThemeGetters-Lz3L0Vh7.js +3 -3
- package/chunk/programThemeGetters-iBty-gXI.js +3 -3
- package/chunk/pt-BR-DWj043qk.js +3 -3
- package/chunk/pt-DckA3Jnn.js +3 -3
- package/chunk/refs-Bbe0gnJ3.js +3 -3
- package/chunk/refs-C_tB1qMA.js +3 -3
- package/chunk/ro-DukNcWCM.js +3 -3
- package/chunk/ru-RkdRQ7qb.js +3 -3
- package/chunk/sk-CPBgBtC5.js +3 -3
- package/chunk/sl-Cyj9PWmN.js +3 -3
- package/chunk/sr-Bm1GVW8m.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-CcMmeZrG.js +3 -3
- package/chunk/sw-BPvl1ou6.js +3 -3
- package/chunk/ta-BPEH7IlE.js +3 -3
- package/chunk/th-Dd912RL5.js +3 -3
- package/chunk/tl-J_TdpjQz.js +3 -3
- package/chunk/tr-B-GrrJj0.js +3 -3
- package/chunk/uk-MohyvT_n.js +3 -3
- package/chunk/ur-CDYGpWMm.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-BuXZrZTD.js → useCollectFieldsEndpoint-3Y1ZabGh.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-BuXZrZTD.js.map → useCollectFieldsEndpoint-3Y1ZabGh.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-BSbEIf3Q.js → useCollectFieldsEndpoint-DbKsNLEw.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-BSbEIf3Q.js.map → useCollectFieldsEndpoint-DbKsNLEw.js.map} +1 -1
- package/chunk/useMetrics-BdMoL7SD.js +3 -3
- package/chunk/useMetrics-D_8asKZL.js +3 -3
- package/chunk/validators-DTjHYDSK.js +3 -3
- package/chunk/validators-DTjHYDSK.js.map +1 -1
- package/chunk/validators-Do9xo2t_.js +3 -3
- package/chunk/validators-Do9xo2t_.js.map +1 -1
- package/chunk/vi-CdPTWSev.js +3 -3
- package/chunk/zh-DhnjKBoc.js +3 -3
- package/chunk/zh-HK-CWKNP_HX.js +3 -3
- package/chunk/zu-BpMHS0oR.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-D9_fIqUs.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-f2ZW0KJY.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-Ceamkjd0.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,EA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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"}
|
|
1
|
+
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-CsydoggY.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,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AAe,CAAQ,GACrD,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,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"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
3
|
+
* VERSION: 2.259.0-alpha.3
|
|
4
|
+
* BUILD_TIMESTAMP: 1784836480727
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:40 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, Wt as t, ct as n, n as r } from "./options-D19mRw5a.js";
|
|
9
9
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-BknAqbDq.js";
|
|
10
|
-
import { C as c } from "./FormFooterComponent-
|
|
10
|
+
import { C as c } from "./FormFooterComponent-BvXzhu3G.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-DbKsNLEw.js";
|
|
13
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-B2bCn0HL.js";
|
|
14
14
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-Ywai8bYu.js";
|
|
15
|
-
import { t as T } from "./BirthDateComponent-
|
|
15
|
+
import { t as T } from "./BirthDateComponent-BHSI0CUp.js";
|
|
16
16
|
import { t as E } from "./PostalCodeComponent-C97fgZFI.js";
|
|
17
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-BHYHjLHh.js";
|
|
18
18
|
import { t as O } from "./City-CmO85Z9x.js";
|
|
19
19
|
import { t as k } from "./AddressComponent-DMwOmjiG.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-DuEKh0WN.js";
|
|
21
|
+
import { t as j } from "./ChangeLocaleComponent-Cy07cdJk.js";
|
|
22
|
+
import { t as M } from "./PersonalInfoStepWrapper-lbTtms4r.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-DmBYGHG8.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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sy.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,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;EAC9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A,EAAmB,eAAe,CAAQ,GAC1C,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"}
|
|
@@ -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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1784836485051
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:45 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { Lt as e, Mt as t, Ut as n, s as r } from "./intl-Yr2cw5px.js";
|
|
13
13
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-D_-z-h6n.js";
|
|
14
|
-
import { D as c } from "./FormFooterComponent-
|
|
14
|
+
import { D as c } from "./FormFooterComponent-CU9v96Pk.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-3Y1ZabGh.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-pa2v-Kv1.js";
|
|
18
18
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-D3lzSm2E.js";
|
|
19
|
-
import { t as T } from "./BirthDateComponent-
|
|
19
|
+
import { t as T } from "./BirthDateComponent-DqkkSB42.js";
|
|
20
20
|
import { t as E } from "./PostalCodeComponent-BGzBByZd.js";
|
|
21
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-AaraHOGX.js";
|
|
22
22
|
import { t as O } from "./City-DlWin4GX.js";
|
|
23
23
|
import { t as k } from "./AddressComponent-CJV3vrMt.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-BYLbcc4O.js";
|
|
25
|
+
import { t as j } from "./ChangeLocaleComponent-CP_kEafQ.js";
|
|
26
|
+
import { t as M } from "./PersonalInfoStepWrapper-CfEXVPIa.js";
|
|
27
27
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
28
28
|
var N = /* @__PURE__ */ n(a(), 1), P = s(), F = i(({ verificationService: n, intl: i }) => {
|
|
29
29
|
let a = n.viewModel, { fieldValidationErrors: s } = n, F = n.verificationResponse, I = c(F), L = e(() => a.countryChoice.value, m(u(n.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || n.programTheme.isSmsNotifierConfigured || n.programTheme.smsLoopEnabled, B = L !== "US" || n.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-X-eQf_2z.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,EAA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zB,CAE0E"}
|
|
1
|
+
{"version":3,"file":"StepAgePersonalInfo-DlOA9WFp.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,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;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COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { t as e } from "./jsx-runtime-BknAqbDq.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1784836485051
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:45 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { t as e } from "./jsx-runtime-D_-z-h6n.js";
|
|
@@ -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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1784836485051
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:45 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { Mt as e, p as t } from "./intl-Yr2cw5px.js";
|
|
13
13
|
import { n, t as r } from "./jsx-runtime-D_-z-h6n.js";
|
|
14
|
-
import { D as i, t as a } from "./FormFooterComponent-
|
|
14
|
+
import { D as i, t as a } from "./FormFooterComponent-CU9v96Pk.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-D3lzSm2E.js";
|
|
17
17
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-bhlSO88L.js.map → StepCollectIdentifier-BitqCn5S.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-BitqCn5S.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"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
3
|
+
* VERSION: 2.259.0-alpha.3
|
|
4
|
+
* BUILD_TIMESTAMP: 1784836480727
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:40 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, c as t } from "./options-D19mRw5a.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-BknAqbDq.js";
|
|
10
|
-
import { C as i, t as a } from "./FormFooterComponent-
|
|
10
|
+
import { C as i, t as a } from "./FormFooterComponent-BvXzhu3G.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-Ywai8bYu.js";
|
|
13
13
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-8QO4sVSo.js.map → StepCollectIdentifier-iokOENmH.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-iokOENmH.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,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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1784836485051
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:45 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
|
-
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-
|
|
12
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-CsydoggY.js";
|
|
13
13
|
export { e as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* VERSION: 2.259.0-alpha.3
|
|
4
|
+
* BUILD_TIMESTAMP: 1784836480727
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:40 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
|
+
*/
|
|
8
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-CLHSV6aV.js";
|
|
9
|
+
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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Thu Jul 23 2026
|
|
7
|
+
* VERSION: 2.259.0-alpha.3
|
|
8
|
+
* BUILD_TIMESTAMP: 1784836485051
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 19:54:45 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { Et as e, Lt as t, Mt as n, Rt as r, Ut as i, gt as ee, p as te, s as ne } from "./intl-Yr2cw5px.js";
|
|
13
13
|
import { a, c as o, n as s, t as c } from "./jsx-runtime-D_-z-h6n.js";
|
|
14
|
-
import { D as re, t as ie } from "./FormFooterComponent-
|
|
15
|
-
import { n as l } from "./VerificationApiClient-
|
|
14
|
+
import { D as re, t as ie } from "./FormFooterComponent-CU9v96Pk.js";
|
|
15
|
+
import { n as l } from "./VerificationApiClient-Cx1SikK8.js";
|
|
16
16
|
import { s as u } from "./programThemeGetters-iBty-gXI.js";
|
|
17
17
|
import { $ as d, B as f, G as ae, I as oe, K as se, L as ce, W as le, Y as ue, Z as de, et as p, n as fe } 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-pa2v-Kv1.js";
|
|
19
19
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-D3lzSm2E.js";
|
|
20
|
-
import { t as S } from "./BirthDateComponent-
|
|
20
|
+
import { t as S } from "./BirthDateComponent-DqkkSB42.js";
|
|
21
21
|
import { t as C } from "./PostalCodeComponent-BGzBByZd.js";
|
|
22
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
22
|
+
import { t as w } from "./CountryComponentWrapper-AaraHOGX.js";
|
|
23
23
|
import { t as T } from "./City-DlWin4GX.js";
|
|
24
24
|
import { t as E } from "./AddressComponent-CJV3vrMt.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-BYLbcc4O.js";
|
|
26
|
+
import { t as O } from "./CollegeNameComponent-Cz9Us9RM.js";
|
|
27
|
+
import { t as k } from "./StateSelectComponent-C6R9Cjgi.js";
|
|
28
|
+
import { n as A, r as j, t as M } from "./DischargeDateComponent-BrziTMXL.js";
|
|
29
29
|
import { t as N } from "./DriverLicenseNumberComponent-D8q18o2M.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-Js2hdcpd.js";
|
|
31
|
+
import { t as I } from "./StatusComponent-VG5PRT7W.js";
|
|
32
|
+
import { t as pe } from "./FirstResponderOrganizationComponent-DlrpOY2c.js";
|
|
33
|
+
import { t as L } from "./LicensedProfessionalOrganizationComponent-DDLl3nm2.js";
|
|
34
|
+
import { t as R } from "./MedicalProfessionalOrganizationComponent-CG94dxGF.js";
|
|
35
35
|
import { t as z } from "./MemberIdComponent-DMGaNM9l.js";
|
|
36
|
-
import { t as B } from "./MembershipOrganizationComponent-
|
|
37
|
-
import { t as me } from "./TeacherSchoolComponent-
|
|
36
|
+
import { t as B } from "./MembershipOrganizationComponent-DqdtAn4g.js";
|
|
37
|
+
import { t as me } from "./TeacherSchoolComponent-DSNAhVx8.js";
|
|
38
38
|
import { t as he } from "./SSN-CNzKgddw.js";
|
|
39
39
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
40
40
|
var V = /* @__PURE__ */ i(o(), 1), H = c(), U = a(({ intl: i, verificationService: a }) => {
|