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