@aivex/ui 1.2.0-dev.22 → 1.2.0-dev.24
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/{Button-B6WM7faP.js → Button-BSJwb59G.js} +310 -2177
- package/dist/Button-BSJwb59G.js.map +1 -0
- package/dist/Button-OQscp8mY.cjs +2 -0
- package/dist/Button-OQscp8mY.cjs.map +1 -0
- package/dist/IconButton-Cl3T7MUr.cjs +2 -0
- package/dist/IconButton-Cl3T7MUr.cjs.map +1 -0
- package/dist/IconButton-DyUOtz87.js +208 -0
- package/dist/IconButton-DyUOtz87.js.map +1 -0
- package/dist/Switch-DP8FRLJK.cjs +2 -0
- package/dist/Switch-DP8FRLJK.cjs.map +1 -0
- package/dist/Switch-rIEhz2pk.js +325 -0
- package/dist/Switch-rIEhz2pk.js.map +1 -0
- package/dist/comment.cjs +1 -113
- package/dist/comment.cjs.map +1 -1
- package/dist/comment.js +105 -13466
- package/dist/comment.js.map +1 -1
- package/dist/components/DataGrid/DataGridRows.d.ts +7 -0
- package/dist/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/components/DraggableScroll/DraggableScroll.d.ts +6 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +3 -1
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +4 -8
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +5 -1
- package/dist/components/ShapeEditor/_model/props.d.ts +8 -1
- package/dist/components/ShapeEditor/index.d.ts +1 -1
- package/dist/index.cjs +1 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1449 -8456
- package/dist/index.js.map +1 -1
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +1370 -1359
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -1
- package/dist/Button-B6WM7faP.js.map +0 -1
- package/dist/Button-C4WtB38c.cjs +0 -2
- package/dist/Button-C4WtB38c.cjs.map +0 -1
- package/dist/IconButton-CuO-3IXh.cjs +0 -2
- package/dist/IconButton-CuO-3IXh.cjs.map +0 -1
- package/dist/IconButton-pgdAaijX.js +0 -560
- package/dist/IconButton-pgdAaijX.js.map +0 -1
- package/dist/Switch-CtjEelTs.cjs +0 -42
- package/dist/Switch-CtjEelTs.cjs.map +0 -1
- package/dist/Switch-rKD8bdwo.js +0 -2537
- package/dist/Switch-rKD8bdwo.js.map +0 -1
package/dist/Switch-rKD8bdwo.js
DELETED
|
@@ -1,2537 +0,0 @@
|
|
|
1
|
-
import { Aa as e, Ca as t, Da as n, Ea as r, Fa as i, Ia as a, La as o, Ma as s, Oa as c, Pa as l, Sa as u, Ta as d, Wt as f, _a as p, ba as m, da as h, dt as g, fa as _, ga as v, ha as y, ja as b, ka as x, ma as S, pa as C, va as w, wa as T, xa as E, ya as D } from "./Button-B6WM7faP.js";
|
|
2
|
-
import { cva as ee } from "class-variance-authority";
|
|
3
|
-
import * as O from "react";
|
|
4
|
-
import k, { useId as A, useMemo as te, useState as j } from "react";
|
|
5
|
-
import { Fragment as ne, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
6
|
-
import { createSlot as re } from "@radix-ui/react-slot";
|
|
7
|
-
//#region node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+r_77c072394032ab0bbbc95bc0564e2b30/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
8
|
-
function ie(e) {
|
|
9
|
-
let t = e + "CollectionProvider", [n, r] = l(t), [i, o] = n(t, {
|
|
10
|
-
collectionRef: { current: null },
|
|
11
|
-
itemMap: /* @__PURE__ */ new Map()
|
|
12
|
-
}), s = (e) => {
|
|
13
|
-
let { scope: t, children: n } = e, r = k.useRef(null), a = k.useRef(/* @__PURE__ */ new Map()).current;
|
|
14
|
-
return /* @__PURE__ */ M(i, {
|
|
15
|
-
scope: t,
|
|
16
|
-
itemMap: a,
|
|
17
|
-
collectionRef: r,
|
|
18
|
-
children: n
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
s.displayName = t;
|
|
22
|
-
let c = e + "CollectionSlot", u = re(c), d = k.forwardRef((e, t) => {
|
|
23
|
-
let { scope: n, children: r } = e;
|
|
24
|
-
return /* @__PURE__ */ M(u, {
|
|
25
|
-
ref: a(t, o(c, n).collectionRef),
|
|
26
|
-
children: r
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
d.displayName = c;
|
|
30
|
-
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = re(f), h = k.forwardRef((e, t) => {
|
|
31
|
-
let { scope: n, children: r, ...i } = e, s = k.useRef(null), c = a(t, s), l = o(f, n);
|
|
32
|
-
return k.useEffect(() => (l.itemMap.set(s, {
|
|
33
|
-
ref: s,
|
|
34
|
-
...i
|
|
35
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ M(m, {
|
|
36
|
-
[p]: "",
|
|
37
|
-
ref: c,
|
|
38
|
-
children: r
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
h.displayName = f;
|
|
42
|
-
function g(t) {
|
|
43
|
-
let n = o(e + "CollectionConsumer", t);
|
|
44
|
-
return k.useCallback(() => {
|
|
45
|
-
let e = n.collectionRef.current;
|
|
46
|
-
if (!e) return [];
|
|
47
|
-
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
48
|
-
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
49
|
-
}, [n.collectionRef, n.itemMap]);
|
|
50
|
-
}
|
|
51
|
-
return [
|
|
52
|
-
{
|
|
53
|
-
Provider: s,
|
|
54
|
-
Slot: d,
|
|
55
|
-
ItemSlot: h
|
|
56
|
-
},
|
|
57
|
-
g,
|
|
58
|
-
r
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
63
|
-
var ae = O.createContext(void 0);
|
|
64
|
-
function P(e) {
|
|
65
|
-
let t = O.useContext(ae);
|
|
66
|
-
return e || t || "ltr";
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
70
|
-
var oe = 0;
|
|
71
|
-
function se() {
|
|
72
|
-
O.useEffect(() => {
|
|
73
|
-
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
74
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ce()), document.body.insertAdjacentElement("beforeend", e[1] ?? ce()), oe++, () => {
|
|
75
|
-
oe === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), oe--;
|
|
76
|
-
};
|
|
77
|
-
}, []);
|
|
78
|
-
}
|
|
79
|
-
function ce() {
|
|
80
|
-
let e = document.createElement("span");
|
|
81
|
-
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;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types_e60b43ba8965db89e83f29772a75dac0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
85
|
-
var le = "focusScope.autoFocusOnMount", ue = "focusScope.autoFocusOnUnmount", de = {
|
|
86
|
-
bubbles: !1,
|
|
87
|
-
cancelable: !0
|
|
88
|
-
}, fe = "FocusScope", pe = O.forwardRef((t, n) => {
|
|
89
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = O.useState(null), u = x(a), d = x(o), f = O.useRef(null), p = e(n, (e) => l(e)), m = O.useRef({
|
|
90
|
-
paused: !1,
|
|
91
|
-
pause() {
|
|
92
|
-
this.paused = !0;
|
|
93
|
-
},
|
|
94
|
-
resume() {
|
|
95
|
-
this.paused = !1;
|
|
96
|
-
}
|
|
97
|
-
}).current;
|
|
98
|
-
O.useEffect(() => {
|
|
99
|
-
if (i) {
|
|
100
|
-
let e = function(e) {
|
|
101
|
-
if (m.paused || !c) return;
|
|
102
|
-
let t = e.target;
|
|
103
|
-
c.contains(t) ? f.current = t : F(f.current, { select: !0 });
|
|
104
|
-
}, t = function(e) {
|
|
105
|
-
if (m.paused || !c) return;
|
|
106
|
-
let t = e.relatedTarget;
|
|
107
|
-
t !== null && (c.contains(t) || F(f.current, { select: !0 }));
|
|
108
|
-
}, n = function(e) {
|
|
109
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && F(c);
|
|
110
|
-
};
|
|
111
|
-
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
112
|
-
let r = new MutationObserver(n);
|
|
113
|
-
return c && r.observe(c, {
|
|
114
|
-
childList: !0,
|
|
115
|
-
subtree: !0
|
|
116
|
-
}), () => {
|
|
117
|
-
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
}, [
|
|
121
|
-
i,
|
|
122
|
-
c,
|
|
123
|
-
m.paused
|
|
124
|
-
]), O.useEffect(() => {
|
|
125
|
-
if (c) {
|
|
126
|
-
be.add(m);
|
|
127
|
-
let e = document.activeElement;
|
|
128
|
-
if (!c.contains(e)) {
|
|
129
|
-
let t = new CustomEvent(le, de);
|
|
130
|
-
c.addEventListener(le, u), c.dispatchEvent(t), t.defaultPrevented || (me(Ce(ge(c)), { select: !0 }), document.activeElement === e && F(c));
|
|
131
|
-
}
|
|
132
|
-
return () => {
|
|
133
|
-
c.removeEventListener(le, u), setTimeout(() => {
|
|
134
|
-
let t = new CustomEvent(ue, de);
|
|
135
|
-
c.addEventListener(ue, d), c.dispatchEvent(t), t.defaultPrevented || F(e ?? document.body, { select: !0 }), c.removeEventListener(ue, d), be.remove(m);
|
|
136
|
-
}, 0);
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
}, [
|
|
140
|
-
c,
|
|
141
|
-
u,
|
|
142
|
-
d,
|
|
143
|
-
m
|
|
144
|
-
]);
|
|
145
|
-
let h = O.useCallback((e) => {
|
|
146
|
-
if (!r && !i || m.paused) return;
|
|
147
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
148
|
-
if (t && n) {
|
|
149
|
-
let t = e.currentTarget, [i, a] = he(t);
|
|
150
|
-
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && F(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && F(a, { select: !0 })) : n === t && e.preventDefault();
|
|
151
|
-
}
|
|
152
|
-
}, [
|
|
153
|
-
r,
|
|
154
|
-
i,
|
|
155
|
-
m.paused
|
|
156
|
-
]);
|
|
157
|
-
return /* @__PURE__ */ M(b.div, {
|
|
158
|
-
tabIndex: -1,
|
|
159
|
-
...s,
|
|
160
|
-
ref: p,
|
|
161
|
-
onKeyDown: h
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
pe.displayName = fe;
|
|
165
|
-
function me(e, { select: t = !1 } = {}) {
|
|
166
|
-
let n = document.activeElement;
|
|
167
|
-
for (let r of e) if (F(r, { select: t }), document.activeElement !== n) return;
|
|
168
|
-
}
|
|
169
|
-
function he(e) {
|
|
170
|
-
let t = ge(e);
|
|
171
|
-
return [_e(t, e), _e(t.reverse(), e)];
|
|
172
|
-
}
|
|
173
|
-
function ge(e) {
|
|
174
|
-
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
175
|
-
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
176
|
-
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
177
|
-
} });
|
|
178
|
-
for (; n.nextNode();) t.push(n.currentNode);
|
|
179
|
-
return t;
|
|
180
|
-
}
|
|
181
|
-
function _e(e, t) {
|
|
182
|
-
for (let n of e) if (!ve(n, { upTo: t })) return n;
|
|
183
|
-
}
|
|
184
|
-
function ve(e, { upTo: t }) {
|
|
185
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
186
|
-
for (; e;) {
|
|
187
|
-
if (t !== void 0 && e === t) return !1;
|
|
188
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
189
|
-
e = e.parentElement;
|
|
190
|
-
}
|
|
191
|
-
return !1;
|
|
192
|
-
}
|
|
193
|
-
function ye(e) {
|
|
194
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
195
|
-
}
|
|
196
|
-
function F(e, { select: t = !1 } = {}) {
|
|
197
|
-
if (e && e.focus) {
|
|
198
|
-
let n = document.activeElement;
|
|
199
|
-
e.focus({ preventScroll: !0 }), e !== n && ye(e) && t && e.select();
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
var be = xe();
|
|
203
|
-
function xe() {
|
|
204
|
-
let e = [];
|
|
205
|
-
return {
|
|
206
|
-
add(t) {
|
|
207
|
-
let n = e[0];
|
|
208
|
-
t !== n && n?.pause(), e = Se(e, t), e.unshift(t);
|
|
209
|
-
},
|
|
210
|
-
remove(t) {
|
|
211
|
-
e = Se(e, t), e[0]?.resume();
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function Se(e, t) {
|
|
216
|
-
let n = [...e], r = n.indexOf(t);
|
|
217
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
218
|
-
}
|
|
219
|
-
function Ce(e) {
|
|
220
|
-
return e.filter((e) => e.tagName !== "A");
|
|
221
|
-
}
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
224
|
-
function I(e) {
|
|
225
|
-
let t = O.useRef(e);
|
|
226
|
-
return O.useEffect(() => {
|
|
227
|
-
t.current = e;
|
|
228
|
-
}), O.useMemo(() => (...e) => t.current?.(...e), []);
|
|
229
|
-
}
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@type_9d0b8dcb46d97f81693e9755c8aa9b77/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
232
|
-
var we = "rovingFocusGroup.onEntryFocus", Te = {
|
|
233
|
-
bubbles: !1,
|
|
234
|
-
cancelable: !0
|
|
235
|
-
}, L = "RovingFocusGroup", [Ee, De, Oe] = ie(L), [ke, Ae] = l(L, [Oe]), [je, Me] = ke(L), Ne = O.forwardRef((e, t) => /* @__PURE__ */ M(Ee.Provider, {
|
|
236
|
-
scope: e.__scopeRovingFocusGroup,
|
|
237
|
-
children: /* @__PURE__ */ M(Ee.Slot, {
|
|
238
|
-
scope: e.__scopeRovingFocusGroup,
|
|
239
|
-
children: /* @__PURE__ */ M(Pe, {
|
|
240
|
-
...e,
|
|
241
|
-
ref: t
|
|
242
|
-
})
|
|
243
|
-
})
|
|
244
|
-
}));
|
|
245
|
-
Ne.displayName = L;
|
|
246
|
-
var Pe = O.forwardRef((e, t) => {
|
|
247
|
-
let { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: u, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...p } = e, m = O.useRef(null), h = a(t, m), g = P(s), [_, y] = C({
|
|
248
|
-
prop: c,
|
|
249
|
-
defaultProp: l ?? null,
|
|
250
|
-
onChange: u,
|
|
251
|
-
caller: L
|
|
252
|
-
}), [b, x] = O.useState(!1), S = I(d), w = De(n), T = O.useRef(!1), [E, D] = O.useState(0);
|
|
253
|
-
return O.useEffect(() => {
|
|
254
|
-
let e = m.current;
|
|
255
|
-
if (e) return e.addEventListener(we, S), () => e.removeEventListener(we, S);
|
|
256
|
-
}, [S]), /* @__PURE__ */ M(je, {
|
|
257
|
-
scope: n,
|
|
258
|
-
orientation: r,
|
|
259
|
-
dir: g,
|
|
260
|
-
loop: i,
|
|
261
|
-
currentTabStopId: _,
|
|
262
|
-
onItemFocus: O.useCallback((e) => y(e), [y]),
|
|
263
|
-
onItemShiftTab: O.useCallback(() => x(!0), []),
|
|
264
|
-
onFocusableItemAdd: O.useCallback(() => D((e) => e + 1), []),
|
|
265
|
-
onFocusableItemRemove: O.useCallback(() => D((e) => e - 1), []),
|
|
266
|
-
children: /* @__PURE__ */ M(v.div, {
|
|
267
|
-
tabIndex: b || E === 0 ? -1 : 0,
|
|
268
|
-
"data-orientation": r,
|
|
269
|
-
...p,
|
|
270
|
-
ref: h,
|
|
271
|
-
style: {
|
|
272
|
-
outline: "none",
|
|
273
|
-
...e.style
|
|
274
|
-
},
|
|
275
|
-
onMouseDown: o(e.onMouseDown, () => {
|
|
276
|
-
T.current = !0;
|
|
277
|
-
}),
|
|
278
|
-
onFocus: o(e.onFocus, (e) => {
|
|
279
|
-
let t = !T.current;
|
|
280
|
-
if (e.target === e.currentTarget && t && !b) {
|
|
281
|
-
let t = new CustomEvent(we, Te);
|
|
282
|
-
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
283
|
-
let e = w().filter((e) => e.focusable);
|
|
284
|
-
Be([
|
|
285
|
-
e.find((e) => e.active),
|
|
286
|
-
e.find((e) => e.id === _),
|
|
287
|
-
...e
|
|
288
|
-
].filter(Boolean).map((e) => e.ref.current), f);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
T.current = !1;
|
|
292
|
-
}),
|
|
293
|
-
onBlur: o(e.onBlur, () => x(!1))
|
|
294
|
-
})
|
|
295
|
-
});
|
|
296
|
-
}), Fe = "RovingFocusGroupItem", Ie = O.forwardRef((e, t) => {
|
|
297
|
-
let { __scopeRovingFocusGroup: n, focusable: i = !0, active: a = !1, tabStopId: s, children: c, ...l } = e, u = r(), d = s || u, f = Me(Fe, n), p = f.currentTabStopId === d, m = De(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: _ } = f;
|
|
298
|
-
return O.useEffect(() => {
|
|
299
|
-
if (i) return h(), () => g();
|
|
300
|
-
}, [
|
|
301
|
-
i,
|
|
302
|
-
h,
|
|
303
|
-
g
|
|
304
|
-
]), /* @__PURE__ */ M(Ee.ItemSlot, {
|
|
305
|
-
scope: n,
|
|
306
|
-
id: d,
|
|
307
|
-
focusable: i,
|
|
308
|
-
active: a,
|
|
309
|
-
children: /* @__PURE__ */ M(v.span, {
|
|
310
|
-
tabIndex: p ? 0 : -1,
|
|
311
|
-
"data-orientation": f.orientation,
|
|
312
|
-
...l,
|
|
313
|
-
ref: t,
|
|
314
|
-
onMouseDown: o(e.onMouseDown, (e) => {
|
|
315
|
-
i ? f.onItemFocus(d) : e.preventDefault();
|
|
316
|
-
}),
|
|
317
|
-
onFocus: o(e.onFocus, () => f.onItemFocus(d)),
|
|
318
|
-
onKeyDown: o(e.onKeyDown, (e) => {
|
|
319
|
-
if (e.key === "Tab" && e.shiftKey) {
|
|
320
|
-
f.onItemShiftTab();
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
if (e.target !== e.currentTarget) return;
|
|
324
|
-
let t = ze(e, f.orientation, f.dir);
|
|
325
|
-
if (t !== void 0) {
|
|
326
|
-
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
327
|
-
e.preventDefault();
|
|
328
|
-
let n = m().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
329
|
-
if (t === "last") n.reverse();
|
|
330
|
-
else if (t === "prev" || t === "next") {
|
|
331
|
-
t === "prev" && n.reverse();
|
|
332
|
-
let r = n.indexOf(e.currentTarget);
|
|
333
|
-
n = f.loop ? Ve(n, r + 1) : n.slice(r + 1);
|
|
334
|
-
}
|
|
335
|
-
setTimeout(() => Be(n));
|
|
336
|
-
}
|
|
337
|
-
}),
|
|
338
|
-
children: typeof c == "function" ? c({
|
|
339
|
-
isCurrentTabStop: p,
|
|
340
|
-
hasTabStop: _ != null
|
|
341
|
-
}) : c
|
|
342
|
-
})
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
Ie.displayName = Fe;
|
|
346
|
-
var Le = {
|
|
347
|
-
ArrowLeft: "prev",
|
|
348
|
-
ArrowUp: "prev",
|
|
349
|
-
ArrowRight: "next",
|
|
350
|
-
ArrowDown: "next",
|
|
351
|
-
PageUp: "first",
|
|
352
|
-
Home: "first",
|
|
353
|
-
PageDown: "last",
|
|
354
|
-
End: "last"
|
|
355
|
-
};
|
|
356
|
-
function Re(e, t) {
|
|
357
|
-
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
358
|
-
}
|
|
359
|
-
function ze(e, t, n) {
|
|
360
|
-
let r = Re(e.key, n);
|
|
361
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Le[r];
|
|
362
|
-
}
|
|
363
|
-
function Be(e, t = !1) {
|
|
364
|
-
let n = document.activeElement;
|
|
365
|
-
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
366
|
-
}
|
|
367
|
-
function Ve(e, t) {
|
|
368
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
369
|
-
}
|
|
370
|
-
var He = Ne, Ue = Ie, We = function(e) {
|
|
371
|
-
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
372
|
-
}, R = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ke = {}, qe = 0, Je = function(e) {
|
|
373
|
-
return e && (e.host || Je(e.parentNode));
|
|
374
|
-
}, Ye = function(e, t) {
|
|
375
|
-
return t.map(function(t) {
|
|
376
|
-
if (e.contains(t)) return t;
|
|
377
|
-
var n = Je(t);
|
|
378
|
-
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
379
|
-
}).filter(function(e) {
|
|
380
|
-
return !!e;
|
|
381
|
-
});
|
|
382
|
-
}, Xe = function(e, t, n, r) {
|
|
383
|
-
var i = Ye(t, Array.isArray(e) ? e : [e]);
|
|
384
|
-
Ke[n] || (Ke[n] = /* @__PURE__ */ new WeakMap());
|
|
385
|
-
var a = Ke[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
386
|
-
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
387
|
-
};
|
|
388
|
-
i.forEach(l);
|
|
389
|
-
var u = function(e) {
|
|
390
|
-
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
391
|
-
if (s.has(e)) u(e);
|
|
392
|
-
else try {
|
|
393
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (R.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
394
|
-
R.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Ge.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
395
|
-
} catch (t) {
|
|
396
|
-
console.error("aria-hidden: cannot operate on ", e, t);
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
return u(t), s.clear(), qe++, function() {
|
|
401
|
-
o.forEach(function(e) {
|
|
402
|
-
var t = R.get(e) - 1, i = a.get(e) - 1;
|
|
403
|
-
R.set(e, t), a.set(e, i), t || (Ge.has(e) || e.removeAttribute(r), Ge.delete(e)), i || e.removeAttribute(n);
|
|
404
|
-
}), qe--, qe || (R = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ke = {});
|
|
405
|
-
};
|
|
406
|
-
}, Ze = function(e, t, n) {
|
|
407
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
408
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || We(e);
|
|
409
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Xe(r, i, n, "aria-hidden")) : function() {
|
|
410
|
-
return null;
|
|
411
|
-
};
|
|
412
|
-
}, z = function() {
|
|
413
|
-
return z = Object.assign || function(e) {
|
|
414
|
-
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
415
|
-
return e;
|
|
416
|
-
}, z.apply(this, arguments);
|
|
417
|
-
};
|
|
418
|
-
function Qe(e, t) {
|
|
419
|
-
var n = {};
|
|
420
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
421
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
422
|
-
return n;
|
|
423
|
-
}
|
|
424
|
-
function $e(e, t, n) {
|
|
425
|
-
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
426
|
-
return e.concat(a || Array.prototype.slice.call(t));
|
|
427
|
-
}
|
|
428
|
-
//#endregion
|
|
429
|
-
//#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
430
|
-
var et = "right-scroll-bar-position", tt = "width-before-scroll-bar", nt = "with-scroll-bars-hidden", rt = "--removed-body-scroll-bar-size";
|
|
431
|
-
//#endregion
|
|
432
|
-
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.5/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
433
|
-
function it(e, t) {
|
|
434
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
435
|
-
}
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.5/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
438
|
-
function at(e, t) {
|
|
439
|
-
var n = j(function() {
|
|
440
|
-
return {
|
|
441
|
-
value: e,
|
|
442
|
-
callback: t,
|
|
443
|
-
facade: {
|
|
444
|
-
get current() {
|
|
445
|
-
return n.value;
|
|
446
|
-
},
|
|
447
|
-
set current(e) {
|
|
448
|
-
var t = n.value;
|
|
449
|
-
t !== e && (n.value = e, n.callback(e, t));
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
})[0];
|
|
454
|
-
return n.callback = t, n.facade;
|
|
455
|
-
}
|
|
456
|
-
//#endregion
|
|
457
|
-
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.5/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
458
|
-
var ot = typeof window < "u" ? O.useLayoutEffect : O.useEffect, st = /* @__PURE__ */ new WeakMap();
|
|
459
|
-
function ct(e, t) {
|
|
460
|
-
var n = at(t || null, function(t) {
|
|
461
|
-
return e.forEach(function(e) {
|
|
462
|
-
return it(e, t);
|
|
463
|
-
});
|
|
464
|
-
});
|
|
465
|
-
return ot(function() {
|
|
466
|
-
var t = st.get(n);
|
|
467
|
-
if (t) {
|
|
468
|
-
var r = new Set(t), i = new Set(e), a = n.current;
|
|
469
|
-
r.forEach(function(e) {
|
|
470
|
-
i.has(e) || it(e, null);
|
|
471
|
-
}), i.forEach(function(e) {
|
|
472
|
-
r.has(e) || it(e, a);
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
st.set(n, e);
|
|
476
|
-
}, [e]), n;
|
|
477
|
-
}
|
|
478
|
-
//#endregion
|
|
479
|
-
//#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.5/node_modules/use-sidecar/dist/es2015/medium.js
|
|
480
|
-
function lt(e) {
|
|
481
|
-
return e;
|
|
482
|
-
}
|
|
483
|
-
function ut(e, t) {
|
|
484
|
-
t === void 0 && (t = lt);
|
|
485
|
-
var n = [], r = !1;
|
|
486
|
-
return {
|
|
487
|
-
read: function() {
|
|
488
|
-
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
489
|
-
return n.length ? n[n.length - 1] : e;
|
|
490
|
-
},
|
|
491
|
-
useMedium: function(e) {
|
|
492
|
-
var i = t(e, r);
|
|
493
|
-
return n.push(i), function() {
|
|
494
|
-
n = n.filter(function(e) {
|
|
495
|
-
return e !== i;
|
|
496
|
-
});
|
|
497
|
-
};
|
|
498
|
-
},
|
|
499
|
-
assignSyncMedium: function(e) {
|
|
500
|
-
for (r = !0; n.length;) {
|
|
501
|
-
var t = n;
|
|
502
|
-
n = [], t.forEach(e);
|
|
503
|
-
}
|
|
504
|
-
n = {
|
|
505
|
-
push: function(t) {
|
|
506
|
-
return e(t);
|
|
507
|
-
},
|
|
508
|
-
filter: function() {
|
|
509
|
-
return n;
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
},
|
|
513
|
-
assignMedium: function(e) {
|
|
514
|
-
r = !0;
|
|
515
|
-
var t = [];
|
|
516
|
-
if (n.length) {
|
|
517
|
-
var i = n;
|
|
518
|
-
n = [], i.forEach(e), t = n;
|
|
519
|
-
}
|
|
520
|
-
var a = function() {
|
|
521
|
-
var n = t;
|
|
522
|
-
t = [], n.forEach(e);
|
|
523
|
-
}, o = function() {
|
|
524
|
-
return Promise.resolve().then(a);
|
|
525
|
-
};
|
|
526
|
-
o(), n = {
|
|
527
|
-
push: function(e) {
|
|
528
|
-
t.push(e), o();
|
|
529
|
-
},
|
|
530
|
-
filter: function(e) {
|
|
531
|
-
return t = t.filter(e), n;
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
function dt(e) {
|
|
538
|
-
e === void 0 && (e = {});
|
|
539
|
-
var t = ut(null);
|
|
540
|
-
return t.options = z({
|
|
541
|
-
async: !0,
|
|
542
|
-
ssr: !1
|
|
543
|
-
}, e), t;
|
|
544
|
-
}
|
|
545
|
-
//#endregion
|
|
546
|
-
//#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.5/node_modules/use-sidecar/dist/es2015/exports.js
|
|
547
|
-
var ft = function(e) {
|
|
548
|
-
var t = e.sideCar, n = Qe(e, ["sideCar"]);
|
|
549
|
-
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
550
|
-
var r = t.read();
|
|
551
|
-
if (!r) throw Error("Sidecar medium not found");
|
|
552
|
-
return O.createElement(r, z({}, n));
|
|
553
|
-
};
|
|
554
|
-
ft.isSideCarExport = !0;
|
|
555
|
-
function pt(e, t) {
|
|
556
|
-
return e.useMedium(t), ft;
|
|
557
|
-
}
|
|
558
|
-
//#endregion
|
|
559
|
-
//#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
560
|
-
var mt = dt(), ht = function() {}, gt = O.forwardRef(function(e, t) {
|
|
561
|
-
var n = O.useRef(null), r = O.useState({
|
|
562
|
-
onScrollCapture: ht,
|
|
563
|
-
onWheelCapture: ht,
|
|
564
|
-
onTouchMoveCapture: ht
|
|
565
|
-
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b = Qe(e, [
|
|
566
|
-
"forwardProps",
|
|
567
|
-
"children",
|
|
568
|
-
"className",
|
|
569
|
-
"removeScrollBar",
|
|
570
|
-
"enabled",
|
|
571
|
-
"shards",
|
|
572
|
-
"sideCar",
|
|
573
|
-
"noRelative",
|
|
574
|
-
"noIsolation",
|
|
575
|
-
"inert",
|
|
576
|
-
"allowPinchZoom",
|
|
577
|
-
"as",
|
|
578
|
-
"gapMode"
|
|
579
|
-
]), x = f, S = ct([n, t]), C = z(z({}, b), i);
|
|
580
|
-
return O.createElement(O.Fragment, null, u && O.createElement(x, {
|
|
581
|
-
sideCar: mt,
|
|
582
|
-
removeScrollBar: l,
|
|
583
|
-
shards: d,
|
|
584
|
-
noRelative: p,
|
|
585
|
-
noIsolation: m,
|
|
586
|
-
inert: h,
|
|
587
|
-
setCallbacks: a,
|
|
588
|
-
allowPinchZoom: !!g,
|
|
589
|
-
lockRef: n,
|
|
590
|
-
gapMode: y
|
|
591
|
-
}), o ? O.cloneElement(O.Children.only(s), z(z({}, C), { ref: S })) : O.createElement(v, z({}, C, {
|
|
592
|
-
className: c,
|
|
593
|
-
ref: S
|
|
594
|
-
}), s));
|
|
595
|
-
});
|
|
596
|
-
gt.defaultProps = {
|
|
597
|
-
enabled: !0,
|
|
598
|
-
removeScrollBar: !0,
|
|
599
|
-
inert: !1
|
|
600
|
-
}, gt.classNames = {
|
|
601
|
-
fullWidth: tt,
|
|
602
|
-
zeroRight: et
|
|
603
|
-
};
|
|
604
|
-
//#endregion
|
|
605
|
-
//#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
606
|
-
var _t, vt = function() {
|
|
607
|
-
if (_t) return _t;
|
|
608
|
-
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
609
|
-
};
|
|
610
|
-
//#endregion
|
|
611
|
-
//#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.2.5/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
612
|
-
function yt() {
|
|
613
|
-
if (!document) return null;
|
|
614
|
-
var e = document.createElement("style");
|
|
615
|
-
e.type = "text/css";
|
|
616
|
-
var t = vt();
|
|
617
|
-
return t && e.setAttribute("nonce", t), e;
|
|
618
|
-
}
|
|
619
|
-
function bt(e, t) {
|
|
620
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
621
|
-
}
|
|
622
|
-
function xt(e) {
|
|
623
|
-
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
624
|
-
}
|
|
625
|
-
var St = function() {
|
|
626
|
-
var e = 0, t = null;
|
|
627
|
-
return {
|
|
628
|
-
add: function(n) {
|
|
629
|
-
e == 0 && (t = yt()) && (bt(t, n), xt(t)), e++;
|
|
630
|
-
},
|
|
631
|
-
remove: function() {
|
|
632
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
}, Ct = function() {
|
|
636
|
-
var e = St();
|
|
637
|
-
return function(t, n) {
|
|
638
|
-
O.useEffect(function() {
|
|
639
|
-
return e.add(t), function() {
|
|
640
|
-
e.remove();
|
|
641
|
-
};
|
|
642
|
-
}, [t && n]);
|
|
643
|
-
};
|
|
644
|
-
}, wt = function() {
|
|
645
|
-
var e = Ct();
|
|
646
|
-
return function(t) {
|
|
647
|
-
var n = t.styles, r = t.dynamic;
|
|
648
|
-
return e(n, r), null;
|
|
649
|
-
};
|
|
650
|
-
}, Tt = {
|
|
651
|
-
left: 0,
|
|
652
|
-
top: 0,
|
|
653
|
-
right: 0,
|
|
654
|
-
gap: 0
|
|
655
|
-
}, Et = function(e) {
|
|
656
|
-
return parseInt(e || "", 10) || 0;
|
|
657
|
-
}, Dt = function(e) {
|
|
658
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
659
|
-
return [
|
|
660
|
-
Et(n),
|
|
661
|
-
Et(r),
|
|
662
|
-
Et(i)
|
|
663
|
-
];
|
|
664
|
-
}, Ot = function(e) {
|
|
665
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return Tt;
|
|
666
|
-
var t = Dt(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
667
|
-
return {
|
|
668
|
-
left: t[0],
|
|
669
|
-
top: t[1],
|
|
670
|
-
right: t[2],
|
|
671
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
672
|
-
};
|
|
673
|
-
}, kt = wt(), B = "data-scroll-locked", At = function(e, t, n, r) {
|
|
674
|
-
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
675
|
-
return n === void 0 && (n = "margin"), `
|
|
676
|
-
.${nt} {
|
|
677
|
-
overflow: hidden ${r};
|
|
678
|
-
padding-right: ${s}px ${r};
|
|
679
|
-
}
|
|
680
|
-
body[${B}] {
|
|
681
|
-
overflow: hidden ${r};
|
|
682
|
-
overscroll-behavior: contain;
|
|
683
|
-
${[
|
|
684
|
-
t && `position: relative ${r};`,
|
|
685
|
-
n === "margin" && `
|
|
686
|
-
padding-left: ${i}px;
|
|
687
|
-
padding-top: ${a}px;
|
|
688
|
-
padding-right: ${o}px;
|
|
689
|
-
margin-left:0;
|
|
690
|
-
margin-top:0;
|
|
691
|
-
margin-right: ${s}px ${r};
|
|
692
|
-
`,
|
|
693
|
-
n === "padding" && `padding-right: ${s}px ${r};`
|
|
694
|
-
].filter(Boolean).join("")}
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
.${et} {
|
|
698
|
-
right: ${s}px ${r};
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
.${tt} {
|
|
702
|
-
margin-right: ${s}px ${r};
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
.${et} .${et} {
|
|
706
|
-
right: 0 ${r};
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
.${tt} .${tt} {
|
|
710
|
-
margin-right: 0 ${r};
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
body[${B}] {
|
|
714
|
-
${rt}: ${s}px;
|
|
715
|
-
}
|
|
716
|
-
`;
|
|
717
|
-
}, jt = function() {
|
|
718
|
-
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
719
|
-
return isFinite(e) ? e : 0;
|
|
720
|
-
}, Mt = function() {
|
|
721
|
-
O.useEffect(function() {
|
|
722
|
-
return document.body.setAttribute(B, (jt() + 1).toString()), function() {
|
|
723
|
-
var e = jt() - 1;
|
|
724
|
-
e <= 0 ? document.body.removeAttribute(B) : document.body.setAttribute(B, e.toString());
|
|
725
|
-
};
|
|
726
|
-
}, []);
|
|
727
|
-
}, Nt = function(e) {
|
|
728
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
729
|
-
Mt();
|
|
730
|
-
var a = O.useMemo(function() {
|
|
731
|
-
return Ot(i);
|
|
732
|
-
}, [i]);
|
|
733
|
-
return O.createElement(kt, { styles: At(a, !t, i, n ? "" : "!important") });
|
|
734
|
-
}, Pt = !1;
|
|
735
|
-
if (typeof window < "u") try {
|
|
736
|
-
var Ft = Object.defineProperty({}, "passive", { get: function() {
|
|
737
|
-
return Pt = !0, !0;
|
|
738
|
-
} });
|
|
739
|
-
window.addEventListener("test", Ft, Ft), window.removeEventListener("test", Ft, Ft);
|
|
740
|
-
} catch {
|
|
741
|
-
Pt = !1;
|
|
742
|
-
}
|
|
743
|
-
var V = Pt ? { passive: !1 } : !1, It = function(e) {
|
|
744
|
-
return e.tagName === "TEXTAREA";
|
|
745
|
-
}, Lt = function(e, t) {
|
|
746
|
-
if (!(e instanceof Element)) return !1;
|
|
747
|
-
var n = window.getComputedStyle(e);
|
|
748
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !It(e) && n[t] === "visible");
|
|
749
|
-
}, Rt = function(e) {
|
|
750
|
-
return Lt(e, "overflowY");
|
|
751
|
-
}, zt = function(e) {
|
|
752
|
-
return Lt(e, "overflowX");
|
|
753
|
-
}, Bt = function(e, t) {
|
|
754
|
-
var n = t.ownerDocument, r = t;
|
|
755
|
-
do {
|
|
756
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Ut(e, r)) {
|
|
757
|
-
var i = Wt(e, r);
|
|
758
|
-
if (i[1] > i[2]) return !0;
|
|
759
|
-
}
|
|
760
|
-
r = r.parentNode;
|
|
761
|
-
} while (r && r !== n.body);
|
|
762
|
-
return !1;
|
|
763
|
-
}, Vt = function(e) {
|
|
764
|
-
return [
|
|
765
|
-
e.scrollTop,
|
|
766
|
-
e.scrollHeight,
|
|
767
|
-
e.clientHeight
|
|
768
|
-
];
|
|
769
|
-
}, Ht = function(e) {
|
|
770
|
-
return [
|
|
771
|
-
e.scrollLeft,
|
|
772
|
-
e.scrollWidth,
|
|
773
|
-
e.clientWidth
|
|
774
|
-
];
|
|
775
|
-
}, Ut = function(e, t) {
|
|
776
|
-
return e === "v" ? Rt(t) : zt(t);
|
|
777
|
-
}, Wt = function(e, t) {
|
|
778
|
-
return e === "v" ? Vt(t) : Ht(t);
|
|
779
|
-
}, Gt = function(e, t) {
|
|
780
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
781
|
-
}, Kt = function(e, t, n, r, i) {
|
|
782
|
-
var a = Gt(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
783
|
-
do {
|
|
784
|
-
if (!s) break;
|
|
785
|
-
var p = Wt(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
786
|
-
(m || h) && Ut(e, s) && (d += h, f += m);
|
|
787
|
-
var g = s.parentNode;
|
|
788
|
-
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
789
|
-
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
790
|
-
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
791
|
-
}, qt = function(e) {
|
|
792
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
793
|
-
}, Jt = function(e) {
|
|
794
|
-
return [e.deltaX, e.deltaY];
|
|
795
|
-
}, Yt = function(e) {
|
|
796
|
-
return e && "current" in e ? e.current : e;
|
|
797
|
-
}, Xt = function(e, t) {
|
|
798
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
799
|
-
}, Zt = function(e) {
|
|
800
|
-
return `
|
|
801
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
802
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
803
|
-
`;
|
|
804
|
-
}, Qt = 0, H = [];
|
|
805
|
-
function $t(e) {
|
|
806
|
-
var t = O.useRef([]), n = O.useRef([0, 0]), r = O.useRef(), i = O.useState(Qt++)[0], a = O.useState(wt)[0], o = O.useRef(e);
|
|
807
|
-
O.useEffect(function() {
|
|
808
|
-
o.current = e;
|
|
809
|
-
}, [e]), O.useEffect(function() {
|
|
810
|
-
if (e.inert) {
|
|
811
|
-
document.body.classList.add(`block-interactivity-${i}`);
|
|
812
|
-
var t = $e([e.lockRef.current], (e.shards || []).map(Yt), !0).filter(Boolean);
|
|
813
|
-
return t.forEach(function(e) {
|
|
814
|
-
return e.classList.add(`allow-interactivity-${i}`);
|
|
815
|
-
}), function() {
|
|
816
|
-
document.body.classList.remove(`block-interactivity-${i}`), t.forEach(function(e) {
|
|
817
|
-
return e.classList.remove(`allow-interactivity-${i}`);
|
|
818
|
-
});
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
}, [
|
|
822
|
-
e.inert,
|
|
823
|
-
e.lockRef.current,
|
|
824
|
-
e.shards
|
|
825
|
-
]);
|
|
826
|
-
var s = O.useCallback(function(e, t) {
|
|
827
|
-
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
828
|
-
var i = qt(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
829
|
-
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
830
|
-
var f = window.getSelection(), p = f && f.anchorNode;
|
|
831
|
-
if (p && (p === u || p.contains(u))) return !1;
|
|
832
|
-
var m = Bt(d, u);
|
|
833
|
-
if (!m) return !0;
|
|
834
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m = Bt(d, u)), !m) return !1;
|
|
835
|
-
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
836
|
-
var h = r.current || l;
|
|
837
|
-
return Kt(h, t, e, h === "h" ? s : c, !0);
|
|
838
|
-
}, []), c = O.useCallback(function(e) {
|
|
839
|
-
var n = e;
|
|
840
|
-
if (!(!H.length || H[H.length - 1] !== a)) {
|
|
841
|
-
var r = "deltaY" in n ? Jt(n) : qt(n), i = t.current.filter(function(e) {
|
|
842
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Xt(e.delta, r);
|
|
843
|
-
})[0];
|
|
844
|
-
if (i && i.should) {
|
|
845
|
-
n.cancelable && n.preventDefault();
|
|
846
|
-
return;
|
|
847
|
-
}
|
|
848
|
-
if (!i) {
|
|
849
|
-
var c = (o.current.shards || []).map(Yt).filter(Boolean).filter(function(e) {
|
|
850
|
-
return e.contains(n.target);
|
|
851
|
-
});
|
|
852
|
-
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}, []), l = O.useCallback(function(e, n, r, i) {
|
|
856
|
-
var a = {
|
|
857
|
-
name: e,
|
|
858
|
-
delta: n,
|
|
859
|
-
target: r,
|
|
860
|
-
should: i,
|
|
861
|
-
shadowParent: en(r)
|
|
862
|
-
};
|
|
863
|
-
t.current.push(a), setTimeout(function() {
|
|
864
|
-
t.current = t.current.filter(function(e) {
|
|
865
|
-
return e !== a;
|
|
866
|
-
});
|
|
867
|
-
}, 1);
|
|
868
|
-
}, []), u = O.useCallback(function(e) {
|
|
869
|
-
n.current = qt(e), r.current = void 0;
|
|
870
|
-
}, []), d = O.useCallback(function(t) {
|
|
871
|
-
l(t.type, Jt(t), t.target, s(t, e.lockRef.current));
|
|
872
|
-
}, []), f = O.useCallback(function(t) {
|
|
873
|
-
l(t.type, qt(t), t.target, s(t, e.lockRef.current));
|
|
874
|
-
}, []);
|
|
875
|
-
O.useEffect(function() {
|
|
876
|
-
return H.push(a), e.setCallbacks({
|
|
877
|
-
onScrollCapture: d,
|
|
878
|
-
onWheelCapture: d,
|
|
879
|
-
onTouchMoveCapture: f
|
|
880
|
-
}), document.addEventListener("wheel", c, V), document.addEventListener("touchmove", c, V), document.addEventListener("touchstart", u, V), function() {
|
|
881
|
-
H = H.filter(function(e) {
|
|
882
|
-
return e !== a;
|
|
883
|
-
}), document.removeEventListener("wheel", c, V), document.removeEventListener("touchmove", c, V), document.removeEventListener("touchstart", u, V);
|
|
884
|
-
};
|
|
885
|
-
}, []);
|
|
886
|
-
var p = e.removeScrollBar, m = e.inert;
|
|
887
|
-
return O.createElement(O.Fragment, null, m ? O.createElement(a, { styles: Zt(i) }) : null, p ? O.createElement(Nt, {
|
|
888
|
-
noRelative: e.noRelative,
|
|
889
|
-
gapMode: e.gapMode
|
|
890
|
-
}) : null);
|
|
891
|
-
}
|
|
892
|
-
function en(e) {
|
|
893
|
-
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
894
|
-
return t;
|
|
895
|
-
}
|
|
896
|
-
//#endregion
|
|
897
|
-
//#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.5/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
898
|
-
var tn = pt(mt, $t), nn = O.forwardRef(function(e, t) {
|
|
899
|
-
return O.createElement(gt, z({}, e, {
|
|
900
|
-
ref: t,
|
|
901
|
-
sideCar: tn
|
|
902
|
-
}));
|
|
903
|
-
});
|
|
904
|
-
nn.classNames = gt.classNames;
|
|
905
|
-
//#endregion
|
|
906
|
-
//#region node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_67f50c1aa5d60701126d27c0502fb287/node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
907
|
-
var rn = ["Enter", " "], an = [
|
|
908
|
-
"ArrowDown",
|
|
909
|
-
"PageUp",
|
|
910
|
-
"Home"
|
|
911
|
-
], on = [
|
|
912
|
-
"ArrowUp",
|
|
913
|
-
"PageDown",
|
|
914
|
-
"End"
|
|
915
|
-
], sn = [...an, ...on], cn = {
|
|
916
|
-
ltr: [...rn, "ArrowRight"],
|
|
917
|
-
rtl: [...rn, "ArrowLeft"]
|
|
918
|
-
}, ln = {
|
|
919
|
-
ltr: ["ArrowLeft"],
|
|
920
|
-
rtl: ["ArrowRight"]
|
|
921
|
-
}, U = "Menu", [W, un, dn] = ie(U), [G, fn] = l(U, [
|
|
922
|
-
dn,
|
|
923
|
-
u,
|
|
924
|
-
Ae
|
|
925
|
-
]), K = u(), pn = Ae(), [mn, q] = G(U), [hn, J] = G(U), gn = (e) => {
|
|
926
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = K(t), [c, l] = O.useState(null), u = O.useRef(!1), d = I(a), f = P(i);
|
|
927
|
-
return O.useEffect(() => {
|
|
928
|
-
let e = () => {
|
|
929
|
-
u.current = !0, document.addEventListener("pointerdown", t, {
|
|
930
|
-
capture: !0,
|
|
931
|
-
once: !0
|
|
932
|
-
}), document.addEventListener("pointermove", t, {
|
|
933
|
-
capture: !0,
|
|
934
|
-
once: !0
|
|
935
|
-
});
|
|
936
|
-
}, t = () => u.current = !1;
|
|
937
|
-
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
938
|
-
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
939
|
-
};
|
|
940
|
-
}, []), /* @__PURE__ */ M(E, {
|
|
941
|
-
...s,
|
|
942
|
-
children: /* @__PURE__ */ M(mn, {
|
|
943
|
-
scope: t,
|
|
944
|
-
open: n,
|
|
945
|
-
onOpenChange: d,
|
|
946
|
-
content: c,
|
|
947
|
-
onContentChange: l,
|
|
948
|
-
children: /* @__PURE__ */ M(hn, {
|
|
949
|
-
scope: t,
|
|
950
|
-
onClose: O.useCallback(() => d(!1), [d]),
|
|
951
|
-
isUsingKeyboardRef: u,
|
|
952
|
-
dir: f,
|
|
953
|
-
modal: o,
|
|
954
|
-
children: r
|
|
955
|
-
})
|
|
956
|
-
})
|
|
957
|
-
});
|
|
958
|
-
};
|
|
959
|
-
gn.displayName = U;
|
|
960
|
-
var _n = "MenuAnchor", vn = O.forwardRef((e, t) => {
|
|
961
|
-
let { __scopeMenu: n, ...r } = e;
|
|
962
|
-
return /* @__PURE__ */ M(w, {
|
|
963
|
-
...K(n),
|
|
964
|
-
...r,
|
|
965
|
-
ref: t
|
|
966
|
-
});
|
|
967
|
-
});
|
|
968
|
-
vn.displayName = _n;
|
|
969
|
-
var yn = "MenuPortal", [bn, xn] = G(yn, { forceMount: void 0 }), Sn = (e) => {
|
|
970
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = q(yn, t);
|
|
971
|
-
return /* @__PURE__ */ M(bn, {
|
|
972
|
-
scope: t,
|
|
973
|
-
forceMount: n,
|
|
974
|
-
children: /* @__PURE__ */ M(S, {
|
|
975
|
-
present: n || a.open,
|
|
976
|
-
children: /* @__PURE__ */ M(y, {
|
|
977
|
-
asChild: !0,
|
|
978
|
-
container: i,
|
|
979
|
-
children: r
|
|
980
|
-
})
|
|
981
|
-
})
|
|
982
|
-
});
|
|
983
|
-
};
|
|
984
|
-
Sn.displayName = yn;
|
|
985
|
-
var Y = "MenuContent", [Cn, wn] = G(Y), Tn = O.forwardRef((e, t) => {
|
|
986
|
-
let n = xn(Y, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = q(Y, e.__scopeMenu), o = J(Y, e.__scopeMenu);
|
|
987
|
-
return /* @__PURE__ */ M(W.Provider, {
|
|
988
|
-
scope: e.__scopeMenu,
|
|
989
|
-
children: /* @__PURE__ */ M(S, {
|
|
990
|
-
present: r || a.open,
|
|
991
|
-
children: /* @__PURE__ */ M(W.Slot, {
|
|
992
|
-
scope: e.__scopeMenu,
|
|
993
|
-
children: o.modal ? /* @__PURE__ */ M(En, {
|
|
994
|
-
...i,
|
|
995
|
-
ref: t
|
|
996
|
-
}) : /* @__PURE__ */ M(Dn, {
|
|
997
|
-
...i,
|
|
998
|
-
ref: t
|
|
999
|
-
})
|
|
1000
|
-
})
|
|
1001
|
-
})
|
|
1002
|
-
});
|
|
1003
|
-
}), En = O.forwardRef((e, t) => {
|
|
1004
|
-
let n = q(Y, e.__scopeMenu), r = O.useRef(null), i = a(t, r);
|
|
1005
|
-
return O.useEffect(() => {
|
|
1006
|
-
let e = r.current;
|
|
1007
|
-
if (e) return Ze(e);
|
|
1008
|
-
}, []), /* @__PURE__ */ M(kn, {
|
|
1009
|
-
...e,
|
|
1010
|
-
ref: i,
|
|
1011
|
-
trapFocus: n.open,
|
|
1012
|
-
disableOutsidePointerEvents: n.open,
|
|
1013
|
-
disableOutsideScroll: !0,
|
|
1014
|
-
onFocusOutside: o(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
1015
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
1016
|
-
});
|
|
1017
|
-
}), Dn = O.forwardRef((e, t) => {
|
|
1018
|
-
let n = q(Y, e.__scopeMenu);
|
|
1019
|
-
return /* @__PURE__ */ M(kn, {
|
|
1020
|
-
...e,
|
|
1021
|
-
ref: t,
|
|
1022
|
-
trapFocus: !1,
|
|
1023
|
-
disableOutsidePointerEvents: !1,
|
|
1024
|
-
disableOutsideScroll: !1,
|
|
1025
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
1026
|
-
});
|
|
1027
|
-
}), On = re("MenuContent.ScrollLock"), kn = O.forwardRef((e, t) => {
|
|
1028
|
-
let { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: s, onCloseAutoFocus: l, disableOutsidePointerEvents: u, onEntryFocus: d, onEscapeKeyDown: f, onPointerDownOutside: p, onFocusOutside: h, onInteractOutside: g, onDismiss: _, disableOutsideScroll: v, ...y } = e, b = q(Y, n), x = J(Y, n), S = K(n), C = pn(n), w = un(n), [T, E] = O.useState(null), D = O.useRef(null), ee = a(t, D, b.onContentChange), k = O.useRef(0), A = O.useRef(""), te = O.useRef(0), j = O.useRef(null), ne = O.useRef("right"), N = O.useRef(0), re = v ? nn : O.Fragment, ie = v ? {
|
|
1029
|
-
as: On,
|
|
1030
|
-
allowPinchZoom: !0
|
|
1031
|
-
} : void 0, ae = (e) => {
|
|
1032
|
-
let t = A.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = fr(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
1033
|
-
(function e(t) {
|
|
1034
|
-
A.current = t, window.clearTimeout(k.current), t !== "" && (k.current = window.setTimeout(() => e(""), 1e3));
|
|
1035
|
-
})(t), o && setTimeout(() => o.focus());
|
|
1036
|
-
};
|
|
1037
|
-
O.useEffect(() => () => window.clearTimeout(k.current), []), se();
|
|
1038
|
-
let P = O.useCallback((e) => ne.current === j.current?.side && mr(e, j.current?.area), []);
|
|
1039
|
-
return /* @__PURE__ */ M(Cn, {
|
|
1040
|
-
scope: n,
|
|
1041
|
-
searchRef: A,
|
|
1042
|
-
onItemEnter: O.useCallback((e) => {
|
|
1043
|
-
P(e) && e.preventDefault();
|
|
1044
|
-
}, [P]),
|
|
1045
|
-
onItemLeave: O.useCallback((e) => {
|
|
1046
|
-
P(e) || (D.current?.focus(), E(null));
|
|
1047
|
-
}, [P]),
|
|
1048
|
-
onTriggerLeave: O.useCallback((e) => {
|
|
1049
|
-
P(e) && e.preventDefault();
|
|
1050
|
-
}, [P]),
|
|
1051
|
-
pointerGraceTimerRef: te,
|
|
1052
|
-
onPointerGraceIntentChange: O.useCallback((e) => {
|
|
1053
|
-
j.current = e;
|
|
1054
|
-
}, []),
|
|
1055
|
-
children: /* @__PURE__ */ M(re, {
|
|
1056
|
-
...ie,
|
|
1057
|
-
children: /* @__PURE__ */ M(pe, {
|
|
1058
|
-
asChild: !0,
|
|
1059
|
-
trapped: i,
|
|
1060
|
-
onMountAutoFocus: o(s, (e) => {
|
|
1061
|
-
e.preventDefault(), D.current?.focus({ preventScroll: !0 });
|
|
1062
|
-
}),
|
|
1063
|
-
onUnmountAutoFocus: l,
|
|
1064
|
-
children: /* @__PURE__ */ M(c, {
|
|
1065
|
-
asChild: !0,
|
|
1066
|
-
disableOutsidePointerEvents: u,
|
|
1067
|
-
onEscapeKeyDown: f,
|
|
1068
|
-
onPointerDownOutside: p,
|
|
1069
|
-
onFocusOutside: h,
|
|
1070
|
-
onInteractOutside: g,
|
|
1071
|
-
onDismiss: _,
|
|
1072
|
-
children: /* @__PURE__ */ M(He, {
|
|
1073
|
-
asChild: !0,
|
|
1074
|
-
...C,
|
|
1075
|
-
dir: x.dir,
|
|
1076
|
-
orientation: "vertical",
|
|
1077
|
-
loop: r,
|
|
1078
|
-
currentTabStopId: T,
|
|
1079
|
-
onCurrentTabStopIdChange: E,
|
|
1080
|
-
onEntryFocus: o(d, (e) => {
|
|
1081
|
-
x.isUsingKeyboardRef.current || e.preventDefault();
|
|
1082
|
-
}),
|
|
1083
|
-
preventScrollOnEntryFocus: !0,
|
|
1084
|
-
children: /* @__PURE__ */ M(m, {
|
|
1085
|
-
role: "menu",
|
|
1086
|
-
"aria-orientation": "vertical",
|
|
1087
|
-
"data-state": sr(b.open),
|
|
1088
|
-
"data-radix-menu-content": "",
|
|
1089
|
-
dir: x.dir,
|
|
1090
|
-
...S,
|
|
1091
|
-
...y,
|
|
1092
|
-
ref: ee,
|
|
1093
|
-
style: {
|
|
1094
|
-
outline: "none",
|
|
1095
|
-
...y.style
|
|
1096
|
-
},
|
|
1097
|
-
onKeyDown: o(y.onKeyDown, (e) => {
|
|
1098
|
-
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
1099
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r && ae(e.key));
|
|
1100
|
-
let i = D.current;
|
|
1101
|
-
if (e.target !== i || !sn.includes(e.key)) return;
|
|
1102
|
-
e.preventDefault();
|
|
1103
|
-
let a = w().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
1104
|
-
on.includes(e.key) && a.reverse(), ur(a);
|
|
1105
|
-
}),
|
|
1106
|
-
onBlur: o(e.onBlur, (e) => {
|
|
1107
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
|
|
1108
|
-
}),
|
|
1109
|
-
onPointerMove: o(e.onPointerMove, Z((e) => {
|
|
1110
|
-
let t = e.target, n = N.current !== e.clientX;
|
|
1111
|
-
e.currentTarget.contains(t) && n && (ne.current = e.clientX > N.current ? "right" : "left", N.current = e.clientX);
|
|
1112
|
-
}))
|
|
1113
|
-
})
|
|
1114
|
-
})
|
|
1115
|
-
})
|
|
1116
|
-
})
|
|
1117
|
-
})
|
|
1118
|
-
});
|
|
1119
|
-
});
|
|
1120
|
-
Tn.displayName = Y;
|
|
1121
|
-
var An = "MenuGroup", jn = O.forwardRef((e, t) => {
|
|
1122
|
-
let { __scopeMenu: n, ...r } = e;
|
|
1123
|
-
return /* @__PURE__ */ M(v.div, {
|
|
1124
|
-
role: "group",
|
|
1125
|
-
...r,
|
|
1126
|
-
ref: t
|
|
1127
|
-
});
|
|
1128
|
-
});
|
|
1129
|
-
jn.displayName = An;
|
|
1130
|
-
var Mn = "MenuLabel", Nn = O.forwardRef((e, t) => {
|
|
1131
|
-
let { __scopeMenu: n, ...r } = e;
|
|
1132
|
-
return /* @__PURE__ */ M(v.div, {
|
|
1133
|
-
...r,
|
|
1134
|
-
ref: t
|
|
1135
|
-
});
|
|
1136
|
-
});
|
|
1137
|
-
Nn.displayName = Mn;
|
|
1138
|
-
var Pn = "MenuItem", Fn = "menu.itemSelect", In = O.forwardRef((e, t) => {
|
|
1139
|
-
let { disabled: n = !1, onSelect: r, ...i } = e, s = O.useRef(null), c = J(Pn, e.__scopeMenu), l = wn(Pn, e.__scopeMenu), u = a(t, s), d = O.useRef(!1), f = () => {
|
|
1140
|
-
let e = s.current;
|
|
1141
|
-
if (!n && e) {
|
|
1142
|
-
let t = new CustomEvent(Fn, {
|
|
1143
|
-
bubbles: !0,
|
|
1144
|
-
cancelable: !0
|
|
1145
|
-
});
|
|
1146
|
-
e.addEventListener(Fn, (e) => r?.(e), { once: !0 }), p(e, t), t.defaultPrevented ? d.current = !1 : c.onClose();
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
|
-
return /* @__PURE__ */ M(Ln, {
|
|
1150
|
-
...i,
|
|
1151
|
-
ref: u,
|
|
1152
|
-
disabled: n,
|
|
1153
|
-
onClick: o(e.onClick, f),
|
|
1154
|
-
onPointerDown: (t) => {
|
|
1155
|
-
e.onPointerDown?.(t), d.current = !0;
|
|
1156
|
-
},
|
|
1157
|
-
onPointerUp: o(e.onPointerUp, (e) => {
|
|
1158
|
-
d.current || e.currentTarget?.click();
|
|
1159
|
-
}),
|
|
1160
|
-
onKeyDown: o(e.onKeyDown, (e) => {
|
|
1161
|
-
let t = l.searchRef.current !== "";
|
|
1162
|
-
n || t && e.key === " " || rn.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
1163
|
-
})
|
|
1164
|
-
});
|
|
1165
|
-
});
|
|
1166
|
-
In.displayName = Pn;
|
|
1167
|
-
var Ln = O.forwardRef((e, t) => {
|
|
1168
|
-
let { __scopeMenu: n, disabled: r = !1, textValue: i, ...s } = e, c = wn(Pn, n), l = pn(n), u = O.useRef(null), d = a(t, u), [f, p] = O.useState(!1), [m, h] = O.useState("");
|
|
1169
|
-
return O.useEffect(() => {
|
|
1170
|
-
let e = u.current;
|
|
1171
|
-
e && h((e.textContent ?? "").trim());
|
|
1172
|
-
}, [s.children]), /* @__PURE__ */ M(W.ItemSlot, {
|
|
1173
|
-
scope: n,
|
|
1174
|
-
disabled: r,
|
|
1175
|
-
textValue: i ?? m,
|
|
1176
|
-
children: /* @__PURE__ */ M(Ue, {
|
|
1177
|
-
asChild: !0,
|
|
1178
|
-
...l,
|
|
1179
|
-
focusable: !r,
|
|
1180
|
-
children: /* @__PURE__ */ M(v.div, {
|
|
1181
|
-
role: "menuitem",
|
|
1182
|
-
"data-highlighted": f ? "" : void 0,
|
|
1183
|
-
"aria-disabled": r || void 0,
|
|
1184
|
-
"data-disabled": r ? "" : void 0,
|
|
1185
|
-
...s,
|
|
1186
|
-
ref: d,
|
|
1187
|
-
onPointerMove: o(e.onPointerMove, Z((e) => {
|
|
1188
|
-
r ? c.onItemLeave(e) : (c.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
1189
|
-
})),
|
|
1190
|
-
onPointerLeave: o(e.onPointerLeave, Z((e) => c.onItemLeave(e))),
|
|
1191
|
-
onFocus: o(e.onFocus, () => p(!0)),
|
|
1192
|
-
onBlur: o(e.onBlur, () => p(!1))
|
|
1193
|
-
})
|
|
1194
|
-
})
|
|
1195
|
-
});
|
|
1196
|
-
}), Rn = "MenuCheckboxItem", zn = O.forwardRef((e, t) => {
|
|
1197
|
-
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
1198
|
-
return /* @__PURE__ */ M(qn, {
|
|
1199
|
-
scope: e.__scopeMenu,
|
|
1200
|
-
checked: n,
|
|
1201
|
-
children: /* @__PURE__ */ M(In, {
|
|
1202
|
-
role: "menuitemcheckbox",
|
|
1203
|
-
"aria-checked": cr(n) ? "mixed" : n,
|
|
1204
|
-
...i,
|
|
1205
|
-
ref: t,
|
|
1206
|
-
"data-state": lr(n),
|
|
1207
|
-
onSelect: o(i.onSelect, () => r?.(cr(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
1208
|
-
})
|
|
1209
|
-
});
|
|
1210
|
-
});
|
|
1211
|
-
zn.displayName = Rn;
|
|
1212
|
-
var Bn = "MenuRadioGroup", [Vn, Hn] = G(Bn, {
|
|
1213
|
-
value: void 0,
|
|
1214
|
-
onValueChange: () => {}
|
|
1215
|
-
}), Un = O.forwardRef((e, t) => {
|
|
1216
|
-
let { value: n, onValueChange: r, ...i } = e, a = I(r);
|
|
1217
|
-
return /* @__PURE__ */ M(Vn, {
|
|
1218
|
-
scope: e.__scopeMenu,
|
|
1219
|
-
value: n,
|
|
1220
|
-
onValueChange: a,
|
|
1221
|
-
children: /* @__PURE__ */ M(jn, {
|
|
1222
|
-
...i,
|
|
1223
|
-
ref: t
|
|
1224
|
-
})
|
|
1225
|
-
});
|
|
1226
|
-
});
|
|
1227
|
-
Un.displayName = Bn;
|
|
1228
|
-
var Wn = "MenuRadioItem", Gn = O.forwardRef((e, t) => {
|
|
1229
|
-
let { value: n, ...r } = e, i = Hn(Wn, e.__scopeMenu), a = n === i.value;
|
|
1230
|
-
return /* @__PURE__ */ M(qn, {
|
|
1231
|
-
scope: e.__scopeMenu,
|
|
1232
|
-
checked: a,
|
|
1233
|
-
children: /* @__PURE__ */ M(In, {
|
|
1234
|
-
role: "menuitemradio",
|
|
1235
|
-
"aria-checked": a,
|
|
1236
|
-
...r,
|
|
1237
|
-
ref: t,
|
|
1238
|
-
"data-state": lr(a),
|
|
1239
|
-
onSelect: o(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
1240
|
-
})
|
|
1241
|
-
});
|
|
1242
|
-
});
|
|
1243
|
-
Gn.displayName = Wn;
|
|
1244
|
-
var Kn = "MenuItemIndicator", [qn, Jn] = G(Kn, { checked: !1 }), Yn = O.forwardRef((e, t) => {
|
|
1245
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Jn(Kn, n);
|
|
1246
|
-
return /* @__PURE__ */ M(S, {
|
|
1247
|
-
present: r || cr(a.checked) || a.checked === !0,
|
|
1248
|
-
children: /* @__PURE__ */ M(v.span, {
|
|
1249
|
-
...i,
|
|
1250
|
-
ref: t,
|
|
1251
|
-
"data-state": lr(a.checked)
|
|
1252
|
-
})
|
|
1253
|
-
});
|
|
1254
|
-
});
|
|
1255
|
-
Yn.displayName = Kn;
|
|
1256
|
-
var Xn = "MenuSeparator", Zn = O.forwardRef((e, t) => {
|
|
1257
|
-
let { __scopeMenu: n, ...r } = e;
|
|
1258
|
-
return /* @__PURE__ */ M(v.div, {
|
|
1259
|
-
role: "separator",
|
|
1260
|
-
"aria-orientation": "horizontal",
|
|
1261
|
-
...r,
|
|
1262
|
-
ref: t
|
|
1263
|
-
});
|
|
1264
|
-
});
|
|
1265
|
-
Zn.displayName = Xn;
|
|
1266
|
-
var Qn = "MenuArrow", $n = O.forwardRef((e, t) => {
|
|
1267
|
-
let { __scopeMenu: n, ...r } = e;
|
|
1268
|
-
return /* @__PURE__ */ M(D, {
|
|
1269
|
-
...K(n),
|
|
1270
|
-
...r,
|
|
1271
|
-
ref: t
|
|
1272
|
-
});
|
|
1273
|
-
});
|
|
1274
|
-
$n.displayName = Qn;
|
|
1275
|
-
var er = "MenuSub", [tr, nr] = G(er), rr = (e) => {
|
|
1276
|
-
let { __scopeMenu: t, children: n, open: i = !1, onOpenChange: a } = e, o = q(er, t), s = K(t), [c, l] = O.useState(null), [u, d] = O.useState(null), f = I(a);
|
|
1277
|
-
return O.useEffect(() => (o.open === !1 && f(!1), () => f(!1)), [o.open, f]), /* @__PURE__ */ M(E, {
|
|
1278
|
-
...s,
|
|
1279
|
-
children: /* @__PURE__ */ M(mn, {
|
|
1280
|
-
scope: t,
|
|
1281
|
-
open: i,
|
|
1282
|
-
onOpenChange: f,
|
|
1283
|
-
content: u,
|
|
1284
|
-
onContentChange: d,
|
|
1285
|
-
children: /* @__PURE__ */ M(tr, {
|
|
1286
|
-
scope: t,
|
|
1287
|
-
contentId: r(),
|
|
1288
|
-
triggerId: r(),
|
|
1289
|
-
trigger: c,
|
|
1290
|
-
onTriggerChange: l,
|
|
1291
|
-
children: n
|
|
1292
|
-
})
|
|
1293
|
-
})
|
|
1294
|
-
});
|
|
1295
|
-
};
|
|
1296
|
-
rr.displayName = er;
|
|
1297
|
-
var X = "MenuSubTrigger", ir = O.forwardRef((e, t) => {
|
|
1298
|
-
let n = q(X, e.__scopeMenu), r = J(X, e.__scopeMenu), a = nr(X, e.__scopeMenu), s = wn(X, e.__scopeMenu), c = O.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, d = { __scopeMenu: e.__scopeMenu }, f = O.useCallback(() => {
|
|
1299
|
-
c.current && window.clearTimeout(c.current), c.current = null;
|
|
1300
|
-
}, []);
|
|
1301
|
-
return O.useEffect(() => f, [f]), O.useEffect(() => {
|
|
1302
|
-
let e = l.current;
|
|
1303
|
-
return () => {
|
|
1304
|
-
window.clearTimeout(e), u(null);
|
|
1305
|
-
};
|
|
1306
|
-
}, [l, u]), /* @__PURE__ */ M(vn, {
|
|
1307
|
-
asChild: !0,
|
|
1308
|
-
...d,
|
|
1309
|
-
children: /* @__PURE__ */ M(Ln, {
|
|
1310
|
-
id: a.triggerId,
|
|
1311
|
-
"aria-haspopup": "menu",
|
|
1312
|
-
"aria-expanded": n.open,
|
|
1313
|
-
"aria-controls": a.contentId,
|
|
1314
|
-
"data-state": sr(n.open),
|
|
1315
|
-
...e,
|
|
1316
|
-
ref: i(t, a.onTriggerChange),
|
|
1317
|
-
onClick: (t) => {
|
|
1318
|
-
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
1319
|
-
},
|
|
1320
|
-
onPointerMove: o(e.onPointerMove, Z((t) => {
|
|
1321
|
-
s.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !c.current && (s.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
|
|
1322
|
-
n.onOpenChange(!0), f();
|
|
1323
|
-
}, 100));
|
|
1324
|
-
})),
|
|
1325
|
-
onPointerLeave: o(e.onPointerLeave, Z((e) => {
|
|
1326
|
-
f();
|
|
1327
|
-
let t = n.content?.getBoundingClientRect();
|
|
1328
|
-
if (t) {
|
|
1329
|
-
let r = n.content?.dataset.side, i = r === "right", a = i ? -5 : 5, o = t[i ? "left" : "right"], c = t[i ? "right" : "left"];
|
|
1330
|
-
s.onPointerGraceIntentChange({
|
|
1331
|
-
area: [
|
|
1332
|
-
{
|
|
1333
|
-
x: e.clientX + a,
|
|
1334
|
-
y: e.clientY
|
|
1335
|
-
},
|
|
1336
|
-
{
|
|
1337
|
-
x: o,
|
|
1338
|
-
y: t.top
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
x: c,
|
|
1342
|
-
y: t.top
|
|
1343
|
-
},
|
|
1344
|
-
{
|
|
1345
|
-
x: c,
|
|
1346
|
-
y: t.bottom
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
x: o,
|
|
1350
|
-
y: t.bottom
|
|
1351
|
-
}
|
|
1352
|
-
],
|
|
1353
|
-
side: r
|
|
1354
|
-
}), window.clearTimeout(l.current), l.current = window.setTimeout(() => s.onPointerGraceIntentChange(null), 300);
|
|
1355
|
-
} else {
|
|
1356
|
-
if (s.onTriggerLeave(e), e.defaultPrevented) return;
|
|
1357
|
-
s.onPointerGraceIntentChange(null);
|
|
1358
|
-
}
|
|
1359
|
-
})),
|
|
1360
|
-
onKeyDown: o(e.onKeyDown, (t) => {
|
|
1361
|
-
let i = s.searchRef.current !== "";
|
|
1362
|
-
e.disabled || i && t.key === " " || cn[r.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
1363
|
-
})
|
|
1364
|
-
})
|
|
1365
|
-
});
|
|
1366
|
-
});
|
|
1367
|
-
ir.displayName = X;
|
|
1368
|
-
var ar = "MenuSubContent", or = O.forwardRef((e, t) => {
|
|
1369
|
-
let n = xn(Y, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, s = q(Y, e.__scopeMenu), c = J(Y, e.__scopeMenu), l = nr(ar, e.__scopeMenu), u = O.useRef(null), d = a(t, u);
|
|
1370
|
-
return /* @__PURE__ */ M(W.Provider, {
|
|
1371
|
-
scope: e.__scopeMenu,
|
|
1372
|
-
children: /* @__PURE__ */ M(S, {
|
|
1373
|
-
present: r || s.open,
|
|
1374
|
-
children: /* @__PURE__ */ M(W.Slot, {
|
|
1375
|
-
scope: e.__scopeMenu,
|
|
1376
|
-
children: /* @__PURE__ */ M(kn, {
|
|
1377
|
-
id: l.contentId,
|
|
1378
|
-
"aria-labelledby": l.triggerId,
|
|
1379
|
-
...i,
|
|
1380
|
-
ref: d,
|
|
1381
|
-
align: "start",
|
|
1382
|
-
side: c.dir === "rtl" ? "left" : "right",
|
|
1383
|
-
disableOutsidePointerEvents: !1,
|
|
1384
|
-
disableOutsideScroll: !1,
|
|
1385
|
-
trapFocus: !1,
|
|
1386
|
-
onOpenAutoFocus: (e) => {
|
|
1387
|
-
c.isUsingKeyboardRef.current && u.current?.focus(), e.preventDefault();
|
|
1388
|
-
},
|
|
1389
|
-
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
1390
|
-
onFocusOutside: o(e.onFocusOutside, (e) => {
|
|
1391
|
-
e.target !== l.trigger && s.onOpenChange(!1);
|
|
1392
|
-
}),
|
|
1393
|
-
onEscapeKeyDown: o(e.onEscapeKeyDown, (e) => {
|
|
1394
|
-
c.onClose(), e.preventDefault();
|
|
1395
|
-
}),
|
|
1396
|
-
onKeyDown: o(e.onKeyDown, (e) => {
|
|
1397
|
-
let t = e.currentTarget.contains(e.target), n = ln[c.dir].includes(e.key);
|
|
1398
|
-
t && n && (s.onOpenChange(!1), l.trigger?.focus(), e.preventDefault());
|
|
1399
|
-
})
|
|
1400
|
-
})
|
|
1401
|
-
})
|
|
1402
|
-
})
|
|
1403
|
-
});
|
|
1404
|
-
});
|
|
1405
|
-
or.displayName = ar;
|
|
1406
|
-
function sr(e) {
|
|
1407
|
-
return e ? "open" : "closed";
|
|
1408
|
-
}
|
|
1409
|
-
function cr(e) {
|
|
1410
|
-
return e === "indeterminate";
|
|
1411
|
-
}
|
|
1412
|
-
function lr(e) {
|
|
1413
|
-
return cr(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1414
|
-
}
|
|
1415
|
-
function ur(e) {
|
|
1416
|
-
let t = document.activeElement;
|
|
1417
|
-
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
1418
|
-
}
|
|
1419
|
-
function dr(e, t) {
|
|
1420
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1421
|
-
}
|
|
1422
|
-
function fr(e, t, n) {
|
|
1423
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = dr(e, Math.max(i, 0));
|
|
1424
|
-
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
1425
|
-
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
1426
|
-
return o === n ? void 0 : o;
|
|
1427
|
-
}
|
|
1428
|
-
function pr(e, t) {
|
|
1429
|
-
let { x: n, y: r } = e, i = !1;
|
|
1430
|
-
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
1431
|
-
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
1432
|
-
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
|
|
1433
|
-
}
|
|
1434
|
-
return i;
|
|
1435
|
-
}
|
|
1436
|
-
function mr(e, t) {
|
|
1437
|
-
return t ? pr({
|
|
1438
|
-
x: e.clientX,
|
|
1439
|
-
y: e.clientY
|
|
1440
|
-
}, t) : !1;
|
|
1441
|
-
}
|
|
1442
|
-
function Z(e) {
|
|
1443
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
1444
|
-
}
|
|
1445
|
-
var hr = gn, gr = vn, _r = Sn, vr = Tn, yr = jn, br = Nn, xr = In, Sr = zn, Cr = Un, wr = Gn, Tr = Yn, Er = Zn, Dr = $n, Or = rr, kr = ir, Ar = or, jr = "DropdownMenu", [Mr, Nr] = l(jr, [fn]), Q = fn(), [Pr, Fr] = Mr(jr), Ir = (e) => {
|
|
1446
|
-
let { __scopeDropdownMenu: t, children: n, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = Q(t), u = O.useRef(null), [d, f] = C({
|
|
1447
|
-
prop: a,
|
|
1448
|
-
defaultProp: o ?? !1,
|
|
1449
|
-
onChange: s,
|
|
1450
|
-
caller: jr
|
|
1451
|
-
});
|
|
1452
|
-
return /* @__PURE__ */ M(Pr, {
|
|
1453
|
-
scope: t,
|
|
1454
|
-
triggerId: r(),
|
|
1455
|
-
triggerRef: u,
|
|
1456
|
-
contentId: r(),
|
|
1457
|
-
open: d,
|
|
1458
|
-
onOpenChange: f,
|
|
1459
|
-
onOpenToggle: O.useCallback(() => f((e) => !e), [f]),
|
|
1460
|
-
modal: c,
|
|
1461
|
-
children: /* @__PURE__ */ M(hr, {
|
|
1462
|
-
...l,
|
|
1463
|
-
open: d,
|
|
1464
|
-
onOpenChange: f,
|
|
1465
|
-
dir: i,
|
|
1466
|
-
modal: c,
|
|
1467
|
-
children: n
|
|
1468
|
-
})
|
|
1469
|
-
});
|
|
1470
|
-
};
|
|
1471
|
-
Ir.displayName = jr;
|
|
1472
|
-
var Lr = "DropdownMenuTrigger", Rr = O.forwardRef((e, t) => {
|
|
1473
|
-
let { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = Fr(Lr, n);
|
|
1474
|
-
return /* @__PURE__ */ M(gr, {
|
|
1475
|
-
asChild: !0,
|
|
1476
|
-
...Q(n),
|
|
1477
|
-
children: /* @__PURE__ */ M(v.button, {
|
|
1478
|
-
type: "button",
|
|
1479
|
-
id: s.triggerId,
|
|
1480
|
-
"aria-haspopup": "menu",
|
|
1481
|
-
"aria-expanded": s.open,
|
|
1482
|
-
"aria-controls": s.open ? s.contentId : void 0,
|
|
1483
|
-
"data-state": s.open ? "open" : "closed",
|
|
1484
|
-
"data-disabled": r ? "" : void 0,
|
|
1485
|
-
disabled: r,
|
|
1486
|
-
...a,
|
|
1487
|
-
ref: i(t, s.triggerRef),
|
|
1488
|
-
onPointerDown: o(e.onPointerDown, (e) => {
|
|
1489
|
-
!r && e.button === 0 && e.ctrlKey === !1 && (s.onOpenToggle(), s.open || e.preventDefault());
|
|
1490
|
-
}),
|
|
1491
|
-
onKeyDown: o(e.onKeyDown, (e) => {
|
|
1492
|
-
r || (["Enter", " "].includes(e.key) && s.onOpenToggle(), e.key === "ArrowDown" && s.onOpenChange(!0), [
|
|
1493
|
-
"Enter",
|
|
1494
|
-
" ",
|
|
1495
|
-
"ArrowDown"
|
|
1496
|
-
].includes(e.key) && e.preventDefault());
|
|
1497
|
-
})
|
|
1498
|
-
})
|
|
1499
|
-
});
|
|
1500
|
-
});
|
|
1501
|
-
Rr.displayName = Lr;
|
|
1502
|
-
var zr = "DropdownMenuPortal", Br = (e) => {
|
|
1503
|
-
let { __scopeDropdownMenu: t, ...n } = e;
|
|
1504
|
-
return /* @__PURE__ */ M(_r, {
|
|
1505
|
-
...Q(t),
|
|
1506
|
-
...n
|
|
1507
|
-
});
|
|
1508
|
-
};
|
|
1509
|
-
Br.displayName = zr;
|
|
1510
|
-
var Vr = "DropdownMenuContent", Hr = O.forwardRef((e, t) => {
|
|
1511
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = Fr(Vr, n), a = Q(n), s = O.useRef(!1);
|
|
1512
|
-
return /* @__PURE__ */ M(vr, {
|
|
1513
|
-
id: i.contentId,
|
|
1514
|
-
"aria-labelledby": i.triggerId,
|
|
1515
|
-
...a,
|
|
1516
|
-
...r,
|
|
1517
|
-
ref: t,
|
|
1518
|
-
onCloseAutoFocus: o(e.onCloseAutoFocus, (e) => {
|
|
1519
|
-
s.current || i.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
1520
|
-
}),
|
|
1521
|
-
onInteractOutside: o(e.onInteractOutside, (e) => {
|
|
1522
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
1523
|
-
(!i.modal || r) && (s.current = !0);
|
|
1524
|
-
}),
|
|
1525
|
-
style: {
|
|
1526
|
-
...e.style,
|
|
1527
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1528
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1529
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1530
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1531
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1532
|
-
}
|
|
1533
|
-
});
|
|
1534
|
-
});
|
|
1535
|
-
Hr.displayName = Vr;
|
|
1536
|
-
var Ur = "DropdownMenuGroup", Wr = O.forwardRef((e, t) => {
|
|
1537
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1538
|
-
return /* @__PURE__ */ M(yr, {
|
|
1539
|
-
...Q(n),
|
|
1540
|
-
...r,
|
|
1541
|
-
ref: t
|
|
1542
|
-
});
|
|
1543
|
-
});
|
|
1544
|
-
Wr.displayName = Ur;
|
|
1545
|
-
var Gr = "DropdownMenuLabel", Kr = O.forwardRef((e, t) => {
|
|
1546
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1547
|
-
return /* @__PURE__ */ M(br, {
|
|
1548
|
-
...Q(n),
|
|
1549
|
-
...r,
|
|
1550
|
-
ref: t
|
|
1551
|
-
});
|
|
1552
|
-
});
|
|
1553
|
-
Kr.displayName = Gr;
|
|
1554
|
-
var qr = "DropdownMenuItem", Jr = O.forwardRef((e, t) => {
|
|
1555
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1556
|
-
return /* @__PURE__ */ M(xr, {
|
|
1557
|
-
...Q(n),
|
|
1558
|
-
...r,
|
|
1559
|
-
ref: t
|
|
1560
|
-
});
|
|
1561
|
-
});
|
|
1562
|
-
Jr.displayName = qr;
|
|
1563
|
-
var Yr = "DropdownMenuCheckboxItem", Xr = O.forwardRef((e, t) => {
|
|
1564
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1565
|
-
return /* @__PURE__ */ M(Sr, {
|
|
1566
|
-
...Q(n),
|
|
1567
|
-
...r,
|
|
1568
|
-
ref: t
|
|
1569
|
-
});
|
|
1570
|
-
});
|
|
1571
|
-
Xr.displayName = Yr;
|
|
1572
|
-
var Zr = "DropdownMenuRadioGroup", Qr = O.forwardRef((e, t) => {
|
|
1573
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1574
|
-
return /* @__PURE__ */ M(Cr, {
|
|
1575
|
-
...Q(n),
|
|
1576
|
-
...r,
|
|
1577
|
-
ref: t
|
|
1578
|
-
});
|
|
1579
|
-
});
|
|
1580
|
-
Qr.displayName = Zr;
|
|
1581
|
-
var $r = "DropdownMenuRadioItem", ei = O.forwardRef((e, t) => {
|
|
1582
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1583
|
-
return /* @__PURE__ */ M(wr, {
|
|
1584
|
-
...Q(n),
|
|
1585
|
-
...r,
|
|
1586
|
-
ref: t
|
|
1587
|
-
});
|
|
1588
|
-
});
|
|
1589
|
-
ei.displayName = $r;
|
|
1590
|
-
var ti = "DropdownMenuItemIndicator", ni = O.forwardRef((e, t) => {
|
|
1591
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1592
|
-
return /* @__PURE__ */ M(Tr, {
|
|
1593
|
-
...Q(n),
|
|
1594
|
-
...r,
|
|
1595
|
-
ref: t
|
|
1596
|
-
});
|
|
1597
|
-
});
|
|
1598
|
-
ni.displayName = ti;
|
|
1599
|
-
var ri = "DropdownMenuSeparator", ii = O.forwardRef((e, t) => {
|
|
1600
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1601
|
-
return /* @__PURE__ */ M(Er, {
|
|
1602
|
-
...Q(n),
|
|
1603
|
-
...r,
|
|
1604
|
-
ref: t
|
|
1605
|
-
});
|
|
1606
|
-
});
|
|
1607
|
-
ii.displayName = ri;
|
|
1608
|
-
var ai = "DropdownMenuArrow", oi = O.forwardRef((e, t) => {
|
|
1609
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1610
|
-
return /* @__PURE__ */ M(Dr, {
|
|
1611
|
-
...Q(n),
|
|
1612
|
-
...r,
|
|
1613
|
-
ref: t
|
|
1614
|
-
});
|
|
1615
|
-
});
|
|
1616
|
-
oi.displayName = ai;
|
|
1617
|
-
var si = (e) => {
|
|
1618
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = Q(t), [s, c] = C({
|
|
1619
|
-
prop: r,
|
|
1620
|
-
defaultProp: a ?? !1,
|
|
1621
|
-
onChange: i,
|
|
1622
|
-
caller: "DropdownMenuSub"
|
|
1623
|
-
});
|
|
1624
|
-
return /* @__PURE__ */ M(Or, {
|
|
1625
|
-
...o,
|
|
1626
|
-
open: s,
|
|
1627
|
-
onOpenChange: c,
|
|
1628
|
-
children: n
|
|
1629
|
-
});
|
|
1630
|
-
}, ci = "DropdownMenuSubTrigger", li = O.forwardRef((e, t) => {
|
|
1631
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1632
|
-
return /* @__PURE__ */ M(kr, {
|
|
1633
|
-
...Q(n),
|
|
1634
|
-
...r,
|
|
1635
|
-
ref: t
|
|
1636
|
-
});
|
|
1637
|
-
});
|
|
1638
|
-
li.displayName = ci;
|
|
1639
|
-
var ui = "DropdownMenuSubContent", di = O.forwardRef((e, t) => {
|
|
1640
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
1641
|
-
return /* @__PURE__ */ M(Ar, {
|
|
1642
|
-
...Q(n),
|
|
1643
|
-
...r,
|
|
1644
|
-
ref: t,
|
|
1645
|
-
style: {
|
|
1646
|
-
...e.style,
|
|
1647
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1648
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
1649
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
1650
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1651
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1652
|
-
}
|
|
1653
|
-
});
|
|
1654
|
-
});
|
|
1655
|
-
di.displayName = ui;
|
|
1656
|
-
var fi = Ir, pi = Rr, mi = Br, hi = Hr, gi = Wr, _i = Kr, vi = Jr, yi = Xr, bi = Qr, xi = ei, Si = ni, Ci = ii, wi = si, Ti = li, Ei = di, Di = ee("aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:w-full aivex:items-center aivex:gap-md aivex:px-md aivex:py-sm aivex:text-label-lg aivex:rounded-md aivex:transition-colors aivex:cursor-pointer aivex:select-none aivex:outline-none aivex:data-[disabled]:opacity-disable aivex:data-[disabled]:pointer-events-none", {
|
|
1657
|
-
variants: { danger: {
|
|
1658
|
-
true: "aivex:text-text-danger",
|
|
1659
|
-
false: "aivex:text-text-primary"
|
|
1660
|
-
} },
|
|
1661
|
-
defaultVariants: { danger: !1 }
|
|
1662
|
-
}), Oi = _("aivex:flex aivex:flex-col aivex:rounded-md aivex:bg-bg-primary aivex:p-md aivex:overflow-clip", "aivex:shadow-md aivex:border aivex:border-border-subtle aivex:min-w-[160px]", "aivex:z-50 aivex:outline-none", "aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out", "aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0", "aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95");
|
|
1663
|
-
function ki(e) {
|
|
1664
|
-
return /* @__PURE__ */ M(fi, { ...e });
|
|
1665
|
-
}
|
|
1666
|
-
function Ai({ ref: e, ...t }) {
|
|
1667
|
-
return /* @__PURE__ */ M(pi, {
|
|
1668
|
-
ref: e,
|
|
1669
|
-
...t
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
function ji({ className: e, sideOffset: t = 4, ref: n, ...r }) {
|
|
1673
|
-
return /* @__PURE__ */ M(mi, { children: /* @__PURE__ */ M(hi, {
|
|
1674
|
-
ref: n,
|
|
1675
|
-
sideOffset: t,
|
|
1676
|
-
className: _(Oi, e),
|
|
1677
|
-
...r
|
|
1678
|
-
}) });
|
|
1679
|
-
}
|
|
1680
|
-
function Mi({ className: e, ref: t, ...n }) {
|
|
1681
|
-
return /* @__PURE__ */ M(gi, {
|
|
1682
|
-
ref: t,
|
|
1683
|
-
className: _("aivex:flex aivex:flex-col", e),
|
|
1684
|
-
...n
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
function Ni({ className: e, ref: t, ...n }) {
|
|
1688
|
-
return /* @__PURE__ */ M(Ci, {
|
|
1689
|
-
ref: t,
|
|
1690
|
-
className: _("aivex:h-px aivex:bg-border-subtle aivex:w-full aivex:my-xs", e),
|
|
1691
|
-
...n
|
|
1692
|
-
});
|
|
1693
|
-
}
|
|
1694
|
-
function Pi({ className: e, ref: t, ...n }) {
|
|
1695
|
-
return /* @__PURE__ */ M(_i, {
|
|
1696
|
-
ref: t,
|
|
1697
|
-
className: _("aivex:px-md aivex:py-2xs aivex:text-label-md aivex:text-text-tertiary aivex:select-none", e),
|
|
1698
|
-
...n
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
function Fi({ className: e, label: t, icon: n, danger: r = !1, asChild: i, children: a, ref: o, ...s }) {
|
|
1702
|
-
if (i) return /* @__PURE__ */ M(vi, {
|
|
1703
|
-
ref: o,
|
|
1704
|
-
asChild: !0,
|
|
1705
|
-
className: _(Di({ danger: r }), e),
|
|
1706
|
-
...s,
|
|
1707
|
-
children: a
|
|
1708
|
-
});
|
|
1709
|
-
let c = t ?? a;
|
|
1710
|
-
return /* @__PURE__ */ N(vi, {
|
|
1711
|
-
ref: o,
|
|
1712
|
-
className: _(Di({ danger: r }), e),
|
|
1713
|
-
...s,
|
|
1714
|
-
children: [
|
|
1715
|
-
/* @__PURE__ */ M(h, { variant: r ? "danger" : "default" }),
|
|
1716
|
-
n && /* @__PURE__ */ M("span", {
|
|
1717
|
-
className: _("aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0", r ? "aivex:text-icon-danger" : "aivex:text-icon-secondary"),
|
|
1718
|
-
children: n
|
|
1719
|
-
}),
|
|
1720
|
-
/* @__PURE__ */ M("span", {
|
|
1721
|
-
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
1722
|
-
children: c
|
|
1723
|
-
})
|
|
1724
|
-
]
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
function Ii({ className: e, label: t, icon: n, children: r, ref: i, ...a }) {
|
|
1728
|
-
let o = t ?? r;
|
|
1729
|
-
return /* @__PURE__ */ N(yi, {
|
|
1730
|
-
ref: i,
|
|
1731
|
-
className: _(Di(), e),
|
|
1732
|
-
...a,
|
|
1733
|
-
children: [
|
|
1734
|
-
/* @__PURE__ */ M(h, { variant: "default" }),
|
|
1735
|
-
/* @__PURE__ */ M(Ui, { children: /* @__PURE__ */ M(Si, { children: /* @__PURE__ */ M(g, { size: 20 }) }) }),
|
|
1736
|
-
n && /* @__PURE__ */ M("span", {
|
|
1737
|
-
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:text-icon-secondary",
|
|
1738
|
-
children: n
|
|
1739
|
-
}),
|
|
1740
|
-
/* @__PURE__ */ M("span", {
|
|
1741
|
-
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
1742
|
-
children: o
|
|
1743
|
-
})
|
|
1744
|
-
]
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
function Li({ className: e, ref: t, ...n }) {
|
|
1748
|
-
return /* @__PURE__ */ M(bi, {
|
|
1749
|
-
ref: t,
|
|
1750
|
-
className: _("aivex:flex aivex:flex-col", e),
|
|
1751
|
-
...n
|
|
1752
|
-
});
|
|
1753
|
-
}
|
|
1754
|
-
function Ri({ className: e, label: t, icon: n, children: r, ref: i, ...a }) {
|
|
1755
|
-
let o = t ?? r;
|
|
1756
|
-
return /* @__PURE__ */ N(xi, {
|
|
1757
|
-
ref: i,
|
|
1758
|
-
className: _(Di(), e),
|
|
1759
|
-
...a,
|
|
1760
|
-
children: [
|
|
1761
|
-
/* @__PURE__ */ M(h, { variant: "default" }),
|
|
1762
|
-
/* @__PURE__ */ M(Ui, { children: /* @__PURE__ */ M(Si, { children: /* @__PURE__ */ M(g, { size: 20 }) }) }),
|
|
1763
|
-
n && /* @__PURE__ */ M("span", {
|
|
1764
|
-
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:text-icon-secondary",
|
|
1765
|
-
children: n
|
|
1766
|
-
}),
|
|
1767
|
-
/* @__PURE__ */ M("span", {
|
|
1768
|
-
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
1769
|
-
children: o
|
|
1770
|
-
})
|
|
1771
|
-
]
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
function zi({ className: e, ref: t, ...n }) {
|
|
1775
|
-
return /* @__PURE__ */ M("span", {
|
|
1776
|
-
ref: t,
|
|
1777
|
-
className: _("aivex:inline-flex aivex:items-center aivex:justify-center aivex:min-h-5 aivex:min-w-5 aivex:px-2xs aivex:rounded-xs aivex:border aivex:border-border-subtle aivex:text-label-md aivex:text-text-tertiary aivex:ml-auto", e),
|
|
1778
|
-
...n
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
function Bi(e) {
|
|
1782
|
-
return /* @__PURE__ */ M(wi, { ...e });
|
|
1783
|
-
}
|
|
1784
|
-
function Vi({ className: e, label: t, icon: n, children: r, ref: i, ...a }) {
|
|
1785
|
-
let o = t ?? r;
|
|
1786
|
-
return /* @__PURE__ */ N(Ti, {
|
|
1787
|
-
ref: i,
|
|
1788
|
-
className: _(Di(), e),
|
|
1789
|
-
...a,
|
|
1790
|
-
children: [
|
|
1791
|
-
/* @__PURE__ */ M(h, { variant: "default" }),
|
|
1792
|
-
n && /* @__PURE__ */ M("span", {
|
|
1793
|
-
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:text-icon-secondary",
|
|
1794
|
-
children: n
|
|
1795
|
-
}),
|
|
1796
|
-
/* @__PURE__ */ M("span", {
|
|
1797
|
-
className: "aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:text-left",
|
|
1798
|
-
children: o
|
|
1799
|
-
}),
|
|
1800
|
-
/* @__PURE__ */ M("span", {
|
|
1801
|
-
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:text-icon-secondary",
|
|
1802
|
-
children: /* @__PURE__ */ M(f, { size: 16 })
|
|
1803
|
-
})
|
|
1804
|
-
]
|
|
1805
|
-
});
|
|
1806
|
-
}
|
|
1807
|
-
function Hi({ className: e, sideOffset: t = 4, ref: n, ...r }) {
|
|
1808
|
-
return /* @__PURE__ */ M(mi, { children: /* @__PURE__ */ M(Ei, {
|
|
1809
|
-
ref: n,
|
|
1810
|
-
sideOffset: t,
|
|
1811
|
-
className: _(Oi, e),
|
|
1812
|
-
...r
|
|
1813
|
-
}) });
|
|
1814
|
-
}
|
|
1815
|
-
function Ui({ children: e }) {
|
|
1816
|
-
return /* @__PURE__ */ M("span", {
|
|
1817
|
-
"aria-hidden": !0,
|
|
1818
|
-
className: "aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:w-5 aivex:h-5 aivex:text-icon-primary",
|
|
1819
|
-
children: e
|
|
1820
|
-
});
|
|
1821
|
-
}
|
|
1822
|
-
var Wi = Object.assign(ki, {
|
|
1823
|
-
Trigger: Ai,
|
|
1824
|
-
Content: ji,
|
|
1825
|
-
Item: Fi,
|
|
1826
|
-
Group: Mi,
|
|
1827
|
-
Separator: Ni,
|
|
1828
|
-
Label: Pi,
|
|
1829
|
-
CheckboxItem: Ii,
|
|
1830
|
-
RadioGroup: Li,
|
|
1831
|
-
RadioItem: Ri,
|
|
1832
|
-
Sub: Bi,
|
|
1833
|
-
SubTrigger: Vi,
|
|
1834
|
-
SubContent: Hi,
|
|
1835
|
-
Shortcut: zi
|
|
1836
|
-
});
|
|
1837
|
-
//#endregion
|
|
1838
|
-
//#region node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
|
|
1839
|
-
function Gi(e, [t, n]) {
|
|
1840
|
-
return Math.min(n, Math.max(t, e));
|
|
1841
|
-
}
|
|
1842
|
-
//#endregion
|
|
1843
|
-
//#region src/components/Divider/Divider.tsx
|
|
1844
|
-
var Ki = ee("aivex:shrink-0", {
|
|
1845
|
-
variants: {
|
|
1846
|
-
strength: {
|
|
1847
|
-
basic: "",
|
|
1848
|
-
bold: ""
|
|
1849
|
-
},
|
|
1850
|
-
direction: {
|
|
1851
|
-
horizontal: "aivex:w-full",
|
|
1852
|
-
vertical: "aivex:h-full"
|
|
1853
|
-
}
|
|
1854
|
-
},
|
|
1855
|
-
compoundVariants: [
|
|
1856
|
-
{
|
|
1857
|
-
strength: "basic",
|
|
1858
|
-
direction: "horizontal",
|
|
1859
|
-
className: "aivex:border-t aivex:border-border-default"
|
|
1860
|
-
},
|
|
1861
|
-
{
|
|
1862
|
-
strength: "basic",
|
|
1863
|
-
direction: "vertical",
|
|
1864
|
-
className: "aivex:border-l aivex:border-border-default"
|
|
1865
|
-
},
|
|
1866
|
-
{
|
|
1867
|
-
strength: "bold",
|
|
1868
|
-
direction: "horizontal",
|
|
1869
|
-
className: "aivex:border-t-2 aivex:border-border-subtle"
|
|
1870
|
-
},
|
|
1871
|
-
{
|
|
1872
|
-
strength: "bold",
|
|
1873
|
-
direction: "vertical",
|
|
1874
|
-
className: "aivex:border-l-2 aivex:border-border-subtle"
|
|
1875
|
-
}
|
|
1876
|
-
],
|
|
1877
|
-
defaultVariants: {
|
|
1878
|
-
strength: "basic",
|
|
1879
|
-
direction: "horizontal"
|
|
1880
|
-
}
|
|
1881
|
-
});
|
|
1882
|
-
function qi({ className: e, strength: t, direction: n, ref: r, ...i }) {
|
|
1883
|
-
return /* @__PURE__ */ M("hr", {
|
|
1884
|
-
ref: r,
|
|
1885
|
-
"aria-orientation": n === "vertical" ? "vertical" : "horizontal",
|
|
1886
|
-
className: _(Ki({
|
|
1887
|
-
strength: t,
|
|
1888
|
-
direction: n
|
|
1889
|
-
}), e),
|
|
1890
|
-
...i
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
//#endregion
|
|
1894
|
-
//#region node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.3_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
1895
|
-
var Ji = O.useInsertionEffect || T;
|
|
1896
|
-
function Yi({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
1897
|
-
let [i, a, o] = Xi({
|
|
1898
|
-
defaultProp: t,
|
|
1899
|
-
onChange: n
|
|
1900
|
-
}), s = e !== void 0, c = s ? e : i;
|
|
1901
|
-
{
|
|
1902
|
-
let t = O.useRef(e !== void 0);
|
|
1903
|
-
O.useEffect(() => {
|
|
1904
|
-
let e = t.current;
|
|
1905
|
-
e !== s && console.warn(`${r} is changing from ${e ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), t.current = s;
|
|
1906
|
-
}, [s, r]);
|
|
1907
|
-
}
|
|
1908
|
-
return [c, O.useCallback((t) => {
|
|
1909
|
-
if (s) {
|
|
1910
|
-
let n = Zi(t) ? t(e) : t;
|
|
1911
|
-
n !== e && o.current?.(n);
|
|
1912
|
-
} else a(t);
|
|
1913
|
-
}, [
|
|
1914
|
-
s,
|
|
1915
|
-
e,
|
|
1916
|
-
a,
|
|
1917
|
-
o
|
|
1918
|
-
])];
|
|
1919
|
-
}
|
|
1920
|
-
function Xi({ defaultProp: e, onChange: t }) {
|
|
1921
|
-
let [n, r] = O.useState(e), i = O.useRef(n), a = O.useRef(t);
|
|
1922
|
-
return Ji(() => {
|
|
1923
|
-
a.current = t;
|
|
1924
|
-
}, [t]), O.useEffect(() => {
|
|
1925
|
-
i.current !== n && (a.current?.(n), i.current = n);
|
|
1926
|
-
}, [n, i]), [
|
|
1927
|
-
n,
|
|
1928
|
-
r,
|
|
1929
|
-
a
|
|
1930
|
-
];
|
|
1931
|
-
}
|
|
1932
|
-
function Zi(e) {
|
|
1933
|
-
return typeof e == "function";
|
|
1934
|
-
}
|
|
1935
|
-
//#endregion
|
|
1936
|
-
//#region node_modules/.pnpm/@radix-ui+react-use-previous@1.1.2_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
1937
|
-
function Qi(e) {
|
|
1938
|
-
let t = O.useRef({
|
|
1939
|
-
value: e,
|
|
1940
|
-
previous: e
|
|
1941
|
-
});
|
|
1942
|
-
return O.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
1943
|
-
}
|
|
1944
|
-
//#endregion
|
|
1945
|
-
//#region node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
1946
|
-
function $i(e) {
|
|
1947
|
-
let t = O.useRef({
|
|
1948
|
-
value: e,
|
|
1949
|
-
previous: e
|
|
1950
|
-
});
|
|
1951
|
-
return O.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
1952
|
-
}
|
|
1953
|
-
//#endregion
|
|
1954
|
-
//#region node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.14_react@19.2.5/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
1955
|
-
function ea(e) {
|
|
1956
|
-
let [t, r] = O.useState(void 0);
|
|
1957
|
-
return n(() => {
|
|
1958
|
-
if (e) {
|
|
1959
|
-
r({
|
|
1960
|
-
width: e.offsetWidth,
|
|
1961
|
-
height: e.offsetHeight
|
|
1962
|
-
});
|
|
1963
|
-
let t = new ResizeObserver((t) => {
|
|
1964
|
-
if (!Array.isArray(t) || !t.length) return;
|
|
1965
|
-
let n = t[0], i, a;
|
|
1966
|
-
if ("borderBoxSize" in n) {
|
|
1967
|
-
let e = n.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
1968
|
-
i = t.inlineSize, a = t.blockSize;
|
|
1969
|
-
} else i = e.offsetWidth, a = e.offsetHeight;
|
|
1970
|
-
r({
|
|
1971
|
-
width: i,
|
|
1972
|
-
height: a
|
|
1973
|
-
});
|
|
1974
|
-
});
|
|
1975
|
-
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
|
|
1976
|
-
} else r(void 0);
|
|
1977
|
-
}, [e]), t;
|
|
1978
|
-
}
|
|
1979
|
-
//#endregion
|
|
1980
|
-
//#region node_modules/.pnpm/@radix-ui+react-slider@1.3.6_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_bc6705c94abdae56af6b7d4e76cb8620/node_modules/@radix-ui/react-slider/dist/index.mjs
|
|
1981
|
-
var ta = ["PageUp", "PageDown"], na = [
|
|
1982
|
-
"ArrowUp",
|
|
1983
|
-
"ArrowDown",
|
|
1984
|
-
"ArrowLeft",
|
|
1985
|
-
"ArrowRight"
|
|
1986
|
-
], ra = {
|
|
1987
|
-
"from-left": [
|
|
1988
|
-
"Home",
|
|
1989
|
-
"PageDown",
|
|
1990
|
-
"ArrowDown",
|
|
1991
|
-
"ArrowLeft"
|
|
1992
|
-
],
|
|
1993
|
-
"from-right": [
|
|
1994
|
-
"Home",
|
|
1995
|
-
"PageDown",
|
|
1996
|
-
"ArrowDown",
|
|
1997
|
-
"ArrowRight"
|
|
1998
|
-
],
|
|
1999
|
-
"from-bottom": [
|
|
2000
|
-
"Home",
|
|
2001
|
-
"PageDown",
|
|
2002
|
-
"ArrowDown",
|
|
2003
|
-
"ArrowLeft"
|
|
2004
|
-
],
|
|
2005
|
-
"from-top": [
|
|
2006
|
-
"Home",
|
|
2007
|
-
"PageDown",
|
|
2008
|
-
"ArrowUp",
|
|
2009
|
-
"ArrowLeft"
|
|
2010
|
-
]
|
|
2011
|
-
}, $ = "Slider", [ia, aa, oa] = ie($), [sa, ca] = l($, [oa]), [la, ua] = sa($), da = O.forwardRef((e, t) => {
|
|
2012
|
-
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: s = "horizontal", disabled: c = !1, minStepsBetweenThumbs: l = 0, defaultValue: u = [r], value: d, onValueChange: f = () => {}, onValueCommit: p = () => {}, inverted: m = !1, form: h, ...g } = e, _ = O.useRef(/* @__PURE__ */ new Set()), v = O.useRef(0), y = s === "horizontal" ? ma : ha, [b = [], x] = C({
|
|
2013
|
-
prop: d,
|
|
2014
|
-
defaultProp: u,
|
|
2015
|
-
onChange: (e) => {
|
|
2016
|
-
[..._.current][v.current]?.focus(), f(e);
|
|
2017
|
-
}
|
|
2018
|
-
}), S = O.useRef(b);
|
|
2019
|
-
function w(e) {
|
|
2020
|
-
D(e, ka(b, e));
|
|
2021
|
-
}
|
|
2022
|
-
function T(e) {
|
|
2023
|
-
D(e, v.current);
|
|
2024
|
-
}
|
|
2025
|
-
function E() {
|
|
2026
|
-
let e = S.current[v.current];
|
|
2027
|
-
b[v.current] !== e && p(b);
|
|
2028
|
-
}
|
|
2029
|
-
function D(e, t, { commit: n } = { commit: !1 }) {
|
|
2030
|
-
let o = Pa(a), s = Gi(Fa(Math.round((e - r) / a) * a + r, o), [r, i]);
|
|
2031
|
-
x((e = []) => {
|
|
2032
|
-
let r = Ea(e, s, t);
|
|
2033
|
-
if (Ma(r, l * a)) {
|
|
2034
|
-
v.current = r.indexOf(s);
|
|
2035
|
-
let t = String(r) !== String(e);
|
|
2036
|
-
return t && n && p(r), t ? r : e;
|
|
2037
|
-
} else return e;
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
return /* @__PURE__ */ M(la, {
|
|
2041
|
-
scope: e.__scopeSlider,
|
|
2042
|
-
name: n,
|
|
2043
|
-
disabled: c,
|
|
2044
|
-
min: r,
|
|
2045
|
-
max: i,
|
|
2046
|
-
valueIndexToChangeRef: v,
|
|
2047
|
-
thumbs: _.current,
|
|
2048
|
-
values: b,
|
|
2049
|
-
orientation: s,
|
|
2050
|
-
form: h,
|
|
2051
|
-
children: /* @__PURE__ */ M(ia.Provider, {
|
|
2052
|
-
scope: e.__scopeSlider,
|
|
2053
|
-
children: /* @__PURE__ */ M(ia.Slot, {
|
|
2054
|
-
scope: e.__scopeSlider,
|
|
2055
|
-
children: /* @__PURE__ */ M(y, {
|
|
2056
|
-
"aria-disabled": c,
|
|
2057
|
-
"data-disabled": c ? "" : void 0,
|
|
2058
|
-
...g,
|
|
2059
|
-
ref: t,
|
|
2060
|
-
onPointerDown: o(g.onPointerDown, () => {
|
|
2061
|
-
c || (S.current = b);
|
|
2062
|
-
}),
|
|
2063
|
-
min: r,
|
|
2064
|
-
max: i,
|
|
2065
|
-
inverted: m,
|
|
2066
|
-
onSlideStart: c ? void 0 : w,
|
|
2067
|
-
onSlideMove: c ? void 0 : T,
|
|
2068
|
-
onSlideEnd: c ? void 0 : E,
|
|
2069
|
-
onHomeKeyDown: () => !c && D(r, 0, { commit: !0 }),
|
|
2070
|
-
onEndKeyDown: () => !c && D(i, b.length - 1, { commit: !0 }),
|
|
2071
|
-
onStepKeyDown: ({ event: e, direction: t }) => {
|
|
2072
|
-
if (!c) {
|
|
2073
|
-
let n = ta.includes(e.key) || e.shiftKey && na.includes(e.key) ? 10 : 1, r = v.current, i = b[r];
|
|
2074
|
-
D(i + a * n * t, r, { commit: !0 });
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
})
|
|
2078
|
-
})
|
|
2079
|
-
})
|
|
2080
|
-
});
|
|
2081
|
-
});
|
|
2082
|
-
da.displayName = $;
|
|
2083
|
-
var [fa, pa] = sa($, {
|
|
2084
|
-
startEdge: "left",
|
|
2085
|
-
endEdge: "right",
|
|
2086
|
-
size: "width",
|
|
2087
|
-
direction: 1
|
|
2088
|
-
}), ma = O.forwardRef((e, t) => {
|
|
2089
|
-
let { min: n, max: r, dir: i, inverted: o, onSlideStart: s, onSlideMove: c, onSlideEnd: l, onStepKeyDown: u, ...d } = e, [f, p] = O.useState(null), m = a(t, (e) => p(e)), h = O.useRef(void 0), g = P(i), _ = g === "ltr", v = _ && !o || !_ && o;
|
|
2090
|
-
function y(e) {
|
|
2091
|
-
let t = h.current || f.getBoundingClientRect(), i = Na([0, t.width], v ? [n, r] : [r, n]);
|
|
2092
|
-
return h.current = t, i(e - t.left);
|
|
2093
|
-
}
|
|
2094
|
-
return /* @__PURE__ */ M(fa, {
|
|
2095
|
-
scope: e.__scopeSlider,
|
|
2096
|
-
startEdge: v ? "left" : "right",
|
|
2097
|
-
endEdge: v ? "right" : "left",
|
|
2098
|
-
direction: v ? 1 : -1,
|
|
2099
|
-
size: "width",
|
|
2100
|
-
children: /* @__PURE__ */ M(ga, {
|
|
2101
|
-
dir: g,
|
|
2102
|
-
"data-orientation": "horizontal",
|
|
2103
|
-
...d,
|
|
2104
|
-
ref: m,
|
|
2105
|
-
style: {
|
|
2106
|
-
...d.style,
|
|
2107
|
-
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
2108
|
-
},
|
|
2109
|
-
onSlideStart: (e) => {
|
|
2110
|
-
let t = y(e.clientX);
|
|
2111
|
-
s?.(t);
|
|
2112
|
-
},
|
|
2113
|
-
onSlideMove: (e) => {
|
|
2114
|
-
let t = y(e.clientX);
|
|
2115
|
-
c?.(t);
|
|
2116
|
-
},
|
|
2117
|
-
onSlideEnd: () => {
|
|
2118
|
-
h.current = void 0, l?.();
|
|
2119
|
-
},
|
|
2120
|
-
onStepKeyDown: (e) => {
|
|
2121
|
-
let t = ra[v ? "from-left" : "from-right"].includes(e.key);
|
|
2122
|
-
u?.({
|
|
2123
|
-
event: e,
|
|
2124
|
-
direction: t ? -1 : 1
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
})
|
|
2128
|
-
});
|
|
2129
|
-
}), ha = O.forwardRef((e, t) => {
|
|
2130
|
-
let { min: n, max: r, inverted: i, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, d = O.useRef(null), f = a(t, d), p = O.useRef(void 0), m = !i;
|
|
2131
|
-
function h(e) {
|
|
2132
|
-
let t = p.current || d.current.getBoundingClientRect(), i = Na([0, t.height], m ? [r, n] : [n, r]);
|
|
2133
|
-
return p.current = t, i(e - t.top);
|
|
2134
|
-
}
|
|
2135
|
-
return /* @__PURE__ */ M(fa, {
|
|
2136
|
-
scope: e.__scopeSlider,
|
|
2137
|
-
startEdge: m ? "bottom" : "top",
|
|
2138
|
-
endEdge: m ? "top" : "bottom",
|
|
2139
|
-
size: "height",
|
|
2140
|
-
direction: m ? 1 : -1,
|
|
2141
|
-
children: /* @__PURE__ */ M(ga, {
|
|
2142
|
-
"data-orientation": "vertical",
|
|
2143
|
-
...u,
|
|
2144
|
-
ref: f,
|
|
2145
|
-
style: {
|
|
2146
|
-
...u.style,
|
|
2147
|
-
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
2148
|
-
},
|
|
2149
|
-
onSlideStart: (e) => {
|
|
2150
|
-
let t = h(e.clientY);
|
|
2151
|
-
o?.(t);
|
|
2152
|
-
},
|
|
2153
|
-
onSlideMove: (e) => {
|
|
2154
|
-
let t = h(e.clientY);
|
|
2155
|
-
s?.(t);
|
|
2156
|
-
},
|
|
2157
|
-
onSlideEnd: () => {
|
|
2158
|
-
p.current = void 0, c?.();
|
|
2159
|
-
},
|
|
2160
|
-
onStepKeyDown: (e) => {
|
|
2161
|
-
let t = ra[m ? "from-bottom" : "from-top"].includes(e.key);
|
|
2162
|
-
l?.({
|
|
2163
|
-
event: e,
|
|
2164
|
-
direction: t ? -1 : 1
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
})
|
|
2168
|
-
});
|
|
2169
|
-
}), ga = O.forwardRef((e, t) => {
|
|
2170
|
-
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: s, onEndKeyDown: c, onStepKeyDown: l, ...u } = e, d = ua($, n);
|
|
2171
|
-
return /* @__PURE__ */ M(v.span, {
|
|
2172
|
-
...u,
|
|
2173
|
-
ref: t,
|
|
2174
|
-
onKeyDown: o(e.onKeyDown, (e) => {
|
|
2175
|
-
e.key === "Home" ? (s(e), e.preventDefault()) : e.key === "End" ? (c(e), e.preventDefault()) : ta.concat(na).includes(e.key) && (l(e), e.preventDefault());
|
|
2176
|
-
}),
|
|
2177
|
-
onPointerDown: o(e.onPointerDown, (e) => {
|
|
2178
|
-
let t = e.target;
|
|
2179
|
-
t.setPointerCapture(e.pointerId), e.preventDefault(), d.thumbs.has(t) ? t.focus() : r(e);
|
|
2180
|
-
}),
|
|
2181
|
-
onPointerMove: o(e.onPointerMove, (e) => {
|
|
2182
|
-
e.target.hasPointerCapture(e.pointerId) && i(e);
|
|
2183
|
-
}),
|
|
2184
|
-
onPointerUp: o(e.onPointerUp, (e) => {
|
|
2185
|
-
let t = e.target;
|
|
2186
|
-
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
|
|
2187
|
-
})
|
|
2188
|
-
});
|
|
2189
|
-
}), _a = "SliderTrack", va = O.forwardRef((e, t) => {
|
|
2190
|
-
let { __scopeSlider: n, ...r } = e, i = ua(_a, n);
|
|
2191
|
-
return /* @__PURE__ */ M(v.span, {
|
|
2192
|
-
"data-disabled": i.disabled ? "" : void 0,
|
|
2193
|
-
"data-orientation": i.orientation,
|
|
2194
|
-
...r,
|
|
2195
|
-
ref: t
|
|
2196
|
-
});
|
|
2197
|
-
});
|
|
2198
|
-
va.displayName = _a;
|
|
2199
|
-
var ya = "SliderRange", ba = O.forwardRef((e, t) => {
|
|
2200
|
-
let { __scopeSlider: n, ...r } = e, i = ua(ya, n), o = pa(ya, n), s = a(t, O.useRef(null)), c = i.values.length, l = i.values.map((e) => Da(e, i.min, i.max)), u = c > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
|
|
2201
|
-
return /* @__PURE__ */ M(v.span, {
|
|
2202
|
-
"data-orientation": i.orientation,
|
|
2203
|
-
"data-disabled": i.disabled ? "" : void 0,
|
|
2204
|
-
...r,
|
|
2205
|
-
ref: s,
|
|
2206
|
-
style: {
|
|
2207
|
-
...e.style,
|
|
2208
|
-
[o.startEdge]: u + "%",
|
|
2209
|
-
[o.endEdge]: d + "%"
|
|
2210
|
-
}
|
|
2211
|
-
});
|
|
2212
|
-
});
|
|
2213
|
-
ba.displayName = ya;
|
|
2214
|
-
var xa = "SliderThumb", Sa = O.forwardRef((e, t) => {
|
|
2215
|
-
let n = aa(e.__scopeSlider), [r, i] = O.useState(null), o = a(t, (e) => i(e)), s = O.useMemo(() => r ? n().findIndex((e) => e.ref.current === r) : -1, [n, r]);
|
|
2216
|
-
return /* @__PURE__ */ M(Ca, {
|
|
2217
|
-
...e,
|
|
2218
|
-
ref: o,
|
|
2219
|
-
index: s
|
|
2220
|
-
});
|
|
2221
|
-
}), Ca = O.forwardRef((e, t) => {
|
|
2222
|
-
let { __scopeSlider: n, index: r, name: i, ...s } = e, c = ua(xa, n), l = pa(xa, n), [u, d] = O.useState(null), f = a(t, (e) => d(e)), p = u ? c.form || !!u.closest("form") : !0, m = ea(u), h = c.values[r], g = h === void 0 ? 0 : Da(h, c.min, c.max), _ = Oa(r, c.values.length), y = m?.[l.size], b = y ? Aa(y, g, l.direction) : 0;
|
|
2223
|
-
return O.useEffect(() => {
|
|
2224
|
-
if (u) return c.thumbs.add(u), () => {
|
|
2225
|
-
c.thumbs.delete(u);
|
|
2226
|
-
};
|
|
2227
|
-
}, [u, c.thumbs]), /* @__PURE__ */ N("span", {
|
|
2228
|
-
style: {
|
|
2229
|
-
transform: "var(--radix-slider-thumb-transform)",
|
|
2230
|
-
position: "absolute",
|
|
2231
|
-
[l.startEdge]: `calc(${g}% + ${b}px)`
|
|
2232
|
-
},
|
|
2233
|
-
children: [/* @__PURE__ */ M(ia.ItemSlot, {
|
|
2234
|
-
scope: e.__scopeSlider,
|
|
2235
|
-
children: /* @__PURE__ */ M(v.span, {
|
|
2236
|
-
role: "slider",
|
|
2237
|
-
"aria-label": e["aria-label"] || _,
|
|
2238
|
-
"aria-valuemin": c.min,
|
|
2239
|
-
"aria-valuenow": h,
|
|
2240
|
-
"aria-valuemax": c.max,
|
|
2241
|
-
"aria-orientation": c.orientation,
|
|
2242
|
-
"data-orientation": c.orientation,
|
|
2243
|
-
"data-disabled": c.disabled ? "" : void 0,
|
|
2244
|
-
tabIndex: c.disabled ? void 0 : 0,
|
|
2245
|
-
...s,
|
|
2246
|
-
ref: f,
|
|
2247
|
-
style: h === void 0 ? { display: "none" } : e.style,
|
|
2248
|
-
onFocus: o(e.onFocus, () => {
|
|
2249
|
-
c.valueIndexToChangeRef.current = r;
|
|
2250
|
-
})
|
|
2251
|
-
})
|
|
2252
|
-
}), p && /* @__PURE__ */ M(Ta, {
|
|
2253
|
-
name: i ?? (c.name ? c.name + (c.values.length > 1 ? "[]" : "") : void 0),
|
|
2254
|
-
form: c.form,
|
|
2255
|
-
value: h
|
|
2256
|
-
}, r)]
|
|
2257
|
-
});
|
|
2258
|
-
});
|
|
2259
|
-
Sa.displayName = xa;
|
|
2260
|
-
var wa = "RadioBubbleInput", Ta = O.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
2261
|
-
let i = O.useRef(null), o = a(i, r), s = $i(t);
|
|
2262
|
-
return O.useEffect(() => {
|
|
2263
|
-
let e = i.current;
|
|
2264
|
-
if (!e) return;
|
|
2265
|
-
let n = window.HTMLInputElement.prototype, r = Object.getOwnPropertyDescriptor(n, "value").set;
|
|
2266
|
-
if (s !== t && r) {
|
|
2267
|
-
let n = new Event("input", { bubbles: !0 });
|
|
2268
|
-
r.call(e, t), e.dispatchEvent(n);
|
|
2269
|
-
}
|
|
2270
|
-
}, [s, t]), /* @__PURE__ */ M(v.input, {
|
|
2271
|
-
style: { display: "none" },
|
|
2272
|
-
...n,
|
|
2273
|
-
ref: o,
|
|
2274
|
-
defaultValue: t
|
|
2275
|
-
});
|
|
2276
|
-
});
|
|
2277
|
-
Ta.displayName = wa;
|
|
2278
|
-
function Ea(e = [], t, n) {
|
|
2279
|
-
let r = [...e];
|
|
2280
|
-
return r[n] = t, r.sort((e, t) => e - t);
|
|
2281
|
-
}
|
|
2282
|
-
function Da(e, t, n) {
|
|
2283
|
-
return Gi(100 / (n - t) * (e - t), [0, 100]);
|
|
2284
|
-
}
|
|
2285
|
-
function Oa(e, t) {
|
|
2286
|
-
if (t > 2) return `Value ${e + 1} of ${t}`;
|
|
2287
|
-
if (t === 2) return ["Minimum", "Maximum"][e];
|
|
2288
|
-
}
|
|
2289
|
-
function ka(e, t) {
|
|
2290
|
-
if (e.length === 1) return 0;
|
|
2291
|
-
let n = e.map((e) => Math.abs(e - t)), r = Math.min(...n);
|
|
2292
|
-
return n.indexOf(r);
|
|
2293
|
-
}
|
|
2294
|
-
function Aa(e, t, n) {
|
|
2295
|
-
let r = e / 2;
|
|
2296
|
-
return (r - Na([0, 50], [0, r])(t) * n) * n;
|
|
2297
|
-
}
|
|
2298
|
-
function ja(e) {
|
|
2299
|
-
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
|
|
2300
|
-
}
|
|
2301
|
-
function Ma(e, t) {
|
|
2302
|
-
if (t > 0) {
|
|
2303
|
-
let n = ja(e);
|
|
2304
|
-
return Math.min(...n) >= t;
|
|
2305
|
-
}
|
|
2306
|
-
return !0;
|
|
2307
|
-
}
|
|
2308
|
-
function Na(e, t) {
|
|
2309
|
-
return (n) => {
|
|
2310
|
-
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
2311
|
-
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
2312
|
-
return t[0] + r * (n - e[0]);
|
|
2313
|
-
};
|
|
2314
|
-
}
|
|
2315
|
-
function Pa(e) {
|
|
2316
|
-
return (String(e).split(".")[1] || "").length;
|
|
2317
|
-
}
|
|
2318
|
-
function Fa(e, t) {
|
|
2319
|
-
let n = 10 ** t;
|
|
2320
|
-
return Math.round(e * n) / n;
|
|
2321
|
-
}
|
|
2322
|
-
var Ia = da, La = va, Ra = Sa;
|
|
2323
|
-
//#endregion
|
|
2324
|
-
//#region src/components/Slider/Slider.tsx
|
|
2325
|
-
function za({ className: e, trackClassName: t, trackRootClassName: n, thumbClassName: r, defaultValue: i = [50], value: a, min: o = 0, max: s = 100, step: c = 1, onValueChange: l, ref: u, ...d }) {
|
|
2326
|
-
let f = a !== void 0, [p, m] = j(i), h = f ? a : p, g = (e) => {
|
|
2327
|
-
f || m(e), l?.(e);
|
|
2328
|
-
}, v = te(() => {
|
|
2329
|
-
let e = s - o || 1;
|
|
2330
|
-
return [...h].sort((e, t) => e - t).map((t) => (t - o) / e * 100);
|
|
2331
|
-
}, [
|
|
2332
|
-
h,
|
|
2333
|
-
o,
|
|
2334
|
-
s
|
|
2335
|
-
]), y = te(() => {
|
|
2336
|
-
let e = [
|
|
2337
|
-
0,
|
|
2338
|
-
...v,
|
|
2339
|
-
100
|
|
2340
|
-
];
|
|
2341
|
-
return e.slice(0, -1).map((t, n) => ({
|
|
2342
|
-
left: t,
|
|
2343
|
-
width: e[n + 1] - t
|
|
2344
|
-
}));
|
|
2345
|
-
}, [v]);
|
|
2346
|
-
return /* @__PURE__ */ N(Ia, {
|
|
2347
|
-
ref: u,
|
|
2348
|
-
className: _("aivex:relative aivex:flex aivex:w-full aivex:touch-none aivex:select-none aivex:items-center aivex:outline-none", "aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:opacity-disable", e),
|
|
2349
|
-
defaultValue: i,
|
|
2350
|
-
value: a,
|
|
2351
|
-
min: o,
|
|
2352
|
-
max: s,
|
|
2353
|
-
step: c,
|
|
2354
|
-
onValueChange: g,
|
|
2355
|
-
...d,
|
|
2356
|
-
children: [/* @__PURE__ */ M(La, {
|
|
2357
|
-
className: _("aivex:relative aivex:h-2 aivex:w-full aivex:grow aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary", n),
|
|
2358
|
-
children: y.map(({ left: e, width: n }, r) => {
|
|
2359
|
-
let i = r === +(v.length >= 2) ? "aivex:bg-bg-brand" : "aivex:bg-bg-tertiary";
|
|
2360
|
-
return /* @__PURE__ */ M("div", {
|
|
2361
|
-
className: _("aivex:absolute aivex:top-0 aivex:h-full aivex:rounded-full", typeof t == "string" ? t : t?.(r) ?? i),
|
|
2362
|
-
style: {
|
|
2363
|
-
left: `${e}%`,
|
|
2364
|
-
width: `${n}%`
|
|
2365
|
-
}
|
|
2366
|
-
}, r);
|
|
2367
|
-
})
|
|
2368
|
-
}), h.map((e, t) => /* @__PURE__ */ M(Ra, { className: _("aivex:z-10 aivex:block aivex:h-6 aivex:w-6 aivex:box-border aivex:rounded-full aivex:border-2 aivex:border-border-brand aivex:bg-bg-primary aivex:shadow-sm", "aivex:cursor-pointer aivex:transition-transform aivex:hover:scale-110", "aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand", "aivex:disabled:pointer-events-none", typeof r == "string" ? r : r?.(t)) }, t))]
|
|
2369
|
-
});
|
|
2370
|
-
}
|
|
2371
|
-
//#endregion
|
|
2372
|
-
//#region node_modules/.pnpm/@radix-ui+react-switch@1.3.1_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_0191c413fb19fe9d4a1d6d8f88e11251/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
2373
|
-
var Ba = "Switch", [Va, Ha] = d(Ba), [Ua, Wa] = Va(Ba);
|
|
2374
|
-
function Ga(e) {
|
|
2375
|
-
let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = Yi({
|
|
2376
|
-
prop: n,
|
|
2377
|
-
defaultProp: i ?? !1,
|
|
2378
|
-
onChange: c,
|
|
2379
|
-
caller: Ba
|
|
2380
|
-
}), [m, h] = O.useState(null), [g, _] = O.useState(null), v = {
|
|
2381
|
-
checked: f,
|
|
2382
|
-
setChecked: p,
|
|
2383
|
-
disabled: a,
|
|
2384
|
-
control: m,
|
|
2385
|
-
setControl: h,
|
|
2386
|
-
name: s,
|
|
2387
|
-
form: o,
|
|
2388
|
-
value: u,
|
|
2389
|
-
hasConsumerStoppedPropagationRef: O.useRef(!1),
|
|
2390
|
-
required: l,
|
|
2391
|
-
defaultChecked: i,
|
|
2392
|
-
isFormControl: m ? !!o || !!m.closest("form") : !0,
|
|
2393
|
-
bubbleInput: g,
|
|
2394
|
-
setBubbleInput: _
|
|
2395
|
-
};
|
|
2396
|
-
return /* @__PURE__ */ M(Ua, {
|
|
2397
|
-
scope: t,
|
|
2398
|
-
...v,
|
|
2399
|
-
children: $a(d) ? d(v) : r
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
var Ka = "SwitchTrigger", qa = O.forwardRef(({ __scopeSwitch: t, onClick: n, ...r }, i) => {
|
|
2403
|
-
let { value: a, disabled: o, checked: c, required: l, setControl: u, setChecked: d, hasConsumerStoppedPropagationRef: f, isFormControl: p, bubbleInput: m } = Wa(Ka, t), h = e(i, u);
|
|
2404
|
-
return /* @__PURE__ */ M(b.button, {
|
|
2405
|
-
type: "button",
|
|
2406
|
-
role: "switch",
|
|
2407
|
-
"aria-checked": c,
|
|
2408
|
-
"aria-required": l,
|
|
2409
|
-
"data-state": eo(c),
|
|
2410
|
-
"data-disabled": o ? "" : void 0,
|
|
2411
|
-
disabled: o,
|
|
2412
|
-
value: a,
|
|
2413
|
-
...r,
|
|
2414
|
-
ref: h,
|
|
2415
|
-
onClick: s(n, (e) => {
|
|
2416
|
-
d((e) => !e), m && p && (f.current = e.isPropagationStopped(), f.current || e.stopPropagation());
|
|
2417
|
-
})
|
|
2418
|
-
});
|
|
2419
|
-
});
|
|
2420
|
-
qa.displayName = Ka;
|
|
2421
|
-
var Ja = O.forwardRef((e, t) => {
|
|
2422
|
-
let { __scopeSwitch: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
|
|
2423
|
-
return /* @__PURE__ */ M(Ga, {
|
|
2424
|
-
__scopeSwitch: n,
|
|
2425
|
-
checked: i,
|
|
2426
|
-
defaultChecked: a,
|
|
2427
|
-
disabled: s,
|
|
2428
|
-
required: o,
|
|
2429
|
-
onCheckedChange: l,
|
|
2430
|
-
name: r,
|
|
2431
|
-
form: u,
|
|
2432
|
-
value: c,
|
|
2433
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ N(ne, { children: [/* @__PURE__ */ M(qa, {
|
|
2434
|
-
...d,
|
|
2435
|
-
ref: t,
|
|
2436
|
-
__scopeSwitch: n
|
|
2437
|
-
}), e && /* @__PURE__ */ M(Qa, { __scopeSwitch: n })] })
|
|
2438
|
-
});
|
|
2439
|
-
});
|
|
2440
|
-
Ja.displayName = Ba;
|
|
2441
|
-
var Ya = "SwitchThumb", Xa = O.forwardRef((e, t) => {
|
|
2442
|
-
let { __scopeSwitch: n, ...r } = e, i = Wa(Ya, n);
|
|
2443
|
-
return /* @__PURE__ */ M(b.span, {
|
|
2444
|
-
"data-state": eo(i.checked),
|
|
2445
|
-
"data-disabled": i.disabled ? "" : void 0,
|
|
2446
|
-
...r,
|
|
2447
|
-
ref: t
|
|
2448
|
-
});
|
|
2449
|
-
});
|
|
2450
|
-
Xa.displayName = Ya;
|
|
2451
|
-
var Za = "SwitchBubbleInput", Qa = O.forwardRef(({ __scopeSwitch: n, ...r }, i) => {
|
|
2452
|
-
let { control: a, hasConsumerStoppedPropagationRef: o, checked: s, defaultChecked: c, required: l, disabled: u, name: d, value: f, form: p, bubbleInput: m, setBubbleInput: h } = Wa(Za, n), g = e(i, h), _ = Qi(s), v = t(a);
|
|
2453
|
-
O.useEffect(() => {
|
|
2454
|
-
let e = m;
|
|
2455
|
-
if (!e) return;
|
|
2456
|
-
let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !o.current;
|
|
2457
|
-
if (_ !== s && n) {
|
|
2458
|
-
let t = new Event("click", { bubbles: r });
|
|
2459
|
-
n.call(e, s), e.dispatchEvent(t);
|
|
2460
|
-
}
|
|
2461
|
-
}, [
|
|
2462
|
-
m,
|
|
2463
|
-
_,
|
|
2464
|
-
s,
|
|
2465
|
-
o
|
|
2466
|
-
]);
|
|
2467
|
-
let y = O.useRef(s);
|
|
2468
|
-
return /* @__PURE__ */ M(b.input, {
|
|
2469
|
-
type: "checkbox",
|
|
2470
|
-
"aria-hidden": !0,
|
|
2471
|
-
defaultChecked: c ?? y.current,
|
|
2472
|
-
required: l,
|
|
2473
|
-
disabled: u,
|
|
2474
|
-
name: d,
|
|
2475
|
-
value: f,
|
|
2476
|
-
form: p,
|
|
2477
|
-
...r,
|
|
2478
|
-
tabIndex: -1,
|
|
2479
|
-
ref: g,
|
|
2480
|
-
style: {
|
|
2481
|
-
...r.style,
|
|
2482
|
-
...v,
|
|
2483
|
-
position: "absolute",
|
|
2484
|
-
pointerEvents: "none",
|
|
2485
|
-
opacity: 0,
|
|
2486
|
-
margin: 0,
|
|
2487
|
-
transform: "translateX(-100%)"
|
|
2488
|
-
}
|
|
2489
|
-
});
|
|
2490
|
-
});
|
|
2491
|
-
Qa.displayName = Za;
|
|
2492
|
-
function $a(e) {
|
|
2493
|
-
return typeof e == "function";
|
|
2494
|
-
}
|
|
2495
|
-
function eo(e) {
|
|
2496
|
-
return e ? "checked" : "unchecked";
|
|
2497
|
-
}
|
|
2498
|
-
//#endregion
|
|
2499
|
-
//#region src/components/Switch/Switch.tsx
|
|
2500
|
-
var to = ee("aivex:relative aivex:inline-flex aivex:shrink-0 aivex:items-center aivex:rounded-full aivex:transition-colors aivex:duration-200 aivex:cursor-pointer aivex:bg-bg-tertiary aivex:data-[state=checked]:bg-bg-brand aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:disabled:cursor-not-allowed aivex:disabled:opacity-disable", {
|
|
2501
|
-
variants: { size: {
|
|
2502
|
-
sm: "aivex:w-6 aivex:h-4",
|
|
2503
|
-
md: "aivex:w-8 aivex:h-5",
|
|
2504
|
-
lg: "aivex:w-10 aivex:h-6"
|
|
2505
|
-
} },
|
|
2506
|
-
defaultVariants: { size: "md" }
|
|
2507
|
-
}), no = {
|
|
2508
|
-
sm: "aivex:w-2.5 aivex:h-2.5 aivex:translate-x-[3px] aivex:data-[state=checked]:translate-x-[11px]",
|
|
2509
|
-
md: "aivex:w-3.5 aivex:h-3.5 aivex:translate-x-[3px] aivex:data-[state=checked]:translate-x-[15px]",
|
|
2510
|
-
lg: "aivex:w-[18px] aivex:h-[18px] aivex:translate-x-[3px] aivex:data-[state=checked]:translate-x-[19px]"
|
|
2511
|
-
}, ro = {
|
|
2512
|
-
sm: "aivex:h-4",
|
|
2513
|
-
md: "aivex:h-5",
|
|
2514
|
-
lg: "aivex:h-6"
|
|
2515
|
-
};
|
|
2516
|
-
function io({ className: e, label: t, size: n = "md", disabled: r, id: i, ref: a, ...o }) {
|
|
2517
|
-
let s = n ?? "md", c = A(), l = i ?? c;
|
|
2518
|
-
return /* @__PURE__ */ N("span", {
|
|
2519
|
-
className: _("aivex:inline-flex aivex:items-center aivex:gap-md", r && "aivex:opacity-disable"),
|
|
2520
|
-
children: [/* @__PURE__ */ M(Ja, {
|
|
2521
|
-
ref: a,
|
|
2522
|
-
id: l,
|
|
2523
|
-
disabled: r,
|
|
2524
|
-
className: _(to({ size: s }), e),
|
|
2525
|
-
...o,
|
|
2526
|
-
children: /* @__PURE__ */ M(Xa, { className: _("aivex:block aivex:rounded-full aivex:bg-white aivex:shadow-[var(--aivex-elevation-sm)] aivex:transition-transform aivex:duration-200 aivex:will-change-transform", no[s]) })
|
|
2527
|
-
}), t && /* @__PURE__ */ M("label", {
|
|
2528
|
-
htmlFor: l,
|
|
2529
|
-
className: _("aivex:inline-flex aivex:items-center aivex:cursor-pointer aivex:select-none aivex:text-label-lg aivex:text-text-primary", r && "aivex:cursor-not-allowed", ro[s]),
|
|
2530
|
-
children: t
|
|
2531
|
-
})]
|
|
2532
|
-
});
|
|
2533
|
-
}
|
|
2534
|
-
//#endregion
|
|
2535
|
-
export { P as _, qi as a, Wi as c, Ue as d, He as f, se as g, pe as h, Yi as i, nn as l, I as m, za as n, Ki as o, Ae as p, Qi as r, Gi as s, io as t, Ze as u };
|
|
2536
|
-
|
|
2537
|
-
//# sourceMappingURL=Switch-rKD8bdwo.js.map
|