@sheerid/jslib-nightly 2.252.0-alpha.1 → 2.252.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +3 -3
- package/_mysheerid-preview.js +34 -34
- package/chunk/AddressComponent-DeVavXuU.js +3 -3
- package/chunk/AddressComponent-tDOYXYuf.js +3 -3
- package/chunk/AnnouncingHeader-C8n6ru67.js +3 -3
- package/chunk/AnnouncingHeader-D1yijRkk.js +3 -3
- package/chunk/{ApiUrls-isbiU17_.js → ApiUrls-CB34tBwu.js} +4 -4
- package/chunk/{ApiUrls-Ny9uxtAY.js.map → ApiUrls-CB34tBwu.js.map} +1 -1
- package/chunk/{ApiUrls-Ny9uxtAY.js → ApiUrls-DBbzZ_5d.js} +4 -4
- package/chunk/{ApiUrls-isbiU17_.js.map → ApiUrls-DBbzZ_5d.js.map} +1 -1
- package/chunk/{BirthDateComponent-Bvw2hLXB.js → BirthDateComponent-74LmrsUh.js} +4 -4
- package/chunk/{BirthDateComponent-Bvw2hLXB.js.map → BirthDateComponent-74LmrsUh.js.map} +1 -1
- package/chunk/{BirthDateComponent-CjTuz9cR.js → BirthDateComponent-DeiRjfqb.js} +4 -4
- package/chunk/{BirthDateComponent-CjTuz9cR.js.map → BirthDateComponent-DeiRjfqb.js.map} +1 -1
- package/chunk/{CaptchaComponent-CGuBecVr.js → CaptchaComponent-CuhEe-JS.js} +5 -5
- package/chunk/{CaptchaComponent-CGuBecVr.js.map → CaptchaComponent-CuhEe-JS.js.map} +1 -1
- package/chunk/{CaptchaComponent-CL2iBcHK.js → CaptchaComponent-DrHxUXmn.js} +5 -5
- package/chunk/{CaptchaComponent-CL2iBcHK.js.map → CaptchaComponent-DrHxUXmn.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DHRFafXo.js → ChangeLocaleComponent-CMgHD59I.js} +4 -4
- package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js.map → ChangeLocaleComponent-CMgHD59I.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js → ChangeLocaleComponent-luffC-5n.js} +4 -4
- package/chunk/{ChangeLocaleComponent-DHRFafXo.js.map → ChangeLocaleComponent-luffC-5n.js.map} +1 -1
- package/chunk/City-Bn6z_tV9.js +3 -3
- package/chunk/City-Dr5JQzXh.js +3 -3
- package/chunk/{CollegeNameComponent-DxIY7Hjd.js → CollegeNameComponent-CkHW8X3_.js} +4 -4
- package/chunk/{CollegeNameComponent-B_DipcU2.js.map → CollegeNameComponent-CkHW8X3_.js.map} +1 -1
- package/chunk/{CollegeNameComponent-B_DipcU2.js → CollegeNameComponent-DTT3AdDm.js} +4 -4
- package/chunk/{CollegeNameComponent-DxIY7Hjd.js.map → CollegeNameComponent-DTT3AdDm.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BV_IRGmr.js +3 -3
- package/chunk/CopyToClipboardComponent-C_H3DLRY.js +3 -3
- package/chunk/{CountryComponentWrapper-C9D_Yvat.js → CountryComponentWrapper-Bl2FKDot.js} +4 -4
- package/chunk/{CountryComponentWrapper-Br71T6PI.js.map → CountryComponentWrapper-Bl2FKDot.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-Br71T6PI.js → CountryComponentWrapper-Cm5132xB.js} +4 -4
- package/chunk/{CountryComponentWrapper-C9D_Yvat.js.map → CountryComponentWrapper-Cm5132xB.js.map} +1 -1
- package/chunk/{DischargeDateComponent-ZcytGukr.js → DischargeDateComponent-BWUkxVcX.js} +6 -6
- package/chunk/{DischargeDateComponent-Blu8ao8l.js.map → DischargeDateComponent-BWUkxVcX.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Blu8ao8l.js → DischargeDateComponent-DGGNuN0D.js} +6 -6
- package/chunk/{DischargeDateComponent-ZcytGukr.js.map → DischargeDateComponent-DGGNuN0D.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-6lnx4TLm.js +3 -3
- package/chunk/DriverLicenseNumberComponent-Cz2hxBlw.js +3 -3
- package/chunk/{EmailLoopPending-s7pO4MYL.js → EmailLoopPending-DM5dagn5.js} +4 -4
- package/chunk/{EmailLoopPending-s7pO4MYL.js.map → EmailLoopPending-DM5dagn5.js.map} +1 -1
- package/chunk/{EmailLoopPending-C06EgjqJ.js → EmailLoopPending-niobeQv6.js} +4 -4
- package/chunk/{EmailLoopPending-C06EgjqJ.js.map → EmailLoopPending-niobeQv6.js.map} +1 -1
- package/chunk/{ExtraMessage-BkEeYdJ6.js → ExtraMessage-BV_tbK2V.js} +4 -4
- package/chunk/{ExtraMessage-BFiXfjWJ.js.map → ExtraMessage-BV_tbK2V.js.map} +1 -1
- package/chunk/{ExtraMessage-BFiXfjWJ.js → ExtraMessage-DbVKYg6z.js} +4 -4
- package/chunk/{ExtraMessage-BkEeYdJ6.js.map → ExtraMessage-DbVKYg6z.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DxL5zTJM.js → FirstResponderOrganizationComponent-4IQGU7Ka.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-CuHnKems.js.map → FirstResponderOrganizationComponent-4IQGU7Ka.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CuHnKems.js → FirstResponderOrganizationComponent-_QjLFfMC.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DxL5zTJM.js.map → FirstResponderOrganizationComponent-_QjLFfMC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-D-lRLgJc.js → FormFieldInputSelect-BNMMo-M-.js} +4 -4
- package/chunk/{FormFieldInputSelect-D-lRLgJc.js.map → FormFieldInputSelect-BNMMo-M-.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-DcYjsGZY.js → FormFieldInputSelect-DNfezB8Q.js} +4 -4
- package/chunk/{FormFieldInputSelect-DcYjsGZY.js.map → FormFieldInputSelect-DNfezB8Q.js.map} +1 -1
- package/chunk/FormFieldLayout-CvBeqSO2.js +3 -3
- package/chunk/FormFieldLayout-DHm3-7NK.js +3 -3
- package/chunk/FormFieldText-CmWzhNxx.js +3 -3
- package/chunk/FormFieldText-Ty1Ufwon.js +3 -3
- package/chunk/{FormFieldTypeahead-Bw-si92C.js → FormFieldTypeahead-BiaLXv_2.js} +6 -6
- package/chunk/{FormFieldTypeahead-Bw-si92C.js.map → FormFieldTypeahead-BiaLXv_2.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-BejkrONN.js → FormFieldTypeahead-BlWzuBPT.js} +6 -6
- package/chunk/{FormFieldTypeahead-BejkrONN.js.map → FormFieldTypeahead-BlWzuBPT.js.map} +1 -1
- package/chunk/{FormFooterComponent-SC3z7wto.js → FormFooterComponent-BPl4luwp.js} +13 -9
- package/chunk/FormFooterComponent-BPl4luwp.js.map +1 -0
- package/chunk/{FormFooterComponent-CGXehL7a.js → FormFooterComponent-DPNJTTLQ.js} +13 -9
- package/chunk/{FormFooterComponent-CGXehL7a.js.map → FormFooterComponent-DPNJTTLQ.js.map} +1 -1
- package/chunk/{FormSelectChoice-Dx-bXGwm.js → FormSelectChoice-B5iX1Wbg.js} +4 -4
- package/chunk/{FormSelectChoice-CTPh3Zs_.js.map → FormSelectChoice-B5iX1Wbg.js.map} +1 -1
- package/chunk/{FormSelectChoice-CTPh3Zs_.js → FormSelectChoice-BsIeAIak.js} +4 -4
- package/chunk/{FormSelectChoice-Dx-bXGwm.js.map → FormSelectChoice-BsIeAIak.js.map} +1 -1
- package/chunk/InputText-Dcc1GAzk.js +3 -3
- package/chunk/InputText-O-R5oYpH.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-Bw5UZYDy.js → LicensedProfessionalOrganizationComponent-469sp0ma.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-pRz7Hey5.js.map → LicensedProfessionalOrganizationComponent-469sp0ma.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-pRz7Hey5.js → LicensedProfessionalOrganizationComponent-Bqbm-4re.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-Bw5UZYDy.js.map → LicensedProfessionalOrganizationComponent-Bqbm-4re.js.map} +1 -1
- package/chunk/LogoComponent-CxMD1sHy.js +3 -3
- package/chunk/LogoComponent-RNO3O5IN.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-DEjaiJQ1.js → LowIncomeOrganizationComponent-BJWlF8dC.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-CzlNXek1.js.map → LowIncomeOrganizationComponent-BJWlF8dC.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CzlNXek1.js → LowIncomeOrganizationComponent-wfrRwozi.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-DEjaiJQ1.js.map → LowIncomeOrganizationComponent-wfrRwozi.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-AC2qiDUU.js → MedicalProfessionalOrganizationComponent-DIuKlJ7D.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-AC2qiDUU.js.map → MedicalProfessionalOrganizationComponent-DIuKlJ7D.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-P7XyWT_d.js → MedicalProfessionalOrganizationComponent-DJx4Sdog.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-P7XyWT_d.js.map → MedicalProfessionalOrganizationComponent-DJx4Sdog.js.map} +1 -1
- package/chunk/MemberIdComponent--KEsNJQy.js +3 -3
- package/chunk/MemberIdComponent-CTvlL62f.js +3 -3
- package/chunk/{MembershipOrganizationComponent-DUtEbO1h.js → MembershipOrganizationComponent-B60A7V5l.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-C-JF69xs.js.map → MembershipOrganizationComponent-B60A7V5l.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-C-JF69xs.js → MembershipOrganizationComponent-WuhfGOXa.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-DUtEbO1h.js.map → MembershipOrganizationComponent-WuhfGOXa.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-B3DigKNy.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-CEvJtoqt.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-Bp9-hSi7.js → PersonalInfoStepWrapper-BTi6sZUM.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-Bp9-hSi7.js.map → PersonalInfoStepWrapper-BTi6sZUM.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-DBDHCmcI.js → PersonalInfoStepWrapper-Ds44QLny.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DBDHCmcI.js.map → PersonalInfoStepWrapper-Ds44QLny.js.map} +1 -1
- package/chunk/PostalCodeComponent-DC6y88Ff.js +3 -3
- package/chunk/PostalCodeComponent-Q7cxuIiG.js +3 -3
- package/chunk/SSN-CCkJwsHx.js +3 -3
- package/chunk/SSN-Dxjw5wjo.js +3 -3
- package/chunk/{StateSelectComponent-Cfe-O0nI.js → StateSelectComponent-BL6nNILS.js} +4 -4
- package/chunk/{StateSelectComponent-CV23i9UP.js.map → StateSelectComponent-BL6nNILS.js.map} +1 -1
- package/chunk/{StateSelectComponent-CV23i9UP.js → StateSelectComponent-DZ4ekMz3.js} +4 -4
- package/chunk/{StateSelectComponent-Cfe-O0nI.js.map → StateSelectComponent-DZ4ekMz3.js.map} +1 -1
- package/chunk/{StatusComponent-CCZcMgf5.js → StatusComponent-DNirnu24.js} +4 -4
- package/chunk/{StatusComponent-CCZcMgf5.js.map → StatusComponent-DNirnu24.js.map} +1 -1
- package/chunk/{StatusComponent-D5PBJKSy.js → StatusComponent-lNFX8uYC.js} +4 -4
- package/chunk/{StatusComponent-D5PBJKSy.js.map → StatusComponent-lNFX8uYC.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DyJonsZi.js → StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DyJonsZi.js.map → StepActiveMilitaryPersonalInfoComponent-B--I2ZL_.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js → StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-RagEfZjY.js.map → StepActiveMilitaryPersonalInfoComponent-Bi1cfLLG.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Shxz_I62.js → StepAgePersonalInfo-BnqyuLSN.js} +11 -11
- package/chunk/{StepAgePersonalInfo-RRJXxFD4.js.map → StepAgePersonalInfo-BnqyuLSN.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-RRJXxFD4.js → StepAgePersonalInfo-DSzM4N_r.js} +11 -11
- package/chunk/{StepAgePersonalInfo-Shxz_I62.js.map → StepAgePersonalInfo-DSzM4N_r.js.map} +1 -1
- package/chunk/StepCard-BYvktbj-.js +3 -3
- package/chunk/StepCard-xJowORFe.js +3 -3
- package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js → StepCollectIdentifier-2dBrIR9W.js} +4 -4
- package/chunk/{StepCollectIdentifier-DGQ3ZH1d.js.map → StepCollectIdentifier-2dBrIR9W.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-DSlIlcXW.js → StepCollectIdentifier-CzLFzq-f.js} +4 -4
- package/chunk/{StepCollectIdentifier-DSlIlcXW.js.map → StepCollectIdentifier-CzLFzq-f.js.map} +1 -1
- package/chunk/StepCollectMilitaryStatusComponent-BP0hnzA-.js +9 -0
- package/chunk/{StepCollectMilitaryStatusComponent-Ci_-jhy9.js → StepCollectMilitaryStatusComponent-WX-lVSG6.js} +4 -4
- package/chunk/{StepCollectPersonalInfo-B83xrl6r.js → StepCollectPersonalInfo-Dc7ziTls.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-B83xrl6r.js.map → StepCollectPersonalInfo-Dc7ziTls.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js → StepCollectPersonalInfo-rd0zB5Qf.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-C-QpTTB4.js.map → StepCollectPersonalInfo-rd0zB5Qf.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-Cp0QfXMC.js +3 -3
- package/chunk/StepCompleteAuthentication-iIbsyk7K.js +3 -3
- package/chunk/{StepConsolation-DNYGDZzR.js → StepConsolation-BE-Eo_IB.js} +4 -4
- package/chunk/{StepConsolation-D9CuvYbU.js.map → StepConsolation-BE-Eo_IB.js.map} +1 -1
- package/chunk/{StepConsolation-D9CuvYbU.js → StepConsolation-BbenSSL0.js} +4 -4
- package/chunk/{StepConsolation-DNYGDZzR.js.map → StepConsolation-BbenSSL0.js.map} +1 -1
- package/chunk/{StepDocUpload-BgETpFvN.js → StepDocUpload-1ysAiDDK.js} +4 -4
- package/chunk/{StepDocUpload-BgETpFvN.js.map → StepDocUpload-1ysAiDDK.js.map} +1 -1
- package/chunk/{StepDocUpload-BNNsivJb.js → StepDocUpload-BDcmBXio.js} +4 -4
- package/chunk/{StepDocUpload-BNNsivJb.js.map → StepDocUpload-BDcmBXio.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-D96qSJuQ.js → StepDriverLicensePersonalInfoComponent-BYIHo8aS.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-D96qSJuQ.js.map → StepDriverLicensePersonalInfoComponent-BYIHo8aS.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-OyIdNeVc.js → StepDriverLicensePersonalInfoComponent-BYz9sOSI.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-OyIdNeVc.js.map → StepDriverLicensePersonalInfoComponent-BYz9sOSI.js.map} +1 -1
- package/chunk/{StepEmailLoop-DFpV_Jbb.js → StepEmailLoop-CsmaHQIC.js} +5 -5
- package/chunk/{StepEmailLoop-B87Xkxlc.js.map → StepEmailLoop-CsmaHQIC.js.map} +1 -1
- package/chunk/{StepEmailLoop-B87Xkxlc.js → StepEmailLoop-DsaZyN6s.js} +5 -5
- package/chunk/{StepEmailLoop-DFpV_Jbb.js.map → StepEmailLoop-DsaZyN6s.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D67sqEmM.js → StepEmploymentPersonalInfo-Dk86CJgZ.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-D67sqEmM.js.map → StepEmploymentPersonalInfo-Dk86CJgZ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-DRw2UHWP.js → StepEmploymentPersonalInfo-VEaVpeBO.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-DRw2UHWP.js.map → StepEmploymentPersonalInfo-VEaVpeBO.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DGYraioF.js → StepFirstResponderPersonalInfo-CGrthQIW.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-DGYraioF.js.map → StepFirstResponderPersonalInfo-CGrthQIW.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-GyykKYMf.js → StepFirstResponderPersonalInfo-DRZZAK3Z.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-GyykKYMf.js.map → StepFirstResponderPersonalInfo-DRZZAK3Z.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cj9r_Dm1.js → StepGeneralIdentityPersonalInfoComponent-3mFgLh4B.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-4DD_K-bp.js.map → StepGeneralIdentityPersonalInfoComponent-3mFgLh4B.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-4DD_K-bp.js → StepGeneralIdentityPersonalInfoComponent-BfxOy5hx.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cj9r_Dm1.js.map → StepGeneralIdentityPersonalInfoComponent-BfxOy5hx.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-0Oe_vlAv.js → StepHybridIdentityPersonalInfoComponent-CmvNDHhr.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-0Oe_vlAv.js.map → StepHybridIdentityPersonalInfoComponent-CmvNDHhr.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-COHk_4eA.js → StepHybridIdentityPersonalInfoComponent-CuiU_Wka.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-COHk_4eA.js.map → StepHybridIdentityPersonalInfoComponent-CuiU_Wka.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CpQmgiuP.js → StepIDCheckLoop-CjZpv63f.js} +4 -4
- package/chunk/{StepIDCheckLoop-CpQmgiuP.js.map → StepIDCheckLoop-CjZpv63f.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-CyhEQpIW.js → StepIDCheckLoop-Z1Ae3hAN.js} +4 -4
- package/chunk/{StepIDCheckLoop-CyhEQpIW.js.map → StepIDCheckLoop-Z1Ae3hAN.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CQtLaCtk.js → StepIDCheckLoopOnfido-BUtNgLV7.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-O0UpQfMj.js.map → StepIDCheckLoopOnfido-BUtNgLV7.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-O0UpQfMj.js → StepIDCheckLoopOnfido-LQ2bEmdZ.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-CQtLaCtk.js.map → StepIDCheckLoopOnfido-LQ2bEmdZ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-ekPS9EqN.js → StepIDCheckLoopRegula-C_GSHyPP.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-B56RrMfx.js.map → StepIDCheckLoopRegula-C_GSHyPP.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B56RrMfx.js → StepIDCheckLoopRegula-CeVUkdgc.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-ekPS9EqN.js.map → StepIDCheckLoopRegula-CeVUkdgc.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-cQ52ASXe.js → StepInactiveMilitaryPersonalInfoComponent-B7Sh5ISw.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C3soLfoE.js.map → StepInactiveMilitaryPersonalInfoComponent-B7Sh5ISw.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-C3soLfoE.js → StepInactiveMilitaryPersonalInfoComponent-DtxPAYHR.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-cQ52ASXe.js.map → StepInactiveMilitaryPersonalInfoComponent-DtxPAYHR.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BQJMsmNG.js → StepLicensedProfessionalPersonalInfo-CTDv5DHB.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-BQJMsmNG.js.map → StepLicensedProfessionalPersonalInfo-CTDv5DHB.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-uXRz37Cg.js → StepLicensedProfessionalPersonalInfo-CxM759_p.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-uXRz37Cg.js.map → StepLicensedProfessionalPersonalInfo-CxM759_p.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BA3o4C5Q.js → StepLowIncomePersonalInfo-BiiBIGXH.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-BA3o4C5Q.js.map → StepLowIncomePersonalInfo-BiiBIGXH.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Cv8fetBp.js → StepLowIncomePersonalInfo-YvMSq6ES.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-Cv8fetBp.js.map → StepLowIncomePersonalInfo-YvMSq6ES.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1Ecc04Q.js → StepMedicalProfessionalPersonalInfo-BRCJT5VV.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-4mV21wDQ.js.map → StepMedicalProfessionalPersonalInfo-BRCJT5VV.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-4mV21wDQ.js → StepMedicalProfessionalPersonalInfo-D4NOqS9P.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-D1Ecc04Q.js.map → StepMedicalProfessionalPersonalInfo-D4NOqS9P.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CZ_R2Kol.js → StepMemberPersonalInfo-CtI5S9mx.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-CP-hcjB6.js.map → StepMemberPersonalInfo-CtI5S9mx.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-CP-hcjB6.js → StepMemberPersonalInfo-rXbbPI7P.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-CZ_R2Kol.js.map → StepMemberPersonalInfo-rXbbPI7P.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DSuGgttw.js → StepMoverPersonalInfo-CO0vnQCT.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-B9floByn.js.map → StepMoverPersonalInfo-CO0vnQCT.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-B9floByn.js → StepMoverPersonalInfo-wxu_tc2P.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-DSuGgttw.js.map → StepMoverPersonalInfo-wxu_tc2P.js.map} +1 -1
- package/chunk/{StepOverrideComponent-CtiK7Cll.js → StepOverrideComponent-Cryz-7RC.js} +4 -4
- package/chunk/{StepOverrideComponent-C3G33eaP.js.map → StepOverrideComponent-Cryz-7RC.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C3G33eaP.js → StepOverrideComponent-rm5pBJUY.js} +4 -4
- package/chunk/{StepOverrideComponent-CtiK7Cll.js.map → StepOverrideComponent-rm5pBJUY.js.map} +1 -1
- package/chunk/{StepSMSLoop-CQIK_pcx.js → StepSMSLoop-BHOsYIvB.js} +4 -4
- package/chunk/{StepSMSLoop-CQIK_pcx.js.map → StepSMSLoop-BHOsYIvB.js.map} +1 -1
- package/chunk/{StepSMSLoop-DWj4eseQ.js → StepSMSLoop-DzsadZry.js} +4 -4
- package/chunk/{StepSMSLoop-DWj4eseQ.js.map → StepSMSLoop-DzsadZry.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-DsOd-7QG.js → StepSocialSecurityNumber-DDF4h4AC.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-CDj1yUok.js.map → StepSocialSecurityNumber-DDF4h4AC.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CDj1yUok.js → StepSocialSecurityNumber-xTBWXuft.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-DsOd-7QG.js.map → StepSocialSecurityNumber-xTBWXuft.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Pe2ZUK9j.js → StepStudentPersonalInfo-Cme66aGU.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-CBHCCIVO.js.map → StepStudentPersonalInfo-Cme66aGU.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CBHCCIVO.js → StepStudentPersonalInfo-DYuIs4lY.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-Pe2ZUK9j.js.map → StepStudentPersonalInfo-DYuIs4lY.js.map} +1 -1
- package/chunk/{StepSuccess-DXxmnibi.js → StepSuccess-BFyOCPpD.js} +4 -4
- package/chunk/{StepSuccess-D3uLwpVH.js.map → StepSuccess-BFyOCPpD.js.map} +1 -1
- package/chunk/{StepSuccess-D3uLwpVH.js → StepSuccess-D2ZJymvE.js} +4 -4
- package/chunk/{StepSuccess-DXxmnibi.js.map → StepSuccess-D2ZJymvE.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-CF1vJAwL.js → StepTeacherPersonalInfo-CQpDH1lu.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-CF1vJAwL.js.map → StepTeacherPersonalInfo-CQpDH1lu.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Dm-LW5uh.js → StepTeacherPersonalInfo-DZF9MgTQ.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-Dm-LW5uh.js.map → StepTeacherPersonalInfo-DZF9MgTQ.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-C_2QC6xv.js → TeacherSchoolComponent-BHpkm-dw.js} +4 -4
- package/chunk/{TeacherSchoolComponent-C_2QC6xv.js.map → TeacherSchoolComponent-BHpkm-dw.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-CFdPvPp4.js → TeacherSchoolComponent-to0mPiRt.js} +4 -4
- package/chunk/{TeacherSchoolComponent-CFdPvPp4.js.map → TeacherSchoolComponent-to0mPiRt.js.map} +1 -1
- package/chunk/TestingRouteOverrides-B-fy3D14.js +3 -3
- package/chunk/TestingRouteOverrides-CNrBdUEi.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-Bekn2hBS.js → VerificationApiClient-5TWq2h7g.js} +4 -4
- package/chunk/{VerificationApiClient-Bekn2hBS.js.map → VerificationApiClient-5TWq2h7g.js.map} +1 -1
- package/chunk/{VerificationApiClient-BPQW9aD2.js → VerificationApiClient-DCRPmrmy.js} +4 -4
- package/chunk/{VerificationApiClient-BPQW9aD2.js.map → VerificationApiClient-DCRPmrmy.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CR0L90MH.js → VerificationApiUtils-C6P5ADMI.js} +5 -5
- package/chunk/{VerificationApiUtils-Bj_D78B_.js.map → VerificationApiUtils-C6P5ADMI.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Bj_D78B_.js → VerificationApiUtils-CN4JXSCm.js} +5 -5
- package/chunk/{VerificationApiUtils-CR0L90MH.js.map → VerificationApiUtils-CN4JXSCm.js.map} +1 -1
- package/chunk/ar-BjzzbrcH.js +3 -3
- package/chunk/bg-Bkp5NQGt.js +3 -3
- package/chunk/bn-IN-BjHyWNcN.js +3 -3
- package/chunk/countryUtils-BUkGwgOv.js +3 -3
- package/chunk/countryUtils-BukgZOkT.js +3 -3
- package/chunk/cs-BXKIfyMn.js +3 -3
- package/chunk/da-KAd6QtNr.js +3 -3
- package/chunk/de-DJBgNK4j.js +3 -3
- package/chunk/{downshift.esm-DpXuqnbQ.js → downshift.esm-B3lxiir8.js} +4 -4
- package/chunk/{downshift.esm-DpXuqnbQ.js.map → downshift.esm-B3lxiir8.js.map} +1 -1
- package/chunk/{downshift.esm-trn0IS72.js → downshift.esm-DYBaK8k2.js} +4 -4
- package/chunk/{downshift.esm-trn0IS72.js.map → downshift.esm-DYBaK8k2.js.map} +1 -1
- package/chunk/el-D24Z3wzy.js +3 -3
- package/chunk/empties-B76EQa_e.js +3 -3
- package/chunk/empties-BCarcDSb.js +3 -3
- package/chunk/en-GB-CF3Dl7KN.js +3 -3
- package/chunk/es-CpfDbBaF.js +3 -3
- package/chunk/es-ES-NTqqQD-Z.js +3 -3
- package/chunk/et-D-MKFDXp.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-Xd-EWw-p.js +3 -3
- package/chunk/fi-vZnj0EV7.js +3 -3
- package/chunk/fr-46skWKoq.js +3 -3
- package/chunk/fr-CA-MGhcSzZR.js +3 -3
- package/chunk/ga-C6UbHKgo.js +3 -3
- package/chunk/hi-IN-D-B9DfgR.js +3 -3
- package/chunk/hr-BoMO1lAl.js +3 -3
- package/chunk/hu-C3wkObfm.js +3 -3
- package/chunk/id-DCJPXPB3.js +3 -3
- package/chunk/intl-Dlq5_d98.js +3 -3
- package/chunk/is-n7ZX-W4l.js +3 -3
- package/chunk/it-DQlsfBOE.js +3 -3
- package/chunk/iw-BKQiC-JL.js +3 -3
- package/chunk/ja-BLBbjU9-.js +3 -3
- package/chunk/jsx-runtime-DLOeB2wW.js +3 -3
- package/chunk/jsx-runtime-DpgCUpxa.js +3 -3
- package/chunk/kk--5reOjXd.js +3 -3
- package/chunk/ko-MNENZRnS.js +3 -3
- package/chunk/lo-CsZFzDBR.js +3 -3
- package/chunk/lt-B5Y8RB_n.js +3 -3
- package/chunk/lv-B8k3nXjr.js +3 -3
- package/chunk/militaryStepHelpers-BqE-KZl2.js +3 -3
- package/chunk/militaryStepHelpers-DgD1gxLi.js +3 -3
- package/chunk/mocks-BvwzMEuE.js +3 -3
- package/chunk/mocks-BzQvvEnm.js +3 -3
- package/chunk/ms-Eeq0sa2s.js +3 -3
- package/chunk/nl-BE-Q-VcH1RL.js +3 -3
- package/chunk/nl-DxP54Wjx.js +3 -3
- package/chunk/no-ANC_rNlg.js +3 -3
- package/chunk/options-kGoKaqH1.js +3 -3
- package/chunk/pl-DPRx8p-N.js +3 -3
- package/chunk/programThemeGetters-D1_n1gAQ.js +3 -3
- package/chunk/programThemeGetters-g9jo8zcw.js +3 -3
- package/chunk/pt-BR-CXuV1qFh.js +3 -3
- package/chunk/pt-D750WNnE.js +3 -3
- package/chunk/refs-aTynbs74.js +3 -3
- package/chunk/refs-rlVEzXRZ.js +3 -3
- package/chunk/ro-Dfw74qwR.js +3 -3
- package/chunk/ru-DIfpRqK4.js +3 -3
- package/chunk/sk-CPxzhPDR.js +3 -3
- package/chunk/sl-ZRK2V5CC.js +3 -3
- package/chunk/sr-DQ95rOm6.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-CcFYvoGI.js +3 -3
- package/chunk/sw-D5sN0Ucb.js +3 -3
- package/chunk/ta-BUE37EiO.js +3 -3
- package/chunk/th-BUntaztH.js +3 -3
- package/chunk/tl-CY2mXMuK.js +3 -3
- package/chunk/tr-C0uQMNlc.js +3 -3
- package/chunk/uk-D4dPV9ho.js +3 -3
- package/chunk/ur-DCmi_xNC.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-DHje25fr.js → useCollectFieldsEndpoint-CA0WUL-t.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DVsW9TzX.js.map → useCollectFieldsEndpoint-CA0WUL-t.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DVsW9TzX.js → useCollectFieldsEndpoint-Crk6K05m.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DHje25fr.js.map → useCollectFieldsEndpoint-Crk6K05m.js.map} +1 -1
- package/chunk/useMetrics-BmevR9lU.js +3 -3
- package/chunk/useMetrics-CC3avpOk.js +3 -3
- package/chunk/validators-BzVIDpk_.js +3 -3
- package/chunk/validators-ncvf0dvm.js +3 -3
- package/chunk/vi-BfTLjHg7.js +3 -3
- package/chunk/zh-CB4_bXo2.js +3 -3
- package/chunk/zh-HK-DycNxL4f.js +3 -3
- package/chunk/zu-CWhDRsFE.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +34 -34
- package/chunk/FormFooterComponent-SC3z7wto.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-CA1qdNSr.js +0 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { F as e } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { a as t, n, t as r } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
10
|
import { N as i } from "../sheerid.js";
|
|
11
|
-
import { t as a } from "./downshift.esm-
|
|
11
|
+
import { t as a } from "./downshift.esm-B3lxiir8.js";
|
|
12
12
|
//#region src/components/FormInputs/Select/SelectList/SelectListComponent.tsx
|
|
13
13
|
var o = r(), s = 42, c = ({ getItemProps: e, highlightedIndex: t, options: r, itemToString: i }) => {
|
|
14
14
|
let a = r.length * s, c = (n, a) => /* @__PURE__ */ (0, o.jsx)("div", {
|
package/chunk/{ChangeLocaleComponent-BT7Cty7Q.js.map → ChangeLocaleComponent-CMgHD59I.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeLocaleComponent-BT7Cty7Q.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={`sid-select-list ${className}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import {\n FormattedHTMLMessage,\n type InjectedIntl,\n type InjectedIntlProps,\n injectIntl,\n} from \"react-intl\";\n\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocaleChoices } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { SelectComponent } from \"../../FormInputs/Select/SelectComponent\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice;\n options: FormSelectChoice[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nconst ChangeLocale = ({\n value,\n options,\n onChange,\n intl,\n}: ChangeLocaleProps & InjectedIntlProps) => {\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: intl.formatHTMLMessage({\n id: `locales.${option.value}`,\n defaultMessage: \"Label not found\",\n }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\nexport const ChangeLocaleComponent = injectIntl(ChangeLocale);\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst ChangeLocaleV2 = ({ verificationService, intl }: ChangeLocaleV2Props) => {\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocaleChoices(\n verificationService.programTheme,\n intl,\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n\nexport const ChangeLocaleV2Component = injectIntl(ChangeLocaleV2);\n"],"mappings":";;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,W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GACvD,uBAAuB,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAO,EAAW,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,CAE4D,GA6C/C,IAA0B,GAlCf,EAAE,wBAAqB,cAAgC;CAC7E,IAAM,IAAoD,EACxD,EAAoB,cACpB,CACF,GAEM,KAAgB,MAAmD;EAClE,GAAc,SACf,EAAoB,UAAU,aAAa,UAAU,EAAa,SAEtE,EAAoB,aAClB,EAAa,OACb,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAI,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAM,IAAwD;EAC5D,OAAO;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL,CAEgE"}
|
|
1
|
+
{"version":3,"file":"ChangeLocaleComponent-CMgHD59I.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={`sid-select-list ${className}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import {\n FormattedHTMLMessage,\n type InjectedIntl,\n type InjectedIntlProps,\n injectIntl,\n} from \"react-intl\";\n\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocaleChoices } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { SelectComponent } from \"../../FormInputs/Select/SelectComponent\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice;\n options: FormSelectChoice[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nconst ChangeLocale = ({\n value,\n options,\n onChange,\n intl,\n}: ChangeLocaleProps & InjectedIntlProps) => {\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: intl.formatHTMLMessage({\n id: `locales.${option.value}`,\n defaultMessage: \"Label not found\",\n }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\nexport const ChangeLocaleComponent = injectIntl(ChangeLocale);\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst ChangeLocaleV2 = ({ verificationService, intl }: ChangeLocaleV2Props) => {\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocaleChoices(\n verificationService.programTheme,\n intl,\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n\nexport const ChangeLocaleV2Component = injectIntl(ChangeLocaleV2);\n"],"mappings":";;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,IAAQ,uCAAuC;EAItE,GAAI,EAAa;GACf;GACA;EACF,CAAC;YAEA,EAAa,EAAQ,EAAM;CACzB,GARE,CAQF;CAWP,OARI,CAAC,KAAW,EAAQ,WAAW,IAE/B,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAY,GAAG,EAAE;YACrF,EAAQ,KAAK,GAAQ,MAAU,EAAoB,GAAQ,CAAK,CAAC;CAC/D,CAAA;AAET,GCvBa,KAjBS,EAAE,yBAAsB,gBAE5C,iBAAA,GAAA,EAAA,KAAC,UAAD;CAAQ,GAAI,EAAqB,CAAC,CAAC;CAAG,WAAU;CAAoB,MAAK;WACvE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,SAAQ;EACR,qBAAoB;EACpB,OAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,WAAW,IAAS,gBAAgB,KAAA;YAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;CAC1B,CAAA;AACC,CAAA,GCCJ,KAAgB,MAA4B,IAAO,EAAK,QAAQ,I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AO;GACtB,gBAAgB;EAClB,CAAC;CACH,EAAE,GACI,IAAK;CAEX,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;GAA4C,IAAI,GAAG,EAAG;aACnE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAsB,IAAG;IAAiB,gBAAe;GAAmB,CAAA;EACzE,CAAA,GACL,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,WAAU;GACV,SAAS;GACT,WAAW,MAA6B,EAAS,CAAM;GACvD,uBAAuB,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAO,EAAW,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,CAE4D,GA6C/C,IAA0B,GAlCf,EAAE,wBAAqB,cAAgC;CAC7E,IAAM,IAAoD,EACxD,EAAoB,cACpB,CACF,GAEM,KAAgB,MAAmD;EAClE,GAAc,SACf,EAAoB,UAAU,aAAa,UAAU,EAAa,SAEtE,EAAoB,aAClB,EAAa,OACb,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAI,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAM,IAAwD;EAC5D,OAAO;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL,CAEgE"}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { F as e } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { a as t, n, t as r } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
14
|
import { M as i } from "../_mysheerid-preview.js";
|
|
15
|
-
import { t as a } from "./downshift.esm-
|
|
15
|
+
import { t as a } from "./downshift.esm-DYBaK8k2.js";
|
|
16
16
|
//#region src/components/FormInputs/Select/SelectList/SelectListComponent.tsx
|
|
17
17
|
var o = r(), s = 42, c = ({ getItemProps: e, highlightedIndex: t, options: r, itemToString: i }) => {
|
|
18
18
|
let a = r.length * s, c = (n, a) => /* @__PURE__ */ (0, o.jsx)("div", {
|
package/chunk/{ChangeLocaleComponent-DHRFafXo.js.map → ChangeLocaleComponent-luffC-5n.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeLocaleComponent-DHRFafXo.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={`sid-select-list ${className}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import {\n FormattedHTMLMessage,\n type InjectedIntl,\n type InjectedIntlProps,\n injectIntl,\n} from \"react-intl\";\n\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocaleChoices } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { SelectComponent } from \"../../FormInputs/Select/SelectComponent\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice;\n options: FormSelectChoice[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nconst ChangeLocale = ({\n value,\n options,\n onChange,\n intl,\n}: ChangeLocaleProps & InjectedIntlProps) => {\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: intl.formatHTMLMessage({\n id: `locales.${option.value}`,\n defaultMessage: \"Label not found\",\n }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\nexport const ChangeLocaleComponent = injectIntl(ChangeLocale);\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst ChangeLocaleV2 = ({ verificationService, intl }: ChangeLocaleV2Props) => {\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocaleChoices(\n verificationService.programTheme,\n intl,\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n\nexport const ChangeLocaleV2Component = injectIntl(ChangeLocaleV2);\n"],"mappings":";;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,IAAQ,uCAAuC;EAItE,GAAI,EAAa;GACf;GACA;EACF,CAAC;YAEA,EAAa,EAAQ,EAAM;CACzB,GARE,CAQF;CAWP,OARI,CAAC,KAAW,EAAQ,WAAW,IAE/B,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAY,GAAG,EAAE;YACrF,EAAQ,KAAK,GAAQ,MAAU,EAAoB,GAAQ,CAAK,CAAC;CAC/D,CAAA;AAET,GCvBa,KAjBS,EAAE,yBAAsB,gBAE5C,iBAAA,GAAA,EAAA,KAAC,UAAD;CAAQ,GAAI,EAAqB,CAAC,CAAC;CAAG,WAAU;CAAoB,MAAK;WACvE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,SAAQ;EACR,qBAAoB;EACpB,OAAO;EACP,MAAK;EACL,QAAO;EACP,aAAY;EACZ,WAAW,IAAS,gBAAgB,KAAA;YAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;CAC1B,CAAA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,EAAO;EACd,OAAO,EAAK,kBAAkB;GAC5B,IAAI,WAAW,EAAO;GACtB,gBAAgB;EAClB,CAAC;CACH,EAAE,GACI,IAAK;CAEX,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;GAA4C,IAAI,GAAG,EAAG;aACnE,iBAAA,GAAA,EAAA,KAAC,GAAD;IAAsB,IAAG;IAAiB,gBAAe;GAAmB,CAAA;EACzE,CAAA,GACL,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,WAAU;GACV,SAAS;GACT,WAAW,MAA6B,EAAS,CAAM;GACvD,uBAAuB,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAe,CAAA;GACtC,wBAAuB;GACvB,OAAO,EAAW,MAAM,MAAW,EAAO,WAAW,KAAS,EAAM,MAAM;GACtE;EACL,CAAA,CACE;;AAET,CAE4D,GA6C/C,IAA0B,GAlCf,EAAE,wBAAqB,cAAgC;CAC7E,IAAM,IAAoD,EACxD,EAAoB,cACpB,CACF,GAEM,KAAgB,MAAmD;EAClE,GAAc,SACf,EAAoB,UAAU,aAAa,UAAU,EAAa,SAEtE,EAAoB,aAClB,EAAa,OACb,EAAoB,qBAAqB,OAC3C;CACF;CAEA,IAAI,EAAc,UAAU,GAC1B,OAAO;CAGT,IAAM,IAAwD;EAC5D,OAAO;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL,CAEgE"}
|
|
1
|
+
{"version":3,"file":"ChangeLocaleComponent-luffC-5n.js","names":[],"sources":["../../src/components/FormInputs/Select/SelectList/SelectListComponent.tsx","../../src/components/FormInputs/Select/SelectButton/SelectButtonComponent.tsx","../../src/components/FormInputs/Select/SelectComponent.tsx","../../src/components/FormFields/ChangeLocale/icons/LocaleSymbol.tsx","../../src/components/FormFields/ChangeLocale/ChangeLocaleComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ninterface SelectListProps {\n getItemProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n}\n\nconst ROW_HEIGHT = 42;\n\nconst SelectList = ({ getItemProps, highlightedIndex, options, itemToString }: SelectListProps) => {\n const fullHeight = options.length * ROW_HEIGHT;\n\n const optionWithItemProps = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-select-list__item ${\n highlightedIndex === index ? \"sid-select-list__item--highlighted\" : \"\"\n }`}\n key={index}\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getItemProps({\n index,\n item,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n if (!options || options.length === 0) {\n return (\n <div className=\"sid-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n }\n\n return (\n <div className=\"sid-input-select-list__menu\" style={{ height: Math.min(fullHeight, 280) }}>\n {options.map((option, index) => optionWithItemProps(option, index))}\n </div>\n );\n};\n\nexport const SelectListComponent = SelectList;\n","interface SelectButtonProps {\n getToggleButtonProps: any;\n isOpen: boolean;\n}\n\nconst SelectButton = ({ getToggleButtonProps, isOpen }: SelectButtonProps) => (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <button {...getToggleButtonProps({})} className=\"sid-select-button\" type=\"button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"3px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n);\n\nexport const SelectButtonComponent = SelectButton;\n","import type React from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\nimport { SelectListComponent } from \"./SelectList/SelectListComponent\";\nimport { SelectButtonComponent } from \"./SelectButton/SelectButtonComponent\";\n\ninterface SelectProps {\n className?: string;\n isErrored?: boolean;\n onChange: any;\n options: FormSelectChoice[];\n overrideInputClassName?: string;\n placeholder?: string;\n value?: FormSelectChoice;\n DisplayValueDecorator?: React.ReactNode;\n id?: string;\n}\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst Select = ({\n className,\n isErrored = false,\n onChange,\n options,\n overrideInputClassName,\n placeholder = \"\",\n value,\n DisplayValueDecorator,\n id,\n}: SelectProps) => {\n const {\n isOpen,\n getInputProps,\n getMenuProps,\n getToggleButtonProps,\n getItemProps,\n highlightedIndex,\n } = useCombobox({\n id,\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n items: options,\n itemToString,\n initialSelectedItem: value && value.value && value.label ? value : undefined,\n });\n const displayValue = value?.label || \"\";\n\n return (\n <div className={`sid-select-list ${className}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps()}\n className={`\n sid-l-full-width\n ${overrideInputClassName || \"sid-select-input\"}\n ${isErrored ? \"sid-select-input--error\" : \"\"}\n `}\n placeholder={placeholder}\n readOnly\n />\n\n {displayValue && (\n <span className=\"sid-select-display\">\n {DisplayValueDecorator && DisplayValueDecorator}\n <span aria-hidden>{displayValue}</span>\n <SelectButtonComponent getToggleButtonProps={getToggleButtonProps} isOpen={isOpen} />\n </span>\n )}\n\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMenuProps()}>\n {isOpen && (\n <SelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={options}\n getItemProps={getItemProps}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const SelectComponent = Select;\n","export const LocaleSymbol = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"3.48 3.06 67.67 37.07\"\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"locale-symbol-svg\"\n >\n <path\n fill=\"currentColor\"\n stroke=\"none\"\n d=\"m 4.53,38.37 -1.05,-1.75 2.56,-0.81 c 4.27,-1.35 9.26,-3.96 12.59,-6.59 0.46,-0.36 0.47,-0.45 0.11,-0.87 -4.36,-5.09 -5.75,-7.32 -7.63,-12.24 l -0.96,-2.51 -2.96,-0.07 -2.96,-0.07 V 11.48 9.5 h 7.81 c 7.41,0 7.8,-0.02 7.56,-0.47 -0.14,-0.26 -0.92,-1.4 -1.73,-2.53 -0.81,-1.13 -1.48,-2.1 -1.48,-2.16 0,-0.05 0.63,-0.33 1.39,-0.61 2.65,-0.98 2.41,-1.04 3.57,0.8 0.58,0.92 1.43,2.41 1.89,3.32 l 0.83,1.65 h 7.54 7.54 v 1.98 1.98 l -2.98,0.07 -2.98,0.07 -0.61,1.72 c -1.44,4.04 -4.11,8.89 -6.44,11.68 -0.56,0.68 -1.02,1.39 -1.02,1.59 0,0.42 4,3.14 6.89,4.7 1.1,0.59 3.3,1.62 4.89,2.28 1.59,0.67 2.94,1.26 3,1.32 0.09,0.09 -0.54,1.14 -1.84,3.1 -0.39,0.59 -8.46,-3.29 -12.5,-6.02 -3.87,-2.62 -3.41,-2.46 -4.65,-1.57 -4.56,3.28 -7.64,4.93 -12.51,6.7 l -2.83,1.03 z M 23.84,23.73 c 1.66,-2.24 4.6,-7.89 4.9,-9.4 l 0.17,-0.86 h -7.34 -7.34 l 0.17,0.86 c 0.25,1.27 2.39,5.4 3.73,7.19 1.67,2.23 3.57,4.39 3.86,4.39 0.14,0 0.98,-0.98 1.86,-2.17 z M 44.03,35.51 c 0.08,-0.26 2.45,-6.96 5.27,-14.89 l 5.12,-14.42 3.06,-0.07 3.06,-0.07 0.39,1.13 c 0.43,1.23 9.28,26.16 9.86,27.79 l 0.36,0.99 h -2.83 -2.83 l -1.19,-3.77 -1.19,-3.77 -5.56,-0.07 -5.56,-0.07 -1.23,3.78 -1.23,3.78 -2.82,0.08 c -2.6,0.07 -2.81,0.04 -2.67,-0.4 z M 61.64,23.99 c -0.03,-0.54 -3.96,-12.23 -4.13,-12.29 -0.19,-0.06 -4.07,11.52 -4.07,12.16 0,0.11 1.85,0.2 4.1,0.2 2.26,0 4.1,-0.03 4.1,-0.07 z\"\n />\n </svg>\n);\n","import {\n FormattedHTMLMessage,\n type InjectedIntl,\n type InjectedIntlProps,\n injectIntl,\n} from \"react-intl\";\n\nimport { DEFAULT_LOCALE } from \"@/constants\";\nimport { type FormSelectChoice, type Locale, type VerificationService } from \"@/lib/types/types\";\nimport { getAvailableLocaleChoices } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { SelectComponent } from \"../../FormInputs/Select/SelectComponent\";\n\nimport { LocaleSymbol } from \"./icons/LocaleSymbol\";\n\ninterface ChangeLocaleProps {\n value: FormSelectChoice;\n options: FormSelectChoice[];\n onChange: (localeChoice: FormSelectChoice) => any;\n}\n\nconst ChangeLocale = ({\n value,\n options,\n onChange,\n intl,\n}: ChangeLocaleProps & InjectedIntlProps) => {\n const newOptions: FormSelectChoice[] = options.map((option) => ({\n value: option.value,\n label: intl.formatHTMLMessage({\n id: `locales.${option.value}`,\n defaultMessage: \"Label not found\",\n }),\n }));\n const id = \"changeLanguageSelector\";\n\n return (\n <div className=\"sid-change-locale\">\n <div className=\"sid-field__label sid-change-locale__label\" id={`${id}-label`}>\n <FormattedHTMLMessage id=\"changeLanguage\" defaultMessage=\"Change language\" />\n </div>\n <SelectComponent\n className=\"sid-change-locale__select\"\n options={newOptions}\n onChange={(locale: FormSelectChoice) => onChange(locale)}\n DisplayValueDecorator={<LocaleSymbol />}\n overrideInputClassName=\"sid-change-locale__input\"\n value={newOptions.find((option) => option.value === (value && value.value))}\n id={id}\n />\n </div>\n );\n};\n\nexport const ChangeLocaleComponent = injectIntl(ChangeLocale);\n\n/**\n * This V2 component wraps the original one\n * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel\n */\ninterface ChangeLocaleV2Props {\n verificationService: VerificationService;\n intl: InjectedIntl;\n}\n\nconst ChangeLocaleV2 = ({ verificationService, intl }: ChangeLocaleV2Props) => {\n const localeChoices: FormSelectChoice<Locale, string>[] = getAvailableLocaleChoices(\n verificationService.programTheme,\n intl,\n );\n\n const updateLocale = (localeChoice: FormSelectChoice<Locale, string>) => {\n if (!localeChoice?.value) return;\n if (verificationService.viewModel.localeChoice.value === localeChoice.value) return;\n\n verificationService.updateLocale(\n localeChoice.value,\n verificationService.verificationResponse.segment,\n );\n };\n\n if (localeChoices.length <= 1) {\n return null;\n }\n\n const defaultLocaleChoice: FormSelectChoice<Locale, string> = {\n value: DEFAULT_LOCALE,\n label: \"English\",\n };\n\n return (\n <ChangeLocaleComponent\n options={localeChoices}\n value={verificationService.viewModel.localeChoice || defaultLocaleChoice}\n onChange={(localeChoice: FormSelectChoice<Locale, string>) => updateLocale(localeChoice)}\n />\n );\n};\n\nexport const ChangeLocaleV2Component = injectIntl(ChangeLocaleV2);\n"],"mappings":";;;;;aAWM,IAAa,IAoCN,KAlCO,EAAE,iBAAc,qBAAkB,YAAS,sBAAoC;CACjG,IAAM,IAAa,EAAQ,SAAS,GAE9B,KAAuB,GAAwB,MACnD,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,yBACT,MAAqB,IAAQ,uCAAuC;EAItE,GAAI,EAAa;GACf;GACA;EACF,CAAC;YAEA,EAAa,EAAQ,EAAM;CACzB,GARE,CAQF;CAWP,OARI,CAAC,KAAW,EAAQ,WAAW,IAE/B,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAY,gBAAe;EAAc,CAAA;CAC/D,CAAA,IAKP,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;EAA8B,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAY,GAAG,EAAE;YACrF,EAAQ,KAAK,GAAQ,MAAU,EAAoB,GAAQ,CAAK,CAAC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;EACP,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAS;EACT,OAAO,EAAoB,UAAU,gBAAgB;EACrD,WAAW,MAAmD,EAAa,CAAY;CACxF,CAAA;AAEL,CAEgE"}
|
package/chunk/City-Bn6z_tV9.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-DLOeB2wW.js";
|
package/chunk/City-Dr5JQzXh.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-DpgCUpxa.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { n as e } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { a as t, n, t as r } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
10
|
import { u as i } from "./programThemeGetters-g9jo8zcw.js";
|
|
11
11
|
import { V as a } from "../sheerid.js";
|
|
12
|
-
import { t as o } from "./FormFieldTypeahead-
|
|
12
|
+
import { t as o } from "./FormFieldTypeahead-BlWzuBPT.js";
|
|
13
13
|
//#region src/components/FormFields/CollegeName/CollegeNameComponent.tsx
|
|
14
14
|
var s = r(), c = t(({ value: t, isErrored: r, onChange: c, verificationService: l, intl: u, placeholder: d = "", isRequired: f = !0, disabled: p = !1 }) => {
|
|
15
15
|
let m = (e().urlAddSchoolForm || "").trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollegeNameComponent-
|
|
1
|
+
{"version":3,"file":"CollegeNameComponent-CkHW8X3_.js","names":[],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { getOptions } from \"../../../options/options\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const CollegeName = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n isRequired = true,\n disabled = false,\n}: FormFieldComponentProps<Organization> & VerificationServiceProps) => {\n const urlAddSchoolForm = (getOptions().urlAddSchoolForm || \"\").trim();\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"college-name\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"schoolNamePlaceholder\",\n defaultMessage: \"University / College name\",\n })\n }\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"University / College name\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={isRequired}\n showPlaceholderAndHideLabel={!!placeholder}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n\nexport const CollegeNameComponent = injectIntl(CollegeName);\n"],"mappings":";;;;;;aAiEa,IAAuB,GApDR,EAC1B,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAM,KAAoB,EAAW,EAAE,oBAAoB,IAAI,KAAK;CAQpE,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aACE,KACA,EAAK,kBAAkB;GACrB,IAAI;GACJ,gBAAgB;EAClB,CAAC;EAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACkB;EACR;CACX,CAAA;AAEL,CAE0D"}
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { s as e } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { a as t, n, t as r } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
14
|
import { u as i } from "./programThemeGetters-D1_n1gAQ.js";
|
|
15
15
|
import { B as a } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as o } from "./FormFieldTypeahead-
|
|
16
|
+
import { t as o } from "./FormFieldTypeahead-BiaLXv_2.js";
|
|
17
17
|
//#region src/components/FormFields/CollegeName/CollegeNameComponent.tsx
|
|
18
18
|
var s = r(), c = t(({ value: t, isErrored: r, onChange: c, verificationService: l, intl: u, placeholder: d = "", isRequired: f = !0, disabled: p = !1 }) => {
|
|
19
19
|
let m = (e().urlAddSchoolForm || "").trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollegeNameComponent-
|
|
1
|
+
{"version":3,"file":"CollegeNameComponent-DTT3AdDm.js","names":[],"sources":["../../src/components/FormFields/CollegeName/CollegeNameComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { getOptions } from \"../../../options/options\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const CollegeName = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n isRequired = true,\n disabled = false,\n}: FormFieldComponentProps<Organization> & VerificationServiceProps) => {\n const urlAddSchoolForm = (getOptions().urlAddSchoolForm || \"\").trim();\n\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"college-name\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"schoolNamePlaceholder\",\n defaultMessage: \"University / College name\",\n })\n }\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"University / College name\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={isRequired}\n showPlaceholderAndHideLabel={!!placeholder}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n urlAddSchoolForm={urlAddSchoolForm}\n disabled={disabled}\n />\n );\n};\n\nexport const CollegeNameComponent = injectIntl(CollegeName);\n"],"mappings":";;;;;;aAiEa,IAAuB,GApDR,EAC1B,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,gBAAa,IACb,cAAW,SAC2D;CACtE,IAAM,KAAoB,EAAW,EAAE,oBAAoB,IAAI,KAAK;CAQpE,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aACE,KACA,EAAK,kBAAkB;GACrB,IAAI;GACJ,gBAAgB;EAClB,CAAC;EAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAa,gBAAe;EAA6B,CAAA;EACzF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACkB;EACR;CACX,CAAA;AAEL,CAE0D"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Ht as e, Wt as t } from "./options-kGoKaqH1.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { Bt as e, Ht as t } from "./intl-Dlq5_d98.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, Wt as t, c as n, ct as r } from "./options-kGoKaqH1.js";
|
|
@@ -10,7 +10,7 @@ import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DpgCUpxa.js";
|
|
|
10
10
|
import { n as c } from "./empties-BCarcDSb.js";
|
|
11
11
|
import { a as l } from "./validators-ncvf0dvm.js";
|
|
12
12
|
import { $ as u, U as d, V as f, Y as p, et as m } from "../sheerid.js";
|
|
13
|
-
import { t as h } from "./FormFieldInputSelect-
|
|
13
|
+
import { t as h } from "./FormFieldInputSelect-BNMMo-M-.js";
|
|
14
14
|
//#region src/components/FormFields/Country/CountryComponent.tsx
|
|
15
15
|
var g = /* @__PURE__ */ t(a(), 1), _ = s(), v = i(({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: i, intl: a, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => /* @__PURE__ */ (0, _.jsx)(h, {
|
|
16
16
|
fieldId: "country",
|
package/chunk/{CountryComponentWrapper-Br71T6PI.js.map → CountryComponentWrapper-Bl2FKDot.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountryComponentWrapper-
|
|
1
|
+
{"version":3,"file":"CountryComponentWrapper-Bl2FKDot.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\";\nimport { type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\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 getSortedCountryChoices,\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\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n intl: InjectedIntl;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\ntype DeprecatedProps = {\n viewModel?: ViewModel; // deprecated, uses verificationService.viewModel instead\n nextFocusField?: string; // deprecated\n};\n\nconst BaseCountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n intl,\n viewModel = undefined,\n nextFocusField = undefined,\n disabled = false,\n}: CountryComponentWrapperProps & DeprecatedProps) => {\n if (viewModel) {\n logger.warn(\"viewModel prop is deprecated, use verificationService.viewModel instead\");\n }\n if (nextFocusField) {\n logger.warn(\"nextFocusField prop is deprecated\");\n }\n const locale = getSafe(() => viewModel.localeChoice.value, \"en-US\");\n const countryChoices: FormSelectChoice<Country, string>[] = getSortedCountryChoices(\n verificationService.programTheme,\n intl,\n locale,\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\nexport const CountryComponentWrapper = injectIntl(BaseCountryComponentWrapper);\n"],"mappings":";;;;;;;4CA2CA,IAAA,GAtCA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,SAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;EAsCA,GC2Ga,IAA0B,GA3GF,EACnC,wBACA,6BAA0B,KAAA,GAC1B,SACA,eAAY,KAAA,GACZ,oBAAiB,KAAA,GACjB,cAAW,SACyC;CAIpD,AAHI,KACF,EAAO,KAAK,yEAAyE,GAEnF,KACF,EAAO,KAAK,mCAAmC;C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,UAAU,OAAO,MAAqD;GACpE,IAAM,IAAe,IAAgB,EAAc,QAAQ,KAAA;GAE3D,AADA,EAAoB,CAAa,GACjC,EAAqC,WAAW,GAAc,CAAmB;EACnF;CACD,CAAA;AAEL,CAE6E"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { Ht as e, It as t, Lt as n, p as r } from "./intl-Dlq5_d98.js";
|
|
@@ -14,7 +14,7 @@ import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DLOeB2wW.js";
|
|
|
14
14
|
import { n as c } from "./empties-B76EQa_e.js";
|
|
15
15
|
import { a as l } from "./validators-BzVIDpk_.js";
|
|
16
16
|
import { $ as u, B as d, H as f, J as p, Q as m } from "../_mysheerid-preview.js";
|
|
17
|
-
import { t as h } from "./FormFieldInputSelect-
|
|
17
|
+
import { t as h } from "./FormFieldInputSelect-DNfezB8Q.js";
|
|
18
18
|
//#region src/components/FormFields/Country/CountryComponent.tsx
|
|
19
19
|
var g = /* @__PURE__ */ e(a(), 1), _ = s(), v = i(({ value: e, isErrored: t, options: n, onChange: r, onKeyDown: i, intl: a, placeholder: s = "", isRequired: c = !0, suppressPlaceholder: l = !1, disabled: u = !1 }) => /* @__PURE__ */ (0, _.jsx)(h, {
|
|
20
20
|
fieldId: "country",
|
package/chunk/{CountryComponentWrapper-C9D_Yvat.js.map → CountryComponentWrapper-Cm5132xB.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountryComponentWrapper-
|
|
1
|
+
{"version":3,"file":"CountryComponentWrapper-Cm5132xB.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\";\nimport { type InjectedIntl, injectIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\nimport { getSafe } from \"@jslib/shared/utils/getSafe\";\n\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 getSortedCountryChoices,\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\";\n\nimport { CountryComponent } from \"./CountryComponent\";\n\ntype CountryComponentWrapperProps = {\n verificationService: VerificationService;\n intl: InjectedIntl;\n viewModelDraftDecorator?: (\n draft: ViewModel,\n countryChoice?: FormSelectChoice<Country, string>,\n ) => void;\n disabled?: boolean;\n};\n\ntype DeprecatedProps = {\n viewModel?: ViewModel; // deprecated, uses verificationService.viewModel instead\n nextFocusField?: string; // deprecated\n};\n\nconst BaseCountryComponentWrapper = ({\n verificationService,\n viewModelDraftDecorator = undefined,\n intl,\n viewModel = undefined,\n nextFocusField = undefined,\n disabled = false,\n}: CountryComponentWrapperProps & DeprecatedProps) => {\n if (viewModel) {\n logger.warn(\"viewModel prop is deprecated, use verificationService.viewModel instead\");\n }\n if (nextFocusField) {\n logger.warn(\"nextFocusField prop is deprecated\");\n }\n const locale = getSafe(() => viewModel.localeChoice.value, \"en-US\");\n const countryChoices: FormSelectChoice<Country, string>[] = getSortedCountryChoices(\n verificationService.programTheme,\n intl,\n locale,\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\nexport const CountryComponentWrapper = injectIntl(BaseCountryComponentWrapper);\n"],"mappings":";;;;;;;4CA2CA,IAAA,GAtCA,EAAA,UAAA,cAAA,YAAA,aAAA,cAAA,SAAA,iBAAA,IAAA,gBAAA,IAAA,yBAAA,IAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;EAsCA,GC2Ga,IAA0B,GA3GF,EACnC,wBACA,6BAA0B,KA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AAC,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,CAE6E"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.252.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
3
|
+
* VERSION: 2.252.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1783448914471
|
|
5
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:34 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, F as t, Wt as n, ct as r } from "./options-kGoKaqH1.js";
|
|
9
9
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DpgCUpxa.js";
|
|
10
|
-
import { a as c } from "./VerificationApiClient-
|
|
10
|
+
import { a as c } from "./VerificationApiClient-5TWq2h7g.js";
|
|
11
11
|
import { V as l, q as u } from "../sheerid.js";
|
|
12
|
-
import { r as d } from "./CaptchaComponent-
|
|
13
|
-
import { t as f } from "./FormFieldInputSelect-
|
|
12
|
+
import { r as d } from "./CaptchaComponent-DrHxUXmn.js";
|
|
13
|
+
import { t as f } from "./FormFieldInputSelect-BNMMo-M-.js";
|
|
14
14
|
import { t as p } from "./countryUtils-BUkGwgOv.js";
|
|
15
15
|
//#region src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.tsx
|
|
16
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, {
|
package/chunk/{DischargeDateComponent-Blu8ao8l.js.map → DischargeDateComponent-BWUkxVcX.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DischargeDateComponent-Blu8ao8l.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}: 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\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;E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sB,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,cAEe,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;CACV,YAAA;CACQ;CACR,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAI,WAAW;EAAW,gBAAe;CAA0B,CAAA;AAE5F,CAAA"}
|
|
1
|
+
{"version":3,"file":"DischargeDateComponent-BWUkxVcX.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}: 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\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,EAA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AU,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,cAEe,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;CACV,YAAA;CACQ;CACR,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAI,WAAW;EAAW,gBAAe;CAA0B,CAAA;AAE5F,CAAA"}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.252.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Tue Jul 07 2026
|
|
7
|
+
* VERSION: 2.252.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1783448918340
|
|
9
|
+
* BUILD_DATE: Tue Jul 07 2026 18:28:38 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 48b0409a12336b828039f2e484fce95e61418480
|
|
11
11
|
*/
|
|
12
12
|
import { F as e, Ht as t, It as n, Lt as r } from "./intl-Dlq5_d98.js";
|
|
13
13
|
import { a as i, c as a, n as o, t as s } from "./jsx-runtime-DLOeB2wW.js";
|
|
14
|
-
import { a as c } from "./VerificationApiClient-
|
|
14
|
+
import { a as c } from "./VerificationApiClient-DCRPmrmy.js";
|
|
15
15
|
import { B as l, K as u } from "../_mysheerid-preview.js";
|
|
16
|
-
import { r as d } from "./CaptchaComponent-
|
|
17
|
-
import { t as f } from "./FormFieldInputSelect-
|
|
16
|
+
import { r as d } from "./CaptchaComponent-CuhEe-JS.js";
|
|
17
|
+
import { t as f } from "./FormFieldInputSelect-DNfezB8Q.js";
|
|
18
18
|
import { t as p } from "./countryUtils-BukgZOkT.js";
|
|
19
19
|
//#region src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.tsx
|
|
20
20
|
var m = s(), h = ({ onChange: t, errorId: n, isErrored: r = !!n, value: i = "2000-01-01", locale: a = e, disabled: s = !1 }) => l("activeDutyStartDate")?.hidden ? null : /* @__PURE__ */ (0, m.jsx)(d, {
|