@servicetitan/anvil2 1.2.1 → 1.2.3
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/Alert-6336e146.cjs +2 -0
- package/Alert-6336e146.cjs.map +1 -0
- package/Alert-6faa0b05.js +88 -0
- package/Alert-6faa0b05.js.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.css +1 -1
- package/Alert.js +1 -1
- package/{Announcement-0ef0c8f7.js → Announcement-d04009ea.js} +26 -26
- package/Announcement-d04009ea.js.map +1 -0
- package/Announcement-fff87b68.cjs +2 -0
- package/Announcement-fff87b68.cjs.map +1 -0
- package/Announcement.cjs +1 -1
- package/Announcement.css +1 -1
- package/Announcement.js +1 -1
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.js +7 -7
- package/Badge-0073b5a1.cjs +2 -0
- package/{Badge-29ed0c9e.cjs.map → Badge-0073b5a1.cjs.map} +1 -1
- package/Badge-f761458c.js +35 -0
- package/Badge-f761458c.js.map +1 -0
- package/Badge.cjs +1 -1
- package/Badge.css +1 -1
- package/Badge.js +1 -1
- package/Button-268ba8a9.cjs +2 -0
- package/Button-268ba8a9.cjs.map +1 -0
- package/Button-d05507c5.js +289 -0
- package/Button-d05507c5.js.map +1 -0
- package/Button.cjs +1 -1
- package/Button.cjs.map +1 -1
- package/Button.css +1 -1
- package/Button.js +46 -14
- package/Button.js.map +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.cjs.map +1 -1
- package/ButtonCompound.js +45 -13
- package/ButtonCompound.js.map +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.cjs.map +1 -1
- package/ButtonLink.js +46 -14
- package/ButtonLink.js.map +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.cjs.map +1 -1
- package/ButtonToggle.js +46 -14
- package/ButtonToggle.js.map +1 -1
- package/{Calendar-fc2373b7.js → Calendar-073dc10d.js} +821 -821
- package/{Calendar-fc2373b7.js.map → Calendar-073dc10d.js.map} +1 -1
- package/{Calendar-e0743dcf.cjs → Calendar-706f41ff.cjs} +2 -2
- package/{Calendar-e0743dcf.cjs.map → Calendar-706f41ff.cjs.map} +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.css +1 -1
- package/Calendar.js +1 -1
- package/Card-33f3ad0a.js +51 -0
- package/Card-33f3ad0a.js.map +1 -0
- package/Card-92ebca1f.cjs +2 -0
- package/Card-92ebca1f.cjs.map +1 -0
- package/Card.cjs +1 -1
- package/Card.css +1 -1
- package/Card.js +1 -1
- package/{Checkbox-e2b0e7d0.js → Checkbox-d503c3b6.js} +41 -41
- package/Checkbox-d503c3b6.js.map +1 -0
- package/Checkbox-edf070c3.cjs +2 -0
- package/Checkbox-edf070c3.cjs.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.css +1 -1
- package/Checkbox.d.ts +25 -4
- package/Checkbox.js +4 -4
- package/{Chip-dbc470f4.js → Chip-a8eb2656.js} +31 -31
- package/Chip-a8eb2656.js.map +1 -0
- package/Chip-b52e1bd7.cjs +2 -0
- package/Chip-b52e1bd7.cjs.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.css +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.cjs.map +1 -1
- package/Combobox.js +65 -32
- package/Combobox.js.map +1 -1
- package/Details.cjs +1 -1
- package/Details.cjs.map +1 -1
- package/Details.js +54 -22
- package/Details.js.map +1 -1
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.js +70 -38
- package/Dialog.js.map +1 -1
- package/Divider-86c1f4ea.cjs +2 -0
- package/Divider-86c1f4ea.cjs.map +1 -0
- package/Divider-edca965e.js +74 -0
- package/Divider-edca965e.js.map +1 -0
- package/Divider.cjs +1 -1
- package/Divider.css +1 -1
- package/Divider.js +1 -1
- package/Drawer-6c2a6e0c.cjs +2 -0
- package/{Drawer-989d1d8a.cjs.map → Drawer-6c2a6e0c.cjs.map} +1 -1
- package/{Drawer-b81924d3.js → Drawer-f68286e8.js} +56 -56
- package/Drawer-f68286e8.js.map +1 -0
- package/Drawer.cjs +1 -1
- package/Drawer.css +1 -1
- package/Drawer.js +1 -1
- package/Flex-4b128a0e.cjs +2 -0
- package/{Flex-740ea6ba.cjs.map → Flex-4b128a0e.cjs.map} +1 -1
- package/{Flex-15fbb5a2.js → Flex-f6e67921.js} +2 -2
- package/{Flex-15fbb5a2.js.map → Flex-f6e67921.js.map} +1 -1
- package/Flex.cjs +1 -1
- package/Flex.css +1 -1
- package/Flex.js +1 -1
- package/{Grid-674805a9.cjs → Grid-8226f7a1.cjs} +2 -2
- package/{Grid-674805a9.cjs.map → Grid-8226f7a1.cjs.map} +1 -1
- package/{Grid-043bde66.js → Grid-992de375.js} +15 -15
- package/{Grid-043bde66.js.map → Grid-992de375.js.map} +1 -1
- package/Grid.cjs +1 -1
- package/Grid.css +1 -1
- package/Grid.js +1 -1
- package/{Helper-74a1f07f-18441e16.js → Helper-74a1f07f-067ae3f7.js} +2 -2
- package/{Helper-74a1f07f-18441e16.js.map → Helper-74a1f07f-067ae3f7.js.map} +1 -1
- package/{Helper-74a1f07f-2aeadeae.cjs → Helper-74a1f07f-6cf9865b.cjs} +2 -2
- package/{Helper-74a1f07f-2aeadeae.cjs.map → Helper-74a1f07f-6cf9865b.cjs.map} +1 -1
- package/Icon-ae9b951b.cjs +2 -0
- package/Icon-ae9b951b.cjs.map +1 -0
- package/Icon-fa8f3dc8.js +47 -0
- package/Icon-fa8f3dc8.js.map +1 -0
- package/Icon.cjs +1 -1
- package/Icon.css +1 -1
- package/Icon.js +1 -1
- package/Link.cjs +1 -1
- package/Link.cjs.map +1 -1
- package/Link.d.ts +2 -1
- package/Link.js +49 -17
- package/Link.js.map +1 -1
- package/{ListView-b33a9948.cjs → ListView-14d80585.cjs} +2 -2
- package/{ListView-b33a9948.cjs.map → ListView-14d80585.cjs.map} +1 -1
- package/{ListView-dac3c924.js → ListView-1f75e2de.js} +26 -26
- package/{ListView-dac3c924.js.map → ListView-1f75e2de.js.map} +1 -1
- package/ListView.cjs +1 -1
- package/ListView.css +1 -1
- package/ListView.js +1 -1
- package/Listbox-306a8d62.cjs +2 -0
- package/{Listbox-873403e9.cjs.map → Listbox-306a8d62.cjs.map} +1 -1
- package/{Listbox-7a43984b.js → Listbox-cdf02568.js} +81 -81
- package/{Listbox-7a43984b.js.map → Listbox-cdf02568.js.map} +1 -1
- package/Listbox.cjs +1 -1
- package/Listbox.css +1 -1
- package/Listbox.js +1 -1
- package/Menu.cjs +1 -1
- package/Menu.cjs.map +1 -1
- package/Menu.d.ts +7 -2
- package/Menu.js +3 -3
- package/Overflow.cjs +1 -1
- package/Overflow.cjs.map +1 -1
- package/Overflow.js +56 -24
- package/Overflow.js.map +1 -1
- package/Page.cjs +1 -1
- package/Page.js +2 -2
- package/Popover.cjs +1 -1
- package/Popover.cjs.map +1 -1
- package/Popover.d.ts +22 -1
- package/Popover.js +68 -36
- package/Popover.js.map +1 -1
- package/ProgressBar-29d21945.cjs +2 -0
- package/ProgressBar-29d21945.cjs.map +1 -0
- package/{ProgressBar-f9325dbe.js → ProgressBar-5f350a3f.js} +93 -93
- package/ProgressBar-5f350a3f.js.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.css +1 -1
- package/ProgressBar.js +1 -1
- package/Radio-4189b000.js +124 -0
- package/Radio-4189b000.js.map +1 -0
- package/Radio-abd4d3fd.cjs +2 -0
- package/Radio-abd4d3fd.cjs.map +1 -0
- package/Radio.cjs +1 -1
- package/Radio.cjs.map +1 -1
- package/Radio.css +1 -1
- package/Radio.d.ts +18 -4
- package/Radio.js +1 -1
- package/Radio.js.map +1 -1
- package/{SideNav-369bf761.cjs → SideNav-6de704fd.cjs} +6 -6
- package/{SideNav-369bf761.cjs.map → SideNav-6de704fd.cjs.map} +1 -1
- package/{SideNav-94ab00f0.js → SideNav-e92d850f.js} +136 -136
- package/{SideNav-94ab00f0.js.map → SideNav-e92d850f.js.map} +1 -1
- package/SideNav.cjs +5 -5
- package/SideNav.cjs.map +1 -1
- package/SideNav.css +1 -1
- package/SideNav.d.ts +5 -35
- package/SideNav.js +524 -585
- package/SideNav.js.map +1 -1
- package/Stepper-e776cc28.cjs +2 -0
- package/Stepper-e776cc28.cjs.map +1 -0
- package/{Stepper-54e47376.js → Stepper-fa554908.js} +140 -140
- package/Stepper-fa554908.js.map +1 -0
- package/Stepper.cjs +1 -1
- package/Stepper.css +1 -1
- package/Stepper.js +1 -1
- package/Switch-285b3272.cjs +2 -0
- package/Switch-285b3272.cjs.map +1 -0
- package/Switch-b0a37fc1.js +54 -0
- package/Switch-b0a37fc1.js.map +1 -0
- package/Switch.cjs +1 -1
- package/Switch.css +1 -1
- package/Switch.js +1 -1
- package/{Tab-120468a3.js → Tab-1934a4ca.js} +80 -80
- package/{Tab-120468a3.js.map → Tab-1934a4ca.js.map} +1 -1
- package/Tab-ad70a0a5.cjs +10 -0
- package/{Tab-3de6894a.cjs.map → Tab-ad70a0a5.cjs.map} +1 -1
- package/Tab.cjs +1 -1
- package/Tab.css +1 -1
- package/Tab.js +1 -1
- package/{Text-a7747376.js → Text-4c30916c.js} +31 -31
- package/Text-4c30916c.js.map +1 -0
- package/Text-ed02cc62.cjs +2 -0
- package/Text-ed02cc62.cjs.map +1 -0
- package/Text.cjs +1 -1
- package/Text.css +1 -1
- package/Text.js +1 -1
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.js +47 -15
- package/TextField.js.map +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.cjs.map +1 -1
- package/Textarea.js +51 -19
- package/Textarea.js.map +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/{Toast-4bab713a.cjs → Toast-834c85cd.cjs} +6 -6
- package/{Toast-4bab713a.cjs.map → Toast-834c85cd.cjs.map} +1 -1
- package/{Toast-5b02b7c0.js → Toast-f15e9d36.js} +141 -141
- package/Toast-f15e9d36.js.map +1 -0
- package/Toast.cjs +1 -1
- package/Toast.css +1 -1
- package/Toast.js +1 -1
- package/Tooltip.cjs +1 -1
- package/Tooltip.cjs.map +1 -1
- package/Tooltip.d.ts +2 -1
- package/Tooltip.js +47 -17
- package/Tooltip.js.map +1 -1
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +68 -47
- package/anvil2.js +40 -40
- package/floating-ui.react-5347095a.cjs +178 -0
- package/floating-ui.react-5347095a.cjs.map +1 -0
- package/{floating-ui.react-3f85fcd1.js → floating-ui.react-8d61182d.js} +5666 -5654
- package/floating-ui.react-8d61182d.js.map +1 -0
- package/index-098ca719-3c14c40c.js +307 -0
- package/index-098ca719-3c14c40c.js.map +1 -0
- package/index-098ca719-8e068129.cjs +2 -0
- package/index-098ca719-8e068129.cjs.map +1 -0
- package/index-098ca719.css +1 -0
- package/{index-5654965e.js → index-439b5871.js} +4 -4
- package/{index-5654965e.js.map → index-439b5871.js.map} +1 -1
- package/{index-a6d2f789.js → index-8ee9499c.js} +682 -673
- package/{index-a6d2f789.js.map → index-8ee9499c.js.map} +1 -1
- package/{index-ebc2776c.js → index-ab05dabf.js} +2 -2
- package/{index-ebc2776c.js.map → index-ab05dabf.js.map} +1 -1
- package/{index-0c3dd58b.cjs → index-acdc415f.cjs} +2 -2
- package/{index-0c3dd58b.cjs.map → index-acdc415f.cjs.map} +1 -1
- package/{index-d46fa8de-cc49032b.cjs → index-d46fa8de-08092573.cjs} +2 -2
- package/{index-d46fa8de-cc49032b.cjs.map → index-d46fa8de-08092573.cjs.map} +1 -1
- package/{index-d46fa8de-997b6b08.js → index-d46fa8de-8695742b.js} +15 -15
- package/{index-d46fa8de-997b6b08.js.map → index-d46fa8de-8695742b.js.map} +1 -1
- package/index-da56edbc-372336bd.js +120 -0
- package/index-da56edbc-372336bd.js.map +1 -0
- package/index-da56edbc-53f59f54.cjs +2 -0
- package/index-da56edbc-53f59f54.cjs.map +1 -0
- package/index-da56edbc.css +1 -0
- package/{index-51c8d206.cjs → index-dfb6272f.cjs} +5 -5
- package/{index-51c8d206.cjs.map → index-dfb6272f.cjs.map} +1 -1
- package/{index-30317fba.cjs → index-f6c22572.cjs} +2 -2
- package/{index-30317fba.cjs.map → index-f6c22572.cjs.map} +1 -1
- package/index3.css +1 -1
- package/package.json +33 -33
- package/token.cjs +1 -1
- package/token.js +1 -1
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.js +29 -29
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +29 -29
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.js +30 -30
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +29 -29
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +29 -29
- package/Alert-017471de.js +0 -88
- package/Alert-017471de.js.map +0 -1
- package/Alert-3ae85e66.cjs +0 -2
- package/Alert-3ae85e66.cjs.map +0 -1
- package/Announcement-0ef0c8f7.js.map +0 -1
- package/Announcement-3540ab95.cjs +0 -2
- package/Announcement-3540ab95.cjs.map +0 -1
- package/Badge-29ed0c9e.cjs +0 -2
- package/Badge-2dc92a40.js +0 -35
- package/Badge-2dc92a40.js.map +0 -1
- package/Button-dbbb8dc0.js +0 -289
- package/Button-dbbb8dc0.js.map +0 -1
- package/Button-df4be721.cjs +0 -2
- package/Button-df4be721.cjs.map +0 -1
- package/Card-42198f6c.cjs +0 -2
- package/Card-42198f6c.cjs.map +0 -1
- package/Card-d7d23388.js +0 -51
- package/Card-d7d23388.js.map +0 -1
- package/Checkbox-949d5f00.cjs +0 -2
- package/Checkbox-949d5f00.cjs.map +0 -1
- package/Checkbox-e2b0e7d0.js.map +0 -1
- package/Chip-c1c9ff14.cjs +0 -2
- package/Chip-c1c9ff14.cjs.map +0 -1
- package/Chip-dbc470f4.js.map +0 -1
- package/Divider-6e94652c.js +0 -74
- package/Divider-6e94652c.js.map +0 -1
- package/Divider-9719b490.cjs +0 -2
- package/Divider-9719b490.cjs.map +0 -1
- package/Drawer-989d1d8a.cjs +0 -2
- package/Drawer-b81924d3.js.map +0 -1
- package/Flex-740ea6ba.cjs +0 -2
- package/Icon-7dc0db59.js +0 -47
- package/Icon-7dc0db59.js.map +0 -1
- package/Icon-d02abfdd.cjs +0 -2
- package/Icon-d02abfdd.cjs.map +0 -1
- package/Listbox-873403e9.cjs +0 -2
- package/Menu-0a24f1ba.js +0 -284
- package/Menu-0a24f1ba.js.map +0 -1
- package/Menu-869a24e2.cjs +0 -2
- package/Menu-869a24e2.cjs.map +0 -1
- package/Menu.css +0 -1
- package/ProgressBar-2589ad1b.cjs +0 -2
- package/ProgressBar-2589ad1b.cjs.map +0 -1
- package/ProgressBar-f9325dbe.js.map +0 -1
- package/Radio-c81308ef.js +0 -124
- package/Radio-c81308ef.js.map +0 -1
- package/Radio-e11ee699.cjs +0 -2
- package/Radio-e11ee699.cjs.map +0 -1
- package/Stepper-54e47376.js.map +0 -1
- package/Stepper-e26d5bac.cjs +0 -2
- package/Stepper-e26d5bac.cjs.map +0 -1
- package/Switch-c4977b9b.js +0 -54
- package/Switch-c4977b9b.js.map +0 -1
- package/Switch-f1d54e52.cjs +0 -2
- package/Switch-f1d54e52.cjs.map +0 -1
- package/Tab-3de6894a.cjs +0 -10
- package/Text-a7747376.js.map +0 -1
- package/Text-eefa573a.cjs +0 -2
- package/Text-eefa573a.cjs.map +0 -1
- package/Toast-5b02b7c0.js.map +0 -1
- package/floating-ui.react-3f85fcd1.js.map +0 -1
- package/floating-ui.react-518bb704.cjs +0 -178
- package/floating-ui.react-518bb704.cjs.map +0 -1
- package/index-f3ce3681-94450aba.js +0 -120
- package/index-f3ce3681-94450aba.js.map +0 -1
- package/index-f3ce3681-b0bee9d9.cjs +0 -2
- package/index-f3ce3681-b0bee9d9.cjs.map +0 -1
- package/index-f3ce3681.css +0 -1
- package/ui-react-7152d718.js +0 -53
- package/ui-react-7152d718.js.map +0 -1
- package/ui-react-7f005f46.cjs +0 -2
- package/ui-react-7f005f46.cjs.map +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import "./index3.css";
|
|
2
|
-
import "./Alert-
|
|
3
|
-
import "./Announcement-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./Badge-
|
|
6
|
-
import {
|
|
7
|
-
import "./Calendar-
|
|
8
|
-
import "./Card-
|
|
9
|
-
import { r as Ar } from "./Checkbox-
|
|
10
|
-
import { $ as an } from "./Chip-
|
|
11
|
-
import "./Divider-
|
|
12
|
-
import { a as Hr } from "./Drawer-
|
|
13
|
-
import { j as vt } from "./Flex-
|
|
14
|
-
import "./Grid-
|
|
15
|
-
import { I as xt } from "./Icon-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { t as _t } from "./ListView-
|
|
19
|
-
import "./
|
|
20
|
-
import "./Radio-
|
|
21
|
-
import { P as
|
|
2
|
+
import "./Alert-6faa0b05.js";
|
|
3
|
+
import "./Announcement-d04009ea.js";
|
|
4
|
+
import "./index-da56edbc-372336bd.js";
|
|
5
|
+
import "./Badge-f761458c.js";
|
|
6
|
+
import { k as qe, l as Vr } from "./Button-d05507c5.js";
|
|
7
|
+
import "./Calendar-073dc10d.js";
|
|
8
|
+
import "./Card-33f3ad0a.js";
|
|
9
|
+
import { r as Ar } from "./Checkbox-d503c3b6.js";
|
|
10
|
+
import { $ as an } from "./Chip-a8eb2656.js";
|
|
11
|
+
import "./Divider-edca965e.js";
|
|
12
|
+
import { a as Hr } from "./Drawer-f68286e8.js";
|
|
13
|
+
import { j as vt } from "./Flex-f6e67921.js";
|
|
14
|
+
import "./Grid-992de375.js";
|
|
15
|
+
import { I as xt } from "./Icon-fa8f3dc8.js";
|
|
16
|
+
import { j as bt } from "./ProgressBar-5f350a3f.js";
|
|
17
|
+
import { i as kn } from "./Listbox-cdf02568.js";
|
|
18
|
+
import { t as _t } from "./ListView-1f75e2de.js";
|
|
19
|
+
import "./index-098ca719-3c14c40c.js";
|
|
20
|
+
import "./Radio-4189b000.js";
|
|
21
|
+
import { P as y, _ as $, b as ve, a as jr } from "./SideNav-e92d850f.js";
|
|
22
22
|
import { p as Mn } from "./SrOnly-0c13a721.js";
|
|
23
23
|
import { f as v } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
24
|
-
import { c as
|
|
25
|
-
import "./Stepper-
|
|
26
|
-
import "./Switch-
|
|
27
|
-
import "./Tab-
|
|
28
|
-
import { E as Tn } from "./Text-
|
|
29
|
-
import "./Toast-
|
|
24
|
+
import { c as se } from "./index-e0f6271a.js";
|
|
25
|
+
import "./Stepper-fa554908.js";
|
|
26
|
+
import "./Switch-b0a37fc1.js";
|
|
27
|
+
import "./Tab-1934a4ca.js";
|
|
28
|
+
import { E as Tn } from "./Text-4c30916c.js";
|
|
29
|
+
import "./Toast-f15e9d36.js";
|
|
30
30
|
import "./index-06c0bdf0.js";
|
|
31
|
-
import * as _e from "react";
|
|
32
|
-
import st, { useRef as Q, useCallback as ee, useEffect as de, useMemo as Me, cloneElement as Kr, Component as $r, useLayoutEffect as wt, useReducer as Fr, createContext as dt, forwardRef as ce, useContext as Te, useState as J, useId as Ie } from "react";
|
|
33
31
|
import { J as Se } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
34
|
-
import { U as
|
|
32
|
+
import { U as Kr, T as $r } from "./index-d46fa8de-8695742b.js";
|
|
35
33
|
import "./usePrefersColorScheme-129544ad-cab6fc3f.js";
|
|
36
|
-
import "
|
|
34
|
+
import * as _e from "react";
|
|
35
|
+
import st, { useRef as Q, useCallback as ee, useEffect as de, useMemo as Te, cloneElement as Fr, Component as Lr, useLayoutEffect as wt, useReducer as Br, createContext as dt, forwardRef as ce, useContext as Ve, useState as J, useId as Ie } from "react";
|
|
36
|
+
import "./index-439b5871.js";
|
|
37
37
|
import "./LocalizationProvider.js";
|
|
38
|
-
import { u as Be, v as
|
|
38
|
+
import { u as Be, v as Ur, w as zr, z as Wr, e as qr, h as Yr, o as Gr, g as Xr, f as Jr, s as Qr, l as Zr, B as eo, k as to, i as no, j as ro, n as oo, m as io, r as so } from "./floating-ui.react-8d61182d.js";
|
|
39
39
|
import { g as lo } from "./_commonjsHelpers-c5d32002.js";
|
|
40
40
|
import { a as Vn } from "./close-064c8acc-7e0b4df7.js";
|
|
41
41
|
import { a as ao } from "./check-5f087ea0-b5474547.js";
|
|
42
|
-
import { v as Et } from "./Helper-74a1f07f-
|
|
42
|
+
import { v as Et } from "./Helper-74a1f07f-067ae3f7.js";
|
|
43
43
|
/* empty css */import "./useSwipe-82769b09-835234e6.js";
|
|
44
44
|
function un(e) {
|
|
45
45
|
if (e === void 0)
|
|
@@ -61,7 +61,7 @@ function uo() {
|
|
|
61
61
|
if (dn)
|
|
62
62
|
return G;
|
|
63
63
|
dn = 1;
|
|
64
|
-
var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"),
|
|
64
|
+
var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), x;
|
|
65
65
|
x = Symbol.for("react.module.reference");
|
|
66
66
|
function S(g) {
|
|
67
67
|
if (typeof g == "object" && g !== null) {
|
|
@@ -122,7 +122,7 @@ function uo() {
|
|
|
122
122
|
}, G.isSuspenseList = function(g) {
|
|
123
123
|
return S(g) === l;
|
|
124
124
|
}, G.isValidElementType = function(g) {
|
|
125
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === u || g === l || g ===
|
|
125
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === u || g === l || g === _ || typeof g == "object" && g !== null && (g.$$typeof === b || g.$$typeof === h || g.$$typeof === t || g.$$typeof === s || g.$$typeof === d || g.$$typeof === x || g.getModuleId !== void 0);
|
|
126
126
|
}, G.typeOf = S, G;
|
|
127
127
|
}
|
|
128
128
|
var X = {};
|
|
@@ -138,16 +138,16 @@ var X = {};
|
|
|
138
138
|
var cn;
|
|
139
139
|
function co() {
|
|
140
140
|
return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
141
|
-
var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"),
|
|
141
|
+
var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), x = !1, S = !1, g = !1, D = !1, c = !1, f;
|
|
142
142
|
f = Symbol.for("react.module.reference");
|
|
143
143
|
function p(C) {
|
|
144
|
-
return !!(typeof C == "string" || typeof C == "function" || C === r || C === o || c || C === i || C === u || C === l || D || C ===
|
|
144
|
+
return !!(typeof C == "string" || typeof C == "function" || C === r || C === o || c || C === i || C === u || C === l || D || C === _ || x || S || g || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === h || C.$$typeof === t || C.$$typeof === s || C.$$typeof === d || // This needs to include all possible module reference object
|
|
145
145
|
// types supported by any Flight configuration anywhere since
|
|
146
146
|
// we don't know which Flight build this will end up being used
|
|
147
147
|
// with.
|
|
148
148
|
C.$$typeof === f || C.getModuleId !== void 0));
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function I(C) {
|
|
151
151
|
if (typeof C == "object" && C !== null) {
|
|
152
152
|
var he = C.$$typeof;
|
|
153
153
|
switch (he) {
|
|
@@ -161,15 +161,15 @@ function co() {
|
|
|
161
161
|
case l:
|
|
162
162
|
return ie;
|
|
163
163
|
default:
|
|
164
|
-
var
|
|
165
|
-
switch (
|
|
164
|
+
var Ae = ie && ie.$$typeof;
|
|
165
|
+
switch (Ae) {
|
|
166
166
|
case a:
|
|
167
167
|
case s:
|
|
168
168
|
case d:
|
|
169
169
|
case b:
|
|
170
170
|
case h:
|
|
171
171
|
case t:
|
|
172
|
-
return
|
|
172
|
+
return Ae;
|
|
173
173
|
default:
|
|
174
174
|
return he;
|
|
175
175
|
}
|
|
@@ -179,50 +179,50 @@ function co() {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
var m = s, N = t, E = e,
|
|
182
|
+
var m = s, N = t, E = e, k = d, M = r, O = b, P = h, V = n, R = o, F = i, L = u, K = l, U = !1, Z = !1;
|
|
183
183
|
function j(C) {
|
|
184
|
-
return
|
|
184
|
+
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
185
185
|
}
|
|
186
186
|
function W(C) {
|
|
187
187
|
return Z || (Z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
188
188
|
}
|
|
189
189
|
function Y(C) {
|
|
190
|
-
return
|
|
190
|
+
return I(C) === s;
|
|
191
191
|
}
|
|
192
192
|
function oe(C) {
|
|
193
|
-
return
|
|
193
|
+
return I(C) === t;
|
|
194
194
|
}
|
|
195
195
|
function T(C) {
|
|
196
196
|
return typeof C == "object" && C !== null && C.$$typeof === e;
|
|
197
197
|
}
|
|
198
198
|
function A(C) {
|
|
199
|
-
return
|
|
199
|
+
return I(C) === d;
|
|
200
200
|
}
|
|
201
201
|
function w(C) {
|
|
202
|
-
return
|
|
202
|
+
return I(C) === r;
|
|
203
203
|
}
|
|
204
204
|
function H(C) {
|
|
205
|
-
return
|
|
205
|
+
return I(C) === b;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
return
|
|
207
|
+
function z(C) {
|
|
208
|
+
return I(C) === h;
|
|
209
209
|
}
|
|
210
210
|
function q(C) {
|
|
211
|
-
return
|
|
211
|
+
return I(C) === n;
|
|
212
212
|
}
|
|
213
213
|
function B(C) {
|
|
214
|
-
return
|
|
215
|
-
}
|
|
216
|
-
function se(C) {
|
|
217
|
-
return _(C) === i;
|
|
214
|
+
return I(C) === o;
|
|
218
215
|
}
|
|
219
216
|
function le(C) {
|
|
220
|
-
return
|
|
217
|
+
return I(C) === i;
|
|
218
|
+
}
|
|
219
|
+
function ae(C) {
|
|
220
|
+
return I(C) === u;
|
|
221
221
|
}
|
|
222
222
|
function ue(C) {
|
|
223
|
-
return
|
|
223
|
+
return I(C) === l;
|
|
224
224
|
}
|
|
225
|
-
X.ContextConsumer = m, X.ContextProvider = N, X.Element = E, X.ForwardRef =
|
|
225
|
+
X.ContextConsumer = m, X.ContextProvider = N, X.Element = E, X.ForwardRef = k, X.Fragment = M, X.Lazy = O, X.Memo = P, X.Portal = V, X.Profiler = R, X.StrictMode = F, X.Suspense = L, X.SuspenseList = K, X.isAsyncMode = j, X.isConcurrentMode = W, X.isContextConsumer = Y, X.isContextProvider = oe, X.isElement = T, X.isForwardRef = A, X.isFragment = w, X.isLazy = H, X.isMemo = z, X.isPortal = q, X.isProfiler = B, X.isStrictMode = le, X.isSuspense = ae, X.isSuspenseList = ue, X.isValidElementType = p, X.typeOf = I;
|
|
226
226
|
}()), X;
|
|
227
227
|
}
|
|
228
228
|
process.env.NODE_ENV === "production" ? It.exports = uo() : It.exports = co();
|
|
@@ -254,34 +254,34 @@ const fn = (e) => typeof e == "object" && e != null && e.nodeType === 1, hn = (e
|
|
|
254
254
|
const { scrollMode: s, block: a, inline: d, boundary: u, skipOverflowHiddenElements: l } = n, h = typeof u == "function" ? u : (L) => L !== u;
|
|
255
255
|
if (!fn(e))
|
|
256
256
|
throw new TypeError("Invalid target");
|
|
257
|
-
const b = document.scrollingElement || document.documentElement,
|
|
257
|
+
const b = document.scrollingElement || document.documentElement, _ = [];
|
|
258
258
|
let x = e;
|
|
259
259
|
for (; fn(x) && h(x); ) {
|
|
260
260
|
if (x = po(x), x === b) {
|
|
261
|
-
|
|
261
|
+
_.push(x);
|
|
262
262
|
break;
|
|
263
263
|
}
|
|
264
|
-
x != null && x === document.body && gt(x) && !gt(document.documentElement) || x != null && gt(x, l) &&
|
|
264
|
+
x != null && x === document.body && gt(x) && !gt(document.documentElement) || x != null && gt(x, l) && _.push(x);
|
|
265
265
|
}
|
|
266
|
-
const S = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, g = (t = (o = window.visualViewport) == null ? void 0 : o.height) != null ? t : innerHeight, { scrollX: D, scrollY: c } = window, { height: f, width: p, top:
|
|
266
|
+
const S = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, g = (t = (o = window.visualViewport) == null ? void 0 : o.height) != null ? t : innerHeight, { scrollX: D, scrollY: c } = window, { height: f, width: p, top: I, right: m, bottom: N, left: E } = e.getBoundingClientRect(), { top: k, right: M, bottom: O, left: P } = ((L) => {
|
|
267
267
|
const K = window.getComputedStyle(L);
|
|
268
268
|
return { top: parseFloat(K.scrollMarginTop) || 0, right: parseFloat(K.scrollMarginRight) || 0, bottom: parseFloat(K.scrollMarginBottom) || 0, left: parseFloat(K.scrollMarginLeft) || 0 };
|
|
269
269
|
})(e);
|
|
270
|
-
let V = a === "start" || a === "nearest" ?
|
|
270
|
+
let V = a === "start" || a === "nearest" ? I - k : a === "end" ? N + O : I + f / 2 - k + O, R = d === "center" ? E + p / 2 - P + M : d === "end" ? m + M : E - P;
|
|
271
271
|
const F = [];
|
|
272
|
-
for (let L = 0; L <
|
|
273
|
-
const K =
|
|
274
|
-
if (s === "if-needed" &&
|
|
272
|
+
for (let L = 0; L < _.length; L++) {
|
|
273
|
+
const K = _[L], { height: U, width: Z, top: j, right: W, bottom: Y, left: oe } = K.getBoundingClientRect();
|
|
274
|
+
if (s === "if-needed" && I >= 0 && E >= 0 && N <= g && m <= S && I >= j && N <= Y && E >= oe && m <= W)
|
|
275
275
|
return F;
|
|
276
|
-
const T = getComputedStyle(K), A = parseInt(T.borderLeftWidth, 10), w = parseInt(T.borderTopWidth, 10), H = parseInt(T.borderRightWidth, 10),
|
|
276
|
+
const T = getComputedStyle(K), A = parseInt(T.borderLeftWidth, 10), w = parseInt(T.borderTopWidth, 10), H = parseInt(T.borderRightWidth, 10), z = parseInt(T.borderBottomWidth, 10);
|
|
277
277
|
let q = 0, B = 0;
|
|
278
|
-
const
|
|
278
|
+
const le = "offsetWidth" in K ? K.offsetWidth - K.clientWidth - A - H : 0, ae = "offsetHeight" in K ? K.offsetHeight - K.clientHeight - w - z : 0, ue = "offsetWidth" in K ? K.offsetWidth === 0 ? 0 : Z / K.offsetWidth : 0, C = "offsetHeight" in K ? K.offsetHeight === 0 ? 0 : U / K.offsetHeight : 0;
|
|
279
279
|
if (b === K)
|
|
280
|
-
q = a === "start" ? V : a === "end" ? V - g : a === "nearest" ? nt(c, c + g, g, w,
|
|
280
|
+
q = a === "start" ? V : a === "end" ? V - g : a === "nearest" ? nt(c, c + g, g, w, z, c + V, c + V + f, f) : V - g / 2, B = d === "start" ? R : d === "center" ? R - S / 2 : d === "end" ? R - S : nt(D, D + S, S, A, H, D + R, D + R + p, p), q = Math.max(0, q + c), B = Math.max(0, B + D);
|
|
281
281
|
else {
|
|
282
|
-
q = a === "start" ? V - j - w : a === "end" ? V - Y +
|
|
282
|
+
q = a === "start" ? V - j - w : a === "end" ? V - Y + z + ae : a === "nearest" ? nt(j, Y, U, w, z + ae, V, V + f, f) : V - (j + U / 2) + ae / 2, B = d === "start" ? R - oe - A : d === "center" ? R - (oe + Z / 2) + le / 2 : d === "end" ? R - W + H + le : nt(oe, W, Z, A, H + le, R, R + p, p);
|
|
283
283
|
const { scrollLeft: he, scrollTop: ie } = K;
|
|
284
|
-
q = C === 0 ? 0 : Math.max(0, Math.min(ie + q / C, K.scrollHeight -
|
|
284
|
+
q = C === 0 ? 0 : Math.max(0, Math.min(ie + q / C, K.scrollHeight - U / C + ae)), B = ue === 0 ? 0 : Math.max(0, Math.min(he + B / ue, K.scrollWidth - Z / ue + le)), V += ie - q, R += he - B;
|
|
285
285
|
}
|
|
286
286
|
F.push({ el: K, top: q, left: B });
|
|
287
287
|
}
|
|
@@ -399,7 +399,7 @@ function Ge(e) {
|
|
|
399
399
|
function vo(e) {
|
|
400
400
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function ke(e, n, r, i, o) {
|
|
403
403
|
o === void 0 && (o = !1);
|
|
404
404
|
var t = r.length;
|
|
405
405
|
if (t === 0)
|
|
@@ -458,14 +458,14 @@ function Ot(e, n) {
|
|
|
458
458
|
r.textContent = e, _o(n);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Bn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1,
|
|
461
|
+
var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Bn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Un = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, ot = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, it = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, zn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, Wn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, qn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Yn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Gn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Xn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Jn = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Qn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, yt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Zn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, er = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, tr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, Io = /* @__PURE__ */ Object.freeze({
|
|
462
462
|
__proto__: null,
|
|
463
463
|
unknown: Ln,
|
|
464
464
|
mouseUp: Bn,
|
|
465
|
-
itemMouseEnter:
|
|
465
|
+
itemMouseEnter: Un,
|
|
466
466
|
keyDownArrowUp: ot,
|
|
467
467
|
keyDownArrowDown: it,
|
|
468
|
-
keyDownEscape:
|
|
468
|
+
keyDownEscape: zn,
|
|
469
469
|
keyDownEnter: Wn,
|
|
470
470
|
keyDownHome: qn,
|
|
471
471
|
keyDownEnd: Yn,
|
|
@@ -486,8 +486,8 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
486
486
|
return t.id + "-item-" + c;
|
|
487
487
|
}, t.items = [], t.itemCount = null, t.previousResultCount = 0, t.timeoutIds = [], t.internalSetTimeout = function(c, f) {
|
|
488
488
|
var p = setTimeout(function() {
|
|
489
|
-
t.timeoutIds = t.timeoutIds.filter(function(
|
|
490
|
-
return
|
|
489
|
+
t.timeoutIds = t.timeoutIds.filter(function(I) {
|
|
490
|
+
return I !== p;
|
|
491
491
|
}), c();
|
|
492
492
|
}, f);
|
|
493
493
|
t.timeoutIds.push(p);
|
|
@@ -517,39 +517,39 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
517
517
|
inputValue: t.props.itemToString(c)
|
|
518
518
|
}, f), p);
|
|
519
519
|
}, t.selectItemAtIndex = function(c, f, p) {
|
|
520
|
-
var
|
|
521
|
-
|
|
520
|
+
var I = t.items[c];
|
|
521
|
+
I != null && t.selectItem(I, f, p);
|
|
522
522
|
}, t.selectHighlightedItem = function(c, f) {
|
|
523
523
|
return t.selectItemAtIndex(t.getState().highlightedIndex, c, f);
|
|
524
524
|
}, t.internalSetState = function(c, f) {
|
|
525
|
-
var p,
|
|
525
|
+
var p, I, m = {}, N = typeof c == "function";
|
|
526
526
|
return !N && c.hasOwnProperty("inputValue") && t.props.onInputValueChange(c.inputValue, $({}, t.getStateAndHelpers(), c)), t.setState(function(E) {
|
|
527
|
-
var
|
|
527
|
+
var k;
|
|
528
528
|
E = t.getState(E);
|
|
529
529
|
var M = N ? c(E) : c;
|
|
530
530
|
M = t.props.stateReducer(E, M), p = M.hasOwnProperty("selectedItem");
|
|
531
531
|
var O = {};
|
|
532
|
-
return p && M.selectedItem !== E.selectedItem && (
|
|
533
|
-
E[
|
|
532
|
+
return p && M.selectedItem !== E.selectedItem && (I = M.selectedItem), (k = M).type || (k.type = Ln), Object.keys(M).forEach(function(P) {
|
|
533
|
+
E[P] !== M[P] && (m[P] = M[P]), P !== "type" && (M[P], lt(t.props, P) || (O[P] = M[P]));
|
|
534
534
|
}), N && M.hasOwnProperty("inputValue") && t.props.onInputValueChange(M.inputValue, $({}, t.getStateAndHelpers(), M)), O;
|
|
535
535
|
}, function() {
|
|
536
536
|
gn(f)();
|
|
537
537
|
var E = Object.keys(m).length > 1;
|
|
538
|
-
E && t.props.onStateChange(m, t.getStateAndHelpers()), p && t.props.onSelect(c.selectedItem, t.getStateAndHelpers()),
|
|
538
|
+
E && t.props.onStateChange(m, t.getStateAndHelpers()), p && t.props.onSelect(c.selectedItem, t.getStateAndHelpers()), I !== void 0 && t.props.onChange(I, t.getStateAndHelpers()), t.props.onUserAction(m, t.getStateAndHelpers());
|
|
539
539
|
});
|
|
540
540
|
}, t.rootRef = function(c) {
|
|
541
541
|
return t._rootNode = c;
|
|
542
542
|
}, t.getRootProps = function(c, f) {
|
|
543
|
-
var p,
|
|
544
|
-
t.getRootProps.called = !0, t.getRootProps.refKey = N, t.getRootProps.suppressRefError =
|
|
543
|
+
var p, I = c === void 0 ? {} : c, m = I.refKey, N = m === void 0 ? "ref" : m, E = I.ref, k = ve(I, yo), M = f === void 0 ? {} : f, O = M.suppressRefError, P = O === void 0 ? !1 : O;
|
|
544
|
+
t.getRootProps.called = !0, t.getRootProps.refKey = N, t.getRootProps.suppressRefError = P;
|
|
545
545
|
var V = t.getState(), R = V.isOpen;
|
|
546
|
-
return $((p = {}, p[N] = Re(E, t.rootRef), p.role = "combobox", p["aria-expanded"] = R, p["aria-haspopup"] = "listbox", p["aria-owns"] = R ? t.menuId : void 0, p["aria-labelledby"] = t.labelId, p),
|
|
546
|
+
return $((p = {}, p[N] = Re(E, t.rootRef), p.role = "combobox", p["aria-expanded"] = R, p["aria-haspopup"] = "listbox", p["aria-owns"] = R ? t.menuId : void 0, p["aria-labelledby"] = t.labelId, p), k);
|
|
547
547
|
}, t.keyDownHandlers = {
|
|
548
548
|
ArrowDown: function(f) {
|
|
549
549
|
var p = this;
|
|
550
550
|
if (f.preventDefault(), this.getState().isOpen) {
|
|
551
|
-
var
|
|
552
|
-
this.moveHighlightedIndex(
|
|
551
|
+
var I = f.shiftKey ? 5 : 1;
|
|
552
|
+
this.moveHighlightedIndex(I, {
|
|
553
553
|
type: it
|
|
554
554
|
});
|
|
555
555
|
} else
|
|
@@ -559,10 +559,10 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
559
559
|
}, function() {
|
|
560
560
|
var m = p.getItemCount();
|
|
561
561
|
if (m > 0) {
|
|
562
|
-
var N = p.getState(), E = N.highlightedIndex,
|
|
562
|
+
var N = p.getState(), E = N.highlightedIndex, k = ke(E, 1, {
|
|
563
563
|
length: m
|
|
564
564
|
}, p.isItemDisabled, !0);
|
|
565
|
-
p.setHighlightedIndex(
|
|
565
|
+
p.setHighlightedIndex(k, {
|
|
566
566
|
type: it
|
|
567
567
|
});
|
|
568
568
|
}
|
|
@@ -571,8 +571,8 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
571
571
|
ArrowUp: function(f) {
|
|
572
572
|
var p = this;
|
|
573
573
|
if (f.preventDefault(), this.getState().isOpen) {
|
|
574
|
-
var
|
|
575
|
-
this.moveHighlightedIndex(
|
|
574
|
+
var I = f.shiftKey ? -5 : -1;
|
|
575
|
+
this.moveHighlightedIndex(I, {
|
|
576
576
|
type: ot
|
|
577
577
|
});
|
|
578
578
|
} else
|
|
@@ -582,10 +582,10 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
582
582
|
}, function() {
|
|
583
583
|
var m = p.getItemCount();
|
|
584
584
|
if (m > 0) {
|
|
585
|
-
var N = p.getState(), E = N.highlightedIndex,
|
|
585
|
+
var N = p.getState(), E = N.highlightedIndex, k = ke(E, -1, {
|
|
586
586
|
length: m
|
|
587
587
|
}, p.isItemDisabled, !0);
|
|
588
|
-
p.setHighlightedIndex(
|
|
588
|
+
p.setHighlightedIndex(k, {
|
|
589
589
|
type: ot
|
|
590
590
|
});
|
|
591
591
|
}
|
|
@@ -593,8 +593,8 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
593
593
|
},
|
|
594
594
|
Enter: function(f) {
|
|
595
595
|
if (f.which !== 229) {
|
|
596
|
-
var p = this.getState(),
|
|
597
|
-
if (
|
|
596
|
+
var p = this.getState(), I = p.isOpen, m = p.highlightedIndex;
|
|
597
|
+
if (I && m != null) {
|
|
598
598
|
f.preventDefault();
|
|
599
599
|
var N = this.items[m], E = this.getItemNodeFromIndex(m);
|
|
600
600
|
if (N == null || E && E.hasAttribute("disabled"))
|
|
@@ -607,7 +607,7 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
607
607
|
},
|
|
608
608
|
Escape: function(f) {
|
|
609
609
|
f.preventDefault(), this.reset($({
|
|
610
|
-
type:
|
|
610
|
+
type: zn
|
|
611
611
|
}, !this.state.isOpen && {
|
|
612
612
|
selectedItem: null,
|
|
613
613
|
inputValue: ""
|
|
@@ -621,11 +621,11 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
621
621
|
}
|
|
622
622
|
}), t.inputKeyDownHandlers = $({}, t.keyDownHandlers, {
|
|
623
623
|
Home: function(f) {
|
|
624
|
-
var p = this.getState(),
|
|
625
|
-
if (
|
|
624
|
+
var p = this.getState(), I = p.isOpen;
|
|
625
|
+
if (I) {
|
|
626
626
|
f.preventDefault();
|
|
627
627
|
var m = this.getItemCount();
|
|
628
|
-
if (!(m <= 0 || !
|
|
628
|
+
if (!(m <= 0 || !I)) {
|
|
629
629
|
var N = Le(0, !1, {
|
|
630
630
|
length: m
|
|
631
631
|
}, this.isItemDisabled);
|
|
@@ -636,11 +636,11 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
638
|
End: function(f) {
|
|
639
|
-
var p = this.getState(),
|
|
640
|
-
if (
|
|
639
|
+
var p = this.getState(), I = p.isOpen;
|
|
640
|
+
if (I) {
|
|
641
641
|
f.preventDefault();
|
|
642
642
|
var m = this.getItemCount();
|
|
643
|
-
if (!(m <= 0 || !
|
|
643
|
+
if (!(m <= 0 || !I)) {
|
|
644
644
|
var N = Le(m - 1, !0, {
|
|
645
645
|
length: m
|
|
646
646
|
}, this.isItemDisabled);
|
|
@@ -653,19 +653,19 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
653
653
|
}), t.getToggleButtonProps = function(c) {
|
|
654
654
|
var f = c === void 0 ? {} : c, p = f.onClick;
|
|
655
655
|
f.onPress;
|
|
656
|
-
var
|
|
656
|
+
var I = f.onKeyDown, m = f.onKeyUp, N = f.onBlur, E = ve(f, xo), k = t.getState(), M = k.isOpen, O = {
|
|
657
657
|
onClick: re(p, t.buttonHandleClick),
|
|
658
|
-
onKeyDown: re(
|
|
658
|
+
onKeyDown: re(I, t.buttonHandleKeyDown),
|
|
659
659
|
onKeyUp: re(m, t.buttonHandleKeyUp),
|
|
660
660
|
onBlur: re(N, t.buttonHandleBlur)
|
|
661
|
-
},
|
|
661
|
+
}, P = E.disabled ? {} : O;
|
|
662
662
|
return $({
|
|
663
663
|
type: "button",
|
|
664
664
|
role: "button",
|
|
665
665
|
"aria-label": M ? "close menu" : "open menu",
|
|
666
666
|
"aria-haspopup": !0,
|
|
667
667
|
"data-toggle": !0
|
|
668
|
-
},
|
|
668
|
+
}, P, E);
|
|
669
669
|
}, t.buttonHandleKeyUp = function(c) {
|
|
670
670
|
c.preventDefault();
|
|
671
671
|
}, t.buttonHandleKeyDown = function(c) {
|
|
@@ -673,8 +673,8 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
673
673
|
t.buttonKeyDownHandlers[f] && t.buttonKeyDownHandlers[f].call(un(t), c);
|
|
674
674
|
}, t.buttonHandleClick = function(c) {
|
|
675
675
|
if (c.preventDefault(), t.props.environment) {
|
|
676
|
-
var f = t.props.environment.document, p = f.body,
|
|
677
|
-
p && p ===
|
|
676
|
+
var f = t.props.environment.document, p = f.body, I = f.activeElement;
|
|
677
|
+
p && p === I && c.target.focus();
|
|
678
678
|
}
|
|
679
679
|
process.env.NODE_ENV === "test" ? t.toggleMenu({
|
|
680
680
|
type: yt
|
|
@@ -699,14 +699,14 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
699
699
|
id: t.labelId
|
|
700
700
|
}, c);
|
|
701
701
|
}, t.getInputProps = function(c) {
|
|
702
|
-
var f = c === void 0 ? {} : c, p = f.onKeyDown,
|
|
702
|
+
var f = c === void 0 ? {} : c, p = f.onKeyDown, I = f.onBlur, m = f.onChange, N = f.onInput;
|
|
703
703
|
f.onChangeText;
|
|
704
|
-
var E = ve(f, bo),
|
|
705
|
-
|
|
706
|
-
var O = t.getState(),
|
|
704
|
+
var E = ve(f, bo), k, M = {};
|
|
705
|
+
k = "onChange";
|
|
706
|
+
var O = t.getState(), P = O.inputValue, V = O.isOpen, R = O.highlightedIndex;
|
|
707
707
|
if (!E.disabled) {
|
|
708
708
|
var F;
|
|
709
|
-
M = (F = {}, F[
|
|
709
|
+
M = (F = {}, F[k] = re(m, N, t.inputHandleChange), F.onKeyDown = re(p, t.inputHandleKeyDown), F.onBlur = re(I, t.inputHandleBlur), F);
|
|
710
710
|
}
|
|
711
711
|
return $({
|
|
712
712
|
"aria-autocomplete": "list",
|
|
@@ -716,7 +716,7 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
716
716
|
// https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
|
|
717
717
|
// revert back since autocomplete="nope" is ignored on latest Chrome and Opera
|
|
718
718
|
autoComplete: "off",
|
|
719
|
-
value:
|
|
719
|
+
value: P,
|
|
720
720
|
id: t.inputId
|
|
721
721
|
}, M, E);
|
|
722
722
|
}, t.inputHandleKeyDown = function(c) {
|
|
@@ -742,23 +742,23 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
742
742
|
}, t.menuRef = function(c) {
|
|
743
743
|
t._menuNode = c;
|
|
744
744
|
}, t.getMenuProps = function(c, f) {
|
|
745
|
-
var p,
|
|
746
|
-
return t.getMenuProps.called = !0, t.getMenuProps.refKey = N, t.getMenuProps.suppressRefError =
|
|
745
|
+
var p, I = c === void 0 ? {} : c, m = I.refKey, N = m === void 0 ? "ref" : m, E = I.ref, k = ve(I, wo), M = f === void 0 ? {} : f, O = M.suppressRefError, P = O === void 0 ? !1 : O;
|
|
746
|
+
return t.getMenuProps.called = !0, t.getMenuProps.refKey = N, t.getMenuProps.suppressRefError = P, $((p = {}, p[N] = Re(E, t.menuRef), p.role = "listbox", p["aria-labelledby"] = k && k["aria-label"] ? void 0 : t.labelId, p.id = t.menuId, p), k);
|
|
747
747
|
}, t.getItemProps = function(c) {
|
|
748
|
-
var f, p = c === void 0 ? {} : c,
|
|
748
|
+
var f, p = c === void 0 ? {} : c, I = p.onMouseMove, m = p.onMouseDown, N = p.onClick;
|
|
749
749
|
p.onPress;
|
|
750
|
-
var E = p.index,
|
|
750
|
+
var E = p.index, k = p.item, M = k === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
751
751
|
/* istanbul ignore next */
|
|
752
752
|
void 0
|
|
753
|
-
) : go("getItemProps", "item") :
|
|
753
|
+
) : go("getItemProps", "item") : k, O = ve(p, Eo);
|
|
754
754
|
E === void 0 ? (t.items.push(M), E = t.items.indexOf(M)) : t.items[E] = M;
|
|
755
|
-
var
|
|
755
|
+
var P = "onClick", V = N, R = (f = {
|
|
756
756
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
757
757
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
758
758
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
759
|
-
onMouseMove: re(
|
|
759
|
+
onMouseMove: re(I, function() {
|
|
760
760
|
E !== t.getState().highlightedIndex && (t.setHighlightedIndex(E, {
|
|
761
|
-
type:
|
|
761
|
+
type: Un
|
|
762
762
|
}), t.avoidScrolling = !0, t.internalSetTimeout(function() {
|
|
763
763
|
return t.avoidScrolling = !1;
|
|
764
764
|
}, 250));
|
|
@@ -766,7 +766,7 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
766
766
|
onMouseDown: re(m, function(L) {
|
|
767
767
|
L.preventDefault();
|
|
768
768
|
})
|
|
769
|
-
}, f[
|
|
769
|
+
}, f[P] = re(V, function() {
|
|
770
770
|
t.selectItemAtIndex(E, {
|
|
771
771
|
type: Gn
|
|
772
772
|
});
|
|
@@ -782,24 +782,24 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
782
782
|
t.items = [];
|
|
783
783
|
}, t.reset = function(c, f) {
|
|
784
784
|
c === void 0 && (c = {}), c = rt(c), t.internalSetState(function(p) {
|
|
785
|
-
var
|
|
785
|
+
var I = p.selectedItem;
|
|
786
786
|
return $({
|
|
787
787
|
isOpen: t.props.defaultIsOpen,
|
|
788
788
|
highlightedIndex: t.props.defaultHighlightedIndex,
|
|
789
|
-
inputValue: t.props.itemToString(
|
|
789
|
+
inputValue: t.props.itemToString(I)
|
|
790
790
|
}, c);
|
|
791
791
|
}, f);
|
|
792
792
|
}, t.toggleMenu = function(c, f) {
|
|
793
793
|
c === void 0 && (c = {}), c = rt(c), t.internalSetState(function(p) {
|
|
794
|
-
var
|
|
794
|
+
var I = p.isOpen;
|
|
795
795
|
return $({
|
|
796
|
-
isOpen: !
|
|
797
|
-
},
|
|
796
|
+
isOpen: !I
|
|
797
|
+
}, I && {
|
|
798
798
|
highlightedIndex: t.props.defaultHighlightedIndex
|
|
799
799
|
}, c);
|
|
800
800
|
}, function() {
|
|
801
|
-
var p = t.getState(),
|
|
802
|
-
|
|
801
|
+
var p = t.getState(), I = p.isOpen, m = p.highlightedIndex;
|
|
802
|
+
I && t.getItemCount() > 0 && typeof m == "number" && t.setHighlightedIndex(m, c), gn(f)();
|
|
803
803
|
});
|
|
804
804
|
}, t.openMenu = function(c) {
|
|
805
805
|
t.internalSetState({
|
|
@@ -812,16 +812,16 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
812
812
|
}, t.updateStatus = Ct(function() {
|
|
813
813
|
var c;
|
|
814
814
|
if ((c = t.props) != null && (c = c.environment) != null && c.document) {
|
|
815
|
-
var f = t.getState(), p = t.items[f.highlightedIndex],
|
|
815
|
+
var f = t.getState(), p = t.items[f.highlightedIndex], I = t.getItemCount(), m = t.props.getA11yStatusMessage($({
|
|
816
816
|
itemToString: t.props.itemToString,
|
|
817
817
|
previousResultCount: t.previousResultCount,
|
|
818
|
-
resultCount:
|
|
818
|
+
resultCount: I,
|
|
819
819
|
highlightedItem: p
|
|
820
820
|
}, f));
|
|
821
|
-
t.previousResultCount =
|
|
821
|
+
t.previousResultCount = I, Ot(m, t.props.environment.document);
|
|
822
822
|
}
|
|
823
823
|
}, 200);
|
|
824
|
-
var s = t.props, a = s.defaultHighlightedIndex, d = s.initialHighlightedIndex, u = d === void 0 ? a : d, l = s.defaultIsOpen, h = s.initialIsOpen, b = h === void 0 ? l : h,
|
|
824
|
+
var s = t.props, a = s.defaultHighlightedIndex, d = s.initialHighlightedIndex, u = d === void 0 ? a : d, l = s.defaultIsOpen, h = s.initialIsOpen, b = h === void 0 ? l : h, _ = s.initialInputValue, x = _ === void 0 ? "" : _, S = s.initialSelectedItem, g = S === void 0 ? null : S, D = t.getState({
|
|
825
825
|
highlightedIndex: u,
|
|
826
826
|
isOpen: b,
|
|
827
827
|
inputValue: x,
|
|
@@ -849,17 +849,17 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
849
849
|
}, i.moveHighlightedIndex = function(t, s) {
|
|
850
850
|
var a = this.getItemCount(), d = this.getState(), u = d.highlightedIndex;
|
|
851
851
|
if (a > 0) {
|
|
852
|
-
var l =
|
|
852
|
+
var l = ke(u, t, {
|
|
853
853
|
length: a
|
|
854
854
|
}, this.isItemDisabled, !0);
|
|
855
855
|
this.setHighlightedIndex(l, s);
|
|
856
856
|
}
|
|
857
857
|
}, i.getStateAndHelpers = function() {
|
|
858
|
-
var t = this.getState(), s = t.highlightedIndex, a = t.inputValue, d = t.selectedItem, u = t.isOpen, l = this.props.itemToString, h = this.id, b = this.getRootProps,
|
|
858
|
+
var t = this.getState(), s = t.highlightedIndex, a = t.inputValue, d = t.selectedItem, u = t.isOpen, l = this.props.itemToString, h = this.id, b = this.getRootProps, _ = this.getToggleButtonProps, x = this.getLabelProps, S = this.getMenuProps, g = this.getInputProps, D = this.getItemProps, c = this.openMenu, f = this.closeMenu, p = this.toggleMenu, I = this.selectItem, m = this.selectItemAtIndex, N = this.selectHighlightedItem, E = this.setHighlightedIndex, k = this.clearSelection, M = this.clearItems, O = this.reset, P = this.setItemCount, V = this.unsetItemCount, R = this.internalSetState;
|
|
859
859
|
return {
|
|
860
860
|
// prop getters
|
|
861
861
|
getRootProps: b,
|
|
862
|
-
getToggleButtonProps:
|
|
862
|
+
getToggleButtonProps: _,
|
|
863
863
|
getLabelProps: x,
|
|
864
864
|
getMenuProps: S,
|
|
865
865
|
getInputProps: g,
|
|
@@ -869,13 +869,13 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
869
869
|
openMenu: c,
|
|
870
870
|
closeMenu: f,
|
|
871
871
|
toggleMenu: p,
|
|
872
|
-
selectItem:
|
|
872
|
+
selectItem: I,
|
|
873
873
|
selectItemAtIndex: m,
|
|
874
874
|
selectHighlightedItem: N,
|
|
875
875
|
setHighlightedIndex: E,
|
|
876
|
-
clearSelection:
|
|
876
|
+
clearSelection: k,
|
|
877
877
|
clearItems: M,
|
|
878
|
-
setItemCount:
|
|
878
|
+
setItemCount: P,
|
|
879
879
|
unsetItemCount: V,
|
|
880
880
|
setState: R,
|
|
881
881
|
// props
|
|
@@ -897,9 +897,9 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
897
897
|
else {
|
|
898
898
|
var s = function() {
|
|
899
899
|
t.isMouseDown = !0;
|
|
900
|
-
}, a = function(
|
|
900
|
+
}, a = function(_) {
|
|
901
901
|
t.isMouseDown = !1;
|
|
902
|
-
var x = at(
|
|
902
|
+
var x = at(_.target, [t._rootNode, t._menuNode], t.props.environment);
|
|
903
903
|
!x && t.getState().isOpen && t.reset({
|
|
904
904
|
type: Bn
|
|
905
905
|
}, function() {
|
|
@@ -909,8 +909,8 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
909
909
|
t.isTouchMove = !1;
|
|
910
910
|
}, u = function() {
|
|
911
911
|
t.isTouchMove = !0;
|
|
912
|
-
}, l = function(
|
|
913
|
-
var x = at(
|
|
912
|
+
}, l = function(_) {
|
|
913
|
+
var x = at(_.target, [t._rootNode, t._menuNode], t.props.environment, !1);
|
|
914
914
|
!t.isTouchMove && !x && t.getState().isOpen && t.reset({
|
|
915
915
|
type: tr
|
|
916
916
|
}, function() {
|
|
@@ -940,11 +940,11 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
940
940
|
if (this.getRootProps.called || this.props.suppressRefError)
|
|
941
941
|
return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && So(s, this.getRootProps), s;
|
|
942
942
|
if (Kn(s))
|
|
943
|
-
return /* @__PURE__ */
|
|
943
|
+
return /* @__PURE__ */ Fr(s, this.getRootProps($n(s)));
|
|
944
944
|
if (process.env.NODE_ENV !== "production")
|
|
945
945
|
throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
|
|
946
946
|
}, r;
|
|
947
|
-
}(
|
|
947
|
+
}(Lr);
|
|
948
948
|
return e.defaultProps = {
|
|
949
949
|
defaultHighlightedIndex: null,
|
|
950
950
|
defaultIsOpen: !1,
|
|
@@ -973,49 +973,49 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
973
973
|
}, e.stateChangeTypes = Io, e;
|
|
974
974
|
}();
|
|
975
975
|
process.env.NODE_ENV !== "production" && (Co.propTypes = {
|
|
976
|
-
children:
|
|
977
|
-
defaultHighlightedIndex:
|
|
978
|
-
defaultIsOpen:
|
|
979
|
-
initialHighlightedIndex:
|
|
980
|
-
initialSelectedItem:
|
|
981
|
-
initialInputValue:
|
|
982
|
-
initialIsOpen:
|
|
983
|
-
getA11yStatusMessage:
|
|
984
|
-
itemToString:
|
|
985
|
-
onChange:
|
|
986
|
-
onSelect:
|
|
987
|
-
onStateChange:
|
|
988
|
-
onInputValueChange:
|
|
989
|
-
onUserAction:
|
|
990
|
-
onOuterClick:
|
|
991
|
-
selectedItemChanged:
|
|
992
|
-
stateReducer:
|
|
993
|
-
itemCount:
|
|
994
|
-
id:
|
|
995
|
-
environment:
|
|
996
|
-
addEventListener:
|
|
997
|
-
removeEventListener:
|
|
998
|
-
document:
|
|
999
|
-
createElement:
|
|
1000
|
-
getElementById:
|
|
1001
|
-
activeElement:
|
|
1002
|
-
body:
|
|
976
|
+
children: y.func,
|
|
977
|
+
defaultHighlightedIndex: y.number,
|
|
978
|
+
defaultIsOpen: y.bool,
|
|
979
|
+
initialHighlightedIndex: y.number,
|
|
980
|
+
initialSelectedItem: y.any,
|
|
981
|
+
initialInputValue: y.string,
|
|
982
|
+
initialIsOpen: y.bool,
|
|
983
|
+
getA11yStatusMessage: y.func,
|
|
984
|
+
itemToString: y.func,
|
|
985
|
+
onChange: y.func,
|
|
986
|
+
onSelect: y.func,
|
|
987
|
+
onStateChange: y.func,
|
|
988
|
+
onInputValueChange: y.func,
|
|
989
|
+
onUserAction: y.func,
|
|
990
|
+
onOuterClick: y.func,
|
|
991
|
+
selectedItemChanged: y.func,
|
|
992
|
+
stateReducer: y.func,
|
|
993
|
+
itemCount: y.number,
|
|
994
|
+
id: y.string,
|
|
995
|
+
environment: y.shape({
|
|
996
|
+
addEventListener: y.func.isRequired,
|
|
997
|
+
removeEventListener: y.func.isRequired,
|
|
998
|
+
document: y.shape({
|
|
999
|
+
createElement: y.func.isRequired,
|
|
1000
|
+
getElementById: y.func.isRequired,
|
|
1001
|
+
activeElement: y.any.isRequired,
|
|
1002
|
+
body: y.any.isRequired
|
|
1003
1003
|
}).isRequired,
|
|
1004
|
-
Node:
|
|
1004
|
+
Node: y.func.isRequired
|
|
1005
1005
|
}),
|
|
1006
|
-
suppressRefError:
|
|
1007
|
-
scrollIntoView:
|
|
1006
|
+
suppressRefError: y.bool,
|
|
1007
|
+
scrollIntoView: y.func,
|
|
1008
1008
|
// things we keep in state for uncontrolled components
|
|
1009
1009
|
// but can accept as props for controlled components
|
|
1010
1010
|
/* eslint-disable react/no-unused-prop-types */
|
|
1011
|
-
selectedItem:
|
|
1012
|
-
isOpen:
|
|
1013
|
-
inputValue:
|
|
1014
|
-
highlightedIndex:
|
|
1015
|
-
labelId:
|
|
1016
|
-
inputId:
|
|
1017
|
-
menuId:
|
|
1018
|
-
getItemId:
|
|
1011
|
+
selectedItem: y.any,
|
|
1012
|
+
isOpen: y.bool,
|
|
1013
|
+
inputValue: y.string,
|
|
1014
|
+
highlightedIndex: y.number,
|
|
1015
|
+
labelId: y.string,
|
|
1016
|
+
inputId: y.string,
|
|
1017
|
+
menuId: y.string,
|
|
1018
|
+
getItemId: y.func
|
|
1019
1019
|
/* eslint-enable react/no-unused-prop-types */
|
|
1020
1020
|
});
|
|
1021
1021
|
function _n(e, n) {
|
|
@@ -1049,11 +1049,11 @@ function No(e, n, r, i) {
|
|
|
1049
1049
|
function Ro(e, n) {
|
|
1050
1050
|
return n.changes;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Po(e) {
|
|
1053
1053
|
var n = e.selectedItem, r = e.itemToString;
|
|
1054
1054
|
return n ? r(n) + " has been selected." : "";
|
|
1055
1055
|
}
|
|
1056
|
-
var
|
|
1056
|
+
var ko = Ct(function(e, n) {
|
|
1057
1057
|
Ot(e(), n);
|
|
1058
1058
|
}, 200), Mo = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? wt : de, To = "useId" in st ? function(n) {
|
|
1059
1059
|
var r = n.id, i = n.labelId, o = n.menuId, t = n.getItemId, s = n.toggleButtonId, a = n.inputId, d = "downshift-" + st.useId();
|
|
@@ -1098,27 +1098,27 @@ function Nt(e) {
|
|
|
1098
1098
|
return n.current = e, n;
|
|
1099
1099
|
}
|
|
1100
1100
|
function or(e, n, r, i) {
|
|
1101
|
-
var o = Q(), t = Q(), s = ee(function(
|
|
1102
|
-
t.current = x,
|
|
1103
|
-
var S = e(
|
|
1101
|
+
var o = Q(), t = Q(), s = ee(function(_, x) {
|
|
1102
|
+
t.current = x, _ = Ye(_, x.props);
|
|
1103
|
+
var S = e(_, x), g = x.props.stateReducer(_, $({}, x, {
|
|
1104
1104
|
changes: S
|
|
1105
1105
|
}));
|
|
1106
1106
|
return g;
|
|
1107
|
-
}, [e]), a =
|
|
1107
|
+
}, [e]), a = Br(s, n, r), d = a[0], u = a[1], l = Nt(n), h = ee(function(_) {
|
|
1108
1108
|
return u($({
|
|
1109
1109
|
props: l.current
|
|
1110
|
-
},
|
|
1110
|
+
}, _));
|
|
1111
1111
|
}, [l]), b = t.current;
|
|
1112
1112
|
return de(function() {
|
|
1113
|
-
var
|
|
1114
|
-
x && Do(b,
|
|
1113
|
+
var _ = Ye(o.current, b == null ? void 0 : b.props), x = b && o.current && !i(_, d);
|
|
1114
|
+
x && Do(b, _, d), o.current = d;
|
|
1115
1115
|
}, [d, b, i]), [d, h];
|
|
1116
1116
|
}
|
|
1117
1117
|
function Vo(e, n, r, i) {
|
|
1118
1118
|
var o = or(e, n, r, i), t = o[0], s = o[1];
|
|
1119
1119
|
return [Ye(t, n), s];
|
|
1120
1120
|
}
|
|
1121
|
-
var
|
|
1121
|
+
var je = {
|
|
1122
1122
|
itemToString: function(n) {
|
|
1123
1123
|
return n ? String(n) : "";
|
|
1124
1124
|
},
|
|
@@ -1126,7 +1126,7 @@ var He = {
|
|
|
1126
1126
|
return n;
|
|
1127
1127
|
},
|
|
1128
1128
|
stateReducer: Ro,
|
|
1129
|
-
getA11ySelectionMessage:
|
|
1129
|
+
getA11ySelectionMessage: Po,
|
|
1130
1130
|
scrollIntoView: An,
|
|
1131
1131
|
environment: (
|
|
1132
1132
|
/* istanbul ignore next (ssr) */
|
|
@@ -1138,7 +1138,7 @@ function be(e, n, r) {
|
|
|
1138
1138
|
var i = e["default" + Dt(n)];
|
|
1139
1139
|
return i !== void 0 ? i : r[n];
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Ke(e, n, r) {
|
|
1142
1142
|
r === void 0 && (r = nr);
|
|
1143
1143
|
var i = e[n];
|
|
1144
1144
|
if (i !== void 0)
|
|
@@ -1147,7 +1147,7 @@ function je(e, n, r) {
|
|
|
1147
1147
|
return o !== void 0 ? o : be(e, n, r);
|
|
1148
1148
|
}
|
|
1149
1149
|
function Ao(e) {
|
|
1150
|
-
var n =
|
|
1150
|
+
var n = Ke(e, "selectedItem"), r = Ke(e, "isOpen"), i = Ke(e, "highlightedIndex"), o = Ke(e, "inputValue");
|
|
1151
1151
|
return {
|
|
1152
1152
|
highlightedIndex: i < 0 && n && r ? e.items.findIndex(function(t) {
|
|
1153
1153
|
return e.itemToKey(t) === e.itemToKey(n);
|
|
@@ -1227,7 +1227,7 @@ process.env.NODE_ENV !== "production" && (Rt = function() {
|
|
|
1227
1227
|
function In(e, n, r) {
|
|
1228
1228
|
var i = r.highlightedIndex, o = r.items, t = r.environment, s = ve(r, Oo), a = Xe();
|
|
1229
1229
|
de(function() {
|
|
1230
|
-
a || !(t != null && t.document) ||
|
|
1230
|
+
a || !(t != null && t.document) || ko(function() {
|
|
1231
1231
|
return e($({
|
|
1232
1232
|
highlightedIndex: i,
|
|
1233
1233
|
highlightedItem: o[i],
|
|
@@ -1242,8 +1242,8 @@ function jo(e) {
|
|
|
1242
1242
|
n < 0 || !r || !Object.keys(i.current).length || (a.current === !1 ? a.current = !0 : s(o(n), t));
|
|
1243
1243
|
}, [n]), a;
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1246
|
-
process.env.NODE_ENV !== "production" && (
|
|
1245
|
+
var Pt = me;
|
|
1246
|
+
process.env.NODE_ENV !== "production" && (Pt = function(n) {
|
|
1247
1247
|
var r = n.props, i = n.state, o = Q(r), t = Xe();
|
|
1248
1248
|
de(function() {
|
|
1249
1249
|
t || (St(i, o.current, r), o.current = r);
|
|
@@ -1276,41 +1276,41 @@ function Xe() {
|
|
|
1276
1276
|
}, []), e.current;
|
|
1277
1277
|
}
|
|
1278
1278
|
var ir = {
|
|
1279
|
-
environment:
|
|
1280
|
-
addEventListener:
|
|
1281
|
-
removeEventListener:
|
|
1282
|
-
document:
|
|
1283
|
-
createElement:
|
|
1284
|
-
getElementById:
|
|
1285
|
-
activeElement:
|
|
1286
|
-
body:
|
|
1279
|
+
environment: y.shape({
|
|
1280
|
+
addEventListener: y.func.isRequired,
|
|
1281
|
+
removeEventListener: y.func.isRequired,
|
|
1282
|
+
document: y.shape({
|
|
1283
|
+
createElement: y.func.isRequired,
|
|
1284
|
+
getElementById: y.func.isRequired,
|
|
1285
|
+
activeElement: y.any.isRequired,
|
|
1286
|
+
body: y.any.isRequired
|
|
1287
1287
|
}).isRequired,
|
|
1288
|
-
Node:
|
|
1288
|
+
Node: y.func.isRequired
|
|
1289
1289
|
}),
|
|
1290
|
-
itemToString:
|
|
1291
|
-
itemToKey:
|
|
1292
|
-
stateReducer:
|
|
1290
|
+
itemToString: y.func,
|
|
1291
|
+
itemToKey: y.func,
|
|
1292
|
+
stateReducer: y.func
|
|
1293
1293
|
}, sr = $({}, ir, {
|
|
1294
|
-
getA11yStatusMessage:
|
|
1295
|
-
highlightedIndex:
|
|
1296
|
-
defaultHighlightedIndex:
|
|
1297
|
-
initialHighlightedIndex:
|
|
1298
|
-
isOpen:
|
|
1299
|
-
defaultIsOpen:
|
|
1300
|
-
initialIsOpen:
|
|
1301
|
-
selectedItem:
|
|
1302
|
-
initialSelectedItem:
|
|
1303
|
-
defaultSelectedItem:
|
|
1304
|
-
id:
|
|
1305
|
-
labelId:
|
|
1306
|
-
menuId:
|
|
1307
|
-
getItemId:
|
|
1308
|
-
toggleButtonId:
|
|
1309
|
-
onSelectedItemChange:
|
|
1310
|
-
onHighlightedIndexChange:
|
|
1311
|
-
onStateChange:
|
|
1312
|
-
onIsOpenChange:
|
|
1313
|
-
scrollIntoView:
|
|
1294
|
+
getA11yStatusMessage: y.func,
|
|
1295
|
+
highlightedIndex: y.number,
|
|
1296
|
+
defaultHighlightedIndex: y.number,
|
|
1297
|
+
initialHighlightedIndex: y.number,
|
|
1298
|
+
isOpen: y.bool,
|
|
1299
|
+
defaultIsOpen: y.bool,
|
|
1300
|
+
initialIsOpen: y.bool,
|
|
1301
|
+
selectedItem: y.any,
|
|
1302
|
+
initialSelectedItem: y.any,
|
|
1303
|
+
defaultSelectedItem: y.any,
|
|
1304
|
+
id: y.string,
|
|
1305
|
+
labelId: y.string,
|
|
1306
|
+
menuId: y.string,
|
|
1307
|
+
getItemId: y.func,
|
|
1308
|
+
toggleButtonId: y.string,
|
|
1309
|
+
onSelectedItemChange: y.func,
|
|
1310
|
+
onHighlightedIndexChange: y.func,
|
|
1311
|
+
onStateChange: y.func,
|
|
1312
|
+
onIsOpenChange: y.func,
|
|
1313
|
+
scrollIntoView: y.func
|
|
1314
1314
|
});
|
|
1315
1315
|
function $o(e, n, r) {
|
|
1316
1316
|
var i = n.type, o = n.props, t;
|
|
@@ -1366,12 +1366,12 @@ function $o(e, n, r) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
return $({}, e, t);
|
|
1368
1368
|
}
|
|
1369
|
-
Fe(Fe({}, sr), { items:
|
|
1369
|
+
Fe(Fe({}, sr), { items: y.array.isRequired, isItemDisabled: y.func, getA11ySelectionMessage: y.func });
|
|
1370
1370
|
function Fo(e) {
|
|
1371
1371
|
var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
|
|
1372
1372
|
return n ? r ? r !== i ? "".concat(r, " result").concat(r === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
|
|
1373
1373
|
}
|
|
1374
|
-
Fe(Fe({},
|
|
1374
|
+
Fe(Fe({}, je), { getA11yStatusMessage: Fo, isItemDisabled: function() {
|
|
1375
1375
|
return !1;
|
|
1376
1376
|
} });
|
|
1377
1377
|
process.env.NODE_ENV;
|
|
@@ -1397,9 +1397,9 @@ process.env.NODE_ENV;
|
|
|
1397
1397
|
process.env.NODE_ENV;
|
|
1398
1398
|
process.env.NODE_ENV;
|
|
1399
1399
|
process.env.NODE_ENV;
|
|
1400
|
-
var
|
|
1400
|
+
var kt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, Mt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, Tt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, Vt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, At = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Ht = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, jt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Kt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, $t = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, ut = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, Ft = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, lr = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, ar = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, Lt = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, ur = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, dr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, cr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, pr = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, fr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, Bt = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, hr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, gr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, Ut = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, mr = /* @__PURE__ */ Object.freeze({
|
|
1401
1401
|
__proto__: null,
|
|
1402
|
-
InputKeyDownArrowDown:
|
|
1402
|
+
InputKeyDownArrowDown: kt,
|
|
1403
1403
|
InputKeyDownArrowUp: Mt,
|
|
1404
1404
|
InputKeyDownEscape: Tt,
|
|
1405
1405
|
InputKeyDownHome: Vt,
|
|
@@ -1421,7 +1421,7 @@ var Pt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
|
|
|
1421
1421
|
FunctionSelectItem: Bt,
|
|
1422
1422
|
FunctionSetInputValue: hr,
|
|
1423
1423
|
FunctionReset: gr,
|
|
1424
|
-
ControlledPropUpdatedSelectedItem:
|
|
1424
|
+
ControlledPropUpdatedSelectedItem: Ut
|
|
1425
1425
|
});
|
|
1426
1426
|
function Lo(e) {
|
|
1427
1427
|
var n = Ao(e), r = n.selectedItem, i = n.inputValue;
|
|
@@ -1430,24 +1430,24 @@ function Lo(e) {
|
|
|
1430
1430
|
});
|
|
1431
1431
|
}
|
|
1432
1432
|
var Bo = $({}, sr, {
|
|
1433
|
-
items:
|
|
1434
|
-
isItemDisabled:
|
|
1435
|
-
selectedItemChanged:
|
|
1436
|
-
getA11ySelectionMessage:
|
|
1437
|
-
inputValue:
|
|
1438
|
-
defaultInputValue:
|
|
1439
|
-
initialInputValue:
|
|
1440
|
-
inputId:
|
|
1441
|
-
onInputValueChange:
|
|
1433
|
+
items: y.array.isRequired,
|
|
1434
|
+
isItemDisabled: y.func,
|
|
1435
|
+
selectedItemChanged: y.func,
|
|
1436
|
+
getA11ySelectionMessage: y.func,
|
|
1437
|
+
inputValue: y.string,
|
|
1438
|
+
defaultInputValue: y.string,
|
|
1439
|
+
initialInputValue: y.string,
|
|
1440
|
+
inputId: y.string,
|
|
1441
|
+
onInputValueChange: y.func
|
|
1442
1442
|
});
|
|
1443
|
-
function
|
|
1443
|
+
function Uo(e, n, r, i) {
|
|
1444
1444
|
var o = Q(), t = or(e, n, r, i), s = t[0], a = t[1], d = Xe();
|
|
1445
1445
|
return de(function() {
|
|
1446
1446
|
if (lt(n, "selectedItem")) {
|
|
1447
1447
|
if (!d) {
|
|
1448
1448
|
var u;
|
|
1449
1449
|
n.selectedItemChanged === void 0 ? u = n.itemToKey(n.selectedItem) !== n.itemToKey(o.current) : (console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'), u = n.selectedItemChanged(o.current, n.selectedItem)), u && a({
|
|
1450
|
-
type:
|
|
1450
|
+
type: Ut,
|
|
1451
1451
|
inputValue: n.itemToString(n.selectedItem)
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
@@ -1457,9 +1457,9 @@ function zo(e, n, r, i) {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
var vr = me;
|
|
1459
1459
|
process.env.NODE_ENV !== "production" && (vr = function(n, r) {
|
|
1460
|
-
|
|
1460
|
+
y.checkPropTypes(Bo, n, "prop", r.name);
|
|
1461
1461
|
});
|
|
1462
|
-
var
|
|
1462
|
+
var zo = $({}, je, {
|
|
1463
1463
|
getA11yStatusMessage: jn,
|
|
1464
1464
|
isItemDisabled: function() {
|
|
1465
1465
|
return !1;
|
|
@@ -1476,9 +1476,9 @@ function Wo(e, n) {
|
|
|
1476
1476
|
inputValue: o.itemToString(o.items[n.index])
|
|
1477
1477
|
};
|
|
1478
1478
|
break;
|
|
1479
|
-
case
|
|
1479
|
+
case kt:
|
|
1480
1480
|
e.isOpen ? s = {
|
|
1481
|
-
highlightedIndex:
|
|
1481
|
+
highlightedIndex: ke(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
|
|
1482
1482
|
} : s = {
|
|
1483
1483
|
highlightedIndex: t && e.selectedItem == null ? -1 : We(o, e, 1),
|
|
1484
1484
|
isOpen: o.items.length >= 0
|
|
@@ -1486,7 +1486,7 @@ function Wo(e, n) {
|
|
|
1486
1486
|
break;
|
|
1487
1487
|
case Mt:
|
|
1488
1488
|
e.isOpen ? t ? s = yn(o, e.highlightedIndex) : s = {
|
|
1489
|
-
highlightedIndex:
|
|
1489
|
+
highlightedIndex: ke(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
|
|
1490
1490
|
} : s = {
|
|
1491
1491
|
highlightedIndex: We(o, e, -1),
|
|
1492
1492
|
isOpen: o.items.length >= 0
|
|
@@ -1506,12 +1506,12 @@ function Wo(e, n) {
|
|
|
1506
1506
|
break;
|
|
1507
1507
|
case Ht:
|
|
1508
1508
|
s = {
|
|
1509
|
-
highlightedIndex:
|
|
1509
|
+
highlightedIndex: ke(e.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
|
|
1510
1510
|
};
|
|
1511
1511
|
break;
|
|
1512
1512
|
case jt:
|
|
1513
1513
|
s = {
|
|
1514
|
-
highlightedIndex:
|
|
1514
|
+
highlightedIndex: ke(e.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
|
|
1515
1515
|
};
|
|
1516
1516
|
break;
|
|
1517
1517
|
case Vt:
|
|
@@ -1552,7 +1552,7 @@ function Wo(e, n) {
|
|
|
1552
1552
|
inputValue: o.itemToString(n.selectedItem)
|
|
1553
1553
|
};
|
|
1554
1554
|
break;
|
|
1555
|
-
case
|
|
1555
|
+
case Ut:
|
|
1556
1556
|
s = {
|
|
1557
1557
|
inputValue: n.inputValue
|
|
1558
1558
|
};
|
|
@@ -1566,19 +1566,19 @@ var qo = ["onMouseLeave", "refKey", "ref"], Yo = ["item", "index", "refKey", "re
|
|
|
1566
1566
|
ge.stateChangeTypes = mr;
|
|
1567
1567
|
function ge(e) {
|
|
1568
1568
|
e === void 0 && (e = {}), vr(e, ge);
|
|
1569
|
-
var n = $({},
|
|
1569
|
+
var n = $({}, zo, e), r = n.items, i = n.scrollIntoView, o = n.environment, t = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, a = n.itemToString, d = Uo(Wo, n, Lo, Ko), u = d[0], l = d[1], h = u.isOpen, b = u.highlightedIndex, _ = u.selectedItem, x = u.inputValue, S = Q(null), g = Q({}), D = Q(null), c = Q(null), f = Xe(), p = To(n), I = Q(), m = Nt({
|
|
1570
1570
|
state: u,
|
|
1571
1571
|
props: n
|
|
1572
1572
|
}), N = ee(function(T) {
|
|
1573
1573
|
return g.current[p.getItemId(T)];
|
|
1574
1574
|
}, [p]);
|
|
1575
1575
|
In(t, [h, b, x, r], $({
|
|
1576
|
-
previousResultCount:
|
|
1576
|
+
previousResultCount: I.current,
|
|
1577
1577
|
items: r,
|
|
1578
1578
|
environment: o,
|
|
1579
1579
|
itemToString: a
|
|
1580
|
-
}, u)), In(s, [
|
|
1581
|
-
previousResultCount:
|
|
1580
|
+
}, u)), In(s, [_], $({
|
|
1581
|
+
previousResultCount: I.current,
|
|
1582
1582
|
items: r,
|
|
1583
1583
|
environment: o,
|
|
1584
1584
|
itemToString: a
|
|
@@ -1591,16 +1591,16 @@ function ge(e) {
|
|
|
1591
1591
|
scrollIntoView: i,
|
|
1592
1592
|
getItemNodeFromIndex: N
|
|
1593
1593
|
});
|
|
1594
|
-
|
|
1594
|
+
Pt({
|
|
1595
1595
|
props: n,
|
|
1596
1596
|
state: u
|
|
1597
1597
|
}), de(function() {
|
|
1598
|
-
var T =
|
|
1598
|
+
var T = Ke(n, "isOpen");
|
|
1599
1599
|
T && D.current && D.current.focus();
|
|
1600
1600
|
}, []), de(function() {
|
|
1601
|
-
f || (
|
|
1601
|
+
f || (I.current = r.length);
|
|
1602
1602
|
});
|
|
1603
|
-
var
|
|
1603
|
+
var k = Ho(o, [c, S, D], ee(function() {
|
|
1604
1604
|
m.current.state.isOpen && l({
|
|
1605
1605
|
type: ut,
|
|
1606
1606
|
selectItem: !1
|
|
@@ -1612,11 +1612,11 @@ function ge(e) {
|
|
|
1612
1612
|
var T;
|
|
1613
1613
|
!h || !(o != null && o.document) || !(D != null && (T = D.current) != null && T.focus) || o.document.activeElement !== D.current && D.current.focus();
|
|
1614
1614
|
}, [h, o]);
|
|
1615
|
-
var O =
|
|
1615
|
+
var O = Te(function() {
|
|
1616
1616
|
return {
|
|
1617
1617
|
ArrowDown: function(A) {
|
|
1618
1618
|
A.preventDefault(), l({
|
|
1619
|
-
type:
|
|
1619
|
+
type: kt,
|
|
1620
1620
|
altKey: A.altKey
|
|
1621
1621
|
});
|
|
1622
1622
|
},
|
|
@@ -1659,32 +1659,32 @@ function ge(e) {
|
|
|
1659
1659
|
}));
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
|
-
}, [l, m]),
|
|
1662
|
+
}, [l, m]), P = ee(function(T) {
|
|
1663
1663
|
return $({
|
|
1664
1664
|
id: p.labelId,
|
|
1665
1665
|
htmlFor: p.inputId
|
|
1666
1666
|
}, T);
|
|
1667
1667
|
}, [p]), V = ee(function(T, A) {
|
|
1668
|
-
var w, H = T === void 0 ? {} : T,
|
|
1669
|
-
return M("getMenuProps", he, B, S), $((w = {}, w[B] = Re(
|
|
1668
|
+
var w, H = T === void 0 ? {} : T, z = H.onMouseLeave, q = H.refKey, B = q === void 0 ? "ref" : q, le = H.ref, ae = ve(H, qo), ue = A === void 0 ? {} : A, C = ue.suppressRefError, he = C === void 0 ? !1 : C;
|
|
1669
|
+
return M("getMenuProps", he, B, S), $((w = {}, w[B] = Re(le, function(ie) {
|
|
1670
1670
|
S.current = ie;
|
|
1671
|
-
}), w.id = p.menuId, w.role = "listbox", w["aria-labelledby"] =
|
|
1671
|
+
}), w.id = p.menuId, w.role = "listbox", w["aria-labelledby"] = ae && ae["aria-label"] ? void 0 : "" + p.labelId, w.onMouseLeave = re(z, function() {
|
|
1672
1672
|
l({
|
|
1673
1673
|
type: lr
|
|
1674
1674
|
});
|
|
1675
|
-
}), w),
|
|
1675
|
+
}), w), ae);
|
|
1676
1676
|
}, [l, M, p]), R = ee(function(T) {
|
|
1677
|
-
var A, w, H = T === void 0 ? {} : T,
|
|
1677
|
+
var A, w, H = T === void 0 ? {} : T, z = H.item, q = H.index, B = H.refKey, le = B === void 0 ? "ref" : B, ae = H.ref, ue = H.onMouseMove, C = H.onMouseDown, he = H.onClick;
|
|
1678
1678
|
H.onPress;
|
|
1679
|
-
var ie = H.disabled,
|
|
1679
|
+
var ie = H.disabled, Ae = ve(H, Yo);
|
|
1680
1680
|
ie !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
1681
|
-
var
|
|
1682
|
-
|
|
1681
|
+
var Ue = m.current, Ze = Ue.props, we = Ue.state, et = rr(z, q, Ze.items, "Pass either item or index to getItemProps!"), ft = et[0], Ee = et[1], ze = Ze.isItemDisabled(ft, Ee), ht = "onClick", tt = he, Oe = function() {
|
|
1682
|
+
k.isTouchEnd || Ee === we.highlightedIndex || (E.current = !1, l({
|
|
1683
1683
|
type: ar,
|
|
1684
1684
|
index: Ee,
|
|
1685
|
-
disabled:
|
|
1685
|
+
disabled: ze
|
|
1686
1686
|
}));
|
|
1687
|
-
},
|
|
1687
|
+
}, Pe = function() {
|
|
1688
1688
|
l({
|
|
1689
1689
|
type: Lt,
|
|
1690
1690
|
index: Ee
|
|
@@ -1692,29 +1692,29 @@ function ge(e) {
|
|
|
1692
1692
|
}, De = function(Tr) {
|
|
1693
1693
|
return Tr.preventDefault();
|
|
1694
1694
|
};
|
|
1695
|
-
return $((A = {}, A[
|
|
1695
|
+
return $((A = {}, A[le] = Re(ae, function(ye) {
|
|
1696
1696
|
ye && (g.current[p.getItemId(Ee)] = ye);
|
|
1697
|
-
}), A["aria-disabled"] =
|
|
1697
|
+
}), A["aria-disabled"] = ze, A["aria-selected"] = "" + (Ee === we.highlightedIndex), A.id = p.getItemId(Ee), A.role = "option", A), !ze && (w = {}, w[ht] = re(tt, Pe), w), {
|
|
1698
1698
|
onMouseMove: re(ue, Oe),
|
|
1699
1699
|
onMouseDown: re(C, De)
|
|
1700
|
-
},
|
|
1701
|
-
}, [l, p, m,
|
|
1700
|
+
}, Ae);
|
|
1701
|
+
}, [l, p, m, k, E]), F = ee(function(T) {
|
|
1702
1702
|
var A, w = T === void 0 ? {} : T, H = w.onClick;
|
|
1703
1703
|
w.onPress;
|
|
1704
|
-
var
|
|
1704
|
+
var z = w.refKey, q = z === void 0 ? "ref" : z, B = w.ref, le = ve(w, Go), ae = m.current.state, ue = function() {
|
|
1705
1705
|
l({
|
|
1706
1706
|
type: ur
|
|
1707
1707
|
});
|
|
1708
1708
|
};
|
|
1709
1709
|
return $((A = {}, A[q] = Re(B, function(C) {
|
|
1710
1710
|
c.current = C;
|
|
1711
|
-
}), A["aria-controls"] = p.menuId, A["aria-expanded"] =
|
|
1711
|
+
}), A["aria-controls"] = p.menuId, A["aria-expanded"] = ae.isOpen, A.id = p.toggleButtonId, A.tabIndex = -1, A), !le.disabled && $({}, {
|
|
1712
1712
|
onClick: re(H, ue)
|
|
1713
|
-
}),
|
|
1713
|
+
}), le);
|
|
1714
1714
|
}, [l, m, p]), L = ee(function(T, A) {
|
|
1715
|
-
var w, H = T === void 0 ? {} : T,
|
|
1715
|
+
var w, H = T === void 0 ? {} : T, z = H.onKeyDown, q = H.onChange, B = H.onInput, le = H.onBlur;
|
|
1716
1716
|
H.onChangeText;
|
|
1717
|
-
var
|
|
1717
|
+
var ae = H.onClick, ue = H.refKey, C = ue === void 0 ? "ref" : ue, he = H.ref, ie = ve(H, Xo), Ae = A === void 0 ? {} : A, Ue = Ae.suppressRefError, Ze = Ue === void 0 ? !1 : Ue;
|
|
1718
1718
|
M("getInputProps", Ze, C, D);
|
|
1719
1719
|
var we = m.current.state, et = function(De) {
|
|
1720
1720
|
var ye = Ge(De);
|
|
@@ -1725,30 +1725,30 @@ function ge(e) {
|
|
|
1725
1725
|
inputValue: De.target.value
|
|
1726
1726
|
});
|
|
1727
1727
|
}, Ee = function(De) {
|
|
1728
|
-
if (o != null && o.document && we.isOpen && !
|
|
1728
|
+
if (o != null && o.document && we.isOpen && !k.isMouseDown) {
|
|
1729
1729
|
var ye = De.relatedTarget === null && o.document.activeElement !== o.document.body;
|
|
1730
1730
|
l({
|
|
1731
1731
|
type: ut,
|
|
1732
1732
|
selectItem: !ye
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
|
-
},
|
|
1735
|
+
}, ze = function() {
|
|
1736
1736
|
l({
|
|
1737
1737
|
type: Ft
|
|
1738
1738
|
});
|
|
1739
1739
|
}, ht = "onChange", tt = {};
|
|
1740
1740
|
if (!ie.disabled) {
|
|
1741
1741
|
var Oe;
|
|
1742
|
-
tt = (Oe = {}, Oe[ht] = re(q, B, ft), Oe.onKeyDown = re(
|
|
1742
|
+
tt = (Oe = {}, Oe[ht] = re(q, B, ft), Oe.onKeyDown = re(z, et), Oe.onBlur = re(le, Ee), Oe.onClick = re(ae, ze), Oe);
|
|
1743
1743
|
}
|
|
1744
|
-
return $((w = {}, w[C] = Re(he, function(
|
|
1745
|
-
D.current =
|
|
1744
|
+
return $((w = {}, w[C] = Re(he, function(Pe) {
|
|
1745
|
+
D.current = Pe;
|
|
1746
1746
|
}), w["aria-activedescendant"] = we.isOpen && we.highlightedIndex > -1 ? p.getItemId(we.highlightedIndex) : "", w["aria-autocomplete"] = "list", w["aria-controls"] = p.menuId, w["aria-expanded"] = we.isOpen, w["aria-labelledby"] = ie && ie["aria-label"] ? void 0 : p.labelId, w.autoComplete = "off", w.id = p.inputId, w.role = "combobox", w.value = we.inputValue, w), tt, ie);
|
|
1747
|
-
}, [l, p, o, O, m,
|
|
1747
|
+
}, [l, p, o, O, m, k, M]), K = ee(function() {
|
|
1748
1748
|
l({
|
|
1749
1749
|
type: dr
|
|
1750
1750
|
});
|
|
1751
|
-
}, [l]),
|
|
1751
|
+
}, [l]), U = ee(function() {
|
|
1752
1752
|
l({
|
|
1753
1753
|
type: pr
|
|
1754
1754
|
});
|
|
@@ -1779,14 +1779,14 @@ function ge(e) {
|
|
|
1779
1779
|
return {
|
|
1780
1780
|
// prop getters.
|
|
1781
1781
|
getItemProps: R,
|
|
1782
|
-
getLabelProps:
|
|
1782
|
+
getLabelProps: P,
|
|
1783
1783
|
getMenuProps: V,
|
|
1784
1784
|
getInputProps: L,
|
|
1785
1785
|
getToggleButtonProps: F,
|
|
1786
1786
|
// actions.
|
|
1787
1787
|
toggleMenu: K,
|
|
1788
1788
|
openMenu: Z,
|
|
1789
|
-
closeMenu:
|
|
1789
|
+
closeMenu: U,
|
|
1790
1790
|
setHighlightedIndex: j,
|
|
1791
1791
|
setInputValue: Y,
|
|
1792
1792
|
selectItem: W,
|
|
@@ -1794,7 +1794,7 @@ function ge(e) {
|
|
|
1794
1794
|
// state.
|
|
1795
1795
|
highlightedIndex: b,
|
|
1796
1796
|
isOpen: h,
|
|
1797
|
-
selectedItem:
|
|
1797
|
+
selectedItem: _,
|
|
1798
1798
|
inputValue: x
|
|
1799
1799
|
};
|
|
1800
1800
|
}
|
|
@@ -1803,7 +1803,7 @@ var _r = {
|
|
|
1803
1803
|
selectedItems: []
|
|
1804
1804
|
};
|
|
1805
1805
|
function xn(e, n) {
|
|
1806
|
-
return
|
|
1806
|
+
return Ke(e, n, _r);
|
|
1807
1807
|
}
|
|
1808
1808
|
function bn(e, n) {
|
|
1809
1809
|
return be(e, n, _r);
|
|
@@ -1832,32 +1832,32 @@ function Zo(e, n) {
|
|
|
1832
1832
|
return e.selectedItems === n.selectedItems && e.activeIndex === n.activeIndex;
|
|
1833
1833
|
}
|
|
1834
1834
|
var ei = $({}, ir, {
|
|
1835
|
-
selectedItems:
|
|
1836
|
-
initialSelectedItems:
|
|
1837
|
-
defaultSelectedItems:
|
|
1838
|
-
getA11yRemovalMessage:
|
|
1839
|
-
activeIndex:
|
|
1840
|
-
initialActiveIndex:
|
|
1841
|
-
defaultActiveIndex:
|
|
1842
|
-
onActiveIndexChange:
|
|
1843
|
-
onSelectedItemsChange:
|
|
1844
|
-
keyNavigationNext:
|
|
1845
|
-
keyNavigationPrevious:
|
|
1835
|
+
selectedItems: y.array,
|
|
1836
|
+
initialSelectedItems: y.array,
|
|
1837
|
+
defaultSelectedItems: y.array,
|
|
1838
|
+
getA11yRemovalMessage: y.func,
|
|
1839
|
+
activeIndex: y.number,
|
|
1840
|
+
initialActiveIndex: y.number,
|
|
1841
|
+
defaultActiveIndex: y.number,
|
|
1842
|
+
onActiveIndexChange: y.func,
|
|
1843
|
+
onSelectedItemsChange: y.func,
|
|
1844
|
+
keyNavigationNext: y.string,
|
|
1845
|
+
keyNavigationPrevious: y.string
|
|
1846
1846
|
}), ti = {
|
|
1847
|
-
itemToString:
|
|
1848
|
-
itemToKey:
|
|
1849
|
-
stateReducer:
|
|
1850
|
-
environment:
|
|
1847
|
+
itemToString: je.itemToString,
|
|
1848
|
+
itemToKey: je.itemToKey,
|
|
1849
|
+
stateReducer: je.stateReducer,
|
|
1850
|
+
environment: je.environment,
|
|
1851
1851
|
getA11yRemovalMessage: Qo,
|
|
1852
1852
|
keyNavigationNext: "ArrowRight",
|
|
1853
1853
|
keyNavigationPrevious: "ArrowLeft"
|
|
1854
1854
|
}, Ir = me;
|
|
1855
1855
|
process.env.NODE_ENV !== "production" && (Ir = function(n, r) {
|
|
1856
|
-
|
|
1856
|
+
y.checkPropTypes(ei, n, "prop", r.name);
|
|
1857
1857
|
});
|
|
1858
|
-
var
|
|
1858
|
+
var zt = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, Wt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, qt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_backspace__" : 2, Yt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_next__" : 3, Gt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_previous__" : 4, Xt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_navigation_previous__" : 5, Jt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_backspace__" : 6, Qt = process.env.NODE_ENV !== "production" ? "__dropdown_click__" : 7, Zt = process.env.NODE_ENV !== "production" ? "__function_add_selected_item__" : 8, en = process.env.NODE_ENV !== "production" ? "__function_remove_selected_item__" : 9, tn = process.env.NODE_ENV !== "production" ? "__function_set_selected_items__" : 10, nn = process.env.NODE_ENV !== "production" ? "__function_set_active_index__" : 11, rn = process.env.NODE_ENV !== "production" ? "__function_reset__" : 12, ni = /* @__PURE__ */ Object.freeze({
|
|
1859
1859
|
__proto__: null,
|
|
1860
|
-
SelectedItemClick:
|
|
1860
|
+
SelectedItemClick: zt,
|
|
1861
1861
|
SelectedItemKeyDownDelete: Wt,
|
|
1862
1862
|
SelectedItemKeyDownBackspace: qt,
|
|
1863
1863
|
SelectedItemKeyDownNavigationNext: Yt,
|
|
@@ -1874,7 +1874,7 @@ var Ut = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0,
|
|
|
1874
1874
|
function ri(e, n) {
|
|
1875
1875
|
var r = n.type, i = n.index, o = n.props, t = n.selectedItem, s = e.activeIndex, a = e.selectedItems, d;
|
|
1876
1876
|
switch (r) {
|
|
1877
|
-
case
|
|
1877
|
+
case zt:
|
|
1878
1878
|
d = {
|
|
1879
1879
|
activeIndex: i
|
|
1880
1880
|
};
|
|
@@ -1941,9 +1941,9 @@ function ri(e, n) {
|
|
|
1941
1941
|
break;
|
|
1942
1942
|
}
|
|
1943
1943
|
case nn: {
|
|
1944
|
-
var
|
|
1944
|
+
var _ = n.activeIndex;
|
|
1945
1945
|
d = {
|
|
1946
|
-
activeIndex:
|
|
1946
|
+
activeIndex: _
|
|
1947
1947
|
};
|
|
1948
1948
|
break;
|
|
1949
1949
|
}
|
|
@@ -1962,7 +1962,7 @@ var oi = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], ii
|
|
|
1962
1962
|
Ne.stateChangeTypes = ni;
|
|
1963
1963
|
function Ne(e) {
|
|
1964
1964
|
e === void 0 && (e = {}), Ir(e, Ne);
|
|
1965
|
-
var n = $({}, ti, e), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, t = n.keyNavigationNext, s = n.keyNavigationPrevious, a = Vo(ri, n, Jo, Zo), d = a[0], u = a[1], l = d.activeIndex, h = d.selectedItems, b = Xe(),
|
|
1965
|
+
var n = $({}, ti, e), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, t = n.keyNavigationNext, s = n.keyNavigationPrevious, a = Vo(ri, n, Jo, Zo), d = a[0], u = a[1], l = d.activeIndex, h = d.selectedItems, b = Xe(), _ = Q(null), x = Q(h), S = Q();
|
|
1966
1966
|
S.current = [];
|
|
1967
1967
|
var g = Nt({
|
|
1968
1968
|
state: d,
|
|
@@ -1971,9 +1971,9 @@ function Ne(e) {
|
|
|
1971
1971
|
de(function() {
|
|
1972
1972
|
if (!(b || !(o != null && o.document))) {
|
|
1973
1973
|
if (h.length < x.current.length) {
|
|
1974
|
-
var O = x.current.find(function(
|
|
1974
|
+
var O = x.current.find(function(P) {
|
|
1975
1975
|
return h.findIndex(function(V) {
|
|
1976
|
-
return n.itemToKey(V) === n.itemToKey(
|
|
1976
|
+
return n.itemToKey(V) === n.itemToKey(P);
|
|
1977
1977
|
}) < 0;
|
|
1978
1978
|
});
|
|
1979
1979
|
Ot(r({
|
|
@@ -1987,12 +1987,12 @@ function Ne(e) {
|
|
|
1987
1987
|
x.current = h;
|
|
1988
1988
|
}
|
|
1989
1989
|
}, [h.length]), de(function() {
|
|
1990
|
-
b || (l === -1 &&
|
|
1991
|
-
}, [l]),
|
|
1990
|
+
b || (l === -1 && _.current ? _.current.focus() : S.current[l] && S.current[l].focus());
|
|
1991
|
+
}, [l]), Pt({
|
|
1992
1992
|
props: n,
|
|
1993
1993
|
state: d
|
|
1994
1994
|
});
|
|
1995
|
-
var D = Rt("getDropdownProps"), c =
|
|
1995
|
+
var D = Rt("getDropdownProps"), c = Te(function() {
|
|
1996
1996
|
var O;
|
|
1997
1997
|
return O = {}, O[s] = function() {
|
|
1998
1998
|
u({
|
|
@@ -2011,10 +2011,10 @@ function Ne(e) {
|
|
|
2011
2011
|
type: qt
|
|
2012
2012
|
});
|
|
2013
2013
|
}, O;
|
|
2014
|
-
}, [u, t, s]), f =
|
|
2014
|
+
}, [u, t, s]), f = Te(function() {
|
|
2015
2015
|
var O;
|
|
2016
|
-
return O = {}, O[s] = function(
|
|
2017
|
-
wn(
|
|
2016
|
+
return O = {}, O[s] = function(P) {
|
|
2017
|
+
wn(P) && u({
|
|
2018
2018
|
type: Xt
|
|
2019
2019
|
});
|
|
2020
2020
|
}, O.Backspace = function(V) {
|
|
@@ -2023,21 +2023,21 @@ function Ne(e) {
|
|
|
2023
2023
|
});
|
|
2024
2024
|
}, O;
|
|
2025
2025
|
}, [u, s]), p = ee(function(O) {
|
|
2026
|
-
var
|
|
2026
|
+
var P, V = O === void 0 ? {} : O, R = V.refKey, F = R === void 0 ? "ref" : R, L = V.ref, K = V.onClick, U = V.onKeyDown, Z = V.selectedItem, j = V.index, W = ve(V, oi), Y = g.current.state, oe = rr(Z, j, Y.selectedItems, "Pass either item or index to getSelectedItemProps!"), T = oe[1], A = T > -1 && T === Y.activeIndex, w = function() {
|
|
2027
2027
|
u({
|
|
2028
|
-
type:
|
|
2028
|
+
type: zt,
|
|
2029
2029
|
index: T
|
|
2030
2030
|
});
|
|
2031
2031
|
}, H = function(q) {
|
|
2032
2032
|
var B = Ge(q);
|
|
2033
2033
|
B && c[B] && c[B](q);
|
|
2034
2034
|
};
|
|
2035
|
-
return $((
|
|
2036
|
-
|
|
2037
|
-
}),
|
|
2038
|
-
}, [u, g, c]),
|
|
2039
|
-
var V, R = O === void 0 ? {} : O, F = R.refKey, L = F === void 0 ? "ref" : F, K = R.ref,
|
|
2040
|
-
D("getDropdownProps", A, L,
|
|
2035
|
+
return $((P = {}, P[F] = Re(L, function(z) {
|
|
2036
|
+
z && S.current.push(z);
|
|
2037
|
+
}), P.tabIndex = A ? 0 : -1, P.onClick = re(K, w), P.onKeyDown = re(U, H), P), W);
|
|
2038
|
+
}, [u, g, c]), I = ee(function(O, P) {
|
|
2039
|
+
var V, R = O === void 0 ? {} : O, F = R.refKey, L = F === void 0 ? "ref" : F, K = R.ref, U = R.onKeyDown, Z = R.onClick, j = R.preventKeyAction, W = j === void 0 ? !1 : j, Y = ve(R, ii), oe = P === void 0 ? {} : P, T = oe.suppressRefError, A = T === void 0 ? !1 : T;
|
|
2040
|
+
D("getDropdownProps", A, L, _);
|
|
2041
2041
|
var w = function(q) {
|
|
2042
2042
|
var B = Ge(q);
|
|
2043
2043
|
B && f[B] && f[B](q);
|
|
@@ -2046,10 +2046,10 @@ function Ne(e) {
|
|
|
2046
2046
|
type: Qt
|
|
2047
2047
|
});
|
|
2048
2048
|
};
|
|
2049
|
-
return $((V = {}, V[L] = Re(K, function(
|
|
2050
|
-
|
|
2049
|
+
return $((V = {}, V[L] = Re(K, function(z) {
|
|
2050
|
+
z && (_.current = z);
|
|
2051
2051
|
}), V), !W && {
|
|
2052
|
-
onKeyDown: re(
|
|
2052
|
+
onKeyDown: re(U, w),
|
|
2053
2053
|
onClick: re(Z, H)
|
|
2054
2054
|
}, Y);
|
|
2055
2055
|
}, [u, f, D]), m = ee(function(O) {
|
|
@@ -2067,7 +2067,7 @@ function Ne(e) {
|
|
|
2067
2067
|
type: tn,
|
|
2068
2068
|
selectedItems: O
|
|
2069
2069
|
});
|
|
2070
|
-
}, [u]),
|
|
2070
|
+
}, [u]), k = ee(function(O) {
|
|
2071
2071
|
u({
|
|
2072
2072
|
type: nn,
|
|
2073
2073
|
activeIndex: O
|
|
@@ -2079,11 +2079,11 @@ function Ne(e) {
|
|
|
2079
2079
|
}, [u]);
|
|
2080
2080
|
return {
|
|
2081
2081
|
getSelectedItemProps: p,
|
|
2082
|
-
getDropdownProps:
|
|
2082
|
+
getDropdownProps: I,
|
|
2083
2083
|
addSelectedItem: m,
|
|
2084
2084
|
removeSelectedItem: N,
|
|
2085
2085
|
setSelectedItems: E,
|
|
2086
|
-
setActiveIndex:
|
|
2086
|
+
setActiveIndex: k,
|
|
2087
2087
|
reset: M,
|
|
2088
2088
|
selectedItems: h,
|
|
2089
2089
|
activeIndex: l
|
|
@@ -2595,10 +2595,10 @@ function on(e, n, r) {
|
|
|
2595
2595
|
});
|
|
2596
2596
|
function d(u, l, h) {
|
|
2597
2597
|
const b = fi(l, i, n, r), {
|
|
2598
|
-
rank:
|
|
2598
|
+
rank: _,
|
|
2599
2599
|
keyThreshold: x = o
|
|
2600
2600
|
} = b;
|
|
2601
|
-
return
|
|
2601
|
+
return _ >= x && u.push({
|
|
2602
2602
|
...b,
|
|
2603
2603
|
item: l,
|
|
2604
2604
|
index: h
|
|
@@ -2625,13 +2625,13 @@ function fi(e, n, r, i) {
|
|
|
2625
2625
|
keyThreshold: h
|
|
2626
2626
|
} = t, {
|
|
2627
2627
|
itemValue: b,
|
|
2628
|
-
attributes:
|
|
2628
|
+
attributes: _
|
|
2629
2629
|
} = s, x = En(b, r, i), S = u;
|
|
2630
2630
|
const {
|
|
2631
2631
|
minRanking: g,
|
|
2632
2632
|
maxRanking: D,
|
|
2633
2633
|
threshold: c
|
|
2634
|
-
} =
|
|
2634
|
+
} = _;
|
|
2635
2635
|
return x < g && x >= fe.MATCHES ? x = g : x > D && (x = D), x > d && (d = x, l = a, h = c, S = b), {
|
|
2636
2636
|
rankedValue: S,
|
|
2637
2637
|
rank: d,
|
|
@@ -2767,16 +2767,16 @@ function xi({
|
|
|
2767
2767
|
matchReferenceWidth: l,
|
|
2768
2768
|
fixedWidth: h,
|
|
2769
2769
|
disableCaret: b,
|
|
2770
|
-
noPadding:
|
|
2770
|
+
noPadding: _,
|
|
2771
2771
|
disableShift: x,
|
|
2772
2772
|
disableFlip: S,
|
|
2773
2773
|
disableFlipFallback: g,
|
|
2774
2774
|
disableAutoUpdate: D,
|
|
2775
2775
|
disableFocusLock: c
|
|
2776
2776
|
} = {}) {
|
|
2777
|
-
const [f, p] = J(e), [
|
|
2777
|
+
const [f, p] = J(e), [I, m] = J(), [N, E] = J(), k = i ?? f, M = o ?? p, O = Q(null), P = qr({
|
|
2778
2778
|
placement: n,
|
|
2779
|
-
open:
|
|
2779
|
+
open: k,
|
|
2780
2780
|
onOpenChange: M,
|
|
2781
2781
|
whileElementsMounted: D ? void 0 : Yr,
|
|
2782
2782
|
middleware: [
|
|
@@ -2811,7 +2811,7 @@ function xi({
|
|
|
2811
2811
|
}),
|
|
2812
2812
|
eo({ element: b ? null : O, padding: 5 })
|
|
2813
2813
|
]
|
|
2814
|
-
}), V =
|
|
2814
|
+
}), V = P.context, R = to(V, {
|
|
2815
2815
|
enabled: i == null && !d
|
|
2816
2816
|
}), F = no(V, {
|
|
2817
2817
|
enabled: i == null && !!d,
|
|
@@ -2819,22 +2819,22 @@ function xi({
|
|
|
2819
2819
|
}), L = oo(V, {
|
|
2820
2820
|
escapeKey: !a,
|
|
2821
2821
|
outsidePress: () => s ? !1 : (t == null || t(), !0)
|
|
2822
|
-
}), K = io(V),
|
|
2823
|
-
return
|
|
2822
|
+
}), K = io(V), U = so([R, F, L, K]);
|
|
2823
|
+
return Te(
|
|
2824
2824
|
() => ({
|
|
2825
|
-
open:
|
|
2825
|
+
open: k,
|
|
2826
2826
|
setOpen: M,
|
|
2827
2827
|
onClose: t,
|
|
2828
|
-
...
|
|
2829
|
-
...
|
|
2828
|
+
...U,
|
|
2829
|
+
...P,
|
|
2830
2830
|
modal: r,
|
|
2831
|
-
labelId:
|
|
2831
|
+
labelId: I,
|
|
2832
2832
|
descriptionId: N,
|
|
2833
2833
|
setLabelId: m,
|
|
2834
2834
|
setDescriptionId: E,
|
|
2835
2835
|
arrowRef: O,
|
|
2836
2836
|
disableCaret: b,
|
|
2837
|
-
noPadding:
|
|
2837
|
+
noPadding: _,
|
|
2838
2838
|
fillAvailableHeight: u,
|
|
2839
2839
|
matchReferenceWidth: l,
|
|
2840
2840
|
fixedWidth: h,
|
|
@@ -2843,16 +2843,16 @@ function xi({
|
|
|
2843
2843
|
disableFocusLock: c
|
|
2844
2844
|
}),
|
|
2845
2845
|
[
|
|
2846
|
-
|
|
2846
|
+
k,
|
|
2847
2847
|
M,
|
|
2848
2848
|
t,
|
|
2849
|
-
|
|
2850
|
-
|
|
2849
|
+
U,
|
|
2850
|
+
P,
|
|
2851
2851
|
r,
|
|
2852
|
-
|
|
2852
|
+
I,
|
|
2853
2853
|
N,
|
|
2854
2854
|
b,
|
|
2855
|
-
|
|
2855
|
+
_,
|
|
2856
2856
|
u,
|
|
2857
2857
|
l,
|
|
2858
2858
|
h,
|
|
@@ -2863,7 +2863,7 @@ function xi({
|
|
|
2863
2863
|
);
|
|
2864
2864
|
}
|
|
2865
2865
|
const wr = dt(null), Je = () => {
|
|
2866
|
-
const e =
|
|
2866
|
+
const e = Ve(wr);
|
|
2867
2867
|
if (e == null)
|
|
2868
2868
|
throw new Error("Popover components must be wrapped in <Popover />");
|
|
2869
2869
|
return e;
|
|
@@ -2873,10 +2873,10 @@ const wr = dt(null), Je = () => {
|
|
|
2873
2873
|
"data-state": r.open ? "open" : "closed",
|
|
2874
2874
|
...r.getReferenceProps({ ref: o })
|
|
2875
2875
|
});
|
|
2876
|
-
}, wi = "
|
|
2876
|
+
}, wi = "_content_x4y1q_4", Ei = "_arrow_x4y1q_26", mt = {
|
|
2877
2877
|
content: wi,
|
|
2878
2878
|
arrow: Ei,
|
|
2879
|
-
"no-padding": "_no-
|
|
2879
|
+
"no-padding": "_no-padding_x4y1q_37"
|
|
2880
2880
|
}, Ci = ce(
|
|
2881
2881
|
function({ className: e, style: n, ...r }, i) {
|
|
2882
2882
|
const {
|
|
@@ -2891,26 +2891,26 @@ const wr = dt(null), Je = () => {
|
|
|
2891
2891
|
} = Je(), b = Be([h.refs.setFloating, i]);
|
|
2892
2892
|
if (!o.open)
|
|
2893
2893
|
return null;
|
|
2894
|
-
const
|
|
2894
|
+
const _ = se(e, mt.content, {
|
|
2895
2895
|
[mt["no-padding"]]: d
|
|
2896
2896
|
}), x = (S) => {
|
|
2897
2897
|
S.code === "Escape" && (u == null || u());
|
|
2898
2898
|
};
|
|
2899
|
-
return /* @__PURE__ */ v.jsx(
|
|
2900
|
-
|
|
2899
|
+
return /* @__PURE__ */ v.jsx(Ur, { children: /* @__PURE__ */ v.jsx(
|
|
2900
|
+
zr,
|
|
2901
2901
|
{
|
|
2902
2902
|
context: o,
|
|
2903
2903
|
modal: h.modal,
|
|
2904
2904
|
order: ["reference", "content"],
|
|
2905
2905
|
disabled: l,
|
|
2906
|
-
children: /* @__PURE__ */ v.jsx(
|
|
2906
|
+
children: /* @__PURE__ */ v.jsx(Kr, { theme: t, mode: s, children: /* @__PURE__ */ v.jsxs(
|
|
2907
2907
|
"div",
|
|
2908
2908
|
{
|
|
2909
2909
|
ref: b,
|
|
2910
2910
|
style: { ...h.floatingStyles, ...n },
|
|
2911
2911
|
"aria-labelledby": h.labelId,
|
|
2912
2912
|
"aria-describedby": h.descriptionId,
|
|
2913
|
-
className:
|
|
2913
|
+
className: _,
|
|
2914
2914
|
...h.getFloatingProps(r),
|
|
2915
2915
|
onKeyDown: x,
|
|
2916
2916
|
role: "presentation",
|
|
@@ -2969,7 +2969,7 @@ function Di({
|
|
|
2969
2969
|
modal: n,
|
|
2970
2970
|
...r
|
|
2971
2971
|
}) {
|
|
2972
|
-
const i = xi({ modal: n, ...r }), { theme: o, mode: t = "light" } =
|
|
2972
|
+
const i = xi({ modal: n, ...r }), { theme: o, mode: t = "light" } = Ve($r), s = Te(
|
|
2973
2973
|
() => ({ ...i, theme: o, mode: t }),
|
|
2974
2974
|
[t, i, o]
|
|
2975
2975
|
);
|
|
@@ -2980,15 +2980,15 @@ const sn = Object.assign(Di, {
|
|
|
2980
2980
|
Close: Si,
|
|
2981
2981
|
Content: Ci,
|
|
2982
2982
|
Button: Oi
|
|
2983
|
-
}), Er = (e) => /* @__PURE__ */ _e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ _e.createElement("path", { d: "M9.29 6.71a.996.996 0 0 0 0 1.41L13.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z" })), Ni = "_combobox_1jt3w_2", Ri = "_input_1jt3w_30",
|
|
2983
|
+
}), Er = (e) => /* @__PURE__ */ _e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ _e.createElement("path", { d: "M9.29 6.71a.996.996 0 0 0 0 1.41L13.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z" })), Ni = "_combobox_1jt3w_2", Ri = "_input_1jt3w_30", Pi = "_error_1jt3w_61", ki = "_small_1jt3w_86", Mi = "_large_1jt3w_89", Ti = "_disabled_1jt3w_113", Vi = "_chip_1jt3w_162", Ai = "_prefix_1jt3w_217", Hi = "_suffix_1jt3w_218", ji = "_empty_1jt3w_260", te = {
|
|
2984
2984
|
combobox: Ni,
|
|
2985
2985
|
"search-field": "_search-field_1jt3w_6",
|
|
2986
2986
|
"popover-content": "_popover-content_1jt3w_21",
|
|
2987
2987
|
"input-wrapper": "_input-wrapper_1jt3w_30",
|
|
2988
2988
|
input: Ri,
|
|
2989
|
-
error:
|
|
2989
|
+
error: Pi,
|
|
2990
2990
|
"buttons-wrapper": "_buttons-wrapper_1jt3w_69",
|
|
2991
|
-
small:
|
|
2991
|
+
small: ki,
|
|
2992
2992
|
large: Mi,
|
|
2993
2993
|
"close-button-wrapper": "_close-button-wrapper_1jt3w_93",
|
|
2994
2994
|
"close-button": "_close-button_1jt3w_93",
|
|
@@ -3005,7 +3005,7 @@ const sn = Object.assign(Di, {
|
|
|
3005
3005
|
"listview-option": "_listview-option_1jt3w_255",
|
|
3006
3006
|
empty: ji
|
|
3007
3007
|
}, ln = dt(null), Qe = function() {
|
|
3008
|
-
const e =
|
|
3008
|
+
const e = Ve(
|
|
3009
3009
|
ln
|
|
3010
3010
|
);
|
|
3011
3011
|
if (e == null)
|
|
@@ -3026,25 +3026,25 @@ const sn = Object.assign(Di, {
|
|
|
3026
3026
|
onSelectedItemChange: l,
|
|
3027
3027
|
disableCloseOnClickOutside: h = !1,
|
|
3028
3028
|
filterOptions: b,
|
|
3029
|
-
...
|
|
3030
|
-
} = r, [x, S] = J(a), [g, D] = J(!1), [c, f] = J(!1), [p,
|
|
3029
|
+
..._
|
|
3030
|
+
} = r, [x, S] = J(a), [g, D] = J(!1), [c, f] = J(!1), [p, I] = J(!1), [m, N] = J([]);
|
|
3031
3031
|
function E(j) {
|
|
3032
3032
|
return d && j ? d(j) : j ? String(j) : "";
|
|
3033
3033
|
}
|
|
3034
3034
|
const {
|
|
3035
|
-
isOpen:
|
|
3035
|
+
isOpen: k,
|
|
3036
3036
|
getLabelProps: M,
|
|
3037
3037
|
getInputProps: O,
|
|
3038
|
-
getToggleButtonProps:
|
|
3038
|
+
getToggleButtonProps: P,
|
|
3039
3039
|
getMenuProps: V,
|
|
3040
3040
|
getItemProps: R,
|
|
3041
3041
|
highlightedIndex: F,
|
|
3042
3042
|
selectedItem: L,
|
|
3043
3043
|
selectItem: K,
|
|
3044
|
-
setInputValue:
|
|
3044
|
+
setInputValue: U,
|
|
3045
3045
|
inputValue: Z
|
|
3046
3046
|
} = ge({
|
|
3047
|
-
...
|
|
3047
|
+
..._,
|
|
3048
3048
|
items: x,
|
|
3049
3049
|
itemToString(j) {
|
|
3050
3050
|
return E(j);
|
|
@@ -3056,7 +3056,7 @@ const sn = Object.assign(Di, {
|
|
|
3056
3056
|
u != null && u(j || null), l != null && l({ selectedItem: j, ...W });
|
|
3057
3057
|
},
|
|
3058
3058
|
onIsOpenChange({ isOpen: j, inputValue: W, selectedItem: Y }) {
|
|
3059
|
-
j === !1 && W === "" ? K(null) : j === !1 &&
|
|
3059
|
+
j === !1 && W === "" ? K(null) : j === !1 && U(Y != null ? E(Y) : "");
|
|
3060
3060
|
},
|
|
3061
3061
|
stateReducer(j, { type: W, changes: Y }) {
|
|
3062
3062
|
switch (W) {
|
|
@@ -3081,10 +3081,10 @@ const sn = Object.assign(Di, {
|
|
|
3081
3081
|
multiple: !1,
|
|
3082
3082
|
items: x,
|
|
3083
3083
|
itemToString: E,
|
|
3084
|
-
isOpen:
|
|
3084
|
+
isOpen: k,
|
|
3085
3085
|
getLabelProps: M,
|
|
3086
3086
|
getInputProps: O,
|
|
3087
|
-
getToggleButtonProps:
|
|
3087
|
+
getToggleButtonProps: P,
|
|
3088
3088
|
getMenuProps: V,
|
|
3089
3089
|
getItemProps: R,
|
|
3090
3090
|
highlightedIndex: F,
|
|
@@ -3103,12 +3103,12 @@ const sn = Object.assign(Di, {
|
|
|
3103
3103
|
hasDisabledPopover: c,
|
|
3104
3104
|
setHasDisabledPopover: f,
|
|
3105
3105
|
hasEmpty: p,
|
|
3106
|
-
setHasEmpty:
|
|
3106
|
+
setHasEmpty: I
|
|
3107
3107
|
},
|
|
3108
3108
|
children: /* @__PURE__ */ v.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ v.jsx(
|
|
3109
3109
|
sn,
|
|
3110
3110
|
{
|
|
3111
|
-
open: s === !0 ? s :
|
|
3111
|
+
open: s === !0 ? s : k,
|
|
3112
3112
|
noPadding: !0,
|
|
3113
3113
|
disableCaret: !0,
|
|
3114
3114
|
fillAvailableHeight: !0,
|
|
@@ -3131,8 +3131,8 @@ const sn = Object.assign(Di, {
|
|
|
3131
3131
|
onSelectedItemChange: l,
|
|
3132
3132
|
disableCloseOnClickOutside: h = !1,
|
|
3133
3133
|
filterOptions: b,
|
|
3134
|
-
...
|
|
3135
|
-
} = r, [x, S] = J(a), [g, D] = J(!1), [c, f] = J(!1), [p,
|
|
3134
|
+
..._
|
|
3135
|
+
} = r, [x, S] = J(a), [g, D] = J(!1), [c, f] = J(!1), [p, I] = J(!1), [m, N] = J(""), [E, k] = J([]), [M, O] = J([]), { getSelectedItemProps: P, getDropdownProps: V, reset: R, removeSelectedItem: F } = Ne({
|
|
3136
3136
|
selectedItems: E,
|
|
3137
3137
|
onStateChange({ selectedItems: w, type: H }) {
|
|
3138
3138
|
switch (H) {
|
|
@@ -3140,10 +3140,10 @@ const sn = Object.assign(Di, {
|
|
|
3140
3140
|
case Ne.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
3141
3141
|
case Ne.stateChangeTypes.DropdownKeyDownBackspace:
|
|
3142
3142
|
case Ne.stateChangeTypes.FunctionRemoveSelectedItem:
|
|
3143
|
-
u != null && u(w ?? []),
|
|
3143
|
+
u != null && u(w ?? []), k(w ?? []);
|
|
3144
3144
|
break;
|
|
3145
3145
|
case Ne.stateChangeTypes.FunctionReset:
|
|
3146
|
-
u != null && u([]),
|
|
3146
|
+
u != null && u([]), k([]), N("");
|
|
3147
3147
|
break;
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
@@ -3153,7 +3153,7 @@ const sn = Object.assign(Di, {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
const {
|
|
3155
3155
|
isOpen: K,
|
|
3156
|
-
getLabelProps:
|
|
3156
|
+
getLabelProps: U,
|
|
3157
3157
|
getInputProps: Z,
|
|
3158
3158
|
getToggleButtonProps: j,
|
|
3159
3159
|
getMenuProps: W,
|
|
@@ -3162,7 +3162,7 @@ const sn = Object.assign(Di, {
|
|
|
3162
3162
|
selectedItem: T,
|
|
3163
3163
|
selectItem: A
|
|
3164
3164
|
} = ge({
|
|
3165
|
-
...
|
|
3165
|
+
..._,
|
|
3166
3166
|
items: x,
|
|
3167
3167
|
itemToString(w) {
|
|
3168
3168
|
return L(w);
|
|
@@ -3175,16 +3175,16 @@ const sn = Object.assign(Di, {
|
|
|
3175
3175
|
onIsOpenChange({ isOpen: w }) {
|
|
3176
3176
|
w === !1 && N("");
|
|
3177
3177
|
},
|
|
3178
|
-
stateReducer(w, { type: H, changes:
|
|
3178
|
+
stateReducer(w, { type: H, changes: z }) {
|
|
3179
3179
|
switch (H) {
|
|
3180
3180
|
case ge.stateChangeTypes.InputBlur:
|
|
3181
3181
|
return h ? {
|
|
3182
|
-
...
|
|
3182
|
+
...z,
|
|
3183
3183
|
isOpen: w.isOpen,
|
|
3184
3184
|
highlightedIndex: w.highlightedIndex
|
|
3185
|
-
} :
|
|
3185
|
+
} : z;
|
|
3186
3186
|
default:
|
|
3187
|
-
return
|
|
3187
|
+
return z;
|
|
3188
3188
|
}
|
|
3189
3189
|
},
|
|
3190
3190
|
isItemDisabled(w) {
|
|
@@ -3193,15 +3193,15 @@ const sn = Object.assign(Di, {
|
|
|
3193
3193
|
onStateChange({
|
|
3194
3194
|
inputValue: w = "",
|
|
3195
3195
|
type: H,
|
|
3196
|
-
selectedItem:
|
|
3196
|
+
selectedItem: z
|
|
3197
3197
|
}) {
|
|
3198
3198
|
switch (H) {
|
|
3199
3199
|
case ge.stateChangeTypes.InputKeyDownEnter:
|
|
3200
3200
|
case ge.stateChangeTypes.ItemClick:
|
|
3201
3201
|
case ge.stateChangeTypes.InputBlur:
|
|
3202
|
-
if (
|
|
3203
|
-
const q = E.includes(
|
|
3204
|
-
u != null && u(q),
|
|
3202
|
+
if (z) {
|
|
3203
|
+
const q = E.includes(z) ? E.filter((B) => B !== z) : [...E, z];
|
|
3204
|
+
u != null && u(q), k(q), N("");
|
|
3205
3205
|
}
|
|
3206
3206
|
break;
|
|
3207
3207
|
case ge.stateChangeTypes.InputChange:
|
|
@@ -3218,7 +3218,7 @@ const sn = Object.assign(Di, {
|
|
|
3218
3218
|
items: x,
|
|
3219
3219
|
itemToString: L,
|
|
3220
3220
|
isOpen: K,
|
|
3221
|
-
getLabelProps:
|
|
3221
|
+
getLabelProps: U,
|
|
3222
3222
|
getInputProps: Z,
|
|
3223
3223
|
getToggleButtonProps: j,
|
|
3224
3224
|
getMenuProps: W,
|
|
@@ -3228,7 +3228,7 @@ const sn = Object.assign(Di, {
|
|
|
3228
3228
|
selectedItems: E,
|
|
3229
3229
|
disabledItems: M,
|
|
3230
3230
|
setDisabledItems: O,
|
|
3231
|
-
getSelectedItemProps:
|
|
3231
|
+
getSelectedItemProps: P,
|
|
3232
3232
|
getDropdownProps: V,
|
|
3233
3233
|
reset: R,
|
|
3234
3234
|
removeSelectedItem: F,
|
|
@@ -3239,7 +3239,7 @@ const sn = Object.assign(Di, {
|
|
|
3239
3239
|
hasDisabledPopover: c,
|
|
3240
3240
|
setHasDisabledPopover: f,
|
|
3241
3241
|
hasEmpty: p,
|
|
3242
|
-
setHasEmpty:
|
|
3242
|
+
setHasEmpty: I
|
|
3243
3243
|
},
|
|
3244
3244
|
children: /* @__PURE__ */ v.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ v.jsx(
|
|
3245
3245
|
sn,
|
|
@@ -3269,7 +3269,7 @@ const sn = Object.assign(Di, {
|
|
|
3269
3269
|
readOnly: l,
|
|
3270
3270
|
prefix: h,
|
|
3271
3271
|
suffix: b,
|
|
3272
|
-
maxRows:
|
|
3272
|
+
maxRows: _,
|
|
3273
3273
|
...x
|
|
3274
3274
|
}) => {
|
|
3275
3275
|
const {
|
|
@@ -3279,35 +3279,35 @@ const sn = Object.assign(Di, {
|
|
|
3279
3279
|
getInputProps: c,
|
|
3280
3280
|
getToggleButtonProps: f,
|
|
3281
3281
|
selectedItems: p,
|
|
3282
|
-
getSelectedItemProps:
|
|
3282
|
+
getSelectedItemProps: I,
|
|
3283
3283
|
getDropdownProps: m,
|
|
3284
3284
|
reset: N,
|
|
3285
3285
|
removeSelectedItem: E,
|
|
3286
|
-
selectItem:
|
|
3286
|
+
selectItem: k,
|
|
3287
3287
|
inputValue: M,
|
|
3288
3288
|
setIsDisabledOrReadOnly: O,
|
|
3289
|
-
hasDisabledPopover:
|
|
3290
|
-
} = Qe(), V = Je(), R =
|
|
3289
|
+
hasDisabledPopover: P
|
|
3290
|
+
} = Qe(), V = Je(), R = se(te["input-wrapper"], {
|
|
3291
3291
|
[te.small]: r === "small",
|
|
3292
3292
|
[te.large]: r === "large"
|
|
3293
|
-
}), F = Ie(), L = Ie(), K =
|
|
3293
|
+
}), F = Ie(), L = Ie(), K = se(te.input, e, {
|
|
3294
3294
|
[te.error]: i
|
|
3295
3295
|
});
|
|
3296
3296
|
de(() => (O(!!(u || l)), () => {
|
|
3297
3297
|
O(!1);
|
|
3298
3298
|
}), [u, l, O]);
|
|
3299
|
-
let
|
|
3300
|
-
|
|
3299
|
+
let U = `label${F} `;
|
|
3300
|
+
U += ` helper${L}`;
|
|
3301
3301
|
const Z = typeof i != "boolean" ? i : void 0, j = Q(null), [W, Y] = J(!1), [oe, T] = J(!1), [A, w] = J(
|
|
3302
3302
|
null
|
|
3303
|
-
), [H,
|
|
3303
|
+
), [H, z] = J(0);
|
|
3304
3304
|
wt(() => {
|
|
3305
|
-
var B,
|
|
3306
|
-
if (
|
|
3305
|
+
var B, le;
|
|
3306
|
+
if (_ !== void 0) {
|
|
3307
3307
|
if (W === !1)
|
|
3308
|
-
Y(!0), T(!1), w(null),
|
|
3308
|
+
Y(!0), T(!1), w(null), z((ae) => ae + 1);
|
|
3309
3309
|
else if ((B = j == null ? void 0 : j.current) != null && B.children) {
|
|
3310
|
-
const
|
|
3310
|
+
const ae = (le = j == null ? void 0 : j.current) == null ? void 0 : le.children, ue = Array.from(ae).reduce(
|
|
3311
3311
|
(C, he) => {
|
|
3312
3312
|
const ie = he.getBoundingClientRect().top;
|
|
3313
3313
|
return C.length ? C[C.length - 1].top === ie ? [
|
|
@@ -3328,12 +3328,12 @@ const sn = Object.assign(Di, {
|
|
|
3328
3328
|
w(C);
|
|
3329
3329
|
} else
|
|
3330
3330
|
w(A - 1);
|
|
3331
|
-
|
|
3331
|
+
z((C) => C + 1);
|
|
3332
3332
|
}
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
3335
|
-
}, [p.length,
|
|
3336
|
-
const q = oe &&
|
|
3335
|
+
}, [p.length, _, H]);
|
|
3336
|
+
const q = oe && _ != null && A !== null ? A : p.length;
|
|
3337
3337
|
return /* @__PURE__ */ v.jsxs("div", { className: te["search-field"], children: [
|
|
3338
3338
|
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
3339
3339
|
/* @__PURE__ */ v.jsx(
|
|
@@ -3364,13 +3364,13 @@ const sn = Object.assign(Di, {
|
|
|
3364
3364
|
icon: Vn,
|
|
3365
3365
|
className: te["close-button"],
|
|
3366
3366
|
onClick: () => {
|
|
3367
|
-
N != null ? N() :
|
|
3367
|
+
N != null ? N() : k(null);
|
|
3368
3368
|
},
|
|
3369
3369
|
tabIndex: -1,
|
|
3370
3370
|
disabled: u || l
|
|
3371
3371
|
}
|
|
3372
3372
|
) }) : null,
|
|
3373
|
-
|
|
3373
|
+
P ? null : /* @__PURE__ */ v.jsx("div", { className: te["toggle-button-wrapper"], children: /* @__PURE__ */ v.jsx(
|
|
3374
3374
|
qe,
|
|
3375
3375
|
{
|
|
3376
3376
|
"aria-label": "toggle menu",
|
|
@@ -3385,10 +3385,10 @@ const sn = Object.assign(Di, {
|
|
|
3385
3385
|
) })
|
|
3386
3386
|
] }),
|
|
3387
3387
|
/* @__PURE__ */ v.jsxs("div", { className: te["rows-wrapper"], ref: j, children: [
|
|
3388
|
-
p.length && E != null &&
|
|
3389
|
-
const { onClick:
|
|
3388
|
+
p.length && E != null && I != null ? p.slice(0, q).map((B, le) => {
|
|
3389
|
+
const { onClick: ae, ...ue } = I({
|
|
3390
3390
|
selectedItem: B,
|
|
3391
|
-
index:
|
|
3391
|
+
index: le
|
|
3392
3392
|
});
|
|
3393
3393
|
return /* @__PURE__ */ v.jsx(
|
|
3394
3394
|
"div",
|
|
@@ -3405,10 +3405,10 @@ const sn = Object.assign(Di, {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
)
|
|
3407
3407
|
},
|
|
3408
|
-
`selected-item-${
|
|
3408
|
+
`selected-item-${le}`
|
|
3409
3409
|
);
|
|
3410
3410
|
}) : null,
|
|
3411
|
-
oe &&
|
|
3411
|
+
oe && _ != null ? /* @__PURE__ */ v.jsx("div", { className: te["chip-wrapper"], children: /* @__PURE__ */ v.jsx(
|
|
3412
3412
|
an,
|
|
3413
3413
|
{
|
|
3414
3414
|
label: `+${p.length - q}`,
|
|
@@ -3435,7 +3435,7 @@ const sn = Object.assign(Di, {
|
|
|
3435
3435
|
readOnly: l,
|
|
3436
3436
|
required: s,
|
|
3437
3437
|
autoComplete: "off",
|
|
3438
|
-
"aria-labelledby":
|
|
3438
|
+
"aria-labelledby": U,
|
|
3439
3439
|
preventKeyAction: S
|
|
3440
3440
|
})
|
|
3441
3441
|
) : c({
|
|
@@ -3445,7 +3445,7 @@ const sn = Object.assign(Di, {
|
|
|
3445
3445
|
readOnly: l,
|
|
3446
3446
|
required: s,
|
|
3447
3447
|
autoComplete: "off",
|
|
3448
|
-
"aria-labelledby":
|
|
3448
|
+
"aria-labelledby": U
|
|
3449
3449
|
})
|
|
3450
3450
|
}
|
|
3451
3451
|
),
|
|
@@ -3483,7 +3483,7 @@ const sn = Object.assign(Di, {
|
|
|
3483
3483
|
getMenuProps: u,
|
|
3484
3484
|
getItemProps: l,
|
|
3485
3485
|
isDisabledOrReadOnly: h
|
|
3486
|
-
} = Qe(), b =
|
|
3486
|
+
} = Qe(), b = se(
|
|
3487
3487
|
te["popover-content"],
|
|
3488
3488
|
n
|
|
3489
3489
|
);
|
|
@@ -3502,17 +3502,17 @@ const sn = Object.assign(Di, {
|
|
|
3502
3502
|
overflow: "auto"
|
|
3503
3503
|
}
|
|
3504
3504
|
},
|
|
3505
|
-
options: o.map((
|
|
3505
|
+
options: o.map((_, x) => ({
|
|
3506
3506
|
optionProps: {
|
|
3507
3507
|
...l({
|
|
3508
|
-
item:
|
|
3508
|
+
item: _,
|
|
3509
3509
|
index: x
|
|
3510
3510
|
}),
|
|
3511
|
-
selected: s ===
|
|
3511
|
+
selected: s === _ || a.includes(_),
|
|
3512
3512
|
disabled: h
|
|
3513
3513
|
// also see "isItemDisabled" function
|
|
3514
3514
|
},
|
|
3515
|
-
item:
|
|
3515
|
+
item: _,
|
|
3516
3516
|
index: x
|
|
3517
3517
|
}))
|
|
3518
3518
|
}) : null }) : /* @__PURE__ */ v.jsx(sn.Content, { ...i, className: b, children: e ? e({
|
|
@@ -3528,21 +3528,21 @@ const sn = Object.assign(Di, {
|
|
|
3528
3528
|
overflow: "auto"
|
|
3529
3529
|
}
|
|
3530
3530
|
},
|
|
3531
|
-
options: o.map((
|
|
3531
|
+
options: o.map((_, x) => ({
|
|
3532
3532
|
optionProps: {
|
|
3533
3533
|
...l({
|
|
3534
|
-
item:
|
|
3534
|
+
item: _,
|
|
3535
3535
|
index: x
|
|
3536
3536
|
}),
|
|
3537
|
-
selected: s ===
|
|
3537
|
+
selected: s === _ || a.includes(_),
|
|
3538
3538
|
disabled: h
|
|
3539
3539
|
// also see "isItemDisabled" function
|
|
3540
3540
|
},
|
|
3541
|
-
item:
|
|
3541
|
+
item: _,
|
|
3542
3542
|
index: x
|
|
3543
3543
|
}))
|
|
3544
3544
|
}) : null });
|
|
3545
|
-
},
|
|
3545
|
+
}, Ui = function({
|
|
3546
3546
|
children: e,
|
|
3547
3547
|
...n
|
|
3548
3548
|
}) {
|
|
@@ -3563,7 +3563,7 @@ const sn = Object.assign(Di, {
|
|
|
3563
3563
|
"ul",
|
|
3564
3564
|
{
|
|
3565
3565
|
...r(n),
|
|
3566
|
-
className:
|
|
3566
|
+
className: kn.listbox,
|
|
3567
3567
|
style: {
|
|
3568
3568
|
display: o.length ? void 0 : "none",
|
|
3569
3569
|
overflow: "scroll"
|
|
@@ -3573,7 +3573,7 @@ const sn = Object.assign(Di, {
|
|
|
3573
3573
|
),
|
|
3574
3574
|
!o.length && !t ? /* @__PURE__ */ v.jsx("div", { className: te.empty, children: /* @__PURE__ */ v.jsx(Tn, { subdued: !0, size: "small", children: "No results found" }) }) : null
|
|
3575
3575
|
] });
|
|
3576
|
-
},
|
|
3576
|
+
}, zi = function({
|
|
3577
3577
|
children: e,
|
|
3578
3578
|
disabled: n,
|
|
3579
3579
|
item: r,
|
|
@@ -3598,11 +3598,11 @@ const sn = Object.assign(Di, {
|
|
|
3598
3598
|
index: i,
|
|
3599
3599
|
...o
|
|
3600
3600
|
}),
|
|
3601
|
-
className:
|
|
3601
|
+
className: se(
|
|
3602
3602
|
te["listview-option"],
|
|
3603
3603
|
_t["listview-option"]
|
|
3604
3604
|
),
|
|
3605
|
-
children: /* @__PURE__ */ v.jsxs("div", { className:
|
|
3605
|
+
children: /* @__PURE__ */ v.jsxs("div", { className: se(te.cell, _t.cell), children: [
|
|
3606
3606
|
/* @__PURE__ */ v.jsx(
|
|
3607
3607
|
Ar,
|
|
3608
3608
|
{
|
|
@@ -3622,7 +3622,7 @@ const sn = Object.assign(Di, {
|
|
|
3622
3622
|
index: i,
|
|
3623
3623
|
...o
|
|
3624
3624
|
}),
|
|
3625
|
-
className:
|
|
3625
|
+
className: kn.option,
|
|
3626
3626
|
...h ? { "aria-disabled": !0 } : {},
|
|
3627
3627
|
children: [
|
|
3628
3628
|
/* @__PURE__ */ v.jsx("span", { children: e }),
|
|
@@ -3646,20 +3646,21 @@ const sn = Object.assign(Di, {
|
|
|
3646
3646
|
return de(() => (r(!0), () => {
|
|
3647
3647
|
r(!1);
|
|
3648
3648
|
})), n.length ? null : e;
|
|
3649
|
-
},
|
|
3649
|
+
}, $l = Object.assign(Ki, {
|
|
3650
3650
|
SearchField: Li,
|
|
3651
3651
|
Content: Bi,
|
|
3652
|
-
List:
|
|
3653
|
-
Item:
|
|
3652
|
+
List: Ui,
|
|
3653
|
+
Item: zi,
|
|
3654
3654
|
Empty: Wi
|
|
3655
3655
|
});
|
|
3656
|
-
const qi = "
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
expanded:
|
|
3656
|
+
const qi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66", Xi = "_content_1sjr5_30", Ji = "_expanded_1sjr5_111", Me = {
|
|
3657
|
+
details: qi,
|
|
3658
|
+
summary: Yi,
|
|
3659
|
+
"content-wrapper": "_content-wrapper_1sjr5_30",
|
|
3660
|
+
arrow: Gi,
|
|
3661
|
+
content: Xi,
|
|
3662
|
+
"is-expanded": "_is-expanded_1sjr5_108",
|
|
3663
|
+
expanded: Ji
|
|
3663
3664
|
}, pt = dt({
|
|
3664
3665
|
id: "",
|
|
3665
3666
|
isExpanded: !1,
|
|
@@ -3669,7 +3670,7 @@ const qi = "_summary_y9p7y_4", Yi = "_arrow_y9p7y_49", Gi = "_content_y9p7y_17",
|
|
|
3669
3670
|
},
|
|
3670
3671
|
toggle: () => {
|
|
3671
3672
|
}
|
|
3672
|
-
}),
|
|
3673
|
+
}), Qi = ce(
|
|
3673
3674
|
function(e, n) {
|
|
3674
3675
|
const { layoutStyles: r, componentProps: i } = Se(e), {
|
|
3675
3676
|
children: o,
|
|
@@ -3677,36 +3678,47 @@ const qi = "_summary_y9p7y_4", Yi = "_arrow_y9p7y_49", Gi = "_content_y9p7y_17",
|
|
|
3677
3678
|
expanded: s,
|
|
3678
3679
|
defaultExpanded: a = !1,
|
|
3679
3680
|
style: d,
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
b(!0);
|
|
3684
|
-
}
|
|
3681
|
+
className: u,
|
|
3682
|
+
...l
|
|
3683
|
+
} = i, h = Ie(), [b, _] = J(a);
|
|
3685
3684
|
function x() {
|
|
3686
|
-
|
|
3685
|
+
_(!0);
|
|
3687
3686
|
}
|
|
3688
3687
|
function S() {
|
|
3689
|
-
|
|
3688
|
+
_(!1);
|
|
3689
|
+
}
|
|
3690
|
+
function g() {
|
|
3691
|
+
_((f) => !f);
|
|
3690
3692
|
}
|
|
3691
|
-
const
|
|
3693
|
+
const D = {
|
|
3692
3694
|
...d,
|
|
3693
3695
|
...r
|
|
3694
|
-
},
|
|
3696
|
+
}, c = Te(
|
|
3695
3697
|
() => ({
|
|
3696
|
-
id: t ??
|
|
3697
|
-
isExpanded: s ??
|
|
3698
|
-
expanded:
|
|
3699
|
-
close:
|
|
3700
|
-
toggle:
|
|
3698
|
+
id: t ?? h,
|
|
3699
|
+
isExpanded: s ?? b,
|
|
3700
|
+
expanded: x,
|
|
3701
|
+
close: S,
|
|
3702
|
+
toggle: g
|
|
3701
3703
|
}),
|
|
3702
|
-
[
|
|
3704
|
+
[h, t, b, s]
|
|
3703
3705
|
);
|
|
3704
|
-
return /* @__PURE__ */ v.jsx(pt.Provider, { value:
|
|
3706
|
+
return /* @__PURE__ */ v.jsx(pt.Provider, { value: c, children: /* @__PURE__ */ v.jsx(
|
|
3707
|
+
"div",
|
|
3708
|
+
{
|
|
3709
|
+
"data-anv": "Details",
|
|
3710
|
+
ref: n,
|
|
3711
|
+
className: se(Me.details, u),
|
|
3712
|
+
style: D,
|
|
3713
|
+
...l,
|
|
3714
|
+
children: o
|
|
3715
|
+
}
|
|
3716
|
+
) });
|
|
3705
3717
|
}
|
|
3706
|
-
),
|
|
3707
|
-
const { id: t, isExpanded: s, toggle: a } =
|
|
3718
|
+
), Zi = ce(function({ children: e, onClick: n, className: r, ...i }, o) {
|
|
3719
|
+
const { id: t, isExpanded: s, toggle: a } = Ve(pt), d = (...l) => {
|
|
3708
3720
|
n == null || n(...l), a();
|
|
3709
|
-
}, u =
|
|
3721
|
+
}, u = se(Me.summary, r);
|
|
3710
3722
|
return /* @__PURE__ */ v.jsxs(
|
|
3711
3723
|
"button",
|
|
3712
3724
|
{
|
|
@@ -3718,22 +3730,22 @@ const qi = "_summary_y9p7y_4", Yi = "_arrow_y9p7y_49", Gi = "_content_y9p7y_17",
|
|
|
3718
3730
|
ref: o,
|
|
3719
3731
|
...i,
|
|
3720
3732
|
children: [
|
|
3721
|
-
/* @__PURE__ */ v.jsx(
|
|
3733
|
+
/* @__PURE__ */ v.jsx(es, {}),
|
|
3722
3734
|
" ",
|
|
3723
3735
|
/* @__PURE__ */ v.jsx("span", { children: e })
|
|
3724
3736
|
]
|
|
3725
3737
|
}
|
|
3726
3738
|
);
|
|
3727
|
-
}),
|
|
3739
|
+
}), es = ce(
|
|
3728
3740
|
function({ className: e, ...n }, r) {
|
|
3729
|
-
const { isExpanded: i } =
|
|
3730
|
-
|
|
3731
|
-
{ [
|
|
3741
|
+
const { isExpanded: i } = Ve(pt), o = se(
|
|
3742
|
+
Me.arrow,
|
|
3743
|
+
{ [Me["is-expanded"]]: i },
|
|
3732
3744
|
e
|
|
3733
3745
|
);
|
|
3734
3746
|
return /* @__PURE__ */ v.jsx("span", { className: o, ref: r, ...n, children: /* @__PURE__ */ v.jsx(xt, { size: "large", svg: Er }) });
|
|
3735
3747
|
}
|
|
3736
|
-
),
|
|
3748
|
+
), ts = ce(
|
|
3737
3749
|
function({
|
|
3738
3750
|
className: e,
|
|
3739
3751
|
children: n,
|
|
@@ -3742,7 +3754,7 @@ const qi = "_summary_y9p7y_4", Yi = "_arrow_y9p7y_49", Gi = "_content_y9p7y_17",
|
|
|
3742
3754
|
style: o,
|
|
3743
3755
|
...t
|
|
3744
3756
|
}, s) {
|
|
3745
|
-
const { id: a, isExpanded: d } =
|
|
3757
|
+
const { id: a, isExpanded: d } = Ve(pt), u = {
|
|
3746
3758
|
height: r,
|
|
3747
3759
|
maxHeight: i,
|
|
3748
3760
|
...r || i ? { overflow: "auto" } : {},
|
|
@@ -3753,36 +3765,36 @@ const qi = "_summary_y9p7y_4", Yi = "_arrow_y9p7y_49", Gi = "_content_y9p7y_17",
|
|
|
3753
3765
|
{
|
|
3754
3766
|
"data-anv": "DetailsContent",
|
|
3755
3767
|
id: a,
|
|
3756
|
-
className:
|
|
3757
|
-
[
|
|
3768
|
+
className: se(Me["content-wrapper"], {
|
|
3769
|
+
[Me.expanded]: d
|
|
3758
3770
|
}),
|
|
3759
3771
|
ref: s,
|
|
3760
|
-
children: /* @__PURE__ */ v.jsx("div", { className:
|
|
3772
|
+
children: /* @__PURE__ */ v.jsx("div", { className: Me.content, children: /* @__PURE__ */ v.jsx("div", { className: e, style: u, ...t, children: n }) })
|
|
3761
3773
|
}
|
|
3762
3774
|
);
|
|
3763
3775
|
}
|
|
3764
|
-
),
|
|
3765
|
-
Summary:
|
|
3766
|
-
Content:
|
|
3776
|
+
), Fl = Object.assign(Qi, {
|
|
3777
|
+
Summary: Zi,
|
|
3778
|
+
Content: ts
|
|
3767
3779
|
});
|
|
3768
|
-
const
|
|
3769
|
-
dialog:
|
|
3770
|
-
"close-dialog": "_close-
|
|
3771
|
-
container:
|
|
3772
|
-
content:
|
|
3773
|
-
"open-dialog": "_open-
|
|
3774
|
-
"open-backdrop": "_open-
|
|
3775
|
-
remove:
|
|
3776
|
-
"close-backdrop": "_close-
|
|
3777
|
-
header:
|
|
3778
|
-
"close-container": "_close-
|
|
3779
|
-
footer:
|
|
3780
|
-
large:
|
|
3781
|
-
fullscreen:
|
|
3782
|
-
sticky:
|
|
3783
|
-
"close-button": "_close-
|
|
3780
|
+
const ns = "_dialog_14ll9_4", rs = "_container_14ll9_19", os = "_content_14ll9_28", is = "_remove_14ll9_40", ss = "_header_14ll9_49", ls = "_footer_14ll9_68", as = "_large_14ll9_78", us = "_fullscreen_14ll9_78", ds = "_sticky_14ll9_98", xe = {
|
|
3781
|
+
dialog: ns,
|
|
3782
|
+
"close-dialog": "_close-dialog_14ll9_1",
|
|
3783
|
+
container: rs,
|
|
3784
|
+
content: os,
|
|
3785
|
+
"open-dialog": "_open-dialog_14ll9_1",
|
|
3786
|
+
"open-backdrop": "_open-backdrop_14ll9_1",
|
|
3787
|
+
remove: is,
|
|
3788
|
+
"close-backdrop": "_close-backdrop_14ll9_1",
|
|
3789
|
+
header: ss,
|
|
3790
|
+
"close-container": "_close-container_14ll9_61",
|
|
3791
|
+
footer: ls,
|
|
3792
|
+
large: as,
|
|
3793
|
+
fullscreen: us,
|
|
3794
|
+
sticky: ds,
|
|
3795
|
+
"close-button": "_close-button_14ll9_104"
|
|
3784
3796
|
}, Cr = ce((e, n) => {
|
|
3785
|
-
const { onClick: r, ...i } = e, { close: o } =
|
|
3797
|
+
const { onClick: r, ...i } = e, { close: o } = cs(), t = (s) => {
|
|
3786
3798
|
o(), r == null || r(s);
|
|
3787
3799
|
};
|
|
3788
3800
|
return /* @__PURE__ */ v.jsx(
|
|
@@ -3817,7 +3829,7 @@ const Sr = ce(
|
|
|
3817
3829
|
Sr.displayName = "DialogHeader";
|
|
3818
3830
|
const Or = ce(
|
|
3819
3831
|
(e, n) => {
|
|
3820
|
-
const { children: r, sticky: i = !1, ...o } = e, t =
|
|
3832
|
+
const { children: r, sticky: i = !1, ...o } = e, t = se(xe.footer, {
|
|
3821
3833
|
[xe.sticky]: i
|
|
3822
3834
|
});
|
|
3823
3835
|
return /* @__PURE__ */ v.jsx("footer", { className: t, ref: n, ...o, children: r });
|
|
@@ -3826,7 +3838,7 @@ const Or = ce(
|
|
|
3826
3838
|
Or.displayName = "DialogFooter";
|
|
3827
3839
|
const Dr = ce(
|
|
3828
3840
|
(e, n) => {
|
|
3829
|
-
const { children: r, ...i } = e, o =
|
|
3841
|
+
const { children: r, ...i } = e, o = se(xe.content, {});
|
|
3830
3842
|
return /* @__PURE__ */ v.jsx("div", { className: o, ref: n, ...i, children: r });
|
|
3831
3843
|
}
|
|
3832
3844
|
);
|
|
@@ -3845,13 +3857,13 @@ const Nr = dt(null), Rr = ce(
|
|
|
3845
3857
|
fullScreen: l = !1,
|
|
3846
3858
|
disableCloseOnEscape: h = !1,
|
|
3847
3859
|
disableCloseOnClickOutside: b = !1,
|
|
3848
|
-
size:
|
|
3860
|
+
size: _,
|
|
3849
3861
|
...x
|
|
3850
|
-
} = e, S = Q(null), g = Q(null), D = Q(null), c = Ie(), [f, p] = J(!1),
|
|
3862
|
+
} = e, S = Q(null), g = Q(null), D = Q(null), c = Ie(), [f, p] = J(!1), I = se([xe.dialog], r, {
|
|
3851
3863
|
[xe.fullscreen]: l,
|
|
3852
3864
|
[xe.remove]: f,
|
|
3853
|
-
[xe.large]:
|
|
3854
|
-
}), m = Hr(S.current), N = m[0], E = m[m.length - 1],
|
|
3865
|
+
[xe.large]: _ === "large"
|
|
3866
|
+
}), m = Hr(S.current), N = m[0], E = m[m.length - 1], k = ee(() => {
|
|
3855
3867
|
var R;
|
|
3856
3868
|
if (D.current) {
|
|
3857
3869
|
const F = (D.current.dataset.dialogsOpen ? D.current.dataset.dialogsOpen.split(" ") : []).filter((L) => L !== c);
|
|
@@ -3862,22 +3874,22 @@ const Nr = dt(null), Rr = ce(
|
|
|
3862
3874
|
var R, F, L, K;
|
|
3863
3875
|
if (i) {
|
|
3864
3876
|
if (t == null || t(), (R = S.current) == null || R.showModal(), !D.current) {
|
|
3865
|
-
const
|
|
3866
|
-
|
|
3877
|
+
const U = (F = S.current) == null ? void 0 : F.closest("body");
|
|
3878
|
+
U && (D.current = U);
|
|
3867
3879
|
}
|
|
3868
3880
|
if (!((L = S.current) != null && L.querySelector(":focus")) && (N == null || N.focus()), (K = D.current) == null || K.classList.add("dialog-open"), D.current) {
|
|
3869
|
-
const
|
|
3870
|
-
if (
|
|
3881
|
+
const U = D.current.dataset.dialogsOpen ? D.current.dataset.dialogsOpen.split(" ") : [];
|
|
3882
|
+
if (U.includes(c))
|
|
3871
3883
|
return;
|
|
3872
|
-
|
|
3884
|
+
U.push(c), D.current.dataset.dialogsOpen = U.join(" ");
|
|
3873
3885
|
}
|
|
3874
3886
|
return;
|
|
3875
3887
|
}
|
|
3876
3888
|
p(!0), setTimeout(() => {
|
|
3877
|
-
var
|
|
3878
|
-
(
|
|
3889
|
+
var U;
|
|
3890
|
+
(U = S.current) == null || U.close(), k(), p(!1);
|
|
3879
3891
|
}, 200);
|
|
3880
|
-
}, [N, c, t, i,
|
|
3892
|
+
}, [N, c, t, i, k]);
|
|
3881
3893
|
const M = (R) => {
|
|
3882
3894
|
R.preventDefault(), !h && (s == null || s());
|
|
3883
3895
|
}, O = (R) => {
|
|
@@ -3889,7 +3901,7 @@ const Nr = dt(null), Rr = ce(
|
|
|
3889
3901
|
return;
|
|
3890
3902
|
s == null || s();
|
|
3891
3903
|
}
|
|
3892
|
-
},
|
|
3904
|
+
}, P = (R) => {
|
|
3893
3905
|
if (u == null || u(R), R.code === "Tab") {
|
|
3894
3906
|
if (R.shiftKey && R.target === N) {
|
|
3895
3907
|
R.preventDefault(), E == null || E.focus();
|
|
@@ -3900,24 +3912,24 @@ const Nr = dt(null), Rr = ce(
|
|
|
3900
3912
|
return;
|
|
3901
3913
|
}
|
|
3902
3914
|
}
|
|
3903
|
-
}, V =
|
|
3915
|
+
}, V = Te(() => ({ close: () => {
|
|
3904
3916
|
p(!0), setTimeout(() => {
|
|
3905
3917
|
var R;
|
|
3906
|
-
|
|
3918
|
+
k(), (R = S.current) == null || R.close(), s == null || s();
|
|
3907
3919
|
}, 200);
|
|
3908
|
-
} }), [s,
|
|
3920
|
+
} }), [s, k]);
|
|
3909
3921
|
return (
|
|
3910
3922
|
// dialog element does seem to be interactive on MDN guideline
|
|
3911
3923
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
3912
3924
|
/* @__PURE__ */ v.jsx(
|
|
3913
3925
|
"dialog",
|
|
3914
3926
|
{
|
|
3915
|
-
className:
|
|
3927
|
+
className: I,
|
|
3916
3928
|
"data-anv": "Dialog",
|
|
3917
3929
|
ref: Be([n, S]),
|
|
3918
3930
|
onCancel: M,
|
|
3919
3931
|
onClick: O,
|
|
3920
|
-
onKeyDown:
|
|
3932
|
+
onKeyDown: P,
|
|
3921
3933
|
...x,
|
|
3922
3934
|
children: /* @__PURE__ */ v.jsx(Nr.Provider, { value: V, children: /* @__PURE__ */ v.jsx("section", { ref: g, className: xe.container, children: o }) })
|
|
3923
3935
|
}
|
|
@@ -3925,8 +3937,8 @@ const Nr = dt(null), Rr = ce(
|
|
|
3925
3937
|
);
|
|
3926
3938
|
}
|
|
3927
3939
|
);
|
|
3928
|
-
function
|
|
3929
|
-
const e =
|
|
3940
|
+
function cs() {
|
|
3941
|
+
const e = Ve(Nr);
|
|
3930
3942
|
if (!e)
|
|
3931
3943
|
throw new Error(
|
|
3932
3944
|
"useDialogContext must be used within a DialogContextProvider"
|
|
@@ -3934,16 +3946,16 @@ function ds() {
|
|
|
3934
3946
|
return e;
|
|
3935
3947
|
}
|
|
3936
3948
|
Rr.displayName = "Dialog";
|
|
3937
|
-
const
|
|
3949
|
+
const Ll = Object.assign(Rr, {
|
|
3938
3950
|
Header: Sr,
|
|
3939
3951
|
Footer: Or,
|
|
3940
3952
|
Content: Dr
|
|
3941
3953
|
});
|
|
3942
|
-
const
|
|
3943
|
-
link:
|
|
3944
|
-
secondary:
|
|
3945
|
-
quiet:
|
|
3946
|
-
},
|
|
3954
|
+
const ps = "_link_1ur2o_4", fs = "_secondary_1ur2o_36", hs = "_quiet_1ur2o_45", $e = {
|
|
3955
|
+
link: ps,
|
|
3956
|
+
secondary: fs,
|
|
3957
|
+
quiet: hs
|
|
3958
|
+
}, gs = (e) => /* @__PURE__ */ _e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ _e.createElement("path", { d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h5c.55 0 1-.45 1-1s-.45-1-1-1H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55-.45 1-1 1zM14 4c0 .55.45 1 1 1h2.59l-9.13 9.13a.996.996 0 1 0 1.41 1.41L19 6.41V9c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1z" })), ms = ce((e, n) => {
|
|
3947
3959
|
const { layoutStyles: r, componentProps: i } = Se(e), {
|
|
3948
3960
|
children: o,
|
|
3949
3961
|
className: t,
|
|
@@ -3951,7 +3963,7 @@ const cs = "_link_ctdzp_4", ps = "_secondary_ctdzp_36", fs = "_quiet_ctdzp_45",
|
|
|
3951
3963
|
quiet: a,
|
|
3952
3964
|
style: d,
|
|
3953
3965
|
...u
|
|
3954
|
-
} = i, l =
|
|
3966
|
+
} = i, l = se([$e.link], t, {
|
|
3955
3967
|
[$e.quiet]: a,
|
|
3956
3968
|
[$e.secondary]: s === "secondary"
|
|
3957
3969
|
}), h = {
|
|
@@ -3969,37 +3981,34 @@ const cs = "_link_ctdzp_4", ps = "_secondary_ctdzp_36", fs = "_quiet_ctdzp_45",
|
|
|
3969
3981
|
...u,
|
|
3970
3982
|
children: [
|
|
3971
3983
|
o,
|
|
3972
|
-
u.target === "_blank" && /* @__PURE__ */ v.jsx(xt, { inherit: !0, svg:
|
|
3984
|
+
u.target === "_blank" && /* @__PURE__ */ v.jsx(xt, { inherit: !0, svg: gs })
|
|
3973
3985
|
]
|
|
3974
3986
|
}
|
|
3975
3987
|
);
|
|
3976
3988
|
});
|
|
3977
|
-
|
|
3978
|
-
const
|
|
3979
|
-
const { layoutStyles: n, componentProps: r } = Se(e), { className: i, appearance: o = "primary", quiet: t, style: s } = r, a =
|
|
3989
|
+
ms.displayName = "Link";
|
|
3990
|
+
const Bl = (e) => {
|
|
3991
|
+
const { layoutStyles: n, componentProps: r } = Se(e), { className: i, appearance: o = "primary", quiet: t, style: s } = r, a = se([$e.link], i, {
|
|
3980
3992
|
[$e.quiet]: t,
|
|
3981
3993
|
[$e.secondary]: o === "secondary"
|
|
3982
|
-
}), d = {
|
|
3983
|
-
...s,
|
|
3984
|
-
...n
|
|
3985
|
-
};
|
|
3994
|
+
}), d = Object.assign({}, s, n);
|
|
3986
3995
|
return { linkClassNames: a, styleCombined: d };
|
|
3987
3996
|
};
|
|
3988
|
-
const
|
|
3989
|
-
overflow:
|
|
3990
|
-
expanded:
|
|
3991
|
-
"shadow-top": "_shadow-
|
|
3992
|
-
"shadow-right": "_shadow-
|
|
3993
|
-
"shadow-bottom": "_shadow-
|
|
3994
|
-
"shadow-left": "_shadow-
|
|
3995
|
-
"overflow-text": "_overflow-
|
|
3996
|
-
"expand-button": "_expand-
|
|
3997
|
-
content:
|
|
3998
|
-
horizontal:
|
|
3999
|
-
truncate:
|
|
4000
|
-
},
|
|
3997
|
+
const vs = "_overflow_l5ucx_2", _s = "_expanded_l5ucx_2", Is = "_content_l5ucx_55", ys = "_horizontal_l5ucx_96", xs = "_truncate_l5ucx_99", ne = {
|
|
3998
|
+
overflow: vs,
|
|
3999
|
+
expanded: _s,
|
|
4000
|
+
"shadow-top": "_shadow-top_l5ucx_2",
|
|
4001
|
+
"shadow-right": "_shadow-right_l5ucx_6",
|
|
4002
|
+
"shadow-bottom": "_shadow-bottom_l5ucx_10",
|
|
4003
|
+
"shadow-left": "_shadow-left_l5ucx_14",
|
|
4004
|
+
"overflow-text": "_overflow-text_l5ucx_21",
|
|
4005
|
+
"expand-button": "_expand-button_l5ucx_34",
|
|
4006
|
+
content: Is,
|
|
4007
|
+
horizontal: ys,
|
|
4008
|
+
truncate: xs
|
|
4009
|
+
}, Pr = ce(
|
|
4001
4010
|
(e, n) => {
|
|
4002
|
-
const {
|
|
4011
|
+
const { rows: r = 1, ...i } = e, { layoutStyles: o, componentProps: t } = Se(i), [s, a] = J(!1), { className: d, style: u, children: l, ...h } = t, b = {
|
|
4003
4012
|
...u,
|
|
4004
4013
|
...o,
|
|
4005
4014
|
"--overflow-text-row": s ? "initial" : r
|
|
@@ -4012,13 +4021,13 @@ const ms = "_overflow_mhsvi_2", vs = "_expanded_mhsvi_2", _s = "_content_mhsvi_5
|
|
|
4012
4021
|
onExpand: D,
|
|
4013
4022
|
onCollapse: c,
|
|
4014
4023
|
...f
|
|
4015
|
-
} = h, p = S ?? "Show more...",
|
|
4016
|
-
if (a((
|
|
4024
|
+
} = h, p = S ?? "Show more...", I = g ?? "Show less...", m = (E) => {
|
|
4025
|
+
if (a((k) => !k), s) {
|
|
4017
4026
|
c == null || c(E);
|
|
4018
4027
|
return;
|
|
4019
4028
|
}
|
|
4020
4029
|
D == null || D(E);
|
|
4021
|
-
}, N =
|
|
4030
|
+
}, N = se(
|
|
4022
4031
|
[ne["overflow-text"]],
|
|
4023
4032
|
[ne.expandable],
|
|
4024
4033
|
{
|
|
@@ -4040,19 +4049,19 @@ const ms = "_overflow_mhsvi_2", vs = "_expanded_mhsvi_2", _s = "_content_mhsvi_5
|
|
|
4040
4049
|
className: ne["expand-button"],
|
|
4041
4050
|
onClick: m,
|
|
4042
4051
|
"aria-hidden": !0,
|
|
4043
|
-
children: s ?
|
|
4052
|
+
children: s ? I : p
|
|
4044
4053
|
}
|
|
4045
4054
|
)
|
|
4046
4055
|
]
|
|
4047
4056
|
}
|
|
4048
4057
|
);
|
|
4049
4058
|
}
|
|
4050
|
-
const
|
|
4059
|
+
const _ = se([ne["overflow-text"]]);
|
|
4051
4060
|
return /* @__PURE__ */ v.jsx(
|
|
4052
4061
|
"div",
|
|
4053
4062
|
{
|
|
4054
4063
|
ref: n,
|
|
4055
|
-
className:
|
|
4064
|
+
className: _,
|
|
4056
4065
|
style: b,
|
|
4057
4066
|
...h,
|
|
4058
4067
|
children: /* @__PURE__ */ v.jsx("div", { className: ne.content, children: l })
|
|
@@ -4060,8 +4069,8 @@ const ms = "_overflow_mhsvi_2", vs = "_expanded_mhsvi_2", _s = "_content_mhsvi_5
|
|
|
4060
4069
|
);
|
|
4061
4070
|
}
|
|
4062
4071
|
);
|
|
4063
|
-
|
|
4064
|
-
const
|
|
4072
|
+
Pr.displayName = "OverflowText";
|
|
4073
|
+
const kr = ce(
|
|
4065
4074
|
(e, n) => {
|
|
4066
4075
|
const { layoutStyles: r, componentProps: i } = Se(e), {
|
|
4067
4076
|
children: o,
|
|
@@ -4073,37 +4082,37 @@ const Pr = ce(
|
|
|
4073
4082
|
truncate: l,
|
|
4074
4083
|
gap: h,
|
|
4075
4084
|
...b
|
|
4076
|
-
} = i,
|
|
4085
|
+
} = i, _ = Q(null), [x, S] = J(!1), [g, D] = J({
|
|
4077
4086
|
left: !1,
|
|
4078
4087
|
right: !1,
|
|
4079
4088
|
top: !1,
|
|
4080
4089
|
bottom: !1
|
|
4081
4090
|
});
|
|
4082
4091
|
de(() => {
|
|
4083
|
-
if (!
|
|
4092
|
+
if (!_.current)
|
|
4084
4093
|
return;
|
|
4085
4094
|
if (s === "row") {
|
|
4086
|
-
const N =
|
|
4095
|
+
const N = _.current.offsetWidth < _.current.scrollWidth;
|
|
4087
4096
|
D((E) => ({
|
|
4088
4097
|
...E,
|
|
4089
4098
|
right: N
|
|
4090
4099
|
}));
|
|
4091
4100
|
return;
|
|
4092
4101
|
}
|
|
4093
|
-
const m =
|
|
4102
|
+
const m = _.current.offsetHeight < _.current.scrollHeight;
|
|
4094
4103
|
D((N) => ({
|
|
4095
4104
|
...N,
|
|
4096
4105
|
bottom: m
|
|
4097
4106
|
}));
|
|
4098
4107
|
}, [s]);
|
|
4099
4108
|
const c = () => {
|
|
4100
|
-
if (!
|
|
4109
|
+
if (!_.current)
|
|
4101
4110
|
return;
|
|
4102
|
-
const m =
|
|
4111
|
+
const m = _.current;
|
|
4103
4112
|
if (s === "row") {
|
|
4104
|
-
const
|
|
4113
|
+
const k = m.scrollLeft > 0, M = m.scrollLeft < m.scrollWidth - m.offsetWidth;
|
|
4105
4114
|
D({
|
|
4106
|
-
left:
|
|
4115
|
+
left: k,
|
|
4107
4116
|
right: M,
|
|
4108
4117
|
top: !1,
|
|
4109
4118
|
bottom: !1
|
|
@@ -4117,7 +4126,7 @@ const Pr = ce(
|
|
|
4117
4126
|
left: !1,
|
|
4118
4127
|
right: !1
|
|
4119
4128
|
});
|
|
4120
|
-
}, f =
|
|
4129
|
+
}, f = se([ne.overflow], {
|
|
4121
4130
|
[ne.vertical]: s === "column",
|
|
4122
4131
|
[ne.horizontal]: s === "row",
|
|
4123
4132
|
[ne.truncate]: !!l,
|
|
@@ -4129,13 +4138,13 @@ const Pr = ce(
|
|
|
4129
4138
|
...r
|
|
4130
4139
|
}, N = {
|
|
4131
4140
|
minHeight: d ?? void 0
|
|
4132
|
-
}, E = typeof l == "object" ? l.expandText : "Show more...",
|
|
4133
|
-
var
|
|
4141
|
+
}, E = typeof l == "object" ? l.expandText : "Show more...", k = typeof l == "object" ? l.collapseText : "Show less...", M = (O) => {
|
|
4142
|
+
var P, V;
|
|
4134
4143
|
if (S((R) => !R), setTimeout(() => {
|
|
4135
4144
|
c();
|
|
4136
4145
|
}, 100), typeof l == "object") {
|
|
4137
4146
|
if (x) {
|
|
4138
|
-
(
|
|
4147
|
+
(P = l.onCollapse) == null || P.call(l, O);
|
|
4139
4148
|
return;
|
|
4140
4149
|
}
|
|
4141
4150
|
(V = l.onExpand) == null || V.call(l, O);
|
|
@@ -4157,7 +4166,7 @@ const Pr = ce(
|
|
|
4157
4166
|
className: ne.content,
|
|
4158
4167
|
onScroll: c,
|
|
4159
4168
|
style: N,
|
|
4160
|
-
ref:
|
|
4169
|
+
ref: _,
|
|
4161
4170
|
direction: s,
|
|
4162
4171
|
gap: h,
|
|
4163
4172
|
tabIndex: 0,
|
|
@@ -4171,7 +4180,7 @@ const Pr = ce(
|
|
|
4171
4180
|
{
|
|
4172
4181
|
className: ne["expand-button"],
|
|
4173
4182
|
onClick: M,
|
|
4174
|
-
children: x ?
|
|
4183
|
+
children: x ? k : E
|
|
4175
4184
|
}
|
|
4176
4185
|
)
|
|
4177
4186
|
]
|
|
@@ -4181,7 +4190,7 @@ const Pr = ce(
|
|
|
4181
4190
|
const p = {
|
|
4182
4191
|
...a,
|
|
4183
4192
|
...r
|
|
4184
|
-
},
|
|
4193
|
+
}, I = {
|
|
4185
4194
|
minHeight: d ?? void 0
|
|
4186
4195
|
};
|
|
4187
4196
|
return /* @__PURE__ */ v.jsxs(
|
|
@@ -4199,8 +4208,8 @@ const Pr = ce(
|
|
|
4199
4208
|
{
|
|
4200
4209
|
className: ne.content,
|
|
4201
4210
|
onScroll: c,
|
|
4202
|
-
ref:
|
|
4203
|
-
style:
|
|
4211
|
+
ref: _,
|
|
4212
|
+
style: I,
|
|
4204
4213
|
direction: s,
|
|
4205
4214
|
gap: h,
|
|
4206
4215
|
tabIndex: 0,
|
|
@@ -4214,13 +4223,13 @@ const Pr = ce(
|
|
|
4214
4223
|
);
|
|
4215
4224
|
}
|
|
4216
4225
|
);
|
|
4217
|
-
|
|
4218
|
-
const
|
|
4219
|
-
Text:
|
|
4226
|
+
kr.displayName = "Overflow";
|
|
4227
|
+
const Ul = Object.assign(kr, {
|
|
4228
|
+
Text: Pr
|
|
4220
4229
|
});
|
|
4221
|
-
var
|
|
4230
|
+
var bs = wt, ws = function(n) {
|
|
4222
4231
|
var r = _e.useRef(n);
|
|
4223
|
-
return
|
|
4232
|
+
return bs(function() {
|
|
4224
4233
|
r.current = n;
|
|
4225
4234
|
}), r;
|
|
4226
4235
|
}, On = function(n, r) {
|
|
@@ -4229,7 +4238,7 @@ var xs = wt, bs = function(n) {
|
|
|
4229
4238
|
return;
|
|
4230
4239
|
}
|
|
4231
4240
|
n.current = r;
|
|
4232
|
-
},
|
|
4241
|
+
}, Es = function(n, r) {
|
|
4233
4242
|
var i = Q();
|
|
4234
4243
|
return ee(function(o) {
|
|
4235
4244
|
n.current = o, i.current && On(i.current, null), i.current = r, r && On(r, o);
|
|
@@ -4244,20 +4253,20 @@ var xs = wt, bs = function(n) {
|
|
|
4244
4253
|
"z-index": "-1000",
|
|
4245
4254
|
top: "0",
|
|
4246
4255
|
right: "0"
|
|
4247
|
-
},
|
|
4256
|
+
}, Cs = function(n) {
|
|
4248
4257
|
Object.keys(Dn).forEach(function(r) {
|
|
4249
4258
|
n.style.setProperty(r, Dn[r], "important");
|
|
4250
4259
|
});
|
|
4251
|
-
}, Nn =
|
|
4260
|
+
}, Nn = Cs, pe = null, Rn = function(n, r) {
|
|
4252
4261
|
var i = n.scrollHeight;
|
|
4253
4262
|
return r.sizingStyle.boxSizing === "border-box" ? i + r.borderSize : i - r.paddingSize;
|
|
4254
4263
|
};
|
|
4255
|
-
function
|
|
4264
|
+
function Ss(e, n, r, i) {
|
|
4256
4265
|
r === void 0 && (r = 1), i === void 0 && (i = 1 / 0), pe || (pe = document.createElement("textarea"), pe.setAttribute("tabindex", "-1"), pe.setAttribute("aria-hidden", "true"), Nn(pe)), pe.parentNode === null && document.body.appendChild(pe);
|
|
4257
4266
|
var o = e.paddingSize, t = e.borderSize, s = e.sizingStyle, a = s.boxSizing;
|
|
4258
4267
|
Object.keys(s).forEach(function(b) {
|
|
4259
|
-
var
|
|
4260
|
-
pe.style[
|
|
4268
|
+
var _ = b;
|
|
4269
|
+
pe.style[_] = s[_];
|
|
4261
4270
|
}), Nn(pe), pe.value = n;
|
|
4262
4271
|
var d = Rn(pe, e);
|
|
4263
4272
|
pe.value = n, d = Rn(pe, e), pe.value = "x";
|
|
@@ -4266,12 +4275,12 @@ function Cs(e, n, r, i) {
|
|
|
4266
4275
|
var h = u * i;
|
|
4267
4276
|
return a === "border-box" && (h = h + o + t), d = Math.min(h, d), [d, u];
|
|
4268
4277
|
}
|
|
4269
|
-
var
|
|
4270
|
-
},
|
|
4278
|
+
var Pn = function() {
|
|
4279
|
+
}, Os = function(n, r) {
|
|
4271
4280
|
return n.reduce(function(i, o) {
|
|
4272
4281
|
return i[o] = r[o], i;
|
|
4273
4282
|
}, {});
|
|
4274
|
-
},
|
|
4283
|
+
}, Ds = [
|
|
4275
4284
|
"borderBottomWidth",
|
|
4276
4285
|
"borderLeftWidth",
|
|
4277
4286
|
"borderRightWidth",
|
|
@@ -4295,23 +4304,23 @@ var kn = function() {
|
|
|
4295
4304
|
"textTransform",
|
|
4296
4305
|
"width",
|
|
4297
4306
|
"wordBreak"
|
|
4298
|
-
],
|
|
4307
|
+
], Ns = !!document.documentElement.currentStyle, Rs = function(n) {
|
|
4299
4308
|
var r = window.getComputedStyle(n);
|
|
4300
4309
|
if (r === null)
|
|
4301
4310
|
return null;
|
|
4302
|
-
var i =
|
|
4311
|
+
var i = Os(Ds, r), o = i.boxSizing;
|
|
4303
4312
|
if (o === "")
|
|
4304
4313
|
return null;
|
|
4305
|
-
|
|
4314
|
+
Ns && o === "border-box" && (i.width = parseFloat(i.width) + parseFloat(i.borderRightWidth) + parseFloat(i.borderLeftWidth) + parseFloat(i.paddingRight) + parseFloat(i.paddingLeft) + "px");
|
|
4306
4315
|
var t = parseFloat(i.paddingBottom) + parseFloat(i.paddingTop), s = parseFloat(i.borderBottomWidth) + parseFloat(i.borderTopWidth);
|
|
4307
4316
|
return {
|
|
4308
4317
|
sizingStyle: i,
|
|
4309
4318
|
paddingSize: t,
|
|
4310
4319
|
borderSize: s
|
|
4311
4320
|
};
|
|
4312
|
-
},
|
|
4321
|
+
}, Ps = Rs;
|
|
4313
4322
|
function Mr(e, n, r) {
|
|
4314
|
-
var i =
|
|
4323
|
+
var i = ws(r);
|
|
4315
4324
|
_e.useLayoutEffect(function() {
|
|
4316
4325
|
var o = function(s) {
|
|
4317
4326
|
return i.current(s);
|
|
@@ -4324,14 +4333,14 @@ function Mr(e, n, r) {
|
|
|
4324
4333
|
}
|
|
4325
4334
|
var ks = function(n) {
|
|
4326
4335
|
Mr(window, "resize", n);
|
|
4327
|
-
},
|
|
4336
|
+
}, Ms = function(n) {
|
|
4328
4337
|
Mr(document.fonts, "loadingdone", n);
|
|
4329
|
-
},
|
|
4330
|
-
var i = n.cacheMeasurements, o = n.maxRows, t = n.minRows, s = n.onChange, a = s === void 0 ?
|
|
4331
|
-
var f = b.current, p = i && S.current ? S.current :
|
|
4338
|
+
}, Ts = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], Vs = function(n, r) {
|
|
4339
|
+
var i = n.cacheMeasurements, o = n.maxRows, t = n.minRows, s = n.onChange, a = s === void 0 ? Pn : s, d = n.onHeightChange, u = d === void 0 ? Pn : d, l = ve(n, Ts), h = l.value !== void 0, b = _e.useRef(null), _ = Es(b, r), x = _e.useRef(0), S = _e.useRef(), g = function() {
|
|
4340
|
+
var f = b.current, p = i && S.current ? S.current : Ps(f);
|
|
4332
4341
|
if (p) {
|
|
4333
4342
|
S.current = p;
|
|
4334
|
-
var
|
|
4343
|
+
var I = Ss(p, f.value || f.placeholder || "x", t, o), m = I[0], N = I[1];
|
|
4335
4344
|
x.current !== m && (x.current = m, f.style.setProperty("height", m + "px", "important"), u(m, {
|
|
4336
4345
|
rowHeight: N
|
|
4337
4346
|
}));
|
|
@@ -4339,20 +4348,20 @@ var ks = function(n) {
|
|
|
4339
4348
|
}, D = function(f) {
|
|
4340
4349
|
h || g(), a(f);
|
|
4341
4350
|
};
|
|
4342
|
-
return _e.useLayoutEffect(g), ks(g),
|
|
4351
|
+
return _e.useLayoutEffect(g), ks(g), Ms(g), /* @__PURE__ */ _e.createElement("textarea", $({}, l, {
|
|
4343
4352
|
onChange: D,
|
|
4344
|
-
ref:
|
|
4353
|
+
ref: _
|
|
4345
4354
|
}));
|
|
4346
|
-
},
|
|
4347
|
-
const
|
|
4348
|
-
textarea:
|
|
4349
|
-
"has-cols": "_has-
|
|
4350
|
-
counter:
|
|
4351
|
-
error:
|
|
4352
|
-
disabled:
|
|
4353
|
-
"disable-resize": "_disable-
|
|
4354
|
-
readonly:
|
|
4355
|
-
},
|
|
4355
|
+
}, As = /* @__PURE__ */ _e.forwardRef(Vs);
|
|
4356
|
+
const Hs = "_textarea_1bgqi_4", js = "_counter_1bgqi_50", Ks = "_error_1bgqi_62", $s = "_disabled_1bgqi_69", Fs = "_readonly_1bgqi_79", He = {
|
|
4357
|
+
textarea: Hs,
|
|
4358
|
+
"has-cols": "_has-cols_1bgqi_23",
|
|
4359
|
+
counter: js,
|
|
4360
|
+
error: Ks,
|
|
4361
|
+
disabled: $s,
|
|
4362
|
+
"disable-resize": "_disable-resize_1bgqi_76",
|
|
4363
|
+
readonly: Fs
|
|
4364
|
+
}, Ls = ce(
|
|
4356
4365
|
(e, n) => {
|
|
4357
4366
|
const { layoutStyles: r, componentProps: i } = Se(e), {
|
|
4358
4367
|
className: o,
|
|
@@ -4365,7 +4374,7 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4365
4374
|
moreInfo: l,
|
|
4366
4375
|
onChange: h,
|
|
4367
4376
|
required: b,
|
|
4368
|
-
showCounter:
|
|
4377
|
+
showCounter: _,
|
|
4369
4378
|
onFocus: x,
|
|
4370
4379
|
onBlur: S,
|
|
4371
4380
|
id: g,
|
|
@@ -4373,26 +4382,26 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4373
4382
|
autoHeight: c,
|
|
4374
4383
|
labelProps: f,
|
|
4375
4384
|
placeholder: p,
|
|
4376
|
-
style:
|
|
4385
|
+
style: I,
|
|
4377
4386
|
...m
|
|
4378
|
-
} = i, N = Q(null), [E,
|
|
4387
|
+
} = i, N = Q(null), [E, k] = J(0), [M, O] = J(!1), [P, V] = J(!1), [R, F] = J("off");
|
|
4379
4388
|
de(() => {
|
|
4380
4389
|
var H;
|
|
4381
|
-
|
|
4390
|
+
k(((H = N.current) == null ? void 0 : H.defaultValue.length) ?? 0);
|
|
4382
4391
|
}, []);
|
|
4383
4392
|
const L = (H) => {
|
|
4384
|
-
h == null || h(H, { value: H.target.value }), E !== H.target.value.length && O(!0),
|
|
4393
|
+
h == null || h(H, { value: H.target.value }), E !== H.target.value.length && O(!0), k(H.target.value.length);
|
|
4385
4394
|
}, K = (H) => {
|
|
4386
4395
|
x == null || x(H), V(!0);
|
|
4387
|
-
},
|
|
4396
|
+
}, U = (H) => {
|
|
4388
4397
|
S == null || S(H), V(!1), F("off"), O(!1);
|
|
4389
|
-
}, Z = Ie(), j = g ?? Z, W = Ie(), Y = Ie(), oe = typeof s != "boolean" ? s : void 0, T =
|
|
4390
|
-
[
|
|
4391
|
-
[
|
|
4392
|
-
[
|
|
4393
|
-
[
|
|
4394
|
-
[
|
|
4395
|
-
}), A = { ...
|
|
4398
|
+
}, Z = Ie(), j = g ?? Z, W = Ie(), Y = Ie(), oe = typeof s != "boolean" ? s : void 0, T = se([He.textarea], o, {
|
|
4399
|
+
[He.error]: s,
|
|
4400
|
+
[He["disable-resize"]]: t,
|
|
4401
|
+
[He.disabled]: m.disabled,
|
|
4402
|
+
[He.readonly]: m.readOnly,
|
|
4403
|
+
[He["has-cols"]]: m.cols != null
|
|
4404
|
+
}), A = { ...I, ...r }, w = c ? As : "textarea";
|
|
4396
4405
|
return /* @__PURE__ */ v.jsxs(
|
|
4397
4406
|
"div",
|
|
4398
4407
|
{
|
|
@@ -4405,7 +4414,7 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4405
4414
|
{
|
|
4406
4415
|
htmlFor: j,
|
|
4407
4416
|
moreInfo: l,
|
|
4408
|
-
openMoreInfo:
|
|
4417
|
+
openMoreInfo: P,
|
|
4409
4418
|
required: b,
|
|
4410
4419
|
...f,
|
|
4411
4420
|
children: u
|
|
@@ -4417,7 +4426,7 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4417
4426
|
rows: 3,
|
|
4418
4427
|
onChange: L,
|
|
4419
4428
|
onFocus: K,
|
|
4420
|
-
onBlur:
|
|
4429
|
+
onBlur: U,
|
|
4421
4430
|
ref: Be([n, N]),
|
|
4422
4431
|
required: b,
|
|
4423
4432
|
maxLength: D,
|
|
@@ -4428,7 +4437,7 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4428
4437
|
"aria-invalid": s ? !!s : void 0
|
|
4429
4438
|
}
|
|
4430
4439
|
),
|
|
4431
|
-
a ||
|
|
4440
|
+
a || _ || oe || d ? /* @__PURE__ */ v.jsx(
|
|
4432
4441
|
Et,
|
|
4433
4442
|
{
|
|
4434
4443
|
id: W,
|
|
@@ -4436,7 +4445,7 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4436
4445
|
maxLength: D,
|
|
4437
4446
|
inputLength: E,
|
|
4438
4447
|
isTyping: M,
|
|
4439
|
-
showCounter:
|
|
4448
|
+
showCounter: _,
|
|
4440
4449
|
errorMessage: oe,
|
|
4441
4450
|
errorAriaLive: R,
|
|
4442
4451
|
description: d
|
|
@@ -4448,18 +4457,18 @@ const As = "_textarea_5cep3_4", Hs = "_counter_5cep3_50", js = "_error_5cep3_62"
|
|
|
4448
4457
|
);
|
|
4449
4458
|
}
|
|
4450
4459
|
);
|
|
4451
|
-
|
|
4452
|
-
const
|
|
4453
|
-
textfield:
|
|
4454
|
-
input:
|
|
4455
|
-
"input-wrapper": "_input-
|
|
4460
|
+
Ls.displayName = "Textarea";
|
|
4461
|
+
const Bs = "_textfield_1acx5_4", Us = "_input_1acx5_17", zs = "_prefix_1acx5_43", Ws = "_suffix_1acx5_44", qs = "_small_1acx5_101", Ys = "_large_1acx5_104", Gs = "_error_1acx5_113", Ce = {
|
|
4462
|
+
textfield: Bs,
|
|
4463
|
+
input: Us,
|
|
4464
|
+
"input-wrapper": "_input-wrapper_1acx5_30",
|
|
4456
4465
|
prefix: zs,
|
|
4457
|
-
suffix:
|
|
4458
|
-
"loading-spinner": "_loading-
|
|
4459
|
-
small:
|
|
4460
|
-
large:
|
|
4461
|
-
error:
|
|
4462
|
-
},
|
|
4466
|
+
suffix: Ws,
|
|
4467
|
+
"loading-spinner": "_loading-spinner_1acx5_63",
|
|
4468
|
+
small: qs,
|
|
4469
|
+
large: Ys,
|
|
4470
|
+
error: Gs
|
|
4471
|
+
}, Xs = ce(
|
|
4463
4472
|
function(e, n) {
|
|
4464
4473
|
const { layoutStyles: r, componentProps: i } = Se(e), {
|
|
4465
4474
|
className: o,
|
|
@@ -4471,7 +4480,7 @@ const Ls = "_textfield_aoz91_4", Bs = "_input_aoz91_17", zs = "_prefix_aoz91_43"
|
|
|
4471
4480
|
suffix: l,
|
|
4472
4481
|
size: h,
|
|
4473
4482
|
type: b = "text",
|
|
4474
|
-
required:
|
|
4483
|
+
required: _,
|
|
4475
4484
|
onFocus: x,
|
|
4476
4485
|
onBlur: S,
|
|
4477
4486
|
id: g,
|
|
@@ -4479,31 +4488,31 @@ const Ls = "_textfield_aoz91_4", Bs = "_input_aoz91_17", zs = "_prefix_aoz91_43"
|
|
|
4479
4488
|
hint: c,
|
|
4480
4489
|
loading: f,
|
|
4481
4490
|
disabled: p,
|
|
4482
|
-
labelProps:
|
|
4491
|
+
labelProps: I,
|
|
4483
4492
|
style: m,
|
|
4484
4493
|
placeholder: N,
|
|
4485
4494
|
...E
|
|
4486
|
-
} = i, [
|
|
4487
|
-
x == null || x(T), M(!0),
|
|
4495
|
+
} = i, [k, M] = J(!1), [O, P] = J("off"), V = (T) => {
|
|
4496
|
+
x == null || x(T), M(!0), P(s);
|
|
4488
4497
|
}, R = (T) => {
|
|
4489
|
-
S == null || S(T), M(!1),
|
|
4490
|
-
}, F = Ie(), L = g ?? F, K = Ie(),
|
|
4491
|
-
return /* @__PURE__ */ v.jsxs("div", { className:
|
|
4498
|
+
S == null || S(T), M(!1), P("off");
|
|
4499
|
+
}, F = Ie(), L = g ?? F, K = Ie(), U = Ie(), Z = Ie(), j = Ie(), W = Q(null), Y = typeof t != "boolean" ? t : void 0, oe = { ...m, ...r };
|
|
4500
|
+
return /* @__PURE__ */ v.jsxs("div", { className: se(Ce.textfield, o), style: oe, children: [
|
|
4492
4501
|
a ? /* @__PURE__ */ v.jsx(
|
|
4493
4502
|
bt,
|
|
4494
4503
|
{
|
|
4495
4504
|
moreInfo: d,
|
|
4496
|
-
openMoreInfo:
|
|
4497
|
-
required:
|
|
4505
|
+
openMoreInfo: k,
|
|
4506
|
+
required: _,
|
|
4498
4507
|
htmlFor: L,
|
|
4499
|
-
...
|
|
4508
|
+
...I,
|
|
4500
4509
|
children: a
|
|
4501
4510
|
}
|
|
4502
4511
|
) : null,
|
|
4503
4512
|
/* @__PURE__ */ v.jsxs(
|
|
4504
4513
|
"div",
|
|
4505
4514
|
{
|
|
4506
|
-
className:
|
|
4515
|
+
className: se(Ce["input-wrapper"], {
|
|
4507
4516
|
[Ce.small]: h === "small",
|
|
4508
4517
|
[Ce.large]: h === "large"
|
|
4509
4518
|
}),
|
|
@@ -4526,13 +4535,13 @@ const Ls = "_textfield_aoz91_4", Bs = "_input_aoz91_17", zs = "_prefix_aoz91_43"
|
|
|
4526
4535
|
"input",
|
|
4527
4536
|
{
|
|
4528
4537
|
id: L,
|
|
4529
|
-
className:
|
|
4538
|
+
className: se(Ce.input, {
|
|
4530
4539
|
[Ce.error]: t
|
|
4531
4540
|
}),
|
|
4532
4541
|
onFocus: V,
|
|
4533
4542
|
onBlur: R,
|
|
4534
4543
|
ref: Be([n, W]),
|
|
4535
|
-
required:
|
|
4544
|
+
required: _,
|
|
4536
4545
|
placeholder: N,
|
|
4537
4546
|
type: b,
|
|
4538
4547
|
disabled: p,
|
|
@@ -4547,7 +4556,7 @@ const Ls = "_textfield_aoz91_4", Bs = "_input_aoz91_17", zs = "_prefix_aoz91_43"
|
|
|
4547
4556
|
{
|
|
4548
4557
|
className: Ce.suffix,
|
|
4549
4558
|
"aria-hidden": !0,
|
|
4550
|
-
id: `suffix${
|
|
4559
|
+
id: `suffix${U}`,
|
|
4551
4560
|
children: l
|
|
4552
4561
|
}
|
|
4553
4562
|
) : null
|
|
@@ -4567,25 +4576,25 @@ const Ls = "_textfield_aoz91_4", Bs = "_input_aoz91_17", zs = "_prefix_aoz91_43"
|
|
|
4567
4576
|
/* @__PURE__ */ v.jsx(Mn, { "aria-hidden": !0, id: j, children: N })
|
|
4568
4577
|
] });
|
|
4569
4578
|
}
|
|
4570
|
-
), zl = Object.assign(
|
|
4579
|
+
), zl = Object.assign(Xs, {});
|
|
4571
4580
|
export {
|
|
4572
|
-
$l as $,
|
|
4573
4581
|
Or as E,
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4582
|
+
Fl as H,
|
|
4583
|
+
Pr as I,
|
|
4584
|
+
Ll as O,
|
|
4585
|
+
bi as P,
|
|
4578
4586
|
Dr as S,
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4587
|
+
Bl as V,
|
|
4588
|
+
Sr as a,
|
|
4589
|
+
sn as b,
|
|
4590
|
+
zl as c,
|
|
4591
|
+
Ls as d,
|
|
4582
4592
|
Ci as h,
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
bi as v,
|
|
4593
|
+
Oi as j,
|
|
4594
|
+
Ul as o,
|
|
4595
|
+
ms as q,
|
|
4587
4596
|
Cr as w,
|
|
4588
|
-
|
|
4589
|
-
|
|
4597
|
+
$l as x,
|
|
4598
|
+
Si as y
|
|
4590
4599
|
};
|
|
4591
|
-
//# sourceMappingURL=index-
|
|
4600
|
+
//# sourceMappingURL=index-8ee9499c.js.map
|