@kroo-web/design-system 1.22.4 → 1.22.6
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/components/Divider/Divider.stories.d.ts +7 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/NumberField/index.d.ts +2 -1
- package/dist/components/NumberField/numberField.stories.d.ts +3 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/index.js +543 -537
- package/dist/index.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/HorizontalRule/HorizontalRule.stories.d.ts +0 -7
- package/dist/components/HorizontalRule/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -132,21 +132,21 @@ function Lp(e) {
|
|
|
132
132
|
t,
|
|
133
133
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
134
134
|
), s = (h) => {
|
|
135
|
-
const { scope: m, children: g } = h, y = U.useRef(null),
|
|
136
|
-
return /* @__PURE__ */ w(r, { scope: m, itemMap:
|
|
135
|
+
const { scope: m, children: g } = h, y = U.useRef(null), A = U.useRef(/* @__PURE__ */ new Map()).current;
|
|
136
|
+
return /* @__PURE__ */ w(r, { scope: m, itemMap: A, collectionRef: y, children: g });
|
|
137
137
|
};
|
|
138
138
|
s.displayName = t;
|
|
139
139
|
const a = e + "CollectionSlot", l = /* @__PURE__ */ li(a), u = U.forwardRef(
|
|
140
140
|
(h, m) => {
|
|
141
|
-
const { scope: g, children: y } = h,
|
|
141
|
+
const { scope: g, children: y } = h, A = i(a, g), E = Ge(m, A.collectionRef);
|
|
142
142
|
return /* @__PURE__ */ w(l, { ref: E, children: y });
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
u.displayName = a;
|
|
146
146
|
const c = e + "CollectionItemSlot", d = "data-radix-collection-item", f = /* @__PURE__ */ li(c), p = U.forwardRef(
|
|
147
147
|
(h, m) => {
|
|
148
|
-
const { scope: g, children: y, ...
|
|
149
|
-
return U.useEffect(() => (P.itemMap.set(E, { ref: E, ...
|
|
148
|
+
const { scope: g, children: y, ...A } = h, E = U.useRef(null), C = Ge(m, E), P = i(c, g);
|
|
149
|
+
return U.useEffect(() => (P.itemMap.set(E, { ref: E, ...A }), () => void P.itemMap.delete(E))), /* @__PURE__ */ w(f, { [d]: "", ref: C, children: y });
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
p.displayName = c;
|
|
@@ -155,9 +155,9 @@ function Lp(e) {
|
|
|
155
155
|
return U.useCallback(() => {
|
|
156
156
|
const y = m.collectionRef.current;
|
|
157
157
|
if (!y) return [];
|
|
158
|
-
const
|
|
158
|
+
const A = Array.from(y.querySelectorAll(`[${d}]`));
|
|
159
159
|
return Array.from(m.itemMap.values()).sort(
|
|
160
|
-
(P, B) =>
|
|
160
|
+
(P, B) => A.indexOf(P.ref.current) - A.indexOf(B.ref.current)
|
|
161
161
|
);
|
|
162
162
|
}, [m.collectionRef, m.itemMap]);
|
|
163
163
|
}
|
|
@@ -386,8 +386,8 @@ var tC = S.forwardRef((e, t) => {
|
|
|
386
386
|
transitionDuration: y.style.transitionDuration,
|
|
387
387
|
animationName: y.style.animationName
|
|
388
388
|
}, y.style.transitionDuration = "0s", y.style.animationName = "none";
|
|
389
|
-
const
|
|
390
|
-
d.current =
|
|
389
|
+
const A = y.getBoundingClientRect();
|
|
390
|
+
d.current = A.height, p.current = A.width, m.current || (y.style.transitionDuration = g.current.transitionDuration, y.style.animationName = g.current.animationName), l(o);
|
|
391
391
|
}
|
|
392
392
|
}, [s.open, o]), /* @__PURE__ */ w(
|
|
393
393
|
Te.div,
|
|
@@ -484,7 +484,7 @@ var [Qp, uC] = zi(en), [zp, cC] = zi(
|
|
|
484
484
|
}), [pC, qi] = zi(en), qp = U.forwardRef(
|
|
485
485
|
(e, t) => {
|
|
486
486
|
const { __scopeAccordion: n, disabled: o, dir: r, orientation: i = "vertical", ...s } = e, a = U.useRef(null), l = Ge(a, t), u = aC(n), d = Qi(r) === "ltr", f = Ae(e.onKeyDown, (p) => {
|
|
487
|
-
var
|
|
487
|
+
var b;
|
|
488
488
|
if (!sC.includes(p.key)) return;
|
|
489
489
|
const v = p.target, h = u().filter((R) => {
|
|
490
490
|
var M;
|
|
@@ -493,14 +493,14 @@ var [Qp, uC] = zi(en), [zp, cC] = zi(
|
|
|
493
493
|
if (m === -1) return;
|
|
494
494
|
p.preventDefault();
|
|
495
495
|
let y = m;
|
|
496
|
-
const
|
|
497
|
-
y = m + 1, y > E && (y =
|
|
496
|
+
const A = 0, E = g - 1, C = () => {
|
|
497
|
+
y = m + 1, y > E && (y = A);
|
|
498
498
|
}, P = () => {
|
|
499
|
-
y = m - 1, y <
|
|
499
|
+
y = m - 1, y < A && (y = E);
|
|
500
500
|
};
|
|
501
501
|
switch (p.key) {
|
|
502
502
|
case "Home":
|
|
503
|
-
y =
|
|
503
|
+
y = A;
|
|
504
504
|
break;
|
|
505
505
|
case "End":
|
|
506
506
|
y = E;
|
|
@@ -519,7 +519,7 @@ var [Qp, uC] = zi(en), [zp, cC] = zi(
|
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
521
521
|
const B = y % g;
|
|
522
|
-
(
|
|
522
|
+
(b = h[B].ref.current) == null || b.focus();
|
|
523
523
|
});
|
|
524
524
|
return /* @__PURE__ */ w(
|
|
525
525
|
pC,
|
|
@@ -1085,11 +1085,11 @@ var Ml = "Checkbox", [p1, g9] = kt(Ml), [h1, m1] = p1(Ml), ah = S.forwardRef(
|
|
|
1085
1085
|
prop: r,
|
|
1086
1086
|
defaultProp: i,
|
|
1087
1087
|
onChange: u
|
|
1088
|
-
}),
|
|
1088
|
+
}), A = S.useRef(g);
|
|
1089
1089
|
return S.useEffect(() => {
|
|
1090
1090
|
const E = f == null ? void 0 : f.form;
|
|
1091
1091
|
if (E) {
|
|
1092
|
-
const C = () => y(
|
|
1092
|
+
const C = () => y(A.current);
|
|
1093
1093
|
return E.addEventListener("reset", C), () => E.removeEventListener("reset", C);
|
|
1094
1094
|
}
|
|
1095
1095
|
}, [f, y]), /* @__PURE__ */ te(h1, { scope: n, state: g, disabled: a, children: [
|
|
@@ -1416,7 +1416,7 @@ function V1() {
|
|
|
1416
1416
|
if (Ec) return Ce;
|
|
1417
1417
|
Ec = 1;
|
|
1418
1418
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
1419
|
-
function
|
|
1419
|
+
function A(C) {
|
|
1420
1420
|
if (typeof C == "object" && C !== null) {
|
|
1421
1421
|
var P = C.$$typeof;
|
|
1422
1422
|
switch (P) {
|
|
@@ -1447,35 +1447,35 @@ function V1() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
function E(C) {
|
|
1450
|
-
return
|
|
1450
|
+
return A(C) === u;
|
|
1451
1451
|
}
|
|
1452
1452
|
return Ce.AsyncMode = l, Ce.ConcurrentMode = u, Ce.ContextConsumer = a, Ce.ContextProvider = s, Ce.Element = t, Ce.ForwardRef = c, Ce.Fragment = o, Ce.Lazy = v, Ce.Memo = p, Ce.Portal = n, Ce.Profiler = i, Ce.StrictMode = r, Ce.Suspense = d, Ce.isAsyncMode = function(C) {
|
|
1453
|
-
return E(C) ||
|
|
1453
|
+
return E(C) || A(C) === l;
|
|
1454
1454
|
}, Ce.isConcurrentMode = E, Ce.isContextConsumer = function(C) {
|
|
1455
|
-
return
|
|
1455
|
+
return A(C) === a;
|
|
1456
1456
|
}, Ce.isContextProvider = function(C) {
|
|
1457
|
-
return
|
|
1457
|
+
return A(C) === s;
|
|
1458
1458
|
}, Ce.isElement = function(C) {
|
|
1459
1459
|
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
1460
1460
|
}, Ce.isForwardRef = function(C) {
|
|
1461
|
-
return
|
|
1461
|
+
return A(C) === c;
|
|
1462
1462
|
}, Ce.isFragment = function(C) {
|
|
1463
|
-
return
|
|
1463
|
+
return A(C) === o;
|
|
1464
1464
|
}, Ce.isLazy = function(C) {
|
|
1465
|
-
return
|
|
1465
|
+
return A(C) === v;
|
|
1466
1466
|
}, Ce.isMemo = function(C) {
|
|
1467
|
-
return
|
|
1467
|
+
return A(C) === p;
|
|
1468
1468
|
}, Ce.isPortal = function(C) {
|
|
1469
|
-
return
|
|
1469
|
+
return A(C) === n;
|
|
1470
1470
|
}, Ce.isProfiler = function(C) {
|
|
1471
|
-
return
|
|
1471
|
+
return A(C) === i;
|
|
1472
1472
|
}, Ce.isStrictMode = function(C) {
|
|
1473
|
-
return
|
|
1473
|
+
return A(C) === r;
|
|
1474
1474
|
}, Ce.isSuspense = function(C) {
|
|
1475
|
-
return
|
|
1475
|
+
return A(C) === d;
|
|
1476
1476
|
}, Ce.isValidElementType = function(C) {
|
|
1477
1477
|
return typeof C == "string" || typeof C == "function" || C === o || C === u || C === i || C === r || C === d || C === f || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === p || C.$$typeof === s || C.$$typeof === a || C.$$typeof === c || C.$$typeof === m || C.$$typeof === g || C.$$typeof === y || C.$$typeof === h);
|
|
1478
|
-
}, Ce.typeOf =
|
|
1478
|
+
}, Ce.typeOf = A, Ce;
|
|
1479
1479
|
}
|
|
1480
1480
|
var we = {};
|
|
1481
1481
|
/** @license React v16.13.1
|
|
@@ -1490,7 +1490,7 @@ var Sc;
|
|
|
1490
1490
|
function K1() {
|
|
1491
1491
|
return Sc || (Sc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1492
1492
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
1493
|
-
function
|
|
1493
|
+
function A(K) {
|
|
1494
1494
|
return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1495
1495
|
K === o || K === u || K === i || K === r || K === d || K === f || typeof K == "object" && K !== null && (K.$$typeof === v || K.$$typeof === p || K.$$typeof === s || K.$$typeof === a || K.$$typeof === c || K.$$typeof === m || K.$$typeof === g || K.$$typeof === y || K.$$typeof === h);
|
|
1496
1496
|
}
|
|
@@ -1526,7 +1526,7 @@ function K1() {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
var C = l, P = u, B = a,
|
|
1529
|
+
var C = l, P = u, B = a, b = s, R = t, M = c, D = o, F = v, x = p, T = n, I = i, N = r, L = d, k = !1;
|
|
1530
1530
|
function W(K) {
|
|
1531
1531
|
return k || (k = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(K) || E(K) === l;
|
|
1532
1532
|
}
|
|
@@ -1566,7 +1566,7 @@ function K1() {
|
|
|
1566
1566
|
function J(K) {
|
|
1567
1567
|
return E(K) === d;
|
|
1568
1568
|
}
|
|
1569
|
-
we.AsyncMode = C, we.ConcurrentMode = P, we.ContextConsumer = B, we.ContextProvider =
|
|
1569
|
+
we.AsyncMode = C, we.ConcurrentMode = P, we.ContextConsumer = B, we.ContextProvider = b, we.Element = R, we.ForwardRef = M, we.Fragment = D, we.Lazy = F, we.Memo = x, we.Portal = T, we.Profiler = I, we.StrictMode = N, we.Suspense = L, we.isAsyncMode = W, we.isConcurrentMode = O, we.isContextConsumer = V, we.isContextProvider = X, we.isElement = $, we.isForwardRef = j, we.isFragment = z, we.isLazy = q, we.isMemo = G, we.isPortal = _, we.isProfiler = re, we.isStrictMode = Q, we.isSuspense = J, we.isValidElementType = A, we.typeOf = E;
|
|
1570
1570
|
}()), we;
|
|
1571
1571
|
}
|
|
1572
1572
|
var Pc;
|
|
@@ -1718,12 +1718,12 @@ function j1() {
|
|
|
1718
1718
|
string: g("string"),
|
|
1719
1719
|
symbol: g("symbol"),
|
|
1720
1720
|
any: y(),
|
|
1721
|
-
arrayOf:
|
|
1721
|
+
arrayOf: A,
|
|
1722
1722
|
element: E(),
|
|
1723
1723
|
elementType: C(),
|
|
1724
1724
|
instanceOf: P,
|
|
1725
1725
|
node: M(),
|
|
1726
|
-
objectOf:
|
|
1726
|
+
objectOf: b,
|
|
1727
1727
|
oneOf: B,
|
|
1728
1728
|
oneOfType: R,
|
|
1729
1729
|
shape: F,
|
|
@@ -1776,7 +1776,7 @@ function j1() {
|
|
|
1776
1776
|
function y() {
|
|
1777
1777
|
return m(s);
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1779
|
+
function A(O) {
|
|
1780
1780
|
function V(X, $, j, z, q) {
|
|
1781
1781
|
if (typeof O != "function")
|
|
1782
1782
|
return new h("Property `" + q + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -1843,7 +1843,7 @@ function j1() {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
return m(V);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function b(O) {
|
|
1847
1847
|
function V(X, $, j, z, q) {
|
|
1848
1848
|
if (typeof O != "function")
|
|
1849
1849
|
return new h("Property `" + q + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
@@ -2151,14 +2151,14 @@ var Ee = {};
|
|
|
2151
2151
|
var Oc;
|
|
2152
2152
|
function G1() {
|
|
2153
2153
|
return Oc || (Oc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2154
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = !1, h = !1, m = !1, g = !1, y = !1,
|
|
2155
|
-
|
|
2154
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = !1, h = !1, m = !1, g = !1, y = !1, A;
|
|
2155
|
+
A = Symbol.for("react.module.reference");
|
|
2156
2156
|
function E(H) {
|
|
2157
2157
|
return !!(typeof H == "string" || typeof H == "function" || H === n || H === r || y || H === o || H === u || H === c || g || H === p || v || h || m || typeof H == "object" && H !== null && (H.$$typeof === f || H.$$typeof === d || H.$$typeof === i || H.$$typeof === s || H.$$typeof === l || // This needs to include all possible module reference object
|
|
2158
2158
|
// types supported by any Flight configuration anywhere since
|
|
2159
2159
|
// we don't know which Flight build this will end up being used
|
|
2160
2160
|
// with.
|
|
2161
|
-
H.$$typeof ===
|
|
2161
|
+
H.$$typeof === A || H.getModuleId !== void 0));
|
|
2162
2162
|
}
|
|
2163
2163
|
function C(H) {
|
|
2164
2164
|
if (typeof H == "object" && H !== null) {
|
|
@@ -2192,7 +2192,7 @@ function G1() {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
-
var P = s, B = i,
|
|
2195
|
+
var P = s, B = i, b = e, R = l, M = n, D = f, F = d, x = t, T = r, I = o, N = u, L = c, k = !1, W = !1;
|
|
2196
2196
|
function O(H) {
|
|
2197
2197
|
return k || (k = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2198
2198
|
}
|
|
@@ -2235,7 +2235,7 @@ function G1() {
|
|
|
2235
2235
|
function ne(H) {
|
|
2236
2236
|
return C(H) === c;
|
|
2237
2237
|
}
|
|
2238
|
-
Ee.ContextConsumer = P, Ee.ContextProvider = B, Ee.Element =
|
|
2238
|
+
Ee.ContextConsumer = P, Ee.ContextProvider = B, Ee.Element = b, Ee.ForwardRef = R, Ee.Fragment = M, Ee.Lazy = D, Ee.Memo = F, Ee.Portal = x, Ee.Profiler = T, Ee.StrictMode = I, Ee.Suspense = N, Ee.SuspenseList = L, Ee.isAsyncMode = O, Ee.isConcurrentMode = V, Ee.isContextConsumer = X, Ee.isContextProvider = $, Ee.isElement = j, Ee.isForwardRef = z, Ee.isFragment = q, Ee.isLazy = G, Ee.isMemo = _, Ee.isPortal = re, Ee.isProfiler = Q, Ee.isStrictMode = J, Ee.isSuspense = K, Ee.isSuspenseList = ne, Ee.isValidElementType = E, Ee.typeOf = C;
|
|
2239
2239
|
}()), Ee;
|
|
2240
2240
|
}
|
|
2241
2241
|
process.env.NODE_ENV === "production" ? Aa.exports = q1() : Aa.exports = G1();
|
|
@@ -2273,15 +2273,15 @@ const Fc = (e) => typeof e == "object" && e != null && e.nodeType === 1, Lc = (e
|
|
|
2273
2273
|
}
|
|
2274
2274
|
f != null && f === document.body && Ir(f) && !Ir(document.documentElement) || f != null && Ir(f, l) && d.push(f);
|
|
2275
2275
|
}
|
|
2276
|
-
const p = (o = (n = window.visualViewport) == null ? void 0 : n.width) != null ? o : innerWidth, v = (i = (r = window.visualViewport) == null ? void 0 : r.height) != null ? i : innerHeight, { scrollX: h, scrollY: m } = window, { height: g, width: y, top:
|
|
2276
|
+
const p = (o = (n = window.visualViewport) == null ? void 0 : n.width) != null ? o : innerWidth, v = (i = (r = window.visualViewport) == null ? void 0 : r.height) != null ? i : innerHeight, { scrollX: h, scrollY: m } = window, { height: g, width: y, top: A, right: E, bottom: C, left: P } = e.getBoundingClientRect(), { top: B, right: b, left: R } = ((x) => {
|
|
2277
2277
|
const T = window.getComputedStyle(x);
|
|
2278
2278
|
return { top: parseFloat(T.scrollMarginTop) || 0, right: parseFloat(T.scrollMarginRight) || 0, bottom: parseFloat(T.scrollMarginBottom) || 0, left: parseFloat(T.scrollMarginLeft) || 0 };
|
|
2279
2279
|
})(e);
|
|
2280
|
-
let M =
|
|
2280
|
+
let M = A - B, D = s === "center" ? P + y / 2 - R + b : s === "end" ? E + b : P - R;
|
|
2281
2281
|
const F = [];
|
|
2282
2282
|
for (let x = 0; x < d.length; x++) {
|
|
2283
2283
|
const T = d[x], { height: I, width: N, top: L, right: k, bottom: W, left: O } = T.getBoundingClientRect();
|
|
2284
|
-
if (
|
|
2284
|
+
if (A >= 0 && P >= 0 && C <= v && E <= p && (T === c && !Ir(T) || A >= L && C <= W && P >= O && E <= k)) return F;
|
|
2285
2285
|
const V = getComputedStyle(T), X = parseInt(V.borderLeftWidth, 10), $ = parseInt(V.borderTopWidth, 10), j = parseInt(V.borderRightWidth, 10), z = parseInt(V.borderBottomWidth, 10);
|
|
2286
2286
|
let q = 0, G = 0;
|
|
2287
2287
|
const _ = "offsetWidth" in T ? T.offsetWidth - T.clientWidth - X - j : 0, re = "offsetHeight" in T ? T.offsetHeight - T.clientHeight - $ - z : 0, Q = "offsetWidth" in T ? T.offsetWidth === 0 ? 0 : N / T.offsetWidth : 0, J = "offsetHeight" in T ? T.offsetHeight === 0 ? 0 : I / T.offsetHeight : 0;
|
|
@@ -2501,24 +2501,24 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2501
2501
|
var i;
|
|
2502
2502
|
i = t.call(this, r) || this, i.id = i.props.id || "downshift-" + yh(), i.menuId = i.props.menuId || i.id + "-menu", i.labelId = i.props.labelId || i.id + "-label", i.inputId = i.props.inputId || i.id + "-input", i.getItemId = i.props.getItemId || function(y) {
|
|
2503
2503
|
return i.id + "-item-" + y;
|
|
2504
|
-
}, i.items = [], i.itemCount = null, i.previousResultCount = 0, i.timeoutIds = [], i.internalSetTimeout = function(y,
|
|
2504
|
+
}, i.items = [], i.itemCount = null, i.previousResultCount = 0, i.timeoutIds = [], i.internalSetTimeout = function(y, A) {
|
|
2505
2505
|
var E = setTimeout(function() {
|
|
2506
2506
|
i.timeoutIds = i.timeoutIds.filter(function(C) {
|
|
2507
2507
|
return C !== E;
|
|
2508
2508
|
}), y();
|
|
2509
|
-
},
|
|
2509
|
+
}, A);
|
|
2510
2510
|
i.timeoutIds.push(E);
|
|
2511
2511
|
}, i.setItemCount = function(y) {
|
|
2512
2512
|
i.itemCount = y;
|
|
2513
2513
|
}, i.unsetItemCount = function() {
|
|
2514
2514
|
i.itemCount = null;
|
|
2515
|
-
}, i.isItemDisabled = function(y,
|
|
2516
|
-
var E = i.getItemNodeFromIndex(
|
|
2515
|
+
}, i.isItemDisabled = function(y, A) {
|
|
2516
|
+
var E = i.getItemNodeFromIndex(A);
|
|
2517
2517
|
return E && E.hasAttribute("disabled");
|
|
2518
|
-
}, i.setHighlightedIndex = function(y,
|
|
2519
|
-
y === void 0 && (y = i.props.defaultHighlightedIndex),
|
|
2518
|
+
}, i.setHighlightedIndex = function(y, A) {
|
|
2519
|
+
y === void 0 && (y = i.props.defaultHighlightedIndex), A === void 0 && (A = {}), A = kr(A), i.internalSetState(he({
|
|
2520
2520
|
highlightedIndex: y
|
|
2521
|
-
},
|
|
2521
|
+
}, A));
|
|
2522
2522
|
}, i.clearSelection = function(y) {
|
|
2523
2523
|
i.internalSetState({
|
|
2524
2524
|
selectedItem: null,
|
|
@@ -2526,46 +2526,46 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2526
2526
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
2527
2527
|
isOpen: i.props.defaultIsOpen
|
|
2528
2528
|
}, y);
|
|
2529
|
-
}, i.selectItem = function(y,
|
|
2530
|
-
|
|
2529
|
+
}, i.selectItem = function(y, A, E) {
|
|
2530
|
+
A = kr(A), i.internalSetState(he({
|
|
2531
2531
|
isOpen: i.props.defaultIsOpen,
|
|
2532
2532
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
2533
2533
|
selectedItem: y,
|
|
2534
2534
|
inputValue: i.props.itemToString(y)
|
|
2535
|
-
},
|
|
2536
|
-
}, i.selectItemAtIndex = function(y,
|
|
2535
|
+
}, A), E);
|
|
2536
|
+
}, i.selectItemAtIndex = function(y, A, E) {
|
|
2537
2537
|
var C = i.items[y];
|
|
2538
|
-
C != null && i.selectItem(C,
|
|
2539
|
-
}, i.selectHighlightedItem = function(y,
|
|
2540
|
-
return i.selectItemAtIndex(i.getState().highlightedIndex, y,
|
|
2541
|
-
}, i.internalSetState = function(y,
|
|
2538
|
+
C != null && i.selectItem(C, A, E);
|
|
2539
|
+
}, i.selectHighlightedItem = function(y, A) {
|
|
2540
|
+
return i.selectItemAtIndex(i.getState().highlightedIndex, y, A);
|
|
2541
|
+
}, i.internalSetState = function(y, A) {
|
|
2542
2542
|
var E, C, P = {}, B = typeof y == "function";
|
|
2543
|
-
return !B && y.hasOwnProperty("inputValue") && i.props.onInputValueChange(y.inputValue, he({}, i.getStateAndHelpers(), y)), i.setState(function(
|
|
2543
|
+
return !B && y.hasOwnProperty("inputValue") && i.props.onInputValueChange(y.inputValue, he({}, i.getStateAndHelpers(), y)), i.setState(function(b) {
|
|
2544
2544
|
var R;
|
|
2545
|
-
|
|
2546
|
-
var M = B ? y(
|
|
2547
|
-
M = i.props.stateReducer(
|
|
2545
|
+
b = i.getState(b);
|
|
2546
|
+
var M = B ? y(b) : y;
|
|
2547
|
+
M = i.props.stateReducer(b, M), E = M.hasOwnProperty("selectedItem");
|
|
2548
2548
|
var D = {};
|
|
2549
|
-
return E && M.selectedItem !==
|
|
2550
|
-
|
|
2549
|
+
return E && M.selectedItem !== b.selectedItem && (C = M.selectedItem), (R = M).type || (R.type = Eh), Object.keys(M).forEach(function(F) {
|
|
2550
|
+
b[F] !== M[F] && (P[F] = M[F]), F !== "type" && (M[F], di(i.props, F) || (D[F] = M[F]));
|
|
2551
2551
|
}), B && M.hasOwnProperty("inputValue") && i.props.onInputValueChange(M.inputValue, he({}, i.getStateAndHelpers(), M)), D;
|
|
2552
2552
|
}, function() {
|
|
2553
|
-
Vc(
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2553
|
+
Vc(A)();
|
|
2554
|
+
var b = Object.keys(P).length > 1;
|
|
2555
|
+
b && i.props.onStateChange(P, i.getStateAndHelpers()), E && i.props.onSelect(y.selectedItem, i.getStateAndHelpers()), C !== void 0 && i.props.onChange(C, i.getStateAndHelpers()), i.props.onUserAction(P, i.getStateAndHelpers());
|
|
2556
2556
|
});
|
|
2557
2557
|
}, i.rootRef = function(y) {
|
|
2558
2558
|
return i._rootNode = y;
|
|
2559
|
-
}, i.getRootProps = function(y,
|
|
2560
|
-
var E, C = y === void 0 ? {} : y, P = C.refKey, B = P === void 0 ? "ref" : P,
|
|
2559
|
+
}, i.getRootProps = function(y, A) {
|
|
2560
|
+
var E, C = y === void 0 ? {} : y, P = C.refKey, B = P === void 0 ? "ref" : P, b = C.ref, R = Ot(C, ow), M = A === void 0 ? {} : A, D = M.suppressRefError, F = D === void 0 ? !1 : D;
|
|
2561
2561
|
i.getRootProps.called = !0, i.getRootProps.refKey = B, i.getRootProps.suppressRefError = F;
|
|
2562
2562
|
var x = i.getState(), T = x.isOpen;
|
|
2563
|
-
return he((E = {}, E[B] = _n(
|
|
2563
|
+
return he((E = {}, E[B] = _n(b, i.rootRef), E.role = "combobox", E["aria-expanded"] = T, E["aria-haspopup"] = "listbox", E["aria-owns"] = T ? i.menuId : void 0, E["aria-labelledby"] = i.labelId, E), R);
|
|
2564
2564
|
}, i.keyDownHandlers = {
|
|
2565
|
-
ArrowDown: function(
|
|
2565
|
+
ArrowDown: function(A) {
|
|
2566
2566
|
var E = this;
|
|
2567
|
-
if (
|
|
2568
|
-
var C =
|
|
2567
|
+
if (A.preventDefault(), this.getState().isOpen) {
|
|
2568
|
+
var C = A.shiftKey ? 5 : 1;
|
|
2569
2569
|
this.moveHighlightedIndex(C, {
|
|
2570
2570
|
type: Jr
|
|
2571
2571
|
});
|
|
@@ -2576,7 +2576,7 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2576
2576
|
}, function() {
|
|
2577
2577
|
var P = E.getItemCount();
|
|
2578
2578
|
if (P > 0) {
|
|
2579
|
-
var B = E.getState(),
|
|
2579
|
+
var B = E.getState(), b = B.highlightedIndex, R = Rn(b, 1, {
|
|
2580
2580
|
length: P
|
|
2581
2581
|
}, E.isItemDisabled, !0);
|
|
2582
2582
|
E.setHighlightedIndex(R, {
|
|
@@ -2585,10 +2585,10 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2585
2585
|
}
|
|
2586
2586
|
});
|
|
2587
2587
|
},
|
|
2588
|
-
ArrowUp: function(
|
|
2588
|
+
ArrowUp: function(A) {
|
|
2589
2589
|
var E = this;
|
|
2590
|
-
if (
|
|
2591
|
-
var C =
|
|
2590
|
+
if (A.preventDefault(), this.getState().isOpen) {
|
|
2591
|
+
var C = A.shiftKey ? -5 : -1;
|
|
2592
2592
|
this.moveHighlightedIndex(C, {
|
|
2593
2593
|
type: Xr
|
|
2594
2594
|
});
|
|
@@ -2599,7 +2599,7 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2599
2599
|
}, function() {
|
|
2600
2600
|
var P = E.getItemCount();
|
|
2601
2601
|
if (P > 0) {
|
|
2602
|
-
var B = E.getState(),
|
|
2602
|
+
var B = E.getState(), b = B.highlightedIndex, R = Rn(b, -1, {
|
|
2603
2603
|
length: P
|
|
2604
2604
|
}, E.isItemDisabled, !0);
|
|
2605
2605
|
E.setHighlightedIndex(R, {
|
|
@@ -2608,13 +2608,13 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2608
2608
|
}
|
|
2609
2609
|
});
|
|
2610
2610
|
},
|
|
2611
|
-
Enter: function(
|
|
2612
|
-
if (
|
|
2611
|
+
Enter: function(A) {
|
|
2612
|
+
if (A.which !== 229) {
|
|
2613
2613
|
var E = this.getState(), C = E.isOpen, P = E.highlightedIndex;
|
|
2614
2614
|
if (C && P != null) {
|
|
2615
|
-
|
|
2616
|
-
var B = this.items[P],
|
|
2617
|
-
if (B == null ||
|
|
2615
|
+
A.preventDefault();
|
|
2616
|
+
var B = this.items[P], b = this.getItemNodeFromIndex(P);
|
|
2617
|
+
if (B == null || b && b.hasAttribute("disabled"))
|
|
2618
2618
|
return;
|
|
2619
2619
|
this.selectHighlightedItem({
|
|
2620
2620
|
type: Ih
|
|
@@ -2622,8 +2622,8 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
2624
|
},
|
|
2625
|
-
Escape: function(
|
|
2626
|
-
|
|
2625
|
+
Escape: function(A) {
|
|
2626
|
+
A.preventDefault(), this.reset(he({
|
|
2627
2627
|
type: Th
|
|
2628
2628
|
}, !this.state.isOpen && {
|
|
2629
2629
|
selectedItem: null,
|
|
@@ -2631,16 +2631,16 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2631
2631
|
}));
|
|
2632
2632
|
}
|
|
2633
2633
|
}, i.buttonKeyDownHandlers = he({}, i.keyDownHandlers, {
|
|
2634
|
-
" ": function(
|
|
2635
|
-
|
|
2634
|
+
" ": function(A) {
|
|
2635
|
+
A.preventDefault(), this.toggleMenu({
|
|
2636
2636
|
type: Oh
|
|
2637
2637
|
});
|
|
2638
2638
|
}
|
|
2639
2639
|
}), i.inputKeyDownHandlers = he({}, i.keyDownHandlers, {
|
|
2640
|
-
Home: function(
|
|
2640
|
+
Home: function(A) {
|
|
2641
2641
|
var E = this.getState(), C = E.isOpen;
|
|
2642
2642
|
if (C) {
|
|
2643
|
-
|
|
2643
|
+
A.preventDefault();
|
|
2644
2644
|
var P = this.getItemCount();
|
|
2645
2645
|
if (!(P <= 0 || !C)) {
|
|
2646
2646
|
var B = po(0, !1, {
|
|
@@ -2652,10 +2652,10 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
2654
|
},
|
|
2655
|
-
End: function(
|
|
2655
|
+
End: function(A) {
|
|
2656
2656
|
var E = this.getState(), C = E.isOpen;
|
|
2657
2657
|
if (C) {
|
|
2658
|
-
|
|
2658
|
+
A.preventDefault();
|
|
2659
2659
|
var P = this.getItemCount();
|
|
2660
2660
|
if (!(P <= 0 || !C)) {
|
|
2661
2661
|
var B = po(P - 1, !0, {
|
|
@@ -2668,29 +2668,29 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
2670
|
}), i.getToggleButtonProps = function(y) {
|
|
2671
|
-
var
|
|
2672
|
-
|
|
2673
|
-
var C =
|
|
2671
|
+
var A = y === void 0 ? {} : y, E = A.onClick;
|
|
2672
|
+
A.onPress;
|
|
2673
|
+
var C = A.onKeyDown, P = A.onKeyUp, B = A.onBlur, b = Ot(A, rw), R = i.getState(), M = R.isOpen, D = {
|
|
2674
2674
|
onClick: Qe(E, i.buttonHandleClick),
|
|
2675
2675
|
onKeyDown: Qe(C, i.buttonHandleKeyDown),
|
|
2676
2676
|
onKeyUp: Qe(P, i.buttonHandleKeyUp),
|
|
2677
2677
|
onBlur: Qe(B, i.buttonHandleBlur)
|
|
2678
|
-
}, F =
|
|
2678
|
+
}, F = b.disabled ? {} : D;
|
|
2679
2679
|
return he({
|
|
2680
2680
|
type: "button",
|
|
2681
2681
|
role: "button",
|
|
2682
2682
|
"aria-label": M ? "close menu" : "open menu",
|
|
2683
2683
|
"aria-haspopup": !0,
|
|
2684
2684
|
"data-toggle": !0
|
|
2685
|
-
}, F,
|
|
2685
|
+
}, F, b);
|
|
2686
2686
|
}, i.buttonHandleKeyUp = function(y) {
|
|
2687
2687
|
y.preventDefault();
|
|
2688
2688
|
}, i.buttonHandleKeyDown = function(y) {
|
|
2689
|
-
var
|
|
2690
|
-
i.buttonKeyDownHandlers[
|
|
2689
|
+
var A = ba(y);
|
|
2690
|
+
i.buttonKeyDownHandlers[A] && i.buttonKeyDownHandlers[A].call(xc(i), y);
|
|
2691
2691
|
}, i.buttonHandleClick = function(y) {
|
|
2692
2692
|
if (y.preventDefault(), i.props.environment) {
|
|
2693
|
-
var
|
|
2693
|
+
var A = i.props.environment.document, E = A.body, C = A.activeElement;
|
|
2694
2694
|
E && E === C && y.target.focus();
|
|
2695
2695
|
}
|
|
2696
2696
|
process.env.NODE_ENV === "test" ? i.toggleMenu({
|
|
@@ -2701,11 +2701,11 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2701
2701
|
});
|
|
2702
2702
|
});
|
|
2703
2703
|
}, i.buttonHandleBlur = function(y) {
|
|
2704
|
-
var
|
|
2704
|
+
var A = y.target;
|
|
2705
2705
|
i.internalSetTimeout(function() {
|
|
2706
2706
|
if (!(i.isMouseDown || !i.props.environment)) {
|
|
2707
2707
|
var E = i.props.environment.document.activeElement;
|
|
2708
|
-
(E == null || E.id !== i.inputId) && E !==
|
|
2708
|
+
(E == null || E.id !== i.inputId) && E !== A && i.reset({
|
|
2709
2709
|
type: Nh
|
|
2710
2710
|
});
|
|
2711
2711
|
}
|
|
@@ -2716,12 +2716,12 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2716
2716
|
id: i.labelId
|
|
2717
2717
|
}, y);
|
|
2718
2718
|
}, i.getInputProps = function(y) {
|
|
2719
|
-
var
|
|
2720
|
-
|
|
2721
|
-
var
|
|
2719
|
+
var A = y === void 0 ? {} : y, E = A.onKeyDown, C = A.onBlur, P = A.onChange, B = A.onInput;
|
|
2720
|
+
A.onChangeText;
|
|
2721
|
+
var b = Ot(A, iw), R, M = {};
|
|
2722
2722
|
R = "onChange";
|
|
2723
2723
|
var D = i.getState(), F = D.inputValue, x = D.isOpen, T = D.highlightedIndex;
|
|
2724
|
-
if (!
|
|
2724
|
+
if (!b.disabled) {
|
|
2725
2725
|
var I;
|
|
2726
2726
|
M = (I = {}, I[R] = Qe(P, B, i.inputHandleChange), I.onKeyDown = Qe(E, i.inputHandleKeyDown), I.onBlur = Qe(C, i.inputHandleBlur), I);
|
|
2727
2727
|
}
|
|
@@ -2729,16 +2729,16 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2729
2729
|
"aria-autocomplete": "list",
|
|
2730
2730
|
"aria-activedescendant": x && typeof T == "number" && T >= 0 ? i.getItemId(T) : void 0,
|
|
2731
2731
|
"aria-controls": x ? i.menuId : void 0,
|
|
2732
|
-
"aria-labelledby":
|
|
2732
|
+
"aria-labelledby": b && b["aria-label"] ? void 0 : i.labelId,
|
|
2733
2733
|
// https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
|
|
2734
2734
|
// revert back since autocomplete="nope" is ignored on latest Chrome and Opera
|
|
2735
2735
|
autoComplete: "off",
|
|
2736
2736
|
value: F,
|
|
2737
2737
|
id: i.inputId
|
|
2738
|
-
}, M,
|
|
2738
|
+
}, M, b);
|
|
2739
2739
|
}, i.inputHandleKeyDown = function(y) {
|
|
2740
|
-
var
|
|
2741
|
-
|
|
2740
|
+
var A = ba(y);
|
|
2741
|
+
A && i.inputKeyDownHandlers[A] && i.inputKeyDownHandlers[A].call(xc(i), y);
|
|
2742
2742
|
}, i.inputHandleChange = function(y) {
|
|
2743
2743
|
i.internalSetState({
|
|
2744
2744
|
type: Bh,
|
|
@@ -2750,7 +2750,7 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2750
2750
|
i.internalSetTimeout(function() {
|
|
2751
2751
|
var y;
|
|
2752
2752
|
if (!(i.isMouseDown || !i.props.environment)) {
|
|
2753
|
-
var
|
|
2753
|
+
var A = i.props.environment.document.activeElement, E = (A == null || (y = A.dataset) == null ? void 0 : y.toggle) && i._rootNode && i._rootNode.contains(A);
|
|
2754
2754
|
E || i.reset({
|
|
2755
2755
|
type: Rh
|
|
2756
2756
|
});
|
|
@@ -2758,23 +2758,23 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2758
2758
|
});
|
|
2759
2759
|
}, i.menuRef = function(y) {
|
|
2760
2760
|
i._menuNode = y;
|
|
2761
|
-
}, i.getMenuProps = function(y,
|
|
2762
|
-
var E, C = y === void 0 ? {} : y, P = C.refKey, B = P === void 0 ? "ref" : P,
|
|
2763
|
-
return i.getMenuProps.called = !0, i.getMenuProps.refKey = B, i.getMenuProps.suppressRefError = F, he((E = {}, E[B] = _n(
|
|
2761
|
+
}, i.getMenuProps = function(y, A) {
|
|
2762
|
+
var E, C = y === void 0 ? {} : y, P = C.refKey, B = P === void 0 ? "ref" : P, b = C.ref, R = Ot(C, sw), M = A === void 0 ? {} : A, D = M.suppressRefError, F = D === void 0 ? !1 : D;
|
|
2763
|
+
return i.getMenuProps.called = !0, i.getMenuProps.refKey = B, i.getMenuProps.suppressRefError = F, he((E = {}, E[B] = _n(b, i.menuRef), E.role = "listbox", E["aria-labelledby"] = R && R["aria-label"] ? void 0 : i.labelId, E.id = i.menuId, E), R);
|
|
2764
2764
|
}, i.getItemProps = function(y) {
|
|
2765
|
-
var
|
|
2765
|
+
var A, E = y === void 0 ? {} : y, C = E.onMouseMove, P = E.onMouseDown, B = E.onClick;
|
|
2766
2766
|
E.onPress;
|
|
2767
|
-
var
|
|
2767
|
+
var b = E.index, R = E.item, M = R === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
2768
2768
|
/* istanbul ignore next */
|
|
2769
2769
|
void 0
|
|
2770
2770
|
) : $1("getItemProps", "item") : R, D = Ot(E, aw);
|
|
2771
|
-
|
|
2772
|
-
var F = "onClick", x = B, T = (
|
|
2771
|
+
b === void 0 ? (i.items.push(M), b = i.items.indexOf(M)) : i.items[b] = M;
|
|
2772
|
+
var F = "onClick", x = B, T = (A = {
|
|
2773
2773
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
2774
2774
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
2775
2775
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
2776
2776
|
onMouseMove: Qe(C, function() {
|
|
2777
|
-
|
|
2777
|
+
b !== i.getState().highlightedIndex && (i.setHighlightedIndex(b, {
|
|
2778
2778
|
type: Ph
|
|
2779
2779
|
}), i.avoidScrolling = !0, i.internalSetTimeout(function() {
|
|
2780
2780
|
return i.avoidScrolling = !1;
|
|
@@ -2783,21 +2783,21 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2783
2783
|
onMouseDown: Qe(P, function(N) {
|
|
2784
2784
|
N.preventDefault();
|
|
2785
2785
|
})
|
|
2786
|
-
},
|
|
2787
|
-
i.selectItemAtIndex(
|
|
2786
|
+
}, A[F] = Qe(x, function() {
|
|
2787
|
+
i.selectItemAtIndex(b, {
|
|
2788
2788
|
type: Mh
|
|
2789
2789
|
});
|
|
2790
|
-
}),
|
|
2790
|
+
}), A), I = D.disabled ? {
|
|
2791
2791
|
onMouseDown: T.onMouseDown
|
|
2792
2792
|
} : T;
|
|
2793
2793
|
return he({
|
|
2794
|
-
id: i.getItemId(
|
|
2794
|
+
id: i.getItemId(b),
|
|
2795
2795
|
role: "option",
|
|
2796
|
-
"aria-selected": i.getState().highlightedIndex ===
|
|
2796
|
+
"aria-selected": i.getState().highlightedIndex === b
|
|
2797
2797
|
}, I, D);
|
|
2798
2798
|
}, i.clearItems = function() {
|
|
2799
2799
|
i.items = [];
|
|
2800
|
-
}, i.reset = function(y,
|
|
2800
|
+
}, i.reset = function(y, A) {
|
|
2801
2801
|
y === void 0 && (y = {}), y = kr(y), i.internalSetState(function(E) {
|
|
2802
2802
|
var C = E.selectedItem;
|
|
2803
2803
|
return he({
|
|
@@ -2805,8 +2805,8 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2805
2805
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
2806
2806
|
inputValue: i.props.itemToString(C)
|
|
2807
2807
|
}, y);
|
|
2808
|
-
},
|
|
2809
|
-
}, i.toggleMenu = function(y,
|
|
2808
|
+
}, A);
|
|
2809
|
+
}, i.toggleMenu = function(y, A) {
|
|
2810
2810
|
y === void 0 && (y = {}), y = kr(y), i.internalSetState(function(E) {
|
|
2811
2811
|
var C = E.isOpen;
|
|
2812
2812
|
return he({
|
|
@@ -2816,7 +2816,7 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2816
2816
|
}, y);
|
|
2817
2817
|
}, function() {
|
|
2818
2818
|
var E = i.getState(), C = E.isOpen, P = E.highlightedIndex;
|
|
2819
|
-
C && i.getItemCount() > 0 && typeof P == "number" && i.setHighlightedIndex(P, y), Vc(
|
|
2819
|
+
C && i.getItemCount() > 0 && typeof P == "number" && i.setHighlightedIndex(P, y), Vc(A)();
|
|
2820
2820
|
});
|
|
2821
2821
|
}, i.openMenu = function(y) {
|
|
2822
2822
|
i.internalSetState({
|
|
@@ -2829,12 +2829,12 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2829
2829
|
}, i.updateStatus = Bl(function() {
|
|
2830
2830
|
var y;
|
|
2831
2831
|
if ((y = i.props) != null && (y = y.environment) != null && y.document) {
|
|
2832
|
-
var
|
|
2832
|
+
var A = i.getState(), E = i.items[A.highlightedIndex], C = i.getItemCount(), P = i.props.getA11yStatusMessage(he({
|
|
2833
2833
|
itemToString: i.props.itemToString,
|
|
2834
2834
|
previousResultCount: i.previousResultCount,
|
|
2835
2835
|
resultCount: C,
|
|
2836
2836
|
highlightedItem: E
|
|
2837
|
-
},
|
|
2837
|
+
}, A));
|
|
2838
2838
|
i.previousResultCount = C, xh(P, i.props.environment.document);
|
|
2839
2839
|
}
|
|
2840
2840
|
}, 200);
|
|
@@ -2872,7 +2872,7 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2872
2872
|
this.setHighlightedIndex(c, s);
|
|
2873
2873
|
}
|
|
2874
2874
|
}, o.getStateAndHelpers = function() {
|
|
2875
|
-
var i = this.getState(), s = i.highlightedIndex, a = i.inputValue, l = i.selectedItem, u = i.isOpen, c = this.props.itemToString, d = this.id, f = this.getRootProps, p = this.getToggleButtonProps, v = this.getLabelProps, h = this.getMenuProps, m = this.getInputProps, g = this.getItemProps, y = this.openMenu,
|
|
2875
|
+
var i = this.getState(), s = i.highlightedIndex, a = i.inputValue, l = i.selectedItem, u = i.isOpen, c = this.props.itemToString, d = this.id, f = this.getRootProps, p = this.getToggleButtonProps, v = this.getLabelProps, h = this.getMenuProps, m = this.getInputProps, g = this.getItemProps, y = this.openMenu, A = this.closeMenu, E = this.toggleMenu, C = this.selectItem, P = this.selectItemAtIndex, B = this.selectHighlightedItem, b = this.setHighlightedIndex, R = this.clearSelection, M = this.clearItems, D = this.reset, F = this.setItemCount, x = this.unsetItemCount, T = this.internalSetState;
|
|
2876
2876
|
return {
|
|
2877
2877
|
// prop getters
|
|
2878
2878
|
getRootProps: f,
|
|
@@ -2884,12 +2884,12 @@ var Eh = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
2884
2884
|
// actions
|
|
2885
2885
|
reset: D,
|
|
2886
2886
|
openMenu: y,
|
|
2887
|
-
closeMenu:
|
|
2887
|
+
closeMenu: A,
|
|
2888
2888
|
toggleMenu: E,
|
|
2889
2889
|
selectItem: C,
|
|
2890
2890
|
selectItemAtIndex: P,
|
|
2891
2891
|
selectHighlightedItem: B,
|
|
2892
|
-
setHighlightedIndex:
|
|
2892
|
+
setHighlightedIndex: b,
|
|
2893
2893
|
clearSelection: R,
|
|
2894
2894
|
clearItems: M,
|
|
2895
2895
|
setItemCount: F,
|
|
@@ -3579,7 +3579,7 @@ var Mw = ["onMouseLeave", "refKey", "ref"], Rw = ["item", "index", "refKey", "re
|
|
|
3579
3579
|
Zl.stateChangeTypes = _h;
|
|
3580
3580
|
function Zl(e) {
|
|
3581
3581
|
e === void 0 && (e = {}), em(e, Zl);
|
|
3582
|
-
var t = he({}, Dw, e), n = t.items, o = t.scrollIntoView, r = t.environment, i = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = Iw(kw, t, Pw, xw), u = l[0], c = l[1], d = u.isOpen, f = u.highlightedIndex, p = u.selectedItem, v = u.inputValue, h = Z(null), m = Z({}), g = Z(null), y = Z(null),
|
|
3582
|
+
var t = he({}, Dw, e), n = t.items, o = t.scrollIntoView, r = t.environment, i = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = Iw(kw, t, Pw, xw), u = l[0], c = l[1], d = u.isOpen, f = u.highlightedIndex, p = u.selectedItem, v = u.inputValue, h = Z(null), m = Z({}), g = Z(null), y = Z(null), A = Gi(), E = gw(t), C = Z(), P = Kh({
|
|
3583
3583
|
state: u,
|
|
3584
3584
|
props: t
|
|
3585
3585
|
}), B = se(function(j) {
|
|
@@ -3596,7 +3596,7 @@ function Zl(e) {
|
|
|
3596
3596
|
environment: r,
|
|
3597
3597
|
itemToString: a
|
|
3598
3598
|
}, u));
|
|
3599
|
-
var
|
|
3599
|
+
var b = ww({
|
|
3600
3600
|
menuElement: h.current,
|
|
3601
3601
|
highlightedIndex: f,
|
|
3602
3602
|
isOpen: d,
|
|
@@ -3611,7 +3611,7 @@ function Zl(e) {
|
|
|
3611
3611
|
var j = Lo(t, "isOpen");
|
|
3612
3612
|
j && g.current && g.current.focus();
|
|
3613
3613
|
}, []), ie(function() {
|
|
3614
|
-
|
|
3614
|
+
A || (C.current = n.length);
|
|
3615
3615
|
});
|
|
3616
3616
|
var R = Cw(r, [y, h, g], se(function() {
|
|
3617
3617
|
P.current.state.isOpen && c({
|
|
@@ -3692,7 +3692,7 @@ function Zl(e) {
|
|
|
3692
3692
|
var ve = G.disabled, Ie = Ot(G, Rw);
|
|
3693
3693
|
ve !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
3694
3694
|
var Ve = P.current, ee = Ve.props, de = Ve.state, Pe = yw(_, re, ee.items, "Pass either item or index to getItemProps!"), Ye = Pe[0], Ze = Pe[1], ot = ee.isItemDisabled(Ye, Ze), ht = "onClick", lt = oe, $e = function() {
|
|
3695
|
-
R.isTouchEnd || Ze === de.highlightedIndex || (
|
|
3695
|
+
R.isTouchEnd || Ze === de.highlightedIndex || (b.current = !1, c({
|
|
3696
3696
|
type: zh,
|
|
3697
3697
|
index: Ze,
|
|
3698
3698
|
disabled: ot
|
|
@@ -3711,7 +3711,7 @@ function Zl(e) {
|
|
|
3711
3711
|
onMouseMove: Qe(ne, $e),
|
|
3712
3712
|
onMouseDown: Qe(H, Ct)
|
|
3713
3713
|
}, Ie);
|
|
3714
|
-
}, [c, E, P, R,
|
|
3714
|
+
}, [c, E, P, R, b]), I = se(function(j) {
|
|
3715
3715
|
var z, q = j === void 0 ? {} : j, G = q.onClick;
|
|
3716
3716
|
q.onPress;
|
|
3717
3717
|
var _ = q.refKey, re = _ === void 0 ? "ref" : _, Q = q.ref, J = Ot(q, Bw), K = P.current.state, ne = function() {
|
|
@@ -3940,8 +3940,8 @@ function om(e, t) {
|
|
|
3940
3940
|
n = !0, o = !0, r.isProcessing || e(p);
|
|
3941
3941
|
};
|
|
3942
3942
|
return { schedule: Mr.reduce((g, y) => {
|
|
3943
|
-
const
|
|
3944
|
-
return g[y] = (E, C = !1, P = !1) => (n || v(),
|
|
3943
|
+
const A = s[y];
|
|
3944
|
+
return g[y] = (E, C = !1, P = !1) => (n || v(), A.schedule(E, C, P)), g;
|
|
3945
3945
|
}, {}), cancel: (g) => {
|
|
3946
3946
|
for (let y = 0; y < Mr.length; y++)
|
|
3947
3947
|
s[Mr[y]].cancel(g);
|
|
@@ -4547,12 +4547,12 @@ function Px(e, t, n, o) {
|
|
|
4547
4547
|
if (v) {
|
|
4548
4548
|
const { transitionEnd: h, transition: m, ...g } = v;
|
|
4549
4549
|
for (const y in g) {
|
|
4550
|
-
let
|
|
4551
|
-
if (Array.isArray(
|
|
4552
|
-
const E = c ?
|
|
4553
|
-
|
|
4550
|
+
let A = g[y];
|
|
4551
|
+
if (Array.isArray(A)) {
|
|
4552
|
+
const E = c ? A.length - 1 : 0;
|
|
4553
|
+
A = A[E];
|
|
4554
4554
|
}
|
|
4555
|
-
|
|
4555
|
+
A !== null && (r[y] = A);
|
|
4556
4556
|
}
|
|
4557
4557
|
for (const y in h)
|
|
4558
4558
|
r[y] = h[y];
|
|
@@ -5797,33 +5797,33 @@ function gi(e = Oe.visualDuration, t = Oe.bounce) {
|
|
|
5797
5797
|
velocity: -/* @__PURE__ */ Kt(n.velocity || 0)
|
|
5798
5798
|
}), v = f || 0, h = u / (2 * Math.sqrt(l * c)), m = s - i, g = /* @__PURE__ */ Kt(Math.sqrt(l / c)), y = Math.abs(m) < 5;
|
|
5799
5799
|
o || (o = y ? Oe.restSpeed.granular : Oe.restSpeed.default), r || (r = y ? Oe.restDelta.granular : Oe.restDelta.default);
|
|
5800
|
-
let
|
|
5800
|
+
let A;
|
|
5801
5801
|
if (h < 1) {
|
|
5802
5802
|
const C = Ba(g, h);
|
|
5803
|
-
|
|
5803
|
+
A = (P) => {
|
|
5804
5804
|
const B = Math.exp(-h * g * P);
|
|
5805
5805
|
return s - B * ((v + h * g * m) / C * Math.sin(C * P) + m * Math.cos(C * P));
|
|
5806
5806
|
};
|
|
5807
5807
|
} else if (h === 1)
|
|
5808
|
-
|
|
5808
|
+
A = (C) => s - Math.exp(-g * C) * (m + (v + g * m) * C);
|
|
5809
5809
|
else {
|
|
5810
5810
|
const C = g * Math.sqrt(h * h - 1);
|
|
5811
|
-
|
|
5812
|
-
const B = Math.exp(-h * g * P),
|
|
5813
|
-
return s - B * ((v + h * g * m) * Math.sinh(
|
|
5811
|
+
A = (P) => {
|
|
5812
|
+
const B = Math.exp(-h * g * P), b = Math.min(C * P, 300);
|
|
5813
|
+
return s - B * ((v + h * g * m) * Math.sinh(b) + C * m * Math.cosh(b)) / C;
|
|
5814
5814
|
};
|
|
5815
5815
|
}
|
|
5816
5816
|
const E = {
|
|
5817
5817
|
calculatedDuration: p && d || null,
|
|
5818
5818
|
next: (C) => {
|
|
5819
|
-
const P =
|
|
5819
|
+
const P = A(C);
|
|
5820
5820
|
if (p)
|
|
5821
5821
|
a.done = C >= d;
|
|
5822
5822
|
else {
|
|
5823
5823
|
let B = 0;
|
|
5824
|
-
h < 1 && (B = C === 0 ? /* @__PURE__ */ St(v) : _m(
|
|
5825
|
-
const
|
|
5826
|
-
a.done =
|
|
5824
|
+
h < 1 && (B = C === 0 ? /* @__PURE__ */ St(v) : _m(A, C, P));
|
|
5825
|
+
const b = Math.abs(B) <= o, R = Math.abs(s - P) <= r;
|
|
5826
|
+
a.done = b && R;
|
|
5827
5827
|
}
|
|
5828
5828
|
return a.value = a.done ? s : P, a;
|
|
5829
5829
|
},
|
|
@@ -5844,19 +5844,19 @@ function pd({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
|
|
|
5844
5844
|
const d = e[0], f = {
|
|
5845
5845
|
done: !1,
|
|
5846
5846
|
value: d
|
|
5847
|
-
}, p = (
|
|
5847
|
+
}, p = (b) => a !== void 0 && b < a || l !== void 0 && b > l, v = (b) => a === void 0 ? l : l === void 0 || Math.abs(a - b) < Math.abs(l - b) ? a : l;
|
|
5848
5848
|
let h = n * t;
|
|
5849
5849
|
const m = d + h, g = s === void 0 ? m : s(m);
|
|
5850
5850
|
g !== m && (h = g - d);
|
|
5851
|
-
const y = (
|
|
5852
|
-
const R = y(
|
|
5851
|
+
const y = (b) => -h * Math.exp(-b / o), A = (b) => g + y(b), E = (b) => {
|
|
5852
|
+
const R = y(b), M = A(b);
|
|
5853
5853
|
f.done = Math.abs(R) <= u, f.value = f.done ? g : M;
|
|
5854
5854
|
};
|
|
5855
5855
|
let C, P;
|
|
5856
|
-
const B = (
|
|
5857
|
-
p(f.value) && (C =
|
|
5856
|
+
const B = (b) => {
|
|
5857
|
+
p(f.value) && (C = b, P = gi({
|
|
5858
5858
|
keyframes: [f.value, v(f.value)],
|
|
5859
|
-
velocity: _m(
|
|
5859
|
+
velocity: _m(A, b, f.value),
|
|
5860
5860
|
// TODO: This should be passing * 1000
|
|
5861
5861
|
damping: r,
|
|
5862
5862
|
stiffness: i,
|
|
@@ -5866,9 +5866,9 @@ function pd({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
|
|
|
5866
5866
|
};
|
|
5867
5867
|
return B(0), {
|
|
5868
5868
|
calculatedDuration: null,
|
|
5869
|
-
next: (
|
|
5869
|
+
next: (b) => {
|
|
5870
5870
|
let R = !1;
|
|
5871
|
-
return !P && C === void 0 && (R = !0, E(
|
|
5871
|
+
return !P && C === void 0 && (R = !0, E(b), B(b)), C !== void 0 && b >= C ? P.next(b - C) : (!R && E(b), f);
|
|
5872
5872
|
}
|
|
5873
5873
|
};
|
|
5874
5874
|
}
|
|
@@ -6022,8 +6022,8 @@ class Pu extends Xm {
|
|
|
6022
6022
|
tick(t, n = !1) {
|
|
6023
6023
|
const { resolved: o } = this;
|
|
6024
6024
|
if (!o) {
|
|
6025
|
-
const { keyframes:
|
|
6026
|
-
return { done: !0, value:
|
|
6025
|
+
const { keyframes: b } = this.options;
|
|
6026
|
+
return { done: !0, value: b[b.length - 1] };
|
|
6027
6027
|
}
|
|
6028
6028
|
const { finalKeyframe: r, generator: i, mirroredGenerator: s, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: u, totalDuration: c, resolvedDuration: d } = o;
|
|
6029
6029
|
if (this.startTime === null)
|
|
@@ -6032,13 +6032,13 @@ class Pu extends Xm {
|
|
|
6032
6032
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - c / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
6033
6033
|
const g = this.currentTime - f * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? g < 0 : g > c;
|
|
6034
6034
|
this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
6035
|
-
let
|
|
6035
|
+
let A = this.currentTime, E = i;
|
|
6036
6036
|
if (p) {
|
|
6037
|
-
const
|
|
6038
|
-
let R = Math.floor(
|
|
6039
|
-
!M &&
|
|
6037
|
+
const b = Math.min(this.currentTime, c) / d;
|
|
6038
|
+
let R = Math.floor(b), M = b % 1;
|
|
6039
|
+
!M && b >= 1 && (M = 1), M === 1 && R--, R = Math.min(R, p + 1), !!(R % 2) && (v === "reverse" ? (M = 1 - M, h && (M -= h / d)) : v === "mirror" && (E = s)), A = Xt(0, 1, M) * d;
|
|
6040
6040
|
}
|
|
6041
|
-
const C = y ? { done: !1, value: l[0] } : E.next(
|
|
6041
|
+
const C = y ? { done: !1, value: l[0] } : E.next(A);
|
|
6042
6042
|
a && (C.value = a(C.value));
|
|
6043
6043
|
let { done: P } = C;
|
|
6044
6044
|
!y && u !== null && (P = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
@@ -6481,26 +6481,26 @@ function bS(e) {
|
|
|
6481
6481
|
const { props: u } = e, c = rv(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
|
|
6482
6482
|
let p = {}, v = 1 / 0;
|
|
6483
6483
|
for (let m = 0; m < yS; m++) {
|
|
6484
|
-
const g = gS[m], y = n[g],
|
|
6484
|
+
const g = gS[m], y = n[g], A = u[g] !== void 0 ? u[g] : c[g], E = tr(A), C = g === l ? y.isActive : null;
|
|
6485
6485
|
C === !1 && (v = m);
|
|
6486
|
-
let P =
|
|
6486
|
+
let P = A === c[g] && A !== u[g] && E;
|
|
6487
6487
|
if (P && o && e.manuallyAnimateOnMount && (P = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
6488
6488
|
!y.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
|
|
6489
|
-
!
|
|
6490
|
-
Xi(
|
|
6489
|
+
!A && !y.prevProp || // Or if the prop doesn't define an animation
|
|
6490
|
+
Xi(A) || typeof A == "boolean")
|
|
6491
6491
|
continue;
|
|
6492
|
-
const B = CS(y.prevProp,
|
|
6493
|
-
let
|
|
6492
|
+
const B = CS(y.prevProp, A);
|
|
6493
|
+
let b = B || // If we're making this variant active, we want to always make it active
|
|
6494
6494
|
g === l && y.isActive && !P && E || // If we removed a higher-priority variant (i is in reverse order)
|
|
6495
6495
|
m > v && E, R = !1;
|
|
6496
|
-
const M = Array.isArray(
|
|
6496
|
+
const M = Array.isArray(A) ? A : [A];
|
|
6497
6497
|
let D = M.reduce(r(g), {});
|
|
6498
6498
|
C === !1 && (D = {});
|
|
6499
6499
|
const { prevResolvedValues: F = {} } = y, x = {
|
|
6500
6500
|
...F,
|
|
6501
6501
|
...D
|
|
6502
6502
|
}, T = (L) => {
|
|
6503
|
-
|
|
6503
|
+
b = !0, f.has(L) && (R = !0, f.delete(L)), y.needsAnimating[L] = !0;
|
|
6504
6504
|
const k = e.getValue(L);
|
|
6505
6505
|
k && (k.liveStyle = !1);
|
|
6506
6506
|
};
|
|
@@ -6511,7 +6511,7 @@ function bS(e) {
|
|
|
6511
6511
|
let O = !1;
|
|
6512
6512
|
wa(k) && wa(W) ? O = !ov(k, W) : O = k !== W, O ? k != null ? T(L) : f.add(L) : k !== void 0 && f.has(L) ? T(L) : y.protectedKeys[L] = !0;
|
|
6513
6513
|
}
|
|
6514
|
-
y.prevProp =
|
|
6514
|
+
y.prevProp = A, y.prevResolvedValues = D, y.isActive && (p = { ...p, ...D }), o && e.blockInitialAnimation && (b = !1), b && (!(P && B) || R) && d.push(...M.map((L) => ({
|
|
6515
6515
|
animation: L,
|
|
6516
6516
|
options: { type: g }
|
|
6517
6517
|
})));
|
|
@@ -6523,8 +6523,8 @@ function bS(e) {
|
|
|
6523
6523
|
g && g.transition && (m.transition = g.transition);
|
|
6524
6524
|
}
|
|
6525
6525
|
f.forEach((g) => {
|
|
6526
|
-
const y = e.getBaseTarget(g),
|
|
6527
|
-
|
|
6526
|
+
const y = e.getBaseTarget(g), A = e.getValue(g);
|
|
6527
|
+
A && (A.liveStyle = !0), m[g] = y ?? null;
|
|
6528
6528
|
}), d.push({ animation: m });
|
|
6529
6529
|
}
|
|
6530
6530
|
let h = !!d.length;
|
|
@@ -6942,8 +6942,8 @@ class YS {
|
|
|
6942
6942
|
if (Lt.test(g)) {
|
|
6943
6943
|
const { projection: y } = this.visualElement;
|
|
6944
6944
|
if (y && y.layout) {
|
|
6945
|
-
const
|
|
6946
|
-
|
|
6945
|
+
const A = y.layout.layoutBox[m];
|
|
6946
|
+
A && (g = rt(A) * (parseFloat(g) / 100));
|
|
6947
6947
|
}
|
|
6948
6948
|
}
|
|
6949
6949
|
this.originPoint[m] = g;
|
|
@@ -7526,9 +7526,9 @@ function Cv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
7526
7526
|
this.target = void 0, this.relativeTarget = void 0;
|
|
7527
7527
|
return;
|
|
7528
7528
|
}
|
|
7529
|
-
const h = this.options.transition || c.getDefaultTransition() || MP, { onLayoutAnimationStart: m, onLayoutAnimationComplete: g } = c.getProps(), y = !this.targetLayout || !Av(this.targetLayout, v),
|
|
7530
|
-
if (this.options.layoutRoot || this.resumeFrom ||
|
|
7531
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d,
|
|
7529
|
+
const h = this.options.transition || c.getDefaultTransition() || MP, { onLayoutAnimationStart: m, onLayoutAnimationComplete: g } = c.getProps(), y = !this.targetLayout || !Av(this.targetLayout, v), A = !f && p;
|
|
7530
|
+
if (this.options.layoutRoot || this.resumeFrom || A || f && (y || !this.currentAnimation)) {
|
|
7531
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, A);
|
|
7532
7532
|
const E = {
|
|
7533
7533
|
...fu(h, "layout"),
|
|
7534
7534
|
onPlay: m,
|
|
@@ -7786,10 +7786,10 @@ function Cv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
7786
7786
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
7787
7787
|
const f = Ue(), p = l ? l.source : void 0, v = this.layout ? this.layout.source : void 0, h = p !== v, m = this.getStack(), g = !m || m.members.length <= 1, y = !!(h && !g && this.options.crossfade === !0 && !this.path.some(kP));
|
|
7788
7788
|
this.animationProgress = 0;
|
|
7789
|
-
let
|
|
7789
|
+
let A;
|
|
7790
7790
|
this.mixTargetDelta = (E) => {
|
|
7791
7791
|
const C = E / 1e3;
|
|
7792
|
-
$d(d.x, s.x, C), $d(d.y, s.y, C), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Yo(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), DP(this.relativeTarget, this.relativeTargetOrigin, f, C),
|
|
7792
|
+
$d(d.x, s.x, C), $d(d.y, s.y, C), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Yo(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), DP(this.relativeTarget, this.relativeTargetOrigin, f, C), A && pP(this.relativeTarget, A) && (this.isProjectionDirty = !1), A || (A = Ue()), mt(A, this.relativeTarget)), h && (this.animationValues = c, aP(c, u, this.latestValues, C, y, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
|
|
7793
7793
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
7794
7794
|
}
|
|
7795
7795
|
startAnimation(s) {
|
|
@@ -7906,8 +7906,8 @@ function Cv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
7906
7906
|
const { correct: v, applyTo: h, isCSSVariable: m } = nr[p], g = a.transform === "none" ? c[p] : v(c[p], u);
|
|
7907
7907
|
if (h) {
|
|
7908
7908
|
const y = h.length;
|
|
7909
|
-
for (let
|
|
7910
|
-
a[h[
|
|
7909
|
+
for (let A = 0; A < y; A++)
|
|
7910
|
+
a[h[A]] = g;
|
|
7911
7911
|
} else
|
|
7912
7912
|
m ? this.options.visualElement.renderState.vars[p] = g : a[p] = g;
|
|
7913
7913
|
}
|
|
@@ -9263,8 +9263,8 @@ function Nr(e, t, n, o) {
|
|
|
9263
9263
|
]);
|
|
9264
9264
|
}
|
|
9265
9265
|
function Fv(e, t) {
|
|
9266
|
-
let n = ff(e, t, "left"), o = ff(e, t, "top"), r = t.offsetWidth, i = t.offsetHeight, s = e.scrollLeft, a = e.scrollTop, { borderTopWidth: l, borderLeftWidth: u, scrollPaddingTop: c, scrollPaddingRight: d, scrollPaddingBottom: f, scrollPaddingLeft: p } = getComputedStyle(e), v = s + parseInt(u, 10), h = a + parseInt(l, 10), m = v + e.clientWidth, g = h + e.clientHeight, y = parseInt(c, 10) || 0,
|
|
9267
|
-
n <= s + C ? s = n - parseInt(u, 10) - C : n + r > m - E && (s += n + r - m + E), o <= h + y ? a = o - parseInt(l, 10) - y : o + i > g -
|
|
9266
|
+
let n = ff(e, t, "left"), o = ff(e, t, "top"), r = t.offsetWidth, i = t.offsetHeight, s = e.scrollLeft, a = e.scrollTop, { borderTopWidth: l, borderLeftWidth: u, scrollPaddingTop: c, scrollPaddingRight: d, scrollPaddingBottom: f, scrollPaddingLeft: p } = getComputedStyle(e), v = s + parseInt(u, 10), h = a + parseInt(l, 10), m = v + e.clientWidth, g = h + e.clientHeight, y = parseInt(c, 10) || 0, A = parseInt(f, 10) || 0, E = parseInt(d, 10) || 0, C = parseInt(p, 10) || 0;
|
|
9267
|
+
n <= s + C ? s = n - parseInt(u, 10) - C : n + r > m - E && (s += n + r - m + E), o <= h + y ? a = o - parseInt(l, 10) - y : o + i > g - A && (a += o + i - g + A), e.scrollLeft = s, e.scrollTop = a;
|
|
9268
9268
|
}
|
|
9269
9269
|
function ff(e, t, n) {
|
|
9270
9270
|
const o = n === "left" ? "offsetLeft" : "offsetTop";
|
|
@@ -10111,102 +10111,102 @@ function Vu(e) {
|
|
|
10111
10111
|
isOverTarget: !1,
|
|
10112
10112
|
pointerType: null,
|
|
10113
10113
|
disposables: []
|
|
10114
|
-
}), { addGlobalListener: m, removeAllGlobalListeners: g } = os(), y = Je((
|
|
10114
|
+
}), { addGlobalListener: m, removeAllGlobalListeners: g } = os(), y = Je((b, R) => {
|
|
10115
10115
|
let M = h.current;
|
|
10116
10116
|
if (s || M.didFirePressStart) return !1;
|
|
10117
10117
|
let D = !0;
|
|
10118
10118
|
if (M.isTriggeringEvent = !0, o) {
|
|
10119
|
-
let F = new Lr("pressstart", R,
|
|
10119
|
+
let F = new Lr("pressstart", R, b);
|
|
10120
10120
|
o(F), D = F.shouldStopPropagation;
|
|
10121
10121
|
}
|
|
10122
10122
|
return n && n(!0), M.isTriggeringEvent = !1, M.didFirePressStart = !0, v(!0), D;
|
|
10123
|
-
}),
|
|
10123
|
+
}), A = Je((b, R, M = !0) => {
|
|
10124
10124
|
let D = h.current;
|
|
10125
10125
|
if (!D.didFirePressStart) return !1;
|
|
10126
10126
|
D.didFirePressStart = !1, D.isTriggeringEvent = !0;
|
|
10127
10127
|
let F = !0;
|
|
10128
10128
|
if (r) {
|
|
10129
|
-
let x = new Lr("pressend", R,
|
|
10129
|
+
let x = new Lr("pressend", R, b);
|
|
10130
10130
|
r(x), F = x.shouldStopPropagation;
|
|
10131
10131
|
}
|
|
10132
10132
|
if (n && n(!1), v(!1), t && M && !s) {
|
|
10133
|
-
let x = new Lr("press", R,
|
|
10133
|
+
let x = new Lr("press", R, b);
|
|
10134
10134
|
t(x), F && (F = x.shouldStopPropagation);
|
|
10135
10135
|
}
|
|
10136
10136
|
return D.isTriggeringEvent = !1, F;
|
|
10137
|
-
}), E = Je((
|
|
10137
|
+
}), E = Je((b, R) => {
|
|
10138
10138
|
let M = h.current;
|
|
10139
10139
|
if (s) return !1;
|
|
10140
10140
|
if (i) {
|
|
10141
10141
|
M.isTriggeringEvent = !0;
|
|
10142
|
-
let D = new Lr("pressup", R,
|
|
10142
|
+
let D = new Lr("pressup", R, b);
|
|
10143
10143
|
return i(D), M.isTriggeringEvent = !1, D.shouldStopPropagation;
|
|
10144
10144
|
}
|
|
10145
10145
|
return !0;
|
|
10146
|
-
}), C = Je((
|
|
10146
|
+
}), C = Je((b) => {
|
|
10147
10147
|
let R = h.current;
|
|
10148
10148
|
if (R.isPressed && R.target) {
|
|
10149
|
-
R.didFirePressStart && R.pointerType != null &&
|
|
10149
|
+
R.didFirePressStart && R.pointerType != null && A(qn(R.target, b), R.pointerType, !1), R.isPressed = !1, R.isOverTarget = !1, R.activePointerId = null, R.pointerType = null, g(), c || zs(R.target);
|
|
10150
10150
|
for (let M of R.disposables) M();
|
|
10151
10151
|
R.disposables = [];
|
|
10152
10152
|
}
|
|
10153
|
-
}), P = Je((
|
|
10154
|
-
u && C(
|
|
10153
|
+
}), P = Je((b) => {
|
|
10154
|
+
u && C(b);
|
|
10155
10155
|
}), B = fe(() => {
|
|
10156
|
-
let
|
|
10156
|
+
let b = h.current, R = {
|
|
10157
10157
|
onKeyDown(D) {
|
|
10158
10158
|
if (qs(D.nativeEvent, D.currentTarget) && Be(D.currentTarget, ye(D.nativeEvent))) {
|
|
10159
10159
|
var F;
|
|
10160
10160
|
Cf(ye(D.nativeEvent), D.key) && D.preventDefault();
|
|
10161
10161
|
let x = !0;
|
|
10162
|
-
if (!
|
|
10163
|
-
|
|
10162
|
+
if (!b.isPressed && !D.repeat) {
|
|
10163
|
+
b.target = D.currentTarget, b.isPressed = !0, b.pointerType = "keyboard", x = y(D, "keyboard");
|
|
10164
10164
|
let T = D.currentTarget, I = (N) => {
|
|
10165
|
-
qs(N, T) && !N.repeat && Be(T, ye(N)) &&
|
|
10165
|
+
qs(N, T) && !N.repeat && Be(T, ye(N)) && b.target && E(qn(b.target, N), "keyboard");
|
|
10166
10166
|
};
|
|
10167
10167
|
m(Se(D.currentTarget), "keyup", Kn(I, M), !0);
|
|
10168
10168
|
}
|
|
10169
|
-
x && D.stopPropagation(), D.metaKey && gn() && ((F =
|
|
10170
|
-
} else D.key === "Meta" && (
|
|
10169
|
+
x && D.stopPropagation(), D.metaKey && gn() && ((F = b.metaKeyEvents) === null || F === void 0 || F.set(D.key, D.nativeEvent));
|
|
10170
|
+
} else D.key === "Meta" && (b.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
10171
10171
|
},
|
|
10172
10172
|
onClick(D) {
|
|
10173
|
-
if (!(D && !Be(D.currentTarget, ye(D.nativeEvent))) && D && D.button === 0 && !
|
|
10173
|
+
if (!(D && !Be(D.currentTarget, ye(D.nativeEvent))) && D && D.button === 0 && !b.isTriggeringEvent && !Hn.isOpening) {
|
|
10174
10174
|
let F = !0;
|
|
10175
|
-
if (s && D.preventDefault(), !
|
|
10176
|
-
let x = y(D, "virtual"), T = E(D, "virtual"), I =
|
|
10175
|
+
if (s && D.preventDefault(), !b.ignoreEmulatedMouseEvents && !b.isPressed && (b.pointerType === "virtual" || ja(D.nativeEvent))) {
|
|
10176
|
+
let x = y(D, "virtual"), T = E(D, "virtual"), I = A(D, "virtual");
|
|
10177
10177
|
F = x && T && I;
|
|
10178
|
-
} else if (
|
|
10179
|
-
let x =
|
|
10180
|
-
F =
|
|
10178
|
+
} else if (b.isPressed && b.pointerType !== "keyboard") {
|
|
10179
|
+
let x = b.pointerType || D.nativeEvent.pointerType || "virtual";
|
|
10180
|
+
F = A(qn(D.currentTarget, D), x, !0), b.isOverTarget = !1, C(D);
|
|
10181
10181
|
}
|
|
10182
|
-
|
|
10182
|
+
b.ignoreEmulatedMouseEvents = !1, F && D.stopPropagation();
|
|
10183
10183
|
}
|
|
10184
10184
|
}
|
|
10185
10185
|
}, M = (D) => {
|
|
10186
10186
|
var F;
|
|
10187
|
-
if (
|
|
10187
|
+
if (b.isPressed && b.target && qs(D, b.target)) {
|
|
10188
10188
|
var x;
|
|
10189
10189
|
Cf(ye(D), D.key) && D.preventDefault();
|
|
10190
10190
|
let I = ye(D);
|
|
10191
|
-
|
|
10192
|
-
} else if (D.key === "Meta" && (!((F =
|
|
10191
|
+
A(qn(b.target, D), "keyboard", Be(b.target, ye(D))), g(), D.key !== "Enter" && Ku(b.target) && Be(b.target, I) && !D[yf] && (D[yf] = !0, Hn(b.target, D, !1)), b.isPressed = !1, (x = b.metaKeyEvents) === null || x === void 0 || x.delete(D.key);
|
|
10192
|
+
} else if (D.key === "Meta" && (!((F = b.metaKeyEvents) === null || F === void 0) && F.size)) {
|
|
10193
10193
|
var T;
|
|
10194
|
-
let I =
|
|
10195
|
-
|
|
10196
|
-
for (let N of I.values()) (T =
|
|
10194
|
+
let I = b.metaKeyEvents;
|
|
10195
|
+
b.metaKeyEvents = void 0;
|
|
10196
|
+
for (let N of I.values()) (T = b.target) === null || T === void 0 || T.dispatchEvent(new KeyboardEvent("keyup", N));
|
|
10197
10197
|
}
|
|
10198
10198
|
};
|
|
10199
10199
|
if (typeof PointerEvent < "u") {
|
|
10200
10200
|
R.onPointerDown = (x) => {
|
|
10201
10201
|
if (x.button !== 0 || !Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10202
10202
|
if (qT(x.nativeEvent)) {
|
|
10203
|
-
|
|
10203
|
+
b.pointerType = "virtual";
|
|
10204
10204
|
return;
|
|
10205
10205
|
}
|
|
10206
|
-
|
|
10206
|
+
b.pointerType = x.pointerType;
|
|
10207
10207
|
let T = !0;
|
|
10208
|
-
if (!
|
|
10209
|
-
|
|
10208
|
+
if (!b.isPressed) {
|
|
10209
|
+
b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = x.pointerId, b.target = x.currentTarget, c || mf(b.target), T = y(x, b.pointerType);
|
|
10210
10210
|
let I = ye(x.nativeEvent);
|
|
10211
10211
|
"releasePointerCapture" in I && I.releasePointerCapture(x.pointerId), m(Se(x.currentTarget), "pointerup", D, !1), m(Se(x.currentTarget), "pointercancel", F, !1);
|
|
10212
10212
|
}
|
|
@@ -10215,26 +10215,26 @@ function Vu(e) {
|
|
|
10215
10215
|
if (Be(x.currentTarget, ye(x.nativeEvent)) && x.button === 0) {
|
|
10216
10216
|
if (l) {
|
|
10217
10217
|
let T = vf(x.target);
|
|
10218
|
-
T &&
|
|
10218
|
+
T && b.disposables.push(T);
|
|
10219
10219
|
}
|
|
10220
10220
|
x.stopPropagation();
|
|
10221
10221
|
}
|
|
10222
10222
|
}, R.onPointerUp = (x) => {
|
|
10223
|
-
!Be(x.currentTarget, ye(x.nativeEvent)) ||
|
|
10223
|
+
!Be(x.currentTarget, ye(x.nativeEvent)) || b.pointerType === "virtual" || x.button === 0 && E(x, b.pointerType || x.pointerType);
|
|
10224
10224
|
}, R.onPointerEnter = (x) => {
|
|
10225
|
-
x.pointerId ===
|
|
10225
|
+
x.pointerId === b.activePointerId && b.target && !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, y(qn(b.target, x), b.pointerType));
|
|
10226
10226
|
}, R.onPointerLeave = (x) => {
|
|
10227
|
-
x.pointerId ===
|
|
10227
|
+
x.pointerId === b.activePointerId && b.target && b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, A(qn(b.target, x), b.pointerType, !1), P(x));
|
|
10228
10228
|
};
|
|
10229
10229
|
let D = (x) => {
|
|
10230
|
-
if (x.pointerId ===
|
|
10231
|
-
if (Be(
|
|
10230
|
+
if (x.pointerId === b.activePointerId && b.isPressed && x.button === 0 && b.target) {
|
|
10231
|
+
if (Be(b.target, ye(x)) && b.pointerType != null) {
|
|
10232
10232
|
let T = !1, I = setTimeout(() => {
|
|
10233
|
-
|
|
10233
|
+
b.isPressed && b.target instanceof HTMLElement && (T ? C(x) : (Ut(b.target), b.target.click()));
|
|
10234
10234
|
}, 80);
|
|
10235
|
-
m(x.currentTarget, "click", () => T = !0, !0),
|
|
10235
|
+
m(x.currentTarget, "click", () => T = !0, !0), b.disposables.push(() => clearTimeout(I));
|
|
10236
10236
|
} else C(x);
|
|
10237
|
-
|
|
10237
|
+
b.isOverTarget = !1;
|
|
10238
10238
|
}
|
|
10239
10239
|
}, F = (x) => {
|
|
10240
10240
|
C(x);
|
|
@@ -10245,62 +10245,62 @@ function Vu(e) {
|
|
|
10245
10245
|
} else {
|
|
10246
10246
|
R.onMouseDown = (x) => {
|
|
10247
10247
|
if (x.button !== 0 || !Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10248
|
-
if (
|
|
10248
|
+
if (b.ignoreEmulatedMouseEvents) {
|
|
10249
10249
|
x.stopPropagation();
|
|
10250
10250
|
return;
|
|
10251
10251
|
}
|
|
10252
|
-
if (
|
|
10252
|
+
if (b.isPressed = !0, b.isOverTarget = !0, b.target = x.currentTarget, b.pointerType = ja(x.nativeEvent) ? "virtual" : "mouse", bl(() => y(x, b.pointerType)) && x.stopPropagation(), l) {
|
|
10253
10253
|
let I = vf(x.target);
|
|
10254
|
-
I &&
|
|
10254
|
+
I && b.disposables.push(I);
|
|
10255
10255
|
}
|
|
10256
10256
|
m(Se(x.currentTarget), "mouseup", D, !1);
|
|
10257
10257
|
}, R.onMouseEnter = (x) => {
|
|
10258
10258
|
if (!Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10259
10259
|
let T = !0;
|
|
10260
|
-
|
|
10260
|
+
b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !0, T = y(x, b.pointerType)), T && x.stopPropagation();
|
|
10261
10261
|
}, R.onMouseLeave = (x) => {
|
|
10262
10262
|
if (!Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10263
10263
|
let T = !0;
|
|
10264
|
-
|
|
10264
|
+
b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !1, T = A(x, b.pointerType, !1), P(x)), T && x.stopPropagation();
|
|
10265
10265
|
}, R.onMouseUp = (x) => {
|
|
10266
|
-
Be(x.currentTarget, ye(x.nativeEvent)) && !
|
|
10266
|
+
Be(x.currentTarget, ye(x.nativeEvent)) && !b.ignoreEmulatedMouseEvents && x.button === 0 && E(x, b.pointerType || "mouse");
|
|
10267
10267
|
};
|
|
10268
10268
|
let D = (x) => {
|
|
10269
10269
|
if (x.button === 0) {
|
|
10270
|
-
if (
|
|
10271
|
-
|
|
10270
|
+
if (b.ignoreEmulatedMouseEvents) {
|
|
10271
|
+
b.ignoreEmulatedMouseEvents = !1;
|
|
10272
10272
|
return;
|
|
10273
10273
|
}
|
|
10274
|
-
|
|
10274
|
+
b.target && b.target.contains(x.target) && b.pointerType != null || C(x), b.isOverTarget = !1;
|
|
10275
10275
|
}
|
|
10276
10276
|
};
|
|
10277
10277
|
R.onTouchStart = (x) => {
|
|
10278
10278
|
if (!Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10279
10279
|
let T = d4(x.nativeEvent);
|
|
10280
10280
|
if (!T) return;
|
|
10281
|
-
|
|
10281
|
+
b.activePointerId = T.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = x.currentTarget, b.pointerType = "touch", c || mf(b.target), y(rn(b.target, x), b.pointerType) && x.stopPropagation(), m(ft(x.currentTarget), "scroll", F, !0);
|
|
10282
10282
|
}, R.onTouchMove = (x) => {
|
|
10283
10283
|
if (!Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10284
|
-
if (!
|
|
10284
|
+
if (!b.isPressed) {
|
|
10285
10285
|
x.stopPropagation();
|
|
10286
10286
|
return;
|
|
10287
10287
|
}
|
|
10288
|
-
let T = Af(x.nativeEvent,
|
|
10289
|
-
T && bf(T, x.currentTarget) ? !
|
|
10288
|
+
let T = Af(x.nativeEvent, b.activePointerId), I = !0;
|
|
10289
|
+
T && bf(T, x.currentTarget) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, I = y(rn(b.target, x), b.pointerType)) : b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, I = A(rn(b.target, x), b.pointerType, !1), P(rn(b.target, x))), I && x.stopPropagation();
|
|
10290
10290
|
}, R.onTouchEnd = (x) => {
|
|
10291
10291
|
if (!Be(x.currentTarget, ye(x.nativeEvent))) return;
|
|
10292
|
-
if (!
|
|
10292
|
+
if (!b.isPressed) {
|
|
10293
10293
|
x.stopPropagation();
|
|
10294
10294
|
return;
|
|
10295
10295
|
}
|
|
10296
|
-
let T = Af(x.nativeEvent,
|
|
10297
|
-
T && bf(T, x.currentTarget) &&
|
|
10296
|
+
let T = Af(x.nativeEvent, b.activePointerId), I = !0;
|
|
10297
|
+
T && bf(T, x.currentTarget) && b.pointerType != null ? (E(rn(b.target, x), b.pointerType), I = A(rn(b.target, x), b.pointerType)) : b.isOverTarget && b.pointerType != null && (I = A(rn(b.target, x), b.pointerType, !1)), I && x.stopPropagation(), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, b.target && !c && zs(b.target), g();
|
|
10298
10298
|
}, R.onTouchCancel = (x) => {
|
|
10299
|
-
Be(x.currentTarget, ye(x.nativeEvent)) && (x.stopPropagation(),
|
|
10299
|
+
Be(x.currentTarget, ye(x.nativeEvent)) && (x.stopPropagation(), b.isPressed && C(rn(b.target, x)));
|
|
10300
10300
|
};
|
|
10301
10301
|
let F = (x) => {
|
|
10302
|
-
|
|
10303
|
-
currentTarget:
|
|
10302
|
+
b.isPressed && Be(ye(x), b.target) && C({
|
|
10303
|
+
currentTarget: b.target,
|
|
10304
10304
|
shiftKey: !1,
|
|
10305
10305
|
ctrlKey: !1,
|
|
10306
10306
|
metaKey: !1,
|
|
@@ -10320,17 +10320,17 @@ function Vu(e) {
|
|
|
10320
10320
|
c,
|
|
10321
10321
|
C,
|
|
10322
10322
|
P,
|
|
10323
|
-
|
|
10323
|
+
A,
|
|
10324
10324
|
y,
|
|
10325
10325
|
E
|
|
10326
10326
|
]);
|
|
10327
10327
|
return ie(() => {
|
|
10328
|
-
let
|
|
10328
|
+
let b = h.current;
|
|
10329
10329
|
return () => {
|
|
10330
10330
|
var R;
|
|
10331
|
-
c || zs((R =
|
|
10332
|
-
for (let M of
|
|
10333
|
-
|
|
10331
|
+
c || zs((R = b.target) !== null && R !== void 0 ? R : void 0);
|
|
10332
|
+
for (let M of b.disposables) M();
|
|
10333
|
+
b.disposables = [];
|
|
10334
10334
|
};
|
|
10335
10335
|
}, [
|
|
10336
10336
|
c
|
|
@@ -11289,9 +11289,9 @@ function tI(e, t) {
|
|
|
11289
11289
|
isDisabled: o,
|
|
11290
11290
|
preventFocusOnPress: u,
|
|
11291
11291
|
ref: t
|
|
11292
|
-
}), { focusableProps:
|
|
11293
|
-
c && (
|
|
11294
|
-
let E = Me(
|
|
11292
|
+
}), { focusableProps: A } = _v(e, t);
|
|
11293
|
+
c && (A.tabIndex = o ? -1 : A.tabIndex);
|
|
11294
|
+
let E = Me(A, g, tn(e, {
|
|
11295
11295
|
labelable: !0
|
|
11296
11296
|
}));
|
|
11297
11297
|
return {
|
|
@@ -11891,21 +11891,21 @@ function hI(e) {
|
|
|
11891
11891
|
let m = fe(() => Of(v ? [] : d), [
|
|
11892
11892
|
v,
|
|
11893
11893
|
d
|
|
11894
|
-
]), g = Z(ko), [y,
|
|
11894
|
+
]), g = Z(ko), [y, A] = pe(ko), E = Z(ko), C = () => {
|
|
11895
11895
|
if (!P) return;
|
|
11896
11896
|
B(!1);
|
|
11897
11897
|
let M = u || i || g.current;
|
|
11898
|
-
Js(M, E.current) || (E.current = M,
|
|
11898
|
+
Js(M, E.current) || (E.current = M, A(M));
|
|
11899
11899
|
}, [P, B] = pe(!1);
|
|
11900
11900
|
return ie(C), {
|
|
11901
11901
|
realtimeValidation: l || m || u || i || ko,
|
|
11902
11902
|
displayValidation: a === "native" ? l || m || y : l || m || u || i || y,
|
|
11903
11903
|
updateValidation(M) {
|
|
11904
|
-
a === "aria" && !Js(y, M) ?
|
|
11904
|
+
a === "aria" && !Js(y, M) ? A(M) : g.current = M;
|
|
11905
11905
|
},
|
|
11906
11906
|
resetValidation() {
|
|
11907
11907
|
let M = ko;
|
|
11908
|
-
Js(M, E.current) || (E.current = M,
|
|
11908
|
+
Js(M, E.current) || (E.current = M, A(M)), a === "native" && B(!1), h(!0);
|
|
11909
11909
|
},
|
|
11910
11910
|
commitValidation() {
|
|
11911
11911
|
a === "native" && B(!0), h(!0);
|
|
@@ -12092,7 +12092,7 @@ function xI(e, t) {
|
|
|
12092
12092
|
...e,
|
|
12093
12093
|
isInvalid: f,
|
|
12094
12094
|
errorMessage: e.errorMessage || p
|
|
12095
|
-
}),
|
|
12095
|
+
}), A = tn(e, {
|
|
12096
12096
|
labelable: !0
|
|
12097
12097
|
});
|
|
12098
12098
|
const E = {
|
|
@@ -12113,7 +12113,7 @@ function xI(e, t) {
|
|
|
12113
12113
|
t
|
|
12114
12114
|
]), {
|
|
12115
12115
|
labelProps: h,
|
|
12116
|
-
inputProps: Me(
|
|
12116
|
+
inputProps: Me(A, n === "input" ? E : void 0, {
|
|
12117
12117
|
disabled: o,
|
|
12118
12118
|
readOnly: i,
|
|
12119
12119
|
required: r && a === "native",
|
|
@@ -12967,12 +12967,12 @@ function $s(e, t, n, o, r, i, s, a, l, u) {
|
|
|
12967
12967
|
let { placement: c, crossPlacement: d, axis: f, crossAxis: p, size: v, crossSize: h } = o, m = {};
|
|
12968
12968
|
var g;
|
|
12969
12969
|
m[p] = (g = e[p]) !== null && g !== void 0 ? g : 0;
|
|
12970
|
-
var y,
|
|
12971
|
-
d === "center" ? m[p] += (((y = e[h]) !== null && y !== void 0 ? y : 0) - ((
|
|
12970
|
+
var y, A, E, C;
|
|
12971
|
+
d === "center" ? m[p] += (((y = e[h]) !== null && y !== void 0 ? y : 0) - ((A = n[h]) !== null && A !== void 0 ? A : 0)) / 2 : d !== p && (m[p] += ((E = e[h]) !== null && E !== void 0 ? E : 0) - ((C = n[h]) !== null && C !== void 0 ? C : 0)), m[p] += i;
|
|
12972
12972
|
const P = e[p] - n[h] + l + u, B = e[p] + e[h] - l - u;
|
|
12973
12973
|
if (m[p] = Wa(m[p], P, B), c === f) {
|
|
12974
|
-
const
|
|
12975
|
-
m[ki[f]] = Math.floor(
|
|
12974
|
+
const b = a ? s[v] : t[Xg[v]];
|
|
12975
|
+
m[ki[f]] = Math.floor(b - e[f] + r);
|
|
12976
12976
|
} else m[f] = Math.floor(e[f] + e[v] + r);
|
|
12977
12977
|
return m;
|
|
12978
12978
|
}
|
|
@@ -12995,21 +12995,21 @@ function Kf(e, t, n, o, r, i) {
|
|
|
12995
12995
|
return Math.max(0, e[l] + e[a] + e.scroll[a] - t[a] - n[a] - n[l] - ((d = o[a]) !== null && d !== void 0 ? d : 0) - o[ki[a]] - r);
|
|
12996
12996
|
}
|
|
12997
12997
|
function II(e, t, n, o, r, i, s, a, l, u, c, d, f, p, v, h) {
|
|
12998
|
-
let m = Vf(e), { size: g, crossAxis: y, crossSize:
|
|
12999
|
-
if (s && o[g] >
|
|
12998
|
+
let m = Vf(e), { size: g, crossAxis: y, crossSize: A, placement: E, crossPlacement: C } = m, P = $s(t, a, n, m, c, d, u, f, v, h), B = c, b = Kf(a, u, t, r, i + c, m);
|
|
12999
|
+
if (s && o[g] > b) {
|
|
13000
13000
|
let j = Vf(`${ki[E]} ${C}`), z = $s(t, a, n, j, c, d, u, f, v, h);
|
|
13001
|
-
Kf(a, u, t, r, i + c, j) >
|
|
13001
|
+
Kf(a, u, t, r, i + c, j) > b && (m = j, P = z, B = c);
|
|
13002
13002
|
}
|
|
13003
13003
|
let R = "bottom";
|
|
13004
13004
|
m.axis === "top" ? m.placement === "top" ? R = "top" : m.placement === "bottom" && (R = "bottom") : m.crossAxis === "top" && (m.crossPlacement === "top" ? R = "bottom" : m.crossPlacement === "bottom" && (R = "top"));
|
|
13005
|
-
let M = Lf(y, P[y], n[
|
|
13005
|
+
let M = Lf(y, P[y], n[A], a, l, i, u);
|
|
13006
13006
|
P[y] += M;
|
|
13007
13007
|
let D = TI(P, a, u, f, r, i, n.height, R);
|
|
13008
|
-
p && p < D && (D = p), n.height = Math.min(n.height, D), P = $s(t, a, n, m, B, d, u, f, v, h), M = Lf(y, P[y], n[
|
|
13009
|
-
let F = {}, x = t[y] + 0.5 * t[
|
|
13008
|
+
p && p < D && (D = p), n.height = Math.min(n.height, D), P = $s(t, a, n, m, B, d, u, f, v, h), M = Lf(y, P[y], n[A], a, l, i, u), P[y] += M;
|
|
13009
|
+
let F = {}, x = t[y] + 0.5 * t[A] - P[y] - r[Ft[y]];
|
|
13010
13010
|
const T = v / 2 + h;
|
|
13011
13011
|
var I, N, L, k;
|
|
13012
|
-
const W = Ft[y] === "left" ? ((I = r.left) !== null && I !== void 0 ? I : 0) + ((N = r.right) !== null && N !== void 0 ? N : 0) : ((L = r.top) !== null && L !== void 0 ? L : 0) + ((k = r.bottom) !== null && k !== void 0 ? k : 0), O = n[
|
|
13012
|
+
const W = Ft[y] === "left" ? ((I = r.left) !== null && I !== void 0 ? I : 0) + ((N = r.right) !== null && N !== void 0 ? N : 0) : ((L = r.top) !== null && L !== void 0 ? L : 0) + ((k = r.bottom) !== null && k !== void 0 ? k : 0), O = n[A] - W - v / 2 - h, V = t[y] + v / 2 - (P[y] + r[Ft[y]]), X = t[y] + t[A] - v / 2 - (P[y] + r[Ft[y]]), $ = Wa(x, V, X);
|
|
13013
13013
|
return F[y] = Wa($, T, O), {
|
|
13014
13014
|
position: P,
|
|
13015
13015
|
maxHeight: D,
|
|
@@ -13026,13 +13026,13 @@ function DI(e) {
|
|
|
13026
13026
|
let { marginTop: F, marginLeft: x } = window.getComputedStyle(n);
|
|
13027
13027
|
g.top += parseInt(F, 10) || 0, g.left += parseInt(x, 10) || 0;
|
|
13028
13028
|
}
|
|
13029
|
-
let y = uo(o),
|
|
13029
|
+
let y = uo(o), A = PI(o);
|
|
13030
13030
|
var E, C;
|
|
13031
|
-
y.width += ((E =
|
|
13031
|
+
y.width += ((E = A.left) !== null && E !== void 0 ? E : 0) + ((C = A.right) !== null && C !== void 0 ? C : 0);
|
|
13032
13032
|
var P, B;
|
|
13033
|
-
y.height += ((P =
|
|
13034
|
-
let
|
|
13035
|
-
return p.tagName === "HTML" && a.tagName === "BODY" && (M.scroll.top = 0, M.scroll.left = 0), II(t, g, y,
|
|
13033
|
+
y.height += ((P = A.top) !== null && P !== void 0 ? P : 0) + ((B = A.bottom) !== null && B !== void 0 ? B : 0);
|
|
13034
|
+
let b = SI(r), R = Ff(a), M = Ff(p), D = a.tagName === "BODY" ? uo(p) : Hf(p, a);
|
|
13035
|
+
return p.tagName === "HTML" && a.tagName === "BODY" && (M.scroll.top = 0, M.scroll.left = 0), II(t, g, y, b, A, i, s, R, M, D, l, u, m, c, d, f);
|
|
13036
13036
|
}
|
|
13037
13037
|
function uo(e) {
|
|
13038
13038
|
let { top: t, left: n, width: o, height: r } = e.getBoundingClientRect(), { scrollTop: i, scrollLeft: s, clientTop: a, clientLeft: l } = document.documentElement;
|
|
@@ -13092,7 +13092,7 @@ function MI(e) {
|
|
|
13092
13092
|
}
|
|
13093
13093
|
let He = typeof document < "u" ? window.visualViewport : null;
|
|
13094
13094
|
function RI(e) {
|
|
13095
|
-
let { direction: t } = Po(), { arrowSize: n = 0, targetRef: o, overlayRef: r, scrollRef: i = r, placement: s = "bottom", containerPadding: a = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: m = 0 } = e, [g, y] = pe(null),
|
|
13095
|
+
let { direction: t } = Po(), { arrowSize: n = 0, targetRef: o, overlayRef: r, scrollRef: i = r, placement: s = "bottom", containerPadding: a = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: m = 0 } = e, [g, y] = pe(null), A = [
|
|
13096
13096
|
f,
|
|
13097
13097
|
s,
|
|
13098
13098
|
r.current,
|
|
@@ -13158,8 +13158,8 @@ function RI(e) {
|
|
|
13158
13158
|
}
|
|
13159
13159
|
y(L);
|
|
13160
13160
|
}
|
|
13161
|
-
},
|
|
13162
|
-
be(C,
|
|
13161
|
+
}, A);
|
|
13162
|
+
be(C, A), BI(C), Ua({
|
|
13163
13163
|
ref: r,
|
|
13164
13164
|
onResize: C
|
|
13165
13165
|
}), Ua({
|
|
@@ -13192,14 +13192,14 @@ function RI(e) {
|
|
|
13192
13192
|
isOpen: p,
|
|
13193
13193
|
onClose: v && B
|
|
13194
13194
|
});
|
|
13195
|
-
var
|
|
13195
|
+
var b, R;
|
|
13196
13196
|
return {
|
|
13197
13197
|
overlayProps: {
|
|
13198
13198
|
style: {
|
|
13199
13199
|
position: "absolute",
|
|
13200
13200
|
zIndex: 1e5,
|
|
13201
13201
|
...g == null ? void 0 : g.position,
|
|
13202
|
-
maxHeight: (
|
|
13202
|
+
maxHeight: (b = g == null ? void 0 : g.maxHeight) !== null && b !== void 0 ? b : "100vh"
|
|
13203
13203
|
}
|
|
13204
13204
|
},
|
|
13205
13205
|
placement: (R = g == null ? void 0 : g.placement) !== null && R !== void 0 ? R : null,
|
|
@@ -13858,7 +13858,7 @@ function Fy(e) {
|
|
|
13858
13858
|
left: (k = (N = p.current) === null || N === void 0 ? void 0 : N.scrollLeft) !== null && k !== void 0 ? k : 0
|
|
13859
13859
|
};
|
|
13860
13860
|
});
|
|
13861
|
-
let
|
|
13861
|
+
let A = (I) => {
|
|
13862
13862
|
if (t.isFocused) {
|
|
13863
13863
|
I.currentTarget.contains(I.target) || t.setFocused(!1);
|
|
13864
13864
|
return;
|
|
@@ -13909,9 +13909,9 @@ function Fy(e) {
|
|
|
13909
13909
|
var N;
|
|
13910
13910
|
I.stopPropagation(), t.setFocused(!1), !((N = I.detail) === null || N === void 0) && N.clearFocusKey && t.setFocusedKey(null);
|
|
13911
13911
|
} : void 0);
|
|
13912
|
-
const
|
|
13912
|
+
const b = Z(r), R = Z(!1);
|
|
13913
13913
|
ie(() => {
|
|
13914
|
-
if (
|
|
13914
|
+
if (b.current) {
|
|
13915
13915
|
var I, N;
|
|
13916
13916
|
let W = null;
|
|
13917
13917
|
var L;
|
|
@@ -13925,7 +13925,7 @@ function Fy(e) {
|
|
|
13925
13925
|
break;
|
|
13926
13926
|
}
|
|
13927
13927
|
}
|
|
13928
|
-
t.setFocused(!0), t.setFocusedKey(W), W == null && !c && o.current && vo(o.current), t.collection.size > 0 && (
|
|
13928
|
+
t.setFocused(!0), t.setFocusedKey(W), W == null && !c && o.current && vo(o.current), t.collection.size > 0 && (b.current = !1, R.current = !0);
|
|
13929
13929
|
}
|
|
13930
13930
|
});
|
|
13931
13931
|
let M = Z(t.focusedKey);
|
|
@@ -13944,7 +13944,7 @@ function Fy(e) {
|
|
|
13944
13944
|
});
|
|
13945
13945
|
let D = {
|
|
13946
13946
|
onKeyDown: g,
|
|
13947
|
-
onFocus:
|
|
13947
|
+
onFocus: A,
|
|
13948
13948
|
onBlur: E,
|
|
13949
13949
|
onMouseDown(I) {
|
|
13950
13950
|
p.current === I.target && I.preventDefault();
|
|
@@ -14000,25 +14000,25 @@ function eD(e) {
|
|
|
14000
14000
|
} : l && (v.onMouseDown = (k) => {
|
|
14001
14001
|
k.preventDefault();
|
|
14002
14002
|
});
|
|
14003
|
-
let h = n.isLink(o) && d === "override", m = n.isLink(o) && d !== "selection" && d !== "none", g = !l && n.canSelectItem(o) && !h, y = (u || m) && !l,
|
|
14003
|
+
let h = n.isLink(o) && d === "override", m = n.isLink(o) && d !== "selection" && d !== "none", g = !l && n.canSelectItem(o) && !h, y = (u || m) && !l, A = y && (n.selectionBehavior === "replace" ? !g : !g || n.isEmpty), E = y && g && n.selectionBehavior === "replace", C = A || E, P = Z(null), B = C && g, b = Z(!1), R = Z(!1), M = (k) => {
|
|
14004
14004
|
if (u && u(), m && r.current) {
|
|
14005
14005
|
let W = n.getItemProps(o);
|
|
14006
14006
|
f.open(r.current, k, W.href, W.routerOptions);
|
|
14007
14007
|
}
|
|
14008
14008
|
}, D = {};
|
|
14009
14009
|
i ? (D.onPressStart = (k) => {
|
|
14010
|
-
P.current = k.pointerType,
|
|
14011
|
-
}, c ? (D.onPressUp =
|
|
14010
|
+
P.current = k.pointerType, b.current = B, k.pointerType === "keyboard" && (!C || qf()) && p(k);
|
|
14011
|
+
}, c ? (D.onPressUp = A ? void 0 : (k) => {
|
|
14012
14012
|
k.pointerType === "mouse" && g && p(k);
|
|
14013
|
-
}, D.onPress =
|
|
14013
|
+
}, D.onPress = A ? M : (k) => {
|
|
14014
14014
|
k.pointerType !== "keyboard" && k.pointerType !== "mouse" && g && p(k);
|
|
14015
14015
|
}) : D.onPress = (k) => {
|
|
14016
|
-
if (
|
|
14016
|
+
if (A || E && k.pointerType !== "mouse") {
|
|
14017
14017
|
if (k.pointerType === "keyboard" && !zf()) return;
|
|
14018
14018
|
M(k);
|
|
14019
14019
|
} else k.pointerType !== "keyboard" && g && p(k);
|
|
14020
14020
|
}) : (D.onPressStart = (k) => {
|
|
14021
|
-
P.current = k.pointerType,
|
|
14021
|
+
P.current = k.pointerType, b.current = B, R.current = A, g && (k.pointerType === "mouse" && !A || k.pointerType === "keyboard" && (!y || qf())) && p(k);
|
|
14022
14022
|
}, D.onPress = (k) => {
|
|
14023
14023
|
(k.pointerType === "touch" || k.pointerType === "pen" || k.pointerType === "virtual" || k.pointerType === "keyboard" && C && zf() || k.pointerType === "mouse" && R.current) && (C ? M(k) : g && p(k));
|
|
14024
14024
|
}), v["data-collection"] = XI(n.collection), v["data-key"] = o, D.preventFocusOnPress = s, s && (D = Me(D, {
|
|
@@ -14037,14 +14037,14 @@ function eD(e) {
|
|
|
14037
14037
|
k.pointerType === "touch" && (p(k), n.setSelectionBehavior("toggle"));
|
|
14038
14038
|
}
|
|
14039
14039
|
}), N = (k) => {
|
|
14040
|
-
P.current === "touch" &&
|
|
14040
|
+
P.current === "touch" && b.current && k.preventDefault();
|
|
14041
14041
|
}, L = n.isLink(o) ? (k) => {
|
|
14042
14042
|
Hn.isOpening || k.preventDefault();
|
|
14043
14043
|
} : void 0;
|
|
14044
14044
|
return {
|
|
14045
14045
|
itemProps: Me(
|
|
14046
14046
|
v,
|
|
14047
|
-
g ||
|
|
14047
|
+
g || A || s ? F : {},
|
|
14048
14048
|
B ? I : {},
|
|
14049
14049
|
{
|
|
14050
14050
|
onDoubleClick: T,
|
|
@@ -14381,9 +14381,9 @@ class oD {
|
|
|
14381
14381
|
}
|
|
14382
14382
|
let g = m.getCollectionNode(s.props, this.context);
|
|
14383
14383
|
var a;
|
|
14384
|
-
let y = (a = t.index) !== null && a !== void 0 ? a : 0,
|
|
14385
|
-
for (; !
|
|
14386
|
-
let E =
|
|
14384
|
+
let y = (a = t.index) !== null && a !== void 0 ? a : 0, A = g.next();
|
|
14385
|
+
for (; !A.done && A.value; ) {
|
|
14386
|
+
let E = A.value;
|
|
14387
14387
|
t.index = y;
|
|
14388
14388
|
var l;
|
|
14389
14389
|
let C = (l = E.key) !== null && l !== void 0 ? l : null;
|
|
@@ -14396,14 +14396,14 @@ class oD {
|
|
|
14396
14396
|
wrapper: rD(t.wrapper, E.wrapper)
|
|
14397
14397
|
}, this.getChildState(n, E), o ? `${o}${s.key}` : s.key, r)
|
|
14398
14398
|
];
|
|
14399
|
-
for (let
|
|
14399
|
+
for (let b of B) {
|
|
14400
14400
|
var u, c;
|
|
14401
|
-
|
|
14401
|
+
b.value = (c = (u = E.value) !== null && u !== void 0 ? u : t.value) !== null && c !== void 0 ? c : null, b.value && this.cache.set(b.value, b);
|
|
14402
14402
|
var d;
|
|
14403
|
-
if (t.type &&
|
|
14404
|
-
y++, yield
|
|
14403
|
+
if (t.type && b.type !== t.type) throw new Error(`Unsupported type <${ta(b.type)}> in <${ta((d = r == null ? void 0 : r.type) !== null && d !== void 0 ? d : "unknown parent type")}>. Only <${ta(t.type)}> is supported.`);
|
|
14404
|
+
y++, yield b;
|
|
14405
14405
|
}
|
|
14406
|
-
|
|
14406
|
+
A = g.next(B);
|
|
14407
14407
|
}
|
|
14408
14408
|
return;
|
|
14409
14409
|
}
|
|
@@ -14433,8 +14433,8 @@ class oD {
|
|
|
14433
14433
|
...g,
|
|
14434
14434
|
index: m
|
|
14435
14435
|
}, f.getChildState(n, g), h.key, h);
|
|
14436
|
-
for (let
|
|
14437
|
-
m++, yield
|
|
14436
|
+
for (let A of y)
|
|
14437
|
+
m++, yield A;
|
|
14438
14438
|
}
|
|
14439
14439
|
})
|
|
14440
14440
|
};
|
|
@@ -14531,12 +14531,12 @@ function lD(e, t, n) {
|
|
|
14531
14531
|
var h;
|
|
14532
14532
|
let m = (h = e.shouldUseVirtualFocus) !== null && h !== void 0 ? h : s == null ? void 0 : s.shouldUseVirtualFocus;
|
|
14533
14533
|
var g;
|
|
14534
|
-
let y = (g = e.isVirtualized) !== null && g !== void 0 ? g : s == null ? void 0 : s.isVirtualized,
|
|
14534
|
+
let y = (g = e.isVirtualized) !== null && g !== void 0 ? g : s == null ? void 0 : s.isVirtualized, A = Ci(), E = Ci(), C = {
|
|
14535
14535
|
role: "option",
|
|
14536
14536
|
"aria-disabled": l || void 0,
|
|
14537
14537
|
"aria-selected": t.selectionManager.selectionMode !== "none" ? c : void 0
|
|
14538
14538
|
};
|
|
14539
|
-
gn() && ku() || (C["aria-label"] = e["aria-label"], C["aria-labelledby"] =
|
|
14539
|
+
gn() && ku() || (C["aria-label"] = e["aria-label"], C["aria-labelledby"] = A, C["aria-describedby"] = E);
|
|
14540
14540
|
let P = t.collection.getItem(i);
|
|
14541
14541
|
if (y) {
|
|
14542
14542
|
let L = Number(P == null ? void 0 : P.index);
|
|
@@ -14545,7 +14545,7 @@ function lD(e, t, n) {
|
|
|
14545
14545
|
let B = s != null && s.onAction ? () => {
|
|
14546
14546
|
var L;
|
|
14547
14547
|
return s == null || (L = s.onAction) === null || L === void 0 ? void 0 : L.call(s, i);
|
|
14548
|
-
} : void 0,
|
|
14548
|
+
} : void 0, b = Oy(t, i), { itemProps: R, isPressed: M, isFocused: D, hasAction: F, allowsSelection: x } = eD({
|
|
14549
14549
|
selectionManager: t.selectionManager,
|
|
14550
14550
|
key: i,
|
|
14551
14551
|
ref: n,
|
|
@@ -14556,7 +14556,7 @@ function lD(e, t, n) {
|
|
|
14556
14556
|
isDisabled: l,
|
|
14557
14557
|
onAction: B || !(P == null || (o = P.props) === null || o === void 0) && o.onAction ? Kn(P == null || (r = P.props) === null || r === void 0 ? void 0 : r.onAction, B) : void 0,
|
|
14558
14558
|
linkBehavior: s == null ? void 0 : s.linkBehavior,
|
|
14559
|
-
id:
|
|
14559
|
+
id: b
|
|
14560
14560
|
}), { hoverProps: T } = as({
|
|
14561
14561
|
isDisabled: l || !v,
|
|
14562
14562
|
onHoverStart() {
|
|
@@ -14569,10 +14569,10 @@ function lD(e, t, n) {
|
|
|
14569
14569
|
optionProps: {
|
|
14570
14570
|
...C,
|
|
14571
14571
|
...Me(I, R, T, N),
|
|
14572
|
-
id:
|
|
14572
|
+
id: b
|
|
14573
14573
|
},
|
|
14574
14574
|
labelProps: {
|
|
14575
|
-
id:
|
|
14575
|
+
id: A
|
|
14576
14576
|
},
|
|
14577
14577
|
descriptionProps: {
|
|
14578
14578
|
id: E
|
|
@@ -14867,7 +14867,7 @@ function pD(e, t) {
|
|
|
14867
14867
|
ref: r,
|
|
14868
14868
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
14869
14869
|
isVirtualized: !0
|
|
14870
|
-
}),
|
|
14870
|
+
}), A = ns(), E = (J) => {
|
|
14871
14871
|
if (!J.nativeEvent.isComposing)
|
|
14872
14872
|
switch (J.key) {
|
|
14873
14873
|
case "Enter":
|
|
@@ -14876,7 +14876,7 @@ function pD(e, t) {
|
|
|
14876
14876
|
let K = i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);
|
|
14877
14877
|
if (J.key === "Enter" && K instanceof HTMLAnchorElement) {
|
|
14878
14878
|
let ne = t.collection.getItem(t.selectionManager.focusedKey);
|
|
14879
|
-
ne &&
|
|
14879
|
+
ne && A.open(K, J, ne.props.href, ne.props.routerOptions);
|
|
14880
14880
|
}
|
|
14881
14881
|
t.close();
|
|
14882
14882
|
} else t.commit();
|
|
@@ -14901,7 +14901,7 @@ function pD(e, t) {
|
|
|
14901
14901
|
ne || H || (e.onBlur && e.onBlur(J), t.setFocused(!1));
|
|
14902
14902
|
}, P = (J) => {
|
|
14903
14903
|
t.isFocused || (e.onFocus && e.onFocus(J), t.setFocused(!0));
|
|
14904
|
-
}, { isInvalid: B, validationErrors:
|
|
14904
|
+
}, { isInvalid: B, validationErrors: b, validationDetails: R } = t.displayValidation, { labelProps: M, inputProps: D, descriptionProps: F, errorMessageProps: x } = xI({
|
|
14905
14905
|
...e,
|
|
14906
14906
|
onChange: t.setInputValue,
|
|
14907
14907
|
onKeyDown: u ? e.onKeyDown : Kn(t.isOpen && y.onKeyDown, E, e.onKeyDown),
|
|
@@ -15030,7 +15030,7 @@ function pD(e, t) {
|
|
|
15030
15030
|
descriptionProps: F,
|
|
15031
15031
|
errorMessageProps: x,
|
|
15032
15032
|
isInvalid: B,
|
|
15033
|
-
validationErrors:
|
|
15033
|
+
validationErrors: b,
|
|
15034
15034
|
validationDetails: R
|
|
15035
15035
|
};
|
|
15036
15036
|
}
|
|
@@ -15225,8 +15225,8 @@ function xD(e) {
|
|
|
15225
15225
|
get isFocused() {
|
|
15226
15226
|
return s.current;
|
|
15227
15227
|
},
|
|
15228
|
-
setFocused(
|
|
15229
|
-
s.current =
|
|
15228
|
+
setFocused(A) {
|
|
15229
|
+
s.current = A, a(A);
|
|
15230
15230
|
},
|
|
15231
15231
|
get focusedKey() {
|
|
15232
15232
|
return l.current;
|
|
@@ -15234,12 +15234,12 @@ function xD(e) {
|
|
|
15234
15234
|
get childFocusStrategy() {
|
|
15235
15235
|
return u.current;
|
|
15236
15236
|
},
|
|
15237
|
-
setFocusedKey(
|
|
15238
|
-
l.current =
|
|
15237
|
+
setFocusedKey(A, E = "first") {
|
|
15238
|
+
l.current = A, u.current = E, c(A);
|
|
15239
15239
|
},
|
|
15240
15240
|
selectedKeys: p,
|
|
15241
|
-
setSelectedKeys(
|
|
15242
|
-
(o || !wD(
|
|
15241
|
+
setSelectedKeys(A) {
|
|
15242
|
+
(o || !wD(A, p)) && v(A);
|
|
15243
15243
|
},
|
|
15244
15244
|
disabledKeys: h,
|
|
15245
15245
|
disabledBehavior: i
|
|
@@ -15657,7 +15657,7 @@ function PD(e) {
|
|
|
15657
15657
|
e.onSelectionChange && e.onSelectionChange(ee), ee === g && (j(), V());
|
|
15658
15658
|
};
|
|
15659
15659
|
var v;
|
|
15660
|
-
let { collection: h, selectionManager: m, selectedKey: g, setSelectedKey: y, selectedItem:
|
|
15660
|
+
let { collection: h, selectionManager: m, selectedKey: g, setSelectedKey: y, selectedItem: A, disabledKeys: E } = SD({
|
|
15661
15661
|
...e,
|
|
15662
15662
|
onSelectionChange: p,
|
|
15663
15663
|
items: (v = e.items) !== null && v !== void 0 ? v : e.defaultItems
|
|
@@ -15666,12 +15666,12 @@ function PD(e) {
|
|
|
15666
15666
|
var P, B;
|
|
15667
15667
|
g == null ? C = "" : C = (B = (P = h.getItem(g)) === null || P === void 0 ? void 0 : P.textValue) !== null && B !== void 0 ? B : "";
|
|
15668
15668
|
}
|
|
15669
|
-
let [
|
|
15669
|
+
let [b, R] = Cr(e.inputValue, C, e.onInputChange), M = h, D = fe(() => (
|
|
15670
15670
|
// No default filter if items are controlled.
|
|
15671
|
-
e.items != null || !n ? h : TD(h,
|
|
15671
|
+
e.items != null || !n ? h : TD(h, b, n)
|
|
15672
15672
|
), [
|
|
15673
15673
|
h,
|
|
15674
|
-
|
|
15674
|
+
b,
|
|
15675
15675
|
n,
|
|
15676
15676
|
e.items
|
|
15677
15677
|
]), [F, x] = pe(D), T = Z("focus"), N = SA({
|
|
@@ -15703,7 +15703,7 @@ function PD(e) {
|
|
|
15703
15703
|
}, [
|
|
15704
15704
|
N,
|
|
15705
15705
|
W
|
|
15706
|
-
]), [X, $] = pe(
|
|
15706
|
+
]), [X, $] = pe(b), j = () => {
|
|
15707
15707
|
var ee, de;
|
|
15708
15708
|
let Pe = g != null && (de = (ee = h.getItem(g)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && de !== void 0 ? de : "";
|
|
15709
15709
|
$(Pe), R(Pe);
|
|
@@ -15714,7 +15714,7 @@ function PD(e) {
|
|
|
15714
15714
|
let re = Z(g != null && (_ = (t = h.getItem(g)) === null || t === void 0 ? void 0 : t.textValue) !== null && _ !== void 0 ? _ : "");
|
|
15715
15715
|
ie(() => {
|
|
15716
15716
|
var ee;
|
|
15717
|
-
u && (D.size > 0 || r) && !N.isOpen &&
|
|
15717
|
+
u && (D.size > 0 || r) && !N.isOpen && b !== X && o !== "manual" && L(null, "input"), !a && !r && N.isOpen && D.size === 0 && V(), g != null && g !== G.current && V(), b !== X && (m.setFocusedKey(null), l(!1), b === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && y(null)), g !== G.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? j() : X !== b && $(b);
|
|
15718
15718
|
var de;
|
|
15719
15719
|
let Pe = g != null && (de = (ee = h.getItem(g)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && de !== void 0 ? de : "";
|
|
15720
15720
|
!u && g != null && e.inputValue === void 0 && g === G.current && re.current !== Pe && ($(Pe), R(Pe)), G.current = g, re.current = Pe;
|
|
@@ -15722,10 +15722,10 @@ function PD(e) {
|
|
|
15722
15722
|
let Q = pg({
|
|
15723
15723
|
...e,
|
|
15724
15724
|
value: fe(() => ({
|
|
15725
|
-
inputValue:
|
|
15725
|
+
inputValue: b,
|
|
15726
15726
|
selectedKey: g
|
|
15727
15727
|
}), [
|
|
15728
|
-
|
|
15728
|
+
b,
|
|
15729
15729
|
g
|
|
15730
15730
|
])
|
|
15731
15731
|
}), J = () => {
|
|
@@ -15746,14 +15746,14 @@ function PD(e) {
|
|
|
15746
15746
|
if (i) {
|
|
15747
15747
|
var ee, de;
|
|
15748
15748
|
const Pe = g != null && (de = (ee = h.getItem(g)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && de !== void 0 ? de : "";
|
|
15749
|
-
|
|
15749
|
+
b === Pe ? ne() : K();
|
|
15750
15750
|
} else
|
|
15751
15751
|
ne();
|
|
15752
15752
|
};
|
|
15753
15753
|
let oe = () => {
|
|
15754
15754
|
N.isOpen && m.focusedKey != null ? g === m.focusedKey ? ne() : y(m.focusedKey) : H();
|
|
15755
|
-
}, ve = Z(
|
|
15756
|
-
ee ? (ve.current =
|
|
15755
|
+
}, ve = Z(b), Ie = (ee) => {
|
|
15756
|
+
ee ? (ve.current = b, o === "focus" && !e.isReadOnly && L(null, "focus")) : (s && H(), b !== ve.current && Q.commitValidation()), c(ee);
|
|
15757
15757
|
}, Ve = fe(() => N.isOpen ? a ? M : D : F, [
|
|
15758
15758
|
N.isOpen,
|
|
15759
15759
|
M,
|
|
@@ -15774,9 +15774,9 @@ function PD(e) {
|
|
|
15774
15774
|
disabledKeys: E,
|
|
15775
15775
|
isFocused: u,
|
|
15776
15776
|
setFocused: Ie,
|
|
15777
|
-
selectedItem:
|
|
15777
|
+
selectedItem: A,
|
|
15778
15778
|
collection: Ve,
|
|
15779
|
-
inputValue:
|
|
15779
|
+
inputValue: b,
|
|
15780
15780
|
setInputValue: R,
|
|
15781
15781
|
commit: oe,
|
|
15782
15782
|
revert: J
|
|
@@ -15916,7 +15916,7 @@ function DA({ state: e, props: t, listBoxRef: n }) {
|
|
|
15916
15916
|
let u = ED(e, o), { collection: c, selectionManager: d } = u, f = !!(s != null && s.useDraggableCollectionState), p = !!(s != null && s.useDroppableCollectionState), { direction: v } = Po(), { disabledBehavior: h, disabledKeys: m } = d, g = Uu({
|
|
15917
15917
|
usage: "search",
|
|
15918
15918
|
sensitivity: "base"
|
|
15919
|
-
}), { isVirtualized: y, layoutDelegate:
|
|
15919
|
+
}), { isVirtualized: y, layoutDelegate: A, dropTargetDelegate: E, CollectionRoot: C } = ue(qu), P = fe(() => t.keyboardDelegate || new Qu({
|
|
15920
15920
|
collection: c,
|
|
15921
15921
|
collator: g,
|
|
15922
15922
|
ref: n,
|
|
@@ -15925,7 +15925,7 @@ function DA({ state: e, props: t, listBoxRef: n }) {
|
|
|
15925
15925
|
layout: a,
|
|
15926
15926
|
orientation: l,
|
|
15927
15927
|
direction: v,
|
|
15928
|
-
layoutDelegate:
|
|
15928
|
+
layoutDelegate: A
|
|
15929
15929
|
}), [
|
|
15930
15930
|
c,
|
|
15931
15931
|
g,
|
|
@@ -15936,15 +15936,15 @@ function DA({ state: e, props: t, listBoxRef: n }) {
|
|
|
15936
15936
|
v,
|
|
15937
15937
|
t.keyboardDelegate,
|
|
15938
15938
|
a,
|
|
15939
|
-
|
|
15939
|
+
A
|
|
15940
15940
|
]), { listBoxProps: B } = nD({
|
|
15941
15941
|
...t,
|
|
15942
15942
|
shouldSelectOnPressUp: f || t.shouldSelectOnPressUp,
|
|
15943
15943
|
keyboardDelegate: P,
|
|
15944
15944
|
isVirtualized: y
|
|
15945
|
-
}, u, n),
|
|
15945
|
+
}, u, n), b = Z(f), R = Z(p);
|
|
15946
15946
|
ie(() => {
|
|
15947
|
-
|
|
15947
|
+
b.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), R.current !== p && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
|
|
15948
15948
|
}, [
|
|
15949
15949
|
f,
|
|
15950
15950
|
p
|
|
@@ -16124,8 +16124,8 @@ const HD = /* @__PURE__ */ L4("item", function(t, n, o) {
|
|
|
16124
16124
|
}, [
|
|
16125
16125
|
o.textValue
|
|
16126
16126
|
]);
|
|
16127
|
-
let
|
|
16128
|
-
return /* @__PURE__ */ U.createElement(
|
|
16127
|
+
let A = t.href ? "a" : "div";
|
|
16128
|
+
return /* @__PURE__ */ U.createElement(A, {
|
|
16129
16129
|
...Me(u, p, h == null ? void 0 : h.dragProps, m == null ? void 0 : m.dropProps),
|
|
16130
16130
|
...y,
|
|
16131
16131
|
ref: r,
|
|
@@ -16230,16 +16230,16 @@ function qD({ state: e, isExiting: t, UNSTABLE_portalContainer: n, ...o }) {
|
|
|
16230
16230
|
isEntering: m,
|
|
16231
16231
|
isExiting: t
|
|
16232
16232
|
}
|
|
16233
|
-
}), y = !o.isNonModal || o.trigger === "SubmenuTrigger", [
|
|
16233
|
+
}), y = !o.isNonModal || o.trigger === "SubmenuTrigger", [A, E] = pe(!1);
|
|
16234
16234
|
be(() => {
|
|
16235
16235
|
h.current && E(y && !h.current.querySelector("[role=dialog]"));
|
|
16236
16236
|
}, [
|
|
16237
16237
|
h,
|
|
16238
16238
|
y
|
|
16239
16239
|
]), ie(() => {
|
|
16240
|
-
|
|
16240
|
+
A && h.current && !h.current.contains(document.activeElement) && vo(h.current);
|
|
16241
16241
|
}, [
|
|
16242
|
-
|
|
16242
|
+
A,
|
|
16243
16243
|
h
|
|
16244
16244
|
]);
|
|
16245
16245
|
let C = {
|
|
@@ -16248,8 +16248,8 @@ function qD({ state: e, isExiting: t, UNSTABLE_portalContainer: n, ...o }) {
|
|
|
16248
16248
|
}, P = /* @__PURE__ */ U.createElement("div", {
|
|
16249
16249
|
...Me(tn(o), d),
|
|
16250
16250
|
...g,
|
|
16251
|
-
role:
|
|
16252
|
-
tabIndex:
|
|
16251
|
+
role: A ? "dialog" : void 0,
|
|
16252
|
+
tabIndex: A ? -1 : void 0,
|
|
16253
16253
|
"aria-label": o["aria-label"],
|
|
16254
16254
|
"aria-labelledby": o["aria-labelledby"],
|
|
16255
16255
|
ref: h,
|
|
@@ -16273,7 +16273,7 @@ function qD({ state: e, isExiting: t, UNSTABLE_portalContainer: n, ...o }) {
|
|
|
16273
16273
|
}));
|
|
16274
16274
|
if (!u) return /* @__PURE__ */ U.createElement(Qf, {
|
|
16275
16275
|
...o,
|
|
16276
|
-
shouldContainFocus:
|
|
16276
|
+
shouldContainFocus: A,
|
|
16277
16277
|
isExiting: t,
|
|
16278
16278
|
portalContainer: n
|
|
16279
16279
|
}, !o.isNonModal && e.isOpen && /* @__PURE__ */ U.createElement("div", {
|
|
@@ -16294,7 +16294,7 @@ function qD({ state: e, isExiting: t, UNSTABLE_portalContainer: n, ...o }) {
|
|
|
16294
16294
|
var B;
|
|
16295
16295
|
return /* @__PURE__ */ U.createElement(Qf, {
|
|
16296
16296
|
...o,
|
|
16297
|
-
shouldContainFocus:
|
|
16297
|
+
shouldContainFocus: A,
|
|
16298
16298
|
isExiting: t,
|
|
16299
16299
|
portalContainer: (B = n ?? (l == null ? void 0 : l.current)) !== null && B !== void 0 ? B : void 0
|
|
16300
16300
|
}, P);
|
|
@@ -16345,7 +16345,7 @@ function XD({ props: e, collection: t, comboBoxRef: n }) {
|
|
|
16345
16345
|
children: void 0,
|
|
16346
16346
|
collection: t,
|
|
16347
16347
|
validationBehavior: u
|
|
16348
|
-
}), f = Z(null), p = Z(null), v = Z(null), h = Z(null), [m, g] = Uv(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: y, inputProps:
|
|
16348
|
+
}), f = Z(null), p = Z(null), v = Z(null), h = Z(null), [m, g] = Uv(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: y, inputProps: A, listBoxProps: E, labelProps: C, descriptionProps: P, errorMessageProps: B, ...b } = pD({
|
|
16349
16349
|
...t4(e),
|
|
16350
16350
|
label: g,
|
|
16351
16351
|
inputRef: p,
|
|
@@ -16372,12 +16372,12 @@ function XD({ props: e, collection: t, comboBoxRef: n }) {
|
|
|
16372
16372
|
let F = fe(() => ({
|
|
16373
16373
|
isOpen: d.isOpen,
|
|
16374
16374
|
isDisabled: e.isDisabled || !1,
|
|
16375
|
-
isInvalid:
|
|
16375
|
+
isInvalid: b.isInvalid || !1,
|
|
16376
16376
|
isRequired: e.isRequired || !1
|
|
16377
16377
|
}), [
|
|
16378
16378
|
d.isOpen,
|
|
16379
16379
|
e.isDisabled,
|
|
16380
|
-
|
|
16380
|
+
b.isInvalid,
|
|
16381
16381
|
e.isRequired
|
|
16382
16382
|
]), x = xn({
|
|
16383
16383
|
...e,
|
|
@@ -16410,7 +16410,7 @@ function XD({ props: e, collection: t, comboBoxRef: n }) {
|
|
|
16410
16410
|
[
|
|
16411
16411
|
AA,
|
|
16412
16412
|
{
|
|
16413
|
-
...
|
|
16413
|
+
...A,
|
|
16414
16414
|
ref: p
|
|
16415
16415
|
}
|
|
16416
16416
|
],
|
|
@@ -16455,13 +16455,13 @@ function XD({ props: e, collection: t, comboBoxRef: n }) {
|
|
|
16455
16455
|
[
|
|
16456
16456
|
DD,
|
|
16457
16457
|
{
|
|
16458
|
-
isInvalid:
|
|
16458
|
+
isInvalid: b.isInvalid,
|
|
16459
16459
|
isDisabled: e.isDisabled || !1
|
|
16460
16460
|
}
|
|
16461
16461
|
],
|
|
16462
16462
|
[
|
|
16463
16463
|
CD,
|
|
16464
|
-
|
|
16464
|
+
b
|
|
16465
16465
|
]
|
|
16466
16466
|
]
|
|
16467
16467
|
}, /* @__PURE__ */ U.createElement("div", {
|
|
@@ -16472,7 +16472,7 @@ function XD({ props: e, collection: t, comboBoxRef: n }) {
|
|
|
16472
16472
|
"data-focused": d.isFocused || void 0,
|
|
16473
16473
|
"data-open": d.isOpen || void 0,
|
|
16474
16474
|
"data-disabled": e.isDisabled || void 0,
|
|
16475
|
-
"data-invalid":
|
|
16475
|
+
"data-invalid": b.isInvalid || void 0,
|
|
16476
16476
|
"data-required": e.isRequired || void 0
|
|
16477
16477
|
}), o && r === "key" && /* @__PURE__ */ U.createElement("input", {
|
|
16478
16478
|
type: "hidden",
|
|
@@ -16545,21 +16545,21 @@ const C9 = (e) => {
|
|
|
16545
16545
|
getLabelProps: m,
|
|
16546
16546
|
getMenuProps: g,
|
|
16547
16547
|
getToggleButtonProps: y,
|
|
16548
|
-
isOpen:
|
|
16548
|
+
isOpen: A,
|
|
16549
16549
|
setInputValue: E
|
|
16550
16550
|
} = Zl({
|
|
16551
16551
|
defaultIsOpen: e,
|
|
16552
16552
|
items: l,
|
|
16553
|
-
itemToString(
|
|
16554
|
-
return
|
|
16553
|
+
itemToString(b) {
|
|
16554
|
+
return b ? b.text : "";
|
|
16555
16555
|
},
|
|
16556
|
-
onInputValueChange({ inputValue:
|
|
16557
|
-
n.onChange(
|
|
16556
|
+
onInputValueChange({ inputValue: b }) {
|
|
16557
|
+
n.onChange(b), b && (a(b), u(i.filter(S3(b))));
|
|
16558
16558
|
},
|
|
16559
|
-
onSelectedItemChange({ selectedItem:
|
|
16560
|
-
n.onChange(
|
|
16559
|
+
onSelectedItemChange({ selectedItem: b }) {
|
|
16560
|
+
n.onChange(b == null ? void 0 : b.text), r && b && r(b);
|
|
16561
16561
|
}
|
|
16562
|
-
}), C = e ||
|
|
16562
|
+
}), C = e || A, P = f > 768, B = {
|
|
16563
16563
|
focused: {
|
|
16564
16564
|
fontSize: P ? "1.25rem" : "0.875rem",
|
|
16565
16565
|
top: P ? "20px" : "22px"
|
|
@@ -16601,30 +16601,30 @@ const C9 = (e) => {
|
|
|
16601
16601
|
className: Ne["icon-button"],
|
|
16602
16602
|
type: "button",
|
|
16603
16603
|
...y(),
|
|
16604
|
-
onClick: (
|
|
16605
|
-
y().onClick(
|
|
16604
|
+
onClick: (b) => {
|
|
16605
|
+
y().onClick(b), A && (u(i), p(), a(""), E(""));
|
|
16606
16606
|
},
|
|
16607
|
-
children:
|
|
16607
|
+
children: A ? /* @__PURE__ */ w(je, { icon: "cancel" }) : /* @__PURE__ */ w(je, { icon: "search" })
|
|
16608
16608
|
}
|
|
16609
16609
|
)
|
|
16610
16610
|
] }) }),
|
|
16611
|
-
C && l.length !== 0 && /* @__PURE__ */ w("ul", { className: Ne.flyout, ...g(), children: l.map((
|
|
16611
|
+
C && l.length !== 0 && /* @__PURE__ */ w("ul", { className: Ne.flyout, ...g(), children: l.map((b, R) => /* @__PURE__ */ te(
|
|
16612
16612
|
"li",
|
|
16613
16613
|
{
|
|
16614
16614
|
className: Ne.item,
|
|
16615
|
-
...h({ index: R, item:
|
|
16615
|
+
...h({ index: R, item: b }),
|
|
16616
16616
|
children: [
|
|
16617
16617
|
/* @__PURE__ */ te("div", { className: Ne.itemContent, children: [
|
|
16618
16618
|
/* @__PURE__ */ te("div", { className: Ne.imageWrapper, children: [
|
|
16619
|
-
|
|
16620
|
-
|
|
16619
|
+
b.render && b.render,
|
|
16620
|
+
b.img && /* @__PURE__ */ w("img", { alt: "", src: b.img })
|
|
16621
16621
|
] }),
|
|
16622
|
-
/* @__PURE__ */ w(ge, { variant: "form-button", children:
|
|
16622
|
+
/* @__PURE__ */ w(ge, { variant: "form-button", children: b.text })
|
|
16623
16623
|
] }),
|
|
16624
16624
|
/* @__PURE__ */ w(je, { icon: "chevron_right" })
|
|
16625
16625
|
]
|
|
16626
16626
|
},
|
|
16627
|
-
|
|
16627
|
+
b.text
|
|
16628
16628
|
)) })
|
|
16629
16629
|
] });
|
|
16630
16630
|
}, T3 = ({
|
|
@@ -16819,9 +16819,11 @@ const F3 = {
|
|
|
16819
16819
|
variants: F3,
|
|
16820
16820
|
children: e
|
|
16821
16821
|
}
|
|
16822
|
-
), L3 = "
|
|
16823
|
-
|
|
16824
|
-
}, S9 = ({
|
|
16822
|
+
), L3 = "_divider_9m0s8_1", V3 = {
|
|
16823
|
+
divider: L3
|
|
16824
|
+
}, S9 = () => /* @__PURE__ */ w("hr", { className: V3.divider }), K3 = "_form_1m3m6_1", H3 = {
|
|
16825
|
+
form: K3
|
|
16826
|
+
}, P9 = ({
|
|
16825
16827
|
children: e,
|
|
16826
16828
|
methods: t,
|
|
16827
16829
|
onSubmit: n,
|
|
@@ -16829,32 +16831,32 @@ const F3 = {
|
|
|
16829
16831
|
}) => /* @__PURE__ */ w(L0, { ...t, children: /* @__PURE__ */ w(
|
|
16830
16832
|
"form",
|
|
16831
16833
|
{
|
|
16832
|
-
className:
|
|
16834
|
+
className: H3.form,
|
|
16833
16835
|
onSubmit: t.handleSubmit((r) => n(r)),
|
|
16834
16836
|
...o,
|
|
16835
16837
|
children: e
|
|
16836
16838
|
}
|
|
16837
|
-
) }),
|
|
16838
|
-
root:
|
|
16839
|
-
inter:
|
|
16840
|
-
brygada:
|
|
16841
|
-
xxl:
|
|
16842
|
-
xl:
|
|
16843
|
-
lg:
|
|
16844
|
-
md:
|
|
16845
|
-
sm:
|
|
16846
|
-
xs:
|
|
16847
|
-
regular:
|
|
16848
|
-
medium:
|
|
16849
|
-
bold:
|
|
16850
|
-
},
|
|
16839
|
+
) }), U3 = "_root_i7wil_2", j3 = "_inter_i7wil_7", W3 = "_brygada_i7wil_11", Q3 = "_xxl_i7wil_15", z3 = "_xl_i7wil_21", q3 = "_lg_i7wil_27", G3 = "_md_i7wil_33", Y3 = "_sm_i7wil_39", Z3 = "_xs_i7wil_45", X3 = "_regular_i7wil_51", J3 = "_medium_i7wil_52", $3 = "_bold_i7wil_53", Ur = {
|
|
16840
|
+
root: U3,
|
|
16841
|
+
inter: j3,
|
|
16842
|
+
brygada: W3,
|
|
16843
|
+
xxl: Q3,
|
|
16844
|
+
xl: z3,
|
|
16845
|
+
lg: q3,
|
|
16846
|
+
md: G3,
|
|
16847
|
+
sm: Y3,
|
|
16848
|
+
xs: Z3,
|
|
16849
|
+
regular: X3,
|
|
16850
|
+
medium: J3,
|
|
16851
|
+
bold: $3
|
|
16852
|
+
}, _3 = {
|
|
16851
16853
|
1: "xxl",
|
|
16852
16854
|
2: "xl",
|
|
16853
16855
|
3: "lg",
|
|
16854
16856
|
4: "md",
|
|
16855
16857
|
5: "sm",
|
|
16856
16858
|
6: "xs"
|
|
16857
|
-
},
|
|
16859
|
+
}, e5 = Le(
|
|
16858
16860
|
({
|
|
16859
16861
|
children: e,
|
|
16860
16862
|
className: t,
|
|
@@ -16864,7 +16866,7 @@ const F3 = {
|
|
|
16864
16866
|
weight: i = "bold",
|
|
16865
16867
|
...s
|
|
16866
16868
|
}, a) => {
|
|
16867
|
-
const l = `h${o}`, u = r ||
|
|
16869
|
+
const l = `h${o}`, u = r || _3[o];
|
|
16868
16870
|
return process.env.NODE_ENV === "development" && o > 2 && n === "brygada" && console.warn(
|
|
16869
16871
|
`[Design System]: Font 'brygada' is only allowed on levels 1 and 2. You used level ${o}.`
|
|
16870
16872
|
), /* @__PURE__ */ w(
|
|
@@ -16884,10 +16886,8 @@ const F3 = {
|
|
|
16884
16886
|
);
|
|
16885
16887
|
}
|
|
16886
16888
|
);
|
|
16887
|
-
|
|
16888
|
-
const
|
|
16889
|
-
horizontalRule: _3
|
|
16890
|
-
}, P9 = () => /* @__PURE__ */ w("hr", { className: e5.horizontalRule }), t5 = "_link_1bcin_1", n5 = {
|
|
16889
|
+
e5.displayName = "Heading";
|
|
16890
|
+
const t5 = "_link_1bcin_1", n5 = {
|
|
16891
16891
|
link: t5
|
|
16892
16892
|
}, T9 = ({
|
|
16893
16893
|
as: e,
|
|
@@ -17551,7 +17551,7 @@ var rp = {
|
|
|
17551
17551
|
})), v(N || s.mostRecentlyFocusedNode || d());
|
|
17552
17552
|
}
|
|
17553
17553
|
s.recentNavEvent = void 0;
|
|
17554
|
-
},
|
|
17554
|
+
}, A = function(x) {
|
|
17555
17555
|
var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
17556
17556
|
s.recentNavEvent = x;
|
|
17557
17557
|
var I = m({
|
|
@@ -17560,7 +17560,7 @@ var rp = {
|
|
|
17560
17560
|
});
|
|
17561
17561
|
I && (_o(x) && x.preventDefault(), v(I));
|
|
17562
17562
|
}, E = function(x) {
|
|
17563
|
-
(i.isKeyForward(x) || i.isKeyBackward(x)) &&
|
|
17563
|
+
(i.isKeyForward(x) || i.isKeyBackward(x)) && A(x, i.isKeyBackward(x));
|
|
17564
17564
|
}, C = function(x) {
|
|
17565
17565
|
K5(x) && Bo(i.escapeDeactivates, x) !== !1 && (x.preventDefault(), a.deactivate());
|
|
17566
17566
|
}, P = function(x) {
|
|
@@ -17583,7 +17583,7 @@ var rp = {
|
|
|
17583
17583
|
capture: !0,
|
|
17584
17584
|
passive: !1
|
|
17585
17585
|
}), o.addEventListener("keydown", C), a;
|
|
17586
|
-
},
|
|
17586
|
+
}, b = function() {
|
|
17587
17587
|
if (s.active)
|
|
17588
17588
|
return o.removeEventListener("focusin", y, !0), o.removeEventListener("mousedown", g, !0), o.removeEventListener("touchstart", g, !0), o.removeEventListener("click", P, !0), o.removeEventListener("keydown", E, !0), o.removeEventListener("keydown", C), a;
|
|
17589
17589
|
}, R = function(x) {
|
|
@@ -17627,7 +17627,7 @@ var rp = {
|
|
|
17627
17627
|
onPostDeactivate: i.onPostDeactivate,
|
|
17628
17628
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
17629
17629
|
}, x);
|
|
17630
|
-
clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0,
|
|
17630
|
+
clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, b(), s.active = !1, s.paused = !1, D(), rp.deactivateTrap(r, a);
|
|
17631
17631
|
var I = l(T, "onDeactivate"), N = l(T, "onPostDeactivate"), L = l(T, "checkCanReturnFocus"), k = l(T, "returnFocus", "returnFocusOnDeactivate");
|
|
17632
17632
|
I == null || I();
|
|
17633
17633
|
var W = function() {
|
|
@@ -17661,7 +17661,7 @@ var rp = {
|
|
|
17661
17661
|
return this;
|
|
17662
17662
|
if (s.paused = x, x) {
|
|
17663
17663
|
var I = l(T, "onPause"), N = l(T, "onPostPause");
|
|
17664
|
-
I == null || I(),
|
|
17664
|
+
I == null || I(), b(), D(), N == null || N();
|
|
17665
17665
|
} else {
|
|
17666
17666
|
var L = l(T, "onUnpause"), k = l(T, "onPostUnpause");
|
|
17667
17667
|
L == null || L(), f(), B(), D(), k == null || k();
|
|
@@ -18178,13 +18178,18 @@ const ak = /* @__PURE__ */ dh(sk), lk = "_modal_3ln72_1", uk = "_buttons_3ln72_3
|
|
|
18178
18178
|
max: a = 100,
|
|
18179
18179
|
min: l = 0,
|
|
18180
18180
|
missing: u,
|
|
18181
|
-
|
|
18182
|
-
|
|
18183
|
-
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18181
|
+
onChange: c,
|
|
18182
|
+
width: d = 3,
|
|
18183
|
+
...f
|
|
18184
|
+
}, p) => {
|
|
18185
|
+
const v = Z(null), [h, m] = pe(t), g = () => {
|
|
18186
|
+
if (Number(h) >= Number(a)) return;
|
|
18187
|
+
const A = Number(h) + 1;
|
|
18188
|
+
c && c(A), m(A);
|
|
18189
|
+
}, y = () => {
|
|
18190
|
+
if (Number(h) <= Number(l)) return;
|
|
18191
|
+
const A = Number(h) - 1;
|
|
18192
|
+
c && c(A), m(A);
|
|
18188
18193
|
};
|
|
18189
18194
|
return /* @__PURE__ */ w(
|
|
18190
18195
|
Cn,
|
|
@@ -18210,9 +18215,9 @@ const ak = /* @__PURE__ */ dh(sk), lk = "_modal_3ln72_1", uk = "_buttons_3ln72_3
|
|
|
18210
18215
|
{
|
|
18211
18216
|
"aria-label": "decrease",
|
|
18212
18217
|
className: ae(st.control),
|
|
18213
|
-
disabled:
|
|
18218
|
+
disabled: h <= Number(l) || n,
|
|
18214
18219
|
onClick: () => {
|
|
18215
|
-
|
|
18220
|
+
y(), v.current && v.current.focus();
|
|
18216
18221
|
},
|
|
18217
18222
|
tabIndex: -1,
|
|
18218
18223
|
type: "button",
|
|
@@ -18226,17 +18231,18 @@ const ak = /* @__PURE__ */ dh(sk), lk = "_modal_3ln72_1", uk = "_buttons_3ln72_3
|
|
|
18226
18231
|
disabled: n,
|
|
18227
18232
|
max: a,
|
|
18228
18233
|
min: l,
|
|
18229
|
-
|
|
18230
|
-
|
|
18234
|
+
readOnly: !0,
|
|
18235
|
+
ref: (A) => {
|
|
18236
|
+
v && (v.current = A), typeof p == "function" && p(A);
|
|
18231
18237
|
},
|
|
18232
18238
|
style: {
|
|
18233
|
-
width: `${
|
|
18239
|
+
width: `${d}ch`
|
|
18234
18240
|
},
|
|
18235
18241
|
type: "number",
|
|
18236
|
-
value:
|
|
18237
|
-
...
|
|
18238
|
-
onChange: (
|
|
18239
|
-
Number(
|
|
18242
|
+
value: h,
|
|
18243
|
+
...f,
|
|
18244
|
+
onChange: (A) => {
|
|
18245
|
+
Number(A.target.value) > Number(a) || Number(A.target.value) < Number(l) || (m(Number(A.target.value)), c && c(Number(A.target.value)));
|
|
18240
18246
|
}
|
|
18241
18247
|
}
|
|
18242
18248
|
),
|
|
@@ -18249,7 +18255,7 @@ const ak = /* @__PURE__ */ dh(sk), lk = "_modal_3ln72_1", uk = "_buttons_3ln72_3
|
|
|
18249
18255
|
n && st["control--disabled"]
|
|
18250
18256
|
),
|
|
18251
18257
|
onClick: () => {
|
|
18252
|
-
|
|
18258
|
+
g(), v.current && v.current.focus();
|
|
18253
18259
|
},
|
|
18254
18260
|
tabIndex: -1,
|
|
18255
18261
|
type: "button",
|
|
@@ -19718,10 +19724,10 @@ function Uk({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
19718
19724
|
}, [t, o, n, d]), { hasPWMBadge: r, willPushPWMBadge: c, PWM_BADGE_SPACE_WIDTH: Kk };
|
|
19719
19725
|
}
|
|
19720
19726
|
var jk = S.createContext({}), YA = S.forwardRef((e, t) => {
|
|
19721
|
-
var n = e, { value: o, onChange: r, maxLength: i, textAlign: s = "left", pattern: a, placeholder: l, inputMode: u = "numeric", onComplete: c, pushPasswordManagerStrategy: d = "increase-width", pasteTransformer: f, containerClassName: p, noScriptCSSFallback: v = Wk, render: h, children: m } = n, g = Nk(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), y,
|
|
19722
|
-
let [B,
|
|
19723
|
-
r == null || r(H),
|
|
19724
|
-
}, [r]), F = S.useMemo(() => a ? typeof a == "string" ? new RegExp(a) : a : null, [a]), x = S.useRef(null), T = S.useRef(null), I = S.useRef({ value: R, onChange: D, isIOS: typeof window < "u" && ((
|
|
19727
|
+
var n = e, { value: o, onChange: r, maxLength: i, textAlign: s = "left", pattern: a, placeholder: l, inputMode: u = "numeric", onComplete: c, pushPasswordManagerStrategy: d = "increase-width", pasteTransformer: f, containerClassName: p, noScriptCSSFallback: v = Wk, render: h, children: m } = n, g = Nk(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), y, A, E, C, P;
|
|
19728
|
+
let [B, b] = S.useState(typeof g.defaultValue == "string" ? g.defaultValue : ""), R = o ?? B, M = Lk(R), D = S.useCallback((H) => {
|
|
19729
|
+
r == null || r(H), b(H);
|
|
19730
|
+
}, [r]), F = S.useMemo(() => a ? typeof a == "string" ? new RegExp(a) : a : null, [a]), x = S.useRef(null), T = S.useRef(null), I = S.useRef({ value: R, onChange: D, isIOS: typeof window < "u" && ((A = (y = window == null ? void 0 : window.CSS) == null ? void 0 : y.supports) == null ? void 0 : A.call(y, "-webkit-touch-callout", "none")) }), N = S.useRef({ prev: [(E = x.current) == null ? void 0 : E.selectionStart, (C = x.current) == null ? void 0 : C.selectionEnd, (P = x.current) == null ? void 0 : P.selectionDirection] });
|
|
19725
19731
|
S.useImperativeHandle(t, () => x.current, []), S.useEffect(() => {
|
|
19726
19732
|
let H = x.current, oe = T.current;
|
|
19727
19733
|
if (!H || !oe) return;
|
|
@@ -19905,38 +19911,38 @@ const zk = "_inputContainer_1eytr_1", qk = "_inputWrapper_1eytr_9", Gk = "_input
|
|
|
19905
19911
|
m.value = "";
|
|
19906
19912
|
return;
|
|
19907
19913
|
}
|
|
19908
|
-
l((
|
|
19909
|
-
const E = [...
|
|
19914
|
+
l((A) => {
|
|
19915
|
+
const E = [...A];
|
|
19910
19916
|
return E[g] = m.value, E;
|
|
19911
19917
|
}), y && y.focus();
|
|
19912
19918
|
}, c = (h) => {
|
|
19913
19919
|
h == null || h.preventDefault();
|
|
19914
19920
|
const m = h.target, g = s.current.indexOf(m);
|
|
19915
19921
|
m.value = "", l((y) => {
|
|
19916
|
-
const
|
|
19917
|
-
return
|
|
19922
|
+
const A = [...y];
|
|
19923
|
+
return A[g] = null, A;
|
|
19918
19924
|
});
|
|
19919
19925
|
}, d = (h) => {
|
|
19920
19926
|
h == null || h.preventDefault();
|
|
19921
19927
|
const m = h.target, g = s.current.indexOf(m), y = s.current[g - 1];
|
|
19922
|
-
m.value = "", l((
|
|
19923
|
-
const E = [...
|
|
19928
|
+
m.value = "", l((A) => {
|
|
19929
|
+
const E = [...A];
|
|
19924
19930
|
return E[g] = null, E;
|
|
19925
19931
|
}), y && y.focus();
|
|
19926
19932
|
}, f = (h) => {
|
|
19927
19933
|
h.preventDefault();
|
|
19928
19934
|
const m = h.target, g = s.current.indexOf(m), y = s.current[g - 1];
|
|
19929
19935
|
if (h.key === "Home" && s.current[0].focus(), h.key === "End" && s.current[i - 1].focus(), h.key === "ArrowLeft" && y && y.focus(), h.key === "ArrowRight") {
|
|
19930
|
-
const
|
|
19931
|
-
|
|
19936
|
+
const A = s.current[g + 1];
|
|
19937
|
+
A && A.focus();
|
|
19932
19938
|
}
|
|
19933
19939
|
}, p = (h) => {
|
|
19934
19940
|
h.preventDefault();
|
|
19935
19941
|
const { clipboardData: m } = h;
|
|
19936
19942
|
if (!m) return;
|
|
19937
19943
|
const y = m.getData("text").split("");
|
|
19938
|
-
l((
|
|
19939
|
-
const E = [...
|
|
19944
|
+
l((A) => {
|
|
19945
|
+
const E = [...A];
|
|
19940
19946
|
return y.slice(0, i).forEach((P, B) => {
|
|
19941
19947
|
E[B] = P;
|
|
19942
19948
|
}), E;
|
|
@@ -20032,12 +20038,12 @@ var s6 = "DismissableLayer", cl = "dismissableLayer.update", a6 = "dismissableLa
|
|
|
20032
20038
|
onInteractOutside: s,
|
|
20033
20039
|
onDismiss: a,
|
|
20034
20040
|
...l
|
|
20035
|
-
} = e, u = S.useContext(ZA), [c, d] = S.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = S.useState({}), v = Ge(t, (B) => d(B)), h = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), g = h.indexOf(m), y = c ? h.indexOf(c) : -1,
|
|
20036
|
-
const
|
|
20041
|
+
} = e, u = S.useContext(ZA), [c, d] = S.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = S.useState({}), v = Ge(t, (B) => d(B)), h = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), g = h.indexOf(m), y = c ? h.indexOf(c) : -1, A = u.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= g, C = d6((B) => {
|
|
20042
|
+
const b = B.target, R = [...u.branches].some((M) => M.contains(b));
|
|
20037
20043
|
!E || R || (r == null || r(B), s == null || s(B), B.defaultPrevented || a == null || a());
|
|
20038
20044
|
}, f), P = f6((B) => {
|
|
20039
|
-
const
|
|
20040
|
-
[...u.branches].some((M) => M.contains(
|
|
20045
|
+
const b = B.target;
|
|
20046
|
+
[...u.branches].some((M) => M.contains(b)) || (i == null || i(B), s == null || s(B), B.defaultPrevented || a == null || a());
|
|
20041
20047
|
}, f);
|
|
20042
20048
|
return i6((B) => {
|
|
20043
20049
|
y === u.layers.size - 1 && (o == null || o(B), !B.defaultPrevented && a && (B.preventDefault(), a()));
|
|
@@ -20057,7 +20063,7 @@ var s6 = "DismissableLayer", cl = "dismissableLayer.update", a6 = "dismissableLa
|
|
|
20057
20063
|
...l,
|
|
20058
20064
|
ref: v,
|
|
20059
20065
|
style: {
|
|
20060
|
-
pointerEvents:
|
|
20066
|
+
pointerEvents: A ? E ? "auto" : "none" : void 0,
|
|
20061
20067
|
...e.style
|
|
20062
20068
|
},
|
|
20063
20069
|
onFocusCapture: Ae(e.onFocusCapture, P.onFocusCapture),
|
|
@@ -20165,17 +20171,17 @@ var ra = "focusScope.autoFocusOnMount", ia = "focusScope.autoFocusOnUnmount", dp
|
|
|
20165
20171
|
}).current;
|
|
20166
20172
|
S.useEffect(() => {
|
|
20167
20173
|
if (o) {
|
|
20168
|
-
let h = function(
|
|
20174
|
+
let h = function(A) {
|
|
20169
20175
|
if (p.paused || !a) return;
|
|
20170
|
-
const E =
|
|
20176
|
+
const E = A.target;
|
|
20171
20177
|
a.contains(E) ? d.current = E : an(d.current, { select: !0 });
|
|
20172
|
-
}, m = function(
|
|
20178
|
+
}, m = function(A) {
|
|
20173
20179
|
if (p.paused || !a) return;
|
|
20174
|
-
const E =
|
|
20180
|
+
const E = A.relatedTarget;
|
|
20175
20181
|
E !== null && (a.contains(E) || an(d.current, { select: !0 }));
|
|
20176
|
-
}, g = function(
|
|
20182
|
+
}, g = function(A) {
|
|
20177
20183
|
if (document.activeElement === document.body)
|
|
20178
|
-
for (const C of
|
|
20184
|
+
for (const C of A)
|
|
20179
20185
|
C.removedNodes.length > 0 && an(a);
|
|
20180
20186
|
};
|
|
20181
20187
|
document.addEventListener("focusin", h), document.addEventListener("focusout", m);
|
|
@@ -20205,8 +20211,8 @@ var ra = "focusScope.autoFocusOnMount", ia = "focusScope.autoFocusOnUnmount", dp
|
|
|
20205
20211
|
if (!n && !o || p.paused) return;
|
|
20206
20212
|
const m = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, g = document.activeElement;
|
|
20207
20213
|
if (m && g) {
|
|
20208
|
-
const y = h.currentTarget, [
|
|
20209
|
-
|
|
20214
|
+
const y = h.currentTarget, [A, E] = v6(y);
|
|
20215
|
+
A && E ? !h.shiftKey && g === E ? (h.preventDefault(), n && an(A, { select: !0 })) : h.shiftKey && g === A && (h.preventDefault(), n && an(E, { select: !0 })) : g === y && h.preventDefault();
|
|
20210
20216
|
}
|
|
20211
20217
|
},
|
|
20212
20218
|
[n, o, p.paused]
|
|
@@ -20450,7 +20456,7 @@ const D6 = async (e, t, n) => {
|
|
|
20450
20456
|
fn: g
|
|
20451
20457
|
} = a[h], {
|
|
20452
20458
|
x: y,
|
|
20453
|
-
y:
|
|
20459
|
+
y: A,
|
|
20454
20460
|
data: E,
|
|
20455
20461
|
reset: C
|
|
20456
20462
|
} = await g({
|
|
@@ -20467,7 +20473,7 @@ const D6 = async (e, t, n) => {
|
|
|
20467
20473
|
floating: t
|
|
20468
20474
|
}
|
|
20469
20475
|
});
|
|
20470
|
-
c = y ?? c, d =
|
|
20476
|
+
c = y ?? c, d = A ?? d, p = {
|
|
20471
20477
|
...p,
|
|
20472
20478
|
[m]: {
|
|
20473
20479
|
...p[m],
|
|
@@ -20516,7 +20522,7 @@ async function pr(e, t) {
|
|
|
20516
20522
|
y: r,
|
|
20517
20523
|
width: s.floating.width,
|
|
20518
20524
|
height: s.floating.height
|
|
20519
|
-
} : s.reference,
|
|
20525
|
+
} : s.reference, A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), E = await (i.isElement == null ? void 0 : i.isElement(A)) ? await (i.getScale == null ? void 0 : i.getScale(A)) || {
|
|
20520
20526
|
x: 1,
|
|
20521
20527
|
y: 1
|
|
20522
20528
|
} : {
|
|
@@ -20525,7 +20531,7 @@ async function pr(e, t) {
|
|
|
20525
20531
|
}, C = ji(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
20526
20532
|
elements: a,
|
|
20527
20533
|
rect: y,
|
|
20528
|
-
offsetParent:
|
|
20534
|
+
offsetParent: A,
|
|
20529
20535
|
strategy: l
|
|
20530
20536
|
}) : y);
|
|
20531
20537
|
return {
|
|
@@ -20556,10 +20562,10 @@ const k6 = (e) => ({
|
|
|
20556
20562
|
const d = _A(c), f = {
|
|
20557
20563
|
x: n,
|
|
20558
20564
|
y: o
|
|
20559
|
-
}, p = ec(r), v = _u(p), h = await s.getDimensions(u), m = p === "y", g = m ? "top" : "left", y = m ? "bottom" : "right",
|
|
20560
|
-
let B = P ? P[
|
|
20561
|
-
(!B || !await (s.isElement == null ? void 0 : s.isElement(P))) && (B = a.floating[
|
|
20562
|
-
const
|
|
20565
|
+
}, p = ec(r), v = _u(p), h = await s.getDimensions(u), m = p === "y", g = m ? "top" : "left", y = m ? "bottom" : "right", A = m ? "clientHeight" : "clientWidth", E = i.reference[v] + i.reference[p] - f[p] - i.floating[v], C = f[p] - i.reference[p], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
20566
|
+
let B = P ? P[A] : 0;
|
|
20567
|
+
(!B || !await (s.isElement == null ? void 0 : s.isElement(P))) && (B = a.floating[A] || i.floating[v]);
|
|
20568
|
+
const b = E / 2 - C / 2, R = B / 2 - h[v] / 2 - 1, M = yn(d[g], R), D = yn(d[y], R), F = M, x = B - h[v] - D, T = B / 2 - h[v] / 2 + b, I = dl(F, T, x), N = !l.arrow && To(r) != null && T !== I && i.reference[v] / 2 - (T < F ? M : D) - h[v] / 2 < 0, L = N ? T < F ? T - F : T - x : 0;
|
|
20563
20569
|
return {
|
|
20564
20570
|
[p]: f[p] + L,
|
|
20565
20571
|
data: {
|
|
@@ -20596,13 +20602,13 @@ const k6 = (e) => ({
|
|
|
20596
20602
|
} = Jt(e, t);
|
|
20597
20603
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
20598
20604
|
return {};
|
|
20599
|
-
const g = $t(r), y = An(a),
|
|
20605
|
+
const g = $t(r), y = An(a), A = $t(a) === a, E = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), C = f || (A || !h ? [Ui(a)] : S6(a)), P = v !== "none";
|
|
20600
20606
|
!f && P && C.push(...T6(a, h, v, E));
|
|
20601
|
-
const B = [a, ...C],
|
|
20607
|
+
const B = [a, ...C], b = await pr(t, m), R = [];
|
|
20602
20608
|
let M = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
20603
|
-
if (c && R.push(
|
|
20609
|
+
if (c && R.push(b[g]), d) {
|
|
20604
20610
|
const T = E6(r, s, E);
|
|
20605
|
-
R.push(
|
|
20611
|
+
R.push(b[T[0]], b[T[1]]);
|
|
20606
20612
|
}
|
|
20607
20613
|
if (M = [...M, {
|
|
20608
20614
|
placement: r,
|
|
@@ -20785,12 +20791,12 @@ const O6 = function(e) {
|
|
|
20785
20791
|
}, c = await pr(t, l), d = An($t(r)), f = $u(d);
|
|
20786
20792
|
let p = u[f], v = u[d];
|
|
20787
20793
|
if (i) {
|
|
20788
|
-
const m = f === "y" ? "top" : "left", g = f === "y" ? "bottom" : "right", y = p + c[m],
|
|
20789
|
-
p = dl(y, p,
|
|
20794
|
+
const m = f === "y" ? "top" : "left", g = f === "y" ? "bottom" : "right", y = p + c[m], A = p - c[g];
|
|
20795
|
+
p = dl(y, p, A);
|
|
20790
20796
|
}
|
|
20791
20797
|
if (s) {
|
|
20792
|
-
const m = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", y = v + c[m],
|
|
20793
|
-
v = dl(y, v,
|
|
20798
|
+
const m = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", y = v + c[m], A = v - c[g];
|
|
20799
|
+
v = dl(y, v, A);
|
|
20794
20800
|
}
|
|
20795
20801
|
const h = a.fn({
|
|
20796
20802
|
...t,
|
|
@@ -20838,12 +20844,12 @@ const O6 = function(e) {
|
|
|
20838
20844
|
...h
|
|
20839
20845
|
};
|
|
20840
20846
|
if (l) {
|
|
20841
|
-
const
|
|
20847
|
+
const A = f === "y" ? "height" : "width", E = i.reference[f] - i.floating[A] + m.mainAxis, C = i.reference[f] + i.reference[A] - m.mainAxis;
|
|
20842
20848
|
p < E ? p = E : p > C && (p = C);
|
|
20843
20849
|
}
|
|
20844
20850
|
if (u) {
|
|
20845
20851
|
var g, y;
|
|
20846
|
-
const
|
|
20852
|
+
const A = f === "y" ? "width" : "height", E = ["top", "left"].includes($t(r)), C = i.reference[d] - i.floating[A] + (E && ((g = s.offset) == null ? void 0 : g[d]) || 0) + (E ? 0 : m.crossAxis), P = i.reference[d] + i.reference[A] + (E ? 0 : ((y = s.offset) == null ? void 0 : y[d]) || 0) - (E ? m.crossAxis : 0);
|
|
20847
20853
|
v < C ? v = C : v > P && (v = P);
|
|
20848
20854
|
}
|
|
20849
20855
|
return {
|
|
@@ -20873,15 +20879,15 @@ const O6 = function(e) {
|
|
|
20873
20879
|
} = i.floating;
|
|
20874
20880
|
let m, g;
|
|
20875
20881
|
d === "top" || d === "bottom" ? (m = d, g = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = d, m = f === "end" ? "top" : "bottom");
|
|
20876
|
-
const y = h - c.top - c.bottom,
|
|
20877
|
-
let B = E,
|
|
20878
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
20882
|
+
const y = h - c.top - c.bottom, A = v - c.left - c.right, E = yn(h - c[m], y), C = yn(v - c[g], A), P = !t.middlewareData.shift;
|
|
20883
|
+
let B = E, b = C;
|
|
20884
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (b = A), (o = t.middlewareData.shift) != null && o.enabled.y && (B = y), P && !f) {
|
|
20879
20885
|
const M = dt(c.left, 0), D = dt(c.right, 0), F = dt(c.top, 0), x = dt(c.bottom, 0);
|
|
20880
|
-
p ?
|
|
20886
|
+
p ? b = v - 2 * (M !== 0 || D !== 0 ? M + D : dt(c.left, c.right)) : B = h - 2 * (F !== 0 || x !== 0 ? F + x : dt(c.top, c.bottom));
|
|
20881
20887
|
}
|
|
20882
20888
|
await l({
|
|
20883
20889
|
...t,
|
|
20884
|
-
availableWidth:
|
|
20890
|
+
availableWidth: b,
|
|
20885
20891
|
availableHeight: B
|
|
20886
20892
|
});
|
|
20887
20893
|
const R = await s.getDimensions(a.floating);
|
|
@@ -21052,8 +21058,8 @@ function Wn(e, t, n, o) {
|
|
|
21052
21058
|
const f = pt(i), p = o && Tt(o) ? pt(o) : o;
|
|
21053
21059
|
let v = f, h = pl(v);
|
|
21054
21060
|
for (; h && o && p !== v; ) {
|
|
21055
|
-
const m = co(h), g = h.getBoundingClientRect(), y = It(h),
|
|
21056
|
-
l *= m.x, u *= m.y, c *= m.x, d *= m.y, l +=
|
|
21061
|
+
const m = co(h), g = h.getBoundingClientRect(), y = It(h), A = g.left + (h.clientLeft + parseFloat(y.paddingLeft)) * m.x, E = g.top + (h.clientTop + parseFloat(y.paddingTop)) * m.y;
|
|
21062
|
+
l *= m.x, u *= m.y, c *= m.x, d *= m.y, l += A, u += E, v = pt(h), h = pl(v);
|
|
21057
21063
|
}
|
|
21058
21064
|
}
|
|
21059
21065
|
return ji({
|
|
@@ -21303,7 +21309,7 @@ function eM(e, t) {
|
|
|
21303
21309
|
} = u;
|
|
21304
21310
|
if (a || t(), !f || !p)
|
|
21305
21311
|
return;
|
|
21306
|
-
const v = Qr(d), h = Qr(r.clientWidth - (c + f)), m = Qr(r.clientHeight - (d + p)), g = Qr(c),
|
|
21312
|
+
const v = Qr(d), h = Qr(r.clientWidth - (c + f)), m = Qr(r.clientHeight - (d + p)), g = Qr(c), A = {
|
|
21307
21313
|
rootMargin: -v + "px " + -h + "px " + -m + "px " + -g + "px",
|
|
21308
21314
|
threshold: dt(0, yn(1, l)) || 1
|
|
21309
21315
|
};
|
|
@@ -21321,12 +21327,12 @@ function eM(e, t) {
|
|
|
21321
21327
|
}
|
|
21322
21328
|
try {
|
|
21323
21329
|
n = new IntersectionObserver(C, {
|
|
21324
|
-
...
|
|
21330
|
+
...A,
|
|
21325
21331
|
// Handle <iframe>s
|
|
21326
21332
|
root: r.ownerDocument
|
|
21327
21333
|
});
|
|
21328
21334
|
} catch {
|
|
21329
|
-
n = new IntersectionObserver(C,
|
|
21335
|
+
n = new IntersectionObserver(C, A);
|
|
21330
21336
|
}
|
|
21331
21337
|
n.observe(e);
|
|
21332
21338
|
}
|
|
@@ -21351,8 +21357,8 @@ function tM(e, t, n, o) {
|
|
|
21351
21357
|
s && (p = new ResizeObserver((g) => {
|
|
21352
21358
|
let [y] = g;
|
|
21353
21359
|
y && y.target === u && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
21354
|
-
var
|
|
21355
|
-
(
|
|
21360
|
+
var A;
|
|
21361
|
+
(A = p) == null || A.observe(t);
|
|
21356
21362
|
})), n();
|
|
21357
21363
|
}), u && !l && p.observe(u), p.observe(t));
|
|
21358
21364
|
let v, h = l ? Wn(e) : null;
|
|
@@ -21450,9 +21456,9 @@ function uM(e) {
|
|
|
21450
21456
|
Wi(f, o) || p(o);
|
|
21451
21457
|
const [v, h] = S.useState(null), [m, g] = S.useState(null), y = S.useCallback((k) => {
|
|
21452
21458
|
k !== P.current && (P.current = k, h(k));
|
|
21453
|
-
}, []),
|
|
21459
|
+
}, []), A = S.useCallback((k) => {
|
|
21454
21460
|
k !== B.current && (B.current = k, g(k));
|
|
21455
|
-
}, []), E = i || v, C = s || m, P = S.useRef(null), B = S.useRef(null),
|
|
21461
|
+
}, []), E = i || v, C = s || m, P = S.useRef(null), B = S.useRef(null), b = S.useRef(c), R = l != null, M = aa(l), D = aa(r), F = aa(u), x = S.useCallback(() => {
|
|
21456
21462
|
if (!P.current || !B.current)
|
|
21457
21463
|
return;
|
|
21458
21464
|
const k = {
|
|
@@ -21469,13 +21475,13 @@ function uM(e) {
|
|
|
21469
21475
|
// setting it to `true` when `open === false` (must be specified).
|
|
21470
21476
|
isPositioned: F.current !== !1
|
|
21471
21477
|
};
|
|
21472
|
-
T.current && !Wi(
|
|
21478
|
+
T.current && !Wi(b.current, O) && (b.current = O, Bp.flushSync(() => {
|
|
21473
21479
|
d(O);
|
|
21474
21480
|
}));
|
|
21475
21481
|
});
|
|
21476
21482
|
}, [f, t, n, D, F]);
|
|
21477
21483
|
ii(() => {
|
|
21478
|
-
u === !1 &&
|
|
21484
|
+
u === !1 && b.current.isPositioned && (b.current.isPositioned = !1, d((k) => ({
|
|
21479
21485
|
...k,
|
|
21480
21486
|
isPositioned: !1
|
|
21481
21487
|
})));
|
|
@@ -21494,8 +21500,8 @@ function uM(e) {
|
|
|
21494
21500
|
reference: P,
|
|
21495
21501
|
floating: B,
|
|
21496
21502
|
setReference: y,
|
|
21497
|
-
setFloating:
|
|
21498
|
-
}), [y,
|
|
21503
|
+
setFloating: A
|
|
21504
|
+
}), [y, A]), N = S.useMemo(() => ({
|
|
21499
21505
|
reference: E,
|
|
21500
21506
|
floating: C
|
|
21501
21507
|
}), [E, C]), L = S.useMemo(() => {
|
|
@@ -21618,7 +21624,7 @@ var sc = "PopperContent", [CM, wM] = cb(sc), mb = S.forwardRef(
|
|
|
21618
21624
|
updatePositionStrategy: p = "optimized",
|
|
21619
21625
|
onPlaced: v,
|
|
21620
21626
|
...h
|
|
21621
|
-
} = e, m = db(sc, n), [g, y] = S.useState(null),
|
|
21627
|
+
} = e, m = db(sc, n), [g, y] = S.useState(null), A = Ge(t, (ne) => y(ne)), [E, C] = S.useState(null), P = kl(E), B = (P == null ? void 0 : P.width) ?? 0, b = (P == null ? void 0 : P.height) ?? 0, R = o + (i !== "center" ? "-" + i : ""), M = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, D = Array.isArray(u) ? u : [u], F = D.length > 0, x = {
|
|
21622
21628
|
padding: M,
|
|
21623
21629
|
boundary: D.filter(EM),
|
|
21624
21630
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -21634,7 +21640,7 @@ var sc = "PopperContent", [CM, wM] = cb(sc), mb = S.forwardRef(
|
|
|
21634
21640
|
reference: m.anchor
|
|
21635
21641
|
},
|
|
21636
21642
|
middleware: [
|
|
21637
|
-
dM({ mainAxis: r +
|
|
21643
|
+
dM({ mainAxis: r + b, alignmentAxis: s }),
|
|
21638
21644
|
l && fM({
|
|
21639
21645
|
mainAxis: !0,
|
|
21640
21646
|
crossAxis: !1,
|
|
@@ -21650,7 +21656,7 @@ var sc = "PopperContent", [CM, wM] = cb(sc), mb = S.forwardRef(
|
|
|
21650
21656
|
}
|
|
21651
21657
|
}),
|
|
21652
21658
|
E && gM({ element: E, padding: a }),
|
|
21653
|
-
SM({ arrowWidth: B, arrowHeight:
|
|
21659
|
+
SM({ arrowWidth: B, arrowHeight: b }),
|
|
21654
21660
|
f && vM({ strategy: "referenceHidden", ...x })
|
|
21655
21661
|
]
|
|
21656
21662
|
}), [W, O] = yb(N), V = Zt(v);
|
|
@@ -21699,7 +21705,7 @@ var sc = "PopperContent", [CM, wM] = cb(sc), mb = S.forwardRef(
|
|
|
21699
21705
|
"data-side": W,
|
|
21700
21706
|
"data-align": O,
|
|
21701
21707
|
...h,
|
|
21702
|
-
ref:
|
|
21708
|
+
ref: A,
|
|
21703
21709
|
style: {
|
|
21704
21710
|
...h.style,
|
|
21705
21711
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -21966,7 +21972,7 @@ var Eb = VM(), ca = function() {
|
|
|
21966
21972
|
onScrollCapture: ca,
|
|
21967
21973
|
onWheelCapture: ca,
|
|
21968
21974
|
onTouchMoveCapture: ca
|
|
21969
|
-
}), r = o[0], i = o[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, v = e.inert, h = e.allowPinchZoom, m = e.as, g = m === void 0 ? "div" : m, y = e.gapMode,
|
|
21975
|
+
}), r = o[0], i = o[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, v = e.inert, h = e.allowPinchZoom, m = e.as, g = m === void 0 ? "div" : m, y = e.gapMode, A = vh(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = f, C = NM([n, t]), P = at(at({}, A), r);
|
|
21970
21976
|
return S.createElement(
|
|
21971
21977
|
S.Fragment,
|
|
21972
21978
|
null,
|
|
@@ -22213,18 +22219,18 @@ function u2(e) {
|
|
|
22213
22219
|
var a = S.useCallback(function(h, m) {
|
|
22214
22220
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
22215
22221
|
return !s.current.allowPinchZoom;
|
|
22216
|
-
var g = Yr(h), y = n.current,
|
|
22222
|
+
var g = Yr(h), y = n.current, A = "deltaX" in h ? h.deltaX : y[0] - g[0], E = "deltaY" in h ? h.deltaY : y[1] - g[1], C, P = h.target, B = Math.abs(A) > Math.abs(E) ? "h" : "v";
|
|
22217
22223
|
if ("touches" in h && B === "h" && P.type === "range")
|
|
22218
22224
|
return !1;
|
|
22219
|
-
var
|
|
22220
|
-
if (!
|
|
22225
|
+
var b = Sp(B, P);
|
|
22226
|
+
if (!b)
|
|
22221
22227
|
return !0;
|
|
22222
|
-
if (
|
|
22228
|
+
if (b ? C = B : (C = B === "v" ? "h" : "v", b = Sp(B, P)), !b)
|
|
22223
22229
|
return !1;
|
|
22224
|
-
if (!o.current && "changedTouches" in h && (
|
|
22230
|
+
if (!o.current && "changedTouches" in h && (A || E) && (o.current = C), !C)
|
|
22225
22231
|
return !0;
|
|
22226
22232
|
var R = o.current || C;
|
|
22227
|
-
return i2(R, m, h, R === "h" ?
|
|
22233
|
+
return i2(R, m, h, R === "h" ? A : E);
|
|
22228
22234
|
}, []), l = S.useCallback(function(h) {
|
|
22229
22235
|
var m = h;
|
|
22230
22236
|
if (!(!Xn.length || Xn[Xn.length - 1] !== i)) {
|
|
@@ -22236,17 +22242,17 @@ function u2(e) {
|
|
|
22236
22242
|
return;
|
|
22237
22243
|
}
|
|
22238
22244
|
if (!y) {
|
|
22239
|
-
var
|
|
22245
|
+
var A = (s.current.shards || []).map(Tp).filter(Boolean).filter(function(C) {
|
|
22240
22246
|
return C.contains(m.target);
|
|
22241
|
-
}), E =
|
|
22247
|
+
}), E = A.length > 0 ? a(m, A[0]) : !s.current.noIsolation;
|
|
22242
22248
|
E && m.cancelable && m.preventDefault();
|
|
22243
22249
|
}
|
|
22244
22250
|
}
|
|
22245
22251
|
}, []), u = S.useCallback(function(h, m, g, y) {
|
|
22246
|
-
var
|
|
22247
|
-
t.current.push(
|
|
22252
|
+
var A = { name: h, delta: m, target: g, should: y, shadowParent: c2(g) };
|
|
22253
|
+
t.current.push(A), setTimeout(function() {
|
|
22248
22254
|
t.current = t.current.filter(function(E) {
|
|
22249
|
-
return E !==
|
|
22255
|
+
return E !== A;
|
|
22250
22256
|
});
|
|
22251
22257
|
}, 1);
|
|
22252
22258
|
}, []), c = S.useCallback(function(h) {
|
|
@@ -22579,12 +22585,12 @@ var Q2 = S.forwardRef((e, t) => {
|
|
|
22579
22585
|
prop: s,
|
|
22580
22586
|
defaultProp: a,
|
|
22581
22587
|
onChange: l
|
|
22582
|
-
}), [g, y] = S.useState(!1),
|
|
22588
|
+
}), [g, y] = S.useState(!1), A = Zt(u), E = Ub(n), C = S.useRef(!1), [P, B] = S.useState(0);
|
|
22583
22589
|
return S.useEffect(() => {
|
|
22584
|
-
const
|
|
22585
|
-
if (
|
|
22586
|
-
return
|
|
22587
|
-
}, [
|
|
22590
|
+
const b = f.current;
|
|
22591
|
+
if (b)
|
|
22592
|
+
return b.addEventListener(fa, A), () => b.removeEventListener(fa, A);
|
|
22593
|
+
}, [A]), /* @__PURE__ */ w(
|
|
22588
22594
|
j2,
|
|
22589
22595
|
{
|
|
22590
22596
|
scope: n,
|
|
@@ -22593,16 +22599,16 @@ var Q2 = S.forwardRef((e, t) => {
|
|
|
22593
22599
|
loop: r,
|
|
22594
22600
|
currentTabStopId: h,
|
|
22595
22601
|
onItemFocus: S.useCallback(
|
|
22596
|
-
(
|
|
22602
|
+
(b) => m(b),
|
|
22597
22603
|
[m]
|
|
22598
22604
|
),
|
|
22599
22605
|
onItemShiftTab: S.useCallback(() => y(!0), []),
|
|
22600
22606
|
onFocusableItemAdd: S.useCallback(
|
|
22601
|
-
() => B((
|
|
22607
|
+
() => B((b) => b + 1),
|
|
22602
22608
|
[]
|
|
22603
22609
|
),
|
|
22604
22610
|
onFocusableItemRemove: S.useCallback(
|
|
22605
|
-
() => B((
|
|
22611
|
+
() => B((b) => b - 1),
|
|
22606
22612
|
[]
|
|
22607
22613
|
),
|
|
22608
22614
|
children: /* @__PURE__ */ w(
|
|
@@ -22616,11 +22622,11 @@ var Q2 = S.forwardRef((e, t) => {
|
|
|
22616
22622
|
onMouseDown: Ae(e.onMouseDown, () => {
|
|
22617
22623
|
C.current = !0;
|
|
22618
22624
|
}),
|
|
22619
|
-
onFocus: Ae(e.onFocus, (
|
|
22625
|
+
onFocus: Ae(e.onFocus, (b) => {
|
|
22620
22626
|
const R = !C.current;
|
|
22621
|
-
if (
|
|
22627
|
+
if (b.target === b.currentTarget && R && !g) {
|
|
22622
22628
|
const M = new CustomEvent(fa, K2);
|
|
22623
|
-
if (
|
|
22629
|
+
if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
22624
22630
|
const D = E().filter((N) => N.focusable), F = D.find((N) => N.active), x = D.find((N) => N.id === h), I = [F, x, ...D].filter(
|
|
22625
22631
|
Boolean
|
|
22626
22632
|
).map((N) => N.ref.current);
|
|
@@ -23537,25 +23543,25 @@ const UR = "_list_24s9t_2", jR = "_trigger_24s9t_8", g0 = {
|
|
|
23537
23543
|
Content: n7,
|
|
23538
23544
|
Icon: je,
|
|
23539
23545
|
Root: t7
|
|
23540
|
-
}, o7 = "
|
|
23546
|
+
}, o7 = "_root_1ywi1_1", r7 = "_label_1ywi1_74", i7 = "_helper_1ywi1_80", s7 = "_overline_1ywi1_86", a7 = "_tag_1ywi1_93", l7 = "_light_1ywi1_101", u7 = "_regular_1ywi1_102", pa = {
|
|
23541
23547
|
root: o7,
|
|
23542
|
-
"body-lead": "_body-
|
|
23543
|
-
"body-xl": "_body-
|
|
23544
|
-
"body-lg": "_body-
|
|
23545
|
-
"body-md": "_body-
|
|
23546
|
-
"body-sm": "_body-
|
|
23547
|
-
"body-xs": "_body-
|
|
23548
|
-
"button-md": "_button-
|
|
23549
|
-
"button-sm": "_button-
|
|
23550
|
-
"input-regular": "_input-
|
|
23551
|
-
"input-semi-bold": "_input-semi-
|
|
23548
|
+
"body-lead": "_body-lead_1ywi1_8",
|
|
23549
|
+
"body-xl": "_body-xl_1ywi1_14",
|
|
23550
|
+
"body-lg": "_body-lg_1ywi1_20",
|
|
23551
|
+
"body-md": "_body-md_1ywi1_26",
|
|
23552
|
+
"body-sm": "_body-sm_1ywi1_32",
|
|
23553
|
+
"body-xs": "_body-xs_1ywi1_38",
|
|
23554
|
+
"button-md": "_button-md_1ywi1_45",
|
|
23555
|
+
"button-sm": "_button-sm_1ywi1_51",
|
|
23556
|
+
"input-regular": "_input-regular_1ywi1_59",
|
|
23557
|
+
"input-semi-bold": "_input-semi-bold_1ywi1_66",
|
|
23552
23558
|
label: r7,
|
|
23553
23559
|
helper: i7,
|
|
23554
23560
|
overline: s7,
|
|
23555
23561
|
tag: a7,
|
|
23556
23562
|
light: l7,
|
|
23557
23563
|
regular: u7,
|
|
23558
|
-
"semi-bold": "_semi-
|
|
23564
|
+
"semi-bold": "_semi-bold_1ywi1_103"
|
|
23559
23565
|
}, Y9 = (e) => {
|
|
23560
23566
|
const {
|
|
23561
23567
|
as: t,
|
|
@@ -23865,7 +23871,7 @@ var ws = "Tooltip", [L7, Sr] = bs(ws), x0 = (e) => {
|
|
|
23865
23871
|
onChange: (B) => {
|
|
23866
23872
|
B ? (l.onOpen(), document.dispatchEvent(new CustomEvent(vl))) : l.onClose(), i == null || i(B);
|
|
23867
23873
|
}
|
|
23868
|
-
}),
|
|
23874
|
+
}), A = S.useMemo(() => g ? m.current ? "delayed-open" : "instant-open" : "closed", [g]), E = S.useCallback(() => {
|
|
23869
23875
|
window.clearTimeout(p.current), p.current = 0, m.current = !1, y(!0);
|
|
23870
23876
|
}, [y]), C = S.useCallback(() => {
|
|
23871
23877
|
window.clearTimeout(p.current), p.current = 0, y(!1);
|
|
@@ -23882,7 +23888,7 @@ var ws = "Tooltip", [L7, Sr] = bs(ws), x0 = (e) => {
|
|
|
23882
23888
|
scope: t,
|
|
23883
23889
|
contentId: f,
|
|
23884
23890
|
open: g,
|
|
23885
|
-
stateAttribute:
|
|
23891
|
+
stateAttribute: A,
|
|
23886
23892
|
trigger: c,
|
|
23887
23893
|
onTriggerChange: d,
|
|
23888
23894
|
onTriggerEnter: S.useCallback(() => {
|
|
@@ -23945,7 +23951,7 @@ var bo = "TooltipContent", P0 = S.forwardRef(
|
|
|
23945
23951
|
a(null), d(!1);
|
|
23946
23952
|
}, [d]), p = S.useCallback(
|
|
23947
23953
|
(v, h) => {
|
|
23948
|
-
const m = v.currentTarget, g = { x: v.clientX, y: v.clientY }, y = Q7(g, m.getBoundingClientRect()),
|
|
23954
|
+
const m = v.currentTarget, g = { x: v.clientX, y: v.clientY }, y = Q7(g, m.getBoundingClientRect()), A = z7(g, y), E = q7(h.getBoundingClientRect()), C = Y7([...A, ...E]);
|
|
23949
23955
|
a(C), d(!0);
|
|
23950
23956
|
},
|
|
23951
23957
|
[d]
|
|
@@ -23960,8 +23966,8 @@ var bo = "TooltipContent", P0 = S.forwardRef(
|
|
|
23960
23966
|
}, [l, c, p, f]), S.useEffect(() => {
|
|
23961
23967
|
if (s) {
|
|
23962
23968
|
const v = (h) => {
|
|
23963
|
-
const m = h.target, g = { x: h.clientX, y: h.clientY }, y = (l == null ? void 0 : l.contains(m)) || (c == null ? void 0 : c.contains(m)),
|
|
23964
|
-
y ? f() :
|
|
23969
|
+
const m = h.target, g = { x: h.clientX, y: h.clientY }, y = (l == null ? void 0 : l.contains(m)) || (c == null ? void 0 : c.contains(m)), A = !G7(g, s);
|
|
23970
|
+
y ? f() : A && (f(), u());
|
|
23965
23971
|
};
|
|
23966
23972
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
23967
23973
|
}
|
|
@@ -24174,10 +24180,10 @@ export {
|
|
|
24174
24180
|
C9 as ComboBox,
|
|
24175
24181
|
x9 as DatePicker,
|
|
24176
24182
|
E9 as Disclosure,
|
|
24183
|
+
S9 as Divider,
|
|
24177
24184
|
P3 as Field,
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
P9 as HorizontalRule,
|
|
24185
|
+
P9 as Form,
|
|
24186
|
+
e5 as Heading,
|
|
24181
24187
|
je as Icon,
|
|
24182
24188
|
D3 as Item,
|
|
24183
24189
|
T9 as Link,
|