@protonradio/proton-ui 0.6.18-beta.17 → 0.6.18-beta.18
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 +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +314 -320
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-DNt-oc_W.js +2 -0
- package/dist/utils-DNt-oc_W.js.map +1 -0
- package/dist/utils-KXsOHJro.mjs +122 -0
- package/dist/utils-KXsOHJro.mjs.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +16 -21
- package/dist/utils.es.js +10 -10
- package/package.json +1 -1
- package/dist/utils-DPt5Em4t.mjs +0 -140
- package/dist/utils-DPt5Em4t.mjs.map +0 -1
- package/dist/utils-DrtQpOwS.js +0 -2
- package/dist/utils-DrtQpOwS.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import B, { useRef as M, useCallback as X, useState as j, useContext as Y, useEffect as L, createContext as ee, useMemo as H, useLayoutEffect as Mc, createElement as bi, isValidElement as Fc, forwardRef as pt, cloneElement as Ic } from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import Cn, { flushSync as _c, createPortal as gi } from "react-dom";
|
|
3
|
+
import { c as U, i as Lr, h as $i } from "./utils-KXsOHJro.mjs";
|
|
4
4
|
import { THEMES as ze, BREAKPOINTS as yi } from "./constants.es.js";
|
|
5
|
-
import { transparentize as st, toRgba as
|
|
6
|
-
import { G as ye, S as
|
|
5
|
+
import { transparentize as st, toRgba as Gn } from "color2k";
|
|
6
|
+
import { G as ye, S as tn, W as nn, D as rn, B as Nc } from "./colors-Dwh4VIMR.mjs";
|
|
7
7
|
import { c as dh } from "./colors-Dwh4VIMR.mjs";
|
|
8
|
-
var dr = { exports: {} },
|
|
8
|
+
var dr = { exports: {} }, Ft = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,7 +17,7 @@ var dr = { exports: {} }, It = {};
|
|
|
17
17
|
*/
|
|
18
18
|
var Sl;
|
|
19
19
|
function Rc() {
|
|
20
|
-
if (Sl) return
|
|
20
|
+
if (Sl) return Ft;
|
|
21
21
|
Sl = 1;
|
|
22
22
|
var t = B, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function o(a, u, s) {
|
|
@@ -27,9 +27,9 @@ function Rc() {
|
|
|
27
27
|
if (a && a.defaultProps) for (c in u = a.defaultProps, u) d[c] === void 0 && (d[c] = u[c]);
|
|
28
28
|
return { $$typeof: e, type: a, key: f, ref: p, props: d, _owner: l.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return Ft.Fragment = n, Ft.jsx = o, Ft.jsxs = o, Ft;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var It = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -283,14 +283,14 @@ function Lc() {
|
|
|
283
283
|
var yt = h ? h.displayName || h.name : "", it = yt ? ht(yt) : "";
|
|
284
284
|
return typeof h == "function" && bt.set(h, it), it;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function On(h, K, N) {
|
|
287
287
|
return gt(h, !1);
|
|
288
288
|
}
|
|
289
289
|
function cc(h) {
|
|
290
290
|
var K = h.prototype;
|
|
291
291
|
return !!(K && K.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Qt(h, K, N) {
|
|
294
294
|
if (h == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof h == "function")
|
|
@@ -306,13 +306,13 @@ function Lc() {
|
|
|
306
306
|
if (typeof h == "object")
|
|
307
307
|
switch (h.$$typeof) {
|
|
308
308
|
case u:
|
|
309
|
-
return
|
|
309
|
+
return On(h.render);
|
|
310
310
|
case d:
|
|
311
|
-
return
|
|
311
|
+
return Qt(h.type, K, N);
|
|
312
312
|
case f: {
|
|
313
313
|
var V = h, J = V._payload, te = V._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return Qt(te(J), K, N);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -320,9 +320,9 @@ function Lc() {
|
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
322
|
var Kt = Object.prototype.hasOwnProperty, cl = {}, dl = E.ReactDebugCurrentFrame;
|
|
323
|
-
function
|
|
323
|
+
function en(h) {
|
|
324
324
|
if (h) {
|
|
325
|
-
var K = h._owner, N =
|
|
325
|
+
var K = h._owner, N = Qt(h.type, h._source, K ? K.type : null);
|
|
326
326
|
dl.setExtraStackFrame(N);
|
|
327
327
|
} else
|
|
328
328
|
dl.setExtraStackFrame(null);
|
|
@@ -342,12 +342,12 @@ function Lc() {
|
|
|
342
342
|
} catch (ie) {
|
|
343
343
|
G = ie;
|
|
344
344
|
}
|
|
345
|
-
G && !(G instanceof Error) && (
|
|
345
|
+
G && !(G instanceof Error) && (en(J), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", V || "React class", N, q, typeof G), en(null)), G instanceof Error && !(G.message in cl) && (cl[G.message] = !0, en(J), S("Failed %s type: %s", N, G.message), en(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var fc = Array.isArray;
|
|
350
|
-
function
|
|
350
|
+
function zn(h) {
|
|
351
351
|
return fc(h);
|
|
352
352
|
}
|
|
353
353
|
function pc(h) {
|
|
@@ -375,8 +375,8 @@ function Lc() {
|
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
|
-
}, vl, hl,
|
|
379
|
-
|
|
378
|
+
}, vl, hl, jn;
|
|
379
|
+
jn = {};
|
|
380
380
|
function mc(h) {
|
|
381
381
|
if (Kt.call(h, "ref")) {
|
|
382
382
|
var K = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
@@ -396,7 +396,7 @@ function Lc() {
|
|
|
396
396
|
function gc(h, K) {
|
|
397
397
|
if (typeof h.ref == "string" && Mt.current && K && Mt.current.stateNode !== K) {
|
|
398
398
|
var N = x(Mt.current.type);
|
|
399
|
-
|
|
399
|
+
jn[N] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', x(Mt.current.type), h.ref), jn[N] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function $c(h, K) {
|
|
@@ -468,23 +468,23 @@ function Lc() {
|
|
|
468
468
|
return xc(h, G, he, J, V, Mt.current, q);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var Vn = E.ReactCurrentOwner, ml = E.ReactDebugCurrentFrame;
|
|
472
472
|
function $t(h) {
|
|
473
473
|
if (h) {
|
|
474
|
-
var K = h._owner, N =
|
|
474
|
+
var K = h._owner, N = Qt(h.type, h._source, K ? K.type : null);
|
|
475
475
|
ml.setExtraStackFrame(N);
|
|
476
476
|
} else
|
|
477
477
|
ml.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
function
|
|
479
|
+
var Hn;
|
|
480
|
+
Hn = !1;
|
|
481
|
+
function Wn(h) {
|
|
482
482
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
483
483
|
}
|
|
484
484
|
function bl() {
|
|
485
485
|
{
|
|
486
|
-
if (
|
|
487
|
-
var h = x(
|
|
486
|
+
if (Vn.current) {
|
|
487
|
+
var h = x(Vn.current.type);
|
|
488
488
|
if (h)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -519,25 +519,25 @@ Check the top-level render call using <` + N + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
gl[N] = !0;
|
|
521
521
|
var V = "";
|
|
522
|
-
h && h._owner && h._owner !==
|
|
522
|
+
h && h._owner && h._owner !== Vn.current && (V = " It was passed a child from " + x(h._owner.type) + "."), $t(h), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, V), $t(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function yl(h, K) {
|
|
526
526
|
{
|
|
527
527
|
if (typeof h != "object")
|
|
528
528
|
return;
|
|
529
|
-
if (
|
|
529
|
+
if (zn(h))
|
|
530
530
|
for (var N = 0; N < h.length; N++) {
|
|
531
531
|
var V = h[N];
|
|
532
|
-
|
|
532
|
+
Wn(V) && $l(V, K);
|
|
533
533
|
}
|
|
534
|
-
else if (
|
|
534
|
+
else if (Wn(h))
|
|
535
535
|
h._store && (h._store.validated = !0);
|
|
536
536
|
else if (h) {
|
|
537
537
|
var J = g(h);
|
|
538
538
|
if (typeof J == "function" && J !== h.entries)
|
|
539
539
|
for (var te = J.call(h), q; !(q = te.next()).done; )
|
|
540
|
-
|
|
540
|
+
Wn(q.value) && $l(q.value, K);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -558,8 +558,8 @@ Check the top-level render call using <` + N + ">.");
|
|
|
558
558
|
if (N) {
|
|
559
559
|
var V = x(K);
|
|
560
560
|
dc(N, h.props, "prop", V, h);
|
|
561
|
-
} else if (K.PropTypes !== void 0 && !
|
|
562
|
-
|
|
561
|
+
} else if (K.PropTypes !== void 0 && !Hn) {
|
|
562
|
+
Hn = !0;
|
|
563
563
|
var J = x(K);
|
|
564
564
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", J || "Unknown");
|
|
565
565
|
}
|
|
@@ -588,7 +588,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
588
588
|
var he = Sc();
|
|
589
589
|
he ? G += he : G += bl();
|
|
590
590
|
var ie;
|
|
591
|
-
h === null ? ie = "null" :
|
|
591
|
+
h === null ? ie = "null" : zn(h) ? ie = "array" : h !== void 0 && h.$$typeof === e ? (ie = "<" + (x(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof h, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, G);
|
|
592
592
|
}
|
|
593
593
|
var se = Ec(h, K, N, J, te);
|
|
594
594
|
if (se == null)
|
|
@@ -597,7 +597,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
597
597
|
var Ce = K.children;
|
|
598
598
|
if (Ce !== void 0)
|
|
599
599
|
if (V)
|
|
600
|
-
if (
|
|
600
|
+
if (zn(Ce)) {
|
|
601
601
|
for (var yt = 0; yt < Ce.length; yt++)
|
|
602
602
|
yl(Ce[yt], h);
|
|
603
603
|
Object.freeze && Object.freeze(Ce);
|
|
@@ -609,15 +609,15 @@ Check the top-level render call using <` + N + ">.");
|
|
|
609
609
|
if (Kt.call(K, "key")) {
|
|
610
610
|
var it = x(h), ge = Object.keys(K).filter(function(Kc) {
|
|
611
611
|
return Kc !== "key";
|
|
612
|
-
}),
|
|
613
|
-
if (!xl[it +
|
|
612
|
+
}), Un = ge.length > 0 ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
+
if (!xl[it + Un]) {
|
|
614
614
|
var Ac = ge.length > 0 ? "{" + ge.join(": ..., ") + ": ...}" : "{}";
|
|
615
615
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
619
619
|
let props = %s;
|
|
620
|
-
<%s key={someKey} {...props} />`,
|
|
620
|
+
<%s key={someKey} {...props} />`, Un, it, Ac, it), xl[it + Un] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return h === r ? Pc(se) : wc(se), se;
|
|
@@ -630,8 +630,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
630
|
return El(h, K, N, !1);
|
|
631
631
|
}
|
|
632
632
|
var Tc = kc, Bc = Dc;
|
|
633
|
-
|
|
634
|
-
}()),
|
|
633
|
+
It.Fragment = r, It.jsx = Tc, It.jsxs = Bc;
|
|
634
|
+
}()), It;
|
|
635
635
|
}
|
|
636
636
|
process.env.NODE_ENV === "production" ? dr.exports = Rc() : dr.exports = Lc();
|
|
637
637
|
var b = dr.exports;
|
|
@@ -669,10 +669,10 @@ function Oc(t) {
|
|
|
669
669
|
i
|
|
670
670
|
];
|
|
671
671
|
}
|
|
672
|
-
const
|
|
672
|
+
const pn = {
|
|
673
673
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
674
674
|
current: 0
|
|
675
|
-
}, xi = /* @__PURE__ */ B.createContext(
|
|
675
|
+
}, xi = /* @__PURE__ */ B.createContext(pn), zc = /* @__PURE__ */ B.createContext(!1);
|
|
676
676
|
let jc = !!(typeof window < "u" && window.document && window.document.createElement), Yn = /* @__PURE__ */ new WeakMap();
|
|
677
677
|
function Vc(t = !1) {
|
|
678
678
|
let e = Y(xi), n = M(null);
|
|
@@ -692,12 +692,12 @@ function Vc(t = !1) {
|
|
|
692
692
|
}
|
|
693
693
|
function Hc(t) {
|
|
694
694
|
let e = Y(xi);
|
|
695
|
-
e ===
|
|
696
|
-
let n = Vc(!!t), r = e ===
|
|
695
|
+
e === pn && !jc && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
696
|
+
let n = Vc(!!t), r = e === pn && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
697
697
|
return t || `${r}-${n}`;
|
|
698
698
|
}
|
|
699
699
|
function Wc(t) {
|
|
700
|
-
let e = B.useId(), [n] = j(rt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${
|
|
700
|
+
let e = B.useId(), [n] = j(rt()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${pn.prefix}`;
|
|
701
701
|
return t || `${r}-${e}`;
|
|
702
702
|
}
|
|
703
703
|
const Uc = typeof B.useId == "function" ? Wc : Hc;
|
|
@@ -833,20 +833,20 @@ function Le(t) {
|
|
|
833
833
|
t.focus(), od(e);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
let
|
|
836
|
+
let ln = null;
|
|
837
837
|
function ld() {
|
|
838
|
-
if (
|
|
839
|
-
|
|
838
|
+
if (ln == null) {
|
|
839
|
+
ln = !1;
|
|
840
840
|
try {
|
|
841
841
|
document.createElement("div").focus({
|
|
842
842
|
get preventScroll() {
|
|
843
|
-
return
|
|
843
|
+
return ln = !0, !0;
|
|
844
844
|
}
|
|
845
845
|
});
|
|
846
846
|
} catch {
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return ln;
|
|
850
850
|
}
|
|
851
851
|
function id(t) {
|
|
852
852
|
let e = t.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
@@ -866,7 +866,7 @@ function od(t) {
|
|
|
866
866
|
for (let { element: e, scrollTop: n, scrollLeft: r } of t)
|
|
867
867
|
e.scrollTop = n, e.scrollLeft = r;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function wn(t) {
|
|
870
870
|
var e;
|
|
871
871
|
return typeof window > "u" || window.navigator == null ? !1 : ((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands.some((n) => t.test(n.brand))) || t.test(window.navigator.userAgent);
|
|
872
872
|
}
|
|
@@ -885,24 +885,24 @@ const nt = He(function() {
|
|
|
885
885
|
}), Si = He(function() {
|
|
886
886
|
return Or(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
887
887
|
nt() && navigator.maxTouchPoints > 1;
|
|
888
|
-
}),
|
|
888
|
+
}), Pn = He(function() {
|
|
889
889
|
return ad() || Si();
|
|
890
890
|
}), ud = He(function() {
|
|
891
|
-
return nt() ||
|
|
891
|
+
return nt() || Pn();
|
|
892
892
|
}), zr = He(function() {
|
|
893
|
-
return
|
|
893
|
+
return wn(/AppleWebKit/i) && !sd();
|
|
894
894
|
}), sd = He(function() {
|
|
895
|
-
return
|
|
896
|
-
}),
|
|
897
|
-
return
|
|
895
|
+
return wn(/Chrome/i);
|
|
896
|
+
}), vn = He(function() {
|
|
897
|
+
return wn(/Android/i);
|
|
898
898
|
}), cd = He(function() {
|
|
899
|
-
return
|
|
899
|
+
return wn(/Firefox/i);
|
|
900
900
|
}), dd = /* @__PURE__ */ ee({
|
|
901
901
|
isNative: !0,
|
|
902
902
|
open: pd,
|
|
903
903
|
useHref: (t) => t
|
|
904
904
|
});
|
|
905
|
-
function
|
|
905
|
+
function qt() {
|
|
906
906
|
return Y(dd);
|
|
907
907
|
}
|
|
908
908
|
function ct(t, e, n = !0) {
|
|
@@ -937,7 +937,7 @@ function pd(t, e) {
|
|
|
937
937
|
fd(t, (n) => ct(n, e));
|
|
938
938
|
}
|
|
939
939
|
function vd(t) {
|
|
940
|
-
let e =
|
|
940
|
+
let e = qt();
|
|
941
941
|
var n;
|
|
942
942
|
const r = e.useHref((n = t.href) !== null && n !== void 0 ? n : "");
|
|
943
943
|
return {
|
|
@@ -950,7 +950,7 @@ function vd(t) {
|
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
function Ci(t) {
|
|
953
|
-
let e =
|
|
953
|
+
let e = qt();
|
|
954
954
|
var n;
|
|
955
955
|
const r = e.useHref((n = t == null ? void 0 : t.href) !== null && n !== void 0 ? n : "");
|
|
956
956
|
return {
|
|
@@ -1033,7 +1033,7 @@ function Di(t, e) {
|
|
|
1033
1033
|
"aria-labelledby": l
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Dn(t) {
|
|
1037
1037
|
const e = M(null);
|
|
1038
1038
|
return H(() => ({
|
|
1039
1039
|
get current() {
|
|
@@ -1089,24 +1089,24 @@ function jr(t, e) {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function Vt(t, e) {
|
|
1093
1093
|
let n = window.getComputedStyle(t), r = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
|
|
1094
1094
|
return r && e && (r = t.scrollHeight !== t.clientHeight || t.scrollWidth !== t.clientWidth), r;
|
|
1095
1095
|
}
|
|
1096
1096
|
function Ze(t, e) {
|
|
1097
1097
|
let n = t;
|
|
1098
|
-
for (
|
|
1098
|
+
for (Vt(n, e) && (n = n.parentElement); n && !Vt(n, e); ) n = n.parentElement;
|
|
1099
1099
|
return n || document.scrollingElement || document.documentElement;
|
|
1100
1100
|
}
|
|
1101
1101
|
function md(t, e) {
|
|
1102
1102
|
const n = [];
|
|
1103
1103
|
for (; t && t !== document.documentElement; )
|
|
1104
|
-
|
|
1104
|
+
Vt(t, e) && n.push(t), t = t.parentElement;
|
|
1105
1105
|
return n;
|
|
1106
1106
|
}
|
|
1107
1107
|
let bd = 0;
|
|
1108
1108
|
const qn = /* @__PURE__ */ new Map();
|
|
1109
|
-
function
|
|
1109
|
+
function kn(t) {
|
|
1110
1110
|
let [e, n] = j();
|
|
1111
1111
|
return Q(() => {
|
|
1112
1112
|
if (!t) return;
|
|
@@ -1189,12 +1189,12 @@ function Je(t, e) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
function vr(t) {
|
|
1192
|
-
return t.mozInputSource === 0 && t.isTrusted ? !0 :
|
|
1192
|
+
return t.mozInputSource === 0 && t.isTrusted ? !0 : vn() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
1193
1193
|
}
|
|
1194
1194
|
function gd(t) {
|
|
1195
|
-
return !
|
|
1195
|
+
return !vn() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Tn(t, e, n) {
|
|
1198
1198
|
let r = M(e), l = ae(() => {
|
|
1199
1199
|
n && n(r.current);
|
|
1200
1200
|
});
|
|
@@ -1238,18 +1238,18 @@ function lt(t, e, n) {
|
|
|
1238
1238
|
function hr(t, e = -1 / 0, n = 1 / 0) {
|
|
1239
1239
|
return Math.min(Math.max(t, e), n);
|
|
1240
1240
|
}
|
|
1241
|
-
let Pt = "default", mr = "",
|
|
1241
|
+
let Pt = "default", mr = "", fn = /* @__PURE__ */ new WeakMap();
|
|
1242
1242
|
function kl(t) {
|
|
1243
|
-
if (
|
|
1243
|
+
if (Pn()) {
|
|
1244
1244
|
if (Pt === "default") {
|
|
1245
1245
|
const e = re(t);
|
|
1246
1246
|
mr = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
|
|
1247
1247
|
}
|
|
1248
1248
|
Pt = "disabled";
|
|
1249
|
-
} else (t instanceof HTMLElement || t instanceof SVGElement) && (
|
|
1249
|
+
} else (t instanceof HTMLElement || t instanceof SVGElement) && (fn.set(t, t.style.userSelect), t.style.userSelect = "none");
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1252
|
-
if (
|
|
1251
|
+
function on(t) {
|
|
1252
|
+
if (Pn()) {
|
|
1253
1253
|
if (Pt !== "disabled") return;
|
|
1254
1254
|
Pt = "restoring", setTimeout(() => {
|
|
1255
1255
|
wi(() => {
|
|
@@ -1259,16 +1259,16 @@ function an(t) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
}, 300);
|
|
1262
|
-
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t &&
|
|
1263
|
-
let e =
|
|
1264
|
-
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"),
|
|
1262
|
+
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && fn.has(t)) {
|
|
1263
|
+
let e = fn.get(t);
|
|
1264
|
+
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), fn.delete(t);
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
const
|
|
1267
|
+
const Ht = B.createContext({
|
|
1268
1268
|
register: () => {
|
|
1269
1269
|
}
|
|
1270
1270
|
});
|
|
1271
|
-
|
|
1271
|
+
Ht.displayName = "PressResponderContext";
|
|
1272
1272
|
function $d(t, e) {
|
|
1273
1273
|
return e.get ? e.get.call(t) : e.value;
|
|
1274
1274
|
}
|
|
@@ -1300,26 +1300,26 @@ function Tl(t, e, n) {
|
|
|
1300
1300
|
return Sd(t, r, n), n;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Cd(t) {
|
|
1303
|
-
let e = Y(
|
|
1303
|
+
let e = Y(Ht);
|
|
1304
1304
|
if (e) {
|
|
1305
1305
|
let { register: n, ...r } = e;
|
|
1306
1306
|
t = W(r, t), n();
|
|
1307
1307
|
}
|
|
1308
1308
|
return jr(e, t.ref), t;
|
|
1309
1309
|
}
|
|
1310
|
-
var
|
|
1311
|
-
class
|
|
1310
|
+
var an = /* @__PURE__ */ new WeakMap();
|
|
1311
|
+
class un {
|
|
1312
1312
|
continuePropagation() {
|
|
1313
|
-
Tl(this,
|
|
1313
|
+
Tl(this, an, !1);
|
|
1314
1314
|
}
|
|
1315
1315
|
get shouldStopPropagation() {
|
|
1316
|
-
return yd(this,
|
|
1316
|
+
return yd(this, an);
|
|
1317
1317
|
}
|
|
1318
1318
|
constructor(e, n, r, l) {
|
|
1319
|
-
Ed(this,
|
|
1319
|
+
Ed(this, an, {
|
|
1320
1320
|
writable: !0,
|
|
1321
1321
|
value: void 0
|
|
1322
|
-
}), Tl(this,
|
|
1322
|
+
}), Tl(this, an, !0);
|
|
1323
1323
|
var i;
|
|
1324
1324
|
let o = (i = l == null ? void 0 : l.target) !== null && i !== void 0 ? i : r.currentTarget;
|
|
1325
1325
|
const a = o == null ? void 0 : o.getBoundingClientRect();
|
|
@@ -1358,7 +1358,7 @@ function je(t) {
|
|
|
1358
1358
|
if (o || w.didFirePressStart) return !1;
|
|
1359
1359
|
let T = !0;
|
|
1360
1360
|
if (w.isTriggeringEvent = !0, r) {
|
|
1361
|
-
let I = new
|
|
1361
|
+
let I = new un("pressstart", A, v);
|
|
1362
1362
|
r(I), T = I.shouldStopPropagation;
|
|
1363
1363
|
}
|
|
1364
1364
|
return n && n(!0), w.isTriggeringEvent = !1, w.didFirePressStart = !0, m(!0), T;
|
|
@@ -1368,11 +1368,11 @@ function je(t) {
|
|
|
1368
1368
|
T.ignoreClickAfterPress = !0, T.didFirePressStart = !1, T.isTriggeringEvent = !0;
|
|
1369
1369
|
let I = !0;
|
|
1370
1370
|
if (l) {
|
|
1371
|
-
let x = new
|
|
1371
|
+
let x = new un("pressend", A, v);
|
|
1372
1372
|
l(x), I = x.shouldStopPropagation;
|
|
1373
1373
|
}
|
|
1374
1374
|
if (n && n(!1), m(!1), e && w && !o) {
|
|
1375
|
-
let x = new
|
|
1375
|
+
let x = new un("press", A, v);
|
|
1376
1376
|
e(x), I && (I = x.shouldStopPropagation);
|
|
1377
1377
|
}
|
|
1378
1378
|
return T.isTriggeringEvent = !1, I;
|
|
@@ -1381,13 +1381,13 @@ function je(t) {
|
|
|
1381
1381
|
if (o) return !1;
|
|
1382
1382
|
if (i) {
|
|
1383
1383
|
w.isTriggeringEvent = !0;
|
|
1384
|
-
let T = new
|
|
1384
|
+
let T = new un("pressup", A, v);
|
|
1385
1385
|
return i(T), w.isTriggeringEvent = !1, T.shouldStopPropagation;
|
|
1386
1386
|
}
|
|
1387
1387
|
return !0;
|
|
1388
1388
|
}), C = ae((v) => {
|
|
1389
1389
|
let A = $.current;
|
|
1390
|
-
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && y(Ie(A.target, v), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, E(), c ||
|
|
1390
|
+
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && y(Ie(A.target, v), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, E(), c || on(A.target));
|
|
1391
1391
|
}), P = ae((v) => {
|
|
1392
1392
|
s && C(v);
|
|
1393
1393
|
}), _ = H(() => {
|
|
@@ -1450,7 +1450,7 @@ function je(t) {
|
|
|
1450
1450
|
let T = (D) => {
|
|
1451
1451
|
D.pointerId === v.activePointerId && (v.target && xt(D, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(Ie(v.target, D), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, y(Ie(v.target, D), v.pointerType, !1), P(D)));
|
|
1452
1452
|
}, I = (D) => {
|
|
1453
|
-
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (xt(D, v.target) && v.pointerType != null ? y(Ie(v.target, D), v.pointerType) : v.isOverTarget && v.pointerType != null && y(Ie(v.target, D), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, E(), c ||
|
|
1453
|
+
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (xt(D, v.target) && v.pointerType != null ? y(Ie(v.target, D), v.pointerType) : v.isOverTarget && v.pointerType != null && y(Ie(v.target, D), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, E(), c || on(v.target), "ontouchend" in v.target && D.pointerType !== "mouse" && g(v.target, "touchend", x, {
|
|
1454
1454
|
once: !0
|
|
1455
1455
|
}));
|
|
1456
1456
|
}, x = (D) => {
|
|
@@ -1509,7 +1509,7 @@ function je(t) {
|
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
1511
|
let R = Al(x.nativeEvent, v.activePointerId), D = !0;
|
|
1512
|
-
R && xt(R, x.currentTarget) && v.pointerType != null ? (k(qe(v.target, x), v.pointerType), D = y(qe(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (D = y(qe(v.target, x), v.pointerType, !1)), D && x.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c &&
|
|
1512
|
+
R && xt(R, x.currentTarget) && v.pointerType != null ? (k(qe(v.target, x), v.pointerType), D = y(qe(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (D = y(qe(v.target, x), v.pointerType, !1)), D && x.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), E();
|
|
1513
1513
|
}, A.onTouchCancel = (x) => {
|
|
1514
1514
|
x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed && C(qe(v.target, x)));
|
|
1515
1515
|
};
|
|
@@ -1541,7 +1541,7 @@ function je(t) {
|
|
|
1541
1541
|
]);
|
|
1542
1542
|
return L(() => () => {
|
|
1543
1543
|
var v;
|
|
1544
|
-
c ||
|
|
1544
|
+
c || on((v = $.current.target) !== null && v !== void 0 ? v : void 0);
|
|
1545
1545
|
}, [
|
|
1546
1546
|
c
|
|
1547
1547
|
]), {
|
|
@@ -1633,8 +1633,8 @@ function Ki(t, e) {
|
|
|
1633
1633
|
return t.type === "checkbox" || t.type === "radio" ? e === " " : kd.has(t.type);
|
|
1634
1634
|
}
|
|
1635
1635
|
const Td = /* @__PURE__ */ B.forwardRef(({ children: t, ...e }, n) => {
|
|
1636
|
-
let r = M(!1), l = Y(
|
|
1637
|
-
n =
|
|
1636
|
+
let r = M(!1), l = Y(Ht);
|
|
1637
|
+
n = Dn(n || (l == null ? void 0 : l.ref));
|
|
1638
1638
|
let i = W(l || {}, {
|
|
1639
1639
|
...e,
|
|
1640
1640
|
ref: n,
|
|
@@ -1644,7 +1644,7 @@ const Td = /* @__PURE__ */ B.forwardRef(({ children: t, ...e }, n) => {
|
|
|
1644
1644
|
});
|
|
1645
1645
|
return jr(l, n), L(() => {
|
|
1646
1646
|
r.current || (console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), r.current = !0);
|
|
1647
|
-
}, []), /* @__PURE__ */ B.createElement(
|
|
1647
|
+
}, []), /* @__PURE__ */ B.createElement(Ht.Provider, {
|
|
1648
1648
|
value: i
|
|
1649
1649
|
}, t);
|
|
1650
1650
|
});
|
|
@@ -1653,7 +1653,7 @@ function Bd({ children: t }) {
|
|
|
1653
1653
|
register: () => {
|
|
1654
1654
|
}
|
|
1655
1655
|
}), []);
|
|
1656
|
-
return /* @__PURE__ */ B.createElement(
|
|
1656
|
+
return /* @__PURE__ */ B.createElement(Ht.Provider, {
|
|
1657
1657
|
value: e
|
|
1658
1658
|
}, t);
|
|
1659
1659
|
}
|
|
@@ -1721,7 +1721,7 @@ function Mi(t) {
|
|
|
1721
1721
|
n
|
|
1722
1722
|
]);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Bn(t) {
|
|
1725
1725
|
let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: l } = t;
|
|
1726
1726
|
const i = X((u) => {
|
|
1727
1727
|
if (u.target === u.currentTarget)
|
|
@@ -1744,76 +1744,76 @@ function An(t) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
1746
|
}
|
|
1747
|
-
let Ve = null,
|
|
1747
|
+
let Ve = null, Wt = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), dt = !1, br = !1;
|
|
1748
1748
|
const Kd = {
|
|
1749
1749
|
Tab: !0,
|
|
1750
1750
|
Escape: !0
|
|
1751
1751
|
};
|
|
1752
|
-
function
|
|
1753
|
-
for (let n of
|
|
1752
|
+
function An(t, e) {
|
|
1753
|
+
for (let n of Wt) n(t, e);
|
|
1754
1754
|
}
|
|
1755
1755
|
function Md(t) {
|
|
1756
1756
|
return !(t.metaKey || !nt() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1759
|
-
dt = !0, Md(t) && (Ve = "keyboard",
|
|
1758
|
+
function hn(t) {
|
|
1759
|
+
dt = !0, Md(t) && (Ve = "keyboard", An("keyboard", t));
|
|
1760
1760
|
}
|
|
1761
1761
|
function Pe(t) {
|
|
1762
|
-
Ve = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (dt = !0,
|
|
1762
|
+
Ve = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (dt = !0, An("pointer", t));
|
|
1763
1763
|
}
|
|
1764
1764
|
function Fi(t) {
|
|
1765
1765
|
vr(t) && (dt = !0, Ve = "virtual");
|
|
1766
1766
|
}
|
|
1767
1767
|
function Ii(t) {
|
|
1768
|
-
t.target === window || t.target === document || (!dt && !br && (Ve = "virtual",
|
|
1768
|
+
t.target === window || t.target === document || (!dt && !br && (Ve = "virtual", An("virtual", t)), dt = !1, br = !1);
|
|
1769
1769
|
}
|
|
1770
1770
|
function _i() {
|
|
1771
1771
|
dt = !1, br = !0;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
if (typeof window > "u" ||
|
|
1773
|
+
function mn(t) {
|
|
1774
|
+
if (typeof window > "u" || jt.get(De(t))) return;
|
|
1775
1775
|
const e = De(t), n = re(t);
|
|
1776
1776
|
let r = e.HTMLElement.prototype.focus;
|
|
1777
1777
|
e.HTMLElement.prototype.focus = function() {
|
|
1778
1778
|
dt = !0, r.apply(this, arguments);
|
|
1779
|
-
}, n.addEventListener("keydown",
|
|
1779
|
+
}, n.addEventListener("keydown", hn, !0), n.addEventListener("keyup", hn, !0), n.addEventListener("click", Fi, !0), e.addEventListener("focus", Ii, !0), e.addEventListener("blur", _i, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Pe, !0), n.addEventListener("pointermove", Pe, !0), n.addEventListener("pointerup", Pe, !0)) : (n.addEventListener("mousedown", Pe, !0), n.addEventListener("mousemove", Pe, !0), n.addEventListener("mouseup", Pe, !0)), e.addEventListener("beforeunload", () => {
|
|
1780
1780
|
Ni(t);
|
|
1781
1781
|
}, {
|
|
1782
1782
|
once: !0
|
|
1783
|
-
}),
|
|
1783
|
+
}), jt.set(e, {
|
|
1784
1784
|
focus: r
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
const Ni = (t, e) => {
|
|
1788
1788
|
const n = De(t), r = re(t);
|
|
1789
|
-
e && r.removeEventListener("DOMContentLoaded", e),
|
|
1789
|
+
e && r.removeEventListener("DOMContentLoaded", e), jt.has(n) && (n.HTMLElement.prototype.focus = jt.get(n).focus, r.removeEventListener("keydown", hn, !0), r.removeEventListener("keyup", hn, !0), r.removeEventListener("click", Fi, !0), n.removeEventListener("focus", Ii, !0), n.removeEventListener("blur", _i, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Pe, !0), r.removeEventListener("pointermove", Pe, !0), r.removeEventListener("pointerup", Pe, !0)) : (r.removeEventListener("mousedown", Pe, !0), r.removeEventListener("mousemove", Pe, !0), r.removeEventListener("mouseup", Pe, !0)), jt.delete(n));
|
|
1790
1790
|
};
|
|
1791
1791
|
function Fd(t) {
|
|
1792
1792
|
const e = re(t);
|
|
1793
1793
|
let n;
|
|
1794
|
-
return e.readyState !== "loading" ?
|
|
1795
|
-
|
|
1794
|
+
return e.readyState !== "loading" ? mn(t) : (n = () => {
|
|
1795
|
+
mn(t);
|
|
1796
1796
|
}, e.addEventListener("DOMContentLoaded", n)), () => Ni(t, n);
|
|
1797
1797
|
}
|
|
1798
1798
|
typeof document < "u" && Fd();
|
|
1799
1799
|
function ft() {
|
|
1800
1800
|
return Ve !== "pointer";
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function bn() {
|
|
1803
1803
|
return Ve;
|
|
1804
1804
|
}
|
|
1805
1805
|
function Ri(t) {
|
|
1806
|
-
Ve = t,
|
|
1806
|
+
Ve = t, An(t, null);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Li() {
|
|
1809
|
-
|
|
1809
|
+
mn();
|
|
1810
1810
|
let [t, e] = j(Ve);
|
|
1811
1811
|
return L(() => {
|
|
1812
1812
|
let n = () => {
|
|
1813
1813
|
e(Ve);
|
|
1814
1814
|
};
|
|
1815
|
-
return
|
|
1816
|
-
|
|
1815
|
+
return Wt.add(n), () => {
|
|
1816
|
+
Wt.delete(n);
|
|
1817
1817
|
};
|
|
1818
1818
|
}, []), rt() ? null : t;
|
|
1819
1819
|
}
|
|
@@ -1834,16 +1834,16 @@ function _d(t, e, n) {
|
|
|
1834
1834
|
return t = t || (n == null ? void 0 : n.target) instanceof l && !Id.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof o && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof a && !Kd[n.key]);
|
|
1835
1835
|
}
|
|
1836
1836
|
function Nd(t, e, n) {
|
|
1837
|
-
|
|
1837
|
+
mn(), L(() => {
|
|
1838
1838
|
let r = (l, i) => {
|
|
1839
1839
|
_d(!!(n != null && n.isTextInput), l, i) && t(ft());
|
|
1840
1840
|
};
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1841
|
+
return Wt.add(r), () => {
|
|
1842
|
+
Wt.delete(r);
|
|
1843
1843
|
};
|
|
1844
1844
|
}, e);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function Xt(t) {
|
|
1847
1847
|
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: l } = t, i = M({
|
|
1848
1848
|
isFocusWithin: !1
|
|
1849
1849
|
}), o = X((s) => {
|
|
@@ -1872,10 +1872,10 @@ function Zt(t) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
|
-
let
|
|
1875
|
+
let gn = !1, Jn = 0;
|
|
1876
1876
|
function gr() {
|
|
1877
|
-
|
|
1878
|
-
|
|
1877
|
+
gn = !0, setTimeout(() => {
|
|
1878
|
+
gn = !1;
|
|
1879
1879
|
}, 50);
|
|
1880
1880
|
}
|
|
1881
1881
|
function Ml(t) {
|
|
@@ -1916,13 +1916,13 @@ function Tt(t) {
|
|
|
1916
1916
|
}), n && n(!1), o(!1);
|
|
1917
1917
|
}, f = {};
|
|
1918
1918
|
return typeof PointerEvent < "u" ? (f.onPointerEnter = (p) => {
|
|
1919
|
-
|
|
1919
|
+
gn && p.pointerType === "mouse" || c(p, p.pointerType);
|
|
1920
1920
|
}, f.onPointerLeave = (p) => {
|
|
1921
1921
|
!l && p.currentTarget.contains(p.target) && d(p, p.pointerType);
|
|
1922
1922
|
}) : (f.onTouchStart = () => {
|
|
1923
1923
|
a.ignoreEmulatedMouseEvents = !0;
|
|
1924
1924
|
}, f.onMouseEnter = (p) => {
|
|
1925
|
-
!a.ignoreEmulatedMouseEvents &&
|
|
1925
|
+
!a.ignoreEmulatedMouseEvents && !gn && c(p, "mouse"), a.ignoreEmulatedMouseEvents = !1;
|
|
1926
1926
|
}, f.onMouseLeave = (p) => {
|
|
1927
1927
|
!l && p.currentTarget.contains(p.target) && d(p, "mouse");
|
|
1928
1928
|
}), {
|
|
@@ -1952,7 +1952,7 @@ function Oi(t) {
|
|
|
1952
1952
|
isPointerDown: !1,
|
|
1953
1953
|
ignoreEmulatedMouseEvents: !1
|
|
1954
1954
|
}), o = ae((u) => {
|
|
1955
|
-
n &&
|
|
1955
|
+
n && sn(u, e) && (l && l(u), i.current.isPointerDown = !0);
|
|
1956
1956
|
}), a = ae((u) => {
|
|
1957
1957
|
n && n(u);
|
|
1958
1958
|
});
|
|
@@ -1962,16 +1962,16 @@ function Oi(t) {
|
|
|
1962
1962
|
const s = e.current, c = re(s);
|
|
1963
1963
|
if (typeof PointerEvent < "u") {
|
|
1964
1964
|
let d = (f) => {
|
|
1965
|
-
u.isPointerDown &&
|
|
1965
|
+
u.isPointerDown && sn(f, e) && a(f), u.isPointerDown = !1;
|
|
1966
1966
|
};
|
|
1967
1967
|
return c.addEventListener("pointerdown", o, !0), c.addEventListener("pointerup", d, !0), () => {
|
|
1968
1968
|
c.removeEventListener("pointerdown", o, !0), c.removeEventListener("pointerup", d, !0);
|
|
1969
1969
|
};
|
|
1970
1970
|
} else {
|
|
1971
1971
|
let d = (p) => {
|
|
1972
|
-
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown &&
|
|
1972
|
+
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && sn(p, e) && a(p), u.isPointerDown = !1;
|
|
1973
1973
|
}, f = (p) => {
|
|
1974
|
-
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown &&
|
|
1974
|
+
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && sn(p, e) && a(p), u.isPointerDown = !1;
|
|
1975
1975
|
};
|
|
1976
1976
|
return c.addEventListener("mousedown", o, !0), c.addEventListener("mouseup", d, !0), c.addEventListener("touchstart", o, !0), c.addEventListener("touchend", f, !0), () => {
|
|
1977
1977
|
c.removeEventListener("mousedown", o, !0), c.removeEventListener("mouseup", d, !0), c.removeEventListener("touchstart", o, !0), c.removeEventListener("touchend", f, !0);
|
|
@@ -1984,7 +1984,7 @@ function Oi(t) {
|
|
|
1984
1984
|
a
|
|
1985
1985
|
]);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function sn(t, e) {
|
|
1988
1988
|
if (t.button > 0) return !1;
|
|
1989
1989
|
if (t.target) {
|
|
1990
1990
|
const n = t.target.ownerDocument;
|
|
@@ -2060,14 +2060,14 @@ function ji(t) {
|
|
|
2060
2060
|
type: "longpressend"
|
|
2061
2061
|
});
|
|
2062
2062
|
}
|
|
2063
|
-
}), d =
|
|
2063
|
+
}), d = kn(l && !e ? o : void 0);
|
|
2064
2064
|
return {
|
|
2065
2065
|
longPressProps: W(c, d)
|
|
2066
2066
|
};
|
|
2067
2067
|
}
|
|
2068
2068
|
function me(t) {
|
|
2069
2069
|
const e = re(t);
|
|
2070
|
-
if (
|
|
2070
|
+
if (bn() === "virtual") {
|
|
2071
2071
|
let n = e.activeElement;
|
|
2072
2072
|
wi(() => {
|
|
2073
2073
|
e.activeElement === n && t.isConnected && Le(t);
|
|
@@ -2094,7 +2094,7 @@ function Vi(t, e) {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
const Il = /* @__PURE__ */ B.createContext(null), $r = "react-aria-focus-scope-restore";
|
|
2096
2096
|
let ne = null;
|
|
2097
|
-
function
|
|
2097
|
+
function Kn(t) {
|
|
2098
2098
|
let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = M(null), o = M(null), a = M([]), { parentNode: u } = Y(Il) || {}, s = H(() => new xr({
|
|
2099
2099
|
scopeRef: a
|
|
2100
2100
|
}), [
|
|
@@ -2102,7 +2102,7 @@ function Mn(t) {
|
|
|
2102
2102
|
]);
|
|
2103
2103
|
Q(() => {
|
|
2104
2104
|
let f = u || de.root;
|
|
2105
|
-
if (de.getTreeNode(f.scopeRef) && ne && !
|
|
2105
|
+
if (de.getTreeNode(f.scopeRef) && ne && !yn(ne, f.scopeRef)) {
|
|
2106
2106
|
let p = de.getTreeNode(ne);
|
|
2107
2107
|
p && (f = p);
|
|
2108
2108
|
}
|
|
@@ -2137,7 +2137,7 @@ function Mn(t) {
|
|
|
2137
2137
|
]), Q(() => () => {
|
|
2138
2138
|
var f, p, m;
|
|
2139
2139
|
let $ = (m = (p = de.getTreeNode(a)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
|
|
2140
|
-
(a === ne ||
|
|
2140
|
+
(a === ne || yn(a, ne)) && (!$ || de.getTreeNode($)) && (ne = $), de.removeTreeNode(a);
|
|
2141
2141
|
}, [
|
|
2142
2142
|
a
|
|
2143
2143
|
]);
|
|
@@ -2220,7 +2220,7 @@ const Hd = Hr.join(':not([hidden]):not([tabindex="-1"]),');
|
|
|
2220
2220
|
function ut(t) {
|
|
2221
2221
|
return t[0].parentElement;
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Ot(t) {
|
|
2224
2224
|
let e = de.getTreeNode(ne);
|
|
2225
2225
|
for (; e && e.scopeRef !== t; ) {
|
|
2226
2226
|
if (e.contain) return !1;
|
|
@@ -2238,7 +2238,7 @@ function Wd(t, e) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
const i = re(l ? l[0] : void 0);
|
|
2240
2240
|
let o = (s) => {
|
|
2241
|
-
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !
|
|
2241
|
+
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !Ot(t) || s.isComposing) return;
|
|
2242
2242
|
let c = i.activeElement, d = t.current;
|
|
2243
2243
|
if (!d || !pe(c, d)) return;
|
|
2244
2244
|
let f = ut(d), p = xe(f, {
|
|
@@ -2249,10 +2249,10 @@ function Wd(t, e) {
|
|
|
2249
2249
|
let m = s.shiftKey ? p.previousNode() : p.nextNode();
|
|
2250
2250
|
m || (p.currentNode = s.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, m = s.shiftKey ? p.previousNode() : p.nextNode()), s.preventDefault(), m && Oe(m, !0);
|
|
2251
2251
|
}, a = (s) => {
|
|
2252
|
-
(!ne ||
|
|
2252
|
+
(!ne || yn(ne, t)) && pe(s.target, t.current) ? (ne = t, n.current = s.target) : Ot(t) && !$n(s.target, t) ? n.current ? n.current.focus() : ne && ne.current && yr(ne.current) : Ot(t) && (n.current = s.target);
|
|
2253
2253
|
}, u = (s) => {
|
|
2254
2254
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2255
|
-
if (i.activeElement &&
|
|
2255
|
+
if (i.activeElement && Ot(t) && !$n(i.activeElement, t))
|
|
2256
2256
|
if (ne = t, i.body.contains(s.target)) {
|
|
2257
2257
|
var c;
|
|
2258
2258
|
n.current = s.target, (c = n.current) === null || c === void 0 || c.focus();
|
|
@@ -2272,21 +2272,21 @@ function Wd(t, e) {
|
|
|
2272
2272
|
]);
|
|
2273
2273
|
}
|
|
2274
2274
|
function Hi(t) {
|
|
2275
|
-
return
|
|
2275
|
+
return $n(t);
|
|
2276
2276
|
}
|
|
2277
2277
|
function pe(t, e) {
|
|
2278
2278
|
return !t || !e ? !1 : e.some((n) => n.contains(t));
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function $n(t, e = null) {
|
|
2281
2281
|
if (t instanceof Element && t.closest("[data-react-aria-top-layer]")) return !0;
|
|
2282
2282
|
for (let { scopeRef: n } of de.traverse(de.getTreeNode(e)))
|
|
2283
2283
|
if (n && pe(t, n.current)) return !0;
|
|
2284
2284
|
return !1;
|
|
2285
2285
|
}
|
|
2286
2286
|
function Ud(t) {
|
|
2287
|
-
return
|
|
2287
|
+
return $n(t, ne);
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function yn(t, e) {
|
|
2290
2290
|
var n;
|
|
2291
2291
|
let r = (n = de.getTreeNode(e)) === null || n === void 0 ? void 0 : n.parent;
|
|
2292
2292
|
for (; r; ) {
|
|
@@ -2364,7 +2364,7 @@ function Xd(t, e, n) {
|
|
|
2364
2364
|
const i = re(l ? l[0] : void 0);
|
|
2365
2365
|
if (!e || n) return;
|
|
2366
2366
|
let o = () => {
|
|
2367
|
-
(!ne ||
|
|
2367
|
+
(!ne || yn(ne, t)) && pe(i.activeElement, t.current) && (ne = t);
|
|
2368
2368
|
};
|
|
2369
2369
|
return i.addEventListener("focusin", o, !1), l == null || l.forEach((a) => a.addEventListener("focusin", o, !1)), () => {
|
|
2370
2370
|
i.removeEventListener("focusin", o, !1), l == null || l.forEach((a) => a.removeEventListener("focusin", o, !1));
|
|
@@ -2376,7 +2376,7 @@ function Xd(t, e, n) {
|
|
|
2376
2376
|
const l = re(t.current ? t.current[0] : void 0);
|
|
2377
2377
|
if (!e) return;
|
|
2378
2378
|
let i = (o) => {
|
|
2379
|
-
if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey || !
|
|
2379
|
+
if (o.key !== "Tab" || o.altKey || o.ctrlKey || o.metaKey || !Ot(t) || o.isComposing) return;
|
|
2380
2380
|
let a = l.activeElement;
|
|
2381
2381
|
if (!pe(a, t.current)) return;
|
|
2382
2382
|
let u = de.getTreeNode(t);
|
|
@@ -2513,7 +2513,7 @@ class xr {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
2515
|
let de = new Wr();
|
|
2516
|
-
function
|
|
2516
|
+
function Zt(t = {}) {
|
|
2517
2517
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = M({
|
|
2518
2518
|
isFocused: !1,
|
|
2519
2519
|
isFocusVisible: e || ft()
|
|
@@ -2527,10 +2527,10 @@ function Jt(t = {}) {
|
|
|
2527
2527
|
}, [], {
|
|
2528
2528
|
isTextInput: n
|
|
2529
2529
|
});
|
|
2530
|
-
let { focusProps: d } =
|
|
2530
|
+
let { focusProps: d } = Bn({
|
|
2531
2531
|
isDisabled: r,
|
|
2532
2532
|
onFocusChange: c
|
|
2533
|
-
}), { focusWithinProps: f } =
|
|
2533
|
+
}), { focusWithinProps: f } = Xt({
|
|
2534
2534
|
isDisabled: !r,
|
|
2535
2535
|
onFocusWithinChange: c
|
|
2536
2536
|
});
|
|
@@ -2548,7 +2548,7 @@ function Zd(t) {
|
|
|
2548
2548
|
return r;
|
|
2549
2549
|
}
|
|
2550
2550
|
function Jd(t, e) {
|
|
2551
|
-
let { children: n, ...r } = t, l =
|
|
2551
|
+
let { children: n, ...r } = t, l = Dn(e), i = {
|
|
2552
2552
|
...r,
|
|
2553
2553
|
ref: l
|
|
2554
2554
|
};
|
|
@@ -2558,7 +2558,7 @@ function Jd(t, e) {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
let Qd = /* @__PURE__ */ B.forwardRef(Jd);
|
|
2560
2560
|
function Bt(t, e) {
|
|
2561
|
-
let { focusProps: n } =
|
|
2561
|
+
let { focusProps: n } = Bn(t), { keyboardProps: r } = zi(t), l = W(n, r), i = Zd(e), o = t.isDisabled ? {} : i, a = M(t.autoFocus);
|
|
2562
2562
|
return L(() => {
|
|
2563
2563
|
a.current && e.current && me(e.current), a.current = !1;
|
|
2564
2564
|
}, [
|
|
@@ -2654,15 +2654,15 @@ function Gi() {
|
|
|
2654
2654
|
direction: rf(t) ? "rtl" : "ltr"
|
|
2655
2655
|
};
|
|
2656
2656
|
}
|
|
2657
|
-
let Er = Gi(),
|
|
2657
|
+
let Er = Gi(), zt = /* @__PURE__ */ new Set();
|
|
2658
2658
|
function Nl() {
|
|
2659
2659
|
Er = Gi();
|
|
2660
|
-
for (let t of
|
|
2660
|
+
for (let t of zt) t(Er);
|
|
2661
2661
|
}
|
|
2662
2662
|
function of() {
|
|
2663
2663
|
let t = rt(), [e, n] = j(Er);
|
|
2664
|
-
return L(() => (
|
|
2665
|
-
|
|
2664
|
+
return L(() => (zt.size === 0 && window.addEventListener("languagechange", Nl), zt.add(n), () => {
|
|
2665
|
+
zt.delete(n), zt.size === 0 && window.removeEventListener("languagechange", Nl);
|
|
2666
2666
|
}), []), t ? {
|
|
2667
2667
|
locale: "en-US",
|
|
2668
2668
|
direction: "ltr"
|
|
@@ -2675,7 +2675,7 @@ function We() {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
const uf = Symbol.for("react-aria.i18n.locale"), sf = Symbol.for("react-aria.i18n.strings");
|
|
2677
2677
|
let Et;
|
|
2678
|
-
class
|
|
2678
|
+
class Mn {
|
|
2679
2679
|
/** Returns a localized string for the given key and locale. */
|
|
2680
2680
|
getStringForLocale(e, n) {
|
|
2681
2681
|
let l = this.getStringsForLocale(n)[e];
|
|
@@ -2694,7 +2694,7 @@ class Fn {
|
|
|
2694
2694
|
let l = window[sf];
|
|
2695
2695
|
if (!l) return null;
|
|
2696
2696
|
Et = {};
|
|
2697
|
-
for (let i in l) Et[i] = new
|
|
2697
|
+
for (let i in l) Et[i] = new Mn({
|
|
2698
2698
|
[n]: l[i]
|
|
2699
2699
|
}, n);
|
|
2700
2700
|
}
|
|
@@ -2749,10 +2749,10 @@ class ff {
|
|
|
2749
2749
|
const Ol = /* @__PURE__ */ new WeakMap();
|
|
2750
2750
|
function pf(t) {
|
|
2751
2751
|
let e = Ol.get(t);
|
|
2752
|
-
return e || (e = new
|
|
2752
|
+
return e || (e = new Mn(t), Ol.set(t, e)), e;
|
|
2753
2753
|
}
|
|
2754
2754
|
function vf(t, e) {
|
|
2755
|
-
return e &&
|
|
2755
|
+
return e && Mn.getGlobalDictionaryForPackage(e) || pf(t);
|
|
2756
2756
|
}
|
|
2757
2757
|
function vt(t, e) {
|
|
2758
2758
|
let { locale: n } = We(), r = vf(t, e);
|
|
@@ -2762,13 +2762,13 @@ function vt(t, e) {
|
|
|
2762
2762
|
]);
|
|
2763
2763
|
}
|
|
2764
2764
|
let Qn = /* @__PURE__ */ new Map();
|
|
2765
|
-
function
|
|
2765
|
+
function Fn(t) {
|
|
2766
2766
|
let { locale: e } = We(), n = e + (t ? Object.entries(t).sort((l, i) => l[0] < i[0] ? -1 : 1).join() : "");
|
|
2767
2767
|
if (Qn.has(n)) return Qn.get(n);
|
|
2768
2768
|
let r = new Intl.Collator(e, t);
|
|
2769
2769
|
return Qn.set(n, r), r;
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function In(t, e) {
|
|
2772
2772
|
let {
|
|
2773
2773
|
elementType: n = "button",
|
|
2774
2774
|
isDisabled: r,
|
|
@@ -2828,7 +2828,7 @@ function _n(t, e) {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
const Yi = 7e3;
|
|
2830
2830
|
let Ae = null;
|
|
2831
|
-
function
|
|
2831
|
+
function xn(t, e = "assertive", n = Yi) {
|
|
2832
2832
|
Ae ? Ae.announce(t, e, n) : (Ae = new hf(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ae.announce(t, e, n) : setTimeout(() => {
|
|
2833
2833
|
Ae != null && Ae.isAttached() && (Ae == null || Ae.announce(t, e, n));
|
|
2834
2834
|
}, 100));
|
|
@@ -2956,7 +2956,7 @@ const qi = {
|
|
|
2956
2956
|
...qi,
|
|
2957
2957
|
customError: !0,
|
|
2958
2958
|
valid: !1
|
|
2959
|
-
},
|
|
2959
|
+
}, _t = {
|
|
2960
2960
|
isInvalid: !1,
|
|
2961
2961
|
validationDetails: qi,
|
|
2962
2962
|
validationErrors: []
|
|
@@ -2994,20 +2994,20 @@ function yf(t) {
|
|
|
2994
2994
|
let g = H(() => jl(m ? [] : d), [
|
|
2995
2995
|
m,
|
|
2996
2996
|
d
|
|
2997
|
-
]), E = M(
|
|
2997
|
+
]), E = M(_t), [S, y] = j(_t), k = M(_t), C = () => {
|
|
2998
2998
|
if (!P) return;
|
|
2999
2999
|
_(!1);
|
|
3000
3000
|
let w = s || i || E.current;
|
|
3001
3001
|
er(w, k.current) || (k.current = w, y(w));
|
|
3002
3002
|
}, [P, _] = j(!1);
|
|
3003
3003
|
return L(C), {
|
|
3004
|
-
realtimeValidation: u || g || s || i ||
|
|
3004
|
+
realtimeValidation: u || g || s || i || _t,
|
|
3005
3005
|
displayValidation: a === "native" ? u || g || S : u || g || s || i || S,
|
|
3006
3006
|
updateValidation(w) {
|
|
3007
3007
|
a === "aria" && !er(S, w) ? y(w) : E.current = w;
|
|
3008
3008
|
},
|
|
3009
3009
|
resetValidation() {
|
|
3010
|
-
let w =
|
|
3010
|
+
let w = _t;
|
|
3011
3011
|
er(w, k.current) || (k.current = w, y(w)), a === "native" && _(!1), $(!0);
|
|
3012
3012
|
},
|
|
3013
3013
|
commitValidation() {
|
|
@@ -3052,7 +3052,7 @@ function Ef(t, e, n) {
|
|
|
3052
3052
|
}), { focusableProps: y } = Bt(t, n), k = W($, y), C = ve(t, {
|
|
3053
3053
|
labelable: !0
|
|
3054
3054
|
});
|
|
3055
|
-
return
|
|
3055
|
+
return Tn(n, e.isSelected, e.setSelected), {
|
|
3056
3056
|
labelProps: W(E, {
|
|
3057
3057
|
onClick: (P) => P.preventDefault()
|
|
3058
3058
|
}),
|
|
@@ -3152,7 +3152,7 @@ const Vl = {
|
|
|
3152
3152
|
whiteSpace: "nowrap"
|
|
3153
3153
|
};
|
|
3154
3154
|
function Ji(t = {}) {
|
|
3155
|
-
let { style: e, isFocusable: n } = t, [r, l] = j(!1), { focusWithinProps: i } =
|
|
3155
|
+
let { style: e, isFocusable: n } = t, [r, l] = j(!1), { focusWithinProps: i } = Xt({
|
|
3156
3156
|
isDisabled: !n,
|
|
3157
3157
|
onFocusWithinChange: (a) => l(a)
|
|
3158
3158
|
}), o = H(() => r ? e : e ? {
|
|
@@ -3187,7 +3187,7 @@ function Qi(t, e) {
|
|
|
3187
3187
|
type: o,
|
|
3188
3188
|
pattern: t.pattern
|
|
3189
3189
|
};
|
|
3190
|
-
return
|
|
3190
|
+
return Tn(e, u, s), Ur(t, d, e), L(() => {
|
|
3191
3191
|
if (e.current instanceof De(e.current).HTMLTextAreaElement) {
|
|
3192
3192
|
let C = e.current;
|
|
3193
3193
|
Object.defineProperty(C, "defaultValue", {
|
|
@@ -3248,7 +3248,7 @@ const Ke = {
|
|
|
3248
3248
|
bottom: "top",
|
|
3249
3249
|
left: "left",
|
|
3250
3250
|
right: "left"
|
|
3251
|
-
},
|
|
3251
|
+
}, En = {
|
|
3252
3252
|
top: "bottom",
|
|
3253
3253
|
bottom: "top",
|
|
3254
3254
|
left: "right",
|
|
@@ -3262,7 +3262,7 @@ const Ke = {
|
|
|
3262
3262
|
}, eo = {
|
|
3263
3263
|
width: "totalWidth",
|
|
3264
3264
|
height: "totalHeight"
|
|
3265
|
-
},
|
|
3265
|
+
}, cn = {};
|
|
3266
3266
|
let $e = typeof document < "u" && window.visualViewport;
|
|
3267
3267
|
function Hl(t) {
|
|
3268
3268
|
let e = 0, n = 0, r = 0, l = 0, i = 0, o = 0, a = {}, u = ($e == null ? void 0 : $e.scale) > 1;
|
|
@@ -3307,18 +3307,18 @@ function Pf(t) {
|
|
|
3307
3307
|
};
|
|
3308
3308
|
}
|
|
3309
3309
|
function Ul(t) {
|
|
3310
|
-
if (
|
|
3310
|
+
if (cn[t]) return cn[t];
|
|
3311
3311
|
let [e, n] = t.split(" "), r = Ke[e] || "right", l = Cf[r];
|
|
3312
3312
|
Ke[n] || (n = "center");
|
|
3313
3313
|
let i = Cr[r], o = Cr[l];
|
|
3314
|
-
return
|
|
3314
|
+
return cn[t] = {
|
|
3315
3315
|
placement: e,
|
|
3316
3316
|
crossPlacement: n,
|
|
3317
3317
|
axis: r,
|
|
3318
3318
|
crossAxis: l,
|
|
3319
3319
|
size: i,
|
|
3320
3320
|
crossSize: o
|
|
3321
|
-
},
|
|
3321
|
+
}, cn[t];
|
|
3322
3322
|
}
|
|
3323
3323
|
function tr(t, e, n, r, l, i, o, a, u, s) {
|
|
3324
3324
|
let { placement: c, crossPlacement: d, axis: f, crossAxis: p, size: m, crossSize: $ } = r, g = {};
|
|
@@ -3326,7 +3326,7 @@ function tr(t, e, n, r, l, i, o, a, u, s) {
|
|
|
3326
3326
|
const E = t[p] - n[$] + u + s, S = t[p] + t[$] - u - s;
|
|
3327
3327
|
if (g[p] = hr(g[p], E, S), c === f) {
|
|
3328
3328
|
const y = a ? o[m] : e[eo[m]];
|
|
3329
|
-
g[
|
|
3329
|
+
g[En[f]] = Math.floor(y - t[f] + l);
|
|
3330
3330
|
} else g[f] = Math.floor(t[f] + t[m] + l);
|
|
3331
3331
|
return g;
|
|
3332
3332
|
}
|
|
@@ -3340,12 +3340,12 @@ function Df(t, e, n, r, l, i, o, a) {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
function Gl(t, e, n, r, l, i) {
|
|
3342
3342
|
let { placement: o, axis: a, size: u } = i;
|
|
3343
|
-
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[
|
|
3343
|
+
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[En[a]] - l) : Math.max(0, t[u] + t[a] + t.scroll[a] - e[a] - n[a] - n[u] - r[a] - r[En[a]] - l);
|
|
3344
3344
|
}
|
|
3345
3345
|
function kf(t, e, n, r, l, i, o, a, u, s, c, d, f, p, m, $) {
|
|
3346
3346
|
let g = Ul(t), { size: E, crossAxis: S, crossSize: y, placement: k, crossPlacement: C } = g, P = tr(e, a, n, g, c, d, s, f, m, $), _ = c, v = Gl(a, s, e, l, i + c, g);
|
|
3347
3347
|
if (o && r[E] > v) {
|
|
3348
|
-
let fe = Ul(`${
|
|
3348
|
+
let fe = Ul(`${En[k]} ${C}`), Be = tr(e, a, n, fe, c, d, s, f, m, $);
|
|
3349
3349
|
Gl(a, s, e, l, i + c, fe) > v && (g = fe, P = Be, _ = c);
|
|
3350
3350
|
}
|
|
3351
3351
|
let A = "bottom";
|
|
@@ -3591,7 +3591,7 @@ function ro(t, e) {
|
|
|
3591
3591
|
onInteractOutside: i && l ? c : null,
|
|
3592
3592
|
onInteractOutsideStart: s
|
|
3593
3593
|
});
|
|
3594
|
-
let { focusWithinProps: f } =
|
|
3594
|
+
let { focusWithinProps: f } = Xt({
|
|
3595
3595
|
isDisabled: !r,
|
|
3596
3596
|
onBlurWithin: (m) => {
|
|
3597
3597
|
!m.relatedTarget || Ud(m.relatedTarget) || (!a || a(m.relatedTarget)) && n();
|
|
@@ -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 dn = 0, rr;
|
|
3644
3644
|
function If(t = {}) {
|
|
3645
3645
|
let { isDisabled: e } = t;
|
|
3646
3646
|
Q(() => {
|
|
3647
3647
|
if (!e)
|
|
3648
|
-
return
|
|
3649
|
-
|
|
3648
|
+
return dn++, dn === 1 && (Pn() ? rr = Nf() : rr = _f()), () => {
|
|
3649
|
+
dn--, dn === 0 && rr();
|
|
3650
3650
|
};
|
|
3651
3651
|
}, [
|
|
3652
3652
|
e
|
|
@@ -3683,19 +3683,19 @@ function Nf() {
|
|
|
3683
3683
|
let s = () => {
|
|
3684
3684
|
window.scrollTo(0, 0);
|
|
3685
3685
|
}, c = window.pageXOffset, d = window.pageYOffset;
|
|
3686
|
-
o = Me(
|
|
3686
|
+
o = Me(Nt(window, "scroll", s), Dt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Dt(document.documentElement, "overflow", "hidden"), Dt(document.body, "marginTop", `-${d}px`), () => {
|
|
3687
3687
|
window.scrollTo(c, d);
|
|
3688
3688
|
}), window.scrollTo(0, 0);
|
|
3689
|
-
}, u = Me(
|
|
3689
|
+
}, u = Me(Nt(document, "touchstart", n, {
|
|
3690
3690
|
passive: !1,
|
|
3691
3691
|
capture: !0
|
|
3692
|
-
}),
|
|
3692
|
+
}), Nt(document, "touchmove", r, {
|
|
3693
3693
|
passive: !1,
|
|
3694
3694
|
capture: !0
|
|
3695
|
-
}),
|
|
3695
|
+
}), Nt(document, "touchend", l, {
|
|
3696
3696
|
passive: !1,
|
|
3697
3697
|
capture: !0
|
|
3698
|
-
}),
|
|
3698
|
+
}), Nt(document, "focus", i, !0));
|
|
3699
3699
|
return () => {
|
|
3700
3700
|
e == null || e(), o == null || o(), u();
|
|
3701
3701
|
};
|
|
@@ -3706,7 +3706,7 @@ function Dt(t, e, n) {
|
|
|
3706
3706
|
t.style[e] = r;
|
|
3707
3707
|
};
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function Nt(t, e, n, r) {
|
|
3710
3710
|
return t.addEventListener(e, n, r), () => {
|
|
3711
3711
|
t.removeEventListener(e, n, r);
|
|
3712
3712
|
};
|
|
@@ -3771,7 +3771,7 @@ function jf(t) {
|
|
|
3771
3771
|
n
|
|
3772
3772
|
]), !n) return null;
|
|
3773
3773
|
let l = /* @__PURE__ */ B.createElement(zf, r);
|
|
3774
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ Cn.createPortal(l, n);
|
|
3775
3775
|
}
|
|
3776
3776
|
var io = {};
|
|
3777
3777
|
io = {
|
|
@@ -3963,7 +3963,7 @@ function Hf(t) {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
}));
|
|
3965
3965
|
}
|
|
3966
|
-
let
|
|
3966
|
+
let Rt = /* @__PURE__ */ new WeakMap(), we = [];
|
|
3967
3967
|
function Wf(t, e = document.body) {
|
|
3968
3968
|
let n = new Set(t), r = /* @__PURE__ */ new Set(), l = (u) => {
|
|
3969
3969
|
for (let f of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) n.add(f);
|
|
@@ -3982,8 +3982,8 @@ function Wf(t, e = document.body) {
|
|
|
3982
3982
|
}
|
|
3983
3983
|
}, i = (u) => {
|
|
3984
3984
|
var s;
|
|
3985
|
-
let c = (s =
|
|
3986
|
-
u.getAttribute("aria-hidden") === "true" && c === 0 || (c === 0 && u.setAttribute("aria-hidden", "true"), r.add(u),
|
|
3985
|
+
let c = (s = Rt.get(u)) !== null && s !== void 0 ? s : 0;
|
|
3986
|
+
u.getAttribute("aria-hidden") === "true" && c === 0 || (c === 0 && u.setAttribute("aria-hidden", "true"), r.add(u), Rt.set(u, c + 1));
|
|
3987
3987
|
};
|
|
3988
3988
|
we.length && we[we.length - 1].disconnect(), l(e);
|
|
3989
3989
|
let o = new MutationObserver((u) => {
|
|
@@ -4015,8 +4015,8 @@ function Wf(t, e = document.body) {
|
|
|
4015
4015
|
return we.push(a), () => {
|
|
4016
4016
|
o.disconnect();
|
|
4017
4017
|
for (let u of r) {
|
|
4018
|
-
let s =
|
|
4019
|
-
s === 1 ? (u.removeAttribute("aria-hidden"),
|
|
4018
|
+
let s = Rt.get(u);
|
|
4019
|
+
s === 1 ? (u.removeAttribute("aria-hidden"), Rt.delete(u)) : Rt.set(u, s - 1);
|
|
4020
4020
|
}
|
|
4021
4021
|
a === we[we.length - 1] ? (we.pop(), we.length && we[we.length - 1].observe()) : we.splice(we.indexOf(a), 1);
|
|
4022
4022
|
};
|
|
@@ -4069,12 +4069,12 @@ function qf(t) {
|
|
|
4069
4069
|
]), { getContainer: a } = Yf();
|
|
4070
4070
|
if (!t.portalContainer && a && (n = a()), !n) return null;
|
|
4071
4071
|
let u = t.children;
|
|
4072
|
-
return t.disableFocusManagement || (u = /* @__PURE__ */ B.createElement(
|
|
4072
|
+
return t.disableFocusManagement || (u = /* @__PURE__ */ B.createElement(Kn, {
|
|
4073
4073
|
restoreFocus: !0,
|
|
4074
4074
|
contain: l && !r
|
|
4075
4075
|
}, u)), u = /* @__PURE__ */ B.createElement(zo.Provider, {
|
|
4076
4076
|
value: o
|
|
4077
|
-
}, /* @__PURE__ */ B.createElement(Bd, null, u)), /* @__PURE__ */
|
|
4077
|
+
}, /* @__PURE__ */ B.createElement(Bd, null, u)), /* @__PURE__ */ Cn.createPortal(u, n);
|
|
4078
4078
|
}
|
|
4079
4079
|
function Xf() {
|
|
4080
4080
|
let t = Y(zo), e = t == null ? void 0 : t.setContain;
|
|
@@ -4125,7 +4125,7 @@ function ep(t) {
|
|
|
4125
4125
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
4126
4126
|
}
|
|
4127
4127
|
function Vo(t) {
|
|
4128
|
-
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: $ } = We(), g =
|
|
4128
|
+
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: $ } = We(), g = qt(), E = (w) => {
|
|
4129
4129
|
if (w.altKey && w.key === "Tab" && w.preventDefault(), !r.current.contains(w.target)) return;
|
|
4130
4130
|
const T = (O, ke) => {
|
|
4131
4131
|
if (O != null) {
|
|
@@ -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 x = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4245
|
-
x && (x.contains(document.activeElement) || Le(x),
|
|
4245
|
+
x && (x.contains(document.activeElement) || Le(x), bn() === "keyboard" && Je(x, {
|
|
4246
4246
|
containingElement: r.current
|
|
4247
4247
|
}));
|
|
4248
4248
|
}
|
|
@@ -4268,7 +4268,7 @@ function Vo(t) {
|
|
|
4268
4268
|
let P = M(e.focusedKey);
|
|
4269
4269
|
L(() => {
|
|
4270
4270
|
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || C.current) && (p != null && p.current)) {
|
|
4271
|
-
let w =
|
|
4271
|
+
let w = bn(), T = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4272
4272
|
if (!T)
|
|
4273
4273
|
return;
|
|
4274
4274
|
(w === "keyboard" || C.current) && (Ti(p.current, T), w !== "virtual" && Je(T, {
|
|
@@ -4299,8 +4299,8 @@ function Vo(t) {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
};
|
|
4301
4301
|
}
|
|
4302
|
-
function
|
|
4303
|
-
let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: l, shouldUseVirtualFocus: i, focus: o, isDisabled: a, onAction: u, allowsDifferentPressOrigin: s, linkBehavior: c = "action" } = t, d =
|
|
4302
|
+
function _n(t) {
|
|
4303
|
+
let { selectionManager: e, key: n, ref: r, shouldSelectOnPressUp: l, shouldUseVirtualFocus: i, focus: o, isDisabled: a, onAction: u, allowsDifferentPressOrigin: s, linkBehavior: c = "action" } = t, d = qt(), f = (F) => {
|
|
4304
4304
|
if (F.pointerType === "keyboard" && Pr(F)) e.toggleSelection(n);
|
|
4305
4305
|
else {
|
|
4306
4306
|
if (e.selectionMode === "none") return;
|
|
@@ -4481,7 +4481,7 @@ class Ho {
|
|
|
4481
4481
|
getKeyPageAbove(e) {
|
|
4482
4482
|
let n = this.ref.current, r = this.layoutDelegate.getItemRect(e);
|
|
4483
4483
|
if (!r) return null;
|
|
4484
|
-
if (!
|
|
4484
|
+
if (!Vt(n)) return this.getFirstKey();
|
|
4485
4485
|
if (this.orientation === "horizontal") {
|
|
4486
4486
|
let l = Math.max(0, r.x + r.width - this.layoutDelegate.getVisibleRect().width);
|
|
4487
4487
|
for (; r && r.x > l; )
|
|
@@ -4496,7 +4496,7 @@ class Ho {
|
|
|
4496
4496
|
getKeyPageBelow(e) {
|
|
4497
4497
|
let n = this.ref.current, r = this.layoutDelegate.getItemRect(e);
|
|
4498
4498
|
if (!r) return null;
|
|
4499
|
-
if (!
|
|
4499
|
+
if (!Vt(n)) return this.getLastKey();
|
|
4500
4500
|
if (this.orientation === "horizontal") {
|
|
4501
4501
|
let l = Math.min(this.layoutDelegate.getContentSize().width, r.y - r.width + this.layoutDelegate.getVisibleRect().width);
|
|
4502
4502
|
for (; r && r.x < l; )
|
|
@@ -4528,7 +4528,7 @@ class Ho {
|
|
|
4528
4528
|
}
|
|
4529
4529
|
}
|
|
4530
4530
|
function Wo(t) {
|
|
4531
|
-
let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, a =
|
|
4531
|
+
let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, a = Fn({
|
|
4532
4532
|
usage: "search",
|
|
4533
4533
|
sensitivity: "base"
|
|
4534
4534
|
}), u = e.disabledBehavior, s = H(() => i || new Ho({
|
|
@@ -4568,7 +4568,7 @@ function tp(t, e, n) {
|
|
|
4568
4568
|
collection: e.collection,
|
|
4569
4569
|
disabledKeys: e.disabledKeys,
|
|
4570
4570
|
linkBehavior: i
|
|
4571
|
-
}), { focusWithinProps: a } =
|
|
4571
|
+
}), { focusWithinProps: a } = Xt({
|
|
4572
4572
|
onFocusWithin: t.onFocus,
|
|
4573
4573
|
onBlurWithin: t.onBlur,
|
|
4574
4574
|
onFocusWithinChange: t.onFocusChange
|
|
@@ -4907,7 +4907,7 @@ function ip(t, e, n) {
|
|
|
4907
4907
|
let _ = o != null && o.onAction ? () => {
|
|
4908
4908
|
var z;
|
|
4909
4909
|
return o == null || (z = o.onAction) === null || z === void 0 ? void 0 : z.call(o, i);
|
|
4910
|
-
} : void 0, { itemProps: v, isPressed: A, isFocused: w, hasAction: T, allowsSelection: I } =
|
|
4910
|
+
} : void 0, { itemProps: v, isPressed: A, isFocused: w, hasAction: T, allowsSelection: I } = _n({
|
|
4911
4911
|
selectionManager: e.selectionManager,
|
|
4912
4912
|
key: i,
|
|
4913
4913
|
ref: n,
|
|
@@ -5209,12 +5209,12 @@ function Ma(t, e, n) {
|
|
|
5209
5209
|
var P;
|
|
5210
5210
|
let _ = (P = t.isDisabled) !== null && P !== void 0 ? P : e.selectionManager.isDisabled(l);
|
|
5211
5211
|
var v;
|
|
5212
|
-
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), w = Aa.get(e), T = e.collection.getItem(l), I = t.onClose || w.onClose, x =
|
|
5212
|
+
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), w = Aa.get(e), T = e.collection.getItem(l), I = t.onClose || w.onClose, x = qt(), R = (le) => {
|
|
5213
5213
|
var gt;
|
|
5214
5214
|
if (!C) {
|
|
5215
5215
|
if (!(T == null || (gt = T.props) === null || gt === void 0) && gt.onAction ? T.props.onAction() : t.onAction && t.onAction(l), w.onAction) {
|
|
5216
|
-
let
|
|
5217
|
-
|
|
5216
|
+
let On = w.onAction;
|
|
5217
|
+
On(l);
|
|
5218
5218
|
}
|
|
5219
5219
|
le.target instanceof HTMLAnchorElement && x.open(le.target, le, T.props.href, T.props.routerOptions);
|
|
5220
5220
|
}
|
|
@@ -5239,7 +5239,7 @@ function Ma(t, e, n) {
|
|
|
5239
5239
|
le.pointerType === "keyboard" && R(le), u == null || u(le);
|
|
5240
5240
|
}, Be = (le) => {
|
|
5241
5241
|
le.pointerType !== "keyboard" && (R(le), !C && I && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && I()), s == null || s(le);
|
|
5242
|
-
}, { itemProps: Ee, isFocused: Ge } =
|
|
5242
|
+
}, { itemProps: Ee, isFocused: Ge } = _n({
|
|
5243
5243
|
selectionManager: e.selectionManager,
|
|
5244
5244
|
key: l,
|
|
5245
5245
|
ref: n,
|
|
@@ -5283,7 +5283,7 @@ function Ma(t, e, n) {
|
|
|
5283
5283
|
}
|
|
5284
5284
|
},
|
|
5285
5285
|
onKeyUp: E
|
|
5286
|
-
}), { focusProps: ht } =
|
|
5286
|
+
}), { focusProps: ht } = Bn({
|
|
5287
5287
|
onBlur: k,
|
|
5288
5288
|
onFocus: S,
|
|
5289
5289
|
onFocusChange: y
|
|
@@ -5370,12 +5370,12 @@ function up(t, e) {
|
|
|
5370
5370
|
}
|
|
5371
5371
|
};
|
|
5372
5372
|
}
|
|
5373
|
-
var
|
|
5373
|
+
var Ut;
|
|
5374
5374
|
(function(t) {
|
|
5375
5375
|
t[t.none = 0] = "none", t[t.cancel = 0] = "cancel", t[t.move = 1] = "move", t[t.copy = 2] = "copy", t[t.link = 4] = "link", t[t.all = 7] = "all";
|
|
5376
|
-
})(
|
|
5376
|
+
})(Ut || (Ut = {}));
|
|
5377
5377
|
const sp = {
|
|
5378
|
-
...
|
|
5378
|
+
...Ut,
|
|
5379
5379
|
copyMove: 3,
|
|
5380
5380
|
copyLink: 6,
|
|
5381
5381
|
linkMove: 5,
|
|
@@ -5383,7 +5383,7 @@ const sp = {
|
|
|
5383
5383
|
uninitialized: 7
|
|
5384
5384
|
}, cp = Qr(sp);
|
|
5385
5385
|
cp[7] = "all";
|
|
5386
|
-
Qr(
|
|
5386
|
+
Qr(Ut);
|
|
5387
5387
|
const dp = {
|
|
5388
5388
|
none: "cancel",
|
|
5389
5389
|
link: "link",
|
|
@@ -5498,7 +5498,7 @@ async function* hp(t) {
|
|
|
5498
5498
|
function mp(t) {
|
|
5499
5499
|
return new Promise((e, n) => t.file(e, n));
|
|
5500
5500
|
}
|
|
5501
|
-
|
|
5501
|
+
Ut.none;
|
|
5502
5502
|
const or = /* @__PURE__ */ new Map();
|
|
5503
5503
|
function St(t, e) {
|
|
5504
5504
|
let n = or.get(t);
|
|
@@ -5516,7 +5516,7 @@ function St(t, e) {
|
|
|
5516
5516
|
};
|
|
5517
5517
|
}
|
|
5518
5518
|
function bp(t) {
|
|
5519
|
-
let { isDisabled: e } = t, n = M(!1), { focusProps: r } =
|
|
5519
|
+
let { isDisabled: e } = t, n = M(!1), { focusProps: r } = Bn({
|
|
5520
5520
|
onFocusChange: (c) => {
|
|
5521
5521
|
n.current = c;
|
|
5522
5522
|
}
|
|
@@ -6224,7 +6224,7 @@ function yp(t, e) {
|
|
|
6224
6224
|
}
|
|
6225
6225
|
e.selectionManager.selectionMode === "multiple" && (c.length === 0 || l === "all" || l.size > 1 || i.current === "all" || ((o = i.current) === null || o === void 0 ? void 0 : o.size) > 1) && c.push(l === "all" ? r.format("selectedAll") : r.format("selectedCount", {
|
|
6226
6226
|
count: l.size
|
|
6227
|
-
})), c.length > 0 &&
|
|
6227
|
+
})), c.length > 0 && xn(c.join(" ")), i.current = l;
|
|
6228
6228
|
}, [
|
|
6229
6229
|
l
|
|
6230
6230
|
]);
|
|
@@ -6249,12 +6249,12 @@ function Ep(t) {
|
|
|
6249
6249
|
e,
|
|
6250
6250
|
r
|
|
6251
6251
|
]);
|
|
6252
|
-
return
|
|
6252
|
+
return kn(l);
|
|
6253
6253
|
}
|
|
6254
6254
|
function Sp(t, e, n) {
|
|
6255
6255
|
let { isVirtualized: r, keyboardDelegate: l, focusMode: i, scrollRef: o, getRowText: a, onRowAction: u, onCellAction: s } = t, { selectionManager: c } = e;
|
|
6256
6256
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
6257
|
-
let d =
|
|
6257
|
+
let d = Fn({
|
|
6258
6258
|
usage: "search",
|
|
6259
6259
|
sensitivity: "base"
|
|
6260
6260
|
}), { direction: f } = We(), p = e.selectionManager.disabledBehavior, m = H(() => l || new _a({
|
|
@@ -6338,7 +6338,7 @@ function Cp() {
|
|
|
6338
6338
|
}
|
|
6339
6339
|
function wp(t, e, n) {
|
|
6340
6340
|
var r, l;
|
|
6341
|
-
let { node: i, isVirtualized: o, shouldSelectOnPressUp: a, onAction: u } = t, { actions: s } = el.get(e), c = s.onRowAction ? () => s.onRowAction(i.key) : u, { itemProps: d, ...f } =
|
|
6341
|
+
let { node: i, isVirtualized: o, shouldSelectOnPressUp: a, onAction: u } = t, { actions: s } = el.get(e), c = s.onRowAction ? () => s.onRowAction(i.key) : u, { itemProps: d, ...f } = _n({
|
|
6342
6342
|
selectionManager: e.selectionManager,
|
|
6343
6343
|
key: i.key,
|
|
6344
6344
|
ref: n,
|
|
@@ -6369,7 +6369,7 @@ function bu(t, e, n) {
|
|
|
6369
6369
|
}
|
|
6370
6370
|
}
|
|
6371
6371
|
(d.current != null && r.key !== d.current || !n.current.contains(document.activeElement)) && me(n.current);
|
|
6372
|
-
}, { itemProps: p, isPressed: m } =
|
|
6372
|
+
}, { itemProps: p, isPressed: m } = _n({
|
|
6373
6373
|
selectionManager: e.selectionManager,
|
|
6374
6374
|
key: r.key,
|
|
6375
6375
|
ref: n,
|
|
@@ -6478,7 +6478,7 @@ function Pp(t, e, n) {
|
|
|
6478
6478
|
}), y = -1;
|
|
6479
6479
|
e.selectedValue != null ? e.selectedValue === r && (y = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && (y = 0), a && (y = void 0);
|
|
6480
6480
|
let { name: k, descriptionId: C, errorMessageId: P, validationBehavior: _ } = gu.get(e);
|
|
6481
|
-
return
|
|
6481
|
+
return Tn(n, e.selectedValue, e.setSelectedValue), Ur({
|
|
6482
6482
|
validationBehavior: _
|
|
6483
6483
|
}, e, n), {
|
|
6484
6484
|
labelProps: W(m, {
|
|
@@ -6515,7 +6515,7 @@ function Dp(t, e) {
|
|
|
6515
6515
|
errorMessage: t.errorMessage || c
|
|
6516
6516
|
}), g = ve(t, {
|
|
6517
6517
|
labelable: !0
|
|
6518
|
-
}), { focusWithinProps: E } =
|
|
6518
|
+
}), { focusWithinProps: E } = Xt({
|
|
6519
6519
|
onBlurWithin(k) {
|
|
6520
6520
|
var C;
|
|
6521
6521
|
(C = t.onBlur) === null || C === void 0 || C.call(t, k), e.selectedValue || e.setLastFocusedValue(null);
|
|
@@ -6787,7 +6787,7 @@ function Tp(t, e, n) {
|
|
|
6787
6787
|
}
|
|
6788
6788
|
const es = /* @__PURE__ */ new WeakMap();
|
|
6789
6789
|
function ts(t, e, n) {
|
|
6790
|
-
let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: a = "aria" } = t, u =
|
|
6790
|
+
let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: a = "aria" } = t, u = Fn({
|
|
6791
6791
|
usage: "search",
|
|
6792
6792
|
sensitivity: "base"
|
|
6793
6793
|
}), s = H(() => r || new Ho(e.collection, e.disabledKeys, null, u), [
|
|
@@ -6885,7 +6885,7 @@ function ts(t, e, n) {
|
|
|
6885
6885
|
}
|
|
6886
6886
|
function Bp(t, e, n) {
|
|
6887
6887
|
let r = es.get(e) || {}, { autoComplete: l, name: i = r.name, isDisabled: o = r.isDisabled } = t, { validationBehavior: a, isRequired: u } = r, s = Li(), { visuallyHiddenProps: c } = Ji();
|
|
6888
|
-
|
|
6888
|
+
Tn(t.selectRef, e.selectedKey, e.setSelectedKey), Ur({
|
|
6889
6889
|
validationBehavior: a,
|
|
6890
6890
|
focus: () => n.current.focus()
|
|
6891
6891
|
}, e, t.selectRef);
|
|
@@ -7505,14 +7505,14 @@ class Fp extends _a {
|
|
|
7505
7505
|
}
|
|
7506
7506
|
}
|
|
7507
7507
|
let Ip = !1;
|
|
7508
|
-
function
|
|
7508
|
+
function Sn() {
|
|
7509
7509
|
return Ip;
|
|
7510
7510
|
}
|
|
7511
7511
|
function _p(t) {
|
|
7512
7512
|
return t && t.__esModule ? t.default : t;
|
|
7513
7513
|
}
|
|
7514
7514
|
function Np(t, e, n) {
|
|
7515
|
-
let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, a =
|
|
7515
|
+
let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, a = Fn({
|
|
7516
7516
|
usage: "search",
|
|
7517
7517
|
sensitivity: "base"
|
|
7518
7518
|
}), { direction: u } = We(), s = e.selectionManager.disabledBehavior, c = H(() => r || new Fp({
|
|
@@ -7541,7 +7541,7 @@ function Np(t, e, n) {
|
|
|
7541
7541
|
id: d,
|
|
7542
7542
|
keyboardDelegate: c
|
|
7543
7543
|
}, e, n);
|
|
7544
|
-
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length),
|
|
7544
|
+
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7545
7545
|
let { column: p, direction: m } = e.sortDescriptor || {}, $ = vt(_p(rl), "@react-aria/table"), g = H(() => {
|
|
7546
7546
|
var S;
|
|
7547
7547
|
let y = (S = e.collection.columns.find((k) => k.key === p)) === null || S === void 0 ? void 0 : S.textValue;
|
|
@@ -7552,9 +7552,9 @@ function Np(t, e, n) {
|
|
|
7552
7552
|
m,
|
|
7553
7553
|
p,
|
|
7554
7554
|
e.collection.columns
|
|
7555
|
-
]), E =
|
|
7555
|
+
]), E = kn(g);
|
|
7556
7556
|
return ki(() => {
|
|
7557
|
-
|
|
7557
|
+
xn(g, "assertive", 500);
|
|
7558
7558
|
}, [
|
|
7559
7559
|
g
|
|
7560
7560
|
]), {
|
|
@@ -7582,10 +7582,10 @@ function Lp(t, e, n) {
|
|
|
7582
7582
|
},
|
|
7583
7583
|
ref: n
|
|
7584
7584
|
}), { focusableProps: c } = Bt({}, n), d = null, f = ((r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.column) === i.key, p = (l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.direction;
|
|
7585
|
-
i.props.allowsSorting && !
|
|
7585
|
+
i.props.allowsSorting && !vn() && (d = f ? p : "none");
|
|
7586
7586
|
let m = vt(Rp(rl), "@react-aria/table"), $;
|
|
7587
|
-
o && ($ = `${m.format("sortable")}`, f && p &&
|
|
7588
|
-
let g =
|
|
7587
|
+
o && ($ = `${m.format("sortable")}`, f && p && vn() && ($ = `${$}, ${m.format(p)}`));
|
|
7588
|
+
let g = kn($), E = e.collection.size === 0;
|
|
7589
7589
|
return L(() => {
|
|
7590
7590
|
E && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
|
|
7591
7591
|
}, [
|
|
@@ -7623,9 +7623,9 @@ const ii = {
|
|
|
7623
7623
|
};
|
|
7624
7624
|
function Op(t, e, n) {
|
|
7625
7625
|
let { node: r, isVirtualized: l } = t, { rowProps: i, ...o } = wp(t, e, n), { direction: a } = We();
|
|
7626
|
-
l && !(
|
|
7626
|
+
l && !(Sn() && "expandedKeys" in e) ? i["aria-rowindex"] = r.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
|
|
7627
7627
|
let u = {};
|
|
7628
|
-
if (
|
|
7628
|
+
if (Sn() && "expandedKeys" in e) {
|
|
7629
7629
|
let m = e.keyMap.get(r.key);
|
|
7630
7630
|
if (m != null) {
|
|
7631
7631
|
var s, c, d;
|
|
@@ -7654,7 +7654,7 @@ function zp(t, e, n) {
|
|
|
7654
7654
|
let { node: r, isVirtualized: l } = t, i = {
|
|
7655
7655
|
role: "row"
|
|
7656
7656
|
};
|
|
7657
|
-
return l && !(
|
|
7657
|
+
return l && !(Sn() && "expandedKeys" in e) && (i["aria-rowindex"] = r.index + 1), {
|
|
7658
7658
|
rowProps: i
|
|
7659
7659
|
};
|
|
7660
7660
|
}
|
|
@@ -7700,7 +7700,7 @@ function Wp(t, e, n) {
|
|
|
7700
7700
|
e
|
|
7701
7701
|
]);
|
|
7702
7702
|
let c = () => {
|
|
7703
|
-
l !== "focus" && (
|
|
7703
|
+
l !== "focus" && (bn() === "pointer" ? o.current = !0 : o.current = !1, u());
|
|
7704
7704
|
}, d = () => {
|
|
7705
7705
|
l !== "focus" && (a.current = !1, o.current = !1, s());
|
|
7706
7706
|
}, f = () => {
|
|
@@ -8188,7 +8188,7 @@ function Yp(t) {
|
|
|
8188
8188
|
selectedItem: u
|
|
8189
8189
|
};
|
|
8190
8190
|
}
|
|
8191
|
-
function
|
|
8191
|
+
function Nn(t) {
|
|
8192
8192
|
let [e, n] = lt(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
|
|
8193
8193
|
const r = X(() => {
|
|
8194
8194
|
n(!0);
|
|
@@ -8213,7 +8213,7 @@ function Rn(t) {
|
|
|
8213
8213
|
};
|
|
8214
8214
|
}
|
|
8215
8215
|
function qp(t) {
|
|
8216
|
-
let e =
|
|
8216
|
+
let e = Nn(t), [n, r] = j(null), [l, i] = j([]), o = () => {
|
|
8217
8217
|
i([]), e.close();
|
|
8218
8218
|
};
|
|
8219
8219
|
return {
|
|
@@ -8278,7 +8278,7 @@ function ui(t) {
|
|
|
8278
8278
|
return t.toString();
|
|
8279
8279
|
}
|
|
8280
8280
|
function Rs(t) {
|
|
8281
|
-
let e =
|
|
8281
|
+
let e = Nn(t), [n, r] = j(null), l = Yp({
|
|
8282
8282
|
...t,
|
|
8283
8283
|
onSelectionChange: (u) => {
|
|
8284
8284
|
t.onSelectionChange != null && t.onSelectionChange(u), e.close(), i.commitValidation();
|
|
@@ -8840,23 +8840,23 @@ Vs.getCollectionNode = function* (e) {
|
|
|
8840
8840
|
};
|
|
8841
8841
|
let av = Vs;
|
|
8842
8842
|
const uv = 1500, si = 500;
|
|
8843
|
-
let ot = {}, sv = 0,
|
|
8843
|
+
let ot = {}, sv = 0, Lt = !1, Ne = null, at = null;
|
|
8844
8844
|
function Hs(t = {}) {
|
|
8845
|
-
let { delay: e = uv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } =
|
|
8845
|
+
let { delay: e = uv, closeDelay: n = si } = t, { isOpen: r, open: l, close: i } = Nn(t), o = H(() => `${++sv}`, []), a = M(void 0), u = M(i), s = () => {
|
|
8846
8846
|
ot[o] = f;
|
|
8847
8847
|
}, c = () => {
|
|
8848
8848
|
for (let m in ot) m !== o && (ot[m](!0), delete ot[m]);
|
|
8849
8849
|
}, d = () => {
|
|
8850
|
-
clearTimeout(a.current), a.current = null, c(), s(),
|
|
8850
|
+
clearTimeout(a.current), a.current = null, c(), s(), Lt = !0, l(), Ne && (clearTimeout(Ne), Ne = null), at && (clearTimeout(at), at = null);
|
|
8851
8851
|
}, f = (m) => {
|
|
8852
8852
|
m || n <= 0 ? (clearTimeout(a.current), a.current = null, u.current()) : a.current || (a.current = setTimeout(() => {
|
|
8853
8853
|
a.current = null, u.current();
|
|
8854
|
-
}, n)), Ne && (clearTimeout(Ne), Ne = null),
|
|
8855
|
-
delete ot[o], at = null,
|
|
8854
|
+
}, n)), Ne && (clearTimeout(Ne), Ne = null), Lt && (at && clearTimeout(at), at = setTimeout(() => {
|
|
8855
|
+
delete ot[o], at = null, Lt = !1;
|
|
8856
8856
|
}, Math.max(si, n)));
|
|
8857
8857
|
}, p = () => {
|
|
8858
|
-
c(), s(), !r && !Ne && !
|
|
8859
|
-
Ne = null,
|
|
8858
|
+
c(), s(), !r && !Ne && !Lt ? Ne = setTimeout(() => {
|
|
8859
|
+
Ne = null, Lt = !0, d();
|
|
8860
8860
|
}, e) : r || d();
|
|
8861
8861
|
};
|
|
8862
8862
|
return L(() => {
|
|
@@ -8964,7 +8964,7 @@ const pv = ({ children: t }) => {
|
|
|
8964
8964
|
l.style.setProperty(i, o);
|
|
8965
8965
|
}), l;
|
|
8966
8966
|
})();
|
|
8967
|
-
return
|
|
8967
|
+
return Cn.createPortal(t, r);
|
|
8968
8968
|
}, Us = ({
|
|
8969
8969
|
id: t,
|
|
8970
8970
|
isOpen: e,
|
|
@@ -9062,7 +9062,7 @@ const pv = ({ children: t }) => {
|
|
|
9062
9062
|
className: U("proton-ActionMenu__card", f),
|
|
9063
9063
|
"data-testid": "ActionMenu-content",
|
|
9064
9064
|
style: { height: `${g}px` },
|
|
9065
|
-
children: /* @__PURE__ */ b.jsx("div", { ref: y, children: /* @__PURE__ */ b.jsx("div", { ...v, ref: S, children: T ? /* @__PURE__ */ b.jsxs(
|
|
9065
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: y, children: /* @__PURE__ */ b.jsx("div", { ...v, ref: S, children: T ? /* @__PURE__ */ b.jsxs(Kn, { autoFocus: !0, contain: !0, children: [
|
|
9066
9066
|
i && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof i == "function" ? i({ close: P }) : i }),
|
|
9067
9067
|
C && /* @__PURE__ */ b.jsx(
|
|
9068
9068
|
"div",
|
|
@@ -9164,10 +9164,10 @@ const pv = ({ children: t }) => {
|
|
|
9164
9164
|
);
|
|
9165
9165
|
}, ur = "rgb(83, 82, 83)";
|
|
9166
9166
|
function mv(t) {
|
|
9167
|
-
const e = st(t.PRIMARY.PRIMARY_LIGHTEST, 0.
|
|
9167
|
+
const e = st(t.PRIMARY.PRIMARY_LIGHTEST, 0.6), n = st(t.PRIMARY.PRIMARY_LIGHTEST, 0.8);
|
|
9168
9168
|
return {
|
|
9169
9169
|
[ze.DARK]: {
|
|
9170
|
-
"--proton-control__background-color":
|
|
9170
|
+
"--proton-control__background-color": Gn(ur),
|
|
9171
9171
|
"--proton-control__text-color": ye.WHITE,
|
|
9172
9172
|
"--proton-control__border-color": ye.GRAY_DARK,
|
|
9173
9173
|
"--proton-control__shadow-color": ye.GRAY_DARK,
|
|
@@ -9180,7 +9180,7 @@ function mv(t) {
|
|
|
9180
9180
|
"--proton-control__text-color": ye.GRAY_DARK,
|
|
9181
9181
|
"--proton-control__border-color": ye.GRAY_LIGHT,
|
|
9182
9182
|
"--proton-control__shadow-color": st(
|
|
9183
|
-
|
|
9183
|
+
Gn(ur),
|
|
9184
9184
|
0.9
|
|
9185
9185
|
),
|
|
9186
9186
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
@@ -9188,10 +9188,10 @@ function mv(t) {
|
|
|
9188
9188
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9189
9189
|
},
|
|
9190
9190
|
[ze.CUSTOM_DARK]: {
|
|
9191
|
-
"--proton-control__background-color":
|
|
9191
|
+
"--proton-control__background-color": Gn(ur),
|
|
9192
9192
|
"--proton-control__text-color": ye.WHITE,
|
|
9193
|
-
"--proton-control__border-color":
|
|
9194
|
-
"--proton-control__shadow-color":
|
|
9193
|
+
"--proton-control__border-color": n,
|
|
9194
|
+
"--proton-control__shadow-color": e,
|
|
9195
9195
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9196
9196
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9197
9197
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
@@ -9234,7 +9234,7 @@ function Ys({
|
|
|
9234
9234
|
const a = e ? "a" : "button", u = a !== "a" ? {} : {
|
|
9235
9235
|
target: "_blank",
|
|
9236
9236
|
href: e
|
|
9237
|
-
}, s = M(null), { buttonProps: c } =
|
|
9237
|
+
}, s = M(null), { buttonProps: c } = In(
|
|
9238
9238
|
{
|
|
9239
9239
|
onPress: n,
|
|
9240
9240
|
elementType: a,
|
|
@@ -9296,36 +9296,36 @@ const qs = {
|
|
|
9296
9296
|
icon: ye.GRAY_MEDIUM_LIGHT
|
|
9297
9297
|
},
|
|
9298
9298
|
success: {
|
|
9299
|
+
background: tn.SUPER_LIGHT,
|
|
9300
|
+
title: tn.DARK,
|
|
9301
|
+
content: tn.MEDIUM,
|
|
9302
|
+
icon: tn.LIGHT
|
|
9303
|
+
},
|
|
9304
|
+
warning: {
|
|
9299
9305
|
background: nn.SUPER_LIGHT,
|
|
9300
9306
|
title: nn.DARK,
|
|
9301
9307
|
content: nn.MEDIUM,
|
|
9302
9308
|
icon: nn.LIGHT
|
|
9303
9309
|
},
|
|
9304
|
-
|
|
9310
|
+
danger: {
|
|
9305
9311
|
background: rn.SUPER_LIGHT,
|
|
9306
9312
|
title: rn.DARK,
|
|
9307
9313
|
content: rn.MEDIUM,
|
|
9308
9314
|
icon: rn.LIGHT
|
|
9309
|
-
},
|
|
9310
|
-
danger: {
|
|
9311
|
-
background: ln.SUPER_LIGHT,
|
|
9312
|
-
title: ln.DARK,
|
|
9313
|
-
content: ln.MEDIUM,
|
|
9314
|
-
icon: ln.LIGHT
|
|
9315
9315
|
}
|
|
9316
9316
|
}, gv = {
|
|
9317
9317
|
default: "default",
|
|
9318
9318
|
success: "success",
|
|
9319
9319
|
warning: "warning",
|
|
9320
9320
|
danger: "danger"
|
|
9321
|
-
},
|
|
9321
|
+
}, Rn = ee(void 0), Ue = ({
|
|
9322
9322
|
variant: t = "default",
|
|
9323
9323
|
rounded: e = !0,
|
|
9324
9324
|
icon: n = !1,
|
|
9325
9325
|
compact: r = !0,
|
|
9326
9326
|
children: l,
|
|
9327
9327
|
...i
|
|
9328
|
-
}) => /* @__PURE__ */ b.jsx(
|
|
9328
|
+
}) => /* @__PURE__ */ b.jsx(Rn.Provider, { value: t, children: /* @__PURE__ */ b.jsx(
|
|
9329
9329
|
"div",
|
|
9330
9330
|
{
|
|
9331
9331
|
role: "status",
|
|
@@ -9351,7 +9351,7 @@ const qs = {
|
|
|
9351
9351
|
)
|
|
9352
9352
|
}
|
|
9353
9353
|
) }), $v = ({ children: t, ...e }) => {
|
|
9354
|
-
const n = Y(
|
|
9354
|
+
const n = Y(Rn);
|
|
9355
9355
|
if (!n) throw new Error("BannerTitle must be used within a Banner");
|
|
9356
9356
|
return /* @__PURE__ */ b.jsx(
|
|
9357
9357
|
"h3",
|
|
@@ -9366,7 +9366,7 @@ const qs = {
|
|
|
9366
9366
|
}
|
|
9367
9367
|
);
|
|
9368
9368
|
}, yv = ({ children: t, ...e }) => {
|
|
9369
|
-
const n = Y(
|
|
9369
|
+
const n = Y(Rn);
|
|
9370
9370
|
if (!n) throw new Error("BannerContent must be used within a Banner");
|
|
9371
9371
|
return /* @__PURE__ */ b.jsx(
|
|
9372
9372
|
"p",
|
|
@@ -9381,7 +9381,7 @@ const qs = {
|
|
|
9381
9381
|
}
|
|
9382
9382
|
);
|
|
9383
9383
|
}, xv = ({ children: t, icon: e, ...n }) => {
|
|
9384
|
-
const r = Y(
|
|
9384
|
+
const r = Y(Rn);
|
|
9385
9385
|
if (!r) throw new Error("BannerIcon must be used within a Banner");
|
|
9386
9386
|
const i = Fc(e) ? e : e === !0 ? qs[r] : t || null;
|
|
9387
9387
|
return i ? /* @__PURE__ */ b.jsx(
|
|
@@ -9704,11 +9704,11 @@ const Dv = pt(
|
|
|
9704
9704
|
);
|
|
9705
9705
|
};
|
|
9706
9706
|
function Q4(t) {
|
|
9707
|
-
const e = M(null), n =
|
|
9707
|
+
const e = M(null), n = Nn(t || {}), { triggerProps: r, overlayProps: l } = lo(
|
|
9708
9708
|
{ type: "dialog" },
|
|
9709
9709
|
n,
|
|
9710
9710
|
e
|
|
9711
|
-
), { buttonProps: i } =
|
|
9711
|
+
), { buttonProps: i } = In(r, e);
|
|
9712
9712
|
return { buttonProps: i, overlayProps: l, buttonRef: e, state: n };
|
|
9713
9713
|
}
|
|
9714
9714
|
function ol({
|
|
@@ -9916,7 +9916,7 @@ class Zs {
|
|
|
9916
9916
|
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this.ownerDocument = e;
|
|
9917
9917
|
}
|
|
9918
9918
|
}
|
|
9919
|
-
class
|
|
9919
|
+
class Gt extends Zs {
|
|
9920
9920
|
get index() {
|
|
9921
9921
|
return this._index;
|
|
9922
9922
|
}
|
|
@@ -9924,12 +9924,12 @@ class Yt extends Zs {
|
|
|
9924
9924
|
this._index = e, this.ownerDocument.markDirty(this);
|
|
9925
9925
|
}
|
|
9926
9926
|
get level() {
|
|
9927
|
-
return this.parentNode instanceof
|
|
9927
|
+
return this.parentNode instanceof Gt ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
|
|
9928
9928
|
}
|
|
9929
9929
|
updateNode() {
|
|
9930
9930
|
var e, n, r, l;
|
|
9931
9931
|
let i = this.ownerDocument.getMutableNode(this);
|
|
9932
|
-
i.index = this.index, i.level = this.level, i.parentKey = this.parentNode instanceof
|
|
9932
|
+
i.index = this.index, i.level = this.level, i.parentKey = this.parentNode instanceof Gt ? this.parentNode.node.key : null;
|
|
9933
9933
|
var o;
|
|
9934
9934
|
i.prevKey = (o = (e = this.previousSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && o !== void 0 ? o : null;
|
|
9935
9935
|
var a;
|
|
@@ -9967,7 +9967,7 @@ class Tv extends Zs {
|
|
|
9967
9967
|
return this.isMounted;
|
|
9968
9968
|
}
|
|
9969
9969
|
createElement(e) {
|
|
9970
|
-
return new
|
|
9970
|
+
return new Gt(e, this);
|
|
9971
9971
|
}
|
|
9972
9972
|
/**
|
|
9973
9973
|
* Lazily gets a mutable instance of a Node. If the node has already
|
|
@@ -10006,7 +10006,7 @@ class Tv extends Zs {
|
|
|
10006
10006
|
return this.transactionCount > 0 ? this.collection : (this.updateCollection(), this.collection);
|
|
10007
10007
|
}
|
|
10008
10008
|
updateCollection() {
|
|
10009
|
-
for (let i of this.dirtyNodes) i instanceof
|
|
10009
|
+
for (let i of this.dirtyNodes) i instanceof Gt && i.isConnected && i.updateNode();
|
|
10010
10010
|
if (this.dirtyNodes.clear(), this.mutatedNodes.size || this.collectionMutated) {
|
|
10011
10011
|
var e, n;
|
|
10012
10012
|
let i = this.getMutableCollection();
|
|
@@ -10216,12 +10216,12 @@ function Fv() {
|
|
|
10216
10216
|
}
|
|
10217
10217
|
process.env.NODE_ENV === "production" ? Fr.exports = Mv() : Fr.exports = Fv();
|
|
10218
10218
|
var Iv = Fr.exports;
|
|
10219
|
-
const Qs = /* @__PURE__ */ ee(!1),
|
|
10219
|
+
const Qs = /* @__PURE__ */ ee(!1), Yt = /* @__PURE__ */ ee(null);
|
|
10220
10220
|
function _v(t) {
|
|
10221
|
-
if (Y(
|
|
10221
|
+
if (Y(Yt))
|
|
10222
10222
|
return t.content;
|
|
10223
10223
|
let { collection: n, document: r } = Ov(t.createCollection);
|
|
10224
|
-
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(Av, null, /* @__PURE__ */ B.createElement(
|
|
10224
|
+
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(Av, null, /* @__PURE__ */ B.createElement(Yt.Provider, {
|
|
10225
10225
|
value: r
|
|
10226
10226
|
}, t.content)), /* @__PURE__ */ B.createElement(Nv, {
|
|
10227
10227
|
render: t.children,
|
|
@@ -10306,7 +10306,7 @@ function Hv(t) {
|
|
|
10306
10306
|
idScope: r,
|
|
10307
10307
|
dependencies: n
|
|
10308
10308
|
});
|
|
10309
|
-
return Y(
|
|
10309
|
+
return Y(Yt) && (l = /* @__PURE__ */ B.createElement(Wv, null, l)), e = H(() => ({
|
|
10310
10310
|
dependencies: n,
|
|
10311
10311
|
idScope: r
|
|
10312
10312
|
}), [
|
|
@@ -10317,7 +10317,7 @@ function Hv(t) {
|
|
|
10317
10317
|
}, l);
|
|
10318
10318
|
}
|
|
10319
10319
|
function Wv({ children: t }) {
|
|
10320
|
-
let e = Y(
|
|
10320
|
+
let e = Y(Yt), n = H(() => /* @__PURE__ */ B.createElement(Yt.Provider, {
|
|
10321
10321
|
value: null
|
|
10322
10322
|
}, /* @__PURE__ */ B.createElement(Qs.Provider, {
|
|
10323
10323
|
value: !0
|
|
@@ -10368,7 +10368,7 @@ function Yv(t) {
|
|
|
10368
10368
|
]);
|
|
10369
10369
|
}
|
|
10370
10370
|
const vi = Symbol("default");
|
|
10371
|
-
function
|
|
10371
|
+
function Ln({ values: t, children: e }) {
|
|
10372
10372
|
for (let [n, r] of t)
|
|
10373
10373
|
e = /* @__PURE__ */ B.createElement(n.Provider, {
|
|
10374
10374
|
value: r
|
|
@@ -10421,8 +10421,8 @@ function tc(t, e) {
|
|
|
10421
10421
|
}
|
|
10422
10422
|
return n;
|
|
10423
10423
|
}
|
|
10424
|
-
function
|
|
10425
|
-
let r = tc(n, t.slot) || {}, { ref: l, ...i } = r, o =
|
|
10424
|
+
function Jt(t, e, n) {
|
|
10425
|
+
let r = tc(n, t.slot) || {}, { ref: l, ...i } = r, o = Dn(H(() => Qc(e, l), [
|
|
10426
10426
|
e,
|
|
10427
10427
|
l
|
|
10428
10428
|
])), a = W(i, t);
|
|
@@ -10474,7 +10474,7 @@ function nc(t, e, n) {
|
|
|
10474
10474
|
let l = window.getComputedStyle(t.current);
|
|
10475
10475
|
if (l.animationName && l.animationName !== "none" && l.animation !== r.current) {
|
|
10476
10476
|
let i = (a) => {
|
|
10477
|
-
a.target === t.current && (o.removeEventListener("animationend", i),
|
|
10477
|
+
a.target === t.current && (o.removeEventListener("animationend", i), Cn.flushSync(() => {
|
|
10478
10478
|
n();
|
|
10479
10479
|
}));
|
|
10480
10480
|
}, o = t.current;
|
|
@@ -10500,8 +10500,8 @@ const Jv = /* @__PURE__ */ ee(null), Qv = /* @__PURE__ */ new Set([
|
|
|
10500
10500
|
"value"
|
|
10501
10501
|
]), e4 = /* @__PURE__ */ ee({});
|
|
10502
10502
|
function t4(t, e) {
|
|
10503
|
-
[t, e] =
|
|
10504
|
-
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } =
|
|
10503
|
+
[t, e] = Jt(t, e, e4), t = n4(t);
|
|
10504
|
+
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } = In(t, e), { focusProps: o, isFocused: a, isFocusVisible: u } = Zt(t), { hoverProps: s, isHovered: c } = Tt({
|
|
10505
10505
|
...t,
|
|
10506
10506
|
isDisabled: t.isDisabled || r
|
|
10507
10507
|
}), d = {
|
|
@@ -10522,7 +10522,7 @@ function t4(t, e) {
|
|
|
10522
10522
|
let E = {
|
|
10523
10523
|
"aria-labelledby": $ || p
|
|
10524
10524
|
};
|
|
10525
|
-
(!g.current && a && r || g.current && a && !r) &&
|
|
10525
|
+
(!g.current && a && r || g.current && a && !r) && xn(E, "assertive"), g.current = r;
|
|
10526
10526
|
}, [
|
|
10527
10527
|
r,
|
|
10528
10528
|
a,
|
|
@@ -10558,7 +10558,7 @@ const rc = /* @__PURE__ */ Kv(t4), r4 = /* @__PURE__ */ ee({}), l4 = /* @__PURE_
|
|
|
10558
10558
|
placement: "bottom"
|
|
10559
10559
|
});
|
|
10560
10560
|
function o4(t, e) {
|
|
10561
|
-
[t, e] =
|
|
10561
|
+
[t, e] = Jt(t, e, lc);
|
|
10562
10562
|
let n = t.placement, r = {
|
|
10563
10563
|
position: "absolute",
|
|
10564
10564
|
[n]: "100%",
|
|
@@ -10596,7 +10596,7 @@ function c4(t) {
|
|
|
10596
10596
|
onResize: a
|
|
10597
10597
|
});
|
|
10598
10598
|
let u = M(null);
|
|
10599
|
-
return /* @__PURE__ */ B.createElement(
|
|
10599
|
+
return /* @__PURE__ */ B.createElement(Ln, {
|
|
10600
10600
|
values: [
|
|
10601
10601
|
[
|
|
10602
10602
|
ic,
|
|
@@ -10634,7 +10634,7 @@ function c4(t) {
|
|
|
10634
10634
|
}
|
|
10635
10635
|
const d4 = /* @__PURE__ */ ee(null);
|
|
10636
10636
|
function f4(t, e) {
|
|
10637
|
-
return [t, e] =
|
|
10637
|
+
return [t, e] = Jt(t, e, ic), /* @__PURE__ */ B.createElement(_v, {
|
|
10638
10638
|
content: /* @__PURE__ */ B.createElement(Hv, t)
|
|
10639
10639
|
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(p4, {
|
|
10640
10640
|
props: t,
|
|
@@ -10679,14 +10679,14 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10679
10679
|
style: t.style,
|
|
10680
10680
|
values: {}
|
|
10681
10681
|
});
|
|
10682
|
-
return /* @__PURE__ */ B.createElement(
|
|
10682
|
+
return /* @__PURE__ */ B.createElement(Kn, null, /* @__PURE__ */ B.createElement("div", {
|
|
10683
10683
|
...ve(t),
|
|
10684
10684
|
...u,
|
|
10685
10685
|
...$,
|
|
10686
10686
|
ref: n,
|
|
10687
10687
|
slot: t.slot || void 0,
|
|
10688
10688
|
onScroll: t.onScroll
|
|
10689
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10689
|
+
}, /* @__PURE__ */ B.createElement(Ln, {
|
|
10690
10690
|
values: [
|
|
10691
10691
|
[
|
|
10692
10692
|
ul,
|
|
@@ -10766,12 +10766,12 @@ function h4(t, e, n) {
|
|
|
10766
10766
|
}
|
|
10767
10767
|
const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e, n, r) {
|
|
10768
10768
|
var l;
|
|
10769
|
-
[e, n] =
|
|
10770
|
-
let i = (l = tc(Nr)) === null || l === void 0 ? void 0 : l.id, o = Y(ul), a =
|
|
10769
|
+
[e, n] = Jt(e, n, Nr);
|
|
10770
|
+
let i = (l = tc(Nr)) === null || l === void 0 ? void 0 : l.id, o = Y(ul), a = Dn(n), { menuItemProps: u, labelProps: s, descriptionProps: c, keyboardShortcutProps: d, ...f } = Ma({
|
|
10771
10771
|
...e,
|
|
10772
10772
|
id: i,
|
|
10773
10773
|
key: r.key
|
|
10774
|
-
}, o, a), { isFocusVisible: p, focusProps: m } =
|
|
10774
|
+
}, o, a), { isFocusVisible: p, focusProps: m } = Zt(), { hoverProps: $, isHovered: g } = Tt({
|
|
10775
10775
|
isDisabled: f.isDisabled
|
|
10776
10776
|
}), E = At({
|
|
10777
10777
|
...e,
|
|
@@ -10801,7 +10801,7 @@ const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e,
|
|
|
10801
10801
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
10802
10802
|
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
10803
10803
|
"data-open": e["aria-expanded"] === "true" || void 0
|
|
10804
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10804
|
+
}, /* @__PURE__ */ B.createElement(Ln, {
|
|
10805
10805
|
values: [
|
|
10806
10806
|
[
|
|
10807
10807
|
r4,
|
|
@@ -10821,7 +10821,7 @@ const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e,
|
|
|
10821
10821
|
}), sl = /* @__PURE__ */ ee(null), ac = /* @__PURE__ */ ee(null);
|
|
10822
10822
|
function b4(t) {
|
|
10823
10823
|
let e = Hs(t), n = M(null), { triggerProps: r, tooltipProps: l } = Wp(t, e, n);
|
|
10824
|
-
return /* @__PURE__ */ B.createElement(
|
|
10824
|
+
return /* @__PURE__ */ B.createElement(Ln, {
|
|
10825
10825
|
values: [
|
|
10826
10826
|
[
|
|
10827
10827
|
sl,
|
|
@@ -10841,7 +10841,7 @@ function b4(t) {
|
|
|
10841
10841
|
}, t.children));
|
|
10842
10842
|
}
|
|
10843
10843
|
function g4({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
10844
|
-
[e, n] =
|
|
10844
|
+
[e, n] = Jt(e, n, ac);
|
|
10845
10845
|
let r = Y(sl), l = Hs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o = Zv(n, i.isOpen) || e.isExiting || !1;
|
|
10846
10846
|
return !i.isOpen && !o ? null : /* @__PURE__ */ B.createElement(jf, {
|
|
10847
10847
|
portalContainer: t
|
|
@@ -11011,7 +11011,7 @@ function eh({
|
|
|
11011
11011
|
}
|
|
11012
11012
|
const Rr = (t) => {
|
|
11013
11013
|
let e = M(null), { state: n } = t, { listBoxProps: r } = tp(t, n, e);
|
|
11014
|
-
return /* @__PURE__ */ b.jsx(
|
|
11014
|
+
return /* @__PURE__ */ b.jsx(Kn, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ b.jsx(
|
|
11015
11015
|
"ul",
|
|
11016
11016
|
{
|
|
11017
11017
|
...r,
|
|
@@ -11045,7 +11045,7 @@ function E4({ item: t, state: e }) {
|
|
|
11045
11045
|
}
|
|
11046
11046
|
const sc = pt(
|
|
11047
11047
|
(t, e) => {
|
|
11048
|
-
let { buttonProps: n } =
|
|
11048
|
+
let { buttonProps: n } = In(
|
|
11049
11049
|
{
|
|
11050
11050
|
...t,
|
|
11051
11051
|
isDisabled: t.disabled
|
|
@@ -11337,7 +11337,7 @@ function P4({ column: t, state: e }) {
|
|
|
11337
11337
|
n
|
|
11338
11338
|
);
|
|
11339
11339
|
const { align: l = "left" } = t.props;
|
|
11340
|
-
let { isFocusVisible: i, focusProps: o } =
|
|
11340
|
+
let { isFocusVisible: i, focusProps: o } = Zt(), a = ((u = e.sortDescriptor) == null ? void 0 : u.direction) === "ascending" ? "▲" : "▼";
|
|
11341
11341
|
return /* @__PURE__ */ b.jsxs(
|
|
11342
11342
|
"th",
|
|
11343
11343
|
{
|
|
@@ -11387,7 +11387,7 @@ function D4({ item: t, children: e, state: n }) {
|
|
|
11387
11387
|
},
|
|
11388
11388
|
n,
|
|
11389
11389
|
r
|
|
11390
|
-
), { isFocusVisible: a, focusProps: u } =
|
|
11390
|
+
), { isFocusVisible: a, focusProps: u } = Zt();
|
|
11391
11391
|
return /* @__PURE__ */ b.jsx(
|
|
11392
11392
|
"tr",
|
|
11393
11393
|
{
|
|
@@ -11404,7 +11404,7 @@ function D4({ item: t, children: e, state: n }) {
|
|
|
11404
11404
|
);
|
|
11405
11405
|
}
|
|
11406
11406
|
function k4({ cell: t, state: e, ...n }) {
|
|
11407
|
-
let r = M(), { gridCellProps: l } = jp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } =
|
|
11407
|
+
let r = M(), { gridCellProps: l } = jp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Zt();
|
|
11408
11408
|
const { align: a } = t.props;
|
|
11409
11409
|
return /* @__PURE__ */ b.jsx(
|
|
11410
11410
|
"td",
|
|
@@ -11441,22 +11441,16 @@ function oh(t) {
|
|
|
11441
11441
|
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(D4, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(k4, { cell: o, state: e }, o.key)) }, i.key)) })
|
|
11442
11442
|
] });
|
|
11443
11443
|
}
|
|
11444
|
-
function T4({
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
placement: n = "top",
|
|
11448
|
-
...r
|
|
11449
|
-
}) {
|
|
11450
|
-
const { className: l, style: i } = Fe();
|
|
11451
|
-
return console.log(n), /* @__PURE__ */ b.jsxs(
|
|
11444
|
+
function T4({ children: t, arrow: e, ...n }) {
|
|
11445
|
+
const { className: r, style: l } = Fe();
|
|
11446
|
+
return /* @__PURE__ */ b.jsxs(
|
|
11452
11447
|
$4,
|
|
11453
11448
|
{
|
|
11454
|
-
...
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
style: i,
|
|
11449
|
+
...n,
|
|
11450
|
+
className: U("proton__Tooltip", "proton-Dialog", r),
|
|
11451
|
+
style: l,
|
|
11458
11452
|
children: [
|
|
11459
|
-
e && /* @__PURE__ */ b.jsx(a4, { className: U("proton__TooltipArrow",
|
|
11453
|
+
e && /* @__PURE__ */ b.jsx(a4, { className: U("proton__TooltipArrow", r), children: /* @__PURE__ */ b.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ b.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
11460
11454
|
t
|
|
11461
11455
|
]
|
|
11462
11456
|
}
|
|
@@ -11476,7 +11470,7 @@ function B4({
|
|
|
11476
11470
|
...u
|
|
11477
11471
|
}) {
|
|
11478
11472
|
const [s, c] = j(!1), d = M(!1), f = M(!1);
|
|
11479
|
-
return
|
|
11473
|
+
return /* @__PURE__ */ b.jsxs(
|
|
11480
11474
|
b4,
|
|
11481
11475
|
{
|
|
11482
11476
|
delay: e,
|
|
@@ -11634,7 +11628,7 @@ function uh({
|
|
|
11634
11628
|
"data-testid": s
|
|
11635
11629
|
}) {
|
|
11636
11630
|
var R;
|
|
11637
|
-
const { className: c, palette: d, theme: f } = Fe(), p = M(null), [m, $] = j([]), [g, E] = j(null), [S, y] = j(!1), [k, C] = j(!1), P = t || K4, _ = u || (f === "custom-dark" ? d.BRAND.
|
|
11631
|
+
const { className: c, palette: d, theme: f } = Fe(), p = M(null), [m, $] = j([]), [g, E] = j(null), [S, y] = j(!1), [k, C] = j(!1), P = t || K4, _ = u || (f === "custom-dark" ? d.BRAND.PRIMARY_LIGHT : void 0), v = e;
|
|
11638
11632
|
L(() => {
|
|
11639
11633
|
if (!p.current) return;
|
|
11640
11634
|
const D = (Z) => {
|