@protonradio/proton-ui 0.7.5-beta10 → 0.7.5-beta12
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +403 -404
- package/dist/index.es.js.map +1 -1
- package/dist/{utils-ZbliEUT6.js → utils-BUwoPI1e.js} +2 -2
- package/dist/utils-BUwoPI1e.js.map +1 -0
- package/dist/{utils-KedSkjS1.mjs → utils-Bc2wVuvD.mjs} +17 -18
- package/dist/utils-Bc2wVuvD.mjs.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +1 -1
- package/package.json +1 -1
- package/dist/utils-KedSkjS1.mjs.map +0 -1
- package/dist/utils-ZbliEUT6.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { e as W, i as Lr, h as $i, a as Rc, D as Un } from "./utils-
|
|
1
|
+
import B, { useRef as I, useCallback as X, useState as z, useContext as Y, useEffect as L, createContext as Q, useMemo as V, useLayoutEffect as Mc, createElement as gi, isValidElement as Ic, forwardRef as dt, cloneElement as Fc } from "react";
|
|
2
|
+
import Sn, { flushSync as _c, createPortal as yi } from "react-dom";
|
|
3
|
+
import { e as W, i as Lr, h as $i, a as Rc, D as Un } from "./utils-Bc2wVuvD.mjs";
|
|
4
4
|
import { THEMES as Pt, BREAKPOINTS as xi } from "./constants.es.js";
|
|
5
5
|
import { transparentize as Gn, parseToRgba as Nc } from "color2k";
|
|
6
|
-
import { G as ke, S as
|
|
6
|
+
import { G as ke, S as en, W as tn, D as nn } from "./colors-Dwh4VIMR.mjs";
|
|
7
7
|
import { c as h4 } from "./colors-Dwh4VIMR.mjs";
|
|
8
8
|
var dr = { exports: {} }, Mt = {};
|
|
9
9
|
/**
|
|
@@ -19,7 +19,7 @@ var Cl;
|
|
|
19
19
|
function Lc() {
|
|
20
20
|
if (Cl) return Mt;
|
|
21
21
|
Cl = 1;
|
|
22
|
-
var t =
|
|
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 };
|
|
23
23
|
function o(a, u, c) {
|
|
24
24
|
var s, d = {}, f = null, p = null;
|
|
25
25
|
c !== void 0 && (f = "" + c), u.key !== void 0 && (f = "" + u.key), u.ref !== void 0 && (p = u.ref);
|
|
@@ -42,7 +42,7 @@ var It = {};
|
|
|
42
42
|
var wl;
|
|
43
43
|
function Oc() {
|
|
44
44
|
return wl || (wl = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var t =
|
|
45
|
+
var t = B, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, y = "@@iterator";
|
|
46
46
|
function g(h) {
|
|
47
47
|
if (h === null || typeof h != "object")
|
|
48
48
|
return null;
|
|
@@ -67,14 +67,14 @@ function Oc() {
|
|
|
67
67
|
ee.unshift("Warning: " + K), Function.prototype.apply.call(console[h], console, ee);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var k = !1, C = !1, D = !1, _ = !1, v = !1,
|
|
71
|
-
|
|
70
|
+
var k = !1, C = !1, D = !1, _ = !1, v = !1, A;
|
|
71
|
+
A = Symbol.for("react.module.reference");
|
|
72
72
|
function P(h) {
|
|
73
73
|
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === c || h === s || _ || h === p || k || C || D || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === u || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
h.$$typeof ===
|
|
77
|
+
h.$$typeof === A || h.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
79
|
function w(h, K, R) {
|
|
80
80
|
var j = h.displayName;
|
|
@@ -131,14 +131,14 @@ function Oc() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var F = Object.assign, T = 0, U, N, ce, ge, $e,
|
|
134
|
+
var F = Object.assign, T = 0, U, N, ce, ge, $e, Be, xe;
|
|
135
135
|
function Ue() {
|
|
136
136
|
}
|
|
137
137
|
Ue.__reactDisabledLog = !0;
|
|
138
138
|
function O() {
|
|
139
139
|
{
|
|
140
140
|
if (T === 0) {
|
|
141
|
-
U = console.log, N = console.info, ce = console.warn, ge = console.error, $e = console.group,
|
|
141
|
+
U = console.log, N = console.info, ce = console.warn, ge = console.error, $e = console.group, Be = console.groupCollapsed, xe = console.groupEnd;
|
|
142
142
|
var h = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -183,7 +183,7 @@ function Oc() {
|
|
|
183
183
|
value: $e
|
|
184
184
|
}),
|
|
185
185
|
groupCollapsed: F({}, h, {
|
|
186
|
-
value:
|
|
186
|
+
value: Be
|
|
187
187
|
}),
|
|
188
188
|
groupEnd: F({}, h, {
|
|
189
189
|
value: xe
|
|
@@ -290,7 +290,7 @@ function Oc() {
|
|
|
290
290
|
var K = h.prototype;
|
|
291
291
|
return !!(K && K.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Jt(h, K, R) {
|
|
294
294
|
if (h == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof h == "function")
|
|
@@ -308,28 +308,28 @@ function Oc() {
|
|
|
308
308
|
case u:
|
|
309
309
|
return Ln(h.render);
|
|
310
310
|
case d:
|
|
311
|
-
return
|
|
311
|
+
return Jt(h.type, K, R);
|
|
312
312
|
case f: {
|
|
313
313
|
var j = h, Z = j._payload, ee = j._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return Jt(ee(Z), K, R);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
322
|
+
var At = Object.prototype.hasOwnProperty, dl = {}, fl = E.ReactDebugCurrentFrame;
|
|
323
|
+
function Qt(h) {
|
|
324
324
|
if (h) {
|
|
325
|
-
var K = h._owner, R =
|
|
325
|
+
var K = h._owner, R = Jt(h.type, h._source, K ? K.type : null);
|
|
326
326
|
fl.setExtraStackFrame(R);
|
|
327
327
|
} else
|
|
328
328
|
fl.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
330
|
function dc(h, K, R, j, Z) {
|
|
331
331
|
{
|
|
332
|
-
var ee = Function.call.bind(
|
|
332
|
+
var ee = Function.call.bind(At);
|
|
333
333
|
for (var q in h)
|
|
334
334
|
if (ee(h, q)) {
|
|
335
335
|
var G = void 0;
|
|
@@ -342,7 +342,7 @@ function Oc() {
|
|
|
342
342
|
} catch (le) {
|
|
343
343
|
G = le;
|
|
344
344
|
}
|
|
345
|
-
G && !(G instanceof Error) && (
|
|
345
|
+
G && !(G instanceof Error) && (Qt(Z), 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).", j || "React class", R, q, typeof G), Qt(null)), G instanceof Error && !(G.message in dl) && (dl[G.message] = !0, Qt(Z), S("Failed %s type: %s", R, G.message), Qt(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -378,7 +378,7 @@ function Oc() {
|
|
|
378
378
|
}, hl, ml, zn;
|
|
379
379
|
zn = {};
|
|
380
380
|
function mc(h) {
|
|
381
|
-
if (
|
|
381
|
+
if (At.call(h, "ref")) {
|
|
382
382
|
var K = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
383
383
|
if (K && K.isReactWarning)
|
|
384
384
|
return !1;
|
|
@@ -386,7 +386,7 @@ function Oc() {
|
|
|
386
386
|
return h.ref !== void 0;
|
|
387
387
|
}
|
|
388
388
|
function bc(h) {
|
|
389
|
-
if (
|
|
389
|
+
if (At.call(h, "key")) {
|
|
390
390
|
var K = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
391
391
|
if (K && K.isReactWarning)
|
|
392
392
|
return !1;
|
|
@@ -455,7 +455,7 @@ function Oc() {
|
|
|
455
455
|
var ee, q = {}, G = null, pe = null;
|
|
456
456
|
R !== void 0 && (vl(R), G = "" + R), bc(K) && (vl(K.key), G = "" + K.key), mc(K) && (pe = K.ref, gc(K, Z));
|
|
457
457
|
for (ee in K)
|
|
458
|
-
|
|
458
|
+
At.call(K, ee) && !hc.hasOwnProperty(ee) && (q[ee] = K[ee]);
|
|
459
459
|
if (h && h.defaultProps) {
|
|
460
460
|
var le = h.defaultProps;
|
|
461
461
|
for (ee in le)
|
|
@@ -471,7 +471,7 @@ function Oc() {
|
|
|
471
471
|
var jn = E.ReactCurrentOwner, bl = E.ReactDebugCurrentFrame;
|
|
472
472
|
function bt(h) {
|
|
473
473
|
if (h) {
|
|
474
|
-
var K = h._owner, R =
|
|
474
|
+
var K = h._owner, R = Jt(h.type, h._source, K ? K.type : null);
|
|
475
475
|
bl.setExtraStackFrame(R);
|
|
476
476
|
} else
|
|
477
477
|
bl.setExtraStackFrame(null);
|
|
@@ -606,18 +606,18 @@ Check the top-level render call using <` + R + ">.");
|
|
|
606
606
|
else
|
|
607
607
|
xl(Se, h);
|
|
608
608
|
}
|
|
609
|
-
if (
|
|
609
|
+
if (At.call(K, "key")) {
|
|
610
610
|
var lt = $(h), me = Object.keys(K).filter(function(Kc) {
|
|
611
611
|
return Kc !== "key";
|
|
612
612
|
}), Wn = me.length > 0 ? "{key: someKey, " + me.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
613
|
if (!El[lt + Wn]) {
|
|
614
|
-
var
|
|
614
|
+
var Ac = me.length > 0 ? "{" + me.join(": ..., ") + ": ...}" : "{}";
|
|
615
615
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
619
619
|
let props = %s;
|
|
620
|
-
<%s key={someKey} {...props} />`, Wn, lt,
|
|
620
|
+
<%s key={someKey} {...props} />`, Wn, lt, Ac, lt), El[lt + Wn] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return h === r ? Pc(ae) : wc(ae), ae;
|
|
@@ -629,13 +629,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
function kc(h, K, R) {
|
|
630
630
|
return Sl(h, K, R, !1);
|
|
631
631
|
}
|
|
632
|
-
var Tc = kc,
|
|
633
|
-
It.Fragment = r, It.jsx = Tc, It.jsxs =
|
|
632
|
+
var Tc = kc, Bc = Dc;
|
|
633
|
+
It.Fragment = r, It.jsx = Tc, It.jsxs = Bc;
|
|
634
634
|
}()), It;
|
|
635
635
|
}
|
|
636
636
|
process.env.NODE_ENV === "production" ? dr.exports = Lc() : dr.exports = Oc();
|
|
637
637
|
var b = dr.exports;
|
|
638
|
-
const J = typeof document < "u" ?
|
|
638
|
+
const J = typeof document < "u" ? B.useLayoutEffect : () => {
|
|
639
639
|
};
|
|
640
640
|
function oe(t) {
|
|
641
641
|
const e = I(null);
|
|
@@ -669,16 +669,16 @@ function zc(t) {
|
|
|
669
669
|
i
|
|
670
670
|
];
|
|
671
671
|
}
|
|
672
|
-
const
|
|
672
|
+
const fn = {
|
|
673
673
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
674
674
|
current: 0
|
|
675
|
-
}, Ei = /* @__PURE__ */
|
|
675
|
+
}, Ei = /* @__PURE__ */ B.createContext(fn), jc = /* @__PURE__ */ B.createContext(!1);
|
|
676
676
|
let Vc = !!(typeof window < "u" && window.document && window.document.createElement), Yn = /* @__PURE__ */ new WeakMap();
|
|
677
677
|
function Hc(t = !1) {
|
|
678
678
|
let e = Y(Ei), n = I(null);
|
|
679
679
|
if (n.current === null && !t) {
|
|
680
680
|
var r, l;
|
|
681
|
-
let i = (l =
|
|
681
|
+
let i = (l = B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || l === void 0 || (r = l.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
682
682
|
if (i) {
|
|
683
683
|
let o = Yn.get(i);
|
|
684
684
|
o == null ? Yn.set(i, {
|
|
@@ -692,15 +692,15 @@ function Hc(t = !1) {
|
|
|
692
692
|
}
|
|
693
693
|
function Wc(t) {
|
|
694
694
|
let e = Y(Ei);
|
|
695
|
-
e ===
|
|
696
|
-
let n = Hc(!!t), r = e ===
|
|
695
|
+
e === fn && !Vc && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
696
|
+
let n = Hc(!!t), r = e === fn && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
697
697
|
return t || `${r}-${n}`;
|
|
698
698
|
}
|
|
699
699
|
function Uc(t) {
|
|
700
|
-
let e =
|
|
700
|
+
let e = B.useId(), [n] = z(nt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${fn.prefix}`;
|
|
701
701
|
return t || `${r}-${e}`;
|
|
702
702
|
}
|
|
703
|
-
const Gc = typeof
|
|
703
|
+
const Gc = typeof B.useId == "function" ? Uc : Wc;
|
|
704
704
|
function Yc() {
|
|
705
705
|
return !1;
|
|
706
706
|
}
|
|
@@ -712,7 +712,7 @@ function Xc(t) {
|
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
714
|
function nt() {
|
|
715
|
-
return typeof
|
|
715
|
+
return typeof B.useSyncExternalStore == "function" ? B.useSyncExternalStore(Xc, Yc, qc) : Y(jc);
|
|
716
716
|
}
|
|
717
717
|
let Zc = !!(typeof window < "u" && window.document && window.document.createElement), qe = /* @__PURE__ */ new Map();
|
|
718
718
|
function he(t) {
|
|
@@ -833,20 +833,20 @@ function Le(t) {
|
|
|
833
833
|
t.focus(), ad(e);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
let
|
|
836
|
+
let rn = null;
|
|
837
837
|
function id() {
|
|
838
|
-
if (
|
|
839
|
-
|
|
838
|
+
if (rn == null) {
|
|
839
|
+
rn = !1;
|
|
840
840
|
try {
|
|
841
841
|
document.createElement("div").focus({
|
|
842
842
|
get preventScroll() {
|
|
843
|
-
return
|
|
843
|
+
return rn = !0, !0;
|
|
844
844
|
}
|
|
845
845
|
});
|
|
846
846
|
} catch {
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return rn;
|
|
850
850
|
}
|
|
851
851
|
function od(t) {
|
|
852
852
|
let e = t.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
@@ -866,7 +866,7 @@ function ad(t) {
|
|
|
866
866
|
for (let { element: e, scrollTop: n, scrollLeft: r } of t)
|
|
867
867
|
e.scrollTop = n, e.scrollLeft = r;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Cn(t) {
|
|
870
870
|
var e;
|
|
871
871
|
return typeof window > "u" || window.navigator == null ? !1 : ((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands.some((n) => t.test(n.brand))) || t.test(window.navigator.userAgent);
|
|
872
872
|
}
|
|
@@ -885,18 +885,18 @@ const tt = Ve(function() {
|
|
|
885
885
|
}), Ci = Ve(function() {
|
|
886
886
|
return Or(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
887
887
|
tt() && navigator.maxTouchPoints > 1;
|
|
888
|
-
}),
|
|
888
|
+
}), wn = Ve(function() {
|
|
889
889
|
return ud() || Ci();
|
|
890
890
|
}), sd = Ve(function() {
|
|
891
|
-
return tt() ||
|
|
891
|
+
return tt() || wn();
|
|
892
892
|
}), zr = Ve(function() {
|
|
893
|
-
return
|
|
893
|
+
return Cn(/AppleWebKit/i) && !cd();
|
|
894
894
|
}), cd = Ve(function() {
|
|
895
|
-
return
|
|
896
|
-
}),
|
|
897
|
-
return
|
|
895
|
+
return Cn(/Chrome/i);
|
|
896
|
+
}), pn = Ve(function() {
|
|
897
|
+
return Cn(/Android/i);
|
|
898
898
|
}), dd = Ve(function() {
|
|
899
|
-
return
|
|
899
|
+
return Cn(/Firefox/i);
|
|
900
900
|
}), fd = /* @__PURE__ */ Q({
|
|
901
901
|
isNative: !0,
|
|
902
902
|
open: vd,
|
|
@@ -1033,7 +1033,7 @@ function ki(t, e) {
|
|
|
1033
1033
|
"aria-labelledby": l
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Pn(t) {
|
|
1037
1037
|
const e = I(null);
|
|
1038
1038
|
return V(() => ({
|
|
1039
1039
|
get current() {
|
|
@@ -1106,7 +1106,7 @@ function bd(t, e) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
let gd = 0;
|
|
1108
1108
|
const qn = /* @__PURE__ */ new Map();
|
|
1109
|
-
function
|
|
1109
|
+
function Dn(t) {
|
|
1110
1110
|
let [e, n] = z();
|
|
1111
1111
|
return J(() => {
|
|
1112
1112
|
if (!t) return;
|
|
@@ -1147,7 +1147,7 @@ function Dl(t, e, n, r) {
|
|
|
1147
1147
|
l
|
|
1148
1148
|
]);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Bi(t, e) {
|
|
1151
1151
|
let n = kl(t, e, "left"), r = kl(t, e, "top"), l = e.offsetWidth, i = e.offsetHeight, o = t.scrollLeft, a = t.scrollTop, { borderTopWidth: u, borderLeftWidth: c } = getComputedStyle(t), s = t.scrollLeft + parseInt(c, 10), d = t.scrollTop + parseInt(u, 10), f = s + t.clientWidth, p = d + t.clientHeight;
|
|
1152
1152
|
n <= o ? o = n - parseInt(c, 10) : n + l > f && (o += n + l - f), r <= d ? a = r - parseInt(u, 10) : r + i > p && (a += r + i - p), t.scrollLeft = o, t.scrollTop = a;
|
|
1153
1153
|
}
|
|
@@ -1168,7 +1168,7 @@ function Ze(t, e) {
|
|
|
1168
1168
|
let o = document.scrollingElement || document.documentElement;
|
|
1169
1169
|
if (window.getComputedStyle(o).overflow === "hidden") {
|
|
1170
1170
|
let u = bd(t);
|
|
1171
|
-
for (let c of u)
|
|
1171
|
+
for (let c of u) Bi(c, t);
|
|
1172
1172
|
} else {
|
|
1173
1173
|
var n;
|
|
1174
1174
|
let { left: u, top: c } = t.getBoundingClientRect();
|
|
@@ -1189,12 +1189,12 @@ function Ze(t, e) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
function vr(t) {
|
|
1192
|
-
return t.mozInputSource === 0 && t.isTrusted ? !0 :
|
|
1192
|
+
return t.mozInputSource === 0 && t.isTrusted ? !0 : pn() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
1193
1193
|
}
|
|
1194
1194
|
function yd(t) {
|
|
1195
|
-
return !
|
|
1195
|
+
return !pn() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function kn(t, e, n) {
|
|
1198
1198
|
let r = I(e), l = oe(() => {
|
|
1199
1199
|
n && n(r.current);
|
|
1200
1200
|
});
|
|
@@ -1238,18 +1238,18 @@ function rt(t, e, n) {
|
|
|
1238
1238
|
function hr(t, e = -1 / 0, n = 1 / 0) {
|
|
1239
1239
|
return Math.min(Math.max(t, e), n);
|
|
1240
1240
|
}
|
|
1241
|
-
let Ct = "default", mr = "",
|
|
1241
|
+
let Ct = "default", mr = "", dn = /* @__PURE__ */ new WeakMap();
|
|
1242
1242
|
function Tl(t) {
|
|
1243
|
-
if (
|
|
1243
|
+
if (wn()) {
|
|
1244
1244
|
if (Ct === "default") {
|
|
1245
1245
|
const e = ne(t);
|
|
1246
1246
|
mr = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
|
|
1247
1247
|
}
|
|
1248
1248
|
Ct = "disabled";
|
|
1249
|
-
} else (t instanceof HTMLElement || t instanceof SVGElement) && (
|
|
1249
|
+
} else (t instanceof HTMLElement || t instanceof SVGElement) && (dn.set(t, t.style.userSelect), t.style.userSelect = "none");
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1252
|
-
if (
|
|
1251
|
+
function ln(t) {
|
|
1252
|
+
if (wn()) {
|
|
1253
1253
|
if (Ct !== "disabled") return;
|
|
1254
1254
|
Ct = "restoring", setTimeout(() => {
|
|
1255
1255
|
Pi(() => {
|
|
@@ -1259,12 +1259,12 @@ function on(t) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
}, 300);
|
|
1262
|
-
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t &&
|
|
1263
|
-
let e =
|
|
1264
|
-
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"),
|
|
1262
|
+
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && dn.has(t)) {
|
|
1263
|
+
let e = dn.get(t);
|
|
1264
|
+
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), dn.delete(t);
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
const Vt =
|
|
1267
|
+
const Vt = B.createContext({
|
|
1268
1268
|
register: () => {
|
|
1269
1269
|
}
|
|
1270
1270
|
});
|
|
@@ -1272,12 +1272,12 @@ Vt.displayName = "PressResponderContext";
|
|
|
1272
1272
|
function $d(t, e) {
|
|
1273
1273
|
return e.get ? e.get.call(t) : e.value;
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function Ai(t, e, n) {
|
|
1276
1276
|
if (!e.has(t)) throw new TypeError("attempted to " + n + " private field on non-instance");
|
|
1277
1277
|
return e.get(t);
|
|
1278
1278
|
}
|
|
1279
1279
|
function xd(t, e) {
|
|
1280
|
-
var n =
|
|
1280
|
+
var n = Ai(t, e, "get");
|
|
1281
1281
|
return $d(t, n);
|
|
1282
1282
|
}
|
|
1283
1283
|
function Ed(t, e) {
|
|
@@ -1295,8 +1295,8 @@ function Cd(t, e, n) {
|
|
|
1295
1295
|
e.value = n;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1299
|
-
var r =
|
|
1298
|
+
function Bl(t, e, n) {
|
|
1299
|
+
var r = Ai(t, e, "set");
|
|
1300
1300
|
return Cd(t, r, n), n;
|
|
1301
1301
|
}
|
|
1302
1302
|
function wd(t) {
|
|
@@ -1307,19 +1307,19 @@ function wd(t) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
return jr(e, t.ref), t;
|
|
1309
1309
|
}
|
|
1310
|
-
var
|
|
1311
|
-
class
|
|
1310
|
+
var on = /* @__PURE__ */ new WeakMap();
|
|
1311
|
+
class an {
|
|
1312
1312
|
continuePropagation() {
|
|
1313
|
-
|
|
1313
|
+
Bl(this, on, !1);
|
|
1314
1314
|
}
|
|
1315
1315
|
get shouldStopPropagation() {
|
|
1316
|
-
return xd(this,
|
|
1316
|
+
return xd(this, on);
|
|
1317
1317
|
}
|
|
1318
1318
|
constructor(e, n, r, l) {
|
|
1319
|
-
Sd(this,
|
|
1319
|
+
Sd(this, on, {
|
|
1320
1320
|
writable: !0,
|
|
1321
1321
|
value: void 0
|
|
1322
|
-
}),
|
|
1322
|
+
}), Bl(this, on, !0);
|
|
1323
1323
|
var i;
|
|
1324
1324
|
let o = (i = l == null ? void 0 : l.target) !== null && i !== void 0 ? i : r.currentTarget;
|
|
1325
1325
|
const a = o == null ? void 0 : o.getBoundingClientRect();
|
|
@@ -1327,7 +1327,7 @@ class un {
|
|
|
1327
1327
|
r.clientX != null && r.clientY != null && (s = r.clientX, d = r.clientY), a && (s != null && d != null ? (u = s - a.left, c = d - a.top) : (u = a.width / 2, c = a.height / 2)), this.type = e, this.pointerType = n, this.target = r.currentTarget, this.shiftKey = r.shiftKey, this.metaKey = r.metaKey, this.ctrlKey = r.ctrlKey, this.altKey = r.altKey, this.x = u, this.y = c;
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
const
|
|
1330
|
+
const Al = Symbol("linkClicked");
|
|
1331
1331
|
function ze(t) {
|
|
1332
1332
|
let {
|
|
1333
1333
|
onPress: e,
|
|
@@ -1353,45 +1353,45 @@ function ze(t) {
|
|
|
1353
1353
|
target: null,
|
|
1354
1354
|
isOverTarget: !1,
|
|
1355
1355
|
pointerType: null
|
|
1356
|
-
}), { addGlobalListener: g, removeAllGlobalListeners: E } = Di(), S = oe((v,
|
|
1356
|
+
}), { addGlobalListener: g, removeAllGlobalListeners: E } = Di(), S = oe((v, A) => {
|
|
1357
1357
|
let P = y.current;
|
|
1358
1358
|
if (o || P.didFirePressStart) return !1;
|
|
1359
1359
|
let w = !0;
|
|
1360
1360
|
if (P.isTriggeringEvent = !0, r) {
|
|
1361
|
-
let M = new
|
|
1361
|
+
let M = new an("pressstart", A, v);
|
|
1362
1362
|
r(M), w = M.shouldStopPropagation;
|
|
1363
1363
|
}
|
|
1364
1364
|
return n && n(!0), P.isTriggeringEvent = !1, P.didFirePressStart = !0, m(!0), w;
|
|
1365
|
-
}), x = oe((v,
|
|
1365
|
+
}), x = oe((v, A, P = !0) => {
|
|
1366
1366
|
let w = y.current;
|
|
1367
1367
|
if (!w.didFirePressStart) return !1;
|
|
1368
1368
|
w.ignoreClickAfterPress = !0, w.didFirePressStart = !1, w.isTriggeringEvent = !0;
|
|
1369
1369
|
let M = !0;
|
|
1370
1370
|
if (l) {
|
|
1371
|
-
let $ = new
|
|
1371
|
+
let $ = new an("pressend", A, v);
|
|
1372
1372
|
l($), M = $.shouldStopPropagation;
|
|
1373
1373
|
}
|
|
1374
1374
|
if (n && n(!1), m(!1), e && P && !o) {
|
|
1375
|
-
let $ = new
|
|
1375
|
+
let $ = new an("press", A, v);
|
|
1376
1376
|
e($), M && (M = $.shouldStopPropagation);
|
|
1377
1377
|
}
|
|
1378
1378
|
return w.isTriggeringEvent = !1, M;
|
|
1379
|
-
}), k = oe((v,
|
|
1379
|
+
}), k = oe((v, A) => {
|
|
1380
1380
|
let P = y.current;
|
|
1381
1381
|
if (o) return !1;
|
|
1382
1382
|
if (i) {
|
|
1383
1383
|
P.isTriggeringEvent = !0;
|
|
1384
|
-
let w = new
|
|
1384
|
+
let w = new an("pressup", A, v);
|
|
1385
1385
|
return i(w), P.isTriggeringEvent = !1, w.shouldStopPropagation;
|
|
1386
1386
|
}
|
|
1387
1387
|
return !0;
|
|
1388
1388
|
}), C = oe((v) => {
|
|
1389
|
-
let
|
|
1390
|
-
|
|
1389
|
+
let A = y.current;
|
|
1390
|
+
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && x(Fe(A.target, v), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, E(), s || ln(A.target));
|
|
1391
1391
|
}), D = oe((v) => {
|
|
1392
1392
|
c && C(v);
|
|
1393
1393
|
}), _ = V(() => {
|
|
1394
|
-
let v = y.current,
|
|
1394
|
+
let v = y.current, A = {
|
|
1395
1395
|
onKeyDown(w) {
|
|
1396
1396
|
if (Xn(w.nativeEvent, w.currentTarget) && w.currentTarget.contains(w.target)) {
|
|
1397
1397
|
var M;
|
|
@@ -1424,7 +1424,7 @@ function ze(t) {
|
|
|
1424
1424
|
var $;
|
|
1425
1425
|
Ml(w.target, w.key) && w.preventDefault();
|
|
1426
1426
|
let T = w.target;
|
|
1427
|
-
x(Fe(v.target, w), "keyboard", v.target.contains(T)), E(), w.key !== "Enter" && Vr(v.target) && v.target.contains(T) && !w[
|
|
1427
|
+
x(Fe(v.target, w), "keyboard", v.target.contains(T)), E(), w.key !== "Enter" && Vr(v.target) && v.target.contains(T) && !w[Al] && (w[Al] = !0, ut(v.target, w, !1)), v.isPressed = !1, ($ = v.metaKeyEvents) === null || $ === void 0 || $.delete(w.key);
|
|
1428
1428
|
} else if (w.key === "Meta" && (!((M = v.metaKeyEvents) === null || M === void 0) && M.size)) {
|
|
1429
1429
|
var F;
|
|
1430
1430
|
let T = v.metaKeyEvents;
|
|
@@ -1433,7 +1433,7 @@ function ze(t) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
1435
|
if (typeof PointerEvent < "u") {
|
|
1436
|
-
|
|
1436
|
+
A.onPointerDown = (T) => {
|
|
1437
1437
|
if (T.button !== 0 || !T.currentTarget.contains(T.target)) return;
|
|
1438
1438
|
if (yd(T.nativeEvent)) {
|
|
1439
1439
|
v.pointerType = "virtual";
|
|
@@ -1442,15 +1442,15 @@ function ze(t) {
|
|
|
1442
1442
|
Zn(T.currentTarget) && T.preventDefault(), v.pointerType = T.pointerType;
|
|
1443
1443
|
let U = !0;
|
|
1444
1444
|
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = T.pointerId, v.target = T.currentTarget, !o && !u && Le(T.currentTarget), s || Tl(v.target), U = S(T, v.pointerType), g(ne(T.currentTarget), "pointermove", w, !1), g(ne(T.currentTarget), "pointerup", M, !1), g(ne(T.currentTarget), "pointercancel", F, !1)), U && T.stopPropagation();
|
|
1445
|
-
},
|
|
1445
|
+
}, A.onMouseDown = (T) => {
|
|
1446
1446
|
T.currentTarget.contains(T.target) && T.button === 0 && (Zn(T.currentTarget) && T.preventDefault(), T.stopPropagation());
|
|
1447
|
-
},
|
|
1447
|
+
}, A.onPointerUp = (T) => {
|
|
1448
1448
|
!T.currentTarget.contains(T.target) || v.pointerType === "virtual" || T.button === 0 && yt(T, T.currentTarget) && k(T, v.pointerType || T.pointerType);
|
|
1449
1449
|
};
|
|
1450
1450
|
let w = (T) => {
|
|
1451
1451
|
T.pointerId === v.activePointerId && (v.target && yt(T, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(Fe(v.target, T), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, x(Fe(v.target, T), v.pointerType, !1), D(T)));
|
|
1452
1452
|
}, M = (T) => {
|
|
1453
|
-
T.pointerId === v.activePointerId && v.isPressed && T.button === 0 && v.target && (yt(T, v.target) && v.pointerType != null ? x(Fe(v.target, T), v.pointerType) : v.isOverTarget && v.pointerType != null && x(Fe(v.target, T), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, E(), s ||
|
|
1453
|
+
T.pointerId === v.activePointerId && v.isPressed && T.button === 0 && v.target && (yt(T, v.target) && v.pointerType != null ? x(Fe(v.target, T), v.pointerType) : v.isOverTarget && v.pointerType != null && x(Fe(v.target, T), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, E(), s || ln(v.target), "ontouchend" in v.target && T.pointerType !== "mouse" && g(v.target, "touchend", $, {
|
|
1454
1454
|
once: !0
|
|
1455
1455
|
}));
|
|
1456
1456
|
}, $ = (T) => {
|
|
@@ -1458,26 +1458,26 @@ function ze(t) {
|
|
|
1458
1458
|
}, F = (T) => {
|
|
1459
1459
|
C(T);
|
|
1460
1460
|
};
|
|
1461
|
-
|
|
1461
|
+
A.onDragStart = (T) => {
|
|
1462
1462
|
T.currentTarget.contains(T.target) && C(T);
|
|
1463
1463
|
};
|
|
1464
1464
|
} else {
|
|
1465
|
-
|
|
1465
|
+
A.onMouseDown = ($) => {
|
|
1466
1466
|
if ($.button !== 0 || !$.currentTarget.contains($.target)) return;
|
|
1467
1467
|
if (Zn($.currentTarget) && $.preventDefault(), v.ignoreEmulatedMouseEvents) {
|
|
1468
1468
|
$.stopPropagation();
|
|
1469
1469
|
return;
|
|
1470
1470
|
}
|
|
1471
1471
|
v.isPressed = !0, v.isOverTarget = !0, v.target = $.currentTarget, v.pointerType = vr($.nativeEvent) ? "virtual" : "mouse", !o && !u && Le($.currentTarget), S($, v.pointerType) && $.stopPropagation(), g(ne($.currentTarget), "mouseup", w, !1);
|
|
1472
|
-
},
|
|
1472
|
+
}, A.onMouseEnter = ($) => {
|
|
1473
1473
|
if (!$.currentTarget.contains($.target)) return;
|
|
1474
1474
|
let F = !0;
|
|
1475
1475
|
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F = S($, v.pointerType)), F && $.stopPropagation();
|
|
1476
|
-
},
|
|
1476
|
+
}, A.onMouseLeave = ($) => {
|
|
1477
1477
|
if (!$.currentTarget.contains($.target)) return;
|
|
1478
1478
|
let F = !0;
|
|
1479
1479
|
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !1, F = x($, v.pointerType, !1), D($)), F && $.stopPropagation();
|
|
1480
|
-
},
|
|
1480
|
+
}, A.onMouseUp = ($) => {
|
|
1481
1481
|
$.currentTarget.contains($.target) && !v.ignoreEmulatedMouseEvents && $.button === 0 && k($, v.pointerType || "mouse");
|
|
1482
1482
|
};
|
|
1483
1483
|
let w = ($) => {
|
|
@@ -1489,12 +1489,12 @@ function ze(t) {
|
|
|
1489
1489
|
v.target && yt($, v.target) && v.pointerType != null ? x(Fe(v.target, $), v.pointerType) : v.target && v.isOverTarget && v.pointerType != null && x(Fe(v.target, $), v.pointerType, !1), v.isOverTarget = !1;
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
|
|
1492
|
+
A.onTouchStart = ($) => {
|
|
1493
1493
|
if (!$.currentTarget.contains($.target)) return;
|
|
1494
1494
|
let F = Pd($.nativeEvent);
|
|
1495
1495
|
if (!F) return;
|
|
1496
1496
|
v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = $.currentTarget, v.pointerType = "touch", !o && !u && Le($.currentTarget), s || Tl(v.target), S(Ye(v.target, $), v.pointerType) && $.stopPropagation(), g(Pe($.currentTarget), "scroll", M, !0);
|
|
1497
|
-
},
|
|
1497
|
+
}, A.onTouchMove = ($) => {
|
|
1498
1498
|
if (!$.currentTarget.contains($.target)) return;
|
|
1499
1499
|
if (!v.isPressed) {
|
|
1500
1500
|
$.stopPropagation();
|
|
@@ -1502,15 +1502,15 @@ function ze(t) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
let F = Kl($.nativeEvent, v.activePointerId), T = !0;
|
|
1504
1504
|
F && yt(F, $.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, T = S(Ye(v.target, $), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, T = x(Ye(v.target, $), v.pointerType, !1), D(Ye(v.target, $))), T && $.stopPropagation();
|
|
1505
|
-
},
|
|
1505
|
+
}, A.onTouchEnd = ($) => {
|
|
1506
1506
|
if (!$.currentTarget.contains($.target)) return;
|
|
1507
1507
|
if (!v.isPressed) {
|
|
1508
1508
|
$.stopPropagation();
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
1511
|
let F = Kl($.nativeEvent, v.activePointerId), T = !0;
|
|
1512
|
-
F && yt(F, $.currentTarget) && v.pointerType != null ? (k(Ye(v.target, $), v.pointerType), T = x(Ye(v.target, $), v.pointerType)) : v.isOverTarget && v.pointerType != null && (T = x(Ye(v.target, $), v.pointerType, !1)), T && $.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !s &&
|
|
1513
|
-
},
|
|
1512
|
+
F && yt(F, $.currentTarget) && v.pointerType != null ? (k(Ye(v.target, $), v.pointerType), T = x(Ye(v.target, $), v.pointerType)) : v.isOverTarget && v.pointerType != null && (T = x(Ye(v.target, $), v.pointerType, !1)), T && $.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !s && ln(v.target), E();
|
|
1513
|
+
}, A.onTouchCancel = ($) => {
|
|
1514
1514
|
$.currentTarget.contains($.target) && ($.stopPropagation(), v.isPressed && C(Ye(v.target, $)));
|
|
1515
1515
|
};
|
|
1516
1516
|
let M = ($) => {
|
|
@@ -1522,11 +1522,11 @@ function ze(t) {
|
|
|
1522
1522
|
altKey: !1
|
|
1523
1523
|
});
|
|
1524
1524
|
};
|
|
1525
|
-
|
|
1525
|
+
A.onDragStart = ($) => {
|
|
1526
1526
|
$.currentTarget.contains($.target) && C($);
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
|
-
return
|
|
1529
|
+
return A;
|
|
1530
1530
|
}, [
|
|
1531
1531
|
g,
|
|
1532
1532
|
o,
|
|
@@ -1541,7 +1541,7 @@ function ze(t) {
|
|
|
1541
1541
|
]);
|
|
1542
1542
|
return L(() => () => {
|
|
1543
1543
|
var v;
|
|
1544
|
-
s ||
|
|
1544
|
+
s || ln((v = y.current.target) !== null && v !== void 0 ? v : void 0);
|
|
1545
1545
|
}, [
|
|
1546
1546
|
s
|
|
1547
1547
|
]), {
|
|
@@ -1632,9 +1632,9 @@ const Td = /* @__PURE__ */ new Set([
|
|
|
1632
1632
|
function Mi(t, e) {
|
|
1633
1633
|
return t.type === "checkbox" || t.type === "radio" ? e === " " : Td.has(t.type);
|
|
1634
1634
|
}
|
|
1635
|
-
const
|
|
1635
|
+
const Bd = /* @__PURE__ */ B.forwardRef(({ children: t, ...e }, n) => {
|
|
1636
1636
|
let r = I(!1), l = Y(Vt);
|
|
1637
|
-
n =
|
|
1637
|
+
n = Pn(n || (l == null ? void 0 : l.ref));
|
|
1638
1638
|
let i = H(l || {}, {
|
|
1639
1639
|
...e,
|
|
1640
1640
|
ref: n,
|
|
@@ -1644,16 +1644,16 @@ const Ad = /* @__PURE__ */ A.forwardRef(({ children: t, ...e }, n) => {
|
|
|
1644
1644
|
});
|
|
1645
1645
|
return jr(l, n), L(() => {
|
|
1646
1646
|
r.current || (console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), r.current = !0);
|
|
1647
|
-
}, []), /* @__PURE__ */
|
|
1647
|
+
}, []), /* @__PURE__ */ B.createElement(Vt.Provider, {
|
|
1648
1648
|
value: i
|
|
1649
1649
|
}, t);
|
|
1650
1650
|
});
|
|
1651
|
-
function
|
|
1651
|
+
function Ad({ children: t }) {
|
|
1652
1652
|
let e = V(() => ({
|
|
1653
1653
|
register: () => {
|
|
1654
1654
|
}
|
|
1655
1655
|
}), []);
|
|
1656
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ B.createElement(Vt.Provider, {
|
|
1657
1657
|
value: e
|
|
1658
1658
|
}, t);
|
|
1659
1659
|
}
|
|
@@ -1721,7 +1721,7 @@ function Ii(t) {
|
|
|
1721
1721
|
n
|
|
1722
1722
|
]);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Tn(t) {
|
|
1725
1725
|
let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: l } = t;
|
|
1726
1726
|
const i = X((u) => {
|
|
1727
1727
|
if (u.target === u.currentTarget)
|
|
@@ -1755,7 +1755,7 @@ function Bn(t, e) {
|
|
|
1755
1755
|
function Id(t) {
|
|
1756
1756
|
return !(t.metaKey || !tt() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function vn(t) {
|
|
1759
1759
|
st = !0, Id(t) && (je = "keyboard", Bn("keyboard", t));
|
|
1760
1760
|
}
|
|
1761
1761
|
function we(t) {
|
|
@@ -1770,13 +1770,13 @@ function _i(t) {
|
|
|
1770
1770
|
function Ri() {
|
|
1771
1771
|
st = !1, br = !0;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function hn(t) {
|
|
1774
1774
|
if (typeof window > "u" || zt.get(Pe(t))) return;
|
|
1775
1775
|
const e = Pe(t), n = ne(t);
|
|
1776
1776
|
let r = e.HTMLElement.prototype.focus;
|
|
1777
1777
|
e.HTMLElement.prototype.focus = function() {
|
|
1778
1778
|
st = !0, r.apply(this, arguments);
|
|
1779
|
-
}, n.addEventListener("keydown",
|
|
1779
|
+
}, n.addEventListener("keydown", vn, !0), n.addEventListener("keyup", vn, !0), n.addEventListener("click", Fi, !0), e.addEventListener("focus", _i, !0), e.addEventListener("blur", Ri, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", we, !0), n.addEventListener("pointermove", we, !0), n.addEventListener("pointerup", we, !0)) : (n.addEventListener("mousedown", we, !0), n.addEventListener("mousemove", we, !0), n.addEventListener("mouseup", we, !0)), e.addEventListener("beforeunload", () => {
|
|
1780
1780
|
Ni(t);
|
|
1781
1781
|
}, {
|
|
1782
1782
|
once: !0
|
|
@@ -1786,27 +1786,27 @@ function mn(t) {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
const Ni = (t, e) => {
|
|
1788
1788
|
const n = Pe(t), r = ne(t);
|
|
1789
|
-
e && r.removeEventListener("DOMContentLoaded", e), zt.has(n) && (n.HTMLElement.prototype.focus = zt.get(n).focus, r.removeEventListener("keydown",
|
|
1789
|
+
e && r.removeEventListener("DOMContentLoaded", e), zt.has(n) && (n.HTMLElement.prototype.focus = zt.get(n).focus, r.removeEventListener("keydown", vn, !0), r.removeEventListener("keyup", vn, !0), r.removeEventListener("click", Fi, !0), n.removeEventListener("focus", _i, !0), n.removeEventListener("blur", Ri, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", we, !0), r.removeEventListener("pointermove", we, !0), r.removeEventListener("pointerup", we, !0)) : (r.removeEventListener("mousedown", we, !0), r.removeEventListener("mousemove", we, !0), r.removeEventListener("mouseup", we, !0)), zt.delete(n));
|
|
1790
1790
|
};
|
|
1791
1791
|
function Fd(t) {
|
|
1792
1792
|
const e = ne(t);
|
|
1793
1793
|
let n;
|
|
1794
|
-
return e.readyState !== "loading" ?
|
|
1795
|
-
|
|
1794
|
+
return e.readyState !== "loading" ? hn(t) : (n = () => {
|
|
1795
|
+
hn(t);
|
|
1796
1796
|
}, e.addEventListener("DOMContentLoaded", n)), () => Ni(t, n);
|
|
1797
1797
|
}
|
|
1798
1798
|
typeof document < "u" && Fd();
|
|
1799
1799
|
function ct() {
|
|
1800
1800
|
return je !== "pointer";
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function mn() {
|
|
1803
1803
|
return je;
|
|
1804
1804
|
}
|
|
1805
1805
|
function Li(t) {
|
|
1806
1806
|
je = t, Bn(t, null);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Oi() {
|
|
1809
|
-
|
|
1809
|
+
hn();
|
|
1810
1810
|
let [t, e] = z(je);
|
|
1811
1811
|
return L(() => {
|
|
1812
1812
|
let n = () => {
|
|
@@ -1834,7 +1834,7 @@ function Rd(t, e, n) {
|
|
|
1834
1834
|
return t = t || (n == null ? void 0 : n.target) instanceof l && !_d.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 && !Md[n.key]);
|
|
1835
1835
|
}
|
|
1836
1836
|
function Nd(t, e, n) {
|
|
1837
|
-
|
|
1837
|
+
hn(), L(() => {
|
|
1838
1838
|
let r = (l, i) => {
|
|
1839
1839
|
Rd(!!(n != null && n.isTextInput), l, i) && t(ct());
|
|
1840
1840
|
};
|
|
@@ -1872,10 +1872,10 @@ function qt(t) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
|
-
let
|
|
1875
|
+
let bn = !1, Jn = 0;
|
|
1876
1876
|
function gr() {
|
|
1877
|
-
|
|
1878
|
-
|
|
1877
|
+
bn = !0, setTimeout(() => {
|
|
1878
|
+
bn = !1;
|
|
1879
1879
|
}, 50);
|
|
1880
1880
|
}
|
|
1881
1881
|
function Il(t) {
|
|
@@ -1916,13 +1916,13 @@ function kt(t) {
|
|
|
1916
1916
|
}), n && n(!1), o(!1);
|
|
1917
1917
|
}, f = {};
|
|
1918
1918
|
return typeof PointerEvent < "u" ? (f.onPointerEnter = (p) => {
|
|
1919
|
-
|
|
1919
|
+
bn && p.pointerType === "mouse" || s(p, p.pointerType);
|
|
1920
1920
|
}, f.onPointerLeave = (p) => {
|
|
1921
1921
|
!l && p.currentTarget.contains(p.target) && d(p, p.pointerType);
|
|
1922
1922
|
}) : (f.onTouchStart = () => {
|
|
1923
1923
|
a.ignoreEmulatedMouseEvents = !0;
|
|
1924
1924
|
}, f.onMouseEnter = (p) => {
|
|
1925
|
-
!a.ignoreEmulatedMouseEvents && !
|
|
1925
|
+
!a.ignoreEmulatedMouseEvents && !bn && s(p, "mouse"), a.ignoreEmulatedMouseEvents = !1;
|
|
1926
1926
|
}, f.onMouseLeave = (p) => {
|
|
1927
1927
|
!l && p.currentTarget.contains(p.target) && d(p, "mouse");
|
|
1928
1928
|
}), {
|
|
@@ -1952,7 +1952,7 @@ function zi(t) {
|
|
|
1952
1952
|
isPointerDown: !1,
|
|
1953
1953
|
ignoreEmulatedMouseEvents: !1
|
|
1954
1954
|
}), o = oe((u) => {
|
|
1955
|
-
n &&
|
|
1955
|
+
n && un(u, e) && (l && l(u), i.current.isPointerDown = !0);
|
|
1956
1956
|
}), a = oe((u) => {
|
|
1957
1957
|
n && n(u);
|
|
1958
1958
|
});
|
|
@@ -1962,16 +1962,16 @@ function zi(t) {
|
|
|
1962
1962
|
const c = e.current, s = ne(c);
|
|
1963
1963
|
if (typeof PointerEvent < "u") {
|
|
1964
1964
|
let d = (f) => {
|
|
1965
|
-
u.isPointerDown &&
|
|
1965
|
+
u.isPointerDown && un(f, e) && a(f), u.isPointerDown = !1;
|
|
1966
1966
|
};
|
|
1967
1967
|
return s.addEventListener("pointerdown", o, !0), s.addEventListener("pointerup", d, !0), () => {
|
|
1968
1968
|
s.removeEventListener("pointerdown", o, !0), s.removeEventListener("pointerup", d, !0);
|
|
1969
1969
|
};
|
|
1970
1970
|
} else {
|
|
1971
1971
|
let d = (p) => {
|
|
1972
|
-
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown &&
|
|
1972
|
+
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && un(p, e) && a(p), u.isPointerDown = !1;
|
|
1973
1973
|
}, f = (p) => {
|
|
1974
|
-
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown &&
|
|
1974
|
+
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && un(p, e) && a(p), u.isPointerDown = !1;
|
|
1975
1975
|
};
|
|
1976
1976
|
return s.addEventListener("mousedown", o, !0), s.addEventListener("mouseup", d, !0), s.addEventListener("touchstart", o, !0), s.addEventListener("touchend", f, !0), () => {
|
|
1977
1977
|
s.removeEventListener("mousedown", o, !0), s.removeEventListener("mouseup", d, !0), s.removeEventListener("touchstart", o, !0), s.removeEventListener("touchend", f, !0);
|
|
@@ -1984,7 +1984,7 @@ function zi(t) {
|
|
|
1984
1984
|
a
|
|
1985
1985
|
]);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function un(t, e) {
|
|
1988
1988
|
if (t.button > 0) return !1;
|
|
1989
1989
|
if (t.target) {
|
|
1990
1990
|
const n = t.target.ownerDocument;
|
|
@@ -2060,14 +2060,14 @@ function Vi(t) {
|
|
|
2060
2060
|
type: "longpressend"
|
|
2061
2061
|
});
|
|
2062
2062
|
}
|
|
2063
|
-
}), d =
|
|
2063
|
+
}), d = Dn(l && !e ? o : void 0);
|
|
2064
2064
|
return {
|
|
2065
2065
|
longPressProps: H(s, d)
|
|
2066
2066
|
};
|
|
2067
2067
|
}
|
|
2068
2068
|
function ve(t) {
|
|
2069
2069
|
const e = ne(t);
|
|
2070
|
-
if (
|
|
2070
|
+
if (mn() === "virtual") {
|
|
2071
2071
|
let n = e.activeElement;
|
|
2072
2072
|
Pi(() => {
|
|
2073
2073
|
e.activeElement === n && t.isConnected && Le(t);
|
|
@@ -2092,9 +2092,9 @@ function jd(t, e) {
|
|
|
2092
2092
|
function Hi(t, e) {
|
|
2093
2093
|
return t.nodeName !== "#comment" && zd(t) && jd(t, e) && (!t.parentElement || Hi(t.parentElement, t));
|
|
2094
2094
|
}
|
|
2095
|
-
const _l = /* @__PURE__ */
|
|
2095
|
+
const _l = /* @__PURE__ */ B.createContext(null), yr = "react-aria-focus-scope-restore";
|
|
2096
2096
|
let te = null;
|
|
2097
|
-
function
|
|
2097
|
+
function An(t) {
|
|
2098
2098
|
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = I(null), o = I(null), a = I([]), { parentNode: u } = Y(_l) || {}, c = V(() => new xr({
|
|
2099
2099
|
scopeRef: a
|
|
2100
2100
|
}), [
|
|
@@ -2102,7 +2102,7 @@ function Xt(t) {
|
|
|
2102
2102
|
]);
|
|
2103
2103
|
J(() => {
|
|
2104
2104
|
let f = u || se.root;
|
|
2105
|
-
if (se.getTreeNode(f.scopeRef) && te &&
|
|
2105
|
+
if (se.getTreeNode(f.scopeRef) && te && !yn(te, f.scopeRef)) {
|
|
2106
2106
|
let p = se.getTreeNode(te);
|
|
2107
2107
|
p && (f = p);
|
|
2108
2108
|
}
|
|
@@ -2137,7 +2137,7 @@ function Xt(t) {
|
|
|
2137
2137
|
]), J(() => () => {
|
|
2138
2138
|
var f, p, m;
|
|
2139
2139
|
let y = (m = (p = se.getTreeNode(a)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
|
|
2140
|
-
(a === te ||
|
|
2140
|
+
(a === te || yn(a, te)) && (!y || se.getTreeNode(y)) && (te = y), se.removeTreeNode(a);
|
|
2141
2141
|
}, [
|
|
2142
2142
|
a
|
|
2143
2143
|
]);
|
|
@@ -2148,13 +2148,13 @@ function Xt(t) {
|
|
|
2148
2148
|
c,
|
|
2149
2149
|
s
|
|
2150
2150
|
]);
|
|
2151
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ B.createElement(_l.Provider, {
|
|
2152
2152
|
value: d
|
|
2153
|
-
}, /* @__PURE__ */
|
|
2153
|
+
}, /* @__PURE__ */ B.createElement("span", {
|
|
2154
2154
|
"data-focus-scope-start": !0,
|
|
2155
2155
|
hidden: !0,
|
|
2156
2156
|
ref: i
|
|
2157
|
-
}), e, /* @__PURE__ */
|
|
2157
|
+
}), e, /* @__PURE__ */ B.createElement("span", {
|
|
2158
2158
|
"data-focus-scope-end": !0,
|
|
2159
2159
|
hidden: !0,
|
|
2160
2160
|
ref: o
|
|
@@ -2249,10 +2249,10 @@ function Ud(t, e) {
|
|
|
2249
2249
|
let m = c.shiftKey ? p.previousNode() : p.nextNode();
|
|
2250
2250
|
m || (p.currentNode = c.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, m = c.shiftKey ? p.previousNode() : p.nextNode()), c.preventDefault(), m && Oe(m, !0);
|
|
2251
2251
|
}, a = (c) => {
|
|
2252
|
-
(!te ||
|
|
2252
|
+
(!te || yn(te, t)) && de(c.target, t.current) ? (te = t, n.current = c.target) : Lt(t) && !gn(c.target, t) ? n.current ? n.current.focus() : te && te.current && $r(te.current) : Lt(t) && (n.current = c.target);
|
|
2253
2253
|
}, u = (c) => {
|
|
2254
2254
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2255
|
-
if (i.activeElement && Lt(t) && !
|
|
2255
|
+
if (i.activeElement && Lt(t) && !gn(i.activeElement, t))
|
|
2256
2256
|
if (te = t, i.body.contains(c.target)) {
|
|
2257
2257
|
var s;
|
|
2258
2258
|
n.current = c.target, (s = n.current) === null || s === void 0 || s.focus();
|
|
@@ -2272,21 +2272,21 @@ function Ud(t, e) {
|
|
|
2272
2272
|
]);
|
|
2273
2273
|
}
|
|
2274
2274
|
function Wi(t) {
|
|
2275
|
-
return
|
|
2275
|
+
return gn(t);
|
|
2276
2276
|
}
|
|
2277
2277
|
function de(t, e) {
|
|
2278
2278
|
return !t || !e ? !1 : e.some((n) => n.contains(t));
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function gn(t, e = null) {
|
|
2281
2281
|
if (t instanceof Element && t.closest("[data-react-aria-top-layer]")) return !0;
|
|
2282
2282
|
for (let { scopeRef: n } of se.traverse(se.getTreeNode(e)))
|
|
2283
2283
|
if (n && de(t, n.current)) return !0;
|
|
2284
2284
|
return !1;
|
|
2285
2285
|
}
|
|
2286
2286
|
function Gd(t) {
|
|
2287
|
-
return
|
|
2287
|
+
return gn(t, te);
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function yn(t, e) {
|
|
2290
2290
|
var n;
|
|
2291
2291
|
let r = (n = se.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
|
|
2292
2292
|
for (; r; ) {
|
|
@@ -2319,7 +2319,7 @@ function $r(t, e = !0) {
|
|
|
2319
2319
|
Oe(Ui(t, e));
|
|
2320
2320
|
}
|
|
2321
2321
|
function Yd(t, e) {
|
|
2322
|
-
const n =
|
|
2322
|
+
const n = B.useRef(e);
|
|
2323
2323
|
L(() => {
|
|
2324
2324
|
if (n.current) {
|
|
2325
2325
|
te = t;
|
|
@@ -2364,7 +2364,7 @@ function Zd(t, e, n) {
|
|
|
2364
2364
|
const i = ne(l ? l[0] : void 0);
|
|
2365
2365
|
if (!e || n) return;
|
|
2366
2366
|
let o = () => {
|
|
2367
|
-
(!te ||
|
|
2367
|
+
(!te || yn(te, t)) && de(i.activeElement, t.current) && (te = t);
|
|
2368
2368
|
};
|
|
2369
2369
|
return i.addEventListener("focusin", o, !1), l == null || l.forEach((a) => a.addEventListener("focusin", o, !1)), () => {
|
|
2370
2370
|
i.removeEventListener("focusin", o, !1), l == null || l.forEach((a) => a.removeEventListener("focusin", o, !1));
|
|
@@ -2513,7 +2513,7 @@ class xr {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
2515
|
let se = new Wr();
|
|
2516
|
-
function
|
|
2516
|
+
function Xt(t = {}) {
|
|
2517
2517
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = I({
|
|
2518
2518
|
isFocused: !1,
|
|
2519
2519
|
isFocusVisible: e || ct()
|
|
@@ -2527,7 +2527,7 @@ function Zt(t = {}) {
|
|
|
2527
2527
|
}, [], {
|
|
2528
2528
|
isTextInput: n
|
|
2529
2529
|
});
|
|
2530
|
-
let { focusProps: d } =
|
|
2530
|
+
let { focusProps: d } = Tn({
|
|
2531
2531
|
isDisabled: r,
|
|
2532
2532
|
onFocusChange: s
|
|
2533
2533
|
}), { focusWithinProps: f } = qt({
|
|
@@ -2540,7 +2540,7 @@ function Zt(t = {}) {
|
|
|
2540
2540
|
focusProps: r ? f : d
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
|
-
let Gi = /* @__PURE__ */
|
|
2543
|
+
let Gi = /* @__PURE__ */ B.createContext(null);
|
|
2544
2544
|
function Jd(t) {
|
|
2545
2545
|
let e = Y(Gi) || {};
|
|
2546
2546
|
jr(e, t);
|
|
@@ -2548,17 +2548,17 @@ function Jd(t) {
|
|
|
2548
2548
|
return r;
|
|
2549
2549
|
}
|
|
2550
2550
|
function Qd(t, e) {
|
|
2551
|
-
let { children: n, ...r } = t, l =
|
|
2551
|
+
let { children: n, ...r } = t, l = Pn(e), i = {
|
|
2552
2552
|
...r,
|
|
2553
2553
|
ref: l
|
|
2554
2554
|
};
|
|
2555
|
-
return /* @__PURE__ */
|
|
2555
|
+
return /* @__PURE__ */ B.createElement(Gi.Provider, {
|
|
2556
2556
|
value: i
|
|
2557
2557
|
}, n);
|
|
2558
2558
|
}
|
|
2559
|
-
let ef = /* @__PURE__ */
|
|
2559
|
+
let ef = /* @__PURE__ */ B.forwardRef(Qd);
|
|
2560
2560
|
function Tt(t, e) {
|
|
2561
|
-
let { focusProps: n } =
|
|
2561
|
+
let { focusProps: n } = Tn(t), { keyboardProps: r } = ji(t), l = H(n, r), i = Jd(e), o = t.isDisabled ? {} : i, a = I(t.autoFocus);
|
|
2562
2562
|
return L(() => {
|
|
2563
2563
|
a.current && e.current && ve(e.current), a.current = !1;
|
|
2564
2564
|
}, [
|
|
@@ -2668,7 +2668,7 @@ function af() {
|
|
|
2668
2668
|
direction: "ltr"
|
|
2669
2669
|
} : e;
|
|
2670
2670
|
}
|
|
2671
|
-
const uf = /* @__PURE__ */
|
|
2671
|
+
const uf = /* @__PURE__ */ B.createContext(null);
|
|
2672
2672
|
function He() {
|
|
2673
2673
|
let t = af();
|
|
2674
2674
|
return Y(uf) || t;
|
|
@@ -2827,10 +2827,10 @@ function In(t, e) {
|
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
2829
|
const qi = 7e3;
|
|
2830
|
-
let
|
|
2831
|
-
function
|
|
2832
|
-
|
|
2833
|
-
|
|
2830
|
+
let Ae = null;
|
|
2831
|
+
function $n(t, e = "assertive", n = qi) {
|
|
2832
|
+
Ae ? Ae.announce(t, e, n) : (Ae = new mf(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ae.announce(t, e, n) : setTimeout(() => {
|
|
2833
|
+
Ae != null && Ae.isAttached() && (Ae == null || Ae.announce(t, e, n));
|
|
2834
2834
|
}, 100));
|
|
2835
2835
|
}
|
|
2836
2836
|
class mf {
|
|
@@ -3052,7 +3052,7 @@ function Sf(t, e, n) {
|
|
|
3052
3052
|
}), { focusableProps: x } = Tt(t, n), k = H(y, x), C = fe(t, {
|
|
3053
3053
|
labelable: !0
|
|
3054
3054
|
});
|
|
3055
|
-
return
|
|
3055
|
+
return kn(n, e.isSelected, e.setSelected), {
|
|
3056
3056
|
labelProps: H(E, {
|
|
3057
3057
|
onClick: (D) => D.preventDefault()
|
|
3058
3058
|
}),
|
|
@@ -3170,7 +3170,7 @@ function Qi(t = {}) {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
function qr(t) {
|
|
3172
3172
|
let { children: e, elementType: n = "div", isFocusable: r, style: l, ...i } = t, { visuallyHiddenProps: o } = Qi(t);
|
|
3173
|
-
return /* @__PURE__ */
|
|
3173
|
+
return /* @__PURE__ */ B.createElement(n, H(i, o), e);
|
|
3174
3174
|
}
|
|
3175
3175
|
function eo(t, e) {
|
|
3176
3176
|
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: l = !1, isReadOnly: i = !1, type: o = "text", validationBehavior: a = "aria" } = t, [u, c] = rt(t.value, t.defaultValue || "", t.onChange), { focusableProps: s } = Tt(t, e), d = Gr({
|
|
@@ -3187,7 +3187,7 @@ function eo(t, e) {
|
|
|
3187
3187
|
type: o,
|
|
3188
3188
|
pattern: t.pattern
|
|
3189
3189
|
};
|
|
3190
|
-
return
|
|
3190
|
+
return kn(e, u, c), Ur(t, d, e), L(() => {
|
|
3191
3191
|
if (e.current instanceof Pe(e.current).HTMLTextAreaElement) {
|
|
3192
3192
|
let C = e.current;
|
|
3193
3193
|
Object.defineProperty(C, "defaultValue", {
|
|
@@ -3248,7 +3248,7 @@ const Ke = {
|
|
|
3248
3248
|
bottom: "top",
|
|
3249
3249
|
left: "left",
|
|
3250
3250
|
right: "left"
|
|
3251
|
-
},
|
|
3251
|
+
}, xn = {
|
|
3252
3252
|
top: "bottom",
|
|
3253
3253
|
bottom: "top",
|
|
3254
3254
|
left: "right",
|
|
@@ -3262,7 +3262,7 @@ const Ke = {
|
|
|
3262
3262
|
}, to = {
|
|
3263
3263
|
width: "totalWidth",
|
|
3264
3264
|
height: "totalHeight"
|
|
3265
|
-
},
|
|
3265
|
+
}, sn = {};
|
|
3266
3266
|
let be = typeof document < "u" && window.visualViewport;
|
|
3267
3267
|
function Wl(t) {
|
|
3268
3268
|
let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = (be == null ? void 0 : be.scale) > 1;
|
|
@@ -3307,18 +3307,18 @@ function Df(t) {
|
|
|
3307
3307
|
};
|
|
3308
3308
|
}
|
|
3309
3309
|
function Gl(t) {
|
|
3310
|
-
if (
|
|
3310
|
+
if (sn[t]) return sn[t];
|
|
3311
3311
|
let [e, n] = t.split(" "), r = Ke[e] || "right", l = wf[r];
|
|
3312
3312
|
Ke[n] || (n = "center");
|
|
3313
3313
|
let i = Cr[r], o = Cr[l];
|
|
3314
|
-
return
|
|
3314
|
+
return sn[t] = {
|
|
3315
3315
|
placement: e,
|
|
3316
3316
|
crossPlacement: n,
|
|
3317
3317
|
axis: r,
|
|
3318
3318
|
crossAxis: l,
|
|
3319
3319
|
size: i,
|
|
3320
3320
|
crossSize: o
|
|
3321
|
-
},
|
|
3321
|
+
}, sn[t];
|
|
3322
3322
|
}
|
|
3323
3323
|
function tr(t, e, n, r, l, i, o, a, u, c) {
|
|
3324
3324
|
let { placement: s, crossPlacement: d, axis: f, crossAxis: p, size: m, crossSize: y } = r, g = {};
|
|
@@ -3326,7 +3326,7 @@ function tr(t, e, n, r, l, i, o, a, u, c) {
|
|
|
3326
3326
|
const E = t[p] - n[y] + u + c, S = t[p] + t[y] - u - c;
|
|
3327
3327
|
if (g[p] = hr(g[p], E, S), s === f) {
|
|
3328
3328
|
const x = a ? o[m] : e[to[m]];
|
|
3329
|
-
g[
|
|
3329
|
+
g[xn[f]] = Math.floor(x - t[f] + l);
|
|
3330
3330
|
} else g[f] = Math.floor(t[f] + t[m] + l);
|
|
3331
3331
|
return g;
|
|
3332
3332
|
}
|
|
@@ -3340,19 +3340,19 @@ function kf(t, e, n, r, l, i, o, a) {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
function Yl(t, e, n, r, l, i) {
|
|
3342
3342
|
let { placement: o, axis: a, size: u } = i;
|
|
3343
|
-
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[
|
|
3343
|
+
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[xn[a]] - l) : Math.max(0, t[u] + t[a] + t.scroll[a] - e[a] - n[a] - n[u] - r[a] - r[xn[a]] - l);
|
|
3344
3344
|
}
|
|
3345
3345
|
function Tf(t, e, n, r, l, i, o, a, u, c, s, d, f, p, m, y) {
|
|
3346
3346
|
let g = Gl(t), { size: E, crossAxis: S, crossSize: x, placement: k, crossPlacement: C } = g, D = tr(e, a, n, g, s, d, c, f, m, y), _ = s, v = Yl(a, c, e, l, i + s, g);
|
|
3347
3347
|
if (o && r[E] > v) {
|
|
3348
|
-
let $e = Gl(`${
|
|
3349
|
-
Yl(a, c, e, l, i + s, $e) > v && (g = $e, D =
|
|
3348
|
+
let $e = Gl(`${xn[k]} ${C}`), Be = tr(e, a, n, $e, s, d, c, f, m, y);
|
|
3349
|
+
Yl(a, c, e, l, i + s, $e) > v && (g = $e, D = Be, _ = s);
|
|
3350
3350
|
}
|
|
3351
|
-
let
|
|
3352
|
-
g.axis === "top" ? g.placement === "top" ?
|
|
3351
|
+
let A = "bottom";
|
|
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"));
|
|
3353
3353
|
let P = Ul(S, D[S], n[x], a, u, i, c);
|
|
3354
3354
|
D[S] += P;
|
|
3355
|
-
let w = kf(D, a, c, f, l, i, n.height,
|
|
3355
|
+
let w = kf(D, a, c, f, l, i, n.height, A);
|
|
3356
3356
|
p && p < w && (w = p), n.height = Math.min(n.height, w), D = tr(e, a, n, g, _, d, c, f, m, y), P = Ul(S, D[S], n[x], a, u, i, c), D[S] += P;
|
|
3357
3357
|
let M = {}, $ = e[S] + 0.5 * e[x] - D[S] - l[Ke[S]];
|
|
3358
3358
|
const F = m / 2 + y, T = Ke[S] === "left" ? l.left + l.right : l.top + l.bottom, U = n[x] - T - m / 2 - y, N = e[S] + m / 2 - (D[S] + l[Ke[S]]), ce = e[S] + e[x] - m / 2 - (D[S] + l[Ke[S]]), ge = hr($, N, ce);
|
|
@@ -3364,13 +3364,13 @@ function Tf(t, e, n, r, l, i, o, a, u, c, s, d, f, p, m, y) {
|
|
|
3364
3364
|
placement: g.placement
|
|
3365
3365
|
};
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3368
|
-
let { placement: e, targetNode: n, overlayNode: r, scrollNode: l, padding: i, shouldFlip: o, boundaryElement: a, offset: u, crossOffset: c, maxHeight: s, arrowSize: d = 0, arrowBoundaryOffset: f = 0 } = t, p = r instanceof HTMLElement ?
|
|
3367
|
+
function Bf(t) {
|
|
3368
|
+
let { placement: e, targetNode: n, overlayNode: r, scrollNode: l, padding: i, shouldFlip: o, boundaryElement: a, offset: u, crossOffset: c, maxHeight: s, arrowSize: d = 0, arrowBoundaryOffset: f = 0 } = t, p = r instanceof HTMLElement ? Af(r) : document.documentElement, m = p === document.documentElement;
|
|
3369
3369
|
const y = window.getComputedStyle(p).position;
|
|
3370
3370
|
let g = !!y && y !== "static", E = m ? Dt(n) : ql(n, p);
|
|
3371
3371
|
if (!m) {
|
|
3372
|
-
let { marginTop: v, marginLeft:
|
|
3373
|
-
E.top += parseInt(v, 10) || 0, E.left += parseInt(
|
|
3372
|
+
let { marginTop: v, marginLeft: A } = window.getComputedStyle(n);
|
|
3373
|
+
E.top += parseInt(v, 10) || 0, E.left += parseInt(A, 10) || 0;
|
|
3374
3374
|
}
|
|
3375
3375
|
let S = Dt(r), x = Df(r);
|
|
3376
3376
|
S.width += x.left + x.right, S.height += x.top + x.bottom;
|
|
@@ -3403,7 +3403,7 @@ function ql(t, e) {
|
|
|
3403
3403
|
}
|
|
3404
3404
|
return r.top -= parseInt(n.marginTop, 10) || 0, r.left -= parseInt(n.marginLeft, 10) || 0, r;
|
|
3405
3405
|
}
|
|
3406
|
-
function
|
|
3406
|
+
function Af(t) {
|
|
3407
3407
|
let e = t.offsetParent;
|
|
3408
3408
|
if (e && e === document.body && window.getComputedStyle(e).position === "static" && !Xl(e) && (e = document.documentElement), e == null)
|
|
3409
3409
|
for (e = t.parentElement; e && !Xl(e); ) e = e.parentElement;
|
|
@@ -3467,13 +3467,13 @@ function ro(t) {
|
|
|
3467
3467
|
]);
|
|
3468
3468
|
let C = X(() => {
|
|
3469
3469
|
if (f === !1 || !p || !l.current || !r.current || !c || (ie == null ? void 0 : ie.scale) !== k.current) return;
|
|
3470
|
-
let
|
|
3470
|
+
let A = null;
|
|
3471
3471
|
if (i.current && i.current.contains(document.activeElement)) {
|
|
3472
3472
|
let F = document.activeElement.getBoundingClientRect(), T = i.current.getBoundingClientRect();
|
|
3473
|
-
|
|
3473
|
+
A = {
|
|
3474
3474
|
type: "top",
|
|
3475
3475
|
offset: F.top - T.top
|
|
3476
|
-
},
|
|
3476
|
+
}, A.offset > T.height / 2 && (A.type = "bottom", A.offset = F.bottom - T.bottom);
|
|
3477
3477
|
}
|
|
3478
3478
|
let P = l.current;
|
|
3479
3479
|
if (!y && l.current) {
|
|
@@ -3482,7 +3482,7 @@ function ro(t) {
|
|
|
3482
3482
|
var M;
|
|
3483
3483
|
P.style.maxHeight = ((M = (w = window.visualViewport) === null || w === void 0 ? void 0 : w.height) !== null && M !== void 0 ? M : window.innerHeight) + "px";
|
|
3484
3484
|
}
|
|
3485
|
-
let $ =
|
|
3485
|
+
let $ = Bf({
|
|
3486
3486
|
placement: If(o, e),
|
|
3487
3487
|
overlayNode: l.current,
|
|
3488
3488
|
targetNode: r.current,
|
|
@@ -3496,9 +3496,9 @@ function ro(t) {
|
|
|
3496
3496
|
arrowSize: n,
|
|
3497
3497
|
arrowBoundaryOffset: g
|
|
3498
3498
|
});
|
|
3499
|
-
if (P.style.top = "", P.style.bottom = "", P.style.left = "", P.style.right = "", Object.keys($.position).forEach((F) => P.style[F] = $.position[F] + "px"), P.style.maxHeight = $.maxHeight != null ? $.maxHeight + "px" : void 0,
|
|
3500
|
-
let F = document.activeElement.getBoundingClientRect(), T = i.current.getBoundingClientRect(), U = F[
|
|
3501
|
-
i.current.scrollTop += U -
|
|
3499
|
+
if (P.style.top = "", P.style.bottom = "", P.style.left = "", P.style.right = "", Object.keys($.position).forEach((F) => P.style[F] = $.position[F] + "px"), P.style.maxHeight = $.maxHeight != null ? $.maxHeight + "px" : void 0, A) {
|
|
3500
|
+
let F = document.activeElement.getBoundingClientRect(), T = i.current.getBoundingClientRect(), U = F[A.type] - T[A.type];
|
|
3501
|
+
i.current.scrollTop += U - A.offset;
|
|
3502
3502
|
}
|
|
3503
3503
|
S($);
|
|
3504
3504
|
}, x);
|
|
@@ -3511,8 +3511,8 @@ function ro(t) {
|
|
|
3511
3511
|
});
|
|
3512
3512
|
let D = I(!1);
|
|
3513
3513
|
J(() => {
|
|
3514
|
-
let
|
|
3515
|
-
D.current = !0, clearTimeout(
|
|
3514
|
+
let A, P = () => {
|
|
3515
|
+
D.current = !0, clearTimeout(A), A = setTimeout(() => {
|
|
3516
3516
|
D.current = !1;
|
|
3517
3517
|
}, 500), C();
|
|
3518
3518
|
}, w = () => {
|
|
@@ -3640,13 +3640,13 @@ const nr = typeof document < "u" && window.visualViewport, Ff = /* @__PURE__ */
|
|
|
3640
3640
|
"submit",
|
|
3641
3641
|
"reset"
|
|
3642
3642
|
]);
|
|
3643
|
-
let
|
|
3643
|
+
let cn = 0, rr;
|
|
3644
3644
|
function _f(t = {}) {
|
|
3645
3645
|
let { isDisabled: e } = t;
|
|
3646
3646
|
J(() => {
|
|
3647
3647
|
if (!e)
|
|
3648
|
-
return
|
|
3649
|
-
|
|
3648
|
+
return cn++, cn === 1 && (wn() ? rr = Nf() : rr = Rf()), () => {
|
|
3649
|
+
cn--, cn === 0 && rr();
|
|
3650
3650
|
};
|
|
3651
3651
|
}, [
|
|
3652
3652
|
e
|
|
@@ -3725,7 +3725,7 @@ function Zl(t) {
|
|
|
3725
3725
|
function Jl(t) {
|
|
3726
3726
|
return t instanceof HTMLInputElement && !Ff.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
3727
3727
|
}
|
|
3728
|
-
const wr = /* @__PURE__ */
|
|
3728
|
+
const wr = /* @__PURE__ */ B.createContext(null);
|
|
3729
3729
|
function Lf(t) {
|
|
3730
3730
|
let { children: e } = t, n = Y(wr), [r, l] = z(0), i = V(() => ({
|
|
3731
3731
|
parent: n,
|
|
@@ -3740,7 +3740,7 @@ function Lf(t) {
|
|
|
3740
3740
|
n,
|
|
3741
3741
|
r
|
|
3742
3742
|
]);
|
|
3743
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ B.createElement(wr.Provider, {
|
|
3744
3744
|
value: i
|
|
3745
3745
|
}, e);
|
|
3746
3746
|
}
|
|
@@ -3754,24 +3754,24 @@ function Of() {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
function zf(t) {
|
|
3756
3756
|
let { modalProviderProps: e } = Of();
|
|
3757
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ B.createElement("div", {
|
|
3758
3758
|
"data-overlay-container": !0,
|
|
3759
3759
|
...t,
|
|
3760
3760
|
...e
|
|
3761
3761
|
});
|
|
3762
3762
|
}
|
|
3763
3763
|
function jf(t) {
|
|
3764
|
-
return /* @__PURE__ */
|
|
3764
|
+
return /* @__PURE__ */ B.createElement(Lf, null, /* @__PURE__ */ B.createElement(zf, t));
|
|
3765
3765
|
}
|
|
3766
3766
|
function Vf(t) {
|
|
3767
3767
|
let e = nt(), { portalContainer: n = e ? null : document.body, ...r } = t;
|
|
3768
|
-
if (
|
|
3768
|
+
if (B.useEffect(() => {
|
|
3769
3769
|
if (n != null && n.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
3770
3770
|
}, [
|
|
3771
3771
|
n
|
|
3772
3772
|
]), !n) return null;
|
|
3773
|
-
let l = /* @__PURE__ */
|
|
3774
|
-
return /* @__PURE__ */
|
|
3773
|
+
let l = /* @__PURE__ */ B.createElement(jf, r);
|
|
3774
|
+
return /* @__PURE__ */ Sn.createPortal(l, n);
|
|
3775
3775
|
}
|
|
3776
3776
|
var io = {};
|
|
3777
3777
|
io = {
|
|
@@ -3869,12 +3869,12 @@ var To = {};
|
|
|
3869
3869
|
To = {
|
|
3870
3870
|
dismiss: "Dispensar"
|
|
3871
3871
|
};
|
|
3872
|
-
var Ao = {};
|
|
3873
|
-
Ao = {
|
|
3874
|
-
dismiss: "Revocare"
|
|
3875
|
-
};
|
|
3876
3872
|
var Bo = {};
|
|
3877
3873
|
Bo = {
|
|
3874
|
+
dismiss: "Revocare"
|
|
3875
|
+
};
|
|
3876
|
+
var Ao = {};
|
|
3877
|
+
Ao = {
|
|
3878
3878
|
dismiss: "Пропустить"
|
|
3879
3879
|
};
|
|
3880
3880
|
var Ko = {};
|
|
@@ -3935,8 +3935,8 @@ Oo = {
|
|
|
3935
3935
|
"pl-PL": Do,
|
|
3936
3936
|
"pt-BR": ko,
|
|
3937
3937
|
"pt-PT": To,
|
|
3938
|
-
"ro-RO":
|
|
3939
|
-
"ru-RU":
|
|
3938
|
+
"ro-RO": Bo,
|
|
3939
|
+
"ru-RU": Ao,
|
|
3940
3940
|
"sk-SK": Ko,
|
|
3941
3941
|
"sl-SI": Mo,
|
|
3942
3942
|
"sr-SP": Io,
|
|
@@ -3953,7 +3953,7 @@ function Wf(t) {
|
|
|
3953
3953
|
let { onDismiss: e, ...n } = t, r = ft(Hf(Oo), "@react-aria/overlays"), l = ki(n, r.format("dismiss")), i = () => {
|
|
3954
3954
|
e && e();
|
|
3955
3955
|
};
|
|
3956
|
-
return /* @__PURE__ */
|
|
3956
|
+
return /* @__PURE__ */ B.createElement(qr, null, /* @__PURE__ */ B.createElement("button", {
|
|
3957
3957
|
...l,
|
|
3958
3958
|
tabIndex: -1,
|
|
3959
3959
|
onClick: i,
|
|
@@ -4058,7 +4058,7 @@ function qf() {
|
|
|
4058
4058
|
var t;
|
|
4059
4059
|
return (t = Y(Yf)) !== null && t !== void 0 ? t : {};
|
|
4060
4060
|
}
|
|
4061
|
-
const zo = /* @__PURE__ */
|
|
4061
|
+
const zo = /* @__PURE__ */ B.createContext(null);
|
|
4062
4062
|
function Xf(t) {
|
|
4063
4063
|
let e = nt(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = z(!1), o = V(() => ({
|
|
4064
4064
|
contain: l,
|
|
@@ -4069,12 +4069,12 @@ function Xf(t) {
|
|
|
4069
4069
|
]), { getContainer: a } = qf();
|
|
4070
4070
|
if (!t.portalContainer && a && (n = a()), !n) return null;
|
|
4071
4071
|
let u = t.children;
|
|
4072
|
-
return t.disableFocusManagement || (u = /* @__PURE__ */
|
|
4072
|
+
return t.disableFocusManagement || (u = /* @__PURE__ */ B.createElement(An, {
|
|
4073
4073
|
restoreFocus: !0,
|
|
4074
4074
|
contain: l && !r
|
|
4075
|
-
}, u)), u = /* @__PURE__ */
|
|
4075
|
+
}, u)), u = /* @__PURE__ */ B.createElement(zo.Provider, {
|
|
4076
4076
|
value: o
|
|
4077
|
-
}, /* @__PURE__ */
|
|
4077
|
+
}, /* @__PURE__ */ B.createElement(Ad, null, u)), /* @__PURE__ */ Sn.createPortal(u, n);
|
|
4078
4078
|
}
|
|
4079
4079
|
function Zf() {
|
|
4080
4080
|
let t = Y(zo), e = t == null ? void 0 : t.setContain;
|
|
@@ -4165,8 +4165,8 @@ function Vo(t) {
|
|
|
4165
4165
|
break;
|
|
4166
4166
|
case "ArrowRight":
|
|
4167
4167
|
if (n.getKeyRightOf) {
|
|
4168
|
-
var
|
|
4169
|
-
let O = (
|
|
4168
|
+
var Be, xe, Ue;
|
|
4169
|
+
let O = (Be = n.getKeyRightOf) === null || Be === void 0 ? void 0 : Be.call(n, e.focusedKey);
|
|
4170
4170
|
O == null && i && (O = y === "rtl" ? (xe = n.getLastKey) === null || xe === void 0 ? void 0 : xe.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (P.preventDefault(), w(O, y === "rtl" ? "last" : "first"));
|
|
4171
4171
|
}
|
|
4172
4172
|
break;
|
|
@@ -4242,7 +4242,7 @@ function Vo(t) {
|
|
|
4242
4242
|
} else f || (p.current.scrollTop = S.current.top, p.current.scrollLeft = S.current.left);
|
|
4243
4243
|
if (e.focusedKey != null) {
|
|
4244
4244
|
let $ = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4245
|
-
$ && ($.contains(document.activeElement) || Le($),
|
|
4245
|
+
$ && ($.contains(document.activeElement) || Le($), mn() === "keyboard" && Ze($, {
|
|
4246
4246
|
containingElement: r.current
|
|
4247
4247
|
}));
|
|
4248
4248
|
}
|
|
@@ -4268,10 +4268,10 @@ function Vo(t) {
|
|
|
4268
4268
|
let D = I(e.focusedKey);
|
|
4269
4269
|
L(() => {
|
|
4270
4270
|
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== D.current || C.current) && (p != null && p.current)) {
|
|
4271
|
-
let P =
|
|
4271
|
+
let P = mn(), w = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4272
4272
|
if (!w)
|
|
4273
4273
|
return;
|
|
4274
|
-
(P === "keyboard" || C.current) && (
|
|
4274
|
+
(P === "keyboard" || C.current) && (Bi(p.current, w), P !== "virtual" && Ze(w, {
|
|
4275
4275
|
containingElement: r.current
|
|
4276
4276
|
}));
|
|
4277
4277
|
}
|
|
@@ -4291,11 +4291,11 @@ function Vo(t) {
|
|
|
4291
4291
|
selectionManager: e
|
|
4292
4292
|
});
|
|
4293
4293
|
c || (_ = H(v, _));
|
|
4294
|
-
let
|
|
4295
|
-
return s || (
|
|
4294
|
+
let A;
|
|
4295
|
+
return s || (A = e.focusedKey == null ? 0 : -1), {
|
|
4296
4296
|
collectionProps: {
|
|
4297
4297
|
..._,
|
|
4298
|
-
tabIndex:
|
|
4298
|
+
tabIndex: A
|
|
4299
4299
|
}
|
|
4300
4300
|
};
|
|
4301
4301
|
}
|
|
@@ -4333,7 +4333,7 @@ function Fn(t) {
|
|
|
4333
4333
|
} : a && (p.onMouseDown = (N) => {
|
|
4334
4334
|
N.preventDefault();
|
|
4335
4335
|
});
|
|
4336
|
-
let m = e.isLink(n) && s === "override", y = e.isLink(n) && s !== "selection" && s !== "none", g = !a && e.canSelectItem(n) && !m, E = (u || y) && !a, S = E && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), x = E && g && e.selectionBehavior === "replace", k = S || x, C = I(null), D = k && g, _ = I(!1), v = I(!1),
|
|
4336
|
+
let m = e.isLink(n) && s === "override", y = e.isLink(n) && s !== "selection" && s !== "none", g = !a && e.canSelectItem(n) && !m, E = (u || y) && !a, S = E && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), x = E && g && e.selectionBehavior === "replace", k = S || x, C = I(null), D = k && g, _ = I(!1), v = I(!1), A = (N) => {
|
|
4337
4337
|
if (u && u(), y) {
|
|
4338
4338
|
let ce = e.getItemProps(n);
|
|
4339
4339
|
d.open(r.current, N, ce.href, ce.routerOptions);
|
|
@@ -4343,18 +4343,18 @@ function Fn(t) {
|
|
|
4343
4343
|
C.current = N.pointerType, _.current = D, N.pointerType === "keyboard" && (!k || ei()) && f(N);
|
|
4344
4344
|
}, c ? (P.onPressUp = S ? null : (N) => {
|
|
4345
4345
|
N.pointerType !== "keyboard" && g && f(N);
|
|
4346
|
-
}, P.onPress = S ?
|
|
4346
|
+
}, P.onPress = S ? A : null) : P.onPress = (N) => {
|
|
4347
4347
|
if (S || x && N.pointerType !== "mouse") {
|
|
4348
4348
|
if (N.pointerType === "keyboard" && !Ql()) return;
|
|
4349
|
-
|
|
4349
|
+
A(N);
|
|
4350
4350
|
} else N.pointerType !== "keyboard" && g && f(N);
|
|
4351
4351
|
}) : (P.onPressStart = (N) => {
|
|
4352
4352
|
C.current = N.pointerType, _.current = D, v.current = S, g && (N.pointerType === "mouse" && !S || N.pointerType === "keyboard" && (!E || ei())) && f(N);
|
|
4353
4353
|
}, P.onPress = (N) => {
|
|
4354
|
-
(N.pointerType === "touch" || N.pointerType === "pen" || N.pointerType === "virtual" || N.pointerType === "keyboard" && k && Ql() || N.pointerType === "mouse" && v.current) && (k ?
|
|
4354
|
+
(N.pointerType === "touch" || N.pointerType === "pen" || N.pointerType === "virtual" || N.pointerType === "keyboard" && k && Ql() || N.pointerType === "mouse" && v.current) && (k ? A(N) : g && f(N));
|
|
4355
4355
|
}), p["data-key"] = n, P.preventFocusOnPress = i;
|
|
4356
4356
|
let { pressProps: w, isPressed: M } = ze(P), $ = x ? (N) => {
|
|
4357
|
-
C.current === "mouse" && (N.stopPropagation(), N.preventDefault(),
|
|
4357
|
+
C.current === "mouse" && (N.stopPropagation(), N.preventDefault(), A(N));
|
|
4358
4358
|
} : void 0, { longPressProps: F } = Vi({
|
|
4359
4359
|
isDisabled: !D,
|
|
4360
4360
|
onLongPress(N) {
|
|
@@ -4618,7 +4618,7 @@ Uo.getCollectionNode = function* (e, n) {
|
|
|
4618
4618
|
};
|
|
4619
4619
|
else if (l) {
|
|
4620
4620
|
let u = [];
|
|
4621
|
-
|
|
4621
|
+
B.Children.forEach(i, (c) => {
|
|
4622
4622
|
u.push({
|
|
4623
4623
|
type: "item",
|
|
4624
4624
|
element: c
|
|
@@ -4629,7 +4629,7 @@ Uo.getCollectionNode = function* (e, n) {
|
|
|
4629
4629
|
};
|
|
4630
4630
|
};
|
|
4631
4631
|
function rp(t) {
|
|
4632
|
-
return t.hasChildItems != null ? t.hasChildItems : !!(t.childItems || t.title &&
|
|
4632
|
+
return t.hasChildItems != null ? t.hasChildItems : !!(t.childItems || t.title && B.Children.count(t.children) > 0);
|
|
4633
4633
|
}
|
|
4634
4634
|
let Jr = Uo;
|
|
4635
4635
|
function Go(t) {
|
|
@@ -4653,7 +4653,7 @@ Go.getCollectionNode = function* (e) {
|
|
|
4653
4653
|
};
|
|
4654
4654
|
} else {
|
|
4655
4655
|
let i = [];
|
|
4656
|
-
|
|
4656
|
+
B.Children.forEach(n, (o) => {
|
|
4657
4657
|
i.push({
|
|
4658
4658
|
type: "item",
|
|
4659
4659
|
element: o
|
|
@@ -4670,7 +4670,7 @@ class lp {
|
|
|
4670
4670
|
}
|
|
4671
4671
|
*iterateCollection(e) {
|
|
4672
4672
|
let { children: n, items: r } = e;
|
|
4673
|
-
if (
|
|
4673
|
+
if (B.isValidElement(n) && n.type === B.Fragment) yield* this.iterateCollection({
|
|
4674
4674
|
children: n.props.children,
|
|
4675
4675
|
items: r
|
|
4676
4676
|
});
|
|
@@ -4683,7 +4683,7 @@ class lp {
|
|
|
4683
4683
|
});
|
|
4684
4684
|
} else {
|
|
4685
4685
|
let l = [];
|
|
4686
|
-
|
|
4686
|
+
B.Children.forEach(n, (o) => {
|
|
4687
4687
|
l.push(o);
|
|
4688
4688
|
});
|
|
4689
4689
|
let i = 0;
|
|
@@ -4715,9 +4715,9 @@ class lp {
|
|
|
4715
4715
|
};
|
|
4716
4716
|
}
|
|
4717
4717
|
*getFullNode(e, n, r, l) {
|
|
4718
|
-
if (
|
|
4718
|
+
if (B.isValidElement(e.element) && e.element.type === B.Fragment) {
|
|
4719
4719
|
let u = [];
|
|
4720
|
-
|
|
4720
|
+
B.Children.forEach(e.element.props.children, (s) => {
|
|
4721
4721
|
u.push(s);
|
|
4722
4722
|
});
|
|
4723
4723
|
let c = e.index;
|
|
@@ -4736,7 +4736,7 @@ class lp {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
i = n.renderer(e.value);
|
|
4738
4738
|
}
|
|
4739
|
-
if (
|
|
4739
|
+
if (B.isValidElement(i)) {
|
|
4740
4740
|
let u = i.type;
|
|
4741
4741
|
if (typeof u != "function" && typeof u.getCollectionNode != "function") {
|
|
4742
4742
|
let f = typeof i.type == "function" ? i.type.name : i.type;
|
|
@@ -4907,7 +4907,7 @@ function op(t, e, n) {
|
|
|
4907
4907
|
let _ = o != null && o.onAction ? () => {
|
|
4908
4908
|
var U;
|
|
4909
4909
|
return o == null || (U = o.onAction) === null || U === void 0 ? void 0 : U.call(o, i);
|
|
4910
|
-
} : void 0, { itemProps: v, isPressed:
|
|
4910
|
+
} : void 0, { itemProps: v, isPressed: A, isFocused: P, hasAction: w, allowsSelection: M } = Fn({
|
|
4911
4911
|
selectionManager: e.selectionManager,
|
|
4912
4912
|
key: i,
|
|
4913
4913
|
ref: n,
|
|
@@ -4942,7 +4942,7 @@ function op(t, e, n) {
|
|
|
4942
4942
|
isFocusVisible: P && ct(),
|
|
4943
4943
|
isSelected: s,
|
|
4944
4944
|
isDisabled: u,
|
|
4945
|
-
isPressed:
|
|
4945
|
+
isPressed: A,
|
|
4946
4946
|
allowsSelection: M,
|
|
4947
4947
|
hasAction: w
|
|
4948
4948
|
};
|
|
@@ -5123,7 +5123,7 @@ Ta = {
|
|
|
5123
5123
|
function ap(t) {
|
|
5124
5124
|
return t && t.__esModule ? t.default : t;
|
|
5125
5125
|
}
|
|
5126
|
-
function
|
|
5126
|
+
function Ba(t, e, n) {
|
|
5127
5127
|
let { type: r = "menu", isDisabled: l, trigger: i = "press" } = t, o = he(), { triggerProps: a, overlayProps: u } = lo({
|
|
5128
5128
|
type: r
|
|
5129
5129
|
}, e, n), c = (p) => {
|
|
@@ -5173,7 +5173,7 @@ function Aa(t, e, n) {
|
|
|
5173
5173
|
}
|
|
5174
5174
|
};
|
|
5175
5175
|
}
|
|
5176
|
-
const
|
|
5176
|
+
const Aa = /* @__PURE__ */ new WeakMap();
|
|
5177
5177
|
function Ka(t, e, n) {
|
|
5178
5178
|
let { shouldFocusWrap: r = !0, onKeyDown: l, onKeyUp: i, ...o } = t;
|
|
5179
5179
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
@@ -5188,7 +5188,7 @@ function Ka(t, e, n) {
|
|
|
5188
5188
|
shouldFocusWrap: r,
|
|
5189
5189
|
linkBehavior: "override"
|
|
5190
5190
|
});
|
|
5191
|
-
return
|
|
5191
|
+
return Aa.set(e, {
|
|
5192
5192
|
onClose: t.onClose,
|
|
5193
5193
|
onAction: t.onAction
|
|
5194
5194
|
}), {
|
|
@@ -5209,7 +5209,7 @@ function Ma(t, e, n) {
|
|
|
5209
5209
|
var D;
|
|
5210
5210
|
let _ = (D = t.isDisabled) !== null && D !== void 0 ? D : e.selectionManager.isDisabled(l);
|
|
5211
5211
|
var v;
|
|
5212
|
-
let
|
|
5212
|
+
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), P = Aa.get(e), w = e.collection.getItem(l), M = t.onClose || P.onClose, $ = Yt(), F = (re) => {
|
|
5213
5213
|
var mt;
|
|
5214
5214
|
if (!C) {
|
|
5215
5215
|
if (!(w == null || (mt = w.props) === null || mt === void 0) && mt.onAction ? w.props.onAction() : t.onAction && t.onAction(l), P.onAction) {
|
|
@@ -5234,10 +5234,10 @@ function Ma(t, e, n) {
|
|
|
5234
5234
|
"aria-haspopup": a,
|
|
5235
5235
|
"aria-expanded": t["aria-expanded"]
|
|
5236
5236
|
};
|
|
5237
|
-
e.selectionManager.selectionMode !== "none" && !C && (ge["aria-checked"] =
|
|
5237
|
+
e.selectionManager.selectionMode !== "none" && !C && (ge["aria-checked"] = A), o && (ge["aria-posinset"] = w == null ? void 0 : w.index, ge["aria-setsize"] = Yo(e.collection));
|
|
5238
5238
|
let $e = (re) => {
|
|
5239
5239
|
re.pointerType === "keyboard" && F(re), u == null || u(re);
|
|
5240
|
-
},
|
|
5240
|
+
}, Be = (re) => {
|
|
5241
5241
|
re.pointerType !== "keyboard" && (F(re), !C && M && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && M()), c == null || c(re);
|
|
5242
5242
|
}, { itemProps: xe, isFocused: Ue } = Fn({
|
|
5243
5243
|
selectionManager: e.selectionManager,
|
|
@@ -5253,7 +5253,7 @@ function Ma(t, e, n) {
|
|
|
5253
5253
|
}), { pressProps: O, isPressed: De } = ze({
|
|
5254
5254
|
onPressStart: $e,
|
|
5255
5255
|
onPress: s,
|
|
5256
|
-
onPressUp:
|
|
5256
|
+
onPressUp: Be,
|
|
5257
5257
|
onPressChange: d,
|
|
5258
5258
|
onPressEnd: f,
|
|
5259
5259
|
isDisabled: _
|
|
@@ -5283,7 +5283,7 @@ function Ma(t, e, n) {
|
|
|
5283
5283
|
}
|
|
5284
5284
|
},
|
|
5285
5285
|
onKeyUp: E
|
|
5286
|
-
}), { focusProps: pt } =
|
|
5286
|
+
}), { focusProps: pt } = Tn({
|
|
5287
5287
|
onBlur: k,
|
|
5288
5288
|
onFocus: S,
|
|
5289
5289
|
onFocusChange: x
|
|
@@ -5309,7 +5309,7 @@ function Ma(t, e, n) {
|
|
|
5309
5309
|
id: ce
|
|
5310
5310
|
},
|
|
5311
5311
|
isFocused: Ue,
|
|
5312
|
-
isSelected:
|
|
5312
|
+
isSelected: A,
|
|
5313
5313
|
isPressed: De,
|
|
5314
5314
|
isDisabled: _
|
|
5315
5315
|
};
|
|
@@ -5516,7 +5516,7 @@ function xt(t, e) {
|
|
|
5516
5516
|
};
|
|
5517
5517
|
}
|
|
5518
5518
|
function gp(t) {
|
|
5519
|
-
let { isDisabled: e } = t, n = I(!1), { focusProps: r } =
|
|
5519
|
+
let { isDisabled: e } = t, n = I(!1), { focusProps: r } = Tn({
|
|
5520
5520
|
onFocusChange: (s) => {
|
|
5521
5521
|
n.current = s;
|
|
5522
5522
|
}
|
|
@@ -6224,7 +6224,7 @@ function xp(t, e) {
|
|
|
6224
6224
|
}
|
|
6225
6225
|
e.selectionManager.selectionMode === "multiple" && (s.length === 0 || l === "all" || l.size > 1 || i.current === "all" || ((o = i.current) === null || o === void 0 ? void 0 : o.size) > 1) && s.push(l === "all" ? r.format("selectedAll") : r.format("selectedCount", {
|
|
6226
6226
|
count: l.size
|
|
6227
|
-
})), s.length > 0 &&
|
|
6227
|
+
})), s.length > 0 && $n(s.join(" ")), i.current = l;
|
|
6228
6228
|
}, [
|
|
6229
6229
|
l
|
|
6230
6230
|
]);
|
|
@@ -6249,7 +6249,7 @@ function Sp(t) {
|
|
|
6249
6249
|
e,
|
|
6250
6250
|
r
|
|
6251
6251
|
]);
|
|
6252
|
-
return
|
|
6252
|
+
return Dn(l);
|
|
6253
6253
|
}
|
|
6254
6254
|
function Cp(t, e, n) {
|
|
6255
6255
|
let { isVirtualized: r, keyboardDelegate: l, focusMode: i, scrollRef: o, getRowText: a, onRowAction: u, onCellAction: c } = t, { selectionManager: s } = e;
|
|
@@ -6478,7 +6478,7 @@ function Dp(t, e, n) {
|
|
|
6478
6478
|
}), x = -1;
|
|
6479
6479
|
e.selectedValue != null ? e.selectedValue === r && (x = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && (x = 0), a && (x = void 0);
|
|
6480
6480
|
let { name: k, descriptionId: C, errorMessageId: D, validationBehavior: _ } = gu.get(e);
|
|
6481
|
-
return
|
|
6481
|
+
return kn(n, e.selectedValue, e.setSelectedValue), Ur({
|
|
6482
6482
|
validationBehavior: _
|
|
6483
6483
|
}, e, n), {
|
|
6484
6484
|
labelProps: H(m, {
|
|
@@ -6617,12 +6617,12 @@ var Tu = {};
|
|
|
6617
6617
|
Tu = {
|
|
6618
6618
|
"Clear search": "Effacer la recherche"
|
|
6619
6619
|
};
|
|
6620
|
-
var Au = {};
|
|
6621
|
-
Au = {
|
|
6622
|
-
"Clear search": "נקה חיפוש"
|
|
6623
|
-
};
|
|
6624
6620
|
var Bu = {};
|
|
6625
6621
|
Bu = {
|
|
6622
|
+
"Clear search": "נקה חיפוש"
|
|
6623
|
+
};
|
|
6624
|
+
var Au = {};
|
|
6625
|
+
Au = {
|
|
6626
6626
|
"Clear search": "Obriši pretragu"
|
|
6627
6627
|
};
|
|
6628
6628
|
var Ku = {};
|
|
@@ -6722,8 +6722,8 @@ Qu = {
|
|
|
6722
6722
|
"et-EE": Du,
|
|
6723
6723
|
"fi-FI": ku,
|
|
6724
6724
|
"fr-FR": Tu,
|
|
6725
|
-
"he-IL":
|
|
6726
|
-
"hr-HR":
|
|
6725
|
+
"he-IL": Bu,
|
|
6726
|
+
"hr-HR": Au,
|
|
6727
6727
|
"hu-HU": Ku,
|
|
6728
6728
|
"it-IT": Mu,
|
|
6729
6729
|
"ja-JP": Iu,
|
|
@@ -6749,7 +6749,7 @@ Qu = {
|
|
|
6749
6749
|
function Tp(t) {
|
|
6750
6750
|
return t && t.__esModule ? t.default : t;
|
|
6751
6751
|
}
|
|
6752
|
-
function
|
|
6752
|
+
function Bp(t, e, n) {
|
|
6753
6753
|
let r = ft(Tp(Qu), "@react-aria/searchfield"), { isDisabled: l, isReadOnly: i, onSubmit: o, onClear: a, type: u = "search" } = t, c = (E) => {
|
|
6754
6754
|
const S = E.key;
|
|
6755
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())));
|
|
@@ -6795,21 +6795,21 @@ function ts(t, e, n) {
|
|
|
6795
6795
|
e.collection,
|
|
6796
6796
|
e.disabledKeys,
|
|
6797
6797
|
u
|
|
6798
|
-
]), { menuTriggerProps: s, menuProps: d } =
|
|
6798
|
+
]), { menuTriggerProps: s, menuProps: d } = Ba({
|
|
6799
6799
|
isDisabled: l,
|
|
6800
6800
|
type: "listbox"
|
|
6801
6801
|
}, e, n), f = (v) => {
|
|
6802
6802
|
switch (v.key) {
|
|
6803
6803
|
case "ArrowLeft": {
|
|
6804
6804
|
v.preventDefault();
|
|
6805
|
-
let
|
|
6806
|
-
|
|
6805
|
+
let A = e.selectedKey != null ? c.getKeyAbove(e.selectedKey) : c.getFirstKey();
|
|
6806
|
+
A && e.setSelectedKey(A);
|
|
6807
6807
|
break;
|
|
6808
6808
|
}
|
|
6809
6809
|
case "ArrowRight": {
|
|
6810
6810
|
v.preventDefault();
|
|
6811
|
-
let
|
|
6812
|
-
|
|
6811
|
+
let A = e.selectedKey != null ? c.getKeyBelow(e.selectedKey) : c.getFirstKey();
|
|
6812
|
+
A && e.setSelectedKey(A);
|
|
6813
6813
|
break;
|
|
6814
6814
|
}
|
|
6815
6815
|
}
|
|
@@ -6883,9 +6883,9 @@ function ts(t, e, n) {
|
|
|
6883
6883
|
validationDetails: g
|
|
6884
6884
|
};
|
|
6885
6885
|
}
|
|
6886
|
-
function
|
|
6886
|
+
function Ap(t, e, n) {
|
|
6887
6887
|
let r = es.get(e) || {}, { autoComplete: l, name: i = r.name, isDisabled: o = r.isDisabled } = t, { validationBehavior: a, isRequired: u } = r, c = Oi(), { visuallyHiddenProps: s } = Qi();
|
|
6888
|
-
|
|
6888
|
+
kn(t.selectRef, e.selectedKey, e.setSelectedKey), Ur({
|
|
6889
6889
|
validationBehavior: a,
|
|
6890
6890
|
focus: () => n.current.focus()
|
|
6891
6891
|
}, e, t.selectRef);
|
|
@@ -6920,26 +6920,26 @@ function Bp(t, e, n) {
|
|
|
6920
6920
|
};
|
|
6921
6921
|
}
|
|
6922
6922
|
function ns(t) {
|
|
6923
|
-
let { state: e, triggerRef: n, label: r, name: l, isDisabled: i } = t, o = I(null), { containerProps: a, inputProps: u, selectProps: c } =
|
|
6923
|
+
let { state: e, triggerRef: n, label: r, name: l, isDisabled: i } = t, o = I(null), { containerProps: a, inputProps: u, selectProps: c } = Ap({
|
|
6924
6924
|
...t,
|
|
6925
6925
|
selectRef: o
|
|
6926
6926
|
}, e, n);
|
|
6927
6927
|
var s;
|
|
6928
|
-
return e.collection.size <= 300 ? /* @__PURE__ */
|
|
6928
|
+
return e.collection.size <= 300 ? /* @__PURE__ */ B.createElement("div", {
|
|
6929
6929
|
...a,
|
|
6930
6930
|
"data-testid": "hidden-select-container"
|
|
6931
|
-
}, /* @__PURE__ */
|
|
6931
|
+
}, /* @__PURE__ */ B.createElement("input", u), /* @__PURE__ */ B.createElement("label", null, r, /* @__PURE__ */ B.createElement("select", {
|
|
6932
6932
|
...c,
|
|
6933
6933
|
ref: o
|
|
6934
|
-
}, /* @__PURE__ */
|
|
6934
|
+
}, /* @__PURE__ */ B.createElement("option", null), [
|
|
6935
6935
|
...e.collection.getKeys()
|
|
6936
6936
|
].map((d) => {
|
|
6937
6937
|
let f = e.collection.getItem(d);
|
|
6938
|
-
if (f.type === "item") return /* @__PURE__ */
|
|
6938
|
+
if (f.type === "item") return /* @__PURE__ */ B.createElement("option", {
|
|
6939
6939
|
key: f.key,
|
|
6940
6940
|
value: f.key
|
|
6941
6941
|
}, f.textValue);
|
|
6942
|
-
})))) : l ? /* @__PURE__ */
|
|
6942
|
+
})))) : l ? /* @__PURE__ */ B.createElement("input", {
|
|
6943
6943
|
type: "hidden",
|
|
6944
6944
|
autoComplete: c.autoComplete,
|
|
6945
6945
|
name: l,
|
|
@@ -6963,18 +6963,18 @@ function Kp(t, e, n) {
|
|
|
6963
6963
|
};
|
|
6964
6964
|
}
|
|
6965
6965
|
const rl = /* @__PURE__ */ new WeakMap();
|
|
6966
|
-
function
|
|
6966
|
+
function Br(t) {
|
|
6967
6967
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
6968
6968
|
}
|
|
6969
6969
|
function Mp(t, e) {
|
|
6970
6970
|
let n = rl.get(t);
|
|
6971
6971
|
if (!n) throw new Error("Unknown grid");
|
|
6972
|
-
return `${n}-${
|
|
6972
|
+
return `${n}-${Br(e)}`;
|
|
6973
6973
|
}
|
|
6974
6974
|
function rs(t, e, n) {
|
|
6975
6975
|
let r = rl.get(t);
|
|
6976
6976
|
if (!r) throw new Error("Unknown grid");
|
|
6977
|
-
return `${r}-${
|
|
6977
|
+
return `${r}-${Br(e)}-${Br(n)}`;
|
|
6978
6978
|
}
|
|
6979
6979
|
function Ip(t, e) {
|
|
6980
6980
|
return [
|
|
@@ -7293,8 +7293,8 @@ Ts = {
|
|
|
7293
7293
|
selectAll: "Выбрать все",
|
|
7294
7294
|
sortable: "сортируемый столбец"
|
|
7295
7295
|
};
|
|
7296
|
-
var
|
|
7297
|
-
|
|
7296
|
+
var Bs = {};
|
|
7297
|
+
Bs = {
|
|
7298
7298
|
ascending: "vzostupne",
|
|
7299
7299
|
ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
|
|
7300
7300
|
columnSize: (t) => `Počet pixelov: ${t.value}`,
|
|
@@ -7305,8 +7305,8 @@ As = {
|
|
|
7305
7305
|
selectAll: "Vybrať všetko",
|
|
7306
7306
|
sortable: "zoraditeľný stĺpec"
|
|
7307
7307
|
};
|
|
7308
|
-
var
|
|
7309
|
-
|
|
7308
|
+
var As = {};
|
|
7309
|
+
As = {
|
|
7310
7310
|
ascending: "naraščajoče",
|
|
7311
7311
|
ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
|
|
7312
7312
|
columnSize: (t) => `${t.value} slikovnih pik`,
|
|
@@ -7417,8 +7417,8 @@ ll = {
|
|
|
7417
7417
|
"pt-PT": Ds,
|
|
7418
7418
|
"ro-RO": ks,
|
|
7419
7419
|
"ru-RU": Ts,
|
|
7420
|
-
"sk-SK":
|
|
7421
|
-
"sl-SI":
|
|
7420
|
+
"sk-SK": Bs,
|
|
7421
|
+
"sl-SI": As,
|
|
7422
7422
|
"sr-SP": Ks,
|
|
7423
7423
|
"sv-SE": Ms,
|
|
7424
7424
|
"tr-TR": Is,
|
|
@@ -7505,7 +7505,7 @@ class Fp extends _a {
|
|
|
7505
7505
|
}
|
|
7506
7506
|
}
|
|
7507
7507
|
let _p = !1;
|
|
7508
|
-
function
|
|
7508
|
+
function En() {
|
|
7509
7509
|
return _p;
|
|
7510
7510
|
}
|
|
7511
7511
|
function Rp(t) {
|
|
@@ -7541,7 +7541,7 @@ function Np(t, e, n) {
|
|
|
7541
7541
|
id: d,
|
|
7542
7542
|
keyboardDelegate: s
|
|
7543
7543
|
}, e, n);
|
|
7544
|
-
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length),
|
|
7544
|
+
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), En() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7545
7545
|
let { column: p, direction: m } = e.sortDescriptor || {}, y = ft(Rp(ll), "@react-aria/table"), g = V(() => {
|
|
7546
7546
|
var S;
|
|
7547
7547
|
let x = (S = e.collection.columns.find((k) => k.key === p)) === null || S === void 0 ? void 0 : S.textValue;
|
|
@@ -7552,9 +7552,9 @@ function Np(t, e, n) {
|
|
|
7552
7552
|
m,
|
|
7553
7553
|
p,
|
|
7554
7554
|
e.collection.columns
|
|
7555
|
-
]), E =
|
|
7555
|
+
]), E = Dn(g);
|
|
7556
7556
|
return Ti(() => {
|
|
7557
|
-
|
|
7557
|
+
$n(g, "assertive", 500);
|
|
7558
7558
|
}, [
|
|
7559
7559
|
g
|
|
7560
7560
|
]), {
|
|
@@ -7582,10 +7582,10 @@ function Op(t, e, n) {
|
|
|
7582
7582
|
},
|
|
7583
7583
|
ref: n
|
|
7584
7584
|
}), { focusableProps: s } = Tt({}, n), d = null, f = ((r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.column) === i.key, p = (l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.direction;
|
|
7585
|
-
i.props.allowsSorting && !
|
|
7585
|
+
i.props.allowsSorting && !pn() && (d = f ? p : "none");
|
|
7586
7586
|
let m = ft(Lp(ll), "@react-aria/table"), y;
|
|
7587
|
-
o && (y = `${m.format("sortable")}`, f && p &&
|
|
7588
|
-
let g =
|
|
7587
|
+
o && (y = `${m.format("sortable")}`, f && p && pn() && (y = `${y}, ${m.format(p)}`));
|
|
7588
|
+
let g = Dn(y), E = e.collection.size === 0;
|
|
7589
7589
|
return L(() => {
|
|
7590
7590
|
E && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
|
|
7591
7591
|
}, [
|
|
@@ -7623,9 +7623,9 @@ const oi = {
|
|
|
7623
7623
|
};
|
|
7624
7624
|
function zp(t, e, n) {
|
|
7625
7625
|
let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = Pp(t, e, n), { direction: a } = He();
|
|
7626
|
-
l && !(
|
|
7626
|
+
l && !(En() && "expandedKeys" in e) ? i["aria-rowindex"] = r.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
|
|
7627
7627
|
let u = {};
|
|
7628
|
-
if (
|
|
7628
|
+
if (En() && "expandedKeys" in e) {
|
|
7629
7629
|
let m = e.keyMap.get(r.key);
|
|
7630
7630
|
if (m != null) {
|
|
7631
7631
|
var c, s, d;
|
|
@@ -7654,7 +7654,7 @@ function jp(t, e, n) {
|
|
|
7654
7654
|
let { node: r, isVirtualized: l } = t, i = {
|
|
7655
7655
|
role: "row"
|
|
7656
7656
|
};
|
|
7657
|
-
return l && !(
|
|
7657
|
+
return l && !(En() && "expandedKeys" in e) && (i["aria-rowindex"] = r.index + 1), {
|
|
7658
7658
|
rowProps: i
|
|
7659
7659
|
};
|
|
7660
7660
|
}
|
|
@@ -7700,7 +7700,7 @@ function Up(t, e, n) {
|
|
|
7700
7700
|
e
|
|
7701
7701
|
]);
|
|
7702
7702
|
let s = () => {
|
|
7703
|
-
l !== "focus" && (
|
|
7703
|
+
l !== "focus" && (mn() === "pointer" ? o.current = !0 : o.current = !1, u());
|
|
7704
7704
|
}, d = () => {
|
|
7705
7705
|
l !== "focus" && (a.current = !1, o.current = !1, c());
|
|
7706
7706
|
}, f = () => {
|
|
@@ -8122,13 +8122,13 @@ function Yp(t) {
|
|
|
8122
8122
|
const E = c.current.getItem(r.focusedKey), S = [
|
|
8123
8123
|
...c.current.getKeys()
|
|
8124
8124
|
].map((v) => {
|
|
8125
|
-
const
|
|
8126
|
-
return (
|
|
8125
|
+
const A = c.current.getItem(v);
|
|
8126
|
+
return (A == null ? void 0 : A.type) === "item" ? A : null;
|
|
8127
8127
|
}).filter((v) => v !== null), x = [
|
|
8128
8128
|
...a.getKeys()
|
|
8129
8129
|
].map((v) => {
|
|
8130
|
-
const
|
|
8131
|
-
return (
|
|
8130
|
+
const A = a.getItem(v);
|
|
8131
|
+
return (A == null ? void 0 : A.type) === "item" ? A : null;
|
|
8132
8132
|
}).filter((v) => v !== null);
|
|
8133
8133
|
var s, d;
|
|
8134
8134
|
const k = ((s = S == null ? void 0 : S.length) !== null && s !== void 0 ? s : 0) - ((d = x == null ? void 0 : x.length) !== null && d !== void 0 ? d : 0);
|
|
@@ -8434,8 +8434,8 @@ class nv {
|
|
|
8434
8434
|
}
|
|
8435
8435
|
}
|
|
8436
8436
|
const Ls = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
8437
|
-
let
|
|
8438
|
-
for (; Ls ===
|
|
8437
|
+
let Ar = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
8438
|
+
for (; Ls === Ar; ) Ar = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
8439
8439
|
function rv(t, e) {
|
|
8440
8440
|
if (e.length === 0) return [];
|
|
8441
8441
|
let n = [], r = /* @__PURE__ */ new Map();
|
|
@@ -8597,7 +8597,7 @@ class lv extends nv {
|
|
|
8597
8597
|
if (r != null && r.showDragButtons) {
|
|
8598
8598
|
let d = {
|
|
8599
8599
|
type: "column",
|
|
8600
|
-
key:
|
|
8600
|
+
key: Ar,
|
|
8601
8601
|
value: null,
|
|
8602
8602
|
textValue: "",
|
|
8603
8603
|
level: 0,
|
|
@@ -8692,7 +8692,7 @@ Os.getCollectionNode = function* (e, n) {
|
|
|
8692
8692
|
};
|
|
8693
8693
|
} else {
|
|
8694
8694
|
let i = [];
|
|
8695
|
-
|
|
8695
|
+
B.Children.forEach(r, (o) => {
|
|
8696
8696
|
i.push({
|
|
8697
8697
|
type: "column",
|
|
8698
8698
|
element: o
|
|
@@ -8720,7 +8720,7 @@ zs.getCollectionNode = function* (e) {
|
|
|
8720
8720
|
};
|
|
8721
8721
|
} else {
|
|
8722
8722
|
let l = [];
|
|
8723
|
-
|
|
8723
|
+
B.Children.forEach(n, (i) => {
|
|
8724
8724
|
l.push({
|
|
8725
8725
|
type: "item",
|
|
8726
8726
|
element: i
|
|
@@ -8737,7 +8737,7 @@ function js(t) {
|
|
|
8737
8737
|
js.getCollectionNode = function* (e, n) {
|
|
8738
8738
|
let { title: r, children: l, childColumns: i } = e, o = r || l, a = e.textValue || (typeof o == "string" ? o : "") || e["aria-label"], u = yield {
|
|
8739
8739
|
type: "column",
|
|
8740
|
-
hasChildNodes: !!i || r &&
|
|
8740
|
+
hasChildNodes: !!i || r && B.Children.count(l) > 0,
|
|
8741
8741
|
rendered: o,
|
|
8742
8742
|
textValue: a,
|
|
8743
8743
|
props: e,
|
|
@@ -8748,7 +8748,7 @@ js.getCollectionNode = function* (e, n) {
|
|
|
8748
8748
|
};
|
|
8749
8749
|
else if (r) {
|
|
8750
8750
|
let s = [];
|
|
8751
|
-
|
|
8751
|
+
B.Children.forEach(l, (d) => {
|
|
8752
8752
|
s.push({
|
|
8753
8753
|
type: "column",
|
|
8754
8754
|
element: d
|
|
@@ -8803,7 +8803,7 @@ Kr.getCollectionNode = function* (e, n) {
|
|
|
8803
8803
|
};
|
|
8804
8804
|
} else {
|
|
8805
8805
|
let o = [], a = [];
|
|
8806
|
-
if (
|
|
8806
|
+
if (B.Children.forEach(r, (u) => {
|
|
8807
8807
|
if (u.type === Kr) {
|
|
8808
8808
|
if (o.length < n.columns.length) throw new Error("All of a Row's child Cells must be positioned before any child Rows.");
|
|
8809
8809
|
a.push({
|
|
@@ -8964,7 +8964,7 @@ const vv = ({ children: t }) => {
|
|
|
8964
8964
|
l.style.setProperty(i, o);
|
|
8965
8965
|
}), l;
|
|
8966
8966
|
})();
|
|
8967
|
-
return
|
|
8967
|
+
return Sn.createPortal(t, r);
|
|
8968
8968
|
}, Us = ({
|
|
8969
8969
|
id: t,
|
|
8970
8970
|
isOpen: e,
|
|
@@ -9008,7 +9008,7 @@ const vv = ({ children: t }) => {
|
|
|
9008
9008
|
},
|
|
9009
9009
|
_,
|
|
9010
9010
|
x
|
|
9011
|
-
) : { menuProps: {} }, { overlayProps:
|
|
9011
|
+
) : { menuProps: {} }, { overlayProps: A } = Xr(
|
|
9012
9012
|
{
|
|
9013
9013
|
isOpen: e,
|
|
9014
9014
|
onClose: () => s == null ? void 0 : s(),
|
|
@@ -9033,7 +9033,7 @@ const vv = ({ children: t }) => {
|
|
|
9033
9033
|
/* @__PURE__ */ b.jsx(
|
|
9034
9034
|
"div",
|
|
9035
9035
|
{
|
|
9036
|
-
...
|
|
9036
|
+
...A,
|
|
9037
9037
|
className: "proton-ActionMenu__background",
|
|
9038
9038
|
style: { opacity: g > 0 ? 1 : 0 },
|
|
9039
9039
|
onClick: D,
|
|
@@ -9062,7 +9062,7 @@ const vv = ({ children: t }) => {
|
|
|
9062
9062
|
className: W("proton-ActionMenu__card", f),
|
|
9063
9063
|
"data-testid": "ActionMenu-content",
|
|
9064
9064
|
style: { height: `${g}px` },
|
|
9065
|
-
children: /* @__PURE__ */ b.jsx("div", { ref: x, children: /* @__PURE__ */ b.jsx("div", { ...v, ref: S, children: w ? /* @__PURE__ */ b.jsxs(
|
|
9065
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: x, children: /* @__PURE__ */ b.jsx("div", { ...v, ref: S, children: w ? /* @__PURE__ */ b.jsxs(An, { autoFocus: !0, contain: !0, children: [
|
|
9066
9066
|
i && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof i == "function" ? i({ close: D }) : i }),
|
|
9067
9067
|
C && /* @__PURE__ */ b.jsx(
|
|
9068
9068
|
"div",
|
|
@@ -9308,22 +9308,22 @@ const qs = {
|
|
|
9308
9308
|
icon: ke.GRAY_MEDIUM_LIGHT
|
|
9309
9309
|
},
|
|
9310
9310
|
success: {
|
|
9311
|
+
background: en.SUPER_LIGHT,
|
|
9312
|
+
title: en.DARK,
|
|
9313
|
+
content: en.MEDIUM,
|
|
9314
|
+
icon: en.LIGHT
|
|
9315
|
+
},
|
|
9316
|
+
warning: {
|
|
9311
9317
|
background: tn.SUPER_LIGHT,
|
|
9312
9318
|
title: tn.DARK,
|
|
9313
9319
|
content: tn.MEDIUM,
|
|
9314
9320
|
icon: tn.LIGHT
|
|
9315
9321
|
},
|
|
9316
|
-
|
|
9322
|
+
danger: {
|
|
9317
9323
|
background: nn.SUPER_LIGHT,
|
|
9318
9324
|
title: nn.DARK,
|
|
9319
9325
|
content: nn.MEDIUM,
|
|
9320
9326
|
icon: nn.LIGHT
|
|
9321
|
-
},
|
|
9322
|
-
danger: {
|
|
9323
|
-
background: rn.SUPER_LIGHT,
|
|
9324
|
-
title: rn.DARK,
|
|
9325
|
-
content: rn.MEDIUM,
|
|
9326
|
-
icon: rn.LIGHT
|
|
9327
9327
|
}
|
|
9328
9328
|
}, yv = {
|
|
9329
9329
|
default: "default",
|
|
@@ -9517,7 +9517,7 @@ const kv = dt(
|
|
|
9517
9517
|
onChange: o
|
|
9518
9518
|
},
|
|
9519
9519
|
k
|
|
9520
|
-
), { clipboardProps:
|
|
9520
|
+
), { clipboardProps: A } = gp({
|
|
9521
9521
|
getItems() {
|
|
9522
9522
|
return [{ "text/plain": d }];
|
|
9523
9523
|
}
|
|
@@ -9539,7 +9539,7 @@ const kv = dt(
|
|
|
9539
9539
|
"input",
|
|
9540
9540
|
{
|
|
9541
9541
|
...D,
|
|
9542
|
-
...
|
|
9542
|
+
...A,
|
|
9543
9543
|
"data-testid": m,
|
|
9544
9544
|
id: `${u}-input`,
|
|
9545
9545
|
"aria-invalid": !!i,
|
|
@@ -9605,7 +9605,7 @@ const kv = dt(
|
|
|
9605
9605
|
onChange: (E) => u == null ? void 0 : u(E),
|
|
9606
9606
|
onClear: () => c == null ? void 0 : c(),
|
|
9607
9607
|
label: e
|
|
9608
|
-
}), d = I(null), { inputProps: f, clearButtonProps: p } =
|
|
9608
|
+
}), d = I(null), { inputProps: f, clearButtonProps: p } = Bp(
|
|
9609
9609
|
{ ...s, placeholder: e },
|
|
9610
9610
|
s,
|
|
9611
9611
|
d
|
|
@@ -9963,7 +9963,7 @@ class Ut extends Zs {
|
|
|
9963
9963
|
super(n), this.nodeType = 8, this._index = 0, this.hasSetProps = !1, this.node = new ul(e, `react-aria-${++n.nodeId}`), this.ownerDocument.startTransaction();
|
|
9964
9964
|
}
|
|
9965
9965
|
}
|
|
9966
|
-
class
|
|
9966
|
+
class Bv extends Zs {
|
|
9967
9967
|
get isConnected() {
|
|
9968
9968
|
return this.isMounted;
|
|
9969
9969
|
}
|
|
@@ -10073,17 +10073,17 @@ if (typeof HTMLTemplateElement < "u") {
|
|
|
10073
10073
|
}
|
|
10074
10074
|
});
|
|
10075
10075
|
}
|
|
10076
|
-
const Mr = /* @__PURE__ */ Q(!1),
|
|
10076
|
+
const Mr = /* @__PURE__ */ Q(!1), Av = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
|
|
10077
10077
|
function Kv(t) {
|
|
10078
10078
|
let e = Y(Mr), n = nt();
|
|
10079
10079
|
if (e)
|
|
10080
|
-
return /* @__PURE__ */
|
|
10081
|
-
let r = /* @__PURE__ */
|
|
10080
|
+
return /* @__PURE__ */ B.createElement(B.Fragment, null, t.children);
|
|
10081
|
+
let r = /* @__PURE__ */ B.createElement(Mr.Provider, {
|
|
10082
10082
|
value: !0
|
|
10083
10083
|
}, t.children);
|
|
10084
|
-
return n ? /* @__PURE__ */
|
|
10084
|
+
return n ? /* @__PURE__ */ B.createElement("template", {
|
|
10085
10085
|
"data-react-aria-hidden": !0
|
|
10086
|
-
}, r) : /* @__PURE__ */ yi(r,
|
|
10086
|
+
}, r) : /* @__PURE__ */ yi(r, Av);
|
|
10087
10087
|
}
|
|
10088
10088
|
function Mv(t) {
|
|
10089
10089
|
let e = (n, r) => Y(Mr) ? null : t(n, r);
|
|
@@ -10103,7 +10103,7 @@ var di;
|
|
|
10103
10103
|
function Iv() {
|
|
10104
10104
|
if (di) return sr;
|
|
10105
10105
|
di = 1;
|
|
10106
|
-
var t =
|
|
10106
|
+
var t = B;
|
|
10107
10107
|
function e(d, f) {
|
|
10108
10108
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
10109
10109
|
}
|
|
@@ -10148,7 +10148,7 @@ var fi;
|
|
|
10148
10148
|
function Fv() {
|
|
10149
10149
|
return fi || (fi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10150
10150
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10151
|
-
var t =
|
|
10151
|
+
var t = B, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10152
10152
|
function n(x) {
|
|
10153
10153
|
{
|
|
10154
10154
|
for (var k = arguments.length, C = new Array(k > 1 ? k - 1 : 0), D = 1; D < k; D++)
|
|
@@ -10160,8 +10160,8 @@ function Fv() {
|
|
|
10160
10160
|
{
|
|
10161
10161
|
var D = e.ReactDebugCurrentFrame, _ = D.getStackAddendum();
|
|
10162
10162
|
_ !== "" && (k += "%s", C = C.concat([_]));
|
|
10163
|
-
var v = C.map(function(
|
|
10164
|
-
return String(
|
|
10163
|
+
var v = C.map(function(A) {
|
|
10164
|
+
return String(A);
|
|
10165
10165
|
});
|
|
10166
10166
|
v.unshift("Warning: " + k), Function.prototype.apply.call(console[x], console, v);
|
|
10167
10167
|
}
|
|
@@ -10182,18 +10182,18 @@ function Fv() {
|
|
|
10182
10182
|
value: D,
|
|
10183
10183
|
getSnapshot: k
|
|
10184
10184
|
}
|
|
10185
|
-
}),
|
|
10185
|
+
}), A = v[0].inst, P = v[1];
|
|
10186
10186
|
return u(function() {
|
|
10187
|
-
|
|
10188
|
-
inst:
|
|
10187
|
+
A.value = D, A.getSnapshot = k, p(A) && P({
|
|
10188
|
+
inst: A
|
|
10189
10189
|
});
|
|
10190
10190
|
}, [x, D, k]), a(function() {
|
|
10191
|
-
p(
|
|
10192
|
-
inst:
|
|
10191
|
+
p(A) && P({
|
|
10192
|
+
inst: A
|
|
10193
10193
|
});
|
|
10194
10194
|
var w = function() {
|
|
10195
|
-
p(
|
|
10196
|
-
inst:
|
|
10195
|
+
p(A) && P({
|
|
10196
|
+
inst: A
|
|
10197
10197
|
});
|
|
10198
10198
|
};
|
|
10199
10199
|
return x(w);
|
|
@@ -10222,9 +10222,9 @@ function Rv(t) {
|
|
|
10222
10222
|
if (Y(Gt))
|
|
10223
10223
|
return t.content;
|
|
10224
10224
|
let { collection: n, document: r } = zv(t.createCollection);
|
|
10225
|
-
return /* @__PURE__ */
|
|
10225
|
+
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(Kv, null, /* @__PURE__ */ B.createElement(Gt.Provider, {
|
|
10226
10226
|
value: r
|
|
10227
|
-
}, t.content)), /* @__PURE__ */
|
|
10227
|
+
}, t.content)), /* @__PURE__ */ B.createElement(Nv, {
|
|
10228
10228
|
render: t.children,
|
|
10229
10229
|
collection: n
|
|
10230
10230
|
}));
|
|
@@ -10241,9 +10241,9 @@ function Lv(t, e, n) {
|
|
|
10241
10241
|
]);
|
|
10242
10242
|
return _v.useSyncExternalStore(t, i);
|
|
10243
10243
|
}
|
|
10244
|
-
const Ov = typeof
|
|
10244
|
+
const Ov = typeof B.useSyncExternalStore == "function" ? B.useSyncExternalStore : Lv;
|
|
10245
10245
|
function zv(t) {
|
|
10246
|
-
let [e] = z(() => new
|
|
10246
|
+
let [e] = z(() => new Bv((t == null ? void 0 : t()) || new Tv())), n = X((o) => e.subscribe(o), [
|
|
10247
10247
|
e
|
|
10248
10248
|
]), r = X(() => {
|
|
10249
10249
|
let o = e.getCollection();
|
|
@@ -10274,11 +10274,11 @@ function jv(t, e, n, r, l, i) {
|
|
|
10274
10274
|
]), a = Y(Fr);
|
|
10275
10275
|
if (a) {
|
|
10276
10276
|
let u = a.ownerDocument.nodesByProps.get(e);
|
|
10277
|
-
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__ */
|
|
10277
|
+
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, {
|
|
10278
10278
|
value: u
|
|
10279
10279
|
}, l) : null;
|
|
10280
10280
|
}
|
|
10281
|
-
return /* @__PURE__ */
|
|
10281
|
+
return /* @__PURE__ */ B.createElement(t, {
|
|
10282
10282
|
ref: o
|
|
10283
10283
|
}, l);
|
|
10284
10284
|
}
|
|
@@ -10288,7 +10288,7 @@ function Vv(t, e) {
|
|
|
10288
10288
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
10289
10289
|
return e(l, i);
|
|
10290
10290
|
}
|
|
10291
|
-
return jv(t, l, i, "children" in l ? l.children : null, null, (a) => /* @__PURE__ */
|
|
10291
|
+
return jv(t, l, i, "children" in l ? l.children : null, null, (a) => /* @__PURE__ */ B.createElement(n, {
|
|
10292
10292
|
node: a
|
|
10293
10293
|
}));
|
|
10294
10294
|
});
|
|
@@ -10307,25 +10307,25 @@ function Wv(t) {
|
|
|
10307
10307
|
idScope: r,
|
|
10308
10308
|
dependencies: n
|
|
10309
10309
|
});
|
|
10310
|
-
return Y(Gt) && (l = /* @__PURE__ */
|
|
10310
|
+
return Y(Gt) && (l = /* @__PURE__ */ B.createElement(Uv, null, l)), e = V(() => ({
|
|
10311
10311
|
dependencies: n,
|
|
10312
10312
|
idScope: r
|
|
10313
10313
|
}), [
|
|
10314
10314
|
r,
|
|
10315
10315
|
...n
|
|
10316
|
-
]), /* @__PURE__ */
|
|
10316
|
+
]), /* @__PURE__ */ B.createElement(pi.Provider, {
|
|
10317
10317
|
value: e
|
|
10318
10318
|
}, l);
|
|
10319
10319
|
}
|
|
10320
10320
|
function Uv({ children: t }) {
|
|
10321
|
-
let e = Y(Gt), n = V(() => /* @__PURE__ */
|
|
10321
|
+
let e = Y(Gt), n = V(() => /* @__PURE__ */ B.createElement(Gt.Provider, {
|
|
10322
10322
|
value: null
|
|
10323
|
-
}, /* @__PURE__ */
|
|
10323
|
+
}, /* @__PURE__ */ B.createElement(Qs.Provider, {
|
|
10324
10324
|
value: !0
|
|
10325
10325
|
}, t)), [
|
|
10326
10326
|
t
|
|
10327
10327
|
]);
|
|
10328
|
-
return nt() ? /* @__PURE__ */
|
|
10328
|
+
return nt() ? /* @__PURE__ */ B.createElement(Fr.Provider, {
|
|
10329
10329
|
value: e
|
|
10330
10330
|
}, n) : /* @__PURE__ */ yi(n, e);
|
|
10331
10331
|
}
|
|
@@ -10348,7 +10348,7 @@ function vi(t, e, n) {
|
|
|
10348
10348
|
let i = r.render(r);
|
|
10349
10349
|
if (!n || r.type !== "item") return i;
|
|
10350
10350
|
let o = r.key, a = t.getKeyAfter(o);
|
|
10351
|
-
return /* @__PURE__ */
|
|
10351
|
+
return /* @__PURE__ */ B.createElement(B.Fragment, null, n({
|
|
10352
10352
|
type: "item",
|
|
10353
10353
|
key: o,
|
|
10354
10354
|
dropPosition: "before"
|
|
@@ -10371,12 +10371,12 @@ function qv(t) {
|
|
|
10371
10371
|
const hi = Symbol("default");
|
|
10372
10372
|
function Nn({ values: t, children: e }) {
|
|
10373
10373
|
for (let [n, r] of t)
|
|
10374
|
-
e = /* @__PURE__ */
|
|
10374
|
+
e = /* @__PURE__ */ B.createElement(n.Provider, {
|
|
10375
10375
|
value: r
|
|
10376
10376
|
}, e);
|
|
10377
10377
|
return e;
|
|
10378
10378
|
}
|
|
10379
|
-
function
|
|
10379
|
+
function Bt(t) {
|
|
10380
10380
|
let { className: e, style: n, children: r, defaultClassName: l, defaultChildren: i, defaultStyle: o, values: a } = t;
|
|
10381
10381
|
return V(() => {
|
|
10382
10382
|
let u, c, s;
|
|
@@ -10422,8 +10422,8 @@ function tc(t, e) {
|
|
|
10422
10422
|
}
|
|
10423
10423
|
return n;
|
|
10424
10424
|
}
|
|
10425
|
-
function
|
|
10426
|
-
let r = tc(n, t.slot) || {}, { ref: l, ...i } = r, o =
|
|
10425
|
+
function Zt(t, e, n) {
|
|
10426
|
+
let r = tc(n, t.slot) || {}, { ref: l, ...i } = r, o = Pn(V(() => ed(e, l), [
|
|
10427
10427
|
e,
|
|
10428
10428
|
l
|
|
10429
10429
|
])), a = H(i, t);
|
|
@@ -10475,7 +10475,7 @@ function nc(t, e, n) {
|
|
|
10475
10475
|
let l = window.getComputedStyle(t.current);
|
|
10476
10476
|
if (l.animationName && l.animationName !== "none" && l.animation !== r.current) {
|
|
10477
10477
|
let i = (a) => {
|
|
10478
|
-
a.target === t.current && (o.removeEventListener("animationend", i),
|
|
10478
|
+
a.target === t.current && (o.removeEventListener("animationend", i), Sn.flushSync(() => {
|
|
10479
10479
|
n();
|
|
10480
10480
|
}));
|
|
10481
10481
|
}, o = t.current;
|
|
@@ -10501,8 +10501,8 @@ const Qv = /* @__PURE__ */ Q(null), eh = /* @__PURE__ */ new Set([
|
|
|
10501
10501
|
"value"
|
|
10502
10502
|
]), th = /* @__PURE__ */ Q({});
|
|
10503
10503
|
function nh(t, e) {
|
|
10504
|
-
[t, e] =
|
|
10505
|
-
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } = In(t, e), { focusProps: o, isFocused: a, isFocusVisible: u } =
|
|
10504
|
+
[t, e] = Zt(t, e, th), t = rh(t);
|
|
10505
|
+
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } = In(t, e), { focusProps: o, isFocused: a, isFocusVisible: u } = Xt(t), { hoverProps: c, isHovered: s } = kt({
|
|
10506
10506
|
...t,
|
|
10507
10507
|
isDisabled: t.isDisabled || r
|
|
10508
10508
|
}), d = {
|
|
@@ -10512,7 +10512,7 @@ function nh(t, e) {
|
|
|
10512
10512
|
isFocusVisible: u,
|
|
10513
10513
|
isDisabled: t.isDisabled || !1,
|
|
10514
10514
|
isPending: r ?? !1
|
|
10515
|
-
}, f =
|
|
10515
|
+
}, f = Bt({
|
|
10516
10516
|
...t,
|
|
10517
10517
|
values: d,
|
|
10518
10518
|
defaultClassName: "react-aria-Button"
|
|
@@ -10523,13 +10523,13 @@ function nh(t, e) {
|
|
|
10523
10523
|
let E = {
|
|
10524
10524
|
"aria-labelledby": y || p
|
|
10525
10525
|
};
|
|
10526
|
-
(!g.current && a && r || g.current && a && !r) &&
|
|
10526
|
+
(!g.current && a && r || g.current && a && !r) && $n(E, "assertive"), g.current = r;
|
|
10527
10527
|
}, [
|
|
10528
10528
|
r,
|
|
10529
10529
|
a,
|
|
10530
10530
|
y,
|
|
10531
10531
|
p
|
|
10532
|
-
]), /* @__PURE__ */
|
|
10532
|
+
]), /* @__PURE__ */ B.createElement("button", {
|
|
10533
10533
|
...fe(t, {
|
|
10534
10534
|
propNames: eh
|
|
10535
10535
|
}),
|
|
@@ -10546,7 +10546,7 @@ function nh(t, e) {
|
|
|
10546
10546
|
"data-focused": a || void 0,
|
|
10547
10547
|
"data-pending": r || void 0,
|
|
10548
10548
|
"data-focus-visible": u || void 0
|
|
10549
|
-
}, /* @__PURE__ */
|
|
10549
|
+
}, /* @__PURE__ */ B.createElement(Qv.Provider, {
|
|
10550
10550
|
value: {
|
|
10551
10551
|
id: m
|
|
10552
10552
|
}
|
|
@@ -10559,19 +10559,19 @@ const rc = /* @__PURE__ */ Mv(nh), lh = /* @__PURE__ */ Q({}), ih = /* @__PURE__
|
|
|
10559
10559
|
placement: "bottom"
|
|
10560
10560
|
});
|
|
10561
10561
|
function ah(t, e) {
|
|
10562
|
-
[t, e] =
|
|
10562
|
+
[t, e] = Zt(t, e, lc);
|
|
10563
10563
|
let n = t.placement, r = {
|
|
10564
10564
|
position: "absolute",
|
|
10565
10565
|
[n]: "100%",
|
|
10566
10566
|
transform: n === "top" || n === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
|
|
10567
|
-
}, l =
|
|
10567
|
+
}, l = Bt({
|
|
10568
10568
|
...t,
|
|
10569
10569
|
defaultClassName: "react-aria-OverlayArrow",
|
|
10570
10570
|
values: {
|
|
10571
10571
|
placement: n
|
|
10572
10572
|
}
|
|
10573
10573
|
});
|
|
10574
|
-
return l.style && Object.keys(l.style).forEach((i) => l.style[i] === void 0 && delete l.style[i]), /* @__PURE__ */
|
|
10574
|
+
return l.style && Object.keys(l.style).forEach((i) => l.style[i] === void 0 && delete l.style[i]), /* @__PURE__ */ B.createElement("div", {
|
|
10575
10575
|
...t,
|
|
10576
10576
|
...l,
|
|
10577
10577
|
style: {
|
|
@@ -10584,7 +10584,7 @@ function ah(t, e) {
|
|
|
10584
10584
|
}
|
|
10585
10585
|
const uh = /* @__PURE__ */ dt(ah), _r = /* @__PURE__ */ Q(null), sh = /* @__PURE__ */ Q(null), ch = /* @__PURE__ */ Q({}), ic = /* @__PURE__ */ Q(null), sl = /* @__PURE__ */ Q(null), oc = /* @__PURE__ */ Q(null);
|
|
10586
10586
|
function dh(t) {
|
|
10587
|
-
let e = Xp(t), n = I(null), { menuTriggerProps: r, menuProps: l } =
|
|
10587
|
+
let e = Xp(t), n = I(null), { menuTriggerProps: r, menuProps: l } = Ba({
|
|
10588
10588
|
...t,
|
|
10589
10589
|
type: "menu"
|
|
10590
10590
|
}, e, n), [i, o] = z(null), a = X(() => {
|
|
@@ -10597,7 +10597,7 @@ function dh(t) {
|
|
|
10597
10597
|
onResize: a
|
|
10598
10598
|
});
|
|
10599
10599
|
let u = I(null);
|
|
10600
|
-
return /* @__PURE__ */
|
|
10600
|
+
return /* @__PURE__ */ B.createElement(Nn, {
|
|
10601
10601
|
values: [
|
|
10602
10602
|
[
|
|
10603
10603
|
ic,
|
|
@@ -10627,7 +10627,7 @@ function dh(t) {
|
|
|
10627
10627
|
}
|
|
10628
10628
|
]
|
|
10629
10629
|
]
|
|
10630
|
-
}, /* @__PURE__ */
|
|
10630
|
+
}, /* @__PURE__ */ B.createElement(Bd, {
|
|
10631
10631
|
...r,
|
|
10632
10632
|
ref: n,
|
|
10633
10633
|
isPressed: e.isOpen
|
|
@@ -10635,9 +10635,9 @@ function dh(t) {
|
|
|
10635
10635
|
}
|
|
10636
10636
|
const fh = /* @__PURE__ */ Q(null);
|
|
10637
10637
|
function ph(t, e) {
|
|
10638
|
-
return [t, e] =
|
|
10639
|
-
content: /* @__PURE__ */
|
|
10640
|
-
}, (n) => n.size > 0 && /* @__PURE__ */
|
|
10638
|
+
return [t, e] = Zt(t, e, ic), /* @__PURE__ */ B.createElement(Rv, {
|
|
10639
|
+
content: /* @__PURE__ */ B.createElement(Wv, t)
|
|
10640
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(vh, {
|
|
10641
10641
|
props: t,
|
|
10642
10642
|
collection: n,
|
|
10643
10643
|
menuRef: e
|
|
@@ -10674,20 +10674,20 @@ function vh({ props: t, collection: e, menuRef: n }) {
|
|
|
10674
10674
|
p,
|
|
10675
10675
|
l
|
|
10676
10676
|
]);
|
|
10677
|
-
let y =
|
|
10677
|
+
let y = Bt({
|
|
10678
10678
|
defaultClassName: "react-aria-Menu",
|
|
10679
10679
|
className: t.className,
|
|
10680
10680
|
style: t.style,
|
|
10681
10681
|
values: {}
|
|
10682
10682
|
});
|
|
10683
|
-
return /* @__PURE__ */
|
|
10683
|
+
return /* @__PURE__ */ B.createElement(An, null, /* @__PURE__ */ B.createElement("div", {
|
|
10684
10684
|
...fe(t),
|
|
10685
10685
|
...u,
|
|
10686
10686
|
...y,
|
|
10687
10687
|
ref: n,
|
|
10688
10688
|
slot: t.slot || void 0,
|
|
10689
10689
|
onScroll: t.onScroll
|
|
10690
|
-
}, /* @__PURE__ */
|
|
10690
|
+
}, /* @__PURE__ */ B.createElement(Nn, {
|
|
10691
10691
|
values: [
|
|
10692
10692
|
[
|
|
10693
10693
|
sl,
|
|
@@ -10722,11 +10722,11 @@ function vh({ props: t, collection: e, menuRef: n }) {
|
|
|
10722
10722
|
null
|
|
10723
10723
|
]
|
|
10724
10724
|
]
|
|
10725
|
-
}, /* @__PURE__ */
|
|
10725
|
+
}, /* @__PURE__ */ B.createElement(a, {
|
|
10726
10726
|
collection: e,
|
|
10727
10727
|
persistedKeys: qv(r.selectionManager.focusedKey),
|
|
10728
10728
|
scrollRef: n
|
|
10729
|
-
}))), /* @__PURE__ */
|
|
10729
|
+
}))), /* @__PURE__ */ B.createElement("div", {
|
|
10730
10730
|
ref: i,
|
|
10731
10731
|
style: {
|
|
10732
10732
|
width: "100vw",
|
|
@@ -10744,37 +10744,37 @@ function mh(t, e, n) {
|
|
|
10744
10744
|
let { headingProps: s, groupProps: d } = up({
|
|
10745
10745
|
heading: u,
|
|
10746
10746
|
"aria-label": (c = n.props["aria-label"]) !== null && c !== void 0 ? c : void 0
|
|
10747
|
-
}), f =
|
|
10747
|
+
}), f = Bt({
|
|
10748
10748
|
defaultClassName: "react-aria-Section",
|
|
10749
10749
|
className: (r = n.props) === null || r === void 0 ? void 0 : r.className,
|
|
10750
10750
|
style: (l = n.props) === null || l === void 0 ? void 0 : l.style,
|
|
10751
10751
|
values: {}
|
|
10752
10752
|
});
|
|
10753
|
-
return /* @__PURE__ */
|
|
10753
|
+
return /* @__PURE__ */ B.createElement("section", {
|
|
10754
10754
|
...fe(t),
|
|
10755
10755
|
...d,
|
|
10756
10756
|
...f,
|
|
10757
10757
|
ref: e
|
|
10758
|
-
}, /* @__PURE__ */
|
|
10758
|
+
}, /* @__PURE__ */ B.createElement(ih.Provider, {
|
|
10759
10759
|
value: {
|
|
10760
10760
|
...s,
|
|
10761
10761
|
ref: a
|
|
10762
10762
|
}
|
|
10763
|
-
}, /* @__PURE__ */
|
|
10763
|
+
}, /* @__PURE__ */ B.createElement(o, {
|
|
10764
10764
|
collection: i.collection,
|
|
10765
10765
|
parent: n
|
|
10766
10766
|
})));
|
|
10767
10767
|
}
|
|
10768
10768
|
const Rr = /* @__PURE__ */ Q(null), bh = /* @__PURE__ */ Vv("item", function(e, n, r) {
|
|
10769
10769
|
var l;
|
|
10770
|
-
[e, n] =
|
|
10771
|
-
let i = (l = tc(Rr)) === null || l === void 0 ? void 0 : l.id, o = Y(sl), a =
|
|
10770
|
+
[e, n] = Zt(e, n, Rr);
|
|
10771
|
+
let i = (l = tc(Rr)) === null || l === void 0 ? void 0 : l.id, o = Y(sl), a = Pn(n), { menuItemProps: u, labelProps: c, descriptionProps: s, keyboardShortcutProps: d, ...f } = Ma({
|
|
10772
10772
|
...e,
|
|
10773
10773
|
id: i,
|
|
10774
10774
|
key: r.key
|
|
10775
|
-
}, o, a), { isFocusVisible: p, focusProps: m } =
|
|
10775
|
+
}, o, a), { isFocusVisible: p, focusProps: m } = Xt(), { hoverProps: y, isHovered: g } = kt({
|
|
10776
10776
|
isDisabled: f.isDisabled
|
|
10777
|
-
}), E =
|
|
10777
|
+
}), E = Bt({
|
|
10778
10778
|
...e,
|
|
10779
10779
|
id: void 0,
|
|
10780
10780
|
children: r.rendered,
|
|
@@ -10789,7 +10789,7 @@ const Rr = /* @__PURE__ */ Q(null), bh = /* @__PURE__ */ Vv("item", function(e,
|
|
|
10789
10789
|
isOpen: e["aria-expanded"] === "true"
|
|
10790
10790
|
}
|
|
10791
10791
|
}), S = e.href ? "a" : "div";
|
|
10792
|
-
return /* @__PURE__ */
|
|
10792
|
+
return /* @__PURE__ */ B.createElement(S, {
|
|
10793
10793
|
...H(u, m, y),
|
|
10794
10794
|
...E,
|
|
10795
10795
|
ref: a,
|
|
@@ -10802,7 +10802,7 @@ const Rr = /* @__PURE__ */ Q(null), bh = /* @__PURE__ */ Vv("item", function(e,
|
|
|
10802
10802
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
10803
10803
|
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
10804
10804
|
"data-open": e["aria-expanded"] === "true" || void 0
|
|
10805
|
-
}, /* @__PURE__ */
|
|
10805
|
+
}, /* @__PURE__ */ B.createElement(Nn, {
|
|
10806
10806
|
values: [
|
|
10807
10807
|
[
|
|
10808
10808
|
lh,
|
|
@@ -10822,7 +10822,7 @@ const Rr = /* @__PURE__ */ Q(null), bh = /* @__PURE__ */ Vv("item", function(e,
|
|
|
10822
10822
|
}), cl = /* @__PURE__ */ Q(null), ac = /* @__PURE__ */ Q(null);
|
|
10823
10823
|
function gh(t) {
|
|
10824
10824
|
let e = Hs(t), n = I(null), { triggerProps: r, tooltipProps: l } = Up(t, e, n);
|
|
10825
|
-
return /* @__PURE__ */
|
|
10825
|
+
return /* @__PURE__ */ B.createElement(Nn, {
|
|
10826
10826
|
values: [
|
|
10827
10827
|
[
|
|
10828
10828
|
cl,
|
|
@@ -10836,17 +10836,17 @@ function gh(t) {
|
|
|
10836
10836
|
}
|
|
10837
10837
|
]
|
|
10838
10838
|
]
|
|
10839
|
-
}, /* @__PURE__ */
|
|
10839
|
+
}, /* @__PURE__ */ B.createElement(ef, {
|
|
10840
10840
|
...r,
|
|
10841
10841
|
ref: n
|
|
10842
10842
|
}, t.children));
|
|
10843
10843
|
}
|
|
10844
10844
|
function yh({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
10845
|
-
[e, n] =
|
|
10845
|
+
[e, n] = Zt(e, n, ac);
|
|
10846
10846
|
let r = Y(cl), l = Hs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o = Jv(n, i.isOpen) || e.isExiting || !1;
|
|
10847
|
-
return !i.isOpen && !o ? null : /* @__PURE__ */
|
|
10847
|
+
return !i.isOpen && !o ? null : /* @__PURE__ */ B.createElement(Vf, {
|
|
10848
10848
|
portalContainer: t
|
|
10849
|
-
}, /* @__PURE__ */
|
|
10849
|
+
}, /* @__PURE__ */ B.createElement(xh, {
|
|
10850
10850
|
...e,
|
|
10851
10851
|
tooltipRef: n,
|
|
10852
10852
|
isExiting: o
|
|
@@ -10871,7 +10871,7 @@ function xh(t) {
|
|
|
10871
10871
|
arrowSize: r,
|
|
10872
10872
|
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
10873
10873
|
shouldFlip: t.shouldFlip
|
|
10874
|
-
}), u = Zv(t.tooltipRef, !!a) || t.isEntering || !1, c =
|
|
10874
|
+
}), u = Zv(t.tooltipRef, !!a) || t.isEntering || !1, c = Bt({
|
|
10875
10875
|
...t,
|
|
10876
10876
|
defaultClassName: "react-aria-Tooltip",
|
|
10877
10877
|
values: {
|
|
@@ -10883,7 +10883,7 @@ function xh(t) {
|
|
|
10883
10883
|
});
|
|
10884
10884
|
t = H(t, i);
|
|
10885
10885
|
let { tooltipProps: s } = Wp(t, e);
|
|
10886
|
-
return /* @__PURE__ */
|
|
10886
|
+
return /* @__PURE__ */ B.createElement("div", {
|
|
10887
10887
|
...s,
|
|
10888
10888
|
ref: t.tooltipRef,
|
|
10889
10889
|
...c,
|
|
@@ -10894,7 +10894,7 @@ function xh(t) {
|
|
|
10894
10894
|
"data-placement": a,
|
|
10895
10895
|
"data-entering": u || void 0,
|
|
10896
10896
|
"data-exiting": t.isExiting || void 0
|
|
10897
|
-
}, /* @__PURE__ */
|
|
10897
|
+
}, /* @__PURE__ */ B.createElement(lc.Provider, {
|
|
10898
10898
|
value: {
|
|
10899
10899
|
...o,
|
|
10900
10900
|
placement: a,
|
|
@@ -11012,7 +11012,7 @@ function r4({
|
|
|
11012
11012
|
}
|
|
11013
11013
|
const Nr = (t) => {
|
|
11014
11014
|
let e = I(null), { state: n } = t, { listBoxProps: r } = np(t, n, e);
|
|
11015
|
-
return /* @__PURE__ */ b.jsx(
|
|
11015
|
+
return /* @__PURE__ */ b.jsx(An, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ b.jsx(
|
|
11016
11016
|
"ul",
|
|
11017
11017
|
{
|
|
11018
11018
|
...r,
|
|
@@ -11340,7 +11340,7 @@ function Dh({ column: t, state: e }) {
|
|
|
11340
11340
|
n
|
|
11341
11341
|
);
|
|
11342
11342
|
const { align: l = "left" } = t.props;
|
|
11343
|
-
let { isFocusVisible: i, focusProps: o } =
|
|
11343
|
+
let { isFocusVisible: i, focusProps: o } = Xt(), a = ((u = e.sortDescriptor) == null ? void 0 : u.direction) === "ascending" ? "▲" : "▼";
|
|
11344
11344
|
return /* @__PURE__ */ b.jsxs(
|
|
11345
11345
|
"th",
|
|
11346
11346
|
{
|
|
@@ -11390,7 +11390,7 @@ function kh({ item: t, children: e, state: n }) {
|
|
|
11390
11390
|
},
|
|
11391
11391
|
n,
|
|
11392
11392
|
r
|
|
11393
|
-
), { isFocusVisible: a, focusProps: u } =
|
|
11393
|
+
), { isFocusVisible: a, focusProps: u } = Xt();
|
|
11394
11394
|
return /* @__PURE__ */ b.jsx(
|
|
11395
11395
|
"tr",
|
|
11396
11396
|
{
|
|
@@ -11407,7 +11407,7 @@ function kh({ item: t, children: e, state: n }) {
|
|
|
11407
11407
|
);
|
|
11408
11408
|
}
|
|
11409
11409
|
function Th({ cell: t, state: e, ...n }) {
|
|
11410
|
-
let r = I(), { gridCellProps: l } = Vp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } =
|
|
11410
|
+
let r = I(), { gridCellProps: l } = Vp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Xt();
|
|
11411
11411
|
const { align: a } = t.props;
|
|
11412
11412
|
return /* @__PURE__ */ b.jsx(
|
|
11413
11413
|
"td",
|
|
@@ -11444,7 +11444,7 @@ function s4(t) {
|
|
|
11444
11444
|
/* @__PURE__ */ b.jsx(mi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(kh, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(Th, { cell: o, state: e }, o.key)) }, i.key)) })
|
|
11445
11445
|
] });
|
|
11446
11446
|
}
|
|
11447
|
-
function
|
|
11447
|
+
function Bh({ children: t, arrow: e, ...n }) {
|
|
11448
11448
|
const { style: r } = Ie();
|
|
11449
11449
|
return /* @__PURE__ */ b.jsxs(
|
|
11450
11450
|
$h,
|
|
@@ -11459,7 +11459,7 @@ function Ah({ children: t, arrow: e, ...n }) {
|
|
|
11459
11459
|
}
|
|
11460
11460
|
);
|
|
11461
11461
|
}
|
|
11462
|
-
function
|
|
11462
|
+
function Ah({
|
|
11463
11463
|
children: t,
|
|
11464
11464
|
// trigger props
|
|
11465
11465
|
delay: e = 500,
|
|
@@ -11496,7 +11496,7 @@ function Bh({
|
|
|
11496
11496
|
children: t
|
|
11497
11497
|
}
|
|
11498
11498
|
),
|
|
11499
|
-
/* @__PURE__ */ b.jsx(
|
|
11499
|
+
/* @__PURE__ */ b.jsx(Bh, { ...u, children: a })
|
|
11500
11500
|
]
|
|
11501
11501
|
}
|
|
11502
11502
|
);
|
|
@@ -11507,7 +11507,7 @@ const c4 = ({
|
|
|
11507
11507
|
tooltipProps: n,
|
|
11508
11508
|
"data-testid": r
|
|
11509
11509
|
}) => {
|
|
11510
|
-
const { className: l } = Ie(), i = n ? /* @__PURE__ */ b.jsx(
|
|
11510
|
+
const { className: l } = Ie(), i = n ? /* @__PURE__ */ b.jsx(Ah, { delay: 50, closeDelay: 75, ...n, children: e }) : e;
|
|
11511
11511
|
if (t) {
|
|
11512
11512
|
const o = Lr(t);
|
|
11513
11513
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11654,7 +11654,7 @@ function d4({
|
|
|
11654
11654
|
var T;
|
|
11655
11655
|
const $ = w / o * 100;
|
|
11656
11656
|
return (M === "start" ? Math.floor($ / 100 * d.length) : Math.ceil($ / 100 * d.length)) * _ / ((T = s.current) == null ? void 0 : T.clientWidth) * 100;
|
|
11657
|
-
},
|
|
11657
|
+
}, A = (P = s.current) == null ? void 0 : P.clientWidth;
|
|
11658
11658
|
return /* @__PURE__ */ b.jsxs("div", { className: W("proton-Waveform", c), "data-testid": u, children: [
|
|
11659
11659
|
i && /* @__PURE__ */ b.jsx(bi, { direction: "left", seconds: l }),
|
|
11660
11660
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -11715,9 +11715,9 @@ function d4({
|
|
|
11715
11715
|
{
|
|
11716
11716
|
className: "proton-Waveform__bar-unavailable",
|
|
11717
11717
|
style: {
|
|
11718
|
-
fontSize:
|
|
11718
|
+
fontSize: A < 325 ? "0.85rem" : "1rem"
|
|
11719
11719
|
},
|
|
11720
|
-
children:
|
|
11720
|
+
children: A < 277 ? "Unavailable" : "Waveform Unavailable"
|
|
11721
11721
|
}
|
|
11722
11722
|
),
|
|
11723
11723
|
i && /* @__PURE__ */ b.jsx(bi, { direction: "right", seconds: o })
|
|
@@ -11771,8 +11771,7 @@ function Nh({
|
|
|
11771
11771
|
{
|
|
11772
11772
|
isOpen: !0,
|
|
11773
11773
|
isDismissable: !0,
|
|
11774
|
-
isKeyboardDismissDisabled: !1
|
|
11775
|
-
onClose: () => e == null ? void 0 : e()
|
|
11774
|
+
isKeyboardDismissDisabled: !1
|
|
11776
11775
|
},
|
|
11777
11776
|
r
|
|
11778
11777
|
);
|
|
@@ -11784,7 +11783,7 @@ function Nh({
|
|
|
11784
11783
|
return document.addEventListener("keydown", i), () => {
|
|
11785
11784
|
document.removeEventListener("keydown", i);
|
|
11786
11785
|
};
|
|
11787
|
-
}, [e]), /* @__PURE__ */ b.
|
|
11786
|
+
}, [e]), /* @__PURE__ */ b.jsxs(
|
|
11788
11787
|
"div",
|
|
11789
11788
|
{
|
|
11790
11789
|
...l,
|
|
@@ -11798,12 +11797,12 @@ function Nh({
|
|
|
11798
11797
|
t ? "proton-Backdrop__fade-in" : "proton-Backdrop__overlay"
|
|
11799
11798
|
),
|
|
11800
11799
|
onClick: (i) => {
|
|
11801
|
-
i.target === i.currentTarget && (e == null || e());
|
|
11800
|
+
i.target === i.currentTarget && (i.stopPropagation(), e == null || e());
|
|
11802
11801
|
},
|
|
11803
|
-
children:
|
|
11802
|
+
children: [
|
|
11804
11803
|
e && /* @__PURE__ */ b.jsx("div", { className: "proton-Backdrop__close-button", "aria-hidden": "true", children: "ESC" }),
|
|
11805
11804
|
n
|
|
11806
|
-
]
|
|
11805
|
+
]
|
|
11807
11806
|
}
|
|
11808
11807
|
);
|
|
11809
11808
|
}
|
|
@@ -11878,8 +11877,8 @@ export {
|
|
|
11878
11877
|
Gh as TableHeader,
|
|
11879
11878
|
c4 as TextEmphasis,
|
|
11880
11879
|
Xh as ThemeProvider,
|
|
11881
|
-
|
|
11882
|
-
|
|
11880
|
+
Bh as Tooltip,
|
|
11881
|
+
Ah as TooltipTrigger,
|
|
11883
11882
|
d4 as Waveform,
|
|
11884
11883
|
n4 as usePopoverTrigger,
|
|
11885
11884
|
Ie as useTheme
|