@servicetitan/anvil2 1.2.5 → 1.2.7
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-2e4d9ed5.js +89 -0
- package/Alert-2e4d9ed5.js.map +1 -0
- package/Alert-94c37437.cjs +2 -0
- package/Alert-94c37437.cjs.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.css +1 -1
- package/Alert.js +1 -1
- package/{Announcement-d04009ea.js → Announcement-1db4ac33.js} +18 -17
- package/Announcement-1db4ac33.js.map +1 -0
- package/Announcement-2058bd02.cjs +2 -0
- package/Announcement-2058bd02.cjs.map +1 -0
- package/Announcement.cjs +1 -1
- package/Announcement.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.js +1 -1
- package/Badge-b8764640.cjs +2 -0
- package/Badge-b8764640.cjs.map +1 -0
- package/Badge-df96f15a.js +45 -0
- package/Badge-df96f15a.js.map +1 -0
- package/Badge.cjs +1 -1
- package/Badge.js +1 -1
- package/Button-30b35802.cjs +2 -0
- package/Button-30b35802.cjs.map +1 -0
- package/Button-3b93bd5d.js +289 -0
- package/Button-3b93bd5d.js.map +1 -0
- package/Button.cjs +1 -1
- package/Button.css +1 -1
- package/Button.js +27 -27
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.js +27 -27
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.js +27 -27
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.js +27 -27
- package/{Calendar-073dc10d.js → Calendar-cbfe3c06.js} +390 -368
- package/{Calendar-073dc10d.js.map → Calendar-cbfe3c06.js.map} +1 -1
- package/{Calendar-706f41ff.cjs → Calendar-ec151b3b.cjs} +2 -2
- package/{Calendar-706f41ff.cjs.map → Calendar-ec151b3b.cjs.map} +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.js +1 -1
- package/{Card-92ebca1f.cjs → Card-20628287.cjs} +2 -2
- package/{Card-92ebca1f.cjs.map → Card-20628287.cjs.map} +1 -1
- package/{Card-33f3ad0a.js → Card-bb358803.js} +6 -6
- package/{Card-33f3ad0a.js.map → Card-bb358803.js.map} +1 -1
- package/Card.cjs +1 -1
- package/Card.js +1 -1
- package/{Checkbox-d503c3b6.js → Checkbox-3de9628c.js} +24 -24
- package/Checkbox-3de9628c.js.map +1 -0
- package/Checkbox-d325d851.cjs +2 -0
- package/Checkbox-d325d851.cjs.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.js +1 -1
- package/{Chip-b52e1bd7.cjs → Chip-95370241.cjs} +2 -2
- package/{Chip-b52e1bd7.cjs.map → Chip-95370241.cjs.map} +1 -1
- package/{Chip-a8eb2656.js → Chip-c0f71a26.js} +15 -15
- package/Chip-c0f71a26.js.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.js +27 -27
- package/Details.cjs +1 -1
- package/Details.js +27 -27
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.js +36 -36
- package/Divider-6646eeb8.cjs +2 -0
- package/Divider-6646eeb8.cjs.map +1 -0
- package/Divider-b3bff73a.js +74 -0
- package/Divider-b3bff73a.js.map +1 -0
- package/Divider.cjs +1 -1
- package/Divider.css +1 -1
- package/Divider.js +1 -1
- package/{Drawer-f68286e8.js → Drawer-9775ed75.js} +65 -46
- package/Drawer-9775ed75.js.map +1 -0
- package/Drawer-dff5abf1.cjs +2 -0
- package/Drawer-dff5abf1.cjs.map +1 -0
- package/Drawer.cjs +1 -1
- package/Drawer.js +1 -1
- package/{Flex-4b128a0e.cjs → Flex-971b5295.cjs} +2 -2
- package/{Flex-4b128a0e.cjs.map → Flex-971b5295.cjs.map} +1 -1
- package/{Flex-f6e67921.js → Flex-d338e855.js} +2 -2
- package/{Flex-f6e67921.js.map → Flex-d338e855.js.map} +1 -1
- package/Flex.cjs +1 -1
- package/Flex.js +1 -1
- package/{Grid-8226f7a1.cjs → Grid-37ded954.cjs} +2 -2
- package/{Grid-8226f7a1.cjs.map → Grid-37ded954.cjs.map} +1 -1
- package/{Grid-992de375.js → Grid-5bad450f.js} +4 -4
- package/{Grid-992de375.js.map → Grid-5bad450f.js.map} +1 -1
- package/Grid.cjs +1 -1
- package/Grid.js +1 -1
- package/{Helper-74a1f07f-6cf9865b.cjs → Helper-74a1f07f-30e4fd46.cjs} +2 -2
- package/{Helper-74a1f07f-6cf9865b.cjs.map → Helper-74a1f07f-30e4fd46.cjs.map} +1 -1
- package/{Helper-74a1f07f-067ae3f7.js → Helper-74a1f07f-60547798.js} +3 -3
- package/{Helper-74a1f07f-067ae3f7.js.map → Helper-74a1f07f-60547798.js.map} +1 -1
- package/{Icon-ae9b951b.cjs → Icon-43ce0e6c.cjs} +2 -2
- package/{Icon-ae9b951b.cjs.map → Icon-43ce0e6c.cjs.map} +1 -1
- package/{Icon-fa8f3dc8.js → Icon-b443eea4.js} +8 -8
- package/Icon-b443eea4.js.map +1 -0
- package/Icon.cjs +1 -1
- package/Icon.js +1 -1
- package/Link.cjs +1 -1
- package/Link.js +27 -27
- package/ListView-43bbc290.cjs +2 -0
- package/ListView-43bbc290.cjs.map +1 -0
- package/{ListView-1f75e2de.js → ListView-482c54ad.js} +100 -100
- package/ListView-482c54ad.js.map +1 -0
- package/ListView.cjs +1 -1
- package/ListView.js +1 -1
- package/Listbox-8c610bf2.cjs +2 -0
- package/Listbox-8c610bf2.cjs.map +1 -0
- package/{Listbox-cdf02568.js → Listbox-b110c64d.js} +68 -68
- package/Listbox-b110c64d.js.map +1 -0
- package/Listbox.cjs +1 -1
- package/Listbox.js +1 -1
- package/Menu.cjs +1 -1
- package/Menu.js +1 -1
- package/Overflow.cjs +1 -1
- package/Overflow.js +27 -27
- package/Popover.cjs +1 -1
- package/Popover.cjs.map +1 -1
- package/Popover.d.ts +1 -22
- package/Popover.js +49 -49
- package/Popover.js.map +1 -1
- package/{ProgressBar-5f350a3f.js → ProgressBar-91240dab.js} +94 -92
- package/ProgressBar-91240dab.js.map +1 -0
- package/ProgressBar-b25b2493.cjs +2 -0
- package/ProgressBar-b25b2493.cjs.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.js +1 -1
- package/{Radio-4189b000.js → Radio-a747c89a.js} +13 -13
- package/Radio-a747c89a.js.map +1 -0
- package/Radio-ed00ea9d.cjs +2 -0
- package/Radio-ed00ea9d.cjs.map +1 -0
- package/Radio.cjs +1 -1
- package/Radio.js +1 -1
- package/{SideNav-e92d850f.js → SideNav-b5ef91d4.js} +118 -118
- package/SideNav-b5ef91d4.js.map +1 -0
- package/{SideNav-6de704fd.cjs → SideNav-dbcdf7cb.cjs} +6 -6
- package/SideNav-dbcdf7cb.cjs.map +1 -0
- package/SideNav.cjs +1 -1
- package/SideNav.js +1 -1
- package/{SrOnly-0c13a721.js → SrOnly-864bd4cb.js} +3 -3
- package/SrOnly-864bd4cb.js.map +1 -0
- package/SrOnly-88e8fca6.cjs +2 -0
- package/SrOnly-88e8fca6.cjs.map +1 -0
- package/SrOnly.cjs +1 -1
- package/SrOnly.js +1 -1
- package/Stepper-7c787b24.js +391 -0
- package/Stepper-7c787b24.js.map +1 -0
- package/Stepper-e08b9998.cjs +2 -0
- package/Stepper-e08b9998.cjs.map +1 -0
- package/Stepper.cjs +1 -1
- package/Stepper.d.ts +2 -2
- package/Stepper.js +4 -4
- package/{Switch-b0a37fc1.js → Switch-39010760.js} +21 -21
- package/{Switch-b0a37fc1.js.map → Switch-39010760.js.map} +1 -1
- package/Switch-c0bea091.cjs +2 -0
- package/{Switch-285b3272.cjs.map → Switch-c0bea091.cjs.map} +1 -1
- package/Switch.cjs +1 -1
- package/Switch.js +1 -1
- package/Tab-0bcbe9c7.cjs +10 -0
- package/Tab-0bcbe9c7.cjs.map +1 -0
- package/Tab-f636d6c5.js +422 -0
- package/Tab-f636d6c5.js.map +1 -0
- package/Tab.cjs +1 -1
- package/Tab.js +1 -1
- package/{Text-4c30916c.js → Text-465104f6.js} +46 -46
- package/Text-465104f6.js.map +1 -0
- package/Text-631c229a.cjs +2 -0
- package/Text-631c229a.cjs.map +1 -0
- package/Text.cjs +1 -1
- package/Text.js +1 -1
- package/TextField.cjs +1 -1
- package/TextField.js +27 -27
- package/Textarea.cjs +1 -1
- package/Textarea.js +27 -27
- package/{Toast-f15e9d36.js → Toast-36679136.js} +82 -66
- package/Toast-36679136.js.map +1 -0
- package/{Toast-834c85cd.cjs → Toast-44e3ff94.cjs} +5 -5
- package/Toast-44e3ff94.cjs.map +1 -0
- package/Toast.cjs +1 -1
- package/Toast.js +1 -1
- package/Tooltip.cjs +1 -1
- package/Tooltip.js +29 -29
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +3 -23
- package/anvil2.js +27 -27
- package/{index-8ee9499c.js → index-1dc4c6d3.js} +667 -605
- package/{index-8ee9499c.js.map → index-1dc4c6d3.js.map} +1 -1
- package/{index-dfb6272f.cjs → index-25ea279e.cjs} +5 -5
- package/{index-dfb6272f.cjs.map → index-25ea279e.cjs.map} +1 -1
- package/index-afacb017-0ced4668.cjs +2 -0
- package/index-afacb017-0ced4668.cjs.map +1 -0
- package/{index-098ca719-3c14c40c.js → index-afacb017-e81aec1d.js} +71 -68
- package/index-afacb017-e81aec1d.js.map +1 -0
- package/index-f91265d9-04a0345c.cjs +2 -0
- package/index-f91265d9-04a0345c.cjs.map +1 -0
- package/index-f91265d9-3d747651.js +121 -0
- package/index-f91265d9-3d747651.js.map +1 -0
- package/index3.css +1 -1
- package/{motion-9462a11a.js → motion-a0a946d6.js} +1696 -1638
- package/motion-a0a946d6.js.map +1 -0
- package/motion-dae3950e.cjs +2 -0
- package/motion-dae3950e.cjs.map +1 -0
- package/package.json +3 -4
- package/use-reduced-motion-a766a46b.cjs +2 -0
- package/use-reduced-motion-a766a46b.cjs.map +1 -0
- package/{use-reduced-motion-fa02c531.js → use-reduced-motion-b359504d.js} +11 -11
- package/use-reduced-motion-b359504d.js.map +1 -0
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.js +27 -27
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +27 -27
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.js +27 -27
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +27 -27
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +27 -27
- package/Alert-6336e146.cjs +0 -2
- package/Alert-6336e146.cjs.map +0 -1
- package/Alert-6faa0b05.js +0 -88
- package/Alert-6faa0b05.js.map +0 -1
- package/Announcement-d04009ea.js.map +0 -1
- package/Announcement-fff87b68.cjs +0 -2
- package/Announcement-fff87b68.cjs.map +0 -1
- package/Badge-0073b5a1.cjs +0 -2
- package/Badge-0073b5a1.cjs.map +0 -1
- package/Badge-f761458c.js +0 -35
- package/Badge-f761458c.js.map +0 -1
- package/Button-268ba8a9.cjs +0 -2
- package/Button-268ba8a9.cjs.map +0 -1
- package/Button-d05507c5.js +0 -289
- package/Button-d05507c5.js.map +0 -1
- package/Checkbox-d503c3b6.js.map +0 -1
- package/Checkbox-edf070c3.cjs +0 -2
- package/Checkbox-edf070c3.cjs.map +0 -1
- package/Chip-a8eb2656.js.map +0 -1
- package/Divider-86c1f4ea.cjs +0 -2
- package/Divider-86c1f4ea.cjs.map +0 -1
- package/Divider-edca965e.js +0 -74
- package/Divider-edca965e.js.map +0 -1
- package/Drawer-6c2a6e0c.cjs +0 -2
- package/Drawer-6c2a6e0c.cjs.map +0 -1
- package/Drawer-f68286e8.js.map +0 -1
- package/Icon-fa8f3dc8.js.map +0 -1
- package/ListView-14d80585.cjs +0 -2
- package/ListView-14d80585.cjs.map +0 -1
- package/ListView-1f75e2de.js.map +0 -1
- package/Listbox-306a8d62.cjs +0 -2
- package/Listbox-306a8d62.cjs.map +0 -1
- package/Listbox-cdf02568.js.map +0 -1
- package/ProgressBar-29d21945.cjs +0 -2
- package/ProgressBar-29d21945.cjs.map +0 -1
- package/ProgressBar-5f350a3f.js.map +0 -1
- package/Radio-4189b000.js.map +0 -1
- package/Radio-abd4d3fd.cjs +0 -2
- package/Radio-abd4d3fd.cjs.map +0 -1
- package/SideNav-6de704fd.cjs.map +0 -1
- package/SideNav-e92d850f.js.map +0 -1
- package/SrOnly-0c13a721.js.map +0 -1
- package/SrOnly-ecf7240b.cjs +0 -2
- package/SrOnly-ecf7240b.cjs.map +0 -1
- package/Stepper-e776cc28.cjs +0 -2
- package/Stepper-e776cc28.cjs.map +0 -1
- package/Stepper-fa554908.js +0 -390
- package/Stepper-fa554908.js.map +0 -1
- package/Switch-285b3272.cjs +0 -2
- package/Tab-1934a4ca.js +0 -448
- package/Tab-1934a4ca.js.map +0 -1
- package/Tab-ad70a0a5.cjs +0 -10
- package/Tab-ad70a0a5.cjs.map +0 -1
- package/Text-4c30916c.js.map +0 -1
- package/Text-ed02cc62.cjs +0 -2
- package/Text-ed02cc62.cjs.map +0 -1
- package/Toast-834c85cd.cjs.map +0 -1
- package/Toast-f15e9d36.js.map +0 -1
- package/index-098ca719-3c14c40c.js.map +0 -1
- package/index-098ca719-8e068129.cjs +0 -2
- package/index-098ca719-8e068129.cjs.map +0 -1
- package/index-da56edbc-372336bd.js +0 -120
- package/index-da56edbc-372336bd.js.map +0 -1
- package/index-da56edbc-53f59f54.cjs +0 -2
- package/index-da56edbc-53f59f54.cjs.map +0 -1
- package/motion-9462a11a.js.map +0 -1
- package/motion-ee26ec15.cjs +0 -2
- package/motion-ee26ec15.cjs.map +0 -1
- package/use-reduced-motion-00575ab2.cjs +0 -2
- package/use-reduced-motion-00575ab2.cjs.map +0 -1
- package/use-reduced-motion-fa02c531.js.map +0 -1
- /package/{index-098ca719.css → index-afacb017.css} +0 -0
- /package/{index-da56edbc.css → index-f91265d9.css} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
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
|
|
11
|
-
import "./Divider-
|
|
12
|
-
import { a as Hr } from "./Drawer-
|
|
13
|
-
import { j as vt } from "./Flex-
|
|
14
|
-
import "./Grid-
|
|
15
|
-
import {
|
|
16
|
-
import { j as bt } from "./ProgressBar-
|
|
17
|
-
import { i as kn } from "./Listbox-
|
|
18
|
-
import { t as _t } from "./ListView-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./Radio-
|
|
21
|
-
import { P as y, _ as $, b as ve, a as jr } from "./SideNav-
|
|
22
|
-
import { p as Mn } from "./SrOnly-
|
|
2
|
+
import "./Alert-2e4d9ed5.js";
|
|
3
|
+
import "./Announcement-1db4ac33.js";
|
|
4
|
+
import "./index-f91265d9-3d747651.js";
|
|
5
|
+
import "./Badge-df96f15a.js";
|
|
6
|
+
import { B as We, l as Vr } from "./Button-3b93bd5d.js";
|
|
7
|
+
import "./Calendar-cbfe3c06.js";
|
|
8
|
+
import "./Card-bb358803.js";
|
|
9
|
+
import { r as Ar } from "./Checkbox-3de9628c.js";
|
|
10
|
+
import { $ as ln } from "./Chip-c0f71a26.js";
|
|
11
|
+
import "./Divider-b3bff73a.js";
|
|
12
|
+
import { a as Hr } from "./Drawer-9775ed75.js";
|
|
13
|
+
import { j as vt } from "./Flex-d338e855.js";
|
|
14
|
+
import "./Grid-5bad450f.js";
|
|
15
|
+
import { C as xt } from "./Icon-b443eea4.js";
|
|
16
|
+
import { j as bt } from "./ProgressBar-91240dab.js";
|
|
17
|
+
import { i as kn } from "./Listbox-b110c64d.js";
|
|
18
|
+
import { t as _t } from "./ListView-482c54ad.js";
|
|
19
|
+
import "./index-afacb017-e81aec1d.js";
|
|
20
|
+
import "./Radio-a747c89a.js";
|
|
21
|
+
import { P as y, _ as $, b as ve, a as jr } from "./SideNav-b5ef91d4.js";
|
|
22
|
+
import { p as Mn } from "./SrOnly-864bd4cb.js";
|
|
23
23
|
import { f as v } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
24
24
|
import { c as se } from "./index-e0f6271a.js";
|
|
25
|
-
import "./Stepper-
|
|
26
|
-
import "./Switch-
|
|
27
|
-
import "./Tab-
|
|
28
|
-
import {
|
|
29
|
-
import "./Toast-
|
|
25
|
+
import "./Stepper-7c787b24.js";
|
|
26
|
+
import "./Switch-39010760.js";
|
|
27
|
+
import "./Tab-f636d6c5.js";
|
|
28
|
+
import { $ as Tn } from "./Text-465104f6.js";
|
|
29
|
+
import "./Toast-36679136.js";
|
|
30
30
|
import "./index-06c0bdf0.js";
|
|
31
31
|
import { J as Se } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
32
32
|
import { U as Kr, T as $r } from "./index-d46fa8de-8695742b.js";
|
|
@@ -35,11 +35,11 @@ import * as _e from "react";
|
|
|
35
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
36
|
import "./index-439b5871.js";
|
|
37
37
|
import "./LocalizationProvider.js";
|
|
38
|
-
import { u as Be, v as Ur, w as
|
|
39
|
-
import { g as
|
|
38
|
+
import { u as Be, v as Ur, w as qr, z as zr, e as Wr, 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
|
+
import { g as ao } from "./_commonjsHelpers-c5d32002.js";
|
|
40
40
|
import { a as Vn } from "./close-064c8acc-7e0b4df7.js";
|
|
41
|
-
import { a as
|
|
42
|
-
import { v as Et } from "./Helper-74a1f07f-
|
|
41
|
+
import { a as lo } from "./check-5f087ea0-b5474547.js";
|
|
42
|
+
import { v as Et } from "./Helper-74a1f07f-60547798.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"),
|
|
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"), l = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), a = 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) {
|
|
@@ -73,11 +73,11 @@ function uo() {
|
|
|
73
73
|
case o:
|
|
74
74
|
case i:
|
|
75
75
|
case u:
|
|
76
|
-
case
|
|
76
|
+
case a:
|
|
77
77
|
return g;
|
|
78
78
|
default:
|
|
79
79
|
switch (g = g && g.$$typeof, g) {
|
|
80
|
-
case
|
|
80
|
+
case l:
|
|
81
81
|
case s:
|
|
82
82
|
case d:
|
|
83
83
|
case b:
|
|
@@ -93,7 +93,7 @@ function uo() {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return G.ContextConsumer = s, G.ContextProvider = t, G.Element = e, G.ForwardRef = d, G.Fragment = r, G.Lazy = b, G.Memo = h, G.Portal = n, G.Profiler = o, G.StrictMode = i, G.Suspense = u, G.SuspenseList =
|
|
96
|
+
return G.ContextConsumer = s, G.ContextProvider = t, G.Element = e, G.ForwardRef = d, G.Fragment = r, G.Lazy = b, G.Memo = h, G.Portal = n, G.Profiler = o, G.StrictMode = i, G.Suspense = u, G.SuspenseList = a, G.isAsyncMode = function() {
|
|
97
97
|
return !1;
|
|
98
98
|
}, G.isConcurrentMode = function() {
|
|
99
99
|
return !1;
|
|
@@ -120,9 +120,9 @@ function uo() {
|
|
|
120
120
|
}, G.isSuspense = function(g) {
|
|
121
121
|
return S(g) === u;
|
|
122
122
|
}, G.isSuspenseList = function(g) {
|
|
123
|
-
return S(g) ===
|
|
123
|
+
return S(g) === a;
|
|
124
124
|
}, G.isValidElementType = function(g) {
|
|
125
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === u || g ===
|
|
125
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === u || g === a || 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,10 +138,10 @@ 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"),
|
|
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"), l = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), a = 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 ===
|
|
144
|
+
return !!(typeof C == "string" || typeof C == "function" || C === r || C === o || c || C === i || C === u || C === a || 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.
|
|
@@ -158,12 +158,12 @@ function co() {
|
|
|
158
158
|
case o:
|
|
159
159
|
case i:
|
|
160
160
|
case u:
|
|
161
|
-
case
|
|
161
|
+
case a:
|
|
162
162
|
return ie;
|
|
163
163
|
default:
|
|
164
164
|
var Ae = ie && ie.$$typeof;
|
|
165
165
|
switch (Ae) {
|
|
166
|
-
case
|
|
166
|
+
case l:
|
|
167
167
|
case s:
|
|
168
168
|
case d:
|
|
169
169
|
case b:
|
|
@@ -179,11 +179,11 @@ function co() {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
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 =
|
|
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 = a, U = !1, Z = !1;
|
|
183
183
|
function j(C) {
|
|
184
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
|
-
function
|
|
186
|
+
function z(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) {
|
|
@@ -204,25 +204,25 @@ function co() {
|
|
|
204
204
|
function H(C) {
|
|
205
205
|
return I(C) === b;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function q(C) {
|
|
208
208
|
return I(C) === h;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function W(C) {
|
|
211
211
|
return I(C) === n;
|
|
212
212
|
}
|
|
213
213
|
function B(C) {
|
|
214
214
|
return I(C) === o;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function ae(C) {
|
|
217
217
|
return I(C) === i;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function le(C) {
|
|
220
220
|
return I(C) === u;
|
|
221
221
|
}
|
|
222
222
|
function ue(C) {
|
|
223
|
-
return I(C) ===
|
|
223
|
+
return I(C) === a;
|
|
224
224
|
}
|
|
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 =
|
|
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 = z, X.isContextConsumer = Y, X.isContextProvider = oe, X.isElement = T, X.isForwardRef = A, X.isFragment = w, X.isLazy = H, X.isMemo = q, X.isPortal = W, X.isProfiler = B, X.isStrictMode = ae, X.isSuspense = le, 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();
|
|
@@ -244,14 +244,14 @@ const fn = (e) => typeof e == "object" && e != null && e.nodeType === 1, hn = (e
|
|
|
244
244
|
})(e);
|
|
245
245
|
}
|
|
246
246
|
return !1;
|
|
247
|
-
}, nt = (e, n, r, i, o, t, s,
|
|
247
|
+
}, nt = (e, n, r, i, o, t, s, l) => t < e && s > n || t > e && s < n ? 0 : t <= e && l <= r || s >= n && l >= r ? t - e - i : s > n && l < r || t < e && l > r ? s - n + o : 0, po = (e) => {
|
|
248
248
|
const n = e.parentElement;
|
|
249
249
|
return n ?? (e.getRootNode().host || null);
|
|
250
250
|
}, fo = (e, n) => {
|
|
251
251
|
var r, i, o, t;
|
|
252
252
|
if (typeof document > "u")
|
|
253
253
|
return [];
|
|
254
|
-
const { scrollMode: s, block:
|
|
254
|
+
const { scrollMode: s, block: l, inline: d, boundary: u, skipOverflowHiddenElements: a } = n, h = typeof u == "function" ? u : (L) => L !== u;
|
|
255
255
|
if (!fn(e))
|
|
256
256
|
throw new TypeError("Invalid target");
|
|
257
257
|
const b = document.scrollingElement || document.documentElement, _ = [];
|
|
@@ -261,29 +261,29 @@ const fn = (e) => typeof e == "object" && e != null && e.nodeType === 1, hn = (e
|
|
|
261
261
|
_.push(x);
|
|
262
262
|
break;
|
|
263
263
|
}
|
|
264
|
-
x != null && x === document.body && gt(x) && !gt(document.documentElement) || x != null && gt(x,
|
|
264
|
+
x != null && x === document.body && gt(x) && !gt(document.documentElement) || x != null && gt(x, a) && _.push(x);
|
|
265
265
|
}
|
|
266
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 =
|
|
270
|
+
let V = l === "start" || l === "nearest" ? I - k : l === "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
272
|
for (let L = 0; L < _.length; L++) {
|
|
273
|
-
const K = _[L], { height: U, width: Z, top: j, right:
|
|
274
|
-
if (s === "if-needed" && I >= 0 && E >= 0 && N <= g && m <= S && I >= j && N <= Y && E >= oe && m <=
|
|
273
|
+
const K = _[L], { height: U, width: Z, top: j, right: z, 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 <= z)
|
|
275
275
|
return F;
|
|
276
|
-
const T = getComputedStyle(K), A = parseInt(T.borderLeftWidth, 10), w = parseInt(T.borderTopWidth, 10), H = parseInt(T.borderRightWidth, 10),
|
|
277
|
-
let
|
|
278
|
-
const
|
|
276
|
+
const T = getComputedStyle(K), A = parseInt(T.borderLeftWidth, 10), w = parseInt(T.borderTopWidth, 10), H = parseInt(T.borderRightWidth, 10), q = parseInt(T.borderBottomWidth, 10);
|
|
277
|
+
let W = 0, B = 0;
|
|
278
|
+
const ae = "offsetWidth" in K ? K.offsetWidth - K.clientWidth - A - H : 0, le = "offsetHeight" in K ? K.offsetHeight - K.clientHeight - w - q : 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
|
-
|
|
280
|
+
W = l === "start" ? V : l === "end" ? V - g : l === "nearest" ? nt(c, c + g, g, w, q, 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), W = Math.max(0, W + c), B = Math.max(0, B + D);
|
|
281
281
|
else {
|
|
282
|
-
|
|
282
|
+
W = l === "start" ? V - j - w : l === "end" ? V - Y + q + le : l === "nearest" ? nt(j, Y, U, w, q + le, V, V + f, f) : V - (j + U / 2) + le / 2, B = d === "start" ? R - oe - A : d === "center" ? R - (oe + Z / 2) + ae / 2 : d === "end" ? R - z + H + ae : nt(oe, z, Z, A, H + ae, R, R + p, p);
|
|
283
283
|
const { scrollLeft: he, scrollTop: ie } = K;
|
|
284
|
-
|
|
284
|
+
W = C === 0 ? 0 : Math.max(0, Math.min(ie + W / C, K.scrollHeight - U / C + le)), B = ue === 0 ? 0 : Math.max(0, Math.min(he + B / ue, K.scrollWidth - Z / ue + ae)), V += ie - W, R += he - B;
|
|
285
285
|
}
|
|
286
|
-
F.push({ el: K, top:
|
|
286
|
+
F.push({ el: K, top: W, left: B });
|
|
287
287
|
}
|
|
288
288
|
return F;
|
|
289
289
|
};
|
|
@@ -326,8 +326,8 @@ function Ct(e, n) {
|
|
|
326
326
|
r && clearTimeout(r);
|
|
327
327
|
}
|
|
328
328
|
function o() {
|
|
329
|
-
for (var t = arguments.length, s = new Array(t),
|
|
330
|
-
s[
|
|
329
|
+
for (var t = arguments.length, s = new Array(t), l = 0; l < t; l++)
|
|
330
|
+
s[l] = arguments[l];
|
|
331
331
|
i(), r = setTimeout(function() {
|
|
332
332
|
r = null, e.apply(void 0, s);
|
|
333
333
|
}, n);
|
|
@@ -340,8 +340,8 @@ function re() {
|
|
|
340
340
|
return function(i) {
|
|
341
341
|
for (var o = arguments.length, t = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
|
|
342
342
|
t[s - 1] = arguments[s];
|
|
343
|
-
return n.some(function(
|
|
344
|
-
return
|
|
343
|
+
return n.some(function(l) {
|
|
344
|
+
return l && l.apply(void 0, [i].concat(t)), i.preventDownshiftDefault || i.hasOwnProperty("nativeEvent") && i.nativeEvent.preventDownshiftDefault;
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
347
|
}
|
|
@@ -386,10 +386,10 @@ function rt(e) {
|
|
|
386
386
|
}
|
|
387
387
|
function Ye(e, n) {
|
|
388
388
|
return !e || !n ? e : Object.keys(e).reduce(function(r, i) {
|
|
389
|
-
return r[i] =
|
|
389
|
+
return r[i] = at(n, i) ? n[i] : e[i], r;
|
|
390
390
|
}, {});
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function at(e, n) {
|
|
393
393
|
return e[n] !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function Ge(e) {
|
|
@@ -406,9 +406,9 @@ function ke(e, n, r, i, o) {
|
|
|
406
406
|
return -1;
|
|
407
407
|
var s = t - 1;
|
|
408
408
|
(typeof e != "number" || e < 0 || e > s) && (e = n > 0 ? -1 : s + 1);
|
|
409
|
-
var
|
|
410
|
-
|
|
411
|
-
var d = Le(
|
|
409
|
+
var l = e + n;
|
|
410
|
+
l < 0 ? l = o ? s : 0 : l > s && (l = o ? 0 : s);
|
|
411
|
+
var d = Le(l, n < 0, r, i, o);
|
|
412
412
|
return d === -1 ? e >= t ? -1 : e : d;
|
|
413
413
|
}
|
|
414
414
|
function Le(e, n, r, i, o) {
|
|
@@ -419,12 +419,12 @@ function Le(e, n, r, i, o) {
|
|
|
419
419
|
if (!i(r[s], s))
|
|
420
420
|
return s;
|
|
421
421
|
} else
|
|
422
|
-
for (var
|
|
423
|
-
if (!i(r[
|
|
424
|
-
return
|
|
422
|
+
for (var l = e; l < t; l++)
|
|
423
|
+
if (!i(r[l], l))
|
|
424
|
+
return l;
|
|
425
425
|
return o ? Le(n ? t - 1 : 0, n, r, i) : -1;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function lt(e, n, r, i) {
|
|
428
428
|
return i === void 0 && (i = !0), r && n.some(function(o) {
|
|
429
429
|
return o && (mn(o, e, r) || i && mn(o, r.document.activeElement, r));
|
|
430
430
|
});
|
|
@@ -458,16 +458,16 @@ 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, 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,
|
|
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, qn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, zn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Wn = 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
465
|
itemMouseEnter: Un,
|
|
466
466
|
keyDownArrowUp: ot,
|
|
467
467
|
keyDownArrowDown: it,
|
|
468
|
-
keyDownEscape:
|
|
469
|
-
keyDownEnter:
|
|
470
|
-
keyDownHome:
|
|
468
|
+
keyDownEscape: qn,
|
|
469
|
+
keyDownEnter: zn,
|
|
470
|
+
keyDownHome: Wn,
|
|
471
471
|
keyDownEnd: Yn,
|
|
472
472
|
clickItem: Gn,
|
|
473
473
|
blurInput: Xn,
|
|
@@ -530,7 +530,7 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
530
530
|
M = t.props.stateReducer(E, M), p = M.hasOwnProperty("selectedItem");
|
|
531
531
|
var O = {};
|
|
532
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],
|
|
533
|
+
E[P] !== M[P] && (m[P] = M[P]), P !== "type" && (M[P], at(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)();
|
|
@@ -600,14 +600,14 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
600
600
|
if (N == null || E && E.hasAttribute("disabled"))
|
|
601
601
|
return;
|
|
602
602
|
this.selectHighlightedItem({
|
|
603
|
-
type:
|
|
603
|
+
type: zn
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
},
|
|
608
608
|
Escape: function(f) {
|
|
609
609
|
f.preventDefault(), this.reset($({
|
|
610
|
-
type:
|
|
610
|
+
type: qn
|
|
611
611
|
}, !this.state.isOpen && {
|
|
612
612
|
selectedItem: null,
|
|
613
613
|
inputValue: ""
|
|
@@ -630,7 +630,7 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
630
630
|
length: m
|
|
631
631
|
}, this.isItemDisabled);
|
|
632
632
|
this.setHighlightedIndex(N, {
|
|
633
|
-
type:
|
|
633
|
+
type: Wn
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
}
|
|
@@ -821,7 +821,7 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
821
821
|
t.previousResultCount = I, Ot(m, t.props.environment.document);
|
|
822
822
|
}
|
|
823
823
|
}, 200);
|
|
824
|
-
var s = t.props,
|
|
824
|
+
var s = t.props, l = s.defaultHighlightedIndex, d = s.initialHighlightedIndex, u = d === void 0 ? l : d, a = s.defaultIsOpen, h = s.initialIsOpen, b = h === void 0 ? a : 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,
|
|
@@ -847,15 +847,15 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
847
847
|
this.props.scrollIntoView(t, this._menuNode);
|
|
848
848
|
}
|
|
849
849
|
}, i.moveHighlightedIndex = function(t, s) {
|
|
850
|
-
var
|
|
851
|
-
if (
|
|
852
|
-
var
|
|
853
|
-
length:
|
|
850
|
+
var l = this.getItemCount(), d = this.getState(), u = d.highlightedIndex;
|
|
851
|
+
if (l > 0) {
|
|
852
|
+
var a = ke(u, t, {
|
|
853
|
+
length: l
|
|
854
854
|
}, this.isItemDisabled, !0);
|
|
855
|
-
this.setHighlightedIndex(
|
|
855
|
+
this.setHighlightedIndex(a, s);
|
|
856
856
|
}
|
|
857
857
|
}, i.getStateAndHelpers = function() {
|
|
858
|
-
var t = this.getState(), s = t.highlightedIndex,
|
|
858
|
+
var t = this.getState(), s = t.highlightedIndex, l = t.inputValue, d = t.selectedItem, u = t.isOpen, a = 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,
|
|
@@ -879,12 +879,12 @@ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
879
879
|
unsetItemCount: V,
|
|
880
880
|
setState: R,
|
|
881
881
|
// props
|
|
882
|
-
itemToString:
|
|
882
|
+
itemToString: a,
|
|
883
883
|
// derived
|
|
884
884
|
id: h,
|
|
885
885
|
// state
|
|
886
886
|
highlightedIndex: s,
|
|
887
|
-
inputValue:
|
|
887
|
+
inputValue: l,
|
|
888
888
|
isOpen: u,
|
|
889
889
|
selectedItem: d
|
|
890
890
|
};
|
|
@@ -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
|
-
},
|
|
900
|
+
}, l = function(_) {
|
|
901
901
|
t.isMouseDown = !1;
|
|
902
|
-
var x =
|
|
902
|
+
var x = lt(_.target, [t._rootNode, t._menuNode], t.props.environment);
|
|
903
903
|
!x && t.getState().isOpen && t.reset({
|
|
904
904
|
type: Bn
|
|
905
905
|
}, function() {
|
|
@@ -909,23 +909,23 @@ 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
|
-
},
|
|
913
|
-
var x =
|
|
912
|
+
}, a = function(_) {
|
|
913
|
+
var x = lt(_.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() {
|
|
917
917
|
return t.props.onOuterClick(t.getStateAndHelpers());
|
|
918
918
|
});
|
|
919
919
|
}, h = this.props.environment;
|
|
920
|
-
h.addEventListener("mousedown", s), h.addEventListener("mouseup",
|
|
921
|
-
t.internalClearTimeouts(), t.updateStatus.cancel(), h.removeEventListener("mousedown", s), h.removeEventListener("mouseup",
|
|
920
|
+
h.addEventListener("mousedown", s), h.addEventListener("mouseup", l), h.addEventListener("touchstart", d), h.addEventListener("touchmove", u), h.addEventListener("touchend", a), this.cleanup = function() {
|
|
921
|
+
t.internalClearTimeouts(), t.updateStatus.cancel(), h.removeEventListener("mousedown", s), h.removeEventListener("mouseup", l), h.removeEventListener("touchstart", d), h.removeEventListener("touchmove", u), h.removeEventListener("touchend", a);
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
924
|
}, i.shouldScroll = function(t, s) {
|
|
925
|
-
var
|
|
925
|
+
var l = this.props.highlightedIndex === void 0 ? this.getState() : this.props, d = l.highlightedIndex, u = s.highlightedIndex === void 0 ? t : s, a = u.highlightedIndex, h = d && this.getState().isOpen && !t.isOpen, b = d !== a;
|
|
926
926
|
return h || b;
|
|
927
927
|
}, i.componentDidUpdate = function(t, s) {
|
|
928
|
-
process.env.NODE_ENV !== "production" && (St(this.state, t, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && _n(this._menuNode, this.getMenuProps)),
|
|
928
|
+
process.env.NODE_ENV !== "production" && (St(this.state, t, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && _n(this._menuNode, this.getMenuProps)), at(this.props, "selectedItem") && this.props.selectedItemChanged(t.selectedItem, this.props.selectedItem) && this.internalSetState({
|
|
929
929
|
type: er,
|
|
930
930
|
inputValue: this.props.itemToString(this.props.selectedItem)
|
|
931
931
|
}), !this.avoidScrolling && this.shouldScroll(s, t) && this.scrollHighlightedItemIntoView(), this.updateStatus();
|
|
@@ -1056,26 +1056,26 @@ function Po(e) {
|
|
|
1056
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
|
-
var r = n.id, i = n.labelId, o = n.menuId, t = n.getItemId, s = n.toggleButtonId,
|
|
1059
|
+
var r = n.id, i = n.labelId, o = n.menuId, t = n.getItemId, s = n.toggleButtonId, l = n.inputId, d = "downshift-" + st.useId();
|
|
1060
1060
|
r || (r = d);
|
|
1061
1061
|
var u = Q({
|
|
1062
1062
|
labelId: i || r + "-label",
|
|
1063
1063
|
menuId: o || r + "-menu",
|
|
1064
|
-
getItemId: t || function(
|
|
1065
|
-
return r + "-item-" +
|
|
1064
|
+
getItemId: t || function(a) {
|
|
1065
|
+
return r + "-item-" + a;
|
|
1066
1066
|
},
|
|
1067
1067
|
toggleButtonId: s || r + "-toggle-button",
|
|
1068
|
-
inputId:
|
|
1068
|
+
inputId: l || r + "-input"
|
|
1069
1069
|
});
|
|
1070
1070
|
return u.current;
|
|
1071
1071
|
} : function(n) {
|
|
1072
|
-
var r = n.id, i = r === void 0 ? "downshift-" + Hn() : r, o = n.labelId, t = n.menuId, s = n.getItemId,
|
|
1072
|
+
var r = n.id, i = r === void 0 ? "downshift-" + Hn() : r, o = n.labelId, t = n.menuId, s = n.getItemId, l = n.toggleButtonId, d = n.inputId, u = Q({
|
|
1073
1073
|
labelId: o || i + "-label",
|
|
1074
1074
|
menuId: t || i + "-menu",
|
|
1075
|
-
getItemId: s || function(
|
|
1076
|
-
return i + "-item-" +
|
|
1075
|
+
getItemId: s || function(a) {
|
|
1076
|
+
return i + "-item-" + a;
|
|
1077
1077
|
},
|
|
1078
|
-
toggleButtonId:
|
|
1078
|
+
toggleButtonId: l || i + "-toggle-button",
|
|
1079
1079
|
inputId: d || i + "-input"
|
|
1080
1080
|
});
|
|
1081
1081
|
return u.current;
|
|
@@ -1104,11 +1104,11 @@ function or(e, n, r, i) {
|
|
|
1104
1104
|
changes: S
|
|
1105
1105
|
}));
|
|
1106
1106
|
return g;
|
|
1107
|
-
}, [e]),
|
|
1107
|
+
}, [e]), l = Br(s, n, r), d = l[0], u = l[1], a = Nt(n), h = ee(function(_) {
|
|
1108
1108
|
return u($({
|
|
1109
|
-
props:
|
|
1109
|
+
props: a.current
|
|
1110
1110
|
}, _));
|
|
1111
|
-
}, [
|
|
1111
|
+
}, [a]), b = t.current;
|
|
1112
1112
|
return de(function() {
|
|
1113
1113
|
var _ = Ye(o.current, b == null ? void 0 : b.props), x = b && o.current && !i(_, d);
|
|
1114
1114
|
x && Do(b, _, d), o.current = d;
|
|
@@ -1157,10 +1157,10 @@ function Ao(e) {
|
|
|
1157
1157
|
inputValue: o
|
|
1158
1158
|
};
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1161
|
-
var i = e.items, o = e.initialHighlightedIndex, t = e.defaultHighlightedIndex, s = e.itemToKey,
|
|
1162
|
-
return i.length === 0 ? -1 : o !== void 0 && d === o ? o : t !== void 0 ? t :
|
|
1163
|
-
return s(
|
|
1160
|
+
function ze(e, n, r) {
|
|
1161
|
+
var i = e.items, o = e.initialHighlightedIndex, t = e.defaultHighlightedIndex, s = e.itemToKey, l = n.selectedItem, d = n.highlightedIndex;
|
|
1162
|
+
return i.length === 0 ? -1 : o !== void 0 && d === o ? o : t !== void 0 ? t : l ? i.findIndex(function(u) {
|
|
1163
|
+
return s(l) === s(u);
|
|
1164
1164
|
}) : r === 0 ? -1 : r < 0 ? i.length - 1 : 0;
|
|
1165
1165
|
}
|
|
1166
1166
|
function Ho(e, n, r) {
|
|
@@ -1172,26 +1172,26 @@ function Ho(e, n, r) {
|
|
|
1172
1172
|
return de(function() {
|
|
1173
1173
|
if (!e)
|
|
1174
1174
|
return me;
|
|
1175
|
-
var o = n.map(function(
|
|
1176
|
-
return
|
|
1175
|
+
var o = n.map(function(a) {
|
|
1176
|
+
return a.current;
|
|
1177
1177
|
});
|
|
1178
1178
|
function t() {
|
|
1179
1179
|
i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
|
|
1180
1180
|
}
|
|
1181
|
-
function s(
|
|
1182
|
-
i.current.isMouseDown = !1,
|
|
1181
|
+
function s(a) {
|
|
1182
|
+
i.current.isMouseDown = !1, lt(a.target, o, e) || r();
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function l() {
|
|
1185
1185
|
i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
|
|
1186
1186
|
}
|
|
1187
1187
|
function d() {
|
|
1188
1188
|
i.current.isTouchMove = !0;
|
|
1189
1189
|
}
|
|
1190
|
-
function u(
|
|
1191
|
-
i.current.isTouchEnd = !0, !i.current.isTouchMove && !
|
|
1190
|
+
function u(a) {
|
|
1191
|
+
i.current.isTouchEnd = !0, !i.current.isTouchMove && !lt(a.target, o, e, !1) && r();
|
|
1192
1192
|
}
|
|
1193
|
-
return e.addEventListener("mousedown", t), e.addEventListener("mouseup", s), e.addEventListener("touchstart",
|
|
1194
|
-
e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", s), e.removeEventListener("touchstart",
|
|
1193
|
+
return e.addEventListener("mousedown", t), e.addEventListener("mouseup", s), e.addEventListener("touchstart", l), e.addEventListener("touchmove", d), e.addEventListener("touchend", u), function() {
|
|
1194
|
+
e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", s), e.removeEventListener("touchstart", l), e.removeEventListener("touchmove", d), e.removeEventListener("touchend", u);
|
|
1195
1195
|
};
|
|
1196
1196
|
}, [e, r]), i.current;
|
|
1197
1197
|
}
|
|
@@ -1201,33 +1201,33 @@ var Rt = function() {
|
|
|
1201
1201
|
process.env.NODE_ENV !== "production" && (Rt = function() {
|
|
1202
1202
|
for (var n = Q(!0), r = arguments.length, i = new Array(r), o = 0; o < r; o++)
|
|
1203
1203
|
i[o] = arguments[o];
|
|
1204
|
-
var t = Q(i.reduce(function(
|
|
1205
|
-
return
|
|
1204
|
+
var t = Q(i.reduce(function(l, d) {
|
|
1205
|
+
return l[d] = {}, l;
|
|
1206
1206
|
}, {}));
|
|
1207
1207
|
de(function() {
|
|
1208
|
-
Object.keys(t.current).forEach(function(
|
|
1209
|
-
var d = t.current[
|
|
1208
|
+
Object.keys(t.current).forEach(function(l) {
|
|
1209
|
+
var d = t.current[l];
|
|
1210
1210
|
if (n.current && !Object.keys(d).length) {
|
|
1211
|
-
console.error("downshift: You forgot to call the " +
|
|
1211
|
+
console.error("downshift: You forgot to call the " + l + " getter function on your component / element.");
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
|
-
var u = d.suppressRefError,
|
|
1215
|
-
(!h || !h.current) && !u && console.error('downshift: The ref prop "' +
|
|
1214
|
+
var u = d.suppressRefError, a = d.refKey, h = d.elementRef;
|
|
1215
|
+
(!h || !h.current) && !u && console.error('downshift: The ref prop "' + a + '" from ' + l + " was not applied correctly on your element.");
|
|
1216
1216
|
}), n.current = !1;
|
|
1217
1217
|
});
|
|
1218
|
-
var s = ee(function(
|
|
1219
|
-
t.current[
|
|
1218
|
+
var s = ee(function(l, d, u, a) {
|
|
1219
|
+
t.current[l] = {
|
|
1220
1220
|
suppressRefError: d,
|
|
1221
1221
|
refKey: u,
|
|
1222
|
-
elementRef:
|
|
1222
|
+
elementRef: a
|
|
1223
1223
|
};
|
|
1224
1224
|
}, []);
|
|
1225
1225
|
return s;
|
|
1226
1226
|
});
|
|
1227
1227
|
function In(e, n, r) {
|
|
1228
|
-
var i = r.highlightedIndex, o = r.items, t = r.environment, s = ve(r, Oo),
|
|
1228
|
+
var i = r.highlightedIndex, o = r.items, t = r.environment, s = ve(r, Oo), l = Xe();
|
|
1229
1229
|
de(function() {
|
|
1230
|
-
|
|
1230
|
+
l || !(t != null && t.document) || ko(function() {
|
|
1231
1231
|
return e($({
|
|
1232
1232
|
highlightedIndex: i,
|
|
1233
1233
|
highlightedItem: o[i],
|
|
@@ -1237,10 +1237,10 @@ function In(e, n, r) {
|
|
|
1237
1237
|
}, n);
|
|
1238
1238
|
}
|
|
1239
1239
|
function jo(e) {
|
|
1240
|
-
var n = e.highlightedIndex, r = e.isOpen, i = e.itemRefs, o = e.getItemNodeFromIndex, t = e.menuElement, s = e.scrollIntoView,
|
|
1240
|
+
var n = e.highlightedIndex, r = e.isOpen, i = e.itemRefs, o = e.getItemNodeFromIndex, t = e.menuElement, s = e.scrollIntoView, l = Q(!0);
|
|
1241
1241
|
return Mo(function() {
|
|
1242
|
-
n < 0 || !r || !Object.keys(i.current).length || (
|
|
1243
|
-
}, [n]),
|
|
1242
|
+
n < 0 || !r || !Object.keys(i.current).length || (l.current === !1 ? l.current = !0 : s(o(n), t));
|
|
1243
|
+
}, [n]), l;
|
|
1244
1244
|
}
|
|
1245
1245
|
var Pt = me;
|
|
1246
1246
|
process.env.NODE_ENV !== "production" && (Pt = function(n) {
|
|
@@ -1329,13 +1329,13 @@ function $o(e, n, r) {
|
|
|
1329
1329
|
case r.FunctionToggleMenu:
|
|
1330
1330
|
t = {
|
|
1331
1331
|
isOpen: !e.isOpen,
|
|
1332
|
-
highlightedIndex: e.isOpen ? -1 :
|
|
1332
|
+
highlightedIndex: e.isOpen ? -1 : ze(o, e, 0)
|
|
1333
1333
|
};
|
|
1334
1334
|
break;
|
|
1335
1335
|
case r.FunctionOpenMenu:
|
|
1336
1336
|
t = {
|
|
1337
1337
|
isOpen: !0,
|
|
1338
|
-
highlightedIndex:
|
|
1338
|
+
highlightedIndex: ze(o, e, 0)
|
|
1339
1339
|
};
|
|
1340
1340
|
break;
|
|
1341
1341
|
case r.FunctionCloseMenu:
|
|
@@ -1397,7 +1397,7 @@ process.env.NODE_ENV;
|
|
|
1397
1397
|
process.env.NODE_ENV;
|
|
1398
1398
|
process.env.NODE_ENV;
|
|
1399
1399
|
process.env.NODE_ENV;
|
|
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,
|
|
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, ar = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, lr = 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
1402
|
InputKeyDownArrowDown: kt,
|
|
1403
1403
|
InputKeyDownArrowUp: Mt,
|
|
@@ -1410,8 +1410,8 @@ var kt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
|
|
|
1410
1410
|
InputChange: $t,
|
|
1411
1411
|
InputBlur: ut,
|
|
1412
1412
|
InputClick: Ft,
|
|
1413
|
-
MenuMouseLeave:
|
|
1414
|
-
ItemMouseMove:
|
|
1413
|
+
MenuMouseLeave: ar,
|
|
1414
|
+
ItemMouseMove: lr,
|
|
1415
1415
|
ItemClick: Lt,
|
|
1416
1416
|
ToggleButtonClick: ur,
|
|
1417
1417
|
FunctionToggleMenu: dr,
|
|
@@ -1441,31 +1441,31 @@ var Bo = $({}, sr, {
|
|
|
1441
1441
|
onInputValueChange: y.func
|
|
1442
1442
|
});
|
|
1443
1443
|
function Uo(e, n, r, i) {
|
|
1444
|
-
var o = Q(), t = or(e, n, r, i), s = t[0],
|
|
1444
|
+
var o = Q(), t = or(e, n, r, i), s = t[0], l = t[1], d = Xe();
|
|
1445
1445
|
return de(function() {
|
|
1446
|
-
if (
|
|
1446
|
+
if (at(n, "selectedItem")) {
|
|
1447
1447
|
if (!d) {
|
|
1448
1448
|
var u;
|
|
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 &&
|
|
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 && l({
|
|
1450
1450
|
type: Ut,
|
|
1451
1451
|
inputValue: n.itemToString(n.selectedItem)
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
1454
1454
|
o.current = s.selectedItem === o.current ? n.selectedItem : s.selectedItem;
|
|
1455
1455
|
}
|
|
1456
|
-
}, [s.selectedItem, n.selectedItem]), [Ye(s, n),
|
|
1456
|
+
}, [s.selectedItem, n.selectedItem]), [Ye(s, n), l];
|
|
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 qo = $({}, je, {
|
|
1463
1463
|
getA11yStatusMessage: jn,
|
|
1464
1464
|
isItemDisabled: function() {
|
|
1465
1465
|
return !1;
|
|
1466
1466
|
}
|
|
1467
1467
|
});
|
|
1468
|
-
function
|
|
1468
|
+
function zo(e, n) {
|
|
1469
1469
|
var r, i = n.type, o = n.props, t = n.altKey, s;
|
|
1470
1470
|
switch (i) {
|
|
1471
1471
|
case Lt:
|
|
@@ -1480,7 +1480,7 @@ function Wo(e, n) {
|
|
|
1480
1480
|
e.isOpen ? s = {
|
|
1481
1481
|
highlightedIndex: ke(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
|
|
1482
1482
|
} : s = {
|
|
1483
|
-
highlightedIndex: t && e.selectedItem == null ? -1 :
|
|
1483
|
+
highlightedIndex: t && e.selectedItem == null ? -1 : ze(o, e, 1),
|
|
1484
1484
|
isOpen: o.items.length >= 0
|
|
1485
1485
|
};
|
|
1486
1486
|
break;
|
|
@@ -1488,7 +1488,7 @@ function Wo(e, n) {
|
|
|
1488
1488
|
e.isOpen ? t ? s = yn(o, e.highlightedIndex) : s = {
|
|
1489
1489
|
highlightedIndex: ke(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
|
|
1490
1490
|
} : s = {
|
|
1491
|
-
highlightedIndex:
|
|
1491
|
+
highlightedIndex: ze(o, e, -1),
|
|
1492
1492
|
isOpen: o.items.length >= 0
|
|
1493
1493
|
};
|
|
1494
1494
|
break;
|
|
@@ -1543,7 +1543,7 @@ function Wo(e, n) {
|
|
|
1543
1543
|
case Ft:
|
|
1544
1544
|
s = {
|
|
1545
1545
|
isOpen: !e.isOpen,
|
|
1546
|
-
highlightedIndex: e.isOpen ? -1 :
|
|
1546
|
+
highlightedIndex: e.isOpen ? -1 : ze(o, e, 0)
|
|
1547
1547
|
};
|
|
1548
1548
|
break;
|
|
1549
1549
|
case Bt:
|
|
@@ -1562,11 +1562,11 @@ function Wo(e, n) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
return $({}, e, s);
|
|
1564
1564
|
}
|
|
1565
|
-
var
|
|
1565
|
+
var Wo = ["onMouseLeave", "refKey", "ref"], Yo = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Go = ["onClick", "onPress", "refKey", "ref"], Xo = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
|
|
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 = $({}, qo, e), r = n.items, i = n.scrollIntoView, o = n.environment, t = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, l = n.itemToString, d = Uo(zo, n, Lo, Ko), u = d[0], a = 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) {
|
|
@@ -1576,12 +1576,12 @@ function ge(e) {
|
|
|
1576
1576
|
previousResultCount: I.current,
|
|
1577
1577
|
items: r,
|
|
1578
1578
|
environment: o,
|
|
1579
|
-
itemToString:
|
|
1579
|
+
itemToString: l
|
|
1580
1580
|
}, u)), In(s, [_], $({
|
|
1581
1581
|
previousResultCount: I.current,
|
|
1582
1582
|
items: r,
|
|
1583
1583
|
environment: o,
|
|
1584
|
-
itemToString:
|
|
1584
|
+
itemToString: l
|
|
1585
1585
|
}, u));
|
|
1586
1586
|
var E = jo({
|
|
1587
1587
|
menuElement: S.current,
|
|
@@ -1601,11 +1601,11 @@ function ge(e) {
|
|
|
1601
1601
|
f || (I.current = r.length);
|
|
1602
1602
|
});
|
|
1603
1603
|
var k = Ho(o, [c, S, D], ee(function() {
|
|
1604
|
-
m.current.state.isOpen &&
|
|
1604
|
+
m.current.state.isOpen && a({
|
|
1605
1605
|
type: ut,
|
|
1606
1606
|
selectItem: !1
|
|
1607
1607
|
});
|
|
1608
|
-
}, [
|
|
1608
|
+
}, [a, m])), M = Rt("getInputProps", "getMenuProps");
|
|
1609
1609
|
de(function() {
|
|
1610
1610
|
h || (g.current = {});
|
|
1611
1611
|
}, [h]), de(function() {
|
|
@@ -1615,167 +1615,167 @@ function ge(e) {
|
|
|
1615
1615
|
var O = Te(function() {
|
|
1616
1616
|
return {
|
|
1617
1617
|
ArrowDown: function(A) {
|
|
1618
|
-
A.preventDefault(),
|
|
1618
|
+
A.preventDefault(), a({
|
|
1619
1619
|
type: kt,
|
|
1620
1620
|
altKey: A.altKey
|
|
1621
1621
|
});
|
|
1622
1622
|
},
|
|
1623
1623
|
ArrowUp: function(A) {
|
|
1624
|
-
A.preventDefault(),
|
|
1624
|
+
A.preventDefault(), a({
|
|
1625
1625
|
type: Mt,
|
|
1626
1626
|
altKey: A.altKey
|
|
1627
1627
|
});
|
|
1628
1628
|
},
|
|
1629
1629
|
Home: function(A) {
|
|
1630
|
-
m.current.state.isOpen && (A.preventDefault(),
|
|
1630
|
+
m.current.state.isOpen && (A.preventDefault(), a({
|
|
1631
1631
|
type: Vt
|
|
1632
1632
|
}));
|
|
1633
1633
|
},
|
|
1634
1634
|
End: function(A) {
|
|
1635
|
-
m.current.state.isOpen && (A.preventDefault(),
|
|
1635
|
+
m.current.state.isOpen && (A.preventDefault(), a({
|
|
1636
1636
|
type: At
|
|
1637
1637
|
}));
|
|
1638
1638
|
},
|
|
1639
1639
|
Escape: function(A) {
|
|
1640
1640
|
var w = m.current.state;
|
|
1641
|
-
(w.isOpen || w.inputValue || w.selectedItem || w.highlightedIndex > -1) && (A.preventDefault(),
|
|
1641
|
+
(w.isOpen || w.inputValue || w.selectedItem || w.highlightedIndex > -1) && (A.preventDefault(), a({
|
|
1642
1642
|
type: Tt
|
|
1643
1643
|
}));
|
|
1644
1644
|
},
|
|
1645
1645
|
Enter: function(A) {
|
|
1646
1646
|
var w = m.current.state;
|
|
1647
|
-
!w.isOpen || A.which === 229 || (A.preventDefault(),
|
|
1647
|
+
!w.isOpen || A.which === 229 || (A.preventDefault(), a({
|
|
1648
1648
|
type: Kt
|
|
1649
1649
|
}));
|
|
1650
1650
|
},
|
|
1651
1651
|
PageUp: function(A) {
|
|
1652
|
-
m.current.state.isOpen && (A.preventDefault(),
|
|
1652
|
+
m.current.state.isOpen && (A.preventDefault(), a({
|
|
1653
1653
|
type: Ht
|
|
1654
1654
|
}));
|
|
1655
1655
|
},
|
|
1656
1656
|
PageDown: function(A) {
|
|
1657
|
-
m.current.state.isOpen && (A.preventDefault(),
|
|
1657
|
+
m.current.state.isOpen && (A.preventDefault(), a({
|
|
1658
1658
|
type: jt
|
|
1659
1659
|
}));
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
|
-
}, [
|
|
1662
|
+
}, [a, 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, q = H.onMouseLeave, W = H.refKey, B = W === void 0 ? "ref" : W, ae = H.ref, le = ve(H, Wo), 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(ae, function(ie) {
|
|
1670
1670
|
S.current = ie;
|
|
1671
|
-
}), w.id = p.menuId, w.role = "listbox", w["aria-labelledby"] =
|
|
1672
|
-
|
|
1673
|
-
type:
|
|
1671
|
+
}), w.id = p.menuId, w.role = "listbox", w["aria-labelledby"] = le && le["aria-label"] ? void 0 : "" + p.labelId, w.onMouseLeave = re(q, function() {
|
|
1672
|
+
a({
|
|
1673
|
+
type: ar
|
|
1674
1674
|
});
|
|
1675
|
-
}), w),
|
|
1676
|
-
}, [
|
|
1677
|
-
var A, w, H = T === void 0 ? {} : T,
|
|
1675
|
+
}), w), le);
|
|
1676
|
+
}, [a, M, p]), R = ee(function(T) {
|
|
1677
|
+
var A, w, H = T === void 0 ? {} : T, q = H.item, W = H.index, B = H.refKey, ae = B === void 0 ? "ref" : B, le = H.ref, ue = H.onMouseMove, C = H.onMouseDown, he = H.onClick;
|
|
1678
1678
|
H.onPress;
|
|
1679
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 Ue = m.current, Ze = Ue.props, we = Ue.state, et = rr(
|
|
1682
|
-
k.isTouchEnd || Ee === we.highlightedIndex || (E.current = !1,
|
|
1683
|
-
type:
|
|
1681
|
+
var Ue = m.current, Ze = Ue.props, we = Ue.state, et = rr(q, W, Ze.items, "Pass either item or index to getItemProps!"), ft = et[0], Ee = et[1], qe = Ze.isItemDisabled(ft, Ee), ht = "onClick", tt = he, Oe = function() {
|
|
1682
|
+
k.isTouchEnd || Ee === we.highlightedIndex || (E.current = !1, a({
|
|
1683
|
+
type: lr,
|
|
1684
1684
|
index: Ee,
|
|
1685
|
-
disabled:
|
|
1685
|
+
disabled: qe
|
|
1686
1686
|
}));
|
|
1687
1687
|
}, Pe = function() {
|
|
1688
|
-
|
|
1688
|
+
a({
|
|
1689
1689
|
type: Lt,
|
|
1690
1690
|
index: Ee
|
|
1691
1691
|
});
|
|
1692
1692
|
}, De = function(Tr) {
|
|
1693
1693
|
return Tr.preventDefault();
|
|
1694
1694
|
};
|
|
1695
|
-
return $((A = {}, A[
|
|
1695
|
+
return $((A = {}, A[ae] = Re(le, function(ye) {
|
|
1696
1696
|
ye && (g.current[p.getItemId(Ee)] = ye);
|
|
1697
|
-
}), A["aria-disabled"] =
|
|
1697
|
+
}), A["aria-disabled"] = qe, A["aria-selected"] = "" + (Ee === we.highlightedIndex), A.id = p.getItemId(Ee), A.role = "option", A), !qe && (w = {}, w[ht] = re(tt, Pe), w), {
|
|
1698
1698
|
onMouseMove: re(ue, Oe),
|
|
1699
1699
|
onMouseDown: re(C, De)
|
|
1700
1700
|
}, Ae);
|
|
1701
|
-
}, [
|
|
1701
|
+
}, [a, 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
|
|
1705
|
-
|
|
1704
|
+
var q = w.refKey, W = q === void 0 ? "ref" : q, B = w.ref, ae = ve(w, Go), le = m.current.state, ue = function() {
|
|
1705
|
+
a({
|
|
1706
1706
|
type: ur
|
|
1707
1707
|
});
|
|
1708
1708
|
};
|
|
1709
|
-
return $((A = {}, A[
|
|
1709
|
+
return $((A = {}, A[W] = 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"] = le.isOpen, A.id = p.toggleButtonId, A.tabIndex = -1, A), !ae.disabled && $({}, {
|
|
1712
1712
|
onClick: re(H, ue)
|
|
1713
|
-
}),
|
|
1714
|
-
}, [
|
|
1715
|
-
var w, H = T === void 0 ? {} : T,
|
|
1713
|
+
}), ae);
|
|
1714
|
+
}, [a, m, p]), L = ee(function(T, A) {
|
|
1715
|
+
var w, H = T === void 0 ? {} : T, q = H.onKeyDown, W = H.onChange, B = H.onInput, ae = H.onBlur;
|
|
1716
1716
|
H.onChangeText;
|
|
1717
|
-
var
|
|
1717
|
+
var le = 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);
|
|
1721
1721
|
ye && O[ye] && O[ye](De);
|
|
1722
1722
|
}, ft = function(De) {
|
|
1723
|
-
|
|
1723
|
+
a({
|
|
1724
1724
|
type: $t,
|
|
1725
1725
|
inputValue: De.target.value
|
|
1726
1726
|
});
|
|
1727
1727
|
}, Ee = function(De) {
|
|
1728
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
|
+
a({
|
|
1731
1731
|
type: ut,
|
|
1732
1732
|
selectItem: !ye
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
|
-
},
|
|
1736
|
-
|
|
1735
|
+
}, qe = function() {
|
|
1736
|
+
a({
|
|
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(
|
|
1742
|
+
tt = (Oe = {}, Oe[ht] = re(W, B, ft), Oe.onKeyDown = re(q, et), Oe.onBlur = re(ae, Ee), Oe.onClick = re(le, qe), Oe);
|
|
1743
1743
|
}
|
|
1744
1744
|
return $((w = {}, w[C] = Re(he, function(Pe) {
|
|
1745
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
|
-
}, [
|
|
1748
|
-
|
|
1747
|
+
}, [a, p, o, O, m, k, M]), K = ee(function() {
|
|
1748
|
+
a({
|
|
1749
1749
|
type: dr
|
|
1750
1750
|
});
|
|
1751
|
-
}, [
|
|
1752
|
-
|
|
1751
|
+
}, [a]), U = ee(function() {
|
|
1752
|
+
a({
|
|
1753
1753
|
type: pr
|
|
1754
1754
|
});
|
|
1755
|
-
}, [
|
|
1756
|
-
|
|
1755
|
+
}, [a]), Z = ee(function() {
|
|
1756
|
+
a({
|
|
1757
1757
|
type: cr
|
|
1758
1758
|
});
|
|
1759
|
-
}, [
|
|
1760
|
-
|
|
1759
|
+
}, [a]), j = ee(function(T) {
|
|
1760
|
+
a({
|
|
1761
1761
|
type: fr,
|
|
1762
1762
|
highlightedIndex: T
|
|
1763
1763
|
});
|
|
1764
|
-
}, [
|
|
1765
|
-
|
|
1764
|
+
}, [a]), z = ee(function(T) {
|
|
1765
|
+
a({
|
|
1766
1766
|
type: Bt,
|
|
1767
1767
|
selectedItem: T
|
|
1768
1768
|
});
|
|
1769
|
-
}, [
|
|
1770
|
-
|
|
1769
|
+
}, [a]), Y = ee(function(T) {
|
|
1770
|
+
a({
|
|
1771
1771
|
type: hr,
|
|
1772
1772
|
inputValue: T
|
|
1773
1773
|
});
|
|
1774
|
-
}, [
|
|
1775
|
-
|
|
1774
|
+
}, [a]), oe = ee(function() {
|
|
1775
|
+
a({
|
|
1776
1776
|
type: gr
|
|
1777
1777
|
});
|
|
1778
|
-
}, [
|
|
1778
|
+
}, [a]);
|
|
1779
1779
|
return {
|
|
1780
1780
|
// prop getters.
|
|
1781
1781
|
getItemProps: R,
|
|
@@ -1789,7 +1789,7 @@ function ge(e) {
|
|
|
1789
1789
|
closeMenu: U,
|
|
1790
1790
|
setHighlightedIndex: j,
|
|
1791
1791
|
setInputValue: Y,
|
|
1792
|
-
selectItem:
|
|
1792
|
+
selectItem: z,
|
|
1793
1793
|
reset: oe,
|
|
1794
1794
|
// state.
|
|
1795
1795
|
highlightedIndex: b,
|
|
@@ -1855,11 +1855,11 @@ var ei = $({}, ir, {
|
|
|
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 qt = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, zt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, Wt = 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:
|
|
1861
|
-
SelectedItemKeyDownDelete:
|
|
1862
|
-
SelectedItemKeyDownBackspace:
|
|
1860
|
+
SelectedItemClick: qt,
|
|
1861
|
+
SelectedItemKeyDownDelete: zt,
|
|
1862
|
+
SelectedItemKeyDownBackspace: Wt,
|
|
1863
1863
|
SelectedItemKeyDownNavigationNext: Yt,
|
|
1864
1864
|
SelectedItemKeyDownNavigationPrevious: Gt,
|
|
1865
1865
|
DropdownKeyDownNavigationPrevious: Xt,
|
|
@@ -1872,9 +1872,9 @@ var zt = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0,
|
|
|
1872
1872
|
FunctionReset: rn
|
|
1873
1873
|
});
|
|
1874
1874
|
function ri(e, n) {
|
|
1875
|
-
var r = n.type, i = n.index, o = n.props, t = n.selectedItem, s = e.activeIndex,
|
|
1875
|
+
var r = n.type, i = n.index, o = n.props, t = n.selectedItem, s = e.activeIndex, l = e.selectedItems, d;
|
|
1876
1876
|
switch (r) {
|
|
1877
|
-
case
|
|
1877
|
+
case qt:
|
|
1878
1878
|
d = {
|
|
1879
1879
|
activeIndex: i
|
|
1880
1880
|
};
|
|
@@ -1886,16 +1886,16 @@ function ri(e, n) {
|
|
|
1886
1886
|
break;
|
|
1887
1887
|
case Yt:
|
|
1888
1888
|
d = {
|
|
1889
|
-
activeIndex: s + 1 >=
|
|
1889
|
+
activeIndex: s + 1 >= l.length ? -1 : s + 1
|
|
1890
1890
|
};
|
|
1891
1891
|
break;
|
|
1892
|
-
case
|
|
1893
|
-
case
|
|
1892
|
+
case Wt:
|
|
1893
|
+
case zt: {
|
|
1894
1894
|
if (s < 0)
|
|
1895
1895
|
break;
|
|
1896
1896
|
var u = s;
|
|
1897
|
-
|
|
1898
|
-
selectedItems: [].concat(
|
|
1897
|
+
l.length === 1 ? u = -1 : s === l.length - 1 && (u = l.length - 2), d = $({
|
|
1898
|
+
selectedItems: [].concat(l.slice(0, s), l.slice(s + 1))
|
|
1899
1899
|
}, {
|
|
1900
1900
|
activeIndex: u
|
|
1901
1901
|
});
|
|
@@ -1903,17 +1903,17 @@ function ri(e, n) {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
case Xt:
|
|
1905
1905
|
d = {
|
|
1906
|
-
activeIndex:
|
|
1906
|
+
activeIndex: l.length - 1
|
|
1907
1907
|
};
|
|
1908
1908
|
break;
|
|
1909
1909
|
case Jt:
|
|
1910
1910
|
d = {
|
|
1911
|
-
selectedItems:
|
|
1911
|
+
selectedItems: l.slice(0, l.length - 1)
|
|
1912
1912
|
};
|
|
1913
1913
|
break;
|
|
1914
1914
|
case Zt:
|
|
1915
1915
|
d = {
|
|
1916
|
-
selectedItems: [].concat(
|
|
1916
|
+
selectedItems: [].concat(l, [t])
|
|
1917
1917
|
};
|
|
1918
1918
|
break;
|
|
1919
1919
|
case Qt:
|
|
@@ -1922,14 +1922,14 @@ function ri(e, n) {
|
|
|
1922
1922
|
};
|
|
1923
1923
|
break;
|
|
1924
1924
|
case en: {
|
|
1925
|
-
var
|
|
1925
|
+
var a = s, h = l.findIndex(function(x) {
|
|
1926
1926
|
return o.itemToKey(x) === o.itemToKey(t);
|
|
1927
1927
|
});
|
|
1928
1928
|
if (h < 0)
|
|
1929
1929
|
break;
|
|
1930
|
-
|
|
1931
|
-
selectedItems: [].concat(
|
|
1932
|
-
activeIndex:
|
|
1930
|
+
l.length === 1 ? a = -1 : h === l.length - 1 && (a = l.length - 2), d = {
|
|
1931
|
+
selectedItems: [].concat(l.slice(0, h), l.slice(h + 1)),
|
|
1932
|
+
activeIndex: a
|
|
1933
1933
|
};
|
|
1934
1934
|
break;
|
|
1935
1935
|
}
|
|
@@ -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,
|
|
1965
|
+
var n = $({}, ti, e), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, t = n.keyNavigationNext, s = n.keyNavigationPrevious, l = Vo(ri, n, Jo, Zo), d = l[0], u = l[1], a = 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,
|
|
@@ -1980,15 +1980,15 @@ function Ne(e) {
|
|
|
1980
1980
|
itemToString: i,
|
|
1981
1981
|
resultCount: h.length,
|
|
1982
1982
|
removedSelectedItem: O,
|
|
1983
|
-
activeIndex:
|
|
1984
|
-
activeSelectedItem: h[
|
|
1983
|
+
activeIndex: a,
|
|
1984
|
+
activeSelectedItem: h[a]
|
|
1985
1985
|
}), o.document);
|
|
1986
1986
|
}
|
|
1987
1987
|
x.current = h;
|
|
1988
1988
|
}
|
|
1989
1989
|
}, [h.length]), de(function() {
|
|
1990
|
-
b || (
|
|
1991
|
-
}, [
|
|
1990
|
+
b || (a === -1 && _.current ? _.current.focus() : S.current[a] && S.current[a].focus());
|
|
1991
|
+
}, [a]), Pt({
|
|
1992
1992
|
props: n,
|
|
1993
1993
|
state: d
|
|
1994
1994
|
});
|
|
@@ -2004,11 +2004,11 @@ function Ne(e) {
|
|
|
2004
2004
|
});
|
|
2005
2005
|
}, O.Delete = function() {
|
|
2006
2006
|
u({
|
|
2007
|
-
type:
|
|
2007
|
+
type: zt
|
|
2008
2008
|
});
|
|
2009
2009
|
}, O.Backspace = function() {
|
|
2010
2010
|
u({
|
|
2011
|
-
type:
|
|
2011
|
+
type: Wt
|
|
2012
2012
|
});
|
|
2013
2013
|
}, O;
|
|
2014
2014
|
}, [u, t, s]), f = Te(function() {
|
|
@@ -2023,32 +2023,32 @@ function Ne(e) {
|
|
|
2023
2023
|
});
|
|
2024
2024
|
}, O;
|
|
2025
2025
|
}, [u, s]), p = ee(function(O) {
|
|
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,
|
|
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, z = 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: qt,
|
|
2029
2029
|
index: T
|
|
2030
2030
|
});
|
|
2031
|
-
}, H = function(
|
|
2032
|
-
var B = Ge(
|
|
2033
|
-
B && c[B] && c[B](
|
|
2031
|
+
}, H = function(W) {
|
|
2032
|
+
var B = Ge(W);
|
|
2033
|
+
B && c[B] && c[B](W);
|
|
2034
2034
|
};
|
|
2035
|
-
return $((P = {}, P[F] = Re(L, function(
|
|
2036
|
-
|
|
2037
|
-
}), P.tabIndex = A ? 0 : -1, P.onClick = re(K, w), P.onKeyDown = re(U, H), P),
|
|
2035
|
+
return $((P = {}, P[F] = Re(L, function(q) {
|
|
2036
|
+
q && S.current.push(q);
|
|
2037
|
+
}), P.tabIndex = A ? 0 : -1, P.onClick = re(K, w), P.onKeyDown = re(U, H), P), z);
|
|
2038
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,
|
|
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, z = j === void 0 ? !1 : j, Y = ve(R, ii), oe = P === void 0 ? {} : P, T = oe.suppressRefError, A = T === void 0 ? !1 : T;
|
|
2040
2040
|
D("getDropdownProps", A, L, _);
|
|
2041
|
-
var w = function(
|
|
2042
|
-
var B = Ge(
|
|
2043
|
-
B && f[B] && f[B](
|
|
2041
|
+
var w = function(W) {
|
|
2042
|
+
var B = Ge(W);
|
|
2043
|
+
B && f[B] && f[B](W);
|
|
2044
2044
|
}, H = function() {
|
|
2045
2045
|
u({
|
|
2046
2046
|
type: Qt
|
|
2047
2047
|
});
|
|
2048
2048
|
};
|
|
2049
|
-
return $((V = {}, V[L] = Re(K, function(
|
|
2050
|
-
|
|
2051
|
-
}), V), !
|
|
2049
|
+
return $((V = {}, V[L] = Re(K, function(q) {
|
|
2050
|
+
q && (_.current = q);
|
|
2051
|
+
}), V), !z && {
|
|
2052
2052
|
onKeyDown: re(U, w),
|
|
2053
2053
|
onClick: re(Z, H)
|
|
2054
2054
|
}, Y);
|
|
@@ -2086,7 +2086,7 @@ function Ne(e) {
|
|
|
2086
2086
|
setActiveIndex: k,
|
|
2087
2087
|
reset: M,
|
|
2088
2088
|
selectedItems: h,
|
|
2089
|
-
activeIndex:
|
|
2089
|
+
activeIndex: a
|
|
2090
2090
|
};
|
|
2091
2091
|
}
|
|
2092
2092
|
var ct = { exports: {} }, yr = {
|
|
@@ -2549,20 +2549,20 @@ var ct = { exports: {} }, yr = {
|
|
|
2549
2549
|
Й: "И",
|
|
2550
2550
|
ё: "е",
|
|
2551
2551
|
Ё: "Е"
|
|
2552
|
-
}, xr = Object.keys(yr).join("|"), si = new RegExp(xr, "g"),
|
|
2553
|
-
function
|
|
2552
|
+
}, xr = Object.keys(yr).join("|"), si = new RegExp(xr, "g"), ai = new RegExp(xr, "");
|
|
2553
|
+
function li(e) {
|
|
2554
2554
|
return yr[e];
|
|
2555
2555
|
}
|
|
2556
2556
|
var br = function(e) {
|
|
2557
|
-
return e.replace(si,
|
|
2557
|
+
return e.replace(si, li);
|
|
2558
2558
|
}, ui = function(e) {
|
|
2559
|
-
return !!e.match(
|
|
2559
|
+
return !!e.match(ai);
|
|
2560
2560
|
};
|
|
2561
2561
|
ct.exports = br;
|
|
2562
2562
|
ct.exports.has = ui;
|
|
2563
2563
|
ct.exports.remove = br;
|
|
2564
2564
|
var di = ct.exports;
|
|
2565
|
-
const ci = /* @__PURE__ */
|
|
2565
|
+
const ci = /* @__PURE__ */ ao(di);
|
|
2566
2566
|
/**
|
|
2567
2567
|
* @name match-sorter
|
|
2568
2568
|
* @license MIT license.
|
|
@@ -2585,22 +2585,22 @@ function on(e, n, r) {
|
|
|
2585
2585
|
keys: i,
|
|
2586
2586
|
threshold: o = fe.MATCHES,
|
|
2587
2587
|
baseSort: t = pi,
|
|
2588
|
-
sorter: s = (u) => u.sort((
|
|
2589
|
-
} = r,
|
|
2590
|
-
return s(
|
|
2588
|
+
sorter: s = (u) => u.sort((a, h) => mi(a, h, t))
|
|
2589
|
+
} = r, l = e.reduce(d, []);
|
|
2590
|
+
return s(l).map((u) => {
|
|
2591
2591
|
let {
|
|
2592
|
-
item:
|
|
2592
|
+
item: a
|
|
2593
2593
|
} = u;
|
|
2594
|
-
return
|
|
2594
|
+
return a;
|
|
2595
2595
|
});
|
|
2596
|
-
function d(u,
|
|
2597
|
-
const b = fi(
|
|
2596
|
+
function d(u, a, h) {
|
|
2597
|
+
const b = fi(a, i, n, r), {
|
|
2598
2598
|
rank: _,
|
|
2599
2599
|
keyThreshold: x = o
|
|
2600
2600
|
} = b;
|
|
2601
2601
|
return _ >= x && u.push({
|
|
2602
2602
|
...b,
|
|
2603
|
-
item:
|
|
2603
|
+
item: a,
|
|
2604
2604
|
index: h
|
|
2605
2605
|
}), u;
|
|
2606
2606
|
}
|
|
@@ -2617,11 +2617,11 @@ function fi(e, n, r, i) {
|
|
|
2617
2617
|
keyThreshold: i.threshold
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
|
-
return Ii(e, n).reduce((t, s,
|
|
2620
|
+
return Ii(e, n).reduce((t, s, l) => {
|
|
2621
2621
|
let {
|
|
2622
2622
|
rank: d,
|
|
2623
2623
|
rankedValue: u,
|
|
2624
|
-
keyIndex:
|
|
2624
|
+
keyIndex: a,
|
|
2625
2625
|
keyThreshold: h
|
|
2626
2626
|
} = t, {
|
|
2627
2627
|
itemValue: b,
|
|
@@ -2632,10 +2632,10 @@ function fi(e, n, r, i) {
|
|
|
2632
2632
|
maxRanking: D,
|
|
2633
2633
|
threshold: c
|
|
2634
2634
|
} = _;
|
|
2635
|
-
return x < g && x >= fe.MATCHES ? x = g : x > D && (x = D), x > d && (d = x,
|
|
2635
|
+
return x < g && x >= fe.MATCHES ? x = g : x > D && (x = D), x > d && (d = x, a = l, h = c, S = b), {
|
|
2636
2636
|
rankedValue: S,
|
|
2637
2637
|
rank: d,
|
|
2638
|
-
keyIndex:
|
|
2638
|
+
keyIndex: a,
|
|
2639
2639
|
keyThreshold: h
|
|
2640
2640
|
};
|
|
2641
2641
|
}, {
|
|
@@ -2658,37 +2658,37 @@ function hi(e) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
function gi(e, n) {
|
|
2660
2660
|
let r = 0, i = 0;
|
|
2661
|
-
function o(d, u,
|
|
2662
|
-
for (let h =
|
|
2661
|
+
function o(d, u, a) {
|
|
2662
|
+
for (let h = a, b = u.length; h < b; h++)
|
|
2663
2663
|
if (u[h] === d)
|
|
2664
2664
|
return r += 1, h + 1;
|
|
2665
2665
|
return -1;
|
|
2666
2666
|
}
|
|
2667
2667
|
function t(d) {
|
|
2668
|
-
const u = 1 / d,
|
|
2669
|
-
return fe.MATCHES +
|
|
2668
|
+
const u = 1 / d, a = r / n.length;
|
|
2669
|
+
return fe.MATCHES + a * u;
|
|
2670
2670
|
}
|
|
2671
2671
|
const s = o(n[0], e, 0);
|
|
2672
2672
|
if (s < 0)
|
|
2673
2673
|
return fe.NO_MATCH;
|
|
2674
2674
|
i = s;
|
|
2675
2675
|
for (let d = 1, u = n.length; d < u; d++) {
|
|
2676
|
-
const
|
|
2677
|
-
if (i = o(
|
|
2676
|
+
const a = n[d];
|
|
2677
|
+
if (i = o(a, e, i), !(i > -1))
|
|
2678
2678
|
return fe.NO_MATCH;
|
|
2679
2679
|
}
|
|
2680
|
-
const
|
|
2681
|
-
return t(
|
|
2680
|
+
const l = i - s;
|
|
2681
|
+
return t(l);
|
|
2682
2682
|
}
|
|
2683
2683
|
function mi(e, n, r) {
|
|
2684
2684
|
const {
|
|
2685
2685
|
rank: t,
|
|
2686
2686
|
keyIndex: s
|
|
2687
2687
|
} = e, {
|
|
2688
|
-
rank:
|
|
2688
|
+
rank: l,
|
|
2689
2689
|
keyIndex: d
|
|
2690
2690
|
} = n;
|
|
2691
|
-
return t ===
|
|
2691
|
+
return t === l ? s === d ? r(e, n) : s < d ? -1 : 1 : t > l ? -1 : 1;
|
|
2692
2692
|
}
|
|
2693
2693
|
function Cn(e, n) {
|
|
2694
2694
|
let {
|
|
@@ -2717,27 +2717,27 @@ function _i(e, n) {
|
|
|
2717
2717
|
let i = [n];
|
|
2718
2718
|
for (let o = 0, t = r.length; o < t; o++) {
|
|
2719
2719
|
const s = r[o];
|
|
2720
|
-
let
|
|
2720
|
+
let l = [];
|
|
2721
2721
|
for (let d = 0, u = i.length; d < u; d++) {
|
|
2722
|
-
const
|
|
2723
|
-
if (
|
|
2724
|
-
if (Object.hasOwnProperty.call(
|
|
2725
|
-
const h =
|
|
2726
|
-
h != null &&
|
|
2722
|
+
const a = i[d];
|
|
2723
|
+
if (a != null)
|
|
2724
|
+
if (Object.hasOwnProperty.call(a, s)) {
|
|
2725
|
+
const h = a[s];
|
|
2726
|
+
h != null && l.push(h);
|
|
2727
2727
|
} else
|
|
2728
|
-
s === "*" && (
|
|
2728
|
+
s === "*" && (l = l.concat(a));
|
|
2729
2729
|
}
|
|
2730
|
-
i =
|
|
2730
|
+
i = l;
|
|
2731
2731
|
}
|
|
2732
2732
|
return Array.isArray(i[0]) ? [].concat(...i) : i;
|
|
2733
2733
|
}
|
|
2734
2734
|
function Ii(e, n) {
|
|
2735
2735
|
const r = [];
|
|
2736
2736
|
for (let i = 0, o = n.length; i < o; i++) {
|
|
2737
|
-
const t = n[i], s = yi(t),
|
|
2738
|
-
for (let d = 0, u =
|
|
2737
|
+
const t = n[i], s = yi(t), l = vi(e, t);
|
|
2738
|
+
for (let d = 0, u = l.length; d < u; d++)
|
|
2739
2739
|
r.push({
|
|
2740
|
-
itemValue:
|
|
2740
|
+
itemValue: l[d],
|
|
2741
2741
|
attributes: s
|
|
2742
2742
|
});
|
|
2743
2743
|
}
|
|
@@ -2761,10 +2761,10 @@ function xi({
|
|
|
2761
2761
|
onOpenChange: o,
|
|
2762
2762
|
onClose: t,
|
|
2763
2763
|
disableCloseOnClickOutside: s,
|
|
2764
|
-
disableCloseOnEscape:
|
|
2764
|
+
disableCloseOnEscape: l,
|
|
2765
2765
|
openOnHover: d,
|
|
2766
2766
|
fillAvailableHeight: u,
|
|
2767
|
-
matchReferenceWidth:
|
|
2767
|
+
matchReferenceWidth: a,
|
|
2768
2768
|
fixedWidth: h,
|
|
2769
2769
|
disableCaret: b,
|
|
2770
2770
|
noPadding: _,
|
|
@@ -2774,7 +2774,7 @@ function xi({
|
|
|
2774
2774
|
disableAutoUpdate: D,
|
|
2775
2775
|
disableFocusLock: c
|
|
2776
2776
|
} = {}) {
|
|
2777
|
-
const [f, p] = J(e), [I, m] = J(), [N, E] = J(), k = i ?? f, M = o ?? p, O = Q(null), P =
|
|
2777
|
+
const [f, p] = J(e), [I, m] = J(), [N, E] = J(), k = i ?? f, M = o ?? p, O = Q(null), P = Wr({
|
|
2778
2778
|
placement: n,
|
|
2779
2779
|
open: k,
|
|
2780
2780
|
onOpenChange: M,
|
|
@@ -2783,9 +2783,9 @@ function xi({
|
|
|
2783
2783
|
Gr(8),
|
|
2784
2784
|
Xr({
|
|
2785
2785
|
padding: 5,
|
|
2786
|
-
apply({ rects: Z, availableHeight: j, elements:
|
|
2787
|
-
Object.assign(
|
|
2788
|
-
...
|
|
2786
|
+
apply({ rects: Z, availableHeight: j, elements: z }) {
|
|
2787
|
+
Object.assign(z.floating.style, {
|
|
2788
|
+
...a ? { width: `${Z.reference.width}px` } : h ? { width: "40dvw" } : {},
|
|
2789
2789
|
...u ? (
|
|
2790
2790
|
// { maxHeight: "60dvh" }
|
|
2791
2791
|
// Minimum height is 236px before flip
|
|
@@ -2817,7 +2817,7 @@ function xi({
|
|
|
2817
2817
|
enabled: i == null && !!d,
|
|
2818
2818
|
handleClose: ro()
|
|
2819
2819
|
}), L = oo(V, {
|
|
2820
|
-
escapeKey: !
|
|
2820
|
+
escapeKey: !l,
|
|
2821
2821
|
outsidePress: () => s ? !1 : (t == null || t(), !0)
|
|
2822
2822
|
}), K = io(V), U = so([R, F, L, K]);
|
|
2823
2823
|
return Te(
|
|
@@ -2836,7 +2836,7 @@ function xi({
|
|
|
2836
2836
|
disableCaret: b,
|
|
2837
2837
|
noPadding: _,
|
|
2838
2838
|
fillAvailableHeight: u,
|
|
2839
|
-
matchReferenceWidth:
|
|
2839
|
+
matchReferenceWidth: a,
|
|
2840
2840
|
fixedWidth: h,
|
|
2841
2841
|
disableFlipFallback: g,
|
|
2842
2842
|
disableAutoUpdate: D,
|
|
@@ -2854,7 +2854,7 @@ function xi({
|
|
|
2854
2854
|
b,
|
|
2855
2855
|
_,
|
|
2856
2856
|
u,
|
|
2857
|
-
|
|
2857
|
+
a,
|
|
2858
2858
|
h,
|
|
2859
2859
|
g,
|
|
2860
2860
|
D,
|
|
@@ -2871,6 +2871,7 @@ const wr = dt(null), Je = () => {
|
|
|
2871
2871
|
const { children: n } = e, r = Je(), i = Q(null), o = Be([r.refs.setReference, i]);
|
|
2872
2872
|
return n({
|
|
2873
2873
|
"data-state": r.open ? "open" : "closed",
|
|
2874
|
+
"data-anv": "popover-trigger",
|
|
2874
2875
|
...r.getReferenceProps({ ref: o })
|
|
2875
2876
|
});
|
|
2876
2877
|
}, wi = "_content_x4y1q_4", Ei = "_arrow_x4y1q_26", mt = {
|
|
@@ -2883,10 +2884,10 @@ const wr = dt(null), Je = () => {
|
|
|
2883
2884
|
context: o,
|
|
2884
2885
|
theme: t,
|
|
2885
2886
|
mode: s,
|
|
2886
|
-
disableCaret:
|
|
2887
|
+
disableCaret: l,
|
|
2887
2888
|
noPadding: d,
|
|
2888
2889
|
onClose: u,
|
|
2889
|
-
disableFocusLock:
|
|
2890
|
+
disableFocusLock: a,
|
|
2890
2891
|
...h
|
|
2891
2892
|
} = Je(), b = Be([h.refs.setFloating, i]);
|
|
2892
2893
|
if (!o.open)
|
|
@@ -2897,16 +2898,17 @@ const wr = dt(null), Je = () => {
|
|
|
2897
2898
|
S.code === "Escape" && (u == null || u());
|
|
2898
2899
|
};
|
|
2899
2900
|
return /* @__PURE__ */ v.jsx(Ur, { children: /* @__PURE__ */ v.jsx(
|
|
2900
|
-
|
|
2901
|
+
qr,
|
|
2901
2902
|
{
|
|
2902
2903
|
context: o,
|
|
2903
2904
|
modal: h.modal,
|
|
2904
2905
|
order: ["reference", "content"],
|
|
2905
|
-
disabled:
|
|
2906
|
+
disabled: a,
|
|
2906
2907
|
children: /* @__PURE__ */ v.jsx(Kr, { theme: t, mode: s, children: /* @__PURE__ */ v.jsxs(
|
|
2907
2908
|
"div",
|
|
2908
2909
|
{
|
|
2909
2910
|
ref: b,
|
|
2911
|
+
"data-anv": "popover-content",
|
|
2910
2912
|
style: { ...h.floatingStyles, ...n },
|
|
2911
2913
|
"aria-labelledby": h.labelId,
|
|
2912
2914
|
"aria-describedby": h.descriptionId,
|
|
@@ -2915,8 +2917,8 @@ const wr = dt(null), Je = () => {
|
|
|
2915
2917
|
onKeyDown: x,
|
|
2916
2918
|
role: "presentation",
|
|
2917
2919
|
children: [
|
|
2918
|
-
!
|
|
2919
|
-
|
|
2920
|
+
!l && /* @__PURE__ */ v.jsx(
|
|
2921
|
+
zr,
|
|
2920
2922
|
{
|
|
2921
2923
|
ref: h.arrowRef,
|
|
2922
2924
|
context: o,
|
|
@@ -2934,9 +2936,10 @@ const wr = dt(null), Je = () => {
|
|
|
2934
2936
|
function(e, n) {
|
|
2935
2937
|
const { setOpen: r, onClose: i } = Je();
|
|
2936
2938
|
return /* @__PURE__ */ v.jsx(
|
|
2937
|
-
|
|
2939
|
+
We,
|
|
2938
2940
|
{
|
|
2939
2941
|
ref: n,
|
|
2942
|
+
"data-anv": "popover-close",
|
|
2940
2943
|
...e,
|
|
2941
2944
|
onClick: (o) => {
|
|
2942
2945
|
var t;
|
|
@@ -2947,17 +2950,18 @@ const wr = dt(null), Je = () => {
|
|
|
2947
2950
|
}
|
|
2948
2951
|
), Oi = ce(
|
|
2949
2952
|
function(e, n) {
|
|
2950
|
-
const { children: r, size: i, ...o } = e, t = Je(), s = r.ref,
|
|
2953
|
+
const { children: r, size: i, ...o } = e, t = Je(), s = r.ref, l = Be([
|
|
2951
2954
|
t.refs.setReference,
|
|
2952
2955
|
n,
|
|
2953
2956
|
s
|
|
2954
2957
|
]);
|
|
2955
2958
|
return /* @__PURE__ */ v.jsx(
|
|
2956
|
-
|
|
2959
|
+
We,
|
|
2957
2960
|
{
|
|
2958
|
-
ref:
|
|
2961
|
+
ref: l,
|
|
2959
2962
|
size: i,
|
|
2960
2963
|
"data-state": t.open ? "open" : "closed",
|
|
2964
|
+
"data-anv": "popover-button",
|
|
2961
2965
|
...t.getReferenceProps(o),
|
|
2962
2966
|
children: r
|
|
2963
2967
|
}
|
|
@@ -3004,9 +3008,9 @@ const sn = Object.assign(Di, {
|
|
|
3004
3008
|
suffix: Hi,
|
|
3005
3009
|
"listview-option": "_listview-option_1jt3w_255",
|
|
3006
3010
|
empty: ji
|
|
3007
|
-
},
|
|
3011
|
+
}, an = dt(null), Qe = function() {
|
|
3008
3012
|
const e = Ve(
|
|
3009
|
-
|
|
3013
|
+
an
|
|
3010
3014
|
);
|
|
3011
3015
|
if (e == null)
|
|
3012
3016
|
throw new Error("useCombobox must be wrapped in <Combobox />");
|
|
@@ -3020,14 +3024,14 @@ const sn = Object.assign(Di, {
|
|
|
3020
3024
|
style: o,
|
|
3021
3025
|
children: t,
|
|
3022
3026
|
open: s,
|
|
3023
|
-
items:
|
|
3027
|
+
items: l,
|
|
3024
3028
|
itemToString: d,
|
|
3025
3029
|
onChange: u,
|
|
3026
|
-
onSelectedItemChange:
|
|
3030
|
+
onSelectedItemChange: a,
|
|
3027
3031
|
disableCloseOnClickOutside: h = !1,
|
|
3028
3032
|
filterOptions: b,
|
|
3029
3033
|
..._
|
|
3030
|
-
} = r, [x, S] = J(
|
|
3034
|
+
} = r, [x, S] = J(l), [g, D] = J(!1), [c, f] = J(!1), [p, I] = J(!1), [m, N] = J([]);
|
|
3031
3035
|
function E(j) {
|
|
3032
3036
|
return d && j ? d(j) : j ? String(j) : "";
|
|
3033
3037
|
}
|
|
@@ -3049,17 +3053,17 @@ const sn = Object.assign(Di, {
|
|
|
3049
3053
|
itemToString(j) {
|
|
3050
3054
|
return E(j);
|
|
3051
3055
|
},
|
|
3052
|
-
onInputValueChange({ inputValue: j, type:
|
|
3053
|
-
|
|
3056
|
+
onInputValueChange({ inputValue: j, type: z }) {
|
|
3057
|
+
z === ge.stateChangeTypes.InputKeyDownEnter || z === ge.stateChangeTypes.ItemClick ? S(l) : j != null && j !== "" ? S(on(l, j, b)) : S(l);
|
|
3054
3058
|
},
|
|
3055
|
-
onSelectedItemChange({ selectedItem: j, ...
|
|
3056
|
-
u != null && u(j || null),
|
|
3059
|
+
onSelectedItemChange({ selectedItem: j, ...z }) {
|
|
3060
|
+
u != null && u(j || null), a != null && a({ selectedItem: j, ...z });
|
|
3057
3061
|
},
|
|
3058
|
-
onIsOpenChange({ isOpen: j, inputValue:
|
|
3059
|
-
j === !1 &&
|
|
3062
|
+
onIsOpenChange({ isOpen: j, inputValue: z, selectedItem: Y }) {
|
|
3063
|
+
j === !1 && z === "" ? K(null) : j === !1 && U(Y != null ? E(Y) : "");
|
|
3060
3064
|
},
|
|
3061
|
-
stateReducer(j, { type:
|
|
3062
|
-
switch (
|
|
3065
|
+
stateReducer(j, { type: z, changes: Y }) {
|
|
3066
|
+
switch (z) {
|
|
3063
3067
|
case ge.stateChangeTypes.InputBlur:
|
|
3064
3068
|
return h ? {
|
|
3065
3069
|
...Y,
|
|
@@ -3075,7 +3079,7 @@ const sn = Object.assign(Di, {
|
|
|
3075
3079
|
}
|
|
3076
3080
|
});
|
|
3077
3081
|
return /* @__PURE__ */ v.jsx(
|
|
3078
|
-
|
|
3082
|
+
an.Provider,
|
|
3079
3083
|
{
|
|
3080
3084
|
value: {
|
|
3081
3085
|
multiple: !1,
|
|
@@ -3105,18 +3109,26 @@ const sn = Object.assign(Di, {
|
|
|
3105
3109
|
hasEmpty: p,
|
|
3106
3110
|
setHasEmpty: I
|
|
3107
3111
|
},
|
|
3108
|
-
children: /* @__PURE__ */ v.jsx(
|
|
3109
|
-
|
|
3112
|
+
children: /* @__PURE__ */ v.jsx(
|
|
3113
|
+
"div",
|
|
3110
3114
|
{
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3115
|
+
className: i,
|
|
3116
|
+
"data-anv": "combobox",
|
|
3117
|
+
style: { ...o, ...n },
|
|
3118
|
+
children: /* @__PURE__ */ v.jsx(
|
|
3119
|
+
sn,
|
|
3120
|
+
{
|
|
3121
|
+
open: s === !0 ? s : k,
|
|
3122
|
+
noPadding: !0,
|
|
3123
|
+
disableCaret: !0,
|
|
3124
|
+
fillAvailableHeight: !0,
|
|
3125
|
+
disableFlipFallback: !0,
|
|
3126
|
+
matchReferenceWidth: !0,
|
|
3127
|
+
children: t
|
|
3128
|
+
}
|
|
3129
|
+
)
|
|
3118
3130
|
}
|
|
3119
|
-
)
|
|
3131
|
+
)
|
|
3120
3132
|
}
|
|
3121
3133
|
);
|
|
3122
3134
|
}, Fi = function(e) {
|
|
@@ -3125,14 +3137,14 @@ const sn = Object.assign(Di, {
|
|
|
3125
3137
|
style: o,
|
|
3126
3138
|
children: t,
|
|
3127
3139
|
open: s,
|
|
3128
|
-
items:
|
|
3140
|
+
items: l,
|
|
3129
3141
|
itemToString: d,
|
|
3130
3142
|
onChange: u,
|
|
3131
|
-
onSelectedItemChange:
|
|
3143
|
+
onSelectedItemChange: a,
|
|
3132
3144
|
disableCloseOnClickOutside: h = !1,
|
|
3133
3145
|
filterOptions: b,
|
|
3134
3146
|
..._
|
|
3135
|
-
} = r, [x, S] = J(
|
|
3147
|
+
} = r, [x, S] = J(l), [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
3148
|
selectedItems: E,
|
|
3137
3149
|
onStateChange({ selectedItems: w, type: H }) {
|
|
3138
3150
|
switch (H) {
|
|
@@ -3156,7 +3168,7 @@ const sn = Object.assign(Di, {
|
|
|
3156
3168
|
getLabelProps: U,
|
|
3157
3169
|
getInputProps: Z,
|
|
3158
3170
|
getToggleButtonProps: j,
|
|
3159
|
-
getMenuProps:
|
|
3171
|
+
getMenuProps: z,
|
|
3160
3172
|
getItemProps: Y,
|
|
3161
3173
|
highlightedIndex: oe,
|
|
3162
3174
|
selectedItem: T,
|
|
@@ -3170,21 +3182,21 @@ const sn = Object.assign(Di, {
|
|
|
3170
3182
|
selectedItem: null,
|
|
3171
3183
|
inputValue: m,
|
|
3172
3184
|
onInputValueChange({ inputValue: w, type: H }) {
|
|
3173
|
-
H === ge.stateChangeTypes.InputKeyDownEnter || H === ge.stateChangeTypes.ItemClick ? S(
|
|
3185
|
+
H === ge.stateChangeTypes.InputKeyDownEnter || H === ge.stateChangeTypes.ItemClick ? S(l) : w != null && w !== "" ? S(on(l, w, b)) : S(l);
|
|
3174
3186
|
},
|
|
3175
3187
|
onIsOpenChange({ isOpen: w }) {
|
|
3176
3188
|
w === !1 && N("");
|
|
3177
3189
|
},
|
|
3178
|
-
stateReducer(w, { type: H, changes:
|
|
3190
|
+
stateReducer(w, { type: H, changes: q }) {
|
|
3179
3191
|
switch (H) {
|
|
3180
3192
|
case ge.stateChangeTypes.InputBlur:
|
|
3181
3193
|
return h ? {
|
|
3182
|
-
...
|
|
3194
|
+
...q,
|
|
3183
3195
|
isOpen: w.isOpen,
|
|
3184
3196
|
highlightedIndex: w.highlightedIndex
|
|
3185
|
-
} :
|
|
3197
|
+
} : q;
|
|
3186
3198
|
default:
|
|
3187
|
-
return
|
|
3199
|
+
return q;
|
|
3188
3200
|
}
|
|
3189
3201
|
},
|
|
3190
3202
|
isItemDisabled(w) {
|
|
@@ -3193,15 +3205,15 @@ const sn = Object.assign(Di, {
|
|
|
3193
3205
|
onStateChange({
|
|
3194
3206
|
inputValue: w = "",
|
|
3195
3207
|
type: H,
|
|
3196
|
-
selectedItem:
|
|
3208
|
+
selectedItem: q
|
|
3197
3209
|
}) {
|
|
3198
3210
|
switch (H) {
|
|
3199
3211
|
case ge.stateChangeTypes.InputKeyDownEnter:
|
|
3200
3212
|
case ge.stateChangeTypes.ItemClick:
|
|
3201
3213
|
case ge.stateChangeTypes.InputBlur:
|
|
3202
|
-
if (
|
|
3203
|
-
const
|
|
3204
|
-
u != null && u(
|
|
3214
|
+
if (q) {
|
|
3215
|
+
const W = E.includes(q) ? E.filter((B) => B !== q) : [...E, q];
|
|
3216
|
+
u != null && u(W), k(W), N("");
|
|
3205
3217
|
}
|
|
3206
3218
|
break;
|
|
3207
3219
|
case ge.stateChangeTypes.InputChange:
|
|
@@ -3211,7 +3223,7 @@ const sn = Object.assign(Di, {
|
|
|
3211
3223
|
}
|
|
3212
3224
|
});
|
|
3213
3225
|
return /* @__PURE__ */ v.jsx(
|
|
3214
|
-
|
|
3226
|
+
an.Provider,
|
|
3215
3227
|
{
|
|
3216
3228
|
value: {
|
|
3217
3229
|
multiple: !0,
|
|
@@ -3221,7 +3233,7 @@ const sn = Object.assign(Di, {
|
|
|
3221
3233
|
getLabelProps: U,
|
|
3222
3234
|
getInputProps: Z,
|
|
3223
3235
|
getToggleButtonProps: j,
|
|
3224
|
-
getMenuProps:
|
|
3236
|
+
getMenuProps: z,
|
|
3225
3237
|
getItemProps: Y,
|
|
3226
3238
|
highlightedIndex: oe,
|
|
3227
3239
|
selectedItem: T,
|
|
@@ -3263,10 +3275,10 @@ const sn = Object.assign(Di, {
|
|
|
3263
3275
|
hint: o,
|
|
3264
3276
|
description: t,
|
|
3265
3277
|
required: s,
|
|
3266
|
-
moreInfo:
|
|
3278
|
+
moreInfo: l,
|
|
3267
3279
|
openMoreInfo: d,
|
|
3268
3280
|
disabled: u,
|
|
3269
|
-
readOnly:
|
|
3281
|
+
readOnly: a,
|
|
3270
3282
|
prefix: h,
|
|
3271
3283
|
suffix: b,
|
|
3272
3284
|
maxRows: _,
|
|
@@ -3293,21 +3305,21 @@ const sn = Object.assign(Di, {
|
|
|
3293
3305
|
}), F = Ie(), L = Ie(), K = se(te.input, e, {
|
|
3294
3306
|
[te.error]: i
|
|
3295
3307
|
});
|
|
3296
|
-
de(() => (O(!!(u ||
|
|
3308
|
+
de(() => (O(!!(u || a)), () => {
|
|
3297
3309
|
O(!1);
|
|
3298
|
-
}), [u,
|
|
3310
|
+
}), [u, a, O]);
|
|
3299
3311
|
let U = `label${F} `;
|
|
3300
3312
|
U += ` helper${L}`;
|
|
3301
|
-
const Z = typeof i != "boolean" ? i : void 0, j = Q(null), [
|
|
3313
|
+
const Z = typeof i != "boolean" ? i : void 0, j = Q(null), [z, Y] = J(!1), [oe, T] = J(!1), [A, w] = J(
|
|
3302
3314
|
null
|
|
3303
|
-
), [H,
|
|
3315
|
+
), [H, q] = J(0);
|
|
3304
3316
|
wt(() => {
|
|
3305
|
-
var B,
|
|
3317
|
+
var B, ae;
|
|
3306
3318
|
if (_ !== void 0) {
|
|
3307
|
-
if (
|
|
3308
|
-
Y(!0), T(!1), w(null),
|
|
3319
|
+
if (z === !1)
|
|
3320
|
+
Y(!0), T(!1), w(null), q((le) => le + 1);
|
|
3309
3321
|
else if ((B = j == null ? void 0 : j.current) != null && B.children) {
|
|
3310
|
-
const
|
|
3322
|
+
const le = (ae = j == null ? void 0 : j.current) == null ? void 0 : ae.children, ue = Array.from(le).reduce(
|
|
3311
3323
|
(C, he) => {
|
|
3312
3324
|
const ie = he.getBoundingClientRect().top;
|
|
3313
3325
|
return C.length ? C[C.length - 1].top === ie ? [
|
|
@@ -3328,13 +3340,13 @@ const sn = Object.assign(Di, {
|
|
|
3328
3340
|
w(C);
|
|
3329
3341
|
} else
|
|
3330
3342
|
w(A - 1);
|
|
3331
|
-
|
|
3343
|
+
q((C) => C + 1);
|
|
3332
3344
|
}
|
|
3333
3345
|
}
|
|
3334
3346
|
}
|
|
3335
3347
|
}, [p.length, _, H]);
|
|
3336
|
-
const
|
|
3337
|
-
return /* @__PURE__ */ v.jsxs("div", { className: te["search-field"], children: [
|
|
3348
|
+
const W = oe && _ != null && A !== null ? A : p.length;
|
|
3349
|
+
return /* @__PURE__ */ v.jsxs("div", { className: te["search-field"], "data-anv": "combobox-searchfield", children: [
|
|
3338
3350
|
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
3339
3351
|
/* @__PURE__ */ v.jsx(
|
|
3340
3352
|
bt,
|
|
@@ -3342,7 +3354,7 @@ const sn = Object.assign(Di, {
|
|
|
3342
3354
|
...D({
|
|
3343
3355
|
id: F,
|
|
3344
3356
|
required: s,
|
|
3345
|
-
moreInfo:
|
|
3357
|
+
moreInfo: l,
|
|
3346
3358
|
openMoreInfo: d
|
|
3347
3359
|
}),
|
|
3348
3360
|
children: n
|
|
@@ -3356,7 +3368,7 @@ const sn = Object.assign(Di, {
|
|
|
3356
3368
|
children: [
|
|
3357
3369
|
/* @__PURE__ */ v.jsxs("div", { className: te["buttons-wrapper"], children: [
|
|
3358
3370
|
M || p.length ? /* @__PURE__ */ v.jsx("div", { className: te["close-button-wrapper"], children: /* @__PURE__ */ v.jsx(
|
|
3359
|
-
|
|
3371
|
+
We,
|
|
3360
3372
|
{
|
|
3361
3373
|
"aria-label": "clear selection",
|
|
3362
3374
|
appearance: "ghost",
|
|
@@ -3367,17 +3379,17 @@ const sn = Object.assign(Di, {
|
|
|
3367
3379
|
N != null ? N() : k(null);
|
|
3368
3380
|
},
|
|
3369
3381
|
tabIndex: -1,
|
|
3370
|
-
disabled: u ||
|
|
3382
|
+
disabled: u || a
|
|
3371
3383
|
}
|
|
3372
3384
|
) }) : null,
|
|
3373
3385
|
P ? null : /* @__PURE__ */ v.jsx("div", { className: te["toggle-button-wrapper"], children: /* @__PURE__ */ v.jsx(
|
|
3374
|
-
|
|
3386
|
+
We,
|
|
3375
3387
|
{
|
|
3376
3388
|
"aria-label": "toggle menu",
|
|
3377
3389
|
...f({
|
|
3378
3390
|
icon: Er,
|
|
3379
3391
|
className: te["toggle-button"],
|
|
3380
|
-
disabled: u ||
|
|
3392
|
+
disabled: u || a
|
|
3381
3393
|
}),
|
|
3382
3394
|
appearance: "ghost",
|
|
3383
3395
|
size: "small"
|
|
@@ -3385,17 +3397,17 @@ const sn = Object.assign(Di, {
|
|
|
3385
3397
|
) })
|
|
3386
3398
|
] }),
|
|
3387
3399
|
/* @__PURE__ */ v.jsxs("div", { className: te["rows-wrapper"], ref: j, children: [
|
|
3388
|
-
p.length && E != null && I != null ? p.slice(0,
|
|
3389
|
-
const { onClick:
|
|
3400
|
+
p.length && E != null && I != null ? p.slice(0, W).map((B, ae) => {
|
|
3401
|
+
const { onClick: le, ...ue } = I({
|
|
3390
3402
|
selectedItem: B,
|
|
3391
|
-
index:
|
|
3403
|
+
index: ae
|
|
3392
3404
|
});
|
|
3393
3405
|
return /* @__PURE__ */ v.jsx(
|
|
3394
3406
|
"div",
|
|
3395
3407
|
{
|
|
3396
3408
|
className: te["chip-wrapper"],
|
|
3397
3409
|
children: /* @__PURE__ */ v.jsx(
|
|
3398
|
-
|
|
3410
|
+
ln,
|
|
3399
3411
|
{
|
|
3400
3412
|
...ue,
|
|
3401
3413
|
label: g(B),
|
|
@@ -3405,15 +3417,15 @@ const sn = Object.assign(Di, {
|
|
|
3405
3417
|
}
|
|
3406
3418
|
)
|
|
3407
3419
|
},
|
|
3408
|
-
`selected-item-${
|
|
3420
|
+
`selected-item-${ae}`
|
|
3409
3421
|
);
|
|
3410
3422
|
}) : null,
|
|
3411
3423
|
oe && _ != null ? /* @__PURE__ */ v.jsx("div", { className: te["chip-wrapper"], children: /* @__PURE__ */ v.jsx(
|
|
3412
|
-
|
|
3424
|
+
ln,
|
|
3413
3425
|
{
|
|
3414
|
-
label: `+${p.length -
|
|
3426
|
+
label: `+${p.length - W}`,
|
|
3415
3427
|
className: te.chip,
|
|
3416
|
-
title: p.slice(
|
|
3428
|
+
title: p.slice(W).map((B) => g(B)).join(", ")
|
|
3417
3429
|
}
|
|
3418
3430
|
) }) : null,
|
|
3419
3431
|
/* @__PURE__ */ v.jsxs(
|
|
@@ -3432,7 +3444,7 @@ const sn = Object.assign(Di, {
|
|
|
3432
3444
|
...x,
|
|
3433
3445
|
className: K,
|
|
3434
3446
|
disabled: u,
|
|
3435
|
-
readOnly:
|
|
3447
|
+
readOnly: a,
|
|
3436
3448
|
required: s,
|
|
3437
3449
|
autoComplete: "off",
|
|
3438
3450
|
"aria-labelledby": U,
|
|
@@ -3442,7 +3454,7 @@ const sn = Object.assign(Di, {
|
|
|
3442
3454
|
...x,
|
|
3443
3455
|
className: K,
|
|
3444
3456
|
disabled: u,
|
|
3445
|
-
readOnly:
|
|
3457
|
+
readOnly: a,
|
|
3446
3458
|
required: s,
|
|
3447
3459
|
autoComplete: "off",
|
|
3448
3460
|
"aria-labelledby": U
|
|
@@ -3478,10 +3490,10 @@ const sn = Object.assign(Di, {
|
|
|
3478
3490
|
items: o,
|
|
3479
3491
|
highlightedIndex: t,
|
|
3480
3492
|
selectedItem: s,
|
|
3481
|
-
selectedItems:
|
|
3493
|
+
selectedItems: l,
|
|
3482
3494
|
setHasDisabledPopover: d,
|
|
3483
3495
|
getMenuProps: u,
|
|
3484
|
-
getItemProps:
|
|
3496
|
+
getItemProps: a,
|
|
3485
3497
|
isDisabledOrReadOnly: h
|
|
3486
3498
|
} = Qe(), b = se(
|
|
3487
3499
|
te["popover-content"],
|
|
@@ -3494,7 +3506,7 @@ const sn = Object.assign(Di, {
|
|
|
3494
3506
|
highlightedIndex: t,
|
|
3495
3507
|
selectedItem: s,
|
|
3496
3508
|
getMenuProps: u,
|
|
3497
|
-
getItemProps:
|
|
3509
|
+
getItemProps: a,
|
|
3498
3510
|
listProps: {
|
|
3499
3511
|
...u({}, { suppressRefError: !0 }),
|
|
3500
3512
|
style: {
|
|
@@ -3504,44 +3516,52 @@ const sn = Object.assign(Di, {
|
|
|
3504
3516
|
},
|
|
3505
3517
|
options: o.map((_, x) => ({
|
|
3506
3518
|
optionProps: {
|
|
3507
|
-
...
|
|
3519
|
+
...a({
|
|
3508
3520
|
item: _,
|
|
3509
3521
|
index: x
|
|
3510
3522
|
}),
|
|
3511
|
-
selected: s === _ ||
|
|
3523
|
+
selected: s === _ || l.includes(_),
|
|
3512
3524
|
disabled: h
|
|
3513
3525
|
// also see "isItemDisabled" function
|
|
3514
3526
|
},
|
|
3515
3527
|
item: _,
|
|
3516
3528
|
index: x
|
|
3517
3529
|
}))
|
|
3518
|
-
}) : null }) : /* @__PURE__ */ v.jsx(
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3530
|
+
}) : null }) : /* @__PURE__ */ v.jsx(
|
|
3531
|
+
sn.Content,
|
|
3532
|
+
{
|
|
3533
|
+
"data-anv": "combobox-content",
|
|
3534
|
+
...i,
|
|
3535
|
+
className: b,
|
|
3536
|
+
children: e ? e({
|
|
3537
|
+
items: o,
|
|
3538
|
+
highlightedIndex: t,
|
|
3539
|
+
selectedItem: s,
|
|
3540
|
+
getMenuProps: u,
|
|
3541
|
+
getItemProps: a,
|
|
3542
|
+
listProps: {
|
|
3543
|
+
...u({}, { suppressRefError: !0 }),
|
|
3544
|
+
style: {
|
|
3545
|
+
display: o.length ? void 0 : "none",
|
|
3546
|
+
overflow: "auto"
|
|
3547
|
+
}
|
|
3548
|
+
},
|
|
3549
|
+
options: o.map((_, x) => ({
|
|
3550
|
+
optionProps: {
|
|
3551
|
+
...a({
|
|
3552
|
+
item: _,
|
|
3553
|
+
index: x
|
|
3554
|
+
}),
|
|
3555
|
+
selected: s === _ || l.includes(_),
|
|
3556
|
+
disabled: h
|
|
3557
|
+
// also see "isItemDisabled" function
|
|
3558
|
+
},
|
|
3534
3559
|
item: _,
|
|
3535
3560
|
index: x
|
|
3536
|
-
})
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
},
|
|
3541
|
-
item: _,
|
|
3542
|
-
index: x
|
|
3543
|
-
}))
|
|
3544
|
-
}) : null });
|
|
3561
|
+
}))
|
|
3562
|
+
}) : null
|
|
3563
|
+
}
|
|
3564
|
+
);
|
|
3545
3565
|
}, Ui = function({
|
|
3546
3566
|
children: e,
|
|
3547
3567
|
...n
|
|
@@ -3551,6 +3571,7 @@ const sn = Object.assign(Di, {
|
|
|
3551
3571
|
"div",
|
|
3552
3572
|
{
|
|
3553
3573
|
...r(n),
|
|
3574
|
+
"data-anv": "combobox-list",
|
|
3554
3575
|
className: _t.listview,
|
|
3555
3576
|
style: {
|
|
3556
3577
|
display: o.length ? void 0 : "none",
|
|
@@ -3573,7 +3594,7 @@ const sn = Object.assign(Di, {
|
|
|
3573
3594
|
),
|
|
3574
3595
|
!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
3596
|
] });
|
|
3576
|
-
},
|
|
3597
|
+
}, qi = function({
|
|
3577
3598
|
children: e,
|
|
3578
3599
|
disabled: n,
|
|
3579
3600
|
item: r,
|
|
@@ -3583,16 +3604,17 @@ const sn = Object.assign(Di, {
|
|
|
3583
3604
|
const {
|
|
3584
3605
|
getItemProps: t,
|
|
3585
3606
|
multiple: s,
|
|
3586
|
-
selectedItem:
|
|
3607
|
+
selectedItem: l,
|
|
3587
3608
|
selectedItems: d,
|
|
3588
3609
|
disabledItems: u,
|
|
3589
|
-
setDisabledItems:
|
|
3610
|
+
setDisabledItems: a
|
|
3590
3611
|
} = Qe(), h = n || r && r instanceof Object && "disabled" in r && r.disabled;
|
|
3591
|
-
return de(() => (n && !u.includes(r) ?
|
|
3592
|
-
u.includes(r) &&
|
|
3593
|
-
}), [r, n,
|
|
3612
|
+
return de(() => (n && !u.includes(r) ? a([...u, r]) : u.includes(r) && a(u.filter((b) => b === r)), () => {
|
|
3613
|
+
u.includes(r) && a(u.filter((b) => b === r));
|
|
3614
|
+
}), [r, n, a]), s ? /* @__PURE__ */ v.jsx(
|
|
3594
3615
|
"div",
|
|
3595
3616
|
{
|
|
3617
|
+
"data-anv": "combobox-item",
|
|
3596
3618
|
...t({
|
|
3597
3619
|
item: r,
|
|
3598
3620
|
index: i,
|
|
@@ -3630,31 +3652,31 @@ const sn = Object.assign(Di, {
|
|
|
3630
3652
|
xt,
|
|
3631
3653
|
{
|
|
3632
3654
|
"aria-hidden": !0,
|
|
3633
|
-
svg:
|
|
3655
|
+
svg: lo,
|
|
3634
3656
|
inherit: !0,
|
|
3635
3657
|
className: te.Icon,
|
|
3636
|
-
style: { opacity:
|
|
3658
|
+
style: { opacity: l === r ? 1 : 0 }
|
|
3637
3659
|
}
|
|
3638
3660
|
)
|
|
3639
3661
|
]
|
|
3640
3662
|
}
|
|
3641
3663
|
);
|
|
3642
|
-
},
|
|
3664
|
+
}, zi = function({
|
|
3643
3665
|
children: e
|
|
3644
3666
|
}) {
|
|
3645
3667
|
const { items: n, setHasEmpty: r } = Qe();
|
|
3646
3668
|
return de(() => (r(!0), () => {
|
|
3647
3669
|
r(!1);
|
|
3648
3670
|
})), n.length ? null : e;
|
|
3649
|
-
}, $
|
|
3671
|
+
}, $a = Object.assign(Ki, {
|
|
3650
3672
|
SearchField: Li,
|
|
3651
3673
|
Content: Bi,
|
|
3652
3674
|
List: Ui,
|
|
3653
|
-
Item:
|
|
3654
|
-
Empty:
|
|
3675
|
+
Item: qi,
|
|
3676
|
+
Empty: zi
|
|
3655
3677
|
});
|
|
3656
|
-
const
|
|
3657
|
-
details:
|
|
3678
|
+
const Wi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66", Xi = "_content_1sjr5_30", Ji = "_expanded_1sjr5_111", Me = {
|
|
3679
|
+
details: Wi,
|
|
3658
3680
|
summary: Yi,
|
|
3659
3681
|
"content-wrapper": "_content-wrapper_1sjr5_30",
|
|
3660
3682
|
arrow: Gi,
|
|
@@ -3676,11 +3698,11 @@ const qi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66",
|
|
|
3676
3698
|
children: o,
|
|
3677
3699
|
id: t,
|
|
3678
3700
|
expanded: s,
|
|
3679
|
-
defaultExpanded:
|
|
3701
|
+
defaultExpanded: l = !1,
|
|
3680
3702
|
style: d,
|
|
3681
3703
|
className: u,
|
|
3682
|
-
...
|
|
3683
|
-
} = i, h = Ie(), [b, _] = J(
|
|
3704
|
+
...a
|
|
3705
|
+
} = i, h = Ie(), [b, _] = J(l);
|
|
3684
3706
|
function x() {
|
|
3685
3707
|
_(!0);
|
|
3686
3708
|
}
|
|
@@ -3706,23 +3728,23 @@ const qi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66",
|
|
|
3706
3728
|
return /* @__PURE__ */ v.jsx(pt.Provider, { value: c, children: /* @__PURE__ */ v.jsx(
|
|
3707
3729
|
"div",
|
|
3708
3730
|
{
|
|
3709
|
-
"data-anv": "
|
|
3731
|
+
"data-anv": "details",
|
|
3710
3732
|
ref: n,
|
|
3711
3733
|
className: se(Me.details, u),
|
|
3712
3734
|
style: D,
|
|
3713
|
-
...
|
|
3735
|
+
...a,
|
|
3714
3736
|
children: o
|
|
3715
3737
|
}
|
|
3716
3738
|
) });
|
|
3717
3739
|
}
|
|
3718
3740
|
), Zi = ce(function({ children: e, onClick: n, className: r, ...i }, o) {
|
|
3719
|
-
const { id: t, isExpanded: s, toggle:
|
|
3720
|
-
n == null || n(...
|
|
3741
|
+
const { id: t, isExpanded: s, toggle: l } = Ve(pt), d = (...a) => {
|
|
3742
|
+
n == null || n(...a), l();
|
|
3721
3743
|
}, u = se(Me.summary, r);
|
|
3722
3744
|
return /* @__PURE__ */ v.jsxs(
|
|
3723
3745
|
"button",
|
|
3724
3746
|
{
|
|
3725
|
-
"data-anv": "
|
|
3747
|
+
"data-anv": "details-summary",
|
|
3726
3748
|
"aria-controls": t,
|
|
3727
3749
|
"aria-expanded": s,
|
|
3728
3750
|
className: u,
|
|
@@ -3754,7 +3776,7 @@ const qi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66",
|
|
|
3754
3776
|
style: o,
|
|
3755
3777
|
...t
|
|
3756
3778
|
}, s) {
|
|
3757
|
-
const { id:
|
|
3779
|
+
const { id: l, isExpanded: d } = Ve(pt), u = {
|
|
3758
3780
|
height: r,
|
|
3759
3781
|
maxHeight: i,
|
|
3760
3782
|
...r || i ? { overflow: "auto" } : {},
|
|
@@ -3763,8 +3785,8 @@ const qi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66",
|
|
|
3763
3785
|
return /* @__PURE__ */ v.jsx(
|
|
3764
3786
|
"div",
|
|
3765
3787
|
{
|
|
3766
|
-
"data-anv": "
|
|
3767
|
-
id:
|
|
3788
|
+
"data-anv": "details-content",
|
|
3789
|
+
id: l,
|
|
3768
3790
|
className: se(Me["content-wrapper"], {
|
|
3769
3791
|
[Me.expanded]: d
|
|
3770
3792
|
}),
|
|
@@ -3773,34 +3795,35 @@ const qi = "_details_1sjr5_4", Yi = "_summary_1sjr5_17", Gi = "_arrow_1sjr5_66",
|
|
|
3773
3795
|
}
|
|
3774
3796
|
);
|
|
3775
3797
|
}
|
|
3776
|
-
),
|
|
3798
|
+
), Fa = Object.assign(Qi, {
|
|
3777
3799
|
Summary: Zi,
|
|
3778
3800
|
Content: ts
|
|
3779
3801
|
});
|
|
3780
|
-
const ns = "
|
|
3802
|
+
const ns = "_dialog_1yq7p_4", rs = "_container_1yq7p_20", os = "_content_1yq7p_30", is = "_remove_1yq7p_43", ss = "_header_1yq7p_53", as = "_footer_1yq7p_72", ls = "_large_1yq7p_82", us = "_fullscreen_1yq7p_82", ds = "_sticky_1yq7p_98", xe = {
|
|
3781
3803
|
dialog: ns,
|
|
3782
|
-
"close-dialog": "_close-
|
|
3804
|
+
"close-dialog": "_close-dialog_1yq7p_1",
|
|
3783
3805
|
container: rs,
|
|
3784
3806
|
content: os,
|
|
3785
|
-
"open-dialog": "_open-
|
|
3786
|
-
"open-backdrop": "_open-
|
|
3807
|
+
"open-dialog": "_open-dialog_1yq7p_1",
|
|
3808
|
+
"open-backdrop": "_open-backdrop_1yq7p_1",
|
|
3787
3809
|
remove: is,
|
|
3788
|
-
"close-backdrop": "_close-
|
|
3810
|
+
"close-backdrop": "_close-backdrop_1yq7p_1",
|
|
3789
3811
|
header: ss,
|
|
3790
|
-
"close-container": "_close-
|
|
3791
|
-
footer:
|
|
3792
|
-
large:
|
|
3812
|
+
"close-container": "_close-container_1yq7p_65",
|
|
3813
|
+
footer: as,
|
|
3814
|
+
large: ls,
|
|
3793
3815
|
fullscreen: us,
|
|
3794
3816
|
sticky: ds,
|
|
3795
|
-
"close-button": "_close-
|
|
3817
|
+
"close-button": "_close-button_1yq7p_104"
|
|
3796
3818
|
}, Cr = ce((e, n) => {
|
|
3797
3819
|
const { onClick: r, ...i } = e, { close: o } = cs(), t = (s) => {
|
|
3798
3820
|
o(), r == null || r(s);
|
|
3799
3821
|
};
|
|
3800
3822
|
return /* @__PURE__ */ v.jsx(
|
|
3801
|
-
|
|
3823
|
+
We,
|
|
3802
3824
|
{
|
|
3803
3825
|
"aria-label": "Close dialog",
|
|
3826
|
+
"data-anv": "dialog-cancel-button",
|
|
3804
3827
|
onClick: t,
|
|
3805
3828
|
ref: n,
|
|
3806
3829
|
...i
|
|
@@ -3811,19 +3834,28 @@ Cr.displayName = "DialogCancelButton";
|
|
|
3811
3834
|
const Sr = ce(
|
|
3812
3835
|
(e, n) => {
|
|
3813
3836
|
const { children: r, ...i } = e;
|
|
3814
|
-
return /* @__PURE__ */ v.jsxs(
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
"
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3837
|
+
return /* @__PURE__ */ v.jsxs(
|
|
3838
|
+
"header",
|
|
3839
|
+
{
|
|
3840
|
+
className: xe.header,
|
|
3841
|
+
"data-anv": "dialog-header",
|
|
3842
|
+
ref: n,
|
|
3843
|
+
...i,
|
|
3844
|
+
children: [
|
|
3845
|
+
/* @__PURE__ */ v.jsx(Tn, { variant: "headline", el: "h1", children: r }),
|
|
3846
|
+
/* @__PURE__ */ v.jsx("span", { className: xe["close-container"], children: /* @__PURE__ */ v.jsx(
|
|
3847
|
+
Cr,
|
|
3848
|
+
{
|
|
3849
|
+
className: xe["close-button"],
|
|
3850
|
+
size: "small",
|
|
3851
|
+
appearance: "ghost",
|
|
3852
|
+
"aria-label": "Close dialog",
|
|
3853
|
+
icon: Vn
|
|
3854
|
+
}
|
|
3855
|
+
) })
|
|
3856
|
+
]
|
|
3857
|
+
}
|
|
3858
|
+
);
|
|
3827
3859
|
}
|
|
3828
3860
|
);
|
|
3829
3861
|
Sr.displayName = "DialogHeader";
|
|
@@ -3832,14 +3864,32 @@ const Or = ce(
|
|
|
3832
3864
|
const { children: r, sticky: i = !1, ...o } = e, t = se(xe.footer, {
|
|
3833
3865
|
[xe.sticky]: i
|
|
3834
3866
|
});
|
|
3835
|
-
return /* @__PURE__ */ v.jsx(
|
|
3867
|
+
return /* @__PURE__ */ v.jsx(
|
|
3868
|
+
"footer",
|
|
3869
|
+
{
|
|
3870
|
+
className: t,
|
|
3871
|
+
"data-anv": "dialog-footer",
|
|
3872
|
+
ref: n,
|
|
3873
|
+
...o,
|
|
3874
|
+
children: r
|
|
3875
|
+
}
|
|
3876
|
+
);
|
|
3836
3877
|
}
|
|
3837
3878
|
);
|
|
3838
3879
|
Or.displayName = "DialogFooter";
|
|
3839
3880
|
const Dr = ce(
|
|
3840
3881
|
(e, n) => {
|
|
3841
3882
|
const { children: r, ...i } = e, o = se(xe.content, {});
|
|
3842
|
-
return /* @__PURE__ */ v.jsx(
|
|
3883
|
+
return /* @__PURE__ */ v.jsx(
|
|
3884
|
+
"div",
|
|
3885
|
+
{
|
|
3886
|
+
className: o,
|
|
3887
|
+
"data-anv": "dialog-content",
|
|
3888
|
+
ref: n,
|
|
3889
|
+
...i,
|
|
3890
|
+
children: r
|
|
3891
|
+
}
|
|
3892
|
+
);
|
|
3843
3893
|
}
|
|
3844
3894
|
);
|
|
3845
3895
|
Dr.displayName = "DialogContent";
|
|
@@ -3851,16 +3901,16 @@ const Nr = dt(null), Rr = ce(
|
|
|
3851
3901
|
children: o,
|
|
3852
3902
|
onOpen: t,
|
|
3853
3903
|
onClose: s,
|
|
3854
|
-
onCancel:
|
|
3904
|
+
onCancel: l,
|
|
3855
3905
|
onClick: d,
|
|
3856
3906
|
onKeyDown: u,
|
|
3857
|
-
fullScreen:
|
|
3907
|
+
fullScreen: a = !1,
|
|
3858
3908
|
disableCloseOnEscape: h = !1,
|
|
3859
3909
|
disableCloseOnClickOutside: b = !1,
|
|
3860
3910
|
size: _,
|
|
3861
3911
|
...x
|
|
3862
3912
|
} = e, S = Q(null), g = Q(null), D = Q(null), c = Ie(), [f, p] = J(!1), I = se([xe.dialog], r, {
|
|
3863
|
-
[xe.fullscreen]:
|
|
3913
|
+
[xe.fullscreen]: a,
|
|
3864
3914
|
[xe.remove]: f,
|
|
3865
3915
|
[xe.large]: _ === "large"
|
|
3866
3916
|
}), m = Hr(S.current), N = m[0], E = m[m.length - 1], k = ee(() => {
|
|
@@ -3874,7 +3924,7 @@ const Nr = dt(null), Rr = ce(
|
|
|
3874
3924
|
var R, F, L, K;
|
|
3875
3925
|
if (i) {
|
|
3876
3926
|
if (t == null || t(), (R = S.current) == null || R.showModal(), !D.current) {
|
|
3877
|
-
const U = (F = S.current) == null ? void 0 : F.closest("body");
|
|
3927
|
+
const U = document.body ?? ((F = S.current) == null ? void 0 : F.closest("body"));
|
|
3878
3928
|
U && (D.current = U);
|
|
3879
3929
|
}
|
|
3880
3930
|
if (!((L = S.current) != null && L.querySelector(":focus")) && (N == null || N.focus()), (K = D.current) == null || K.classList.add("dialog-open"), D.current) {
|
|
@@ -3925,7 +3975,7 @@ const Nr = dt(null), Rr = ce(
|
|
|
3925
3975
|
"dialog",
|
|
3926
3976
|
{
|
|
3927
3977
|
className: I,
|
|
3928
|
-
"data-anv": "
|
|
3978
|
+
"data-anv": "dialog",
|
|
3929
3979
|
ref: Be([n, S]),
|
|
3930
3980
|
onCancel: M,
|
|
3931
3981
|
onClick: O,
|
|
@@ -3946,7 +3996,7 @@ function cs() {
|
|
|
3946
3996
|
return e;
|
|
3947
3997
|
}
|
|
3948
3998
|
Rr.displayName = "Dialog";
|
|
3949
|
-
const
|
|
3999
|
+
const La = Object.assign(Rr, {
|
|
3950
4000
|
Header: Sr,
|
|
3951
4001
|
Footer: Or,
|
|
3952
4002
|
Content: Dr
|
|
@@ -3960,11 +4010,11 @@ const ps = "_link_1ur2o_4", fs = "_secondary_1ur2o_36", hs = "_quiet_1ur2o_45",
|
|
|
3960
4010
|
children: o,
|
|
3961
4011
|
className: t,
|
|
3962
4012
|
appearance: s = "primary",
|
|
3963
|
-
quiet:
|
|
4013
|
+
quiet: l,
|
|
3964
4014
|
style: d,
|
|
3965
4015
|
...u
|
|
3966
|
-
} = i,
|
|
3967
|
-
[$e.quiet]:
|
|
4016
|
+
} = i, a = se([$e.link], t, {
|
|
4017
|
+
[$e.quiet]: l,
|
|
3968
4018
|
[$e.secondary]: s === "secondary"
|
|
3969
4019
|
}), h = {
|
|
3970
4020
|
...d,
|
|
@@ -3973,9 +4023,9 @@ const ps = "_link_1ur2o_4", fs = "_secondary_1ur2o_36", hs = "_quiet_1ur2o_45",
|
|
|
3973
4023
|
return /* @__PURE__ */ v.jsxs(
|
|
3974
4024
|
"a",
|
|
3975
4025
|
{
|
|
3976
|
-
className:
|
|
4026
|
+
className: a,
|
|
3977
4027
|
rel: "noopener noreferrer",
|
|
3978
|
-
"data-anv": "
|
|
4028
|
+
"data-anv": "link",
|
|
3979
4029
|
ref: n,
|
|
3980
4030
|
style: h,
|
|
3981
4031
|
...u,
|
|
@@ -3987,12 +4037,12 @@ const ps = "_link_1ur2o_4", fs = "_secondary_1ur2o_36", hs = "_quiet_1ur2o_45",
|
|
|
3987
4037
|
);
|
|
3988
4038
|
});
|
|
3989
4039
|
ms.displayName = "Link";
|
|
3990
|
-
const
|
|
3991
|
-
const { layoutStyles: n, componentProps: r } = Se(e), { className: i, appearance: o = "primary", quiet: t, style: s } = r,
|
|
4040
|
+
const Ba = (e) => {
|
|
4041
|
+
const { layoutStyles: n, componentProps: r } = Se(e), { className: i, appearance: o = "primary", quiet: t, style: s } = r, l = se([$e.link], i, {
|
|
3992
4042
|
[$e.quiet]: t,
|
|
3993
4043
|
[$e.secondary]: o === "secondary"
|
|
3994
4044
|
}), d = Object.assign({}, s, n);
|
|
3995
|
-
return { linkClassNames:
|
|
4045
|
+
return { linkClassNames: l, styleCombined: d };
|
|
3996
4046
|
};
|
|
3997
4047
|
const vs = "_overflow_l5ucx_2", _s = "_expanded_l5ucx_2", Is = "_content_l5ucx_55", ys = "_horizontal_l5ucx_96", xs = "_truncate_l5ucx_99", ne = {
|
|
3998
4048
|
overflow: vs,
|
|
@@ -4008,7 +4058,7 @@ const vs = "_overflow_l5ucx_2", _s = "_expanded_l5ucx_2", Is = "_content_l5ucx_5
|
|
|
4008
4058
|
truncate: xs
|
|
4009
4059
|
}, Pr = ce(
|
|
4010
4060
|
(e, n) => {
|
|
4011
|
-
const { rows: r = 1, ...i } = e, { layoutStyles: o, componentProps: t } = Se(i), [s,
|
|
4061
|
+
const { rows: r = 1, ...i } = e, { layoutStyles: o, componentProps: t } = Se(i), [s, l] = J(!1), { className: d, style: u, children: a, ...h } = t, b = {
|
|
4012
4062
|
...u,
|
|
4013
4063
|
...o,
|
|
4014
4064
|
"--overflow-text-row": s ? "initial" : r
|
|
@@ -4022,7 +4072,7 @@ const vs = "_overflow_l5ucx_2", _s = "_expanded_l5ucx_2", Is = "_content_l5ucx_5
|
|
|
4022
4072
|
onCollapse: c,
|
|
4023
4073
|
...f
|
|
4024
4074
|
} = h, p = S ?? "Show more...", I = g ?? "Show less...", m = (E) => {
|
|
4025
|
-
if (
|
|
4075
|
+
if (l((k) => !k), s) {
|
|
4026
4076
|
c == null || c(E);
|
|
4027
4077
|
return;
|
|
4028
4078
|
}
|
|
@@ -4040,9 +4090,10 @@ const vs = "_overflow_l5ucx_2", _s = "_expanded_l5ucx_2", Is = "_content_l5ucx_5
|
|
|
4040
4090
|
ref: n,
|
|
4041
4091
|
className: N,
|
|
4042
4092
|
style: b,
|
|
4093
|
+
"data-anv": "overflow-text",
|
|
4043
4094
|
...f,
|
|
4044
4095
|
children: [
|
|
4045
|
-
/* @__PURE__ */ v.jsx("div", { className: ne.content, children:
|
|
4096
|
+
/* @__PURE__ */ v.jsx("div", { className: ne.content, children: a }),
|
|
4046
4097
|
/* @__PURE__ */ v.jsx(
|
|
4047
4098
|
"button",
|
|
4048
4099
|
{
|
|
@@ -4063,8 +4114,9 @@ const vs = "_overflow_l5ucx_2", _s = "_expanded_l5ucx_2", Is = "_content_l5ucx_5
|
|
|
4063
4114
|
ref: n,
|
|
4064
4115
|
className: _,
|
|
4065
4116
|
style: b,
|
|
4117
|
+
"data-anv": "overflow-text",
|
|
4066
4118
|
...h,
|
|
4067
|
-
children: /* @__PURE__ */ v.jsx("div", { className: ne.content, children:
|
|
4119
|
+
children: /* @__PURE__ */ v.jsx("div", { className: ne.content, children: a })
|
|
4068
4120
|
}
|
|
4069
4121
|
);
|
|
4070
4122
|
}
|
|
@@ -4076,10 +4128,10 @@ const kr = ce(
|
|
|
4076
4128
|
children: o,
|
|
4077
4129
|
className: t,
|
|
4078
4130
|
direction: s = "column",
|
|
4079
|
-
style:
|
|
4131
|
+
style: l,
|
|
4080
4132
|
height: d,
|
|
4081
4133
|
width: u,
|
|
4082
|
-
truncate:
|
|
4134
|
+
truncate: a,
|
|
4083
4135
|
gap: h,
|
|
4084
4136
|
...b
|
|
4085
4137
|
} = i, _ = Q(null), [x, S] = J(!1), [g, D] = J({
|
|
@@ -4129,25 +4181,25 @@ const kr = ce(
|
|
|
4129
4181
|
}, f = se([ne.overflow], {
|
|
4130
4182
|
[ne.vertical]: s === "column",
|
|
4131
4183
|
[ne.horizontal]: s === "row",
|
|
4132
|
-
[ne.truncate]: !!
|
|
4184
|
+
[ne.truncate]: !!a,
|
|
4133
4185
|
[ne.expanded]: x
|
|
4134
4186
|
});
|
|
4135
|
-
if (
|
|
4187
|
+
if (a) {
|
|
4136
4188
|
const m = {
|
|
4137
|
-
...
|
|
4189
|
+
...l,
|
|
4138
4190
|
...r
|
|
4139
4191
|
}, N = {
|
|
4140
4192
|
minHeight: d ?? void 0
|
|
4141
|
-
}, E = typeof
|
|
4193
|
+
}, E = typeof a == "object" ? a.expandText : "Show more...", k = typeof a == "object" ? a.collapseText : "Show less...", M = (O) => {
|
|
4142
4194
|
var P, V;
|
|
4143
4195
|
if (S((R) => !R), setTimeout(() => {
|
|
4144
4196
|
c();
|
|
4145
|
-
}, 100), typeof
|
|
4197
|
+
}, 100), typeof a == "object") {
|
|
4146
4198
|
if (x) {
|
|
4147
|
-
(P =
|
|
4199
|
+
(P = a.onCollapse) == null || P.call(a, O);
|
|
4148
4200
|
return;
|
|
4149
4201
|
}
|
|
4150
|
-
(V =
|
|
4202
|
+
(V = a.onExpand) == null || V.call(a, O);
|
|
4151
4203
|
}
|
|
4152
4204
|
};
|
|
4153
4205
|
return /* @__PURE__ */ v.jsxs(
|
|
@@ -4156,10 +4208,11 @@ const kr = ce(
|
|
|
4156
4208
|
ref: n,
|
|
4157
4209
|
style: m,
|
|
4158
4210
|
className: f,
|
|
4211
|
+
"data-anv": "overflow",
|
|
4159
4212
|
...b,
|
|
4160
4213
|
children: [
|
|
4161
|
-
g.top && !
|
|
4162
|
-
g.left && !
|
|
4214
|
+
g.top && !a ? /* @__PURE__ */ v.jsx("div", { className: ne["shadow-top"] }) : null,
|
|
4215
|
+
g.left && !a ? /* @__PURE__ */ v.jsx("div", { className: ne["shadow-left"] }) : null,
|
|
4163
4216
|
/* @__PURE__ */ v.jsx(
|
|
4164
4217
|
vt,
|
|
4165
4218
|
{
|
|
@@ -4173,8 +4226,8 @@ const kr = ce(
|
|
|
4173
4226
|
children: o
|
|
4174
4227
|
}
|
|
4175
4228
|
),
|
|
4176
|
-
g.bottom && !
|
|
4177
|
-
g.right && !
|
|
4229
|
+
g.bottom && !a ? /* @__PURE__ */ v.jsx("div", { className: ne["shadow-bottom"] }) : null,
|
|
4230
|
+
g.right && !a ? /* @__PURE__ */ v.jsx("div", { className: ne["shadow-right"] }) : null,
|
|
4178
4231
|
/* @__PURE__ */ v.jsx(
|
|
4179
4232
|
"button",
|
|
4180
4233
|
{
|
|
@@ -4188,7 +4241,7 @@ const kr = ce(
|
|
|
4188
4241
|
);
|
|
4189
4242
|
}
|
|
4190
4243
|
const p = {
|
|
4191
|
-
...
|
|
4244
|
+
...l,
|
|
4192
4245
|
...r
|
|
4193
4246
|
}, I = {
|
|
4194
4247
|
minHeight: d ?? void 0
|
|
@@ -4199,6 +4252,7 @@ const kr = ce(
|
|
|
4199
4252
|
ref: n,
|
|
4200
4253
|
style: p,
|
|
4201
4254
|
className: f,
|
|
4255
|
+
"data-anv": "overflow",
|
|
4202
4256
|
...b,
|
|
4203
4257
|
children: [
|
|
4204
4258
|
g.left ? /* @__PURE__ */ v.jsx("div", { className: ne["shadow-left"] }) : null,
|
|
@@ -4224,7 +4278,7 @@ const kr = ce(
|
|
|
4224
4278
|
}
|
|
4225
4279
|
);
|
|
4226
4280
|
kr.displayName = "Overflow";
|
|
4227
|
-
const
|
|
4281
|
+
const Ua = Object.assign(kr, {
|
|
4228
4282
|
Text: Pr
|
|
4229
4283
|
});
|
|
4230
4284
|
var bs = wt, ws = function(n) {
|
|
@@ -4263,17 +4317,17 @@ var bs = wt, ws = function(n) {
|
|
|
4263
4317
|
};
|
|
4264
4318
|
function Ss(e, n, r, i) {
|
|
4265
4319
|
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);
|
|
4266
|
-
var o = e.paddingSize, t = e.borderSize, s = e.sizingStyle,
|
|
4320
|
+
var o = e.paddingSize, t = e.borderSize, s = e.sizingStyle, l = s.boxSizing;
|
|
4267
4321
|
Object.keys(s).forEach(function(b) {
|
|
4268
4322
|
var _ = b;
|
|
4269
4323
|
pe.style[_] = s[_];
|
|
4270
4324
|
}), Nn(pe), pe.value = n;
|
|
4271
4325
|
var d = Rn(pe, e);
|
|
4272
4326
|
pe.value = n, d = Rn(pe, e), pe.value = "x";
|
|
4273
|
-
var u = pe.scrollHeight - o,
|
|
4274
|
-
|
|
4327
|
+
var u = pe.scrollHeight - o, a = u * r;
|
|
4328
|
+
l === "border-box" && (a = a + o + t), d = Math.max(a, d);
|
|
4275
4329
|
var h = u * i;
|
|
4276
|
-
return
|
|
4330
|
+
return l === "border-box" && (h = h + o + t), d = Math.min(h, d), [d, u];
|
|
4277
4331
|
}
|
|
4278
4332
|
var Pn = function() {
|
|
4279
4333
|
}, Os = function(n, r) {
|
|
@@ -4336,7 +4390,7 @@ var ks = function(n) {
|
|
|
4336
4390
|
}, Ms = function(n) {
|
|
4337
4391
|
Mr(document.fonts, "loadingdone", n);
|
|
4338
4392
|
}, Ts = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], Vs = function(n, r) {
|
|
4339
|
-
var i = n.cacheMeasurements, o = n.maxRows, t = n.minRows, s = n.onChange,
|
|
4393
|
+
var i = n.cacheMeasurements, o = n.maxRows, t = n.minRows, s = n.onChange, l = s === void 0 ? Pn : s, d = n.onHeightChange, u = d === void 0 ? Pn : d, a = ve(n, Ts), h = a.value !== void 0, b = _e.useRef(null), _ = Es(b, r), x = _e.useRef(0), S = _e.useRef(), g = function() {
|
|
4340
4394
|
var f = b.current, p = i && S.current ? S.current : Ps(f);
|
|
4341
4395
|
if (p) {
|
|
4342
4396
|
S.current = p;
|
|
@@ -4346,9 +4400,9 @@ var ks = function(n) {
|
|
|
4346
4400
|
}));
|
|
4347
4401
|
}
|
|
4348
4402
|
}, D = function(f) {
|
|
4349
|
-
h || g(),
|
|
4403
|
+
h || g(), l(f);
|
|
4350
4404
|
};
|
|
4351
|
-
return _e.useLayoutEffect(g), ks(g), Ms(g), /* @__PURE__ */ _e.createElement("textarea", $({},
|
|
4405
|
+
return _e.useLayoutEffect(g), ks(g), Ms(g), /* @__PURE__ */ _e.createElement("textarea", $({}, a, {
|
|
4352
4406
|
onChange: D,
|
|
4353
4407
|
ref: _
|
|
4354
4408
|
}));
|
|
@@ -4368,10 +4422,10 @@ const Hs = "_textarea_1bgqi_4", js = "_counter_1bgqi_50", Ks = "_error_1bgqi_62"
|
|
|
4368
4422
|
disableResize: t,
|
|
4369
4423
|
error: s,
|
|
4370
4424
|
// errorAriaLive: errorAriaLiveProp = "assertive",
|
|
4371
|
-
hint:
|
|
4425
|
+
hint: l,
|
|
4372
4426
|
description: d,
|
|
4373
4427
|
label: u,
|
|
4374
|
-
moreInfo:
|
|
4428
|
+
moreInfo: a,
|
|
4375
4429
|
onChange: h,
|
|
4376
4430
|
required: b,
|
|
4377
4431
|
showCounter: _,
|
|
@@ -4395,7 +4449,7 @@ const Hs = "_textarea_1bgqi_4", js = "_counter_1bgqi_50", Ks = "_error_1bgqi_62"
|
|
|
4395
4449
|
x == null || x(H), V(!0);
|
|
4396
4450
|
}, U = (H) => {
|
|
4397
4451
|
S == null || S(H), V(!1), F("off"), O(!1);
|
|
4398
|
-
}, Z = Ie(), j = g ?? Z,
|
|
4452
|
+
}, Z = Ie(), j = g ?? Z, z = Ie(), Y = Ie(), oe = typeof s != "boolean" ? s : void 0, T = se([He.textarea], o, {
|
|
4399
4453
|
[He.error]: s,
|
|
4400
4454
|
[He["disable-resize"]]: t,
|
|
4401
4455
|
[He.disabled]: m.disabled,
|
|
@@ -4406,14 +4460,14 @@ const Hs = "_textarea_1bgqi_4", js = "_counter_1bgqi_50", Ks = "_error_1bgqi_62"
|
|
|
4406
4460
|
"div",
|
|
4407
4461
|
{
|
|
4408
4462
|
className: T,
|
|
4409
|
-
"data-anv": "
|
|
4463
|
+
"data-anv": "textarea",
|
|
4410
4464
|
style: A,
|
|
4411
4465
|
children: [
|
|
4412
4466
|
u ? /* @__PURE__ */ v.jsx(
|
|
4413
4467
|
bt,
|
|
4414
4468
|
{
|
|
4415
4469
|
htmlFor: j,
|
|
4416
|
-
moreInfo:
|
|
4470
|
+
moreInfo: a,
|
|
4417
4471
|
openMoreInfo: P,
|
|
4418
4472
|
required: b,
|
|
4419
4473
|
...f,
|
|
@@ -4433,15 +4487,15 @@ const Hs = "_textarea_1bgqi_4", js = "_counter_1bgqi_50", Ks = "_error_1bgqi_62"
|
|
|
4433
4487
|
id: j,
|
|
4434
4488
|
placeholder: p,
|
|
4435
4489
|
...m,
|
|
4436
|
-
"aria-describedby": [Y,
|
|
4490
|
+
"aria-describedby": [Y, z].join(" "),
|
|
4437
4491
|
"aria-invalid": s ? !!s : void 0
|
|
4438
4492
|
}
|
|
4439
4493
|
),
|
|
4440
|
-
|
|
4494
|
+
l || _ || oe || d ? /* @__PURE__ */ v.jsx(
|
|
4441
4495
|
Et,
|
|
4442
4496
|
{
|
|
4443
|
-
id:
|
|
4444
|
-
hint:
|
|
4497
|
+
id: z,
|
|
4498
|
+
hint: l,
|
|
4445
4499
|
maxLength: D,
|
|
4446
4500
|
inputLength: E,
|
|
4447
4501
|
isTyping: M,
|
|
@@ -4458,14 +4512,14 @@ const Hs = "_textarea_1bgqi_4", js = "_counter_1bgqi_50", Ks = "_error_1bgqi_62"
|
|
|
4458
4512
|
}
|
|
4459
4513
|
);
|
|
4460
4514
|
Ls.displayName = "Textarea";
|
|
4461
|
-
const Bs = "_textfield_1acx5_4", Us = "_input_1acx5_17",
|
|
4515
|
+
const Bs = "_textfield_1acx5_4", Us = "_input_1acx5_17", qs = "_prefix_1acx5_43", zs = "_suffix_1acx5_44", Ws = "_small_1acx5_101", Ys = "_large_1acx5_104", Gs = "_error_1acx5_113", Ce = {
|
|
4462
4516
|
textfield: Bs,
|
|
4463
4517
|
input: Us,
|
|
4464
4518
|
"input-wrapper": "_input-wrapper_1acx5_30",
|
|
4465
|
-
prefix:
|
|
4466
|
-
suffix:
|
|
4519
|
+
prefix: qs,
|
|
4520
|
+
suffix: zs,
|
|
4467
4521
|
"loading-spinner": "_loading-spinner_1acx5_63",
|
|
4468
|
-
small:
|
|
4522
|
+
small: Ws,
|
|
4469
4523
|
large: Ys,
|
|
4470
4524
|
error: Gs
|
|
4471
4525
|
}, Xs = ce(
|
|
@@ -4474,10 +4528,10 @@ const Bs = "_textfield_1acx5_4", Us = "_input_1acx5_17", zs = "_prefix_1acx5_43"
|
|
|
4474
4528
|
className: o,
|
|
4475
4529
|
error: t,
|
|
4476
4530
|
errorAriaLive: s = "assertive",
|
|
4477
|
-
label:
|
|
4531
|
+
label: l,
|
|
4478
4532
|
moreInfo: d,
|
|
4479
4533
|
prefix: u,
|
|
4480
|
-
suffix:
|
|
4534
|
+
suffix: a,
|
|
4481
4535
|
size: h,
|
|
4482
4536
|
type: b = "text",
|
|
4483
4537
|
required: _,
|
|
@@ -4496,105 +4550,113 @@ const Bs = "_textfield_1acx5_4", Us = "_input_1acx5_17", zs = "_prefix_1acx5_43"
|
|
|
4496
4550
|
x == null || x(T), M(!0), P(s);
|
|
4497
4551
|
}, R = (T) => {
|
|
4498
4552
|
S == null || S(T), M(!1), P("off");
|
|
4499
|
-
}, F = Ie(), L = g ?? F, K = Ie(), U = Ie(), Z = Ie(), j = Ie(),
|
|
4500
|
-
return /* @__PURE__ */ v.jsxs(
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4553
|
+
}, F = Ie(), L = g ?? F, K = Ie(), U = Ie(), Z = Ie(), j = Ie(), z = Q(null), Y = typeof t != "boolean" ? t : void 0, oe = { ...m, ...r };
|
|
4554
|
+
return /* @__PURE__ */ v.jsxs(
|
|
4555
|
+
"div",
|
|
4556
|
+
{
|
|
4557
|
+
className: se(Ce.textfield, o),
|
|
4558
|
+
"data-anv": "textfield",
|
|
4559
|
+
style: oe,
|
|
4560
|
+
children: [
|
|
4561
|
+
l ? /* @__PURE__ */ v.jsx(
|
|
4562
|
+
bt,
|
|
4563
|
+
{
|
|
4564
|
+
moreInfo: d,
|
|
4565
|
+
openMoreInfo: k,
|
|
4566
|
+
required: _,
|
|
4567
|
+
htmlFor: L,
|
|
4568
|
+
...I,
|
|
4569
|
+
children: l
|
|
4570
|
+
}
|
|
4571
|
+
) : null,
|
|
4572
|
+
/* @__PURE__ */ v.jsxs(
|
|
4573
|
+
"div",
|
|
4574
|
+
{
|
|
4575
|
+
className: se(Ce["input-wrapper"], {
|
|
4576
|
+
[Ce.small]: h === "small",
|
|
4577
|
+
[Ce.large]: h === "large"
|
|
4578
|
+
}),
|
|
4579
|
+
role: "presentation",
|
|
4580
|
+
onClick: () => {
|
|
4581
|
+
var T;
|
|
4582
|
+
return (T = z.current) == null ? void 0 : T.focus();
|
|
4583
|
+
},
|
|
4584
|
+
children: [
|
|
4585
|
+
u ? /* @__PURE__ */ v.jsx(
|
|
4586
|
+
"div",
|
|
4587
|
+
{
|
|
4588
|
+
"aria-hidden": !0,
|
|
4589
|
+
className: Ce.prefix,
|
|
4590
|
+
id: `prefix${K}`,
|
|
4591
|
+
children: u
|
|
4592
|
+
}
|
|
4593
|
+
) : null,
|
|
4594
|
+
/* @__PURE__ */ v.jsx(
|
|
4595
|
+
"input",
|
|
4596
|
+
{
|
|
4597
|
+
id: L,
|
|
4598
|
+
className: se(Ce.input, {
|
|
4599
|
+
[Ce.error]: t
|
|
4600
|
+
}),
|
|
4601
|
+
onFocus: V,
|
|
4602
|
+
onBlur: R,
|
|
4603
|
+
ref: Be([n, z]),
|
|
4604
|
+
required: _,
|
|
4605
|
+
placeholder: N,
|
|
4606
|
+
type: b,
|
|
4607
|
+
disabled: p,
|
|
4608
|
+
...E,
|
|
4609
|
+
"aria-describedby": [j, Z].join(" "),
|
|
4610
|
+
"aria-invalid": t ? !!t : void 0
|
|
4611
|
+
}
|
|
4612
|
+
),
|
|
4613
|
+
f ? /* @__PURE__ */ v.jsx(Vr, { className: Ce["loading-spinner"] }) : null,
|
|
4614
|
+
a ? /* @__PURE__ */ v.jsx(
|
|
4615
|
+
"div",
|
|
4616
|
+
{
|
|
4617
|
+
className: Ce.suffix,
|
|
4618
|
+
"aria-hidden": !0,
|
|
4619
|
+
id: `suffix${U}`,
|
|
4620
|
+
children: a
|
|
4621
|
+
}
|
|
4622
|
+
) : null
|
|
4623
|
+
]
|
|
4624
|
+
}
|
|
4625
|
+
),
|
|
4626
|
+
c || Y || D ? /* @__PURE__ */ v.jsx(
|
|
4627
|
+
Et,
|
|
4628
|
+
{
|
|
4629
|
+
id: Z,
|
|
4630
|
+
hint: c,
|
|
4631
|
+
errorMessage: Y,
|
|
4632
|
+
errorAriaLive: O,
|
|
4633
|
+
description: D
|
|
4634
|
+
}
|
|
4635
|
+
) : null,
|
|
4636
|
+
/* @__PURE__ */ v.jsx(Mn, { "aria-hidden": !0, id: j, children: N })
|
|
4637
|
+
]
|
|
4638
|
+
}
|
|
4639
|
+
);
|
|
4578
4640
|
}
|
|
4579
|
-
),
|
|
4641
|
+
), qa = Object.assign(Xs, {});
|
|
4580
4642
|
export {
|
|
4581
|
-
|
|
4582
|
-
|
|
4643
|
+
$a as C,
|
|
4644
|
+
Dr as E,
|
|
4645
|
+
Fa as H,
|
|
4583
4646
|
Pr as I,
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
Bl as V,
|
|
4588
|
-
Sr as a,
|
|
4647
|
+
Cr as R,
|
|
4648
|
+
Ba as V,
|
|
4649
|
+
Or as a,
|
|
4589
4650
|
sn as b,
|
|
4590
|
-
|
|
4651
|
+
qa as c,
|
|
4591
4652
|
Ls as d,
|
|
4592
4653
|
Ci as h,
|
|
4593
4654
|
Oi as j,
|
|
4594
|
-
|
|
4655
|
+
La as k,
|
|
4656
|
+
Ua as o,
|
|
4595
4657
|
ms as q,
|
|
4596
|
-
|
|
4597
|
-
|
|
4658
|
+
bi as v,
|
|
4659
|
+
Sr as w,
|
|
4598
4660
|
Si as y
|
|
4599
4661
|
};
|
|
4600
|
-
//# sourceMappingURL=index-
|
|
4662
|
+
//# sourceMappingURL=index-1dc4c6d3.js.map
|