@infra-cryptomate/react-components 0.0.7 → 0.0.9
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 +866 -859
- package/dist/components.umd.js +11 -11
- package/dist/src/components/molecules/dropdown/dropdown.d.ts +16 -31
- package/dist/style.css +24 -3
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as k, jsxs as lt } from "react/jsx-runtime";
|
|
2
2
|
import * as S from "react";
|
|
3
3
|
import xe, { createElement as $, useCallback as Z, createContext as Pt, useMemo as Ve, useContext as fn, useRef as L, useEffect as U, useState as H, forwardRef as _, Children as Ue, isValidElement as Et, cloneElement as pn, Fragment as It, useLayoutEffect as co, useReducer as Jr } from "react";
|
|
4
4
|
import * as ec from "react-dom";
|
|
5
|
-
import tc, { flushSync as
|
|
5
|
+
import tc, { flushSync as ao, createPortal as io } from "react-dom";
|
|
6
6
|
function nc() {
|
|
7
7
|
for (var e = 0, t, n, o = ""; e < arguments.length; )
|
|
8
8
|
(t = arguments[e++]) && (n = so(t)) && (o && (o += " "), o += n);
|
|
@@ -18,21 +18,21 @@ function so(e) {
|
|
|
18
18
|
var mn = "-";
|
|
19
19
|
function oc(e) {
|
|
20
20
|
var t = cc(e), n = e.conflictingClassGroups, o = e.conflictingClassGroupModifiers, r = o === void 0 ? {} : o;
|
|
21
|
-
function c(
|
|
22
|
-
var s =
|
|
23
|
-
return s[0] === "" && s.length !== 1 && s.shift(), lo(s, t) || rc(
|
|
21
|
+
function c(i) {
|
|
22
|
+
var s = i.split(mn);
|
|
23
|
+
return s[0] === "" && s.length !== 1 && s.shift(), lo(s, t) || rc(i);
|
|
24
24
|
}
|
|
25
|
-
function i
|
|
26
|
-
var d = n[
|
|
27
|
-
return s && r[
|
|
25
|
+
function a(i, s) {
|
|
26
|
+
var d = n[i] || [];
|
|
27
|
+
return s && r[i] ? [].concat(d, r[i]) : d;
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
getClassGroupId: c,
|
|
31
|
-
getConflictingClassGroupIds:
|
|
31
|
+
getConflictingClassGroupIds: a
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function lo(e, t) {
|
|
35
|
-
var
|
|
35
|
+
var a;
|
|
36
36
|
if (e.length === 0)
|
|
37
37
|
return t.classGroupId;
|
|
38
38
|
var n = e[0], o = t.nextPart.get(n), r = o ? lo(e.slice(1), o) : void 0;
|
|
@@ -40,10 +40,10 @@ function lo(e, t) {
|
|
|
40
40
|
return r;
|
|
41
41
|
if (t.validators.length !== 0) {
|
|
42
42
|
var c = e.join(mn);
|
|
43
|
-
return (
|
|
44
|
-
var s =
|
|
43
|
+
return (a = t.validators.find(function(i) {
|
|
44
|
+
var s = i.validator;
|
|
45
45
|
return s(c);
|
|
46
|
-
})) == null ? void 0 :
|
|
46
|
+
})) == null ? void 0 : a.classGroupId;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
var Tn = /^\[(.+)\]$/;
|
|
@@ -58,10 +58,10 @@ function cc(e) {
|
|
|
58
58
|
var t = e.theme, n = e.prefix, o = {
|
|
59
59
|
nextPart: /* @__PURE__ */ new Map(),
|
|
60
60
|
validators: []
|
|
61
|
-
}, r =
|
|
61
|
+
}, r = ic(Object.entries(e.classGroups), n);
|
|
62
62
|
return r.forEach(function(c) {
|
|
63
|
-
var
|
|
64
|
-
en(
|
|
63
|
+
var a = c[0], i = c[1];
|
|
64
|
+
en(i, o, a, t);
|
|
65
65
|
}), o;
|
|
66
66
|
}
|
|
67
67
|
function en(e, t, n, o) {
|
|
@@ -72,7 +72,7 @@ function en(e, t, n, o) {
|
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
if (typeof r == "function") {
|
|
75
|
-
if (
|
|
75
|
+
if (ac(r)) {
|
|
76
76
|
en(r(o), t, n, o);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
@@ -82,9 +82,9 @@ function en(e, t, n, o) {
|
|
|
82
82
|
});
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
Object.entries(r).forEach(function(
|
|
86
|
-
var
|
|
87
|
-
en(s, On(t,
|
|
85
|
+
Object.entries(r).forEach(function(a) {
|
|
86
|
+
var i = a[0], s = a[1];
|
|
87
|
+
en(s, On(t, i), n, o);
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}
|
|
@@ -97,16 +97,16 @@ function On(e, t) {
|
|
|
97
97
|
}), n = n.nextPart.get(o);
|
|
98
98
|
}), n;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ac(e) {
|
|
101
101
|
return e.isThemeGetter;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ic(e, t) {
|
|
104
104
|
return t ? e.map(function(n) {
|
|
105
|
-
var o = n[0], r = n[1], c = r.map(function(
|
|
106
|
-
return typeof
|
|
107
|
-
var s =
|
|
105
|
+
var o = n[0], r = n[1], c = r.map(function(a) {
|
|
106
|
+
return typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(function(i) {
|
|
107
|
+
var s = i[0], d = i[1];
|
|
108
108
|
return [t + s, d];
|
|
109
|
-
})) :
|
|
109
|
+
})) : a;
|
|
110
110
|
});
|
|
111
111
|
return [o, c];
|
|
112
112
|
}) : e;
|
|
@@ -120,31 +120,31 @@ function sc(e) {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
var t = 0, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
123
|
-
function r(c,
|
|
124
|
-
n.set(c,
|
|
123
|
+
function r(c, a) {
|
|
124
|
+
n.set(c, a), t++, t > e && (t = 0, o = n, n = /* @__PURE__ */ new Map());
|
|
125
125
|
}
|
|
126
126
|
return {
|
|
127
|
-
get: function(
|
|
128
|
-
var
|
|
129
|
-
if (
|
|
130
|
-
return
|
|
131
|
-
if ((
|
|
132
|
-
return r(
|
|
127
|
+
get: function(a) {
|
|
128
|
+
var i = n.get(a);
|
|
129
|
+
if (i !== void 0)
|
|
130
|
+
return i;
|
|
131
|
+
if ((i = o.get(a)) !== void 0)
|
|
132
|
+
return r(a, i), i;
|
|
133
133
|
},
|
|
134
|
-
set: function(
|
|
135
|
-
n.has(
|
|
134
|
+
set: function(a, i) {
|
|
135
|
+
n.has(a) ? n.set(a, i) : r(a, i);
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
var uo = "!";
|
|
140
140
|
function lc(e) {
|
|
141
141
|
var t = e.separator || ":", n = t.length === 1, o = t[0], r = t.length;
|
|
142
|
-
return function(
|
|
143
|
-
for (var
|
|
144
|
-
var v =
|
|
142
|
+
return function(a) {
|
|
143
|
+
for (var i = [], s = 0, d = 0, u, l = 0; l < a.length; l++) {
|
|
144
|
+
var v = a[l];
|
|
145
145
|
if (s === 0) {
|
|
146
|
-
if (v === o && (n ||
|
|
147
|
-
|
|
146
|
+
if (v === o && (n || a.slice(l, l + r) === t)) {
|
|
147
|
+
i.push(a.slice(d, l)), d = l + r;
|
|
148
148
|
continue;
|
|
149
149
|
}
|
|
150
150
|
if (v === "/") {
|
|
@@ -154,9 +154,9 @@ function lc(e) {
|
|
|
154
154
|
}
|
|
155
155
|
v === "[" ? s++ : v === "]" && s--;
|
|
156
156
|
}
|
|
157
|
-
var f =
|
|
157
|
+
var f = i.length === 0 ? a : a.substring(d), m = f.startsWith(uo), p = m ? f.substring(1) : f, b = u && u > d ? u - d : void 0;
|
|
158
158
|
return {
|
|
159
|
-
modifiers:
|
|
159
|
+
modifiers: i,
|
|
160
160
|
hasImportantModifier: m,
|
|
161
161
|
baseClassName: p,
|
|
162
162
|
maybePostfixModifierPosition: b
|
|
@@ -182,18 +182,18 @@ function uc(e) {
|
|
|
182
182
|
var fc = /\s+/;
|
|
183
183
|
function pc(e, t) {
|
|
184
184
|
var n = t.splitModifiers, o = t.getClassGroupId, r = t.getConflictingClassGroupIds, c = /* @__PURE__ */ new Set();
|
|
185
|
-
return e.trim().split(fc).map(function(
|
|
186
|
-
var
|
|
185
|
+
return e.trim().split(fc).map(function(a) {
|
|
186
|
+
var i = n(a), s = i.modifiers, d = i.hasImportantModifier, u = i.baseClassName, l = i.maybePostfixModifierPosition, v = o(l ? u.substring(0, l) : u), f = !!l;
|
|
187
187
|
if (!v) {
|
|
188
188
|
if (!l)
|
|
189
189
|
return {
|
|
190
190
|
isTailwindClass: !1,
|
|
191
|
-
originalClassName:
|
|
191
|
+
originalClassName: a
|
|
192
192
|
};
|
|
193
193
|
if (v = o(u), !v)
|
|
194
194
|
return {
|
|
195
195
|
isTailwindClass: !1,
|
|
196
|
-
originalClassName:
|
|
196
|
+
originalClassName: a
|
|
197
197
|
};
|
|
198
198
|
f = !1;
|
|
199
199
|
}
|
|
@@ -202,29 +202,29 @@ function pc(e, t) {
|
|
|
202
202
|
isTailwindClass: !0,
|
|
203
203
|
modifierId: p,
|
|
204
204
|
classGroupId: v,
|
|
205
|
-
originalClassName:
|
|
205
|
+
originalClassName: a,
|
|
206
206
|
hasPostfixModifier: f
|
|
207
207
|
};
|
|
208
|
-
}).reverse().filter(function(
|
|
209
|
-
if (!
|
|
208
|
+
}).reverse().filter(function(a) {
|
|
209
|
+
if (!a.isTailwindClass)
|
|
210
210
|
return !0;
|
|
211
|
-
var
|
|
211
|
+
var i = a.modifierId, s = a.classGroupId, d = a.hasPostfixModifier, u = i + s;
|
|
212
212
|
return c.has(u) ? !1 : (c.add(u), r(s, d).forEach(function(l) {
|
|
213
|
-
return c.add(
|
|
213
|
+
return c.add(i + l);
|
|
214
214
|
}), !0);
|
|
215
|
-
}).reverse().map(function(
|
|
216
|
-
return
|
|
215
|
+
}).reverse().map(function(a) {
|
|
216
|
+
return a.originalClassName;
|
|
217
217
|
}).join(" ");
|
|
218
218
|
}
|
|
219
219
|
function mc() {
|
|
220
220
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
221
221
|
t[n] = arguments[n];
|
|
222
|
-
var o, r, c,
|
|
223
|
-
function
|
|
222
|
+
var o, r, c, a = i;
|
|
223
|
+
function i(d) {
|
|
224
224
|
var u = t[0], l = t.slice(1), v = l.reduce(function(f, m) {
|
|
225
225
|
return m(f);
|
|
226
226
|
}, u());
|
|
227
|
-
return o = uc(v), r = o.cache.get, c = o.cache.set,
|
|
227
|
+
return o = uc(v), r = o.cache.get, c = o.cache.set, a = s, s(d);
|
|
228
228
|
}
|
|
229
229
|
function s(d) {
|
|
230
230
|
var u = r(d);
|
|
@@ -234,7 +234,7 @@ function mc() {
|
|
|
234
234
|
return c(d, l), l;
|
|
235
235
|
}
|
|
236
236
|
return function() {
|
|
237
|
-
return
|
|
237
|
+
return a(nc.apply(null, arguments));
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
function ne(e) {
|
|
@@ -245,7 +245,7 @@ function ne(e) {
|
|
|
245
245
|
}
|
|
246
246
|
var fo = /^\[(?:([a-z-]+):)?(.+)\]$/i, vc = /^\d+\/\d+$/, gc = /* @__PURE__ */ new Set(["px", "full", "screen"]), hc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bc = /\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$/, $c = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
247
247
|
function he(e) {
|
|
248
|
-
return
|
|
248
|
+
return De(e) || gc.has(e) || vc.test(e) || tn(e);
|
|
249
249
|
}
|
|
250
250
|
function tn(e) {
|
|
251
251
|
return Le(e, "length", Pc);
|
|
@@ -260,13 +260,13 @@ function yc(e) {
|
|
|
260
260
|
return Le(e, "url", Ec);
|
|
261
261
|
}
|
|
262
262
|
function pt(e) {
|
|
263
|
-
return Le(e, "number",
|
|
263
|
+
return Le(e, "number", De);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function De(e) {
|
|
266
266
|
return !Number.isNaN(Number(e));
|
|
267
267
|
}
|
|
268
268
|
function Cc(e) {
|
|
269
|
-
return e.endsWith("%") &&
|
|
269
|
+
return e.endsWith("%") && De(e.slice(0, -1));
|
|
270
270
|
}
|
|
271
271
|
function rt(e) {
|
|
272
272
|
return An(e) || Le(e, "number", An);
|
|
@@ -303,18 +303,18 @@ function _c(e) {
|
|
|
303
303
|
return $c.test(e);
|
|
304
304
|
}
|
|
305
305
|
function Mc() {
|
|
306
|
-
var e = ne("colors"), t = ne("spacing"), n = ne("blur"), o = ne("brightness"), r = ne("borderColor"), c = ne("borderRadius"),
|
|
306
|
+
var e = ne("colors"), t = ne("spacing"), n = ne("blur"), o = ne("brightness"), r = ne("borderColor"), c = ne("borderRadius"), a = ne("borderSpacing"), i = 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"), N = function() {
|
|
307
307
|
return ["auto", "contain", "none"];
|
|
308
308
|
}, z = function() {
|
|
309
309
|
return ["auto", "hidden", "clip", "visible", "scroll"];
|
|
310
|
-
},
|
|
310
|
+
}, D = function() {
|
|
311
311
|
return ["auto", W, t];
|
|
312
312
|
}, T = function() {
|
|
313
313
|
return [W, t];
|
|
314
314
|
}, G = function() {
|
|
315
315
|
return ["", he];
|
|
316
316
|
}, B = function() {
|
|
317
|
-
return ["auto",
|
|
317
|
+
return ["auto", De, W];
|
|
318
318
|
}, F = function() {
|
|
319
319
|
return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
|
|
320
320
|
}, I = function() {
|
|
@@ -328,9 +328,9 @@ function Mc() {
|
|
|
328
328
|
}, j = function() {
|
|
329
329
|
return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
330
330
|
}, oe = function() {
|
|
331
|
-
return [
|
|
332
|
-
},
|
|
333
|
-
return [
|
|
331
|
+
return [De, pt];
|
|
332
|
+
}, ae = function() {
|
|
333
|
+
return [De, W];
|
|
334
334
|
};
|
|
335
335
|
return {
|
|
336
336
|
cacheSize: 500,
|
|
@@ -345,19 +345,19 @@ function Mc() {
|
|
|
345
345
|
borderWidth: G(),
|
|
346
346
|
contrast: oe(),
|
|
347
347
|
grayscale: R(),
|
|
348
|
-
hueRotate:
|
|
348
|
+
hueRotate: ae(),
|
|
349
349
|
invert: R(),
|
|
350
350
|
gap: T(),
|
|
351
351
|
gradientColorStops: [e],
|
|
352
352
|
gradientColorStopPositions: [Cc, tn],
|
|
353
|
-
inset:
|
|
354
|
-
margin:
|
|
353
|
+
inset: D(),
|
|
354
|
+
margin: D(),
|
|
355
355
|
opacity: oe(),
|
|
356
356
|
padding: T(),
|
|
357
357
|
saturate: oe(),
|
|
358
358
|
scale: oe(),
|
|
359
359
|
sepia: R(),
|
|
360
|
-
skew:
|
|
360
|
+
skew: ae(),
|
|
361
361
|
space: T(),
|
|
362
362
|
translate: T()
|
|
363
363
|
},
|
|
@@ -481,21 +481,21 @@ function Mc() {
|
|
|
481
481
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
482
482
|
*/
|
|
483
483
|
overscroll: [{
|
|
484
|
-
overscroll:
|
|
484
|
+
overscroll: N()
|
|
485
485
|
}],
|
|
486
486
|
/**
|
|
487
487
|
* Overscroll Behavior X
|
|
488
488
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
489
489
|
*/
|
|
490
490
|
"overscroll-x": [{
|
|
491
|
-
"overscroll-x":
|
|
491
|
+
"overscroll-x": N()
|
|
492
492
|
}],
|
|
493
493
|
/**
|
|
494
494
|
* Overscroll Behavior Y
|
|
495
495
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
496
496
|
*/
|
|
497
497
|
"overscroll-y": [{
|
|
498
|
-
"overscroll-y":
|
|
498
|
+
"overscroll-y": N()
|
|
499
499
|
}],
|
|
500
500
|
/**
|
|
501
501
|
* Position
|
|
@@ -583,7 +583,7 @@ function Mc() {
|
|
|
583
583
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
584
584
|
*/
|
|
585
585
|
basis: [{
|
|
586
|
-
basis:
|
|
586
|
+
basis: D()
|
|
587
587
|
}],
|
|
588
588
|
/**
|
|
589
589
|
* Flex Direction
|
|
@@ -1062,7 +1062,7 @@ function Mc() {
|
|
|
1062
1062
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1063
1063
|
*/
|
|
1064
1064
|
"line-clamp": [{
|
|
1065
|
-
"line-clamp": ["none",
|
|
1065
|
+
"line-clamp": ["none", De, pt]
|
|
1066
1066
|
}],
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Line Height
|
|
@@ -1435,63 +1435,63 @@ function Mc() {
|
|
|
1435
1435
|
* @see https://tailwindcss.com/docs/border-width
|
|
1436
1436
|
*/
|
|
1437
1437
|
"border-w": [{
|
|
1438
|
-
border: [
|
|
1438
|
+
border: [i]
|
|
1439
1439
|
}],
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Border Width X
|
|
1442
1442
|
* @see https://tailwindcss.com/docs/border-width
|
|
1443
1443
|
*/
|
|
1444
1444
|
"border-w-x": [{
|
|
1445
|
-
"border-x": [
|
|
1445
|
+
"border-x": [i]
|
|
1446
1446
|
}],
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Border Width Y
|
|
1449
1449
|
* @see https://tailwindcss.com/docs/border-width
|
|
1450
1450
|
*/
|
|
1451
1451
|
"border-w-y": [{
|
|
1452
|
-
"border-y": [
|
|
1452
|
+
"border-y": [i]
|
|
1453
1453
|
}],
|
|
1454
1454
|
/**
|
|
1455
1455
|
* Border Width Start
|
|
1456
1456
|
* @see https://tailwindcss.com/docs/border-width
|
|
1457
1457
|
*/
|
|
1458
1458
|
"border-w-s": [{
|
|
1459
|
-
"border-s": [
|
|
1459
|
+
"border-s": [i]
|
|
1460
1460
|
}],
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Border Width End
|
|
1463
1463
|
* @see https://tailwindcss.com/docs/border-width
|
|
1464
1464
|
*/
|
|
1465
1465
|
"border-w-e": [{
|
|
1466
|
-
"border-e": [
|
|
1466
|
+
"border-e": [i]
|
|
1467
1467
|
}],
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Border Width Top
|
|
1470
1470
|
* @see https://tailwindcss.com/docs/border-width
|
|
1471
1471
|
*/
|
|
1472
1472
|
"border-w-t": [{
|
|
1473
|
-
"border-t": [
|
|
1473
|
+
"border-t": [i]
|
|
1474
1474
|
}],
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Border Width Right
|
|
1477
1477
|
* @see https://tailwindcss.com/docs/border-width
|
|
1478
1478
|
*/
|
|
1479
1479
|
"border-w-r": [{
|
|
1480
|
-
"border-r": [
|
|
1480
|
+
"border-r": [i]
|
|
1481
1481
|
}],
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Border Width Bottom
|
|
1484
1484
|
* @see https://tailwindcss.com/docs/border-width
|
|
1485
1485
|
*/
|
|
1486
1486
|
"border-w-b": [{
|
|
1487
|
-
"border-b": [
|
|
1487
|
+
"border-b": [i]
|
|
1488
1488
|
}],
|
|
1489
1489
|
/**
|
|
1490
1490
|
* Border Width Left
|
|
1491
1491
|
* @see https://tailwindcss.com/docs/border-width
|
|
1492
1492
|
*/
|
|
1493
1493
|
"border-w-l": [{
|
|
1494
|
-
"border-l": [
|
|
1494
|
+
"border-l": [i]
|
|
1495
1495
|
}],
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Border Opacity
|
|
@@ -1512,7 +1512,7 @@ function Mc() {
|
|
|
1512
1512
|
* @see https://tailwindcss.com/docs/divide-width
|
|
1513
1513
|
*/
|
|
1514
1514
|
"divide-x": [{
|
|
1515
|
-
"divide-x": [
|
|
1515
|
+
"divide-x": [i]
|
|
1516
1516
|
}],
|
|
1517
1517
|
/**
|
|
1518
1518
|
* Divide Width X Reverse
|
|
@@ -1524,7 +1524,7 @@ function Mc() {
|
|
|
1524
1524
|
* @see https://tailwindcss.com/docs/divide-width
|
|
1525
1525
|
*/
|
|
1526
1526
|
"divide-y": [{
|
|
1527
|
-
"divide-y": [
|
|
1527
|
+
"divide-y": [i]
|
|
1528
1528
|
}],
|
|
1529
1529
|
/**
|
|
1530
1530
|
* Divide Width Y Reverse
|
|
@@ -1861,21 +1861,21 @@ function Mc() {
|
|
|
1861
1861
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1862
1862
|
*/
|
|
1863
1863
|
"border-spacing": [{
|
|
1864
|
-
"border-spacing": [
|
|
1864
|
+
"border-spacing": [a]
|
|
1865
1865
|
}],
|
|
1866
1866
|
/**
|
|
1867
1867
|
* Border Spacing X
|
|
1868
1868
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1869
1869
|
*/
|
|
1870
1870
|
"border-spacing-x": [{
|
|
1871
|
-
"border-spacing-x": [
|
|
1871
|
+
"border-spacing-x": [a]
|
|
1872
1872
|
}],
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Border Spacing Y
|
|
1875
1875
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1876
1876
|
*/
|
|
1877
1877
|
"border-spacing-y": [{
|
|
1878
|
-
"border-spacing-y": [
|
|
1878
|
+
"border-spacing-y": [a]
|
|
1879
1879
|
}],
|
|
1880
1880
|
/**
|
|
1881
1881
|
* Table Layout
|
|
@@ -1904,7 +1904,7 @@ function Mc() {
|
|
|
1904
1904
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1905
1905
|
*/
|
|
1906
1906
|
duration: [{
|
|
1907
|
-
duration:
|
|
1907
|
+
duration: ae()
|
|
1908
1908
|
}],
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Transition Timing Function
|
|
@@ -1918,7 +1918,7 @@ function Mc() {
|
|
|
1918
1918
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1919
1919
|
*/
|
|
1920
1920
|
delay: [{
|
|
1921
|
-
delay:
|
|
1921
|
+
delay: ae()
|
|
1922
1922
|
}],
|
|
1923
1923
|
/**
|
|
1924
1924
|
* Animation
|
|
@@ -2331,8 +2331,8 @@ const Hd = ({
|
|
|
2331
2331
|
Tc[o],
|
|
2332
2332
|
t
|
|
2333
2333
|
);
|
|
2334
|
-
return /* @__PURE__ */
|
|
2335
|
-
},
|
|
2334
|
+
return /* @__PURE__ */ k("button", { className: c, ...r, children: e });
|
|
2335
|
+
}, kn = {
|
|
2336
2336
|
default: "stroke-1",
|
|
2337
2337
|
primary: "fill-amber-400 stroke-black",
|
|
2338
2338
|
secondary: "fill-purple-400 stroke-white"
|
|
@@ -2349,11 +2349,11 @@ const zd = ({
|
|
|
2349
2349
|
...n
|
|
2350
2350
|
}) => {
|
|
2351
2351
|
const o = K(Oc[t]), r = K(
|
|
2352
|
-
|
|
2353
|
-
|
|
2352
|
+
kn.default,
|
|
2353
|
+
kn[e],
|
|
2354
2354
|
"animate-spin origin-center"
|
|
2355
2355
|
);
|
|
2356
|
-
return /* @__PURE__ */
|
|
2356
|
+
return /* @__PURE__ */ k("svg", { role: "img", className: o, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n, children: /* @__PURE__ */ k(
|
|
2357
2357
|
"path",
|
|
2358
2358
|
{
|
|
2359
2359
|
className: r,
|
|
@@ -2365,22 +2365,22 @@ const zd = ({
|
|
|
2365
2365
|
"flex h-10 w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",
|
|
2366
2366
|
e
|
|
2367
2367
|
);
|
|
2368
|
-
return /* @__PURE__ */
|
|
2368
|
+
return /* @__PURE__ */ k("input", { className: o, type: t, ...n });
|
|
2369
2369
|
}, Kd = ({ className: e = "", ...t }) => {
|
|
2370
2370
|
const n = K(
|
|
2371
2371
|
"flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2372
2372
|
e
|
|
2373
2373
|
);
|
|
2374
|
-
return /* @__PURE__ */
|
|
2374
|
+
return /* @__PURE__ */ k("textarea", { className: n, ...t });
|
|
2375
2375
|
}, Vd = ({ children: e, className: t = "", ...n }) => {
|
|
2376
2376
|
const o = K("text-base font-medium", t);
|
|
2377
|
-
return /* @__PURE__ */
|
|
2377
|
+
return /* @__PURE__ */ k("p", { className: o, ...n, children: e });
|
|
2378
2378
|
}, jd = ({ children: e, className: t = "", ...n }) => {
|
|
2379
2379
|
const o = K(
|
|
2380
2380
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
2381
2381
|
t
|
|
2382
2382
|
);
|
|
2383
|
-
return /* @__PURE__ */
|
|
2383
|
+
return /* @__PURE__ */ k("label", { className: o, ...n, children: e });
|
|
2384
2384
|
}, Ac = {
|
|
2385
2385
|
h1: "text-2xl",
|
|
2386
2386
|
h2: "text-xl",
|
|
@@ -2403,47 +2403,47 @@ const Yd = ({
|
|
|
2403
2403
|
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
2404
2404
|
e
|
|
2405
2405
|
);
|
|
2406
|
-
return /* @__PURE__ */
|
|
2406
|
+
return /* @__PURE__ */ k("input", { id: t.id, className: n, type: "checkbox", ...t });
|
|
2407
2407
|
}, Ic = S.forwardRef(({ className: e = "", ...t }, n) => {
|
|
2408
2408
|
const o = K(
|
|
2409
2409
|
"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
2410
|
e
|
|
2411
2411
|
);
|
|
2412
|
-
return /* @__PURE__ */
|
|
2412
|
+
return /* @__PURE__ */ k("div", { ref: n, className: o, ...t });
|
|
2413
2413
|
});
|
|
2414
2414
|
Ic.displayName = "Card";
|
|
2415
|
-
const
|
|
2415
|
+
const kc = S.forwardRef(
|
|
2416
2416
|
({ className: e = "", ...t }, n) => {
|
|
2417
2417
|
const o = K("flex flex-col space-y-1.5 p-6", e);
|
|
2418
|
-
return /* @__PURE__ */
|
|
2418
|
+
return /* @__PURE__ */ k("div", { ref: n, className: o, ...t });
|
|
2419
2419
|
}
|
|
2420
2420
|
);
|
|
2421
|
-
|
|
2422
|
-
const
|
|
2421
|
+
kc.displayName = "CardHeader";
|
|
2422
|
+
const Nc = S.forwardRef(
|
|
2423
2423
|
({ className: e = "", ...t }, n) => {
|
|
2424
2424
|
const o = K("text-2xl font-semibold leading-none tracking-tight", e);
|
|
2425
|
-
return /* @__PURE__ */
|
|
2425
|
+
return /* @__PURE__ */ k("h3", { ref: n, className: o, ...t });
|
|
2426
2426
|
}
|
|
2427
2427
|
);
|
|
2428
|
-
|
|
2429
|
-
const
|
|
2428
|
+
Nc.displayName = "CardTitle";
|
|
2429
|
+
const Dc = S.forwardRef(
|
|
2430
2430
|
({ className: e = "", ...t }, n) => {
|
|
2431
2431
|
const o = K("text-sm text-neutral-500 dark:text-neutral-400", e);
|
|
2432
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ k("p", { ref: n, className: o, ...t });
|
|
2433
2433
|
}
|
|
2434
2434
|
);
|
|
2435
|
-
|
|
2435
|
+
Dc.displayName = "CardDescription";
|
|
2436
2436
|
const Fc = S.forwardRef(
|
|
2437
2437
|
({ className: e = "", ...t }, n) => {
|
|
2438
2438
|
const o = K("p-6 pt-0", e);
|
|
2439
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ k("div", { ref: n, className: o, ...t });
|
|
2440
2440
|
}
|
|
2441
2441
|
);
|
|
2442
2442
|
Fc.displayName = "CardContent";
|
|
2443
2443
|
const Lc = S.forwardRef(
|
|
2444
2444
|
({ className: e = "", ...t }, n) => {
|
|
2445
2445
|
const o = K("flex items-center p-6 pt-0", e);
|
|
2446
|
-
return /* @__PURE__ */
|
|
2446
|
+
return /* @__PURE__ */ k("div", { ref: n, className: o, ...t });
|
|
2447
2447
|
}
|
|
2448
2448
|
);
|
|
2449
2449
|
Lc.displayName = "CardFooter";
|
|
@@ -2466,24 +2466,24 @@ function A(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
2466
2466
|
function Bc(e, t) {
|
|
2467
2467
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function kt(...e) {
|
|
2470
2470
|
return (t) => e.forEach(
|
|
2471
2471
|
(n) => Bc(n, t)
|
|
2472
2472
|
);
|
|
2473
2473
|
}
|
|
2474
2474
|
function ce(...e) {
|
|
2475
|
-
return Z(
|
|
2475
|
+
return Z(kt(...e), e);
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function ke(e, t = []) {
|
|
2478
2478
|
let n = [];
|
|
2479
|
-
function o(c,
|
|
2480
|
-
const
|
|
2479
|
+
function o(c, a) {
|
|
2480
|
+
const i = /* @__PURE__ */ Pt(a), s = n.length;
|
|
2481
2481
|
n = [
|
|
2482
2482
|
...n,
|
|
2483
|
-
|
|
2483
|
+
a
|
|
2484
2484
|
];
|
|
2485
2485
|
function d(l) {
|
|
2486
|
-
const { scope: v, children: f, ...m } = l, p = (v == null ? void 0 : v[e][s]) ||
|
|
2486
|
+
const { scope: v, children: f, ...m } = l, p = (v == null ? void 0 : v[e][s]) || i, b = Ve(
|
|
2487
2487
|
() => m,
|
|
2488
2488
|
Object.values(m)
|
|
2489
2489
|
);
|
|
@@ -2492,11 +2492,11 @@ function Ne(e, t = []) {
|
|
|
2492
2492
|
}, f);
|
|
2493
2493
|
}
|
|
2494
2494
|
function u(l, v) {
|
|
2495
|
-
const f = (v == null ? void 0 : v[e][s]) ||
|
|
2495
|
+
const f = (v == null ? void 0 : v[e][s]) || i, m = fn(f);
|
|
2496
2496
|
if (m)
|
|
2497
2497
|
return m;
|
|
2498
|
-
if (
|
|
2499
|
-
return
|
|
2498
|
+
if (a !== void 0)
|
|
2499
|
+
return a;
|
|
2500
2500
|
throw new Error(`\`${l}\` must be used within \`${c}\``);
|
|
2501
2501
|
}
|
|
2502
2502
|
return d.displayName = c + "Provider", [
|
|
@@ -2505,18 +2505,18 @@ function Ne(e, t = []) {
|
|
|
2505
2505
|
];
|
|
2506
2506
|
}
|
|
2507
2507
|
const r = () => {
|
|
2508
|
-
const c = n.map((
|
|
2509
|
-
return function(
|
|
2510
|
-
const s = (
|
|
2508
|
+
const c = n.map((a) => /* @__PURE__ */ Pt(a));
|
|
2509
|
+
return function(i) {
|
|
2510
|
+
const s = (i == null ? void 0 : i[e]) || c;
|
|
2511
2511
|
return Ve(
|
|
2512
2512
|
() => ({
|
|
2513
2513
|
[`__scope${e}`]: {
|
|
2514
|
-
...
|
|
2514
|
+
...i,
|
|
2515
2515
|
[e]: s
|
|
2516
2516
|
}
|
|
2517
2517
|
}),
|
|
2518
2518
|
[
|
|
2519
|
-
|
|
2519
|
+
i,
|
|
2520
2520
|
s
|
|
2521
2521
|
]
|
|
2522
2522
|
);
|
|
@@ -2539,19 +2539,19 @@ function Gc(...e) {
|
|
|
2539
2539
|
})
|
|
2540
2540
|
);
|
|
2541
2541
|
return function(c) {
|
|
2542
|
-
const
|
|
2542
|
+
const a = o.reduce((i, { useScope: s, scopeName: d }) => {
|
|
2543
2543
|
const l = s(c)[`__scope${d}`];
|
|
2544
2544
|
return {
|
|
2545
|
-
...
|
|
2545
|
+
...i,
|
|
2546
2546
|
...l
|
|
2547
2547
|
};
|
|
2548
2548
|
}, {});
|
|
2549
2549
|
return Ve(
|
|
2550
2550
|
() => ({
|
|
2551
|
-
[`__scope${t.scopeName}`]:
|
|
2551
|
+
[`__scope${t.scopeName}`]: a
|
|
2552
2552
|
}),
|
|
2553
2553
|
[
|
|
2554
|
-
|
|
2554
|
+
a
|
|
2555
2555
|
]
|
|
2556
2556
|
);
|
|
2557
2557
|
};
|
|
@@ -2575,20 +2575,20 @@ function je({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2575
2575
|
const [o, r] = Wc({
|
|
2576
2576
|
defaultProp: t,
|
|
2577
2577
|
onChange: n
|
|
2578
|
-
}), c = e !== void 0,
|
|
2578
|
+
}), c = e !== void 0, a = c ? e : o, i = ve(n), s = Z((d) => {
|
|
2579
2579
|
if (c) {
|
|
2580
2580
|
const l = typeof d == "function" ? d(e) : d;
|
|
2581
|
-
l !== e &&
|
|
2581
|
+
l !== e && i(l);
|
|
2582
2582
|
} else
|
|
2583
2583
|
r(d);
|
|
2584
2584
|
}, [
|
|
2585
2585
|
c,
|
|
2586
2586
|
e,
|
|
2587
2587
|
r,
|
|
2588
|
-
|
|
2588
|
+
i
|
|
2589
2589
|
]);
|
|
2590
2590
|
return [
|
|
2591
|
-
|
|
2591
|
+
a,
|
|
2592
2592
|
s
|
|
2593
2593
|
];
|
|
2594
2594
|
}
|
|
@@ -2605,10 +2605,10 @@ function Wc({ defaultProp: e, onChange: t }) {
|
|
|
2605
2605
|
const Ye = /* @__PURE__ */ _((e, t) => {
|
|
2606
2606
|
const { children: n, ...o } = e, r = Ue.toArray(n), c = r.find(zc);
|
|
2607
2607
|
if (c) {
|
|
2608
|
-
const
|
|
2608
|
+
const a = c.props.children, i = r.map((s) => s === c ? Ue.count(a) > 1 ? Ue.only(null) : /* @__PURE__ */ Et(a) ? a.props.children : null : s);
|
|
2609
2609
|
return /* @__PURE__ */ $(nn, C({}, o, {
|
|
2610
2610
|
ref: t
|
|
2611
|
-
}), /* @__PURE__ */ Et(
|
|
2611
|
+
}), /* @__PURE__ */ Et(a) ? /* @__PURE__ */ pn(a, void 0, i) : null);
|
|
2612
2612
|
}
|
|
2613
2613
|
return /* @__PURE__ */ $(nn, C({}, o, {
|
|
2614
2614
|
ref: t
|
|
@@ -2619,7 +2619,7 @@ const nn = /* @__PURE__ */ _((e, t) => {
|
|
|
2619
2619
|
const { children: n, ...o } = e;
|
|
2620
2620
|
return /* @__PURE__ */ Et(n) ? /* @__PURE__ */ pn(n, {
|
|
2621
2621
|
...Uc(o, n.props),
|
|
2622
|
-
ref: t ?
|
|
2622
|
+
ref: t ? kt(t, n.ref) : n.ref
|
|
2623
2623
|
}) : Ue.count(n) > 1 ? Ue.only(null) : null;
|
|
2624
2624
|
});
|
|
2625
2625
|
nn.displayName = "SlotClone";
|
|
@@ -2633,8 +2633,8 @@ function Uc(e, t) {
|
|
|
2633
2633
|
};
|
|
2634
2634
|
for (const o in t) {
|
|
2635
2635
|
const r = e[o], c = t[o];
|
|
2636
|
-
/^on[A-Z]/.test(o) ? r && c ? n[o] = (...
|
|
2637
|
-
c(...
|
|
2636
|
+
/^on[A-Z]/.test(o) ? r && c ? n[o] = (...i) => {
|
|
2637
|
+
c(...i), r(...i);
|
|
2638
2638
|
} : r && (n[o] = r) : o === "style" ? n[o] = {
|
|
2639
2639
|
...r,
|
|
2640
2640
|
...c
|
|
@@ -2667,10 +2667,10 @@ const Kc = [
|
|
|
2667
2667
|
"ul"
|
|
2668
2668
|
], Q = Kc.reduce((e, t) => {
|
|
2669
2669
|
const n = /* @__PURE__ */ _((o, r) => {
|
|
2670
|
-
const { asChild: c, ...
|
|
2670
|
+
const { asChild: c, ...a } = o, i = c ? Ye : t;
|
|
2671
2671
|
return U(() => {
|
|
2672
2672
|
window[Symbol.for("radix-ui")] = !0;
|
|
2673
|
-
}, []), /* @__PURE__ */ $(
|
|
2673
|
+
}, []), /* @__PURE__ */ $(i, C({}, a, {
|
|
2674
2674
|
ref: r
|
|
2675
2675
|
}));
|
|
2676
2676
|
});
|
|
@@ -2680,25 +2680,25 @@ const Kc = [
|
|
|
2680
2680
|
};
|
|
2681
2681
|
}, {});
|
|
2682
2682
|
function $o(e, t) {
|
|
2683
|
-
e &&
|
|
2683
|
+
e && ao(
|
|
2684
2684
|
() => e.dispatchEvent(t)
|
|
2685
2685
|
);
|
|
2686
2686
|
}
|
|
2687
2687
|
function vn(e) {
|
|
2688
|
-
const t = e + "CollectionProvider", [n, o] =
|
|
2688
|
+
const t = e + "CollectionProvider", [n, o] = ke(t), [r, c] = n(t, {
|
|
2689
2689
|
collectionRef: {
|
|
2690
2690
|
current: null
|
|
2691
2691
|
},
|
|
2692
2692
|
itemMap: /* @__PURE__ */ new Map()
|
|
2693
|
-
}),
|
|
2693
|
+
}), a = (f) => {
|
|
2694
2694
|
const { scope: m, children: p } = f, b = xe.useRef(null), g = xe.useRef(/* @__PURE__ */ new Map()).current;
|
|
2695
2695
|
return /* @__PURE__ */ xe.createElement(r, {
|
|
2696
2696
|
scope: m,
|
|
2697
2697
|
itemMap: g,
|
|
2698
2698
|
collectionRef: b
|
|
2699
2699
|
}, p);
|
|
2700
|
-
},
|
|
2701
|
-
const { scope: p, children: b } = f, g = c(
|
|
2700
|
+
}, i = e + "CollectionSlot", s = /* @__PURE__ */ xe.forwardRef((f, m) => {
|
|
2701
|
+
const { scope: p, children: b } = f, g = c(i, p), h = ce(m, g.collectionRef);
|
|
2702
2702
|
return /* @__PURE__ */ xe.createElement(Ye, {
|
|
2703
2703
|
ref: h
|
|
2704
2704
|
}, b);
|
|
@@ -2729,7 +2729,7 @@ function vn(e) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
return [
|
|
2731
2731
|
{
|
|
2732
|
-
Provider:
|
|
2732
|
+
Provider: a,
|
|
2733
2733
|
Slot: s,
|
|
2734
2734
|
ItemSlot: l
|
|
2735
2735
|
},
|
|
@@ -2738,7 +2738,7 @@ function vn(e) {
|
|
|
2738
2738
|
];
|
|
2739
2739
|
}
|
|
2740
2740
|
const Vc = /* @__PURE__ */ Pt(void 0);
|
|
2741
|
-
function
|
|
2741
|
+
function Nt(e) {
|
|
2742
2742
|
const t = fn(Vc);
|
|
2743
2743
|
return e || t || "ltr";
|
|
2744
2744
|
}
|
|
@@ -2755,39 +2755,39 @@ function jc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2755
2755
|
]);
|
|
2756
2756
|
}
|
|
2757
2757
|
const on = "dismissableLayer.update", Yc = "dismissableLayer.pointerDownOutside", Xc = "dismissableLayer.focusOutside";
|
|
2758
|
-
let
|
|
2758
|
+
let Nn;
|
|
2759
2759
|
const qc = /* @__PURE__ */ Pt({
|
|
2760
2760
|
layers: /* @__PURE__ */ new Set(),
|
|
2761
2761
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2762
2762
|
branches: /* @__PURE__ */ new Set()
|
|
2763
2763
|
}), xo = /* @__PURE__ */ _((e, t) => {
|
|
2764
2764
|
var n;
|
|
2765
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside:
|
|
2765
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: r, onPointerDownOutside: c, onFocusOutside: a, onInteractOutside: i, onDismiss: s, ...d } = e, u = fn(qc), [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
2766
|
t,
|
|
2767
2767
|
(E) => v(E)
|
|
2768
2768
|
), b = Array.from(u.layers), [g] = [
|
|
2769
2769
|
...u.layersWithOutsidePointerEventsDisabled
|
|
2770
2770
|
].slice(-1), h = b.indexOf(g), x = l ? b.indexOf(l) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, y = x >= h, M = Zc((E) => {
|
|
2771
|
-
const
|
|
2771
|
+
const N = E.target, z = [
|
|
2772
2772
|
...u.branches
|
|
2773
2773
|
].some(
|
|
2774
|
-
(
|
|
2774
|
+
(D) => D.contains(N)
|
|
2775
2775
|
);
|
|
2776
|
-
!y || z || (c == null || c(E),
|
|
2776
|
+
!y || z || (c == null || c(E), i == null || i(E), E.defaultPrevented || s == null || s());
|
|
2777
2777
|
}, f), P = Qc((E) => {
|
|
2778
|
-
const
|
|
2778
|
+
const N = E.target;
|
|
2779
2779
|
[
|
|
2780
2780
|
...u.branches
|
|
2781
2781
|
].some(
|
|
2782
|
-
(
|
|
2783
|
-
) || (
|
|
2782
|
+
(D) => D.contains(N)
|
|
2783
|
+
) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
|
|
2784
2784
|
}, f);
|
|
2785
2785
|
return jc((E) => {
|
|
2786
2786
|
x === u.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
|
|
2787
2787
|
}, f), U(() => {
|
|
2788
2788
|
if (l)
|
|
2789
|
-
return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
2790
|
-
o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents =
|
|
2789
|
+
return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Nn = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), Dn(), () => {
|
|
2790
|
+
o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = Nn);
|
|
2791
2791
|
};
|
|
2792
2792
|
}, [
|
|
2793
2793
|
l,
|
|
@@ -2795,7 +2795,7 @@ const qc = /* @__PURE__ */ Pt({
|
|
|
2795
2795
|
o,
|
|
2796
2796
|
u
|
|
2797
2797
|
]), U(() => () => {
|
|
2798
|
-
l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l),
|
|
2798
|
+
l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), Dn());
|
|
2799
2799
|
}, [
|
|
2800
2800
|
l,
|
|
2801
2801
|
u
|
|
@@ -2817,26 +2817,26 @@ function Zc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2817
2817
|
const n = ve(e), o = L(!1), r = L(() => {
|
|
2818
2818
|
});
|
|
2819
2819
|
return U(() => {
|
|
2820
|
-
const c = (
|
|
2821
|
-
if (
|
|
2820
|
+
const c = (i) => {
|
|
2821
|
+
if (i.target && !o.current) {
|
|
2822
2822
|
let d = function() {
|
|
2823
2823
|
wo(Yc, n, s, {
|
|
2824
2824
|
discrete: !0
|
|
2825
2825
|
});
|
|
2826
2826
|
};
|
|
2827
2827
|
const s = {
|
|
2828
|
-
originalEvent:
|
|
2828
|
+
originalEvent: i
|
|
2829
2829
|
};
|
|
2830
|
-
|
|
2830
|
+
i.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = d, t.addEventListener("click", r.current, {
|
|
2831
2831
|
once: !0
|
|
2832
2832
|
})) : d();
|
|
2833
2833
|
}
|
|
2834
2834
|
o.current = !1;
|
|
2835
|
-
},
|
|
2835
|
+
}, a = window.setTimeout(() => {
|
|
2836
2836
|
t.addEventListener("pointerdown", c);
|
|
2837
2837
|
}, 0);
|
|
2838
2838
|
return () => {
|
|
2839
|
-
window.clearTimeout(
|
|
2839
|
+
window.clearTimeout(a), t.removeEventListener("pointerdown", c), t.removeEventListener("click", r.current);
|
|
2840
2840
|
};
|
|
2841
2841
|
}, [
|
|
2842
2842
|
t,
|
|
@@ -2865,7 +2865,7 @@ function Qc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
2865
2865
|
onBlurCapture: () => o.current = !1
|
|
2866
2866
|
};
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Dn() {
|
|
2869
2869
|
const e = new CustomEvent(on);
|
|
2870
2870
|
document.dispatchEvent(e);
|
|
2871
2871
|
}
|
|
@@ -2899,7 +2899,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2899
2899
|
bubbles: !1,
|
|
2900
2900
|
cancelable: !0
|
|
2901
2901
|
}, Co = /* @__PURE__ */ _((e, t) => {
|
|
2902
|
-
const { loop: n = !1, trapped: o = !1, onMountAutoFocus: r, onUnmountAutoFocus: c, ...
|
|
2902
|
+
const { loop: n = !1, trapped: o = !1, onMountAutoFocus: r, onUnmountAutoFocus: c, ...a } = e, [i, s] = H(null), d = ve(r), u = ve(c), l = L(null), v = ce(
|
|
2903
2903
|
t,
|
|
2904
2904
|
(p) => s(p)
|
|
2905
2905
|
), f = L({
|
|
@@ -2914,27 +2914,27 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2914
2914
|
U(() => {
|
|
2915
2915
|
if (o) {
|
|
2916
2916
|
let p = function(x) {
|
|
2917
|
-
if (f.paused || !
|
|
2917
|
+
if (f.paused || !i)
|
|
2918
2918
|
return;
|
|
2919
2919
|
const w = x.target;
|
|
2920
|
-
|
|
2920
|
+
i.contains(w) ? l.current = w : Re(l.current, {
|
|
2921
2921
|
select: !0
|
|
2922
2922
|
});
|
|
2923
2923
|
}, b = function(x) {
|
|
2924
|
-
if (f.paused || !
|
|
2924
|
+
if (f.paused || !i)
|
|
2925
2925
|
return;
|
|
2926
2926
|
const w = x.relatedTarget;
|
|
2927
|
-
w !== null && (
|
|
2927
|
+
w !== null && (i.contains(w) || Re(l.current, {
|
|
2928
2928
|
select: !0
|
|
2929
2929
|
}));
|
|
2930
2930
|
}, g = function(x) {
|
|
2931
2931
|
const w = document.activeElement;
|
|
2932
2932
|
for (const y of x)
|
|
2933
|
-
y.removedNodes.length > 0 && (
|
|
2933
|
+
y.removedNodes.length > 0 && (i != null && i.contains(w) || Re(i));
|
|
2934
2934
|
};
|
|
2935
2935
|
document.addEventListener("focusin", p), document.addEventListener("focusout", b);
|
|
2936
2936
|
const h = new MutationObserver(g);
|
|
2937
|
-
return
|
|
2937
|
+
return i && h.observe(i, {
|
|
2938
2938
|
childList: !0,
|
|
2939
2939
|
subtree: !0
|
|
2940
2940
|
}), () => {
|
|
@@ -2943,29 +2943,29 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2943
2943
|
}
|
|
2944
2944
|
}, [
|
|
2945
2945
|
o,
|
|
2946
|
-
|
|
2946
|
+
i,
|
|
2947
2947
|
f.paused
|
|
2948
2948
|
]), U(() => {
|
|
2949
|
-
if (
|
|
2949
|
+
if (i) {
|
|
2950
2950
|
Gn.add(f);
|
|
2951
2951
|
const p = document.activeElement;
|
|
2952
|
-
if (!
|
|
2952
|
+
if (!i.contains(p)) {
|
|
2953
2953
|
const g = new CustomEvent(Yt, Ln);
|
|
2954
|
-
|
|
2954
|
+
i.addEventListener(Yt, d), i.dispatchEvent(g), g.defaultPrevented || (Jc(ra(So(i)), {
|
|
2955
2955
|
select: !0
|
|
2956
|
-
}), document.activeElement === p && Re(
|
|
2956
|
+
}), document.activeElement === p && Re(i));
|
|
2957
2957
|
}
|
|
2958
2958
|
return () => {
|
|
2959
|
-
|
|
2959
|
+
i.removeEventListener(Yt, d), setTimeout(() => {
|
|
2960
2960
|
const g = new CustomEvent(Xt, Ln);
|
|
2961
|
-
|
|
2961
|
+
i.addEventListener(Xt, u), i.dispatchEvent(g), g.defaultPrevented || Re(p ?? document.body, {
|
|
2962
2962
|
select: !0
|
|
2963
|
-
}),
|
|
2963
|
+
}), i.removeEventListener(Xt, u), Gn.remove(f);
|
|
2964
2964
|
}, 0);
|
|
2965
2965
|
};
|
|
2966
2966
|
}
|
|
2967
2967
|
}, [
|
|
2968
|
-
|
|
2968
|
+
i,
|
|
2969
2969
|
d,
|
|
2970
2970
|
u,
|
|
2971
2971
|
f
|
|
@@ -2975,7 +2975,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2975
2975
|
return;
|
|
2976
2976
|
const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, g = document.activeElement;
|
|
2977
2977
|
if (b && g) {
|
|
2978
|
-
const h = p.currentTarget, [x, w] =
|
|
2978
|
+
const h = p.currentTarget, [x, w] = ea(h);
|
|
2979
2979
|
x && w ? !p.shiftKey && g === w ? (p.preventDefault(), n && Re(x, {
|
|
2980
2980
|
select: !0
|
|
2981
2981
|
})) : p.shiftKey && g === x && (p.preventDefault(), n && Re(w, {
|
|
@@ -2989,7 +2989,7 @@ const Yt = "focusScope.autoFocusOnMount", Xt = "focusScope.autoFocusOnUnmount",
|
|
|
2989
2989
|
]);
|
|
2990
2990
|
return /* @__PURE__ */ $(Q.div, C({
|
|
2991
2991
|
tabIndex: -1
|
|
2992
|
-
},
|
|
2992
|
+
}, a, {
|
|
2993
2993
|
ref: v,
|
|
2994
2994
|
onKeyDown: m
|
|
2995
2995
|
}));
|
|
@@ -3002,7 +3002,7 @@ function Jc(e, { select: t = !1 } = {}) {
|
|
|
3002
3002
|
}), document.activeElement !== n)
|
|
3003
3003
|
return;
|
|
3004
3004
|
}
|
|
3005
|
-
function
|
|
3005
|
+
function ea(e) {
|
|
3006
3006
|
const t = So(e), n = Bn(t, e), o = Bn(t.reverse(), e);
|
|
3007
3007
|
return [
|
|
3008
3008
|
n,
|
|
@@ -3022,12 +3022,12 @@ function So(e) {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
function Bn(e, t) {
|
|
3024
3024
|
for (const n of e)
|
|
3025
|
-
if (!
|
|
3025
|
+
if (!ta(n, {
|
|
3026
3026
|
upTo: t
|
|
3027
3027
|
}))
|
|
3028
3028
|
return n;
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function ta(e, { upTo: t }) {
|
|
3031
3031
|
if (getComputedStyle(e).visibility === "hidden")
|
|
3032
3032
|
return !0;
|
|
3033
3033
|
for (; e; ) {
|
|
@@ -3039,7 +3039,7 @@ function ti(e, { upTo: t }) {
|
|
|
3039
3039
|
}
|
|
3040
3040
|
return !1;
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function na(e) {
|
|
3043
3043
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3044
3044
|
}
|
|
3045
3045
|
function Re(e, { select: t = !1 } = {}) {
|
|
@@ -3047,11 +3047,11 @@ function Re(e, { select: t = !1 } = {}) {
|
|
|
3047
3047
|
const n = document.activeElement;
|
|
3048
3048
|
e.focus({
|
|
3049
3049
|
preventScroll: !0
|
|
3050
|
-
}), e !== n &&
|
|
3050
|
+
}), e !== n && na(e) && t && e.select();
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
|
-
const Gn =
|
|
3054
|
-
function
|
|
3053
|
+
const Gn = oa();
|
|
3054
|
+
function oa() {
|
|
3055
3055
|
let e = [];
|
|
3056
3056
|
return {
|
|
3057
3057
|
add(t) {
|
|
@@ -3070,34 +3070,34 @@ function Wn(e, t) {
|
|
|
3070
3070
|
], o = n.indexOf(t);
|
|
3071
3071
|
return o !== -1 && n.splice(o, 1), n;
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function ra(e) {
|
|
3074
3074
|
return e.filter(
|
|
3075
3075
|
(t) => t.tagName !== "A"
|
|
3076
3076
|
);
|
|
3077
3077
|
}
|
|
3078
3078
|
const $e = globalThis != null && globalThis.document ? co : () => {
|
|
3079
|
-
},
|
|
3079
|
+
}, ca = S["useId".toString()] || (() => {
|
|
3080
3080
|
});
|
|
3081
|
-
let
|
|
3081
|
+
let aa = 0;
|
|
3082
3082
|
function Te(e) {
|
|
3083
|
-
const [t, n] = S.useState(
|
|
3083
|
+
const [t, n] = S.useState(ca());
|
|
3084
3084
|
return $e(() => {
|
|
3085
3085
|
e || n(
|
|
3086
|
-
(o) => o ?? String(
|
|
3086
|
+
(o) => o ?? String(aa++)
|
|
3087
3087
|
);
|
|
3088
3088
|
}, [
|
|
3089
3089
|
e
|
|
3090
3090
|
]), e || (t ? `radix-${t}` : "");
|
|
3091
3091
|
}
|
|
3092
|
-
const
|
|
3092
|
+
const ia = ["top", "right", "bottom", "left"], Oe = Math.min, pe = Math.max, _t = Math.round, mt = Math.floor, Ae = (e) => ({
|
|
3093
3093
|
x: e,
|
|
3094
3094
|
y: e
|
|
3095
|
-
}),
|
|
3095
|
+
}), sa = {
|
|
3096
3096
|
left: "right",
|
|
3097
3097
|
right: "left",
|
|
3098
3098
|
bottom: "top",
|
|
3099
3099
|
top: "bottom"
|
|
3100
|
-
},
|
|
3100
|
+
}, la = {
|
|
3101
3101
|
start: "end",
|
|
3102
3102
|
end: "start"
|
|
3103
3103
|
};
|
|
@@ -3125,41 +3125,41 @@ function Qe(e) {
|
|
|
3125
3125
|
function bn(e) {
|
|
3126
3126
|
return gn(Qe(e));
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function da(e, t, n) {
|
|
3129
3129
|
n === void 0 && (n = !1);
|
|
3130
3130
|
const o = Ze(e), r = bn(e), c = hn(r);
|
|
3131
|
-
let
|
|
3132
|
-
return t.reference[c] > t.floating[c] && (
|
|
3131
|
+
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
3132
|
+
return t.reference[c] > t.floating[c] && (a = Mt(a)), [a, Mt(a)];
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3134
|
+
function ua(e) {
|
|
3135
3135
|
const t = Mt(e);
|
|
3136
3136
|
return [cn(e), t, cn(t)];
|
|
3137
3137
|
}
|
|
3138
3138
|
function cn(e) {
|
|
3139
|
-
return e.replace(/start|end/g, (t) =>
|
|
3139
|
+
return e.replace(/start|end/g, (t) => la[t]);
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3142
|
-
const o = ["left", "right"], r = ["right", "left"], c = ["top", "bottom"],
|
|
3141
|
+
function fa(e, t, n) {
|
|
3142
|
+
const o = ["left", "right"], r = ["right", "left"], c = ["top", "bottom"], a = ["bottom", "top"];
|
|
3143
3143
|
switch (e) {
|
|
3144
3144
|
case "top":
|
|
3145
3145
|
case "bottom":
|
|
3146
3146
|
return n ? t ? r : o : t ? o : r;
|
|
3147
3147
|
case "left":
|
|
3148
3148
|
case "right":
|
|
3149
|
-
return t ? c :
|
|
3149
|
+
return t ? c : a;
|
|
3150
3150
|
default:
|
|
3151
3151
|
return [];
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
3154
|
+
function pa(e, t, n, o) {
|
|
3155
3155
|
const r = Ze(e);
|
|
3156
|
-
let c =
|
|
3157
|
-
return r && (c = c.map((
|
|
3156
|
+
let c = fa(Pe(e), n === "start", o);
|
|
3157
|
+
return r && (c = c.map((a) => a + "-" + r), t && (c = c.concat(c.map(cn)))), c;
|
|
3158
3158
|
}
|
|
3159
3159
|
function Mt(e) {
|
|
3160
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
3160
|
+
return e.replace(/left|right|bottom|top/g, (t) => sa[t]);
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function ma(e) {
|
|
3163
3163
|
return {
|
|
3164
3164
|
top: 0,
|
|
3165
3165
|
right: 0,
|
|
@@ -3169,7 +3169,7 @@ function mi(e) {
|
|
|
3169
3169
|
};
|
|
3170
3170
|
}
|
|
3171
3171
|
function Po(e) {
|
|
3172
|
-
return typeof e != "number" ?
|
|
3172
|
+
return typeof e != "number" ? ma(e) : {
|
|
3173
3173
|
top: e,
|
|
3174
3174
|
right: e,
|
|
3175
3175
|
bottom: e,
|
|
@@ -3190,7 +3190,7 @@ function Hn(e, t, n) {
|
|
|
3190
3190
|
reference: o,
|
|
3191
3191
|
floating: r
|
|
3192
3192
|
} = e;
|
|
3193
|
-
const c = Qe(t),
|
|
3193
|
+
const c = Qe(t), a = bn(t), i = hn(a), s = Pe(t), d = c === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, v = o[i] / 2 - r[i] / 2;
|
|
3194
3194
|
let f;
|
|
3195
3195
|
switch (s) {
|
|
3196
3196
|
case "top":
|
|
@@ -3225,22 +3225,22 @@ function Hn(e, t, n) {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
switch (Ze(t)) {
|
|
3227
3227
|
case "start":
|
|
3228
|
-
f[
|
|
3228
|
+
f[a] -= v * (n && d ? -1 : 1);
|
|
3229
3229
|
break;
|
|
3230
3230
|
case "end":
|
|
3231
|
-
f[
|
|
3231
|
+
f[a] += v * (n && d ? -1 : 1);
|
|
3232
3232
|
break;
|
|
3233
3233
|
}
|
|
3234
3234
|
return f;
|
|
3235
3235
|
}
|
|
3236
|
-
const
|
|
3236
|
+
const va = async (e, t, n) => {
|
|
3237
3237
|
const {
|
|
3238
3238
|
placement: o = "bottom",
|
|
3239
3239
|
strategy: r = "absolute",
|
|
3240
3240
|
middleware: c = [],
|
|
3241
|
-
platform:
|
|
3242
|
-
} = n,
|
|
3243
|
-
let d = await
|
|
3241
|
+
platform: a
|
|
3242
|
+
} = n, i = c.filter(Boolean), s = await (a.isRTL == null ? void 0 : a.isRTL(t));
|
|
3243
|
+
let d = await a.getElementRects({
|
|
3244
3244
|
reference: e,
|
|
3245
3245
|
floating: t,
|
|
3246
3246
|
strategy: r
|
|
@@ -3248,11 +3248,11 @@ const vi = async (e, t, n) => {
|
|
|
3248
3248
|
x: u,
|
|
3249
3249
|
y: l
|
|
3250
3250
|
} = Hn(d, o, s), v = o, f = {}, m = 0;
|
|
3251
|
-
for (let p = 0; p <
|
|
3251
|
+
for (let p = 0; p < i.length; p++) {
|
|
3252
3252
|
const {
|
|
3253
3253
|
name: b,
|
|
3254
3254
|
fn: g
|
|
3255
|
-
} =
|
|
3255
|
+
} = i[p], {
|
|
3256
3256
|
x: h,
|
|
3257
3257
|
y: x,
|
|
3258
3258
|
data: w,
|
|
@@ -3265,7 +3265,7 @@ const vi = async (e, t, n) => {
|
|
|
3265
3265
|
strategy: r,
|
|
3266
3266
|
middlewareData: f,
|
|
3267
3267
|
rects: d,
|
|
3268
|
-
platform:
|
|
3268
|
+
platform: a,
|
|
3269
3269
|
elements: {
|
|
3270
3270
|
reference: e,
|
|
3271
3271
|
floating: t
|
|
@@ -3278,7 +3278,7 @@ const vi = async (e, t, n) => {
|
|
|
3278
3278
|
...w
|
|
3279
3279
|
}
|
|
3280
3280
|
}, y && m <= 50) {
|
|
3281
|
-
m++, typeof y == "object" && (y.placement && (v = y.placement), y.rects && (d = y.rects === !0 ? await
|
|
3281
|
+
m++, typeof y == "object" && (y.placement && (v = y.placement), y.rects && (d = y.rects === !0 ? await a.getElementRects({
|
|
3282
3282
|
reference: e,
|
|
3283
3283
|
floating: t,
|
|
3284
3284
|
strategy: r
|
|
@@ -3297,15 +3297,15 @@ const vi = async (e, t, n) => {
|
|
|
3297
3297
|
middlewareData: f
|
|
3298
3298
|
};
|
|
3299
3299
|
};
|
|
3300
|
-
async function
|
|
3300
|
+
async function at(e, t) {
|
|
3301
3301
|
var n;
|
|
3302
3302
|
t === void 0 && (t = {});
|
|
3303
3303
|
const {
|
|
3304
3304
|
x: o,
|
|
3305
3305
|
y: r,
|
|
3306
3306
|
platform: c,
|
|
3307
|
-
rects:
|
|
3308
|
-
elements:
|
|
3307
|
+
rects: a,
|
|
3308
|
+
elements: i,
|
|
3309
3309
|
strategy: s
|
|
3310
3310
|
} = e, {
|
|
3311
3311
|
boundary: d = "clippingAncestors",
|
|
@@ -3313,16 +3313,16 @@ async function it(e, t) {
|
|
|
3313
3313
|
elementContext: l = "floating",
|
|
3314
3314
|
altBoundary: v = !1,
|
|
3315
3315
|
padding: f = 0
|
|
3316
|
-
} = Se(t, e), m = Po(f), b =
|
|
3317
|
-
element: (n = await (c.isElement == null ? void 0 : c.isElement(b))) == null || n ? b : b.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(
|
|
3316
|
+
} = Se(t, e), m = Po(f), b = i[v ? l === "floating" ? "reference" : "floating" : l], g = Rt(await c.getClippingRect({
|
|
3317
|
+
element: (n = await (c.isElement == null ? void 0 : c.isElement(b))) == null || n ? b : b.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(i.floating)),
|
|
3318
3318
|
boundary: d,
|
|
3319
3319
|
rootBoundary: u,
|
|
3320
3320
|
strategy: s
|
|
3321
3321
|
})), h = l === "floating" ? {
|
|
3322
|
-
...
|
|
3322
|
+
...a.floating,
|
|
3323
3323
|
x: o,
|
|
3324
3324
|
y: r
|
|
3325
|
-
} :
|
|
3325
|
+
} : a.reference, x = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(i.floating)), w = await (c.isElement == null ? void 0 : c.isElement(x)) ? await (c.getScale == null ? void 0 : c.getScale(x)) || {
|
|
3326
3326
|
x: 1,
|
|
3327
3327
|
y: 1
|
|
3328
3328
|
} : {
|
|
@@ -3349,8 +3349,8 @@ const zn = (e) => ({
|
|
|
3349
3349
|
y: o,
|
|
3350
3350
|
placement: r,
|
|
3351
3351
|
rects: c,
|
|
3352
|
-
platform:
|
|
3353
|
-
elements:
|
|
3352
|
+
platform: a,
|
|
3353
|
+
elements: i
|
|
3354
3354
|
} = t, {
|
|
3355
3355
|
element: s,
|
|
3356
3356
|
padding: d = 0
|
|
@@ -3360,10 +3360,10 @@ const zn = (e) => ({
|
|
|
3360
3360
|
const u = Po(d), l = {
|
|
3361
3361
|
x: n,
|
|
3362
3362
|
y: o
|
|
3363
|
-
}, v = bn(r), f = hn(v), m = await
|
|
3363
|
+
}, v = bn(r), f = hn(v), m = await a.getDimensions(s), p = v === "y", b = p ? "top" : "left", g = p ? "bottom" : "right", h = p ? "clientHeight" : "clientWidth", x = c.reference[f] + c.reference[v] - l[v] - c.floating[f], w = l[v] - c.reference[v], y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s));
|
|
3364
3364
|
let M = y ? y[h] : 0;
|
|
3365
|
-
(!M || !await (
|
|
3366
|
-
const P = x / 2 - w / 2, E = M / 2 - m[f] / 2 - 1,
|
|
3365
|
+
(!M || !await (a.isElement == null ? void 0 : a.isElement(y))) && (M = i.floating[h] || c.floating[f]);
|
|
3366
|
+
const P = x / 2 - w / 2, E = M / 2 - m[f] / 2 - 1, N = Oe(u[b], E), z = Oe(u[g], E), D = N, T = M - m[f] - z, G = M / 2 - m[f] / 2 + P, B = rn(D, G, T), I = Ze(r) != null && G != B && c.reference[f] / 2 - (G < D ? N : z) - m[f] / 2 < 0 ? G < D ? D - G : T - G : 0;
|
|
3367
3367
|
return {
|
|
3368
3368
|
[v]: l[v] - I,
|
|
3369
3369
|
data: {
|
|
@@ -3372,7 +3372,7 @@ const zn = (e) => ({
|
|
|
3372
3372
|
}
|
|
3373
3373
|
};
|
|
3374
3374
|
}
|
|
3375
|
-
}),
|
|
3375
|
+
}), ga = function(e) {
|
|
3376
3376
|
return e === void 0 && (e = {}), {
|
|
3377
3377
|
name: "flip",
|
|
3378
3378
|
options: e,
|
|
@@ -3382,8 +3382,8 @@ const zn = (e) => ({
|
|
|
3382
3382
|
placement: o,
|
|
3383
3383
|
middlewareData: r,
|
|
3384
3384
|
rects: c,
|
|
3385
|
-
initialPlacement:
|
|
3386
|
-
platform:
|
|
3385
|
+
initialPlacement: a,
|
|
3386
|
+
platform: i,
|
|
3387
3387
|
elements: s
|
|
3388
3388
|
} = t, {
|
|
3389
3389
|
mainAxis: d = !0,
|
|
@@ -3393,31 +3393,31 @@ const zn = (e) => ({
|
|
|
3393
3393
|
fallbackAxisSideDirection: f = "none",
|
|
3394
3394
|
flipAlignment: m = !0,
|
|
3395
3395
|
...p
|
|
3396
|
-
} = Se(e, t), b = Pe(o), g = Pe(
|
|
3397
|
-
!l && f !== "none" && x.push(...
|
|
3398
|
-
const w = [
|
|
3396
|
+
} = Se(e, t), b = Pe(o), g = Pe(a) === a, h = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), x = l || (g || !m ? [Mt(a)] : ua(a));
|
|
3397
|
+
!l && f !== "none" && x.push(...pa(a, m, f, h));
|
|
3398
|
+
const w = [a, ...x], y = await at(t, p), M = [];
|
|
3399
3399
|
let P = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
3400
3400
|
if (d && M.push(y[b]), u) {
|
|
3401
|
-
const
|
|
3402
|
-
M.push(y[
|
|
3401
|
+
const D = da(o, c, h);
|
|
3402
|
+
M.push(y[D[0]], y[D[1]]);
|
|
3403
3403
|
}
|
|
3404
3404
|
if (P = [...P, {
|
|
3405
3405
|
placement: o,
|
|
3406
3406
|
overflows: M
|
|
3407
|
-
}], !M.every((
|
|
3408
|
-
var E,
|
|
3409
|
-
const
|
|
3407
|
+
}], !M.every((D) => D <= 0)) {
|
|
3408
|
+
var E, N;
|
|
3409
|
+
const D = (((E = r.flip) == null ? void 0 : E.index) || 0) + 1, T = w[D];
|
|
3410
3410
|
if (T)
|
|
3411
3411
|
return {
|
|
3412
3412
|
data: {
|
|
3413
|
-
index:
|
|
3413
|
+
index: D,
|
|
3414
3414
|
overflows: P
|
|
3415
3415
|
},
|
|
3416
3416
|
reset: {
|
|
3417
3417
|
placement: T
|
|
3418
3418
|
}
|
|
3419
3419
|
};
|
|
3420
|
-
let G = (
|
|
3420
|
+
let G = (N = P.filter((B) => B.overflows[0] <= 0).sort((B, F) => B.overflows[1] - F.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
3421
3421
|
if (!G)
|
|
3422
3422
|
switch (v) {
|
|
3423
3423
|
case "bestFit": {
|
|
@@ -3427,7 +3427,7 @@ const zn = (e) => ({
|
|
|
3427
3427
|
break;
|
|
3428
3428
|
}
|
|
3429
3429
|
case "initialPlacement":
|
|
3430
|
-
G =
|
|
3430
|
+
G = a;
|
|
3431
3431
|
break;
|
|
3432
3432
|
}
|
|
3433
3433
|
if (o !== G)
|
|
@@ -3450,9 +3450,9 @@ function Un(e, t) {
|
|
|
3450
3450
|
};
|
|
3451
3451
|
}
|
|
3452
3452
|
function Kn(e) {
|
|
3453
|
-
return
|
|
3453
|
+
return ia.some((t) => e[t] >= 0);
|
|
3454
3454
|
}
|
|
3455
|
-
const
|
|
3455
|
+
const ha = function(e) {
|
|
3456
3456
|
return e === void 0 && (e = {}), {
|
|
3457
3457
|
name: "hide",
|
|
3458
3458
|
options: e,
|
|
@@ -3465,26 +3465,26 @@ const hi = function(e) {
|
|
|
3465
3465
|
} = Se(e, t);
|
|
3466
3466
|
switch (o) {
|
|
3467
3467
|
case "referenceHidden": {
|
|
3468
|
-
const c = await
|
|
3468
|
+
const c = await at(t, {
|
|
3469
3469
|
...r,
|
|
3470
3470
|
elementContext: "reference"
|
|
3471
|
-
}),
|
|
3471
|
+
}), a = Un(c, n.reference);
|
|
3472
3472
|
return {
|
|
3473
3473
|
data: {
|
|
3474
|
-
referenceHiddenOffsets:
|
|
3475
|
-
referenceHidden: Kn(
|
|
3474
|
+
referenceHiddenOffsets: a,
|
|
3475
|
+
referenceHidden: Kn(a)
|
|
3476
3476
|
}
|
|
3477
3477
|
};
|
|
3478
3478
|
}
|
|
3479
3479
|
case "escaped": {
|
|
3480
|
-
const c = await
|
|
3480
|
+
const c = await at(t, {
|
|
3481
3481
|
...r,
|
|
3482
3482
|
altBoundary: !0
|
|
3483
|
-
}),
|
|
3483
|
+
}), a = Un(c, n.floating);
|
|
3484
3484
|
return {
|
|
3485
3485
|
data: {
|
|
3486
|
-
escapedOffsets:
|
|
3487
|
-
escaped: Kn(
|
|
3486
|
+
escapedOffsets: a,
|
|
3487
|
+
escaped: Kn(a)
|
|
3488
3488
|
}
|
|
3489
3489
|
};
|
|
3490
3490
|
}
|
|
@@ -3494,12 +3494,12 @@ const hi = function(e) {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
};
|
|
3496
3496
|
};
|
|
3497
|
-
async function
|
|
3497
|
+
async function ba(e, t) {
|
|
3498
3498
|
const {
|
|
3499
3499
|
placement: n,
|
|
3500
3500
|
platform: o,
|
|
3501
3501
|
elements: r
|
|
3502
|
-
} = e, c = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)),
|
|
3502
|
+
} = e, c = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Pe(n), i = Ze(n), s = Qe(n) === "y", d = ["left", "top"].includes(a) ? -1 : 1, u = c && s ? -1 : 1, l = Se(t, e);
|
|
3503
3503
|
let {
|
|
3504
3504
|
mainAxis: v,
|
|
3505
3505
|
crossAxis: f,
|
|
@@ -3514,7 +3514,7 @@ async function bi(e, t) {
|
|
|
3514
3514
|
alignmentAxis: null,
|
|
3515
3515
|
...l
|
|
3516
3516
|
};
|
|
3517
|
-
return
|
|
3517
|
+
return i && typeof m == "number" && (f = i === "end" ? m * -1 : m), s ? {
|
|
3518
3518
|
x: f * u,
|
|
3519
3519
|
y: v * d
|
|
3520
3520
|
} : {
|
|
@@ -3522,7 +3522,7 @@ async function bi(e, t) {
|
|
|
3522
3522
|
y: f * u
|
|
3523
3523
|
};
|
|
3524
3524
|
}
|
|
3525
|
-
const $
|
|
3525
|
+
const $a = function(e) {
|
|
3526
3526
|
return e === void 0 && (e = 0), {
|
|
3527
3527
|
name: "offset",
|
|
3528
3528
|
options: e,
|
|
@@ -3530,7 +3530,7 @@ const $i = function(e) {
|
|
|
3530
3530
|
const {
|
|
3531
3531
|
x: n,
|
|
3532
3532
|
y: o
|
|
3533
|
-
} = t, r = await
|
|
3533
|
+
} = t, r = await ba(t, e);
|
|
3534
3534
|
return {
|
|
3535
3535
|
x: n + r.x,
|
|
3536
3536
|
y: o + r.y,
|
|
@@ -3538,7 +3538,7 @@ const $i = function(e) {
|
|
|
3538
3538
|
};
|
|
3539
3539
|
}
|
|
3540
3540
|
};
|
|
3541
|
-
},
|
|
3541
|
+
}, xa = function(e) {
|
|
3542
3542
|
return e === void 0 && (e = {}), {
|
|
3543
3543
|
name: "shift",
|
|
3544
3544
|
options: e,
|
|
@@ -3549,8 +3549,8 @@ const $i = function(e) {
|
|
|
3549
3549
|
placement: r
|
|
3550
3550
|
} = t, {
|
|
3551
3551
|
mainAxis: c = !0,
|
|
3552
|
-
crossAxis:
|
|
3553
|
-
limiter:
|
|
3552
|
+
crossAxis: a = !1,
|
|
3553
|
+
limiter: i = {
|
|
3554
3554
|
fn: (b) => {
|
|
3555
3555
|
let {
|
|
3556
3556
|
x: g,
|
|
@@ -3566,17 +3566,17 @@ const $i = function(e) {
|
|
|
3566
3566
|
} = Se(e, t), d = {
|
|
3567
3567
|
x: n,
|
|
3568
3568
|
y: o
|
|
3569
|
-
}, u = await
|
|
3569
|
+
}, u = await at(t, s), l = Qe(Pe(r)), v = gn(l);
|
|
3570
3570
|
let f = d[v], m = d[l];
|
|
3571
3571
|
if (c) {
|
|
3572
3572
|
const b = v === "y" ? "top" : "left", g = v === "y" ? "bottom" : "right", h = f + u[b], x = f - u[g];
|
|
3573
3573
|
f = rn(h, f, x);
|
|
3574
3574
|
}
|
|
3575
|
-
if (
|
|
3575
|
+
if (a) {
|
|
3576
3576
|
const b = l === "y" ? "top" : "left", g = l === "y" ? "bottom" : "right", h = m + u[b], x = m - u[g];
|
|
3577
3577
|
m = rn(h, m, x);
|
|
3578
3578
|
}
|
|
3579
|
-
const p =
|
|
3579
|
+
const p = i.fn({
|
|
3580
3580
|
...t,
|
|
3581
3581
|
[v]: f,
|
|
3582
3582
|
[l]: m
|
|
@@ -3590,7 +3590,7 @@ const $i = function(e) {
|
|
|
3590
3590
|
};
|
|
3591
3591
|
}
|
|
3592
3592
|
};
|
|
3593
|
-
},
|
|
3593
|
+
}, wa = function(e) {
|
|
3594
3594
|
return e === void 0 && (e = {}), {
|
|
3595
3595
|
options: e,
|
|
3596
3596
|
fn(t) {
|
|
@@ -3599,9 +3599,9 @@ const $i = function(e) {
|
|
|
3599
3599
|
y: o,
|
|
3600
3600
|
placement: r,
|
|
3601
3601
|
rects: c,
|
|
3602
|
-
middlewareData:
|
|
3602
|
+
middlewareData: a
|
|
3603
3603
|
} = t, {
|
|
3604
|
-
offset:
|
|
3604
|
+
offset: i = 0,
|
|
3605
3605
|
mainAxis: s = !0,
|
|
3606
3606
|
crossAxis: d = !0
|
|
3607
3607
|
} = Se(e, t), u = {
|
|
@@ -3609,7 +3609,7 @@ const $i = function(e) {
|
|
|
3609
3609
|
y: o
|
|
3610
3610
|
}, l = Qe(r), v = gn(l);
|
|
3611
3611
|
let f = u[v], m = u[l];
|
|
3612
|
-
const p = Se(
|
|
3612
|
+
const p = Se(i, t), b = typeof p == "number" ? {
|
|
3613
3613
|
mainAxis: p,
|
|
3614
3614
|
crossAxis: 0
|
|
3615
3615
|
} : {
|
|
@@ -3623,7 +3623,7 @@ const $i = function(e) {
|
|
|
3623
3623
|
}
|
|
3624
3624
|
if (d) {
|
|
3625
3625
|
var g, h;
|
|
3626
|
-
const x = v === "y" ? "width" : "height", w = ["top", "left"].includes(Pe(r)), y = c.reference[l] - c.floating[x] + (w && ((g =
|
|
3626
|
+
const x = v === "y" ? "width" : "height", w = ["top", "left"].includes(Pe(r)), y = c.reference[l] - c.floating[x] + (w && ((g = a.offset) == null ? void 0 : g[l]) || 0) + (w ? 0 : b.crossAxis), M = c.reference[l] + c.reference[x] + (w ? 0 : ((h = a.offset) == null ? void 0 : h[l]) || 0) - (w ? b.crossAxis : 0);
|
|
3627
3627
|
m < y ? m = y : m > M && (m = M);
|
|
3628
3628
|
}
|
|
3629
3629
|
return {
|
|
@@ -3632,7 +3632,7 @@ const $i = function(e) {
|
|
|
3632
3632
|
};
|
|
3633
3633
|
}
|
|
3634
3634
|
};
|
|
3635
|
-
},
|
|
3635
|
+
}, ya = function(e) {
|
|
3636
3636
|
return e === void 0 && (e = {}), {
|
|
3637
3637
|
name: "size",
|
|
3638
3638
|
options: e,
|
|
@@ -3643,10 +3643,10 @@ const $i = function(e) {
|
|
|
3643
3643
|
platform: r,
|
|
3644
3644
|
elements: c
|
|
3645
3645
|
} = t, {
|
|
3646
|
-
apply:
|
|
3646
|
+
apply: a = () => {
|
|
3647
3647
|
},
|
|
3648
|
-
...
|
|
3649
|
-
} = Se(e, t), s = await
|
|
3648
|
+
...i
|
|
3649
|
+
} = Se(e, t), s = await at(t, i), d = Pe(n), u = Ze(n), l = Qe(n) === "y", {
|
|
3650
3650
|
width: v,
|
|
3651
3651
|
height: f
|
|
3652
3652
|
} = o.floating;
|
|
@@ -3662,10 +3662,10 @@ const $i = function(e) {
|
|
|
3662
3662
|
x = u || h ? Oe(b, M) : M;
|
|
3663
3663
|
}
|
|
3664
3664
|
if (h && !u) {
|
|
3665
|
-
const M = pe(s.left, 0), P = pe(s.right, 0), E = pe(s.top, 0),
|
|
3666
|
-
l ? w = v - 2 * (M !== 0 || P !== 0 ? M + P : pe(s.left, s.right)) : x = f - 2 * (E !== 0 ||
|
|
3665
|
+
const M = pe(s.left, 0), P = pe(s.right, 0), E = pe(s.top, 0), N = pe(s.bottom, 0);
|
|
3666
|
+
l ? w = v - 2 * (M !== 0 || P !== 0 ? M + P : pe(s.left, s.right)) : x = f - 2 * (E !== 0 || N !== 0 ? E + N : pe(s.top, s.bottom));
|
|
3667
3667
|
}
|
|
3668
|
-
await
|
|
3668
|
+
await a({
|
|
3669
3669
|
...t,
|
|
3670
3670
|
availableWidth: w,
|
|
3671
3671
|
availableHeight: x
|
|
@@ -3711,16 +3711,16 @@ function dt(e) {
|
|
|
3711
3711
|
} = ge(e);
|
|
3712
3712
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
3713
3713
|
}
|
|
3714
|
-
function
|
|
3714
|
+
function Ca(e) {
|
|
3715
3715
|
return ["table", "td", "th"].includes(Ie(e));
|
|
3716
3716
|
}
|
|
3717
3717
|
function $n(e) {
|
|
3718
3718
|
const t = xn(), n = ge(e);
|
|
3719
3719
|
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
3720
|
}
|
|
3721
|
-
function
|
|
3721
|
+
function Sa(e) {
|
|
3722
3722
|
let t = Xe(e);
|
|
3723
|
-
for (; ye(t) && !
|
|
3723
|
+
for (; ye(t) && !Dt(t); ) {
|
|
3724
3724
|
if ($n(t))
|
|
3725
3725
|
return t;
|
|
3726
3726
|
t = Xe(t);
|
|
@@ -3730,7 +3730,7 @@ function Si(e) {
|
|
|
3730
3730
|
function xn() {
|
|
3731
3731
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
3732
3732
|
}
|
|
3733
|
-
function
|
|
3733
|
+
function Dt(e) {
|
|
3734
3734
|
return ["html", "body", "#document"].includes(Ie(e));
|
|
3735
3735
|
}
|
|
3736
3736
|
function ge(e) {
|
|
@@ -3759,7 +3759,7 @@ function Xe(e) {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
function _o(e) {
|
|
3761
3761
|
const t = Xe(e);
|
|
3762
|
-
return
|
|
3762
|
+
return Dt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ye(t) && dt(t) ? t : _o(t);
|
|
3763
3763
|
}
|
|
3764
3764
|
function Tt(e, t) {
|
|
3765
3765
|
var n;
|
|
@@ -3770,11 +3770,11 @@ function Tt(e, t) {
|
|
|
3770
3770
|
function Mo(e) {
|
|
3771
3771
|
const t = ge(e);
|
|
3772
3772
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
3773
|
-
const r = ye(e), c = r ? e.offsetWidth : n,
|
|
3774
|
-
return
|
|
3773
|
+
const r = ye(e), c = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = _t(n) !== c || _t(o) !== a;
|
|
3774
|
+
return i && (n = c, o = a), {
|
|
3775
3775
|
width: n,
|
|
3776
3776
|
height: o,
|
|
3777
|
-
$:
|
|
3777
|
+
$: i
|
|
3778
3778
|
};
|
|
3779
3779
|
}
|
|
3780
3780
|
function wn(e) {
|
|
@@ -3789,30 +3789,30 @@ function Ke(e) {
|
|
|
3789
3789
|
height: r,
|
|
3790
3790
|
$: c
|
|
3791
3791
|
} = Mo(t);
|
|
3792
|
-
let
|
|
3793
|
-
return (!
|
|
3794
|
-
x:
|
|
3795
|
-
y:
|
|
3792
|
+
let a = (c ? _t(n.width) : n.width) / o, i = (c ? _t(n.height) : n.height) / r;
|
|
3793
|
+
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
3794
|
+
x: a,
|
|
3795
|
+
y: i
|
|
3796
3796
|
};
|
|
3797
3797
|
}
|
|
3798
|
-
const
|
|
3798
|
+
const Pa = /* @__PURE__ */ Ae(0);
|
|
3799
3799
|
function Ro(e) {
|
|
3800
3800
|
const t = me(e);
|
|
3801
|
-
return !xn() || !t.visualViewport ?
|
|
3801
|
+
return !xn() || !t.visualViewport ? Pa : {
|
|
3802
3802
|
x: t.visualViewport.offsetLeft,
|
|
3803
3803
|
y: t.visualViewport.offsetTop
|
|
3804
3804
|
};
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function Ea(e, t, n) {
|
|
3807
3807
|
return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
|
|
3808
3808
|
}
|
|
3809
3809
|
function Fe(e, t, n, o) {
|
|
3810
3810
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
3811
3811
|
const r = e.getBoundingClientRect(), c = wn(e);
|
|
3812
|
-
let
|
|
3813
|
-
t && (o ? Ee(o) && (
|
|
3814
|
-
const
|
|
3815
|
-
let s = (r.left +
|
|
3812
|
+
let a = Ae(1);
|
|
3813
|
+
t && (o ? Ee(o) && (a = Ke(o)) : a = Ke(e));
|
|
3814
|
+
const i = Ea(c, n, o) ? Ro(c) : Ae(0);
|
|
3815
|
+
let s = (r.left + i.x) / a.x, d = (r.top + i.y) / a.y, u = r.width / a.x, l = r.height / a.y;
|
|
3816
3816
|
if (c) {
|
|
3817
3817
|
const v = me(c), f = o && Ee(o) ? me(o) : o;
|
|
3818
3818
|
let m = v.frameElement;
|
|
@@ -3828,7 +3828,7 @@ function Fe(e, t, n, o) {
|
|
|
3828
3828
|
y: d
|
|
3829
3829
|
});
|
|
3830
3830
|
}
|
|
3831
|
-
function
|
|
3831
|
+
function _a(e) {
|
|
3832
3832
|
let {
|
|
3833
3833
|
rect: t,
|
|
3834
3834
|
offsetParent: n,
|
|
@@ -3837,59 +3837,59 @@ function _i(e) {
|
|
|
3837
3837
|
const r = ye(n), c = _e(n);
|
|
3838
3838
|
if (n === c)
|
|
3839
3839
|
return t;
|
|
3840
|
-
let
|
|
3840
|
+
let a = {
|
|
3841
3841
|
scrollLeft: 0,
|
|
3842
3842
|
scrollTop: 0
|
|
3843
|
-
},
|
|
3843
|
+
}, i = Ae(1);
|
|
3844
3844
|
const s = Ae(0);
|
|
3845
|
-
if ((r || !r && o !== "fixed") && ((Ie(n) !== "body" || dt(c)) && (
|
|
3845
|
+
if ((r || !r && o !== "fixed") && ((Ie(n) !== "body" || dt(c)) && (a = Ft(n)), ye(n))) {
|
|
3846
3846
|
const d = Fe(n);
|
|
3847
|
-
|
|
3847
|
+
i = Ke(n), s.x = d.x + n.clientLeft, s.y = d.y + n.clientTop;
|
|
3848
3848
|
}
|
|
3849
3849
|
return {
|
|
3850
|
-
width: t.width *
|
|
3851
|
-
height: t.height *
|
|
3852
|
-
x: t.x *
|
|
3853
|
-
y: t.y *
|
|
3850
|
+
width: t.width * i.x,
|
|
3851
|
+
height: t.height * i.y,
|
|
3852
|
+
x: t.x * i.x - a.scrollLeft * i.x + s.x,
|
|
3853
|
+
y: t.y * i.y - a.scrollTop * i.y + s.y
|
|
3854
3854
|
};
|
|
3855
3855
|
}
|
|
3856
|
-
function
|
|
3856
|
+
function Ma(e) {
|
|
3857
3857
|
return Array.from(e.getClientRects());
|
|
3858
3858
|
}
|
|
3859
3859
|
function To(e) {
|
|
3860
3860
|
return Fe(_e(e)).left + Ft(e).scrollLeft;
|
|
3861
3861
|
}
|
|
3862
|
-
function
|
|
3862
|
+
function Ra(e) {
|
|
3863
3863
|
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
|
-
let
|
|
3865
|
-
const
|
|
3866
|
-
return ge(o).direction === "rtl" && (
|
|
3864
|
+
let a = -n.scrollLeft + To(e);
|
|
3865
|
+
const i = -n.scrollTop;
|
|
3866
|
+
return ge(o).direction === "rtl" && (a += pe(t.clientWidth, o.clientWidth) - r), {
|
|
3867
3867
|
width: r,
|
|
3868
3868
|
height: c,
|
|
3869
|
-
x:
|
|
3870
|
-
y:
|
|
3869
|
+
x: a,
|
|
3870
|
+
y: i
|
|
3871
3871
|
};
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function Ta(e, t) {
|
|
3874
3874
|
const n = me(e), o = _e(e), r = n.visualViewport;
|
|
3875
|
-
let c = o.clientWidth,
|
|
3875
|
+
let c = o.clientWidth, a = o.clientHeight, i = 0, s = 0;
|
|
3876
3876
|
if (r) {
|
|
3877
|
-
c = r.width,
|
|
3877
|
+
c = r.width, a = r.height;
|
|
3878
3878
|
const d = xn();
|
|
3879
|
-
(!d || d && t === "fixed") && (
|
|
3879
|
+
(!d || d && t === "fixed") && (i = r.offsetLeft, s = r.offsetTop);
|
|
3880
3880
|
}
|
|
3881
3881
|
return {
|
|
3882
3882
|
width: c,
|
|
3883
|
-
height:
|
|
3884
|
-
x:
|
|
3883
|
+
height: a,
|
|
3884
|
+
x: i,
|
|
3885
3885
|
y: s
|
|
3886
3886
|
};
|
|
3887
3887
|
}
|
|
3888
|
-
function
|
|
3889
|
-
const n = Fe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, c = ye(e) ? Ke(e) : Ae(1),
|
|
3888
|
+
function Oa(e, t) {
|
|
3889
|
+
const n = Fe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, c = ye(e) ? Ke(e) : Ae(1), a = e.clientWidth * c.x, i = e.clientHeight * c.y, s = r * c.x, d = o * c.y;
|
|
3890
3890
|
return {
|
|
3891
|
-
width:
|
|
3892
|
-
height:
|
|
3891
|
+
width: a,
|
|
3892
|
+
height: i,
|
|
3893
3893
|
x: s,
|
|
3894
3894
|
y: d
|
|
3895
3895
|
};
|
|
@@ -3897,11 +3897,11 @@ function Oi(e, t) {
|
|
|
3897
3897
|
function jn(e, t, n) {
|
|
3898
3898
|
let o;
|
|
3899
3899
|
if (t === "viewport")
|
|
3900
|
-
o =
|
|
3900
|
+
o = Ta(e, n);
|
|
3901
3901
|
else if (t === "document")
|
|
3902
|
-
o =
|
|
3902
|
+
o = Ra(_e(e));
|
|
3903
3903
|
else if (Ee(t))
|
|
3904
|
-
o =
|
|
3904
|
+
o = Oa(t, n);
|
|
3905
3905
|
else {
|
|
3906
3906
|
const r = Ro(e);
|
|
3907
3907
|
o = {
|
|
@@ -3914,32 +3914,32 @@ function jn(e, t, n) {
|
|
|
3914
3914
|
}
|
|
3915
3915
|
function Oo(e, t) {
|
|
3916
3916
|
const n = Xe(e);
|
|
3917
|
-
return n === t || !Ee(n) ||
|
|
3917
|
+
return n === t || !Ee(n) || Dt(n) ? !1 : ge(n).position === "fixed" || Oo(n, t);
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3919
|
+
function Aa(e, t) {
|
|
3920
3920
|
const n = t.get(e);
|
|
3921
3921
|
if (n)
|
|
3922
3922
|
return n;
|
|
3923
|
-
let o = Tt(e).filter((
|
|
3923
|
+
let o = Tt(e).filter((i) => Ee(i) && Ie(i) !== "body"), r = null;
|
|
3924
3924
|
const c = ge(e).position === "fixed";
|
|
3925
|
-
let
|
|
3926
|
-
for (; Ee(
|
|
3927
|
-
const
|
|
3928
|
-
!s &&
|
|
3925
|
+
let a = c ? Xe(e) : e;
|
|
3926
|
+
for (; Ee(a) && !Dt(a); ) {
|
|
3927
|
+
const i = ge(a), s = $n(a);
|
|
3928
|
+
!s && i.position === "fixed" && (r = null), (c ? !s && !r : !s && i.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || dt(a) && !s && Oo(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = Xe(a);
|
|
3929
3929
|
}
|
|
3930
3930
|
return t.set(e, o), o;
|
|
3931
3931
|
}
|
|
3932
|
-
function
|
|
3932
|
+
function Ia(e) {
|
|
3933
3933
|
let {
|
|
3934
3934
|
element: t,
|
|
3935
3935
|
boundary: n,
|
|
3936
3936
|
rootBoundary: o,
|
|
3937
3937
|
strategy: r
|
|
3938
3938
|
} = e;
|
|
3939
|
-
const
|
|
3939
|
+
const a = [...n === "clippingAncestors" ? Aa(t, this._c) : [].concat(n), o], i = a[0], s = a.reduce((d, u) => {
|
|
3940
3940
|
const l = jn(t, u, r);
|
|
3941
3941
|
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
|
-
}, jn(t,
|
|
3942
|
+
}, jn(t, i, r));
|
|
3943
3943
|
return {
|
|
3944
3944
|
width: s.right - s.left,
|
|
3945
3945
|
height: s.bottom - s.top,
|
|
@@ -3947,27 +3947,27 @@ function Ii(e) {
|
|
|
3947
3947
|
y: s.top
|
|
3948
3948
|
};
|
|
3949
3949
|
}
|
|
3950
|
-
function
|
|
3950
|
+
function ka(e) {
|
|
3951
3951
|
return Mo(e);
|
|
3952
3952
|
}
|
|
3953
|
-
function
|
|
3954
|
-
const o = ye(t), r = _e(t), c = n === "fixed",
|
|
3955
|
-
let
|
|
3953
|
+
function Na(e, t, n) {
|
|
3954
|
+
const o = ye(t), r = _e(t), c = n === "fixed", a = Fe(e, !0, c, t);
|
|
3955
|
+
let i = {
|
|
3956
3956
|
scrollLeft: 0,
|
|
3957
3957
|
scrollTop: 0
|
|
3958
3958
|
};
|
|
3959
3959
|
const s = Ae(0);
|
|
3960
3960
|
if (o || !o && !c)
|
|
3961
|
-
if ((Ie(t) !== "body" || dt(r)) && (
|
|
3961
|
+
if ((Ie(t) !== "body" || dt(r)) && (i = Ft(t)), o) {
|
|
3962
3962
|
const d = Fe(t, !0, c, t);
|
|
3963
3963
|
s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
|
|
3964
3964
|
} else
|
|
3965
3965
|
r && (s.x = To(r));
|
|
3966
3966
|
return {
|
|
3967
|
-
x:
|
|
3968
|
-
y:
|
|
3969
|
-
width:
|
|
3970
|
-
height:
|
|
3967
|
+
x: a.left + i.scrollLeft - s.x,
|
|
3968
|
+
y: a.top + i.scrollTop - s.y,
|
|
3969
|
+
width: a.width,
|
|
3970
|
+
height: a.height
|
|
3971
3971
|
};
|
|
3972
3972
|
}
|
|
3973
3973
|
function Yn(e, t) {
|
|
@@ -3978,11 +3978,11 @@ function Ao(e, t) {
|
|
|
3978
3978
|
if (!ye(e))
|
|
3979
3979
|
return n;
|
|
3980
3980
|
let o = Yn(e, t);
|
|
3981
|
-
for (; o &&
|
|
3981
|
+
for (; o && Ca(o) && ge(o).position === "static"; )
|
|
3982
3982
|
o = Yn(o, t);
|
|
3983
|
-
return o && (Ie(o) === "html" || Ie(o) === "body" && ge(o).position === "static" && !$n(o)) ? n : o ||
|
|
3983
|
+
return o && (Ie(o) === "html" || Ie(o) === "body" && ge(o).position === "static" && !$n(o)) ? n : o || Sa(e) || n;
|
|
3984
3984
|
}
|
|
3985
|
-
const
|
|
3985
|
+
const Da = async function(e) {
|
|
3986
3986
|
let {
|
|
3987
3987
|
reference: t,
|
|
3988
3988
|
floating: n,
|
|
@@ -3990,7 +3990,7 @@ const ki = async function(e) {
|
|
|
3990
3990
|
} = e;
|
|
3991
3991
|
const r = this.getOffsetParent || Ao, c = this.getDimensions;
|
|
3992
3992
|
return {
|
|
3993
|
-
reference:
|
|
3993
|
+
reference: Na(t, await r(n), o),
|
|
3994
3994
|
floating: {
|
|
3995
3995
|
x: 0,
|
|
3996
3996
|
y: 0,
|
|
@@ -3998,36 +3998,36 @@ const ki = async function(e) {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
};
|
|
4000
4000
|
};
|
|
4001
|
-
function
|
|
4001
|
+
function Fa(e) {
|
|
4002
4002
|
return ge(e).direction === "rtl";
|
|
4003
4003
|
}
|
|
4004
|
-
const
|
|
4005
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4004
|
+
const La = {
|
|
4005
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: _a,
|
|
4006
4006
|
getDocumentElement: _e,
|
|
4007
|
-
getClippingRect:
|
|
4007
|
+
getClippingRect: Ia,
|
|
4008
4008
|
getOffsetParent: Ao,
|
|
4009
|
-
getElementRects:
|
|
4010
|
-
getClientRects:
|
|
4011
|
-
getDimensions:
|
|
4009
|
+
getElementRects: Da,
|
|
4010
|
+
getClientRects: Ma,
|
|
4011
|
+
getDimensions: ka,
|
|
4012
4012
|
getScale: Ke,
|
|
4013
4013
|
isElement: Ee,
|
|
4014
|
-
isRTL:
|
|
4014
|
+
isRTL: Fa
|
|
4015
4015
|
};
|
|
4016
|
-
function
|
|
4016
|
+
function Ba(e, t) {
|
|
4017
4017
|
let n = null, o;
|
|
4018
4018
|
const r = _e(e);
|
|
4019
4019
|
function c() {
|
|
4020
4020
|
clearTimeout(o), n && n.disconnect(), n = null;
|
|
4021
4021
|
}
|
|
4022
|
-
function i
|
|
4023
|
-
|
|
4022
|
+
function a(i, s) {
|
|
4023
|
+
i === void 0 && (i = !1), s === void 0 && (s = 1), c();
|
|
4024
4024
|
const {
|
|
4025
4025
|
left: d,
|
|
4026
4026
|
top: u,
|
|
4027
4027
|
width: l,
|
|
4028
4028
|
height: v
|
|
4029
4029
|
} = e.getBoundingClientRect();
|
|
4030
|
-
if (
|
|
4030
|
+
if (i || t(), !l || !v)
|
|
4031
4031
|
return;
|
|
4032
4032
|
const f = mt(u), m = mt(r.clientWidth - (d + l)), p = mt(r.clientHeight - (u + v)), b = mt(d), h = {
|
|
4033
4033
|
rootMargin: -f + "px " + -m + "px " + -p + "px " + -b + "px",
|
|
@@ -4038,9 +4038,9 @@ function Bi(e, t) {
|
|
|
4038
4038
|
const M = y[0].intersectionRatio;
|
|
4039
4039
|
if (M !== s) {
|
|
4040
4040
|
if (!x)
|
|
4041
|
-
return
|
|
4042
|
-
M ?
|
|
4043
|
-
|
|
4041
|
+
return a();
|
|
4042
|
+
M ? a(!1, M) : o = setTimeout(() => {
|
|
4043
|
+
a(!1, 1e-7);
|
|
4044
4044
|
}, 100);
|
|
4045
4045
|
}
|
|
4046
4046
|
x = !1;
|
|
@@ -4056,15 +4056,15 @@ function Bi(e, t) {
|
|
|
4056
4056
|
}
|
|
4057
4057
|
n.observe(e);
|
|
4058
4058
|
}
|
|
4059
|
-
return
|
|
4059
|
+
return a(!0), c;
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function Ga(e, t, n, o) {
|
|
4062
4062
|
o === void 0 && (o = {});
|
|
4063
4063
|
const {
|
|
4064
4064
|
ancestorScroll: r = !0,
|
|
4065
4065
|
ancestorResize: c = !0,
|
|
4066
|
-
elementResize:
|
|
4067
|
-
layoutShift:
|
|
4066
|
+
elementResize: a = typeof ResizeObserver == "function",
|
|
4067
|
+
layoutShift: i = typeof IntersectionObserver == "function",
|
|
4068
4068
|
animationFrame: s = !1
|
|
4069
4069
|
} = o, d = wn(e), u = r || c ? [...d ? Tt(d) : [], ...Tt(t)] : [];
|
|
4070
4070
|
u.forEach((g) => {
|
|
@@ -4072,9 +4072,9 @@ function Gi(e, t, n, o) {
|
|
|
4072
4072
|
passive: !0
|
|
4073
4073
|
}), c && g.addEventListener("resize", n);
|
|
4074
4074
|
});
|
|
4075
|
-
const l = d &&
|
|
4075
|
+
const l = d && i ? Ba(d, n) : null;
|
|
4076
4076
|
let v = -1, f = null;
|
|
4077
|
-
|
|
4077
|
+
a && (f = new ResizeObserver((g) => {
|
|
4078
4078
|
let [h] = g;
|
|
4079
4079
|
h && h.target === d && f && (f.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
4080
4080
|
f && f.observe(t);
|
|
@@ -4092,19 +4092,19 @@ function Gi(e, t, n, o) {
|
|
|
4092
4092
|
}), l && l(), f && f.disconnect(), f = null, s && cancelAnimationFrame(m);
|
|
4093
4093
|
};
|
|
4094
4094
|
}
|
|
4095
|
-
const
|
|
4095
|
+
const Wa = (e, t, n) => {
|
|
4096
4096
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
4097
|
-
platform:
|
|
4097
|
+
platform: La,
|
|
4098
4098
|
...n
|
|
4099
4099
|
}, c = {
|
|
4100
4100
|
...r.platform,
|
|
4101
4101
|
_c: o
|
|
4102
4102
|
};
|
|
4103
|
-
return
|
|
4103
|
+
return va(e, t, {
|
|
4104
4104
|
...r,
|
|
4105
4105
|
platform: c
|
|
4106
4106
|
});
|
|
4107
|
-
},
|
|
4107
|
+
}, Ha = (e) => {
|
|
4108
4108
|
function t(n) {
|
|
4109
4109
|
return {}.hasOwnProperty.call(n, "current");
|
|
4110
4110
|
}
|
|
@@ -4171,7 +4171,7 @@ function qn(e) {
|
|
|
4171
4171
|
t.current = e;
|
|
4172
4172
|
}), t;
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function za(e) {
|
|
4175
4175
|
e === void 0 && (e = {});
|
|
4176
4176
|
const {
|
|
4177
4177
|
placement: t = "bottom",
|
|
@@ -4180,9 +4180,9 @@ function zi(e) {
|
|
|
4180
4180
|
platform: r,
|
|
4181
4181
|
elements: {
|
|
4182
4182
|
reference: c,
|
|
4183
|
-
floating:
|
|
4183
|
+
floating: a
|
|
4184
4184
|
} = {},
|
|
4185
|
-
transform:
|
|
4185
|
+
transform: i = !0,
|
|
4186
4186
|
whileElementsMounted: s,
|
|
4187
4187
|
open: d
|
|
4188
4188
|
} = e, [u, l] = S.useState({
|
|
@@ -4198,7 +4198,7 @@ function zi(e) {
|
|
|
4198
4198
|
I != M.current && (M.current = I, p(I));
|
|
4199
4199
|
}, [p]), x = S.useCallback((I) => {
|
|
4200
4200
|
I !== P.current && (P.current = I, g(I));
|
|
4201
|
-
}, [g]), w = c || m, y =
|
|
4201
|
+
}, [g]), w = c || m, y = a || b, M = S.useRef(null), P = S.useRef(null), E = S.useRef(u), N = qn(s), z = qn(r), D = S.useCallback(() => {
|
|
4202
4202
|
if (!M.current || !P.current)
|
|
4203
4203
|
return;
|
|
4204
4204
|
const I = {
|
|
@@ -4206,7 +4206,7 @@ function zi(e) {
|
|
|
4206
4206
|
strategy: n,
|
|
4207
4207
|
middleware: v
|
|
4208
4208
|
};
|
|
4209
|
-
z.current && (I.platform = z.current),
|
|
4209
|
+
z.current && (I.platform = z.current), Wa(M.current, P.current, I).then((re) => {
|
|
4210
4210
|
const J = {
|
|
4211
4211
|
...re,
|
|
4212
4212
|
isPositioned: !0
|
|
@@ -4227,11 +4227,11 @@ function zi(e) {
|
|
|
4227
4227
|
T.current = !1;
|
|
4228
4228
|
}), []), yt(() => {
|
|
4229
4229
|
if (w && (M.current = w), y && (P.current = y), w && y) {
|
|
4230
|
-
if (
|
|
4231
|
-
return
|
|
4232
|
-
|
|
4230
|
+
if (N.current)
|
|
4231
|
+
return N.current(w, y, D);
|
|
4232
|
+
D();
|
|
4233
4233
|
}
|
|
4234
|
-
}, [w, y,
|
|
4234
|
+
}, [w, y, D, N]);
|
|
4235
4235
|
const G = S.useMemo(() => ({
|
|
4236
4236
|
reference: M,
|
|
4237
4237
|
floating: P,
|
|
@@ -4249,7 +4249,7 @@ function zi(e) {
|
|
|
4249
4249
|
if (!B.floating)
|
|
4250
4250
|
return I;
|
|
4251
4251
|
const re = Xn(B.floating, u.x), J = Xn(B.floating, u.y);
|
|
4252
|
-
return
|
|
4252
|
+
return i ? {
|
|
4253
4253
|
...I,
|
|
4254
4254
|
transform: "translate(" + re + "px, " + J + "px)",
|
|
4255
4255
|
...Io(B.floating) >= 1.5 && {
|
|
@@ -4260,16 +4260,16 @@ function zi(e) {
|
|
|
4260
4260
|
left: re,
|
|
4261
4261
|
top: J
|
|
4262
4262
|
};
|
|
4263
|
-
}, [n,
|
|
4263
|
+
}, [n, i, B.floating, u.x, u.y]);
|
|
4264
4264
|
return S.useMemo(() => ({
|
|
4265
4265
|
...u,
|
|
4266
|
-
update:
|
|
4266
|
+
update: D,
|
|
4267
4267
|
refs: G,
|
|
4268
4268
|
elements: B,
|
|
4269
4269
|
floatingStyles: F
|
|
4270
|
-
}), [u,
|
|
4270
|
+
}), [u, D, G, B, F]);
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4272
|
+
function ko(e) {
|
|
4273
4273
|
const [t, n] = H(void 0);
|
|
4274
4274
|
return $e(() => {
|
|
4275
4275
|
if (e) {
|
|
@@ -4281,15 +4281,15 @@ function No(e) {
|
|
|
4281
4281
|
if (!Array.isArray(r) || !r.length)
|
|
4282
4282
|
return;
|
|
4283
4283
|
const c = r[0];
|
|
4284
|
-
let
|
|
4284
|
+
let a, i;
|
|
4285
4285
|
if ("borderBoxSize" in c) {
|
|
4286
4286
|
const s = c.borderBoxSize, d = Array.isArray(s) ? s[0] : s;
|
|
4287
|
-
|
|
4287
|
+
a = d.inlineSize, i = d.blockSize;
|
|
4288
4288
|
} else
|
|
4289
|
-
|
|
4289
|
+
a = e.offsetWidth, i = e.offsetHeight;
|
|
4290
4290
|
n({
|
|
4291
|
-
width:
|
|
4292
|
-
height:
|
|
4291
|
+
width: a,
|
|
4292
|
+
height: i
|
|
4293
4293
|
});
|
|
4294
4294
|
});
|
|
4295
4295
|
return o.observe(e, {
|
|
@@ -4301,26 +4301,26 @@ function No(e) {
|
|
|
4301
4301
|
e
|
|
4302
4302
|
]), t;
|
|
4303
4303
|
}
|
|
4304
|
-
const
|
|
4304
|
+
const No = "Popper", [Do, Lt] = ke(No), [Ua, Fo] = Do(No), Ka = (e) => {
|
|
4305
4305
|
const { __scopePopper: t, children: n } = e, [o, r] = H(null);
|
|
4306
|
-
return /* @__PURE__ */ $(
|
|
4306
|
+
return /* @__PURE__ */ $(Ua, {
|
|
4307
4307
|
scope: t,
|
|
4308
4308
|
anchor: o,
|
|
4309
4309
|
onAnchorChange: r
|
|
4310
4310
|
}, n);
|
|
4311
|
-
},
|
|
4312
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, c = Fo(
|
|
4311
|
+
}, Va = "PopperAnchor", ja = /* @__PURE__ */ _((e, t) => {
|
|
4312
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, c = Fo(Va, n), a = L(null), i = ce(t, a);
|
|
4313
4313
|
return U(() => {
|
|
4314
|
-
c.onAnchorChange((o == null ? void 0 : o.current) ||
|
|
4314
|
+
c.onAnchorChange((o == null ? void 0 : o.current) || a.current);
|
|
4315
4315
|
}), o ? null : /* @__PURE__ */ $(Q.div, C({}, r, {
|
|
4316
|
-
ref:
|
|
4316
|
+
ref: i
|
|
4317
4317
|
}));
|
|
4318
|
-
}), Lo = "PopperContent", [
|
|
4319
|
-
var n, o, r, c,
|
|
4320
|
-
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,
|
|
4318
|
+
}), Lo = "PopperContent", [Ya, qd] = Do(Lo), Xa = /* @__PURE__ */ _((e, t) => {
|
|
4319
|
+
var n, o, r, c, a, i, s, d;
|
|
4320
|
+
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, N] = H(null), z = ce(
|
|
4321
4321
|
t,
|
|
4322
|
-
(se) =>
|
|
4323
|
-
), [
|
|
4322
|
+
(se) => N(se)
|
|
4323
|
+
), [D, T] = H(null), G = ko(D), B = (n = G == null ? void 0 : G.width) !== null && n !== void 0 ? n : 0, F = (o = G == null ? void 0 : G.height) !== null && o !== void 0 ? o : 0, I = l + (f !== "center" ? "-" + f : ""), re = typeof g == "number" ? g : {
|
|
4324
4324
|
top: 0,
|
|
4325
4325
|
right: 0,
|
|
4326
4326
|
bottom: 0,
|
|
@@ -4330,58 +4330,58 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
|
|
|
4330
4330
|
b
|
|
4331
4331
|
], R = J.length > 0, j = {
|
|
4332
4332
|
padding: re,
|
|
4333
|
-
boundary: J.filter(
|
|
4333
|
+
boundary: J.filter(qa),
|
|
4334
4334
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
4335
4335
|
altBoundary: R
|
|
4336
|
-
}, { refs: oe, floatingStyles:
|
|
4336
|
+
}, { refs: oe, floatingStyles: ae, placement: ee, isPositioned: ie, middlewareData: de } = za({
|
|
4337
4337
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
4338
4338
|
strategy: "fixed",
|
|
4339
4339
|
placement: I,
|
|
4340
|
-
whileElementsMounted:
|
|
4340
|
+
whileElementsMounted: Ga,
|
|
4341
4341
|
elements: {
|
|
4342
4342
|
reference: P.anchor
|
|
4343
4343
|
},
|
|
4344
4344
|
middleware: [
|
|
4345
|
-
$
|
|
4345
|
+
$a({
|
|
4346
4346
|
mainAxis: v + F,
|
|
4347
4347
|
alignmentAxis: m
|
|
4348
4348
|
}),
|
|
4349
|
-
w &&
|
|
4349
|
+
w && xa({
|
|
4350
4350
|
mainAxis: !0,
|
|
4351
4351
|
crossAxis: !1,
|
|
4352
|
-
limiter: h === "partial" ?
|
|
4352
|
+
limiter: h === "partial" ? wa() : void 0,
|
|
4353
4353
|
...j
|
|
4354
4354
|
}),
|
|
4355
|
-
w &&
|
|
4355
|
+
w && ga({
|
|
4356
4356
|
...j
|
|
4357
4357
|
}),
|
|
4358
|
-
|
|
4358
|
+
ya({
|
|
4359
4359
|
...j,
|
|
4360
4360
|
apply: ({ elements: se, rects: tt, availableWidth: nt, availableHeight: ot }) => {
|
|
4361
4361
|
const { width: Zr, height: Qr } = tt.reference, ft = se.floating.style;
|
|
4362
4362
|
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
4363
|
}
|
|
4364
4364
|
}),
|
|
4365
|
-
|
|
4366
|
-
element:
|
|
4365
|
+
D && Ha({
|
|
4366
|
+
element: D,
|
|
4367
4367
|
padding: p
|
|
4368
4368
|
}),
|
|
4369
|
-
|
|
4369
|
+
Za({
|
|
4370
4370
|
arrowWidth: B,
|
|
4371
4371
|
arrowHeight: F
|
|
4372
4372
|
}),
|
|
4373
|
-
x &&
|
|
4373
|
+
x && ha({
|
|
4374
4374
|
strategy: "referenceHidden"
|
|
4375
4375
|
})
|
|
4376
4376
|
]
|
|
4377
4377
|
}), [ue, O] = Bo(ee), V = ve(y);
|
|
4378
4378
|
$e(() => {
|
|
4379
|
-
|
|
4379
|
+
ie && (V == null || V());
|
|
4380
4380
|
}, [
|
|
4381
|
-
|
|
4381
|
+
ie,
|
|
4382
4382
|
V
|
|
4383
4383
|
]);
|
|
4384
|
-
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 = ((
|
|
4384
|
+
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 = ((a = de.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [q, fe] = H();
|
|
4385
4385
|
return $e(() => {
|
|
4386
4386
|
E && fe(window.getComputedStyle(E).zIndex);
|
|
4387
4387
|
}, [
|
|
@@ -4390,18 +4390,18 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
|
|
|
4390
4390
|
ref: oe.setFloating,
|
|
4391
4391
|
"data-radix-popper-content-wrapper": "",
|
|
4392
4392
|
style: {
|
|
4393
|
-
...
|
|
4394
|
-
transform:
|
|
4393
|
+
...ae,
|
|
4394
|
+
transform: ie ? ae.transform : "translate(0, -200%)",
|
|
4395
4395
|
// keep off the page when measuring
|
|
4396
4396
|
minWidth: "max-content",
|
|
4397
4397
|
zIndex: q,
|
|
4398
4398
|
"--radix-popper-transform-origin": [
|
|
4399
|
-
(
|
|
4399
|
+
(i = de.transformOrigin) === null || i === void 0 ? void 0 : i.x,
|
|
4400
4400
|
(s = de.transformOrigin) === null || s === void 0 ? void 0 : s.y
|
|
4401
4401
|
].join(" ")
|
|
4402
4402
|
},
|
|
4403
4403
|
dir: e.dir
|
|
4404
|
-
}, /* @__PURE__ */ $(
|
|
4404
|
+
}, /* @__PURE__ */ $(Ya, {
|
|
4405
4405
|
scope: u,
|
|
4406
4406
|
placedSide: ue,
|
|
4407
4407
|
onArrowChange: T,
|
|
@@ -4417,25 +4417,25 @@ const Do = "Popper", [ko, Lt] = Ne(Do), [Ui, Fo] = ko(Do), Ki = (e) => {
|
|
|
4417
4417
|
...M.style,
|
|
4418
4418
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
4419
4419
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
4420
|
-
animation:
|
|
4420
|
+
animation: ie ? void 0 : "none",
|
|
4421
4421
|
// hide the content if using the hide middleware and should be hidden
|
|
4422
4422
|
opacity: (d = de.hide) !== null && d !== void 0 && d.referenceHidden ? 0 : void 0
|
|
4423
4423
|
}
|
|
4424
4424
|
}))));
|
|
4425
4425
|
});
|
|
4426
|
-
function
|
|
4426
|
+
function qa(e) {
|
|
4427
4427
|
return e !== null;
|
|
4428
4428
|
}
|
|
4429
|
-
const
|
|
4429
|
+
const Za = (e) => ({
|
|
4430
4430
|
name: "transformOrigin",
|
|
4431
4431
|
options: e,
|
|
4432
4432
|
fn(t) {
|
|
4433
|
-
var n, o, r, c,
|
|
4434
|
-
const { placement:
|
|
4433
|
+
var n, o, r, c, a;
|
|
4434
|
+
const { placement: i, rects: s, middlewareData: d } = t, l = ((n = d.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, v = l ? 0 : e.arrowWidth, f = l ? 0 : e.arrowHeight, [m, p] = Bo(i), b = {
|
|
4435
4435
|
start: "0%",
|
|
4436
4436
|
center: "50%",
|
|
4437
4437
|
end: "100%"
|
|
4438
|
-
}[p], g = ((o = (r = d.arrow) === null || r === void 0 ? void 0 : r.x) !== null && o !== void 0 ? o : 0) + v / 2, h = ((c = (
|
|
4438
|
+
}[p], g = ((o = (r = d.arrow) === null || r === void 0 ? void 0 : r.x) !== null && o !== void 0 ? o : 0) + v / 2, h = ((c = (a = d.arrow) === null || a === void 0 ? void 0 : a.y) !== null && c !== void 0 ? c : 0) + f / 2;
|
|
4439
4439
|
let x = "", w = "";
|
|
4440
4440
|
return m === "bottom" ? (x = l ? b : `${g}px`, w = `${-f}px`) : m === "top" ? (x = l ? b : `${g}px`, w = `${s.floating.height + f}px`) : m === "right" ? (x = `${-f}px`, w = l ? b : `${h}px`) : m === "left" && (x = `${s.floating.width + f}px`, w = l ? b : `${h}px`), {
|
|
4441
4441
|
data: {
|
|
@@ -4452,21 +4452,21 @@ function Bo(e) {
|
|
|
4452
4452
|
n
|
|
4453
4453
|
];
|
|
4454
4454
|
}
|
|
4455
|
-
const yn =
|
|
4455
|
+
const yn = Ka, Go = ja, Wo = Xa, Ho = /* @__PURE__ */ _((e, t) => {
|
|
4456
4456
|
var n;
|
|
4457
4457
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...r } = e;
|
|
4458
4458
|
return o ? /* @__PURE__ */ tc.createPortal(/* @__PURE__ */ $(Q.div, C({}, r, {
|
|
4459
4459
|
ref: t
|
|
4460
4460
|
})), o) : null;
|
|
4461
4461
|
});
|
|
4462
|
-
function
|
|
4462
|
+
function Qa(e, t) {
|
|
4463
4463
|
return Jr((n, o) => {
|
|
4464
4464
|
const r = t[n][o];
|
|
4465
4465
|
return r ?? n;
|
|
4466
4466
|
}, e);
|
|
4467
4467
|
}
|
|
4468
4468
|
const Je = (e) => {
|
|
4469
|
-
const { present: t, children: n } = e, o =
|
|
4469
|
+
const { present: t, children: n } = e, o = Ja(t), r = typeof n == "function" ? n({
|
|
4470
4470
|
present: o.isPresent
|
|
4471
4471
|
}) : Ue.only(n), c = ce(o.ref, r.ref);
|
|
4472
4472
|
return typeof n == "function" || o.isPresent ? /* @__PURE__ */ pn(r, {
|
|
@@ -4474,8 +4474,8 @@ const Je = (e) => {
|
|
|
4474
4474
|
}) : null;
|
|
4475
4475
|
};
|
|
4476
4476
|
Je.displayName = "Presence";
|
|
4477
|
-
function
|
|
4478
|
-
const [t, n] = H(), o = L({}), r = L(e), c = L("none"),
|
|
4477
|
+
function Ja(e) {
|
|
4478
|
+
const [t, n] = H(), o = L({}), r = L(e), c = L("none"), a = e ? "mounted" : "unmounted", [i, s] = Qa(a, {
|
|
4479
4479
|
mounted: {
|
|
4480
4480
|
UNMOUNT: "unmounted",
|
|
4481
4481
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4490,9 +4490,9 @@ function Ji(e) {
|
|
|
4490
4490
|
});
|
|
4491
4491
|
return U(() => {
|
|
4492
4492
|
const d = vt(o.current);
|
|
4493
|
-
c.current =
|
|
4493
|
+
c.current = i === "mounted" ? d : "none";
|
|
4494
4494
|
}, [
|
|
4495
|
-
|
|
4495
|
+
i
|
|
4496
4496
|
]), $e(() => {
|
|
4497
4497
|
const d = o.current, u = r.current;
|
|
4498
4498
|
if (u !== e) {
|
|
@@ -4506,7 +4506,7 @@ function Ji(e) {
|
|
|
4506
4506
|
if (t) {
|
|
4507
4507
|
const d = (l) => {
|
|
4508
4508
|
const f = vt(o.current).includes(l.animationName);
|
|
4509
|
-
l.target === t && f &&
|
|
4509
|
+
l.target === t && f && ao(
|
|
4510
4510
|
() => s("ANIMATION_END")
|
|
4511
4511
|
);
|
|
4512
4512
|
}, u = (l) => {
|
|
@@ -4524,7 +4524,7 @@ function Ji(e) {
|
|
|
4524
4524
|
isPresent: [
|
|
4525
4525
|
"mounted",
|
|
4526
4526
|
"unmountSuspended"
|
|
4527
|
-
].includes(
|
|
4527
|
+
].includes(i),
|
|
4528
4528
|
ref: Z((d) => {
|
|
4529
4529
|
d && (o.current = getComputedStyle(d)), n(d);
|
|
4530
4530
|
}, [])
|
|
@@ -4533,21 +4533,21 @@ function Ji(e) {
|
|
|
4533
4533
|
function vt(e) {
|
|
4534
4534
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4535
4535
|
}
|
|
4536
|
-
const qt = "rovingFocusGroup.onEntryFocus",
|
|
4536
|
+
const qt = "rovingFocusGroup.onEntryFocus", ei = {
|
|
4537
4537
|
bubbles: !1,
|
|
4538
4538
|
cancelable: !0
|
|
4539
|
-
}, Cn = "RovingFocusGroup", [an, zo,
|
|
4540
|
-
|
|
4541
|
-
]), [
|
|
4539
|
+
}, Cn = "RovingFocusGroup", [an, zo, ti] = vn(Cn), [ni, Bt] = ke(Cn, [
|
|
4540
|
+
ti
|
|
4541
|
+
]), [oi, ri] = ni(Cn), ci = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(an.Provider, {
|
|
4542
4542
|
scope: e.__scopeRovingFocusGroup
|
|
4543
4543
|
}, /* @__PURE__ */ $(an.Slot, {
|
|
4544
4544
|
scope: e.__scopeRovingFocusGroup
|
|
4545
|
-
}, /* @__PURE__ */ $(
|
|
4545
|
+
}, /* @__PURE__ */ $(ai, C({}, e, {
|
|
4546
4546
|
ref: t
|
|
4547
|
-
}))))),
|
|
4548
|
-
const { __scopeRovingFocusGroup: n, orientation: o, loop: r = !1, dir: c, currentTabStopId:
|
|
4549
|
-
prop:
|
|
4550
|
-
defaultProp:
|
|
4547
|
+
}))))), ai = /* @__PURE__ */ _((e, t) => {
|
|
4548
|
+
const { __scopeRovingFocusGroup: n, orientation: o, loop: r = !1, dir: c, currentTabStopId: a, defaultCurrentTabStopId: i, onCurrentTabStopIdChange: s, onEntryFocus: d, ...u } = e, l = L(null), v = ce(t, l), f = Nt(c), [m = null, p] = je({
|
|
4549
|
+
prop: a,
|
|
4550
|
+
defaultProp: i,
|
|
4551
4551
|
onChange: s
|
|
4552
4552
|
}), [b, g] = H(!1), h = ve(d), x = zo(n), w = L(!1), [y, M] = H(0);
|
|
4553
4553
|
return U(() => {
|
|
@@ -4556,7 +4556,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4556
4556
|
return P.addEventListener(qt, h), () => P.removeEventListener(qt, h);
|
|
4557
4557
|
}, [
|
|
4558
4558
|
h
|
|
4559
|
-
]), /* @__PURE__ */ $(
|
|
4559
|
+
]), /* @__PURE__ */ $(oi, {
|
|
4560
4560
|
scope: n,
|
|
4561
4561
|
orientation: o,
|
|
4562
4562
|
dir: f,
|
|
@@ -4599,16 +4599,16 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4599
4599
|
onFocus: A(e.onFocus, (P) => {
|
|
4600
4600
|
const E = !w.current;
|
|
4601
4601
|
if (P.target === P.currentTarget && E && !b) {
|
|
4602
|
-
const
|
|
4603
|
-
if (P.currentTarget.dispatchEvent(
|
|
4602
|
+
const N = new CustomEvent(qt, ei);
|
|
4603
|
+
if (P.currentTarget.dispatchEvent(N), !N.defaultPrevented) {
|
|
4604
4604
|
const z = x().filter(
|
|
4605
4605
|
(F) => F.focusable
|
|
4606
|
-
),
|
|
4606
|
+
), D = z.find(
|
|
4607
4607
|
(F) => F.active
|
|
4608
4608
|
), T = z.find(
|
|
4609
4609
|
(F) => F.id === m
|
|
4610
4610
|
), B = [
|
|
4611
|
-
|
|
4611
|
+
D,
|
|
4612
4612
|
T,
|
|
4613
4613
|
...z
|
|
4614
4614
|
].filter(Boolean).map(
|
|
@@ -4624,8 +4624,8 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4624
4624
|
() => g(!1)
|
|
4625
4625
|
)
|
|
4626
4626
|
})));
|
|
4627
|
-
}),
|
|
4628
|
-
const { __scopeRovingFocusGroup: n, focusable: o = !0, active: r = !1, tabStopId: c, ...
|
|
4627
|
+
}), ii = "RovingFocusGroupItem", si = /* @__PURE__ */ _((e, t) => {
|
|
4628
|
+
const { __scopeRovingFocusGroup: n, focusable: o = !0, active: r = !1, tabStopId: c, ...a } = e, i = Te(), s = c || i, d = ri(ii, n), u = d.currentTabStopId === s, l = zo(n), { onFocusableItemAdd: v, onFocusableItemRemove: f } = d;
|
|
4629
4629
|
return U(() => {
|
|
4630
4630
|
if (o)
|
|
4631
4631
|
return v(), () => f();
|
|
@@ -4641,7 +4641,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4641
4641
|
}, /* @__PURE__ */ $(Q.span, C({
|
|
4642
4642
|
tabIndex: u ? 0 : -1,
|
|
4643
4643
|
"data-orientation": d.orientation
|
|
4644
|
-
},
|
|
4644
|
+
}, a, {
|
|
4645
4645
|
ref: t,
|
|
4646
4646
|
onMouseDown: A(e.onMouseDown, (m) => {
|
|
4647
4647
|
o ? d.onItemFocus(s) : m.preventDefault();
|
|
@@ -4657,7 +4657,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4657
4657
|
}
|
|
4658
4658
|
if (m.target !== m.currentTarget)
|
|
4659
4659
|
return;
|
|
4660
|
-
const p =
|
|
4660
|
+
const p = ui(m, d.orientation, d.dir);
|
|
4661
4661
|
if (p !== void 0) {
|
|
4662
4662
|
m.preventDefault();
|
|
4663
4663
|
let g = l().filter(
|
|
@@ -4670,7 +4670,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4670
4670
|
else if (p === "prev" || p === "next") {
|
|
4671
4671
|
p === "prev" && g.reverse();
|
|
4672
4672
|
const h = g.indexOf(m.currentTarget);
|
|
4673
|
-
g = d.loop ?
|
|
4673
|
+
g = d.loop ? fi(g, h + 1) : g.slice(h + 1);
|
|
4674
4674
|
}
|
|
4675
4675
|
setTimeout(
|
|
4676
4676
|
() => Uo(g)
|
|
@@ -4678,7 +4678,7 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
})
|
|
4680
4680
|
})));
|
|
4681
|
-
}),
|
|
4681
|
+
}), li = {
|
|
4682
4682
|
ArrowLeft: "prev",
|
|
4683
4683
|
ArrowUp: "prev",
|
|
4684
4684
|
ArrowRight: "next",
|
|
@@ -4688,11 +4688,11 @@ const qt = "rovingFocusGroup.onEntryFocus", ea = {
|
|
|
4688
4688
|
PageDown: "last",
|
|
4689
4689
|
End: "last"
|
|
4690
4690
|
};
|
|
4691
|
-
function
|
|
4691
|
+
function di(e, t) {
|
|
4692
4692
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4695
|
-
const o =
|
|
4694
|
+
function ui(e, t, n) {
|
|
4695
|
+
const o = di(e.key, n);
|
|
4696
4696
|
if (!(t === "vertical" && [
|
|
4697
4697
|
"ArrowLeft",
|
|
4698
4698
|
"ArrowRight"
|
|
@@ -4700,7 +4700,7 @@ function ua(e, t, n) {
|
|
|
4700
4700
|
"ArrowUp",
|
|
4701
4701
|
"ArrowDown"
|
|
4702
4702
|
].includes(o)))
|
|
4703
|
-
return
|
|
4703
|
+
return li[o];
|
|
4704
4704
|
}
|
|
4705
4705
|
function Uo(e) {
|
|
4706
4706
|
const t = document.activeElement;
|
|
@@ -4708,20 +4708,20 @@ function Uo(e) {
|
|
|
4708
4708
|
if (n === t || (n.focus(), document.activeElement !== t))
|
|
4709
4709
|
return;
|
|
4710
4710
|
}
|
|
4711
|
-
function
|
|
4711
|
+
function fi(e, t) {
|
|
4712
4712
|
return e.map(
|
|
4713
4713
|
(n, o) => e[(t + o) % e.length]
|
|
4714
4714
|
);
|
|
4715
4715
|
}
|
|
4716
|
-
const Ko =
|
|
4717
|
-
var
|
|
4716
|
+
const Ko = ci, Vo = si;
|
|
4717
|
+
var pi = function(e) {
|
|
4718
4718
|
if (typeof document > "u")
|
|
4719
4719
|
return null;
|
|
4720
4720
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4721
4721
|
return t.ownerDocument.body;
|
|
4722
4722
|
}, We = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ht = {}, Zt = 0, jo = function(e) {
|
|
4723
4723
|
return e && (e.host || jo(e.parentNode));
|
|
4724
|
-
},
|
|
4724
|
+
}, mi = function(e, t) {
|
|
4725
4725
|
return t.map(function(n) {
|
|
4726
4726
|
if (e.contains(n))
|
|
4727
4727
|
return n;
|
|
@@ -4730,33 +4730,33 @@ var pa = function(e) {
|
|
|
4730
4730
|
}).filter(function(n) {
|
|
4731
4731
|
return !!n;
|
|
4732
4732
|
});
|
|
4733
|
-
},
|
|
4734
|
-
var r =
|
|
4733
|
+
}, vi = function(e, t, n, o) {
|
|
4734
|
+
var r = mi(t, Array.isArray(e) ? e : [e]);
|
|
4735
4735
|
ht[n] || (ht[n] = /* @__PURE__ */ new WeakMap());
|
|
4736
|
-
var c = ht[n],
|
|
4737
|
-
!l ||
|
|
4736
|
+
var c = ht[n], a = [], i = /* @__PURE__ */ new Set(), s = new Set(r), d = function(l) {
|
|
4737
|
+
!l || i.has(l) || (i.add(l), d(l.parentNode));
|
|
4738
4738
|
};
|
|
4739
4739
|
r.forEach(d);
|
|
4740
4740
|
var u = function(l) {
|
|
4741
4741
|
!l || s.has(l) || Array.prototype.forEach.call(l.children, function(v) {
|
|
4742
|
-
if (
|
|
4742
|
+
if (i.has(v))
|
|
4743
4743
|
u(v);
|
|
4744
4744
|
else {
|
|
4745
4745
|
var f = v.getAttribute(o), m = f !== null && f !== "false", p = (We.get(v) || 0) + 1, b = (c.get(v) || 0) + 1;
|
|
4746
|
-
We.set(v, p), c.set(v, b),
|
|
4746
|
+
We.set(v, p), c.set(v, b), a.push(v), p === 1 && m && gt.set(v, !0), b === 1 && v.setAttribute(n, "true"), m || v.setAttribute(o, "true");
|
|
4747
4747
|
}
|
|
4748
4748
|
});
|
|
4749
4749
|
};
|
|
4750
|
-
return u(t),
|
|
4751
|
-
|
|
4750
|
+
return u(t), i.clear(), Zt++, function() {
|
|
4751
|
+
a.forEach(function(l) {
|
|
4752
4752
|
var v = We.get(l) - 1, f = c.get(l) - 1;
|
|
4753
4753
|
We.set(l, v), c.set(l, f), v || (gt.has(l) || l.removeAttribute(o), gt.delete(l)), f || l.removeAttribute(n);
|
|
4754
4754
|
}), Zt--, Zt || (We = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ht = {});
|
|
4755
4755
|
};
|
|
4756
4756
|
}, Yo = function(e, t, n) {
|
|
4757
4757
|
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]"))),
|
|
4758
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), r = t || pi(e);
|
|
4759
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live]"))), vi(o, r, n, "aria-hidden")) : function() {
|
|
4760
4760
|
return null;
|
|
4761
4761
|
};
|
|
4762
4762
|
}, we = function() {
|
|
@@ -4778,17 +4778,17 @@ function Xo(e, t) {
|
|
|
4778
4778
|
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
|
|
4779
4779
|
return n;
|
|
4780
4780
|
}
|
|
4781
|
-
function
|
|
4781
|
+
function gi(e, t, n) {
|
|
4782
4782
|
if (n || arguments.length === 2)
|
|
4783
4783
|
for (var o = 0, r = t.length, c; o < r; o++)
|
|
4784
4784
|
(c || !(o in t)) && (c || (c = Array.prototype.slice.call(t, 0, o)), c[o] = t[o]);
|
|
4785
4785
|
return e.concat(c || Array.prototype.slice.call(t));
|
|
4786
4786
|
}
|
|
4787
|
-
var Ct = "right-scroll-bar-position", St = "width-before-scroll-bar",
|
|
4788
|
-
function $
|
|
4787
|
+
var Ct = "right-scroll-bar-position", St = "width-before-scroll-bar", hi = "with-scroll-bars-hidden", bi = "--removed-body-scroll-bar-size";
|
|
4788
|
+
function $i(e, t) {
|
|
4789
4789
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4790
4790
|
}
|
|
4791
|
-
function
|
|
4791
|
+
function xi(e, t) {
|
|
4792
4792
|
var n = H(function() {
|
|
4793
4793
|
return {
|
|
4794
4794
|
// value
|
|
@@ -4809,18 +4809,18 @@ function xa(e, t) {
|
|
|
4809
4809
|
})[0];
|
|
4810
4810
|
return n.callback = t, n.facade;
|
|
4811
4811
|
}
|
|
4812
|
-
function
|
|
4813
|
-
return
|
|
4812
|
+
function wi(e, t) {
|
|
4813
|
+
return xi(t || null, function(n) {
|
|
4814
4814
|
return e.forEach(function(o) {
|
|
4815
|
-
return $
|
|
4815
|
+
return $i(o, n);
|
|
4816
4816
|
});
|
|
4817
4817
|
});
|
|
4818
4818
|
}
|
|
4819
|
-
function
|
|
4819
|
+
function yi(e) {
|
|
4820
4820
|
return e;
|
|
4821
4821
|
}
|
|
4822
|
-
function
|
|
4823
|
-
t === void 0 && (t =
|
|
4822
|
+
function Ci(e, t) {
|
|
4823
|
+
t === void 0 && (t = yi);
|
|
4824
4824
|
var n = [], o = !1, r = {
|
|
4825
4825
|
read: function() {
|
|
4826
4826
|
if (o)
|
|
@@ -4828,21 +4828,21 @@ function Ca(e, t) {
|
|
|
4828
4828
|
return n.length ? n[n.length - 1] : e;
|
|
4829
4829
|
},
|
|
4830
4830
|
useMedium: function(c) {
|
|
4831
|
-
var
|
|
4832
|
-
return n.push(
|
|
4833
|
-
n = n.filter(function(
|
|
4834
|
-
return
|
|
4831
|
+
var a = t(c, o);
|
|
4832
|
+
return n.push(a), function() {
|
|
4833
|
+
n = n.filter(function(i) {
|
|
4834
|
+
return i !== a;
|
|
4835
4835
|
});
|
|
4836
4836
|
};
|
|
4837
4837
|
},
|
|
4838
4838
|
assignSyncMedium: function(c) {
|
|
4839
4839
|
for (o = !0; n.length; ) {
|
|
4840
|
-
var
|
|
4841
|
-
n = [],
|
|
4840
|
+
var a = n;
|
|
4841
|
+
n = [], a.forEach(c);
|
|
4842
4842
|
}
|
|
4843
4843
|
n = {
|
|
4844
|
-
push: function(
|
|
4845
|
-
return c(
|
|
4844
|
+
push: function(i) {
|
|
4845
|
+
return c(i);
|
|
4846
4846
|
},
|
|
4847
4847
|
filter: function() {
|
|
4848
4848
|
return n;
|
|
@@ -4851,32 +4851,32 @@ function Ca(e, t) {
|
|
|
4851
4851
|
},
|
|
4852
4852
|
assignMedium: function(c) {
|
|
4853
4853
|
o = !0;
|
|
4854
|
-
var
|
|
4854
|
+
var a = [];
|
|
4855
4855
|
if (n.length) {
|
|
4856
|
-
var
|
|
4857
|
-
n = [],
|
|
4856
|
+
var i = n;
|
|
4857
|
+
n = [], i.forEach(c), a = n;
|
|
4858
4858
|
}
|
|
4859
4859
|
var s = function() {
|
|
4860
|
-
var u =
|
|
4861
|
-
|
|
4860
|
+
var u = a;
|
|
4861
|
+
a = [], u.forEach(c);
|
|
4862
4862
|
}, d = function() {
|
|
4863
4863
|
return Promise.resolve().then(s);
|
|
4864
4864
|
};
|
|
4865
4865
|
d(), n = {
|
|
4866
4866
|
push: function(u) {
|
|
4867
|
-
|
|
4867
|
+
a.push(u), d();
|
|
4868
4868
|
},
|
|
4869
4869
|
filter: function(u) {
|
|
4870
|
-
return
|
|
4870
|
+
return a = a.filter(u), n;
|
|
4871
4871
|
}
|
|
4872
4872
|
};
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
4875
|
return r;
|
|
4876
4876
|
}
|
|
4877
|
-
function
|
|
4877
|
+
function Si(e) {
|
|
4878
4878
|
e === void 0 && (e = {});
|
|
4879
|
-
var t =
|
|
4879
|
+
var t = Ci(null);
|
|
4880
4880
|
return t.options = we({ async: !0, ssr: !1 }, e), t;
|
|
4881
4881
|
}
|
|
4882
4882
|
var qo = function(e) {
|
|
@@ -4889,21 +4889,21 @@ var qo = function(e) {
|
|
|
4889
4889
|
return S.createElement(o, we({}, n));
|
|
4890
4890
|
};
|
|
4891
4891
|
qo.isSideCarExport = !0;
|
|
4892
|
-
function
|
|
4892
|
+
function Pi(e, t) {
|
|
4893
4893
|
return e.useMedium(t), qo;
|
|
4894
4894
|
}
|
|
4895
|
-
var Zo =
|
|
4895
|
+
var Zo = Si(), Qt = function() {
|
|
4896
4896
|
}, Gt = S.forwardRef(function(e, t) {
|
|
4897
4897
|
var n = S.useRef(null), o = S.useState({
|
|
4898
4898
|
onScrollCapture: Qt,
|
|
4899
4899
|
onWheelCapture: Qt,
|
|
4900
4900
|
onTouchMoveCapture: Qt
|
|
4901
|
-
}), r = o[0], c = o[1],
|
|
4901
|
+
}), r = o[0], c = o[1], a = e.forwardProps, i = 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 = wi([n, t]), y = we(we({}, h), r);
|
|
4902
4902
|
return S.createElement(
|
|
4903
4903
|
S.Fragment,
|
|
4904
4904
|
null,
|
|
4905
4905
|
u && S.createElement(x, { sideCar: Zo, removeScrollBar: d, shards: l, noIsolation: f, inert: m, setCallbacks: c, allowPinchZoom: !!p, lockRef: n }),
|
|
4906
|
-
|
|
4906
|
+
a ? S.cloneElement(S.Children.only(i), we(we({}, y), { ref: w })) : S.createElement(g, we({}, y, { className: s, ref: w }), i)
|
|
4907
4907
|
);
|
|
4908
4908
|
});
|
|
4909
4909
|
Gt.defaultProps = {
|
|
@@ -4915,39 +4915,39 @@ Gt.classNames = {
|
|
|
4915
4915
|
fullWidth: St,
|
|
4916
4916
|
zeroRight: Ct
|
|
4917
4917
|
};
|
|
4918
|
-
var Zn,
|
|
4918
|
+
var Zn, Ei = function() {
|
|
4919
4919
|
if (Zn)
|
|
4920
4920
|
return Zn;
|
|
4921
4921
|
if (typeof __webpack_nonce__ < "u")
|
|
4922
4922
|
return __webpack_nonce__;
|
|
4923
4923
|
};
|
|
4924
|
-
function
|
|
4924
|
+
function _i() {
|
|
4925
4925
|
if (!document)
|
|
4926
4926
|
return null;
|
|
4927
4927
|
var e = document.createElement("style");
|
|
4928
4928
|
e.type = "text/css";
|
|
4929
|
-
var t =
|
|
4929
|
+
var t = Ei();
|
|
4930
4930
|
return t && e.setAttribute("nonce", t), e;
|
|
4931
4931
|
}
|
|
4932
|
-
function
|
|
4932
|
+
function Mi(e, t) {
|
|
4933
4933
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4934
4934
|
}
|
|
4935
|
-
function
|
|
4935
|
+
function Ri(e) {
|
|
4936
4936
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
4937
4937
|
t.appendChild(e);
|
|
4938
4938
|
}
|
|
4939
|
-
var
|
|
4939
|
+
var Ti = function() {
|
|
4940
4940
|
var e = 0, t = null;
|
|
4941
4941
|
return {
|
|
4942
4942
|
add: function(n) {
|
|
4943
|
-
e == 0 && (t =
|
|
4943
|
+
e == 0 && (t = _i()) && (Mi(t, n), Ri(t)), e++;
|
|
4944
4944
|
},
|
|
4945
4945
|
remove: function() {
|
|
4946
4946
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
4947
4947
|
}
|
|
4948
4948
|
};
|
|
4949
|
-
},
|
|
4950
|
-
var e =
|
|
4949
|
+
}, Oi = function() {
|
|
4950
|
+
var e = Ti();
|
|
4951
4951
|
return function(t, n) {
|
|
4952
4952
|
S.useEffect(function() {
|
|
4953
4953
|
return e.add(t), function() {
|
|
@@ -4956,37 +4956,37 @@ var Ta = function() {
|
|
|
4956
4956
|
}, [t && n]);
|
|
4957
4957
|
};
|
|
4958
4958
|
}, Qo = function() {
|
|
4959
|
-
var e =
|
|
4959
|
+
var e = Oi(), t = function(n) {
|
|
4960
4960
|
var o = n.styles, r = n.dynamic;
|
|
4961
4961
|
return e(o, r), null;
|
|
4962
4962
|
};
|
|
4963
4963
|
return t;
|
|
4964
|
-
},
|
|
4964
|
+
}, Ai = {
|
|
4965
4965
|
left: 0,
|
|
4966
4966
|
top: 0,
|
|
4967
4967
|
right: 0,
|
|
4968
4968
|
gap: 0
|
|
4969
4969
|
}, Jt = function(e) {
|
|
4970
4970
|
return parseInt(e || "", 10) || 0;
|
|
4971
|
-
},
|
|
4971
|
+
}, Ii = function(e) {
|
|
4972
4972
|
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
4973
|
return [Jt(n), Jt(o), Jt(r)];
|
|
4974
|
-
},
|
|
4974
|
+
}, ki = function(e) {
|
|
4975
4975
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4976
|
-
return
|
|
4977
|
-
var t =
|
|
4976
|
+
return Ai;
|
|
4977
|
+
var t = Ii(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
4978
4978
|
return {
|
|
4979
4979
|
left: t[0],
|
|
4980
4980
|
top: t[1],
|
|
4981
4981
|
right: t[2],
|
|
4982
4982
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
4983
4983
|
};
|
|
4984
|
-
},
|
|
4985
|
-
var r = e.left, c = e.top,
|
|
4984
|
+
}, Ni = Qo(), Di = function(e, t, n, o) {
|
|
4985
|
+
var r = e.left, c = e.top, a = e.right, i = e.gap;
|
|
4986
4986
|
return n === void 0 && (n = "margin"), `
|
|
4987
|
-
.`.concat(
|
|
4987
|
+
.`.concat(hi, ` {
|
|
4988
4988
|
overflow: hidden `).concat(o, `;
|
|
4989
|
-
padding-right: `).concat(
|
|
4989
|
+
padding-right: `).concat(i, "px ").concat(o, `;
|
|
4990
4990
|
}
|
|
4991
4991
|
body {
|
|
4992
4992
|
overflow: hidden `).concat(o, `;
|
|
@@ -4996,21 +4996,21 @@ var Ta = function() {
|
|
|
4996
4996
|
n === "margin" && `
|
|
4997
4997
|
padding-left: `.concat(r, `px;
|
|
4998
4998
|
padding-top: `).concat(c, `px;
|
|
4999
|
-
padding-right: `).concat(
|
|
4999
|
+
padding-right: `).concat(a, `px;
|
|
5000
5000
|
margin-left:0;
|
|
5001
5001
|
margin-top:0;
|
|
5002
|
-
margin-right: `).concat(
|
|
5002
|
+
margin-right: `).concat(i, "px ").concat(o, `;
|
|
5003
5003
|
`),
|
|
5004
|
-
n === "padding" && "padding-right: ".concat(
|
|
5004
|
+
n === "padding" && "padding-right: ".concat(i, "px ").concat(o, ";")
|
|
5005
5005
|
].filter(Boolean).join(""), `
|
|
5006
5006
|
}
|
|
5007
5007
|
|
|
5008
5008
|
.`).concat(Ct, ` {
|
|
5009
|
-
right: `).concat(
|
|
5009
|
+
right: `).concat(i, "px ").concat(o, `;
|
|
5010
5010
|
}
|
|
5011
5011
|
|
|
5012
5012
|
.`).concat(St, ` {
|
|
5013
|
-
margin-right: `).concat(
|
|
5013
|
+
margin-right: `).concat(i, "px ").concat(o, `;
|
|
5014
5014
|
}
|
|
5015
5015
|
|
|
5016
5016
|
.`).concat(Ct, " .").concat(Ct, ` {
|
|
@@ -5022,14 +5022,14 @@ var Ta = function() {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
|
|
5024
5024
|
body {
|
|
5025
|
-
`).concat(
|
|
5025
|
+
`).concat(bi, ": ").concat(i, `px;
|
|
5026
5026
|
}
|
|
5027
5027
|
`);
|
|
5028
|
-
},
|
|
5028
|
+
}, Fi = function(e) {
|
|
5029
5029
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o, c = S.useMemo(function() {
|
|
5030
|
-
return
|
|
5030
|
+
return ki(r);
|
|
5031
5031
|
}, [r]);
|
|
5032
|
-
return S.createElement(
|
|
5032
|
+
return S.createElement(Ni, { styles: Di(c, !t, r, n ? "" : "!important") });
|
|
5033
5033
|
}, sn = !1;
|
|
5034
5034
|
if (typeof window < "u")
|
|
5035
5035
|
try {
|
|
@@ -5042,18 +5042,18 @@ if (typeof window < "u")
|
|
|
5042
5042
|
} catch {
|
|
5043
5043
|
sn = !1;
|
|
5044
5044
|
}
|
|
5045
|
-
var He = sn ? { passive: !1 } : !1,
|
|
5045
|
+
var He = sn ? { passive: !1 } : !1, Li = function(e) {
|
|
5046
5046
|
return e.tagName === "TEXTAREA";
|
|
5047
5047
|
}, Jo = function(e, t) {
|
|
5048
5048
|
var n = window.getComputedStyle(e);
|
|
5049
5049
|
return (
|
|
5050
5050
|
// not-not-scrollable
|
|
5051
5051
|
n[t] !== "hidden" && // contains scroll inside self
|
|
5052
|
-
!(n.overflowY === n.overflowX && !
|
|
5052
|
+
!(n.overflowY === n.overflowX && !Li(e) && n[t] === "visible")
|
|
5053
5053
|
);
|
|
5054
|
-
},
|
|
5054
|
+
}, Bi = function(e) {
|
|
5055
5055
|
return Jo(e, "overflowY");
|
|
5056
|
-
},
|
|
5056
|
+
}, Gi = function(e) {
|
|
5057
5057
|
return Jo(e, "overflowX");
|
|
5058
5058
|
}, Qn = function(e, t) {
|
|
5059
5059
|
var n = t;
|
|
@@ -5061,21 +5061,21 @@ var He = sn ? { passive: !1 } : !1, La = function(e) {
|
|
|
5061
5061
|
typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
|
|
5062
5062
|
var o = er(e, n);
|
|
5063
5063
|
if (o) {
|
|
5064
|
-
var r = tr(e, n), c = r[1],
|
|
5065
|
-
if (c >
|
|
5064
|
+
var r = tr(e, n), c = r[1], a = r[2];
|
|
5065
|
+
if (c > a)
|
|
5066
5066
|
return !0;
|
|
5067
5067
|
}
|
|
5068
5068
|
n = n.parentNode;
|
|
5069
5069
|
} while (n && n !== document.body);
|
|
5070
5070
|
return !1;
|
|
5071
|
-
},
|
|
5071
|
+
}, Wi = function(e) {
|
|
5072
5072
|
var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
|
|
5073
5073
|
return [
|
|
5074
5074
|
t,
|
|
5075
5075
|
n,
|
|
5076
5076
|
o
|
|
5077
5077
|
];
|
|
5078
|
-
},
|
|
5078
|
+
}, Hi = function(e) {
|
|
5079
5079
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
5080
5080
|
return [
|
|
5081
5081
|
t,
|
|
@@ -5083,46 +5083,46 @@ var He = sn ? { passive: !1 } : !1, La = function(e) {
|
|
|
5083
5083
|
o
|
|
5084
5084
|
];
|
|
5085
5085
|
}, er = function(e, t) {
|
|
5086
|
-
return e === "v" ?
|
|
5086
|
+
return e === "v" ? Bi(t) : Gi(t);
|
|
5087
5087
|
}, tr = function(e, t) {
|
|
5088
|
-
return e === "v" ?
|
|
5089
|
-
},
|
|
5088
|
+
return e === "v" ? Wi(t) : Hi(t);
|
|
5089
|
+
}, zi = function(e, t) {
|
|
5090
5090
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
5091
|
-
},
|
|
5092
|
-
var c =
|
|
5091
|
+
}, Ui = function(e, t, n, o, r) {
|
|
5092
|
+
var c = zi(e, window.getComputedStyle(t).direction), a = c * o, i = n.target, s = t.contains(i), d = !1, u = a > 0, l = 0, v = 0;
|
|
5093
5093
|
do {
|
|
5094
|
-
var f = tr(e,
|
|
5095
|
-
(m || g) && er(e,
|
|
5094
|
+
var f = tr(e, i), m = f[0], p = f[1], b = f[2], g = p - b - c * m;
|
|
5095
|
+
(m || g) && er(e, i) && (l += g, v += m), i = i.parentNode;
|
|
5096
5096
|
} while (
|
|
5097
5097
|
// portaled content
|
|
5098
|
-
!s &&
|
|
5099
|
-
s && (t.contains(
|
|
5098
|
+
!s && i !== document.body || // self content
|
|
5099
|
+
s && (t.contains(i) || t === i)
|
|
5100
5100
|
);
|
|
5101
|
-
return (u && (r && l === 0 || !r &&
|
|
5101
|
+
return (u && (r && l === 0 || !r && a > l) || !u && (r && v === 0 || !r && -a > v)) && (d = !0), d;
|
|
5102
5102
|
}, $t = function(e) {
|
|
5103
5103
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5104
5104
|
}, Jn = function(e) {
|
|
5105
5105
|
return [e.deltaX, e.deltaY];
|
|
5106
5106
|
}, eo = function(e) {
|
|
5107
5107
|
return e && "current" in e ? e.current : e;
|
|
5108
|
-
},
|
|
5108
|
+
}, Ki = function(e, t) {
|
|
5109
5109
|
return e[0] === t[0] && e[1] === t[1];
|
|
5110
|
-
},
|
|
5110
|
+
}, Vi = function(e) {
|
|
5111
5111
|
return `
|
|
5112
5112
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
5113
5113
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
5114
5114
|
`);
|
|
5115
|
-
},
|
|
5116
|
-
function
|
|
5117
|
-
var t = S.useRef([]), n = S.useRef([0, 0]), o = S.useRef(), r = S.useState(
|
|
5115
|
+
}, ji = 0, ze = [];
|
|
5116
|
+
function Yi(e) {
|
|
5117
|
+
var t = S.useRef([]), n = S.useRef([0, 0]), o = S.useRef(), r = S.useState(ji++)[0], c = S.useState(function() {
|
|
5118
5118
|
return Qo();
|
|
5119
|
-
})[0],
|
|
5119
|
+
})[0], a = S.useRef(e);
|
|
5120
5120
|
S.useEffect(function() {
|
|
5121
|
-
|
|
5121
|
+
a.current = e;
|
|
5122
5122
|
}, [e]), S.useEffect(function() {
|
|
5123
5123
|
if (e.inert) {
|
|
5124
5124
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
5125
|
-
var p =
|
|
5125
|
+
var p = gi([e.lockRef.current], (e.shards || []).map(eo), !0).filter(Boolean);
|
|
5126
5126
|
return p.forEach(function(b) {
|
|
5127
5127
|
return b.classList.add("allow-interactivity-".concat(r));
|
|
5128
5128
|
}), function() {
|
|
@@ -5132,9 +5132,9 @@ function Ya(e) {
|
|
|
5132
5132
|
};
|
|
5133
5133
|
}
|
|
5134
5134
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
5135
|
-
var
|
|
5135
|
+
var i = S.useCallback(function(p, b) {
|
|
5136
5136
|
if ("touches" in p && p.touches.length === 2)
|
|
5137
|
-
return !
|
|
5137
|
+
return !a.current.allowPinchZoom;
|
|
5138
5138
|
var g = $t(p), h = n.current, x = "deltaX" in p ? p.deltaX : h[0] - g[0], w = "deltaY" in p ? p.deltaY : h[1] - g[1], y, M = p.target, P = Math.abs(x) > Math.abs(w) ? "h" : "v";
|
|
5139
5139
|
if ("touches" in p && P === "h" && M.type === "range")
|
|
5140
5140
|
return !1;
|
|
@@ -5145,22 +5145,22 @@ function Ya(e) {
|
|
|
5145
5145
|
return !1;
|
|
5146
5146
|
if (!o.current && "changedTouches" in p && (x || w) && (o.current = y), !y)
|
|
5147
5147
|
return !0;
|
|
5148
|
-
var
|
|
5149
|
-
return
|
|
5148
|
+
var N = o.current || y;
|
|
5149
|
+
return Ui(N, b, p, N === "h" ? x : w, !0);
|
|
5150
5150
|
}, []), s = S.useCallback(function(p) {
|
|
5151
5151
|
var b = p;
|
|
5152
5152
|
if (!(!ze.length || ze[ze.length - 1] !== c)) {
|
|
5153
5153
|
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 &&
|
|
5154
|
+
return y.name === b.type && y.target === b.target && Ki(y.delta, g);
|
|
5155
5155
|
})[0];
|
|
5156
5156
|
if (h && h.should) {
|
|
5157
5157
|
b.cancelable && b.preventDefault();
|
|
5158
5158
|
return;
|
|
5159
5159
|
}
|
|
5160
5160
|
if (!h) {
|
|
5161
|
-
var x = (
|
|
5161
|
+
var x = (a.current.shards || []).map(eo).filter(Boolean).filter(function(y) {
|
|
5162
5162
|
return y.contains(b.target);
|
|
5163
|
-
}), w = x.length > 0 ?
|
|
5163
|
+
}), w = x.length > 0 ? i(b, x[0]) : !a.current.noIsolation;
|
|
5164
5164
|
w && b.cancelable && b.preventDefault();
|
|
5165
5165
|
}
|
|
5166
5166
|
}
|
|
@@ -5174,9 +5174,9 @@ function Ya(e) {
|
|
|
5174
5174
|
}, []), u = S.useCallback(function(p) {
|
|
5175
5175
|
n.current = $t(p), o.current = void 0;
|
|
5176
5176
|
}, []), l = S.useCallback(function(p) {
|
|
5177
|
-
d(p.type, Jn(p), p.target,
|
|
5177
|
+
d(p.type, Jn(p), p.target, i(p, e.lockRef.current));
|
|
5178
5178
|
}, []), v = S.useCallback(function(p) {
|
|
5179
|
-
d(p.type, $t(p), p.target,
|
|
5179
|
+
d(p.type, $t(p), p.target, i(p, e.lockRef.current));
|
|
5180
5180
|
}, []);
|
|
5181
5181
|
S.useEffect(function() {
|
|
5182
5182
|
return ze.push(c), e.setCallbacks({
|
|
@@ -5193,19 +5193,19 @@ function Ya(e) {
|
|
|
5193
5193
|
return S.createElement(
|
|
5194
5194
|
S.Fragment,
|
|
5195
5195
|
null,
|
|
5196
|
-
m ? S.createElement(c, { styles:
|
|
5197
|
-
f ? S.createElement(
|
|
5196
|
+
m ? S.createElement(c, { styles: Vi(r) }) : null,
|
|
5197
|
+
f ? S.createElement(Fi, { gapMode: "margin" }) : null
|
|
5198
5198
|
);
|
|
5199
5199
|
}
|
|
5200
|
-
const
|
|
5200
|
+
const Xi = Pi(Zo, Yi);
|
|
5201
5201
|
var nr = S.forwardRef(function(e, t) {
|
|
5202
|
-
return S.createElement(Gt, we({}, e, { ref: t, sideCar:
|
|
5202
|
+
return S.createElement(Gt, we({}, e, { ref: t, sideCar: Xi }));
|
|
5203
5203
|
});
|
|
5204
5204
|
nr.classNames = Gt.classNames;
|
|
5205
5205
|
const or = nr, ln = [
|
|
5206
5206
|
"Enter",
|
|
5207
5207
|
" "
|
|
5208
|
-
],
|
|
5208
|
+
], qi = [
|
|
5209
5209
|
"ArrowDown",
|
|
5210
5210
|
"PageUp",
|
|
5211
5211
|
"Home"
|
|
@@ -5213,10 +5213,10 @@ const or = nr, ln = [
|
|
|
5213
5213
|
"ArrowUp",
|
|
5214
5214
|
"PageDown",
|
|
5215
5215
|
"End"
|
|
5216
|
-
],
|
|
5217
|
-
...
|
|
5216
|
+
], Zi = [
|
|
5217
|
+
...qi,
|
|
5218
5218
|
...rr
|
|
5219
|
-
],
|
|
5219
|
+
], Qi = {
|
|
5220
5220
|
ltr: [
|
|
5221
5221
|
...ln,
|
|
5222
5222
|
"ArrowRight"
|
|
@@ -5225,19 +5225,19 @@ const or = nr, ln = [
|
|
|
5225
5225
|
...ln,
|
|
5226
5226
|
"ArrowLeft"
|
|
5227
5227
|
]
|
|
5228
|
-
},
|
|
5228
|
+
}, Ji = {
|
|
5229
5229
|
ltr: [
|
|
5230
5230
|
"ArrowLeft"
|
|
5231
5231
|
],
|
|
5232
5232
|
rtl: [
|
|
5233
5233
|
"ArrowRight"
|
|
5234
5234
|
]
|
|
5235
|
-
}, Wt = "Menu", [
|
|
5235
|
+
}, Wt = "Menu", [it, es, ts] = vn(Wt), [Be, cr] = ke(Wt, [
|
|
5236
5236
|
ts,
|
|
5237
5237
|
Lt,
|
|
5238
5238
|
Bt
|
|
5239
|
-
]), Ht = Lt(),
|
|
5240
|
-
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: c, modal:
|
|
5239
|
+
]), Ht = Lt(), ar = Bt(), [ir, Ne] = Be(Wt), [ns, ut] = Be(Wt), os = (e) => {
|
|
5240
|
+
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: c, modal: a = !0 } = e, i = Ht(t), [s, d] = H(null), u = L(!1), l = ve(c), v = Nt(r);
|
|
5241
5241
|
return U(() => {
|
|
5242
5242
|
const f = () => {
|
|
5243
5243
|
u.current = !0, document.addEventListener("pointerdown", m, {
|
|
@@ -5259,7 +5259,7 @@ const or = nr, ln = [
|
|
|
5259
5259
|
capture: !0
|
|
5260
5260
|
});
|
|
5261
5261
|
};
|
|
5262
|
-
}, []), /* @__PURE__ */ $(yn,
|
|
5262
|
+
}, []), /* @__PURE__ */ $(yn, i, /* @__PURE__ */ $(ir, {
|
|
5263
5263
|
scope: t,
|
|
5264
5264
|
open: n,
|
|
5265
5265
|
onOpenChange: l,
|
|
@@ -5275,7 +5275,7 @@ const or = nr, ln = [
|
|
|
5275
5275
|
),
|
|
5276
5276
|
isUsingKeyboardRef: u,
|
|
5277
5277
|
dir: v,
|
|
5278
|
-
modal:
|
|
5278
|
+
modal: a
|
|
5279
5279
|
}, o)));
|
|
5280
5280
|
}, sr = /* @__PURE__ */ _((e, t) => {
|
|
5281
5281
|
const { __scopeMenu: n, ...o } = e, r = Ht(n);
|
|
@@ -5285,7 +5285,7 @@ const or = nr, ln = [
|
|
|
5285
5285
|
}), lr = "MenuPortal", [rs, dr] = Be(lr, {
|
|
5286
5286
|
forceMount: void 0
|
|
5287
5287
|
}), cs = (e) => {
|
|
5288
|
-
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, c =
|
|
5288
|
+
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, c = Ne(lr, t);
|
|
5289
5289
|
return /* @__PURE__ */ $(rs, {
|
|
5290
5290
|
scope: t,
|
|
5291
5291
|
forceMount: n
|
|
@@ -5295,21 +5295,21 @@ const or = nr, ln = [
|
|
|
5295
5295
|
asChild: !0,
|
|
5296
5296
|
container: r
|
|
5297
5297
|
}, o)));
|
|
5298
|
-
}, be = "MenuContent", [
|
|
5299
|
-
const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c =
|
|
5300
|
-
return /* @__PURE__ */ $(
|
|
5298
|
+
}, be = "MenuContent", [as, Sn] = Be(be), is = /* @__PURE__ */ _((e, t) => {
|
|
5299
|
+
const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = Ne(be, e.__scopeMenu), a = ut(be, e.__scopeMenu);
|
|
5300
|
+
return /* @__PURE__ */ $(it.Provider, {
|
|
5301
5301
|
scope: e.__scopeMenu
|
|
5302
5302
|
}, /* @__PURE__ */ $(Je, {
|
|
5303
5303
|
present: o || c.open
|
|
5304
|
-
}, /* @__PURE__ */ $(
|
|
5304
|
+
}, /* @__PURE__ */ $(it.Slot, {
|
|
5305
5305
|
scope: e.__scopeMenu
|
|
5306
|
-
},
|
|
5306
|
+
}, a.modal ? /* @__PURE__ */ $(ss, C({}, r, {
|
|
5307
5307
|
ref: t
|
|
5308
5308
|
})) : /* @__PURE__ */ $(ls, C({}, r, {
|
|
5309
5309
|
ref: t
|
|
5310
5310
|
})))));
|
|
5311
5311
|
}), ss = /* @__PURE__ */ _((e, t) => {
|
|
5312
|
-
const n =
|
|
5312
|
+
const n = Ne(be, e.__scopeMenu), o = L(null), r = ce(t, o);
|
|
5313
5313
|
return U(() => {
|
|
5314
5314
|
const c = o.current;
|
|
5315
5315
|
if (c)
|
|
@@ -5329,7 +5329,7 @@ const or = nr, ln = [
|
|
|
5329
5329
|
onDismiss: () => n.onOpenChange(!1)
|
|
5330
5330
|
}));
|
|
5331
5331
|
}), ls = /* @__PURE__ */ _((e, t) => {
|
|
5332
|
-
const n =
|
|
5332
|
+
const n = Ne(be, e.__scopeMenu);
|
|
5333
5333
|
return /* @__PURE__ */ $(Pn, C({}, e, {
|
|
5334
5334
|
ref: t,
|
|
5335
5335
|
trapFocus: !1,
|
|
@@ -5338,35 +5338,35 @@ const or = nr, ln = [
|
|
|
5338
5338
|
onDismiss: () => n.onOpenChange(!1)
|
|
5339
5339
|
}));
|
|
5340
5340
|
}), Pn = /* @__PURE__ */ _((e, t) => {
|
|
5341
|
-
const { __scopeMenu: n, loop: o = !1, trapFocus: r, onOpenAutoFocus: c, onCloseAutoFocus:
|
|
5341
|
+
const { __scopeMenu: n, loop: o = !1, trapFocus: r, onOpenAutoFocus: c, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEntryFocus: s, onEscapeKeyDown: d, onPointerDownOutside: u, onFocusOutside: l, onInteractOutside: v, onDismiss: f, disableOutsideScroll: m, ...p } = e, b = Ne(be, n), g = ut(be, n), h = Ht(n), x = ar(n), w = es(n), [y, M] = H(null), P = L(null), E = ce(t, P, b.onContentChange), N = L(0), z = L(""), D = L(0), T = L(null), G = L("right"), B = L(0), F = m ? or : It, I = m ? {
|
|
5342
5342
|
as: Ye,
|
|
5343
5343
|
allowPinchZoom: !0
|
|
5344
5344
|
} : void 0, re = (R) => {
|
|
5345
5345
|
var j, oe;
|
|
5346
|
-
const
|
|
5346
|
+
const ae = z.current + R, ee = w().filter(
|
|
5347
5347
|
(te) => !te.disabled
|
|
5348
|
-
),
|
|
5349
|
-
(te) => te.ref.current ===
|
|
5348
|
+
), ie = document.activeElement, de = (j = ee.find(
|
|
5349
|
+
(te) => te.ref.current === ie
|
|
5350
5350
|
)) === null || j === void 0 ? void 0 : j.textValue, ue = ee.map(
|
|
5351
5351
|
(te) => te.textValue
|
|
5352
|
-
), O = Ms(ue,
|
|
5352
|
+
), O = Ms(ue, ae, de), V = (oe = ee.find(
|
|
5353
5353
|
(te) => te.textValue === O
|
|
5354
5354
|
)) === null || oe === void 0 ? void 0 : oe.ref.current;
|
|
5355
5355
|
(function te(Y) {
|
|
5356
|
-
z.current = Y, window.clearTimeout(
|
|
5356
|
+
z.current = Y, window.clearTimeout(N.current), Y !== "" && (N.current = window.setTimeout(
|
|
5357
5357
|
() => te(""),
|
|
5358
5358
|
1e3
|
|
5359
5359
|
));
|
|
5360
|
-
})(
|
|
5360
|
+
})(ae), V && setTimeout(
|
|
5361
5361
|
() => V.focus()
|
|
5362
5362
|
);
|
|
5363
5363
|
};
|
|
5364
|
-
U(() => () => window.clearTimeout(
|
|
5364
|
+
U(() => () => window.clearTimeout(N.current), []), yo();
|
|
5365
5365
|
const J = Z((R) => {
|
|
5366
5366
|
var j, oe;
|
|
5367
5367
|
return G.current === ((j = T.current) === null || j === void 0 ? void 0 : j.side) && Ts(R, (oe = T.current) === null || oe === void 0 ? void 0 : oe.area);
|
|
5368
5368
|
}, []);
|
|
5369
|
-
return /* @__PURE__ */ $(
|
|
5369
|
+
return /* @__PURE__ */ $(as, {
|
|
5370
5370
|
scope: n,
|
|
5371
5371
|
searchRef: z,
|
|
5372
5372
|
onItemEnter: Z((R) => {
|
|
@@ -5385,7 +5385,7 @@ const or = nr, ln = [
|
|
|
5385
5385
|
}, [
|
|
5386
5386
|
J
|
|
5387
5387
|
]),
|
|
5388
|
-
pointerGraceTimerRef:
|
|
5388
|
+
pointerGraceTimerRef: D,
|
|
5389
5389
|
onPointerGraceIntentChange: Z((R) => {
|
|
5390
5390
|
T.current = R;
|
|
5391
5391
|
}, [])
|
|
@@ -5396,10 +5396,10 @@ const or = nr, ln = [
|
|
|
5396
5396
|
var j;
|
|
5397
5397
|
R.preventDefault(), (j = P.current) === null || j === void 0 || j.focus();
|
|
5398
5398
|
}),
|
|
5399
|
-
onUnmountAutoFocus:
|
|
5399
|
+
onUnmountAutoFocus: a
|
|
5400
5400
|
}, /* @__PURE__ */ $(xo, {
|
|
5401
5401
|
asChild: !0,
|
|
5402
|
-
disableOutsidePointerEvents:
|
|
5402
|
+
disableOutsidePointerEvents: i,
|
|
5403
5403
|
onEscapeKeyDown: d,
|
|
5404
5404
|
onPointerDownOutside: u,
|
|
5405
5405
|
onFocusOutside: l,
|
|
@@ -5429,10 +5429,10 @@ const or = nr, ln = [
|
|
|
5429
5429
|
...p.style
|
|
5430
5430
|
},
|
|
5431
5431
|
onKeyDown: A(p.onKeyDown, (R) => {
|
|
5432
|
-
const oe = R.target.closest("[data-radix-menu-content]") === R.currentTarget,
|
|
5433
|
-
oe && (R.key === "Tab" && R.preventDefault(), !
|
|
5434
|
-
const
|
|
5435
|
-
if (R.target !==
|
|
5432
|
+
const oe = R.target.closest("[data-radix-menu-content]") === R.currentTarget, ae = R.ctrlKey || R.altKey || R.metaKey, ee = R.key.length === 1;
|
|
5433
|
+
oe && (R.key === "Tab" && R.preventDefault(), !ae && ee && re(R.key));
|
|
5434
|
+
const ie = P.current;
|
|
5435
|
+
if (R.target !== ie || !Zi.includes(R.key))
|
|
5436
5436
|
return;
|
|
5437
5437
|
R.preventDefault();
|
|
5438
5438
|
const ue = w().filter(
|
|
@@ -5443,13 +5443,13 @@ const or = nr, ln = [
|
|
|
5443
5443
|
rr.includes(R.key) && ue.reverse(), Es(ue);
|
|
5444
5444
|
}),
|
|
5445
5445
|
onBlur: A(e.onBlur, (R) => {
|
|
5446
|
-
R.currentTarget.contains(R.target) || (window.clearTimeout(
|
|
5446
|
+
R.currentTarget.contains(R.target) || (window.clearTimeout(N.current), z.current = "");
|
|
5447
5447
|
}),
|
|
5448
5448
|
onPointerMove: A(e.onPointerMove, st((R) => {
|
|
5449
5449
|
const j = R.target, oe = B.current !== R.clientX;
|
|
5450
5450
|
if (R.currentTarget.contains(j) && oe) {
|
|
5451
|
-
const
|
|
5452
|
-
G.current =
|
|
5451
|
+
const ae = R.clientX > B.current ? "right" : "left";
|
|
5452
|
+
G.current = ae, B.current = R.clientX;
|
|
5453
5453
|
}
|
|
5454
5454
|
}))
|
|
5455
5455
|
})))))));
|
|
@@ -5466,7 +5466,7 @@ const or = nr, ln = [
|
|
|
5466
5466
|
ref: t
|
|
5467
5467
|
}));
|
|
5468
5468
|
}), dn = "MenuItem", to = "menu.itemSelect", En = /* @__PURE__ */ _((e, t) => {
|
|
5469
|
-
const { disabled: n = !1, onSelect: o, ...r } = e, c = L(null),
|
|
5469
|
+
const { disabled: n = !1, onSelect: o, ...r } = e, c = L(null), a = ut(dn, e.__scopeMenu), i = Sn(dn, e.__scopeMenu), s = ce(t, c), d = L(!1), u = () => {
|
|
5470
5470
|
const l = c.current;
|
|
5471
5471
|
if (!n && l) {
|
|
5472
5472
|
const v = new CustomEvent(to, {
|
|
@@ -5479,7 +5479,7 @@ const or = nr, ln = [
|
|
|
5479
5479
|
{
|
|
5480
5480
|
once: !0
|
|
5481
5481
|
}
|
|
5482
|
-
), $o(l, v), v.defaultPrevented ? d.current = !1 :
|
|
5482
|
+
), $o(l, v), v.defaultPrevented ? d.current = !1 : a.onClose();
|
|
5483
5483
|
}
|
|
5484
5484
|
};
|
|
5485
5485
|
return /* @__PURE__ */ $(fr, C({}, r, {
|
|
@@ -5495,12 +5495,12 @@ const or = nr, ln = [
|
|
|
5495
5495
|
d.current || (v = l.currentTarget) === null || v === void 0 || v.click();
|
|
5496
5496
|
}),
|
|
5497
5497
|
onKeyDown: A(e.onKeyDown, (l) => {
|
|
5498
|
-
const v =
|
|
5498
|
+
const v = i.searchRef.current !== "";
|
|
5499
5499
|
n || v && l.key === " " || ln.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
|
|
5500
5500
|
})
|
|
5501
5501
|
}));
|
|
5502
5502
|
}), fr = /* @__PURE__ */ _((e, t) => {
|
|
5503
|
-
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...c } = e,
|
|
5503
|
+
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...c } = e, a = Sn(dn, n), i = ar(n), s = L(null), d = ce(t, s), [u, l] = H(!1), [v, f] = H("");
|
|
5504
5504
|
return U(() => {
|
|
5505
5505
|
const m = s.current;
|
|
5506
5506
|
if (m) {
|
|
@@ -5509,13 +5509,13 @@ const or = nr, ln = [
|
|
|
5509
5509
|
}
|
|
5510
5510
|
}, [
|
|
5511
5511
|
c.children
|
|
5512
|
-
]), /* @__PURE__ */ $(
|
|
5512
|
+
]), /* @__PURE__ */ $(it.ItemSlot, {
|
|
5513
5513
|
scope: n,
|
|
5514
5514
|
disabled: o,
|
|
5515
5515
|
textValue: r ?? v
|
|
5516
5516
|
}, /* @__PURE__ */ $(Vo, C({
|
|
5517
5517
|
asChild: !0
|
|
5518
|
-
},
|
|
5518
|
+
}, i, {
|
|
5519
5519
|
focusable: !o
|
|
5520
5520
|
}), /* @__PURE__ */ $(Q.div, C({
|
|
5521
5521
|
role: "menuitem",
|
|
@@ -5525,10 +5525,10 @@ const or = nr, ln = [
|
|
|
5525
5525
|
}, c, {
|
|
5526
5526
|
ref: d,
|
|
5527
5527
|
onPointerMove: A(e.onPointerMove, st((m) => {
|
|
5528
|
-
o ?
|
|
5528
|
+
o ? a.onItemLeave(m) : (a.onItemEnter(m), m.defaultPrevented || m.currentTarget.focus());
|
|
5529
5529
|
})),
|
|
5530
5530
|
onPointerLeave: A(e.onPointerLeave, st(
|
|
5531
|
-
(m) =>
|
|
5531
|
+
(m) => a.onItemLeave(m)
|
|
5532
5532
|
)),
|
|
5533
5533
|
onFocus: A(
|
|
5534
5534
|
e.onFocus,
|
|
@@ -5583,8 +5583,8 @@ const or = nr, ln = [
|
|
|
5583
5583
|
ref: t,
|
|
5584
5584
|
"data-state": _n(c),
|
|
5585
5585
|
onSelect: A(o.onSelect, () => {
|
|
5586
|
-
var
|
|
5587
|
-
return (
|
|
5586
|
+
var a;
|
|
5587
|
+
return (a = r.onValueChange) === null || a === void 0 ? void 0 : a.call(r, n);
|
|
5588
5588
|
}, {
|
|
5589
5589
|
checkForDefaultPrevented: !1
|
|
5590
5590
|
})
|
|
@@ -5608,11 +5608,11 @@ const or = nr, ln = [
|
|
|
5608
5608
|
ref: t
|
|
5609
5609
|
}));
|
|
5610
5610
|
}), vr = "MenuSub", [ws, gr] = Be(vr), ys = (e) => {
|
|
5611
|
-
const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, c =
|
|
5611
|
+
const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, c = Ne(vr, t), a = Ht(t), [i, s] = H(null), [d, u] = H(null), l = ve(r);
|
|
5612
5612
|
return U(() => (c.open === !1 && l(!1), () => l(!1)), [
|
|
5613
5613
|
c.open,
|
|
5614
5614
|
l
|
|
5615
|
-
]), /* @__PURE__ */ $(yn,
|
|
5615
|
+
]), /* @__PURE__ */ $(yn, a, /* @__PURE__ */ $(ir, {
|
|
5616
5616
|
scope: t,
|
|
5617
5617
|
open: o,
|
|
5618
5618
|
onOpenChange: l,
|
|
@@ -5622,14 +5622,14 @@ const or = nr, ln = [
|
|
|
5622
5622
|
scope: t,
|
|
5623
5623
|
contentId: Te(),
|
|
5624
5624
|
triggerId: Te(),
|
|
5625
|
-
trigger:
|
|
5625
|
+
trigger: i,
|
|
5626
5626
|
onTriggerChange: s
|
|
5627
5627
|
}, n)));
|
|
5628
5628
|
}, xt = "MenuSubTrigger", Cs = /* @__PURE__ */ _((e, t) => {
|
|
5629
|
-
const n =
|
|
5629
|
+
const n = Ne(xt, e.__scopeMenu), o = ut(xt, e.__scopeMenu), r = gr(xt, e.__scopeMenu), c = Sn(xt, e.__scopeMenu), a = L(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: s } = c, d = {
|
|
5630
5630
|
__scopeMenu: e.__scopeMenu
|
|
5631
5631
|
}, u = Z(() => {
|
|
5632
|
-
|
|
5632
|
+
a.current && window.clearTimeout(a.current), a.current = null;
|
|
5633
5633
|
}, []);
|
|
5634
5634
|
return U(
|
|
5635
5635
|
() => u,
|
|
@@ -5637,12 +5637,12 @@ const or = nr, ln = [
|
|
|
5637
5637
|
u
|
|
5638
5638
|
]
|
|
5639
5639
|
), U(() => {
|
|
5640
|
-
const l =
|
|
5640
|
+
const l = i.current;
|
|
5641
5641
|
return () => {
|
|
5642
5642
|
window.clearTimeout(l), s(null);
|
|
5643
5643
|
};
|
|
5644
5644
|
}, [
|
|
5645
|
-
|
|
5645
|
+
i,
|
|
5646
5646
|
s
|
|
5647
5647
|
]), /* @__PURE__ */ $(sr, C({
|
|
5648
5648
|
asChild: !0
|
|
@@ -5653,13 +5653,13 @@ const or = nr, ln = [
|
|
|
5653
5653
|
"aria-controls": r.contentId,
|
|
5654
5654
|
"data-state": hr(n.open)
|
|
5655
5655
|
}, e, {
|
|
5656
|
-
ref:
|
|
5656
|
+
ref: kt(t, r.onTriggerChange),
|
|
5657
5657
|
onClick: (l) => {
|
|
5658
5658
|
var v;
|
|
5659
5659
|
(v = e.onClick) === null || v === void 0 || v.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
5660
5660
|
},
|
|
5661
5661
|
onPointerMove: A(e.onPointerMove, st((l) => {
|
|
5662
|
-
c.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !
|
|
5662
|
+
c.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !a.current && (c.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
|
|
5663
5663
|
n.onOpenChange(!0), u();
|
|
5664
5664
|
}, 100));
|
|
5665
5665
|
})),
|
|
@@ -5695,7 +5695,7 @@ const or = nr, ln = [
|
|
|
5695
5695
|
}
|
|
5696
5696
|
],
|
|
5697
5697
|
side: p
|
|
5698
|
-
}), window.clearTimeout(
|
|
5698
|
+
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
5699
5699
|
() => c.onPointerGraceIntentChange(null),
|
|
5700
5700
|
300
|
|
5701
5701
|
);
|
|
@@ -5707,46 +5707,46 @@ const or = nr, ln = [
|
|
|
5707
5707
|
})),
|
|
5708
5708
|
onKeyDown: A(e.onKeyDown, (l) => {
|
|
5709
5709
|
const v = c.searchRef.current !== "";
|
|
5710
|
-
if (!(e.disabled || v && l.key === " ") &&
|
|
5710
|
+
if (!(e.disabled || v && l.key === " ") && Qi[o.dir].includes(l.key)) {
|
|
5711
5711
|
var f;
|
|
5712
5712
|
n.onOpenChange(!0), (f = n.content) === null || f === void 0 || f.focus(), l.preventDefault();
|
|
5713
5713
|
}
|
|
5714
5714
|
})
|
|
5715
5715
|
})));
|
|
5716
5716
|
}), Ss = "MenuSubContent", Ps = /* @__PURE__ */ _((e, t) => {
|
|
5717
|
-
const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c =
|
|
5718
|
-
return /* @__PURE__ */ $(
|
|
5717
|
+
const n = dr(be, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = Ne(be, e.__scopeMenu), a = ut(be, e.__scopeMenu), i = gr(Ss, e.__scopeMenu), s = L(null), d = ce(t, s);
|
|
5718
|
+
return /* @__PURE__ */ $(it.Provider, {
|
|
5719
5719
|
scope: e.__scopeMenu
|
|
5720
5720
|
}, /* @__PURE__ */ $(Je, {
|
|
5721
5721
|
present: o || c.open
|
|
5722
|
-
}, /* @__PURE__ */ $(
|
|
5722
|
+
}, /* @__PURE__ */ $(it.Slot, {
|
|
5723
5723
|
scope: e.__scopeMenu
|
|
5724
5724
|
}, /* @__PURE__ */ $(Pn, C({
|
|
5725
|
-
id:
|
|
5726
|
-
"aria-labelledby":
|
|
5725
|
+
id: i.contentId,
|
|
5726
|
+
"aria-labelledby": i.triggerId
|
|
5727
5727
|
}, r, {
|
|
5728
5728
|
ref: d,
|
|
5729
5729
|
align: "start",
|
|
5730
|
-
side:
|
|
5730
|
+
side: a.dir === "rtl" ? "left" : "right",
|
|
5731
5731
|
disableOutsidePointerEvents: !1,
|
|
5732
5732
|
disableOutsideScroll: !1,
|
|
5733
5733
|
trapFocus: !1,
|
|
5734
5734
|
onOpenAutoFocus: (u) => {
|
|
5735
5735
|
var l;
|
|
5736
|
-
|
|
5736
|
+
a.isUsingKeyboardRef.current && ((l = s.current) === null || l === void 0 || l.focus()), u.preventDefault();
|
|
5737
5737
|
},
|
|
5738
5738
|
onCloseAutoFocus: (u) => u.preventDefault(),
|
|
5739
5739
|
onFocusOutside: A(e.onFocusOutside, (u) => {
|
|
5740
|
-
u.target !==
|
|
5740
|
+
u.target !== i.trigger && c.onOpenChange(!1);
|
|
5741
5741
|
}),
|
|
5742
5742
|
onEscapeKeyDown: A(e.onEscapeKeyDown, (u) => {
|
|
5743
|
-
|
|
5743
|
+
a.onClose(), u.preventDefault();
|
|
5744
5744
|
}),
|
|
5745
5745
|
onKeyDown: A(e.onKeyDown, (u) => {
|
|
5746
|
-
const l = u.currentTarget.contains(u.target), v =
|
|
5746
|
+
const l = u.currentTarget.contains(u.target), v = Ji[a.dir].includes(u.key);
|
|
5747
5747
|
if (l && v) {
|
|
5748
5748
|
var f;
|
|
5749
|
-
c.onOpenChange(!1), (f =
|
|
5749
|
+
c.onOpenChange(!1), (f = i.trigger) === null || f === void 0 || f.focus(), u.preventDefault();
|
|
5750
5750
|
}
|
|
5751
5751
|
})
|
|
5752
5752
|
})))));
|
|
@@ -5775,11 +5775,11 @@ function Ms(e, t, n) {
|
|
|
5775
5775
|
const r = t.length > 1 && Array.from(t).every(
|
|
5776
5776
|
(d) => d === t[0]
|
|
5777
5777
|
) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
5778
|
-
let
|
|
5779
|
-
r.length === 1 && (
|
|
5778
|
+
let a = _s(e, Math.max(c, 0));
|
|
5779
|
+
r.length === 1 && (a = a.filter(
|
|
5780
5780
|
(d) => d !== n
|
|
5781
5781
|
));
|
|
5782
|
-
const s =
|
|
5782
|
+
const s = a.find(
|
|
5783
5783
|
(d) => d.toLowerCase().startsWith(r.toLowerCase())
|
|
5784
5784
|
);
|
|
5785
5785
|
return s !== n ? s : void 0;
|
|
@@ -5787,9 +5787,9 @@ function Ms(e, t, n) {
|
|
|
5787
5787
|
function Rs(e, t) {
|
|
5788
5788
|
const { x: n, y: o } = e;
|
|
5789
5789
|
let r = !1;
|
|
5790
|
-
for (let c = 0,
|
|
5791
|
-
const
|
|
5792
|
-
s > o != u > o && n < (d -
|
|
5790
|
+
for (let c = 0, a = t.length - 1; c < t.length; a = c++) {
|
|
5791
|
+
const i = t[c].x, s = t[c].y, d = t[a].x, u = t[a].y;
|
|
5792
|
+
s > o != u > o && n < (d - i) * (o - s) / (u - s) + i && (r = !r);
|
|
5793
5793
|
}
|
|
5794
5794
|
return r;
|
|
5795
5795
|
}
|
|
@@ -5805,13 +5805,13 @@ function Ts(e, t) {
|
|
|
5805
5805
|
function st(e) {
|
|
5806
5806
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
5807
5807
|
}
|
|
5808
|
-
const Os = os, As = sr, Is = cs,
|
|
5808
|
+
const Os = os, As = sr, Is = cs, ks = is, Ns = ur, Ds = ds, Fs = En, Ls = us, Bs = vs, Gs = hs, Ws = $s, Hs = xs, zs = ys, Us = Cs, Ks = Ps, br = "DropdownMenu", [Vs, Zd] = ke(br, [
|
|
5809
5809
|
cr
|
|
5810
5810
|
]), le = cr(), [js, $r] = Vs(br), Ys = (e) => {
|
|
5811
|
-
const { __scopeDropdownMenu: t, children: n, dir: o, open: r, defaultOpen: c, onOpenChange:
|
|
5811
|
+
const { __scopeDropdownMenu: t, children: n, dir: o, open: r, defaultOpen: c, onOpenChange: a, modal: i = !0 } = e, s = le(t), d = L(null), [u = !1, l] = je({
|
|
5812
5812
|
prop: r,
|
|
5813
5813
|
defaultProp: c,
|
|
5814
|
-
onChange:
|
|
5814
|
+
onChange: a
|
|
5815
5815
|
});
|
|
5816
5816
|
return /* @__PURE__ */ $(js, {
|
|
5817
5817
|
scope: t,
|
|
@@ -5828,18 +5828,18 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5828
5828
|
l
|
|
5829
5829
|
]
|
|
5830
5830
|
),
|
|
5831
|
-
modal:
|
|
5831
|
+
modal: i
|
|
5832
5832
|
}, /* @__PURE__ */ $(Os, C({}, s, {
|
|
5833
5833
|
open: u,
|
|
5834
5834
|
onOpenChange: l,
|
|
5835
5835
|
dir: o,
|
|
5836
|
-
modal:
|
|
5836
|
+
modal: i
|
|
5837
5837
|
}), n));
|
|
5838
5838
|
}, Xs = "DropdownMenuTrigger", qs = /* @__PURE__ */ _((e, t) => {
|
|
5839
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = $r(Xs, n),
|
|
5839
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = $r(Xs, n), a = le(n);
|
|
5840
5840
|
return /* @__PURE__ */ $(As, C({
|
|
5841
5841
|
asChild: !0
|
|
5842
|
-
},
|
|
5842
|
+
}, a), /* @__PURE__ */ $(Q.button, C({
|
|
5843
5843
|
type: "button",
|
|
5844
5844
|
id: c.triggerId,
|
|
5845
5845
|
"aria-haspopup": "menu",
|
|
@@ -5849,38 +5849,38 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5849
5849
|
"data-disabled": o ? "" : void 0,
|
|
5850
5850
|
disabled: o
|
|
5851
5851
|
}, r, {
|
|
5852
|
-
ref:
|
|
5853
|
-
onPointerDown: A(e.onPointerDown, (
|
|
5854
|
-
!o &&
|
|
5852
|
+
ref: kt(t, c.triggerRef),
|
|
5853
|
+
onPointerDown: A(e.onPointerDown, (i) => {
|
|
5854
|
+
!o && i.button === 0 && i.ctrlKey === !1 && (c.onOpenToggle(), c.open || i.preventDefault());
|
|
5855
5855
|
}),
|
|
5856
|
-
onKeyDown: A(e.onKeyDown, (
|
|
5856
|
+
onKeyDown: A(e.onKeyDown, (i) => {
|
|
5857
5857
|
o || ([
|
|
5858
5858
|
"Enter",
|
|
5859
5859
|
" "
|
|
5860
|
-
].includes(
|
|
5860
|
+
].includes(i.key) && c.onOpenToggle(), i.key === "ArrowDown" && c.onOpenChange(!0), [
|
|
5861
5861
|
"Enter",
|
|
5862
5862
|
" ",
|
|
5863
5863
|
"ArrowDown"
|
|
5864
|
-
].includes(
|
|
5864
|
+
].includes(i.key) && i.preventDefault());
|
|
5865
5865
|
})
|
|
5866
5866
|
})));
|
|
5867
5867
|
}), Zs = (e) => {
|
|
5868
5868
|
const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
|
|
5869
5869
|
return /* @__PURE__ */ $(Is, C({}, o, n));
|
|
5870
5870
|
}, Qs = "DropdownMenuContent", Js = /* @__PURE__ */ _((e, t) => {
|
|
5871
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = $r(Qs, n), c = le(n),
|
|
5872
|
-
return /* @__PURE__ */ $(
|
|
5871
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = $r(Qs, n), c = le(n), a = L(!1);
|
|
5872
|
+
return /* @__PURE__ */ $(ks, C({
|
|
5873
5873
|
id: r.contentId,
|
|
5874
5874
|
"aria-labelledby": r.triggerId
|
|
5875
5875
|
}, c, o, {
|
|
5876
5876
|
ref: t,
|
|
5877
|
-
onCloseAutoFocus: A(e.onCloseAutoFocus, (
|
|
5877
|
+
onCloseAutoFocus: A(e.onCloseAutoFocus, (i) => {
|
|
5878
5878
|
var s;
|
|
5879
|
-
|
|
5879
|
+
a.current || (s = r.triggerRef.current) === null || s === void 0 || s.focus(), a.current = !1, i.preventDefault();
|
|
5880
5880
|
}),
|
|
5881
|
-
onInteractOutside: A(e.onInteractOutside, (
|
|
5882
|
-
const s =
|
|
5883
|
-
(!r.modal || u) && (
|
|
5881
|
+
onInteractOutside: A(e.onInteractOutside, (i) => {
|
|
5882
|
+
const s = i.detail.originalEvent, d = s.button === 0 && s.ctrlKey === !0, u = s.button === 2 || d;
|
|
5883
|
+
(!r.modal || u) && (a.current = !0);
|
|
5884
5884
|
}),
|
|
5885
5885
|
style: {
|
|
5886
5886
|
...e.style,
|
|
@@ -5893,12 +5893,12 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5893
5893
|
}));
|
|
5894
5894
|
}), el = /* @__PURE__ */ _((e, t) => {
|
|
5895
5895
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5896
|
-
return /* @__PURE__ */ $(
|
|
5896
|
+
return /* @__PURE__ */ $(Ns, C({}, r, o, {
|
|
5897
5897
|
ref: t
|
|
5898
5898
|
}));
|
|
5899
5899
|
}), tl = /* @__PURE__ */ _((e, t) => {
|
|
5900
5900
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5901
|
-
return /* @__PURE__ */ $(
|
|
5901
|
+
return /* @__PURE__ */ $(Ds, C({}, r, o, {
|
|
5902
5902
|
ref: t
|
|
5903
5903
|
}));
|
|
5904
5904
|
}), nl = /* @__PURE__ */ _((e, t) => {
|
|
@@ -5921,24 +5921,24 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5921
5921
|
return /* @__PURE__ */ $(Gs, C({}, r, o, {
|
|
5922
5922
|
ref: t
|
|
5923
5923
|
}));
|
|
5924
|
-
}),
|
|
5924
|
+
}), al = /* @__PURE__ */ _((e, t) => {
|
|
5925
5925
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5926
5926
|
return /* @__PURE__ */ $(Ws, C({}, r, o, {
|
|
5927
5927
|
ref: t
|
|
5928
5928
|
}));
|
|
5929
|
-
}),
|
|
5929
|
+
}), il = /* @__PURE__ */ _((e, t) => {
|
|
5930
5930
|
const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
|
|
5931
5931
|
return /* @__PURE__ */ $(Hs, C({}, r, o, {
|
|
5932
5932
|
ref: t
|
|
5933
5933
|
}));
|
|
5934
5934
|
}), sl = (e) => {
|
|
5935
|
-
const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: c } = e,
|
|
5935
|
+
const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: c } = e, a = le(t), [i = !1, s] = je({
|
|
5936
5936
|
prop: o,
|
|
5937
5937
|
defaultProp: c,
|
|
5938
5938
|
onChange: r
|
|
5939
5939
|
});
|
|
5940
|
-
return /* @__PURE__ */ $(zs, C({},
|
|
5941
|
-
open:
|
|
5940
|
+
return /* @__PURE__ */ $(zs, C({}, a, {
|
|
5941
|
+
open: i,
|
|
5942
5942
|
onOpenChange: s
|
|
5943
5943
|
}), n);
|
|
5944
5944
|
}, ll = /* @__PURE__ */ _((e, t) => {
|
|
@@ -5959,7 +5959,7 @@ const Os = os, As = sr, Is = cs, Ns = as, Ds = ur, ks = ds, Fs = En, Ls = us, Bs
|
|
|
5959
5959
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
5960
5960
|
}
|
|
5961
5961
|
}));
|
|
5962
|
-
}), ul = Ys, fl = qs, xr = Zs, wr = Js, pl = el, yr = tl, Cr = nl, Sr = ol, ml = rl, Pr = cl, Er =
|
|
5962
|
+
}), ul = Ys, fl = qs, xr = Zs, wr = Js, pl = el, yr = tl, Cr = nl, Sr = ol, ml = rl, Pr = cl, Er = al, _r = il, vl = sl, Mr = ll, Rr = dl;
|
|
5963
5963
|
var gl = {
|
|
5964
5964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5965
5965
|
width: 24,
|
|
@@ -5973,7 +5973,7 @@ var gl = {
|
|
|
5973
5973
|
};
|
|
5974
5974
|
const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (e, t) => {
|
|
5975
5975
|
const n = _(
|
|
5976
|
-
({ color: o = "currentColor", size: r = 24, strokeWidth: c = 2, absoluteStrokeWidth:
|
|
5976
|
+
({ color: o = "currentColor", size: r = 24, strokeWidth: c = 2, absoluteStrokeWidth: a, children: i, ...s }, d) => $(
|
|
5977
5977
|
"svg",
|
|
5978
5978
|
{
|
|
5979
5979
|
ref: d,
|
|
@@ -5981,13 +5981,13 @@ const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (
|
|
|
5981
5981
|
width: r,
|
|
5982
5982
|
height: r,
|
|
5983
5983
|
stroke: o,
|
|
5984
|
-
strokeWidth:
|
|
5984
|
+
strokeWidth: a ? Number(c) * 24 / Number(r) : c,
|
|
5985
5985
|
className: `lucide lucide-${hl(e)}`,
|
|
5986
5986
|
...s
|
|
5987
5987
|
},
|
|
5988
5988
|
[
|
|
5989
5989
|
...t.map(([u, l]) => $(u, l)),
|
|
5990
|
-
...(Array.isArray(
|
|
5990
|
+
...(Array.isArray(i) ? i : [i]) || []
|
|
5991
5991
|
]
|
|
5992
5992
|
)
|
|
5993
5993
|
);
|
|
@@ -6005,51 +6005,51 @@ const hl = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zt = (
|
|
|
6005
6005
|
{
|
|
6006
6006
|
ref: r,
|
|
6007
6007
|
className: K(
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6008
|
+
t === !0 ? "pl-8" : "",
|
|
6009
|
+
e,
|
|
6010
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800"
|
|
6011
6011
|
),
|
|
6012
6012
|
...o,
|
|
6013
6013
|
children: [
|
|
6014
6014
|
n,
|
|
6015
|
-
/* @__PURE__ */
|
|
6015
|
+
/* @__PURE__ */ k($l, { className: "ml-auto h-4 w-4" })
|
|
6016
6016
|
]
|
|
6017
6017
|
}
|
|
6018
6018
|
));
|
|
6019
6019
|
xl.displayName = Mr.displayName;
|
|
6020
|
-
const wl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */
|
|
6020
|
+
const wl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ k(
|
|
6021
6021
|
Rr,
|
|
6022
6022
|
{
|
|
6023
6023
|
ref: n,
|
|
6024
6024
|
className: K(
|
|
6025
|
-
|
|
6026
|
-
|
|
6025
|
+
e,
|
|
6026
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50"
|
|
6027
6027
|
),
|
|
6028
6028
|
...t
|
|
6029
6029
|
}
|
|
6030
6030
|
));
|
|
6031
6031
|
wl.displayName = Rr.displayName;
|
|
6032
|
-
const yl = S.forwardRef(({ className: e = "", sideOffset: t = 4, ...n }, o) => /* @__PURE__ */
|
|
6032
|
+
const yl = S.forwardRef(({ className: e = "", sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ k(xr, { children: /* @__PURE__ */ k(
|
|
6033
6033
|
wr,
|
|
6034
6034
|
{
|
|
6035
6035
|
ref: o,
|
|
6036
6036
|
sideOffset: t,
|
|
6037
6037
|
className: K(
|
|
6038
|
-
|
|
6039
|
-
|
|
6038
|
+
e,
|
|
6039
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50"
|
|
6040
6040
|
),
|
|
6041
6041
|
...n
|
|
6042
6042
|
}
|
|
6043
6043
|
) }));
|
|
6044
6044
|
yl.displayName = wr.displayName;
|
|
6045
|
-
const Cl = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE__ */
|
|
6045
|
+
const Cl = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE__ */ k(
|
|
6046
6046
|
Cr,
|
|
6047
6047
|
{
|
|
6048
6048
|
ref: o,
|
|
6049
6049
|
className: K(
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6050
|
+
t === !0 ? "pl-8" : "",
|
|
6051
|
+
e,
|
|
6052
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"
|
|
6053
6053
|
),
|
|
6054
6054
|
...n
|
|
6055
6055
|
}
|
|
@@ -6060,13 +6060,13 @@ const Sl = S.forwardRef(({ className: e = "", children: t, checked: n, ...o }, r
|
|
|
6060
6060
|
{
|
|
6061
6061
|
ref: r,
|
|
6062
6062
|
className: K(
|
|
6063
|
-
|
|
6064
|
-
|
|
6063
|
+
e,
|
|
6064
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"
|
|
6065
6065
|
),
|
|
6066
6066
|
checked: n,
|
|
6067
6067
|
...o,
|
|
6068
6068
|
children: [
|
|
6069
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ k("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ k(Er, { children: /* @__PURE__ */ k(Tr, { className: "h-4 w-4" }) }) }),
|
|
6070
6070
|
t
|
|
6071
6071
|
]
|
|
6072
6072
|
}
|
|
@@ -6077,39 +6077,46 @@ const Pl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__P
|
|
|
6077
6077
|
{
|
|
6078
6078
|
ref: o,
|
|
6079
6079
|
className: K(
|
|
6080
|
-
|
|
6081
|
-
|
|
6080
|
+
e,
|
|
6081
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"
|
|
6082
6082
|
),
|
|
6083
6083
|
...n,
|
|
6084
6084
|
children: [
|
|
6085
|
-
/* @__PURE__ */
|
|
6085
|
+
/* @__PURE__ */ k("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ k(Er, { children: /* @__PURE__ */ k(Or, { className: "h-2 w-2 fill-current" }) }) }),
|
|
6086
6086
|
t
|
|
6087
6087
|
]
|
|
6088
6088
|
}
|
|
6089
6089
|
));
|
|
6090
6090
|
Pl.displayName = Pr.displayName;
|
|
6091
|
-
const El = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE__ */
|
|
6091
|
+
const El = S.forwardRef(({ className: e = "", inset: t, ...n }, o) => /* @__PURE__ */ k(
|
|
6092
6092
|
yr,
|
|
6093
6093
|
{
|
|
6094
6094
|
ref: o,
|
|
6095
|
-
className: K(
|
|
6095
|
+
className: K(
|
|
6096
|
+
t === !0 ? "pl-8" : "",
|
|
6097
|
+
e,
|
|
6098
|
+
"px-2 py-1.5 text-sm font-semibold"
|
|
6099
|
+
),
|
|
6096
6100
|
...n
|
|
6097
6101
|
}
|
|
6098
6102
|
));
|
|
6099
6103
|
El.displayName = yr.displayName;
|
|
6100
|
-
const _l = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */
|
|
6104
|
+
const _l = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ k(
|
|
6101
6105
|
_r,
|
|
6102
6106
|
{
|
|
6103
6107
|
ref: n,
|
|
6104
|
-
className: K("-mx-1 my-1 h-px bg-
|
|
6108
|
+
className: K(e, "-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800"),
|
|
6105
6109
|
...t
|
|
6106
6110
|
}
|
|
6107
6111
|
));
|
|
6108
6112
|
_l.displayName = _r.displayName;
|
|
6109
|
-
const Ml = ({
|
|
6113
|
+
const Ml = ({
|
|
6114
|
+
className: e = "",
|
|
6115
|
+
...t
|
|
6116
|
+
}) => /* @__PURE__ */ k(
|
|
6110
6117
|
"span",
|
|
6111
6118
|
{
|
|
6112
|
-
className: K("ml-auto text-xs tracking-widest opacity-60"
|
|
6119
|
+
className: K(e, "ml-auto text-xs tracking-widest opacity-60"),
|
|
6113
6120
|
...t
|
|
6114
6121
|
}
|
|
6115
6122
|
);
|
|
@@ -6123,62 +6130,62 @@ function Ar(e) {
|
|
|
6123
6130
|
e
|
|
6124
6131
|
]);
|
|
6125
6132
|
}
|
|
6126
|
-
const Ir = "Radio", [Rl,
|
|
6127
|
-
const { __scopeRadio: n, name: o, checked: r = !1, required: c, disabled:
|
|
6133
|
+
const Ir = "Radio", [Rl, kr] = ke(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _((e, t) => {
|
|
6134
|
+
const { __scopeRadio: n, name: o, checked: r = !1, required: c, disabled: a, value: i = "on", onCheck: s, ...d } = e, [u, l] = H(null), v = ce(
|
|
6128
6135
|
t,
|
|
6129
6136
|
(p) => l(p)
|
|
6130
6137
|
), f = L(!1), m = u ? !!u.closest("form") : !0;
|
|
6131
6138
|
return /* @__PURE__ */ $(Tl, {
|
|
6132
6139
|
scope: n,
|
|
6133
6140
|
checked: r,
|
|
6134
|
-
disabled:
|
|
6141
|
+
disabled: a
|
|
6135
6142
|
}, /* @__PURE__ */ $(Q.button, C({
|
|
6136
6143
|
type: "button",
|
|
6137
6144
|
role: "radio",
|
|
6138
6145
|
"aria-checked": r,
|
|
6139
|
-
"data-state":
|
|
6140
|
-
"data-disabled":
|
|
6141
|
-
disabled:
|
|
6142
|
-
value:
|
|
6146
|
+
"data-state": Nr(r),
|
|
6147
|
+
"data-disabled": a ? "" : void 0,
|
|
6148
|
+
disabled: a,
|
|
6149
|
+
value: i
|
|
6143
6150
|
}, d, {
|
|
6144
6151
|
ref: v,
|
|
6145
6152
|
onClick: A(e.onClick, (p) => {
|
|
6146
6153
|
r || s == null || s(), m && (f.current = p.isPropagationStopped(), f.current || p.stopPropagation());
|
|
6147
6154
|
})
|
|
6148
|
-
})), m && /* @__PURE__ */ $(
|
|
6155
|
+
})), m && /* @__PURE__ */ $(Nl, {
|
|
6149
6156
|
control: u,
|
|
6150
6157
|
bubbles: !f.current,
|
|
6151
6158
|
name: o,
|
|
6152
|
-
value:
|
|
6159
|
+
value: i,
|
|
6153
6160
|
checked: r,
|
|
6154
6161
|
required: c,
|
|
6155
|
-
disabled:
|
|
6162
|
+
disabled: a,
|
|
6156
6163
|
style: {
|
|
6157
6164
|
transform: "translateX(-100%)"
|
|
6158
6165
|
}
|
|
6159
6166
|
}));
|
|
6160
|
-
}), Il = "RadioIndicator",
|
|
6167
|
+
}), Il = "RadioIndicator", kl = /* @__PURE__ */ _((e, t) => {
|
|
6161
6168
|
const { __scopeRadio: n, forceMount: o, ...r } = e, c = Ol(Il, n);
|
|
6162
6169
|
return /* @__PURE__ */ $(Je, {
|
|
6163
6170
|
present: o || c.checked
|
|
6164
6171
|
}, /* @__PURE__ */ $(Q.span, C({
|
|
6165
|
-
"data-state":
|
|
6172
|
+
"data-state": Nr(c.checked),
|
|
6166
6173
|
"data-disabled": c.disabled ? "" : void 0
|
|
6167
6174
|
}, r, {
|
|
6168
6175
|
ref: t
|
|
6169
6176
|
})));
|
|
6170
|
-
}),
|
|
6171
|
-
const { control: t, checked: n, bubbles: o = !0, ...r } = e, c = L(null),
|
|
6177
|
+
}), Nl = (e) => {
|
|
6178
|
+
const { control: t, checked: n, bubbles: o = !0, ...r } = e, c = L(null), a = Ar(n), i = ko(t);
|
|
6172
6179
|
return U(() => {
|
|
6173
6180
|
const s = c.current, d = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(d, "checked").set;
|
|
6174
|
-
if (
|
|
6181
|
+
if (a !== n && l) {
|
|
6175
6182
|
const v = new Event("click", {
|
|
6176
6183
|
bubbles: o
|
|
6177
6184
|
});
|
|
6178
6185
|
l.call(s, n), s.dispatchEvent(v);
|
|
6179
6186
|
}
|
|
6180
6187
|
}, [
|
|
6181
|
-
|
|
6188
|
+
a,
|
|
6182
6189
|
n,
|
|
6183
6190
|
o
|
|
6184
6191
|
]), /* @__PURE__ */ $("input", C({
|
|
@@ -6190,7 +6197,7 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
|
|
|
6190
6197
|
ref: c,
|
|
6191
6198
|
style: {
|
|
6192
6199
|
...e.style,
|
|
6193
|
-
...
|
|
6200
|
+
...i,
|
|
6194
6201
|
position: "absolute",
|
|
6195
6202
|
pointerEvents: "none",
|
|
6196
6203
|
opacity: 0,
|
|
@@ -6198,19 +6205,19 @@ const Ir = "Radio", [Rl, Nr] = Ne(Ir), [Tl, Ol] = Rl(Ir), Al = /* @__PURE__ */ _
|
|
|
6198
6205
|
}
|
|
6199
6206
|
}));
|
|
6200
6207
|
};
|
|
6201
|
-
function
|
|
6208
|
+
function Nr(e) {
|
|
6202
6209
|
return e ? "checked" : "unchecked";
|
|
6203
6210
|
}
|
|
6204
|
-
const
|
|
6211
|
+
const Dl = [
|
|
6205
6212
|
"ArrowUp",
|
|
6206
6213
|
"ArrowDown",
|
|
6207
6214
|
"ArrowLeft",
|
|
6208
6215
|
"ArrowRight"
|
|
6209
|
-
],
|
|
6216
|
+
], Dr = "RadioGroup", [Fl, ru] = ke(Dr, [
|
|
6210
6217
|
Bt,
|
|
6211
|
-
|
|
6212
|
-
]), Fr = Bt(), Lr =
|
|
6213
|
-
const { __scopeRadioGroup: n, name: o, defaultValue: r, value: c, required:
|
|
6218
|
+
kr
|
|
6219
|
+
]), Fr = Bt(), Lr = kr(), [Ll, Bl] = Fl(Dr), Gl = /* @__PURE__ */ _((e, t) => {
|
|
6220
|
+
const { __scopeRadioGroup: n, name: o, defaultValue: r, value: c, required: a = !1, disabled: i = !1, orientation: s, dir: d, loop: u = !0, onValueChange: l, ...v } = e, f = Fr(n), m = Nt(d), [p, b] = je({
|
|
6214
6221
|
prop: c,
|
|
6215
6222
|
defaultProp: r,
|
|
6216
6223
|
onChange: l
|
|
@@ -6218,8 +6225,8 @@ const kl = [
|
|
|
6218
6225
|
return /* @__PURE__ */ $(Ll, {
|
|
6219
6226
|
scope: n,
|
|
6220
6227
|
name: o,
|
|
6221
|
-
required:
|
|
6222
|
-
disabled:
|
|
6228
|
+
required: a,
|
|
6229
|
+
disabled: i,
|
|
6223
6230
|
value: p,
|
|
6224
6231
|
onValueChange: b
|
|
6225
6232
|
}, /* @__PURE__ */ $(Ko, C({
|
|
@@ -6230,29 +6237,29 @@ const kl = [
|
|
|
6230
6237
|
loop: u
|
|
6231
6238
|
}), /* @__PURE__ */ $(Q.div, C({
|
|
6232
6239
|
role: "radiogroup",
|
|
6233
|
-
"aria-required":
|
|
6240
|
+
"aria-required": a,
|
|
6234
6241
|
"aria-orientation": s,
|
|
6235
|
-
"data-disabled":
|
|
6242
|
+
"data-disabled": i ? "" : void 0,
|
|
6236
6243
|
dir: m
|
|
6237
6244
|
}, v, {
|
|
6238
6245
|
ref: t
|
|
6239
6246
|
}))));
|
|
6240
6247
|
}), Wl = "RadioGroupItem", Hl = /* @__PURE__ */ _((e, t) => {
|
|
6241
|
-
const { __scopeRadioGroup: n, disabled: o, ...r } = e, c = Bl(Wl, n),
|
|
6248
|
+
const { __scopeRadioGroup: n, disabled: o, ...r } = e, c = Bl(Wl, n), a = c.disabled || o, i = Fr(n), s = Lr(n), d = L(null), u = ce(t, d), l = c.value === r.value, v = L(!1);
|
|
6242
6249
|
return U(() => {
|
|
6243
6250
|
const f = (p) => {
|
|
6244
|
-
|
|
6251
|
+
Dl.includes(p.key) && (v.current = !0);
|
|
6245
6252
|
}, m = () => v.current = !1;
|
|
6246
6253
|
return document.addEventListener("keydown", f), document.addEventListener("keyup", m), () => {
|
|
6247
6254
|
document.removeEventListener("keydown", f), document.removeEventListener("keyup", m);
|
|
6248
6255
|
};
|
|
6249
6256
|
}, []), /* @__PURE__ */ $(Vo, C({
|
|
6250
6257
|
asChild: !0
|
|
6251
|
-
},
|
|
6252
|
-
focusable: !
|
|
6258
|
+
}, i, {
|
|
6259
|
+
focusable: !a,
|
|
6253
6260
|
active: l
|
|
6254
6261
|
}), /* @__PURE__ */ $(Al, C({
|
|
6255
|
-
disabled:
|
|
6262
|
+
disabled: a,
|
|
6256
6263
|
required: c.required,
|
|
6257
6264
|
checked: l
|
|
6258
6265
|
}, s, r, {
|
|
@@ -6269,10 +6276,10 @@ const kl = [
|
|
|
6269
6276
|
})));
|
|
6270
6277
|
}), zl = /* @__PURE__ */ _((e, t) => {
|
|
6271
6278
|
const { __scopeRadioGroup: n, ...o } = e, r = Lr(n);
|
|
6272
|
-
return /* @__PURE__ */ $(
|
|
6279
|
+
return /* @__PURE__ */ $(kl, C({}, r, o, {
|
|
6273
6280
|
ref: t
|
|
6274
6281
|
}));
|
|
6275
|
-
}), Br = Gl, Gr = Hl, Ul = zl, Kl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */
|
|
6282
|
+
}), Br = Gl, Gr = Hl, Ul = zl, Kl = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ k(
|
|
6276
6283
|
Br,
|
|
6277
6284
|
{
|
|
6278
6285
|
className: K("grid gap-2", e),
|
|
@@ -6281,7 +6288,7 @@ const kl = [
|
|
|
6281
6288
|
}
|
|
6282
6289
|
));
|
|
6283
6290
|
Kl.displayName = Br.displayName;
|
|
6284
|
-
const Vl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */
|
|
6291
|
+
const Vl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ k(
|
|
6285
6292
|
Gr,
|
|
6286
6293
|
{
|
|
6287
6294
|
ref: o,
|
|
@@ -6290,7 +6297,7 @@ const Vl = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__P
|
|
|
6290
6297
|
e
|
|
6291
6298
|
),
|
|
6292
6299
|
...n,
|
|
6293
|
-
children: /* @__PURE__ */
|
|
6300
|
+
children: /* @__PURE__ */ k(Ul, { className: "flex items-center justify-center", children: /* @__PURE__ */ k(Or, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
6294
6301
|
}
|
|
6295
6302
|
));
|
|
6296
6303
|
Vl.displayName = Gr.displayName;
|
|
@@ -6321,19 +6328,19 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6321
6328
|
], Xl = [
|
|
6322
6329
|
" ",
|
|
6323
6330
|
"Enter"
|
|
6324
|
-
], Ut = "Select", [Kt, Mn, ql] = vn(Ut), [et, cu] =
|
|
6331
|
+
], Ut = "Select", [Kt, Mn, ql] = vn(Ut), [et, cu] = ke(Ut, [
|
|
6325
6332
|
ql,
|
|
6326
6333
|
Lt
|
|
6327
6334
|
]), Rn = Lt(), [Zl, Ge] = et(Ut), [Ql, Jl] = et(Ut), ed = (e) => {
|
|
6328
|
-
const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value:
|
|
6335
|
+
const { __scopeSelect: t, children: n, open: o, defaultOpen: r, onOpenChange: c, value: a, defaultValue: i, 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 = Nt(d), [M = !1, P] = je({
|
|
6329
6336
|
prop: o,
|
|
6330
6337
|
defaultProp: r,
|
|
6331
6338
|
onChange: c
|
|
6332
|
-
}), [E,
|
|
6333
|
-
prop:
|
|
6334
|
-
defaultProp:
|
|
6339
|
+
}), [E, N] = je({
|
|
6340
|
+
prop: a,
|
|
6341
|
+
defaultProp: i,
|
|
6335
6342
|
onChange: s
|
|
6336
|
-
}), z = L(null),
|
|
6343
|
+
}), z = L(null), D = p ? !!p.closest("form") : !0, [T, G] = H(/* @__PURE__ */ new Set()), B = Array.from(T).map(
|
|
6337
6344
|
(F) => F.props.value
|
|
6338
6345
|
).join(";");
|
|
6339
6346
|
return /* @__PURE__ */ $(yn, m, /* @__PURE__ */ $(Zl, {
|
|
@@ -6347,7 +6354,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6347
6354
|
onValueNodeHasChildrenChange: w,
|
|
6348
6355
|
contentId: Te(),
|
|
6349
6356
|
value: E,
|
|
6350
|
-
onValueChange:
|
|
6357
|
+
onValueChange: N,
|
|
6351
6358
|
open: M,
|
|
6352
6359
|
onOpenChange: P,
|
|
6353
6360
|
dir: y,
|
|
@@ -6368,7 +6375,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6368
6375
|
return re.delete(F), re;
|
|
6369
6376
|
});
|
|
6370
6377
|
}, [])
|
|
6371
|
-
}, n)),
|
|
6378
|
+
}, n)), D ? /* @__PURE__ */ $(zr, {
|
|
6372
6379
|
key: B,
|
|
6373
6380
|
"aria-hidden": !0,
|
|
6374
6381
|
required: f,
|
|
@@ -6376,36 +6383,36 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6376
6383
|
name: u,
|
|
6377
6384
|
autoComplete: l,
|
|
6378
6385
|
value: E,
|
|
6379
|
-
onChange: (F) =>
|
|
6386
|
+
onChange: (F) => N(F.target.value),
|
|
6380
6387
|
disabled: v
|
|
6381
6388
|
}, E === void 0 ? /* @__PURE__ */ $("option", {
|
|
6382
6389
|
value: ""
|
|
6383
6390
|
}) : null, Array.from(T)) : null));
|
|
6384
6391
|
}, td = "SelectTrigger", nd = /* @__PURE__ */ _((e, t) => {
|
|
6385
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, c = Rn(n),
|
|
6392
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, c = Rn(n), a = Ge(td, n), i = a.disabled || o, s = ce(t, a.onTriggerChange), d = Mn(n), [u, l, v] = Ur((m) => {
|
|
6386
6393
|
const p = d().filter(
|
|
6387
6394
|
(h) => !h.disabled
|
|
6388
6395
|
), b = p.find(
|
|
6389
|
-
(h) => h.value ===
|
|
6396
|
+
(h) => h.value === a.value
|
|
6390
6397
|
), g = Kr(p, m, b);
|
|
6391
|
-
g !== void 0 &&
|
|
6398
|
+
g !== void 0 && a.onValueChange(g.value);
|
|
6392
6399
|
}), f = () => {
|
|
6393
|
-
|
|
6400
|
+
i || (a.onOpenChange(!0), v());
|
|
6394
6401
|
};
|
|
6395
6402
|
return /* @__PURE__ */ $(Go, C({
|
|
6396
6403
|
asChild: !0
|
|
6397
6404
|
}, c), /* @__PURE__ */ $(Q.button, C({
|
|
6398
6405
|
type: "button",
|
|
6399
6406
|
role: "combobox",
|
|
6400
|
-
"aria-controls":
|
|
6401
|
-
"aria-expanded":
|
|
6402
|
-
"aria-required":
|
|
6407
|
+
"aria-controls": a.contentId,
|
|
6408
|
+
"aria-expanded": a.open,
|
|
6409
|
+
"aria-required": a.required,
|
|
6403
6410
|
"aria-autocomplete": "none",
|
|
6404
|
-
dir:
|
|
6405
|
-
"data-state":
|
|
6406
|
-
disabled:
|
|
6407
|
-
"data-disabled":
|
|
6408
|
-
"data-placeholder":
|
|
6411
|
+
dir: a.dir,
|
|
6412
|
+
"data-state": a.open ? "open" : "closed",
|
|
6413
|
+
disabled: i,
|
|
6414
|
+
"data-disabled": i ? "" : void 0,
|
|
6415
|
+
"data-placeholder": a.value === void 0 ? "" : void 0
|
|
6409
6416
|
}, r, {
|
|
6410
6417
|
ref: s,
|
|
6411
6418
|
onClick: A(r.onClick, (m) => {
|
|
@@ -6413,7 +6420,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6413
6420
|
}),
|
|
6414
6421
|
onPointerDown: A(r.onPointerDown, (m) => {
|
|
6415
6422
|
const p = m.target;
|
|
6416
|
-
p.hasPointerCapture(m.pointerId) && p.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && (f(),
|
|
6423
|
+
p.hasPointerCapture(m.pointerId) && p.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && (f(), a.triggerPointerDownPosRef.current = {
|
|
6417
6424
|
x: Math.round(m.pageX),
|
|
6418
6425
|
y: Math.round(m.pageY)
|
|
6419
6426
|
}, m.preventDefault());
|
|
@@ -6424,18 +6431,18 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6424
6431
|
})
|
|
6425
6432
|
})));
|
|
6426
6433
|
}), od = "SelectValue", rd = /* @__PURE__ */ _((e, t) => {
|
|
6427
|
-
const { __scopeSelect: n, className: o, style: r, children: c, placeholder:
|
|
6434
|
+
const { __scopeSelect: n, className: o, style: r, children: c, placeholder: a, ...i } = e, s = Ge(od, n), { onValueNodeHasChildrenChange: d } = s, u = c !== void 0, l = ce(t, s.onValueNodeChange);
|
|
6428
6435
|
return $e(() => {
|
|
6429
6436
|
d(u);
|
|
6430
6437
|
}, [
|
|
6431
6438
|
d,
|
|
6432
6439
|
u
|
|
6433
|
-
]), /* @__PURE__ */ $(Q.span, C({},
|
|
6440
|
+
]), /* @__PURE__ */ $(Q.span, C({}, i, {
|
|
6434
6441
|
ref: l,
|
|
6435
6442
|
style: {
|
|
6436
6443
|
pointerEvents: "none"
|
|
6437
6444
|
}
|
|
6438
|
-
}), s.value === void 0 &&
|
|
6445
|
+
}), s.value === void 0 && a !== void 0 ? a : c);
|
|
6439
6446
|
}), cd = /* @__PURE__ */ _((e, t) => {
|
|
6440
6447
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
6441
6448
|
return /* @__PURE__ */ $(Q.span, C({
|
|
@@ -6443,15 +6450,15 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6443
6450
|
}, r, {
|
|
6444
6451
|
ref: t
|
|
6445
6452
|
}), o || "▼");
|
|
6446
|
-
}),
|
|
6453
|
+
}), ad = (e) => /* @__PURE__ */ $(Ho, C({
|
|
6447
6454
|
asChild: !0
|
|
6448
|
-
}, e)), qe = "SelectContent",
|
|
6455
|
+
}, e)), qe = "SelectContent", id = /* @__PURE__ */ _((e, t) => {
|
|
6449
6456
|
const n = Ge(qe, e.__scopeSelect), [o, r] = H();
|
|
6450
6457
|
if ($e(() => {
|
|
6451
6458
|
r(new DocumentFragment());
|
|
6452
6459
|
}, []), !n.open) {
|
|
6453
6460
|
const c = o;
|
|
6454
|
-
return c ? /* @__PURE__ */
|
|
6461
|
+
return c ? /* @__PURE__ */ io(/* @__PURE__ */ $(Wr, {
|
|
6455
6462
|
scope: e.__scopeSelect
|
|
6456
6463
|
}, /* @__PURE__ */ $(Kt.Slot, {
|
|
6457
6464
|
scope: e.__scopeSelect
|
|
@@ -6466,8 +6473,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6466
6473
|
position: o = "item-aligned",
|
|
6467
6474
|
onCloseAutoFocus: r,
|
|
6468
6475
|
onEscapeKeyDown: c,
|
|
6469
|
-
onPointerDownOutside:
|
|
6470
|
-
side:
|
|
6476
|
+
onPointerDownOutside: a,
|
|
6477
|
+
side: i,
|
|
6471
6478
|
sideOffset: s,
|
|
6472
6479
|
align: d,
|
|
6473
6480
|
alignOffset: u,
|
|
@@ -6482,7 +6489,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6482
6489
|
} = e, h = Ge(qe, n), [x, w] = H(null), [y, M] = H(null), P = ce(
|
|
6483
6490
|
t,
|
|
6484
6491
|
(O) => w(O)
|
|
6485
|
-
), [E,
|
|
6492
|
+
), [E, N] = H(null), [z, D] = H(null), T = Mn(n), [G, B] = H(!1), F = L(!1);
|
|
6486
6493
|
U(() => {
|
|
6487
6494
|
if (x)
|
|
6488
6495
|
return Yo(x);
|
|
@@ -6564,9 +6571,9 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6564
6571
|
Y && setTimeout(
|
|
6565
6572
|
() => Y.ref.current.focus()
|
|
6566
6573
|
);
|
|
6567
|
-
}),
|
|
6574
|
+
}), ae = Z((O, V, te) => {
|
|
6568
6575
|
const Y = !F.current && !te;
|
|
6569
|
-
(h.value !== void 0 && h.value === V || Y) && (
|
|
6576
|
+
(h.value !== void 0 && h.value === V || Y) && (N(O), Y && (F.current = !0));
|
|
6570
6577
|
}, [
|
|
6571
6578
|
h.value
|
|
6572
6579
|
]), ee = Z(
|
|
@@ -6574,13 +6581,13 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6574
6581
|
[
|
|
6575
6582
|
x
|
|
6576
6583
|
]
|
|
6577
|
-
),
|
|
6584
|
+
), ie = Z((O, V, te) => {
|
|
6578
6585
|
const Y = !F.current && !te;
|
|
6579
|
-
(h.value !== void 0 && h.value === V || Y) &&
|
|
6586
|
+
(h.value !== void 0 && h.value === V || Y) && D(O);
|
|
6580
6587
|
}, [
|
|
6581
6588
|
h.value
|
|
6582
6589
|
]), de = o === "popper" ? oo : ld, ue = de === oo ? {
|
|
6583
|
-
side:
|
|
6590
|
+
side: i,
|
|
6584
6591
|
sideOffset: s,
|
|
6585
6592
|
align: d,
|
|
6586
6593
|
alignOffset: u,
|
|
@@ -6596,10 +6603,10 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6596
6603
|
content: x,
|
|
6597
6604
|
viewport: y,
|
|
6598
6605
|
onViewportChange: M,
|
|
6599
|
-
itemRefCallback:
|
|
6606
|
+
itemRefCallback: ae,
|
|
6600
6607
|
selectedItem: E,
|
|
6601
6608
|
onItemLeave: ee,
|
|
6602
|
-
itemTextRefCallback:
|
|
6609
|
+
itemTextRefCallback: ie,
|
|
6603
6610
|
focusSelectedItem: re,
|
|
6604
6611
|
selectedItemText: z,
|
|
6605
6612
|
position: o,
|
|
@@ -6624,7 +6631,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6624
6631
|
asChild: !0,
|
|
6625
6632
|
disableOutsidePointerEvents: !0,
|
|
6626
6633
|
onEscapeKeyDown: c,
|
|
6627
|
-
onPointerDownOutside:
|
|
6634
|
+
onPointerDownOutside: a,
|
|
6628
6635
|
onFocusOutside: (O) => O.preventDefault(),
|
|
6629
6636
|
onDismiss: () => h.onOpenChange(!1)
|
|
6630
6637
|
}, /* @__PURE__ */ $(de, C({
|
|
@@ -6674,38 +6681,38 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6674
6681
|
})
|
|
6675
6682
|
}))))));
|
|
6676
6683
|
}), ld = /* @__PURE__ */ _((e, t) => {
|
|
6677
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, c = Ge(qe, n),
|
|
6684
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, c = Ge(qe, n), a = Vt(qe, n), [i, s] = H(null), [d, u] = H(null), l = ce(
|
|
6678
6685
|
t,
|
|
6679
6686
|
(P) => u(P)
|
|
6680
|
-
), v = Mn(n), f = L(!1), m = L(!0), { viewport: p, selectedItem: b, selectedItemText: g, focusSelectedItem: h } =
|
|
6681
|
-
if (c.trigger && c.valueNode &&
|
|
6682
|
-
const P = c.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(),
|
|
6687
|
+
), v = Mn(n), f = L(!1), m = L(!0), { viewport: p, selectedItem: b, selectedItemText: g, focusSelectedItem: h } = a, x = Z(() => {
|
|
6688
|
+
if (c.trigger && c.valueNode && i && d && p && b && g) {
|
|
6689
|
+
const P = c.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), N = c.valueNode.getBoundingClientRect(), z = g.getBoundingClientRect();
|
|
6683
6690
|
if (c.dir !== "rtl") {
|
|
6684
|
-
const X = z.left - E.left, q =
|
|
6691
|
+
const X = z.left - E.left, q = N.left - X, fe = P.left - q, se = P.width + fe, tt = Math.max(se, E.width), nt = window.innerWidth - Ce, ot = no(q, [
|
|
6685
6692
|
Ce,
|
|
6686
6693
|
nt - tt
|
|
6687
6694
|
]);
|
|
6688
|
-
|
|
6695
|
+
i.style.minWidth = se + "px", i.style.left = ot + "px";
|
|
6689
6696
|
} else {
|
|
6690
|
-
const X = E.right - z.right, q = window.innerWidth -
|
|
6697
|
+
const X = E.right - z.right, q = window.innerWidth - N.right - X, fe = window.innerWidth - P.right - q, se = P.width + fe, tt = Math.max(se, E.width), nt = window.innerWidth - Ce, ot = no(q, [
|
|
6691
6698
|
Ce,
|
|
6692
6699
|
nt - tt
|
|
6693
6700
|
]);
|
|
6694
|
-
|
|
6701
|
+
i.style.minWidth = se + "px", i.style.right = ot + "px";
|
|
6695
6702
|
}
|
|
6696
|
-
const
|
|
6697
|
-
if (V <=
|
|
6698
|
-
const X = b ===
|
|
6699
|
-
|
|
6703
|
+
const D = v(), T = window.innerHeight - Ce * 2, G = p.scrollHeight, B = window.getComputedStyle(d), F = parseInt(B.borderTopWidth, 10), I = parseInt(B.paddingTop, 10), re = parseInt(B.borderBottomWidth, 10), J = parseInt(B.paddingBottom, 10), R = F + I + G + J + re, j = Math.min(b.offsetHeight * 5, R), oe = window.getComputedStyle(p), ae = parseInt(oe.paddingTop, 10), ee = parseInt(oe.paddingBottom, 10), ie = P.top + P.height / 2 - Ce, de = T - ie, ue = b.offsetHeight / 2, O = b.offsetTop + ue, V = F + I + O, te = R - V;
|
|
6704
|
+
if (V <= ie) {
|
|
6705
|
+
const X = b === D[D.length - 1].ref.current;
|
|
6706
|
+
i.style.bottom = "0px";
|
|
6700
6707
|
const q = d.clientHeight - p.offsetTop - p.offsetHeight, fe = Math.max(de, ue + (X ? ee : 0) + q + re), se = V + fe;
|
|
6701
|
-
|
|
6708
|
+
i.style.height = se + "px";
|
|
6702
6709
|
} else {
|
|
6703
|
-
const X = b ===
|
|
6704
|
-
|
|
6705
|
-
const fe = Math.max(
|
|
6706
|
-
|
|
6710
|
+
const X = b === D[0].ref.current;
|
|
6711
|
+
i.style.top = "0px";
|
|
6712
|
+
const fe = Math.max(ie, F + p.offsetTop + (X ? ae : 0) + ue) + te;
|
|
6713
|
+
i.style.height = fe + "px", p.scrollTop = V - ie + p.offsetTop;
|
|
6707
6714
|
}
|
|
6708
|
-
|
|
6715
|
+
i.style.margin = `${Ce}px 0`, i.style.minHeight = j + "px", i.style.maxHeight = T + "px", o == null || o(), requestAnimationFrame(
|
|
6709
6716
|
() => f.current = !0
|
|
6710
6717
|
);
|
|
6711
6718
|
}
|
|
@@ -6713,7 +6720,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6713
6720
|
v,
|
|
6714
6721
|
c.trigger,
|
|
6715
6722
|
c.valueNode,
|
|
6716
|
-
|
|
6723
|
+
i,
|
|
6717
6724
|
d,
|
|
6718
6725
|
p,
|
|
6719
6726
|
b,
|
|
@@ -6741,7 +6748,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6741
6748
|
]);
|
|
6742
6749
|
return /* @__PURE__ */ $(dd, {
|
|
6743
6750
|
scope: n,
|
|
6744
|
-
contentWrapper:
|
|
6751
|
+
contentWrapper: i,
|
|
6745
6752
|
shouldExpandOnScrollRef: f,
|
|
6746
6753
|
onScrollButtonChange: M
|
|
6747
6754
|
}, /* @__PURE__ */ $("div", {
|
|
@@ -6764,8 +6771,8 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6764
6771
|
}
|
|
6765
6772
|
}))));
|
|
6766
6773
|
}), oo = /* @__PURE__ */ _((e, t) => {
|
|
6767
|
-
const { __scopeSelect: n, align: o = "start", collisionPadding: r = Ce, ...c } = e,
|
|
6768
|
-
return /* @__PURE__ */ $(Wo, C({},
|
|
6774
|
+
const { __scopeSelect: n, align: o = "start", collisionPadding: r = Ce, ...c } = e, a = Rn(n);
|
|
6775
|
+
return /* @__PURE__ */ $(Wo, C({}, a, c, {
|
|
6769
6776
|
ref: t,
|
|
6770
6777
|
align: o,
|
|
6771
6778
|
collisionPadding: r,
|
|
@@ -6781,7 +6788,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6781
6788
|
}
|
|
6782
6789
|
}));
|
|
6783
6790
|
}), [dd, ud] = et(qe, {}), ro = "SelectViewport", fd = /* @__PURE__ */ _((e, t) => {
|
|
6784
|
-
const { __scopeSelect: n, ...o } = e, r = Vt(ro, n), c = ud(ro, n),
|
|
6791
|
+
const { __scopeSelect: n, ...o } = e, r = Vt(ro, n), c = ud(ro, n), a = ce(t, r.onViewportChange), i = L(0);
|
|
6785
6792
|
return /* @__PURE__ */ $(It, null, /* @__PURE__ */ $("style", {
|
|
6786
6793
|
dangerouslySetInnerHTML: {
|
|
6787
6794
|
__html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
@@ -6792,7 +6799,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6792
6799
|
"data-radix-select-viewport": "",
|
|
6793
6800
|
role: "presentation"
|
|
6794
6801
|
}, o, {
|
|
6795
|
-
ref:
|
|
6802
|
+
ref: a,
|
|
6796
6803
|
style: {
|
|
6797
6804
|
// we use position: 'relative' here on the `viewport` so that when we call
|
|
6798
6805
|
// `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
|
|
@@ -6805,7 +6812,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6805
6812
|
onScroll: A(o.onScroll, (s) => {
|
|
6806
6813
|
const d = s.currentTarget, { contentWrapper: u, shouldExpandOnScrollRef: l } = c;
|
|
6807
6814
|
if (l != null && l.current && u) {
|
|
6808
|
-
const v = Math.abs(
|
|
6815
|
+
const v = Math.abs(i.current - d.scrollTop);
|
|
6809
6816
|
if (v > 0) {
|
|
6810
6817
|
const f = window.innerHeight - Ce * 2, m = parseFloat(u.style.minHeight), p = parseFloat(u.style.height), b = Math.max(m, p);
|
|
6811
6818
|
if (b < f) {
|
|
@@ -6814,7 +6821,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6814
6821
|
}
|
|
6815
6822
|
}
|
|
6816
6823
|
}
|
|
6817
|
-
|
|
6824
|
+
i.current = d.scrollTop;
|
|
6818
6825
|
})
|
|
6819
6826
|
}))));
|
|
6820
6827
|
}), pd = "SelectGroup", [md, vd] = et(pd), gd = /* @__PURE__ */ _((e, t) => {
|
|
@@ -6836,11 +6843,11 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6836
6843
|
ref: t
|
|
6837
6844
|
}));
|
|
6838
6845
|
}), un = "SelectItem", [$d, Hr] = et(un), xd = /* @__PURE__ */ _((e, t) => {
|
|
6839
|
-
const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...
|
|
6846
|
+
const { __scopeSelect: n, value: o, disabled: r = !1, textValue: c, ...a } = e, i = Ge(un, n), s = Vt(un, n), d = i.value === o, [u, l] = H(c ?? ""), [v, f] = H(!1), m = ce(t, (g) => {
|
|
6840
6847
|
var h;
|
|
6841
6848
|
return (h = s.itemRefCallback) === null || h === void 0 ? void 0 : h.call(s, g, o, r);
|
|
6842
6849
|
}), p = Te(), b = () => {
|
|
6843
|
-
r || (
|
|
6850
|
+
r || (i.onValueChange(o), i.onOpenChange(!1));
|
|
6844
6851
|
};
|
|
6845
6852
|
return /* @__PURE__ */ $($d, {
|
|
6846
6853
|
scope: n,
|
|
@@ -6868,18 +6875,18 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6868
6875
|
"aria-disabled": r || void 0,
|
|
6869
6876
|
"data-disabled": r ? "" : void 0,
|
|
6870
6877
|
tabIndex: r ? void 0 : -1
|
|
6871
|
-
},
|
|
6878
|
+
}, a, {
|
|
6872
6879
|
ref: m,
|
|
6873
6880
|
onFocus: A(
|
|
6874
|
-
|
|
6881
|
+
a.onFocus,
|
|
6875
6882
|
() => f(!0)
|
|
6876
6883
|
),
|
|
6877
6884
|
onBlur: A(
|
|
6878
|
-
|
|
6885
|
+
a.onBlur,
|
|
6879
6886
|
() => f(!1)
|
|
6880
6887
|
),
|
|
6881
|
-
onPointerUp: A(
|
|
6882
|
-
onPointerMove: A(
|
|
6888
|
+
onPointerUp: A(a.onPointerUp, b),
|
|
6889
|
+
onPointerMove: A(a.onPointerMove, (g) => {
|
|
6883
6890
|
if (r) {
|
|
6884
6891
|
var h;
|
|
6885
6892
|
(h = s.onItemLeave) === null || h === void 0 || h.call(s);
|
|
@@ -6888,25 +6895,25 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6888
6895
|
preventScroll: !0
|
|
6889
6896
|
});
|
|
6890
6897
|
}),
|
|
6891
|
-
onPointerLeave: A(
|
|
6898
|
+
onPointerLeave: A(a.onPointerLeave, (g) => {
|
|
6892
6899
|
if (g.currentTarget === document.activeElement) {
|
|
6893
6900
|
var h;
|
|
6894
6901
|
(h = s.onItemLeave) === null || h === void 0 || h.call(s);
|
|
6895
6902
|
}
|
|
6896
6903
|
}),
|
|
6897
|
-
onKeyDown: A(
|
|
6904
|
+
onKeyDown: A(a.onKeyDown, (g) => {
|
|
6898
6905
|
var h;
|
|
6899
6906
|
((h = s.searchRef) === null || h === void 0 ? void 0 : h.current) !== "" && g.key === " " || (Xl.includes(g.key) && b(), g.key === " " && g.preventDefault());
|
|
6900
6907
|
})
|
|
6901
6908
|
}))));
|
|
6902
6909
|
}), wt = "SelectItemText", wd = /* @__PURE__ */ _((e, t) => {
|
|
6903
|
-
const { __scopeSelect: n, className: o, style: r, ...c } = e,
|
|
6910
|
+
const { __scopeSelect: n, className: o, style: r, ...c } = e, a = Ge(wt, n), i = Vt(wt, n), s = Hr(wt, n), d = Jl(wt, n), [u, l] = H(null), v = ce(
|
|
6904
6911
|
t,
|
|
6905
6912
|
(g) => l(g),
|
|
6906
6913
|
s.onItemTextChange,
|
|
6907
6914
|
(g) => {
|
|
6908
6915
|
var h;
|
|
6909
|
-
return (h =
|
|
6916
|
+
return (h = i.itemTextRefCallback) === null || h === void 0 ? void 0 : h.call(i, g, s.value, s.disabled);
|
|
6910
6917
|
}
|
|
6911
6918
|
), f = u == null ? void 0 : u.textContent, m = Ve(
|
|
6912
6919
|
() => /* @__PURE__ */ $("option", {
|
|
@@ -6928,7 +6935,7 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6928
6935
|
id: s.textId
|
|
6929
6936
|
}, c, {
|
|
6930
6937
|
ref: v
|
|
6931
|
-
})), s.isSelected &&
|
|
6938
|
+
})), s.isSelected && a.valueNode && !a.valueNodeHasChildren ? /* @__PURE__ */ io(c.children, a.valueNode) : null);
|
|
6932
6939
|
}), yd = "SelectItemIndicator", Cd = /* @__PURE__ */ _((e, t) => {
|
|
6933
6940
|
const { __scopeSelect: n, ...o } = e;
|
|
6934
6941
|
return Hr(yd, n).isSelected ? /* @__PURE__ */ $(Q.span, C({
|
|
@@ -6944,17 +6951,17 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6944
6951
|
ref: t
|
|
6945
6952
|
}));
|
|
6946
6953
|
}), zr = /* @__PURE__ */ _((e, t) => {
|
|
6947
|
-
const { value: n, ...o } = e, r = L(null), c = ce(t, r),
|
|
6954
|
+
const { value: n, ...o } = e, r = L(null), c = ce(t, r), a = Ar(n);
|
|
6948
6955
|
return U(() => {
|
|
6949
|
-
const
|
|
6950
|
-
if (
|
|
6956
|
+
const i = r.current, s = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(s, "value").set;
|
|
6957
|
+
if (a !== n && u) {
|
|
6951
6958
|
const l = new Event("change", {
|
|
6952
6959
|
bubbles: !0
|
|
6953
6960
|
});
|
|
6954
|
-
u.call(
|
|
6961
|
+
u.call(i, n), i.dispatchEvent(l);
|
|
6955
6962
|
}
|
|
6956
6963
|
}, [
|
|
6957
|
-
|
|
6964
|
+
a,
|
|
6958
6965
|
n
|
|
6959
6966
|
]), /* @__PURE__ */ $(jl, {
|
|
6960
6967
|
asChild: !0
|
|
@@ -6965,14 +6972,14 @@ const jl = /* @__PURE__ */ _((e, t) => /* @__PURE__ */ $(Q.span, C({}, e, {
|
|
|
6965
6972
|
});
|
|
6966
6973
|
zr.displayName = "BubbleSelect";
|
|
6967
6974
|
function Ur(e) {
|
|
6968
|
-
const t = ve(e), n = L(""), o = L(0), r = Z((
|
|
6969
|
-
const
|
|
6970
|
-
t(
|
|
6975
|
+
const t = ve(e), n = L(""), o = L(0), r = Z((a) => {
|
|
6976
|
+
const i = n.current + a;
|
|
6977
|
+
t(i), function s(d) {
|
|
6971
6978
|
n.current = d, window.clearTimeout(o.current), d !== "" && (o.current = window.setTimeout(
|
|
6972
6979
|
() => s(""),
|
|
6973
6980
|
1e3
|
|
6974
6981
|
));
|
|
6975
|
-
}(
|
|
6982
|
+
}(i);
|
|
6976
6983
|
}, [
|
|
6977
6984
|
t
|
|
6978
6985
|
]), c = Z(() => {
|
|
@@ -6988,11 +6995,11 @@ function Kr(e, t, n) {
|
|
|
6988
6995
|
const r = t.length > 1 && Array.from(t).every(
|
|
6989
6996
|
(d) => d === t[0]
|
|
6990
6997
|
) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
6991
|
-
let
|
|
6992
|
-
r.length === 1 && (
|
|
6998
|
+
let a = Pd(e, Math.max(c, 0));
|
|
6999
|
+
r.length === 1 && (a = a.filter(
|
|
6993
7000
|
(d) => d !== n
|
|
6994
7001
|
));
|
|
6995
|
-
const s =
|
|
7002
|
+
const s = a.find(
|
|
6996
7003
|
(d) => d.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
6997
7004
|
);
|
|
6998
7005
|
return s !== n ? s : void 0;
|
|
@@ -7002,7 +7009,7 @@ function Pd(e, t) {
|
|
|
7002
7009
|
(n, o) => e[(t + o) % e.length]
|
|
7003
7010
|
);
|
|
7004
7011
|
}
|
|
7005
|
-
const Ed = ed, Vr = nd, _d = rd, Md = cd, Rd =
|
|
7012
|
+
const Ed = ed, Vr = nd, _d = rd, Md = cd, Rd = ad, jr = id, Td = fd, Od = gd, Yr = bd, Xr = xd, Ad = wd, Id = Cd, qr = Sd, au = Ed, iu = Od, su = _d, kd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
|
|
7006
7013
|
Vr,
|
|
7007
7014
|
{
|
|
7008
7015
|
ref: o,
|
|
@@ -7013,12 +7020,12 @@ const Ed = ed, Vr = nd, _d = rd, Md = cd, Rd = id, jr = ad, Td = fd, Od = gd, Yr
|
|
|
7013
7020
|
...n,
|
|
7014
7021
|
children: [
|
|
7015
7022
|
t,
|
|
7016
|
-
/* @__PURE__ */
|
|
7023
|
+
/* @__PURE__ */ k(Md, { asChild: !0, children: /* @__PURE__ */ k(bl, { className: "h-4 w-4 opacity-50" }) })
|
|
7017
7024
|
]
|
|
7018
7025
|
}
|
|
7019
7026
|
));
|
|
7020
|
-
|
|
7021
|
-
const
|
|
7027
|
+
kd.displayName = Vr.displayName;
|
|
7028
|
+
const Nd = S.forwardRef(({ className: e = "", children: t, position: n = "popper", ...o }, r) => /* @__PURE__ */ k(Rd, { children: /* @__PURE__ */ k(
|
|
7022
7029
|
jr,
|
|
7023
7030
|
{
|
|
7024
7031
|
ref: r,
|
|
@@ -7029,7 +7036,7 @@ const Dd = S.forwardRef(({ className: e = "", children: t, position: n = "popper
|
|
|
7029
7036
|
),
|
|
7030
7037
|
position: n,
|
|
7031
7038
|
...o,
|
|
7032
|
-
children: /* @__PURE__ */
|
|
7039
|
+
children: /* @__PURE__ */ k(
|
|
7033
7040
|
Td,
|
|
7034
7041
|
{
|
|
7035
7042
|
className: K(
|
|
@@ -7041,8 +7048,8 @@ const Dd = S.forwardRef(({ className: e = "", children: t, position: n = "popper
|
|
|
7041
7048
|
)
|
|
7042
7049
|
}
|
|
7043
7050
|
) }));
|
|
7044
|
-
|
|
7045
|
-
const
|
|
7051
|
+
Nd.displayName = jr.displayName;
|
|
7052
|
+
const Dd = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ k(
|
|
7046
7053
|
Yr,
|
|
7047
7054
|
{
|
|
7048
7055
|
ref: n,
|
|
@@ -7050,7 +7057,7 @@ const kd = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ N(
|
|
|
7050
7057
|
...t
|
|
7051
7058
|
}
|
|
7052
7059
|
));
|
|
7053
|
-
|
|
7060
|
+
Dd.displayName = Yr.displayName;
|
|
7054
7061
|
const Fd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__PURE__ */ lt(
|
|
7055
7062
|
Xr,
|
|
7056
7063
|
{
|
|
@@ -7061,13 +7068,13 @@ const Fd = S.forwardRef(({ className: e = "", children: t, ...n }, o) => /* @__P
|
|
|
7061
7068
|
),
|
|
7062
7069
|
...n,
|
|
7063
7070
|
children: [
|
|
7064
|
-
/* @__PURE__ */
|
|
7065
|
-
/* @__PURE__ */
|
|
7071
|
+
/* @__PURE__ */ k("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ k(Id, { children: /* @__PURE__ */ k(Tr, { className: "h-4 w-4" }) }) }),
|
|
7072
|
+
/* @__PURE__ */ k(Ad, { children: t })
|
|
7066
7073
|
]
|
|
7067
7074
|
}
|
|
7068
7075
|
));
|
|
7069
7076
|
Fd.displayName = Xr.displayName;
|
|
7070
|
-
const Ld = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */
|
|
7077
|
+
const Ld = S.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ k(
|
|
7071
7078
|
qr,
|
|
7072
7079
|
{
|
|
7073
7080
|
ref: n,
|
|
@@ -7080,10 +7087,10 @@ export {
|
|
|
7080
7087
|
Hd as Button,
|
|
7081
7088
|
Ic as Card,
|
|
7082
7089
|
Fc as CardContent,
|
|
7083
|
-
|
|
7090
|
+
Dc as CardDescription,
|
|
7084
7091
|
Lc as CardFooter,
|
|
7085
|
-
|
|
7086
|
-
|
|
7092
|
+
kc as CardHeader,
|
|
7093
|
+
Nc as CardTitle,
|
|
7087
7094
|
Xd as Checkbox,
|
|
7088
7095
|
Qd as DropdownMenu,
|
|
7089
7096
|
Sl as DropdownMenuCheckboxItem,
|
|
@@ -7106,13 +7113,13 @@ export {
|
|
|
7106
7113
|
Vd as Paragraph,
|
|
7107
7114
|
Kl as RadioGroup,
|
|
7108
7115
|
Vl as RadioGroupItem,
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7116
|
+
au as Select,
|
|
7117
|
+
Nd as SelectContent,
|
|
7118
|
+
iu as SelectGroup,
|
|
7112
7119
|
Fd as SelectItem,
|
|
7113
|
-
|
|
7120
|
+
Dd as SelectLabel,
|
|
7114
7121
|
Ld as SelectSeparator,
|
|
7115
|
-
|
|
7122
|
+
kd as SelectTrigger,
|
|
7116
7123
|
su as SelectValue,
|
|
7117
7124
|
zd as Spinner,
|
|
7118
7125
|
Kd as TextArea
|