@protonradio/proton-ui 0.6.18-beta.2 → 0.6.18-beta.20
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 +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +710 -704
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-BBEUZeME.mjs +128 -0
- package/dist/utils-BBEUZeME.mjs.map +1 -0
- package/dist/utils-D3Qu5ziO.js +2 -0
- package/dist/utils-D3Qu5ziO.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +25 -18
- package/dist/utils.es.js +9 -8
- package/package.json +2 -2
- package/dist/index-C_MMhG34.mjs +0 -1759
- package/dist/index-C_MMhG34.mjs.map +0 -1
- package/dist/index-DdgXcT07.js +0 -14
- package/dist/index-DdgXcT07.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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 Cn, { flushSync as
|
|
3
|
-
import { c as U, i as Lr, h as $i
|
|
4
|
-
import { THEMES as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
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 Rc, createPortal as gi } from "react-dom";
|
|
3
|
+
import { c as U, i as Lr, h as $i } from "./utils-BBEUZeME.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 _c } from "./colors-Dwh4VIMR.mjs";
|
|
7
|
+
import { c as d4 } from "./colors-Dwh4VIMR.mjs";
|
|
8
|
+
var dr = { exports: {} }, It = {};
|
|
8
9
|
/**
|
|
9
10
|
* @license React
|
|
10
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,8 +16,8 @@ var dr = { exports: {} }, Ft = {};
|
|
|
15
16
|
* LICENSE file in the root directory of this source tree.
|
|
16
17
|
*/
|
|
17
18
|
var Sl;
|
|
18
|
-
function
|
|
19
|
-
if (Sl) return
|
|
19
|
+
function Nc() {
|
|
20
|
+
if (Sl) return It;
|
|
20
21
|
Sl = 1;
|
|
21
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 };
|
|
22
23
|
function o(a, u, s) {
|
|
@@ -26,9 +27,9 @@ function Rc() {
|
|
|
26
27
|
if (a && a.defaultProps) for (c in u = a.defaultProps, u) d[c] === void 0 && (d[c] = u[c]);
|
|
27
28
|
return { $$typeof: e, type: a, key: f, ref: p, props: d, _owner: l.current };
|
|
28
29
|
}
|
|
29
|
-
return
|
|
30
|
+
return It.Fragment = n, It.jsx = o, It.jsxs = o, It;
|
|
30
31
|
}
|
|
31
|
-
var
|
|
32
|
+
var Ft = {};
|
|
32
33
|
/**
|
|
33
34
|
* @license React
|
|
34
35
|
* react-jsx-runtime.development.js
|
|
@@ -51,38 +52,38 @@ function Lc() {
|
|
|
51
52
|
var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
53
|
function S(h) {
|
|
53
54
|
{
|
|
54
|
-
for (var K = arguments.length,
|
|
55
|
-
|
|
56
|
-
y("error", h,
|
|
55
|
+
for (var K = arguments.length, _ = new Array(K > 1 ? K - 1 : 0), V = 1; V < K; V++)
|
|
56
|
+
_[V - 1] = arguments[V];
|
|
57
|
+
y("error", h, _);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
|
-
function y(h, K,
|
|
60
|
+
function y(h, K, _) {
|
|
60
61
|
{
|
|
61
62
|
var V = E.ReactDebugCurrentFrame, J = V.getStackAddendum();
|
|
62
|
-
J !== "" && (K += "%s",
|
|
63
|
-
var te =
|
|
63
|
+
J !== "" && (K += "%s", _ = _.concat([J]));
|
|
64
|
+
var te = _.map(function(q) {
|
|
64
65
|
return String(q);
|
|
65
66
|
});
|
|
66
67
|
te.unshift("Warning: " + K), Function.prototype.apply.call(console[h], console, te);
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
var k = !1, C = !1, P = !1,
|
|
70
|
+
var k = !1, C = !1, P = !1, R = !1, v = !1, A;
|
|
70
71
|
A = Symbol.for("react.module.reference");
|
|
71
72
|
function w(h) {
|
|
72
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c ||
|
|
73
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p || k || C || P || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === u || // This needs to include all possible module reference object
|
|
73
74
|
// types supported by any Flight configuration anywhere since
|
|
74
75
|
// we don't know which Flight build this will end up being used
|
|
75
76
|
// with.
|
|
76
77
|
h.$$typeof === A || h.getModuleId !== void 0));
|
|
77
78
|
}
|
|
78
|
-
function T(h, K,
|
|
79
|
+
function T(h, K, _) {
|
|
79
80
|
var V = h.displayName;
|
|
80
81
|
if (V)
|
|
81
82
|
return V;
|
|
82
83
|
var J = K.displayName || K.name || "";
|
|
83
|
-
return J !== "" ?
|
|
84
|
+
return J !== "" ? _ + "(" + J + ")" : _;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function F(h) {
|
|
86
87
|
return h.displayName || "Context";
|
|
87
88
|
}
|
|
88
89
|
function x(h) {
|
|
@@ -110,10 +111,10 @@ function Lc() {
|
|
|
110
111
|
switch (h.$$typeof) {
|
|
111
112
|
case a:
|
|
112
113
|
var K = h;
|
|
113
|
-
return
|
|
114
|
+
return F(K) + ".Consumer";
|
|
114
115
|
case o:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
116
|
+
var _ = h;
|
|
117
|
+
return F(_._context) + ".Provider";
|
|
117
118
|
case u:
|
|
118
119
|
return T(h, h.render, "ForwardRef");
|
|
119
120
|
case d:
|
|
@@ -130,14 +131,14 @@ function Lc() {
|
|
|
130
131
|
}
|
|
131
132
|
return null;
|
|
132
133
|
}
|
|
133
|
-
var
|
|
134
|
+
var N = Object.assign, D = 0, z, I, Z, ue, fe, Ae, Ee;
|
|
134
135
|
function Ge() {
|
|
135
136
|
}
|
|
136
137
|
Ge.__reactDisabledLog = !0;
|
|
137
138
|
function O() {
|
|
138
139
|
{
|
|
139
140
|
if (D === 0) {
|
|
140
|
-
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;
|
|
141
142
|
var h = {
|
|
142
143
|
configurable: !0,
|
|
143
144
|
enumerable: !0,
|
|
@@ -166,25 +167,25 @@ function Lc() {
|
|
|
166
167
|
writable: !0
|
|
167
168
|
};
|
|
168
169
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
+
log: N({}, h, {
|
|
170
171
|
value: z
|
|
171
172
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
173
|
+
info: N({}, h, {
|
|
174
|
+
value: I
|
|
174
175
|
}),
|
|
175
|
-
warn:
|
|
176
|
+
warn: N({}, h, {
|
|
176
177
|
value: Z
|
|
177
178
|
}),
|
|
178
|
-
error:
|
|
179
|
+
error: N({}, h, {
|
|
179
180
|
value: ue
|
|
180
181
|
}),
|
|
181
|
-
group:
|
|
182
|
+
group: N({}, h, {
|
|
182
183
|
value: fe
|
|
183
184
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value:
|
|
185
|
+
groupCollapsed: N({}, h, {
|
|
186
|
+
value: Ae
|
|
186
187
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
+
groupEnd: N({}, h, {
|
|
188
189
|
value: Ee
|
|
189
190
|
})
|
|
190
191
|
});
|
|
@@ -193,7 +194,7 @@ function Lc() {
|
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
var Se = E.ReactCurrentDispatcher, Ye;
|
|
196
|
-
function
|
|
197
|
+
function ht(h, K, _) {
|
|
197
198
|
{
|
|
198
199
|
if (Ye === void 0)
|
|
199
200
|
try {
|
|
@@ -206,21 +207,21 @@ function Lc() {
|
|
|
206
207
|
` + Ye + h;
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
var
|
|
210
|
+
var mt = !1, bt;
|
|
210
211
|
{
|
|
211
212
|
var le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
|
|
213
|
+
bt = new le();
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!h ||
|
|
215
|
+
function gt(h, K) {
|
|
216
|
+
if (!h || mt)
|
|
216
217
|
return "";
|
|
217
218
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
219
|
+
var _ = bt.get(h);
|
|
220
|
+
if (_ !== void 0)
|
|
221
|
+
return _;
|
|
221
222
|
}
|
|
222
223
|
var V;
|
|
223
|
-
|
|
224
|
+
mt = !0;
|
|
224
225
|
var J = Error.prepareStackTrace;
|
|
225
226
|
Error.prepareStackTrace = void 0;
|
|
226
227
|
var te;
|
|
@@ -270,48 +271,48 @@ function Lc() {
|
|
|
270
271
|
if (ie--, se--, se < 0 || G[ie] !== he[se]) {
|
|
271
272
|
var Ce = `
|
|
272
273
|
` + G[ie].replace(" at new ", " at ");
|
|
273
|
-
return h.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", h.displayName)), typeof h == "function" &&
|
|
274
|
+
return h.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", h.displayName)), typeof h == "function" && bt.set(h, Ce), Ce;
|
|
274
275
|
}
|
|
275
276
|
while (ie >= 1 && se >= 0);
|
|
276
277
|
break;
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
} finally {
|
|
280
|
-
|
|
281
|
+
mt = !1, Se.current = te, ke(), Error.prepareStackTrace = J;
|
|
281
282
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof h == "function" &&
|
|
283
|
+
var yt = h ? h.displayName || h.name : "", it = yt ? ht(yt) : "";
|
|
284
|
+
return typeof h == "function" && bt.set(h, it), it;
|
|
284
285
|
}
|
|
285
|
-
function On(h, K,
|
|
286
|
-
return
|
|
286
|
+
function On(h, K, _) {
|
|
287
|
+
return gt(h, !1);
|
|
287
288
|
}
|
|
288
289
|
function cc(h) {
|
|
289
290
|
var K = h.prototype;
|
|
290
291
|
return !!(K && K.isReactComponent);
|
|
291
292
|
}
|
|
292
|
-
function Qt(h, K,
|
|
293
|
+
function Qt(h, K, _) {
|
|
293
294
|
if (h == null)
|
|
294
295
|
return "";
|
|
295
296
|
if (typeof h == "function")
|
|
296
|
-
return
|
|
297
|
+
return gt(h, cc(h));
|
|
297
298
|
if (typeof h == "string")
|
|
298
|
-
return
|
|
299
|
+
return ht(h);
|
|
299
300
|
switch (h) {
|
|
300
301
|
case s:
|
|
301
|
-
return
|
|
302
|
+
return ht("Suspense");
|
|
302
303
|
case c:
|
|
303
|
-
return
|
|
304
|
+
return ht("SuspenseList");
|
|
304
305
|
}
|
|
305
306
|
if (typeof h == "object")
|
|
306
307
|
switch (h.$$typeof) {
|
|
307
308
|
case u:
|
|
308
309
|
return On(h.render);
|
|
309
310
|
case d:
|
|
310
|
-
return Qt(h.type, K,
|
|
311
|
+
return Qt(h.type, K, _);
|
|
311
312
|
case f: {
|
|
312
313
|
var V = h, J = V._payload, te = V._init;
|
|
313
314
|
try {
|
|
314
|
-
return Qt(te(J), K,
|
|
315
|
+
return Qt(te(J), K, _);
|
|
315
316
|
} catch {
|
|
316
317
|
}
|
|
317
318
|
}
|
|
@@ -321,12 +322,12 @@ function Lc() {
|
|
|
321
322
|
var Kt = Object.prototype.hasOwnProperty, cl = {}, dl = E.ReactDebugCurrentFrame;
|
|
322
323
|
function en(h) {
|
|
323
324
|
if (h) {
|
|
324
|
-
var K = h._owner,
|
|
325
|
-
dl.setExtraStackFrame(
|
|
325
|
+
var K = h._owner, _ = Qt(h.type, h._source, K ? K.type : null);
|
|
326
|
+
dl.setExtraStackFrame(_);
|
|
326
327
|
} else
|
|
327
328
|
dl.setExtraStackFrame(null);
|
|
328
329
|
}
|
|
329
|
-
function dc(h, K,
|
|
330
|
+
function dc(h, K, _, V, J) {
|
|
330
331
|
{
|
|
331
332
|
var te = Function.call.bind(Kt);
|
|
332
333
|
for (var q in h)
|
|
@@ -334,14 +335,14 @@ function Lc() {
|
|
|
334
335
|
var G = void 0;
|
|
335
336
|
try {
|
|
336
337
|
if (typeof h[q] != "function") {
|
|
337
|
-
var he = Error((V || "React class") + ": " +
|
|
338
|
+
var he = Error((V || "React class") + ": " + _ + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
339
|
throw he.name = "Invariant Violation", he;
|
|
339
340
|
}
|
|
340
|
-
G = h[q](K, q, V,
|
|
341
|
+
G = h[q](K, q, V, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
342
|
} catch (ie) {
|
|
342
343
|
G = ie;
|
|
343
344
|
}
|
|
344
|
-
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",
|
|
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", _, q, typeof G), en(null)), G instanceof Error && !(G.message in cl) && (cl[G.message] = !0, en(J), S("Failed %s type: %s", _, G.message), en(null));
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
}
|
|
@@ -351,8 +352,8 @@ function Lc() {
|
|
|
351
352
|
}
|
|
352
353
|
function pc(h) {
|
|
353
354
|
{
|
|
354
|
-
var K = typeof Symbol == "function" && Symbol.toStringTag,
|
|
355
|
-
return
|
|
355
|
+
var K = typeof Symbol == "function" && Symbol.toStringTag, _ = K && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
356
|
+
return _;
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
function vc(h) {
|
|
@@ -394,40 +395,40 @@ function Lc() {
|
|
|
394
395
|
}
|
|
395
396
|
function gc(h, K) {
|
|
396
397
|
if (typeof h.ref == "string" && Mt.current && K && Mt.current.stateNode !== K) {
|
|
397
|
-
var
|
|
398
|
-
jn[
|
|
398
|
+
var _ = x(Mt.current.type);
|
|
399
|
+
jn[_] || (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[_] = !0);
|
|
399
400
|
}
|
|
400
401
|
}
|
|
401
402
|
function $c(h, K) {
|
|
402
403
|
{
|
|
403
|
-
var
|
|
404
|
+
var _ = function() {
|
|
404
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));
|
|
405
406
|
};
|
|
406
|
-
|
|
407
|
-
get:
|
|
407
|
+
_.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
408
|
+
get: _,
|
|
408
409
|
configurable: !0
|
|
409
410
|
});
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
413
|
function yc(h, K) {
|
|
413
414
|
{
|
|
414
|
-
var
|
|
415
|
+
var _ = function() {
|
|
415
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));
|
|
416
417
|
};
|
|
417
|
-
|
|
418
|
-
get:
|
|
418
|
+
_.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
419
|
+
get: _,
|
|
419
420
|
configurable: !0
|
|
420
421
|
});
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
|
-
var xc = function(h, K,
|
|
424
|
+
var xc = function(h, K, _, V, J, te, q) {
|
|
424
425
|
var G = {
|
|
425
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
427
|
$$typeof: e,
|
|
427
428
|
// Built-in properties that belong on the element
|
|
428
429
|
type: h,
|
|
429
430
|
key: K,
|
|
430
|
-
ref:
|
|
431
|
+
ref: _,
|
|
431
432
|
props: q,
|
|
432
433
|
// Record the component responsible for creating this element.
|
|
433
434
|
_owner: te
|
|
@@ -449,10 +450,10 @@ function Lc() {
|
|
|
449
450
|
value: J
|
|
450
451
|
}), Object.freeze && (Object.freeze(G.props), Object.freeze(G)), G;
|
|
451
452
|
};
|
|
452
|
-
function Ec(h, K,
|
|
453
|
+
function Ec(h, K, _, V, J) {
|
|
453
454
|
{
|
|
454
455
|
var te, q = {}, G = null, he = null;
|
|
455
|
-
|
|
456
|
+
_ !== void 0 && (pl(_), G = "" + _), bc(K) && (pl(K.key), G = "" + K.key), mc(K) && (he = K.ref, gc(K, J));
|
|
456
457
|
for (te in K)
|
|
457
458
|
Kt.call(K, te) && !hc.hasOwnProperty(te) && (q[te] = K[te]);
|
|
458
459
|
if (h && h.defaultProps) {
|
|
@@ -468,10 +469,10 @@ function Lc() {
|
|
|
468
469
|
}
|
|
469
470
|
}
|
|
470
471
|
var Vn = E.ReactCurrentOwner, ml = E.ReactDebugCurrentFrame;
|
|
471
|
-
function
|
|
472
|
+
function $t(h) {
|
|
472
473
|
if (h) {
|
|
473
|
-
var K = h._owner,
|
|
474
|
-
ml.setExtraStackFrame(
|
|
474
|
+
var K = h._owner, _ = Qt(h.type, h._source, K ? K.type : null);
|
|
475
|
+
ml.setExtraStackFrame(_);
|
|
475
476
|
} else
|
|
476
477
|
ml.setExtraStackFrame(null);
|
|
477
478
|
}
|
|
@@ -500,10 +501,10 @@ Check the render method of \`` + h + "`.";
|
|
|
500
501
|
{
|
|
501
502
|
var K = bl();
|
|
502
503
|
if (!K) {
|
|
503
|
-
var
|
|
504
|
-
|
|
504
|
+
var _ = typeof h == "string" ? h : h.displayName || h.name;
|
|
505
|
+
_ && (K = `
|
|
505
506
|
|
|
506
|
-
Check the top-level render call using <` +
|
|
507
|
+
Check the top-level render call using <` + _ + ">.");
|
|
507
508
|
}
|
|
508
509
|
return K;
|
|
509
510
|
}
|
|
@@ -513,12 +514,12 @@ Check the top-level render call using <` + N + ">.");
|
|
|
513
514
|
if (!h._store || h._store.validated || h.key != null)
|
|
514
515
|
return;
|
|
515
516
|
h._store.validated = !0;
|
|
516
|
-
var
|
|
517
|
-
if (gl[
|
|
517
|
+
var _ = Cc(K);
|
|
518
|
+
if (gl[_])
|
|
518
519
|
return;
|
|
519
|
-
gl[
|
|
520
|
+
gl[_] = !0;
|
|
520
521
|
var V = "";
|
|
521
|
-
h && h._owner && h._owner !== Vn.current && (V = " It was passed a child from " + x(h._owner.type) + "."),
|
|
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.', _, V), $t(null);
|
|
522
523
|
}
|
|
523
524
|
}
|
|
524
525
|
function yl(h, K) {
|
|
@@ -526,8 +527,8 @@ Check the top-level render call using <` + N + ">.");
|
|
|
526
527
|
if (typeof h != "object")
|
|
527
528
|
return;
|
|
528
529
|
if (zn(h))
|
|
529
|
-
for (var
|
|
530
|
-
var V = h[
|
|
530
|
+
for (var _ = 0; _ < h.length; _++) {
|
|
531
|
+
var V = h[_];
|
|
531
532
|
Wn(V) && $l(V, K);
|
|
532
533
|
}
|
|
533
534
|
else if (Wn(h))
|
|
@@ -545,18 +546,18 @@ Check the top-level render call using <` + N + ">.");
|
|
|
545
546
|
var K = h.type;
|
|
546
547
|
if (K == null || typeof K == "string")
|
|
547
548
|
return;
|
|
548
|
-
var
|
|
549
|
+
var _;
|
|
549
550
|
if (typeof K == "function")
|
|
550
|
-
|
|
551
|
+
_ = K.propTypes;
|
|
551
552
|
else if (typeof K == "object" && (K.$$typeof === u || // Note: Memo only checks outer props here.
|
|
552
553
|
// Inner props are checked in the reconciler.
|
|
553
554
|
K.$$typeof === d))
|
|
554
|
-
|
|
555
|
+
_ = K.propTypes;
|
|
555
556
|
else
|
|
556
557
|
return;
|
|
557
|
-
if (
|
|
558
|
+
if (_) {
|
|
558
559
|
var V = x(K);
|
|
559
|
-
dc(
|
|
560
|
+
dc(_, h.props, "prop", V, h);
|
|
560
561
|
} else if (K.PropTypes !== void 0 && !Hn) {
|
|
561
562
|
Hn = !0;
|
|
562
563
|
var J = x(K);
|
|
@@ -567,18 +568,18 @@ Check the top-level render call using <` + N + ">.");
|
|
|
567
568
|
}
|
|
568
569
|
function Pc(h) {
|
|
569
570
|
{
|
|
570
|
-
for (var K = Object.keys(h.props),
|
|
571
|
-
var V = K[
|
|
571
|
+
for (var K = Object.keys(h.props), _ = 0; _ < K.length; _++) {
|
|
572
|
+
var V = K[_];
|
|
572
573
|
if (V !== "children" && V !== "key") {
|
|
573
|
-
|
|
574
|
+
$t(h), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V), $t(null);
|
|
574
575
|
break;
|
|
575
576
|
}
|
|
576
577
|
}
|
|
577
|
-
h.ref !== null && (
|
|
578
|
+
h.ref !== null && ($t(h), S("Invalid attribute `ref` supplied to `React.Fragment`."), $t(null));
|
|
578
579
|
}
|
|
579
580
|
}
|
|
580
581
|
var xl = {};
|
|
581
|
-
function El(h, K,
|
|
582
|
+
function El(h, K, _, V, J, te) {
|
|
582
583
|
{
|
|
583
584
|
var q = w(h);
|
|
584
585
|
if (!q) {
|
|
@@ -589,7 +590,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
589
590
|
var ie;
|
|
590
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);
|
|
591
592
|
}
|
|
592
|
-
var se = Ec(h, K,
|
|
593
|
+
var se = Ec(h, K, _, J, te);
|
|
593
594
|
if (se == null)
|
|
594
595
|
return se;
|
|
595
596
|
if (q) {
|
|
@@ -597,8 +598,8 @@ Check the top-level render call using <` + N + ">.");
|
|
|
597
598
|
if (Ce !== void 0)
|
|
598
599
|
if (V)
|
|
599
600
|
if (zn(Ce)) {
|
|
600
|
-
for (var
|
|
601
|
-
yl(Ce[
|
|
601
|
+
for (var yt = 0; yt < Ce.length; yt++)
|
|
602
|
+
yl(Ce[yt], h);
|
|
602
603
|
Object.freeze && Object.freeze(Ce);
|
|
603
604
|
} else
|
|
604
605
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -622,17 +623,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
623
|
return h === r ? Pc(se) : wc(se), se;
|
|
623
624
|
}
|
|
624
625
|
}
|
|
625
|
-
function Dc(h, K,
|
|
626
|
-
return El(h, K,
|
|
626
|
+
function Dc(h, K, _) {
|
|
627
|
+
return El(h, K, _, !0);
|
|
627
628
|
}
|
|
628
|
-
function kc(h, K,
|
|
629
|
-
return El(h, K,
|
|
629
|
+
function kc(h, K, _) {
|
|
630
|
+
return El(h, K, _, !1);
|
|
630
631
|
}
|
|
631
632
|
var Tc = kc, Bc = Dc;
|
|
632
|
-
|
|
633
|
-
}()),
|
|
633
|
+
Ft.Fragment = r, Ft.jsx = Tc, Ft.jsxs = Bc;
|
|
634
|
+
}()), Ft;
|
|
634
635
|
}
|
|
635
|
-
process.env.NODE_ENV === "production" ? dr.exports =
|
|
636
|
+
process.env.NODE_ENV === "production" ? dr.exports = Nc() : dr.exports = Lc();
|
|
636
637
|
var b = dr.exports;
|
|
637
638
|
const Q = typeof document < "u" ? B.useLayoutEffect : () => {
|
|
638
639
|
};
|
|
@@ -758,7 +759,7 @@ function tt(t = []) {
|
|
|
758
759
|
...t
|
|
759
760
|
]), n;
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
+
function Ie(...t) {
|
|
762
763
|
return (...e) => {
|
|
763
764
|
for (let n of t) typeof n == "function" && n(...e);
|
|
764
765
|
};
|
|
@@ -791,7 +792,7 @@ function W(...t) {
|
|
|
791
792
|
typeof i == "function" && typeof o == "function" && // This is a lot faster than a regex.
|
|
792
793
|
l[0] === "o" && l[1] === "n" && l.charCodeAt(2) >= /* 'A' */
|
|
793
794
|
65 && l.charCodeAt(2) <= /* 'Z' */
|
|
794
|
-
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;
|
|
795
796
|
}
|
|
796
797
|
}
|
|
797
798
|
return e;
|
|
@@ -873,28 +874,28 @@ function Or(t) {
|
|
|
873
874
|
var e;
|
|
874
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;
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
+
function Ve(t) {
|
|
877
878
|
let e = null;
|
|
878
879
|
return () => (e == null && (e = t()), e);
|
|
879
880
|
}
|
|
880
|
-
const nt =
|
|
881
|
+
const nt = Ve(function() {
|
|
881
882
|
return Or(/^Mac/i);
|
|
882
|
-
}), ad =
|
|
883
|
+
}), ad = Ve(function() {
|
|
883
884
|
return Or(/^iPhone/i);
|
|
884
|
-
}), Si =
|
|
885
|
+
}), Si = Ve(function() {
|
|
885
886
|
return Or(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
886
887
|
nt() && navigator.maxTouchPoints > 1;
|
|
887
|
-
}), Pn =
|
|
888
|
+
}), Pn = Ve(function() {
|
|
888
889
|
return ad() || Si();
|
|
889
|
-
}), ud =
|
|
890
|
+
}), ud = Ve(function() {
|
|
890
891
|
return nt() || Pn();
|
|
891
|
-
}), zr =
|
|
892
|
+
}), zr = Ve(function() {
|
|
892
893
|
return wn(/AppleWebKit/i) && !sd();
|
|
893
|
-
}), sd =
|
|
894
|
+
}), sd = Ve(function() {
|
|
894
895
|
return wn(/Chrome/i);
|
|
895
|
-
}), vn =
|
|
896
|
+
}), vn = Ve(function() {
|
|
896
897
|
return wn(/Android/i);
|
|
897
|
-
}), cd =
|
|
898
|
+
}), cd = Ve(function() {
|
|
898
899
|
return wn(/Firefox/i);
|
|
899
900
|
}), dd = /* @__PURE__ */ ee({
|
|
900
901
|
isNative: !0,
|
|
@@ -904,7 +905,7 @@ const nt = He(function() {
|
|
|
904
905
|
function qt() {
|
|
905
906
|
return Y(dd);
|
|
906
907
|
}
|
|
907
|
-
function
|
|
908
|
+
function ct(t, e, n = !0) {
|
|
908
909
|
var r, l;
|
|
909
910
|
let { metaKey: i, ctrlKey: o, altKey: a, shiftKey: u } = e;
|
|
910
911
|
cd() && (!((l = window.event) === null || l === void 0 || (r = l.type) === null || r === void 0) && r.startsWith("key")) && t.target === "_blank" && (nt() ? i = !0 : o = !0);
|
|
@@ -922,9 +923,9 @@ function st(t, e, n = !0) {
|
|
|
922
923
|
bubbles: !0,
|
|
923
924
|
cancelable: !0
|
|
924
925
|
});
|
|
925
|
-
|
|
926
|
+
ct.isOpening = n, Le(t), t.dispatchEvent(s), ct.isOpening = !1;
|
|
926
927
|
}
|
|
927
|
-
|
|
928
|
+
ct.isOpening = !1;
|
|
928
929
|
function fd(t, e) {
|
|
929
930
|
if (t instanceof HTMLAnchorElement) e(t);
|
|
930
931
|
else if (t.hasAttribute("data-href")) {
|
|
@@ -933,7 +934,7 @@ function fd(t, e) {
|
|
|
933
934
|
}
|
|
934
935
|
}
|
|
935
936
|
function pd(t, e) {
|
|
936
|
-
fd(t, (n) =>
|
|
937
|
+
fd(t, (n) => ct(n, e));
|
|
937
938
|
}
|
|
938
939
|
function vd(t) {
|
|
939
940
|
let e = qt();
|
|
@@ -961,7 +962,7 @@ function Ci(t) {
|
|
|
961
962
|
referrerPolicy: t == null ? void 0 : t.referrerPolicy
|
|
962
963
|
};
|
|
963
964
|
}
|
|
964
|
-
let
|
|
965
|
+
let Ct = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new Set();
|
|
965
966
|
function wl() {
|
|
966
967
|
if (typeof window > "u") return;
|
|
967
968
|
function t(r) {
|
|
@@ -969,14 +970,14 @@ function wl() {
|
|
|
969
970
|
}
|
|
970
971
|
let e = (r) => {
|
|
971
972
|
if (!t(r) || !r.target) return;
|
|
972
|
-
let l =
|
|
973
|
-
l || (l = /* @__PURE__ */ new Set(),
|
|
973
|
+
let l = Ct.get(r.target);
|
|
974
|
+
l || (l = /* @__PURE__ */ new Set(), Ct.set(r.target, l), r.target.addEventListener("transitioncancel", n, {
|
|
974
975
|
once: !0
|
|
975
976
|
})), l.add(r.propertyName);
|
|
976
977
|
}, n = (r) => {
|
|
977
978
|
if (!t(r) || !r.target) return;
|
|
978
|
-
let l =
|
|
979
|
-
if (l && (l.delete(r.propertyName), l.size === 0 && (r.target.removeEventListener("transitioncancel", n),
|
|
979
|
+
let l = Ct.get(r.target);
|
|
980
|
+
if (l && (l.delete(r.propertyName), l.size === 0 && (r.target.removeEventListener("transitioncancel", n), Ct.delete(r.target)), Ct.size === 0)) {
|
|
980
981
|
for (let i of fr) i();
|
|
981
982
|
fr.clear();
|
|
982
983
|
}
|
|
@@ -986,7 +987,7 @@ function wl() {
|
|
|
986
987
|
typeof document < "u" && (document.readyState !== "loading" ? wl() : document.addEventListener("DOMContentLoaded", wl));
|
|
987
988
|
function wi(t) {
|
|
988
989
|
requestAnimationFrame(() => {
|
|
989
|
-
|
|
990
|
+
Ct.size === 0 ? t() : fr.add(t);
|
|
990
991
|
});
|
|
991
992
|
}
|
|
992
993
|
function Pi() {
|
|
@@ -1237,24 +1238,24 @@ function lt(t, e, n) {
|
|
|
1237
1238
|
function hr(t, e = -1 / 0, n = 1 / 0) {
|
|
1238
1239
|
return Math.min(Math.max(t, e), n);
|
|
1239
1240
|
}
|
|
1240
|
-
let
|
|
1241
|
+
let Pt = "default", mr = "", fn = /* @__PURE__ */ new WeakMap();
|
|
1241
1242
|
function kl(t) {
|
|
1242
1243
|
if (Pn()) {
|
|
1243
|
-
if (
|
|
1244
|
+
if (Pt === "default") {
|
|
1244
1245
|
const e = re(t);
|
|
1245
1246
|
mr = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
|
|
1246
1247
|
}
|
|
1247
|
-
|
|
1248
|
+
Pt = "disabled";
|
|
1248
1249
|
} else (t instanceof HTMLElement || t instanceof SVGElement) && (fn.set(t, t.style.userSelect), t.style.userSelect = "none");
|
|
1249
1250
|
}
|
|
1250
1251
|
function on(t) {
|
|
1251
1252
|
if (Pn()) {
|
|
1252
|
-
if (
|
|
1253
|
-
|
|
1253
|
+
if (Pt !== "disabled") return;
|
|
1254
|
+
Pt = "restoring", setTimeout(() => {
|
|
1254
1255
|
wi(() => {
|
|
1255
|
-
if (
|
|
1256
|
+
if (Pt === "restoring") {
|
|
1256
1257
|
const e = re(t);
|
|
1257
|
-
e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = mr || ""), mr = "",
|
|
1258
|
+
e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = mr || ""), mr = "", Pt = "default";
|
|
1258
1259
|
}
|
|
1259
1260
|
});
|
|
1260
1261
|
}, 300);
|
|
@@ -1327,7 +1328,7 @@ class un {
|
|
|
1327
1328
|
}
|
|
1328
1329
|
}
|
|
1329
1330
|
const Bl = Symbol("linkClicked");
|
|
1330
|
-
function
|
|
1331
|
+
function ze(t) {
|
|
1331
1332
|
let {
|
|
1332
1333
|
onPress: e,
|
|
1333
1334
|
onPressChange: n,
|
|
@@ -1357,24 +1358,24 @@ function je(t) {
|
|
|
1357
1358
|
if (o || w.didFirePressStart) return !1;
|
|
1358
1359
|
let T = !0;
|
|
1359
1360
|
if (w.isTriggeringEvent = !0, r) {
|
|
1360
|
-
let
|
|
1361
|
-
r(
|
|
1361
|
+
let F = new un("pressstart", A, v);
|
|
1362
|
+
r(F), T = F.shouldStopPropagation;
|
|
1362
1363
|
}
|
|
1363
1364
|
return n && n(!0), w.isTriggeringEvent = !1, w.didFirePressStart = !0, m(!0), T;
|
|
1364
1365
|
}), y = ae((v, A, w = !0) => {
|
|
1365
1366
|
let T = $.current;
|
|
1366
1367
|
if (!T.didFirePressStart) return !1;
|
|
1367
1368
|
T.ignoreClickAfterPress = !0, T.didFirePressStart = !1, T.isTriggeringEvent = !0;
|
|
1368
|
-
let
|
|
1369
|
+
let F = !0;
|
|
1369
1370
|
if (l) {
|
|
1370
1371
|
let x = new un("pressend", A, v);
|
|
1371
|
-
l(x),
|
|
1372
|
+
l(x), F = x.shouldStopPropagation;
|
|
1372
1373
|
}
|
|
1373
1374
|
if (n && n(!1), m(!1), e && w && !o) {
|
|
1374
1375
|
let x = new un("press", A, v);
|
|
1375
|
-
e(x),
|
|
1376
|
+
e(x), F && (F = x.shouldStopPropagation);
|
|
1376
1377
|
}
|
|
1377
|
-
return T.isTriggeringEvent = !1,
|
|
1378
|
+
return T.isTriggeringEvent = !1, F;
|
|
1378
1379
|
}), k = ae((v, A) => {
|
|
1379
1380
|
let w = $.current;
|
|
1380
1381
|
if (o) return !1;
|
|
@@ -1386,49 +1387,49 @@ function je(t) {
|
|
|
1386
1387
|
return !0;
|
|
1387
1388
|
}), C = ae((v) => {
|
|
1388
1389
|
let A = $.current;
|
|
1389
|
-
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));
|
|
1390
1391
|
}), P = ae((v) => {
|
|
1391
1392
|
s && C(v);
|
|
1392
|
-
}),
|
|
1393
|
+
}), R = H(() => {
|
|
1393
1394
|
let v = $.current, A = {
|
|
1394
1395
|
onKeyDown(T) {
|
|
1395
1396
|
if (Xn(T.nativeEvent, T.currentTarget) && T.currentTarget.contains(T.target)) {
|
|
1396
|
-
var
|
|
1397
|
+
var F;
|
|
1397
1398
|
Kl(T.target, T.key) && T.preventDefault();
|
|
1398
1399
|
let x = !0;
|
|
1399
1400
|
if (!v.isPressed && !T.repeat) {
|
|
1400
1401
|
v.target = T.currentTarget, v.isPressed = !0, x = S(T, "keyboard");
|
|
1401
|
-
let
|
|
1402
|
-
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");
|
|
1403
1404
|
};
|
|
1404
|
-
g(re(T.currentTarget), "keyup",
|
|
1405
|
+
g(re(T.currentTarget), "keyup", Ie(D, w), !0);
|
|
1405
1406
|
}
|
|
1406
|
-
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));
|
|
1407
1408
|
} else T.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1408
1409
|
},
|
|
1409
1410
|
onClick(T) {
|
|
1410
|
-
if (!(T && !T.currentTarget.contains(T.target)) && T && T.button === 0 && !v.isTriggeringEvent && !
|
|
1411
|
-
let
|
|
1411
|
+
if (!(T && !T.currentTarget.contains(T.target)) && T && T.button === 0 && !v.isTriggeringEvent && !ct.isOpening) {
|
|
1412
|
+
let F = !0;
|
|
1412
1413
|
if (o && T.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || vr(T.nativeEvent))) {
|
|
1413
1414
|
!o && !u && Le(T.currentTarget);
|
|
1414
|
-
let x = S(T, "virtual"),
|
|
1415
|
-
|
|
1415
|
+
let x = S(T, "virtual"), N = k(T, "virtual"), D = y(T, "virtual");
|
|
1416
|
+
F = x && N && D;
|
|
1416
1417
|
}
|
|
1417
|
-
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1,
|
|
1418
|
+
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, F && T.stopPropagation();
|
|
1418
1419
|
}
|
|
1419
1420
|
}
|
|
1420
1421
|
}, w = (T) => {
|
|
1421
|
-
var
|
|
1422
|
+
var F;
|
|
1422
1423
|
if (v.isPressed && v.target && Xn(T, v.target)) {
|
|
1423
1424
|
var x;
|
|
1424
1425
|
Kl(T.target, T.key) && T.preventDefault();
|
|
1425
1426
|
let D = T.target;
|
|
1426
|
-
y(
|
|
1427
|
-
} else if (T.key === "Meta" && (!((
|
|
1428
|
-
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;
|
|
1429
1430
|
let D = v.metaKeyEvents;
|
|
1430
1431
|
v.metaKeyEvents = void 0;
|
|
1431
|
-
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));
|
|
1432
1433
|
}
|
|
1433
1434
|
};
|
|
1434
1435
|
if (typeof PointerEvent < "u") {
|
|
@@ -1440,21 +1441,21 @@ function je(t) {
|
|
|
1440
1441
|
}
|
|
1441
1442
|
Zn(D.currentTarget) && D.preventDefault(), v.pointerType = D.pointerType;
|
|
1442
1443
|
let z = !0;
|
|
1443
|
-
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();
|
|
1444
1445
|
}, A.onMouseDown = (D) => {
|
|
1445
1446
|
D.currentTarget.contains(D.target) && D.button === 0 && (Zn(D.currentTarget) && D.preventDefault(), D.stopPropagation());
|
|
1446
1447
|
}, A.onPointerUp = (D) => {
|
|
1447
|
-
!D.currentTarget.contains(D.target) || v.pointerType === "virtual" || D.button === 0 &&
|
|
1448
|
+
!D.currentTarget.contains(D.target) || v.pointerType === "virtual" || D.button === 0 && xt(D, D.currentTarget) && k(D, v.pointerType || D.pointerType);
|
|
1448
1449
|
};
|
|
1449
1450
|
let T = (D) => {
|
|
1450
|
-
D.pointerId === v.activePointerId && (v.target &&
|
|
1451
|
-
},
|
|
1452
|
-
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (
|
|
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, {
|
|
1453
1454
|
once: !0
|
|
1454
1455
|
}));
|
|
1455
1456
|
}, x = (D) => {
|
|
1456
1457
|
Ai(D.currentTarget) && D.preventDefault();
|
|
1457
|
-
},
|
|
1458
|
+
}, N = (D) => {
|
|
1458
1459
|
C(D);
|
|
1459
1460
|
};
|
|
1460
1461
|
A.onDragStart = (D) => {
|
|
@@ -1470,12 +1471,12 @@ function je(t) {
|
|
|
1470
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);
|
|
1471
1472
|
}, A.onMouseEnter = (x) => {
|
|
1472
1473
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1473
|
-
let
|
|
1474
|
-
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();
|
|
1475
1476
|
}, A.onMouseLeave = (x) => {
|
|
1476
1477
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1477
|
-
let
|
|
1478
|
-
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();
|
|
1479
1480
|
}, A.onMouseUp = (x) => {
|
|
1480
1481
|
x.currentTarget.contains(x.target) && !v.ignoreEmulatedMouseEvents && x.button === 0 && k(x, v.pointerType || "mouse");
|
|
1481
1482
|
};
|
|
@@ -1485,34 +1486,34 @@ function je(t) {
|
|
|
1485
1486
|
v.ignoreEmulatedMouseEvents = !1;
|
|
1486
1487
|
return;
|
|
1487
1488
|
}
|
|
1488
|
-
v.target &&
|
|
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;
|
|
1489
1490
|
}
|
|
1490
1491
|
};
|
|
1491
1492
|
A.onTouchStart = (x) => {
|
|
1492
1493
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1493
|
-
let
|
|
1494
|
-
if (!
|
|
1495
|
-
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);
|
|
1496
1497
|
}, A.onTouchMove = (x) => {
|
|
1497
1498
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1498
1499
|
if (!v.isPressed) {
|
|
1499
1500
|
x.stopPropagation();
|
|
1500
1501
|
return;
|
|
1501
1502
|
}
|
|
1502
|
-
let
|
|
1503
|
-
|
|
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();
|
|
1504
1505
|
}, A.onTouchEnd = (x) => {
|
|
1505
1506
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1506
1507
|
if (!v.isPressed) {
|
|
1507
1508
|
x.stopPropagation();
|
|
1508
1509
|
return;
|
|
1509
1510
|
}
|
|
1510
|
-
let
|
|
1511
|
-
|
|
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();
|
|
1512
1513
|
}, A.onTouchCancel = (x) => {
|
|
1513
1514
|
x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed && C(qe(v.target, x)));
|
|
1514
1515
|
};
|
|
1515
|
-
let
|
|
1516
|
+
let F = (x) => {
|
|
1516
1517
|
v.isPressed && x.target.contains(v.target) && C({
|
|
1517
1518
|
currentTarget: v.target,
|
|
1518
1519
|
shiftKey: !1,
|
|
@@ -1545,7 +1546,7 @@ function je(t) {
|
|
|
1545
1546
|
c
|
|
1546
1547
|
]), {
|
|
1547
1548
|
isPressed: a || p,
|
|
1548
|
-
pressProps: W(f,
|
|
1549
|
+
pressProps: W(f, R)
|
|
1549
1550
|
};
|
|
1550
1551
|
}
|
|
1551
1552
|
function Vr(t) {
|
|
@@ -1580,7 +1581,7 @@ function qe(t, e) {
|
|
|
1580
1581
|
clientY: r
|
|
1581
1582
|
};
|
|
1582
1583
|
}
|
|
1583
|
-
function
|
|
1584
|
+
function Fe(t, e) {
|
|
1584
1585
|
let n = e.clientX, r = e.clientY;
|
|
1585
1586
|
return {
|
|
1586
1587
|
currentTarget: t,
|
|
@@ -1604,7 +1605,7 @@ function Pd(t) {
|
|
|
1604
1605
|
function Dd(t, e) {
|
|
1605
1606
|
return !(t.left > e.right || e.left > t.right || t.top > e.bottom || e.top > t.bottom);
|
|
1606
1607
|
}
|
|
1607
|
-
function
|
|
1608
|
+
function xt(t, e) {
|
|
1608
1609
|
let n = e.getBoundingClientRect(), r = Pd(t);
|
|
1609
1610
|
return Dd(n, r);
|
|
1610
1611
|
}
|
|
@@ -1743,7 +1744,7 @@ function Bn(t) {
|
|
|
1743
1744
|
}
|
|
1744
1745
|
};
|
|
1745
1746
|
}
|
|
1746
|
-
let
|
|
1747
|
+
let je = null, Wt = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), dt = !1, br = !1;
|
|
1747
1748
|
const Kd = {
|
|
1748
1749
|
Tab: !0,
|
|
1749
1750
|
Escape: !0
|
|
@@ -1755,68 +1756,68 @@ function Md(t) {
|
|
|
1755
1756
|
return !(t.metaKey || !nt() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1756
1757
|
}
|
|
1757
1758
|
function hn(t) {
|
|
1758
|
-
|
|
1759
|
+
dt = !0, Md(t) && (je = "keyboard", An("keyboard", t));
|
|
1759
1760
|
}
|
|
1760
1761
|
function Pe(t) {
|
|
1761
|
-
|
|
1762
|
-
}
|
|
1763
|
-
function Fi(t) {
|
|
1764
|
-
vr(t) && (ct = !0, Ve = "virtual");
|
|
1762
|
+
je = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (dt = !0, An("pointer", t));
|
|
1765
1763
|
}
|
|
1766
1764
|
function Ii(t) {
|
|
1767
|
-
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);
|
|
1768
1769
|
}
|
|
1769
|
-
function
|
|
1770
|
-
|
|
1770
|
+
function Ri() {
|
|
1771
|
+
dt = !1, br = !0;
|
|
1771
1772
|
}
|
|
1772
1773
|
function mn(t) {
|
|
1773
1774
|
if (typeof window > "u" || jt.get(De(t))) return;
|
|
1774
1775
|
const e = De(t), n = re(t);
|
|
1775
1776
|
let r = e.HTMLElement.prototype.focus;
|
|
1776
1777
|
e.HTMLElement.prototype.focus = function() {
|
|
1777
|
-
|
|
1778
|
-
}, n.addEventListener("keydown", hn, !0), n.addEventListener("keyup", hn, !0), n.addEventListener("click",
|
|
1779
|
-
|
|
1778
|
+
dt = !0, r.apply(this, arguments);
|
|
1779
|
+
}, n.addEventListener("keydown", hn, !0), n.addEventListener("keyup", hn, !0), n.addEventListener("click", Ii, !0), e.addEventListener("focus", Fi, !0), e.addEventListener("blur", Ri, !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
|
+
_i(t);
|
|
1780
1781
|
}, {
|
|
1781
1782
|
once: !0
|
|
1782
1783
|
}), jt.set(e, {
|
|
1783
1784
|
focus: r
|
|
1784
1785
|
});
|
|
1785
1786
|
}
|
|
1786
|
-
const
|
|
1787
|
+
const _i = (t, e) => {
|
|
1787
1788
|
const n = De(t), r = re(t);
|
|
1788
|
-
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",
|
|
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", Ri, !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));
|
|
1789
1790
|
};
|
|
1790
|
-
function
|
|
1791
|
+
function Id(t) {
|
|
1791
1792
|
const e = re(t);
|
|
1792
1793
|
let n;
|
|
1793
1794
|
return e.readyState !== "loading" ? mn(t) : (n = () => {
|
|
1794
1795
|
mn(t);
|
|
1795
|
-
}, e.addEventListener("DOMContentLoaded", n)), () =>
|
|
1796
|
+
}, e.addEventListener("DOMContentLoaded", n)), () => _i(t, n);
|
|
1796
1797
|
}
|
|
1797
|
-
typeof document < "u" &&
|
|
1798
|
-
function
|
|
1799
|
-
return
|
|
1798
|
+
typeof document < "u" && Id();
|
|
1799
|
+
function ft() {
|
|
1800
|
+
return je !== "pointer";
|
|
1800
1801
|
}
|
|
1801
1802
|
function bn() {
|
|
1802
|
-
return
|
|
1803
|
+
return je;
|
|
1803
1804
|
}
|
|
1804
|
-
function
|
|
1805
|
-
|
|
1805
|
+
function Ni(t) {
|
|
1806
|
+
je = t, An(t, null);
|
|
1806
1807
|
}
|
|
1807
1808
|
function Li() {
|
|
1808
1809
|
mn();
|
|
1809
|
-
let [t, e] = j(
|
|
1810
|
+
let [t, e] = j(je);
|
|
1810
1811
|
return L(() => {
|
|
1811
1812
|
let n = () => {
|
|
1812
|
-
e(
|
|
1813
|
+
e(je);
|
|
1813
1814
|
};
|
|
1814
1815
|
return Wt.add(n), () => {
|
|
1815
1816
|
Wt.delete(n);
|
|
1816
1817
|
};
|
|
1817
1818
|
}, []), rt() ? null : t;
|
|
1818
1819
|
}
|
|
1819
|
-
const
|
|
1820
|
+
const Fd = /* @__PURE__ */ new Set([
|
|
1820
1821
|
"checkbox",
|
|
1821
1822
|
"radio",
|
|
1822
1823
|
"range",
|
|
@@ -1827,15 +1828,15 @@ const Id = /* @__PURE__ */ new Set([
|
|
|
1827
1828
|
"submit",
|
|
1828
1829
|
"reset"
|
|
1829
1830
|
]);
|
|
1830
|
-
function
|
|
1831
|
+
function Rd(t, e, n) {
|
|
1831
1832
|
var r;
|
|
1832
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;
|
|
1833
|
-
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]);
|
|
1834
1835
|
}
|
|
1835
|
-
function
|
|
1836
|
+
function _d(t, e, n) {
|
|
1836
1837
|
mn(), L(() => {
|
|
1837
1838
|
let r = (l, i) => {
|
|
1838
|
-
|
|
1839
|
+
Rd(!!(n != null && n.isTextInput), l, i) && t(ft());
|
|
1839
1840
|
};
|
|
1840
1841
|
return Wt.add(r), () => {
|
|
1841
1842
|
Wt.delete(r);
|
|
@@ -1880,7 +1881,7 @@ function gr() {
|
|
|
1880
1881
|
function Ml(t) {
|
|
1881
1882
|
t.pointerType === "touch" && gr();
|
|
1882
1883
|
}
|
|
1883
|
-
function
|
|
1884
|
+
function Nd() {
|
|
1884
1885
|
if (!(typeof document > "u"))
|
|
1885
1886
|
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Ml) : document.addEventListener("touchend", gr), Jn++, () => {
|
|
1886
1887
|
Jn--, !(Jn > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Ml) : document.removeEventListener("touchend", gr));
|
|
@@ -1893,7 +1894,7 @@ function Tt(t) {
|
|
|
1893
1894
|
pointerType: "",
|
|
1894
1895
|
target: null
|
|
1895
1896
|
}).current;
|
|
1896
|
-
L(
|
|
1897
|
+
L(Nd, []);
|
|
1897
1898
|
let { hoverProps: u, triggerHoverEnd: s } = H(() => {
|
|
1898
1899
|
let c = (p, m) => {
|
|
1899
1900
|
if (a.pointerType = m, l || m === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
|
|
@@ -1991,7 +1992,7 @@ function sn(t, e) {
|
|
|
1991
1992
|
}
|
|
1992
1993
|
return e.current && !e.current.contains(t.target);
|
|
1993
1994
|
}
|
|
1994
|
-
function
|
|
1995
|
+
function Il(t) {
|
|
1995
1996
|
if (!t) return;
|
|
1996
1997
|
let e = !0;
|
|
1997
1998
|
return (n) => {
|
|
@@ -2016,8 +2017,8 @@ function Fl(t) {
|
|
|
2016
2017
|
function zi(t) {
|
|
2017
2018
|
return {
|
|
2018
2019
|
keyboardProps: t.isDisabled ? {} : {
|
|
2019
|
-
onKeyDown:
|
|
2020
|
-
onKeyUp:
|
|
2020
|
+
onKeyDown: Il(t.onKeyDown),
|
|
2021
|
+
onKeyUp: Il(t.onKeyUp)
|
|
2021
2022
|
}
|
|
2022
2023
|
};
|
|
2023
2024
|
}
|
|
@@ -2025,7 +2026,7 @@ const Ld = 500;
|
|
|
2025
2026
|
function ji(t) {
|
|
2026
2027
|
let { isDisabled: e, onLongPressStart: n, onLongPressEnd: r, onLongPress: l, threshold: i = Ld, accessibilityDescription: o } = t;
|
|
2027
2028
|
const a = M(void 0);
|
|
2028
|
-
let { addGlobalListener: u, removeGlobalListener: s } = Pi(), { pressProps: c } =
|
|
2029
|
+
let { addGlobalListener: u, removeGlobalListener: s } = Pi(), { pressProps: c } = ze({
|
|
2029
2030
|
isDisabled: e,
|
|
2030
2031
|
onPressStart(f) {
|
|
2031
2032
|
if (f.continuePropagation(), (f.pointerType === "mouse" || f.pointerType === "touch") && (n && n({
|
|
@@ -2091,10 +2092,10 @@ function zd(t, e) {
|
|
|
2091
2092
|
function Vi(t, e) {
|
|
2092
2093
|
return t.nodeName !== "#comment" && Od(t) && zd(t, e) && (!t.parentElement || Vi(t.parentElement, t));
|
|
2093
2094
|
}
|
|
2094
|
-
const
|
|
2095
|
+
const Fl = /* @__PURE__ */ B.createContext(null), $r = "react-aria-focus-scope-restore";
|
|
2095
2096
|
let ne = null;
|
|
2096
2097
|
function Kn(t) {
|
|
2097
|
-
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(
|
|
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({
|
|
2098
2099
|
scopeRef: a
|
|
2099
2100
|
}), [
|
|
2100
2101
|
a
|
|
@@ -2147,7 +2148,7 @@ function Kn(t) {
|
|
|
2147
2148
|
s,
|
|
2148
2149
|
c
|
|
2149
2150
|
]);
|
|
2150
|
-
return /* @__PURE__ */ B.createElement(
|
|
2151
|
+
return /* @__PURE__ */ B.createElement(Fl.Provider, {
|
|
2151
2152
|
value: d
|
|
2152
2153
|
}, /* @__PURE__ */ B.createElement("span", {
|
|
2153
2154
|
"data-focus-scope-start": !0,
|
|
@@ -2418,7 +2419,7 @@ function Xd(t, e, n) {
|
|
|
2418
2419
|
let c = s.getTreeNode(t);
|
|
2419
2420
|
for (; c; ) {
|
|
2420
2421
|
if (c.nodeToRestore && c.nodeToRestore.isConnected) {
|
|
2421
|
-
|
|
2422
|
+
Rl(c.nodeToRestore);
|
|
2422
2423
|
return;
|
|
2423
2424
|
}
|
|
2424
2425
|
c = c.parent;
|
|
@@ -2426,7 +2427,7 @@ function Xd(t, e, n) {
|
|
|
2426
2427
|
for (c = s.getTreeNode(t); c; ) {
|
|
2427
2428
|
if (c.scopeRef && c.scopeRef.current && de.getTreeNode(c.scopeRef)) {
|
|
2428
2429
|
let d = Wi(c.scopeRef.current, !0);
|
|
2429
|
-
|
|
2430
|
+
Rl(d);
|
|
2430
2431
|
return;
|
|
2431
2432
|
}
|
|
2432
2433
|
c = c.parent;
|
|
@@ -2441,7 +2442,7 @@ function Xd(t, e, n) {
|
|
|
2441
2442
|
e
|
|
2442
2443
|
]);
|
|
2443
2444
|
}
|
|
2444
|
-
function
|
|
2445
|
+
function Rl(t) {
|
|
2445
2446
|
t.dispatchEvent(new CustomEvent($r, {
|
|
2446
2447
|
bubbles: !0,
|
|
2447
2448
|
cancelable: !0
|
|
@@ -2515,13 +2516,13 @@ let de = new Wr();
|
|
|
2515
2516
|
function Zt(t = {}) {
|
|
2516
2517
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = M({
|
|
2517
2518
|
isFocused: !1,
|
|
2518
|
-
isFocusVisible: e ||
|
|
2519
|
+
isFocusVisible: e || ft()
|
|
2519
2520
|
}), [i, o] = j(!1), [a, u] = j(() => l.current.isFocused && l.current.isFocusVisible), s = X(() => u(l.current.isFocused && l.current.isFocusVisible), []), c = X((p) => {
|
|
2520
2521
|
l.current.isFocused = p, o(p), s();
|
|
2521
2522
|
}, [
|
|
2522
2523
|
s
|
|
2523
2524
|
]);
|
|
2524
|
-
|
|
2525
|
+
_d((p) => {
|
|
2525
2526
|
l.current.isFocusVisible = p, s();
|
|
2526
2527
|
}, [], {
|
|
2527
2528
|
isTextInput: n
|
|
@@ -2654,26 +2655,26 @@ function Gi() {
|
|
|
2654
2655
|
};
|
|
2655
2656
|
}
|
|
2656
2657
|
let Er = Gi(), zt = /* @__PURE__ */ new Set();
|
|
2657
|
-
function
|
|
2658
|
+
function _l() {
|
|
2658
2659
|
Er = Gi();
|
|
2659
2660
|
for (let t of zt) t(Er);
|
|
2660
2661
|
}
|
|
2661
2662
|
function of() {
|
|
2662
2663
|
let t = rt(), [e, n] = j(Er);
|
|
2663
|
-
return L(() => (zt.size === 0 && window.addEventListener("languagechange",
|
|
2664
|
-
zt.delete(n), zt.size === 0 && window.removeEventListener("languagechange",
|
|
2664
|
+
return L(() => (zt.size === 0 && window.addEventListener("languagechange", _l), zt.add(n), () => {
|
|
2665
|
+
zt.delete(n), zt.size === 0 && window.removeEventListener("languagechange", _l);
|
|
2665
2666
|
}), []), t ? {
|
|
2666
2667
|
locale: "en-US",
|
|
2667
2668
|
direction: "ltr"
|
|
2668
2669
|
} : e;
|
|
2669
2670
|
}
|
|
2670
2671
|
const af = /* @__PURE__ */ B.createContext(null);
|
|
2671
|
-
function
|
|
2672
|
+
function He() {
|
|
2672
2673
|
let t = of();
|
|
2673
2674
|
return Y(af) || t;
|
|
2674
2675
|
}
|
|
2675
2676
|
const uf = Symbol.for("react-aria.i18n.locale"), sf = Symbol.for("react-aria.i18n.strings");
|
|
2676
|
-
let
|
|
2677
|
+
let Et;
|
|
2677
2678
|
class Mn {
|
|
2678
2679
|
/** Returns a localized string for the given key and locale. */
|
|
2679
2680
|
getStringForLocale(e, n) {
|
|
@@ -2689,15 +2690,15 @@ class Mn {
|
|
|
2689
2690
|
static getGlobalDictionaryForPackage(e) {
|
|
2690
2691
|
if (typeof window > "u") return null;
|
|
2691
2692
|
let n = window[uf];
|
|
2692
|
-
if (
|
|
2693
|
+
if (Et === void 0) {
|
|
2693
2694
|
let l = window[sf];
|
|
2694
2695
|
if (!l) return null;
|
|
2695
|
-
|
|
2696
|
-
for (let i in l)
|
|
2696
|
+
Et = {};
|
|
2697
|
+
for (let i in l) Et[i] = new Mn({
|
|
2697
2698
|
[n]: l[i]
|
|
2698
2699
|
}, n);
|
|
2699
2700
|
}
|
|
2700
|
-
let r =
|
|
2701
|
+
let r = Et == null ? void 0 : Et[e];
|
|
2701
2702
|
if (!r) throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
|
|
2702
2703
|
return r;
|
|
2703
2704
|
}
|
|
@@ -2716,7 +2717,7 @@ function cf(t, e, n = "en-US") {
|
|
|
2716
2717
|
function df(t) {
|
|
2717
2718
|
return Intl.Locale ? new Intl.Locale(t).language : t.split("-")[0];
|
|
2718
2719
|
}
|
|
2719
|
-
const
|
|
2720
|
+
const Nl = /* @__PURE__ */ new Map(), Ll = /* @__PURE__ */ new Map();
|
|
2720
2721
|
class ff {
|
|
2721
2722
|
/** Formats a localized string for the given key with the provided variables. */
|
|
2722
2723
|
format(e, n) {
|
|
@@ -2726,10 +2727,10 @@ class ff {
|
|
|
2726
2727
|
plural(e, n, r = "cardinal") {
|
|
2727
2728
|
let l = n["=" + e];
|
|
2728
2729
|
if (l) return typeof l == "function" ? l() : l;
|
|
2729
|
-
let i = this.locale + ":" + r, o =
|
|
2730
|
+
let i = this.locale + ":" + r, o = Nl.get(i);
|
|
2730
2731
|
o || (o = new Intl.PluralRules(this.locale, {
|
|
2731
2732
|
type: r
|
|
2732
|
-
}),
|
|
2733
|
+
}), Nl.set(i, o));
|
|
2733
2734
|
let a = o.select(e);
|
|
2734
2735
|
return l = n[a] || n.other, typeof l == "function" ? l() : l;
|
|
2735
2736
|
}
|
|
@@ -2753,21 +2754,21 @@ function pf(t) {
|
|
|
2753
2754
|
function vf(t, e) {
|
|
2754
2755
|
return e && Mn.getGlobalDictionaryForPackage(e) || pf(t);
|
|
2755
2756
|
}
|
|
2756
|
-
function
|
|
2757
|
-
let { locale: n } =
|
|
2757
|
+
function vt(t, e) {
|
|
2758
|
+
let { locale: n } = He(), r = vf(t, e);
|
|
2758
2759
|
return H(() => new ff(n, r), [
|
|
2759
2760
|
n,
|
|
2760
2761
|
r
|
|
2761
2762
|
]);
|
|
2762
2763
|
}
|
|
2763
2764
|
let Qn = /* @__PURE__ */ new Map();
|
|
2764
|
-
function
|
|
2765
|
-
let { locale: e } =
|
|
2765
|
+
function In(t) {
|
|
2766
|
+
let { locale: e } = He(), n = e + (t ? Object.entries(t).sort((l, i) => l[0] < i[0] ? -1 : 1).join() : "");
|
|
2766
2767
|
if (Qn.has(n)) return Qn.get(n);
|
|
2767
2768
|
let r = new Intl.Collator(e, t);
|
|
2768
2769
|
return Qn.set(n, r), r;
|
|
2769
2770
|
}
|
|
2770
|
-
function
|
|
2771
|
+
function Fn(t, e) {
|
|
2771
2772
|
let {
|
|
2772
2773
|
elementType: n = "button",
|
|
2773
2774
|
isDisabled: r,
|
|
@@ -2798,7 +2799,7 @@ function In(t, e) {
|
|
|
2798
2799
|
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
2799
2800
|
rel: n === "a" ? m : void 0
|
|
2800
2801
|
};
|
|
2801
|
-
let { pressProps: E, isPressed: S } =
|
|
2802
|
+
let { pressProps: E, isPressed: S } = ze({
|
|
2802
2803
|
onPressStart: i,
|
|
2803
2804
|
onPressEnd: o,
|
|
2804
2805
|
onPressChange: u,
|
|
@@ -2826,10 +2827,10 @@ function In(t, e) {
|
|
|
2826
2827
|
};
|
|
2827
2828
|
}
|
|
2828
2829
|
const Yi = 7e3;
|
|
2829
|
-
let
|
|
2830
|
+
let Ke = null;
|
|
2830
2831
|
function xn(t, e = "assertive", n = Yi) {
|
|
2831
|
-
|
|
2832
|
-
|
|
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));
|
|
2833
2834
|
}, 100));
|
|
2834
2835
|
}
|
|
2835
2836
|
class hf {
|
|
@@ -2886,7 +2887,7 @@ function Ur(t, e, n) {
|
|
|
2886
2887
|
let c = n == null || (s = n.current) === null || s === void 0 ? void 0 : s.form;
|
|
2887
2888
|
if (!u.defaultPrevented && n && c && gf(c) === n.current) {
|
|
2888
2889
|
var d;
|
|
2889
|
-
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");
|
|
2890
2891
|
}
|
|
2891
2892
|
u.preventDefault();
|
|
2892
2893
|
}), a = ae(() => {
|
|
@@ -2955,7 +2956,7 @@ const qi = {
|
|
|
2955
2956
|
...qi,
|
|
2956
2957
|
customError: !0,
|
|
2957
2958
|
valid: !1
|
|
2958
|
-
},
|
|
2959
|
+
}, Rt = {
|
|
2959
2960
|
isInvalid: !1,
|
|
2960
2961
|
validationDetails: qi,
|
|
2961
2962
|
validationErrors: []
|
|
@@ -2993,24 +2994,24 @@ function yf(t) {
|
|
|
2993
2994
|
let g = H(() => jl(m ? [] : d), [
|
|
2994
2995
|
m,
|
|
2995
2996
|
d
|
|
2996
|
-
]), E = M(
|
|
2997
|
+
]), E = M(Rt), [S, y] = j(Rt), k = M(Rt), C = () => {
|
|
2997
2998
|
if (!P) return;
|
|
2998
|
-
|
|
2999
|
+
R(!1);
|
|
2999
3000
|
let w = s || i || E.current;
|
|
3000
3001
|
er(w, k.current) || (k.current = w, y(w));
|
|
3001
|
-
}, [P,
|
|
3002
|
+
}, [P, R] = j(!1);
|
|
3002
3003
|
return L(C), {
|
|
3003
|
-
realtimeValidation: u || g || s || i ||
|
|
3004
|
+
realtimeValidation: u || g || s || i || Rt,
|
|
3004
3005
|
displayValidation: a === "native" ? u || g || S : u || g || s || i || S,
|
|
3005
3006
|
updateValidation(w) {
|
|
3006
3007
|
a === "aria" && !er(S, w) ? y(w) : E.current = w;
|
|
3007
3008
|
},
|
|
3008
3009
|
resetValidation() {
|
|
3009
|
-
let w =
|
|
3010
|
-
er(w, k.current) || (k.current = w, y(w)), a === "native" &&
|
|
3010
|
+
let w = Rt;
|
|
3011
|
+
er(w, k.current) || (k.current = w, y(w)), a === "native" && R(!1), $(!0);
|
|
3011
3012
|
},
|
|
3012
3013
|
commitValidation() {
|
|
3013
|
-
a === "native" &&
|
|
3014
|
+
a === "native" && R(!0), $(!0);
|
|
3014
3015
|
}
|
|
3015
3016
|
};
|
|
3016
3017
|
}
|
|
@@ -3041,9 +3042,9 @@ function Ef(t, e, n) {
|
|
|
3041
3042
|
P.stopPropagation(), e.setSelected(P.target.checked);
|
|
3042
3043
|
}, p = a != null, m = u != null || s != null;
|
|
3043
3044
|
!p && !m && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
3044
|
-
let { pressProps: $, isPressed: g } =
|
|
3045
|
+
let { pressProps: $, isPressed: g } = ze({
|
|
3045
3046
|
isDisabled: r
|
|
3046
|
-
}), { pressProps: E, isPressed: S } =
|
|
3047
|
+
}), { pressProps: E, isPressed: S } = ze({
|
|
3047
3048
|
isDisabled: r || l,
|
|
3048
3049
|
onPress() {
|
|
3049
3050
|
e.toggle();
|
|
@@ -3242,7 +3243,7 @@ function Qi(t, e) {
|
|
|
3242
3243
|
validationDetails: m
|
|
3243
3244
|
};
|
|
3244
3245
|
}
|
|
3245
|
-
const
|
|
3246
|
+
const Me = {
|
|
3246
3247
|
top: "top",
|
|
3247
3248
|
bottom: "top",
|
|
3248
3249
|
left: "left",
|
|
@@ -3293,7 +3294,7 @@ function wf(t) {
|
|
|
3293
3294
|
};
|
|
3294
3295
|
}
|
|
3295
3296
|
function Wl(t, e, n, r, l, i, o) {
|
|
3296
|
-
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]];
|
|
3297
3298
|
return d < s ? s - d : f > c ? Math.max(c - f, s - d) : 0;
|
|
3298
3299
|
}
|
|
3299
3300
|
function Pf(t) {
|
|
@@ -3307,8 +3308,8 @@ function Pf(t) {
|
|
|
3307
3308
|
}
|
|
3308
3309
|
function Ul(t) {
|
|
3309
3310
|
if (cn[t]) return cn[t];
|
|
3310
|
-
let [e, n] = t.split(" "), r =
|
|
3311
|
-
|
|
3311
|
+
let [e, n] = t.split(" "), r = Me[e] || "right", l = Cf[r];
|
|
3312
|
+
Me[n] || (n = "center");
|
|
3312
3313
|
let i = Cr[r], o = Cr[l];
|
|
3313
3314
|
return cn[t] = {
|
|
3314
3315
|
placement: e,
|
|
@@ -3342,24 +3343,24 @@ function Gl(t, e, n, r, l, i) {
|
|
|
3342
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);
|
|
3343
3344
|
}
|
|
3344
3345
|
function kf(t, e, n, r, l, i, o, a, u, s, c, d, f, p, m, $) {
|
|
3345
|
-
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, $),
|
|
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, $), R = c, v = Gl(a, s, e, l, i + c, g);
|
|
3346
3347
|
if (o && r[E] > v) {
|
|
3347
|
-
let fe = Ul(`${En[k]} ${C}`),
|
|
3348
|
-
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, R = c);
|
|
3349
3350
|
}
|
|
3350
3351
|
let A = "bottom";
|
|
3351
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"));
|
|
3352
3353
|
let w = Wl(S, P[S], n[y], a, u, i, s);
|
|
3353
3354
|
P[S] += w;
|
|
3354
3355
|
let T = Df(P, a, s, f, l, i, n.height, A);
|
|
3355
|
-
p && p < T && (T = p), n.height = Math.min(n.height, T), P = tr(e, a, n, g,
|
|
3356
|
-
let
|
|
3357
|
-
const
|
|
3358
|
-
return
|
|
3356
|
+
p && p < T && (T = p), n.height = Math.min(n.height, T), P = tr(e, a, n, g, R, d, s, f, m, $), w = Wl(S, P[S], n[y], a, u, i, s), P[S] += w;
|
|
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), {
|
|
3359
3360
|
position: P,
|
|
3360
3361
|
maxHeight: T,
|
|
3361
|
-
arrowOffsetLeft:
|
|
3362
|
-
arrowOffsetTop:
|
|
3362
|
+
arrowOffsetLeft: F.left,
|
|
3363
|
+
arrowOffsetTop: F.top,
|
|
3363
3364
|
placement: g.placement
|
|
3364
3365
|
};
|
|
3365
3366
|
}
|
|
@@ -3373,8 +3374,8 @@ function Tf(t) {
|
|
|
3373
3374
|
}
|
|
3374
3375
|
let S = kt(r), y = Pf(r);
|
|
3375
3376
|
S.width += y.left + y.right, S.height += y.top + y.bottom;
|
|
3376
|
-
let k = wf(l), C = Hl(a), P = Hl(p),
|
|
3377
|
-
return p.tagName === "HTML" && a.tagName === "BODY" && (P.scroll.top = 0, P.scroll.left = 0), kf(e, E, S, k, y, i, o, C, P,
|
|
3377
|
+
let k = wf(l), C = Hl(a), P = Hl(p), R = a.tagName === "BODY" ? kt(p) : Yl(p, a);
|
|
3378
|
+
return p.tagName === "HTML" && a.tagName === "BODY" && (P.scroll.top = 0, P.scroll.left = 0), kf(e, E, S, k, y, i, o, C, P, R, u, s, g, c, d, f);
|
|
3378
3379
|
}
|
|
3379
3380
|
function kt(t) {
|
|
3380
3381
|
let { top: e, left: n, width: r, height: l } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: o, clientTop: a, clientLeft: u } = document.documentElement;
|
|
@@ -3436,7 +3437,7 @@ function Af(t) {
|
|
|
3436
3437
|
}
|
|
3437
3438
|
let oe = typeof document < "u" && window.visualViewport;
|
|
3438
3439
|
function no(t) {
|
|
3439
|
-
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({
|
|
3440
3441
|
position: {},
|
|
3441
3442
|
arrowOffsetLeft: void 0,
|
|
3442
3443
|
arrowOffsetTop: void 0,
|
|
@@ -3468,18 +3469,18 @@ function no(t) {
|
|
|
3468
3469
|
if (f === !1 || !p || !l.current || !r.current || !s || (oe == null ? void 0 : oe.scale) !== k.current) return;
|
|
3469
3470
|
let A = null;
|
|
3470
3471
|
if (i.current && i.current.contains(document.activeElement)) {
|
|
3471
|
-
let
|
|
3472
|
+
let N = document.activeElement.getBoundingClientRect(), D = i.current.getBoundingClientRect();
|
|
3472
3473
|
A = {
|
|
3473
3474
|
type: "top",
|
|
3474
|
-
offset:
|
|
3475
|
-
}, 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);
|
|
3476
3477
|
}
|
|
3477
3478
|
let w = l.current;
|
|
3478
3479
|
if (!$ && l.current) {
|
|
3479
3480
|
var T;
|
|
3480
3481
|
w.style.top = "0px", w.style.bottom = "";
|
|
3481
|
-
var
|
|
3482
|
-
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";
|
|
3483
3484
|
}
|
|
3484
3485
|
let x = Tf({
|
|
3485
3486
|
placement: Mf(o, e),
|
|
@@ -3495,8 +3496,8 @@ function no(t) {
|
|
|
3495
3496
|
arrowSize: n,
|
|
3496
3497
|
arrowBoundaryOffset: g
|
|
3497
3498
|
});
|
|
3498
|
-
if (w.style.top = "", w.style.bottom = "", w.style.left = "", w.style.right = "", Object.keys(x.position).forEach((
|
|
3499
|
-
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];
|
|
3500
3501
|
i.current.scrollTop += z - A.offset;
|
|
3501
3502
|
}
|
|
3502
3503
|
S(x);
|
|
@@ -3523,7 +3524,7 @@ function no(t) {
|
|
|
3523
3524
|
}, [
|
|
3524
3525
|
C
|
|
3525
3526
|
]);
|
|
3526
|
-
let
|
|
3527
|
+
let R = X(() => {
|
|
3527
3528
|
P.current || m();
|
|
3528
3529
|
}, [
|
|
3529
3530
|
m,
|
|
@@ -3532,7 +3533,7 @@ function no(t) {
|
|
|
3532
3533
|
Af({
|
|
3533
3534
|
triggerRef: r,
|
|
3534
3535
|
isOpen: p,
|
|
3535
|
-
onClose: m &&
|
|
3536
|
+
onClose: m && R
|
|
3536
3537
|
});
|
|
3537
3538
|
var v;
|
|
3538
3539
|
return {
|
|
@@ -3566,22 +3567,22 @@ function Kf(t) {
|
|
|
3566
3567
|
function Mf(t, e) {
|
|
3567
3568
|
return e === "rtl" ? t.replace("start", "right").replace("end", "left") : t.replace("start", "left").replace("end", "right");
|
|
3568
3569
|
}
|
|
3569
|
-
const
|
|
3570
|
+
const Re = [];
|
|
3570
3571
|
function ro(t, e) {
|
|
3571
3572
|
let { onClose: n, shouldCloseOnBlur: r, isOpen: l, isDismissable: i = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: a } = t;
|
|
3572
|
-
L(() => (l &&
|
|
3573
|
-
let m =
|
|
3574
|
-
m >= 0 &&
|
|
3573
|
+
L(() => (l && Re.push(e), () => {
|
|
3574
|
+
let m = Re.indexOf(e);
|
|
3575
|
+
m >= 0 && Re.splice(m, 1);
|
|
3575
3576
|
}), [
|
|
3576
3577
|
l,
|
|
3577
3578
|
e
|
|
3578
3579
|
]);
|
|
3579
3580
|
let u = () => {
|
|
3580
|
-
|
|
3581
|
+
Re[Re.length - 1] === e && n && n();
|
|
3581
3582
|
}, s = (m) => {
|
|
3582
|
-
(!a || a(m.target)) &&
|
|
3583
|
+
(!a || a(m.target)) && Re[Re.length - 1] === e && (m.stopPropagation(), m.preventDefault());
|
|
3583
3584
|
}, c = (m) => {
|
|
3584
|
-
(!a || a(m.target)) && (
|
|
3585
|
+
(!a || a(m.target)) && (Re[Re.length - 1] === e && (m.stopPropagation(), m.preventDefault()), u());
|
|
3585
3586
|
}, d = (m) => {
|
|
3586
3587
|
m.key === "Escape" && !o && !m.nativeEvent.isComposing && (m.stopPropagation(), m.preventDefault(), u());
|
|
3587
3588
|
};
|
|
@@ -3628,7 +3629,7 @@ function lo(t, e, n) {
|
|
|
3628
3629
|
}
|
|
3629
3630
|
};
|
|
3630
3631
|
}
|
|
3631
|
-
const nr = typeof document < "u" && window.visualViewport,
|
|
3632
|
+
const nr = typeof document < "u" && window.visualViewport, If = /* @__PURE__ */ new Set([
|
|
3632
3633
|
"checkbox",
|
|
3633
3634
|
"radio",
|
|
3634
3635
|
"range",
|
|
@@ -3640,23 +3641,23 @@ const nr = typeof document < "u" && window.visualViewport, Ff = /* @__PURE__ */
|
|
|
3640
3641
|
"reset"
|
|
3641
3642
|
]);
|
|
3642
3643
|
let dn = 0, rr;
|
|
3643
|
-
function
|
|
3644
|
+
function Ff(t = {}) {
|
|
3644
3645
|
let { isDisabled: e } = t;
|
|
3645
3646
|
Q(() => {
|
|
3646
3647
|
if (!e)
|
|
3647
|
-
return dn++, dn === 1 && (Pn() ? rr =
|
|
3648
|
+
return dn++, dn === 1 && (Pn() ? rr = _f() : rr = Rf()), () => {
|
|
3648
3649
|
dn--, dn === 0 && rr();
|
|
3649
3650
|
};
|
|
3650
3651
|
}, [
|
|
3651
3652
|
e
|
|
3652
3653
|
]);
|
|
3653
3654
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3655
|
+
function Rf() {
|
|
3656
|
+
return Ie(Dt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Dt(document.documentElement, "overflow", "hidden"));
|
|
3656
3657
|
}
|
|
3657
|
-
function
|
|
3658
|
+
function _f() {
|
|
3658
3659
|
let t, e, n = (s) => {
|
|
3659
|
-
t = Ze(s.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e =
|
|
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"));
|
|
3660
3661
|
}, r = (s) => {
|
|
3661
3662
|
if (!t || t === document.documentElement || t === document.body) {
|
|
3662
3663
|
s.preventDefault();
|
|
@@ -3682,30 +3683,30 @@ function Nf() {
|
|
|
3682
3683
|
let s = () => {
|
|
3683
3684
|
window.scrollTo(0, 0);
|
|
3684
3685
|
}, c = window.pageXOffset, d = window.pageYOffset;
|
|
3685
|
-
o =
|
|
3686
|
+
o = Ie(_t(window, "scroll", s), Dt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Dt(document.documentElement, "overflow", "hidden"), Dt(document.body, "marginTop", `-${d}px`), () => {
|
|
3686
3687
|
window.scrollTo(c, d);
|
|
3687
3688
|
}), window.scrollTo(0, 0);
|
|
3688
|
-
}, u =
|
|
3689
|
+
}, u = Ie(_t(document, "touchstart", n, {
|
|
3689
3690
|
passive: !1,
|
|
3690
3691
|
capture: !0
|
|
3691
|
-
}),
|
|
3692
|
+
}), _t(document, "touchmove", r, {
|
|
3692
3693
|
passive: !1,
|
|
3693
3694
|
capture: !0
|
|
3694
|
-
}),
|
|
3695
|
+
}), _t(document, "touchend", l, {
|
|
3695
3696
|
passive: !1,
|
|
3696
3697
|
capture: !0
|
|
3697
|
-
}),
|
|
3698
|
+
}), _t(document, "focus", i, !0));
|
|
3698
3699
|
return () => {
|
|
3699
3700
|
e == null || e(), o == null || o(), u();
|
|
3700
3701
|
};
|
|
3701
3702
|
}
|
|
3702
|
-
function
|
|
3703
|
+
function Dt(t, e, n) {
|
|
3703
3704
|
let r = t.style[e];
|
|
3704
3705
|
return t.style[e] = n, () => {
|
|
3705
3706
|
t.style[e] = r;
|
|
3706
3707
|
};
|
|
3707
3708
|
}
|
|
3708
|
-
function
|
|
3709
|
+
function _t(t, e, n, r) {
|
|
3709
3710
|
return t.addEventListener(e, n, r), () => {
|
|
3710
3711
|
t.removeEventListener(e, n, r);
|
|
3711
3712
|
};
|
|
@@ -3722,10 +3723,10 @@ function Xl(t) {
|
|
|
3722
3723
|
}
|
|
3723
3724
|
}
|
|
3724
3725
|
function Zl(t) {
|
|
3725
|
-
return t instanceof HTMLInputElement && !
|
|
3726
|
+
return t instanceof HTMLInputElement && !If.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
3726
3727
|
}
|
|
3727
3728
|
const wr = /* @__PURE__ */ B.createContext(null);
|
|
3728
|
-
function
|
|
3729
|
+
function Nf(t) {
|
|
3729
3730
|
let { children: e } = t, n = Y(wr), [r, l] = j(0), i = H(() => ({
|
|
3730
3731
|
parent: n,
|
|
3731
3732
|
modalCount: r,
|
|
@@ -3760,7 +3761,7 @@ function Of(t) {
|
|
|
3760
3761
|
});
|
|
3761
3762
|
}
|
|
3762
3763
|
function zf(t) {
|
|
3763
|
-
return /* @__PURE__ */ B.createElement(
|
|
3764
|
+
return /* @__PURE__ */ B.createElement(Nf, null, /* @__PURE__ */ B.createElement(Of, t));
|
|
3764
3765
|
}
|
|
3765
3766
|
function jf(t) {
|
|
3766
3767
|
let e = rt(), { portalContainer: n = e ? null : document.body, ...r } = t;
|
|
@@ -3884,24 +3885,24 @@ var Mo = {};
|
|
|
3884
3885
|
Mo = {
|
|
3885
3886
|
dismiss: "Opusti"
|
|
3886
3887
|
};
|
|
3887
|
-
var Fo = {};
|
|
3888
|
-
Fo = {
|
|
3889
|
-
dismiss: "Odbaci"
|
|
3890
|
-
};
|
|
3891
3888
|
var Io = {};
|
|
3892
3889
|
Io = {
|
|
3890
|
+
dismiss: "Odbaci"
|
|
3891
|
+
};
|
|
3892
|
+
var Fo = {};
|
|
3893
|
+
Fo = {
|
|
3893
3894
|
dismiss: "Avvisa"
|
|
3894
3895
|
};
|
|
3896
|
+
var Ro = {};
|
|
3897
|
+
Ro = {
|
|
3898
|
+
dismiss: "Kapat"
|
|
3899
|
+
};
|
|
3895
3900
|
var _o = {};
|
|
3896
3901
|
_o = {
|
|
3897
|
-
dismiss: "
|
|
3902
|
+
dismiss: "Скасувати"
|
|
3898
3903
|
};
|
|
3899
3904
|
var No = {};
|
|
3900
3905
|
No = {
|
|
3901
|
-
dismiss: "Скасувати"
|
|
3902
|
-
};
|
|
3903
|
-
var Ro = {};
|
|
3904
|
-
Ro = {
|
|
3905
3906
|
dismiss: "取消"
|
|
3906
3907
|
};
|
|
3907
3908
|
var Lo = {};
|
|
@@ -3938,18 +3939,18 @@ Oo = {
|
|
|
3938
3939
|
"ru-RU": Ao,
|
|
3939
3940
|
"sk-SK": Ko,
|
|
3940
3941
|
"sl-SI": Mo,
|
|
3941
|
-
"sr-SP":
|
|
3942
|
-
"sv-SE":
|
|
3943
|
-
"tr-TR":
|
|
3944
|
-
"uk-UA":
|
|
3945
|
-
"zh-CN":
|
|
3942
|
+
"sr-SP": Io,
|
|
3943
|
+
"sv-SE": Fo,
|
|
3944
|
+
"tr-TR": Ro,
|
|
3945
|
+
"uk-UA": _o,
|
|
3946
|
+
"zh-CN": No,
|
|
3946
3947
|
"zh-TW": Lo
|
|
3947
3948
|
};
|
|
3948
3949
|
function Vf(t) {
|
|
3949
3950
|
return t && t.__esModule ? t.default : t;
|
|
3950
3951
|
}
|
|
3951
3952
|
function Hf(t) {
|
|
3952
|
-
let { onDismiss: e, ...n } = t, r =
|
|
3953
|
+
let { onDismiss: e, ...n } = t, r = vt(Vf(Oo), "@react-aria/overlays"), l = Di(n, r.format("dismiss")), i = () => {
|
|
3953
3954
|
e && e();
|
|
3954
3955
|
};
|
|
3955
3956
|
return /* @__PURE__ */ B.createElement(qr, null, /* @__PURE__ */ B.createElement("button", {
|
|
@@ -3962,7 +3963,7 @@ function Hf(t) {
|
|
|
3962
3963
|
}
|
|
3963
3964
|
}));
|
|
3964
3965
|
}
|
|
3965
|
-
let
|
|
3966
|
+
let Nt = /* @__PURE__ */ new WeakMap(), we = [];
|
|
3966
3967
|
function Wf(t, e = document.body) {
|
|
3967
3968
|
let n = new Set(t), r = /* @__PURE__ */ new Set(), l = (u) => {
|
|
3968
3969
|
for (let f of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) n.add(f);
|
|
@@ -3981,8 +3982,8 @@ function Wf(t, e = document.body) {
|
|
|
3981
3982
|
}
|
|
3982
3983
|
}, i = (u) => {
|
|
3983
3984
|
var s;
|
|
3984
|
-
let c = (s =
|
|
3985
|
-
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));
|
|
3986
3987
|
};
|
|
3987
3988
|
we.length && we[we.length - 1].disconnect(), l(e);
|
|
3988
3989
|
let o = new MutationObserver((u) => {
|
|
@@ -4014,8 +4015,8 @@ function Wf(t, e = document.body) {
|
|
|
4014
4015
|
return we.push(a), () => {
|
|
4015
4016
|
o.disconnect();
|
|
4016
4017
|
for (let u of r) {
|
|
4017
|
-
let s =
|
|
4018
|
-
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);
|
|
4019
4020
|
}
|
|
4020
4021
|
a === we[we.length - 1] ? (we.pop(), we.length && we[we.length - 1].observe()) : we.splice(we.indexOf(a), 1);
|
|
4021
4022
|
};
|
|
@@ -4035,7 +4036,7 @@ function Uf(t, e) {
|
|
|
4035
4036
|
isOpen: e.isOpen,
|
|
4036
4037
|
onClose: l ? e.close : null
|
|
4037
4038
|
});
|
|
4038
|
-
return
|
|
4039
|
+
return Ff({
|
|
4039
4040
|
isDisabled: l || !e.isOpen
|
|
4040
4041
|
}), Q(() => {
|
|
4041
4042
|
if (e.isOpen && !l && r.current) return Wf([
|
|
@@ -4095,7 +4096,7 @@ function Jf(t, e) {
|
|
|
4095
4096
|
function Pr(t) {
|
|
4096
4097
|
return ud() ? t.altKey : t.ctrlKey;
|
|
4097
4098
|
}
|
|
4098
|
-
function
|
|
4099
|
+
function wt(t) {
|
|
4099
4100
|
return nt() ? t.metaKey : t.ctrlKey;
|
|
4100
4101
|
}
|
|
4101
4102
|
const Qf = 1e3;
|
|
@@ -4124,12 +4125,12 @@ function ep(t) {
|
|
|
4124
4125
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
4125
4126
|
}
|
|
4126
4127
|
function Vo(t) {
|
|
4127
|
-
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) => {
|
|
4128
4129
|
if (w.altKey && w.key === "Tab" && w.preventDefault(), !r.current.contains(w.target)) return;
|
|
4129
4130
|
const T = (O, ke) => {
|
|
4130
4131
|
if (O != null) {
|
|
4131
4132
|
if (e.isLink(O) && m === "selection" && u && !Pr(w)) {
|
|
4132
|
-
|
|
4133
|
+
Rc(() => {
|
|
4133
4134
|
e.setFocusedKey(O, ke);
|
|
4134
4135
|
});
|
|
4135
4136
|
let Se = p.current.querySelector(`[data-key="${CSS.escape(O.toString())}"]`), Ye = e.getItemProps(O);
|
|
@@ -4143,16 +4144,16 @@ function Vo(t) {
|
|
|
4143
4144
|
switch (w.key) {
|
|
4144
4145
|
case "ArrowDown":
|
|
4145
4146
|
if (n.getKeyBelow) {
|
|
4146
|
-
var
|
|
4147
|
-
let O = e.focusedKey != null ? (
|
|
4148
|
-
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));
|
|
4149
4150
|
}
|
|
4150
4151
|
break;
|
|
4151
4152
|
case "ArrowUp":
|
|
4152
4153
|
if (n.getKeyAbove) {
|
|
4153
|
-
var D, z,
|
|
4154
|
+
var D, z, I;
|
|
4154
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);
|
|
4155
|
-
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));
|
|
4156
4157
|
}
|
|
4157
4158
|
break;
|
|
4158
4159
|
case "ArrowLeft":
|
|
@@ -4164,23 +4165,23 @@ function Vo(t) {
|
|
|
4164
4165
|
break;
|
|
4165
4166
|
case "ArrowRight":
|
|
4166
4167
|
if (n.getKeyRightOf) {
|
|
4167
|
-
var
|
|
4168
|
-
let O = (
|
|
4168
|
+
var Ae, Ee, Ge;
|
|
4169
|
+
let O = (Ae = n.getKeyRightOf) === null || Ae === void 0 ? void 0 : Ae.call(n, e.focusedKey);
|
|
4169
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"));
|
|
4170
4171
|
}
|
|
4171
4172
|
break;
|
|
4172
4173
|
case "Home":
|
|
4173
4174
|
if (n.getFirstKey) {
|
|
4174
4175
|
w.preventDefault();
|
|
4175
|
-
let O = n.getFirstKey(e.focusedKey,
|
|
4176
|
-
e.setFocusedKey(O),
|
|
4176
|
+
let O = n.getFirstKey(e.focusedKey, wt(w));
|
|
4177
|
+
e.setFocusedKey(O), wt(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4177
4178
|
}
|
|
4178
4179
|
break;
|
|
4179
4180
|
case "End":
|
|
4180
4181
|
if (n.getLastKey) {
|
|
4181
4182
|
w.preventDefault();
|
|
4182
|
-
let O = n.getLastKey(e.focusedKey,
|
|
4183
|
-
e.setFocusedKey(O),
|
|
4183
|
+
let O = n.getLastKey(e.focusedKey, wt(w));
|
|
4184
|
+
e.setFocusedKey(O), wt(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4184
4185
|
}
|
|
4185
4186
|
break;
|
|
4186
4187
|
case "PageDown":
|
|
@@ -4196,7 +4197,7 @@ function Vo(t) {
|
|
|
4196
4197
|
}
|
|
4197
4198
|
break;
|
|
4198
4199
|
case "a":
|
|
4199
|
-
|
|
4200
|
+
wt(w) && e.selectionMode === "multiple" && a !== !0 && (w.preventDefault(), e.selectAll());
|
|
4200
4201
|
break;
|
|
4201
4202
|
case "Escape":
|
|
4202
4203
|
!o && e.selectedKeys.size !== 0 && (w.stopPropagation(), w.preventDefault(), e.clearSelection());
|
|
@@ -4235,9 +4236,9 @@ function Vo(t) {
|
|
|
4235
4236
|
if (e.setFocused(!0), e.focusedKey == null) {
|
|
4236
4237
|
let x = (D) => {
|
|
4237
4238
|
D != null && (e.setFocusedKey(D), u && e.replaceSelection(D));
|
|
4238
|
-
},
|
|
4239
|
-
var T,
|
|
4240
|
-
|
|
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());
|
|
4241
4242
|
} else f || (p.current.scrollTop = S.current.top, p.current.scrollLeft = S.current.left);
|
|
4242
4243
|
if (e.focusedKey != null) {
|
|
4243
4244
|
let x = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
@@ -4256,8 +4257,8 @@ function Vo(t) {
|
|
|
4256
4257
|
l === "first" && (w = n.getFirstKey()), l === "last" && (w = n.getLastKey());
|
|
4257
4258
|
let T = e.selectedKeys;
|
|
4258
4259
|
if (T.size) {
|
|
4259
|
-
for (let
|
|
4260
|
-
w =
|
|
4260
|
+
for (let F of T) if (e.canSelectItem(F)) {
|
|
4261
|
+
w = F;
|
|
4261
4262
|
break;
|
|
4262
4263
|
}
|
|
4263
4264
|
}
|
|
@@ -4278,7 +4279,7 @@ function Vo(t) {
|
|
|
4278
4279
|
}), Pl(r, "react-aria-focus-scope-restore", (w) => {
|
|
4279
4280
|
w.preventDefault(), e.setFocused(!0);
|
|
4280
4281
|
});
|
|
4281
|
-
let
|
|
4282
|
+
let R = {
|
|
4282
4283
|
onKeyDown: E,
|
|
4283
4284
|
onFocus: y,
|
|
4284
4285
|
onBlur: k,
|
|
@@ -4289,28 +4290,28 @@ function Vo(t) {
|
|
|
4289
4290
|
keyboardDelegate: n,
|
|
4290
4291
|
selectionManager: e
|
|
4291
4292
|
});
|
|
4292
|
-
s || (
|
|
4293
|
+
s || (R = W(v, R));
|
|
4293
4294
|
let A;
|
|
4294
4295
|
return c || (A = e.focusedKey == null ? 0 : -1), {
|
|
4295
4296
|
collectionProps: {
|
|
4296
|
-
...
|
|
4297
|
+
...R,
|
|
4297
4298
|
tabIndex: A
|
|
4298
4299
|
}
|
|
4299
4300
|
};
|
|
4300
4301
|
}
|
|
4301
|
-
function
|
|
4302
|
-
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 = (
|
|
4303
|
-
if (
|
|
4302
|
+
function Rn(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);
|
|
4304
4305
|
else {
|
|
4305
4306
|
if (e.selectionMode === "none") return;
|
|
4306
4307
|
if (e.isLink(n)) {
|
|
4307
4308
|
if (c === "selection") {
|
|
4308
4309
|
let Z = e.getItemProps(n);
|
|
4309
|
-
d.open(r.current,
|
|
4310
|
+
d.open(r.current, I, Z.href, Z.routerOptions), e.setSelectedKeys(e.selectedKeys);
|
|
4310
4311
|
return;
|
|
4311
4312
|
} else if (c === "override" || c === "none") return;
|
|
4312
4313
|
}
|
|
4313
|
-
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);
|
|
4314
4315
|
}
|
|
4315
4316
|
};
|
|
4316
4317
|
L(() => {
|
|
@@ -4326,51 +4327,51 @@ function _n(t) {
|
|
|
4326
4327
|
let p = {};
|
|
4327
4328
|
!i && !a ? p = {
|
|
4328
4329
|
tabIndex: n === e.focusedKey ? 0 : -1,
|
|
4329
|
-
onFocus(
|
|
4330
|
-
|
|
4330
|
+
onFocus(I) {
|
|
4331
|
+
I.target === r.current && e.setFocusedKey(n);
|
|
4331
4332
|
}
|
|
4332
|
-
} : a && (p.onMouseDown = (
|
|
4333
|
-
|
|
4333
|
+
} : a && (p.onMouseDown = (I) => {
|
|
4334
|
+
I.preventDefault();
|
|
4334
4335
|
});
|
|
4335
|
-
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,
|
|
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, R = M(!1), v = M(!1), A = (I) => {
|
|
4336
4337
|
if (u && u(), $) {
|
|
4337
4338
|
let Z = e.getItemProps(n);
|
|
4338
|
-
d.open(r.current,
|
|
4339
|
+
d.open(r.current, I, Z.href, Z.routerOptions);
|
|
4339
4340
|
}
|
|
4340
4341
|
}, w = {};
|
|
4341
|
-
l ? (w.onPressStart = (
|
|
4342
|
-
C.current =
|
|
4343
|
-
}, s ? (w.onPressUp = S ? null : (
|
|
4344
|
-
|
|
4345
|
-
}, w.onPress = S ? A : null) : w.onPress = (
|
|
4346
|
-
if (S || y &&
|
|
4347
|
-
if (
|
|
4348
|
-
A(
|
|
4349
|
-
} else
|
|
4350
|
-
}) : (w.onPressStart = (
|
|
4351
|
-
C.current =
|
|
4352
|
-
}, w.onPress = (
|
|
4353
|
-
(
|
|
4342
|
+
l ? (w.onPressStart = (I) => {
|
|
4343
|
+
C.current = I.pointerType, R.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, R.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));
|
|
4354
4355
|
}), p["data-key"] = n, w.preventFocusOnPress = i;
|
|
4355
|
-
let { pressProps: T, isPressed:
|
|
4356
|
-
C.current === "mouse" && (
|
|
4357
|
-
} : 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({
|
|
4358
4359
|
isDisabled: !P,
|
|
4359
|
-
onLongPress(
|
|
4360
|
-
|
|
4360
|
+
onLongPress(I) {
|
|
4361
|
+
I.pointerType === "touch" && (f(I), e.setSelectionBehavior("toggle"));
|
|
4361
4362
|
}
|
|
4362
|
-
}), D = (
|
|
4363
|
-
C.current === "touch" &&
|
|
4364
|
-
}, z = e.isLink(n) ? (
|
|
4365
|
-
|
|
4363
|
+
}), D = (I) => {
|
|
4364
|
+
C.current === "touch" && R.current && I.preventDefault();
|
|
4365
|
+
}, z = e.isLink(n) ? (I) => {
|
|
4366
|
+
ct.isOpening || I.preventDefault();
|
|
4366
4367
|
} : void 0;
|
|
4367
4368
|
return {
|
|
4368
|
-
itemProps: W(p, g || S ? T : {}, P ?
|
|
4369
|
+
itemProps: W(p, g || S ? T : {}, P ? N : {}, {
|
|
4369
4370
|
onDoubleClick: x,
|
|
4370
4371
|
onDragStartCapture: D,
|
|
4371
4372
|
onClick: z
|
|
4372
4373
|
}),
|
|
4373
|
-
isPressed:
|
|
4374
|
+
isPressed: F,
|
|
4374
4375
|
isSelected: e.isSelected(n),
|
|
4375
4376
|
isFocused: e.isFocused && e.focusedKey === n,
|
|
4376
4377
|
isDisabled: a,
|
|
@@ -4527,7 +4528,7 @@ class Ho {
|
|
|
4527
4528
|
}
|
|
4528
4529
|
}
|
|
4529
4530
|
function Wo(t) {
|
|
4530
|
-
let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, a =
|
|
4531
|
+
let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, a = In({
|
|
4531
4532
|
usage: "search",
|
|
4532
4533
|
sensitivity: "base"
|
|
4533
4534
|
}), u = e.disabledBehavior, s = H(() => i || new Ho({
|
|
@@ -4662,7 +4663,7 @@ Go.getCollectionNode = function* (e) {
|
|
|
4662
4663
|
}
|
|
4663
4664
|
};
|
|
4664
4665
|
};
|
|
4665
|
-
let
|
|
4666
|
+
let Vh = Go;
|
|
4666
4667
|
class rp {
|
|
4667
4668
|
build(e, n) {
|
|
4668
4669
|
return this.context = n, ei(() => this.iterateCollection(e));
|
|
@@ -4835,7 +4836,7 @@ function Jr(t, e, n) {
|
|
|
4835
4836
|
function ce(t, e) {
|
|
4836
4837
|
return typeof e.getChildren == "function" ? e.getChildren(t.key) : t.childNodes;
|
|
4837
4838
|
}
|
|
4838
|
-
function
|
|
4839
|
+
function Ne(t) {
|
|
4839
4840
|
return Qe(t, 0);
|
|
4840
4841
|
}
|
|
4841
4842
|
function Qe(t, e) {
|
|
@@ -4903,10 +4904,10 @@ function ip(t, e, n) {
|
|
|
4903
4904
|
let z = Number(P == null ? void 0 : P.index);
|
|
4904
4905
|
C["aria-posinset"] = Number.isNaN(z) ? void 0 : z + 1, C["aria-setsize"] = Yo(e.collection);
|
|
4905
4906
|
}
|
|
4906
|
-
let
|
|
4907
|
+
let R = o != null && o.onAction ? () => {
|
|
4907
4908
|
var z;
|
|
4908
4909
|
return o == null || (z = o.onAction) === null || z === void 0 ? void 0 : z.call(o, i);
|
|
4909
|
-
} : void 0, { itemProps: v, isPressed: A, isFocused: w, hasAction: T, allowsSelection:
|
|
4910
|
+
} : void 0, { itemProps: v, isPressed: A, isFocused: w, hasAction: T, allowsSelection: F } = Rn({
|
|
4910
4911
|
selectionManager: e.selectionManager,
|
|
4911
4912
|
key: i,
|
|
4912
4913
|
ref: n,
|
|
@@ -4915,20 +4916,20 @@ function ip(t, e, n) {
|
|
|
4915
4916
|
isVirtualized: S,
|
|
4916
4917
|
shouldUseVirtualFocus: g,
|
|
4917
4918
|
isDisabled: u,
|
|
4918
|
-
onAction:
|
|
4919
|
+
onAction: R || !(P == null || (r = P.props) === null || r === void 0) && r.onAction ? Ie(P == null || (l = P.props) === null || l === void 0 ? void 0 : l.onAction, R) : void 0,
|
|
4919
4920
|
linkBehavior: o == null ? void 0 : o.linkBehavior
|
|
4920
4921
|
}), { hoverProps: x } = Tt({
|
|
4921
4922
|
isDisabled: u || !m,
|
|
4922
4923
|
onHoverStart() {
|
|
4923
|
-
|
|
4924
|
+
ft() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
4924
4925
|
}
|
|
4925
|
-
}),
|
|
4926
|
-
delete
|
|
4926
|
+
}), N = ve(P == null ? void 0 : P.props);
|
|
4927
|
+
delete N.id;
|
|
4927
4928
|
let D = Ci(P == null ? void 0 : P.props);
|
|
4928
4929
|
return {
|
|
4929
4930
|
optionProps: {
|
|
4930
4931
|
...C,
|
|
4931
|
-
...W(
|
|
4932
|
+
...W(N, v, x, D),
|
|
4932
4933
|
id: Jf(e, i)
|
|
4933
4934
|
},
|
|
4934
4935
|
labelProps: {
|
|
@@ -4938,11 +4939,11 @@ function ip(t, e, n) {
|
|
|
4938
4939
|
id: k
|
|
4939
4940
|
},
|
|
4940
4941
|
isFocused: w,
|
|
4941
|
-
isFocusVisible: w &&
|
|
4942
|
+
isFocusVisible: w && ft(),
|
|
4942
4943
|
isSelected: c,
|
|
4943
4944
|
isDisabled: u,
|
|
4944
4945
|
isPressed: A,
|
|
4945
|
-
allowsSelection:
|
|
4946
|
+
allowsSelection: F,
|
|
4946
4947
|
hasAction: T
|
|
4947
4948
|
};
|
|
4948
4949
|
}
|
|
@@ -5140,7 +5141,7 @@ function Ba(t, e, n) {
|
|
|
5140
5141
|
default:
|
|
5141
5142
|
"continuePropagation" in p && p.continuePropagation();
|
|
5142
5143
|
}
|
|
5143
|
-
}, c =
|
|
5144
|
+
}, c = vt(op(Ta), "@react-aria/menu"), { longPressProps: d } = ji({
|
|
5144
5145
|
isDisabled: l || i !== "longPress",
|
|
5145
5146
|
accessibilityDescription: c.format("longPressMessage"),
|
|
5146
5147
|
onLongPressStart() {
|
|
@@ -5206,12 +5207,12 @@ function Ka(t, e, n) {
|
|
|
5206
5207
|
function Ma(t, e, n) {
|
|
5207
5208
|
let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: $, onKeyDown: g, onKeyUp: E, onFocus: S, onFocusChange: y, onBlur: k } = t, C = !!a;
|
|
5208
5209
|
var P;
|
|
5209
|
-
let
|
|
5210
|
+
let R = (P = t.isDisabled) !== null && P !== void 0 ? P : e.selectionManager.isDisabled(l);
|
|
5210
5211
|
var v;
|
|
5211
|
-
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), w = Aa.get(e), T = e.collection.getItem(l),
|
|
5212
|
-
var
|
|
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
|
+
var gt;
|
|
5213
5214
|
if (!C) {
|
|
5214
|
-
if (!(T == null || (
|
|
5215
|
+
if (!(T == null || (gt = T.props) === null || gt === void 0) && gt.onAction ? T.props.onAction() : t.onAction && t.onAction(l), w.onAction) {
|
|
5215
5216
|
let On = w.onAction;
|
|
5216
5217
|
On(l);
|
|
5217
5218
|
}
|
|
@@ -5219,14 +5220,14 @@ function Ma(t, e, n) {
|
|
|
5219
5220
|
}
|
|
5220
5221
|
}, D = "menuitem";
|
|
5221
5222
|
C || (e.selectionManager.selectionMode === "single" ? D = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (D = "menuitemcheckbox"));
|
|
5222
|
-
let z = tt(),
|
|
5223
|
+
let z = tt(), I = tt(), Z = tt(), ue = {
|
|
5223
5224
|
id: r,
|
|
5224
|
-
"aria-disabled":
|
|
5225
|
+
"aria-disabled": R || void 0,
|
|
5225
5226
|
role: D,
|
|
5226
5227
|
"aria-label": t["aria-label"],
|
|
5227
5228
|
"aria-labelledby": z,
|
|
5228
5229
|
"aria-describedby": [
|
|
5229
|
-
|
|
5230
|
+
I,
|
|
5230
5231
|
Z
|
|
5231
5232
|
].filter(Boolean).join(" ") || void 0,
|
|
5232
5233
|
"aria-controls": t["aria-controls"],
|
|
@@ -5235,10 +5236,10 @@ function Ma(t, e, n) {
|
|
|
5235
5236
|
};
|
|
5236
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));
|
|
5237
5238
|
let fe = (le) => {
|
|
5238
|
-
le.pointerType === "keyboard" &&
|
|
5239
|
-
},
|
|
5240
|
-
le.pointerType !== "keyboard" && (
|
|
5241
|
-
}, { 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 } = Rn({
|
|
5242
5243
|
selectionManager: e.selectionManager,
|
|
5243
5244
|
key: l,
|
|
5244
5245
|
ref: n,
|
|
@@ -5249,17 +5250,17 @@ function Ma(t, e, n) {
|
|
|
5249
5250
|
// is slightly different from other collections because
|
|
5250
5251
|
// actions are performed on key down rather than key up.
|
|
5251
5252
|
linkBehavior: "none"
|
|
5252
|
-
}), { pressProps: O, isPressed: ke } =
|
|
5253
|
+
}), { pressProps: O, isPressed: ke } = ze({
|
|
5253
5254
|
onPressStart: fe,
|
|
5254
5255
|
onPress: c,
|
|
5255
|
-
onPressUp:
|
|
5256
|
+
onPressUp: Ae,
|
|
5256
5257
|
onPressChange: d,
|
|
5257
5258
|
onPressEnd: f,
|
|
5258
|
-
isDisabled:
|
|
5259
|
+
isDisabled: R
|
|
5259
5260
|
}), { hoverProps: Se } = Tt({
|
|
5260
|
-
isDisabled:
|
|
5261
|
+
isDisabled: R,
|
|
5261
5262
|
onHoverStart(le) {
|
|
5262
|
-
|
|
5263
|
+
ft() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(l)), p == null || p(le);
|
|
5263
5264
|
},
|
|
5264
5265
|
onHoverChange: m,
|
|
5265
5266
|
onHoverEnd: $
|
|
@@ -5271,10 +5272,10 @@ function Ma(t, e, n) {
|
|
|
5271
5272
|
}
|
|
5272
5273
|
switch (le.key) {
|
|
5273
5274
|
case " ":
|
|
5274
|
-
!
|
|
5275
|
+
!R && e.selectionManager.selectionMode === "none" && !C && i !== !1 && F && F();
|
|
5275
5276
|
break;
|
|
5276
5277
|
case "Enter":
|
|
5277
|
-
!
|
|
5278
|
+
!R && i !== !1 && !C && F && F();
|
|
5278
5279
|
break;
|
|
5279
5280
|
default:
|
|
5280
5281
|
C || le.continuePropagation(), g == null || g(le);
|
|
@@ -5282,27 +5283,27 @@ function Ma(t, e, n) {
|
|
|
5282
5283
|
}
|
|
5283
5284
|
},
|
|
5284
5285
|
onKeyUp: E
|
|
5285
|
-
}), { focusProps:
|
|
5286
|
+
}), { focusProps: ht } = Bn({
|
|
5286
5287
|
onBlur: k,
|
|
5287
5288
|
onFocus: S,
|
|
5288
5289
|
onFocusChange: y
|
|
5289
|
-
}),
|
|
5290
|
-
delete
|
|
5291
|
-
let
|
|
5290
|
+
}), mt = ve(T.props);
|
|
5291
|
+
delete mt.id;
|
|
5292
|
+
let bt = Ci(T.props);
|
|
5292
5293
|
return {
|
|
5293
5294
|
menuItemProps: {
|
|
5294
5295
|
...ue,
|
|
5295
|
-
...W(
|
|
5296
|
+
...W(mt, bt, C ? {
|
|
5296
5297
|
onFocus: Ee.onFocus,
|
|
5297
5298
|
"data-key": Ee["data-key"]
|
|
5298
|
-
} : Ee, O, Se, Ye,
|
|
5299
|
+
} : Ee, O, Se, Ye, ht),
|
|
5299
5300
|
tabIndex: Ee.tabIndex != null ? -1 : void 0
|
|
5300
5301
|
},
|
|
5301
5302
|
labelProps: {
|
|
5302
5303
|
id: z
|
|
5303
5304
|
},
|
|
5304
5305
|
descriptionProps: {
|
|
5305
|
-
id:
|
|
5306
|
+
id: I
|
|
5306
5307
|
},
|
|
5307
5308
|
keyboardShortcutProps: {
|
|
5308
5309
|
id: Z
|
|
@@ -5310,7 +5311,7 @@ function Ma(t, e, n) {
|
|
|
5310
5311
|
isFocused: Ge,
|
|
5311
5312
|
isSelected: A,
|
|
5312
5313
|
isPressed: ke,
|
|
5313
|
-
isDisabled:
|
|
5314
|
+
isDisabled: R
|
|
5314
5315
|
};
|
|
5315
5316
|
}
|
|
5316
5317
|
function ap(t) {
|
|
@@ -5399,7 +5400,7 @@ const fp = /* @__PURE__ */ new Set([
|
|
|
5399
5400
|
"text/plain",
|
|
5400
5401
|
"text/uri-list",
|
|
5401
5402
|
"text/html"
|
|
5402
|
-
]), kr = "application/vnd.react-aria.items+json",
|
|
5403
|
+
]), kr = "application/vnd.react-aria.items+json", Ia = "application/octet-stream";
|
|
5403
5404
|
function ri(t, e) {
|
|
5404
5405
|
let n = /* @__PURE__ */ new Map(), r = !1, l = [];
|
|
5405
5406
|
for (let i of e) {
|
|
@@ -5441,12 +5442,12 @@ function pp(t) {
|
|
|
5441
5442
|
let r = /* @__PURE__ */ new Map();
|
|
5442
5443
|
for (let l of t.items)
|
|
5443
5444
|
if (l.kind === "string")
|
|
5444
|
-
r.set(l.type ||
|
|
5445
|
+
r.set(l.type || Ia, t.getData(l.type));
|
|
5445
5446
|
else if (l.kind === "file")
|
|
5446
5447
|
if (typeof l.webkitGetAsEntry == "function") {
|
|
5447
5448
|
let i = l.webkitGetAsEntry();
|
|
5448
5449
|
if (!i) continue;
|
|
5449
|
-
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));
|
|
5450
5451
|
} else
|
|
5451
5452
|
e.push(Tr(l.getAsFile()));
|
|
5452
5453
|
r.size > 0 && e.push({
|
|
@@ -5468,13 +5469,13 @@ function vp(t) {
|
|
|
5468
5469
|
function Tr(t) {
|
|
5469
5470
|
return {
|
|
5470
5471
|
kind: "file",
|
|
5471
|
-
type: t.type ||
|
|
5472
|
+
type: t.type || Ia,
|
|
5472
5473
|
name: t.name,
|
|
5473
5474
|
getText: () => vp(t),
|
|
5474
5475
|
getFile: () => Promise.resolve(t)
|
|
5475
5476
|
};
|
|
5476
5477
|
}
|
|
5477
|
-
function
|
|
5478
|
+
function Fa(t) {
|
|
5478
5479
|
return {
|
|
5479
5480
|
kind: "directory",
|
|
5480
5481
|
name: t.name,
|
|
@@ -5491,7 +5492,7 @@ async function* hp(t) {
|
|
|
5491
5492
|
if (r.isFile) {
|
|
5492
5493
|
let l = await mp(r);
|
|
5493
5494
|
yield Tr(l);
|
|
5494
|
-
} else r.isDirectory && (yield
|
|
5495
|
+
} else r.isDirectory && (yield Fa(r));
|
|
5495
5496
|
} while (n.length > 0);
|
|
5496
5497
|
}
|
|
5497
5498
|
function mp(t) {
|
|
@@ -5499,7 +5500,7 @@ function mp(t) {
|
|
|
5499
5500
|
}
|
|
5500
5501
|
Ut.none;
|
|
5501
5502
|
const or = /* @__PURE__ */ new Map();
|
|
5502
|
-
function
|
|
5503
|
+
function St(t, e) {
|
|
5503
5504
|
let n = or.get(t);
|
|
5504
5505
|
if (!n) {
|
|
5505
5506
|
let r = /* @__PURE__ */ new Set(), l = (i) => {
|
|
@@ -5538,7 +5539,7 @@ function bp(t) {
|
|
|
5538
5539
|
});
|
|
5539
5540
|
return L(() => {
|
|
5540
5541
|
if (!e)
|
|
5541
|
-
return
|
|
5542
|
+
return Ie(St("beforecopy", l), St("copy", i), St("beforecut", o), St("cut", a), St("beforepaste", u), St("paste", s));
|
|
5542
5543
|
}, [
|
|
5543
5544
|
e,
|
|
5544
5545
|
l,
|
|
@@ -5551,7 +5552,7 @@ function bp(t) {
|
|
|
5551
5552
|
clipboardProps: r
|
|
5552
5553
|
};
|
|
5553
5554
|
}
|
|
5554
|
-
class
|
|
5555
|
+
class Ra {
|
|
5555
5556
|
isCell(e) {
|
|
5556
5557
|
return e.type === "cell";
|
|
5557
5558
|
}
|
|
@@ -5603,7 +5604,7 @@ class _a {
|
|
|
5603
5604
|
if (n) {
|
|
5604
5605
|
if (this.isRow(n)) {
|
|
5605
5606
|
let r = ce(n, this.collection);
|
|
5606
|
-
return this.direction === "rtl" ? et(r).key :
|
|
5607
|
+
return this.direction === "rtl" ? et(r).key : Ne(r).key;
|
|
5607
5608
|
}
|
|
5608
5609
|
if (this.isCell(n)) {
|
|
5609
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);
|
|
@@ -5616,7 +5617,7 @@ class _a {
|
|
|
5616
5617
|
if (n) {
|
|
5617
5618
|
if (this.isRow(n)) {
|
|
5618
5619
|
let r = ce(n, this.collection);
|
|
5619
|
-
return this.direction === "rtl" ?
|
|
5620
|
+
return this.direction === "rtl" ? Ne(r).key : et(r).key;
|
|
5620
5621
|
}
|
|
5621
5622
|
if (this.isCell(n)) {
|
|
5622
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);
|
|
@@ -5630,12 +5631,12 @@ class _a {
|
|
|
5630
5631
|
if (r = this.collection.getItem(e), !r) return;
|
|
5631
5632
|
if (this.isCell(r) && !n) {
|
|
5632
5633
|
let l = this.collection.getItem(r.parentKey);
|
|
5633
|
-
return
|
|
5634
|
+
return Ne(ce(l, this.collection)).key;
|
|
5634
5635
|
}
|
|
5635
5636
|
}
|
|
5636
5637
|
if (e = this.findNextKey(null, (l) => l.type === "item"), e != null && r && this.isCell(r) && n || this.focusMode === "cell") {
|
|
5637
5638
|
let l = this.collection.getItem(e);
|
|
5638
|
-
e =
|
|
5639
|
+
e = Ne(ce(l, this.collection)).key;
|
|
5639
5640
|
}
|
|
5640
5641
|
return e;
|
|
5641
5642
|
}
|
|
@@ -5683,7 +5684,7 @@ class _a {
|
|
|
5683
5684
|
if (a.textValue) {
|
|
5684
5685
|
let u = a.textValue.slice(0, e.length);
|
|
5685
5686
|
if (this.collator.compare(u, e) === 0)
|
|
5686
|
-
return this.isRow(a) && this.focusMode === "cell" ?
|
|
5687
|
+
return this.isRow(a) && this.focusMode === "cell" ? Ne(ce(a, this.collection)).key : a.key;
|
|
5687
5688
|
}
|
|
5688
5689
|
l = this.findNextKey(l, (u) => u.type === "item"), l == null && !o && (l = this.getFirstKey(), o = !0);
|
|
5689
5690
|
}
|
|
@@ -5709,8 +5710,8 @@ class gp {
|
|
|
5709
5710
|
}
|
|
5710
5711
|
}
|
|
5711
5712
|
const el = /* @__PURE__ */ new WeakMap();
|
|
5712
|
-
var
|
|
5713
|
-
|
|
5713
|
+
var _a = {};
|
|
5714
|
+
_a = {
|
|
5714
5715
|
deselectedItem: (t) => `${t.item} غير المحدد`,
|
|
5715
5716
|
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
|
|
5716
5717
|
select: "تحديد",
|
|
@@ -5722,8 +5723,8 @@ Na = {
|
|
|
5722
5723
|
})}.`,
|
|
5723
5724
|
selectedItem: (t) => `${t.item} المحدد`
|
|
5724
5725
|
};
|
|
5725
|
-
var
|
|
5726
|
-
|
|
5726
|
+
var Na = {};
|
|
5727
|
+
Na = {
|
|
5727
5728
|
deselectedItem: (t) => `${t.item} не е избран.`,
|
|
5728
5729
|
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
|
|
5729
5730
|
select: "Изберете",
|
|
@@ -6153,8 +6154,8 @@ mu = {
|
|
|
6153
6154
|
};
|
|
6154
6155
|
var tl = {};
|
|
6155
6156
|
tl = {
|
|
6156
|
-
"ar-AE":
|
|
6157
|
-
"bg-BG":
|
|
6157
|
+
"ar-AE": _a,
|
|
6158
|
+
"bg-BG": Na,
|
|
6158
6159
|
"cs-CZ": La,
|
|
6159
6160
|
"da-DK": Oa,
|
|
6160
6161
|
"de-DE": za,
|
|
@@ -6195,7 +6196,7 @@ function yp(t, e) {
|
|
|
6195
6196
|
let { getRowText: n = (o) => {
|
|
6196
6197
|
var a, u, s, c;
|
|
6197
6198
|
return (c = (a = (u = e.collection).getTextValue) === null || a === void 0 ? void 0 : a.call(u, o)) !== null && c !== void 0 ? c : (s = e.collection.getItem(o)) === null || s === void 0 ? void 0 : s.textValue;
|
|
6198
|
-
} } = t, r =
|
|
6199
|
+
} } = t, r = vt($p(tl), "@react-aria/grid"), l = e.selectionManager.rawSelection, i = M(l);
|
|
6199
6200
|
ki(() => {
|
|
6200
6201
|
var o;
|
|
6201
6202
|
if (!e.selectionManager.isFocused) {
|
|
@@ -6238,7 +6239,7 @@ function xp(t) {
|
|
|
6238
6239
|
return t && t.__esModule ? t.default : t;
|
|
6239
6240
|
}
|
|
6240
6241
|
function Ep(t) {
|
|
6241
|
-
let e =
|
|
6242
|
+
let e = vt(xp(tl), "@react-aria/grid"), n = Li(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = H(() => {
|
|
6242
6243
|
let o = t.selectionManager.selectionMode, a = t.selectionManager.selectionBehavior, u;
|
|
6243
6244
|
return r && (u = e.format("longPressToSelect")), a === "replace" && o !== "none" && t.hasItemActions ? u : void 0;
|
|
6244
6245
|
}, [
|
|
@@ -6253,10 +6254,10 @@ function Ep(t) {
|
|
|
6253
6254
|
function Sp(t, e, n) {
|
|
6254
6255
|
let { isVirtualized: r, keyboardDelegate: l, focusMode: i, scrollRef: o, getRowText: a, onRowAction: u, onCellAction: s } = t, { selectionManager: c } = e;
|
|
6255
6256
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
6256
|
-
let d =
|
|
6257
|
+
let d = In({
|
|
6257
6258
|
usage: "search",
|
|
6258
6259
|
sensitivity: "base"
|
|
6259
|
-
}), { direction: f } =
|
|
6260
|
+
}), { direction: f } = He(), p = e.selectionManager.disabledBehavior, m = H(() => l || new Ra({
|
|
6260
6261
|
collection: e.collection,
|
|
6261
6262
|
disabledKeys: e.disabledKeys,
|
|
6262
6263
|
disabledBehavior: p,
|
|
@@ -6292,12 +6293,12 @@ function Sp(t, e, n) {
|
|
|
6292
6293
|
hasItemActions: !!(u || s)
|
|
6293
6294
|
}), S = ve(t, {
|
|
6294
6295
|
labelable: !0
|
|
6295
|
-
}), y = X((
|
|
6296
|
+
}), y = X((R) => {
|
|
6296
6297
|
if (c.isFocused) {
|
|
6297
|
-
|
|
6298
|
+
R.currentTarget.contains(R.target) || c.setFocused(!1);
|
|
6298
6299
|
return;
|
|
6299
6300
|
}
|
|
6300
|
-
|
|
6301
|
+
R.currentTarget.contains(R.target) && c.setFocused(!0);
|
|
6301
6302
|
}, [
|
|
6302
6303
|
c
|
|
6303
6304
|
]), k = H(() => ({
|
|
@@ -6337,13 +6338,13 @@ function Cp() {
|
|
|
6337
6338
|
}
|
|
6338
6339
|
function wp(t, e, n) {
|
|
6339
6340
|
var r, l;
|
|
6340
|
-
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 } = Rn({
|
|
6341
6342
|
selectionManager: e.selectionManager,
|
|
6342
6343
|
key: i.key,
|
|
6343
6344
|
ref: n,
|
|
6344
6345
|
isVirtualized: o,
|
|
6345
6346
|
shouldSelectOnPressUp: a,
|
|
6346
|
-
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,
|
|
6347
6348
|
isDisabled: e.collection.size === 0
|
|
6348
6349
|
}), p = e.selectionManager.isSelected(i.key), m = {
|
|
6349
6350
|
role: "row",
|
|
@@ -6357,7 +6358,7 @@ function wp(t, e, n) {
|
|
|
6357
6358
|
};
|
|
6358
6359
|
}
|
|
6359
6360
|
function bu(t, e, n) {
|
|
6360
|
-
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 = () => {
|
|
6361
6362
|
let y = xe(n.current);
|
|
6362
6363
|
if (i === "child") {
|
|
6363
6364
|
if (n.current.contains(document.activeElement) && n.current !== document.activeElement) return;
|
|
@@ -6368,7 +6369,7 @@ function bu(t, e, n) {
|
|
|
6368
6369
|
}
|
|
6369
6370
|
}
|
|
6370
6371
|
(d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) && me(n.current);
|
|
6371
|
-
}, { itemProps: p, isPressed: m } =
|
|
6372
|
+
}, { itemProps: p, isPressed: m } = Rn({
|
|
6372
6373
|
selectionManager: e.selectionManager,
|
|
6373
6374
|
key: r.key,
|
|
6374
6375
|
ref: n,
|
|
@@ -6429,7 +6430,7 @@ function bu(t, e, n) {
|
|
|
6429
6430
|
},
|
|
6430
6431
|
onFocus: (y) => {
|
|
6431
6432
|
if (d.current = r.key, y.target !== n.current) {
|
|
6432
|
-
|
|
6433
|
+
ft() || e.selectionManager.setFocusedKey(r.key);
|
|
6433
6434
|
return;
|
|
6434
6435
|
}
|
|
6435
6436
|
requestAnimationFrame(() => {
|
|
@@ -6463,9 +6464,9 @@ function Pp(t, e, n) {
|
|
|
6463
6464
|
!u && !s && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
6464
6465
|
let c = e.selectedValue === r, d = (v) => {
|
|
6465
6466
|
v.stopPropagation(), e.setSelectedValue(r);
|
|
6466
|
-
}, { pressProps: f, isPressed: p } =
|
|
6467
|
+
}, { pressProps: f, isPressed: p } = ze({
|
|
6467
6468
|
isDisabled: a
|
|
6468
|
-
}), { pressProps: m, isPressed: $ } =
|
|
6469
|
+
}), { pressProps: m, isPressed: $ } = ze({
|
|
6469
6470
|
isDisabled: a,
|
|
6470
6471
|
onPress() {
|
|
6471
6472
|
e.setSelectedValue(r);
|
|
@@ -6476,9 +6477,9 @@ function Pp(t, e, n) {
|
|
|
6476
6477
|
labelable: !0
|
|
6477
6478
|
}), y = -1;
|
|
6478
6479
|
e.selectedValue != null ? e.selectedValue === r && (y = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && (y = 0), a && (y = void 0);
|
|
6479
|
-
let { name: k, descriptionId: C, errorMessageId: P, validationBehavior:
|
|
6480
|
+
let { name: k, descriptionId: C, errorMessageId: P, validationBehavior: R } = gu.get(e);
|
|
6480
6481
|
return Tn(n, e.selectedValue, e.setSelectedValue), Ur({
|
|
6481
|
-
validationBehavior:
|
|
6482
|
+
validationBehavior: R
|
|
6482
6483
|
}, e, n), {
|
|
6483
6484
|
labelProps: W(m, {
|
|
6484
6485
|
onClick: (v) => v.preventDefault()
|
|
@@ -6489,7 +6490,7 @@ function Pp(t, e, n) {
|
|
|
6489
6490
|
name: k,
|
|
6490
6491
|
tabIndex: y,
|
|
6491
6492
|
disabled: a,
|
|
6492
|
-
required: e.isRequired &&
|
|
6493
|
+
required: e.isRequired && R === "native",
|
|
6493
6494
|
checked: c,
|
|
6494
6495
|
value: r,
|
|
6495
6496
|
onChange: d,
|
|
@@ -6505,7 +6506,7 @@ function Pp(t, e, n) {
|
|
|
6505
6506
|
};
|
|
6506
6507
|
}
|
|
6507
6508
|
function Dp(t, e) {
|
|
6508
|
-
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({
|
|
6509
6510
|
...t,
|
|
6510
6511
|
// Radio group is not an HTML input element so it
|
|
6511
6512
|
// shouldn't be labeled by a <label> element.
|
|
@@ -6542,8 +6543,8 @@ function Dp(t, e) {
|
|
|
6542
6543
|
k.preventDefault();
|
|
6543
6544
|
let P = xe(k.currentTarget, {
|
|
6544
6545
|
from: k.target
|
|
6545
|
-
}),
|
|
6546
|
-
C === "next" ? (
|
|
6546
|
+
}), R;
|
|
6547
|
+
C === "next" ? (R = P.nextNode(), R || (P.currentNode = k.currentTarget, R = P.firstChild())) : (R = P.previousNode(), R || (P.currentNode = k.currentTarget, R = P.lastChild())), R && (R.focus(), e.setSelectedValue(R.value));
|
|
6547
6548
|
}, y = be(n);
|
|
6548
6549
|
return gu.set(e, {
|
|
6549
6550
|
name: y,
|
|
@@ -6632,24 +6633,24 @@ var Mu = {};
|
|
|
6632
6633
|
Mu = {
|
|
6633
6634
|
"Clear search": "Cancella ricerca"
|
|
6634
6635
|
};
|
|
6635
|
-
var Fu = {};
|
|
6636
|
-
Fu = {
|
|
6637
|
-
"Clear search": "検索をクリア"
|
|
6638
|
-
};
|
|
6639
6636
|
var Iu = {};
|
|
6640
6637
|
Iu = {
|
|
6638
|
+
"Clear search": "検索をクリア"
|
|
6639
|
+
};
|
|
6640
|
+
var Fu = {};
|
|
6641
|
+
Fu = {
|
|
6641
6642
|
"Clear search": "검색 지우기"
|
|
6642
6643
|
};
|
|
6644
|
+
var Ru = {};
|
|
6645
|
+
Ru = {
|
|
6646
|
+
"Clear search": "Išvalyti iešką"
|
|
6647
|
+
};
|
|
6643
6648
|
var _u = {};
|
|
6644
6649
|
_u = {
|
|
6645
|
-
"Clear search": "
|
|
6650
|
+
"Clear search": "Notīrīt meklēšanu"
|
|
6646
6651
|
};
|
|
6647
6652
|
var Nu = {};
|
|
6648
6653
|
Nu = {
|
|
6649
|
-
"Clear search": "Notīrīt meklēšanu"
|
|
6650
|
-
};
|
|
6651
|
-
var Ru = {};
|
|
6652
|
-
Ru = {
|
|
6653
6654
|
"Clear search": "Tøm søk"
|
|
6654
6655
|
};
|
|
6655
6656
|
var Lu = {};
|
|
@@ -6725,11 +6726,11 @@ Qu = {
|
|
|
6725
6726
|
"hr-HR": Au,
|
|
6726
6727
|
"hu-HU": Ku,
|
|
6727
6728
|
"it-IT": Mu,
|
|
6728
|
-
"ja-JP":
|
|
6729
|
-
"ko-KR":
|
|
6730
|
-
"lt-LT":
|
|
6731
|
-
"lv-LV":
|
|
6732
|
-
"nb-NO":
|
|
6729
|
+
"ja-JP": Iu,
|
|
6730
|
+
"ko-KR": Fu,
|
|
6731
|
+
"lt-LT": Ru,
|
|
6732
|
+
"lv-LV": _u,
|
|
6733
|
+
"nb-NO": Nu,
|
|
6733
6734
|
"nl-NL": Lu,
|
|
6734
6735
|
"pl-PL": Ou,
|
|
6735
6736
|
"pt-BR": zu,
|
|
@@ -6749,7 +6750,7 @@ function kp(t) {
|
|
|
6749
6750
|
return t && t.__esModule ? t.default : t;
|
|
6750
6751
|
}
|
|
6751
6752
|
function Tp(t, e, n) {
|
|
6752
|
-
let r =
|
|
6753
|
+
let r = vt(kp(Qu), "@react-aria/searchfield"), { isDisabled: l, isReadOnly: i, onSubmit: o, onClear: a, type: u = "search" } = t, s = (E) => {
|
|
6753
6754
|
const S = E.key;
|
|
6754
6755
|
S === "Enter" && (l || i) && E.preventDefault(), !(l || i) && (S === "Enter" && o && (E.preventDefault(), o(e.value)), S === "Escape" && (e.value === "" ? E.continuePropagation() : (e.setValue(""), a && a())));
|
|
6755
6756
|
}, c = () => {
|
|
@@ -6761,7 +6762,7 @@ function Tp(t, e, n) {
|
|
|
6761
6762
|
...t,
|
|
6762
6763
|
value: e.value,
|
|
6763
6764
|
onChange: e.setValue,
|
|
6764
|
-
onKeyDown: i ? t.onKeyDown :
|
|
6765
|
+
onKeyDown: i ? t.onKeyDown : Ie(s, t.onKeyDown),
|
|
6765
6766
|
type: u
|
|
6766
6767
|
}, n);
|
|
6767
6768
|
return {
|
|
@@ -6786,7 +6787,7 @@ function Tp(t, e, n) {
|
|
|
6786
6787
|
}
|
|
6787
6788
|
const es = /* @__PURE__ */ new WeakMap();
|
|
6788
6789
|
function ts(t, e, n) {
|
|
6789
|
-
let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: a = "aria" } = t, u =
|
|
6790
|
+
let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: a = "aria" } = t, u = In({
|
|
6790
6791
|
usage: "search",
|
|
6791
6792
|
sensitivity: "base"
|
|
6792
6793
|
}), s = H(() => r || new Ho(e.collection, e.disabledKeys, null, u), [
|
|
@@ -6827,7 +6828,7 @@ function ts(t, e, n) {
|
|
|
6827
6828
|
p.onKeyDown = p.onKeyDownCapture, delete p.onKeyDownCapture;
|
|
6828
6829
|
let C = ve(t, {
|
|
6829
6830
|
labelable: !0
|
|
6830
|
-
}), P = W(p, c, S),
|
|
6831
|
+
}), P = W(p, c, S), R = be();
|
|
6831
6832
|
return es.set(e, {
|
|
6832
6833
|
isDisabled: l,
|
|
6833
6834
|
isRequired: i,
|
|
@@ -6837,16 +6838,16 @@ function ts(t, e, n) {
|
|
|
6837
6838
|
labelProps: {
|
|
6838
6839
|
...E,
|
|
6839
6840
|
onClick: () => {
|
|
6840
|
-
t.isDisabled || (n.current.focus(),
|
|
6841
|
+
t.isDisabled || (n.current.focus(), Ni("keyboard"));
|
|
6841
6842
|
}
|
|
6842
6843
|
},
|
|
6843
6844
|
triggerProps: W(C, {
|
|
6844
6845
|
...P,
|
|
6845
6846
|
isDisabled: l,
|
|
6846
|
-
onKeyDown:
|
|
6847
|
+
onKeyDown: Ie(P.onKeyDown, f, t.onKeyDown),
|
|
6847
6848
|
onKeyUp: t.onKeyUp,
|
|
6848
6849
|
"aria-labelledby": [
|
|
6849
|
-
|
|
6850
|
+
R,
|
|
6850
6851
|
P["aria-labelledby"],
|
|
6851
6852
|
P["aria-label"] && !P["aria-labelledby"] ? P.id : null
|
|
6852
6853
|
].filter(Boolean).join(" "),
|
|
@@ -6858,7 +6859,7 @@ function ts(t, e, n) {
|
|
|
6858
6859
|
}
|
|
6859
6860
|
}),
|
|
6860
6861
|
valueProps: {
|
|
6861
|
-
id:
|
|
6862
|
+
id: R
|
|
6862
6863
|
},
|
|
6863
6864
|
menuProps: {
|
|
6864
6865
|
...d,
|
|
@@ -7340,8 +7341,8 @@ Ms = {
|
|
|
7340
7341
|
selectAll: "Markera allt",
|
|
7341
7342
|
sortable: "sorterbar kolumn"
|
|
7342
7343
|
};
|
|
7343
|
-
var
|
|
7344
|
-
|
|
7344
|
+
var Is = {};
|
|
7345
|
+
Is = {
|
|
7345
7346
|
ascending: "artan sırada",
|
|
7346
7347
|
ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
|
|
7347
7348
|
columnSize: (t) => `${t.value} piksel`,
|
|
@@ -7352,8 +7353,8 @@ Fs = {
|
|
|
7352
7353
|
selectAll: "Tümünü Seç",
|
|
7353
7354
|
sortable: "Sıralanabilir sütun"
|
|
7354
7355
|
};
|
|
7355
|
-
var
|
|
7356
|
-
|
|
7356
|
+
var Fs = {};
|
|
7357
|
+
Fs = {
|
|
7357
7358
|
ascending: "висхідний",
|
|
7358
7359
|
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
7359
7360
|
columnSize: (t) => `${t.value} пікс.`,
|
|
@@ -7364,8 +7365,8 @@ Is = {
|
|
|
7364
7365
|
selectAll: "Вибрати все",
|
|
7365
7366
|
sortable: "сортувальний стовпець"
|
|
7366
7367
|
};
|
|
7367
|
-
var
|
|
7368
|
-
|
|
7368
|
+
var Rs = {};
|
|
7369
|
+
Rs = {
|
|
7369
7370
|
ascending: "升序",
|
|
7370
7371
|
ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
|
|
7371
7372
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -7376,8 +7377,8 @@ _s = {
|
|
|
7376
7377
|
selectAll: "全选",
|
|
7377
7378
|
sortable: "可排序的列"
|
|
7378
7379
|
};
|
|
7379
|
-
var
|
|
7380
|
-
|
|
7380
|
+
var _s = {};
|
|
7381
|
+
_s = {
|
|
7381
7382
|
ascending: "遞增",
|
|
7382
7383
|
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
7383
7384
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -7420,12 +7421,12 @@ rl = {
|
|
|
7420
7421
|
"sl-SI": As,
|
|
7421
7422
|
"sr-SP": Ks,
|
|
7422
7423
|
"sv-SE": Ms,
|
|
7423
|
-
"tr-TR":
|
|
7424
|
-
"uk-UA":
|
|
7425
|
-
"zh-CN":
|
|
7426
|
-
"zh-TW":
|
|
7424
|
+
"tr-TR": Is,
|
|
7425
|
+
"uk-UA": Fs,
|
|
7426
|
+
"zh-CN": Rs,
|
|
7427
|
+
"zh-TW": _s
|
|
7427
7428
|
};
|
|
7428
|
-
class
|
|
7429
|
+
class Ip extends Ra {
|
|
7429
7430
|
isCell(e) {
|
|
7430
7431
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
7431
7432
|
}
|
|
@@ -7433,7 +7434,7 @@ class Fp extends _a {
|
|
|
7433
7434
|
let n = this.collection.getItem(e);
|
|
7434
7435
|
if (n) {
|
|
7435
7436
|
if (n.type === "column") {
|
|
7436
|
-
let r =
|
|
7437
|
+
let r = Ne(ce(n, this.collection));
|
|
7437
7438
|
if (r) return r.key;
|
|
7438
7439
|
let l = this.getFirstKey();
|
|
7439
7440
|
if (l == null) return;
|
|
@@ -7503,18 +7504,18 @@ class Fp extends _a {
|
|
|
7503
7504
|
return null;
|
|
7504
7505
|
}
|
|
7505
7506
|
}
|
|
7506
|
-
let
|
|
7507
|
+
let Fp = !1;
|
|
7507
7508
|
function Sn() {
|
|
7508
|
-
return
|
|
7509
|
+
return Fp;
|
|
7509
7510
|
}
|
|
7510
|
-
function
|
|
7511
|
+
function Rp(t) {
|
|
7511
7512
|
return t && t.__esModule ? t.default : t;
|
|
7512
7513
|
}
|
|
7513
|
-
function
|
|
7514
|
-
let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, a =
|
|
7514
|
+
function _p(t, e, n) {
|
|
7515
|
+
let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, a = In({
|
|
7515
7516
|
usage: "search",
|
|
7516
7517
|
sensitivity: "base"
|
|
7517
|
-
}), { direction: u } =
|
|
7518
|
+
}), { direction: u } = He(), s = e.selectionManager.disabledBehavior, c = H(() => r || new Ip({
|
|
7518
7519
|
collection: e.collection,
|
|
7519
7520
|
disabledKeys: e.disabledKeys,
|
|
7520
7521
|
disabledBehavior: s,
|
|
@@ -7541,7 +7542,7 @@ function Np(t, e, n) {
|
|
|
7541
7542
|
keyboardDelegate: c
|
|
7542
7543
|
}, e, n);
|
|
7543
7544
|
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7544
|
-
let { column: p, direction: m } = e.sortDescriptor || {}, $ =
|
|
7545
|
+
let { column: p, direction: m } = e.sortDescriptor || {}, $ = vt(Rp(rl), "@react-aria/table"), g = H(() => {
|
|
7545
7546
|
var S;
|
|
7546
7547
|
let y = (S = e.collection.columns.find((k) => k.key === p)) === null || S === void 0 ? void 0 : S.textValue;
|
|
7547
7548
|
return m && p ? $.format(`${m}Sort`, {
|
|
@@ -7566,7 +7567,7 @@ function Np(t, e, n) {
|
|
|
7566
7567
|
})
|
|
7567
7568
|
};
|
|
7568
7569
|
}
|
|
7569
|
-
function
|
|
7570
|
+
function Np(t) {
|
|
7570
7571
|
return t && t.__esModule ? t.default : t;
|
|
7571
7572
|
}
|
|
7572
7573
|
function Lp(t, e, n) {
|
|
@@ -7574,7 +7575,7 @@ function Lp(t, e, n) {
|
|
|
7574
7575
|
let { node: i } = t, o = i.props.allowsSorting, { gridCellProps: a } = bu({
|
|
7575
7576
|
...t,
|
|
7576
7577
|
focusMode: "child"
|
|
7577
|
-
}, 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({
|
|
7578
7579
|
isDisabled: !o || u,
|
|
7579
7580
|
onPress() {
|
|
7580
7581
|
e.sort(i.key);
|
|
@@ -7582,7 +7583,7 @@ function Lp(t, e, n) {
|
|
|
7582
7583
|
ref: n
|
|
7583
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;
|
|
7584
7585
|
i.props.allowsSorting && !vn() && (d = f ? p : "none");
|
|
7585
|
-
let m =
|
|
7586
|
+
let m = vt(Np(rl), "@react-aria/table"), $;
|
|
7586
7587
|
o && ($ = `${m.format("sortable")}`, f && p && vn() && ($ = `${$}, ${m.format(p)}`));
|
|
7587
7588
|
let g = kn($), E = e.collection.size === 0;
|
|
7588
7589
|
return L(() => {
|
|
@@ -7621,7 +7622,7 @@ const ii = {
|
|
|
7621
7622
|
}
|
|
7622
7623
|
};
|
|
7623
7624
|
function Op(t, e, n) {
|
|
7624
|
-
let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = wp(t, e, n), { direction: a } =
|
|
7625
|
+
let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = wp(t, e, n), { direction: a } = He();
|
|
7625
7626
|
l && !(Sn() && "expandedKeys" in e) ? i["aria-rowindex"] = r.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
|
|
7626
7627
|
let u = {};
|
|
7627
7628
|
if (Sn() && "expandedKeys" in e) {
|
|
@@ -7705,7 +7706,7 @@ function Wp(t, e, n) {
|
|
|
7705
7706
|
}, f = () => {
|
|
7706
7707
|
a.current = !1, o.current = !1, s(!0);
|
|
7707
7708
|
}, p = () => {
|
|
7708
|
-
|
|
7709
|
+
ft() && (a.current = !0, u());
|
|
7709
7710
|
}, m = () => {
|
|
7710
7711
|
a.current = !1, o.current = !1, s(!0);
|
|
7711
7712
|
}, { hoverProps: $ } = Tt({
|
|
@@ -8034,7 +8035,7 @@ class il {
|
|
|
8034
8035
|
for (; r != null; ) {
|
|
8035
8036
|
if (this.canSelectItem(r)) {
|
|
8036
8037
|
let l = this.collection.getItem(r);
|
|
8037
|
-
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);
|
|
8038
8039
|
}
|
|
8039
8040
|
r = this.collection.getKeyAfter(r);
|
|
8040
8041
|
}
|
|
@@ -8132,15 +8133,15 @@ function Gp(t) {
|
|
|
8132
8133
|
var c, d;
|
|
8133
8134
|
const k = ((c = S == null ? void 0 : S.length) !== null && c !== void 0 ? c : 0) - ((d = y == null ? void 0 : y.length) !== null && d !== void 0 ? d : 0);
|
|
8134
8135
|
var f, p, m;
|
|
8135
|
-
let C = Math.min(k > 1 ? Math.max(((f = E == null ? void 0 : E.index) !== null && f !== void 0 ? f : 0) - k + 1, 0) : (p = E == null ? void 0 : E.index) !== null && p !== void 0 ? p : 0, ((m = y == null ? void 0 : y.length) !== null && m !== void 0 ? m : 0) - 1), P = null,
|
|
8136
|
+
let C = Math.min(k > 1 ? Math.max(((f = E == null ? void 0 : E.index) !== null && f !== void 0 ? f : 0) - k + 1, 0) : (p = E == null ? void 0 : E.index) !== null && p !== void 0 ? p : 0, ((m = y == null ? void 0 : y.length) !== null && m !== void 0 ? m : 0) - 1), P = null, R = !1;
|
|
8136
8137
|
for (; C >= 0; ) {
|
|
8137
8138
|
if (!u.isDisabled(y[C].key)) {
|
|
8138
8139
|
P = y[C];
|
|
8139
8140
|
break;
|
|
8140
8141
|
}
|
|
8141
|
-
if (C < y.length - 1 && !
|
|
8142
|
+
if (C < y.length - 1 && !R) C++;
|
|
8142
8143
|
else {
|
|
8143
|
-
|
|
8144
|
+
R = !0;
|
|
8144
8145
|
var $, g;
|
|
8145
8146
|
C > (($ = E == null ? void 0 : E.index) !== null && $ !== void 0 ? $ : 0) && (C = (g = E == null ? void 0 : E.index) !== null && g !== void 0 ? g : 0), C--;
|
|
8146
8147
|
}
|
|
@@ -8187,7 +8188,7 @@ function Yp(t) {
|
|
|
8187
8188
|
selectedItem: u
|
|
8188
8189
|
};
|
|
8189
8190
|
}
|
|
8190
|
-
function
|
|
8191
|
+
function _n(t) {
|
|
8191
8192
|
let [e, n] = lt(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
|
|
8192
8193
|
const r = X(() => {
|
|
8193
8194
|
n(!0);
|
|
@@ -8212,7 +8213,7 @@ function Nn(t) {
|
|
|
8212
8213
|
};
|
|
8213
8214
|
}
|
|
8214
8215
|
function qp(t) {
|
|
8215
|
-
let e =
|
|
8216
|
+
let e = _n(t), [n, r] = j(null), [l, i] = j([]), o = () => {
|
|
8216
8217
|
i([]), e.close();
|
|
8217
8218
|
};
|
|
8218
8219
|
return {
|
|
@@ -8276,8 +8277,8 @@ function ui(t) {
|
|
|
8276
8277
|
if (t != null)
|
|
8277
8278
|
return t.toString();
|
|
8278
8279
|
}
|
|
8279
|
-
function
|
|
8280
|
-
let e =
|
|
8280
|
+
function Ns(t) {
|
|
8281
|
+
let e = _n(t), [n, r] = j(null), l = Yp({
|
|
8281
8282
|
...t,
|
|
8282
8283
|
onSelectionChange: (u) => {
|
|
8283
8284
|
t.onSelectionChange != null && t.onSelectionChange(u), e.close(), i.commitValidation();
|
|
@@ -8311,7 +8312,7 @@ function ev(t) {
|
|
|
8311
8312
|
if ((f == null ? void 0 : f.type) === "item") {
|
|
8312
8313
|
var c, d;
|
|
8313
8314
|
let p = ce(f, e);
|
|
8314
|
-
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;
|
|
8315
8316
|
}
|
|
8316
8317
|
}
|
|
8317
8318
|
i(u, s);
|
|
@@ -8541,7 +8542,7 @@ class rv extends tv {
|
|
|
8541
8542
|
}
|
|
8542
8543
|
getFirstKey() {
|
|
8543
8544
|
var e;
|
|
8544
|
-
return (e =
|
|
8545
|
+
return (e = Ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key;
|
|
8545
8546
|
}
|
|
8546
8547
|
getLastKey() {
|
|
8547
8548
|
var e;
|
|
@@ -8699,7 +8700,7 @@ Os.getCollectionNode = function* (e, n) {
|
|
|
8699
8700
|
}), yield* i;
|
|
8700
8701
|
}
|
|
8701
8702
|
};
|
|
8702
|
-
let
|
|
8703
|
+
let Hh = Os;
|
|
8703
8704
|
function zs(t) {
|
|
8704
8705
|
return null;
|
|
8705
8706
|
}
|
|
@@ -8729,7 +8730,7 @@ zs.getCollectionNode = function* (e) {
|
|
|
8729
8730
|
}
|
|
8730
8731
|
};
|
|
8731
8732
|
};
|
|
8732
|
-
let
|
|
8733
|
+
let Wh = zs;
|
|
8733
8734
|
function js(t) {
|
|
8734
8735
|
return null;
|
|
8735
8736
|
}
|
|
@@ -8822,7 +8823,7 @@ Kr.getCollectionNode = function* (e, n) {
|
|
|
8822
8823
|
}
|
|
8823
8824
|
};
|
|
8824
8825
|
};
|
|
8825
|
-
let
|
|
8826
|
+
let Uh = Kr;
|
|
8826
8827
|
function Vs(t) {
|
|
8827
8828
|
return null;
|
|
8828
8829
|
}
|
|
@@ -8839,23 +8840,23 @@ Vs.getCollectionNode = function* (e) {
|
|
|
8839
8840
|
};
|
|
8840
8841
|
let av = Vs;
|
|
8841
8842
|
const uv = 1500, si = 500;
|
|
8842
|
-
let ot = {}, sv = 0, Lt = !1,
|
|
8843
|
+
let ot = {}, sv = 0, Lt = !1, _e = null, at = null;
|
|
8843
8844
|
function Hs(t = {}) {
|
|
8844
|
-
let { delay: e = uv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } =
|
|
8845
|
+
let { delay: e = uv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = _n(t), o = H(() => `${++sv}`, []), a = M(void 0), u = M(i), s = () => {
|
|
8845
8846
|
ot[o] = f;
|
|
8846
8847
|
}, c = () => {
|
|
8847
8848
|
for (let m in ot) m !== o && (ot[m](!0), delete ot[m]);
|
|
8848
8849
|
}, d = () => {
|
|
8849
|
-
clearTimeout(a.current), a.current = null, c(), s(), Lt = !0, l(),
|
|
8850
|
+
clearTimeout(a.current), a.current = null, c(), s(), Lt = !0, l(), _e && (clearTimeout(_e), _e = null), at && (clearTimeout(at), at = null);
|
|
8850
8851
|
}, f = (m) => {
|
|
8851
8852
|
m || n <= 0 ? (clearTimeout(a.current), a.current = null, u.current()) : a.current || (a.current = setTimeout(() => {
|
|
8852
8853
|
a.current = null, u.current();
|
|
8853
|
-
}, n)),
|
|
8854
|
+
}, n)), _e && (clearTimeout(_e), _e = null), Lt && (at && clearTimeout(at), at = setTimeout(() => {
|
|
8854
8855
|
delete ot[o], at = null, Lt = !1;
|
|
8855
8856
|
}, Math.max(si, n)));
|
|
8856
8857
|
}, p = () => {
|
|
8857
|
-
c(), s(), !r && !
|
|
8858
|
-
|
|
8858
|
+
c(), s(), !r && !_e && !Lt ? _e = setTimeout(() => {
|
|
8859
|
+
_e = null, Lt = !0, d();
|
|
8859
8860
|
}, e) : r || d();
|
|
8860
8861
|
};
|
|
8861
8862
|
return L(() => {
|
|
@@ -8957,7 +8958,7 @@ function fv(t = !0) {
|
|
|
8957
8958
|
}, [t]);
|
|
8958
8959
|
}
|
|
8959
8960
|
const pv = ({ children: t }) => {
|
|
8960
|
-
const { className: e, style: n } =
|
|
8961
|
+
const { className: e, style: n } = We(), r = (() => {
|
|
8961
8962
|
let l = document.getElementById("action-menus-root");
|
|
8962
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]) => {
|
|
8963
8964
|
l.style.setProperty(i, o);
|
|
@@ -8979,33 +8980,33 @@ const pv = ({ children: t }) => {
|
|
|
8979
8980
|
"data-testid": d
|
|
8980
8981
|
}) => {
|
|
8981
8982
|
fv(e);
|
|
8982
|
-
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 = () => {
|
|
8983
8984
|
$(!0), E(0), setTimeout(() => {
|
|
8984
8985
|
c == null || c(), $(!1);
|
|
8985
8986
|
}, 300);
|
|
8986
|
-
},
|
|
8987
|
+
}, R = C ? Ws({
|
|
8987
8988
|
items: a,
|
|
8988
|
-
children: a.map((
|
|
8989
|
+
children: a.map((F) => /* @__PURE__ */ bi(Zr, { ...F, key: F.key }, F.label)),
|
|
8989
8990
|
selectedKeys: new Set(r),
|
|
8990
|
-
onSelectionChange: (
|
|
8991
|
+
onSelectionChange: (F) => s == null ? void 0 : s(F),
|
|
8991
8992
|
selectionMode: n,
|
|
8992
8993
|
disabledKeys: l
|
|
8993
8994
|
}) : null, { menuProps: v } = C ? Ka(
|
|
8994
8995
|
{
|
|
8995
8996
|
autoFocus: !0,
|
|
8996
8997
|
shouldFocusWrap: !0,
|
|
8997
|
-
onAction: (
|
|
8998
|
-
var x,
|
|
8999
|
-
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);
|
|
9000
9001
|
},
|
|
9001
9002
|
onClose: () => c == null ? void 0 : c(),
|
|
9002
9003
|
disabledKeys: l,
|
|
9003
|
-
onSelectionChange: (
|
|
9004
|
+
onSelectionChange: (F) => s == null ? void 0 : s(F),
|
|
9004
9005
|
selectionMode: n,
|
|
9005
9006
|
selectedKeys: r,
|
|
9006
9007
|
"aria-label": "Action Menu"
|
|
9007
9008
|
},
|
|
9008
|
-
|
|
9009
|
+
R,
|
|
9009
9010
|
y
|
|
9010
9011
|
) : { menuProps: {} }, { overlayProps: A } = ro(
|
|
9011
9012
|
{
|
|
@@ -9018,11 +9019,11 @@ const pv = ({ children: t }) => {
|
|
|
9018
9019
|
L(() => {
|
|
9019
9020
|
e && S.current && E(S.current.scrollHeight);
|
|
9020
9021
|
}, [e, S]), L(() => {
|
|
9021
|
-
const
|
|
9022
|
+
const F = (x) => {
|
|
9022
9023
|
x.key === "Escape" && P();
|
|
9023
9024
|
};
|
|
9024
|
-
return document.addEventListener("keydown",
|
|
9025
|
-
document.removeEventListener("keydown",
|
|
9025
|
+
return document.addEventListener("keydown", F), () => {
|
|
9026
|
+
document.removeEventListener("keydown", F);
|
|
9026
9027
|
};
|
|
9027
9028
|
}, [m]), L(() => {
|
|
9028
9029
|
u && (k.current && k.current !== location.pathname && P(), k.current = location.pathname);
|
|
@@ -9070,14 +9071,14 @@ const pv = ({ children: t }) => {
|
|
|
9070
9071
|
"proton-ActionMenu__list",
|
|
9071
9072
|
n === "none" && "proton-ActionMenu__list--disabled"
|
|
9072
9073
|
),
|
|
9073
|
-
children: Array.from(
|
|
9074
|
+
children: Array.from(R.collection).map((F) => /* @__PURE__ */ b.jsx(
|
|
9074
9075
|
vv,
|
|
9075
9076
|
{
|
|
9076
|
-
item:
|
|
9077
|
-
state:
|
|
9078
|
-
to:
|
|
9077
|
+
item: F,
|
|
9078
|
+
state: R,
|
|
9079
|
+
to: F.props.to
|
|
9079
9080
|
},
|
|
9080
|
-
|
|
9081
|
+
F.key
|
|
9081
9082
|
))
|
|
9082
9083
|
}
|
|
9083
9084
|
),
|
|
@@ -9123,16 +9124,16 @@ const pv = ({ children: t }) => {
|
|
|
9123
9124
|
},
|
|
9124
9125
|
n.rendered
|
|
9125
9126
|
);
|
|
9126
|
-
}, Gs = ee(void 0),
|
|
9127
|
+
}, Gs = ee(void 0), We = () => {
|
|
9127
9128
|
const t = Y(Gs);
|
|
9128
9129
|
if (t === void 0)
|
|
9129
9130
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
9130
9131
|
return t;
|
|
9131
9132
|
}, hv = {
|
|
9132
|
-
[
|
|
9133
|
-
[
|
|
9134
|
-
[
|
|
9135
|
-
},
|
|
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 = ({
|
|
9136
9137
|
theme: t,
|
|
9137
9138
|
children: e,
|
|
9138
9139
|
palette: n
|
|
@@ -9161,15 +9162,12 @@ const pv = ({ children: t }) => {
|
|
|
9161
9162
|
children: /* @__PURE__ */ b.jsx("div", { ref: r, children: e })
|
|
9162
9163
|
}
|
|
9163
9164
|
);
|
|
9164
|
-
}, ur =
|
|
9165
|
+
}, ur = "rgb(83, 82, 83)";
|
|
9165
9166
|
function mv(t) {
|
|
9166
|
-
const e =
|
|
9167
|
+
const e = st(t.PRIMARY.PRIMARY_LIGHT, 0.6), n = st(t.PRIMARY.PRIMARY_LIGHT, 0.8);
|
|
9167
9168
|
return {
|
|
9168
|
-
[
|
|
9169
|
-
"--proton-control__background-color": Gn(
|
|
9170
|
-
ur,
|
|
9171
|
-
1
|
|
9172
|
-
),
|
|
9169
|
+
[Be.DARK]: {
|
|
9170
|
+
"--proton-control__background-color": Gn(ur),
|
|
9173
9171
|
"--proton-control__text-color": ye.WHITE,
|
|
9174
9172
|
"--proton-control__border-color": ye.GRAY_DARK,
|
|
9175
9173
|
"--proton-control__shadow-color": ye.GRAY_DARK,
|
|
@@ -9177,41 +9175,38 @@ function mv(t) {
|
|
|
9177
9175
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9178
9176
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9179
9177
|
},
|
|
9180
|
-
[
|
|
9178
|
+
[Be.LIGHT]: {
|
|
9181
9179
|
"--proton-control__background-color": ye.WHITE,
|
|
9182
9180
|
"--proton-control__text-color": ye.GRAY_DARK,
|
|
9183
9181
|
"--proton-control__border-color": ye.GRAY_LIGHT,
|
|
9184
|
-
"--proton-control__shadow-color":
|
|
9185
|
-
ur,
|
|
9186
|
-
0.
|
|
9182
|
+
"--proton-control__shadow-color": st(
|
|
9183
|
+
Gn(ur),
|
|
9184
|
+
0.9
|
|
9187
9185
|
),
|
|
9188
9186
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9189
9187
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9190
9188
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9191
9189
|
},
|
|
9192
|
-
[
|
|
9193
|
-
"--proton-control__background-color": Gn(
|
|
9194
|
-
ur,
|
|
9195
|
-
1
|
|
9196
|
-
),
|
|
9190
|
+
[Be.CUSTOM_DARK]: {
|
|
9191
|
+
"--proton-control__background-color": Gn(ur),
|
|
9197
9192
|
"--proton-control__text-color": ye.WHITE,
|
|
9198
|
-
"--proton-control__border-color":
|
|
9199
|
-
"--proton-control__shadow-color": e
|
|
9193
|
+
"--proton-control__border-color": n,
|
|
9194
|
+
"--proton-control__shadow-color": e,
|
|
9200
9195
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9201
9196
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9202
9197
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9203
9198
|
}
|
|
9204
9199
|
};
|
|
9205
9200
|
}
|
|
9206
|
-
const
|
|
9201
|
+
const Yh = {
|
|
9207
9202
|
primary: "primary",
|
|
9208
9203
|
secondary: "secondary",
|
|
9209
9204
|
transparent: "transparent",
|
|
9210
9205
|
success: "success",
|
|
9211
9206
|
warning: "warning",
|
|
9212
9207
|
danger: "danger"
|
|
9213
|
-
},
|
|
9214
|
-
const { className: r } =
|
|
9208
|
+
}, qh = ({ variant: t, children: e, ...n }) => {
|
|
9209
|
+
const { className: r } = We();
|
|
9215
9210
|
return /* @__PURE__ */ b.jsx(
|
|
9216
9211
|
"div",
|
|
9217
9212
|
{
|
|
@@ -9239,7 +9234,7 @@ function Ys({
|
|
|
9239
9234
|
const a = e ? "a" : "button", u = a !== "a" ? {} : {
|
|
9240
9235
|
target: "_blank",
|
|
9241
9236
|
href: e
|
|
9242
|
-
}, s = M(null), { buttonProps: c } =
|
|
9237
|
+
}, s = M(null), { buttonProps: c } = Fn(
|
|
9243
9238
|
{
|
|
9244
9239
|
onPress: n,
|
|
9245
9240
|
elementType: a,
|
|
@@ -9323,14 +9318,14 @@ const qs = {
|
|
|
9323
9318
|
success: "success",
|
|
9324
9319
|
warning: "warning",
|
|
9325
9320
|
danger: "danger"
|
|
9326
|
-
},
|
|
9321
|
+
}, Nn = ee(void 0), Ue = ({
|
|
9327
9322
|
variant: t = "default",
|
|
9328
9323
|
rounded: e = !0,
|
|
9329
9324
|
icon: n = !1,
|
|
9330
9325
|
compact: r = !0,
|
|
9331
9326
|
children: l,
|
|
9332
9327
|
...i
|
|
9333
|
-
}) => /* @__PURE__ */ b.jsx(
|
|
9328
|
+
}) => /* @__PURE__ */ b.jsx(Nn.Provider, { value: t, children: /* @__PURE__ */ b.jsx(
|
|
9334
9329
|
"div",
|
|
9335
9330
|
{
|
|
9336
9331
|
role: "status",
|
|
@@ -9356,7 +9351,7 @@ const qs = {
|
|
|
9356
9351
|
)
|
|
9357
9352
|
}
|
|
9358
9353
|
) }), $v = ({ children: t, ...e }) => {
|
|
9359
|
-
const n = Y(
|
|
9354
|
+
const n = Y(Nn);
|
|
9360
9355
|
if (!n) throw new Error("BannerTitle must be used within a Banner");
|
|
9361
9356
|
return /* @__PURE__ */ b.jsx(
|
|
9362
9357
|
"h3",
|
|
@@ -9371,7 +9366,7 @@ const qs = {
|
|
|
9371
9366
|
}
|
|
9372
9367
|
);
|
|
9373
9368
|
}, yv = ({ children: t, ...e }) => {
|
|
9374
|
-
const n = Y(
|
|
9369
|
+
const n = Y(Nn);
|
|
9375
9370
|
if (!n) throw new Error("BannerContent must be used within a Banner");
|
|
9376
9371
|
return /* @__PURE__ */ b.jsx(
|
|
9377
9372
|
"p",
|
|
@@ -9386,9 +9381,9 @@ const qs = {
|
|
|
9386
9381
|
}
|
|
9387
9382
|
);
|
|
9388
9383
|
}, xv = ({ children: t, icon: e, ...n }) => {
|
|
9389
|
-
const r = Y(
|
|
9384
|
+
const r = Y(Nn);
|
|
9390
9385
|
if (!r) throw new Error("BannerIcon must be used within a Banner");
|
|
9391
|
-
const i =
|
|
9386
|
+
const i = Ic(e) ? e : e === !0 ? qs[r] : t || null;
|
|
9392
9387
|
return i ? /* @__PURE__ */ b.jsx(
|
|
9393
9388
|
"span",
|
|
9394
9389
|
{
|
|
@@ -9445,10 +9440,9 @@ Cv.Option = function(e) {
|
|
|
9445
9440
|
}
|
|
9446
9441
|
);
|
|
9447
9442
|
};
|
|
9448
|
-
function
|
|
9443
|
+
function Xh({ title: t, children: e, ...n }) {
|
|
9449
9444
|
let r = M(null), { dialogProps: l, titleProps: i } = up(n, r);
|
|
9450
|
-
|
|
9451
|
-
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: [
|
|
9452
9446
|
t && /* @__PURE__ */ b.jsx("h3", { ...i, className: "proton-Dialog__header", children: t }),
|
|
9453
9447
|
e
|
|
9454
9448
|
] });
|
|
@@ -9462,7 +9456,7 @@ function Pv(t) {
|
|
|
9462
9456
|
};
|
|
9463
9457
|
return /* @__PURE__ */ b.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ b.jsx("use", { href: `${wv}#${t.id}` }) });
|
|
9464
9458
|
}
|
|
9465
|
-
function
|
|
9459
|
+
function Zh(t) {
|
|
9466
9460
|
const [e, n] = j("");
|
|
9467
9461
|
return L(() => {
|
|
9468
9462
|
}, []), e ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
@@ -9476,7 +9470,7 @@ function Xh(t) {
|
|
|
9476
9470
|
/* @__PURE__ */ b.jsx(Pv, { ...t })
|
|
9477
9471
|
] }) : null;
|
|
9478
9472
|
}
|
|
9479
|
-
const Dv =
|
|
9473
|
+
const Dv = pt(
|
|
9480
9474
|
({
|
|
9481
9475
|
prefix: t,
|
|
9482
9476
|
suffix: e,
|
|
@@ -9494,7 +9488,7 @@ const Dv = ft(
|
|
|
9494
9488
|
autoComplete: p,
|
|
9495
9489
|
"data-testid": m
|
|
9496
9490
|
}, $) => {
|
|
9497
|
-
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: R, errorMessageProps: v } = Qi(
|
|
9498
9492
|
{
|
|
9499
9493
|
label: a,
|
|
9500
9494
|
name: u,
|
|
@@ -9518,17 +9512,17 @@ const Dv = ft(
|
|
|
9518
9512
|
}), w = {
|
|
9519
9513
|
"--input-background": (() => {
|
|
9520
9514
|
switch (y) {
|
|
9521
|
-
case
|
|
9522
|
-
return
|
|
9523
|
-
case
|
|
9524
|
-
return
|
|
9515
|
+
case Be.CUSTOM_DARK:
|
|
9516
|
+
return st(S.PRIMARY.PRIMARY_LIGHTEST, 0.6);
|
|
9517
|
+
case Be.DARK:
|
|
9518
|
+
return st(ye.GRAY_MEDIUM, 0.5);
|
|
9525
9519
|
default:
|
|
9526
|
-
return
|
|
9520
|
+
return ye.WHITE;
|
|
9527
9521
|
}
|
|
9528
9522
|
})()
|
|
9529
9523
|
};
|
|
9530
9524
|
return /* @__PURE__ */ b.jsxs("div", { className: "proton-Input__container", children: [
|
|
9531
|
-
n && r === "top" && /* @__PURE__ */ b.jsx("div", { ...
|
|
9525
|
+
n && r === "top" && /* @__PURE__ */ b.jsx("div", { ...R, className: "proton-Input__text", children: n }),
|
|
9532
9526
|
/* @__PURE__ */ b.jsxs("div", { className: "proton-Input__container-inner", children: [
|
|
9533
9527
|
t && /* @__PURE__ */ b.jsx(
|
|
9534
9528
|
"div",
|
|
@@ -9590,10 +9584,10 @@ const Dv = ft(
|
|
|
9590
9584
|
id: `${u}-error`,
|
|
9591
9585
|
children: i
|
|
9592
9586
|
}
|
|
9593
|
-
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...
|
|
9587
|
+
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...R, className: "proton-Input__text", children: n }) : null
|
|
9594
9588
|
] });
|
|
9595
9589
|
}
|
|
9596
|
-
),
|
|
9590
|
+
), Jh = ({
|
|
9597
9591
|
name: t = "search",
|
|
9598
9592
|
placeholder: e = "Search...",
|
|
9599
9593
|
autoComplete: n,
|
|
@@ -9708,12 +9702,12 @@ const Dv = ft(
|
|
|
9708
9702
|
}
|
|
9709
9703
|
);
|
|
9710
9704
|
};
|
|
9711
|
-
function
|
|
9712
|
-
const e = M(null), n =
|
|
9705
|
+
function Qh(t) {
|
|
9706
|
+
const e = M(null), n = _n(t || {}), { triggerProps: r, overlayProps: l } = lo(
|
|
9713
9707
|
{ type: "dialog" },
|
|
9714
9708
|
n,
|
|
9715
9709
|
e
|
|
9716
|
-
), { buttonProps: i } =
|
|
9710
|
+
), { buttonProps: i } = Fn(r, e);
|
|
9717
9711
|
return { buttonProps: i, overlayProps: l, buttonRef: e, state: n };
|
|
9718
9712
|
}
|
|
9719
9713
|
function ol({
|
|
@@ -9723,7 +9717,7 @@ function ol({
|
|
|
9723
9717
|
offset: r,
|
|
9724
9718
|
...l
|
|
9725
9719
|
}) {
|
|
9726
|
-
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();
|
|
9727
9721
|
let { popoverProps: s, underlayProps: c, arrowProps: d, placement: f } = Uf(
|
|
9728
9722
|
{
|
|
9729
9723
|
...l,
|
|
@@ -10047,7 +10041,7 @@ function Js(t) {
|
|
|
10047
10041
|
var a, u;
|
|
10048
10042
|
let f = (u = (a = d.props.id) !== null && a !== void 0 ? a : c.key) !== null && u !== void 0 ? u : c.id;
|
|
10049
10043
|
if (f == null) throw new Error("Could not determine key for item");
|
|
10050
|
-
r && (f = r + ":" + f), d =
|
|
10044
|
+
r && (f = r + ":" + f), d = Fc(d, l ? {
|
|
10051
10045
|
key: f,
|
|
10052
10046
|
id: f,
|
|
10053
10047
|
value: c
|
|
@@ -10091,9 +10085,9 @@ function Av(t) {
|
|
|
10091
10085
|
}
|
|
10092
10086
|
function Kv(t) {
|
|
10093
10087
|
let e = (n, r) => Y(Mr) ? null : t(n, r);
|
|
10094
|
-
return e.displayName = t.displayName || t.name,
|
|
10088
|
+
return e.displayName = t.displayName || t.name, pt(e);
|
|
10095
10089
|
}
|
|
10096
|
-
var
|
|
10090
|
+
var Ir = { exports: {} }, sr = {};
|
|
10097
10091
|
/**
|
|
10098
10092
|
* @license React
|
|
10099
10093
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -10149,7 +10143,7 @@ var cr = {};
|
|
|
10149
10143
|
* LICENSE file in the root directory of this source tree.
|
|
10150
10144
|
*/
|
|
10151
10145
|
var di;
|
|
10152
|
-
function
|
|
10146
|
+
function Iv() {
|
|
10153
10147
|
return di || (di = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10154
10148
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10155
10149
|
var t = B, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -10162,8 +10156,8 @@ function Fv() {
|
|
|
10162
10156
|
}
|
|
10163
10157
|
function r(y, k, C) {
|
|
10164
10158
|
{
|
|
10165
|
-
var P = e.ReactDebugCurrentFrame,
|
|
10166
|
-
|
|
10159
|
+
var P = e.ReactDebugCurrentFrame, R = P.getStackAddendum();
|
|
10160
|
+
R !== "" && (k += "%s", C = C.concat([R]));
|
|
10167
10161
|
var v = C.map(function(A) {
|
|
10168
10162
|
return String(A);
|
|
10169
10163
|
});
|
|
@@ -10178,8 +10172,8 @@ function Fv() {
|
|
|
10178
10172
|
c || t.startTransition !== void 0 && (c = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
10179
10173
|
var P = k();
|
|
10180
10174
|
if (!d) {
|
|
10181
|
-
var
|
|
10182
|
-
i(P,
|
|
10175
|
+
var R = k();
|
|
10176
|
+
i(P, R) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
10183
10177
|
}
|
|
10184
10178
|
var v = o({
|
|
10185
10179
|
inst: {
|
|
@@ -10219,33 +10213,33 @@ function Fv() {
|
|
|
10219
10213
|
cr.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10220
10214
|
}()), cr;
|
|
10221
10215
|
}
|
|
10222
|
-
process.env.NODE_ENV === "production" ?
|
|
10223
|
-
var
|
|
10216
|
+
process.env.NODE_ENV === "production" ? Ir.exports = Mv() : Ir.exports = Iv();
|
|
10217
|
+
var Fv = Ir.exports;
|
|
10224
10218
|
const Qs = /* @__PURE__ */ ee(!1), Yt = /* @__PURE__ */ ee(null);
|
|
10225
|
-
function
|
|
10219
|
+
function Rv(t) {
|
|
10226
10220
|
if (Y(Yt))
|
|
10227
10221
|
return t.content;
|
|
10228
10222
|
let { collection: n, document: r } = Ov(t.createCollection);
|
|
10229
10223
|
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(Av, null, /* @__PURE__ */ B.createElement(Yt.Provider, {
|
|
10230
10224
|
value: r
|
|
10231
|
-
}, t.content)), /* @__PURE__ */ B.createElement(
|
|
10225
|
+
}, t.content)), /* @__PURE__ */ B.createElement(_v, {
|
|
10232
10226
|
render: t.children,
|
|
10233
10227
|
collection: n
|
|
10234
10228
|
}));
|
|
10235
10229
|
}
|
|
10236
|
-
function
|
|
10230
|
+
function _v({ collection: t, render: e }) {
|
|
10237
10231
|
return e(t);
|
|
10238
10232
|
}
|
|
10239
|
-
function
|
|
10233
|
+
function Nv(t, e, n) {
|
|
10240
10234
|
let r = rt(), l = M(r);
|
|
10241
10235
|
l.current = r;
|
|
10242
10236
|
let i = X(() => l.current ? n() : e(), [
|
|
10243
10237
|
e,
|
|
10244
10238
|
n
|
|
10245
10239
|
]);
|
|
10246
|
-
return
|
|
10240
|
+
return Fv.useSyncExternalStore(t, i);
|
|
10247
10241
|
}
|
|
10248
|
-
const Lv = typeof B.useSyncExternalStore == "function" ? B.useSyncExternalStore :
|
|
10242
|
+
const Lv = typeof B.useSyncExternalStore == "function" ? B.useSyncExternalStore : Nv;
|
|
10249
10243
|
function Ov(t) {
|
|
10250
10244
|
let [e] = j(() => new Tv((t == null ? void 0 : t()) || new kv())), n = X((o) => e.subscribe(o), [
|
|
10251
10245
|
e
|
|
@@ -10266,7 +10260,7 @@ function Ov(t) {
|
|
|
10266
10260
|
document: e
|
|
10267
10261
|
};
|
|
10268
10262
|
}
|
|
10269
|
-
const
|
|
10263
|
+
const Fr = /* @__PURE__ */ ee(null);
|
|
10270
10264
|
function zv(t, e, n, r, l, i) {
|
|
10271
10265
|
let o = X((u) => {
|
|
10272
10266
|
u == null || u.setProps(e, n, r, i);
|
|
@@ -10275,10 +10269,10 @@ function zv(t, e, n, r, l, i) {
|
|
|
10275
10269
|
n,
|
|
10276
10270
|
r,
|
|
10277
10271
|
i
|
|
10278
|
-
]), a = Y(
|
|
10272
|
+
]), a = Y(Fr);
|
|
10279
10273
|
if (a) {
|
|
10280
10274
|
let u = a.ownerDocument.nodesByProps.get(e);
|
|
10281
|
-
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, {
|
|
10282
10276
|
value: u
|
|
10283
10277
|
}, l) : null;
|
|
10284
10278
|
}
|
|
@@ -10287,7 +10281,7 @@ function zv(t, e, n, r, l, i) {
|
|
|
10287
10281
|
}, l);
|
|
10288
10282
|
}
|
|
10289
10283
|
function jv(t, e) {
|
|
10290
|
-
let n = ({ node: l }) => e(l.props, l.props.ref, l), r =
|
|
10284
|
+
let n = ({ node: l }) => e(l.props, l.props.ref, l), r = pt((l, i) => {
|
|
10291
10285
|
if (!Y(Qs)) {
|
|
10292
10286
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
10293
10287
|
return e(l, i);
|
|
@@ -10329,7 +10323,7 @@ function Wv({ children: t }) {
|
|
|
10329
10323
|
}, t)), [
|
|
10330
10324
|
t
|
|
10331
10325
|
]);
|
|
10332
|
-
return rt() ? /* @__PURE__ */ B.createElement(
|
|
10326
|
+
return rt() ? /* @__PURE__ */ B.createElement(Fr.Provider, {
|
|
10333
10327
|
value: e
|
|
10334
10328
|
}, n) : /* @__PURE__ */ gi(n, e);
|
|
10335
10329
|
}
|
|
@@ -10506,7 +10500,7 @@ const Jv = /* @__PURE__ */ ee(null), Qv = /* @__PURE__ */ new Set([
|
|
|
10506
10500
|
]), eh = /* @__PURE__ */ ee({});
|
|
10507
10501
|
function th(t, e) {
|
|
10508
10502
|
[t, e] = Jt(t, e, eh), t = nh(t);
|
|
10509
|
-
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } =
|
|
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({
|
|
10510
10504
|
...t,
|
|
10511
10505
|
isDisabled: t.isDisabled || r
|
|
10512
10506
|
}), d = {
|
|
@@ -10586,7 +10580,7 @@ function oh(t, e) {
|
|
|
10586
10580
|
"data-placement": n
|
|
10587
10581
|
});
|
|
10588
10582
|
}
|
|
10589
|
-
const ah = /* @__PURE__ */
|
|
10583
|
+
const ah = /* @__PURE__ */ pt(oh), Rr = /* @__PURE__ */ ee(null), uh = /* @__PURE__ */ ee(null), sh = /* @__PURE__ */ ee({}), ic = /* @__PURE__ */ ee(null), ul = /* @__PURE__ */ ee(null), oc = /* @__PURE__ */ ee(null);
|
|
10590
10584
|
function ch(t) {
|
|
10591
10585
|
let e = qp(t), n = M(null), { menuTriggerProps: r, menuProps: l } = Ba({
|
|
10592
10586
|
...t,
|
|
@@ -10619,7 +10613,7 @@ function ch(t) {
|
|
|
10619
10613
|
e
|
|
10620
10614
|
],
|
|
10621
10615
|
[
|
|
10622
|
-
|
|
10616
|
+
Rr,
|
|
10623
10617
|
{
|
|
10624
10618
|
trigger: "MenuTrigger",
|
|
10625
10619
|
triggerRef: n,
|
|
@@ -10639,7 +10633,7 @@ function ch(t) {
|
|
|
10639
10633
|
}
|
|
10640
10634
|
const dh = /* @__PURE__ */ ee(null);
|
|
10641
10635
|
function fh(t, e) {
|
|
10642
|
-
return [t, e] = Jt(t, e, ic), /* @__PURE__ */ B.createElement(
|
|
10636
|
+
return [t, e] = Jt(t, e, ic), /* @__PURE__ */ B.createElement(Rv, {
|
|
10643
10637
|
content: /* @__PURE__ */ B.createElement(Hv, t)
|
|
10644
10638
|
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(ph, {
|
|
10645
10639
|
props: t,
|
|
@@ -10655,7 +10649,7 @@ function ph({ props: t, collection: e, menuRef: n }) {
|
|
|
10655
10649
|
}), [l, i] = j(null), { isVirtualized: o, CollectionRoot: a } = Y(ec), { menuProps: u } = Ka({
|
|
10656
10650
|
...t,
|
|
10657
10651
|
isVirtualized: o
|
|
10658
|
-
}, r, n), s = Y(oc), c = Y(
|
|
10652
|
+
}, r, n), s = Y(oc), c = Y(Rr), d = (c == null ? void 0 : c.trigger) === "SubmenuTrigger";
|
|
10659
10653
|
Oi({
|
|
10660
10654
|
ref: n,
|
|
10661
10655
|
onInteractOutside: (g) => {
|
|
@@ -10704,7 +10698,7 @@ function ph({ props: t, collection: e, menuRef: n }) {
|
|
|
10704
10698
|
}
|
|
10705
10699
|
],
|
|
10706
10700
|
[
|
|
10707
|
-
|
|
10701
|
+
Rr,
|
|
10708
10702
|
{
|
|
10709
10703
|
UNSTABLE_portalContainer: l || void 0
|
|
10710
10704
|
}
|
|
@@ -10722,7 +10716,7 @@ function ph({ props: t, collection: e, menuRef: n }) {
|
|
|
10722
10716
|
}
|
|
10723
10717
|
],
|
|
10724
10718
|
[
|
|
10725
|
-
|
|
10719
|
+
_r,
|
|
10726
10720
|
null
|
|
10727
10721
|
]
|
|
10728
10722
|
]
|
|
@@ -10740,7 +10734,7 @@ function ph({ props: t, collection: e, menuRef: n }) {
|
|
|
10740
10734
|
}
|
|
10741
10735
|
}));
|
|
10742
10736
|
}
|
|
10743
|
-
const vh = /* @__PURE__ */
|
|
10737
|
+
const vh = /* @__PURE__ */ pt(fh);
|
|
10744
10738
|
function hh(t, e, n) {
|
|
10745
10739
|
var r, l;
|
|
10746
10740
|
let i = Y(ul), { CollectionBranch: o } = Y(ec), [a, u] = qv();
|
|
@@ -10769,10 +10763,10 @@ function hh(t, e, n) {
|
|
|
10769
10763
|
parent: n
|
|
10770
10764
|
})));
|
|
10771
10765
|
}
|
|
10772
|
-
const
|
|
10766
|
+
const _r = /* @__PURE__ */ ee(null), mh = /* @__PURE__ */ jv("item", function(e, n, r) {
|
|
10773
10767
|
var l;
|
|
10774
|
-
[e, n] = Jt(e, n,
|
|
10775
|
-
let i = (l = tc(
|
|
10768
|
+
[e, n] = Jt(e, n, _r);
|
|
10769
|
+
let i = (l = tc(_r)) === null || l === void 0 ? void 0 : l.id, o = Y(ul), a = Dn(n), { menuItemProps: u, labelProps: s, descriptionProps: c, keyboardShortcutProps: d, ...f } = Ma({
|
|
10776
10770
|
...e,
|
|
10777
10771
|
id: i,
|
|
10778
10772
|
key: r.key
|
|
@@ -10856,7 +10850,7 @@ function gh({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
|
10856
10850
|
isExiting: o
|
|
10857
10851
|
}));
|
|
10858
10852
|
}
|
|
10859
|
-
const $h = /* @__PURE__ */
|
|
10853
|
+
const $h = /* @__PURE__ */ pt(gh);
|
|
10860
10854
|
function yh(t) {
|
|
10861
10855
|
let e = Y(sl), n = M(null), [r, l] = j(0);
|
|
10862
10856
|
Q(() => {
|
|
@@ -10925,7 +10919,7 @@ const xh = ({ size: t }) => /* @__PURE__ */ b.jsx("svg", { viewBox: "0 0 24 24",
|
|
|
10925
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"
|
|
10926
10920
|
}
|
|
10927
10921
|
) });
|
|
10928
|
-
function
|
|
10922
|
+
function e4({
|
|
10929
10923
|
renderTrigger: t,
|
|
10930
10924
|
menuId: e,
|
|
10931
10925
|
size: n = 24,
|
|
@@ -10935,7 +10929,7 @@ function Qh({
|
|
|
10935
10929
|
testId: o,
|
|
10936
10930
|
menuTestId: a
|
|
10937
10931
|
}) {
|
|
10938
|
-
const { className: u } =
|
|
10932
|
+
const { className: u } = We(), s = uc(yi.SMALL), [c, d] = j(!1), f = M(null), p = {
|
|
10939
10933
|
disabled: l,
|
|
10940
10934
|
"data-testid": o,
|
|
10941
10935
|
"aria-label": "Menu"
|
|
@@ -11014,7 +11008,7 @@ function Qh({
|
|
|
11014
11008
|
)
|
|
11015
11009
|
] });
|
|
11016
11010
|
}
|
|
11017
|
-
const
|
|
11011
|
+
const Nr = (t) => {
|
|
11018
11012
|
let e = M(null), { state: n } = t, { listBoxProps: r } = tp(t, n, e);
|
|
11019
11013
|
return /* @__PURE__ */ b.jsx(Kn, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ b.jsx(
|
|
11020
11014
|
"ul",
|
|
@@ -11048,9 +11042,9 @@ function Eh({ item: t, state: e }) {
|
|
|
11048
11042
|
}
|
|
11049
11043
|
);
|
|
11050
11044
|
}
|
|
11051
|
-
const sc =
|
|
11045
|
+
const sc = pt(
|
|
11052
11046
|
(t, e) => {
|
|
11053
|
-
let { buttonProps: n } =
|
|
11047
|
+
let { buttonProps: n } = Fn(
|
|
11054
11048
|
{
|
|
11055
11049
|
...t,
|
|
11056
11050
|
isDisabled: t.disabled
|
|
@@ -11098,7 +11092,7 @@ function Sh({
|
|
|
11098
11092
|
onOpenChange: (y) => {
|
|
11099
11093
|
y ? o == null || o() : a == null || a();
|
|
11100
11094
|
}
|
|
11101
|
-
}, f =
|
|
11095
|
+
}, f = Ns(d), p = M(null), m = M(null), { labelProps: $, triggerProps: g, valueProps: E, menuProps: S } = ts(
|
|
11102
11096
|
{ ...d, label: t || e },
|
|
11103
11097
|
f,
|
|
11104
11098
|
p
|
|
@@ -11176,14 +11170,14 @@ function Sh({
|
|
|
11176
11170
|
popoverRef: m,
|
|
11177
11171
|
placement: "bottom start",
|
|
11178
11172
|
"data-testid": "select-popover",
|
|
11179
|
-
children: /* @__PURE__ */ b.jsx(
|
|
11173
|
+
children: /* @__PURE__ */ b.jsx(Nr, { ...S, state: f })
|
|
11180
11174
|
}
|
|
11181
11175
|
) })
|
|
11182
11176
|
]
|
|
11183
11177
|
}
|
|
11184
11178
|
);
|
|
11185
11179
|
}
|
|
11186
|
-
const
|
|
11180
|
+
const t4 = {
|
|
11187
11181
|
Menu: Sh,
|
|
11188
11182
|
Option: Zr
|
|
11189
11183
|
};
|
|
@@ -11212,7 +11206,7 @@ function Ch({
|
|
|
11212
11206
|
items: u,
|
|
11213
11207
|
"data-testid": s,
|
|
11214
11208
|
children: c
|
|
11215
|
-
}, f =
|
|
11209
|
+
}, f = Ns(d), p = uc(yi.MEDIUM), m = M(null), $ = M(null), { labelProps: g, triggerProps: E, valueProps: S, menuProps: y } = ts(
|
|
11216
11210
|
{ ...d, label: t || e },
|
|
11217
11211
|
f,
|
|
11218
11212
|
m
|
|
@@ -11282,7 +11276,7 @@ function Ch({
|
|
|
11282
11276
|
]
|
|
11283
11277
|
}
|
|
11284
11278
|
),
|
|
11285
|
-
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(
|
|
11286
11280
|
ol,
|
|
11287
11281
|
{
|
|
11288
11282
|
state: f,
|
|
@@ -11290,18 +11284,18 @@ function Ch({
|
|
|
11290
11284
|
popoverRef: $,
|
|
11291
11285
|
placement: "bottom start",
|
|
11292
11286
|
"data-testid": "select-popover",
|
|
11293
|
-
children: /* @__PURE__ */ b.jsx(
|
|
11287
|
+
children: /* @__PURE__ */ b.jsx(Nr, { ...y, state: f })
|
|
11294
11288
|
}
|
|
11295
11289
|
) }) })
|
|
11296
11290
|
]
|
|
11297
11291
|
}
|
|
11298
11292
|
);
|
|
11299
11293
|
}
|
|
11300
|
-
const
|
|
11294
|
+
const n4 = {
|
|
11301
11295
|
Menu: Ch,
|
|
11302
11296
|
Option: Zr
|
|
11303
11297
|
};
|
|
11304
|
-
function
|
|
11298
|
+
function r4(t) {
|
|
11305
11299
|
let e = {
|
|
11306
11300
|
...t,
|
|
11307
11301
|
isSelected: t.isOn,
|
|
@@ -11425,11 +11419,11 @@ function kh({ cell: t, state: e, ...n }) {
|
|
|
11425
11419
|
}
|
|
11426
11420
|
);
|
|
11427
11421
|
}
|
|
11428
|
-
const
|
|
11429
|
-
function
|
|
11422
|
+
const l4 = ov, i4 = av;
|
|
11423
|
+
function o4(t) {
|
|
11430
11424
|
let e = iv({
|
|
11431
11425
|
...t
|
|
11432
|
-
}), n = M(), { collection: r } = e, { gridProps: l } =
|
|
11426
|
+
}), n = M(), { collection: r } = e, { gridProps: l } = _p(
|
|
11433
11427
|
{ ...t, "aria-label": t["aria-label"] || "Table" },
|
|
11434
11428
|
e,
|
|
11435
11429
|
n
|
|
@@ -11447,15 +11441,27 @@ function i4(t) {
|
|
|
11447
11441
|
] });
|
|
11448
11442
|
}
|
|
11449
11443
|
function Th({ children: t, arrow: e, ...n }) {
|
|
11450
|
-
const {
|
|
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
|
+
};
|
|
11451
11457
|
return /* @__PURE__ */ b.jsxs(
|
|
11452
11458
|
$h,
|
|
11453
11459
|
{
|
|
11454
11460
|
...n,
|
|
11455
|
-
className:
|
|
11456
|
-
style:
|
|
11461
|
+
className: "proton__Tooltip proton-Dialog",
|
|
11462
|
+
style: o,
|
|
11457
11463
|
children: [
|
|
11458
|
-
e && /* @__PURE__ */ b.jsx(ah, { className:
|
|
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" }) }) }),
|
|
11459
11465
|
t
|
|
11460
11466
|
]
|
|
11461
11467
|
}
|
|
@@ -11493,7 +11499,7 @@ function Bh({
|
|
|
11493
11499
|
className: "proton__TooltipTrigger",
|
|
11494
11500
|
"aria-label": "Show tooltip",
|
|
11495
11501
|
onPress: () => {
|
|
11496
|
-
o || f.current || (d.current = !0, c(!s));
|
|
11502
|
+
o || r || f.current || (d.current = !0, c(!s));
|
|
11497
11503
|
},
|
|
11498
11504
|
children: t
|
|
11499
11505
|
}
|
|
@@ -11503,14 +11509,14 @@ function Bh({
|
|
|
11503
11509
|
}
|
|
11504
11510
|
);
|
|
11505
11511
|
}
|
|
11506
|
-
const
|
|
11512
|
+
const a4 = ({
|
|
11507
11513
|
to: t,
|
|
11508
11514
|
children: e,
|
|
11509
11515
|
tooltipProps: n,
|
|
11510
11516
|
"data-testid": r
|
|
11511
11517
|
}) => {
|
|
11512
|
-
const { className: l, palette: i, theme: o } =
|
|
11513
|
-
"--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(_c.PRIMARY, 0.5)
|
|
11514
11520
|
};
|
|
11515
11521
|
if (t) {
|
|
11516
11522
|
const s = Lr(t);
|
|
@@ -11619,8 +11625,8 @@ function Ah({
|
|
|
11619
11625
|
}
|
|
11620
11626
|
);
|
|
11621
11627
|
}
|
|
11622
|
-
const Kh =
|
|
11623
|
-
function
|
|
11628
|
+
const Kh = Rh(100);
|
|
11629
|
+
function u4({
|
|
11624
11630
|
data: t,
|
|
11625
11631
|
resolution: e = 2,
|
|
11626
11632
|
startDuration: n,
|
|
@@ -11632,19 +11638,19 @@ function a4({
|
|
|
11632
11638
|
timestampColor: u,
|
|
11633
11639
|
"data-testid": s
|
|
11634
11640
|
}) {
|
|
11635
|
-
var
|
|
11636
|
-
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, R = u || (f === "custom-dark" ? d.PRIMARY.PRIMARY_SUPER_DARK : void 0), v = e;
|
|
11637
11643
|
L(() => {
|
|
11638
11644
|
if (!p.current) return;
|
|
11639
11645
|
const D = (Z) => {
|
|
11640
|
-
const ue = Math.floor(Z / (e + v)), fe =
|
|
11646
|
+
const ue = Math.floor(Z / (e + v)), fe = Ih(P, ue);
|
|
11641
11647
|
$(fe);
|
|
11642
11648
|
}, z = p.current.clientWidth;
|
|
11643
11649
|
D(z);
|
|
11644
|
-
const
|
|
11650
|
+
const I = new ResizeObserver((Z) => {
|
|
11645
11651
|
Z && Z[0] && D(Z[0].contentRect.width);
|
|
11646
11652
|
});
|
|
11647
|
-
return
|
|
11653
|
+
return I.observe(p.current), () => I.disconnect();
|
|
11648
11654
|
}, [P, e, v]), L(() => {
|
|
11649
11655
|
const D = setTimeout(() => y(!0), 50), z = setTimeout(() => C(!0), 500);
|
|
11650
11656
|
return () => {
|
|
@@ -11657,18 +11663,18 @@ function a4({
|
|
|
11657
11663
|
E(Z);
|
|
11658
11664
|
}, w = () => {
|
|
11659
11665
|
E(null);
|
|
11660
|
-
}, T = e + v,
|
|
11666
|
+
}, T = e + v, F = (D, z) => {
|
|
11661
11667
|
var ue;
|
|
11662
|
-
const
|
|
11663
|
-
return (z === "start" ? Math.floor(
|
|
11664
|
-
}, 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;
|
|
11665
11671
|
return /* @__PURE__ */ b.jsxs("div", { className: U("proton-Waveform", c), "data-testid": s, children: [
|
|
11666
11672
|
i && /* @__PURE__ */ b.jsx(
|
|
11667
11673
|
mi,
|
|
11668
11674
|
{
|
|
11669
11675
|
direction: "left",
|
|
11670
11676
|
seconds: l,
|
|
11671
|
-
color:
|
|
11677
|
+
color: R
|
|
11672
11678
|
}
|
|
11673
11679
|
),
|
|
11674
11680
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -11689,8 +11695,8 @@ function a4({
|
|
|
11689
11695
|
{
|
|
11690
11696
|
className: "proton-Waveform__active-region",
|
|
11691
11697
|
style: {
|
|
11692
|
-
left: p.current ? `calc(${
|
|
11693
|
-
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%"
|
|
11694
11700
|
}
|
|
11695
11701
|
}
|
|
11696
11702
|
),
|
|
@@ -11704,7 +11710,7 @@ function a4({
|
|
|
11704
11710
|
}
|
|
11705
11711
|
),
|
|
11706
11712
|
m.map((D, z) => {
|
|
11707
|
-
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;
|
|
11708
11714
|
return /* @__PURE__ */ b.jsx(
|
|
11709
11715
|
Ah,
|
|
11710
11716
|
{
|
|
@@ -11729,7 +11735,7 @@ function a4({
|
|
|
11729
11735
|
{
|
|
11730
11736
|
className: "proton-Waveform__bar-unavailable",
|
|
11731
11737
|
style: {
|
|
11732
|
-
backgroundColor:
|
|
11738
|
+
backgroundColor: R,
|
|
11733
11739
|
fontSize: x < 325 ? "0.85rem" : "1rem"
|
|
11734
11740
|
},
|
|
11735
11741
|
children: x < 277 ? "Unavailable" : "Waveform Unavailable"
|
|
@@ -11740,7 +11746,7 @@ function a4({
|
|
|
11740
11746
|
{
|
|
11741
11747
|
direction: "right",
|
|
11742
11748
|
seconds: o,
|
|
11743
|
-
color:
|
|
11749
|
+
color: R
|
|
11744
11750
|
}
|
|
11745
11751
|
)
|
|
11746
11752
|
] });
|
|
@@ -11766,21 +11772,21 @@ function Mh(t) {
|
|
|
11766
11772
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
11767
11773
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
11768
11774
|
}
|
|
11769
|
-
function
|
|
11775
|
+
function Ih(t, e) {
|
|
11770
11776
|
const n = t.length, r = n / e, l = new Array(e).fill(0).map((i, o) => {
|
|
11771
11777
|
const a = o * r, u = Math.floor(a), s = Math.min(u + 1, n - 1), c = a - u;
|
|
11772
11778
|
return t[u] * (1 - c) + t[s] * c;
|
|
11773
11779
|
});
|
|
11774
|
-
return
|
|
11780
|
+
return Fh(l);
|
|
11775
11781
|
}
|
|
11776
|
-
function
|
|
11782
|
+
function Fh(t) {
|
|
11777
11783
|
const e = Math.min(...t), n = Math.max(...t);
|
|
11778
11784
|
return t.map((r) => {
|
|
11779
11785
|
const l = (r - e) / (n - e);
|
|
11780
11786
|
return Math.max(l * 0.8 + 0.1, 0.1);
|
|
11781
11787
|
});
|
|
11782
11788
|
}
|
|
11783
|
-
function
|
|
11789
|
+
function Rh(t) {
|
|
11784
11790
|
return Array.from({ length: t }, (e, n) => {
|
|
11785
11791
|
const l = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
11786
11792
|
return Math.sin(l) * 0.5 + 0.5;
|
|
@@ -11788,35 +11794,35 @@ function _h(t) {
|
|
|
11788
11794
|
}
|
|
11789
11795
|
export {
|
|
11790
11796
|
Us as ActionMenu,
|
|
11791
|
-
|
|
11792
|
-
|
|
11797
|
+
qh as Badge,
|
|
11798
|
+
Yh as BadgeVariants,
|
|
11793
11799
|
Ue as Banner,
|
|
11794
11800
|
Ys as Button,
|
|
11795
11801
|
Cv as ButtonGroup,
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11802
|
+
d4 as COLORS,
|
|
11803
|
+
i4 as Cell,
|
|
11804
|
+
l4 as Column,
|
|
11805
|
+
Xh as Dialog,
|
|
11806
|
+
Zh as Icon,
|
|
11801
11807
|
Dv as Input,
|
|
11802
11808
|
ol as Popover,
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
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,
|
|
11816
11822
|
Th as Tooltip,
|
|
11817
11823
|
Bh as TooltipTrigger,
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11824
|
+
u4 as Waveform,
|
|
11825
|
+
Qh as usePopoverTrigger,
|
|
11826
|
+
We as useTheme
|
|
11821
11827
|
};
|
|
11822
11828
|
//# sourceMappingURL=index.es.js.map
|