@rpcbase/ui 0.193.0 → 0.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/index100.js +4 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +4 -5
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +8 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +5 -8
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +3 -3
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +6 -4
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +145 -6
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +38 -144
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +4 -39
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +7 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +12 -6
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +13 -13
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +30 -6
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +10 -31
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +10 -10
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +8 -10
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +13 -8
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +101 -13
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +421 -510
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +20 -102
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +54 -20
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +70 -51
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +9 -72
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +20 -9
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +16 -20
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +23 -16
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -23
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +5 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +23 -5
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +35 -24
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +16 -35
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +7 -16
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +4 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +4 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +3 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -3
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +24 -7
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +8 -24
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +6 -7
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +5 -6
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -5
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +3 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +4 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -4
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +3 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +3 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +46 -3
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +599 -40
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +41 -200
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +204 -20
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +22 -25
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +23 -398
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +383 -589
- package/dist/index157.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index19.js +505 -557
- package/dist/index19.js.map +1 -1
- package/dist/index230.js +1 -1
- package/dist/index233.js +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index237.js +3 -3
- package/dist/index238.js +2 -2
- package/dist/index239.js +65 -22
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +179 -27
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +47 -5
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +22 -65
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +27 -179
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -47
- package/dist/index244.js.map +1 -1
- package/dist/index276.js +1 -1
- package/dist/index277.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index31.js +5 -5
- package/dist/index32.js +24 -24
- package/dist/index33.js +3 -3
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +205 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +2 -2
- package/dist/index53.js +2 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +6 -33
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +33 -26
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +26 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +7 -11
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +12 -2
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +4 -2
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +44 -201
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +50 -3
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +7 -47
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +12 -48
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +133 -7
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +10 -14
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +210 -127
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +12 -10
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -214
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +49 -12
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +4 -47
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -49
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -4
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +50 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -28
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -50
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -9
- package/dist/index76.js.map +1 -1
- package/dist/index80.js +52 -47
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +5 -52
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +4 -4
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +15 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +5 -15
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +7 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +15 -6
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +4 -16
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +5 -4
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +4 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +4 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +2 -2
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +5 -3
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +24 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +6 -24
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +4 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -6
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index157.js
CHANGED
|
@@ -1,609 +1,403 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
}
|
|
59
|
-
) });
|
|
60
|
-
};
|
|
61
|
-
ve.displayName = N;
|
|
62
|
-
var vt = "MenuAnchor", q = o.forwardRef(
|
|
63
|
-
(e, n) => {
|
|
64
|
-
const { __scopeMenu: t, ...r } = e, u = Y(t);
|
|
65
|
-
return /* @__PURE__ */ a.jsx($e, { ...u, ...r, ref: n });
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
q.displayName = vt;
|
|
69
|
-
var J = "MenuPortal", [Mt, Me] = R(J, {
|
|
70
|
-
forceMount: void 0
|
|
71
|
-
}), he = (e) => {
|
|
72
|
-
const { __scopeMenu: n, forceMount: t, children: r, container: u } = e, c = P(J, n);
|
|
73
|
-
return /* @__PURE__ */ a.jsx(Mt, { scope: n, forceMount: t, children: /* @__PURE__ */ a.jsx(V, { present: t || c.open, children: /* @__PURE__ */ a.jsx(et, { asChild: !0, container: u, children: r }) }) });
|
|
74
|
-
};
|
|
75
|
-
he.displayName = J;
|
|
76
|
-
var g = "MenuContent", [ht, Q] = R(g), Ce = o.forwardRef(
|
|
77
|
-
(e, n) => {
|
|
78
|
-
const t = Me(g, e.__scopeMenu), { forceMount: r = t.forceMount, ...u } = e, c = P(g, e.__scopeMenu), d = F(g, e.__scopeMenu);
|
|
79
|
-
return /* @__PURE__ */ a.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(V, { present: r || c.open, children: /* @__PURE__ */ a.jsx(j.Slot, { scope: e.__scopeMenu, children: d.modal ? /* @__PURE__ */ a.jsx(Ct, { ...u, ref: n }) : /* @__PURE__ */ a.jsx(xt, { ...u, ref: n }) }) }) });
|
|
80
|
-
}
|
|
81
|
-
), Ct = o.forwardRef(
|
|
82
|
-
(e, n) => {
|
|
83
|
-
const t = P(g, e.__scopeMenu), r = o.useRef(null), u = k(n, r);
|
|
84
|
-
return o.useEffect(() => {
|
|
85
|
-
const c = r.current;
|
|
86
|
-
if (c) return ct(c);
|
|
87
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
88
|
-
ee,
|
|
89
|
-
{
|
|
90
|
-
...e,
|
|
91
|
-
ref: u,
|
|
92
|
-
trapFocus: t.open,
|
|
93
|
-
disableOutsidePointerEvents: t.open,
|
|
94
|
-
disableOutsideScroll: !0,
|
|
95
|
-
onFocusOutside: M(
|
|
96
|
-
e.onFocusOutside,
|
|
97
|
-
(c) => c.preventDefault(),
|
|
98
|
-
{ checkForDefaultPrevented: !1 }
|
|
99
|
-
),
|
|
100
|
-
onDismiss: () => t.onOpenChange(!1)
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
), xt = o.forwardRef((e, n) => {
|
|
105
|
-
const t = P(g, e.__scopeMenu);
|
|
106
|
-
return /* @__PURE__ */ a.jsx(
|
|
107
|
-
ee,
|
|
108
|
-
{
|
|
109
|
-
...e,
|
|
110
|
-
ref: n,
|
|
111
|
-
trapFocus: !1,
|
|
112
|
-
disableOutsidePointerEvents: !1,
|
|
113
|
-
disableOutsideScroll: !1,
|
|
114
|
-
onDismiss: () => t.onOpenChange(!1)
|
|
1
|
+
import { offset as st, shift as rt, flip as ct, size as lt, hide as ft, limitShift as ut, computePosition as ht, arrow as at } from "./index278.js";
|
|
2
|
+
import { createCoords as y, round as D, max as E, min as N, rectToClientRect as J, floor as A } from "./index279.js";
|
|
3
|
+
import { isElement as v, getDocumentElement as R, getOverflowAncestors as $, getComputedStyle as b, isHTMLElement as C, getWindow as L, isTopLayer as V, getParentNode as S, isLastTraversableNode as z, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "./index280.js";
|
|
4
|
+
function Z(t) {
|
|
5
|
+
const e = b(t);
|
|
6
|
+
let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
7
|
+
const n = C(t), r = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, c = D(o) !== r || D(i) !== s;
|
|
8
|
+
return c && (o = r, i = s), {
|
|
9
|
+
width: o,
|
|
10
|
+
height: i,
|
|
11
|
+
$: c
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function X(t) {
|
|
15
|
+
return v(t) ? t : t.contextElement;
|
|
16
|
+
}
|
|
17
|
+
function F(t) {
|
|
18
|
+
const e = X(t);
|
|
19
|
+
if (!C(e))
|
|
20
|
+
return y(1);
|
|
21
|
+
const o = e.getBoundingClientRect(), {
|
|
22
|
+
width: i,
|
|
23
|
+
height: n,
|
|
24
|
+
$: r
|
|
25
|
+
} = Z(e);
|
|
26
|
+
let s = (r ? D(o.width) : o.width) / i, c = (r ? D(o.height) : o.height) / n;
|
|
27
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
+
x: s,
|
|
29
|
+
y: c
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const pt = /* @__PURE__ */ y(0);
|
|
33
|
+
function tt(t) {
|
|
34
|
+
const e = L(t);
|
|
35
|
+
return !Y() || !e.visualViewport ? pt : {
|
|
36
|
+
x: e.visualViewport.offsetLeft,
|
|
37
|
+
y: e.visualViewport.offsetTop
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function mt(t, e, o) {
|
|
41
|
+
return e === void 0 && (e = !1), !o || e && o !== L(t) ? !1 : e;
|
|
42
|
+
}
|
|
43
|
+
function T(t, e, o, i) {
|
|
44
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
45
|
+
const n = t.getBoundingClientRect(), r = X(t);
|
|
46
|
+
let s = y(1);
|
|
47
|
+
e && (i ? v(i) && (s = F(i)) : s = F(t));
|
|
48
|
+
const c = mt(r, o, i) ? tt(r) : y(0);
|
|
49
|
+
let f = (n.left + c.x) / s.x, l = (n.top + c.y) / s.y, u = n.width / s.x, h = n.height / s.y;
|
|
50
|
+
if (r) {
|
|
51
|
+
const d = L(r), a = i && v(i) ? L(i) : i;
|
|
52
|
+
let m = d, p = U(m);
|
|
53
|
+
for (; p && i && a !== m; ) {
|
|
54
|
+
const w = F(p), g = p.getBoundingClientRect(), x = b(p), O = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, W = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
55
|
+
f *= w.x, l *= w.y, u *= w.x, h *= w.y, f += O, l += W, m = L(p), p = U(m);
|
|
115
56
|
}
|
|
116
|
-
);
|
|
117
|
-
}), gt = rt("MenuContent.ScrollLock"), ee = o.forwardRef(
|
|
118
|
-
(e, n) => {
|
|
119
|
-
const {
|
|
120
|
-
__scopeMenu: t,
|
|
121
|
-
loop: r = !1,
|
|
122
|
-
trapFocus: u,
|
|
123
|
-
onOpenAutoFocus: c,
|
|
124
|
-
onCloseAutoFocus: d,
|
|
125
|
-
disableOutsidePointerEvents: p,
|
|
126
|
-
onEntryFocus: h,
|
|
127
|
-
onEscapeKeyDown: m,
|
|
128
|
-
onPointerDownOutside: l,
|
|
129
|
-
onFocusOutside: s,
|
|
130
|
-
onInteractOutside: f,
|
|
131
|
-
onDismiss: x,
|
|
132
|
-
disableOutsideScroll: v,
|
|
133
|
-
...E
|
|
134
|
-
} = e, y = P(g, t), S = F(g, t), De = Y(t), Ne = pe(t), re = dt(t), [Fe, ce] = o.useState(null), L = o.useRef(null), Le = k(n, L, y.onContentChange), K = o.useRef(0), G = o.useRef(""), Ke = o.useRef(0), H = o.useRef(null), se = o.useRef("right"), W = o.useRef(0), Ge = v ? st : o.Fragment, Ue = v ? { as: gt, allowPinchZoom: !0 } : void 0, Be = (i) => {
|
|
135
|
-
const I = G.current + i, _ = re().filter((C) => !C.disabled), b = document.activeElement, z = _.find((C) => C.ref.current === b)?.textValue, Z = _.map((C) => C.textValue), ae = jt(Z, I, z), T = _.find((C) => C.textValue === ae)?.ref.current;
|
|
136
|
-
(function C(ue) {
|
|
137
|
-
G.current = ue, window.clearTimeout(K.current), ue !== "" && (K.current = window.setTimeout(() => C(""), 1e3));
|
|
138
|
-
})(I), T && setTimeout(() => T.focus());
|
|
139
|
-
};
|
|
140
|
-
o.useEffect(() => () => window.clearTimeout(K.current), []), ze();
|
|
141
|
-
const w = o.useCallback((i) => se.current === H.current?.side && kt(i, H.current?.area), []);
|
|
142
|
-
return /* @__PURE__ */ a.jsx(
|
|
143
|
-
ht,
|
|
144
|
-
{
|
|
145
|
-
scope: t,
|
|
146
|
-
searchRef: G,
|
|
147
|
-
onItemEnter: o.useCallback(
|
|
148
|
-
(i) => {
|
|
149
|
-
w(i) && i.preventDefault();
|
|
150
|
-
},
|
|
151
|
-
[w]
|
|
152
|
-
),
|
|
153
|
-
onItemLeave: o.useCallback(
|
|
154
|
-
(i) => {
|
|
155
|
-
w(i) || (L.current?.focus(), ce(null));
|
|
156
|
-
},
|
|
157
|
-
[w]
|
|
158
|
-
),
|
|
159
|
-
onTriggerLeave: o.useCallback(
|
|
160
|
-
(i) => {
|
|
161
|
-
w(i) && i.preventDefault();
|
|
162
|
-
},
|
|
163
|
-
[w]
|
|
164
|
-
),
|
|
165
|
-
pointerGraceTimerRef: Ke,
|
|
166
|
-
onPointerGraceIntentChange: o.useCallback((i) => {
|
|
167
|
-
H.current = i;
|
|
168
|
-
}, []),
|
|
169
|
-
children: /* @__PURE__ */ a.jsx(Ge, { ...Ue, children: /* @__PURE__ */ a.jsx(
|
|
170
|
-
Ze,
|
|
171
|
-
{
|
|
172
|
-
asChild: !0,
|
|
173
|
-
trapped: u,
|
|
174
|
-
onMountAutoFocus: M(c, (i) => {
|
|
175
|
-
i.preventDefault(), L.current?.focus({ preventScroll: !0 });
|
|
176
|
-
}),
|
|
177
|
-
onUnmountAutoFocus: d,
|
|
178
|
-
children: /* @__PURE__ */ a.jsx(
|
|
179
|
-
We,
|
|
180
|
-
{
|
|
181
|
-
asChild: !0,
|
|
182
|
-
disableOutsidePointerEvents: p,
|
|
183
|
-
onEscapeKeyDown: m,
|
|
184
|
-
onPointerDownOutside: l,
|
|
185
|
-
onFocusOutside: s,
|
|
186
|
-
onInteractOutside: f,
|
|
187
|
-
onDismiss: x,
|
|
188
|
-
children: /* @__PURE__ */ a.jsx(
|
|
189
|
-
ot,
|
|
190
|
-
{
|
|
191
|
-
asChild: !0,
|
|
192
|
-
...Ne,
|
|
193
|
-
dir: S.dir,
|
|
194
|
-
orientation: "vertical",
|
|
195
|
-
loop: r,
|
|
196
|
-
currentTabStopId: Fe,
|
|
197
|
-
onCurrentTabStopIdChange: ce,
|
|
198
|
-
onEntryFocus: M(h, (i) => {
|
|
199
|
-
S.isUsingKeyboardRef.current || i.preventDefault();
|
|
200
|
-
}),
|
|
201
|
-
preventScrollOnEntryFocus: !0,
|
|
202
|
-
children: /* @__PURE__ */ a.jsx(
|
|
203
|
-
Je,
|
|
204
|
-
{
|
|
205
|
-
role: "menu",
|
|
206
|
-
"aria-orientation": "vertical",
|
|
207
|
-
"data-state": ke(y.open),
|
|
208
|
-
"data-radix-menu-content": "",
|
|
209
|
-
dir: S.dir,
|
|
210
|
-
...De,
|
|
211
|
-
...E,
|
|
212
|
-
ref: Le,
|
|
213
|
-
style: { outline: "none", ...E.style },
|
|
214
|
-
onKeyDown: M(E.onKeyDown, (i) => {
|
|
215
|
-
const _ = i.target.closest("[data-radix-menu-content]") === i.currentTarget, b = i.ctrlKey || i.altKey || i.metaKey, z = i.key.length === 1;
|
|
216
|
-
_ && (i.key === "Tab" && i.preventDefault(), !b && z && Be(i.key));
|
|
217
|
-
const Z = L.current;
|
|
218
|
-
if (i.target !== Z || !ut.includes(i.key)) return;
|
|
219
|
-
i.preventDefault();
|
|
220
|
-
const T = re().filter((C) => !C.disabled).map((C) => C.ref.current);
|
|
221
|
-
me.includes(i.key) && T.reverse(), Tt(T);
|
|
222
|
-
}),
|
|
223
|
-
onBlur: M(e.onBlur, (i) => {
|
|
224
|
-
i.currentTarget.contains(i.target) || (window.clearTimeout(K.current), G.current = "");
|
|
225
|
-
}),
|
|
226
|
-
onPointerMove: M(
|
|
227
|
-
e.onPointerMove,
|
|
228
|
-
O((i) => {
|
|
229
|
-
const I = i.target, _ = W.current !== i.clientX;
|
|
230
|
-
if (i.currentTarget.contains(I) && _) {
|
|
231
|
-
const b = i.clientX > W.current ? "right" : "left";
|
|
232
|
-
se.current = b, W.current = i.clientX;
|
|
233
|
-
}
|
|
234
|
-
})
|
|
235
|
-
)
|
|
236
|
-
}
|
|
237
|
-
)
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
}
|
|
241
|
-
)
|
|
242
|
-
}
|
|
243
|
-
) })
|
|
244
|
-
}
|
|
245
|
-
);
|
|
246
57
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
58
|
+
return J({
|
|
59
|
+
width: u,
|
|
60
|
+
height: h,
|
|
61
|
+
x: f,
|
|
62
|
+
y: l
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function I(t, e) {
|
|
66
|
+
const o = H(t).scrollLeft;
|
|
67
|
+
return e ? e.left + o : T(R(t)).left + o;
|
|
68
|
+
}
|
|
69
|
+
function et(t, e) {
|
|
70
|
+
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - I(t, o), n = o.top + e.scrollTop;
|
|
71
|
+
return {
|
|
72
|
+
x: i,
|
|
73
|
+
y: n
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function wt(t) {
|
|
77
|
+
let {
|
|
78
|
+
elements: e,
|
|
79
|
+
rect: o,
|
|
80
|
+
offsetParent: i,
|
|
81
|
+
strategy: n
|
|
82
|
+
} = t;
|
|
83
|
+
const r = n === "fixed", s = R(i), c = e ? V(e.floating) : !1;
|
|
84
|
+
if (i === s || c && r)
|
|
85
|
+
return o;
|
|
86
|
+
let f = {
|
|
87
|
+
scrollLeft: 0,
|
|
88
|
+
scrollTop: 0
|
|
89
|
+
}, l = y(1);
|
|
90
|
+
const u = y(0), h = C(i);
|
|
91
|
+
if ((h || !h && !r) && ((_(i) !== "body" || q(s)) && (f = H(i)), C(i))) {
|
|
92
|
+
const a = T(i);
|
|
93
|
+
l = F(i), u.x = a.x + i.clientLeft, u.y = a.y + i.clientTop;
|
|
253
94
|
}
|
|
254
|
-
);
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
95
|
+
const d = s && !h && !r ? et(s, f) : y(0);
|
|
96
|
+
return {
|
|
97
|
+
width: o.width * l.x,
|
|
98
|
+
height: o.height * l.y,
|
|
99
|
+
x: o.x * l.x - f.scrollLeft * l.x + u.x + d.x,
|
|
100
|
+
y: o.y * l.y - f.scrollTop * l.y + u.y + d.y
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function yt(t) {
|
|
104
|
+
return Array.from(t.getClientRects());
|
|
105
|
+
}
|
|
106
|
+
function xt(t) {
|
|
107
|
+
const e = R(t), o = H(t), i = t.ownerDocument.body, n = E(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = E(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
108
|
+
let s = -o.scrollLeft + I(t);
|
|
109
|
+
const c = -o.scrollTop;
|
|
110
|
+
return b(i).direction === "rtl" && (s += E(e.clientWidth, i.clientWidth) - n), {
|
|
111
|
+
width: n,
|
|
112
|
+
height: r,
|
|
113
|
+
x: s,
|
|
114
|
+
y: c
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const K = 25;
|
|
118
|
+
function vt(t, e) {
|
|
119
|
+
const o = L(t), i = R(t), n = o.visualViewport;
|
|
120
|
+
let r = i.clientWidth, s = i.clientHeight, c = 0, f = 0;
|
|
121
|
+
if (n) {
|
|
122
|
+
r = n.width, s = n.height;
|
|
123
|
+
const u = Y();
|
|
124
|
+
(!u || u && e === "fixed") && (c = n.offsetLeft, f = n.offsetTop);
|
|
260
125
|
}
|
|
261
|
-
);
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
126
|
+
const l = I(i);
|
|
127
|
+
if (l <= 0) {
|
|
128
|
+
const u = i.ownerDocument, h = u.body, d = getComputedStyle(h), a = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(i.clientWidth - h.clientWidth - a);
|
|
129
|
+
m <= K && (r -= m);
|
|
130
|
+
} else l <= K && (r += l);
|
|
131
|
+
return {
|
|
132
|
+
width: r,
|
|
133
|
+
height: s,
|
|
134
|
+
x: c,
|
|
135
|
+
y: f
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const bt = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
139
|
+
function Rt(t, e) {
|
|
140
|
+
const o = T(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, r = C(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, f = n * r.x, l = i * r.y;
|
|
141
|
+
return {
|
|
142
|
+
width: s,
|
|
143
|
+
height: c,
|
|
144
|
+
x: f,
|
|
145
|
+
y: l
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function j(t, e, o) {
|
|
149
|
+
let i;
|
|
150
|
+
if (e === "viewport")
|
|
151
|
+
i = vt(t, o);
|
|
152
|
+
else if (e === "document")
|
|
153
|
+
i = xt(R(t));
|
|
154
|
+
else if (v(e))
|
|
155
|
+
i = Rt(e, o);
|
|
156
|
+
else {
|
|
157
|
+
const n = tt(t);
|
|
158
|
+
i = {
|
|
159
|
+
x: e.x - n.x,
|
|
160
|
+
y: e.y - n.y,
|
|
161
|
+
width: e.width,
|
|
162
|
+
height: e.height
|
|
271
163
|
};
|
|
272
|
-
return /* @__PURE__ */ a.jsx(
|
|
273
|
-
ge,
|
|
274
|
-
{
|
|
275
|
-
...u,
|
|
276
|
-
ref: h,
|
|
277
|
-
disabled: t,
|
|
278
|
-
onClick: M(e.onClick, l),
|
|
279
|
-
onPointerDown: (s) => {
|
|
280
|
-
e.onPointerDown?.(s), m.current = !0;
|
|
281
|
-
},
|
|
282
|
-
onPointerUp: M(e.onPointerUp, (s) => {
|
|
283
|
-
m.current || s.currentTarget?.click();
|
|
284
|
-
}),
|
|
285
|
-
onKeyDown: M(e.onKeyDown, (s) => {
|
|
286
|
-
const f = p.searchRef.current !== "";
|
|
287
|
-
t || f && s.key === " " || $.includes(s.key) && (s.currentTarget.click(), s.preventDefault());
|
|
288
|
-
})
|
|
289
|
-
}
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
X.displayName = U;
|
|
294
|
-
var ge = o.forwardRef(
|
|
295
|
-
(e, n) => {
|
|
296
|
-
const { __scopeMenu: t, disabled: r = !1, textValue: u, ...c } = e, d = Q(U, t), p = pe(t), h = o.useRef(null), m = k(n, h), [l, s] = o.useState(!1), [f, x] = o.useState("");
|
|
297
|
-
return o.useEffect(() => {
|
|
298
|
-
const v = h.current;
|
|
299
|
-
v && x((v.textContent ?? "").trim());
|
|
300
|
-
}, [c.children]), /* @__PURE__ */ a.jsx(
|
|
301
|
-
j.ItemSlot,
|
|
302
|
-
{
|
|
303
|
-
scope: t,
|
|
304
|
-
disabled: r,
|
|
305
|
-
textValue: u ?? f,
|
|
306
|
-
children: /* @__PURE__ */ a.jsx(nt, { asChild: !0, ...p, focusable: !r, children: /* @__PURE__ */ a.jsx(
|
|
307
|
-
D.div,
|
|
308
|
-
{
|
|
309
|
-
role: "menuitem",
|
|
310
|
-
"data-highlighted": l ? "" : void 0,
|
|
311
|
-
"aria-disabled": r || void 0,
|
|
312
|
-
"data-disabled": r ? "" : void 0,
|
|
313
|
-
...c,
|
|
314
|
-
ref: m,
|
|
315
|
-
onPointerMove: M(
|
|
316
|
-
e.onPointerMove,
|
|
317
|
-
O((v) => {
|
|
318
|
-
r ? d.onItemLeave(v) : (d.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
|
|
319
|
-
})
|
|
320
|
-
),
|
|
321
|
-
onPointerLeave: M(
|
|
322
|
-
e.onPointerLeave,
|
|
323
|
-
O((v) => d.onItemLeave(v))
|
|
324
|
-
),
|
|
325
|
-
onFocus: M(e.onFocus, () => s(!0)),
|
|
326
|
-
onBlur: M(e.onBlur, () => s(!1))
|
|
327
|
-
}
|
|
328
|
-
) })
|
|
329
|
-
}
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
), Pt = "MenuCheckboxItem", _e = o.forwardRef(
|
|
333
|
-
(e, n) => {
|
|
334
|
-
const { checked: t = !1, onCheckedChange: r, ...u } = e;
|
|
335
|
-
return /* @__PURE__ */ a.jsx(we, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ a.jsx(
|
|
336
|
-
X,
|
|
337
|
-
{
|
|
338
|
-
role: "menuitemcheckbox",
|
|
339
|
-
"aria-checked": B(t) ? "mixed" : t,
|
|
340
|
-
...u,
|
|
341
|
-
ref: n,
|
|
342
|
-
"data-state": oe(t),
|
|
343
|
-
onSelect: M(
|
|
344
|
-
u.onSelect,
|
|
345
|
-
() => r?.(B(t) ? !0 : !t),
|
|
346
|
-
{ checkForDefaultPrevented: !1 }
|
|
347
|
-
)
|
|
348
|
-
}
|
|
349
|
-
) });
|
|
350
164
|
}
|
|
351
|
-
);
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return
|
|
361
|
-
|
|
362
|
-
);
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
return /* @__PURE__ */ a.jsx(we, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ a.jsx(
|
|
368
|
-
X,
|
|
369
|
-
{
|
|
370
|
-
role: "menuitemradio",
|
|
371
|
-
"aria-checked": c,
|
|
372
|
-
...r,
|
|
373
|
-
ref: n,
|
|
374
|
-
"data-state": oe(c),
|
|
375
|
-
onSelect: M(
|
|
376
|
-
r.onSelect,
|
|
377
|
-
() => u.onValueChange?.(t),
|
|
378
|
-
{ checkForDefaultPrevented: !1 }
|
|
379
|
-
)
|
|
380
|
-
}
|
|
381
|
-
) });
|
|
382
|
-
}
|
|
383
|
-
);
|
|
384
|
-
Se.displayName = Ee;
|
|
385
|
-
var ne = "MenuItemIndicator", [we, wt] = R(
|
|
386
|
-
ne,
|
|
387
|
-
{ checked: !1 }
|
|
388
|
-
), Ie = o.forwardRef(
|
|
389
|
-
(e, n) => {
|
|
390
|
-
const { __scopeMenu: t, forceMount: r, ...u } = e, c = wt(ne, t);
|
|
391
|
-
return /* @__PURE__ */ a.jsx(
|
|
392
|
-
V,
|
|
393
|
-
{
|
|
394
|
-
present: r || B(c.checked) || c.checked === !0,
|
|
395
|
-
children: /* @__PURE__ */ a.jsx(
|
|
396
|
-
D.span,
|
|
397
|
-
{
|
|
398
|
-
...u,
|
|
399
|
-
ref: n,
|
|
400
|
-
"data-state": oe(c.checked)
|
|
401
|
-
}
|
|
402
|
-
)
|
|
403
|
-
}
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
);
|
|
407
|
-
Ie.displayName = ne;
|
|
408
|
-
var It = "MenuSeparator", ye = o.forwardRef(
|
|
409
|
-
(e, n) => {
|
|
410
|
-
const { __scopeMenu: t, ...r } = e;
|
|
411
|
-
return /* @__PURE__ */ a.jsx(
|
|
412
|
-
D.div,
|
|
413
|
-
{
|
|
414
|
-
role: "separator",
|
|
415
|
-
"aria-orientation": "horizontal",
|
|
416
|
-
...r,
|
|
417
|
-
ref: n
|
|
418
|
-
}
|
|
419
|
-
);
|
|
420
|
-
}
|
|
421
|
-
);
|
|
422
|
-
ye.displayName = It;
|
|
423
|
-
var yt = "MenuArrow", be = o.forwardRef(
|
|
424
|
-
(e, n) => {
|
|
425
|
-
const { __scopeMenu: t, ...r } = e, u = Y(t);
|
|
426
|
-
return /* @__PURE__ */ a.jsx(Qe, { ...u, ...r, ref: n });
|
|
427
|
-
}
|
|
428
|
-
);
|
|
429
|
-
be.displayName = yt;
|
|
430
|
-
var bt = "MenuSub", [en, Te] = R(bt), A = "MenuSubTrigger", Ae = o.forwardRef(
|
|
431
|
-
(e, n) => {
|
|
432
|
-
const t = P(A, e.__scopeMenu), r = F(A, e.__scopeMenu), u = Te(A, e.__scopeMenu), c = Q(A, e.__scopeMenu), d = o.useRef(null), { pointerGraceTimerRef: p, onPointerGraceIntentChange: h } = c, m = { __scopeMenu: e.__scopeMenu }, l = o.useCallback(() => {
|
|
433
|
-
d.current && window.clearTimeout(d.current), d.current = null;
|
|
434
|
-
}, []);
|
|
435
|
-
return o.useEffect(() => l, [l]), o.useEffect(() => {
|
|
436
|
-
const s = p.current;
|
|
437
|
-
return () => {
|
|
438
|
-
window.clearTimeout(s), h(null);
|
|
439
|
-
};
|
|
440
|
-
}, [p, h]), /* @__PURE__ */ a.jsx(q, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
|
|
441
|
-
ge,
|
|
442
|
-
{
|
|
443
|
-
id: u.triggerId,
|
|
444
|
-
"aria-haspopup": "menu",
|
|
445
|
-
"aria-expanded": t.open,
|
|
446
|
-
"aria-controls": u.contentId,
|
|
447
|
-
"data-state": ke(t.open),
|
|
448
|
-
...e,
|
|
449
|
-
ref: Ye(n, u.onTriggerChange),
|
|
450
|
-
onClick: (s) => {
|
|
451
|
-
e.onClick?.(s), !(e.disabled || s.defaultPrevented) && (s.currentTarget.focus(), t.open || t.onOpenChange(!0));
|
|
452
|
-
},
|
|
453
|
-
onPointerMove: M(
|
|
454
|
-
e.onPointerMove,
|
|
455
|
-
O((s) => {
|
|
456
|
-
c.onItemEnter(s), !s.defaultPrevented && !e.disabled && !t.open && !d.current && (c.onPointerGraceIntentChange(null), d.current = window.setTimeout(() => {
|
|
457
|
-
t.onOpenChange(!0), l();
|
|
458
|
-
}, 100));
|
|
459
|
-
})
|
|
460
|
-
),
|
|
461
|
-
onPointerLeave: M(
|
|
462
|
-
e.onPointerLeave,
|
|
463
|
-
O((s) => {
|
|
464
|
-
l();
|
|
465
|
-
const f = t.content?.getBoundingClientRect();
|
|
466
|
-
if (f) {
|
|
467
|
-
const x = t.content?.dataset.side, v = x === "right", E = v ? -5 : 5, y = f[v ? "left" : "right"], S = f[v ? "right" : "left"];
|
|
468
|
-
c.onPointerGraceIntentChange({
|
|
469
|
-
area: [
|
|
470
|
-
// Apply a bleed on clientX to ensure that our exit point is
|
|
471
|
-
// consistently within polygon bounds
|
|
472
|
-
{ x: s.clientX + E, y: s.clientY },
|
|
473
|
-
{ x: y, y: f.top },
|
|
474
|
-
{ x: S, y: f.top },
|
|
475
|
-
{ x: S, y: f.bottom },
|
|
476
|
-
{ x: y, y: f.bottom }
|
|
477
|
-
],
|
|
478
|
-
side: x
|
|
479
|
-
}), window.clearTimeout(p.current), p.current = window.setTimeout(
|
|
480
|
-
() => c.onPointerGraceIntentChange(null),
|
|
481
|
-
300
|
|
482
|
-
);
|
|
483
|
-
} else {
|
|
484
|
-
if (c.onTriggerLeave(s), s.defaultPrevented) return;
|
|
485
|
-
c.onPointerGraceIntentChange(null);
|
|
486
|
-
}
|
|
487
|
-
})
|
|
488
|
-
),
|
|
489
|
-
onKeyDown: M(e.onKeyDown, (s) => {
|
|
490
|
-
const f = c.searchRef.current !== "";
|
|
491
|
-
e.disabled || f && s.key === " " || it[r.dir].includes(s.key) && (t.onOpenChange(!0), t.content?.focus(), s.preventDefault());
|
|
492
|
-
})
|
|
493
|
-
}
|
|
494
|
-
) });
|
|
495
|
-
}
|
|
496
|
-
);
|
|
497
|
-
Ae.displayName = A;
|
|
498
|
-
var je = "MenuSubContent", Oe = o.forwardRef(
|
|
499
|
-
(e, n) => {
|
|
500
|
-
const t = Me(g, e.__scopeMenu), { forceMount: r = t.forceMount, ...u } = e, c = P(g, e.__scopeMenu), d = F(g, e.__scopeMenu), p = Te(je, e.__scopeMenu), h = o.useRef(null), m = k(n, h);
|
|
501
|
-
return /* @__PURE__ */ a.jsx(j.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(V, { present: r || c.open, children: /* @__PURE__ */ a.jsx(j.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
502
|
-
ee,
|
|
503
|
-
{
|
|
504
|
-
id: p.contentId,
|
|
505
|
-
"aria-labelledby": p.triggerId,
|
|
506
|
-
...u,
|
|
507
|
-
ref: m,
|
|
508
|
-
align: "start",
|
|
509
|
-
side: d.dir === "rtl" ? "left" : "right",
|
|
510
|
-
disableOutsidePointerEvents: !1,
|
|
511
|
-
disableOutsideScroll: !1,
|
|
512
|
-
trapFocus: !1,
|
|
513
|
-
onOpenAutoFocus: (l) => {
|
|
514
|
-
d.isUsingKeyboardRef.current && h.current?.focus(), l.preventDefault();
|
|
515
|
-
},
|
|
516
|
-
onCloseAutoFocus: (l) => l.preventDefault(),
|
|
517
|
-
onFocusOutside: M(e.onFocusOutside, (l) => {
|
|
518
|
-
l.target !== p.trigger && c.onOpenChange(!1);
|
|
519
|
-
}),
|
|
520
|
-
onEscapeKeyDown: M(e.onEscapeKeyDown, (l) => {
|
|
521
|
-
d.onClose(), l.preventDefault();
|
|
522
|
-
}),
|
|
523
|
-
onKeyDown: M(e.onKeyDown, (l) => {
|
|
524
|
-
const s = l.currentTarget.contains(l.target), f = lt[d.dir].includes(l.key);
|
|
525
|
-
s && f && (c.onOpenChange(!1), p.trigger?.focus(), l.preventDefault());
|
|
526
|
-
})
|
|
527
|
-
}
|
|
528
|
-
) }) }) });
|
|
165
|
+
return J(i);
|
|
166
|
+
}
|
|
167
|
+
function it(t, e) {
|
|
168
|
+
const o = S(t);
|
|
169
|
+
return o === e || !v(o) || z(o) ? !1 : b(o).position === "fixed" || it(o, e);
|
|
170
|
+
}
|
|
171
|
+
function Ct(t, e) {
|
|
172
|
+
const o = e.get(t);
|
|
173
|
+
if (o)
|
|
174
|
+
return o;
|
|
175
|
+
let i = $(t, [], !1).filter((c) => v(c) && _(c) !== "body"), n = null;
|
|
176
|
+
const r = b(t).position === "fixed";
|
|
177
|
+
let s = r ? S(t) : t;
|
|
178
|
+
for (; v(s) && !z(s); ) {
|
|
179
|
+
const c = b(s), f = Q(s);
|
|
180
|
+
!f && c.position === "fixed" && (n = null), (r ? !f && !n : !f && c.position === "static" && !!n && bt.has(n.position) || q(s) && !f && it(t, s)) ? i = i.filter((u) => u !== s) : n = c, s = S(s);
|
|
529
181
|
}
|
|
530
|
-
);
|
|
531
|
-
Oe.displayName = je;
|
|
532
|
-
function ke(e) {
|
|
533
|
-
return e ? "open" : "closed";
|
|
182
|
+
return e.set(t, i), i;
|
|
534
183
|
}
|
|
535
|
-
function
|
|
536
|
-
|
|
184
|
+
function Ot(t) {
|
|
185
|
+
let {
|
|
186
|
+
element: e,
|
|
187
|
+
boundary: o,
|
|
188
|
+
rootBoundary: i,
|
|
189
|
+
strategy: n
|
|
190
|
+
} = t;
|
|
191
|
+
const s = [...o === "clippingAncestors" ? V(e) ? [] : Ct(e, this._c) : [].concat(o), i], c = s[0], f = s.reduce((l, u) => {
|
|
192
|
+
const h = j(e, u, n);
|
|
193
|
+
return l.top = E(h.top, l.top), l.right = N(h.right, l.right), l.bottom = N(h.bottom, l.bottom), l.left = E(h.left, l.left), l;
|
|
194
|
+
}, j(e, c, n));
|
|
195
|
+
return {
|
|
196
|
+
width: f.right - f.left,
|
|
197
|
+
height: f.bottom - f.top,
|
|
198
|
+
x: f.left,
|
|
199
|
+
y: f.top
|
|
200
|
+
};
|
|
537
201
|
}
|
|
538
|
-
function
|
|
539
|
-
|
|
202
|
+
function Lt(t) {
|
|
203
|
+
const {
|
|
204
|
+
width: e,
|
|
205
|
+
height: o
|
|
206
|
+
} = Z(t);
|
|
207
|
+
return {
|
|
208
|
+
width: e,
|
|
209
|
+
height: o
|
|
210
|
+
};
|
|
540
211
|
}
|
|
541
|
-
function Tt(e) {
|
|
542
|
-
const n =
|
|
543
|
-
|
|
544
|
-
|
|
212
|
+
function Tt(t, e, o) {
|
|
213
|
+
const i = C(e), n = R(e), r = o === "fixed", s = T(t, !0, r, e);
|
|
214
|
+
let c = {
|
|
215
|
+
scrollLeft: 0,
|
|
216
|
+
scrollTop: 0
|
|
217
|
+
};
|
|
218
|
+
const f = y(0);
|
|
219
|
+
function l() {
|
|
220
|
+
f.x = I(n);
|
|
221
|
+
}
|
|
222
|
+
if (i || !i && !r)
|
|
223
|
+
if ((_(e) !== "body" || q(n)) && (c = H(e)), i) {
|
|
224
|
+
const a = T(e, !0, r, e);
|
|
225
|
+
f.x = a.x + e.clientLeft, f.y = a.y + e.clientTop;
|
|
226
|
+
} else n && l();
|
|
227
|
+
r && !i && n && l();
|
|
228
|
+
const u = n && !i && !r ? et(n, c) : y(0), h = s.left + c.scrollLeft - f.x - u.x, d = s.top + c.scrollTop - f.y - u.y;
|
|
229
|
+
return {
|
|
230
|
+
x: h,
|
|
231
|
+
y: d,
|
|
232
|
+
width: s.width,
|
|
233
|
+
height: s.height
|
|
234
|
+
};
|
|
545
235
|
}
|
|
546
|
-
function
|
|
547
|
-
return
|
|
236
|
+
function M(t) {
|
|
237
|
+
return b(t).position === "static";
|
|
548
238
|
}
|
|
549
|
-
function
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
);
|
|
556
|
-
return h !== t ? h : void 0;
|
|
239
|
+
function G(t, e) {
|
|
240
|
+
if (!C(t) || b(t).position === "fixed")
|
|
241
|
+
return null;
|
|
242
|
+
if (e)
|
|
243
|
+
return e(t);
|
|
244
|
+
let o = t.offsetParent;
|
|
245
|
+
return R(t) === o && (o = o.ownerDocument.body), o;
|
|
557
246
|
}
|
|
558
|
-
function
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
247
|
+
function ot(t, e) {
|
|
248
|
+
const o = L(t);
|
|
249
|
+
if (V(t))
|
|
250
|
+
return o;
|
|
251
|
+
if (!C(t)) {
|
|
252
|
+
let n = S(t);
|
|
253
|
+
for (; n && !z(n); ) {
|
|
254
|
+
if (v(n) && !M(n))
|
|
255
|
+
return n;
|
|
256
|
+
n = S(n);
|
|
257
|
+
}
|
|
258
|
+
return o;
|
|
564
259
|
}
|
|
565
|
-
|
|
260
|
+
let i = G(t, e);
|
|
261
|
+
for (; i && dt(i) && M(i); )
|
|
262
|
+
i = G(i, e);
|
|
263
|
+
return i && z(i) && M(i) && !Q(i) ? o : i || gt(t) || o;
|
|
264
|
+
}
|
|
265
|
+
const Et = async function(t) {
|
|
266
|
+
const e = this.getOffsetParent || ot, o = this.getDimensions, i = await o(t.floating);
|
|
267
|
+
return {
|
|
268
|
+
reference: Tt(t.reference, await e(t.floating), t.strategy),
|
|
269
|
+
floating: {
|
|
270
|
+
x: 0,
|
|
271
|
+
y: 0,
|
|
272
|
+
width: i.width,
|
|
273
|
+
height: i.height
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
function Ft(t) {
|
|
278
|
+
return b(t).direction === "rtl";
|
|
566
279
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
280
|
+
const St = {
|
|
281
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
|
282
|
+
getDocumentElement: R,
|
|
283
|
+
getClippingRect: Ot,
|
|
284
|
+
getOffsetParent: ot,
|
|
285
|
+
getElementRects: Et,
|
|
286
|
+
getClientRects: yt,
|
|
287
|
+
getDimensions: Lt,
|
|
288
|
+
getScale: F,
|
|
289
|
+
isElement: v,
|
|
290
|
+
isRTL: Ft
|
|
291
|
+
};
|
|
292
|
+
function nt(t, e) {
|
|
293
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
294
|
+
}
|
|
295
|
+
function Wt(t, e) {
|
|
296
|
+
let o = null, i;
|
|
297
|
+
const n = R(t);
|
|
298
|
+
function r() {
|
|
299
|
+
var c;
|
|
300
|
+
clearTimeout(i), (c = o) == null || c.disconnect(), o = null;
|
|
301
|
+
}
|
|
302
|
+
function s(c, f) {
|
|
303
|
+
c === void 0 && (c = !1), f === void 0 && (f = 1), r();
|
|
304
|
+
const l = t.getBoundingClientRect(), {
|
|
305
|
+
left: u,
|
|
306
|
+
top: h,
|
|
307
|
+
width: d,
|
|
308
|
+
height: a
|
|
309
|
+
} = l;
|
|
310
|
+
if (c || e(), !d || !a)
|
|
311
|
+
return;
|
|
312
|
+
const m = A(h), p = A(n.clientWidth - (u + d)), w = A(n.clientHeight - (h + a)), g = A(u), O = {
|
|
313
|
+
rootMargin: -m + "px " + -p + "px " + -w + "px " + -g + "px",
|
|
314
|
+
threshold: E(0, N(1, f)) || 1
|
|
315
|
+
};
|
|
316
|
+
let W = !0;
|
|
317
|
+
function k(P) {
|
|
318
|
+
const B = P[0].intersectionRatio;
|
|
319
|
+
if (B !== f) {
|
|
320
|
+
if (!W)
|
|
321
|
+
return s();
|
|
322
|
+
B ? s(!1, B) : i = setTimeout(() => {
|
|
323
|
+
s(!1, 1e-7);
|
|
324
|
+
}, 1e3);
|
|
325
|
+
}
|
|
326
|
+
B === 1 && !nt(l, t.getBoundingClientRect()) && s(), W = !1;
|
|
327
|
+
}
|
|
328
|
+
try {
|
|
329
|
+
o = new IntersectionObserver(k, {
|
|
330
|
+
...O,
|
|
331
|
+
// Handle <iframe>s
|
|
332
|
+
root: n.ownerDocument
|
|
333
|
+
});
|
|
334
|
+
} catch {
|
|
335
|
+
o = new IntersectionObserver(k, O);
|
|
336
|
+
}
|
|
337
|
+
o.observe(t);
|
|
338
|
+
}
|
|
339
|
+
return s(!0), r;
|
|
571
340
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
341
|
+
function zt(t, e, o, i) {
|
|
342
|
+
i === void 0 && (i = {});
|
|
343
|
+
const {
|
|
344
|
+
ancestorScroll: n = !0,
|
|
345
|
+
ancestorResize: r = !0,
|
|
346
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
347
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
348
|
+
animationFrame: f = !1
|
|
349
|
+
} = i, l = X(t), u = n || r ? [...l ? $(l) : [], ...$(e)] : [];
|
|
350
|
+
u.forEach((g) => {
|
|
351
|
+
n && g.addEventListener("scroll", o, {
|
|
352
|
+
passive: !0
|
|
353
|
+
}), r && g.addEventListener("resize", o);
|
|
354
|
+
});
|
|
355
|
+
const h = l && c ? Wt(l, o) : null;
|
|
356
|
+
let d = -1, a = null;
|
|
357
|
+
s && (a = new ResizeObserver((g) => {
|
|
358
|
+
let [x] = g;
|
|
359
|
+
x && x.target === l && a && (a.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
360
|
+
var O;
|
|
361
|
+
(O = a) == null || O.observe(e);
|
|
362
|
+
})), o();
|
|
363
|
+
}), l && !f && a.observe(l), a.observe(e));
|
|
364
|
+
let m, p = f ? T(t) : null;
|
|
365
|
+
f && w();
|
|
366
|
+
function w() {
|
|
367
|
+
const g = T(t);
|
|
368
|
+
p && !nt(p, g) && o(), p = g, m = requestAnimationFrame(w);
|
|
369
|
+
}
|
|
370
|
+
return o(), () => {
|
|
371
|
+
var g;
|
|
372
|
+
u.forEach((x) => {
|
|
373
|
+
n && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
|
|
374
|
+
}), h?.(), (g = a) == null || g.disconnect(), a = null, f && cancelAnimationFrame(m);
|
|
375
|
+
};
|
|
574
376
|
}
|
|
575
|
-
|
|
377
|
+
const Ht = st, It = rt, Mt = ct, Nt = lt, $t = ft, Vt = at, _t = ut, qt = (t, e, o) => {
|
|
378
|
+
const i = /* @__PURE__ */ new Map(), n = {
|
|
379
|
+
platform: St,
|
|
380
|
+
...o
|
|
381
|
+
}, r = {
|
|
382
|
+
...n.platform,
|
|
383
|
+
_c: i
|
|
384
|
+
};
|
|
385
|
+
return ht(t, e, {
|
|
386
|
+
...n,
|
|
387
|
+
platform: r
|
|
388
|
+
});
|
|
389
|
+
};
|
|
576
390
|
export {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
_e as MenuCheckboxItem,
|
|
589
|
-
Ce as MenuContent,
|
|
590
|
-
te as MenuGroup,
|
|
591
|
-
X as MenuItem,
|
|
592
|
-
Ie as MenuItemIndicator,
|
|
593
|
-
xe as MenuLabel,
|
|
594
|
-
he as MenuPortal,
|
|
595
|
-
Pe as MenuRadioGroup,
|
|
596
|
-
Se as MenuRadioItem,
|
|
597
|
-
ye as MenuSeparator,
|
|
598
|
-
Oe as MenuSubContent,
|
|
599
|
-
Ae as MenuSubTrigger,
|
|
600
|
-
on as Portal,
|
|
601
|
-
ln as RadioGroup,
|
|
602
|
-
dn as RadioItem,
|
|
603
|
-
tn as Root,
|
|
604
|
-
mn as Separator,
|
|
605
|
-
Mn as SubContent,
|
|
606
|
-
vn as SubTrigger,
|
|
607
|
-
Qt as createMenuScope
|
|
391
|
+
Vt as arrow,
|
|
392
|
+
zt as autoUpdate,
|
|
393
|
+
qt as computePosition,
|
|
394
|
+
Mt as flip,
|
|
395
|
+
$ as getOverflowAncestors,
|
|
396
|
+
$t as hide,
|
|
397
|
+
_t as limitShift,
|
|
398
|
+
Ht as offset,
|
|
399
|
+
St as platform,
|
|
400
|
+
It as shift,
|
|
401
|
+
Nt as size
|
|
608
402
|
};
|
|
609
403
|
//# sourceMappingURL=index157.js.map
|