@sheerid/jslib-nightly 2.263.0-alpha.0 → 2.264.0-alpha.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 +3 -3
- package/_mysheerid-preview.js +39 -42
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-0vaEURVZ.js +3 -3
- package/chunk/AddressComponent-D9R5iYEq.js +3 -3
- package/chunk/AnnouncingHeader-2fKF8wpi.js +3 -3
- package/chunk/AnnouncingHeader-C46Kp2B-.js +3 -3
- package/chunk/{ApiUrls-DlpncFa4.js → ApiUrls-4OKW_tWC.js} +4 -4
- package/chunk/{ApiUrls-CcYW2aEq.js.map → ApiUrls-4OKW_tWC.js.map} +1 -1
- package/chunk/{ApiUrls-CcYW2aEq.js → ApiUrls-BAEadEoV.js} +4 -4
- package/chunk/{ApiUrls-DlpncFa4.js.map → ApiUrls-BAEadEoV.js.map} +1 -1
- package/chunk/{BirthDateComponent-CPX6e-oS.js → BirthDateComponent-BD9ZmOZi.js} +4 -4
- package/chunk/{BirthDateComponent-CPX6e-oS.js.map → BirthDateComponent-BD9ZmOZi.js.map} +1 -1
- package/chunk/{BirthDateComponent-DiB89V9D.js → BirthDateComponent-ts-uQcFv.js} +4 -4
- package/chunk/{BirthDateComponent-DiB89V9D.js.map → BirthDateComponent-ts-uQcFv.js.map} +1 -1
- package/chunk/{CaptchaComponent-gd5yubvd.js → CaptchaComponent-BsP6z6fV.js} +5 -5
- package/chunk/{CaptchaComponent-D5Dv1noI.js.map → CaptchaComponent-BsP6z6fV.js.map} +1 -1
- package/chunk/{CaptchaComponent-D5Dv1noI.js → CaptchaComponent-Bv3pBtOL.js} +5 -5
- package/chunk/{CaptchaComponent-gd5yubvd.js.map → CaptchaComponent-Bv3pBtOL.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BTZAq7uW.js → ChangeLocaleComponent-CISzBLcA.js} +4 -4
- package/chunk/{ChangeLocaleComponent-B8O2m2HE.js.map → ChangeLocaleComponent-CISzBLcA.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-B8O2m2HE.js → ChangeLocaleComponent-DxqwPe0W.js} +4 -4
- package/chunk/{ChangeLocaleComponent-BTZAq7uW.js.map → ChangeLocaleComponent-DxqwPe0W.js.map} +1 -1
- package/chunk/City-B6J8thJW.js +3 -3
- package/chunk/City-CLyjXYQj.js +3 -3
- package/chunk/{CollegeNameComponent-VCRUE6e_.js → CollegeNameComponent-CBibfBPl.js} +4 -4
- package/chunk/{CollegeNameComponent-CzyeuqK7.js.map → CollegeNameComponent-CBibfBPl.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CzyeuqK7.js → CollegeNameComponent-CQ8GCcAQ.js} +4 -4
- package/chunk/{CollegeNameComponent-VCRUE6e_.js.map → CollegeNameComponent-CQ8GCcAQ.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-C3q4w3A8.js +3 -3
- package/chunk/CopyToClipboardComponent-mgX-iqqn.js +3 -3
- package/chunk/{CountryComponentWrapper-BGajYZrL.js → CountryComponentWrapper-C6jxabRh.js} +4 -4
- package/chunk/{CountryComponentWrapper-BGajYZrL.js.map → CountryComponentWrapper-C6jxabRh.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CLGBVkRB.js → CountryComponentWrapper-D4AKnv7H.js} +4 -4
- package/chunk/{CountryComponentWrapper-CLGBVkRB.js.map → CountryComponentWrapper-D4AKnv7H.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CrJy29pH.js → DischargeDateComponent-DD8bF1FM.js} +6 -6
- package/chunk/{DischargeDateComponent-CrJy29pH.js.map → DischargeDateComponent-DD8bF1FM.js.map} +1 -1
- package/chunk/{DischargeDateComponent-S0alvYUT.js → DischargeDateComponent-G2t2Wff_.js} +6 -6
- package/chunk/{DischargeDateComponent-S0alvYUT.js.map → DischargeDateComponent-G2t2Wff_.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-5Zli2AqS.js +3 -3
- package/chunk/DriverLicenseNumberComponent-Cn9W9CIk.js +3 -3
- package/chunk/{EmailLoopPending-yAg-0vC3.js → EmailLoopPending-BnvmAmWy.js} +4 -4
- package/chunk/{EmailLoopPending-yAg-0vC3.js.map → EmailLoopPending-BnvmAmWy.js.map} +1 -1
- package/chunk/{EmailLoopPending-DY_CezIw.js → EmailLoopPending-CClIwdkr.js} +4 -4
- package/chunk/{EmailLoopPending-DY_CezIw.js.map → EmailLoopPending-CClIwdkr.js.map} +1 -1
- package/chunk/{ExtraMessage-UbmnijRM.js → ExtraMessage-C9Tya8_-.js} +4 -4
- package/chunk/{ExtraMessage-UbmnijRM.js.map → ExtraMessage-C9Tya8_-.js.map} +1 -1
- package/chunk/{ExtraMessage-vcQ9SW6K.js → ExtraMessage-DuHSW-UZ.js} +4 -4
- package/chunk/{ExtraMessage-vcQ9SW6K.js.map → ExtraMessage-DuHSW-UZ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DMOFM1oz.js → FirstResponderOrganizationComponent-DP2GOIw6.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DMOFM1oz.js.map → FirstResponderOrganizationComponent-DP2GOIw6.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-NKG9W0hn.js → FirstResponderOrganizationComponent-JSA5K2D2.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-NKG9W0hn.js.map → FirstResponderOrganizationComponent-JSA5K2D2.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Bi8LOivJ.js → FormFieldInputSelect-Cigt3nT_.js} +4 -4
- package/chunk/{FormFieldInputSelect-Bi8LOivJ.js.map → FormFieldInputSelect-Cigt3nT_.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DtvPrvCM.js → FormFieldInputSelect-CxtZEq4Z.js} +4 -4
- package/chunk/{FormFieldInputSelect-DtvPrvCM.js.map → FormFieldInputSelect-CxtZEq4Z.js.map} +1 -1
- package/chunk/FormFieldLayout-CM-yJADZ.js +3 -3
- package/chunk/FormFieldLayout-x7EaxmB4.js +3 -3
- package/chunk/FormFieldText-ByMirgSm.js +3 -3
- package/chunk/FormFieldText-Cer6Ul3T.js +3 -3
- package/chunk/{FormFieldTypeahead-pogmD1N2.js → FormFieldTypeahead-Cvvyy43k.js} +6 -6
- package/chunk/{FormFieldTypeahead-pogmD1N2.js.map → FormFieldTypeahead-Cvvyy43k.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CS8Gc1-N.js → FormFieldTypeahead-gPVkMR97.js} +6 -6
- package/chunk/{FormFieldTypeahead-CS8Gc1-N.js.map → FormFieldTypeahead-gPVkMR97.js.map} +1 -1
- package/chunk/{FormFooterComponent-hQ9YVK_9.js → FormFooterComponent-Cw_RFaJx.js} +6 -6
- package/chunk/{FormFooterComponent-hQ9YVK_9.js.map → FormFooterComponent-Cw_RFaJx.js.map} +1 -1
- package/chunk/{FormFooterComponent-Bf1bxfK_.js → FormFooterComponent-DGChoxIB.js} +6 -6
- package/chunk/{FormFooterComponent-Bf1bxfK_.js.map → FormFooterComponent-DGChoxIB.js.map} +1 -1
- package/chunk/{FormSelectChoice-DFW__bqf.js → FormSelectChoice-B7U5PPTN.js} +4 -4
- package/chunk/{FormSelectChoice-CD4kEzVG.js.map → FormSelectChoice-B7U5PPTN.js.map} +1 -1
- package/chunk/{FormSelectChoice-CD4kEzVG.js → FormSelectChoice-C6yHmfa6.js} +4 -4
- package/chunk/{FormSelectChoice-DFW__bqf.js.map → FormSelectChoice-C6yHmfa6.js.map} +1 -1
- package/chunk/InputText-CFKx7skU.js +3 -3
- package/chunk/InputText-rG2lFIuH.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-CabaokFb.js → LicensedProfessionalOrganizationComponent-CHaB-ihc.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-CabaokFb.js.map → LicensedProfessionalOrganizationComponent-CHaB-ihc.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DmjiRyX1.js → LicensedProfessionalOrganizationComponent-FXL2ofiw.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DmjiRyX1.js.map → LicensedProfessionalOrganizationComponent-FXL2ofiw.js.map} +1 -1
- package/chunk/LogoComponent-40n5vaD0.js +3 -3
- package/chunk/LogoComponent-lTeCnowz.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-uUgJiZtV.js → LowIncomeOrganizationComponent-CmH7OfBz.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-DHP7BAWQ.js.map → LowIncomeOrganizationComponent-CmH7OfBz.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DHP7BAWQ.js → LowIncomeOrganizationComponent-DA0G8AhH.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-uUgJiZtV.js.map → LowIncomeOrganizationComponent-DA0G8AhH.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-B1QLHEJV.js → MedicalProfessionalOrganizationComponent-8RySy8zK.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-B1QLHEJV.js.map → MedicalProfessionalOrganizationComponent-8RySy8zK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CkhM5nex.js → MedicalProfessionalOrganizationComponent-C1qcSelB.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-CkhM5nex.js.map → MedicalProfessionalOrganizationComponent-C1qcSelB.js.map} +1 -1
- package/chunk/MemberIdComponent-BJC0oeuE.js +3 -3
- package/chunk/MemberIdComponent-F3J2XAp3.js +3 -3
- package/chunk/{MembershipOrganizationComponent-0uqSgnl9.js → MembershipOrganizationComponent-Bh5LYj6P.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-0uqSgnl9.js.map → MembershipOrganizationComponent-Bh5LYj6P.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-n6dsAj9D.js → MembershipOrganizationComponent-DcD5aDap.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-n6dsAj9D.js.map → MembershipOrganizationComponent-DcD5aDap.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-BS7TwIFn.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-IMW1ww2e.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-DwvV4VsT.js → PersonalInfoStepWrapper-BaskUzAh.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-DwvV4VsT.js.map → PersonalInfoStepWrapper-BaskUzAh.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CZDrFaqC.js → PersonalInfoStepWrapper-BlPhTEPX.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-CZDrFaqC.js.map → PersonalInfoStepWrapper-BlPhTEPX.js.map} +1 -1
- package/chunk/PostalCodeComponent-BDFy_9yi.js +3 -3
- package/chunk/PostalCodeComponent-DuEPciUA.js +3 -3
- package/chunk/SSN-DYqbsF85.js +3 -3
- package/chunk/SSN-DvsdFp8R.js +3 -3
- package/chunk/{StateSelectComponent-CN7u7Z5P.js → StateSelectComponent-8iSjI0pU.js} +4 -4
- package/chunk/{StateSelectComponent-CFY00_F5.js.map → StateSelectComponent-8iSjI0pU.js.map} +1 -1
- package/chunk/{StateSelectComponent-CFY00_F5.js → StateSelectComponent-DJZiu3Dc.js} +4 -4
- package/chunk/{StateSelectComponent-CN7u7Z5P.js.map → StateSelectComponent-DJZiu3Dc.js.map} +1 -1
- package/chunk/{StatusComponent-BLbeJdVB.js → StatusComponent-BAX61tmd.js} +4 -4
- package/chunk/{StatusComponent-BLbeJdVB.js.map → StatusComponent-BAX61tmd.js.map} +1 -1
- package/chunk/{StatusComponent-CvMMC2MR.js → StatusComponent-OCM9IXu5.js} +4 -4
- package/chunk/{StatusComponent-CvMMC2MR.js.map → StatusComponent-OCM9IXu5.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js → StepActiveMilitaryPersonalInfoComponent-BCwCEhBl.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Dv9E-wNt.js.map → StepActiveMilitaryPersonalInfoComponent-BCwCEhBl.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Dv9E-wNt.js → StepActiveMilitaryPersonalInfoComponent-CE0WootL.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js.map → StepActiveMilitaryPersonalInfoComponent-CE0WootL.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CD8rmbII.js → StepAgePersonalInfo-CWr7uOVB.js} +11 -11
- package/chunk/{StepAgePersonalInfo-BsTJ2oQP.js.map → StepAgePersonalInfo-CWr7uOVB.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BsTJ2oQP.js → StepAgePersonalInfo-D-Wagwf-.js} +11 -11
- package/chunk/{StepAgePersonalInfo-CD8rmbII.js.map → StepAgePersonalInfo-D-Wagwf-.js.map} +1 -1
- package/chunk/StepCard-Bp4YtbLH.js +3 -3
- package/chunk/StepCard-Bzt1Ked6.js +3 -3
- package/chunk/{StepCollectIdentifier-_CGgV5yn.js → StepCollectIdentifier-CwJ0jHqP.js} +4 -4
- package/chunk/{StepCollectIdentifier-DbqT3QQe.js.map → StepCollectIdentifier-CwJ0jHqP.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DbqT3QQe.js → StepCollectIdentifier-rPRXBe3J.js} +4 -4
- package/chunk/{StepCollectIdentifier-_CGgV5yn.js.map → StepCollectIdentifier-rPRXBe3J.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-C07OyVkL.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-yDElymyn.js → StepCollectMilitaryStatusComponent-gBX1mm1_.js} +4 -4
- package/chunk/{StepCollectPersonalInfo-DBt095uS.js → StepCollectPersonalInfo-BXAicOZ_.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-DBt095uS.js.map → StepCollectPersonalInfo-BXAicOZ_.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-qc9qiwM9.js → StepCollectPersonalInfo-BkAkFjvN.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-qc9qiwM9.js.map → StepCollectPersonalInfo-BkAkFjvN.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-D5eAqv1G.js +3 -3
- package/chunk/StepCompleteAuthentication-Dn2a9n2B.js +3 -3
- package/chunk/{StepConsolation-98Hyjrx9.js → StepConsolation-CGmjaDbJ.js} +4 -4
- package/chunk/{StepConsolation-98Hyjrx9.js.map → StepConsolation-CGmjaDbJ.js.map} +1 -1
- package/chunk/{StepConsolation-XE4XTZd0.js → StepConsolation-DcQPK6ZH.js} +4 -4
- package/chunk/{StepConsolation-XE4XTZd0.js.map → StepConsolation-DcQPK6ZH.js.map} +1 -1
- package/chunk/{StepDocUpload-DCVjwY0r.js → StepDocUpload-BL6KJjPr.js} +4 -4
- package/chunk/{StepDocUpload-DCVjwY0r.js.map → StepDocUpload-BL6KJjPr.js.map} +1 -1
- package/chunk/{StepDocUpload-DIJmY36O.js → StepDocUpload-DJjXUwXB.js} +4 -4
- package/chunk/{StepDocUpload-DIJmY36O.js.map → StepDocUpload-DJjXUwXB.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DpQbQRYk.js → StepDriverLicensePersonalInfoComponent-CZDTfYjt.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-BVLj7Snm.js.map → StepDriverLicensePersonalInfoComponent-CZDTfYjt.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BVLj7Snm.js → StepDriverLicensePersonalInfoComponent-wuanHFTL.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-DpQbQRYk.js.map → StepDriverLicensePersonalInfoComponent-wuanHFTL.js.map} +1 -1
- package/chunk/{StepEmailLoop-DlMwekLO.js → StepEmailLoop-B0UGMWQ9.js} +5 -5
- package/chunk/{StepEmailLoop-DijPspCu.js.map → StepEmailLoop-B0UGMWQ9.js.map} +1 -1
- package/chunk/{StepEmailLoop-DijPspCu.js → StepEmailLoop-D2lx7wUg.js} +5 -5
- package/chunk/{StepEmailLoop-DlMwekLO.js.map → StepEmailLoop-D2lx7wUg.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Io5lDANI.js → StepEmploymentPersonalInfo-D-ZXhMEU.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-CK1WQrFc.js.map → StepEmploymentPersonalInfo-D-ZXhMEU.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CK1WQrFc.js → StepEmploymentPersonalInfo-D62dH_G9.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-Io5lDANI.js.map → StepEmploymentPersonalInfo-D62dH_G9.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BNBFV9nZ.js → StepFirstResponderPersonalInfo-DrD-yBL9.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-BNBFV9nZ.js.map → StepFirstResponderPersonalInfo-DrD-yBL9.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-y8pLS7Ot.js → StepFirstResponderPersonalInfo-tklLuC6-.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-y8pLS7Ot.js.map → StepFirstResponderPersonalInfo-tklLuC6-.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DN4fDgmT.js → StepGeneralIdentityPersonalInfoComponent-B9DXEthH.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BOVFxi7E.js.map → StepGeneralIdentityPersonalInfoComponent-B9DXEthH.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-BOVFxi7E.js → StepGeneralIdentityPersonalInfoComponent-BJGpt7XI.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DN4fDgmT.js.map → StepGeneralIdentityPersonalInfoComponent-BJGpt7XI.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B7GiImzs.js → StepHybridIdentityPersonalInfoComponent-B3q_01Zu.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-B7GiImzs.js.map → StepHybridIdentityPersonalInfoComponent-B3q_01Zu.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CpLwzKR3.js → StepHybridIdentityPersonalInfoComponent-B7PUxZHD.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CpLwzKR3.js.map → StepHybridIdentityPersonalInfoComponent-B7PUxZHD.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BvXMO0o-.js → StepIDCheckLoop-B_VbW3CS.js} +4 -4
- package/chunk/{StepIDCheckLoop-BvXMO0o-.js.map → StepIDCheckLoop-B_VbW3CS.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-mjicZN47.js → StepIDCheckLoop-LKpTbWHQ.js} +4 -4
- package/chunk/{StepIDCheckLoop-mjicZN47.js.map → StepIDCheckLoop-LKpTbWHQ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DruIo3QT.js → StepIDCheckLoopOnfido-D221J4O4.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-DruIo3QT.js.map → StepIDCheckLoopOnfido-D221J4O4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BOV4prFg.js → StepIDCheckLoopOnfido-y1cSlTV8.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-BOV4prFg.js.map → StepIDCheckLoopOnfido-y1cSlTV8.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DyBl3yuL.js → StepIDCheckLoopRegula-ByZ7oXlg.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-DyBl3yuL.js.map → StepIDCheckLoopRegula-ByZ7oXlg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-_AQpP8Wd.js → StepIDCheckLoopRegula-Dh-3Pg0X.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-_AQpP8Wd.js.map → StepIDCheckLoopRegula-Dh-3Pg0X.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DyWjru-q.js → StepInactiveMilitaryPersonalInfoComponent-CcZpw1c9.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DyWjru-q.js.map → StepInactiveMilitaryPersonalInfoComponent-CcZpw1c9.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DCG2AMPg.js → StepInactiveMilitaryPersonalInfoComponent-DrAb2_Jp.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-DCG2AMPg.js.map → StepInactiveMilitaryPersonalInfoComponent-DrAb2_Jp.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CeTlSVd_.js → StepLicensedProfessionalPersonalInfo-18e4A7vC.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-CeTlSVd_.js.map → StepLicensedProfessionalPersonalInfo-18e4A7vC.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-l2Kz9fjT.js → StepLicensedProfessionalPersonalInfo-Dp-X39A9.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-l2Kz9fjT.js.map → StepLicensedProfessionalPersonalInfo-Dp-X39A9.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-LJsDGPUb.js → StepLowIncomePersonalInfo-CfdjUBav.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-CprfWbyi.js.map → StepLowIncomePersonalInfo-CfdjUBav.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-CprfWbyi.js → StepLowIncomePersonalInfo-g3KSzV4M.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-LJsDGPUb.js.map → StepLowIncomePersonalInfo-g3KSzV4M.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-wIOQmTNI.js → StepMedicalProfessionalPersonalInfo-BVkbqZkn.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-CCmT6j7D.js.map → StepMedicalProfessionalPersonalInfo-BVkbqZkn.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CCmT6j7D.js → StepMedicalProfessionalPersonalInfo-BsjEiIy9.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-wIOQmTNI.js.map → StepMedicalProfessionalPersonalInfo-BsjEiIy9.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Bl21iEdB.js → StepMemberPersonalInfo-Br0WGfdm.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-BBo85iSh.js.map → StepMemberPersonalInfo-Br0WGfdm.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BBo85iSh.js → StepMemberPersonalInfo-C3PvVUzL.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-Bl21iEdB.js.map → StepMemberPersonalInfo-C3PvVUzL.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-WIqMMlAQ.js → StepMoverPersonalInfo-DPHpiQw0.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-CPfQCBOL.js.map → StepMoverPersonalInfo-DPHpiQw0.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CPfQCBOL.js → StepMoverPersonalInfo-Z5WEbN1N.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-WIqMMlAQ.js.map → StepMoverPersonalInfo-Z5WEbN1N.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Bx00Gy5b.js → StepOverrideComponent-iktr98Jj.js} +4 -4
- package/chunk/{StepOverrideComponent-Bx00Gy5b.js.map → StepOverrideComponent-iktr98Jj.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DkwzqsMM.js → StepOverrideComponent-xMqoy8Pk.js} +4 -4
- package/chunk/{StepOverrideComponent-DkwzqsMM.js.map → StepOverrideComponent-xMqoy8Pk.js.map} +1 -1
- package/chunk/{StepSMSLoop-WSBQ_nIW.js → StepSMSLoop-BF-IBw3j.js} +4 -4
- package/chunk/{StepSMSLoop-DF072Jty.js.map → StepSMSLoop-BF-IBw3j.js.map} +1 -1
- package/chunk/{StepSMSLoop-DF072Jty.js → StepSMSLoop-DBFxCiPV.js} +4 -4
- package/chunk/{StepSMSLoop-WSBQ_nIW.js.map → StepSMSLoop-DBFxCiPV.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-DABlcVKf.js → StepSocialSecurityNumber-BbXn831d.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-B46D7NFt.js.map → StepSocialSecurityNumber-BbXn831d.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-B46D7NFt.js → StepSocialSecurityNumber-DhoGvC-R.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-DABlcVKf.js.map → StepSocialSecurityNumber-DhoGvC-R.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CP_4yhlJ.js → StepStudentPersonalInfo-DMmIa3dy.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-CP_4yhlJ.js.map → StepStudentPersonalInfo-DMmIa3dy.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CTZIwyV3.js → StepStudentPersonalInfo-iIxNdYOy.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-CTZIwyV3.js.map → StepStudentPersonalInfo-iIxNdYOy.js.map} +1 -1
- package/chunk/{StepSuccess-C6Uc5k_Q.js → StepSuccess-BCBoTtRY.js} +4 -4
- package/chunk/{StepSuccess-C6Uc5k_Q.js.map → StepSuccess-BCBoTtRY.js.map} +1 -1
- package/chunk/{StepSuccess-CBdsz8MT.js → StepSuccess-BCharFld.js} +4 -4
- package/chunk/{StepSuccess-CBdsz8MT.js.map → StepSuccess-BCharFld.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BCHnJj4O.js → StepTeacherPersonalInfo-C9xhKbxy.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-60j8F4p1.js.map → StepTeacherPersonalInfo-C9xhKbxy.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-60j8F4p1.js → StepTeacherPersonalInfo-MkWtBNk7.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-BCHnJj4O.js.map → StepTeacherPersonalInfo-MkWtBNk7.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-en6KtVzc.js → TeacherSchoolComponent-BtaF9xlm.js} +4 -4
- package/chunk/{TeacherSchoolComponent-en6KtVzc.js.map → TeacherSchoolComponent-BtaF9xlm.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BBl8EFEF.js → TeacherSchoolComponent-D-rE22OS.js} +4 -4
- package/chunk/{TeacherSchoolComponent-BBl8EFEF.js.map → TeacherSchoolComponent-D-rE22OS.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BGh0Kqkp.js +3 -3
- package/chunk/TestingRouteOverrides-CWSI3tlL.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-ClWX625R.js → VerificationApiClient-9BxQqOtO.js} +4 -4
- package/chunk/{VerificationApiClient-ClWX625R.js.map → VerificationApiClient-9BxQqOtO.js.map} +1 -1
- package/chunk/{VerificationApiClient-CAFyrI7O.js → VerificationApiClient-CcVCeEFJ.js} +4 -4
- package/chunk/{VerificationApiClient-CAFyrI7O.js.map → VerificationApiClient-CcVCeEFJ.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CGXDqW3c.js → VerificationApiUtils-DkLx7bcz.js} +5 -5
- package/chunk/{VerificationApiUtils-CGXDqW3c.js.map → VerificationApiUtils-DkLx7bcz.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Cqrb105H.js → VerificationApiUtils-eJb2yssz.js} +5 -5
- package/chunk/{VerificationApiUtils-Cqrb105H.js.map → VerificationApiUtils-eJb2yssz.js.map} +1 -1
- package/chunk/ar-oaTqX-Bi.js +3 -3
- package/chunk/bg-FRD3ihTE.js +3 -3
- package/chunk/bn-IN-Dy8OAkhr.js +3 -3
- package/chunk/countryUtils-1JE4C2YN.js +3 -3
- package/chunk/countryUtils-DDvwDj32.js +3 -3
- package/chunk/cs-enxrquzj.js +3 -3
- package/chunk/da-xnww0OFf.js +3 -3
- package/chunk/de-Bpbr5cGf.js +3 -3
- package/chunk/{downshift.esm-CD2wa3dL.js → downshift.esm-Bib2AmUR.js} +4 -4
- package/chunk/{downshift.esm-DuUxTaVX.js.map → downshift.esm-Bib2AmUR.js.map} +1 -1
- package/chunk/{downshift.esm-DuUxTaVX.js → downshift.esm-CPfu-dz4.js} +4 -4
- package/chunk/{downshift.esm-CD2wa3dL.js.map → downshift.esm-CPfu-dz4.js.map} +1 -1
- package/chunk/el-CGE77D1a.js +3 -3
- package/chunk/empties-CadVejwz.js +3 -3
- package/chunk/empties-DPqJljgl.js +3 -3
- package/chunk/en-GB-DtYEpdGz.js +3 -3
- package/chunk/es-B7Lqo7bY.js +3 -3
- package/chunk/es-ES-DMWW2FXA.js +3 -3
- package/chunk/et-q5WIKwz8.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-BsqNfa1o.js +3 -3
- package/chunk/fi-CcuqPTQ2.js +3 -3
- package/chunk/fr-8Mug3b2y.js +3 -3
- package/chunk/fr-CA-DNMuEFMS.js +3 -3
- package/chunk/ga-BCyuagqq.js +3 -3
- package/chunk/hi-IN-s-W34sti.js +3 -3
- package/chunk/hr-B5aHCY4_.js +3 -3
- package/chunk/hu-C5qCDre-.js +3 -3
- package/chunk/id-B1goA5xk.js +3 -3
- package/chunk/intl-RejEV_0u.js +3 -3
- package/chunk/is-BW-t-Zif.js +3 -3
- package/chunk/it-DvCMm2we.js +3 -3
- package/chunk/iw-69T_ZKoI.js +3 -3
- package/chunk/ja-D-tWJV9S.js +3 -3
- package/chunk/jsx-runtime-BzjRi5cY.js +3 -3
- package/chunk/jsx-runtime-C8rHQFpC.js +3 -3
- package/chunk/kk-Cen4nsDW.js +3 -3
- package/chunk/ko-CKXa3e4S.js +3 -3
- package/chunk/lo-B4V3NOya.js +3 -3
- package/chunk/lt-CfHYjV7E.js +3 -3
- package/chunk/lv-bF1azTKb.js +3 -3
- package/chunk/militaryStepHelpers-DIXJbH-e.js +3 -3
- package/chunk/militaryStepHelpers-DjUPkHuN.js +3 -3
- package/chunk/mocks-C4r3kSBm.js +3 -3
- package/chunk/mocks-ZRlDr2zp.js +3 -3
- package/chunk/ms-DIzxVhax.js +3 -3
- package/chunk/nl-BE-BP03y6BO.js +3 -3
- package/chunk/nl-DfctTqxe.js +3 -3
- package/chunk/no-RQH9Zv2G.js +3 -3
- package/chunk/options-5u5_TcMp.js +3 -3
- package/chunk/pl-DbogtaWs.js +3 -3
- package/chunk/programThemeGetters-BXh5zb0K.js +3 -3
- package/chunk/programThemeGetters-D-drBRV1.js +3 -3
- package/chunk/pt-B2V6YtyG.js +3 -3
- package/chunk/pt-BR-CVJoyXno.js +3 -3
- package/chunk/refs-BxfzLCJo.js +3 -3
- package/chunk/refs-Dbu3I4qq.js +3 -3
- package/chunk/ro-FX-D-E91.js +3 -3
- package/chunk/ru-DMxlV75G.js +3 -3
- package/chunk/sk-CligiCej.js +3 -3
- package/chunk/sl-DQanH4Ky.js +3 -3
- package/chunk/sr-BZNIdT32.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-BfXPNNfM.js +3 -3
- package/chunk/sw-Cw__J23Z.js +3 -3
- package/chunk/ta-Chf_KWJv.js +3 -3
- package/chunk/th-BC7lSeIN.js +3 -3
- package/chunk/tl-BIXqJsLl.js +3 -3
- package/chunk/tr-C_V4PV3Q.js +3 -3
- package/chunk/uk-ebwNkDb6.js +3 -3
- package/chunk/ur-BbRoatfN.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-7AsHsqB8.js → useCollectFieldsEndpoint-Bw-i2tLo.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-Ce2HnQ3I.js.map → useCollectFieldsEndpoint-Bw-i2tLo.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-Ce2HnQ3I.js → useCollectFieldsEndpoint-z_N_SShi.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-7AsHsqB8.js.map → useCollectFieldsEndpoint-z_N_SShi.js.map} +1 -1
- package/chunk/useMetrics-CLtxtSUO.js +3 -3
- package/chunk/useMetrics-CnnipBHm.js +3 -3
- package/chunk/validators-BTSkTV2f.js +3 -3
- package/chunk/validators-Bs1tWRSl.js +3 -3
- package/chunk/vi-B3RXegfW.js +3 -3
- package/chunk/zh-CD_hFClw.js +3 -3
- package/chunk/zh-HK-CGOvOtYE.js +3 -3
- package/chunk/zu-BMx7nUPZ.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +39 -42
- package/sheerid.js.map +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-D48r1TIH.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-XDLAbyN0.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,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A,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
1
|
+
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-CE0WootL.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GAED,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA;GACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAA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qB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { Bt as e, Ft as t, Kt as n, s as r } from "./intl-RejEV_0u.js";
|
|
13
13
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
-
import { D as c } from "./FormFooterComponent-
|
|
14
|
+
import { D as c } from "./FormFooterComponent-DGChoxIB.js";
|
|
15
15
|
import { $ as l, A as u, B as d, G as f, J as p, R as m, n as h } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as g } from "./useCollectFieldsEndpoint-
|
|
17
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
16
|
+
import { t as g } from "./useCollectFieldsEndpoint-Bw-i2tLo.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-BsP6z6fV.js";
|
|
18
18
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
19
|
-
import { t as T } from "./BirthDateComponent-
|
|
19
|
+
import { t as T } from "./BirthDateComponent-ts-uQcFv.js";
|
|
20
20
|
import { t as E } from "./PostalCodeComponent-DuEPciUA.js";
|
|
21
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-C6jxabRh.js";
|
|
22
22
|
import { t as O } from "./City-B6J8thJW.js";
|
|
23
23
|
import { t as k } from "./AddressComponent-0vaEURVZ.js";
|
|
24
|
-
import { t as A } from "./ExtraMessage-
|
|
25
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
26
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
24
|
+
import { t as A } from "./ExtraMessage-DuHSW-UZ.js";
|
|
25
|
+
import { t as j } from "./ChangeLocaleComponent-CISzBLcA.js";
|
|
26
|
+
import { t as M } from "./PersonalInfoStepWrapper-BlPhTEPX.js";
|
|
27
27
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
28
28
|
var N = /* @__PURE__ */ n(a(), 1), P = s(), F = i(({ verificationService: n, intl: i }) => {
|
|
29
29
|
let a = n.viewModel, { fieldValidationErrors: s } = n, F = n.verificationResponse, I = c(F), L = e(() => a.countryChoice.value, m(u(n.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || n.programTheme.isSmsNotifierConfigured || n.programTheme.smsLoopEnabled, B = L !== "US" || n.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-BsTJ2oQP.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAA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OVB.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC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ADA,EAAmB,eAAe,CAAQ,GAC1C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
3
|
+
* VERSION: 2.264.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785518521509
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:01 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
8
|
import { Kt as e, Lt as t, lt as n, n as r } from "./options-5u5_TcMp.js";
|
|
9
9
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-BzjRi5cY.js";
|
|
10
|
-
import { C as c } from "./FormFooterComponent-
|
|
10
|
+
import { C as c } from "./FormFooterComponent-Cw_RFaJx.js";
|
|
11
11
|
import { K as l, V as u, Y as d, et as f, j as p, r as m, z as h } from "../sheerid.js";
|
|
12
|
-
import { t as g } from "./useCollectFieldsEndpoint-
|
|
13
|
-
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-
|
|
12
|
+
import { t as g } from "./useCollectFieldsEndpoint-z_N_SShi.js";
|
|
13
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-Bv3pBtOL.js";
|
|
14
14
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-IMW1ww2e.js";
|
|
15
|
-
import { t as T } from "./BirthDateComponent-
|
|
15
|
+
import { t as T } from "./BirthDateComponent-BD9ZmOZi.js";
|
|
16
16
|
import { t as E } from "./PostalCodeComponent-BDFy_9yi.js";
|
|
17
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-D4AKnv7H.js";
|
|
18
18
|
import { t as O } from "./City-CLyjXYQj.js";
|
|
19
19
|
import { t as k } from "./AddressComponent-D9R5iYEq.js";
|
|
20
|
-
import { t as A } from "./ExtraMessage-
|
|
21
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
20
|
+
import { t as A } from "./ExtraMessage-C9Tya8_-.js";
|
|
21
|
+
import { t as j } from "./ChangeLocaleComponent-DxqwPe0W.js";
|
|
22
|
+
import { t as M } from "./PersonalInfoStepWrapper-BaskUzAh.js";
|
|
23
23
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
24
24
|
var N = /* @__PURE__ */ e(a(), 1), P = s(), F = i(({ verificationService: e, intl: i }) => {
|
|
25
25
|
let a = e.viewModel, { fieldValidationErrors: s } = e, F = e.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, h(p(e.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, B = L !== "US" || e.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-CD8rmbII.js","names":[],"sources":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,C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":["../../src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx"],"sourcesContent":["/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport { useCollectFieldsEndpoint } from \"@/lib/ServerApi/useCollectFieldsEndpoint\";\n\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type AgePersonalInfoViewModel,\n type AgePersonalInfoResponse,\n type FormSelectChoice,\n type Country,\n type FieldDescription,\n type CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n getAvailableCountryChoices,\n getDefaultCountryChoice,\n produceDraftViewModel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { PostalCodeComponent as PostalCode } from \"../FormFields/PostalCode/PostalCodeComponent\";\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { CityComponent } from \"../FormFields/City/City\";\nimport { AddressComponent } from \"../FormFields/Address/AddressComponent\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepAgePersonalInfoComponentProps {\n intl: InjectedIntl;\n verificationService: VerificationService;\n}\n\nconst StepAgePersonalInfo = ({ verificationService, intl }: StepAgePersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as AgePersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as AgePersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const countryChoices: FormSelectChoice<Country, string>[] = getAvailableCountryChoices(\n verificationService.programTheme,\n intl,\n );\n const defaultCountryChoice: FormSelectChoice<Country, string> =\n getDefaultCountryChoice(countryChoices);\n const safeCountryValue = getSafe(() => viewModel.countryChoice.value, defaultCountryChoice.value);\n const defaultRequiredFields: FieldDescription[] =\n safeCountryValue === \"US\" ? [{ key: \"postalCode\" }] : [];\n\n // PhoneNumber is required for all non-US age programs and if smsLoop is enabled.\n const showPhoneNumber =\n safeCountryValue !== \"US\" ||\n verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled;\n const phoneNumberRequired =\n safeCountryValue !== \"US\" || verificationService.programTheme.smsLoopEnabled;\n\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n if (\n !fieldValidationErrors.phoneNumber &&\n verificationResponse.errorIds &&\n verificationResponse.errorIds.includes(\"invalidPhoneNumber\")\n ) {\n verificationService.updateFieldValidationErrors({\n ...fieldValidationErrors,\n phoneNumber: \"invalidPhoneNumber\",\n });\n }\n\n const updateAgeViewModel = (key: keyof AgePersonalInfoViewModel, value: any) => {\n const nextState: AgePersonalInfoViewModel = produceDraftViewModel(viewModel, key, value);\n verificationService.updateViewModel(nextState);\n };\n\n const { isFieldRequired } = useCollectFieldsEndpoint({\n verificationId: verificationResponse.verificationId,\n currentStep: verificationResponse.currentStep,\n viewModel,\n defaultRequiredFields,\n });\n\n React.useEffect(() => {\n // When country changes re-check the phone number validation\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", viewModel.phoneNumber, verificationService);\n }, [viewModel.country]);\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n >\n <PersonalInfoHeader verificationService={verificationService} classNameIdentifier=\"age\" />\n\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateAgeViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateAgeViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n {isFieldRequired(\"city\") && (\n <CityComponent\n value={viewModel.city}\n isRequired\n isErrored={!!fieldValidationErrors.city}\n errorId={fieldValidationErrors.city}\n disabled={getFieldConfigByFieldId(\"city\")?.disabled}\n onChange={(value) => {\n updateAgeViewModel(\"city\", value);\n updateFieldValidationErrorsByFieldId(\"city\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"address1\") && (\n <AddressComponent\n value={viewModel.address1}\n isRequired\n isErrored={!!fieldValidationErrors.address1}\n errorId={fieldValidationErrors.address1}\n onChange={(value) => {\n updateAgeViewModel(\"address1\", value);\n updateFieldValidationErrorsByFieldId(\"address1\", value, verificationService);\n }}\n />\n )}\n {isFieldRequired(\"postalCode\") && (\n <PostalCode\n isErrored={!!fieldValidationErrors.postalCode}\n onChange={(newValue) => {\n updateAgeViewModel(\"postalCode\", newValue);\n updateFieldValidationErrorsByFieldId(\"postalCode\", newValue, verificationService);\n }}\n value={viewModel.postalCode}\n disabled={getFieldConfigByFieldId(\"postalCode\")?.disabled}\n />\n )}\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={<FormattedHTMLMessage id=\"emailExplanation\" defaultMessage=\" \" />}\n onChange={(newValue) => {\n updateAgeViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {showPhoneNumber ? (\n <PhoneNumber\n isRequired={phoneNumberRequired}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateAgeViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateAgeViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\"marketConsentValue\", newValue, verificationService);\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectAgePersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepAgePersonalInfoComponent = injectIntl(StepAgePersonalInfo);\n"],"mappings":";;;;;;;;;;;;;;;;4CA6Pa,IAA+B,GAxMf,EAAE,wBAAqB,cAA8C;CAChG,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAO/D,IAAmB,QAAc,EAAU,cAAc,OAD7D,EAL0D,EAC1D,EAAoB,cACpB,CAGwB,CAC4C,EAAqB,KAAK,GAC1F,IACJ,MAAqB,OAAO,CAAC,EAAE,KAAK,aAAa,CAAC,IAAI,CAAC,GAGnD,IACJ,MAAqB,QACrB,EAAoB,aAAa,2BACjC,EAAoB,aAAa,gBAC7B,IACJ,MAAqB,QAAQ,EAAoB,aAAa,gBAE1D,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW;CAE3B,AACE,CAAC,EAAsB,eACvB,EAAqB,YACrB,EAAqB,SAAS,SAAS,oBAAoB,KAE3D,EAAoB,4BAA4B;EAC9C,GAAG;EACH,aAAa;CACf,CAAC;CAGH,IAAM,KAAsB,GAAqC,MAAe;EAC9E,IAAM,IAAsC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,CAAQ,GAC1C,EAAqC,eAAe,GAAU,CAAmB;IACnF;IACA,qBAAqB,EAAU,iBAAiB,EAAU,cAAc;IACxE,UAAU,EAAwB,aAAa,GAAG;GACnD,CAAA,IACC;GAEH,EAAQ,iBAAiB,KAAK,MAC7B,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyB;IAA6B;GAAsB,CAAA,CAC7E;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAAmB,YAAY;MAC7B,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EAAqC,sBAAsB,GAAU,CAAmB;IAC1F;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { t as e } from "./jsx-runtime-C8rHQFpC.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
3
|
+
* VERSION: 2.264.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785518521509
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:01 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
8
|
import { t as e } from "./jsx-runtime-BzjRi5cY.js";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { Ft as e, p as t } from "./intl-RejEV_0u.js";
|
|
13
13
|
import { n, t as r } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
-
import { D as i, t as a } from "./FormFooterComponent-
|
|
14
|
+
import { D as i, t as a } from "./FormFooterComponent-DGChoxIB.js";
|
|
15
15
|
import { $ as o, G as s, n as c } from "../_mysheerid-preview.js";
|
|
16
16
|
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
17
17
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-DbqT3QQe.js.map → StepCollectIdentifier-CwJ0jHqP.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-CwJ0jHqP.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
3
|
+
* VERSION: 2.264.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785518521509
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:01 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
7
|
*/
|
|
8
8
|
import { Lt as e, c as t } from "./options-5u5_TcMp.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-BzjRi5cY.js";
|
|
10
|
-
import { C as i, t as a } from "./FormFooterComponent-
|
|
10
|
+
import { C as i, t as a } from "./FormFooterComponent-Cw_RFaJx.js";
|
|
11
11
|
import { K as o, et as s, r as c } from "../sheerid.js";
|
|
12
12
|
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-IMW1ww2e.js";
|
|
13
13
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-_CGgV5yn.js.map → StepCollectIdentifier-rPRXBe3J.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-rPRXBe3J.js","names":[],"sources":["../../src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx"],"sourcesContent":["import type React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport {\n type VerificationService,\n type CollectIdentifierViewModel,\n type PersonalInfoResponse,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFooterComponent as FormFooter } from \"../FormFooter/FormFooterComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { VerificationStepsEnum } from \"../../lib/types/runtimeTypes\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\n\ninterface StepCollectIdentifierProps {\n verificationService: VerificationService;\n}\n\nconst StepCollectIdentifier = ({ verificationService }: StepCollectIdentifierProps) => {\n const viewModel = verificationService.viewModel as CollectIdentifierViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse = verificationService.verificationResponse as PersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n\n const updateCollectIdentifierViewmodel = (key: keyof CollectIdentifierViewModel, value: any) => {\n const nextState: CollectIdentifierViewModel = produce(\n viewModel,\n (draft: CollectIdentifierViewModel) => {\n (draft[key] as any) = value;\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n return (\n <div\n id=\"sid-step-collect-transaction-id\"\n className=\"sid-step-collect-transaction-id-container sid-l-container\"\n >\n <div role=\"main\">\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"step-collect-transaction-id\"\n />\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"step.collectIdentifier.inputExplanation\"\n defaultMessage=\"Needed to send authentication code\"\n />\n }\n onChange={(newValue) => {\n updateCollectIdentifierViewmodel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => handleEmailOnKeyDown(event)}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectIdentifier}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify and continue\"\n />\n }\n />\n </div>\n <FormFooter verificationService={verificationService} />\n </div>\n );\n};\n\nexport const StepCollectIdentifierComponent = StepCollectIdentifier;\n"],"mappings":";;;;;;aAqFa,KA7DkB,EAAE,6BAAsD;CACrF,IAAM,IAAY,EAAoB,WAChC,EAAE,6BAA0B,GAC5B,IAAuB,EAAoB,sBAC3C,IAAqB,EAAsB,CAAoB,GAE/D,KAAoC,GAAuC,MAAe;EAC9F,IAAM,IAAwC,EAC5C,IACC,MAAsC;GACrC,EAAO,KAAe;EACxB,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAEA,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EACE,IAAG;EACH,WAAU;YAFZ,CAIE,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,MAAK;aAAV;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACuB;KACrB,qBAAoB;IACrB,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,OAAO,EAAU;KACjB,WAAW,CAAC,CAAC,EAAsB;KACnC,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;KAEH,WAAW,MAAa;MAEtB,AADA,EAAiC,SAAS,CAAQ,GAClD,EAAqC,SAAS,GAAU,CAAmB;KAC7E;KACA,YAAY,MAAiD,EAAqB,CAAK;IACxF,CAAA;IAED,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM,EAAsB;KACP;KACV;KACS;KACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;MACE,IAAG;MACH,gBAAe;KAChB,CAAA;IAEJ,CAAA;GACE;MACL,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAiC,uBAAsB,CAAA,CACpD;;AAET"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* VERSION: 2.264.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785518521509
|
|
5
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:01 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
7
|
+
*/
|
|
8
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-BCwCEhBl.js";
|
|
9
|
+
export { e as default };
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
|
-
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-
|
|
12
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-CE0WootL.js";
|
|
13
13
|
export { e as default };
|
|
@@ -4,37 +4,37 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Fri Jul 31 2026
|
|
7
|
+
* VERSION: 2.264.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785518525927
|
|
9
|
+
* BUILD_DATE: Fri Jul 31 2026 17:22:05 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: d0963a317ee7ec7a22ae43d6645248a7bac89b11
|
|
11
11
|
*/
|
|
12
12
|
import { Bt as e, Ft as t, Kt as n, Ot as r, Vt as ee, p as te, s as i, vt as a } from "./intl-RejEV_0u.js";
|
|
13
13
|
import { a as o, c as s, n as c, t as l } from "./jsx-runtime-C8rHQFpC.js";
|
|
14
|
-
import { D as ne, t as re } from "./FormFooterComponent-
|
|
15
|
-
import { n as ie } from "./VerificationApiClient-
|
|
14
|
+
import { D as ne, t as re } from "./FormFooterComponent-DGChoxIB.js";
|
|
15
|
+
import { n as ie } from "./VerificationApiClient-CcVCeEFJ.js";
|
|
16
16
|
import { s as ae } from "./programThemeGetters-D-drBRV1.js";
|
|
17
17
|
import { $ as u, B as d, G as oe, I as se, K as ce, L as le, W as ue, Y as de, Z as fe, et as f, n as p } from "../_mysheerid-preview.js";
|
|
18
|
-
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-
|
|
18
|
+
import { a as m, i as h, n as g, o as _, s as v, t as y } from "./CaptchaComponent-BsP6z6fV.js";
|
|
19
19
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-BS7TwIFn.js";
|
|
20
|
-
import { t as S } from "./BirthDateComponent-
|
|
20
|
+
import { t as S } from "./BirthDateComponent-ts-uQcFv.js";
|
|
21
21
|
import { t as C } from "./PostalCodeComponent-DuEPciUA.js";
|
|
22
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
22
|
+
import { t as w } from "./CountryComponentWrapper-C6jxabRh.js";
|
|
23
23
|
import { t as T } from "./City-B6J8thJW.js";
|
|
24
24
|
import { t as E } from "./AddressComponent-0vaEURVZ.js";
|
|
25
|
-
import { t as D } from "./ExtraMessage-
|
|
26
|
-
import { t as O } from "./CollegeNameComponent-
|
|
27
|
-
import { t as k } from "./StateSelectComponent-
|
|
28
|
-
import { n as A, r as j, t as M } from "./DischargeDateComponent-
|
|
25
|
+
import { t as D } from "./ExtraMessage-DuHSW-UZ.js";
|
|
26
|
+
import { t as O } from "./CollegeNameComponent-CQ8GCcAQ.js";
|
|
27
|
+
import { t as k } from "./StateSelectComponent-DJZiu3Dc.js";
|
|
28
|
+
import { n as A, r as j, t as M } from "./DischargeDateComponent-DD8bF1FM.js";
|
|
29
29
|
import { t as N } from "./DriverLicenseNumberComponent-5Zli2AqS.js";
|
|
30
|
-
import { n as P, t as F } from "./LowIncomeOrganizationComponent-
|
|
31
|
-
import { t as pe } from "./StatusComponent-
|
|
32
|
-
import { t as I } from "./FirstResponderOrganizationComponent-
|
|
33
|
-
import { t as L } from "./LicensedProfessionalOrganizationComponent-
|
|
34
|
-
import { t as R } from "./MedicalProfessionalOrganizationComponent-
|
|
30
|
+
import { n as P, t as F } from "./LowIncomeOrganizationComponent-CmH7OfBz.js";
|
|
31
|
+
import { t as pe } from "./StatusComponent-OCM9IXu5.js";
|
|
32
|
+
import { t as I } from "./FirstResponderOrganizationComponent-DP2GOIw6.js";
|
|
33
|
+
import { t as L } from "./LicensedProfessionalOrganizationComponent-CHaB-ihc.js";
|
|
34
|
+
import { t as R } from "./MedicalProfessionalOrganizationComponent-C1qcSelB.js";
|
|
35
35
|
import { t as z } from "./MemberIdComponent-F3J2XAp3.js";
|
|
36
|
-
import { t as B } from "./MembershipOrganizationComponent-
|
|
37
|
-
import { t as me } from "./TeacherSchoolComponent-
|
|
36
|
+
import { t as B } from "./MembershipOrganizationComponent-Bh5LYj6P.js";
|
|
37
|
+
import { t as me } from "./TeacherSchoolComponent-BtaF9xlm.js";
|
|
38
38
|
import { t as he } from "./SSN-DYqbsF85.js";
|
|
39
39
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
40
40
|
var V = /* @__PURE__ */ n(s(), 1), H = l(), U = o(({ intl: n, verificationService: o }) => {
|