@sheerid/jslib-nightly 2.259.0-alpha.0 → 2.259.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +3 -3
- package/_mysheerid-preview.js +1448 -1437
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-CJV3vrMt.js +3 -3
- package/chunk/AddressComponent-DMwOmjiG.js +3 -3
- package/chunk/AnnouncingHeader-BF69hVVm.js +3 -3
- package/chunk/AnnouncingHeader-DjgtqEeX.js +3 -3
- package/chunk/{ApiUrls-DD69zqho.js → ApiUrls-BpvEY_I3.js} +4 -4
- package/chunk/{ApiUrls-BUOgPCsd.js.map → ApiUrls-BpvEY_I3.js.map} +1 -1
- package/chunk/{ApiUrls-BUOgPCsd.js → ApiUrls-Qas0Xjyd.js} +4 -4
- package/chunk/{ApiUrls-DD69zqho.js.map → ApiUrls-Qas0Xjyd.js.map} +1 -1
- package/chunk/{BirthDateComponent-CbC-mm0W.js → BirthDateComponent-DFHRO9YQ.js} +4 -4
- package/chunk/{BirthDateComponent-C0-e7KwX.js.map → BirthDateComponent-DFHRO9YQ.js.map} +1 -1
- package/chunk/{BirthDateComponent-C0-e7KwX.js → BirthDateComponent-Dh5xAxOF.js} +4 -4
- package/chunk/{BirthDateComponent-CbC-mm0W.js.map → BirthDateComponent-Dh5xAxOF.js.map} +1 -1
- package/chunk/{CaptchaComponent-Duz84ZKe.js → CaptchaComponent-DaH202Ah.js} +5 -5
- package/chunk/{CaptchaComponent-BLfz276x.js.map → CaptchaComponent-DaH202Ah.js.map} +1 -1
- package/chunk/{CaptchaComponent-BLfz276x.js → CaptchaComponent-QYGB0QuK.js} +5 -5
- package/chunk/{CaptchaComponent-Duz84ZKe.js.map → CaptchaComponent-QYGB0QuK.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-MUKxUCnP.js → ChangeLocaleComponent-DdX2nV2D.js} +4 -4
- package/chunk/{ChangeLocaleComponent-MUKxUCnP.js.map → ChangeLocaleComponent-DdX2nV2D.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-TWfz6Ckg.js → ChangeLocaleComponent-QMQdbxxB.js} +4 -4
- package/chunk/{ChangeLocaleComponent-TWfz6Ckg.js.map → ChangeLocaleComponent-QMQdbxxB.js.map} +1 -1
- package/chunk/City-CmO85Z9x.js +3 -3
- package/chunk/City-DlWin4GX.js +3 -3
- package/chunk/{CollegeNameComponent-B1Ca_eWx.js → CollegeNameComponent-CIhHISji.js} +4 -4
- package/chunk/{CollegeNameComponent-B1Ca_eWx.js.map → CollegeNameComponent-CIhHISji.js.map} +1 -1
- package/chunk/{CollegeNameComponent-DyjsG19X.js → CollegeNameComponent-D_dKLkKY.js} +4 -4
- package/chunk/{CollegeNameComponent-DyjsG19X.js.map → CollegeNameComponent-D_dKLkKY.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-1BeB_oX_.js +3 -3
- package/chunk/CopyToClipboardComponent-C1BnmvlK.js +3 -3
- package/chunk/{CountryComponentWrapper-D13yeww-.js → CountryComponentWrapper-Du13nINk.js} +4 -4
- package/chunk/{CountryComponentWrapper-1B1UB23s.js.map → CountryComponentWrapper-Du13nINk.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-1B1UB23s.js → CountryComponentWrapper-zWLRBrRp.js} +4 -4
- package/chunk/{CountryComponentWrapper-D13yeww-.js.map → CountryComponentWrapper-zWLRBrRp.js.map} +1 -1
- package/chunk/{DischargeDateComponent-Csnt8D2b.js → DischargeDateComponent-DH3gbXN-.js} +6 -6
- package/chunk/{DischargeDateComponent-Csnt8D2b.js.map → DischargeDateComponent-DH3gbXN-.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DSVPepGi.js → DischargeDateComponent-DpNsH3Q4.js} +6 -6
- package/chunk/{DischargeDateComponent-DSVPepGi.js.map → DischargeDateComponent-DpNsH3Q4.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-D8q18o2M.js +3 -3
- package/chunk/DriverLicenseNumberComponent-DgXMM-Pt.js +3 -3
- package/chunk/{EmailLoopPending-CbRnSu3F.js → EmailLoopPending-BpsA3nlg.js} +4 -4
- package/chunk/{EmailLoopPending-CbRnSu3F.js.map → EmailLoopPending-BpsA3nlg.js.map} +1 -1
- package/chunk/{EmailLoopPending-CaTCBPNd.js → EmailLoopPending-Dvufu09u.js} +4 -4
- package/chunk/{EmailLoopPending-CaTCBPNd.js.map → EmailLoopPending-Dvufu09u.js.map} +1 -1
- package/chunk/{ExtraMessage-BI-sKAfh.js → ExtraMessage-9BMK2Fd_.js} +4 -4
- package/chunk/{ExtraMessage-BI-sKAfh.js.map → ExtraMessage-9BMK2Fd_.js.map} +1 -1
- package/chunk/{ExtraMessage-DN9YcUAI.js → ExtraMessage-Ca6AF5JE.js} +4 -4
- package/chunk/{ExtraMessage-DN9YcUAI.js.map → ExtraMessage-Ca6AF5JE.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DzOguBO7.js → FirstResponderOrganizationComponent-C88NJlsu.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DOj8zCQD.js.map → FirstResponderOrganizationComponent-C88NJlsu.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DOj8zCQD.js → FirstResponderOrganizationComponent-DgcptK9s.js} +4 -4
- package/chunk/{FirstResponderOrganizationComponent-DzOguBO7.js.map → FirstResponderOrganizationComponent-DgcptK9s.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-6vq4o7k8.js → FormFieldInputSelect-BJlHmrSC.js} +4 -4
- package/chunk/{FormFieldInputSelect-6vq4o7k8.js.map → FormFieldInputSelect-BJlHmrSC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-Cu_CS04I.js → FormFieldInputSelect-qjIEfk_y.js} +4 -4
- package/chunk/{FormFieldInputSelect-Cu_CS04I.js.map → FormFieldInputSelect-qjIEfk_y.js.map} +1 -1
- package/chunk/FormFieldLayout-BpmeMD4X.js +3 -3
- package/chunk/FormFieldLayout-DIcCOsGu.js +3 -3
- package/chunk/FormFieldText-zjWk7Cyc.js +3 -3
- package/chunk/FormFieldText-zuTjfmLt.js +3 -3
- package/chunk/{FormFieldTypeahead-BiT423mU.js → FormFieldTypeahead-4sP6yrSp.js} +6 -6
- package/chunk/{FormFieldTypeahead-BiT423mU.js.map → FormFieldTypeahead-4sP6yrSp.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-B_rJDR1Z.js → FormFieldTypeahead-CrDv6QmZ.js} +6 -6
- package/chunk/{FormFieldTypeahead-B_rJDR1Z.js.map → FormFieldTypeahead-CrDv6QmZ.js.map} +1 -1
- package/chunk/{FormFooterComponent-CHDsW47Q.js → FormFooterComponent-CXzDxR2J.js} +1554 -1587
- package/chunk/FormFooterComponent-CXzDxR2J.js.map +1 -0
- package/chunk/{FormFooterComponent-7fnUts4r.js → FormFooterComponent-D9_fIqUs.js} +1812 -1845
- package/chunk/FormFooterComponent-D9_fIqUs.js.map +1 -0
- package/chunk/{FormSelectChoice-Dz4pLT4V.js → FormSelectChoice-BQPP65dN.js} +4 -4
- package/chunk/{FormSelectChoice-C4fW0dhz.js.map → FormSelectChoice-BQPP65dN.js.map} +1 -1
- package/chunk/{FormSelectChoice-C4fW0dhz.js → FormSelectChoice-QRH1HmYa.js} +4 -4
- package/chunk/{FormSelectChoice-Dz4pLT4V.js.map → FormSelectChoice-QRH1HmYa.js.map} +1 -1
- package/chunk/InputText-Bzkl8mKj.js +3 -3
- package/chunk/InputText-DA8wfbQM.js +3 -3
- package/chunk/{LicensedProfessionalOrganizationComponent-CrcHRLxl.js → LicensedProfessionalOrganizationComponent-Cy9sdOZC.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-CrcHRLxl.js.map → LicensedProfessionalOrganizationComponent-Cy9sdOZC.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-daoOlt5_.js → LicensedProfessionalOrganizationComponent-DD9CuMfT.js} +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-daoOlt5_.js.map → LicensedProfessionalOrganizationComponent-DD9CuMfT.js.map} +1 -1
- package/chunk/LogoComponent-BMeuu-aK.js +3 -3
- package/chunk/LogoComponent-BxIXOXCM.js +3 -3
- package/chunk/{LowIncomeOrganizationComponent-DRHBlX4K.js → LowIncomeOrganizationComponent-D3-otdoS.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-Bi1VMWy1.js.map → LowIncomeOrganizationComponent-D3-otdoS.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-Bi1VMWy1.js → LowIncomeOrganizationComponent-Dpvvj9n4.js} +6 -6
- package/chunk/{LowIncomeOrganizationComponent-DRHBlX4K.js.map → LowIncomeOrganizationComponent-Dpvvj9n4.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-Z3Q-VAql.js → MedicalProfessionalOrganizationComponent-B-hFqd6W.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-UDY7IdWY.js.map → MedicalProfessionalOrganizationComponent-B-hFqd6W.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-UDY7IdWY.js → MedicalProfessionalOrganizationComponent-B_6Eeh8t.js} +4 -4
- package/chunk/{MedicalProfessionalOrganizationComponent-Z3Q-VAql.js.map → MedicalProfessionalOrganizationComponent-B_6Eeh8t.js.map} +1 -1
- package/chunk/MemberIdComponent-DMGaNM9l.js +3 -3
- package/chunk/MemberIdComponent-Dva2Xx7J.js +3 -3
- package/chunk/{MembershipOrganizationComponent-COGXFFDB.js → MembershipOrganizationComponent-CfLlUdPl.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-B-fQOzaF.js.map → MembershipOrganizationComponent-CfLlUdPl.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-B-fQOzaF.js → MembershipOrganizationComponent-DuJZlKLf.js} +4 -4
- package/chunk/{MembershipOrganizationComponent-COGXFFDB.js.map → MembershipOrganizationComponent-DuJZlKLf.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-D3lzSm2E.js +3 -3
- package/chunk/PersonalInfoStepSubmitButton-Ywai8bYu.js +3 -3
- package/chunk/{PersonalInfoStepWrapper-fu8GN5uT.js → PersonalInfoStepWrapper-B-1TuvRJ.js} +4 -4
- package/chunk/{PersonalInfoStepWrapper-fu8GN5uT.js.map → PersonalInfoStepWrapper-B-1TuvRJ.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-C10gEXaL.js → PersonalInfoStepWrapper-DgL_kGk3.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-C10gEXaL.js.map → PersonalInfoStepWrapper-DgL_kGk3.js.map} +1 -1
- package/chunk/PostalCodeComponent-BGzBByZd.js +3 -3
- package/chunk/PostalCodeComponent-C97fgZFI.js +3 -3
- package/chunk/SSN-CNzKgddw.js +3 -3
- package/chunk/SSN-mk_cMbDH.js +3 -3
- package/chunk/{StateSelectComponent-KMddp4QG.js → StateSelectComponent-Cx1_JBfI.js} +4 -4
- package/chunk/{StateSelectComponent-D7sByFD8.js.map → StateSelectComponent-Cx1_JBfI.js.map} +1 -1
- package/chunk/{StateSelectComponent-D7sByFD8.js → StateSelectComponent-D2j7QCvj.js} +4 -4
- package/chunk/{StateSelectComponent-KMddp4QG.js.map → StateSelectComponent-D2j7QCvj.js.map} +1 -1
- package/chunk/{StatusComponent-G15FSZBx.js → StatusComponent-Cxw9bsOp.js} +4 -4
- package/chunk/{StatusComponent-Cj2osQIm.js.map → StatusComponent-Cxw9bsOp.js.map} +1 -1
- package/chunk/{StatusComponent-Cj2osQIm.js → StatusComponent-_HBklXve.js} +4 -4
- package/chunk/{StatusComponent-G15FSZBx.js.map → StatusComponent-_HBklXve.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DXKo_X5e.js → StepActiveMilitaryPersonalInfoComponent-B_rTMccG.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DEMgmtg9.js.map → StepActiveMilitaryPersonalInfoComponent-B_rTMccG.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DEMgmtg9.js → StepActiveMilitaryPersonalInfoComponent-Ceamkjd0.js} +12 -12
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DXKo_X5e.js.map → StepActiveMilitaryPersonalInfoComponent-Ceamkjd0.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-DBmZQkoN.js → StepAgePersonalInfo-DmBYGHG8.js} +11 -11
- package/chunk/{StepAgePersonalInfo-Cg2KJl87.js.map → StepAgePersonalInfo-DmBYGHG8.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Cg2KJl87.js → StepAgePersonalInfo-X-eQf_2z.js} +11 -11
- package/chunk/{StepAgePersonalInfo-DBmZQkoN.js.map → StepAgePersonalInfo-X-eQf_2z.js.map} +1 -1
- package/chunk/StepCard-7t2vkHqM.js +3 -3
- package/chunk/StepCard-BtvCt-ND.js +3 -3
- package/chunk/{StepCollectIdentifier-D1iGAPFT.js → StepCollectIdentifier-8QO4sVSo.js} +6 -6
- package/chunk/{StepCollectIdentifier-D1iGAPFT.js.map → StepCollectIdentifier-8QO4sVSo.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Dg3uYsGk.js → StepCollectIdentifier-bhlSO88L.js} +4 -4
- package/chunk/{StepCollectIdentifier-Dg3uYsGk.js.map → StepCollectIdentifier-bhlSO88L.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-B-rKAGLF.js → StepCollectMilitaryStatusComponent-CwiPlk5w.js} +4 -4
- package/chunk/StepCollectMilitaryStatusComponent-f2ZW0KJY.js +9 -0
- package/chunk/{StepCollectPersonalInfo-Bd2neHAt.js → StepCollectPersonalInfo-R-5UOPTA.js} +19 -19
- package/chunk/{StepCollectPersonalInfo-Bd2neHAt.js.map → StepCollectPersonalInfo-R-5UOPTA.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-CgCFL5Qi.js → StepCollectPersonalInfo-r2uBVXk_.js} +21 -21
- package/chunk/{StepCollectPersonalInfo-CgCFL5Qi.js.map → StepCollectPersonalInfo-r2uBVXk_.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-C2HoMZzF.js +3 -3
- package/chunk/StepCompleteAuthentication-Cs4zhI-D.js +3 -3
- package/chunk/{StepConsolation-C-p5oy72.js → StepConsolation-CwLUx5P6.js} +4 -4
- package/chunk/{StepConsolation-_rgGx9HJ.js.map → StepConsolation-CwLUx5P6.js.map} +1 -1
- package/chunk/{StepConsolation-_rgGx9HJ.js → StepConsolation-J6tneCHK.js} +4 -4
- package/chunk/{StepConsolation-C-p5oy72.js.map → StepConsolation-J6tneCHK.js.map} +1 -1
- package/chunk/{StepDocUpload-CNsA5Gor.js → StepDocUpload-Dl-gzKui.js} +4 -4
- package/chunk/{StepDocUpload-CNsA5Gor.js.map → StepDocUpload-Dl-gzKui.js.map} +1 -1
- package/chunk/{StepDocUpload-BvJS2i9h.js → StepDocUpload-dc7sQRtA.js} +4 -4
- package/chunk/{StepDocUpload-BvJS2i9h.js.map → StepDocUpload-dc7sQRtA.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BHw8h_xd.js → StepDriverLicensePersonalInfoComponent-CkHJjXlR.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-BHw8h_xd.js.map → StepDriverLicensePersonalInfoComponent-CkHJjXlR.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-nqBCtdvd.js → StepDriverLicensePersonalInfoComponent-DWZtsgBr.js} +9 -9
- package/chunk/{StepDriverLicensePersonalInfoComponent-nqBCtdvd.js.map → StepDriverLicensePersonalInfoComponent-DWZtsgBr.js.map} +1 -1
- package/chunk/{StepEmailLoop-BMJqy8Gr.js → StepEmailLoop-BDRiI0kO.js} +5 -5
- package/chunk/{StepEmailLoop-BMJqy8Gr.js.map → StepEmailLoop-BDRiI0kO.js.map} +1 -1
- package/chunk/{StepEmailLoop-DrIdPigE.js → StepEmailLoop-DWNRCm1O.js} +5 -5
- package/chunk/{StepEmailLoop-DrIdPigE.js.map → StepEmailLoop-DWNRCm1O.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-ByQh_PGu.js → StepEmploymentPersonalInfo-C0UAANQZ.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-BNFD_ATO.js.map → StepEmploymentPersonalInfo-C0UAANQZ.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BNFD_ATO.js → StepEmploymentPersonalInfo-al1phPDp.js} +10 -10
- package/chunk/{StepEmploymentPersonalInfo-ByQh_PGu.js.map → StepEmploymentPersonalInfo-al1phPDp.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-tLOc2kvw.js → StepFirstResponderPersonalInfo-Byb5gsnf.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-tLOc2kvw.js.map → StepFirstResponderPersonalInfo-Byb5gsnf.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-yXdXVaHX.js → StepFirstResponderPersonalInfo-Ci8gAYOs.js} +12 -12
- package/chunk/{StepFirstResponderPersonalInfo-yXdXVaHX.js.map → StepFirstResponderPersonalInfo-Ci8gAYOs.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cx7wDOYq.js → StepGeneralIdentityPersonalInfoComponent-B2Kv9xw_.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cx7wDOYq.js.map → StepGeneralIdentityPersonalInfoComponent-B2Kv9xw_.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-NiHNcRkI.js → StepGeneralIdentityPersonalInfoComponent-Ca9lo4Jp.js} +10 -10
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-NiHNcRkI.js.map → StepGeneralIdentityPersonalInfoComponent-Ca9lo4Jp.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BPTD_88b.js → StepHybridIdentityPersonalInfoComponent-BZ7Qu4iK.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-BPTD_88b.js.map → StepHybridIdentityPersonalInfoComponent-BZ7Qu4iK.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DciYC3Cu.js → StepHybridIdentityPersonalInfoComponent-BjS4F6j2.js} +10 -10
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DciYC3Cu.js.map → StepHybridIdentityPersonalInfoComponent-BjS4F6j2.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BMspmYhF.js → StepIDCheckLoop-DiGRkuBM.js} +4 -4
- package/chunk/{StepIDCheckLoop-BMspmYhF.js.map → StepIDCheckLoop-DiGRkuBM.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-WJt2qQ-U.js → StepIDCheckLoop-Djow0hoO.js} +4 -4
- package/chunk/{StepIDCheckLoop-WJt2qQ-U.js.map → StepIDCheckLoop-Djow0hoO.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-BEH6bjb9.js → StepIDCheckLoopOnfido-BvMXuWoN.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-CJctkNAr.js.map → StepIDCheckLoopOnfido-BvMXuWoN.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CJctkNAr.js → StepIDCheckLoopOnfido-CT458GtS.js} +6 -6
- package/chunk/{StepIDCheckLoopOnfido-BEH6bjb9.js.map → StepIDCheckLoopOnfido-CT458GtS.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DnQU1Cu8.js → StepIDCheckLoopRegula-BvLpBUxe.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-CIneTQ2D.js.map → StepIDCheckLoopRegula-BvLpBUxe.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-CIneTQ2D.js → StepIDCheckLoopRegula-DcB8ugg0.js} +4 -4
- package/chunk/{StepIDCheckLoopRegula-DnQU1Cu8.js.map → StepIDCheckLoopRegula-DcB8ugg0.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B_ClVHZA.js → StepInactiveMilitaryPersonalInfoComponent-BpiqZDNI.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-B_ClVHZA.js.map → StepInactiveMilitaryPersonalInfoComponent-BpiqZDNI.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Du_oFY3-.js → StepInactiveMilitaryPersonalInfoComponent-k8BFxBXH.js} +14 -14
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-Du_oFY3-.js.map → StepInactiveMilitaryPersonalInfoComponent-k8BFxBXH.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-Du8wz9zW.js → StepLicensedProfessionalPersonalInfo-C2gyvg1m.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-C_Qaiumd.js.map → StepLicensedProfessionalPersonalInfo-C2gyvg1m.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-C_Qaiumd.js → StepLicensedProfessionalPersonalInfo-DWvD1Z6N.js} +12 -12
- package/chunk/{StepLicensedProfessionalPersonalInfo-Du8wz9zW.js.map → StepLicensedProfessionalPersonalInfo-DWvD1Z6N.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-Bdzv2_B2.js → StepLowIncomePersonalInfo-CTZREXGu.js} +14 -14
- package/chunk/{StepLowIncomePersonalInfo-Bdzv2_B2.js.map → StepLowIncomePersonalInfo-CTZREXGu.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BrcbPtV5.js → StepLowIncomePersonalInfo-CZlgdCqq.js} +12 -12
- package/chunk/{StepLowIncomePersonalInfo-BrcbPtV5.js.map → StepLowIncomePersonalInfo-CZlgdCqq.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-CtD-cQM2.js → StepMedicalProfessionalPersonalInfo-CP9XPNbL.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-CtD-cQM2.js.map → StepMedicalProfessionalPersonalInfo-CP9XPNbL.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DvPyWRde.js → StepMedicalProfessionalPersonalInfo-DmsfNlPZ.js} +13 -13
- package/chunk/{StepMedicalProfessionalPersonalInfo-DvPyWRde.js.map → StepMedicalProfessionalPersonalInfo-DmsfNlPZ.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-BWnOho3Y.js → StepMemberPersonalInfo-Dpb5-ENF.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-BWnOho3Y.js.map → StepMemberPersonalInfo-Dpb5-ENF.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-WhRolEt-.js → StepMemberPersonalInfo-TjSa0NJV.js} +11 -11
- package/chunk/{StepMemberPersonalInfo-WhRolEt-.js.map → StepMemberPersonalInfo-TjSa0NJV.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-BCtzi0DP.js → StepMoverPersonalInfo-6bjpRGAv.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-BCtzi0DP.js.map → StepMoverPersonalInfo-6bjpRGAv.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-ThmViqPc.js → StepMoverPersonalInfo-vv7-jdz0.js} +8 -8
- package/chunk/{StepMoverPersonalInfo-ThmViqPc.js.map → StepMoverPersonalInfo-vv7-jdz0.js.map} +1 -1
- package/chunk/{StepOverrideComponent-DHKPSgj1.js → StepOverrideComponent-4f8ZZxxE.js} +4 -4
- package/chunk/{StepOverrideComponent-BJC_yQiA.js.map → StepOverrideComponent-4f8ZZxxE.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BJC_yQiA.js → StepOverrideComponent-BXnbZhfO.js} +4 -4
- package/chunk/{StepOverrideComponent-DHKPSgj1.js.map → StepOverrideComponent-BXnbZhfO.js.map} +1 -1
- package/chunk/{StepSMSLoop-B9eGlzMK.js → StepSMSLoop-DAKxJhXo.js} +4 -4
- package/chunk/{StepSMSLoop-B9eGlzMK.js.map → StepSMSLoop-DAKxJhXo.js.map} +1 -1
- package/chunk/{StepSMSLoop-CAM2ISnZ.js → StepSMSLoop-DO4S-Aje.js} +4 -4
- package/chunk/{StepSMSLoop-CAM2ISnZ.js.map → StepSMSLoop-DO4S-Aje.js.map} +1 -1
- package/chunk/StepSSO-BRFhNvkp.js +3 -3
- package/chunk/StepSSO-BaFk7RFJ.js +3 -3
- package/chunk/{StepSocialSecurityNumber-C_ecECqL.js → StepSocialSecurityNumber-BseFM9rt.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-7HMjyTzr.js.map → StepSocialSecurityNumber-BseFM9rt.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-7HMjyTzr.js → StepSocialSecurityNumber-D0_62BYK.js} +5 -5
- package/chunk/{StepSocialSecurityNumber-C_ecECqL.js.map → StepSocialSecurityNumber-D0_62BYK.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-Da5L4hHz.js → StepStudentPersonalInfo-0LRBqSx5.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-CMNDwmxq.js.map → StepStudentPersonalInfo-0LRBqSx5.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-CMNDwmxq.js → StepStudentPersonalInfo-CLG5AxSd.js} +11 -11
- package/chunk/{StepStudentPersonalInfo-Da5L4hHz.js.map → StepStudentPersonalInfo-CLG5AxSd.js.map} +1 -1
- package/chunk/{StepSuccess-D4JsYt9Q.js → StepSuccess-8Ek9VvK_.js} +4 -4
- package/chunk/{StepSuccess-B52Sr6Bw.js.map → StepSuccess-8Ek9VvK_.js.map} +1 -1
- package/chunk/{StepSuccess-B52Sr6Bw.js → StepSuccess-Be30r2Og.js} +4 -4
- package/chunk/{StepSuccess-D4JsYt9Q.js.map → StepSuccess-Be30r2Og.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Di4CTvPy.js → StepTeacherPersonalInfo-BYTmkyxy.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-C_upVar3.js.map → StepTeacherPersonalInfo-BYTmkyxy.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-C_upVar3.js → StepTeacherPersonalInfo-BfyMicng.js} +12 -12
- package/chunk/{StepTeacherPersonalInfo-Di4CTvPy.js.map → StepTeacherPersonalInfo-BfyMicng.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BGHCbduX.js +3 -3
- package/chunk/StepThirdPartyLoop-ZHByQpHa.js +3 -3
- package/chunk/{TeacherSchoolComponent-BMETb7Az.js → TeacherSchoolComponent-IkCV6bH-.js} +4 -4
- package/chunk/{TeacherSchoolComponent-BuNyNPwS.js.map → TeacherSchoolComponent-IkCV6bH-.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-BuNyNPwS.js → TeacherSchoolComponent-Qyri5g_X.js} +4 -4
- package/chunk/{TeacherSchoolComponent-BMETb7Az.js.map → TeacherSchoolComponent-Qyri5g_X.js.map} +1 -1
- package/chunk/TestingRouteOverrides-B-zcTBa_.js +3 -3
- package/chunk/TestingRouteOverrides-BDCygTLC.js +3 -3
- package/chunk/ThreatMetrix-D_TbL50B.js +3 -3
- package/chunk/{VerificationApiClient-CBlZ_xYL.js → VerificationApiClient-Br6D_KwQ.js} +4 -4
- package/chunk/{VerificationApiClient-CBlZ_xYL.js.map → VerificationApiClient-Br6D_KwQ.js.map} +1 -1
- package/chunk/{VerificationApiClient-Dm-ac5-R.js → VerificationApiClient-D6OYdL72.js} +4 -4
- package/chunk/{VerificationApiClient-Dm-ac5-R.js.map → VerificationApiClient-D6OYdL72.js.map} +1 -1
- package/chunk/{VerificationApiUtils-ChH7rF6h.js → VerificationApiUtils-D5oFJWD5.js} +5 -5
- package/chunk/{VerificationApiUtils-C7N2K9q4.js.map → VerificationApiUtils-D5oFJWD5.js.map} +1 -1
- package/chunk/{VerificationApiUtils-C7N2K9q4.js → VerificationApiUtils-rnfNWA2k.js} +5 -5
- package/chunk/{VerificationApiUtils-ChH7rF6h.js.map → VerificationApiUtils-rnfNWA2k.js.map} +1 -1
- package/chunk/ar-wkBEXxD9.js +3 -3
- package/chunk/bg-D2-seofX.js +3 -3
- package/chunk/bn-IN-B5PyYaJU.js +3 -3
- package/chunk/countryUtils-D2UBy7Uo.js +3 -3
- package/chunk/countryUtils-QSjR1rBI.js +3 -3
- package/chunk/cs-CsEnIopo.js +3 -3
- package/chunk/da-Da-m3VU_.js +3 -3
- package/chunk/de-BSoD5U3-.js +3 -3
- package/chunk/{downshift.esm-CRm7oOLa.js → downshift.esm-DWGiKAV_.js} +4 -4
- package/chunk/{downshift.esm-CRm7oOLa.js.map → downshift.esm-DWGiKAV_.js.map} +1 -1
- package/chunk/{downshift.esm-Ru5RFg-s.js → downshift.esm-oTd5iRZU.js} +40 -40
- package/chunk/{downshift.esm-Ru5RFg-s.js.map → downshift.esm-oTd5iRZU.js.map} +1 -1
- package/chunk/el-CFa6y9Ri.js +3 -3
- package/chunk/empties-BIoZK05_.js +3 -3
- package/chunk/empties-DHvaWflk.js +3 -3
- package/chunk/en-GB-V8XaGkaI.js +3 -3
- package/chunk/es-D18tLxcT.js +3 -3
- package/chunk/es-ES-7x2bVUQr.js +3 -3
- package/chunk/et-udrWMVlD.js +3 -3
- package/chunk/eventEmitter-CSG6jR7V.js +3 -3
- package/chunk/fa-DgwYULMs.js +3 -3
- package/chunk/fi-CkCWFGDC.js +3 -3
- package/chunk/fr-BprIFEa8.js +3 -3
- package/chunk/fr-CA-DrjICejr.js +3 -3
- package/chunk/ga-LaV5ZJgg.js +3 -3
- package/chunk/hi-IN-7dtEICYI.js +3 -3
- package/chunk/hr-2Bctl997.js +3 -3
- package/chunk/hu-BT0z6TPZ.js +3 -3
- package/chunk/id-BvyYep3X.js +3 -3
- package/chunk/intl-Yr2cw5px.js +3 -3
- package/chunk/is-DOsKfa80.js +3 -3
- package/chunk/it-3dX9AQk7.js +3 -3
- package/chunk/iw-5I90wqQ8.js +3 -3
- package/chunk/ja-CHdgbMgX.js +3 -3
- package/chunk/jsx-runtime-BknAqbDq.js +3 -3
- package/chunk/jsx-runtime-D_-z-h6n.js +3 -3
- package/chunk/kk-BriyNfHL.js +3 -3
- package/chunk/ko-DsMaax3V.js +3 -3
- package/chunk/lo-CjASRmNr.js +3 -3
- package/chunk/lt-DF29E1de.js +3 -3
- package/chunk/lv-DlHBZyt-.js +3 -3
- package/chunk/militaryStepHelpers-DSh6iat_.js +3 -3
- package/chunk/militaryStepHelpers-UF-7lF1f.js +3 -3
- package/chunk/mocks-1r84in2Q.js +3 -3
- package/chunk/mocks-CKXq8CZk.js +3 -3
- package/chunk/ms-B3vDtlFh.js +3 -3
- package/chunk/nl-BE-Dw1IGXuF.js +3 -3
- package/chunk/nl-Cqkrr5-r.js +3 -3
- package/chunk/no-876EdwkX.js +3 -3
- package/chunk/options-D19mRw5a.js +3 -3
- package/chunk/pl-B_G8s05-.js +3 -3
- package/chunk/programThemeGetters-Lz3L0Vh7.js +3 -3
- package/chunk/programThemeGetters-iBty-gXI.js +3 -3
- package/chunk/pt-BR-DWj043qk.js +3 -3
- package/chunk/pt-DckA3Jnn.js +3 -3
- package/chunk/refs-Bbe0gnJ3.js +3 -3
- package/chunk/refs-C_tB1qMA.js +3 -3
- package/chunk/ro-DukNcWCM.js +3 -3
- package/chunk/ru-RkdRQ7qb.js +3 -3
- package/chunk/sk-CPBgBtC5.js +3 -3
- package/chunk/sl-Cyj9PWmN.js +3 -3
- package/chunk/sr-Bm1GVW8m.js +3 -3
- package/chunk/strings-DWLVdUcm.js +3 -3
- package/chunk/sv-CcMmeZrG.js +3 -3
- package/chunk/sw-BPvl1ou6.js +3 -3
- package/chunk/ta-BPEH7IlE.js +3 -3
- package/chunk/th-Dd912RL5.js +3 -3
- package/chunk/tl-J_TdpjQz.js +3 -3
- package/chunk/tr-B-GrrJj0.js +3 -3
- package/chunk/uk-MohyvT_n.js +3 -3
- package/chunk/ur-CDYGpWMm.js +3 -3
- package/chunk/{useCollectFieldsEndpoint-DhBtrtjg.js → useCollectFieldsEndpoint-BSbEIf3Q.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-BBlv-Xfw.js.map → useCollectFieldsEndpoint-BSbEIf3Q.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-BBlv-Xfw.js → useCollectFieldsEndpoint-BuXZrZTD.js} +5 -5
- package/chunk/{useCollectFieldsEndpoint-DhBtrtjg.js.map → useCollectFieldsEndpoint-BuXZrZTD.js.map} +1 -1
- package/chunk/useMetrics-BdMoL7SD.js +3 -3
- package/chunk/useMetrics-D_8asKZL.js +3 -3
- package/chunk/validators-DTjHYDSK.js +3 -3
- package/chunk/validators-Do9xo2t_.js +3 -3
- package/chunk/vi-CdPTWSev.js +3 -3
- package/chunk/zh-DhnjKBoc.js +3 -3
- package/chunk/zh-HK-CWKNP_HX.js +3 -3
- package/chunk/zu-BpMHS0oR.js +3 -3
- package/package.json +1 -1
- package/sheerid-install.css +3 -3
- package/sheerid-install.js +3 -3
- package/sheerid.css +3 -3
- package/sheerid.js +1752 -1741
- package/sheerid.js.map +1 -1
- package/chunk/FormFooterComponent-7fnUts4r.js.map +0 -1
- package/chunk/FormFooterComponent-CHDsW47Q.js.map +0 -1
- package/chunk/StepCollectMilitaryStatusComponent-BI_jEHsZ.js +0 -9
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.259.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, Wt as t } from "./options-D19mRw5a.js";
|
|
9
9
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-BknAqbDq.js";
|
|
10
10
|
import { o } from "./refs-Bbe0gnJ3.js";
|
|
11
11
|
import { lt as s } from "../sheerid.js";
|
|
12
|
-
import { t as c } from "./downshift.esm-
|
|
12
|
+
import { t as c } from "./downshift.esm-oTd5iRZU.js";
|
|
13
13
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
14
14
|
var l = /* @__PURE__ */ t(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-C4fW0dhz.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 { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type FormSelectChoice } from \"../../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 intl: InjectedIntl,\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({\n value,\n label: intl.formatHTMLMessage({\n id: `${namespace}.${value}`,\n defaultMessage: `{${namespace}.${value}}`,\n }),\n });\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,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;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;CA0BlC,OAxBA,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;GACX;GACA,OAAO,EAAK,kBAAkB;IAC5B,IAAI,GAAG,EAAU,GAAG;IACpB,gBAAgB,IAAI,EAAU,GAAG,EAAM;GACzC,CAAC;EACH,CAAC;CACH,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-BQPP65dN.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 { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type FormSelectChoice } from \"../../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 intl: InjectedIntl,\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({\n value,\n label: intl.formatHTMLMessage({\n id: `${namespace}.${value}`,\n defaultMessage: `{${namespace}.${value}}`,\n }),\n });\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,yBA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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;CA0BlC,OAxBA,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;GACX;GACA,OAAO,EAAK,kBAAkB;IAC5B,IAAI,GAAG,EAAU,GAAG;IACpB,gBAAgB,IAAI,EAAU,GAAG,EAAM;GACzC,CAAC;EACH,CAAC;CACH,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { Rt as e, Ut as t } from "./intl-Yr2cw5px.js";
|
|
13
13
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-D_-z-h6n.js";
|
|
14
14
|
import { o } from "./refs-C_tB1qMA.js";
|
|
15
15
|
import { ct as s } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as c } from "./downshift.esm-
|
|
16
|
+
import { t as c } from "./downshift.esm-DWGiKAV_.js";
|
|
17
17
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
18
18
|
var l = /* @__PURE__ */ t(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-Dz4pLT4V.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 { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type FormSelectChoice } from \"../../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 intl: InjectedIntl,\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({\n value,\n label: intl.formatHTMLMessage({\n id: `${namespace}.${value}`,\n defaultMessage: `{${namespace}.${value}}`,\n }),\n });\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,eACA,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AA;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;CA0BlC,OAxBA,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;GACX;GACA,OAAO,EAAK,kBAAkB;IAC5B,IAAI,GAAG,EAAU,GAAG;IACpB,gBAAgB,IAAI,EAAU,GAAG,EAAM;GACzC,CAAC;EACH,CAAC;CACH,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-QRH1HmYa.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 { type InjectedIntl } from \"react-intl\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type FormSelectChoice } from \"../../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 intl: InjectedIntl,\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({\n value,\n label: intl.formatHTMLMessage({\n id: `${namespace}.${value}`,\n defaultMessage: `{${namespace}.${value}}`,\n }),\n });\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,KAC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|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { Wt as e } from "./options-D19mRw5a.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { Ut as e } from "./intl-Yr2cw5px.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.259.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-BknAqbDq.js";
|
|
9
9
|
import { u as r } from "./programThemeGetters-Lz3L0Vh7.js";
|
|
10
10
|
import { V as i } from "../sheerid.js";
|
|
11
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
11
|
+
import { t as a } from "./FormFieldTypeahead-4sP6yrSp.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-Cy9sdOZC.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,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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-D_-z-h6n.js";
|
|
13
13
|
import { u as r } from "./programThemeGetters-iBty-gXI.js";
|
|
14
14
|
import { B as i } from "../_mysheerid-preview.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-CrDv6QmZ.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-DD9CuMfT.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,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.259.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { n as e, t } from "./jsx-runtime-BknAqbDq.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { n as e, t } from "./jsx-runtime-D_-z-h6n.js";
|
|
@@ -4,19 +4,19 @@
|
|
|
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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { Rt as e, Ut as t, p as n } from "./intl-Yr2cw5px.js";
|
|
13
13
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-D_-z-h6n.js";
|
|
14
|
-
import { a as s } from "./VerificationApiClient-
|
|
14
|
+
import { a as s } from "./VerificationApiClient-D6OYdL72.js";
|
|
15
15
|
import { m as c, u as l } from "./programThemeGetters-iBty-gXI.js";
|
|
16
16
|
import { B as u, K as d, ct as f } from "../_mysheerid-preview.js";
|
|
17
17
|
import { t as p } from "./FormFieldText-zuTjfmLt.js";
|
|
18
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
19
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
18
|
+
import { t as m } from "./FormFieldInputSelect-qjIEfk_y.js";
|
|
19
|
+
import { t as h } from "./FormFieldTypeahead-CrDv6QmZ.js";
|
|
20
20
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
21
21
|
var g = o(), _ = r(({ value: e, isErrored: t, onChange: n, intl: r, placeholder: i = "", disabled: o = !1 }) => u("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
22
22
|
fieldId: "ebtCardNumber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-D3-otdoS.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,E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,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,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.259.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { Bt as e, Wt as t, c as n } from "./options-D19mRw5a.js";
|
|
9
9
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-BknAqbDq.js";
|
|
10
|
-
import { a as s } from "./VerificationApiClient-
|
|
10
|
+
import { a as s } from "./VerificationApiClient-Br6D_KwQ.js";
|
|
11
11
|
import { m as c, u as l } from "./programThemeGetters-Lz3L0Vh7.js";
|
|
12
12
|
import { V as u, lt as d, q as f } from "../sheerid.js";
|
|
13
13
|
import { t as p } from "./FormFieldText-zjWk7Cyc.js";
|
|
14
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
15
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
14
|
+
import { t as m } from "./FormFieldInputSelect-BJlHmrSC.js";
|
|
15
|
+
import { t as h } from "./FormFieldTypeahead-4sP6yrSp.js";
|
|
16
16
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
17
17
|
var g = o(), _ = r(({ value: e, isErrored: t, onChange: n, intl: r, placeholder: i = "", disabled: o = !1 }) => u("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
18
18
|
fieldId: "ebtCardNumber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-Dpvvj9n4.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,CAAW,CAAC;GACzD;EACF,CAAC,EACA,OAAO,MAAM;GACZ,EAAO,MAAM,CAAC;EAChB,CAAC;CACL,GAAG,CAAC,CAAC;CAEL,IAAM,KAAqB,GAAqC,MAA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
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.259.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-BknAqbDq.js";
|
|
9
9
|
import { u as r } from "./programThemeGetters-Lz3L0Vh7.js";
|
|
10
10
|
import { V as i } from "../sheerid.js";
|
|
11
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
11
|
+
import { t as a } from "./FormFieldTypeahead-4sP6yrSp.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-B-hFqd6W.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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-D_-z-h6n.js";
|
|
13
13
|
import { u as r } from "./programThemeGetters-iBty-gXI.js";
|
|
14
14
|
import { B as i } from "../_mysheerid-preview.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-CrDv6QmZ.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-B_6Eeh8t.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,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-D_-z-h6n.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.259.0-alpha.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
3
|
+
* VERSION: 2.259.0-alpha.2
|
|
4
|
+
* BUILD_TIMESTAMP: 1784832344356
|
|
5
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:44 GMT+0000 (Coordinated Universal Time)
|
|
6
6
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-BknAqbDq.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.259.0-alpha.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
7
|
+
* VERSION: 2.259.0-alpha.2
|
|
8
|
+
* BUILD_TIMESTAMP: 1784832348235
|
|
9
|
+
* BUILD_DATE: Thu Jul 23 2026 18:45:48 GMT+0000 (Coordinated Universal Time)
|
|
10
10
|
* BUILD_COMMIT: 723cd7cf079ebfd281e0288836276bf33ce7607f
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-D_-z-h6n.js";
|
|
13
13
|
import { u as r } from "./programThemeGetters-iBty-gXI.js";
|
|
14
14
|
import { B as i } from "../_mysheerid-preview.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-CrDv6QmZ.js";
|
|
16
16
|
//#region src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.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: "membership",
|