@sheerid/jslib 2.278.0 → 2.280.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 +808 -809
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/{AddressComponent-LZTJCC-l.js → AddressComponent-Dt6V7nTl.js} +8 -8
- package/chunk/{AddressComponent-CaMRwh5O.js.map → AddressComponent-Dt6V7nTl.js.map} +1 -1
- package/chunk/{AddressComponent-CaMRwh5O.js → AddressComponent-jYt6u6Og.js} +8 -8
- package/chunk/{AddressComponent-LZTJCC-l.js.map → AddressComponent-jYt6u6Og.js.map} +1 -1
- package/chunk/{AnnouncingHeader-YPjBYzsZ.js → AnnouncingHeader-DXfeQFzD.js} +6 -6
- package/chunk/{AnnouncingHeader-CCVSQeQR.js.map → AnnouncingHeader-DXfeQFzD.js.map} +1 -1
- package/chunk/{AnnouncingHeader-CCVSQeQR.js → AnnouncingHeader-DgKb4Oci.js} +6 -6
- package/chunk/{AnnouncingHeader-YPjBYzsZ.js.map → AnnouncingHeader-DgKb4Oci.js.map} +1 -1
- package/chunk/{ApiUrls-_Hc7S_uv.js → ApiUrls-DU5mINxc.js} +13 -13
- package/chunk/{ApiUrls-_Hc7S_uv.js.map → ApiUrls-DU5mINxc.js.map} +1 -1
- package/chunk/{ApiUrls-DRCiQtw6.js → ApiUrls-iC5Epdhr.js} +13 -13
- package/chunk/{ApiUrls-DRCiQtw6.js.map → ApiUrls-iC5Epdhr.js.map} +1 -1
- package/chunk/{BirthDateComponent-CAQJ-IWM.js → BirthDateComponent-C31Jxnf9.js} +8 -8
- package/chunk/{BirthDateComponent-CAQJ-IWM.js.map → BirthDateComponent-C31Jxnf9.js.map} +1 -1
- package/chunk/{BirthDateComponent-_BjsBSM4.js → BirthDateComponent-J3GXZush.js} +8 -8
- package/chunk/{BirthDateComponent-_BjsBSM4.js.map → BirthDateComponent-J3GXZush.js.map} +1 -1
- package/chunk/{CaptchaComponent-D2OIvL-b.js → CaptchaComponent-BrH791mU.js} +143 -143
- package/chunk/{CaptchaComponent-BqREyMje.js.map → CaptchaComponent-BrH791mU.js.map} +1 -1
- package/chunk/{CaptchaComponent-BqREyMje.js → CaptchaComponent-D3gR_wiv.js} +131 -131
- package/chunk/{CaptchaComponent-D2OIvL-b.js.map → CaptchaComponent-D3gR_wiv.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-BvnXlDa-.js → ChangeLocaleComponent-4lrBj9C8.js} +63 -62
- package/chunk/{ChangeLocaleComponent-BvnXlDa-.js.map → ChangeLocaleComponent-4lrBj9C8.js.map} +1 -1
- package/chunk/{ChangeLocaleComponent-CpHB_D8Q.js → ChangeLocaleComponent-mFvHcArW.js} +63 -62
- package/chunk/{ChangeLocaleComponent-CpHB_D8Q.js.map → ChangeLocaleComponent-mFvHcArW.js.map} +1 -1
- package/chunk/{City-B6bQRRvQ.js → City-4Y-JSMns.js} +8 -8
- package/chunk/{City-B6bQRRvQ.js.map → City-4Y-JSMns.js.map} +1 -1
- package/chunk/{City-CCBan228.js → City-C9ODgW6J.js} +8 -8
- package/chunk/{City-CCBan228.js.map → City-C9ODgW6J.js.map} +1 -1
- package/chunk/{CollegeNameComponent-BbxIOfzR.js → CollegeNameComponent-Bx67cbxR.js} +9 -9
- package/chunk/{CollegeNameComponent-BbxIOfzR.js.map → CollegeNameComponent-Bx67cbxR.js.map} +1 -1
- package/chunk/{CollegeNameComponent-CEJO0-bq.js → CollegeNameComponent-DERbwtnk.js} +9 -9
- package/chunk/{CollegeNameComponent-CEJO0-bq.js.map → CollegeNameComponent-DERbwtnk.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-DGi3bxV2.js → CopyToClipboardComponent-B1sjjnah.js} +9 -9
- package/chunk/{CopyToClipboardComponent-DGi3bxV2.js.map → CopyToClipboardComponent-B1sjjnah.js.map} +1 -1
- package/chunk/{CopyToClipboardComponent-cLuyXFes.js → CopyToClipboardComponent-kC3bs3Rs.js} +9 -9
- package/chunk/{CopyToClipboardComponent-cLuyXFes.js.map → CopyToClipboardComponent-kC3bs3Rs.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-CW4yj9IF.js → CountryComponentWrapper-CR9HrOiD.js} +16 -16
- package/chunk/{CountryComponentWrapper-BNtvUusJ.js.map → CountryComponentWrapper-CR9HrOiD.js.map} +1 -1
- package/chunk/{CountryComponentWrapper-BNtvUusJ.js → CountryComponentWrapper-Dp_Lw4Jz.js} +16 -16
- package/chunk/{CountryComponentWrapper-CW4yj9IF.js.map → CountryComponentWrapper-Dp_Lw4Jz.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CNaz5UZP.js → DischargeDateComponent-CVzCNByg.js} +20 -21
- package/chunk/{DischargeDateComponent-CNaz5UZP.js.map → DischargeDateComponent-CVzCNByg.js.map} +1 -1
- package/chunk/{DischargeDateComponent-tTwN3FLy.js → DischargeDateComponent-CwuBWpWv.js} +17 -18
- package/chunk/{DischargeDateComponent-tTwN3FLy.js.map → DischargeDateComponent-CwuBWpWv.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-vsVldXkA.js → DriverLicenseNumberComponent-Bc6KjLgw.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-B5_svahy.js.map → DriverLicenseNumberComponent-Bc6KjLgw.js.map} +1 -1
- package/chunk/{DriverLicenseNumberComponent-B5_svahy.js → DriverLicenseNumberComponent-Dc0IOI_1.js} +8 -8
- package/chunk/{DriverLicenseNumberComponent-vsVldXkA.js.map → DriverLicenseNumberComponent-Dc0IOI_1.js.map} +1 -1
- package/chunk/{EmailLoopPending-DNFHR6Ck.js → EmailLoopPending-CgRp0qIE.js} +44 -53
- package/chunk/EmailLoopPending-CgRp0qIE.js.map +1 -0
- package/chunk/{EmailLoopPending-CYCQv7pW.js → EmailLoopPending-k272doKR.js} +45 -54
- package/chunk/EmailLoopPending-k272doKR.js.map +1 -0
- package/chunk/{ExtraMessage-Byw0Tgm1.js → ExtraMessage-BqOf0zRz.js} +7 -7
- package/chunk/{ExtraMessage-Byw0Tgm1.js.map → ExtraMessage-BqOf0zRz.js.map} +1 -1
- package/chunk/{ExtraMessage-g4LSV-H2.js → ExtraMessage-DNaGfjEE.js} +7 -7
- package/chunk/{ExtraMessage-g4LSV-H2.js.map → ExtraMessage-DNaGfjEE.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-DVF6aC7P.js → FirstResponderOrganizationComponent-C4O8PWXy.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-BtIXngo4.js.map → FirstResponderOrganizationComponent-C4O8PWXy.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BtIXngo4.js → FirstResponderOrganizationComponent-CmNIF2iC.js} +9 -9
- package/chunk/{FirstResponderOrganizationComponent-DVF6aC7P.js.map → FirstResponderOrganizationComponent-CmNIF2iC.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-D1aFx17c.js → FormFieldInputSelect-BaYOGEm0.js} +7 -7
- package/chunk/{FormFieldInputSelect-D1aFx17c.js.map → FormFieldInputSelect-BaYOGEm0.js.map} +1 -1
- package/chunk/{FormFieldInputSelect-ie6Vx1Bx.js → FormFieldInputSelect-DDcenZW0.js} +7 -7
- package/chunk/{FormFieldInputSelect-ie6Vx1Bx.js.map → FormFieldInputSelect-DDcenZW0.js.map} +1 -1
- package/chunk/{FormFieldLayout-C4SCdGBC.js → FormFieldLayout-B0rAKucV.js} +6 -6
- package/chunk/{FormFieldLayout-C4SCdGBC.js.map → FormFieldLayout-B0rAKucV.js.map} +1 -1
- package/chunk/{FormFieldLayout-Cj_v9kYa.js → FormFieldLayout-CRoiILDA.js} +6 -6
- package/chunk/{FormFieldLayout-Cj_v9kYa.js.map → FormFieldLayout-CRoiILDA.js.map} +1 -1
- package/chunk/{FormFieldText-BbdrtNh_.js → FormFieldText-4HZU3C1Z.js} +7 -7
- package/chunk/{FormFieldText-BbdrtNh_.js.map → FormFieldText-4HZU3C1Z.js.map} +1 -1
- package/chunk/{FormFieldText-Gf13Luq7.js → FormFieldText-hOha2vTr.js} +7 -7
- package/chunk/{FormFieldText-Gf13Luq7.js.map → FormFieldText-hOha2vTr.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-DQEez7ko.js → FormFieldTypeahead-BCZ6Nsns.js} +141 -142
- package/chunk/{FormFieldTypeahead-uKX8ZHqO.js.map → FormFieldTypeahead-BCZ6Nsns.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-uKX8ZHqO.js → FormFieldTypeahead-Cv1WXfhF.js} +132 -133
- package/chunk/{FormFieldTypeahead-DQEez7ko.js.map → FormFieldTypeahead-Cv1WXfhF.js.map} +1 -1
- package/chunk/{FormFooterComponent-BHQc5VBK.js → FormFooterComponent-D9mEMiRZ.js} +515 -520
- package/chunk/FormFooterComponent-D9mEMiRZ.js.map +1 -0
- package/chunk/{FormFooterComponent-CAoH3NjO.js → FormFooterComponent-oaSe-Xzj.js} +468 -473
- package/chunk/FormFooterComponent-oaSe-Xzj.js.map +1 -0
- package/chunk/{FormSelectChoice-DjcUTWnw.js → FormSelectChoice-C8zbGNXM.js} +16 -16
- package/chunk/{FormSelectChoice-Cm99LmoK.js.map → FormSelectChoice-C8zbGNXM.js.map} +1 -1
- package/chunk/{FormSelectChoice-Cm99LmoK.js → FormSelectChoice-DhgV7HJV.js} +16 -16
- package/chunk/{FormSelectChoice-DjcUTWnw.js.map → FormSelectChoice-DhgV7HJV.js.map} +1 -1
- package/chunk/{InputText-BXPuBlPq.js → InputText-BZv5j2AC.js} +7 -7
- package/chunk/{InputText-BXPuBlPq.js.map → InputText-BZv5j2AC.js.map} +1 -1
- package/chunk/{InputText-h_myNeHr.js → InputText-CeC4vzEI.js} +7 -7
- package/chunk/{InputText-h_myNeHr.js.map → InputText-CeC4vzEI.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-BHrQmG_W.js → LicensedProfessionalOrganizationComponent-BXcQ9OAk.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-BHrQmG_W.js.map → LicensedProfessionalOrganizationComponent-BXcQ9OAk.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-DMdDUhnU.js → LicensedProfessionalOrganizationComponent-BY-_49Un.js} +9 -9
- package/chunk/{LicensedProfessionalOrganizationComponent-DMdDUhnU.js.map → LicensedProfessionalOrganizationComponent-BY-_49Un.js.map} +1 -1
- package/chunk/{LogoComponent-Do8K5ydz.js → LogoComponent-DIcMbBgg.js} +6 -6
- package/chunk/{LogoComponent-Do8K5ydz.js.map → LogoComponent-DIcMbBgg.js.map} +1 -1
- package/chunk/{LogoComponent-Dx1G-rzE.js → LogoComponent-U1dLeCEh.js} +6 -6
- package/chunk/{LogoComponent-Dx1G-rzE.js.map → LogoComponent-U1dLeCEh.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-DLxB_wnC.js → LowIncomeOrganizationComponent-BRvt-ulP.js} +21 -22
- package/chunk/{LowIncomeOrganizationComponent-DLxB_wnC.js.map → LowIncomeOrganizationComponent-BRvt-ulP.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CZnbIM2h.js → LowIncomeOrganizationComponent-DGK9gkyA.js} +21 -22
- package/chunk/{LowIncomeOrganizationComponent-CZnbIM2h.js.map → LowIncomeOrganizationComponent-DGK9gkyA.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-t-k48G10.js → MedicalProfessionalOrganizationComponent-CTJ3FmrY.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-t-k48G10.js.map → MedicalProfessionalOrganizationComponent-CTJ3FmrY.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-CozwSmoI.js → MedicalProfessionalOrganizationComponent-DH5zW7H6.js} +9 -9
- package/chunk/{MedicalProfessionalOrganizationComponent-CozwSmoI.js.map → MedicalProfessionalOrganizationComponent-DH5zW7H6.js.map} +1 -1
- package/chunk/{MemberIdComponent-CYqH9MG5.js → MemberIdComponent-BAFAN1PO.js} +8 -8
- package/chunk/{MemberIdComponent-BzUuPdSk.js.map → MemberIdComponent-BAFAN1PO.js.map} +1 -1
- package/chunk/{MemberIdComponent-BzUuPdSk.js → MemberIdComponent-DFE0KKa8.js} +8 -8
- package/chunk/{MemberIdComponent-CYqH9MG5.js.map → MemberIdComponent-DFE0KKa8.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Bbu2i3Dm.js → MembershipOrganizationComponent-Bqfrzd_X.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-BPQ27RX9.js.map → MembershipOrganizationComponent-Bqfrzd_X.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-BPQ27RX9.js → MembershipOrganizationComponent-CmgEVqRQ.js} +9 -9
- package/chunk/{MembershipOrganizationComponent-Bbu2i3Dm.js.map → MembershipOrganizationComponent-CmgEVqRQ.js.map} +1 -1
- package/chunk/{Message-BK3a2RyH.js → Message-8LvAVwXZ.js} +3831 -2389
- package/chunk/Message-8LvAVwXZ.js.map +1 -0
- package/chunk/{Message-CSa2etjX.js → Message-C8ZwB4H_.js} +3934 -2476
- package/chunk/Message-C8ZwB4H_.js.map +1 -0
- package/chunk/Onfido-CTCgAwnB.js +4 -4
- package/chunk/{PersonalInfoStepSubmitButton-VxT_vwVv.js → PersonalInfoStepSubmitButton-CaE4yvTG.js} +18 -18
- package/chunk/PersonalInfoStepSubmitButton-CaE4yvTG.js.map +1 -0
- package/chunk/{PersonalInfoStepSubmitButton-BcdQUzMO.js → PersonalInfoStepSubmitButton-huS5DiV5.js} +18 -18
- package/chunk/PersonalInfoStepSubmitButton-huS5DiV5.js.map +1 -0
- package/chunk/{PersonalInfoStepWrapper-CxRB64LQ.js → PersonalInfoStepWrapper-CoL68lv9.js} +20 -20
- package/chunk/{PersonalInfoStepWrapper-CxRB64LQ.js.map → PersonalInfoStepWrapper-CoL68lv9.js.map} +1 -1
- package/chunk/{PersonalInfoStepWrapper-BHS3GKl7.js → PersonalInfoStepWrapper-D6RA9ErC.js} +7 -7
- package/chunk/{PersonalInfoStepWrapper-BHS3GKl7.js.map → PersonalInfoStepWrapper-D6RA9ErC.js.map} +1 -1
- package/chunk/{PostalCodeComponent-jmSOU3LM.js → PostalCodeComponent-BJJkLSwH.js} +8 -8
- package/chunk/{PostalCodeComponent-CKbC80_m.js.map → PostalCodeComponent-BJJkLSwH.js.map} +1 -1
- package/chunk/{PostalCodeComponent-CKbC80_m.js → PostalCodeComponent-gktdA05J.js} +8 -8
- package/chunk/{PostalCodeComponent-jmSOU3LM.js.map → PostalCodeComponent-gktdA05J.js.map} +1 -1
- package/chunk/{SSN-DNVykxAU.js → SSN-D32o5tdz.js} +9 -9
- package/chunk/{SSN-DHAzpgQK.js.map → SSN-D32o5tdz.js.map} +1 -1
- package/chunk/{SSN-DHAzpgQK.js → SSN-RI7wGUeN.js} +9 -9
- package/chunk/{SSN-DNVykxAU.js.map → SSN-RI7wGUeN.js.map} +1 -1
- package/chunk/{StateSelectComponent-B7Cp6ANo.js → StateSelectComponent-CUkPmdgD.js} +7 -7
- package/chunk/{StateSelectComponent-B5lHw2N5.js.map → StateSelectComponent-CUkPmdgD.js.map} +1 -1
- package/chunk/{StateSelectComponent-B5lHw2N5.js → StateSelectComponent-IqnD_yvb.js} +7 -7
- package/chunk/{StateSelectComponent-B7Cp6ANo.js.map → StateSelectComponent-IqnD_yvb.js.map} +1 -1
- package/chunk/{StatusComponent-CrGh5fqB.js → StatusComponent-B9rfe8oP.js} +8 -8
- package/chunk/{StatusComponent-CrGh5fqB.js.map → StatusComponent-B9rfe8oP.js.map} +1 -1
- package/chunk/{StatusComponent-CyX5COrt.js → StatusComponent-Domycxys.js} +8 -8
- package/chunk/{StatusComponent-CyX5COrt.js.map → StatusComponent-Domycxys.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-CkvJUnK6.js +174 -0
- package/chunk/{StepAgePersonalInfo-BswIeVCd.js.map → StepAgePersonalInfo-CkvJUnK6.js.map} +1 -1
- package/chunk/StepAgePersonalInfo-DYee4Bdk.js +170 -0
- package/chunk/{StepAgePersonalInfo-CHBH5ROm.js.map → StepAgePersonalInfo-DYee4Bdk.js.map} +1 -1
- package/chunk/{StepCard-CWT2BiAH.js → StepCard-BgkQO1Vv.js} +5 -5
- package/chunk/{StepCard-B0o7IN6g.js.map → StepCard-BgkQO1Vv.js.map} +1 -1
- package/chunk/{StepCard-B0o7IN6g.js → StepCard-CdjikmfN.js} +5 -5
- package/chunk/{StepCard-CWT2BiAH.js.map → StepCard-CdjikmfN.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-D8IjgFjI.js → StepCollectIdentifier-CZPgIiri.js} +9 -9
- package/chunk/{StepCollectIdentifier-D8IjgFjI.js.map → StepCollectIdentifier-CZPgIiri.js.map} +1 -1
- package/chunk/{StepCollectIdentifier-dPXJHRwi.js → StepCollectIdentifier-z7v0uFVo.js} +9 -9
- package/chunk/{StepCollectIdentifier-dPXJHRwi.js.map → StepCollectIdentifier-z7v0uFVo.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-nUcsuObN.js → StepCollectMilitaryPersonalInfoComponent-aLezCfcI.js} +62 -62
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-BanhTbjr.js.map → StepCollectMilitaryPersonalInfoComponent-aLezCfcI.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-BanhTbjr.js → StepCollectMilitaryPersonalInfoComponent-eHNUb4js.js} +62 -62
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-nUcsuObN.js.map → StepCollectMilitaryPersonalInfoComponent-eHNUb4js.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-BH2TbclC.js +372 -0
- package/chunk/{StepCollectPersonalInfo-BvBAA_0_.js.map → StepCollectPersonalInfo-BH2TbclC.js.map} +1 -1
- package/chunk/StepCollectPersonalInfo-mmn3gr1x.js +368 -0
- package/chunk/{StepCollectPersonalInfo-BLClPcAC.js.map → StepCollectPersonalInfo-mmn3gr1x.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-D7NH3MFa.js → StepCompleteAuthentication-aZqH2zX2.js} +21 -21
- package/chunk/{StepCompleteAuthentication-D7NH3MFa.js.map → StepCompleteAuthentication-aZqH2zX2.js.map} +1 -1
- package/chunk/{StepCompleteAuthentication-Cnv_QzG7.js → StepCompleteAuthentication-wMkyc86t.js} +21 -21
- package/chunk/{StepCompleteAuthentication-Cnv_QzG7.js.map → StepCompleteAuthentication-wMkyc86t.js.map} +1 -1
- package/chunk/{StepConsolation-CKbOj-OW.js → StepConsolation-DRnpaPIB.js} +9 -9
- package/chunk/{StepConsolation-CKbOj-OW.js.map → StepConsolation-DRnpaPIB.js.map} +1 -1
- package/chunk/{StepConsolation-qvCq7iMz.js → StepConsolation-Dv1D8Kkg.js} +9 -9
- package/chunk/{StepConsolation-qvCq7iMz.js.map → StepConsolation-Dv1D8Kkg.js.map} +1 -1
- package/chunk/{StepDocUpload-hbZjFKLA.js → StepDocUpload-CyqOFprF.js} +742 -745
- package/chunk/{StepDocUpload-CelPrD2S.js.map → StepDocUpload-CyqOFprF.js.map} +1 -1
- package/chunk/{StepDocUpload-CelPrD2S.js → StepDocUpload-DALptUyS.js} +628 -631
- package/chunk/{StepDocUpload-hbZjFKLA.js.map → StepDocUpload-DALptUyS.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-DeMFZtEJ.js → StepDriverLicensePersonalInfoComponent-BxHNa8Y6.js} +32 -32
- package/chunk/{StepDriverLicensePersonalInfoComponent-DeMFZtEJ.js.map → StepDriverLicensePersonalInfoComponent-BxHNa8Y6.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-Dz5hU0Hz.js → StepDriverLicensePersonalInfoComponent-vwgnq6DB.js} +32 -32
- package/chunk/{StepDriverLicensePersonalInfoComponent-Dz5hU0Hz.js.map → StepDriverLicensePersonalInfoComponent-vwgnq6DB.js.map} +1 -1
- package/chunk/{StepEmailLoop-DnFBaEUV.js → StepEmailLoop-BEIC15oF.js} +59 -59
- package/chunk/{StepEmailLoop-B_D0MzXV.js.map → StepEmailLoop-BEIC15oF.js.map} +1 -1
- package/chunk/{StepEmailLoop-B_D0MzXV.js → StepEmailLoop-CDFx1DYG.js} +59 -59
- package/chunk/{StepEmailLoop-DnFBaEUV.js.map → StepEmailLoop-CDFx1DYG.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CWyReZIX.js → StepEmploymentPersonalInfo-BdPNUH_U.js} +49 -49
- package/chunk/{StepEmploymentPersonalInfo-D6wk7BPP.js.map → StepEmploymentPersonalInfo-BdPNUH_U.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-D6wk7BPP.js → StepEmploymentPersonalInfo-WW3m6eci.js} +49 -49
- package/chunk/{StepEmploymentPersonalInfo-CWyReZIX.js.map → StepEmploymentPersonalInfo-WW3m6eci.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-BEYQjJZE.js → StepFirstResponderPersonalInfo-CtkSlAqn.js} +50 -50
- package/chunk/{StepFirstResponderPersonalInfo-BEYQjJZE.js.map → StepFirstResponderPersonalInfo-CtkSlAqn.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-WFafxPno.js → StepFirstResponderPersonalInfo-duACveZS.js} +47 -47
- package/chunk/{StepFirstResponderPersonalInfo-WFafxPno.js.map → StepFirstResponderPersonalInfo-duACveZS.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CO2Kb2oA.js → StepGeneralIdentityPersonalInfoComponent-BsZXHtwX.js} +41 -41
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-CO2Kb2oA.js.map → StepGeneralIdentityPersonalInfoComponent-BsZXHtwX.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cu_uA-EX.js → StepGeneralIdentityPersonalInfoComponent-D9svwHkN.js} +41 -41
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-Cu_uA-EX.js.map → StepGeneralIdentityPersonalInfoComponent-D9svwHkN.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DjYZWEyO.js → StepHybridIdentityPersonalInfoComponent-BBXGkQ13.js} +44 -44
- package/chunk/{StepHybridIdentityPersonalInfoComponent-DjYZWEyO.js.map → StepHybridIdentityPersonalInfoComponent-BBXGkQ13.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dnr2P36W.js → StepHybridIdentityPersonalInfoComponent-ClebDHVj.js} +44 -44
- package/chunk/{StepHybridIdentityPersonalInfoComponent-Dnr2P36W.js.map → StepHybridIdentityPersonalInfoComponent-ClebDHVj.js.map} +1 -1
- package/chunk/StepIDCheckLoop-B1ZBa2cL.js +24 -0
- package/chunk/{StepIDCheckLoop-3dEcYNM-.js.map → StepIDCheckLoop-B1ZBa2cL.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-ADjD8T7n.js → StepIDCheckLoop-DYhoRoFm.js} +8 -8
- package/chunk/{StepIDCheckLoop-ADjD8T7n.js.map → StepIDCheckLoop-DYhoRoFm.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-DFITsdwV.js → StepIDCheckLoopOnfido-XnkRtW2L.js} +129 -130
- package/chunk/StepIDCheckLoopOnfido-XnkRtW2L.js.map +1 -0
- package/chunk/{StepIDCheckLoopOnfido-u841Fq12.js → StepIDCheckLoopOnfido-aRk8hzdK.js} +129 -130
- package/chunk/StepIDCheckLoopOnfido-aRk8hzdK.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-4XrJNB8_.js → StepIDCheckLoopRegula-BljVwImZ.js} +22 -22
- package/chunk/{StepIDCheckLoopRegula-4XrJNB8_.js.map → StepIDCheckLoopRegula-BljVwImZ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-DDU-aqdl.js → StepIDCheckLoopRegula-Cf7ASD1i.js} +22 -22
- package/chunk/{StepIDCheckLoopRegula-DDU-aqdl.js.map → StepIDCheckLoopRegula-Cf7ASD1i.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CvU4u5nA.js → StepLicensedProfessionalPersonalInfo-D6n29Iss.js} +42 -42
- package/chunk/{StepLicensedProfessionalPersonalInfo-BXscxOmH.js.map → StepLicensedProfessionalPersonalInfo-D6n29Iss.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-BXscxOmH.js → StepLicensedProfessionalPersonalInfo-hXd4L7zJ.js} +42 -42
- package/chunk/{StepLicensedProfessionalPersonalInfo-CvU4u5nA.js.map → StepLicensedProfessionalPersonalInfo-hXd4L7zJ.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BlvN-faw.js → StepLowIncomePersonalInfo-B9rvMh5D.js} +61 -61
- package/chunk/{StepLowIncomePersonalInfo-BD5AdV7z.js.map → StepLowIncomePersonalInfo-B9rvMh5D.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BD5AdV7z.js → StepLowIncomePersonalInfo-Dt3q7Wto.js} +61 -61
- package/chunk/{StepLowIncomePersonalInfo-BlvN-faw.js.map → StepLowIncomePersonalInfo-Dt3q7Wto.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DzPoAdkI.js → StepMedicalProfessionalPersonalInfo-Dj00ow88.js} +50 -50
- package/chunk/{StepMedicalProfessionalPersonalInfo-D-wc9M27.js.map → StepMedicalProfessionalPersonalInfo-Dj00ow88.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-D-wc9M27.js → StepMedicalProfessionalPersonalInfo-bFiCwH3X.js} +50 -50
- package/chunk/{StepMedicalProfessionalPersonalInfo-DzPoAdkI.js.map → StepMedicalProfessionalPersonalInfo-bFiCwH3X.js.map} +1 -1
- package/chunk/StepMemberPersonalInfo-D5G1Esfb.js +153 -0
- package/chunk/{StepMemberPersonalInfo-BwhcP3-x.js.map → StepMemberPersonalInfo-D5G1Esfb.js.map} +1 -1
- package/chunk/StepMemberPersonalInfo-DXQDbgye.js +157 -0
- package/chunk/{StepMemberPersonalInfo-DcH87kDt.js.map → StepMemberPersonalInfo-DXQDbgye.js.map} +1 -1
- package/chunk/StepMoverPersonalInfo-BoV-SR2Q.js +140 -0
- package/chunk/{StepMoverPersonalInfo-C3e_5Bhi.js.map → StepMoverPersonalInfo-BoV-SR2Q.js.map} +1 -1
- package/chunk/StepMoverPersonalInfo-C4dW2U-w.js +144 -0
- package/chunk/{StepMoverPersonalInfo-DdAYuWun.js.map → StepMoverPersonalInfo-C4dW2U-w.js.map} +1 -1
- package/chunk/{StepOverrideComponent-C58-KkL6.js → StepOverrideComponent-BLPmVFvp.js} +36 -38
- package/chunk/StepOverrideComponent-BLPmVFvp.js.map +1 -0
- package/chunk/{StepOverrideComponent-BA6ZbYda.js → StepOverrideComponent-jBI8dQE7.js} +36 -38
- package/chunk/StepOverrideComponent-jBI8dQE7.js.map +1 -0
- package/chunk/StepSMSLoop-BN32oj1H.js +168 -0
- package/chunk/StepSMSLoop-BN32oj1H.js.map +1 -0
- package/chunk/StepSMSLoop-Cyus2TEa.js +172 -0
- package/chunk/StepSMSLoop-Cyus2TEa.js.map +1 -0
- package/chunk/StepSSO-BGHCbduX.js +4 -4
- package/chunk/StepSSO-ZHByQpHa.js +4 -4
- package/chunk/{StepSocialSecurityNumber-6QeIRjAc.js → StepSocialSecurityNumber-BlzVBYtJ.js} +31 -27
- package/chunk/{StepSocialSecurityNumber-6QeIRjAc.js.map → StepSocialSecurityNumber-BlzVBYtJ.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-kcHexBbp.js → StepSocialSecurityNumber-DSnFbXs9.js} +17 -21
- package/chunk/{StepSocialSecurityNumber-kcHexBbp.js.map → StepSocialSecurityNumber-DSnFbXs9.js.map} +1 -1
- package/chunk/StepStudentPersonalInfo-03QpIWkq.js +217 -0
- package/chunk/StepStudentPersonalInfo-03QpIWkq.js.map +1 -0
- package/chunk/StepStudentPersonalInfo-BxyMqSGg.js +213 -0
- package/chunk/StepStudentPersonalInfo-BxyMqSGg.js.map +1 -0
- package/chunk/{StepSuccess-ZEmH-ZFX.js → StepSuccess--jHHRqxE.js} +31 -31
- package/chunk/{StepSuccess-Cc0UdSaD.js.map → StepSuccess--jHHRqxE.js.map} +1 -1
- package/chunk/{StepSuccess-Cc0UdSaD.js → StepSuccess-CY2liqnE.js} +31 -31
- package/chunk/{StepSuccess-ZEmH-ZFX.js.map → StepSuccess-CY2liqnE.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-C8Limyv9.js +150 -0
- package/chunk/{StepTeacherPersonalInfo-CiHN6WAb.js.map → StepTeacherPersonalInfo-C8Limyv9.js.map} +1 -1
- package/chunk/StepTeacherPersonalInfo-CDiyDDoq.js +154 -0
- package/chunk/{StepTeacherPersonalInfo-X7uaefYx.js.map → StepTeacherPersonalInfo-CDiyDDoq.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-BrKuZcYb.js +4 -4
- package/chunk/StepThirdPartyLoop-CbFTIlwP.js +4 -4
- package/chunk/{TeacherSchoolComponent-DL4ZFk5x.js → TeacherSchoolComponent-Bau63Qxf.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DH3cPm43.js.map → TeacherSchoolComponent-Bau63Qxf.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-DH3cPm43.js → TeacherSchoolComponent-DgOYDpYq.js} +9 -9
- package/chunk/{TeacherSchoolComponent-DL4ZFk5x.js.map → TeacherSchoolComponent-DgOYDpYq.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CVTgdIFf.js +77 -0
- package/chunk/{TestingRouteOverrides-CAGESMw9.js.map → TestingRouteOverrides-CVTgdIFf.js.map} +1 -1
- package/chunk/TestingRouteOverrides-CfhNQg5b.js +81 -0
- package/chunk/{TestingRouteOverrides-CrhfSmLr.js.map → TestingRouteOverrides-CfhNQg5b.js.map} +1 -1
- package/chunk/ThreatMetrix-D_TbL50B.js +4 -4
- package/chunk/ar-Dh-2G5c3.js +4 -4
- package/chunk/bg-BbAhdJRh.js +4 -4
- package/chunk/bn-IN-Cx3Q5Utp.js +4 -4
- package/chunk/{countryUtils-AR9k3KRg.js → countryUtils-D3poSBsN.js} +5 -5
- package/chunk/{countryUtils-AR9k3KRg.js.map → countryUtils-D3poSBsN.js.map} +1 -1
- package/chunk/countryUtils-DhafHNJu.js +12 -0
- package/chunk/{countryUtils-DWqId-zY.js.map → countryUtils-DhafHNJu.js.map} +1 -1
- 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-5BwX87os.js → downshift.esm-CP7HkAFI.js} +7 -7
- package/chunk/{downshift.esm-5BwX87os.js.map → downshift.esm-CP7HkAFI.js.map} +1 -1
- package/chunk/{downshift.esm-GtunYkBG.js → downshift.esm-DiHkspCQ.js} +7 -7
- package/chunk/{downshift.esm-GtunYkBG.js.map → downshift.esm-DiHkspCQ.js.map} +1 -1
- package/chunk/el-Bv_XQ0FX.js +4 -4
- package/chunk/{empties-B6naRhes.js → empties-BAB8wNt9.js} +5 -5
- package/chunk/{empties-B6naRhes.js.map → empties-BAB8wNt9.js.map} +1 -1
- package/chunk/{empties-Crmkxudi.js → empties-Tz4MgFii.js} +49 -49
- package/chunk/{empties-Crmkxudi.js.map → empties-Tz4MgFii.js.map} +1 -1
- 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-ChQrxN58.js → hooks-C64fd9ZU.js} +80 -80
- package/chunk/{hooks-C15H5pD-.js.map → hooks-C64fd9ZU.js.map} +1 -1
- package/chunk/{hooks-C15H5pD-.js → hooks-DuYcWWea.js} +75 -75
- package/chunk/{hooks-ChQrxN58.js.map → hooks-DuYcWWea.js.map} +1 -1
- package/chunk/hr-CL1lHDbu.js +4 -4
- package/chunk/hu-Cf5Uq9R_.js +4 -4
- package/chunk/id-ay9yilKx.js +4 -4
- package/chunk/{intl-e5WHiYfA.js → intl-COP5OPN0.js} +322 -319
- package/chunk/intl-COP5OPN0.js.map +1 -0
- 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-LqzCS-0D.js → jsx-runtime-CCEfa_da.js} +18 -18
- package/chunk/{jsx-runtime-Ini3eO9_.js.map → jsx-runtime-CCEfa_da.js.map} +1 -1
- package/chunk/{jsx-runtime-Ini3eO9_.js → jsx-runtime-CeCA46f-.js} +18 -18
- package/chunk/{jsx-runtime-LqzCS-0D.js.map → jsx-runtime-CeCA46f-.js.map} +1 -1
- package/chunk/kk-DGXgY6Uw.js +4 -4
- package/chunk/ko-BlUGwGxN.js +4 -4
- package/chunk/lo-DT6wxwS1.js +4 -4
- package/chunk/lt-CT5-H4ci.js +4 -4
- package/chunk/lv-CBMD1XRp.js +4 -4
- package/chunk/{mocks-DGc1byho.js → mocks-CeB2B-__.js} +6 -6
- package/chunk/{mocks-DGc1byho.js.map → mocks-CeB2B-__.js.map} +1 -1
- package/chunk/{mocks-RU9BGNOn.js → mocks-R7IOaaBN.js} +9 -9
- package/chunk/{mocks-RU9BGNOn.js.map → mocks-R7IOaaBN.js.map} +1 -1
- package/chunk/ms-DuxNeOgk.js +4 -4
- package/chunk/nl-BE-D028qM7-.js +4 -4
- package/chunk/nl-DEuaat_s.js +4 -4
- package/chunk/no-CjeRjD1D.js +4 -4
- package/chunk/{options-pBCAJBwS.js → options-sWzacjlS.js} +309 -306
- package/chunk/{options-pBCAJBwS.js.map → options-sWzacjlS.js.map} +1 -1
- package/chunk/pl-X0qJw7IS.js +4 -4
- package/chunk/{programThemeGetters-C9Sw0RZq.js → programThemeGetters-BnS5Q93M.js} +29 -25
- package/chunk/{programThemeGetters-C9Sw0RZq.js.map → programThemeGetters-BnS5Q93M.js.map} +1 -1
- package/chunk/programThemeGetters-D44jbcz5.js +149 -0
- package/chunk/{programThemeGetters-uLsgGat1.js.map → programThemeGetters-D44jbcz5.js.map} +1 -1
- package/chunk/pt-BR-C6XmLn3o.js +4 -4
- package/chunk/pt-o7v4iOVx.js +4 -4
- package/chunk/{refs-CGvEbCaw.js → refs-CYbzNJIm.js} +5 -5
- package/chunk/{refs-CGvEbCaw.js.map → refs-CYbzNJIm.js.map} +1 -1
- package/chunk/{refs-CI3K5ndt.js → refs-DiYh48lF.js} +5 -5
- package/chunk/{refs-CI3K5ndt.js.map → refs-DiYh48lF.js.map} +1 -1
- 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-CEcpJGQG.js +121 -0
- package/chunk/stepComponentHelpers-CEcpJGQG.js.map +1 -0
- package/chunk/stepComponentHelpers-DoMfmu_O.js +117 -0
- package/chunk/stepComponentHelpers-DoMfmu_O.js.map +1 -0
- 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-Ce16y3_V.js +61 -0
- package/chunk/{useCollectFieldsEndpoint-74jMd594.js.map → useCollectFieldsEndpoint-Ce16y3_V.js.map} +1 -1
- package/chunk/useCollectFieldsEndpoint-DZRtkBor.js +65 -0
- package/chunk/{useCollectFieldsEndpoint-dSngHehw.js.map → useCollectFieldsEndpoint-DZRtkBor.js.map} +1 -1
- package/chunk/{useMetrics-O5xTFm6y.js → useMetrics-Bqc9pEAl.js} +19 -19
- package/chunk/{useMetrics-O5xTFm6y.js.map → useMetrics-Bqc9pEAl.js.map} +1 -1
- package/chunk/{useMetrics-BrHWTzbP.js → useMetrics-Lk6qCoTA.js} +19 -19
- package/chunk/{useMetrics-BrHWTzbP.js.map → useMetrics-Lk6qCoTA.js.map} +1 -1
- 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 +277 -278
- package/sheerid.js.map +1 -1
- package/chunk/EmailLoopPending-CYCQv7pW.js.map +0 -1
- package/chunk/EmailLoopPending-DNFHR6Ck.js.map +0 -1
- package/chunk/FormFooterComponent-BHQc5VBK.js.map +0 -1
- package/chunk/FormFooterComponent-CAoH3NjO.js.map +0 -1
- package/chunk/Message-BK3a2RyH.js.map +0 -1
- package/chunk/Message-CSa2etjX.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-BcdQUzMO.js.map +0 -1
- package/chunk/PersonalInfoStepSubmitButton-VxT_vwVv.js.map +0 -1
- package/chunk/StepAgePersonalInfo-BswIeVCd.js +0 -170
- package/chunk/StepAgePersonalInfo-CHBH5ROm.js +0 -174
- package/chunk/StepCollectPersonalInfo-BLClPcAC.js +0 -372
- package/chunk/StepCollectPersonalInfo-BvBAA_0_.js +0 -368
- package/chunk/StepIDCheckLoop-3dEcYNM-.js +0 -24
- package/chunk/StepIDCheckLoopOnfido-DFITsdwV.js.map +0 -1
- package/chunk/StepIDCheckLoopOnfido-u841Fq12.js.map +0 -1
- package/chunk/StepMemberPersonalInfo-BwhcP3-x.js +0 -157
- package/chunk/StepMemberPersonalInfo-DcH87kDt.js +0 -153
- package/chunk/StepMoverPersonalInfo-C3e_5Bhi.js +0 -140
- package/chunk/StepMoverPersonalInfo-DdAYuWun.js +0 -144
- package/chunk/StepOverrideComponent-BA6ZbYda.js.map +0 -1
- package/chunk/StepOverrideComponent-C58-KkL6.js.map +0 -1
- package/chunk/StepSMSLoop-CiFQF0bq.js +0 -181
- package/chunk/StepSMSLoop-CiFQF0bq.js.map +0 -1
- package/chunk/StepSMSLoop-DmbMtSCW.js +0 -185
- package/chunk/StepSMSLoop-DmbMtSCW.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-CJJbSZ_C.js +0 -216
- package/chunk/StepStudentPersonalInfo-CJJbSZ_C.js.map +0 -1
- package/chunk/StepStudentPersonalInfo-ubt7IGBA.js +0 -220
- package/chunk/StepStudentPersonalInfo-ubt7IGBA.js.map +0 -1
- package/chunk/StepTeacherPersonalInfo-CiHN6WAb.js +0 -154
- package/chunk/StepTeacherPersonalInfo-X7uaefYx.js +0 -150
- package/chunk/TestingRouteOverrides-CAGESMw9.js +0 -81
- package/chunk/TestingRouteOverrides-CrhfSmLr.js +0 -77
- package/chunk/VerificationApiClient-CVe2IgK7.js +0 -1451
- package/chunk/VerificationApiClient-CVe2IgK7.js.map +0 -1
- package/chunk/VerificationApiClient-DOQLbKh3.js +0 -1471
- package/chunk/VerificationApiClient-DOQLbKh3.js.map +0 -1
- package/chunk/countryUtils-DWqId-zY.js +0 -12
- package/chunk/intl-e5WHiYfA.js.map +0 -1
- package/chunk/programThemeGetters-uLsgGat1.js +0 -153
- package/chunk/stepComponentHelpers-BdqtwfRd.js +0 -133
- package/chunk/stepComponentHelpers-BdqtwfRd.js.map +0 -1
- package/chunk/stepComponentHelpers-DIHMDrmF.js +0 -129
- package/chunk/stepComponentHelpers-DIHMDrmF.js.map +0 -1
- package/chunk/useCollectFieldsEndpoint-74jMd594.js +0 -66
- package/chunk/useCollectFieldsEndpoint-dSngHehw.js +0 -62
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-Cm99LmoK.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 = false,\n fieldId,\n fieldLabelId,\n isErrored = false,\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\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,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AC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
1
|
+
{"version":3,"file":"FormSelectChoice-C8zbGNXM.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 = false,\n fieldId,\n fieldLabelId,\n isErrored = false,\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\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,OA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GK;AACT"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.280.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789074197174
|
|
5
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:17 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-
|
|
10
|
-
import { o } from "./refs-
|
|
8
|
+
import { Gt as e, Vt as t } from "./options-sWzacjlS.js";
|
|
9
|
+
import { a as n, c as r, n as i, t as a } from "./jsx-runtime-CeCA46f-.js";
|
|
10
|
+
import { o } from "./refs-CYbzNJIm.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-CP7HkAFI.js";
|
|
13
13
|
//#region src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.tsx
|
|
14
|
-
var l = /* @__PURE__ */
|
|
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", {
|
|
16
16
|
className: `sid-input-select-list__item ${n === i ? "sid-input-select-list__item--highlighted" : ""}`,
|
|
17
17
|
...e({
|
|
@@ -132,16 +132,16 @@ var l = /* @__PURE__ */ t(r(), 1), u = a(), d = ({ getItemProps: e, getMenuProps
|
|
|
132
132
|
n = 1;
|
|
133
133
|
}
|
|
134
134
|
return n;
|
|
135
|
-
}, _ = (e) => e.sort(g), v = (
|
|
135
|
+
}, _ = (e) => e.sort(g), v = (e, n = [], r) => {
|
|
136
136
|
let i = [], a = [];
|
|
137
|
-
return n.forEach((
|
|
138
|
-
if (
|
|
139
|
-
if (!
|
|
137
|
+
return n.forEach((t) => {
|
|
138
|
+
if (t === void 0) return a.push("undefined");
|
|
139
|
+
if (!t || typeof t == "number" || typeof t == "string" && !t.trim()) return a.push(JSON.stringify(t));
|
|
140
140
|
i.push({
|
|
141
|
-
value:
|
|
142
|
-
label: r({ id: `${
|
|
141
|
+
value: t,
|
|
142
|
+
label: r({ id: `${e}.${t}` })
|
|
143
143
|
});
|
|
144
|
-
}), a.length > 0 &&
|
|
144
|
+
}), a.length > 0 && t.warn(`FormSelectChoice.getFormFieldSelectOptions contains unexpected values (${a.length}): ${a.join(", ")}`), i;
|
|
145
145
|
};
|
|
146
146
|
//#endregion
|
|
147
147
|
export { v as n, h as r, _ as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelectChoice-DjcUTWnw.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 = false,\n fieldId,\n fieldLabelId,\n isErrored = false,\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\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,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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-DhgV7HJV.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 = false,\n fieldId,\n fieldLabelId,\n isErrored = false,\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\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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ACuC;CACvC,IAAM,IAA8C,CAAC,GAC/C,IAA2B,CAAC;CAoBlC,OAlBA,EAAa,SAAS,MAAU;EAC9B,IAAW,MAAU,QAAa,OAAO,EAAe,KAAK,WAAW;EAGxE,IAFI,CAAC,KACD,OAAO,KAAU,YACjB,OAAO,KAAU,YAAY,CAAC,EAAM,KAAK,GAC3C,OAAO,EAAe,KAAK,KAAK,UAAU,CAAK,CAAC;EAElD,EAAQ,KAAK;GAAE;GAAO,OAAO,EAAI,EAAE,IAAI,GAAG,EAAU,GAAG,IAAqB,CAAC;EAAE,CAAC;CAClF,CAAC,GAEG,EAAe,SAAS,KAC1B,EAAO,KACL,0EACE,EAAe,OAChB,KAAK,EAAe,KAAK,IAAI,GAChC,GAGK;AACT"}
|
|
@@ -4,14 +4,14 @@
|
|
|
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.280.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789074204977
|
|
9
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { c as t, t as n } from "./jsx-runtime-
|
|
14
|
-
import { o as r } from "./refs-
|
|
12
|
+
import { Gt as e } from "./intl-COP5OPN0.js";
|
|
13
|
+
import { c as t, t as n } from "./jsx-runtime-CCEfa_da.js";
|
|
14
|
+
import { o as r } from "./refs-DiYh48lF.js";
|
|
15
15
|
//#region src/components/FormInputs/InputText/InputText.tsx
|
|
16
16
|
var i = /* @__PURE__ */ e(t(), 1), a = n(), o = ({ id: e, isErrored: t, className: n = void 0, hidePlaceholder: o = !0, refId: s, required: c = !1, type: l = "text", ariaDescribedBy: u, ariaLabel: d, ...f }) => {
|
|
17
17
|
let p = "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText-
|
|
1
|
+
{"version":3,"file":"InputText-BZv5j2AC.js","names":[],"sources":["../../src/components/FormInputs/InputText/InputText.tsx"],"sourcesContent":["import { type InputHTMLAttributes } from \"react\";\nimport type React from \"react\";\nimport { useEffect, useRef } from \"react\";\n\nimport { setRef } from \"../../../lib/refs/refs\";\n\nexport type InputTextProps = {\n id: string; // used for the html `id` and `name` attributes\n isErrored: boolean;\n className?: string; // any additional classnames\n hidePlaceholder?: boolean; // placeholder should always be provided, even if hidden (default), so it is easy to reveal using css-only\n onChange?: React.ChangeEventHandler;\n onKeyDown?: React.ChangeEventHandler;\n ref?: never; // use refId instead. Setting the ref on this component, rather than the input inside here is not desired\n refId?: string; // e.g. if id is hyphen-case, and ref field name is camelCase, which is common\n required?: boolean;\n ariaDescribedBy?: string;\n ariaLabel?: string;\n type?: \"text\" | \"number\" | \"date\" | \"month\" | \"email\" | \"password\" | \"search\" | \"url\" | \"tel\";\n} & InputHTMLAttributes<HTMLInputElement>;\n\nconst InputText = ({\n id,\n isErrored,\n className = undefined,\n hidePlaceholder = true,\n refId,\n required = false,\n type = \"text\",\n ariaDescribedBy,\n ariaLabel,\n ...props // forward any remaining props to the input\n}: InputTextProps) => {\n let internalClassName = \"\";\n if (className) internalClassName += `${className} `; // want this first\n internalClassName += \"sid-text-input sid-l-full-width\";\n if (hidePlaceholder) internalClassName += \" sid-hidden-placeholder\";\n if (required) internalClassName += \" sid-text-input--required\";\n if (isErrored) internalClassName += \" sid-text-input--error\";\n\n const finalRefId = refId || id;\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(finalRefId, inputRef.current);\n });\n\n return (\n <input\n className={internalClassName}\n id={`sid-${id}`}\n name={`sid-${id}`}\n type={type}\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-required={required}\n aria-invalid={isErrored}\n ref={inputRef}\n {...props}\n />\n );\n};\n\n// DO NOT INJECT INTL. Localize your strings pass them down as props\nexport const InputTextComponent = InputText;\n"],"mappings":";;;;4CAoEa,KA/CM,EACjB,OACA,cACA,eAAY,KAAA,GACZ,qBAAkB,IAClB,UACA,cAAW,IACX,UAAO,QACP,oBACA,cACA,GAAG,QACiB;CACpB,IAAI,IAAoB;CAKxB,AAJI,MAAW,KAAqB,GAAG,EAAU,KACjD,KAAqB,mCACjB,MAAiB,KAAqB,4BACtC,MAAU,KAAqB,8BAC/B,MAAW,KAAqB;CAEpC,IAAM,IAAa,KAAS,GAEtB,KAAA,GAAA,EAAA,QAAoC,IAAI;CAS9C,QAJA,GAAA,EAAA,iBAAgB;EACd,EAAO,GAAY,EAAS,OAAO;CACrC,CAAC,GAGC,iBAAA,GAAA,EAAA,KAAC,SAAD;EACE,WAAW;EACX,IAAI,OAAO;EACX,MAAM,OAAO;EACP;EACN,oBAAkB;EAClB,cAAY;EACZ,iBAAe;EACf,gBAAc;EACd,KAAK;EACL,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.280.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789074197174
|
|
5
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:17 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { c as t, t as n } from "./jsx-runtime-
|
|
10
|
-
import { o as r } from "./refs-
|
|
8
|
+
import { Gt as e } from "./options-sWzacjlS.js";
|
|
9
|
+
import { c as t, t as n } from "./jsx-runtime-CeCA46f-.js";
|
|
10
|
+
import { o as r } from "./refs-CYbzNJIm.js";
|
|
11
11
|
//#region src/components/FormInputs/InputText/InputText.tsx
|
|
12
12
|
var i = /* @__PURE__ */ e(t(), 1), a = n(), o = ({ id: e, isErrored: t, className: n = void 0, hidePlaceholder: o = !0, refId: s, required: c = !1, type: l = "text", ariaDescribedBy: u, ariaLabel: d, ...f }) => {
|
|
13
13
|
let p = "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText-
|
|
1
|
+
{"version":3,"file":"InputText-CeC4vzEI.js","names":[],"sources":["../../src/components/FormInputs/InputText/InputText.tsx"],"sourcesContent":["import { type InputHTMLAttributes } from \"react\";\nimport type React from \"react\";\nimport { useEffect, useRef } from \"react\";\n\nimport { setRef } from \"../../../lib/refs/refs\";\n\nexport type InputTextProps = {\n id: string; // used for the html `id` and `name` attributes\n isErrored: boolean;\n className?: string; // any additional classnames\n hidePlaceholder?: boolean; // placeholder should always be provided, even if hidden (default), so it is easy to reveal using css-only\n onChange?: React.ChangeEventHandler;\n onKeyDown?: React.ChangeEventHandler;\n ref?: never; // use refId instead. Setting the ref on this component, rather than the input inside here is not desired\n refId?: string; // e.g. if id is hyphen-case, and ref field name is camelCase, which is common\n required?: boolean;\n ariaDescribedBy?: string;\n ariaLabel?: string;\n type?: \"text\" | \"number\" | \"date\" | \"month\" | \"email\" | \"password\" | \"search\" | \"url\" | \"tel\";\n} & InputHTMLAttributes<HTMLInputElement>;\n\nconst InputText = ({\n id,\n isErrored,\n className = undefined,\n hidePlaceholder = true,\n refId,\n required = false,\n type = \"text\",\n ariaDescribedBy,\n ariaLabel,\n ...props // forward any remaining props to the input\n}: InputTextProps) => {\n let internalClassName = \"\";\n if (className) internalClassName += `${className} `; // want this first\n internalClassName += \"sid-text-input sid-l-full-width\";\n if (hidePlaceholder) internalClassName += \" sid-hidden-placeholder\";\n if (required) internalClassName += \" sid-text-input--required\";\n if (isErrored) internalClassName += \" sid-text-input--error\";\n\n const finalRefId = refId || id;\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(finalRefId, inputRef.current);\n });\n\n return (\n <input\n className={internalClassName}\n id={`sid-${id}`}\n name={`sid-${id}`}\n type={type}\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-required={required}\n aria-invalid={isErrored}\n ref={inputRef}\n {...props}\n />\n );\n};\n\n// DO NOT INJECT INTL. Localize your strings pass them down as props\nexport const InputTextComponent = InputText;\n"],"mappings":";;;;4CAoEa,KA/CM,EACjB,OACA,cACA,eAAY,KAAA,GACZ,qBAAkB,IAClB,UACA,cAAW,IACX,UAAO,QACP,oBACA,cACA,GAAG,QACiB;CACpB,IAAI,IAAoB;CAKxB,AAJI,MAAW,KAAqB,GAAG,EAAU,KACjD,KAAqB,mCACjB,MAAiB,KAAqB,4BACtC,MAAU,KAAqB,8BAC/B,MAAW,KAAqB;CAEpC,IAAM,IAAa,KAAS,GAEtB,KAAA,GAAA,EAAA,QAAoC,IAAI;CAS9C,QAJA,GAAA,EAAA,iBAAgB;EACd,EAAO,GAAY,EAAS,OAAO;CACrC,CAAC,GAGC,iBAAA,GAAA,EAAA,KAAC,SAAD;EACE,WAAW;EACX,IAAI,OAAO;EACX,MAAM,OAAO;EACP;EACN,oBAAkB;EAClB,cAAY;EACZ,iBAAe;EACf,gBAAc;EACd,KAAK;EACL,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -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.280.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789074204977
|
|
9
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
11
11
|
*/
|
|
12
|
-
import { n as e, t } from "./jsx-runtime-
|
|
13
|
-
import { n } from "./Message-
|
|
14
|
-
import { c as r } from "./programThemeGetters-
|
|
15
|
-
import {
|
|
16
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
12
|
+
import { n as e, t } from "./jsx-runtime-CCEfa_da.js";
|
|
13
|
+
import { n } from "./Message-C8ZwB4H_.js";
|
|
14
|
+
import { c as r } from "./programThemeGetters-BnS5Q93M.js";
|
|
15
|
+
import { i } from "./stepComponentHelpers-CEcpJGQG.js";
|
|
16
|
+
import { t as a } from "./FormFieldTypeahead-BCZ6Nsns.js";
|
|
17
17
|
//#region src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx
|
|
18
18
|
var o = t(), s = ({ value: t, isErrored: s, onChange: c, verificationService: l, placeholder: u = "", disabled: d = !1 }) => {
|
|
19
19
|
let { msg: f } = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LicensedProfessionalOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-BXcQ9OAk.js","names":[],"sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldTypeahead } from \"@/components/FormFields/FormFieldTypeahead/FormFieldTypeahead\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"@/lib/types/types\";\nimport { getOrgSearchUrl } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganizationComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const { msg } = useMessage();\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 msg({\n id: \"organizationPlaceholder\",\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"],"mappings":";;;;;;aAaa,KAA6C,EACxD,UACA,cACA,aACA,wBACA,iBAAc,IACd,cAAW,SAC6C;CACxD,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aACE,KACA,EAAI,EACF,IAAI,0BACN,CAAC;EAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAe,gBAAe;EAAgB,CAAA;EAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACA,6BAA6B,CAAC,CAAC;EACrB;CACX,CAAA;AAEL"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.280.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789074197174
|
|
5
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:17 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
7
7
|
*/
|
|
8
|
-
import { n as e, t } from "./jsx-runtime-
|
|
9
|
-
import { n } from "./Message-
|
|
10
|
-
import { c as r } from "./programThemeGetters-
|
|
11
|
-
import {
|
|
12
|
-
import { t as a } from "./FormFieldTypeahead-
|
|
8
|
+
import { n as e, t } from "./jsx-runtime-CeCA46f-.js";
|
|
9
|
+
import { n } from "./Message-8LvAVwXZ.js";
|
|
10
|
+
import { c as r } from "./programThemeGetters-D44jbcz5.js";
|
|
11
|
+
import { i } from "./stepComponentHelpers-DoMfmu_O.js";
|
|
12
|
+
import { t as a } from "./FormFieldTypeahead-Cv1WXfhF.js";
|
|
13
13
|
//#region src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx
|
|
14
14
|
var o = t(), s = ({ value: t, isErrored: s, onChange: c, verificationService: l, placeholder: u = "", disabled: d = !1 }) => {
|
|
15
15
|
let { msg: f } = n();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LicensedProfessionalOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LicensedProfessionalOrganizationComponent-BY-_49Un.js","names":[],"sources":["../../src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldTypeahead } from \"@/components/FormFields/FormFieldTypeahead/FormFieldTypeahead\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\nimport {\n type FormFieldComponentProps,\n type VerificationServiceProps,\n type Organization,\n} from \"@/lib/types/types\";\nimport { getOrgSearchUrl } from \"@/lib/ProgramTheme/programThemeGetters\";\n\nexport const LicensedProfessionalOrganizationComponent = ({\n value,\n isErrored,\n onChange,\n verificationService,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps & VerificationServiceProps) => {\n const { msg } = useMessage();\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 msg({\n id: \"organizationPlaceholder\",\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"],"mappings":";;;;;;aAaa,KAA6C,EACxD,UACA,cACA,aACA,wBACA,iBAAc,IACd,cAAW,SAC6C;CACxD,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,cAAc,GAAG,SAGtD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACc;EACrB,WAAW,MAAyB,EAAS,CAAM;EACnD,aACE,KACA,EAAI,EACF,IAAI,0BACN,CAAC;EAEH,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAe,gBAAe;EAAgB,CAAA;EAC9E,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGL,cAAc,EACZ,EAAoB,WACpB,EAAoB,YACtB;EACA,6BAA6B,CAAC,CAAC;EACrB;CACX,CAAA;AAEL"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.280.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1789074197174
|
|
5
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:17 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
7
7
|
*/
|
|
8
|
-
import { n as e, t } from "./jsx-runtime-
|
|
9
|
-
import { a as n } from "./programThemeGetters-
|
|
8
|
+
import { n as e, t } from "./jsx-runtime-CeCA46f-.js";
|
|
9
|
+
import { a as n } from "./programThemeGetters-D44jbcz5.js";
|
|
10
10
|
//#region src/components/LogoComponent/LogoComponent.tsx
|
|
11
11
|
var r = t(), i = ({ verificationService: t, fallbackLogo: i }) => {
|
|
12
12
|
let a = n(t.programTheme);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoComponent-
|
|
1
|
+
{"version":3,"file":"LogoComponent-DIcMbBgg.js","names":[],"sources":["../../src/components/LogoComponent/LogoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService } from \"../../lib/types/types\";\nimport { getLogoUrl } from \"../../lib/ProgramTheme/programThemeGetters\";\n\ninterface LogoProps {\n verificationService: VerificationService;\n fallbackLogo?: JSX.Element;\n}\n\nconst LogoComponent = ({ verificationService, fallbackLogo }: LogoProps) => {\n const logoUrl = getLogoUrl(verificationService.programTheme);\n\n if (logoUrl) {\n return (\n <div className=\"sid-logo sid-l-space-top-md\">\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <img className=\"sid-logo__img\" alt={`${companyName} logo`} src={logoUrl} />\n )}\n </FormattedHTMLMessage>\n </div>\n );\n }\n\n if (fallbackLogo) {\n return fallbackLogo;\n }\n\n return null;\n};\n\nexport { LogoComponent };\n"],"mappings":";;;aAUM,KAAiB,EAAE,wBAAqB,sBAA8B;CAC1E,IAAM,IAAU,EAAW,EAAoB,YAAY;CAkB3D,OAhBI,IAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAc,gBAAe;cAClD,MACA,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;IAAgB,KAAK,GAAG,EAAY;IAAQ,KAAK;GAAU,CAAA;EAExD,CAAA;CACnB,CAAA,IAIL,KAIG;AACT"}
|
|
@@ -4,13 +4,13 @@
|
|
|
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.280.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789074204977
|
|
9
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
11
11
|
*/
|
|
12
|
-
import { n as e, t } from "./jsx-runtime-
|
|
13
|
-
import { a as n } from "./programThemeGetters-
|
|
12
|
+
import { n as e, t } from "./jsx-runtime-CCEfa_da.js";
|
|
13
|
+
import { a as n } from "./programThemeGetters-BnS5Q93M.js";
|
|
14
14
|
//#region src/components/LogoComponent/LogoComponent.tsx
|
|
15
15
|
var r = t(), i = ({ verificationService: t, fallbackLogo: i }) => {
|
|
16
16
|
let a = n(t.programTheme);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoComponent-
|
|
1
|
+
{"version":3,"file":"LogoComponent-U1dLeCEh.js","names":[],"sources":["../../src/components/LogoComponent/LogoComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { type VerificationService } from \"../../lib/types/types\";\nimport { getLogoUrl } from \"../../lib/ProgramTheme/programThemeGetters\";\n\ninterface LogoProps {\n verificationService: VerificationService;\n fallbackLogo?: JSX.Element;\n}\n\nconst LogoComponent = ({ verificationService, fallbackLogo }: LogoProps) => {\n const logoUrl = getLogoUrl(verificationService.programTheme);\n\n if (logoUrl) {\n return (\n <div className=\"sid-logo sid-l-space-top-md\">\n <FormattedHTMLMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <img className=\"sid-logo__img\" alt={`${companyName} logo`} src={logoUrl} />\n )}\n </FormattedHTMLMessage>\n </div>\n );\n }\n\n if (fallbackLogo) {\n return fallbackLogo;\n }\n\n return null;\n};\n\nexport { LogoComponent };\n"],"mappings":";;;aAUM,KAAiB,EAAE,wBAAqB,sBAA8B;CAC1E,IAAM,IAAU,EAAW,EAAoB,YAAY;CAkB3D,OAhBI,IAEA,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAc,gBAAe;cAClD,MACA,iBAAA,GAAA,EAAA,KAAC,OAAD;IAAK,WAAU;IAAgB,KAAK,GAAG,EAAY;IAAQ,KAAK;GAAU,CAAA;EAExD,CAAA;CACnB,CAAA,IAIL,KAIG;AACT"}
|
|
@@ -4,29 +4,28 @@
|
|
|
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.280.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1789074204977
|
|
9
|
+
* BUILD_DATE: Thu Sep 10 2026 21:03:24 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 0337262e7e7380640882a11e0184fba716c38a59
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { c as r, n as i, t as a } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { c, f as l } from "./programThemeGetters-uLsgGat1.js";
|
|
12
|
+
import { Gt as e, Vt as t, p as n } from "./intl-COP5OPN0.js";
|
|
13
|
+
import { c as r, n as i, t as a } from "./jsx-runtime-CCEfa_da.js";
|
|
14
|
+
import { O as o, n as s } from "./Message-C8ZwB4H_.js";
|
|
15
|
+
import { c, f as l } from "./programThemeGetters-BnS5Q93M.js";
|
|
17
16
|
import { P as u } from "../_mysheerid-preview.js";
|
|
18
|
-
import {
|
|
19
|
-
import { t as p } from "./FormFieldText-
|
|
20
|
-
import { t as m } from "./FormFieldInputSelect-
|
|
21
|
-
import { t as h } from "./FormFieldTypeahead-
|
|
17
|
+
import { i as d, l as f } from "./stepComponentHelpers-CEcpJGQG.js";
|
|
18
|
+
import { t as p } from "./FormFieldText-hOha2vTr.js";
|
|
19
|
+
import { t as m } from "./FormFieldInputSelect-BaYOGEm0.js";
|
|
20
|
+
import { t as h } from "./FormFieldTypeahead-BCZ6Nsns.js";
|
|
22
21
|
//#region src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx
|
|
23
22
|
var g = a(), _ = ({ value: e, isErrored: t, onChange: n, placeholder: r = "", disabled: a = !1 }) => {
|
|
24
|
-
let { msg:
|
|
23
|
+
let { msg: o } = s();
|
|
25
24
|
return d("ebtCardNumber")?.hidden ? null : /* @__PURE__ */ (0, g.jsx)(p, {
|
|
26
25
|
fieldId: "ebtCardNumber",
|
|
27
26
|
value: e,
|
|
28
27
|
onChange: n,
|
|
29
|
-
placeholder: r ||
|
|
28
|
+
placeholder: r || o({ id: "ebtCardNumber" }),
|
|
30
29
|
label: /* @__PURE__ */ (0, g.jsx)(i, {
|
|
31
30
|
id: "ebtCardNumber",
|
|
32
31
|
defaultMessage: "EBT card Number"
|
|
@@ -38,20 +37,20 @@ var g = a(), _ = ({ value: e, isErrored: t, onChange: n, placeholder: r = "", di
|
|
|
38
37
|
showPlaceholderAndHideLabel: !!r,
|
|
39
38
|
disabled: a
|
|
40
39
|
});
|
|
41
|
-
}, v = /* @__PURE__ */
|
|
42
|
-
let { msg: x } =
|
|
43
|
-
if (!l(S)) return
|
|
40
|
+
}, v = /* @__PURE__ */ e(r(), 1), y = ({ value: e, isErrored: r, onChange: a, placeholder: p = "", isRequired: _ = !1, verificationService: y, disabled: b = !1 }) => {
|
|
41
|
+
let { msg: x } = s(), { viewModel: S, programTheme: C, fieldValidationErrors: w } = y;
|
|
42
|
+
if (!l(S)) return t.error("Expected low-income view model is malformed"), null;
|
|
44
43
|
let T = S.statuses[0] ? S.statuses[0] : void 0, [E, D] = v.useState();
|
|
45
44
|
v.useEffect(() => {
|
|
46
|
-
|
|
45
|
+
o(c(n(S, (e) => {
|
|
47
46
|
e.statuses = ["OTHER_GOVERNMENT_ASSISTANCE"];
|
|
48
47
|
}), C)).then((e) => {
|
|
49
48
|
if (e) {
|
|
50
49
|
let t = e;
|
|
51
50
|
S.countryChoice && (t = e.filter((e) => e.country === S.countryChoice.value)), D(t.map(f));
|
|
52
51
|
}
|
|
53
|
-
}).catch((
|
|
54
|
-
|
|
52
|
+
}).catch((e) => {
|
|
53
|
+
t.error(e);
|
|
55
54
|
});
|
|
56
55
|
}, []);
|
|
57
56
|
let O = (e, t) => {
|
|
@@ -82,7 +81,7 @@ var g = a(), _ = ({ value: e, isErrored: t, onChange: n, placeholder: r = "", di
|
|
|
82
81
|
orgSearchUrl: c(y.viewModel, y.programTheme)
|
|
83
82
|
}) : E ? /* @__PURE__ */ (0, g.jsx)(m, {
|
|
84
83
|
fieldId: "low-income",
|
|
85
|
-
value: E.find((
|
|
84
|
+
value: E.find((t) => t.value === (e && e.value)),
|
|
86
85
|
refId: "organization",
|
|
87
86
|
onChange: (e) => O(e, a),
|
|
88
87
|
placeholder: p || x({ id: "lowIncomeOrganizationPlaceholder" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LowIncomeOrganizationComponent-
|
|
1
|
+
{"version":3,"file":"LowIncomeOrganizationComponent-BRvt-ulP.js","names":[],"sources":["../../src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.tsx","../../src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.tsx"],"sourcesContent":["import { FormattedHTMLMessage } from \"react-intl\";\n\nimport { getFieldConfigByFieldId } from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldText } from \"@/components/FormFields/FormFieldText/FormFieldText\";\nimport { type FormFieldComponentProps } from \"@/lib/types/types\";\n\nexport const EBTCardNumberComponent = ({\n value,\n isErrored,\n onChange,\n placeholder = \"\",\n disabled = false,\n}: FormFieldComponentProps) => {\n const { msg } = useMessage();\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 // There is no default ebtCardNumberPlaceholder message, using field label instead.\n placeholder={placeholder || msg({ id: \"ebtCardNumber\" })}\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","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport produce from \"immer\";\n\nimport { logger } from \"@jslib/shared/utils/logger\";\n\nimport { useMessage } from \"@/components/Message\";\nimport { FormFieldInputSelect } from \"@/components/FormFields/FormFieldInputSelect/FormFieldInputSelect\";\nimport { FormFieldTypeahead } from \"@/components/FormFields/FormFieldTypeahead/FormFieldTypeahead\";\nimport { LoadingSpinnerComponent } from \"@/components/LoadingSpinner/LoadingSpinnerComponent\";\nimport { isLowIncomeVM } from \"@/components/StepLowIncomePersonalInfo/lowIncomeTypes\";\nimport {\n type FormSelectChoice,\n type FormFieldComponentProps,\n type LowIncomePersonalInfoViewModel,\n type Organization,\n} from \"@/lib/types/types\";\nimport { getOrgSearchUrl } from \"@/lib/ProgramTheme/programThemeGetters\";\nimport { fetchOrganization } from \"@/lib/ServerApi/OrganizationApiClient\";\nimport {\n getFieldConfigByFieldId,\n orgToOption,\n} from \"@/lib/utils/stepComponentHelpers/stepComponentHelpers\";\n\nexport const LowIncomeOrganizationComponent = ({\n value,\n isErrored,\n onChange,\n placeholder = \"\",\n isRequired = false,\n verificationService,\n disabled = false,\n}: FormFieldComponentProps) => {\n const { msg } = useMessage();\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={msg({ id: \"schoolNamePlaceholder\" })}\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={placeholder || msg({ id: \"lowIncomeOrganizationPlaceholder\" })}\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"],"mappings":";;;;;;;;;;aAQa,KAA0B,EACrC,UACA,cACA,aACA,iBAAc,IACd,cAAW,SACkB;CAC7B,IAAM,EAAE,WAAQ,EAAW;CAO3B,OANsB,EAAwB,eAAe,GAAG,SAGvD,OAIP,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,SAAQ;EACD;EACG;EAEV,aAAa,KAAe,EAAI,EAAE,IAAI,gBAAgB,CAAC;EACvD,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAsB,IAAG;GAAgB,gBAAe;EAAmB,CAAA;EAClF,cACE,KACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,IAAG;GACH,gBAAe;EAChB,CAAA;EAGL,6BAA6B,CAAC,CAAC;EACrB;CACX,CAAA;AAEL,kCClBa,KAAkC,EAC7C,UACA,cACA,aACA,iBAAc,IACd,gBAAa,IACb,wBACA,cAAW,SACkB;CAC7B,IAAM,EAAE,WAAQ,EAAW,GACrB,EAAE,cAAW,iBAAc,6BAA0B;CAE3D,IAAI,CAAC,EAAc,CAAS,GAE1B,OADA,EAAO,MAAM,6CAA6C,GACnD;CAGT,IAAM,IAAiB,EAAU,SAAS,KAAK,EAAU,SAAS,KAAK,KAAA,GACjE,CAAC,GAAoB,KAAA,EAA+B,SAExD;CAEF,EAAM,gBAAgB;EACpB,EACE,EACE,EAAQ,IAAY,MAA0C;GAC5D,EAAM,WAAW,CAAC,6BAA6B;EACjD,CAAC,GACD,CACF,CACF,EACG,MAAM,MAA4B;GACjC,IAAI,GAAS;IACX,IAAI,IAAmC;IAOvC,AALI,EAAU,kBACZ,IAAmB,EAAQ,QACxB,MAAQ,EAAI,YAAY,EAAU,cAAc,KACnD,IAEF,EAAsB,EAAiB,IAAI,CAAW,CAAC;GACzD;EACF,CAAC,EACA,OAA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