@protonradio/proton-ui 0.8.2 → 0.8.3
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/index.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.es.js +864 -860
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import A, { useRef as M, useCallback as X, useState as z, useContext as Y, useEffect as L, createContext as Q, useMemo as
|
|
1
|
+
import A, { useRef as M, useCallback as X, useState as z, useContext as Y, useEffect as L, createContext as Q, useMemo as H, useLayoutEffect as Kc, createElement as bi, isValidElement as Mc, forwardRef as dt, cloneElement as Ic } from "react";
|
|
2
2
|
import Cn, { flushSync as Fc, createPortal as gi } from "react-dom";
|
|
3
|
-
import { e as
|
|
3
|
+
import { e as U, i as Nr, h as yi, a as _c, D as en, t as El } from "./utils-CJd9wFM9.mjs";
|
|
4
4
|
import { THEMES as Pt, BREAKPOINTS as $i } from "./constants.es.js";
|
|
5
5
|
import { transparentize as Gn, parseToRgba as Rc } from "color2k";
|
|
6
|
-
import { G as
|
|
6
|
+
import { G as ye, S as tn, W as nn, D as rn } from "./colors-Dwh4VIMR.mjs";
|
|
7
7
|
import { c as $4 } from "./colors-Dwh4VIMR.mjs";
|
|
8
8
|
var cr = { exports: {} }, Mt = {};
|
|
9
9
|
/**
|
|
@@ -50,7 +50,7 @@ function Lc() {
|
|
|
50
50
|
return typeof K == "function" ? K : null;
|
|
51
51
|
}
|
|
52
52
|
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function
|
|
53
|
+
function x(h) {
|
|
54
54
|
{
|
|
55
55
|
for (var K = arguments.length, _ = new Array(K > 1 ? K - 1 : 0), j = 1; j < K; j++)
|
|
56
56
|
_[j - 1] = arguments[j];
|
|
@@ -67,29 +67,29 @@ function Lc() {
|
|
|
67
67
|
ee.unshift("Warning: " + K), Function.prototype.apply.call(console[h], console, ee);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var T = !1, w = !1, P = !1, R = !1, v = !1, B;
|
|
71
71
|
B = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p ||
|
|
72
|
+
function E(h) {
|
|
73
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p || T || w || P || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === u || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
h.$$typeof === B || h.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function D(h, K, _) {
|
|
80
80
|
var j = h.displayName;
|
|
81
81
|
if (j)
|
|
82
82
|
return j;
|
|
83
83
|
var Z = K.displayName || K.name || "";
|
|
84
84
|
return Z !== "" ? _ + "(" + Z + ")" : _;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function N(h) {
|
|
87
87
|
return h.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function S(h) {
|
|
90
90
|
if (h == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof h.tag == "number" &&
|
|
92
|
+
if (typeof h.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
|
|
93
93
|
return h.displayName || h.name || null;
|
|
94
94
|
if (typeof h == "string")
|
|
95
95
|
return h;
|
|
@@ -111,19 +111,19 @@ function Lc() {
|
|
|
111
111
|
switch (h.$$typeof) {
|
|
112
112
|
case a:
|
|
113
113
|
var K = h;
|
|
114
|
-
return
|
|
114
|
+
return N(K) + ".Consumer";
|
|
115
115
|
case o:
|
|
116
116
|
var _ = h;
|
|
117
|
-
return
|
|
117
|
+
return N(_._context) + ".Provider";
|
|
118
118
|
case u:
|
|
119
|
-
return
|
|
119
|
+
return D(h, h.render, "ForwardRef");
|
|
120
120
|
case d:
|
|
121
121
|
var j = h.displayName || null;
|
|
122
|
-
return j !== null ? j :
|
|
122
|
+
return j !== null ? j : S(h.type) || "Memo";
|
|
123
123
|
case f: {
|
|
124
124
|
var Z = h, ee = Z._payload, q = Z._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return S(q(ee));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function Lc() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var F = Object.assign,
|
|
134
|
+
var F = Object.assign, k = 0, V, I, re, de, xe, Be, Ee;
|
|
135
135
|
function Ue() {
|
|
136
136
|
}
|
|
137
137
|
Ue.__reactDisabledLog = !0;
|
|
138
138
|
function O() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
|
|
140
|
+
if (k === 0) {
|
|
141
|
+
V = console.log, I = console.info, re = console.warn, de = console.error, xe = console.group, Be = console.groupCollapsed, Ee = console.groupEnd;
|
|
142
142
|
var h = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -155,12 +155,12 @@ function Lc() {
|
|
|
155
155
|
groupEnd: h
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
k++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function ke() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
163
|
+
if (k--, k === 0) {
|
|
164
164
|
var h = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -168,16 +168,16 @@ function Lc() {
|
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
170
|
log: F({}, h, {
|
|
171
|
-
value:
|
|
171
|
+
value: V
|
|
172
172
|
}),
|
|
173
173
|
info: F({}, h, {
|
|
174
|
-
value:
|
|
174
|
+
value: I
|
|
175
175
|
}),
|
|
176
176
|
warn: F({}, h, {
|
|
177
|
-
value:
|
|
177
|
+
value: re
|
|
178
178
|
}),
|
|
179
179
|
error: F({}, h, {
|
|
180
|
-
value:
|
|
180
|
+
value: de
|
|
181
181
|
}),
|
|
182
182
|
group: F({}, h, {
|
|
183
183
|
value: xe
|
|
@@ -190,7 +190,7 @@ function Lc() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
k < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var Se = C.ReactCurrentDispatcher, Ge;
|
|
@@ -209,8 +209,8 @@ function Lc() {
|
|
|
209
209
|
}
|
|
210
210
|
var vt = !1, ht;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
ht = new
|
|
212
|
+
var le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
ht = new le();
|
|
214
214
|
}
|
|
215
215
|
function mt(h, K) {
|
|
216
216
|
if (!h || vt)
|
|
@@ -238,42 +238,42 @@ function Lc() {
|
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(q, []);
|
|
241
|
-
} catch (
|
|
242
|
-
j =
|
|
241
|
+
} catch (be) {
|
|
242
|
+
j = be;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(h, [], q);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
q.call();
|
|
248
|
-
} catch (
|
|
249
|
-
j =
|
|
248
|
+
} catch (be) {
|
|
249
|
+
j = be;
|
|
250
250
|
}
|
|
251
251
|
h.call(q.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
|
-
} catch (
|
|
257
|
-
j =
|
|
256
|
+
} catch (be) {
|
|
257
|
+
j = be;
|
|
258
258
|
}
|
|
259
259
|
h();
|
|
260
260
|
}
|
|
261
|
-
} catch (
|
|
262
|
-
if (
|
|
263
|
-
for (var G =
|
|
264
|
-
`),
|
|
265
|
-
`),
|
|
266
|
-
|
|
267
|
-
for (;
|
|
268
|
-
if (G[
|
|
269
|
-
if (
|
|
261
|
+
} catch (be) {
|
|
262
|
+
if (be && j && typeof be.stack == "string") {
|
|
263
|
+
for (var G = be.stack.split(`
|
|
264
|
+
`), ve = j.stack.split(`
|
|
265
|
+
`), ie = G.length - 1, ue = ve.length - 1; ie >= 1 && ue >= 0 && G[ie] !== ve[ue]; )
|
|
266
|
+
ue--;
|
|
267
|
+
for (; ie >= 1 && ue >= 0; ie--, ue--)
|
|
268
|
+
if (G[ie] !== ve[ue]) {
|
|
269
|
+
if (ie !== 1 || ue !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (ie--, ue--, ue < 0 || G[ie] !== ve[ue]) {
|
|
272
272
|
var Ce = `
|
|
273
|
-
` + G[
|
|
273
|
+
` + G[ie].replace(" at new ", " at ");
|
|
274
274
|
return h.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", h.displayName)), typeof h == "function" && ht.set(h, Ce), Ce;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (ie >= 1 && ue >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -335,14 +335,14 @@ function Lc() {
|
|
|
335
335
|
var G = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof h[q] != "function") {
|
|
338
|
-
var
|
|
339
|
-
throw
|
|
338
|
+
var ve = Error((j || "React class") + ": " + _ + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
|
+
throw ve.name = "Invariant Violation", ve;
|
|
340
340
|
}
|
|
341
341
|
G = h[q](K, q, j, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
-
} catch (
|
|
343
|
-
G =
|
|
342
|
+
} catch (ie) {
|
|
343
|
+
G = ie;
|
|
344
344
|
}
|
|
345
|
-
G && !(G instanceof Error) && (Qt(Z),
|
|
345
|
+
G && !(G instanceof Error) && (Qt(Z), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", _, q, typeof G), Qt(null)), G instanceof Error && !(G.message in sl) && (sl[G.message] = !0, Qt(Z), x("Failed %s type: %s", _, G.message), Qt(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -368,7 +368,7 @@ function Lc() {
|
|
|
368
368
|
}
|
|
369
369
|
function fl(h) {
|
|
370
370
|
if (pc(h))
|
|
371
|
-
return
|
|
371
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fc(h)), dl(h);
|
|
372
372
|
}
|
|
373
373
|
var Kt = C.ReactCurrentOwner, vc = {
|
|
374
374
|
key: !0,
|
|
@@ -395,14 +395,14 @@ function Lc() {
|
|
|
395
395
|
}
|
|
396
396
|
function bc(h, K) {
|
|
397
397
|
if (typeof h.ref == "string" && Kt.current && K && Kt.current.stateNode !== K) {
|
|
398
|
-
var _ =
|
|
399
|
-
jn[_] || (
|
|
398
|
+
var _ = S(Kt.current.type);
|
|
399
|
+
jn[_] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(Kt.current.type), h.ref), jn[_] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function gc(h, K) {
|
|
403
403
|
{
|
|
404
404
|
var _ = function() {
|
|
405
|
-
pl || (pl = !0,
|
|
405
|
+
pl || (pl = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
|
|
406
406
|
};
|
|
407
407
|
_.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
408
408
|
get: _,
|
|
@@ -413,7 +413,7 @@ function Lc() {
|
|
|
413
413
|
function yc(h, K) {
|
|
414
414
|
{
|
|
415
415
|
var _ = function() {
|
|
416
|
-
vl || (vl = !0,
|
|
416
|
+
vl || (vl = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
|
|
417
417
|
};
|
|
418
418
|
_.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
419
419
|
get: _,
|
|
@@ -452,20 +452,20 @@ function Lc() {
|
|
|
452
452
|
};
|
|
453
453
|
function xc(h, K, _, j, Z) {
|
|
454
454
|
{
|
|
455
|
-
var ee, q = {}, G = null,
|
|
456
|
-
_ !== void 0 && (fl(_), G = "" + _), mc(K) && (fl(K.key), G = "" + K.key), hc(K) && (
|
|
455
|
+
var ee, q = {}, G = null, ve = null;
|
|
456
|
+
_ !== void 0 && (fl(_), G = "" + _), mc(K) && (fl(K.key), G = "" + K.key), hc(K) && (ve = K.ref, bc(K, Z));
|
|
457
457
|
for (ee in K)
|
|
458
458
|
Bt.call(K, ee) && !vc.hasOwnProperty(ee) && (q[ee] = K[ee]);
|
|
459
459
|
if (h && h.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (ee in
|
|
462
|
-
q[ee] === void 0 && (q[ee] =
|
|
460
|
+
var ie = h.defaultProps;
|
|
461
|
+
for (ee in ie)
|
|
462
|
+
q[ee] === void 0 && (q[ee] = ie[ee]);
|
|
463
463
|
}
|
|
464
|
-
if (G ||
|
|
465
|
-
var
|
|
466
|
-
G && gc(q,
|
|
464
|
+
if (G || ve) {
|
|
465
|
+
var ue = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
466
|
+
G && gc(q, ue), ve && yc(q, ue);
|
|
467
467
|
}
|
|
468
|
-
return $c(h, G,
|
|
468
|
+
return $c(h, G, ve, Z, j, Kt.current, q);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
var Vn = C.ReactCurrentOwner, hl = C.ReactDebugCurrentFrame;
|
|
@@ -484,7 +484,7 @@ function Lc() {
|
|
|
484
484
|
function ml() {
|
|
485
485
|
{
|
|
486
486
|
if (Vn.current) {
|
|
487
|
-
var h =
|
|
487
|
+
var h = S(Vn.current.type);
|
|
488
488
|
if (h)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -519,7 +519,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
bl[_] = !0;
|
|
521
521
|
var j = "";
|
|
522
|
-
h && h._owner && h._owner !== Vn.current && (j = " It was passed a child from " +
|
|
522
|
+
h && h._owner && h._owner !== Vn.current && (j = " It was passed a child from " + S(h._owner.type) + "."), bt(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, j), bt(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function yl(h, K) {
|
|
@@ -556,14 +556,14 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
558
|
if (_) {
|
|
559
|
-
var j =
|
|
559
|
+
var j = S(K);
|
|
560
560
|
cc(_, h.props, "prop", j, h);
|
|
561
561
|
} else if (K.PropTypes !== void 0 && !Hn) {
|
|
562
562
|
Hn = !0;
|
|
563
|
-
var Z =
|
|
564
|
-
|
|
563
|
+
var Z = S(K);
|
|
564
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved &&
|
|
566
|
+
typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function wc(h) {
|
|
@@ -571,28 +571,28 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
571
571
|
for (var K = Object.keys(h.props), _ = 0; _ < K.length; _++) {
|
|
572
572
|
var j = K[_];
|
|
573
573
|
if (j !== "children" && j !== "key") {
|
|
574
|
-
bt(h),
|
|
574
|
+
bt(h), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), bt(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
h.ref !== null && (bt(h),
|
|
578
|
+
h.ref !== null && (bt(h), x("Invalid attribute `ref` supplied to `React.Fragment`."), bt(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var $l = {};
|
|
582
582
|
function xl(h, K, _, j, Z, ee) {
|
|
583
583
|
{
|
|
584
|
-
var q =
|
|
584
|
+
var q = E(h);
|
|
585
585
|
if (!q) {
|
|
586
586
|
var G = "";
|
|
587
587
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (G += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
|
-
var
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
h === null ?
|
|
588
|
+
var ve = Ec();
|
|
589
|
+
ve ? G += ve : G += ml();
|
|
590
|
+
var ie;
|
|
591
|
+
h === null ? ie = "null" : zn(h) ? ie = "array" : h !== void 0 && h.$$typeof === e ? (ie = "<" + (S(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, G);
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
return
|
|
593
|
+
var ue = xc(h, K, _, Z, ee);
|
|
594
|
+
if (ue == null)
|
|
595
|
+
return ue;
|
|
596
596
|
if (q) {
|
|
597
597
|
var Ce = K.children;
|
|
598
598
|
if (Ce !== void 0)
|
|
@@ -602,17 +602,17 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
602
602
|
yl(Ce[gt], h);
|
|
603
603
|
Object.freeze && Object.freeze(Ce);
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
607
|
yl(Ce, h);
|
|
608
608
|
}
|
|
609
609
|
if (Bt.call(K, "key")) {
|
|
610
|
-
var lt =
|
|
610
|
+
var lt = S(h), be = Object.keys(K).filter(function(Bc) {
|
|
611
611
|
return Bc !== "key";
|
|
612
|
-
}), Un =
|
|
612
|
+
}), Un = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
613
|
if (!$l[lt + Un]) {
|
|
614
|
-
var Ac =
|
|
615
|
-
|
|
614
|
+
var Ac = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -620,7 +620,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
<%s key={someKey} {...props} />`, Un, lt, Ac, lt), $l[lt + Un] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
return h === r ? wc(
|
|
623
|
+
return h === r ? wc(ue) : Cc(ue), ue;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
function Pc(h, K, _) {
|
|
@@ -637,7 +637,7 @@ process.env.NODE_ENV === "production" ? cr.exports = Nc() : cr.exports = Lc();
|
|
|
637
637
|
var b = cr.exports;
|
|
638
638
|
const J = typeof document < "u" ? A.useLayoutEffect : () => {
|
|
639
639
|
};
|
|
640
|
-
function
|
|
640
|
+
function ae(t) {
|
|
641
641
|
const e = M(null);
|
|
642
642
|
return J(() => {
|
|
643
643
|
e.current = t;
|
|
@@ -649,7 +649,7 @@ function oe(t) {
|
|
|
649
649
|
}, []);
|
|
650
650
|
}
|
|
651
651
|
function Oc(t) {
|
|
652
|
-
let [e, n] = z(t), r = M(null), l =
|
|
652
|
+
let [e, n] = z(t), r = M(null), l = ae(() => {
|
|
653
653
|
if (!r.current) return;
|
|
654
654
|
let o = r.current.next();
|
|
655
655
|
if (o.done) {
|
|
@@ -661,7 +661,7 @@ function Oc(t) {
|
|
|
661
661
|
J(() => {
|
|
662
662
|
r.current && l();
|
|
663
663
|
});
|
|
664
|
-
let i =
|
|
664
|
+
let i = ae((o) => {
|
|
665
665
|
r.current = o(e), l();
|
|
666
666
|
});
|
|
667
667
|
return [
|
|
@@ -715,7 +715,7 @@ function nt() {
|
|
|
715
715
|
return typeof A.useSyncExternalStore == "function" ? A.useSyncExternalStore(qc, Gc, Yc) : Y(zc);
|
|
716
716
|
}
|
|
717
717
|
let Xc = !!(typeof window < "u" && window.document && window.document.createElement), qe = /* @__PURE__ */ new Map();
|
|
718
|
-
function
|
|
718
|
+
function me(t) {
|
|
719
719
|
let [e, n] = z(t), r = M(null), l = Uc(e), i = X((o) => {
|
|
720
720
|
r.current = o;
|
|
721
721
|
}, []);
|
|
@@ -745,7 +745,7 @@ function Zc(t, e) {
|
|
|
745
745
|
return r ? (r.forEach((l) => l(t)), t) : e;
|
|
746
746
|
}
|
|
747
747
|
function et(t = []) {
|
|
748
|
-
let e =
|
|
748
|
+
let e = me(), [n, r] = Oc(e), l = X(() => {
|
|
749
749
|
r(function* () {
|
|
750
750
|
yield e, yield document.getElementById(e) ? e : void 0;
|
|
751
751
|
});
|
|
@@ -781,7 +781,7 @@ function Jc() {
|
|
|
781
781
|
for (var t, e, n = 0, r = "", l = arguments.length; n < l; n++) (t = arguments[n]) && (e = Ei(t)) && (r && (r += " "), r += e);
|
|
782
782
|
return r;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function W(...t) {
|
|
785
785
|
let e = {
|
|
786
786
|
...t[0]
|
|
787
787
|
};
|
|
@@ -819,7 +819,7 @@ const ed = /* @__PURE__ */ new Set([
|
|
|
819
819
|
"ping",
|
|
820
820
|
"referrerPolicy"
|
|
821
821
|
]), rd = /^(data-.*)$/;
|
|
822
|
-
function
|
|
822
|
+
function pe(t, e = {}) {
|
|
823
823
|
let { labelable: n, isLink: r, propNames: l } = e, i = {};
|
|
824
824
|
for (const o in t) Object.prototype.hasOwnProperty.call(t, o) && (ed.has(o) || n && td.has(o) || r && nd.has(o) || l != null && l.has(o) || rd.test(o)) && (i[o] = t[o]);
|
|
825
825
|
return i;
|
|
@@ -1022,7 +1022,7 @@ function Pi() {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
function Di(t, e) {
|
|
1024
1024
|
let { id: n, "aria-label": r, "aria-labelledby": l } = t;
|
|
1025
|
-
return n =
|
|
1025
|
+
return n = me(n), l && r ? l = [
|
|
1026
1026
|
.../* @__PURE__ */ new Set([
|
|
1027
1027
|
n,
|
|
1028
1028
|
...l.trim().split(/\s+/)
|
|
@@ -1035,7 +1035,7 @@ function Di(t, e) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
function Dn(t) {
|
|
1037
1037
|
const e = M(null);
|
|
1038
|
-
return
|
|
1038
|
+
return H(() => ({
|
|
1039
1039
|
get current() {
|
|
1040
1040
|
return e.current;
|
|
1041
1041
|
},
|
|
@@ -1132,7 +1132,7 @@ function kn(t) {
|
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
1134
|
function Pl(t, e, n, r) {
|
|
1135
|
-
let l =
|
|
1135
|
+
let l = ae(n), i = n == null;
|
|
1136
1136
|
L(() => {
|
|
1137
1137
|
if (i || !t.current) return;
|
|
1138
1138
|
let o = t.current;
|
|
@@ -1195,7 +1195,7 @@ function gd(t) {
|
|
|
1195
1195
|
return !vn() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
|
|
1196
1196
|
}
|
|
1197
1197
|
function Tn(t, e, n) {
|
|
1198
|
-
let r = M(e), l =
|
|
1198
|
+
let r = M(e), l = ae(() => {
|
|
1199
1199
|
n && n(r.current);
|
|
1200
1200
|
});
|
|
1201
1201
|
L(() => {
|
|
@@ -1303,7 +1303,7 @@ function Cd(t) {
|
|
|
1303
1303
|
let e = Y(Vt);
|
|
1304
1304
|
if (e) {
|
|
1305
1305
|
let { register: n, ...r } = e;
|
|
1306
|
-
t =
|
|
1306
|
+
t = W(r, t), n();
|
|
1307
1307
|
}
|
|
1308
1308
|
return zr(e, t.ref), t;
|
|
1309
1309
|
}
|
|
@@ -1353,168 +1353,168 @@ function ze(t) {
|
|
|
1353
1353
|
target: null,
|
|
1354
1354
|
isOverTarget: !1,
|
|
1355
1355
|
pointerType: null
|
|
1356
|
-
}), { addGlobalListener: g, removeAllGlobalListeners: C } = Pi(),
|
|
1357
|
-
let
|
|
1358
|
-
if (o ||
|
|
1359
|
-
let
|
|
1360
|
-
if (
|
|
1361
|
-
let
|
|
1362
|
-
r(
|
|
1363
|
-
}
|
|
1364
|
-
return n && n(!0),
|
|
1365
|
-
}), $ =
|
|
1366
|
-
let
|
|
1367
|
-
if (!
|
|
1368
|
-
|
|
1369
|
-
let
|
|
1356
|
+
}), { addGlobalListener: g, removeAllGlobalListeners: C } = Pi(), x = ae((v, B) => {
|
|
1357
|
+
let E = y.current;
|
|
1358
|
+
if (o || E.didFirePressStart) return !1;
|
|
1359
|
+
let D = !0;
|
|
1360
|
+
if (E.isTriggeringEvent = !0, r) {
|
|
1361
|
+
let N = new un("pressstart", B, v);
|
|
1362
|
+
r(N), D = N.shouldStopPropagation;
|
|
1363
|
+
}
|
|
1364
|
+
return n && n(!0), E.isTriggeringEvent = !1, E.didFirePressStart = !0, m(!0), D;
|
|
1365
|
+
}), $ = ae((v, B, E = !0) => {
|
|
1366
|
+
let D = y.current;
|
|
1367
|
+
if (!D.didFirePressStart) return !1;
|
|
1368
|
+
D.ignoreClickAfterPress = !0, D.didFirePressStart = !1, D.isTriggeringEvent = !0;
|
|
1369
|
+
let N = !0;
|
|
1370
1370
|
if (l) {
|
|
1371
|
-
let
|
|
1372
|
-
l(
|
|
1371
|
+
let S = new un("pressend", B, v);
|
|
1372
|
+
l(S), N = S.shouldStopPropagation;
|
|
1373
1373
|
}
|
|
1374
|
-
if (n && n(!1), m(!1), e &&
|
|
1375
|
-
let
|
|
1376
|
-
e(
|
|
1374
|
+
if (n && n(!1), m(!1), e && E && !o) {
|
|
1375
|
+
let S = new un("press", B, v);
|
|
1376
|
+
e(S), N && (N = S.shouldStopPropagation);
|
|
1377
1377
|
}
|
|
1378
|
-
return
|
|
1379
|
-
}),
|
|
1380
|
-
let
|
|
1378
|
+
return D.isTriggeringEvent = !1, N;
|
|
1379
|
+
}), T = ae((v, B) => {
|
|
1380
|
+
let E = y.current;
|
|
1381
1381
|
if (o) return !1;
|
|
1382
1382
|
if (i) {
|
|
1383
|
-
|
|
1384
|
-
let
|
|
1385
|
-
return i(
|
|
1383
|
+
E.isTriggeringEvent = !0;
|
|
1384
|
+
let D = new un("pressup", B, v);
|
|
1385
|
+
return i(D), E.isTriggeringEvent = !1, D.shouldStopPropagation;
|
|
1386
1386
|
}
|
|
1387
1387
|
return !0;
|
|
1388
|
-
}), w =
|
|
1388
|
+
}), w = ae((v) => {
|
|
1389
1389
|
let B = y.current;
|
|
1390
1390
|
B.isPressed && B.target && (B.isOverTarget && B.pointerType != null && $(Fe(B.target, v), B.pointerType, !1), B.isPressed = !1, B.isOverTarget = !1, B.activePointerId = null, B.pointerType = null, C(), c || on(B.target));
|
|
1391
|
-
}),
|
|
1391
|
+
}), P = ae((v) => {
|
|
1392
1392
|
s && w(v);
|
|
1393
|
-
}), R =
|
|
1393
|
+
}), R = H(() => {
|
|
1394
1394
|
let v = y.current, B = {
|
|
1395
|
-
onKeyDown(
|
|
1396
|
-
if (Xn(
|
|
1397
|
-
var
|
|
1398
|
-
Kl(
|
|
1399
|
-
let
|
|
1400
|
-
if (!v.isPressed && !
|
|
1401
|
-
v.target =
|
|
1402
|
-
let F =
|
|
1403
|
-
Xn(
|
|
1395
|
+
onKeyDown(D) {
|
|
1396
|
+
if (Xn(D.nativeEvent, D.currentTarget) && D.currentTarget.contains(D.target)) {
|
|
1397
|
+
var N;
|
|
1398
|
+
Kl(D.target, D.key) && D.preventDefault();
|
|
1399
|
+
let S = !0;
|
|
1400
|
+
if (!v.isPressed && !D.repeat) {
|
|
1401
|
+
v.target = D.currentTarget, v.isPressed = !0, S = x(D, "keyboard");
|
|
1402
|
+
let F = D.currentTarget, k = (V) => {
|
|
1403
|
+
Xn(V, F) && !V.repeat && F.contains(V.target) && v.target && T(Fe(v.target, V), "keyboard");
|
|
1404
1404
|
};
|
|
1405
|
-
g(ne(
|
|
1405
|
+
g(ne(D.currentTarget), "keyup", Ie(k, E), !0);
|
|
1406
1406
|
}
|
|
1407
|
-
|
|
1408
|
-
} else
|
|
1407
|
+
S && D.stopPropagation(), D.metaKey && tt() && ((N = v.metaKeyEvents) === null || N === void 0 || N.set(D.key, D.nativeEvent));
|
|
1408
|
+
} else D.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1409
1409
|
},
|
|
1410
|
-
onClick(
|
|
1411
|
-
if (!(
|
|
1412
|
-
let
|
|
1413
|
-
if (o &&
|
|
1414
|
-
!o && !u && Le(
|
|
1415
|
-
let
|
|
1416
|
-
|
|
1410
|
+
onClick(D) {
|
|
1411
|
+
if (!(D && !D.currentTarget.contains(D.target)) && D && D.button === 0 && !v.isTriggeringEvent && !ut.isOpening) {
|
|
1412
|
+
let N = !0;
|
|
1413
|
+
if (o && D.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || pr(D.nativeEvent))) {
|
|
1414
|
+
!o && !u && Le(D.currentTarget);
|
|
1415
|
+
let S = x(D, "virtual"), F = T(D, "virtual"), k = $(D, "virtual");
|
|
1416
|
+
N = S && F && k;
|
|
1417
1417
|
}
|
|
1418
|
-
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1,
|
|
1418
|
+
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, N && D.stopPropagation();
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
},
|
|
1422
|
-
var
|
|
1423
|
-
if (v.isPressed && v.target && Xn(
|
|
1424
|
-
var
|
|
1425
|
-
Kl(
|
|
1426
|
-
let
|
|
1427
|
-
$(Fe(v.target,
|
|
1428
|
-
} else if (
|
|
1421
|
+
}, E = (D) => {
|
|
1422
|
+
var N;
|
|
1423
|
+
if (v.isPressed && v.target && Xn(D, v.target)) {
|
|
1424
|
+
var S;
|
|
1425
|
+
Kl(D.target, D.key) && D.preventDefault();
|
|
1426
|
+
let k = D.target;
|
|
1427
|
+
$(Fe(v.target, D), "keyboard", v.target.contains(k)), C(), D.key !== "Enter" && jr(v.target) && v.target.contains(k) && !D[Al] && (D[Al] = !0, ut(v.target, D, !1)), v.isPressed = !1, (S = v.metaKeyEvents) === null || S === void 0 || S.delete(D.key);
|
|
1428
|
+
} else if (D.key === "Meta" && (!((N = v.metaKeyEvents) === null || N === void 0) && N.size)) {
|
|
1429
1429
|
var F;
|
|
1430
|
-
let
|
|
1430
|
+
let k = v.metaKeyEvents;
|
|
1431
1431
|
v.metaKeyEvents = void 0;
|
|
1432
|
-
for (let
|
|
1432
|
+
for (let V of k.values()) (F = v.target) === null || F === void 0 || F.dispatchEvent(new KeyboardEvent("keyup", V));
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
1435
|
if (typeof PointerEvent < "u") {
|
|
1436
|
-
B.onPointerDown = (
|
|
1437
|
-
if (
|
|
1438
|
-
if (gd(
|
|
1436
|
+
B.onPointerDown = (k) => {
|
|
1437
|
+
if (k.button !== 0 || !k.currentTarget.contains(k.target)) return;
|
|
1438
|
+
if (gd(k.nativeEvent)) {
|
|
1439
1439
|
v.pointerType = "virtual";
|
|
1440
1440
|
return;
|
|
1441
1441
|
}
|
|
1442
|
-
Zn(
|
|
1443
|
-
let
|
|
1444
|
-
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId =
|
|
1445
|
-
}, B.onMouseDown = (
|
|
1446
|
-
|
|
1447
|
-
}, B.onPointerUp = (
|
|
1448
|
-
!
|
|
1442
|
+
Zn(k.currentTarget) && k.preventDefault(), v.pointerType = k.pointerType;
|
|
1443
|
+
let V = !0;
|
|
1444
|
+
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = k.pointerId, v.target = k.currentTarget, !o && !u && Le(k.currentTarget), c || kl(v.target), V = x(k, v.pointerType), g(ne(k.currentTarget), "pointermove", D, !1), g(ne(k.currentTarget), "pointerup", N, !1), g(ne(k.currentTarget), "pointercancel", F, !1)), V && k.stopPropagation();
|
|
1445
|
+
}, B.onMouseDown = (k) => {
|
|
1446
|
+
k.currentTarget.contains(k.target) && k.button === 0 && (Zn(k.currentTarget) && k.preventDefault(), k.stopPropagation());
|
|
1447
|
+
}, B.onPointerUp = (k) => {
|
|
1448
|
+
!k.currentTarget.contains(k.target) || v.pointerType === "virtual" || k.button === 0 && yt(k, k.currentTarget) && T(k, v.pointerType || k.pointerType);
|
|
1449
1449
|
};
|
|
1450
|
-
let
|
|
1451
|
-
|
|
1452
|
-
},
|
|
1453
|
-
|
|
1450
|
+
let D = (k) => {
|
|
1451
|
+
k.pointerId === v.activePointerId && (v.target && yt(k, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, x(Fe(v.target, k), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, $(Fe(v.target, k), v.pointerType, !1), P(k)));
|
|
1452
|
+
}, N = (k) => {
|
|
1453
|
+
k.pointerId === v.activePointerId && v.isPressed && k.button === 0 && v.target && (yt(k, v.target) && v.pointerType != null ? $(Fe(v.target, k), v.pointerType) : v.isOverTarget && v.pointerType != null && $(Fe(v.target, k), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, C(), c || on(v.target), "ontouchend" in v.target && k.pointerType !== "mouse" && g(v.target, "touchend", S, {
|
|
1454
1454
|
once: !0
|
|
1455
1455
|
}));
|
|
1456
|
-
},
|
|
1457
|
-
Bi(
|
|
1458
|
-
}, F = (
|
|
1459
|
-
w(
|
|
1456
|
+
}, S = (k) => {
|
|
1457
|
+
Bi(k.currentTarget) && k.preventDefault();
|
|
1458
|
+
}, F = (k) => {
|
|
1459
|
+
w(k);
|
|
1460
1460
|
};
|
|
1461
|
-
B.onDragStart = (
|
|
1462
|
-
|
|
1461
|
+
B.onDragStart = (k) => {
|
|
1462
|
+
k.currentTarget.contains(k.target) && w(k);
|
|
1463
1463
|
};
|
|
1464
1464
|
} else {
|
|
1465
|
-
B.onMouseDown = (
|
|
1466
|
-
if (
|
|
1467
|
-
if (Zn(
|
|
1468
|
-
|
|
1465
|
+
B.onMouseDown = (S) => {
|
|
1466
|
+
if (S.button !== 0 || !S.currentTarget.contains(S.target)) return;
|
|
1467
|
+
if (Zn(S.currentTarget) && S.preventDefault(), v.ignoreEmulatedMouseEvents) {
|
|
1468
|
+
S.stopPropagation();
|
|
1469
1469
|
return;
|
|
1470
1470
|
}
|
|
1471
|
-
v.isPressed = !0, v.isOverTarget = !0, v.target =
|
|
1472
|
-
}, B.onMouseEnter = (
|
|
1473
|
-
if (!
|
|
1471
|
+
v.isPressed = !0, v.isOverTarget = !0, v.target = S.currentTarget, v.pointerType = pr(S.nativeEvent) ? "virtual" : "mouse", !o && !u && Le(S.currentTarget), x(S, v.pointerType) && S.stopPropagation(), g(ne(S.currentTarget), "mouseup", D, !1);
|
|
1472
|
+
}, B.onMouseEnter = (S) => {
|
|
1473
|
+
if (!S.currentTarget.contains(S.target)) return;
|
|
1474
1474
|
let F = !0;
|
|
1475
|
-
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F =
|
|
1476
|
-
}, B.onMouseLeave = (
|
|
1477
|
-
if (!
|
|
1475
|
+
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F = x(S, v.pointerType)), F && S.stopPropagation();
|
|
1476
|
+
}, B.onMouseLeave = (S) => {
|
|
1477
|
+
if (!S.currentTarget.contains(S.target)) return;
|
|
1478
1478
|
let F = !0;
|
|
1479
|
-
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, F = $(
|
|
1480
|
-
}, B.onMouseUp = (
|
|
1481
|
-
|
|
1479
|
+
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, F = $(S, v.pointerType, !1), P(S)), F && S.stopPropagation();
|
|
1480
|
+
}, B.onMouseUp = (S) => {
|
|
1481
|
+
S.currentTarget.contains(S.target) && !v.ignoreEmulatedMouseEvents && S.button === 0 && T(S, v.pointerType || "mouse");
|
|
1482
1482
|
};
|
|
1483
|
-
let
|
|
1484
|
-
if (
|
|
1483
|
+
let D = (S) => {
|
|
1484
|
+
if (S.button === 0) {
|
|
1485
1485
|
if (v.isPressed = !1, C(), v.ignoreEmulatedMouseEvents) {
|
|
1486
1486
|
v.ignoreEmulatedMouseEvents = !1;
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
|
-
v.target && yt(
|
|
1489
|
+
v.target && yt(S, v.target) && v.pointerType != null ? $(Fe(v.target, S), v.pointerType) : v.target && v.isOverTarget && v.pointerType != null && $(Fe(v.target, S), v.pointerType, !1), v.isOverTarget = !1;
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
B.onTouchStart = (
|
|
1493
|
-
if (!
|
|
1494
|
-
let F = wd(
|
|
1492
|
+
B.onTouchStart = (S) => {
|
|
1493
|
+
if (!S.currentTarget.contains(S.target)) return;
|
|
1494
|
+
let F = wd(S.nativeEvent);
|
|
1495
1495
|
if (!F) return;
|
|
1496
|
-
v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target =
|
|
1497
|
-
}, B.onTouchMove = (
|
|
1498
|
-
if (!
|
|
1496
|
+
v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = S.currentTarget, v.pointerType = "touch", !o && !u && Le(S.currentTarget), c || kl(v.target), x(Ye(v.target, S), v.pointerType) && S.stopPropagation(), g(De(S.currentTarget), "scroll", N, !0);
|
|
1497
|
+
}, B.onTouchMove = (S) => {
|
|
1498
|
+
if (!S.currentTarget.contains(S.target)) return;
|
|
1499
1499
|
if (!v.isPressed) {
|
|
1500
|
-
|
|
1500
|
+
S.stopPropagation();
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
|
-
let F = Bl(
|
|
1504
|
-
F && yt(F,
|
|
1505
|
-
}, B.onTouchEnd = (
|
|
1506
|
-
if (!
|
|
1503
|
+
let F = Bl(S.nativeEvent, v.activePointerId), k = !0;
|
|
1504
|
+
F && yt(F, S.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, k = x(Ye(v.target, S), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, k = $(Ye(v.target, S), v.pointerType, !1), P(Ye(v.target, S))), k && S.stopPropagation();
|
|
1505
|
+
}, B.onTouchEnd = (S) => {
|
|
1506
|
+
if (!S.currentTarget.contains(S.target)) return;
|
|
1507
1507
|
if (!v.isPressed) {
|
|
1508
|
-
|
|
1508
|
+
S.stopPropagation();
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
|
-
let F = Bl(
|
|
1512
|
-
F && yt(F,
|
|
1513
|
-
}, B.onTouchCancel = (
|
|
1514
|
-
|
|
1511
|
+
let F = Bl(S.nativeEvent, v.activePointerId), k = !0;
|
|
1512
|
+
F && yt(F, S.currentTarget) && v.pointerType != null ? (T(Ye(v.target, S), v.pointerType), k = $(Ye(v.target, S), v.pointerType)) : v.isOverTarget && v.pointerType != null && (k = $(Ye(v.target, S), v.pointerType, !1)), k && S.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), C();
|
|
1513
|
+
}, B.onTouchCancel = (S) => {
|
|
1514
|
+
S.currentTarget.contains(S.target) && (S.stopPropagation(), v.isPressed && w(Ye(v.target, S)));
|
|
1515
1515
|
};
|
|
1516
|
-
let
|
|
1517
|
-
v.isPressed &&
|
|
1516
|
+
let N = (S) => {
|
|
1517
|
+
v.isPressed && S.target.contains(v.target) && w({
|
|
1518
1518
|
currentTarget: v.target,
|
|
1519
1519
|
shiftKey: !1,
|
|
1520
1520
|
ctrlKey: !1,
|
|
@@ -1522,8 +1522,8 @@ function ze(t) {
|
|
|
1522
1522
|
altKey: !1
|
|
1523
1523
|
});
|
|
1524
1524
|
};
|
|
1525
|
-
B.onDragStart = (
|
|
1526
|
-
|
|
1525
|
+
B.onDragStart = (S) => {
|
|
1526
|
+
S.currentTarget.contains(S.target) && w(S);
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
1529
|
return B;
|
|
@@ -1534,10 +1534,10 @@ function ze(t) {
|
|
|
1534
1534
|
C,
|
|
1535
1535
|
c,
|
|
1536
1536
|
w,
|
|
1537
|
-
|
|
1537
|
+
P,
|
|
1538
1538
|
$,
|
|
1539
|
-
|
|
1540
|
-
|
|
1539
|
+
x,
|
|
1540
|
+
T
|
|
1541
1541
|
]);
|
|
1542
1542
|
return L(() => () => {
|
|
1543
1543
|
var v;
|
|
@@ -1546,7 +1546,7 @@ function ze(t) {
|
|
|
1546
1546
|
c
|
|
1547
1547
|
]), {
|
|
1548
1548
|
isPressed: a || p,
|
|
1549
|
-
pressProps:
|
|
1549
|
+
pressProps: W(f, R)
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
1552
|
function jr(t) {
|
|
@@ -1635,7 +1635,7 @@ function Ki(t, e) {
|
|
|
1635
1635
|
const Td = /* @__PURE__ */ A.forwardRef(({ children: t, ...e }, n) => {
|
|
1636
1636
|
let r = M(!1), l = Y(Vt);
|
|
1637
1637
|
n = Dn(n || (l == null ? void 0 : l.ref));
|
|
1638
|
-
let i =
|
|
1638
|
+
let i = W(l || {}, {
|
|
1639
1639
|
...e,
|
|
1640
1640
|
ref: n,
|
|
1641
1641
|
register() {
|
|
@@ -1649,7 +1649,7 @@ const Td = /* @__PURE__ */ A.forwardRef(({ children: t, ...e }, n) => {
|
|
|
1649
1649
|
}, t);
|
|
1650
1650
|
});
|
|
1651
1651
|
function Ad({ children: t }) {
|
|
1652
|
-
let e =
|
|
1652
|
+
let e = H(() => ({
|
|
1653
1653
|
register: () => {
|
|
1654
1654
|
}
|
|
1655
1655
|
}), []);
|
|
@@ -1687,7 +1687,7 @@ function Mi(t) {
|
|
|
1687
1687
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
1688
1688
|
};
|
|
1689
1689
|
}, []);
|
|
1690
|
-
let n =
|
|
1690
|
+
let n = ae((r) => {
|
|
1691
1691
|
t == null || t(r);
|
|
1692
1692
|
});
|
|
1693
1693
|
return X((r) => {
|
|
@@ -1895,7 +1895,7 @@ function kt(t) {
|
|
|
1895
1895
|
target: null
|
|
1896
1896
|
}).current;
|
|
1897
1897
|
L(Nd, []);
|
|
1898
|
-
let { hoverProps: u, triggerHoverEnd: s } =
|
|
1898
|
+
let { hoverProps: u, triggerHoverEnd: s } = H(() => {
|
|
1899
1899
|
let c = (p, m) => {
|
|
1900
1900
|
if (a.pointerType = m, l || m === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
|
|
1901
1901
|
a.isHovered = !0;
|
|
@@ -1951,9 +1951,9 @@ function Oi(t) {
|
|
|
1951
1951
|
let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: l } = t, i = M({
|
|
1952
1952
|
isPointerDown: !1,
|
|
1953
1953
|
ignoreEmulatedMouseEvents: !1
|
|
1954
|
-
}), o =
|
|
1954
|
+
}), o = ae((u) => {
|
|
1955
1955
|
n && sn(u, e) && (l && l(u), i.current.isPointerDown = !0);
|
|
1956
|
-
}), a =
|
|
1956
|
+
}), a = ae((u) => {
|
|
1957
1957
|
n && n(u);
|
|
1958
1958
|
});
|
|
1959
1959
|
L(() => {
|
|
@@ -2062,10 +2062,10 @@ function ji(t) {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
}), d = kn(l && !e ? o : void 0);
|
|
2064
2064
|
return {
|
|
2065
|
-
longPressProps:
|
|
2065
|
+
longPressProps: W(c, d)
|
|
2066
2066
|
};
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function he(t) {
|
|
2069
2069
|
const e = ne(t);
|
|
2070
2070
|
if (bn() === "virtual") {
|
|
2071
2071
|
let n = e.activeElement;
|
|
@@ -2095,23 +2095,23 @@ function Vi(t, e) {
|
|
|
2095
2095
|
const Fl = /* @__PURE__ */ A.createContext(null), gr = "react-aria-focus-scope-restore";
|
|
2096
2096
|
let te = null;
|
|
2097
2097
|
function Kn(t) {
|
|
2098
|
-
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(Fl) || {}, s =
|
|
2098
|
+
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(Fl) || {}, s = H(() => new $r({
|
|
2099
2099
|
scopeRef: a
|
|
2100
2100
|
}), [
|
|
2101
2101
|
a
|
|
2102
2102
|
]);
|
|
2103
2103
|
J(() => {
|
|
2104
|
-
let f = u ||
|
|
2105
|
-
if (
|
|
2106
|
-
let p =
|
|
2104
|
+
let f = u || ce.root;
|
|
2105
|
+
if (ce.getTreeNode(f.scopeRef) && te && !$n(te, f.scopeRef)) {
|
|
2106
|
+
let p = ce.getTreeNode(te);
|
|
2107
2107
|
p && (f = p);
|
|
2108
2108
|
}
|
|
2109
|
-
f.addChild(s),
|
|
2109
|
+
f.addChild(s), ce.addNode(s);
|
|
2110
2110
|
}, [
|
|
2111
2111
|
s,
|
|
2112
2112
|
u
|
|
2113
2113
|
]), J(() => {
|
|
2114
|
-
let f =
|
|
2114
|
+
let f = ce.getTreeNode(a);
|
|
2115
2115
|
f && (f.contain = !!n);
|
|
2116
2116
|
}, [
|
|
2117
2117
|
n
|
|
@@ -2128,20 +2128,20 @@ function Kn(t) {
|
|
|
2128
2128
|
]), Yd(a, r, n), Wd(a, n), Xd(a, r, n), Gd(a, l), L(() => {
|
|
2129
2129
|
const f = ne(a.current ? a.current[0] : void 0).activeElement;
|
|
2130
2130
|
let p = null;
|
|
2131
|
-
if (
|
|
2132
|
-
for (let m of
|
|
2133
|
-
p ===
|
|
2131
|
+
if (fe(f, a.current)) {
|
|
2132
|
+
for (let m of ce.traverse()) m.scopeRef && fe(f, m.scopeRef.current) && (p = m);
|
|
2133
|
+
p === ce.getTreeNode(a) && (te = p.scopeRef);
|
|
2134
2134
|
}
|
|
2135
2135
|
}, [
|
|
2136
2136
|
a
|
|
2137
2137
|
]), J(() => () => {
|
|
2138
2138
|
var f, p, m;
|
|
2139
|
-
let y = (m = (p =
|
|
2140
|
-
(a === te || $n(a, te)) && (!y ||
|
|
2139
|
+
let y = (m = (p = ce.getTreeNode(a)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
|
|
2140
|
+
(a === te || $n(a, te)) && (!y || ce.getTreeNode(y)) && (te = y), ce.removeTreeNode(a);
|
|
2141
2141
|
}, [
|
|
2142
2142
|
a
|
|
2143
2143
|
]);
|
|
2144
|
-
let c =
|
|
2144
|
+
let c = H(() => jd(a), []), d = H(() => ({
|
|
2145
2145
|
focusManager: c,
|
|
2146
2146
|
parentNode: s
|
|
2147
2147
|
}), [
|
|
@@ -2167,7 +2167,7 @@ function jd(t) {
|
|
|
2167
2167
|
tabbable: l,
|
|
2168
2168
|
accept: o
|
|
2169
2169
|
}, n);
|
|
2170
|
-
c.currentNode =
|
|
2170
|
+
c.currentNode = fe(a, n) ? a : u;
|
|
2171
2171
|
let d = c.nextNode();
|
|
2172
2172
|
return !d && i && (c.currentNode = u, d = c.nextNode()), d && Oe(d, !0), d;
|
|
2173
2173
|
},
|
|
@@ -2176,7 +2176,7 @@ function jd(t) {
|
|
|
2176
2176
|
tabbable: l,
|
|
2177
2177
|
accept: o
|
|
2178
2178
|
}, n);
|
|
2179
|
-
c.currentNode =
|
|
2179
|
+
c.currentNode = fe(a, n) ? a : u;
|
|
2180
2180
|
let d = c.previousNode();
|
|
2181
2181
|
return !d && i && (c.currentNode = u, d = c.previousNode()), d && Oe(d, !0), d;
|
|
2182
2182
|
},
|
|
@@ -2221,7 +2221,7 @@ function at(t) {
|
|
|
2221
2221
|
return t[0].parentElement;
|
|
2222
2222
|
}
|
|
2223
2223
|
function Lt(t) {
|
|
2224
|
-
let e =
|
|
2224
|
+
let e = ce.getTreeNode(te);
|
|
2225
2225
|
for (; e && e.scopeRef !== t; ) {
|
|
2226
2226
|
if (e.contain) return !1;
|
|
2227
2227
|
e = e.parent;
|
|
@@ -2240,7 +2240,7 @@ function Wd(t, e) {
|
|
|
2240
2240
|
let o = (s) => {
|
|
2241
2241
|
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !Lt(t) || s.isComposing) return;
|
|
2242
2242
|
let c = i.activeElement, d = t.current;
|
|
2243
|
-
if (!d || !
|
|
2243
|
+
if (!d || !fe(c, d)) return;
|
|
2244
2244
|
let f = at(d), p = $e(f, {
|
|
2245
2245
|
tabbable: !0
|
|
2246
2246
|
}, d);
|
|
@@ -2249,7 +2249,7 @@ function Wd(t, e) {
|
|
|
2249
2249
|
let m = s.shiftKey ? p.previousNode() : p.nextNode();
|
|
2250
2250
|
m || (p.currentNode = s.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, m = s.shiftKey ? p.previousNode() : p.nextNode()), s.preventDefault(), m && Oe(m, !0);
|
|
2251
2251
|
}, a = (s) => {
|
|
2252
|
-
(!te || $n(te, t)) &&
|
|
2252
|
+
(!te || $n(te, t)) && fe(s.target, t.current) ? (te = t, n.current = s.target) : Lt(t) && !yn(s.target, t) ? n.current ? n.current.focus() : te && te.current && yr(te.current) : Lt(t) && (n.current = s.target);
|
|
2253
2253
|
}, u = (s) => {
|
|
2254
2254
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2255
2255
|
if (i.activeElement && Lt(t) && !yn(i.activeElement, t))
|
|
@@ -2274,13 +2274,13 @@ function Wd(t, e) {
|
|
|
2274
2274
|
function Hi(t) {
|
|
2275
2275
|
return yn(t);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function fe(t, e) {
|
|
2278
2278
|
return !t || !e ? !1 : e.some((n) => n.contains(t));
|
|
2279
2279
|
}
|
|
2280
2280
|
function yn(t, e = null) {
|
|
2281
2281
|
if (t instanceof Element && t.closest("[data-react-aria-top-layer]")) return !0;
|
|
2282
|
-
for (let { scopeRef: n } of
|
|
2283
|
-
if (n &&
|
|
2282
|
+
for (let { scopeRef: n } of ce.traverse(ce.getTreeNode(e)))
|
|
2283
|
+
if (n && fe(t, n.current)) return !0;
|
|
2284
2284
|
return !1;
|
|
2285
2285
|
}
|
|
2286
2286
|
function Ud(t) {
|
|
@@ -2288,7 +2288,7 @@ function Ud(t) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
function $n(t, e) {
|
|
2290
2290
|
var n;
|
|
2291
|
-
let r = (n =
|
|
2291
|
+
let r = (n = ce.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
|
|
2292
2292
|
for (; r; ) {
|
|
2293
2293
|
if (r.scopeRef === t) return !0;
|
|
2294
2294
|
r = r.parent;
|
|
@@ -2297,7 +2297,7 @@ function $n(t, e) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
function Oe(t, e = !1) {
|
|
2299
2299
|
if (t != null && !e) try {
|
|
2300
|
-
|
|
2300
|
+
he(t);
|
|
2301
2301
|
} catch {
|
|
2302
2302
|
}
|
|
2303
2303
|
else if (t != null) try {
|
|
@@ -2324,7 +2324,7 @@ function Gd(t, e) {
|
|
|
2324
2324
|
if (n.current) {
|
|
2325
2325
|
te = t;
|
|
2326
2326
|
const r = ne(t.current ? t.current[0] : void 0);
|
|
2327
|
-
!
|
|
2327
|
+
!fe(r.activeElement, te.current) && t.current && yr(t.current);
|
|
2328
2328
|
}
|
|
2329
2329
|
n.current = !1;
|
|
2330
2330
|
}, [
|
|
@@ -2338,7 +2338,7 @@ function Yd(t, e, n) {
|
|
|
2338
2338
|
const l = ne(r ? r[0] : void 0);
|
|
2339
2339
|
let i = (o) => {
|
|
2340
2340
|
let a = o.target;
|
|
2341
|
-
|
|
2341
|
+
fe(a, t.current) ? te = t : Hi(a) || (te = null);
|
|
2342
2342
|
};
|
|
2343
2343
|
return l.addEventListener("focusin", i, !1), r == null || r.forEach((o) => o.addEventListener("focusin", i, !1)), () => {
|
|
2344
2344
|
l.removeEventListener("focusin", i, !1), r == null || r.forEach((o) => o.removeEventListener("focusin", i, !1));
|
|
@@ -2350,7 +2350,7 @@ function Yd(t, e, n) {
|
|
|
2350
2350
|
]);
|
|
2351
2351
|
}
|
|
2352
2352
|
function qd(t) {
|
|
2353
|
-
let e =
|
|
2353
|
+
let e = ce.getTreeNode(te);
|
|
2354
2354
|
for (; e && e.scopeRef !== t; ) {
|
|
2355
2355
|
if (e.nodeToRestore) return !1;
|
|
2356
2356
|
e = e.parent;
|
|
@@ -2364,7 +2364,7 @@ function Xd(t, e, n) {
|
|
|
2364
2364
|
const i = ne(l ? l[0] : void 0);
|
|
2365
2365
|
if (!e || n) return;
|
|
2366
2366
|
let o = () => {
|
|
2367
|
-
(!te || $n(te, t)) &&
|
|
2367
|
+
(!te || $n(te, t)) && fe(i.activeElement, t.current) && (te = t);
|
|
2368
2368
|
};
|
|
2369
2369
|
return i.addEventListener("focusin", o, !1), l == null || l.forEach((a) => a.addEventListener("focusin", o, !1)), () => {
|
|
2370
2370
|
i.removeEventListener("focusin", o, !1), l == null || l.forEach((a) => a.removeEventListener("focusin", o, !1));
|
|
@@ -2378,19 +2378,19 @@ function Xd(t, e, n) {
|
|
|
2378
2378
|
let i = (o) => {
|
|
2379
2379
|
if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey || !Lt(t) || o.isComposing) return;
|
|
2380
2380
|
let a = l.activeElement;
|
|
2381
|
-
if (!
|
|
2382
|
-
let u =
|
|
2381
|
+
if (!fe(a, t.current)) return;
|
|
2382
|
+
let u = ce.getTreeNode(t);
|
|
2383
2383
|
if (!u) return;
|
|
2384
2384
|
let s = u.nodeToRestore, c = $e(l.body, {
|
|
2385
2385
|
tabbable: !0
|
|
2386
2386
|
});
|
|
2387
2387
|
c.currentNode = a;
|
|
2388
2388
|
let d = o.shiftKey ? c.previousNode() : c.nextNode();
|
|
2389
|
-
if ((!s || !l.body.contains(s) || s === l.body) && (s = void 0, u.nodeToRestore = void 0), (!d || !
|
|
2389
|
+
if ((!s || !l.body.contains(s) || s === l.body) && (s = void 0, u.nodeToRestore = void 0), (!d || !fe(d, t.current)) && s) {
|
|
2390
2390
|
c.currentNode = s;
|
|
2391
2391
|
do
|
|
2392
2392
|
d = o.shiftKey ? c.previousNode() : c.nextNode();
|
|
2393
|
-
while (
|
|
2393
|
+
while (fe(d, t.current));
|
|
2394
2394
|
o.preventDefault(), o.stopPropagation(), d ? Oe(d, !0) : Hi(s) ? Oe(s, !0) : a.blur();
|
|
2395
2395
|
}
|
|
2396
2396
|
};
|
|
@@ -2404,16 +2404,16 @@ function Xd(t, e, n) {
|
|
|
2404
2404
|
]), J(() => {
|
|
2405
2405
|
const l = ne(t.current ? t.current[0] : void 0);
|
|
2406
2406
|
if (!e) return;
|
|
2407
|
-
let i =
|
|
2407
|
+
let i = ce.getTreeNode(t);
|
|
2408
2408
|
if (i) {
|
|
2409
2409
|
var o;
|
|
2410
2410
|
return i.nodeToRestore = (o = r.current) !== null && o !== void 0 ? o : void 0, () => {
|
|
2411
|
-
let a =
|
|
2411
|
+
let a = ce.getTreeNode(t);
|
|
2412
2412
|
if (!a) return;
|
|
2413
2413
|
let u = a.nodeToRestore;
|
|
2414
2414
|
if (e && u && // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2415
|
-
(
|
|
2416
|
-
let s =
|
|
2415
|
+
(fe(l.activeElement, t.current) || l.activeElement === l.body && qd(t))) {
|
|
2416
|
+
let s = ce.clone();
|
|
2417
2417
|
requestAnimationFrame(() => {
|
|
2418
2418
|
if (l.activeElement === l.body) {
|
|
2419
2419
|
let c = s.getTreeNode(t);
|
|
@@ -2425,7 +2425,7 @@ function Xd(t, e, n) {
|
|
|
2425
2425
|
c = c.parent;
|
|
2426
2426
|
}
|
|
2427
2427
|
for (c = s.getTreeNode(t); c; ) {
|
|
2428
|
-
if (c.scopeRef && c.scopeRef.current &&
|
|
2428
|
+
if (c.scopeRef && c.scopeRef.current && ce.getTreeNode(c.scopeRef)) {
|
|
2429
2429
|
let d = Wi(c.scopeRef.current, !0);
|
|
2430
2430
|
_l(d);
|
|
2431
2431
|
return;
|
|
@@ -2452,7 +2452,7 @@ function $e(t, e, n) {
|
|
|
2452
2452
|
let r = e != null && e.tabbable ? Hd : Vd, l = ne(t).createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
|
|
2453
2453
|
acceptNode(i) {
|
|
2454
2454
|
var o;
|
|
2455
|
-
return !(e == null || (o = e.from) === null || o === void 0) && o.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Vi(i) && (!n ||
|
|
2455
|
+
return !(e == null || (o = e.from) === null || o === void 0) && o.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Vi(i) && (!n || fe(i, n)) && (!(e != null && e.accept) || e.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
2456
2456
|
}
|
|
2457
2457
|
});
|
|
2458
2458
|
return e != null && e.from && (l.currentNode = e.from), l;
|
|
@@ -2480,7 +2480,7 @@ class Hr {
|
|
|
2480
2480
|
let n = this.fastMap.get(e);
|
|
2481
2481
|
if (!n) return;
|
|
2482
2482
|
let r = n.parent;
|
|
2483
|
-
for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current &&
|
|
2483
|
+
for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current && fe(i.nodeToRestore, n.scopeRef.current) && (i.nodeToRestore = n.nodeToRestore);
|
|
2484
2484
|
let l = n.children;
|
|
2485
2485
|
r && (r.removeChild(n), l.size > 0 && l.forEach((i) => r && r.addChild(i))), this.fastMap.delete(n.scopeRef);
|
|
2486
2486
|
}
|
|
@@ -2512,7 +2512,7 @@ class $r {
|
|
|
2512
2512
|
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
|
-
let
|
|
2515
|
+
let ce = new Hr();
|
|
2516
2516
|
function Xt(t = {}) {
|
|
2517
2517
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = M({
|
|
2518
2518
|
isFocused: !1,
|
|
@@ -2558,13 +2558,13 @@ function Jd(t, e) {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
let Qd = /* @__PURE__ */ A.forwardRef(Jd);
|
|
2560
2560
|
function Tt(t, e) {
|
|
2561
|
-
let { focusProps: n } = An(t), { keyboardProps: r } = zi(t), l =
|
|
2561
|
+
let { focusProps: n } = An(t), { keyboardProps: r } = zi(t), l = W(n, r), i = Zd(e), o = t.isDisabled ? {} : i, a = M(t.autoFocus);
|
|
2562
2562
|
return L(() => {
|
|
2563
|
-
a.current && e.current &&
|
|
2563
|
+
a.current && e.current && he(e.current), a.current = !1;
|
|
2564
2564
|
}, [
|
|
2565
2565
|
e
|
|
2566
2566
|
]), {
|
|
2567
|
-
focusableProps:
|
|
2567
|
+
focusableProps: W({
|
|
2568
2568
|
...l,
|
|
2569
2569
|
tabIndex: t.excludeFromTabOrder && !t.isDisabled ? -1 : void 0
|
|
2570
2570
|
}, o)
|
|
@@ -2756,7 +2756,7 @@ function vf(t, e) {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
function ft(t, e) {
|
|
2758
2758
|
let { locale: n } = He(), r = vf(t, e);
|
|
2759
|
-
return
|
|
2759
|
+
return H(() => new ff(n, r), [
|
|
2760
2760
|
n,
|
|
2761
2761
|
r
|
|
2762
2762
|
]);
|
|
@@ -2799,7 +2799,7 @@ function Fn(t, e) {
|
|
|
2799
2799
|
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
2800
2800
|
rel: n === "a" ? m : void 0
|
|
2801
2801
|
};
|
|
2802
|
-
let { pressProps: C, isPressed:
|
|
2802
|
+
let { pressProps: C, isPressed: x } = ze({
|
|
2803
2803
|
onPressStart: i,
|
|
2804
2804
|
onPressEnd: o,
|
|
2805
2805
|
onPressChange: u,
|
|
@@ -2810,12 +2810,12 @@ function Fn(t, e) {
|
|
|
2810
2810
|
ref: e
|
|
2811
2811
|
}), { focusableProps: $ } = Tt(t, e);
|
|
2812
2812
|
c && ($.tabIndex = r ? -1 : $.tabIndex);
|
|
2813
|
-
let
|
|
2813
|
+
let T = W($, C, pe(t, {
|
|
2814
2814
|
labelable: !0
|
|
2815
2815
|
}));
|
|
2816
2816
|
return {
|
|
2817
|
-
isPressed:
|
|
2818
|
-
buttonProps:
|
|
2817
|
+
isPressed: x,
|
|
2818
|
+
buttonProps: W(g, T, {
|
|
2819
2819
|
"aria-haspopup": t["aria-haspopup"],
|
|
2820
2820
|
"aria-expanded": t["aria-expanded"],
|
|
2821
2821
|
"aria-controls": t["aria-controls"],
|
|
@@ -2879,9 +2879,9 @@ function Wr(t, e, n) {
|
|
|
2879
2879
|
n.current.setCustomValidity(u), n.current.hasAttribute("title") || (n.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(bf(n.current));
|
|
2880
2880
|
}
|
|
2881
2881
|
});
|
|
2882
|
-
let i =
|
|
2882
|
+
let i = ae(() => {
|
|
2883
2883
|
e.resetValidation();
|
|
2884
|
-
}), o =
|
|
2884
|
+
}), o = ae((u) => {
|
|
2885
2885
|
var s;
|
|
2886
2886
|
e.displayValidation.isInvalid || e.commitValidation();
|
|
2887
2887
|
let c = n == null || (s = n.current) === null || s === void 0 ? void 0 : s.form;
|
|
@@ -2890,7 +2890,7 @@ function Wr(t, e, n) {
|
|
|
2890
2890
|
l ? l() : (d = n.current) === null || d === void 0 || d.focus(), Ni("keyboard");
|
|
2891
2891
|
}
|
|
2892
2892
|
u.preventDefault();
|
|
2893
|
-
}), a =
|
|
2893
|
+
}), a = ae(() => {
|
|
2894
2894
|
e.commitValidation();
|
|
2895
2895
|
});
|
|
2896
2896
|
L(() => {
|
|
@@ -2981,34 +2981,34 @@ function $f(t) {
|
|
|
2981
2981
|
isInvalid: e,
|
|
2982
2982
|
validationErrors: [],
|
|
2983
2983
|
validationDetails: Xi
|
|
2984
|
-
} : null, s =
|
|
2984
|
+
} : null, s = H(() => jl(xf(o, l)), [
|
|
2985
2985
|
o,
|
|
2986
2986
|
l
|
|
2987
2987
|
]);
|
|
2988
2988
|
i != null && i.validationDetails.valid && (i = null);
|
|
2989
|
-
let c = Y(yf), d =
|
|
2989
|
+
let c = Y(yf), d = H(() => r ? Array.isArray(r) ? r.flatMap((E) => Er(c[E])) : Er(c[r]) : [], [
|
|
2990
2990
|
c,
|
|
2991
2991
|
r
|
|
2992
2992
|
]), [f, p] = z(c), [m, y] = z(!1);
|
|
2993
2993
|
c !== f && (p(c), y(!1));
|
|
2994
|
-
let g =
|
|
2994
|
+
let g = H(() => jl(m ? [] : d), [
|
|
2995
2995
|
m,
|
|
2996
2996
|
d
|
|
2997
|
-
]), C = M(Ft), [
|
|
2998
|
-
if (!
|
|
2997
|
+
]), C = M(Ft), [x, $] = z(Ft), T = M(Ft), w = () => {
|
|
2998
|
+
if (!P) return;
|
|
2999
2999
|
R(!1);
|
|
3000
|
-
let
|
|
3001
|
-
er(
|
|
3002
|
-
}, [
|
|
3000
|
+
let E = s || i || C.current;
|
|
3001
|
+
er(E, T.current) || (T.current = E, $(E));
|
|
3002
|
+
}, [P, R] = z(!1);
|
|
3003
3003
|
return L(w), {
|
|
3004
3004
|
realtimeValidation: u || g || s || i || Ft,
|
|
3005
|
-
displayValidation: a === "native" ? u || g ||
|
|
3006
|
-
updateValidation(
|
|
3007
|
-
a === "aria" && !er(
|
|
3005
|
+
displayValidation: a === "native" ? u || g || x : u || g || s || i || x,
|
|
3006
|
+
updateValidation(E) {
|
|
3007
|
+
a === "aria" && !er(x, E) ? $(E) : C.current = E;
|
|
3008
3008
|
},
|
|
3009
3009
|
resetValidation() {
|
|
3010
|
-
let
|
|
3011
|
-
er(
|
|
3010
|
+
let E = Ft;
|
|
3011
|
+
er(E, T.current) || (T.current = E, $(E)), a === "native" && R(!1), y(!0);
|
|
3012
3012
|
},
|
|
3013
3013
|
commitValidation() {
|
|
3014
3014
|
a === "native" && R(!0), y(!0);
|
|
@@ -3038,25 +3038,25 @@ function er(t, e) {
|
|
|
3038
3038
|
return t === e ? !0 : t && e && t.isInvalid === e.isInvalid && t.validationErrors.length === e.validationErrors.length && t.validationErrors.every((n, r) => n === e.validationErrors[r]) && Object.entries(t.validationDetails).every(([n, r]) => e.validationDetails[n] === r);
|
|
3039
3039
|
}
|
|
3040
3040
|
function Ef(t, e, n) {
|
|
3041
|
-
let { isDisabled: r = !1, isReadOnly: l = !1, value: i, name: o, children: a, "aria-label": u, "aria-labelledby": s, validationState: c = "valid", isInvalid: d } = t, f = (
|
|
3042
|
-
|
|
3041
|
+
let { isDisabled: r = !1, isReadOnly: l = !1, value: i, name: o, children: a, "aria-label": u, "aria-labelledby": s, validationState: c = "valid", isInvalid: d } = t, f = (P) => {
|
|
3042
|
+
P.stopPropagation(), e.setSelected(P.target.checked);
|
|
3043
3043
|
}, p = a != null, m = u != null || s != null;
|
|
3044
3044
|
!p && !m && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
3045
3045
|
let { pressProps: y, isPressed: g } = ze({
|
|
3046
3046
|
isDisabled: r
|
|
3047
|
-
}), { pressProps: C, isPressed:
|
|
3047
|
+
}), { pressProps: C, isPressed: x } = ze({
|
|
3048
3048
|
isDisabled: r || l,
|
|
3049
3049
|
onPress() {
|
|
3050
3050
|
e.toggle();
|
|
3051
3051
|
}
|
|
3052
|
-
}), { focusableProps: $ } = Tt(t, n),
|
|
3052
|
+
}), { focusableProps: $ } = Tt(t, n), T = W(y, $), w = pe(t, {
|
|
3053
3053
|
labelable: !0
|
|
3054
3054
|
});
|
|
3055
3055
|
return Tn(n, e.isSelected, e.setSelected), {
|
|
3056
|
-
labelProps:
|
|
3057
|
-
onClick: (
|
|
3056
|
+
labelProps: W(C, {
|
|
3057
|
+
onClick: (P) => P.preventDefault()
|
|
3058
3058
|
}),
|
|
3059
|
-
inputProps:
|
|
3059
|
+
inputProps: W(w, {
|
|
3060
3060
|
"aria-invalid": d || c === "invalid" || void 0,
|
|
3061
3061
|
"aria-errormessage": t["aria-errormessage"],
|
|
3062
3062
|
"aria-controls": t["aria-controls"],
|
|
@@ -3068,10 +3068,10 @@ function Ef(t, e, n) {
|
|
|
3068
3068
|
},
|
|
3069
3069
|
name: o,
|
|
3070
3070
|
type: "checkbox",
|
|
3071
|
-
...
|
|
3071
|
+
...T
|
|
3072
3072
|
}),
|
|
3073
3073
|
isSelected: e.isSelected,
|
|
3074
|
-
isPressed: g ||
|
|
3074
|
+
isPressed: g || x,
|
|
3075
3075
|
isDisabled: r,
|
|
3076
3076
|
isReadOnly: l,
|
|
3077
3077
|
isInvalid: d || c === "invalid"
|
|
@@ -3079,8 +3079,8 @@ function Ef(t, e, n) {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
function Zi(t) {
|
|
3081
3081
|
let { id: e, label: n, "aria-labelledby": r, "aria-label": l, labelElementType: i = "label" } = t;
|
|
3082
|
-
e =
|
|
3083
|
-
let o =
|
|
3082
|
+
e = me(e);
|
|
3083
|
+
let o = me(), a = {};
|
|
3084
3084
|
n ? (r = r ? `${o} ${r}` : o, a = {
|
|
3085
3085
|
id: o,
|
|
3086
3086
|
htmlFor: i === "label" ? e : void 0
|
|
@@ -3107,7 +3107,7 @@ function Gr(t) {
|
|
|
3107
3107
|
r,
|
|
3108
3108
|
l
|
|
3109
3109
|
]);
|
|
3110
|
-
return o =
|
|
3110
|
+
return o = W(o, {
|
|
3111
3111
|
"aria-describedby": [
|
|
3112
3112
|
a,
|
|
3113
3113
|
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
@@ -3155,7 +3155,7 @@ function Ji(t = {}) {
|
|
|
3155
3155
|
let { style: e, isFocusable: n } = t, [r, l] = z(!1), { focusWithinProps: i } = qt({
|
|
3156
3156
|
isDisabled: !n,
|
|
3157
3157
|
onFocusWithinChange: (a) => l(a)
|
|
3158
|
-
}), o =
|
|
3158
|
+
}), o = H(() => r ? e : e ? {
|
|
3159
3159
|
...Vl,
|
|
3160
3160
|
...e
|
|
3161
3161
|
} : Vl, [
|
|
@@ -3170,20 +3170,20 @@ function Ji(t = {}) {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
function Yr(t) {
|
|
3172
3172
|
let { children: e, elementType: n = "div", isFocusable: r, style: l, ...i } = t, { visuallyHiddenProps: o } = Ji(t);
|
|
3173
|
-
return /* @__PURE__ */ A.createElement(n,
|
|
3173
|
+
return /* @__PURE__ */ A.createElement(n, W(i, o), e);
|
|
3174
3174
|
}
|
|
3175
3175
|
function Qi(t, e) {
|
|
3176
3176
|
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: l = !1, isReadOnly: i = !1, type: o = "text", validationBehavior: a = "aria" } = t, [u, s] = rt(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Tt(t, e), d = Ur({
|
|
3177
3177
|
...t,
|
|
3178
3178
|
value: u
|
|
3179
|
-
}), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: y, fieldProps: g, descriptionProps: C, errorMessageProps:
|
|
3179
|
+
}), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: y, fieldProps: g, descriptionProps: C, errorMessageProps: x } = Gr({
|
|
3180
3180
|
...t,
|
|
3181
3181
|
isInvalid: f,
|
|
3182
3182
|
errorMessage: t.errorMessage || p
|
|
3183
|
-
}), $ =
|
|
3183
|
+
}), $ = pe(t, {
|
|
3184
3184
|
labelable: !0
|
|
3185
3185
|
});
|
|
3186
|
-
const
|
|
3186
|
+
const T = {
|
|
3187
3187
|
type: o,
|
|
3188
3188
|
pattern: t.pattern
|
|
3189
3189
|
};
|
|
@@ -3201,7 +3201,7 @@ function Qi(t, e) {
|
|
|
3201
3201
|
e
|
|
3202
3202
|
]), {
|
|
3203
3203
|
labelProps: y,
|
|
3204
|
-
inputProps:
|
|
3204
|
+
inputProps: W($, n === "input" ? T : void 0, {
|
|
3205
3205
|
disabled: r,
|
|
3206
3206
|
readOnly: i,
|
|
3207
3207
|
required: l && a === "native",
|
|
@@ -3237,7 +3237,7 @@ function Qi(t, e) {
|
|
|
3237
3237
|
...g
|
|
3238
3238
|
}),
|
|
3239
3239
|
descriptionProps: C,
|
|
3240
|
-
errorMessageProps:
|
|
3240
|
+
errorMessageProps: x,
|
|
3241
3241
|
isInvalid: f,
|
|
3242
3242
|
validationErrors: p,
|
|
3243
3243
|
validationDetails: m
|
|
@@ -3263,19 +3263,19 @@ const Me = {
|
|
|
3263
3263
|
width: "totalWidth",
|
|
3264
3264
|
height: "totalHeight"
|
|
3265
3265
|
}, cn = {};
|
|
3266
|
-
let
|
|
3266
|
+
let ge = typeof document < "u" && window.visualViewport;
|
|
3267
3267
|
function Hl(t) {
|
|
3268
|
-
let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = (
|
|
3268
|
+
let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = (ge == null ? void 0 : ge.scale) > 1;
|
|
3269
3269
|
if (t.tagName === "BODY") {
|
|
3270
3270
|
let d = document.documentElement;
|
|
3271
3271
|
r = d.clientWidth, l = d.clientHeight;
|
|
3272
3272
|
var s;
|
|
3273
|
-
e = (s =
|
|
3273
|
+
e = (s = ge == null ? void 0 : ge.width) !== null && s !== void 0 ? s : r;
|
|
3274
3274
|
var c;
|
|
3275
|
-
n = (c =
|
|
3275
|
+
n = (c = ge == null ? void 0 : ge.height) !== null && c !== void 0 ? c : l, a.top = d.scrollTop || t.scrollTop, a.left = d.scrollLeft || t.scrollLeft, ge && (i = ge.offsetTop, o = ge.offsetLeft);
|
|
3276
3276
|
} else
|
|
3277
3277
|
({ width: e, height: n, top: i, left: o } = Dt(t)), a.top = t.scrollTop, a.left = t.scrollLeft, r = e, l = n;
|
|
3278
|
-
return Or() && (t.tagName === "BODY" || t.tagName === "HTML") && u && (a.top = 0, a.left = 0, i =
|
|
3278
|
+
return Or() && (t.tagName === "BODY" || t.tagName === "HTML") && u && (a.top = 0, a.left = 0, i = ge.pageTop, o = ge.pageLeft), {
|
|
3279
3279
|
width: e,
|
|
3280
3280
|
height: n,
|
|
3281
3281
|
totalWidth: r,
|
|
@@ -3323,8 +3323,8 @@ function Ul(t) {
|
|
|
3323
3323
|
function tr(t, e, n, r, l, i, o, a, u, s) {
|
|
3324
3324
|
let { placement: c, crossPlacement: d, axis: f, crossAxis: p, size: m, crossSize: y } = r, g = {};
|
|
3325
3325
|
g[p] = t[p], d === "center" ? g[p] += (t[y] - n[y]) / 2 : d !== p && (g[p] += t[y] - n[y]), g[p] += i;
|
|
3326
|
-
const C = t[p] - n[y] + u + s,
|
|
3327
|
-
if (g[p] = vr(g[p], C,
|
|
3326
|
+
const C = t[p] - n[y] + u + s, x = t[p] + t[y] - u - s;
|
|
3327
|
+
if (g[p] = vr(g[p], C, x), c === f) {
|
|
3328
3328
|
const $ = a ? o[m] : e[eo[m]];
|
|
3329
3329
|
g[En[f]] = Math.floor($ - t[f] + l);
|
|
3330
3330
|
} else g[f] = Math.floor(t[f] + t[m] + l);
|
|
@@ -3343,24 +3343,24 @@ function Gl(t, e, n, r, l, i) {
|
|
|
3343
3343
|
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[En[a]] - l) : Math.max(0, t[u] + t[a] + t.scroll[a] - e[a] - n[a] - n[u] - r[a] - r[En[a]] - l);
|
|
3344
3344
|
}
|
|
3345
3345
|
function kf(t, e, n, r, l, i, o, a, u, s, c, d, f, p, m, y) {
|
|
3346
|
-
let g = Ul(t), { size: C, crossAxis:
|
|
3346
|
+
let g = Ul(t), { size: C, crossAxis: x, crossSize: $, placement: T, crossPlacement: w } = g, P = tr(e, a, n, g, c, d, s, f, m, y), R = c, v = Gl(a, s, e, l, i + c, g);
|
|
3347
3347
|
if (o && r[C] > v) {
|
|
3348
|
-
let xe = Ul(`${En[
|
|
3349
|
-
Gl(a, s, e, l, i + c, xe) > v && (g = xe,
|
|
3348
|
+
let xe = Ul(`${En[T]} ${w}`), Be = tr(e, a, n, xe, c, d, s, f, m, y);
|
|
3349
|
+
Gl(a, s, e, l, i + c, xe) > v && (g = xe, P = Be, R = c);
|
|
3350
3350
|
}
|
|
3351
3351
|
let B = "bottom";
|
|
3352
3352
|
g.axis === "top" ? g.placement === "top" ? B = "top" : g.placement === "bottom" && (B = "bottom") : g.crossAxis === "top" && (g.crossPlacement === "top" ? B = "bottom" : g.crossPlacement === "bottom" && (B = "top"));
|
|
3353
|
-
let
|
|
3354
|
-
|
|
3355
|
-
let
|
|
3356
|
-
p && p <
|
|
3357
|
-
let
|
|
3358
|
-
const F = m / 2 + y,
|
|
3359
|
-
return
|
|
3360
|
-
position:
|
|
3361
|
-
maxHeight:
|
|
3362
|
-
arrowOffsetLeft:
|
|
3363
|
-
arrowOffsetTop:
|
|
3353
|
+
let E = Wl(x, P[x], n[$], a, u, i, s);
|
|
3354
|
+
P[x] += E;
|
|
3355
|
+
let D = Df(P, a, s, f, l, i, n.height, B);
|
|
3356
|
+
p && p < D && (D = p), n.height = Math.min(n.height, D), P = tr(e, a, n, g, R, d, s, f, m, y), E = Wl(x, P[x], n[$], a, u, i, s), P[x] += E;
|
|
3357
|
+
let N = {}, S = e[x] + 0.5 * e[$] - P[x] - l[Me[x]];
|
|
3358
|
+
const F = m / 2 + y, k = Me[x] === "left" ? l.left + l.right : l.top + l.bottom, V = n[$] - k - m / 2 - y, I = e[x] + m / 2 - (P[x] + l[Me[x]]), re = e[x] + e[$] - m / 2 - (P[x] + l[Me[x]]), de = vr(S, I, re);
|
|
3359
|
+
return N[x] = vr(de, F, V), {
|
|
3360
|
+
position: P,
|
|
3361
|
+
maxHeight: D,
|
|
3362
|
+
arrowOffsetLeft: N.left,
|
|
3363
|
+
arrowOffsetTop: N.top,
|
|
3364
3364
|
placement: g.placement
|
|
3365
3365
|
};
|
|
3366
3366
|
}
|
|
@@ -3372,10 +3372,10 @@ function Tf(t) {
|
|
|
3372
3372
|
let { marginTop: v, marginLeft: B } = window.getComputedStyle(n);
|
|
3373
3373
|
C.top += parseInt(v, 10) || 0, C.left += parseInt(B, 10) || 0;
|
|
3374
3374
|
}
|
|
3375
|
-
let
|
|
3376
|
-
|
|
3377
|
-
let
|
|
3378
|
-
return p.tagName === "HTML" && a.tagName === "BODY" && (
|
|
3375
|
+
let x = Dt(r), $ = Pf(r);
|
|
3376
|
+
x.width += $.left + $.right, x.height += $.top + $.bottom;
|
|
3377
|
+
let T = wf(l), w = Hl(a), P = Hl(p), R = a.tagName === "BODY" ? Dt(p) : Yl(p, a);
|
|
3378
|
+
return p.tagName === "HTML" && a.tagName === "BODY" && (P.scroll.top = 0, P.scroll.left = 0), kf(e, C, x, T, $, i, o, w, P, R, u, s, g, c, d, f);
|
|
3379
3379
|
}
|
|
3380
3380
|
function Dt(t) {
|
|
3381
3381
|
let { top: e, left: n, width: r, height: l } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: o, clientTop: a, clientLeft: u } = document.documentElement;
|
|
@@ -3435,9 +3435,9 @@ function Bf(t) {
|
|
|
3435
3435
|
e
|
|
3436
3436
|
]);
|
|
3437
3437
|
}
|
|
3438
|
-
let
|
|
3438
|
+
let oe = typeof document < "u" && window.visualViewport;
|
|
3439
3439
|
function no(t) {
|
|
3440
|
-
let { direction: e } = He(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: a = 12, shouldFlip: u = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: m, maxHeight: y, arrowBoundaryOffset: g = 0 } = t, [C,
|
|
3440
|
+
let { direction: e } = He(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: a = 12, shouldFlip: u = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: m, maxHeight: y, arrowBoundaryOffset: g = 0 } = t, [C, x] = z({
|
|
3441
3441
|
position: {},
|
|
3442
3442
|
arrowOffsetLeft: void 0,
|
|
3443
3443
|
arrowOffsetTop: void 0,
|
|
@@ -3459,30 +3459,30 @@ function no(t) {
|
|
|
3459
3459
|
y,
|
|
3460
3460
|
g,
|
|
3461
3461
|
n
|
|
3462
|
-
],
|
|
3462
|
+
], T = M(oe == null ? void 0 : oe.scale);
|
|
3463
3463
|
L(() => {
|
|
3464
|
-
p && (
|
|
3464
|
+
p && (T.current = oe == null ? void 0 : oe.scale);
|
|
3465
3465
|
}, [
|
|
3466
3466
|
p
|
|
3467
3467
|
]);
|
|
3468
3468
|
let w = X(() => {
|
|
3469
|
-
if (f === !1 || !p || !l.current || !r.current || !s || (
|
|
3469
|
+
if (f === !1 || !p || !l.current || !r.current || !s || (oe == null ? void 0 : oe.scale) !== T.current) return;
|
|
3470
3470
|
let B = null;
|
|
3471
3471
|
if (i.current && i.current.contains(document.activeElement)) {
|
|
3472
|
-
let F = document.activeElement.getBoundingClientRect(),
|
|
3472
|
+
let F = document.activeElement.getBoundingClientRect(), k = i.current.getBoundingClientRect();
|
|
3473
3473
|
B = {
|
|
3474
3474
|
type: "top",
|
|
3475
|
-
offset: F.top -
|
|
3476
|
-
}, B.offset >
|
|
3475
|
+
offset: F.top - k.top
|
|
3476
|
+
}, B.offset > k.height / 2 && (B.type = "bottom", B.offset = F.bottom - k.bottom);
|
|
3477
3477
|
}
|
|
3478
|
-
let
|
|
3478
|
+
let E = l.current;
|
|
3479
3479
|
if (!y && l.current) {
|
|
3480
|
-
var
|
|
3481
|
-
|
|
3482
|
-
var
|
|
3483
|
-
|
|
3480
|
+
var D;
|
|
3481
|
+
E.style.top = "0px", E.style.bottom = "";
|
|
3482
|
+
var N;
|
|
3483
|
+
E.style.maxHeight = ((N = (D = window.visualViewport) === null || D === void 0 ? void 0 : D.height) !== null && N !== void 0 ? N : window.innerHeight) + "px";
|
|
3484
3484
|
}
|
|
3485
|
-
let
|
|
3485
|
+
let S = Tf({
|
|
3486
3486
|
placement: Mf(o, e),
|
|
3487
3487
|
overlayNode: l.current,
|
|
3488
3488
|
targetNode: r.current,
|
|
@@ -3496,11 +3496,11 @@ function no(t) {
|
|
|
3496
3496
|
arrowSize: n,
|
|
3497
3497
|
arrowBoundaryOffset: g
|
|
3498
3498
|
});
|
|
3499
|
-
if (
|
|
3500
|
-
let F = document.activeElement.getBoundingClientRect(),
|
|
3501
|
-
i.current.scrollTop +=
|
|
3499
|
+
if (E.style.top = "", E.style.bottom = "", E.style.left = "", E.style.right = "", Object.keys(S.position).forEach((F) => E.style[F] = S.position[F] + "px"), E.style.maxHeight = S.maxHeight != null ? S.maxHeight + "px" : void 0, B) {
|
|
3500
|
+
let F = document.activeElement.getBoundingClientRect(), k = i.current.getBoundingClientRect(), V = F[B.type] - k[B.type];
|
|
3501
|
+
i.current.scrollTop += V - B.offset;
|
|
3502
3502
|
}
|
|
3503
|
-
|
|
3503
|
+
x(S);
|
|
3504
3504
|
}, $);
|
|
3505
3505
|
J(w, $), Kf(w), fr({
|
|
3506
3506
|
ref: l,
|
|
@@ -3509,26 +3509,26 @@ function no(t) {
|
|
|
3509
3509
|
ref: r,
|
|
3510
3510
|
onResize: w
|
|
3511
3511
|
});
|
|
3512
|
-
let
|
|
3512
|
+
let P = M(!1);
|
|
3513
3513
|
J(() => {
|
|
3514
|
-
let B,
|
|
3515
|
-
|
|
3516
|
-
|
|
3514
|
+
let B, E = () => {
|
|
3515
|
+
P.current = !0, clearTimeout(B), B = setTimeout(() => {
|
|
3516
|
+
P.current = !1;
|
|
3517
3517
|
}, 500), w();
|
|
3518
|
-
},
|
|
3519
|
-
|
|
3518
|
+
}, D = () => {
|
|
3519
|
+
P.current && E();
|
|
3520
3520
|
};
|
|
3521
|
-
return
|
|
3522
|
-
|
|
3521
|
+
return oe == null || oe.addEventListener("resize", E), oe == null || oe.addEventListener("scroll", D), () => {
|
|
3522
|
+
oe == null || oe.removeEventListener("resize", E), oe == null || oe.removeEventListener("scroll", D);
|
|
3523
3523
|
};
|
|
3524
3524
|
}, [
|
|
3525
3525
|
w
|
|
3526
3526
|
]);
|
|
3527
3527
|
let R = X(() => {
|
|
3528
|
-
|
|
3528
|
+
P.current || m();
|
|
3529
3529
|
}, [
|
|
3530
3530
|
m,
|
|
3531
|
-
|
|
3531
|
+
P
|
|
3532
3532
|
]);
|
|
3533
3533
|
Bf({
|
|
3534
3534
|
triggerRef: r,
|
|
@@ -3616,7 +3616,7 @@ function ro(t, e, n) {
|
|
|
3616
3616
|
});
|
|
3617
3617
|
let i;
|
|
3618
3618
|
r === "menu" ? i = !0 : r === "listbox" && (i = "listbox");
|
|
3619
|
-
let o =
|
|
3619
|
+
let o = me();
|
|
3620
3620
|
return {
|
|
3621
3621
|
triggerProps: {
|
|
3622
3622
|
"aria-haspopup": i,
|
|
@@ -3727,7 +3727,7 @@ function Zl(t) {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
const Cr = /* @__PURE__ */ A.createContext(null);
|
|
3729
3729
|
function Lf(t) {
|
|
3730
|
-
let { children: e } = t, n = Y(Cr), [r, l] = z(0), i =
|
|
3730
|
+
let { children: e } = t, n = Y(Cr), [r, l] = z(0), i = H(() => ({
|
|
3731
3731
|
parent: n,
|
|
3732
3732
|
modalCount: r,
|
|
3733
3733
|
addModal() {
|
|
@@ -4047,7 +4047,7 @@ function Gf(t, e) {
|
|
|
4047
4047
|
e.isOpen,
|
|
4048
4048
|
r
|
|
4049
4049
|
]), {
|
|
4050
|
-
popoverProps:
|
|
4050
|
+
popoverProps: W(u, c),
|
|
4051
4051
|
arrowProps: d,
|
|
4052
4052
|
underlayProps: s,
|
|
4053
4053
|
placement: f
|
|
@@ -4060,7 +4060,7 @@ function qf() {
|
|
|
4060
4060
|
}
|
|
4061
4061
|
const Oo = /* @__PURE__ */ A.createContext(null);
|
|
4062
4062
|
function Xf(t) {
|
|
4063
|
-
let e = nt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = z(!1), o =
|
|
4063
|
+
let e = nt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = z(!1), o = H(() => ({
|
|
4064
4064
|
contain: l,
|
|
4065
4065
|
setContain: i
|
|
4066
4066
|
}), [
|
|
@@ -4125,86 +4125,86 @@ function tp(t) {
|
|
|
4125
4125
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
4126
4126
|
}
|
|
4127
4127
|
function jo(t) {
|
|
4128
|
-
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: y } = He(), g = Yt(), C = (
|
|
4129
|
-
if (
|
|
4130
|
-
const
|
|
4128
|
+
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: y } = He(), g = Yt(), C = (E) => {
|
|
4129
|
+
if (E.altKey && E.key === "Tab" && E.preventDefault(), !r.current.contains(E.target)) return;
|
|
4130
|
+
const D = (O, ke) => {
|
|
4131
4131
|
if (O != null) {
|
|
4132
|
-
if (e.isLink(O) && m === "selection" && u && !wr(
|
|
4132
|
+
if (e.isLink(O) && m === "selection" && u && !wr(E)) {
|
|
4133
4133
|
Fc(() => {
|
|
4134
4134
|
e.setFocusedKey(O, ke);
|
|
4135
4135
|
});
|
|
4136
4136
|
let Se = p.current.querySelector(`[data-key="${CSS.escape(O.toString())}"]`), Ge = e.getItemProps(O);
|
|
4137
|
-
g.open(Se,
|
|
4137
|
+
g.open(Se, E, Ge.href, Ge.routerOptions);
|
|
4138
4138
|
return;
|
|
4139
4139
|
}
|
|
4140
4140
|
if (e.setFocusedKey(O, ke), e.isLink(O) && m === "override") return;
|
|
4141
|
-
|
|
4141
|
+
E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && !wr(E) && e.replaceSelection(O);
|
|
4142
4142
|
}
|
|
4143
4143
|
};
|
|
4144
|
-
switch (
|
|
4144
|
+
switch (E.key) {
|
|
4145
4145
|
case "ArrowDown":
|
|
4146
4146
|
if (n.getKeyBelow) {
|
|
4147
|
-
var
|
|
4148
|
-
let O = e.focusedKey != null ? (
|
|
4149
|
-
O == null && i && (O = (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), O != null && (
|
|
4147
|
+
var N, S, F;
|
|
4148
|
+
let O = e.focusedKey != null ? (N = n.getKeyBelow) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey) : (S = n.getFirstKey) === null || S === void 0 ? void 0 : S.call(n);
|
|
4149
|
+
O == null && i && (O = (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O));
|
|
4150
4150
|
}
|
|
4151
4151
|
break;
|
|
4152
4152
|
case "ArrowUp":
|
|
4153
4153
|
if (n.getKeyAbove) {
|
|
4154
|
-
var
|
|
4155
|
-
let O = e.focusedKey != null ? (
|
|
4156
|
-
O == null && i && (O = (
|
|
4154
|
+
var k, V, I;
|
|
4155
|
+
let O = e.focusedKey != null ? (k = n.getKeyAbove) === null || k === void 0 ? void 0 : k.call(n, e.focusedKey) : (V = n.getLastKey) === null || V === void 0 ? void 0 : V.call(n);
|
|
4156
|
+
O == null && i && (O = (I = n.getLastKey) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O));
|
|
4157
4157
|
}
|
|
4158
4158
|
break;
|
|
4159
4159
|
case "ArrowLeft":
|
|
4160
4160
|
if (n.getKeyLeftOf) {
|
|
4161
|
-
var
|
|
4162
|
-
let O = (
|
|
4163
|
-
O == null && i && (O = y === "rtl" ? (
|
|
4161
|
+
var re, de, xe;
|
|
4162
|
+
let O = (re = n.getKeyLeftOf) === null || re === void 0 ? void 0 : re.call(n, e.focusedKey);
|
|
4163
|
+
O == null && i && (O = y === "rtl" ? (de = n.getFirstKey) === null || de === void 0 ? void 0 : de.call(n, e.focusedKey) : (xe = n.getLastKey) === null || xe === void 0 ? void 0 : xe.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O, y === "rtl" ? "first" : "last"));
|
|
4164
4164
|
}
|
|
4165
4165
|
break;
|
|
4166
4166
|
case "ArrowRight":
|
|
4167
4167
|
if (n.getKeyRightOf) {
|
|
4168
4168
|
var Be, Ee, Ue;
|
|
4169
4169
|
let O = (Be = n.getKeyRightOf) === null || Be === void 0 ? void 0 : Be.call(n, e.focusedKey);
|
|
4170
|
-
O == null && i && (O = y === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (
|
|
4170
|
+
O == null && i && (O = y === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (E.preventDefault(), D(O, y === "rtl" ? "last" : "first"));
|
|
4171
4171
|
}
|
|
4172
4172
|
break;
|
|
4173
4173
|
case "Home":
|
|
4174
4174
|
if (n.getFirstKey) {
|
|
4175
|
-
|
|
4176
|
-
let O = n.getFirstKey(e.focusedKey, St(
|
|
4177
|
-
e.setFocusedKey(O), St(
|
|
4175
|
+
E.preventDefault();
|
|
4176
|
+
let O = n.getFirstKey(e.focusedKey, St(E));
|
|
4177
|
+
e.setFocusedKey(O), St(E) && E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4178
4178
|
}
|
|
4179
4179
|
break;
|
|
4180
4180
|
case "End":
|
|
4181
4181
|
if (n.getLastKey) {
|
|
4182
|
-
|
|
4183
|
-
let O = n.getLastKey(e.focusedKey, St(
|
|
4184
|
-
e.setFocusedKey(O), St(
|
|
4182
|
+
E.preventDefault();
|
|
4183
|
+
let O = n.getLastKey(e.focusedKey, St(E));
|
|
4184
|
+
e.setFocusedKey(O), St(E) && E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4185
4185
|
}
|
|
4186
4186
|
break;
|
|
4187
4187
|
case "PageDown":
|
|
4188
4188
|
if (n.getKeyPageBelow) {
|
|
4189
4189
|
let O = n.getKeyPageBelow(e.focusedKey);
|
|
4190
|
-
O != null && (
|
|
4190
|
+
O != null && (E.preventDefault(), D(O));
|
|
4191
4191
|
}
|
|
4192
4192
|
break;
|
|
4193
4193
|
case "PageUp":
|
|
4194
4194
|
if (n.getKeyPageAbove) {
|
|
4195
4195
|
let O = n.getKeyPageAbove(e.focusedKey);
|
|
4196
|
-
O != null && (
|
|
4196
|
+
O != null && (E.preventDefault(), D(O));
|
|
4197
4197
|
}
|
|
4198
4198
|
break;
|
|
4199
4199
|
case "a":
|
|
4200
|
-
St(
|
|
4200
|
+
St(E) && e.selectionMode === "multiple" && a !== !0 && (E.preventDefault(), e.selectAll());
|
|
4201
4201
|
break;
|
|
4202
4202
|
case "Escape":
|
|
4203
|
-
!o && e.selectedKeys.size !== 0 && (
|
|
4203
|
+
!o && e.selectedKeys.size !== 0 && (E.stopPropagation(), E.preventDefault(), e.clearSelection());
|
|
4204
4204
|
break;
|
|
4205
4205
|
case "Tab":
|
|
4206
4206
|
if (!d) {
|
|
4207
|
-
if (
|
|
4207
|
+
if (E.shiftKey) r.current.focus();
|
|
4208
4208
|
else {
|
|
4209
4209
|
let O = $e(r.current, {
|
|
4210
4210
|
tabbable: !0
|
|
@@ -4217,80 +4217,80 @@ function jo(t) {
|
|
|
4217
4217
|
break;
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
|
-
},
|
|
4220
|
+
}, x = M({
|
|
4221
4221
|
top: 0,
|
|
4222
4222
|
left: 0
|
|
4223
4223
|
});
|
|
4224
4224
|
Pl(p, "scroll", f ? null : () => {
|
|
4225
|
-
|
|
4225
|
+
x.current = {
|
|
4226
4226
|
top: p.current.scrollTop,
|
|
4227
4227
|
left: p.current.scrollLeft
|
|
4228
4228
|
};
|
|
4229
4229
|
});
|
|
4230
|
-
let $ = (
|
|
4230
|
+
let $ = (E) => {
|
|
4231
4231
|
if (e.isFocused) {
|
|
4232
|
-
|
|
4232
|
+
E.currentTarget.contains(E.target) || e.setFocused(!1);
|
|
4233
4233
|
return;
|
|
4234
4234
|
}
|
|
4235
|
-
if (
|
|
4235
|
+
if (E.currentTarget.contains(E.target)) {
|
|
4236
4236
|
if (e.setFocused(!0), e.focusedKey == null) {
|
|
4237
|
-
let
|
|
4238
|
-
|
|
4239
|
-
}, F =
|
|
4240
|
-
var
|
|
4241
|
-
F &&
|
|
4242
|
-
} else f || (p.current.scrollTop =
|
|
4237
|
+
let S = (k) => {
|
|
4238
|
+
k != null && (e.setFocusedKey(k), u && e.replaceSelection(k));
|
|
4239
|
+
}, F = E.relatedTarget;
|
|
4240
|
+
var D, N;
|
|
4241
|
+
F && E.currentTarget.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? S((D = e.lastSelectedKey) !== null && D !== void 0 ? D : n.getLastKey()) : S((N = e.firstSelectedKey) !== null && N !== void 0 ? N : n.getFirstKey());
|
|
4242
|
+
} else f || (p.current.scrollTop = x.current.top, p.current.scrollLeft = x.current.left);
|
|
4243
4243
|
if (e.focusedKey != null) {
|
|
4244
|
-
let
|
|
4245
|
-
|
|
4244
|
+
let S = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4245
|
+
S && (S.contains(document.activeElement) || Le(S), bn() === "keyboard" && Ze(S, {
|
|
4246
4246
|
containingElement: r.current
|
|
4247
4247
|
}));
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
},
|
|
4251
|
-
|
|
4250
|
+
}, T = (E) => {
|
|
4251
|
+
E.currentTarget.contains(E.relatedTarget) || e.setFocused(!1);
|
|
4252
4252
|
};
|
|
4253
4253
|
const w = M(l);
|
|
4254
4254
|
L(() => {
|
|
4255
4255
|
if (w.current) {
|
|
4256
|
-
let
|
|
4257
|
-
l === "first" && (
|
|
4258
|
-
let
|
|
4259
|
-
if (
|
|
4260
|
-
for (let
|
|
4261
|
-
|
|
4256
|
+
let E = null;
|
|
4257
|
+
l === "first" && (E = n.getFirstKey()), l === "last" && (E = n.getLastKey());
|
|
4258
|
+
let D = e.selectedKeys;
|
|
4259
|
+
if (D.size) {
|
|
4260
|
+
for (let N of D) if (e.canSelectItem(N)) {
|
|
4261
|
+
E = N;
|
|
4262
4262
|
break;
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
|
-
e.setFocused(!0), e.setFocusedKey(
|
|
4265
|
+
e.setFocused(!0), e.setFocusedKey(E), E == null && !c && he(r.current);
|
|
4266
4266
|
}
|
|
4267
4267
|
}, []);
|
|
4268
|
-
let
|
|
4268
|
+
let P = M(e.focusedKey);
|
|
4269
4269
|
L(() => {
|
|
4270
|
-
if (e.isFocused && e.focusedKey != null && (e.focusedKey !==
|
|
4271
|
-
let
|
|
4272
|
-
if (!
|
|
4270
|
+
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || w.current) && (p != null && p.current)) {
|
|
4271
|
+
let E = bn(), D = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4272
|
+
if (!D)
|
|
4273
4273
|
return;
|
|
4274
|
-
(
|
|
4274
|
+
(E === "keyboard" || w.current) && (Ti(p.current, D), E !== "virtual" && Ze(D, {
|
|
4275
4275
|
containingElement: r.current
|
|
4276
4276
|
}));
|
|
4277
4277
|
}
|
|
4278
|
-
!c && e.isFocused && e.focusedKey == null &&
|
|
4279
|
-
}), Pl(r, "react-aria-focus-scope-restore", (
|
|
4280
|
-
|
|
4278
|
+
!c && e.isFocused && e.focusedKey == null && P.current != null && he(r.current), P.current = e.focusedKey, w.current = !1;
|
|
4279
|
+
}), Pl(r, "react-aria-focus-scope-restore", (E) => {
|
|
4280
|
+
E.preventDefault(), e.setFocused(!0);
|
|
4281
4281
|
});
|
|
4282
4282
|
let R = {
|
|
4283
4283
|
onKeyDown: C,
|
|
4284
4284
|
onFocus: $,
|
|
4285
|
-
onBlur:
|
|
4286
|
-
onMouseDown(
|
|
4287
|
-
p.current ===
|
|
4285
|
+
onBlur: T,
|
|
4286
|
+
onMouseDown(E) {
|
|
4287
|
+
p.current === E.target && E.preventDefault();
|
|
4288
4288
|
}
|
|
4289
4289
|
}, { typeSelectProps: v } = zo({
|
|
4290
4290
|
keyboardDelegate: n,
|
|
4291
4291
|
selectionManager: e
|
|
4292
4292
|
});
|
|
4293
|
-
s || (R =
|
|
4293
|
+
s || (R = W(v, R));
|
|
4294
4294
|
let B;
|
|
4295
4295
|
return c || (B = e.focusedKey == null ? 0 : -1), {
|
|
4296
4296
|
collectionProps: {
|
|
@@ -4300,22 +4300,22 @@ function jo(t) {
|
|
|
4300
4300
|
};
|
|
4301
4301
|
}
|
|
4302
4302
|
function _n(t) {
|
|
4303
|
-
let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: l, shouldUseVirtualFocus: i, focus: o, isDisabled: a, onAction: u, allowsDifferentPressOrigin: s, linkBehavior: c = "action" } = t, d = Yt(), f = (
|
|
4304
|
-
if (
|
|
4303
|
+
let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: l, shouldUseVirtualFocus: i, focus: o, isDisabled: a, onAction: u, allowsDifferentPressOrigin: s, linkBehavior: c = "action" } = t, d = Yt(), f = (I) => {
|
|
4304
|
+
if (I.pointerType === "keyboard" && wr(I)) e.toggleSelection(n);
|
|
4305
4305
|
else {
|
|
4306
4306
|
if (e.selectionMode === "none") return;
|
|
4307
4307
|
if (e.isLink(n)) {
|
|
4308
4308
|
if (c === "selection") {
|
|
4309
|
-
let
|
|
4310
|
-
d.open(r.current,
|
|
4309
|
+
let re = e.getItemProps(n);
|
|
4310
|
+
d.open(r.current, I, re.href, re.routerOptions), e.setSelectedKeys(e.selectedKeys);
|
|
4311
4311
|
return;
|
|
4312
4312
|
} else if (c === "override" || c === "none") return;
|
|
4313
4313
|
}
|
|
4314
|
-
e.selectionMode === "single" ? e.isSelected(n) && !e.disallowEmptySelection ? e.toggleSelection(n) : e.replaceSelection(n) :
|
|
4314
|
+
e.selectionMode === "single" ? e.isSelected(n) && !e.disallowEmptySelection ? e.toggleSelection(n) : e.replaceSelection(n) : I && I.shiftKey ? e.extendSelection(n) : e.selectionBehavior === "toggle" || I && (St(I) || I.pointerType === "touch" || I.pointerType === "virtual") ? e.toggleSelection(n) : e.replaceSelection(n);
|
|
4315
4315
|
}
|
|
4316
4316
|
};
|
|
4317
4317
|
L(() => {
|
|
4318
|
-
n === e.focusedKey && e.isFocused && !i && (o ? o() : document.activeElement !== r.current &&
|
|
4318
|
+
n === e.focusedKey && e.isFocused && !i && (o ? o() : document.activeElement !== r.current && he(r.current));
|
|
4319
4319
|
}, [
|
|
4320
4320
|
r,
|
|
4321
4321
|
n,
|
|
@@ -4327,56 +4327,56 @@ function _n(t) {
|
|
|
4327
4327
|
let p = {};
|
|
4328
4328
|
!i && !a ? p = {
|
|
4329
4329
|
tabIndex: n === e.focusedKey ? 0 : -1,
|
|
4330
|
-
onFocus(
|
|
4331
|
-
|
|
4330
|
+
onFocus(I) {
|
|
4331
|
+
I.target === r.current && e.setFocusedKey(n);
|
|
4332
4332
|
}
|
|
4333
|
-
} : a && (p.onMouseDown = (
|
|
4334
|
-
|
|
4333
|
+
} : a && (p.onMouseDown = (I) => {
|
|
4334
|
+
I.preventDefault();
|
|
4335
4335
|
});
|
|
4336
|
-
let m = e.isLink(n) && c === "override", y = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, C = (u || y) && !a,
|
|
4336
|
+
let m = e.isLink(n) && c === "override", y = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, C = (u || y) && !a, x = C && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), $ = C && g && e.selectionBehavior === "replace", T = x || $, w = M(null), P = T && g, R = M(!1), v = M(!1), B = (I) => {
|
|
4337
4337
|
if (u && u(), y) {
|
|
4338
|
-
let
|
|
4339
|
-
d.open(r.current,
|
|
4340
|
-
}
|
|
4341
|
-
},
|
|
4342
|
-
l ? (
|
|
4343
|
-
w.current =
|
|
4344
|
-
}, s ? (
|
|
4345
|
-
|
|
4346
|
-
},
|
|
4347
|
-
if (
|
|
4348
|
-
if (
|
|
4349
|
-
B(
|
|
4350
|
-
} else
|
|
4351
|
-
}) : (
|
|
4352
|
-
w.current =
|
|
4353
|
-
},
|
|
4354
|
-
(
|
|
4355
|
-
}), p["data-key"] = n,
|
|
4356
|
-
let { pressProps:
|
|
4357
|
-
w.current === "mouse" && (
|
|
4338
|
+
let re = e.getItemProps(n);
|
|
4339
|
+
d.open(r.current, I, re.href, re.routerOptions);
|
|
4340
|
+
}
|
|
4341
|
+
}, E = {};
|
|
4342
|
+
l ? (E.onPressStart = (I) => {
|
|
4343
|
+
w.current = I.pointerType, R.current = P, I.pointerType === "keyboard" && (!T || Ql()) && f(I);
|
|
4344
|
+
}, s ? (E.onPressUp = x ? null : (I) => {
|
|
4345
|
+
I.pointerType !== "keyboard" && g && f(I);
|
|
4346
|
+
}, E.onPress = x ? B : null) : E.onPress = (I) => {
|
|
4347
|
+
if (x || $ && I.pointerType !== "mouse") {
|
|
4348
|
+
if (I.pointerType === "keyboard" && !Jl()) return;
|
|
4349
|
+
B(I);
|
|
4350
|
+
} else I.pointerType !== "keyboard" && g && f(I);
|
|
4351
|
+
}) : (E.onPressStart = (I) => {
|
|
4352
|
+
w.current = I.pointerType, R.current = P, v.current = x, g && (I.pointerType === "mouse" && !x || I.pointerType === "keyboard" && (!C || Ql())) && f(I);
|
|
4353
|
+
}, E.onPress = (I) => {
|
|
4354
|
+
(I.pointerType === "touch" || I.pointerType === "pen" || I.pointerType === "virtual" || I.pointerType === "keyboard" && T && Jl() || I.pointerType === "mouse" && v.current) && (T ? B(I) : g && f(I));
|
|
4355
|
+
}), p["data-key"] = n, E.preventFocusOnPress = i;
|
|
4356
|
+
let { pressProps: D, isPressed: N } = ze(E), S = $ ? (I) => {
|
|
4357
|
+
w.current === "mouse" && (I.stopPropagation(), I.preventDefault(), B(I));
|
|
4358
4358
|
} : void 0, { longPressProps: F } = ji({
|
|
4359
|
-
isDisabled: !
|
|
4360
|
-
onLongPress(
|
|
4361
|
-
|
|
4362
|
-
}
|
|
4363
|
-
}),
|
|
4364
|
-
w.current === "touch" && R.current &&
|
|
4365
|
-
},
|
|
4366
|
-
ut.isOpening ||
|
|
4359
|
+
isDisabled: !P,
|
|
4360
|
+
onLongPress(I) {
|
|
4361
|
+
I.pointerType === "touch" && (f(I), e.setSelectionBehavior("toggle"));
|
|
4362
|
+
}
|
|
4363
|
+
}), k = (I) => {
|
|
4364
|
+
w.current === "touch" && R.current && I.preventDefault();
|
|
4365
|
+
}, V = e.isLink(n) ? (I) => {
|
|
4366
|
+
ut.isOpening || I.preventDefault();
|
|
4367
4367
|
} : void 0;
|
|
4368
4368
|
return {
|
|
4369
|
-
itemProps:
|
|
4370
|
-
onDoubleClick:
|
|
4371
|
-
onDragStartCapture:
|
|
4372
|
-
onClick:
|
|
4369
|
+
itemProps: W(p, g || x ? D : {}, P ? F : {}, {
|
|
4370
|
+
onDoubleClick: S,
|
|
4371
|
+
onDragStartCapture: k,
|
|
4372
|
+
onClick: V
|
|
4373
4373
|
}),
|
|
4374
|
-
isPressed:
|
|
4374
|
+
isPressed: N,
|
|
4375
4375
|
isSelected: e.isSelected(n),
|
|
4376
4376
|
isFocused: e.isFocused && e.focusedKey === n,
|
|
4377
4377
|
isDisabled: a,
|
|
4378
4378
|
allowsSelection: g,
|
|
4379
|
-
hasAction:
|
|
4379
|
+
hasAction: T
|
|
4380
4380
|
};
|
|
4381
4381
|
}
|
|
4382
4382
|
function Jl() {
|
|
@@ -4531,7 +4531,7 @@ function Ho(t) {
|
|
|
4531
4531
|
let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, a = In({
|
|
4532
4532
|
usage: "search",
|
|
4533
4533
|
sensitivity: "base"
|
|
4534
|
-
}), u = e.disabledBehavior, s =
|
|
4534
|
+
}), u = e.disabledBehavior, s = H(() => i || new Vo({
|
|
4535
4535
|
collection: n,
|
|
4536
4536
|
disabledKeys: r,
|
|
4537
4537
|
disabledBehavior: u,
|
|
@@ -4557,7 +4557,7 @@ function Ho(t) {
|
|
|
4557
4557
|
};
|
|
4558
4558
|
}
|
|
4559
4559
|
function np(t, e, n) {
|
|
4560
|
-
let r =
|
|
4560
|
+
let r = pe(t, {
|
|
4561
4561
|
labelable: !0
|
|
4562
4562
|
}), l = t.selectionBehavior || "toggle", i = t.linkBehavior || (l === "replace" ? "action" : "override");
|
|
4563
4563
|
l === "toggle" && i === "action" && (i = "override");
|
|
@@ -4572,7 +4572,7 @@ function np(t, e, n) {
|
|
|
4572
4572
|
onFocusWithin: t.onFocus,
|
|
4573
4573
|
onBlurWithin: t.onBlur,
|
|
4574
4574
|
onFocusWithinChange: t.onFocusChange
|
|
4575
|
-
}), u =
|
|
4575
|
+
}), u = me(t.id);
|
|
4576
4576
|
qr.set(e, {
|
|
4577
4577
|
id: u,
|
|
4578
4578
|
shouldUseVirtualFocus: t.shouldUseVirtualFocus,
|
|
@@ -4591,11 +4591,11 @@ function np(t, e, n) {
|
|
|
4591
4591
|
});
|
|
4592
4592
|
return {
|
|
4593
4593
|
labelProps: s,
|
|
4594
|
-
listBoxProps:
|
|
4594
|
+
listBoxProps: W(r, a, e.selectionManager.selectionMode === "multiple" ? {
|
|
4595
4595
|
"aria-multiselectable": "true"
|
|
4596
4596
|
} : {}, {
|
|
4597
4597
|
role: "listbox",
|
|
4598
|
-
...
|
|
4598
|
+
...W(c, o)
|
|
4599
4599
|
})
|
|
4600
4600
|
};
|
|
4601
4601
|
}
|
|
@@ -4816,8 +4816,8 @@ function lr(t) {
|
|
|
4816
4816
|
return t[0].toUpperCase() + t.slice(1);
|
|
4817
4817
|
}
|
|
4818
4818
|
function Zr(t, e, n) {
|
|
4819
|
-
let r =
|
|
4820
|
-
return
|
|
4819
|
+
let r = H(() => new lp(), []), { children: l, items: i, collection: o } = t;
|
|
4820
|
+
return H(() => {
|
|
4821
4821
|
if (o) return o;
|
|
4822
4822
|
let u = r.build({
|
|
4823
4823
|
children: l,
|
|
@@ -4833,7 +4833,7 @@ function Zr(t, e, n) {
|
|
|
4833
4833
|
e
|
|
4834
4834
|
]);
|
|
4835
4835
|
}
|
|
4836
|
-
function
|
|
4836
|
+
function se(t, e) {
|
|
4837
4837
|
return typeof e.getChildren == "function" ? e.getChildren(t.key) : t.childNodes;
|
|
4838
4838
|
}
|
|
4839
4839
|
function Ne(t) {
|
|
@@ -4875,7 +4875,7 @@ function Go(t) {
|
|
|
4875
4875
|
if (e != null) return e;
|
|
4876
4876
|
e = 0;
|
|
4877
4877
|
let n = (r) => {
|
|
4878
|
-
for (let l of r) l.type === "section" ? n(
|
|
4878
|
+
for (let l of r) l.type === "section" ? n(se(l, t)) : e++;
|
|
4879
4879
|
};
|
|
4880
4880
|
return n(t), ni.set(t, e), e;
|
|
4881
4881
|
}
|
|
@@ -4893,58 +4893,58 @@ function op(t, e, n) {
|
|
|
4893
4893
|
var y;
|
|
4894
4894
|
let g = (y = t.shouldUseVirtualFocus) !== null && y !== void 0 ? y : o == null ? void 0 : o.shouldUseVirtualFocus;
|
|
4895
4895
|
var C;
|
|
4896
|
-
let
|
|
4896
|
+
let x = (C = t.isVirtualized) !== null && C !== void 0 ? C : o == null ? void 0 : o.isVirtualized, $ = et(), T = et(), w = {
|
|
4897
4897
|
role: "option",
|
|
4898
4898
|
"aria-disabled": u || void 0,
|
|
4899
4899
|
"aria-selected": e.selectionManager.selectionMode !== "none" ? c : void 0
|
|
4900
4900
|
};
|
|
4901
|
-
tt() && Or() || (w["aria-label"] = t["aria-label"], w["aria-labelledby"] = $, w["aria-describedby"] =
|
|
4902
|
-
let
|
|
4903
|
-
if (
|
|
4904
|
-
let
|
|
4905
|
-
w["aria-posinset"] = Number.isNaN(
|
|
4901
|
+
tt() && Or() || (w["aria-label"] = t["aria-label"], w["aria-labelledby"] = $, w["aria-describedby"] = T);
|
|
4902
|
+
let P = e.collection.getItem(i);
|
|
4903
|
+
if (x) {
|
|
4904
|
+
let V = Number(P == null ? void 0 : P.index);
|
|
4905
|
+
w["aria-posinset"] = Number.isNaN(V) ? void 0 : V + 1, w["aria-setsize"] = Go(e.collection);
|
|
4906
4906
|
}
|
|
4907
4907
|
let R = o != null && o.onAction ? () => {
|
|
4908
|
-
var
|
|
4909
|
-
return o == null || (
|
|
4910
|
-
} : void 0, { itemProps: v, isPressed: B, isFocused:
|
|
4908
|
+
var V;
|
|
4909
|
+
return o == null || (V = o.onAction) === null || V === void 0 ? void 0 : V.call(o, i);
|
|
4910
|
+
} : void 0, { itemProps: v, isPressed: B, isFocused: E, hasAction: D, allowsSelection: N } = _n({
|
|
4911
4911
|
selectionManager: e.selectionManager,
|
|
4912
4912
|
key: i,
|
|
4913
4913
|
ref: n,
|
|
4914
4914
|
shouldSelectOnPressUp: f,
|
|
4915
4915
|
allowsDifferentPressOrigin: f && m,
|
|
4916
|
-
isVirtualized:
|
|
4916
|
+
isVirtualized: x,
|
|
4917
4917
|
shouldUseVirtualFocus: g,
|
|
4918
4918
|
isDisabled: u,
|
|
4919
|
-
onAction: R || !(
|
|
4919
|
+
onAction: R || !(P == null || (r = P.props) === null || r === void 0) && r.onAction ? Ie(P == null || (l = P.props) === null || l === void 0 ? void 0 : l.onAction, R) : void 0,
|
|
4920
4920
|
linkBehavior: o == null ? void 0 : o.linkBehavior
|
|
4921
|
-
}), { hoverProps:
|
|
4921
|
+
}), { hoverProps: S } = kt({
|
|
4922
4922
|
isDisabled: u || !m,
|
|
4923
4923
|
onHoverStart() {
|
|
4924
4924
|
ct() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
4925
4925
|
}
|
|
4926
|
-
}), F =
|
|
4926
|
+
}), F = pe(P == null ? void 0 : P.props);
|
|
4927
4927
|
delete F.id;
|
|
4928
|
-
let
|
|
4928
|
+
let k = Ci(P == null ? void 0 : P.props);
|
|
4929
4929
|
return {
|
|
4930
4930
|
optionProps: {
|
|
4931
4931
|
...w,
|
|
4932
|
-
...
|
|
4932
|
+
...W(F, v, S, k),
|
|
4933
4933
|
id: Qf(e, i)
|
|
4934
4934
|
},
|
|
4935
4935
|
labelProps: {
|
|
4936
4936
|
id: $
|
|
4937
4937
|
},
|
|
4938
4938
|
descriptionProps: {
|
|
4939
|
-
id:
|
|
4939
|
+
id: T
|
|
4940
4940
|
},
|
|
4941
|
-
isFocused:
|
|
4942
|
-
isFocusVisible:
|
|
4941
|
+
isFocused: E,
|
|
4942
|
+
isFocusVisible: E && ct(),
|
|
4943
4943
|
isSelected: c,
|
|
4944
4944
|
isDisabled: u,
|
|
4945
4945
|
isPressed: B,
|
|
4946
|
-
allowsSelection:
|
|
4947
|
-
hasAction:
|
|
4946
|
+
allowsSelection: N,
|
|
4947
|
+
hasAction: D
|
|
4948
4948
|
};
|
|
4949
4949
|
}
|
|
4950
4950
|
var Yo = {};
|
|
@@ -5124,7 +5124,7 @@ function ap(t) {
|
|
|
5124
5124
|
return t && t.__esModule ? t.default : t;
|
|
5125
5125
|
}
|
|
5126
5126
|
function Ta(t, e, n) {
|
|
5127
|
-
let { type: r = "menu", isDisabled: l, trigger: i = "press" } = t, o =
|
|
5127
|
+
let { type: r = "menu", isDisabled: l, trigger: i = "press" } = t, o = me(), { triggerProps: a, overlayProps: u } = ro({
|
|
5128
5128
|
type: r
|
|
5129
5129
|
}, e, n), s = (p) => {
|
|
5130
5130
|
if (!l && !(i === "longPress" && !p.altKey) && n && n.current)
|
|
@@ -5177,7 +5177,7 @@ const Aa = /* @__PURE__ */ new WeakMap();
|
|
|
5177
5177
|
function Ba(t, e, n) {
|
|
5178
5178
|
let { shouldFocusWrap: r = !0, onKeyDown: l, onKeyUp: i, ...o } = t;
|
|
5179
5179
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
5180
|
-
let a =
|
|
5180
|
+
let a = pe(t, {
|
|
5181
5181
|
labelable: !0
|
|
5182
5182
|
}), { listProps: u } = Ho({
|
|
5183
5183
|
...o,
|
|
@@ -5192,7 +5192,7 @@ function Ba(t, e, n) {
|
|
|
5192
5192
|
onClose: t.onClose,
|
|
5193
5193
|
onAction: t.onAction
|
|
5194
5194
|
}), {
|
|
5195
|
-
menuProps:
|
|
5195
|
+
menuProps: W(a, {
|
|
5196
5196
|
onKeyDown: l,
|
|
5197
5197
|
onKeyUp: i
|
|
5198
5198
|
}, {
|
|
@@ -5205,40 +5205,40 @@ function Ba(t, e, n) {
|
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
function Ka(t, e, n) {
|
|
5208
|
-
let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: y, onKeyDown: g, onKeyUp: C, onFocus:
|
|
5209
|
-
var
|
|
5210
|
-
let R = (
|
|
5208
|
+
let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: y, onKeyDown: g, onKeyUp: C, onFocus: x, onFocusChange: $, onBlur: T } = t, w = !!a;
|
|
5209
|
+
var P;
|
|
5210
|
+
let R = (P = t.isDisabled) !== null && P !== void 0 ? P : e.selectionManager.isDisabled(l);
|
|
5211
5211
|
var v;
|
|
5212
|
-
let B = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l),
|
|
5212
|
+
let B = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), E = Aa.get(e), D = e.collection.getItem(l), N = t.onClose || E.onClose, S = Yt(), F = (le) => {
|
|
5213
5213
|
var mt;
|
|
5214
5214
|
if (!w) {
|
|
5215
|
-
if (!(
|
|
5216
|
-
let On =
|
|
5215
|
+
if (!(D == null || (mt = D.props) === null || mt === void 0) && mt.onAction ? D.props.onAction() : t.onAction && t.onAction(l), E.onAction) {
|
|
5216
|
+
let On = E.onAction;
|
|
5217
5217
|
On(l);
|
|
5218
5218
|
}
|
|
5219
|
-
|
|
5219
|
+
le.target instanceof HTMLAnchorElement && S.open(le.target, le, D.props.href, D.props.routerOptions);
|
|
5220
5220
|
}
|
|
5221
|
-
},
|
|
5222
|
-
w || (e.selectionManager.selectionMode === "single" ?
|
|
5223
|
-
let
|
|
5221
|
+
}, k = "menuitem";
|
|
5222
|
+
w || (e.selectionManager.selectionMode === "single" ? k = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (k = "menuitemcheckbox"));
|
|
5223
|
+
let V = et(), I = et(), re = et(), de = {
|
|
5224
5224
|
id: r,
|
|
5225
5225
|
"aria-disabled": R || void 0,
|
|
5226
|
-
role:
|
|
5226
|
+
role: k,
|
|
5227
5227
|
"aria-label": t["aria-label"],
|
|
5228
|
-
"aria-labelledby":
|
|
5228
|
+
"aria-labelledby": V,
|
|
5229
5229
|
"aria-describedby": [
|
|
5230
|
-
|
|
5231
|
-
|
|
5230
|
+
I,
|
|
5231
|
+
re
|
|
5232
5232
|
].filter(Boolean).join(" ") || void 0,
|
|
5233
5233
|
"aria-controls": t["aria-controls"],
|
|
5234
5234
|
"aria-haspopup": a,
|
|
5235
5235
|
"aria-expanded": t["aria-expanded"]
|
|
5236
5236
|
};
|
|
5237
|
-
e.selectionManager.selectionMode !== "none" && !w && (
|
|
5238
|
-
let xe = (
|
|
5239
|
-
|
|
5240
|
-
}, Be = (
|
|
5241
|
-
|
|
5237
|
+
e.selectionManager.selectionMode !== "none" && !w && (de["aria-checked"] = B), o && (de["aria-posinset"] = D == null ? void 0 : D.index, de["aria-setsize"] = Go(e.collection));
|
|
5238
|
+
let xe = (le) => {
|
|
5239
|
+
le.pointerType === "keyboard" && F(le), u == null || u(le);
|
|
5240
|
+
}, Be = (le) => {
|
|
5241
|
+
le.pointerType !== "keyboard" && (F(le), !w && N && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && N()), s == null || s(le);
|
|
5242
5242
|
}, { itemProps: Ee, isFocused: Ue } = _n({
|
|
5243
5243
|
selectionManager: e.selectionManager,
|
|
5244
5244
|
key: l,
|
|
@@ -5259,54 +5259,54 @@ function Ka(t, e, n) {
|
|
|
5259
5259
|
isDisabled: R
|
|
5260
5260
|
}), { hoverProps: Se } = kt({
|
|
5261
5261
|
isDisabled: R,
|
|
5262
|
-
onHoverStart(
|
|
5263
|
-
ct() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(l)), p == null || p(
|
|
5262
|
+
onHoverStart(le) {
|
|
5263
|
+
ct() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(l)), p == null || p(le);
|
|
5264
5264
|
},
|
|
5265
5265
|
onHoverChange: m,
|
|
5266
5266
|
onHoverEnd: y
|
|
5267
5267
|
}), { keyboardProps: Ge } = zi({
|
|
5268
|
-
onKeyDown: (
|
|
5269
|
-
if (
|
|
5270
|
-
|
|
5268
|
+
onKeyDown: (le) => {
|
|
5269
|
+
if (le.repeat) {
|
|
5270
|
+
le.continuePropagation();
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
switch (
|
|
5273
|
+
switch (le.key) {
|
|
5274
5274
|
case " ":
|
|
5275
|
-
!R && e.selectionManager.selectionMode === "none" && !w && i !== !1 &&
|
|
5275
|
+
!R && e.selectionManager.selectionMode === "none" && !w && i !== !1 && N && N();
|
|
5276
5276
|
break;
|
|
5277
5277
|
case "Enter":
|
|
5278
|
-
!R && i !== !1 && !w &&
|
|
5278
|
+
!R && i !== !1 && !w && N && N();
|
|
5279
5279
|
break;
|
|
5280
5280
|
default:
|
|
5281
|
-
w ||
|
|
5281
|
+
w || le.continuePropagation(), g == null || g(le);
|
|
5282
5282
|
break;
|
|
5283
5283
|
}
|
|
5284
5284
|
},
|
|
5285
5285
|
onKeyUp: C
|
|
5286
5286
|
}), { focusProps: pt } = An({
|
|
5287
|
-
onBlur:
|
|
5288
|
-
onFocus:
|
|
5287
|
+
onBlur: T,
|
|
5288
|
+
onFocus: x,
|
|
5289
5289
|
onFocusChange: $
|
|
5290
|
-
}), vt =
|
|
5290
|
+
}), vt = pe(D.props);
|
|
5291
5291
|
delete vt.id;
|
|
5292
|
-
let ht = Ci(
|
|
5292
|
+
let ht = Ci(D.props);
|
|
5293
5293
|
return {
|
|
5294
5294
|
menuItemProps: {
|
|
5295
|
-
...
|
|
5296
|
-
...
|
|
5295
|
+
...de,
|
|
5296
|
+
...W(vt, ht, w ? {
|
|
5297
5297
|
onFocus: Ee.onFocus,
|
|
5298
5298
|
"data-key": Ee["data-key"]
|
|
5299
5299
|
} : Ee, O, Se, Ge, pt),
|
|
5300
5300
|
tabIndex: Ee.tabIndex != null ? -1 : void 0
|
|
5301
5301
|
},
|
|
5302
5302
|
labelProps: {
|
|
5303
|
-
id:
|
|
5303
|
+
id: V
|
|
5304
5304
|
},
|
|
5305
5305
|
descriptionProps: {
|
|
5306
|
-
id:
|
|
5306
|
+
id: I
|
|
5307
5307
|
},
|
|
5308
5308
|
keyboardShortcutProps: {
|
|
5309
|
-
id:
|
|
5309
|
+
id: re
|
|
5310
5310
|
},
|
|
5311
5311
|
isFocused: Ue,
|
|
5312
5312
|
isSelected: B,
|
|
@@ -5315,7 +5315,7 @@ function Ka(t, e, n) {
|
|
|
5315
5315
|
};
|
|
5316
5316
|
}
|
|
5317
5317
|
function up(t) {
|
|
5318
|
-
let { heading: e, "aria-label": n } = t, r =
|
|
5318
|
+
let { heading: e, "aria-label": n } = t, r = me();
|
|
5319
5319
|
return {
|
|
5320
5320
|
itemProps: {
|
|
5321
5321
|
role: "presentation"
|
|
@@ -5340,9 +5340,9 @@ function sp(t, e) {
|
|
|
5340
5340
|
let l = M(!1);
|
|
5341
5341
|
return L(() => {
|
|
5342
5342
|
if (e.current && !e.current.contains(document.activeElement)) {
|
|
5343
|
-
|
|
5343
|
+
he(e.current);
|
|
5344
5344
|
let i = setTimeout(() => {
|
|
5345
|
-
document.activeElement === e.current && (l.current = !0, e.current && (e.current.blur(),
|
|
5345
|
+
document.activeElement === e.current && (l.current = !0, e.current && (e.current.blur(), he(e.current)), l.current = !1);
|
|
5346
5346
|
}, 500);
|
|
5347
5347
|
return () => {
|
|
5348
5348
|
clearTimeout(i);
|
|
@@ -5352,7 +5352,7 @@ function sp(t, e) {
|
|
|
5352
5352
|
e
|
|
5353
5353
|
]), Zf(), {
|
|
5354
5354
|
dialogProps: {
|
|
5355
|
-
...
|
|
5355
|
+
...pe(t, {
|
|
5356
5356
|
labelable: !0
|
|
5357
5357
|
}),
|
|
5358
5358
|
role: n,
|
|
@@ -5520,18 +5520,18 @@ function gp(t) {
|
|
|
5520
5520
|
onFocusChange: (c) => {
|
|
5521
5521
|
n.current = c;
|
|
5522
5522
|
}
|
|
5523
|
-
}), l =
|
|
5523
|
+
}), l = ae((c) => {
|
|
5524
5524
|
n.current && t.getItems && c.preventDefault();
|
|
5525
|
-
}), i =
|
|
5525
|
+
}), i = ae((c) => {
|
|
5526
5526
|
var d;
|
|
5527
5527
|
!n.current || !t.getItems || (c.preventDefault(), ri(c.clipboardData, t.getItems()), (d = t.onCopy) === null || d === void 0 || d.call(t));
|
|
5528
|
-
}), o =
|
|
5528
|
+
}), o = ae((c) => {
|
|
5529
5529
|
n.current && t.onCut && t.getItems && c.preventDefault();
|
|
5530
|
-
}), a =
|
|
5530
|
+
}), a = ae((c) => {
|
|
5531
5531
|
!n.current || !t.onCut || !t.getItems || (c.preventDefault(), ri(c.clipboardData, t.getItems()), t.onCut());
|
|
5532
|
-
}), u =
|
|
5532
|
+
}), u = ae((c) => {
|
|
5533
5533
|
n.current && t.onPaste && c.preventDefault();
|
|
5534
|
-
}), s =
|
|
5534
|
+
}), s = ae((c) => {
|
|
5535
5535
|
if (!n.current || !t.onPaste) return;
|
|
5536
5536
|
c.preventDefault();
|
|
5537
5537
|
let d = vp(c.clipboardData);
|
|
@@ -5584,7 +5584,7 @@ class Fa {
|
|
|
5584
5584
|
if (n && (this.isCell(n) && (e = n.parentKey), e = this.findNextKey(e, (r) => r.type === "item"), e != null)) {
|
|
5585
5585
|
if (this.isCell(n)) {
|
|
5586
5586
|
let r = this.collection.getItem(e);
|
|
5587
|
-
return Je(
|
|
5587
|
+
return Je(se(r, this.collection), n.index).key;
|
|
5588
5588
|
}
|
|
5589
5589
|
if (this.focusMode === "row") return e;
|
|
5590
5590
|
}
|
|
@@ -5594,7 +5594,7 @@ class Fa {
|
|
|
5594
5594
|
if (n && (this.isCell(n) && (e = n.parentKey), e = this.findPreviousKey(e, (r) => r.type === "item"), e != null)) {
|
|
5595
5595
|
if (this.isCell(n)) {
|
|
5596
5596
|
let r = this.collection.getItem(e);
|
|
5597
|
-
return Je(
|
|
5597
|
+
return Je(se(r, this.collection), n.index).key;
|
|
5598
5598
|
}
|
|
5599
5599
|
if (this.focusMode === "row") return e;
|
|
5600
5600
|
}
|
|
@@ -5603,11 +5603,11 @@ class Fa {
|
|
|
5603
5603
|
let n = this.collection.getItem(e);
|
|
5604
5604
|
if (n) {
|
|
5605
5605
|
if (this.isRow(n)) {
|
|
5606
|
-
let r =
|
|
5606
|
+
let r = se(n, this.collection);
|
|
5607
5607
|
return this.direction === "rtl" ? Qe(r).key : Ne(r).key;
|
|
5608
5608
|
}
|
|
5609
5609
|
if (this.isCell(n)) {
|
|
5610
|
-
let r = this.collection.getItem(n.parentKey), l =
|
|
5610
|
+
let r = this.collection.getItem(n.parentKey), l = se(r, this.collection), i = this.direction === "rtl" ? Je(l, n.index - 1) : Je(l, n.index + 1);
|
|
5611
5611
|
return i ? i.key : this.focusMode === "row" ? n.parentKey : this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e);
|
|
5612
5612
|
}
|
|
5613
5613
|
}
|
|
@@ -5616,11 +5616,11 @@ class Fa {
|
|
|
5616
5616
|
let n = this.collection.getItem(e);
|
|
5617
5617
|
if (n) {
|
|
5618
5618
|
if (this.isRow(n)) {
|
|
5619
|
-
let r =
|
|
5619
|
+
let r = se(n, this.collection);
|
|
5620
5620
|
return this.direction === "rtl" ? Ne(r).key : Qe(r).key;
|
|
5621
5621
|
}
|
|
5622
5622
|
if (this.isCell(n)) {
|
|
5623
|
-
let r = this.collection.getItem(n.parentKey), l =
|
|
5623
|
+
let r = this.collection.getItem(n.parentKey), l = se(r, this.collection), i = this.direction === "rtl" ? Je(l, n.index + 1) : Je(l, n.index - 1);
|
|
5624
5624
|
return i ? i.key : this.focusMode === "row" ? n.parentKey : this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e);
|
|
5625
5625
|
}
|
|
5626
5626
|
}
|
|
@@ -5631,12 +5631,12 @@ class Fa {
|
|
|
5631
5631
|
if (r = this.collection.getItem(e), !r) return;
|
|
5632
5632
|
if (this.isCell(r) && !n) {
|
|
5633
5633
|
let l = this.collection.getItem(r.parentKey);
|
|
5634
|
-
return Ne(
|
|
5634
|
+
return Ne(se(l, this.collection)).key;
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
5637
5637
|
if (e = this.findNextKey(null, (l) => l.type === "item"), e != null && r && this.isCell(r) && n || this.focusMode === "cell") {
|
|
5638
5638
|
let l = this.collection.getItem(e);
|
|
5639
|
-
e = Ne(
|
|
5639
|
+
e = Ne(se(l, this.collection)).key;
|
|
5640
5640
|
}
|
|
5641
5641
|
return e;
|
|
5642
5642
|
}
|
|
@@ -5645,12 +5645,12 @@ class Fa {
|
|
|
5645
5645
|
if (e != null) {
|
|
5646
5646
|
if (r = this.collection.getItem(e), !r) return;
|
|
5647
5647
|
if (this.isCell(r) && !n) {
|
|
5648
|
-
let l = this.collection.getItem(r.parentKey), i =
|
|
5648
|
+
let l = this.collection.getItem(r.parentKey), i = se(l, this.collection);
|
|
5649
5649
|
return Qe(i).key;
|
|
5650
5650
|
}
|
|
5651
5651
|
}
|
|
5652
5652
|
if (e = this.findPreviousKey(null, (l) => l.type === "item"), e != null && r && this.isCell(r) && n || this.focusMode === "cell") {
|
|
5653
|
-
let l = this.collection.getItem(e), i =
|
|
5653
|
+
let l = this.collection.getItem(e), i = se(l, this.collection);
|
|
5654
5654
|
e = Qe(i).key;
|
|
5655
5655
|
}
|
|
5656
5656
|
return e;
|
|
@@ -5684,7 +5684,7 @@ class Fa {
|
|
|
5684
5684
|
if (a.textValue) {
|
|
5685
5685
|
let u = a.textValue.slice(0, e.length);
|
|
5686
5686
|
if (this.collator.compare(u, e) === 0)
|
|
5687
|
-
return this.isRow(a) && this.focusMode === "cell" ? Ne(
|
|
5687
|
+
return this.isRow(a) && this.focusMode === "cell" ? Ne(se(a, this.collection)).key : a.key;
|
|
5688
5688
|
}
|
|
5689
5689
|
l = this.findNextKey(l, (u) => u.type === "item"), l == null && !o && (l = this.getFirstKey(), o = !0);
|
|
5690
5690
|
}
|
|
@@ -6239,7 +6239,7 @@ function Ep(t) {
|
|
|
6239
6239
|
return t && t.__esModule ? t.default : t;
|
|
6240
6240
|
}
|
|
6241
6241
|
function Sp(t) {
|
|
6242
|
-
let e = ft(Ep(el), "@react-aria/grid"), n = Li(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l =
|
|
6242
|
+
let e = ft(Ep(el), "@react-aria/grid"), n = Li(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = H(() => {
|
|
6243
6243
|
let o = t.selectionManager.selectionMode, a = t.selectionManager.selectionBehavior, u;
|
|
6244
6244
|
return r && (u = e.format("longPressToSelect")), a === "replace" && o !== "none" && t.hasItemActions ? u : void 0;
|
|
6245
6245
|
}, [
|
|
@@ -6257,7 +6257,7 @@ function Cp(t, e, n) {
|
|
|
6257
6257
|
let d = In({
|
|
6258
6258
|
usage: "search",
|
|
6259
6259
|
sensitivity: "base"
|
|
6260
|
-
}), { direction: f } = He(), p = e.selectionManager.disabledBehavior, m =
|
|
6260
|
+
}), { direction: f } = He(), p = e.selectionManager.disabledBehavior, m = H(() => l || new Fa({
|
|
6261
6261
|
collection: e.collection,
|
|
6262
6262
|
disabledKeys: e.disabledKeys,
|
|
6263
6263
|
disabledBehavior: p,
|
|
@@ -6280,7 +6280,7 @@ function Cp(t, e, n) {
|
|
|
6280
6280
|
keyboardDelegate: m,
|
|
6281
6281
|
isVirtualized: r,
|
|
6282
6282
|
scrollRef: o
|
|
6283
|
-
}), g =
|
|
6283
|
+
}), g = me(t.id);
|
|
6284
6284
|
Qr.set(e, {
|
|
6285
6285
|
keyboardDelegate: m,
|
|
6286
6286
|
actions: {
|
|
@@ -6291,7 +6291,7 @@ function Cp(t, e, n) {
|
|
|
6291
6291
|
let C = Sp({
|
|
6292
6292
|
selectionManager: c,
|
|
6293
6293
|
hasItemActions: !!(u || s)
|
|
6294
|
-
}),
|
|
6294
|
+
}), x = pe(t, {
|
|
6295
6295
|
labelable: !0
|
|
6296
6296
|
}), $ = X((R) => {
|
|
6297
6297
|
if (c.isFocused) {
|
|
@@ -6301,7 +6301,7 @@ function Cp(t, e, n) {
|
|
|
6301
6301
|
R.currentTarget.contains(R.target) && c.setFocused(!0);
|
|
6302
6302
|
}, [
|
|
6303
6303
|
c
|
|
6304
|
-
]),
|
|
6304
|
+
]), T = H(() => ({
|
|
6305
6305
|
onBlur: y.onBlur,
|
|
6306
6306
|
onFocus: $
|
|
6307
6307
|
}), [
|
|
@@ -6309,24 +6309,24 @@ function Cp(t, e, n) {
|
|
|
6309
6309
|
y.onBlur
|
|
6310
6310
|
]), w = ef(n, {
|
|
6311
6311
|
isDisabled: e.collection.size !== 0
|
|
6312
|
-
}),
|
|
6313
|
-
|
|
6312
|
+
}), P = W(
|
|
6313
|
+
x,
|
|
6314
6314
|
{
|
|
6315
6315
|
role: "grid",
|
|
6316
6316
|
id: g,
|
|
6317
6317
|
"aria-multiselectable": c.selectionMode === "multiple" ? "true" : void 0
|
|
6318
6318
|
},
|
|
6319
|
-
e.isKeyboardNavigationDisabled ?
|
|
6319
|
+
e.isKeyboardNavigationDisabled ? T : y,
|
|
6320
6320
|
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
6321
6321
|
e.collection.size === 0 && {
|
|
6322
6322
|
tabIndex: w ? -1 : 0
|
|
6323
6323
|
},
|
|
6324
6324
|
C
|
|
6325
6325
|
);
|
|
6326
|
-
return r && (
|
|
6326
|
+
return r && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), xp({
|
|
6327
6327
|
getRowText: a
|
|
6328
6328
|
}, e), {
|
|
6329
|
-
gridProps:
|
|
6329
|
+
gridProps: P
|
|
6330
6330
|
};
|
|
6331
6331
|
}
|
|
6332
6332
|
function wp() {
|
|
@@ -6362,13 +6362,13 @@ function mu(t, e, n) {
|
|
|
6362
6362
|
let $ = $e(n.current);
|
|
6363
6363
|
if (i === "child") {
|
|
6364
6364
|
if (n.current.contains(document.activeElement) && n.current !== document.activeElement) return;
|
|
6365
|
-
let
|
|
6366
|
-
if (
|
|
6367
|
-
|
|
6365
|
+
let T = e.selectionManager.childFocusStrategy === "last" ? ar($) : $.firstChild();
|
|
6366
|
+
if (T) {
|
|
6367
|
+
he(T);
|
|
6368
6368
|
return;
|
|
6369
6369
|
}
|
|
6370
6370
|
}
|
|
6371
|
-
(d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) &&
|
|
6371
|
+
(d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) && he(n.current);
|
|
6372
6372
|
}, { itemProps: p, isPressed: m } = _n({
|
|
6373
6373
|
selectionManager: e.selectionManager,
|
|
6374
6374
|
key: r.key,
|
|
@@ -6378,16 +6378,16 @@ function mu(t, e, n) {
|
|
|
6378
6378
|
shouldSelectOnPressUp: o,
|
|
6379
6379
|
onAction: c ? () => c(r.key) : a,
|
|
6380
6380
|
isDisabled: e.collection.size === 0
|
|
6381
|
-
}), C =
|
|
6381
|
+
}), C = W(p, {
|
|
6382
6382
|
role: "gridcell",
|
|
6383
6383
|
onKeyDownCapture: ($) => {
|
|
6384
6384
|
if (!$.currentTarget.contains($.target) || e.isKeyboardNavigationDisabled) return;
|
|
6385
|
-
let
|
|
6386
|
-
switch (
|
|
6385
|
+
let T = $e(n.current);
|
|
6386
|
+
switch (T.currentNode = document.activeElement, $.key) {
|
|
6387
6387
|
case "ArrowLeft": {
|
|
6388
|
-
let w = u === "rtl" ?
|
|
6388
|
+
let w = u === "rtl" ? T.nextNode() : T.previousNode();
|
|
6389
6389
|
if (i === "child" && w === n.current && (w = null), $.preventDefault(), $.stopPropagation(), w)
|
|
6390
|
-
|
|
6390
|
+
he(w), Ze(w, {
|
|
6391
6391
|
containingElement: Xe(n.current)
|
|
6392
6392
|
});
|
|
6393
6393
|
else {
|
|
@@ -6395,18 +6395,18 @@ function mu(t, e, n) {
|
|
|
6395
6395
|
n.current.parentElement.dispatchEvent(new KeyboardEvent($.nativeEvent.type, $.nativeEvent));
|
|
6396
6396
|
break;
|
|
6397
6397
|
}
|
|
6398
|
-
i === "cell" && u === "rtl" ? (
|
|
6398
|
+
i === "cell" && u === "rtl" ? (he(n.current), Ze(n.current, {
|
|
6399
6399
|
containingElement: Xe(n.current)
|
|
6400
|
-
})) : (
|
|
6400
|
+
})) : (T.currentNode = n.current, w = u === "rtl" ? T.firstChild() : ar(T), w && (he(w), Ze(w, {
|
|
6401
6401
|
containingElement: Xe(n.current)
|
|
6402
6402
|
})));
|
|
6403
6403
|
}
|
|
6404
6404
|
break;
|
|
6405
6405
|
}
|
|
6406
6406
|
case "ArrowRight": {
|
|
6407
|
-
let w = u === "rtl" ?
|
|
6407
|
+
let w = u === "rtl" ? T.previousNode() : T.nextNode();
|
|
6408
6408
|
if (i === "child" && w === n.current && (w = null), $.preventDefault(), $.stopPropagation(), w)
|
|
6409
|
-
|
|
6409
|
+
he(w), Ze(w, {
|
|
6410
6410
|
containingElement: Xe(n.current)
|
|
6411
6411
|
});
|
|
6412
6412
|
else {
|
|
@@ -6414,9 +6414,9 @@ function mu(t, e, n) {
|
|
|
6414
6414
|
n.current.parentElement.dispatchEvent(new KeyboardEvent($.nativeEvent.type, $.nativeEvent));
|
|
6415
6415
|
break;
|
|
6416
6416
|
}
|
|
6417
|
-
i === "cell" && u === "ltr" ? (
|
|
6417
|
+
i === "cell" && u === "ltr" ? (he(n.current), Ze(n.current, {
|
|
6418
6418
|
containingElement: Xe(n.current)
|
|
6419
|
-
})) : (
|
|
6419
|
+
})) : (T.currentNode = n.current, w = u === "rtl" ? ar(T) : T.firstChild(), w && (he(w), Ze(w, {
|
|
6420
6420
|
containingElement: Xe(n.current)
|
|
6421
6421
|
})));
|
|
6422
6422
|
}
|
|
@@ -6438,11 +6438,11 @@ function mu(t, e, n) {
|
|
|
6438
6438
|
});
|
|
6439
6439
|
}
|
|
6440
6440
|
});
|
|
6441
|
-
var
|
|
6442
|
-
return l && (C["aria-colindex"] = ((
|
|
6443
|
-
let
|
|
6444
|
-
|
|
6445
|
-
|
|
6441
|
+
var x;
|
|
6442
|
+
return l && (C["aria-colindex"] = ((x = r.colIndex) !== null && x !== void 0 ? x : r.index) + 1), o && C.tabIndex != null && C.onPointerDown == null && (C.onPointerDown = ($) => {
|
|
6443
|
+
let T = $.currentTarget, w = T.getAttribute("tabindex");
|
|
6444
|
+
T.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
6445
|
+
T.setAttribute("tabindex", w);
|
|
6446
6446
|
});
|
|
6447
6447
|
}), {
|
|
6448
6448
|
gridCellProps: C,
|
|
@@ -6471,23 +6471,23 @@ function Dp(t, e, n) {
|
|
|
6471
6471
|
onPress() {
|
|
6472
6472
|
e.setSelectedValue(r);
|
|
6473
6473
|
}
|
|
6474
|
-
}), { focusableProps: g } = Tt(
|
|
6474
|
+
}), { focusableProps: g } = Tt(W(t, {
|
|
6475
6475
|
onFocus: () => e.setLastFocusedValue(r)
|
|
6476
|
-
}), n), C =
|
|
6476
|
+
}), n), C = W(f, g), x = pe(t, {
|
|
6477
6477
|
labelable: !0
|
|
6478
6478
|
}), $ = -1;
|
|
6479
6479
|
e.selectedValue != null ? e.selectedValue === r && ($ = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && ($ = 0), a && ($ = void 0);
|
|
6480
|
-
let { name:
|
|
6480
|
+
let { name: T, descriptionId: w, errorMessageId: P, validationBehavior: R } = bu.get(e);
|
|
6481
6481
|
return Tn(n, e.selectedValue, e.setSelectedValue), Wr({
|
|
6482
6482
|
validationBehavior: R
|
|
6483
6483
|
}, e, n), {
|
|
6484
|
-
labelProps:
|
|
6484
|
+
labelProps: W(m, {
|
|
6485
6485
|
onClick: (v) => v.preventDefault()
|
|
6486
6486
|
}),
|
|
6487
|
-
inputProps:
|
|
6487
|
+
inputProps: W(x, {
|
|
6488
6488
|
...C,
|
|
6489
6489
|
type: "radio",
|
|
6490
|
-
name:
|
|
6490
|
+
name: T,
|
|
6491
6491
|
tabIndex: $,
|
|
6492
6492
|
disabled: a,
|
|
6493
6493
|
required: e.isRequired && R === "native",
|
|
@@ -6496,7 +6496,7 @@ function Dp(t, e, n) {
|
|
|
6496
6496
|
onChange: d,
|
|
6497
6497
|
"aria-describedby": [
|
|
6498
6498
|
t["aria-describedby"],
|
|
6499
|
-
e.isInvalid ?
|
|
6499
|
+
e.isInvalid ? P : null,
|
|
6500
6500
|
w
|
|
6501
6501
|
].filter(Boolean).join(" ") || void 0
|
|
6502
6502
|
}),
|
|
@@ -6513,18 +6513,18 @@ function kp(t, e) {
|
|
|
6513
6513
|
labelElementType: "span",
|
|
6514
6514
|
isInvalid: e.isInvalid,
|
|
6515
6515
|
errorMessage: t.errorMessage || c
|
|
6516
|
-
}), g =
|
|
6516
|
+
}), g = pe(t, {
|
|
6517
6517
|
labelable: !0
|
|
6518
6518
|
}), { focusWithinProps: C } = qt({
|
|
6519
|
-
onBlurWithin(
|
|
6519
|
+
onBlurWithin(T) {
|
|
6520
6520
|
var w;
|
|
6521
|
-
(w = t.onBlur) === null || w === void 0 || w.call(t,
|
|
6521
|
+
(w = t.onBlur) === null || w === void 0 || w.call(t, T), e.selectedValue || e.setLastFocusedValue(null);
|
|
6522
6522
|
},
|
|
6523
6523
|
onFocusWithin: t.onFocus,
|
|
6524
6524
|
onFocusWithinChange: t.onFocusChange
|
|
6525
|
-
}),
|
|
6525
|
+
}), x = (T) => {
|
|
6526
6526
|
let w;
|
|
6527
|
-
switch (
|
|
6527
|
+
switch (T.key) {
|
|
6528
6528
|
case "ArrowRight":
|
|
6529
6529
|
u === "rtl" && o !== "vertical" ? w = "prev" : w = "next";
|
|
6530
6530
|
break;
|
|
@@ -6540,22 +6540,22 @@ function kp(t, e) {
|
|
|
6540
6540
|
default:
|
|
6541
6541
|
return;
|
|
6542
6542
|
}
|
|
6543
|
-
|
|
6544
|
-
let
|
|
6545
|
-
from:
|
|
6543
|
+
T.preventDefault();
|
|
6544
|
+
let P = $e(T.currentTarget, {
|
|
6545
|
+
from: T.target
|
|
6546
6546
|
}), R;
|
|
6547
|
-
w === "next" ? (R =
|
|
6548
|
-
}, $ =
|
|
6547
|
+
w === "next" ? (R = P.nextNode(), R || (P.currentNode = T.currentTarget, R = P.firstChild())) : (R = P.previousNode(), R || (P.currentNode = T.currentTarget, R = P.lastChild())), R && (R.focus(), e.setSelectedValue(R.value));
|
|
6548
|
+
}, $ = me(n);
|
|
6549
6549
|
return bu.set(e, {
|
|
6550
6550
|
name: $,
|
|
6551
6551
|
descriptionId: m.id,
|
|
6552
6552
|
errorMessageId: y.id,
|
|
6553
6553
|
validationBehavior: a
|
|
6554
6554
|
}), {
|
|
6555
|
-
radioGroupProps:
|
|
6555
|
+
radioGroupProps: W(g, {
|
|
6556
6556
|
// https://www.w3.org/TR/wai-aria-1.2/#radiogroup
|
|
6557
6557
|
role: "radiogroup",
|
|
6558
|
-
onKeyDown:
|
|
6558
|
+
onKeyDown: x,
|
|
6559
6559
|
"aria-invalid": e.isInvalid || void 0,
|
|
6560
6560
|
"aria-errormessage": t["aria-errormessage"],
|
|
6561
6561
|
"aria-readonly": r || void 0,
|
|
@@ -6751,8 +6751,8 @@ function Tp(t) {
|
|
|
6751
6751
|
}
|
|
6752
6752
|
function Ap(t, e, n) {
|
|
6753
6753
|
let r = ft(Tp(Ju), "@react-aria/searchfield"), { isDisabled: l, isReadOnly: i, onSubmit: o, onClear: a, type: u = "search" } = t, s = (C) => {
|
|
6754
|
-
const
|
|
6755
|
-
|
|
6754
|
+
const x = C.key;
|
|
6755
|
+
x === "Enter" && (l || i) && C.preventDefault(), !(l || i) && (x === "Enter" && o && (C.preventDefault(), o(e.value)), x === "Escape" && (e.value === "" ? C.continuePropagation() : (e.setValue(""), a && a())));
|
|
6756
6756
|
}, c = () => {
|
|
6757
6757
|
e.setValue(""), a && a();
|
|
6758
6758
|
}, d = () => {
|
|
@@ -6790,7 +6790,7 @@ function es(t, e, n) {
|
|
|
6790
6790
|
let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: a = "aria" } = t, u = In({
|
|
6791
6791
|
usage: "search",
|
|
6792
6792
|
sensitivity: "base"
|
|
6793
|
-
}), s =
|
|
6793
|
+
}), s = H(() => r || new Vo(e.collection, e.disabledKeys, null, u), [
|
|
6794
6794
|
r,
|
|
6795
6795
|
e.collection,
|
|
6796
6796
|
e.disabledKeys,
|
|
@@ -6819,16 +6819,16 @@ function es(t, e, n) {
|
|
|
6819
6819
|
onTypeSelect(v) {
|
|
6820
6820
|
e.setSelectedKey(v);
|
|
6821
6821
|
}
|
|
6822
|
-
}), { isInvalid: m, validationErrors: y, validationDetails: g } = e.displayValidation, { labelProps: C, fieldProps:
|
|
6822
|
+
}), { isInvalid: m, validationErrors: y, validationDetails: g } = e.displayValidation, { labelProps: C, fieldProps: x, descriptionProps: $, errorMessageProps: T } = Gr({
|
|
6823
6823
|
...t,
|
|
6824
6824
|
labelElementType: "span",
|
|
6825
6825
|
isInvalid: m,
|
|
6826
6826
|
errorMessage: t.errorMessage || y
|
|
6827
6827
|
});
|
|
6828
6828
|
p.onKeyDown = p.onKeyDownCapture, delete p.onKeyDownCapture;
|
|
6829
|
-
let w =
|
|
6829
|
+
let w = pe(t, {
|
|
6830
6830
|
labelable: !0
|
|
6831
|
-
}),
|
|
6831
|
+
}), P = W(p, c, x), R = me();
|
|
6832
6832
|
return Qu.set(e, {
|
|
6833
6833
|
isDisabled: l,
|
|
6834
6834
|
isRequired: i,
|
|
@@ -6841,15 +6841,15 @@ function es(t, e, n) {
|
|
|
6841
6841
|
t.isDisabled || (n.current.focus(), Ni("keyboard"));
|
|
6842
6842
|
}
|
|
6843
6843
|
},
|
|
6844
|
-
triggerProps:
|
|
6845
|
-
...
|
|
6844
|
+
triggerProps: W(w, {
|
|
6845
|
+
...P,
|
|
6846
6846
|
isDisabled: l,
|
|
6847
|
-
onKeyDown: Ie(
|
|
6847
|
+
onKeyDown: Ie(P.onKeyDown, f, t.onKeyDown),
|
|
6848
6848
|
onKeyUp: t.onKeyUp,
|
|
6849
6849
|
"aria-labelledby": [
|
|
6850
6850
|
R,
|
|
6851
|
-
|
|
6852
|
-
|
|
6851
|
+
P["aria-labelledby"],
|
|
6852
|
+
P["aria-label"] && !P["aria-labelledby"] ? P.id : null
|
|
6853
6853
|
].filter(Boolean).join(" "),
|
|
6854
6854
|
onFocus(v) {
|
|
6855
6855
|
e.isFocused || (t.onFocus && t.onFocus(v), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
|
|
@@ -6872,12 +6872,12 @@ function es(t, e, n) {
|
|
|
6872
6872
|
v.currentTarget.contains(v.relatedTarget) || (t.onBlur && t.onBlur(v), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
|
|
6873
6873
|
},
|
|
6874
6874
|
"aria-labelledby": [
|
|
6875
|
-
|
|
6876
|
-
|
|
6875
|
+
x["aria-labelledby"],
|
|
6876
|
+
P["aria-label"] && !x["aria-labelledby"] ? P.id : null
|
|
6877
6877
|
].filter(Boolean).join(" ")
|
|
6878
6878
|
},
|
|
6879
6879
|
descriptionProps: $,
|
|
6880
|
-
errorMessageProps:
|
|
6880
|
+
errorMessageProps: T,
|
|
6881
6881
|
isInvalid: m,
|
|
6882
6882
|
validationErrors: y,
|
|
6883
6883
|
validationDetails: g
|
|
@@ -7434,12 +7434,12 @@ class Fp extends Fa {
|
|
|
7434
7434
|
let n = this.collection.getItem(e);
|
|
7435
7435
|
if (n) {
|
|
7436
7436
|
if (n.type === "column") {
|
|
7437
|
-
let r = Ne(
|
|
7437
|
+
let r = Ne(se(n, this.collection));
|
|
7438
7438
|
if (r) return r.key;
|
|
7439
7439
|
let l = this.getFirstKey();
|
|
7440
7440
|
if (l == null) return;
|
|
7441
7441
|
let i = this.collection.getItem(l);
|
|
7442
|
-
return Je(
|
|
7442
|
+
return Je(se(i, this.collection), n.index).key;
|
|
7443
7443
|
}
|
|
7444
7444
|
return super.getKeyBelow(e);
|
|
7445
7445
|
}
|
|
@@ -7458,14 +7458,14 @@ class Fp extends Fa {
|
|
|
7458
7458
|
let n = this.findNextKey(e.key, (l) => l.type === "column");
|
|
7459
7459
|
if (n != null) return n;
|
|
7460
7460
|
let r = this.collection.headerRows[e.level];
|
|
7461
|
-
for (let l of
|
|
7461
|
+
for (let l of se(r, this.collection))
|
|
7462
7462
|
if (l.type === "column") return l.key;
|
|
7463
7463
|
}
|
|
7464
7464
|
findPreviousColumnKey(e) {
|
|
7465
7465
|
let n = this.findPreviousKey(e.key, (i) => i.type === "column");
|
|
7466
7466
|
if (n != null) return n;
|
|
7467
7467
|
let r = this.collection.headerRows[e.level], l = [
|
|
7468
|
-
...
|
|
7468
|
+
...se(r, this.collection)
|
|
7469
7469
|
];
|
|
7470
7470
|
for (let i = l.length - 1; i >= 0; i--) {
|
|
7471
7471
|
let o = l[i];
|
|
@@ -7491,7 +7491,7 @@ class Fp extends Fa {
|
|
|
7491
7491
|
let o = !1;
|
|
7492
7492
|
for (; l != null; ) {
|
|
7493
7493
|
let a = r.getItem(l);
|
|
7494
|
-
for (let u of
|
|
7494
|
+
for (let u of se(a, this.collection)) {
|
|
7495
7495
|
let s = r.columns[u.index];
|
|
7496
7496
|
if (r.rowHeaderColumnKeys.has(s.key) && u.textValue) {
|
|
7497
7497
|
let c = u.textValue.slice(0, e.length);
|
|
@@ -7515,7 +7515,7 @@ function Np(t, e, n) {
|
|
|
7515
7515
|
let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, a = In({
|
|
7516
7516
|
usage: "search",
|
|
7517
7517
|
sensitivity: "base"
|
|
7518
|
-
}), { direction: u } = He(), s = e.selectionManager.disabledBehavior, c =
|
|
7518
|
+
}), { direction: u } = He(), s = e.selectionManager.disabledBehavior, c = H(() => r || new Fp({
|
|
7519
7519
|
collection: e.collection,
|
|
7520
7520
|
disabledKeys: e.disabledKeys,
|
|
7521
7521
|
disabledBehavior: s,
|
|
@@ -7534,7 +7534,7 @@ function Np(t, e, n) {
|
|
|
7534
7534
|
a,
|
|
7535
7535
|
i,
|
|
7536
7536
|
o
|
|
7537
|
-
]), d =
|
|
7537
|
+
]), d = me(t.id);
|
|
7538
7538
|
tl.set(e, d);
|
|
7539
7539
|
let { gridProps: f } = Cp({
|
|
7540
7540
|
...t,
|
|
@@ -7542,9 +7542,9 @@ function Np(t, e, n) {
|
|
|
7542
7542
|
keyboardDelegate: c
|
|
7543
7543
|
}, e, n);
|
|
7544
7544
|
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7545
|
-
let { column: p, direction: m } = e.sortDescriptor || {}, y = ft(Rp(nl), "@react-aria/table"), g =
|
|
7546
|
-
var
|
|
7547
|
-
let $ = (
|
|
7545
|
+
let { column: p, direction: m } = e.sortDescriptor || {}, y = ft(Rp(nl), "@react-aria/table"), g = H(() => {
|
|
7546
|
+
var x;
|
|
7547
|
+
let $ = (x = e.collection.columns.find((T) => T.key === p)) === null || x === void 0 ? void 0 : x.textValue;
|
|
7548
7548
|
return m && p ? y.format(`${m}Sort`, {
|
|
7549
7549
|
columnName: $
|
|
7550
7550
|
}) : void 0;
|
|
@@ -7558,7 +7558,7 @@ function Np(t, e, n) {
|
|
|
7558
7558
|
}, [
|
|
7559
7559
|
g
|
|
7560
7560
|
]), {
|
|
7561
|
-
gridProps:
|
|
7561
|
+
gridProps: W(f, C, {
|
|
7562
7562
|
// merge sort description with long press information
|
|
7563
7563
|
"aria-describedby": [
|
|
7564
7564
|
C["aria-describedby"],
|
|
@@ -7594,7 +7594,7 @@ function Op(t, e, n) {
|
|
|
7594
7594
|
i.key
|
|
7595
7595
|
]), {
|
|
7596
7596
|
columnHeaderProps: {
|
|
7597
|
-
...
|
|
7597
|
+
...W(
|
|
7598
7598
|
a,
|
|
7599
7599
|
s,
|
|
7600
7600
|
c,
|
|
@@ -7644,7 +7644,7 @@ function zp(t, e, n) {
|
|
|
7644
7644
|
let f = vd(r.props), p = o.hasAction ? f : {};
|
|
7645
7645
|
return {
|
|
7646
7646
|
rowProps: {
|
|
7647
|
-
...
|
|
7647
|
+
...W(i, u, p),
|
|
7648
7648
|
"aria-labelledby": Ip(e, r.key)
|
|
7649
7649
|
},
|
|
7650
7650
|
...o
|
|
@@ -7669,27 +7669,27 @@ function Hp() {
|
|
|
7669
7669
|
return wp();
|
|
7670
7670
|
}
|
|
7671
7671
|
function Wp(t, e) {
|
|
7672
|
-
let n =
|
|
7672
|
+
let n = pe(t, {
|
|
7673
7673
|
labelable: !0
|
|
7674
7674
|
}), { hoverProps: r } = kt({
|
|
7675
7675
|
onHoverStart: () => e == null ? void 0 : e.open(!0),
|
|
7676
7676
|
onHoverEnd: () => e == null ? void 0 : e.close()
|
|
7677
7677
|
});
|
|
7678
7678
|
return {
|
|
7679
|
-
tooltipProps:
|
|
7679
|
+
tooltipProps: W(n, r, {
|
|
7680
7680
|
role: "tooltip"
|
|
7681
7681
|
})
|
|
7682
7682
|
};
|
|
7683
7683
|
}
|
|
7684
7684
|
function Up(t, e, n) {
|
|
7685
|
-
let { isDisabled: r, trigger: l } = t, i =
|
|
7685
|
+
let { isDisabled: r, trigger: l } = t, i = me(), o = M(!1), a = M(!1), u = () => {
|
|
7686
7686
|
(o.current || a.current) && e.open(a.current);
|
|
7687
7687
|
}, s = (C) => {
|
|
7688
7688
|
!o.current && !a.current && e.close(C);
|
|
7689
7689
|
};
|
|
7690
7690
|
L(() => {
|
|
7691
|
-
let C = (
|
|
7692
|
-
n && n.current &&
|
|
7691
|
+
let C = (x) => {
|
|
7692
|
+
n && n.current && x.key === "Escape" && (x.stopPropagation(), e.close(!0));
|
|
7693
7693
|
};
|
|
7694
7694
|
if (e.isOpen)
|
|
7695
7695
|
return document.addEventListener("keydown", C, !0), () => {
|
|
@@ -7721,7 +7721,7 @@ function Up(t, e, n) {
|
|
|
7721
7721
|
return {
|
|
7722
7722
|
triggerProps: {
|
|
7723
7723
|
"aria-describedby": e.isOpen ? i : void 0,
|
|
7724
|
-
...
|
|
7724
|
+
...W(g, y, {
|
|
7725
7725
|
onPointerDown: f,
|
|
7726
7726
|
onKeyDown: f
|
|
7727
7727
|
})
|
|
@@ -7796,17 +7796,17 @@ function Gp(t, e) {
|
|
|
7796
7796
|
return !0;
|
|
7797
7797
|
}
|
|
7798
7798
|
function rl(t) {
|
|
7799
|
-
let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = M(!1), [, a] = z(!1), u = M(null), s = M(null), [, c] = z(null), d =
|
|
7799
|
+
let { selectionMode: e = "none", disallowEmptySelection: n, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = M(!1), [, a] = z(!1), u = M(null), s = M(null), [, c] = z(null), d = H(() => ai(t.selectedKeys), [
|
|
7800
7800
|
t.selectedKeys
|
|
7801
|
-
]), f =
|
|
7801
|
+
]), f = H(() => ai(t.defaultSelectedKeys, new Te()), [
|
|
7802
7802
|
t.defaultSelectedKeys
|
|
7803
|
-
]), [p, m] = rt(d, f, t.onSelectionChange), y =
|
|
7803
|
+
]), [p, m] = rt(d, f, t.onSelectionChange), y = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
7804
7804
|
t.disabledKeys
|
|
7805
7805
|
]), [g, C] = z(l);
|
|
7806
7806
|
l === "replace" && g === "toggle" && typeof p == "object" && p.size === 0 && C("replace");
|
|
7807
|
-
let
|
|
7807
|
+
let x = M(l);
|
|
7808
7808
|
return L(() => {
|
|
7809
|
-
l !==
|
|
7809
|
+
l !== x.current && (C(l), x.current = l);
|
|
7810
7810
|
}, [
|
|
7811
7811
|
l
|
|
7812
7812
|
]), {
|
|
@@ -7826,8 +7826,8 @@ function rl(t) {
|
|
|
7826
7826
|
get childFocusStrategy() {
|
|
7827
7827
|
return s.current;
|
|
7828
7828
|
},
|
|
7829
|
-
setFocusedKey($,
|
|
7830
|
-
u.current = $, s.current =
|
|
7829
|
+
setFocusedKey($, T = "first") {
|
|
7830
|
+
u.current = $, s.current = T, c($);
|
|
7831
7831
|
},
|
|
7832
7832
|
selectedKeys: p,
|
|
7833
7833
|
setSelectedKeys($) {
|
|
@@ -8035,7 +8035,7 @@ class ll {
|
|
|
8035
8035
|
for (; r != null; ) {
|
|
8036
8036
|
if (this.canSelectItem(r)) {
|
|
8037
8037
|
let l = this.collection.getItem(r);
|
|
8038
|
-
l.type === "item" && e.push(r), l.hasChildNodes && (this.allowsCellSelection || l.type !== "item") && n(Ne(
|
|
8038
|
+
l.type === "item" && e.push(r), l.hasChildNodes && (this.allowsCellSelection || l.type !== "item") && n(Ne(se(l, this.collection)).key);
|
|
8039
8039
|
}
|
|
8040
8040
|
r = this.collection.getKeyAfter(r);
|
|
8041
8041
|
}
|
|
@@ -8101,15 +8101,15 @@ class ll {
|
|
|
8101
8101
|
}
|
|
8102
8102
|
}
|
|
8103
8103
|
function Yp(t) {
|
|
8104
|
-
let { filter: e, layoutDelegate: n } = t, r = rl(t), l =
|
|
8104
|
+
let { filter: e, layoutDelegate: n } = t, r = rl(t), l = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
8105
8105
|
t.disabledKeys
|
|
8106
8106
|
]), i = X((c) => e ? new oi(e(c)) : new oi(c), [
|
|
8107
8107
|
e
|
|
8108
|
-
]), o =
|
|
8108
|
+
]), o = H(() => ({
|
|
8109
8109
|
suppressTextValueWarning: t.suppressTextValueWarning
|
|
8110
8110
|
}), [
|
|
8111
8111
|
t.suppressTextValueWarning
|
|
8112
|
-
]), a = Zr(t, i, o), u =
|
|
8112
|
+
]), a = Zr(t, i, o), u = H(() => new ll(a, r, {
|
|
8113
8113
|
layoutDelegate: n
|
|
8114
8114
|
}), [
|
|
8115
8115
|
a,
|
|
@@ -8119,7 +8119,7 @@ function Yp(t) {
|
|
|
8119
8119
|
const s = M(null);
|
|
8120
8120
|
return L(() => {
|
|
8121
8121
|
if (r.focusedKey != null && !a.getItem(r.focusedKey) && s.current) {
|
|
8122
|
-
const C = s.current.getItem(r.focusedKey),
|
|
8122
|
+
const C = s.current.getItem(r.focusedKey), x = [
|
|
8123
8123
|
...s.current.getKeys()
|
|
8124
8124
|
].map((v) => {
|
|
8125
8125
|
const B = s.current.getItem(v);
|
|
@@ -8131,12 +8131,12 @@ function Yp(t) {
|
|
|
8131
8131
|
return (B == null ? void 0 : B.type) === "item" ? B : null;
|
|
8132
8132
|
}).filter((v) => v !== null);
|
|
8133
8133
|
var c, d;
|
|
8134
|
-
const
|
|
8134
|
+
const T = ((c = x == null ? void 0 : x.length) !== null && c !== void 0 ? c : 0) - ((d = $ == null ? void 0 : $.length) !== null && d !== void 0 ? d : 0);
|
|
8135
8135
|
var f, p, m;
|
|
8136
|
-
let w = Math.min(
|
|
8136
|
+
let w = Math.min(T > 1 ? Math.max(((f = C == null ? void 0 : C.index) !== null && f !== void 0 ? f : 0) - T + 1, 0) : (p = C == null ? void 0 : C.index) !== null && p !== void 0 ? p : 0, ((m = $ == null ? void 0 : $.length) !== null && m !== void 0 ? m : 0) - 1), P = null, R = !1;
|
|
8137
8137
|
for (; w >= 0; ) {
|
|
8138
8138
|
if (!u.isDisabled($[w].key)) {
|
|
8139
|
-
|
|
8139
|
+
P = $[w];
|
|
8140
8140
|
break;
|
|
8141
8141
|
}
|
|
8142
8142
|
if (w < $.length - 1 && !R) w++;
|
|
@@ -8146,7 +8146,7 @@ function Yp(t) {
|
|
|
8146
8146
|
w > ((y = C == null ? void 0 : C.index) !== null && y !== void 0 ? y : 0) && (w = (g = C == null ? void 0 : C.index) !== null && g !== void 0 ? g : 0), w--;
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
8149
|
-
r.setFocusedKey(
|
|
8149
|
+
r.setFocusedKey(P ? P.key : null);
|
|
8150
8150
|
}
|
|
8151
8151
|
s.current = a;
|
|
8152
8152
|
}, [
|
|
@@ -8162,7 +8162,7 @@ function Yp(t) {
|
|
|
8162
8162
|
}
|
|
8163
8163
|
function qp(t) {
|
|
8164
8164
|
var e;
|
|
8165
|
-
let [n, r] = rt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l =
|
|
8165
|
+
let [n, r] = rt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = H(() => n != null ? [
|
|
8166
8166
|
n
|
|
8167
8167
|
] : [], [
|
|
8168
8168
|
n
|
|
@@ -8242,7 +8242,7 @@ function Xp(t) {
|
|
|
8242
8242
|
}
|
|
8243
8243
|
let Zp = Math.round(Math.random() * 1e10), Jp = 0;
|
|
8244
8244
|
function Qp(t) {
|
|
8245
|
-
let e =
|
|
8245
|
+
let e = H(() => t.name || `radio-group-${Zp}-${++Jp}`, [
|
|
8246
8246
|
t.name
|
|
8247
8247
|
]);
|
|
8248
8248
|
var n;
|
|
@@ -8303,7 +8303,7 @@ function Rs(t) {
|
|
|
8303
8303
|
};
|
|
8304
8304
|
}
|
|
8305
8305
|
function tv(t) {
|
|
8306
|
-
let { collection: e, focusMode: n } = t, r = t.UNSAFE_selectionState || rl(t), l =
|
|
8306
|
+
let { collection: e, focusMode: n } = t, r = t.UNSAFE_selectionState || rl(t), l = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
8307
8307
|
t.disabledKeys
|
|
8308
8308
|
]), i = r.setFocusedKey;
|
|
8309
8309
|
r.setFocusedKey = (u, s) => {
|
|
@@ -8311,13 +8311,13 @@ function tv(t) {
|
|
|
8311
8311
|
let f = e.getItem(u);
|
|
8312
8312
|
if ((f == null ? void 0 : f.type) === "item") {
|
|
8313
8313
|
var c, d;
|
|
8314
|
-
let p =
|
|
8314
|
+
let p = se(f, e);
|
|
8315
8315
|
s === "last" ? u = (c = Qe(p)) === null || c === void 0 ? void 0 : c.key : u = (d = Ne(p)) === null || d === void 0 ? void 0 : d.key;
|
|
8316
8316
|
}
|
|
8317
8317
|
}
|
|
8318
8318
|
i(u, s);
|
|
8319
8319
|
};
|
|
8320
|
-
let o =
|
|
8320
|
+
let o = H(() => new ll(e, r), [
|
|
8321
8321
|
e,
|
|
8322
8322
|
r
|
|
8323
8323
|
]);
|
|
@@ -8335,7 +8335,7 @@ function tv(t) {
|
|
|
8335
8335
|
}
|
|
8336
8336
|
if (m) {
|
|
8337
8337
|
const y = m.hasChildNodes ? [
|
|
8338
|
-
...
|
|
8338
|
+
...se(m, e)
|
|
8339
8339
|
] : [], g = m.hasChildNodes && s !== u && u.index < y.length ? y[u.index].key : m.key;
|
|
8340
8340
|
r.setFocusedKey(g);
|
|
8341
8341
|
} else r.setFocusedKey(null);
|
|
@@ -8644,7 +8644,7 @@ const iv = {
|
|
|
8644
8644
|
descending: "ascending"
|
|
8645
8645
|
};
|
|
8646
8646
|
function ov(t) {
|
|
8647
|
-
let [e, n] = z(!1), { selectionMode: r = "none", showSelectionCheckboxes: l, showDragButtons: i } = t, o =
|
|
8647
|
+
let [e, n] = z(!1), { selectionMode: r = "none", showSelectionCheckboxes: l, showDragButtons: i } = t, o = H(() => ({
|
|
8648
8648
|
showSelectionCheckboxes: l && r !== "none",
|
|
8649
8649
|
showDragButtons: i,
|
|
8650
8650
|
selectionMode: r,
|
|
@@ -8842,7 +8842,7 @@ let cv = js;
|
|
|
8842
8842
|
const dv = 1500, si = 500;
|
|
8843
8843
|
let it = {}, fv = 0, Nt = !1, Re = null, ot = null;
|
|
8844
8844
|
function Vs(t = {}) {
|
|
8845
|
-
let { delay: e = dv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o =
|
|
8845
|
+
let { delay: e = dv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o = H(() => `${++fv}`, []), a = M(void 0), u = M(i), s = () => {
|
|
8846
8846
|
it[o] = f;
|
|
8847
8847
|
}, c = () => {
|
|
8848
8848
|
for (let m in it) m !== o && (it[m](!0), delete it[m]);
|
|
@@ -8921,7 +8921,7 @@ class pv {
|
|
|
8921
8921
|
}
|
|
8922
8922
|
}
|
|
8923
8923
|
function Hs(t) {
|
|
8924
|
-
let { onExpandedChange: e } = t, [n, r] = rt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = rl(t), i =
|
|
8924
|
+
let { onExpandedChange: e } = t, [n, r] = rt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = rl(t), i = H(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
8925
8925
|
t.disabledKeys
|
|
8926
8926
|
]), o = Zr(t, X((u) => new pv(u, {
|
|
8927
8927
|
expandedKeys: n
|
|
@@ -8977,7 +8977,7 @@ function mv({
|
|
|
8977
8977
|
"aria-label": "Background overlay",
|
|
8978
8978
|
role: "dialog",
|
|
8979
8979
|
"aria-modal": "true",
|
|
8980
|
-
className:
|
|
8980
|
+
className: U(
|
|
8981
8981
|
"proton-ScreenOverlay__background",
|
|
8982
8982
|
"proton-ScreenOverlay__z-index",
|
|
8983
8983
|
t ? "proton-ScreenOverlay__fade-in" : "proton-ScreenOverlay__overlay"
|
|
@@ -9014,41 +9014,41 @@ const bv = ({ children: t }) => {
|
|
|
9014
9014
|
"data-testid": c
|
|
9015
9015
|
}) => {
|
|
9016
9016
|
hv(t);
|
|
9017
|
-
const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null),
|
|
9017
|
+
const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null), x = M(null), $ = M(window.location.pathname), T = o && o.length > 0, w = () => {
|
|
9018
9018
|
m(!0), g(0), setTimeout(() => {
|
|
9019
9019
|
s == null || s(), m(!1);
|
|
9020
9020
|
}, 300);
|
|
9021
|
-
},
|
|
9021
|
+
}, P = T ? Hs({
|
|
9022
9022
|
items: o,
|
|
9023
|
-
children: o.map((
|
|
9023
|
+
children: o.map((E) => /* @__PURE__ */ bi(Xr, { ...E, key: E.key }, E.label)),
|
|
9024
9024
|
selectedKeys: new Set(n),
|
|
9025
|
-
onSelectionChange: (
|
|
9025
|
+
onSelectionChange: (E) => u == null ? void 0 : u(E),
|
|
9026
9026
|
selectionMode: e,
|
|
9027
9027
|
disabledKeys: r
|
|
9028
|
-
}) : null, { menuProps: R } =
|
|
9028
|
+
}) : null, { menuProps: R } = T ? Ba(
|
|
9029
9029
|
{
|
|
9030
9030
|
autoFocus: !0,
|
|
9031
9031
|
shouldFocusWrap: !0,
|
|
9032
|
-
onAction: (
|
|
9033
|
-
var
|
|
9034
|
-
return (
|
|
9032
|
+
onAction: (E) => {
|
|
9033
|
+
var D, N;
|
|
9034
|
+
return (N = (D = o.find((S) => S.key === E)) == null ? void 0 : D.onAction) == null ? void 0 : N.call(D, E);
|
|
9035
9035
|
},
|
|
9036
9036
|
onClose: () => s == null ? void 0 : s(),
|
|
9037
9037
|
disabledKeys: r,
|
|
9038
|
-
onSelectionChange: (
|
|
9038
|
+
onSelectionChange: (E) => u == null ? void 0 : u(E),
|
|
9039
9039
|
selectionMode: e,
|
|
9040
9040
|
selectedKeys: n,
|
|
9041
9041
|
"aria-label": "Action Menu"
|
|
9042
9042
|
},
|
|
9043
|
-
|
|
9044
|
-
|
|
9043
|
+
P,
|
|
9044
|
+
x
|
|
9045
9045
|
) : { menuProps: {} };
|
|
9046
9046
|
L(() => {
|
|
9047
9047
|
t && C.current && g(C.current.scrollHeight);
|
|
9048
9048
|
}, [t, C]), L(() => {
|
|
9049
9049
|
a && ($.current && $.current !== location.pathname && w(), $.current = location.pathname);
|
|
9050
9050
|
}, [p, a]);
|
|
9051
|
-
const v = C.current ? C.current.getBoundingClientRect().height > window.innerHeight : !1, B = l ||
|
|
9051
|
+
const v = C.current ? C.current.getBoundingClientRect().height > window.innerHeight : !1, B = l || T || i;
|
|
9052
9052
|
return t ? /* @__PURE__ */ b.jsx(bv, { children: /* @__PURE__ */ b.jsx(
|
|
9053
9053
|
"div",
|
|
9054
9054
|
{
|
|
@@ -9060,33 +9060,33 @@ const bv = ({ children: t }) => {
|
|
|
9060
9060
|
"div",
|
|
9061
9061
|
{
|
|
9062
9062
|
"data-testid": c || "ActionMenu-wrapper",
|
|
9063
|
-
className:
|
|
9063
|
+
className: U(
|
|
9064
9064
|
"proton-ActionMenu__wrapper",
|
|
9065
9065
|
v && "proton-ActionMenu__wrapper--scrollable"
|
|
9066
9066
|
),
|
|
9067
9067
|
children: /* @__PURE__ */ b.jsx(
|
|
9068
9068
|
"div",
|
|
9069
9069
|
{
|
|
9070
|
-
className:
|
|
9070
|
+
className: U("proton-ActionMenu__card", d),
|
|
9071
9071
|
"data-testid": "ActionMenu-content",
|
|
9072
9072
|
style: { height: `${y}px` },
|
|
9073
|
-
children: /* @__PURE__ */ b.jsx("div", { ref:
|
|
9073
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: x, children: /* @__PURE__ */ b.jsx("div", { ...R, ref: C, children: B ? /* @__PURE__ */ b.jsxs(Kn, { autoFocus: !0, contain: !0, children: [
|
|
9074
9074
|
l && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof l == "function" ? l({ close: w }) : l }),
|
|
9075
|
-
|
|
9075
|
+
T && /* @__PURE__ */ b.jsx(
|
|
9076
9076
|
"div",
|
|
9077
9077
|
{
|
|
9078
|
-
className:
|
|
9078
|
+
className: U(
|
|
9079
9079
|
"proton-ActionMenu__list",
|
|
9080
9080
|
e === "none" && "proton-ActionMenu__list--disabled"
|
|
9081
9081
|
),
|
|
9082
|
-
children: Array.from(
|
|
9082
|
+
children: Array.from(P.collection).map((E) => /* @__PURE__ */ b.jsx(
|
|
9083
9083
|
gv,
|
|
9084
9084
|
{
|
|
9085
|
-
item:
|
|
9086
|
-
state:
|
|
9087
|
-
to:
|
|
9085
|
+
item: E,
|
|
9086
|
+
state: P,
|
|
9087
|
+
to: E.props.to
|
|
9088
9088
|
},
|
|
9089
|
-
|
|
9089
|
+
E.key
|
|
9090
9090
|
))
|
|
9091
9091
|
}
|
|
9092
9092
|
),
|
|
@@ -9147,7 +9147,7 @@ const bv = ({ children: t }) => {
|
|
|
9147
9147
|
children: e,
|
|
9148
9148
|
palette: n = _c
|
|
9149
9149
|
}) => {
|
|
9150
|
-
const r = M(null), l = yv[t], i =
|
|
9150
|
+
const r = M(null), l = yv[t], i = H(
|
|
9151
9151
|
() => xv(n, t),
|
|
9152
9152
|
[n, t]
|
|
9153
9153
|
);
|
|
@@ -9195,16 +9195,16 @@ function xv(t, e) {
|
|
|
9195
9195
|
case Pt.DARK:
|
|
9196
9196
|
return {
|
|
9197
9197
|
"--proton-control__background-color": en,
|
|
9198
|
-
"--proton-control__text-color":
|
|
9199
|
-
"--proton-control__border-color":
|
|
9200
|
-
"--proton-control__shadow-color":
|
|
9198
|
+
"--proton-control__text-color": ye.WHITE,
|
|
9199
|
+
"--proton-control__border-color": ye.GRAY_DARK,
|
|
9200
|
+
"--proton-control__shadow-color": ye.GRAY_DARK,
|
|
9201
9201
|
...l
|
|
9202
9202
|
};
|
|
9203
9203
|
case Pt.LIGHT:
|
|
9204
9204
|
return {
|
|
9205
|
-
"--proton-control__background-color":
|
|
9206
|
-
"--proton-control__text-color":
|
|
9207
|
-
"--proton-control__border-color":
|
|
9205
|
+
"--proton-control__background-color": ye.WHITE,
|
|
9206
|
+
"--proton-control__text-color": ye.GRAY_DARK,
|
|
9207
|
+
"--proton-control__border-color": ye.GRAY_LIGHT,
|
|
9208
9208
|
"--proton-control__shadow-color": Gn(
|
|
9209
9209
|
en,
|
|
9210
9210
|
0.9
|
|
@@ -9214,7 +9214,7 @@ function xv(t, e) {
|
|
|
9214
9214
|
case Pt.CUSTOM_DARK:
|
|
9215
9215
|
return {
|
|
9216
9216
|
"--proton-control__background-color": en,
|
|
9217
|
-
"--proton-control__text-color":
|
|
9217
|
+
"--proton-control__text-color": ye.WHITE,
|
|
9218
9218
|
"--proton-control__border-color": r,
|
|
9219
9219
|
"--proton-control__shadow-color": n,
|
|
9220
9220
|
...l
|
|
@@ -9222,9 +9222,9 @@ function xv(t, e) {
|
|
|
9222
9222
|
default:
|
|
9223
9223
|
return {
|
|
9224
9224
|
"--proton-control__background-color": en,
|
|
9225
|
-
"--proton-control__text-color":
|
|
9226
|
-
"--proton-control__border-color":
|
|
9227
|
-
"--proton-control__shadow-color":
|
|
9225
|
+
"--proton-control__text-color": ye.WHITE,
|
|
9226
|
+
"--proton-control__border-color": ye.GRAY_DARK,
|
|
9227
|
+
"--proton-control__shadow-color": ye.GRAY_DARK,
|
|
9228
9228
|
...l
|
|
9229
9229
|
};
|
|
9230
9230
|
}
|
|
@@ -9244,7 +9244,7 @@ const Jh = {
|
|
|
9244
9244
|
role: "status",
|
|
9245
9245
|
"aria-live": "polite",
|
|
9246
9246
|
"data-testid": n["data-testid"],
|
|
9247
|
-
className:
|
|
9247
|
+
className: U(
|
|
9248
9248
|
"proton-Badge",
|
|
9249
9249
|
t && `proton-Badge--${t}`,
|
|
9250
9250
|
r
|
|
@@ -9281,7 +9281,7 @@ function Gs({
|
|
|
9281
9281
|
{
|
|
9282
9282
|
...f,
|
|
9283
9283
|
...c,
|
|
9284
|
-
className:
|
|
9284
|
+
className: U(
|
|
9285
9285
|
"proton-Button",
|
|
9286
9286
|
`proton-Button--${t}`,
|
|
9287
9287
|
i && "proton-Button--disabled"
|
|
@@ -9323,10 +9323,10 @@ const Ys = {
|
|
|
9323
9323
|
) })
|
|
9324
9324
|
}, Ev = {
|
|
9325
9325
|
default: {
|
|
9326
|
-
background:
|
|
9327
|
-
title:
|
|
9328
|
-
content:
|
|
9329
|
-
icon:
|
|
9326
|
+
background: ye.GRAY_LIGHTEST,
|
|
9327
|
+
title: ye.GRAY_DARK,
|
|
9328
|
+
content: ye.GRAY_MEDIUM,
|
|
9329
|
+
icon: ye.GRAY_MEDIUM_LIGHT
|
|
9330
9330
|
},
|
|
9331
9331
|
success: {
|
|
9332
9332
|
background: tn.SUPER_LIGHT,
|
|
@@ -9363,7 +9363,7 @@ const Ys = {
|
|
|
9363
9363
|
{
|
|
9364
9364
|
role: "status",
|
|
9365
9365
|
"aria-live": "polite",
|
|
9366
|
-
className:
|
|
9366
|
+
className: U(
|
|
9367
9367
|
"proton-Banner",
|
|
9368
9368
|
`proton-Banner--${t}`,
|
|
9369
9369
|
e && "proton-Banner--rounded"
|
|
@@ -9372,7 +9372,7 @@ const Ys = {
|
|
|
9372
9372
|
children: /* @__PURE__ */ b.jsxs(
|
|
9373
9373
|
"div",
|
|
9374
9374
|
{
|
|
9375
|
-
className:
|
|
9375
|
+
className: U(
|
|
9376
9376
|
"proton-Banner__wrapper",
|
|
9377
9377
|
r && "proton-Banner__wrapper--compact"
|
|
9378
9378
|
),
|
|
@@ -9389,7 +9389,7 @@ const Ys = {
|
|
|
9389
9389
|
return /* @__PURE__ */ b.jsx(
|
|
9390
9390
|
"h3",
|
|
9391
9391
|
{
|
|
9392
|
-
className:
|
|
9392
|
+
className: U(
|
|
9393
9393
|
"proton-Banner",
|
|
9394
9394
|
"proton-Banner__title",
|
|
9395
9395
|
`proton-Banner--${n}__title`
|
|
@@ -9404,7 +9404,7 @@ const Ys = {
|
|
|
9404
9404
|
return /* @__PURE__ */ b.jsx(
|
|
9405
9405
|
"p",
|
|
9406
9406
|
{
|
|
9407
|
-
className:
|
|
9407
|
+
className: U(
|
|
9408
9408
|
"proton-Banner",
|
|
9409
9409
|
"proton-Banner__content",
|
|
9410
9410
|
`proton-Banner--${n}__content`
|
|
@@ -9422,7 +9422,7 @@ const Ys = {
|
|
|
9422
9422
|
{
|
|
9423
9423
|
"aria-hidden": "true",
|
|
9424
9424
|
"data-testid": n["data-testid"],
|
|
9425
|
-
className:
|
|
9425
|
+
className: U("proton-Banner__icon", `proton-Banner--${r}__icon`),
|
|
9426
9426
|
children: i
|
|
9427
9427
|
}
|
|
9428
9428
|
) : null;
|
|
@@ -9460,7 +9460,7 @@ Tv.Option = function(e) {
|
|
|
9460
9460
|
return /* @__PURE__ */ b.jsxs(
|
|
9461
9461
|
"label",
|
|
9462
9462
|
{
|
|
9463
|
-
className:
|
|
9463
|
+
className: U(
|
|
9464
9464
|
"proton-ButtonGroup__option",
|
|
9465
9465
|
o && "proton-ButtonGroup__option--selected"
|
|
9466
9466
|
),
|
|
@@ -9521,7 +9521,7 @@ const Kv = dt(
|
|
|
9521
9521
|
autoComplete: p,
|
|
9522
9522
|
"data-testid": m
|
|
9523
9523
|
}, y) => {
|
|
9524
|
-
const g = M(null), { className: C } = Ae(),
|
|
9524
|
+
const g = M(null), { className: C } = Ae(), x = y || g, { labelProps: $, inputProps: T, descriptionProps: w, errorMessageProps: P } = Qi(
|
|
9525
9525
|
{
|
|
9526
9526
|
label: a,
|
|
9527
9527
|
name: u,
|
|
@@ -9537,7 +9537,7 @@ const Kv = dt(
|
|
|
9537
9537
|
value: d,
|
|
9538
9538
|
onChange: o
|
|
9539
9539
|
},
|
|
9540
|
-
|
|
9540
|
+
x
|
|
9541
9541
|
), { clipboardProps: R } = gp({
|
|
9542
9542
|
getItems() {
|
|
9543
9543
|
return [{ "text/plain": d }];
|
|
@@ -9549,7 +9549,7 @@ const Kv = dt(
|
|
|
9549
9549
|
t && /* @__PURE__ */ b.jsx(
|
|
9550
9550
|
"div",
|
|
9551
9551
|
{
|
|
9552
|
-
className:
|
|
9552
|
+
className: U(
|
|
9553
9553
|
"proton-Input__descriptor",
|
|
9554
9554
|
"proton-Input__prefix"
|
|
9555
9555
|
),
|
|
@@ -9559,13 +9559,13 @@ const Kv = dt(
|
|
|
9559
9559
|
/* @__PURE__ */ b.jsx(
|
|
9560
9560
|
"input",
|
|
9561
9561
|
{
|
|
9562
|
-
...
|
|
9562
|
+
...T,
|
|
9563
9563
|
...R,
|
|
9564
9564
|
"data-testid": m,
|
|
9565
9565
|
id: `${u}-input`,
|
|
9566
9566
|
"aria-invalid": !!i,
|
|
9567
|
-
ref:
|
|
9568
|
-
className:
|
|
9567
|
+
ref: x,
|
|
9568
|
+
className: U(
|
|
9569
9569
|
"proton-Input",
|
|
9570
9570
|
i && "proton-Input--error",
|
|
9571
9571
|
a && !s && "proton-Input__label-top",
|
|
@@ -9577,7 +9577,7 @@ const Kv = dt(
|
|
|
9577
9577
|
"label",
|
|
9578
9578
|
{
|
|
9579
9579
|
...$,
|
|
9580
|
-
className:
|
|
9580
|
+
className: U(
|
|
9581
9581
|
"proton-Input__label",
|
|
9582
9582
|
d && "proton-Input__label--filled"
|
|
9583
9583
|
),
|
|
@@ -9587,7 +9587,7 @@ const Kv = dt(
|
|
|
9587
9587
|
e && /* @__PURE__ */ b.jsx(
|
|
9588
9588
|
"div",
|
|
9589
9589
|
{
|
|
9590
|
-
className:
|
|
9590
|
+
className: U(
|
|
9591
9591
|
"proton-Input__descriptor",
|
|
9592
9592
|
"proton-Input__suffix"
|
|
9593
9593
|
),
|
|
@@ -9598,9 +9598,9 @@ const Kv = dt(
|
|
|
9598
9598
|
i ? /* @__PURE__ */ b.jsx(
|
|
9599
9599
|
"div",
|
|
9600
9600
|
{
|
|
9601
|
-
...
|
|
9601
|
+
...P,
|
|
9602
9602
|
role: "alert",
|
|
9603
|
-
className:
|
|
9603
|
+
className: U("proton-Input__error", "proton-Input__text"),
|
|
9604
9604
|
id: `${u}-error`,
|
|
9605
9605
|
children: i
|
|
9606
9606
|
}
|
|
@@ -9623,7 +9623,7 @@ const Kv = dt(
|
|
|
9623
9623
|
const d = ev({
|
|
9624
9624
|
defaultValue: o,
|
|
9625
9625
|
value: a,
|
|
9626
|
-
onChange: (
|
|
9626
|
+
onChange: (x) => s == null ? void 0 : s(x),
|
|
9627
9627
|
onClear: () => c == null ? void 0 : c(),
|
|
9628
9628
|
label: e
|
|
9629
9629
|
}), f = M(null), { inputProps: p, clearButtonProps: m } = Ap(
|
|
@@ -9644,7 +9644,7 @@ const Kv = dt(
|
|
|
9644
9644
|
{
|
|
9645
9645
|
...p,
|
|
9646
9646
|
type: "search",
|
|
9647
|
-
onChange: (
|
|
9647
|
+
onChange: (x) => d.setValue(x),
|
|
9648
9648
|
value: y,
|
|
9649
9649
|
name: t,
|
|
9650
9650
|
placeholder: e,
|
|
@@ -9660,8 +9660,8 @@ const Kv = dt(
|
|
|
9660
9660
|
height: "1.6em",
|
|
9661
9661
|
viewBox: "0 0 24 24",
|
|
9662
9662
|
onClick: () => {
|
|
9663
|
-
var
|
|
9664
|
-
return (
|
|
9663
|
+
var x;
|
|
9664
|
+
return (x = f.current) == null ? void 0 : x.focus();
|
|
9665
9665
|
},
|
|
9666
9666
|
children: [
|
|
9667
9667
|
/* @__PURE__ */ b.jsx("title", { children: "Magnifying Glass" }),
|
|
@@ -9680,7 +9680,7 @@ const Kv = dt(
|
|
|
9680
9680
|
{
|
|
9681
9681
|
"aria-label": m["aria-label"],
|
|
9682
9682
|
type: "button",
|
|
9683
|
-
className:
|
|
9683
|
+
className: U(
|
|
9684
9684
|
"proton-SearchInput__button",
|
|
9685
9685
|
"proton-Input__descriptor",
|
|
9686
9686
|
"proton-Input__suffix",
|
|
@@ -9688,8 +9688,8 @@ const Kv = dt(
|
|
|
9688
9688
|
),
|
|
9689
9689
|
"data-testid": `${u}-clear`,
|
|
9690
9690
|
onClick: () => {
|
|
9691
|
-
var
|
|
9692
|
-
C(), (
|
|
9691
|
+
var x;
|
|
9692
|
+
C(), (x = f.current) == null || x.focus();
|
|
9693
9693
|
},
|
|
9694
9694
|
children: /* @__PURE__ */ b.jsxs(
|
|
9695
9695
|
"svg",
|
|
@@ -9755,7 +9755,7 @@ function il({
|
|
|
9755
9755
|
{
|
|
9756
9756
|
...s,
|
|
9757
9757
|
ref: o,
|
|
9758
|
-
className:
|
|
9758
|
+
className: U("proton-Popover", a),
|
|
9759
9759
|
style: { ...s.style, ...u },
|
|
9760
9760
|
"data-testid": l["data-testid"] || void 0,
|
|
9761
9761
|
"data-placement": f,
|
|
@@ -10054,8 +10054,8 @@ class Iv extends Xs {
|
|
|
10054
10054
|
}
|
|
10055
10055
|
}
|
|
10056
10056
|
function Zs(t) {
|
|
10057
|
-
let { children: e, items: n, idScope: r, addIdAndValue: l, dependencies: i = [] } = t, o =
|
|
10058
|
-
return
|
|
10057
|
+
let { children: e, items: n, idScope: r, addIdAndValue: l, dependencies: i = [] } = t, o = H(() => /* @__PURE__ */ new WeakMap(), i);
|
|
10058
|
+
return H(() => {
|
|
10059
10059
|
if (n && typeof e == "function") {
|
|
10060
10060
|
let s = [];
|
|
10061
10061
|
for (let c of n) {
|
|
@@ -10173,68 +10173,68 @@ function Lv() {
|
|
|
10173
10173
|
var t = A, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10174
10174
|
function n($) {
|
|
10175
10175
|
{
|
|
10176
|
-
for (var
|
|
10177
|
-
w[
|
|
10176
|
+
for (var T = arguments.length, w = new Array(T > 1 ? T - 1 : 0), P = 1; P < T; P++)
|
|
10177
|
+
w[P - 1] = arguments[P];
|
|
10178
10178
|
r("error", $, w);
|
|
10179
10179
|
}
|
|
10180
10180
|
}
|
|
10181
|
-
function r($,
|
|
10181
|
+
function r($, T, w) {
|
|
10182
10182
|
{
|
|
10183
|
-
var
|
|
10184
|
-
R !== "" && (
|
|
10183
|
+
var P = e.ReactDebugCurrentFrame, R = P.getStackAddendum();
|
|
10184
|
+
R !== "" && (T += "%s", w = w.concat([R]));
|
|
10185
10185
|
var v = w.map(function(B) {
|
|
10186
10186
|
return String(B);
|
|
10187
10187
|
});
|
|
10188
|
-
v.unshift("Warning: " +
|
|
10188
|
+
v.unshift("Warning: " + T), Function.prototype.apply.call(console[$], console, v);
|
|
10189
10189
|
}
|
|
10190
10190
|
}
|
|
10191
|
-
function l($,
|
|
10192
|
-
return $ ===
|
|
10191
|
+
function l($, T) {
|
|
10192
|
+
return $ === T && ($ !== 0 || 1 / $ === 1 / T) || $ !== $ && T !== T;
|
|
10193
10193
|
}
|
|
10194
10194
|
var i = typeof Object.is == "function" ? Object.is : l, o = t.useState, a = t.useEffect, u = t.useLayoutEffect, s = t.useDebugValue, c = !1, d = !1;
|
|
10195
|
-
function f($,
|
|
10195
|
+
function f($, T, w) {
|
|
10196
10196
|
c || t.startTransition !== void 0 && (c = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
10197
|
-
var
|
|
10197
|
+
var P = T();
|
|
10198
10198
|
if (!d) {
|
|
10199
|
-
var R =
|
|
10200
|
-
i(
|
|
10199
|
+
var R = T();
|
|
10200
|
+
i(P, R) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
10201
10201
|
}
|
|
10202
10202
|
var v = o({
|
|
10203
10203
|
inst: {
|
|
10204
|
-
value:
|
|
10205
|
-
getSnapshot:
|
|
10204
|
+
value: P,
|
|
10205
|
+
getSnapshot: T
|
|
10206
10206
|
}
|
|
10207
|
-
}), B = v[0].inst,
|
|
10207
|
+
}), B = v[0].inst, E = v[1];
|
|
10208
10208
|
return u(function() {
|
|
10209
|
-
B.value =
|
|
10209
|
+
B.value = P, B.getSnapshot = T, p(B) && E({
|
|
10210
10210
|
inst: B
|
|
10211
10211
|
});
|
|
10212
|
-
}, [$,
|
|
10213
|
-
p(B) &&
|
|
10212
|
+
}, [$, P, T]), a(function() {
|
|
10213
|
+
p(B) && E({
|
|
10214
10214
|
inst: B
|
|
10215
10215
|
});
|
|
10216
|
-
var
|
|
10217
|
-
p(B) &&
|
|
10216
|
+
var D = function() {
|
|
10217
|
+
p(B) && E({
|
|
10218
10218
|
inst: B
|
|
10219
10219
|
});
|
|
10220
10220
|
};
|
|
10221
|
-
return $(
|
|
10222
|
-
}, [$]), s(
|
|
10221
|
+
return $(D);
|
|
10222
|
+
}, [$]), s(P), P;
|
|
10223
10223
|
}
|
|
10224
10224
|
function p($) {
|
|
10225
|
-
var
|
|
10225
|
+
var T = $.getSnapshot, w = $.value;
|
|
10226
10226
|
try {
|
|
10227
|
-
var
|
|
10228
|
-
return !i(w,
|
|
10227
|
+
var P = T();
|
|
10228
|
+
return !i(w, P);
|
|
10229
10229
|
} catch {
|
|
10230
10230
|
return !0;
|
|
10231
10231
|
}
|
|
10232
10232
|
}
|
|
10233
|
-
function m($,
|
|
10234
|
-
return
|
|
10233
|
+
function m($, T, w) {
|
|
10234
|
+
return T();
|
|
10235
10235
|
}
|
|
10236
|
-
var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !y, C = g ? m : f,
|
|
10237
|
-
sr.useSyncExternalStore =
|
|
10236
|
+
var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !y, C = g ? m : f, x = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : C;
|
|
10237
|
+
sr.useSyncExternalStore = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10238
10238
|
}()), sr;
|
|
10239
10239
|
}
|
|
10240
10240
|
process.env.NODE_ENV === "production" ? Mr.exports = Nv() : Mr.exports = Lv();
|
|
@@ -10329,7 +10329,7 @@ function qv(t) {
|
|
|
10329
10329
|
idScope: r,
|
|
10330
10330
|
dependencies: n
|
|
10331
10331
|
});
|
|
10332
|
-
return Y(Gt) && (l = /* @__PURE__ */ A.createElement(Xv, null, l)), e =
|
|
10332
|
+
return Y(Gt) && (l = /* @__PURE__ */ A.createElement(Xv, null, l)), e = H(() => ({
|
|
10333
10333
|
dependencies: n,
|
|
10334
10334
|
idScope: r
|
|
10335
10335
|
}), [
|
|
@@ -10340,7 +10340,7 @@ function qv(t) {
|
|
|
10340
10340
|
}, l);
|
|
10341
10341
|
}
|
|
10342
10342
|
function Xv({ children: t }) {
|
|
10343
|
-
let e = Y(Gt), n =
|
|
10343
|
+
let e = Y(Gt), n = H(() => /* @__PURE__ */ A.createElement(Gt.Provider, {
|
|
10344
10344
|
value: null
|
|
10345
10345
|
}, /* @__PURE__ */ A.createElement(Js.Provider, {
|
|
10346
10346
|
value: !0
|
|
@@ -10384,7 +10384,7 @@ function pi(t, e, n) {
|
|
|
10384
10384
|
}
|
|
10385
10385
|
const Qs = /* @__PURE__ */ Q(Jv);
|
|
10386
10386
|
function Qv(t) {
|
|
10387
|
-
return
|
|
10387
|
+
return H(() => t != null ? /* @__PURE__ */ new Set([
|
|
10388
10388
|
t
|
|
10389
10389
|
]) : null, [
|
|
10390
10390
|
t
|
|
@@ -10400,7 +10400,7 @@ function Ln({ values: t, children: e }) {
|
|
|
10400
10400
|
}
|
|
10401
10401
|
function At(t) {
|
|
10402
10402
|
let { className: e, style: n, children: r, defaultClassName: l, defaultChildren: i, defaultStyle: o, values: a } = t;
|
|
10403
|
-
return
|
|
10403
|
+
return H(() => {
|
|
10404
10404
|
let u, s, c;
|
|
10405
10405
|
return typeof e == "function" ? u = e({
|
|
10406
10406
|
...a,
|
|
@@ -10445,10 +10445,10 @@ function ec(t, e) {
|
|
|
10445
10445
|
return n;
|
|
10446
10446
|
}
|
|
10447
10447
|
function Zt(t, e, n) {
|
|
10448
|
-
let r = ec(n, t.slot) || {}, { ref: l, ...i } = r, o = Dn(
|
|
10448
|
+
let r = ec(n, t.slot) || {}, { ref: l, ...i } = r, o = Dn(H(() => Qc(e, l), [
|
|
10449
10449
|
e,
|
|
10450
10450
|
l
|
|
10451
|
-
])), a =
|
|
10451
|
+
])), a = W(i, t);
|
|
10452
10452
|
return "style" in i && i.style && "style" in t && t.style && (typeof i.style == "function" || typeof t.style == "function" ? a.style = (u) => {
|
|
10453
10453
|
let s = typeof i.style == "function" ? i.style(u) : i.style, c = {
|
|
10454
10454
|
...u.defaultStyle,
|
|
@@ -10538,7 +10538,7 @@ function oh(t, e) {
|
|
|
10538
10538
|
...t,
|
|
10539
10539
|
values: d,
|
|
10540
10540
|
defaultClassName: "react-aria-Button"
|
|
10541
|
-
}), p =
|
|
10541
|
+
}), p = me(l.id), m = me(), y = l["aria-labelledby"];
|
|
10542
10542
|
r && (y ? y = `${y} ${m}` : l["aria-label"] && (y = `${p} ${m}`));
|
|
10543
10543
|
let g = M(r);
|
|
10544
10544
|
return L(() => {
|
|
@@ -10552,10 +10552,10 @@ function oh(t, e) {
|
|
|
10552
10552
|
y,
|
|
10553
10553
|
p
|
|
10554
10554
|
]), /* @__PURE__ */ A.createElement("button", {
|
|
10555
|
-
...
|
|
10555
|
+
...pe(t, {
|
|
10556
10556
|
propNames: lh
|
|
10557
10557
|
}),
|
|
10558
|
-
...
|
|
10558
|
+
...W(l, o, s),
|
|
10559
10559
|
...f,
|
|
10560
10560
|
id: p,
|
|
10561
10561
|
ref: e,
|
|
@@ -10703,7 +10703,7 @@ function gh({ props: t, collection: e, menuRef: n }) {
|
|
|
10703
10703
|
values: {}
|
|
10704
10704
|
});
|
|
10705
10705
|
return /* @__PURE__ */ A.createElement(Kn, null, /* @__PURE__ */ A.createElement("div", {
|
|
10706
|
-
...
|
|
10706
|
+
...pe(t),
|
|
10707
10707
|
...u,
|
|
10708
10708
|
...y,
|
|
10709
10709
|
ref: n,
|
|
@@ -10773,7 +10773,7 @@ function $h(t, e, n) {
|
|
|
10773
10773
|
values: {}
|
|
10774
10774
|
});
|
|
10775
10775
|
return /* @__PURE__ */ A.createElement("section", {
|
|
10776
|
-
...
|
|
10776
|
+
...pe(t),
|
|
10777
10777
|
...d,
|
|
10778
10778
|
...f,
|
|
10779
10779
|
ref: e
|
|
@@ -10810,9 +10810,9 @@ const _r = /* @__PURE__ */ Q(null), xh = /* @__PURE__ */ Gv("item", function(e,
|
|
|
10810
10810
|
hasSubmenu: !!e["aria-haspopup"],
|
|
10811
10811
|
isOpen: e["aria-expanded"] === "true"
|
|
10812
10812
|
}
|
|
10813
|
-
}),
|
|
10814
|
-
return /* @__PURE__ */ A.createElement(
|
|
10815
|
-
...
|
|
10813
|
+
}), x = e.href ? "a" : "div";
|
|
10814
|
+
return /* @__PURE__ */ A.createElement(x, {
|
|
10815
|
+
...W(u, m, y),
|
|
10816
10816
|
...C,
|
|
10817
10817
|
ref: a,
|
|
10818
10818
|
"data-disabled": f.isDisabled || void 0,
|
|
@@ -10903,7 +10903,7 @@ function wh(t) {
|
|
|
10903
10903
|
state: e
|
|
10904
10904
|
}
|
|
10905
10905
|
});
|
|
10906
|
-
t =
|
|
10906
|
+
t = W(t, i);
|
|
10907
10907
|
let { tooltipProps: c } = Wp(t, e);
|
|
10908
10908
|
return /* @__PURE__ */ A.createElement("div", {
|
|
10909
10909
|
...c,
|
|
@@ -11055,7 +11055,7 @@ function Dh({ item: t, state: e }) {
|
|
|
11055
11055
|
"li",
|
|
11056
11056
|
{
|
|
11057
11057
|
...r,
|
|
11058
|
-
className:
|
|
11058
|
+
className: U(
|
|
11059
11059
|
"proton-ListBox__item",
|
|
11060
11060
|
i && "proton-ListBox__item--focused",
|
|
11061
11061
|
l && "proton-ListBox__item--selected",
|
|
@@ -11080,7 +11080,7 @@ const uc = dt(
|
|
|
11080
11080
|
{
|
|
11081
11081
|
...n,
|
|
11082
11082
|
ref: e,
|
|
11083
|
-
className:
|
|
11083
|
+
className: U(
|
|
11084
11084
|
"proton-Select__trigger",
|
|
11085
11085
|
t.disabled && "proton-Select__trigger--disabled",
|
|
11086
11086
|
!t.isOpen && "proton-Select__trigger--closed",
|
|
@@ -11116,7 +11116,7 @@ function kh({
|
|
|
11116
11116
|
onOpenChange: ($) => {
|
|
11117
11117
|
$ ? o == null || o() : a == null || a();
|
|
11118
11118
|
}
|
|
11119
|
-
}, f = Rs(d), p = M(null), m = M(null), { labelProps: y, triggerProps: g, valueProps: C, menuProps:
|
|
11119
|
+
}, f = Rs(d), p = M(null), m = M(null), { labelProps: y, triggerProps: g, valueProps: C, menuProps: x } = es(
|
|
11120
11120
|
{ ...d, label: t || e },
|
|
11121
11121
|
f,
|
|
11122
11122
|
p
|
|
@@ -11166,7 +11166,7 @@ function kh({
|
|
|
11166
11166
|
/* @__PURE__ */ b.jsx(
|
|
11167
11167
|
"div",
|
|
11168
11168
|
{
|
|
11169
|
-
className:
|
|
11169
|
+
className: U(
|
|
11170
11170
|
"proton-Select__trigger_icon",
|
|
11171
11171
|
f.isOpen && "proton-Select__trigger_icon--flipped"
|
|
11172
11172
|
),
|
|
@@ -11195,7 +11195,7 @@ function kh({
|
|
|
11195
11195
|
popoverRef: m,
|
|
11196
11196
|
placement: "bottom start",
|
|
11197
11197
|
"data-testid": "select-popover",
|
|
11198
|
-
children: /* @__PURE__ */ b.jsx(Rr, { ...
|
|
11198
|
+
children: /* @__PURE__ */ b.jsx(Rr, { ...x, state: f })
|
|
11199
11199
|
}
|
|
11200
11200
|
) })
|
|
11201
11201
|
]
|
|
@@ -11225,13 +11225,13 @@ function Th({
|
|
|
11225
11225
|
disabledKeys: r,
|
|
11226
11226
|
selectedKey: l,
|
|
11227
11227
|
onSelectionChange: i,
|
|
11228
|
-
onOpenChange: (
|
|
11229
|
-
|
|
11228
|
+
onOpenChange: (T) => {
|
|
11229
|
+
T ? o == null || o() : a == null || a();
|
|
11230
11230
|
},
|
|
11231
11231
|
items: u,
|
|
11232
11232
|
"data-testid": s,
|
|
11233
11233
|
children: c
|
|
11234
|
-
}, f = Rs(d), p = ac($i.MEDIUM), m = M(null), y = M(null), { labelProps: g, triggerProps: C, valueProps:
|
|
11234
|
+
}, f = Rs(d), p = ac($i.MEDIUM), m = M(null), y = M(null), { labelProps: g, triggerProps: C, valueProps: x, menuProps: $ } = es(
|
|
11235
11235
|
{ ...d, label: t || e },
|
|
11236
11236
|
f,
|
|
11237
11237
|
m
|
|
@@ -11277,11 +11277,11 @@ function Th({
|
|
|
11277
11277
|
disabled: n,
|
|
11278
11278
|
"data-testid": s,
|
|
11279
11279
|
children: [
|
|
11280
|
-
/* @__PURE__ */ b.jsx("div", { ...
|
|
11280
|
+
/* @__PURE__ */ b.jsx("div", { ...x, children: f.selectedItem ? f.selectedItem.rendered : "Select an option" }),
|
|
11281
11281
|
/* @__PURE__ */ b.jsx(
|
|
11282
11282
|
"div",
|
|
11283
11283
|
{
|
|
11284
|
-
className:
|
|
11284
|
+
className: U(
|
|
11285
11285
|
"proton-Select__trigger_icon",
|
|
11286
11286
|
f.isOpen && "proton-Select__trigger_icon--flipped"
|
|
11287
11287
|
),
|
|
@@ -11329,7 +11329,7 @@ function a4(t) {
|
|
|
11329
11329
|
return /* @__PURE__ */ b.jsxs(
|
|
11330
11330
|
"label",
|
|
11331
11331
|
{
|
|
11332
|
-
className:
|
|
11332
|
+
className: U(
|
|
11333
11333
|
"proton-Switch",
|
|
11334
11334
|
t.isDisabled && "proton-Switch--disabled",
|
|
11335
11335
|
r.isSelected && "proton-Switch--on"
|
|
@@ -11351,7 +11351,7 @@ function a4(t) {
|
|
|
11351
11351
|
}
|
|
11352
11352
|
function Ah({ item: t, state: e, children: n }) {
|
|
11353
11353
|
let r = M(), { rowProps: l } = jp({ node: t }, e);
|
|
11354
|
-
return /* @__PURE__ */ b.jsx("tr", { className:
|
|
11354
|
+
return /* @__PURE__ */ b.jsx("tr", { className: U("proton-Table__headerRow"), ...l, ref: r, children: n });
|
|
11355
11355
|
}
|
|
11356
11356
|
function Bh({ column: t, state: e }) {
|
|
11357
11357
|
var u, s;
|
|
@@ -11365,9 +11365,9 @@ function Bh({ column: t, state: e }) {
|
|
|
11365
11365
|
return /* @__PURE__ */ b.jsxs(
|
|
11366
11366
|
"th",
|
|
11367
11367
|
{
|
|
11368
|
-
...
|
|
11368
|
+
...W(r, o),
|
|
11369
11369
|
colSpan: t.colspan,
|
|
11370
|
-
className:
|
|
11370
|
+
className: U(
|
|
11371
11371
|
"proton-Table__header",
|
|
11372
11372
|
`proton-Table__header--${l}`,
|
|
11373
11373
|
i ? "proton-Table__header--focused" : null
|
|
@@ -11379,7 +11379,7 @@ function Bh({ column: t, state: e }) {
|
|
|
11379
11379
|
"span",
|
|
11380
11380
|
{
|
|
11381
11381
|
"aria-hidden": "true",
|
|
11382
|
-
className:
|
|
11382
|
+
className: U("proton-Table__headerSortIcon"),
|
|
11383
11383
|
style: {
|
|
11384
11384
|
visibility: ((s = e.sortDescriptor) == null ? void 0 : s.column) === t.key ? "visible" : "hidden"
|
|
11385
11385
|
},
|
|
@@ -11400,7 +11400,7 @@ function hi({
|
|
|
11400
11400
|
t,
|
|
11401
11401
|
{
|
|
11402
11402
|
...r,
|
|
11403
|
-
className:
|
|
11403
|
+
className: U(
|
|
11404
11404
|
"proton-Table__rowGroup",
|
|
11405
11405
|
t === "thead" ? "proton-Table__rowGroup--header" : "proton-Table__rowGroup--body"
|
|
11406
11406
|
),
|
|
@@ -11427,7 +11427,7 @@ function Kh({
|
|
|
11427
11427
|
return /* @__PURE__ */ b.jsx(
|
|
11428
11428
|
"tr",
|
|
11429
11429
|
{
|
|
11430
|
-
className:
|
|
11430
|
+
className: U(
|
|
11431
11431
|
"proton-Table__row",
|
|
11432
11432
|
a ? "proton-Table__row--selected" : null,
|
|
11433
11433
|
s ? "proton-Table__row--pressed" : null,
|
|
@@ -11436,7 +11436,7 @@ function Kh({
|
|
|
11436
11436
|
l && "proton-Table--clickable"
|
|
11437
11437
|
),
|
|
11438
11438
|
style: r ? { backgroundColor: r } : void 0,
|
|
11439
|
-
...
|
|
11439
|
+
...W(u, d),
|
|
11440
11440
|
ref: o,
|
|
11441
11441
|
onClick: l ? () => l(t.key) : void 0,
|
|
11442
11442
|
children: e
|
|
@@ -11449,8 +11449,8 @@ function Mh({ cell: t, state: e, width: n, onClick: r }) {
|
|
|
11449
11449
|
return /* @__PURE__ */ b.jsx(
|
|
11450
11450
|
"td",
|
|
11451
11451
|
{
|
|
11452
|
-
...
|
|
11453
|
-
className:
|
|
11452
|
+
...W(i, a),
|
|
11453
|
+
className: U(
|
|
11454
11454
|
"proton-Table__cell",
|
|
11455
11455
|
o ? "proton-Table__cell--focused" : null,
|
|
11456
11456
|
`proton-Table__cell--${u}`,
|
|
@@ -11473,7 +11473,7 @@ function f4(t) {
|
|
|
11473
11473
|
e,
|
|
11474
11474
|
n
|
|
11475
11475
|
);
|
|
11476
|
-
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className:
|
|
11476
|
+
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: U("proton-Table"), children: [
|
|
11477
11477
|
/* @__PURE__ */ b.jsx(hi, { type: "thead", isHidden: (i = t.headerProps) == null ? void 0 : i.isHidden, children: r.headerRows.map((o) => /* @__PURE__ */ b.jsx(Ah, { item: o, state: e, children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(
|
|
11478
11478
|
Bh,
|
|
11479
11479
|
{
|
|
@@ -11515,7 +11515,7 @@ const p4 = ({
|
|
|
11515
11515
|
}) => /* @__PURE__ */ b.jsx(
|
|
11516
11516
|
"div",
|
|
11517
11517
|
{
|
|
11518
|
-
className:
|
|
11518
|
+
className: U(
|
|
11519
11519
|
"proton-TextEllipsis",
|
|
11520
11520
|
n || r === 1 ? "proton-TextEllipsis--single-line" : r > 1 ? "proton-TextEllipsis--multi-line" : ""
|
|
11521
11521
|
),
|
|
@@ -11534,10 +11534,10 @@ function Ih({ children: t, arrow: e, ...n }) {
|
|
|
11534
11534
|
Ch,
|
|
11535
11535
|
{
|
|
11536
11536
|
...n,
|
|
11537
|
-
className:
|
|
11537
|
+
className: U("proton__Tooltip", "proton-Dialog", l),
|
|
11538
11538
|
style: r,
|
|
11539
11539
|
children: [
|
|
11540
|
-
e && /* @__PURE__ */ b.jsx(fh, { className:
|
|
11540
|
+
e && /* @__PURE__ */ b.jsx(fh, { className: U("proton__TooltipArrow", l), children: /* @__PURE__ */ b.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ b.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
11541
11541
|
t
|
|
11542
11542
|
]
|
|
11543
11543
|
}
|
|
@@ -11597,7 +11597,7 @@ const v4 = ({
|
|
|
11597
11597
|
return /* @__PURE__ */ b.jsx(
|
|
11598
11598
|
"span",
|
|
11599
11599
|
{
|
|
11600
|
-
className:
|
|
11600
|
+
className: U(
|
|
11601
11601
|
"proton-TextEmphasis",
|
|
11602
11602
|
n && "proton-TextEmphasis--tooltip",
|
|
11603
11603
|
l
|
|
@@ -11619,7 +11619,7 @@ const v4 = ({
|
|
|
11619
11619
|
return /* @__PURE__ */ b.jsx(
|
|
11620
11620
|
"span",
|
|
11621
11621
|
{
|
|
11622
|
-
className:
|
|
11622
|
+
className: U(
|
|
11623
11623
|
"proton-TextEmphasis",
|
|
11624
11624
|
n && "proton-TextEmphasis--tooltip",
|
|
11625
11625
|
l
|
|
@@ -11644,7 +11644,7 @@ function _h({
|
|
|
11644
11644
|
return /* @__PURE__ */ b.jsxs(
|
|
11645
11645
|
"div",
|
|
11646
11646
|
{
|
|
11647
|
-
className:
|
|
11647
|
+
className: U("proton-Waveform__bar-wrapper"),
|
|
11648
11648
|
style: {
|
|
11649
11649
|
width: `${o}px`,
|
|
11650
11650
|
marginRight: `${a}px`
|
|
@@ -11653,7 +11653,7 @@ function _h({
|
|
|
11653
11653
|
/* @__PURE__ */ b.jsx(
|
|
11654
11654
|
"div",
|
|
11655
11655
|
{
|
|
11656
|
-
className:
|
|
11656
|
+
className: U(
|
|
11657
11657
|
"proton-Waveform__bar",
|
|
11658
11658
|
"proton-Waveform__bar--upper",
|
|
11659
11659
|
e && "proton-Waveform__bar--disabled",
|
|
@@ -11670,7 +11670,7 @@ function _h({
|
|
|
11670
11670
|
/* @__PURE__ */ b.jsx(
|
|
11671
11671
|
"div",
|
|
11672
11672
|
{
|
|
11673
|
-
className:
|
|
11673
|
+
className: U(
|
|
11674
11674
|
"proton-Waveform__bar",
|
|
11675
11675
|
"proton-Waveform__bar--lower",
|
|
11676
11676
|
e && "proton-Waveform__bar--disabled",
|
|
@@ -11706,102 +11706,106 @@ function h4({
|
|
|
11706
11706
|
currentTime: l = 0,
|
|
11707
11707
|
showTimestamps: i = !1,
|
|
11708
11708
|
totalDuration: o,
|
|
11709
|
-
|
|
11710
|
-
|
|
11709
|
+
disabled: a,
|
|
11710
|
+
disabledMessage: u,
|
|
11711
|
+
onClick: s,
|
|
11712
|
+
"data-testid": c
|
|
11711
11713
|
}) {
|
|
11712
11714
|
var S;
|
|
11713
|
-
const { className:
|
|
11715
|
+
const { className: d } = Ae(), f = M(null), [p, m] = z([]), [y, g] = z(null), [C, x] = z(!1), [$, T] = z(!1), w = t || Rh, P = e;
|
|
11714
11716
|
L(() => {
|
|
11715
|
-
if (!
|
|
11716
|
-
const
|
|
11717
|
-
const
|
|
11718
|
-
|
|
11719
|
-
},
|
|
11720
|
-
|
|
11721
|
-
const
|
|
11722
|
-
|
|
11717
|
+
if (!f.current) return;
|
|
11718
|
+
const F = (I) => {
|
|
11719
|
+
const re = Math.floor(I / (e + P)), de = Lh(w, re);
|
|
11720
|
+
m(de);
|
|
11721
|
+
}, k = f.current.clientWidth;
|
|
11722
|
+
F(k);
|
|
11723
|
+
const V = new ResizeObserver((I) => {
|
|
11724
|
+
I && I[0] && F(I[0].contentRect.width);
|
|
11723
11725
|
});
|
|
11724
|
-
return
|
|
11725
|
-
}, [
|
|
11726
|
-
const
|
|
11726
|
+
return V.observe(f.current), () => V.disconnect();
|
|
11727
|
+
}, [w, e, P]), L(() => {
|
|
11728
|
+
const F = setTimeout(() => x(!0), 50), k = setTimeout(() => T(!0), 500);
|
|
11727
11729
|
return () => {
|
|
11728
|
-
clearTimeout(
|
|
11730
|
+
clearTimeout(F), clearTimeout(k);
|
|
11729
11731
|
};
|
|
11730
11732
|
}, []);
|
|
11731
|
-
const
|
|
11732
|
-
if (!
|
|
11733
|
-
const
|
|
11734
|
-
|
|
11735
|
-
},
|
|
11736
|
-
|
|
11737
|
-
},
|
|
11738
|
-
var
|
|
11739
|
-
const
|
|
11740
|
-
return (
|
|
11741
|
-
},
|
|
11742
|
-
return /* @__PURE__ */ b.jsxs("div", { className:
|
|
11733
|
+
const R = (F) => {
|
|
11734
|
+
if (!f.current) return;
|
|
11735
|
+
const k = f.current.getBoundingClientRect(), I = (F.clientX - k.left) / k.width * o;
|
|
11736
|
+
g(I);
|
|
11737
|
+
}, v = () => {
|
|
11738
|
+
g(null);
|
|
11739
|
+
}, B = e + P, E = (F, k) => {
|
|
11740
|
+
var re;
|
|
11741
|
+
const V = F / o * 100;
|
|
11742
|
+
return (k === "start" ? Math.floor(V / 100 * p.length) : Math.ceil(V / 100 * p.length)) * B / ((re = f.current) == null ? void 0 : re.clientWidth) * 100;
|
|
11743
|
+
}, D = (S = f.current) == null ? void 0 : S.clientWidth, N = H(() => a && u ? u : t ? null : D < 277 ? "Unavailable" : "Waveform Unavailable", [a, u, t, D]);
|
|
11744
|
+
return /* @__PURE__ */ b.jsxs("div", { className: U("proton-Waveform", d), "data-testid": c, children: [
|
|
11743
11745
|
i && /* @__PURE__ */ b.jsx(mi, { direction: "left", seconds: l }),
|
|
11744
11746
|
/* @__PURE__ */ b.jsxs(
|
|
11745
11747
|
"div",
|
|
11746
11748
|
{
|
|
11747
|
-
ref:
|
|
11749
|
+
ref: f,
|
|
11748
11750
|
className: "proton-Waveform__container",
|
|
11749
|
-
onMouseMove:
|
|
11750
|
-
onMouseLeave:
|
|
11751
|
-
onClick: (
|
|
11752
|
-
if (!
|
|
11753
|
-
const
|
|
11754
|
-
|
|
11751
|
+
onMouseMove: R,
|
|
11752
|
+
onMouseLeave: v,
|
|
11753
|
+
onClick: (F) => {
|
|
11754
|
+
if (!f.current || a) return;
|
|
11755
|
+
const k = f.current.getBoundingClientRect(), I = (F.clientX - k.left) / k.width * o;
|
|
11756
|
+
s == null || s(I, F);
|
|
11755
11757
|
},
|
|
11758
|
+
"data-disabled": a,
|
|
11759
|
+
"data-testid": "waveform-container",
|
|
11756
11760
|
children: [
|
|
11757
11761
|
n !== void 0 && r !== void 0 && /* @__PURE__ */ b.jsx(
|
|
11758
11762
|
"div",
|
|
11759
11763
|
{
|
|
11760
11764
|
className: "proton-Waveform__active-region",
|
|
11761
11765
|
style: {
|
|
11762
|
-
left:
|
|
11763
|
-
right:
|
|
11766
|
+
left: f.current ? `calc(${E(n, "start")}%` : "0%",
|
|
11767
|
+
right: f.current ? `calc(${100 - E(r, "end")}% - 2px)` : "0%"
|
|
11764
11768
|
}
|
|
11765
11769
|
}
|
|
11766
11770
|
),
|
|
11767
|
-
|
|
11771
|
+
y !== null && /* @__PURE__ */ b.jsx(
|
|
11768
11772
|
"div",
|
|
11769
11773
|
{
|
|
11770
11774
|
className: "proton-Waveform__hover-line",
|
|
11771
11775
|
style: {
|
|
11772
|
-
left: `${
|
|
11776
|
+
left: `${y / o * 100}%`
|
|
11773
11777
|
}
|
|
11774
11778
|
}
|
|
11775
11779
|
),
|
|
11776
|
-
|
|
11777
|
-
const
|
|
11780
|
+
p.map((F, k) => {
|
|
11781
|
+
const V = k / p.length * o, I = n !== void 0 && r !== void 0 && (V < n || V > r), re = l === 0 ? !1 : V <= l, de = y !== null && V <= y;
|
|
11778
11782
|
return /* @__PURE__ */ b.jsx(
|
|
11779
11783
|
_h,
|
|
11780
11784
|
{
|
|
11781
|
-
amplitude:
|
|
11782
|
-
isDisabled:
|
|
11783
|
-
isPlayed:
|
|
11784
|
-
isHovered:
|
|
11785
|
-
isVisible:
|
|
11786
|
-
hasAnimated:
|
|
11785
|
+
amplitude: F,
|
|
11786
|
+
isDisabled: a || I,
|
|
11787
|
+
isPlayed: re,
|
|
11788
|
+
isHovered: de,
|
|
11789
|
+
isVisible: C,
|
|
11790
|
+
hasAnimated: $,
|
|
11787
11791
|
resolution: e,
|
|
11788
|
-
spacing:
|
|
11789
|
-
index:
|
|
11792
|
+
spacing: P,
|
|
11793
|
+
index: k
|
|
11790
11794
|
},
|
|
11791
|
-
|
|
11795
|
+
k
|
|
11792
11796
|
);
|
|
11793
11797
|
})
|
|
11794
11798
|
]
|
|
11795
11799
|
}
|
|
11796
11800
|
),
|
|
11797
|
-
|
|
11801
|
+
N && /* @__PURE__ */ b.jsx(
|
|
11798
11802
|
"div",
|
|
11799
11803
|
{
|
|
11800
11804
|
className: "proton-Waveform__bar-unavailable",
|
|
11801
11805
|
style: {
|
|
11802
|
-
fontSize:
|
|
11806
|
+
fontSize: D < 325 ? "0.85rem" : "1rem"
|
|
11803
11807
|
},
|
|
11804
|
-
children:
|
|
11808
|
+
children: N
|
|
11805
11809
|
}
|
|
11806
11810
|
),
|
|
11807
11811
|
i && /* @__PURE__ */ b.jsx(mi, { direction: "right", seconds: o })
|
|
@@ -11814,7 +11818,7 @@ function mi({
|
|
|
11814
11818
|
return /* @__PURE__ */ b.jsx(
|
|
11815
11819
|
"div",
|
|
11816
11820
|
{
|
|
11817
|
-
className:
|
|
11821
|
+
className: U(
|
|
11818
11822
|
"proton-Waveform__timestamp",
|
|
11819
11823
|
`proton-Waveform__timestamp--${t}`
|
|
11820
11824
|
),
|
|
@@ -11895,7 +11899,7 @@ function b4({
|
|
|
11895
11899
|
"aria-label": "Background overlay",
|
|
11896
11900
|
role: "dialog",
|
|
11897
11901
|
"aria-modal": "true",
|
|
11898
|
-
className:
|
|
11902
|
+
className: U(
|
|
11899
11903
|
"proton-ScreenOverlay__background",
|
|
11900
11904
|
"proton-ScreenOverlay__overlay"
|
|
11901
11905
|
),
|