@sheerid/jslib 2.307.0 → 2.308.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +37 -37
- package/chunk/{AddressComponent-C2lC7O7h.js → AddressComponent-0YHKJ9J4.js} +5 -5
- package/chunk/{AddressComponent-C2lC7O7h.js.map → AddressComponent-0YHKJ9J4.js.map} +1 -1
- package/chunk/{AddressComponent-h8JfcOkn.js → AddressComponent-DIG0W__a.js} +5 -5
- package/chunk/{AddressComponent-h8JfcOkn.js.map → AddressComponent-DIG0W__a.js.map} +1 -1
- package/chunk/AnnouncingHeader-DKOYC3b9.js +4 -4
- package/chunk/AnnouncingHeader-gJrk6VDV.js +4 -4
- package/chunk/{BirthDateComponent-DLA-a79g.js → BirthDateComponent-CJwhC_Xn.js} +5 -5
- package/chunk/{BirthDateComponent-DLA-a79g.js.map → BirthDateComponent-CJwhC_Xn.js.map} +1 -1
- package/chunk/{BirthDateComponent-PIolYRcO.js → BirthDateComponent-DpiGGQ_Q.js} +5 -5
- package/chunk/{BirthDateComponent-PIolYRcO.js.map → BirthDateComponent-DpiGGQ_Q.js.map} +1 -1
- package/chunk/{CaptchaComponent-DwUevV3t.js → CaptchaComponent-CIxr0YQ1.js} +8 -8
- package/chunk/{CaptchaComponent-DNRbjOk0.js.map → CaptchaComponent-CIxr0YQ1.js.map} +1 -1
- package/chunk/{CaptchaComponent-DNRbjOk0.js → CaptchaComponent-DtanRbX-.js} +8 -8
- package/chunk/{CaptchaComponent-DwUevV3t.js.map → CaptchaComponent-DtanRbX-.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-D0JepSri.js → ChangeLocaleComponent-Bwptiyp-.js} +7 -7
- package/chunk/{ChangeLocaleComponent-BOMhh2b3.js.map → ChangeLocaleComponent-Bwptiyp-.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BOMhh2b3.js → ChangeLocaleComponent-D1JuIC6Z.js} +7 -7
- package/chunk/{ChangeLocaleComponent-D0JepSri.js.map → ChangeLocaleComponent-D1JuIC6Z.js.map} +1 -1
- package/chunk/{City-DRLuVsMu.js → City-CdtNA5Vw.js} +5 -5
- package/chunk/{City-DRLuVsMu.js.map → City-CdtNA5Vw.js.map} +1 -1
- package/chunk/{City-Ufl43AsO.js → City-D63Xv635.js} +5 -5
- package/chunk/{City-Ufl43AsO.js.map → City-D63Xv635.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Xj0rQB7c.js → CollegeNameComponent-D-KOseX_.js} +7 -7
- package/chunk/{CollegeNameComponent-B8jZYiX1.js.map → CollegeNameComponent-D-KOseX_.js.map} +1 -1
- package/chunk/{CollegeNameComponent-B8jZYiX1.js → CollegeNameComponent-NzTCk0Io.js} +7 -7
- package/chunk/{CollegeNameComponent-Xj0rQB7c.js.map → CollegeNameComponent-NzTCk0Io.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BorxChs8.js +4 -4
- package/chunk/CopyToClipboardComponent-ystjPwTW.js +4 -4
- package/chunk/{CountryComponentWrapper-CauXt0Zp.js → CountryComponentWrapper-CymqHdjW.js} +7 -7
- package/chunk/{CountryComponentWrapper-CF5TH0Ww.js.map → CountryComponentWrapper-CymqHdjW.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CF5TH0Ww.js → CountryComponentWrapper-DAcu9MAP.js} +7 -7
- package/chunk/{CountryComponentWrapper-CauXt0Zp.js.map → CountryComponentWrapper-DAcu9MAP.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BURlHu-f.js → DischargeDateComponent-DvV87FK7.js} +8 -8
- package/chunk/{DischargeDateComponent-BURlHu-f.js.map → DischargeDateComponent-DvV87FK7.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DphDUj7n.js → DischargeDateComponent-gHcdda1I.js} +8 -8
- package/chunk/{DischargeDateComponent-DphDUj7n.js.map → DischargeDateComponent-gHcdda1I.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-BUe8vef1.js → DriverLicenseNumberComponent-C8AwTtUM.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-BUe8vef1.js.map → DriverLicenseNumberComponent-C8AwTtUM.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-fEmGGbnz.js → DriverLicenseNumberComponent-CTNAU4X4.js} +5 -5
- package/chunk/{DriverLicenseNumberComponent-fEmGGbnz.js.map → DriverLicenseNumberComponent-CTNAU4X4.js.map} +1 -1
- package/chunk/{EmailLoopPending-BN7Op60d.js → EmailLoopPending-CsZFcdcY.js} +6 -6
- package/chunk/{EmailLoopPending-BN7Op60d.js.map → EmailLoopPending-CsZFcdcY.js.map} +1 -1
- package/chunk/{EmailLoopPending-HOmFgKTU.js → EmailLoopPending-DvGyQ6LS.js} +6 -6
- package/chunk/{EmailLoopPending-HOmFgKTU.js.map → EmailLoopPending-DvGyQ6LS.js.map} +1 -1
- package/chunk/{ExtraMessage-Pq3Frlg0.js → ExtraMessage-CgIIaamt.js} +5 -5
- package/chunk/{ExtraMessage-BnNB6oFi.js.map → ExtraMessage-CgIIaamt.js.map} +1 -1
- package/chunk/{ExtraMessage-BnNB6oFi.js → ExtraMessage-TBf4guH7.js} +5 -5
- package/chunk/{ExtraMessage-Pq3Frlg0.js.map → ExtraMessage-TBf4guH7.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C8zsvoAK.js → FirstResponderOrganizationComponent-BZmtl8eB.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-B8Th8Q4m.js.map → FirstResponderOrganizationComponent-BZmtl8eB.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-B8Th8Q4m.js → FirstResponderOrganizationComponent-keQCCYJl.js} +7 -7
- package/chunk/{FirstResponderOrganizationComponent-C8zsvoAK.js.map → FirstResponderOrganizationComponent-keQCCYJl.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BKMQ9gEA.js → FormFieldInputSelect-DFhATWCA.js} +5 -5
- package/chunk/{FormFieldInputSelect-BKMQ9gEA.js.map → FormFieldInputSelect-DFhATWCA.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-dsQeqe8F.js → FormFieldInputSelect-cMUBA5Wz.js} +5 -5
- package/chunk/{FormFieldInputSelect-dsQeqe8F.js.map → FormFieldInputSelect-cMUBA5Wz.js.map} +1 -1
- package/chunk/FormFieldLayout-B5_PsKrR.js +4 -4
- package/chunk/FormFieldLayout-CRgEwTkx.js +4 -4
- package/chunk/FormFieldText-BWImUS8U.js +4 -4
- package/chunk/FormFieldText-D4SW8w-w.js +4 -4
- package/chunk/{FormFieldTypeahead-MpKtmzcg.js → FormFieldTypeahead-B8WJLNfv.js} +7 -7
- package/chunk/{FormFieldTypeahead-MpKtmzcg.js.map → FormFieldTypeahead-B8WJLNfv.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-B0gZVz-_.js → FormFieldTypeahead-BOaWqKW_.js} +7 -7
- package/chunk/{FormFieldTypeahead-B0gZVz-_.js.map → FormFieldTypeahead-BOaWqKW_.js.map} +1 -1
- package/chunk/{FormFooterComponent-3UsgRJsz.js → FormFooterComponent-CKEfiYXW.js} +8 -8
- package/chunk/{FormFooterComponent-3UsgRJsz.js.map → FormFooterComponent-CKEfiYXW.js.map} +1 -1
- package/chunk/{FormFooterComponent-CxPaPS8m.js → FormFooterComponent-DD4Q2LF_.js} +8 -8
- package/chunk/{FormFooterComponent-CxPaPS8m.js.map → FormFooterComponent-DD4Q2LF_.js.map} +1 -1
- package/chunk/{FormSelectChoice-D-la3EDO.js → FormSelectChoice-BV0vYPBj.js} +6 -6
- package/chunk/{FormSelectChoice-D-la3EDO.js.map → FormSelectChoice-BV0vYPBj.js.map} +1 -1
- package/chunk/{FormSelectChoice-D9QN8zac.js → FormSelectChoice-CFSifM9G.js} +6 -6
- package/chunk/{FormSelectChoice-D9QN8zac.js.map → FormSelectChoice-CFSifM9G.js.map} +1 -1
- package/chunk/InputText-CS8Q8oNz.js +4 -4
- package/chunk/InputText-D__c437o.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-0YuaW1wl.js → LicensedProfessionalOrganizationComponent-7bKQiaL-.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-0YuaW1wl.js.map → LicensedProfessionalOrganizationComponent-7bKQiaL-.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DpFUTGIU.js → LicensedProfessionalOrganizationComponent-bms818RU.js} +7 -7
- package/chunk/{LicensedProfessionalOrganizationComponent-DpFUTGIU.js.map → LicensedProfessionalOrganizationComponent-bms818RU.js.map} +1 -1
- package/chunk/{LogoComponent-CuBinjv8.js → LogoComponent-BUBHH0fO.js} +5 -5
- package/chunk/{LogoComponent-BgbR17OV.js.map → LogoComponent-BUBHH0fO.js.map} +1 -1
- package/chunk/{LogoComponent-BgbR17OV.js → LogoComponent-C9mw31aa.js} +5 -5
- package/chunk/{LogoComponent-CuBinjv8.js.map → LogoComponent-C9mw31aa.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Cu8hF9KG.js → LowIncomeOrganizationComponent-B4B8WsuN.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-Cu8hF9KG.js.map → LowIncomeOrganizationComponent-B4B8WsuN.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BwJZgutt.js → LowIncomeOrganizationComponent-CBr7KTuJ.js} +8 -8
- package/chunk/{LowIncomeOrganizationComponent-BwJZgutt.js.map → LowIncomeOrganizationComponent-CBr7KTuJ.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-qH0R0RdW.js → MedicalProfessionalOrganizationComponent-DghdbPT-.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-D1nAdwMg.js.map → MedicalProfessionalOrganizationComponent-DghdbPT-.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-D1nAdwMg.js → MedicalProfessionalOrganizationComponent-sA9z9fly.js} +7 -7
- package/chunk/{MedicalProfessionalOrganizationComponent-qH0R0RdW.js.map → MedicalProfessionalOrganizationComponent-sA9z9fly.js.map} +1 -1
- package/chunk/{MemberIdComponent-zCfHfHqP.js → MemberIdComponent-C-U5Bter.js} +5 -5
- package/chunk/{MemberIdComponent-B6AVjpgw.js.map → MemberIdComponent-C-U5Bter.js.map} +1 -1
- package/chunk/{MemberIdComponent-B6AVjpgw.js → MemberIdComponent-DBmj6PlN.js} +5 -5
- package/chunk/{MemberIdComponent-zCfHfHqP.js.map → MemberIdComponent-DBmj6PlN.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BpVuchsF.js → MembershipOrganizationComponent-0wqOpnqp.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-BpVuchsF.js.map → MembershipOrganizationComponent-0wqOpnqp.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CsmHLMIR.js → MembershipOrganizationComponent-22bEA9wd.js} +7 -7
- package/chunk/{MembershipOrganizationComponent-CsmHLMIR.js.map → MembershipOrganizationComponent-22bEA9wd.js.map} +1 -1
- package/chunk/{Message-DtxngN6C.js → Message-BbhLudQ4.js} +5 -5
- package/chunk/{Message-DtxngN6C.js.map → Message-BbhLudQ4.js.map} +1 -1
- package/chunk/{Message-DiIMSbkQ.js → Message-D1G_WiQs.js} +5 -5
- package/chunk/{Message-DiIMSbkQ.js.map → Message-D1G_WiQs.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-Ce7x__Wi.js → PersonalInfoStepSubmitButton-B5m1zKXj.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-C9bX9hn-.js.map → PersonalInfoStepSubmitButton-B5m1zKXj.js.map} +1 -1
- package/chunk/{PersonalInfoStepSubmitButton-C9bX9hn-.js → PersonalInfoStepSubmitButton-Byq7BneV.js} +5 -5
- package/chunk/{PersonalInfoStepSubmitButton-Ce7x__Wi.js.map → PersonalInfoStepSubmitButton-Byq7BneV.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-TFsKYUeL.js → PersonalInfoStepWrapper-DCFj5mke.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-TFsKYUeL.js.map → PersonalInfoStepWrapper-DCFj5mke.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CBtDM65w.js → PersonalInfoStepWrapper-Ds0Umiti.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-CBtDM65w.js.map → PersonalInfoStepWrapper-Ds0Umiti.js.map} +1 -1
- package/chunk/{PostalCodeComponent-Dknp_LrI.js → PostalCodeComponent-B52z4pxa.js} +5 -5
- package/chunk/{PostalCodeComponent-BBs9Bp36.js.map → PostalCodeComponent-B52z4pxa.js.map} +1 -1
- package/chunk/{PostalCodeComponent-BBs9Bp36.js → PostalCodeComponent-DDrsbmWU.js} +5 -5
- package/chunk/{PostalCodeComponent-Dknp_LrI.js.map → PostalCodeComponent-DDrsbmWU.js.map} +1 -1
- package/chunk/{SSN-BSxE5Uet.js → SSN-CPZMIdTV.js} +5 -5
- package/chunk/{SSN-BSxE5Uet.js.map → SSN-CPZMIdTV.js.map} +1 -1
- package/chunk/{SSN-gJcpvUFG.js → SSN-DlwXekbr.js} +5 -5
- package/chunk/{SSN-gJcpvUFG.js.map → SSN-DlwXekbr.js.map} +1 -1
- package/chunk/{StateSelectComponent-BLPGXEhQ.js → StateSelectComponent-BZuF9eDA.js} +6 -6
- package/chunk/{StateSelectComponent-BLPGXEhQ.js.map → StateSelectComponent-BZuF9eDA.js.map} +1 -1
- package/chunk/{StateSelectComponent-CqzkF1jU.js → StateSelectComponent-CDkfQ77X.js} +6 -6
- package/chunk/{StateSelectComponent-CqzkF1jU.js.map → StateSelectComponent-CDkfQ77X.js.map} +1 -1
- package/chunk/{StatusComponent-Os3WMfWG.js → StatusComponent-B6o6DQjp.js} +6 -6
- package/chunk/{StatusComponent-C95cd9HL.js.map → StatusComponent-B6o6DQjp.js.map} +1 -1
- package/chunk/{StatusComponent-C95cd9HL.js → StatusComponent-Dhc7qHou.js} +6 -6
- package/chunk/{StatusComponent-Os3WMfWG.js.map → StatusComponent-Dhc7qHou.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DVP1nW1R.js → StepAgePersonalInfo-DA2zbaXM.js} +17 -17
- package/chunk/{StepAgePersonalInfo-D2IGNQbe.js.map → StepAgePersonalInfo-DA2zbaXM.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-D2IGNQbe.js → StepAgePersonalInfo-Ds7ZuZLo.js} +17 -17
- package/chunk/{StepAgePersonalInfo-DVP1nW1R.js.map → StepAgePersonalInfo-Ds7ZuZLo.js.map} +1 -1
- package/chunk/StepCard-B72CFYHs.js +4 -4
- package/chunk/StepCard-Bvt7Kykz.js +4 -4
- package/chunk/{StepCollectIdentifier-Cr-pcekl.js → StepCollectIdentifier-RScotr-L.js} +6 -6
- package/chunk/{StepCollectIdentifier-DnC9MgdJ.js.map → StepCollectIdentifier-RScotr-L.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DnC9MgdJ.js → StepCollectIdentifier-q7MmZ0Wv.js} +6 -6
- package/chunk/{StepCollectIdentifier-Cr-pcekl.js.map → StepCollectIdentifier-q7MmZ0Wv.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DJBXqFkS.js → StepCollectMilitaryPersonalInfoComponent-Oy-H1lRT.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DJBXqFkS.js.map → StepCollectMilitaryPersonalInfoComponent-Oy-H1lRT.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DV1imjVy.js → StepCollectMilitaryPersonalInfoComponent-uoOEMgLi.js} +21 -21
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DV1imjVy.js.map → StepCollectMilitaryPersonalInfoComponent-uoOEMgLi.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BW4zdAuJ.js → StepCollectPersonalInfo-BAeCckTR.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-BW4zdAuJ.js.map → StepCollectPersonalInfo-BAeCckTR.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Dp0QqT2l.js → StepCollectPersonalInfo-DMMMfo6f.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-Dp0QqT2l.js.map → StepCollectPersonalInfo-DMMMfo6f.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-BrdV0iN-.js +4 -4
- package/chunk/StepCompleteAuthentication-DLwlKmBO.js +4 -4
- package/chunk/{StepConsolation-CGZzbc4p.js → StepConsolation-Cli0ZCqB.js} +6 -6
- package/chunk/{StepConsolation-BjfCC2wN.js.map → StepConsolation-Cli0ZCqB.js.map} +1 -1
- package/chunk/{StepConsolation-BjfCC2wN.js → StepConsolation-DO1HOmRK.js} +6 -6
- package/chunk/{StepConsolation-CGZzbc4p.js.map → StepConsolation-DO1HOmRK.js.map} +1 -1
- package/chunk/{StepDocUpload-LtmtqAaG.js → StepDocUpload-0-pxhJxc.js} +7 -7
- package/chunk/{StepDocUpload-LtmtqAaG.js.map → StepDocUpload-0-pxhJxc.js.map} +1 -1
- package/chunk/{StepDocUpload--r9rabBA.js → StepDocUpload-hOSKrytn.js} +7 -7
- package/chunk/{StepDocUpload--r9rabBA.js.map → StepDocUpload-hOSKrytn.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-TZmQSwrX.js → StepDriverLicensePersonalInfoComponent-BBhT05Bm.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-TZmQSwrX.js.map → StepDriverLicensePersonalInfoComponent-BBhT05Bm.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-jrvtL5WY.js → StepDriverLicensePersonalInfoComponent-Bh-b_Tis.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-jrvtL5WY.js.map → StepDriverLicensePersonalInfoComponent-Bh-b_Tis.js.map} +1 -1
- package/chunk/{StepEmailLoop-KgVxTrKD.js → StepEmailLoop-Bd9Da3Pl.js} +7 -7
- package/chunk/{StepEmailLoop-BOMgU-LY.js.map → StepEmailLoop-Bd9Da3Pl.js.map} +1 -1
- package/chunk/{StepEmailLoop-BOMgU-LY.js → StepEmailLoop-CztfQGon.js} +7 -7
- package/chunk/{StepEmailLoop-KgVxTrKD.js.map → StepEmailLoop-CztfQGon.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CsCSbWGn.js → StepEmploymentPersonalInfo-BIiRPsPn.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-CsCSbWGn.js.map → StepEmploymentPersonalInfo-BIiRPsPn.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DCgjGcV1.js → StepEmploymentPersonalInfo-BkYIVspE.js} +17 -17
- package/chunk/{StepEmploymentPersonalInfo-DCgjGcV1.js.map → StepEmploymentPersonalInfo-BkYIVspE.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BNichcOp.js → StepFirstResponderPersonalInfo-C3eR92xc.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-BNichcOp.js.map → StepFirstResponderPersonalInfo-C3eR92xc.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-C0dqZ6v9.js → StepFirstResponderPersonalInfo-CLdFsv3a.js} +18 -18
- package/chunk/{StepFirstResponderPersonalInfo-C0dqZ6v9.js.map → StepFirstResponderPersonalInfo-CLdFsv3a.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BY5f03WX.js → StepGeneralIdentityPersonalInfoComponent-B8v2yQKB.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BFGOloFz.js.map → StepGeneralIdentityPersonalInfoComponent-B8v2yQKB.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BFGOloFz.js → StepGeneralIdentityPersonalInfoComponent-CpEm8ogF.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BY5f03WX.js.map → StepGeneralIdentityPersonalInfoComponent-CpEm8ogF.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-6iihyo4W.js → StepHybridIdentityPersonalInfoComponent-63Gu1_km.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-6iihyo4W.js.map → StepHybridIdentityPersonalInfoComponent-63Gu1_km.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CUmSF5K7.js → StepHybridIdentityPersonalInfoComponent-BB01d66w.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CUmSF5K7.js.map → StepHybridIdentityPersonalInfoComponent-BB01d66w.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DSxFMqVr.js → StepIDCheckLoop-BPX0-8EZ.js} +5 -5
- package/chunk/{StepIDCheckLoop-D8HQBh8L.js.map → StepIDCheckLoop-BPX0-8EZ.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-D8HQBh8L.js → StepIDCheckLoop-C3l5fiGY.js} +5 -5
- package/chunk/{StepIDCheckLoop-DSxFMqVr.js.map → StepIDCheckLoop-C3l5fiGY.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BTKJ2Blc.js → StepIDCheckLoopOnfido-B-Vbzhgu.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-BTKJ2Blc.js.map → StepIDCheckLoopOnfido-B-Vbzhgu.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DMuf0LlO.js → StepIDCheckLoopOnfido-D7F62wKH.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DMuf0LlO.js.map → StepIDCheckLoopOnfido-D7F62wKH.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-wLpAcBIL.js → StepIDCheckLoopRegula-B-uJQSkm.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-Ci85xeOu.js.map → StepIDCheckLoopRegula-B-uJQSkm.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-Ci85xeOu.js → StepIDCheckLoopRegula-Ig0TJvC6.js} +7 -7
- package/chunk/{StepIDCheckLoopRegula-wLpAcBIL.js.map → StepIDCheckLoopRegula-Ig0TJvC6.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CaME8oV0.js → StepLicensedProfessionalPersonalInfo-CLqxHevY.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-CaME8oV0.js.map → StepLicensedProfessionalPersonalInfo-CLqxHevY.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-DcyPpqRP.js → StepLicensedProfessionalPersonalInfo-stTxqoo7.js} +18 -18
- package/chunk/{StepLicensedProfessionalPersonalInfo-DcyPpqRP.js.map → StepLicensedProfessionalPersonalInfo-stTxqoo7.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-D2XooNBZ.js → StepLowIncomePersonalInfo-D33BUTIM.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-D2XooNBZ.js.map → StepLowIncomePersonalInfo-D33BUTIM.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-D_DnxewS.js → StepLowIncomePersonalInfo-uUC6wHOj.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-D_DnxewS.js.map → StepLowIncomePersonalInfo-uUC6wHOj.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BBTMJxlc.js → StepMedicalProfessionalPersonalInfo-B4E1pl1K.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-BBTMJxlc.js.map → StepMedicalProfessionalPersonalInfo-B4E1pl1K.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DQvZgNA8.js → StepMedicalProfessionalPersonalInfo-Bcd9QwO-.js} +19 -19
- package/chunk/{StepMedicalProfessionalPersonalInfo-DQvZgNA8.js.map → StepMedicalProfessionalPersonalInfo-Bcd9QwO-.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DZI9oiLg.js → StepMemberPersonalInfo-C7XHDFuz.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-C163dcFm.js.map → StepMemberPersonalInfo-C7XHDFuz.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-C163dcFm.js → StepMemberPersonalInfo-D6ER6Mnj.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-DZI9oiLg.js.map → StepMemberPersonalInfo-D6ER6Mnj.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DVKj_md6.js → StepMoverPersonalInfo-By_lrbN_.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-DVKj_md6.js.map → StepMoverPersonalInfo-By_lrbN_.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DkqRxBv_.js → StepMoverPersonalInfo-YrdiKwnE.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-DkqRxBv_.js.map → StepMoverPersonalInfo-YrdiKwnE.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CFCHGcGm.js → StepOverrideComponent-BJ9ZmoRw.js} +7 -7
- package/chunk/{StepOverrideComponent-BZ5DPwb7.js.map → StepOverrideComponent-BJ9ZmoRw.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BZ5DPwb7.js → StepOverrideComponent-DhpMCeYw.js} +7 -7
- package/chunk/{StepOverrideComponent-CFCHGcGm.js.map → StepOverrideComponent-DhpMCeYw.js.map} +1 -1
- package/chunk/{StepSMSLoop-qDDjiu2X.js → StepSMSLoop-CJwY9Ga1.js} +5 -5
- package/chunk/{StepSMSLoop-kUCfwUG3.js.map → StepSMSLoop-CJwY9Ga1.js.map} +1 -1
- package/chunk/{StepSMSLoop-kUCfwUG3.js → StepSMSLoop-DNFDqzE0.js} +5 -5
- package/chunk/{StepSMSLoop-qDDjiu2X.js.map → StepSMSLoop-DNFDqzE0.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-CzdRBNES.js → StepSocialSecurityNumber-CZiWVMNg.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-CzdRBNES.js.map → StepSocialSecurityNumber-CZiWVMNg.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-D-Ryab7q.js → StepSocialSecurityNumber-DnU2gGIN.js} +8 -8
- package/chunk/{StepSocialSecurityNumber-D-Ryab7q.js.map → StepSocialSecurityNumber-DnU2gGIN.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DzBMt8Kd.js → StepStudentPersonalInfo-BjG3Glf7.js} +17 -17
- package/chunk/{StepStudentPersonalInfo-DzBMt8Kd.js.map → StepStudentPersonalInfo-BjG3Glf7.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-z2J7_k9j.js → StepStudentPersonalInfo-DnwWqFQd.js} +17 -17
- package/chunk/{StepStudentPersonalInfo-z2J7_k9j.js.map → StepStudentPersonalInfo-DnwWqFQd.js.map} +1 -1
- package/chunk/{StepSuccess-CwprAx_X.js → StepSuccess-4cju7qN8.js} +6 -6
- package/chunk/{StepSuccess-CoQmjeaw.js.map → StepSuccess-4cju7qN8.js.map} +1 -1
- package/chunk/{StepSuccess-CoQmjeaw.js → StepSuccess-C1k2Uq-n.js} +6 -6
- package/chunk/{StepSuccess-CwprAx_X.js.map → StepSuccess-C1k2Uq-n.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BnREkHc-.js → StepTeacherPersonalInfo-CKBRyBNe.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-BnREkHc-.js.map → StepTeacherPersonalInfo-CKBRyBNe.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-oxESzOhJ.js → StepTeacherPersonalInfo-CZOX9gA4.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-oxESzOhJ.js.map → StepTeacherPersonalInfo-CZOX9gA4.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-X4jP0iPe.js → TeacherSchoolComponent-B77guOV9.js} +7 -7
- package/chunk/{TeacherSchoolComponent-X4jP0iPe.js.map → TeacherSchoolComponent-B77guOV9.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-xlpebqi9.js → TeacherSchoolComponent-BTfcCslB.js} +7 -7
- package/chunk/{TeacherSchoolComponent-xlpebqi9.js.map → TeacherSchoolComponent-BTfcCslB.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CqkLaStu.js +4 -4
- package/chunk/TestingRouteOverrides-DUx5spVA.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-D5CO913q.js +4 -4
- package/chunk/bg-1mhA5kYF.js +4 -4
- package/chunk/bn-IN-CpDqyRb_.js +4 -4
- package/chunk/clsx-CB5rauS5.js +4 -4
- package/chunk/{countryUtils-B4JUeycO.js → countryUtils-CwgqZgtq.js} +5 -5
- package/chunk/{countryUtils-B4JUeycO.js.map → countryUtils-CwgqZgtq.js.map} +1 -1
- package/chunk/countryUtils-sqGdJQaH.js +12 -0
- package/chunk/{countryUtils-DS8Zctdr.js.map → countryUtils-sqGdJQaH.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-CWgGV2e-.js → downshift.esm-DOcDbvAN.js} +5 -5
- package/chunk/{downshift.esm-B1eE_tYZ.js.map → downshift.esm-DOcDbvAN.js.map} +1 -1
- package/chunk/{downshift.esm-B1eE_tYZ.js → downshift.esm-DYNFn_A5.js} +5 -5
- package/chunk/{downshift.esm-CWgGV2e-.js.map → downshift.esm-DYNFn_A5.js.map} +1 -1
- package/chunk/el-DbDcvSPJ.js +4 -4
- package/chunk/empties-C1INRgC4.js +4 -4
- package/chunk/empties-C38lUQIl.js +4 -4
- package/chunk/en-GB-CNQ8Ww2j.js +4 -4
- package/chunk/es-ES-DWimqEZ_.js +4 -4
- package/chunk/es-qhC-seq5.js +4 -4
- package/chunk/et-yF9G-Mym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BcdSf7og.js +4 -4
- package/chunk/fi-D-IP_KHm.js +4 -4
- package/chunk/fr-BmUuYxk0.js +4 -4
- package/chunk/fr-CA-DVQ4xmzZ.js +4 -4
- package/chunk/ga-DuZycND3.js +4 -4
- package/chunk/hi-IN-l6Rn5Ewm.js +4 -4
- package/chunk/hooks-DFk9wlFh.js +4 -4
- package/chunk/hooks-Y72jcEAM.js +4 -4
- 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-D5sUivUy.js +4 -4
- package/chunk/is-CvmKEON9.js +4 -4
- package/chunk/it-CnmveGgC.js +4 -4
- package/chunk/iw-DFUYHkxF.js +4 -4
- package/chunk/ja-CjVb2tWW.js +4 -4
- package/chunk/jsx-runtime-BfITI5pK.js +4 -4
- package/chunk/jsx-runtime-CB6nLaN6.js +4 -4
- package/chunk/kk-Dvz4nK6K.js +4 -4
- package/chunk/ko-DzOqBMGC.js +4 -4
- package/chunk/lo-C2WPq55d.js +4 -4
- package/chunk/lt-BSDYvjTF.js +4 -4
- package/chunk/lv-CefDPT-M.js +4 -4
- package/chunk/mockProgramConfiguration-YBQMVL51.js +4 -4
- package/chunk/mockProgramI18n-CgYx_1_a.js +4 -4
- package/chunk/mockProgramTheme-CPG4vkJd.js +4 -4
- package/chunk/mocks-BJWOJTTC.js +4 -4
- package/chunk/mocks-BtNIwVeT.js +4 -4
- package/chunk/ms-BjestZxy.js +4 -4
- package/chunk/nl-B1FyUfCT.js +4 -4
- package/chunk/nl-BE-CbeAd3nq.js +4 -4
- package/chunk/no-Dr633Ddi.js +4 -4
- package/chunk/options-BCFIfBTZ.js +4 -4
- package/chunk/pl-UYTjMIq_.js +4 -4
- package/chunk/{programThemeGetters-CIZ0gRgE.js → programThemeGetters-BzA30Gt9.js} +5 -5
- package/chunk/{programThemeGetters-CIZ0gRgE.js.map → programThemeGetters-BzA30Gt9.js.map} +1 -1
- package/chunk/{programThemeGetters-BIRDUiTI.js → programThemeGetters-COq47Fnv.js} +5 -5
- package/chunk/{programThemeGetters-BIRDUiTI.js.map → programThemeGetters-COq47Fnv.js.map} +1 -1
- package/chunk/pt-BR-C8SYMT-J.js +4 -4
- package/chunk/pt-uH-M3GdN.js +4 -4
- package/chunk/refs-Mq0rtW9K.js +4 -4
- package/chunk/ro-CAOSXZ7h.js +4 -4
- package/chunk/ru-iwYoEydL.js +4 -4
- package/chunk/runtimeTypes-B2AGNJMT.js +4 -4
- package/chunk/sk-DYYNV3zw.js +4 -4
- package/chunk/sl-D_-eeM5N.js +4 -4
- package/chunk/sr-BTi9_anL.js +4 -4
- package/chunk/stepComponentHelpers--E4kvS6y.js +4 -4
- package/chunk/stepComponentHelpers-CD1Gfspm.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DRwY4shG.js +4 -4
- package/chunk/sw-Bvj2mYmM.js +4 -4
- package/chunk/ta-CmtaYoNe.js +4 -4
- package/chunk/th-12r2yKkJ.js +4 -4
- package/chunk/tl-BGNfO7md.js +4 -4
- package/chunk/tr-DH2ZSJhs.js +4 -4
- package/chunk/uk-CELBZlTd.js +4 -4
- package/chunk/ur-MR8DTbmd.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-CzTl9kbR.js → useCollectFieldsEndpoint-0JWh9t6G.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CzTl9kbR.js.map → useCollectFieldsEndpoint-0JWh9t6G.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Bxae2_8a.js → useCollectFieldsEndpoint-DD2bXY_y.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-Bxae2_8a.js.map → useCollectFieldsEndpoint-DD2bXY_y.js.map} +1 -1
- package/chunk/useMetrics-CtsRRjGJ.js +4 -4
- package/chunk/useMetrics-jabV9gsZ.js +4 -4
- package/chunk/vi-DtZ-SqD5.js +4 -4
- package/chunk/zh-DjyVyYac.js +4 -4
- package/chunk/zh-HK-CN1HarHq.js +4 -4
- package/chunk/zu-DPhgIh1z.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +37 -37
- package/chunk/countryUtils-DS8Zctdr.js +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusComponent-
|
|
1
|
+
{"version":3,"file":"StatusComponent-Dhc7qHou.js","names":[],"sources":["../../src/components/FormFields/Status/StatusComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\ninterface StatusComponentProps<T = FormSelectChoice> extends InputSelectComponentProps<T> {\n segmentId: string;\n errorId?: string;\n explanation?: string | JSX.Element;\n}\n\nexport const StatusComponent = ({\n value,\n isErrored,\n errorId = \"invalidStatus\",\n options,\n onChange,\n placeholder = \"\",\n onKeyDown = undefined,\n segmentId,\n disabled = false,\n label = <FormattedHTMLMessage id=\"status\" defaultMessage=\"Status\" />,\n explanation = undefined,\n}: StatusComponentProps) => {\n const { msg } = useMessage();\n const inputId = `${segmentId}-status`;\n const hasOnlyOneOption = options.length === 1;\n const isFieldHidden =\n getFieldConfigByFieldId(\"status\")?.hidden || getFieldConfigByFieldId(\"statuses\")?.hidden;\n\n // Auto select a status if there is only one option. Available statuses can\n // change after initial render.\n // Uses values instead of arrays for stable identities.\n const onlyOption = hasOnlyOneOption ? options[0] : undefined;\n const selectedValue = value?.value;\n React.useEffect(() => {\n if (onlyOption && selectedValue !== onlyOption.value) {\n onChange(onlyOption);\n }\n }, [onlyOption?.value, selectedValue]);\n\n if (hasOnlyOneOption || isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(status: FormSelectChoice) => onChange(status)}\n onKeyDown={onKeyDown}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={placeholder || msg({ id: \"statusPlaceholder\" })}\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n containerId={`sid-${inputId}`}\n label={label}\n disabled={disabled}\n explanation={explanation}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id={`errorId.${errorId}`}\n defaultMessage={`Invalid ${segmentId} status`}\n />\n )\n }\n />\n );\n};\n"],"mappings":";;;;;;4CAea,KAAmB,EAC9B,UACA,cACA,aAAU,iBACV,YACA,aACA,iBAAc,IACd,eAAY,KAAA,GACZ,cACA,cAAW,IACX,WAAQ,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAsB,IAAG;CAAS,gBAAe;AAAU,CAAA,GACnE,iBAAc,KAAA,QACY;CAC1B,IAAM,EAAE,WAAQ,EAAW,GACrB,IAAU,GAAG,EAAU,UACvB,IAAmB,EAAQ,WAAW,GACtC,IACJ,EAAwB,QAAQ,GAAG,UAAU,EAAwB,UAAU,GAAG,QAK9E,IAAa,IAAmB,EAAQ,KAAK,KAAA,GAC7C,IAAgB,GAAO;CAW7B,OAVA,EAAM,gBAAgB;EACpB,AAAI,KAAc,MAAkB,EAAW,SAC7C,EAAS,CAAU;CAEvB,GAAG,CAAC,GAAY,OAAO,CAAa,CAAC,GAEjC,KAAoB,IACf,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACA;EACT,WAAW,MAA6B,EAAS,CAAM;EAC5C;EACX,OAAO,EAAQ,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;EACvE,aAAa,KAAe,EAAI,EAAE,IAAI,oBAAoB,CAAC;EAC3D,6BAA6B,CAAC,CAAC;EAC/B,YAAA;EACA,aAAa,OAAO;EACb;EACG;EACG;EACb,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAI,WAAW;GACf,gBAAgB,WAAW,EAAU;EACtC,CAAA;CAGN,CAAA;AAEL"}
|
|
@@ -4,29 +4,29 @@
|
|
|
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.308.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793126526864
|
|
9
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:06 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
11
11
|
*/
|
|
12
12
|
import { At as e, Et as t, s as n } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as r } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
|
-
import { n as i } from "./programThemeGetters-
|
|
14
|
+
import { n as i } from "./programThemeGetters-BzA30Gt9.js";
|
|
15
15
|
import { n as a, s as o, t as s } from "./jsx-runtime-CB6nLaN6.js";
|
|
16
|
-
import { p as c } from "./FormFooterComponent-
|
|
16
|
+
import { p as c } from "./FormFooterComponent-CKEfiYXW.js";
|
|
17
17
|
import { t as l } from "../_mysheerid-preview.js";
|
|
18
|
-
import { t as u } from "./useCollectFieldsEndpoint-
|
|
18
|
+
import { t as u } from "./useCollectFieldsEndpoint-0JWh9t6G.js";
|
|
19
19
|
import { d, o as f, r as p, t as m } from "./stepComponentHelpers--E4kvS6y.js";
|
|
20
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
21
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
22
|
-
import { t as C } from "./BirthDateComponent-
|
|
23
|
-
import { t as w } from "./PostalCodeComponent-
|
|
24
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
25
|
-
import { t as E } from "./City-
|
|
26
|
-
import { t as D } from "./AddressComponent-
|
|
27
|
-
import { t as O } from "./ExtraMessage-
|
|
28
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
29
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
20
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-CIxr0YQ1.js";
|
|
21
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-Byq7BneV.js";
|
|
22
|
+
import { t as C } from "./BirthDateComponent-DpiGGQ_Q.js";
|
|
23
|
+
import { t as w } from "./PostalCodeComponent-DDrsbmWU.js";
|
|
24
|
+
import { t as T } from "./CountryComponentWrapper-CymqHdjW.js";
|
|
25
|
+
import { t as E } from "./City-D63Xv635.js";
|
|
26
|
+
import { t as D } from "./AddressComponent-0YHKJ9J4.js";
|
|
27
|
+
import { t as O } from "./ExtraMessage-CgIIaamt.js";
|
|
28
|
+
import { t as k } from "./ChangeLocaleComponent-D1JuIC6Z.js";
|
|
29
|
+
import { t as A } from "./PersonalInfoStepWrapper-DCFj5mke.js";
|
|
30
30
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
31
31
|
var j = /* @__PURE__ */ e(o(), 1), M = s(), N = ({ verificationService: e }) => {
|
|
32
32
|
let o = e.viewModel, { fieldValidationErrors: s } = e, N = e.verificationResponse, P = c(N), F = i(e.programTheme), I = t(() => o.countryChoice.value, F.length > 0 ? F[0] : "US"), L = I === "US" ? [{ key: "postalCode" }] : [], R = I !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, z = I !== "US" || e.programTheme.smsLoopEnabled, B = o.localeChoice.value, V = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-D2IGNQbe.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAC/D,IAAiB,EAAuB,EAAoB,YAAY,GAExE,IAAmB,QAAc,EAAU,cAAc,OADlC,EAAe,SAAS,IAAI,EAAe,KAAK,IACa,GACpF,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC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KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepAgePersonalInfo-DA2zbaXM.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5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AC,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,28 +1,28 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.308.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793126520348
|
|
5
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:00 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
7
7
|
*/
|
|
8
8
|
import { At as e, ft as t, n } from "./options-BCFIfBTZ.js";
|
|
9
9
|
import { n as r, s as i, t as a } from "./jsx-runtime-BfITI5pK.js";
|
|
10
10
|
import { b as o } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { n as s } from "./programThemeGetters-
|
|
12
|
-
import { h as c } from "./FormFooterComponent-
|
|
11
|
+
import { n as s } from "./programThemeGetters-COq47Fnv.js";
|
|
12
|
+
import { h as c } from "./FormFooterComponent-DD4Q2LF_.js";
|
|
13
13
|
import { n as l } from "../sheerid.js";
|
|
14
|
-
import { t as u } from "./useCollectFieldsEndpoint-
|
|
14
|
+
import { t as u } from "./useCollectFieldsEndpoint-DD2bXY_y.js";
|
|
15
15
|
import { d, o as f, r as p, t as m } from "./stepComponentHelpers-CD1Gfspm.js";
|
|
16
|
-
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-
|
|
17
|
-
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-
|
|
18
|
-
import { t as C } from "./BirthDateComponent-
|
|
19
|
-
import { t as w } from "./PostalCodeComponent-
|
|
20
|
-
import { t as T } from "./CountryComponentWrapper-
|
|
21
|
-
import { t as E } from "./City-
|
|
22
|
-
import { t as D } from "./AddressComponent-
|
|
23
|
-
import { t as O } from "./ExtraMessage-
|
|
24
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
25
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
16
|
+
import { a as h, i as g, n as _, o as v, s as y, t as b } from "./CaptchaComponent-DtanRbX-.js";
|
|
17
|
+
import { n as x, t as S } from "./PersonalInfoStepSubmitButton-B5m1zKXj.js";
|
|
18
|
+
import { t as C } from "./BirthDateComponent-CJwhC_Xn.js";
|
|
19
|
+
import { t as w } from "./PostalCodeComponent-B52z4pxa.js";
|
|
20
|
+
import { t as T } from "./CountryComponentWrapper-DAcu9MAP.js";
|
|
21
|
+
import { t as E } from "./City-CdtNA5Vw.js";
|
|
22
|
+
import { t as D } from "./AddressComponent-DIG0W__a.js";
|
|
23
|
+
import { t as O } from "./ExtraMessage-TBf4guH7.js";
|
|
24
|
+
import { t as k } from "./ChangeLocaleComponent-Bwptiyp-.js";
|
|
25
|
+
import { t as A } from "./PersonalInfoStepWrapper-Ds0Umiti.js";
|
|
26
26
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
27
27
|
var j = /* @__PURE__ */ e(i(), 1), M = a(), N = ({ verificationService: e }) => {
|
|
28
28
|
let i = e.viewModel, { fieldValidationErrors: a } = e, N = e.verificationResponse, P = c(N), F = s(e.programTheme), I = t(() => i.countryChoice.value, F.length > 0 ? F[0] : "US"), L = I === "US" ? [{ key: "postalCode" }] : [], R = I !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, z = I !== "US" || e.programTheme.smsLoopEnabled, B = i.localeChoice.value, V = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-DVP1nW1R.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAC/D,IAAiB,EAAuB,EAAoB,YAAY,GAExE,IAAmB,QAAc,EAAU,cAAc,OADlC,EAAe,SAAS,IAAI,EAAe,KAAK,IACa,GACpF,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC,eAAe,EAAU,aAAa,CAAmB;CAChG,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,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepAgePersonalInfo-Ds7ZuZLo.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n verificationService: VerificationService;\n}\n\nexport const StepAgePersonalInfoComponent = ({\n verificationService,\n}: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices = getConfiguredCountries(verificationService.programTheme);\n const defaultCountryChoice = countryChoices.length > 0 ? countryChoices[0] : \"US\";\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;4CA8Ca,KAAgC,EAC3C,6BACuC;CACvC,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAq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P;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.308.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793126526864
|
|
9
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:06 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
11
11
|
*/
|
|
12
12
|
import { t as e } from "./jsx-runtime-CB6nLaN6.js";
|
|
13
13
|
//#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.308.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793126520348
|
|
5
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:00 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
7
7
|
*/
|
|
8
8
|
import { t as e } from "./jsx-runtime-BfITI5pK.js";
|
|
9
9
|
//#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.308.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1793126520348
|
|
5
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:00 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
7
7
|
*/
|
|
8
8
|
import { c as e } from "./options-BCFIfBTZ.js";
|
|
9
9
|
import { n as t, t as n } from "./jsx-runtime-BfITI5pK.js";
|
|
10
10
|
import { b as r } from "./runtimeTypes-B2AGNJMT.js";
|
|
11
|
-
import { h as i, t as a } from "./FormFooterComponent-
|
|
11
|
+
import { h as i, t as a } from "./FormFooterComponent-DD4Q2LF_.js";
|
|
12
12
|
import { n as o } from "../sheerid.js";
|
|
13
13
|
import { d as s, r as c } from "./stepComponentHelpers-CD1Gfspm.js";
|
|
14
|
-
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-
|
|
14
|
+
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-B5m1zKXj.js";
|
|
15
15
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
|
16
16
|
var d = n(), f = ({ verificationService: n }) => {
|
|
17
17
|
let f = n.viewModel, { fieldValidationErrors: p } = n, m = n.verificationResponse, h = i(m), g = (t, r) => {
|
package/chunk/{StepCollectIdentifier-DnC9MgdJ.js.map → StepCollectIdentifier-RScotr-L.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-RScotr-L.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -4,18 +4,18 @@
|
|
|
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.308.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793126526864
|
|
9
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:06 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
11
11
|
*/
|
|
12
12
|
import { p as e } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as t } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n, t as r } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
-
import { p as i, t as a } from "./FormFooterComponent-
|
|
15
|
+
import { p as i, t as a } from "./FormFooterComponent-CKEfiYXW.js";
|
|
16
16
|
import { t as o } from "../_mysheerid-preview.js";
|
|
17
17
|
import { d as s, r as c } from "./stepComponentHelpers--E4kvS6y.js";
|
|
18
|
-
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-
|
|
18
|
+
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-Byq7BneV.js";
|
|
19
19
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
|
20
20
|
var d = r(), f = ({ verificationService: r }) => {
|
|
21
21
|
let f = r.viewModel, { fieldValidationErrors: p } = r, m = r.verificationResponse, h = i(m), g = (t, n) => {
|
package/chunk/{StepCollectIdentifier-Cr-pcekl.js.map → StepCollectIdentifier-q7MmZ0Wv.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-q7MmZ0Wv.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -4,34 +4,34 @@
|
|
|
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.308.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1793126526864
|
|
9
|
+
* BUILD_DATE: Tue Oct 27 2026 18:42:06 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 11f45b90cabf6dcbfaaa0b1cca451b53272ff392
|
|
11
11
|
*/
|
|
12
12
|
import { p as e, s as t } from "./intl-D5sUivUy.js";
|
|
13
13
|
import { b as n } from "./runtimeTypes-B2AGNJMT.js";
|
|
14
14
|
import { n as r, t as i } from "./jsx-runtime-CB6nLaN6.js";
|
|
15
|
-
import { p as a } from "./FormFooterComponent-
|
|
15
|
+
import { p as a } from "./FormFooterComponent-CKEfiYXW.js";
|
|
16
16
|
import { a as o } from "./refs-Mq0rtW9K.js";
|
|
17
17
|
import { t as s } from "../_mysheerid-preview.js";
|
|
18
|
-
import { t as c } from "./useCollectFieldsEndpoint-
|
|
18
|
+
import { t as c } from "./useCollectFieldsEndpoint-0JWh9t6G.js";
|
|
19
19
|
import { d as l, f 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-
|
|
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 "./City-
|
|
27
|
-
import { t as E } from "./AddressComponent-
|
|
28
|
-
import { t as D } from "./ExtraMessage-
|
|
29
|
-
import { t as O } from "./ChangeLocaleComponent-
|
|
30
|
-
import { t as k } from "./PersonalInfoStepWrapper-
|
|
31
|
-
import { t as A } from "./countryUtils-
|
|
32
|
-
import { t as j } from "./StateSelectComponent-
|
|
33
|
-
import { n as M, r as N, t as P } from "./DischargeDateComponent-
|
|
34
|
-
import { t as F } from "./StatusComponent-
|
|
20
|
+
import { a as p, i as m, n as h, o as g, s as _, t as v } from "./CaptchaComponent-CIxr0YQ1.js";
|
|
21
|
+
import { n as y, t as b } from "./PersonalInfoStepSubmitButton-Byq7BneV.js";
|
|
22
|
+
import { i as x } from "./FormSelectChoice-BV0vYPBj.js";
|
|
23
|
+
import { t as S } from "./BirthDateComponent-DpiGGQ_Q.js";
|
|
24
|
+
import { t as C } from "./PostalCodeComponent-DDrsbmWU.js";
|
|
25
|
+
import { t as w } from "./CountryComponentWrapper-CymqHdjW.js";
|
|
26
|
+
import { t as T } from "./City-D63Xv635.js";
|
|
27
|
+
import { t as E } from "./AddressComponent-0YHKJ9J4.js";
|
|
28
|
+
import { t as D } from "./ExtraMessage-CgIIaamt.js";
|
|
29
|
+
import { t as O } from "./ChangeLocaleComponent-D1JuIC6Z.js";
|
|
30
|
+
import { t as k } from "./PersonalInfoStepWrapper-DCFj5mke.js";
|
|
31
|
+
import { t as A } from "./countryUtils-CwgqZgtq.js";
|
|
32
|
+
import { t as j } from "./StateSelectComponent-BZuF9eDA.js";
|
|
33
|
+
import { n as M, r as N, t as P } from "./DischargeDateComponent-gHcdda1I.js";
|
|
34
|
+
import { t as F } from "./StatusComponent-B6o6DQjp.js";
|
|
35
35
|
//#region src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts
|
|
36
36
|
var I = (t, n, r, i) => {
|
|
37
37
|
let a = r.viewModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-DJBXqFkS.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {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 updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;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GAAA,EAAA,KAAC,GAAD;KAAsB,IAAG;KAAQ,gBAAe;IAAS,CAAA;IAChE,UAAU,EAAwB,OAAO,GAAG;IAC5C,YAAY,EAAwB,OAAO,GAAG;GAC/C,CAAA;GAEF,EAAgB,YAAY,KAC3B,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,UAAU,EAAwB,YAAY,GAAG;IACjD,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAEtB,AADA,EAAe,cAAc,CAAQ,GACrC,EAAqC,cAAc,GAAU,CAAmB;IAClF;IACA,OAAO,EAAU;IACjB,UAAU,EAAwB,YAAY,GAAG;GAClD,CAAA;GAGF,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,EAAe,YAAY;MACzB,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAqB;IACN;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB"}
|
|
1
|
+
{"version":3,"file":"StepCollectMilitaryPersonalInfoComponent-Oy-H1lRT.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts","../../src/components/StepMilitaryPersonalInfo/StepCollectMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["import produce from \"immer\";\n\nimport {\n type VerificationService,\n type FormSelectChoice,\n type MilitaryPersonalInfoViewModel,\n} from \"../../lib/types/types\";\n\nexport const updateMilitaryViewModel = (\n key: keyof MilitaryPersonalInfoViewModel,\n value: any,\n verificationService: VerificationService,\n availableStatuses: FormSelectChoice[],\n): MilitaryPersonalInfoViewModel => {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n return produce(viewModel, (draft: MilitaryPersonalInfoViewModel) => {\n (draft[key] as any) = value;\n\n // Reset military-managed skip flags before reapplying.\n const militaryManagedFields = [\"status\"];\n draft.fieldsToSkipValidation = (draft.fieldsToSkipValidation || []).filter(\n (id) => !militaryManagedFields.includes(id),\n );\n\n if (!availableStatuses || availableStatuses.length === 0) {\n draft.fieldsToSkipValidation.push(\"status\");\n }\n\n if (key === \"status\") {\n draft.organization = { id: 0, name: \"\" };\n }\n });\n};\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useFormSelectChoice } from \"@/components/FormInputs/InputSelect/InputSelectComponent\";\n\nimport { type CollectInfoSteps, VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport {\n type VerificationService,\n type FormSelectChoice,\n type Organization,\n type MilitaryPersonalInfoViewModel,\n type ActiveMilitaryPersonalInfoResponse,\n type InactiveMilitaryPersonalInfoResponse,\n type MilitaryStatusResponse,\n type CustomFormFieldConfig,\n type FieldDescription,\n type State,\n type MilitaryStatus,\n} from \"../../lib/types/types\";\nimport { useCollectFieldsEndpoint } from \"../../lib/ServerApi/useCollectFieldsEndpoint\";\nimport { isCountrySelectionNeeded } from \"../FormFields/Country/countryUtils\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatusComponent } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { StateSelectComponent } from \"../FormFields/State/StateSelectComponent\";\nimport { PostalCodeComponent } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { getOptions } from \"../../options/options\";\n\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\n\ninterface Props {\n verificationService: VerificationService;\n}\n\nexport default function StepCollectMilitaryPersonalInfoComponent({ verificationService }: Props) {\n const viewModel = verificationService.viewModel as MilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as\n | ActiveMilitaryPersonalInfoResponse\n | InactiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n // Seed: show dischargeDate on first paint when the response indicates an\n // inactive flow, or when the program's transitional validity window applies.\n // The /fields response replaces this once it resolves.\n const showDischargeDateInitially =\n verificationResponse.currentStep ===\n VerificationStepsEnum.collectInactiveMilitaryPersonalInfo ||\n !!verificationService.programTheme.transitionalMilitaryValidityDays;\n const initialRequiredFields: FieldDescription[] = showDischargeDateInitially\n ? [{ key: \"dischargeDate\" }]\n : [];\n\n const {\n availableStatuses: dynamicStatuses,\n isFieldRequired,\n isFieldOptional,\n } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: VerificationStepsEnum.collectMilitaryPersonalInfo,\n viewModel,\n defaultRequiredFields: initialRequiredFields,\n });\n\n const countryChoiceValue = viewModel.countryChoice?.value;\n const needToPickCountry = isCountrySelectionNeeded(\n verificationService.programTheme,\n countryChoiceValue,\n );\n\n const statusOptions = useFormSelectChoice(\n (dynamicStatuses ??\n (verificationResponse as unknown as MilitaryStatusResponse).availableStatuses ??\n (verificationService.previousVerificationResponse as MilitaryStatusResponse)\n ?.availableStatuses) as MilitaryStatus[],\n );\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const showDischargeDate = isFieldRequired(\"dischargeDate\") || isFieldOptional(\"dischargeDate\");\n\n const updateMilitary = (key: keyof MilitaryPersonalInfoViewModel, value: any) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, statusOptions),\n );\n };\n\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {statusOptions.length > 0 ? (\n <MilitaryStatusComponent\n segmentId=\"military\"\n value={statusOptions.find((option) => option.value === viewModel.status)}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={statusOptions}\n disabled={needToPickCountry || getFieldConfigByFieldId(\"status\")?.disabled}\n explanation={\n needToPickCountry ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : undefined\n }\n onChange={(status: FormSelectChoice) => {\n updateMilitary(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: viewModel.organization.id,\n label: viewModel.organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateMilitary(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {showDischargeDate && (\n <DischargeDate\n mode={\n verificationService.programTheme.transitionalMilitaryValidityDays ? \"date\" : \"month\"\n }\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateMilitary(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n isRequired={isFieldRequired(\"dischargeDate\")}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateMilitary(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateMilitary(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {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 updateMilitary(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {isFieldOptional(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n disabled={getFieldConfigByFieldId(\"address1\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"address1\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateMilitary(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n isRequired={getFieldConfigByFieldId(\"city\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"state\") && (\n <StateSelectComponent\n value={viewModel.state || undefined}\n isErrored={Boolean(fieldValidationErrors.state)}\n onChange={async (stateChoice: FormSelectChoice<State, string>) => {\n const stateValue = stateChoice ? stateChoice.value : undefined;\n updateMilitary(\"state\", stateValue);\n updateFieldValidationErrorsByFieldId(\"state\", stateValue, verificationService);\n }}\n label={<FormattedHTMLMessage id=\"state\" defaultMessage=\"State\" />}\n disabled={getFieldConfigByFieldId(\"state\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"state\")?.requireIfOptional}\n />\n )}\n {isFieldOptional(\"postalCode\") && (\n <PostalCodeComponent\n required={getFieldConfigByFieldId(\"postalCode\")?.requireIfOptional}\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateMilitary(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateMilitary(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={verificationResponse.currentStep as CollectInfoSteps}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAa,KACX,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAY,EAAoB;CACtC,OAAO,EAAQ,IAAY,MAAyC;EAClE,EAAO,KAAe;EAGtB,IAAM,IAAwB,CAAC,QAAQ;EASvC,AARA,EAAM,0BAA0B,EAAM,0BAA0B,CAAC,GAAG,QACjE,MAAO,CAAC,EAAsB,SAAS,CAAE,CAC5C,IAEI,CAAC,KAAqB,EAAkB,WAAW,MACrD,EAAM,uBAAuB,KAAK,QAAQ,GAGxC,MAAQ,a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