@pdf-viewer/react 1.9.0-beta.3 → 1.9.0-beta.4
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/RPLayout-5892502c.js +3494 -0
- package/dist/{SearchCloseButton-ddb9877e.js → SearchCloseButton-cbf182aa.js} +7 -6
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/RPLayout.css +1 -1
- package/dist/components/RPConfig.js +691 -673
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPPages.js +4 -5
- package/dist/components/layout/LayoutContainer.js +5 -5
- package/dist/components/layout/RPDefaultLayout.js +1 -1
- package/dist/components/layout/RPLayout.js +4 -5
- 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 +4 -5
- package/dist/components/layout/toolbar/DocumentProperties.js +23 -19
- 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 +5 -6
- 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 +35 -37
- package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
- package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
- package/dist/components/layout/toolbar/SearchTool.js +3 -4
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/ToolbarCustom.js +4 -5
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +4 -3
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/NextPageTool.js +5 -6
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +2 -2
- package/dist/components/layout/toolbar/tools/defaults/TopbarDefaultTools.js +1 -1
- package/dist/components/page/AnnotationLayer.js +4 -5
- package/dist/components/page/CanvasLayer.js +4 -5
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +4 -4
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +4 -5
- package/dist/components/page/TextLayer.js +4 -5
- package/dist/components/ui/Button.js +8 -8
- package/dist/components/ui/Checkbox.js +243 -120
- package/dist/components/ui/DropDown.js +16 -16
- package/dist/components/ui/Input.js +11 -11
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/RPTooltip.js +211 -426
- 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/index-00f8683a.js +1672 -0
- package/dist/index-5f66a29f.js +1681 -0
- package/dist/index-6b37f504.js +332 -0
- package/dist/main.js +1 -1
- package/dist/types/components/layout/LayoutContainer.d.ts +5 -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/Checkbox.d.ts +1 -0
- package/dist/types/components/ui/DropDown.d.ts +2 -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 +4 -5
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +4 -5
- package/dist/utils/hooks/usePresentPage.js +4 -5
- package/dist/utils/hooks/usePrint.js +4 -5
- package/dist/utils/hooks/useScrollToPage.js +4 -5
- package/dist/utils/hooks/useSearch.js +4 -5
- package/dist/utils/hooks/useThumbnail.js +4 -5
- package/dist/utils/hooks/useVirtualReactWindow.js +4 -5
- package/dist/utils/withRef.js +8 -0
- package/package.json +1 -1
- package/dist/Popover-1faa77f6.js +0 -1445
- package/dist/RPLayout-897cb09d.js +0 -3393
- package/dist/assets/Popover.css +0 -1
- package/dist/component-1da194e8.js +0 -337
- package/dist/components/ui/Popover.js +0 -6
- package/dist/floating-ui.react-dom-15b9b819.js +0 -1310
- package/dist/index-1cb41342.js +0 -307
- package/dist/index-7279fb4e.js +0 -1557
- package/dist/index-aa2d3884.js +0 -140
- package/dist/types/components/ui/Popover.d.ts +0 -9
package/dist/index-7279fb4e.js
DELETED
|
@@ -1,1557 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import V from "react";
|
|
3
|
-
import { b as xe, P as D, e as de, a as K, i as Te, u as ne, h as gn, f as ot, c as S, g as Me, j as at, d as wn } from "./index-1cb41342.js";
|
|
4
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
import { u as Ne, D as Cn } from "./index-aa2d3884.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-15b9b819.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 Kn, h as Gn } from "./component-1da194e8.js";
|
|
9
|
-
var $n = "Portal", ct = o.forwardRef((e, t) => {
|
|
10
|
-
var s;
|
|
11
|
-
const { container: n, ...r } = e, [a, c] = o.useState(!1);
|
|
12
|
-
xe(() => 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 = $n;
|
|
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 = (C) => {
|
|
22
|
-
const { scope: f, children: i } = C, w = V.useRef(null), h = V.useRef(/* @__PURE__ */ new Map()).current;
|
|
23
|
-
return /* @__PURE__ */ l(a, { scope: f, itemMap: h, collectionRef: w, children: i });
|
|
24
|
-
};
|
|
25
|
-
u.displayName = t;
|
|
26
|
-
const s = e + "CollectionSlot", m = V.forwardRef(
|
|
27
|
-
(C, f) => {
|
|
28
|
-
const { scope: i, children: w } = C, h = c(s, i), M = K(f, h.collectionRef);
|
|
29
|
-
return /* @__PURE__ */ l(Te, { ref: M, children: w });
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
m.displayName = s;
|
|
33
|
-
const p = e + "CollectionItemSlot", v = "data-radix-collection-item", d = V.forwardRef(
|
|
34
|
-
(C, f) => {
|
|
35
|
-
const { scope: i, children: w, ...h } = C, M = V.useRef(null), R = K(f, M), b = c(p, i);
|
|
36
|
-
return V.useEffect(() => (b.itemMap.set(M, { ref: M, ...h }), () => void b.itemMap.delete(M))), /* @__PURE__ */ l(Te, { [v]: "", ref: R, children: w });
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
d.displayName = p;
|
|
40
|
-
function g(C) {
|
|
41
|
-
const f = c(e + "CollectionConsumer", C);
|
|
42
|
-
return V.useCallback(() => {
|
|
43
|
-
const w = f.collectionRef.current;
|
|
44
|
-
if (!w)
|
|
45
|
-
return [];
|
|
46
|
-
const h = Array.from(w.querySelectorAll(`[${v}]`));
|
|
47
|
-
return Array.from(f.itemMap.values()).sort(
|
|
48
|
-
(b, y) => h.indexOf(b.ref.current) - h.indexOf(y.ref.current)
|
|
49
|
-
);
|
|
50
|
-
}, [f.collectionRef, f.itemMap]);
|
|
51
|
-
}
|
|
52
|
-
return [
|
|
53
|
-
{ Provider: u, Slot: m, ItemSlot: d },
|
|
54
|
-
g,
|
|
55
|
-
r
|
|
56
|
-
];
|
|
57
|
-
}
|
|
58
|
-
var Un = o.createContext(void 0);
|
|
59
|
-
function it(e) {
|
|
60
|
-
const t = o.useContext(Un);
|
|
61
|
-
return e || t || "ltr";
|
|
62
|
-
}
|
|
63
|
-
var ye = 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()), ye++, () => {
|
|
68
|
-
ye === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ye--;
|
|
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 _e = "focusScope.autoFocusOnMount", Pe = "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, m] = o.useState(null), p = ne(a), v = ne(c), d = o.useRef(null), g = K(t, (i) => m(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(R) {
|
|
95
|
-
if (C.paused || !s)
|
|
96
|
-
return;
|
|
97
|
-
const b = R.target;
|
|
98
|
-
s.contains(b) ? d.current = b : H(d.current, { select: !0 });
|
|
99
|
-
}, w = function(R) {
|
|
100
|
-
if (C.paused || !s)
|
|
101
|
-
return;
|
|
102
|
-
const b = R.relatedTarget;
|
|
103
|
-
b !== null && (s.contains(b) || H(d.current, { select: !0 }));
|
|
104
|
-
}, h = function(R) {
|
|
105
|
-
if (document.activeElement === document.body)
|
|
106
|
-
for (const y of R)
|
|
107
|
-
y.removedNodes.length > 0 && H(s);
|
|
108
|
-
};
|
|
109
|
-
document.addEventListener("focusin", i), document.addEventListener("focusout", w);
|
|
110
|
-
const M = new MutationObserver(h);
|
|
111
|
-
return s && M.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
112
|
-
document.removeEventListener("focusin", i), document.removeEventListener("focusout", w), M.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 h = new CustomEvent(_e, Ze);
|
|
121
|
-
s.addEventListener(_e, p), s.dispatchEvent(h), h.defaultPrevented || (Hn(zn(lt(s)), { select: !0 }), document.activeElement === i && H(s));
|
|
122
|
-
}
|
|
123
|
-
return () => {
|
|
124
|
-
s.removeEventListener(_e, p), setTimeout(() => {
|
|
125
|
-
const h = new CustomEvent(Pe, Ze);
|
|
126
|
-
s.addEventListener(Pe, v), s.dispatchEvent(h), h.defaultPrevented || H(i ?? document.body, { select: !0 }), s.removeEventListener(Pe, v), Qe.remove(C);
|
|
127
|
-
}, 0);
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}, [s, p, v, C]);
|
|
131
|
-
const f = o.useCallback(
|
|
132
|
-
(i) => {
|
|
133
|
-
if (!n && !r || C.paused)
|
|
134
|
-
return;
|
|
135
|
-
const w = i.key === "Tab" && !i.altKey && !i.ctrlKey && !i.metaKey, h = document.activeElement;
|
|
136
|
-
if (w && h) {
|
|
137
|
-
const M = i.currentTarget, [R, b] = Wn(M);
|
|
138
|
-
R && b ? !i.shiftKey && h === b ? (i.preventDefault(), n && H(R, { select: !0 })) : i.shiftKey && h === R && (i.preventDefault(), n && H(b, { select: !0 })) : h === M && i.preventDefault();
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
[n, r, C.paused]
|
|
142
|
-
);
|
|
143
|
-
return /* @__PURE__ */ l(D.div, { tabIndex: -1, ...u, ref: g, onKeyDown: f });
|
|
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, ke = "Popper", [ft, pt] = de(ke), [Qn, mt] = ft(ke), 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 = ke;
|
|
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 = K(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 Le = "PopperContent", [Jn, er] = ft(Le), 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: m = !0,
|
|
255
|
-
collisionBoundary: p = [],
|
|
256
|
-
collisionPadding: v = 0,
|
|
257
|
-
sticky: d = "partial",
|
|
258
|
-
hideWhenDetached: g = !1,
|
|
259
|
-
updatePositionStrategy: C = "optimized",
|
|
260
|
-
onPlaced: f,
|
|
261
|
-
...i
|
|
262
|
-
} = e, w = mt(Le, n), [h, M] = o.useState(null), R = K(t, (se) => M(se)), [b, y] = o.useState(null), P = gn(b), I = (P == null ? void 0 : P.width) ?? 0, _ = (P == null ? void 0 : P.height) ?? 0, k = r + (c !== "center" ? "-" + c : ""), $ = typeof v == "number" ? v : { top: 0, right: 0, bottom: 0, left: 0, ...v }, Y = Array.isArray(p) ? p : [p], W = Y.length > 0, U = {
|
|
263
|
-
padding: $,
|
|
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: w.anchor
|
|
276
|
-
},
|
|
277
|
-
middleware: [
|
|
278
|
-
Rn({ mainAxis: a + _, alignmentAxis: u }),
|
|
279
|
-
m && bn({
|
|
280
|
-
mainAxis: !0,
|
|
281
|
-
crossAxis: !1,
|
|
282
|
-
limiter: d === "partial" ? Sn() : void 0,
|
|
283
|
-
...U
|
|
284
|
-
}),
|
|
285
|
-
m && yn({ ...U }),
|
|
286
|
-
_n({
|
|
287
|
-
...U,
|
|
288
|
-
apply: ({ elements: se, rects: je, availableWidth: pn, availableHeight: mn }) => {
|
|
289
|
-
const { width: vn, height: hn } = je.reference, ve = se.floating.style;
|
|
290
|
-
ve.setProperty("--radix-popper-available-width", `${pn}px`), ve.setProperty("--radix-popper-available-height", `${mn}px`), ve.setProperty("--radix-popper-anchor-width", `${vn}px`), ve.setProperty("--radix-popper-anchor-height", `${hn}px`);
|
|
291
|
-
}
|
|
292
|
-
}),
|
|
293
|
-
b && Pn({ element: b, padding: s }),
|
|
294
|
-
rr({ arrowWidth: I, arrowHeight: _ }),
|
|
295
|
-
g && In({ strategy: "referenceHidden", ...U })
|
|
296
|
-
]
|
|
297
|
-
}), [E, T] = Et(L), A = ne(f);
|
|
298
|
-
xe(() => {
|
|
299
|
-
Q && (A == null || A());
|
|
300
|
-
}, [Q, A]);
|
|
301
|
-
const G = (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, [me, X] = o.useState();
|
|
302
|
-
return xe(() => {
|
|
303
|
-
h && X(window.getComputedStyle(h).zIndex);
|
|
304
|
-
}, [h]), /* @__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: me,
|
|
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: E,
|
|
333
|
-
onArrowChange: y,
|
|
334
|
-
arrowX: G,
|
|
335
|
-
arrowY: re,
|
|
336
|
-
shouldHideArrow: oe,
|
|
337
|
-
children: /* @__PURE__ */ l(
|
|
338
|
-
D.div,
|
|
339
|
-
{
|
|
340
|
-
"data-side": E,
|
|
341
|
-
"data-align": T,
|
|
342
|
-
...i,
|
|
343
|
-
ref: R,
|
|
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 = Le;
|
|
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 w, h, M;
|
|
418
|
-
const { placement: n, rects: r, middlewareData: a } = t, u = ((w = a.arrow) == null ? void 0 : w.centerOffset) !== 0, s = u ? 0 : e.arrowWidth, m = u ? 0 : e.arrowHeight, [p, v] = Et(n), d = { start: "0%", center: "50%", end: "100%" }[v], g = (((h = a.arrow) == null ? void 0 : h.x) ?? 0) + s / 2, C = (((M = a.arrow) == null ? void 0 : M.y) ?? 0) + m / 2;
|
|
419
|
-
let f = "", i = "";
|
|
420
|
-
return p === "bottom" ? (f = u ? d : `${g}px`, i = `${-m}px`) : p === "top" ? (f = u ? d : `${g}px`, i = `${r.floating.height + m}px`) : p === "right" ? (f = `${-m}px`, i = u ? d : `${C}px`) : p === "left" && (f = `${r.floating.width + m}px`, i = u ? d : `${C}px`), { data: { x: f, 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, Ie = "rovingFocusGroup.onEntryFocus", ir = { bubbles: !1, cancelable: !0 }, Ee = "RovingFocusGroup", [De, Rt, ur] = st(Ee), [lr, bt] = de(
|
|
428
|
-
Ee,
|
|
429
|
-
[ur]
|
|
430
|
-
), [dr, fr] = lr(Ee), St = o.forwardRef(
|
|
431
|
-
(e, t) => /* @__PURE__ */ l(De.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(De.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(pr, { ...e, ref: t }) }) })
|
|
432
|
-
);
|
|
433
|
-
St.displayName = Ee;
|
|
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: m,
|
|
443
|
-
onEntryFocus: p,
|
|
444
|
-
preventScrollOnEntryFocus: v = !1,
|
|
445
|
-
...d
|
|
446
|
-
} = e, g = o.useRef(null), C = K(t, g), f = it(c), [i = null, w] = ot({
|
|
447
|
-
prop: u,
|
|
448
|
-
defaultProp: s,
|
|
449
|
-
onChange: m
|
|
450
|
-
}), [h, M] = o.useState(!1), R = ne(p), b = Rt(n), y = o.useRef(!1), [P, I] = o.useState(0);
|
|
451
|
-
return o.useEffect(() => {
|
|
452
|
-
const _ = g.current;
|
|
453
|
-
if (_)
|
|
454
|
-
return _.addEventListener(Ie, R), () => _.removeEventListener(Ie, R);
|
|
455
|
-
}, [R]), /* @__PURE__ */ l(
|
|
456
|
-
dr,
|
|
457
|
-
{
|
|
458
|
-
scope: n,
|
|
459
|
-
orientation: r,
|
|
460
|
-
dir: f,
|
|
461
|
-
loop: a,
|
|
462
|
-
currentTabStopId: i,
|
|
463
|
-
onItemFocus: o.useCallback(
|
|
464
|
-
(_) => w(_),
|
|
465
|
-
[w]
|
|
466
|
-
),
|
|
467
|
-
onItemShiftTab: o.useCallback(() => M(!0), []),
|
|
468
|
-
onFocusableItemAdd: o.useCallback(
|
|
469
|
-
() => I((_) => _ + 1),
|
|
470
|
-
[]
|
|
471
|
-
),
|
|
472
|
-
onFocusableItemRemove: o.useCallback(
|
|
473
|
-
() => I((_) => _ - 1),
|
|
474
|
-
[]
|
|
475
|
-
),
|
|
476
|
-
children: /* @__PURE__ */ l(
|
|
477
|
-
D.div,
|
|
478
|
-
{
|
|
479
|
-
tabIndex: h || P === 0 ? -1 : 0,
|
|
480
|
-
"data-orientation": r,
|
|
481
|
-
...d,
|
|
482
|
-
ref: C,
|
|
483
|
-
style: { outline: "none", ...e.style },
|
|
484
|
-
onMouseDown: S(e.onMouseDown, () => {
|
|
485
|
-
y.current = !0;
|
|
486
|
-
}),
|
|
487
|
-
onFocus: S(e.onFocus, (_) => {
|
|
488
|
-
const k = !y.current;
|
|
489
|
-
if (_.target === _.currentTarget && k && !h) {
|
|
490
|
-
const $ = new CustomEvent(Ie, ir);
|
|
491
|
-
if (_.currentTarget.dispatchEvent($), !$.defaultPrevented) {
|
|
492
|
-
const Y = b().filter((L) => L.focusable), W = Y.find((L) => L.active), U = Y.find((L) => L.id === i), q = [W, U, ...Y].filter(
|
|
493
|
-
Boolean
|
|
494
|
-
).map((L) => L.ref.current);
|
|
495
|
-
Pt(q, v);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
y.current = !1;
|
|
499
|
-
}),
|
|
500
|
-
onBlur: S(e.onBlur, () => M(!1))
|
|
501
|
-
}
|
|
502
|
-
)
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
}), yt = "RovingFocusGroupItem", _t = o.forwardRef(
|
|
506
|
-
(e, t) => {
|
|
507
|
-
const {
|
|
508
|
-
__scopeRovingFocusGroup: n,
|
|
509
|
-
focusable: r = !0,
|
|
510
|
-
active: a = !1,
|
|
511
|
-
tabStopId: c,
|
|
512
|
-
...u
|
|
513
|
-
} = e, s = Ne(), m = c || s, p = fr(yt, n), v = p.currentTabStopId === m, d = Rt(n), { onFocusableItemAdd: g, onFocusableItemRemove: C } = p;
|
|
514
|
-
return o.useEffect(() => {
|
|
515
|
-
if (r)
|
|
516
|
-
return g(), () => C();
|
|
517
|
-
}, [r, g, C]), /* @__PURE__ */ l(
|
|
518
|
-
De.ItemSlot,
|
|
519
|
-
{
|
|
520
|
-
scope: n,
|
|
521
|
-
id: m,
|
|
522
|
-
focusable: r,
|
|
523
|
-
active: a,
|
|
524
|
-
children: /* @__PURE__ */ l(
|
|
525
|
-
D.span,
|
|
526
|
-
{
|
|
527
|
-
tabIndex: v ? 0 : -1,
|
|
528
|
-
"data-orientation": p.orientation,
|
|
529
|
-
...u,
|
|
530
|
-
ref: t,
|
|
531
|
-
onMouseDown: S(e.onMouseDown, (f) => {
|
|
532
|
-
r ? p.onItemFocus(m) : f.preventDefault();
|
|
533
|
-
}),
|
|
534
|
-
onFocus: S(e.onFocus, () => p.onItemFocus(m)),
|
|
535
|
-
onKeyDown: S(e.onKeyDown, (f) => {
|
|
536
|
-
if (f.key === "Tab" && f.shiftKey) {
|
|
537
|
-
p.onItemShiftTab();
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
if (f.target !== f.currentTarget)
|
|
541
|
-
return;
|
|
542
|
-
const i = hr(f, p.orientation, p.dir);
|
|
543
|
-
if (i !== void 0) {
|
|
544
|
-
if (f.metaKey || f.ctrlKey || f.altKey || f.shiftKey)
|
|
545
|
-
return;
|
|
546
|
-
f.preventDefault();
|
|
547
|
-
let h = d().filter((M) => M.focusable).map((M) => M.ref.current);
|
|
548
|
-
if (i === "last")
|
|
549
|
-
h.reverse();
|
|
550
|
-
else if (i === "prev" || i === "next") {
|
|
551
|
-
i === "prev" && h.reverse();
|
|
552
|
-
const M = h.indexOf(f.currentTarget);
|
|
553
|
-
h = p.loop ? gr(h, M + 1) : h.slice(M + 1);
|
|
554
|
-
}
|
|
555
|
-
setTimeout(() => Pt(h));
|
|
556
|
-
}
|
|
557
|
-
})
|
|
558
|
-
}
|
|
559
|
-
)
|
|
560
|
-
}
|
|
561
|
-
);
|
|
562
|
-
}
|
|
563
|
-
);
|
|
564
|
-
_t.displayName = yt;
|
|
565
|
-
var mr = {
|
|
566
|
-
ArrowLeft: "prev",
|
|
567
|
-
ArrowUp: "prev",
|
|
568
|
-
ArrowRight: "next",
|
|
569
|
-
ArrowDown: "next",
|
|
570
|
-
PageUp: "first",
|
|
571
|
-
Home: "first",
|
|
572
|
-
PageDown: "last",
|
|
573
|
-
End: "last"
|
|
574
|
-
};
|
|
575
|
-
function vr(e, t) {
|
|
576
|
-
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
577
|
-
}
|
|
578
|
-
function hr(e, t, n) {
|
|
579
|
-
const r = vr(e.key, n);
|
|
580
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
581
|
-
return mr[r];
|
|
582
|
-
}
|
|
583
|
-
function Pt(e, t = !1) {
|
|
584
|
-
const n = document.activeElement;
|
|
585
|
-
for (const r of e)
|
|
586
|
-
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n))
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
function gr(e, t) {
|
|
590
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
591
|
-
}
|
|
592
|
-
var wr = St, Cr = _t, It = xn(), Ae = function() {
|
|
593
|
-
}, Re = o.forwardRef(function(e, t) {
|
|
594
|
-
var n = o.useRef(null), r = o.useState({
|
|
595
|
-
onScrollCapture: Ae,
|
|
596
|
-
onWheelCapture: Ae,
|
|
597
|
-
onTouchMoveCapture: Ae
|
|
598
|
-
}), a = r[0], c = r[1], u = e.forwardProps, s = e.children, m = e.className, p = e.removeScrollBar, v = e.enabled, d = e.shards, g = e.sideCar, C = e.noIsolation, f = e.inert, i = e.allowPinchZoom, w = e.as, h = w === void 0 ? "div" : w, M = e.gapMode, R = Tn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = g, y = Nn([n, t]), P = te(te({}, R), a);
|
|
599
|
-
return o.createElement(
|
|
600
|
-
o.Fragment,
|
|
601
|
-
null,
|
|
602
|
-
v && o.createElement(b, { sideCar: It, removeScrollBar: p, shards: d, noIsolation: C, inert: f, setCallbacks: c, allowPinchZoom: !!i, lockRef: n, gapMode: M }),
|
|
603
|
-
u ? o.cloneElement(o.Children.only(s), te(te({}, P), { ref: y })) : o.createElement(h, te({}, P, { className: m, ref: y }), s)
|
|
604
|
-
);
|
|
605
|
-
});
|
|
606
|
-
Re.defaultProps = {
|
|
607
|
-
enabled: !0,
|
|
608
|
-
removeScrollBar: !0,
|
|
609
|
-
inert: !1
|
|
610
|
-
};
|
|
611
|
-
Re.classNames = {
|
|
612
|
-
fullWidth: Dn,
|
|
613
|
-
zeroRight: On
|
|
614
|
-
};
|
|
615
|
-
var Oe = !1;
|
|
616
|
-
if (typeof window < "u")
|
|
617
|
-
try {
|
|
618
|
-
var he = Object.defineProperty({}, "passive", {
|
|
619
|
-
get: function() {
|
|
620
|
-
return Oe = !0, !0;
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
window.addEventListener("test", he, he), window.removeEventListener("test", he, he);
|
|
624
|
-
} catch {
|
|
625
|
-
Oe = !1;
|
|
626
|
-
}
|
|
627
|
-
var J = Oe ? { passive: !1 } : !1, Mr = function(e) {
|
|
628
|
-
return e.tagName === "TEXTAREA";
|
|
629
|
-
}, At = function(e, t) {
|
|
630
|
-
if (!(e instanceof Element))
|
|
631
|
-
return !1;
|
|
632
|
-
var n = window.getComputedStyle(e);
|
|
633
|
-
return (
|
|
634
|
-
// not-not-scrollable
|
|
635
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
636
|
-
!(n.overflowY === n.overflowX && !Mr(e) && n[t] === "visible")
|
|
637
|
-
);
|
|
638
|
-
}, Er = function(e) {
|
|
639
|
-
return At(e, "overflowY");
|
|
640
|
-
}, Rr = function(e) {
|
|
641
|
-
return At(e, "overflowX");
|
|
642
|
-
}, et = function(e, t) {
|
|
643
|
-
var n = t.ownerDocument, r = t;
|
|
644
|
-
do {
|
|
645
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
646
|
-
var a = xt(e, r);
|
|
647
|
-
if (a) {
|
|
648
|
-
var c = Tt(e, r), u = c[1], s = c[2];
|
|
649
|
-
if (u > s)
|
|
650
|
-
return !0;
|
|
651
|
-
}
|
|
652
|
-
r = r.parentNode;
|
|
653
|
-
} while (r && r !== n.body);
|
|
654
|
-
return !1;
|
|
655
|
-
}, br = function(e) {
|
|
656
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
657
|
-
return [
|
|
658
|
-
t,
|
|
659
|
-
n,
|
|
660
|
-
r
|
|
661
|
-
];
|
|
662
|
-
}, Sr = function(e) {
|
|
663
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
664
|
-
return [
|
|
665
|
-
t,
|
|
666
|
-
n,
|
|
667
|
-
r
|
|
668
|
-
];
|
|
669
|
-
}, xt = function(e, t) {
|
|
670
|
-
return e === "v" ? Er(t) : Rr(t);
|
|
671
|
-
}, Tt = function(e, t) {
|
|
672
|
-
return e === "v" ? br(t) : Sr(t);
|
|
673
|
-
}, yr = function(e, t) {
|
|
674
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
675
|
-
}, _r = function(e, t, n, r, a) {
|
|
676
|
-
var c = yr(e, window.getComputedStyle(t).direction), u = c * r, s = n.target, m = t.contains(s), p = !1, v = u > 0, d = 0, g = 0;
|
|
677
|
-
do {
|
|
678
|
-
var C = Tt(e, s), f = C[0], i = C[1], w = C[2], h = i - w - c * f;
|
|
679
|
-
(f || h) && xt(e, s) && (d += h, g += f), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
|
|
680
|
-
} while (
|
|
681
|
-
// portaled content
|
|
682
|
-
!m && s !== document.body || // self content
|
|
683
|
-
m && (t.contains(s) || t === s)
|
|
684
|
-
);
|
|
685
|
-
return (v && (a && Math.abs(d) < 1 || !a && u > d) || !v && (a && Math.abs(g) < 1 || !a && -u > g)) && (p = !0), p;
|
|
686
|
-
}, ge = function(e) {
|
|
687
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
688
|
-
}, tt = function(e) {
|
|
689
|
-
return [e.deltaX, e.deltaY];
|
|
690
|
-
}, nt = function(e) {
|
|
691
|
-
return e && "current" in e ? e.current : e;
|
|
692
|
-
}, Pr = function(e, t) {
|
|
693
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
694
|
-
}, Ir = function(e) {
|
|
695
|
-
return `
|
|
696
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
697
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
698
|
-
`);
|
|
699
|
-
}, Ar = 0, ee = [];
|
|
700
|
-
function xr(e) {
|
|
701
|
-
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);
|
|
702
|
-
o.useEffect(function() {
|
|
703
|
-
u.current = e;
|
|
704
|
-
}, [e]), o.useEffect(function() {
|
|
705
|
-
if (e.inert) {
|
|
706
|
-
document.body.classList.add("block-interactivity-".concat(a));
|
|
707
|
-
var i = kn([e.lockRef.current], (e.shards || []).map(nt), !0).filter(Boolean);
|
|
708
|
-
return i.forEach(function(w) {
|
|
709
|
-
return w.classList.add("allow-interactivity-".concat(a));
|
|
710
|
-
}), function() {
|
|
711
|
-
document.body.classList.remove("block-interactivity-".concat(a)), i.forEach(function(w) {
|
|
712
|
-
return w.classList.remove("allow-interactivity-".concat(a));
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
717
|
-
var s = o.useCallback(function(i, w) {
|
|
718
|
-
if ("touches" in i && i.touches.length === 2 || i.type === "wheel" && i.ctrlKey)
|
|
719
|
-
return !u.current.allowPinchZoom;
|
|
720
|
-
var h = ge(i), M = n.current, R = "deltaX" in i ? i.deltaX : M[0] - h[0], b = "deltaY" in i ? i.deltaY : M[1] - h[1], y, P = i.target, I = Math.abs(R) > Math.abs(b) ? "h" : "v";
|
|
721
|
-
if ("touches" in i && I === "h" && P.type === "range")
|
|
722
|
-
return !1;
|
|
723
|
-
var _ = et(I, P);
|
|
724
|
-
if (!_)
|
|
725
|
-
return !0;
|
|
726
|
-
if (_ ? y = I : (y = I === "v" ? "h" : "v", _ = et(I, P)), !_)
|
|
727
|
-
return !1;
|
|
728
|
-
if (!r.current && "changedTouches" in i && (R || b) && (r.current = y), !y)
|
|
729
|
-
return !0;
|
|
730
|
-
var k = r.current || y;
|
|
731
|
-
return _r(k, w, i, k === "h" ? R : b, !0);
|
|
732
|
-
}, []), m = o.useCallback(function(i) {
|
|
733
|
-
var w = i;
|
|
734
|
-
if (!(!ee.length || ee[ee.length - 1] !== c)) {
|
|
735
|
-
var h = "deltaY" in w ? tt(w) : ge(w), M = t.current.filter(function(y) {
|
|
736
|
-
return y.name === w.type && (y.target === w.target || w.target === y.shadowParent) && Pr(y.delta, h);
|
|
737
|
-
})[0];
|
|
738
|
-
if (M && M.should) {
|
|
739
|
-
w.cancelable && w.preventDefault();
|
|
740
|
-
return;
|
|
741
|
-
}
|
|
742
|
-
if (!M) {
|
|
743
|
-
var R = (u.current.shards || []).map(nt).filter(Boolean).filter(function(y) {
|
|
744
|
-
return y.contains(w.target);
|
|
745
|
-
}), b = R.length > 0 ? s(w, R[0]) : !u.current.noIsolation;
|
|
746
|
-
b && w.cancelable && w.preventDefault();
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
}, []), p = o.useCallback(function(i, w, h, M) {
|
|
750
|
-
var R = { name: i, delta: w, target: h, should: M, shadowParent: Tr(h) };
|
|
751
|
-
t.current.push(R), setTimeout(function() {
|
|
752
|
-
t.current = t.current.filter(function(b) {
|
|
753
|
-
return b !== R;
|
|
754
|
-
});
|
|
755
|
-
}, 1);
|
|
756
|
-
}, []), v = o.useCallback(function(i) {
|
|
757
|
-
n.current = ge(i), r.current = void 0;
|
|
758
|
-
}, []), d = o.useCallback(function(i) {
|
|
759
|
-
p(i.type, tt(i), i.target, s(i, e.lockRef.current));
|
|
760
|
-
}, []), g = o.useCallback(function(i) {
|
|
761
|
-
p(i.type, ge(i), i.target, s(i, e.lockRef.current));
|
|
762
|
-
}, []);
|
|
763
|
-
o.useEffect(function() {
|
|
764
|
-
return ee.push(c), e.setCallbacks({
|
|
765
|
-
onScrollCapture: d,
|
|
766
|
-
onWheelCapture: d,
|
|
767
|
-
onTouchMoveCapture: g
|
|
768
|
-
}), document.addEventListener("wheel", m, J), document.addEventListener("touchmove", m, J), document.addEventListener("touchstart", v, J), function() {
|
|
769
|
-
ee = ee.filter(function(i) {
|
|
770
|
-
return i !== c;
|
|
771
|
-
}), document.removeEventListener("wheel", m, J), document.removeEventListener("touchmove", m, J), document.removeEventListener("touchstart", v, J);
|
|
772
|
-
};
|
|
773
|
-
}, []);
|
|
774
|
-
var C = e.removeScrollBar, f = e.inert;
|
|
775
|
-
return o.createElement(
|
|
776
|
-
o.Fragment,
|
|
777
|
-
null,
|
|
778
|
-
f ? o.createElement(c, { styles: Ir(a) }) : null,
|
|
779
|
-
C ? o.createElement(Ln, { gapMode: e.gapMode }) : null
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
function Tr(e) {
|
|
783
|
-
for (var t = null; e !== null; )
|
|
784
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
785
|
-
return t;
|
|
786
|
-
}
|
|
787
|
-
const Nr = Kn(It, xr);
|
|
788
|
-
var Nt = o.forwardRef(function(e, t) {
|
|
789
|
-
return o.createElement(Re, te({}, e, { ref: t, sideCar: Nr }));
|
|
790
|
-
});
|
|
791
|
-
Nt.classNames = Re.classNames;
|
|
792
|
-
const Dr = Nt;
|
|
793
|
-
var Fe = ["Enter", " "], Or = ["ArrowDown", "PageUp", "Home"], Dt = ["ArrowUp", "PageDown", "End"], Fr = [...Or, ...Dt], kr = {
|
|
794
|
-
ltr: [...Fe, "ArrowRight"],
|
|
795
|
-
rtl: [...Fe, "ArrowLeft"]
|
|
796
|
-
}, Lr = {
|
|
797
|
-
ltr: ["ArrowLeft"],
|
|
798
|
-
rtl: ["ArrowRight"]
|
|
799
|
-
}, fe = "Menu", [ue, Kr, Gr] = st(fe), [j, Ot] = de(fe, [
|
|
800
|
-
Gr,
|
|
801
|
-
pt,
|
|
802
|
-
bt
|
|
803
|
-
]), be = pt(), Ft = bt(), [$r, z] = j(fe), [Ur, pe] = j(fe), kt = (e) => {
|
|
804
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: c, modal: u = !0 } = e, s = be(t), [m, p] = o.useState(null), v = o.useRef(!1), d = ne(c), g = it(a);
|
|
805
|
-
return o.useEffect(() => {
|
|
806
|
-
const C = () => {
|
|
807
|
-
v.current = !0, document.addEventListener("pointerdown", f, { capture: !0, once: !0 }), document.addEventListener("pointermove", f, { capture: !0, once: !0 });
|
|
808
|
-
}, f = () => v.current = !1;
|
|
809
|
-
return document.addEventListener("keydown", C, { capture: !0 }), () => {
|
|
810
|
-
document.removeEventListener("keydown", C, { capture: !0 }), document.removeEventListener("pointerdown", f, { capture: !0 }), document.removeEventListener("pointermove", f, { capture: !0 });
|
|
811
|
-
};
|
|
812
|
-
}, []), /* @__PURE__ */ l(or, { ...s, children: /* @__PURE__ */ l(
|
|
813
|
-
$r,
|
|
814
|
-
{
|
|
815
|
-
scope: t,
|
|
816
|
-
open: n,
|
|
817
|
-
onOpenChange: d,
|
|
818
|
-
content: m,
|
|
819
|
-
onContentChange: p,
|
|
820
|
-
children: /* @__PURE__ */ l(
|
|
821
|
-
Ur,
|
|
822
|
-
{
|
|
823
|
-
scope: t,
|
|
824
|
-
onClose: o.useCallback(() => d(!1), [d]),
|
|
825
|
-
isUsingKeyboardRef: v,
|
|
826
|
-
dir: g,
|
|
827
|
-
modal: u,
|
|
828
|
-
children: r
|
|
829
|
-
}
|
|
830
|
-
)
|
|
831
|
-
}
|
|
832
|
-
) });
|
|
833
|
-
};
|
|
834
|
-
kt.displayName = fe;
|
|
835
|
-
var Br = "MenuAnchor", Ke = o.forwardRef(
|
|
836
|
-
(e, t) => {
|
|
837
|
-
const { __scopeMenu: n, ...r } = e, a = be(n);
|
|
838
|
-
return /* @__PURE__ */ l(ar, { ...a, ...r, ref: t });
|
|
839
|
-
}
|
|
840
|
-
);
|
|
841
|
-
Ke.displayName = Br;
|
|
842
|
-
var Ge = "MenuPortal", [Yr, Lt] = j(Ge, {
|
|
843
|
-
forceMount: void 0
|
|
844
|
-
}), Kt = (e) => {
|
|
845
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, c = z(Ge, t);
|
|
846
|
-
return /* @__PURE__ */ l(Yr, { scope: t, forceMount: n, children: /* @__PURE__ */ l(Me, { present: n || c.open, children: /* @__PURE__ */ l(ct, { asChild: !0, container: a, children: r }) }) });
|
|
847
|
-
};
|
|
848
|
-
Kt.displayName = Ge;
|
|
849
|
-
var F = "MenuContent", [Hr, $e] = j(F), Gt = o.forwardRef(
|
|
850
|
-
(e, t) => {
|
|
851
|
-
const n = Lt(F, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, c = z(F, e.__scopeMenu), u = pe(F, e.__scopeMenu);
|
|
852
|
-
return /* @__PURE__ */ l(ue.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(Me, { 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 }) }) }) });
|
|
853
|
-
}
|
|
854
|
-
), Wr = o.forwardRef(
|
|
855
|
-
(e, t) => {
|
|
856
|
-
const n = z(F, e.__scopeMenu), r = o.useRef(null), a = K(t, r);
|
|
857
|
-
return o.useEffect(() => {
|
|
858
|
-
const c = r.current;
|
|
859
|
-
if (c)
|
|
860
|
-
return Gn(c);
|
|
861
|
-
}, []), /* @__PURE__ */ l(
|
|
862
|
-
Ue,
|
|
863
|
-
{
|
|
864
|
-
...e,
|
|
865
|
-
ref: a,
|
|
866
|
-
trapFocus: n.open,
|
|
867
|
-
disableOutsidePointerEvents: n.open,
|
|
868
|
-
disableOutsideScroll: !0,
|
|
869
|
-
onFocusOutside: S(
|
|
870
|
-
e.onFocusOutside,
|
|
871
|
-
(c) => c.preventDefault(),
|
|
872
|
-
{ checkForDefaultPrevented: !1 }
|
|
873
|
-
),
|
|
874
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
875
|
-
}
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
), Xr = o.forwardRef((e, t) => {
|
|
879
|
-
const n = z(F, e.__scopeMenu);
|
|
880
|
-
return /* @__PURE__ */ l(
|
|
881
|
-
Ue,
|
|
882
|
-
{
|
|
883
|
-
...e,
|
|
884
|
-
ref: t,
|
|
885
|
-
trapFocus: !1,
|
|
886
|
-
disableOutsidePointerEvents: !1,
|
|
887
|
-
disableOutsideScroll: !1,
|
|
888
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
889
|
-
}
|
|
890
|
-
);
|
|
891
|
-
}), Ue = o.forwardRef(
|
|
892
|
-
(e, t) => {
|
|
893
|
-
const {
|
|
894
|
-
__scopeMenu: n,
|
|
895
|
-
loop: r = !1,
|
|
896
|
-
trapFocus: a,
|
|
897
|
-
onOpenAutoFocus: c,
|
|
898
|
-
onCloseAutoFocus: u,
|
|
899
|
-
disableOutsidePointerEvents: s,
|
|
900
|
-
onEntryFocus: m,
|
|
901
|
-
onEscapeKeyDown: p,
|
|
902
|
-
onPointerDownOutside: v,
|
|
903
|
-
onFocusOutside: d,
|
|
904
|
-
onInteractOutside: g,
|
|
905
|
-
onDismiss: C,
|
|
906
|
-
disableOutsideScroll: f,
|
|
907
|
-
...i
|
|
908
|
-
} = e, w = z(F, n), h = pe(F, n), M = be(n), R = Ft(n), b = Kr(n), [y, P] = o.useState(null), I = o.useRef(null), _ = K(t, I, w.onContentChange), k = o.useRef(0), $ = o.useRef(""), Y = o.useRef(0), W = o.useRef(null), U = o.useRef("right"), Z = o.useRef(0), q = f ? Dr : o.Fragment, L = f ? { as: Te, allowPinchZoom: !0 } : void 0, Q = (E) => {
|
|
909
|
-
var B, ae;
|
|
910
|
-
const T = $.current + E, A = b().filter((O) => !O.disabled), G = document.activeElement, re = (B = A.find((O) => O.ref.current === G)) == null ? void 0 : B.textValue, oe = A.map((O) => O.textValue), me = oo(oe, T, re), X = (ae = A.find((O) => O.textValue === me)) == null ? void 0 : ae.ref.current;
|
|
911
|
-
(function O(ce) {
|
|
912
|
-
$.current = ce, window.clearTimeout(k.current), ce !== "" && (k.current = window.setTimeout(() => O(""), 1e3));
|
|
913
|
-
})(T), X && setTimeout(() => X.focus());
|
|
914
|
-
};
|
|
915
|
-
o.useEffect(() => () => window.clearTimeout(k.current), []), Bn();
|
|
916
|
-
const N = o.useCallback((E) => {
|
|
917
|
-
var A, G;
|
|
918
|
-
return U.current === ((A = W.current) == null ? void 0 : A.side) && co(E, (G = W.current) == null ? void 0 : G.area);
|
|
919
|
-
}, []);
|
|
920
|
-
return /* @__PURE__ */ l(
|
|
921
|
-
Hr,
|
|
922
|
-
{
|
|
923
|
-
scope: n,
|
|
924
|
-
searchRef: $,
|
|
925
|
-
onItemEnter: o.useCallback(
|
|
926
|
-
(E) => {
|
|
927
|
-
N(E) && E.preventDefault();
|
|
928
|
-
},
|
|
929
|
-
[N]
|
|
930
|
-
),
|
|
931
|
-
onItemLeave: o.useCallback(
|
|
932
|
-
(E) => {
|
|
933
|
-
var T;
|
|
934
|
-
N(E) || ((T = I.current) == null || T.focus(), P(null));
|
|
935
|
-
},
|
|
936
|
-
[N]
|
|
937
|
-
),
|
|
938
|
-
onTriggerLeave: o.useCallback(
|
|
939
|
-
(E) => {
|
|
940
|
-
N(E) && E.preventDefault();
|
|
941
|
-
},
|
|
942
|
-
[N]
|
|
943
|
-
),
|
|
944
|
-
pointerGraceTimerRef: Y,
|
|
945
|
-
onPointerGraceIntentChange: o.useCallback((E) => {
|
|
946
|
-
W.current = E;
|
|
947
|
-
}, []),
|
|
948
|
-
children: /* @__PURE__ */ l(q, { ...L, children: /* @__PURE__ */ l(
|
|
949
|
-
ut,
|
|
950
|
-
{
|
|
951
|
-
asChild: !0,
|
|
952
|
-
trapped: a,
|
|
953
|
-
onMountAutoFocus: S(c, (E) => {
|
|
954
|
-
var T;
|
|
955
|
-
E.preventDefault(), (T = I.current) == null || T.focus({ preventScroll: !0 });
|
|
956
|
-
}),
|
|
957
|
-
onUnmountAutoFocus: u,
|
|
958
|
-
children: /* @__PURE__ */ l(
|
|
959
|
-
Cn,
|
|
960
|
-
{
|
|
961
|
-
asChild: !0,
|
|
962
|
-
disableOutsidePointerEvents: s,
|
|
963
|
-
onEscapeKeyDown: p,
|
|
964
|
-
onPointerDownOutside: v,
|
|
965
|
-
onFocusOutside: d,
|
|
966
|
-
onInteractOutside: g,
|
|
967
|
-
onDismiss: C,
|
|
968
|
-
children: /* @__PURE__ */ l(
|
|
969
|
-
wr,
|
|
970
|
-
{
|
|
971
|
-
asChild: !0,
|
|
972
|
-
...R,
|
|
973
|
-
dir: h.dir,
|
|
974
|
-
orientation: "vertical",
|
|
975
|
-
loop: r,
|
|
976
|
-
currentTabStopId: y,
|
|
977
|
-
onCurrentTabStopIdChange: P,
|
|
978
|
-
onEntryFocus: S(m, (E) => {
|
|
979
|
-
h.isUsingKeyboardRef.current || E.preventDefault();
|
|
980
|
-
}),
|
|
981
|
-
preventScrollOnEntryFocus: !0,
|
|
982
|
-
children: /* @__PURE__ */ l(
|
|
983
|
-
cr,
|
|
984
|
-
{
|
|
985
|
-
role: "menu",
|
|
986
|
-
"aria-orientation": "vertical",
|
|
987
|
-
"data-state": tn(w.open),
|
|
988
|
-
"data-radix-menu-content": "",
|
|
989
|
-
dir: h.dir,
|
|
990
|
-
...M,
|
|
991
|
-
...i,
|
|
992
|
-
ref: _,
|
|
993
|
-
style: { outline: "none", ...i.style },
|
|
994
|
-
onKeyDown: S(i.onKeyDown, (E) => {
|
|
995
|
-
const A = E.target.closest("[data-radix-menu-content]") === E.currentTarget, G = E.ctrlKey || E.altKey || E.metaKey, re = E.key.length === 1;
|
|
996
|
-
A && (E.key === "Tab" && E.preventDefault(), !G && re && Q(E.key));
|
|
997
|
-
const oe = I.current;
|
|
998
|
-
if (E.target !== oe || !Fr.includes(E.key))
|
|
999
|
-
return;
|
|
1000
|
-
E.preventDefault();
|
|
1001
|
-
const X = b().filter((B) => !B.disabled).map((B) => B.ref.current);
|
|
1002
|
-
Dt.includes(E.key) && X.reverse(), no(X);
|
|
1003
|
-
}),
|
|
1004
|
-
onBlur: S(e.onBlur, (E) => {
|
|
1005
|
-
E.currentTarget.contains(E.target) || (window.clearTimeout(k.current), $.current = "");
|
|
1006
|
-
}),
|
|
1007
|
-
onPointerMove: S(
|
|
1008
|
-
e.onPointerMove,
|
|
1009
|
-
le((E) => {
|
|
1010
|
-
const T = E.target, A = Z.current !== E.clientX;
|
|
1011
|
-
if (E.currentTarget.contains(T) && A) {
|
|
1012
|
-
const G = E.clientX > Z.current ? "right" : "left";
|
|
1013
|
-
U.current = G, Z.current = E.clientX;
|
|
1014
|
-
}
|
|
1015
|
-
})
|
|
1016
|
-
)
|
|
1017
|
-
}
|
|
1018
|
-
)
|
|
1019
|
-
}
|
|
1020
|
-
)
|
|
1021
|
-
}
|
|
1022
|
-
)
|
|
1023
|
-
}
|
|
1024
|
-
) })
|
|
1025
|
-
}
|
|
1026
|
-
);
|
|
1027
|
-
}
|
|
1028
|
-
);
|
|
1029
|
-
Gt.displayName = F;
|
|
1030
|
-
var Vr = "MenuGroup", Be = o.forwardRef(
|
|
1031
|
-
(e, t) => {
|
|
1032
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1033
|
-
return /* @__PURE__ */ l(D.div, { role: "group", ...r, ref: t });
|
|
1034
|
-
}
|
|
1035
|
-
);
|
|
1036
|
-
Be.displayName = Vr;
|
|
1037
|
-
var jr = "MenuLabel", $t = o.forwardRef(
|
|
1038
|
-
(e, t) => {
|
|
1039
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1040
|
-
return /* @__PURE__ */ l(D.div, { ...r, ref: t });
|
|
1041
|
-
}
|
|
1042
|
-
);
|
|
1043
|
-
$t.displayName = jr;
|
|
1044
|
-
var we = "MenuItem", rt = "menu.itemSelect", Se = o.forwardRef(
|
|
1045
|
-
(e, t) => {
|
|
1046
|
-
const { disabled: n = !1, onSelect: r, ...a } = e, c = o.useRef(null), u = pe(we, e.__scopeMenu), s = $e(we, e.__scopeMenu), m = K(t, c), p = o.useRef(!1), v = () => {
|
|
1047
|
-
const d = c.current;
|
|
1048
|
-
if (!n && d) {
|
|
1049
|
-
const g = new CustomEvent(rt, { bubbles: !0, cancelable: !0 });
|
|
1050
|
-
d.addEventListener(rt, (C) => r == null ? void 0 : r(C), { once: !0 }), wn(d, g), g.defaultPrevented ? p.current = !1 : u.onClose();
|
|
1051
|
-
}
|
|
1052
|
-
};
|
|
1053
|
-
return /* @__PURE__ */ l(
|
|
1054
|
-
Ut,
|
|
1055
|
-
{
|
|
1056
|
-
...a,
|
|
1057
|
-
ref: m,
|
|
1058
|
-
disabled: n,
|
|
1059
|
-
onClick: S(e.onClick, v),
|
|
1060
|
-
onPointerDown: (d) => {
|
|
1061
|
-
var g;
|
|
1062
|
-
(g = e.onPointerDown) == null || g.call(e, d), p.current = !0;
|
|
1063
|
-
},
|
|
1064
|
-
onPointerUp: S(e.onPointerUp, (d) => {
|
|
1065
|
-
var g;
|
|
1066
|
-
p.current || (g = d.currentTarget) == null || g.click();
|
|
1067
|
-
}),
|
|
1068
|
-
onKeyDown: S(e.onKeyDown, (d) => {
|
|
1069
|
-
const g = s.searchRef.current !== "";
|
|
1070
|
-
n || g && d.key === " " || Fe.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
1071
|
-
})
|
|
1072
|
-
}
|
|
1073
|
-
);
|
|
1074
|
-
}
|
|
1075
|
-
);
|
|
1076
|
-
Se.displayName = we;
|
|
1077
|
-
var Ut = o.forwardRef(
|
|
1078
|
-
(e, t) => {
|
|
1079
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...c } = e, u = $e(we, n), s = Ft(n), m = o.useRef(null), p = K(t, m), [v, d] = o.useState(!1), [g, C] = o.useState("");
|
|
1080
|
-
return o.useEffect(() => {
|
|
1081
|
-
const f = m.current;
|
|
1082
|
-
f && C((f.textContent ?? "").trim());
|
|
1083
|
-
}, [c.children]), /* @__PURE__ */ l(
|
|
1084
|
-
ue.ItemSlot,
|
|
1085
|
-
{
|
|
1086
|
-
scope: n,
|
|
1087
|
-
disabled: r,
|
|
1088
|
-
textValue: a ?? g,
|
|
1089
|
-
children: /* @__PURE__ */ l(Cr, { asChild: !0, ...s, focusable: !r, children: /* @__PURE__ */ l(
|
|
1090
|
-
D.div,
|
|
1091
|
-
{
|
|
1092
|
-
role: "menuitem",
|
|
1093
|
-
"data-highlighted": v ? "" : void 0,
|
|
1094
|
-
"aria-disabled": r || void 0,
|
|
1095
|
-
"data-disabled": r ? "" : void 0,
|
|
1096
|
-
...c,
|
|
1097
|
-
ref: p,
|
|
1098
|
-
onPointerMove: S(
|
|
1099
|
-
e.onPointerMove,
|
|
1100
|
-
le((f) => {
|
|
1101
|
-
r ? u.onItemLeave(f) : (u.onItemEnter(f), f.defaultPrevented || f.currentTarget.focus({ preventScroll: !0 }));
|
|
1102
|
-
})
|
|
1103
|
-
),
|
|
1104
|
-
onPointerLeave: S(
|
|
1105
|
-
e.onPointerLeave,
|
|
1106
|
-
le((f) => u.onItemLeave(f))
|
|
1107
|
-
),
|
|
1108
|
-
onFocus: S(e.onFocus, () => d(!0)),
|
|
1109
|
-
onBlur: S(e.onBlur, () => d(!1))
|
|
1110
|
-
}
|
|
1111
|
-
) })
|
|
1112
|
-
}
|
|
1113
|
-
);
|
|
1114
|
-
}
|
|
1115
|
-
), zr = "MenuCheckboxItem", Bt = o.forwardRef(
|
|
1116
|
-
(e, t) => {
|
|
1117
|
-
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
1118
|
-
return /* @__PURE__ */ l(Vt, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ l(
|
|
1119
|
-
Se,
|
|
1120
|
-
{
|
|
1121
|
-
role: "menuitemcheckbox",
|
|
1122
|
-
"aria-checked": Ce(n) ? "mixed" : n,
|
|
1123
|
-
...a,
|
|
1124
|
-
ref: t,
|
|
1125
|
-
"data-state": He(n),
|
|
1126
|
-
onSelect: S(
|
|
1127
|
-
a.onSelect,
|
|
1128
|
-
() => r == null ? void 0 : r(Ce(n) ? !0 : !n),
|
|
1129
|
-
{ checkForDefaultPrevented: !1 }
|
|
1130
|
-
)
|
|
1131
|
-
}
|
|
1132
|
-
) });
|
|
1133
|
-
}
|
|
1134
|
-
);
|
|
1135
|
-
Bt.displayName = zr;
|
|
1136
|
-
var Yt = "MenuRadioGroup", [Zr, qr] = j(
|
|
1137
|
-
Yt,
|
|
1138
|
-
{ value: void 0, onValueChange: () => {
|
|
1139
|
-
} }
|
|
1140
|
-
), Ht = o.forwardRef(
|
|
1141
|
-
(e, t) => {
|
|
1142
|
-
const { value: n, onValueChange: r, ...a } = e, c = ne(r);
|
|
1143
|
-
return /* @__PURE__ */ l(Zr, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ l(Be, { ...a, ref: t }) });
|
|
1144
|
-
}
|
|
1145
|
-
);
|
|
1146
|
-
Ht.displayName = Yt;
|
|
1147
|
-
var Wt = "MenuRadioItem", Xt = o.forwardRef(
|
|
1148
|
-
(e, t) => {
|
|
1149
|
-
const { value: n, ...r } = e, a = qr(Wt, e.__scopeMenu), c = n === a.value;
|
|
1150
|
-
return /* @__PURE__ */ l(Vt, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ l(
|
|
1151
|
-
Se,
|
|
1152
|
-
{
|
|
1153
|
-
role: "menuitemradio",
|
|
1154
|
-
"aria-checked": c,
|
|
1155
|
-
...r,
|
|
1156
|
-
ref: t,
|
|
1157
|
-
"data-state": He(c),
|
|
1158
|
-
onSelect: S(
|
|
1159
|
-
r.onSelect,
|
|
1160
|
-
() => {
|
|
1161
|
-
var u;
|
|
1162
|
-
return (u = a.onValueChange) == null ? void 0 : u.call(a, n);
|
|
1163
|
-
},
|
|
1164
|
-
{ checkForDefaultPrevented: !1 }
|
|
1165
|
-
)
|
|
1166
|
-
}
|
|
1167
|
-
) });
|
|
1168
|
-
}
|
|
1169
|
-
);
|
|
1170
|
-
Xt.displayName = Wt;
|
|
1171
|
-
var Ye = "MenuItemIndicator", [Vt, Qr] = j(
|
|
1172
|
-
Ye,
|
|
1173
|
-
{ checked: !1 }
|
|
1174
|
-
), jt = o.forwardRef(
|
|
1175
|
-
(e, t) => {
|
|
1176
|
-
const { __scopeMenu: n, forceMount: r, ...a } = e, c = Qr(Ye, n);
|
|
1177
|
-
return /* @__PURE__ */ l(
|
|
1178
|
-
Me,
|
|
1179
|
-
{
|
|
1180
|
-
present: r || Ce(c.checked) || c.checked === !0,
|
|
1181
|
-
children: /* @__PURE__ */ l(
|
|
1182
|
-
D.span,
|
|
1183
|
-
{
|
|
1184
|
-
...a,
|
|
1185
|
-
ref: t,
|
|
1186
|
-
"data-state": He(c.checked)
|
|
1187
|
-
}
|
|
1188
|
-
)
|
|
1189
|
-
}
|
|
1190
|
-
);
|
|
1191
|
-
}
|
|
1192
|
-
);
|
|
1193
|
-
jt.displayName = Ye;
|
|
1194
|
-
var Jr = "MenuSeparator", zt = o.forwardRef(
|
|
1195
|
-
(e, t) => {
|
|
1196
|
-
const { __scopeMenu: n, ...r } = e;
|
|
1197
|
-
return /* @__PURE__ */ l(
|
|
1198
|
-
D.div,
|
|
1199
|
-
{
|
|
1200
|
-
role: "separator",
|
|
1201
|
-
"aria-orientation": "horizontal",
|
|
1202
|
-
...r,
|
|
1203
|
-
ref: t
|
|
1204
|
-
}
|
|
1205
|
-
);
|
|
1206
|
-
}
|
|
1207
|
-
);
|
|
1208
|
-
zt.displayName = Jr;
|
|
1209
|
-
var eo = "MenuArrow", Zt = o.forwardRef(
|
|
1210
|
-
(e, t) => {
|
|
1211
|
-
const { __scopeMenu: n, ...r } = e, a = be(n);
|
|
1212
|
-
return /* @__PURE__ */ l(sr, { ...a, ...r, ref: t });
|
|
1213
|
-
}
|
|
1214
|
-
);
|
|
1215
|
-
Zt.displayName = eo;
|
|
1216
|
-
var to = "MenuSub", [Qo, qt] = j(to), ie = "MenuSubTrigger", Qt = o.forwardRef(
|
|
1217
|
-
(e, t) => {
|
|
1218
|
-
const n = z(ie, e.__scopeMenu), r = pe(ie, e.__scopeMenu), a = qt(ie, e.__scopeMenu), c = $e(ie, e.__scopeMenu), u = o.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: m } = c, p = { __scopeMenu: e.__scopeMenu }, v = o.useCallback(() => {
|
|
1219
|
-
u.current && window.clearTimeout(u.current), u.current = null;
|
|
1220
|
-
}, []);
|
|
1221
|
-
return o.useEffect(() => v, [v]), o.useEffect(() => {
|
|
1222
|
-
const d = s.current;
|
|
1223
|
-
return () => {
|
|
1224
|
-
window.clearTimeout(d), m(null);
|
|
1225
|
-
};
|
|
1226
|
-
}, [s, m]), /* @__PURE__ */ l(Ke, { asChild: !0, ...p, children: /* @__PURE__ */ l(
|
|
1227
|
-
Ut,
|
|
1228
|
-
{
|
|
1229
|
-
id: a.triggerId,
|
|
1230
|
-
"aria-haspopup": "menu",
|
|
1231
|
-
"aria-expanded": n.open,
|
|
1232
|
-
"aria-controls": a.contentId,
|
|
1233
|
-
"data-state": tn(n.open),
|
|
1234
|
-
...e,
|
|
1235
|
-
ref: at(t, a.onTriggerChange),
|
|
1236
|
-
onClick: (d) => {
|
|
1237
|
-
var g;
|
|
1238
|
-
(g = e.onClick) == null || g.call(e, d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1239
|
-
},
|
|
1240
|
-
onPointerMove: S(
|
|
1241
|
-
e.onPointerMove,
|
|
1242
|
-
le((d) => {
|
|
1243
|
-
c.onItemEnter(d), !d.defaultPrevented && !e.disabled && !n.open && !u.current && (c.onPointerGraceIntentChange(null), u.current = window.setTimeout(() => {
|
|
1244
|
-
n.onOpenChange(!0), v();
|
|
1245
|
-
}, 100));
|
|
1246
|
-
})
|
|
1247
|
-
),
|
|
1248
|
-
onPointerLeave: S(
|
|
1249
|
-
e.onPointerLeave,
|
|
1250
|
-
le((d) => {
|
|
1251
|
-
var C, f;
|
|
1252
|
-
v();
|
|
1253
|
-
const g = (C = n.content) == null ? void 0 : C.getBoundingClientRect();
|
|
1254
|
-
if (g) {
|
|
1255
|
-
const i = (f = n.content) == null ? void 0 : f.dataset.side, w = i === "right", h = w ? -5 : 5, M = g[w ? "left" : "right"], R = g[w ? "right" : "left"];
|
|
1256
|
-
c.onPointerGraceIntentChange({
|
|
1257
|
-
area: [
|
|
1258
|
-
// Apply a bleed on clientX to ensure that our exit point is
|
|
1259
|
-
// consistently within polygon bounds
|
|
1260
|
-
{ x: d.clientX + h, y: d.clientY },
|
|
1261
|
-
{ x: M, y: g.top },
|
|
1262
|
-
{ x: R, y: g.top },
|
|
1263
|
-
{ x: R, y: g.bottom },
|
|
1264
|
-
{ x: M, y: g.bottom }
|
|
1265
|
-
],
|
|
1266
|
-
side: i
|
|
1267
|
-
}), window.clearTimeout(s.current), s.current = window.setTimeout(
|
|
1268
|
-
() => c.onPointerGraceIntentChange(null),
|
|
1269
|
-
300
|
|
1270
|
-
);
|
|
1271
|
-
} else {
|
|
1272
|
-
if (c.onTriggerLeave(d), d.defaultPrevented)
|
|
1273
|
-
return;
|
|
1274
|
-
c.onPointerGraceIntentChange(null);
|
|
1275
|
-
}
|
|
1276
|
-
})
|
|
1277
|
-
),
|
|
1278
|
-
onKeyDown: S(e.onKeyDown, (d) => {
|
|
1279
|
-
var C;
|
|
1280
|
-
const g = c.searchRef.current !== "";
|
|
1281
|
-
e.disabled || g && d.key === " " || kr[r.dir].includes(d.key) && (n.onOpenChange(!0), (C = n.content) == null || C.focus(), d.preventDefault());
|
|
1282
|
-
})
|
|
1283
|
-
}
|
|
1284
|
-
) });
|
|
1285
|
-
}
|
|
1286
|
-
);
|
|
1287
|
-
Qt.displayName = ie;
|
|
1288
|
-
var Jt = "MenuSubContent", en = o.forwardRef(
|
|
1289
|
-
(e, t) => {
|
|
1290
|
-
const n = Lt(F, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, c = z(F, e.__scopeMenu), u = pe(F, e.__scopeMenu), s = qt(Jt, e.__scopeMenu), m = o.useRef(null), p = K(t, m);
|
|
1291
|
-
return /* @__PURE__ */ l(ue.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(Me, { present: r || c.open, children: /* @__PURE__ */ l(ue.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(
|
|
1292
|
-
Ue,
|
|
1293
|
-
{
|
|
1294
|
-
id: s.contentId,
|
|
1295
|
-
"aria-labelledby": s.triggerId,
|
|
1296
|
-
...a,
|
|
1297
|
-
ref: p,
|
|
1298
|
-
align: "start",
|
|
1299
|
-
side: u.dir === "rtl" ? "left" : "right",
|
|
1300
|
-
disableOutsidePointerEvents: !1,
|
|
1301
|
-
disableOutsideScroll: !1,
|
|
1302
|
-
trapFocus: !1,
|
|
1303
|
-
onOpenAutoFocus: (v) => {
|
|
1304
|
-
var d;
|
|
1305
|
-
u.isUsingKeyboardRef.current && ((d = m.current) == null || d.focus()), v.preventDefault();
|
|
1306
|
-
},
|
|
1307
|
-
onCloseAutoFocus: (v) => v.preventDefault(),
|
|
1308
|
-
onFocusOutside: S(e.onFocusOutside, (v) => {
|
|
1309
|
-
v.target !== s.trigger && c.onOpenChange(!1);
|
|
1310
|
-
}),
|
|
1311
|
-
onEscapeKeyDown: S(e.onEscapeKeyDown, (v) => {
|
|
1312
|
-
u.onClose(), v.preventDefault();
|
|
1313
|
-
}),
|
|
1314
|
-
onKeyDown: S(e.onKeyDown, (v) => {
|
|
1315
|
-
var C;
|
|
1316
|
-
const d = v.currentTarget.contains(v.target), g = Lr[u.dir].includes(v.key);
|
|
1317
|
-
d && g && (c.onOpenChange(!1), (C = s.trigger) == null || C.focus(), v.preventDefault());
|
|
1318
|
-
})
|
|
1319
|
-
}
|
|
1320
|
-
) }) }) });
|
|
1321
|
-
}
|
|
1322
|
-
);
|
|
1323
|
-
en.displayName = Jt;
|
|
1324
|
-
function tn(e) {
|
|
1325
|
-
return e ? "open" : "closed";
|
|
1326
|
-
}
|
|
1327
|
-
function Ce(e) {
|
|
1328
|
-
return e === "indeterminate";
|
|
1329
|
-
}
|
|
1330
|
-
function He(e) {
|
|
1331
|
-
return Ce(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1332
|
-
}
|
|
1333
|
-
function no(e) {
|
|
1334
|
-
const t = document.activeElement;
|
|
1335
|
-
for (const n of e)
|
|
1336
|
-
if (n === t || (n.focus(), document.activeElement !== t))
|
|
1337
|
-
return;
|
|
1338
|
-
}
|
|
1339
|
-
function ro(e, t) {
|
|
1340
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1341
|
-
}
|
|
1342
|
-
function oo(e, t, n) {
|
|
1343
|
-
const a = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
1344
|
-
let u = ro(e, Math.max(c, 0));
|
|
1345
|
-
a.length === 1 && (u = u.filter((p) => p !== n));
|
|
1346
|
-
const m = u.find(
|
|
1347
|
-
(p) => p.toLowerCase().startsWith(a.toLowerCase())
|
|
1348
|
-
);
|
|
1349
|
-
return m !== n ? m : void 0;
|
|
1350
|
-
}
|
|
1351
|
-
function ao(e, t) {
|
|
1352
|
-
const { x: n, y: r } = e;
|
|
1353
|
-
let a = !1;
|
|
1354
|
-
for (let c = 0, u = t.length - 1; c < t.length; u = c++) {
|
|
1355
|
-
const s = t[c].x, m = t[c].y, p = t[u].x, v = t[u].y;
|
|
1356
|
-
m > r != v > r && n < (p - s) * (r - m) / (v - m) + s && (a = !a);
|
|
1357
|
-
}
|
|
1358
|
-
return a;
|
|
1359
|
-
}
|
|
1360
|
-
function co(e, t) {
|
|
1361
|
-
if (!t)
|
|
1362
|
-
return !1;
|
|
1363
|
-
const n = { x: e.clientX, y: e.clientY };
|
|
1364
|
-
return ao(n, t);
|
|
1365
|
-
}
|
|
1366
|
-
function le(e) {
|
|
1367
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1368
|
-
}
|
|
1369
|
-
var so = kt, io = Ke, uo = Kt, lo = Gt, fo = Be, po = $t, mo = Se, vo = Bt, ho = Ht, go = Xt, wo = jt, Co = zt, Mo = Zt, Eo = Qt, Ro = en, We = "DropdownMenu", [bo, Jo] = de(
|
|
1370
|
-
We,
|
|
1371
|
-
[Ot]
|
|
1372
|
-
), x = Ot(), [So, nn] = bo(We), rn = (e) => {
|
|
1373
|
-
const {
|
|
1374
|
-
__scopeDropdownMenu: t,
|
|
1375
|
-
children: n,
|
|
1376
|
-
dir: r,
|
|
1377
|
-
open: a,
|
|
1378
|
-
defaultOpen: c,
|
|
1379
|
-
onOpenChange: u,
|
|
1380
|
-
modal: s = !0
|
|
1381
|
-
} = e, m = x(t), p = o.useRef(null), [v = !1, d] = ot({
|
|
1382
|
-
prop: a,
|
|
1383
|
-
defaultProp: c,
|
|
1384
|
-
onChange: u
|
|
1385
|
-
});
|
|
1386
|
-
return /* @__PURE__ */ l(
|
|
1387
|
-
So,
|
|
1388
|
-
{
|
|
1389
|
-
scope: t,
|
|
1390
|
-
triggerId: Ne(),
|
|
1391
|
-
triggerRef: p,
|
|
1392
|
-
contentId: Ne(),
|
|
1393
|
-
open: v,
|
|
1394
|
-
onOpenChange: d,
|
|
1395
|
-
onOpenToggle: o.useCallback(() => d((g) => !g), [d]),
|
|
1396
|
-
modal: s,
|
|
1397
|
-
children: /* @__PURE__ */ l(so, { ...m, open: v, onOpenChange: d, dir: r, modal: s, children: n })
|
|
1398
|
-
}
|
|
1399
|
-
);
|
|
1400
|
-
};
|
|
1401
|
-
rn.displayName = We;
|
|
1402
|
-
var on = "DropdownMenuTrigger", an = o.forwardRef(
|
|
1403
|
-
(e, t) => {
|
|
1404
|
-
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, c = nn(on, n), u = x(n);
|
|
1405
|
-
return /* @__PURE__ */ l(io, { asChild: !0, ...u, children: /* @__PURE__ */ l(
|
|
1406
|
-
D.button,
|
|
1407
|
-
{
|
|
1408
|
-
type: "button",
|
|
1409
|
-
id: c.triggerId,
|
|
1410
|
-
"aria-haspopup": "menu",
|
|
1411
|
-
"aria-expanded": c.open,
|
|
1412
|
-
"aria-controls": c.open ? c.contentId : void 0,
|
|
1413
|
-
"data-state": c.open ? "open" : "closed",
|
|
1414
|
-
"data-disabled": r ? "" : void 0,
|
|
1415
|
-
disabled: r,
|
|
1416
|
-
...a,
|
|
1417
|
-
ref: at(t, c.triggerRef),
|
|
1418
|
-
onPointerDown: S(e.onPointerDown, (s) => {
|
|
1419
|
-
!r && s.button === 0 && s.ctrlKey === !1 && (c.onOpenToggle(), c.open || s.preventDefault());
|
|
1420
|
-
}),
|
|
1421
|
-
onKeyDown: S(e.onKeyDown, (s) => {
|
|
1422
|
-
r || (["Enter", " "].includes(s.key) && c.onOpenToggle(), s.key === "ArrowDown" && c.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(s.key) && s.preventDefault());
|
|
1423
|
-
})
|
|
1424
|
-
}
|
|
1425
|
-
) });
|
|
1426
|
-
}
|
|
1427
|
-
);
|
|
1428
|
-
an.displayName = on;
|
|
1429
|
-
var yo = "DropdownMenuPortal", cn = (e) => {
|
|
1430
|
-
const { __scopeDropdownMenu: t, ...n } = e, r = x(t);
|
|
1431
|
-
return /* @__PURE__ */ l(uo, { ...r, ...n });
|
|
1432
|
-
};
|
|
1433
|
-
cn.displayName = yo;
|
|
1434
|
-
var sn = "DropdownMenuContent", un = o.forwardRef(
|
|
1435
|
-
(e, t) => {
|
|
1436
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = nn(sn, n), c = x(n), u = o.useRef(!1);
|
|
1437
|
-
return /* @__PURE__ */ l(
|
|
1438
|
-
lo,
|
|
1439
|
-
{
|
|
1440
|
-
id: a.contentId,
|
|
1441
|
-
"aria-labelledby": a.triggerId,
|
|
1442
|
-
...c,
|
|
1443
|
-
...r,
|
|
1444
|
-
ref: t,
|
|
1445
|
-
onCloseAutoFocus: S(e.onCloseAutoFocus, (s) => {
|
|
1446
|
-
var m;
|
|
1447
|
-
u.current || (m = a.triggerRef.current) == null || m.focus(), u.current = !1, s.preventDefault();
|
|
1448
|
-
}),
|
|
1449
|
-
onInteractOutside: S(e.onInteractOutside, (s) => {
|
|
1450
|
-
const m = s.detail.originalEvent, p = m.button === 0 && m.ctrlKey === !0, v = m.button === 2 || p;
|
|
1451
|
-
(!a.modal || v) && (u.current = !0);
|
|
1452
|
-
}),
|
|
1453
|
-
style: {
|
|
1454
|
-
...e.style,
|
|
1455
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1456
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1457
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1458
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1459
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
);
|
|
1463
|
-
}
|
|
1464
|
-
);
|
|
1465
|
-
un.displayName = sn;
|
|
1466
|
-
var _o = "DropdownMenuGroup", ln = o.forwardRef(
|
|
1467
|
-
(e, t) => {
|
|
1468
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1469
|
-
return /* @__PURE__ */ l(fo, { ...a, ...r, ref: t });
|
|
1470
|
-
}
|
|
1471
|
-
);
|
|
1472
|
-
ln.displayName = _o;
|
|
1473
|
-
var Po = "DropdownMenuLabel", Io = o.forwardRef(
|
|
1474
|
-
(e, t) => {
|
|
1475
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1476
|
-
return /* @__PURE__ */ l(po, { ...a, ...r, ref: t });
|
|
1477
|
-
}
|
|
1478
|
-
);
|
|
1479
|
-
Io.displayName = Po;
|
|
1480
|
-
var Ao = "DropdownMenuItem", dn = o.forwardRef(
|
|
1481
|
-
(e, t) => {
|
|
1482
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1483
|
-
return /* @__PURE__ */ l(mo, { ...a, ...r, ref: t });
|
|
1484
|
-
}
|
|
1485
|
-
);
|
|
1486
|
-
dn.displayName = Ao;
|
|
1487
|
-
var xo = "DropdownMenuCheckboxItem", To = o.forwardRef((e, t) => {
|
|
1488
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1489
|
-
return /* @__PURE__ */ l(vo, { ...a, ...r, ref: t });
|
|
1490
|
-
});
|
|
1491
|
-
To.displayName = xo;
|
|
1492
|
-
var No = "DropdownMenuRadioGroup", Do = o.forwardRef((e, t) => {
|
|
1493
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1494
|
-
return /* @__PURE__ */ l(ho, { ...a, ...r, ref: t });
|
|
1495
|
-
});
|
|
1496
|
-
Do.displayName = No;
|
|
1497
|
-
var Oo = "DropdownMenuRadioItem", Fo = o.forwardRef((e, t) => {
|
|
1498
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1499
|
-
return /* @__PURE__ */ l(go, { ...a, ...r, ref: t });
|
|
1500
|
-
});
|
|
1501
|
-
Fo.displayName = Oo;
|
|
1502
|
-
var ko = "DropdownMenuItemIndicator", Lo = o.forwardRef((e, t) => {
|
|
1503
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1504
|
-
return /* @__PURE__ */ l(wo, { ...a, ...r, ref: t });
|
|
1505
|
-
});
|
|
1506
|
-
Lo.displayName = ko;
|
|
1507
|
-
var Ko = "DropdownMenuSeparator", fn = o.forwardRef((e, t) => {
|
|
1508
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1509
|
-
return /* @__PURE__ */ l(Co, { ...a, ...r, ref: t });
|
|
1510
|
-
});
|
|
1511
|
-
fn.displayName = Ko;
|
|
1512
|
-
var Go = "DropdownMenuArrow", $o = o.forwardRef(
|
|
1513
|
-
(e, t) => {
|
|
1514
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1515
|
-
return /* @__PURE__ */ l(Mo, { ...a, ...r, ref: t });
|
|
1516
|
-
}
|
|
1517
|
-
);
|
|
1518
|
-
$o.displayName = Go;
|
|
1519
|
-
var Uo = "DropdownMenuSubTrigger", Bo = o.forwardRef((e, t) => {
|
|
1520
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1521
|
-
return /* @__PURE__ */ l(Eo, { ...a, ...r, ref: t });
|
|
1522
|
-
});
|
|
1523
|
-
Bo.displayName = Uo;
|
|
1524
|
-
var Yo = "DropdownMenuSubContent", Ho = o.forwardRef((e, t) => {
|
|
1525
|
-
const { __scopeDropdownMenu: n, ...r } = e, a = x(n);
|
|
1526
|
-
return /* @__PURE__ */ l(
|
|
1527
|
-
Ro,
|
|
1528
|
-
{
|
|
1529
|
-
...a,
|
|
1530
|
-
...r,
|
|
1531
|
-
ref: t,
|
|
1532
|
-
style: {
|
|
1533
|
-
...e.style,
|
|
1534
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1535
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1536
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1537
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1538
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
);
|
|
1542
|
-
});
|
|
1543
|
-
Ho.displayName = Yo;
|
|
1544
|
-
var ea = rn, ta = an, na = cn, ra = un, oa = ln, aa = dn, ca = fn;
|
|
1545
|
-
export {
|
|
1546
|
-
ra as C,
|
|
1547
|
-
ut as F,
|
|
1548
|
-
oa as G,
|
|
1549
|
-
aa as I,
|
|
1550
|
-
na as P,
|
|
1551
|
-
ea as R,
|
|
1552
|
-
ca as S,
|
|
1553
|
-
ta as T,
|
|
1554
|
-
Dr as a,
|
|
1555
|
-
ct as b,
|
|
1556
|
-
Bn as u
|
|
1557
|
-
};
|