@sheerid/jslib 2.257.0 → 2.259.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +1039 -1039
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-DMwOmjiG.js +4 -4
- package/chunk/AddressComponent-DluNaOpg.js +4 -4
- package/chunk/AnnouncingHeader-BZreAj2L.js +4 -4
- package/chunk/AnnouncingHeader-DjgtqEeX.js +4 -4
- package/chunk/{ApiUrls-YF6TyaSs.js → ApiUrls-CMxzfcln.js} +7 -7
- package/chunk/ApiUrls-CMxzfcln.js.map +1 -0
- package/chunk/{ApiUrls-kNSykNOJ.js → ApiUrls-wmwWKS2C.js} +7 -7
- package/chunk/ApiUrls-wmwWKS2C.js.map +1 -0
- package/chunk/{BirthDateComponent-DONZ5fzS.js → BirthDateComponent-CRcyEtHM.js} +5 -5
- package/chunk/{BirthDateComponent-Cbir66WP.js.map → BirthDateComponent-CRcyEtHM.js.map} +1 -1
- package/chunk/{BirthDateComponent-Cbir66WP.js → BirthDateComponent-llCfw7_W.js} +5 -5
- package/chunk/{BirthDateComponent-DONZ5fzS.js.map → BirthDateComponent-llCfw7_W.js.map} +1 -1
- package/chunk/{CaptchaComponent-CWAAvH7w.js → CaptchaComponent-BFxgmyuB.js} +6 -6
- package/chunk/{CaptchaComponent-CWAAvH7w.js.map → CaptchaComponent-BFxgmyuB.js.map} +1 -1
- package/chunk/{CaptchaComponent-CjxsuQNp.js → CaptchaComponent-PWuS9jOd.js} +6 -6
- package/chunk/{CaptchaComponent-CjxsuQNp.js.map → CaptchaComponent-PWuS9jOd.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-_DkBI-O7.js → ChangeLocaleComponent-Bx6q68EQ.js} +5 -5
- package/chunk/{ChangeLocaleComponent-B49jCxWi.js.map → ChangeLocaleComponent-Bx6q68EQ.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-B49jCxWi.js → ChangeLocaleComponent-CWaoihG4.js} +5 -5
- package/chunk/{ChangeLocaleComponent-_DkBI-O7.js.map → ChangeLocaleComponent-CWaoihG4.js.map} +1 -1
- package/chunk/City-BP95fpVf.js +4 -4
- package/chunk/City-CmO85Z9x.js +4 -4
- package/chunk/{CollegeNameComponent-DCP1jDNx.js → CollegeNameComponent-2PXS2ePf.js} +5 -5
- package/chunk/{CollegeNameComponent-DCP1jDNx.js.map → CollegeNameComponent-2PXS2ePf.js.map} +1 -1
- package/chunk/{CollegeNameComponent-Dw6x6u9H.js → CollegeNameComponent-L7k680Sn.js} +5 -5
- package/chunk/{CollegeNameComponent-Dw6x6u9H.js.map → CollegeNameComponent-L7k680Sn.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-1BeB_oX_.js +4 -4
- package/chunk/CopyToClipboardComponent-6MY3v7_-.js +4 -4
- package/chunk/{CountryComponentWrapper-D2lHioPo.js → CountryComponentWrapper-CAVCVXi7.js} +5 -5
- package/chunk/{CountryComponentWrapper-Ci-eM3LZ.js.map → CountryComponentWrapper-CAVCVXi7.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Ci-eM3LZ.js → CountryComponentWrapper-DSy5reL2.js} +5 -5
- package/chunk/{CountryComponentWrapper-D2lHioPo.js.map → CountryComponentWrapper-DSy5reL2.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BEZPJ6VA.js → DischargeDateComponent-1m_NMvKq.js} +7 -7
- package/chunk/{DischargeDateComponent-BEZPJ6VA.js.map → DischargeDateComponent-1m_NMvKq.js.map} +1 -1
- package/chunk/{DischargeDateComponent-BqBhrUXb.js → DischargeDateComponent-BR2dWL3V.js} +7 -7
- package/chunk/{DischargeDateComponent-BqBhrUXb.js.map → DischargeDateComponent-BR2dWL3V.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-CQeKZs0G.js +4 -4
- package/chunk/DriverLicenseNumberComponent-DgXMM-Pt.js +4 -4
- package/chunk/{EmailLoopPending-C7R3cvjD.js → EmailLoopPending-CYcjVnBb.js} +5 -5
- package/chunk/{EmailLoopPending-Dl0j9jPU.js.map → EmailLoopPending-CYcjVnBb.js.map} +1 -1
- package/chunk/{EmailLoopPending-Dl0j9jPU.js → EmailLoopPending-UoSRB9_p.js} +5 -5
- package/chunk/{EmailLoopPending-C7R3cvjD.js.map → EmailLoopPending-UoSRB9_p.js.map} +1 -1
- package/chunk/{ExtraMessage-DhWQOpZE.js → ExtraMessage-B8JJs1B1.js} +5 -5
- package/chunk/{ExtraMessage-5bkoWe4m.js.map → ExtraMessage-B8JJs1B1.js.map} +1 -1
- package/chunk/{ExtraMessage-5bkoWe4m.js → ExtraMessage-CvX2-UUd.js} +5 -5
- package/chunk/{ExtraMessage-DhWQOpZE.js.map → ExtraMessage-CvX2-UUd.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DoJl8kF4.js → FirstResponderOrganizationComponent-BPohnWTK.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-BS5jL_dk.js.map → FirstResponderOrganizationComponent-BPohnWTK.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BS5jL_dk.js → FirstResponderOrganizationComponent-C65uBoFZ.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-DoJl8kF4.js.map → FirstResponderOrganizationComponent-C65uBoFZ.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CG3KJsm0.js → FormFieldInputSelect-CA33_XWB.js} +5 -5
- package/chunk/{FormFieldInputSelect-CG3KJsm0.js.map → FormFieldInputSelect-CA33_XWB.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Dph4SbVn.js → FormFieldInputSelect-Czqu-Pmp.js} +5 -5
- package/chunk/{FormFieldInputSelect-Dph4SbVn.js.map → FormFieldInputSelect-Czqu-Pmp.js.map} +1 -1
- package/chunk/FormFieldLayout-CUA-PItd.js +4 -4
- package/chunk/FormFieldLayout-DIcCOsGu.js +4 -4
- package/chunk/FormFieldText-BeEhq8Kc.js +4 -4
- package/chunk/FormFieldText-zjWk7Cyc.js +4 -4
- package/chunk/{FormFieldTypeahead-DWEi8I3c.js → FormFieldTypeahead-D6O7vbrI.js} +10 -10
- package/chunk/FormFieldTypeahead-D6O7vbrI.js.map +1 -0
- package/chunk/{FormFieldTypeahead-BISMQdr-.js → FormFieldTypeahead-DeErMxU5.js} +10 -10
- package/chunk/FormFieldTypeahead-DeErMxU5.js.map +1 -0
- package/chunk/{FormFooterComponent-Cqp9nEWQ.js → FormFooterComponent-DCpHwIvH.js} +1136 -1143
- package/chunk/{FormFooterComponent-Cqp9nEWQ.js.map → FormFooterComponent-DCpHwIvH.js.map} +1 -1
- package/chunk/{FormFooterComponent-v9LR78TQ.js → FormFooterComponent-lkSSDuP2.js} +1087 -1094
- package/chunk/FormFooterComponent-lkSSDuP2.js.map +1 -0
- package/chunk/{FormSelectChoice-C8G7NDIE.js → FormSelectChoice-0iF6V7Yx.js} +5 -5
- package/chunk/{FormSelectChoice-C8G7NDIE.js.map → FormSelectChoice-0iF6V7Yx.js.map} +1 -1
- package/chunk/{FormSelectChoice-CXcrFjcm.js → FormSelectChoice-DPmhEFvl.js} +5 -5
- package/chunk/{FormSelectChoice-CXcrFjcm.js.map → FormSelectChoice-DPmhEFvl.js.map} +1 -1
- package/chunk/InputText-Bzkl8mKj.js +4 -4
- package/chunk/InputText-CkDvaW9P.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-Dm9j53yR.js → LicensedProfessionalOrganizationComponent-CcDWU643.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-n-ddHerW.js.map → LicensedProfessionalOrganizationComponent-CcDWU643.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-n-ddHerW.js → LicensedProfessionalOrganizationComponent-DsLT8IyE.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-Dm9j53yR.js.map → LicensedProfessionalOrganizationComponent-DsLT8IyE.js.map} +1 -1
- package/chunk/LogoComponent-BMeuu-aK.js +4 -4
- package/chunk/LogoComponent-CFPoRk_q.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-CihlxKE0.js → LowIncomeOrganizationComponent-BQmLLIA7.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-CihlxKE0.js.map → LowIncomeOrganizationComponent-BQmLLIA7.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CrVv-JGD.js → LowIncomeOrganizationComponent-ClrHFbDQ.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-CrVv-JGD.js.map → LowIncomeOrganizationComponent-ClrHFbDQ.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CjY4YV2o.js → MedicalProfessionalOrganizationComponent-C6qWK8CC.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-9ZdAz9Bd.js.map → MedicalProfessionalOrganizationComponent-C6qWK8CC.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-9ZdAz9Bd.js → MedicalProfessionalOrganizationComponent-Txm4_49Z.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-CjY4YV2o.js.map → MedicalProfessionalOrganizationComponent-Txm4_49Z.js.map} +1 -1
- package/chunk/MemberIdComponent-D_KVob09.js +4 -4
- package/chunk/MemberIdComponent-Dva2Xx7J.js +4 -4
- package/chunk/{MembershipOrganizationComponent-BREeSUa9.js → MembershipOrganizationComponent-CjYBJsct.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-BREeSUa9.js.map → MembershipOrganizationComponent-CjYBJsct.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CtsN_EOU.js → MembershipOrganizationComponent-DlNL6K9Z.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-CtsN_EOU.js.map → MembershipOrganizationComponent-DlNL6K9Z.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-CdweyyxM.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-Ywai8bYu.js +4 -4
- package/chunk/{PersonalInfoStepWrapper-DK8IScMk.js → PersonalInfoStepWrapper-DOGAXhdr.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-DK8IScMk.js.map → PersonalInfoStepWrapper-DOGAXhdr.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DwEv_qJC.js → PersonalInfoStepWrapper-PzXD3h7a.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DwEv_qJC.js.map → PersonalInfoStepWrapper-PzXD3h7a.js.map} +1 -1
- package/chunk/PostalCodeComponent-C97fgZFI.js +4 -4
- package/chunk/PostalCodeComponent-YFm2z5qa.js +4 -4
- package/chunk/SSN-CtVtLOD7.js +4 -4
- package/chunk/SSN-mk_cMbDH.js +4 -4
- package/chunk/{StateSelectComponent-BjJAh7ni.js → StateSelectComponent-BnGbnRTj.js} +5 -5
- package/chunk/{StateSelectComponent-BjJAh7ni.js.map → StateSelectComponent-BnGbnRTj.js.map} +1 -1
- package/chunk/{StateSelectComponent-TpcRMH2O.js → StateSelectComponent-Bt2ZmfME.js} +5 -5
- package/chunk/{StateSelectComponent-TpcRMH2O.js.map → StateSelectComponent-Bt2ZmfME.js.map} +1 -1
- package/chunk/{StatusComponent-BHXsZJ9x.js → StatusComponent-DnUWAEJj.js} +5 -5
- package/chunk/{StatusComponent-BHXsZJ9x.js.map → StatusComponent-DnUWAEJj.js.map} +1 -1
- package/chunk/{StatusComponent-DyQ2-iEF.js → StatusComponent-ajJ9Ta__.js} +5 -5
- package/chunk/{StatusComponent-DyQ2-iEF.js.map → StatusComponent-ajJ9Ta__.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-BJ4JExxI.js → StepActiveMilitaryPersonalInfoComponent-BTOGTIXg.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-BJ4JExxI.js.map → StepActiveMilitaryPersonalInfoComponent-BTOGTIXg.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DGCP-zrs.js → StepActiveMilitaryPersonalInfoComponent-DhvouiGN.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DGCP-zrs.js.map → StepActiveMilitaryPersonalInfoComponent-DhvouiGN.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-UU9ztrG8.js → StepAgePersonalInfo-CMC6rjNO.js} +12 -12
- package/chunk/{StepAgePersonalInfo-COnJq3HY.js.map → StepAgePersonalInfo-CMC6rjNO.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-COnJq3HY.js → StepAgePersonalInfo-DujabZHH.js} +12 -12
- package/chunk/{StepAgePersonalInfo-UU9ztrG8.js.map → StepAgePersonalInfo-DujabZHH.js.map} +1 -1
- package/chunk/StepCard-7t2vkHqM.js +4 -4
- package/chunk/StepCard-BF_RD7Rd.js +4 -4
- package/chunk/{StepCollectIdentifier-CgcaJFwF.js → StepCollectIdentifier-CSVkKgnI.js} +5 -5
- package/chunk/{StepCollectIdentifier-K1WUadIu.js.map → StepCollectIdentifier-CSVkKgnI.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-K1WUadIu.js → StepCollectIdentifier-DwRhpfiv.js} +5 -5
- package/chunk/{StepCollectIdentifier-CgcaJFwF.js.map → StepCollectIdentifier-DwRhpfiv.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-BAblA32a.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-BTE6B_34.js → StepCollectMilitaryStatusComponent-CP3sWYMI.js} +5 -5
- package/chunk/{StepCollectPersonalInfo-CzvyNUYR.js → StepCollectPersonalInfo-Bgq57XJk.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-CzvyNUYR.js.map → StepCollectPersonalInfo-Bgq57XJk.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-Cm9eCXvW.js → StepCollectPersonalInfo-CTvT-qcO.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-Cm9eCXvW.js.map → StepCollectPersonalInfo-CTvT-qcO.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-Cs4zhI-D.js +4 -4
- package/chunk/StepCompleteAuthentication-q5i7ecb3.js +4 -4
- package/chunk/{StepConsolation-Bbi7w5SE.js → StepConsolation-DPEEKVbT.js} +5 -5
- package/chunk/{StepConsolation-Bbi7w5SE.js.map → StepConsolation-DPEEKVbT.js.map} +1 -1
- package/chunk/{StepConsolation-D-n317FK.js → StepConsolation-QlQnL4Uq.js} +5 -5
- package/chunk/{StepConsolation-D-n317FK.js.map → StepConsolation-QlQnL4Uq.js.map} +1 -1
- package/chunk/{StepDocUpload-Cgo6QclU.js → StepDocUpload-CtfGQsaz.js} +5 -5
- package/chunk/{StepDocUpload-Cgo6QclU.js.map → StepDocUpload-CtfGQsaz.js.map} +1 -1
- package/chunk/{StepDocUpload-SFAgF5Pw.js → StepDocUpload-DYxV8Kym.js} +5 -5
- package/chunk/{StepDocUpload-SFAgF5Pw.js.map → StepDocUpload-DYxV8Kym.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-D__ia-uy.js → StepDriverLicensePersonalInfoComponent-Daondhf4.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-D__ia-uy.js.map → StepDriverLicensePersonalInfoComponent-Daondhf4.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Da9rSWTP.js → StepDriverLicensePersonalInfoComponent-Db2VrzNT.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-Da9rSWTP.js.map → StepDriverLicensePersonalInfoComponent-Db2VrzNT.js.map} +1 -1
- package/chunk/{StepEmailLoop-B5FaflNh.js → StepEmailLoop-96EHseY_.js} +6 -6
- package/chunk/{StepEmailLoop-B5FaflNh.js.map → StepEmailLoop-96EHseY_.js.map} +1 -1
- package/chunk/{StepEmailLoop-BPJpYENt.js → StepEmailLoop-CWf8sd-q.js} +6 -6
- package/chunk/{StepEmailLoop-BPJpYENt.js.map → StepEmailLoop-CWf8sd-q.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-C9Q0HvNi.js → StepEmploymentPersonalInfo-B_OwsviZ.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-C9Q0HvNi.js.map → StepEmploymentPersonalInfo-B_OwsviZ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CoxYYMsj.js → StepEmploymentPersonalInfo-DiVG1C7j.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-CoxYYMsj.js.map → StepEmploymentPersonalInfo-DiVG1C7j.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-D-nuYjr4.js → StepFirstResponderPersonalInfo-CyQIP6B5.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-D-nuYjr4.js.map → StepFirstResponderPersonalInfo-CyQIP6B5.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-hODZ0Ft0.js → StepFirstResponderPersonalInfo-WpzShFnv.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-hODZ0Ft0.js.map → StepFirstResponderPersonalInfo-WpzShFnv.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C9dAwMmc.js → StepGeneralIdentityPersonalInfoComponent-AoQplTrl.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B1p6Facu.js.map → StepGeneralIdentityPersonalInfoComponent-AoQplTrl.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-B1p6Facu.js → StepGeneralIdentityPersonalInfoComponent-DXTVPfCu.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-C9dAwMmc.js.map → StepGeneralIdentityPersonalInfoComponent-DXTVPfCu.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-nyAKJNSH.js → StepHybridIdentityPersonalInfoComponent-7mUKXRsj.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CAXAwCeB.js.map → StepHybridIdentityPersonalInfoComponent-7mUKXRsj.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CAXAwCeB.js → StepHybridIdentityPersonalInfoComponent-CRngU4Z8.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-nyAKJNSH.js.map → StepHybridIdentityPersonalInfoComponent-CRngU4Z8.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DyEyLkAv.js → StepIDCheckLoop-DLI2CeQG.js} +5 -5
- package/chunk/{StepIDCheckLoop-DyEyLkAv.js.map → StepIDCheckLoop-DLI2CeQG.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-StTjmfSJ.js → StepIDCheckLoop-DegHcWq1.js} +5 -5
- package/chunk/{StepIDCheckLoop-StTjmfSJ.js.map → StepIDCheckLoop-DegHcWq1.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CEmedZ9T.js → StepIDCheckLoopOnfido-DOfUG4B6.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-CEmedZ9T.js.map → StepIDCheckLoopOnfido-DOfUG4B6.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-B9js21fN.js → StepIDCheckLoopOnfido-vdL7yGQ4.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-B9js21fN.js.map → StepIDCheckLoopOnfido-vdL7yGQ4.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-auOqSkAR.js → StepIDCheckLoopRegula-CEzqWK_p.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-BJ2teu7Y.js.map → StepIDCheckLoopRegula-CEzqWK_p.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BJ2teu7Y.js → StepIDCheckLoopRegula-Ct2yi8ZQ.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-auOqSkAR.js.map → StepIDCheckLoopRegula-Ct2yi8ZQ.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-GelDtWO6.js → StepInactiveMilitaryPersonalInfoComponent-B63tGi2G.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-GelDtWO6.js.map → StepInactiveMilitaryPersonalInfoComponent-B63tGi2G.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CW1MoV24.js → StepInactiveMilitaryPersonalInfoComponent-CJfU_-86.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-CW1MoV24.js.map → StepInactiveMilitaryPersonalInfoComponent-CJfU_-86.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CJuWvyeM.js → StepLicensedProfessionalPersonalInfo-BCUai-I7.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-BCMYp_aC.js.map → StepLicensedProfessionalPersonalInfo-BCUai-I7.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BCMYp_aC.js → StepLicensedProfessionalPersonalInfo-BX8ShUp6.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-CJuWvyeM.js.map → StepLicensedProfessionalPersonalInfo-BX8ShUp6.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BsyG3vqg.js → StepLowIncomePersonalInfo-DhdsxHNd.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-BsyG3vqg.js.map → StepLowIncomePersonalInfo-DhdsxHNd.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BvGn84Ze.js → StepLowIncomePersonalInfo-b0kTlX5-.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-BvGn84Ze.js.map → StepLowIncomePersonalInfo-b0kTlX5-.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bx4ErJPu.js → StepMedicalProfessionalPersonalInfo-BeWq_K7Z.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-BWp_vhos.js.map → StepMedicalProfessionalPersonalInfo-BeWq_K7Z.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BWp_vhos.js → StepMedicalProfessionalPersonalInfo-DqlTiVZ1.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-Bx4ErJPu.js.map → StepMedicalProfessionalPersonalInfo-DqlTiVZ1.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BL9jasJE.js → StepMemberPersonalInfo--gpEUBOh.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-BL9jasJE.js.map → StepMemberPersonalInfo--gpEUBOh.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-Bwg0gewC.js → StepMemberPersonalInfo-BjCqdO0W.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-Bwg0gewC.js.map → StepMemberPersonalInfo-BjCqdO0W.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-Dw96C0gt.js → StepMoverPersonalInfo-D_GxQ6w6.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-7OcNjstS.js.map → StepMoverPersonalInfo-D_GxQ6w6.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-7OcNjstS.js → StepMoverPersonalInfo-Dc1Wo78L.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-Dw96C0gt.js.map → StepMoverPersonalInfo-Dc1Wo78L.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BZ83aLj6.js → StepOverrideComponent-B4gJdpxG.js} +5 -5
- package/chunk/{StepOverrideComponent-BZ83aLj6.js.map → StepOverrideComponent-B4gJdpxG.js.map} +1 -1
- package/chunk/{StepOverrideComponent-ChUsQQOW.js → StepOverrideComponent-CVpCfheF.js} +5 -5
- package/chunk/{StepOverrideComponent-ChUsQQOW.js.map → StepOverrideComponent-CVpCfheF.js.map} +1 -1
- package/chunk/{StepSMSLoop-3CkHqK70.js → StepSMSLoop-BazGkVz0.js} +5 -5
- package/chunk/{StepSMSLoop-3CkHqK70.js.map → StepSMSLoop-BazGkVz0.js.map} +1 -1
- package/chunk/{StepSMSLoop-BxiXaX55.js → StepSMSLoop-DUE0F6-D.js} +5 -5
- package/chunk/{StepSMSLoop-BxiXaX55.js.map → StepSMSLoop-DUE0F6-D.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +4 -4
- package/chunk/StepSSO-BaFk7RFJ.js +4 -4
- package/chunk/{StepSocialSecurityNumber-BxOAoULb.js → StepSocialSecurityNumber-BIfWNwdd.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-CJEZuXpw.js.map → StepSocialSecurityNumber-BIfWNwdd.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CJEZuXpw.js → StepSocialSecurityNumber-C5F_UOgu.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-BxOAoULb.js.map → StepSocialSecurityNumber-C5F_UOgu.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-25n_IHmO.js → StepStudentPersonalInfo-B5pA5Kno.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-25n_IHmO.js.map → StepStudentPersonalInfo-B5pA5Kno.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Mya0jFUx.js → StepStudentPersonalInfo-BLzjrwKQ.js} +12 -12
- package/chunk/{StepStudentPersonalInfo-Mya0jFUx.js.map → StepStudentPersonalInfo-BLzjrwKQ.js.map} +1 -1
- package/chunk/{StepSuccess-DCAbnrWd.js → StepSuccess-BM8MIrs5.js} +72 -72
- package/chunk/StepSuccess-BM8MIrs5.js.map +1 -0
- package/chunk/{StepSuccess-D_JiUGIt.js → StepSuccess-DiV9Z_NF.js} +71 -71
- package/chunk/StepSuccess-DiV9Z_NF.js.map +1 -0
- package/chunk/{StepTeacherPersonalInfo-I69FekBC.js → StepTeacherPersonalInfo-CVmVS0pY.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-Cn1d9hhj.js.map → StepTeacherPersonalInfo-CVmVS0pY.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Cn1d9hhj.js → StepTeacherPersonalInfo-DV_FeKo7.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-I69FekBC.js.map → StepTeacherPersonalInfo-DV_FeKo7.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +4 -4
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +4 -4
- package/chunk/{TeacherSchoolComponent-B0n_ES70.js → TeacherSchoolComponent-BPbepOfp.js} +5 -5
- package/chunk/{TeacherSchoolComponent-B0n_ES70.js.map → TeacherSchoolComponent-BPbepOfp.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DBEwofIQ.js → TeacherSchoolComponent-Cv-smYmA.js} +5 -5
- package/chunk/{TeacherSchoolComponent-DBEwofIQ.js.map → TeacherSchoolComponent-Cv-smYmA.js.map} +1 -1
- package/chunk/TestingRouteOverrides-B-zcTBa_.js +4 -4
- package/chunk/TestingRouteOverrides-DCR0qXVH.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-XEv61Ta1.js → VerificationApiClient-BTLAOHGR.js} +182 -174
- package/chunk/VerificationApiClient-BTLAOHGR.js.map +1 -0
- package/chunk/{VerificationApiClient-7wz0UH9Q.js → VerificationApiClient-Bhmjtve0.js} +190 -182
- package/chunk/VerificationApiClient-Bhmjtve0.js.map +1 -0
- package/chunk/{VerificationApiUtils-BcwFht9_.js → VerificationApiUtils-DheQDpKM.js} +6 -6
- package/chunk/{VerificationApiUtils-BcwFht9_.js.map → VerificationApiUtils-DheQDpKM.js.map} +1 -1
- package/chunk/{VerificationApiUtils-DrrsiUMd.js → VerificationApiUtils-Dlul6Md3.js} +6 -6
- package/chunk/{VerificationApiUtils-DrrsiUMd.js.map → VerificationApiUtils-Dlul6Md3.js.map} +1 -1
- package/chunk/ar-wkBEXxD9.js +4 -4
- package/chunk/bg-D2-seofX.js +4 -4
- package/chunk/bn-IN-B5PyYaJU.js +4 -4
- package/chunk/countryUtils-BAFwHnuu.js +4 -4
- package/chunk/countryUtils-QSjR1rBI.js +4 -4
- package/chunk/cs-CsEnIopo.js +4 -4
- package/chunk/da-Da-m3VU_.js +4 -4
- package/chunk/de-BSoD5U3-.js +4 -4
- package/chunk/{downshift.esm-C8hmF344.js → downshift.esm-BS-YwEuA.js} +5 -5
- package/chunk/{downshift.esm-C8hmF344.js.map → downshift.esm-BS-YwEuA.js.map} +1 -1
- package/chunk/{downshift.esm-yUvYnBx9.js → downshift.esm-BeqLKFfe.js} +5 -5
- package/chunk/{downshift.esm-yUvYnBx9.js.map → downshift.esm-BeqLKFfe.js.map} +1 -1
- package/chunk/el-CFa6y9Ri.js +4 -4
- package/chunk/empties-BIoZK05_.js +4 -4
- package/chunk/empties-Ck9OJXHG.js +4 -4
- package/chunk/en-GB-V8XaGkaI.js +4 -4
- package/chunk/es-D18tLxcT.js +4 -4
- package/chunk/es-ES-7x2bVUQr.js +4 -4
- package/chunk/et-udrWMVlD.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-DgwYULMs.js +4 -4
- package/chunk/fi-CkCWFGDC.js +4 -4
- package/chunk/fr-BprIFEa8.js +4 -4
- package/chunk/fr-CA-DrjICejr.js +4 -4
- package/chunk/ga-LaV5ZJgg.js +4 -4
- package/chunk/hi-IN-7dtEICYI.js +4 -4
- package/chunk/hr-2Bctl997.js +4 -4
- package/chunk/hu-BT0z6TPZ.js +4 -4
- package/chunk/id-BvyYep3X.js +4 -4
- package/chunk/intl-aUfdCP8t.js +4 -4
- package/chunk/is-DOsKfa80.js +4 -4
- package/chunk/it-3dX9AQk7.js +4 -4
- package/chunk/iw-5I90wqQ8.js +4 -4
- package/chunk/ja-CHdgbMgX.js +4 -4
- package/chunk/jsx-runtime-BknAqbDq.js +4 -4
- package/chunk/jsx-runtime-XNwIsY_N.js +4 -4
- package/chunk/kk-BriyNfHL.js +4 -4
- package/chunk/ko-DsMaax3V.js +4 -4
- package/chunk/lo-CjASRmNr.js +4 -4
- package/chunk/lt-DF29E1de.js +4 -4
- package/chunk/lv-DlHBZyt-.js +4 -4
- package/chunk/militaryStepHelpers-UF-7lF1f.js +4 -4
- package/chunk/militaryStepHelpers-qMYyQgVn.js +4 -4
- package/chunk/mocks-1r84in2Q.js +4 -4
- package/chunk/mocks-fUTXc8-e.js +4 -4
- package/chunk/ms-B3vDtlFh.js +4 -4
- package/chunk/nl-BE-Dw1IGXuF.js +4 -4
- package/chunk/nl-Cqkrr5-r.js +4 -4
- package/chunk/no-876EdwkX.js +4 -4
- package/chunk/options-D19mRw5a.js +4 -4
- package/chunk/pl-B_G8s05-.js +4 -4
- package/chunk/programThemeGetters-CyMKyJao.js +4 -4
- package/chunk/programThemeGetters-Lz3L0Vh7.js +4 -4
- package/chunk/pt-BR-DWj043qk.js +4 -4
- package/chunk/pt-DckA3Jnn.js +4 -4
- package/chunk/refs--ECXpllB.js +4 -4
- package/chunk/refs-Bbe0gnJ3.js +4 -4
- package/chunk/ro-DukNcWCM.js +4 -4
- package/chunk/ru-RkdRQ7qb.js +4 -4
- package/chunk/sk-CPBgBtC5.js +4 -4
- package/chunk/sl-Cyj9PWmN.js +4 -4
- package/chunk/sr-Bm1GVW8m.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-CcMmeZrG.js +4 -4
- package/chunk/sw-BPvl1ou6.js +4 -4
- package/chunk/ta-BPEH7IlE.js +4 -4
- package/chunk/th-Dd912RL5.js +4 -4
- package/chunk/tl-J_TdpjQz.js +4 -4
- package/chunk/tr-B-GrrJj0.js +4 -4
- package/chunk/uk-MohyvT_n.js +4 -4
- package/chunk/ur-CDYGpWMm.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-zuG1qpLn.js → useCollectFieldsEndpoint-B-bMxmVp.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DuxxsZUK.js.map → useCollectFieldsEndpoint-B-bMxmVp.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DuxxsZUK.js → useCollectFieldsEndpoint-ByJI0izC.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-zuG1qpLn.js.map → useCollectFieldsEndpoint-ByJI0izC.js.map} +1 -1
- package/chunk/useMetrics-D_8asKZL.js +4 -4
- package/chunk/useMetrics-Ivet_g4B.js +4 -4
- package/chunk/validators-BZCydYkb.js +4 -4
- package/chunk/validators-Do9xo2t_.js +4 -4
- package/chunk/vi-CdPTWSev.js +4 -4
- package/chunk/zh-DhnjKBoc.js +4 -4
- package/chunk/zh-HK-CWKNP_HX.js +4 -4
- package/chunk/zu-BpMHS0oR.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +50 -45
- package/sheerid-install.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +1208 -1208
- package/sheerid.js.map +1 -1
- package/chunk/ApiUrls-YF6TyaSs.js.map +0 -1
- package/chunk/ApiUrls-kNSykNOJ.js.map +0 -1
- package/chunk/FormFieldTypeahead-BISMQdr-.js.map +0 -1
- package/chunk/FormFieldTypeahead-DWEi8I3c.js.map +0 -1
- package/chunk/FormFooterComponent-v9LR78TQ.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-jZyP2eYZ.js +0 -9
- package/chunk/StepSuccess-DCAbnrWd.js.map +0 -1
- package/chunk/StepSuccess-D_JiUGIt.js.map +0 -1
- package/chunk/VerificationApiClient-7wz0UH9Q.js.map +0 -1
- package/chunk/VerificationApiClient-XEv61Ta1.js.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.259.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785265944321
|
|
5
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:24 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, Ft as t, c as n, n as r, wt as i } from "./options-D19mRw5a.js";
|
|
9
9
|
import { a, c as o, n as s, t as c } from "./jsx-runtime-BknAqbDq.js";
|
|
10
|
-
import { x as l } from "./FormFooterComponent-
|
|
10
|
+
import { x as l } from "./FormFooterComponent-DCpHwIvH.js";
|
|
11
11
|
import { a as u } from "./refs-Bbe0gnJ3.js";
|
|
12
12
|
import { G as d, I as f, K as p, V as m, et as h, r as g, tt as _ } from "../sheerid.js";
|
|
13
|
-
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-
|
|
13
|
+
import { a as v, i as y, n as b, o as x, s as S, t as C } from "./CaptchaComponent-PWuS9jOd.js";
|
|
14
14
|
import { n as w, t as T } from "./PersonalInfoStepSubmitButton-Ywai8bYu.js";
|
|
15
|
-
import { t as E } from "./BirthDateComponent-
|
|
16
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
17
|
-
import { t as O } from "./ExtraMessage-
|
|
18
|
-
import { t as k } from "./ChangeLocaleComponent-
|
|
19
|
-
import { t as A } from "./PersonalInfoStepWrapper-
|
|
20
|
-
import { n as j, r as M, t as N } from "./DischargeDateComponent-
|
|
21
|
-
import { t as P } from "./StatusComponent-
|
|
15
|
+
import { t as E } from "./BirthDateComponent-CRcyEtHM.js";
|
|
16
|
+
import { t as D } from "./CountryComponentWrapper-DSy5reL2.js";
|
|
17
|
+
import { t as O } from "./ExtraMessage-B8JJs1B1.js";
|
|
18
|
+
import { t as k } from "./ChangeLocaleComponent-Bx6q68EQ.js";
|
|
19
|
+
import { t as A } from "./PersonalInfoStepWrapper-PzXD3h7a.js";
|
|
20
|
+
import { n as j, r as M, t as N } from "./DischargeDateComponent-BR2dWL3V.js";
|
|
21
|
+
import { t as P } from "./StatusComponent-DnUWAEJj.js";
|
|
22
22
|
import { t as F } from "./militaryStepHelpers-UF-7lF1f.js";
|
|
23
23
|
o();
|
|
24
24
|
var I = c(), L = ({ intl: a, verificationService: o }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-DGCP-zrs.js","names":[],"sources":["../../src/components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent.tsx"],"sourcesContent":["/* eslint-disable */\n/**\n * TODO - preamble\n */\nimport React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport { produce } from \"immer\";\n\nimport {\n VerificationStepsEnum,\n MilitaryStatusDefaultMessagesEnum,\n} from \"../../lib/types/runtimeTypes\";\nimport { hasFailedInstantMatch } from \"../../lib/VerificationService/VerificationServiceHelpers\";\nimport { resetRefs } from \"../../lib/refs/refs\";\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport {\n VerificationService,\n FormSelectChoice,\n Organization,\n ActiveMilitaryPersonalInfoViewModel,\n ActiveMilitaryPersonalInfoResponse,\n CustomFormFieldConfig,\n} from \"../../lib/types/types\";\nimport {\n handleEmailOnKeyDown,\n updateFieldValidationErrorsByFieldId,\n updateViewModelOrganization,\n getAvailableMilitaryStatuses,\n getStatusLabel,\n getFieldConfigByFieldId,\n} from \"../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { CountryComponentWrapper } from \"../FormFields/Country/CountryComponentWrapper\";\nimport { PhoneNumberComponent as PhoneNumber } from \"../FormFields/PhoneNumber/PhoneNumberComponent\";\nimport { FirstNameComponent as FirstName } from \"../FormFields/FirstName/FirstNameComponent\";\nimport { LastNameComponent as LastName } from \"../FormFields/LastName/LastNameComponent\";\nimport { EmailComponent as Email } from \"../FormFields/Email/EmailComponent\";\nimport { BirthDateComponent as BirthDate } from \"../FormFields/BirthDate/BirthDateComponent\";\nimport { StatusComponent as MilitaryStatus } from \"../FormFields/Status/StatusComponent\";\nimport { BranchOfServiceComponent as BranchOfService } from \"../FormFields/BranchOfService/BranchOfServiceComponent\";\nimport { DischargeDateComponent as DischargeDate } from \"../FormFields/DischargeDate/DischargeDateComponent\";\nimport { MarketConsentWrapperComponent as MarketConsentWrapper } from \"../FormFields/MarketConsentWrapper/MarketConsentWrapperComponent\";\nimport { updateMilitaryViewModel } from \"./militaryStepHelpers\";\nimport { getOptions } from \"../../options/options\";\nimport { FormFieldCustom } from \"../FormFields/FormFieldCustom/FormFieldCustom\";\nimport { ExtraMessage } from \"../ExtraMessage\";\nimport { ChangeLocaleV2Component } from \"../FormFields/ChangeLocale/ChangeLocaleComponent\";\nimport { ActiveDutyStartDateComponent } from \"../FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent\";\nimport { PersonalInfoWrapper } from \"../PersonalInfoStepWrapper/PersonalInfoStepWrapper\";\nimport { PersonalInfoStepSubmitButton } from \"../PersonalInfoStepSubmitButton/PersonalInfoStepSubmitButton\";\nimport { PersonalInfoHeader } from \"../FormHeader/StepHeaders/PersonalInfoHeaderComponent\";\nimport { CaptchaComponent } from \"../FormFields/Captcha/CaptchaComponent\";\n\ninterface StepActiveMilitaryPersonalInfoComponentProps {\n intl: any;\n verificationService: VerificationService;\n}\n\nexport const StepActiveMilitaryPersonalInfo = ({\n intl,\n verificationService,\n}: StepActiveMilitaryPersonalInfoComponentProps) => {\n const viewModel = verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel;\n const previousViewModel =\n verificationService.previousViewModel as ActiveMilitaryPersonalInfoViewModel;\n const { fieldValidationErrors } = verificationService;\n const verificationResponse =\n verificationService.verificationResponse as ActiveMilitaryPersonalInfoResponse;\n const failedInstantMatch = hasFailedInstantMatch(verificationResponse);\n const availableStatuses = getAvailableMilitaryStatuses(verificationService, intl);\n const locale = viewModel.localeChoice.value;\n const options = getOptions();\n\n const updateActiveMilitaryViewModel = (\n key: keyof ActiveMilitaryPersonalInfoViewModel,\n value: any,\n ) => {\n verificationService.updateViewModel(\n updateMilitaryViewModel(key, value, verificationService, availableStatuses),\n );\n };\n\n const submitStep = () => {\n const nextState = produce(viewModel, () => {});\n logger.info(\"StepMilitaryStatusComponent submitting form\");\n verificationService.submitStep(\n VerificationStepsEnum.collectMilitaryStatus,\n nextState,\n verificationService.previousVerificationResponse || verificationService.verificationResponse,\n );\n };\n\n if (\n (viewModel.status && previousViewModel && previousViewModel.status !== viewModel.status) ||\n (viewModel.status &&\n verificationService.verificationResponse.currentStep ===\n VerificationStepsEnum.collectMilitaryStatus)\n ) {\n submitStep();\n }\n\n // Refs should be reset to ensure the field order isn't affected by the previous step\n resetRefs();\n\n return (\n <PersonalInfoWrapper\n verificationService={verificationService}\n step={verificationResponse.currentStep}\n className=\"sid-military-personal-info-container\"\n >\n <PersonalInfoHeader\n verificationService={verificationService}\n classNameIdentifier=\"active-military-personal-info\"\n />\n\n <>\n <ChangeLocaleV2Component verificationService={verificationService} />\n <CountryComponentWrapper\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"country\")?.disabled}\n />\n {availableStatuses ? (\n <MilitaryStatus\n segmentId=\"military\"\n value={{\n value: viewModel.status,\n label: getStatusLabel(intl, viewModel.status, MilitaryStatusDefaultMessagesEnum),\n }}\n isErrored={!!fieldValidationErrors.status}\n errorId=\"invalidMilitaryStatus\"\n options={availableStatuses}\n disabled={getFieldConfigByFieldId(\"status\")?.disabled}\n onChange={(status: FormSelectChoice) => {\n updateActiveMilitaryViewModel(\"status\", status ? (status.value as string) : \"\");\n updateFieldValidationErrorsByFieldId(\n \"status\",\n status ? (status.value as string) : \"\",\n verificationService,\n );\n }}\n />\n ) : null}\n <BranchOfService\n isErrored={!!fieldValidationErrors.organization}\n onChange={(choice: Organization) => {\n updateViewModelOrganization(choice, verificationService);\n updateFieldValidationErrorsByFieldId(\"organization\", choice, verificationService);\n }}\n value={{\n value: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.id,\n label: (verificationService.viewModel as ActiveMilitaryPersonalInfoViewModel)\n .organization.name,\n }}\n verificationService={verificationService}\n disabled={getFieldConfigByFieldId(\"organization\")?.disabled}\n />\n\n <div className=\"sid-names\">\n <FirstName\n value={viewModel.firstName}\n isErrored={!!fieldValidationErrors.firstName}\n disabled={getFieldConfigByFieldId(\"firstName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"firstName\", newValue);\n updateFieldValidationErrorsByFieldId(\"firstName\", newValue, verificationService);\n }}\n />\n\n <LastName\n value={viewModel.lastName}\n isErrored={!!fieldValidationErrors.lastName}\n disabled={getFieldConfigByFieldId(\"lastName\")?.disabled}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"lastName\", newValue);\n updateFieldValidationErrorsByFieldId(\"lastName\", newValue, verificationService);\n }}\n />\n </div>\n\n <BirthDate\n errorId={fieldValidationErrors.birthDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"birthDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"birthDate\", newValue, verificationService);\n }}\n value={viewModel.birthDate}\n disabled={getFieldConfigByFieldId(\"birthDate\")?.disabled}\n />\n\n {!!verificationService.programTheme.transitionalMilitaryValidityDays && (\n <DischargeDate\n mode={\"date\"}\n errorId={fieldValidationErrors.dischargeDate}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"dischargeDate\", newValue);\n updateFieldValidationErrorsByFieldId(\"dischargeDate\", newValue, verificationService);\n }}\n value={viewModel.dischargeDate}\n locale={locale}\n disabled={getFieldConfigByFieldId(\"dischargeDate\")?.disabled}\n />\n )}\n\n {verificationService.programTheme.strictMilitaryValidationEnabled && (\n <ActiveDutyStartDateComponent\n errorId={fieldValidationErrors.activeDutyStartDate}\n locale={locale}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"activeDutyStartDate\", newValue);\n updateFieldValidationErrorsByFieldId(\n \"activeDutyStartDate\",\n newValue,\n verificationService,\n );\n }}\n value={viewModel.activeDutyStartDate}\n disabled={getFieldConfigByFieldId(\"activeDutyStartDate\")?.disabled}\n isRequired={getFieldConfigByFieldId(\"activeDutyStartDate\")?.requireIfOptional}\n />\n )}\n\n <Email\n value={viewModel.email}\n isErrored={!!fieldValidationErrors.email}\n explanation={\n <FormattedHTMLMessage\n id=\"emailExplanation\"\n defaultMessage=\"Personal email address is recommended\"\n />\n }\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"email\", newValue);\n updateFieldValidationErrorsByFieldId(\"email\", newValue, verificationService);\n }}\n onKeyDown={(event) => handleEmailOnKeyDown(event)}\n disabled={getFieldConfigByFieldId(\"email\")?.disabled}\n />\n\n {verificationService.programTheme.isSmsNotifierConfigured ||\n verificationService.programTheme.smsLoopEnabled ? (\n <PhoneNumber\n isRequired={!!verificationService.programTheme.smsLoopEnabled}\n value={viewModel.phoneNumber}\n isErrored={!!fieldValidationErrors.phoneNumber}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"phoneNumber\", newValue);\n updateFieldValidationErrorsByFieldId(\"phoneNumber\", newValue, verificationService);\n }}\n selectedCountryCode={viewModel.countryChoice && viewModel.countryChoice.value}\n disabled={getFieldConfigByFieldId(\"phoneNumber\")?.disabled}\n />\n ) : null}\n\n {options.customFormFields.map((config: CustomFormFieldConfig) => (\n <FormFieldCustom config={config} verificationService={verificationService} />\n ))}\n\n <MarketConsentWrapper\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.marketConsentValue}\n onChange={(newValue) => {\n updateActiveMilitaryViewModel(\"metadata\", {\n ...verificationService.viewModel.metadata,\n marketConsentValue: newValue,\n });\n updateFieldValidationErrorsByFieldId(\n \"marketConsentValue\",\n newValue,\n verificationService,\n );\n }}\n viewModel={viewModel}\n disabled={getFieldConfigByFieldId(\"marketConsentValue\")?.disabled}\n />\n\n <ExtraMessage verificationService={verificationService} suffix=\"CollectAboveSubmit\" />\n\n <CaptchaComponent\n verificationService={verificationService}\n isErrored={!!fieldValidationErrors.captchaToken}\n />\n\n <PersonalInfoStepSubmitButton\n step={VerificationStepsEnum.collectActiveMilitaryPersonalInfo}\n verificationService={verificationService}\n viewModel={viewModel}\n failedInstantMatch={failedInstantMatch}\n buttonText={\n <FormattedHTMLMessage\n id=\"step.personalInfo.submitButtonText\"\n defaultMessage=\"Verify My Military Status\"\n />\n }\n />\n </>\n </PersonalInfoWrapper>\n );\n};\n\nexport const StepActiveMilitaryPersonalInfoComponent = injectIntl(StepActiveMilitaryPersonalInfo);\nexport default StepActiveMilitaryPersonalInfoComponent;\n"],"mappings":";;;;;;;;;;;;;;;;aA0Da,KAAkC,EAC7C,SACA,6BACkD;CAClD,IAAM,IAAY,EAAoB,WAChC,IACJ,EAAoB,mBAChB,EAAE,6BAA0B,GAC5B,IACJ,EAAoB,sBAChB,IAAqB,EAAsB,CAAoB,GAC/D,IAAoB,EAA6B,GAAqB,CAAI,GAC1E,IAAS,EAAU,aAAa,OAChC,IAAU,EAAW,GAErB,KACJ,GACA,MACG;EACH,EAAoB,gBAClB,EAAwB,GAAK,GAAO,GAAqB,CAAiB,CAC5E;CACF;CAwBA,QAXG,EAAU,UAAU,KAAqB,EAAkB,WAAW,EAAU,UAChF,EAAU,UACT,EAAoB,qBAAqB,gBACvC,EAAsB,iCAdH;EACvB,IAAM,IAAY,EAAQ,SAAiB,CAAC,CAAC;EAE7C,AADA,EAAO,KAAK,6CAA6C,GACzD,EAAoB,WAClB,EAAsB,uBACtB,GACA,EAAoB,gCAAgC,EAAoB,oBAC1E;CACF,GAQa,GAIb,EAAU,GAGR,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;EAC3B,WAAU;YAHZ,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACuB;GACrB,qBAAoB;EACrB,CAAA,GAED,iBAAA,GAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA;GACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,UAAU,EAAwB,SAAS,GAAG;GAC/C,CAAA;GACA,IACC,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,WAAU;IACV,OAAO;KACL,OAAO,EAAU;KACjB,OAAO,EAAe,GAAM,EAAU,QAAQ,CAAiC;IACjF;IACA,WAAW,CAAC,CAAC,EAAsB;IACnC,SAAQ;IACR,SAAS;IACT,U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AAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;IACnC,WAAW,MAAa;KAKtB,AAJA,EAA8B,YAAY;MACxC,GAAG,EAAoB,UAAU;MACjC,oBAAoB;KACtB,CAAC,GACD,EACE,sBACA,GACA,CACF;IACF;IACW;IACX,UAAU,EAAwB,oBAAoB,GAAG;GAC1D,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAmC;IAAqB,QAAO;GAAsB,CAAA;GAErF,iBAAA,GAAA,EAAA,KAAC,GAAD;IACuB;IACrB,WAAW,CAAC,CAAC,EAAsB;GACpC,CAAA;GAED,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,MAAM,EAAsB;IACP;IACV;IACS;IACpB,YACE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
1
|
+
{"version":3,"file":"StepActiveMilitaryPersonalInfoComponent-DhvouiGN.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,SAA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AA;EACD,EAAA,CAAA,CACiB;;AAEzB,GAEa,IAA0C,EAAW,CAA8B"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.259.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785265944321
|
|
5
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:24 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, Wt as t, ct as n, n as r } from "./options-D19mRw5a.js";
|
|
9
9
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-BknAqbDq.js";
|
|
10
|
-
import { x as c } from "./FormFooterComponent-
|
|
10
|
+
import { x as c } from "./FormFooterComponent-DCpHwIvH.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-ByJI0izC.js";
|
|
13
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-PWuS9jOd.js";
|
|
14
14
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-Ywai8bYu.js";
|
|
15
|
-
import { t as T } from "./BirthDateComponent-
|
|
15
|
+
import { t as T } from "./BirthDateComponent-CRcyEtHM.js";
|
|
16
16
|
import { t as E } from "./PostalCodeComponent-C97fgZFI.js";
|
|
17
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
17
|
+
import { t as D } from "./CountryComponentWrapper-DSy5reL2.js";
|
|
18
18
|
import { t as O } from "./City-CmO85Z9x.js";
|
|
19
19
|
import { t as k } from "./AddressComponent-DMwOmjiG.js";
|
|
20
|
-
import { t as A } from "./ExtraMessage-
|
|
21
|
-
import { t as j } from "./ChangeLocaleComponent-
|
|
22
|
-
import { t as M } from "./PersonalInfoStepWrapper-
|
|
20
|
+
import { t as A } from "./ExtraMessage-B8JJs1B1.js";
|
|
21
|
+
import { t as j } from "./ChangeLocaleComponent-Bx6q68EQ.js";
|
|
22
|
+
import { t as M } from "./PersonalInfoStepWrapper-PzXD3h7a.js";
|
|
23
23
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
24
24
|
var N = /* @__PURE__ */ t(a(), 1), P = s(), F = i(({ verificationService: t, intl: i }) => {
|
|
25
25
|
let a = t.viewModel, { fieldValidationErrors: s } = t, F = t.verificationResponse, I = c(F), L = n(() => a.countryChoice.value, h(p(t.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || t.programTheme.isSmsNotifierConfigured || t.programTheme.smsLoopEnabled, B = L !== "US" || t.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-COnJq3HY.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;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC,eAAe,EAAU,aAAa,CAAmB;CAChG,GAAG,CAAC,EAAU,OAAO,CAAC,GAGpB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyC;IAAqB,qBAAoB;GAAO,CAAA;GAEzF,iBAAA,GAAA,EAAA,KAAC,GAAD,EAA8C,uBAAsB,CAAA;GACpE,i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,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
|
+
{"version":3,"file":"StepAgePersonalInfo-CMC6rjNO.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,EA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AAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.259.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785265950089
|
|
9
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:30 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
11
11
|
*/
|
|
12
12
|
import { Ht as e, It as t, jt as n, s as r } from "./intl-aUfdCP8t.js";
|
|
13
13
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-XNwIsY_N.js";
|
|
14
|
-
import { T as c } from "./FormFooterComponent-
|
|
14
|
+
import { T as c } from "./FormFooterComponent-lkSSDuP2.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-B-bMxmVp.js";
|
|
17
|
+
import { a as _, i as v, n as y, o as b, s as x, t as S } from "./CaptchaComponent-BFxgmyuB.js";
|
|
18
18
|
import { n as C, t as w } from "./PersonalInfoStepSubmitButton-CdweyyxM.js";
|
|
19
|
-
import { t as T } from "./BirthDateComponent-
|
|
19
|
+
import { t as T } from "./BirthDateComponent-llCfw7_W.js";
|
|
20
20
|
import { t as E } from "./PostalCodeComponent-YFm2z5qa.js";
|
|
21
|
-
import { t as D } from "./CountryComponentWrapper-
|
|
21
|
+
import { t as D } from "./CountryComponentWrapper-CAVCVXi7.js";
|
|
22
22
|
import { t as O } from "./City-BP95fpVf.js";
|
|
23
23
|
import { t as k } from "./AddressComponent-DluNaOpg.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-CvX2-UUd.js";
|
|
25
|
+
import { t as j } from "./ChangeLocaleComponent-CWaoihG4.js";
|
|
26
|
+
import { t as M } from "./PersonalInfoStepWrapper-DOGAXhdr.js";
|
|
27
27
|
//#region src/components/StepAgePersonalInfo/StepAgePersonalInfoComponent.tsx
|
|
28
28
|
var N = /* @__PURE__ */ e(a(), 1), P = s(), F = i(({ verificationService: e, intl: i }) => {
|
|
29
29
|
let a = e.viewModel, { fieldValidationErrors: s } = e, F = e.verificationResponse, I = c(F), L = t(() => a.countryChoice.value, m(u(e.programTheme, i)).value), R = L === "US" ? [{ key: "postalCode" }] : [], z = L !== "US" || e.programTheme.isSmsNotifierConfigured || e.programTheme.smsLoopEnabled, B = L !== "US" || e.programTheme.smsLoopEnabled, V = a.localeChoice.value, H = r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepAgePersonalInfo-UU9ztrG8.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;EAC9E,IAAM,IAAsC,EAAsB,GAAW,GAAK,CAAK;EACvF,EAAoB,gBAAgB,CAAS;CAC/C,GAEM,EAAE,uBAAoB,EAAyB;EACnD,gBAAgB,EAAqB;EACrC,aAAa,EAAqB;EAClC;EACA;CACF,CAAC;CAOD,OALA,EAAM,gBAAgB;EAEpB,EAAqC,eAAe,EAAU,aAAa,CAAmB;CAChG,GAAG,CAAC,EAAU,OAAO,CAAC,GAGpB,iBAAA,GAAA,EAAA,MAAC,GAAD;EACuB;EACrB,MAAM,EAAqB;YAF7B;GAIE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAyC;IAAqB,qBAAoB;GAAO,CAAA;GAEzF,iBAAA,GAAA,EAA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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
|
+
{"version":3,"file":"StepAgePersonalInfo-DujabZHH.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,Q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AAC,GAAD;KACE,IAAG;KACH,gBAAe;IAChB,CAAA;GAEJ,CAAA;EACkB;;AAEzB,CAE0E"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.259.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785265944321
|
|
5
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:24 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
7
7
|
*/
|
|
8
8
|
import { t as e } from "./jsx-runtime-BknAqbDq.js";
|
|
9
9
|
//#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.259.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785265950089
|
|
9
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:30 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
11
11
|
*/
|
|
12
12
|
import { t as e } from "./jsx-runtime-XNwIsY_N.js";
|
|
13
13
|
//#region src/components/StepIDCheckLoop/StepCard/StepCard.tsx
|
|
@@ -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:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.259.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785265950089
|
|
9
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:30 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
11
11
|
*/
|
|
12
12
|
import { jt as e, p as t } from "./intl-aUfdCP8t.js";
|
|
13
13
|
import { n, t as r } from "./jsx-runtime-XNwIsY_N.js";
|
|
14
|
-
import { T as i, t as a } from "./FormFooterComponent-
|
|
14
|
+
import { T as i, t as a } from "./FormFooterComponent-lkSSDuP2.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-CdweyyxM.js";
|
|
17
17
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-K1WUadIu.js.map → StepCollectIdentifier-CSVkKgnI.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-CSVkKgnI.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:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.259.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785265944321
|
|
5
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:24 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
7
7
|
*/
|
|
8
8
|
import { Ft as e, c as t } from "./options-D19mRw5a.js";
|
|
9
9
|
import { n, t as r } from "./jsx-runtime-BknAqbDq.js";
|
|
10
|
-
import { t as i, x as a } from "./FormFooterComponent-
|
|
10
|
+
import { t as i, x as a } from "./FormFooterComponent-DCpHwIvH.js";
|
|
11
11
|
import { K as o, et as s, r as c } from "../sheerid.js";
|
|
12
12
|
import { n as l, t as u } from "./PersonalInfoStepSubmitButton-Ywai8bYu.js";
|
|
13
13
|
//#region src/components/StepCollectIdentifier/StepCollectIdentifierComponent.tsx
|
package/chunk/{StepCollectIdentifier-CgcaJFwF.js.map → StepCollectIdentifier-DwRhpfiv.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCollectIdentifier-
|
|
1
|
+
{"version":3,"file":"StepCollectIdentifier-DwRhpfiv.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.259.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785265944321
|
|
5
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:24 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
7
|
+
*/
|
|
8
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-DhvouiGN.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:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.259.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785265950089
|
|
9
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:30 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
11
11
|
*/
|
|
12
|
-
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-
|
|
12
|
+
import { StepActiveMilitaryPersonalInfoComponent as e } from "./StepActiveMilitaryPersonalInfoComponent-BTOGTIXg.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:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.259.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785265950089
|
|
9
|
+
* BUILD_DATE: Tue Jul 28 2026 19:12:30 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: b55d423813b208371b7321acda89b241c58129d0
|
|
11
11
|
*/
|
|
12
12
|
import { Ht as e, It as t, Lt as n, Tt as r, ht as ee, jt as i, p as te, s as ne } from "./intl-aUfdCP8t.js";
|
|
13
13
|
import { a, c as o, n as s, t as c } from "./jsx-runtime-XNwIsY_N.js";
|
|
14
|
-
import { T as l, t as re } from "./FormFooterComponent-
|
|
15
|
-
import { n as ie } from "./VerificationApiClient-
|
|
14
|
+
import { T as l, t as re } from "./FormFooterComponent-lkSSDuP2.js";
|
|
15
|
+
import { n as ie } from "./VerificationApiClient-Bhmjtve0.js";
|
|
16
16
|
import { s as ae } from "./programThemeGetters-CyMKyJao.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-BFxgmyuB.js";
|
|
19
19
|
import { n as b, t as x } from "./PersonalInfoStepSubmitButton-CdweyyxM.js";
|
|
20
|
-
import { t as S } from "./BirthDateComponent-
|
|
20
|
+
import { t as S } from "./BirthDateComponent-llCfw7_W.js";
|
|
21
21
|
import { t as C } from "./PostalCodeComponent-YFm2z5qa.js";
|
|
22
|
-
import { t as w } from "./CountryComponentWrapper-
|
|
22
|
+
import { t as w } from "./CountryComponentWrapper-CAVCVXi7.js";
|
|
23
23
|
import { t as T } from "./City-BP95fpVf.js";
|
|
24
24
|
import { t as E } from "./AddressComponent-DluNaOpg.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-CvX2-UUd.js";
|
|
26
|
+
import { t as O } from "./CollegeNameComponent-2PXS2ePf.js";
|
|
27
|
+
import { t as k } from "./StateSelectComponent-Bt2ZmfME.js";
|
|
28
|
+
import { n as A, r as j, t as M } from "./DischargeDateComponent-1m_NMvKq.js";
|
|
29
29
|
import { t as N } from "./DriverLicenseNumberComponent-CQeKZs0G.js";
|
|
30
|
-
import { n as P, t as F } from "./LowIncomeOrganizationComponent-
|
|
31
|
-
import { t as I } from "./StatusComponent-
|
|
32
|
-
import { t as pe } from "./FirstResponderOrganizationComponent-
|
|
33
|
-
import { t as L } from "./LicensedProfessionalOrganizationComponent-
|
|
34
|
-
import { t as R } from "./MedicalProfessionalOrganizationComponent-
|
|
30
|
+
import { n as P, t as F } from "./LowIncomeOrganizationComponent-BQmLLIA7.js";
|
|
31
|
+
import { t as I } from "./StatusComponent-ajJ9Ta__.js";
|
|
32
|
+
import { t as pe } from "./FirstResponderOrganizationComponent-BPohnWTK.js";
|
|
33
|
+
import { t as L } from "./LicensedProfessionalOrganizationComponent-DsLT8IyE.js";
|
|
34
|
+
import { t as R } from "./MedicalProfessionalOrganizationComponent-Txm4_49Z.js";
|
|
35
35
|
import { t as z } from "./MemberIdComponent-D_KVob09.js";
|
|
36
|
-
import { t as B } from "./MembershipOrganizationComponent-
|
|
37
|
-
import { t as me } from "./TeacherSchoolComponent-
|
|
36
|
+
import { t as B } from "./MembershipOrganizationComponent-CjYBJsct.js";
|
|
37
|
+
import { t as me } from "./TeacherSchoolComponent-BPbepOfp.js";
|
|
38
38
|
import { t as he } from "./SSN-CtVtLOD7.js";
|
|
39
39
|
//#region src/components/StepCollectPersonalInfo/StepCollectPersonalInfoComponent.tsx
|
|
40
40
|
var V = /* @__PURE__ */ e(o(), 1), H = c(), U = a(({ intl: e, verificationService: a }) => {
|