@anoki/fse-ui 1.0.658 → 1.0.660
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/dist/components/navigations/Footer/Footer.css +1 -1
- package/dist/components/navigations/HeaderDesktop/HeaderDesktop.css +1 -1
- package/dist/components/navigations/HeaderMobile/HeaderMobile.css +1 -1
- package/dist/components/navigations/HeaderPostLogin/HeaderPostLogin.css +1 -1
- package/dist/components/navigations/TabBar/TabBar.css +1 -1
- package/dist/components/ui/Accordion/AccordionStepper/AccordionStepper.css +1 -1
- package/dist/components/ui/ActionBanner/ActionBanner.css +1 -1
- package/dist/components/ui/AuthorBlock/AuthorBlock.css +1 -1
- package/dist/components/ui/BaseModal/BaseModalBackHeader/BaseModalBackHeader.css +1 -1
- package/dist/components/ui/BaseModal/BaseModalContent/BaseModalContent.css +1 -1
- package/dist/components/ui/BaseModal/BaseModalHeader/BaseModalHeader.css +1 -1
- package/dist/components/ui/Button/Button.css +1 -1
- package/dist/components/ui/CardCategory/CardCategory.css +1 -1
- package/dist/components/ui/CardDoctor/CardDoctor.css +1 -1
- package/dist/components/ui/CardDoctorInfo/CardDoctorInfo.css +1 -1
- package/dist/components/ui/CardDocument/CardDocument.css +1 -1
- package/dist/components/ui/CardEventSlim/CardEvent.css +1 -1
- package/dist/components/ui/CardExemption/CardExemption.css +1 -1
- package/dist/components/ui/CardFile/CardFile.css +1 -1
- package/dist/components/ui/CardMapDoctor/CardMapDoctor.css +1 -1
- package/dist/components/ui/CardMapStructure/CardMap.css +1 -1
- package/dist/components/ui/CardNotification/CardNotification.css +1 -1
- package/dist/components/ui/CardOpeningHours/CardOpeningHours.css +1 -1
- package/dist/components/ui/CardPreview/CardPreview.css +1 -1
- package/dist/components/ui/CardReminder/CardReminder.css +1 -1
- package/dist/components/ui/CardSelectDoctor/CardSelectDoctor.css +1 -1
- package/dist/components/ui/CardService/CardService.css +1 -1
- package/dist/components/ui/CardUser/CardUser.css +1 -1
- package/dist/components/ui/Carousel/Carousel.css +1 -1
- package/dist/components/ui/ChangeRelatedCard/ChangeRelatedCard.css +1 -1
- package/dist/components/ui/Checkbox/Checkbox.css +1 -1
- package/dist/components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css +1 -0
- package/dist/components/ui/ConsentModal/ConsentModalHeader/ConsentModalHeader.css +1 -1
- package/dist/components/ui/Container/Container.css +1 -1
- package/dist/components/ui/DatePicker/DatePicker.css +1 -1
- package/dist/components/ui/DelegateCard/DelegateCard.css +1 -1
- package/dist/components/ui/DelegateFilterDropDown/DelegateFilterDropDown.css +1 -1
- package/dist/components/ui/DoctorConfirmModal/DoctorConfirmModalHeader/DoctorConfirmModalHeader.css +1 -1
- package/dist/components/ui/DoctorModal/DoctorModal.css +1 -1
- package/dist/components/ui/DoctorModal/DoctorModalContent/DoctorModalContent.css +1 -1
- package/dist/components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css +1 -0
- package/dist/components/ui/DoctorSkeleton/DoctorSkeleton.css +1 -1
- package/dist/components/ui/DocumentUploadComponent/DocumentUploadComponent.css +1 -1
- package/dist/components/ui/DocumentUploadModal/DocumentUploadModalContent/DocumentUploadModalContent.css +1 -1
- package/dist/components/ui/DocumentUploadModal/DocumentUploadModalFooter/DocumentUploadModalFooter.css +1 -1
- package/dist/components/ui/DocumentUploadModal/DocumentUploadModalHeader/DocumentUploadModalHeader.css +1 -1
- package/dist/components/ui/Dropdown/Dropdown.css +1 -1
- package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
- package/dist/components/ui/EntryButton/EntryButton.css +1 -1
- package/dist/components/ui/GroupCodeExemptionFilterDropDown/GroupCodeExemptionFilterDropDown.css +1 -1
- package/dist/components/ui/HomeHeaderSkeleton/HomeHeaderSkeleton.css +1 -1
- package/dist/components/ui/InfoModal/InfoModal.css +1 -1
- package/dist/components/ui/ModalsHeader/ModalsHeader.css +1 -1
- package/dist/components/ui/NotificationsSettingsHeader/NotificationsSettingsHeader.css +1 -1
- package/dist/components/ui/ProgressBar/ProgressBar.css +1 -1
- package/dist/components/ui/RadioCard/RadioCard.css +1 -1
- package/dist/components/ui/Search/Search.css +1 -1
- package/dist/components/ui/SearchDocument/SearchDocument.css +1 -1
- package/dist/components/ui/SearchGeneric/SearchGeneric.css +1 -1
- package/dist/components/ui/SearchService/SearchService.css +1 -1
- package/dist/components/ui/SearchStructure/SearchStructure.css +1 -1
- package/dist/components/ui/ShareButton/ShareButton.css +1 -1
- package/dist/components/ui/SupportBanner/SupportBanner.css +1 -1
- package/dist/components/ui/Switch/Switch.css +1 -1
- package/dist/components/ui/Table/Table.css +1 -1
- package/dist/components/ui/TabsGlossary/TabsGlossary.css +1 -1
- package/dist/components/ui/Tags/Tags.css +1 -1
- package/dist/components/ui/TitleSection/TitleSection.css +1 -1
- package/dist/components/ui/filters/BottomNavigation/BottomNavigation.css +1 -1
- package/dist/components/ui/filters/CheckboxFilter/CheckboxFilter.css +1 -1
- package/dist/components/ui/filters/FiltersChips/FiltersChips.css +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs123.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs371.js +2 -0
- package/dist/index.cjs371.js.map +1 -0
- package/dist/index.cjs372.js +2 -0
- package/dist/index.cjs372.js.map +1 -0
- package/dist/index.cjs373.js +2 -0
- package/dist/index.cjs373.js.map +1 -0
- package/dist/index.cjs374.js +1 -1
- package/dist/index.cjs374.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +2 -0
- package/dist/index.cjs382.js.map +1 -0
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/{index.cjs395.js → index.cjs386.js} +1 -1
- package/dist/{index.cjs395.js.map → index.cjs386.js.map} +1 -1
- package/dist/index.cjs387.js +2 -0
- package/dist/index.cjs387.js.map +1 -0
- package/dist/index.cjs388.js +2 -0
- package/dist/index.cjs388.js.map +1 -0
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/{index.cjs380.js → index.cjs390.js} +2 -2
- package/dist/{index.cjs380.js.map → index.cjs390.js.map} +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +2 -0
- package/dist/index.cjs398.js.map +1 -0
- package/dist/index.cjs399.js +2 -0
- package/dist/index.cjs399.js.map +1 -0
- package/dist/index.cjs400.js +2 -0
- package/dist/index.cjs400.js.map +1 -0
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +1 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs406.js +2 -0
- package/dist/index.cjs406.js.map +1 -0
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +4 -1
- package/dist/index.cjs408.js.map +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs409.js.map +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs416.js +1 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +38 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -38
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +2 -0
- package/dist/index.cjs437.js.map +1 -0
- package/dist/index.cjs438.js +2 -0
- package/dist/index.cjs438.js.map +1 -0
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.es123.js +4 -6
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es232.js +7 -7
- package/dist/index.es236.js +1 -1
- package/dist/index.es243.js +8 -8
- package/dist/index.es253.js +1 -1
- package/dist/index.es259.js +14 -14
- package/dist/index.es266.js +1 -1
- package/dist/index.es267.js +1 -1
- package/dist/index.es271.js +1 -1
- package/dist/index.es276.js +1 -1
- package/dist/index.es278.js +1 -1
- package/dist/index.es286.js +7 -7
- package/dist/index.es30.js +5 -6
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es324.js +4 -4
- package/dist/index.es371.js +10 -0
- package/dist/index.es371.js.map +1 -0
- package/dist/index.es372.js +30 -0
- package/dist/index.es372.js.map +1 -0
- package/dist/index.es373.js +71 -0
- package/dist/index.es373.js.map +1 -0
- package/dist/index.es374.js +28 -25
- package/dist/index.es374.js.map +1 -1
- package/dist/index.es375.js +32 -67
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +621 -6
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +10 -29
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +15 -6
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es381.js +10 -32
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +56 -0
- package/dist/index.es382.js.map +1 -0
- package/dist/index.es383.js +45 -10
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +7 -3
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +120 -48
- package/dist/index.es385.js.map +1 -1
- package/dist/{index.es395.js → index.es386.js} +1 -1
- package/dist/{index.es395.js.map → index.es386.js.map} +1 -1
- package/dist/index.es387.js +138 -0
- package/dist/index.es387.js.map +1 -0
- package/dist/index.es388.js +221 -0
- package/dist/index.es388.js.map +1 -0
- package/dist/index.es389.js +17 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/{index.es380.js → index.es390.js} +3 -3
- package/dist/{index.es380.js.map → index.es390.js.map} +1 -1
- package/dist/index.es391.js +177 -10
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +47 -122
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +8 -134
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +4 -14
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es396.js +6 -9
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +25 -50
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +15 -0
- package/dist/index.es398.js.map +1 -0
- package/dist/index.es399.js +208 -0
- package/dist/index.es399.js.map +1 -0
- package/dist/index.es400.js +25 -0
- package/dist/index.es400.js.map +1 -0
- package/dist/index.es401.js +391 -10
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +22 -619
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +28 -24
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +5 -29
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +5 -5
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +6 -0
- package/dist/index.es406.js.map +1 -0
- package/dist/index.es407.js +22 -44
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +109 -7
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +14 -216
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es410.js +514 -169
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +127 -5
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +129 -3
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es413.js +13 -22
- package/dist/index.es413.js.map +1 -1
- package/dist/index.es416.js +60 -200
- package/dist/index.es416.js.map +1 -1
- package/dist/index.es417.js +69 -22
- package/dist/index.es417.js.map +1 -1
- package/dist/index.es418.js +7 -391
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +13 -64
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +61 -68
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es434.js +3 -27
- package/dist/index.es434.js.map +1 -1
- package/dist/index.es435.js +23 -5
- package/dist/index.es435.js.map +1 -1
- package/dist/index.es436.js +12 -14
- package/dist/index.es436.js.map +1 -1
- package/dist/index.es437.js +31 -0
- package/dist/index.es437.js.map +1 -0
- package/dist/index.es438.js +8 -0
- package/dist/index.es438.js.map +1 -0
- package/dist/index.es439.js +23 -15
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es452.js +8 -8
- package/dist/sections/Documents/Documents.css +1 -1
- package/dist/sections/HomeServices/HomeServices.css +1 -1
- package/dist/sections/Insights/Insights.css +1 -1
- package/dist/sections/Login/Login.css +1 -1
- package/dist/sections/RichText/RichText.css +1 -1
- package/dist/sections/Services/Services.css +1 -1
- package/dist/sections/SuggestedServices/SuggestedServices.css +1 -1
- package/dist/sections/Tags/Tags.css +1 -1
- package/dist/sections/WhatDoYouNeed/WhatDoYouNeed.css +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css +0 -1
- package/dist/components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css +0 -1
- package/dist/index.cjs379.js +0 -2
- package/dist/index.cjs379.js.map +0 -1
- package/dist/index.cjs414.js +0 -5
- package/dist/index.cjs414.js.map +0 -1
- package/dist/index.cjs415.js +0 -2
- package/dist/index.cjs415.js.map +0 -1
- package/dist/index.cjs421.js +0 -2
- package/dist/index.cjs421.js.map +0 -1
- package/dist/index.cjs422.js +0 -2
- package/dist/index.cjs422.js.map +0 -1
- package/dist/index.cjs423.js +0 -2
- package/dist/index.cjs423.js.map +0 -1
- package/dist/index.cjs427.js +0 -2
- package/dist/index.cjs427.js.map +0 -1
- package/dist/index.cjs428.js +0 -2
- package/dist/index.cjs428.js.map +0 -1
- package/dist/index.cjs429.js +0 -2
- package/dist/index.cjs429.js.map +0 -1
- package/dist/index.cjs430.js +0 -2
- package/dist/index.cjs430.js.map +0 -1
- package/dist/index.cjs431.js +0 -2
- package/dist/index.cjs431.js.map +0 -1
- package/dist/index.cjs432.js +0 -2
- package/dist/index.cjs432.js.map +0 -1
- package/dist/index.cjs433.js +0 -2
- package/dist/index.cjs433.js.map +0 -1
- package/dist/index.es379.js +0 -28
- package/dist/index.es379.js.map +0 -1
- package/dist/index.es414.js +0 -113
- package/dist/index.es414.js.map +0 -1
- package/dist/index.es415.js +0 -19
- package/dist/index.es415.js.map +0 -1
- package/dist/index.es421.js +0 -12
- package/dist/index.es421.js.map +0 -1
- package/dist/index.es422.js +0 -17
- package/dist/index.es422.js.map +0 -1
- package/dist/index.es423.js +0 -65
- package/dist/index.es423.js.map +0 -1
- package/dist/index.es427.js +0 -7
- package/dist/index.es427.js.map +0 -1
- package/dist/index.es428.js +0 -26
- package/dist/index.es428.js.map +0 -1
- package/dist/index.es429.js +0 -526
- package/dist/index.es429.js.map +0 -1
- package/dist/index.es430.js +0 -130
- package/dist/index.es430.js.map +0 -1
- package/dist/index.es431.js +0 -132
- package/dist/index.es431.js.map +0 -1
- package/dist/index.es432.js +0 -26
- package/dist/index.es432.js.map +0 -1
- package/dist/index.es433.js +0 -16
- package/dist/index.es433.js.map +0 -1
package/dist/index.es393.js
CHANGED
@@ -1,138 +1,12 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
const {
|
8
|
-
loop: t = !1,
|
9
|
-
trapped: u = !1,
|
10
|
-
onMountAutoFocus: p,
|
11
|
-
onUnmountAutoFocus: L,
|
12
|
-
...g
|
13
|
-
} = e, [o, R] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), U = P(n, (s) => R(s)), a = d.useRef({
|
14
|
-
paused: !1,
|
15
|
-
pause() {
|
16
|
-
this.paused = !0;
|
17
|
-
},
|
18
|
-
resume() {
|
19
|
-
this.paused = !1;
|
20
|
-
}
|
21
|
-
}).current;
|
22
|
-
d.useEffect(() => {
|
23
|
-
if (u) {
|
24
|
-
let s = function(i) {
|
25
|
-
if (a.paused || !o) return;
|
26
|
-
const c = i.target;
|
27
|
-
o.contains(c) ? b.current = c : f(b.current, { select: !0 });
|
28
|
-
}, l = function(i) {
|
29
|
-
if (a.paused || !o) return;
|
30
|
-
const c = i.relatedTarget;
|
31
|
-
c !== null && (o.contains(c) || f(b.current, { select: !0 }));
|
32
|
-
}, r = function(i) {
|
33
|
-
if (document.activeElement === document.body)
|
34
|
-
for (const h of i)
|
35
|
-
h.removedNodes.length > 0 && f(o);
|
36
|
-
};
|
37
|
-
document.addEventListener("focusin", s), document.addEventListener("focusout", l);
|
38
|
-
const m = new MutationObserver(r);
|
39
|
-
return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
|
40
|
-
document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
|
41
|
-
};
|
42
|
-
}
|
43
|
-
}, [u, o, a.paused]), d.useEffect(() => {
|
44
|
-
if (o) {
|
45
|
-
S.add(a);
|
46
|
-
const s = document.activeElement;
|
47
|
-
if (!o.contains(s)) {
|
48
|
-
const r = new CustomEvent(F, N);
|
49
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(V(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
50
|
-
}
|
51
|
-
return () => {
|
52
|
-
o.removeEventListener(F, E), setTimeout(() => {
|
53
|
-
const r = new CustomEvent(T, N);
|
54
|
-
o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), S.remove(a);
|
55
|
-
}, 0);
|
56
|
-
};
|
57
|
-
}
|
58
|
-
}, [o, E, v, a]);
|
59
|
-
const A = d.useCallback(
|
60
|
-
(s) => {
|
61
|
-
if (!t && !u || a.paused) return;
|
62
|
-
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
63
|
-
if (l && r) {
|
64
|
-
const m = s.currentTarget, [i, c] = x(m);
|
65
|
-
i && c ? !s.shiftKey && r === c ? (s.preventDefault(), t && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), t && f(c, { select: !0 })) : r === m && s.preventDefault();
|
66
|
-
}
|
67
|
-
},
|
68
|
-
[t, u, a.paused]
|
69
|
-
);
|
70
|
-
return /* @__PURE__ */ _.jsx(M.div, { tabIndex: -1, ...g, ref: U, onKeyDown: A });
|
1
|
+
import { __assign as m } from "./index.es402.js";
|
2
|
+
import * as r from "react";
|
3
|
+
import { RemoveScroll as e } from "./index.es403.js";
|
4
|
+
import t from "./index.es404.js";
|
5
|
+
var s = r.forwardRef(function(a, o) {
|
6
|
+
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
71
7
|
});
|
72
|
-
|
73
|
-
function w(e, { select: n = !1 } = {}) {
|
74
|
-
const t = document.activeElement;
|
75
|
-
for (const u of e)
|
76
|
-
if (f(u, { select: n }), document.activeElement !== t) return;
|
77
|
-
}
|
78
|
-
function x(e) {
|
79
|
-
const n = I(e), t = O(n, e), u = O(n.reverse(), e);
|
80
|
-
return [t, u];
|
81
|
-
}
|
82
|
-
function I(e) {
|
83
|
-
const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
84
|
-
acceptNode: (u) => {
|
85
|
-
const p = u.tagName === "INPUT" && u.type === "hidden";
|
86
|
-
return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
87
|
-
}
|
88
|
-
});
|
89
|
-
for (; t.nextNode(); ) n.push(t.currentNode);
|
90
|
-
return n;
|
91
|
-
}
|
92
|
-
function O(e, n) {
|
93
|
-
for (const t of e)
|
94
|
-
if (!D(t, { upTo: n })) return t;
|
95
|
-
}
|
96
|
-
function D(e, { upTo: n }) {
|
97
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
98
|
-
for (; e; ) {
|
99
|
-
if (n !== void 0 && e === n) return !1;
|
100
|
-
if (getComputedStyle(e).display === "none") return !0;
|
101
|
-
e = e.parentElement;
|
102
|
-
}
|
103
|
-
return !1;
|
104
|
-
}
|
105
|
-
function H(e) {
|
106
|
-
return e instanceof HTMLInputElement && "select" in e;
|
107
|
-
}
|
108
|
-
function f(e, { select: n = !1 } = {}) {
|
109
|
-
if (e && e.focus) {
|
110
|
-
const t = document.activeElement;
|
111
|
-
e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
|
112
|
-
}
|
113
|
-
}
|
114
|
-
var S = j();
|
115
|
-
function j() {
|
116
|
-
let e = [];
|
117
|
-
return {
|
118
|
-
add(n) {
|
119
|
-
const t = e[0];
|
120
|
-
n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
|
121
|
-
},
|
122
|
-
remove(n) {
|
123
|
-
var t;
|
124
|
-
e = C(e, n), (t = e[0]) == null || t.resume();
|
125
|
-
}
|
126
|
-
};
|
127
|
-
}
|
128
|
-
function C(e, n) {
|
129
|
-
const t = [...e], u = t.indexOf(n);
|
130
|
-
return u !== -1 && t.splice(u, 1), t;
|
131
|
-
}
|
132
|
-
function V(e) {
|
133
|
-
return e.filter((n) => n.tagName !== "A");
|
134
|
-
}
|
8
|
+
s.classNames = e.classNames;
|
135
9
|
export {
|
136
|
-
|
10
|
+
s as default
|
137
11
|
};
|
138
12
|
//# sourceMappingURL=index.es393.js.map
|
package/dist/index.es393.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es393.js","sources":["../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-scope/src/focus-scope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","FOCUS_SCOPE_NAME","FocusScope","React","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container","setContainer","onMountAutoFocus","useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","composedRefs","useComposedRefs","node","focusScope","handleFocusIn2","event","target","focus","handleFocusOut2","relatedTarget","handleMutations2","mutations","mutation","mutationObserver","focusScopesStack","previouslyFocusedElement","mountEvent","focusFirst","removeLinks","getTabbableCandidates","unmountEvent","handleKeyDown","isTabKey","focusedElement","container2","first","last","getTabbableEdges","jsx","Primitive","candidates","select","candidate","findVisible","nodes","walker","isHiddenInput","elements","element","isHidden","upTo","isSelectableInput","createFocusScopesStack","stack","activeFocusScope","arrayRemove","_a","array","item","updatedArray","index","items"],"mappings":";;;;;AAQA,IAAIA,IAAqB,+BACrBC,IAAuB,iCACvBC,IAAgB,EAAE,SAAS,IAAO,YAAY,GAAM,GACpDC,IAAmB,cACnBC,IAAaC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACzD,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,kBAAkBC;AAAA,IAClB,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EACP,IAAMN,GACE,CAACO,GAAWC,CAAY,IAAIT,EAAM,SAAS,IAAI,GAC/CU,IAAmBC,EAAeN,CAAoB,GACtDO,IAAqBD,EAAeL,CAAsB,GAC1DO,IAAwB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Ae,CAAC,GAAGF,CAAK,GACxBG,IAAQD,EAAa,QAAQD,CAAI;AACvC,SAAIE,MAAU,MACZD,EAAa,OAAOC,GAAO,CAAC,GAEvBD;AACT;AACA,SAAS/B,EAAYiC,GAAO;AAC1B,SAAOA,EAAM,OAAO,CAACH,MAASA,EAAK,YAAY,GAAG;AACpD;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.es393.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,CAAE,GAAEH,GAAO,EAAE,KAAKC,GAAK,SAASG,GAAS,CAAC;AAAK,CAAA;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
|
package/dist/index.es394.js
CHANGED
@@ -1,17 +1,7 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
|
4
|
-
import { useLayoutEffect as c } from "./index.es384.js";
|
5
|
-
import { j as l } from "./index.es202.js";
|
6
|
-
var p = "Portal", d = r.forwardRef((e, a) => {
|
7
|
-
var o;
|
8
|
-
const { container: s, ...i } = e, [m, n] = r.useState(!1);
|
9
|
-
c(() => n(!0), []);
|
10
|
-
const t = s || m && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
|
11
|
-
return t ? f.createPortal(/* @__PURE__ */ l.jsx(u.div, { ...i, ref: a }), t) : null;
|
12
|
-
});
|
13
|
-
d.displayName = p;
|
1
|
+
import * as t from "react";
|
2
|
+
var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
|
3
|
+
};
|
14
4
|
export {
|
15
|
-
|
5
|
+
e as useLayoutEffect
|
16
6
|
};
|
17
7
|
//# sourceMappingURL=index.es394.js.map
|
package/dist/index.es394.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es394.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es394.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":";AAEG,IAACA,IAAmB,iCAAY,WAAWC,EAAM,kBAAkB,MAAM;AAC5E;","x_google_ignoreList":[0]}
|
package/dist/index.es396.js
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
7
|
-
});
|
8
|
-
s.classNames = e.classNames;
|
1
|
+
import * as u from "react";
|
2
|
+
function t(r) {
|
3
|
+
const e = u.useRef({ value: r, previous: r });
|
4
|
+
return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|
5
|
+
}
|
9
6
|
export {
|
10
|
-
|
7
|
+
t as usePrevious
|
11
8
|
};
|
12
9
|
//# sourceMappingURL=index.es396.js.map
|
package/dist/index.es396.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es396.js","sources":["../node_modules/react-
|
1
|
+
{"version":3,"file":"index.es396.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":";AAEA,SAASA,EAAYC,GAAO;AAC1B,QAAMC,IAAMC,EAAM,OAAO,EAAE,OAAAF,GAAO,UAAUA,GAAO;AACnD,SAAOE,EAAM,QAAQ,OACfD,EAAI,QAAQ,UAAUD,MACxBC,EAAI,QAAQ,WAAWA,EAAI,QAAQ,OACnCA,EAAI,QAAQ,QAAQD,IAEfC,EAAI,QAAQ,WAClB,CAACD,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
|
package/dist/index.es397.js
CHANGED
@@ -1,53 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
26
|
-
if (s.has(a))
|
27
|
-
A(a);
|
28
|
-
else
|
29
|
-
try {
|
30
|
-
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
|
31
|
-
f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
32
|
-
} catch (k) {
|
33
|
-
console.error("aria-hidden: cannot operate on ", a, k);
|
34
|
-
}
|
35
|
-
});
|
36
|
-
};
|
37
|
-
return A(u), s.clear(), h++, function() {
|
38
|
-
l.forEach(function(t) {
|
39
|
-
var a = f.get(t) - 1, c = o.get(t) - 1;
|
40
|
-
f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
41
|
-
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
42
|
-
};
|
43
|
-
}, C = function(r, u, e) {
|
44
|
-
e === void 0 && (e = "data-aria-hidden");
|
45
|
-
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
46
|
-
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
|
47
|
-
return null;
|
48
|
-
};
|
49
|
-
};
|
1
|
+
import * as h from "react";
|
2
|
+
import { useLayoutEffect as z } from "./index.es394.js";
|
3
|
+
function c(r) {
|
4
|
+
const [d, e] = h.useState(void 0);
|
5
|
+
return z(() => {
|
6
|
+
if (r) {
|
7
|
+
e({ width: r.offsetWidth, height: r.offsetHeight });
|
8
|
+
const f = new ResizeObserver((i) => {
|
9
|
+
if (!Array.isArray(i) || !i.length)
|
10
|
+
return;
|
11
|
+
const b = i[0];
|
12
|
+
let o, t;
|
13
|
+
if ("borderBoxSize" in b) {
|
14
|
+
const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
15
|
+
o = u.inlineSize, t = u.blockSize;
|
16
|
+
} else
|
17
|
+
o = r.offsetWidth, t = r.offsetHeight;
|
18
|
+
e({ width: o, height: t });
|
19
|
+
});
|
20
|
+
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
21
|
+
} else
|
22
|
+
e(void 0);
|
23
|
+
}, [r]), d;
|
24
|
+
}
|
50
25
|
export {
|
51
|
-
|
26
|
+
c as useSize
|
52
27
|
};
|
53
28
|
//# sourceMappingURL=index.es397.js.map
|
package/dist/index.es397.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es397.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EAC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AO;AAK3C;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.es397.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QAC9B;AACU,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MACjC,CAAO;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IACnD;AACM,MAAAE,EAAQ,MAAM;AAAA,EAEpB,GAAK,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as r from "react";
|
2
|
+
import { useCallbackRef as s } from "./index.es381.js";
|
3
|
+
function p(n, e = globalThis == null ? void 0 : globalThis.document) {
|
4
|
+
const t = s(n);
|
5
|
+
r.useEffect(() => {
|
6
|
+
const o = (a) => {
|
7
|
+
a.key === "Escape" && t(a);
|
8
|
+
};
|
9
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
10
|
+
}, [t, e]);
|
11
|
+
}
|
12
|
+
export {
|
13
|
+
p as useEscapeKeydown
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=index.es398.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es398.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,yCAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAExB;AACD,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC9F,GAAK,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,208 @@
|
|
1
|
+
import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as L } from "./index.es401.js";
|
2
|
+
import { autoUpdate as me, platform as pe } from "./index.es401.js";
|
3
|
+
import * as f from "react";
|
4
|
+
import { useLayoutEffect as Y, useEffect as Z } from "react";
|
5
|
+
import * as b from "react-dom";
|
6
|
+
var w = typeof document < "u" ? Y : Z;
|
7
|
+
function R(e, t) {
|
8
|
+
if (e === t)
|
9
|
+
return !0;
|
10
|
+
if (typeof e != typeof t)
|
11
|
+
return !1;
|
12
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
13
|
+
return !0;
|
14
|
+
let n, r, s;
|
15
|
+
if (e && t && typeof e == "object") {
|
16
|
+
if (Array.isArray(e)) {
|
17
|
+
if (n = e.length, n !== t.length) return !1;
|
18
|
+
for (r = n; r-- !== 0; )
|
19
|
+
if (!R(e[r], t[r]))
|
20
|
+
return !1;
|
21
|
+
return !0;
|
22
|
+
}
|
23
|
+
if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
|
24
|
+
return !1;
|
25
|
+
for (r = n; r-- !== 0; )
|
26
|
+
if (!{}.hasOwnProperty.call(t, s[r]))
|
27
|
+
return !1;
|
28
|
+
for (r = n; r-- !== 0; ) {
|
29
|
+
const p = s[r];
|
30
|
+
if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
|
31
|
+
return !1;
|
32
|
+
}
|
33
|
+
return !0;
|
34
|
+
}
|
35
|
+
return e !== e && t !== t;
|
36
|
+
}
|
37
|
+
function A(e) {
|
38
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
39
|
+
}
|
40
|
+
function v(e, t) {
|
41
|
+
const n = A(e);
|
42
|
+
return Math.round(t * n) / n;
|
43
|
+
}
|
44
|
+
function E(e) {
|
45
|
+
const t = f.useRef(e);
|
46
|
+
return w(() => {
|
47
|
+
t.current = e;
|
48
|
+
}), t;
|
49
|
+
}
|
50
|
+
function re(e) {
|
51
|
+
e === void 0 && (e = {});
|
52
|
+
const {
|
53
|
+
placement: t = "bottom",
|
54
|
+
strategy: n = "absolute",
|
55
|
+
middleware: r = [],
|
56
|
+
platform: s,
|
57
|
+
elements: {
|
58
|
+
reference: p,
|
59
|
+
floating: q
|
60
|
+
} = {},
|
61
|
+
transform: k = !0,
|
62
|
+
whileElementsMounted: D,
|
63
|
+
open: x
|
64
|
+
} = e, [i, O] = f.useState({
|
65
|
+
x: 0,
|
66
|
+
y: 0,
|
67
|
+
strategy: n,
|
68
|
+
placement: t,
|
69
|
+
middlewareData: {},
|
70
|
+
isPositioned: !1
|
71
|
+
}), [M, B] = f.useState(r);
|
72
|
+
R(M, r) || B(r);
|
73
|
+
const [U, V] = f.useState(null), [W, G] = f.useState(null), _ = f.useCallback((o) => {
|
74
|
+
o !== a.current && (a.current = o, V(o));
|
75
|
+
}, []), C = f.useCallback((o) => {
|
76
|
+
o !== d.current && (d.current = o, G(o));
|
77
|
+
}, []), u = p || U, l = q || W, a = f.useRef(null), d = f.useRef(null), y = f.useRef(i), H = D != null, S = E(D), P = E(s), F = E(x), g = f.useCallback(() => {
|
78
|
+
if (!a.current || !d.current)
|
79
|
+
return;
|
80
|
+
const o = {
|
81
|
+
placement: t,
|
82
|
+
strategy: n,
|
83
|
+
middleware: M
|
84
|
+
};
|
85
|
+
P.current && (o.platform = P.current), I(a.current, d.current, o).then((h) => {
|
86
|
+
const m = {
|
87
|
+
...h,
|
88
|
+
// The floating element's position may be recomputed while it's closed
|
89
|
+
// but still mounted (such as when transitioning out). To ensure
|
90
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
91
|
+
// setting it to `true` when `open === false` (must be specified).
|
92
|
+
isPositioned: F.current !== !1
|
93
|
+
};
|
94
|
+
$.current && !R(y.current, m) && (y.current = m, b.flushSync(() => {
|
95
|
+
O(m);
|
96
|
+
}));
|
97
|
+
});
|
98
|
+
}, [M, t, n, P, F]);
|
99
|
+
w(() => {
|
100
|
+
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
|
101
|
+
...o,
|
102
|
+
isPositioned: !1
|
103
|
+
})));
|
104
|
+
}, [x]);
|
105
|
+
const $ = f.useRef(!1);
|
106
|
+
w(() => ($.current = !0, () => {
|
107
|
+
$.current = !1;
|
108
|
+
}), []), w(() => {
|
109
|
+
if (u && (a.current = u), l && (d.current = l), u && l) {
|
110
|
+
if (S.current)
|
111
|
+
return S.current(u, l, g);
|
112
|
+
g();
|
113
|
+
}
|
114
|
+
}, [u, l, g, S, H]);
|
115
|
+
const j = f.useMemo(() => ({
|
116
|
+
reference: a,
|
117
|
+
floating: d,
|
118
|
+
setReference: _,
|
119
|
+
setFloating: C
|
120
|
+
}), [_, C]), c = f.useMemo(() => ({
|
121
|
+
reference: u,
|
122
|
+
floating: l
|
123
|
+
}), [u, l]), z = f.useMemo(() => {
|
124
|
+
const o = {
|
125
|
+
position: n,
|
126
|
+
left: 0,
|
127
|
+
top: 0
|
128
|
+
};
|
129
|
+
if (!c.floating)
|
130
|
+
return o;
|
131
|
+
const h = v(c.floating, i.x), m = v(c.floating, i.y);
|
132
|
+
return k ? {
|
133
|
+
...o,
|
134
|
+
transform: "translate(" + h + "px, " + m + "px)",
|
135
|
+
...A(c.floating) >= 1.5 && {
|
136
|
+
willChange: "transform"
|
137
|
+
}
|
138
|
+
} : {
|
139
|
+
position: n,
|
140
|
+
left: h,
|
141
|
+
top: m
|
142
|
+
};
|
143
|
+
}, [n, k, c.floating, i.x, i.y]);
|
144
|
+
return f.useMemo(() => ({
|
145
|
+
...i,
|
146
|
+
update: g,
|
147
|
+
refs: j,
|
148
|
+
elements: c,
|
149
|
+
floatingStyles: z
|
150
|
+
}), [i, g, j, c, z]);
|
151
|
+
}
|
152
|
+
const ee = (e) => {
|
153
|
+
function t(n) {
|
154
|
+
return {}.hasOwnProperty.call(n, "current");
|
155
|
+
}
|
156
|
+
return {
|
157
|
+
name: "arrow",
|
158
|
+
options: e,
|
159
|
+
fn(n) {
|
160
|
+
const {
|
161
|
+
element: r,
|
162
|
+
padding: s
|
163
|
+
} = typeof e == "function" ? e(n) : e;
|
164
|
+
return r && t(r) ? r.current != null ? L({
|
165
|
+
element: r.current,
|
166
|
+
padding: s
|
167
|
+
}).fn(n) : {} : r ? L({
|
168
|
+
element: r,
|
169
|
+
padding: s
|
170
|
+
}).fn(n) : {};
|
171
|
+
}
|
172
|
+
};
|
173
|
+
}, fe = (e, t) => ({
|
174
|
+
...J(e),
|
175
|
+
options: [e, t]
|
176
|
+
}), oe = (e, t) => ({
|
177
|
+
...K(e),
|
178
|
+
options: [e, t]
|
179
|
+
}), se = (e, t) => ({
|
180
|
+
...X(e),
|
181
|
+
options: [e, t]
|
182
|
+
}), ie = (e, t) => ({
|
183
|
+
...N(e),
|
184
|
+
options: [e, t]
|
185
|
+
}), ue = (e, t) => ({
|
186
|
+
...Q(e),
|
187
|
+
options: [e, t]
|
188
|
+
}), le = (e, t) => ({
|
189
|
+
...T(e),
|
190
|
+
options: [e, t]
|
191
|
+
}), ce = (e, t) => ({
|
192
|
+
...ee(e),
|
193
|
+
options: [e, t]
|
194
|
+
});
|
195
|
+
export {
|
196
|
+
ce as arrow,
|
197
|
+
me as autoUpdate,
|
198
|
+
I as computePosition,
|
199
|
+
ie as flip,
|
200
|
+
le as hide,
|
201
|
+
se as limitShift,
|
202
|
+
fe as offset,
|
203
|
+
pe as platform,
|
204
|
+
oe as shift,
|
205
|
+
ue as size,
|
206
|
+
re as useFloating
|
207
|
+
};
|
208
|
+
//# sourceMappingURL=index.es399.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es399.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["index","useLayoutEffect","useEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":";;;;;AAMA,IAAIA,IAAQ,OAAO,WAAa,MAAcC,IAAkBC;AAIhE,SAASC,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI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