@sheerid/jslib 2.277.0 → 2.278.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 +91 -90
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-CaMRwh5O.js +37 -0
- package/chunk/AddressComponent-CaMRwh5O.js.map +1 -0
- package/chunk/AddressComponent-LZTJCC-l.js +41 -0
- package/chunk/AddressComponent-LZTJCC-l.js.map +1 -0
- package/chunk/AnnouncingHeader-CCVSQeQR.js +4 -4
- package/chunk/AnnouncingHeader-YPjBYzsZ.js +4 -4
- package/chunk/{ApiUrls-C93kMsSC.js → ApiUrls-DRCiQtw6.js} +5 -5
- package/chunk/{ApiUrls-C93kMsSC.js.map → ApiUrls-DRCiQtw6.js.map} +1 -1
- package/chunk/{ApiUrls-BEuqNxHS.js → ApiUrls-_Hc7S_uv.js} +5 -5
- package/chunk/{ApiUrls-BEuqNxHS.js.map → ApiUrls-_Hc7S_uv.js.map} +1 -1
- package/chunk/{BirthDateComponent-f9e4it7x.js → BirthDateComponent-CAQJ-IWM.js} +5 -5
- package/chunk/{BirthDateComponent-MZDnneXy.js.map → BirthDateComponent-CAQJ-IWM.js.map} +1 -1
- package/chunk/{BirthDateComponent-MZDnneXy.js → BirthDateComponent-_BjsBSM4.js} +5 -5
- package/chunk/{BirthDateComponent-f9e4it7x.js.map → BirthDateComponent-_BjsBSM4.js.map} +1 -1
- package/chunk/{CaptchaComponent-CCq7YSum.js → CaptchaComponent-BqREyMje.js} +118 -117
- package/chunk/CaptchaComponent-BqREyMje.js.map +1 -0
- package/chunk/{CaptchaComponent-hqx9tSkk.js → CaptchaComponent-D2OIvL-b.js} +118 -117
- package/chunk/CaptchaComponent-D2OIvL-b.js.map +1 -0
- package/chunk/{ChangeLocaleComponent-DtJjnuBc.js → ChangeLocaleComponent-BvnXlDa-.js} +5 -5
- package/chunk/{ChangeLocaleComponent-CKKK4OcA.js.map → ChangeLocaleComponent-BvnXlDa-.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CKKK4OcA.js → ChangeLocaleComponent-CpHB_D8Q.js} +5 -5
- package/chunk/{ChangeLocaleComponent-DtJjnuBc.js.map → ChangeLocaleComponent-CpHB_D8Q.js.map} +1 -1
- package/chunk/City-B6bQRRvQ.js +40 -0
- package/chunk/City-B6bQRRvQ.js.map +1 -0
- package/chunk/City-CCBan228.js +36 -0
- package/chunk/City-CCBan228.js.map +1 -0
- package/chunk/{CollegeNameComponent-C47D3rO4.js → CollegeNameComponent-BbxIOfzR.js} +5 -5
- package/chunk/{CollegeNameComponent-4QYMIIcd.js.map → CollegeNameComponent-BbxIOfzR.js.map} +1 -1
- package/chunk/{CollegeNameComponent-4QYMIIcd.js → CollegeNameComponent-CEJO0-bq.js} +5 -5
- package/chunk/{CollegeNameComponent-C47D3rO4.js.map → CollegeNameComponent-CEJO0-bq.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-DGi3bxV2.js +4 -4
- package/chunk/CopyToClipboardComponent-cLuyXFes.js +4 -4
- package/chunk/CountryComponentWrapper-BNtvUusJ.js +82 -0
- package/chunk/CountryComponentWrapper-BNtvUusJ.js.map +1 -0
- package/chunk/CountryComponentWrapper-CW4yj9IF.js +78 -0
- package/chunk/CountryComponentWrapper-CW4yj9IF.js.map +1 -0
- package/chunk/DischargeDateComponent-CNaz5UZP.js +120 -0
- package/chunk/DischargeDateComponent-CNaz5UZP.js.map +1 -0
- package/chunk/DischargeDateComponent-tTwN3FLy.js +116 -0
- package/chunk/DischargeDateComponent-tTwN3FLy.js.map +1 -0
- package/chunk/DriverLicenseNumberComponent-B5_svahy.js +43 -0
- package/chunk/DriverLicenseNumberComponent-B5_svahy.js.map +1 -0
- package/chunk/DriverLicenseNumberComponent-vsVldXkA.js +39 -0
- package/chunk/DriverLicenseNumberComponent-vsVldXkA.js.map +1 -0
- package/chunk/{EmailLoopPending-HyZBgisU.js → EmailLoopPending-CYCQv7pW.js} +5 -5
- package/chunk/{EmailLoopPending-HyZBgisU.js.map → EmailLoopPending-CYCQv7pW.js.map} +1 -1
- package/chunk/{EmailLoopPending-ojWCBFjq.js → EmailLoopPending-DNFHR6Ck.js} +5 -5
- package/chunk/{EmailLoopPending-ojWCBFjq.js.map → EmailLoopPending-DNFHR6Ck.js.map} +1 -1
- package/chunk/{ExtraMessage-PLTUBdhw.js → ExtraMessage-Byw0Tgm1.js} +5 -5
- package/chunk/{ExtraMessage-BXxlQROb.js.map → ExtraMessage-Byw0Tgm1.js.map} +1 -1
- package/chunk/{ExtraMessage-BXxlQROb.js → ExtraMessage-g4LSV-H2.js} +5 -5
- package/chunk/{ExtraMessage-PLTUBdhw.js.map → ExtraMessage-g4LSV-H2.js.map} +1 -1
- package/chunk/FirstResponderOrganizationComponent-BtIXngo4.js +41 -0
- package/chunk/FirstResponderOrganizationComponent-BtIXngo4.js.map +1 -0
- package/chunk/FirstResponderOrganizationComponent-DVF6aC7P.js +37 -0
- package/chunk/FirstResponderOrganizationComponent-DVF6aC7P.js.map +1 -0
- package/chunk/{FormFieldInputSelect-Cl4QZ12h.js → FormFieldInputSelect-D1aFx17c.js} +5 -5
- package/chunk/{FormFieldInputSelect-C6OyLsWL.js.map → FormFieldInputSelect-D1aFx17c.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-C6OyLsWL.js → FormFieldInputSelect-ie6Vx1Bx.js} +5 -5
- package/chunk/{FormFieldInputSelect-Cl4QZ12h.js.map → FormFieldInputSelect-ie6Vx1Bx.js.map} +1 -1
- package/chunk/FormFieldLayout-C4SCdGBC.js +4 -4
- package/chunk/FormFieldLayout-Cj_v9kYa.js +4 -4
- package/chunk/FormFieldText-BbdrtNh_.js +4 -4
- package/chunk/FormFieldText-Gf13Luq7.js +4 -4
- package/chunk/{FormFieldTypeahead-DbrQgvbJ.js → FormFieldTypeahead-DQEez7ko.js} +466 -469
- package/chunk/{FormFieldTypeahead-DTFxOQnf.js.map → FormFieldTypeahead-DQEez7ko.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DTFxOQnf.js → FormFieldTypeahead-uKX8ZHqO.js} +385 -388
- package/chunk/{FormFieldTypeahead-DbrQgvbJ.js.map → FormFieldTypeahead-uKX8ZHqO.js.map} +1 -1
- package/chunk/FormFooterComponent-BHQc5VBK.js +2007 -0
- package/chunk/FormFooterComponent-BHQc5VBK.js.map +1 -0
- package/chunk/FormFooterComponent-CAoH3NjO.js +1981 -0
- package/chunk/FormFooterComponent-CAoH3NjO.js.map +1 -0
- package/chunk/{FormSelectChoice-C4LlT7fR.js → FormSelectChoice-Cm99LmoK.js} +5 -5
- package/chunk/{FormSelectChoice-C4LlT7fR.js.map → FormSelectChoice-Cm99LmoK.js.map} +1 -1
- package/chunk/{FormSelectChoice-CClt04rV.js → FormSelectChoice-DjcUTWnw.js} +5 -5
- package/chunk/{FormSelectChoice-CClt04rV.js.map → FormSelectChoice-DjcUTWnw.js.map} +1 -1
- package/chunk/InputText-BXPuBlPq.js +4 -4
- package/chunk/InputText-h_myNeHr.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-BHrQmG_W.js +40 -0
- package/chunk/LicensedProfessionalOrganizationComponent-BHrQmG_W.js.map +1 -0
- package/chunk/LicensedProfessionalOrganizationComponent-DMdDUhnU.js +36 -0
- package/chunk/LicensedProfessionalOrganizationComponent-DMdDUhnU.js.map +1 -0
- package/chunk/LogoComponent-Do8K5ydz.js +4 -4
- package/chunk/LogoComponent-Dx1G-rzE.js +4 -4
- package/chunk/LowIncomeOrganizationComponent-CZnbIM2h.js +101 -0
- package/chunk/LowIncomeOrganizationComponent-CZnbIM2h.js.map +1 -0
- package/chunk/LowIncomeOrganizationComponent-DLxB_wnC.js +105 -0
- package/chunk/LowIncomeOrganizationComponent-DLxB_wnC.js.map +1 -0
- package/chunk/MedicalProfessionalOrganizationComponent-CozwSmoI.js +41 -0
- package/chunk/MedicalProfessionalOrganizationComponent-CozwSmoI.js.map +1 -0
- package/chunk/MedicalProfessionalOrganizationComponent-t-k48G10.js +37 -0
- package/chunk/MedicalProfessionalOrganizationComponent-t-k48G10.js.map +1 -0
- package/chunk/MemberIdComponent-BzUuPdSk.js +39 -0
- package/chunk/MemberIdComponent-BzUuPdSk.js.map +1 -0
- package/chunk/MemberIdComponent-CYqH9MG5.js +43 -0
- package/chunk/MemberIdComponent-CYqH9MG5.js.map +1 -0
- package/chunk/MembershipOrganizationComponent-BPQ27RX9.js +40 -0
- package/chunk/MembershipOrganizationComponent-BPQ27RX9.js.map +1 -0
- package/chunk/MembershipOrganizationComponent-Bbu2i3Dm.js +36 -0
- package/chunk/MembershipOrganizationComponent-Bbu2i3Dm.js.map +1 -0
- package/chunk/{FormFooterComponent-CaOt9TQw.js → Message-BK3a2RyH.js} +1417 -3384
- package/chunk/Message-BK3a2RyH.js.map +1 -0
- package/chunk/Message-CSa2etjX.js +6859 -0
- package/chunk/Message-CSa2etjX.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-DA3ceOLw.js → PersonalInfoStepSubmitButton-BcdQUzMO.js} +34 -33
- package/chunk/PersonalInfoStepSubmitButton-BcdQUzMO.js.map +1 -0
- package/chunk/{PersonalInfoStepSubmitButton-D_Y9q0Iy.js → PersonalInfoStepSubmitButton-VxT_vwVv.js} +34 -33
- package/chunk/PersonalInfoStepSubmitButton-VxT_vwVv.js.map +1 -0
- package/chunk/{PersonalInfoStepWrapper-6neTJTQD.js → PersonalInfoStepWrapper-BHS3GKl7.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-6neTJTQD.js.map → PersonalInfoStepWrapper-BHS3GKl7.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-Dsb0Qcv5.js → PersonalInfoStepWrapper-CxRB64LQ.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-Dsb0Qcv5.js.map → PersonalInfoStepWrapper-CxRB64LQ.js.map} +1 -1
- package/chunk/PostalCodeComponent-CKbC80_m.js +38 -0
- package/chunk/PostalCodeComponent-CKbC80_m.js.map +1 -0
- package/chunk/PostalCodeComponent-jmSOU3LM.js +42 -0
- package/chunk/PostalCodeComponent-jmSOU3LM.js.map +1 -0
- package/chunk/SSN-DHAzpgQK.js +45 -0
- package/chunk/SSN-DHAzpgQK.js.map +1 -0
- package/chunk/SSN-DNVykxAU.js +49 -0
- package/chunk/SSN-DNVykxAU.js.map +1 -0
- package/chunk/StateSelectComponent-B5lHw2N5.js +42 -0
- package/chunk/StateSelectComponent-B5lHw2N5.js.map +1 -0
- package/chunk/StateSelectComponent-B7Cp6ANo.js +38 -0
- package/chunk/StateSelectComponent-B7Cp6ANo.js.map +1 -0
- package/chunk/{StatusComponent-BxQNsHYs.js → StatusComponent-CrGh5fqB.js} +5 -5
- package/chunk/{StatusComponent-BTvs1WVn.js.map → StatusComponent-CrGh5fqB.js.map} +1 -1
- package/chunk/{StatusComponent-BTvs1WVn.js → StatusComponent-CyX5COrt.js} +5 -5
- package/chunk/{StatusComponent-BxQNsHYs.js.map → StatusComponent-CyX5COrt.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-UWfkIpnn.js → StepAgePersonalInfo-BswIeVCd.js} +16 -16
- package/chunk/{StepAgePersonalInfo-BOnOqXxm.js.map → StepAgePersonalInfo-BswIeVCd.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BOnOqXxm.js → StepAgePersonalInfo-CHBH5ROm.js} +16 -16
- package/chunk/{StepAgePersonalInfo-UWfkIpnn.js.map → StepAgePersonalInfo-CHBH5ROm.js.map} +1 -1
- package/chunk/StepCard-B0o7IN6g.js +4 -4
- package/chunk/StepCard-CWT2BiAH.js +4 -4
- package/chunk/{StepCollectIdentifier-CtpUvhZs.js → StepCollectIdentifier-D8IjgFjI.js} +6 -6
- package/chunk/{StepCollectIdentifier-D7bSwvYI.js.map → StepCollectIdentifier-D8IjgFjI.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-D7bSwvYI.js → StepCollectIdentifier-dPXJHRwi.js} +8 -8
- package/chunk/{StepCollectIdentifier-CtpUvhZs.js.map → StepCollectIdentifier-dPXJHRwi.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js → StepCollectMilitaryPersonalInfoComponent-BanhTbjr.js} +19 -19
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js.map → StepCollectMilitaryPersonalInfoComponent-BanhTbjr.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-BcmZhgl3.js → StepCollectMilitaryPersonalInfoComponent-nUcsuObN.js} +19 -19
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CHxXr8xM.js.map → StepCollectMilitaryPersonalInfoComponent-nUcsuObN.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-BlAJbqgb.js → StepCollectPersonalInfo-BLClPcAC.js} +31 -31
- package/chunk/{StepCollectPersonalInfo-BlAJbqgb.js.map → StepCollectPersonalInfo-BLClPcAC.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-CzLVKlZ3.js → StepCollectPersonalInfo-BvBAA_0_.js} +30 -30
- package/chunk/{StepCollectPersonalInfo-CzLVKlZ3.js.map → StepCollectPersonalInfo-BvBAA_0_.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-Cnv_QzG7.js +4 -4
- package/chunk/StepCompleteAuthentication-D7NH3MFa.js +4 -4
- package/chunk/{StepConsolation-C5ZHdmQ6.js → StepConsolation-CKbOj-OW.js} +5 -5
- package/chunk/{StepConsolation-BrzJnbYN.js.map → StepConsolation-CKbOj-OW.js.map} +1 -1
- package/chunk/{StepConsolation-BrzJnbYN.js → StepConsolation-qvCq7iMz.js} +5 -5
- package/chunk/{StepConsolation-C5ZHdmQ6.js.map → StepConsolation-qvCq7iMz.js.map} +1 -1
- package/chunk/{StepDocUpload-D2_e55pR.js → StepDocUpload-CelPrD2S.js} +9 -8
- package/chunk/{StepDocUpload-BuH-EW5U.js.map → StepDocUpload-CelPrD2S.js.map} +1 -1
- package/chunk/{StepDocUpload-BuH-EW5U.js → StepDocUpload-hbZjFKLA.js} +9 -8
- package/chunk/{StepDocUpload-D2_e55pR.js.map → StepDocUpload-hbZjFKLA.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DcVZb5ke.js → StepDriverLicensePersonalInfoComponent-DeMFZtEJ.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-DcVZb5ke.js.map → StepDriverLicensePersonalInfoComponent-DeMFZtEJ.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-UZoq9OhC.js → StepDriverLicensePersonalInfoComponent-Dz5hU0Hz.js} +12 -12
- package/chunk/{StepDriverLicensePersonalInfoComponent-UZoq9OhC.js.map → StepDriverLicensePersonalInfoComponent-Dz5hU0Hz.js.map} +1 -1
- package/chunk/{StepEmailLoop-138hnevc.js → StepEmailLoop-B_D0MzXV.js} +6 -6
- package/chunk/{StepEmailLoop-138hnevc.js.map → StepEmailLoop-B_D0MzXV.js.map} +1 -1
- package/chunk/{StepEmailLoop-p3PjfBvc.js → StepEmailLoop-DnFBaEUV.js} +6 -6
- package/chunk/{StepEmailLoop-p3PjfBvc.js.map → StepEmailLoop-DnFBaEUV.js.map} +1 -1
- package/chunk/StepEmploymentPersonalInfo-CWyReZIX.js +220 -0
- package/chunk/StepEmploymentPersonalInfo-CWyReZIX.js.map +1 -0
- package/chunk/StepEmploymentPersonalInfo-D6wk7BPP.js +216 -0
- package/chunk/StepEmploymentPersonalInfo-D6wk7BPP.js.map +1 -0
- package/chunk/{StepFirstResponderPersonalInfo-CSGMgT02.js → StepFirstResponderPersonalInfo-BEYQjJZE.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-CSGMgT02.js.map → StepFirstResponderPersonalInfo-BEYQjJZE.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-gF_5zHxj.js → StepFirstResponderPersonalInfo-WFafxPno.js} +19 -19
- package/chunk/{StepFirstResponderPersonalInfo-gF_5zHxj.js.map → StepFirstResponderPersonalInfo-WFafxPno.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js → StepGeneralIdentityPersonalInfoComponent-CO2Kb2oA.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js.map → StepGeneralIdentityPersonalInfoComponent-CO2Kb2oA.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cgp_PX5L.js → StepGeneralIdentityPersonalInfoComponent-Cu_uA-EX.js} +15 -15
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D4wP5D1G.js.map → StepGeneralIdentityPersonalInfoComponent-Cu_uA-EX.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js → StepHybridIdentityPersonalInfoComponent-DjYZWEyO.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Cez-TR1Z.js.map → StepHybridIdentityPersonalInfoComponent-DjYZWEyO.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js → StepHybridIdentityPersonalInfoComponent-Dnr2P36W.js} +16 -16
- package/chunk/{StepHybridIdentityPersonalInfoComponent-ChtlT4nZ.js.map → StepHybridIdentityPersonalInfoComponent-Dnr2P36W.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CX6VsvAJ.js → StepIDCheckLoop-3dEcYNM-.js} +5 -5
- package/chunk/{StepIDCheckLoop-CX6VsvAJ.js.map → StepIDCheckLoop-3dEcYNM-.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-DFhu-v9n.js → StepIDCheckLoop-ADjD8T7n.js} +5 -5
- package/chunk/{StepIDCheckLoop-DFhu-v9n.js.map → StepIDCheckLoop-ADjD8T7n.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-0o-ZdynC.js → StepIDCheckLoopOnfido-DFITsdwV.js} +11 -11
- package/chunk/{StepIDCheckLoopOnfido-0o-ZdynC.js.map → StepIDCheckLoopOnfido-DFITsdwV.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CiuUU7f9.js → StepIDCheckLoopOnfido-u841Fq12.js} +11 -11
- package/chunk/{StepIDCheckLoopOnfido-CiuUU7f9.js.map → StepIDCheckLoopOnfido-u841Fq12.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D5Ln2I62.js → StepIDCheckLoopRegula-4XrJNB8_.js} +6 -5
- package/chunk/{StepIDCheckLoopRegula-D5Ln2I62.js.map → StepIDCheckLoopRegula-4XrJNB8_.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D94f7Ccr.js → StepIDCheckLoopRegula-DDU-aqdl.js} +6 -5
- package/chunk/{StepIDCheckLoopRegula-D94f7Ccr.js.map → StepIDCheckLoopRegula-DDU-aqdl.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BHInsLPJ.js → StepLicensedProfessionalPersonalInfo-BXscxOmH.js} +16 -16
- package/chunk/{StepLicensedProfessionalPersonalInfo-BHInsLPJ.js.map → StepLicensedProfessionalPersonalInfo-BXscxOmH.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CHQbAgsG.js → StepLicensedProfessionalPersonalInfo-CvU4u5nA.js} +16 -16
- package/chunk/{StepLicensedProfessionalPersonalInfo-CHQbAgsG.js.map → StepLicensedProfessionalPersonalInfo-CvU4u5nA.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DVDI4DRm.js → StepLowIncomePersonalInfo-BD5AdV7z.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-DVDI4DRm.js.map → StepLowIncomePersonalInfo-BD5AdV7z.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-oBDI4ML2.js → StepLowIncomePersonalInfo-BlvN-faw.js} +21 -21
- package/chunk/{StepLowIncomePersonalInfo-oBDI4ML2.js.map → StepLowIncomePersonalInfo-BlvN-faw.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmoUExs9.js → StepMedicalProfessionalPersonalInfo-D-wc9M27.js} +17 -17
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmoUExs9.js.map → StepMedicalProfessionalPersonalInfo-D-wc9M27.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-_x2wcVNS.js → StepMedicalProfessionalPersonalInfo-DzPoAdkI.js} +17 -17
- package/chunk/{StepMedicalProfessionalPersonalInfo-_x2wcVNS.js.map → StepMedicalProfessionalPersonalInfo-DzPoAdkI.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CI9Q06Ic.js → StepMemberPersonalInfo-BwhcP3-x.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-BAjKLJCl.js.map → StepMemberPersonalInfo-BwhcP3-x.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BAjKLJCl.js → StepMemberPersonalInfo-DcH87kDt.js} +14 -14
- package/chunk/{StepMemberPersonalInfo-CI9Q06Ic.js.map → StepMemberPersonalInfo-DcH87kDt.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DIkMi5zU.js → StepMoverPersonalInfo-C3e_5Bhi.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-CVT4pPa6.js.map → StepMoverPersonalInfo-C3e_5Bhi.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-CVT4pPa6.js → StepMoverPersonalInfo-DdAYuWun.js} +12 -12
- package/chunk/{StepMoverPersonalInfo-DIkMi5zU.js.map → StepMoverPersonalInfo-DdAYuWun.js.map} +1 -1
- package/chunk/{StepOverrideComponent-B9HVSPlq.js → StepOverrideComponent-BA6ZbYda.js} +5 -5
- package/chunk/{StepOverrideComponent-B9HVSPlq.js.map → StepOverrideComponent-BA6ZbYda.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DOBT7C22.js → StepOverrideComponent-C58-KkL6.js} +5 -5
- package/chunk/{StepOverrideComponent-DOBT7C22.js.map → StepOverrideComponent-C58-KkL6.js.map} +1 -1
- package/chunk/{StepSMSLoop-BM7UE2tP.js → StepSMSLoop-CiFQF0bq.js} +73 -72
- package/chunk/StepSMSLoop-CiFQF0bq.js.map +1 -0
- package/chunk/{StepSMSLoop-Wr-MrFaf.js → StepSMSLoop-DmbMtSCW.js} +73 -72
- package/chunk/StepSMSLoop-DmbMtSCW.js.map +1 -0
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-LcWg-zo5.js → StepSocialSecurityNumber-6QeIRjAc.js} +7 -7
- package/chunk/{StepSocialSecurityNumber-DepVz3V7.js.map → StepSocialSecurityNumber-6QeIRjAc.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-DepVz3V7.js → StepSocialSecurityNumber-kcHexBbp.js} +7 -7
- package/chunk/{StepSocialSecurityNumber-LcWg-zo5.js.map → StepSocialSecurityNumber-kcHexBbp.js.map} +1 -1
- package/chunk/StepStudentPersonalInfo-CJJbSZ_C.js +216 -0
- package/chunk/StepStudentPersonalInfo-CJJbSZ_C.js.map +1 -0
- package/chunk/StepStudentPersonalInfo-ubt7IGBA.js +220 -0
- package/chunk/StepStudentPersonalInfo-ubt7IGBA.js.map +1 -0
- package/chunk/{StepSuccess-CvK7t1zN.js → StepSuccess-Cc0UdSaD.js} +5 -5
- package/chunk/{StepSuccess-C3a0CPsE.js.map → StepSuccess-Cc0UdSaD.js.map} +1 -1
- package/chunk/{StepSuccess-C3a0CPsE.js → StepSuccess-ZEmH-ZFX.js} +5 -5
- package/chunk/{StepSuccess-CvK7t1zN.js.map → StepSuccess-ZEmH-ZFX.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DhOL3_0H.js → StepTeacherPersonalInfo-CiHN6WAb.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-DhOL3_0H.js.map → StepTeacherPersonalInfo-CiHN6WAb.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-_Wwkq-dn.js → StepTeacherPersonalInfo-X7uaefYx.js} +15 -15
- package/chunk/{StepTeacherPersonalInfo-_Wwkq-dn.js.map → StepTeacherPersonalInfo-X7uaefYx.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-BwLUGmNi.js → TeacherSchoolComponent-DH3cPm43.js} +5 -5
- package/chunk/{TeacherSchoolComponent-3HVz97q_.js.map → TeacherSchoolComponent-DH3cPm43.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-3HVz97q_.js → TeacherSchoolComponent-DL4ZFk5x.js} +5 -5
- package/chunk/{TeacherSchoolComponent-BwLUGmNi.js.map → TeacherSchoolComponent-DL4ZFk5x.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CAGESMw9.js +4 -4
- package/chunk/TestingRouteOverrides-CrhfSmLr.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-BcE3SjuJ.js → VerificationApiClient-CVe2IgK7.js} +5 -5
- package/chunk/{VerificationApiClient-BcE3SjuJ.js.map → VerificationApiClient-CVe2IgK7.js.map} +1 -1
- package/chunk/{VerificationApiClient-fJ7P4ejD.js → VerificationApiClient-DOQLbKh3.js} +5 -5
- package/chunk/{VerificationApiClient-fJ7P4ejD.js.map → VerificationApiClient-DOQLbKh3.js.map} +1 -1
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/countryUtils-AR9k3KRg.js +4 -4
- package/chunk/countryUtils-DWqId-zY.js +4 -4
- package/chunk/cs-CYGsmvju.js +4 -4
- package/chunk/da-COZWvvUD.js +4 -4
- package/chunk/de-BHclNQGr.js +4 -4
- package/chunk/{downshift.esm-DryiNDJI.js → downshift.esm-5BwX87os.js} +5 -5
- package/chunk/{downshift.esm-BKI3sFd7.js.map → downshift.esm-5BwX87os.js.map} +1 -1
- package/chunk/{downshift.esm-BKI3sFd7.js → downshift.esm-GtunYkBG.js} +5 -5
- package/chunk/{downshift.esm-DryiNDJI.js.map → downshift.esm-GtunYkBG.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/empties-B6naRhes.js +4 -4
- package/chunk/empties-Crmkxudi.js +4 -4
- package/chunk/en-GB-CkENrh2I.js +4 -4
- package/chunk/es-BRKAFTKN.js +4 -4
- package/chunk/es-ES-BWfAbWbQ.js +4 -4
- package/chunk/et-CxMgVbW2.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEC3aNBF.js +4 -4
- package/chunk/fi-BaP3FR15.js +4 -4
- package/chunk/fr-CA-CS4SuM-m.js +4 -4
- package/chunk/fr-DSU2B7p2.js +4 -4
- package/chunk/ga-DZEr9X_A.js +4 -4
- package/chunk/hi-IN-DvBVpWNQ.js +4 -4
- package/chunk/hooks-C15H5pD-.js +4 -4
- package/chunk/hooks-ChQrxN58.js +4 -4
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/intl-e5WHiYfA.js +4 -4
- package/chunk/is-tpzRyIZi.js +4 -4
- package/chunk/it-C3-BupR4.js +4 -4
- package/chunk/iw-CBna3XPT.js +4 -4
- package/chunk/ja-DvXOkZRn.js +4 -4
- package/chunk/jsx-runtime-Ini3eO9_.js +4 -4
- package/chunk/jsx-runtime-LqzCS-0D.js +4 -4
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/mocks-DGc1byho.js +4 -4
- package/chunk/mocks-RU9BGNOn.js +4 -4
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/options-pBCAJBwS.js +4 -4
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/programThemeGetters-C9Sw0RZq.js +4 -4
- package/chunk/programThemeGetters-uLsgGat1.js +4 -4
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/refs-CGvEbCaw.js +4 -4
- package/chunk/refs-CI3K5ndt.js +4 -4
- package/chunk/ro-C74ZR3HS.js +4 -4
- package/chunk/ru-BA9P3RVu.js +4 -4
- package/chunk/sk-DmyizV49.js +4 -4
- package/chunk/sl-Cxm3YoWE.js +4 -4
- package/chunk/sr-gOtgEOlP.js +4 -4
- package/chunk/stepComponentHelpers-BdqtwfRd.js +4 -4
- package/chunk/stepComponentHelpers-DIHMDrmF.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DnCUWo1-.js +4 -4
- package/chunk/sw-BY7XXvUU.js +4 -4
- package/chunk/ta-CVL0b6Hh.js +4 -4
- package/chunk/th-CyU0RW3x.js +4 -4
- package/chunk/tl-BfgQ0irB.js +4 -4
- package/chunk/tr-BPg_L4bY.js +4 -4
- package/chunk/uk-CNaioa7V.js +4 -4
- package/chunk/ur-Ht1Mcpm0.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-D7OQBDpX.js → useCollectFieldsEndpoint-74jMd594.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-D7OQBDpX.js.map → useCollectFieldsEndpoint-74jMd594.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-BsX_IHLN.js → useCollectFieldsEndpoint-dSngHehw.js} +7 -7
- package/chunk/{useCollectFieldsEndpoint-BsX_IHLN.js.map → useCollectFieldsEndpoint-dSngHehw.js.map} +1 -1
- package/chunk/useMetrics-BrHWTzbP.js +4 -4
- package/chunk/useMetrics-O5xTFm6y.js +4 -4
- package/chunk/vi-sI1BYLXG.js +4 -4
- package/chunk/zh-DNG4VB8r.js +4 -4
- package/chunk/zh-HK-5Y3ROXEm.js +4 -4
- package/chunk/zu-DNMG8Idu.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +654 -653
- package/sheerid.js.map +1 -1
- package/chunk/AddressComponent-C3iwf09x.js +0 -40
- package/chunk/AddressComponent-C3iwf09x.js.map +0 -1
- package/chunk/AddressComponent-oDHvr6bn.js +0 -36
- package/chunk/AddressComponent-oDHvr6bn.js.map +0 -1
- package/chunk/CaptchaComponent-CCq7YSum.js.map +0 -1
- package/chunk/CaptchaComponent-hqx9tSkk.js.map +0 -1
- package/chunk/City-CUVEjTrI.js +0 -39
- package/chunk/City-CUVEjTrI.js.map +0 -1
- package/chunk/City-Drub1WX8.js +0 -35
- package/chunk/City-Drub1WX8.js.map +0 -1
- package/chunk/CountryComponentWrapper-B3Ki9bAz.js +0 -78
- package/chunk/CountryComponentWrapper-B3Ki9bAz.js.map +0 -1
- package/chunk/CountryComponentWrapper-DeR9PrA2.js +0 -82
- package/chunk/CountryComponentWrapper-DeR9PrA2.js.map +0 -1
- package/chunk/DischargeDateComponent-Btg3v71t.js +0 -117
- package/chunk/DischargeDateComponent-Btg3v71t.js.map +0 -1
- package/chunk/DischargeDateComponent-CqKUrGE0.js +0 -121
- package/chunk/DischargeDateComponent-CqKUrGE0.js.map +0 -1
- package/chunk/DriverLicenseNumberComponent-B2arYwHU.js +0 -42
- package/chunk/DriverLicenseNumberComponent-B2arYwHU.js.map +0 -1
- package/chunk/DriverLicenseNumberComponent-ByNoEq6v.js +0 -38
- package/chunk/DriverLicenseNumberComponent-ByNoEq6v.js.map +0 -1
- package/chunk/FirstResponderOrganizationComponent-BiI8JG49.js +0 -36
- package/chunk/FirstResponderOrganizationComponent-BiI8JG49.js.map +0 -1
- package/chunk/FirstResponderOrganizationComponent-BwzXdBV-.js +0 -40
- package/chunk/FirstResponderOrganizationComponent-BwzXdBV-.js.map +0 -1
- package/chunk/FormFooterComponent-B2W5vjOS.js +0 -8856
- package/chunk/FormFooterComponent-B2W5vjOS.js.map +0 -1
- package/chunk/FormFooterComponent-CaOt9TQw.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-wJSn67h6.js +0 -39
- package/chunk/LicensedProfessionalOrganizationComponent-wJSn67h6.js.map +0 -1
- package/chunk/LicensedProfessionalOrganizationComponent-wfXwXvVc.js +0 -35
- package/chunk/LicensedProfessionalOrganizationComponent-wfXwXvVc.js.map +0 -1
- package/chunk/LowIncomeOrganizationComponent-C3Dc7HeO.js +0 -110
- package/chunk/LowIncomeOrganizationComponent-C3Dc7HeO.js.map +0 -1
- package/chunk/LowIncomeOrganizationComponent-D8RlrBXa.js +0 -106
- package/chunk/LowIncomeOrganizationComponent-D8RlrBXa.js.map +0 -1
- package/chunk/MedicalProfessionalOrganizationComponent-BlEmZTpI.js +0 -40
- package/chunk/MedicalProfessionalOrganizationComponent-BlEmZTpI.js.map +0 -1
- package/chunk/MedicalProfessionalOrganizationComponent-DS1iVIfQ.js +0 -36
- package/chunk/MedicalProfessionalOrganizationComponent-DS1iVIfQ.js.map +0 -1
- package/chunk/MemberIdComponent-5OnkQeLm.js +0 -42
- package/chunk/MemberIdComponent-5OnkQeLm.js.map +0 -1
- package/chunk/MemberIdComponent-sR9aGDN4.js +0 -38
- package/chunk/MemberIdComponent-sR9aGDN4.js.map +0 -1
- package/chunk/MembershipOrganizationComponent-BrbunU1_.js +0 -35
- package/chunk/MembershipOrganizationComponent-BrbunU1_.js.map +0 -1
- package/chunk/MembershipOrganizationComponent-UqzaA4bV.js +0 -39
- package/chunk/MembershipOrganizationComponent-UqzaA4bV.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-DA3ceOLw.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-D_Y9q0Iy.js.map +0 -1
- package/chunk/PostalCodeComponent-BhBBSAL-.js +0 -41
- package/chunk/PostalCodeComponent-BhBBSAL-.js.map +0 -1
- package/chunk/PostalCodeComponent-DKC3DspF.js +0 -37
- package/chunk/PostalCodeComponent-DKC3DspF.js.map +0 -1
- package/chunk/SSN-7DHOlAAq.js +0 -44
- package/chunk/SSN-7DHOlAAq.js.map +0 -1
- package/chunk/SSN-DlBvRiaZ.js +0 -48
- package/chunk/SSN-DlBvRiaZ.js.map +0 -1
- package/chunk/StateSelectComponent-BXHXB6Kn.js +0 -44
- package/chunk/StateSelectComponent-BXHXB6Kn.js.map +0 -1
- package/chunk/StateSelectComponent-lM5e-_1v.js +0 -40
- package/chunk/StateSelectComponent-lM5e-_1v.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-CIb2V_Aj.js +0 -219
- package/chunk/StepEmploymentPersonalInfo-CIb2V_Aj.js.map +0 -1
- package/chunk/StepEmploymentPersonalInfo-txyihsja.js +0 -215
- package/chunk/StepEmploymentPersonalInfo-txyihsja.js.map +0 -1
- package/chunk/StepSMSLoop-BM7UE2tP.js.map +0 -1
- package/chunk/StepSMSLoop-Wr-MrFaf.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-CxPq9ICS.js +0 -218
- package/chunk/StepStudentPersonalInfo-CxPq9ICS.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-DQMWaRSa.js +0 -222
- package/chunk/StepStudentPersonalInfo-DQMWaRSa.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"City-CUVEjTrI.js","names":[],"sources":["../../src/components/FormFields/City/City.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element; // eslint-disable-line\n onKeyDown?: Function;\n}\n\nexport const City = ({\n value,\n isErrored,\n onChange,\n intl,\n isRequired = false,\n onKeyDown = undefined,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"city\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"city\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder || intl.formatHTMLMessage({ id: \"cityPlaceholder\", defaultMessage: \"City\" })\n }\n label={<FormattedHTMLMessage id=\"city\" defaultMessage=\"City\" />}\n errorMessage={\n isErrored && <FormattedHTMLMessage id=\"errorId.invalidCity\" defaultMessage=\"Invalid city\" />\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n onKeyDown={typeof onKeyDown === \"function\" ? (e) => onKeyDown(e) : undefined}\n disabled={disabled}\n autoComplete=\"address-level2\"\n />\n );\n};\n\nexport const CityComponent = injectIntl(City);\n"],"mappings":";;;;aAiDa,IAAgB,GArCR,EACnB,UACA,cACA,aACA,SACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SAEW,EAAwB,MAAM,GAAG,SAG9C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACG;CACV,aACE,KAAe,EAAK,kBAAkB;EAAE,IAAI;EAAmB,gBAAgB;CAAO,CAAC;CAEzF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAO,gBAAe;CAAQ,CAAA;CAC9D,cACE,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAsB,gBAAe;CAAgB,CAAA;CAE7F,6BAA6B,CAAC,CAAC;CAC/B,UAAU;CACV,WAAW,OAAO,KAAc,cAAc,MAAM,EAAU,CAAC,IAAI,KAAA;CACzD;CACV,cAAa;AACd,CAAA,CAIuC"}
|
package/chunk/City-Drub1WX8.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.277.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787693415496
|
|
5
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:15 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
7
|
-
*/
|
|
8
|
-
import { a as e, n as t, t as n } from "./jsx-runtime-Ini3eO9_.js";
|
|
9
|
-
import { a as r } from "./stepComponentHelpers-DIHMDrmF.js";
|
|
10
|
-
import { t as i } from "./FormFieldText-BbdrtNh_.js";
|
|
11
|
-
//#region src/components/FormFields/City/City.tsx
|
|
12
|
-
var a = n(), o = e(({ value: e, isErrored: n, onChange: o, intl: s, isRequired: c = !1, onKeyDown: l = void 0, placeholder: u = "", disabled: d = !1 }) => r("city")?.hidden ? null : /* @__PURE__ */ (0, a.jsx)(i, {
|
|
13
|
-
fieldId: "city",
|
|
14
|
-
value: e,
|
|
15
|
-
onChange: o,
|
|
16
|
-
placeholder: u || s.formatHTMLMessage({
|
|
17
|
-
id: "cityPlaceholder",
|
|
18
|
-
defaultMessage: "City"
|
|
19
|
-
}),
|
|
20
|
-
label: /* @__PURE__ */ (0, a.jsx)(t, {
|
|
21
|
-
id: "city",
|
|
22
|
-
defaultMessage: "City"
|
|
23
|
-
}),
|
|
24
|
-
errorMessage: n && /* @__PURE__ */ (0, a.jsx)(t, {
|
|
25
|
-
id: "errorId.invalidCity",
|
|
26
|
-
defaultMessage: "Invalid city"
|
|
27
|
-
}),
|
|
28
|
-
showPlaceholderAndHideLabel: !!u,
|
|
29
|
-
required: c,
|
|
30
|
-
onKeyDown: typeof l == "function" ? (e) => l(e) : void 0,
|
|
31
|
-
disabled: d,
|
|
32
|
-
autoComplete: "address-level2"
|
|
33
|
-
}));
|
|
34
|
-
//#endregion
|
|
35
|
-
export { o as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"City-Drub1WX8.js","names":[],"sources":["../../src/components/FormFields/City/City.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element; // eslint-disable-line\n onKeyDown?: Function;\n}\n\nexport const City = ({\n value,\n isErrored,\n onChange,\n intl,\n isRequired = false,\n onKeyDown = undefined,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"city\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"city\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder || intl.formatHTMLMessage({ id: \"cityPlaceholder\", defaultMessage: \"City\" })\n }\n label={<FormattedHTMLMessage id=\"city\" defaultMessage=\"City\" />}\n errorMessage={\n isErrored && <FormattedHTMLMessage id=\"errorId.invalidCity\" defaultMessage=\"Invalid city\" />\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n onKeyDown={typeof onKeyDown === \"function\" ? (e) => onKeyDown(e) : undefined}\n disabled={disabled}\n autoComplete=\"address-level2\"\n />\n );\n};\n\nexport const CityComponent = injectIntl(City);\n"],"mappings":";;;;aAiDa,IAAgB,GArCR,EACnB,UACA,cACA,aACA,SACA,gBAAa,IACb,eAAY,KAAA,GACZ,iBAAc,IACd,cAAW,SAEW,EAAwB,MAAM,GAAG,SAG9C,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACG;CACV,aACE,KAAe,EAAK,kBAAkB;EAAE,IAAI;EAAmB,gBAAgB;CAAO,CAAC;CAEzF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAO,gBAAe;CAAQ,CAAA;CAC9D,cACE,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAsB,gBAAe;CAAgB,CAAA;CAE7F,6BAA6B,CAAC,CAAC;CAC/B,UAAU;CACV,WAAW,OAAO,KAAc,cAAc,MAAM,EAAU,CAAC,IAAI,KAAA;CACzD;CACV,cAAa;AACd,CAAA,CAIuC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.277.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787693415496
|
|
5
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:15 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
7
|
-
*/
|
|
8
|
-
import { Wt as e, c as t } from "./options-pBCAJBwS.js";
|
|
9
|
-
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-Ini3eO9_.js";
|
|
10
|
-
import { c as o, f as s } from "./FormFooterComponent-B2W5vjOS.js";
|
|
11
|
-
import { n as c } from "./empties-Crmkxudi.js";
|
|
12
|
-
import { n as l } from "./programThemeGetters-C9Sw0RZq.js";
|
|
13
|
-
import { u } from "./hooks-ChQrxN58.js";
|
|
14
|
-
import { _ as d, a as f, p, v as m } from "./stepComponentHelpers-DIHMDrmF.js";
|
|
15
|
-
import { t as h } from "./FormFieldInputSelect-C6OyLsWL.js";
|
|
16
|
-
//#region src/components/FormFields/Country/CountryComponent.tsx
|
|
17
|
-
var g = /* @__PURE__ */ e(r(), 1), _ = a(), v = n(({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: a, intl: o, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => /* @__PURE__ */ (0, _.jsx)(h, {
|
|
18
|
-
fieldId: "country",
|
|
19
|
-
options: n,
|
|
20
|
-
onChange: (e) => r(e),
|
|
21
|
-
onKeyDown: a,
|
|
22
|
-
placeholder: s || o.formatHTMLMessage({
|
|
23
|
-
id: "countryPlaceholder",
|
|
24
|
-
defaultMessage: "Country"
|
|
25
|
-
}),
|
|
26
|
-
value: n.find((t) => t.value === (e && e.value)),
|
|
27
|
-
isRequired: c,
|
|
28
|
-
label: /* @__PURE__ */ (0, _.jsx)(i, {
|
|
29
|
-
id: "country",
|
|
30
|
-
defaultMessage: "Country"
|
|
31
|
-
}),
|
|
32
|
-
errorMessage: t && /* @__PURE__ */ (0, _.jsx)(i, {
|
|
33
|
-
id: "errorId.invalidCountry",
|
|
34
|
-
defaultMessage: "Invalid country"
|
|
35
|
-
}),
|
|
36
|
-
showPlaceholderAndHideLabel: !!s,
|
|
37
|
-
suppressPlaceholder: l,
|
|
38
|
-
disabled: u
|
|
39
|
-
})), y = ({ verificationService: e, viewModelDraftDecorator: n = void 0, disabled: r = !1 }) => {
|
|
40
|
-
let i = s(), { i18n: a, msg: h } = o(), y = l(i).map((e) => ({
|
|
41
|
-
value: e,
|
|
42
|
-
label: h({ id: `countries.${e}` })
|
|
43
|
-
})).sort((e, t) => Intl.Collator(a.language).compare(e.label, t.label)), { fieldValidationErrors: b } = e, x = y.length > 1, S = f("country")?.hidden, C = (r) => {
|
|
44
|
-
let i = t(e.viewModel, (e) => {
|
|
45
|
-
e.countryChoice = r || void 0, e.country = r ? r.value : void 0, n && n(e, r), e.organization &&= c.organization;
|
|
46
|
-
});
|
|
47
|
-
e.updateViewModel(i);
|
|
48
|
-
};
|
|
49
|
-
return g.useEffect(() => {
|
|
50
|
-
let t = y.some((e) => e.value === "US");
|
|
51
|
-
if (!x && !t) {
|
|
52
|
-
let t = e.viewModel.fieldsToSkipValidation ? [...e.viewModel.fieldsToSkipValidation, "country"] : [
|
|
53
|
-
"country",
|
|
54
|
-
"address1",
|
|
55
|
-
"postalCode",
|
|
56
|
-
"state",
|
|
57
|
-
"city"
|
|
58
|
-
];
|
|
59
|
-
e.updateViewModel(p(e.viewModel, "fieldsToSkipValidation", t));
|
|
60
|
-
}
|
|
61
|
-
}, [x]), g.useEffect(() => {
|
|
62
|
-
d(t(e.fieldValidationErrors, (t) => {
|
|
63
|
-
t.country &&= u("country", e.viewModel.countryChoice, e.formValidationOptions), "postalCode" in e.viewModel && e.viewModel.postalCode && (t.postalCode = u("postalCode", e.viewModel.postalCode, e.formValidationOptions));
|
|
64
|
-
}), e);
|
|
65
|
-
}, [e.viewModel.countryChoice]), !x || S ? null : /* @__PURE__ */ (0, _.jsx)(v, {
|
|
66
|
-
isRequired: !0,
|
|
67
|
-
options: y,
|
|
68
|
-
value: e.viewModel.countryChoice,
|
|
69
|
-
isErrored: !!b.country,
|
|
70
|
-
disabled: r,
|
|
71
|
-
onChange: async (t) => {
|
|
72
|
-
let n = t ? t.value : void 0;
|
|
73
|
-
C(t), m("country", n, e);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
//#endregion
|
|
78
|
-
export { y as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CountryComponentWrapper-B3Ki9bAz.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\nexport const Country = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n intl,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"countryPlaceholder\", defaultMessage: \"Country\" })\n }\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CountryComponent = injectIntl(Country);\n","import React from \"react\";\nimport produce from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"@/lib/types/types\";\nimport {\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"@/lib/validators/validators\";\nimport { blankOrganization } from \"@/lib/types/empties\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\nexport const CountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n disabled = false,\n}: CountryComponentWrapperProps) => {\n const programTheme = useProgramTheme();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n const localeAwareSorter = (a, b) => Intl.Collator(i18n.language).compare(a.label, b.label);\n const countryChoices = availableCountries\n .map((countryCode) => ({\n value: countryCode,\n label: msg({ id: `countries.${countryCode}` }),\n }))\n .sort(localeAwareSorter);\n\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n"],"mappings":";;;;;;;;;4CA2CA,IAAA,GAtCA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,SAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;EAsCA,GCRa,KAA2B,EACtC,wBACA,6BAA0B,KAAA,GAC1B,cAAW,SACuB;CAClC,IAAM,IAAe,EAAgB,GAC/B,EAAE,SAAM,WAAQ,EAAW,GAI3B,IAFgC,EAAuB,CAEtC,EACpB,KAAK,OAAiB;EACrB,OAAO;EACP,OAAO,EAAI,EAAE,IAAI,aAAa,IAAc,CAAC;CAC/C,EAAE,EACD,MANwB,GAAG,MAAM,KAAK,SAAS,EAAK,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAMhE,GAEnB,EAAE,6BAA0B,GAC5B,IAAuB,EAAe,SAAS,GAC/C,IAAgB,EAAwB,SAAS,GAAG,QAEpD,KAAuB,MAAsD;EACjF,IAAM,IAAuB,EAC3B,EAAoB,YACnB,MAAwC;GAUvC,AATA,EAAM,gBAAgB,KAAiB,KAAA,GAGvC,EAAe,UAAU,IAAgB,EAAc,QAAQ,KAAA,GAC3D,KACF,EAAwB,GAAO,CAAa,GAI9C,AACE,EAAM,iBAAe,EAAkB;EAE3C,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAgDA,OA9CA,EAAM,gBAAgB;EACpB,IAAM,IAAa,EAAe,MAAM,MAAW,EAAO,UAAU,IAAI;EACxE,IAAI,CAAC,KAAwB,CAAC,GAAY;GACxC,IAAM,IAA0B,EAAoB,UAAU,yBAC1D,CAAC,GAAG,EAAoB,UAAU,wBAAwB,SAAS,IACnE;IAAC;IAAW;IAAY;IAAc;IAAS;GAAM;GACzD,EAAoB,gBAClB,EACE,EAAoB,WACpB,0BACA,CACF,CACF;EACF;CACF,GAAG,CAAC,CAAoB,CAAC,GAEzB,EAAM,gBAAgB;EAuBpB,EAtBqC,EACnC,EAAoB,wBACnB,MAAU;GAQT,AAPA,AACE,EAAM,YAAU,EACd,WACA,EAAoB,UAAU,eAC9B,EAAoB,qBACtB,GAGA,gBAAgB,EAAoB,aACpC,EAAoB,UAAU,eAE9B,EAAM,aAAa,EACjB,cACA,EAAoB,UAAU,YAC9B,EAAoB,qBACtB;EAEJ,CAE0B,GAA8B,CAAmB;CAC/E,GAAG,CAAC,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAAC,KAAwB,IACpB,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,YAAA;EACA,SAAS;EACT,OAAO,EAAoB,UAAU;EACrC,WAAW,EAAQ,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.277.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1787693419738
|
|
9
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:19 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
11
|
-
*/
|
|
12
|
-
import { Wt as e, p as t } from "./intl-e5WHiYfA.js";
|
|
13
|
-
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-LqzCS-0D.js";
|
|
14
|
-
import { c as o, i as s } from "./FormFooterComponent-CaOt9TQw.js";
|
|
15
|
-
import { n as c } from "./empties-B6naRhes.js";
|
|
16
|
-
import { n as l } from "./programThemeGetters-uLsgGat1.js";
|
|
17
|
-
import { u } from "./hooks-C15H5pD-.js";
|
|
18
|
-
import { _ as d, a as f, p, v as m } from "./stepComponentHelpers-BdqtwfRd.js";
|
|
19
|
-
import { t as h } from "./FormFieldInputSelect-Cl4QZ12h.js";
|
|
20
|
-
//#region src/components/FormFields/Country/CountryComponent.tsx
|
|
21
|
-
var g = /* @__PURE__ */ e(r(), 1), _ = a(), v = n(({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: a, intl: o, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => /* @__PURE__ */ (0, _.jsx)(h, {
|
|
22
|
-
fieldId: "country",
|
|
23
|
-
options: n,
|
|
24
|
-
onChange: (e) => r(e),
|
|
25
|
-
onKeyDown: a,
|
|
26
|
-
placeholder: s || o.formatHTMLMessage({
|
|
27
|
-
id: "countryPlaceholder",
|
|
28
|
-
defaultMessage: "Country"
|
|
29
|
-
}),
|
|
30
|
-
value: n.find((t) => t.value === (e && e.value)),
|
|
31
|
-
isRequired: c,
|
|
32
|
-
label: /* @__PURE__ */ (0, _.jsx)(i, {
|
|
33
|
-
id: "country",
|
|
34
|
-
defaultMessage: "Country"
|
|
35
|
-
}),
|
|
36
|
-
errorMessage: t && /* @__PURE__ */ (0, _.jsx)(i, {
|
|
37
|
-
id: "errorId.invalidCountry",
|
|
38
|
-
defaultMessage: "Invalid country"
|
|
39
|
-
}),
|
|
40
|
-
showPlaceholderAndHideLabel: !!s,
|
|
41
|
-
suppressPlaceholder: l,
|
|
42
|
-
disabled: u
|
|
43
|
-
})), y = ({ verificationService: e, viewModelDraftDecorator: n = void 0, disabled: r = !1 }) => {
|
|
44
|
-
let i = o(), { i18n: a, msg: h } = s(), y = l(i).map((e) => ({
|
|
45
|
-
value: e,
|
|
46
|
-
label: h({ id: `countries.${e}` })
|
|
47
|
-
})).sort((e, t) => Intl.Collator(a.language).compare(e.label, t.label)), { fieldValidationErrors: b } = e, x = y.length > 1, S = f("country")?.hidden, C = (r) => {
|
|
48
|
-
let i = t(e.viewModel, (e) => {
|
|
49
|
-
e.countryChoice = r || void 0, e.country = r ? r.value : void 0, n && n(e, r), e.organization &&= c.organization;
|
|
50
|
-
});
|
|
51
|
-
e.updateViewModel(i);
|
|
52
|
-
};
|
|
53
|
-
return g.useEffect(() => {
|
|
54
|
-
let t = y.some((e) => e.value === "US");
|
|
55
|
-
if (!x && !t) {
|
|
56
|
-
let t = e.viewModel.fieldsToSkipValidation ? [...e.viewModel.fieldsToSkipValidation, "country"] : [
|
|
57
|
-
"country",
|
|
58
|
-
"address1",
|
|
59
|
-
"postalCode",
|
|
60
|
-
"state",
|
|
61
|
-
"city"
|
|
62
|
-
];
|
|
63
|
-
e.updateViewModel(p(e.viewModel, "fieldsToSkipValidation", t));
|
|
64
|
-
}
|
|
65
|
-
}, [x]), g.useEffect(() => {
|
|
66
|
-
d(t(e.fieldValidationErrors, (t) => {
|
|
67
|
-
t.country &&= u("country", e.viewModel.countryChoice, e.formValidationOptions), "postalCode" in e.viewModel && e.viewModel.postalCode && (t.postalCode = u("postalCode", e.viewModel.postalCode, e.formValidationOptions));
|
|
68
|
-
}), e);
|
|
69
|
-
}, [e.viewModel.countryChoice]), !x || S ? null : /* @__PURE__ */ (0, _.jsx)(v, {
|
|
70
|
-
isRequired: !0,
|
|
71
|
-
options: y,
|
|
72
|
-
value: e.viewModel.countryChoice,
|
|
73
|
-
isErrored: !!b.country,
|
|
74
|
-
disabled: r,
|
|
75
|
-
onChange: async (t) => {
|
|
76
|
-
let n = t ? t.value : void 0;
|
|
77
|
-
C(t), m("country", n, e);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
82
|
-
export { y as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CountryComponentWrapper-DeR9PrA2.js","names":[],"sources":["../../src/components/FormFields/Country/CountryComponent.tsx","../../src/components/FormFields/Country/CountryComponentWrapper.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { type FormSelectChoice, type InputSelectComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\n\nexport const Country = ({\n value,\n isErrored,\n options,\n onChange,\n onKeyDown,\n intl,\n placeholder = \"\",\n isRequired = true,\n suppressPlaceholder = false,\n disabled = false,\n}: InputSelectComponentProps) => {\n const inputId = \"country\";\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n options={options}\n onChange={(country: FormSelectChoice) => onChange(country)}\n onKeyDown={onKeyDown}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"countryPlaceholder\", defaultMessage: \"Country\" })\n }\n value={options.find((option) => option.value === (value && value.value))}\n isRequired={isRequired}\n label={<FormattedHTMLMessage id=\"country\" defaultMessage=\"Country\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage id=\"errorId.invalidCountry\" defaultMessage=\"Invalid country\" />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n suppressPlaceholder={suppressPlaceholder}\n disabled={disabled}\n />\n );\n};\n\nexport const CountryComponent = injectIntl(Country);\n","import React from \"react\";\nimport produce from \"immer\";\n\nimport { useMessage } from \"@/components/Message\";\nimport {\n type VerificationService,\n type Country,\n type FormSelectChoice,\n type ViewModel,\n type ErrorId,\n type FieldId,\n type WithOrganization,\n} from \"@/lib/types/types\";\nimport {\n updateFieldValidationErrorsByFieldId,\n produceDraftViewModel,\n updateFieldValidationErrors,\n getFieldConfigByFieldId,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { validateFieldById } from \"@/lib/validators/validators\";\nimport { blankOrganization } from \"@/lib/types/empties\";\nimport { useProgramTheme } from \"@/lib/state/contextHooks\";\nimport { getConfiguredCountries } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\nexport const CountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n disabled = false,\n}: CountryComponentWrapperProps) => {\n const programTheme = useProgramTheme();\n const { i18n, msg } = useMessage();\n\n const availableCountries: Country[] = getConfiguredCountries(programTheme);\n const localeAwareSorter = (a, b) => Intl.Collator(i18n.language).compare(a.label, b.label);\n const countryChoices = availableCountries\n .map((countryCode) => ({\n value: countryCode,\n label: msg({ id: `countries.${countryCode}` }),\n }))\n .sort(localeAwareSorter);\n\n const { fieldValidationErrors } = verificationService;\n const hasMultipleCountries = countryChoices.length > 1;\n const isFieldHidden = getFieldConfigByFieldId(\"country\")?.hidden;\n\n const updateCountryChoice = (countryChoice?: FormSelectChoice<Country, string>) => {\n const nextState: ViewModel = produce(\n verificationService.viewModel,\n (draft: ViewModel & WithOrganization) => {\n draft.countryChoice = countryChoice || undefined;\n\n // Adds backwards compatibility with Age and Employment programs\n (draft as any).country = countryChoice ? countryChoice.value : undefined;\n if (viewModelDraftDecorator) {\n viewModelDraftDecorator(draft, countryChoice);\n }\n\n // Reset to a blank org when changing the country choice\n if (draft.organization) {\n draft.organization = blankOrganization.organization;\n }\n },\n );\n verificationService.updateViewModel(nextState);\n };\n\n React.useEffect(() => {\n const includesUS = countryChoices.some((choice) => choice.value === \"US\");\n if (!hasMultipleCountries && !includesUS) {\n const fieldsToSkip: FieldId[] = verificationService.viewModel.fieldsToSkipValidation\n ? [...verificationService.viewModel.fieldsToSkipValidation, \"country\"]\n : [\"country\", \"address1\", \"postalCode\", \"state\", \"city\"];\n verificationService.updateViewModel(\n produceDraftViewModel(\n verificationService.viewModel,\n \"fieldsToSkipValidation\",\n fieldsToSkip,\n ),\n );\n }\n }, [hasMultipleCountries]);\n\n React.useEffect(() => {\n const updatedFieldValidationErrors = produce(\n verificationService.fieldValidationErrors,\n (draft) => {\n if (draft.country) {\n draft.country = validateFieldById(\n \"country\",\n verificationService.viewModel.countryChoice,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n if (\n \"postalCode\" in verificationService.viewModel &&\n verificationService.viewModel.postalCode\n ) {\n draft.postalCode = validateFieldById(\n \"postalCode\",\n verificationService.viewModel.postalCode,\n verificationService.formValidationOptions,\n ) as ErrorId;\n }\n },\n );\n updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);\n }, [verificationService.viewModel.countryChoice]);\n\n if (!hasMultipleCountries || isFieldHidden) {\n return null;\n }\n\n return (\n <CountryComponent\n isRequired\n options={countryChoices}\n value={verificationService.viewModel.countryChoice}\n isErrored={Boolean(fieldValidationErrors.country)}\n disabled={disabled}\n onChange={async (countryChoice: FormSelectChoice<Country, string>) => {\n const countryValue = countryChoice ? countryChoice.value : undefined;\n updateCountryChoice(countryChoice);\n updateFieldValidationErrorsByFieldId(\"country\", countryValue, verificationService);\n }}\n />\n );\n};\n"],"mappings":";;;;;;;;;4CA2CA,IAAA,GAtCA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,SAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;EAsCA,GCRa,KAA2B,EACtC,wBACA,6BAA0B,KAAA,GAC1B,cAAW,SACuB;CAClC,IAAM,IAAe,EAAgB,GAC/B,EAAE,SAAM,WAAQ,EAAW,GAI3B,IAFgC,EAAuB,CAEtC,EACpB,KAAK,OAAiB;EACrB,OAAO;EACP,OAAO,EAAI,EAAE,IAAI,aAAa,IAAc,CAAC;CAC/C,EAAE,EACD,MANwB,GAAG,MAAM,KAAK,SAAS,EAAK,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAMhE,GAEnB,EAAE,6BAA0B,GAC5B,IAAuB,EAAe,SAAS,GAC/C,IAAgB,EAAwB,SAAS,GAAG,QAEpD,KAAuB,MAAsD;EACjF,IAAM,IAAuB,EAC3B,EAAoB,YACnB,MAAwC;GAUvC,AATA,EAAM,gBAAgB,KAAiB,KAAA,GAGvC,EAAe,UAAU,IAAgB,EAAc,QAAQ,KAAA,GAC3D,KACF,EAAwB,GAAO,CAAa,GAI9C,AACE,EAAM,iBAAe,EAAkB;EAE3C,CACF;EACA,EAAoB,gBAAgB,CAAS;CAC/C;CAgDA,OA9CA,EAAM,gBAAgB;EACpB,IAAM,IAAa,EAAe,MAAM,MAAW,EAAO,UAAU,IAAI;EACxE,IAAI,CAAC,KAAwB,CAAC,GAAY;GACxC,IAAM,IAA0B,EAAoB,UAAU,yBAC1D,CAAC,GAAG,EAAoB,UAAU,wBAAwB,SAAS,IACnE;IAAC;IAAW;IAAY;IAAc;IAAS;GAAM;GACzD,EAAoB,gBAClB,EACE,EAAoB,WACpB,0BACA,CACF,CACF;EACF;CACF,GAAG,CAAC,CAAoB,CAAC,GAEzB,EAAM,gBAAgB;EAuBpB,EAtBqC,EACnC,EAAoB,wBACnB,MAAU;GAQT,AAPA,AACE,EAAM,YAAU,EACd,WACA,EAAoB,UAAU,eAC9B,EAAoB,qBACtB,GAGA,gBAAgB,EAAoB,aACpC,EAAoB,UAAU,eAE9B,EAAM,aAAa,EACjB,cACA,EAAoB,UAAU,YAC9B,EAAoB,qBACtB;EAEJ,CAE0B,GAA8B,CAAmB;CAC/E,GAAG,CAAC,EAAoB,UAAU,aAAa,CAAC,GAE5C,CAAC,KAAwB,IACpB,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,YAAA;EACA,SAAS;EACT,OAAO,EAAoB,UAAU;EACrC,WAAW,EAAQ,EAAsB;EAC/B;EACV,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.277.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787693415496
|
|
5
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:15 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
7
|
-
*/
|
|
8
|
-
import { Bt as e, I as t, Wt as n, lt as r } from "./options-pBCAJBwS.js";
|
|
9
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-Ini3eO9_.js";
|
|
10
|
-
import { a as c } from "./VerificationApiClient-fJ7P4ejD.js";
|
|
11
|
-
import { a as l, d as u } from "./stepComponentHelpers-DIHMDrmF.js";
|
|
12
|
-
import { r as d } from "./CaptchaComponent-hqx9tSkk.js";
|
|
13
|
-
import { t as f } from "./FormFieldInputSelect-C6OyLsWL.js";
|
|
14
|
-
import { t as p } from "./countryUtils-DWqId-zY.js";
|
|
15
|
-
//#region src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.tsx
|
|
16
|
-
var m = s(), h = ({ onChange: e, errorId: n, isErrored: r = !!n, value: i = "2000-01-01", locale: a = t, disabled: s = !1 }) => l("activeDutyStartDate")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(d, {
|
|
17
|
-
value: i,
|
|
18
|
-
label: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
19
|
-
id: "activeDutyStartDate",
|
|
20
|
-
defaultMessage: "Active Duty Start Date"
|
|
21
|
-
}),
|
|
22
|
-
explanation: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
23
|
-
id: "verificationPurposesOnly",
|
|
24
|
-
defaultMessage: "Used for verification purposes only"
|
|
25
|
-
}),
|
|
26
|
-
onChange: e,
|
|
27
|
-
fieldName: "activeDutyStartDate",
|
|
28
|
-
fieldId: "sid-active-duty-start-date",
|
|
29
|
-
locale: a,
|
|
30
|
-
isErrored: r,
|
|
31
|
-
disabled: s,
|
|
32
|
-
errorMsg: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
33
|
-
id: `errorId.${n}`,
|
|
34
|
-
defaultMessage: "Invalid start date"
|
|
35
|
-
})
|
|
36
|
-
}), g = /* @__PURE__ */ n(a(), 1), _ = i(({ autoFocus: t, onChange: n, value: i, isErrored: a, organizations: s = void 0, verificationService: d, intl: h, placeholder: _ = "", disabled: v = !1 }) => {
|
|
37
|
-
s && e.warn("Param `organizations` is deprecated and will not be used");
|
|
38
|
-
let y = "branch-of-service", [b, x] = g.useState([]), [S, C] = g.useState(!1), [w, T] = g.useState(!1), { viewModel: E, programTheme: D } = d, { status: O } = E, { orgSearchUrl: k } = D.config, A = r(() => E?.countryChoice?.value), j = p(D, A);
|
|
39
|
-
g.useEffect(() => {
|
|
40
|
-
let e = new AbortController();
|
|
41
|
-
return (async () => {
|
|
42
|
-
if (j) {
|
|
43
|
-
x([]), C(!0);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
C(!1), T(!0);
|
|
47
|
-
let t = new URL(k);
|
|
48
|
-
A ? t.searchParams.set("country", A) : t.searchParams.delete("country"), O ? t.searchParams.set("tags", O) : t.searchParams.delete("tags");
|
|
49
|
-
let n = await c(t.toString());
|
|
50
|
-
e.signal.aborted || (n && x(n.map(u)), T(!1));
|
|
51
|
-
})(), () => {
|
|
52
|
-
e.abort();
|
|
53
|
-
};
|
|
54
|
-
}, [A, O]);
|
|
55
|
-
let M = (e, t) => {
|
|
56
|
-
t(e ? {
|
|
57
|
-
id: e.value,
|
|
58
|
-
name: e.label
|
|
59
|
-
} : {
|
|
60
|
-
id: 0,
|
|
61
|
-
name: ""
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
return l("organization")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(f, {
|
|
65
|
-
fieldId: y,
|
|
66
|
-
refId: "organization",
|
|
67
|
-
autoFocus: t,
|
|
68
|
-
options: b,
|
|
69
|
-
onChange: (e) => M(e, n),
|
|
70
|
-
value: b.find((e) => e.value === (i && i.value)),
|
|
71
|
-
placeholder: _ || h.formatHTMLMessage({
|
|
72
|
-
id: "branchOfServicePlaceholder",
|
|
73
|
-
defaultMessage: "Branch Of Service"
|
|
74
|
-
}),
|
|
75
|
-
isRequired: !0,
|
|
76
|
-
isLoading: w,
|
|
77
|
-
disabled: S || v,
|
|
78
|
-
explanation: S ? /* @__PURE__ */ (0, m.jsx)(o, {
|
|
79
|
-
id: "chooseCountry",
|
|
80
|
-
defaultMessage: "Choose a country first"
|
|
81
|
-
}) : null,
|
|
82
|
-
label: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
83
|
-
id: "branchOfService",
|
|
84
|
-
defaultMessage: "Branch Of Service"
|
|
85
|
-
}),
|
|
86
|
-
errorMessage: a && /* @__PURE__ */ (0, m.jsx)(o, {
|
|
87
|
-
id: "errorId.invalidOrganization",
|
|
88
|
-
defaultMessage: "You must select an organization from the list"
|
|
89
|
-
}),
|
|
90
|
-
showPlaceholderAndHideLabel: !!_,
|
|
91
|
-
containerId: `sid-${y}-id`
|
|
92
|
-
});
|
|
93
|
-
}), v = ({ onChange: e, errorId: t, isErrored: n = !!t, value: r = "2000-01-01", disabled: i = !1, locale: a, mode: s = "month", isRequired: c = !0 }) => l("dischargeDate")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(d, {
|
|
94
|
-
mode: s,
|
|
95
|
-
value: r,
|
|
96
|
-
label: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
97
|
-
id: "dischargeDate",
|
|
98
|
-
defaultMessage: "Discharge date"
|
|
99
|
-
}),
|
|
100
|
-
explanation: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
101
|
-
id: "verificationPurposesOnly",
|
|
102
|
-
defaultMessage: "Used for verification purposes only"
|
|
103
|
-
}),
|
|
104
|
-
onChange: e,
|
|
105
|
-
fieldName: "dischargeDate",
|
|
106
|
-
fieldId: "discharge-date",
|
|
107
|
-
isErrored: n,
|
|
108
|
-
disabled: i,
|
|
109
|
-
isRequired: c,
|
|
110
|
-
locale: a,
|
|
111
|
-
errorMsg: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
112
|
-
id: `errorId.${t}`,
|
|
113
|
-
defaultMessage: "Invalid discharge date"
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
//#endregion
|
|
117
|
-
export { _ as n, h as r, v as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DischargeDateComponent-Btg3v71t.js","names":[],"sources":["../../src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.tsx","../../src/components/FormFields/BranchOfService/BranchOfServiceComponent.tsx","../../src/components/FormFields/DischargeDate/DischargeDateComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { DEFAULT_LOCALE } from \"../../../constants\";\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { DateComponent } from \"../../DateComponent/DateComponent\";\n\ntype Props = Omit<FormFieldComponentProps, \"isErrored\"> & {\n locale: string;\n /**\n * @deprecated deprecated in favor of using errorId instead\n */\n isErrored?: boolean;\n};\n\nexport const ActiveDutyStartDateComponent = ({\n onChange,\n errorId,\n isErrored = !!errorId,\n value = \"2000-01-01\",\n locale = DEFAULT_LOCALE,\n disabled = false,\n}: Props) => {\n const isFieldHidden = getFieldConfigByFieldId(\"activeDutyStartDate\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <DateComponent\n value={value}\n label={\n <FormattedHTMLMessage id=\"activeDutyStartDate\" defaultMessage=\"Active Duty Start Date\" />\n }\n explanation={\n <FormattedHTMLMessage\n id=\"verificationPurposesOnly\"\n defaultMessage=\"Used for verification purposes only\"\n />\n }\n onChange={onChange}\n fieldName=\"activeDutyStartDate\"\n fieldId=\"sid-active-duty-start-date\"\n locale={locale}\n isErrored={isErrored}\n disabled={disabled}\n errorMsg={\n <FormattedHTMLMessage id={`errorId.${errorId}`} defaultMessage=\"Invalid start date\" />\n }\n />\n );\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type FormSelectChoice,\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n type ActiveMilitaryPersonalInfoViewModel,\n type Country,\n} from \"../../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n orgToOption,\n} from \"../../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\nimport { fetchOrganization } from \"../../../lib/ServerApi/OrganizationApiClient\";\nimport { isCountrySelectionNeeded } from \"../Country/countryUtils\";\n\ninterface BranchOfServiceComponentProps {\n /**\n * @deprecated Orgs are fetch lazily, within this component, now\n * A list of orgs is no-longer passed-in and then filtered\n * Don't provide this any more\n */\n organizations?: Organization[];\n}\n\nexport const BranchOfService = ({\n autoFocus,\n onChange,\n value,\n isErrored,\n organizations = undefined,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps & BranchOfServiceComponentProps) => {\n if (organizations) {\n logger.warn(\"Param `organizations` is deprecated and will not be used\");\n }\n const inputId = \"branch-of-service\";\n const [options, setOptions] = React.useState<FormSelectChoice[]>([]);\n const [disabledState, setDisabledState] = React.useState<boolean>(false);\n const [isLoading, setIsLoading] = React.useState<boolean>(false);\n const { viewModel, programTheme } = verificationService;\n const { status } = viewModel as ActiveMilitaryPersonalInfoViewModel;\n const { orgSearchUrl } = programTheme.config;\n const countryChoiceValue: Country = getSafe(() => viewModel?.countryChoice?.value);\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n\n React.useEffect(() => {\n const controller = new AbortController();\n\n const fetchOrgs = async () => {\n if (needToPickCountry) {\n setOptions([]);\n setDisabledState(true);\n return;\n }\n setDisabledState(false);\n setIsLoading(true);\n const fetchUrl = new URL(orgSearchUrl);\n if (countryChoiceValue) {\n fetchUrl.searchParams.set(\"country\", countryChoiceValue);\n } else {\n fetchUrl.searchParams.delete(\"country\");\n }\n\n if (status) {\n fetchUrl.searchParams.set(\"tags\", status);\n } else {\n fetchUrl.searchParams.delete(\"tags\");\n }\n\n const orgSearchResponse = await fetchOrganization(fetchUrl.toString());\n if (controller.signal.aborted) return;\n if (orgSearchResponse) setOptions(orgSearchResponse.map(orgToOption));\n setIsLoading(false);\n };\n\n fetchOrgs();\n\n return () => {\n controller.abort();\n };\n }, [countryChoiceValue, status]);\n\n const handleStateChange = (selectedOrgOption: FormSelectChoice, onChange: Function) => {\n if (selectedOrgOption) {\n onChange({\n id: selectedOrgOption.value,\n name: selectedOrgOption.label,\n });\n } else {\n onChange({\n id: 0,\n name: \"\",\n });\n }\n };\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n refId=\"organization\"\n autoFocus={autoFocus}\n options={options}\n onChange={(branch: FormSelectChoice) => handleStateChange(branch, onChange)}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"branchOfServicePlaceholder\",\n defaultMessage: \"Branch Of Service\",\n })\n }\n isRequired\n isLoading={isLoading}\n disabled={disabledState || disabled}\n explanation={\n disabledState ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : null\n }\n label={<FormattedHTMLMessage id=\"branchOfService\" defaultMessage=\"Branch Of Service\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n containerId={`sid-${inputId}-id`}\n />\n );\n};\n\nexport const BranchOfServiceComponent = injectIntl(BranchOfService);\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { DateComponent } from \"../../DateComponent/DateComponent\";\n\ntype Props = Omit<FormFieldComponentProps, \"isErrored\"> & {\n locale?: string;\n /**\n * @deprecated deprecated in favor of using errorId instead\n */\n isErrored?: boolean;\n mode?: \"date\" | \"month\";\n};\n\nexport const DischargeDateComponent = ({\n onChange,\n errorId,\n isErrored = !!errorId,\n value = \"2000-01-01\",\n disabled = false,\n locale,\n mode = \"month\",\n isRequired = true,\n}: Props) => {\n const isFieldHidden = getFieldConfigByFieldId(\"dischargeDate\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <DateComponent\n mode={mode}\n value={value}\n label={<FormattedHTMLMessage id=\"dischargeDate\" defaultMessage=\"Discharge date\" />}\n explanation={\n <FormattedHTMLMessage\n id=\"verificationPurposesOnly\"\n defaultMessage=\"Used for verification purposes only\"\n />\n }\n onChange={onChange}\n fieldName=\"dischargeDate\"\n fieldId=\"discharge-date\"\n isErrored={isErrored}\n disabled={disabled}\n isRequired={isRequired}\n locale={locale}\n errorMsg={\n <FormattedHTMLMessage id={`errorId.${errorId}`} defaultMessage=\"Invalid discharge date\" />\n }\n />\n );\n};\n"],"mappings":";;;;;;;;aAgBa,KAAgC,EAC3C,aACA,YACA,eAAY,CAAC,CAAC,GACd,WAAQ,cACR,YAAS,GACT,cAAW,SAEW,EAAwB,qBAAqB,GAAG,SAG7D,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACS;CACP,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAsB,gBAAe;CAA0B,CAAA;CAE1F,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAEO;CACV,WAAU;CACV,SAAQ;CACA;CACG;CACD;CACV,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAI,WAAW;EAAW,gBAAe;CAAsB,CAAA;AAExF,CAAA,kCCmGQ,IAA2B,GAvHR,EAC9B,cACA,aACA,UACA,cACA,mBAAgB,KAAA,GAChB,wBACA,SACA,iBAAc,IACd,cAAW,SAC6E;CACxF,AAAI,KACF,EAAO,KAAK,0DAA0D;CAExE,IAAM,IAAU,qBACV,CAAC,GAAS,KAAA,EAAoB,SAA6B,CAAC,CAAC,GAC7D,CAAC,GAAe,KAAA,EAA0B,SAAkB,EAAK,GACjE,CAAC,GAAW,KAAA,EAAsB,SAAkB,EAAK,GACzD,EAAE,cAAW,oBAAiB,GAC9B,EAAE,cAAW,GACb,EAAE,oBAAiB,EAAa,QAChC,IAA8B,QAAc,GAAW,eAAe,KAAK,GAC3E,IAAoB,EAAyB,GAAc,CAAkB;CAEnF,EAAM,gBAAgB;EACpB,IAAM,IAAa,IAAI,gBAAgB;EA+BvC,QAFA,YA3B8B;GAC5B,IAAI,GAAmB;IAErB,AADA,EAAW,CAAC,CAAC,GACb,EAAiB,EAAI;IACrB;GACF;GAEA,AADA,EAAiB,EAAK,GACtB,EAAa,EAAI;GACjB,IAAM,IAAW,IAAI,IAAI,CAAY;GAOrC,AANI,IACF,EAAS,aAAa,IAAI,WAAW,CAAkB,IAEvD,EAAS,aAAa,OAAO,SAAS,GAGpC,IACF,EAAS,aAAa,IAAI,QAAQ,CAAM,IAExC,EAAS,aAAa,OAAO,MAAM;GAGrC,IAAM,IAAoB,MAAM,EAAkB,EAAS,SAAS,CAAC;GACjE,EAAW,OAAO,YAClB,KAAmB,EAAW,EAAkB,IAAI,CAAW,CAAC,GACpE,EAAa,EAAK;EACpB,GAEU,SAEG;GACX,EAAW,MAAM;EACnB;CACF,GAAG,CAAC,GAAoB,CAAM,CAAC;CAE/B,IAAM,KAAqB,GAAqC,MAAuB;EACrF,AACE,EADE,IACO;GACP,IAAI,EAAkB;GACtB,MAAM,EAAkB;EAC1B,IAES;GACP,IAAI;GACJ,MAAM;EACR,CAAC;CAEL;CAQA,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAM;EACK;EACF;EACT,WAAW,MAA6B,EAAkB,GAAQ,CAAQ;EAC1E,OAAO,EAAQ,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;EACvE,aACE,KACA,EAAK,kBAAkB;GACrB,IAAI;GACJ,gBAAgB;EAClB,CAAC;EAEH,YAAA;EACW;EACX,UAAU,KAAiB;EAC3B,aACE,IACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAgB,gBAAe;EAA0B,CAAA,IAChF;EAEN,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAkB,gBAAe;EAAqB,CAAA;EACtF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGL,6BAA6B,CAAC,CAAC;EAC/B,aAAa,OAAO,EAAQ;CAC7B,CAAA;AAEL,CAEkE,GCtIrD,KAA0B,EACrC,aACA,YACA,eAAY,CAAC,CAAC,GACd,WAAQ,cACR,cAAW,IACX,WACA,UAAO,SACP,gBAAa,SAES,EAAwB,eAAe,GAAG,SAGvD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACQ;CACC;CACP,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAgB,gBAAe;CAAkB,CAAA;CACjF,aACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAEO;CACV,WAAU;CACV,SAAQ;CACG;CACD;CACE;CACJ;CACR,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAI,WAAW;EAAW,gBAAe;CAA0B,CAAA;AAE5F,CAAA"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.277.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1787693419738
|
|
9
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:19 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
11
|
-
*/
|
|
12
|
-
import { Bt as e, R as t, Rt as n, Wt as r } from "./intl-e5WHiYfA.js";
|
|
13
|
-
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-LqzCS-0D.js";
|
|
14
|
-
import { a as c } from "./VerificationApiClient-BcE3SjuJ.js";
|
|
15
|
-
import { a as l, d as u } from "./stepComponentHelpers-BdqtwfRd.js";
|
|
16
|
-
import { r as d } from "./CaptchaComponent-CCq7YSum.js";
|
|
17
|
-
import { t as f } from "./FormFieldInputSelect-Cl4QZ12h.js";
|
|
18
|
-
import { t as p } from "./countryUtils-AR9k3KRg.js";
|
|
19
|
-
//#region src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.tsx
|
|
20
|
-
var m = s(), h = ({ onChange: e, errorId: n, isErrored: r = !!n, value: i = "2000-01-01", locale: a = t, disabled: s = !1 }) => l("activeDutyStartDate")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(d, {
|
|
21
|
-
value: i,
|
|
22
|
-
label: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
23
|
-
id: "activeDutyStartDate",
|
|
24
|
-
defaultMessage: "Active Duty Start Date"
|
|
25
|
-
}),
|
|
26
|
-
explanation: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
27
|
-
id: "verificationPurposesOnly",
|
|
28
|
-
defaultMessage: "Used for verification purposes only"
|
|
29
|
-
}),
|
|
30
|
-
onChange: e,
|
|
31
|
-
fieldName: "activeDutyStartDate",
|
|
32
|
-
fieldId: "sid-active-duty-start-date",
|
|
33
|
-
locale: a,
|
|
34
|
-
isErrored: r,
|
|
35
|
-
disabled: s,
|
|
36
|
-
errorMsg: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
37
|
-
id: `errorId.${n}`,
|
|
38
|
-
defaultMessage: "Invalid start date"
|
|
39
|
-
})
|
|
40
|
-
}), g = /* @__PURE__ */ r(a(), 1), _ = i(({ autoFocus: t, onChange: r, value: i, isErrored: a, organizations: s = void 0, verificationService: d, intl: h, placeholder: _ = "", disabled: v = !1 }) => {
|
|
41
|
-
s && e.warn("Param `organizations` is deprecated and will not be used");
|
|
42
|
-
let y = "branch-of-service", [b, x] = g.useState([]), [S, C] = g.useState(!1), [w, T] = g.useState(!1), { viewModel: E, programTheme: D } = d, { status: O } = E, { orgSearchUrl: k } = D.config, A = n(() => E?.countryChoice?.value), j = p(D, A);
|
|
43
|
-
g.useEffect(() => {
|
|
44
|
-
let e = new AbortController();
|
|
45
|
-
return (async () => {
|
|
46
|
-
if (j) {
|
|
47
|
-
x([]), C(!0);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
C(!1), T(!0);
|
|
51
|
-
let t = new URL(k);
|
|
52
|
-
A ? t.searchParams.set("country", A) : t.searchParams.delete("country"), O ? t.searchParams.set("tags", O) : t.searchParams.delete("tags");
|
|
53
|
-
let n = await c(t.toString());
|
|
54
|
-
e.signal.aborted || (n && x(n.map(u)), T(!1));
|
|
55
|
-
})(), () => {
|
|
56
|
-
e.abort();
|
|
57
|
-
};
|
|
58
|
-
}, [A, O]);
|
|
59
|
-
let M = (e, t) => {
|
|
60
|
-
t(e ? {
|
|
61
|
-
id: e.value,
|
|
62
|
-
name: e.label
|
|
63
|
-
} : {
|
|
64
|
-
id: 0,
|
|
65
|
-
name: ""
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
return l("organization")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(f, {
|
|
69
|
-
fieldId: y,
|
|
70
|
-
refId: "organization",
|
|
71
|
-
autoFocus: t,
|
|
72
|
-
options: b,
|
|
73
|
-
onChange: (e) => M(e, r),
|
|
74
|
-
value: b.find((e) => e.value === (i && i.value)),
|
|
75
|
-
placeholder: _ || h.formatHTMLMessage({
|
|
76
|
-
id: "branchOfServicePlaceholder",
|
|
77
|
-
defaultMessage: "Branch Of Service"
|
|
78
|
-
}),
|
|
79
|
-
isRequired: !0,
|
|
80
|
-
isLoading: w,
|
|
81
|
-
disabled: S || v,
|
|
82
|
-
explanation: S ? /* @__PURE__ */ (0, m.jsx)(o, {
|
|
83
|
-
id: "chooseCountry",
|
|
84
|
-
defaultMessage: "Choose a country first"
|
|
85
|
-
}) : null,
|
|
86
|
-
label: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
87
|
-
id: "branchOfService",
|
|
88
|
-
defaultMessage: "Branch Of Service"
|
|
89
|
-
}),
|
|
90
|
-
errorMessage: a && /* @__PURE__ */ (0, m.jsx)(o, {
|
|
91
|
-
id: "errorId.invalidOrganization",
|
|
92
|
-
defaultMessage: "You must select an organization from the list"
|
|
93
|
-
}),
|
|
94
|
-
showPlaceholderAndHideLabel: !!_,
|
|
95
|
-
containerId: `sid-${y}-id`
|
|
96
|
-
});
|
|
97
|
-
}), v = ({ onChange: e, errorId: t, isErrored: n = !!t, value: r = "2000-01-01", disabled: i = !1, locale: a, mode: s = "month", isRequired: c = !0 }) => l("dischargeDate")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(d, {
|
|
98
|
-
mode: s,
|
|
99
|
-
value: r,
|
|
100
|
-
label: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
101
|
-
id: "dischargeDate",
|
|
102
|
-
defaultMessage: "Discharge date"
|
|
103
|
-
}),
|
|
104
|
-
explanation: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
105
|
-
id: "verificationPurposesOnly",
|
|
106
|
-
defaultMessage: "Used for verification purposes only"
|
|
107
|
-
}),
|
|
108
|
-
onChange: e,
|
|
109
|
-
fieldName: "dischargeDate",
|
|
110
|
-
fieldId: "discharge-date",
|
|
111
|
-
isErrored: n,
|
|
112
|
-
disabled: i,
|
|
113
|
-
isRequired: c,
|
|
114
|
-
locale: a,
|
|
115
|
-
errorMsg: /* @__PURE__ */ (0, m.jsx)(o, {
|
|
116
|
-
id: `errorId.${t}`,
|
|
117
|
-
defaultMessage: "Invalid discharge date"
|
|
118
|
-
})
|
|
119
|
-
});
|
|
120
|
-
//#endregion
|
|
121
|
-
export { _ as n, h as r, v as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DischargeDateComponent-CqKUrGE0.js","names":[],"sources":["../../src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.tsx","../../src/components/FormFields/BranchOfService/BranchOfServiceComponent.tsx","../../src/components/FormFields/DischargeDate/DischargeDateComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { DEFAULT_LOCALE } from \"../../../constants\";\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { DateComponent } from \"../../DateComponent/DateComponent\";\n\ntype Props = Omit<FormFieldComponentProps, \"isErrored\"> & {\n locale: string;\n /**\n * @deprecated deprecated in favor of using errorId instead\n */\n isErrored?: boolean;\n};\n\nexport const ActiveDutyStartDateComponent = ({\n onChange,\n errorId,\n isErrored = !!errorId,\n value = \"2000-01-01\",\n locale = DEFAULT_LOCALE,\n disabled = false,\n}: Props) => {\n const isFieldHidden = getFieldConfigByFieldId(\"activeDutyStartDate\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <DateComponent\n value={value}\n label={\n <FormattedHTMLMessage id=\"activeDutyStartDate\" defaultMessage=\"Active Duty Start Date\" />\n }\n explanation={\n <FormattedHTMLMessage\n id=\"verificationPurposesOnly\"\n defaultMessage=\"Used for verification purposes only\"\n />\n }\n onChange={onChange}\n fieldName=\"activeDutyStartDate\"\n fieldId=\"sid-active-duty-start-date\"\n locale={locale}\n isErrored={isErrored}\n disabled={disabled}\n errorMsg={\n <FormattedHTMLMessage id={`errorId.${errorId}`} defaultMessage=\"Invalid start date\" />\n }\n />\n );\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\nimport {\n type FormSelectChoice,\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n type ActiveMilitaryPersonalInfoViewModel,\n type Country,\n} from \"../../../lib/types/types\";\nimport {\n getFieldConfigByFieldId,\n orgToOption,\n} from \"../../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\nimport { fetchOrganization } from \"../../../lib/ServerApi/OrganizationApiClient\";\nimport { isCountrySelectionNeeded } from \"../Country/countryUtils\";\n\ninterface BranchOfServiceComponentProps {\n /**\n * @deprecated Orgs are fetch lazily, within this component, now\n * A list of orgs is no-longer passed-in and then filtered\n * Don't provide this any more\n */\n organizations?: Organization[];\n}\n\nexport const BranchOfService = ({\n autoFocus,\n onChange,\n value,\n isErrored,\n organizations = undefined,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps & BranchOfServiceComponentProps) => {\n if (organizations) {\n logger.warn(\"Param `organizations` is deprecated and will not be used\");\n }\n const inputId = \"branch-of-service\";\n const [options, setOptions] = React.useState<FormSelectChoice[]>([]);\n const [disabledState, setDisabledState] = React.useState<boolean>(false);\n const [isLoading, setIsLoading] = React.useState<boolean>(false);\n const { viewModel, programTheme } = verificationService;\n const { status } = viewModel as ActiveMilitaryPersonalInfoViewModel;\n const { orgSearchUrl } = programTheme.config;\n const countryChoiceValue: Country = getSafe(() => viewModel?.countryChoice?.value);\n const needToPickCountry = isCountrySelectionNeeded(programTheme, countryChoiceValue);\n\n React.useEffect(() => {\n const controller = new AbortController();\n\n const fetchOrgs = async () => {\n if (needToPickCountry) {\n setOptions([]);\n setDisabledState(true);\n return;\n }\n setDisabledState(false);\n setIsLoading(true);\n const fetchUrl = new URL(orgSearchUrl);\n if (countryChoiceValue) {\n fetchUrl.searchParams.set(\"country\", countryChoiceValue);\n } else {\n fetchUrl.searchParams.delete(\"country\");\n }\n\n if (status) {\n fetchUrl.searchParams.set(\"tags\", status);\n } else {\n fetchUrl.searchParams.delete(\"tags\");\n }\n\n const orgSearchResponse = await fetchOrganization(fetchUrl.toString());\n if (controller.signal.aborted) return;\n if (orgSearchResponse) setOptions(orgSearchResponse.map(orgToOption));\n setIsLoading(false);\n };\n\n fetchOrgs();\n\n return () => {\n controller.abort();\n };\n }, [countryChoiceValue, status]);\n\n const handleStateChange = (selectedOrgOption: FormSelectChoice, onChange: Function) => {\n if (selectedOrgOption) {\n onChange({\n id: selectedOrgOption.value,\n name: selectedOrgOption.label,\n });\n } else {\n onChange({\n id: 0,\n name: \"\",\n });\n }\n };\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldInputSelect\n fieldId={inputId}\n refId=\"organization\"\n autoFocus={autoFocus}\n options={options}\n onChange={(branch: FormSelectChoice) => handleStateChange(branch, onChange)}\n value={options.find((option) => option.value === (value && value.value))}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"branchOfServicePlaceholder\",\n defaultMessage: \"Branch Of Service\",\n })\n }\n isRequired\n isLoading={isLoading}\n disabled={disabledState || disabled}\n explanation={\n disabledState ? (\n <FormattedHTMLMessage id=\"chooseCountry\" defaultMessage=\"Choose a country first\" />\n ) : null\n }\n label={<FormattedHTMLMessage id=\"branchOfService\" defaultMessage=\"Branch Of Service\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n containerId={`sid-${inputId}-id`}\n />\n );\n};\n\nexport const BranchOfServiceComponent = injectIntl(BranchOfService);\n","import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { DateComponent } from \"../../DateComponent/DateComponent\";\n\ntype Props = Omit<FormFieldComponentProps, \"isErrored\"> & {\n locale?: string;\n /**\n * @deprecated deprecated in favor of using errorId instead\n */\n isErrored?: boolean;\n mode?: \"date\" | \"month\";\n};\n\nexport const DischargeDateComponent = ({\n onChange,\n errorId,\n isErrored = !!errorId,\n value = \"2000-01-01\",\n disabled = false,\n locale,\n mode = \"month\",\n isRequired = true,\n}: Props) => {\n const isFieldHidden = getFieldConfigByFieldId(\"dischargeDate\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <DateComponent\n mode={mode}\n value={value}\n label={<FormattedHTMLMessage id=\"dischargeDate\" defaultMessage=\"Discharge date\" />}\n explanation={\n <FormattedHTMLMessage\n id=\"verificationPurposesOnly\"\n defaultMessage=\"Used for verification purposes only\"\n />\n }\n onChange={onChange}\n fieldName=\"dischargeDate\"\n fieldId=\"discharge-date\"\n isErrored={isErrored}\n disabled={disabled}\n isRequired={isRequired}\n locale={locale}\n errorMsg={\n <FormattedHTMLMessage id={`errorId.${errorId}`} defaultMessage=\"Invalid discharge date\" />\n }\n />\n );\n};\n"],"mappings":"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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* WARNING: This file is intended to be used within MySheerID.
|
|
4
|
-
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* VERSION: 2.277.0
|
|
8
|
-
* BUILD_TIMESTAMP: 1787693419738
|
|
9
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:19 GMT+0000 (Coordinated Universal Time)
|
|
10
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
11
|
-
*/
|
|
12
|
-
import { a as e, n as t, t as n } from "./jsx-runtime-LqzCS-0D.js";
|
|
13
|
-
import { a as r } from "./stepComponentHelpers-BdqtwfRd.js";
|
|
14
|
-
import { t as i } from "./FormFieldText-Gf13Luq7.js";
|
|
15
|
-
//#region src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.tsx
|
|
16
|
-
var a = n(), o = e(({ value: e, isErrored: n, onChange: o, explanation: s, intl: c, placeholder: l = "", isRequired: u = !1, disabled: d = !1 }) => r("driverLicenseNumber")?.hidden ? null : /* @__PURE__ */ (0, a.jsx)(i, {
|
|
17
|
-
fieldId: "driver-license-number",
|
|
18
|
-
refId: "driverLicenseNumber",
|
|
19
|
-
value: e,
|
|
20
|
-
onChange: o,
|
|
21
|
-
placeholder: l || c.formatHTMLMessage({
|
|
22
|
-
id: "driverLicenseNumberPlaceholder",
|
|
23
|
-
defaultMessage: "Driver license number"
|
|
24
|
-
}),
|
|
25
|
-
label: /* @__PURE__ */ (0, a.jsx)(t, {
|
|
26
|
-
id: "driverLicenseNumber",
|
|
27
|
-
defaultMessage: "Driver license number"
|
|
28
|
-
}),
|
|
29
|
-
errorMessage: n && /* @__PURE__ */ (0, a.jsx)(t, {
|
|
30
|
-
id: "errorId.invalidDriverLicenseNumber",
|
|
31
|
-
defaultMessage: "Invalid driver license number"
|
|
32
|
-
}),
|
|
33
|
-
showPlaceholderAndHideLabel: !!l,
|
|
34
|
-
required: u,
|
|
35
|
-
explanation: s || (u ? "" : /* @__PURE__ */ (0, a.jsx)(t, {
|
|
36
|
-
id: "optional",
|
|
37
|
-
defaultMessage: "Optional"
|
|
38
|
-
})),
|
|
39
|
-
disabled: d
|
|
40
|
-
}));
|
|
41
|
-
//#endregion
|
|
42
|
-
export { o as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DriverLicenseNumberComponent-B2arYwHU.js","names":[],"sources":["../../src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\ninterface PassedProps {\n explanation?: string | JSX.Element;\n}\n\nexport const DriverLicenseNumber = ({\n value,\n isErrored,\n onChange,\n explanation,\n intl,\n placeholder = \"\",\n isRequired = false,\n disabled = false,\n}: FormFieldComponentProps & PassedProps) => {\n const getDefaultExplanation = () =>\n !isRequired ? <FormattedHTMLMessage id=\"optional\" defaultMessage=\"Optional\" /> : \"\";\n\n const isFieldHidden = getFieldConfigByFieldId(\"driverLicenseNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"driver-license-number\"\n refId=\"driverLicenseNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"driverLicenseNumberPlaceholder\",\n defaultMessage: \"Driver license number\",\n })\n }\n label={\n <FormattedHTMLMessage id=\"driverLicenseNumber\" defaultMessage=\"Driver license number\" />\n }\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidDriverLicenseNumber\"\n defaultMessage=\"Invalid driver license number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n required={isRequired}\n explanation={explanation || getDefaultExplanation()}\n disabled={disabled}\n />\n );\n};\n\nexport const DriverLicenseNumberComponent = injectIntl(DriverLicenseNumber);\n"],"mappings":";;;;aA8Da,IAA+B,GAnDR,EAClC,UACA,cACA,aACA,gBACA,SACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAKW,EAAwB,qBAAqB,GAAG,SAG7D,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACR,OAAM;CACC;CACG;CACV,aACE,KACA,EAAK,kBAAkB;EACrB,IAAI;EACJ,gBAAgB;CAClB,CAAC;CAEH,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAsB,gBAAe;CAAyB,CAAA;CAEzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,6BAA6B,CAAC,CAAC;CAC/B,UAAU;CACV,aAAa,MAlCd,IAAgF,KAAnE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAW,gBAAe;CAAY,CAAA;CAmCjE;AACX,CAAA,CAIqE"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* VERSION: 2.277.0
|
|
4
|
-
* BUILD_TIMESTAMP: 1787693415496
|
|
5
|
-
* BUILD_DATE: Tue Aug 25 2026 21:30:15 GMT+0000 (Coordinated Universal Time)
|
|
6
|
-
* BUILD_COMMIT: 6bf9486531bf722019a9060202aca84ce001472b
|
|
7
|
-
*/
|
|
8
|
-
import { a as e, n as t, t as n } from "./jsx-runtime-Ini3eO9_.js";
|
|
9
|
-
import { a as r } from "./stepComponentHelpers-DIHMDrmF.js";
|
|
10
|
-
import { t as i } from "./FormFieldText-BbdrtNh_.js";
|
|
11
|
-
//#region src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.tsx
|
|
12
|
-
var a = n(), o = e(({ value: e, isErrored: n, onChange: o, explanation: s, intl: c, placeholder: l = "", isRequired: u = !1, disabled: d = !1 }) => r("driverLicenseNumber")?.hidden ? null : /* @__PURE__ */ (0, a.jsx)(i, {
|
|
13
|
-
fieldId: "driver-license-number",
|
|
14
|
-
refId: "driverLicenseNumber",
|
|
15
|
-
value: e,
|
|
16
|
-
onChange: o,
|
|
17
|
-
placeholder: l || c.formatHTMLMessage({
|
|
18
|
-
id: "driverLicenseNumberPlaceholder",
|
|
19
|
-
defaultMessage: "Driver license number"
|
|
20
|
-
}),
|
|
21
|
-
label: /* @__PURE__ */ (0, a.jsx)(t, {
|
|
22
|
-
id: "driverLicenseNumber",
|
|
23
|
-
defaultMessage: "Driver license number"
|
|
24
|
-
}),
|
|
25
|
-
errorMessage: n && /* @__PURE__ */ (0, a.jsx)(t, {
|
|
26
|
-
id: "errorId.invalidDriverLicenseNumber",
|
|
27
|
-
defaultMessage: "Invalid driver license number"
|
|
28
|
-
}),
|
|
29
|
-
showPlaceholderAndHideLabel: !!l,
|
|
30
|
-
required: u,
|
|
31
|
-
explanation: s || (u ? "" : /* @__PURE__ */ (0, a.jsx)(t, {
|
|
32
|
-
id: "optional",
|
|
33
|
-
defaultMessage: "Optional"
|
|
34
|
-
})),
|
|
35
|
-
disabled: d
|
|
36
|
-
}));
|
|
37
|
-
//#endregion
|
|
38
|
-
export { o as t };
|