@infra-cryptomate/react-components 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components.es.js
CHANGED
|
@@ -1,9 +1,76 @@
|
|
|
1
1
|
import { jsx as N, jsxs as lt } from "react/jsx-runtime";
|
|
2
2
|
import * as S from "react";
|
|
3
|
-
import
|
|
3
|
+
import be, { useCallback as Z, forwardRef as _, Children as Ke, isValidElement as Pt, createElement as $, cloneElement as fn, Fragment as It, createContext as Et, useMemo as je, useContext as pn, useRef as L, useEffect as U, useState as H, useLayoutEffect as co, useReducer as Jr } from "react";
|
|
4
4
|
import * as ec from "react-dom";
|
|
5
5
|
import tc, { flushSync as io, createPortal as ao } from "react-dom";
|
|
6
|
-
function
|
|
6
|
+
function C() {
|
|
7
|
+
return C = Object.assign ? Object.assign.bind() : function(e) {
|
|
8
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
9
|
+
var n = arguments[t];
|
|
10
|
+
for (var o in n)
|
|
11
|
+
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
12
|
+
}
|
|
13
|
+
return e;
|
|
14
|
+
}, C.apply(this, arguments);
|
|
15
|
+
}
|
|
16
|
+
function nc(e, t) {
|
|
17
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
18
|
+
}
|
|
19
|
+
function Nt(...e) {
|
|
20
|
+
return (t) => e.forEach(
|
|
21
|
+
(n) => nc(n, t)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
function ce(...e) {
|
|
25
|
+
return Z(Nt(...e), e);
|
|
26
|
+
}
|
|
27
|
+
const Fe = /* @__PURE__ */ _((e, t) => {
|
|
28
|
+
const { children: n, ...o } = e, r = Ke.toArray(n), c = r.find(rc);
|
|
29
|
+
if (c) {
|
|
30
|
+
const i = c.props.children, a = r.map((s) => s === c ? Ke.count(i) > 1 ? Ke.only(null) : /* @__PURE__ */ Pt(i) ? i.props.children : null : s);
|
|
31
|
+
return /* @__PURE__ */ $(en, C({}, o, {
|
|
32
|
+
ref: t
|
|
33
|
+
}), /* @__PURE__ */ Pt(i) ? /* @__PURE__ */ fn(i, void 0, a) : null);
|
|
34
|
+
}
|
|
35
|
+
return /* @__PURE__ */ $(en, C({}, o, {
|
|
36
|
+
ref: t
|
|
37
|
+
}), n);
|
|
38
|
+
});
|
|
39
|
+
Fe.displayName = "Slot";
|
|
40
|
+
const en = /* @__PURE__ */ _((e, t) => {
|
|
41
|
+
const { children: n, ...o } = e;
|
|
42
|
+
return /* @__PURE__ */ Pt(n) ? /* @__PURE__ */ fn(n, {
|
|
43
|
+
...cc(o, n.props),
|
|
44
|
+
ref: t ? Nt(t, n.ref) : n.ref
|
|
45
|
+
}) : Ke.count(n) > 1 ? Ke.only(null) : null;
|
|
46
|
+
});
|
|
47
|
+
en.displayName = "SlotClone";
|
|
48
|
+
const oc = ({ children: e }) => /* @__PURE__ */ $(It, null, e);
|
|
49
|
+
function rc(e) {
|
|
50
|
+
return /* @__PURE__ */ Pt(e) && e.type === oc;
|
|
51
|
+
}
|
|
52
|
+
function cc(e, t) {
|
|
53
|
+
const n = {
|
|
54
|
+
...t
|
|
55
|
+
};
|
|
56
|
+
for (const o in t) {
|
|
57
|
+
const r = e[o], c = t[o];
|
|
58
|
+
/^on[A-Z]/.test(o) ? r && c ? n[o] = (...a) => {
|
|
59
|
+
c(...a), r(...a);
|
|
60
|
+
} : r && (n[o] = r) : o === "style" ? n[o] = {
|
|
61
|
+
...r,
|
|
62
|
+
...c
|
|
63
|
+
} : o === "className" && (n[o] = [
|
|
64
|
+
r,
|
|
65
|
+
c
|
|
66
|
+
].filter(Boolean).join(" "));
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
...e,
|
|
70
|
+
...n
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function ic() {
|
|
7
74
|
for (var e = 0, t, n, o = ""; e < arguments.length; )
|
|
8
75
|
(t = arguments[e++]) && (n = so(t)) && (o && (o += " "), o += n);
|
|
9
76
|
return o;
|
|
@@ -16,11 +83,11 @@ function so(e) {
|
|
|
16
83
|
return n;
|
|
17
84
|
}
|
|
18
85
|
var mn = "-";
|
|
19
|
-
function
|
|
20
|
-
var t =
|
|
86
|
+
function ac(e) {
|
|
87
|
+
var t = lc(e), n = e.conflictingClassGroups, o = e.conflictingClassGroupModifiers, r = o === void 0 ? {} : o;
|
|
21
88
|
function c(a) {
|
|
22
89
|
var s = a.split(mn);
|
|
23
|
-
return s[0] === "" && s.length !== 1 && s.shift(), lo(s, t) ||
|
|
90
|
+
return s[0] === "" && s.length !== 1 && s.shift(), lo(s, t) || sc(a);
|
|
24
91
|
}
|
|
25
92
|
function i(a, s) {
|
|
26
93
|
var d = n[a] || [];
|
|
@@ -47,24 +114,24 @@ function lo(e, t) {
|
|
|
47
114
|
}
|
|
48
115
|
}
|
|
49
116
|
var Tn = /^\[(.+)\]$/;
|
|
50
|
-
function
|
|
117
|
+
function sc(e) {
|
|
51
118
|
if (Tn.test(e)) {
|
|
52
119
|
var t = Tn.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
53
120
|
if (n)
|
|
54
121
|
return "arbitrary.." + n;
|
|
55
122
|
}
|
|
56
123
|
}
|
|
57
|
-
function
|
|
124
|
+
function lc(e) {
|
|
58
125
|
var t = e.theme, n = e.prefix, o = {
|
|
59
126
|
nextPart: /* @__PURE__ */ new Map(),
|
|
60
127
|
validators: []
|
|
61
|
-
}, r =
|
|
128
|
+
}, r = uc(Object.entries(e.classGroups), n);
|
|
62
129
|
return r.forEach(function(c) {
|
|
63
130
|
var i = c[0], a = c[1];
|
|
64
|
-
|
|
131
|
+
tn(a, o, i, t);
|
|
65
132
|
}), o;
|
|
66
133
|
}
|
|
67
|
-
function
|
|
134
|
+
function tn(e, t, n, o) {
|
|
68
135
|
e.forEach(function(r) {
|
|
69
136
|
if (typeof r == "string") {
|
|
70
137
|
var c = r === "" ? t : On(t, r);
|
|
@@ -72,8 +139,8 @@ function en(e, t, n, o) {
|
|
|
72
139
|
return;
|
|
73
140
|
}
|
|
74
141
|
if (typeof r == "function") {
|
|
75
|
-
if (
|
|
76
|
-
|
|
142
|
+
if (dc(r)) {
|
|
143
|
+
tn(r(o), t, n, o);
|
|
77
144
|
return;
|
|
78
145
|
}
|
|
79
146
|
t.validators.push({
|
|
@@ -84,7 +151,7 @@ function en(e, t, n, o) {
|
|
|
84
151
|
}
|
|
85
152
|
Object.entries(r).forEach(function(i) {
|
|
86
153
|
var a = i[0], s = i[1];
|
|
87
|
-
|
|
154
|
+
tn(s, On(t, a), n, o);
|
|
88
155
|
});
|
|
89
156
|
});
|
|
90
157
|
}
|
|
@@ -97,10 +164,10 @@ function On(e, t) {
|
|
|
97
164
|
}), n = n.nextPart.get(o);
|
|
98
165
|
}), n;
|
|
99
166
|
}
|
|
100
|
-
function
|
|
167
|
+
function dc(e) {
|
|
101
168
|
return e.isThemeGetter;
|
|
102
169
|
}
|
|
103
|
-
function
|
|
170
|
+
function uc(e, t) {
|
|
104
171
|
return t ? e.map(function(n) {
|
|
105
172
|
var o = n[0], r = n[1], c = r.map(function(i) {
|
|
106
173
|
return typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(function(a) {
|
|
@@ -111,7 +178,7 @@ function ac(e, t) {
|
|
|
111
178
|
return [o, c];
|
|
112
179
|
}) : e;
|
|
113
180
|
}
|
|
114
|
-
function
|
|
181
|
+
function fc(e) {
|
|
115
182
|
if (e < 1)
|
|
116
183
|
return {
|
|
117
184
|
get: function() {
|
|
@@ -137,7 +204,7 @@ function sc(e) {
|
|
|
137
204
|
};
|
|
138
205
|
}
|
|
139
206
|
var uo = "!";
|
|
140
|
-
function
|
|
207
|
+
function pc(e) {
|
|
141
208
|
var t = e.separator || ":", n = t.length === 1, o = t[0], r = t.length;
|
|
142
209
|
return function(i) {
|
|
143
210
|
for (var a = [], s = 0, d = 0, u, l = 0; l < i.length; l++) {
|
|
@@ -163,7 +230,7 @@ function lc(e) {
|
|
|
163
230
|
};
|
|
164
231
|
};
|
|
165
232
|
}
|
|
166
|
-
function
|
|
233
|
+
function mc(e) {
|
|
167
234
|
if (e.length <= 1)
|
|
168
235
|
return e;
|
|
169
236
|
var t = [], n = [];
|
|
@@ -172,17 +239,17 @@ function dc(e) {
|
|
|
172
239
|
r ? (t.push.apply(t, n.sort().concat([o])), n = []) : n.push(o);
|
|
173
240
|
}), t.push.apply(t, n.sort()), t;
|
|
174
241
|
}
|
|
175
|
-
function
|
|
242
|
+
function vc(e) {
|
|
176
243
|
return {
|
|
177
|
-
cache:
|
|
178
|
-
splitModifiers:
|
|
179
|
-
...
|
|
244
|
+
cache: fc(e.cacheSize),
|
|
245
|
+
splitModifiers: pc(e),
|
|
246
|
+
...ac(e)
|
|
180
247
|
};
|
|
181
248
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
249
|
+
var gc = /\s+/;
|
|
250
|
+
function hc(e, t) {
|
|
184
251
|
var n = t.splitModifiers, o = t.getClassGroupId, r = t.getConflictingClassGroupIds, c = /* @__PURE__ */ new Set();
|
|
185
|
-
return e.trim().split(
|
|
252
|
+
return e.trim().split(gc).map(function(i) {
|
|
186
253
|
var a = n(i), s = a.modifiers, d = a.hasImportantModifier, u = a.baseClassName, l = a.maybePostfixModifierPosition, v = o(l ? u.substring(0, l) : u), f = !!l;
|
|
187
254
|
if (!v) {
|
|
188
255
|
if (!l)
|
|
@@ -197,7 +264,7 @@ function pc(e, t) {
|
|
|
197
264
|
};
|
|
198
265
|
f = !1;
|
|
199
266
|
}
|
|
200
|
-
var m =
|
|
267
|
+
var m = mc(s).join(":"), p = d ? m + uo : m;
|
|
201
268
|
return {
|
|
202
269
|
isTailwindClass: !0,
|
|
203
270
|
modifierId: p,
|
|
@@ -216,7 +283,7 @@ function pc(e, t) {
|
|
|
216
283
|
return i.originalClassName;
|
|
217
284
|
}).join(" ");
|
|
218
285
|
}
|
|
219
|
-
function
|
|
286
|
+
function bc() {
|
|
220
287
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
221
288
|
t[n] = arguments[n];
|
|
222
289
|
var o, r, c, i = a;
|
|
@@ -224,17 +291,17 @@ function mc() {
|
|
|
224
291
|
var u = t[0], l = t.slice(1), v = l.reduce(function(f, m) {
|
|
225
292
|
return m(f);
|
|
226
293
|
}, u());
|
|
227
|
-
return o =
|
|
294
|
+
return o = vc(v), r = o.cache.get, c = o.cache.set, i = s, s(d);
|
|
228
295
|
}
|
|
229
296
|
function s(d) {
|
|
230
297
|
var u = r(d);
|
|
231
298
|
if (u)
|
|
232
299
|
return u;
|
|
233
|
-
var l =
|
|
300
|
+
var l = hc(d, o);
|
|
234
301
|
return c(d, l), l;
|
|
235
302
|
}
|
|
236
303
|
return function() {
|
|
237
|
-
return i(
|
|
304
|
+
return i(ic.apply(null, arguments));
|
|
238
305
|
};
|
|
239
306
|
}
|
|
240
307
|
function ne(e) {
|
|
@@ -243,33 +310,33 @@ function ne(e) {
|
|
|
243
310
|
};
|
|
244
311
|
return t.isThemeGetter = !0, t;
|
|
245
312
|
}
|
|
246
|
-
var fo = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
313
|
+
var fo = /^\[(?:([a-z-]+):)?(.+)\]$/i, $c = /^\d+\/\d+$/, xc = /* @__PURE__ */ new Set(["px", "full", "screen"]), wc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, yc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Cc = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
247
314
|
function he(e) {
|
|
248
|
-
return ke(e) ||
|
|
315
|
+
return ke(e) || xc.has(e) || $c.test(e) || nn(e);
|
|
249
316
|
}
|
|
250
|
-
function
|
|
251
|
-
return
|
|
317
|
+
function nn(e) {
|
|
318
|
+
return Be(e, "length", Rc);
|
|
252
319
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
320
|
+
function Sc(e) {
|
|
321
|
+
return Be(e, "size", po);
|
|
255
322
|
}
|
|
256
|
-
function
|
|
257
|
-
return
|
|
323
|
+
function Pc(e) {
|
|
324
|
+
return Be(e, "position", po);
|
|
258
325
|
}
|
|
259
|
-
function
|
|
260
|
-
return
|
|
326
|
+
function Ec(e) {
|
|
327
|
+
return Be(e, "url", Tc);
|
|
261
328
|
}
|
|
262
329
|
function pt(e) {
|
|
263
|
-
return
|
|
330
|
+
return Be(e, "number", ke);
|
|
264
331
|
}
|
|
265
332
|
function ke(e) {
|
|
266
333
|
return !Number.isNaN(Number(e));
|
|
267
334
|
}
|
|
268
|
-
function
|
|
335
|
+
function _c(e) {
|
|
269
336
|
return e.endsWith("%") && ke(e.slice(0, -1));
|
|
270
337
|
}
|
|
271
338
|
function rt(e) {
|
|
272
|
-
return An(e) ||
|
|
339
|
+
return An(e) || Be(e, "number", An);
|
|
273
340
|
}
|
|
274
341
|
function W(e) {
|
|
275
342
|
return fo.test(e);
|
|
@@ -278,31 +345,31 @@ function ct() {
|
|
|
278
345
|
return !0;
|
|
279
346
|
}
|
|
280
347
|
function Me(e) {
|
|
281
|
-
return
|
|
348
|
+
return wc.test(e);
|
|
282
349
|
}
|
|
283
|
-
function
|
|
284
|
-
return
|
|
350
|
+
function Mc(e) {
|
|
351
|
+
return Be(e, "", Oc);
|
|
285
352
|
}
|
|
286
|
-
function
|
|
353
|
+
function Be(e, t, n) {
|
|
287
354
|
var o = fo.exec(e);
|
|
288
355
|
return o ? o[1] ? o[1] === t : n(o[2]) : !1;
|
|
289
356
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
357
|
+
function Rc(e) {
|
|
358
|
+
return yc.test(e);
|
|
292
359
|
}
|
|
293
360
|
function po() {
|
|
294
361
|
return !1;
|
|
295
362
|
}
|
|
296
|
-
function
|
|
363
|
+
function Tc(e) {
|
|
297
364
|
return e.startsWith("url(");
|
|
298
365
|
}
|
|
299
366
|
function An(e) {
|
|
300
367
|
return Number.isInteger(Number(e));
|
|
301
368
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
369
|
+
function Oc(e) {
|
|
370
|
+
return Cc.test(e);
|
|
304
371
|
}
|
|
305
|
-
function
|
|
372
|
+
function Ac() {
|
|
306
373
|
var e = ne("colors"), t = ne("spacing"), n = ne("blur"), o = ne("brightness"), r = ne("borderColor"), c = ne("borderRadius"), i = ne("borderSpacing"), a = ne("borderWidth"), s = ne("contrast"), d = ne("grayscale"), u = ne("hueRotate"), l = ne("invert"), v = ne("gap"), f = ne("gradientColorStops"), m = ne("gradientColorStopPositions"), p = ne("inset"), b = ne("margin"), g = ne("opacity"), h = ne("padding"), x = ne("saturate"), w = ne("scale"), y = ne("sepia"), M = ne("skew"), P = ne("space"), E = ne("translate"), D = function() {
|
|
307
374
|
return ["auto", "contain", "none"];
|
|
308
375
|
}, z = function() {
|
|
@@ -349,7 +416,7 @@ function Mc() {
|
|
|
349
416
|
invert: R(),
|
|
350
417
|
gap: T(),
|
|
351
418
|
gradientColorStops: [e],
|
|
352
|
-
gradientColorStopPositions: [
|
|
419
|
+
gradientColorStopPositions: [_c, nn],
|
|
353
420
|
inset: k(),
|
|
354
421
|
margin: k(),
|
|
355
422
|
opacity: oe(),
|
|
@@ -994,7 +1061,7 @@ function Mc() {
|
|
|
994
1061
|
* @see https://tailwindcss.com/docs/font-size
|
|
995
1062
|
*/
|
|
996
1063
|
"font-size": [{
|
|
997
|
-
text: ["base", Me,
|
|
1064
|
+
text: ["base", Me, nn]
|
|
998
1065
|
}],
|
|
999
1066
|
/**
|
|
1000
1067
|
* Font Smoothing
|
|
@@ -1248,7 +1315,7 @@ function Mc() {
|
|
|
1248
1315
|
* @see https://tailwindcss.com/docs/background-position
|
|
1249
1316
|
*/
|
|
1250
1317
|
"bg-position": [{
|
|
1251
|
-
bg: [].concat(F(), [
|
|
1318
|
+
bg: [].concat(F(), [Pc])
|
|
1252
1319
|
}],
|
|
1253
1320
|
/**
|
|
1254
1321
|
* Background Repeat
|
|
@@ -1264,7 +1331,7 @@ function Mc() {
|
|
|
1264
1331
|
* @see https://tailwindcss.com/docs/background-size
|
|
1265
1332
|
*/
|
|
1266
1333
|
"bg-size": [{
|
|
1267
|
-
bg: ["auto", "cover", "contain",
|
|
1334
|
+
bg: ["auto", "cover", "contain", Sc]
|
|
1268
1335
|
}],
|
|
1269
1336
|
/**
|
|
1270
1337
|
* Background Image
|
|
@@ -1273,7 +1340,7 @@ function Mc() {
|
|
|
1273
1340
|
"bg-image": [{
|
|
1274
1341
|
bg: ["none", {
|
|
1275
1342
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1276
|
-
},
|
|
1343
|
+
}, Ec]
|
|
1277
1344
|
}],
|
|
1278
1345
|
/**
|
|
1279
1346
|
* Background Color
|
|
@@ -1675,7 +1742,7 @@ function Mc() {
|
|
|
1675
1742
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1676
1743
|
*/
|
|
1677
1744
|
shadow: [{
|
|
1678
|
-
shadow: ["", "inner", "none", Me,
|
|
1745
|
+
shadow: ["", "inner", "none", Me, Mc]
|
|
1679
1746
|
}],
|
|
1680
1747
|
/**
|
|
1681
1748
|
* Box Shadow Color
|
|
@@ -2299,44 +2366,55 @@ function Mc() {
|
|
|
2299
2366
|
}
|
|
2300
2367
|
};
|
|
2301
2368
|
}
|
|
2302
|
-
var
|
|
2369
|
+
var Ic = /* @__PURE__ */ bc(Ac);
|
|
2303
2370
|
function K(...e) {
|
|
2304
|
-
return
|
|
2371
|
+
return Ic(e.filter(Boolean).join(" "));
|
|
2305
2372
|
}
|
|
2306
2373
|
const In = {
|
|
2307
|
-
base: "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",
|
|
2308
|
-
default: "bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90
|
|
2374
|
+
base: "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300 focus:outline-none",
|
|
2375
|
+
default: "bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",
|
|
2309
2376
|
destructive: "bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",
|
|
2310
2377
|
outline: "border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
|
|
2311
2378
|
secondary: "bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",
|
|
2312
2379
|
ghost: "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
|
|
2313
2380
|
link: "text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"
|
|
2314
|
-
},
|
|
2381
|
+
}, Nc = {
|
|
2315
2382
|
default: "h-10 px-4 py-2",
|
|
2316
2383
|
sm: "h-9 rounded-md px-3",
|
|
2317
2384
|
lg: "h-11 rounded-md px-8",
|
|
2318
2385
|
icon: "h-10 w-10"
|
|
2319
2386
|
};
|
|
2320
2387
|
var mo = /* @__PURE__ */ ((e) => (e.BASE = "base", e.DEFAULT = "default", e.DESTRUCTIVE = "destructive", e.OUTLINE = "outline", e.SECONDARY = "secondary", e.GHOST = "ghost", e.LINK = "link", e))(mo || {}), vo = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e.ICON = "icon", e))(vo || {});
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2388
|
+
const Dc = be.forwardRef(
|
|
2389
|
+
({
|
|
2390
|
+
className: e = "",
|
|
2391
|
+
variant: t = mo.BASE,
|
|
2392
|
+
size: n = vo.DEFAULT,
|
|
2393
|
+
asChild: o = !1,
|
|
2394
|
+
...r
|
|
2395
|
+
}, c) => {
|
|
2396
|
+
const i = o ? Fe : "button", a = K(
|
|
2397
|
+
In.base,
|
|
2398
|
+
In[t],
|
|
2399
|
+
Nc[n],
|
|
2400
|
+
e
|
|
2401
|
+
);
|
|
2402
|
+
return /* @__PURE__ */ N(
|
|
2403
|
+
i,
|
|
2404
|
+
{
|
|
2405
|
+
className: a,
|
|
2406
|
+
ref: c,
|
|
2407
|
+
...r
|
|
2408
|
+
}
|
|
2409
|
+
);
|
|
2410
|
+
}
|
|
2411
|
+
);
|
|
2412
|
+
Dc.displayName = "Button";
|
|
2413
|
+
const Nn = {
|
|
2336
2414
|
default: "stroke-1",
|
|
2337
2415
|
primary: "fill-amber-400 stroke-black",
|
|
2338
2416
|
secondary: "fill-purple-400 stroke-white"
|
|
2339
|
-
},
|
|
2417
|
+
}, kc = {
|
|
2340
2418
|
default: "w-16 h-16",
|
|
2341
2419
|
sm: "w-12 h-12",
|
|
2342
2420
|
md: "w-20 h-20",
|
|
@@ -2348,7 +2426,7 @@ const zd = ({
|
|
|
2348
2426
|
size: t = ho.DEFAULT,
|
|
2349
2427
|
...n
|
|
2350
2428
|
}) => {
|
|
2351
|
-
const o = K(
|
|
2429
|
+
const o = K(kc[t]), r = K(
|
|
2352
2430
|
Nn.default,
|
|
2353
2431
|
Nn[e],
|
|
2354
2432
|
"animate-spin origin-center"
|
|
@@ -2381,7 +2459,7 @@ const zd = ({
|
|
|
2381
2459
|
t
|
|
2382
2460
|
);
|
|
2383
2461
|
return /* @__PURE__ */ N("label", { className: o, ...n, children: e });
|
|
2384
|
-
},
|
|
2462
|
+
}, Fc = {
|
|
2385
2463
|
h1: "text-2xl",
|
|
2386
2464
|
h2: "text-xl",
|
|
2387
2465
|
h3: "text-lg",
|
|
@@ -2396,7 +2474,7 @@ const Yd = ({
|
|
|
2396
2474
|
level: n = bo.H1,
|
|
2397
2475
|
...o
|
|
2398
2476
|
}) => {
|
|
2399
|
-
const r = K("font-medium",
|
|
2477
|
+
const r = K("font-medium", Fc[n], t);
|
|
2400
2478
|
return $(n, { className: r, ...o }, e);
|
|
2401
2479
|
}, Xd = ({ className: e = "", ...t }) => {
|
|
2402
2480
|
const n = K(
|
|
@@ -2404,86 +2482,65 @@ const Yd = ({
|
|
|
2404
2482
|
e
|
|
2405
2483
|
);
|
|
2406
2484
|
return /* @__PURE__ */ N("input", { id: t.id, className: n, type: "checkbox", ...t });
|
|
2407
|
-
},
|
|
2485
|
+
}, Lc = S.forwardRef(({ className: e = "", ...t }, n) => {
|
|
2408
2486
|
const o = K(
|
|
2409
2487
|
"rounded-lg border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
|
|
2410
2488
|
e
|
|
2411
2489
|
);
|
|
2412
2490
|
return /* @__PURE__ */ N("div", { ref: n, className: o, ...t });
|
|
2413
2491
|
});
|
|
2414
|
-
|
|
2415
|
-
const
|
|
2492
|
+
Lc.displayName = "Card";
|
|
2493
|
+
const Bc = S.forwardRef(
|
|
2416
2494
|
({ className: e = "", ...t }, n) => {
|
|
2417
2495
|
const o = K("flex flex-col space-y-1.5 p-6", e);
|
|
2418
2496
|
return /* @__PURE__ */ N("div", { ref: n, className: o, ...t });
|
|
2419
2497
|
}
|
|
2420
2498
|
);
|
|
2421
|
-
|
|
2422
|
-
const
|
|
2499
|
+
Bc.displayName = "CardHeader";
|
|
2500
|
+
const Gc = S.forwardRef(
|
|
2423
2501
|
({ className: e = "", ...t }, n) => {
|
|
2424
2502
|
const o = K("text-2xl font-semibold leading-none tracking-tight", e);
|
|
2425
2503
|
return /* @__PURE__ */ N("h3", { ref: n, className: o, ...t });
|
|
2426
2504
|
}
|
|
2427
2505
|
);
|
|
2428
|
-
|
|
2429
|
-
const
|
|
2506
|
+
Gc.displayName = "CardTitle";
|
|
2507
|
+
const Wc = S.forwardRef(
|
|
2430
2508
|
({ className: e = "", ...t }, n) => {
|
|
2431
2509
|
const o = K("text-sm text-neutral-500 dark:text-neutral-400", e);
|
|
2432
2510
|
return /* @__PURE__ */ N("p", { ref: n, className: o, ...t });
|
|
2433
2511
|
}
|
|
2434
2512
|
);
|
|
2435
|
-
|
|
2436
|
-
const
|
|
2513
|
+
Wc.displayName = "CardDescription";
|
|
2514
|
+
const Hc = S.forwardRef(
|
|
2437
2515
|
({ className: e = "", ...t }, n) => {
|
|
2438
2516
|
const o = K("p-6 pt-0", e);
|
|
2439
2517
|
return /* @__PURE__ */ N("div", { ref: n, className: o, ...t });
|
|
2440
2518
|
}
|
|
2441
2519
|
);
|
|
2442
|
-
|
|
2443
|
-
const
|
|
2520
|
+
Hc.displayName = "CardContent";
|
|
2521
|
+
const zc = S.forwardRef(
|
|
2444
2522
|
({ className: e = "", ...t }, n) => {
|
|
2445
2523
|
const o = K("flex items-center p-6 pt-0", e);
|
|
2446
2524
|
return /* @__PURE__ */ N("div", { ref: n, className: o, ...t });
|
|
2447
2525
|
}
|
|
2448
2526
|
);
|
|
2449
|
-
|
|
2450
|
-
function C() {
|
|
2451
|
-
return C = Object.assign ? Object.assign.bind() : function(e) {
|
|
2452
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
2453
|
-
var n = arguments[t];
|
|
2454
|
-
for (var o in n)
|
|
2455
|
-
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
2456
|
-
}
|
|
2457
|
-
return e;
|
|
2458
|
-
}, C.apply(this, arguments);
|
|
2459
|
-
}
|
|
2527
|
+
zc.displayName = "CardFooter";
|
|
2460
2528
|
function A(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
2461
2529
|
return function(r) {
|
|
2462
2530
|
if (e == null || e(r), n === !1 || !r.defaultPrevented)
|
|
2463
2531
|
return t == null ? void 0 : t(r);
|
|
2464
2532
|
};
|
|
2465
2533
|
}
|
|
2466
|
-
function Bc(e, t) {
|
|
2467
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
2468
|
-
}
|
|
2469
|
-
function Nt(...e) {
|
|
2470
|
-
return (t) => e.forEach(
|
|
2471
|
-
(n) => Bc(n, t)
|
|
2472
|
-
);
|
|
2473
|
-
}
|
|
2474
|
-
function ce(...e) {
|
|
2475
|
-
return Z(Nt(...e), e);
|
|
2476
|
-
}
|
|
2477
2534
|
function Ne(e, t = []) {
|
|
2478
2535
|
let n = [];
|
|
2479
2536
|
function o(c, i) {
|
|
2480
|
-
const a = /* @__PURE__ */
|
|
2537
|
+
const a = /* @__PURE__ */ Et(i), s = n.length;
|
|
2481
2538
|
n = [
|
|
2482
2539
|
...n,
|
|
2483
2540
|
i
|
|
2484
2541
|
];
|
|
2485
2542
|
function d(l) {
|
|
2486
|
-
const { scope: v, children: f, ...m } = l, p = (v == null ? void 0 : v[e][s]) || a, b =
|
|
2543
|
+
const { scope: v, children: f, ...m } = l, p = (v == null ? void 0 : v[e][s]) || a, b = je(
|
|
2487
2544
|
() => m,
|
|
2488
2545
|
Object.values(m)
|
|
2489
2546
|
);
|
|
@@ -2492,7 +2549,7 @@ function Ne(e, t = []) {
|
|
|
2492
2549
|
}, f);
|
|
2493
2550
|
}
|
|
2494
2551
|
function u(l, v) {
|
|
2495
|
-
const f = (v == null ? void 0 : v[e][s]) || a, m =
|
|
2552
|
+
const f = (v == null ? void 0 : v[e][s]) || a, m = pn(f);
|
|
2496
2553
|
if (m)
|
|
2497
2554
|
return m;
|
|
2498
2555
|
if (i !== void 0)
|
|
@@ -2505,10 +2562,10 @@ function Ne(e, t = []) {
|
|
|
2505
2562
|
];
|
|
2506
2563
|
}
|
|
2507
2564
|
const r = () => {
|
|
2508
|
-
const c = n.map((i) => /* @__PURE__ */
|
|
2565
|
+
const c = n.map((i) => /* @__PURE__ */ Et(i));
|
|
2509
2566
|
return function(a) {
|
|
2510
2567
|
const s = (a == null ? void 0 : a[e]) || c;
|
|
2511
|
-
return
|
|
2568
|
+
return je(
|
|
2512
2569
|
() => ({
|
|
2513
2570
|
[`__scope${e}`]: {
|
|
2514
2571
|
...a,
|
|
@@ -2524,10 +2581,10 @@ function Ne(e, t = []) {
|
|
|
2524
2581
|
};
|
|
2525
2582
|
return r.scopeName = e, [
|
|
2526
2583
|
o,
|
|
2527
|
-
|
|
2584
|
+
Uc(r, ...t)
|
|
2528
2585
|
];
|
|
2529
2586
|
}
|
|
2530
|
-
function
|
|
2587
|
+
function Uc(...e) {
|
|
2531
2588
|
const t = e[0];
|
|
2532
2589
|
if (e.length === 1)
|
|
2533
2590
|
return t;
|
|
@@ -2546,7 +2603,7 @@ function Gc(...e) {
|
|
|
2546
2603
|
...l
|
|
2547
2604
|
};
|
|
2548
2605
|
}, {});
|
|
2549
|
-
return
|
|
2606
|
+
return je(
|
|
2550
2607
|
() => ({
|
|
2551
2608
|
[`__scope${t.scopeName}`]: i
|
|
2552
2609
|
}),
|
|
@@ -2562,7 +2619,7 @@ function ve(e) {
|
|
|
2562
2619
|
const t = L(e);
|
|
2563
2620
|
return U(() => {
|
|
2564
2621
|
t.current = e;
|
|
2565
|
-
}),
|
|
2622
|
+
}), je(
|
|
2566
2623
|
() => (...n) => {
|
|
2567
2624
|
var o;
|
|
2568
2625
|
return (o = t.current) === null || o === void 0 ? void 0 : o.call(t, ...n);
|
|
@@ -2570,9 +2627,9 @@ function ve(e) {
|
|
|
2570
2627
|
[]
|
|
2571
2628
|
);
|
|
2572
2629
|
}
|
|
2573
|
-
function
|
|
2630
|
+
function Ye({ prop: e, defaultProp: t, onChange: n = () => {
|
|
2574
2631
|
} }) {
|
|
2575
|
-
const [o, r] =
|
|
2632
|
+
const [o, r] = Kc({
|
|
2576
2633
|
defaultProp: t,
|
|
2577
2634
|
onChange: n
|
|
2578
2635
|
}), c = e !== void 0, i = c ? e : o, a = ve(n), s = Z((d) => {
|
|
@@ -2592,7 +2649,7 @@ function je({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2592
2649
|
s
|
|
2593
2650
|
];
|
|
2594
2651
|
}
|
|
2595
|
-
function
|
|
2652
|
+
function Kc({ defaultProp: e, onChange: t }) {
|
|
2596
2653
|
const n = H(e), [o] = n, r = L(o), c = ve(t);
|
|
2597
2654
|
return U(() => {
|
|
2598
2655
|
r.current !== o && (c(o), r.current = o);
|
|
@@ -2602,53 +2659,7 @@ function Wc({ defaultProp: e, onChange: t }) {
|
|
|
2602
2659
|
c
|
|
2603
2660
|
]), n;
|
|
2604
2661
|
}
|
|
2605
|
-
const
|
|
2606
|
-
const { children: n, ...o } = e, r = Ue.toArray(n), c = r.find(zc);
|
|
2607
|
-
if (c) {
|
|
2608
|
-
const i = c.props.children, a = r.map((s) => s === c ? Ue.count(i) > 1 ? Ue.only(null) : /* @__PURE__ */ Et(i) ? i.props.children : null : s);
|
|
2609
|
-
return /* @__PURE__ */ $(nn, C({}, o, {
|
|
2610
|
-
ref: t
|
|
2611
|
-
}), /* @__PURE__ */ Et(i) ? /* @__PURE__ */ pn(i, void 0, a) : null);
|
|
2612
|
-
}
|
|
2613
|
-
return /* @__PURE__ */ $(nn, C({}, o, {
|
|
2614
|
-
ref: t
|
|
2615
|
-
}), n);
|
|
2616
|
-
});
|
|
2617
|
-
Ye.displayName = "Slot";
|
|
2618
|
-
const nn = /* @__PURE__ */ _((e, t) => {
|
|
2619
|
-
const { children: n, ...o } = e;
|
|
2620
|
-
return /* @__PURE__ */ Et(n) ? /* @__PURE__ */ pn(n, {
|
|
2621
|
-
...Uc(o, n.props),
|
|
2622
|
-
ref: t ? Nt(t, n.ref) : n.ref
|
|
2623
|
-
}) : Ue.count(n) > 1 ? Ue.only(null) : null;
|
|
2624
|
-
});
|
|
2625
|
-
nn.displayName = "SlotClone";
|
|
2626
|
-
const Hc = ({ children: e }) => /* @__PURE__ */ $(It, null, e);
|
|
2627
|
-
function zc(e) {
|
|
2628
|
-
return /* @__PURE__ */ Et(e) && e.type === Hc;
|
|
2629
|
-
}
|
|
2630
|
-
function Uc(e, t) {
|
|
2631
|
-
const n = {
|
|
2632
|
-
...t
|
|
2633
|
-
};
|
|
2634
|
-
for (const o in t) {
|
|
2635
|
-
const r = e[o], c = t[o];
|
|
2636
|
-
/^on[A-Z]/.test(o) ? r && c ? n[o] = (...a) => {
|
|
2637
|
-
c(...a), r(...a);
|
|
2638
|
-
} : r && (n[o] = r) : o === "style" ? n[o] = {
|
|
2639
|
-
...r,
|
|
2640
|
-
...c
|
|
2641
|
-
} : o === "className" && (n[o] = [
|
|
2642
|
-
r,
|
|
2643
|
-
c
|
|
2644
|
-
].filter(Boolean).join(" "));
|
|
2645
|
-
}
|
|
2646
|
-
return {
|
|
2647
|
-
...e,
|
|
2648
|
-
...n
|
|
2649
|
-
};
|
|
2650
|
-
}
|
|
2651
|
-
const Kc = [
|
|
2662
|
+
const Vc = [
|
|
2652
2663
|
"a",
|
|
2653
2664
|
"button",
|
|
2654
2665
|
"div",
|
|
@@ -2665,9 +2676,9 @@ const Kc = [
|
|
|
2665
2676
|
"span",
|
|
2666
2677
|
"svg",
|
|
2667
2678
|
"ul"
|
|
2668
|
-
], Q =
|
|
2679
|
+
], Q = Vc.reduce((e, t) => {
|
|
2669
2680
|
const n = /* @__PURE__ */ _((o, r) => {
|
|
2670
|
-
const { asChild: c, ...i } = o, a = c ?
|
|
2681
|
+
const { asChild: c, ...i } = o, a = c ? Fe : t;
|
|
2671
2682
|
return U(() => {
|
|
2672
2683
|
window[Symbol.for("radix-ui")] = !0;
|
|
2673
2684
|
}, []), /* @__PURE__ */ $(a, C({}, i, {
|
|
@@ -2691,30 +2702,30 @@ function vn(e) {
|
|
|
2691
2702
|
},
|
|
2692
2703
|
itemMap: /* @__PURE__ */ new Map()
|
|
2693
2704
|
}), i = (f) => {
|
|
2694
|
-
const { scope: m, children: p } = f, b =
|
|
2695
|
-
return /* @__PURE__ */
|
|
2705
|
+
const { scope: m, children: p } = f, b = be.useRef(null), g = be.useRef(/* @__PURE__ */ new Map()).current;
|
|
2706
|
+
return /* @__PURE__ */ be.createElement(r, {
|
|
2696
2707
|
scope: m,
|
|
2697
2708
|
itemMap: g,
|
|
2698
2709
|
collectionRef: b
|
|
2699
2710
|
}, p);
|
|
2700
|
-
}, a = e + "CollectionSlot", s = /* @__PURE__ */
|
|
2711
|
+
}, a = e + "CollectionSlot", s = /* @__PURE__ */ be.forwardRef((f, m) => {
|
|
2701
2712
|
const { scope: p, children: b } = f, g = c(a, p), h = ce(m, g.collectionRef);
|
|
2702
|
-
return /* @__PURE__ */
|
|
2713
|
+
return /* @__PURE__ */ be.createElement(Fe, {
|
|
2703
2714
|
ref: h
|
|
2704
2715
|
}, b);
|
|
2705
|
-
}), d = e + "CollectionItemSlot", u = "data-radix-collection-item", l = /* @__PURE__ */
|
|
2706
|
-
const { scope: p, children: b, ...g } = f, h =
|
|
2707
|
-
return
|
|
2716
|
+
}), d = e + "CollectionItemSlot", u = "data-radix-collection-item", l = /* @__PURE__ */ be.forwardRef((f, m) => {
|
|
2717
|
+
const { scope: p, children: b, ...g } = f, h = be.useRef(null), x = ce(m, h), w = c(d, p);
|
|
2718
|
+
return be.useEffect(() => (w.itemMap.set(h, {
|
|
2708
2719
|
ref: h,
|
|
2709
2720
|
...g
|
|
2710
|
-
}), () => void w.itemMap.delete(h))), /* @__PURE__ */
|
|
2721
|
+
}), () => void w.itemMap.delete(h))), /* @__PURE__ */ be.createElement(Fe, {
|
|
2711
2722
|
[u]: "",
|
|
2712
2723
|
ref: x
|
|
2713
2724
|
}, b);
|
|
2714
2725
|
});
|
|
2715
2726
|
function v(f) {
|
|
2716
2727
|
const m = c(e + "CollectionConsumer", f);
|
|
2717
|
-
return
|
|
2728
|
+
return be.useCallback(() => {
|
|
2718
2729
|
const b = m.collectionRef.current;
|
|
2719
2730
|
if (!b)
|
|
2720
2731
|
return [];
|
|
@@ -2737,12 +2748,12 @@ function vn(e) {
|
|
|
2737
2748
|
o
|
|
2738
2749
|
];
|
|
2739
2750
|
}
|
|
2740
|
-
const
|
|
2751
|
+
const jc = /* @__PURE__ */ Et(void 0);
|
|
2741
2752
|
function Dt(e) {
|
|
2742
|
-
const t =
|
|
2753
|
+
const t = pn(jc);
|
|
2743
2754
|
return e || t || "ltr";
|
|
2744
2755
|
}
|
|
2745
|
-
function
|
|
2756
|
+
function Yc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
2746
2757
|
const n = ve(e);
|
|
2747
2758
|
U(() => {
|
|
2748
2759
|
const o = (r) => {
|
|
@@ -2754,27 +2765,27 @@ function jc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2754
2765
|
t
|
|
2755
2766
|
]);
|
|
2756
2767
|
}
|
|
2757
|
-
const on = "dismissableLayer.update",
|
|
2768
|
+
const on = "dismissableLayer.update", Xc = "dismissableLayer.pointerDownOutside", qc = "dismissableLayer.focusOutside";
|
|
2758
2769
|
let Dn;
|
|
2759
|
-
const
|
|
2770
|
+
const Zc = /* @__PURE__ */ Et({
|
|
2760
2771
|
layers: /* @__PURE__ */ new Set(),
|
|
2761
2772
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2762
2773
|
branches: /* @__PURE__ */ new Set()
|
|
2763
2774
|
}), xo = /* @__PURE__ */ _((e, t) => {
|
|
2764
2775
|
var n;
|
|
2765
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: i, onInteractOutside: a, onDismiss: s, ...d } = e, u =
|
|
2776
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: i, onInteractOutside: a, onDismiss: s, ...d } = e, u = pn(Zc), [l, v] = H(null), f = (n = l == null ? void 0 : l.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, m] = H({}), p = ce(
|
|
2766
2777
|
t,
|
|
2767
2778
|
(E) => v(E)
|
|
2768
2779
|
), b = Array.from(u.layers), [g] = [
|
|
2769
2780
|
...u.layersWithOutsidePointerEventsDisabled
|
|
2770
|
-
].slice(-1), h = b.indexOf(g), x = l ? b.indexOf(l) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, y = x >= h, M =
|
|
2781
|
+
].slice(-1), h = b.indexOf(g), x = l ? b.indexOf(l) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, y = x >= h, M = Qc((E) => {
|
|
2771
2782
|
const D = E.target, z = [
|
|
2772
2783
|
...u.branches
|
|
2773
2784
|
].some(
|
|
2774
2785
|
(k) => k.contains(D)
|
|
2775
2786
|
);
|
|
2776
2787
|
!y || z || (c == null || c(E), a == null || a(E), E.defaultPrevented || s == null || s());
|
|
2777
|
-
}, f), P =
|
|
2788
|
+
}, f), P = Jc((E) => {
|
|
2778
2789
|
const D = E.target;
|
|
2779
2790
|
[
|
|
2780
2791
|
...u.branches
|
|
@@ -2782,7 +2793,7 @@ const qc = /* @__PURE__ */ Pt({
|
|
|
2782
2793
|
(k) => k.contains(D)
|
|
2783
2794
|
) || (i == null || i(E), a == null || a(E), E.defaultPrevented || s == null || s());
|
|
2784
2795
|
}, f);
|
|
2785
|
-
return
|
|
2796
|
+
return Yc((E) => {
|
|
2786
2797
|
x === u.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
|
|
2787
2798
|
}, f), U(() => {
|
|
2788
2799
|
if (l)
|
|
@@ -2813,14 +2824,14 @@ const qc = /* @__PURE__ */ Pt({
|
|
|
2813
2824
|
onPointerDownCapture: A(e.onPointerDownCapture, M.onPointerDownCapture)
|
|
2814
2825
|
}));
|
|
2815
2826
|
});
|
|
2816
|
-
function
|
|
2827
|
+
function Qc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
2817
2828
|
const n = ve(e), o = L(!1), r = L(() => {
|
|
2818
2829
|
});
|
|
2819
2830
|
return U(() => {
|
|
2820
2831
|
const c = (a) => {
|
|
2821
2832
|
if (a.target && !o.current) {
|
|
2822
2833
|
let d = function() {
|
|
2823
|
-
wo(
|
|
2834
|
+
wo(Xc, n, s, {
|
|
2824
2835
|
discrete: !0
|
|
2825
2836
|
});
|
|
2826
2837
|
};
|
|
@@ -2846,11 +2857,11 @@ function Zc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2846
2857
|
onPointerDownCapture: () => o.current = !0
|
|
2847
2858
|
};
|
|
2848
2859
|
}
|
|
2849
|
-
function
|
|
2860
|
+
function Jc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
2850
2861
|
const n = ve(e), o = L(!1);
|
|
2851
2862
|
return U(() => {
|
|
2852
2863
|
const r = (c) => {
|
|
2853
|
-
c.target && !o.current && wo(
|
|
2864
|
+
c.target && !o.current && wo(qc, n, {
|
|
2854
2865
|
originalEvent: c
|
|
2855
2866
|
}, {
|
|
2856
2867
|
discrete: !1
|
|
@@ -2951,7 +2962,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2951
2962
|
const p = document.activeElement;
|
|
2952
2963
|
if (!a.contains(p)) {
|
|
2953
2964
|
const g = new CustomEvent(Yt, Ln);
|
|
2954
|
-
a.addEventListener(Yt, d), a.dispatchEvent(g), g.defaultPrevented || (
|
|
2965
|
+
a.addEventListener(Yt, d), a.dispatchEvent(g), g.defaultPrevented || (ei(ci(So(a)), {
|
|
2955
2966
|
select: !0
|
|
2956
2967
|
}), document.activeElement === p && Re(a));
|
|
2957
2968
|
}
|
|
@@ -2975,7 +2986,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2975
2986
|
return;
|
|
2976
2987
|
const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, g = document.activeElement;
|
|
2977
2988
|
if (b && g) {
|
|
2978
|
-
const h = p.currentTarget, [x, w] =
|
|
2989
|
+
const h = p.currentTarget, [x, w] = ti(h);
|
|
2979
2990
|
x && w ? !p.shiftKey && g === w ? (p.preventDefault(), n && Re(x, {
|
|
2980
2991
|
select: !0
|
|
2981
2992
|
})) : p.shiftKey && g === x && (p.preventDefault(), n && Re(w, {
|
|
@@ -2994,7 +3005,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2994
3005
|
onKeyDown: m
|
|
2995
3006
|
}));
|
|
2996
3007
|
});
|
|
2997
|
-
function
|
|
3008
|
+
function ei(e, { select: t = !1 } = {}) {
|
|
2998
3009
|
const n = document.activeElement;
|
|
2999
3010
|
for (const o of e)
|
|
3000
3011
|
if (Re(o, {
|
|
@@ -3002,7 +3013,7 @@ function Jc(e, { select: t = !1 } = {}) {
|
|
|
3002
3013
|
}), document.activeElement !== n)
|
|
3003
3014
|
return;
|
|
3004
3015
|
}
|
|
3005
|
-
function
|
|
3016
|
+
function ti(e) {
|
|
3006
3017
|
const t = So(e), n = Bn(t, e), o = Bn(t.reverse(), e);
|
|
3007
3018
|
return [
|
|
3008
3019
|
n,
|
|
@@ -3022,12 +3033,12 @@ function So(e) {
|
|
|
3022
3033
|
}
|
|
3023
3034
|
function Bn(e, t) {
|
|
3024
3035
|
for (const n of e)
|
|
3025
|
-
if (!
|
|
3036
|
+
if (!ni(n, {
|
|
3026
3037
|
upTo: t
|
|
3027
3038
|
}))
|
|
3028
3039
|
return n;
|
|
3029
3040
|
}
|
|
3030
|
-
function
|
|
3041
|
+
function ni(e, { upTo: t }) {
|
|
3031
3042
|
if (getComputedStyle(e).visibility === "hidden")
|
|
3032
3043
|
return !0;
|
|
3033
3044
|
for (; e; ) {
|
|
@@ -3039,7 +3050,7 @@ function ti(e, { upTo: t }) {
|
|
|
3039
3050
|
}
|
|
3040
3051
|
return !1;
|
|
3041
3052
|
}
|
|
3042
|
-
function
|
|
3053
|
+
function oi(e) {
|
|
3043
3054
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3044
3055
|
}
|
|
3045
3056
|
function Re(e, { select: t = !1 } = {}) {
|
|
@@ -3047,11 +3058,11 @@ function Re(e, { select: t = !1 } = {}) {
|
|
|
3047
3058
|
const n = document.activeElement;
|
|
3048
3059
|
e.focus({
|
|
3049
3060
|
preventScroll: !0
|
|
3050
|
-
}), e !== n &&
|
|
3061
|
+
}), e !== n && oi(e) && t && e.select();
|
|
3051
3062
|
}
|
|
3052
3063
|
}
|
|
3053
|
-
const Gn =
|
|
3054
|
-
function
|
|
3064
|
+
const Gn = ri();
|
|
3065
|
+
function ri() {
|
|
3055
3066
|
let e = [];
|
|
3056
3067
|
return {
|
|
3057
3068
|
add(t) {
|
|
@@ -3070,34 +3081,34 @@ function Wn(e, t) {
|
|
|
3070
3081
|
], o = n.indexOf(t);
|
|
3071
3082
|
return o !== -1 && n.splice(o, 1), n;
|
|
3072
3083
|
}
|
|
3073
|
-
function
|
|
3084
|
+
function ci(e) {
|
|
3074
3085
|
return e.filter(
|
|
3075
3086
|
(t) => t.tagName !== "A"
|
|
3076
3087
|
);
|
|
3077
3088
|
}
|
|
3078
|
-
const
|
|
3079
|
-
},
|
|
3089
|
+
const xe = globalThis != null && globalThis.document ? co : () => {
|
|
3090
|
+
}, ii = S["useId".toString()] || (() => {
|
|
3080
3091
|
});
|
|
3081
|
-
let
|
|
3092
|
+
let ai = 0;
|
|
3082
3093
|
function Te(e) {
|
|
3083
|
-
const [t, n] = S.useState(
|
|
3084
|
-
return
|
|
3094
|
+
const [t, n] = S.useState(ii());
|
|
3095
|
+
return xe(() => {
|
|
3085
3096
|
e || n(
|
|
3086
|
-
(o) => o ?? String(
|
|
3097
|
+
(o) => o ?? String(ai++)
|
|
3087
3098
|
);
|
|
3088
3099
|
}, [
|
|
3089
3100
|
e
|
|
3090
3101
|
]), e || (t ? `radix-${t}` : "");
|
|
3091
3102
|
}
|
|
3092
|
-
const
|
|
3103
|
+
const si = ["top", "right", "bottom", "left"], Oe = Math.min, pe = Math.max, _t = Math.round, mt = Math.floor, Ae = (e) => ({
|
|
3093
3104
|
x: e,
|
|
3094
3105
|
y: e
|
|
3095
|
-
}),
|
|
3106
|
+
}), li = {
|
|
3096
3107
|
left: "right",
|
|
3097
3108
|
right: "left",
|
|
3098
3109
|
bottom: "top",
|
|
3099
3110
|
top: "bottom"
|
|
3100
|
-
},
|
|
3111
|
+
}, di = {
|
|
3101
3112
|
start: "end",
|
|
3102
3113
|
end: "start"
|
|
3103
3114
|
};
|
|
@@ -3125,20 +3136,20 @@ function Qe(e) {
|
|
|
3125
3136
|
function bn(e) {
|
|
3126
3137
|
return gn(Qe(e));
|
|
3127
3138
|
}
|
|
3128
|
-
function
|
|
3139
|
+
function ui(e, t, n) {
|
|
3129
3140
|
n === void 0 && (n = !1);
|
|
3130
3141
|
const o = Ze(e), r = bn(e), c = hn(r);
|
|
3131
3142
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
3132
3143
|
return t.reference[c] > t.floating[c] && (i = Mt(i)), [i, Mt(i)];
|
|
3133
3144
|
}
|
|
3134
|
-
function
|
|
3145
|
+
function fi(e) {
|
|
3135
3146
|
const t = Mt(e);
|
|
3136
3147
|
return [cn(e), t, cn(t)];
|
|
3137
3148
|
}
|
|
3138
3149
|
function cn(e) {
|
|
3139
|
-
return e.replace(/start|end/g, (t) =>
|
|
3150
|
+
return e.replace(/start|end/g, (t) => di[t]);
|
|
3140
3151
|
}
|
|
3141
|
-
function
|
|
3152
|
+
function pi(e, t, n) {
|
|
3142
3153
|
const o = ["left", "right"], r = ["right", "left"], c = ["top", "bottom"], i = ["bottom", "top"];
|
|
3143
3154
|
switch (e) {
|
|
3144
3155
|
case "top":
|
|
@@ -3151,15 +3162,15 @@ function fi(e, t, n) {
|
|
|
3151
3162
|
return [];
|
|
3152
3163
|
}
|
|
3153
3164
|
}
|
|
3154
|
-
function
|
|
3165
|
+
function mi(e, t, n, o) {
|
|
3155
3166
|
const r = Ze(e);
|
|
3156
|
-
let c =
|
|
3167
|
+
let c = pi(Pe(e), n === "start", o);
|
|
3157
3168
|
return r && (c = c.map((i) => i + "-" + r), t && (c = c.concat(c.map(cn)))), c;
|
|
3158
3169
|
}
|
|
3159
3170
|
function Mt(e) {
|
|
3160
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
3171
|
+
return e.replace(/left|right|bottom|top/g, (t) => li[t]);
|
|
3161
3172
|
}
|
|
3162
|
-
function
|
|
3173
|
+
function vi(e) {
|
|
3163
3174
|
return {
|
|
3164
3175
|
top: 0,
|
|
3165
3176
|
right: 0,
|
|
@@ -3169,7 +3180,7 @@ function mi(e) {
|
|
|
3169
3180
|
};
|
|
3170
3181
|
}
|
|
3171
3182
|
function Po(e) {
|
|
3172
|
-
return typeof e != "number" ?
|
|
3183
|
+
return typeof e != "number" ? vi(e) : {
|
|
3173
3184
|
top: e,
|
|
3174
3185
|
right: e,
|
|
3175
3186
|
bottom: e,
|
|
@@ -3233,7 +3244,7 @@ function Hn(e, t, n) {
|
|
|
3233
3244
|
}
|
|
3234
3245
|
return f;
|
|
3235
3246
|
}
|
|
3236
|
-
const
|
|
3247
|
+
const gi = async (e, t, n) => {
|
|
3237
3248
|
const {
|
|
3238
3249
|
placement: o = "bottom",
|
|
3239
3250
|
strategy: r = "absolute",
|
|
@@ -3372,7 +3383,7 @@ const zn = (e) => ({
|
|
|
3372
3383
|
}
|
|
3373
3384
|
};
|
|
3374
3385
|
}
|
|
3375
|
-
}),
|
|
3386
|
+
}), hi = function(e) {
|
|
3376
3387
|
return e === void 0 && (e = {}), {
|
|
3377
3388
|
name: "flip",
|
|
3378
3389
|
options: e,
|
|
@@ -3393,12 +3404,12 @@ const zn = (e) => ({
|
|
|
3393
3404
|
fallbackAxisSideDirection: f = "none",
|
|
3394
3405
|
flipAlignment: m = !0,
|
|
3395
3406
|
...p
|
|
3396
|
-
} = Se(e, t), b = Pe(o), g = Pe(i) === i, h = await (a.isRTL == null ? void 0 : a.isRTL(s.floating)), x = l || (g || !m ? [Mt(i)] :
|
|
3397
|
-
!l && f !== "none" && x.push(...
|
|
3407
|
+
} = Se(e, t), b = Pe(o), g = Pe(i) === i, h = await (a.isRTL == null ? void 0 : a.isRTL(s.floating)), x = l || (g || !m ? [Mt(i)] : fi(i));
|
|
3408
|
+
!l && f !== "none" && x.push(...mi(i, m, f, h));
|
|
3398
3409
|
const w = [i, ...x], y = await it(t, p), M = [];
|
|
3399
3410
|
let P = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
3400
3411
|
if (d && M.push(y[b]), u) {
|
|
3401
|
-
const k =
|
|
3412
|
+
const k = ui(o, c, h);
|
|
3402
3413
|
M.push(y[k[0]], y[k[1]]);
|
|
3403
3414
|
}
|
|
3404
3415
|
if (P = [...P, {
|
|
@@ -3450,9 +3461,9 @@ function Un(e, t) {
|
|
|
3450
3461
|
};
|
|
3451
3462
|
}
|
|
3452
3463
|
function Kn(e) {
|
|
3453
|
-
return
|
|
3464
|
+
return si.some((t) => e[t] >= 0);
|
|
3454
3465
|
}
|
|
3455
|
-
const
|
|
3466
|
+
const bi = function(e) {
|
|
3456
3467
|
return e === void 0 && (e = {}), {
|
|
3457
3468
|
name: "hide",
|
|
3458
3469
|
options: e,
|
|
@@ -3494,7 +3505,7 @@ const hi = function(e) {
|
|
|
3494
3505
|
}
|
|
3495
3506
|
};
|
|
3496
3507
|
};
|
|
3497
|
-
async function
|
|
3508
|
+
async function $i(e, t) {
|
|
3498
3509
|
const {
|
|
3499
3510
|
placement: n,
|
|
3500
3511
|
platform: o,
|
|
@@ -3522,7 +3533,7 @@ async function bi(e, t) {
|
|
|
3522
3533
|
y: f * u
|
|
3523
3534
|
};
|
|
3524
3535
|
}
|
|
3525
|
-
const
|
|
3536
|
+
const xi = function(e) {
|
|
3526
3537
|
return e === void 0 && (e = 0), {
|
|
3527
3538
|
name: "offset",
|
|
3528
3539
|
options: e,
|
|
@@ -3530,7 +3541,7 @@ const $i = function(e) {
|
|
|
3530
3541
|
const {
|
|
3531
3542
|
x: n,
|
|
3532
3543
|
y: o
|
|
3533
|
-
} = t, r = await
|
|
3544
|
+
} = t, r = await $i(t, e);
|
|
3534
3545
|
return {
|
|
3535
3546
|
x: n + r.x,
|
|
3536
3547
|
y: o + r.y,
|
|
@@ -3538,7 +3549,7 @@ const $i = function(e) {
|
|
|
3538
3549
|
};
|
|
3539
3550
|
}
|
|
3540
3551
|
};
|
|
3541
|
-
},
|
|
3552
|
+
}, wi = function(e) {
|
|
3542
3553
|
return e === void 0 && (e = {}), {
|
|
3543
3554
|
name: "shift",
|
|
3544
3555
|
options: e,
|
|
@@ -3590,7 +3601,7 @@ const $i = function(e) {
|
|
|
3590
3601
|
};
|
|
3591
3602
|
}
|
|
3592
3603
|
};
|
|
3593
|
-
},
|
|
3604
|
+
}, yi = function(e) {
|
|
3594
3605
|
return e === void 0 && (e = {}), {
|
|
3595
3606
|
options: e,
|
|
3596
3607
|
fn(t) {
|
|
@@ -3632,7 +3643,7 @@ const $i = function(e) {
|
|
|
3632
3643
|
};
|
|
3633
3644
|
}
|
|
3634
3645
|
};
|
|
3635
|
-
},
|
|
3646
|
+
}, Ci = function(e) {
|
|
3636
3647
|
return e === void 0 && (e = {}), {
|
|
3637
3648
|
name: "size",
|
|
3638
3649
|
options: e,
|
|
@@ -3711,14 +3722,14 @@ function dt(e) {
|
|
|
3711
3722
|
} = ge(e);
|
|
3712
3723
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
3713
3724
|
}
|
|
3714
|
-
function
|
|
3725
|
+
function Si(e) {
|
|
3715
3726
|
return ["table", "td", "th"].includes(Ie(e));
|
|
3716
3727
|
}
|
|
3717
3728
|
function $n(e) {
|
|
3718
3729
|
const t = xn(), n = ge(e);
|
|
3719
3730
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
3720
3731
|
}
|
|
3721
|
-
function
|
|
3732
|
+
function Pi(e) {
|
|
3722
3733
|
let t = Xe(e);
|
|
3723
3734
|
for (; ye(t) && !kt(t); ) {
|
|
3724
3735
|
if ($n(t))
|
|
@@ -3780,7 +3791,7 @@ function Mo(e) {
|
|
|
3780
3791
|
function wn(e) {
|
|
3781
3792
|
return Ee(e) ? e : e.contextElement;
|
|
3782
3793
|
}
|
|
3783
|
-
function
|
|
3794
|
+
function Ve(e) {
|
|
3784
3795
|
const t = wn(e);
|
|
3785
3796
|
if (!ye(t))
|
|
3786
3797
|
return Ae(1);
|
|
@@ -3795,29 +3806,29 @@ function Ke(e) {
|
|
|
3795
3806
|
y: a
|
|
3796
3807
|
};
|
|
3797
3808
|
}
|
|
3798
|
-
const
|
|
3809
|
+
const Ei = /* @__PURE__ */ Ae(0);
|
|
3799
3810
|
function Ro(e) {
|
|
3800
3811
|
const t = me(e);
|
|
3801
|
-
return !xn() || !t.visualViewport ?
|
|
3812
|
+
return !xn() || !t.visualViewport ? Ei : {
|
|
3802
3813
|
x: t.visualViewport.offsetLeft,
|
|
3803
3814
|
y: t.visualViewport.offsetTop
|
|
3804
3815
|
};
|
|
3805
3816
|
}
|
|
3806
|
-
function
|
|
3817
|
+
function _i(e, t, n) {
|
|
3807
3818
|
return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
|
|
3808
3819
|
}
|
|
3809
|
-
function
|
|
3820
|
+
function Le(e, t, n, o) {
|
|
3810
3821
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
3811
3822
|
const r = e.getBoundingClientRect(), c = wn(e);
|
|
3812
3823
|
let i = Ae(1);
|
|
3813
|
-
t && (o ? Ee(o) && (i =
|
|
3814
|
-
const a =
|
|
3824
|
+
t && (o ? Ee(o) && (i = Ve(o)) : i = Ve(e));
|
|
3825
|
+
const a = _i(c, n, o) ? Ro(c) : Ae(0);
|
|
3815
3826
|
let s = (r.left + a.x) / i.x, d = (r.top + a.y) / i.y, u = r.width / i.x, l = r.height / i.y;
|
|
3816
3827
|
if (c) {
|
|
3817
3828
|
const v = me(c), f = o && Ee(o) ? me(o) : o;
|
|
3818
3829
|
let m = v.frameElement;
|
|
3819
3830
|
for (; m && o && f !== v; ) {
|
|
3820
|
-
const p =
|
|
3831
|
+
const p = Ve(m), b = m.getBoundingClientRect(), g = ge(m), h = b.left + (m.clientLeft + parseFloat(g.paddingLeft)) * p.x, x = b.top + (m.clientTop + parseFloat(g.paddingTop)) * p.y;
|
|
3821
3832
|
s *= p.x, d *= p.y, u *= p.x, l *= p.y, s += h, d += x, m = me(m).frameElement;
|
|
3822
3833
|
}
|
|
3823
3834
|
}
|
|
@@ -3828,7 +3839,7 @@ function Fe(e, t, n, o) {
|
|
|
3828
3839
|
y: d
|
|
3829
3840
|
});
|
|
3830
3841
|
}
|
|
3831
|
-
function
|
|
3842
|
+
function Mi(e) {
|
|
3832
3843
|
let {
|
|
3833
3844
|
rect: t,
|
|
3834
3845
|
offsetParent: n,
|
|
@@ -3843,8 +3854,8 @@ function _i(e) {
|
|
|
3843
3854
|
}, a = Ae(1);
|
|
3844
3855
|
const s = Ae(0);
|
|
3845
3856
|
if ((r || !r && o !== "fixed") && ((Ie(n) !== "body" || dt(c)) && (i = Ft(n)), ye(n))) {
|
|
3846
|
-
const d =
|
|
3847
|
-
a =
|
|
3857
|
+
const d = Le(n);
|
|
3858
|
+
a = Ve(n), s.x = d.x + n.clientLeft, s.y = d.y + n.clientTop;
|
|
3848
3859
|
}
|
|
3849
3860
|
return {
|
|
3850
3861
|
width: t.width * a.x,
|
|
@@ -3853,13 +3864,13 @@ function _i(e) {
|
|
|
3853
3864
|
y: t.y * a.y - i.scrollTop * a.y + s.y
|
|
3854
3865
|
};
|
|
3855
3866
|
}
|
|
3856
|
-
function
|
|
3867
|
+
function Ri(e) {
|
|
3857
3868
|
return Array.from(e.getClientRects());
|
|
3858
3869
|
}
|
|
3859
3870
|
function To(e) {
|
|
3860
|
-
return
|
|
3871
|
+
return Le(_e(e)).left + Ft(e).scrollLeft;
|
|
3861
3872
|
}
|
|
3862
|
-
function
|
|
3873
|
+
function Ti(e) {
|
|
3863
3874
|
const t = _e(e), n = Ft(e), o = e.ownerDocument.body, r = pe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), c = pe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
3864
3875
|
let i = -n.scrollLeft + To(e);
|
|
3865
3876
|
const a = -n.scrollTop;
|
|
@@ -3870,7 +3881,7 @@ function Ri(e) {
|
|
|
3870
3881
|
y: a
|
|
3871
3882
|
};
|
|
3872
3883
|
}
|
|
3873
|
-
function
|
|
3884
|
+
function Oi(e, t) {
|
|
3874
3885
|
const n = me(e), o = _e(e), r = n.visualViewport;
|
|
3875
3886
|
let c = o.clientWidth, i = o.clientHeight, a = 0, s = 0;
|
|
3876
3887
|
if (r) {
|
|
@@ -3885,8 +3896,8 @@ function Ti(e, t) {
|
|
|
3885
3896
|
y: s
|
|
3886
3897
|
};
|
|
3887
3898
|
}
|
|
3888
|
-
function
|
|
3889
|
-
const n =
|
|
3899
|
+
function Ai(e, t) {
|
|
3900
|
+
const n = Le(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, c = ye(e) ? Ve(e) : Ae(1), i = e.clientWidth * c.x, a = e.clientHeight * c.y, s = r * c.x, d = o * c.y;
|
|
3890
3901
|
return {
|
|
3891
3902
|
width: i,
|
|
3892
3903
|
height: a,
|
|
@@ -3897,11 +3908,11 @@ function Oi(e, t) {
|
|
|
3897
3908
|
function jn(e, t, n) {
|
|
3898
3909
|
let o;
|
|
3899
3910
|
if (t === "viewport")
|
|
3900
|
-
o =
|
|
3911
|
+
o = Oi(e, n);
|
|
3901
3912
|
else if (t === "document")
|
|
3902
|
-
o =
|
|
3913
|
+
o = Ti(_e(e));
|
|
3903
3914
|
else if (Ee(t))
|
|
3904
|
-
o =
|
|
3915
|
+
o = Ai(t, n);
|
|
3905
3916
|
else {
|
|
3906
3917
|
const r = Ro(e);
|
|
3907
3918
|
o = {
|
|
@@ -3916,7 +3927,7 @@ function Oo(e, t) {
|
|
|
3916
3927
|
const n = Xe(e);
|
|
3917
3928
|
return n === t || !Ee(n) || kt(n) ? !1 : ge(n).position === "fixed" || Oo(n, t);
|
|
3918
3929
|
}
|
|
3919
|
-
function
|
|
3930
|
+
function Ii(e, t) {
|
|
3920
3931
|
const n = t.get(e);
|
|
3921
3932
|
if (n)
|
|
3922
3933
|
return n;
|
|
@@ -3929,14 +3940,14 @@ function Ai(e, t) {
|
|
|
3929
3940
|
}
|
|
3930
3941
|
return t.set(e, o), o;
|
|
3931
3942
|
}
|
|
3932
|
-
function
|
|
3943
|
+
function Ni(e) {
|
|
3933
3944
|
let {
|
|
3934
3945
|
element: t,
|
|
3935
3946
|
boundary: n,
|
|
3936
3947
|
rootBoundary: o,
|
|
3937
3948
|
strategy: r
|
|
3938
3949
|
} = e;
|
|
3939
|
-
const i = [...n === "clippingAncestors" ?
|
|
3950
|
+
const i = [...n === "clippingAncestors" ? Ii(t, this._c) : [].concat(n), o], a = i[0], s = i.reduce((d, u) => {
|
|
3940
3951
|
const l = jn(t, u, r);
|
|
3941
3952
|
return d.top = pe(l.top, d.top), d.right = Oe(l.right, d.right), d.bottom = Oe(l.bottom, d.bottom), d.left = pe(l.left, d.left), d;
|
|
3942
3953
|
}, jn(t, a, r));
|
|
@@ -3947,11 +3958,11 @@ function Ii(e) {
|
|
|
3947
3958
|
y: s.top
|
|
3948
3959
|
};
|
|
3949
3960
|
}
|
|
3950
|
-
function
|
|
3961
|
+
function Di(e) {
|
|
3951
3962
|
return Mo(e);
|
|
3952
3963
|
}
|
|
3953
|
-
function
|
|
3954
|
-
const o = ye(t), r = _e(t), c = n === "fixed", i =
|
|
3964
|
+
function ki(e, t, n) {
|
|
3965
|
+
const o = ye(t), r = _e(t), c = n === "fixed", i = Le(e, !0, c, t);
|
|
3955
3966
|
let a = {
|
|
3956
3967
|
scrollLeft: 0,
|
|
3957
3968
|
scrollTop: 0
|
|
@@ -3959,7 +3970,7 @@ function Di(e, t, n) {
|
|
|
3959
3970
|
const s = Ae(0);
|
|
3960
3971
|
if (o || !o && !c)
|
|
3961
3972
|
if ((Ie(t) !== "body" || dt(r)) && (a = Ft(t)), o) {
|
|
3962
|
-
const d =
|
|
3973
|
+
const d = Le(t, !0, c, t);
|
|
3963
3974
|
s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
|
|
3964
3975
|
} else
|
|
3965
3976
|
r && (s.x = To(r));
|
|
@@ -3978,11 +3989,11 @@ function Ao(e, t) {
|
|
|
3978
3989
|
if (!ye(e))
|
|
3979
3990
|
return n;
|
|
3980
3991
|
let o = Yn(e, t);
|
|
3981
|
-
for (; o &&
|
|
3992
|
+
for (; o && Si(o) && ge(o).position === "static"; )
|
|
3982
3993
|
o = Yn(o, t);
|
|
3983
|
-
return o && (Ie(o) === "html" || Ie(o) === "body" && ge(o).position === "static" && !$n(o)) ? n : o ||
|
|
3994
|
+
return o && (Ie(o) === "html" || Ie(o) === "body" && ge(o).position === "static" && !$n(o)) ? n : o || Pi(e) || n;
|
|
3984
3995
|
}
|
|
3985
|
-
const
|
|
3996
|
+
const Fi = async function(e) {
|
|
3986
3997
|
let {
|
|
3987
3998
|
reference: t,
|
|
3988
3999
|
floating: n,
|
|
@@ -3990,7 +4001,7 @@ const ki = async function(e) {
|
|
|
3990
4001
|
} = e;
|
|
3991
4002
|
const r = this.getOffsetParent || Ao, c = this.getDimensions;
|
|
3992
4003
|
return {
|
|
3993
|
-
reference:
|
|
4004
|
+
reference: ki(t, await r(n), o),
|
|
3994
4005
|
floating: {
|
|
3995
4006
|
x: 0,
|
|
3996
4007
|
y: 0,
|
|
@@ -3998,22 +4009,22 @@ const ki = async function(e) {
|
|
|
3998
4009
|
}
|
|
3999
4010
|
};
|
|
4000
4011
|
};
|
|
4001
|
-
function
|
|
4012
|
+
function Li(e) {
|
|
4002
4013
|
return ge(e).direction === "rtl";
|
|
4003
4014
|
}
|
|
4004
|
-
const
|
|
4005
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4015
|
+
const Bi = {
|
|
4016
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Mi,
|
|
4006
4017
|
getDocumentElement: _e,
|
|
4007
|
-
getClippingRect:
|
|
4018
|
+
getClippingRect: Ni,
|
|
4008
4019
|
getOffsetParent: Ao,
|
|
4009
|
-
getElementRects:
|
|
4010
|
-
getClientRects:
|
|
4011
|
-
getDimensions:
|
|
4012
|
-
getScale:
|
|
4020
|
+
getElementRects: Fi,
|
|
4021
|
+
getClientRects: Ri,
|
|
4022
|
+
getDimensions: Di,
|
|
4023
|
+
getScale: Ve,
|
|
4013
4024
|
isElement: Ee,
|
|
4014
|
-
isRTL:
|
|
4025
|
+
isRTL: Li
|
|
4015
4026
|
};
|
|
4016
|
-
function
|
|
4027
|
+
function Gi(e, t) {
|
|
4017
4028
|
let n = null, o;
|
|
4018
4029
|
const r = _e(e);
|
|
4019
4030
|
function c() {
|
|
@@ -4058,7 +4069,7 @@ function Bi(e, t) {
|
|
|
4058
4069
|
}
|
|
4059
4070
|
return i(!0), c;
|
|
4060
4071
|
}
|
|
4061
|
-
function
|
|
4072
|
+
function Wi(e, t, n, o) {
|
|
4062
4073
|
o === void 0 && (o = {});
|
|
4063
4074
|
const {
|
|
4064
4075
|
ancestorScroll: r = !0,
|
|
@@ -4072,7 +4083,7 @@ function Gi(e, t, n, o) {
|
|
|
4072
4083
|
passive: !0
|
|
4073
4084
|
}), c && g.addEventListener("resize", n);
|
|
4074
4085
|
});
|
|
4075
|
-
const l = d && a ?
|
|
4086
|
+
const l = d && a ? Gi(d, n) : null;
|
|
4076
4087
|
let v = -1, f = null;
|
|
4077
4088
|
i && (f = new ResizeObserver((g) => {
|
|
4078
4089
|
let [h] = g;
|
|
@@ -4080,10 +4091,10 @@ function Gi(e, t, n, o) {
|
|
|
4080
4091
|
f && f.observe(t);
|
|
4081
4092
|
})), n();
|
|
4082
4093
|
}), d && !s && f.observe(d), f.observe(t));
|
|
4083
|
-
let m, p = s ?
|
|
4094
|
+
let m, p = s ? Le(e) : null;
|
|
4084
4095
|
s && b();
|
|
4085
4096
|
function b() {
|
|
4086
|
-
const g =
|
|
4097
|
+
const g = Le(e);
|
|
4087
4098
|
p && (g.x !== p.x || g.y !== p.y || g.width !== p.width || g.height !== p.height) && n(), p = g, m = requestAnimationFrame(b);
|
|
4088
4099
|
}
|
|
4089
4100
|
return n(), () => {
|
|
@@ -4092,19 +4103,19 @@ function Gi(e, t, n, o) {
|
|
|
4092
4103
|
}), l && l(), f && f.disconnect(), f = null, s && cancelAnimationFrame(m);
|
|
4093
4104
|
};
|
|
4094
4105
|
}
|
|
4095
|
-
const
|
|
4106
|
+
const Hi = (e, t, n) => {
|
|
4096
4107
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
4097
|
-
platform:
|
|
4108
|
+
platform: Bi,
|
|
4098
4109
|
...n
|
|
4099
4110
|
}, c = {
|
|
4100
4111
|
...r.platform,
|
|
4101
4112
|
_c: o
|
|
4102
4113
|
};
|
|
4103
|
-
return
|
|
4114
|
+
return gi(e, t, {
|
|
4104
4115
|
...r,
|
|
4105
4116
|
platform: c
|
|
4106
4117
|
});
|
|
4107
|
-
},
|
|
4118
|
+
}, zi = (e) => {
|
|
4108
4119
|
function t(n) {
|
|
4109
4120
|
return {}.hasOwnProperty.call(n, "current");
|
|
4110
4121
|
}
|
|
@@ -4171,7 +4182,7 @@ function qn(e) {
|
|
|
4171
4182
|
t.current = e;
|
|
4172
4183
|
}), t;
|
|
4173
4184
|
}
|
|
4174
|
-
function
|
|
4185
|
+
function Ui(e) {
|
|
4175
4186
|
e === void 0 && (e = {});
|
|
4176
4187
|
const {
|
|
4177
4188
|
placement: t = "bottom",
|
|
@@ -4206,7 +4217,7 @@ function zi(e) {
|
|
|
4206
4217
|
strategy: n,
|
|
4207
4218
|
middleware: v
|
|
4208
4219
|
};
|
|
4209
|
-
z.current && (I.platform = z.current),
|
|
4220
|
+
z.current && (I.platform = z.current), Hi(M.current, P.current, I).then((re) => {
|
|
4210
4221
|
const J = {
|
|
4211
4222
|
...re,
|
|
4212
4223
|
isPositioned: !0
|
|
@@ -4271,7 +4282,7 @@ function zi(e) {
|
|
|
4271
4282
|
}
|
|
4272
4283
|
function No(e) {
|
|
4273
4284
|
const [t, n] = H(void 0);
|
|
4274
|
-
return
|
|
4285
|
+
return xe(() => {
|
|
4275
4286
|
if (e) {
|
|
4276
4287
|
n({
|
|
4277
4288
|
width: e.offsetWidth,
|
|
@@ -4301,21 +4312,21 @@ function No(e) {
|
|
|
4301
4312
|
e
|
|
4302
4313
|
]), t;
|
|
4303
4314
|
}
|
|
4304
|
-
const Do = "Popper", [ko, Lt] = Ne(Do), [
|
|
4315
|
+
const Do = "Popper", [ko, Lt] = Ne(Do), [Ki, Fo] = ko(Do), Vi = (e) => {
|
|
4305
4316
|
const { __scopePopper: t, children: n } = e, [o, r] = H(null);
|
|
4306
|
-
return /* @__PURE__ */ $(
|
|
4317
|
+
return /* @__PURE__ */ $(Ki, {
|
|
4307
4318
|
scope: t,
|
|
4308
4319
|
anchor: o,
|
|
4309
4320
|
onAnchorChange: r
|
|
4310
4321
|
}, n);
|
|
4311
|
-
},
|
|
4312
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, c = Fo(
|
|
4322
|
+
}, ji = "PopperAnchor", Yi = /* @__PURE__ */ _((e, t) => {
|
|
4323
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, c = Fo(ji, n), i = L(null), a = ce(t, i);
|
|
4313
4324
|
return U(() => {
|
|
4314
4325
|
c.onAnchorChange((o == null ? void 0 : o.current) || i.current);
|
|
4315
4326
|
}), o ? null : /* @__PURE__ */ $(Q.div, C({}, r, {
|
|
4316
4327
|
ref: a
|
|
4317
4328
|
}));
|
|
4318
|
-
}), Lo = "PopperContent", [
|
|
4329
|
+
}), Lo = "PopperContent", [Xi, qd] = ko(Lo), qi = /* @__PURE__ */ _((e, t) => {
|
|
4319
4330
|
var n, o, r, c, i, a, s, d;
|
|
4320
4331
|
const { __scopePopper: u, side: l = "bottom", sideOffset: v = 0, align: f = "center", alignOffset: m = 0, arrowPadding: p = 0, collisionBoundary: b = [], collisionPadding: g = 0, sticky: h = "partial", hideWhenDetached: x = !1, avoidCollisions: w = !0, onPlaced: y, ...M } = e, P = Fo(Lo, u), [E, D] = H(null), z = ce(
|
|
4321
4332
|
t,
|
|
@@ -4330,59 +4341,59 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
|
|
|
4330
4341
|
b
|
|
4331
4342
|
], R = J.length > 0, j = {
|
|
4332
4343
|
padding: re,
|
|
4333
|
-
boundary: J.filter(
|
|
4344
|
+
boundary: J.filter(Zi),
|
|
4334
4345
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
4335
4346
|
altBoundary: R
|
|
4336
|
-
}, { refs: oe, floatingStyles: ie, placement: ee, isPositioned: ae, middlewareData: de } =
|
|
4347
|
+
}, { refs: oe, floatingStyles: ie, placement: ee, isPositioned: ae, middlewareData: de } = Ui({
|
|
4337
4348
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
4338
4349
|
strategy: "fixed",
|
|
4339
4350
|
placement: I,
|
|
4340
|
-
whileElementsMounted:
|
|
4351
|
+
whileElementsMounted: Wi,
|
|
4341
4352
|
elements: {
|
|
4342
4353
|
reference: P.anchor
|
|
4343
4354
|
},
|
|
4344
4355
|
middleware: [
|
|
4345
|
-
|
|
4356
|
+
xi({
|
|
4346
4357
|
mainAxis: v + F,
|
|
4347
4358
|
alignmentAxis: m
|
|
4348
4359
|
}),
|
|
4349
|
-
w &&
|
|
4360
|
+
w && wi({
|
|
4350
4361
|
mainAxis: !0,
|
|
4351
4362
|
crossAxis: !1,
|
|
4352
|
-
limiter: h === "partial" ?
|
|
4363
|
+
limiter: h === "partial" ? yi() : void 0,
|
|
4353
4364
|
...j
|
|
4354
4365
|
}),
|
|
4355
|
-
w &&
|
|
4366
|
+
w && hi({
|
|
4356
4367
|
...j
|
|
4357
4368
|
}),
|
|
4358
|
-
|
|
4369
|
+
Ci({
|
|
4359
4370
|
...j,
|
|
4360
4371
|
apply: ({ elements: se, rects: tt, availableWidth: nt, availableHeight: ot }) => {
|
|
4361
4372
|
const { width: Zr, height: Qr } = tt.reference, ft = se.floating.style;
|
|
4362
4373
|
ft.setProperty("--radix-popper-available-width", `${nt}px`), ft.setProperty("--radix-popper-available-height", `${ot}px`), ft.setProperty("--radix-popper-anchor-width", `${Zr}px`), ft.setProperty("--radix-popper-anchor-height", `${Qr}px`);
|
|
4363
4374
|
}
|
|
4364
4375
|
}),
|
|
4365
|
-
k &&
|
|
4376
|
+
k && zi({
|
|
4366
4377
|
element: k,
|
|
4367
4378
|
padding: p
|
|
4368
4379
|
}),
|
|
4369
|
-
|
|
4380
|
+
Qi({
|
|
4370
4381
|
arrowWidth: B,
|
|
4371
4382
|
arrowHeight: F
|
|
4372
4383
|
}),
|
|
4373
|
-
x &&
|
|
4384
|
+
x && bi({
|
|
4374
4385
|
strategy: "referenceHidden"
|
|
4375
4386
|
})
|
|
4376
4387
|
]
|
|
4377
4388
|
}), [ue, O] = Bo(ee), V = ve(y);
|
|
4378
|
-
|
|
4389
|
+
xe(() => {
|
|
4379
4390
|
ae && (V == null || V());
|
|
4380
4391
|
}, [
|
|
4381
4392
|
ae,
|
|
4382
4393
|
V
|
|
4383
4394
|
]);
|
|
4384
4395
|
const te = (r = de.arrow) === null || r === void 0 ? void 0 : r.x, Y = (c = de.arrow) === null || c === void 0 ? void 0 : c.y, X = ((i = de.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [q, fe] = H();
|
|
4385
|
-
return
|
|
4396
|
+
return xe(() => {
|
|
4386
4397
|
E && fe(window.getComputedStyle(E).zIndex);
|
|
4387
4398
|
}, [
|
|
4388
4399
|
E
|
|
@@ -4401,7 +4412,7 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
|
|
|
4401
4412
|
].join(" ")
|
|
4402
4413
|
},
|
|
4403
4414
|
dir: e.dir
|
|
4404
|
-
}, /* @__PURE__ */ $(
|
|
4415
|
+
}, /* @__PURE__ */ $(Xi, {
|
|
4405
4416
|
scope: u,
|
|
4406
4417
|
placedSide: ue,
|
|
4407
4418
|
onArrowChange: T,
|
|
@@ -4423,10 +4434,10 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
|
|
|
4423
4434
|
}
|
|
4424
4435
|
}))));
|
|
4425
4436
|
});
|
|
4426
|
-
function
|
|
4437
|
+
function Zi(e) {
|
|
4427
4438
|
return e !== null;
|
|
4428
4439
|
}
|
|
4429
|
-
const
|
|
4440
|
+
const Qi = (e) => ({
|
|
4430
4441
|
name: "transformOrigin",
|
|
4431
4442
|
options: e,
|
|
4432
4443
|
fn(t) {
|
|
@@ -4452,30 +4463,30 @@ function Bo(e) {
|
|
|
4452
4463
|
n
|
|
4453
4464
|
];
|
|
4454
4465
|
}
|
|
4455
|
-
const yn =
|
|
4466
|
+
const yn = Vi, Go = Yi, Wo = qi, Ho = /* @__PURE__ */ _((e, t) => {
|
|
4456
4467
|
var n;
|
|
4457
4468
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...r } = e;
|
|
4458
4469
|
return o ? /* @__PURE__ */ tc.createPortal(/* @__PURE__ */ $(Q.div, C({}, r, {
|
|
4459
4470
|
ref: t
|
|
4460
4471
|
})), o) : null;
|
|
4461
4472
|
});
|
|
4462
|
-
function
|
|
4473
|
+
function Ji(e, t) {
|
|
4463
4474
|
return Jr((n, o) => {
|
|
4464
4475
|
const r = t[n][o];
|
|
4465
4476
|
return r ?? n;
|
|
4466
4477
|
}, e);
|
|
4467
4478
|
}
|
|
4468
4479
|
const Je = (e) => {
|
|
4469
|
-
const { present: t, children: n } = e, o =
|
|
4480
|
+
const { present: t, children: n } = e, o = ea(t), r = typeof n == "function" ? n({
|
|
4470
4481
|
present: o.isPresent
|
|
4471
|
-
}) :
|
|
4472
|
-
return typeof n == "function" || o.isPresent ? /* @__PURE__ */
|
|
4482
|
+
}) : Ke.only(n), c = ce(o.ref, r.ref);
|
|
4483
|
+
return typeof n == "function" || o.isPresent ? /* @__PURE__ */ fn(r, {
|
|
4473
4484
|
ref: c
|
|
4474
4485
|
}) : null;
|
|
4475
4486
|
};
|
|
4476
4487
|
Je.displayName = "Presence";
|
|
4477
|
-
function
|
|
4478
|
-
const [t, n] = H(), o = L({}), r = L(e), c = L("none"), i = e ? "mounted" : "unmounted", [a, s] =
|
|
4488
|
+
function ea(e) {
|
|
4489
|
+
const [t, n] = H(), o = L({}), r = L(e), c = L("none"), i = e ? "mounted" : "unmounted", [a, s] = Ji(i, {
|
|
4479
4490
|
mounted: {
|
|
4480
4491
|
UNMOUNT: "unmounted",
|
|
4481
4492
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4493,7 +4504,7 @@ function Ji(e) {
|
|
|
4493
4504
|
c.current = a === "mounted" ? d : "none";
|
|
4494
4505
|
}, [
|
|
4495
4506
|
a
|
|
4496
|
-
]),
|
|
4507
|
+
]), xe(() => {
|
|
4497
4508
|
const d = o.current, u = r.current;
|
|
4498
4509
|
if (u !== e) {
|
|
4499
4510
|
const v = c.current, f = vt(d);
|
|
@@ -4502,7 +4513,7 @@ function Ji(e) {
|
|
|
4502
4513
|
}, [
|
|
4503
4514
|
e,
|
|
4504
4515
|
s
|
|
4505
|
-
]),
|
|
4516
|
+
]), xe(() => {
|
|
4506
4517
|
if (t) {
|
|
4507
4518
|
const d = (l) => {
|
|
4508
4519
|
const f = vt(o.current).includes(l.animationName);
|
|
@@ -4533,19 +4544,19 @@ function Ji(e) {
|
|
|
4533
4544
|
function vt(e) {
|
|
4534
4545
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4535
4546
|
}
|
|
4536
|
-
const qt = "rovingFocusGroup.onEntryFocus",
|
|
4547
|
+
const qt = "rovingFocusGroup.onEntryFocus", ta = {
|
|
4537
4548
|
bubbles: !1,
|
|
4538
4549
|
cancelable: !0
|
|
4539
|
-
}, Cn = "RovingFocusGroup", [an, zo,
|
|
4540
|
-
|
|
4541
|
-
]), [
|
|
4550
|
+
}, Cn = "RovingFocusGroup", [an, zo, na] = vn(Cn), [oa, Bt] = Ne(Cn, [
|
|
4551
|
+
na
|
|
4552
|
+
]), [ra, ca] = oa(Cn), ia = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(an.Provider, {
|
|
4542
4553
|
scope: e.__scopeRovingFocusGroup
|
|
4543
4554
|
}, /* @__PURE__ */ $(an.Slot, {
|
|
4544
4555
|
scope: e.__scopeRovingFocusGroup
|
|
4545
|
-
}, /* @__PURE__ */ $(
|
|
4556
|
+
}, /* @__PURE__ */ $(aa, C({}, e, {
|
|
4546
4557
|
ref: t
|
|
4547
|
-
}))))),
|
|
4548
|
-
const { __scopeRovingFocusGroup: n, orientation: o, loop: r = !1, dir: c, currentTabStopId: i, defaultCurrentTabStopId: a, onCurrentTabStopIdChange: s, onEntryFocus: d, ...u } = e, l = L(null), v = ce(t, l), f = Dt(c), [m = null, p] =
|
|
4558
|
+
}))))), aa = /* @__PURE__ */ _((e, t) => {
|
|
4559
|
+
const { __scopeRovingFocusGroup: n, orientation: o, loop: r = !1, dir: c, currentTabStopId: i, defaultCurrentTabStopId: a, onCurrentTabStopIdChange: s, onEntryFocus: d, ...u } = e, l = L(null), v = ce(t, l), f = Dt(c), [m = null, p] = Ye({
|
|
4549
4560
|
prop: i,
|
|
4550
4561
|
defaultProp: a,
|
|
4551
4562
|
onChange: s
|
|
@@ -4556,7 +4567,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4556
4567
|
return P.addEventListener(qt, h), () => P.removeEventListener(qt, h);
|
|
4557
4568
|
}, [
|
|
4558
4569
|
h
|
|
4559
|
-
]), /* @__PURE__ */ $(
|
|
4570
|
+
]), /* @__PURE__ */ $(ra, {
|
|
4560
4571
|
scope: n,
|
|
4561
4572
|
orientation: o,
|
|
4562
4573
|
dir: f,
|
|
@@ -4599,7 +4610,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4599
4610
|
onFocus: A(e.onFocus, (P) => {
|
|
4600
4611
|
const E = !w.current;
|
|
4601
4612
|
if (P.target === P.currentTarget && E && !b) {
|
|
4602
|
-
const D = new CustomEvent(qt,
|
|
4613
|
+
const D = new CustomEvent(qt, ta);
|
|
4603
4614
|
if (P.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
4604
4615
|
const z = x().filter(
|
|
4605
4616
|
(F) => F.focusable
|
|
@@ -4624,8 +4635,8 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4624
4635
|
() => g(!1)
|
|
4625
4636
|
)
|
|
4626
4637
|
})));
|
|
4627
|
-
}),
|
|
4628
|
-
const { __scopeRovingFocusGroup: n, focusable: o = !0, active: r = !1, tabStopId: c, ...i } = e, a = Te(), s = c || a, d =
|
|
4638
|
+
}), sa = "RovingFocusGroupItem", la = /* @__PURE__ */ _((e, t) => {
|
|
4639
|
+
const { __scopeRovingFocusGroup: n, focusable: o = !0, active: r = !1, tabStopId: c, ...i } = e, a = Te(), s = c || a, d = ca(sa, n), u = d.currentTabStopId === s, l = zo(n), { onFocusableItemAdd: v, onFocusableItemRemove: f } = d;
|
|
4629
4640
|
return U(() => {
|
|
4630
4641
|
if (o)
|
|
4631
4642
|
return v(), () => f();
|
|
@@ -4657,7 +4668,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4657
4668
|
}
|
|
4658
4669
|
if (m.target !== m.currentTarget)
|
|
4659
4670
|
return;
|
|
4660
|
-
const p =
|
|
4671
|
+
const p = fa(m, d.orientation, d.dir);
|
|
4661
4672
|
if (p !== void 0) {
|
|
4662
4673
|
m.preventDefault();
|
|
4663
4674
|
let g = l().filter(
|
|
@@ -4670,7 +4681,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4670
4681
|
else if (p === "prev" || p === "next") {
|
|
4671
4682
|
p === "prev" && g.reverse();
|
|
4672
4683
|
const h = g.indexOf(m.currentTarget);
|
|
4673
|
-
g = d.loop ?
|
|
4684
|
+
g = d.loop ? pa(g, h + 1) : g.slice(h + 1);
|
|
4674
4685
|
}
|
|
4675
4686
|
setTimeout(
|
|
4676
4687
|
() => Uo(g)
|
|
@@ -4678,7 +4689,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4678
4689
|
}
|
|
4679
4690
|
})
|
|
4680
4691
|
})));
|
|
4681
|
-
}),
|
|
4692
|
+
}), da = {
|
|
4682
4693
|
ArrowLeft: "prev",
|
|
4683
4694
|
ArrowUp: "prev",
|
|
4684
4695
|
ArrowRight: "next",
|
|
@@ -4688,11 +4699,11 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4688
4699
|
PageDown: "last",
|
|
4689
4700
|
End: "last"
|
|
4690
4701
|
};
|
|
4691
|
-
function
|
|
4702
|
+
function ua(e, t) {
|
|
4692
4703
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4693
4704
|
}
|
|
4694
|
-
function
|
|
4695
|
-
const o =
|
|
4705
|
+
function fa(e, t, n) {
|
|
4706
|
+
const o = ua(e.key, n);
|
|
4696
4707
|
if (!(t === "vertical" && [
|
|
4697
4708
|
"ArrowLeft",
|
|
4698
4709
|
"ArrowRight"
|
|
@@ -4700,7 +4711,7 @@ function ua(e, t, n) {
|
|
|
4700
4711
|
"ArrowUp",
|
|
4701
4712
|
"ArrowDown"
|
|
4702
4713
|
].includes(o)))
|
|
4703
|
-
return
|
|
4714
|
+
return da[o];
|
|
4704
4715
|
}
|
|
4705
4716
|
function Uo(e) {
|
|
4706
4717
|
const t = document.activeElement;
|
|
@@ -4708,20 +4719,20 @@ function Uo(e) {
|
|
|
4708
4719
|
if (n === t || (n.focus(), document.activeElement !== t))
|
|
4709
4720
|
return;
|
|
4710
4721
|
}
|
|
4711
|
-
function
|
|
4722
|
+
function pa(e, t) {
|
|
4712
4723
|
return e.map(
|
|
4713
4724
|
(n, o) => e[(t + o) % e.length]
|
|
4714
4725
|
);
|
|
4715
4726
|
}
|
|
4716
|
-
const Ko =
|
|
4717
|
-
var
|
|
4727
|
+
const Ko = ia, Vo = la;
|
|
4728
|
+
var ma = function(e) {
|
|
4718
4729
|
if (typeof document > "u")
|
|
4719
4730
|
return null;
|
|
4720
4731
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4721
4732
|
return t.ownerDocument.body;
|
|
4722
|
-
},
|
|
4733
|
+
}, He = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ht = {}, Zt = 0, jo = function(e) {
|
|
4723
4734
|
return e && (e.host || jo(e.parentNode));
|
|
4724
|
-
},
|
|
4735
|
+
}, va = function(e, t) {
|
|
4725
4736
|
return t.map(function(n) {
|
|
4726
4737
|
if (e.contains(n))
|
|
4727
4738
|
return n;
|
|
@@ -4730,8 +4741,8 @@ var pa = function(e) {
|
|
|
4730
4741
|
}).filter(function(n) {
|
|
4731
4742
|
return !!n;
|
|
4732
4743
|
});
|
|
4733
|
-
},
|
|
4734
|
-
var r =
|
|
4744
|
+
}, ga = function(e, t, n, o) {
|
|
4745
|
+
var r = va(t, Array.isArray(e) ? e : [e]);
|
|
4735
4746
|
ht[n] || (ht[n] = /* @__PURE__ */ new WeakMap());
|
|
4736
4747
|
var c = ht[n], i = [], a = /* @__PURE__ */ new Set(), s = new Set(r), d = function(l) {
|
|
4737
4748
|
!l || a.has(l) || (a.add(l), d(l.parentNode));
|
|
@@ -4742,21 +4753,21 @@ var pa = function(e) {
|
|
|
4742
4753
|
if (a.has(v))
|
|
4743
4754
|
u(v);
|
|
4744
4755
|
else {
|
|
4745
|
-
var f = v.getAttribute(o), m = f !== null && f !== "false", p = (
|
|
4746
|
-
|
|
4756
|
+
var f = v.getAttribute(o), m = f !== null && f !== "false", p = (He.get(v) || 0) + 1, b = (c.get(v) || 0) + 1;
|
|
4757
|
+
He.set(v, p), c.set(v, b), i.push(v), p === 1 && m && gt.set(v, !0), b === 1 && v.setAttribute(n, "true"), m || v.setAttribute(o, "true");
|
|
4747
4758
|
}
|
|
4748
4759
|
});
|
|
4749
4760
|
};
|
|
4750
4761
|
return u(t), a.clear(), Zt++, function() {
|
|
4751
4762
|
i.forEach(function(l) {
|
|
4752
|
-
var v =
|
|
4753
|
-
|
|
4754
|
-
}), Zt--, Zt || (
|
|
4763
|
+
var v = He.get(l) - 1, f = c.get(l) - 1;
|
|
4764
|
+
He.set(l, v), c.set(l, f), v || (gt.has(l) || l.removeAttribute(o), gt.delete(l)), f || l.removeAttribute(n);
|
|
4765
|
+
}), Zt--, Zt || (He = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ht = {});
|
|
4755
4766
|
};
|
|
4756
4767
|
}, Yo = function(e, t, n) {
|
|
4757
4768
|
n === void 0 && (n = "data-aria-hidden");
|
|
4758
|
-
var o = Array.from(Array.isArray(e) ? e : [e]), r = t ||
|
|
4759
|
-
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))),
|
|
4769
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), r = t || ma(e);
|
|
4770
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), ga(o, r, n, "aria-hidden")) : function() {
|
|
4760
4771
|
return null;
|
|
4761
4772
|
};
|
|
4762
4773
|
}, we = function() {
|
|
@@ -4778,17 +4789,17 @@ function Xo(e, t) {
|
|
|
4778
4789
|
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
|
|
4779
4790
|
return n;
|
|
4780
4791
|
}
|
|
4781
|
-
function
|
|
4792
|
+
function ha(e, t, n) {
|
|
4782
4793
|
if (n || arguments.length === 2)
|
|
4783
4794
|
for (var o = 0, r = t.length, c; o < r; o++)
|
|
4784
4795
|
(c || !(o in t)) && (c || (c = Array.prototype.slice.call(t, 0, o)), c[o] = t[o]);
|
|
4785
4796
|
return e.concat(c || Array.prototype.slice.call(t));
|
|
4786
4797
|
}
|
|
4787
|
-
var Ct = "right-scroll-bar-position", St = "width-before-scroll-bar",
|
|
4788
|
-
function
|
|
4798
|
+
var Ct = "right-scroll-bar-position", St = "width-before-scroll-bar", ba = "with-scroll-bars-hidden", $a = "--removed-body-scroll-bar-size";
|
|
4799
|
+
function xa(e, t) {
|
|
4789
4800
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4790
4801
|
}
|
|
4791
|
-
function
|
|
4802
|
+
function wa(e, t) {
|
|
4792
4803
|
var n = H(function() {
|
|
4793
4804
|
return {
|
|
4794
4805
|
// value
|
|
@@ -4809,18 +4820,18 @@ function xa(e, t) {
|
|
|
4809
4820
|
})[0];
|
|
4810
4821
|
return n.callback = t, n.facade;
|
|
4811
4822
|
}
|
|
4812
|
-
function
|
|
4813
|
-
return
|
|
4823
|
+
function ya(e, t) {
|
|
4824
|
+
return wa(t || null, function(n) {
|
|
4814
4825
|
return e.forEach(function(o) {
|
|
4815
|
-
return
|
|
4826
|
+
return xa(o, n);
|
|
4816
4827
|
});
|
|
4817
4828
|
});
|
|
4818
4829
|
}
|
|
4819
|
-
function
|
|
4830
|
+
function Ca(e) {
|
|
4820
4831
|
return e;
|
|
4821
4832
|
}
|
|
4822
|
-
function
|
|
4823
|
-
t === void 0 && (t =
|
|
4833
|
+
function Sa(e, t) {
|
|
4834
|
+
t === void 0 && (t = Ca);
|
|
4824
4835
|
var n = [], o = !1, r = {
|
|
4825
4836
|
read: function() {
|
|
4826
4837
|
if (o)
|
|
@@ -4874,9 +4885,9 @@ function Ca(e, t) {
|
|
|
4874
4885
|
};
|
|
4875
4886
|
return r;
|
|
4876
4887
|
}
|
|
4877
|
-
function
|
|
4888
|
+
function Pa(e) {
|
|
4878
4889
|
e === void 0 && (e = {});
|
|
4879
|
-
var t =
|
|
4890
|
+
var t = Sa(null);
|
|
4880
4891
|
return t.options = we({ async: !0, ssr: !1 }, e), t;
|
|
4881
4892
|
}
|
|
4882
4893
|
var qo = function(e) {
|
|
@@ -4889,16 +4900,16 @@ var qo = function(e) {
|
|
|
4889
4900
|
return S.createElement(o, we({}, n));
|
|
4890
4901
|
};
|
|
4891
4902
|
qo.isSideCarExport = !0;
|
|
4892
|
-
function
|
|
4903
|
+
function Ea(e, t) {
|
|
4893
4904
|
return e.useMedium(t), qo;
|
|
4894
4905
|
}
|
|
4895
|
-
var Zo =
|
|
4906
|
+
var Zo = Pa(), Qt = function() {
|
|
4896
4907
|
}, Gt = S.forwardRef(function(e, t) {
|
|
4897
4908
|
var n = S.useRef(null), o = S.useState({
|
|
4898
4909
|
onScrollCapture: Qt,
|
|
4899
4910
|
onWheelCapture: Qt,
|
|
4900
4911
|
onTouchMoveCapture: Qt
|
|
4901
|
-
}), r = o[0], c = o[1], i = e.forwardProps, a = e.children, s = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, v = e.sideCar, f = e.noIsolation, m = e.inert, p = e.allowPinchZoom, b = e.as, g = b === void 0 ? "div" : b, h = Xo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = v, w =
|
|
4912
|
+
}), r = o[0], c = o[1], i = e.forwardProps, a = e.children, s = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, v = e.sideCar, f = e.noIsolation, m = e.inert, p = e.allowPinchZoom, b = e.as, g = b === void 0 ? "div" : b, h = Xo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = v, w = ya([n, t]), y = we(we({}, h), r);
|
|
4902
4913
|
return S.createElement(
|
|
4903
4914
|
S.Fragment,
|
|
4904
4915
|
null,
|
|
@@ -4915,39 +4926,39 @@ Gt.classNames = {
|
|
|
4915
4926
|
fullWidth: St,
|
|
4916
4927
|
zeroRight: Ct
|
|
4917
4928
|
};
|
|
4918
|
-
var Zn,
|
|
4929
|
+
var Zn, _a = function() {
|
|
4919
4930
|
if (Zn)
|
|
4920
4931
|
return Zn;
|
|
4921
4932
|
if (typeof __webpack_nonce__ < "u")
|
|
4922
4933
|
return __webpack_nonce__;
|
|
4923
4934
|
};
|
|
4924
|
-
function
|
|
4935
|
+
function Ma() {
|
|
4925
4936
|
if (!document)
|
|
4926
4937
|
return null;
|
|
4927
4938
|
var e = document.createElement("style");
|
|
4928
4939
|
e.type = "text/css";
|
|
4929
|
-
var t =
|
|
4940
|
+
var t = _a();
|
|
4930
4941
|
return t && e.setAttribute("nonce", t), e;
|
|
4931
4942
|
}
|
|
4932
|
-
function
|
|
4943
|
+
function Ra(e, t) {
|
|
4933
4944
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4934
4945
|
}
|
|
4935
|
-
function
|
|
4946
|
+
function Ta(e) {
|
|
4936
4947
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
4937
4948
|
t.appendChild(e);
|
|
4938
4949
|
}
|
|
4939
|
-
var
|
|
4950
|
+
var Oa = function() {
|
|
4940
4951
|
var e = 0, t = null;
|
|
4941
4952
|
return {
|
|
4942
4953
|
add: function(n) {
|
|
4943
|
-
e == 0 && (t =
|
|
4954
|
+
e == 0 && (t = Ma()) && (Ra(t, n), Ta(t)), e++;
|
|
4944
4955
|
},
|
|
4945
4956
|
remove: function() {
|
|
4946
4957
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
4947
4958
|
}
|
|
4948
4959
|
};
|
|
4949
|
-
},
|
|
4950
|
-
var e =
|
|
4960
|
+
}, Aa = function() {
|
|
4961
|
+
var e = Oa();
|
|
4951
4962
|
return function(t, n) {
|
|
4952
4963
|
S.useEffect(function() {
|
|
4953
4964
|
return e.add(t), function() {
|
|
@@ -4956,35 +4967,35 @@ var Ta = function() {
|
|
|
4956
4967
|
}, [t && n]);
|
|
4957
4968
|
};
|
|
4958
4969
|
}, Qo = function() {
|
|
4959
|
-
var e =
|
|
4970
|
+
var e = Aa(), t = function(n) {
|
|
4960
4971
|
var o = n.styles, r = n.dynamic;
|
|
4961
4972
|
return e(o, r), null;
|
|
4962
4973
|
};
|
|
4963
4974
|
return t;
|
|
4964
|
-
},
|
|
4975
|
+
}, Ia = {
|
|
4965
4976
|
left: 0,
|
|
4966
4977
|
top: 0,
|
|
4967
4978
|
right: 0,
|
|
4968
4979
|
gap: 0
|
|
4969
4980
|
}, Jt = function(e) {
|
|
4970
4981
|
return parseInt(e || "", 10) || 0;
|
|
4971
|
-
},
|
|
4982
|
+
}, Na = function(e) {
|
|
4972
4983
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
4973
4984
|
return [Jt(n), Jt(o), Jt(r)];
|
|
4974
|
-
},
|
|
4985
|
+
}, Da = function(e) {
|
|
4975
4986
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4976
|
-
return
|
|
4977
|
-
var t =
|
|
4987
|
+
return Ia;
|
|
4988
|
+
var t = Na(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
4978
4989
|
return {
|
|
4979
4990
|
left: t[0],
|
|
4980
4991
|
top: t[1],
|
|
4981
4992
|
right: t[2],
|
|
4982
4993
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
4983
4994
|
};
|
|
4984
|
-
},
|
|
4995
|
+
}, ka = Qo(), Fa = function(e, t, n, o) {
|
|
4985
4996
|
var r = e.left, c = e.top, i = e.right, a = e.gap;
|
|
4986
4997
|
return n === void 0 && (n = "margin"), `
|
|
4987
|
-
.`.concat(
|
|
4998
|
+
.`.concat(ba, ` {
|
|
4988
4999
|
overflow: hidden `).concat(o, `;
|
|
4989
5000
|
padding-right: `).concat(a, "px ").concat(o, `;
|
|
4990
5001
|
}
|
|
@@ -5022,14 +5033,14 @@ var Ta = function() {
|
|
|
5022
5033
|
}
|
|
5023
5034
|
|
|
5024
5035
|
body {
|
|
5025
|
-
`).concat(
|
|
5036
|
+
`).concat($a, ": ").concat(a, `px;
|
|
5026
5037
|
}
|
|
5027
5038
|
`);
|
|
5028
|
-
},
|
|
5039
|
+
}, La = function(e) {
|
|
5029
5040
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o, c = S.useMemo(function() {
|
|
5030
|
-
return
|
|
5041
|
+
return Da(r);
|
|
5031
5042
|
}, [r]);
|
|
5032
|
-
return S.createElement(
|
|
5043
|
+
return S.createElement(ka, { styles: Fa(c, !t, r, n ? "" : "!important") });
|
|
5033
5044
|
}, sn = !1;
|
|
5034
5045
|
if (typeof window < "u")
|
|
5035
5046
|
try {
|
|
@@ -5042,18 +5053,18 @@ if (typeof window < "u")
|
|
|
5042
5053
|
} catch {
|
|
5043
5054
|
sn = !1;
|
|
5044
5055
|
}
|
|
5045
|
-
var
|
|
5056
|
+
var ze = sn ? { passive: !1 } : !1, Ba = function(e) {
|
|
5046
5057
|
return e.tagName === "TEXTAREA";
|
|
5047
5058
|
}, Jo = function(e, t) {
|
|
5048
5059
|
var n = window.getComputedStyle(e);
|
|
5049
5060
|
return (
|
|
5050
5061
|
// not-not-scrollable
|
|
5051
5062
|
n[t] !== "hidden" && // contains scroll inside self
|
|
5052
|
-
!(n.overflowY === n.overflowX && !
|
|
5063
|
+
!(n.overflowY === n.overflowX && !Ba(e) && n[t] === "visible")
|
|
5053
5064
|
);
|
|
5054
|
-
}, Ba = function(e) {
|
|
5055
|
-
return Jo(e, "overflowY");
|
|
5056
5065
|
}, Ga = function(e) {
|
|
5066
|
+
return Jo(e, "overflowY");
|
|
5067
|
+
}, Wa = function(e) {
|
|
5057
5068
|
return Jo(e, "overflowX");
|
|
5058
5069
|
}, Qn = function(e, t) {
|
|
5059
5070
|
var n = t;
|
|
@@ -5068,14 +5079,14 @@ var He = sn ? { passive: !1 } : !1, La = function(e) {
|
|
|
5068
5079
|
n = n.parentNode;
|
|
5069
5080
|
} while (n && n !== document.body);
|
|
5070
5081
|
return !1;
|
|
5071
|
-
},
|
|
5082
|
+
}, Ha = function(e) {
|
|
5072
5083
|
var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
|
|
5073
5084
|
return [
|
|
5074
5085
|
t,
|
|
5075
5086
|
n,
|
|
5076
5087
|
o
|
|
5077
5088
|
];
|
|
5078
|
-
},
|
|
5089
|
+
}, za = function(e) {
|
|
5079
5090
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
5080
5091
|
return [
|
|
5081
5092
|
t,
|
|
@@ -5083,13 +5094,13 @@ var He = sn ? { passive: !1 } : !1, La = function(e) {
|
|
|
5083
5094
|
o
|
|
5084
5095
|
];
|
|
5085
5096
|
}, er = function(e, t) {
|
|
5086
|
-
return e === "v" ?
|
|
5097
|
+
return e === "v" ? Ga(t) : Wa(t);
|
|
5087
5098
|
}, tr = function(e, t) {
|
|
5088
|
-
return e === "v" ?
|
|
5089
|
-
},
|
|
5099
|
+
return e === "v" ? Ha(t) : za(t);
|
|
5100
|
+
}, Ua = function(e, t) {
|
|
5090
5101
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
5091
|
-
},
|
|
5092
|
-
var c =
|
|
5102
|
+
}, Ka = function(e, t, n, o, r) {
|
|
5103
|
+
var c = Ua(e, window.getComputedStyle(t).direction), i = c * o, a = n.target, s = t.contains(a), d = !1, u = i > 0, l = 0, v = 0;
|
|
5093
5104
|
do {
|
|
5094
5105
|
var f = tr(e, a), m = f[0], p = f[1], b = f[2], g = p - b - c * m;
|
|
5095
5106
|
(m || g) && er(e, a) && (l += g, v += m), a = a.parentNode;
|
|
@@ -5105,16 +5116,16 @@ var He = sn ? { passive: !1 } : !1, La = function(e) {
|
|
|
5105
5116
|
return [e.deltaX, e.deltaY];
|
|
5106
5117
|
}, eo = function(e) {
|
|
5107
5118
|
return e && "current" in e ? e.current : e;
|
|
5108
|
-
},
|
|
5119
|
+
}, Va = function(e, t) {
|
|
5109
5120
|
return e[0] === t[0] && e[1] === t[1];
|
|
5110
|
-
},
|
|
5121
|
+
}, ja = function(e) {
|
|
5111
5122
|
return `
|
|
5112
5123
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
5113
5124
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
5114
5125
|
`);
|
|
5115
|
-
},
|
|
5116
|
-
function
|
|
5117
|
-
var t = S.useRef([]), n = S.useRef([0, 0]), o = S.useRef(), r = S.useState(
|
|
5126
|
+
}, Ya = 0, Ue = [];
|
|
5127
|
+
function Xa(e) {
|
|
5128
|
+
var t = S.useRef([]), n = S.useRef([0, 0]), o = S.useRef(), r = S.useState(Ya++)[0], c = S.useState(function() {
|
|
5118
5129
|
return Qo();
|
|
5119
5130
|
})[0], i = S.useRef(e);
|
|
5120
5131
|
S.useEffect(function() {
|
|
@@ -5122,7 +5133,7 @@ function Ya(e) {
|
|
|
5122
5133
|
}, [e]), S.useEffect(function() {
|
|
5123
5134
|
if (e.inert) {
|
|
5124
5135
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
5125
|
-
var p =
|
|
5136
|
+
var p = ha([e.lockRef.current], (e.shards || []).map(eo), !0).filter(Boolean);
|
|
5126
5137
|
return p.forEach(function(b) {
|
|
5127
5138
|
return b.classList.add("allow-interactivity-".concat(r));
|
|
5128
5139
|
}), function() {
|
|
@@ -5146,12 +5157,12 @@ function Ya(e) {
|
|
|
5146
5157
|
if (!o.current && "changedTouches" in p && (x || w) && (o.current = y), !y)
|
|
5147
5158
|
return !0;
|
|
5148
5159
|
var D = o.current || y;
|
|
5149
|
-
return
|
|
5160
|
+
return Ka(D, b, p, D === "h" ? x : w, !0);
|
|
5150
5161
|
}, []), s = S.useCallback(function(p) {
|
|
5151
5162
|
var b = p;
|
|
5152
|
-
if (!(!
|
|
5163
|
+
if (!(!Ue.length || Ue[Ue.length - 1] !== c)) {
|
|
5153
5164
|
var g = "deltaY" in b ? Jn(b) : $t(b), h = t.current.filter(function(y) {
|
|
5154
|
-
return y.name === b.type && y.target === b.target &&
|
|
5165
|
+
return y.name === b.type && y.target === b.target && Va(y.delta, g);
|
|
5155
5166
|
})[0];
|
|
5156
5167
|
if (h && h.should) {
|
|
5157
5168
|
b.cancelable && b.preventDefault();
|
|
@@ -5179,33 +5190,33 @@ function Ya(e) {
|
|
|
5179
5190
|
d(p.type, $t(p), p.target, a(p, e.lockRef.current));
|
|
5180
5191
|
}, []);
|
|
5181
5192
|
S.useEffect(function() {
|
|
5182
|
-
return
|
|
5193
|
+
return Ue.push(c), e.setCallbacks({
|
|
5183
5194
|
onScrollCapture: l,
|
|
5184
5195
|
onWheelCapture: l,
|
|
5185
5196
|
onTouchMoveCapture: v
|
|
5186
|
-
}), document.addEventListener("wheel", s,
|
|
5187
|
-
|
|
5197
|
+
}), document.addEventListener("wheel", s, ze), document.addEventListener("touchmove", s, ze), document.addEventListener("touchstart", u, ze), function() {
|
|
5198
|
+
Ue = Ue.filter(function(p) {
|
|
5188
5199
|
return p !== c;
|
|
5189
|
-
}), document.removeEventListener("wheel", s,
|
|
5200
|
+
}), document.removeEventListener("wheel", s, ze), document.removeEventListener("touchmove", s, ze), document.removeEventListener("touchstart", u, ze);
|
|
5190
5201
|
};
|
|
5191
5202
|
}, []);
|
|
5192
5203
|
var f = e.removeScrollBar, m = e.inert;
|
|
5193
5204
|
return S.createElement(
|
|
5194
5205
|
S.Fragment,
|
|
5195
5206
|
null,
|
|
5196
|
-
m ? S.createElement(c, { styles:
|
|
5197
|
-
f ? S.createElement(
|
|
5207
|
+
m ? S.createElement(c, { styles: ja(r) }) : null,
|
|
5208
|
+
f ? S.createElement(La, { gapMode: "margin" }) : null
|
|
5198
5209
|
);
|
|
5199
5210
|
}
|
|
5200
|
-
const
|
|
5211
|
+
const qa = Ea(Zo, Xa);
|
|
5201
5212
|
var nr = S.forwardRef(function(e, t) {
|
|
5202
|
-
return S.createElement(Gt, we({}, e, { ref: t, sideCar:
|
|
5213
|
+
return S.createElement(Gt, we({}, e, { ref: t, sideCar: qa }));
|
|
5203
5214
|
});
|
|
5204
5215
|
nr.classNames = Gt.classNames;
|
|
5205
5216
|
const or = nr, ln = [
|
|
5206
5217
|
"Enter",
|
|
5207
5218
|
" "
|
|
5208
|
-
],
|
|
5219
|
+
], Za = [
|
|
5209
5220
|
"ArrowDown",
|
|
5210
5221
|
"PageUp",
|
|
5211
5222
|
"Home"
|
|
@@ -5213,10 +5224,10 @@ const or = nr, ln = [
|
|
|
5213
5224
|
"ArrowUp",
|
|
5214
5225
|
"PageDown",
|
|
5215
5226
|
"End"
|
|
5216
|
-
],
|
|
5217
|
-
...
|
|
5227
|
+
], Qa = [
|
|
5228
|
+
...Za,
|
|
5218
5229
|
...rr
|
|
5219
|
-
],
|
|
5230
|
+
], Ja = {
|
|
5220
5231
|
ltr: [
|
|
5221
5232
|
...ln,
|
|
5222
5233
|
"ArrowRight"
|
|
@@ -5225,18 +5236,18 @@ const or = nr, ln = [
|
|
|
5225
5236
|
...ln,
|
|
5226
5237
|
"ArrowLeft"
|
|
5227
5238
|
]
|
|
5228
|
-
},
|
|
5239
|
+
}, es = {
|
|
5229
5240
|
ltr: [
|
|
5230
5241
|
"ArrowLeft"
|
|
5231
5242
|
],
|
|
5232
5243
|
rtl: [
|
|
5233
5244
|
"ArrowRight"
|
|
5234
5245
|
]
|
|
5235
|
-
}, Wt = "Menu", [at,
|
|
5236
|
-
|
|
5246
|
+
}, Wt = "Menu", [at, ts, ns] = vn(Wt), [Ge, cr] = Ne(Wt, [
|
|
5247
|
+
ns,
|
|
5237
5248
|
Lt,
|
|
5238
5249
|
Bt
|
|
5239
|
-
]), Ht = Lt(), ir = Bt(), [ar, De] =
|
|
5250
|
+
]), Ht = Lt(), ir = Bt(), [ar, De] = Ge(Wt), [os, ut] = Ge(Wt), rs = (e) => {
|
|
5240
5251
|
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: c, modal: i = !0 } = e, a = Ht(t), [s, d] = H(null), u = L(!1), l = ve(c), v = Dt(r);
|
|
5241
5252
|
return U(() => {
|
|
5242
5253
|
const f = () => {
|
|
@@ -5265,7 +5276,7 @@ const or = nr, ln = [
|
|
|
5265
5276
|
onOpenChange: l,
|
|
5266
5277
|
content: s,
|
|
5267
5278
|
onContentChange: d
|
|
5268
|
-
}, /* @__PURE__ */ $(
|
|
5279
|
+
}, /* @__PURE__ */ $(os, {
|
|
5269
5280
|
scope: t,
|
|
5270
5281
|
onClose: Z(
|
|
5271
5282
|
() => l(!1),
|
|
@@ -5282,11 +5293,11 @@ const or = nr, ln = [
|
|
|
5282
5293
|
return /* @__PURE__ */ $(Go, C({}, r, o, {
|
|
5283
5294
|
ref: t
|
|
5284
5295
|
}));
|
|
5285
|
-
}), lr = "MenuPortal", [
|
|
5296
|
+
}), lr = "MenuPortal", [cs, dr] = Ge(lr, {
|
|
5286
5297
|
forceMount: void 0
|
|
5287
|
-
}),
|
|
5298
|
+
}), is = (e) => {
|
|
5288
5299
|
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, c = De(lr, t);
|
|
5289
|
-
return /* @__PURE__ */ $(
|
|
5300
|
+
return /* @__PURE__ */ $(cs, {
|
|
5290
5301
|
scope: t,
|
|
5291
5302
|
forceMount: n
|
|
5292
5303
|
}, /* @__PURE__ */ $(Je, {
|
|
@@ -5295,21 +5306,21 @@ const or = nr, ln = [
|
|
|
5295
5306
|
asChild: !0,
|
|
5296
5307
|
container: r
|
|
5297
5308
|
}, o)));
|
|
5298
|
-
},
|
|
5299
|
-
const n = dr(
|
|
5309
|
+
}, $e = "MenuContent", [as, Sn] = Ge($e), ss = /* @__PURE__ */ _((e, t) => {
|
|
5310
|
+
const n = dr($e, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = De($e, e.__scopeMenu), i = ut($e, e.__scopeMenu);
|
|
5300
5311
|
return /* @__PURE__ */ $(at.Provider, {
|
|
5301
5312
|
scope: e.__scopeMenu
|
|
5302
5313
|
}, /* @__PURE__ */ $(Je, {
|
|
5303
5314
|
present: o || c.open
|
|
5304
5315
|
}, /* @__PURE__ */ $(at.Slot, {
|
|
5305
5316
|
scope: e.__scopeMenu
|
|
5306
|
-
}, i.modal ? /* @__PURE__ */ $(
|
|
5317
|
+
}, i.modal ? /* @__PURE__ */ $(ls, C({}, r, {
|
|
5307
5318
|
ref: t
|
|
5308
|
-
})) : /* @__PURE__ */ $(
|
|
5319
|
+
})) : /* @__PURE__ */ $(ds, C({}, r, {
|
|
5309
5320
|
ref: t
|
|
5310
5321
|
})))));
|
|
5311
|
-
}),
|
|
5312
|
-
const n = De(
|
|
5322
|
+
}), ls = /* @__PURE__ */ _((e, t) => {
|
|
5323
|
+
const n = De($e, e.__scopeMenu), o = L(null), r = ce(t, o);
|
|
5313
5324
|
return U(() => {
|
|
5314
5325
|
const c = o.current;
|
|
5315
5326
|
if (c)
|
|
@@ -5328,8 +5339,8 @@ const or = nr, ln = [
|
|
|
5328
5339
|
),
|
|
5329
5340
|
onDismiss: () => n.onOpenChange(!1)
|
|
5330
5341
|
}));
|
|
5331
|
-
}),
|
|
5332
|
-
const n = De(
|
|
5342
|
+
}), ds = /* @__PURE__ */ _((e, t) => {
|
|
5343
|
+
const n = De($e, e.__scopeMenu);
|
|
5333
5344
|
return /* @__PURE__ */ $(Pn, C({}, e, {
|
|
5334
5345
|
ref: t,
|
|
5335
5346
|
trapFocus: !1,
|
|
@@ -5338,8 +5349,8 @@ const or = nr, ln = [
|
|
|
5338
5349
|
onDismiss: () => n.onOpenChange(!1)
|
|
5339
5350
|
}));
|
|
5340
5351
|
}), Pn = /* @__PURE__ */ _((e, t) => {
|
|
5341
|
-
const { __scopeMenu: n, loop: o = !1, trapFocus: r, onOpenAutoFocus: c, onCloseAutoFocus: i, disableOutsidePointerEvents: a, onEntryFocus: s, onEscapeKeyDown: d, onPointerDownOutside: u, onFocusOutside: l, onInteractOutside: v, onDismiss: f, disableOutsideScroll: m, ...p } = e, b = De(
|
|
5342
|
-
as:
|
|
5352
|
+
const { __scopeMenu: n, loop: o = !1, trapFocus: r, onOpenAutoFocus: c, onCloseAutoFocus: i, disableOutsidePointerEvents: a, onEntryFocus: s, onEscapeKeyDown: d, onPointerDownOutside: u, onFocusOutside: l, onInteractOutside: v, onDismiss: f, disableOutsideScroll: m, ...p } = e, b = De($e, n), g = ut($e, n), h = Ht(n), x = ir(n), w = ts(n), [y, M] = H(null), P = L(null), E = ce(t, P, b.onContentChange), D = L(0), z = L(""), k = L(0), T = L(null), G = L("right"), B = L(0), F = m ? or : It, I = m ? {
|
|
5353
|
+
as: Fe,
|
|
5343
5354
|
allowPinchZoom: !0
|
|
5344
5355
|
} : void 0, re = (R) => {
|
|
5345
5356
|
var j, oe;
|
|
@@ -5349,7 +5360,7 @@ const or = nr, ln = [
|
|
|
5349
5360
|
(te) => te.ref.current === ae
|
|
5350
5361
|
)) === null || j === void 0 ? void 0 : j.textValue, ue = ee.map(
|
|
5351
5362
|
(te) => te.textValue
|
|
5352
|
-
), O =
|
|
5363
|
+
), O = Rs(ue, ie, de), V = (oe = ee.find(
|
|
5353
5364
|
(te) => te.textValue === O
|
|
5354
5365
|
)) === null || oe === void 0 ? void 0 : oe.ref.current;
|
|
5355
5366
|
(function te(Y) {
|
|
@@ -5364,9 +5375,9 @@ const or = nr, ln = [
|
|
|
5364
5375
|
U(() => () => window.clearTimeout(D.current), []), yo();
|
|
5365
5376
|
const J = Z((R) => {
|
|
5366
5377
|
var j, oe;
|
|
5367
|
-
return G.current === ((j = T.current) === null || j === void 0 ? void 0 : j.side) &&
|
|
5378
|
+
return G.current === ((j = T.current) === null || j === void 0 ? void 0 : j.side) && Os(R, (oe = T.current) === null || oe === void 0 ? void 0 : oe.area);
|
|
5368
5379
|
}, []);
|
|
5369
|
-
return /* @__PURE__ */ $(
|
|
5380
|
+
return /* @__PURE__ */ $(as, {
|
|
5370
5381
|
scope: n,
|
|
5371
5382
|
searchRef: z,
|
|
5372
5383
|
onItemEnter: Z((R) => {
|
|
@@ -5432,7 +5443,7 @@ const or = nr, ln = [
|
|
|
5432
5443
|
const oe = R.target.closest("[data-radix-menu-content]") === R.currentTarget, ie = R.ctrlKey || R.altKey || R.metaKey, ee = R.key.length === 1;
|
|
5433
5444
|
oe && (R.key === "Tab" && R.preventDefault(), !ie && ee && re(R.key));
|
|
5434
5445
|
const ae = P.current;
|
|
5435
|
-
if (R.target !== ae || !
|
|
5446
|
+
if (R.target !== ae || !Qa.includes(R.key))
|
|
5436
5447
|
return;
|
|
5437
5448
|
R.preventDefault();
|
|
5438
5449
|
const ue = w().filter(
|
|
@@ -5440,7 +5451,7 @@ const or = nr, ln = [
|
|
|
5440
5451
|
).map(
|
|
5441
5452
|
(O) => O.ref.current
|
|
5442
5453
|
);
|
|
5443
|
-
rr.includes(R.key) && ue.reverse(),
|
|
5454
|
+
rr.includes(R.key) && ue.reverse(), _s(ue);
|
|
5444
5455
|
}),
|
|
5445
5456
|
onBlur: A(e.onBlur, (R) => {
|
|
5446
5457
|
R.currentTarget.contains(R.target) || (window.clearTimeout(D.current), z.current = "");
|
|
@@ -5460,7 +5471,7 @@ const or = nr, ln = [
|
|
|
5460
5471
|
}, o, {
|
|
5461
5472
|
ref: t
|
|
5462
5473
|
}));
|
|
5463
|
-
}),
|
|
5474
|
+
}), us = /* @__PURE__ */ _((e, t) => {
|
|
5464
5475
|
const { __scopeMenu: n, ...o } = e;
|
|
5465
5476
|
return /* @__PURE__ */ $(Q.div, C({}, o, {
|
|
5466
5477
|
ref: t
|
|
@@ -5539,7 +5550,7 @@ const or = nr, ln = [
|
|
|
5539
5550
|
() => l(!1)
|
|
5540
5551
|
)
|
|
5541
5552
|
}))));
|
|
5542
|
-
}),
|
|
5553
|
+
}), fs = /* @__PURE__ */ _((e, t) => {
|
|
5543
5554
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
5544
5555
|
return /* @__PURE__ */ $(mr, {
|
|
5545
5556
|
scope: e.__scopeMenu,
|
|
@@ -5558,21 +5569,21 @@ const or = nr, ln = [
|
|
|
5558
5569
|
}
|
|
5559
5570
|
)
|
|
5560
5571
|
})));
|
|
5561
|
-
}),
|
|
5572
|
+
}), ps = "MenuRadioGroup", [ms, vs] = Ge(ps, {
|
|
5562
5573
|
value: void 0,
|
|
5563
5574
|
onValueChange: () => {
|
|
5564
5575
|
}
|
|
5565
|
-
}),
|
|
5576
|
+
}), gs = /* @__PURE__ */ _((e, t) => {
|
|
5566
5577
|
const { value: n, onValueChange: o, ...r } = e, c = ve(o);
|
|
5567
|
-
return /* @__PURE__ */ $(
|
|
5578
|
+
return /* @__PURE__ */ $(ms, {
|
|
5568
5579
|
scope: e.__scopeMenu,
|
|
5569
5580
|
value: n,
|
|
5570
5581
|
onValueChange: c
|
|
5571
5582
|
}, /* @__PURE__ */ $(ur, C({}, r, {
|
|
5572
5583
|
ref: t
|
|
5573
5584
|
})));
|
|
5574
|
-
}),
|
|
5575
|
-
const { value: n, ...o } = e, r =
|
|
5585
|
+
}), hs = "MenuRadioItem", bs = /* @__PURE__ */ _((e, t) => {
|
|
5586
|
+
const { value: n, ...o } = e, r = vs(hs, e.__scopeMenu), c = n === r.value;
|
|
5576
5587
|
return /* @__PURE__ */ $(mr, {
|
|
5577
5588
|
scope: e.__scopeMenu,
|
|
5578
5589
|
checked: c
|
|
@@ -5589,17 +5600,17 @@ const or = nr, ln = [
|
|
|
5589
5600
|
checkForDefaultPrevented: !1
|
|
5590
5601
|
})
|
|
5591
5602
|
})));
|
|
5592
|
-
}), pr = "MenuItemIndicator", [mr,
|
|
5603
|
+
}), pr = "MenuItemIndicator", [mr, $s] = Ge(pr, {
|
|
5593
5604
|
checked: !1
|
|
5594
|
-
}),
|
|
5595
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, c =
|
|
5605
|
+
}), xs = /* @__PURE__ */ _((e, t) => {
|
|
5606
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, c = $s(pr, n);
|
|
5596
5607
|
return /* @__PURE__ */ $(Je, {
|
|
5597
5608
|
present: o || At(c.checked) || c.checked === !0
|
|
5598
5609
|
}, /* @__PURE__ */ $(Q.span, C({}, r, {
|
|
5599
5610
|
ref: t,
|
|
5600
5611
|
"data-state": _n(c.checked)
|
|
5601
5612
|
})));
|
|
5602
|
-
}),
|
|
5613
|
+
}), ws = /* @__PURE__ */ _((e, t) => {
|
|
5603
5614
|
const { __scopeMenu: n, ...o } = e;
|
|
5604
5615
|
return /* @__PURE__ */ $(Q.div, C({
|
|
5605
5616
|
role: "separator",
|
|
@@ -5607,7 +5618,7 @@ const or = nr, ln = [
|
|
|
5607
5618
|
}, o, {
|
|
5608
5619
|
ref: t
|
|
5609
5620
|
}));
|
|
5610
|
-
}), vr = "MenuSub", [
|
|
5621
|
+
}), vr = "MenuSub", [ys, gr] = Ge(vr), Cs = (e) => {
|
|
5611
5622
|
const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, c = De(vr, t), i = Ht(t), [a, s] = H(null), [d, u] = H(null), l = ve(r);
|
|
5612
5623
|
return U(() => (c.open === !1 && l(!1), () => l(!1)), [
|
|
5613
5624
|
c.open,
|
|
@@ -5618,14 +5629,14 @@ const or = nr, ln = [
|
|
|
5618
5629
|
onOpenChange: l,
|
|
5619
5630
|
content: d,
|
|
5620
5631
|
onContentChange: u
|
|
5621
|
-
}, /* @__PURE__ */ $(
|
|
5632
|
+
}, /* @__PURE__ */ $(ys, {
|
|
5622
5633
|
scope: t,
|
|
5623
5634
|
contentId: Te(),
|
|
5624
5635
|
triggerId: Te(),
|
|
5625
5636
|
trigger: a,
|
|
5626
5637
|
onTriggerChange: s
|
|
5627
5638
|
}, n)));
|
|
5628
|
-
}, xt = "MenuSubTrigger",
|
|
5639
|
+
}, xt = "MenuSubTrigger", Ss = /* @__PURE__ */ _((e, t) => {
|
|
5629
5640
|
const n = De(xt, e.__scopeMenu), o = ut(xt, e.__scopeMenu), r = gr(xt, e.__scopeMenu), c = Sn(xt, e.__scopeMenu), i = L(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: s } = c, d = {
|
|
5630
5641
|
__scopeMenu: e.__scopeMenu
|
|
5631
5642
|
}, u = Z(() => {
|
|
@@ -5707,14 +5718,14 @@ const or = nr, ln = [
|
|
|
5707
5718
|
})),
|
|
5708
5719
|
onKeyDown: A(e.onKeyDown, (l) => {
|
|
5709
5720
|
const v = c.searchRef.current !== "";
|
|
5710
|
-
if (!(e.disabled || v && l.key === " ") &&
|
|
5721
|
+
if (!(e.disabled || v && l.key === " ") && Ja[o.dir].includes(l.key)) {
|
|
5711
5722
|
var f;
|
|
5712
5723
|
n.onOpenChange(!0), (f = n.content) === null || f === void 0 || f.focus(), l.preventDefault();
|
|
5713
5724
|
}
|
|
5714
5725
|
})
|
|
5715
5726
|
})));
|
|
5716
|
-
}),
|
|
5717
|
-
const n = dr(
|
|
5727
|
+
}), Ps = "MenuSubContent", Es = /* @__PURE__ */ _((e, t) => {
|
|
5728
|
+
const n = dr($e, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = De($e, e.__scopeMenu), i = ut($e, e.__scopeMenu), a = gr(Ps, e.__scopeMenu), s = L(null), d = ce(t, s);
|
|
5718
5729
|
return /* @__PURE__ */ $(at.Provider, {
|
|
5719
5730
|
scope: e.__scopeMenu
|
|
5720
5731
|
}, /* @__PURE__ */ $(Je, {
|
|
@@ -5743,7 +5754,7 @@ const or = nr, ln = [
|
|
|
5743
5754
|
i.onClose(), u.preventDefault();
|
|
5744
5755
|
}),
|
|
5745
5756
|
onKeyDown: A(e.onKeyDown, (u) => {
|
|
5746
|
-
const l = u.currentTarget.contains(u.target), v =
|
|
5757
|
+
const l = u.currentTarget.contains(u.target), v = es[i.dir].includes(u.key);
|
|
5747
5758
|
if (l && v) {
|
|
5748
5759
|
var f;
|
|
5749
5760
|
c.onOpenChange(!1), (f = a.trigger) === null || f === void 0 || f.focus(), u.preventDefault();
|
|
@@ -5760,22 +5771,22 @@ function At(e) {
|
|
|
5760
5771
|
function _n(e) {
|
|
5761
5772
|
return At(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
5762
5773
|
}
|
|
5763
|
-
function
|
|
5774
|
+
function _s(e) {
|
|
5764
5775
|
const t = document.activeElement;
|
|
5765
5776
|
for (const n of e)
|
|
5766
5777
|
if (n === t || (n.focus(), document.activeElement !== t))
|
|
5767
5778
|
return;
|
|
5768
5779
|
}
|
|
5769
|
-
function
|
|
5780
|
+
function Ms(e, t) {
|
|
5770
5781
|
return e.map(
|
|
5771
5782
|
(n, o) => e[(t + o) % e.length]
|
|
5772
5783
|
);
|
|
5773
5784
|
}
|
|
5774
|
-
function
|
|
5785
|
+
function Rs(e, t, n) {
|
|
5775
5786
|
const r = t.length > 1 && Array.from(t).every(
|
|
5776
5787
|
(d) => d === t[0]
|
|
5777
5788
|
) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
5778
|
-
let i =
|
|
5789
|
+
let i = Ms(e, Math.max(c, 0));
|
|
5779
5790
|
r.length === 1 && (i = i.filter(
|
|
5780
5791
|
(d) => d !== n
|
|
5781
5792
|
));
|
|
@@ -5784,7 +5795,7 @@ function Ms(e, t, n) {
|
|
|
5784
5795
|
);
|
|
5785
5796
|
return s !== n ? s : void 0;
|
|
5786
5797
|
}
|
|
5787
|
-
function
|
|
5798
|
+
function Ts(e, t) {
|
|
5788
5799
|
const { x: n, y: o } = e;
|
|
5789
5800
|
let r = !1;
|
|
5790
5801
|
for (let c = 0, i = t.length - 1; c < t.length; i = c++) {
|
|
@@ -5793,27 +5804,27 @@ function Rs(e, t) {
|
|
|
5793
5804
|
}
|
|
5794
5805
|
return r;
|
|
5795
5806
|
}
|
|
5796
|
-
function
|
|
5807
|
+
function Os(e, t) {
|
|
5797
5808
|
if (!t)
|
|
5798
5809
|
return !1;
|
|
5799
5810
|
const n = {
|
|
5800
5811
|
x: e.clientX,
|
|
5801
5812
|
y: e.clientY
|
|
5802
5813
|
};
|
|
5803
|
-
return
|
|
5814
|
+
return Ts(n, t);
|
|
5804
5815
|
}
|
|
5805
5816
|
function st(e) {
|
|
5806
5817
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
5807
5818
|
}
|
|
5808
|
-
const
|
|
5819
|
+
const As = rs, Is = sr, Ns = is, Ds = ss, ks = ur, Fs = us, Ls = En, Bs = fs, Gs = gs, Ws = bs, Hs = xs, zs = ws, Us = Cs, Ks = Ss, Vs = Es, br = "DropdownMenu", [js, Zd] = Ne(br, [
|
|
5809
5820
|
cr
|
|
5810
|
-
]), le = cr(), [
|
|
5811
|
-
const { __scopeDropdownMenu: t, children: n, dir: o, open: r, defaultOpen: c, onOpenChange: i, modal: a = !0 } = e, s = le(t), d = L(null), [u = !1, l] =
|
|
5821
|
+
]), le = cr(), [Ys, $r] = js(br), Xs = (e) => {
|
|
5822
|
+
const { __scopeDropdownMenu: t, children: n, dir: o, open: r, defaultOpen: c, onOpenChange: i, modal: a = !0 } = e, s = le(t), d = L(null), [u = !1, l] = Ye({
|
|
5812
5823
|
prop: r,
|
|
5813
5824
|
defaultProp: c,
|
|
5814
5825
|
onChange: i
|
|
5815
5826
|
});
|
|
5816
|
-
return /* @__PURE__ */ $(
|
|
5827
|
+
return /* @__PURE__ */ $(Ys, {
|
|
5817
5828
|
scope: t,
|
|
5818
5829
|
triggerId: Te(),
|
|
5819
5830
|
triggerRef: d,
|
|
@@ -5829,15 +5840,15 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5829
5840
|
]
|
|
5830
5841
|
),
|
|
5831
5842
|
modal: a
|
|
5832
|
-
}, /* @__PURE__ */ $(
|
|
5843
|
+
}, /* @__PURE__ */ $(As, C({}, s, {
|
|
5833
5844
|
open: u,
|
|
5834
5845
|
onOpenChange: l,
|
|
5835
5846
|
dir: o,
|
|
5836
5847
|
modal: a
|
|
5837
5848
|
}), n));
|
|
5838
|
-
},
|
|
5839
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = $r(
|
|
5840
|
-
return /* @__PURE__ */ $(
|
|
5849
|
+
}, qs = "DropdownMenuTrigger", Zs = /* @__PURE__ */ _((e, t) => {
|
|
5850
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = $r(qs, n), i = le(n);
|
|
5851
|
+
return /* @__PURE__ */ $(Is, C({
|
|
5841
5852
|
asChild: !0
|
|
5842
5853
|
}, i), /* @__PURE__ */ $(Q.button, C({
|
|
5843
5854
|
type: "button",
|
|
@@ -5864,12 +5875,12 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5864
5875
|
].includes(a.key) && a.preventDefault());
|
|
5865
5876
|
})
|
|
5866
5877
|
})));
|
|
5867
|
-
}),
|
|
5878
|
+
}), Qs = (e) => {
|
|
5868
5879
|
const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
|
|
5869
|
-
return /* @__PURE__ */ $(
|
|
5870
|
-
},
|
|
5871
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = $r(
|
|
5872
|
-
return /* @__PURE__ */ $(
|
|
5880
|
+
return /* @__PURE__ */ $(Ns, C({}, o, n));
|
|
5881
|
+
}, Js = "DropdownMenuContent", el = /* @__PURE__ */ _((e, t) => {
|
|
5882
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = $r(Js, n), c = le(n), i = L(!1);
|
|
5883
|
+
return /* @__PURE__ */ $(Ds, C({
|
|
5873
5884
|
id: r.contentId,
|
|
5874
5885
|
"aria-labelledby": r.triggerId
|
|
5875
5886
|
}, c, o, {
|
|
@@ -5891,11 +5902,6 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5891
5902
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
5892
5903
|
}
|
|
5893
5904
|
}));
|
|
5894
|
-
}), el = /* @__PURE__ */ _((e, t) => {
|
|
5895
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5896
|
-
return /* @__PURE__ */ $(Ds, C({}, r, o, {
|
|
5897
|
-
ref: t
|
|
5898
|
-
}));
|
|
5899
5905
|
}), tl = /* @__PURE__ */ _((e, t) => {
|
|
5900
5906
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5901
5907
|
return /* @__PURE__ */ $(ks, C({}, r, o, {
|
|
@@ -5931,24 +5937,29 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5931
5937
|
return /* @__PURE__ */ $(Hs, C({}, r, o, {
|
|
5932
5938
|
ref: t
|
|
5933
5939
|
}));
|
|
5934
|
-
}), sl = (e) => {
|
|
5935
|
-
const { __scopeDropdownMenu:
|
|
5940
|
+
}), sl = /* @__PURE__ */ _((e, t) => {
|
|
5941
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5942
|
+
return /* @__PURE__ */ $(zs, C({}, r, o, {
|
|
5943
|
+
ref: t
|
|
5944
|
+
}));
|
|
5945
|
+
}), ll = (e) => {
|
|
5946
|
+
const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: c } = e, i = le(t), [a = !1, s] = Ye({
|
|
5936
5947
|
prop: o,
|
|
5937
5948
|
defaultProp: c,
|
|
5938
5949
|
onChange: r
|
|
5939
5950
|
});
|
|
5940
|
-
return /* @__PURE__ */ $(
|
|
5951
|
+
return /* @__PURE__ */ $(Us, C({}, i, {
|
|
5941
5952
|
open: a,
|
|
5942
5953
|
onOpenChange: s
|
|
5943
5954
|
}), n);
|
|
5944
|
-
},
|
|
5955
|
+
}, dl = /* @__PURE__ */ _((e, t) => {
|
|
5945
5956
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5946
|
-
return /* @__PURE__ */ $(
|
|
5957
|
+
return /* @__PURE__ */ $(Ks, C({}, r, o, {
|
|
5947
5958
|
ref: t
|
|
5948
5959
|
}));
|
|
5949
|
-
}),
|
|
5960
|
+
}), ul = /* @__PURE__ */ _((e, t) => {
|
|
5950
5961
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5951
|
-
return /* @__PURE__ */ $(
|
|
5962
|
+
return /* @__PURE__ */ $(Vs, C({}, r, o, {
|
|
5952
5963
|
ref: t,
|
|
5953
5964
|
style: {
|
|
5954
5965
|
...e.style,
|
|
@@ -5959,8 +5970,8 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5959
5970
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
5960
5971
|
}
|
|
5961
5972
|
}));
|
|
5962
|
-
}),
|
|
5963
|
-
var
|
|
5973
|
+
}), fl = Xs, pl = Zs, xr = Qs, wr = el, ml = tl, yr = nl, Cr = ol, Sr = rl, vl = cl, Pr = il, Er = al, _r = sl, gl = ll, Mr = dl, Rr = ul;
|
|
5974
|
+
var hl = {
|
|
5964
5975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5965
5976
|
width: 24,
|
|
5966
5977
|
height: 24,
|
|
@@ -5971,18 +5982,18 @@ var gl = {
|
|
|
5971
5982
|
strokeLinecap: "round",
|
|
5972
5983
|
strokeLinejoin: "round"
|
|
5973
5984
|
};
|
|
5974
|
-
const
|
|
5985
|
+
const bl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (e, t) => {
|
|
5975
5986
|
const n = _(
|
|
5976
5987
|
({ color: o = "currentColor", size: r = 24, strokeWidth: c = 2, absoluteStrokeWidth: i, children: a, ...s }, d) => $(
|
|
5977
5988
|
"svg",
|
|
5978
5989
|
{
|
|
5979
5990
|
ref: d,
|
|
5980
|
-
...
|
|
5991
|
+
...hl,
|
|
5981
5992
|
width: r,
|
|
5982
5993
|
height: r,
|
|
5983
5994
|
stroke: o,
|
|
5984
5995
|
strokeWidth: i ? Number(c) * 24 / Number(r) : c,
|
|
5985
|
-
className: `lucide lucide-${
|
|
5996
|
+
className: `lucide lucide-${bl(e)}`,
|
|
5986
5997
|
...s
|
|
5987
5998
|
},
|
|
5988
5999
|
[
|
|
@@ -5994,13 +6005,13 @@ const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (
|
|
|
5994
6005
|
return n.displayName = `${e}`, n;
|
|
5995
6006
|
}, Tr = zt("Check", [
|
|
5996
6007
|
["polyline", { points: "20 6 9 17 4 12", key: "10jjfj" }]
|
|
5997
|
-
]),
|
|
6008
|
+
]), $l = zt("ChevronDown", [
|
|
5998
6009
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
5999
|
-
]),
|
|
6010
|
+
]), xl = zt("ChevronRight", [
|
|
6000
6011
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
6001
6012
|
]), Or = zt("Circle", [
|
|
6002
6013
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
6003
|
-
]), Qd =
|
|
6014
|
+
]), Qd = fl, Jd = pl, eu = ml, tu = xr, nu = gl, ou = vl, wl = S.forwardRef(({ className: e = "", inset: t, children: n, ...o }, r) => /* @__PURE__ */ lt(
|
|
6004
6015
|
Mr,
|
|
6005
6016
|
{
|
|
6006
6017
|
ref: r,
|
|
@@ -6012,12 +6023,12 @@ const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (
|
|
|
6012
6023
|
...o,
|
|
6013
6024
|
children: [
|
|
6014
6025
|
n,
|
|
6015
|
-
/* @__PURE__ */ N(
|
|
6026
|
+
/* @__PURE__ */ N(xl, { className: "ml-auto h-4 w-4" })
|
|
6016
6027
|
]
|
|
6017
6028
|
}
|
|
6018
6029
|
));
|
|
6019
|
-
|
|
6020
|
-
const
|
|
6030
|
+
wl.displayName = Mr.displayName;
|
|
6031
|
+
const yl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
6021
6032
|
Rr,
|
|
6022
6033
|
{
|
|
6023
6034
|
ref: n,
|
|
@@ -6028,8 +6039,8 @@ const wl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
|
6028
6039
|
...t
|
|
6029
6040
|
}
|
|
6030
6041
|
));
|
|
6031
|
-
|
|
6032
|
-
const
|
|
6042
|
+
yl.displayName = Rr.displayName;
|
|
6043
|
+
const Cl = S.forwardRef(({ className: e = "", sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ N(xr, { children: /* @__PURE__ */ N(
|
|
6033
6044
|
wr,
|
|
6034
6045
|
{
|
|
6035
6046
|
ref: o,
|
|
@@ -6041,8 +6052,8 @@ const yl = S.forwardRef(({ className: e = "", sideOffset: t = 4, ...n }, o) => /
|
|
|
6041
6052
|
...n
|
|
6042
6053
|
}
|
|
6043
6054
|
) }));
|
|
6044
|
-
|
|
6045
|
-
const
|
|
6055
|
+
Cl.displayName = wr.displayName;
|
|
6056
|
+
const Sl = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE__ */ N(
|
|
6046
6057
|
Cr,
|
|
6047
6058
|
{
|
|
6048
6059
|
ref: o,
|
|
@@ -6054,8 +6065,8 @@ const Cl = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE
|
|
|
6054
6065
|
...n
|
|
6055
6066
|
}
|
|
6056
6067
|
));
|
|
6057
|
-
|
|
6058
|
-
const
|
|
6068
|
+
Sl.displayName = Cr.displayName;
|
|
6069
|
+
const Pl = S.forwardRef(({ className: e = "", children: t, checked: n, ...o }, r) => /* @__PURE__ */ lt(
|
|
6059
6070
|
Sr,
|
|
6060
6071
|
{
|
|
6061
6072
|
ref: r,
|
|
@@ -6071,8 +6082,8 @@ const Sl = S.forwardRef(({ className: e = "", children: t, checked: n, ...o }, r
|
|
|
6071
6082
|
]
|
|
6072
6083
|
}
|
|
6073
6084
|
));
|
|
6074
|
-
|
|
6075
|
-
const
|
|
6085
|
+
Pl.displayName = Sr.displayName;
|
|
6086
|
+
const El = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
|
|
6076
6087
|
Pr,
|
|
6077
6088
|
{
|
|
6078
6089
|
ref: o,
|
|
@@ -6087,8 +6098,8 @@ const Pl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__P
|
|
|
6087
6098
|
]
|
|
6088
6099
|
}
|
|
6089
6100
|
));
|
|
6090
|
-
|
|
6091
|
-
const
|
|
6101
|
+
El.displayName = Pr.displayName;
|
|
6102
|
+
const _l = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE__ */ N(
|
|
6092
6103
|
yr,
|
|
6093
6104
|
{
|
|
6094
6105
|
ref: o,
|
|
@@ -6096,8 +6107,8 @@ const El = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE
|
|
|
6096
6107
|
...n
|
|
6097
6108
|
}
|
|
6098
6109
|
));
|
|
6099
|
-
|
|
6100
|
-
const
|
|
6110
|
+
_l.displayName = yr.displayName;
|
|
6111
|
+
const Ml = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
6101
6112
|
_r,
|
|
6102
6113
|
{
|
|
6103
6114
|
ref: n,
|
|
@@ -6105,30 +6116,30 @@ const _l = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
|
6105
6116
|
...t
|
|
6106
6117
|
}
|
|
6107
6118
|
));
|
|
6108
|
-
|
|
6109
|
-
const
|
|
6119
|
+
Ml.displayName = _r.displayName;
|
|
6120
|
+
const Rl = ({ className: e = "", ...t }) => /* @__PURE__ */ N(
|
|
6110
6121
|
"span",
|
|
6111
6122
|
{
|
|
6112
6123
|
className: K("ml-auto text-xs tracking-widest opacity-60", e),
|
|
6113
6124
|
...t
|
|
6114
6125
|
}
|
|
6115
6126
|
);
|
|
6116
|
-
|
|
6127
|
+
Rl.displayName = "DropdownMenuShortcut";
|
|
6117
6128
|
function Ar(e) {
|
|
6118
6129
|
const t = L({
|
|
6119
6130
|
value: e,
|
|
6120
6131
|
previous: e
|
|
6121
6132
|
});
|
|
6122
|
-
return
|
|
6133
|
+
return je(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [
|
|
6123
6134
|
e
|
|
6124
6135
|
]);
|
|
6125
6136
|
}
|
|
6126
|
-
const Ir = "Radio", [
|
|
6137
|
+
const Ir = "Radio", [Tl, Nr] = Ne(Ir), [Ol, Al] = Tl(Ir), Il = /* @__PURE__ */ _((e, t) => {
|
|
6127
6138
|
const { __scopeRadio: n, name: o, checked: r = !1, required: c, disabled: i, value: a = "on", onCheck: s, ...d } = e, [u, l] = H(null), v = ce(
|
|
6128
6139
|
t,
|
|
6129
6140
|
(p) => l(p)
|
|
6130
6141
|
), f = L(!1), m = u ? !!u.closest("form") : !0;
|
|
6131
|
-
return /* @__PURE__ */ $(
|
|
6142
|
+
return /* @__PURE__ */ $(Ol, {
|
|
6132
6143
|
scope: n,
|
|
6133
6144
|
checked: r,
|
|
6134
6145
|
disabled: i
|
|
@@ -6145,7 +6156,7 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
|
|
|
6145
6156
|
onClick: A(e.onClick, (p) => {
|
|
6146
6157
|
r || s == null || s(), m && (f.current = p.isPropagationStopped(), f.current || p.stopPropagation());
|
|
6147
6158
|
})
|
|
6148
|
-
})), m && /* @__PURE__ */ $(
|
|
6159
|
+
})), m && /* @__PURE__ */ $(kl, {
|
|
6149
6160
|
control: u,
|
|
6150
6161
|
bubbles: !f.current,
|
|
6151
6162
|
name: o,
|
|
@@ -6157,8 +6168,8 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
|
|
|
6157
6168
|
transform: "translateX(-100%)"
|
|
6158
6169
|
}
|
|
6159
6170
|
}));
|
|
6160
|
-
}),
|
|
6161
|
-
const { __scopeRadio: n, forceMount: o, ...r } = e, c =
|
|
6171
|
+
}), Nl = "RadioIndicator", Dl = /* @__PURE__ */ _((e, t) => {
|
|
6172
|
+
const { __scopeRadio: n, forceMount: o, ...r } = e, c = Al(Nl, n);
|
|
6162
6173
|
return /* @__PURE__ */ $(Je, {
|
|
6163
6174
|
present: o || c.checked
|
|
6164
6175
|
}, /* @__PURE__ */ $(Q.span, C({
|
|
@@ -6167,7 +6178,7 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
|
|
|
6167
6178
|
}, r, {
|
|
6168
6179
|
ref: t
|
|
6169
6180
|
})));
|
|
6170
|
-
}),
|
|
6181
|
+
}), kl = (e) => {
|
|
6171
6182
|
const { control: t, checked: n, bubbles: o = !0, ...r } = e, c = L(null), i = Ar(n), a = No(t);
|
|
6172
6183
|
return U(() => {
|
|
6173
6184
|
const s = c.current, d = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(d, "checked").set;
|
|
@@ -6201,21 +6212,21 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
|
|
|
6201
6212
|
function Dr(e) {
|
|
6202
6213
|
return e ? "checked" : "unchecked";
|
|
6203
6214
|
}
|
|
6204
|
-
const
|
|
6215
|
+
const Fl = [
|
|
6205
6216
|
"ArrowUp",
|
|
6206
6217
|
"ArrowDown",
|
|
6207
6218
|
"ArrowLeft",
|
|
6208
6219
|
"ArrowRight"
|
|
6209
|
-
], kr = "RadioGroup", [
|
|
6220
|
+
], kr = "RadioGroup", [Ll, ru] = Ne(kr, [
|
|
6210
6221
|
Bt,
|
|
6211
6222
|
Nr
|
|
6212
|
-
]), Fr = Bt(), Lr = Nr(), [
|
|
6213
|
-
const { __scopeRadioGroup: n, name: o, defaultValue: r, value: c, required: i = !1, disabled: a = !1, orientation: s, dir: d, loop: u = !0, onValueChange: l, ...v } = e, f = Fr(n), m = Dt(d), [p, b] =
|
|
6223
|
+
]), Fr = Bt(), Lr = Nr(), [Bl, Gl] = Ll(kr), Wl = /* @__PURE__ */ _((e, t) => {
|
|
6224
|
+
const { __scopeRadioGroup: n, name: o, defaultValue: r, value: c, required: i = !1, disabled: a = !1, orientation: s, dir: d, loop: u = !0, onValueChange: l, ...v } = e, f = Fr(n), m = Dt(d), [p, b] = Ye({
|
|
6214
6225
|
prop: c,
|
|
6215
6226
|
defaultProp: r,
|
|
6216
6227
|
onChange: l
|
|
6217
6228
|
});
|
|
6218
|
-
return /* @__PURE__ */ $(
|
|
6229
|
+
return /* @__PURE__ */ $(Bl, {
|
|
6219
6230
|
scope: n,
|
|
6220
6231
|
name: o,
|
|
6221
6232
|
required: i,
|
|
@@ -6237,11 +6248,11 @@ const kl = [
|
|
|
6237
6248
|
}, v, {
|
|
6238
6249
|
ref: t
|
|
6239
6250
|
}))));
|
|
6240
|
-
}),
|
|
6241
|
-
const { __scopeRadioGroup: n, disabled: o, ...r } = e, c =
|
|
6251
|
+
}), Hl = "RadioGroupItem", zl = /* @__PURE__ */ _((e, t) => {
|
|
6252
|
+
const { __scopeRadioGroup: n, disabled: o, ...r } = e, c = Gl(Hl, n), i = c.disabled || o, a = Fr(n), s = Lr(n), d = L(null), u = ce(t, d), l = c.value === r.value, v = L(!1);
|
|
6242
6253
|
return U(() => {
|
|
6243
6254
|
const f = (p) => {
|
|
6244
|
-
|
|
6255
|
+
Fl.includes(p.key) && (v.current = !0);
|
|
6245
6256
|
}, m = () => v.current = !1;
|
|
6246
6257
|
return document.addEventListener("keydown", f), document.addEventListener("keyup", m), () => {
|
|
6247
6258
|
document.removeEventListener("keydown", f), document.removeEventListener("keyup", m);
|
|
@@ -6251,7 +6262,7 @@ const kl = [
|
|
|
6251
6262
|
}, a, {
|
|
6252
6263
|
focusable: !i,
|
|
6253
6264
|
active: l
|
|
6254
|
-
}), /* @__PURE__ */ $(
|
|
6265
|
+
}), /* @__PURE__ */ $(Il, C({
|
|
6255
6266
|
disabled: i,
|
|
6256
6267
|
required: c.required,
|
|
6257
6268
|
checked: l
|
|
@@ -6267,12 +6278,12 @@ const kl = [
|
|
|
6267
6278
|
v.current && ((f = d.current) === null || f === void 0 || f.click());
|
|
6268
6279
|
})
|
|
6269
6280
|
})));
|
|
6270
|
-
}),
|
|
6281
|
+
}), Ul = /* @__PURE__ */ _((e, t) => {
|
|
6271
6282
|
const { __scopeRadioGroup: n, ...o } = e, r = Lr(n);
|
|
6272
|
-
return /* @__PURE__ */ $(
|
|
6283
|
+
return /* @__PURE__ */ $(Dl, C({}, r, o, {
|
|
6273
6284
|
ref: t
|
|
6274
6285
|
}));
|
|
6275
|
-
}), Br =
|
|
6286
|
+
}), Br = Wl, Gr = zl, Kl = Ul, Vl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
6276
6287
|
Br,
|
|
6277
6288
|
{
|
|
6278
6289
|
className: K("grid gap-2", e),
|
|
@@ -6280,8 +6291,8 @@ const kl = [
|
|
|
6280
6291
|
ref: n
|
|
6281
6292
|
}
|
|
6282
6293
|
));
|
|
6283
|
-
|
|
6284
|
-
const
|
|
6294
|
+
Vl.displayName = Br.displayName;
|
|
6295
|
+
const jl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ N(
|
|
6285
6296
|
Gr,
|
|
6286
6297
|
{
|
|
6287
6298
|
ref: o,
|
|
@@ -6290,14 +6301,14 @@ const Vl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__P
|
|
|
6290
6301
|
e
|
|
6291
6302
|
),
|
|
6292
6303
|
...n,
|
|
6293
|
-
children: /* @__PURE__ */ N(
|
|
6304
|
+
children: /* @__PURE__ */ N(Kl, { className: "flex items-center justify-center", children: /* @__PURE__ */ N(Or, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
6294
6305
|
}
|
|
6295
6306
|
));
|
|
6296
|
-
|
|
6307
|
+
jl.displayName = Gr.displayName;
|
|
6297
6308
|
function no(e, [t, n]) {
|
|
6298
6309
|
return Math.min(n, Math.max(t, e));
|
|
6299
6310
|
}
|
|
6300
|
-
const
|
|
6311
|
+
const Yl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
6301
6312
|
ref: t,
|
|
6302
6313
|
style: {
|
|
6303
6314
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -6313,30 +6324,30 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6313
6324
|
wordWrap: "normal",
|
|
6314
6325
|
...e.style
|
|
6315
6326
|
}
|
|
6316
|
-
}))),
|
|
6327
|
+
}))), Xl = [
|
|
6317
6328
|
" ",
|
|
6318
6329
|
"Enter",
|
|
6319
6330
|
"ArrowUp",
|
|
6320
6331
|
"ArrowDown"
|
|
6321
|
-
],
|
|
6332
|
+
], ql = [
|
|
6322
6333
|
" ",
|
|
6323
6334
|
"Enter"
|
|
6324
|
-
], Ut = "Select", [Kt, Mn,
|
|
6325
|
-
|
|
6335
|
+
], Ut = "Select", [Kt, Mn, Zl] = vn(Ut), [et, cu] = Ne(Ut, [
|
|
6336
|
+
Zl,
|
|
6326
6337
|
Lt
|
|
6327
|
-
]), Rn = Lt(), [
|
|
6328
|
-
const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: i, defaultValue: a, onValueChange: s, dir: d, name: u, autoComplete: l, disabled: v, required: f } = e, m = Rn(t), [p, b] = H(null), [g, h] = H(null), [x, w] = H(!1), y = Dt(d), [M = !1, P] =
|
|
6338
|
+
]), Rn = Lt(), [Ql, We] = et(Ut), [Jl, ed] = et(Ut), td = (e) => {
|
|
6339
|
+
const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: i, defaultValue: a, onValueChange: s, dir: d, name: u, autoComplete: l, disabled: v, required: f } = e, m = Rn(t), [p, b] = H(null), [g, h] = H(null), [x, w] = H(!1), y = Dt(d), [M = !1, P] = Ye({
|
|
6329
6340
|
prop: o,
|
|
6330
6341
|
defaultProp: r,
|
|
6331
6342
|
onChange: c
|
|
6332
|
-
}), [E, D] =
|
|
6343
|
+
}), [E, D] = Ye({
|
|
6333
6344
|
prop: i,
|
|
6334
6345
|
defaultProp: a,
|
|
6335
6346
|
onChange: s
|
|
6336
6347
|
}), z = L(null), k = p ? !!p.closest("form") : !0, [T, G] = H(/* @__PURE__ */ new Set()), B = Array.from(T).map(
|
|
6337
6348
|
(F) => F.props.value
|
|
6338
6349
|
).join(";");
|
|
6339
|
-
return /* @__PURE__ */ $(yn, m, /* @__PURE__ */ $(
|
|
6350
|
+
return /* @__PURE__ */ $(yn, m, /* @__PURE__ */ $(Ql, {
|
|
6340
6351
|
required: f,
|
|
6341
6352
|
scope: t,
|
|
6342
6353
|
trigger: p,
|
|
@@ -6355,7 +6366,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6355
6366
|
disabled: v
|
|
6356
6367
|
}, /* @__PURE__ */ $(Kt.Provider, {
|
|
6357
6368
|
scope: t
|
|
6358
|
-
}, /* @__PURE__ */ $(
|
|
6369
|
+
}, /* @__PURE__ */ $(Jl, {
|
|
6359
6370
|
scope: e.__scopeSelect,
|
|
6360
6371
|
onNativeOptionAdd: Z((F) => {
|
|
6361
6372
|
G(
|
|
@@ -6381,8 +6392,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6381
6392
|
}, E === void 0 ? /* @__PURE__ */ $("option", {
|
|
6382
6393
|
value: ""
|
|
6383
6394
|
}) : null, Array.from(T)) : null));
|
|
6384
|
-
},
|
|
6385
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, c = Rn(n), i =
|
|
6395
|
+
}, nd = "SelectTrigger", od = /* @__PURE__ */ _((e, t) => {
|
|
6396
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, c = Rn(n), i = We(nd, n), a = i.disabled || o, s = ce(t, i.onTriggerChange), d = Mn(n), [u, l, v] = Ur((m) => {
|
|
6386
6397
|
const p = d().filter(
|
|
6387
6398
|
(h) => !h.disabled
|
|
6388
6399
|
), b = p.find(
|
|
@@ -6420,12 +6431,12 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6420
6431
|
}),
|
|
6421
6432
|
onKeyDown: A(r.onKeyDown, (m) => {
|
|
6422
6433
|
const p = u.current !== "";
|
|
6423
|
-
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && l(m.key), !(p && m.key === " ") &&
|
|
6434
|
+
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && l(m.key), !(p && m.key === " ") && Xl.includes(m.key) && (f(), m.preventDefault());
|
|
6424
6435
|
})
|
|
6425
6436
|
})));
|
|
6426
|
-
}),
|
|
6427
|
-
const { __scopeSelect: n, className: o, style: r, children: c, placeholder: i, ...a } = e, s =
|
|
6428
|
-
return
|
|
6437
|
+
}), rd = "SelectValue", cd = /* @__PURE__ */ _((e, t) => {
|
|
6438
|
+
const { __scopeSelect: n, className: o, style: r, children: c, placeholder: i, ...a } = e, s = We(rd, n), { onValueNodeHasChildrenChange: d } = s, u = c !== void 0, l = ce(t, s.onValueNodeChange);
|
|
6439
|
+
return xe(() => {
|
|
6429
6440
|
d(u);
|
|
6430
6441
|
}, [
|
|
6431
6442
|
d,
|
|
@@ -6436,18 +6447,18 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6436
6447
|
pointerEvents: "none"
|
|
6437
6448
|
}
|
|
6438
6449
|
}), s.value === void 0 && i !== void 0 ? i : c);
|
|
6439
|
-
}),
|
|
6450
|
+
}), id = /* @__PURE__ */ _((e, t) => {
|
|
6440
6451
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
6441
6452
|
return /* @__PURE__ */ $(Q.span, C({
|
|
6442
6453
|
"aria-hidden": !0
|
|
6443
6454
|
}, r, {
|
|
6444
6455
|
ref: t
|
|
6445
6456
|
}), o || "▼");
|
|
6446
|
-
}),
|
|
6457
|
+
}), ad = (e) => /* @__PURE__ */ $(Ho, C({
|
|
6447
6458
|
asChild: !0
|
|
6448
|
-
}, e)), qe = "SelectContent",
|
|
6449
|
-
const n =
|
|
6450
|
-
if (
|
|
6459
|
+
}, e)), qe = "SelectContent", sd = /* @__PURE__ */ _((e, t) => {
|
|
6460
|
+
const n = We(qe, e.__scopeSelect), [o, r] = H();
|
|
6461
|
+
if (xe(() => {
|
|
6451
6462
|
r(new DocumentFragment());
|
|
6452
6463
|
}, []), !n.open) {
|
|
6453
6464
|
const c = o;
|
|
@@ -6457,10 +6468,10 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6457
6468
|
scope: e.__scopeSelect
|
|
6458
6469
|
}, /* @__PURE__ */ $("div", null, e.children))), c) : null;
|
|
6459
6470
|
}
|
|
6460
|
-
return /* @__PURE__ */ $(
|
|
6471
|
+
return /* @__PURE__ */ $(ld, C({}, e, {
|
|
6461
6472
|
ref: t
|
|
6462
6473
|
}));
|
|
6463
|
-
}), Ce = 10, [Wr, Vt] = et(qe),
|
|
6474
|
+
}), Ce = 10, [Wr, Vt] = et(qe), ld = /* @__PURE__ */ _((e, t) => {
|
|
6464
6475
|
const {
|
|
6465
6476
|
__scopeSelect: n,
|
|
6466
6477
|
position: o = "item-aligned",
|
|
@@ -6479,7 +6490,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6479
6490
|
avoidCollisions: b,
|
|
6480
6491
|
//
|
|
6481
6492
|
...g
|
|
6482
|
-
} = e, h =
|
|
6493
|
+
} = e, h = We(qe, n), [x, w] = H(null), [y, M] = H(null), P = ce(
|
|
6483
6494
|
t,
|
|
6484
6495
|
(O) => w(O)
|
|
6485
6496
|
), [E, D] = H(null), [z, k] = H(null), T = Mn(n), [G, B] = H(!1), F = L(!1);
|
|
@@ -6579,7 +6590,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6579
6590
|
(h.value !== void 0 && h.value === V || Y) && k(O);
|
|
6580
6591
|
}, [
|
|
6581
6592
|
h.value
|
|
6582
|
-
]), de = o === "popper" ? oo :
|
|
6593
|
+
]), de = o === "popper" ? oo : dd, ue = de === oo ? {
|
|
6583
6594
|
side: a,
|
|
6584
6595
|
sideOffset: s,
|
|
6585
6596
|
align: d,
|
|
@@ -6606,7 +6617,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6606
6617
|
isPositioned: G,
|
|
6607
6618
|
searchRef: j
|
|
6608
6619
|
}, /* @__PURE__ */ $(or, {
|
|
6609
|
-
as:
|
|
6620
|
+
as: Fe,
|
|
6610
6621
|
allowPinchZoom: !0
|
|
6611
6622
|
}, /* @__PURE__ */ $(Co, {
|
|
6612
6623
|
asChild: !0,
|
|
@@ -6673,8 +6684,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6673
6684
|
}
|
|
6674
6685
|
})
|
|
6675
6686
|
}))))));
|
|
6676
|
-
}),
|
|
6677
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, c =
|
|
6687
|
+
}), dd = /* @__PURE__ */ _((e, t) => {
|
|
6688
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, c = We(qe, n), i = Vt(qe, n), [a, s] = H(null), [d, u] = H(null), l = ce(
|
|
6678
6689
|
t,
|
|
6679
6690
|
(P) => u(P)
|
|
6680
6691
|
), v = Mn(n), f = L(!1), m = L(!0), { viewport: p, selectedItem: b, selectedItemText: g, focusSelectedItem: h } = i, x = Z(() => {
|
|
@@ -6721,14 +6732,14 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6721
6732
|
c.dir,
|
|
6722
6733
|
o
|
|
6723
6734
|
]);
|
|
6724
|
-
|
|
6735
|
+
xe(
|
|
6725
6736
|
() => x(),
|
|
6726
6737
|
[
|
|
6727
6738
|
x
|
|
6728
6739
|
]
|
|
6729
6740
|
);
|
|
6730
6741
|
const [w, y] = H();
|
|
6731
|
-
|
|
6742
|
+
xe(() => {
|
|
6732
6743
|
d && y(window.getComputedStyle(d).zIndex);
|
|
6733
6744
|
}, [
|
|
6734
6745
|
d
|
|
@@ -6739,7 +6750,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6739
6750
|
x,
|
|
6740
6751
|
h
|
|
6741
6752
|
]);
|
|
6742
|
-
return /* @__PURE__ */ $(
|
|
6753
|
+
return /* @__PURE__ */ $(ud, {
|
|
6743
6754
|
scope: n,
|
|
6744
6755
|
contentWrapper: a,
|
|
6745
6756
|
shouldExpandOnScrollRef: f,
|
|
@@ -6780,8 +6791,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6780
6791
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6781
6792
|
}
|
|
6782
6793
|
}));
|
|
6783
|
-
}), [
|
|
6784
|
-
const { __scopeSelect: n, ...o } = e, r = Vt(ro, n), c =
|
|
6794
|
+
}), [ud, fd] = et(qe, {}), ro = "SelectViewport", pd = /* @__PURE__ */ _((e, t) => {
|
|
6795
|
+
const { __scopeSelect: n, ...o } = e, r = Vt(ro, n), c = fd(ro, n), i = ce(t, r.onViewportChange), a = L(0);
|
|
6785
6796
|
return /* @__PURE__ */ $(It, null, /* @__PURE__ */ $("style", {
|
|
6786
6797
|
dangerouslySetInnerHTML: {
|
|
6787
6798
|
__html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
@@ -6817,9 +6828,9 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6817
6828
|
a.current = d.scrollTop;
|
|
6818
6829
|
})
|
|
6819
6830
|
}))));
|
|
6820
|
-
}),
|
|
6831
|
+
}), md = "SelectGroup", [vd, gd] = et(md), hd = /* @__PURE__ */ _((e, t) => {
|
|
6821
6832
|
const { __scopeSelect: n, ...o } = e, r = Te();
|
|
6822
|
-
return /* @__PURE__ */ $(
|
|
6833
|
+
return /* @__PURE__ */ $(vd, {
|
|
6823
6834
|
scope: n,
|
|
6824
6835
|
id: r
|
|
6825
6836
|
}, /* @__PURE__ */ $(Q.div, C({
|
|
@@ -6828,21 +6839,21 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6828
6839
|
}, o, {
|
|
6829
6840
|
ref: t
|
|
6830
6841
|
})));
|
|
6831
|
-
}),
|
|
6832
|
-
const { __scopeSelect: n, ...o } = e, r =
|
|
6842
|
+
}), bd = "SelectLabel", $d = /* @__PURE__ */ _((e, t) => {
|
|
6843
|
+
const { __scopeSelect: n, ...o } = e, r = gd(bd, n);
|
|
6833
6844
|
return /* @__PURE__ */ $(Q.div, C({
|
|
6834
6845
|
id: r.id
|
|
6835
6846
|
}, o, {
|
|
6836
6847
|
ref: t
|
|
6837
6848
|
}));
|
|
6838
|
-
}), un = "SelectItem", [
|
|
6839
|
-
const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...i } = e, a =
|
|
6849
|
+
}), un = "SelectItem", [xd, Hr] = et(un), wd = /* @__PURE__ */ _((e, t) => {
|
|
6850
|
+
const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...i } = e, a = We(un, n), s = Vt(un, n), d = a.value === o, [u, l] = H(c ?? ""), [v, f] = H(!1), m = ce(t, (g) => {
|
|
6840
6851
|
var h;
|
|
6841
6852
|
return (h = s.itemRefCallback) === null || h === void 0 ? void 0 : h.call(s, g, o, r);
|
|
6842
6853
|
}), p = Te(), b = () => {
|
|
6843
6854
|
r || (a.onValueChange(o), a.onOpenChange(!1));
|
|
6844
6855
|
};
|
|
6845
|
-
return /* @__PURE__ */ $(
|
|
6856
|
+
return /* @__PURE__ */ $(xd, {
|
|
6846
6857
|
scope: n,
|
|
6847
6858
|
value: o,
|
|
6848
6859
|
disabled: r,
|
|
@@ -6896,11 +6907,11 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6896
6907
|
}),
|
|
6897
6908
|
onKeyDown: A(i.onKeyDown, (g) => {
|
|
6898
6909
|
var h;
|
|
6899
|
-
((h = s.searchRef) === null || h === void 0 ? void 0 : h.current) !== "" && g.key === " " || (
|
|
6910
|
+
((h = s.searchRef) === null || h === void 0 ? void 0 : h.current) !== "" && g.key === " " || (ql.includes(g.key) && b(), g.key === " " && g.preventDefault());
|
|
6900
6911
|
})
|
|
6901
6912
|
}))));
|
|
6902
|
-
}), wt = "SelectItemText",
|
|
6903
|
-
const { __scopeSelect: n, className: o, style: r, ...c } = e, i =
|
|
6913
|
+
}), wt = "SelectItemText", yd = /* @__PURE__ */ _((e, t) => {
|
|
6914
|
+
const { __scopeSelect: n, className: o, style: r, ...c } = e, i = We(wt, n), a = Vt(wt, n), s = Hr(wt, n), d = ed(wt, n), [u, l] = H(null), v = ce(
|
|
6904
6915
|
t,
|
|
6905
6916
|
(g) => l(g),
|
|
6906
6917
|
s.onItemTextChange,
|
|
@@ -6908,7 +6919,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6908
6919
|
var h;
|
|
6909
6920
|
return (h = a.itemTextRefCallback) === null || h === void 0 ? void 0 : h.call(a, g, s.value, s.disabled);
|
|
6910
6921
|
}
|
|
6911
|
-
), f = u == null ? void 0 : u.textContent, m =
|
|
6922
|
+
), f = u == null ? void 0 : u.textContent, m = je(
|
|
6912
6923
|
() => /* @__PURE__ */ $("option", {
|
|
6913
6924
|
key: s.value,
|
|
6914
6925
|
value: s.value,
|
|
@@ -6920,7 +6931,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6920
6931
|
f
|
|
6921
6932
|
]
|
|
6922
6933
|
), { onNativeOptionAdd: p, onNativeOptionRemove: b } = d;
|
|
6923
|
-
return
|
|
6934
|
+
return xe(() => (p(m), () => b(m)), [
|
|
6924
6935
|
p,
|
|
6925
6936
|
b,
|
|
6926
6937
|
m
|
|
@@ -6929,14 +6940,14 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6929
6940
|
}, c, {
|
|
6930
6941
|
ref: v
|
|
6931
6942
|
})), s.isSelected && i.valueNode && !i.valueNodeHasChildren ? /* @__PURE__ */ ao(c.children, i.valueNode) : null);
|
|
6932
|
-
}),
|
|
6943
|
+
}), Cd = "SelectItemIndicator", Sd = /* @__PURE__ */ _((e, t) => {
|
|
6933
6944
|
const { __scopeSelect: n, ...o } = e;
|
|
6934
|
-
return Hr(
|
|
6945
|
+
return Hr(Cd, n).isSelected ? /* @__PURE__ */ $(Q.span, C({
|
|
6935
6946
|
"aria-hidden": !0
|
|
6936
6947
|
}, o, {
|
|
6937
6948
|
ref: t
|
|
6938
6949
|
})) : null;
|
|
6939
|
-
}),
|
|
6950
|
+
}), Pd = /* @__PURE__ */ _((e, t) => {
|
|
6940
6951
|
const { __scopeSelect: n, ...o } = e;
|
|
6941
6952
|
return /* @__PURE__ */ $(Q.div, C({
|
|
6942
6953
|
"aria-hidden": !0
|
|
@@ -6956,7 +6967,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6956
6967
|
}, [
|
|
6957
6968
|
i,
|
|
6958
6969
|
n
|
|
6959
|
-
]), /* @__PURE__ */ $(
|
|
6970
|
+
]), /* @__PURE__ */ $(Yl, {
|
|
6960
6971
|
asChild: !0
|
|
6961
6972
|
}, /* @__PURE__ */ $("select", C({}, o, {
|
|
6962
6973
|
ref: c,
|
|
@@ -6988,7 +6999,7 @@ function Kr(e, t, n) {
|
|
|
6988
6999
|
const r = t.length > 1 && Array.from(t).every(
|
|
6989
7000
|
(d) => d === t[0]
|
|
6990
7001
|
) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
6991
|
-
let i =
|
|
7002
|
+
let i = Ed(e, Math.max(c, 0));
|
|
6992
7003
|
r.length === 1 && (i = i.filter(
|
|
6993
7004
|
(d) => d !== n
|
|
6994
7005
|
));
|
|
@@ -6997,12 +7008,12 @@ function Kr(e, t, n) {
|
|
|
6997
7008
|
);
|
|
6998
7009
|
return s !== n ? s : void 0;
|
|
6999
7010
|
}
|
|
7000
|
-
function
|
|
7011
|
+
function Ed(e, t) {
|
|
7001
7012
|
return e.map(
|
|
7002
7013
|
(n, o) => e[(t + o) % e.length]
|
|
7003
7014
|
);
|
|
7004
7015
|
}
|
|
7005
|
-
const
|
|
7016
|
+
const _d = td, Vr = od, Md = cd, Rd = id, Td = ad, jr = sd, Od = pd, Ad = hd, Yr = $d, Xr = wd, Id = yd, Nd = Sd, qr = Pd, iu = _d, au = Ad, su = Md, Dd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
|
|
7006
7017
|
Vr,
|
|
7007
7018
|
{
|
|
7008
7019
|
ref: o,
|
|
@@ -7013,12 +7024,12 @@ const Ed = ed, Vr = nd, _d = rd, Md = cd, Rd = id, jr = ad, Td = fd, Od = gd, Yr
|
|
|
7013
7024
|
...n,
|
|
7014
7025
|
children: [
|
|
7015
7026
|
t,
|
|
7016
|
-
/* @__PURE__ */ N(
|
|
7027
|
+
/* @__PURE__ */ N(Rd, { asChild: !0, children: /* @__PURE__ */ N($l, { className: "h-4 w-4 opacity-50" }) })
|
|
7017
7028
|
]
|
|
7018
7029
|
}
|
|
7019
7030
|
));
|
|
7020
|
-
|
|
7021
|
-
const
|
|
7031
|
+
Dd.displayName = Vr.displayName;
|
|
7032
|
+
const kd = S.forwardRef(({ className: e = "", children: t, position: n = "popper", ...o }, r) => /* @__PURE__ */ N(Td, { children: /* @__PURE__ */ N(
|
|
7022
7033
|
jr,
|
|
7023
7034
|
{
|
|
7024
7035
|
ref: r,
|
|
@@ -7030,7 +7041,7 @@ const Dd = S.forwardRef(({ className: e = "", children: t, position: n = "popper
|
|
|
7030
7041
|
position: n,
|
|
7031
7042
|
...o,
|
|
7032
7043
|
children: /* @__PURE__ */ N(
|
|
7033
|
-
|
|
7044
|
+
Od,
|
|
7034
7045
|
{
|
|
7035
7046
|
className: K(
|
|
7036
7047
|
"p-1",
|
|
@@ -7041,8 +7052,8 @@ const Dd = S.forwardRef(({ className: e = "", children: t, position: n = "popper
|
|
|
7041
7052
|
)
|
|
7042
7053
|
}
|
|
7043
7054
|
) }));
|
|
7044
|
-
|
|
7045
|
-
const
|
|
7055
|
+
kd.displayName = jr.displayName;
|
|
7056
|
+
const Fd = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
7046
7057
|
Yr,
|
|
7047
7058
|
{
|
|
7048
7059
|
ref: n,
|
|
@@ -7050,8 +7061,8 @@ const kd = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
|
7050
7061
|
...t
|
|
7051
7062
|
}
|
|
7052
7063
|
));
|
|
7053
|
-
|
|
7054
|
-
const
|
|
7064
|
+
Fd.displayName = Yr.displayName;
|
|
7065
|
+
const Ld = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
|
|
7055
7066
|
Xr,
|
|
7056
7067
|
{
|
|
7057
7068
|
ref: o,
|
|
@@ -7061,13 +7072,13 @@ const Fd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__P
|
|
|
7061
7072
|
),
|
|
7062
7073
|
...n,
|
|
7063
7074
|
children: [
|
|
7064
|
-
/* @__PURE__ */ N("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ N(
|
|
7065
|
-
/* @__PURE__ */ N(
|
|
7075
|
+
/* @__PURE__ */ N("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ N(Nd, { children: /* @__PURE__ */ N(Tr, { className: "h-4 w-4" }) }) }),
|
|
7076
|
+
/* @__PURE__ */ N(Id, { children: t })
|
|
7066
7077
|
]
|
|
7067
7078
|
}
|
|
7068
7079
|
));
|
|
7069
|
-
|
|
7070
|
-
const
|
|
7080
|
+
Ld.displayName = Xr.displayName;
|
|
7081
|
+
const Bd = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
7071
7082
|
qr,
|
|
7072
7083
|
{
|
|
7073
7084
|
ref: n,
|
|
@@ -7075,44 +7086,44 @@ const Ld = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
|
7075
7086
|
...t
|
|
7076
7087
|
}
|
|
7077
7088
|
));
|
|
7078
|
-
|
|
7089
|
+
Bd.displayName = qr.displayName;
|
|
7079
7090
|
export {
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7091
|
+
Dc as Button,
|
|
7092
|
+
Lc as Card,
|
|
7093
|
+
Hc as CardContent,
|
|
7094
|
+
Wc as CardDescription,
|
|
7095
|
+
zc as CardFooter,
|
|
7096
|
+
Bc as CardHeader,
|
|
7097
|
+
Gc as CardTitle,
|
|
7087
7098
|
Xd as Checkbox,
|
|
7088
7099
|
Qd as DropdownMenu,
|
|
7089
|
-
|
|
7090
|
-
|
|
7100
|
+
Pl as DropdownMenuCheckboxItem,
|
|
7101
|
+
Cl as DropdownMenuContent,
|
|
7091
7102
|
eu as DropdownMenuGroup,
|
|
7092
|
-
|
|
7093
|
-
|
|
7103
|
+
Sl as DropdownMenuItem,
|
|
7104
|
+
_l as DropdownMenuLabel,
|
|
7094
7105
|
tu as DropdownMenuPortal,
|
|
7095
7106
|
ou as DropdownMenuRadioGroup,
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7107
|
+
El as DropdownMenuRadioItem,
|
|
7108
|
+
Ml as DropdownMenuSeparator,
|
|
7109
|
+
Rl as DropdownMenuShortcut,
|
|
7099
7110
|
nu as DropdownMenuSub,
|
|
7100
|
-
|
|
7101
|
-
|
|
7111
|
+
yl as DropdownMenuSubContent,
|
|
7112
|
+
wl as DropdownMenuSubTrigger,
|
|
7102
7113
|
Jd as DropdownMenuTrigger,
|
|
7103
7114
|
Yd as Heading,
|
|
7104
7115
|
Ud as Input,
|
|
7105
7116
|
jd as Label,
|
|
7106
7117
|
Vd as Paragraph,
|
|
7107
|
-
|
|
7108
|
-
|
|
7118
|
+
Vl as RadioGroup,
|
|
7119
|
+
jl as RadioGroupItem,
|
|
7109
7120
|
iu as Select,
|
|
7110
|
-
|
|
7121
|
+
kd as SelectContent,
|
|
7111
7122
|
au as SelectGroup,
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7123
|
+
Ld as SelectItem,
|
|
7124
|
+
Fd as SelectLabel,
|
|
7125
|
+
Bd as SelectSeparator,
|
|
7126
|
+
Dd as SelectTrigger,
|
|
7116
7127
|
su as SelectValue,
|
|
7117
7128
|
zd as Spinner,
|
|
7118
7129
|
Kd as TextArea
|