@sheerid/jslib 2.247.0 → 2.248.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 +995 -1023
- package/_mysheerid-preview.js.map +1 -1
- package/chunk/AddressComponent-Bukkdb4u.js +4 -4
- package/chunk/AddressComponent-CkxRlnVO.js +4 -4
- package/chunk/{BirthDateComponent-uWKLRke9.js → BirthDateComponent-Bs0xFFJM.js} +5 -5
- package/chunk/{BirthDateComponent-B0tDW0yB.js.map → BirthDateComponent-Bs0xFFJM.js.map} +1 -1
- package/chunk/{BirthDateComponent-B0tDW0yB.js → BirthDateComponent-DLk6Ilxs.js} +5 -5
- package/chunk/{BirthDateComponent-uWKLRke9.js.map → BirthDateComponent-DLk6Ilxs.js.map} +1 -1
- package/chunk/{CaptchaComponent-D0ddmO45.js → CaptchaComponent-C0umNe_d.js} +62 -62
- package/chunk/{CaptchaComponent-D0ddmO45.js.map → CaptchaComponent-C0umNe_d.js.map} +1 -1
- package/chunk/{CaptchaComponent-DE-ZE8nT.js → CaptchaComponent-Cuh_UEdw.js} +5 -5
- package/chunk/{CaptchaComponent-DE-ZE8nT.js.map → CaptchaComponent-Cuh_UEdw.js.map} +1 -1
- package/chunk/ChangeLocaleComponent-B9FhViAh.js +4 -4
- package/chunk/ChangeLocaleComponent-zT_LYIcp.js +4 -4
- package/chunk/City-DjkeTI1V.js +4 -4
- package/chunk/City-IOdmmFE7.js +4 -4
- package/chunk/{CollegeNameComponent--3-lJ1K4.js → CollegeNameComponent-CnPvtBkA.js} +5 -5
- package/chunk/{CollegeNameComponent--3-lJ1K4.js.map → CollegeNameComponent-CnPvtBkA.js.map} +1 -1
- package/chunk/{CollegeNameComponent-D37lC9Cv.js → CollegeNameComponent-DF3oj7Uw.js} +5 -5
- package/chunk/{CollegeNameComponent-D37lC9Cv.js.map → CollegeNameComponent-DF3oj7Uw.js.map} +1 -1
- package/chunk/CopyToClipboardComponent-BksoYi0Z.js +4 -4
- package/chunk/CopyToClipboardComponent-CtgyrPCJ.js +4 -4
- package/chunk/CountryComponentWrapper-C58Sci59.js +4 -4
- package/chunk/CountryComponentWrapper-ZvBsjX0l.js +4 -4
- package/chunk/{DischargeDateComponent-DuJO1xvy.js → DischargeDateComponent-DmfDDmWr.js} +5 -5
- package/chunk/{DischargeDateComponent-CE7d9Tm4.js.map → DischargeDateComponent-DmfDDmWr.js.map} +1 -1
- package/chunk/{DischargeDateComponent-CE7d9Tm4.js → DischargeDateComponent-lYQRumBW.js} +5 -5
- package/chunk/{DischargeDateComponent-DuJO1xvy.js.map → DischargeDateComponent-lYQRumBW.js.map} +1 -1
- package/chunk/DriverLicenseNumberComponent-D6O21jQQ.js +4 -4
- package/chunk/DriverLicenseNumberComponent-K8bTab_I.js +4 -4
- package/chunk/{EmailLoopPending-DI76b6U9.js → EmailLoopPending-B3NjLevJ.js} +19 -19
- package/chunk/{EmailLoopPending-DI76b6U9.js.map → EmailLoopPending-B3NjLevJ.js.map} +1 -1
- package/chunk/{EmailLoopPending-nqmGJQhh.js → EmailLoopPending-CsLNydVl.js} +15 -15
- package/chunk/{EmailLoopPending-nqmGJQhh.js.map → EmailLoopPending-CsLNydVl.js.map} +1 -1
- package/chunk/{ExtraMessage-WGe7ZQyg.js → ExtraMessage-CmZsLEQu.js} +5 -5
- package/chunk/{ExtraMessage-CcqDnr5y.js.map → ExtraMessage-CmZsLEQu.js.map} +1 -1
- package/chunk/{ExtraMessage-CcqDnr5y.js → ExtraMessage-DVAZbguB.js} +9 -9
- package/chunk/{ExtraMessage-WGe7ZQyg.js.map → ExtraMessage-DVAZbguB.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-CmATK21l.js → FirstResponderOrganizationComponent-CtDqxnQQ.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-CmATK21l.js.map → FirstResponderOrganizationComponent-CtDqxnQQ.js.map} +1 -1
- package/chunk/{FirstResponderOrganizationComponent-BRRa_qj-.js → FirstResponderOrganizationComponent-Drf19OL-.js} +5 -5
- package/chunk/{FirstResponderOrganizationComponent-BRRa_qj-.js.map → FirstResponderOrganizationComponent-Drf19OL-.js.map} +1 -1
- package/chunk/FormFieldInputSelect-CCyn1vvf.js +4 -4
- package/chunk/FormFieldInputSelect-CEVgL_cH.js +4 -4
- package/chunk/FormFieldLayout-BesyfbpW.js +4 -4
- package/chunk/FormFieldLayout-CVSvHLSi.js +4 -4
- package/chunk/FormFieldText-BtlTdgzX.js +4 -4
- package/chunk/FormFieldText-yR7hiQsc.js +4 -4
- package/chunk/{FormFieldTypeahead-ChF6x24k.js → FormFieldTypeahead-CH_TSGle.js} +377 -377
- package/chunk/{FormFieldTypeahead-ChF6x24k.js.map → FormFieldTypeahead-CH_TSGle.js.map} +1 -1
- package/chunk/{FormFieldTypeahead-CtxrXjHv.js → FormFieldTypeahead-Da-vHxEO.js} +419 -419
- package/chunk/{FormFieldTypeahead-CtxrXjHv.js.map → FormFieldTypeahead-Da-vHxEO.js.map} +1 -1
- package/chunk/FormSelectChoice-D-8ofshG.js +4 -4
- package/chunk/FormSelectChoice-DlGn-Pdy.js +4 -4
- package/chunk/InputText-BB3UKiij.js +4 -4
- package/chunk/InputText-V45_YE-T.js +4 -4
- package/chunk/{LicensedProfessionalOrganizationComponent-DBXMMx_e.js → LicensedProfessionalOrganizationComponent-BT4n-ToV.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-DBXMMx_e.js.map → LicensedProfessionalOrganizationComponent-BT4n-ToV.js.map} +1 -1
- package/chunk/{LicensedProfessionalOrganizationComponent-sDiGRvUQ.js → LicensedProfessionalOrganizationComponent-sC--o74M.js} +5 -5
- package/chunk/{LicensedProfessionalOrganizationComponent-sDiGRvUQ.js.map → LicensedProfessionalOrganizationComponent-sC--o74M.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-CnulmvG6.js → LowIncomeOrganizationComponent-BvyJXrdQ.js} +5 -5
- package/chunk/{LowIncomeOrganizationComponent-CnulmvG6.js.map → LowIncomeOrganizationComponent-BvyJXrdQ.js.map} +1 -1
- package/chunk/{LowIncomeOrganizationComponent-D8gq-gLP.js → LowIncomeOrganizationComponent-CLJNbJKu.js} +5 -5
- package/chunk/{LowIncomeOrganizationComponent-D8gq-gLP.js.map → LowIncomeOrganizationComponent-CLJNbJKu.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-DTOhrqUL.js → MedicalProfessionalOrganizationComponent-B-syoAlu.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-3Itqu9cN.js.map → MedicalProfessionalOrganizationComponent-B-syoAlu.js.map} +1 -1
- package/chunk/{MedicalProfessionalOrganizationComponent-3Itqu9cN.js → MedicalProfessionalOrganizationComponent-BmiJZots.js} +5 -5
- package/chunk/{MedicalProfessionalOrganizationComponent-DTOhrqUL.js.map → MedicalProfessionalOrganizationComponent-BmiJZots.js.map} +1 -1
- package/chunk/MemberIdComponent-Cu2-mU8u.js +4 -4
- package/chunk/MemberIdComponent-D23Ilwkz.js +4 -4
- package/chunk/{MembershipOrganizationComponent-DIMXdPl3.js → MembershipOrganizationComponent-Bf1xshzG.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-DIMXdPl3.js.map → MembershipOrganizationComponent-Bf1xshzG.js.map} +1 -1
- package/chunk/{MembershipOrganizationComponent-Ie7etzSn.js → MembershipOrganizationComponent-CIoAj7iZ.js} +5 -5
- package/chunk/{MembershipOrganizationComponent-Ie7etzSn.js.map → MembershipOrganizationComponent-CIoAj7iZ.js.map} +1 -1
- package/chunk/Onfido-37vLDu4k.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-BLlwswI-.js +4 -4
- package/chunk/PersonalInfoStepSubmitButton-veY-9f10.js +4 -4
- package/chunk/PersonalInfoStepWrapper-BiSzCAk8.js +4 -4
- package/chunk/PersonalInfoStepWrapper-HXjWWCYf.js +4 -4
- package/chunk/PostalCodeComponent-DvZ8oZli.js +4 -4
- package/chunk/PostalCodeComponent-lrJGRros.js +4 -4
- package/chunk/SSN-CQUI4vVz.js +4 -4
- package/chunk/SSN-DQ81decb.js +4 -4
- package/chunk/StateSelectComponent-CG87WpOW.js +4 -4
- package/chunk/StateSelectComponent-nOsC00ex.js +4 -4
- package/chunk/StatusComponent-BJQNoEQp.js +4 -4
- package/chunk/StatusComponent-n3jBHJdZ.js +4 -4
- package/chunk/{StepAgePersonalInfo-DtdP8w7b.js → StepAgePersonalInfo-BbImsXfx.js} +8 -8
- package/chunk/{StepAgePersonalInfo-Ca8JaxOI.js.map → StepAgePersonalInfo-BbImsXfx.js.map} +1 -1
- package/chunk/{StepAgePersonalInfo-Ca8JaxOI.js → StepAgePersonalInfo-D21CSk3y.js} +8 -8
- package/chunk/{StepAgePersonalInfo-DtdP8w7b.js.map → StepAgePersonalInfo-D21CSk3y.js.map} +1 -1
- package/chunk/StepCard-BZ5kx6cD.js +4 -4
- package/chunk/StepCard-D_mLHJLz.js +4 -4
- package/chunk/StepCollectIdentifier-2rYBJnI1.js +4 -4
- package/chunk/StepCollectIdentifier-mZjiHAT1.js +4 -4
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DIzCW8K5.js → StepCollectMilitaryPersonalInfoComponent-Be7kYEbM.js} +9 -9
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-DIzCW8K5.js.map → StepCollectMilitaryPersonalInfoComponent-Be7kYEbM.js.map} +1 -1
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CgGDBhZS.js → StepCollectMilitaryPersonalInfoComponent-Y6UPWKD2.js} +9 -9
- package/chunk/{StepCollectMilitaryPersonalInfoComponent-CgGDBhZS.js.map → StepCollectMilitaryPersonalInfoComponent-Y6UPWKD2.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-HNqAjPy4.js → StepCollectPersonalInfo-6evU9UFg.js} +16 -16
- package/chunk/{StepCollectPersonalInfo-HNqAjPy4.js.map → StepCollectPersonalInfo-6evU9UFg.js.map} +1 -1
- package/chunk/{StepCollectPersonalInfo-mLCPwTN6.js → StepCollectPersonalInfo-XkEXV-iW.js} +16 -16
- package/chunk/{StepCollectPersonalInfo-mLCPwTN6.js.map → StepCollectPersonalInfo-XkEXV-iW.js.map} +1 -1
- package/chunk/StepCompleteAuthentication-DnTif2W6.js +4 -4
- package/chunk/StepCompleteAuthentication-aBe0T7BX.js +4 -4
- package/chunk/{StepConsolation-DdswFFPp.js → StepConsolation-2GKAlcdt.js} +13 -13
- package/chunk/{StepConsolation-DdswFFPp.js.map → StepConsolation-2GKAlcdt.js.map} +1 -1
- package/chunk/{StepConsolation-UdKEsKki.js → StepConsolation-L3B5-pCn.js} +18 -18
- package/chunk/{StepConsolation-UdKEsKki.js.map → StepConsolation-L3B5-pCn.js.map} +1 -1
- package/chunk/{StepDocUpload-BY28iUhz.js → StepDocUpload-BOpUs-jc.js} +185 -185
- package/chunk/{StepDocUpload-BY28iUhz.js.map → StepDocUpload-BOpUs-jc.js.map} +1 -1
- package/chunk/{StepDocUpload-Uk4OkEbk.js → StepDocUpload-Ck2Fkmt3.js} +482 -482
- package/chunk/{StepDocUpload-Uk4OkEbk.js.map → StepDocUpload-Ck2Fkmt3.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-veSQF1xd.js → StepDriverLicensePersonalInfoComponent-YmaqDbhD.js} +6 -6
- package/chunk/{StepDriverLicensePersonalInfoComponent-BbamyvXd.js.map → StepDriverLicensePersonalInfoComponent-YmaqDbhD.js.map} +1 -1
- package/chunk/{StepDriverLicensePersonalInfoComponent-BbamyvXd.js → StepDriverLicensePersonalInfoComponent-ro1ZZchn.js} +6 -6
- package/chunk/{StepDriverLicensePersonalInfoComponent-veSQF1xd.js.map → StepDriverLicensePersonalInfoComponent-ro1ZZchn.js.map} +1 -1
- package/chunk/{StepEmailLoop-DsL4IHH7.js → StepEmailLoop-B09M3kHx.js} +29 -29
- package/chunk/{StepEmailLoop-DsL4IHH7.js.map → StepEmailLoop-B09M3kHx.js.map} +1 -1
- package/chunk/{StepEmailLoop-FytSYfcH.js → StepEmailLoop-BK-jB2V7.js} +17 -17
- package/chunk/{StepEmailLoop-FytSYfcH.js.map → StepEmailLoop-BK-jB2V7.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-suokVw34.js → StepEmploymentPersonalInfo-CkpQtqFc.js} +7 -7
- package/chunk/{StepEmploymentPersonalInfo-suokVw34.js.map → StepEmploymentPersonalInfo-CkpQtqFc.js.map} +1 -1
- package/chunk/{StepEmploymentPersonalInfo-CT0xdIqB.js → StepEmploymentPersonalInfo-Dm54oUuJ.js} +7 -7
- package/chunk/{StepEmploymentPersonalInfo-CT0xdIqB.js.map → StepEmploymentPersonalInfo-Dm54oUuJ.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-cJ0I66V3.js → StepFirstResponderPersonalInfo-ab_a-a76.js} +9 -9
- package/chunk/{StepFirstResponderPersonalInfo-cJ0I66V3.js.map → StepFirstResponderPersonalInfo-ab_a-a76.js.map} +1 -1
- package/chunk/{StepFirstResponderPersonalInfo-21K4JPLJ.js → StepFirstResponderPersonalInfo-reHh6B-r.js} +9 -9
- package/chunk/{StepFirstResponderPersonalInfo-21K4JPLJ.js.map → StepFirstResponderPersonalInfo-reHh6B-r.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-0vDhvX-f.js → StepGeneralIdentityPersonalInfoComponent-CfiOPTKL.js} +7 -7
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-0vDhvX-f.js.map → StepGeneralIdentityPersonalInfoComponent-CfiOPTKL.js.map} +1 -1
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-LtXbbdTk.js → StepGeneralIdentityPersonalInfoComponent-zArdBXOy.js} +7 -7
- package/chunk/{StepGeneralIdentityPersonalInfoComponent-LtXbbdTk.js.map → StepGeneralIdentityPersonalInfoComponent-zArdBXOy.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CZ_NWsU5.js → StepHybridIdentityPersonalInfoComponent-Ddi_sFSV.js} +7 -7
- package/chunk/{StepHybridIdentityPersonalInfoComponent-CZ_NWsU5.js.map → StepHybridIdentityPersonalInfoComponent-Ddi_sFSV.js.map} +1 -1
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D_kNxG4z.js → StepHybridIdentityPersonalInfoComponent-eKyrwWDx.js} +7 -7
- package/chunk/{StepHybridIdentityPersonalInfoComponent-D_kNxG4z.js.map → StepHybridIdentityPersonalInfoComponent-eKyrwWDx.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-Cs9sCYeC.js → StepIDCheckLoop-CzOTam3f.js} +5 -5
- package/chunk/{StepIDCheckLoop-Cs9sCYeC.js.map → StepIDCheckLoop-CzOTam3f.js.map} +1 -1
- package/chunk/{StepIDCheckLoop-y3B18jLz.js → StepIDCheckLoop-NVY6Na18.js} +5 -5
- package/chunk/{StepIDCheckLoop-y3B18jLz.js.map → StepIDCheckLoop-NVY6Na18.js.map} +1 -1
- package/chunk/StepIDCheckLoopOnfido-BN0JQSB1.js +4 -4
- package/chunk/StepIDCheckLoopOnfido-BiO4Prw4.js +4 -4
- package/chunk/{StepIDCheckLoopRegula-Ds4UjuR0.js → StepIDCheckLoopRegula--6TQ7fHt.js} +37 -37
- package/chunk/{StepIDCheckLoopRegula-B04QQ5kq.js.map → StepIDCheckLoopRegula--6TQ7fHt.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-B04QQ5kq.js → StepIDCheckLoopRegula-CU0C7_yr.js} +20 -20
- package/chunk/{StepIDCheckLoopRegula-Ds4UjuR0.js.map → StepIDCheckLoopRegula-CU0C7_yr.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-ZnVGGI7J.js → StepLicensedProfessionalPersonalInfo-CNoYHtIc.js} +9 -9
- package/chunk/{StepLicensedProfessionalPersonalInfo-CGg2o0fx.js.map → StepLicensedProfessionalPersonalInfo-CNoYHtIc.js.map} +1 -1
- package/chunk/{StepLicensedProfessionalPersonalInfo-CGg2o0fx.js → StepLicensedProfessionalPersonalInfo-CsSeujol.js} +9 -9
- package/chunk/{StepLicensedProfessionalPersonalInfo-ZnVGGI7J.js.map → StepLicensedProfessionalPersonalInfo-CsSeujol.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-C_R16jsz.js → StepLowIncomePersonalInfo-B4ItgnSU.js} +8 -8
- package/chunk/{StepLowIncomePersonalInfo-C_R16jsz.js.map → StepLowIncomePersonalInfo-B4ItgnSU.js.map} +1 -1
- package/chunk/{StepLowIncomePersonalInfo-BiMIDkdF.js → StepLowIncomePersonalInfo-Bx2sI2Zj.js} +8 -8
- package/chunk/{StepLowIncomePersonalInfo-BiMIDkdF.js.map → StepLowIncomePersonalInfo-Bx2sI2Zj.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-BRInNGaM.js → StepMedicalProfessionalPersonalInfo-3VniR-r2.js} +9 -9
- package/chunk/{StepMedicalProfessionalPersonalInfo-BRInNGaM.js.map → StepMedicalProfessionalPersonalInfo-3VniR-r2.js.map} +1 -1
- package/chunk/{StepMedicalProfessionalPersonalInfo-DBueJ-et.js → StepMedicalProfessionalPersonalInfo-BPcnz6WY.js} +9 -9
- package/chunk/{StepMedicalProfessionalPersonalInfo-DBueJ-et.js.map → StepMedicalProfessionalPersonalInfo-BPcnz6WY.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-DV17pI3O.js → StepMemberPersonalInfo-BLSxbVT5.js} +8 -8
- package/chunk/{StepMemberPersonalInfo-AXsuKV9t.js.map → StepMemberPersonalInfo-BLSxbVT5.js.map} +1 -1
- package/chunk/{StepMemberPersonalInfo-AXsuKV9t.js → StepMemberPersonalInfo-CqDljJ_G.js} +8 -8
- package/chunk/{StepMemberPersonalInfo-DV17pI3O.js.map → StepMemberPersonalInfo-CqDljJ_G.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-DLA7Lwxq.js → StepMoverPersonalInfo-CEzqq77M.js} +6 -6
- package/chunk/{StepMoverPersonalInfo-DLA7Lwxq.js.map → StepMoverPersonalInfo-CEzqq77M.js.map} +1 -1
- package/chunk/{StepMoverPersonalInfo-GPZw8v_N.js → StepMoverPersonalInfo-mDxH8pdD.js} +6 -6
- package/chunk/{StepMoverPersonalInfo-GPZw8v_N.js.map → StepMoverPersonalInfo-mDxH8pdD.js.map} +1 -1
- package/chunk/{StepOverrideComponent-6emc4t15.js → StepOverrideComponent-BRbDer8j.js} +25 -25
- package/chunk/{StepOverrideComponent-6emc4t15.js.map → StepOverrideComponent-BRbDer8j.js.map} +1 -1
- package/chunk/{StepOverrideComponent-Cd1adOMO.js → StepOverrideComponent-DzKCqsTp.js} +16 -16
- package/chunk/{StepOverrideComponent-Cd1adOMO.js.map → StepOverrideComponent-DzKCqsTp.js.map} +1 -1
- package/chunk/StepSMSLoop-BJLKDaZG.js +4 -4
- package/chunk/StepSMSLoop-DYCZvGvb.js +4 -4
- package/chunk/StepSSO-B0NDIcgz.js +4 -4
- package/chunk/StepSSO-DYAr8DyT.js +4 -4
- package/chunk/{StepSocialSecurityNumber-BlD9PCHV.js → StepSocialSecurityNumber-Cj4IegXf.js} +15 -15
- package/chunk/{StepSocialSecurityNumber-BGsRsjM1.js.map → StepSocialSecurityNumber-Cj4IegXf.js.map} +1 -1
- package/chunk/{StepSocialSecurityNumber-BGsRsjM1.js → StepSocialSecurityNumber-D_6-yJHJ.js} +18 -18
- package/chunk/{StepSocialSecurityNumber-BlD9PCHV.js.map → StepSocialSecurityNumber-D_6-yJHJ.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-geh6wZ_D.js → StepStudentPersonalInfo-D7UYHkij.js} +9 -9
- package/chunk/{StepStudentPersonalInfo-B8ZqZXMN.js.map → StepStudentPersonalInfo-D7UYHkij.js.map} +1 -1
- package/chunk/{StepStudentPersonalInfo-B8ZqZXMN.js → StepStudentPersonalInfo-DoCd4QzI.js} +38 -38
- package/chunk/{StepStudentPersonalInfo-geh6wZ_D.js.map → StepStudentPersonalInfo-DoCd4QzI.js.map} +1 -1
- package/chunk/{StepSuccess-CB3MM6Ok.js → StepSuccess-COzcG0d4.js} +32 -32
- package/chunk/{StepSuccess-CB3MM6Ok.js.map → StepSuccess-COzcG0d4.js.map} +1 -1
- package/chunk/{StepSuccess-CJKRWcmj.js → StepSuccess-DmBqpPul.js} +22 -22
- package/chunk/{StepSuccess-CJKRWcmj.js.map → StepSuccess-DmBqpPul.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-PSnqhgwN.js → StepTeacherPersonalInfo-C-gLF7UY.js} +9 -9
- package/chunk/{StepTeacherPersonalInfo-Bw1E5Mjo.js.map → StepTeacherPersonalInfo-C-gLF7UY.js.map} +1 -1
- package/chunk/{StepTeacherPersonalInfo-Bw1E5Mjo.js → StepTeacherPersonalInfo-CK9KHo6m.js} +9 -9
- package/chunk/{StepTeacherPersonalInfo-PSnqhgwN.js.map → StepTeacherPersonalInfo-CK9KHo6m.js.map} +1 -1
- package/chunk/StepThirdPartyLoop-CemU-J3W.js +4 -4
- package/chunk/StepThirdPartyLoop-DpCPBnq_.js +4 -4
- package/chunk/{TeacherSchoolComponent-CZ_Ju_nz.js → TeacherSchoolComponent-5NrzG4iI.js} +5 -5
- package/chunk/{TeacherSchoolComponent-CZ_Ju_nz.js.map → TeacherSchoolComponent-5NrzG4iI.js.map} +1 -1
- package/chunk/{TeacherSchoolComponent-Dfb49YI1.js → TeacherSchoolComponent-CqCF369X.js} +5 -5
- package/chunk/{TeacherSchoolComponent-Dfb49YI1.js.map → TeacherSchoolComponent-CqCF369X.js.map} +1 -1
- package/chunk/ThreatMetrix-BZ2mAsXV.js +4 -4
- package/chunk/ar-Dv80pKr-.js +4 -4
- package/chunk/bg-BdSc6G6N.js +4 -4
- package/chunk/bn-IN-CrUr8JOI.js +4 -4
- package/chunk/countryUtils-DaKrkKMK.js +4 -4
- package/chunk/countryUtils-H8nsbqSo.js +4 -4
- package/chunk/cs-DpA5-rH7.js +4 -4
- package/chunk/da-C3-FJEY_.js +4 -4
- package/chunk/de-jPL9fRXR.js +4 -4
- package/chunk/downshift.esm-Cj6_BOEM.js +4 -4
- package/chunk/downshift.esm-LvcDlmEB.js +4 -4
- package/chunk/el-DlrR5LMm.js +4 -4
- package/chunk/en-GB-W9d6ZCN1.js +4 -4
- package/chunk/es-B6OTYL4o.js +4 -4
- package/chunk/es-ES-xHUvZoL6.js +4 -4
- package/chunk/et-DslGQ4U9.js +4 -4
- package/chunk/fa-CyMH0fVT.js +4 -4
- package/chunk/fi-DlWjgmmJ.js +4 -4
- package/chunk/fr-CA-CNlAWAGz.js +4 -4
- package/chunk/fr-CKAMq4d5.js +4 -4
- package/chunk/ga-DtNqo3ZG.js +4 -4
- package/chunk/hi-IN-D_eGFRvE.js +4 -4
- package/chunk/hr-DTuTLrLg.js +4 -4
- package/chunk/hu-DSRQQvFq.js +4 -4
- package/chunk/id-Dt1qRS4w.js +4 -4
- package/chunk/is-DFKTfJF9.js +4 -4
- package/chunk/it-DAMkVYDo.js +4 -4
- package/chunk/iw-B-0MBQrz.js +4 -4
- package/chunk/ja-C5qGKliw.js +4 -4
- package/chunk/kk-Cv_pOPga.js +4 -4
- package/chunk/ko-DF10ih6D.js +4 -4
- package/chunk/lo-1CgtDqdu.js +4 -4
- package/chunk/lt-5ciyKS_n.js +4 -4
- package/chunk/lv-BVU8SzMV.js +4 -4
- package/chunk/mocks-BxRYqs3S.js +4 -4
- package/chunk/mocks-DhaSEfKH.js +4 -4
- package/chunk/ms-DfT-JI0V.js +4 -4
- package/chunk/nl-BE-DWOhBddM.js +4 -4
- package/chunk/nl-CAa4TZix.js +4 -4
- package/chunk/no-BDEZtPNY.js +4 -4
- package/chunk/pl-cJhZ0uIf.js +4 -4
- package/chunk/pt-BR-BRTaX_c8.js +4 -4
- package/chunk/pt-DUpqsAm0.js +4 -4
- package/chunk/ro-C7LObCGu.js +4 -4
- package/chunk/ru-Cn52qo44.js +4 -4
- package/chunk/sk-CyBj5Lrr.js +4 -4
- package/chunk/sl-B83EBD3O.js +4 -4
- package/chunk/sr-BWltsfGo.js +4 -4
- package/chunk/sv-WoxLH2NJ.js +4 -4
- package/chunk/sw-DVbHvR4N.js +4 -4
- package/chunk/ta-CCOsIMmw.js +4 -4
- package/chunk/th-OmrOHkUd.js +4 -4
- package/chunk/tl-SPm1AiBZ.js +4 -4
- package/chunk/tr-CaKTs3Fq.js +4 -4
- package/chunk/uk-BUsn2zPB.js +4 -4
- package/chunk/ur-Cm2EOQrR.js +4 -4
- package/chunk/{useCollectFieldsEndpoint-DAgrG_FJ.js → useCollectFieldsEndpoint-CWkFjx5s.js} +9 -9
- package/chunk/{useCollectFieldsEndpoint-DAgrG_FJ.js.map → useCollectFieldsEndpoint-CWkFjx5s.js.map} +1 -1
- package/chunk/{useCollectFieldsEndpoint-ielmtTHm.js → useCollectFieldsEndpoint-DgcqtYAq.js} +15 -15
- package/chunk/{useCollectFieldsEndpoint-ielmtTHm.js.map → useCollectFieldsEndpoint-DgcqtYAq.js.map} +1 -1
- package/chunk/useMetrics-BxQBcyhj.js +4 -4
- package/chunk/useMetrics-wi33JsKT.js +4 -4
- package/chunk/vi-gUtmT7wP.js +4 -4
- package/chunk/zh-Bri8XWQG.js +4 -4
- package/chunk/zh-HK-K7X0SaAv.js +4 -4
- package/chunk/zu-DPTVvU5o.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 +1044 -1072
- package/sheerid.js.map +1 -1
|
@@ -4,30 +4,30 @@
|
|
|
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: Wed Jun 24 2026
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.248.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1782334794973
|
|
9
|
+
* BUILD_DATE: Wed Jun 24 2026 20:59:54 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 8cb06b1fe5288b47f3dca59fb4c49ff9b8bc12b4
|
|
11
11
|
*/
|
|
12
|
-
import { $ as e, $t as t, C as n, D as r, E as i, Gt as a, Jt as o, Rt as s, S as c, Sn as l, T as u, Tt as d, Wt as f, X as p, Yt as m, Zt as h, _ as g, b as _, bn as v, c as y, cn as b,
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { a as
|
|
16
|
-
import { t as
|
|
12
|
+
import { $ as e, $t as t, C as n, D as r, E as i, Gt as a, Jt as o, Rt as s, S as c, Sn as l, T as u, Tt as d, Wt as f, X as p, Yt as m, Zt as h, _ as g, b as _, bn as v, c as y, cn as b, d as x, f as S, ft as C, g as w, gt as T, h as E, l as D, ln as O, m as k, mt as A, p as j, pt as M, r as N, rt as P, s as F, st as I, tn as L, u as R, v as ee, w as z, wn as B, x as V, xn as H, y as te } from "../_mysheerid-preview.js";
|
|
13
|
+
import { n as ne, t as re } from "./FormFieldLayout-CVSvHLSi.js";
|
|
14
|
+
import { t as U } from "./downshift.esm-LvcDlmEB.js";
|
|
15
|
+
import { a as W, o as ie } from "./useMetrics-BxQBcyhj.js";
|
|
16
|
+
import { t as ae } from "./countryUtils-H8nsbqSo.js";
|
|
17
17
|
//#region ../packages/org-search/src/SearchOverlay/context.ts
|
|
18
|
-
var
|
|
18
|
+
var G = /* @__PURE__ */ B(t(), 1), oe = (0, G.createContext)({
|
|
19
19
|
showOverlay: !1,
|
|
20
20
|
setShowOverlay: () => void 0
|
|
21
|
-
}),
|
|
21
|
+
}), se = () => (0, G.useContext)(oe), ce = (0, G.createContext)(null), le = () => (0, G.useContext)(ce);
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region ../packages/org-search/src/hooks/useGeoLocation.ts
|
|
24
|
-
function
|
|
25
|
-
let [e, t] = (0,
|
|
24
|
+
function ue() {
|
|
25
|
+
let [e, t] = (0, G.useState)(null), [n, r] = (0, G.useState)(null), [i, a] = (0, G.useState)(!1);
|
|
26
26
|
return {
|
|
27
27
|
location: e,
|
|
28
28
|
error: n,
|
|
29
29
|
loading: i,
|
|
30
|
-
requestLocation: (0,
|
|
30
|
+
requestLocation: (0, G.useCallback)(() => (a(!0), r(null), new Promise((e, n) => {
|
|
31
31
|
navigator.geolocation.getCurrentPosition((n) => {
|
|
32
32
|
let r = {
|
|
33
33
|
latitude: n.coords.latitude,
|
|
@@ -46,15 +46,15 @@ function de() {
|
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region ../packages/org-search/src/SearchRanking/SearchRankingProvider.tsx
|
|
49
|
-
var
|
|
50
|
-
let [t, n] = (0,
|
|
49
|
+
var K = M(), de = ({ children: e }) => {
|
|
50
|
+
let [t, n] = (0, G.useState)("relevance"), [r, i] = (0, G.useState)(null), [a, o] = (0, G.useState)(!1), s = ue(), c = (0, G.useCallback)(async () => {
|
|
51
51
|
try {
|
|
52
52
|
let e = await s.requestLocation();
|
|
53
53
|
return i(e), o(!1), e;
|
|
54
54
|
} catch {
|
|
55
55
|
throw o(!0), Error("Location denied");
|
|
56
56
|
}
|
|
57
|
-
}, [s]), l = (0,
|
|
57
|
+
}, [s]), l = (0, G.useMemo)(() => ({
|
|
58
58
|
sortMode: t,
|
|
59
59
|
userLocation: r,
|
|
60
60
|
locationDenied: a,
|
|
@@ -66,12 +66,12 @@ var G = P(), fe = ({ children: e }) => {
|
|
|
66
66
|
a,
|
|
67
67
|
c
|
|
68
68
|
]);
|
|
69
|
-
return /* @__PURE__ */ (0,
|
|
69
|
+
return /* @__PURE__ */ (0, K.jsx)(ce.Provider, {
|
|
70
70
|
value: l,
|
|
71
71
|
children: e
|
|
72
72
|
});
|
|
73
|
-
},
|
|
74
|
-
let [r, i] = (0,
|
|
73
|
+
}, fe = "button, a[href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])", pe = ({ children: e, enabled: t, closeSectionLabel: n }) => {
|
|
74
|
+
let [r, i] = (0, G.useState)(!1), a = (0, G.useRef)(null), o = t && r, s = (0, G.useRef)(0), c = (e) => {
|
|
75
75
|
if (!t) return;
|
|
76
76
|
let n = window !== window.top;
|
|
77
77
|
if (e && r === !1) {
|
|
@@ -85,41 +85,41 @@ var G = P(), fe = ({ children: e }) => {
|
|
|
85
85
|
}
|
|
86
86
|
e || (document.body.style.overflow = "unset", document.body.style.backgroundColor = "unset", window.scrollTo({ top: s.current }), n && (document.body.style.height = "unset")), i(e);
|
|
87
87
|
};
|
|
88
|
-
return (0,
|
|
88
|
+
return (0, G.useEffect)(() => {
|
|
89
89
|
if (!o) return;
|
|
90
90
|
let e = (e) => {
|
|
91
91
|
if (e.key !== "Tab") return;
|
|
92
92
|
let t = a.current;
|
|
93
93
|
if (!t) return;
|
|
94
|
-
let n = t.querySelectorAll(
|
|
94
|
+
let n = t.querySelectorAll(fe), r = n[0], i = n[n.length - 1];
|
|
95
95
|
e.shiftKey && document.activeElement === r ? (e.preventDefault(), i?.focus()) : !e.shiftKey && document.activeElement === i && (e.preventDefault(), r?.focus());
|
|
96
96
|
};
|
|
97
97
|
return document.addEventListener("keydown", e, !0), () => document.removeEventListener("keydown", e, !0);
|
|
98
|
-
}, [o]), t ? /* @__PURE__ */ (0,
|
|
98
|
+
}, [o]), t ? /* @__PURE__ */ (0, K.jsx)(oe.Provider, {
|
|
99
99
|
value: {
|
|
100
100
|
showOverlay: o,
|
|
101
101
|
setShowOverlay: c
|
|
102
102
|
},
|
|
103
|
-
children: /* @__PURE__ */ (0,
|
|
103
|
+
children: /* @__PURE__ */ (0, K.jsx)(de, { children: /* @__PURE__ */ (0, K.jsx)("div", {
|
|
104
104
|
className: o && "sid-search-overlay__overlay",
|
|
105
|
-
children: /* @__PURE__ */ (0,
|
|
105
|
+
children: /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
106
106
|
className: o && "sid-search-overlay__container",
|
|
107
107
|
ref: a,
|
|
108
|
-
children: [o && /* @__PURE__ */ (0,
|
|
108
|
+
children: [o && /* @__PURE__ */ (0, K.jsx)("button", {
|
|
109
109
|
className: "sid-search-overlay__close",
|
|
110
110
|
onClick: () => c(!1),
|
|
111
111
|
children: n
|
|
112
112
|
}), e]
|
|
113
113
|
})
|
|
114
114
|
}) })
|
|
115
|
-
}) : /* @__PURE__ */ (0,
|
|
116
|
-
},
|
|
117
|
-
let i = (0,
|
|
118
|
-
return (0,
|
|
115
|
+
}) : /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: e });
|
|
116
|
+
}, me = ({ org: e, onClear: t, clearSelectionLabel: n, labelId: r }) => {
|
|
117
|
+
let i = (0, G.useRef)(null), a = [e.city, e.state].filter(Boolean).join(", "), o = [e.name, a].filter(Boolean).join(", ");
|
|
118
|
+
return (0, G.useEffect)(() => {
|
|
119
119
|
i.current?.focus();
|
|
120
|
-
}, []), /* @__PURE__ */ (0,
|
|
120
|
+
}, []), /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
121
121
|
className: "sid-selected-org__wrapper",
|
|
122
|
-
children: [/* @__PURE__ */ (0,
|
|
122
|
+
children: [/* @__PURE__ */ (0, K.jsx)("input", {
|
|
123
123
|
ref: i,
|
|
124
124
|
className: "sid-h-screen-reader-only",
|
|
125
125
|
type: "text",
|
|
@@ -127,16 +127,16 @@ var G = P(), fe = ({ children: e }) => {
|
|
|
127
127
|
"aria-labelledby": r,
|
|
128
128
|
"aria-expanded": !1,
|
|
129
129
|
value: o
|
|
130
|
-
}), /* @__PURE__ */ (0,
|
|
130
|
+
}), /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
131
131
|
className: "sid-selected-org__container",
|
|
132
|
-
children: [/* @__PURE__ */ (0,
|
|
132
|
+
children: [/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
133
133
|
className: "sid-selected-org__name",
|
|
134
134
|
"aria-hidden": "true",
|
|
135
|
-
children: [e.name, a && /* @__PURE__ */ (0,
|
|
135
|
+
children: [e.name, a && /* @__PURE__ */ (0, K.jsx)("span", {
|
|
136
136
|
className: "sid-selected-org__location",
|
|
137
137
|
children: a
|
|
138
138
|
})]
|
|
139
|
-
}), /* @__PURE__ */ (0,
|
|
139
|
+
}), /* @__PURE__ */ (0, K.jsx)("button", {
|
|
140
140
|
className: "sid-selected-org__clear",
|
|
141
141
|
"aria-label": n,
|
|
142
142
|
onClick: t,
|
|
@@ -144,28 +144,28 @@ var G = P(), fe = ({ children: e }) => {
|
|
|
144
144
|
})]
|
|
145
145
|
})]
|
|
146
146
|
});
|
|
147
|
-
},
|
|
148
|
-
function
|
|
147
|
+
}, he = 6371;
|
|
148
|
+
function ge(e, t, n, r) {
|
|
149
149
|
let i = (e) => e * Math.PI / 180, a = i(n - e), o = i(r - t), s = Math.sin(a / 2) * Math.sin(a / 2) + Math.cos(i(e)) * Math.cos(i(n)) * Math.sin(o / 2) * Math.sin(o / 2);
|
|
150
|
-
return
|
|
150
|
+
return he * (2 * Math.atan2(Math.sqrt(s), Math.sqrt(1 - s)));
|
|
151
151
|
}
|
|
152
|
-
var
|
|
153
|
-
function
|
|
154
|
-
return
|
|
152
|
+
var _e = ["en-us", "en-gb"];
|
|
153
|
+
function ve(e) {
|
|
154
|
+
return _e.includes(e.toLowerCase()) ? "miles" : "kilometers";
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function ye(e, t) {
|
|
157
157
|
let n = t === "miles" ? "mi" : "km", r = t === "miles" ? e * .621371 : e, i = Math.round(r * 10) / 10;
|
|
158
158
|
return i >= 10 ? `${Math.round(r)} ${n}` : `${i} ${n}`;
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region ../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
162
|
-
function
|
|
163
|
-
let t = e + "CollectionProvider", [r, a] =
|
|
162
|
+
function be(e) {
|
|
163
|
+
let t = e + "CollectionProvider", [r, a] = z(t), [o, s] = r(t, {
|
|
164
164
|
collectionRef: { current: null },
|
|
165
165
|
itemMap: /* @__PURE__ */ new Map()
|
|
166
166
|
}), c = (e) => {
|
|
167
|
-
let { scope: t, children: n } = e, r =
|
|
168
|
-
return /* @__PURE__ */ (0,
|
|
167
|
+
let { scope: t, children: n } = e, r = G.useRef(null), i = G.useRef(/* @__PURE__ */ new Map()).current;
|
|
168
|
+
return /* @__PURE__ */ (0, K.jsx)(o, {
|
|
169
169
|
scope: t,
|
|
170
170
|
itemMap: i,
|
|
171
171
|
collectionRef: r,
|
|
@@ -173,20 +173,20 @@ function xe(e) {
|
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
175
|
c.displayName = t;
|
|
176
|
-
let l = e + "CollectionSlot", u = n(l), d =
|
|
176
|
+
let l = e + "CollectionSlot", u = n(l), d = G.forwardRef((e, t) => {
|
|
177
177
|
let { scope: n, children: r } = e;
|
|
178
|
-
return /* @__PURE__ */ (0,
|
|
178
|
+
return /* @__PURE__ */ (0, K.jsx)(u, {
|
|
179
179
|
ref: i(t, s(l, n).collectionRef),
|
|
180
180
|
children: r
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
183
|
d.displayName = l;
|
|
184
|
-
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = n(f), h =
|
|
185
|
-
let { scope: n, children: r, ...a } = e, o =
|
|
186
|
-
return
|
|
184
|
+
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = n(f), h = G.forwardRef((e, t) => {
|
|
185
|
+
let { scope: n, children: r, ...a } = e, o = G.useRef(null), c = i(t, o), l = s(f, n);
|
|
186
|
+
return G.useEffect(() => (l.itemMap.set(o, {
|
|
187
187
|
ref: o,
|
|
188
188
|
...a
|
|
189
|
-
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0,
|
|
189
|
+
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, K.jsx)(m, {
|
|
190
190
|
[p]: "",
|
|
191
191
|
ref: c,
|
|
192
192
|
children: r
|
|
@@ -195,7 +195,7 @@ function xe(e) {
|
|
|
195
195
|
h.displayName = f;
|
|
196
196
|
function g(t) {
|
|
197
197
|
let n = s(e + "CollectionConsumer", t);
|
|
198
|
-
return
|
|
198
|
+
return G.useCallback(() => {
|
|
199
199
|
let e = n.collectionRef.current;
|
|
200
200
|
if (!e) return [];
|
|
201
201
|
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
@@ -214,48 +214,48 @@ function xe(e) {
|
|
|
214
214
|
}
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region ../node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
let t =
|
|
217
|
+
var xe = G.createContext(void 0);
|
|
218
|
+
function Se(e) {
|
|
219
|
+
let t = G.useContext(xe);
|
|
220
220
|
return e || t || "ltr";
|
|
221
221
|
}
|
|
222
222
|
//#endregion
|
|
223
223
|
//#region ../node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
224
|
-
var
|
|
224
|
+
var Ce = "rovingFocusGroup.onEntryFocus", we = {
|
|
225
225
|
bubbles: !1,
|
|
226
226
|
cancelable: !0
|
|
227
|
-
},
|
|
227
|
+
}, q = "RovingFocusGroup", [Te, Ee, De] = be(q), [Oe, ke] = z(q, [De]), [Ae, je] = Oe(q), Me = G.forwardRef((e, t) => /* @__PURE__ */ (0, K.jsx)(Te.Provider, {
|
|
228
228
|
scope: e.__scopeRovingFocusGroup,
|
|
229
|
-
children: /* @__PURE__ */ (0,
|
|
229
|
+
children: /* @__PURE__ */ (0, K.jsx)(Te.Slot, {
|
|
230
230
|
scope: e.__scopeRovingFocusGroup,
|
|
231
|
-
children: /* @__PURE__ */ (0,
|
|
231
|
+
children: /* @__PURE__ */ (0, K.jsx)(Ne, {
|
|
232
232
|
...e,
|
|
233
233
|
ref: t
|
|
234
234
|
})
|
|
235
235
|
})
|
|
236
236
|
}));
|
|
237
|
-
|
|
238
|
-
var
|
|
239
|
-
let { __scopeRovingFocusGroup: n, orientation: a, loop: o = !1, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: u, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...p } = e, m =
|
|
237
|
+
Me.displayName = q;
|
|
238
|
+
var Ne = G.forwardRef((e, t) => {
|
|
239
|
+
let { __scopeRovingFocusGroup: n, orientation: a, loop: o = !1, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: u, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...p } = e, m = G.useRef(null), h = i(t, m), g = Se(s), [v, b] = y({
|
|
240
240
|
prop: c,
|
|
241
241
|
defaultProp: l ?? null,
|
|
242
242
|
onChange: u,
|
|
243
|
-
caller:
|
|
244
|
-
}), [x, S] =
|
|
245
|
-
return
|
|
243
|
+
caller: q
|
|
244
|
+
}), [x, S] = G.useState(!1), C = _(d), w = Ee(n), T = G.useRef(!1), [E, D] = G.useState(0);
|
|
245
|
+
return G.useEffect(() => {
|
|
246
246
|
let e = m.current;
|
|
247
|
-
if (e) return e.addEventListener(
|
|
248
|
-
}, [C]), /* @__PURE__ */ (0,
|
|
247
|
+
if (e) return e.addEventListener(Ce, C), () => e.removeEventListener(Ce, C);
|
|
248
|
+
}, [C]), /* @__PURE__ */ (0, K.jsx)(Ae, {
|
|
249
249
|
scope: n,
|
|
250
250
|
orientation: a,
|
|
251
251
|
dir: g,
|
|
252
252
|
loop: o,
|
|
253
253
|
currentTabStopId: v,
|
|
254
|
-
onItemFocus:
|
|
255
|
-
onItemShiftTab:
|
|
256
|
-
onFocusableItemAdd:
|
|
257
|
-
onFocusableItemRemove:
|
|
258
|
-
children: /* @__PURE__ */ (0,
|
|
254
|
+
onItemFocus: G.useCallback((e) => b(e), [b]),
|
|
255
|
+
onItemShiftTab: G.useCallback(() => S(!0), []),
|
|
256
|
+
onFocusableItemAdd: G.useCallback(() => D((e) => e + 1), []),
|
|
257
|
+
onFocusableItemRemove: G.useCallback(() => D((e) => e - 1), []),
|
|
258
|
+
children: /* @__PURE__ */ (0, K.jsx)(V.div, {
|
|
259
259
|
tabIndex: x || E === 0 ? -1 : 0,
|
|
260
260
|
"data-orientation": a,
|
|
261
261
|
...p,
|
|
@@ -270,10 +270,10 @@ var Pe = W.forwardRef((e, t) => {
|
|
|
270
270
|
onFocus: r(e.onFocus, (e) => {
|
|
271
271
|
let t = !T.current;
|
|
272
272
|
if (e.target === e.currentTarget && t && !x) {
|
|
273
|
-
let t = new CustomEvent(
|
|
273
|
+
let t = new CustomEvent(Ce, we);
|
|
274
274
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
275
275
|
let e = w().filter((e) => e.focusable);
|
|
276
|
-
|
|
276
|
+
ze([
|
|
277
277
|
e.find((e) => e.active),
|
|
278
278
|
e.find((e) => e.id === v),
|
|
279
279
|
...e
|
|
@@ -285,20 +285,20 @@ var Pe = W.forwardRef((e, t) => {
|
|
|
285
285
|
onBlur: r(e.onBlur, () => S(!1))
|
|
286
286
|
})
|
|
287
287
|
});
|
|
288
|
-
}),
|
|
289
|
-
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = e, l =
|
|
290
|
-
return
|
|
288
|
+
}), Pe = "RovingFocusGroupItem", Fe = G.forwardRef((e, t) => {
|
|
289
|
+
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = e, l = w(), u = o || l, d = je(Pe, n), f = d.currentTabStopId === u, p = Ee(n), { onFocusableItemAdd: m, onFocusableItemRemove: h, currentTabStopId: g } = d;
|
|
290
|
+
return G.useEffect(() => {
|
|
291
291
|
if (i) return m(), () => h();
|
|
292
292
|
}, [
|
|
293
293
|
i,
|
|
294
294
|
m,
|
|
295
295
|
h
|
|
296
|
-
]), /* @__PURE__ */ (0,
|
|
296
|
+
]), /* @__PURE__ */ (0, K.jsx)(Te.ItemSlot, {
|
|
297
297
|
scope: n,
|
|
298
298
|
id: u,
|
|
299
299
|
focusable: i,
|
|
300
300
|
active: a,
|
|
301
|
-
children: /* @__PURE__ */ (0,
|
|
301
|
+
children: /* @__PURE__ */ (0, K.jsx)(V.span, {
|
|
302
302
|
tabIndex: f ? 0 : -1,
|
|
303
303
|
"data-orientation": d.orientation,
|
|
304
304
|
...c,
|
|
@@ -313,7 +313,7 @@ var Pe = W.forwardRef((e, t) => {
|
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
315
|
if (e.target !== e.currentTarget) return;
|
|
316
|
-
let t =
|
|
316
|
+
let t = Re(e, d.orientation, d.dir);
|
|
317
317
|
if (t !== void 0) {
|
|
318
318
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
319
319
|
e.preventDefault();
|
|
@@ -322,9 +322,9 @@ var Pe = W.forwardRef((e, t) => {
|
|
|
322
322
|
else if (t === "prev" || t === "next") {
|
|
323
323
|
t === "prev" && n.reverse();
|
|
324
324
|
let r = n.indexOf(e.currentTarget);
|
|
325
|
-
n = d.loop ?
|
|
325
|
+
n = d.loop ? Be(n, r + 1) : n.slice(r + 1);
|
|
326
326
|
}
|
|
327
|
-
setTimeout(() =>
|
|
327
|
+
setTimeout(() => ze(n));
|
|
328
328
|
}
|
|
329
329
|
}),
|
|
330
330
|
children: typeof s == "function" ? s({
|
|
@@ -334,8 +334,8 @@ var Pe = W.forwardRef((e, t) => {
|
|
|
334
334
|
})
|
|
335
335
|
});
|
|
336
336
|
});
|
|
337
|
-
|
|
338
|
-
var
|
|
337
|
+
Fe.displayName = Pe;
|
|
338
|
+
var Ie = {
|
|
339
339
|
ArrowLeft: "prev",
|
|
340
340
|
ArrowUp: "prev",
|
|
341
341
|
ArrowRight: "next",
|
|
@@ -345,41 +345,41 @@ var Le = {
|
|
|
345
345
|
PageDown: "last",
|
|
346
346
|
End: "last"
|
|
347
347
|
};
|
|
348
|
-
function
|
|
348
|
+
function Le(e, t) {
|
|
349
349
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
let r =
|
|
353
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
351
|
+
function Re(e, t, n) {
|
|
352
|
+
let r = Le(e.key, n);
|
|
353
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Ie[r];
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function ze(e, t = !1) {
|
|
356
356
|
let n = document.activeElement;
|
|
357
357
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Be(e, t) {
|
|
360
360
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
361
361
|
}
|
|
362
|
-
var
|
|
362
|
+
var Ve = Me, He = Fe, Ue = ["Enter", " "], We = [
|
|
363
363
|
"ArrowDown",
|
|
364
364
|
"PageUp",
|
|
365
365
|
"Home"
|
|
366
|
-
],
|
|
366
|
+
], Ge = [
|
|
367
367
|
"ArrowUp",
|
|
368
368
|
"PageDown",
|
|
369
369
|
"End"
|
|
370
|
-
],
|
|
371
|
-
ltr: [...
|
|
372
|
-
rtl: [...
|
|
373
|
-
},
|
|
370
|
+
], Ke = [...We, ...Ge], qe = {
|
|
371
|
+
ltr: [...Ue, "ArrowRight"],
|
|
372
|
+
rtl: [...Ue, "ArrowLeft"]
|
|
373
|
+
}, Je = {
|
|
374
374
|
ltr: ["ArrowLeft"],
|
|
375
375
|
rtl: ["ArrowRight"]
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
]),
|
|
381
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s =
|
|
382
|
-
return
|
|
376
|
+
}, J = "Menu", [Y, Ye, Xe] = be(J), [X, Ze] = z(J, [
|
|
377
|
+
Xe,
|
|
378
|
+
E,
|
|
379
|
+
ke
|
|
380
|
+
]), Qe = E(), $e = ke(), [et, Z] = X(J), [tt, nt] = X(J), rt = (e) => {
|
|
381
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = Qe(t), [c, l] = G.useState(null), u = G.useRef(!1), d = _(a), f = Se(i);
|
|
382
|
+
return G.useEffect(() => {
|
|
383
383
|
let e = () => {
|
|
384
384
|
u.current = !0, document.addEventListener("pointerdown", t, {
|
|
385
385
|
capture: !0,
|
|
@@ -392,17 +392,17 @@ var He = Ne, Ue = Ie, We = ["Enter", " "], Ge = [
|
|
|
392
392
|
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
393
393
|
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
394
394
|
};
|
|
395
|
-
}, []), /* @__PURE__ */ (0,
|
|
395
|
+
}, []), /* @__PURE__ */ (0, K.jsx)(k, {
|
|
396
396
|
...s,
|
|
397
|
-
children: /* @__PURE__ */ (0,
|
|
397
|
+
children: /* @__PURE__ */ (0, K.jsx)(et, {
|
|
398
398
|
scope: t,
|
|
399
399
|
open: n,
|
|
400
400
|
onOpenChange: d,
|
|
401
401
|
content: c,
|
|
402
402
|
onContentChange: l,
|
|
403
|
-
children: /* @__PURE__ */ (0,
|
|
403
|
+
children: /* @__PURE__ */ (0, K.jsx)(tt, {
|
|
404
404
|
scope: t,
|
|
405
|
-
onClose:
|
|
405
|
+
onClose: G.useCallback(() => d(!1), [d]),
|
|
406
406
|
isUsingKeyboardRef: u,
|
|
407
407
|
dir: f,
|
|
408
408
|
modal: o,
|
|
@@ -411,24 +411,24 @@ var He = Ne, Ue = Ie, We = ["Enter", " "], Ge = [
|
|
|
411
411
|
})
|
|
412
412
|
});
|
|
413
413
|
};
|
|
414
|
-
rt.displayName =
|
|
415
|
-
var it = "MenuAnchor", at =
|
|
416
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
417
|
-
return /* @__PURE__ */ (0,
|
|
414
|
+
rt.displayName = J;
|
|
415
|
+
var it = "MenuAnchor", at = G.forwardRef((e, t) => {
|
|
416
|
+
let { __scopeMenu: n, ...r } = e, i = Qe(n);
|
|
417
|
+
return /* @__PURE__ */ (0, K.jsx)(x, {
|
|
418
418
|
...i,
|
|
419
419
|
...r,
|
|
420
420
|
ref: t
|
|
421
421
|
});
|
|
422
422
|
});
|
|
423
423
|
at.displayName = it;
|
|
424
|
-
var ot = "MenuPortal", [st, ct] =
|
|
424
|
+
var ot = "MenuPortal", [st, ct] = X(ot, { forceMount: void 0 }), lt = (e) => {
|
|
425
425
|
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = Z(ot, t);
|
|
426
|
-
return /* @__PURE__ */ (0,
|
|
426
|
+
return /* @__PURE__ */ (0, K.jsx)(st, {
|
|
427
427
|
scope: t,
|
|
428
428
|
forceMount: n,
|
|
429
|
-
children: /* @__PURE__ */ (0,
|
|
429
|
+
children: /* @__PURE__ */ (0, K.jsx)(D, {
|
|
430
430
|
present: n || a.open,
|
|
431
|
-
children: /* @__PURE__ */ (0,
|
|
431
|
+
children: /* @__PURE__ */ (0, K.jsx)(R, {
|
|
432
432
|
asChild: !0,
|
|
433
433
|
container: i,
|
|
434
434
|
children: r
|
|
@@ -437,30 +437,30 @@ var ot = "MenuPortal", [st, ct] = Y(ot, { forceMount: void 0 }), lt = (e) => {
|
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
439
|
lt.displayName = ot;
|
|
440
|
-
var Q = "MenuContent", [ut, dt] =
|
|
440
|
+
var Q = "MenuContent", [ut, dt] = X(Q), ft = G.forwardRef((e, t) => {
|
|
441
441
|
let n = ct(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = Z(Q, e.__scopeMenu), o = nt(Q, e.__scopeMenu);
|
|
442
|
-
return /* @__PURE__ */ (0,
|
|
442
|
+
return /* @__PURE__ */ (0, K.jsx)(Y.Provider, {
|
|
443
443
|
scope: e.__scopeMenu,
|
|
444
|
-
children: /* @__PURE__ */ (0,
|
|
444
|
+
children: /* @__PURE__ */ (0, K.jsx)(D, {
|
|
445
445
|
present: r || a.open,
|
|
446
|
-
children: /* @__PURE__ */ (0,
|
|
446
|
+
children: /* @__PURE__ */ (0, K.jsx)(Y.Slot, {
|
|
447
447
|
scope: e.__scopeMenu,
|
|
448
|
-
children: o.modal ? /* @__PURE__ */ (0,
|
|
448
|
+
children: o.modal ? /* @__PURE__ */ (0, K.jsx)(pt, {
|
|
449
449
|
...i,
|
|
450
450
|
ref: t
|
|
451
|
-
}) : /* @__PURE__ */ (0,
|
|
451
|
+
}) : /* @__PURE__ */ (0, K.jsx)(mt, {
|
|
452
452
|
...i,
|
|
453
453
|
ref: t
|
|
454
454
|
})
|
|
455
455
|
})
|
|
456
456
|
})
|
|
457
457
|
});
|
|
458
|
-
}), pt =
|
|
459
|
-
let n = Z(Q, e.__scopeMenu), a =
|
|
460
|
-
return
|
|
458
|
+
}), pt = G.forwardRef((e, t) => {
|
|
459
|
+
let n = Z(Q, e.__scopeMenu), a = G.useRef(null), o = i(t, a);
|
|
460
|
+
return G.useEffect(() => {
|
|
461
461
|
let e = a.current;
|
|
462
462
|
if (e) return F(e);
|
|
463
|
-
}, []), /* @__PURE__ */ (0,
|
|
463
|
+
}, []), /* @__PURE__ */ (0, K.jsx)(gt, {
|
|
464
464
|
...e,
|
|
465
465
|
ref: o,
|
|
466
466
|
trapFocus: n.open,
|
|
@@ -469,9 +469,9 @@ var Q = "MenuContent", [ut, dt] = Y(Q), ft = W.forwardRef((e, t) => {
|
|
|
469
469
|
onFocusOutside: r(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
470
470
|
onDismiss: () => n.onOpenChange(!1)
|
|
471
471
|
});
|
|
472
|
-
}), mt =
|
|
472
|
+
}), mt = G.forwardRef((e, t) => {
|
|
473
473
|
let n = Z(Q, e.__scopeMenu);
|
|
474
|
-
return /* @__PURE__ */ (0,
|
|
474
|
+
return /* @__PURE__ */ (0, K.jsx)(gt, {
|
|
475
475
|
...e,
|
|
476
476
|
ref: t,
|
|
477
477
|
trapFocus: !1,
|
|
@@ -479,44 +479,44 @@ var Q = "MenuContent", [ut, dt] = Y(Q), ft = W.forwardRef((e, t) => {
|
|
|
479
479
|
disableOutsideScroll: !1,
|
|
480
480
|
onDismiss: () => n.onOpenChange(!1)
|
|
481
481
|
});
|
|
482
|
-
}), ht = n("MenuContent.ScrollLock"), gt =
|
|
483
|
-
let { __scopeMenu: n, loop: a = !1, trapFocus: o, onOpenAutoFocus: s, onCloseAutoFocus: c, disableOutsidePointerEvents: l, onEntryFocus: u, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: _, ...v } = e, y = Z(Q, n), b = nt(Q, n), x =
|
|
482
|
+
}), ht = n("MenuContent.ScrollLock"), gt = G.forwardRef((e, t) => {
|
|
483
|
+
let { __scopeMenu: n, loop: a = !1, trapFocus: o, onOpenAutoFocus: s, onCloseAutoFocus: c, disableOutsidePointerEvents: l, onEntryFocus: u, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: _, ...v } = e, y = Z(Q, n), b = nt(Q, n), x = Qe(n), S = $e(n), C = Ye(n), [w, T] = G.useState(null), E = G.useRef(null), D = i(t, E, y.onContentChange), O = G.useRef(0), k = G.useRef(""), A = G.useRef(0), M = G.useRef(null), P = G.useRef("right"), F = G.useRef(0), I = _ ? N : G.Fragment, L = _ ? {
|
|
484
484
|
as: ht,
|
|
485
485
|
allowPinchZoom: !0
|
|
486
|
-
} : void 0,
|
|
486
|
+
} : void 0, R = (e) => {
|
|
487
487
|
let t = k.current + e, n = C().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = en(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
488
488
|
(function e(t) {
|
|
489
489
|
k.current = t, window.clearTimeout(O.current), t !== "" && (O.current = window.setTimeout(() => e(""), 1e3));
|
|
490
490
|
})(t), o && setTimeout(() => o.focus());
|
|
491
491
|
};
|
|
492
|
-
|
|
493
|
-
let
|
|
494
|
-
return /* @__PURE__ */ (0,
|
|
492
|
+
G.useEffect(() => () => window.clearTimeout(O.current), []), ee();
|
|
493
|
+
let z = G.useCallback((e) => P.current === M.current?.side && nn(e, M.current?.area), []);
|
|
494
|
+
return /* @__PURE__ */ (0, K.jsx)(ut, {
|
|
495
495
|
scope: n,
|
|
496
496
|
searchRef: k,
|
|
497
|
-
onItemEnter:
|
|
498
|
-
|
|
499
|
-
}, [
|
|
500
|
-
onItemLeave:
|
|
501
|
-
|
|
502
|
-
}, [
|
|
503
|
-
onTriggerLeave:
|
|
504
|
-
|
|
505
|
-
}, [
|
|
497
|
+
onItemEnter: G.useCallback((e) => {
|
|
498
|
+
z(e) && e.preventDefault();
|
|
499
|
+
}, [z]),
|
|
500
|
+
onItemLeave: G.useCallback((e) => {
|
|
501
|
+
z(e) || (E.current?.focus(), T(null));
|
|
502
|
+
}, [z]),
|
|
503
|
+
onTriggerLeave: G.useCallback((e) => {
|
|
504
|
+
z(e) && e.preventDefault();
|
|
505
|
+
}, [z]),
|
|
506
506
|
pointerGraceTimerRef: A,
|
|
507
|
-
onPointerGraceIntentChange:
|
|
508
|
-
|
|
507
|
+
onPointerGraceIntentChange: G.useCallback((e) => {
|
|
508
|
+
M.current = e;
|
|
509
509
|
}, []),
|
|
510
|
-
children: /* @__PURE__ */ (0,
|
|
511
|
-
...
|
|
512
|
-
children: /* @__PURE__ */ (0,
|
|
510
|
+
children: /* @__PURE__ */ (0, K.jsx)(I, {
|
|
511
|
+
...L,
|
|
512
|
+
children: /* @__PURE__ */ (0, K.jsx)(g, {
|
|
513
513
|
asChild: !0,
|
|
514
514
|
trapped: o,
|
|
515
515
|
onMountAutoFocus: r(s, (e) => {
|
|
516
516
|
e.preventDefault(), E.current?.focus({ preventScroll: !0 });
|
|
517
517
|
}),
|
|
518
518
|
onUnmountAutoFocus: c,
|
|
519
|
-
children: /* @__PURE__ */ (0,
|
|
519
|
+
children: /* @__PURE__ */ (0, K.jsx)(te, {
|
|
520
520
|
asChild: !0,
|
|
521
521
|
disableOutsidePointerEvents: l,
|
|
522
522
|
onEscapeKeyDown: d,
|
|
@@ -524,7 +524,7 @@ var Q = "MenuContent", [ut, dt] = Y(Q), ft = W.forwardRef((e, t) => {
|
|
|
524
524
|
onFocusOutside: p,
|
|
525
525
|
onInteractOutside: m,
|
|
526
526
|
onDismiss: h,
|
|
527
|
-
children: /* @__PURE__ */ (0,
|
|
527
|
+
children: /* @__PURE__ */ (0, K.jsx)(Ve, {
|
|
528
528
|
asChild: !0,
|
|
529
529
|
...S,
|
|
530
530
|
dir: b.dir,
|
|
@@ -536,7 +536,7 @@ var Q = "MenuContent", [ut, dt] = Y(Q), ft = W.forwardRef((e, t) => {
|
|
|
536
536
|
b.isUsingKeyboardRef.current || e.preventDefault();
|
|
537
537
|
}),
|
|
538
538
|
preventScrollOnEntryFocus: !0,
|
|
539
|
-
children: /* @__PURE__ */ (0,
|
|
539
|
+
children: /* @__PURE__ */ (0, K.jsx)(j, {
|
|
540
540
|
role: "menu",
|
|
541
541
|
"aria-orientation": "vertical",
|
|
542
542
|
"data-state": Yt(y.open),
|
|
@@ -551,19 +551,19 @@ var Q = "MenuContent", [ut, dt] = Y(Q), ft = W.forwardRef((e, t) => {
|
|
|
551
551
|
},
|
|
552
552
|
onKeyDown: r(v.onKeyDown, (e) => {
|
|
553
553
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
554
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
554
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && R(e.key));
|
|
555
555
|
let i = E.current;
|
|
556
|
-
if (e.target !== i || !
|
|
556
|
+
if (e.target !== i || !Ke.includes(e.key)) return;
|
|
557
557
|
e.preventDefault();
|
|
558
558
|
let a = C().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
559
|
-
|
|
559
|
+
Ge.includes(e.key) && a.reverse(), Qt(a);
|
|
560
560
|
}),
|
|
561
561
|
onBlur: r(e.onBlur, (e) => {
|
|
562
562
|
e.currentTarget.contains(e.target) || (window.clearTimeout(O.current), k.current = "");
|
|
563
563
|
}),
|
|
564
564
|
onPointerMove: r(e.onPointerMove, rn((e) => {
|
|
565
|
-
let t = e.target, n =
|
|
566
|
-
e.currentTarget.contains(t) && n && (
|
|
565
|
+
let t = e.target, n = F.current !== e.clientX;
|
|
566
|
+
e.currentTarget.contains(t) && n && (P.current = e.clientX > F.current ? "right" : "left", F.current = e.clientX);
|
|
567
567
|
}))
|
|
568
568
|
})
|
|
569
569
|
})
|
|
@@ -573,25 +573,25 @@ var Q = "MenuContent", [ut, dt] = Y(Q), ft = W.forwardRef((e, t) => {
|
|
|
573
573
|
});
|
|
574
574
|
});
|
|
575
575
|
ft.displayName = Q;
|
|
576
|
-
var _t = "MenuGroup", vt =
|
|
576
|
+
var _t = "MenuGroup", vt = G.forwardRef((e, t) => {
|
|
577
577
|
let { __scopeMenu: n, ...r } = e;
|
|
578
|
-
return /* @__PURE__ */ (0,
|
|
578
|
+
return /* @__PURE__ */ (0, K.jsx)(V.div, {
|
|
579
579
|
role: "group",
|
|
580
580
|
...r,
|
|
581
581
|
ref: t
|
|
582
582
|
});
|
|
583
583
|
});
|
|
584
584
|
vt.displayName = _t;
|
|
585
|
-
var yt = "MenuLabel", bt =
|
|
585
|
+
var yt = "MenuLabel", bt = G.forwardRef((e, t) => {
|
|
586
586
|
let { __scopeMenu: n, ...r } = e;
|
|
587
|
-
return /* @__PURE__ */ (0,
|
|
587
|
+
return /* @__PURE__ */ (0, K.jsx)(V.div, {
|
|
588
588
|
...r,
|
|
589
589
|
ref: t
|
|
590
590
|
});
|
|
591
591
|
});
|
|
592
592
|
bt.displayName = yt;
|
|
593
|
-
var xt = "MenuItem", St = "menu.itemSelect", Ct =
|
|
594
|
-
let { disabled: n = !1, onSelect: a, ...o } = e, s =
|
|
593
|
+
var xt = "MenuItem", St = "menu.itemSelect", Ct = G.forwardRef((e, t) => {
|
|
594
|
+
let { disabled: n = !1, onSelect: a, ...o } = e, s = G.useRef(null), l = nt(xt, e.__scopeMenu), u = dt(xt, e.__scopeMenu), d = i(t, s), f = G.useRef(!1), p = () => {
|
|
595
595
|
let e = s.current;
|
|
596
596
|
if (!n && e) {
|
|
597
597
|
let t = new CustomEvent(St, {
|
|
@@ -601,7 +601,7 @@ var xt = "MenuItem", St = "menu.itemSelect", Ct = W.forwardRef((e, t) => {
|
|
|
601
601
|
e.addEventListener(St, (e) => a?.(e), { once: !0 }), c(e, t), t.defaultPrevented ? f.current = !1 : l.onClose();
|
|
602
602
|
}
|
|
603
603
|
};
|
|
604
|
-
return /* @__PURE__ */ (0,
|
|
604
|
+
return /* @__PURE__ */ (0, K.jsx)(wt, {
|
|
605
605
|
...o,
|
|
606
606
|
ref: d,
|
|
607
607
|
disabled: n,
|
|
@@ -614,25 +614,25 @@ var xt = "MenuItem", St = "menu.itemSelect", Ct = W.forwardRef((e, t) => {
|
|
|
614
614
|
}),
|
|
615
615
|
onKeyDown: r(e.onKeyDown, (e) => {
|
|
616
616
|
let t = u.searchRef.current !== "";
|
|
617
|
-
n || t && e.key === " " ||
|
|
617
|
+
n || t && e.key === " " || Ue.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
618
618
|
})
|
|
619
619
|
});
|
|
620
620
|
});
|
|
621
621
|
Ct.displayName = xt;
|
|
622
|
-
var wt =
|
|
623
|
-
let { __scopeMenu: n, disabled: a = !1, textValue: o, ...s } = e, c = dt(xt, n), l = $e(n), u =
|
|
624
|
-
return
|
|
622
|
+
var wt = G.forwardRef((e, t) => {
|
|
623
|
+
let { __scopeMenu: n, disabled: a = !1, textValue: o, ...s } = e, c = dt(xt, n), l = $e(n), u = G.useRef(null), d = i(t, u), [f, p] = G.useState(!1), [m, h] = G.useState("");
|
|
624
|
+
return G.useEffect(() => {
|
|
625
625
|
let e = u.current;
|
|
626
626
|
e && h((e.textContent ?? "").trim());
|
|
627
|
-
}, [s.children]), /* @__PURE__ */ (0,
|
|
627
|
+
}, [s.children]), /* @__PURE__ */ (0, K.jsx)(Y.ItemSlot, {
|
|
628
628
|
scope: n,
|
|
629
629
|
disabled: a,
|
|
630
630
|
textValue: o ?? m,
|
|
631
|
-
children: /* @__PURE__ */ (0,
|
|
631
|
+
children: /* @__PURE__ */ (0, K.jsx)(He, {
|
|
632
632
|
asChild: !0,
|
|
633
633
|
...l,
|
|
634
634
|
focusable: !a,
|
|
635
|
-
children: /* @__PURE__ */ (0,
|
|
635
|
+
children: /* @__PURE__ */ (0, K.jsx)(V.div, {
|
|
636
636
|
role: "menuitem",
|
|
637
637
|
"data-highlighted": f ? "" : void 0,
|
|
638
638
|
"aria-disabled": a || void 0,
|
|
@@ -648,12 +648,12 @@ var wt = W.forwardRef((e, t) => {
|
|
|
648
648
|
})
|
|
649
649
|
})
|
|
650
650
|
});
|
|
651
|
-
}), Tt = "MenuCheckboxItem", Et =
|
|
651
|
+
}), Tt = "MenuCheckboxItem", Et = G.forwardRef((e, t) => {
|
|
652
652
|
let { checked: n = !1, onCheckedChange: i, ...a } = e;
|
|
653
|
-
return /* @__PURE__ */ (0,
|
|
653
|
+
return /* @__PURE__ */ (0, K.jsx)(Pt, {
|
|
654
654
|
scope: e.__scopeMenu,
|
|
655
655
|
checked: n,
|
|
656
|
-
children: /* @__PURE__ */ (0,
|
|
656
|
+
children: /* @__PURE__ */ (0, K.jsx)(Ct, {
|
|
657
657
|
role: "menuitemcheckbox",
|
|
658
658
|
"aria-checked": Xt(n) ? "mixed" : n,
|
|
659
659
|
...a,
|
|
@@ -664,28 +664,28 @@ var wt = W.forwardRef((e, t) => {
|
|
|
664
664
|
});
|
|
665
665
|
});
|
|
666
666
|
Et.displayName = Tt;
|
|
667
|
-
var Dt = "MenuRadioGroup", [Ot, kt] =
|
|
667
|
+
var Dt = "MenuRadioGroup", [Ot, kt] = X(Dt, {
|
|
668
668
|
value: void 0,
|
|
669
669
|
onValueChange: () => {}
|
|
670
|
-
}), At =
|
|
670
|
+
}), At = G.forwardRef((e, t) => {
|
|
671
671
|
let { value: n, onValueChange: r, ...i } = e, a = _(r);
|
|
672
|
-
return /* @__PURE__ */ (0,
|
|
672
|
+
return /* @__PURE__ */ (0, K.jsx)(Ot, {
|
|
673
673
|
scope: e.__scopeMenu,
|
|
674
674
|
value: n,
|
|
675
675
|
onValueChange: a,
|
|
676
|
-
children: /* @__PURE__ */ (0,
|
|
676
|
+
children: /* @__PURE__ */ (0, K.jsx)(vt, {
|
|
677
677
|
...i,
|
|
678
678
|
ref: t
|
|
679
679
|
})
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
At.displayName = Dt;
|
|
683
|
-
var jt = "MenuRadioItem", Mt =
|
|
683
|
+
var jt = "MenuRadioItem", Mt = G.forwardRef((e, t) => {
|
|
684
684
|
let { value: n, ...i } = e, a = kt(jt, e.__scopeMenu), o = n === a.value;
|
|
685
|
-
return /* @__PURE__ */ (0,
|
|
685
|
+
return /* @__PURE__ */ (0, K.jsx)(Pt, {
|
|
686
686
|
scope: e.__scopeMenu,
|
|
687
687
|
checked: o,
|
|
688
|
-
children: /* @__PURE__ */ (0,
|
|
688
|
+
children: /* @__PURE__ */ (0, K.jsx)(Ct, {
|
|
689
689
|
role: "menuitemradio",
|
|
690
690
|
"aria-checked": o,
|
|
691
691
|
...i,
|
|
@@ -696,11 +696,11 @@ var jt = "MenuRadioItem", Mt = W.forwardRef((e, t) => {
|
|
|
696
696
|
});
|
|
697
697
|
});
|
|
698
698
|
Mt.displayName = jt;
|
|
699
|
-
var Nt = "MenuItemIndicator", [Pt, Ft] =
|
|
699
|
+
var Nt = "MenuItemIndicator", [Pt, Ft] = X(Nt, { checked: !1 }), It = G.forwardRef((e, t) => {
|
|
700
700
|
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Ft(Nt, n);
|
|
701
|
-
return /* @__PURE__ */ (0,
|
|
701
|
+
return /* @__PURE__ */ (0, K.jsx)(D, {
|
|
702
702
|
present: r || Xt(a.checked) || a.checked === !0,
|
|
703
|
-
children: /* @__PURE__ */ (0,
|
|
703
|
+
children: /* @__PURE__ */ (0, K.jsx)(V.span, {
|
|
704
704
|
...i,
|
|
705
705
|
ref: t,
|
|
706
706
|
"data-state": Zt(a.checked)
|
|
@@ -708,9 +708,9 @@ var Nt = "MenuItemIndicator", [Pt, Ft] = Y(Nt, { checked: !1 }), It = W.forwardR
|
|
|
708
708
|
});
|
|
709
709
|
});
|
|
710
710
|
It.displayName = Nt;
|
|
711
|
-
var Lt = "MenuSeparator", Rt =
|
|
711
|
+
var Lt = "MenuSeparator", Rt = G.forwardRef((e, t) => {
|
|
712
712
|
let { __scopeMenu: n, ...r } = e;
|
|
713
|
-
return /* @__PURE__ */ (0,
|
|
713
|
+
return /* @__PURE__ */ (0, K.jsx)(V.div, {
|
|
714
714
|
role: "separator",
|
|
715
715
|
"aria-orientation": "horizontal",
|
|
716
716
|
...r,
|
|
@@ -718,29 +718,29 @@ var Lt = "MenuSeparator", Rt = W.forwardRef((e, t) => {
|
|
|
718
718
|
});
|
|
719
719
|
});
|
|
720
720
|
Rt.displayName = Lt;
|
|
721
|
-
var zt = "MenuArrow", Bt =
|
|
722
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
723
|
-
return /* @__PURE__ */ (0,
|
|
721
|
+
var zt = "MenuArrow", Bt = G.forwardRef((e, t) => {
|
|
722
|
+
let { __scopeMenu: n, ...r } = e, i = Qe(n);
|
|
723
|
+
return /* @__PURE__ */ (0, K.jsx)(S, {
|
|
724
724
|
...i,
|
|
725
725
|
...r,
|
|
726
726
|
ref: t
|
|
727
727
|
});
|
|
728
728
|
});
|
|
729
729
|
Bt.displayName = zt;
|
|
730
|
-
var Vt = "MenuSub", [Ht, Ut] =
|
|
731
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = Z(Vt, t), o =
|
|
732
|
-
return
|
|
730
|
+
var Vt = "MenuSub", [Ht, Ut] = X(Vt), Wt = (e) => {
|
|
731
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = Z(Vt, t), o = Qe(t), [s, c] = G.useState(null), [l, u] = G.useState(null), d = _(i);
|
|
732
|
+
return G.useEffect(() => (a.open === !1 && d(!1), () => d(!1)), [a.open, d]), /* @__PURE__ */ (0, K.jsx)(k, {
|
|
733
733
|
...o,
|
|
734
|
-
children: /* @__PURE__ */ (0,
|
|
734
|
+
children: /* @__PURE__ */ (0, K.jsx)(et, {
|
|
735
735
|
scope: t,
|
|
736
736
|
open: r,
|
|
737
737
|
onOpenChange: d,
|
|
738
738
|
content: l,
|
|
739
739
|
onContentChange: u,
|
|
740
|
-
children: /* @__PURE__ */ (0,
|
|
740
|
+
children: /* @__PURE__ */ (0, K.jsx)(Ht, {
|
|
741
741
|
scope: t,
|
|
742
|
-
contentId:
|
|
743
|
-
triggerId:
|
|
742
|
+
contentId: w(),
|
|
743
|
+
triggerId: w(),
|
|
744
744
|
trigger: s,
|
|
745
745
|
onTriggerChange: c,
|
|
746
746
|
children: n
|
|
@@ -749,19 +749,19 @@ var Vt = "MenuSub", [Ht, Ut] = Y(Vt), Wt = (e) => {
|
|
|
749
749
|
});
|
|
750
750
|
};
|
|
751
751
|
Wt.displayName = Vt;
|
|
752
|
-
var Gt = "MenuSubTrigger", Kt =
|
|
753
|
-
let n = Z(Gt, e.__scopeMenu), i = nt(Gt, e.__scopeMenu), a = Ut(Gt, e.__scopeMenu), o = dt(Gt, e.__scopeMenu), s =
|
|
752
|
+
var Gt = "MenuSubTrigger", Kt = G.forwardRef((e, t) => {
|
|
753
|
+
let n = Z(Gt, e.__scopeMenu), i = nt(Gt, e.__scopeMenu), a = Ut(Gt, e.__scopeMenu), o = dt(Gt, e.__scopeMenu), s = G.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, d = { __scopeMenu: e.__scopeMenu }, f = G.useCallback(() => {
|
|
754
754
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
755
755
|
}, []);
|
|
756
|
-
return
|
|
756
|
+
return G.useEffect(() => f, [f]), G.useEffect(() => {
|
|
757
757
|
let e = c.current;
|
|
758
758
|
return () => {
|
|
759
759
|
window.clearTimeout(e), l(null);
|
|
760
760
|
};
|
|
761
|
-
}, [c, l]), /* @__PURE__ */ (0,
|
|
761
|
+
}, [c, l]), /* @__PURE__ */ (0, K.jsx)(at, {
|
|
762
762
|
asChild: !0,
|
|
763
763
|
...d,
|
|
764
|
-
children: /* @__PURE__ */ (0,
|
|
764
|
+
children: /* @__PURE__ */ (0, K.jsx)(wt, {
|
|
765
765
|
id: a.triggerId,
|
|
766
766
|
"aria-haspopup": "menu",
|
|
767
767
|
"aria-expanded": n.open,
|
|
@@ -814,21 +814,21 @@ var Gt = "MenuSubTrigger", Kt = W.forwardRef((e, t) => {
|
|
|
814
814
|
})),
|
|
815
815
|
onKeyDown: r(e.onKeyDown, (t) => {
|
|
816
816
|
let r = o.searchRef.current !== "";
|
|
817
|
-
e.disabled || r && t.key === " " ||
|
|
817
|
+
e.disabled || r && t.key === " " || qe[i.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
818
818
|
})
|
|
819
819
|
})
|
|
820
820
|
});
|
|
821
821
|
});
|
|
822
822
|
Kt.displayName = Gt;
|
|
823
|
-
var qt = "MenuSubContent", Jt =
|
|
824
|
-
let n = ct(Q, e.__scopeMenu), { forceMount: a = n.forceMount, ...o } = e, s = Z(Q, e.__scopeMenu), c = nt(Q, e.__scopeMenu), l = Ut(qt, e.__scopeMenu), u =
|
|
825
|
-
return /* @__PURE__ */ (0,
|
|
823
|
+
var qt = "MenuSubContent", Jt = G.forwardRef((e, t) => {
|
|
824
|
+
let n = ct(Q, e.__scopeMenu), { forceMount: a = n.forceMount, ...o } = e, s = Z(Q, e.__scopeMenu), c = nt(Q, e.__scopeMenu), l = Ut(qt, e.__scopeMenu), u = G.useRef(null), d = i(t, u);
|
|
825
|
+
return /* @__PURE__ */ (0, K.jsx)(Y.Provider, {
|
|
826
826
|
scope: e.__scopeMenu,
|
|
827
|
-
children: /* @__PURE__ */ (0,
|
|
827
|
+
children: /* @__PURE__ */ (0, K.jsx)(D, {
|
|
828
828
|
present: a || s.open,
|
|
829
|
-
children: /* @__PURE__ */ (0,
|
|
829
|
+
children: /* @__PURE__ */ (0, K.jsx)(Y.Slot, {
|
|
830
830
|
scope: e.__scopeMenu,
|
|
831
|
-
children: /* @__PURE__ */ (0,
|
|
831
|
+
children: /* @__PURE__ */ (0, K.jsx)(gt, {
|
|
832
832
|
id: l.contentId,
|
|
833
833
|
"aria-labelledby": l.triggerId,
|
|
834
834
|
...o,
|
|
@@ -849,7 +849,7 @@ var qt = "MenuSubContent", Jt = W.forwardRef((e, t) => {
|
|
|
849
849
|
c.onClose(), e.preventDefault();
|
|
850
850
|
}),
|
|
851
851
|
onKeyDown: r(e.onKeyDown, (e) => {
|
|
852
|
-
let t = e.currentTarget.contains(e.target), n =
|
|
852
|
+
let t = e.currentTarget.contains(e.target), n = Je[c.dir].includes(e.key);
|
|
853
853
|
t && n && (s.onOpenChange(!1), l.trigger?.focus(), e.preventDefault());
|
|
854
854
|
})
|
|
855
855
|
})
|
|
@@ -897,23 +897,23 @@ function nn(e, t) {
|
|
|
897
897
|
function rn(e) {
|
|
898
898
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
899
899
|
}
|
|
900
|
-
var an = rt, on = at, sn = lt, cn = ft, ln = vt, un = bt, dn = Ct, fn = Et, pn = At, mn = Mt, hn = It, gn = Rt, _n = Bt, vn = Kt, yn = Jt, bn = "DropdownMenu", [xn, Sn] =
|
|
901
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = $(t), l =
|
|
900
|
+
var an = rt, on = at, sn = lt, cn = ft, ln = vt, un = bt, dn = Ct, fn = Et, pn = At, mn = Mt, hn = It, gn = Rt, _n = Bt, vn = Kt, yn = Jt, bn = "DropdownMenu", [xn, Sn] = z(bn, [Ze]), $ = Ze(), [Cn, wn] = xn(bn), Tn = (e) => {
|
|
901
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = $(t), l = G.useRef(null), [u, d] = y({
|
|
902
902
|
prop: i,
|
|
903
903
|
defaultProp: a ?? !1,
|
|
904
904
|
onChange: o,
|
|
905
905
|
caller: bn
|
|
906
906
|
});
|
|
907
|
-
return /* @__PURE__ */ (0,
|
|
907
|
+
return /* @__PURE__ */ (0, K.jsx)(Cn, {
|
|
908
908
|
scope: t,
|
|
909
|
-
triggerId:
|
|
909
|
+
triggerId: w(),
|
|
910
910
|
triggerRef: l,
|
|
911
|
-
contentId:
|
|
911
|
+
contentId: w(),
|
|
912
912
|
open: u,
|
|
913
913
|
onOpenChange: d,
|
|
914
|
-
onOpenToggle:
|
|
914
|
+
onOpenToggle: G.useCallback(() => d((e) => !e), [d]),
|
|
915
915
|
modal: s,
|
|
916
|
-
children: /* @__PURE__ */ (0,
|
|
916
|
+
children: /* @__PURE__ */ (0, K.jsx)(an, {
|
|
917
917
|
...c,
|
|
918
918
|
open: u,
|
|
919
919
|
onOpenChange: d,
|
|
@@ -924,12 +924,12 @@ var an = rt, on = at, sn = lt, cn = ft, ln = vt, un = bt, dn = Ct, fn = Et, pn =
|
|
|
924
924
|
});
|
|
925
925
|
};
|
|
926
926
|
Tn.displayName = bn;
|
|
927
|
-
var En = "DropdownMenuTrigger", Dn =
|
|
927
|
+
var En = "DropdownMenuTrigger", Dn = G.forwardRef((e, t) => {
|
|
928
928
|
let { __scopeDropdownMenu: n, disabled: i = !1, ...a } = e, o = wn(En, n), s = $(n);
|
|
929
|
-
return /* @__PURE__ */ (0,
|
|
929
|
+
return /* @__PURE__ */ (0, K.jsx)(on, {
|
|
930
930
|
asChild: !0,
|
|
931
931
|
...s,
|
|
932
|
-
children: /* @__PURE__ */ (0,
|
|
932
|
+
children: /* @__PURE__ */ (0, K.jsx)(V.button, {
|
|
933
933
|
type: "button",
|
|
934
934
|
id: o.triggerId,
|
|
935
935
|
"aria-haspopup": "menu",
|
|
@@ -956,15 +956,15 @@ var En = "DropdownMenuTrigger", Dn = W.forwardRef((e, t) => {
|
|
|
956
956
|
Dn.displayName = En;
|
|
957
957
|
var On = "DropdownMenuPortal", kn = (e) => {
|
|
958
958
|
let { __scopeDropdownMenu: t, ...n } = e, r = $(t);
|
|
959
|
-
return /* @__PURE__ */ (0,
|
|
959
|
+
return /* @__PURE__ */ (0, K.jsx)(sn, {
|
|
960
960
|
...r,
|
|
961
961
|
...n
|
|
962
962
|
});
|
|
963
963
|
};
|
|
964
964
|
kn.displayName = On;
|
|
965
|
-
var An = "DropdownMenuContent", jn =
|
|
966
|
-
let { __scopeDropdownMenu: n, ...i } = e, a = wn(An, n), o = $(n), s =
|
|
967
|
-
return /* @__PURE__ */ (0,
|
|
965
|
+
var An = "DropdownMenuContent", jn = G.forwardRef((e, t) => {
|
|
966
|
+
let { __scopeDropdownMenu: n, ...i } = e, a = wn(An, n), o = $(n), s = G.useRef(!1);
|
|
967
|
+
return /* @__PURE__ */ (0, K.jsx)(cn, {
|
|
968
968
|
id: a.contentId,
|
|
969
969
|
"aria-labelledby": a.triggerId,
|
|
970
970
|
...o,
|
|
@@ -988,99 +988,99 @@ var An = "DropdownMenuContent", jn = W.forwardRef((e, t) => {
|
|
|
988
988
|
});
|
|
989
989
|
});
|
|
990
990
|
jn.displayName = An;
|
|
991
|
-
var Mn = "DropdownMenuGroup", Nn =
|
|
991
|
+
var Mn = "DropdownMenuGroup", Nn = G.forwardRef((e, t) => {
|
|
992
992
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
993
|
-
return /* @__PURE__ */ (0,
|
|
993
|
+
return /* @__PURE__ */ (0, K.jsx)(ln, {
|
|
994
994
|
...i,
|
|
995
995
|
...r,
|
|
996
996
|
ref: t
|
|
997
997
|
});
|
|
998
998
|
});
|
|
999
999
|
Nn.displayName = Mn;
|
|
1000
|
-
var Pn = "DropdownMenuLabel", Fn =
|
|
1000
|
+
var Pn = "DropdownMenuLabel", Fn = G.forwardRef((e, t) => {
|
|
1001
1001
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1002
|
-
return /* @__PURE__ */ (0,
|
|
1002
|
+
return /* @__PURE__ */ (0, K.jsx)(un, {
|
|
1003
1003
|
...i,
|
|
1004
1004
|
...r,
|
|
1005
1005
|
ref: t
|
|
1006
1006
|
});
|
|
1007
1007
|
});
|
|
1008
1008
|
Fn.displayName = Pn;
|
|
1009
|
-
var In = "DropdownMenuItem", Ln =
|
|
1009
|
+
var In = "DropdownMenuItem", Ln = G.forwardRef((e, t) => {
|
|
1010
1010
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1011
|
-
return /* @__PURE__ */ (0,
|
|
1011
|
+
return /* @__PURE__ */ (0, K.jsx)(dn, {
|
|
1012
1012
|
...i,
|
|
1013
1013
|
...r,
|
|
1014
1014
|
ref: t
|
|
1015
1015
|
});
|
|
1016
1016
|
});
|
|
1017
1017
|
Ln.displayName = In;
|
|
1018
|
-
var Rn = "DropdownMenuCheckboxItem", zn =
|
|
1018
|
+
var Rn = "DropdownMenuCheckboxItem", zn = G.forwardRef((e, t) => {
|
|
1019
1019
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1020
|
-
return /* @__PURE__ */ (0,
|
|
1020
|
+
return /* @__PURE__ */ (0, K.jsx)(fn, {
|
|
1021
1021
|
...i,
|
|
1022
1022
|
...r,
|
|
1023
1023
|
ref: t
|
|
1024
1024
|
});
|
|
1025
1025
|
});
|
|
1026
1026
|
zn.displayName = Rn;
|
|
1027
|
-
var Bn = "DropdownMenuRadioGroup", Vn =
|
|
1027
|
+
var Bn = "DropdownMenuRadioGroup", Vn = G.forwardRef((e, t) => {
|
|
1028
1028
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1029
|
-
return /* @__PURE__ */ (0,
|
|
1029
|
+
return /* @__PURE__ */ (0, K.jsx)(pn, {
|
|
1030
1030
|
...i,
|
|
1031
1031
|
...r,
|
|
1032
1032
|
ref: t
|
|
1033
1033
|
});
|
|
1034
1034
|
});
|
|
1035
1035
|
Vn.displayName = Bn;
|
|
1036
|
-
var Hn = "DropdownMenuRadioItem", Un =
|
|
1036
|
+
var Hn = "DropdownMenuRadioItem", Un = G.forwardRef((e, t) => {
|
|
1037
1037
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1038
|
-
return /* @__PURE__ */ (0,
|
|
1038
|
+
return /* @__PURE__ */ (0, K.jsx)(mn, {
|
|
1039
1039
|
...i,
|
|
1040
1040
|
...r,
|
|
1041
1041
|
ref: t
|
|
1042
1042
|
});
|
|
1043
1043
|
});
|
|
1044
1044
|
Un.displayName = Hn;
|
|
1045
|
-
var Wn = "DropdownMenuItemIndicator", Gn =
|
|
1045
|
+
var Wn = "DropdownMenuItemIndicator", Gn = G.forwardRef((e, t) => {
|
|
1046
1046
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1047
|
-
return /* @__PURE__ */ (0,
|
|
1047
|
+
return /* @__PURE__ */ (0, K.jsx)(hn, {
|
|
1048
1048
|
...i,
|
|
1049
1049
|
...r,
|
|
1050
1050
|
ref: t
|
|
1051
1051
|
});
|
|
1052
1052
|
});
|
|
1053
1053
|
Gn.displayName = Wn;
|
|
1054
|
-
var Kn = "DropdownMenuSeparator", qn =
|
|
1054
|
+
var Kn = "DropdownMenuSeparator", qn = G.forwardRef((e, t) => {
|
|
1055
1055
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1056
|
-
return /* @__PURE__ */ (0,
|
|
1056
|
+
return /* @__PURE__ */ (0, K.jsx)(gn, {
|
|
1057
1057
|
...i,
|
|
1058
1058
|
...r,
|
|
1059
1059
|
ref: t
|
|
1060
1060
|
});
|
|
1061
1061
|
});
|
|
1062
1062
|
qn.displayName = Kn;
|
|
1063
|
-
var Jn = "DropdownMenuArrow", Yn =
|
|
1063
|
+
var Jn = "DropdownMenuArrow", Yn = G.forwardRef((e, t) => {
|
|
1064
1064
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1065
|
-
return /* @__PURE__ */ (0,
|
|
1065
|
+
return /* @__PURE__ */ (0, K.jsx)(_n, {
|
|
1066
1066
|
...i,
|
|
1067
1067
|
...r,
|
|
1068
1068
|
ref: t
|
|
1069
1069
|
});
|
|
1070
1070
|
});
|
|
1071
1071
|
Yn.displayName = Jn;
|
|
1072
|
-
var Xn = "DropdownMenuSubTrigger", Zn =
|
|
1072
|
+
var Xn = "DropdownMenuSubTrigger", Zn = G.forwardRef((e, t) => {
|
|
1073
1073
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1074
|
-
return /* @__PURE__ */ (0,
|
|
1074
|
+
return /* @__PURE__ */ (0, K.jsx)(vn, {
|
|
1075
1075
|
...i,
|
|
1076
1076
|
...r,
|
|
1077
1077
|
ref: t
|
|
1078
1078
|
});
|
|
1079
1079
|
});
|
|
1080
1080
|
Zn.displayName = Xn;
|
|
1081
|
-
var Qn = "DropdownMenuSubContent", $n =
|
|
1081
|
+
var Qn = "DropdownMenuSubContent", $n = G.forwardRef((e, t) => {
|
|
1082
1082
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
1083
|
-
return /* @__PURE__ */ (0,
|
|
1083
|
+
return /* @__PURE__ */ (0, K.jsx)(yn, {
|
|
1084
1084
|
...i,
|
|
1085
1085
|
...r,
|
|
1086
1086
|
ref: t,
|
|
@@ -1099,7 +1099,7 @@ var er = Tn, tr = Dn, nr = jn, rr = Ln;
|
|
|
1099
1099
|
//#endregion
|
|
1100
1100
|
//#region ../node_modules/@heroicons/react/24/outline/esm/BarsArrowDownIcon.js
|
|
1101
1101
|
function ir({ title: e, titleId: t, ...n }, r) {
|
|
1102
|
-
return /* @__PURE__ */
|
|
1102
|
+
return /* @__PURE__ */ G.createElement("svg", Object.assign({
|
|
1103
1103
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1104
1104
|
fill: "none",
|
|
1105
1105
|
viewBox: "0 0 24 24",
|
|
@@ -1109,39 +1109,39 @@ function ir({ title: e, titleId: t, ...n }, r) {
|
|
|
1109
1109
|
"data-slot": "icon",
|
|
1110
1110
|
ref: r,
|
|
1111
1111
|
"aria-labelledby": t
|
|
1112
|
-
}, n), e ? /* @__PURE__ */
|
|
1112
|
+
}, n), e ? /* @__PURE__ */ G.createElement("title", { id: t }, e) : null, /* @__PURE__ */ G.createElement("path", {
|
|
1113
1113
|
strokeLinecap: "round",
|
|
1114
1114
|
strokeLinejoin: "round",
|
|
1115
1115
|
d: "M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"
|
|
1116
1116
|
}));
|
|
1117
1117
|
}
|
|
1118
|
-
var ar = /* @__PURE__ */
|
|
1119
|
-
let i =
|
|
1118
|
+
var ar = /* @__PURE__ */ G.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sortByDistanceLabel: t, accessibilityLabel: n, on: r = () => {} }) => {
|
|
1119
|
+
let i = le();
|
|
1120
1120
|
if (!i) throw Error("SortDropdown must be used within a SearchRankingProvider");
|
|
1121
1121
|
let { sortMode: a, setSortMode: o, requestLocation: s, locationDenied: c } = i;
|
|
1122
|
-
return /* @__PURE__ */ (0,
|
|
1122
|
+
return /* @__PURE__ */ (0, K.jsxs)(er, {
|
|
1123
1123
|
onOpenChange: (e) => e && r("openSortMenu"),
|
|
1124
|
-
children: [/* @__PURE__ */ (0,
|
|
1124
|
+
children: [/* @__PURE__ */ (0, K.jsx)(tr, {
|
|
1125
1125
|
asChild: !0,
|
|
1126
|
-
children: /* @__PURE__ */ (0,
|
|
1126
|
+
children: /* @__PURE__ */ (0, K.jsx)("button", {
|
|
1127
1127
|
type: "button",
|
|
1128
1128
|
className: "sid-sort-dropdown__trigger",
|
|
1129
1129
|
"aria-label": n,
|
|
1130
|
-
children: /* @__PURE__ */ (0,
|
|
1130
|
+
children: /* @__PURE__ */ (0, K.jsx)(ar, { className: "sid-sort-dropdown__icon" })
|
|
1131
1131
|
})
|
|
1132
|
-
}), /* @__PURE__ */ (0,
|
|
1132
|
+
}), /* @__PURE__ */ (0, K.jsxs)(nr, {
|
|
1133
1133
|
className: "sid-sort-dropdown__content",
|
|
1134
1134
|
sideOffset: 0,
|
|
1135
1135
|
collisionPadding: 10,
|
|
1136
1136
|
align: "end",
|
|
1137
|
-
children: [/* @__PURE__ */ (0,
|
|
1137
|
+
children: [/* @__PURE__ */ (0, K.jsx)(rr, {
|
|
1138
1138
|
className: "sid-sort-dropdown__item",
|
|
1139
1139
|
onSelect: () => {
|
|
1140
1140
|
o("relevance"), r("sortRelevance");
|
|
1141
1141
|
},
|
|
1142
1142
|
"data-active": a === "relevance" ? "" : void 0,
|
|
1143
1143
|
children: e
|
|
1144
|
-
}), /* @__PURE__ */ (0,
|
|
1144
|
+
}), /* @__PURE__ */ (0, K.jsx)(rr, {
|
|
1145
1145
|
className: "sid-sort-dropdown__item",
|
|
1146
1146
|
onSelect: async () => {
|
|
1147
1147
|
if (!c) try {
|
|
@@ -1175,8 +1175,8 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1175
1175
|
}
|
|
1176
1176
|
n.debounce = n, t.exports = n;
|
|
1177
1177
|
})))(), cr = 42, lr = 26, ur = ({ getItemProps: e, highlightedIndex: t, organizations: n, itemToString: r, children: i, maxItemsToDisplay: a = lr }) => {
|
|
1178
|
-
let o =
|
|
1179
|
-
(0,
|
|
1178
|
+
let o = G.Children.count(i), s = (n.length + o) * cr, c = {}, l = P("org-search-overlay") === "overlay", u = le(), d = f(), p = (0, G.useMemo)(() => ve(d), [d]), m = (e) => !u?.userLocation || e.latitude == null || e.longitude == null ? null : ye(ge(u.userLocation.latitude, u.userLocation.longitude, e.latitude, e.longitude), p);
|
|
1179
|
+
(0, G.useEffect)(() => {
|
|
1180
1180
|
let e = document.getElementsByClassName("sid-organization-list__item--highlighted").item(0);
|
|
1181
1181
|
e && ("scrollIntoViewIfNeeded" in e && typeof e.scrollIntoViewIfNeeded == "function" ? e.scrollIntoViewIfNeeded(!0) : e.scrollIntoView({
|
|
1182
1182
|
behavior: "instant",
|
|
@@ -1185,7 +1185,7 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1185
1185
|
}, [t]);
|
|
1186
1186
|
let h = (n, i) => {
|
|
1187
1187
|
let a = [n.city, n.state].filter(Boolean).join(", "), o = m(n);
|
|
1188
|
-
return /* @__PURE__ */ (0,
|
|
1188
|
+
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1189
1189
|
className: `sid-organization-list__item ${t === i ? "sid-organization-list__item--highlighted" : ""}`,
|
|
1190
1190
|
role: "option",
|
|
1191
1191
|
"aria-selected": t === i,
|
|
@@ -1195,15 +1195,15 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1195
1195
|
}),
|
|
1196
1196
|
ref: c[t],
|
|
1197
1197
|
children: [
|
|
1198
|
-
/* @__PURE__ */ (0,
|
|
1198
|
+
/* @__PURE__ */ (0, K.jsx)("span", {
|
|
1199
1199
|
className: "sid-organization-list__name",
|
|
1200
1200
|
children: r(n)
|
|
1201
1201
|
}),
|
|
1202
|
-
l && a && /* @__PURE__ */ (0,
|
|
1202
|
+
l && a && /* @__PURE__ */ (0, K.jsx)("span", {
|
|
1203
1203
|
className: "sid-organization-list__location",
|
|
1204
1204
|
children: a
|
|
1205
1205
|
}),
|
|
1206
|
-
o && /* @__PURE__ */ (0,
|
|
1206
|
+
o && /* @__PURE__ */ (0, K.jsx)("span", {
|
|
1207
1207
|
className: "sid-organization-list__distance",
|
|
1208
1208
|
"data-testid": "org-distance",
|
|
1209
1209
|
children: o
|
|
@@ -1211,54 +1211,54 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1211
1211
|
]
|
|
1212
1212
|
}, i);
|
|
1213
1213
|
};
|
|
1214
|
-
return /* @__PURE__ */ (0,
|
|
1214
|
+
return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1215
1215
|
id: "sid-org-list-menu",
|
|
1216
1216
|
className: "sid-organization-list__menu",
|
|
1217
1217
|
tabIndex: -1,
|
|
1218
1218
|
role: "listbox",
|
|
1219
|
-
children: /* @__PURE__ */ (0,
|
|
1219
|
+
children: /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1220
1220
|
style: { height: Math.min(s, 280) },
|
|
1221
1221
|
children: [n.filter((e, t) => t <= a - 1).map((e, t) => h(e, t)), i]
|
|
1222
1222
|
})
|
|
1223
1223
|
});
|
|
1224
|
-
}, dr = ({ className: e }) => /* @__PURE__ */ (0,
|
|
1224
|
+
}, dr = ({ className: e }) => /* @__PURE__ */ (0, K.jsx)("svg", {
|
|
1225
1225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1226
1226
|
fill: "none",
|
|
1227
1227
|
viewBox: "0 0 24 24",
|
|
1228
1228
|
strokeWidth: 1.5,
|
|
1229
1229
|
stroke: "currentColor",
|
|
1230
1230
|
className: e,
|
|
1231
|
-
children: /* @__PURE__ */ (0,
|
|
1231
|
+
children: /* @__PURE__ */ (0, K.jsx)("path", {
|
|
1232
1232
|
strokeLinecap: "round",
|
|
1233
1233
|
strokeLinejoin: "round",
|
|
1234
1234
|
d: "M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"
|
|
1235
1235
|
})
|
|
1236
|
-
}), fr = ({ urlAddSchoolForm: e, programId: t, locale: n =
|
|
1237
|
-
let [a, o] =
|
|
1238
|
-
return a ? /* @__PURE__ */ (0,
|
|
1236
|
+
}), fr = ({ urlAddSchoolForm: e, programId: t, locale: n = L, onClick: r = () => void 0, onTipsShown: i }) => {
|
|
1237
|
+
let [a, o] = G.useState(!1), { trackEvent: s } = ie({ programId: t });
|
|
1238
|
+
return a ? /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1239
1239
|
className: "sid-organization-list__add-school-tips",
|
|
1240
|
-
children: [/* @__PURE__ */ (0,
|
|
1240
|
+
children: [/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1241
1241
|
className: "sid-organization-list__tips",
|
|
1242
|
-
children: [/* @__PURE__ */ (0,
|
|
1242
|
+
children: [/* @__PURE__ */ (0, K.jsx)("div", { children: /* @__PURE__ */ (0, K.jsx)(dr, { className: "sid-organization-list__tips-icon" }) }), /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1243
1243
|
className: "sid-organization-list__tips-text",
|
|
1244
|
-
children: [/* @__PURE__ */ (0,
|
|
1244
|
+
children: [/* @__PURE__ */ (0, K.jsx)(A, {
|
|
1245
1245
|
id: "multipleLocationsTips",
|
|
1246
1246
|
defaultMessage: "If your academic institution has multiple locations and you didn't see yours, enter the main location."
|
|
1247
|
-
}), /* @__PURE__ */ (0,
|
|
1247
|
+
}), /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1248
1248
|
id: "tryFullNameTips",
|
|
1249
1249
|
defaultMessage: "Try typing the full name of the academic institution rather than using acronyms or abbreviations."
|
|
1250
1250
|
})]
|
|
1251
1251
|
})]
|
|
1252
|
-
}), /* @__PURE__ */ (0,
|
|
1252
|
+
}), /* @__PURE__ */ (0, K.jsx)(I, {
|
|
1253
1253
|
onClick: r,
|
|
1254
1254
|
className: "sid-organization-list__item sid-organization-list__request-school sid-link",
|
|
1255
1255
|
href: `${e}?pid=${t}&locale=${n}`,
|
|
1256
|
-
children: /* @__PURE__ */ (0,
|
|
1256
|
+
children: /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1257
1257
|
id: "requestSchool",
|
|
1258
1258
|
defaultMessage: "Don't see your school? Request to have it added"
|
|
1259
1259
|
})
|
|
1260
1260
|
})]
|
|
1261
|
-
}) : /* @__PURE__ */ (0,
|
|
1261
|
+
}) : /* @__PURE__ */ (0, K.jsx)(I, {
|
|
1262
1262
|
onClick: () => {
|
|
1263
1263
|
h({
|
|
1264
1264
|
eventName: m.ASR_TIPS_SHOWN,
|
|
@@ -1266,31 +1266,31 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1266
1266
|
programId: t,
|
|
1267
1267
|
locale: n
|
|
1268
1268
|
}
|
|
1269
|
-
}), s(
|
|
1269
|
+
}), s(W.AsrTipsShown), i?.(), o(!0);
|
|
1270
1270
|
},
|
|
1271
1271
|
className: "sid-organization-list__item sid-organization-list__request-school sid-link",
|
|
1272
|
-
children: /* @__PURE__ */ (0,
|
|
1272
|
+
children: /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1273
1273
|
id: "cantFindYourSchool",
|
|
1274
1274
|
defaultMessage: "Can't find your school? Click to show tips"
|
|
1275
1275
|
})
|
|
1276
1276
|
});
|
|
1277
|
-
}, pr = (e) => b("name", e) || "", mr = (e) => e && e.find((e) => e.source === "PLACE") ? /* @__PURE__ */ (0,
|
|
1277
|
+
}, pr = (e) => b("name", e) || "", mr = (e) => e && e.find((e) => e.source === "PLACE") ? /* @__PURE__ */ (0, K.jsx)("img", {
|
|
1278
1278
|
className: "sid-organization-list__attribution-logo",
|
|
1279
1279
|
src: "https://developers.google.com/static/maps/documentation/images/google_on_white.png",
|
|
1280
1280
|
alt: "Google"
|
|
1281
1281
|
}) : null, hr = (e, t, n) => {
|
|
1282
1282
|
if (!t && !n) return e;
|
|
1283
|
-
if (!e) return
|
|
1283
|
+
if (!e) return H.error("Expected orgSearchUrl"), e;
|
|
1284
1284
|
try {
|
|
1285
1285
|
let { origin: r, pathname: i, search: a } = new URL(e), o = new URLSearchParams(a);
|
|
1286
1286
|
return t && o.set("name", t), n && Object.entries(n).forEach(([e, t]) => {
|
|
1287
1287
|
o.set(e, t);
|
|
1288
1288
|
}), o.sort(), `${r}${i}?${o.toString()}`;
|
|
1289
1289
|
} catch (e) {
|
|
1290
|
-
|
|
1290
|
+
H.error(e);
|
|
1291
1291
|
}
|
|
1292
1292
|
}, gr = ({ getItemProps: e, getMenuProps: t, highlightedIndex: n, itemToString: r, minimumSearchValueLength: i, onLoaded: a, programId: o, orgSearchUrl: c, locale: l, urlAddSchoolForm: u, openOrgSearchEnabled: d, onClickAddSchool: f, onTipsShown: p, searchUrlParams: g, searchValue: _ }) => {
|
|
1293
|
-
let [v, y] = (0,
|
|
1293
|
+
let [v, y] = (0, G.useState)(!1), [b, x] = (0, G.useState)(null), [S, w] = (0, G.useState)(null), T = (0, G.useRef)(!1), E = (0, G.useRef)(null), D = le(), O = (0, G.useRef)({
|
|
1294
1294
|
orgSearchUrl: c,
|
|
1295
1295
|
searchValue: _,
|
|
1296
1296
|
searchUrlParams: g,
|
|
@@ -1302,9 +1302,9 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1302
1302
|
searchUrlParams: g,
|
|
1303
1303
|
onLoaded: a
|
|
1304
1304
|
};
|
|
1305
|
-
let k = (0,
|
|
1305
|
+
let k = (0, G.useRef)(D);
|
|
1306
1306
|
k.current = D;
|
|
1307
|
-
let
|
|
1307
|
+
let j = _ || pr(c) || "", M = (0, G.useCallback)(async () => {
|
|
1308
1308
|
if (!T.current) return;
|
|
1309
1309
|
let { orgSearchUrl: e, searchValue: t, searchUrlParams: n, onLoaded: r } = O.current, i = n, a = k.current;
|
|
1310
1310
|
a && a.sortMode === "distance" && a.userLocation && (i = {
|
|
@@ -1326,64 +1326,64 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1326
1326
|
}
|
|
1327
1327
|
});
|
|
1328
1328
|
} catch (e) {
|
|
1329
|
-
|
|
1329
|
+
H.error(e);
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
}, []), N = (0,
|
|
1333
|
-
N.current ||= (0, sr.debounce)(M, 200), (0,
|
|
1332
|
+
}, []), N = (0, G.useRef)(null);
|
|
1333
|
+
N.current ||= (0, sr.debounce)(M, 200), (0, G.useEffect)(() => (T.current = !0, () => {
|
|
1334
1334
|
T.current = !1, N.current && N.current.clear();
|
|
1335
|
-
}), []), (0,
|
|
1335
|
+
}), []), (0, G.useEffect)(() => {
|
|
1336
1336
|
let e = E.current;
|
|
1337
|
-
e !==
|
|
1338
|
-
}, [
|
|
1339
|
-
let P = D?.sortMode,
|
|
1340
|
-
(0,
|
|
1341
|
-
|
|
1337
|
+
e !== j && (j.length >= i ? (w(null), y(!0), x(null), N.current && N.current()) : (w(null), y(!1), x(null), e === null ? j.length > 0 && H.info(`No organizations fetched. Search searchTerm "${j}" is less than ${i} characters.`) : H.info(`No organizations fetched. Search searchTterm "${j}" is less than ${i} characters.`))), E.current = j;
|
|
1338
|
+
}, [j, i]);
|
|
1339
|
+
let P = D?.sortMode, F = D?.userLocation?.latitude, I = D?.userLocation?.longitude;
|
|
1340
|
+
(0, G.useEffect)(() => {
|
|
1341
|
+
j.length >= i && (w(null), y(!0), x(null), N.current?.());
|
|
1342
1342
|
}, [
|
|
1343
1343
|
P,
|
|
1344
|
-
ee,
|
|
1345
1344
|
F,
|
|
1346
|
-
|
|
1345
|
+
I,
|
|
1346
|
+
j,
|
|
1347
1347
|
i
|
|
1348
1348
|
]);
|
|
1349
|
-
let
|
|
1350
|
-
return v ? /* @__PURE__ */ (0,
|
|
1349
|
+
let L = mr(b);
|
|
1350
|
+
return v ? /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1351
1351
|
className: "sid-organization-list__menu",
|
|
1352
|
-
children: /* @__PURE__ */ (0,
|
|
1352
|
+
children: /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1353
1353
|
className: "sid-organization-list__message sid-organization-list__spinner-container",
|
|
1354
|
-
children: /* @__PURE__ */ (0,
|
|
1354
|
+
children: /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1355
1355
|
id: "sid-spinner-container",
|
|
1356
|
-
children: /* @__PURE__ */ (0,
|
|
1356
|
+
children: /* @__PURE__ */ (0, K.jsx)(C, {})
|
|
1357
1357
|
})
|
|
1358
1358
|
})
|
|
1359
|
-
}) : S ? /* @__PURE__ */ (0,
|
|
1359
|
+
}) : S ? /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1360
1360
|
className: "sid-organization-list__menu",
|
|
1361
|
-
children: /* @__PURE__ */ (0,
|
|
1361
|
+
children: /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1362
1362
|
className: "sid-organization-list__message",
|
|
1363
|
-
children: /* @__PURE__ */ (0,
|
|
1363
|
+
children: /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1364
1364
|
id: "errorId.unknownError",
|
|
1365
1365
|
defaultMessage: "An unknown error occurred"
|
|
1366
1366
|
})
|
|
1367
1367
|
})
|
|
1368
|
-
}) : b && b.length > 0 ? /* @__PURE__ */ (0,
|
|
1368
|
+
}) : b && b.length > 0 ? /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [L && /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1369
1369
|
className: "sid-organization-list__attribution",
|
|
1370
|
-
children:
|
|
1371
|
-
}), /* @__PURE__ */ (0,
|
|
1370
|
+
children: L
|
|
1371
|
+
}), /* @__PURE__ */ (0, K.jsx)(ur, {
|
|
1372
1372
|
getItemProps: e,
|
|
1373
1373
|
getMenuProps: t,
|
|
1374
1374
|
highlightedIndex: n,
|
|
1375
1375
|
itemToString: r,
|
|
1376
1376
|
organizations: b,
|
|
1377
|
-
children:
|
|
1377
|
+
children: j && !d && u && (!b || b.length < 26) && /* @__PURE__ */ (0, K.jsx)(fr, {
|
|
1378
1378
|
onClick: f,
|
|
1379
1379
|
onTipsShown: p,
|
|
1380
1380
|
urlAddSchoolForm: u,
|
|
1381
1381
|
programId: o,
|
|
1382
1382
|
locale: l
|
|
1383
1383
|
})
|
|
1384
|
-
})] }) :
|
|
1384
|
+
})] }) : j && !d && u && (!b || b.length === 0) ? /* @__PURE__ */ (0, K.jsx)("div", {
|
|
1385
1385
|
className: "sid-organization-list__menu",
|
|
1386
|
-
children: /* @__PURE__ */ (0,
|
|
1386
|
+
children: /* @__PURE__ */ (0, K.jsx)(fr, {
|
|
1387
1387
|
onClick: f,
|
|
1388
1388
|
onTipsShown: p,
|
|
1389
1389
|
urlAddSchoolForm: u,
|
|
@@ -1392,14 +1392,14 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1392
1392
|
})
|
|
1393
1393
|
}) : null;
|
|
1394
1394
|
}, _r = (e, t, n) => {
|
|
1395
|
-
if (e.type ===
|
|
1395
|
+
if (e.type === U.stateChangeTypes.FunctionSelectItem) {
|
|
1396
1396
|
let { selectedItem: n } = e;
|
|
1397
1397
|
t(n);
|
|
1398
|
-
} else e.type ===
|
|
1398
|
+
} else e.type === U.stateChangeTypes.InputBlur && !n.openOrgSearchEnabled && !n._searchOverlayEnabled && t({
|
|
1399
1399
|
id: void 0,
|
|
1400
1400
|
name: ""
|
|
1401
1401
|
});
|
|
1402
|
-
}, vr = ({ id: e, onMouseDown: t, disabled: n, onKeyDown: r, handleOnBlur: i }) => /* @__PURE__ */ (0,
|
|
1402
|
+
}, vr = ({ id: e, onMouseDown: t, disabled: n, onKeyDown: r, handleOnBlur: i }) => /* @__PURE__ */ (0, K.jsx)("button", {
|
|
1403
1403
|
id: e,
|
|
1404
1404
|
type: "button",
|
|
1405
1405
|
onMouseDown: t,
|
|
@@ -1409,121 +1409,121 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1409
1409
|
"aria-label": "clear text",
|
|
1410
1410
|
"aria-disabled": n,
|
|
1411
1411
|
tabIndex: 0,
|
|
1412
|
-
children: /* @__PURE__ */ (0,
|
|
1412
|
+
children: /* @__PURE__ */ (0, K.jsx)("svg", {
|
|
1413
1413
|
viewBox: "0 0 24 24",
|
|
1414
1414
|
preserveAspectRatio: "none",
|
|
1415
1415
|
width: 28,
|
|
1416
1416
|
fill: "none",
|
|
1417
1417
|
stroke: n ? "#B6B6B6" : "#8E95A4",
|
|
1418
1418
|
strokeWidth: "1.1",
|
|
1419
|
-
children: /* @__PURE__ */ (0,
|
|
1419
|
+
children: /* @__PURE__ */ (0, K.jsx)("path", {
|
|
1420
1420
|
strokeLinecap: "round",
|
|
1421
1421
|
strokeLinejoin: "round",
|
|
1422
1422
|
d: "M6 18L18 6M6 6l12 12"
|
|
1423
1423
|
})
|
|
1424
1424
|
})
|
|
1425
|
-
}), yr =
|
|
1426
|
-
let [
|
|
1427
|
-
|
|
1428
|
-
let
|
|
1429
|
-
itemToString:
|
|
1425
|
+
}), yr = T(({ onChange: e, programId: t, className: n, countryCode: r, disabled: i, minimumSearchValueLength: a, placeholder: s, value: c, inputHtmlId: l, openOrgSearchEnabled: u, orgSearchUrl: f, isRequired: p, locale: g, urlAddSchoolForm: _, isErrored: v, ariaDescribedBy: y, autoFocus: b = !1, onBlur: x = () => {}, intl: S }) => {
|
|
1426
|
+
let [C, w] = (0, G.useState)(c ? c.name : ""), [T, E] = (0, G.useState)([]), D = (0, G.useRef)(0), k = (0, G.useRef)(0), A = (0, G.useRef)(!1), j = (0, G.useRef)(!1), [M, N] = (0, G.useState)(!1), [F, I] = (0, G.useState)(!1), { recordNumericMetric: L, trackEvent: R } = ie({ programId: t }), ee = P("org-search-overlay") === "overlay", { showOverlay: z, setShowOverlay: B } = se();
|
|
1427
|
+
O(e);
|
|
1428
|
+
let V = (e) => e ? e.name : "", { isOpen: te, highlightedIndex: ne, getMenuProps: re, getItemProps: ae, getInputProps: oe } = U({
|
|
1429
|
+
itemToString: V,
|
|
1430
1430
|
id: l,
|
|
1431
|
-
items:
|
|
1432
|
-
inputValue:
|
|
1431
|
+
items: T,
|
|
1432
|
+
inputValue: C,
|
|
1433
1433
|
onStateChange: (t) => _r(t, e, {
|
|
1434
1434
|
openOrgSearchEnabled: u,
|
|
1435
|
-
_searchOverlayEnabled:
|
|
1435
|
+
_searchOverlayEnabled: z
|
|
1436
1436
|
}),
|
|
1437
1437
|
selectedItem: c,
|
|
1438
1438
|
onSelectedItemChange: ({ selectedItem: t }) => {
|
|
1439
1439
|
if (!t) {
|
|
1440
|
-
|
|
1440
|
+
w(""), B(!1), e({
|
|
1441
1441
|
id: 0,
|
|
1442
1442
|
name: ""
|
|
1443
1443
|
});
|
|
1444
1444
|
return;
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1447
|
-
let n =
|
|
1446
|
+
w(V(t));
|
|
1447
|
+
let n = T.findIndex((e) => e.id === t.id) + 1, r = Date.now() - k.current;
|
|
1448
1448
|
try {
|
|
1449
1449
|
h({
|
|
1450
1450
|
eventName: m.ORG_SELECTED,
|
|
1451
1451
|
params: {
|
|
1452
|
-
[o.QUERY_LENGTH]:
|
|
1453
|
-
[o.NUMBER_REWORKS]:
|
|
1452
|
+
[o.QUERY_LENGTH]: C.length,
|
|
1453
|
+
[o.NUMBER_REWORKS]: D.current,
|
|
1454
1454
|
[o.SELECTED_RESULT_RANK]: n,
|
|
1455
1455
|
[o.EVENT_DURATION]: r,
|
|
1456
|
-
[o.NUMBER_OF_RESULTS]:
|
|
1456
|
+
[o.NUMBER_OF_RESULTS]: T.length
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
} catch (e) {
|
|
1460
|
-
|
|
1460
|
+
H.error(e);
|
|
1461
1461
|
}
|
|
1462
1462
|
try {
|
|
1463
|
-
|
|
1463
|
+
L(W.OrgSearchNumReworks, D.current), L(W.OrgSearchQueryLength, C.length), L(W.OrgSearchResultRank, n), L(W.OrgSearchTimeUntilSelection, r);
|
|
1464
1464
|
} catch (e) {
|
|
1465
|
-
|
|
1465
|
+
H.error(e);
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
k.current = 0, D.current = 0, B(!1), e(t);
|
|
1468
1468
|
}
|
|
1469
|
-
}),
|
|
1469
|
+
}), ce = () => {
|
|
1470
1470
|
try {
|
|
1471
1471
|
h({
|
|
1472
1472
|
eventName: m.ASR_SELECTED,
|
|
1473
1473
|
params: {
|
|
1474
|
-
[o.QUERY_LENGTH]:
|
|
1475
|
-
[o.NUMBER_REWORKS]:
|
|
1476
|
-
[o.EVENT_DURATION]: Date.now() -
|
|
1477
|
-
[o.NUMBER_OF_RESULTS]:
|
|
1474
|
+
[o.QUERY_LENGTH]: C.length,
|
|
1475
|
+
[o.NUMBER_REWORKS]: D.current,
|
|
1476
|
+
[o.EVENT_DURATION]: Date.now() - k.current,
|
|
1477
|
+
[o.NUMBER_OF_RESULTS]: T.length
|
|
1478
1478
|
}
|
|
1479
|
-
}),
|
|
1479
|
+
}), R(W.AsrClickThrough);
|
|
1480
1480
|
} catch (e) {
|
|
1481
|
-
|
|
1481
|
+
H.error(e);
|
|
1482
1482
|
}
|
|
1483
|
-
},
|
|
1484
|
-
|
|
1485
|
-
},
|
|
1483
|
+
}, le = () => {
|
|
1484
|
+
A.current = !0;
|
|
1485
|
+
}, ue = (n) => {
|
|
1486
1486
|
let r = n.target.value;
|
|
1487
|
-
|
|
1487
|
+
I(!r);
|
|
1488
1488
|
try {
|
|
1489
|
-
|
|
1489
|
+
k.current === 0 && (k.current = Date.now()), r.length < C.length && (D.current += 1), A.current && !j.current && r && (j.current = !0, h({
|
|
1490
1490
|
eventName: m.ASR_SEARCH_AFTER_TIPS,
|
|
1491
1491
|
params: { programId: t }
|
|
1492
|
-
}),
|
|
1492
|
+
}), R(W.AsrSearchAfterTips));
|
|
1493
1493
|
} catch (e) {
|
|
1494
|
-
|
|
1494
|
+
H.error(e);
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1496
|
+
w(r), e({
|
|
1497
1497
|
id: 0,
|
|
1498
1498
|
name: r
|
|
1499
1499
|
});
|
|
1500
|
-
},
|
|
1501
|
-
(0,
|
|
1502
|
-
d("organization",
|
|
1500
|
+
}, de = (0, G.useRef)(null);
|
|
1501
|
+
(0, G.useEffect)(() => {
|
|
1502
|
+
d("organization", de.current);
|
|
1503
1503
|
});
|
|
1504
|
-
let
|
|
1505
|
-
|
|
1506
|
-
},
|
|
1507
|
-
e.relatedTarget?.id !== `${l}-clear-button` && (
|
|
1508
|
-
},
|
|
1509
|
-
(t.type === "mousedown" || "key" in t && t.key === "Enter") && (
|
|
1504
|
+
let fe = (e) => {
|
|
1505
|
+
N(!0), e.currentTarget.value ? (I(!1), B(!0)) : I(!0);
|
|
1506
|
+
}, pe = (e) => {
|
|
1507
|
+
e.relatedTarget?.id !== `${l}-clear-button` && (N(!1), x());
|
|
1508
|
+
}, me = (t) => {
|
|
1509
|
+
(t.type === "mousedown" || "key" in t && t.key === "Enter") && (w(""), e({
|
|
1510
1510
|
id: void 0,
|
|
1511
1511
|
name: ""
|
|
1512
|
-
}),
|
|
1512
|
+
}), de.current.focus());
|
|
1513
1513
|
};
|
|
1514
|
-
return /* @__PURE__ */ (0,
|
|
1514
|
+
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1515
1515
|
className: "sid-organization-list",
|
|
1516
1516
|
children: [
|
|
1517
|
-
/* @__PURE__ */ (0,
|
|
1517
|
+
/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
1518
1518
|
className: "sid-text-input__wrapper",
|
|
1519
|
-
children: [/* @__PURE__ */ (0,
|
|
1520
|
-
...
|
|
1521
|
-
ref:
|
|
1522
|
-
onChange:
|
|
1523
|
-
onFocus: (e) =>
|
|
1524
|
-
onBlur: (e) =>
|
|
1519
|
+
children: [/* @__PURE__ */ (0, K.jsx)("input", {
|
|
1520
|
+
...oe({
|
|
1521
|
+
ref: de,
|
|
1522
|
+
onChange: ue,
|
|
1523
|
+
onFocus: (e) => fe(e),
|
|
1524
|
+
onBlur: (e) => pe(e),
|
|
1525
1525
|
onKeyDown: (e) => {
|
|
1526
|
-
e.key !== "Tab" && e.key !== "Escape" &&
|
|
1526
|
+
e.key !== "Tab" && e.key !== "Escape" && B(!0);
|
|
1527
1527
|
}
|
|
1528
1528
|
}),
|
|
1529
1529
|
className: `sid-l-full-width sid-hidden-placeholder sid-text-input ${n}`,
|
|
@@ -1536,124 +1536,124 @@ var ar = /* @__PURE__ */ W.forwardRef(ir), or = ({ sortByRelevanceLabel: e, sort
|
|
|
1536
1536
|
"aria-describedby": y,
|
|
1537
1537
|
"aria-invalid": v,
|
|
1538
1538
|
"aria-labelledby": `${l}-label`
|
|
1539
|
-
}),
|
|
1540
|
-
sortByRelevanceLabel:
|
|
1539
|
+
}), z && /* @__PURE__ */ (0, K.jsx)(or, {
|
|
1540
|
+
sortByRelevanceLabel: S.formatMessage({
|
|
1541
1541
|
id: "orgSearchSortByRelevance",
|
|
1542
1542
|
defaultMessage: "Sort by Relevance"
|
|
1543
1543
|
}),
|
|
1544
|
-
sortByDistanceLabel:
|
|
1544
|
+
sortByDistanceLabel: S.formatMessage({
|
|
1545
1545
|
id: "orgSearchSortByDistance",
|
|
1546
1546
|
defaultMessage: "Sort by Distance"
|
|
1547
1547
|
}),
|
|
1548
|
-
accessibilityLabel:
|
|
1548
|
+
accessibilityLabel: S.formatMessage({
|
|
1549
1549
|
id: "orgSearchSortAccessibilityLabel",
|
|
1550
1550
|
defaultMessage: "Sort search results"
|
|
1551
1551
|
}),
|
|
1552
1552
|
on: (e) => {
|
|
1553
1553
|
switch (e) {
|
|
1554
1554
|
case "openSortMenu":
|
|
1555
|
-
|
|
1555
|
+
R(W.OrgSearchOpenSortMenu);
|
|
1556
1556
|
break;
|
|
1557
1557
|
case "sortDistance":
|
|
1558
|
-
|
|
1558
|
+
R(W.OrgSearchSortDistance);
|
|
1559
1559
|
break;
|
|
1560
1560
|
case "sortRelevance":
|
|
1561
|
-
|
|
1561
|
+
R(W.OrgSearchSortRelevance);
|
|
1562
1562
|
break;
|
|
1563
1563
|
default: break;
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
})]
|
|
1567
1567
|
}),
|
|
1568
|
-
|
|
1568
|
+
M && !z ? /* @__PURE__ */ (0, K.jsx)(vr, {
|
|
1569
1569
|
id: `${l}-clear-button`,
|
|
1570
|
-
disabled:
|
|
1571
|
-
onMouseDown:
|
|
1572
|
-
onKeyDown:
|
|
1573
|
-
handleOnBlur:
|
|
1570
|
+
disabled: F,
|
|
1571
|
+
onMouseDown: me,
|
|
1572
|
+
onKeyDown: me,
|
|
1573
|
+
handleOnBlur: pe
|
|
1574
1574
|
}) : null,
|
|
1575
|
-
/* @__PURE__ */ (0,
|
|
1576
|
-
...
|
|
1575
|
+
/* @__PURE__ */ (0, K.jsx)("div", {
|
|
1576
|
+
...re(),
|
|
1577
1577
|
className: "sid-organization-list__menu-wrapper",
|
|
1578
|
-
children:
|
|
1578
|
+
children: C && te || z && C ? /* @__PURE__ */ (0, K.jsx)(gr, {
|
|
1579
1579
|
countryCode: r,
|
|
1580
|
-
getItemProps:
|
|
1581
|
-
highlightedIndex:
|
|
1582
|
-
itemToString:
|
|
1580
|
+
getItemProps: ae,
|
|
1581
|
+
highlightedIndex: ne,
|
|
1582
|
+
itemToString: V,
|
|
1583
1583
|
minimumSearchValueLength: a,
|
|
1584
|
-
onLoaded: (e) =>
|
|
1584
|
+
onLoaded: (e) => E(e),
|
|
1585
1585
|
programId: t,
|
|
1586
1586
|
orgSearchUrl: f,
|
|
1587
1587
|
locale: g,
|
|
1588
1588
|
urlAddSchoolForm: _,
|
|
1589
|
-
onClickAddSchool:
|
|
1590
|
-
onTipsShown:
|
|
1589
|
+
onClickAddSchool: ce,
|
|
1590
|
+
onTipsShown: le,
|
|
1591
1591
|
openOrgSearchEnabled: u,
|
|
1592
|
-
searchUrlParams:
|
|
1592
|
+
searchUrlParams: ee ? { format: "detailed" } : void 0
|
|
1593
1593
|
}) : null
|
|
1594
1594
|
})
|
|
1595
1595
|
]
|
|
1596
1596
|
});
|
|
1597
|
-
}), br = (e) => p(() => e.id) === 0 && p(() => e.name, "").length > 0, xr = (e, t) => p(() => e.openOrgSearchEnabled) && br(t.organization), Sr =
|
|
1598
|
-
let b = `sid-${e(t)}`,
|
|
1599
|
-
|
|
1600
|
-
},
|
|
1601
|
-
|
|
1602
|
-
},
|
|
1597
|
+
}), br = (e) => p(() => e.id) === 0 && p(() => e.name, "").length > 0, xr = (e, t) => p(() => e.openOrgSearchEnabled) && br(t.organization), Sr = T(({ fieldId: t, value: n, verificationService: r, onChange: i, placeholder: o, label: s, errorMessage: c, warningMessage: l, helperMessage: u, showPlaceholderAndHideLabel: d = !1, isRequired: p = !0, explanation: m = "", orgSearchUrl: h, urlAddSchoolForm: g, disabled: _ = !1, intl: y }) => {
|
|
1598
|
+
let b = `sid-${e(t)}`, x = `sid-${e(t)}-error`, S = `sid-${e(t)}-warning`, { programId: C, programTheme: w, verificationResponse: T, viewModel: E } = r, D = v(() => E.countryChoice.value), O = ae(w, D), k = f(E, T), [j, M] = (0, G.useState)(!1), N = P("org-search-overlay") === "overlay", F = N || P("org-selected-display") === "box-display", I = P("hc-open-org-warning") === "warning-orange", L = P("hc-open-org-warning") === "warning-gray", R = I || L, [ee, z] = (0, G.useState)(!1), B = v(() => w.openOrgSearchEnabled), V = () => {
|
|
1599
|
+
B && br(n) ? z(!0) : z(!1);
|
|
1600
|
+
}, H = (e) => {
|
|
1601
|
+
ee && z(!1), i(e);
|
|
1602
|
+
}, te = ee && R && /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1603
1603
|
id: "warningId.openOrganization",
|
|
1604
1604
|
defaultMessage: "We couldn't find a match for that name in our database. Please double-check the spelling, if it's correct, feel free to continue!"
|
|
1605
|
-
}),
|
|
1606
|
-
return /* @__PURE__ */ (0,
|
|
1607
|
-
enabled:
|
|
1608
|
-
closeSectionLabel: /* @__PURE__ */ (0,
|
|
1605
|
+
}), U = l || I && te, W = u || L && te;
|
|
1606
|
+
return /* @__PURE__ */ (0, K.jsx)(pe, {
|
|
1607
|
+
enabled: N,
|
|
1608
|
+
closeSectionLabel: /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1609
1609
|
id: "closeSection",
|
|
1610
1610
|
defaultMessage: "Close Section"
|
|
1611
1611
|
}),
|
|
1612
|
-
children: /* @__PURE__ */ (0,
|
|
1612
|
+
children: /* @__PURE__ */ (0, K.jsx)(re, {
|
|
1613
1613
|
fieldId: t,
|
|
1614
1614
|
label: s,
|
|
1615
1615
|
errorMessage: c,
|
|
1616
|
-
warningMessage:
|
|
1617
|
-
helperMessage:
|
|
1616
|
+
warningMessage: U,
|
|
1617
|
+
helperMessage: W,
|
|
1618
1618
|
showPlaceholderAndHideLabel: d,
|
|
1619
|
-
isRequired: p ||
|
|
1620
|
-
explanation:
|
|
1619
|
+
isRequired: p || O,
|
|
1620
|
+
explanation: O ? /* @__PURE__ */ (0, K.jsx)(A, {
|
|
1621
1621
|
id: "chooseCountry",
|
|
1622
1622
|
defaultMessage: "Choose a country before searching"
|
|
1623
1623
|
}) : m,
|
|
1624
1624
|
containerId: `${b}-id`,
|
|
1625
|
-
children:
|
|
1625
|
+
children: F && n.id ? /* @__PURE__ */ (0, K.jsx)(me, {
|
|
1626
1626
|
org: n,
|
|
1627
1627
|
onClear: () => {
|
|
1628
|
-
|
|
1628
|
+
H(void 0), M(!0);
|
|
1629
1629
|
},
|
|
1630
1630
|
clearSelectionLabel: y.formatMessage({
|
|
1631
1631
|
id: "clearSelection",
|
|
1632
1632
|
defaultMessage: "Clear selection"
|
|
1633
1633
|
}),
|
|
1634
|
-
labelId:
|
|
1635
|
-
}) : /* @__PURE__ */ (0,
|
|
1636
|
-
className: c ? "sid-text-input--error" :
|
|
1637
|
-
disabled:
|
|
1638
|
-
countryCode:
|
|
1634
|
+
labelId: ne(t)
|
|
1635
|
+
}) : /* @__PURE__ */ (0, K.jsx)(yr, {
|
|
1636
|
+
className: c ? "sid-text-input--error" : U ? "sid-text-input--warning" : "",
|
|
1637
|
+
disabled: O || _,
|
|
1638
|
+
countryCode: D,
|
|
1639
1639
|
minimumSearchValueLength: a().minimumOrganizationSearchLength,
|
|
1640
|
-
onChange:
|
|
1640
|
+
onChange: H,
|
|
1641
1641
|
placeholder: o,
|
|
1642
|
-
programId:
|
|
1642
|
+
programId: C,
|
|
1643
1643
|
value: n,
|
|
1644
1644
|
inputHtmlId: b,
|
|
1645
|
-
openOrgSearchEnabled:
|
|
1646
|
-
locale:
|
|
1647
|
-
orgSearchUrl: h || v(() =>
|
|
1645
|
+
openOrgSearchEnabled: w.openOrgSearchEnabled,
|
|
1646
|
+
locale: k,
|
|
1647
|
+
orgSearchUrl: h || v(() => w.config.orgSearchUrl),
|
|
1648
1648
|
urlAddSchoolForm: g,
|
|
1649
1649
|
isRequired: p,
|
|
1650
1650
|
isErrored: !!c,
|
|
1651
1651
|
ariaDescribedBy: (() => {
|
|
1652
|
-
if (c) return
|
|
1653
|
-
if (
|
|
1652
|
+
if (c) return x;
|
|
1653
|
+
if (U) return S;
|
|
1654
1654
|
})(),
|
|
1655
|
-
autoFocus:
|
|
1656
|
-
onBlur:
|
|
1655
|
+
autoFocus: j,
|
|
1656
|
+
onBlur: V
|
|
1657
1657
|
})
|
|
1658
1658
|
})
|
|
1659
1659
|
});
|