@protonradio/proton-ui 0.6.18-beta.17 → 0.6.18-beta.19
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 +1 -1
- package/dist/index.es.js +795 -790
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-DAupKByO.mjs +125 -0
- package/dist/utils-DAupKByO.mjs.map +1 -0
- package/dist/utils-DaN5ULjj.js +2 -0
- package/dist/utils-DaN5ULjj.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +16 -21
- package/dist/utils.es.js +10 -10
- package/package.json +1 -1
- package/dist/utils-DPt5Em4t.mjs +0 -140
- package/dist/utils-DPt5Em4t.mjs.map +0 -1
- package/dist/utils-DrtQpOwS.js +0 -2
- package/dist/utils-DrtQpOwS.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import B, { useRef as M, useCallback as X, useState as j, useContext as Y, useEffect as L, createContext as ee, useMemo as H, useLayoutEffect as Mc, createElement as bi, isValidElement as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { THEMES as
|
|
5
|
-
import { transparentize as st, toRgba as
|
|
6
|
-
import { G as ye, S as
|
|
7
|
-
import { c as
|
|
1
|
+
import B, { useRef as M, useCallback as X, useState as j, useContext as Y, useEffect as L, createContext as ee, useMemo as H, useLayoutEffect as Mc, createElement as bi, isValidElement as Ic, forwardRef as pt, cloneElement as Fc } from "react";
|
|
2
|
+
import Cn, { flushSync as _c, createPortal as gi } from "react-dom";
|
|
3
|
+
import { c as U, i as Lr, h as $i } from "./utils-DAupKByO.mjs";
|
|
4
|
+
import { THEMES as Be, BREAKPOINTS as yi } from "./constants.es.js";
|
|
5
|
+
import { transparentize as st, toRgba as Gn } from "color2k";
|
|
6
|
+
import { G as ye, S as tn, W as nn, D as rn, B as Rc } from "./colors-Dwh4VIMR.mjs";
|
|
7
|
+
import { c as d4 } from "./colors-Dwh4VIMR.mjs";
|
|
8
8
|
var dr = { exports: {} }, It = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
@@ -16,7 +16,7 @@ var dr = { exports: {} }, It = {};
|
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
18
|
var Sl;
|
|
19
|
-
function
|
|
19
|
+
function Nc() {
|
|
20
20
|
if (Sl) return It;
|
|
21
21
|
Sl = 1;
|
|
22
22
|
var t = B, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -29,7 +29,7 @@ function Rc() {
|
|
|
29
29
|
}
|
|
30
30
|
return It.Fragment = n, It.jsx = o, It.jsxs = o, It;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var Ft = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -52,16 +52,16 @@ function Lc() {
|
|
|
52
52
|
var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function S(h) {
|
|
54
54
|
{
|
|
55
|
-
for (var K = arguments.length,
|
|
56
|
-
|
|
57
|
-
y("error", h,
|
|
55
|
+
for (var K = arguments.length, R = new Array(K > 1 ? K - 1 : 0), V = 1; V < K; V++)
|
|
56
|
+
R[V - 1] = arguments[V];
|
|
57
|
+
y("error", h, R);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function y(h, K,
|
|
60
|
+
function y(h, K, R) {
|
|
61
61
|
{
|
|
62
62
|
var V = E.ReactDebugCurrentFrame, J = V.getStackAddendum();
|
|
63
|
-
J !== "" && (K += "%s",
|
|
64
|
-
var te =
|
|
63
|
+
J !== "" && (K += "%s", R = R.concat([J]));
|
|
64
|
+
var te = R.map(function(q) {
|
|
65
65
|
return String(q);
|
|
66
66
|
});
|
|
67
67
|
te.unshift("Warning: " + K), Function.prototype.apply.call(console[h], console, te);
|
|
@@ -76,14 +76,14 @@ function Lc() {
|
|
|
76
76
|
// with.
|
|
77
77
|
h.$$typeof === A || h.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function T(h, K,
|
|
79
|
+
function T(h, K, R) {
|
|
80
80
|
var V = h.displayName;
|
|
81
81
|
if (V)
|
|
82
82
|
return V;
|
|
83
83
|
var J = K.displayName || K.name || "";
|
|
84
|
-
return J !== "" ?
|
|
84
|
+
return J !== "" ? R + "(" + J + ")" : R;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function F(h) {
|
|
87
87
|
return h.displayName || "Context";
|
|
88
88
|
}
|
|
89
89
|
function x(h) {
|
|
@@ -111,10 +111,10 @@ function Lc() {
|
|
|
111
111
|
switch (h.$$typeof) {
|
|
112
112
|
case a:
|
|
113
113
|
var K = h;
|
|
114
|
-
return
|
|
114
|
+
return F(K) + ".Consumer";
|
|
115
115
|
case o:
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var R = h;
|
|
117
|
+
return F(R._context) + ".Provider";
|
|
118
118
|
case u:
|
|
119
119
|
return T(h, h.render, "ForwardRef");
|
|
120
120
|
case d:
|
|
@@ -131,14 +131,14 @@ function Lc() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var N = Object.assign, D = 0, z, I, Z, ue, fe, Ae, Ee;
|
|
135
135
|
function Ge() {
|
|
136
136
|
}
|
|
137
137
|
Ge.__reactDisabledLog = !0;
|
|
138
138
|
function O() {
|
|
139
139
|
{
|
|
140
140
|
if (D === 0) {
|
|
141
|
-
z = console.log,
|
|
141
|
+
z = console.log, I = console.info, Z = console.warn, ue = console.error, fe = console.group, Ae = console.groupCollapsed, Ee = console.groupEnd;
|
|
142
142
|
var h = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -167,25 +167,25 @@ function Lc() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: N({}, h, {
|
|
171
171
|
value: z
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
174
|
-
value:
|
|
173
|
+
info: N({}, h, {
|
|
174
|
+
value: I
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: N({}, h, {
|
|
177
177
|
value: Z
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: N({}, h, {
|
|
180
180
|
value: ue
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: N({}, h, {
|
|
183
183
|
value: fe
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
186
|
-
value:
|
|
185
|
+
groupCollapsed: N({}, h, {
|
|
186
|
+
value: Ae
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: N({}, h, {
|
|
189
189
|
value: Ee
|
|
190
190
|
})
|
|
191
191
|
});
|
|
@@ -194,7 +194,7 @@ function Lc() {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var Se = E.ReactCurrentDispatcher, Ye;
|
|
197
|
-
function ht(h, K,
|
|
197
|
+
function ht(h, K, R) {
|
|
198
198
|
{
|
|
199
199
|
if (Ye === void 0)
|
|
200
200
|
try {
|
|
@@ -216,9 +216,9 @@ function Lc() {
|
|
|
216
216
|
if (!h || mt)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var R = bt.get(h);
|
|
220
|
+
if (R !== void 0)
|
|
221
|
+
return R;
|
|
222
222
|
}
|
|
223
223
|
var V;
|
|
224
224
|
mt = !0;
|
|
@@ -283,14 +283,14 @@ function Lc() {
|
|
|
283
283
|
var yt = h ? h.displayName || h.name : "", it = yt ? ht(yt) : "";
|
|
284
284
|
return typeof h == "function" && bt.set(h, it), it;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function On(h, K, R) {
|
|
287
287
|
return gt(h, !1);
|
|
288
288
|
}
|
|
289
289
|
function cc(h) {
|
|
290
290
|
var K = h.prototype;
|
|
291
291
|
return !!(K && K.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Qt(h, K, R) {
|
|
294
294
|
if (h == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof h == "function")
|
|
@@ -306,13 +306,13 @@ function Lc() {
|
|
|
306
306
|
if (typeof h == "object")
|
|
307
307
|
switch (h.$$typeof) {
|
|
308
308
|
case u:
|
|
309
|
-
return
|
|
309
|
+
return On(h.render);
|
|
310
310
|
case d:
|
|
311
|
-
return
|
|
311
|
+
return Qt(h.type, K, R);
|
|
312
312
|
case f: {
|
|
313
313
|
var V = h, J = V._payload, te = V._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return Qt(te(J), K, R);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -320,14 +320,14 @@ function Lc() {
|
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
322
|
var Kt = Object.prototype.hasOwnProperty, cl = {}, dl = E.ReactDebugCurrentFrame;
|
|
323
|
-
function
|
|
323
|
+
function en(h) {
|
|
324
324
|
if (h) {
|
|
325
|
-
var K = h._owner,
|
|
326
|
-
dl.setExtraStackFrame(
|
|
325
|
+
var K = h._owner, R = Qt(h.type, h._source, K ? K.type : null);
|
|
326
|
+
dl.setExtraStackFrame(R);
|
|
327
327
|
} else
|
|
328
328
|
dl.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function dc(h, K,
|
|
330
|
+
function dc(h, K, R, V, J) {
|
|
331
331
|
{
|
|
332
332
|
var te = Function.call.bind(Kt);
|
|
333
333
|
for (var q in h)
|
|
@@ -335,25 +335,25 @@ function Lc() {
|
|
|
335
335
|
var G = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof h[q] != "function") {
|
|
338
|
-
var he = Error((V || "React class") + ": " +
|
|
338
|
+
var he = Error((V || "React class") + ": " + R + " 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
339
|
throw he.name = "Invariant Violation", he;
|
|
340
340
|
}
|
|
341
|
-
G = h[q](K, q, V,
|
|
341
|
+
G = h[q](K, q, V, R, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (ie) {
|
|
343
343
|
G = ie;
|
|
344
344
|
}
|
|
345
|
-
G && !(G instanceof Error) && (
|
|
345
|
+
G && !(G instanceof Error) && (en(J), S("%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).", V || "React class", R, q, typeof G), en(null)), G instanceof Error && !(G.message in cl) && (cl[G.message] = !0, en(J), S("Failed %s type: %s", R, G.message), en(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var fc = Array.isArray;
|
|
350
|
-
function
|
|
350
|
+
function zn(h) {
|
|
351
351
|
return fc(h);
|
|
352
352
|
}
|
|
353
353
|
function pc(h) {
|
|
354
354
|
{
|
|
355
|
-
var K = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var K = typeof Symbol == "function" && Symbol.toStringTag, R = K && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
356
|
+
return R;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function vc(h) {
|
|
@@ -375,8 +375,8 @@ function Lc() {
|
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
|
-
}, vl, hl,
|
|
379
|
-
|
|
378
|
+
}, vl, hl, jn;
|
|
379
|
+
jn = {};
|
|
380
380
|
function mc(h) {
|
|
381
381
|
if (Kt.call(h, "ref")) {
|
|
382
382
|
var K = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
@@ -395,40 +395,40 @@ function Lc() {
|
|
|
395
395
|
}
|
|
396
396
|
function gc(h, K) {
|
|
397
397
|
if (typeof h.ref == "string" && Mt.current && K && Mt.current.stateNode !== K) {
|
|
398
|
-
var
|
|
399
|
-
|
|
398
|
+
var R = x(Mt.current.type);
|
|
399
|
+
jn[R] || (S('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', x(Mt.current.type), h.ref), jn[R] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function $c(h, K) {
|
|
403
403
|
{
|
|
404
|
-
var
|
|
404
|
+
var R = function() {
|
|
405
405
|
vl || (vl = !0, S("%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
|
-
|
|
408
|
-
get:
|
|
407
|
+
R.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
408
|
+
get: R,
|
|
409
409
|
configurable: !0
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
function yc(h, K) {
|
|
414
414
|
{
|
|
415
|
-
var
|
|
415
|
+
var R = function() {
|
|
416
416
|
hl || (hl = !0, S("%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
|
-
|
|
419
|
-
get:
|
|
418
|
+
R.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
419
|
+
get: R,
|
|
420
420
|
configurable: !0
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var xc = function(h, K,
|
|
424
|
+
var xc = function(h, K, R, V, J, te, q) {
|
|
425
425
|
var G = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: e,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
429
429
|
type: h,
|
|
430
430
|
key: K,
|
|
431
|
-
ref:
|
|
431
|
+
ref: R,
|
|
432
432
|
props: q,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
434
|
_owner: te
|
|
@@ -450,10 +450,10 @@ function Lc() {
|
|
|
450
450
|
value: J
|
|
451
451
|
}), Object.freeze && (Object.freeze(G.props), Object.freeze(G)), G;
|
|
452
452
|
};
|
|
453
|
-
function Ec(h, K,
|
|
453
|
+
function Ec(h, K, R, V, J) {
|
|
454
454
|
{
|
|
455
455
|
var te, q = {}, G = null, he = null;
|
|
456
|
-
|
|
456
|
+
R !== void 0 && (pl(R), G = "" + R), bc(K) && (pl(K.key), G = "" + K.key), mc(K) && (he = K.ref, gc(K, J));
|
|
457
457
|
for (te in K)
|
|
458
458
|
Kt.call(K, te) && !hc.hasOwnProperty(te) && (q[te] = K[te]);
|
|
459
459
|
if (h && h.defaultProps) {
|
|
@@ -468,23 +468,23 @@ function Lc() {
|
|
|
468
468
|
return xc(h, G, he, J, V, Mt.current, q);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var Vn = E.ReactCurrentOwner, ml = E.ReactDebugCurrentFrame;
|
|
472
472
|
function $t(h) {
|
|
473
473
|
if (h) {
|
|
474
|
-
var K = h._owner,
|
|
475
|
-
ml.setExtraStackFrame(
|
|
474
|
+
var K = h._owner, R = Qt(h.type, h._source, K ? K.type : null);
|
|
475
|
+
ml.setExtraStackFrame(R);
|
|
476
476
|
} else
|
|
477
477
|
ml.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
function
|
|
479
|
+
var Hn;
|
|
480
|
+
Hn = !1;
|
|
481
|
+
function Wn(h) {
|
|
482
482
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
483
483
|
}
|
|
484
484
|
function bl() {
|
|
485
485
|
{
|
|
486
|
-
if (
|
|
487
|
-
var h = x(
|
|
486
|
+
if (Vn.current) {
|
|
487
|
+
var h = x(Vn.current.type);
|
|
488
488
|
if (h)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -501,10 +501,10 @@ Check the render method of \`` + h + "`.";
|
|
|
501
501
|
{
|
|
502
502
|
var K = bl();
|
|
503
503
|
if (!K) {
|
|
504
|
-
var
|
|
505
|
-
|
|
504
|
+
var R = typeof h == "string" ? h : h.displayName || h.name;
|
|
505
|
+
R && (K = `
|
|
506
506
|
|
|
507
|
-
Check the top-level render call using <` +
|
|
507
|
+
Check the top-level render call using <` + R + ">.");
|
|
508
508
|
}
|
|
509
509
|
return K;
|
|
510
510
|
}
|
|
@@ -514,30 +514,30 @@ Check the top-level render call using <` + N + ">.");
|
|
|
514
514
|
if (!h._store || h._store.validated || h.key != null)
|
|
515
515
|
return;
|
|
516
516
|
h._store.validated = !0;
|
|
517
|
-
var
|
|
518
|
-
if (gl[
|
|
517
|
+
var R = Cc(K);
|
|
518
|
+
if (gl[R])
|
|
519
519
|
return;
|
|
520
|
-
gl[
|
|
520
|
+
gl[R] = !0;
|
|
521
521
|
var V = "";
|
|
522
|
-
h && h._owner && h._owner !==
|
|
522
|
+
h && h._owner && h._owner !== Vn.current && (V = " It was passed a child from " + x(h._owner.type) + "."), $t(h), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, V), $t(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function yl(h, K) {
|
|
526
526
|
{
|
|
527
527
|
if (typeof h != "object")
|
|
528
528
|
return;
|
|
529
|
-
if (
|
|
530
|
-
for (var
|
|
531
|
-
var V = h[
|
|
532
|
-
|
|
529
|
+
if (zn(h))
|
|
530
|
+
for (var R = 0; R < h.length; R++) {
|
|
531
|
+
var V = h[R];
|
|
532
|
+
Wn(V) && $l(V, K);
|
|
533
533
|
}
|
|
534
|
-
else if (
|
|
534
|
+
else if (Wn(h))
|
|
535
535
|
h._store && (h._store.validated = !0);
|
|
536
536
|
else if (h) {
|
|
537
537
|
var J = g(h);
|
|
538
538
|
if (typeof J == "function" && J !== h.entries)
|
|
539
539
|
for (var te = J.call(h), q; !(q = te.next()).done; )
|
|
540
|
-
|
|
540
|
+
Wn(q.value) && $l(q.value, K);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -546,20 +546,20 @@ Check the top-level render call using <` + N + ">.");
|
|
|
546
546
|
var K = h.type;
|
|
547
547
|
if (K == null || typeof K == "string")
|
|
548
548
|
return;
|
|
549
|
-
var
|
|
549
|
+
var R;
|
|
550
550
|
if (typeof K == "function")
|
|
551
|
-
|
|
551
|
+
R = K.propTypes;
|
|
552
552
|
else if (typeof K == "object" && (K.$$typeof === u || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
554
|
K.$$typeof === d))
|
|
555
|
-
|
|
555
|
+
R = K.propTypes;
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
|
-
if (
|
|
558
|
+
if (R) {
|
|
559
559
|
var V = x(K);
|
|
560
|
-
dc(
|
|
561
|
-
} else if (K.PropTypes !== void 0 && !
|
|
562
|
-
|
|
560
|
+
dc(R, h.props, "prop", V, h);
|
|
561
|
+
} else if (K.PropTypes !== void 0 && !Hn) {
|
|
562
|
+
Hn = !0;
|
|
563
563
|
var J = x(K);
|
|
564
564
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", J || "Unknown");
|
|
565
565
|
}
|
|
@@ -568,8 +568,8 @@ Check the top-level render call using <` + N + ">.");
|
|
|
568
568
|
}
|
|
569
569
|
function Pc(h) {
|
|
570
570
|
{
|
|
571
|
-
for (var K = Object.keys(h.props),
|
|
572
|
-
var V = K[
|
|
571
|
+
for (var K = Object.keys(h.props), R = 0; R < K.length; R++) {
|
|
572
|
+
var V = K[R];
|
|
573
573
|
if (V !== "children" && V !== "key") {
|
|
574
574
|
$t(h), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V), $t(null);
|
|
575
575
|
break;
|
|
@@ -579,7 +579,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var xl = {};
|
|
582
|
-
function El(h, K,
|
|
582
|
+
function El(h, K, R, V, J, te) {
|
|
583
583
|
{
|
|
584
584
|
var q = w(h);
|
|
585
585
|
if (!q) {
|
|
@@ -588,16 +588,16 @@ Check the top-level render call using <` + N + ">.");
|
|
|
588
588
|
var he = Sc();
|
|
589
589
|
he ? G += he : G += bl();
|
|
590
590
|
var ie;
|
|
591
|
-
h === null ? ie = "null" :
|
|
591
|
+
h === null ? ie = "null" : zn(h) ? ie = "array" : h !== void 0 && h.$$typeof === e ? (ie = "<" + (x(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof h, S("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 se = Ec(h, K,
|
|
593
|
+
var se = Ec(h, K, R, J, te);
|
|
594
594
|
if (se == null)
|
|
595
595
|
return se;
|
|
596
596
|
if (q) {
|
|
597
597
|
var Ce = K.children;
|
|
598
598
|
if (Ce !== void 0)
|
|
599
599
|
if (V)
|
|
600
|
-
if (
|
|
600
|
+
if (zn(Ce)) {
|
|
601
601
|
for (var yt = 0; yt < Ce.length; yt++)
|
|
602
602
|
yl(Ce[yt], h);
|
|
603
603
|
Object.freeze && Object.freeze(Ce);
|
|
@@ -609,31 +609,31 @@ Check the top-level render call using <` + N + ">.");
|
|
|
609
609
|
if (Kt.call(K, "key")) {
|
|
610
610
|
var it = x(h), ge = Object.keys(K).filter(function(Kc) {
|
|
611
611
|
return Kc !== "key";
|
|
612
|
-
}),
|
|
613
|
-
if (!xl[it +
|
|
612
|
+
}), Un = ge.length > 0 ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
+
if (!xl[it + Un]) {
|
|
614
614
|
var Ac = ge.length > 0 ? "{" + ge.join(": ..., ") + ": ...}" : "{}";
|
|
615
615
|
S(`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:
|
|
619
619
|
let props = %s;
|
|
620
|
-
<%s key={someKey} {...props} />`,
|
|
620
|
+
<%s key={someKey} {...props} />`, Un, it, Ac, it), xl[it + Un] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return h === r ? Pc(se) : wc(se), se;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function Dc(h, K,
|
|
627
|
-
return El(h, K,
|
|
626
|
+
function Dc(h, K, R) {
|
|
627
|
+
return El(h, K, R, !0);
|
|
628
628
|
}
|
|
629
|
-
function kc(h, K,
|
|
630
|
-
return El(h, K,
|
|
629
|
+
function kc(h, K, R) {
|
|
630
|
+
return El(h, K, R, !1);
|
|
631
631
|
}
|
|
632
632
|
var Tc = kc, Bc = Dc;
|
|
633
|
-
|
|
634
|
-
}()),
|
|
633
|
+
Ft.Fragment = r, Ft.jsx = Tc, Ft.jsxs = Bc;
|
|
634
|
+
}()), Ft;
|
|
635
635
|
}
|
|
636
|
-
process.env.NODE_ENV === "production" ? dr.exports =
|
|
636
|
+
process.env.NODE_ENV === "production" ? dr.exports = Nc() : dr.exports = Lc();
|
|
637
637
|
var b = dr.exports;
|
|
638
638
|
const Q = typeof document < "u" ? B.useLayoutEffect : () => {
|
|
639
639
|
};
|
|
@@ -669,10 +669,10 @@ function Oc(t) {
|
|
|
669
669
|
i
|
|
670
670
|
];
|
|
671
671
|
}
|
|
672
|
-
const
|
|
672
|
+
const pn = {
|
|
673
673
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
674
674
|
current: 0
|
|
675
|
-
}, xi = /* @__PURE__ */ B.createContext(
|
|
675
|
+
}, xi = /* @__PURE__ */ B.createContext(pn), zc = /* @__PURE__ */ B.createContext(!1);
|
|
676
676
|
let jc = !!(typeof window < "u" && window.document && window.document.createElement), Yn = /* @__PURE__ */ new WeakMap();
|
|
677
677
|
function Vc(t = !1) {
|
|
678
678
|
let e = Y(xi), n = M(null);
|
|
@@ -692,12 +692,12 @@ function Vc(t = !1) {
|
|
|
692
692
|
}
|
|
693
693
|
function Hc(t) {
|
|
694
694
|
let e = Y(xi);
|
|
695
|
-
e ===
|
|
696
|
-
let n = Vc(!!t), r = e ===
|
|
695
|
+
e === pn && !jc && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
696
|
+
let n = Vc(!!t), r = e === pn && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
697
697
|
return t || `${r}-${n}`;
|
|
698
698
|
}
|
|
699
699
|
function Wc(t) {
|
|
700
|
-
let e = B.useId(), [n] = j(rt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${
|
|
700
|
+
let e = B.useId(), [n] = j(rt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${pn.prefix}`;
|
|
701
701
|
return t || `${r}-${e}`;
|
|
702
702
|
}
|
|
703
703
|
const Uc = typeof B.useId == "function" ? Wc : Hc;
|
|
@@ -759,7 +759,7 @@ function tt(t = []) {
|
|
|
759
759
|
...t
|
|
760
760
|
]), n;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Ie(...t) {
|
|
763
763
|
return (...e) => {
|
|
764
764
|
for (let n of t) typeof n == "function" && n(...e);
|
|
765
765
|
};
|
|
@@ -792,7 +792,7 @@ function W(...t) {
|
|
|
792
792
|
typeof i == "function" && typeof o == "function" && // This is a lot faster than a regex.
|
|
793
793
|
l[0] === "o" && l[1] === "n" && l.charCodeAt(2) >= /* 'A' */
|
|
794
794
|
65 && l.charCodeAt(2) <= /* 'Z' */
|
|
795
|
-
90 ? e[l] =
|
|
795
|
+
90 ? e[l] = Ie(i, o) : (l === "className" || l === "UNSAFE_className") && typeof i == "string" && typeof o == "string" ? e[l] = Jc(i, o) : l === "id" && i && o ? e.id = Zc(i, o) : e[l] = o !== void 0 ? o : i;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return e;
|
|
@@ -833,20 +833,20 @@ function Le(t) {
|
|
|
833
833
|
t.focus(), od(e);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
let
|
|
836
|
+
let ln = null;
|
|
837
837
|
function ld() {
|
|
838
|
-
if (
|
|
839
|
-
|
|
838
|
+
if (ln == null) {
|
|
839
|
+
ln = !1;
|
|
840
840
|
try {
|
|
841
841
|
document.createElement("div").focus({
|
|
842
842
|
get preventScroll() {
|
|
843
|
-
return
|
|
843
|
+
return ln = !0, !0;
|
|
844
844
|
}
|
|
845
845
|
});
|
|
846
846
|
} catch {
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return ln;
|
|
850
850
|
}
|
|
851
851
|
function id(t) {
|
|
852
852
|
let e = t.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
@@ -866,7 +866,7 @@ function od(t) {
|
|
|
866
866
|
for (let { element: e, scrollTop: n, scrollLeft: r } of t)
|
|
867
867
|
e.scrollTop = n, e.scrollLeft = r;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function wn(t) {
|
|
870
870
|
var e;
|
|
871
871
|
return typeof window > "u" || window.navigator == null ? !1 : ((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands.some((n) => t.test(n.brand))) || t.test(window.navigator.userAgent);
|
|
872
872
|
}
|
|
@@ -874,35 +874,35 @@ function Or(t) {
|
|
|
874
874
|
var e;
|
|
875
875
|
return typeof window < "u" && window.navigator != null ? t.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Ve(t) {
|
|
878
878
|
let e = null;
|
|
879
879
|
return () => (e == null && (e = t()), e);
|
|
880
880
|
}
|
|
881
|
-
const nt =
|
|
881
|
+
const nt = Ve(function() {
|
|
882
882
|
return Or(/^Mac/i);
|
|
883
|
-
}), ad =
|
|
883
|
+
}), ad = Ve(function() {
|
|
884
884
|
return Or(/^iPhone/i);
|
|
885
|
-
}), Si =
|
|
885
|
+
}), Si = Ve(function() {
|
|
886
886
|
return Or(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
887
887
|
nt() && navigator.maxTouchPoints > 1;
|
|
888
|
-
}),
|
|
888
|
+
}), Pn = Ve(function() {
|
|
889
889
|
return ad() || Si();
|
|
890
|
-
}), ud =
|
|
891
|
-
return nt() ||
|
|
892
|
-
}), zr =
|
|
893
|
-
return
|
|
894
|
-
}), sd =
|
|
895
|
-
return
|
|
896
|
-
}),
|
|
897
|
-
return
|
|
898
|
-
}), cd =
|
|
899
|
-
return
|
|
890
|
+
}), ud = Ve(function() {
|
|
891
|
+
return nt() || Pn();
|
|
892
|
+
}), zr = Ve(function() {
|
|
893
|
+
return wn(/AppleWebKit/i) && !sd();
|
|
894
|
+
}), sd = Ve(function() {
|
|
895
|
+
return wn(/Chrome/i);
|
|
896
|
+
}), vn = Ve(function() {
|
|
897
|
+
return wn(/Android/i);
|
|
898
|
+
}), cd = Ve(function() {
|
|
899
|
+
return wn(/Firefox/i);
|
|
900
900
|
}), dd = /* @__PURE__ */ ee({
|
|
901
901
|
isNative: !0,
|
|
902
902
|
open: pd,
|
|
903
903
|
useHref: (t) => t
|
|
904
904
|
});
|
|
905
|
-
function
|
|
905
|
+
function qt() {
|
|
906
906
|
return Y(dd);
|
|
907
907
|
}
|
|
908
908
|
function ct(t, e, n = !0) {
|
|
@@ -937,7 +937,7 @@ function pd(t, e) {
|
|
|
937
937
|
fd(t, (n) => ct(n, e));
|
|
938
938
|
}
|
|
939
939
|
function vd(t) {
|
|
940
|
-
let e =
|
|
940
|
+
let e = qt();
|
|
941
941
|
var n;
|
|
942
942
|
const r = e.useHref((n = t.href) !== null && n !== void 0 ? n : "");
|
|
943
943
|
return {
|
|
@@ -950,7 +950,7 @@ function vd(t) {
|
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
function Ci(t) {
|
|
953
|
-
let e =
|
|
953
|
+
let e = qt();
|
|
954
954
|
var n;
|
|
955
955
|
const r = e.useHref((n = t == null ? void 0 : t.href) !== null && n !== void 0 ? n : "");
|
|
956
956
|
return {
|
|
@@ -1033,7 +1033,7 @@ function Di(t, e) {
|
|
|
1033
1033
|
"aria-labelledby": l
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Dn(t) {
|
|
1037
1037
|
const e = M(null);
|
|
1038
1038
|
return H(() => ({
|
|
1039
1039
|
get current() {
|
|
@@ -1089,24 +1089,24 @@ function jr(t, e) {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function Vt(t, e) {
|
|
1093
1093
|
let n = window.getComputedStyle(t), r = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
|
|
1094
1094
|
return r && e && (r = t.scrollHeight !== t.clientHeight || t.scrollWidth !== t.clientWidth), r;
|
|
1095
1095
|
}
|
|
1096
1096
|
function Ze(t, e) {
|
|
1097
1097
|
let n = t;
|
|
1098
|
-
for (
|
|
1098
|
+
for (Vt(n, e) && (n = n.parentElement); n && !Vt(n, e); ) n = n.parentElement;
|
|
1099
1099
|
return n || document.scrollingElement || document.documentElement;
|
|
1100
1100
|
}
|
|
1101
1101
|
function md(t, e) {
|
|
1102
1102
|
const n = [];
|
|
1103
1103
|
for (; t && t !== document.documentElement; )
|
|
1104
|
-
|
|
1104
|
+
Vt(t, e) && n.push(t), t = t.parentElement;
|
|
1105
1105
|
return n;
|
|
1106
1106
|
}
|
|
1107
1107
|
let bd = 0;
|
|
1108
1108
|
const qn = /* @__PURE__ */ new Map();
|
|
1109
|
-
function
|
|
1109
|
+
function kn(t) {
|
|
1110
1110
|
let [e, n] = j();
|
|
1111
1111
|
return Q(() => {
|
|
1112
1112
|
if (!t) return;
|
|
@@ -1189,12 +1189,12 @@ function Je(t, e) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
function vr(t) {
|
|
1192
|
-
return t.mozInputSource === 0 && t.isTrusted ? !0 :
|
|
1192
|
+
return t.mozInputSource === 0 && t.isTrusted ? !0 : vn() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
1193
1193
|
}
|
|
1194
1194
|
function gd(t) {
|
|
1195
|
-
return !
|
|
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
|
-
function
|
|
1197
|
+
function Tn(t, e, n) {
|
|
1198
1198
|
let r = M(e), l = ae(() => {
|
|
1199
1199
|
n && n(r.current);
|
|
1200
1200
|
});
|
|
@@ -1238,18 +1238,18 @@ function lt(t, e, n) {
|
|
|
1238
1238
|
function hr(t, e = -1 / 0, n = 1 / 0) {
|
|
1239
1239
|
return Math.min(Math.max(t, e), n);
|
|
1240
1240
|
}
|
|
1241
|
-
let Pt = "default", mr = "",
|
|
1241
|
+
let Pt = "default", mr = "", fn = /* @__PURE__ */ new WeakMap();
|
|
1242
1242
|
function kl(t) {
|
|
1243
|
-
if (
|
|
1243
|
+
if (Pn()) {
|
|
1244
1244
|
if (Pt === "default") {
|
|
1245
1245
|
const e = re(t);
|
|
1246
1246
|
mr = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
|
|
1247
1247
|
}
|
|
1248
1248
|
Pt = "disabled";
|
|
1249
|
-
} else (t instanceof HTMLElement || t instanceof SVGElement) && (
|
|
1249
|
+
} else (t instanceof HTMLElement || t instanceof SVGElement) && (fn.set(t, t.style.userSelect), t.style.userSelect = "none");
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1252
|
-
if (
|
|
1251
|
+
function on(t) {
|
|
1252
|
+
if (Pn()) {
|
|
1253
1253
|
if (Pt !== "disabled") return;
|
|
1254
1254
|
Pt = "restoring", setTimeout(() => {
|
|
1255
1255
|
wi(() => {
|
|
@@ -1259,16 +1259,16 @@ function an(t) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
}, 300);
|
|
1262
|
-
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t &&
|
|
1263
|
-
let e =
|
|
1264
|
-
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"),
|
|
1262
|
+
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && fn.has(t)) {
|
|
1263
|
+
let e = fn.get(t);
|
|
1264
|
+
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), fn.delete(t);
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
const
|
|
1267
|
+
const Ht = B.createContext({
|
|
1268
1268
|
register: () => {
|
|
1269
1269
|
}
|
|
1270
1270
|
});
|
|
1271
|
-
|
|
1271
|
+
Ht.displayName = "PressResponderContext";
|
|
1272
1272
|
function $d(t, e) {
|
|
1273
1273
|
return e.get ? e.get.call(t) : e.value;
|
|
1274
1274
|
}
|
|
@@ -1300,26 +1300,26 @@ function Tl(t, e, n) {
|
|
|
1300
1300
|
return Sd(t, r, n), n;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Cd(t) {
|
|
1303
|
-
let e = Y(
|
|
1303
|
+
let e = Y(Ht);
|
|
1304
1304
|
if (e) {
|
|
1305
1305
|
let { register: n, ...r } = e;
|
|
1306
1306
|
t = W(r, t), n();
|
|
1307
1307
|
}
|
|
1308
1308
|
return jr(e, t.ref), t;
|
|
1309
1309
|
}
|
|
1310
|
-
var
|
|
1311
|
-
class
|
|
1310
|
+
var an = /* @__PURE__ */ new WeakMap();
|
|
1311
|
+
class un {
|
|
1312
1312
|
continuePropagation() {
|
|
1313
|
-
Tl(this,
|
|
1313
|
+
Tl(this, an, !1);
|
|
1314
1314
|
}
|
|
1315
1315
|
get shouldStopPropagation() {
|
|
1316
|
-
return yd(this,
|
|
1316
|
+
return yd(this, an);
|
|
1317
1317
|
}
|
|
1318
1318
|
constructor(e, n, r, l) {
|
|
1319
|
-
Ed(this,
|
|
1319
|
+
Ed(this, an, {
|
|
1320
1320
|
writable: !0,
|
|
1321
1321
|
value: void 0
|
|
1322
|
-
}), Tl(this,
|
|
1322
|
+
}), Tl(this, an, !0);
|
|
1323
1323
|
var i;
|
|
1324
1324
|
let o = (i = l == null ? void 0 : l.target) !== null && i !== void 0 ? i : r.currentTarget;
|
|
1325
1325
|
const a = o == null ? void 0 : o.getBoundingClientRect();
|
|
@@ -1328,7 +1328,7 @@ class sn {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
const Bl = Symbol("linkClicked");
|
|
1331
|
-
function
|
|
1331
|
+
function ze(t) {
|
|
1332
1332
|
let {
|
|
1333
1333
|
onPress: e,
|
|
1334
1334
|
onPressChange: n,
|
|
@@ -1358,78 +1358,78 @@ function je(t) {
|
|
|
1358
1358
|
if (o || w.didFirePressStart) return !1;
|
|
1359
1359
|
let T = !0;
|
|
1360
1360
|
if (w.isTriggeringEvent = !0, r) {
|
|
1361
|
-
let
|
|
1362
|
-
r(
|
|
1361
|
+
let F = new un("pressstart", A, v);
|
|
1362
|
+
r(F), T = F.shouldStopPropagation;
|
|
1363
1363
|
}
|
|
1364
1364
|
return n && n(!0), w.isTriggeringEvent = !1, w.didFirePressStart = !0, m(!0), T;
|
|
1365
1365
|
}), y = ae((v, A, w = !0) => {
|
|
1366
1366
|
let T = $.current;
|
|
1367
1367
|
if (!T.didFirePressStart) return !1;
|
|
1368
1368
|
T.ignoreClickAfterPress = !0, T.didFirePressStart = !1, T.isTriggeringEvent = !0;
|
|
1369
|
-
let
|
|
1369
|
+
let F = !0;
|
|
1370
1370
|
if (l) {
|
|
1371
|
-
let x = new
|
|
1372
|
-
l(x),
|
|
1371
|
+
let x = new un("pressend", A, v);
|
|
1372
|
+
l(x), F = x.shouldStopPropagation;
|
|
1373
1373
|
}
|
|
1374
1374
|
if (n && n(!1), m(!1), e && w && !o) {
|
|
1375
|
-
let x = new
|
|
1376
|
-
e(x),
|
|
1375
|
+
let x = new un("press", A, v);
|
|
1376
|
+
e(x), F && (F = x.shouldStopPropagation);
|
|
1377
1377
|
}
|
|
1378
|
-
return T.isTriggeringEvent = !1,
|
|
1378
|
+
return T.isTriggeringEvent = !1, F;
|
|
1379
1379
|
}), k = ae((v, A) => {
|
|
1380
1380
|
let w = $.current;
|
|
1381
1381
|
if (o) return !1;
|
|
1382
1382
|
if (i) {
|
|
1383
1383
|
w.isTriggeringEvent = !0;
|
|
1384
|
-
let T = new
|
|
1384
|
+
let T = new un("pressup", A, v);
|
|
1385
1385
|
return i(T), w.isTriggeringEvent = !1, T.shouldStopPropagation;
|
|
1386
1386
|
}
|
|
1387
1387
|
return !0;
|
|
1388
1388
|
}), C = ae((v) => {
|
|
1389
1389
|
let A = $.current;
|
|
1390
|
-
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && y(
|
|
1390
|
+
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && y(Fe(A.target, v), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, E(), c || on(A.target));
|
|
1391
1391
|
}), P = ae((v) => {
|
|
1392
1392
|
s && C(v);
|
|
1393
1393
|
}), _ = H(() => {
|
|
1394
1394
|
let v = $.current, A = {
|
|
1395
1395
|
onKeyDown(T) {
|
|
1396
1396
|
if (Xn(T.nativeEvent, T.currentTarget) && T.currentTarget.contains(T.target)) {
|
|
1397
|
-
var
|
|
1397
|
+
var F;
|
|
1398
1398
|
Kl(T.target, T.key) && T.preventDefault();
|
|
1399
1399
|
let x = !0;
|
|
1400
1400
|
if (!v.isPressed && !T.repeat) {
|
|
1401
1401
|
v.target = T.currentTarget, v.isPressed = !0, x = S(T, "keyboard");
|
|
1402
|
-
let
|
|
1403
|
-
Xn(z,
|
|
1402
|
+
let N = T.currentTarget, D = (z) => {
|
|
1403
|
+
Xn(z, N) && !z.repeat && N.contains(z.target) && v.target && k(Fe(v.target, z), "keyboard");
|
|
1404
1404
|
};
|
|
1405
|
-
g(re(T.currentTarget), "keyup",
|
|
1405
|
+
g(re(T.currentTarget), "keyup", Ie(D, w), !0);
|
|
1406
1406
|
}
|
|
1407
|
-
x && T.stopPropagation(), T.metaKey && nt() && ((
|
|
1407
|
+
x && T.stopPropagation(), T.metaKey && nt() && ((F = v.metaKeyEvents) === null || F === void 0 || F.set(T.key, T.nativeEvent));
|
|
1408
1408
|
} else T.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1409
1409
|
},
|
|
1410
1410
|
onClick(T) {
|
|
1411
1411
|
if (!(T && !T.currentTarget.contains(T.target)) && T && T.button === 0 && !v.isTriggeringEvent && !ct.isOpening) {
|
|
1412
|
-
let
|
|
1412
|
+
let F = !0;
|
|
1413
1413
|
if (o && T.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || vr(T.nativeEvent))) {
|
|
1414
1414
|
!o && !u && Le(T.currentTarget);
|
|
1415
|
-
let x = S(T, "virtual"),
|
|
1416
|
-
|
|
1415
|
+
let x = S(T, "virtual"), N = k(T, "virtual"), D = y(T, "virtual");
|
|
1416
|
+
F = x && N && D;
|
|
1417
1417
|
}
|
|
1418
|
-
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1,
|
|
1418
|
+
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, F && T.stopPropagation();
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
}, w = (T) => {
|
|
1422
|
-
var
|
|
1422
|
+
var F;
|
|
1423
1423
|
if (v.isPressed && v.target && Xn(T, v.target)) {
|
|
1424
1424
|
var x;
|
|
1425
1425
|
Kl(T.target, T.key) && T.preventDefault();
|
|
1426
1426
|
let D = T.target;
|
|
1427
|
-
y(
|
|
1428
|
-
} else if (T.key === "Meta" && (!((
|
|
1429
|
-
var
|
|
1427
|
+
y(Fe(v.target, T), "keyboard", v.target.contains(D)), E(), T.key !== "Enter" && Vr(v.target) && v.target.contains(D) && !T[Bl] && (T[Bl] = !0, ct(v.target, T, !1)), v.isPressed = !1, (x = v.metaKeyEvents) === null || x === void 0 || x.delete(T.key);
|
|
1428
|
+
} else if (T.key === "Meta" && (!((F = v.metaKeyEvents) === null || F === void 0) && F.size)) {
|
|
1429
|
+
var N;
|
|
1430
1430
|
let D = v.metaKeyEvents;
|
|
1431
1431
|
v.metaKeyEvents = void 0;
|
|
1432
|
-
for (let z of D.values()) (
|
|
1432
|
+
for (let z of D.values()) (N = v.target) === null || N === void 0 || N.dispatchEvent(new KeyboardEvent("keyup", z));
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
1435
|
if (typeof PointerEvent < "u") {
|
|
@@ -1441,21 +1441,21 @@ function je(t) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
Zn(D.currentTarget) && D.preventDefault(), v.pointerType = D.pointerType;
|
|
1443
1443
|
let z = !0;
|
|
1444
|
-
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = D.pointerId, v.target = D.currentTarget, !o && !u && Le(D.currentTarget), c || kl(v.target), z = S(D, v.pointerType), g(re(D.currentTarget), "pointermove", T, !1), g(re(D.currentTarget), "pointerup",
|
|
1444
|
+
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = D.pointerId, v.target = D.currentTarget, !o && !u && Le(D.currentTarget), c || kl(v.target), z = S(D, v.pointerType), g(re(D.currentTarget), "pointermove", T, !1), g(re(D.currentTarget), "pointerup", F, !1), g(re(D.currentTarget), "pointercancel", N, !1)), z && D.stopPropagation();
|
|
1445
1445
|
}, A.onMouseDown = (D) => {
|
|
1446
1446
|
D.currentTarget.contains(D.target) && D.button === 0 && (Zn(D.currentTarget) && D.preventDefault(), D.stopPropagation());
|
|
1447
1447
|
}, A.onPointerUp = (D) => {
|
|
1448
1448
|
!D.currentTarget.contains(D.target) || v.pointerType === "virtual" || D.button === 0 && xt(D, D.currentTarget) && k(D, v.pointerType || D.pointerType);
|
|
1449
1449
|
};
|
|
1450
1450
|
let T = (D) => {
|
|
1451
|
-
D.pointerId === v.activePointerId && (v.target && xt(D, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(
|
|
1452
|
-
},
|
|
1453
|
-
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (xt(D, v.target) && v.pointerType != null ? y(
|
|
1451
|
+
D.pointerId === v.activePointerId && (v.target && xt(D, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(Fe(v.target, D), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, y(Fe(v.target, D), v.pointerType, !1), P(D)));
|
|
1452
|
+
}, F = (D) => {
|
|
1453
|
+
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (xt(D, v.target) && v.pointerType != null ? y(Fe(v.target, D), v.pointerType) : v.isOverTarget && v.pointerType != null && y(Fe(v.target, D), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, E(), c || on(v.target), "ontouchend" in v.target && D.pointerType !== "mouse" && g(v.target, "touchend", x, {
|
|
1454
1454
|
once: !0
|
|
1455
1455
|
}));
|
|
1456
1456
|
}, x = (D) => {
|
|
1457
1457
|
Ai(D.currentTarget) && D.preventDefault();
|
|
1458
|
-
},
|
|
1458
|
+
}, N = (D) => {
|
|
1459
1459
|
C(D);
|
|
1460
1460
|
};
|
|
1461
1461
|
A.onDragStart = (D) => {
|
|
@@ -1471,12 +1471,12 @@ function je(t) {
|
|
|
1471
1471
|
v.isPressed = !0, v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = vr(x.nativeEvent) ? "virtual" : "mouse", !o && !u && Le(x.currentTarget), S(x, v.pointerType) && x.stopPropagation(), g(re(x.currentTarget), "mouseup", T, !1);
|
|
1472
1472
|
}, A.onMouseEnter = (x) => {
|
|
1473
1473
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1474
|
-
let
|
|
1475
|
-
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0,
|
|
1474
|
+
let N = !0;
|
|
1475
|
+
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, N = S(x, v.pointerType)), N && x.stopPropagation();
|
|
1476
1476
|
}, A.onMouseLeave = (x) => {
|
|
1477
1477
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1478
|
-
let
|
|
1479
|
-
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1,
|
|
1478
|
+
let N = !0;
|
|
1479
|
+
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, N = y(x, v.pointerType, !1), P(x)), N && x.stopPropagation();
|
|
1480
1480
|
}, A.onMouseUp = (x) => {
|
|
1481
1481
|
x.currentTarget.contains(x.target) && !v.ignoreEmulatedMouseEvents && x.button === 0 && k(x, v.pointerType || "mouse");
|
|
1482
1482
|
};
|
|
@@ -1486,34 +1486,34 @@ function je(t) {
|
|
|
1486
1486
|
v.ignoreEmulatedMouseEvents = !1;
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
|
-
v.target && xt(x, v.target) && v.pointerType != null ? y(
|
|
1489
|
+
v.target && xt(x, v.target) && v.pointerType != null ? y(Fe(v.target, x), v.pointerType) : v.target && v.isOverTarget && v.pointerType != null && y(Fe(v.target, x), v.pointerType, !1), v.isOverTarget = !1;
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
1492
|
A.onTouchStart = (x) => {
|
|
1493
1493
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1494
|
-
let
|
|
1495
|
-
if (!
|
|
1496
|
-
v.activePointerId =
|
|
1494
|
+
let N = wd(x.nativeEvent);
|
|
1495
|
+
if (!N) return;
|
|
1496
|
+
v.activePointerId = N.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = x.currentTarget, v.pointerType = "touch", !o && !u && Le(x.currentTarget), c || kl(v.target), S(qe(v.target, x), v.pointerType) && x.stopPropagation(), g(De(x.currentTarget), "scroll", F, !0);
|
|
1497
1497
|
}, A.onTouchMove = (x) => {
|
|
1498
1498
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1499
1499
|
if (!v.isPressed) {
|
|
1500
1500
|
x.stopPropagation();
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
|
-
let
|
|
1504
|
-
|
|
1503
|
+
let N = Al(x.nativeEvent, v.activePointerId), D = !0;
|
|
1504
|
+
N && xt(N, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, D = S(qe(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, D = y(qe(v.target, x), v.pointerType, !1), P(qe(v.target, x))), D && x.stopPropagation();
|
|
1505
1505
|
}, A.onTouchEnd = (x) => {
|
|
1506
1506
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1507
1507
|
if (!v.isPressed) {
|
|
1508
1508
|
x.stopPropagation();
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
|
-
let
|
|
1512
|
-
|
|
1511
|
+
let N = Al(x.nativeEvent, v.activePointerId), D = !0;
|
|
1512
|
+
N && xt(N, x.currentTarget) && v.pointerType != null ? (k(qe(v.target, x), v.pointerType), D = y(qe(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (D = y(qe(v.target, x), v.pointerType, !1)), D && x.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), E();
|
|
1513
1513
|
}, A.onTouchCancel = (x) => {
|
|
1514
1514
|
x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed && C(qe(v.target, x)));
|
|
1515
1515
|
};
|
|
1516
|
-
let
|
|
1516
|
+
let F = (x) => {
|
|
1517
1517
|
v.isPressed && x.target.contains(v.target) && C({
|
|
1518
1518
|
currentTarget: v.target,
|
|
1519
1519
|
shiftKey: !1,
|
|
@@ -1541,7 +1541,7 @@ function je(t) {
|
|
|
1541
1541
|
]);
|
|
1542
1542
|
return L(() => () => {
|
|
1543
1543
|
var v;
|
|
1544
|
-
c ||
|
|
1544
|
+
c || on((v = $.current.target) !== null && v !== void 0 ? v : void 0);
|
|
1545
1545
|
}, [
|
|
1546
1546
|
c
|
|
1547
1547
|
]), {
|
|
@@ -1581,7 +1581,7 @@ function qe(t, e) {
|
|
|
1581
1581
|
clientY: r
|
|
1582
1582
|
};
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Fe(t, e) {
|
|
1585
1585
|
let n = e.clientX, r = e.clientY;
|
|
1586
1586
|
return {
|
|
1587
1587
|
currentTarget: t,
|
|
@@ -1633,8 +1633,8 @@ function Ki(t, e) {
|
|
|
1633
1633
|
return t.type === "checkbox" || t.type === "radio" ? e === " " : kd.has(t.type);
|
|
1634
1634
|
}
|
|
1635
1635
|
const Td = /* @__PURE__ */ B.forwardRef(({ children: t, ...e }, n) => {
|
|
1636
|
-
let r = M(!1), l = Y(
|
|
1637
|
-
n =
|
|
1636
|
+
let r = M(!1), l = Y(Ht);
|
|
1637
|
+
n = Dn(n || (l == null ? void 0 : l.ref));
|
|
1638
1638
|
let i = W(l || {}, {
|
|
1639
1639
|
...e,
|
|
1640
1640
|
ref: n,
|
|
@@ -1644,7 +1644,7 @@ const Td = /* @__PURE__ */ B.forwardRef(({ children: t, ...e }, n) => {
|
|
|
1644
1644
|
});
|
|
1645
1645
|
return jr(l, n), L(() => {
|
|
1646
1646
|
r.current || (console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), r.current = !0);
|
|
1647
|
-
}, []), /* @__PURE__ */ B.createElement(
|
|
1647
|
+
}, []), /* @__PURE__ */ B.createElement(Ht.Provider, {
|
|
1648
1648
|
value: i
|
|
1649
1649
|
}, t);
|
|
1650
1650
|
});
|
|
@@ -1653,7 +1653,7 @@ function Bd({ children: t }) {
|
|
|
1653
1653
|
register: () => {
|
|
1654
1654
|
}
|
|
1655
1655
|
}), []);
|
|
1656
|
-
return /* @__PURE__ */ B.createElement(
|
|
1656
|
+
return /* @__PURE__ */ B.createElement(Ht.Provider, {
|
|
1657
1657
|
value: e
|
|
1658
1658
|
}, t);
|
|
1659
1659
|
}
|
|
@@ -1721,7 +1721,7 @@ function Mi(t) {
|
|
|
1721
1721
|
n
|
|
1722
1722
|
]);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Bn(t) {
|
|
1725
1725
|
let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: l } = t;
|
|
1726
1726
|
const i = X((u) => {
|
|
1727
1727
|
if (u.target === u.currentTarget)
|
|
@@ -1744,80 +1744,80 @@ function An(t) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
1746
|
}
|
|
1747
|
-
let
|
|
1747
|
+
let je = null, Wt = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), dt = !1, br = !1;
|
|
1748
1748
|
const Kd = {
|
|
1749
1749
|
Tab: !0,
|
|
1750
1750
|
Escape: !0
|
|
1751
1751
|
};
|
|
1752
|
-
function
|
|
1753
|
-
for (let n of
|
|
1752
|
+
function An(t, e) {
|
|
1753
|
+
for (let n of Wt) n(t, e);
|
|
1754
1754
|
}
|
|
1755
1755
|
function Md(t) {
|
|
1756
1756
|
return !(t.metaKey || !nt() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1759
|
-
dt = !0, Md(t) && (
|
|
1758
|
+
function hn(t) {
|
|
1759
|
+
dt = !0, Md(t) && (je = "keyboard", An("keyboard", t));
|
|
1760
1760
|
}
|
|
1761
1761
|
function Pe(t) {
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
function Fi(t) {
|
|
1765
|
-
vr(t) && (dt = !0, Ve = "virtual");
|
|
1762
|
+
je = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (dt = !0, An("pointer", t));
|
|
1766
1763
|
}
|
|
1767
1764
|
function Ii(t) {
|
|
1768
|
-
t
|
|
1765
|
+
vr(t) && (dt = !0, je = "virtual");
|
|
1766
|
+
}
|
|
1767
|
+
function Fi(t) {
|
|
1768
|
+
t.target === window || t.target === document || (!dt && !br && (je = "virtual", An("virtual", t)), dt = !1, br = !1);
|
|
1769
1769
|
}
|
|
1770
1770
|
function _i() {
|
|
1771
1771
|
dt = !1, br = !0;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
if (typeof window > "u" ||
|
|
1773
|
+
function mn(t) {
|
|
1774
|
+
if (typeof window > "u" || jt.get(De(t))) return;
|
|
1775
1775
|
const e = De(t), n = re(t);
|
|
1776
1776
|
let r = e.HTMLElement.prototype.focus;
|
|
1777
1777
|
e.HTMLElement.prototype.focus = function() {
|
|
1778
1778
|
dt = !0, r.apply(this, arguments);
|
|
1779
|
-
}, n.addEventListener("keydown",
|
|
1780
|
-
|
|
1779
|
+
}, n.addEventListener("keydown", hn, !0), n.addEventListener("keyup", hn, !0), n.addEventListener("click", Ii, !0), e.addEventListener("focus", Fi, !0), e.addEventListener("blur", _i, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Pe, !0), n.addEventListener("pointermove", Pe, !0), n.addEventListener("pointerup", Pe, !0)) : (n.addEventListener("mousedown", Pe, !0), n.addEventListener("mousemove", Pe, !0), n.addEventListener("mouseup", Pe, !0)), e.addEventListener("beforeunload", () => {
|
|
1780
|
+
Ri(t);
|
|
1781
1781
|
}, {
|
|
1782
1782
|
once: !0
|
|
1783
|
-
}),
|
|
1783
|
+
}), jt.set(e, {
|
|
1784
1784
|
focus: r
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1787
|
+
const Ri = (t, e) => {
|
|
1788
1788
|
const n = De(t), r = re(t);
|
|
1789
|
-
e && r.removeEventListener("DOMContentLoaded", e),
|
|
1789
|
+
e && r.removeEventListener("DOMContentLoaded", e), jt.has(n) && (n.HTMLElement.prototype.focus = jt.get(n).focus, r.removeEventListener("keydown", hn, !0), r.removeEventListener("keyup", hn, !0), r.removeEventListener("click", Ii, !0), n.removeEventListener("focus", Fi, !0), n.removeEventListener("blur", _i, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Pe, !0), r.removeEventListener("pointermove", Pe, !0), r.removeEventListener("pointerup", Pe, !0)) : (r.removeEventListener("mousedown", Pe, !0), r.removeEventListener("mousemove", Pe, !0), r.removeEventListener("mouseup", Pe, !0)), jt.delete(n));
|
|
1790
1790
|
};
|
|
1791
|
-
function
|
|
1791
|
+
function Id(t) {
|
|
1792
1792
|
const e = re(t);
|
|
1793
1793
|
let n;
|
|
1794
|
-
return e.readyState !== "loading" ?
|
|
1795
|
-
|
|
1796
|
-
}, e.addEventListener("DOMContentLoaded", n)), () =>
|
|
1794
|
+
return e.readyState !== "loading" ? mn(t) : (n = () => {
|
|
1795
|
+
mn(t);
|
|
1796
|
+
}, e.addEventListener("DOMContentLoaded", n)), () => Ri(t, n);
|
|
1797
1797
|
}
|
|
1798
|
-
typeof document < "u" &&
|
|
1798
|
+
typeof document < "u" && Id();
|
|
1799
1799
|
function ft() {
|
|
1800
|
-
return
|
|
1800
|
+
return je !== "pointer";
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1802
|
+
function bn() {
|
|
1803
|
+
return je;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1806
|
-
|
|
1805
|
+
function Ni(t) {
|
|
1806
|
+
je = t, An(t, null);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Li() {
|
|
1809
|
-
|
|
1810
|
-
let [t, e] = j(
|
|
1809
|
+
mn();
|
|
1810
|
+
let [t, e] = j(je);
|
|
1811
1811
|
return L(() => {
|
|
1812
1812
|
let n = () => {
|
|
1813
|
-
e(
|
|
1813
|
+
e(je);
|
|
1814
1814
|
};
|
|
1815
|
-
return
|
|
1816
|
-
|
|
1815
|
+
return Wt.add(n), () => {
|
|
1816
|
+
Wt.delete(n);
|
|
1817
1817
|
};
|
|
1818
1818
|
}, []), rt() ? null : t;
|
|
1819
1819
|
}
|
|
1820
|
-
const
|
|
1820
|
+
const Fd = /* @__PURE__ */ new Set([
|
|
1821
1821
|
"checkbox",
|
|
1822
1822
|
"radio",
|
|
1823
1823
|
"range",
|
|
@@ -1831,19 +1831,19 @@ const Id = /* @__PURE__ */ new Set([
|
|
|
1831
1831
|
function _d(t, e, n) {
|
|
1832
1832
|
var r;
|
|
1833
1833
|
const l = typeof window < "u" ? De(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? De(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, o = typeof window < "u" ? De(n == null ? void 0 : n.target).HTMLElement : HTMLElement, a = typeof window < "u" ? De(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
1834
|
-
return t = t || (n == null ? void 0 : n.target) instanceof l && !
|
|
1834
|
+
return t = t || (n == null ? void 0 : n.target) instanceof l && !Fd.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof o && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof a && !Kd[n.key]);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1837
|
-
|
|
1836
|
+
function Rd(t, e, n) {
|
|
1837
|
+
mn(), L(() => {
|
|
1838
1838
|
let r = (l, i) => {
|
|
1839
1839
|
_d(!!(n != null && n.isTextInput), l, i) && t(ft());
|
|
1840
1840
|
};
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1841
|
+
return Wt.add(r), () => {
|
|
1842
|
+
Wt.delete(r);
|
|
1843
1843
|
};
|
|
1844
1844
|
}, e);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function Xt(t) {
|
|
1847
1847
|
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: l } = t, i = M({
|
|
1848
1848
|
isFocusWithin: !1
|
|
1849
1849
|
}), o = X((s) => {
|
|
@@ -1872,16 +1872,16 @@ function Zt(t) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
|
-
let
|
|
1875
|
+
let gn = !1, Jn = 0;
|
|
1876
1876
|
function gr() {
|
|
1877
|
-
|
|
1878
|
-
|
|
1877
|
+
gn = !0, setTimeout(() => {
|
|
1878
|
+
gn = !1;
|
|
1879
1879
|
}, 50);
|
|
1880
1880
|
}
|
|
1881
1881
|
function Ml(t) {
|
|
1882
1882
|
t.pointerType === "touch" && gr();
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function Nd() {
|
|
1885
1885
|
if (!(typeof document > "u"))
|
|
1886
1886
|
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Ml) : document.addEventListener("touchend", gr), Jn++, () => {
|
|
1887
1887
|
Jn--, !(Jn > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Ml) : document.removeEventListener("touchend", gr));
|
|
@@ -1894,7 +1894,7 @@ function Tt(t) {
|
|
|
1894
1894
|
pointerType: "",
|
|
1895
1895
|
target: null
|
|
1896
1896
|
}).current;
|
|
1897
|
-
L(
|
|
1897
|
+
L(Nd, []);
|
|
1898
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;
|
|
@@ -1916,13 +1916,13 @@ function Tt(t) {
|
|
|
1916
1916
|
}), n && n(!1), o(!1);
|
|
1917
1917
|
}, f = {};
|
|
1918
1918
|
return typeof PointerEvent < "u" ? (f.onPointerEnter = (p) => {
|
|
1919
|
-
|
|
1919
|
+
gn && p.pointerType === "mouse" || c(p, p.pointerType);
|
|
1920
1920
|
}, f.onPointerLeave = (p) => {
|
|
1921
1921
|
!l && p.currentTarget.contains(p.target) && d(p, p.pointerType);
|
|
1922
1922
|
}) : (f.onTouchStart = () => {
|
|
1923
1923
|
a.ignoreEmulatedMouseEvents = !0;
|
|
1924
1924
|
}, f.onMouseEnter = (p) => {
|
|
1925
|
-
!a.ignoreEmulatedMouseEvents &&
|
|
1925
|
+
!a.ignoreEmulatedMouseEvents && !gn && c(p, "mouse"), a.ignoreEmulatedMouseEvents = !1;
|
|
1926
1926
|
}, f.onMouseLeave = (p) => {
|
|
1927
1927
|
!l && p.currentTarget.contains(p.target) && d(p, "mouse");
|
|
1928
1928
|
}), {
|
|
@@ -1952,7 +1952,7 @@ function Oi(t) {
|
|
|
1952
1952
|
isPointerDown: !1,
|
|
1953
1953
|
ignoreEmulatedMouseEvents: !1
|
|
1954
1954
|
}), o = ae((u) => {
|
|
1955
|
-
n &&
|
|
1955
|
+
n && sn(u, e) && (l && l(u), i.current.isPointerDown = !0);
|
|
1956
1956
|
}), a = ae((u) => {
|
|
1957
1957
|
n && n(u);
|
|
1958
1958
|
});
|
|
@@ -1962,16 +1962,16 @@ function Oi(t) {
|
|
|
1962
1962
|
const s = e.current, c = re(s);
|
|
1963
1963
|
if (typeof PointerEvent < "u") {
|
|
1964
1964
|
let d = (f) => {
|
|
1965
|
-
u.isPointerDown &&
|
|
1965
|
+
u.isPointerDown && sn(f, e) && a(f), u.isPointerDown = !1;
|
|
1966
1966
|
};
|
|
1967
1967
|
return c.addEventListener("pointerdown", o, !0), c.addEventListener("pointerup", d, !0), () => {
|
|
1968
1968
|
c.removeEventListener("pointerdown", o, !0), c.removeEventListener("pointerup", d, !0);
|
|
1969
1969
|
};
|
|
1970
1970
|
} else {
|
|
1971
1971
|
let d = (p) => {
|
|
1972
|
-
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown &&
|
|
1972
|
+
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && sn(p, e) && a(p), u.isPointerDown = !1;
|
|
1973
1973
|
}, f = (p) => {
|
|
1974
|
-
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown &&
|
|
1974
|
+
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && sn(p, e) && a(p), u.isPointerDown = !1;
|
|
1975
1975
|
};
|
|
1976
1976
|
return c.addEventListener("mousedown", o, !0), c.addEventListener("mouseup", d, !0), c.addEventListener("touchstart", o, !0), c.addEventListener("touchend", f, !0), () => {
|
|
1977
1977
|
c.removeEventListener("mousedown", o, !0), c.removeEventListener("mouseup", d, !0), c.removeEventListener("touchstart", o, !0), c.removeEventListener("touchend", f, !0);
|
|
@@ -1984,7 +1984,7 @@ function Oi(t) {
|
|
|
1984
1984
|
a
|
|
1985
1985
|
]);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function sn(t, e) {
|
|
1988
1988
|
if (t.button > 0) return !1;
|
|
1989
1989
|
if (t.target) {
|
|
1990
1990
|
const n = t.target.ownerDocument;
|
|
@@ -1992,7 +1992,7 @@ function cn(t, e) {
|
|
|
1992
1992
|
}
|
|
1993
1993
|
return e.current && !e.current.contains(t.target);
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function Il(t) {
|
|
1996
1996
|
if (!t) return;
|
|
1997
1997
|
let e = !0;
|
|
1998
1998
|
return (n) => {
|
|
@@ -2017,8 +2017,8 @@ function Fl(t) {
|
|
|
2017
2017
|
function zi(t) {
|
|
2018
2018
|
return {
|
|
2019
2019
|
keyboardProps: t.isDisabled ? {} : {
|
|
2020
|
-
onKeyDown:
|
|
2021
|
-
onKeyUp:
|
|
2020
|
+
onKeyDown: Il(t.onKeyDown),
|
|
2021
|
+
onKeyUp: Il(t.onKeyUp)
|
|
2022
2022
|
}
|
|
2023
2023
|
};
|
|
2024
2024
|
}
|
|
@@ -2026,7 +2026,7 @@ const Ld = 500;
|
|
|
2026
2026
|
function ji(t) {
|
|
2027
2027
|
let { isDisabled: e, onLongPressStart: n, onLongPressEnd: r, onLongPress: l, threshold: i = Ld, accessibilityDescription: o } = t;
|
|
2028
2028
|
const a = M(void 0);
|
|
2029
|
-
let { addGlobalListener: u, removeGlobalListener: s } = Pi(), { pressProps: c } =
|
|
2029
|
+
let { addGlobalListener: u, removeGlobalListener: s } = Pi(), { pressProps: c } = ze({
|
|
2030
2030
|
isDisabled: e,
|
|
2031
2031
|
onPressStart(f) {
|
|
2032
2032
|
if (f.continuePropagation(), (f.pointerType === "mouse" || f.pointerType === "touch") && (n && n({
|
|
@@ -2060,14 +2060,14 @@ function ji(t) {
|
|
|
2060
2060
|
type: "longpressend"
|
|
2061
2061
|
});
|
|
2062
2062
|
}
|
|
2063
|
-
}), d =
|
|
2063
|
+
}), d = kn(l && !e ? o : void 0);
|
|
2064
2064
|
return {
|
|
2065
2065
|
longPressProps: W(c, d)
|
|
2066
2066
|
};
|
|
2067
2067
|
}
|
|
2068
2068
|
function me(t) {
|
|
2069
2069
|
const e = re(t);
|
|
2070
|
-
if (
|
|
2070
|
+
if (bn() === "virtual") {
|
|
2071
2071
|
let n = e.activeElement;
|
|
2072
2072
|
wi(() => {
|
|
2073
2073
|
e.activeElement === n && t.isConnected && Le(t);
|
|
@@ -2092,17 +2092,17 @@ function zd(t, e) {
|
|
|
2092
2092
|
function Vi(t, e) {
|
|
2093
2093
|
return t.nodeName !== "#comment" && Od(t) && zd(t, e) && (!t.parentElement || Vi(t.parentElement, t));
|
|
2094
2094
|
}
|
|
2095
|
-
const
|
|
2095
|
+
const Fl = /* @__PURE__ */ B.createContext(null), $r = "react-aria-focus-scope-restore";
|
|
2096
2096
|
let ne = null;
|
|
2097
|
-
function
|
|
2098
|
-
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(
|
|
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 = H(() => new xr({
|
|
2099
2099
|
scopeRef: a
|
|
2100
2100
|
}), [
|
|
2101
2101
|
a
|
|
2102
2102
|
]);
|
|
2103
2103
|
Q(() => {
|
|
2104
2104
|
let f = u || de.root;
|
|
2105
|
-
if (de.getTreeNode(f.scopeRef) && ne && !
|
|
2105
|
+
if (de.getTreeNode(f.scopeRef) && ne && !yn(ne, f.scopeRef)) {
|
|
2106
2106
|
let p = de.getTreeNode(ne);
|
|
2107
2107
|
p && (f = p);
|
|
2108
2108
|
}
|
|
@@ -2137,7 +2137,7 @@ function Mn(t) {
|
|
|
2137
2137
|
]), Q(() => () => {
|
|
2138
2138
|
var f, p, m;
|
|
2139
2139
|
let $ = (m = (p = de.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 === ne ||
|
|
2140
|
+
(a === ne || yn(a, ne)) && (!$ || de.getTreeNode($)) && (ne = $), de.removeTreeNode(a);
|
|
2141
2141
|
}, [
|
|
2142
2142
|
a
|
|
2143
2143
|
]);
|
|
@@ -2148,7 +2148,7 @@ function Mn(t) {
|
|
|
2148
2148
|
s,
|
|
2149
2149
|
c
|
|
2150
2150
|
]);
|
|
2151
|
-
return /* @__PURE__ */ B.createElement(
|
|
2151
|
+
return /* @__PURE__ */ B.createElement(Fl.Provider, {
|
|
2152
2152
|
value: d
|
|
2153
2153
|
}, /* @__PURE__ */ B.createElement("span", {
|
|
2154
2154
|
"data-focus-scope-start": !0,
|
|
@@ -2220,7 +2220,7 @@ const Hd = Hr.join(':not([hidden]):not([tabindex="-1"]),');
|
|
|
2220
2220
|
function ut(t) {
|
|
2221
2221
|
return t[0].parentElement;
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Ot(t) {
|
|
2224
2224
|
let e = de.getTreeNode(ne);
|
|
2225
2225
|
for (; e && e.scopeRef !== t; ) {
|
|
2226
2226
|
if (e.contain) return !1;
|
|
@@ -2238,7 +2238,7 @@ function Wd(t, e) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
const i = re(l ? l[0] : void 0);
|
|
2240
2240
|
let o = (s) => {
|
|
2241
|
-
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !
|
|
2241
|
+
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !Ot(t) || s.isComposing) return;
|
|
2242
2242
|
let c = i.activeElement, d = t.current;
|
|
2243
2243
|
if (!d || !pe(c, d)) return;
|
|
2244
2244
|
let f = ut(d), p = xe(f, {
|
|
@@ -2249,10 +2249,10 @@ 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
|
-
(!ne ||
|
|
2252
|
+
(!ne || yn(ne, t)) && pe(s.target, t.current) ? (ne = t, n.current = s.target) : Ot(t) && !$n(s.target, t) ? n.current ? n.current.focus() : ne && ne.current && yr(ne.current) : Ot(t) && (n.current = s.target);
|
|
2253
2253
|
}, u = (s) => {
|
|
2254
2254
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2255
|
-
if (i.activeElement &&
|
|
2255
|
+
if (i.activeElement && Ot(t) && !$n(i.activeElement, t))
|
|
2256
2256
|
if (ne = t, i.body.contains(s.target)) {
|
|
2257
2257
|
var c;
|
|
2258
2258
|
n.current = s.target, (c = n.current) === null || c === void 0 || c.focus();
|
|
@@ -2272,21 +2272,21 @@ function Wd(t, e) {
|
|
|
2272
2272
|
]);
|
|
2273
2273
|
}
|
|
2274
2274
|
function Hi(t) {
|
|
2275
|
-
return
|
|
2275
|
+
return $n(t);
|
|
2276
2276
|
}
|
|
2277
2277
|
function pe(t, e) {
|
|
2278
2278
|
return !t || !e ? !1 : e.some((n) => n.contains(t));
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function $n(t, e = null) {
|
|
2281
2281
|
if (t instanceof Element && t.closest("[data-react-aria-top-layer]")) return !0;
|
|
2282
2282
|
for (let { scopeRef: n } of de.traverse(de.getTreeNode(e)))
|
|
2283
2283
|
if (n && pe(t, n.current)) return !0;
|
|
2284
2284
|
return !1;
|
|
2285
2285
|
}
|
|
2286
2286
|
function Ud(t) {
|
|
2287
|
-
return
|
|
2287
|
+
return $n(t, ne);
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function yn(t, e) {
|
|
2290
2290
|
var n;
|
|
2291
2291
|
let r = (n = de.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
|
|
2292
2292
|
for (; r; ) {
|
|
@@ -2364,7 +2364,7 @@ function Xd(t, e, n) {
|
|
|
2364
2364
|
const i = re(l ? l[0] : void 0);
|
|
2365
2365
|
if (!e || n) return;
|
|
2366
2366
|
let o = () => {
|
|
2367
|
-
(!ne ||
|
|
2367
|
+
(!ne || yn(ne, t)) && pe(i.activeElement, t.current) && (ne = 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));
|
|
@@ -2376,7 +2376,7 @@ function Xd(t, e, n) {
|
|
|
2376
2376
|
const l = re(t.current ? t.current[0] : void 0);
|
|
2377
2377
|
if (!e) return;
|
|
2378
2378
|
let i = (o) => {
|
|
2379
|
-
if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey || !
|
|
2379
|
+
if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey || !Ot(t) || o.isComposing) return;
|
|
2380
2380
|
let a = l.activeElement;
|
|
2381
2381
|
if (!pe(a, t.current)) return;
|
|
2382
2382
|
let u = de.getTreeNode(t);
|
|
@@ -2513,7 +2513,7 @@ class xr {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
2515
|
let de = new Wr();
|
|
2516
|
-
function
|
|
2516
|
+
function Zt(t = {}) {
|
|
2517
2517
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = M({
|
|
2518
2518
|
isFocused: !1,
|
|
2519
2519
|
isFocusVisible: e || ft()
|
|
@@ -2522,15 +2522,15 @@ function Jt(t = {}) {
|
|
|
2522
2522
|
}, [
|
|
2523
2523
|
s
|
|
2524
2524
|
]);
|
|
2525
|
-
|
|
2525
|
+
Rd((p) => {
|
|
2526
2526
|
l.current.isFocusVisible = p, s();
|
|
2527
2527
|
}, [], {
|
|
2528
2528
|
isTextInput: n
|
|
2529
2529
|
});
|
|
2530
|
-
let { focusProps: d } =
|
|
2530
|
+
let { focusProps: d } = Bn({
|
|
2531
2531
|
isDisabled: r,
|
|
2532
2532
|
onFocusChange: c
|
|
2533
|
-
}), { focusWithinProps: f } =
|
|
2533
|
+
}), { focusWithinProps: f } = Xt({
|
|
2534
2534
|
isDisabled: !r,
|
|
2535
2535
|
onFocusWithinChange: c
|
|
2536
2536
|
});
|
|
@@ -2548,7 +2548,7 @@ function Zd(t) {
|
|
|
2548
2548
|
return r;
|
|
2549
2549
|
}
|
|
2550
2550
|
function Jd(t, e) {
|
|
2551
|
-
let { children: n, ...r } = t, l =
|
|
2551
|
+
let { children: n, ...r } = t, l = Dn(e), i = {
|
|
2552
2552
|
...r,
|
|
2553
2553
|
ref: l
|
|
2554
2554
|
};
|
|
@@ -2558,7 +2558,7 @@ function Jd(t, e) {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
let Qd = /* @__PURE__ */ B.forwardRef(Jd);
|
|
2560
2560
|
function Bt(t, e) {
|
|
2561
|
-
let { focusProps: n } =
|
|
2561
|
+
let { focusProps: n } = Bn(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
2563
|
a.current && e.current && me(e.current), a.current = !1;
|
|
2564
2564
|
}, [
|
|
@@ -2654,28 +2654,28 @@ function Gi() {
|
|
|
2654
2654
|
direction: rf(t) ? "rtl" : "ltr"
|
|
2655
2655
|
};
|
|
2656
2656
|
}
|
|
2657
|
-
let Er = Gi(),
|
|
2658
|
-
function
|
|
2657
|
+
let Er = Gi(), zt = /* @__PURE__ */ new Set();
|
|
2658
|
+
function Rl() {
|
|
2659
2659
|
Er = Gi();
|
|
2660
|
-
for (let t of
|
|
2660
|
+
for (let t of zt) t(Er);
|
|
2661
2661
|
}
|
|
2662
2662
|
function of() {
|
|
2663
2663
|
let t = rt(), [e, n] = j(Er);
|
|
2664
|
-
return L(() => (
|
|
2665
|
-
|
|
2664
|
+
return L(() => (zt.size === 0 && window.addEventListener("languagechange", Rl), zt.add(n), () => {
|
|
2665
|
+
zt.delete(n), zt.size === 0 && window.removeEventListener("languagechange", Rl);
|
|
2666
2666
|
}), []), t ? {
|
|
2667
2667
|
locale: "en-US",
|
|
2668
2668
|
direction: "ltr"
|
|
2669
2669
|
} : e;
|
|
2670
2670
|
}
|
|
2671
2671
|
const af = /* @__PURE__ */ B.createContext(null);
|
|
2672
|
-
function
|
|
2672
|
+
function He() {
|
|
2673
2673
|
let t = of();
|
|
2674
2674
|
return Y(af) || t;
|
|
2675
2675
|
}
|
|
2676
2676
|
const uf = Symbol.for("react-aria.i18n.locale"), sf = Symbol.for("react-aria.i18n.strings");
|
|
2677
2677
|
let Et;
|
|
2678
|
-
class
|
|
2678
|
+
class Mn {
|
|
2679
2679
|
/** Returns a localized string for the given key and locale. */
|
|
2680
2680
|
getStringForLocale(e, n) {
|
|
2681
2681
|
let l = this.getStringsForLocale(n)[e];
|
|
@@ -2694,7 +2694,7 @@ class Fn {
|
|
|
2694
2694
|
let l = window[sf];
|
|
2695
2695
|
if (!l) return null;
|
|
2696
2696
|
Et = {};
|
|
2697
|
-
for (let i in l) Et[i] = new
|
|
2697
|
+
for (let i in l) Et[i] = new Mn({
|
|
2698
2698
|
[n]: l[i]
|
|
2699
2699
|
}, n);
|
|
2700
2700
|
}
|
|
@@ -2717,7 +2717,7 @@ function cf(t, e, n = "en-US") {
|
|
|
2717
2717
|
function df(t) {
|
|
2718
2718
|
return Intl.Locale ? new Intl.Locale(t).language : t.split("-")[0];
|
|
2719
2719
|
}
|
|
2720
|
-
const
|
|
2720
|
+
const Nl = /* @__PURE__ */ new Map(), Ll = /* @__PURE__ */ new Map();
|
|
2721
2721
|
class ff {
|
|
2722
2722
|
/** Formats a localized string for the given key with the provided variables. */
|
|
2723
2723
|
format(e, n) {
|
|
@@ -2727,10 +2727,10 @@ class ff {
|
|
|
2727
2727
|
plural(e, n, r = "cardinal") {
|
|
2728
2728
|
let l = n["=" + e];
|
|
2729
2729
|
if (l) return typeof l == "function" ? l() : l;
|
|
2730
|
-
let i = this.locale + ":" + r, o =
|
|
2730
|
+
let i = this.locale + ":" + r, o = Nl.get(i);
|
|
2731
2731
|
o || (o = new Intl.PluralRules(this.locale, {
|
|
2732
2732
|
type: r
|
|
2733
|
-
}),
|
|
2733
|
+
}), Nl.set(i, o));
|
|
2734
2734
|
let a = o.select(e);
|
|
2735
2735
|
return l = n[a] || n.other, typeof l == "function" ? l() : l;
|
|
2736
2736
|
}
|
|
@@ -2749,13 +2749,13 @@ class ff {
|
|
|
2749
2749
|
const Ol = /* @__PURE__ */ new WeakMap();
|
|
2750
2750
|
function pf(t) {
|
|
2751
2751
|
let e = Ol.get(t);
|
|
2752
|
-
return e || (e = new
|
|
2752
|
+
return e || (e = new Mn(t), Ol.set(t, e)), e;
|
|
2753
2753
|
}
|
|
2754
2754
|
function vf(t, e) {
|
|
2755
|
-
return e &&
|
|
2755
|
+
return e && Mn.getGlobalDictionaryForPackage(e) || pf(t);
|
|
2756
2756
|
}
|
|
2757
2757
|
function vt(t, e) {
|
|
2758
|
-
let { locale: n } =
|
|
2758
|
+
let { locale: n } = He(), r = vf(t, e);
|
|
2759
2759
|
return H(() => new ff(n, r), [
|
|
2760
2760
|
n,
|
|
2761
2761
|
r
|
|
@@ -2763,12 +2763,12 @@ function vt(t, e) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
let Qn = /* @__PURE__ */ new Map();
|
|
2765
2765
|
function In(t) {
|
|
2766
|
-
let { locale: e } =
|
|
2766
|
+
let { locale: e } = He(), n = e + (t ? Object.entries(t).sort((l, i) => l[0] < i[0] ? -1 : 1).join() : "");
|
|
2767
2767
|
if (Qn.has(n)) return Qn.get(n);
|
|
2768
2768
|
let r = new Intl.Collator(e, t);
|
|
2769
2769
|
return Qn.set(n, r), r;
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function Fn(t, e) {
|
|
2772
2772
|
let {
|
|
2773
2773
|
elementType: n = "button",
|
|
2774
2774
|
isDisabled: r,
|
|
@@ -2799,7 +2799,7 @@ function _n(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: E, isPressed: S } =
|
|
2802
|
+
let { pressProps: E, isPressed: S } = ze({
|
|
2803
2803
|
onPressStart: i,
|
|
2804
2804
|
onPressEnd: o,
|
|
2805
2805
|
onPressChange: u,
|
|
@@ -2827,10 +2827,10 @@ function _n(t, e) {
|
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
2829
|
const Yi = 7e3;
|
|
2830
|
-
let
|
|
2831
|
-
function
|
|
2832
|
-
|
|
2833
|
-
|
|
2830
|
+
let Ke = null;
|
|
2831
|
+
function xn(t, e = "assertive", n = Yi) {
|
|
2832
|
+
Ke ? Ke.announce(t, e, n) : (Ke = new hf(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ke.announce(t, e, n) : setTimeout(() => {
|
|
2833
|
+
Ke != null && Ke.isAttached() && (Ke == null || Ke.announce(t, e, n));
|
|
2834
2834
|
}, 100));
|
|
2835
2835
|
}
|
|
2836
2836
|
class hf {
|
|
@@ -2887,7 +2887,7 @@ function Ur(t, e, n) {
|
|
|
2887
2887
|
let c = n == null || (s = n.current) === null || s === void 0 ? void 0 : s.form;
|
|
2888
2888
|
if (!u.defaultPrevented && n && c && gf(c) === n.current) {
|
|
2889
2889
|
var d;
|
|
2890
|
-
l ? l() : (d = n.current) === null || d === void 0 || d.focus(),
|
|
2890
|
+
l ? l() : (d = n.current) === null || d === void 0 || d.focus(), Ni("keyboard");
|
|
2891
2891
|
}
|
|
2892
2892
|
u.preventDefault();
|
|
2893
2893
|
}), a = ae(() => {
|
|
@@ -2956,7 +2956,7 @@ const qi = {
|
|
|
2956
2956
|
...qi,
|
|
2957
2957
|
customError: !0,
|
|
2958
2958
|
valid: !1
|
|
2959
|
-
},
|
|
2959
|
+
}, _t = {
|
|
2960
2960
|
isInvalid: !1,
|
|
2961
2961
|
validationDetails: qi,
|
|
2962
2962
|
validationErrors: []
|
|
@@ -2994,20 +2994,20 @@ function yf(t) {
|
|
|
2994
2994
|
let g = H(() => jl(m ? [] : d), [
|
|
2995
2995
|
m,
|
|
2996
2996
|
d
|
|
2997
|
-
]), E = M(
|
|
2997
|
+
]), E = M(_t), [S, y] = j(_t), k = M(_t), C = () => {
|
|
2998
2998
|
if (!P) return;
|
|
2999
2999
|
_(!1);
|
|
3000
3000
|
let w = s || i || E.current;
|
|
3001
3001
|
er(w, k.current) || (k.current = w, y(w));
|
|
3002
3002
|
}, [P, _] = j(!1);
|
|
3003
3003
|
return L(C), {
|
|
3004
|
-
realtimeValidation: u || g || s || i ||
|
|
3004
|
+
realtimeValidation: u || g || s || i || _t,
|
|
3005
3005
|
displayValidation: a === "native" ? u || g || S : u || g || s || i || S,
|
|
3006
3006
|
updateValidation(w) {
|
|
3007
3007
|
a === "aria" && !er(S, w) ? y(w) : E.current = w;
|
|
3008
3008
|
},
|
|
3009
3009
|
resetValidation() {
|
|
3010
|
-
let w =
|
|
3010
|
+
let w = _t;
|
|
3011
3011
|
er(w, k.current) || (k.current = w, y(w)), a === "native" && _(!1), $(!0);
|
|
3012
3012
|
},
|
|
3013
3013
|
commitValidation() {
|
|
@@ -3042,9 +3042,9 @@ function Ef(t, e, n) {
|
|
|
3042
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
|
-
let { pressProps: $, isPressed: g } =
|
|
3045
|
+
let { pressProps: $, isPressed: g } = ze({
|
|
3046
3046
|
isDisabled: r
|
|
3047
|
-
}), { pressProps: E, isPressed: S } =
|
|
3047
|
+
}), { pressProps: E, isPressed: S } = ze({
|
|
3048
3048
|
isDisabled: r || l,
|
|
3049
3049
|
onPress() {
|
|
3050
3050
|
e.toggle();
|
|
@@ -3052,7 +3052,7 @@ function Ef(t, e, n) {
|
|
|
3052
3052
|
}), { focusableProps: y } = Bt(t, n), k = W($, y), C = ve(t, {
|
|
3053
3053
|
labelable: !0
|
|
3054
3054
|
});
|
|
3055
|
-
return
|
|
3055
|
+
return Tn(n, e.isSelected, e.setSelected), {
|
|
3056
3056
|
labelProps: W(E, {
|
|
3057
3057
|
onClick: (P) => P.preventDefault()
|
|
3058
3058
|
}),
|
|
@@ -3152,7 +3152,7 @@ const Vl = {
|
|
|
3152
3152
|
whiteSpace: "nowrap"
|
|
3153
3153
|
};
|
|
3154
3154
|
function Ji(t = {}) {
|
|
3155
|
-
let { style: e, isFocusable: n } = t, [r, l] = j(!1), { focusWithinProps: i } =
|
|
3155
|
+
let { style: e, isFocusable: n } = t, [r, l] = j(!1), { focusWithinProps: i } = Xt({
|
|
3156
3156
|
isDisabled: !n,
|
|
3157
3157
|
onFocusWithinChange: (a) => l(a)
|
|
3158
3158
|
}), o = H(() => r ? e : e ? {
|
|
@@ -3187,7 +3187,7 @@ function Qi(t, e) {
|
|
|
3187
3187
|
type: o,
|
|
3188
3188
|
pattern: t.pattern
|
|
3189
3189
|
};
|
|
3190
|
-
return
|
|
3190
|
+
return Tn(e, u, s), Ur(t, d, e), L(() => {
|
|
3191
3191
|
if (e.current instanceof De(e.current).HTMLTextAreaElement) {
|
|
3192
3192
|
let C = e.current;
|
|
3193
3193
|
Object.defineProperty(C, "defaultValue", {
|
|
@@ -3243,12 +3243,12 @@ function Qi(t, e) {
|
|
|
3243
3243
|
validationDetails: m
|
|
3244
3244
|
};
|
|
3245
3245
|
}
|
|
3246
|
-
const
|
|
3246
|
+
const Me = {
|
|
3247
3247
|
top: "top",
|
|
3248
3248
|
bottom: "top",
|
|
3249
3249
|
left: "left",
|
|
3250
3250
|
right: "left"
|
|
3251
|
-
},
|
|
3251
|
+
}, En = {
|
|
3252
3252
|
top: "bottom",
|
|
3253
3253
|
bottom: "top",
|
|
3254
3254
|
left: "right",
|
|
@@ -3262,7 +3262,7 @@ const Ke = {
|
|
|
3262
3262
|
}, eo = {
|
|
3263
3263
|
width: "totalWidth",
|
|
3264
3264
|
height: "totalHeight"
|
|
3265
|
-
},
|
|
3265
|
+
}, cn = {};
|
|
3266
3266
|
let $e = typeof document < "u" && window.visualViewport;
|
|
3267
3267
|
function Hl(t) {
|
|
3268
3268
|
let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = ($e == null ? void 0 : $e.scale) > 1;
|
|
@@ -3294,7 +3294,7 @@ function wf(t) {
|
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
3296
3296
|
function Wl(t, e, n, r, l, i, o) {
|
|
3297
|
-
let a = l.scroll[t], u = r[Cr[t]], s = r.scroll[
|
|
3297
|
+
let a = l.scroll[t], u = r[Cr[t]], s = r.scroll[Me[t]] + i, c = u + r.scroll[Me[t]] - i, d = e - a + o[t] - r[Me[t]], f = e - a + n + o[t] - r[Me[t]];
|
|
3298
3298
|
return d < s ? s - d : f > c ? Math.max(c - f, s - d) : 0;
|
|
3299
3299
|
}
|
|
3300
3300
|
function Pf(t) {
|
|
@@ -3307,18 +3307,18 @@ function Pf(t) {
|
|
|
3307
3307
|
};
|
|
3308
3308
|
}
|
|
3309
3309
|
function Ul(t) {
|
|
3310
|
-
if (
|
|
3311
|
-
let [e, n] = t.split(" "), r =
|
|
3312
|
-
|
|
3310
|
+
if (cn[t]) return cn[t];
|
|
3311
|
+
let [e, n] = t.split(" "), r = Me[e] || "right", l = Cf[r];
|
|
3312
|
+
Me[n] || (n = "center");
|
|
3313
3313
|
let i = Cr[r], o = Cr[l];
|
|
3314
|
-
return
|
|
3314
|
+
return cn[t] = {
|
|
3315
3315
|
placement: e,
|
|
3316
3316
|
crossPlacement: n,
|
|
3317
3317
|
axis: r,
|
|
3318
3318
|
crossAxis: l,
|
|
3319
3319
|
size: i,
|
|
3320
3320
|
crossSize: o
|
|
3321
|
-
},
|
|
3321
|
+
}, cn[t];
|
|
3322
3322
|
}
|
|
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: $ } = r, g = {};
|
|
@@ -3326,7 +3326,7 @@ function tr(t, e, n, r, l, i, o, a, u, s) {
|
|
|
3326
3326
|
const E = t[p] - n[$] + u + s, S = t[p] + t[$] - u - s;
|
|
3327
3327
|
if (g[p] = hr(g[p], E, S), c === f) {
|
|
3328
3328
|
const y = a ? o[m] : e[eo[m]];
|
|
3329
|
-
g[
|
|
3329
|
+
g[En[f]] = Math.floor(y - t[f] + l);
|
|
3330
3330
|
} else g[f] = Math.floor(t[f] + t[m] + l);
|
|
3331
3331
|
return g;
|
|
3332
3332
|
}
|
|
@@ -3340,13 +3340,13 @@ function Df(t, e, n, r, l, i, o, a) {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
function Gl(t, e, n, r, l, i) {
|
|
3342
3342
|
let { placement: o, axis: a, size: u } = i;
|
|
3343
|
-
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[
|
|
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, $) {
|
|
3346
3346
|
let g = Ul(t), { size: E, crossAxis: S, crossSize: y, placement: k, crossPlacement: C } = g, P = tr(e, a, n, g, c, d, s, f, m, $), _ = c, v = Gl(a, s, e, l, i + c, g);
|
|
3347
3347
|
if (o && r[E] > v) {
|
|
3348
|
-
let fe = Ul(`${
|
|
3349
|
-
Gl(a, s, e, l, i + c, fe) > v && (g = fe, P =
|
|
3348
|
+
let fe = Ul(`${En[k]} ${C}`), Ae = tr(e, a, n, fe, c, d, s, f, m, $);
|
|
3349
|
+
Gl(a, s, e, l, i + c, fe) > v && (g = fe, P = Ae, _ = c);
|
|
3350
3350
|
}
|
|
3351
3351
|
let A = "bottom";
|
|
3352
3352
|
g.axis === "top" ? g.placement === "top" ? A = "top" : g.placement === "bottom" && (A = "bottom") : g.crossAxis === "top" && (g.crossPlacement === "top" ? A = "bottom" : g.crossPlacement === "bottom" && (A = "top"));
|
|
@@ -3354,13 +3354,13 @@ function kf(t, e, n, r, l, i, o, a, u, s, c, d, f, p, m, $) {
|
|
|
3354
3354
|
P[S] += w;
|
|
3355
3355
|
let T = Df(P, a, s, f, l, i, n.height, A);
|
|
3356
3356
|
p && p < T && (T = p), n.height = Math.min(n.height, T), P = tr(e, a, n, g, _, d, s, f, m, $), w = Wl(S, P[S], n[y], a, u, i, s), P[S] += w;
|
|
3357
|
-
let
|
|
3358
|
-
const
|
|
3359
|
-
return
|
|
3357
|
+
let F = {}, x = e[S] + 0.5 * e[y] - P[S] - l[Me[S]];
|
|
3358
|
+
const N = m / 2 + $, D = Me[S] === "left" ? l.left + l.right : l.top + l.bottom, z = n[y] - D - m / 2 - $, I = e[S] + m / 2 - (P[S] + l[Me[S]]), Z = e[S] + e[y] - m / 2 - (P[S] + l[Me[S]]), ue = hr(x, I, Z);
|
|
3359
|
+
return F[S] = hr(ue, N, z), {
|
|
3360
3360
|
position: P,
|
|
3361
3361
|
maxHeight: T,
|
|
3362
|
-
arrowOffsetLeft:
|
|
3363
|
-
arrowOffsetTop:
|
|
3362
|
+
arrowOffsetLeft: F.left,
|
|
3363
|
+
arrowOffsetTop: F.top,
|
|
3364
3364
|
placement: g.placement
|
|
3365
3365
|
};
|
|
3366
3366
|
}
|
|
@@ -3437,7 +3437,7 @@ function Af(t) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
let oe = typeof document < "u" && window.visualViewport;
|
|
3439
3439
|
function no(t) {
|
|
3440
|
-
let { direction: e } =
|
|
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: $, arrowBoundaryOffset: g = 0 } = t, [E, S] = j({
|
|
3441
3441
|
position: {},
|
|
3442
3442
|
arrowOffsetLeft: void 0,
|
|
3443
3443
|
arrowOffsetTop: void 0,
|
|
@@ -3469,18 +3469,18 @@ function no(t) {
|
|
|
3469
3469
|
if (f === !1 || !p || !l.current || !r.current || !s || (oe == null ? void 0 : oe.scale) !== k.current) return;
|
|
3470
3470
|
let A = null;
|
|
3471
3471
|
if (i.current && i.current.contains(document.activeElement)) {
|
|
3472
|
-
let
|
|
3472
|
+
let N = document.activeElement.getBoundingClientRect(), D = i.current.getBoundingClientRect();
|
|
3473
3473
|
A = {
|
|
3474
3474
|
type: "top",
|
|
3475
|
-
offset:
|
|
3476
|
-
}, A.offset > D.height / 2 && (A.type = "bottom", A.offset =
|
|
3475
|
+
offset: N.top - D.top
|
|
3476
|
+
}, A.offset > D.height / 2 && (A.type = "bottom", A.offset = N.bottom - D.bottom);
|
|
3477
3477
|
}
|
|
3478
3478
|
let w = l.current;
|
|
3479
3479
|
if (!$ && l.current) {
|
|
3480
3480
|
var T;
|
|
3481
3481
|
w.style.top = "0px", w.style.bottom = "";
|
|
3482
|
-
var
|
|
3483
|
-
w.style.maxHeight = ((
|
|
3482
|
+
var F;
|
|
3483
|
+
w.style.maxHeight = ((F = (T = window.visualViewport) === null || T === void 0 ? void 0 : T.height) !== null && F !== void 0 ? F : window.innerHeight) + "px";
|
|
3484
3484
|
}
|
|
3485
3485
|
let x = Tf({
|
|
3486
3486
|
placement: Mf(o, e),
|
|
@@ -3496,8 +3496,8 @@ function no(t) {
|
|
|
3496
3496
|
arrowSize: n,
|
|
3497
3497
|
arrowBoundaryOffset: g
|
|
3498
3498
|
});
|
|
3499
|
-
if (w.style.top = "", w.style.bottom = "", w.style.left = "", w.style.right = "", Object.keys(x.position).forEach((
|
|
3500
|
-
let
|
|
3499
|
+
if (w.style.top = "", w.style.bottom = "", w.style.left = "", w.style.right = "", Object.keys(x.position).forEach((N) => w.style[N] = x.position[N] + "px"), w.style.maxHeight = x.maxHeight != null ? x.maxHeight + "px" : void 0, A) {
|
|
3500
|
+
let N = document.activeElement.getBoundingClientRect(), D = i.current.getBoundingClientRect(), z = N[A.type] - D[A.type];
|
|
3501
3501
|
i.current.scrollTop += z - A.offset;
|
|
3502
3502
|
}
|
|
3503
3503
|
S(x);
|
|
@@ -3591,7 +3591,7 @@ function ro(t, e) {
|
|
|
3591
3591
|
onInteractOutside: i && l ? c : null,
|
|
3592
3592
|
onInteractOutsideStart: s
|
|
3593
3593
|
});
|
|
3594
|
-
let { focusWithinProps: f } =
|
|
3594
|
+
let { focusWithinProps: f } = Xt({
|
|
3595
3595
|
isDisabled: !r,
|
|
3596
3596
|
onBlurWithin: (m) => {
|
|
3597
3597
|
!m.relatedTarget || Ud(m.relatedTarget) || (!a || a(m.relatedTarget)) && n();
|
|
@@ -3629,7 +3629,7 @@ function lo(t, e, n) {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
};
|
|
3631
3631
|
}
|
|
3632
|
-
const nr = typeof document < "u" && window.visualViewport,
|
|
3632
|
+
const nr = typeof document < "u" && window.visualViewport, If = /* @__PURE__ */ new Set([
|
|
3633
3633
|
"checkbox",
|
|
3634
3634
|
"radio",
|
|
3635
3635
|
"range",
|
|
@@ -3640,22 +3640,22 @@ const nr = typeof document < "u" && window.visualViewport, Ff = /* @__PURE__ */
|
|
|
3640
3640
|
"submit",
|
|
3641
3641
|
"reset"
|
|
3642
3642
|
]);
|
|
3643
|
-
let
|
|
3644
|
-
function
|
|
3643
|
+
let dn = 0, rr;
|
|
3644
|
+
function Ff(t = {}) {
|
|
3645
3645
|
let { isDisabled: e } = t;
|
|
3646
3646
|
Q(() => {
|
|
3647
3647
|
if (!e)
|
|
3648
|
-
return
|
|
3649
|
-
|
|
3648
|
+
return dn++, dn === 1 && (Pn() ? rr = Rf() : rr = _f()), () => {
|
|
3649
|
+
dn--, dn === 0 && rr();
|
|
3650
3650
|
};
|
|
3651
3651
|
}, [
|
|
3652
3652
|
e
|
|
3653
3653
|
]);
|
|
3654
3654
|
}
|
|
3655
3655
|
function _f() {
|
|
3656
|
-
return
|
|
3656
|
+
return Ie(Dt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Dt(document.documentElement, "overflow", "hidden"));
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3658
|
+
function Rf() {
|
|
3659
3659
|
let t, e, n = (s) => {
|
|
3660
3660
|
t = Ze(s.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e = Dt(t, "overscrollBehavior", "contain"));
|
|
3661
3661
|
}, r = (s) => {
|
|
@@ -3683,10 +3683,10 @@ function Nf() {
|
|
|
3683
3683
|
let s = () => {
|
|
3684
3684
|
window.scrollTo(0, 0);
|
|
3685
3685
|
}, c = window.pageXOffset, d = window.pageYOffset;
|
|
3686
|
-
o =
|
|
3686
|
+
o = Ie(Rt(window, "scroll", s), Dt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Dt(document.documentElement, "overflow", "hidden"), Dt(document.body, "marginTop", `-${d}px`), () => {
|
|
3687
3687
|
window.scrollTo(c, d);
|
|
3688
3688
|
}), window.scrollTo(0, 0);
|
|
3689
|
-
}, u =
|
|
3689
|
+
}, u = Ie(Rt(document, "touchstart", n, {
|
|
3690
3690
|
passive: !1,
|
|
3691
3691
|
capture: !0
|
|
3692
3692
|
}), Rt(document, "touchmove", r, {
|
|
@@ -3723,10 +3723,10 @@ function Xl(t) {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
function Zl(t) {
|
|
3726
|
-
return t instanceof HTMLInputElement && !
|
|
3726
|
+
return t instanceof HTMLInputElement && !If.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
3727
3727
|
}
|
|
3728
3728
|
const wr = /* @__PURE__ */ B.createContext(null);
|
|
3729
|
-
function
|
|
3729
|
+
function Nf(t) {
|
|
3730
3730
|
let { children: e } = t, n = Y(wr), [r, l] = j(0), i = H(() => ({
|
|
3731
3731
|
parent: n,
|
|
3732
3732
|
modalCount: r,
|
|
@@ -3761,7 +3761,7 @@ function Of(t) {
|
|
|
3761
3761
|
});
|
|
3762
3762
|
}
|
|
3763
3763
|
function zf(t) {
|
|
3764
|
-
return /* @__PURE__ */ B.createElement(
|
|
3764
|
+
return /* @__PURE__ */ B.createElement(Nf, null, /* @__PURE__ */ B.createElement(Of, t));
|
|
3765
3765
|
}
|
|
3766
3766
|
function jf(t) {
|
|
3767
3767
|
let e = rt(), { portalContainer: n = e ? null : document.body, ...r } = t;
|
|
@@ -3771,7 +3771,7 @@ function jf(t) {
|
|
|
3771
3771
|
n
|
|
3772
3772
|
]), !n) return null;
|
|
3773
3773
|
let l = /* @__PURE__ */ B.createElement(zf, r);
|
|
3774
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ Cn.createPortal(l, n);
|
|
3775
3775
|
}
|
|
3776
3776
|
var io = {};
|
|
3777
3777
|
io = {
|
|
@@ -3885,24 +3885,24 @@ var Mo = {};
|
|
|
3885
3885
|
Mo = {
|
|
3886
3886
|
dismiss: "Opusti"
|
|
3887
3887
|
};
|
|
3888
|
-
var Fo = {};
|
|
3889
|
-
Fo = {
|
|
3890
|
-
dismiss: "Odbaci"
|
|
3891
|
-
};
|
|
3892
3888
|
var Io = {};
|
|
3893
3889
|
Io = {
|
|
3890
|
+
dismiss: "Odbaci"
|
|
3891
|
+
};
|
|
3892
|
+
var Fo = {};
|
|
3893
|
+
Fo = {
|
|
3894
3894
|
dismiss: "Avvisa"
|
|
3895
3895
|
};
|
|
3896
3896
|
var _o = {};
|
|
3897
3897
|
_o = {
|
|
3898
3898
|
dismiss: "Kapat"
|
|
3899
3899
|
};
|
|
3900
|
-
var No = {};
|
|
3901
|
-
No = {
|
|
3902
|
-
dismiss: "Скасувати"
|
|
3903
|
-
};
|
|
3904
3900
|
var Ro = {};
|
|
3905
3901
|
Ro = {
|
|
3902
|
+
dismiss: "Скасувати"
|
|
3903
|
+
};
|
|
3904
|
+
var No = {};
|
|
3905
|
+
No = {
|
|
3906
3906
|
dismiss: "取消"
|
|
3907
3907
|
};
|
|
3908
3908
|
var Lo = {};
|
|
@@ -3939,11 +3939,11 @@ Oo = {
|
|
|
3939
3939
|
"ru-RU": Ao,
|
|
3940
3940
|
"sk-SK": Ko,
|
|
3941
3941
|
"sl-SI": Mo,
|
|
3942
|
-
"sr-SP":
|
|
3943
|
-
"sv-SE":
|
|
3942
|
+
"sr-SP": Io,
|
|
3943
|
+
"sv-SE": Fo,
|
|
3944
3944
|
"tr-TR": _o,
|
|
3945
|
-
"uk-UA":
|
|
3946
|
-
"zh-CN":
|
|
3945
|
+
"uk-UA": Ro,
|
|
3946
|
+
"zh-CN": No,
|
|
3947
3947
|
"zh-TW": Lo
|
|
3948
3948
|
};
|
|
3949
3949
|
function Vf(t) {
|
|
@@ -3963,7 +3963,7 @@ function Hf(t) {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
}));
|
|
3965
3965
|
}
|
|
3966
|
-
let
|
|
3966
|
+
let Nt = /* @__PURE__ */ new WeakMap(), we = [];
|
|
3967
3967
|
function Wf(t, e = document.body) {
|
|
3968
3968
|
let n = new Set(t), r = /* @__PURE__ */ new Set(), l = (u) => {
|
|
3969
3969
|
for (let f of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) n.add(f);
|
|
@@ -3982,8 +3982,8 @@ function Wf(t, e = document.body) {
|
|
|
3982
3982
|
}
|
|
3983
3983
|
}, i = (u) => {
|
|
3984
3984
|
var s;
|
|
3985
|
-
let c = (s =
|
|
3986
|
-
u.getAttribute("aria-hidden") === "true" && c === 0 || (c === 0 && u.setAttribute("aria-hidden", "true"), r.add(u),
|
|
3985
|
+
let c = (s = Nt.get(u)) !== null && s !== void 0 ? s : 0;
|
|
3986
|
+
u.getAttribute("aria-hidden") === "true" && c === 0 || (c === 0 && u.setAttribute("aria-hidden", "true"), r.add(u), Nt.set(u, c + 1));
|
|
3987
3987
|
};
|
|
3988
3988
|
we.length && we[we.length - 1].disconnect(), l(e);
|
|
3989
3989
|
let o = new MutationObserver((u) => {
|
|
@@ -4015,8 +4015,8 @@ function Wf(t, e = document.body) {
|
|
|
4015
4015
|
return we.push(a), () => {
|
|
4016
4016
|
o.disconnect();
|
|
4017
4017
|
for (let u of r) {
|
|
4018
|
-
let s =
|
|
4019
|
-
s === 1 ? (u.removeAttribute("aria-hidden"),
|
|
4018
|
+
let s = Nt.get(u);
|
|
4019
|
+
s === 1 ? (u.removeAttribute("aria-hidden"), Nt.delete(u)) : Nt.set(u, s - 1);
|
|
4020
4020
|
}
|
|
4021
4021
|
a === we[we.length - 1] ? (we.pop(), we.length && we[we.length - 1].observe()) : we.splice(we.indexOf(a), 1);
|
|
4022
4022
|
};
|
|
@@ -4036,7 +4036,7 @@ function Uf(t, e) {
|
|
|
4036
4036
|
isOpen: e.isOpen,
|
|
4037
4037
|
onClose: l ? e.close : null
|
|
4038
4038
|
});
|
|
4039
|
-
return
|
|
4039
|
+
return Ff({
|
|
4040
4040
|
isDisabled: l || !e.isOpen
|
|
4041
4041
|
}), Q(() => {
|
|
4042
4042
|
if (e.isOpen && !l && r.current) return Wf([
|
|
@@ -4069,12 +4069,12 @@ function qf(t) {
|
|
|
4069
4069
|
]), { getContainer: a } = Yf();
|
|
4070
4070
|
if (!t.portalContainer && a && (n = a()), !n) return null;
|
|
4071
4071
|
let u = t.children;
|
|
4072
|
-
return t.disableFocusManagement || (u = /* @__PURE__ */ B.createElement(
|
|
4072
|
+
return t.disableFocusManagement || (u = /* @__PURE__ */ B.createElement(Kn, {
|
|
4073
4073
|
restoreFocus: !0,
|
|
4074
4074
|
contain: l && !r
|
|
4075
4075
|
}, u)), u = /* @__PURE__ */ B.createElement(zo.Provider, {
|
|
4076
4076
|
value: o
|
|
4077
|
-
}, /* @__PURE__ */ B.createElement(Bd, null, u)), /* @__PURE__ */
|
|
4077
|
+
}, /* @__PURE__ */ B.createElement(Bd, null, u)), /* @__PURE__ */ Cn.createPortal(u, n);
|
|
4078
4078
|
}
|
|
4079
4079
|
function Xf() {
|
|
4080
4080
|
let t = Y(zo), e = t == null ? void 0 : t.setContain;
|
|
@@ -4125,7 +4125,7 @@ function ep(t) {
|
|
|
4125
4125
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
4126
4126
|
}
|
|
4127
4127
|
function Vo(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: $ } =
|
|
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: $ } = He(), g = qt(), E = (w) => {
|
|
4129
4129
|
if (w.altKey && w.key === "Tab" && w.preventDefault(), !r.current.contains(w.target)) return;
|
|
4130
4130
|
const T = (O, ke) => {
|
|
4131
4131
|
if (O != null) {
|
|
@@ -4144,16 +4144,16 @@ function Vo(t) {
|
|
|
4144
4144
|
switch (w.key) {
|
|
4145
4145
|
case "ArrowDown":
|
|
4146
4146
|
if (n.getKeyBelow) {
|
|
4147
|
-
var
|
|
4148
|
-
let O = e.focusedKey != null ? (
|
|
4149
|
-
O == null && i && (O = (
|
|
4147
|
+
var F, x, N;
|
|
4148
|
+
let O = e.focusedKey != null ? (F = n.getKeyBelow) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey) : (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n);
|
|
4149
|
+
O == null && i && (O = (N = n.getFirstKey) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey)), O != null && (w.preventDefault(), T(O));
|
|
4150
4150
|
}
|
|
4151
4151
|
break;
|
|
4152
4152
|
case "ArrowUp":
|
|
4153
4153
|
if (n.getKeyAbove) {
|
|
4154
|
-
var D, z,
|
|
4154
|
+
var D, z, I;
|
|
4155
4155
|
let O = e.focusedKey != null ? (D = n.getKeyAbove) === null || D === void 0 ? void 0 : D.call(n, e.focusedKey) : (z = n.getLastKey) === null || z === void 0 ? void 0 : z.call(n);
|
|
4156
|
-
O == null && i && (O = (
|
|
4156
|
+
O == null && i && (O = (I = n.getLastKey) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey)), O != null && (w.preventDefault(), T(O));
|
|
4157
4157
|
}
|
|
4158
4158
|
break;
|
|
4159
4159
|
case "ArrowLeft":
|
|
@@ -4165,8 +4165,8 @@ function Vo(t) {
|
|
|
4165
4165
|
break;
|
|
4166
4166
|
case "ArrowRight":
|
|
4167
4167
|
if (n.getKeyRightOf) {
|
|
4168
|
-
var
|
|
4169
|
-
let O = (
|
|
4168
|
+
var Ae, Ee, Ge;
|
|
4169
|
+
let O = (Ae = n.getKeyRightOf) === null || Ae === void 0 ? void 0 : Ae.call(n, e.focusedKey);
|
|
4170
4170
|
O == null && i && (O = $ === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ge = n.getFirstKey) === null || Ge === void 0 ? void 0 : Ge.call(n, e.focusedKey)), O != null && (w.preventDefault(), T(O, $ === "rtl" ? "last" : "first"));
|
|
4171
4171
|
}
|
|
4172
4172
|
break;
|
|
@@ -4236,13 +4236,13 @@ function Vo(t) {
|
|
|
4236
4236
|
if (e.setFocused(!0), e.focusedKey == null) {
|
|
4237
4237
|
let x = (D) => {
|
|
4238
4238
|
D != null && (e.setFocusedKey(D), u && e.replaceSelection(D));
|
|
4239
|
-
},
|
|
4240
|
-
var T,
|
|
4241
|
-
|
|
4239
|
+
}, N = w.relatedTarget;
|
|
4240
|
+
var T, F;
|
|
4241
|
+
N && w.currentTarget.compareDocumentPosition(N) & Node.DOCUMENT_POSITION_FOLLOWING ? x((T = e.lastSelectedKey) !== null && T !== void 0 ? T : n.getLastKey()) : x((F = e.firstSelectedKey) !== null && F !== void 0 ? F : n.getFirstKey());
|
|
4242
4242
|
} else f || (p.current.scrollTop = S.current.top, p.current.scrollLeft = S.current.left);
|
|
4243
4243
|
if (e.focusedKey != null) {
|
|
4244
4244
|
let x = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4245
|
-
x && (x.contains(document.activeElement) || Le(x),
|
|
4245
|
+
x && (x.contains(document.activeElement) || Le(x), bn() === "keyboard" && Je(x, {
|
|
4246
4246
|
containingElement: r.current
|
|
4247
4247
|
}));
|
|
4248
4248
|
}
|
|
@@ -4257,8 +4257,8 @@ function Vo(t) {
|
|
|
4257
4257
|
l === "first" && (w = n.getFirstKey()), l === "last" && (w = n.getLastKey());
|
|
4258
4258
|
let T = e.selectedKeys;
|
|
4259
4259
|
if (T.size) {
|
|
4260
|
-
for (let
|
|
4261
|
-
w =
|
|
4260
|
+
for (let F of T) if (e.canSelectItem(F)) {
|
|
4261
|
+
w = F;
|
|
4262
4262
|
break;
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
@@ -4268,7 +4268,7 @@ function Vo(t) {
|
|
|
4268
4268
|
let P = M(e.focusedKey);
|
|
4269
4269
|
L(() => {
|
|
4270
4270
|
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || C.current) && (p != null && p.current)) {
|
|
4271
|
-
let w =
|
|
4271
|
+
let w = bn(), T = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4272
4272
|
if (!T)
|
|
4273
4273
|
return;
|
|
4274
4274
|
(w === "keyboard" || C.current) && (Ti(p.current, T), w !== "virtual" && Je(T, {
|
|
@@ -4299,19 +4299,19 @@ function Vo(t) {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
};
|
|
4301
4301
|
}
|
|
4302
|
-
function
|
|
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 =
|
|
4304
|
-
if (
|
|
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 = qt(), f = (I) => {
|
|
4304
|
+
if (I.pointerType === "keyboard" && Pr(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
4309
|
let Z = e.getItemProps(n);
|
|
4310
|
-
d.open(r.current,
|
|
4310
|
+
d.open(r.current, I, Z.href, Z.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 && (wt(I) || I.pointerType === "touch" || I.pointerType === "virtual") ? e.toggleSelection(n) : e.replaceSelection(n);
|
|
4315
4315
|
}
|
|
4316
4316
|
};
|
|
4317
4317
|
L(() => {
|
|
@@ -4327,51 +4327,51 @@ function Nn(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", $ = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, E = (u || $) && !a, S = E && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), y = E && g && e.selectionBehavior === "replace", k = S || y, C = M(null), P = k && g, _ = M(!1), v = M(!1), A = (
|
|
4336
|
+
let m = e.isLink(n) && c === "override", $ = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, E = (u || $) && !a, S = E && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), y = E && g && e.selectionBehavior === "replace", k = S || y, C = M(null), P = k && g, _ = M(!1), v = M(!1), A = (I) => {
|
|
4337
4337
|
if (u && u(), $) {
|
|
4338
4338
|
let Z = e.getItemProps(n);
|
|
4339
|
-
d.open(r.current,
|
|
4339
|
+
d.open(r.current, I, Z.href, Z.routerOptions);
|
|
4340
4340
|
}
|
|
4341
4341
|
}, w = {};
|
|
4342
|
-
l ? (w.onPressStart = (
|
|
4343
|
-
C.current =
|
|
4344
|
-
}, s ? (w.onPressUp = S ? null : (
|
|
4345
|
-
|
|
4346
|
-
}, w.onPress = S ? A : null) : w.onPress = (
|
|
4347
|
-
if (S || y &&
|
|
4348
|
-
if (
|
|
4349
|
-
A(
|
|
4350
|
-
} else
|
|
4351
|
-
}) : (w.onPressStart = (
|
|
4352
|
-
C.current =
|
|
4353
|
-
}, w.onPress = (
|
|
4354
|
-
(
|
|
4342
|
+
l ? (w.onPressStart = (I) => {
|
|
4343
|
+
C.current = I.pointerType, _.current = P, I.pointerType === "keyboard" && (!k || Ql()) && f(I);
|
|
4344
|
+
}, s ? (w.onPressUp = S ? null : (I) => {
|
|
4345
|
+
I.pointerType !== "keyboard" && g && f(I);
|
|
4346
|
+
}, w.onPress = S ? A : null) : w.onPress = (I) => {
|
|
4347
|
+
if (S || y && I.pointerType !== "mouse") {
|
|
4348
|
+
if (I.pointerType === "keyboard" && !Jl()) return;
|
|
4349
|
+
A(I);
|
|
4350
|
+
} else I.pointerType !== "keyboard" && g && f(I);
|
|
4351
|
+
}) : (w.onPressStart = (I) => {
|
|
4352
|
+
C.current = I.pointerType, _.current = P, v.current = S, g && (I.pointerType === "mouse" && !S || I.pointerType === "keyboard" && (!E || Ql())) && f(I);
|
|
4353
|
+
}, w.onPress = (I) => {
|
|
4354
|
+
(I.pointerType === "touch" || I.pointerType === "pen" || I.pointerType === "virtual" || I.pointerType === "keyboard" && k && Jl() || I.pointerType === "mouse" && v.current) && (k ? A(I) : g && f(I));
|
|
4355
4355
|
}), p["data-key"] = n, w.preventFocusOnPress = i;
|
|
4356
|
-
let { pressProps: T, isPressed:
|
|
4357
|
-
C.current === "mouse" && (
|
|
4358
|
-
} : void 0, { longPressProps:
|
|
4356
|
+
let { pressProps: T, isPressed: F } = ze(w), x = y ? (I) => {
|
|
4357
|
+
C.current === "mouse" && (I.stopPropagation(), I.preventDefault(), A(I));
|
|
4358
|
+
} : void 0, { longPressProps: N } = ji({
|
|
4359
4359
|
isDisabled: !P,
|
|
4360
|
-
onLongPress(
|
|
4361
|
-
|
|
4360
|
+
onLongPress(I) {
|
|
4361
|
+
I.pointerType === "touch" && (f(I), e.setSelectionBehavior("toggle"));
|
|
4362
4362
|
}
|
|
4363
|
-
}), D = (
|
|
4364
|
-
C.current === "touch" && _.current &&
|
|
4365
|
-
}, z = e.isLink(n) ? (
|
|
4366
|
-
ct.isOpening ||
|
|
4363
|
+
}), D = (I) => {
|
|
4364
|
+
C.current === "touch" && _.current && I.preventDefault();
|
|
4365
|
+
}, z = e.isLink(n) ? (I) => {
|
|
4366
|
+
ct.isOpening || I.preventDefault();
|
|
4367
4367
|
} : void 0;
|
|
4368
4368
|
return {
|
|
4369
|
-
itemProps: W(p, g || S ? T : {}, P ?
|
|
4369
|
+
itemProps: W(p, g || S ? T : {}, P ? N : {}, {
|
|
4370
4370
|
onDoubleClick: x,
|
|
4371
4371
|
onDragStartCapture: D,
|
|
4372
4372
|
onClick: z
|
|
4373
4373
|
}),
|
|
4374
|
-
isPressed:
|
|
4374
|
+
isPressed: F,
|
|
4375
4375
|
isSelected: e.isSelected(n),
|
|
4376
4376
|
isFocused: e.isFocused && e.focusedKey === n,
|
|
4377
4377
|
isDisabled: a,
|
|
@@ -4481,7 +4481,7 @@ class Ho {
|
|
|
4481
4481
|
getKeyPageAbove(e) {
|
|
4482
4482
|
let n = this.ref.current, r = this.layoutDelegate.getItemRect(e);
|
|
4483
4483
|
if (!r) return null;
|
|
4484
|
-
if (!
|
|
4484
|
+
if (!Vt(n)) return this.getFirstKey();
|
|
4485
4485
|
if (this.orientation === "horizontal") {
|
|
4486
4486
|
let l = Math.max(0, r.x + r.width - this.layoutDelegate.getVisibleRect().width);
|
|
4487
4487
|
for (; r && r.x > l; )
|
|
@@ -4496,7 +4496,7 @@ class Ho {
|
|
|
4496
4496
|
getKeyPageBelow(e) {
|
|
4497
4497
|
let n = this.ref.current, r = this.layoutDelegate.getItemRect(e);
|
|
4498
4498
|
if (!r) return null;
|
|
4499
|
-
if (!
|
|
4499
|
+
if (!Vt(n)) return this.getLastKey();
|
|
4500
4500
|
if (this.orientation === "horizontal") {
|
|
4501
4501
|
let l = Math.min(this.layoutDelegate.getContentSize().width, r.y - r.width + this.layoutDelegate.getVisibleRect().width);
|
|
4502
4502
|
for (; r && r.x < l; )
|
|
@@ -4568,7 +4568,7 @@ function tp(t, e, n) {
|
|
|
4568
4568
|
collection: e.collection,
|
|
4569
4569
|
disabledKeys: e.disabledKeys,
|
|
4570
4570
|
linkBehavior: i
|
|
4571
|
-
}), { focusWithinProps: a } =
|
|
4571
|
+
}), { focusWithinProps: a } = Xt({
|
|
4572
4572
|
onFocusWithin: t.onFocus,
|
|
4573
4573
|
onBlurWithin: t.onBlur,
|
|
4574
4574
|
onFocusWithinChange: t.onFocusChange
|
|
@@ -4663,7 +4663,7 @@ Go.getCollectionNode = function* (e) {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
};
|
|
4665
4665
|
};
|
|
4666
|
-
let
|
|
4666
|
+
let Vh = Go;
|
|
4667
4667
|
class rp {
|
|
4668
4668
|
build(e, n) {
|
|
4669
4669
|
return this.context = n, ei(() => this.iterateCollection(e));
|
|
@@ -4836,7 +4836,7 @@ function Jr(t, e, n) {
|
|
|
4836
4836
|
function ce(t, e) {
|
|
4837
4837
|
return typeof e.getChildren == "function" ? e.getChildren(t.key) : t.childNodes;
|
|
4838
4838
|
}
|
|
4839
|
-
function
|
|
4839
|
+
function Ne(t) {
|
|
4840
4840
|
return Qe(t, 0);
|
|
4841
4841
|
}
|
|
4842
4842
|
function Qe(t, e) {
|
|
@@ -4907,7 +4907,7 @@ function ip(t, e, n) {
|
|
|
4907
4907
|
let _ = o != null && o.onAction ? () => {
|
|
4908
4908
|
var z;
|
|
4909
4909
|
return o == null || (z = o.onAction) === null || z === void 0 ? void 0 : z.call(o, i);
|
|
4910
|
-
} : void 0, { itemProps: v, isPressed: A, isFocused: w, hasAction: T, allowsSelection:
|
|
4910
|
+
} : void 0, { itemProps: v, isPressed: A, isFocused: w, hasAction: T, allowsSelection: F } = _n({
|
|
4911
4911
|
selectionManager: e.selectionManager,
|
|
4912
4912
|
key: i,
|
|
4913
4913
|
ref: n,
|
|
@@ -4916,20 +4916,20 @@ function ip(t, e, n) {
|
|
|
4916
4916
|
isVirtualized: S,
|
|
4917
4917
|
shouldUseVirtualFocus: g,
|
|
4918
4918
|
isDisabled: u,
|
|
4919
|
-
onAction: _ || !(P == null || (r = P.props) === null || r === void 0) && r.onAction ?
|
|
4919
|
+
onAction: _ || !(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, _) : void 0,
|
|
4920
4920
|
linkBehavior: o == null ? void 0 : o.linkBehavior
|
|
4921
4921
|
}), { hoverProps: x } = Tt({
|
|
4922
4922
|
isDisabled: u || !m,
|
|
4923
4923
|
onHoverStart() {
|
|
4924
4924
|
ft() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
4925
4925
|
}
|
|
4926
|
-
}),
|
|
4927
|
-
delete
|
|
4926
|
+
}), N = ve(P == null ? void 0 : P.props);
|
|
4927
|
+
delete N.id;
|
|
4928
4928
|
let D = Ci(P == null ? void 0 : P.props);
|
|
4929
4929
|
return {
|
|
4930
4930
|
optionProps: {
|
|
4931
4931
|
...C,
|
|
4932
|
-
...W(
|
|
4932
|
+
...W(N, v, x, D),
|
|
4933
4933
|
id: Jf(e, i)
|
|
4934
4934
|
},
|
|
4935
4935
|
labelProps: {
|
|
@@ -4943,7 +4943,7 @@ function ip(t, e, n) {
|
|
|
4943
4943
|
isSelected: c,
|
|
4944
4944
|
isDisabled: u,
|
|
4945
4945
|
isPressed: A,
|
|
4946
|
-
allowsSelection:
|
|
4946
|
+
allowsSelection: F,
|
|
4947
4947
|
hasAction: T
|
|
4948
4948
|
};
|
|
4949
4949
|
}
|
|
@@ -5209,25 +5209,25 @@ function Ma(t, e, n) {
|
|
|
5209
5209
|
var P;
|
|
5210
5210
|
let _ = (P = t.isDisabled) !== null && P !== void 0 ? P : e.selectionManager.isDisabled(l);
|
|
5211
5211
|
var v;
|
|
5212
|
-
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), w = Aa.get(e), T = e.collection.getItem(l),
|
|
5212
|
+
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), w = Aa.get(e), T = e.collection.getItem(l), F = t.onClose || w.onClose, x = qt(), N = (le) => {
|
|
5213
5213
|
var gt;
|
|
5214
5214
|
if (!C) {
|
|
5215
5215
|
if (!(T == null || (gt = T.props) === null || gt === void 0) && gt.onAction ? T.props.onAction() : t.onAction && t.onAction(l), w.onAction) {
|
|
5216
|
-
let
|
|
5217
|
-
|
|
5216
|
+
let On = w.onAction;
|
|
5217
|
+
On(l);
|
|
5218
5218
|
}
|
|
5219
5219
|
le.target instanceof HTMLAnchorElement && x.open(le.target, le, T.props.href, T.props.routerOptions);
|
|
5220
5220
|
}
|
|
5221
5221
|
}, D = "menuitem";
|
|
5222
5222
|
C || (e.selectionManager.selectionMode === "single" ? D = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (D = "menuitemcheckbox"));
|
|
5223
|
-
let z = tt(),
|
|
5223
|
+
let z = tt(), I = tt(), Z = tt(), ue = {
|
|
5224
5224
|
id: r,
|
|
5225
5225
|
"aria-disabled": _ || void 0,
|
|
5226
5226
|
role: D,
|
|
5227
5227
|
"aria-label": t["aria-label"],
|
|
5228
5228
|
"aria-labelledby": z,
|
|
5229
5229
|
"aria-describedby": [
|
|
5230
|
-
|
|
5230
|
+
I,
|
|
5231
5231
|
Z
|
|
5232
5232
|
].filter(Boolean).join(" ") || void 0,
|
|
5233
5233
|
"aria-controls": t["aria-controls"],
|
|
@@ -5236,10 +5236,10 @@ function Ma(t, e, n) {
|
|
|
5236
5236
|
};
|
|
5237
5237
|
e.selectionManager.selectionMode !== "none" && !C && (ue["aria-checked"] = A), o && (ue["aria-posinset"] = T == null ? void 0 : T.index, ue["aria-setsize"] = Yo(e.collection));
|
|
5238
5238
|
let fe = (le) => {
|
|
5239
|
-
le.pointerType === "keyboard" &&
|
|
5240
|
-
},
|
|
5241
|
-
le.pointerType !== "keyboard" && (
|
|
5242
|
-
}, { itemProps: Ee, isFocused: Ge } =
|
|
5239
|
+
le.pointerType === "keyboard" && N(le), u == null || u(le);
|
|
5240
|
+
}, Ae = (le) => {
|
|
5241
|
+
le.pointerType !== "keyboard" && (N(le), !C && F && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && F()), s == null || s(le);
|
|
5242
|
+
}, { itemProps: Ee, isFocused: Ge } = _n({
|
|
5243
5243
|
selectionManager: e.selectionManager,
|
|
5244
5244
|
key: l,
|
|
5245
5245
|
ref: n,
|
|
@@ -5250,10 +5250,10 @@ function Ma(t, e, n) {
|
|
|
5250
5250
|
// is slightly different from other collections because
|
|
5251
5251
|
// actions are performed on key down rather than key up.
|
|
5252
5252
|
linkBehavior: "none"
|
|
5253
|
-
}), { pressProps: O, isPressed: ke } =
|
|
5253
|
+
}), { pressProps: O, isPressed: ke } = ze({
|
|
5254
5254
|
onPressStart: fe,
|
|
5255
5255
|
onPress: c,
|
|
5256
|
-
onPressUp:
|
|
5256
|
+
onPressUp: Ae,
|
|
5257
5257
|
onPressChange: d,
|
|
5258
5258
|
onPressEnd: f,
|
|
5259
5259
|
isDisabled: _
|
|
@@ -5272,10 +5272,10 @@ function Ma(t, e, n) {
|
|
|
5272
5272
|
}
|
|
5273
5273
|
switch (le.key) {
|
|
5274
5274
|
case " ":
|
|
5275
|
-
!_ && e.selectionManager.selectionMode === "none" && !C && i !== !1 &&
|
|
5275
|
+
!_ && e.selectionManager.selectionMode === "none" && !C && i !== !1 && F && F();
|
|
5276
5276
|
break;
|
|
5277
5277
|
case "Enter":
|
|
5278
|
-
!_ && i !== !1 && !C &&
|
|
5278
|
+
!_ && i !== !1 && !C && F && F();
|
|
5279
5279
|
break;
|
|
5280
5280
|
default:
|
|
5281
5281
|
C || le.continuePropagation(), g == null || g(le);
|
|
@@ -5283,7 +5283,7 @@ function Ma(t, e, n) {
|
|
|
5283
5283
|
}
|
|
5284
5284
|
},
|
|
5285
5285
|
onKeyUp: E
|
|
5286
|
-
}), { focusProps: ht } =
|
|
5286
|
+
}), { focusProps: ht } = Bn({
|
|
5287
5287
|
onBlur: k,
|
|
5288
5288
|
onFocus: S,
|
|
5289
5289
|
onFocusChange: y
|
|
@@ -5303,7 +5303,7 @@ function Ma(t, e, n) {
|
|
|
5303
5303
|
id: z
|
|
5304
5304
|
},
|
|
5305
5305
|
descriptionProps: {
|
|
5306
|
-
id:
|
|
5306
|
+
id: I
|
|
5307
5307
|
},
|
|
5308
5308
|
keyboardShortcutProps: {
|
|
5309
5309
|
id: Z
|
|
@@ -5370,12 +5370,12 @@ function up(t, e) {
|
|
|
5370
5370
|
}
|
|
5371
5371
|
};
|
|
5372
5372
|
}
|
|
5373
|
-
var
|
|
5373
|
+
var Ut;
|
|
5374
5374
|
(function(t) {
|
|
5375
5375
|
t[t.none = 0] = "none", t[t.cancel = 0] = "cancel", t[t.move = 1] = "move", t[t.copy = 2] = "copy", t[t.link = 4] = "link", t[t.all = 7] = "all";
|
|
5376
|
-
})(
|
|
5376
|
+
})(Ut || (Ut = {}));
|
|
5377
5377
|
const sp = {
|
|
5378
|
-
...
|
|
5378
|
+
...Ut,
|
|
5379
5379
|
copyMove: 3,
|
|
5380
5380
|
copyLink: 6,
|
|
5381
5381
|
linkMove: 5,
|
|
@@ -5383,7 +5383,7 @@ const sp = {
|
|
|
5383
5383
|
uninitialized: 7
|
|
5384
5384
|
}, cp = Qr(sp);
|
|
5385
5385
|
cp[7] = "all";
|
|
5386
|
-
Qr(
|
|
5386
|
+
Qr(Ut);
|
|
5387
5387
|
const dp = {
|
|
5388
5388
|
none: "cancel",
|
|
5389
5389
|
link: "link",
|
|
@@ -5400,7 +5400,7 @@ const fp = /* @__PURE__ */ new Set([
|
|
|
5400
5400
|
"text/plain",
|
|
5401
5401
|
"text/uri-list",
|
|
5402
5402
|
"text/html"
|
|
5403
|
-
]), kr = "application/vnd.react-aria.items+json",
|
|
5403
|
+
]), kr = "application/vnd.react-aria.items+json", Ia = "application/octet-stream";
|
|
5404
5404
|
function ri(t, e) {
|
|
5405
5405
|
let n = /* @__PURE__ */ new Map(), r = !1, l = [];
|
|
5406
5406
|
for (let i of e) {
|
|
@@ -5442,12 +5442,12 @@ function pp(t) {
|
|
|
5442
5442
|
let r = /* @__PURE__ */ new Map();
|
|
5443
5443
|
for (let l of t.items)
|
|
5444
5444
|
if (l.kind === "string")
|
|
5445
|
-
r.set(l.type ||
|
|
5445
|
+
r.set(l.type || Ia, t.getData(l.type));
|
|
5446
5446
|
else if (l.kind === "file")
|
|
5447
5447
|
if (typeof l.webkitGetAsEntry == "function") {
|
|
5448
5448
|
let i = l.webkitGetAsEntry();
|
|
5449
5449
|
if (!i) continue;
|
|
5450
|
-
i.isFile ? e.push(Tr(l.getAsFile())) : i.isDirectory && e.push(
|
|
5450
|
+
i.isFile ? e.push(Tr(l.getAsFile())) : i.isDirectory && e.push(Fa(i));
|
|
5451
5451
|
} else
|
|
5452
5452
|
e.push(Tr(l.getAsFile()));
|
|
5453
5453
|
r.size > 0 && e.push({
|
|
@@ -5469,13 +5469,13 @@ function vp(t) {
|
|
|
5469
5469
|
function Tr(t) {
|
|
5470
5470
|
return {
|
|
5471
5471
|
kind: "file",
|
|
5472
|
-
type: t.type ||
|
|
5472
|
+
type: t.type || Ia,
|
|
5473
5473
|
name: t.name,
|
|
5474
5474
|
getText: () => vp(t),
|
|
5475
5475
|
getFile: () => Promise.resolve(t)
|
|
5476
5476
|
};
|
|
5477
5477
|
}
|
|
5478
|
-
function
|
|
5478
|
+
function Fa(t) {
|
|
5479
5479
|
return {
|
|
5480
5480
|
kind: "directory",
|
|
5481
5481
|
name: t.name,
|
|
@@ -5492,13 +5492,13 @@ async function* hp(t) {
|
|
|
5492
5492
|
if (r.isFile) {
|
|
5493
5493
|
let l = await mp(r);
|
|
5494
5494
|
yield Tr(l);
|
|
5495
|
-
} else r.isDirectory && (yield
|
|
5495
|
+
} else r.isDirectory && (yield Fa(r));
|
|
5496
5496
|
} while (n.length > 0);
|
|
5497
5497
|
}
|
|
5498
5498
|
function mp(t) {
|
|
5499
5499
|
return new Promise((e, n) => t.file(e, n));
|
|
5500
5500
|
}
|
|
5501
|
-
|
|
5501
|
+
Ut.none;
|
|
5502
5502
|
const or = /* @__PURE__ */ new Map();
|
|
5503
5503
|
function St(t, e) {
|
|
5504
5504
|
let n = or.get(t);
|
|
@@ -5516,7 +5516,7 @@ function St(t, e) {
|
|
|
5516
5516
|
};
|
|
5517
5517
|
}
|
|
5518
5518
|
function bp(t) {
|
|
5519
|
-
let { isDisabled: e } = t, n = M(!1), { focusProps: r } =
|
|
5519
|
+
let { isDisabled: e } = t, n = M(!1), { focusProps: r } = Bn({
|
|
5520
5520
|
onFocusChange: (c) => {
|
|
5521
5521
|
n.current = c;
|
|
5522
5522
|
}
|
|
@@ -5539,7 +5539,7 @@ function bp(t) {
|
|
|
5539
5539
|
});
|
|
5540
5540
|
return L(() => {
|
|
5541
5541
|
if (!e)
|
|
5542
|
-
return
|
|
5542
|
+
return Ie(St("beforecopy", l), St("copy", i), St("beforecut", o), St("cut", a), St("beforepaste", u), St("paste", s));
|
|
5543
5543
|
}, [
|
|
5544
5544
|
e,
|
|
5545
5545
|
l,
|
|
@@ -5604,7 +5604,7 @@ class _a {
|
|
|
5604
5604
|
if (n) {
|
|
5605
5605
|
if (this.isRow(n)) {
|
|
5606
5606
|
let r = ce(n, this.collection);
|
|
5607
|
-
return this.direction === "rtl" ? et(r).key :
|
|
5607
|
+
return this.direction === "rtl" ? et(r).key : Ne(r).key;
|
|
5608
5608
|
}
|
|
5609
5609
|
if (this.isCell(n)) {
|
|
5610
5610
|
let r = this.collection.getItem(n.parentKey), l = ce(r, this.collection), i = this.direction === "rtl" ? Qe(l, n.index - 1) : Qe(l, n.index + 1);
|
|
@@ -5617,7 +5617,7 @@ class _a {
|
|
|
5617
5617
|
if (n) {
|
|
5618
5618
|
if (this.isRow(n)) {
|
|
5619
5619
|
let r = ce(n, this.collection);
|
|
5620
|
-
return this.direction === "rtl" ?
|
|
5620
|
+
return this.direction === "rtl" ? Ne(r).key : et(r).key;
|
|
5621
5621
|
}
|
|
5622
5622
|
if (this.isCell(n)) {
|
|
5623
5623
|
let r = this.collection.getItem(n.parentKey), l = ce(r, this.collection), i = this.direction === "rtl" ? Qe(l, n.index + 1) : Qe(l, n.index - 1);
|
|
@@ -5631,12 +5631,12 @@ class _a {
|
|
|
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
|
|
5634
|
+
return Ne(ce(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 =
|
|
5639
|
+
e = Ne(ce(l, this.collection)).key;
|
|
5640
5640
|
}
|
|
5641
5641
|
return e;
|
|
5642
5642
|
}
|
|
@@ -5684,7 +5684,7 @@ class _a {
|
|
|
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" ?
|
|
5687
|
+
return this.isRow(a) && this.focusMode === "cell" ? Ne(ce(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
|
}
|
|
@@ -5710,8 +5710,8 @@ class gp {
|
|
|
5710
5710
|
}
|
|
5711
5711
|
}
|
|
5712
5712
|
const el = /* @__PURE__ */ new WeakMap();
|
|
5713
|
-
var
|
|
5714
|
-
|
|
5713
|
+
var Ra = {};
|
|
5714
|
+
Ra = {
|
|
5715
5715
|
deselectedItem: (t) => `${t.item} غير المحدد`,
|
|
5716
5716
|
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
|
|
5717
5717
|
select: "تحديد",
|
|
@@ -5723,8 +5723,8 @@ Na = {
|
|
|
5723
5723
|
})}.`,
|
|
5724
5724
|
selectedItem: (t) => `${t.item} المحدد`
|
|
5725
5725
|
};
|
|
5726
|
-
var
|
|
5727
|
-
|
|
5726
|
+
var Na = {};
|
|
5727
|
+
Na = {
|
|
5728
5728
|
deselectedItem: (t) => `${t.item} не е избран.`,
|
|
5729
5729
|
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
|
|
5730
5730
|
select: "Изберете",
|
|
@@ -6154,8 +6154,8 @@ mu = {
|
|
|
6154
6154
|
};
|
|
6155
6155
|
var tl = {};
|
|
6156
6156
|
tl = {
|
|
6157
|
-
"ar-AE":
|
|
6158
|
-
"bg-BG":
|
|
6157
|
+
"ar-AE": Ra,
|
|
6158
|
+
"bg-BG": Na,
|
|
6159
6159
|
"cs-CZ": La,
|
|
6160
6160
|
"da-DK": Oa,
|
|
6161
6161
|
"de-DE": za,
|
|
@@ -6224,7 +6224,7 @@ function yp(t, e) {
|
|
|
6224
6224
|
}
|
|
6225
6225
|
e.selectionManager.selectionMode === "multiple" && (c.length === 0 || l === "all" || l.size > 1 || i.current === "all" || ((o = i.current) === null || o === void 0 ? void 0 : o.size) > 1) && c.push(l === "all" ? r.format("selectedAll") : r.format("selectedCount", {
|
|
6226
6226
|
count: l.size
|
|
6227
|
-
})), c.length > 0 &&
|
|
6227
|
+
})), c.length > 0 && xn(c.join(" ")), i.current = l;
|
|
6228
6228
|
}, [
|
|
6229
6229
|
l
|
|
6230
6230
|
]);
|
|
@@ -6249,7 +6249,7 @@ function Ep(t) {
|
|
|
6249
6249
|
e,
|
|
6250
6250
|
r
|
|
6251
6251
|
]);
|
|
6252
|
-
return
|
|
6252
|
+
return kn(l);
|
|
6253
6253
|
}
|
|
6254
6254
|
function Sp(t, e, n) {
|
|
6255
6255
|
let { isVirtualized: r, keyboardDelegate: l, focusMode: i, scrollRef: o, getRowText: a, onRowAction: u, onCellAction: s } = t, { selectionManager: c } = e;
|
|
@@ -6257,7 +6257,7 @@ function Sp(t, e, n) {
|
|
|
6257
6257
|
let d = In({
|
|
6258
6258
|
usage: "search",
|
|
6259
6259
|
sensitivity: "base"
|
|
6260
|
-
}), { direction: f } =
|
|
6260
|
+
}), { direction: f } = He(), p = e.selectionManager.disabledBehavior, m = H(() => l || new _a({
|
|
6261
6261
|
collection: e.collection,
|
|
6262
6262
|
disabledKeys: e.disabledKeys,
|
|
6263
6263
|
disabledBehavior: p,
|
|
@@ -6338,13 +6338,13 @@ function Cp() {
|
|
|
6338
6338
|
}
|
|
6339
6339
|
function wp(t, e, n) {
|
|
6340
6340
|
var r, l;
|
|
6341
|
-
let { node: i, isVirtualized: o, shouldSelectOnPressUp: a, onAction: u } = t, { actions: s } = el.get(e), c = s.onRowAction ? () => s.onRowAction(i.key) : u, { itemProps: d, ...f } =
|
|
6341
|
+
let { node: i, isVirtualized: o, shouldSelectOnPressUp: a, onAction: u } = t, { actions: s } = el.get(e), c = s.onRowAction ? () => s.onRowAction(i.key) : u, { itemProps: d, ...f } = _n({
|
|
6342
6342
|
selectionManager: e.selectionManager,
|
|
6343
6343
|
key: i.key,
|
|
6344
6344
|
ref: n,
|
|
6345
6345
|
isVirtualized: o,
|
|
6346
6346
|
shouldSelectOnPressUp: a,
|
|
6347
|
-
onAction: c || !(i == null || (r = i.props) === null || r === void 0) && r.onAction ?
|
|
6347
|
+
onAction: c || !(i == null || (r = i.props) === null || r === void 0) && r.onAction ? Ie(i == null || (l = i.props) === null || l === void 0 ? void 0 : l.onAction, c) : void 0,
|
|
6348
6348
|
isDisabled: e.collection.size === 0
|
|
6349
6349
|
}), p = e.selectionManager.isSelected(i.key), m = {
|
|
6350
6350
|
role: "row",
|
|
@@ -6358,7 +6358,7 @@ function wp(t, e, n) {
|
|
|
6358
6358
|
};
|
|
6359
6359
|
}
|
|
6360
6360
|
function bu(t, e, n) {
|
|
6361
|
-
let { node: r, isVirtualized: l, focusMode: i = "child", shouldSelectOnPressUp: o, onAction: a } = t, { direction: u } =
|
|
6361
|
+
let { node: r, isVirtualized: l, focusMode: i = "child", shouldSelectOnPressUp: o, onAction: a } = t, { direction: u } = He(), { keyboardDelegate: s, actions: { onCellAction: c } } = el.get(e), d = M(null), f = () => {
|
|
6362
6362
|
let y = xe(n.current);
|
|
6363
6363
|
if (i === "child") {
|
|
6364
6364
|
if (n.current.contains(document.activeElement) && n.current !== document.activeElement) return;
|
|
@@ -6369,7 +6369,7 @@ function bu(t, e, n) {
|
|
|
6369
6369
|
}
|
|
6370
6370
|
}
|
|
6371
6371
|
(d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) && me(n.current);
|
|
6372
|
-
}, { itemProps: p, isPressed: m } =
|
|
6372
|
+
}, { itemProps: p, isPressed: m } = _n({
|
|
6373
6373
|
selectionManager: e.selectionManager,
|
|
6374
6374
|
key: r.key,
|
|
6375
6375
|
ref: n,
|
|
@@ -6464,9 +6464,9 @@ function Pp(t, e, n) {
|
|
|
6464
6464
|
!u && !s && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
6465
6465
|
let c = e.selectedValue === r, d = (v) => {
|
|
6466
6466
|
v.stopPropagation(), e.setSelectedValue(r);
|
|
6467
|
-
}, { pressProps: f, isPressed: p } =
|
|
6467
|
+
}, { pressProps: f, isPressed: p } = ze({
|
|
6468
6468
|
isDisabled: a
|
|
6469
|
-
}), { pressProps: m, isPressed: $ } =
|
|
6469
|
+
}), { pressProps: m, isPressed: $ } = ze({
|
|
6470
6470
|
isDisabled: a,
|
|
6471
6471
|
onPress() {
|
|
6472
6472
|
e.setSelectedValue(r);
|
|
@@ -6478,7 +6478,7 @@ function Pp(t, e, n) {
|
|
|
6478
6478
|
}), y = -1;
|
|
6479
6479
|
e.selectedValue != null ? e.selectedValue === r && (y = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && (y = 0), a && (y = void 0);
|
|
6480
6480
|
let { name: k, descriptionId: C, errorMessageId: P, validationBehavior: _ } = gu.get(e);
|
|
6481
|
-
return
|
|
6481
|
+
return Tn(n, e.selectedValue, e.setSelectedValue), Ur({
|
|
6482
6482
|
validationBehavior: _
|
|
6483
6483
|
}, e, n), {
|
|
6484
6484
|
labelProps: W(m, {
|
|
@@ -6506,7 +6506,7 @@ function Pp(t, e, n) {
|
|
|
6506
6506
|
};
|
|
6507
6507
|
}
|
|
6508
6508
|
function Dp(t, e) {
|
|
6509
|
-
let { name: n, isReadOnly: r, isRequired: l, isDisabled: i, orientation: o = "vertical", validationBehavior: a = "aria" } = t, { direction: u } =
|
|
6509
|
+
let { name: n, isReadOnly: r, isRequired: l, isDisabled: i, orientation: o = "vertical", validationBehavior: a = "aria" } = t, { direction: u } = He(), { isInvalid: s, validationErrors: c, validationDetails: d } = e.displayValidation, { labelProps: f, fieldProps: p, descriptionProps: m, errorMessageProps: $ } = Yr({
|
|
6510
6510
|
...t,
|
|
6511
6511
|
// Radio group is not an HTML input element so it
|
|
6512
6512
|
// shouldn't be labeled by a <label> element.
|
|
@@ -6515,7 +6515,7 @@ function Dp(t, e) {
|
|
|
6515
6515
|
errorMessage: t.errorMessage || c
|
|
6516
6516
|
}), g = ve(t, {
|
|
6517
6517
|
labelable: !0
|
|
6518
|
-
}), { focusWithinProps: E } =
|
|
6518
|
+
}), { focusWithinProps: E } = Xt({
|
|
6519
6519
|
onBlurWithin(k) {
|
|
6520
6520
|
var C;
|
|
6521
6521
|
(C = t.onBlur) === null || C === void 0 || C.call(t, k), e.selectedValue || e.setLastFocusedValue(null);
|
|
@@ -6633,24 +6633,24 @@ var Mu = {};
|
|
|
6633
6633
|
Mu = {
|
|
6634
6634
|
"Clear search": "Cancella ricerca"
|
|
6635
6635
|
};
|
|
6636
|
-
var Fu = {};
|
|
6637
|
-
Fu = {
|
|
6638
|
-
"Clear search": "検索をクリア"
|
|
6639
|
-
};
|
|
6640
6636
|
var Iu = {};
|
|
6641
6637
|
Iu = {
|
|
6638
|
+
"Clear search": "検索をクリア"
|
|
6639
|
+
};
|
|
6640
|
+
var Fu = {};
|
|
6641
|
+
Fu = {
|
|
6642
6642
|
"Clear search": "검색 지우기"
|
|
6643
6643
|
};
|
|
6644
6644
|
var _u = {};
|
|
6645
6645
|
_u = {
|
|
6646
6646
|
"Clear search": "Išvalyti iešką"
|
|
6647
6647
|
};
|
|
6648
|
-
var Nu = {};
|
|
6649
|
-
Nu = {
|
|
6650
|
-
"Clear search": "Notīrīt meklēšanu"
|
|
6651
|
-
};
|
|
6652
6648
|
var Ru = {};
|
|
6653
6649
|
Ru = {
|
|
6650
|
+
"Clear search": "Notīrīt meklēšanu"
|
|
6651
|
+
};
|
|
6652
|
+
var Nu = {};
|
|
6653
|
+
Nu = {
|
|
6654
6654
|
"Clear search": "Tøm søk"
|
|
6655
6655
|
};
|
|
6656
6656
|
var Lu = {};
|
|
@@ -6726,11 +6726,11 @@ Qu = {
|
|
|
6726
6726
|
"hr-HR": Au,
|
|
6727
6727
|
"hu-HU": Ku,
|
|
6728
6728
|
"it-IT": Mu,
|
|
6729
|
-
"ja-JP":
|
|
6730
|
-
"ko-KR":
|
|
6729
|
+
"ja-JP": Iu,
|
|
6730
|
+
"ko-KR": Fu,
|
|
6731
6731
|
"lt-LT": _u,
|
|
6732
|
-
"lv-LV":
|
|
6733
|
-
"nb-NO":
|
|
6732
|
+
"lv-LV": Ru,
|
|
6733
|
+
"nb-NO": Nu,
|
|
6734
6734
|
"nl-NL": Lu,
|
|
6735
6735
|
"pl-PL": Ou,
|
|
6736
6736
|
"pt-BR": zu,
|
|
@@ -6762,7 +6762,7 @@ function Tp(t, e, n) {
|
|
|
6762
6762
|
...t,
|
|
6763
6763
|
value: e.value,
|
|
6764
6764
|
onChange: e.setValue,
|
|
6765
|
-
onKeyDown: i ? t.onKeyDown :
|
|
6765
|
+
onKeyDown: i ? t.onKeyDown : Ie(s, t.onKeyDown),
|
|
6766
6766
|
type: u
|
|
6767
6767
|
}, n);
|
|
6768
6768
|
return {
|
|
@@ -6838,13 +6838,13 @@ function ts(t, e, n) {
|
|
|
6838
6838
|
labelProps: {
|
|
6839
6839
|
...E,
|
|
6840
6840
|
onClick: () => {
|
|
6841
|
-
t.isDisabled || (n.current.focus(),
|
|
6841
|
+
t.isDisabled || (n.current.focus(), Ni("keyboard"));
|
|
6842
6842
|
}
|
|
6843
6843
|
},
|
|
6844
6844
|
triggerProps: W(C, {
|
|
6845
6845
|
...P,
|
|
6846
6846
|
isDisabled: l,
|
|
6847
|
-
onKeyDown:
|
|
6847
|
+
onKeyDown: Ie(P.onKeyDown, f, t.onKeyDown),
|
|
6848
6848
|
onKeyUp: t.onKeyUp,
|
|
6849
6849
|
"aria-labelledby": [
|
|
6850
6850
|
_,
|
|
@@ -6885,7 +6885,7 @@ function ts(t, e, n) {
|
|
|
6885
6885
|
}
|
|
6886
6886
|
function Bp(t, e, n) {
|
|
6887
6887
|
let r = es.get(e) || {}, { autoComplete: l, name: i = r.name, isDisabled: o = r.isDisabled } = t, { validationBehavior: a, isRequired: u } = r, s = Li(), { visuallyHiddenProps: c } = Ji();
|
|
6888
|
-
|
|
6888
|
+
Tn(t.selectRef, e.selectedKey, e.setSelectedKey), Ur({
|
|
6889
6889
|
validationBehavior: a,
|
|
6890
6890
|
focus: () => n.current.focus()
|
|
6891
6891
|
}, e, t.selectRef);
|
|
@@ -7341,8 +7341,8 @@ Ms = {
|
|
|
7341
7341
|
selectAll: "Markera allt",
|
|
7342
7342
|
sortable: "sorterbar kolumn"
|
|
7343
7343
|
};
|
|
7344
|
-
var
|
|
7345
|
-
|
|
7344
|
+
var Is = {};
|
|
7345
|
+
Is = {
|
|
7346
7346
|
ascending: "artan sırada",
|
|
7347
7347
|
ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
|
|
7348
7348
|
columnSize: (t) => `${t.value} piksel`,
|
|
@@ -7353,8 +7353,8 @@ Fs = {
|
|
|
7353
7353
|
selectAll: "Tümünü Seç",
|
|
7354
7354
|
sortable: "Sıralanabilir sütun"
|
|
7355
7355
|
};
|
|
7356
|
-
var
|
|
7357
|
-
|
|
7356
|
+
var Fs = {};
|
|
7357
|
+
Fs = {
|
|
7358
7358
|
ascending: "висхідний",
|
|
7359
7359
|
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
7360
7360
|
columnSize: (t) => `${t.value} пікс.`,
|
|
@@ -7377,8 +7377,8 @@ _s = {
|
|
|
7377
7377
|
selectAll: "全选",
|
|
7378
7378
|
sortable: "可排序的列"
|
|
7379
7379
|
};
|
|
7380
|
-
var
|
|
7381
|
-
|
|
7380
|
+
var Rs = {};
|
|
7381
|
+
Rs = {
|
|
7382
7382
|
ascending: "遞增",
|
|
7383
7383
|
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
7384
7384
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -7421,12 +7421,12 @@ rl = {
|
|
|
7421
7421
|
"sl-SI": As,
|
|
7422
7422
|
"sr-SP": Ks,
|
|
7423
7423
|
"sv-SE": Ms,
|
|
7424
|
-
"tr-TR":
|
|
7425
|
-
"uk-UA":
|
|
7424
|
+
"tr-TR": Is,
|
|
7425
|
+
"uk-UA": Fs,
|
|
7426
7426
|
"zh-CN": _s,
|
|
7427
|
-
"zh-TW":
|
|
7427
|
+
"zh-TW": Rs
|
|
7428
7428
|
};
|
|
7429
|
-
class
|
|
7429
|
+
class Ip extends _a {
|
|
7430
7430
|
isCell(e) {
|
|
7431
7431
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
7432
7432
|
}
|
|
@@ -7434,7 +7434,7 @@ class Fp extends _a {
|
|
|
7434
7434
|
let n = this.collection.getItem(e);
|
|
7435
7435
|
if (n) {
|
|
7436
7436
|
if (n.type === "column") {
|
|
7437
|
-
let r =
|
|
7437
|
+
let r = Ne(ce(n, this.collection));
|
|
7438
7438
|
if (r) return r.key;
|
|
7439
7439
|
let l = this.getFirstKey();
|
|
7440
7440
|
if (l == null) return;
|
|
@@ -7504,18 +7504,18 @@ class Fp extends _a {
|
|
|
7504
7504
|
return null;
|
|
7505
7505
|
}
|
|
7506
7506
|
}
|
|
7507
|
-
let
|
|
7508
|
-
function
|
|
7509
|
-
return
|
|
7507
|
+
let Fp = !1;
|
|
7508
|
+
function Sn() {
|
|
7509
|
+
return Fp;
|
|
7510
7510
|
}
|
|
7511
7511
|
function _p(t) {
|
|
7512
7512
|
return t && t.__esModule ? t.default : t;
|
|
7513
7513
|
}
|
|
7514
|
-
function
|
|
7514
|
+
function Rp(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 } =
|
|
7518
|
+
}), { direction: u } = He(), s = e.selectionManager.disabledBehavior, c = H(() => r || new Ip({
|
|
7519
7519
|
collection: e.collection,
|
|
7520
7520
|
disabledKeys: e.disabledKeys,
|
|
7521
7521
|
disabledBehavior: s,
|
|
@@ -7541,7 +7541,7 @@ function Np(t, e, n) {
|
|
|
7541
7541
|
id: d,
|
|
7542
7542
|
keyboardDelegate: c
|
|
7543
7543
|
}, e, n);
|
|
7544
|
-
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length),
|
|
7544
|
+
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7545
7545
|
let { column: p, direction: m } = e.sortDescriptor || {}, $ = vt(_p(rl), "@react-aria/table"), g = H(() => {
|
|
7546
7546
|
var S;
|
|
7547
7547
|
let y = (S = e.collection.columns.find((k) => k.key === p)) === null || S === void 0 ? void 0 : S.textValue;
|
|
@@ -7552,9 +7552,9 @@ function Np(t, e, n) {
|
|
|
7552
7552
|
m,
|
|
7553
7553
|
p,
|
|
7554
7554
|
e.collection.columns
|
|
7555
|
-
]), E =
|
|
7555
|
+
]), E = kn(g);
|
|
7556
7556
|
return ki(() => {
|
|
7557
|
-
|
|
7557
|
+
xn(g, "assertive", 500);
|
|
7558
7558
|
}, [
|
|
7559
7559
|
g
|
|
7560
7560
|
]), {
|
|
@@ -7567,7 +7567,7 @@ function Np(t, e, n) {
|
|
|
7567
7567
|
})
|
|
7568
7568
|
};
|
|
7569
7569
|
}
|
|
7570
|
-
function
|
|
7570
|
+
function Np(t) {
|
|
7571
7571
|
return t && t.__esModule ? t.default : t;
|
|
7572
7572
|
}
|
|
7573
7573
|
function Lp(t, e, n) {
|
|
@@ -7575,17 +7575,17 @@ function Lp(t, e, n) {
|
|
|
7575
7575
|
let { node: i } = t, o = i.props.allowsSorting, { gridCellProps: a } = bu({
|
|
7576
7576
|
...t,
|
|
7577
7577
|
focusMode: "child"
|
|
7578
|
-
}, e, n), u = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: s } =
|
|
7578
|
+
}, e, n), u = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: s } = ze({
|
|
7579
7579
|
isDisabled: !o || u,
|
|
7580
7580
|
onPress() {
|
|
7581
7581
|
e.sort(i.key);
|
|
7582
7582
|
},
|
|
7583
7583
|
ref: n
|
|
7584
7584
|
}), { focusableProps: c } = Bt({}, n), d = null, f = ((r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.column) === i.key, p = (l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.direction;
|
|
7585
|
-
i.props.allowsSorting && !
|
|
7586
|
-
let m = vt(
|
|
7587
|
-
o && ($ = `${m.format("sortable")}`, f && p &&
|
|
7588
|
-
let g =
|
|
7585
|
+
i.props.allowsSorting && !vn() && (d = f ? p : "none");
|
|
7586
|
+
let m = vt(Np(rl), "@react-aria/table"), $;
|
|
7587
|
+
o && ($ = `${m.format("sortable")}`, f && p && vn() && ($ = `${$}, ${m.format(p)}`));
|
|
7588
|
+
let g = kn($), E = e.collection.size === 0;
|
|
7589
7589
|
return L(() => {
|
|
7590
7590
|
E && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
|
|
7591
7591
|
}, [
|
|
@@ -7622,10 +7622,10 @@ const ii = {
|
|
|
7622
7622
|
}
|
|
7623
7623
|
};
|
|
7624
7624
|
function Op(t, e, n) {
|
|
7625
|
-
let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = wp(t, e, n), { direction: a } =
|
|
7626
|
-
l && !(
|
|
7625
|
+
let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = wp(t, e, n), { direction: a } = He();
|
|
7626
|
+
l && !(Sn() && "expandedKeys" in e) ? i["aria-rowindex"] = r.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
|
|
7627
7627
|
let u = {};
|
|
7628
|
-
if (
|
|
7628
|
+
if (Sn() && "expandedKeys" in e) {
|
|
7629
7629
|
let m = e.keyMap.get(r.key);
|
|
7630
7630
|
if (m != null) {
|
|
7631
7631
|
var s, c, d;
|
|
@@ -7654,7 +7654,7 @@ function zp(t, e, n) {
|
|
|
7654
7654
|
let { node: r, isVirtualized: l } = t, i = {
|
|
7655
7655
|
role: "row"
|
|
7656
7656
|
};
|
|
7657
|
-
return l && !(
|
|
7657
|
+
return l && !(Sn() && "expandedKeys" in e) && (i["aria-rowindex"] = r.index + 1), {
|
|
7658
7658
|
rowProps: i
|
|
7659
7659
|
};
|
|
7660
7660
|
}
|
|
@@ -7700,7 +7700,7 @@ function Wp(t, e, n) {
|
|
|
7700
7700
|
e
|
|
7701
7701
|
]);
|
|
7702
7702
|
let c = () => {
|
|
7703
|
-
l !== "focus" && (
|
|
7703
|
+
l !== "focus" && (bn() === "pointer" ? o.current = !0 : o.current = !1, u());
|
|
7704
7704
|
}, d = () => {
|
|
7705
7705
|
l !== "focus" && (a.current = !1, o.current = !1, s());
|
|
7706
7706
|
}, f = () => {
|
|
@@ -8035,7 +8035,7 @@ class il {
|
|
|
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(
|
|
8038
|
+
l.type === "item" && e.push(r), l.hasChildNodes && (this.allowsCellSelection || l.type !== "item") && n(Ne(ce(l, this.collection)).key);
|
|
8039
8039
|
}
|
|
8040
8040
|
r = this.collection.getKeyAfter(r);
|
|
8041
8041
|
}
|
|
@@ -8277,7 +8277,7 @@ function ui(t) {
|
|
|
8277
8277
|
if (t != null)
|
|
8278
8278
|
return t.toString();
|
|
8279
8279
|
}
|
|
8280
|
-
function
|
|
8280
|
+
function Ns(t) {
|
|
8281
8281
|
let e = Rn(t), [n, r] = j(null), l = Yp({
|
|
8282
8282
|
...t,
|
|
8283
8283
|
onSelectionChange: (u) => {
|
|
@@ -8312,7 +8312,7 @@ function ev(t) {
|
|
|
8312
8312
|
if ((f == null ? void 0 : f.type) === "item") {
|
|
8313
8313
|
var c, d;
|
|
8314
8314
|
let p = ce(f, e);
|
|
8315
|
-
s === "last" ? u = (c = et(p)) === null || c === void 0 ? void 0 : c.key : u = (d =
|
|
8315
|
+
s === "last" ? u = (c = et(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);
|
|
@@ -8542,7 +8542,7 @@ class rv extends tv {
|
|
|
8542
8542
|
}
|
|
8543
8543
|
getFirstKey() {
|
|
8544
8544
|
var e;
|
|
8545
|
-
return (e =
|
|
8545
|
+
return (e = Ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key;
|
|
8546
8546
|
}
|
|
8547
8547
|
getLastKey() {
|
|
8548
8548
|
var e;
|
|
@@ -8700,7 +8700,7 @@ Os.getCollectionNode = function* (e, n) {
|
|
|
8700
8700
|
}), yield* i;
|
|
8701
8701
|
}
|
|
8702
8702
|
};
|
|
8703
|
-
let
|
|
8703
|
+
let Hh = Os;
|
|
8704
8704
|
function zs(t) {
|
|
8705
8705
|
return null;
|
|
8706
8706
|
}
|
|
@@ -8730,7 +8730,7 @@ zs.getCollectionNode = function* (e) {
|
|
|
8730
8730
|
}
|
|
8731
8731
|
};
|
|
8732
8732
|
};
|
|
8733
|
-
let
|
|
8733
|
+
let Wh = zs;
|
|
8734
8734
|
function js(t) {
|
|
8735
8735
|
return null;
|
|
8736
8736
|
}
|
|
@@ -8823,7 +8823,7 @@ Kr.getCollectionNode = function* (e, n) {
|
|
|
8823
8823
|
}
|
|
8824
8824
|
};
|
|
8825
8825
|
};
|
|
8826
|
-
let
|
|
8826
|
+
let Uh = Kr;
|
|
8827
8827
|
function Vs(t) {
|
|
8828
8828
|
return null;
|
|
8829
8829
|
}
|
|
@@ -8840,23 +8840,23 @@ Vs.getCollectionNode = function* (e) {
|
|
|
8840
8840
|
};
|
|
8841
8841
|
let av = Vs;
|
|
8842
8842
|
const uv = 1500, si = 500;
|
|
8843
|
-
let ot = {}, sv = 0,
|
|
8843
|
+
let ot = {}, sv = 0, Lt = !1, Re = null, at = null;
|
|
8844
8844
|
function Hs(t = {}) {
|
|
8845
8845
|
let { delay: e = uv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Rn(t), o = H(() => `${++sv}`, []), a = M(void 0), u = M(i), s = () => {
|
|
8846
8846
|
ot[o] = f;
|
|
8847
8847
|
}, c = () => {
|
|
8848
8848
|
for (let m in ot) m !== o && (ot[m](!0), delete ot[m]);
|
|
8849
8849
|
}, d = () => {
|
|
8850
|
-
clearTimeout(a.current), a.current = null, c(), s(),
|
|
8850
|
+
clearTimeout(a.current), a.current = null, c(), s(), Lt = !0, l(), Re && (clearTimeout(Re), Re = null), at && (clearTimeout(at), at = null);
|
|
8851
8851
|
}, f = (m) => {
|
|
8852
8852
|
m || n <= 0 ? (clearTimeout(a.current), a.current = null, u.current()) : a.current || (a.current = setTimeout(() => {
|
|
8853
8853
|
a.current = null, u.current();
|
|
8854
|
-
}, n)),
|
|
8855
|
-
delete ot[o], at = null,
|
|
8854
|
+
}, n)), Re && (clearTimeout(Re), Re = null), Lt && (at && clearTimeout(at), at = setTimeout(() => {
|
|
8855
|
+
delete ot[o], at = null, Lt = !1;
|
|
8856
8856
|
}, Math.max(si, n)));
|
|
8857
8857
|
}, p = () => {
|
|
8858
|
-
c(), s(), !r && !
|
|
8859
|
-
|
|
8858
|
+
c(), s(), !r && !Re && !Lt ? Re = setTimeout(() => {
|
|
8859
|
+
Re = null, Lt = !0, d();
|
|
8860
8860
|
}, e) : r || d();
|
|
8861
8861
|
};
|
|
8862
8862
|
return L(() => {
|
|
@@ -8958,13 +8958,13 @@ function fv(t = !0) {
|
|
|
8958
8958
|
}, [t]);
|
|
8959
8959
|
}
|
|
8960
8960
|
const pv = ({ children: t }) => {
|
|
8961
|
-
const { className: e, style: n } =
|
|
8961
|
+
const { className: e, style: n } = We(), r = (() => {
|
|
8962
8962
|
let l = document.getElementById("action-menus-root");
|
|
8963
8963
|
return l || (l = document.createElement("div"), l.id = "action-menus-root", document.body.appendChild(l)), l.className = e, Object.entries(n).forEach(([i, o]) => {
|
|
8964
8964
|
l.style.setProperty(i, o);
|
|
8965
8965
|
}), l;
|
|
8966
8966
|
})();
|
|
8967
|
-
return
|
|
8967
|
+
return Cn.createPortal(t, r);
|
|
8968
8968
|
}, Us = ({
|
|
8969
8969
|
id: t,
|
|
8970
8970
|
isOpen: e,
|
|
@@ -8980,28 +8980,28 @@ const pv = ({ children: t }) => {
|
|
|
8980
8980
|
"data-testid": d
|
|
8981
8981
|
}) => {
|
|
8982
8982
|
fv(e);
|
|
8983
|
-
const { className: f, theme: p } =
|
|
8983
|
+
const { className: f, theme: p } = We(), [m, $] = j(!1), [g, E] = j(0), S = M(null), y = M(null), k = M(window.location.pathname), C = a && a.length > 0, P = () => {
|
|
8984
8984
|
$(!0), E(0), setTimeout(() => {
|
|
8985
8985
|
c == null || c(), $(!1);
|
|
8986
8986
|
}, 300);
|
|
8987
8987
|
}, _ = C ? Ws({
|
|
8988
8988
|
items: a,
|
|
8989
|
-
children: a.map((
|
|
8989
|
+
children: a.map((F) => /* @__PURE__ */ bi(Zr, { ...F, key: F.key }, F.label)),
|
|
8990
8990
|
selectedKeys: new Set(r),
|
|
8991
|
-
onSelectionChange: (
|
|
8991
|
+
onSelectionChange: (F) => s == null ? void 0 : s(F),
|
|
8992
8992
|
selectionMode: n,
|
|
8993
8993
|
disabledKeys: l
|
|
8994
8994
|
}) : null, { menuProps: v } = C ? Ka(
|
|
8995
8995
|
{
|
|
8996
8996
|
autoFocus: !0,
|
|
8997
8997
|
shouldFocusWrap: !0,
|
|
8998
|
-
onAction: (
|
|
8999
|
-
var x,
|
|
9000
|
-
return (
|
|
8998
|
+
onAction: (F) => {
|
|
8999
|
+
var x, N;
|
|
9000
|
+
return (N = (x = a.find((D) => D.key === F)) == null ? void 0 : x.onAction) == null ? void 0 : N.call(x, F);
|
|
9001
9001
|
},
|
|
9002
9002
|
onClose: () => c == null ? void 0 : c(),
|
|
9003
9003
|
disabledKeys: l,
|
|
9004
|
-
onSelectionChange: (
|
|
9004
|
+
onSelectionChange: (F) => s == null ? void 0 : s(F),
|
|
9005
9005
|
selectionMode: n,
|
|
9006
9006
|
selectedKeys: r,
|
|
9007
9007
|
"aria-label": "Action Menu"
|
|
@@ -9019,11 +9019,11 @@ const pv = ({ children: t }) => {
|
|
|
9019
9019
|
L(() => {
|
|
9020
9020
|
e && S.current && E(S.current.scrollHeight);
|
|
9021
9021
|
}, [e, S]), L(() => {
|
|
9022
|
-
const
|
|
9022
|
+
const F = (x) => {
|
|
9023
9023
|
x.key === "Escape" && P();
|
|
9024
9024
|
};
|
|
9025
|
-
return document.addEventListener("keydown",
|
|
9026
|
-
document.removeEventListener("keydown",
|
|
9025
|
+
return document.addEventListener("keydown", F), () => {
|
|
9026
|
+
document.removeEventListener("keydown", F);
|
|
9027
9027
|
};
|
|
9028
9028
|
}, [m]), L(() => {
|
|
9029
9029
|
u && (k.current && k.current !== location.pathname && P(), k.current = location.pathname);
|
|
@@ -9062,7 +9062,7 @@ const pv = ({ children: t }) => {
|
|
|
9062
9062
|
className: U("proton-ActionMenu__card", f),
|
|
9063
9063
|
"data-testid": "ActionMenu-content",
|
|
9064
9064
|
style: { height: `${g}px` },
|
|
9065
|
-
children: /* @__PURE__ */ b.jsx("div", { ref: y, children: /* @__PURE__ */ b.jsx("div", { ...v, ref: S, children: T ? /* @__PURE__ */ b.jsxs(
|
|
9065
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: y, children: /* @__PURE__ */ b.jsx("div", { ...v, ref: S, children: T ? /* @__PURE__ */ b.jsxs(Kn, { autoFocus: !0, contain: !0, children: [
|
|
9066
9066
|
i && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof i == "function" ? i({ close: P }) : i }),
|
|
9067
9067
|
C && /* @__PURE__ */ b.jsx(
|
|
9068
9068
|
"div",
|
|
@@ -9071,14 +9071,14 @@ const pv = ({ children: t }) => {
|
|
|
9071
9071
|
"proton-ActionMenu__list",
|
|
9072
9072
|
n === "none" && "proton-ActionMenu__list--disabled"
|
|
9073
9073
|
),
|
|
9074
|
-
children: Array.from(_.collection).map((
|
|
9074
|
+
children: Array.from(_.collection).map((F) => /* @__PURE__ */ b.jsx(
|
|
9075
9075
|
vv,
|
|
9076
9076
|
{
|
|
9077
|
-
item:
|
|
9077
|
+
item: F,
|
|
9078
9078
|
state: _,
|
|
9079
|
-
to:
|
|
9079
|
+
to: F.props.to
|
|
9080
9080
|
},
|
|
9081
|
-
|
|
9081
|
+
F.key
|
|
9082
9082
|
))
|
|
9083
9083
|
}
|
|
9084
9084
|
),
|
|
@@ -9124,16 +9124,16 @@ const pv = ({ children: t }) => {
|
|
|
9124
9124
|
},
|
|
9125
9125
|
n.rendered
|
|
9126
9126
|
);
|
|
9127
|
-
}, Gs = ee(void 0),
|
|
9127
|
+
}, Gs = ee(void 0), We = () => {
|
|
9128
9128
|
const t = Y(Gs);
|
|
9129
9129
|
if (t === void 0)
|
|
9130
9130
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
9131
9131
|
return t;
|
|
9132
9132
|
}, hv = {
|
|
9133
|
-
[
|
|
9134
|
-
[
|
|
9135
|
-
[
|
|
9136
|
-
},
|
|
9133
|
+
[Be.DARK]: "proton-ui__theme--dark",
|
|
9134
|
+
[Be.CUSTOM_DARK]: "proton-ui__theme--custom-dark",
|
|
9135
|
+
[Be.LIGHT]: "proton-ui__theme--light"
|
|
9136
|
+
}, Gh = ({
|
|
9137
9137
|
theme: t,
|
|
9138
9138
|
children: e,
|
|
9139
9139
|
palette: n
|
|
@@ -9164,10 +9164,10 @@ const pv = ({ children: t }) => {
|
|
|
9164
9164
|
);
|
|
9165
9165
|
}, ur = "rgb(83, 82, 83)";
|
|
9166
9166
|
function mv(t) {
|
|
9167
|
-
const e = st(t.PRIMARY.
|
|
9167
|
+
const e = st(t.PRIMARY.PRIMARY_LIGHT, 0.6), n = st(t.PRIMARY.PRIMARY_LIGHT, 0.8);
|
|
9168
9168
|
return {
|
|
9169
|
-
[
|
|
9170
|
-
"--proton-control__background-color":
|
|
9169
|
+
[Be.DARK]: {
|
|
9170
|
+
"--proton-control__background-color": Gn(ur),
|
|
9171
9171
|
"--proton-control__text-color": ye.WHITE,
|
|
9172
9172
|
"--proton-control__border-color": ye.GRAY_DARK,
|
|
9173
9173
|
"--proton-control__shadow-color": ye.GRAY_DARK,
|
|
@@ -9175,38 +9175,38 @@ function mv(t) {
|
|
|
9175
9175
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9176
9176
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9177
9177
|
},
|
|
9178
|
-
[
|
|
9178
|
+
[Be.LIGHT]: {
|
|
9179
9179
|
"--proton-control__background-color": ye.WHITE,
|
|
9180
9180
|
"--proton-control__text-color": ye.GRAY_DARK,
|
|
9181
9181
|
"--proton-control__border-color": ye.GRAY_LIGHT,
|
|
9182
9182
|
"--proton-control__shadow-color": st(
|
|
9183
|
-
|
|
9183
|
+
Gn(ur),
|
|
9184
9184
|
0.9
|
|
9185
9185
|
),
|
|
9186
9186
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9187
9187
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9188
9188
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9189
9189
|
},
|
|
9190
|
-
[
|
|
9191
|
-
"--proton-control__background-color":
|
|
9190
|
+
[Be.CUSTOM_DARK]: {
|
|
9191
|
+
"--proton-control__background-color": Gn(ur),
|
|
9192
9192
|
"--proton-control__text-color": ye.WHITE,
|
|
9193
|
-
"--proton-control__border-color":
|
|
9194
|
-
"--proton-control__shadow-color":
|
|
9193
|
+
"--proton-control__border-color": n,
|
|
9194
|
+
"--proton-control__shadow-color": e,
|
|
9195
9195
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9196
9196
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9197
9197
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9198
9198
|
}
|
|
9199
9199
|
};
|
|
9200
9200
|
}
|
|
9201
|
-
const
|
|
9201
|
+
const Yh = {
|
|
9202
9202
|
primary: "primary",
|
|
9203
9203
|
secondary: "secondary",
|
|
9204
9204
|
transparent: "transparent",
|
|
9205
9205
|
success: "success",
|
|
9206
9206
|
warning: "warning",
|
|
9207
9207
|
danger: "danger"
|
|
9208
|
-
},
|
|
9209
|
-
const { className: r } =
|
|
9208
|
+
}, qh = ({ variant: t, children: e, ...n }) => {
|
|
9209
|
+
const { className: r } = We();
|
|
9210
9210
|
return /* @__PURE__ */ b.jsx(
|
|
9211
9211
|
"div",
|
|
9212
9212
|
{
|
|
@@ -9234,7 +9234,7 @@ function Ys({
|
|
|
9234
9234
|
const a = e ? "a" : "button", u = a !== "a" ? {} : {
|
|
9235
9235
|
target: "_blank",
|
|
9236
9236
|
href: e
|
|
9237
|
-
}, s = M(null), { buttonProps: c } =
|
|
9237
|
+
}, s = M(null), { buttonProps: c } = Fn(
|
|
9238
9238
|
{
|
|
9239
9239
|
onPress: n,
|
|
9240
9240
|
elementType: a,
|
|
@@ -9296,36 +9296,36 @@ const qs = {
|
|
|
9296
9296
|
icon: ye.GRAY_MEDIUM_LIGHT
|
|
9297
9297
|
},
|
|
9298
9298
|
success: {
|
|
9299
|
+
background: tn.SUPER_LIGHT,
|
|
9300
|
+
title: tn.DARK,
|
|
9301
|
+
content: tn.MEDIUM,
|
|
9302
|
+
icon: tn.LIGHT
|
|
9303
|
+
},
|
|
9304
|
+
warning: {
|
|
9299
9305
|
background: nn.SUPER_LIGHT,
|
|
9300
9306
|
title: nn.DARK,
|
|
9301
9307
|
content: nn.MEDIUM,
|
|
9302
9308
|
icon: nn.LIGHT
|
|
9303
9309
|
},
|
|
9304
|
-
|
|
9310
|
+
danger: {
|
|
9305
9311
|
background: rn.SUPER_LIGHT,
|
|
9306
9312
|
title: rn.DARK,
|
|
9307
9313
|
content: rn.MEDIUM,
|
|
9308
9314
|
icon: rn.LIGHT
|
|
9309
|
-
},
|
|
9310
|
-
danger: {
|
|
9311
|
-
background: ln.SUPER_LIGHT,
|
|
9312
|
-
title: ln.DARK,
|
|
9313
|
-
content: ln.MEDIUM,
|
|
9314
|
-
icon: ln.LIGHT
|
|
9315
9315
|
}
|
|
9316
9316
|
}, gv = {
|
|
9317
9317
|
default: "default",
|
|
9318
9318
|
success: "success",
|
|
9319
9319
|
warning: "warning",
|
|
9320
9320
|
danger: "danger"
|
|
9321
|
-
},
|
|
9321
|
+
}, Nn = ee(void 0), Ue = ({
|
|
9322
9322
|
variant: t = "default",
|
|
9323
9323
|
rounded: e = !0,
|
|
9324
9324
|
icon: n = !1,
|
|
9325
9325
|
compact: r = !0,
|
|
9326
9326
|
children: l,
|
|
9327
9327
|
...i
|
|
9328
|
-
}) => /* @__PURE__ */ b.jsx(
|
|
9328
|
+
}) => /* @__PURE__ */ b.jsx(Nn.Provider, { value: t, children: /* @__PURE__ */ b.jsx(
|
|
9329
9329
|
"div",
|
|
9330
9330
|
{
|
|
9331
9331
|
role: "status",
|
|
@@ -9351,7 +9351,7 @@ const qs = {
|
|
|
9351
9351
|
)
|
|
9352
9352
|
}
|
|
9353
9353
|
) }), $v = ({ children: t, ...e }) => {
|
|
9354
|
-
const n = Y(
|
|
9354
|
+
const n = Y(Nn);
|
|
9355
9355
|
if (!n) throw new Error("BannerTitle must be used within a Banner");
|
|
9356
9356
|
return /* @__PURE__ */ b.jsx(
|
|
9357
9357
|
"h3",
|
|
@@ -9366,7 +9366,7 @@ const qs = {
|
|
|
9366
9366
|
}
|
|
9367
9367
|
);
|
|
9368
9368
|
}, yv = ({ children: t, ...e }) => {
|
|
9369
|
-
const n = Y(
|
|
9369
|
+
const n = Y(Nn);
|
|
9370
9370
|
if (!n) throw new Error("BannerContent must be used within a Banner");
|
|
9371
9371
|
return /* @__PURE__ */ b.jsx(
|
|
9372
9372
|
"p",
|
|
@@ -9381,9 +9381,9 @@ const qs = {
|
|
|
9381
9381
|
}
|
|
9382
9382
|
);
|
|
9383
9383
|
}, xv = ({ children: t, icon: e, ...n }) => {
|
|
9384
|
-
const r = Y(
|
|
9384
|
+
const r = Y(Nn);
|
|
9385
9385
|
if (!r) throw new Error("BannerIcon must be used within a Banner");
|
|
9386
|
-
const i =
|
|
9386
|
+
const i = Ic(e) ? e : e === !0 ? qs[r] : t || null;
|
|
9387
9387
|
return i ? /* @__PURE__ */ b.jsx(
|
|
9388
9388
|
"span",
|
|
9389
9389
|
{
|
|
@@ -9440,10 +9440,9 @@ Cv.Option = function(e) {
|
|
|
9440
9440
|
}
|
|
9441
9441
|
);
|
|
9442
9442
|
};
|
|
9443
|
-
function
|
|
9443
|
+
function Xh({ title: t, children: e, ...n }) {
|
|
9444
9444
|
let r = M(null), { dialogProps: l, titleProps: i } = up(n, r);
|
|
9445
|
-
|
|
9446
|
-
return /* @__PURE__ */ b.jsxs("div", { ...l, ref: r, className: U("proton-Dialog", o), children: [
|
|
9445
|
+
return /* @__PURE__ */ b.jsxs("div", { ...l, ref: r, className: "proton-Dialog", children: [
|
|
9447
9446
|
t && /* @__PURE__ */ b.jsx("h3", { ...i, className: "proton-Dialog__header", children: t }),
|
|
9448
9447
|
e
|
|
9449
9448
|
] });
|
|
@@ -9457,7 +9456,7 @@ function Pv(t) {
|
|
|
9457
9456
|
};
|
|
9458
9457
|
return /* @__PURE__ */ b.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ b.jsx("use", { href: `${wv}#${t.id}` }) });
|
|
9459
9458
|
}
|
|
9460
|
-
function
|
|
9459
|
+
function Zh(t) {
|
|
9461
9460
|
const [e, n] = j("");
|
|
9462
9461
|
return L(() => {
|
|
9463
9462
|
}, []), e ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
@@ -9489,7 +9488,7 @@ const Dv = pt(
|
|
|
9489
9488
|
autoComplete: p,
|
|
9490
9489
|
"data-testid": m
|
|
9491
9490
|
}, $) => {
|
|
9492
|
-
const g = M(null), { className: E, palette: S, theme: y } =
|
|
9491
|
+
const g = M(null), { className: E, palette: S, theme: y } = We(), k = $ || g, { labelProps: C, inputProps: P, descriptionProps: _, errorMessageProps: v } = Qi(
|
|
9493
9492
|
{
|
|
9494
9493
|
label: a,
|
|
9495
9494
|
name: u,
|
|
@@ -9513,9 +9512,9 @@ const Dv = pt(
|
|
|
9513
9512
|
}), w = {
|
|
9514
9513
|
"--input-background": (() => {
|
|
9515
9514
|
switch (y) {
|
|
9516
|
-
case
|
|
9515
|
+
case Be.CUSTOM_DARK:
|
|
9517
9516
|
return st(S.PRIMARY.PRIMARY_LIGHTEST, 0.6);
|
|
9518
|
-
case
|
|
9517
|
+
case Be.DARK:
|
|
9519
9518
|
return st(ye.GRAY_MEDIUM, 0.5);
|
|
9520
9519
|
default:
|
|
9521
9520
|
return ye.WHITE;
|
|
@@ -9588,7 +9587,7 @@ const Dv = pt(
|
|
|
9588
9587
|
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ..._, className: "proton-Input__text", children: n }) : null
|
|
9589
9588
|
] });
|
|
9590
9589
|
}
|
|
9591
|
-
),
|
|
9590
|
+
), Jh = ({
|
|
9592
9591
|
name: t = "search",
|
|
9593
9592
|
placeholder: e = "Search...",
|
|
9594
9593
|
autoComplete: n,
|
|
@@ -9703,12 +9702,12 @@ const Dv = pt(
|
|
|
9703
9702
|
}
|
|
9704
9703
|
);
|
|
9705
9704
|
};
|
|
9706
|
-
function
|
|
9705
|
+
function Qh(t) {
|
|
9707
9706
|
const e = M(null), n = Rn(t || {}), { triggerProps: r, overlayProps: l } = lo(
|
|
9708
9707
|
{ type: "dialog" },
|
|
9709
9708
|
n,
|
|
9710
9709
|
e
|
|
9711
|
-
), { buttonProps: i } =
|
|
9710
|
+
), { buttonProps: i } = Fn(r, e);
|
|
9712
9711
|
return { buttonProps: i, overlayProps: l, buttonRef: e, state: n };
|
|
9713
9712
|
}
|
|
9714
9713
|
function ol({
|
|
@@ -9718,7 +9717,7 @@ function ol({
|
|
|
9718
9717
|
offset: r,
|
|
9719
9718
|
...l
|
|
9720
9719
|
}) {
|
|
9721
|
-
const i = M(null), { popoverRef: o = i } = l, { className: a, style: u } =
|
|
9720
|
+
const i = M(null), { popoverRef: o = i } = l, { className: a, style: u } = We();
|
|
9722
9721
|
let { popoverProps: s, underlayProps: c, arrowProps: d, placement: f } = Uf(
|
|
9723
9722
|
{
|
|
9724
9723
|
...l,
|
|
@@ -9916,7 +9915,7 @@ class Zs {
|
|
|
9916
9915
|
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this.ownerDocument = e;
|
|
9917
9916
|
}
|
|
9918
9917
|
}
|
|
9919
|
-
class
|
|
9918
|
+
class Gt extends Zs {
|
|
9920
9919
|
get index() {
|
|
9921
9920
|
return this._index;
|
|
9922
9921
|
}
|
|
@@ -9924,12 +9923,12 @@ class Yt extends Zs {
|
|
|
9924
9923
|
this._index = e, this.ownerDocument.markDirty(this);
|
|
9925
9924
|
}
|
|
9926
9925
|
get level() {
|
|
9927
|
-
return this.parentNode instanceof
|
|
9926
|
+
return this.parentNode instanceof Gt ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
|
|
9928
9927
|
}
|
|
9929
9928
|
updateNode() {
|
|
9930
9929
|
var e, n, r, l;
|
|
9931
9930
|
let i = this.ownerDocument.getMutableNode(this);
|
|
9932
|
-
i.index = this.index, i.level = this.level, i.parentKey = this.parentNode instanceof
|
|
9931
|
+
i.index = this.index, i.level = this.level, i.parentKey = this.parentNode instanceof Gt ? this.parentNode.node.key : null;
|
|
9933
9932
|
var o;
|
|
9934
9933
|
i.prevKey = (o = (e = this.previousSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && o !== void 0 ? o : null;
|
|
9935
9934
|
var a;
|
|
@@ -9967,7 +9966,7 @@ class Tv extends Zs {
|
|
|
9967
9966
|
return this.isMounted;
|
|
9968
9967
|
}
|
|
9969
9968
|
createElement(e) {
|
|
9970
|
-
return new
|
|
9969
|
+
return new Gt(e, this);
|
|
9971
9970
|
}
|
|
9972
9971
|
/**
|
|
9973
9972
|
* Lazily gets a mutable instance of a Node. If the node has already
|
|
@@ -10006,7 +10005,7 @@ class Tv extends Zs {
|
|
|
10006
10005
|
return this.transactionCount > 0 ? this.collection : (this.updateCollection(), this.collection);
|
|
10007
10006
|
}
|
|
10008
10007
|
updateCollection() {
|
|
10009
|
-
for (let i of this.dirtyNodes) i instanceof
|
|
10008
|
+
for (let i of this.dirtyNodes) i instanceof Gt && i.isConnected && i.updateNode();
|
|
10010
10009
|
if (this.dirtyNodes.clear(), this.mutatedNodes.size || this.collectionMutated) {
|
|
10011
10010
|
var e, n;
|
|
10012
10011
|
let i = this.getMutableCollection();
|
|
@@ -10042,7 +10041,7 @@ function Js(t) {
|
|
|
10042
10041
|
var a, u;
|
|
10043
10042
|
let f = (u = (a = d.props.id) !== null && a !== void 0 ? a : c.key) !== null && u !== void 0 ? u : c.id;
|
|
10044
10043
|
if (f == null) throw new Error("Could not determine key for item");
|
|
10045
|
-
r && (f = r + ":" + f), d =
|
|
10044
|
+
r && (f = r + ":" + f), d = Fc(d, l ? {
|
|
10046
10045
|
key: f,
|
|
10047
10046
|
id: f,
|
|
10048
10047
|
value: c
|
|
@@ -10088,7 +10087,7 @@ function Kv(t) {
|
|
|
10088
10087
|
let e = (n, r) => Y(Mr) ? null : t(n, r);
|
|
10089
10088
|
return e.displayName = t.displayName || t.name, pt(e);
|
|
10090
10089
|
}
|
|
10091
|
-
var
|
|
10090
|
+
var Ir = { exports: {} }, sr = {};
|
|
10092
10091
|
/**
|
|
10093
10092
|
* @license React
|
|
10094
10093
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -10144,7 +10143,7 @@ var cr = {};
|
|
|
10144
10143
|
* LICENSE file in the root directory of this source tree.
|
|
10145
10144
|
*/
|
|
10146
10145
|
var di;
|
|
10147
|
-
function
|
|
10146
|
+
function Iv() {
|
|
10148
10147
|
return di || (di = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10149
10148
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10150
10149
|
var t = B, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -10214,33 +10213,33 @@ function Fv() {
|
|
|
10214
10213
|
cr.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10215
10214
|
}()), cr;
|
|
10216
10215
|
}
|
|
10217
|
-
process.env.NODE_ENV === "production" ?
|
|
10218
|
-
var
|
|
10219
|
-
const Qs = /* @__PURE__ */ ee(!1),
|
|
10216
|
+
process.env.NODE_ENV === "production" ? Ir.exports = Mv() : Ir.exports = Iv();
|
|
10217
|
+
var Fv = Ir.exports;
|
|
10218
|
+
const Qs = /* @__PURE__ */ ee(!1), Yt = /* @__PURE__ */ ee(null);
|
|
10220
10219
|
function _v(t) {
|
|
10221
|
-
if (Y(
|
|
10220
|
+
if (Y(Yt))
|
|
10222
10221
|
return t.content;
|
|
10223
10222
|
let { collection: n, document: r } = Ov(t.createCollection);
|
|
10224
|
-
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(Av, null, /* @__PURE__ */ B.createElement(
|
|
10223
|
+
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(Av, null, /* @__PURE__ */ B.createElement(Yt.Provider, {
|
|
10225
10224
|
value: r
|
|
10226
|
-
}, t.content)), /* @__PURE__ */ B.createElement(
|
|
10225
|
+
}, t.content)), /* @__PURE__ */ B.createElement(Rv, {
|
|
10227
10226
|
render: t.children,
|
|
10228
10227
|
collection: n
|
|
10229
10228
|
}));
|
|
10230
10229
|
}
|
|
10231
|
-
function
|
|
10230
|
+
function Rv({ collection: t, render: e }) {
|
|
10232
10231
|
return e(t);
|
|
10233
10232
|
}
|
|
10234
|
-
function
|
|
10233
|
+
function Nv(t, e, n) {
|
|
10235
10234
|
let r = rt(), l = M(r);
|
|
10236
10235
|
l.current = r;
|
|
10237
10236
|
let i = X(() => l.current ? n() : e(), [
|
|
10238
10237
|
e,
|
|
10239
10238
|
n
|
|
10240
10239
|
]);
|
|
10241
|
-
return
|
|
10240
|
+
return Fv.useSyncExternalStore(t, i);
|
|
10242
10241
|
}
|
|
10243
|
-
const Lv = typeof B.useSyncExternalStore == "function" ? B.useSyncExternalStore :
|
|
10242
|
+
const Lv = typeof B.useSyncExternalStore == "function" ? B.useSyncExternalStore : Nv;
|
|
10244
10243
|
function Ov(t) {
|
|
10245
10244
|
let [e] = j(() => new Tv((t == null ? void 0 : t()) || new kv())), n = X((o) => e.subscribe(o), [
|
|
10246
10245
|
e
|
|
@@ -10261,7 +10260,7 @@ function Ov(t) {
|
|
|
10261
10260
|
document: e
|
|
10262
10261
|
};
|
|
10263
10262
|
}
|
|
10264
|
-
const
|
|
10263
|
+
const Fr = /* @__PURE__ */ ee(null);
|
|
10265
10264
|
function zv(t, e, n, r, l, i) {
|
|
10266
10265
|
let o = X((u) => {
|
|
10267
10266
|
u == null || u.setProps(e, n, r, i);
|
|
@@ -10270,10 +10269,10 @@ function zv(t, e, n, r, l, i) {
|
|
|
10270
10269
|
n,
|
|
10271
10270
|
r,
|
|
10272
10271
|
i
|
|
10273
|
-
]), a = Y(
|
|
10272
|
+
]), a = Y(Fr);
|
|
10274
10273
|
if (a) {
|
|
10275
10274
|
let u = a.ownerDocument.nodesByProps.get(e);
|
|
10276
|
-
return u || (u = a.ownerDocument.createElement(t), u.setProps(e, n, r, i), a.appendChild(u), a.ownerDocument.updateCollection(), a.ownerDocument.nodesByProps.set(e, u)), l ? /* @__PURE__ */ B.createElement(
|
|
10275
|
+
return u || (u = a.ownerDocument.createElement(t), u.setProps(e, n, r, i), a.appendChild(u), a.ownerDocument.updateCollection(), a.ownerDocument.nodesByProps.set(e, u)), l ? /* @__PURE__ */ B.createElement(Fr.Provider, {
|
|
10277
10276
|
value: u
|
|
10278
10277
|
}, l) : null;
|
|
10279
10278
|
}
|
|
@@ -10306,7 +10305,7 @@ function Hv(t) {
|
|
|
10306
10305
|
idScope: r,
|
|
10307
10306
|
dependencies: n
|
|
10308
10307
|
});
|
|
10309
|
-
return Y(
|
|
10308
|
+
return Y(Yt) && (l = /* @__PURE__ */ B.createElement(Wv, null, l)), e = H(() => ({
|
|
10310
10309
|
dependencies: n,
|
|
10311
10310
|
idScope: r
|
|
10312
10311
|
}), [
|
|
@@ -10317,14 +10316,14 @@ function Hv(t) {
|
|
|
10317
10316
|
}, l);
|
|
10318
10317
|
}
|
|
10319
10318
|
function Wv({ children: t }) {
|
|
10320
|
-
let e = Y(
|
|
10319
|
+
let e = Y(Yt), n = H(() => /* @__PURE__ */ B.createElement(Yt.Provider, {
|
|
10321
10320
|
value: null
|
|
10322
10321
|
}, /* @__PURE__ */ B.createElement(Qs.Provider, {
|
|
10323
10322
|
value: !0
|
|
10324
10323
|
}, t)), [
|
|
10325
10324
|
t
|
|
10326
10325
|
]);
|
|
10327
|
-
return rt() ? /* @__PURE__ */ B.createElement(
|
|
10326
|
+
return rt() ? /* @__PURE__ */ B.createElement(Fr.Provider, {
|
|
10328
10327
|
value: e
|
|
10329
10328
|
}, n) : /* @__PURE__ */ gi(n, e);
|
|
10330
10329
|
}
|
|
@@ -10368,7 +10367,7 @@ function Yv(t) {
|
|
|
10368
10367
|
]);
|
|
10369
10368
|
}
|
|
10370
10369
|
const vi = Symbol("default");
|
|
10371
|
-
function
|
|
10370
|
+
function Ln({ values: t, children: e }) {
|
|
10372
10371
|
for (let [n, r] of t)
|
|
10373
10372
|
e = /* @__PURE__ */ B.createElement(n.Provider, {
|
|
10374
10373
|
value: r
|
|
@@ -10421,8 +10420,8 @@ function tc(t, e) {
|
|
|
10421
10420
|
}
|
|
10422
10421
|
return n;
|
|
10423
10422
|
}
|
|
10424
|
-
function
|
|
10425
|
-
let r = tc(n, t.slot) || {}, { ref: l, ...i } = r, o =
|
|
10423
|
+
function Jt(t, e, n) {
|
|
10424
|
+
let r = tc(n, t.slot) || {}, { ref: l, ...i } = r, o = Dn(H(() => Qc(e, l), [
|
|
10426
10425
|
e,
|
|
10427
10426
|
l
|
|
10428
10427
|
])), a = W(i, t);
|
|
@@ -10474,7 +10473,7 @@ function nc(t, e, n) {
|
|
|
10474
10473
|
let l = window.getComputedStyle(t.current);
|
|
10475
10474
|
if (l.animationName && l.animationName !== "none" && l.animation !== r.current) {
|
|
10476
10475
|
let i = (a) => {
|
|
10477
|
-
a.target === t.current && (o.removeEventListener("animationend", i),
|
|
10476
|
+
a.target === t.current && (o.removeEventListener("animationend", i), Cn.flushSync(() => {
|
|
10478
10477
|
n();
|
|
10479
10478
|
}));
|
|
10480
10479
|
}, o = t.current;
|
|
@@ -10498,10 +10497,10 @@ const Jv = /* @__PURE__ */ ee(null), Qv = /* @__PURE__ */ new Set([
|
|
|
10498
10497
|
"formTarget",
|
|
10499
10498
|
"name",
|
|
10500
10499
|
"value"
|
|
10501
|
-
]),
|
|
10502
|
-
function
|
|
10503
|
-
[t, e] =
|
|
10504
|
-
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } =
|
|
10500
|
+
]), eh = /* @__PURE__ */ ee({});
|
|
10501
|
+
function th(t, e) {
|
|
10502
|
+
[t, e] = Jt(t, e, eh), t = nh(t);
|
|
10503
|
+
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } = Fn(t, e), { focusProps: o, isFocused: a, isFocusVisible: u } = Zt(t), { hoverProps: s, isHovered: c } = Tt({
|
|
10505
10504
|
...t,
|
|
10506
10505
|
isDisabled: t.isDisabled || r
|
|
10507
10506
|
}), d = {
|
|
@@ -10522,7 +10521,7 @@ function t4(t, e) {
|
|
|
10522
10521
|
let E = {
|
|
10523
10522
|
"aria-labelledby": $ || p
|
|
10524
10523
|
};
|
|
10525
|
-
(!g.current && a && r || g.current && a && !r) &&
|
|
10524
|
+
(!g.current && a && r || g.current && a && !r) && xn(E, "assertive"), g.current = r;
|
|
10526
10525
|
}, [
|
|
10527
10526
|
r,
|
|
10528
10527
|
a,
|
|
@@ -10551,14 +10550,14 @@ function t4(t, e) {
|
|
|
10551
10550
|
}
|
|
10552
10551
|
}, f.children));
|
|
10553
10552
|
}
|
|
10554
|
-
function
|
|
10553
|
+
function nh(t) {
|
|
10555
10554
|
return t.isPending && (t.onPress = void 0, t.onPressStart = void 0, t.onPressEnd = void 0, t.onPressChange = void 0, t.onPressUp = void 0, t.onKeyDown = void 0, t.onKeyUp = void 0, t.onClick = void 0, t.href = void 0), t;
|
|
10556
10555
|
}
|
|
10557
|
-
const rc = /* @__PURE__ */ Kv(
|
|
10556
|
+
const rc = /* @__PURE__ */ Kv(th), rh = /* @__PURE__ */ ee({}), lh = /* @__PURE__ */ ee({}), ih = /* @__PURE__ */ ee({}), lc = /* @__PURE__ */ ee({
|
|
10558
10557
|
placement: "bottom"
|
|
10559
10558
|
});
|
|
10560
|
-
function
|
|
10561
|
-
[t, e] =
|
|
10559
|
+
function oh(t, e) {
|
|
10560
|
+
[t, e] = Jt(t, e, lc);
|
|
10562
10561
|
let n = t.placement, r = {
|
|
10563
10562
|
position: "absolute",
|
|
10564
10563
|
[n]: "100%",
|
|
@@ -10581,8 +10580,8 @@ function o4(t, e) {
|
|
|
10581
10580
|
"data-placement": n
|
|
10582
10581
|
});
|
|
10583
10582
|
}
|
|
10584
|
-
const
|
|
10585
|
-
function
|
|
10583
|
+
const ah = /* @__PURE__ */ pt(oh), _r = /* @__PURE__ */ ee(null), uh = /* @__PURE__ */ ee(null), sh = /* @__PURE__ */ ee({}), ic = /* @__PURE__ */ ee(null), ul = /* @__PURE__ */ ee(null), oc = /* @__PURE__ */ ee(null);
|
|
10584
|
+
function ch(t) {
|
|
10586
10585
|
let e = qp(t), n = M(null), { menuTriggerProps: r, menuProps: l } = Ba({
|
|
10587
10586
|
...t,
|
|
10588
10587
|
type: "menu"
|
|
@@ -10596,7 +10595,7 @@ function c4(t) {
|
|
|
10596
10595
|
onResize: a
|
|
10597
10596
|
});
|
|
10598
10597
|
let u = M(null);
|
|
10599
|
-
return /* @__PURE__ */ B.createElement(
|
|
10598
|
+
return /* @__PURE__ */ B.createElement(Ln, {
|
|
10600
10599
|
values: [
|
|
10601
10600
|
[
|
|
10602
10601
|
ic,
|
|
@@ -10606,7 +10605,7 @@ function c4(t) {
|
|
|
10606
10605
|
}
|
|
10607
10606
|
],
|
|
10608
10607
|
[
|
|
10609
|
-
|
|
10608
|
+
uh,
|
|
10610
10609
|
e
|
|
10611
10610
|
],
|
|
10612
10611
|
[
|
|
@@ -10632,17 +10631,17 @@ function c4(t) {
|
|
|
10632
10631
|
isPressed: e.isOpen
|
|
10633
10632
|
}, t.children));
|
|
10634
10633
|
}
|
|
10635
|
-
const
|
|
10636
|
-
function
|
|
10637
|
-
return [t, e] =
|
|
10634
|
+
const dh = /* @__PURE__ */ ee(null);
|
|
10635
|
+
function fh(t, e) {
|
|
10636
|
+
return [t, e] = Jt(t, e, ic), /* @__PURE__ */ B.createElement(_v, {
|
|
10638
10637
|
content: /* @__PURE__ */ B.createElement(Hv, t)
|
|
10639
|
-
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(
|
|
10638
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(ph, {
|
|
10640
10639
|
props: t,
|
|
10641
10640
|
collection: n,
|
|
10642
10641
|
menuRef: e
|
|
10643
10642
|
}));
|
|
10644
10643
|
}
|
|
10645
|
-
function
|
|
10644
|
+
function ph({ props: t, collection: e, menuRef: n }) {
|
|
10646
10645
|
let r = Ws({
|
|
10647
10646
|
...t,
|
|
10648
10647
|
collection: e,
|
|
@@ -10679,21 +10678,21 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10679
10678
|
style: t.style,
|
|
10680
10679
|
values: {}
|
|
10681
10680
|
});
|
|
10682
|
-
return /* @__PURE__ */ B.createElement(
|
|
10681
|
+
return /* @__PURE__ */ B.createElement(Kn, null, /* @__PURE__ */ B.createElement("div", {
|
|
10683
10682
|
...ve(t),
|
|
10684
10683
|
...u,
|
|
10685
10684
|
...$,
|
|
10686
10685
|
ref: n,
|
|
10687
10686
|
slot: t.slot || void 0,
|
|
10688
10687
|
onScroll: t.onScroll
|
|
10689
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10688
|
+
}, /* @__PURE__ */ B.createElement(Ln, {
|
|
10690
10689
|
values: [
|
|
10691
10690
|
[
|
|
10692
10691
|
ul,
|
|
10693
10692
|
r
|
|
10694
10693
|
],
|
|
10695
10694
|
[
|
|
10696
|
-
|
|
10695
|
+
ih,
|
|
10697
10696
|
{
|
|
10698
10697
|
elementType: "div"
|
|
10699
10698
|
}
|
|
@@ -10707,17 +10706,17 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10707
10706
|
[
|
|
10708
10707
|
Uv,
|
|
10709
10708
|
{
|
|
10710
|
-
render:
|
|
10709
|
+
render: hh
|
|
10711
10710
|
}
|
|
10712
10711
|
],
|
|
10713
10712
|
[
|
|
10714
|
-
|
|
10713
|
+
dh,
|
|
10715
10714
|
{
|
|
10716
10715
|
parentMenuRef: n
|
|
10717
10716
|
}
|
|
10718
10717
|
],
|
|
10719
10718
|
[
|
|
10720
|
-
|
|
10719
|
+
Rr,
|
|
10721
10720
|
null
|
|
10722
10721
|
]
|
|
10723
10722
|
]
|
|
@@ -10735,8 +10734,8 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10735
10734
|
}
|
|
10736
10735
|
}));
|
|
10737
10736
|
}
|
|
10738
|
-
const
|
|
10739
|
-
function
|
|
10737
|
+
const vh = /* @__PURE__ */ pt(fh);
|
|
10738
|
+
function hh(t, e, n) {
|
|
10740
10739
|
var r, l;
|
|
10741
10740
|
let i = Y(ul), { CollectionBranch: o } = Y(ec), [a, u] = qv();
|
|
10742
10741
|
var s;
|
|
@@ -10754,7 +10753,7 @@ function h4(t, e, n) {
|
|
|
10754
10753
|
...d,
|
|
10755
10754
|
...f,
|
|
10756
10755
|
ref: e
|
|
10757
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10756
|
+
}, /* @__PURE__ */ B.createElement(lh.Provider, {
|
|
10758
10757
|
value: {
|
|
10759
10758
|
...c,
|
|
10760
10759
|
ref: a
|
|
@@ -10764,14 +10763,14 @@ function h4(t, e, n) {
|
|
|
10764
10763
|
parent: n
|
|
10765
10764
|
})));
|
|
10766
10765
|
}
|
|
10767
|
-
const
|
|
10766
|
+
const Rr = /* @__PURE__ */ ee(null), mh = /* @__PURE__ */ jv("item", function(e, n, r) {
|
|
10768
10767
|
var l;
|
|
10769
|
-
[e, n] =
|
|
10770
|
-
let i = (l = tc(
|
|
10768
|
+
[e, n] = Jt(e, n, Rr);
|
|
10769
|
+
let i = (l = tc(Rr)) === null || l === void 0 ? void 0 : l.id, o = Y(ul), a = Dn(n), { menuItemProps: u, labelProps: s, descriptionProps: c, keyboardShortcutProps: d, ...f } = Ma({
|
|
10771
10770
|
...e,
|
|
10772
10771
|
id: i,
|
|
10773
10772
|
key: r.key
|
|
10774
|
-
}, o, a), { isFocusVisible: p, focusProps: m } =
|
|
10773
|
+
}, o, a), { isFocusVisible: p, focusProps: m } = Zt(), { hoverProps: $, isHovered: g } = Tt({
|
|
10775
10774
|
isDisabled: f.isDisabled
|
|
10776
10775
|
}), E = At({
|
|
10777
10776
|
...e,
|
|
@@ -10801,10 +10800,10 @@ const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e,
|
|
|
10801
10800
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
10802
10801
|
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
10803
10802
|
"data-open": e["aria-expanded"] === "true" || void 0
|
|
10804
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10803
|
+
}, /* @__PURE__ */ B.createElement(Ln, {
|
|
10805
10804
|
values: [
|
|
10806
10805
|
[
|
|
10807
|
-
|
|
10806
|
+
rh,
|
|
10808
10807
|
{
|
|
10809
10808
|
slots: {
|
|
10810
10809
|
label: s,
|
|
@@ -10813,15 +10812,15 @@ const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e,
|
|
|
10813
10812
|
}
|
|
10814
10813
|
],
|
|
10815
10814
|
[
|
|
10816
|
-
|
|
10815
|
+
sh,
|
|
10817
10816
|
d
|
|
10818
10817
|
]
|
|
10819
10818
|
]
|
|
10820
10819
|
}, E.children));
|
|
10821
10820
|
}), sl = /* @__PURE__ */ ee(null), ac = /* @__PURE__ */ ee(null);
|
|
10822
|
-
function
|
|
10821
|
+
function bh(t) {
|
|
10823
10822
|
let e = Hs(t), n = M(null), { triggerProps: r, tooltipProps: l } = Wp(t, e, n);
|
|
10824
|
-
return /* @__PURE__ */ B.createElement(
|
|
10823
|
+
return /* @__PURE__ */ B.createElement(Ln, {
|
|
10825
10824
|
values: [
|
|
10826
10825
|
[
|
|
10827
10826
|
sl,
|
|
@@ -10840,19 +10839,19 @@ function b4(t) {
|
|
|
10840
10839
|
ref: n
|
|
10841
10840
|
}, t.children));
|
|
10842
10841
|
}
|
|
10843
|
-
function
|
|
10844
|
-
[e, n] =
|
|
10842
|
+
function gh({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
10843
|
+
[e, n] = Jt(e, n, ac);
|
|
10845
10844
|
let r = Y(sl), l = Hs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o = Zv(n, i.isOpen) || e.isExiting || !1;
|
|
10846
10845
|
return !i.isOpen && !o ? null : /* @__PURE__ */ B.createElement(jf, {
|
|
10847
10846
|
portalContainer: t
|
|
10848
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10847
|
+
}, /* @__PURE__ */ B.createElement(yh, {
|
|
10849
10848
|
...e,
|
|
10850
10849
|
tooltipRef: n,
|
|
10851
10850
|
isExiting: o
|
|
10852
10851
|
}));
|
|
10853
10852
|
}
|
|
10854
|
-
const $
|
|
10855
|
-
function
|
|
10853
|
+
const $h = /* @__PURE__ */ pt(gh);
|
|
10854
|
+
function yh(t) {
|
|
10856
10855
|
let e = Y(sl), n = M(null), [r, l] = j(0);
|
|
10857
10856
|
Q(() => {
|
|
10858
10857
|
n.current && e.isOpen && l(n.current.getBoundingClientRect().width);
|
|
@@ -10913,14 +10912,14 @@ function uc(t, e = "down") {
|
|
|
10913
10912
|
return i.addEventListener("change", o), () => i.removeEventListener("change", o);
|
|
10914
10913
|
}, [n]), r;
|
|
10915
10914
|
}
|
|
10916
|
-
const
|
|
10915
|
+
const xh = ({ size: t }) => /* @__PURE__ */ b.jsx("svg", { viewBox: "0 0 24 24", width: t, height: t, children: /* @__PURE__ */ b.jsx(
|
|
10917
10916
|
"path",
|
|
10918
10917
|
{
|
|
10919
10918
|
fill: "currentColor",
|
|
10920
10919
|
d: "M4 14c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
|
|
10921
10920
|
}
|
|
10922
10921
|
) });
|
|
10923
|
-
function
|
|
10922
|
+
function e4({
|
|
10924
10923
|
renderTrigger: t,
|
|
10925
10924
|
menuId: e,
|
|
10926
10925
|
size: n = 24,
|
|
@@ -10930,7 +10929,7 @@ function eh({
|
|
|
10930
10929
|
testId: o,
|
|
10931
10930
|
menuTestId: a
|
|
10932
10931
|
}) {
|
|
10933
|
-
const { className: u } =
|
|
10932
|
+
const { className: u } = We(), s = uc(yi.SMALL), [c, d] = j(!1), f = M(null), p = {
|
|
10934
10933
|
disabled: l,
|
|
10935
10934
|
"data-testid": o,
|
|
10936
10935
|
"aria-label": "Menu"
|
|
@@ -10942,7 +10941,7 @@ function eh({
|
|
|
10942
10941
|
onPress: () => d((g) => !g),
|
|
10943
10942
|
isDisabled: l,
|
|
10944
10943
|
className: `proton-ResponsiveMenuTrigger__button ${u}`,
|
|
10945
|
-
children: /* @__PURE__ */ b.jsx(
|
|
10944
|
+
children: /* @__PURE__ */ b.jsx(xh, { size: n })
|
|
10946
10945
|
}
|
|
10947
10946
|
), $ = t ? t(
|
|
10948
10947
|
{ ...p, onClick: () => d((g) => !g) },
|
|
@@ -10965,7 +10964,7 @@ function eh({
|
|
|
10965
10964
|
"data-testid": a
|
|
10966
10965
|
}
|
|
10967
10966
|
)
|
|
10968
|
-
] }) : /* @__PURE__ */ b.jsxs(
|
|
10967
|
+
] }) : /* @__PURE__ */ b.jsxs(ch, { children: [
|
|
10969
10968
|
$,
|
|
10970
10969
|
c && /* @__PURE__ */ b.jsx(
|
|
10971
10970
|
ol,
|
|
@@ -10980,14 +10979,14 @@ function eh({
|
|
|
10980
10979
|
triggerRef: f,
|
|
10981
10980
|
arrow: !1,
|
|
10982
10981
|
children: /* @__PURE__ */ b.jsx(
|
|
10983
|
-
|
|
10982
|
+
vh,
|
|
10984
10983
|
{
|
|
10985
10984
|
className: "proton-ListBox proton-ResponsiveMenuTrigger__menu",
|
|
10986
10985
|
id: e,
|
|
10987
10986
|
autoFocus: !0,
|
|
10988
10987
|
"data-testid": a,
|
|
10989
10988
|
children: r.map((g) => /* @__PURE__ */ b.jsx(
|
|
10990
|
-
|
|
10989
|
+
mh,
|
|
10991
10990
|
{
|
|
10992
10991
|
href: g.to,
|
|
10993
10992
|
target: "_blank",
|
|
@@ -11009,20 +11008,20 @@ function eh({
|
|
|
11009
11008
|
)
|
|
11010
11009
|
] });
|
|
11011
11010
|
}
|
|
11012
|
-
const
|
|
11011
|
+
const Nr = (t) => {
|
|
11013
11012
|
let e = M(null), { state: n } = t, { listBoxProps: r } = tp(t, n, e);
|
|
11014
|
-
return /* @__PURE__ */ b.jsx(
|
|
11013
|
+
return /* @__PURE__ */ b.jsx(Kn, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ b.jsx(
|
|
11015
11014
|
"ul",
|
|
11016
11015
|
{
|
|
11017
11016
|
...r,
|
|
11018
11017
|
ref: e,
|
|
11019
11018
|
"data-testid": "listbox",
|
|
11020
11019
|
className: "proton-ListBox",
|
|
11021
|
-
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(
|
|
11020
|
+
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(Eh, { item: l, state: n }, l.key))
|
|
11022
11021
|
}
|
|
11023
11022
|
) });
|
|
11024
11023
|
};
|
|
11025
|
-
function
|
|
11024
|
+
function Eh({ item: t, state: e }) {
|
|
11026
11025
|
let n = M(null), { optionProps: r, isSelected: l, isFocused: i, isDisabled: o } = ip(
|
|
11027
11026
|
{ key: t.key },
|
|
11028
11027
|
e,
|
|
@@ -11045,7 +11044,7 @@ function E4({ item: t, state: e }) {
|
|
|
11045
11044
|
}
|
|
11046
11045
|
const sc = pt(
|
|
11047
11046
|
(t, e) => {
|
|
11048
|
-
let { buttonProps: n } =
|
|
11047
|
+
let { buttonProps: n } = Fn(
|
|
11049
11048
|
{
|
|
11050
11049
|
...t,
|
|
11051
11050
|
isDisabled: t.disabled
|
|
@@ -11068,7 +11067,7 @@ const sc = pt(
|
|
|
11068
11067
|
);
|
|
11069
11068
|
}
|
|
11070
11069
|
);
|
|
11071
|
-
function
|
|
11070
|
+
function Sh({
|
|
11072
11071
|
label: t,
|
|
11073
11072
|
name: e,
|
|
11074
11073
|
isDisabled: n,
|
|
@@ -11093,7 +11092,7 @@ function S4({
|
|
|
11093
11092
|
onOpenChange: (y) => {
|
|
11094
11093
|
y ? o == null || o() : a == null || a();
|
|
11095
11094
|
}
|
|
11096
|
-
}, f =
|
|
11095
|
+
}, f = Ns(d), p = M(null), m = M(null), { labelProps: $, triggerProps: g, valueProps: E, menuProps: S } = ts(
|
|
11097
11096
|
{ ...d, label: t || e },
|
|
11098
11097
|
f,
|
|
11099
11098
|
p
|
|
@@ -11171,18 +11170,18 @@ function S4({
|
|
|
11171
11170
|
popoverRef: m,
|
|
11172
11171
|
placement: "bottom start",
|
|
11173
11172
|
"data-testid": "select-popover",
|
|
11174
|
-
children: /* @__PURE__ */ b.jsx(
|
|
11173
|
+
children: /* @__PURE__ */ b.jsx(Nr, { ...S, state: f })
|
|
11175
11174
|
}
|
|
11176
11175
|
) })
|
|
11177
11176
|
]
|
|
11178
11177
|
}
|
|
11179
11178
|
);
|
|
11180
11179
|
}
|
|
11181
|
-
const
|
|
11182
|
-
Menu:
|
|
11180
|
+
const t4 = {
|
|
11181
|
+
Menu: Sh,
|
|
11183
11182
|
Option: Zr
|
|
11184
11183
|
};
|
|
11185
|
-
function
|
|
11184
|
+
function Ch({
|
|
11186
11185
|
label: t,
|
|
11187
11186
|
name: e,
|
|
11188
11187
|
isDisabled: n,
|
|
@@ -11207,7 +11206,7 @@ function C4({
|
|
|
11207
11206
|
items: u,
|
|
11208
11207
|
"data-testid": s,
|
|
11209
11208
|
children: c
|
|
11210
|
-
}, f =
|
|
11209
|
+
}, f = Ns(d), p = uc(yi.MEDIUM), m = M(null), $ = M(null), { labelProps: g, triggerProps: E, valueProps: S, menuProps: y } = ts(
|
|
11211
11210
|
{ ...d, label: t || e },
|
|
11212
11211
|
f,
|
|
11213
11212
|
m
|
|
@@ -11277,7 +11276,7 @@ function C4({
|
|
|
11277
11276
|
]
|
|
11278
11277
|
}
|
|
11279
11278
|
),
|
|
11280
|
-
f.isOpen && /* @__PURE__ */ b.jsx(b.Fragment, { children: p ? /* @__PURE__ */ b.jsx(Us, { isOpen: f.isOpen, onClose: () => f.close(), children: /* @__PURE__ */ b.jsx(
|
|
11279
|
+
f.isOpen && /* @__PURE__ */ b.jsx(b.Fragment, { children: p ? /* @__PURE__ */ b.jsx(Us, { isOpen: f.isOpen, onClose: () => f.close(), children: /* @__PURE__ */ b.jsx(Nr, { ...y, state: f }) }) : /* @__PURE__ */ b.jsx("div", { className: "proton-Select__popover", children: /* @__PURE__ */ b.jsx(
|
|
11281
11280
|
ol,
|
|
11282
11281
|
{
|
|
11283
11282
|
state: f,
|
|
@@ -11285,18 +11284,18 @@ function C4({
|
|
|
11285
11284
|
popoverRef: $,
|
|
11286
11285
|
placement: "bottom start",
|
|
11287
11286
|
"data-testid": "select-popover",
|
|
11288
|
-
children: /* @__PURE__ */ b.jsx(
|
|
11287
|
+
children: /* @__PURE__ */ b.jsx(Nr, { ...y, state: f })
|
|
11289
11288
|
}
|
|
11290
11289
|
) }) })
|
|
11291
11290
|
]
|
|
11292
11291
|
}
|
|
11293
11292
|
);
|
|
11294
11293
|
}
|
|
11295
|
-
const
|
|
11296
|
-
Menu:
|
|
11294
|
+
const n4 = {
|
|
11295
|
+
Menu: Ch,
|
|
11297
11296
|
Option: Zr
|
|
11298
11297
|
};
|
|
11299
|
-
function
|
|
11298
|
+
function r4(t) {
|
|
11300
11299
|
let e = {
|
|
11301
11300
|
...t,
|
|
11302
11301
|
isSelected: t.isOn,
|
|
@@ -11325,11 +11324,11 @@ function rh(t) {
|
|
|
11325
11324
|
}
|
|
11326
11325
|
);
|
|
11327
11326
|
}
|
|
11328
|
-
function
|
|
11327
|
+
function wh({ item: t, state: e, children: n }) {
|
|
11329
11328
|
let r = M(), { rowProps: l } = zp({ node: t }, e);
|
|
11330
11329
|
return /* @__PURE__ */ b.jsx("tr", { className: U("proton-Table__headerRow"), ...l, ref: r, children: n });
|
|
11331
11330
|
}
|
|
11332
|
-
function
|
|
11331
|
+
function Ph({ column: t, state: e }) {
|
|
11333
11332
|
var u, s;
|
|
11334
11333
|
let n = M(), { columnHeaderProps: r } = Lp(
|
|
11335
11334
|
{ node: t },
|
|
@@ -11337,7 +11336,7 @@ function P4({ column: t, state: e }) {
|
|
|
11337
11336
|
n
|
|
11338
11337
|
);
|
|
11339
11338
|
const { align: l = "left" } = t.props;
|
|
11340
|
-
let { isFocusVisible: i, focusProps: o } =
|
|
11339
|
+
let { isFocusVisible: i, focusProps: o } = Zt(), a = ((u = e.sortDescriptor) == null ? void 0 : u.direction) === "ascending" ? "▲" : "▼";
|
|
11341
11340
|
return /* @__PURE__ */ b.jsxs(
|
|
11342
11341
|
"th",
|
|
11343
11342
|
{
|
|
@@ -11380,14 +11379,14 @@ function hi({ type: t, children: e }) {
|
|
|
11380
11379
|
}
|
|
11381
11380
|
);
|
|
11382
11381
|
}
|
|
11383
|
-
function
|
|
11382
|
+
function Dh({ item: t, children: e, state: n }) {
|
|
11384
11383
|
let r = M(), l = n.selectionManager.isSelected(t.key), { rowProps: i, isPressed: o } = Op(
|
|
11385
11384
|
{
|
|
11386
11385
|
node: t
|
|
11387
11386
|
},
|
|
11388
11387
|
n,
|
|
11389
11388
|
r
|
|
11390
|
-
), { isFocusVisible: a, focusProps: u } =
|
|
11389
|
+
), { isFocusVisible: a, focusProps: u } = Zt();
|
|
11391
11390
|
return /* @__PURE__ */ b.jsx(
|
|
11392
11391
|
"tr",
|
|
11393
11392
|
{
|
|
@@ -11403,8 +11402,8 @@ function D4({ item: t, children: e, state: n }) {
|
|
|
11403
11402
|
}
|
|
11404
11403
|
);
|
|
11405
11404
|
}
|
|
11406
|
-
function
|
|
11407
|
-
let r = M(), { gridCellProps: l } = jp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } =
|
|
11405
|
+
function kh({ cell: t, state: e, ...n }) {
|
|
11406
|
+
let r = M(), { gridCellProps: l } = jp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Zt();
|
|
11408
11407
|
const { align: a } = t.props;
|
|
11409
11408
|
return /* @__PURE__ */ b.jsx(
|
|
11410
11409
|
"td",
|
|
@@ -11420,49 +11419,55 @@ function k4({ cell: t, state: e, ...n }) {
|
|
|
11420
11419
|
}
|
|
11421
11420
|
);
|
|
11422
11421
|
}
|
|
11423
|
-
const
|
|
11424
|
-
function
|
|
11422
|
+
const l4 = ov, i4 = av;
|
|
11423
|
+
function o4(t) {
|
|
11425
11424
|
let e = iv({
|
|
11426
11425
|
...t
|
|
11427
|
-
}), n = M(), { collection: r } = e, { gridProps: l } =
|
|
11426
|
+
}), n = M(), { collection: r } = e, { gridProps: l } = Rp(
|
|
11428
11427
|
{ ...t, "aria-label": t["aria-label"] || "Table" },
|
|
11429
11428
|
e,
|
|
11430
11429
|
n
|
|
11431
11430
|
);
|
|
11432
11431
|
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: U("proton-Table"), children: [
|
|
11433
|
-
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(
|
|
11434
|
-
|
|
11432
|
+
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(wh, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(
|
|
11433
|
+
Ph,
|
|
11435
11434
|
{
|
|
11436
11435
|
column: o,
|
|
11437
11436
|
state: e
|
|
11438
11437
|
},
|
|
11439
11438
|
o.key
|
|
11440
11439
|
)) }, i.key)) }),
|
|
11441
|
-
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(
|
|
11440
|
+
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(Dh, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(kh, { cell: o, state: e }, o.key)) }, i.key)) })
|
|
11442
11441
|
] });
|
|
11443
11442
|
}
|
|
11444
|
-
function
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11443
|
+
function Th({ children: t, arrow: e, ...n }) {
|
|
11444
|
+
const { palette: r, theme: l, style: i } = We(), o = {
|
|
11445
|
+
"--tooltip-background": (() => {
|
|
11446
|
+
switch (l) {
|
|
11447
|
+
case Be.CUSTOM_DARK:
|
|
11448
|
+
return r.PRIMARY.PRIMARY_MEDIUM;
|
|
11449
|
+
case Be.DARK:
|
|
11450
|
+
return r.PRIMARY.PRIMARY_DARK;
|
|
11451
|
+
default:
|
|
11452
|
+
return ye.WHITE;
|
|
11453
|
+
}
|
|
11454
|
+
})(),
|
|
11455
|
+
...i
|
|
11456
|
+
};
|
|
11457
|
+
return /* @__PURE__ */ b.jsxs(
|
|
11458
|
+
$h,
|
|
11453
11459
|
{
|
|
11454
|
-
...
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
style: i,
|
|
11460
|
+
...n,
|
|
11461
|
+
className: "proton__Tooltip proton-Dialog",
|
|
11462
|
+
style: o,
|
|
11458
11463
|
children: [
|
|
11459
|
-
e && /* @__PURE__ */ b.jsx(
|
|
11464
|
+
e && /* @__PURE__ */ b.jsx(ah, { className: "proton__TooltipArrow", 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" }) }) }),
|
|
11460
11465
|
t
|
|
11461
11466
|
]
|
|
11462
11467
|
}
|
|
11463
11468
|
);
|
|
11464
11469
|
}
|
|
11465
|
-
function
|
|
11470
|
+
function Bh({
|
|
11466
11471
|
children: t,
|
|
11467
11472
|
// trigger props
|
|
11468
11473
|
delay: e = 500,
|
|
@@ -11476,8 +11481,8 @@ function B4({
|
|
|
11476
11481
|
...u
|
|
11477
11482
|
}) {
|
|
11478
11483
|
const [s, c] = j(!1), d = M(!1), f = M(!1);
|
|
11479
|
-
return
|
|
11480
|
-
|
|
11484
|
+
return /* @__PURE__ */ b.jsxs(
|
|
11485
|
+
bh,
|
|
11481
11486
|
{
|
|
11482
11487
|
delay: e,
|
|
11483
11488
|
closeDelay: n,
|
|
@@ -11494,24 +11499,24 @@ function B4({
|
|
|
11494
11499
|
className: "proton__TooltipTrigger",
|
|
11495
11500
|
"aria-label": "Show tooltip",
|
|
11496
11501
|
onPress: () => {
|
|
11497
|
-
o || f.current || (d.current = !0, c(!s));
|
|
11502
|
+
o || r || f.current || (d.current = !0, c(!s));
|
|
11498
11503
|
},
|
|
11499
11504
|
children: t
|
|
11500
11505
|
}
|
|
11501
11506
|
),
|
|
11502
|
-
/* @__PURE__ */ b.jsx(
|
|
11507
|
+
/* @__PURE__ */ b.jsx(Th, { ...u, children: a })
|
|
11503
11508
|
]
|
|
11504
11509
|
}
|
|
11505
11510
|
);
|
|
11506
11511
|
}
|
|
11507
|
-
const
|
|
11512
|
+
const a4 = ({
|
|
11508
11513
|
to: t,
|
|
11509
11514
|
children: e,
|
|
11510
11515
|
tooltipProps: n,
|
|
11511
11516
|
"data-testid": r
|
|
11512
11517
|
}) => {
|
|
11513
|
-
const { className: l, palette: i, theme: o } =
|
|
11514
|
-
"--text-emphasis-highlight": o ===
|
|
11518
|
+
const { className: l, palette: i, theme: o } = We(), a = n ? /* @__PURE__ */ b.jsx(Bh, { delay: 50, closeDelay: 75, ...n, children: e }) : e, u = {
|
|
11519
|
+
"--text-emphasis-highlight": o === Be.CUSTOM_DARK ? st(i.SECONDARY.SECONDARY_LIGHT, 0.3) : st(Rc.PRIMARY, 0.5)
|
|
11515
11520
|
};
|
|
11516
11521
|
if (t) {
|
|
11517
11522
|
const s = Lr(t);
|
|
@@ -11552,7 +11557,7 @@ const ah = ({
|
|
|
11552
11557
|
}
|
|
11553
11558
|
);
|
|
11554
11559
|
};
|
|
11555
|
-
function
|
|
11560
|
+
function Ah({
|
|
11556
11561
|
amplitude: t,
|
|
11557
11562
|
isDisabled: e,
|
|
11558
11563
|
isPlayed: n,
|
|
@@ -11620,8 +11625,8 @@ function A4({
|
|
|
11620
11625
|
}
|
|
11621
11626
|
);
|
|
11622
11627
|
}
|
|
11623
|
-
const
|
|
11624
|
-
function
|
|
11628
|
+
const Kh = _h(100);
|
|
11629
|
+
function u4({
|
|
11625
11630
|
data: t,
|
|
11626
11631
|
resolution: e = 2,
|
|
11627
11632
|
startDuration: n,
|
|
@@ -11633,19 +11638,19 @@ function uh({
|
|
|
11633
11638
|
timestampColor: u,
|
|
11634
11639
|
"data-testid": s
|
|
11635
11640
|
}) {
|
|
11636
|
-
var
|
|
11637
|
-
const { className: c, palette: d, theme: f } =
|
|
11641
|
+
var N;
|
|
11642
|
+
const { className: c, palette: d, theme: f } = We(), p = M(null), [m, $] = j([]), [g, E] = j(null), [S, y] = j(!1), [k, C] = j(!1), P = t || Kh, _ = u || (f === "custom-dark" ? d.BRAND.PRIMARY_LIGHT : void 0), v = e;
|
|
11638
11643
|
L(() => {
|
|
11639
11644
|
if (!p.current) return;
|
|
11640
11645
|
const D = (Z) => {
|
|
11641
|
-
const ue = Math.floor(Z / (e + v)), fe =
|
|
11646
|
+
const ue = Math.floor(Z / (e + v)), fe = Ih(P, ue);
|
|
11642
11647
|
$(fe);
|
|
11643
11648
|
}, z = p.current.clientWidth;
|
|
11644
11649
|
D(z);
|
|
11645
|
-
const
|
|
11650
|
+
const I = new ResizeObserver((Z) => {
|
|
11646
11651
|
Z && Z[0] && D(Z[0].contentRect.width);
|
|
11647
11652
|
});
|
|
11648
|
-
return
|
|
11653
|
+
return I.observe(p.current), () => I.disconnect();
|
|
11649
11654
|
}, [P, e, v]), L(() => {
|
|
11650
11655
|
const D = setTimeout(() => y(!0), 50), z = setTimeout(() => C(!0), 500);
|
|
11651
11656
|
return () => {
|
|
@@ -11658,11 +11663,11 @@ function uh({
|
|
|
11658
11663
|
E(Z);
|
|
11659
11664
|
}, w = () => {
|
|
11660
11665
|
E(null);
|
|
11661
|
-
}, T = e + v,
|
|
11666
|
+
}, T = e + v, F = (D, z) => {
|
|
11662
11667
|
var ue;
|
|
11663
|
-
const
|
|
11664
|
-
return (z === "start" ? Math.floor(
|
|
11665
|
-
}, x = (
|
|
11668
|
+
const I = D / o * 100;
|
|
11669
|
+
return (z === "start" ? Math.floor(I / 100 * m.length) : Math.ceil(I / 100 * m.length)) * T / ((ue = p.current) == null ? void 0 : ue.clientWidth) * 100;
|
|
11670
|
+
}, x = (N = p.current) == null ? void 0 : N.clientWidth;
|
|
11666
11671
|
return /* @__PURE__ */ b.jsxs("div", { className: U("proton-Waveform", c), "data-testid": s, children: [
|
|
11667
11672
|
i && /* @__PURE__ */ b.jsx(
|
|
11668
11673
|
mi,
|
|
@@ -11690,8 +11695,8 @@ function uh({
|
|
|
11690
11695
|
{
|
|
11691
11696
|
className: "proton-Waveform__active-region",
|
|
11692
11697
|
style: {
|
|
11693
|
-
left: p.current ? `calc(${
|
|
11694
|
-
right: p.current ? `calc(${100 -
|
|
11698
|
+
left: p.current ? `calc(${F(n, "start")}%` : "0%",
|
|
11699
|
+
right: p.current ? `calc(${100 - F(r, "end")}% - 2px)` : "0%"
|
|
11695
11700
|
}
|
|
11696
11701
|
}
|
|
11697
11702
|
),
|
|
@@ -11705,9 +11710,9 @@ function uh({
|
|
|
11705
11710
|
}
|
|
11706
11711
|
),
|
|
11707
11712
|
m.map((D, z) => {
|
|
11708
|
-
const
|
|
11713
|
+
const I = z / m.length * o, Z = n !== void 0 && r !== void 0 && (I < n || I > r), ue = l === 0 ? !1 : I <= l, fe = g !== null && I <= g;
|
|
11709
11714
|
return /* @__PURE__ */ b.jsx(
|
|
11710
|
-
|
|
11715
|
+
Ah,
|
|
11711
11716
|
{
|
|
11712
11717
|
amplitude: D,
|
|
11713
11718
|
isDisabled: Z,
|
|
@@ -11759,29 +11764,29 @@ function mi({
|
|
|
11759
11764
|
`proton-Waveform__timestamp--${t}`
|
|
11760
11765
|
),
|
|
11761
11766
|
style: { backgroundColor: e },
|
|
11762
|
-
children:
|
|
11767
|
+
children: Mh(n)
|
|
11763
11768
|
}
|
|
11764
11769
|
);
|
|
11765
11770
|
}
|
|
11766
|
-
function
|
|
11771
|
+
function Mh(t) {
|
|
11767
11772
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
11768
11773
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
11769
11774
|
}
|
|
11770
|
-
function
|
|
11775
|
+
function Ih(t, e) {
|
|
11771
11776
|
const n = t.length, r = n / e, l = new Array(e).fill(0).map((i, o) => {
|
|
11772
11777
|
const a = o * r, u = Math.floor(a), s = Math.min(u + 1, n - 1), c = a - u;
|
|
11773
11778
|
return t[u] * (1 - c) + t[s] * c;
|
|
11774
11779
|
});
|
|
11775
|
-
return
|
|
11780
|
+
return Fh(l);
|
|
11776
11781
|
}
|
|
11777
|
-
function
|
|
11782
|
+
function Fh(t) {
|
|
11778
11783
|
const e = Math.min(...t), n = Math.max(...t);
|
|
11779
11784
|
return t.map((r) => {
|
|
11780
11785
|
const l = (r - e) / (n - e);
|
|
11781
11786
|
return Math.max(l * 0.8 + 0.1, 0.1);
|
|
11782
11787
|
});
|
|
11783
11788
|
}
|
|
11784
|
-
function
|
|
11789
|
+
function _h(t) {
|
|
11785
11790
|
return Array.from({ length: t }, (e, n) => {
|
|
11786
11791
|
const l = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
11787
11792
|
return Math.sin(l) * 0.5 + 0.5;
|
|
@@ -11789,35 +11794,35 @@ function _4(t) {
|
|
|
11789
11794
|
}
|
|
11790
11795
|
export {
|
|
11791
11796
|
Us as ActionMenu,
|
|
11792
|
-
|
|
11793
|
-
|
|
11797
|
+
qh as Badge,
|
|
11798
|
+
Yh as BadgeVariants,
|
|
11794
11799
|
Ue as Banner,
|
|
11795
11800
|
Ys as Button,
|
|
11796
11801
|
Cv as ButtonGroup,
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
+
d4 as COLORS,
|
|
11803
|
+
i4 as Cell,
|
|
11804
|
+
l4 as Column,
|
|
11805
|
+
Xh as Dialog,
|
|
11806
|
+
Zh as Icon,
|
|
11802
11807
|
Dv as Input,
|
|
11803
11808
|
ol as Popover,
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11809
|
+
e4 as ResponsiveMenuTrigger,
|
|
11810
|
+
n4 as ResponsiveSelect,
|
|
11811
|
+
Uh as Row,
|
|
11812
|
+
Jh as SearchInput,
|
|
11813
|
+
Vh as Section,
|
|
11814
|
+
t4 as Select,
|
|
11815
|
+
r4 as Switch,
|
|
11816
|
+
Be as THEMES,
|
|
11817
|
+
o4 as Table,
|
|
11818
|
+
Wh as TableBody,
|
|
11819
|
+
Hh as TableHeader,
|
|
11820
|
+
a4 as TextEmphasis,
|
|
11821
|
+
Gh as ThemeProvider,
|
|
11822
|
+
Th as Tooltip,
|
|
11823
|
+
Bh as TooltipTrigger,
|
|
11824
|
+
u4 as Waveform,
|
|
11825
|
+
Qh as usePopoverTrigger,
|
|
11826
|
+
We as useTheme
|
|
11822
11827
|
};
|
|
11823
11828
|
//# sourceMappingURL=index.es.js.map
|