@protonradio/proton-ui 0.11.0-beta.16 → 0.11.0-beta.17
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 +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -9
- package/dist/index.es.js +331 -336
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.cjs.js.map +1 -1
- package/dist/utils.d.ts +0 -6
- package/dist/utils.es.js +3 -5
- package/dist/utils.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -46,41 +46,41 @@ function wd() {
|
|
|
46
46
|
function $(y) {
|
|
47
47
|
if (y === null || typeof y != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var M = v && y[v] || y[b];
|
|
50
|
+
return typeof M == "function" ? M : null;
|
|
51
51
|
}
|
|
52
52
|
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function E(y) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
55
|
+
for (var M = arguments.length, L = new Array(M > 1 ? M - 1 : 0), Y = 1; Y < M; Y++)
|
|
56
56
|
L[Y - 1] = arguments[Y];
|
|
57
57
|
C("error", y, L);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function C(y,
|
|
60
|
+
function C(y, M, L) {
|
|
61
61
|
{
|
|
62
62
|
var Y = x.ReactDebugCurrentFrame, ie = Y.getStackAddendum();
|
|
63
|
-
ie !== "" && (
|
|
63
|
+
ie !== "" && (M += "%s", L = L.concat([ie]));
|
|
64
64
|
var ue = L.map(function(ee) {
|
|
65
65
|
return String(ee);
|
|
66
66
|
});
|
|
67
|
-
ue.unshift("Warning: " +
|
|
67
|
+
ue.unshift("Warning: " + M), Function.prototype.apply.call(console[y], console, ue);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var T = !1, S = !1, P = !1, I = !1, R = !1,
|
|
71
|
-
|
|
70
|
+
var T = !1, S = !1, P = !1, I = !1, R = !1, N;
|
|
71
|
+
N = Symbol.for("react.module.reference");
|
|
72
72
|
function K(y) {
|
|
73
73
|
return !!(typeof y == "string" || typeof y == "function" || y === r || y === i || R || y === l || y === s || y === d || I || y === p || T || S || P || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === c || y.$$typeof === o || y.$$typeof === u || y.$$typeof === a || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
y.$$typeof ===
|
|
77
|
+
y.$$typeof === N || y.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function g(y,
|
|
79
|
+
function g(y, M, L) {
|
|
80
80
|
var Y = y.displayName;
|
|
81
81
|
if (Y)
|
|
82
82
|
return Y;
|
|
83
|
-
var ie =
|
|
83
|
+
var ie = M.displayName || M.name || "";
|
|
84
84
|
return ie !== "" ? L + "(" + ie + ")" : L;
|
|
85
85
|
}
|
|
86
86
|
function F(y) {
|
|
@@ -110,8 +110,8 @@ function wd() {
|
|
|
110
110
|
if (typeof y == "object")
|
|
111
111
|
switch (y.$$typeof) {
|
|
112
112
|
case u:
|
|
113
|
-
var
|
|
114
|
-
return F(
|
|
113
|
+
var M = y;
|
|
114
|
+
return F(M) + ".Consumer";
|
|
115
115
|
case o:
|
|
116
116
|
var L = y;
|
|
117
117
|
return F(L._context) + ".Provider";
|
|
@@ -194,7 +194,7 @@ function wd() {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var we = x.ReactCurrentDispatcher, ze;
|
|
197
|
-
function Ve(y,
|
|
197
|
+
function Ve(y, M, L) {
|
|
198
198
|
{
|
|
199
199
|
if (ze === void 0)
|
|
200
200
|
try {
|
|
@@ -212,7 +212,7 @@ function wd() {
|
|
|
212
212
|
var V = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
He = new V();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Ne(y, M) {
|
|
216
216
|
if (!y || qe)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
@@ -227,7 +227,7 @@ function wd() {
|
|
|
227
227
|
var ue;
|
|
228
228
|
ue = we.current, we.current = null, Le();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
230
|
+
if (M) {
|
|
231
231
|
var ee = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
@@ -283,18 +283,18 @@ function wd() {
|
|
|
283
283
|
var Tt = y ? y.displayName || y.name : "", mt = Tt ? Ve(Tt) : "";
|
|
284
284
|
return typeof y == "function" && He.set(y, mt), mt;
|
|
285
285
|
}
|
|
286
|
-
function Ie(y,
|
|
287
|
-
return
|
|
286
|
+
function Ie(y, M, L) {
|
|
287
|
+
return Ne(y, !1);
|
|
288
288
|
}
|
|
289
289
|
function Dt(y) {
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
290
|
+
var M = y.prototype;
|
|
291
|
+
return !!(M && M.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function re(y,
|
|
293
|
+
function re(y, M, L) {
|
|
294
294
|
if (y == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof y == "function")
|
|
297
|
-
return
|
|
297
|
+
return Ne(y, Dt(y));
|
|
298
298
|
if (typeof y == "string")
|
|
299
299
|
return Ve(y);
|
|
300
300
|
switch (y) {
|
|
@@ -308,11 +308,11 @@ function wd() {
|
|
|
308
308
|
case a:
|
|
309
309
|
return Ie(y.render);
|
|
310
310
|
case c:
|
|
311
|
-
return re(y.type,
|
|
311
|
+
return re(y.type, M, L);
|
|
312
312
|
case f: {
|
|
313
313
|
var Y = y, ie = Y._payload, ue = Y._init;
|
|
314
314
|
try {
|
|
315
|
-
return re(ue(ie),
|
|
315
|
+
return re(ue(ie), M, L);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -322,12 +322,12 @@ function wd() {
|
|
|
322
322
|
var Xe = Object.prototype.hasOwnProperty, pn = {}, Cl = x.ReactDebugCurrentFrame;
|
|
323
323
|
function vn(y) {
|
|
324
324
|
if (y) {
|
|
325
|
-
var
|
|
325
|
+
var M = y._owner, L = re(y.type, y._source, M ? M.type : null);
|
|
326
326
|
Cl.setExtraStackFrame(L);
|
|
327
327
|
} else
|
|
328
328
|
Cl.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function qc(y,
|
|
330
|
+
function qc(y, M, L, Y, ie) {
|
|
331
331
|
{
|
|
332
332
|
var ue = Function.call.bind(Xe);
|
|
333
333
|
for (var ee in y)
|
|
@@ -338,7 +338,7 @@ function wd() {
|
|
|
338
338
|
var Pe = Error((Y || "React class") + ": " + L + " type `" + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[ee] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw Pe.name = "Invariant Violation", Pe;
|
|
340
340
|
}
|
|
341
|
-
X = y[ee](
|
|
341
|
+
X = y[ee](M, ee, Y, L, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (fe) {
|
|
343
343
|
X = fe;
|
|
344
344
|
}
|
|
@@ -352,7 +352,7 @@ function wd() {
|
|
|
352
352
|
}
|
|
353
353
|
function Zc(y) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var M = typeof Symbol == "function" && Symbol.toStringTag, L = M && y[Symbol.toStringTag] || y.constructor.name || "Object";
|
|
356
356
|
return L;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -379,30 +379,30 @@ function wd() {
|
|
|
379
379
|
nr = {};
|
|
380
380
|
function ed(y) {
|
|
381
381
|
if (Xe.call(y, "ref")) {
|
|
382
|
-
var
|
|
383
|
-
if (
|
|
382
|
+
var M = Object.getOwnPropertyDescriptor(y, "ref").get;
|
|
383
|
+
if (M && M.isReactWarning)
|
|
384
384
|
return !1;
|
|
385
385
|
}
|
|
386
386
|
return y.ref !== void 0;
|
|
387
387
|
}
|
|
388
388
|
function td(y) {
|
|
389
389
|
if (Xe.call(y, "key")) {
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
390
|
+
var M = Object.getOwnPropertyDescriptor(y, "key").get;
|
|
391
|
+
if (M && M.isReactWarning)
|
|
392
392
|
return !1;
|
|
393
393
|
}
|
|
394
394
|
return y.key !== void 0;
|
|
395
395
|
}
|
|
396
|
-
function nd(y,
|
|
397
|
-
if (typeof y.ref == "string" && Vt.current &&
|
|
396
|
+
function nd(y, M) {
|
|
397
|
+
if (typeof y.ref == "string" && Vt.current && M && Vt.current.stateNode !== M) {
|
|
398
398
|
var L = _(Vt.current.type);
|
|
399
399
|
nr[L] || (E('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', _(Vt.current.type), y.ref), nr[L] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function rd(y,
|
|
402
|
+
function rd(y, M) {
|
|
403
403
|
{
|
|
404
404
|
var L = function() {
|
|
405
|
-
Dl || (Dl = !0, E("%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)",
|
|
405
|
+
Dl || (Dl = !0, E("%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)", M));
|
|
406
406
|
};
|
|
407
407
|
L.isReactWarning = !0, Object.defineProperty(y, "key", {
|
|
408
408
|
get: L,
|
|
@@ -410,10 +410,10 @@ function wd() {
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function ld(y,
|
|
413
|
+
function ld(y, M) {
|
|
414
414
|
{
|
|
415
415
|
var L = function() {
|
|
416
|
-
kl || (kl = !0, E("%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)",
|
|
416
|
+
kl || (kl = !0, E("%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)", M));
|
|
417
417
|
};
|
|
418
418
|
L.isReactWarning = !0, Object.defineProperty(y, "ref", {
|
|
419
419
|
get: L,
|
|
@@ -421,13 +421,13 @@ function wd() {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var id = function(y,
|
|
424
|
+
var id = function(y, M, L, Y, ie, ue, ee) {
|
|
425
425
|
var X = {
|
|
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: y,
|
|
430
|
-
key:
|
|
430
|
+
key: M,
|
|
431
431
|
ref: L,
|
|
432
432
|
props: ee,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
@@ -450,12 +450,12 @@ function wd() {
|
|
|
450
450
|
value: ie
|
|
451
451
|
}), Object.freeze && (Object.freeze(X.props), Object.freeze(X)), X;
|
|
452
452
|
};
|
|
453
|
-
function od(y,
|
|
453
|
+
function od(y, M, L, Y, ie) {
|
|
454
454
|
{
|
|
455
455
|
var ue, ee = {}, X = null, Pe = null;
|
|
456
|
-
L !== void 0 && (Pl(L), X = "" + L), td(
|
|
457
|
-
for (ue in
|
|
458
|
-
Xe.call(
|
|
456
|
+
L !== void 0 && (Pl(L), X = "" + L), td(M) && (Pl(M.key), X = "" + M.key), ed(M) && (Pe = M.ref, nd(M, ie));
|
|
457
|
+
for (ue in M)
|
|
458
|
+
Xe.call(M, ue) && !Qc.hasOwnProperty(ue) && (ee[ue] = M[ue]);
|
|
459
459
|
if (y && y.defaultProps) {
|
|
460
460
|
var fe = y.defaultProps;
|
|
461
461
|
for (ue in fe)
|
|
@@ -471,7 +471,7 @@ function wd() {
|
|
|
471
471
|
var rr = x.ReactCurrentOwner, Tl = x.ReactDebugCurrentFrame;
|
|
472
472
|
function kt(y) {
|
|
473
473
|
if (y) {
|
|
474
|
-
var
|
|
474
|
+
var M = y._owner, L = re(y.type, y._source, M ? M.type : null);
|
|
475
475
|
Tl.setExtraStackFrame(L);
|
|
476
476
|
} else
|
|
477
477
|
Tl.setExtraStackFrame(null);
|
|
@@ -499,22 +499,22 @@ Check the render method of \`` + y + "`.";
|
|
|
499
499
|
var Bl = {};
|
|
500
500
|
function ad(y) {
|
|
501
501
|
{
|
|
502
|
-
var
|
|
503
|
-
if (!
|
|
502
|
+
var M = Al();
|
|
503
|
+
if (!M) {
|
|
504
504
|
var L = typeof y == "string" ? y : y.displayName || y.name;
|
|
505
|
-
L && (
|
|
505
|
+
L && (M = `
|
|
506
506
|
|
|
507
507
|
Check the top-level render call using <` + L + ">.");
|
|
508
508
|
}
|
|
509
|
-
return
|
|
509
|
+
return M;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function Kl(y,
|
|
512
|
+
function Kl(y, M) {
|
|
513
513
|
{
|
|
514
514
|
if (!y._store || y._store.validated || y.key != null)
|
|
515
515
|
return;
|
|
516
516
|
y._store.validated = !0;
|
|
517
|
-
var L = ad(
|
|
517
|
+
var L = ad(M);
|
|
518
518
|
if (Bl[L])
|
|
519
519
|
return;
|
|
520
520
|
Bl[L] = !0;
|
|
@@ -522,14 +522,14 @@ Check the top-level render call using <` + L + ">.");
|
|
|
522
522
|
y && y._owner && y._owner !== rr.current && (Y = " It was passed a child from " + _(y._owner.type) + "."), kt(y), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, Y), kt(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Ml(y, M) {
|
|
526
526
|
{
|
|
527
527
|
if (typeof y != "object")
|
|
528
528
|
return;
|
|
529
529
|
if (tr(y))
|
|
530
530
|
for (var L = 0; L < y.length; L++) {
|
|
531
531
|
var Y = y[L];
|
|
532
|
-
ir(Y) && Kl(Y,
|
|
532
|
+
ir(Y) && Kl(Y, M);
|
|
533
533
|
}
|
|
534
534
|
else if (ir(y))
|
|
535
535
|
y._store && (y._store.validated = !0);
|
|
@@ -537,39 +537,39 @@ Check the top-level render call using <` + L + ">.");
|
|
|
537
537
|
var ie = $(y);
|
|
538
538
|
if (typeof ie == "function" && ie !== y.entries)
|
|
539
539
|
for (var ue = ie.call(y), ee; !(ee = ue.next()).done; )
|
|
540
|
-
ir(ee.value) && Kl(ee.value,
|
|
540
|
+
ir(ee.value) && Kl(ee.value, M);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
function sd(y) {
|
|
545
545
|
{
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
546
|
+
var M = y.type;
|
|
547
|
+
if (M == null || typeof M == "string")
|
|
548
548
|
return;
|
|
549
549
|
var L;
|
|
550
|
-
if (typeof
|
|
551
|
-
L =
|
|
552
|
-
else if (typeof
|
|
550
|
+
if (typeof M == "function")
|
|
551
|
+
L = M.propTypes;
|
|
552
|
+
else if (typeof M == "object" && (M.$$typeof === a || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
|
-
|
|
555
|
-
L =
|
|
554
|
+
M.$$typeof === c))
|
|
555
|
+
L = M.propTypes;
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
558
|
if (L) {
|
|
559
|
-
var Y = _(
|
|
559
|
+
var Y = _(M);
|
|
560
560
|
qc(L, y.props, "prop", Y, y);
|
|
561
|
-
} else if (
|
|
561
|
+
} else if (M.PropTypes !== void 0 && !lr) {
|
|
562
562
|
lr = !0;
|
|
563
|
-
var ie = _(
|
|
563
|
+
var ie = _(M);
|
|
564
564
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ie || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof
|
|
566
|
+
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function cd(y) {
|
|
570
570
|
{
|
|
571
|
-
for (var
|
|
572
|
-
var Y =
|
|
571
|
+
for (var M = Object.keys(y.props), L = 0; L < M.length; L++) {
|
|
572
|
+
var Y = M[L];
|
|
573
573
|
if (Y !== "children" && Y !== "key") {
|
|
574
574
|
kt(y), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Y), kt(null);
|
|
575
575
|
break;
|
|
@@ -578,8 +578,8 @@ Check the top-level render call using <` + L + ">.");
|
|
|
578
578
|
y.ref !== null && (kt(y), E("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
var
|
|
582
|
-
function Il(y,
|
|
581
|
+
var Nl = {};
|
|
582
|
+
function Il(y, M, L, Y, ie, ue) {
|
|
583
583
|
{
|
|
584
584
|
var ee = K(y);
|
|
585
585
|
if (!ee) {
|
|
@@ -590,44 +590,44 @@ Check the top-level render call using <` + L + ">.");
|
|
|
590
590
|
var fe;
|
|
591
591
|
y === null ? fe = "null" : tr(y) ? fe = "array" : y !== void 0 && y.$$typeof === e ? (fe = "<" + (_(y.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : fe = typeof y, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", fe, X);
|
|
592
592
|
}
|
|
593
|
-
var ve = od(y,
|
|
593
|
+
var ve = od(y, M, L, ie, ue);
|
|
594
594
|
if (ve == null)
|
|
595
595
|
return ve;
|
|
596
596
|
if (ee) {
|
|
597
|
-
var Re =
|
|
597
|
+
var Re = M.children;
|
|
598
598
|
if (Re !== void 0)
|
|
599
599
|
if (Y)
|
|
600
600
|
if (tr(Re)) {
|
|
601
601
|
for (var Tt = 0; Tt < Re.length; Tt++)
|
|
602
|
-
|
|
602
|
+
Ml(Re[Tt], y);
|
|
603
603
|
Object.freeze && Object.freeze(Re);
|
|
604
604
|
} else
|
|
605
605
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
|
-
|
|
607
|
+
Ml(Re, y);
|
|
608
608
|
}
|
|
609
|
-
if (Xe.call(
|
|
610
|
-
var mt = _(y), Te = Object.keys(
|
|
609
|
+
if (Xe.call(M, "key")) {
|
|
610
|
+
var mt = _(y), Te = Object.keys(M).filter(function(bd) {
|
|
611
611
|
return bd !== "key";
|
|
612
612
|
}), or = Te.length > 0 ? "{key: someKey, " + Te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
-
if (!
|
|
613
|
+
if (!Nl[mt + or]) {
|
|
614
614
|
var hd = Te.length > 0 ? "{" + Te.join(": ..., ") + ": ...}" : "{}";
|
|
615
615
|
E(`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} />`, or, mt, hd, mt),
|
|
620
|
+
<%s key={someKey} {...props} />`, or, mt, hd, mt), Nl[mt + or] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return y === r ? cd(ve) : sd(ve), ve;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function dd(y,
|
|
627
|
-
return Il(y,
|
|
626
|
+
function dd(y, M, L) {
|
|
627
|
+
return Il(y, M, L, !0);
|
|
628
628
|
}
|
|
629
|
-
function fd(y,
|
|
630
|
-
return Il(y,
|
|
629
|
+
function fd(y, M, L) {
|
|
630
|
+
return Il(y, M, L, !1);
|
|
631
631
|
}
|
|
632
632
|
var pd = fd, vd = dd;
|
|
633
633
|
Wt.Fragment = r, Wt.jsx = pd, Wt.jsxs = vd;
|
|
@@ -701,10 +701,10 @@ function Bd(t) {
|
|
|
701
701
|
return t || `${r}-${e}`;
|
|
702
702
|
}
|
|
703
703
|
const Kd = typeof D.useId == "function" ? Bd : Ad;
|
|
704
|
-
function
|
|
704
|
+
function Md() {
|
|
705
705
|
return !1;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function Nd() {
|
|
708
708
|
return !0;
|
|
709
709
|
}
|
|
710
710
|
function Id(t) {
|
|
@@ -712,7 +712,7 @@ function Id(t) {
|
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
function St() {
|
|
715
|
-
return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(Id,
|
|
715
|
+
return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(Id, Md, Nd) : q(Dd);
|
|
716
716
|
}
|
|
717
717
|
let Rd = !!(typeof window < "u" && window.document && window.document.createElement), Rt = /* @__PURE__ */ new Map(), Xt;
|
|
718
718
|
typeof FinalizationRegistry < "u" && (Xt = new FinalizationRegistry((t) => {
|
|
@@ -1382,7 +1382,7 @@ function Wn(t, e, n) {
|
|
|
1382
1382
|
]);
|
|
1383
1383
|
}
|
|
1384
1384
|
const cf = "react-aria-clear-focus", df = "react-aria-focus";
|
|
1385
|
-
function
|
|
1385
|
+
function Mt(t) {
|
|
1386
1386
|
return ft() ? t.metaKey : t.ctrlKey;
|
|
1387
1387
|
}
|
|
1388
1388
|
function Qi(t, e = !0) {
|
|
@@ -1573,14 +1573,14 @@ function Hl(t) {
|
|
|
1573
1573
|
}, s = requestAnimationFrame(a);
|
|
1574
1574
|
return a;
|
|
1575
1575
|
}
|
|
1576
|
-
let
|
|
1576
|
+
let Nt = "default", Dr = "", Cn = /* @__PURE__ */ new WeakMap();
|
|
1577
1577
|
function Wl(t) {
|
|
1578
1578
|
if (zn()) {
|
|
1579
|
-
if (
|
|
1579
|
+
if (Nt === "default") {
|
|
1580
1580
|
const e = oe(t);
|
|
1581
1581
|
Dr = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
|
|
1582
1582
|
}
|
|
1583
|
-
|
|
1583
|
+
Nt = "disabled";
|
|
1584
1584
|
} else if (t instanceof HTMLElement || t instanceof SVGElement) {
|
|
1585
1585
|
let e = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
|
|
1586
1586
|
Cn.set(t, t.style[e]), t.style[e] = "none";
|
|
@@ -1588,12 +1588,12 @@ function Wl(t) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
function sr(t) {
|
|
1590
1590
|
if (zn()) {
|
|
1591
|
-
if (
|
|
1592
|
-
|
|
1591
|
+
if (Nt !== "disabled") return;
|
|
1592
|
+
Nt = "restoring", setTimeout(() => {
|
|
1593
1593
|
Yi(() => {
|
|
1594
|
-
if (
|
|
1594
|
+
if (Nt === "restoring") {
|
|
1595
1595
|
const e = oe(t);
|
|
1596
|
-
e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = Dr || ""), Dr = "",
|
|
1596
|
+
e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = Dr || ""), Dr = "", Nt = "default";
|
|
1597
1597
|
}
|
|
1598
1598
|
});
|
|
1599
1599
|
}, 300);
|
|
@@ -1720,7 +1720,7 @@ function nt(t) {
|
|
|
1720
1720
|
d && P(g);
|
|
1721
1721
|
}), R = ce((g) => {
|
|
1722
1722
|
o == null || o(g);
|
|
1723
|
-
}),
|
|
1723
|
+
}), N = ce((g, F) => {
|
|
1724
1724
|
if (o) {
|
|
1725
1725
|
let _ = new MouseEvent("click", g);
|
|
1726
1726
|
no(_, F), o(tl(_));
|
|
@@ -1761,7 +1761,7 @@ function nt(t) {
|
|
|
1761
1761
|
var h;
|
|
1762
1762
|
Xl(le(k), k.key) && k.preventDefault();
|
|
1763
1763
|
let w = le(k), j = se(g.target, le(k));
|
|
1764
|
-
T(At(g.target, k), "keyboard", j), j &&
|
|
1764
|
+
T(At(g.target, k), "keyboard", j), j && N(k, g.target), E(), k.key !== "Enter" && rl(g.target) && se(g.target, w) && !k[Gl] && (k[Gl] = !0, xt(g.target, k, !1)), g.isPressed = !1, (h = g.metaKeyEvents) === null || h === void 0 || h.delete(k.key);
|
|
1765
1765
|
} else if (k.key === "Meta" && (!((O = g.metaKeyEvents) === null || O === void 0) && O.size)) {
|
|
1766
1766
|
var A;
|
|
1767
1767
|
let w = g.metaKeyEvents;
|
|
@@ -1867,7 +1867,7 @@ function nt(t) {
|
|
|
1867
1867
|
return;
|
|
1868
1868
|
}
|
|
1869
1869
|
let A = Yl(h.nativeEvent, g.activePointerId), w = !0;
|
|
1870
|
-
A && ql(A, h.currentTarget) && g.pointerType != null ? (S(it(g.target, h), g.pointerType), w = T(it(g.target, h), g.pointerType),
|
|
1870
|
+
A && ql(A, h.currentTarget) && g.pointerType != null ? (S(it(g.target, h), g.pointerType), w = T(it(g.target, h), g.pointerType), N(h.nativeEvent, g.target)) : g.isOverTarget && g.pointerType != null && (w = T(it(g.target, h), g.pointerType, !1)), w && h.stopPropagation(), g.isPressed = !1, g.activePointerId = null, g.isOverTarget = !1, g.ignoreEmulatedMouseEvents = !0, g.target && !c && sr(g.target), E();
|
|
1871
1871
|
}, F.onTouchCancel = (h) => {
|
|
1872
1872
|
se(h.currentTarget, le(h.nativeEvent)) && (h.stopPropagation(), g.isPressed && P(it(g.target, h)));
|
|
1873
1873
|
};
|
|
@@ -1897,7 +1897,7 @@ function nt(t) {
|
|
|
1897
1897
|
C,
|
|
1898
1898
|
S,
|
|
1899
1899
|
R,
|
|
1900
|
-
|
|
1900
|
+
N
|
|
1901
1901
|
]);
|
|
1902
1902
|
return z(() => {
|
|
1903
1903
|
let g = f == null ? void 0 : f.current;
|
|
@@ -2170,7 +2170,7 @@ function Kf(t) {
|
|
|
2170
2170
|
let { ref: n, ...r } = e;
|
|
2171
2171
|
return r;
|
|
2172
2172
|
}
|
|
2173
|
-
const
|
|
2173
|
+
const Mf = /* @__PURE__ */ D.forwardRef(function(e, n) {
|
|
2174
2174
|
let { children: r, ...l } = e, i = Lt(n), o = {
|
|
2175
2175
|
...l,
|
|
2176
2176
|
ref: i
|
|
@@ -2194,7 +2194,7 @@ function Ct(t, e) {
|
|
|
2194
2194
|
}, o)
|
|
2195
2195
|
};
|
|
2196
2196
|
}
|
|
2197
|
-
const
|
|
2197
|
+
const Nf = /* @__PURE__ */ Ke(({ children: t, ...e }, n) => {
|
|
2198
2198
|
n = Lt(n);
|
|
2199
2199
|
let { focusableProps: r } = Ct(e, n), l = D.Children.only(t);
|
|
2200
2200
|
z(() => {
|
|
@@ -2683,14 +2683,14 @@ function bo(t, e) {
|
|
|
2683
2683
|
const ri = /* @__PURE__ */ D.createContext(null), Br = "react-aria-focus-scope-restore";
|
|
2684
2684
|
let ae = null;
|
|
2685
2685
|
function cn(t) {
|
|
2686
|
-
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = B(null), o = B(null), u = B([]), { parentNode: a } = q(ri) || {}, s = H(() => new
|
|
2686
|
+
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = B(null), o = B(null), u = B([]), { parentNode: a } = q(ri) || {}, s = H(() => new Mr({
|
|
2687
2687
|
scopeRef: u
|
|
2688
2688
|
}), [
|
|
2689
2689
|
u
|
|
2690
2690
|
]);
|
|
2691
2691
|
Q(() => {
|
|
2692
2692
|
let f = a || he.root;
|
|
2693
|
-
if (he.getTreeNode(f.scopeRef) && ae && !
|
|
2693
|
+
if (he.getTreeNode(f.scopeRef) && ae && !Mn(ae, f.scopeRef)) {
|
|
2694
2694
|
let p = he.getTreeNode(ae);
|
|
2695
2695
|
p && (f = p);
|
|
2696
2696
|
}
|
|
@@ -2725,7 +2725,7 @@ function cn(t) {
|
|
|
2725
2725
|
]), Q(() => () => {
|
|
2726
2726
|
var f, p, v;
|
|
2727
2727
|
let b = (v = (p = he.getTreeNode(u)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && v !== void 0 ? v : null;
|
|
2728
|
-
(u === ae ||
|
|
2728
|
+
(u === ae || Mn(u, ae)) && (!b || he.getTreeNode(b)) && (ae = b), he.removeTreeNode(u);
|
|
2729
2729
|
}, [
|
|
2730
2730
|
u
|
|
2731
2731
|
]);
|
|
@@ -2824,7 +2824,7 @@ function tp(t, e) {
|
|
|
2824
2824
|
let v = s.shiftKey ? p.previousNode() : p.nextNode();
|
|
2825
2825
|
v || (p.currentNode = s.shiftKey ? c[c.length - 1].nextElementSibling : c[0].previousElementSibling, v = s.shiftKey ? p.previousNode() : p.nextNode()), s.preventDefault(), v && Qe(v, !0);
|
|
2826
2826
|
}, u = (s) => {
|
|
2827
|
-
(!ae ||
|
|
2827
|
+
(!ae || Mn(ae, t)) && _e(le(s), t.current) ? (ae = t, n.current = le(s)) : Jt(t) && !st(le(s), t) ? n.current ? n.current.focus() : ae && ae.current && Kr(ae.current) : Jt(t) && (n.current = le(s));
|
|
2828
2828
|
}, a = (s) => {
|
|
2829
2829
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2830
2830
|
let d = ln(), c = (d === "virtual" || d === null) && tn() && Ui(), f = ke(i);
|
|
@@ -2865,7 +2865,7 @@ function st(t, e = null) {
|
|
|
2865
2865
|
function np(t) {
|
|
2866
2866
|
return st(t, ae);
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Mn(t, e) {
|
|
2869
2869
|
var n;
|
|
2870
2870
|
let r = (n = he.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
|
|
2871
2871
|
for (; r; ) {
|
|
@@ -2943,7 +2943,7 @@ function ip(t, e, n) {
|
|
|
2943
2943
|
const i = oe(l ? l[0] : void 0);
|
|
2944
2944
|
if (!e || n) return;
|
|
2945
2945
|
let o = () => {
|
|
2946
|
-
(!ae ||
|
|
2946
|
+
(!ae || Mn(ae, t)) && _e(ke(i), t.current) && (ae = t);
|
|
2947
2947
|
};
|
|
2948
2948
|
return i.addEventListener("focusin", o, !1), l == null || l.forEach((u) => u.addEventListener("focusin", o, !1)), () => {
|
|
2949
2949
|
i.removeEventListener("focusin", o, !1), l == null || l.forEach((u) => u.removeEventListener("focusin", o, !1));
|
|
@@ -3045,7 +3045,7 @@ class il {
|
|
|
3045
3045
|
addTreeNode(e, n, r) {
|
|
3046
3046
|
let l = this.fastMap.get(n ?? null);
|
|
3047
3047
|
if (!l) return;
|
|
3048
|
-
let i = new
|
|
3048
|
+
let i = new Mr({
|
|
3049
3049
|
scopeRef: e
|
|
3050
3050
|
});
|
|
3051
3051
|
l.addChild(i), i.parent = l, this.fastMap.set(e, i), r && (i.nodeToRestore = r);
|
|
@@ -3074,12 +3074,12 @@ class il {
|
|
|
3074
3074
|
return n;
|
|
3075
3075
|
}
|
|
3076
3076
|
constructor() {
|
|
3077
|
-
this.fastMap = /* @__PURE__ */ new Map(), this.root = new
|
|
3077
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new Mr({
|
|
3078
3078
|
scopeRef: null
|
|
3079
3079
|
}), this.fastMap.set(null, this.root);
|
|
3080
3080
|
}
|
|
3081
3081
|
}
|
|
3082
|
-
class
|
|
3082
|
+
class Mr {
|
|
3083
3083
|
addChild(e) {
|
|
3084
3084
|
this.children.add(e), e.parent = this;
|
|
3085
3085
|
}
|
|
@@ -3172,7 +3172,7 @@ function sp(t) {
|
|
|
3172
3172
|
}
|
|
3173
3173
|
const $o = 7e3;
|
|
3174
3174
|
let We = null;
|
|
3175
|
-
function
|
|
3175
|
+
function Nn(t, e = "assertive", n = $o) {
|
|
3176
3176
|
We ? We.announce(t, e, n) : (We = new cp(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? We.announce(t, e, n) : setTimeout(() => {
|
|
3177
3177
|
We != null && We.isAttached() && (We == null || We.announce(t, e, n));
|
|
3178
3178
|
}, 100));
|
|
@@ -3265,7 +3265,7 @@ function fp(t) {
|
|
|
3265
3265
|
l
|
|
3266
3266
|
]);
|
|
3267
3267
|
i != null && i.validationDetails.valid && (i = void 0);
|
|
3268
|
-
let d = q(dp), c = H(() => r ? Array.isArray(r) ? r.flatMap((K) =>
|
|
3268
|
+
let d = q(dp), c = H(() => r ? Array.isArray(r) ? r.flatMap((K) => Nr(d[K])) : Nr(d[r]) : [], [
|
|
3269
3269
|
d,
|
|
3270
3270
|
r
|
|
3271
3271
|
]), [f, p] = W(d), [v, b] = W(!1);
|
|
@@ -3294,7 +3294,7 @@ function fp(t) {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
};
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3297
|
+
function Nr(t) {
|
|
3298
3298
|
return t ? Array.isArray(t) ? t : [
|
|
3299
3299
|
t
|
|
3300
3300
|
] : [];
|
|
@@ -3302,7 +3302,7 @@ function Mr(t) {
|
|
|
3302
3302
|
function pp(t, e) {
|
|
3303
3303
|
if (typeof t == "function") {
|
|
3304
3304
|
let n = t(e);
|
|
3305
|
-
if (n && typeof n != "boolean") return
|
|
3305
|
+
if (n && typeof n != "boolean") return Nr(n);
|
|
3306
3306
|
}
|
|
3307
3307
|
return [];
|
|
3308
3308
|
}
|
|
@@ -3720,11 +3720,11 @@ function Sp(t, e, n, r, l, i, o, u, a, s, d, c, f, p, v, b) {
|
|
|
3720
3720
|
let Le = di(`${In[T]} ${S}`), Ye = vr(e, u, n, Le, d, c, s, f, v, b);
|
|
3721
3721
|
fi(u, s, e, l, i + d, Le) > R && ($ = Le, P = Ye, I = d);
|
|
3722
3722
|
}
|
|
3723
|
-
let
|
|
3724
|
-
$.axis === "top" ? $.placement === "top" ?
|
|
3723
|
+
let N = "bottom";
|
|
3724
|
+
$.axis === "top" ? $.placement === "top" ? N = "top" : $.placement === "bottom" && (N = "bottom") : $.crossAxis === "top" && ($.crossPlacement === "top" ? N = "bottom" : $.crossPlacement === "bottom" && (N = "top"));
|
|
3725
3725
|
let K = ci(E, P[E], n[C], u, a, i, s);
|
|
3726
3726
|
P[E] += K;
|
|
3727
|
-
let g = Ep(P, u, s, f, l, i, n.height,
|
|
3727
|
+
let g = Ep(P, u, s, f, l, i, n.height, N);
|
|
3728
3728
|
p && p < g && (g = p), n.height = Math.min(n.height, g), P = vr(e, u, n, $, I, c, s, f, v, b), K = ci(E, P[E], n[C], u, a, i, s), P[E] += K;
|
|
3729
3729
|
let F = {}, _ = e[E] + 0.5 * e[C] - P[E] - l[Ge[E]];
|
|
3730
3730
|
const k = v / 2 + b;
|
|
@@ -3751,8 +3751,8 @@ function Cp(t) {
|
|
|
3751
3751
|
E.width += ((T = C.left) !== null && T !== void 0 ? T : 0) + ((S = C.right) !== null && S !== void 0 ? S : 0);
|
|
3752
3752
|
var P, I;
|
|
3753
3753
|
E.height += ((P = C.top) !== null && P !== void 0 ? P : 0) + ((I = C.bottom) !== null && I !== void 0 ? I : 0);
|
|
3754
|
-
let R = $p(l),
|
|
3755
|
-
return p.tagName === "HTML" && u.tagName === "BODY" && (K.scroll.top = 0, K.scroll.left = 0), Sp(e, x, E, R, C, i, o,
|
|
3754
|
+
let R = $p(l), N = si(u), K = si(p), g = u.tagName === "BODY" ? Ft(p) : pi(p, u);
|
|
3755
|
+
return p.tagName === "HTML" && u.tagName === "BODY" && (K.scroll.top = 0, K.scroll.left = 0), Sp(e, x, E, R, C, i, o, N, K, g, a, s, $, d, c, f);
|
|
3756
3756
|
}
|
|
3757
3757
|
function Ft(t) {
|
|
3758
3758
|
let { top: e, left: n, width: r, height: l } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: o, clientTop: u, clientLeft: a } = document.documentElement;
|
|
@@ -3912,7 +3912,7 @@ function ko(t) {
|
|
|
3912
3912
|
isOpen: p,
|
|
3913
3913
|
onClose: v && I
|
|
3914
3914
|
});
|
|
3915
|
-
var R,
|
|
3915
|
+
var R, N;
|
|
3916
3916
|
return {
|
|
3917
3917
|
overlayProps: {
|
|
3918
3918
|
style: {
|
|
@@ -3922,7 +3922,7 @@ function ko(t) {
|
|
|
3922
3922
|
maxHeight: (R = x == null ? void 0 : x.maxHeight) !== null && R !== void 0 ? R : "100vh"
|
|
3923
3923
|
}
|
|
3924
3924
|
},
|
|
3925
|
-
placement: (
|
|
3925
|
+
placement: (N = x == null ? void 0 : x.placement) !== null && N !== void 0 ? N : null,
|
|
3926
3926
|
arrowProps: {
|
|
3927
3927
|
"aria-hidden": "true",
|
|
3928
3928
|
role: "presentation",
|
|
@@ -4102,13 +4102,13 @@ function hi(t) {
|
|
|
4102
4102
|
function Kp(t) {
|
|
4103
4103
|
return t instanceof HTMLInputElement && !Tp.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
4104
4104
|
}
|
|
4105
|
-
const
|
|
4105
|
+
const Mp = /* @__PURE__ */ ne({});
|
|
4106
4106
|
function Bo() {
|
|
4107
4107
|
var t;
|
|
4108
|
-
return (t = q(
|
|
4108
|
+
return (t = q(Mp)) !== null && t !== void 0 ? t : {};
|
|
4109
4109
|
}
|
|
4110
4110
|
const Rr = /* @__PURE__ */ D.createContext(null);
|
|
4111
|
-
function
|
|
4111
|
+
function Np(t) {
|
|
4112
4112
|
let { children: e } = t, n = q(Rr), [r, l] = W(0), i = H(() => ({
|
|
4113
4113
|
parent: n,
|
|
4114
4114
|
modalCount: r,
|
|
@@ -4143,7 +4143,7 @@ function Rp(t) {
|
|
|
4143
4143
|
});
|
|
4144
4144
|
}
|
|
4145
4145
|
function Fp(t) {
|
|
4146
|
-
return /* @__PURE__ */ D.createElement(
|
|
4146
|
+
return /* @__PURE__ */ D.createElement(Np, null, /* @__PURE__ */ D.createElement(Rp, t));
|
|
4147
4147
|
}
|
|
4148
4148
|
function _p(t) {
|
|
4149
4149
|
let e = St(), { portalContainer: n = e ? null : document.body, ...r } = t, { getContainer: l } = Bo();
|
|
@@ -4159,12 +4159,12 @@ var Ko = {};
|
|
|
4159
4159
|
Ko = {
|
|
4160
4160
|
dismiss: "تجاهل"
|
|
4161
4161
|
};
|
|
4162
|
-
var No = {};
|
|
4163
|
-
No = {
|
|
4164
|
-
dismiss: "Отхвърляне"
|
|
4165
|
-
};
|
|
4166
4162
|
var Mo = {};
|
|
4167
4163
|
Mo = {
|
|
4164
|
+
dismiss: "Отхвърляне"
|
|
4165
|
+
};
|
|
4166
|
+
var No = {};
|
|
4167
|
+
No = {
|
|
4168
4168
|
dismiss: "Odstranit"
|
|
4169
4169
|
};
|
|
4170
4170
|
var Io = {};
|
|
@@ -4294,8 +4294,8 @@ du = {
|
|
|
4294
4294
|
var fu = {};
|
|
4295
4295
|
fu = {
|
|
4296
4296
|
"ar-AE": Ko,
|
|
4297
|
-
"bg-BG":
|
|
4298
|
-
"cs-CZ":
|
|
4297
|
+
"bg-BG": Mo,
|
|
4298
|
+
"cs-CZ": No,
|
|
4299
4299
|
"da-DK": Io,
|
|
4300
4300
|
"de-DE": Ro,
|
|
4301
4301
|
"el-GR": Fo,
|
|
@@ -4551,17 +4551,17 @@ function yu(t) {
|
|
|
4551
4551
|
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: s = e.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: v = r, linkBehavior: b = "action" } = t, { direction: $ } = je(), x = un(), E = (h) => {
|
|
4552
4552
|
var A;
|
|
4553
4553
|
if (h.altKey && h.key === "Tab" && h.preventDefault(), !(!((A = r.current) === null || A === void 0) && A.contains(h.target))) return;
|
|
4554
|
-
const w = (V,
|
|
4554
|
+
const w = (V, Ne) => {
|
|
4555
4555
|
if (V != null) {
|
|
4556
4556
|
if (e.isLink(V) && b === "selection" && s && !_r(h)) {
|
|
4557
4557
|
qr(() => {
|
|
4558
|
-
e.setFocusedKey(V,
|
|
4558
|
+
e.setFocusedKey(V, Ne);
|
|
4559
4559
|
});
|
|
4560
4560
|
let Ie = wn(r, V), Dt = e.getItemProps(V);
|
|
4561
4561
|
Ie && x.open(Ie, h, Dt.href, Dt.routerOptions);
|
|
4562
4562
|
return;
|
|
4563
4563
|
}
|
|
4564
|
-
if (e.setFocusedKey(V,
|
|
4564
|
+
if (e.setFocusedKey(V, Ne), e.isLink(V) && b === "override") return;
|
|
4565
4565
|
h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(V) : s && !_r(h) && e.replaceSelection(V);
|
|
4566
4566
|
}
|
|
4567
4567
|
};
|
|
@@ -4598,16 +4598,16 @@ function yu(t) {
|
|
|
4598
4598
|
if (n.getFirstKey) {
|
|
4599
4599
|
if (e.focusedKey === null && h.shiftKey) return;
|
|
4600
4600
|
h.preventDefault();
|
|
4601
|
-
let V = n.getFirstKey(e.focusedKey,
|
|
4602
|
-
e.setFocusedKey(V), V != null && (
|
|
4601
|
+
let V = n.getFirstKey(e.focusedKey, Mt(h));
|
|
4602
|
+
e.setFocusedKey(V), V != null && (Mt(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(V) : s && e.replaceSelection(V));
|
|
4603
4603
|
}
|
|
4604
4604
|
break;
|
|
4605
4605
|
case "End":
|
|
4606
4606
|
if (n.getLastKey) {
|
|
4607
4607
|
if (e.focusedKey === null && h.shiftKey) return;
|
|
4608
4608
|
h.preventDefault();
|
|
4609
|
-
let V = n.getLastKey(e.focusedKey,
|
|
4610
|
-
e.setFocusedKey(V), V != null && (
|
|
4609
|
+
let V = n.getLastKey(e.focusedKey, Mt(h));
|
|
4610
|
+
e.setFocusedKey(V), V != null && (Mt(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(V) : s && e.replaceSelection(V));
|
|
4611
4611
|
}
|
|
4612
4612
|
break;
|
|
4613
4613
|
case "PageDown":
|
|
@@ -4623,7 +4623,7 @@ function yu(t) {
|
|
|
4623
4623
|
}
|
|
4624
4624
|
break;
|
|
4625
4625
|
case "a":
|
|
4626
|
-
|
|
4626
|
+
Mt(h) && e.selectionMode === "multiple" && u !== !0 && (h.preventDefault(), e.selectAll());
|
|
4627
4627
|
break;
|
|
4628
4628
|
case "Escape":
|
|
4629
4629
|
a === "clearSelection" && !o && e.selectedKeys.size !== 0 && (h.stopPropagation(), h.preventDefault(), e.clearSelection());
|
|
@@ -4634,11 +4634,11 @@ function yu(t) {
|
|
|
4634
4634
|
else {
|
|
4635
4635
|
let V = Be(r.current, {
|
|
4636
4636
|
tabbable: !0
|
|
4637
|
-
}),
|
|
4637
|
+
}), Ne, Ie;
|
|
4638
4638
|
do
|
|
4639
|
-
Ie = V.lastChild(), Ie && (
|
|
4639
|
+
Ie = V.lastChild(), Ie && (Ne = Ie);
|
|
4640
4640
|
while (Ie);
|
|
4641
|
-
|
|
4641
|
+
Ne && !Ne.contains(document.activeElement) && Se(Ne);
|
|
4642
4642
|
}
|
|
4643
4643
|
break;
|
|
4644
4644
|
}
|
|
@@ -4705,9 +4705,9 @@ function yu(t) {
|
|
|
4705
4705
|
var A;
|
|
4706
4706
|
h.stopPropagation(), e.setFocused(!1), !((A = h.detail) === null || A === void 0) && A.clearFocusKey && e.setFocusedKey(null);
|
|
4707
4707
|
} : void 0);
|
|
4708
|
-
const
|
|
4708
|
+
const N = B(l), K = B(!1);
|
|
4709
4709
|
z(() => {
|
|
4710
|
-
if (
|
|
4710
|
+
if (N.current) {
|
|
4711
4711
|
var h, A;
|
|
4712
4712
|
let Z = null;
|
|
4713
4713
|
var w;
|
|
@@ -4721,7 +4721,7 @@ function yu(t) {
|
|
|
4721
4721
|
break;
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
4724
|
-
e.setFocused(!0), e.setFocusedKey(Z), Z == null && !c && r.current && Ee(r.current), e.collection.size > 0 && (
|
|
4724
|
+
e.setFocused(!0), e.setFocusedKey(Z), Z == null && !c && r.current && Ee(r.current), e.collection.size > 0 && (N.current = !1, K.current = !0);
|
|
4725
4725
|
}
|
|
4726
4726
|
});
|
|
4727
4727
|
let g = B(e.focusedKey);
|
|
@@ -4774,7 +4774,7 @@ function Xn(t) {
|
|
|
4774
4774
|
return;
|
|
4775
4775
|
} else if (c === "override" || c === "none") return;
|
|
4776
4776
|
}
|
|
4777
|
-
n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : w && w.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || w && (
|
|
4777
|
+
n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : w && w.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || w && (Mt(w) || w.pointerType === "touch" || w.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
|
|
4778
4778
|
}
|
|
4779
4779
|
};
|
|
4780
4780
|
z(() => {
|
|
@@ -4796,7 +4796,7 @@ function Xn(t) {
|
|
|
4796
4796
|
} : a && (v.onMouseDown = (w) => {
|
|
4797
4797
|
w.preventDefault();
|
|
4798
4798
|
});
|
|
4799
|
-
let b = n.isLink(r) && c === "override", $ = n.isLink(r) && c !== "selection" && c !== "none", x = !a && n.canSelectItem(r) && !b, E = (s || $) && !a, C = E && (n.selectionBehavior === "replace" ? !x : !x || n.isEmpty), T = E && x && n.selectionBehavior === "replace", S = C || T, P = B(null), I = S && x, R = B(!1),
|
|
4799
|
+
let b = n.isLink(r) && c === "override", $ = n.isLink(r) && c !== "selection" && c !== "none", x = !a && n.canSelectItem(r) && !b, E = (s || $) && !a, C = E && (n.selectionBehavior === "replace" ? !x : !x || n.isEmpty), T = E && x && n.selectionBehavior === "replace", S = C || T, P = B(null), I = S && x, R = B(!1), N = B(!1), K = (w) => {
|
|
4800
4800
|
if (s && s(), $ && l.current) {
|
|
4801
4801
|
let j = n.getItemProps(r);
|
|
4802
4802
|
f.open(l.current, w, j.href, j.routerOptions);
|
|
@@ -4816,9 +4816,9 @@ function Xn(t) {
|
|
|
4816
4816
|
K(w);
|
|
4817
4817
|
} else w.pointerType !== "keyboard" && x && p(w);
|
|
4818
4818
|
}) : (g.onPressStart = (w) => {
|
|
4819
|
-
P.current = w.pointerType, R.current = I,
|
|
4819
|
+
P.current = w.pointerType, R.current = I, N.current = C, x && (w.pointerType === "mouse" && !C || w.pointerType === "keyboard" && (!E || mi())) && p(w);
|
|
4820
4820
|
}, g.onPress = (w) => {
|
|
4821
|
-
(w.pointerType === "touch" || w.pointerType === "pen" || w.pointerType === "virtual" || w.pointerType === "keyboard" && S && bi() || w.pointerType === "mouse" &&
|
|
4821
|
+
(w.pointerType === "touch" || w.pointerType === "pen" || w.pointerType === "virtual" || w.pointerType === "keyboard" && S && bi() || w.pointerType === "mouse" && N.current) && (S ? K(w) : x && p(w));
|
|
4822
4822
|
}), v["data-collection"] = Wp(n.collection), v["data-key"] = r, g.preventFocusOnPress = o, o && (g = U(g, {
|
|
4823
4823
|
onPressStart(w) {
|
|
4824
4824
|
w.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
|
|
@@ -5159,7 +5159,7 @@ Cu.getCollectionNode = function* (e) {
|
|
|
5159
5159
|
}
|
|
5160
5160
|
};
|
|
5161
5161
|
};
|
|
5162
|
-
let
|
|
5162
|
+
let Nh = Cu;
|
|
5163
5163
|
class Xp {
|
|
5164
5164
|
build(e, n) {
|
|
5165
5165
|
return this.context = n, gi(() => this.iterateCollection(e));
|
|
@@ -5417,7 +5417,7 @@ function Jp(t, e, n) {
|
|
|
5417
5417
|
let I = o != null && o.onAction ? () => {
|
|
5418
5418
|
var A;
|
|
5419
5419
|
return o == null || (A = o.onAction) === null || A === void 0 ? void 0 : A.call(o, i);
|
|
5420
|
-
} : void 0, R = Vp(e, i), { itemProps:
|
|
5420
|
+
} : void 0, R = Vp(e, i), { itemProps: N, isPressed: K, isFocused: g, hasAction: F, allowsSelection: _ } = Xn({
|
|
5421
5421
|
selectionManager: e.selectionManager,
|
|
5422
5422
|
key: i,
|
|
5423
5423
|
ref: n,
|
|
@@ -5440,7 +5440,7 @@ function Jp(t, e, n) {
|
|
|
5440
5440
|
return {
|
|
5441
5441
|
optionProps: {
|
|
5442
5442
|
...S,
|
|
5443
|
-
...U(O,
|
|
5443
|
+
...U(O, N, k, h),
|
|
5444
5444
|
id: R
|
|
5445
5445
|
},
|
|
5446
5446
|
labelProps: {
|
|
@@ -5486,12 +5486,12 @@ var Ku = {};
|
|
|
5486
5486
|
Ku = {
|
|
5487
5487
|
longPressMessage: "Long press or press Alt + ArrowDown to open menu"
|
|
5488
5488
|
};
|
|
5489
|
-
var Nu = {};
|
|
5490
|
-
Nu = {
|
|
5491
|
-
longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"
|
|
5492
|
-
};
|
|
5493
5489
|
var Mu = {};
|
|
5494
5490
|
Mu = {
|
|
5491
|
+
longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"
|
|
5492
|
+
};
|
|
5493
|
+
var Nu = {};
|
|
5494
|
+
Nu = {
|
|
5495
5495
|
longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"
|
|
5496
5496
|
};
|
|
5497
5497
|
var Iu = {};
|
|
@@ -5603,8 +5603,8 @@ oa = {
|
|
|
5603
5603
|
"de-DE": Au,
|
|
5604
5604
|
"el-GR": Bu,
|
|
5605
5605
|
"en-US": Ku,
|
|
5606
|
-
"es-ES":
|
|
5607
|
-
"et-EE":
|
|
5606
|
+
"es-ES": Mu,
|
|
5607
|
+
"et-EE": Nu,
|
|
5608
5608
|
"fi-FI": Iu,
|
|
5609
5609
|
"fr-FR": Ru,
|
|
5610
5610
|
"he-IL": Fu,
|
|
@@ -5722,7 +5722,7 @@ function sa(t, e, n) {
|
|
|
5722
5722
|
function ca(t, e, n) {
|
|
5723
5723
|
let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": u, onPressStart: a, onPressUp: s, onPress: d, onPressChange: c, onPressEnd: f, onHoverStart: p, onHoverChange: v, onHoverEnd: b, onKeyDown: $, onKeyUp: x, onFocus: E, onFocusChange: C, onBlur: T, selectionManager: S = e.selectionManager } = t, P = !!u, I = P && t["aria-expanded"] === "true";
|
|
5724
5724
|
var R;
|
|
5725
|
-
let
|
|
5725
|
+
let N = (R = t.isDisabled) !== null && R !== void 0 ? R : S.isDisabled(l);
|
|
5726
5726
|
var K;
|
|
5727
5727
|
let g = (K = t.isSelected) !== null && K !== void 0 ? K : S.isSelected(l), F = aa.get(e), _ = e.collection.getItem(l), k = t.onClose || F.onClose, O = un(), h = (re) => {
|
|
5728
5728
|
var Xe;
|
|
@@ -5737,7 +5737,7 @@ function ca(t, e, n) {
|
|
|
5737
5737
|
P || (S.selectionMode === "single" ? A = "menuitemradio" : S.selectionMode === "multiple" && (A = "menuitemcheckbox"));
|
|
5738
5738
|
let w = dt(), j = dt(), Z = dt(), J = {
|
|
5739
5739
|
id: r,
|
|
5740
|
-
"aria-disabled":
|
|
5740
|
+
"aria-disabled": N || void 0,
|
|
5741
5741
|
role: A,
|
|
5742
5742
|
"aria-label": t["aria-label"],
|
|
5743
5743
|
"aria-labelledby": w,
|
|
@@ -5777,9 +5777,9 @@ function ca(t, e, n) {
|
|
|
5777
5777
|
onPressUp: Le,
|
|
5778
5778
|
onPressChange: c,
|
|
5779
5779
|
onPressEnd: f,
|
|
5780
|
-
isDisabled:
|
|
5780
|
+
isDisabled: N
|
|
5781
5781
|
}), { hoverProps: He } = Ot({
|
|
5782
|
-
isDisabled:
|
|
5782
|
+
isDisabled: N,
|
|
5783
5783
|
onHoverStart(re) {
|
|
5784
5784
|
!pt() && !(I && u) && (S.setFocused(!0), S.setFocusedKey(l)), p == null || p(re);
|
|
5785
5785
|
},
|
|
@@ -5793,10 +5793,10 @@ function ca(t, e, n) {
|
|
|
5793
5793
|
}
|
|
5794
5794
|
switch (re.key) {
|
|
5795
5795
|
case " ":
|
|
5796
|
-
!
|
|
5796
|
+
!N && S.selectionMode === "none" && !P && i !== !1 && k && k();
|
|
5797
5797
|
break;
|
|
5798
5798
|
case "Enter":
|
|
5799
|
-
!
|
|
5799
|
+
!N && i !== !1 && !P && k && k();
|
|
5800
5800
|
break;
|
|
5801
5801
|
default:
|
|
5802
5802
|
P || re.continuePropagation(), $ == null || $(re);
|
|
@@ -5804,7 +5804,7 @@ function ca(t, e, n) {
|
|
|
5804
5804
|
}
|
|
5805
5805
|
},
|
|
5806
5806
|
onKeyUp: x
|
|
5807
|
-
}), { focusProps:
|
|
5807
|
+
}), { focusProps: Ne } = ll({
|
|
5808
5808
|
onBlur: T,
|
|
5809
5809
|
onFocus: E,
|
|
5810
5810
|
onFocusChange: C
|
|
@@ -5825,7 +5825,7 @@ function ca(t, e, n) {
|
|
|
5825
5825
|
Ve,
|
|
5826
5826
|
He,
|
|
5827
5827
|
V,
|
|
5828
|
-
|
|
5828
|
+
Ne,
|
|
5829
5829
|
// Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
|
|
5830
5830
|
F.shouldUseVirtualFocus || P ? {
|
|
5831
5831
|
onMouseDown: (re) => re.preventDefault()
|
|
@@ -5847,7 +5847,7 @@ function ca(t, e, n) {
|
|
|
5847
5847
|
isFocusVisible: ze && S.isFocused && pt() && !I,
|
|
5848
5848
|
isSelected: g,
|
|
5849
5849
|
isPressed: qe,
|
|
5850
|
-
isDisabled:
|
|
5850
|
+
isDisabled: N
|
|
5851
5851
|
};
|
|
5852
5852
|
}
|
|
5853
5853
|
function ev(t) {
|
|
@@ -5914,7 +5914,7 @@ function rv(t) {
|
|
|
5914
5914
|
b();
|
|
5915
5915
|
return;
|
|
5916
5916
|
}
|
|
5917
|
-
let
|
|
5917
|
+
let N = i.current.x, K = i.current.y, g = d.current === "right" ? o.current.left - N : N - o.current.right, F = Math.atan2(K - o.current.top, g) + xi, _ = Math.atan2(K - o.current.bottom, g) - xi, k = Math.atan2(K - R, d.current === "left" ? -(I - N) : I - N), O = k < F && k > _;
|
|
5918
5918
|
c.current = O ? Math.min(c.current + 1, En) : Math.max(c.current - 1, 0), c.current >= En ? p(!0) : p(!1), u.current = P, i.current = {
|
|
5919
5919
|
x: I,
|
|
5920
5920
|
y: R
|
|
@@ -5946,8 +5946,8 @@ function lv(t, e, n) {
|
|
|
5946
5946
|
f.current && (clearTimeout(f.current), f.current = void 0);
|
|
5947
5947
|
}, [
|
|
5948
5948
|
f
|
|
5949
|
-
]), v = ce((
|
|
5950
|
-
p(), e.open(
|
|
5949
|
+
]), v = ce((N) => {
|
|
5950
|
+
p(), e.open(N);
|
|
5951
5951
|
}), b = ce(() => {
|
|
5952
5952
|
p(), e.close();
|
|
5953
5953
|
});
|
|
@@ -5956,18 +5956,18 @@ function lv(t, e, n) {
|
|
|
5956
5956
|
}, [
|
|
5957
5957
|
p
|
|
5958
5958
|
]);
|
|
5959
|
-
let $ = (
|
|
5960
|
-
if (
|
|
5961
|
-
switch (
|
|
5959
|
+
let $ = (N) => {
|
|
5960
|
+
if (N.currentTarget.contains(document.activeElement))
|
|
5961
|
+
switch (N.key) {
|
|
5962
5962
|
case "ArrowLeft":
|
|
5963
|
-
c === "ltr" &&
|
|
5963
|
+
c === "ltr" && N.currentTarget.contains(N.target) && (N.preventDefault(), N.stopPropagation(), b(), !a && n.current && Se(n.current));
|
|
5964
5964
|
break;
|
|
5965
5965
|
case "ArrowRight":
|
|
5966
|
-
c === "rtl" &&
|
|
5966
|
+
c === "rtl" && N.currentTarget.contains(N.target) && (N.preventDefault(), N.stopPropagation(), b(), !a && n.current && Se(n.current));
|
|
5967
5967
|
break;
|
|
5968
5968
|
case "Escape":
|
|
5969
5969
|
var K;
|
|
5970
|
-
!((K = l.current) === null || K === void 0) && K.contains(
|
|
5970
|
+
!((K = l.current) === null || K === void 0) && K.contains(N.target) && (N.stopPropagation(), b(), !a && n.current && Se(n.current));
|
|
5971
5971
|
break;
|
|
5972
5972
|
}
|
|
5973
5973
|
};
|
|
@@ -5981,30 +5981,30 @@ function lv(t, e, n) {
|
|
|
5981
5981
|
autoFocus: (x = e.focusStrategy) !== null && x !== void 0 ? x : void 0,
|
|
5982
5982
|
onKeyDown: $
|
|
5983
5983
|
}
|
|
5984
|
-
}, C = (
|
|
5985
|
-
switch (
|
|
5984
|
+
}, C = (N) => {
|
|
5985
|
+
switch (N.key) {
|
|
5986
5986
|
case "ArrowRight":
|
|
5987
|
-
o || (c === "ltr" ? (
|
|
5987
|
+
o || (c === "ltr" ? (N.preventDefault(), e.isOpen || v("first"), i === "menu" && (l != null && l.current) && document.activeElement === (n == null ? void 0 : n.current) && Se(l.current)) : e.isOpen ? b() : N.continuePropagation());
|
|
5988
5988
|
break;
|
|
5989
5989
|
case "ArrowLeft":
|
|
5990
|
-
o || (c === "rtl" ? (
|
|
5990
|
+
o || (c === "rtl" ? (N.preventDefault(), e.isOpen || v("first"), i === "menu" && (l != null && l.current) && document.activeElement === (n == null ? void 0 : n.current) && Se(l.current)) : e.isOpen ? b() : N.continuePropagation());
|
|
5991
5991
|
break;
|
|
5992
5992
|
default:
|
|
5993
|
-
|
|
5993
|
+
N.continuePropagation();
|
|
5994
5994
|
break;
|
|
5995
5995
|
}
|
|
5996
|
-
}, T = (
|
|
5997
|
-
!o && (
|
|
5998
|
-
}, S = (
|
|
5999
|
-
!o && (
|
|
6000
|
-
}, P = (
|
|
6001
|
-
o || (
|
|
5996
|
+
}, T = (N) => {
|
|
5997
|
+
!o && (N.pointerType === "virtual" || N.pointerType === "keyboard") && v("first");
|
|
5998
|
+
}, S = (N) => {
|
|
5999
|
+
!o && (N.pointerType === "touch" || N.pointerType === "mouse") && v();
|
|
6000
|
+
}, P = (N) => {
|
|
6001
|
+
o || (N && !e.isOpen ? f.current || (f.current = setTimeout(() => {
|
|
6002
6002
|
v();
|
|
6003
|
-
}, u)) :
|
|
6004
|
-
}, I = (
|
|
6003
|
+
}, u)) : N || p());
|
|
6004
|
+
}, I = (N) => {
|
|
6005
6005
|
var K;
|
|
6006
|
-
e.isOpen && (!((K = r.current) === null || K === void 0) && K.contains(
|
|
6007
|
-
}, R = (
|
|
6006
|
+
e.isOpen && (!((K = r.current) === null || K === void 0) && K.contains(N.relatedTarget)) && b();
|
|
6007
|
+
}, R = (N) => N !== n.current;
|
|
6008
6008
|
return rv({
|
|
6009
6009
|
menuRef: r,
|
|
6010
6010
|
submenuRef: l,
|
|
@@ -6559,8 +6559,8 @@ Ka = {
|
|
|
6559
6559
|
})}.`,
|
|
6560
6560
|
selectedItem: (t) => `${t.item} er valgt.`
|
|
6561
6561
|
};
|
|
6562
|
-
var
|
|
6563
|
-
|
|
6562
|
+
var Ma = {};
|
|
6563
|
+
Ma = {
|
|
6564
6564
|
deselectedItem: (t) => `${t.item} niet geselecteerd.`,
|
|
6565
6565
|
longPressToSelect: "Druk lang om de selectiemodus te openen.",
|
|
6566
6566
|
select: "Selecteren",
|
|
@@ -6572,8 +6572,8 @@ Na = {
|
|
|
6572
6572
|
})}.`,
|
|
6573
6573
|
selectedItem: (t) => `${t.item} geselecteerd.`
|
|
6574
6574
|
};
|
|
6575
|
-
var
|
|
6576
|
-
|
|
6575
|
+
var Na = {};
|
|
6576
|
+
Na = {
|
|
6577
6577
|
deselectedItem: (t) => `Nie zaznaczono ${t.item}.`,
|
|
6578
6578
|
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
|
|
6579
6579
|
select: "Zaznacz",
|
|
@@ -6763,8 +6763,8 @@ vl = {
|
|
|
6763
6763
|
"lt-LT": Aa,
|
|
6764
6764
|
"lv-LV": Ba,
|
|
6765
6765
|
"nb-NO": Ka,
|
|
6766
|
-
"nl-NL":
|
|
6767
|
-
"pl-PL":
|
|
6766
|
+
"nl-NL": Ma,
|
|
6767
|
+
"pl-PL": Na,
|
|
6768
6768
|
"pt-BR": Ia,
|
|
6769
6769
|
"pt-PT": Ra,
|
|
6770
6770
|
"ro-RO": Fa,
|
|
@@ -6812,7 +6812,7 @@ function uv(t, e) {
|
|
|
6812
6812
|
}
|
|
6813
6813
|
e.selectionManager.selectionMode === "multiple" && (c.length === 0 || l === "all" || l.size > 1 || i.current === "all" || ((u = i.current) === null || u === void 0 ? void 0 : u.size) > 1) && c.push(l === "all" ? r.format("selectedAll") : r.format("selectedCount", {
|
|
6814
6814
|
count: l.size
|
|
6815
|
-
})), c.length > 0 &&
|
|
6815
|
+
})), c.length > 0 && Nn(c.join(" ")), i.current = l;
|
|
6816
6816
|
});
|
|
6817
6817
|
Xi(() => {
|
|
6818
6818
|
if (e.selectionManager.isFocused) o();
|
|
@@ -6891,12 +6891,12 @@ function cv(t, e, n) {
|
|
|
6891
6891
|
hasItemActions: !!(s || d)
|
|
6892
6892
|
}), T = ye(t, {
|
|
6893
6893
|
labelable: !0
|
|
6894
|
-
}), S = te((
|
|
6894
|
+
}), S = te((N) => {
|
|
6895
6895
|
if (f.isFocused) {
|
|
6896
|
-
|
|
6896
|
+
N.currentTarget.contains(N.target) || f.setFocused(!1);
|
|
6897
6897
|
return;
|
|
6898
6898
|
}
|
|
6899
|
-
|
|
6899
|
+
N.currentTarget.contains(N.target) && f.setFocused(!0);
|
|
6900
6900
|
}, [
|
|
6901
6901
|
f
|
|
6902
6902
|
]), P = H(() => ({
|
|
@@ -7030,8 +7030,8 @@ function Ga(t, e, n) {
|
|
|
7030
7030
|
case "ArrowUp":
|
|
7031
7031
|
case "ArrowDown":
|
|
7032
7032
|
if (!C.altKey && n.current.contains(C.target)) {
|
|
7033
|
-
var
|
|
7034
|
-
C.stopPropagation(), C.preventDefault(), (
|
|
7033
|
+
var N;
|
|
7034
|
+
C.stopPropagation(), C.preventDefault(), (N = n.current.parentElement) === null || N === void 0 || N.dispatchEvent(new KeyboardEvent(C.nativeEvent.type, C.nativeEvent));
|
|
7035
7035
|
}
|
|
7036
7036
|
break;
|
|
7037
7037
|
}
|
|
@@ -7532,9 +7532,9 @@ function $v(t, e, n) {
|
|
|
7532
7532
|
}, e, n), f = (R) => {
|
|
7533
7533
|
switch (R.key) {
|
|
7534
7534
|
case "ArrowLeft": {
|
|
7535
|
-
var
|
|
7535
|
+
var N, K;
|
|
7536
7536
|
R.preventDefault();
|
|
7537
|
-
let _ = e.selectedKey != null ? (
|
|
7537
|
+
let _ = e.selectedKey != null ? (N = s.getKeyAbove) === null || N === void 0 ? void 0 : N.call(s, e.selectedKey) : (K = s.getFirstKey) === null || K === void 0 ? void 0 : K.call(s);
|
|
7538
7538
|
_ && e.setSelectedKey(_);
|
|
7539
7539
|
break;
|
|
7540
7540
|
}
|
|
@@ -7728,8 +7728,8 @@ Ks = {
|
|
|
7728
7728
|
selectAll: "تحديد الكل",
|
|
7729
7729
|
sortable: "عمود قابل للترتيب"
|
|
7730
7730
|
};
|
|
7731
|
-
var
|
|
7732
|
-
|
|
7731
|
+
var Ms = {};
|
|
7732
|
+
Ms = {
|
|
7733
7733
|
ascending: "възходящ",
|
|
7734
7734
|
ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
|
|
7735
7735
|
columnSize: (t) => `${t.value} пиксела`,
|
|
@@ -7740,8 +7740,8 @@ Ns = {
|
|
|
7740
7740
|
selectAll: "Изберете всичко",
|
|
7741
7741
|
sortable: "сортираща колона"
|
|
7742
7742
|
};
|
|
7743
|
-
var
|
|
7744
|
-
|
|
7743
|
+
var Ns = {};
|
|
7744
|
+
Ns = {
|
|
7745
7745
|
ascending: "vzestupně",
|
|
7746
7746
|
ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
|
|
7747
7747
|
columnSize: (t) => `${t.value} pixelů`,
|
|
@@ -8127,8 +8127,8 @@ dc = {
|
|
|
8127
8127
|
var bl = {};
|
|
8128
8128
|
bl = {
|
|
8129
8129
|
"ar-AE": Ks,
|
|
8130
|
-
"bg-BG":
|
|
8131
|
-
"cs-CZ":
|
|
8130
|
+
"bg-BG": Ms,
|
|
8131
|
+
"cs-CZ": Ns,
|
|
8132
8132
|
"da-DK": Is,
|
|
8133
8133
|
"de-DE": Rs,
|
|
8134
8134
|
"el-GR": Fs,
|
|
@@ -8290,7 +8290,7 @@ function kv(t, e, n) {
|
|
|
8290
8290
|
e.collection.columns
|
|
8291
8291
|
]), x = Hn($);
|
|
8292
8292
|
return Xi(() => {
|
|
8293
|
-
$ &&
|
|
8293
|
+
$ && Nn($, "assertive", 500);
|
|
8294
8294
|
}, [
|
|
8295
8295
|
$
|
|
8296
8296
|
]), {
|
|
@@ -8395,7 +8395,7 @@ function Kv(t, e, n) {
|
|
|
8395
8395
|
rowProps: i
|
|
8396
8396
|
};
|
|
8397
8397
|
}
|
|
8398
|
-
function
|
|
8398
|
+
function Mv(t, e, n) {
|
|
8399
8399
|
var r;
|
|
8400
8400
|
let { gridCellProps: l, isPressed: i } = Ga(t, e, n), o = (r = t.node.column) === null || r === void 0 ? void 0 : r.key;
|
|
8401
8401
|
return o != null && e.collection.rowHeaderColumnKeys.has(o) && (l.role = "rowheader", l.id = Bs(e, t.node.parentKey, o)), {
|
|
@@ -8403,7 +8403,7 @@ function Nv(t, e, n) {
|
|
|
8403
8403
|
isPressed: i
|
|
8404
8404
|
};
|
|
8405
8405
|
}
|
|
8406
|
-
function
|
|
8406
|
+
function Nv() {
|
|
8407
8407
|
return dv();
|
|
8408
8408
|
}
|
|
8409
8409
|
function Iv(t, e) {
|
|
@@ -9803,7 +9803,7 @@ function o0(t, e) {
|
|
|
9803
9803
|
let n = new Set(t);
|
|
9804
9804
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
9805
9805
|
}
|
|
9806
|
-
const $c = ne(void 0),
|
|
9806
|
+
const $c = ne(void 0), Me = () => {
|
|
9807
9807
|
const t = q($c);
|
|
9808
9808
|
if (t === void 0)
|
|
9809
9809
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
@@ -9947,7 +9947,7 @@ const dn = Ke(
|
|
|
9947
9947
|
target: i || (p ? "_blank" : void 0),
|
|
9948
9948
|
href: l,
|
|
9949
9949
|
rel: p || i === "_blank" ? "noopener noreferrer" : void 0
|
|
9950
|
-
}, { className: b } =
|
|
9950
|
+
}, { className: b } = Me(), $ = B(null), x = B(null), { buttonProps: E } = sn(
|
|
9951
9951
|
{
|
|
9952
9952
|
onPress: o,
|
|
9953
9953
|
elementType: f,
|
|
@@ -9956,14 +9956,12 @@ const dn = Ke(
|
|
|
9956
9956
|
},
|
|
9957
9957
|
$
|
|
9958
9958
|
);
|
|
9959
|
-
md(() => {
|
|
9959
|
+
return md(() => {
|
|
9960
9960
|
typeof c == "function" ? c($.current) : c && (c.current = $.current);
|
|
9961
|
-
}, [c])
|
|
9962
|
-
const E = B(null), C = !!r;
|
|
9963
|
-
return /* @__PURE__ */ m.jsxs(
|
|
9961
|
+
}, [c]), /* @__PURE__ */ m.jsxs(
|
|
9964
9962
|
f,
|
|
9965
9963
|
{
|
|
9966
|
-
...
|
|
9964
|
+
...E,
|
|
9967
9965
|
...v,
|
|
9968
9966
|
className: G(
|
|
9969
9967
|
"proton-Button",
|
|
@@ -9976,15 +9974,14 @@ const dn = Ke(
|
|
|
9976
9974
|
ref: $,
|
|
9977
9975
|
"data-testid": s,
|
|
9978
9976
|
children: [
|
|
9979
|
-
|
|
9977
|
+
r && /* @__PURE__ */ m.jsx(
|
|
9980
9978
|
"div",
|
|
9981
9979
|
{
|
|
9982
9980
|
className: G(
|
|
9983
9981
|
"proton-Button__icon-decorator",
|
|
9984
|
-
"proton-Button__icon-decorator--prepend",
|
|
9985
9982
|
n && "proton-Button__icon-decorator--fullWidth"
|
|
9986
9983
|
),
|
|
9987
|
-
ref:
|
|
9984
|
+
ref: x,
|
|
9988
9985
|
children: r
|
|
9989
9986
|
}
|
|
9990
9987
|
),
|
|
@@ -9995,7 +9992,7 @@ const dn = Ke(
|
|
|
9995
9992
|
}
|
|
9996
9993
|
), ml = Ke(
|
|
9997
9994
|
({ fadeIn: t = !1, onClose: e, children: n }, r) => {
|
|
9998
|
-
const { theme: l, palette: i } =
|
|
9995
|
+
const { theme: l, palette: i } = Me();
|
|
9999
9996
|
return z(() => {
|
|
10000
9997
|
if (!e) return;
|
|
10001
9998
|
const o = (u) => {
|
|
@@ -10082,12 +10079,12 @@ const xc = ({
|
|
|
10082
10079
|
"data-testid": f
|
|
10083
10080
|
}) => {
|
|
10084
10081
|
$d(t);
|
|
10085
|
-
const { className: p, theme: v } =
|
|
10082
|
+
const { className: p, theme: v } = Me(), [b, $] = W(0), [x, E] = W([]), [C, T] = W({
|
|
10086
10083
|
title: s,
|
|
10087
10084
|
actions: a,
|
|
10088
10085
|
key: null,
|
|
10089
10086
|
previousKey: null
|
|
10090
|
-
}), S = C.actions || [], P = B(null), I = B(null), R = B(null),
|
|
10087
|
+
}), S = C.actions || [], P = B(null), I = B(null), R = B(null), N = B(!1), { isClosing: K, handleClose: g } = Oi({
|
|
10091
10088
|
onClose: c,
|
|
10092
10089
|
overlayRef: R
|
|
10093
10090
|
}), F = S && S.length > 0, _ = () => {
|
|
@@ -10114,8 +10111,8 @@ const xc = ({
|
|
|
10114
10111
|
(J = Z == null ? void 0 : Z.children) != null && J.length && h(j);
|
|
10115
10112
|
},
|
|
10116
10113
|
onClose: () => {
|
|
10117
|
-
if (
|
|
10118
|
-
|
|
10114
|
+
if (N.current) {
|
|
10115
|
+
N.current = !1;
|
|
10119
10116
|
return;
|
|
10120
10117
|
}
|
|
10121
10118
|
c == null || c();
|
|
@@ -10144,7 +10141,7 @@ const xc = ({
|
|
|
10144
10141
|
actions: Z.children,
|
|
10145
10142
|
key: Z.key,
|
|
10146
10143
|
previousKey: J.key
|
|
10147
|
-
})),
|
|
10144
|
+
})), N.current = !0;
|
|
10148
10145
|
}
|
|
10149
10146
|
function A() {
|
|
10150
10147
|
if (x.length > 0) {
|
|
@@ -10263,7 +10260,7 @@ const xc = ({
|
|
|
10263
10260
|
warning: "warning",
|
|
10264
10261
|
danger: "danger"
|
|
10265
10262
|
}, Fh = ({ variant: t, children: e, ...n }) => {
|
|
10266
|
-
const { className: r } =
|
|
10263
|
+
const { className: r } = Me();
|
|
10267
10264
|
return /* @__PURE__ */ m.jsx(
|
|
10268
10265
|
"div",
|
|
10269
10266
|
{
|
|
@@ -11042,7 +11039,7 @@ function K0({ children: t }) {
|
|
|
11042
11039
|
value: e
|
|
11043
11040
|
}, n) : /* @__PURE__ */ Sd(n, e);
|
|
11044
11041
|
}
|
|
11045
|
-
const
|
|
11042
|
+
const M0 = /* @__PURE__ */ ne(null), N0 = /* @__PURE__ */ new Set([
|
|
11046
11043
|
"form",
|
|
11047
11044
|
"formAction",
|
|
11048
11045
|
"formEncType",
|
|
@@ -11074,7 +11071,7 @@ const N0 = /* @__PURE__ */ ne(null), M0 = /* @__PURE__ */ new Set([
|
|
|
11074
11071
|
let E = {
|
|
11075
11072
|
"aria-labelledby": $ || v
|
|
11076
11073
|
};
|
|
11077
|
-
(!x.current && a && l || x.current && a && !l) &&
|
|
11074
|
+
(!x.current && a && l || x.current && a && !l) && Nn(E, "assertive"), x.current = l;
|
|
11078
11075
|
}, [
|
|
11079
11076
|
l,
|
|
11080
11077
|
a,
|
|
@@ -11082,7 +11079,7 @@ const N0 = /* @__PURE__ */ ne(null), M0 = /* @__PURE__ */ new Set([
|
|
|
11082
11079
|
v
|
|
11083
11080
|
]), /* @__PURE__ */ D.createElement("button", {
|
|
11084
11081
|
...ye(e, {
|
|
11085
|
-
propNames:
|
|
11082
|
+
propNames: N0
|
|
11086
11083
|
}),
|
|
11087
11084
|
...U(i, u, d),
|
|
11088
11085
|
...p,
|
|
@@ -11098,7 +11095,7 @@ const N0 = /* @__PURE__ */ ne(null), M0 = /* @__PURE__ */ new Set([
|
|
|
11098
11095
|
"data-focused": a || void 0,
|
|
11099
11096
|
"data-pending": l || void 0,
|
|
11100
11097
|
"data-focus-visible": s || void 0
|
|
11101
|
-
}, /* @__PURE__ */ D.createElement(
|
|
11098
|
+
}, /* @__PURE__ */ D.createElement(M0.Provider, {
|
|
11102
11099
|
value: {
|
|
11103
11100
|
id: b
|
|
11104
11101
|
}
|
|
@@ -11107,23 +11104,23 @@ const N0 = /* @__PURE__ */ ne(null), M0 = /* @__PURE__ */ new Set([
|
|
|
11107
11104
|
function F0(t) {
|
|
11108
11105
|
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;
|
|
11109
11106
|
}
|
|
11110
|
-
const
|
|
11111
|
-
[e, n] = bt(e, n,
|
|
11107
|
+
const Mc = /* @__PURE__ */ ne({}), Ki = /* @__PURE__ */ Ke(function(e, n) {
|
|
11108
|
+
[e, n] = bt(e, n, Mc);
|
|
11112
11109
|
let { elementType: r = "span", ...l } = e;
|
|
11113
11110
|
return /* @__PURE__ */ D.createElement(r, {
|
|
11114
11111
|
className: "react-aria-Text",
|
|
11115
11112
|
...l,
|
|
11116
11113
|
ref: n
|
|
11117
11114
|
});
|
|
11118
|
-
}),
|
|
11115
|
+
}), Mi = /* @__PURE__ */ ne(null), _0 = /* @__PURE__ */ ne(null), L0 = {
|
|
11119
11116
|
CollectionRoot({ collection: t, renderDropIndicator: e }) {
|
|
11120
|
-
return
|
|
11117
|
+
return Ni(t, null, e);
|
|
11121
11118
|
},
|
|
11122
11119
|
CollectionBranch({ collection: t, parent: e, renderDropIndicator: n }) {
|
|
11123
|
-
return
|
|
11120
|
+
return Ni(t, e, n);
|
|
11124
11121
|
}
|
|
11125
11122
|
};
|
|
11126
|
-
function
|
|
11123
|
+
function Ni(t, e, n) {
|
|
11127
11124
|
return Dc({
|
|
11128
11125
|
items: e ? t.getChildren(e.key) : t,
|
|
11129
11126
|
dependencies: [
|
|
@@ -11154,8 +11151,8 @@ function O0(t) {
|
|
|
11154
11151
|
t
|
|
11155
11152
|
]);
|
|
11156
11153
|
}
|
|
11157
|
-
const
|
|
11158
|
-
return [e, n] = bt(e, n,
|
|
11154
|
+
const Nc = /* @__PURE__ */ ne({}), j0 = /* @__PURE__ */ Ac("header", function(e, n) {
|
|
11155
|
+
return [e, n] = bt(e, n, Nc), /* @__PURE__ */ D.createElement("header", {
|
|
11159
11156
|
className: "react-aria-Header",
|
|
11160
11157
|
...e,
|
|
11161
11158
|
ref: n
|
|
@@ -11357,7 +11354,7 @@ const W0 = /* @__PURE__ */ ne({}), Fc = /* @__PURE__ */ ne(null), er = /* @__PUR
|
|
|
11357
11354
|
}));
|
|
11358
11355
|
});
|
|
11359
11356
|
function G0({ props: t, collection: e, menuRef: n }) {
|
|
11360
|
-
let { filter: r, collectionProps: l, collectionRef: i } = q(
|
|
11357
|
+
let { filter: r, collectionProps: l, collectionRef: i } = q(Mi) || {};
|
|
11361
11358
|
n = Lt(H(() => Xr(n, i !== void 0 ? i : null), [
|
|
11362
11359
|
i,
|
|
11363
11360
|
n
|
|
@@ -11426,7 +11423,7 @@ function G0({ props: t, collection: e, menuRef: n }) {
|
|
|
11426
11423
|
null
|
|
11427
11424
|
],
|
|
11428
11425
|
[
|
|
11429
|
-
|
|
11426
|
+
Mi,
|
|
11430
11427
|
null
|
|
11431
11428
|
],
|
|
11432
11429
|
[
|
|
@@ -11488,7 +11485,7 @@ function Oc(t, e, n, r = "react-aria-MenuSection") {
|
|
|
11488
11485
|
}, /* @__PURE__ */ D.createElement(fn, {
|
|
11489
11486
|
values: [
|
|
11490
11487
|
[
|
|
11491
|
-
|
|
11488
|
+
Nc,
|
|
11492
11489
|
{
|
|
11493
11490
|
...c,
|
|
11494
11491
|
ref: a
|
|
@@ -11545,7 +11542,7 @@ const q0 = /* @__PURE__ */ Bc("section", Oc), Ln = /* @__PURE__ */ ne(null), X0
|
|
|
11545
11542
|
}, /* @__PURE__ */ D.createElement(fn, {
|
|
11546
11543
|
values: [
|
|
11547
11544
|
[
|
|
11548
|
-
|
|
11545
|
+
Mc,
|
|
11549
11546
|
{
|
|
11550
11547
|
slots: {
|
|
11551
11548
|
[Cc]: d,
|
|
@@ -11577,7 +11574,7 @@ function Z0(t) {
|
|
|
11577
11574
|
}
|
|
11578
11575
|
]
|
|
11579
11576
|
]
|
|
11580
|
-
}, /* @__PURE__ */ D.createElement(
|
|
11577
|
+
}, /* @__PURE__ */ D.createElement(Mf, {
|
|
11581
11578
|
...r,
|
|
11582
11579
|
ref: n
|
|
11583
11580
|
}, t.children));
|
|
@@ -11653,7 +11650,7 @@ function eh({
|
|
|
11653
11650
|
title: o,
|
|
11654
11651
|
triggerRef: u
|
|
11655
11652
|
}) {
|
|
11656
|
-
const { className: a, style: s } =
|
|
11653
|
+
const { className: a, style: s } = Me();
|
|
11657
11654
|
return /* @__PURE__ */ m.jsx(
|
|
11658
11655
|
Rc,
|
|
11659
11656
|
{
|
|
@@ -11694,26 +11691,19 @@ function Vc(t) {
|
|
|
11694
11691
|
let o = ((u = e.label) == null ? void 0 : u.toString()) || "";
|
|
11695
11692
|
return e.children ? /* @__PURE__ */ m.jsxs(U0, { children: [
|
|
11696
11693
|
/* @__PURE__ */ m.jsx(Ri, { textValue: o, children: e.label }),
|
|
11697
|
-
/* @__PURE__ */ m.jsx(
|
|
11698
|
-
|
|
11694
|
+
/* @__PURE__ */ m.jsx(Rc, { className: G("proton-Popover", n), style: r, children: /* @__PURE__ */ m.jsx(
|
|
11695
|
+
Lc,
|
|
11699
11696
|
{
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
onClose: i,
|
|
11709
|
-
children: (a) => Vc({
|
|
11710
|
-
...t,
|
|
11711
|
-
item: a
|
|
11712
|
-
})
|
|
11713
|
-
}
|
|
11714
|
-
)
|
|
11697
|
+
items: e.children,
|
|
11698
|
+
className: "proton-ListBox proton-MenuTrigger__menu",
|
|
11699
|
+
disabledKeys: l,
|
|
11700
|
+
onClose: i,
|
|
11701
|
+
children: (a) => Vc({
|
|
11702
|
+
...t,
|
|
11703
|
+
item: a
|
|
11704
|
+
})
|
|
11715
11705
|
}
|
|
11716
|
-
)
|
|
11706
|
+
) })
|
|
11717
11707
|
] }, e.key) : /* @__PURE__ */ m.jsxs(
|
|
11718
11708
|
Ri,
|
|
11719
11709
|
{
|
|
@@ -11757,77 +11747,75 @@ function Ri(t) {
|
|
|
11757
11747
|
}
|
|
11758
11748
|
function th({
|
|
11759
11749
|
renderTrigger: t,
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
disabledKeys: c
|
|
11750
|
+
size: e = 24,
|
|
11751
|
+
title: n,
|
|
11752
|
+
items: r,
|
|
11753
|
+
disabled: l,
|
|
11754
|
+
onClose: i,
|
|
11755
|
+
triggerTestId: o = "MenuTrigger-Trigger",
|
|
11756
|
+
menuTestId: u,
|
|
11757
|
+
onSelectionChange: a,
|
|
11758
|
+
selectedKey: s,
|
|
11759
|
+
disabledKeys: d
|
|
11771
11760
|
}) {
|
|
11772
|
-
const
|
|
11773
|
-
() =>
|
|
11774
|
-
[
|
|
11775
|
-
),
|
|
11761
|
+
const c = H(
|
|
11762
|
+
() => r.map((P) => ({ ...P, id: P.key })),
|
|
11763
|
+
[r]
|
|
11764
|
+
), f = Ur(Yr.SMALL), p = fc({}), { isOpen: v, setOpen: b } = p, $ = B(null), { menuTriggerProps: x, menuProps: E } = ua(
|
|
11776
11765
|
{},
|
|
11777
|
-
|
|
11778
|
-
|
|
11766
|
+
p,
|
|
11767
|
+
$
|
|
11779
11768
|
);
|
|
11780
|
-
function
|
|
11781
|
-
const
|
|
11782
|
-
|
|
11769
|
+
function C(P) {
|
|
11770
|
+
const I = Array.from(P)[0];
|
|
11771
|
+
I && (a == null || a(I));
|
|
11783
11772
|
}
|
|
11784
|
-
const
|
|
11773
|
+
const T = /* @__PURE__ */ m.jsx(
|
|
11785
11774
|
R0,
|
|
11786
11775
|
{
|
|
11787
|
-
...
|
|
11788
|
-
"data-testid":
|
|
11789
|
-
isDisabled:
|
|
11776
|
+
...x,
|
|
11777
|
+
"data-testid": o,
|
|
11778
|
+
isDisabled: l,
|
|
11790
11779
|
className: G("proton-MenuTrigger__button"),
|
|
11791
|
-
ref:
|
|
11792
|
-
children: /* @__PURE__ */ m.jsx(nh, { size:
|
|
11793
|
-
}
|
|
11794
|
-
),
|
|
11795
|
-
isOpen:
|
|
11796
|
-
setIsOpen:
|
|
11797
|
-
disabled:
|
|
11798
|
-
triggerRef:
|
|
11799
|
-
}) :
|
|
11780
|
+
ref: $,
|
|
11781
|
+
children: /* @__PURE__ */ m.jsx(nh, { size: e })
|
|
11782
|
+
}
|
|
11783
|
+
), S = t ? t({
|
|
11784
|
+
isOpen: v,
|
|
11785
|
+
setIsOpen: b,
|
|
11786
|
+
disabled: l,
|
|
11787
|
+
triggerRef: $
|
|
11788
|
+
}) : T;
|
|
11800
11789
|
return z(() => () => {
|
|
11801
|
-
|
|
11802
|
-
}, [
|
|
11803
|
-
|
|
11804
|
-
|
|
11790
|
+
v && (i == null || i());
|
|
11791
|
+
}, [v, i]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
11792
|
+
S,
|
|
11793
|
+
v && f && /* @__PURE__ */ m.jsx(
|
|
11805
11794
|
xc,
|
|
11806
11795
|
{
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
onClose: () => $(!1),
|
|
11796
|
+
actions: c,
|
|
11797
|
+
title: n,
|
|
11798
|
+
isOpen: v,
|
|
11799
|
+
onClose: () => b(!1),
|
|
11812
11800
|
showCancel: !0,
|
|
11813
|
-
"data-testid":
|
|
11801
|
+
"data-testid": u,
|
|
11814
11802
|
selectionMode: "single",
|
|
11815
|
-
onSelectionChange:
|
|
11816
|
-
selectedKeys:
|
|
11817
|
-
disabledKeys:
|
|
11803
|
+
onSelectionChange: C,
|
|
11804
|
+
selectedKeys: s ? [s] : void 0,
|
|
11805
|
+
disabledKeys: d
|
|
11818
11806
|
}
|
|
11819
11807
|
),
|
|
11820
|
-
|
|
11808
|
+
v && !f && /* @__PURE__ */ m.jsx(
|
|
11821
11809
|
eh,
|
|
11822
11810
|
{
|
|
11823
|
-
isOpen:
|
|
11824
|
-
setIsOpen:
|
|
11825
|
-
items:
|
|
11826
|
-
selectedKey:
|
|
11827
|
-
disabledKeys:
|
|
11828
|
-
title:
|
|
11829
|
-
onSelectionChange:
|
|
11830
|
-
triggerRef:
|
|
11811
|
+
isOpen: v,
|
|
11812
|
+
setIsOpen: b,
|
|
11813
|
+
items: c,
|
|
11814
|
+
selectedKey: s,
|
|
11815
|
+
disabledKeys: d,
|
|
11816
|
+
title: n,
|
|
11817
|
+
onSelectionChange: C,
|
|
11818
|
+
triggerRef: $
|
|
11831
11819
|
}
|
|
11832
11820
|
)
|
|
11833
11821
|
] });
|
|
@@ -11853,7 +11841,7 @@ function _h({
|
|
|
11853
11841
|
...d
|
|
11854
11842
|
}) {
|
|
11855
11843
|
const c = a ? Hc / 2 : 0;
|
|
11856
|
-
return
|
|
11844
|
+
return /* @__PURE__ */ m.jsxs("div", { className: "proton-ButtonWithSelect", children: [
|
|
11857
11845
|
/* @__PURE__ */ m.jsx(
|
|
11858
11846
|
"div",
|
|
11859
11847
|
{
|
|
@@ -11919,7 +11907,7 @@ const Oh = ({
|
|
|
11919
11907
|
hasPrimaryGradient: e = !1,
|
|
11920
11908
|
"data-testid": n
|
|
11921
11909
|
}) => {
|
|
11922
|
-
const { theme: r, palette: l, style: i } =
|
|
11910
|
+
const { theme: r, palette: l, style: i } = Me(), o = i["--proton-control__background-color-light"];
|
|
11923
11911
|
let u = o, a = at(o, 0.01);
|
|
11924
11912
|
if (r === et.CUSTOM_DARK && (u = at(o, 0.1), a = at(o, 0.12), e)) {
|
|
11925
11913
|
const s = at(
|
|
@@ -11969,7 +11957,7 @@ function zh({
|
|
|
11969
11957
|
imageUrl: e = "",
|
|
11970
11958
|
onLoad: n
|
|
11971
11959
|
}) {
|
|
11972
|
-
const { palette: r } =
|
|
11960
|
+
const { palette: r } = Me(), l = xd(r.BASE_COLOR), i = lh(l);
|
|
11973
11961
|
return /* @__PURE__ */ m.jsxs(
|
|
11974
11962
|
"div",
|
|
11975
11963
|
{
|
|
@@ -12047,7 +12035,7 @@ const Wc = async (t, e) => {
|
|
|
12047
12035
|
autoComplete: p,
|
|
12048
12036
|
"data-testid": v
|
|
12049
12037
|
}, b) => {
|
|
12050
|
-
const $ = B(null), x = B(null), E = B(null), C = B(null), { className: T } =
|
|
12038
|
+
const $ = B(null), x = B(null), E = B(null), C = B(null), { className: T } = Me(), S = b || $, { labelProps: P, inputProps: I, descriptionProps: R, errorMessageProps: N } = wo(
|
|
12051
12039
|
{
|
|
12052
12040
|
label: u,
|
|
12053
12041
|
name: a,
|
|
@@ -12156,7 +12144,7 @@ const Wc = async (t, e) => {
|
|
|
12156
12144
|
i ? /* @__PURE__ */ m.jsx(
|
|
12157
12145
|
"div",
|
|
12158
12146
|
{
|
|
12159
|
-
...
|
|
12147
|
+
...N,
|
|
12160
12148
|
role: "alert",
|
|
12161
12149
|
className: G("proton-Input__error", "proton-Input__text"),
|
|
12162
12150
|
id: `${a}-error`,
|
|
@@ -12456,7 +12444,7 @@ function dh({
|
|
|
12456
12444
|
offset: r,
|
|
12457
12445
|
...l
|
|
12458
12446
|
}) {
|
|
12459
|
-
const i = B(null), { popoverRef: o = i } = l, { className: u, style: a } =
|
|
12447
|
+
const i = B(null), { popoverRef: o = i } = l, { className: u, style: a } = Me();
|
|
12460
12448
|
let { popoverProps: s, underlayProps: d, arrowProps: c, placement: f } = vu(
|
|
12461
12449
|
{
|
|
12462
12450
|
...l,
|
|
@@ -12747,7 +12735,7 @@ function Fi({
|
|
|
12747
12735
|
children: e,
|
|
12748
12736
|
isHidden: n = !1
|
|
12749
12737
|
}) {
|
|
12750
|
-
let { rowGroupProps: r } =
|
|
12738
|
+
let { rowGroupProps: r } = Nv();
|
|
12751
12739
|
return /* @__PURE__ */ m.jsx(
|
|
12752
12740
|
t,
|
|
12753
12741
|
{
|
|
@@ -12796,7 +12784,7 @@ function mh({
|
|
|
12796
12784
|
);
|
|
12797
12785
|
}
|
|
12798
12786
|
function gh({ cell: t, state: e, width: n, onClick: r }) {
|
|
12799
|
-
let l = B(), { gridCellProps: i } =
|
|
12787
|
+
let l = B(), { gridCellProps: i } = Mv({ node: t }, e, l), { isFocusVisible: o, focusProps: u } = qn();
|
|
12800
12788
|
const { align: a = "left" } = t.props;
|
|
12801
12789
|
return /* @__PURE__ */ m.jsx(
|
|
12802
12790
|
"td",
|
|
@@ -12881,7 +12869,7 @@ const e4 = ({
|
|
|
12881
12869
|
}
|
|
12882
12870
|
);
|
|
12883
12871
|
function yh({ children: t, arrow: e, ...n }) {
|
|
12884
|
-
const { style: r, className: l } =
|
|
12872
|
+
const { style: r, className: l } = Me();
|
|
12885
12873
|
return /* @__PURE__ */ m.jsxs(
|
|
12886
12874
|
J0,
|
|
12887
12875
|
{
|
|
@@ -12921,12 +12909,19 @@ function $h({
|
|
|
12921
12909
|
p && !c.current && (f.current = !0), i && i(p), c.current || d(p), c.current = !1;
|
|
12922
12910
|
},
|
|
12923
12911
|
children: [
|
|
12924
|
-
o ? /* @__PURE__ */ m.jsx("span", { className: "proton__TooltipTrigger", "aria-label": "Show tooltip", children: t }) : /* @__PURE__ */ m.jsx(
|
|
12912
|
+
o ? /* @__PURE__ */ m.jsx("span", { className: "proton__TooltipTrigger", "aria-label": "Show tooltip", children: t }) : /* @__PURE__ */ m.jsx(Nf, { children: /* @__PURE__ */ m.jsx(
|
|
12925
12913
|
"div",
|
|
12926
12914
|
{
|
|
12927
12915
|
role: "button",
|
|
12928
12916
|
"aria-label": "Show tooltip",
|
|
12929
12917
|
className: "proton__TooltipTrigger",
|
|
12918
|
+
"data-hovered": s,
|
|
12919
|
+
onMouseEnter: () => {
|
|
12920
|
+
r || d(!0);
|
|
12921
|
+
},
|
|
12922
|
+
onMouseLeave: () => {
|
|
12923
|
+
r || d(!1);
|
|
12924
|
+
},
|
|
12930
12925
|
onClick: () => {
|
|
12931
12926
|
o || r || f.current || (c.current = !0, d(!s));
|
|
12932
12927
|
},
|
|
@@ -12944,7 +12939,7 @@ const t4 = ({
|
|
|
12944
12939
|
tooltipProps: n,
|
|
12945
12940
|
"data-testid": r
|
|
12946
12941
|
}) => {
|
|
12947
|
-
const { className: l } =
|
|
12942
|
+
const { className: l } = Me(), i = n ? /* @__PURE__ */ m.jsx($h, { delay: 50, closeDelay: 75, ...n, children: e }) : e;
|
|
12948
12943
|
if (t) {
|
|
12949
12944
|
const o = Gr(t);
|
|
12950
12945
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -12986,7 +12981,7 @@ const t4 = ({
|
|
|
12986
12981
|
height: e = "1.5rem",
|
|
12987
12982
|
borderRadius: n = "4px"
|
|
12988
12983
|
}) => {
|
|
12989
|
-
const { theme: r, palette: l } =
|
|
12984
|
+
const { theme: r, palette: l } = Me(), i = {
|
|
12990
12985
|
"--tombstone-custom-background": l.PRIMARY.PRIMARY_MEDIUM,
|
|
12991
12986
|
"--tombstone-custom-primary": Fl(
|
|
12992
12987
|
l.PRIMARY.PRIMARY_DARK,
|
|
@@ -13093,7 +13088,7 @@ function r4({
|
|
|
13093
13088
|
"data-testid": d
|
|
13094
13089
|
}) {
|
|
13095
13090
|
var _;
|
|
13096
|
-
const { className: c } =
|
|
13091
|
+
const { className: c } = Me(), f = B(null), [p, v] = W([]), [b, $] = W(null), [x, E] = W(!1), [C, T] = W(!1), S = t || Eh, P = e;
|
|
13097
13092
|
z(() => {
|
|
13098
13093
|
if (!f.current) return;
|
|
13099
13094
|
const k = (A) => {
|
|
@@ -13117,10 +13112,10 @@ function r4({
|
|
|
13117
13112
|
$(A);
|
|
13118
13113
|
}, R = () => {
|
|
13119
13114
|
$(null);
|
|
13120
|
-
},
|
|
13115
|
+
}, N = e + P, K = (k, O) => {
|
|
13121
13116
|
var w;
|
|
13122
13117
|
const h = k / o * 100;
|
|
13123
|
-
return (O === "start" ? Math.floor(h / 100 * p.length) : Math.ceil(h / 100 * p.length)) *
|
|
13118
|
+
return (O === "start" ? Math.floor(h / 100 * p.length) : Math.ceil(h / 100 * p.length)) * N / ((w = f.current) == null ? void 0 : w.clientWidth) * 100;
|
|
13124
13119
|
}, g = (_ = f.current) == null ? void 0 : _.clientWidth, F = H(() => u && a ? a : t ? null : "Waveform Unavailable", [u, a, t]);
|
|
13125
13120
|
return /* @__PURE__ */ m.jsxs("div", { className: G("proton-Waveform", c), "data-testid": d, children: [
|
|
13126
13121
|
i && /* @__PURE__ */ m.jsx(_i, { direction: "left", seconds: l }),
|
|
@@ -13253,7 +13248,7 @@ export {
|
|
|
13253
13248
|
Zh as Row,
|
|
13254
13249
|
ml as ScreenOverlay,
|
|
13255
13250
|
Hh as SearchInput,
|
|
13256
|
-
|
|
13251
|
+
Nh as Section,
|
|
13257
13252
|
Gh as Select,
|
|
13258
13253
|
Yh as Switch,
|
|
13259
13254
|
Qh as Table,
|
|
@@ -13267,6 +13262,6 @@ export {
|
|
|
13267
13262
|
$h as TooltipTrigger,
|
|
13268
13263
|
r4 as Waveform,
|
|
13269
13264
|
Uh as usePopoverTrigger,
|
|
13270
|
-
|
|
13265
|
+
Me as useTheme
|
|
13271
13266
|
};
|
|
13272
13267
|
//# sourceMappingURL=index.es.js.map
|