@sheerid/jslib 2.266.0 → 2.267.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +35 -35
- package/chunk/AddressComponent-QwODxbki.js +4 -4
- package/chunk/AddressComponent-z7wQ_rZc.js +4 -4
- package/chunk/AnnouncingHeader-CGan422I.js +4 -4
- package/chunk/AnnouncingHeader-GCxV3NaA.js +4 -4
- package/chunk/{ApiUrls-qGI1X4Nr.js → ApiUrls-CzCIHH-J.js} +5 -5
- package/chunk/{ApiUrls-qGI1X4Nr.js.map → ApiUrls-CzCIHH-J.js.map} +1 -1
- package/chunk/{ApiUrls-z21aJipu.js → ApiUrls-Dhu0sGtu.js} +5 -5
- package/chunk/{ApiUrls-z21aJipu.js.map → ApiUrls-Dhu0sGtu.js.map} +1 -1
- package/chunk/{BirthDateComponent-CMIcsq0Y.js → BirthDateComponent-D3r0a89J.js} +5 -5
- package/chunk/{BirthDateComponent-CMIcsq0Y.js.map → BirthDateComponent-D3r0a89J.js.map} +1 -1
- package/chunk/{BirthDateComponent-DHVZ7ypm.js → BirthDateComponent-D8Nibbcg.js} +5 -5
- package/chunk/{BirthDateComponent-DHVZ7ypm.js.map → BirthDateComponent-D8Nibbcg.js.map} +1 -1
- package/chunk/{CaptchaComponent-DEG7HPf5.js → CaptchaComponent-Cvj7xzg-.js} +6 -6
- package/chunk/{CaptchaComponent-C2yFXgkj.js.map → CaptchaComponent-Cvj7xzg-.js.map} +1 -1
- package/chunk/{CaptchaComponent-C2yFXgkj.js → CaptchaComponent-PjgVzgtT.js} +6 -6
- package/chunk/{CaptchaComponent-DEG7HPf5.js.map → CaptchaComponent-PjgVzgtT.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-L-XQvTHW.js → ChangeLocaleComponent-AaGnmfQ2.js} +5 -5
- package/chunk/{ChangeLocaleComponent-DTCL2yoL.js.map → ChangeLocaleComponent-AaGnmfQ2.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DTCL2yoL.js → ChangeLocaleComponent-DlP7rkIf.js} +5 -5
- package/chunk/{ChangeLocaleComponent-L-XQvTHW.js.map → ChangeLocaleComponent-DlP7rkIf.js.map} +1 -1
- package/chunk/City-B9Gi6HK4.js +4 -4
- package/chunk/City-CyH-DIlR.js +4 -4
- package/chunk/{CollegeNameComponent-DU3cUGyI.js → CollegeNameComponent-56_UfWLf.js} +5 -5
- package/chunk/{CollegeNameComponent-BHII13GE.js.map → CollegeNameComponent-56_UfWLf.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BHII13GE.js → CollegeNameComponent-eM6buNb-.js} +5 -5
- package/chunk/{CollegeNameComponent-DU3cUGyI.js.map → CollegeNameComponent-eM6buNb-.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-COUZBlAw.js +4 -4
- package/chunk/CopyToClipboardComponent-CcCfcIGv.js +4 -4
- package/chunk/{CountryComponentWrapper-CC-JD1GI.js → CountryComponentWrapper-60spdt9U.js} +5 -5
- package/chunk/{CountryComponentWrapper-CC-JD1GI.js.map → CountryComponentWrapper-60spdt9U.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DlQvZ4N9.js → CountryComponentWrapper-iNzZ0oLl.js} +5 -5
- package/chunk/{CountryComponentWrapper-DlQvZ4N9.js.map → CountryComponentWrapper-iNzZ0oLl.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C4Y2s1TP.js → DischargeDateComponent-DbSFuMuQ.js} +7 -7
- package/chunk/{DischargeDateComponent-C4Y2s1TP.js.map → DischargeDateComponent-DbSFuMuQ.js.map} +1 -1
- package/chunk/{DischargeDateComponent-C8G24Vpl.js → DischargeDateComponent-qg7Dxjg5.js} +7 -7
- package/chunk/{DischargeDateComponent-C8G24Vpl.js.map → DischargeDateComponent-qg7Dxjg5.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-Bh2zC2AP.js +4 -4
- package/chunk/DriverLicenseNumberComponent-BoFfJWOG.js +4 -4
- package/chunk/{EmailLoopPending-ACvftSrk.js → EmailLoopPending-Dn8M1uLY.js} +5 -5
- package/chunk/{EmailLoopPending-CG4cPzDZ.js.map → EmailLoopPending-Dn8M1uLY.js.map} +1 -1
- package/chunk/{EmailLoopPending-CG4cPzDZ.js → EmailLoopPending-G4OdWKdk.js} +5 -5
- package/chunk/{EmailLoopPending-ACvftSrk.js.map → EmailLoopPending-G4OdWKdk.js.map} +1 -1
- package/chunk/{ExtraMessage-eH94mHMq.js → ExtraMessage-C0xcv0p9.js} +5 -5
- package/chunk/{ExtraMessage-B4-UaVWg.js.map → ExtraMessage-C0xcv0p9.js.map} +1 -1
- package/chunk/{ExtraMessage-B4-UaVWg.js → ExtraMessage-D1xdsJ8w.js} +5 -5
- package/chunk/{ExtraMessage-eH94mHMq.js.map → ExtraMessage-D1xdsJ8w.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CL6HC15r.js → FirstResponderOrganizationComponent-CHzg6vT-.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-CL6HC15r.js.map → FirstResponderOrganizationComponent-CHzg6vT-.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-GYrvDZ8j.js → FirstResponderOrganizationComponent-CfDvnXhw.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-GYrvDZ8j.js.map → FirstResponderOrganizationComponent-CfDvnXhw.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CPz3r9p0.js → FormFieldInputSelect-BweWcd1y.js} +5 -5
- package/chunk/{FormFieldInputSelect-BRcetY6g.js.map → FormFieldInputSelect-BweWcd1y.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BRcetY6g.js → FormFieldInputSelect-HS15tdg5.js} +5 -5
- package/chunk/{FormFieldInputSelect-CPz3r9p0.js.map → FormFieldInputSelect-HS15tdg5.js.map} +1 -1
- package/chunk/FormFieldLayout-DOj8gsDn.js +4 -4
- package/chunk/FormFieldLayout-DoRO8UHP.js +4 -4
- package/chunk/FormFieldText-BQoC4B0L.js +4 -4
- package/chunk/FormFieldText-C-QMm28T.js +4 -4
- package/chunk/{FormFieldTypeahead-eN-Apboo.js → FormFieldTypeahead-BS5jLvLT.js} +7 -7
- package/chunk/{FormFieldTypeahead-eN-Apboo.js.map → FormFieldTypeahead-BS5jLvLT.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CUVcYgod.js → FormFieldTypeahead-CUdUySqk.js} +7 -7
- package/chunk/{FormFieldTypeahead-CUVcYgod.js.map → FormFieldTypeahead-CUdUySqk.js.map} +1 -1
- package/chunk/{FormFooterComponent-BbvgY74A.js → FormFooterComponent-DUuhnoTa.js} +7 -7
- package/chunk/{FormFooterComponent-BbvgY74A.js.map → FormFooterComponent-DUuhnoTa.js.map} +1 -1
- package/chunk/{FormFooterComponent-CfGwofEF.js → FormFooterComponent-DWq6ffTy.js} +7 -7
- package/chunk/{FormFooterComponent-CfGwofEF.js.map → FormFooterComponent-DWq6ffTy.js.map} +1 -1
- package/chunk/{FormSelectChoice-BmeWC5xt.js → FormSelectChoice-BKtxYj6E.js} +5 -5
- package/chunk/{FormSelectChoice-BmeWC5xt.js.map → FormSelectChoice-BKtxYj6E.js.map} +1 -1
- package/chunk/{FormSelectChoice-D8OI3FOf.js → FormSelectChoice-D6uaN7Sh.js} +5 -5
- package/chunk/{FormSelectChoice-D8OI3FOf.js.map → FormSelectChoice-D6uaN7Sh.js.map} +1 -1
- package/chunk/InputText-BaziuhiG.js +4 -4
- package/chunk/InputText-BeYWiUMJ.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-RP8xIvVr.js → LicensedProfessionalOrganizationComponent-dZIT6gic.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-BuIlu47n.js.map → LicensedProfessionalOrganizationComponent-dZIT6gic.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BuIlu47n.js → LicensedProfessionalOrganizationComponent-mf2xGvDM.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-RP8xIvVr.js.map → LicensedProfessionalOrganizationComponent-mf2xGvDM.js.map} +1 -1
- package/chunk/LogoComponent-BQ0e2Cx5.js +4 -4
- package/chunk/LogoComponent-ByJVH6VG.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-dy3A9bEO.js → LowIncomeOrganizationComponent-B0ExOmQ8.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-BckNNB21.js.map → LowIncomeOrganizationComponent-B0ExOmQ8.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-BckNNB21.js → LowIncomeOrganizationComponent-OUANP3m1.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-dy3A9bEO.js.map → LowIncomeOrganizationComponent-OUANP3m1.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DYLZimaP.js → MedicalProfessionalOrganizationComponent-CVnpGrxK.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-B5Gvanb_.js.map → MedicalProfessionalOrganizationComponent-CVnpGrxK.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-B5Gvanb_.js → MedicalProfessionalOrganizationComponent-ULpT0Fqw.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-DYLZimaP.js.map → MedicalProfessionalOrganizationComponent-ULpT0Fqw.js.map} +1 -1
- package/chunk/MemberIdComponent-4OCZq8YT.js +4 -4
- package/chunk/MemberIdComponent-DZ_xmtBH.js +4 -4
- package/chunk/{MembershipOrganizationComponent-D30RSAoY.js → MembershipOrganizationComponent-BA14Qskw.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-D30RSAoY.js.map → MembershipOrganizationComponent-BA14Qskw.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BjioaoN6.js → MembershipOrganizationComponent-DtcXtbCS.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-BjioaoN6.js.map → MembershipOrganizationComponent-DtcXtbCS.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-BFkdtpR-.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-BQGzUqET.js +4 -4
- package/chunk/{PersonalInfoStepWrapper-DxzgLaw6.js → PersonalInfoStepWrapper-BxUcQ3sC.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-DxzgLaw6.js.map → PersonalInfoStepWrapper-BxUcQ3sC.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BPb2PveY.js → PersonalInfoStepWrapper-DcYreAnT.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-BPb2PveY.js.map → PersonalInfoStepWrapper-DcYreAnT.js.map} +1 -1
- package/chunk/PostalCodeComponent-BoiT-kAS.js +4 -4
- package/chunk/PostalCodeComponent-DM0M3hVK.js +4 -4
- package/chunk/SSN-CdivX3gW.js +4 -4
- package/chunk/SSN-D-8jAzk8.js +4 -4
- package/chunk/{StateSelectComponent-R9UoyZgk.js → StateSelectComponent-B5TkkwqE.js} +5 -5
- package/chunk/{StateSelectComponent-DmSP60bg.js.map → StateSelectComponent-B5TkkwqE.js.map} +1 -1
- package/chunk/{StateSelectComponent-DmSP60bg.js → StateSelectComponent-CmUtvWyv.js} +5 -5
- package/chunk/{StateSelectComponent-R9UoyZgk.js.map → StateSelectComponent-CmUtvWyv.js.map} +1 -1
- package/chunk/{StatusComponent-C7UQ_veN.js → StatusComponent-BRdfMZGU.js} +5 -5
- package/chunk/{StatusComponent-C7UQ_veN.js.map → StatusComponent-BRdfMZGU.js.map} +1 -1
- package/chunk/{StatusComponent-DS9_Bvpp.js → StatusComponent-C7E5AzQO.js} +5 -5
- package/chunk/{StatusComponent-DS9_Bvpp.js.map → StatusComponent-C7E5AzQO.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CfHvmu3g.js → StepActiveMilitaryPersonalInfoComponent-CVLofYmO.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CfHvmu3g.js.map → StepActiveMilitaryPersonalInfoComponent-CVLofYmO.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Dxzz7DnA.js → StepActiveMilitaryPersonalInfoComponent-CfDRFQhH.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-Dxzz7DnA.js.map → StepActiveMilitaryPersonalInfoComponent-CfDRFQhH.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BM7i4_bm.js → StepAgePersonalInfo-JxaLGwWi.js} +12 -12
- package/chunk/{StepAgePersonalInfo-BAoECvx9.js.map → StepAgePersonalInfo-JxaLGwWi.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-BAoECvx9.js → StepAgePersonalInfo-giOxoq2W.js} +12 -12
- package/chunk/{StepAgePersonalInfo-BM7i4_bm.js.map → StepAgePersonalInfo-giOxoq2W.js.map} +1 -1
- package/chunk/StepCard-CEaNQvnx.js +4 -4
- package/chunk/StepCard-CZP8dV5z.js +4 -4
- package/chunk/{StepCollectIdentifier-CNxTzMnW.js → StepCollectIdentifier-BFS7-c3r.js} +5 -5
- package/chunk/{StepCollectIdentifier-CYhp3fnj.js.map → StepCollectIdentifier-BFS7-c3r.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-CYhp3fnj.js → StepCollectIdentifier-CE4RgF6F.js} +5 -5
- package/chunk/{StepCollectIdentifier-CNxTzMnW.js.map → StepCollectIdentifier-CE4RgF6F.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-CQWxLE7m.js → StepCollectMilitaryStatusComponent-B8IlIOHe.js} +5 -5
- package/chunk/StepCollectMilitaryStatusComponent-Ck61mxkA.js +9 -0
- package/chunk/{StepCollectPersonalInfo-CBP-uy_k.js → StepCollectPersonalInfo-BwcRHZNp.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-CBP-uy_k.js.map → StepCollectPersonalInfo-BwcRHZNp.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-DWwY9abE.js → StepCollectPersonalInfo-C9lAPrdR.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-DWwY9abE.js.map → StepCollectPersonalInfo-C9lAPrdR.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-DU97qj4J.js +4 -4
- package/chunk/StepCompleteAuthentication-Dxe2LuYY.js +4 -4
- package/chunk/{StepConsolation-BEp5huil.js → StepConsolation-DpxBWqvU.js} +5 -5
- package/chunk/{StepConsolation-BEp5huil.js.map → StepConsolation-DpxBWqvU.js.map} +1 -1
- package/chunk/{StepConsolation-BXZ02Hxi.js → StepConsolation-NX5Tl4mi.js} +5 -5
- package/chunk/{StepConsolation-BXZ02Hxi.js.map → StepConsolation-NX5Tl4mi.js.map} +1 -1
- package/chunk/{StepDocUpload-C6aKFlK6.js → StepDocUpload-CAD5EbBq.js} +5 -5
- package/chunk/{StepDocUpload-C6aKFlK6.js.map → StepDocUpload-CAD5EbBq.js.map} +1 -1
- package/chunk/{StepDocUpload-D-_H30KT.js → StepDocUpload-Du9PTqfX.js} +5 -5
- package/chunk/{StepDocUpload-D-_H30KT.js.map → StepDocUpload-Du9PTqfX.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DFy-svXc.js → StepDriverLicensePersonalInfoComponent-BXF5aIeS.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-DFy-svXc.js.map → StepDriverLicensePersonalInfoComponent-BXF5aIeS.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BKw3omSH.js → StepDriverLicensePersonalInfoComponent-BfqlszYk.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-BKw3omSH.js.map → StepDriverLicensePersonalInfoComponent-BfqlszYk.js.map} +1 -1
- package/chunk/{StepEmailLoop-BV8HiwJR.js → StepEmailLoop-BV-iuLEo.js} +6 -6
- package/chunk/{StepEmailLoop-BV8HiwJR.js.map → StepEmailLoop-BV-iuLEo.js.map} +1 -1
- package/chunk/{StepEmailLoop-Bq0ADWxx.js → StepEmailLoop-GbE6vzWn.js} +6 -6
- package/chunk/{StepEmailLoop-Bq0ADWxx.js.map → StepEmailLoop-GbE6vzWn.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BEzphEvn.js → StepEmploymentPersonalInfo-BSBxmpON.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-BEzphEvn.js.map → StepEmploymentPersonalInfo-BSBxmpON.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Cfk7KK_K.js → StepEmploymentPersonalInfo-YmE-KS1E.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-Cfk7KK_K.js.map → StepEmploymentPersonalInfo-YmE-KS1E.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-D1ppEog4.js → StepFirstResponderPersonalInfo-BAD5PdHD.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-D1ppEog4.js.map → StepFirstResponderPersonalInfo-BAD5PdHD.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-UUI9Qv01.js → StepFirstResponderPersonalInfo-pJRp22qz.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-UUI9Qv01.js.map → StepFirstResponderPersonalInfo-pJRp22qz.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-2o6R528F.js → StepGeneralIdentityPersonalInfoComponent-BKcCfiTL.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-2o6R528F.js.map → StepGeneralIdentityPersonalInfoComponent-BKcCfiTL.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DlsaUm_t.js → StepGeneralIdentityPersonalInfoComponent-C0VAjg8Z.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DlsaUm_t.js.map → StepGeneralIdentityPersonalInfoComponent-C0VAjg8Z.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BKoXVvqv.js → StepHybridIdentityPersonalInfoComponent-C7b3Ymbr.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-AAG_1LIU.js.map → StepHybridIdentityPersonalInfoComponent-C7b3Ymbr.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-AAG_1LIU.js → StepHybridIdentityPersonalInfoComponent-vfWILckb.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BKoXVvqv.js.map → StepHybridIdentityPersonalInfoComponent-vfWILckb.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BXDjQKSm.js → StepIDCheckLoop-B1vS2H8i.js} +5 -5
- package/chunk/{StepIDCheckLoop-BXDjQKSm.js.map → StepIDCheckLoop-B1vS2H8i.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-D0oaO5WS.js → StepIDCheckLoop-CFfpgTqd.js} +5 -5
- package/chunk/{StepIDCheckLoop-D0oaO5WS.js.map → StepIDCheckLoop-CFfpgTqd.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DahbG1zH.js → StepIDCheckLoopOnfido-CdF93F-X.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-Dlpdb7g5.js.map → StepIDCheckLoopOnfido-CdF93F-X.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-Dlpdb7g5.js → StepIDCheckLoopOnfido-r7_I6uZm.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-DahbG1zH.js.map → StepIDCheckLoopOnfido-r7_I6uZm.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D5EGD59B.js → StepIDCheckLoopRegula-BTY4b15i.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-BZ5RwE_S.js.map → StepIDCheckLoopRegula-BTY4b15i.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BZ5RwE_S.js → StepIDCheckLoopRegula-D-uJTczt.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-D5EGD59B.js.map → StepIDCheckLoopRegula-D-uJTczt.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BZU939I_.js → StepInactiveMilitaryPersonalInfoComponent-DOoG4a5s.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BRbgEklG.js.map → StepInactiveMilitaryPersonalInfoComponent-DOoG4a5s.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BRbgEklG.js → StepInactiveMilitaryPersonalInfoComponent-DSXnEsU5.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-BZU939I_.js.map → StepInactiveMilitaryPersonalInfoComponent-DSXnEsU5.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-PyEGuB7T.js → StepLicensedProfessionalPersonalInfo-CA1dsikb.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-PyEGuB7T.js.map → StepLicensedProfessionalPersonalInfo-CA1dsikb.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-yvmtOA6P.js → StepLicensedProfessionalPersonalInfo-D9M_yGjS.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-yvmtOA6P.js.map → StepLicensedProfessionalPersonalInfo-D9M_yGjS.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-DciQ-P-H.js → StepLowIncomePersonalInfo-uH2bpxfV.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-BDkmTyn-.js.map → StepLowIncomePersonalInfo-uH2bpxfV.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BDkmTyn-.js → StepLowIncomePersonalInfo-ytPx4JG7.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-DciQ-P-H.js.map → StepLowIncomePersonalInfo-ytPx4JG7.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-uH6AIglG.js → StepMedicalProfessionalPersonalInfo-COSeOIBf.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-uH6AIglG.js.map → StepMedicalProfessionalPersonalInfo-COSeOIBf.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DN3wU4Yi.js → StepMedicalProfessionalPersonalInfo-CnRGHpzi.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-DN3wU4Yi.js.map → StepMedicalProfessionalPersonalInfo-CnRGHpzi.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BhlTJ9RL.js → StepMemberPersonalInfo-CuYjejy_.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-B46v1j7m.js.map → StepMemberPersonalInfo-CuYjejy_.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-B46v1j7m.js → StepMemberPersonalInfo-D4Ce3K7N.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-BhlTJ9RL.js.map → StepMemberPersonalInfo-D4Ce3K7N.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-Bv-vpFH5.js → StepMoverPersonalInfo-CNnO94g_.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-Bv-vpFH5.js.map → StepMoverPersonalInfo-CNnO94g_.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-W9pOvOlv.js → StepMoverPersonalInfo-ClKQL_F9.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-W9pOvOlv.js.map → StepMoverPersonalInfo-ClKQL_F9.js.map} +1 -1
- package/chunk/{StepOverrideComponent-acfuKH0u.js → StepOverrideComponent-B3l0HKYe.js} +5 -5
- package/chunk/{StepOverrideComponent-BOLx7BTS.js.map → StepOverrideComponent-B3l0HKYe.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BOLx7BTS.js → StepOverrideComponent-CQVOg4sc.js} +5 -5
- package/chunk/{StepOverrideComponent-acfuKH0u.js.map → StepOverrideComponent-CQVOg4sc.js.map} +1 -1
- package/chunk/{StepSMSLoop-C8-Q0scI.js → StepSMSLoop-BkNOUaSb.js} +5 -5
- package/chunk/{StepSMSLoop-BHcEZB3H.js.map → StepSMSLoop-BkNOUaSb.js.map} +1 -1
- package/chunk/{StepSMSLoop-BHcEZB3H.js → StepSMSLoop-DgNC4Pl6.js} +5 -5
- package/chunk/{StepSMSLoop-C8-Q0scI.js.map → StepSMSLoop-DgNC4Pl6.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-Gp3KyqyB.js → StepSocialSecurityNumber-C9A1G5-l.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-CAqxY7IE.js.map → StepSocialSecurityNumber-C9A1G5-l.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CAqxY7IE.js → StepSocialSecurityNumber-DW3Iu0dy.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-Gp3KyqyB.js.map → StepSocialSecurityNumber-DW3Iu0dy.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DQ-d7vSa.js → StepStudentPersonalInfo-B5M9H5-O.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-DQ-d7vSa.js.map → StepStudentPersonalInfo-B5M9H5-O.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-DdG-xlYR.js → StepStudentPersonalInfo-Du5vLyuO.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-DdG-xlYR.js.map → StepStudentPersonalInfo-Du5vLyuO.js.map} +1 -1
- package/chunk/{StepSuccess-CyAMqiKK.js → StepSuccess-B8gmxFPO.js} +5 -5
- package/chunk/{StepSuccess-CyAMqiKK.js.map → StepSuccess-B8gmxFPO.js.map} +1 -1
- package/chunk/{StepSuccess-DzDT7UHn.js → StepSuccess-OoN24yIL.js} +5 -5
- package/chunk/{StepSuccess-DzDT7UHn.js.map → StepSuccess-OoN24yIL.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BWOSAzBk.js → StepTeacherPersonalInfo-Dh_sytId.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-BWOSAzBk.js.map → StepTeacherPersonalInfo-Dh_sytId.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-cdxv_c6D.js → StepTeacherPersonalInfo-LK_4uwVi.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-cdxv_c6D.js.map → StepTeacherPersonalInfo-LK_4uwVi.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-PjhvMGVh.js → TeacherSchoolComponent-CJPEsHoG.js} +5 -5
- package/chunk/{TeacherSchoolComponent-D0tNZbjw.js.map → TeacherSchoolComponent-CJPEsHoG.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-D0tNZbjw.js → TeacherSchoolComponent-Ct5143ju.js} +5 -5
- package/chunk/{TeacherSchoolComponent-PjhvMGVh.js.map → TeacherSchoolComponent-Ct5143ju.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BJtRyPYB.js +4 -4
- package/chunk/TestingRouteOverrides-GzfkEk0O.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-D-67aP8R.js → VerificationApiClient-CMchZPYe.js} +5 -5
- package/chunk/{VerificationApiClient-D-67aP8R.js.map → VerificationApiClient-CMchZPYe.js.map} +1 -1
- package/chunk/{VerificationApiClient-AazW4Y-P.js → VerificationApiClient-DZOyvDlP.js} +5 -5
- package/chunk/{VerificationApiClient-AazW4Y-P.js.map → VerificationApiClient-DZOyvDlP.js.map} +1 -1
- package/chunk/{VerificationApiUtils-CcNk_N-a.js → VerificationApiUtils-B1dD7Wio.js} +6 -6
- package/chunk/{VerificationApiUtils-CcNk_N-a.js.map → VerificationApiUtils-B1dD7Wio.js.map} +1 -1
- package/chunk/{VerificationApiUtils-DoXYlzdZ.js → VerificationApiUtils-CjkPe5wn.js} +6 -6
- package/chunk/{VerificationApiUtils-DoXYlzdZ.js.map → VerificationApiUtils-CjkPe5wn.js.map} +1 -1
- package/chunk/ar-1t20mEjv.js +4 -4
- package/chunk/bg-C4VG63Cb.js +4 -4
- package/chunk/bn-IN-DHZz7A6D.js +4 -4
- package/chunk/countryUtils--ER4ijyV.js +4 -4
- package/chunk/countryUtils-CeeR99zP.js +4 -4
- package/chunk/cs-BqbHHqOB.js +4 -4
- package/chunk/da-CwP8gXTR.js +4 -4
- package/chunk/de-DbiYNSfM.js +4 -4
- package/chunk/{downshift.esm-Cwahw8gg.js → downshift.esm-D5n-tm4W.js} +5 -5
- package/chunk/{downshift.esm-Cmcimwku.js.map → downshift.esm-D5n-tm4W.js.map} +1 -1
- package/chunk/{downshift.esm-Cmcimwku.js → downshift.esm-_JFmA1Gd.js} +5 -5
- package/chunk/{downshift.esm-Cwahw8gg.js.map → downshift.esm-_JFmA1Gd.js.map} +1 -1
- package/chunk/el-lm5SKXAj.js +4 -4
- package/chunk/empties-BSzG0a3u.js +4 -4
- package/chunk/empties-DBjDG4Kh.js +4 -4
- package/chunk/en-GB-C0ZgklwQ.js +4 -4
- package/chunk/es-BlitAkac.js +4 -4
- package/chunk/es-ES-Dm6EuNar.js +4 -4
- package/chunk/et-tQeBgXym.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEWgf7Y9.js +4 -4
- package/chunk/fi-DaoFGI5N.js +4 -4
- package/chunk/fr-CA-BYl-iPWE.js +4 -4
- package/chunk/fr-CDVHEtxl.js +4 -4
- package/chunk/ga-CEE0SpPf.js +4 -4
- package/chunk/hi-IN-BKFq0bJG.js +4 -4
- package/chunk/hooks-CXU85yo3.js +4 -4
- package/chunk/hooks-QyzAcVrv.js +4 -4
- package/chunk/hr-4GF88ZAN.js +4 -4
- package/chunk/hu-DR0aE8Yl.js +4 -4
- package/chunk/id-CErJ5Qtf.js +4 -4
- package/chunk/intl-D6H38LJo.js +4 -4
- package/chunk/is-ZW_I0vqd.js +4 -4
- package/chunk/it-aLeDdl3S.js +4 -4
- package/chunk/iw-B8dRLXye.js +4 -4
- package/chunk/ja-ws7nArPo.js +4 -4
- package/chunk/jsx-runtime-BR4BrYkO.js +4 -4
- package/chunk/jsx-runtime-DQcok4ZR.js +4 -4
- package/chunk/kk-BYwKJEhO.js +4 -4
- package/chunk/ko-CD4RyaPR.js +4 -4
- package/chunk/lo-BJf9uvLJ.js +4 -4
- package/chunk/lt-Cm5I2bNe.js +4 -4
- package/chunk/lv-CPc-pYGw.js +4 -4
- package/chunk/militaryStepHelpers-BSph9pwB.js +4 -4
- package/chunk/militaryStepHelpers-Dq0qfoWI.js +4 -4
- package/chunk/mocks-Ch8prBmF.js +4 -4
- package/chunk/mocks-DOT6lJnb.js +4 -4
- package/chunk/ms-DyuLadX1.js +4 -4
- package/chunk/nl-BE-Cu2x4ulZ.js +4 -4
- package/chunk/nl-BcnCm7gW.js +4 -4
- package/chunk/no-dpOFnWj6.js +4 -4
- package/chunk/options-OtkFYbDm.js +4 -4
- package/chunk/pl-B1wFouab.js +4 -4
- package/chunk/programThemeGetters-BVB52KNe.js +4 -4
- package/chunk/programThemeGetters-DnF6LYGJ.js +4 -4
- package/chunk/pt-BR-4UOLmepl.js +4 -4
- package/chunk/pt-Dz7q9Q77.js +4 -4
- package/chunk/refs-CrePufGS.js +4 -4
- package/chunk/refs-q1DKWVxa.js +4 -4
- package/chunk/ro-CxK3CZvi.js +4 -4
- package/chunk/ru-C3TLeAXf.js +4 -4
- package/chunk/sk-c8EayToa.js +4 -4
- package/chunk/sl-DxRmBXyt.js +4 -4
- package/chunk/sr-CVJC-AwT.js +4 -4
- package/chunk/stepComponentHelpers-BBfnjjuk.js +4 -4
- package/chunk/stepComponentHelpers-CoXbh-eU.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-BW8HovgE.js +4 -4
- package/chunk/sw-CLLpnyl0.js +4 -4
- package/chunk/ta-LDszWgWD.js +4 -4
- package/chunk/th-DkcUqVg2.js +4 -4
- package/chunk/tl-BdXam2BA.js +4 -4
- package/chunk/tr-BRTtgTcp.js +4 -4
- package/chunk/uk-BkHy3BZj.js +4 -4
- package/chunk/ur-tWSELJM6.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-Dy87e8Zl.js → useCollectFieldsEndpoint-CR-zz2ta.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-Dy87e8Zl.js.map → useCollectFieldsEndpoint-CR-zz2ta.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DL4Wo4zO.js → useCollectFieldsEndpoint-Cw8lRu0n.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DL4Wo4zO.js.map → useCollectFieldsEndpoint-Cw8lRu0n.js.map} +1 -1
- package/chunk/useMetrics-D3sX1Zxy.js +4 -4
- package/chunk/useMetrics-DQ5CqCD9.js +4 -4
- package/chunk/vi-BM56kj2D.js +4 -4
- package/chunk/zh-7zXR6-Ql.js +4 -4
- package/chunk/zh-HK-DKPq5z-A.js +4 -4
- package/chunk/zu-B9MoDUDG.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +35 -35
- package/chunk/StepCollectMilitaryStatusComponent-BRL9Dp0i.js +0 -9
|
@@ -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.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { Jt as e, Ut as t } from "./intl-D6H38LJo.js";
|
|
13
13
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-BR4BrYkO.js";
|
|
14
14
|
import { o } from "./refs-q1DKWVxa.js";
|
|
15
15
|
import { P as s } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as c } from "./downshift.esm-
|
|
16
|
+
import { t as c } from "./downshift.esm-D5n-tm4W.js";
|
|
17
17
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
18
18
|
var l = /* @__PURE__ */ e(r(), 1), u = a(), d = ({ getItemProps: e, getMenuProps: t, highlightedIndex: n, options: r, itemToString: a, ariaLabel: o, isOpen: c, isLoading: l = !1 }) => {
|
|
19
19
|
let d = (t, i) => /* @__PURE__ */ (0, u.jsx)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-BmeWC5xt.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;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IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-BKtxYj6E.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,GCAa,IAA6B,GAvDf,EACzB,mBACA,aACA,yBACA,WACA,gBACA,cAC4B;CAC5B,IAAM,EACJ,SAAS,GACT,iBAAiB,GACjB,eAAe,GACf,YACA,cACA,cACE,EAAqB;CASzB,OACE,iBAAA,GAAA,EAAA,KAAC,UAAD;EACE,cATc,IACd,EAAK,cAAc;GACjB,IAAI;GACJ,gBAAgB;EAClB,CAAC,IACD,EAAK,cAAc;GAAE,IAAI;GAAY,gBAAgB;EAAY,CAAC;EAKlE,iBAAe;EACf,eAAa;EACJ;EACE;EACH;EACR,WAAU;EACA;EACV,MAAK;EACL,UAAU,MAAU;GAElB,AADI,OAAO,KAAmB,cAAY,EAAe,GACrD,OAAO,KAAwB,cAAY,EAAoB,CAAK;EAC1E;YAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,SAAQ;GACR,qBAAoB;GACpB,OAAO;GACP,MAAK;GACL,QAAO;GACP,aAAY;GACZ,WAAW,IAAS,gBAAgB,KAAA;aAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;EAC1B,CAAA;CACC,CAAA;AAEZ,CAEsE,GClDhE,KAAgB,MAA4B,IAAO,EAAK,QAAQ,IAEhE,KAAiB,GAA6B,MACN,EAAQ,QACjD,MACC,CAAC,KACD,EAAO,MAAM,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,KAC5D,EAAO,MAAM,SAAS,EAAE,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,CAEpE,GA0BH,KAAe,EACnB,cACA,YACA,aACA,YACA,iBACA,cACA,YACA,cACA,aACA,gBAGA,yBAAsB,IACtB,UACA,cACA,cACA,oBACA,eAC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KAAA;CACX,aAAa;CACb,OAAO,KAAA;CACP,cAAc,KAAA;AAChB;AAEA,IAAa,IAAuB,GCjKvB,KACX,GACA,MACuB;CACvB,IAAI;CAEJ,IAAI;EACF,IAAY,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { Jt as e, Wt as t } from "./options-OtkFYbDm.js";
|
|
9
9
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-DQcok4ZR.js";
|
|
10
10
|
import { o } from "./refs-CrePufGS.js";
|
|
11
11
|
import { F as s } from "../sheerid.js";
|
|
12
|
-
import { t as c } from "./downshift.esm-
|
|
12
|
+
import { t as c } from "./downshift.esm-_JFmA1Gd.js";
|
|
13
13
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
14
14
|
var l = /* @__PURE__ */ e(r(), 1), u = a(), d = ({ getItemProps: e, getMenuProps: t, highlightedIndex: n, options: r, itemToString: a, ariaLabel: o, isOpen: c, isLoading: l = !1 }) => {
|
|
15
15
|
let d = (t, i) => /* @__PURE__ */ (0, u.jsx)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-D8OI3FOf.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAA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AAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-D6uaN7Sh.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,GCAa,IAA6B,GAvDf,EACzB,mBACA,aACA,yBACA,WACA,gBACA,cAC4B;CAC5B,IAAM,EACJ,SAAS,GACT,iBAAiB,GACjB,eAAe,GACf,YACA,cACA,cACE,EAAqB;CASzB,OACE,iBAAA,GAAA,EAAA,KAAC,UAAD;EACE,cATc,IACd,EAAK,cAAc;GACjB,IAAI;GACJ,gBAAgB;EAClB,CAAC,IACD,EAAK,cAAc;GAAE,IAAI;GAAY,gBAAgB;EAAY,CAAC;EAKlE,iBAAe;EACf,eAAa;EACJ;EACE;EACH;EACR,WAAU;EACA;EACV,MAAK;EACL,UAAU,MAAU;GAElB,AADI,OAAO,KAAmB,cAAY,EAAe,GACrD,OAAO,KAAwB,cAAY,EAAoB,CAAK;EAC1E;YAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,SAAQ;GACR,qBAAoB;GACpB,OAAO;GACP,MAAK;GACL,QAAO;GACP,aAAY;GACZ,WAAW,IAAS,gBAAgB,KAAA;aAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;EAC1B,CAAA;CACC,CAAA;AAEZ,CAEsE,GClDhE,KAAgB,MAA4B,IAAO,EAAK,QAAQ,IAEhE,KAAiB,GAA6B,MACN,EAAQ,QACjD,MACC,CAAC,KACD,EAAO,MAAM,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,KAC5D,EAAO,MAAM,SAAS,EAAE,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,CAEpE,GA0BH,KAAe,EACnB,cACA,YACA,aACA,YACA,iBACA,cACA,YACA,cACA,aACA,gBAGA,y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V,SAAS,KAAA;CACT,WAAW;CACX,WAAW,KAAA;CACX,aAAa;CACb,OAAO,KAAA;CACP,cAAc,KAAA;AAChB;AAEA,IAAa,IAAuB,GCjKvB,KACX,GACA,MACuB;CACvB,IAAI;CAEJ,IAAI;EACF,IAAY,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { Jt as e } from "./intl-D6H38LJo.js";
|
|
13
13
|
import { c as t, t as n } from "./jsx-runtime-BR4BrYkO.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { Jt as e } from "./options-OtkFYbDm.js";
|
|
9
9
|
import { c as t, t as n } from "./jsx-runtime-DQcok4ZR.js";
|
|
@@ -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.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-BR4BrYkO.js";
|
|
13
13
|
import { c as r } from "./programThemeGetters-BVB52KNe.js";
|
|
14
14
|
import { u as i } from "./stepComponentHelpers-BBfnjjuk.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-CUdUySqk.js";
|
|
16
16
|
//#region src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx
|
|
17
17
|
var o = n(), s = e(({ value: e, isErrored: n, onChange: s, verificationService: c, intl: l, placeholder: u = "", disabled: d = !1 }) => i("organization")?.hidden ? null : /* @__PURE__ */ (0, o.jsx)(a, {
|
|
18
18
|
fieldId: "licensed-professional",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LicensedProfessionalOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-dZIT6gic.js","names":[],"sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.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 { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"licensed-professional\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"organizationNamePlaceholder\",\n defaultMessage: \"Organization\",\n })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"mappings":";;;;;aA2Da,IAA4C,GA/CR,EAC/C,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EACrB,IAAI;EACJ,gBAAgB;CAClB,CAAC;CAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAgB,CAAA;CAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAML"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-DQcok4ZR.js";
|
|
9
9
|
import { c as r } from "./programThemeGetters-DnF6LYGJ.js";
|
|
10
10
|
import { u as i } from "./stepComponentHelpers-CoXbh-eU.js";
|
|
11
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
11
|
+
import { t as a } from "./FormFieldTypeahead-BS5jLvLT.js";
|
|
12
12
|
//#region src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx
|
|
13
13
|
var o = n(), s = e(({ value: e, isErrored: n, onChange: s, verificationService: c, intl: l, placeholder: u = "", disabled: d = !1 }) => i("organization")?.hidden ? null : /* @__PURE__ */ (0, o.jsx)(a, {
|
|
14
14
|
fieldId: "licensed-professional",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LicensedProfessionalOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-mf2xGvDM.js","names":[],"sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.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 { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"licensed-professional\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"organizationNamePlaceholder\",\n defaultMessage: \"Organization\",\n })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"mappings":";;;;;aA2Da,IAA4C,GA/CR,EAC/C,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EACrB,IAAI;EACJ,gBAAgB;CAClB,CAAC;CAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAgB,CAAA;CAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAML"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { n as e, t } from "./jsx-runtime-BR4BrYkO.js";
|
|
13
13
|
import { a as n } from "./programThemeGetters-BVB52KNe.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { n as e, t } from "./jsx-runtime-DQcok4ZR.js";
|
|
9
9
|
import { a as n } from "./programThemeGetters-DnF6LYGJ.js";
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { Jt as e, Ut as t, p as n } from "./intl-D6H38LJo.js";
|
|
13
13
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-BR4BrYkO.js";
|
|
14
|
-
import { a as s } from "./VerificationApiClient-
|
|
14
|
+
import { a as s } from "./VerificationApiClient-CMchZPYe.js";
|
|
15
15
|
import { c, f as l } from "./programThemeGetters-BVB52KNe.js";
|
|
16
16
|
import { P as u } from "../_mysheerid-preview.js";
|
|
17
17
|
import { g as d, u as f } from "./stepComponentHelpers-BBfnjjuk.js";
|
|
18
18
|
import { t as p } from "./FormFieldText-C-QMm28T.js";
|
|
19
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
20
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
19
|
+
import { t as m } from "./FormFieldInputSelect-BweWcd1y.js";
|
|
20
|
+
import { t as h } from "./FormFieldTypeahead-CUdUySqk.js";
|
|
21
21
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
22
22
|
var g = o(), _ = r(({ value: e, isErrored: t, onChange: n, intl: r, placeholder: i = "", disabled: o = !1 }) => f("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
23
23
|
fieldId: "ebtCardNumber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-B0ExOmQ8.js","names":[],"sources":["../../src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx","../../src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\nexport const EBTCardNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"ebtCardNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"ebtCardNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"ebtCardNumberPlaceholder\",\n defaultMessage: \"EBT card Number\",\n })\n }\n label={<FormattedHTMLMessage id=\"ebtCardNumber\" defaultMessage=\"EBT card Number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidEBTCardNumber\"\n defaultMessage=\"Invalid EBT Card Number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const EBTCardNumberComponent = injectIntl(EBTCardNumber);\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport produce from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n type FormSelectChoice,\n type FormFieldComponentProps,\n type LowIncomePersonalInfoViewModel,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\nimport { LoadingSpinnerComponent } from \"../../LoadingSpinner/LoadingSpinnerComponent\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\nimport { fetchOrganization } from \"../../../lib/ServerApi/OrganizationApiClient\";\nimport {\n getFieldConfigByFieldId,\n orgToOption,\n} from \"../../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { isLowIncomeVM } from \"../../StepLowIncomePersonalInfo/lowIncomeTypes\";\n\nexport const LowIncomeOrganization = ({\n value,\n isErrored,\n onChange,\n intl,\n placeholder = \"\",\n isRequired = false,\n verificationService,\n disabled = false,\n}: FormFieldComponentProps) => {\n const { viewModel, programTheme, fieldValidationErrors } = verificationService;\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected low-income view model is malformed\");\n return null;\n }\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const [otherGovAssistOrgs, setOtherGovAssistOrgs] = React.useState<\n FormSelectChoice[] | undefined\n >();\n\n React.useEffect(() => {\n fetchOrganization(\n getOrgSearchUrl(\n produce(viewModel, (draft: LowIncomePersonalInfoViewModel) => {\n draft.statuses = [\"OTHER_GOVERNMENT_ASSISTANCE\"]; // load and cache orgs for OTHER_GOVERNMENT_ASSISTANCE as it is a InputSelect and the list of options doesn't change\n }),\n programTheme,\n ),\n )\n .then((orgList: Organization[]) => {\n if (orgList) {\n let newOrganizations: Organization[] = orgList;\n\n if (viewModel.countryChoice) {\n newOrganizations = orgList.filter(\n (org) => org.country === viewModel.countryChoice.value,\n );\n }\n setOtherGovAssistOrgs(newOrganizations.map(orgToOption));\n }\n })\n .catch((e) => {\n logger.error(e);\n });\n }, []);\n\n const handleStateChange = (selectedOrgOption: FormSelectChoice, onStateChange: Function) => {\n if (selectedOrgOption) {\n onStateChange({\n id: selectedOrgOption.value,\n name: selectedOrgOption.label,\n });\n } else {\n onStateChange({\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 if (selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") {\n return (\n <FormFieldTypeahead\n fieldId=\"cep-organization\"\n value={viewModel.organization}\n verificationService={verificationService}\n onChange={onChange}\n placeholder={intl.formatHTMLMessage({\n id: \"schoolNamePlaceholder\",\n defaultMessage: \"School name\",\n })}\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"School name\" />}\n errorMessage={\n !!fieldValidationErrors.organization && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\"}\n disabled={disabled}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n />\n );\n }\n\n return otherGovAssistOrgs ? (\n <FormFieldInputSelect\n fieldId=\"low-income\"\n value={otherGovAssistOrgs.find((option) => option.value === (value && value.value))}\n refId=\"organization\"\n onChange={(organization: FormSelectChoice) => handleStateChange(organization, onChange)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"lowIncomeOrganizationPlaceholder\",\n defaultMessage: \"Government Assistance Program\",\n })\n }\n label={\n <FormattedHTMLMessage\n id=\"lowIncomeOrganization\"\n defaultMessage=\"Government Assistance Program\"\n />\n }\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 options={otherGovAssistOrgs}\n containerId=\"sid-low-income-id\"\n disabled={disabled}\n />\n ) : (\n <LoadingSpinnerComponent />\n );\n};\n\nexport const LowIncomeOrganizationComponent = injectIntl(LowIncomeOrganization);\n"],"mappings":";;;;;;;;;;aAgDa,IAAyB,GAzCR,EAC5B,UACA,cACA,aACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,eAAe,GAAG,SAGvD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACG;CACV,aACE,KACA,EAAK,kBAAkB;EACrB,IAAI;EACJ,gBAAgB;CAClB,CAAC;CAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAgB,gBAAe;CAAmB,CAAA;CAClF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAIyD,kCC+GjD,IAAiC,GAxIR,EACpC,UACA,cACA,aACA,SACA,iBAAc,IACd,gBAAa,IACb,wBACA,cAAW,SACkB;CAC7B,IAAM,EAAE,cAAW,iBAAc,6BAA0B;CAE3D,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,6CAA6C,GACnD;CAGT,IAAM,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,CAAC,GAA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AAgB;EAClB,CAAC;EAEH,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAEH,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,SAAS;EACT,aAAY;EACF;CACX,CAAA,IAED,iBAAA,GAAA,EAAA,KAAC,GAAD,CAA0B,CAAA;AAE9B,CAE8E"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { Jt as e, Wt as t, c as n } from "./options-OtkFYbDm.js";
|
|
9
9
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-DQcok4ZR.js";
|
|
10
|
-
import { a as s } from "./VerificationApiClient-
|
|
10
|
+
import { a as s } from "./VerificationApiClient-DZOyvDlP.js";
|
|
11
11
|
import { c, f as l } from "./programThemeGetters-DnF6LYGJ.js";
|
|
12
12
|
import { F as u } from "../sheerid.js";
|
|
13
13
|
import { g as d, u as f } from "./stepComponentHelpers-CoXbh-eU.js";
|
|
14
14
|
import { t as p } from "./FormFieldText-BQoC4B0L.js";
|
|
15
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
16
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as m } from "./FormFieldInputSelect-HS15tdg5.js";
|
|
16
|
+
import { t as h } from "./FormFieldTypeahead-BS5jLvLT.js";
|
|
17
17
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
18
18
|
var g = o(), _ = r(({ value: e, isErrored: t, onChange: n, intl: r, placeholder: i = "", disabled: o = !1 }) => f("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
19
19
|
fieldId: "ebtCardNumber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-OUANP3m1.js","names":[],"sources":["../../src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx","../../src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { type FormFieldComponentProps } from \"../../../lib/types/types\";\nimport { FormFieldText } from \"../FormFieldText/FormFieldText\";\n\nexport const EBTCardNumber = ({\n value,\n isErrored,\n onChange,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"ebtCardNumber\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldText\n fieldId=\"ebtCardNumber\"\n value={value}\n onChange={onChange}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"ebtCardNumberPlaceholder\",\n defaultMessage: \"EBT card Number\",\n })\n }\n label={<FormattedHTMLMessage id=\"ebtCardNumber\" defaultMessage=\"EBT card Number\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidEBTCardNumber\"\n defaultMessage=\"Invalid EBT Card Number\"\n />\n )\n }\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const EBTCardNumberComponent = injectIntl(EBTCardNumber);\n","import React from \"react\";\nimport { FormattedHTMLMessage, injectIntl } from \"react-intl\";\nimport produce from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport {\n type FormSelectChoice,\n type FormFieldComponentProps,\n type LowIncomePersonalInfoViewModel,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldInputSelect } from \"../FormFieldInputSelect/FormFieldInputSelect\";\nimport { LoadingSpinnerComponent } from \"../../LoadingSpinner/LoadingSpinnerComponent\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\nimport { fetchOrganization } from \"../../../lib/ServerApi/OrganizationApiClient\";\nimport {\n getFieldConfigByFieldId,\n orgToOption,\n} from \"../../../lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { isLowIncomeVM } from \"../../StepLowIncomePersonalInfo/lowIncomeTypes\";\n\nexport const LowIncomeOrganization = ({\n value,\n isErrored,\n onChange,\n intl,\n placeholder = \"\",\n isRequired = false,\n verificationService,\n disabled = false,\n}: FormFieldComponentProps) => {\n const { viewModel, programTheme, fieldValidationErrors } = verificationService;\n\n if (!isLowIncomeVM(viewModel)) {\n logger.error(\"Expected low-income view model is malformed\");\n return null;\n }\n\n const selectedStatus = viewModel.statuses[0] ? viewModel.statuses[0] : undefined;\n const [otherGovAssistOrgs, setOtherGovAssistOrgs] = React.useState<\n FormSelectChoice[] | undefined\n >();\n\n React.useEffect(() => {\n fetchOrganization(\n getOrgSearchUrl(\n produce(viewModel, (draft: LowIncomePersonalInfoViewModel) => {\n draft.statuses = [\"OTHER_GOVERNMENT_ASSISTANCE\"]; // load and cache orgs for OTHER_GOVERNMENT_ASSISTANCE as it is a InputSelect and the list of options doesn't change\n }),\n programTheme,\n ),\n )\n .then((orgList: Organization[]) => {\n if (orgList) {\n let newOrganizations: Organization[] = orgList;\n\n if (viewModel.countryChoice) {\n newOrganizations = orgList.filter(\n (org) => org.country === viewModel.countryChoice.value,\n );\n }\n setOtherGovAssistOrgs(newOrganizations.map(orgToOption));\n }\n })\n .catch((e) => {\n logger.error(e);\n });\n }, []);\n\n const handleStateChange = (selectedOrgOption: FormSelectChoice, onStateChange: Function) => {\n if (selectedOrgOption) {\n onStateChange({\n id: selectedOrgOption.value,\n name: selectedOrgOption.label,\n });\n } else {\n onStateChange({\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 if (selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\") {\n return (\n <FormFieldTypeahead\n fieldId=\"cep-organization\"\n value={viewModel.organization}\n verificationService={verificationService}\n onChange={onChange}\n placeholder={intl.formatHTMLMessage({\n id: \"schoolNamePlaceholder\",\n defaultMessage: \"School name\",\n })}\n label={<FormattedHTMLMessage id=\"schoolName\" defaultMessage=\"School name\" />}\n errorMessage={\n !!fieldValidationErrors.organization && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n isRequired={selectedStatus === \"COMMUNITY_ELIGIBILITY_PROVISION\"}\n disabled={disabled}\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n />\n );\n }\n\n return otherGovAssistOrgs ? (\n <FormFieldInputSelect\n fieldId=\"low-income\"\n value={otherGovAssistOrgs.find((option) => option.value === (value && value.value))}\n refId=\"organization\"\n onChange={(organization: FormSelectChoice) => handleStateChange(organization, onChange)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"lowIncomeOrganizationPlaceholder\",\n defaultMessage: \"Government Assistance Program\",\n })\n }\n label={\n <FormattedHTMLMessage\n id=\"lowIncomeOrganization\"\n defaultMessage=\"Government Assistance Program\"\n />\n }\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 options={otherGovAssistOrgs}\n containerId=\"sid-low-income-id\"\n disabled={disabled}\n />\n ) : (\n <LoadingSpinnerComponent />\n );\n};\n\nexport const LowIncomeOrganizationComponent = injectIntl(LowIncomeOrganization);\n"],"mappings":";;;;;;;;;;aAgDa,IAAyB,GAzCR,EAC5B,UACA,cACA,aACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,eAAe,GAAG,SAGvD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACG;CACV,aACE,KACA,EAAK,kBAAkB;EACrB,IAAI;EACJ,gBAAgB;CAClB,CAAC;CAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAgB,gBAAe;CAAmB,CAAA;CAClF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAIyD,kCC+GjD,IAAiC,GAxIR,EACpC,UACA,cACA,aACA,SACA,iBAAc,IACd,gBAAa,IACb,wBACA,cAAW,SACkB;CAC7B,IAAM,EAAE,cAAW,iBAAc,6BAA0B;CAE3D,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,6CAA6C,GACnD;CAGT,IAAM,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,CAAC,GAAoB,KAAA,EAA+B,SAExD;CAEF,EAAM,gBAAgB;EACpB,EACE,EACE,EAAQ,IAAY,MAA0C;GAC5D,EAAM,WAAW,CAAC,6BAA6B;EACjD,CAAC,GACD,CACF,CACF,EACG,MAAM,MAA4B;GACjC,IAAI,GAAS;IACX,IAAI,IAAmC;IAOvC,AALI,EAAU,kBACZ,IAAmB,EAAQ,QACxB,MAAQ,EAAI,YAAY,EAAU,cAAc,KACnD,IAEF,EAAsB,EAAiB,IAAI,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B,CAE8E"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-DQcok4ZR.js";
|
|
9
9
|
import { c as r } from "./programThemeGetters-DnF6LYGJ.js";
|
|
10
10
|
import { u as i } from "./stepComponentHelpers-CoXbh-eU.js";
|
|
11
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
11
|
+
import { t as a } from "./FormFieldTypeahead-BS5jLvLT.js";
|
|
12
12
|
//#region src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.tsx
|
|
13
13
|
var o = n(), s = e(({ value: e, isErrored: n, onChange: s, verificationService: c, intl: l, placeholder: u = "", disabled: d = !1 }) => i("organization")?.hidden ? null : /* @__PURE__ */ (0, o.jsx)(a, {
|
|
14
14
|
fieldId: "medical-professional-organization",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MedicalProfessionalOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"MedicalProfessionalOrganizationComponent-CVnpGrxK.js","names":[],"sources":["../../src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.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 { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const MedicalProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"medical-professional-organization\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"organizationPlaceholder\", defaultMessage: \"Organization\" })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n disabled={disabled}\n />\n );\n};\n\nexport const MedicalProfessionalOrganizationComponent = injectIntl(MedicalProfessionalOrganization);\n"],"mappings":";;;;;aAyDa,IAA2C,GA7CR,EAC9C,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAA2B,gBAAgB;CAAe,CAAC;CAE1F,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAgB,CAAA;CAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CAC/B,YAAA;CACU;AACX,CAAA,CAI6F"}
|
|
@@ -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.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-BR4BrYkO.js";
|
|
13
13
|
import { c as r } from "./programThemeGetters-BVB52KNe.js";
|
|
14
14
|
import { u as i } from "./stepComponentHelpers-BBfnjjuk.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-CUdUySqk.js";
|
|
16
16
|
//#region src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.tsx
|
|
17
17
|
var o = n(), s = e(({ value: e, isErrored: n, onChange: s, verificationService: c, intl: l, placeholder: u = "", disabled: d = !1 }) => i("organization")?.hidden ? null : /* @__PURE__ */ (0, o.jsx)(a, {
|
|
18
18
|
fieldId: "medical-professional-organization",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MedicalProfessionalOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"MedicalProfessionalOrganizationComponent-ULpT0Fqw.js","names":[],"sources":["../../src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.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 { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const MedicalProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"medical-professional-organization\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"organizationPlaceholder\", defaultMessage: \"Organization\" })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n disabled={disabled}\n />\n );\n};\n\nexport const MedicalProfessionalOrganizationComponent = injectIntl(MedicalProfessionalOrganization);\n"],"mappings":";;;;;aAyDa,IAA2C,GA7CR,EAC9C,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAA2B,gBAAgB;CAAe,CAAC;CAE1F,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAgB,CAAA;CAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CAC/B,YAAA;CACU;AACX,CAAA,CAI6F"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.267.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1785948927000
|
|
5
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:27 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-DQcok4ZR.js";
|
|
9
9
|
import { u as r } from "./stepComponentHelpers-CoXbh-eU.js";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.267.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1785948931853
|
|
9
|
+
* BUILD_DATE: Wed Aug 05 2026 16:55:31 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 3c91cee592605a1a9275c18b61a1186953ea6382
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-BR4BrYkO.js";
|
|
13
13
|
import { u as r } from "./stepComponentHelpers-BBfnjjuk.js";
|