@sheerid/jslib 2.269.0 → 2.270.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +35 -35
- package/chunk/AddressComponent-BGFbAsvK.js +4 -4
- package/chunk/AddressComponent-BLDI7tct.js +4 -4
- package/chunk/AnnouncingHeader-BRATyipQ.js +4 -4
- package/chunk/AnnouncingHeader-D01_AW-Z.js +4 -4
- package/chunk/{ApiUrls-CKAZKLnK.js → ApiUrls-BQUSV_C4.js} +5 -5
- package/chunk/{ApiUrls-CFw58S18.js.map → ApiUrls-BQUSV_C4.js.map} +1 -1
- package/chunk/{ApiUrls-CFw58S18.js → ApiUrls-CdvIaCPb.js} +5 -5
- package/chunk/{ApiUrls-CKAZKLnK.js.map → ApiUrls-CdvIaCPb.js.map} +1 -1
- package/chunk/{BirthDateComponent-BzVmcDOx.js → BirthDateComponent-8n5w49uf.js} +5 -5
- package/chunk/{BirthDateComponent-BzVmcDOx.js.map → BirthDateComponent-8n5w49uf.js.map} +1 -1
- package/chunk/{BirthDateComponent-CecqI7gY.js → BirthDateComponent-yqUNC0cX.js} +5 -5
- package/chunk/{BirthDateComponent-CecqI7gY.js.map → BirthDateComponent-yqUNC0cX.js.map} +1 -1
- package/chunk/{CaptchaComponent-BposOvJS.js → CaptchaComponent-BC8Hh-gt.js} +6 -6
- package/chunk/{CaptchaComponent-BposOvJS.js.map → CaptchaComponent-BC8Hh-gt.js.map} +1 -1
- package/chunk/{CaptchaComponent-DmeYzaQr.js → CaptchaComponent-BPb0dakG.js} +6 -6
- package/chunk/{CaptchaComponent-DmeYzaQr.js.map → CaptchaComponent-BPb0dakG.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-DgYtn9dP.js → ChangeLocaleComponent-CGBBsXLT.js} +5 -5
- package/chunk/{ChangeLocaleComponent-DgYtn9dP.js.map → ChangeLocaleComponent-CGBBsXLT.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-E3T-NGAW.js → ChangeLocaleComponent-DRUeCPZA.js} +5 -5
- package/chunk/{ChangeLocaleComponent-E3T-NGAW.js.map → ChangeLocaleComponent-DRUeCPZA.js.map} +1 -1
- package/chunk/City-BJB8URp9.js +4 -4
- package/chunk/City-EIxs9ACD.js +4 -4
- package/chunk/{CollegeNameComponent-DlBXPweh.js → CollegeNameComponent-BaDGjAtr.js} +5 -5
- package/chunk/{CollegeNameComponent-9QjwNSCj.js.map → CollegeNameComponent-BaDGjAtr.js.map} +1 -1
- package/chunk/{CollegeNameComponent-9QjwNSCj.js → CollegeNameComponent-CNEhtqW-.js} +5 -5
- package/chunk/{CollegeNameComponent-DlBXPweh.js.map → CollegeNameComponent-CNEhtqW-.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-CWCaNcMS.js +4 -4
- package/chunk/CopyToClipboardComponent-L-1toxiA.js +4 -4
- package/chunk/{CountryComponentWrapper-CYNH-xR8.js → CountryComponentWrapper-BnKSU0p4.js} +5 -5
- package/chunk/{CountryComponentWrapper-CYNH-xR8.js.map → CountryComponentWrapper-BnKSU0p4.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-DZTykNNI.js → CountryComponentWrapper-DrQ16m-K.js} +5 -5
- package/chunk/{CountryComponentWrapper-DZTykNNI.js.map → CountryComponentWrapper-DrQ16m-K.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CKxyHczE.js → DischargeDateComponent-AL4r7_6M.js} +7 -7
- package/chunk/{DischargeDateComponent-CKxyHczE.js.map → DischargeDateComponent-AL4r7_6M.js.map} +1 -1
- package/chunk/{DischargeDateComponent-DQS45Gme.js → DischargeDateComponent-CSlOHDvZ.js} +7 -7
- package/chunk/{DischargeDateComponent-DQS45Gme.js.map → DischargeDateComponent-CSlOHDvZ.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-Cfjxx2ik.js +4 -4
- package/chunk/DriverLicenseNumberComponent-rkswBl9W.js +4 -4
- package/chunk/{EmailLoopPending-yeDDaild.js → EmailLoopPending-CcwixScU.js} +5 -5
- package/chunk/{EmailLoopPending-rBBYmSzC.js.map → EmailLoopPending-CcwixScU.js.map} +1 -1
- package/chunk/{EmailLoopPending-rBBYmSzC.js → EmailLoopPending-DtGGxsmv.js} +5 -5
- package/chunk/{EmailLoopPending-yeDDaild.js.map → EmailLoopPending-DtGGxsmv.js.map} +1 -1
- package/chunk/{ExtraMessage-CNYgC9oX.js → ExtraMessage-BrKLhrcV.js} +5 -5
- package/chunk/{ExtraMessage--CB8f4Pw.js.map → ExtraMessage-BrKLhrcV.js.map} +1 -1
- package/chunk/{ExtraMessage--CB8f4Pw.js → ExtraMessage-BwirpoCn.js} +5 -5
- package/chunk/{ExtraMessage-CNYgC9oX.js.map → ExtraMessage-BwirpoCn.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DWeEf1Tk.js → FirstResponderOrganizationComponent-DduKDiZD.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-C9AEN2ga.js.map → FirstResponderOrganizationComponent-DduKDiZD.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-C9AEN2ga.js → FirstResponderOrganizationComponent-cT8JOr6q.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-DWeEf1Tk.js.map → FirstResponderOrganizationComponent-cT8JOr6q.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-CVskqzxM.js → FormFieldInputSelect-Bn2qb48l.js} +5 -5
- package/chunk/{FormFieldInputSelect-CVskqzxM.js.map → FormFieldInputSelect-Bn2qb48l.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-BfyV_sJ8.js → FormFieldInputSelect-FWr7I81-.js} +5 -5
- package/chunk/{FormFieldInputSelect-BfyV_sJ8.js.map → FormFieldInputSelect-FWr7I81-.js.map} +1 -1
- package/chunk/FormFieldLayout-CZyAbU7A.js +4 -4
- package/chunk/FormFieldLayout-CuxYu2-h.js +4 -4
- package/chunk/FormFieldText-Qen7EAhG.js +4 -4
- package/chunk/FormFieldText-hh7QLPOB.js +4 -4
- package/chunk/{FormFieldTypeahead-Dlf6JGBj.js → FormFieldTypeahead-CFIqaT0L.js} +7 -7
- package/chunk/{FormFieldTypeahead-Dlf6JGBj.js.map → FormFieldTypeahead-CFIqaT0L.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-wfTqtKkh.js → FormFieldTypeahead-Ch4Umrsi.js} +7 -7
- package/chunk/{FormFieldTypeahead-wfTqtKkh.js.map → FormFieldTypeahead-Ch4Umrsi.js.map} +1 -1
- package/chunk/{FormFooterComponent-DPMMrDgb.js → FormFooterComponent-CWQLbWBR.js} +7 -7
- package/chunk/{FormFooterComponent-DPMMrDgb.js.map → FormFooterComponent-CWQLbWBR.js.map} +1 -1
- package/chunk/{FormFooterComponent-Dq1KuEDh.js → FormFooterComponent-qK97rv0b.js} +7 -7
- package/chunk/{FormFooterComponent-Dq1KuEDh.js.map → FormFooterComponent-qK97rv0b.js.map} +1 -1
- package/chunk/{FormSelectChoice-B7Puy0kw.js → FormSelectChoice-CsonNGXC.js} +5 -5
- package/chunk/{FormSelectChoice-B7Puy0kw.js.map → FormSelectChoice-CsonNGXC.js.map} +1 -1
- package/chunk/{FormSelectChoice-B7TjFQOI.js → FormSelectChoice-DsADBuXc.js} +5 -5
- package/chunk/{FormSelectChoice-B7TjFQOI.js.map → FormSelectChoice-DsADBuXc.js.map} +1 -1
- package/chunk/InputText-Bw9hR6-E.js +4 -4
- package/chunk/InputText-DLjv31-v.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-uZLpChXj.js → LicensedProfessionalOrganizationComponent-D4Sagn1a.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-3ZChfTc9.js.map → LicensedProfessionalOrganizationComponent-D4Sagn1a.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-3ZChfTc9.js → LicensedProfessionalOrganizationComponent-Uz8NEeW_.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-uZLpChXj.js.map → LicensedProfessionalOrganizationComponent-Uz8NEeW_.js.map} +1 -1
- package/chunk/LogoComponent-BbW4WS1K.js +4 -4
- package/chunk/LogoComponent-DwoLE9u6.js +4 -4
- package/chunk/{LowIncomeOrganizationComponent-DOzSyorB.js → LowIncomeOrganizationComponent-DndwIJNB.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-DL3gJOrj.js.map → LowIncomeOrganizationComponent-DndwIJNB.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DL3gJOrj.js → LowIncomeOrganizationComponent-xLgUIxoz.js} +7 -7
- package/chunk/{LowIncomeOrganizationComponent-DOzSyorB.js.map → LowIncomeOrganizationComponent-xLgUIxoz.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-BjWOKoD-.js → MedicalProfessionalOrganizationComponent-D0Nadvrg.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-BjWOKoD-.js.map → MedicalProfessionalOrganizationComponent-D0Nadvrg.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DtCCiDpS.js → MedicalProfessionalOrganizationComponent-DJL7NwLH.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-DtCCiDpS.js.map → MedicalProfessionalOrganizationComponent-DJL7NwLH.js.map} +1 -1
- package/chunk/MemberIdComponent-B5k8k7Ri.js +4 -4
- package/chunk/MemberIdComponent-CuflPh6q.js +4 -4
- package/chunk/{MembershipOrganizationComponent-DP0eHP6r.js → MembershipOrganizationComponent-B4ZfzHx6.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-CekwYoE9.js.map → MembershipOrganizationComponent-B4ZfzHx6.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-CekwYoE9.js → MembershipOrganizationComponent-C0OSFYIQ.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-DP0eHP6r.js.map → MembershipOrganizationComponent-C0OSFYIQ.js.map} +1 -1
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-D55ut5Yp.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-GRWIeaA0.js +4 -4
- package/chunk/{PersonalInfoStepWrapper-CiAxAE7Y.js → PersonalInfoStepWrapper-BOjObBam.js} +6 -6
- package/chunk/{PersonalInfoStepWrapper-CiAxAE7Y.js.map → PersonalInfoStepWrapper-BOjObBam.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-CL1m9dkF.js → PersonalInfoStepWrapper-Diz3Ht1g.js} +5 -5
- package/chunk/{PersonalInfoStepWrapper-CL1m9dkF.js.map → PersonalInfoStepWrapper-Diz3Ht1g.js.map} +1 -1
- package/chunk/PostalCodeComponent-Bs9KyOzc.js +4 -4
- package/chunk/PostalCodeComponent-D9AMJfw1.js +4 -4
- package/chunk/SSN-Bj9BhqVP.js +4 -4
- package/chunk/SSN-U1aHmtP9.js +4 -4
- package/chunk/{StateSelectComponent-OuGYXdl0.js → StateSelectComponent-1YJLjTAG.js} +5 -5
- package/chunk/{StateSelectComponent-CBDiaeYa.js.map → StateSelectComponent-1YJLjTAG.js.map} +1 -1
- package/chunk/{StateSelectComponent-CBDiaeYa.js → StateSelectComponent-DglWtpYj.js} +5 -5
- package/chunk/{StateSelectComponent-OuGYXdl0.js.map → StateSelectComponent-DglWtpYj.js.map} +1 -1
- package/chunk/{StatusComponent-Bs_9bH8z.js → StatusComponent-B5ZelgbD.js} +5 -5
- package/chunk/{StatusComponent-Bs_9bH8z.js.map → StatusComponent-B5ZelgbD.js.map} +1 -1
- package/chunk/{StatusComponent-CpzWKjIH.js → StatusComponent-CG2N9vAq.js} +5 -5
- package/chunk/{StatusComponent-CpzWKjIH.js.map → StatusComponent-CG2N9vAq.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DUHtR4Bu.js → StepActiveMilitaryPersonalInfoComponent-C67w4NkV.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CNHkKBYR.js.map → StepActiveMilitaryPersonalInfoComponent-C67w4NkV.js.map} +1 -1
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-CNHkKBYR.js → StepActiveMilitaryPersonalInfoComponent-CigXqN4X.js} +13 -13
- package/chunk/{StepActiveMilitaryPersonalInfoComponent-DUHtR4Bu.js.map → StepActiveMilitaryPersonalInfoComponent-CigXqN4X.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CGzVv4FZ.js → StepAgePersonalInfo-BPVO3kR9.js} +12 -12
- package/chunk/{StepAgePersonalInfo-CGzVv4FZ.js.map → StepAgePersonalInfo-BPVO3kR9.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-CQqhuJMq.js → StepAgePersonalInfo-D-cI9grs.js} +12 -12
- package/chunk/{StepAgePersonalInfo-CQqhuJMq.js.map → StepAgePersonalInfo-D-cI9grs.js.map} +1 -1
- package/chunk/StepCard-CPjUPPj0.js +4 -4
- package/chunk/StepCard-C_A_mMZ0.js +4 -4
- package/chunk/{StepCollectIdentifier-C_ucabQe.js → StepCollectIdentifier-C9wdaGJ6.js} +5 -5
- package/chunk/{StepCollectIdentifier-Eac--wm4.js.map → StepCollectIdentifier-C9wdaGJ6.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-Eac--wm4.js → StepCollectIdentifier-MfYUl-R5.js} +5 -5
- package/chunk/{StepCollectIdentifier-C_ucabQe.js.map → StepCollectIdentifier-MfYUl-R5.js.map} +1 -1
- package/chunk/{StepCollectMilitaryStatusComponent-BQkibEkM.js → StepCollectMilitaryStatusComponent-BVG18AE7.js} +5 -5
- package/chunk/StepCollectMilitaryStatusComponent-BjgZp6k3.js +9 -0
- package/chunk/{StepCollectPersonalInfo-CPjRo7Y9.js → StepCollectPersonalInfo-CWkuquL7.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-CPjRo7Y9.js.map → StepCollectPersonalInfo-CWkuquL7.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-laRnu8pI.js → StepCollectPersonalInfo-CqaHdY9G.js} +20 -20
- package/chunk/{StepCollectPersonalInfo-laRnu8pI.js.map → StepCollectPersonalInfo-CqaHdY9G.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-B_kMG5T4.js +4 -4
- package/chunk/StepCompleteAuthentication-WNoY9V_A.js +4 -4
- package/chunk/{StepConsolation-Dg35X6Nv.js → StepConsolation-7IJxpi6b.js} +5 -5
- package/chunk/{StepConsolation-Dg35X6Nv.js.map → StepConsolation-7IJxpi6b.js.map} +1 -1
- package/chunk/{StepConsolation-BYNhd4uq.js → StepConsolation-DHgF5XJ8.js} +5 -5
- package/chunk/{StepConsolation-BYNhd4uq.js.map → StepConsolation-DHgF5XJ8.js.map} +1 -1
- package/chunk/{StepDocUpload-C2DLzc0w.js → StepDocUpload-CeS9mQ5h.js} +5 -5
- package/chunk/{StepDocUpload-C2DLzc0w.js.map → StepDocUpload-CeS9mQ5h.js.map} +1 -1
- package/chunk/{StepDocUpload-DtB5uV7m.js → StepDocUpload-D9VhTNJF.js} +5 -5
- package/chunk/{StepDocUpload-DtB5uV7m.js.map → StepDocUpload-D9VhTNJF.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-73dPAUkB.js → StepDriverLicensePersonalInfoComponent-Bpu1khFH.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-DqcZ4Y6X.js.map → StepDriverLicensePersonalInfoComponent-Bpu1khFH.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DqcZ4Y6X.js → StepDriverLicensePersonalInfoComponent-L2QJUcKJ.js} +10 -10
- package/chunk/{StepDriverLicensePersonalInfoComponent-73dPAUkB.js.map → StepDriverLicensePersonalInfoComponent-L2QJUcKJ.js.map} +1 -1
- package/chunk/{StepEmailLoop-D22Nntj2.js → StepEmailLoop-BlJqFCoq.js} +6 -6
- package/chunk/{StepEmailLoop-D22Nntj2.js.map → StepEmailLoop-BlJqFCoq.js.map} +1 -1
- package/chunk/{StepEmailLoop-BZpzXzC2.js → StepEmailLoop-KinWqvjv.js} +6 -6
- package/chunk/{StepEmailLoop-BZpzXzC2.js.map → StepEmailLoop-KinWqvjv.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-BuYfOeYj.js → StepEmploymentPersonalInfo-BA8mDEip.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-Bta-r4fB.js.map → StepEmploymentPersonalInfo-BA8mDEip.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-Bta-r4fB.js → StepEmploymentPersonalInfo-D64bTFOa.js} +11 -11
- package/chunk/{StepEmploymentPersonalInfo-BuYfOeYj.js.map → StepEmploymentPersonalInfo-D64bTFOa.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-CG5pezyO.js → StepFirstResponderPersonalInfo-3U8rnTr_.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-CG5pezyO.js.map → StepFirstResponderPersonalInfo-3U8rnTr_.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-DeKSpaLe.js → StepFirstResponderPersonalInfo-DX28knQW.js} +13 -13
- package/chunk/{StepFirstResponderPersonalInfo-DeKSpaLe.js.map → StepFirstResponderPersonalInfo-DX28knQW.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DRQgzOQ6.js → StepGeneralIdentityPersonalInfoComponent-CRevdkVb.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D0wMP1G2.js.map → StepGeneralIdentityPersonalInfoComponent-CRevdkVb.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-D0wMP1G2.js → StepGeneralIdentityPersonalInfoComponent-C_vtYe4R.js} +11 -11
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-DRQgzOQ6.js.map → StepGeneralIdentityPersonalInfoComponent-C_vtYe4R.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DFSSg3ry.js → StepHybridIdentityPersonalInfoComponent-3oIiSaQL.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CkC-AoPw.js.map → StepHybridIdentityPersonalInfoComponent-3oIiSaQL.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CkC-AoPw.js → StepHybridIdentityPersonalInfoComponent-CWolnBnY.js} +11 -11
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DFSSg3ry.js.map → StepHybridIdentityPersonalInfoComponent-CWolnBnY.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BpJ3fPon.js → StepIDCheckLoop-CgKIS3hc.js} +5 -5
- package/chunk/{StepIDCheckLoop-BCSuGUM2.js.map → StepIDCheckLoop-CgKIS3hc.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-BCSuGUM2.js → StepIDCheckLoop-CqoDSnnS.js} +5 -5
- package/chunk/{StepIDCheckLoop-BpJ3fPon.js.map → StepIDCheckLoop-CqoDSnnS.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-B876ic3b.js → StepIDCheckLoopOnfido-Czuxc18w.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-CbhfhvYA.js.map → StepIDCheckLoopOnfido-Czuxc18w.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-CbhfhvYA.js → StepIDCheckLoopOnfido-D9d9YSyA.js} +7 -7
- package/chunk/{StepIDCheckLoopOnfido-B876ic3b.js.map → StepIDCheckLoopOnfido-D9d9YSyA.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-bRrpSzw8.js → StepIDCheckLoopRegula-BaQhbEtg.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-D-6qUsq0.js.map → StepIDCheckLoopRegula-BaQhbEtg.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-D-6qUsq0.js → StepIDCheckLoopRegula-Kb6frxLO.js} +5 -5
- package/chunk/{StepIDCheckLoopRegula-bRrpSzw8.js.map → StepIDCheckLoopRegula-Kb6frxLO.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-9b_3sMg9.js → StepInactiveMilitaryPersonalInfoComponent-CR7ttJWi.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-9b_3sMg9.js.map → StepInactiveMilitaryPersonalInfoComponent-CR7ttJWi.js.map} +1 -1
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-LNlppu4q.js → StepInactiveMilitaryPersonalInfoComponent-r5nb-lxc.js} +15 -15
- package/chunk/{StepInactiveMilitaryPersonalInfoComponent-LNlppu4q.js.map → StepInactiveMilitaryPersonalInfoComponent-r5nb-lxc.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CzZANLXl.js → StepLicensedProfessionalPersonalInfo-2uBg0TxB.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-B2cXttMY.js.map → StepLicensedProfessionalPersonalInfo-2uBg0TxB.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-B2cXttMY.js → StepLicensedProfessionalPersonalInfo-D2_G68E1.js} +13 -13
- package/chunk/{StepLicensedProfessionalPersonalInfo-CzZANLXl.js.map → StepLicensedProfessionalPersonalInfo-D2_G68E1.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-vDrKDZw_.js → StepLowIncomePersonalInfo-BK6OjcMA.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-bGNavcGu.js.map → StepLowIncomePersonalInfo-BK6OjcMA.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-bGNavcGu.js → StepLowIncomePersonalInfo-BQdSRktD.js} +13 -13
- package/chunk/{StepLowIncomePersonalInfo-vDrKDZw_.js.map → StepLowIncomePersonalInfo-BQdSRktD.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DCLh7k73.js → StepMedicalProfessionalPersonalInfo-B5MMqH6W.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-DCLh7k73.js.map → StepMedicalProfessionalPersonalInfo-B5MMqH6W.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmTkhQ53.js → StepMedicalProfessionalPersonalInfo-CI_7Dzms.js} +14 -14
- package/chunk/{StepMedicalProfessionalPersonalInfo-DmTkhQ53.js.map → StepMedicalProfessionalPersonalInfo-CI_7Dzms.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DdAMZoR4.js → StepMemberPersonalInfo-Cd0RPVNV.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-DdAMZoR4.js.map → StepMemberPersonalInfo-Cd0RPVNV.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-kLP56wMD.js → StepMemberPersonalInfo-CwHcl2Ty.js} +12 -12
- package/chunk/{StepMemberPersonalInfo-kLP56wMD.js.map → StepMemberPersonalInfo-CwHcl2Ty.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DRg8H6V5.js → StepMoverPersonalInfo-CGAK_CV6.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-DRg8H6V5.js.map → StepMoverPersonalInfo-CGAK_CV6.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-av2juK3Y.js → StepMoverPersonalInfo-CPDSrJdp.js} +9 -9
- package/chunk/{StepMoverPersonalInfo-av2juK3Y.js.map → StepMoverPersonalInfo-CPDSrJdp.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BJmKO6km.js → StepOverrideComponent-BtuHpm_2.js} +5 -5
- package/chunk/{StepOverrideComponent-BJmKO6km.js.map → StepOverrideComponent-BtuHpm_2.js.map} +1 -1
- package/chunk/{StepOverrideComponent-BWh7Kvdb.js → StepOverrideComponent-CwQGn7Yv.js} +5 -5
- package/chunk/{StepOverrideComponent-BWh7Kvdb.js.map → StepOverrideComponent-CwQGn7Yv.js.map} +1 -1
- package/chunk/{StepSMSLoop-CpmPdudZ.js → StepSMSLoop-DEag9ZvB.js} +5 -5
- package/chunk/{StepSMSLoop-CpmPdudZ.js.map → StepSMSLoop-DEag9ZvB.js.map} +1 -1
- package/chunk/{StepSMSLoop-nFs5SrLz.js → StepSMSLoop-G1SoIYmU.js} +5 -5
- package/chunk/{StepSMSLoop-nFs5SrLz.js.map → StepSMSLoop-G1SoIYmU.js.map} +1 -1
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-DfYyaa3b.js → StepSocialSecurityNumber-Btr38ojE.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-CYvW5Tln.js.map → StepSocialSecurityNumber-Btr38ojE.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-CYvW5Tln.js → StepSocialSecurityNumber-DD_i67uJ.js} +6 -6
- package/chunk/{StepSocialSecurityNumber-DfYyaa3b.js.map → StepSocialSecurityNumber-DD_i67uJ.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-C4gpjmzA.js → StepStudentPersonalInfo-B9wFVpod.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-BVx0ZTKm.js.map → StepStudentPersonalInfo-B9wFVpod.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-BVx0ZTKm.js → StepStudentPersonalInfo-DkVoGuTS.js} +13 -13
- package/chunk/{StepStudentPersonalInfo-C4gpjmzA.js.map → StepStudentPersonalInfo-DkVoGuTS.js.map} +1 -1
- package/chunk/{StepSuccess-B1fwWUTH.js → StepSuccess-BQV80RNt.js} +5 -5
- package/chunk/{StepSuccess-B1fwWUTH.js.map → StepSuccess-BQV80RNt.js.map} +1 -1
- package/chunk/{StepSuccess-DOzC5iEp.js → StepSuccess-DRmqKkYT.js} +5 -5
- package/chunk/{StepSuccess-DOzC5iEp.js.map → StepSuccess-DRmqKkYT.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-BvUK9CKn.js → StepTeacherPersonalInfo-BNeZir7M.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-BvUK9CKn.js.map → StepTeacherPersonalInfo-BNeZir7M.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-DqwafCOl.js → StepTeacherPersonalInfo-CqgXoDH-.js} +13 -13
- package/chunk/{StepTeacherPersonalInfo-DqwafCOl.js.map → StepTeacherPersonalInfo-CqgXoDH-.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-CX5nHWNH.js → TeacherSchoolComponent-B8qd4Iaz.js} +5 -5
- package/chunk/{TeacherSchoolComponent-CDgcohSA.js.map → TeacherSchoolComponent-B8qd4Iaz.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-CDgcohSA.js → TeacherSchoolComponent-CJ8trQZ9.js} +5 -5
- package/chunk/{TeacherSchoolComponent-CX5nHWNH.js.map → TeacherSchoolComponent-CJ8trQZ9.js.map} +1 -1
- package/chunk/TestingRouteOverrides-BeBP6XXB.js +4 -4
- package/chunk/TestingRouteOverrides-DmJbygl9.js +4 -4
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/{VerificationApiClient-CQz9KJfW.js → VerificationApiClient-C7JiiAjQ.js} +5 -5
- package/chunk/{VerificationApiClient-CQz9KJfW.js.map → VerificationApiClient-C7JiiAjQ.js.map} +1 -1
- package/chunk/{VerificationApiClient-CNtZ-Lkf.js → VerificationApiClient-DnRdT-2_.js} +5 -5
- package/chunk/{VerificationApiClient-CNtZ-Lkf.js.map → VerificationApiClient-DnRdT-2_.js.map} +1 -1
- package/chunk/{VerificationApiUtils-Co9fZXJN.js → VerificationApiUtils-DpU7aIdc.js} +6 -6
- package/chunk/{VerificationApiUtils-Co9fZXJN.js.map → VerificationApiUtils-DpU7aIdc.js.map} +1 -1
- package/chunk/{VerificationApiUtils-goDqByUZ.js → VerificationApiUtils-a52-Pcfc.js} +6 -6
- package/chunk/{VerificationApiUtils-goDqByUZ.js.map → VerificationApiUtils-a52-Pcfc.js.map} +1 -1
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/countryUtils-Bg9KdIbF.js +4 -4
- package/chunk/countryUtils-DuFXy-Lc.js +4 -4
- package/chunk/cs-CYGsmvju.js +4 -4
- package/chunk/da-COZWvvUD.js +4 -4
- package/chunk/de-BHclNQGr.js +4 -4
- package/chunk/{downshift.esm-DonRwYkb.js → downshift.esm-DZ7LQnkY.js} +5 -5
- package/chunk/{downshift.esm-ChiZbgHF.js.map → downshift.esm-DZ7LQnkY.js.map} +1 -1
- package/chunk/{downshift.esm-ChiZbgHF.js → downshift.esm-gk5uVfXa.js} +5 -5
- package/chunk/{downshift.esm-DonRwYkb.js.map → downshift.esm-gk5uVfXa.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/empties-1_PAn0id.js +4 -4
- package/chunk/empties-COfIPxJ5.js +4 -4
- package/chunk/en-GB-CkENrh2I.js +4 -4
- package/chunk/es-BRKAFTKN.js +4 -4
- package/chunk/es-ES-BWfAbWbQ.js +4 -4
- package/chunk/et-CxMgVbW2.js +4 -4
- package/chunk/eventEmitter-CSG6jR7V.js +4 -4
- package/chunk/fa-BEC3aNBF.js +4 -4
- package/chunk/fi-BaP3FR15.js +4 -4
- package/chunk/fr-CA-CS4SuM-m.js +4 -4
- package/chunk/fr-DSU2B7p2.js +4 -4
- package/chunk/ga-DZEr9X_A.js +4 -4
- package/chunk/hi-IN-DvBVpWNQ.js +4 -4
- package/chunk/hooks-PN48cX8E.js +4 -4
- package/chunk/hooks-XC-iN9KQ.js +4 -4
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/intl-DJeZs3uh.js +4 -4
- package/chunk/is-tpzRyIZi.js +4 -4
- package/chunk/it-C3-BupR4.js +4 -4
- package/chunk/iw-CBna3XPT.js +4 -4
- package/chunk/ja-DvXOkZRn.js +4 -4
- package/chunk/jsx-runtime-Dd4OJ9ft.js +4 -4
- package/chunk/jsx-runtime-lVLuHIkM.js +4 -4
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/militaryStepHelpers-DHTF3XjP.js +4 -4
- package/chunk/militaryStepHelpers-W31scSUE.js +4 -4
- package/chunk/mocks-D4xoUQMt.js +4 -4
- package/chunk/mocks-l2e0aaeT.js +4 -4
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/options-BK6Zk2Oe.js +4 -4
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/programThemeGetters-4Wf-YSPx.js +4 -4
- package/chunk/programThemeGetters-UDiPGnE3.js +4 -4
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/refs-B8CaE8yL.js +4 -4
- package/chunk/refs-i0Eo9ybu.js +4 -4
- package/chunk/ro-C74ZR3HS.js +4 -4
- package/chunk/ru-BA9P3RVu.js +4 -4
- package/chunk/sk-DmyizV49.js +4 -4
- package/chunk/sl-Cxm3YoWE.js +4 -4
- package/chunk/sr-gOtgEOlP.js +4 -4
- package/chunk/stepComponentHelpers-D-rc0nWU.js +4 -4
- package/chunk/stepComponentHelpers-Darhp1Nn.js +4 -4
- package/chunk/strings-DWLVdUcm.js +4 -4
- package/chunk/sv-DnCUWo1-.js +4 -4
- package/chunk/sw-BY7XXvUU.js +4 -4
- package/chunk/ta-CVL0b6Hh.js +4 -4
- package/chunk/th-CyU0RW3x.js +4 -4
- package/chunk/tl-BfgQ0irB.js +4 -4
- package/chunk/tr-BPg_L4bY.js +4 -4
- package/chunk/uk-CNaioa7V.js +4 -4
- package/chunk/ur-Ht1Mcpm0.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-CWhJOpIW.js → useCollectFieldsEndpoint-C6blU52R.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-DLjDCUM8.js.map → useCollectFieldsEndpoint-C6blU52R.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-DLjDCUM8.js → useCollectFieldsEndpoint-CdBqQs0M.js} +6 -6
- package/chunk/{useCollectFieldsEndpoint-CWhJOpIW.js.map → useCollectFieldsEndpoint-CdBqQs0M.js.map} +1 -1
- package/chunk/useMetrics-BXtJHRFy.js +4 -4
- package/chunk/useMetrics-iqbs0R1u.js +4 -4
- package/chunk/vi-sI1BYLXG.js +4 -4
- package/chunk/zh-DNG4VB8r.js +4 -4
- package/chunk/zh-HK-5Y3ROXEm.js +4 -4
- package/chunk/zu-DNMG8Idu.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +4 -4
- package/sheerid.css +4 -4
- package/sheerid.js +35 -35
- package/chunk/StepCollectMilitaryStatusComponent-C-XnGagz.js +0 -9
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { Jt as e, Ut as t } from "./intl-DJeZs3uh.js";
|
|
13
13
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
14
14
|
import { o } from "./refs-i0Eo9ybu.js";
|
|
15
15
|
import { P as s } from "../_mysheerid-preview.js";
|
|
16
|
-
import { t as c } from "./downshift.esm-
|
|
16
|
+
import { t as c } from "./downshift.esm-DZ7LQnkY.js";
|
|
17
17
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
18
18
|
var l = /* @__PURE__ */ e(r(), 1), u = a(), d = ({ getItemProps: e, getMenuProps: t, highlightedIndex: n, options: r, itemToString: a, ariaLabel: o, isOpen: c, isLoading: l = !1 }) => {
|
|
19
19
|
let d = (t, i) => /* @__PURE__ */ (0, u.jsx)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-B7Puy0kw.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;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AAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-CsonNGXC.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,GCAa,IAA6B,GAvDf,EACzB,mBACA,aACA,yBACA,WACA,gBACA,cAC4B;CAC5B,IAAM,EACJ,SAAS,GACT,iBAAiB,GACjB,eAAe,GACf,YACA,cACA,cACE,EAAqB;CASzB,OACE,iBAAA,GAAA,EAAA,KAAC,UAAD;EACE,cATc,IACd,EAAK,cAAc;GACjB,IAAI;GACJ,gBAAgB;EAClB,CAAC,IACD,EAAK,cAAc;GAAE,IAAI;GAAY,gBAAgB;EAAY,CAAC;EAKlE,iBAAe;EACf,eAAa;EACJ;EACE;EACH;EACR,WAAU;EACA;EACV,MAAK;EACL,UAAU,MAAU;GAElB,AADI,OAAO,KAAmB,cAAY,EAAe,GACrD,OAAO,KAAwB,cAAY,EAAoB,CAAK;EAC1E;YAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,SAAQ;GACR,qBAAoB;GACpB,OAAO;GACP,MAAK;GACL,QAAO;GACP,aAAY;GACZ,WAAW,IAAS,gBAAgB,KAAA;aAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;EAC1B,CAAA;CACC,CAAA;AAEZ,CAEsE,GClDhE,KAAgB,MAA4B,IAAO,EAAK,QAAQ,IAEhE,KAAiB,GAA6B,MACN,EAAQ,QACjD,MACC,CAAC,KACD,EAAO,MAAM,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,KAC5D,EAAO,MAAM,SAAS,EAAE,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,CAEpE,GA0BH,KAAe,EACnB,cACA,YACA,aACA,YACA,iBACA,cACA,YACA,cACA,aACA,gBAGA,yBAAsB,IACtB,UACA,cACA,cACA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ACX,WAAW,KAAA;CACX,aAAa;CACb,OAAO,KAAA;CACP,cAAc,KAAA;AAChB;AAEA,IAAa,IAAuB,GCjKvB,KACX,GACA,MACuB;CACvB,IAAI;CAEJ,IAAI;EACF,IAAY,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { Jt as e, Wt as t } from "./options-BK6Zk2Oe.js";
|
|
9
9
|
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-lVLuHIkM.js";
|
|
10
10
|
import { o } from "./refs-B8CaE8yL.js";
|
|
11
11
|
import { F as s } from "../sheerid.js";
|
|
12
|
-
import { t as c } from "./downshift.esm-
|
|
12
|
+
import { t as c } from "./downshift.esm-gk5uVfXa.js";
|
|
13
13
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
14
14
|
var l = /* @__PURE__ */ e(r(), 1), u = a(), d = ({ getItemProps: e, getMenuProps: t, highlightedIndex: n, options: r, itemToString: a, ariaLabel: o, isOpen: c, isLoading: l = !1 }) => {
|
|
15
15
|
let d = (t, i) => /* @__PURE__ */ (0, u.jsx)("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-B7TjFQOI.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,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Y,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-DsADBuXc.js","names":[],"sources":["../../src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.tsx","../../src/components/FormInputs/InputSelect/InputSelectComponent.tsx","../../src/lib/utils/structures/FormSelectChoice.ts"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type FormSelectChoice } from \"../../../../lib/types/types\";\nimport { LoadingSpinnerComponent } from \"../../../LoadingSpinner/LoadingSpinnerComponent\";\n\ninterface InputSelectListProps {\n getItemProps: any;\n getMenuProps: any;\n highlightedIndex: number;\n itemToString: any;\n options: FormSelectChoice[];\n ariaLabel: string;\n isOpen: boolean;\n isLoading?: boolean;\n}\n\nconst InputSelectList = ({\n getItemProps,\n getMenuProps,\n highlightedIndex,\n options,\n itemToString,\n ariaLabel,\n isOpen,\n isLoading = false,\n}: InputSelectListProps) => {\n const listItem = (item: FormSelectChoice, index: number) => (\n <div\n className={`sid-input-select-list__item ${\n highlightedIndex === index ? \"sid-input-select-list__item--highlighted\" : \"\"\n }`}\n {...getItemProps({\n item,\n index,\n key: item.value,\n })}\n >\n {itemToString(options[index])}\n </div>\n );\n\n const innerContent =\n options.length > 0 ? (\n options.map((option, index) => listItem(option, index))\n ) : (\n <div className=\"sid-input-select-list__message\">\n <FormattedHTMLMessage id=\"noOptions\" defaultMessage=\"No Options\" />\n </div>\n );\n\n return (\n <div {...getMenuProps({ \"aria-label\": ariaLabel })}>\n {isOpen ? (\n <div className=\"sid-input-select-list__menu\">\n {isLoading ? (\n <div className=\"sid-input-select-list__loading-spinner\">\n <LoadingSpinnerComponent />\n </div>\n ) : (\n innerContent\n )}\n </div>\n ) : null}\n </div>\n );\n};\n\nexport const InputSelectListComponent = InputSelectList;\n","import { injectIntl, type InjectedIntlProps } from \"react-intl\";\n\ninterface InputSelectButtonProps extends InjectedIntlProps {\n clearSelection: () => void;\n getToggleButtonProps: any;\n isOpen: boolean;\n isClearable: boolean;\n disabled?: boolean;\n}\n\nconst InputSelectButton = ({\n clearSelection,\n disabled,\n getToggleButtonProps,\n isOpen,\n isClearable,\n intl,\n}: InputSelectButtonProps) => {\n const {\n onClick: onClickToggleButton,\n \"aria-haspopup\": ariaHaspopup,\n \"data-toggle\": dataToggle,\n onKeyUp,\n onKeyDown,\n onBlur,\n } = getToggleButtonProps();\n\n const ariaLabel = isClearable\n ? intl.formatMessage({\n id: \"clearAndOpenMenu\",\n defaultMessage: \"Clear selection and open menu\",\n })\n : intl.formatMessage({ id: \"openMenu\", defaultMessage: \"Open menu\" });\n\n return (\n <button\n aria-label={ariaLabel}\n aria-haspopup={ariaHaspopup}\n data-toggle={dataToggle}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onBlur={onBlur}\n className=\"sid-input-select-button\"\n disabled={disabled}\n type=\"button\"\n onClick={(event) => {\n if (typeof clearSelection === \"function\") clearSelection();\n if (typeof onClickToggleButton === \"function\") onClickToggleButton(event);\n }}\n >\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"none\"\n width={16}\n fill=\"transparent\"\n stroke=\"#8E95A4\"\n strokeWidth=\"1.1px\"\n transform={isOpen ? \"rotate(180)\" : undefined}\n >\n <path d=\"M1,6 L10,15 L19,6\" />\n </svg>\n </button>\n );\n};\n\nexport const InputSelectButtonComponent = injectIntl(InputSelectButton);\n","import type React from \"react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useCombobox } from \"downshift\";\n\nimport {\n type FormSelectChoice,\n type InputSelectOnKeyDown,\n type FieldId,\n type ExtendedFieldId,\n} from \"../../../lib/types/types\";\nimport { setRef } from \"../../../lib/refs/refs\";\n\nimport { InputSelectListComponent } from \"./InputSelectList/InputSelectListComponent\";\nimport { InputSelectButtonComponent } from \"./InputSelectButton/InputSelectButtonComponent\";\n\nconst itemToString = (item: FormSelectChoice) => (item ? item.label : \"\");\n\nconst filterOptions = (options: FormSelectChoice[], inputValue: string): FormSelectChoice[] => {\n const filteredOptions: FormSelectChoice[] = options.filter(\n (option) =>\n !inputValue ||\n option.label.toLowerCase().includes(inputValue.toLowerCase()) ||\n option.value.toString().toLowerCase().includes(inputValue.toLowerCase()),\n );\n return filteredOptions;\n};\n\nexport interface InputSelectProps {\n onChange: any;\n options: FormSelectChoice[];\n fieldId: FieldId | ExtendedFieldId;\n fieldLabelId?: string;\n className?: string;\n disabled?: boolean;\n inputId?: string;\n isErrored?: boolean;\n onKeyDown?: InputSelectOnKeyDown;\n placeholder?: string;\n suppressPlaceholder?: boolean;\n value?: FormSelectChoice;\n autoFocus?: boolean;\n ariaLabel?: string;\n ariaDescribedBy?: string;\n isRequired?: boolean;\n isLoading?: boolean;\n buttonRef?: string;\n role?: string;\n autoComplete?: string;\n}\n\nconst InputSelect = ({\n className,\n inputId,\n disabled,\n fieldId,\n fieldLabelId,\n isErrored,\n options,\n onKeyDown,\n onChange,\n placeholder,\n // Most invokers want placeholder hidden by css, so it can be easily shown when\n // customizing the implementation. Birth date is an example of an exception.\n suppressPlaceholder = true,\n value,\n autoFocus,\n ariaLabel,\n ariaDescribedBy,\n isRequired,\n isLoading = false,\n role = \"combobox\",\n autoComplete,\n}: InputSelectProps) => {\n const [inputState, setInputState] = useState(\"\");\n const items = inputState ? filterOptions(options, inputState) : options;\n\n const {\n getInputProps,\n getItemProps,\n getMenuProps,\n getToggleButtonProps,\n highlightedIndex,\n isOpen,\n selectItem,\n } = useCombobox<FormSelectChoice>({\n id: inputId,\n items,\n onInputValueChange({ inputValue }) {\n setInputState(inputValue);\n },\n onSelectedItemChange: ({ selectedItem: newSelectedItem }) => onChange(newSelectedItem),\n itemToString,\n selectedItem: value && value.value && value.label ? value : null,\n defaultHighlightedIndex: 0,\n });\n\n const handleOnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (typeof onKeyDown === \"function\") {\n onKeyDown(event);\n }\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n // NOTE: Dependency array omitted to account for use of resetRef(), as useEffect with dep arr\n // will only trigger on initial render leaving the refs empty, this replicates prior version\n // where ref callback would trigger with each re-render\n useEffect(() => {\n setRef(fieldId, inputRef.current);\n });\n\n return (\n <div className={`sid-input-select-list ${className || \"\"}`}>\n <input\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getInputProps({\n ref: inputRef,\n onKeyDown: (event) => handleOnKeyDown(event),\n \"aria-labelledby\": fieldLabelId,\n })}\n // TODO resolve next line. Product needs this to autofocus, but linter says bad for accessibility\n // eslint-disable-next-line\n autoFocus={autoFocus}\n id={inputId}\n className={`sid-l-full-width sid-text-input ${\n suppressPlaceholder ? \"sid-hidden-placeholder\" : \"\"\n } ${isErrored ? \"sid-text-input--error\" : \"\"}`}\n disabled={disabled}\n placeholder={placeholder}\n aria-required={isRequired}\n aria-describedby={ariaDescribedBy}\n aria-invalid={isErrored}\n role={role}\n autoComplete={autoComplete}\n />\n\n <InputSelectButtonComponent\n disabled={disabled}\n getToggleButtonProps={getToggleButtonProps}\n isOpen={isOpen}\n isClearable={!!value?.value}\n clearSelection={() => selectItem(undefined)}\n />\n\n <InputSelectListComponent\n highlightedIndex={highlightedIndex}\n itemToString={itemToString}\n options={items}\n getItemProps={getItemProps}\n getMenuProps={getMenuProps}\n ariaLabel={ariaLabel}\n isOpen={isOpen}\n isLoading={isLoading}\n />\n </div>\n );\n};\n\nInputSelect.defaultProps = {\n className: undefined,\n disabled: false,\n inputId: undefined,\n isErrored: false,\n onKeyDown: undefined,\n placeholder: \"\",\n value: undefined,\n autoComplete: undefined,\n};\n\nexport const InputSelectComponent = InputSelect;\n","import { logger } from \"@jslib/shared/utils/logger\";\n\nimport { type MsgFunction } from \"@/components/Message/Message\";\nimport { type MessageId } from \"@/lib/intl/types\";\nimport { type FormSelectChoice } from \"@/lib/types/types\";\n\ntype compareLabelReturn = 1 | -1;\n\nexport const compareLabel = (\n a: FormSelectChoice<any>,\n b: FormSelectChoice<any>,\n): compareLabelReturn => {\n let sortValue: compareLabelReturn;\n\n try {\n sortValue = a.label.toUpperCase() > b.label.toUpperCase() ? 1 : -1;\n } catch (e) {\n sortValue = 1;\n }\n\n return sortValue;\n};\n\nexport const SortByLabel = (\n choices: FormSelectChoice<any, string>[],\n): FormSelectChoice<any, string>[] => choices.sort(compareLabel);\n\nexport const getFormFieldSelectOptions = (\n namespace: string,\n optionValues: string[] = [],\n msg: MsgFunction,\n): FormSelectChoice<string, string>[] => {\n const options: FormSelectChoice<string, string>[] = [];\n const omittedOptions: string[] = [];\n\n optionValues.forEach((value) => {\n if (typeof value === \"undefined\") return omittedOptions.push(\"undefined\");\n if (!value) return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"number\") return omittedOptions.push(JSON.stringify(value));\n if (typeof value === \"string\" && !value.trim())\n return omittedOptions.push(JSON.stringify(value));\n\n options.push({ value, label: msg({ id: `${namespace}.${value}` as MessageId }) });\n });\n\n if (omittedOptions.length > 0) {\n logger.warn(\n `FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${\n omittedOptions.length\n }): ${omittedOptions.join(\", \")}`,\n );\n }\n\n return options;\n};\n"],"mappings":";;;;;;4CAmEA,KAnDA,EAAA,iBAAA,iBAAA,qBAAA,YAAA,iBAAA,cAAA,WAAA,eAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,GCAa,IAA6B,GAvDf,EACzB,mBACA,aACA,yBACA,WACA,gBACA,cAC4B;CAC5B,IAAM,EACJ,SAAS,GACT,iBAAiB,GACjB,eAAe,GACf,YACA,cACA,cACE,EAAqB;CASzB,OACE,iBAAA,GAAA,EAAA,KAAC,UAAD;EACE,cATc,IACd,EAAK,cAAc;GACjB,IAAI;GACJ,gBAAgB;EAClB,CAAC,IACD,EAAK,cAAc;GAAE,IAAI;GAAY,gBAAgB;EAAY,CAAC;EAKlE,iBAAe;EACf,eAAa;EACJ;EACE;EACH;EACR,WAAU;EACA;EACV,MAAK;EACL,UAAU,MAAU;GAElB,AADI,OAAO,KAAmB,cAAY,EAAe,GACrD,OAAO,KAAwB,cAAY,EAAoB,CAAK;EAC1E;YAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;GACE,SAAQ;GACR,qBAAoB;GACpB,OAAO;GACP,MAAK;GACL,QAAO;GACP,aAAY;GACZ,WAAW,IAAS,gBAAgB,KAAA;aAEpC,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,GAAE,oBAAqB,CAAA;EAC1B,CAAA;CACC,CAAA;AAEZ,CAEsE,GClDhE,KAAgB,MAA4B,IAAO,EAAK,QAAQ,IAEhE,KAAiB,GAA6B,MACN,EAAQ,QACjD,MACC,CAAC,KACD,EAAO,MAAM,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,KAC5D,EAAO,MAAM,SAAS,EAAE,YAAY,EAAE,SAAS,EAAW,YAAY,CAAC,CAEpE,GA0BH,KAAe,EACnB,cACA,YACA,aACA,YACA,iBACA,cACA,YACA,cACA,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CACX,UAAU;CACV,SAAS,KAAA;CACT,WAAW;CACX,WAAW,KAAA;CACX,aAAa;CACb,OAAO,KAAA;CACP,cAAc,KAAA;AAChB;AAEA,IAAa,IAAuB,GCjKvB,KACX,GACA,MACuB;CACvB,IAAI;CAEJ,IAAI;EACF,IAAY,EAAE,MAAM,YAAY,IAAI,EAAE,MAAM,YAAY,IAAI,IAAI;CAClE,QAAY;EACV,IAAY;CACd;CAEA,OAAO;AACT,GAEa,KACX,MACoC,EAAQ,KAAK,CAAY,GAElD,KACX,GACA,IAAyB,CAAC,GAC1B,MACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { Jt as e } from "./options-BK6Zk2Oe.js";
|
|
9
9
|
import { c as t, t as n } from "./jsx-runtime-lVLuHIkM.js";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { Jt as e } from "./intl-DJeZs3uh.js";
|
|
13
13
|
import { c as t, t as n } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
13
13
|
import { c as r } from "./programThemeGetters-UDiPGnE3.js";
|
|
14
14
|
import { u as i } from "./stepComponentHelpers-D-rc0nWU.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-Ch4Umrsi.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-D4Sagn1a.js","names":[],"sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"licensed-professional\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({\n id: \"organizationNamePlaceholder\",\n defaultMessage: \"Organization\",\n })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n disabled={disabled}\n />\n );\n};\n\nexport const LicensedProfessionalOrganizationComponent = injectIntl(\n LicensedProfessionalOrganization,\n);\n"],"mappings":";;;;;aA2Da,IAA4C,GA/CR,EAC/C,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EACrB,IAAI;EACJ,gBAAgB;CAClB,CAAC;CAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAgB,CAAA;CAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CACrB;AACX,CAAA,CAML"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-lVLuHIkM.js";
|
|
9
9
|
import { c as r } from "./programThemeGetters-4Wf-YSPx.js";
|
|
10
10
|
import { u as i } from "./stepComponentHelpers-Darhp1Nn.js";
|
|
11
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
11
|
+
import { t as a } from "./FormFieldTypeahead-CFIqaT0L.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-Uz8NEeW_.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,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { n as e, t } from "./jsx-runtime-lVLuHIkM.js";
|
|
9
9
|
import { a as n } from "./programThemeGetters-4Wf-YSPx.js";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { n as e, t } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
13
13
|
import { a as n } from "./programThemeGetters-UDiPGnE3.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { Jt as e, Wt as t, c as n } from "./options-BK6Zk2Oe.js";
|
|
9
9
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-lVLuHIkM.js";
|
|
10
|
-
import { a as s } from "./VerificationApiClient-
|
|
10
|
+
import { a as s } from "./VerificationApiClient-C7JiiAjQ.js";
|
|
11
11
|
import { c, f as l } from "./programThemeGetters-4Wf-YSPx.js";
|
|
12
12
|
import { F as u } from "../sheerid.js";
|
|
13
13
|
import { g as d, u as f } from "./stepComponentHelpers-Darhp1Nn.js";
|
|
14
14
|
import { t as p } from "./FormFieldText-Qen7EAhG.js";
|
|
15
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
16
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as m } from "./FormFieldInputSelect-Bn2qb48l.js";
|
|
16
|
+
import { t as h } from "./FormFieldTypeahead-CFIqaT0L.js";
|
|
17
17
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
18
18
|
var g = o(), _ = r(({ value: e, isErrored: t, onChange: n, intl: r, placeholder: i = "", disabled: o = !1 }) => f("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
19
19
|
fieldId: "ebtCardNumber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-DndwIJNB.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,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B,CAAC;EAEH,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAEH,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGO;EACZ,6BAA6B,CAAC,CAAC;EAC/B,SAAS;EACT,aAAY;EACF;CACX,CAAA,IAED,iBAAA,GAAA,EAAA,KAAC,GAAD,CAA0B,CAAA;AAE9B,CAE8E"}
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { Jt as e, Ut as t, p as n } from "./intl-DJeZs3uh.js";
|
|
13
13
|
import { a as r, c as i, n as a, t as o } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
14
|
-
import { a as s } from "./VerificationApiClient-
|
|
14
|
+
import { a as s } from "./VerificationApiClient-DnRdT-2_.js";
|
|
15
15
|
import { c, f as l } from "./programThemeGetters-UDiPGnE3.js";
|
|
16
16
|
import { P as u } from "../_mysheerid-preview.js";
|
|
17
17
|
import { g as d, u as f } from "./stepComponentHelpers-D-rc0nWU.js";
|
|
18
18
|
import { t as p } from "./FormFieldText-hh7QLPOB.js";
|
|
19
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
20
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
19
|
+
import { t as m } from "./FormFieldInputSelect-FWr7I81-.js";
|
|
20
|
+
import { t as h } from "./FormFieldTypeahead-Ch4Umrsi.js";
|
|
21
21
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
22
22
|
var g = o(), _ = r(({ value: e, isErrored: t, onChange: n, intl: r, placeholder: i = "", disabled: o = !1 }) => f("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
23
23
|
fieldId: "ebtCardNumber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-xLgUIxoz.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,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ACX,CAAA,IAED,iBAAA,GAAA,EAAA,KAAC,GAAD,CAA0B,CAAA;AAE9B,CAE8E"}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
13
13
|
import { c as r } from "./programThemeGetters-UDiPGnE3.js";
|
|
14
14
|
import { u as i } from "./stepComponentHelpers-D-rc0nWU.js";
|
|
15
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
15
|
+
import { t as a } from "./FormFieldTypeahead-Ch4Umrsi.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-D0Nadvrg.js","names":[],"sources":["../../src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage, injectIntl } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"../../../lib/types/types\";\nimport { FormFieldTypeahead } from \"../FormFieldTypeahead/FormFieldTypeahead\";\nimport { getOrgSearchUrl } from \"../../../lib/ProgramTheme/programThemeGetters\";\n\nexport const MedicalProfessionalOrganization = ({\n value,\n isErrored,\n onChange,\n verificationService,\n intl,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const isFieldHidden = getFieldConfigByFieldId(\"organization\")?.hidden;\n\n if (isFieldHidden) {\n return null;\n }\n\n return (\n <FormFieldTypeahead\n fieldId=\"medical-professional-organization\"\n value={value}\n verificationService={verificationService}\n onChange={(choice: Organization) => onChange(choice)}\n placeholder={\n placeholder ||\n intl.formatHTMLMessage({ id: \"organizationPlaceholder\", defaultMessage: \"Organization\" })\n }\n label={<FormattedHTMLMessage id=\"organization\" defaultMessage=\"Organization\" />}\n errorMessage={\n isErrored && (\n <FormattedHTMLMessage\n id=\"errorId.invalidOrganization\"\n defaultMessage=\"You must select an organization from the list\"\n />\n )\n }\n orgSearchUrl={getOrgSearchUrl(\n verificationService.viewModel,\n verificationService.programTheme,\n )}\n showPlaceholderAndHideLabel={!!placeholder}\n isRequired\n disabled={disabled}\n />\n );\n};\n\nexport const MedicalProfessionalOrganizationComponent = injectIntl(MedicalProfessionalOrganization);\n"],"mappings":";;;;;aAyDa,IAA2C,GA7CR,EAC9C,UACA,cACA,aACA,wBACA,SACA,iBAAc,IACd,cAAW,SAEW,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;CACE,SAAQ;CACD;CACc;CACrB,WAAW,MAAyB,EAAS,CAAM;CACnD,aACE,KACA,EAAK,kBAAkB;EAAE,IAAI;EAA2B,gBAAgB;CAAe,CAAC;CAE1F,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAsB,IAAG;EAAe,gBAAe;CAAgB,CAAA;CAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,IAAG;EACH,gBAAe;CAChB,CAAA;CAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;CACA,6BAA6B,CAAC,CAAC;CAC/B,YAAA;CACU;AACX,CAAA,CAI6F"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-lVLuHIkM.js";
|
|
9
9
|
import { c as r } from "./programThemeGetters-4Wf-YSPx.js";
|
|
10
10
|
import { u as i } from "./stepComponentHelpers-Darhp1Nn.js";
|
|
11
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
11
|
+
import { t as a } from "./FormFieldTypeahead-CFIqaT0L.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-DJL7NwLH.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,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.270.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1786662856795
|
|
9
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:16 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
11
11
|
*/
|
|
12
12
|
import { a as e, n as t, t as n } from "./jsx-runtime-Dd4OJ9ft.js";
|
|
13
13
|
import { u as r } from "./stepComponentHelpers-D-rc0nWU.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.270.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1786662852627
|
|
5
|
+
* BUILD_DATE: Thu Aug 13 2026 23:14:12 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: aa4410f82063b4cb46d27c271a5bfda88803b4a6
|
|
7
7
|
*/
|
|
8
8
|
import { a as e, n as t, t as n } from "./jsx-runtime-lVLuHIkM.js";
|
|
9
9
|
import { u as r } from "./stepComponentHelpers-Darhp1Nn.js";
|