@pdf-viewer/react 1.8.1-rc.0 → 1.8.1-rc.1
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/{RPDefaultLayout-c0c44afa.js → RPDefaultLayout-29ba8270.js} +802 -798
- package/dist/components/RPConfig.js +673 -691
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/layout/LayoutContainer.js +4 -3
- package/dist/components/layout/RPDefaultLayout.js +3 -2
- package/dist/components/layout/sidebar/RPSidebar.js +1 -1
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +3 -2
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/MenuItem.js +1 -1
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +2 -2
- package/dist/components/layout/toolbar/OtherTool.js +2 -2
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +2 -2
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +1 -1
- package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
- package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +2 -2
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +2 -2
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/CanvasLayer.js +1 -1
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +3 -2
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/Button.js +8 -8
- package/dist/components/ui/Checkbox.js +116 -228
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/Input.js +11 -11
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/RPTooltip.js +204 -206
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/floating-ui.react-dom-88a86594.js +1447 -0
- package/dist/index-48ca3f30.js +307 -0
- package/dist/index-4ba3ab9a.js +1877 -0
- package/dist/main.js +1 -1
- package/dist/types/components/layout/LayoutContainer.d.ts +5 -1
- package/dist/types/components/layout/RPDefaultLayout.d.ts +3 -1
- package/dist/types/components/layout/sidebar/Thumbnails.d.ts +3 -1
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +3 -1
- package/dist/types/components/page/RPPage.d.ts +3 -1
- package/dist/types/components/ui/Button.d.ts +3 -1
- package/dist/types/components/ui/Input.d.ts +3 -1
- package/dist/types/components/ui/RPTooltip.d.ts +3 -1
- package/dist/types/utils/withRef.d.ts +4 -0
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +1 -1
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
- package/dist/utils/withRef.js +8 -0
- package/package.json +1 -1
- package/dist/Popover-48c8394c.js +0 -1445
- package/dist/assets/Popover.css +0 -1
- package/dist/component-2aa6e53b.js +0 -337
- package/dist/components/ui/Popover.js +0 -6
- package/dist/floating-ui.react-dom-4b1e2e46.js +0 -1324
- package/dist/index-6e0e48fa.js +0 -332
- package/dist/index-951f0f1f.js +0 -1565
- package/dist/index-e3a67935.js +0 -150
- package/dist/types/components/ui/Popover.d.ts +0 -9
package/dist/index-951f0f1f.js
DELETED
|
@@ -1,1565 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import V from "react";
|
|
3
|
-
import { g as Te, P as D, c as de, u as G, i as Ne, d as gn, e as ot, a as S, b as Ee, j as at, f as wn } from "./index-6e0e48fa.js";
|
|
4
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
import { u as ne, a as De, D as Cn } from "./index-e3a67935.js";
|
|
6
|
-
import { u as Mn, a as En, o as Rn, s as bn, l as Sn, f as yn, b as _n, c as Pn, h as In } from "./floating-ui.react-dom-4b1e2e46.js";
|
|
7
|
-
import An from "react-dom";
|
|
8
|
-
import { c as xn, _ as Tn, u as Nn, a as te, f as Dn, z as On, s as Fn, b as kn, R as Ln, e as Gn, h as Kn } from "./component-2aa6e53b.js";
|
|
9
|
-
var Un = "Portal", ct = o.forwardRef((e, t) => {
|
|
10
|
-
var s;
|
|
11
|
-
const { container: n, ...r } = e, [a, c] = o.useState(!1);
|
|
12
|
-
Te(() => c(!0), []);
|
|
13
|
-
const u = n || a && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
14
|
-
return u ? An.createPortal(/* @__PURE__ */ l(D.div, { ...r, ref: t }), u) : null;
|
|
15
|
-
});
|
|
16
|
-
ct.displayName = Un;
|
|
17
|
-
function st(e) {
|
|
18
|
-
const t = e + "CollectionProvider", [n, r] = de(t), [a, c] = n(
|
|
19
|
-
t,
|
|
20
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
21
|
-
), u = (i) => {
|
|
22
|
-
const { scope: p, children: g } = i, E = V.useRef(null), w = V.useRef(/* @__PURE__ */ new Map()).current;
|
|
23
|
-
return /* @__PURE__ */ l(a, { scope: p, itemMap: w, collectionRef: E, children: g });
|
|
24
|
-
};
|
|
25
|
-
u.displayName = t;
|
|
26
|
-
const s = e + "CollectionSlot", h = Ne(s), m = V.forwardRef(
|
|
27
|
-
(i, p) => {
|
|
28
|
-
const { scope: g, children: E } = i, w = c(s, g), R = G(p, w.collectionRef);
|
|
29
|
-
return /* @__PURE__ */ l(h, { ref: R, children: E });
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
m.displayName = s;
|
|
33
|
-
const f = e + "CollectionItemSlot", d = "data-radix-collection-item", v = Ne(f), C = V.forwardRef(
|
|
34
|
-
(i, p) => {
|
|
35
|
-
const { scope: g, children: E, ...w } = i, R = V.useRef(null), y = G(p, R), _ = c(f, g);
|
|
36
|
-
return V.useEffect(() => (_.itemMap.set(R, { ref: R, ...w }), () => void _.itemMap.delete(R))), /* @__PURE__ */ l(v, { [d]: "", ref: y, children: E });
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
C.displayName = f;
|
|
40
|
-
function M(i) {
|
|
41
|
-
const p = c(e + "CollectionConsumer", i);
|
|
42
|
-
return V.useCallback(() => {
|
|
43
|
-
const E = p.collectionRef.current;
|
|
44
|
-
if (!E)
|
|
45
|
-
return [];
|
|
46
|
-
const w = Array.from(E.querySelectorAll(`[${d}]`));
|
|
47
|
-
return Array.from(p.itemMap.values()).sort(
|
|
48
|
-
(_, I) => w.indexOf(_.ref.current) - w.indexOf(I.ref.current)
|
|
49
|
-
);
|
|
50
|
-
}, [p.collectionRef, p.itemMap]);
|
|
51
|
-
}
|
|
52
|
-
return [
|
|
53
|
-
{ Provider: u, Slot: m, ItemSlot: C },
|
|
54
|
-
M,
|
|
55
|
-
r
|
|
56
|
-
];
|
|
57
|
-
}
|
|
58
|
-
var $n = o.createContext(void 0);
|
|
59
|
-
function it(e) {
|
|
60
|
-
const t = o.useContext($n);
|
|
61
|
-
return e || t || "ltr";
|
|
62
|
-
}
|
|
63
|
-
var _e = 0;
|
|
64
|
-
function Bn() {
|
|
65
|
-
o.useEffect(() => {
|
|
66
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
67
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ze()), document.body.insertAdjacentElement("beforeend", e[1] ?? ze()), _e++, () => {
|
|
68
|
-
_e === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), _e--;
|
|
69
|
-
};
|
|
70
|
-
}, []);
|
|
71
|
-
}
|
|
72
|
-
function ze() {
|
|
73
|
-
const e = document.createElement("span");
|
|
74
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
75
|
-
}
|
|
76
|
-
var Pe = "focusScope.autoFocusOnMount", Ie = "focusScope.autoFocusOnUnmount", Ze = { bubbles: !1, cancelable: !0 }, Yn = "FocusScope", ut = o.forwardRef((e, t) => {
|
|
77
|
-
const {
|
|
78
|
-
loop: n = !1,
|
|
79
|
-
trapped: r = !1,
|
|
80
|
-
onMountAutoFocus: a,
|
|
81
|
-
onUnmountAutoFocus: c,
|
|
82
|
-
...u
|
|
83
|
-
} = e, [s, h] = o.useState(null), m = ne(a), f = ne(c), d = o.useRef(null), v = G(t, (i) => h(i)), C = o.useRef({
|
|
84
|
-
paused: !1,
|
|
85
|
-
pause() {
|
|
86
|
-
this.paused = !0;
|
|
87
|
-
},
|
|
88
|
-
resume() {
|
|
89
|
-
this.paused = !1;
|
|
90
|
-
}
|
|
91
|
-
}).current;
|
|
92
|
-
o.useEffect(() => {
|
|
93
|
-
if (r) {
|
|
94
|
-
let i = function(w) {
|
|
95
|
-
if (C.paused || !s)
|
|
96
|
-
return;
|
|
97
|
-
const R = w.target;
|
|
98
|
-
s.contains(R) ? d.current = R : H(d.current, { select: !0 });
|
|
99
|
-
}, p = function(w) {
|
|
100
|
-
if (C.paused || !s)
|
|
101
|
-
return;
|
|
102
|
-
const R = w.relatedTarget;
|
|
103
|
-
R !== null && (s.contains(R) || H(d.current, { select: !0 }));
|
|
104
|
-
}, g = function(w) {
|
|
105
|
-
if (document.activeElement === document.body)
|
|
106
|
-
for (const y of w)
|
|
107
|
-
y.removedNodes.length > 0 && H(s);
|
|
108
|
-
};
|
|
109
|
-
document.addEventListener("focusin", i), document.addEventListener("focusout", p);
|
|
110
|
-
const E = new MutationObserver(g);
|
|
111
|
-
return s && E.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
112
|
-
document.removeEventListener("focusin", i), document.removeEventListener("focusout", p), E.disconnect();
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}, [r, s, C.paused]), o.useEffect(() => {
|
|
116
|
-
if (s) {
|
|
117
|
-
Qe.add(C);
|
|
118
|
-
const i = document.activeElement;
|
|
119
|
-
if (!s.contains(i)) {
|
|
120
|
-
const g = new CustomEvent(Pe, Ze);
|
|
121
|
-
s.addEventListener(Pe, m), s.dispatchEvent(g), g.defaultPrevented || (Hn(zn(lt(s)), { select: !0 }), document.activeElement === i && H(s));
|
|
122
|
-
}
|
|
123
|
-
return () => {
|
|
124
|
-
s.removeEventListener(Pe, m), setTimeout(() => {
|
|
125
|
-
const g = new CustomEvent(Ie, Ze);
|
|
126
|
-
s.addEventListener(Ie, f), s.dispatchEvent(g), g.defaultPrevented || H(i ?? document.body, { select: !0 }), s.removeEventListener(Ie, f), Qe.remove(C);
|
|
127
|
-
}, 0);
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}, [s, m, f, C]);
|
|
131
|
-
const M = o.useCallback(
|
|
132
|
-
(i) => {
|
|
133
|
-
if (!n && !r || C.paused)
|
|
134
|
-
return;
|
|
135
|
-
const p = i.key === "Tab" && !i.altKey && !i.ctrlKey && !i.metaKey, g = document.activeElement;
|
|
136
|
-
if (p && g) {
|
|
137
|
-
const E = i.currentTarget, [w, R] = Wn(E);
|
|
138
|
-
w && R ? !i.shiftKey && g === R ? (i.preventDefault(), n && H(w, { select: !0 })) : i.shiftKey && g === w && (i.preventDefault(), n && H(R, { select: !0 })) : g === E && i.preventDefault();
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
[n, r, C.paused]
|
|
142
|
-
);
|
|
143
|
-
return /* @__PURE__ */ l(D.div, { tabIndex: -1, ...u, ref: v, onKeyDown: M });
|
|
144
|
-
});
|
|
145
|
-
ut.displayName = Yn;
|
|
146
|
-
function Hn(e, { select: t = !1 } = {}) {
|
|
147
|
-
const n = document.activeElement;
|
|
148
|
-
for (const r of e)
|
|
149
|
-
if (H(r, { select: t }), document.activeElement !== n)
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
function Wn(e) {
|
|
153
|
-
const t = lt(e), n = qe(t, e), r = qe(t.reverse(), e);
|
|
154
|
-
return [n, r];
|
|
155
|
-
}
|
|
156
|
-
function lt(e) {
|
|
157
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
158
|
-
acceptNode: (r) => {
|
|
159
|
-
const a = r.tagName === "INPUT" && r.type === "hidden";
|
|
160
|
-
return r.disabled || r.hidden || a ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
for (; n.nextNode(); )
|
|
164
|
-
t.push(n.currentNode);
|
|
165
|
-
return t;
|
|
166
|
-
}
|
|
167
|
-
function qe(e, t) {
|
|
168
|
-
for (const n of e)
|
|
169
|
-
if (!Xn(n, { upTo: t }))
|
|
170
|
-
return n;
|
|
171
|
-
}
|
|
172
|
-
function Xn(e, { upTo: t }) {
|
|
173
|
-
if (getComputedStyle(e).visibility === "hidden")
|
|
174
|
-
return !0;
|
|
175
|
-
for (; e; ) {
|
|
176
|
-
if (t !== void 0 && e === t)
|
|
177
|
-
return !1;
|
|
178
|
-
if (getComputedStyle(e).display === "none")
|
|
179
|
-
return !0;
|
|
180
|
-
e = e.parentElement;
|
|
181
|
-
}
|
|
182
|
-
return !1;
|
|
183
|
-
}
|
|
184
|
-
function Vn(e) {
|
|
185
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
186
|
-
}
|
|
187
|
-
function H(e, { select: t = !1 } = {}) {
|
|
188
|
-
if (e && e.focus) {
|
|
189
|
-
const n = document.activeElement;
|
|
190
|
-
e.focus({ preventScroll: !0 }), e !== n && Vn(e) && t && e.select();
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
var Qe = jn();
|
|
194
|
-
function jn() {
|
|
195
|
-
let e = [];
|
|
196
|
-
return {
|
|
197
|
-
add(t) {
|
|
198
|
-
const n = e[0];
|
|
199
|
-
t !== n && (n == null || n.pause()), e = Je(e, t), e.unshift(t);
|
|
200
|
-
},
|
|
201
|
-
remove(t) {
|
|
202
|
-
var n;
|
|
203
|
-
e = Je(e, t), (n = e[0]) == null || n.resume();
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
function Je(e, t) {
|
|
208
|
-
const n = [...e], r = n.indexOf(t);
|
|
209
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
210
|
-
}
|
|
211
|
-
function zn(e) {
|
|
212
|
-
return e.filter((t) => t.tagName !== "A");
|
|
213
|
-
}
|
|
214
|
-
var Zn = "Arrow", dt = o.forwardRef((e, t) => {
|
|
215
|
-
const { children: n, width: r = 10, height: a = 5, ...c } = e;
|
|
216
|
-
return /* @__PURE__ */ l(
|
|
217
|
-
D.svg,
|
|
218
|
-
{
|
|
219
|
-
...c,
|
|
220
|
-
ref: t,
|
|
221
|
-
width: r,
|
|
222
|
-
height: a,
|
|
223
|
-
viewBox: "0 0 30 10",
|
|
224
|
-
preserveAspectRatio: "none",
|
|
225
|
-
children: e.asChild ? n : /* @__PURE__ */ l("polygon", { points: "0,0 30,0 15,10" })
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
});
|
|
229
|
-
dt.displayName = Zn;
|
|
230
|
-
var qn = dt, Le = "Popper", [ft, pt] = de(Le), [Qn, mt] = ft(Le), vt = (e) => {
|
|
231
|
-
const { __scopePopper: t, children: n } = e, [r, a] = o.useState(null);
|
|
232
|
-
return /* @__PURE__ */ l(Qn, { scope: t, anchor: r, onAnchorChange: a, children: n });
|
|
233
|
-
};
|
|
234
|
-
vt.displayName = Le;
|
|
235
|
-
var ht = "PopperAnchor", gt = o.forwardRef(
|
|
236
|
-
(e, t) => {
|
|
237
|
-
const { __scopePopper: n, virtualRef: r, ...a } = e, c = mt(ht, n), u = o.useRef(null), s = G(t, u);
|
|
238
|
-
return o.useEffect(() => {
|
|
239
|
-
c.onAnchorChange((r == null ? void 0 : r.current) || u.current);
|
|
240
|
-
}), r ? null : /* @__PURE__ */ l(D.div, { ...a, ref: s });
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
gt.displayName = ht;
|
|
244
|
-
var Ge = "PopperContent", [Jn, er] = ft(Ge), wt = o.forwardRef(
|
|
245
|
-
(e, t) => {
|
|
246
|
-
var B, ae, O, ce, Xe, Ve;
|
|
247
|
-
const {
|
|
248
|
-
__scopePopper: n,
|
|
249
|
-
side: r = "bottom",
|
|
250
|
-
sideOffset: a = 0,
|
|
251
|
-
align: c = "center",
|
|
252
|
-
alignOffset: u = 0,
|
|
253
|
-
arrowPadding: s = 0,
|
|
254
|
-
avoidCollisions: h = !0,
|
|
255
|
-
collisionBoundary: m = [],
|
|
256
|
-
collisionPadding: f = 0,
|
|
257
|
-
sticky: d = "partial",
|
|
258
|
-
hideWhenDetached: v = !1,
|
|
259
|
-
updatePositionStrategy: C = "optimized",
|
|
260
|
-
onPlaced: M,
|
|
261
|
-
...i
|
|
262
|
-
} = e, p = mt(Ge, n), [g, E] = o.useState(null), w = G(t, (se) => E(se)), [R, y] = o.useState(null), _ = gn(R), I = (_ == null ? void 0 : _.width) ?? 0, P = (_ == null ? void 0 : _.height) ?? 0, k = r + (c !== "center" ? "-" + c : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, Y = Array.isArray(m) ? m : [m], W = Y.length > 0, $ = {
|
|
263
|
-
padding: U,
|
|
264
|
-
boundary: Y.filter(nr),
|
|
265
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
266
|
-
altBoundary: W
|
|
267
|
-
}, { refs: Z, floatingStyles: q, placement: L, isPositioned: Q, middlewareData: N } = Mn({
|
|
268
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
269
|
-
strategy: "fixed",
|
|
270
|
-
placement: k,
|
|
271
|
-
whileElementsMounted: (...se) => En(...se, {
|
|
272
|
-
animationFrame: C === "always"
|
|
273
|
-
}),
|
|
274
|
-
elements: {
|
|
275
|
-
reference: p.anchor
|
|
276
|
-
},
|
|
277
|
-
middleware: [
|
|
278
|
-
Rn({ mainAxis: a + P, alignmentAxis: u }),
|
|
279
|
-
h && bn({
|
|
280
|
-
mainAxis: !0,
|
|
281
|
-
crossAxis: !1,
|
|
282
|
-
limiter: d === "partial" ? Sn() : void 0,
|
|
283
|
-
...$
|
|
284
|
-
}),
|
|
285
|
-
h && yn({ ...$ }),
|
|
286
|
-
_n({
|
|
287
|
-
...$,
|
|
288
|
-
apply: ({ elements: se, rects: je, availableWidth: pn, availableHeight: mn }) => {
|
|
289
|
-
const { width: vn, height: hn } = je.reference, he = se.floating.style;
|
|
290
|
-
he.setProperty("--radix-popper-available-width", `${pn}px`), he.setProperty("--radix-popper-available-height", `${mn}px`), he.setProperty("--radix-popper-anchor-width", `${vn}px`), he.setProperty("--radix-popper-anchor-height", `${hn}px`);
|
|
291
|
-
}
|
|
292
|
-
}),
|
|
293
|
-
R && Pn({ element: R, padding: s }),
|
|
294
|
-
rr({ arrowWidth: I, arrowHeight: P }),
|
|
295
|
-
v && In({ strategy: "referenceHidden", ...$ })
|
|
296
|
-
]
|
|
297
|
-
}), [b, T] = Et(L), A = ne(M);
|
|
298
|
-
Te(() => {
|
|
299
|
-
Q && (A == null || A());
|
|
300
|
-
}, [Q, A]);
|
|
301
|
-
const K = (B = N.arrow) == null ? void 0 : B.x, re = (ae = N.arrow) == null ? void 0 : ae.y, oe = ((O = N.arrow) == null ? void 0 : O.centerOffset) !== 0, [ve, X] = o.useState();
|
|
302
|
-
return Te(() => {
|
|
303
|
-
g && X(window.getComputedStyle(g).zIndex);
|
|
304
|
-
}, [g]), /* @__PURE__ */ l(
|
|
305
|
-
"div",
|
|
306
|
-
{
|
|
307
|
-
ref: Z.setFloating,
|
|
308
|
-
"data-radix-popper-content-wrapper": "",
|
|
309
|
-
style: {
|
|
310
|
-
...q,
|
|
311
|
-
transform: Q ? q.transform : "translate(0, -200%)",
|
|
312
|
-
// keep off the page when measuring
|
|
313
|
-
minWidth: "max-content",
|
|
314
|
-
zIndex: ve,
|
|
315
|
-
"--radix-popper-transform-origin": [
|
|
316
|
-
(ce = N.transformOrigin) == null ? void 0 : ce.x,
|
|
317
|
-
(Xe = N.transformOrigin) == null ? void 0 : Xe.y
|
|
318
|
-
].join(" "),
|
|
319
|
-
// hide the content if using the hide middleware and should be hidden
|
|
320
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
321
|
-
// as if the PopperContent isn't there at all
|
|
322
|
-
...((Ve = N.hide) == null ? void 0 : Ve.referenceHidden) && {
|
|
323
|
-
visibility: "hidden",
|
|
324
|
-
pointerEvents: "none"
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
dir: e.dir,
|
|
328
|
-
children: /* @__PURE__ */ l(
|
|
329
|
-
Jn,
|
|
330
|
-
{
|
|
331
|
-
scope: n,
|
|
332
|
-
placedSide: b,
|
|
333
|
-
onArrowChange: y,
|
|
334
|
-
arrowX: K,
|
|
335
|
-
arrowY: re,
|
|
336
|
-
shouldHideArrow: oe,
|
|
337
|
-
children: /* @__PURE__ */ l(
|
|
338
|
-
D.div,
|
|
339
|
-
{
|
|
340
|
-
"data-side": b,
|
|
341
|
-
"data-align": T,
|
|
342
|
-
...i,
|
|
343
|
-
ref: w,
|
|
344
|
-
style: {
|
|
345
|
-
...i.style,
|
|
346
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
347
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
348
|
-
animation: Q ? void 0 : "none"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
)
|
|
352
|
-
}
|
|
353
|
-
)
|
|
354
|
-
}
|
|
355
|
-
);
|
|
356
|
-
}
|
|
357
|
-
);
|
|
358
|
-
wt.displayName = Ge;
|
|
359
|
-
var Ct = "PopperArrow", tr = {
|
|
360
|
-
top: "bottom",
|
|
361
|
-
right: "left",
|
|
362
|
-
bottom: "top",
|
|
363
|
-
left: "right"
|
|
364
|
-
}, Mt = o.forwardRef(function(t, n) {
|
|
365
|
-
const { __scopePopper: r, ...a } = t, c = er(Ct, r), u = tr[c.placedSide];
|
|
366
|
-
return (
|
|
367
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
368
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
369
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
370
|
-
/* @__PURE__ */ l(
|
|
371
|
-
"span",
|
|
372
|
-
{
|
|
373
|
-
ref: c.onArrowChange,
|
|
374
|
-
style: {
|
|
375
|
-
position: "absolute",
|
|
376
|
-
left: c.arrowX,
|
|
377
|
-
top: c.arrowY,
|
|
378
|
-
[u]: 0,
|
|
379
|
-
transformOrigin: {
|
|
380
|
-
top: "",
|
|
381
|
-
right: "0 0",
|
|
382
|
-
bottom: "center 0",
|
|
383
|
-
left: "100% 0"
|
|
384
|
-
}[c.placedSide],
|
|
385
|
-
transform: {
|
|
386
|
-
top: "translateY(100%)",
|
|
387
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
388
|
-
bottom: "rotate(180deg)",
|
|
389
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
390
|
-
}[c.placedSide],
|
|
391
|
-
visibility: c.shouldHideArrow ? "hidden" : void 0
|
|
392
|
-
},
|
|
393
|
-
children: /* @__PURE__ */ l(
|
|
394
|
-
qn,
|
|
395
|
-
{
|
|
396
|
-
...a,
|
|
397
|
-
ref: n,
|
|
398
|
-
style: {
|
|
399
|
-
...a.style,
|
|
400
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
401
|
-
display: "block"
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
)
|
|
405
|
-
}
|
|
406
|
-
)
|
|
407
|
-
);
|
|
408
|
-
});
|
|
409
|
-
Mt.displayName = Ct;
|
|
410
|
-
function nr(e) {
|
|
411
|
-
return e !== null;
|
|
412
|
-
}
|
|
413
|
-
var rr = (e) => ({
|
|
414
|
-
name: "transformOrigin",
|
|
415
|
-
options: e,
|
|
416
|
-
fn(t) {
|
|
417
|
-
var p, g, E;
|
|
418
|
-
const { placement: n, rects: r, middlewareData: a } = t, u = ((p = a.arrow) == null ? void 0 : p.centerOffset) !== 0, s = u ? 0 : e.arrowWidth, h = u ? 0 : e.arrowHeight, [m, f] = Et(n), d = { start: "0%", center: "50%", end: "100%" }[f], v = (((g = a.arrow) == null ? void 0 : g.x) ?? 0) + s / 2, C = (((E = a.arrow) == null ? void 0 : E.y) ?? 0) + h / 2;
|
|
419
|
-
let M = "", i = "";
|
|
420
|
-
return m === "bottom" ? (M = u ? d : `${v}px`, i = `${-h}px`) : m === "top" ? (M = u ? d : `${v}px`, i = `${r.floating.height + h}px`) : m === "right" ? (M = `${-h}px`, i = u ? d : `${C}px`) : m === "left" && (M = `${r.floating.width + h}px`, i = u ? d : `${C}px`), { data: { x: M, y: i } };
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
function Et(e) {
|
|
424
|
-
const [t, n = "center"] = e.split("-");
|
|
425
|
-
return [t, n];
|
|
426
|
-
}
|
|
427
|
-
var or = vt, ar = gt, cr = wt, sr = Mt, Ae = "rovingFocusGroup.onEntryFocus", ir = { bubbles: !1, cancelable: !0 }, fe = "RovingFocusGroup", [Oe, Rt, ur] = st(fe), [lr, bt] = de(
|
|
428
|
-
fe,
|
|
429
|
-
[ur]
|
|
430
|
-
), [dr, fr] = lr(fe), St = o.forwardRef(
|
|
431
|
-
(e, t) => /* @__PURE__ */ l(Oe.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(Oe.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(pr, { ...e, ref: t }) }) })
|
|
432
|
-
);
|
|
433
|
-
St.displayName = fe;
|
|
434
|
-
var pr = o.forwardRef((e, t) => {
|
|
435
|
-
const {
|
|
436
|
-
__scopeRovingFocusGroup: n,
|
|
437
|
-
orientation: r,
|
|
438
|
-
loop: a = !1,
|
|
439
|
-
dir: c,
|
|
440
|
-
currentTabStopId: u,
|
|
441
|
-
defaultCurrentTabStopId: s,
|
|
442
|
-
onCurrentTabStopIdChange: h,
|
|
443
|
-
onEntryFocus: m,
|
|
444
|
-
preventScrollOnEntryFocus: f = !1,
|
|
445
|
-
...d
|
|
446
|
-
} = e, v = o.useRef(null), C = G(t, v), M = it(c), [i, p] = ot({
|
|
447
|
-
prop: u,
|
|
448
|
-
defaultProp: s ?? null,
|
|
449
|
-
onChange: h,
|
|
450
|
-
caller: fe
|
|
451
|
-
}), [g, E] = o.useState(!1), w = ne(m), R = Rt(n), y = o.useRef(!1), [_, I] = o.useState(0);
|
|
452
|
-
return o.useEffect(() => {
|
|
453
|
-
const P = v.current;
|
|
454
|
-
if (P)
|
|
455
|
-
return P.addEventListener(Ae, w), () => P.removeEventListener(Ae, w);
|
|
456
|
-
}, [w]), /* @__PURE__ */ l(
|
|
457
|
-
dr,
|
|
458
|
-
{
|
|
459
|
-
scope: n,
|
|
460
|
-
orientation: r,
|
|
461
|
-
dir: M,
|
|
462
|
-
loop: a,
|
|
463
|
-
currentTabStopId: i,
|
|
464
|
-
onItemFocus: o.useCallback(
|
|
465
|
-
(P) => p(P),
|
|
466
|
-
[p]
|
|
467
|
-
),
|
|
468
|
-
onItemShiftTab: o.useCallback(() => E(!0), []),
|
|
469
|
-
onFocusableItemAdd: o.useCallback(
|
|
470
|
-
() => I((P) => P + 1),
|
|
471
|
-
[]
|
|
472
|
-
),
|
|
473
|
-
onFocusableItemRemove: o.useCallback(
|
|
474
|
-
() => I((P) => P - 1),
|
|
475
|
-
[]
|
|
476
|
-
),
|
|
477
|
-
children: /* @__PURE__ */ l(
|
|
478
|
-
D.div,
|
|
479
|
-
{
|
|
480
|
-
tabIndex: g || _ === 0 ? -1 : 0,
|
|
481
|
-
"data-orientation": r,
|
|
482
|
-
...d,
|
|
483
|
-
ref: C,
|
|
484
|
-
style: { outline: "none", ...e.style },
|
|
485
|
-
onMouseDown: S(e.onMouseDown, () => {
|
|
486
|
-
y.current = !0;
|
|
487
|
-
}),
|
|
488
|
-
onFocus: S(e.onFocus, (P) => {
|
|
489
|
-
const k = !y.current;
|
|
490
|
-
if (P.target === P.currentTarget && k && !g) {
|
|
491
|
-
const U = new CustomEvent(Ae, ir);
|
|
492
|
-
if (P.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
493
|
-
const Y = R().filter((L) => L.focusable), W = Y.find((L) => L.active), $ = Y.find((L) => L.id === i), q = [W, $, ...Y].filter(
|
|
494
|
-
Boolean
|
|
495
|
-
).map((L) => L.ref.current);
|
|
496
|
-
Pt(q, f);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
y.current = !1;
|
|
500
|
-
}),
|
|
501
|
-
onBlur: S(e.onBlur, () => E(!1))
|
|
502
|
-
}
|
|
503
|
-
)
|
|
504
|
-
}
|
|
505
|
-
);
|
|
506
|
-
}), yt = "RovingFocusGroupItem", _t = o.forwardRef(
|
|
507
|
-
(e, t) => {
|
|
508
|
-
const {
|
|
509
|
-
__scopeRovingFocusGroup: n,
|
|
510
|
-
focusable: r = !0,
|
|
511
|
-
active: a = !1,
|
|
512
|
-
tabStopId: c,
|
|
513
|
-
children: u,
|
|
514
|
-
...s
|
|
515
|
-
} = e, h = De(), m = c || h, f = fr(yt, n), d = f.currentTabStopId === m, v = Rt(n), { onFocusableItemAdd: C, onFocusableItemRemove: M, currentTabStopId: i } = f;
|
|
516
|
-
return o.useEffect(() => {
|
|
517
|
-
if (r)
|
|
518
|
-
return C(), () => M();
|
|
519
|
-
}, [r, C, M]), /* @__PURE__ */ l(
|
|
520
|
-
Oe.ItemSlot,
|
|
521
|
-
{
|
|
522
|
-
scope: n,
|
|
523
|
-
id: m,
|
|
524
|
-
focusable: r,
|
|
525
|
-
active: a,
|
|
526
|
-
children: /* @__PURE__ */ l(
|
|
527
|
-
D.span,
|
|
528
|
-
{
|
|
529
|
-
tabIndex: d ? 0 : -1,
|
|
530
|
-
"data-orientation": f.orientation,
|
|
531
|
-
...s,
|
|
532
|
-
ref: t,
|
|
533
|
-
onMouseDown: S(e.onMouseDown, (p) => {
|
|
534
|
-
r ? f.onItemFocus(m) : p.preventDefault();
|
|
535
|
-
}),
|
|
536
|
-
onFocus: S(e.onFocus, () => f.onItemFocus(m)),
|
|
537
|
-
onKeyDown: S(e.onKeyDown, (p) => {
|
|
538
|
-
if (p.key === "Tab" && p.shiftKey) {
|
|
539
|
-
f.onItemShiftTab();
|
|
540
|
-
return;
|
|
541
|
-
}
|
|
542
|
-
if (p.target !== p.currentTarget)
|
|
543
|
-
return;
|
|
544
|
-
const g = hr(p, f.orientation, f.dir);
|
|
545
|
-
if (g !== void 0) {
|
|
546
|
-
if (p.metaKey || p.ctrlKey || p.altKey || p.shiftKey)
|
|
547
|
-
return;
|
|
548
|
-
p.preventDefault();
|
|
549
|
-
let w = v().filter((R) => R.focusable).map((R) => R.ref.current);
|
|
550
|
-
if (g === "last")
|
|
551
|
-
w.reverse();
|
|
552
|
-
else if (g === "prev" || g === "next") {
|
|
553
|
-
g === "prev" && w.reverse();
|
|
554
|
-
const R = w.indexOf(p.currentTarget);
|
|
555
|
-
w = f.loop ? gr(w, R + 1) : w.slice(R + 1);
|
|
556
|
-
}
|
|
557
|
-
setTimeout(() => Pt(w));
|
|
558
|
-
}
|
|
559
|
-
}),
|
|
560
|
-
children: typeof u == "function" ? u({ isCurrentTabStop: d, hasTabStop: i != null }) : u
|
|
561
|
-
}
|
|
562
|
-
)
|
|
563
|
-
}
|
|
564
|
-
);
|
|
565
|
-
}
|
|
566
|
-
);
|
|
567
|
-
_t.displayName = yt;
|
|
568
|
-
var mr = {
|
|
569
|
-
ArrowLeft: "prev",
|
|
570
|
-
ArrowUp: "prev",
|
|
571
|
-
ArrowRight: "next",
|
|
572
|
-
ArrowDown: "next",
|
|
573
|
-
PageUp: "first",
|
|
574
|
-
Home: "first",
|
|
575
|
-
PageDown: "last",
|
|
576
|
-
End: "last"
|
|
577
|
-
};
|
|
578
|
-
function vr(e, t) {
|
|
579
|
-
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
580
|
-
}
|
|
581
|
-
function hr(e, t, n) {
|
|
582
|
-
const r = vr(e.key, n);
|
|
583
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
584
|
-
return mr[r];
|
|
585
|
-
}
|
|
586
|
-
function Pt(e, t = !1) {
|
|
587
|
-
const n = document.activeElement;
|
|
588
|
-
for (const r of e)
|
|
589
|
-
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n))
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
function gr(e, t) {
|
|
593
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
594
|
-
}
|
|
595
|
-
var wr = St, Cr = _t, It = xn(), xe = function() {
|
|
596
|
-
}, Re = o.forwardRef(function(e, t) {
|
|
597
|
-
var n = o.useRef(null), r = o.useState({
|
|
598
|
-
onScrollCapture: xe,
|
|
599
|
-
onWheelCapture: xe,
|
|
600
|
-
onTouchMoveCapture: xe
|
|
601
|
-
}), a = r[0], c = r[1], u = e.forwardProps, s = e.children, h = e.className, m = e.removeScrollBar, f = e.enabled, d = e.shards, v = e.sideCar, C = e.noRelative, M = e.noIsolation, i = e.inert, p = e.allowPinchZoom, g = e.as, E = g === void 0 ? "div" : g, w = e.gapMode, R = Tn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), y = v, _ = Nn([n, t]), I = te(te({}, R), a);
|
|
602
|
-
return o.createElement(
|
|
603
|
-
o.Fragment,
|
|
604
|
-
null,
|
|
605
|
-
f && o.createElement(y, { sideCar: It, removeScrollBar: m, shards: d, noRelative: C, noIsolation: M, inert: i, setCallbacks: c, allowPinchZoom: !!p, lockRef: n, gapMode: w }),
|
|
606
|
-
u ? o.cloneElement(o.Children.only(s), te(te({}, I), { ref: _ })) : o.createElement(E, te({}, I, { className: h, ref: _ }), s)
|
|
607
|
-
);
|
|
608
|
-
});
|
|
609
|
-
Re.defaultProps = {
|
|
610
|
-
enabled: !0,
|
|
611
|
-
removeScrollBar: !0,
|
|
612
|
-
inert: !1
|
|
613
|
-
};
|
|
614
|
-
Re.classNames = {
|
|
615
|
-
fullWidth: Dn,
|
|
616
|
-
zeroRight: On
|
|
617
|
-
};
|
|
618
|
-
var Fe = !1;
|
|
619
|
-
if (typeof window < "u")
|
|
620
|
-
try {
|
|
621
|
-
var ge = Object.defineProperty({}, "passive", {
|
|
622
|
-
get: function() {
|
|
623
|
-
return Fe = !0, !0;
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
window.addEventListener("test", ge, ge), window.removeEventListener("test", ge, ge);
|
|
627
|
-
} catch {
|
|
628
|
-
Fe = !1;
|
|
629
|
-
}
|
|
630
|
-
var J = Fe ? { passive: !1 } : !1, Mr = function(e) {
|
|
631
|
-
return e.tagName === "TEXTAREA";
|
|
632
|
-
}, At = function(e, t) {
|
|
633
|
-
if (!(e instanceof Element))
|
|
634
|
-
return !1;
|
|
635
|
-
var n = window.getComputedStyle(e);
|
|
636
|
-
return (
|
|
637
|
-
// not-not-scrollable
|
|
638
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
639
|
-
!(n.overflowY === n.overflowX && !Mr(e) && n[t] === "visible")
|
|
640
|
-
);
|
|
641
|
-
}, Er = function(e) {
|
|
642
|
-
return At(e, "overflowY");
|
|
643
|
-
}, Rr = function(e) {
|
|
644
|
-
return At(e, "overflowX");
|
|
645
|
-
}, et = function(e, t) {
|
|
646
|
-
var n = t.ownerDocument, r = t;
|
|
647
|
-
do {
|
|
648
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
649
|
-
var a = xt(e, r);
|
|
650
|
-
if (a) {
|
|
651
|
-
var c = Tt(e, r), u = c[1], s = c[2];
|
|
652
|
-
if (u > s)
|
|
653
|
-
return !0;
|
|
654
|
-
}
|
|
655
|
-
r = r.parentNode;
|
|
656
|
-
} while (r && r !== n.body);
|
|
657
|
-
return !1;
|
|
658
|
-
}, br = function(e) {
|
|
659
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
660
|
-
return [
|
|
661
|
-
t,
|
|
662
|
-
n,
|
|
663
|
-
r
|
|
664
|
-
];
|
|
665
|
-
}, Sr = function(e) {
|
|
666
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
667
|
-
return [
|
|
668
|
-
t,
|
|
669
|
-
n,
|
|
670
|
-
r
|
|
671
|
-
];
|
|
672
|
-
}, xt = function(e, t) {
|
|
673
|
-
return e === "v" ? Er(t) : Rr(t);
|
|
674
|
-
}, Tt = function(e, t) {
|
|
675
|
-
return e === "v" ? br(t) : Sr(t);
|
|
676
|
-
}, yr = function(e, t) {
|
|
677
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
678
|
-
}, _r = function(e, t, n, r, a) {
|
|
679
|
-
var c = yr(e, window.getComputedStyle(t).direction), u = c * r, s = n.target, h = t.contains(s), m = !1, f = u > 0, d = 0, v = 0;
|
|
680
|
-
do {
|
|
681
|
-
if (!s)
|
|
682
|
-
break;
|
|
683
|
-
var C = Tt(e, s), M = C[0], i = C[1], p = C[2], g = i - p - c * M;
|
|
684
|
-
(M || g) && xt(e, s) && (d += g, v += M);
|
|
685
|
-
var E = s.parentNode;
|
|
686
|
-
s = E && E.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? E.host : E;
|
|
687
|
-
} while (
|
|
688
|
-
// portaled content
|
|
689
|
-
!h && s !== document.body || // self content
|
|
690
|
-
h && (t.contains(s) || t === s)
|
|
691
|
-
);
|
|
692
|
-
return (f && (a && Math.abs(d) < 1 || !a && u > d) || !f && (a && Math.abs(v) < 1 || !a && -u > v)) && (m = !0), m;
|
|
693
|
-
}, we = function(e) {
|
|
694
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
695
|
-
}, tt = function(e) {
|
|
696
|
-
return [e.deltaX, e.deltaY];
|
|
697
|
-
}, nt = function(e) {
|
|
698
|
-
return e && "current" in e ? e.current : e;
|
|
699
|
-
}, Pr = function(e, t) {
|
|
700
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
701
|
-
}, Ir = function(e) {
|
|
702
|
-
return `
|
|
703
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
704
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
705
|
-
`);
|
|
706
|
-
}, Ar = 0, ee = [];
|
|
707
|
-
function xr(e) {
|
|
708
|
-
var t = o.useRef([]), n = o.useRef([0, 0]), r = o.useRef(), a = o.useState(Ar++)[0], c = o.useState(Fn)[0], u = o.useRef(e);
|
|
709
|
-
o.useEffect(function() {
|
|
710
|
-
u.current = e;
|
|
711
|
-
}, [e]), o.useEffect(function() {
|
|
712
|
-
if (e.inert) {
|
|
713
|
-
document.body.classList.add("block-interactivity-".concat(a));
|
|
714
|
-
var i = kn([e.lockRef.current], (e.shards || []).map(nt), !0).filter(Boolean);
|
|
715
|
-
return i.forEach(function(p) {
|
|
716
|
-
return p.classList.add("allow-interactivity-".concat(a));
|
|
717
|
-
}), function() {
|
|
718
|
-
document.body.classList.remove("block-interactivity-".concat(a)), i.forEach(function(p) {
|
|
719
|
-
return p.classList.remove("allow-interactivity-".concat(a));
|
|
720
|
-
});
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
724
|
-
var s = o.useCallback(function(i, p) {
|
|
725
|
-
if ("touches" in i && i.touches.length === 2 || i.type === "wheel" && i.ctrlKey)
|
|
726
|
-
return !u.current.allowPinchZoom;
|
|
727
|
-
var g = we(i), E = n.current, w = "deltaX" in i ? i.deltaX : E[0] - g[0], R = "deltaY" in i ? i.deltaY : E[1] - g[1], y, _ = i.target, I = Math.abs(w) > Math.abs(R) ? "h" : "v";
|
|
728
|
-
if ("touches" in i && I === "h" && _.type === "range")
|
|
729
|
-
return !1;
|
|
730
|
-
var P = et(I, _);
|
|
731
|
-
if (!P)
|
|
732
|
-
return !0;
|
|
733
|
-
if (P ? y = I : (y = I === "v" ? "h" : "v", P = et(I, _)), !P)
|
|
734
|
-
return !1;
|
|
735
|
-
if (!r.current && "changedTouches" in i && (w || R) && (r.current = y), !y)
|
|
736
|
-
return !0;
|
|
737
|
-
var k = r.current || y;
|
|
738
|
-
return _r(k, p, i, k === "h" ? w : R, !0);
|
|
739
|
-
}, []), h = o.useCallback(function(i) {
|
|
740
|
-
var p = i;
|
|
741
|
-
if (!(!ee.length || ee[ee.length - 1] !== c)) {
|
|
742
|
-
var g = "deltaY" in p ? tt(p) : we(p), E = t.current.filter(function(y) {
|
|
743
|
-
return y.name === p.type && (y.target === p.target || p.target === y.shadowParent) && Pr(y.delta, g);
|
|
744
|
-
})[0];
|
|
745
|
-
if (E && E.should) {
|
|
746
|
-
p.cancelable && p.preventDefault();
|
|
747
|
-
return;
|
|
748
|
-
}
|
|
749
|
-
if (!E) {
|
|
750
|
-
var w = (u.current.shards || []).map(nt).filter(Boolean).filter(function(y) {
|
|
751
|
-
return y.contains(p.target);
|
|
752
|
-
}), R = w.length > 0 ? s(p, w[0]) : !u.current.noIsolation;
|
|
753
|
-
R && p.cancelable && p.preventDefault();
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}, []), m = o.useCallback(function(i, p, g, E) {
|
|
757
|
-
var w = { name: i, delta: p, target: g, should: E, shadowParent: Tr(g) };
|
|
758
|
-
t.current.push(w), setTimeout(function() {
|
|
759
|
-
t.current = t.current.filter(function(R) {
|
|
760
|
-
return R !== w;
|
|
761
|
-
});
|
|
762
|
-
}, 1);
|
|
763
|
-
}, []), f = o.useCallback(function(i) {
|
|
764
|
-
n.current = we(i), r.current = void 0;
|
|
765
|
-
}, []), d = o.useCallback(function(i) {
|
|
766
|
-
m(i.type, tt(i), i.target, s(i, e.lockRef.current));
|
|
767
|
-
}, []), v = o.useCallback(function(i) {
|
|
768
|
-
m(i.type, we(i), i.target, s(i, e.lockRef.current));
|
|
769
|
-
}, []);
|
|
770
|
-
o.useEffect(function() {
|
|
771
|
-
return ee.push(c), e.setCallbacks({
|
|
772
|
-
onScrollCapture: d,
|
|
773
|
-
onWheelCapture: d,
|
|
774
|
-
onTouchMoveCapture: v
|
|
775
|
-
}), document.addEventListener("wheel", h, J), document.addEventListener("touchmove", h, J), document.addEventListener("touchstart", f, J), function() {
|
|
776
|
-
ee = ee.filter(function(i) {
|
|
777
|
-
return i !== c;
|
|
778
|
-
}), document.removeEventListener("wheel", h, J), document.removeEventListener("touchmove", h, J), document.removeEventListener("touchstart", f, J);
|
|
779
|
-
};
|
|
780
|
-
}, []);
|
|
781
|
-
var C = e.removeScrollBar, M = e.inert;
|
|
782
|
-
return o.createElement(
|
|
783
|
-
o.Fragment,
|
|
784
|
-
null,
|
|
785
|
-
M ? o.createElement(c, { styles: Ir(a) }) : null,
|
|
786
|
-
C ? o.createElement(Ln, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
787
|
-
);
|
|
788
|
-
}
|
|
789
|
-
function Tr(e) {
|
|
790
|
-
for (var t = null; e !== null; )
|
|
791
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
792
|
-
return t;
|
|
793
|
-
}
|
|
794
|
-
const Nr = Gn(It, xr);
|
|
795
|
-
var Nt = o.forwardRef(function(e, t) {
|
|
796
|
-
return o.createElement(Re, te({}, e, { ref: t, sideCar: Nr }));
|
|
797
|
-
});
|
|
798
|
-
Nt.classNames = Re.classNames;
|
|
799
|
-
const Dr = Nt;
|
|
800
|
-
var ke = ["Enter", " "], Or = ["ArrowDown", "PageUp", "Home"], Dt = ["ArrowUp", "PageDown", "End"], Fr = [...Or, ...Dt], kr = {
|
|
801
|
-
ltr: [...ke, "ArrowRight"],
|
|
802
|
-
rtl: [...ke, "ArrowLeft"]
|
|
803
|
-
}, Lr = {
|
|
804
|
-
ltr: ["ArrowLeft"],
|
|
805
|
-
rtl: ["ArrowRight"]
|
|
806
|
-
}, pe = "Menu", [ue, Gr, Kr] = st(pe), [j, Ot] = de(pe, [
|
|
807
|
-
Kr,
|
|
808
|
-
pt,
|
|
809
|
-
bt
|
|
810
|
-
]), be = pt(), Ft = bt(), [Ur, z] = j(pe), [$r, me] = j(pe), kt = (e) => {
|
|
811
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: c, modal: u = !0 } = e, s = be(t), [h, m] = o.useState(null), f = o.useRef(!1), d = ne(c), v = it(a);
|
|
812
|
-
return o.useEffect(() => {
|
|
813
|
-
const C = () => {
|
|
814
|
-
f.current = !0, document.addEventListener("pointerdown", M, { capture: !0, once: !0 }), document.addEventListener("pointermove", M, { capture: !0, once: !0 });
|
|
815
|
-
}, M = () => f.current = !1;
|
|
816
|
-
return document.addEventListener("keydown", C, { capture: !0 }), () => {
|
|
817
|
-
document.removeEventListener("keydown", C, { capture: !0 }), document.removeEventListener("pointerdown", M, { capture: !0 }), document.removeEventListener("pointermove", M, { capture: !0 });
|
|
818
|
-
};
|
|
819
|
-
}, []), /* @__PURE__ */ l(or, { ...s, children: /* @__PURE__ */ l(
|
|
820
|
-
Ur,
|
|
821
|
-
{
|
|
822
|
-
scope: t,
|
|
823
|
-
open: n,
|
|
824
|
-
onOpenChange: d,
|
|
825
|
-
content: h,
|
|
826
|
-
onContentChange: m,
|
|
827
|
-
children: /* @__PURE__ */ l(
|
|
828
|
-
$r,
|
|
829
|
-
{
|
|
830
|
-
scope: t,
|
|
831
|
-
onClose: o.useCallback(() => d(!1), [d]),
|
|
832
|
-
isUsingKeyboardRef: f,
|
|
833
|
-
dir: v,
|
|
834
|
-
modal: u,
|
|
835
|
-
children: r
|
|
836
|
-
}
|
|
837
|
-
)
|
|
838
|
-
}
|
|
839
|
-
) });
|
|
840
|
-
};
|
|
841
|
-
kt.displayName = pe;
|
|
842
|
-
var Br = "MenuAnchor", Ke = o.forwardRef(
|
|
843
|
-
(e, t) => {
|
|
844
|
-
const { __scopeMenu: n, ...r } = e, a = be(n);
|
|
845
|
-
return /* @__PURE__ */ l(ar, { ...a, ...r, ref: t });
|
|
846
|
-
}
|
|
847
|
-
);
|
|
848
|
-
Ke.displayName = Br;
|
|
849
|
-
var Ue = "MenuPortal", [Yr, Lt] = j(Ue, {
|
|
850
|
-
forceMount: void 0
|
|
851
|
-
}), Gt = (e) => {
|
|
852
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, c = z(Ue, t);
|
|
853
|
-
return /* @__PURE__ */ l(Yr, { scope: t, forceMount: n, children: /* @__PURE__ */ l(Ee, { present: n || c.open, children: /* @__PURE__ */ l(ct, { asChild: !0, container: a, children: r }) }) });
|
|
854
|
-
};
|
|
855
|
-
Gt.displayName = Ue;
|
|
856
|
-
var F = "MenuContent", [Hr, $e] = j(F), Kt = o.forwardRef(
|
|
857
|
-
(e, t) => {
|
|
858
|
-
const n = Lt(F, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, c = z(F, e.__scopeMenu), u = me(F, e.__scopeMenu);
|
|
859
|
-
return /* @__PURE__ */ l(ue.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(Ee, { present: r || c.open, children: /* @__PURE__ */ l(ue.Slot, { scope: e.__scopeMenu, children: u.modal ? /* @__PURE__ */ l(Wr, { ...a, ref: t }) : /* @__PURE__ */ l(Xr, { ...a, ref: t }) }) }) });
|
|
860
|
-
}
|
|
861
|
-
), Wr = o.forwardRef(
|
|
862
|
-
(e, t) => {
|
|
863
|
-
const n = z(F, e.__scopeMenu), r = o.useRef(null), a = G(t, r);
|
|
864
|
-
return o.useEffect(() => {
|
|
865
|
-
const c = r.current;
|
|
866
|
-
if (c)
|
|
867
|
-
return Kn(c);
|
|
868
|
-
}, []), /* @__PURE__ */ l(
|
|
869
|
-
Be,
|
|
870
|
-
{
|
|
871
|
-
...e,
|
|
872
|
-
ref: a,
|
|
873
|
-
trapFocus: n.open,
|
|
874
|
-
disableOutsidePointerEvents: n.open,
|
|
875
|
-
disableOutsideScroll: !0,
|
|
876
|
-
onFocusOutside: S(
|
|
877
|
-
e.onFocusOutside,
|
|
878
|
-
(c) => c.preventDefault(),
|
|
879
|
-
{ checkForDefaultPrevented: !1 }
|
|
880
|
-
),
|
|
881
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
882
|
-
}
|
|
883
|
-
);
|
|
884
|
-
}
|
|
885
|
-
), Xr = o.forwardRef((e, t) => {
|
|
886
|
-
const n = z(F, e.__scopeMenu);
|
|
887
|
-
return /* @__PURE__ */ l(
|
|
888
|
-
Be,
|
|
889
|
-
{
|
|
890
|
-
...e,
|
|
891
|
-
ref: t,
|
|
892
|
-
trapFocus: !1,
|
|
893
|
-
disableOutsidePointerEvents: !1,
|
|
894
|
-
disableOutsideScroll: !1,
|
|
895
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
896
|
-
}
|
|
897
|
-
);
|
|
898
|
-
}), Vr = Ne("MenuContent.ScrollLock"), Be = o.forwardRef(
|
|
899
|
-
(e, t) => {
|
|
900
|
-
const {
|
|
901
|
-
__scopeMenu: n,
|
|
902
|
-
loop: r = !1,
|
|
903
|
-
trapFocus: a,
|
|
904
|
-
onOpenAutoFocus: c,
|
|
905
|
-
onCloseAutoFocus: u,
|
|
906
|
-
disableOutsidePointerEvents: s,
|
|
907
|
-
onEntryFocus: h,
|
|
908
|
-
onEscapeKeyDown: m,
|
|
909
|
-
onPointerDownOutside: f,
|
|
910
|
-
onFocusOutside: d,
|
|
911
|
-
onInteractOutside: v,
|
|
912
|
-
onDismiss: C,
|
|
913
|
-
disableOutsideScroll: M,
|
|
914
|
-
...i
|
|
915
|
-
} = e, p = z(F, n), g = me(F, n), E = be(n), w = Ft(n), R = Gr(n), [y, _] = o.useState(null), I = o.useRef(null), P = G(t, I, p.onContentChange), k = o.useRef(0), U = o.useRef(""), Y = o.useRef(0), W = o.useRef(null), $ = o.useRef("right"), Z = o.useRef(0), q = M ? Dr : o.Fragment, L = M ? { as: Vr, allowPinchZoom: !0 } : void 0, Q = (b) => {
|
|
916
|
-
var B, ae;
|
|
917
|
-
const T = U.current + b, A = R().filter((O) => !O.disabled), K = document.activeElement, re = (B = A.find((O) => O.ref.current === K)) == null ? void 0 : B.textValue, oe = A.map((O) => O.textValue), ve = ao(oe, T, re), X = (ae = A.find((O) => O.textValue === ve)) == null ? void 0 : ae.ref.current;
|
|
918
|
-
(function O(ce) {
|
|
919
|
-
U.current = ce, window.clearTimeout(k.current), ce !== "" && (k.current = window.setTimeout(() => O(""), 1e3));
|
|
920
|
-
})(T), X && setTimeout(() => X.focus());
|
|
921
|
-
};
|
|
922
|
-
o.useEffect(() => () => window.clearTimeout(k.current), []), Bn();
|
|
923
|
-
const N = o.useCallback((b) => {
|
|
924
|
-
var A, K;
|
|
925
|
-
return $.current === ((A = W.current) == null ? void 0 : A.side) && so(b, (K = W.current) == null ? void 0 : K.area);
|
|
926
|
-
}, []);
|
|
927
|
-
return /* @__PURE__ */ l(
|
|
928
|
-
Hr,
|
|
929
|
-
{
|
|
930
|
-
scope: n,
|
|
931
|
-
searchRef: U,
|
|
932
|
-
onItemEnter: o.useCallback(
|
|
933
|
-
(b) => {
|
|
934
|
-
N(b) && b.preventDefault();
|
|
935
|
-
},
|
|
936
|
-
[N]
|
|
937
|
-
),
|
|
938
|
-
onItemLeave: o.useCallback(
|
|
939
|
-
(b) => {
|
|
940
|
-
var T;
|
|
941
|
-
N(b) || ((T = I.current) == null || T.focus(), _(null));
|
|
942
|
-
},
|
|
943
|
-
[N]
|
|
944
|
-
),
|
|
945
|
-
onTriggerLeave: o.useCallback(
|
|
946
|
-
(b) => {
|
|
947
|
-
N(b) && b.preventDefault();
|
|
948
|
-
},
|
|
949
|
-
[N]
|
|
950
|
-
),
|
|
951
|
-
pointerGraceTimerRef: Y,
|
|
952
|
-
onPointerGraceIntentChange: o.useCallback((b) => {
|
|
953
|
-
W.current = b;
|
|
954
|
-
}, []),
|
|
955
|
-
children: /* @__PURE__ */ l(q, { ...L, children: /* @__PURE__ */ l(
|
|
956
|
-
ut,
|
|
957
|
-
{
|
|
958
|
-
asChild: !0,
|
|
959
|
-
trapped: a,
|
|
960
|
-
onMountAutoFocus: S(c, (b) => {
|
|
961
|
-
var T;
|
|
962
|
-
b.preventDefault(), (T = I.current) == null || T.focus({ preventScroll: !0 });
|
|
963
|
-
}),
|
|
964
|
-
onUnmountAutoFocus: u,
|
|
965
|
-
children: /* @__PURE__ */ l(
|
|
966
|
-
Cn,
|
|
967
|
-
{
|
|
968
|
-
asChild: !0,
|
|
969
|
-
disableOutsidePointerEvents: s,
|
|
970
|
-
onEscapeKeyDown: m,
|
|
971
|
-
onPointerDownOutside: f,
|
|
972
|
-
onFocusOutside: d,
|
|
973
|
-
onInteractOutside: v,
|
|
974
|
-
onDismiss: C,
|
|
975
|
-
children: /* @__PURE__ */ l(
|
|
976
|
-
wr,
|
|
977
|
-
{
|
|
978
|
-
asChild: !0,
|
|
979
|
-
...w,
|
|
980
|
-
dir: g.dir,
|
|
981
|
-
orientation: "vertical",
|
|
982
|
-
loop: r,
|
|
983
|
-
currentTabStopId: y,
|
|
984
|
-
onCurrentTabStopIdChange: _,
|
|
985
|
-
onEntryFocus: S(h, (b) => {
|
|
986
|
-
g.isUsingKeyboardRef.current || b.preventDefault();
|
|
987
|
-
}),
|
|
988
|
-
preventScrollOnEntryFocus: !0,
|
|
989
|
-
children: /* @__PURE__ */ l(
|
|
990
|
-
cr,
|
|
991
|
-
{
|
|
992
|
-
role: "menu",
|
|
993
|
-
"aria-orientation": "vertical",
|
|
994
|
-
"data-state": tn(p.open),
|
|
995
|
-
"data-radix-menu-content": "",
|
|
996
|
-
dir: g.dir,
|
|
997
|
-
...E,
|
|
998
|
-
...i,
|
|
999
|
-
ref: P,
|
|
1000
|
-
style: { outline: "none", ...i.style },
|
|
1001
|
-
onKeyDown: S(i.onKeyDown, (b) => {
|
|
1002
|
-
const A = b.target.closest("[data-radix-menu-content]") === b.currentTarget, K = b.ctrlKey || b.altKey || b.metaKey, re = b.key.length === 1;
|
|
1003
|
-
A && (b.key === "Tab" && b.preventDefault(), !K && re && Q(b.key));
|
|
1004
|
-
const oe = I.current;
|
|
1005
|
-
if (b.target !== oe || !Fr.includes(b.key))
|
|
1006
|
-
return;
|
|
1007
|
-
b.preventDefault();
|
|
1008
|
-
const X = R().filter((B) => !B.disabled).map((B) => B.ref.current);
|
|
1009
|
-
Dt.includes(b.key) && X.reverse(), ro(X);
|
|
1010
|
-
}),
|
|
1011
|
-
onBlur: S(e.onBlur, (b) => {
|
|
1012
|
-
b.currentTarget.contains(b.target) || (window.clearTimeout(k.current), U.current = "");
|
|
1013
|
-
}),
|
|
1014
|
-
onPointerMove: S(
|
|
1015
|
-
e.onPointerMove,
|
|
1016
|
-
le((b) => {
|
|
1017
|
-
const T = b.target, A = Z.current !== b.clientX;
|
|
1018
|
-
if (b.currentTarget.contains(T) && A) {
|
|
1019
|
-
const K = b.clientX > Z.current ? "right" : "left";
|
|
1020
|
-
$.current = K, Z.current = b.clientX;
|
|
1021
|
-
}
|
|
1022
|
-
})
|
|
1023
|
-
)
|
|
1024
|
-
}
|
|
1025
|
-
)
|
|
1026
|
-
}
|
|
1027
|
-
)
|
|
1028
|
-
}
|
|
1029
|
-
)
|
|
1030
|
-
}
|
|
1031
|
-
) })
|
|
1032
|
-
}
|
|
1033
|
-
);
|
|
1034
|
-
}
|
|
1035
|
-
);
|
|
1036
|
-
Kt.displayName = F;
|
|
1037
|
-
var jr = "MenuGroup", Ye = o.forwardRef(
|
|
1038
|
-
(e, t) => {
|
|
1039
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1040
|
-
return /* @__PURE__ */ l(D.div, { role: "group", ...r, ref: t });
|
|
1041
|
-
}
|
|
1042
|
-
);
|
|
1043
|
-
Ye.displayName = jr;
|
|
1044
|
-
var zr = "MenuLabel", Ut = o.forwardRef(
|
|
1045
|
-
(e, t) => {
|
|
1046
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1047
|
-
return /* @__PURE__ */ l(D.div, { ...r, ref: t });
|
|
1048
|
-
}
|
|
1049
|
-
);
|
|
1050
|
-
Ut.displayName = zr;
|
|
1051
|
-
var Ce = "MenuItem", rt = "menu.itemSelect", Se = o.forwardRef(
|
|
1052
|
-
(e, t) => {
|
|
1053
|
-
const { disabled: n = !1, onSelect: r, ...a } = e, c = o.useRef(null), u = me(Ce, e.__scopeMenu), s = $e(Ce, e.__scopeMenu), h = G(t, c), m = o.useRef(!1), f = () => {
|
|
1054
|
-
const d = c.current;
|
|
1055
|
-
if (!n && d) {
|
|
1056
|
-
const v = new CustomEvent(rt, { bubbles: !0, cancelable: !0 });
|
|
1057
|
-
d.addEventListener(rt, (C) => r == null ? void 0 : r(C), { once: !0 }), wn(d, v), v.defaultPrevented ? m.current = !1 : u.onClose();
|
|
1058
|
-
}
|
|
1059
|
-
};
|
|
1060
|
-
return /* @__PURE__ */ l(
|
|
1061
|
-
$t,
|
|
1062
|
-
{
|
|
1063
|
-
...a,
|
|
1064
|
-
ref: h,
|
|
1065
|
-
disabled: n,
|
|
1066
|
-
onClick: S(e.onClick, f),
|
|
1067
|
-
onPointerDown: (d) => {
|
|
1068
|
-
var v;
|
|
1069
|
-
(v = e.onPointerDown) == null || v.call(e, d), m.current = !0;
|
|
1070
|
-
},
|
|
1071
|
-
onPointerUp: S(e.onPointerUp, (d) => {
|
|
1072
|
-
var v;
|
|
1073
|
-
m.current || (v = d.currentTarget) == null || v.click();
|
|
1074
|
-
}),
|
|
1075
|
-
onKeyDown: S(e.onKeyDown, (d) => {
|
|
1076
|
-
const v = s.searchRef.current !== "";
|
|
1077
|
-
n || v && d.key === " " || ke.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1078
|
-
})
|
|
1079
|
-
}
|
|
1080
|
-
);
|
|
1081
|
-
}
|
|
1082
|
-
);
|
|
1083
|
-
Se.displayName = Ce;
|
|
1084
|
-
var $t = o.forwardRef(
|
|
1085
|
-
(e, t) => {
|
|
1086
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...c } = e, u = $e(Ce, n), s = Ft(n), h = o.useRef(null), m = G(t, h), [f, d] = o.useState(!1), [v, C] = o.useState("");
|
|
1087
|
-
return o.useEffect(() => {
|
|
1088
|
-
const M = h.current;
|
|
1089
|
-
M && C((M.textContent ?? "").trim());
|
|
1090
|
-
}, [c.children]), /* @__PURE__ */ l(
|
|
1091
|
-
ue.ItemSlot,
|
|
1092
|
-
{
|
|
1093
|
-
scope: n,
|
|
1094
|
-
disabled: r,
|
|
1095
|
-
textValue: a ?? v,
|
|
1096
|
-
children: /* @__PURE__ */ l(Cr, { asChild: !0, ...s, focusable: !r, children: /* @__PURE__ */ l(
|
|
1097
|
-
D.div,
|
|
1098
|
-
{
|
|
1099
|
-
role: "menuitem",
|
|
1100
|
-
"data-highlighted": f ? "" : void 0,
|
|
1101
|
-
"aria-disabled": r || void 0,
|
|
1102
|
-
"data-disabled": r ? "" : void 0,
|
|
1103
|
-
...c,
|
|
1104
|
-
ref: m,
|
|
1105
|
-
onPointerMove: S(
|
|
1106
|
-
e.onPointerMove,
|
|
1107
|
-
le((M) => {
|
|
1108
|
-
r ? u.onItemLeave(M) : (u.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
|
|
1109
|
-
})
|
|
1110
|
-
),
|
|
1111
|
-
onPointerLeave: S(
|
|
1112
|
-
e.onPointerLeave,
|
|
1113
|
-
le((M) => u.onItemLeave(M))
|
|
1114
|
-
),
|
|
1115
|
-
onFocus: S(e.onFocus, () => d(!0)),
|
|
1116
|
-
onBlur: S(e.onBlur, () => d(!1))
|
|
1117
|
-
}
|
|
1118
|
-
) })
|
|
1119
|
-
}
|
|
1120
|
-
);
|
|
1121
|
-
}
|
|
1122
|
-
), Zr = "MenuCheckboxItem", Bt = o.forwardRef(
|
|
1123
|
-
(e, t) => {
|
|
1124
|
-
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
1125
|
-
return /* @__PURE__ */ l(Vt, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ l(
|
|
1126
|
-
Se,
|
|
1127
|
-
{
|
|
1128
|
-
role: "menuitemcheckbox",
|
|
1129
|
-
"aria-checked": Me(n) ? "mixed" : n,
|
|
1130
|
-
...a,
|
|
1131
|
-
ref: t,
|
|
1132
|
-
"data-state": We(n),
|
|
1133
|
-
onSelect: S(
|
|
1134
|
-
a.onSelect,
|
|
1135
|
-
() => r == null ? void 0 : r(Me(n) ? !0 : !n),
|
|
1136
|
-
{ checkForDefaultPrevented: !1 }
|
|
1137
|
-
)
|
|
1138
|
-
}
|
|
1139
|
-
) });
|
|
1140
|
-
}
|
|
1141
|
-
);
|
|
1142
|
-
Bt.displayName = Zr;
|
|
1143
|
-
var Yt = "MenuRadioGroup", [qr, Qr] = j(
|
|
1144
|
-
Yt,
|
|
1145
|
-
{ value: void 0, onValueChange: () => {
|
|
1146
|
-
} }
|
|
1147
|
-
), Ht = o.forwardRef(
|
|
1148
|
-
(e, t) => {
|
|
1149
|
-
const { value: n, onValueChange: r, ...a } = e, c = ne(r);
|
|
1150
|
-
return /* @__PURE__ */ l(qr, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ l(Ye, { ...a, ref: t }) });
|
|
1151
|
-
}
|
|
1152
|
-
);
|
|
1153
|
-
Ht.displayName = Yt;
|
|
1154
|
-
var Wt = "MenuRadioItem", Xt = o.forwardRef(
|
|
1155
|
-
(e, t) => {
|
|
1156
|
-
const { value: n, ...r } = e, a = Qr(Wt, e.__scopeMenu), c = n === a.value;
|
|
1157
|
-
return /* @__PURE__ */ l(Vt, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ l(
|
|
1158
|
-
Se,
|
|
1159
|
-
{
|
|
1160
|
-
role: "menuitemradio",
|
|
1161
|
-
"aria-checked": c,
|
|
1162
|
-
...r,
|
|
1163
|
-
ref: t,
|
|
1164
|
-
"data-state": We(c),
|
|
1165
|
-
onSelect: S(
|
|
1166
|
-
r.onSelect,
|
|
1167
|
-
() => {
|
|
1168
|
-
var u;
|
|
1169
|
-
return (u = a.onValueChange) == null ? void 0 : u.call(a, n);
|
|
1170
|
-
},
|
|
1171
|
-
{ checkForDefaultPrevented: !1 }
|
|
1172
|
-
)
|
|
1173
|
-
}
|
|
1174
|
-
) });
|
|
1175
|
-
}
|
|
1176
|
-
);
|
|
1177
|
-
Xt.displayName = Wt;
|
|
1178
|
-
var He = "MenuItemIndicator", [Vt, Jr] = j(
|
|
1179
|
-
He,
|
|
1180
|
-
{ checked: !1 }
|
|
1181
|
-
), jt = o.forwardRef(
|
|
1182
|
-
(e, t) => {
|
|
1183
|
-
const { __scopeMenu: n, forceMount: r, ...a } = e, c = Jr(He, n);
|
|
1184
|
-
return /* @__PURE__ */ l(
|
|
1185
|
-
Ee,
|
|
1186
|
-
{
|
|
1187
|
-
present: r || Me(c.checked) || c.checked === !0,
|
|
1188
|
-
children: /* @__PURE__ */ l(
|
|
1189
|
-
D.span,
|
|
1190
|
-
{
|
|
1191
|
-
...a,
|
|
1192
|
-
ref: t,
|
|
1193
|
-
"data-state": We(c.checked)
|
|
1194
|
-
}
|
|
1195
|
-
)
|
|
1196
|
-
}
|
|
1197
|
-
);
|
|
1198
|
-
}
|
|
1199
|
-
);
|
|
1200
|
-
jt.displayName = He;
|
|
1201
|
-
var eo = "MenuSeparator", zt = o.forwardRef(
|
|
1202
|
-
(e, t) => {
|
|
1203
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1204
|
-
return /* @__PURE__ */ l(
|
|
1205
|
-
D.div,
|
|
1206
|
-
{
|
|
1207
|
-
role: "separator",
|
|
1208
|
-
"aria-orientation": "horizontal",
|
|
1209
|
-
...r,
|
|
1210
|
-
ref: t
|
|
1211
|
-
}
|
|
1212
|
-
);
|
|
1213
|
-
}
|
|
1214
|
-
);
|
|
1215
|
-
zt.displayName = eo;
|
|
1216
|
-
var to = "MenuArrow", Zt = o.forwardRef(
|
|
1217
|
-
(e, t) => {
|
|
1218
|
-
const { __scopeMenu: n, ...r } = e, a = be(n);
|
|
1219
|
-
return /* @__PURE__ */ l(sr, { ...a, ...r, ref: t });
|
|
1220
|
-
}
|
|
1221
|
-
);
|
|
1222
|
-
Zt.displayName = to;
|
|
1223
|
-
var no = "MenuSub", [Jo, qt] = j(no), ie = "MenuSubTrigger", Qt = o.forwardRef(
|
|
1224
|
-
(e, t) => {
|
|
1225
|
-
const n = z(ie, e.__scopeMenu), r = me(ie, e.__scopeMenu), a = qt(ie, e.__scopeMenu), c = $e(ie, e.__scopeMenu), u = o.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: h } = c, m = { __scopeMenu: e.__scopeMenu }, f = o.useCallback(() => {
|
|
1226
|
-
u.current && window.clearTimeout(u.current), u.current = null;
|
|
1227
|
-
}, []);
|
|
1228
|
-
return o.useEffect(() => f, [f]), o.useEffect(() => {
|
|
1229
|
-
const d = s.current;
|
|
1230
|
-
return () => {
|
|
1231
|
-
window.clearTimeout(d), h(null);
|
|
1232
|
-
};
|
|
1233
|
-
}, [s, h]), /* @__PURE__ */ l(Ke, { asChild: !0, ...m, children: /* @__PURE__ */ l(
|
|
1234
|
-
$t,
|
|
1235
|
-
{
|
|
1236
|
-
id: a.triggerId,
|
|
1237
|
-
"aria-haspopup": "menu",
|
|
1238
|
-
"aria-expanded": n.open,
|
|
1239
|
-
"aria-controls": a.contentId,
|
|
1240
|
-
"data-state": tn(n.open),
|
|
1241
|
-
...e,
|
|
1242
|
-
ref: at(t, a.onTriggerChange),
|
|
1243
|
-
onClick: (d) => {
|
|
1244
|
-
var v;
|
|
1245
|
-
(v = e.onClick) == null || v.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1246
|
-
},
|
|
1247
|
-
onPointerMove: S(
|
|
1248
|
-
e.onPointerMove,
|
|
1249
|
-
le((d) => {
|
|
1250
|
-
c.onItemEnter(d), !d.defaultPrevented && !e.disabled && !n.open && !u.current && (c.onPointerGraceIntentChange(null), u.current = window.setTimeout(() => {
|
|
1251
|
-
n.onOpenChange(!0), f();
|
|
1252
|
-
}, 100));
|
|
1253
|
-
})
|
|
1254
|
-
),
|
|
1255
|
-
onPointerLeave: S(
|
|
1256
|
-
e.onPointerLeave,
|
|
1257
|
-
le((d) => {
|
|
1258
|
-
var C, M;
|
|
1259
|
-
f();
|
|
1260
|
-
const v = (C = n.content) == null ? void 0 : C.getBoundingClientRect();
|
|
1261
|
-
if (v) {
|
|
1262
|
-
const i = (M = n.content) == null ? void 0 : M.dataset.side, p = i === "right", g = p ? -5 : 5, E = v[p ? "left" : "right"], w = v[p ? "right" : "left"];
|
|
1263
|
-
c.onPointerGraceIntentChange({
|
|
1264
|
-
area: [
|
|
1265
|
-
// Apply a bleed on clientX to ensure that our exit point is
|
|
1266
|
-
// consistently within polygon bounds
|
|
1267
|
-
{ x: d.clientX + g, y: d.clientY },
|
|
1268
|
-
{ x: E, y: v.top },
|
|
1269
|
-
{ x: w, y: v.top },
|
|
1270
|
-
{ x: w, y: v.bottom },
|
|
1271
|
-
{ x: E, y: v.bottom }
|
|
1272
|
-
],
|
|
1273
|
-
side: i
|
|
1274
|
-
}), window.clearTimeout(s.current), s.current = window.setTimeout(
|
|
1275
|
-
() => c.onPointerGraceIntentChange(null),
|
|
1276
|
-
300
|
|
1277
|
-
);
|
|
1278
|
-
} else {
|
|
1279
|
-
if (c.onTriggerLeave(d), d.defaultPrevented)
|
|
1280
|
-
return;
|
|
1281
|
-
c.onPointerGraceIntentChange(null);
|
|
1282
|
-
}
|
|
1283
|
-
})
|
|
1284
|
-
),
|
|
1285
|
-
onKeyDown: S(e.onKeyDown, (d) => {
|
|
1286
|
-
var C;
|
|
1287
|
-
const v = c.searchRef.current !== "";
|
|
1288
|
-
e.disabled || v && d.key === " " || kr[r.dir].includes(d.key) && (n.onOpenChange(!0), (C = n.content) == null || C.focus(), d.preventDefault());
|
|
1289
|
-
})
|
|
1290
|
-
}
|
|
1291
|
-
) });
|
|
1292
|
-
}
|
|
1293
|
-
);
|
|
1294
|
-
Qt.displayName = ie;
|
|
1295
|
-
var Jt = "MenuSubContent", en = o.forwardRef(
|
|
1296
|
-
(e, t) => {
|
|
1297
|
-
const n = Lt(F, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, c = z(F, e.__scopeMenu), u = me(F, e.__scopeMenu), s = qt(Jt, e.__scopeMenu), h = o.useRef(null), m = G(t, h);
|
|
1298
|
-
return /* @__PURE__ */ l(ue.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(Ee, { present: r || c.open, children: /* @__PURE__ */ l(ue.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(
|
|
1299
|
-
Be,
|
|
1300
|
-
{
|
|
1301
|
-
id: s.contentId,
|
|
1302
|
-
"aria-labelledby": s.triggerId,
|
|
1303
|
-
...a,
|
|
1304
|
-
ref: m,
|
|
1305
|
-
align: "start",
|
|
1306
|
-
side: u.dir === "rtl" ? "left" : "right",
|
|
1307
|
-
disableOutsidePointerEvents: !1,
|
|
1308
|
-
disableOutsideScroll: !1,
|
|
1309
|
-
trapFocus: !1,
|
|
1310
|
-
onOpenAutoFocus: (f) => {
|
|
1311
|
-
var d;
|
|
1312
|
-
u.isUsingKeyboardRef.current && ((d = h.current) == null || d.focus()), f.preventDefault();
|
|
1313
|
-
},
|
|
1314
|
-
onCloseAutoFocus: (f) => f.preventDefault(),
|
|
1315
|
-
onFocusOutside: S(e.onFocusOutside, (f) => {
|
|
1316
|
-
f.target !== s.trigger && c.onOpenChange(!1);
|
|
1317
|
-
}),
|
|
1318
|
-
onEscapeKeyDown: S(e.onEscapeKeyDown, (f) => {
|
|
1319
|
-
u.onClose(), f.preventDefault();
|
|
1320
|
-
}),
|
|
1321
|
-
onKeyDown: S(e.onKeyDown, (f) => {
|
|
1322
|
-
var C;
|
|
1323
|
-
const d = f.currentTarget.contains(f.target), v = Lr[u.dir].includes(f.key);
|
|
1324
|
-
d && v && (c.onOpenChange(!1), (C = s.trigger) == null || C.focus(), f.preventDefault());
|
|
1325
|
-
})
|
|
1326
|
-
}
|
|
1327
|
-
) }) }) });
|
|
1328
|
-
}
|
|
1329
|
-
);
|
|
1330
|
-
en.displayName = Jt;
|
|
1331
|
-
function tn(e) {
|
|
1332
|
-
return e ? "open" : "closed";
|
|
1333
|
-
}
|
|
1334
|
-
function Me(e) {
|
|
1335
|
-
return e === "indeterminate";
|
|
1336
|
-
}
|
|
1337
|
-
function We(e) {
|
|
1338
|
-
return Me(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1339
|
-
}
|
|
1340
|
-
function ro(e) {
|
|
1341
|
-
const t = document.activeElement;
|
|
1342
|
-
for (const n of e)
|
|
1343
|
-
if (n === t || (n.focus(), document.activeElement !== t))
|
|
1344
|
-
return;
|
|
1345
|
-
}
|
|
1346
|
-
function oo(e, t) {
|
|
1347
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1348
|
-
}
|
|
1349
|
-
function ao(e, t, n) {
|
|
1350
|
-
const a = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
1351
|
-
let u = oo(e, Math.max(c, 0));
|
|
1352
|
-
a.length === 1 && (u = u.filter((m) => m !== n));
|
|
1353
|
-
const h = u.find(
|
|
1354
|
-
(m) => m.toLowerCase().startsWith(a.toLowerCase())
|
|
1355
|
-
);
|
|
1356
|
-
return h !== n ? h : void 0;
|
|
1357
|
-
}
|
|
1358
|
-
function co(e, t) {
|
|
1359
|
-
const { x: n, y: r } = e;
|
|
1360
|
-
let a = !1;
|
|
1361
|
-
for (let c = 0, u = t.length - 1; c < t.length; u = c++) {
|
|
1362
|
-
const s = t[c], h = t[u], m = s.x, f = s.y, d = h.x, v = h.y;
|
|
1363
|
-
f > r != v > r && n < (d - m) * (r - f) / (v - f) + m && (a = !a);
|
|
1364
|
-
}
|
|
1365
|
-
return a;
|
|
1366
|
-
}
|
|
1367
|
-
function so(e, t) {
|
|
1368
|
-
if (!t)
|
|
1369
|
-
return !1;
|
|
1370
|
-
const n = { x: e.clientX, y: e.clientY };
|
|
1371
|
-
return co(n, t);
|
|
1372
|
-
}
|
|
1373
|
-
function le(e) {
|
|
1374
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1375
|
-
}
|
|
1376
|
-
var io = kt, uo = Ke, lo = Gt, fo = Kt, po = Ye, mo = Ut, vo = Se, ho = Bt, go = Ht, wo = Xt, Co = jt, Mo = zt, Eo = Zt, Ro = Qt, bo = en, ye = "DropdownMenu", [So, ea] = de(
|
|
1377
|
-
ye,
|
|
1378
|
-
[Ot]
|
|
1379
|
-
), x = Ot(), [yo, nn] = So(ye), rn = (e) => {
|
|
1380
|
-
const {
|
|
1381
|
-
__scopeDropdownMenu: t,
|
|
1382
|
-
children: n,
|
|
1383
|
-
dir: r,
|
|
1384
|
-
open: a,
|
|
1385
|
-
defaultOpen: c,
|
|
1386
|
-
onOpenChange: u,
|
|
1387
|
-
modal: s = !0
|
|
1388
|
-
} = e, h = x(t), m = o.useRef(null), [f, d] = ot({
|
|
1389
|
-
prop: a,
|
|
1390
|
-
defaultProp: c ?? !1,
|
|
1391
|
-
onChange: u,
|
|
1392
|
-
caller: ye
|
|
1393
|
-
});
|
|
1394
|
-
return /* @__PURE__ */ l(
|
|
1395
|
-
yo,
|
|
1396
|
-
{
|
|
1397
|
-
scope: t,
|
|
1398
|
-
triggerId: De(),
|
|
1399
|
-
triggerRef: m,
|
|
1400
|
-
contentId: De(),
|
|
1401
|
-
open: f,
|
|
1402
|
-
onOpenChange: d,
|
|
1403
|
-
onOpenToggle: o.useCallback(() => d((v) => !v), [d]),
|
|
1404
|
-
modal: s,
|
|
1405
|
-
children: /* @__PURE__ */ l(io, { ...h, open: f, onOpenChange: d, dir: r, modal: s, children: n })
|
|
1406
|
-
}
|
|
1407
|
-
);
|
|
1408
|
-
};
|
|
1409
|
-
rn.displayName = ye;
|
|
1410
|
-
var on = "DropdownMenuTrigger", an = o.forwardRef(
|
|
1411
|
-
(e, t) => {
|
|
1412
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, c = nn(on, n), u = x(n);
|
|
1413
|
-
return /* @__PURE__ */ l(uo, { asChild: !0, ...u, children: /* @__PURE__ */ l(
|
|
1414
|
-
D.button,
|
|
1415
|
-
{
|
|
1416
|
-
type: "button",
|
|
1417
|
-
id: c.triggerId,
|
|
1418
|
-
"aria-haspopup": "menu",
|
|
1419
|
-
"aria-expanded": c.open,
|
|
1420
|
-
"aria-controls": c.open ? c.contentId : void 0,
|
|
1421
|
-
"data-state": c.open ? "open" : "closed",
|
|
1422
|
-
"data-disabled": r ? "" : void 0,
|
|
1423
|
-
disabled: r,
|
|
1424
|
-
...a,
|
|
1425
|
-
ref: at(t, c.triggerRef),
|
|
1426
|
-
onPointerDown: S(e.onPointerDown, (s) => {
|
|
1427
|
-
!r && s.button === 0 && s.ctrlKey === !1 && (c.onOpenToggle(), c.open || s.preventDefault());
|
|
1428
|
-
}),
|
|
1429
|
-
onKeyDown: S(e.onKeyDown, (s) => {
|
|
1430
|
-
r || (["Enter", " "].includes(s.key) && c.onOpenToggle(), s.key === "ArrowDown" && c.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(s.key) && s.preventDefault());
|
|
1431
|
-
})
|
|
1432
|
-
}
|
|
1433
|
-
) });
|
|
1434
|
-
}
|
|
1435
|
-
);
|
|
1436
|
-
an.displayName = on;
|
|
1437
|
-
var _o = "DropdownMenuPortal", cn = (e) => {
|
|
1438
|
-
const { __scopeDropdownMenu: t, ...n } = e, r = x(t);
|
|
1439
|
-
return /* @__PURE__ */ l(lo, { ...r, ...n });
|
|
1440
|
-
};
|
|
1441
|
-
cn.displayName = _o;
|
|
1442
|
-
var sn = "DropdownMenuContent", un = o.forwardRef(
|
|
1443
|
-
(e, t) => {
|
|
1444
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = nn(sn, n), c = x(n), u = o.useRef(!1);
|
|
1445
|
-
return /* @__PURE__ */ l(
|
|
1446
|
-
fo,
|
|
1447
|
-
{
|
|
1448
|
-
id: a.contentId,
|
|
1449
|
-
"aria-labelledby": a.triggerId,
|
|
1450
|
-
...c,
|
|
1451
|
-
...r,
|
|
1452
|
-
ref: t,
|
|
1453
|
-
onCloseAutoFocus: S(e.onCloseAutoFocus, (s) => {
|
|
1454
|
-
var h;
|
|
1455
|
-
u.current || (h = a.triggerRef.current) == null || h.focus(), u.current = !1, s.preventDefault();
|
|
1456
|
-
}),
|
|
1457
|
-
onInteractOutside: S(e.onInteractOutside, (s) => {
|
|
1458
|
-
const h = s.detail.originalEvent, m = h.button === 0 && h.ctrlKey === !0, f = h.button === 2 || m;
|
|
1459
|
-
(!a.modal || f) && (u.current = !0);
|
|
1460
|
-
}),
|
|
1461
|
-
style: {
|
|
1462
|
-
...e.style,
|
|
1463
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1464
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1465
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1466
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1467
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
);
|
|
1471
|
-
}
|
|
1472
|
-
);
|
|
1473
|
-
un.displayName = sn;
|
|
1474
|
-
var Po = "DropdownMenuGroup", ln = o.forwardRef(
|
|
1475
|
-
(e, t) => {
|
|
1476
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1477
|
-
return /* @__PURE__ */ l(po, { ...a, ...r, ref: t });
|
|
1478
|
-
}
|
|
1479
|
-
);
|
|
1480
|
-
ln.displayName = Po;
|
|
1481
|
-
var Io = "DropdownMenuLabel", Ao = o.forwardRef(
|
|
1482
|
-
(e, t) => {
|
|
1483
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1484
|
-
return /* @__PURE__ */ l(mo, { ...a, ...r, ref: t });
|
|
1485
|
-
}
|
|
1486
|
-
);
|
|
1487
|
-
Ao.displayName = Io;
|
|
1488
|
-
var xo = "DropdownMenuItem", dn = o.forwardRef(
|
|
1489
|
-
(e, t) => {
|
|
1490
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1491
|
-
return /* @__PURE__ */ l(vo, { ...a, ...r, ref: t });
|
|
1492
|
-
}
|
|
1493
|
-
);
|
|
1494
|
-
dn.displayName = xo;
|
|
1495
|
-
var To = "DropdownMenuCheckboxItem", No = o.forwardRef((e, t) => {
|
|
1496
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1497
|
-
return /* @__PURE__ */ l(ho, { ...a, ...r, ref: t });
|
|
1498
|
-
});
|
|
1499
|
-
No.displayName = To;
|
|
1500
|
-
var Do = "DropdownMenuRadioGroup", Oo = o.forwardRef((e, t) => {
|
|
1501
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1502
|
-
return /* @__PURE__ */ l(go, { ...a, ...r, ref: t });
|
|
1503
|
-
});
|
|
1504
|
-
Oo.displayName = Do;
|
|
1505
|
-
var Fo = "DropdownMenuRadioItem", ko = o.forwardRef((e, t) => {
|
|
1506
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1507
|
-
return /* @__PURE__ */ l(wo, { ...a, ...r, ref: t });
|
|
1508
|
-
});
|
|
1509
|
-
ko.displayName = Fo;
|
|
1510
|
-
var Lo = "DropdownMenuItemIndicator", Go = o.forwardRef((e, t) => {
|
|
1511
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1512
|
-
return /* @__PURE__ */ l(Co, { ...a, ...r, ref: t });
|
|
1513
|
-
});
|
|
1514
|
-
Go.displayName = Lo;
|
|
1515
|
-
var Ko = "DropdownMenuSeparator", fn = o.forwardRef((e, t) => {
|
|
1516
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1517
|
-
return /* @__PURE__ */ l(Mo, { ...a, ...r, ref: t });
|
|
1518
|
-
});
|
|
1519
|
-
fn.displayName = Ko;
|
|
1520
|
-
var Uo = "DropdownMenuArrow", $o = o.forwardRef(
|
|
1521
|
-
(e, t) => {
|
|
1522
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1523
|
-
return /* @__PURE__ */ l(Eo, { ...a, ...r, ref: t });
|
|
1524
|
-
}
|
|
1525
|
-
);
|
|
1526
|
-
$o.displayName = Uo;
|
|
1527
|
-
var Bo = "DropdownMenuSubTrigger", Yo = o.forwardRef((e, t) => {
|
|
1528
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1529
|
-
return /* @__PURE__ */ l(Ro, { ...a, ...r, ref: t });
|
|
1530
|
-
});
|
|
1531
|
-
Yo.displayName = Bo;
|
|
1532
|
-
var Ho = "DropdownMenuSubContent", Wo = o.forwardRef((e, t) => {
|
|
1533
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1534
|
-
return /* @__PURE__ */ l(
|
|
1535
|
-
bo,
|
|
1536
|
-
{
|
|
1537
|
-
...a,
|
|
1538
|
-
...r,
|
|
1539
|
-
ref: t,
|
|
1540
|
-
style: {
|
|
1541
|
-
...e.style,
|
|
1542
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1543
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1544
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1545
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1546
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
);
|
|
1550
|
-
});
|
|
1551
|
-
Wo.displayName = Ho;
|
|
1552
|
-
var ta = rn, na = an, ra = cn, oa = un, aa = ln, ca = dn, sa = fn;
|
|
1553
|
-
export {
|
|
1554
|
-
oa as C,
|
|
1555
|
-
ut as F,
|
|
1556
|
-
aa as G,
|
|
1557
|
-
ca as I,
|
|
1558
|
-
ra as P,
|
|
1559
|
-
ta as R,
|
|
1560
|
-
sa as S,
|
|
1561
|
-
na as T,
|
|
1562
|
-
Dr as a,
|
|
1563
|
-
ct as b,
|
|
1564
|
-
Bn as u
|
|
1565
|
-
};
|