@sheerid/jslib 2.305.0 → 2.307.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +1053 -1069
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-Cy1Rhow8.js → AddressComponent-C2lC7O7h.js} +8 -8
- package/chunk/{AddressComponent-7Kn9xST8.js.map → AddressComponent-C2lC7O7h.js.map} +1 -1
- package/chunk/{AddressComponent-7Kn9xST8.js → AddressComponent-h8JfcOkn.js} +8 -8
- package/chunk/{AddressComponent-Cy1Rhow8.js.map → AddressComponent-h8JfcOkn.js.map} +1 -1
- package/chunk/{AnnouncingHeader-zH7WLU2-.js → AnnouncingHeader-DKOYC3b9.js} +6 -6
- package/chunk/{AnnouncingHeader-CnV2m0Ak.js.map → AnnouncingHeader-DKOYC3b9.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CnV2m0Ak.js → AnnouncingHeader-gJrk6VDV.js} +6 -6
- package/chunk/{AnnouncingHeader-zH7WLU2-.js.map → AnnouncingHeader-gJrk6VDV.js.map} +1 -1
- package/chunk/{BirthDateComponent-Jlv1ygoa.js → BirthDateComponent-DLA-a79g.js} +8 -8
- package/chunk/{BirthDateComponent-D1M8ATw2.js.map → BirthDateComponent-DLA-a79g.js.map} +1 -1
- package/chunk/{BirthDateComponent-D1M8ATw2.js → BirthDateComponent-PIolYRcO.js} +8 -8
- package/chunk/{BirthDateComponent-Jlv1ygoa.js.map → BirthDateComponent-PIolYRcO.js.map} +1 -1
- package/chunk/{CaptchaComponent-DijVQaDh.js → CaptchaComponent-DNRbjOk0.js} +232 -235
- package/chunk/{CaptchaComponent-DijVQaDh.js.map → CaptchaComponent-DNRbjOk0.js.map} +1 -1
- package/chunk/{CaptchaComponent-Jj13Tw4k.js → CaptchaComponent-DwUevV3t.js} +234 -237
- package/chunk/{CaptchaComponent-Jj13Tw4k.js.map → CaptchaComponent-DwUevV3t.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-B_Ya5hV4.js → ChangeLocaleComponent-BOMhh2b3.js} +9 -9
- package/chunk/{ChangeLocaleComponent-B_Ya5hV4.js.map → ChangeLocaleComponent-BOMhh2b3.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DhcUoMWL.js → ChangeLocaleComponent-D0JepSri.js} +9 -9
- package/chunk/{ChangeLocaleComponent-DhcUoMWL.js.map → ChangeLocaleComponent-D0JepSri.js.map} +1 -1
- package/chunk/{City-iq1DR3HC.js → City-DRLuVsMu.js} +8 -8
- package/chunk/{City-DmwFHxPe.js.map → City-DRLuVsMu.js.map} +1 -1
- package/chunk/{City-DmwFHxPe.js → City-Ufl43AsO.js} +8 -8
- package/chunk/{City-iq1DR3HC.js.map → City-Ufl43AsO.js.map} +1 -1
- package/chunk/CollegeNameComponent-B8jZYiX1.js +43 -0
- package/chunk/CollegeNameComponent-B8jZYiX1.js.map +1 -0
- package/chunk/CollegeNameComponent-Xj0rQB7c.js +39 -0
- package/chunk/CollegeNameComponent-Xj0rQB7c.js.map +1 -0
- package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js → CopyToClipboardComponent-BorxChs8.js} +9 -9
- package/chunk/{CopyToClipboardComponent-BdrpxpHJ.js.map → CopyToClipboardComponent-BorxChs8.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js → CopyToClipboardComponent-ystjPwTW.js} +9 -9
- package/chunk/{CopyToClipboardComponent-Dm3-3x4b.js.map → CopyToClipboardComponent-ystjPwTW.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BmNABlLF.js → CountryComponentWrapper-CF5TH0Ww.js} +29 -29
- package/chunk/{CountryComponentWrapper-BmNABlLF.js.map → CountryComponentWrapper-CF5TH0Ww.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CFooYkPK.js → CountryComponentWrapper-CauXt0Zp.js} +12 -12
- package/chunk/{CountryComponentWrapper-CFooYkPK.js.map → CountryComponentWrapper-CauXt0Zp.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CKL2mQc6.js → DischargeDateComponent-BURlHu-f.js} +18 -18
- package/chunk/{DischargeDateComponent-CKL2mQc6.js.map → DischargeDateComponent-BURlHu-f.js.map} +1 -1
- package/chunk/{DischargeDateComponent-WBm110Pc.js → DischargeDateComponent-DphDUj7n.js} +17 -17
- package/chunk/{DischargeDateComponent-WBm110Pc.js.map → DischargeDateComponent-DphDUj7n.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-C2nVV_gO.js → DriverLicenseNumberComponent-BUe8vef1.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-C2nVV_gO.js.map → DriverLicenseNumberComponent-BUe8vef1.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-bTA5d7cI.js → DriverLicenseNumberComponent-fEmGGbnz.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-bTA5d7cI.js.map → DriverLicenseNumberComponent-fEmGGbnz.js.map} +1 -1
- package/chunk/{EmailLoopPending-ByW9XkIK.js → EmailLoopPending-BN7Op60d.js} +12 -12
- package/chunk/{EmailLoopPending-ByW9XkIK.js.map → EmailLoopPending-BN7Op60d.js.map} +1 -1
- package/chunk/{EmailLoopPending-DTnuWa6p.js → EmailLoopPending-HOmFgKTU.js} +14 -14
- package/chunk/{EmailLoopPending-DTnuWa6p.js.map → EmailLoopPending-HOmFgKTU.js.map} +1 -1
- package/chunk/{ExtraMessage-W3biUb29.js → ExtraMessage-BnNB6oFi.js} +7 -7
- package/chunk/{ExtraMessage-DuuHw84g.js.map → ExtraMessage-BnNB6oFi.js.map} +1 -1
- package/chunk/{ExtraMessage-DuuHw84g.js → ExtraMessage-Pq3Frlg0.js} +7 -7
- package/chunk/{ExtraMessage-W3biUb29.js.map → ExtraMessage-Pq3Frlg0.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DquuqEdB.js → FirstResponderOrganizationComponent-B8Th8Q4m.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-C4caR50S.js.map → FirstResponderOrganizationComponent-B8Th8Q4m.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C4caR50S.js → FirstResponderOrganizationComponent-C8zsvoAK.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-DquuqEdB.js.map → FirstResponderOrganizationComponent-C8zsvoAK.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-d-hHVoQQ.js → FormFieldInputSelect-BKMQ9gEA.js} +7 -7
- package/chunk/{FormFieldInputSelect-CnGM7mg4.js.map → FormFieldInputSelect-BKMQ9gEA.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CnGM7mg4.js → FormFieldInputSelect-dsQeqe8F.js} +7 -7
- package/chunk/{FormFieldInputSelect-d-hHVoQQ.js.map → FormFieldInputSelect-dsQeqe8F.js.map} +1 -1
- package/chunk/{FormFieldLayout-D1tb5nAu.js → FormFieldLayout-B5_PsKrR.js} +6 -6
- package/chunk/{FormFieldLayout-D1tb5nAu.js.map → FormFieldLayout-B5_PsKrR.js.map} +1 -1
- package/chunk/{FormFieldLayout-Dt_dMiDh.js → FormFieldLayout-CRgEwTkx.js} +6 -6
- package/chunk/{FormFieldLayout-Dt_dMiDh.js.map → FormFieldLayout-CRgEwTkx.js.map} +1 -1
- package/chunk/{FormFieldText-CsFISbyw.js → FormFieldText-BWImUS8U.js} +7 -7
- package/chunk/{FormFieldText-BU2NBm1H.js.map → FormFieldText-BWImUS8U.js.map} +1 -1
- package/chunk/{FormFieldText-BU2NBm1H.js → FormFieldText-D4SW8w-w.js} +7 -7
- package/chunk/{FormFieldText-CsFISbyw.js.map → FormFieldText-D4SW8w-w.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DQe-u8ke.js → FormFieldTypeahead-B0gZVz-_.js} +87 -87
- package/chunk/{FormFieldTypeahead-DQe-u8ke.js.map → FormFieldTypeahead-B0gZVz-_.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-UICnjipa.js → FormFieldTypeahead-MpKtmzcg.js} +85 -85
- package/chunk/{FormFieldTypeahead-UICnjipa.js.map → FormFieldTypeahead-MpKtmzcg.js.map} +1 -1
- package/chunk/{FormFooterComponent-GntU0CK1.js → FormFooterComponent-3UsgRJsz.js} +489 -509
- package/chunk/FormFooterComponent-3UsgRJsz.js.map +1 -0
- package/chunk/{FormFooterComponent-INOCMS5I.js → FormFooterComponent-CxPaPS8m.js} +503 -523
- package/chunk/FormFooterComponent-CxPaPS8m.js.map +1 -0
- package/chunk/{FormSelectChoice-CbCgCvkh.js → FormSelectChoice-D-la3EDO.js} +8 -8
- package/chunk/{FormSelectChoice-CbCgCvkh.js.map → FormSelectChoice-D-la3EDO.js.map} +1 -1
- package/chunk/{FormSelectChoice-lKpoGUFg.js → FormSelectChoice-D9QN8zac.js} +8 -8
- package/chunk/{FormSelectChoice-lKpoGUFg.js.map → FormSelectChoice-D9QN8zac.js.map} +1 -1
- package/chunk/{InputText-DMztCQmi.js → InputText-CS8Q8oNz.js} +6 -6
- package/chunk/{InputText-CuBi-ytU.js.map → InputText-CS8Q8oNz.js.map} +1 -1
- package/chunk/{InputText-CuBi-ytU.js → InputText-D__c437o.js} +6 -6
- package/chunk/{InputText-DMztCQmi.js.map → InputText-D__c437o.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-Ca5Q95Dv.js → LicensedProfessionalOrganizationComponent-0YuaW1wl.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-Ca5Q95Dv.js.map → LicensedProfessionalOrganizationComponent-0YuaW1wl.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-CzbEn3OT.js → LicensedProfessionalOrganizationComponent-DpFUTGIU.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-CzbEn3OT.js.map → LicensedProfessionalOrganizationComponent-DpFUTGIU.js.map} +1 -1
- package/chunk/{LogoComponent-BBafuteW.js → LogoComponent-BgbR17OV.js} +6 -6
- package/chunk/{LogoComponent-BBafuteW.js.map → LogoComponent-BgbR17OV.js.map} +1 -1
- package/chunk/{LogoComponent-BlvwHGG7.js → LogoComponent-CuBinjv8.js} +6 -6
- package/chunk/{LogoComponent-BlvwHGG7.js.map → LogoComponent-CuBinjv8.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-C5tBx4R1.js → LowIncomeOrganizationComponent-BwJZgutt.js} +15 -15
- package/chunk/{LowIncomeOrganizationComponent-SXofGZtZ.js.map → LowIncomeOrganizationComponent-BwJZgutt.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-SXofGZtZ.js → LowIncomeOrganizationComponent-Cu8hF9KG.js} +21 -21
- package/chunk/{LowIncomeOrganizationComponent-C5tBx4R1.js.map → LowIncomeOrganizationComponent-Cu8hF9KG.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DhXuwA6G.js → MedicalProfessionalOrganizationComponent-D1nAdwMg.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-DhXuwA6G.js.map → MedicalProfessionalOrganizationComponent-D1nAdwMg.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DDEwJw25.js → MedicalProfessionalOrganizationComponent-qH0R0RdW.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-DDEwJw25.js.map → MedicalProfessionalOrganizationComponent-qH0R0RdW.js.map} +1 -1
- package/chunk/{MemberIdComponent-CYE9NWER.js → MemberIdComponent-B6AVjpgw.js} +8 -8
- package/chunk/{MemberIdComponent-CYE9NWER.js.map → MemberIdComponent-B6AVjpgw.js.map} +1 -1
- package/chunk/{MemberIdComponent-zZA-2Be7.js → MemberIdComponent-zCfHfHqP.js} +8 -8
- package/chunk/{MemberIdComponent-zZA-2Be7.js.map → MemberIdComponent-zCfHfHqP.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BvUIEiHp.js → MembershipOrganizationComponent-BpVuchsF.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-BvUIEiHp.js.map → MembershipOrganizationComponent-BpVuchsF.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Dt6uhM9W.js → MembershipOrganizationComponent-CsmHLMIR.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-Dt6uhM9W.js.map → MembershipOrganizationComponent-CsmHLMIR.js.map} +1 -1
- package/chunk/{Message-B01COPOe.js → Message-DiIMSbkQ.js} +7639 -7613
- package/chunk/Message-DiIMSbkQ.js.map +1 -0
- package/chunk/{Message-D2z1-4t7.js → Message-DtxngN6C.js} +7853 -7827
- package/chunk/Message-DtxngN6C.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-BIFTcGKn.js → PersonalInfoStepSubmitButton-C9bX9hn-.js} +19 -19
- package/chunk/{PersonalInfoStepSubmitButton-BIFTcGKn.js.map → PersonalInfoStepSubmitButton-C9bX9hn-.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-BhivUjA7.js → PersonalInfoStepSubmitButton-Ce7x__Wi.js} +20 -20
- package/chunk/{PersonalInfoStepSubmitButton-BhivUjA7.js.map → PersonalInfoStepSubmitButton-Ce7x__Wi.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CmbBT85L.js → PersonalInfoStepWrapper-CBtDM65w.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-CmbBT85L.js.map → PersonalInfoStepWrapper-CBtDM65w.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BhmtlbC3.js → PersonalInfoStepWrapper-TFsKYUeL.js} +8 -8
- package/chunk/{PersonalInfoStepWrapper-BhmtlbC3.js.map → PersonalInfoStepWrapper-TFsKYUeL.js.map} +1 -1
- package/chunk/{PostalCodeComponent-1D8zJ6Gw.js → PostalCodeComponent-BBs9Bp36.js} +8 -8
- package/chunk/{PostalCodeComponent-1D8zJ6Gw.js.map → PostalCodeComponent-BBs9Bp36.js.map} +1 -1
- package/chunk/{PostalCodeComponent-DCpTuzDt.js → PostalCodeComponent-Dknp_LrI.js} +8 -8
- package/chunk/{PostalCodeComponent-DCpTuzDt.js.map → PostalCodeComponent-Dknp_LrI.js.map} +1 -1
- package/chunk/{SSN-BYa6bN2F.js → SSN-BSxE5Uet.js} +8 -8
- package/chunk/{SSN-BYa6bN2F.js.map → SSN-BSxE5Uet.js.map} +1 -1
- package/chunk/{SSN-Cv-vv86v.js → SSN-gJcpvUFG.js} +8 -8
- package/chunk/{SSN-Cv-vv86v.js.map → SSN-gJcpvUFG.js.map} +1 -1
- package/chunk/{StateSelectComponent-C5SyZrP9.js → StateSelectComponent-BLPGXEhQ.js} +7 -7
- package/chunk/{StateSelectComponent-C5SyZrP9.js.map → StateSelectComponent-BLPGXEhQ.js.map} +1 -1
- package/chunk/{StateSelectComponent-Yrm2gmjt.js → StateSelectComponent-CqzkF1jU.js} +7 -7
- package/chunk/{StateSelectComponent-Yrm2gmjt.js.map → StateSelectComponent-CqzkF1jU.js.map} +1 -1
- package/chunk/StatusComponent-C95cd9HL.js +41 -0
- package/chunk/StatusComponent-C95cd9HL.js.map +1 -0
- package/chunk/StatusComponent-Os3WMfWG.js +45 -0
- package/chunk/StatusComponent-Os3WMfWG.js.map +1 -0
- package/chunk/{StepAgePersonalInfo-B-fHCbQ0.js → StepAgePersonalInfo-D2IGNQbe.js} +58 -58
- package/chunk/{StepAgePersonalInfo-B-fHCbQ0.js.map → StepAgePersonalInfo-D2IGNQbe.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BZ8HQDRa.js → StepAgePersonalInfo-DVP1nW1R.js} +58 -58
- package/chunk/{StepAgePersonalInfo-BZ8HQDRa.js.map → StepAgePersonalInfo-DVP1nW1R.js.map} +1 -1
- package/chunk/{StepCard-DJR-l3sW.js → StepCard-B72CFYHs.js} +5 -5
- package/chunk/{StepCard-DJR-l3sW.js.map → StepCard-B72CFYHs.js.map} +1 -1
- package/chunk/{StepCard-wwTRGIhn.js → StepCard-Bvt7Kykz.js} +5 -5
- package/chunk/{StepCard-wwTRGIhn.js.map → StepCard-Bvt7Kykz.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DduKuXJZ.js → StepCollectIdentifier-Cr-pcekl.js} +9 -9
- package/chunk/{StepCollectIdentifier-DduKuXJZ.js.map → StepCollectIdentifier-Cr-pcekl.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CyCr6Kkf.js → StepCollectIdentifier-DnC9MgdJ.js} +9 -9
- package/chunk/{StepCollectIdentifier-CyCr6Kkf.js.map → StepCollectIdentifier-DnC9MgdJ.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DYvlaLFf.js → StepCollectMilitaryPersonalInfoComponent-DJBXqFkS.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CTzbUlUh.js.map → StepCollectMilitaryPersonalInfoComponent-DJBXqFkS.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CTzbUlUh.js → StepCollectMilitaryPersonalInfoComponent-DV1imjVy.js} +24 -24
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DYvlaLFf.js.map → StepCollectMilitaryPersonalInfoComponent-DV1imjVy.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BKe3gp2Y.js → StepCollectPersonalInfo-BW4zdAuJ.js} +121 -121
- package/chunk/{StepCollectPersonalInfo-BKe3gp2Y.js.map → StepCollectPersonalInfo-BW4zdAuJ.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DMhjFyhS.js → StepCollectPersonalInfo-Dp0QqT2l.js} +122 -122
- package/chunk/{StepCollectPersonalInfo-DMhjFyhS.js.map → StepCollectPersonalInfo-Dp0QqT2l.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-Cj1zd9Fz.js → StepCompleteAuthentication-BrdV0iN-.js} +9 -9
- package/chunk/{StepCompleteAuthentication-76dd_HoE.js.map → StepCompleteAuthentication-BrdV0iN-.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-76dd_HoE.js → StepCompleteAuthentication-DLwlKmBO.js} +20 -20
- package/chunk/{StepCompleteAuthentication-Cj1zd9Fz.js.map → StepCompleteAuthentication-DLwlKmBO.js.map} +1 -1
- package/chunk/{StepConsolation-BMIhHrZ_.js → StepConsolation-BjfCC2wN.js} +8 -8
- package/chunk/{StepConsolation-D4U5Lz4s.js.map → StepConsolation-BjfCC2wN.js.map} +1 -1
- package/chunk/{StepConsolation-D4U5Lz4s.js → StepConsolation-CGZzbc4p.js} +8 -8
- package/chunk/{StepConsolation-BMIhHrZ_.js.map → StepConsolation-CGZzbc4p.js.map} +1 -1
- package/chunk/{StepDocUpload-ATFJ1VNK.js → StepDocUpload--r9rabBA.js} +23 -23
- package/chunk/{StepDocUpload-ATFJ1VNK.js.map → StepDocUpload--r9rabBA.js.map} +1 -1
- package/chunk/{StepDocUpload-BPWmYRcH.js → StepDocUpload-LtmtqAaG.js} +30 -30
- package/chunk/{StepDocUpload-BPWmYRcH.js.map → StepDocUpload-LtmtqAaG.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-B6BPGM9y.js → StepDriverLicensePersonalInfoComponent-TZmQSwrX.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-B6BPGM9y.js.map → StepDriverLicensePersonalInfoComponent-TZmQSwrX.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-CLv-0SEo.js → StepDriverLicensePersonalInfoComponent-jrvtL5WY.js} +15 -15
- package/chunk/{StepDriverLicensePersonalInfoComponent-CLv-0SEo.js.map → StepDriverLicensePersonalInfoComponent-jrvtL5WY.js.map} +1 -1
- package/chunk/{StepEmailLoop-UdxzIxg_.js → StepEmailLoop-BOMgU-LY.js} +13 -13
- package/chunk/{StepEmailLoop-D7TmjcYy.js.map → StepEmailLoop-BOMgU-LY.js.map} +1 -1
- package/chunk/{StepEmailLoop-D7TmjcYy.js → StepEmailLoop-KgVxTrKD.js} +13 -13
- package/chunk/{StepEmailLoop-UdxzIxg_.js.map → StepEmailLoop-KgVxTrKD.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DppM-dRp.js → StepEmploymentPersonalInfo-CsCSbWGn.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-DppM-dRp.js.map → StepEmploymentPersonalInfo-CsCSbWGn.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-eF2ZaDPS.js → StepEmploymentPersonalInfo-DCgjGcV1.js} +20 -20
- package/chunk/{StepEmploymentPersonalInfo-eF2ZaDPS.js.map → StepEmploymentPersonalInfo-DCgjGcV1.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BQtlqbwc.js → StepFirstResponderPersonalInfo-BNichcOp.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-BQtlqbwc.js.map → StepFirstResponderPersonalInfo-BNichcOp.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CztSfSRA.js → StepFirstResponderPersonalInfo-C0dqZ6v9.js} +22 -22
- package/chunk/{StepFirstResponderPersonalInfo-CztSfSRA.js.map → StepFirstResponderPersonalInfo-C0dqZ6v9.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CKd4Dp6T.js → StepGeneralIdentityPersonalInfoComponent-BFGOloFz.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CKd4Dp6T.js.map → StepGeneralIdentityPersonalInfoComponent-BFGOloFz.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cdfe4rFN.js → StepGeneralIdentityPersonalInfoComponent-BY5f03WX.js} +18 -18
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cdfe4rFN.js.map → StepGeneralIdentityPersonalInfoComponent-BY5f03WX.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-q4VhGaMS.js → StepHybridIdentityPersonalInfoComponent-6iihyo4W.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dsa_CKJM.js.map → StepHybridIdentityPersonalInfoComponent-6iihyo4W.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dsa_CKJM.js → StepHybridIdentityPersonalInfoComponent-CUmSF5K7.js} +19 -19
- package/chunk/{StepHybridIdentityPersonalInfoComponent-q4VhGaMS.js.map → StepHybridIdentityPersonalInfoComponent-CUmSF5K7.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-EhL3Le-F.js → StepIDCheckLoop-D8HQBh8L.js} +8 -8
- package/chunk/{StepIDCheckLoop-BWxld16D.js.map → StepIDCheckLoop-D8HQBh8L.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BWxld16D.js → StepIDCheckLoop-DSxFMqVr.js} +8 -8
- package/chunk/{StepIDCheckLoop-EhL3Le-F.js.map → StepIDCheckLoop-DSxFMqVr.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CHKilPtA.js → StepIDCheckLoopOnfido-BTKJ2Blc.js} +28 -28
- package/chunk/{StepIDCheckLoopOnfido-CHKilPtA.js.map → StepIDCheckLoopOnfido-BTKJ2Blc.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Di9NfHJM.js → StepIDCheckLoopOnfido-DMuf0LlO.js} +14 -14
- package/chunk/{StepIDCheckLoopOnfido-Di9NfHJM.js.map → StepIDCheckLoopOnfido-DMuf0LlO.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BYts2Drd.js → StepIDCheckLoopRegula-Ci85xeOu.js} +11 -11
- package/chunk/{StepIDCheckLoopRegula-BYts2Drd.js.map → StepIDCheckLoopRegula-Ci85xeOu.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DQUN1TMk.js → StepIDCheckLoopRegula-wLpAcBIL.js} +11 -11
- package/chunk/{StepIDCheckLoopRegula-DQUN1TMk.js.map → StepIDCheckLoopRegula-wLpAcBIL.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Bk__6Yly.js → StepLicensedProfessionalPersonalInfo-CaME8oV0.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-B9tXN-Gj.js.map → StepLicensedProfessionalPersonalInfo-CaME8oV0.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-B9tXN-Gj.js → StepLicensedProfessionalPersonalInfo-DcyPpqRP.js} +21 -21
- package/chunk/{StepLicensedProfessionalPersonalInfo-Bk__6Yly.js.map → StepLicensedProfessionalPersonalInfo-DcyPpqRP.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C1yGX0tU.js → StepLowIncomePersonalInfo-D2XooNBZ.js} +25 -25
- package/chunk/{StepLowIncomePersonalInfo-C1yGX0tU.js.map → StepLowIncomePersonalInfo-D2XooNBZ.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-UIbxTxQ6.js → StepLowIncomePersonalInfo-D_DnxewS.js} +74 -74
- package/chunk/{StepLowIncomePersonalInfo-UIbxTxQ6.js.map → StepLowIncomePersonalInfo-D_DnxewS.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CKwl0Aoz.js → StepMedicalProfessionalPersonalInfo-BBTMJxlc.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-CKwl0Aoz.js.map → StepMedicalProfessionalPersonalInfo-BBTMJxlc.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-PZWUlBsx.js → StepMedicalProfessionalPersonalInfo-DQvZgNA8.js} +22 -22
- package/chunk/{StepMedicalProfessionalPersonalInfo-PZWUlBsx.js.map → StepMedicalProfessionalPersonalInfo-DQvZgNA8.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CHgfdkTw.js → StepMemberPersonalInfo-C163dcFm.js} +57 -57
- package/chunk/{StepMemberPersonalInfo-BF9YI1SU.js.map → StepMemberPersonalInfo-C163dcFm.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BF9YI1SU.js → StepMemberPersonalInfo-DZI9oiLg.js} +17 -17
- package/chunk/{StepMemberPersonalInfo-CHgfdkTw.js.map → StepMemberPersonalInfo-DZI9oiLg.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DBQ7vjuj.js → StepMoverPersonalInfo-DVKj_md6.js} +47 -47
- package/chunk/{StepMoverPersonalInfo-DBQ7vjuj.js.map → StepMoverPersonalInfo-DVKj_md6.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-JN4fzgsz.js → StepMoverPersonalInfo-DkqRxBv_.js} +15 -15
- package/chunk/{StepMoverPersonalInfo-JN4fzgsz.js.map → StepMoverPersonalInfo-DkqRxBv_.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BdKhdxCF.js → StepOverrideComponent-BZ5DPwb7.js} +21 -21
- package/chunk/{StepOverrideComponent-I6jIloHJ.js.map → StepOverrideComponent-BZ5DPwb7.js.map} +1 -1
- package/chunk/{StepOverrideComponent-I6jIloHJ.js → StepOverrideComponent-CFCHGcGm.js} +21 -21
- package/chunk/{StepOverrideComponent-BdKhdxCF.js.map → StepOverrideComponent-CFCHGcGm.js.map} +1 -1
- package/chunk/{StepSMSLoop-DhwsBE2w.js → StepSMSLoop-kUCfwUG3.js} +22 -22
- package/chunk/{StepSMSLoop-BQ-ebg-w.js.map → StepSMSLoop-kUCfwUG3.js.map} +1 -1
- package/chunk/{StepSMSLoop-BQ-ebg-w.js → StepSMSLoop-qDDjiu2X.js} +25 -25
- package/chunk/{StepSMSLoop-DhwsBE2w.js.map → StepSMSLoop-qDDjiu2X.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-ITN1udUd.js → StepSocialSecurityNumber-CzdRBNES.js} +24 -24
- package/chunk/{StepSocialSecurityNumber-BjMAYy4I.js.map → StepSocialSecurityNumber-CzdRBNES.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-BjMAYy4I.js → StepSocialSecurityNumber-D-Ryab7q.js} +12 -12
- package/chunk/{StepSocialSecurityNumber-ITN1udUd.js.map → StepSocialSecurityNumber-D-Ryab7q.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-B8EJqu5o.js → StepStudentPersonalInfo-DzBMt8Kd.js} +64 -64
- package/chunk/{StepStudentPersonalInfo-B8EJqu5o.js.map → StepStudentPersonalInfo-DzBMt8Kd.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-C6OXBOsJ.js → StepStudentPersonalInfo-z2J7_k9j.js} +22 -22
- package/chunk/{StepStudentPersonalInfo-C6OXBOsJ.js.map → StepStudentPersonalInfo-z2J7_k9j.js.map} +1 -1
- package/chunk/{StepSuccess-D1Hg8KzS.js → StepSuccess-CoQmjeaw.js} +28 -28
- package/chunk/{StepSuccess-D1Hg8KzS.js.map → StepSuccess-CoQmjeaw.js.map} +1 -1
- package/chunk/{StepSuccess-ye_BWJ5v.js → StepSuccess-CwprAx_X.js} +30 -30
- package/chunk/{StepSuccess-ye_BWJ5v.js.map → StepSuccess-CwprAx_X.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B_nvmggg.js → StepTeacherPersonalInfo-BnREkHc-.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-B_fczbbC.js.map → StepTeacherPersonalInfo-BnREkHc-.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-B_fczbbC.js → StepTeacherPersonalInfo-oxESzOhJ.js} +18 -18
- package/chunk/{StepTeacherPersonalInfo-B_nvmggg.js.map → StepTeacherPersonalInfo-oxESzOhJ.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/TeacherSchoolComponent-X4jP0iPe.js +39 -0
- package/chunk/TeacherSchoolComponent-X4jP0iPe.js.map +1 -0
- package/chunk/TeacherSchoolComponent-xlpebqi9.js +43 -0
- package/chunk/TeacherSchoolComponent-xlpebqi9.js.map +1 -0
- package/chunk/{TestingRouteOverrides-CujYUoVO.js → TestingRouteOverrides-CqkLaStu.js} +26 -26
- package/chunk/{TestingRouteOverrides-CUyDPV66.js.map → TestingRouteOverrides-CqkLaStu.js.map} +1 -1
- package/chunk/{TestingRouteOverrides-CUyDPV66.js → TestingRouteOverrides-DUx5spVA.js} +24 -24
- package/chunk/{TestingRouteOverrides-CujYUoVO.js.map → TestingRouteOverrides-DUx5spVA.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/{countryUtils-DnejTdLp.js → countryUtils-B4JUeycO.js} +5 -5
- package/chunk/{countryUtils-BdYD9O0C.js.map → countryUtils-B4JUeycO.js.map} +1 -1
- package/chunk/countryUtils-DS8Zctdr.js +12 -0
- package/chunk/{countryUtils-DnejTdLp.js.map → countryUtils-DS8Zctdr.js.map} +1 -1
- package/chunk/cs-Chh7FAGt.js +4 -4
- package/chunk/da-DwrVoxto.js +4 -4
- package/chunk/de-IWGZLhgY.js +4 -4
- package/chunk/{downshift.esm-N5l_mTkN.js → downshift.esm-B1eE_tYZ.js} +7 -7
- package/chunk/{downshift.esm-W4ZpLUFm.js.map → downshift.esm-B1eE_tYZ.js.map} +1 -1
- package/chunk/{downshift.esm-W4ZpLUFm.js → downshift.esm-CWgGV2e-.js} +124 -124
- package/chunk/{downshift.esm-N5l_mTkN.js.map → downshift.esm-CWgGV2e-.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/{empties-CgrU7EMF.js → empties-C1INRgC4.js} +51 -57
- package/chunk/{empties-Cv-TCyNM.js.map → empties-C1INRgC4.js.map} +1 -1
- package/chunk/{empties-Cv-TCyNM.js → empties-C38lUQIl.js} +6 -12
- package/chunk/{empties-CgrU7EMF.js.map → empties-C38lUQIl.js.map} +1 -1
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/{hooks-i_EJH0P5.js → hooks-DFk9wlFh.js} +51 -51
- package/chunk/hooks-DFk9wlFh.js.map +1 -0
- package/chunk/{hooks-HrcXcUYn.js → hooks-Y72jcEAM.js} +47 -47
- package/chunk/hooks-Y72jcEAM.js.map +1 -0
- package/chunk/hr-BtqyDzDB.js +4 -4
- package/chunk/hu-C6syKJfb.js +4 -4
- package/chunk/id-GgI-Z2a5.js +4 -4
- package/chunk/{intl-DYOqmiaL.js → intl-D5sUivUy.js} +285 -273
- package/chunk/intl-D5sUivUy.js.map +1 -0
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/{jsx-runtime-DQO6A867.js → jsx-runtime-BfITI5pK.js} +19 -19
- package/chunk/{jsx-runtime-DtApx7WX.js.map → jsx-runtime-BfITI5pK.js.map} +1 -1
- package/chunk/{jsx-runtime-DtApx7WX.js → jsx-runtime-CB6nLaN6.js} +19 -19
- package/chunk/{jsx-runtime-DQO6A867.js.map → jsx-runtime-CB6nLaN6.js.map} +1 -1
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramConfiguration-YBQMVL51.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js.map +1 -1
- package/chunk/{mockProgramTheme-CBqgtg7A.js → mockProgramTheme-CPG4vkJd.js} +4 -8
- package/chunk/mockProgramTheme-CPG4vkJd.js.map +1 -0
- package/chunk/{mocks-Cn2hY_Nm.js → mocks-BJWOJTTC.js} +73 -74
- package/chunk/mocks-BJWOJTTC.js.map +1 -0
- package/chunk/{mocks-Do-_JoZy.js → mocks-BtNIwVeT.js} +73 -74
- package/chunk/mocks-BtNIwVeT.js.map +1 -0
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/{options-DsRV5fwh.js → options-BCFIfBTZ.js} +356 -344
- package/chunk/options-BCFIfBTZ.js.map +1 -0
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/programThemeGetters-BIRDUiTI.js +158 -0
- package/chunk/programThemeGetters-BIRDUiTI.js.map +1 -0
- package/chunk/{programThemeGetters-DtvKCzaA.js → programThemeGetters-CIZ0gRgE.js} +36 -56
- package/chunk/programThemeGetters-CIZ0gRgE.js.map +1 -0
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/{stepComponentHelpers-DZXh3P6t.js → stepComponentHelpers--E4kvS6y.js} +14 -14
- package/chunk/{stepComponentHelpers-D8vgCSY7.js.map → stepComponentHelpers--E4kvS6y.js.map} +1 -1
- package/chunk/{stepComponentHelpers-D8vgCSY7.js → stepComponentHelpers-CD1Gfspm.js} +34 -34
- package/chunk/{stepComponentHelpers-DZXh3P6t.js.map → stepComponentHelpers-CD1Gfspm.js.map} +1 -1
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-C0qk0ahQ.js → useCollectFieldsEndpoint-Bxae2_8a.js} +20 -20
- package/chunk/{useCollectFieldsEndpoint-Cre55nuJ.js.map → useCollectFieldsEndpoint-Bxae2_8a.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Cre55nuJ.js → useCollectFieldsEndpoint-CzTl9kbR.js} +20 -20
- package/chunk/{useCollectFieldsEndpoint-C0qk0ahQ.js.map → useCollectFieldsEndpoint-CzTl9kbR.js.map} +1 -1
- package/chunk/{useMetrics-BZU-S7E4.js → useMetrics-CtsRRjGJ.js} +7 -7
- package/chunk/{useMetrics-BZU-S7E4.js.map → useMetrics-CtsRRjGJ.js.map} +1 -1
- package/chunk/{useMetrics-CKV-Of-2.js → useMetrics-jabV9gsZ.js} +7 -7
- package/chunk/{useMetrics-CKV-Of-2.js.map → useMetrics-jabV9gsZ.js.map} +1 -1
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +1337 -1353
- package/sheerid.js.map +1 -1
- package/chunk/CollegeNameComponent-BfM_mY5M.js +0 -46
- package/chunk/CollegeNameComponent-BfM_mY5M.js.map +0 -1
- package/chunk/CollegeNameComponent-CR9Jp91m.js +0 -42
- package/chunk/CollegeNameComponent-CR9Jp91m.js.map +0 -1
- package/chunk/FormFooterComponent-GntU0CK1.js.map +0 -1
- package/chunk/FormFooterComponent-INOCMS5I.js.map +0 -1
- package/chunk/Message-B01COPOe.js.map +0 -1
- package/chunk/Message-D2z1-4t7.js.map +0 -1
- package/chunk/StatusComponent-CBcXQ1RR.js +0 -44
- package/chunk/StatusComponent-CBcXQ1RR.js.map +0 -1
- package/chunk/StatusComponent-DVPyiAZr.js +0 -48
- package/chunk/StatusComponent-DVPyiAZr.js.map +0 -1
- package/chunk/TeacherSchoolComponent-C1IpPIt7.js +0 -46
- package/chunk/TeacherSchoolComponent-C1IpPIt7.js.map +0 -1
- package/chunk/TeacherSchoolComponent-l3FK9Z72.js +0 -42
- package/chunk/TeacherSchoolComponent-l3FK9Z72.js.map +0 -1
- package/chunk/countryUtils-BdYD9O0C.js +0 -12
- package/chunk/hooks-HrcXcUYn.js.map +0 -1
- package/chunk/hooks-i_EJH0P5.js.map +0 -1
- package/chunk/intl-DYOqmiaL.js.map +0 -1
- package/chunk/mockProgramTheme-CBqgtg7A.js.map +0 -1
- package/chunk/mocks-Cn2hY_Nm.js.map +0 -1
- package/chunk/mocks-Do-_JoZy.js.map +0 -1
- package/chunk/options-DsRV5fwh.js.map +0 -1
- package/chunk/programThemeGetters-B8-9nrqc.js +0 -178
- package/chunk/programThemeGetters-B8-9nrqc.js.map +0 -1
- package/chunk/programThemeGetters-DtvKCzaA.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepEmploymentPersonalInfo-eF2ZaDPS.js","names":[],"sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldTypeahead } from \"@/components/FormFields/FormFieldTypeahead/FormFieldTypeahead\";\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"@/lib/types/types\";\nimport { getOrgSearchUrl } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nexport const CompanyComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const { msg } = useMessage();\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={placeholder || msg({ id: \"companyPlaceholder\" })}\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepEmploymentPersonalInfoComponent = ({\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\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;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepEmploymentPersonalInfo-DCgjGcV1.js","names":[],"sources":["../../src/components/FormFields/Company/CompanyComponent.tsx","../../src/components/StepEmploymentPersonalInfo/StepEmploymentPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldTypeahead } from \"@/components/FormFields/FormFieldTypeahead/FormFieldTypeahead\";\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"@/lib/types/types\";\nimport { getOrgSearchUrl } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nexport const CompanyComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const { msg } = useMessage();\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"company\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={placeholder || msg({ id: \"companyPlaceholder\" })}\n label={<FormattedHTMLMessage id=\"company\" defaultMessage=\"Company\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n","/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport {\n type VerificationService,\n type Organization,\n type EmploymentPersonalInfoViewModel,\n type CustomFormFieldConfig,\n type FormSelectChoice,\n type State,\n type FieldId,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n shouldCollectAddressFields,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { CompanyComponent } from \"../FormFields/Company/CompanyComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepEmploymentPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepEmploymentPersonalInfoComponent = ({\n verificationService,\n}: StepEmploymentPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as EmploymentPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const options = getOptions();\n\n const updateEmploymentViewModel = (key: keyof EmploymentPersonalInfoViewModel, value: any) => {\n const nextState: EmploymentPersonalInfoViewModel = produce(\n viewModel,\n (draft: EmploymentPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationService.verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"employment\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n viewModelDraftDecorator={(draft, countryChoice) => {\n const viewModel = draft as EmploymentPersonalInfoViewModel;\n\n viewModel.shouldCollectAddress = shouldCollectAddressFields(\n countryChoice,\n verificationService.programTheme.config.countries,\n );\n const addressFields: FieldId[] = [\"address1\", \"city\", \"state\", \"postalCode\"];\n const existing = (viewModel.fieldsToSkipValidation || []).filter(\n (id) => !addressFields.includes(id),\n );\n if (!viewModel.shouldCollectAddress) {\n viewModel.address1 = \"\";\n viewModel.city = \"\";\n viewModel.state = \"\";\n viewModel.postalCode = \"\";\n viewModel.fieldsToSkipValidation = [...existing, ...addressFields];\n } else {\n viewModel.fieldsToSkipValidation = existing.length ? existing : undefined;\n }\n }}\n />\n\n <CompanyComponent\n value={(verificationService.viewModel as EmploymentPersonalInfoViewModel).organization}\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.organization}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n isRequired\n value={viewModel.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n explanation={\n <FormattedHTMLMessage id=\"addressExplanation\" defaultMessage=\"Use your home address\" />\n }\n />\n ) : null}\n\n {shouldCollectAddressFields(\n viewModel.countryChoice,\n verificationService.programTheme.config.countries,\n ) ? (\n <div className=\"sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateEmploymentViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\n ) : null}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Use your work email if you have one\"\n />\n }\n onChange={(newValue) => {\n updateEmploymentViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateEmploymentViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectEmployeePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Employment Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;aAaa,KAAoB,EAC/B,UACA,cACA,aACA,wBACA,iBAAc,IACd,cAAW,SAC6C;CACxD,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aAAa,KAAe,EAAI,EAAE,IAAI,qBAAqB,CAAC;EAC5D,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAU,gBAAe;EAAW,CAAA;EACpE,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACA,6BAA6B,CAAC,CAAC;EACrB;CACX,CAAA;AAEL,GCLa,KAAuC,EAClD,6BAC8C;CAC9C,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAU,EAAW,GAErB,KAA6B,GAA4C,MAAe;EAC5F,IAAM,IAA6C,EACjD,IACC,MAA2C;GAC1C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAoB,qBAAqB;YAFjD;GAIE,iBAAA,G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AwB,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;IACX,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
@@ -4,31 +4,31 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.307.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1792788069710
|
|
9
|
+
* BUILD_DATE: Fri Oct 23 2026 20:41:09 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9bea609f9e2a9b4cd4a26fb21eea3072f87be58a
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { Et as e, p as t, s as n } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as r } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { n as i, t as a } from "./jsx-runtime-
|
|
15
|
-
import { i as o } from "./empties-
|
|
16
|
-
import { p as s } from "./FormFooterComponent-
|
|
14
|
+
import { n as i, t as a } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
+
import { i as o } from "./empties-C1INRgC4.js";
|
|
16
|
+
import { p as s } from "./FormFooterComponent-3UsgRJsz.js";
|
|
17
17
|
import { t as c } from "../_mysheerid-preview.js";
|
|
18
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
19
|
-
import { d as u, r as d, t as f } from "./stepComponentHelpers
|
|
20
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
21
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
22
|
-
import { i as x } from "./FormSelectChoice-
|
|
23
|
-
import { t as S } from "./BirthDateComponent-
|
|
24
|
-
import { t as C } from "./PostalCodeComponent-
|
|
25
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
26
|
-
import { t as T } from "./ExtraMessage-
|
|
27
|
-
import { t as E } from "./ChangeLocaleComponent-
|
|
28
|
-
import { t as D } from "./PersonalInfoStepWrapper-
|
|
29
|
-
import { t as O } from "./countryUtils-
|
|
30
|
-
import { t as k } from "./StatusComponent-
|
|
31
|
-
import { t as A } from "./FirstResponderOrganizationComponent-
|
|
18
|
+
import { t as l } from "./useCollectFieldsEndpoint-CzTl9kbR.js";
|
|
19
|
+
import { d as u, r as d, t as f } from "./stepComponentHelpers--E4kvS6y.js";
|
|
20
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DwUevV3t.js";
|
|
21
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-C9bX9hn-.js";
|
|
22
|
+
import { i as x } from "./FormSelectChoice-D-la3EDO.js";
|
|
23
|
+
import { t as S } from "./BirthDateComponent-PIolYRcO.js";
|
|
24
|
+
import { t as C } from "./PostalCodeComponent-BBs9Bp36.js";
|
|
25
|
+
import { t as w } from "./CountryComponentWrapper-CauXt0Zp.js";
|
|
26
|
+
import { t as T } from "./ExtraMessage-Pq3Frlg0.js";
|
|
27
|
+
import { t as E } from "./ChangeLocaleComponent-BOMhh2b3.js";
|
|
28
|
+
import { t as D } from "./PersonalInfoStepWrapper-TFsKYUeL.js";
|
|
29
|
+
import { t as O } from "./countryUtils-B4JUeycO.js";
|
|
30
|
+
import { t as k } from "./StatusComponent-Os3WMfWG.js";
|
|
31
|
+
import { t as A } from "./FirstResponderOrganizationComponent-B8Th8Q4m.js";
|
|
32
32
|
//#region src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx
|
|
33
33
|
var j = a(), M = ({ verificationService: a }) => {
|
|
34
34
|
let M = a.viewModel, { fieldValidationErrors: N } = a, P = a.verificationResponse, F = s(P), I = n(), L = M.localeChoice.value, { availableStatuses: R } = l({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepFirstResponderPersonalInfo-BQtlqbwc.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type FirstResponderPersonalInfoViewModel,\n type FirstResponderPersonalInfoResponse,\n type CustomFormFieldConfig,\n type FirstResponderStatus,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepFirstResponderPersonalInfoComponent = ({\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as FirstResponderStatus[],\n );\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatusComponent\n segmentId=\"first-responder\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n options={statusOptions}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;aAkDa,KAA2C,EACtD,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO,EAAc,MAAM,MAAW,EAAO,UAAU,EAAU,MAAM;IACvE,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAQ;IACR,UAAU,KAAqB,EAAwB,QAAQ,GAAG;IAClE,aACE,IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KAAsB,IAAG;KAAgB,gBAAe;IAA0B,CAAA,IAChF,KAAA;IAEN,SAAS;IACT,WAAW,MAA6B;KAEtC,AADA,EAA8B,UAAU,IAAU,EA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,CAAA;GAGJ,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,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;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;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepFirstResponderPersonalInfo-BNichcOp.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type FirstResponderPersonalInfoViewModel,\n type FirstResponderPersonalInfoResponse,\n type CustomFormFieldConfig,\n type FirstResponderStatus,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepFirstResponderPersonalInfoComponent = ({\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as FirstResponderStatus[],\n );\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatusComponent\n segmentId=\"first-responder\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n options={statusOptions}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;aAkDa,KAA2C,EACtD,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,KACJ,GACA,MACG;EACH,IAAM,IAAiD,EACrD,IACC,MAA+C;GAC9C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,E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2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.307.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1792788063846
|
|
5
|
+
* BUILD_DATE: Fri Oct 23 2026 20:41:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 9bea609f9e2a9b4cd4a26fb21eea3072f87be58a
|
|
7
7
|
*/
|
|
8
|
-
import { c as e,
|
|
9
|
-
import { n as r, t as i } from "./jsx-runtime-
|
|
8
|
+
import { c as e, ft as t, n } from "./options-BCFIfBTZ.js";
|
|
9
|
+
import { n as r, t as i } from "./jsx-runtime-BfITI5pK.js";
|
|
10
10
|
import { b as a } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { i as o } from "./empties-
|
|
12
|
-
import { h as s } from "./FormFooterComponent-
|
|
11
|
+
import { i as o } from "./empties-C38lUQIl.js";
|
|
12
|
+
import { h as s } from "./FormFooterComponent-CxPaPS8m.js";
|
|
13
13
|
import { n as c } from "../sheerid.js";
|
|
14
|
-
import { t as l } from "./useCollectFieldsEndpoint-
|
|
15
|
-
import { d as u, r as d, t as f } from "./stepComponentHelpers-
|
|
16
|
-
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-
|
|
17
|
-
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-
|
|
18
|
-
import { i as x } from "./FormSelectChoice-
|
|
19
|
-
import { t as S } from "./BirthDateComponent-
|
|
20
|
-
import { t as C } from "./PostalCodeComponent-
|
|
21
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
22
|
-
import { t as T } from "./ExtraMessage-
|
|
23
|
-
import { t as E } from "./ChangeLocaleComponent-
|
|
24
|
-
import { t as D } from "./PersonalInfoStepWrapper-
|
|
25
|
-
import { t as O } from "./countryUtils-
|
|
26
|
-
import { t as k } from "./StatusComponent-
|
|
27
|
-
import { t as A } from "./FirstResponderOrganizationComponent-
|
|
14
|
+
import { t as l } from "./useCollectFieldsEndpoint-Bxae2_8a.js";
|
|
15
|
+
import { d as u, r as d, t as f } from "./stepComponentHelpers-CD1Gfspm.js";
|
|
16
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-DNRbjOk0.js";
|
|
17
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-Ce7x__Wi.js";
|
|
18
|
+
import { i as x } from "./FormSelectChoice-D9QN8zac.js";
|
|
19
|
+
import { t as S } from "./BirthDateComponent-DLA-a79g.js";
|
|
20
|
+
import { t as C } from "./PostalCodeComponent-Dknp_LrI.js";
|
|
21
|
+
import { t as w } from "./CountryComponentWrapper-CF5TH0Ww.js";
|
|
22
|
+
import { t as T } from "./ExtraMessage-BnNB6oFi.js";
|
|
23
|
+
import { t as E } from "./ChangeLocaleComponent-D0JepSri.js";
|
|
24
|
+
import { t as D } from "./PersonalInfoStepWrapper-CBtDM65w.js";
|
|
25
|
+
import { t as O } from "./countryUtils-DS8Zctdr.js";
|
|
26
|
+
import { t as k } from "./StatusComponent-C95cd9HL.js";
|
|
27
|
+
import { t as A } from "./FirstResponderOrganizationComponent-C8zsvoAK.js";
|
|
28
28
|
//#region src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx
|
|
29
29
|
var j = i(), M = ({ verificationService: i }) => {
|
|
30
30
|
let M = i.viewModel, { fieldValidationErrors: N } = i, P = i.verificationResponse, F = s(P), I = n(), L = M.localeChoice.value, { availableStatuses: R } = l({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepFirstResponderPersonalInfo-CztSfSRA.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type FirstResponderPersonalInfoViewModel,\n type FirstResponderPersonalInfoResponse,\n type CustomFormFieldConfig,\n type FirstResponderStatus,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepFirstResponderPersonalInfoComponent = ({\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as FirstResponderStatus[],\n );\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatusComponent\n segmentId=\"first-responder\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n options={statusOptions}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;aAkDa,KAA2C,EACtD,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,EAAE,mBAAmB,MAAoB,EAAyB;EACtE,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;CACF,CAAC,GAEK,IAAqB,EAAU,eAAe,OAC9C,IAAoB,EACxB,EAAoB,cACpB,CACF,GAEM,IAAgB,EACnB,KAAmB,EAAqB,iBAC3C,GAEM,KACJ,GACA,MACG;EAC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AC,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;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepFirstResponderPersonalInfo-C0dqZ6v9.js","names":[],"sources":["../../src/components/StepFirstResponderPersonalInfo/StepFirstResponderPersonalInfoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type FirstResponderPersonalInfoViewModel,\n type FirstResponderPersonalInfoResponse,\n type CustomFormFieldConfig,\n type FirstResponderStatus,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\n\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 { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { StatusComponent as FirstResponderStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { FirstResponderOrganizationComponent as FirstResponderOrganization } from \"../FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { blankOrganization } from \"../../lib/types/empties\";\n\ninterface StepFirstResponderPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepFirstResponderPersonalInfoComponent = ({\n verificationService,\n}: StepFirstResponderPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as FirstResponderPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as FirstResponderPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const { availableStatuses: dynamicStatuses } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ?? verificationResponse.availableStatuses) as FirstResponderStatus[],\n );\n\n const updateFirstResponderViewModel = (\n key: keyof FirstResponderPersonalInfoViewModel,\n value: any,\n ) => {\n const nextState: FirstResponderPersonalInfoViewModel = produce(\n viewModel,\n (draft: FirstResponderPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"first-responder\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n <FirstResponderStatusComponent\n segmentId=\"first-responder\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidFirstResponderStatus\"\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n options={statusOptions}\n onChange={(status: FormSelectChoice) => {\n updateFirstResponderViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n\n <FirstResponderOrganization\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization = blankOrganization.organization) => {\n const nextState = produce(viewModel, (draft) => {\n draft.organization = {\n id: choice.id,\n idExtended: choice.idExtended,\n name: choice.name,\n source: choice.source,\n };\n\n if (viewModel.organization && viewModel.organization.source !== undefined) {\n draft.organization.source = viewModel.organization.source;\n }\n\n if (\n getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => choice.id) === 0 &&\n getSafe(() => choice.name, \"\").length > 0\n ) {\n draft.postalCode = viewModel.postalCode ? viewModel.postalCode : \"\";\n } else if (viewModel.postalCode || viewModel.postalCode === \"\") {\n delete draft.postalCode;\n }\n });\n\n verificationService.updateViewModel(nextState);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={(verificationService.viewModel as FirstResponderPersonalInfoViewModel).organization}\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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Needed to send you your unique code\"\n />\n }\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"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 updateFirstResponderViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n {getSafe(() => verificationService.programTheme.openOrgSearchEnabled) &&\n getSafe(() => viewModel.organization.id) === 0 &&\n getSafe(() => viewModel.organization.name, \"\").length > 0 && (\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateFirstResponderViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectFirstResponderPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My First Responder Status\"\n />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7B,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,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;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;EACkB;;AAEzB"}
|
|
@@ -4,28 +4,28 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.307.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1792788069710
|
|
9
|
+
* BUILD_DATE: Fri Oct 23 2026 20:41:09 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 9bea609f9e2a9b4cd4a26fb21eea3072f87be58a
|
|
11
11
|
*/
|
|
12
|
-
import { p as e, s as t } from "./intl-
|
|
12
|
+
import { p as e, s as t } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { n as r, t as i } from "./jsx-runtime-
|
|
15
|
-
import { p as a } from "./FormFooterComponent-
|
|
14
|
+
import { n as r, t as i } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
+
import { p as a } from "./FormFooterComponent-3UsgRJsz.js";
|
|
16
16
|
import { a as o } from "./refs-Mq0rtW9K.js";
|
|
17
17
|
import { t as s } from "../_mysheerid-preview.js";
|
|
18
|
-
import { d as c, r as l, t as u } from "./stepComponentHelpers
|
|
19
|
-
import { a as d, i as f, n as p, o as m, s as h, t as g } from "./CaptchaComponent-
|
|
20
|
-
import { n as _, t as v } from "./PersonalInfoStepSubmitButton-
|
|
21
|
-
import { t as y } from "./BirthDateComponent-
|
|
22
|
-
import { t as b } from "./PostalCodeComponent-
|
|
23
|
-
import { t as x } from "./City-
|
|
24
|
-
import { t as S } from "./AddressComponent-
|
|
25
|
-
import { t as C } from "./ExtraMessage-
|
|
26
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
27
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
28
|
-
import { t as E } from "./StateSelectComponent-
|
|
18
|
+
import { d as c, r as l, t as u } from "./stepComponentHelpers--E4kvS6y.js";
|
|
19
|
+
import { a as d, i as f, n as p, o as m, s as h, t as g } from "./CaptchaComponent-DwUevV3t.js";
|
|
20
|
+
import { n as _, t as v } from "./PersonalInfoStepSubmitButton-C9bX9hn-.js";
|
|
21
|
+
import { t as y } from "./BirthDateComponent-PIolYRcO.js";
|
|
22
|
+
import { t as b } from "./PostalCodeComponent-BBs9Bp36.js";
|
|
23
|
+
import { t as x } from "./City-Ufl43AsO.js";
|
|
24
|
+
import { t as S } from "./AddressComponent-C2lC7O7h.js";
|
|
25
|
+
import { t as C } from "./ExtraMessage-Pq3Frlg0.js";
|
|
26
|
+
import { t as w } from "./ChangeLocaleComponent-BOMhh2b3.js";
|
|
27
|
+
import { t as T } from "./PersonalInfoStepWrapper-TFsKYUeL.js";
|
|
28
|
+
import { t as E } from "./StateSelectComponent-BLPGXEhQ.js";
|
|
29
29
|
//#region src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.tsx
|
|
30
30
|
var D = i();
|
|
31
31
|
function O({ verificationService: i }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepGeneralIdentityPersonalInfoComponent-CKd4Dp6T.js","names":[],"sources":["../../src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type GeneralIdentityPersonalInfoViewModel,\n type GeneralIdentityPersonalInfoResponse,\n type FormSelectChoice,\n type State,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\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 StepGeneralIdentityPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport default function StepGeneralIdentityPersonalInfoComponent({\n verificationService,\n}: StepGeneralIdentityPersonalInfoComponentProps) {\n const viewModel = verificationService.viewModel as GeneralIdentityPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as GeneralIdentityPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateIdentityViewModel = (key: keyof GeneralIdentityPersonalInfoViewModel, value: any) => {\n const nextState: GeneralIdentityPersonalInfoViewModel = produce(\n viewModel,\n (draft: GeneralIdentityPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\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 >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"general-identity\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateIdentityViewModel(\"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 updateIdentityViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\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 updateIdentityViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateIdentityViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateIdentityViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateIdentityViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n <div className=\"sid-extra-address-inputs sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateIdentityViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateIdentityViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateIdentityViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n isRequired\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\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 updateIdentityViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectGeneralIdentityPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Identity\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6CA,SAAwB,EAAyC,EAC/D,0BACgD;CAChD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KAA2B,GAAiD,MAAe;EAC/F,IAAM,IAAkD,EACtD,IACC,MAAgD;GAC/C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAKA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GAEpE,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,WAAW,GAAG;KAChD,WAAW,MAAa;MAEtB,AADA,EAAwB,aAAa,CAAQ,GAC7C,EAAqC,aAAa,GAAU,CAAmB;KACjF;IACD,CAAA,GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,UAAU,GAAG;KAC/C,WAAW,MAAa;MAEtB,AADA,EAAwB,YAAY,CAAQ,GAC5C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AAC,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"}
|
|
1
|
+
{"version":3,"file":"StepGeneralIdentityPersonalInfoComponent-BFGOloFz.js","names":[],"sources":["../../src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type GeneralIdentityPersonalInfoViewModel,\n type GeneralIdentityPersonalInfoResponse,\n type FormSelectChoice,\n type State,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { getOptions } from \"../../options/options\";\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 StepGeneralIdentityPersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport default function StepGeneralIdentityPersonalInfoComponent({\n verificationService,\n}: StepGeneralIdentityPersonalInfoComponentProps) {\n const viewModel = verificationService.viewModel as GeneralIdentityPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as GeneralIdentityPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const options = getOptions();\n\n const locale = viewModel.localeChoice.value;\n\n const updateIdentityViewModel = (key: keyof GeneralIdentityPersonalInfoViewModel, value: any) => {\n const nextState: GeneralIdentityPersonalInfoViewModel = produce(\n viewModel,\n (draft: GeneralIdentityPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\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 >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"general-identity\"\n />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\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 updateIdentityViewModel(\"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 updateIdentityViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\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 updateIdentityViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateIdentityViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateIdentityViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n <AddressComponent\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(newValue) => {\n updateIdentityViewModel(\"address1\", newValue);\n updateFieldValidationErrorsByFieldId(\"address1\", newValue, verificationService);\n }}\n value={viewModel.address1}\n isRequired\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n />\n <div className=\"sid-extra-address-inputs sid-thirds\">\n <CityComponent\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n onChange={(newValue) => {\n updateIdentityViewModel(\"city\", newValue);\n updateFieldValidationErrorsByFieldId(\"city\", newValue, verificationService);\n }}\n value={viewModel.city}\n isRequired\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n />\n <StateSelectComponent\n isRequired\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateIdentityViewModel(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n />\n <PostalCodeComponent\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateIdentityViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n isRequired\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n </div>\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 updateIdentityViewModel(\"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 <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectGeneralIdentityPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Identity\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6CA,SAAwB,EAAyC,EAC/D,0BACgD;CAChD,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAU,EAAW,GAErB,IAAS,EAAU,aAAa,OAEhC,KAA2B,GAAiD,MAAe;EAC/F,IAAM,IAAkD,EACtD,IACC,MAAgD;GAC/C,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAKA,OAFA,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,qBAAoB;GACrB,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GAEpE,iBAAA,GAAA,EAAA,MAAC,OAAD;IAAK,WAAU;cAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,EAAwB,WAAW,GAAG;KAChD,WAAW,MAAa;MAEtB,AADA,EAAwB,aAAa,CAAQ,GAC7C,EAAqC,aAAa,GAAU,CAAmB;KACjF;IACD,CAAA,GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,UAAU,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AAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GACrF,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"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.307.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1792788063846
|
|
5
|
+
* BUILD_DATE: Fri Oct 23 2026 20:41:03 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 9bea609f9e2a9b4cd4a26fb21eea3072f87be58a
|
|
7
7
|
*/
|
|
8
|
-
import { c as e, n as t } from "./options-
|
|
9
|
-
import { n, t as r } from "./jsx-runtime-
|
|
8
|
+
import { c as e, n as t } from "./options-BCFIfBTZ.js";
|
|
9
|
+
import { n, t as r } from "./jsx-runtime-BfITI5pK.js";
|
|
10
10
|
import { b as i } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as a } from "./FormFooterComponent-
|
|
11
|
+
import { h as a } from "./FormFooterComponent-CxPaPS8m.js";
|
|
12
12
|
import { a as o } from "./refs-Mq0rtW9K.js";
|
|
13
13
|
import { n as s } from "../sheerid.js";
|
|
14
|
-
import { d as c, r as l, t as u } from "./stepComponentHelpers-
|
|
15
|
-
import { a as d, i as f, n as p, o as m, s as h, t as g } from "./CaptchaComponent-
|
|
16
|
-
import { n as _, t as v } from "./PersonalInfoStepSubmitButton-
|
|
17
|
-
import { t as y } from "./BirthDateComponent-
|
|
18
|
-
import { t as b } from "./PostalCodeComponent-
|
|
19
|
-
import { t as x } from "./City-
|
|
20
|
-
import { t as S } from "./AddressComponent-
|
|
21
|
-
import { t as C } from "./ExtraMessage-
|
|
22
|
-
import { t as w } from "./ChangeLocaleComponent-
|
|
23
|
-
import { t as T } from "./PersonalInfoStepWrapper-
|
|
24
|
-
import { t as E } from "./StateSelectComponent-
|
|
14
|
+
import { d as c, r as l, t as u } from "./stepComponentHelpers-CD1Gfspm.js";
|
|
15
|
+
import { a as d, i as f, n as p, o as m, s as h, t as g } from "./CaptchaComponent-DNRbjOk0.js";
|
|
16
|
+
import { n as _, t as v } from "./PersonalInfoStepSubmitButton-Ce7x__Wi.js";
|
|
17
|
+
import { t as y } from "./BirthDateComponent-DLA-a79g.js";
|
|
18
|
+
import { t as b } from "./PostalCodeComponent-Dknp_LrI.js";
|
|
19
|
+
import { t as x } from "./City-DRLuVsMu.js";
|
|
20
|
+
import { t as S } from "./AddressComponent-h8JfcOkn.js";
|
|
21
|
+
import { t as C } from "./ExtraMessage-BnNB6oFi.js";
|
|
22
|
+
import { t as w } from "./ChangeLocaleComponent-D0JepSri.js";
|
|
23
|
+
import { t as T } from "./PersonalInfoStepWrapper-CBtDM65w.js";
|
|
24
|
+
import { t as E } from "./StateSelectComponent-CqzkF1jU.js";
|
|
25
25
|
//#region src/components/StepIdentityPersonalInfo/StepGeneralIdentityPersonalInfoComponent.tsx
|
|
26
26
|
var D = r();
|
|
27
27
|
function O({ verificationService: r }) {
|