@theroutingcompany/components 0.0.97-alpha.0 → 0.0.97
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.
|
@@ -95,14 +95,14 @@ function N5() {
|
|
|
95
95
|
Pe.unshift("Warning: " + X), Function.prototype.apply.call(console[T], console, Pe);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
var S = !1, E = !1, R = !1, C = !1, $ = !1,
|
|
99
|
-
|
|
98
|
+
var S = !1, E = !1, R = !1, C = !1, $ = !1, A;
|
|
99
|
+
A = Symbol.for("react.module.reference");
|
|
100
100
|
function N(T) {
|
|
101
101
|
return !!(typeof T == "string" || typeof T == "function" || T === r || T === a || $ || T === o || T === c || T === d || C || T === g || S || E || R || typeof T == "object" && T !== null && (T.$$typeof === p || T.$$typeof === u || T.$$typeof === i || T.$$typeof === l || T.$$typeof === s || // This needs to include all possible module reference object
|
|
102
102
|
// types supported by any Flight configuration anywhere since
|
|
103
103
|
// we don't know which Flight build this will end up being used
|
|
104
104
|
// with.
|
|
105
|
-
T.$$typeof ===
|
|
105
|
+
T.$$typeof === A || T.getModuleId !== void 0));
|
|
106
106
|
}
|
|
107
107
|
function x(T, X, re) {
|
|
108
108
|
var he = T.displayName;
|
|
@@ -159,14 +159,14 @@ function N5() {
|
|
|
159
159
|
}
|
|
160
160
|
return null;
|
|
161
161
|
}
|
|
162
|
-
var P = Object.assign, j = 0,
|
|
162
|
+
var P = Object.assign, j = 0, I, Q, W, q, z, V, ne;
|
|
163
163
|
function H() {
|
|
164
164
|
}
|
|
165
165
|
H.__reactDisabledLog = !0;
|
|
166
166
|
function Z() {
|
|
167
167
|
{
|
|
168
168
|
if (j === 0) {
|
|
169
|
-
|
|
169
|
+
I = console.log, Q = console.info, W = console.warn, q = console.error, z = console.group, V = console.groupCollapsed, ne = console.groupEnd;
|
|
170
170
|
var T = {
|
|
171
171
|
configurable: !0,
|
|
172
172
|
enumerable: !0,
|
|
@@ -196,7 +196,7 @@ function N5() {
|
|
|
196
196
|
};
|
|
197
197
|
Object.defineProperties(console, {
|
|
198
198
|
log: P({}, T, {
|
|
199
|
-
value:
|
|
199
|
+
value: I
|
|
200
200
|
}),
|
|
201
201
|
info: P({}, T, {
|
|
202
202
|
value: Q
|
|
@@ -1282,11 +1282,11 @@ const [Gh, pS] = Qi(An), [Yh, gS] = Qi(An, {
|
|
|
1282
1282
|
var h;
|
|
1283
1283
|
if (!dS.includes(g.key))
|
|
1284
1284
|
return;
|
|
1285
|
-
const b = g.target, m = c().filter((
|
|
1285
|
+
const b = g.target, m = c().filter((A) => {
|
|
1286
1286
|
var N;
|
|
1287
|
-
return !((N =
|
|
1287
|
+
return !((N = A.ref.current) !== null && N !== void 0 && N.disabled);
|
|
1288
1288
|
}), y = m.findIndex(
|
|
1289
|
-
(
|
|
1289
|
+
(A) => A.ref.current === b
|
|
1290
1290
|
), v = m.length;
|
|
1291
1291
|
if (y === -1)
|
|
1292
1292
|
return;
|
|
@@ -3092,18 +3092,18 @@ const ob = /* @__PURE__ */ Dn({
|
|
|
3092
3092
|
), m = Array.from(d.layers), [y] = [
|
|
3093
3093
|
...d.layersWithOutsidePointerEventsDisabled
|
|
3094
3094
|
].slice(-1), v = m.indexOf(y), _ = u ? m.indexOf(u) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= v, R = OD(($) => {
|
|
3095
|
-
const
|
|
3095
|
+
const A = $.target, N = [
|
|
3096
3096
|
...d.branches
|
|
3097
3097
|
].some(
|
|
3098
|
-
(x) => x.contains(
|
|
3098
|
+
(x) => x.contains(A)
|
|
3099
3099
|
);
|
|
3100
3100
|
!E || N || (a == null || a($), l == null || l($), $.defaultPrevented || s == null || s());
|
|
3101
3101
|
}, g), C = MD(($) => {
|
|
3102
|
-
const
|
|
3102
|
+
const A = $.target;
|
|
3103
3103
|
[
|
|
3104
3104
|
...d.branches
|
|
3105
3105
|
].some(
|
|
3106
|
-
(x) => x.contains(
|
|
3106
|
+
(x) => x.contains(A)
|
|
3107
3107
|
) || (i == null || i($), l == null || l($), $.defaultPrevented || s == null || s());
|
|
3108
3108
|
}, g);
|
|
3109
3109
|
return CD(($) => {
|
|
@@ -3808,8 +3808,8 @@ function vE(e) {
|
|
|
3808
3808
|
return !1;
|
|
3809
3809
|
if (!r.current && "changedTouches" in b && (_ || S) && (r.current = E), !E)
|
|
3810
3810
|
return !0;
|
|
3811
|
-
var
|
|
3812
|
-
return gE(
|
|
3811
|
+
var A = r.current || E;
|
|
3812
|
+
return gE(A, m, b, A === "h" ? _ : S, !0);
|
|
3813
3813
|
}, []), s = G.useCallback(function(b) {
|
|
3814
3814
|
var m = b;
|
|
3815
3815
|
if (!(!$r.length || $r[$r.length - 1] !== a)) {
|
|
@@ -4272,7 +4272,7 @@ function u6() {
|
|
|
4272
4272
|
node: N(),
|
|
4273
4273
|
objectOf: $,
|
|
4274
4274
|
oneOf: C,
|
|
4275
|
-
oneOfType:
|
|
4275
|
+
oneOfType: A,
|
|
4276
4276
|
shape: F,
|
|
4277
4277
|
exact: D
|
|
4278
4278
|
};
|
|
@@ -4308,7 +4308,7 @@ function u6() {
|
|
|
4308
4308
|
}
|
|
4309
4309
|
function y(z) {
|
|
4310
4310
|
function V(ne, H, Z, de, le, se) {
|
|
4311
|
-
var ue = ne[H], ce =
|
|
4311
|
+
var ue = ne[H], ce = I(ue);
|
|
4312
4312
|
if (ce !== z) {
|
|
4313
4313
|
var pe = Q(ue);
|
|
4314
4314
|
return new b(
|
|
@@ -4329,7 +4329,7 @@ function u6() {
|
|
|
4329
4329
|
return new b("Property `" + le + "` of component `" + Z + "` has invalid PropType notation inside arrayOf.");
|
|
4330
4330
|
var se = ne[H];
|
|
4331
4331
|
if (!Array.isArray(se)) {
|
|
4332
|
-
var ue =
|
|
4332
|
+
var ue = I(se);
|
|
4333
4333
|
return new b("Invalid " + de + " `" + le + "` of type " + ("`" + ue + "` supplied to `" + Z + "`, expected an array."));
|
|
4334
4334
|
}
|
|
4335
4335
|
for (var ce = 0; ce < se.length; ce++) {
|
|
@@ -4345,7 +4345,7 @@ function u6() {
|
|
|
4345
4345
|
function z(V, ne, H, Z, de) {
|
|
4346
4346
|
var le = V[ne];
|
|
4347
4347
|
if (!l(le)) {
|
|
4348
|
-
var se =
|
|
4348
|
+
var se = I(le);
|
|
4349
4349
|
return new b("Invalid " + Z + " `" + de + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
4350
4350
|
}
|
|
4351
4351
|
return null;
|
|
@@ -4356,7 +4356,7 @@ function u6() {
|
|
|
4356
4356
|
function z(V, ne, H, Z, de) {
|
|
4357
4357
|
var le = V[ne];
|
|
4358
4358
|
if (!e.isValidElementType(le)) {
|
|
4359
|
-
var se =
|
|
4359
|
+
var se = I(le);
|
|
4360
4360
|
return new b("Invalid " + Z + " `" + de + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
4361
4361
|
}
|
|
4362
4362
|
return null;
|
|
@@ -4394,7 +4394,7 @@ function u6() {
|
|
|
4394
4394
|
function V(ne, H, Z, de, le) {
|
|
4395
4395
|
if (typeof z != "function")
|
|
4396
4396
|
return new b("Property `" + le + "` of component `" + Z + "` has invalid PropType notation inside objectOf.");
|
|
4397
|
-
var se = ne[H], ue =
|
|
4397
|
+
var se = ne[H], ue = I(se);
|
|
4398
4398
|
if (ue !== "object")
|
|
4399
4399
|
return new b("Invalid " + de + " `" + le + "` of type " + ("`" + ue + "` supplied to `" + Z + "`, expected an object."));
|
|
4400
4400
|
for (var ce in se)
|
|
@@ -4407,7 +4407,7 @@ function u6() {
|
|
|
4407
4407
|
}
|
|
4408
4408
|
return m(V);
|
|
4409
4409
|
}
|
|
4410
|
-
function
|
|
4410
|
+
function A(z) {
|
|
4411
4411
|
if (!Array.isArray(z))
|
|
4412
4412
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
4413
4413
|
for (var V = 0; V < z.length; V++) {
|
|
@@ -4442,7 +4442,7 @@ function u6() {
|
|
|
4442
4442
|
}
|
|
4443
4443
|
function F(z) {
|
|
4444
4444
|
function V(ne, H, Z, de, le) {
|
|
4445
|
-
var se = ne[H], ue =
|
|
4445
|
+
var se = ne[H], ue = I(se);
|
|
4446
4446
|
if (ue !== "object")
|
|
4447
4447
|
return new b("Invalid " + de + " `" + le + "` of type `" + ue + "` " + ("supplied to `" + Z + "`, expected `object`."));
|
|
4448
4448
|
for (var ce in z) {
|
|
@@ -4459,7 +4459,7 @@ function u6() {
|
|
|
4459
4459
|
}
|
|
4460
4460
|
function D(z) {
|
|
4461
4461
|
function V(ne, H, Z, de, le) {
|
|
4462
|
-
var se = ne[H], ue =
|
|
4462
|
+
var se = ne[H], ue = I(se);
|
|
4463
4463
|
if (ue !== "object")
|
|
4464
4464
|
return new b("Invalid " + de + " `" + le + "` of type `" + ue + "` " + ("supplied to `" + Z + "`, expected `object`."));
|
|
4465
4465
|
var ce = t({}, ne[H], z);
|
|
@@ -4516,14 +4516,14 @@ Valid keys: ` + JSON.stringify(Object.keys(z), null, " ")
|
|
|
4516
4516
|
function j(z, V) {
|
|
4517
4517
|
return z === "symbol" ? !0 : V ? V["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && V instanceof Symbol : !1;
|
|
4518
4518
|
}
|
|
4519
|
-
function
|
|
4519
|
+
function I(z) {
|
|
4520
4520
|
var V = typeof z;
|
|
4521
4521
|
return Array.isArray(z) ? "array" : z instanceof RegExp ? "object" : j(V, z) ? "symbol" : V;
|
|
4522
4522
|
}
|
|
4523
4523
|
function Q(z) {
|
|
4524
4524
|
if (typeof z > "u" || z === null)
|
|
4525
4525
|
return "" + z;
|
|
4526
|
-
var V =
|
|
4526
|
+
var V = I(z);
|
|
4527
4527
|
if (V === "object") {
|
|
4528
4528
|
if (z instanceof Date)
|
|
4529
4529
|
return "date";
|
|
@@ -4630,7 +4630,7 @@ var zb = Hd({}, function(e) {
|
|
|
4630
4630
|
// however, it might be required for JSDOM tests
|
|
4631
4631
|
// ssr: true,
|
|
4632
4632
|
}), y6 = [], Jd = /* @__PURE__ */ G.forwardRef(function(t, n) {
|
|
4633
|
-
var r, o = G.useState(), a = o[0], i = o[1], l = G.useRef(), s = G.useRef(!1), c = G.useRef(null), d = t.children, u = t.disabled, p = t.noFocusGuards, g = t.persistentFocus, h = t.crossFrame, b = t.autoFocus, m = t.allowTextSelection, y = t.group, v = t.className, _ = t.whiteList, S = t.hasPositiveIndices, E = t.shards, R = E === void 0 ? y6 : E, C = t.as, $ = C === void 0 ? "div" : C,
|
|
4633
|
+
var r, o = G.useState(), a = o[0], i = o[1], l = G.useRef(), s = G.useRef(!1), c = G.useRef(null), d = t.children, u = t.disabled, p = t.noFocusGuards, g = t.persistentFocus, h = t.crossFrame, b = t.autoFocus, m = t.allowTextSelection, y = t.group, v = t.className, _ = t.whiteList, S = t.hasPositiveIndices, E = t.shards, R = E === void 0 ? y6 : E, C = t.as, $ = C === void 0 ? "div" : C, A = t.lockProps, N = A === void 0 ? {} : A, x = t.sideCar, F = t.returnFocus, D = t.focusOptions, P = t.onActivation, j = t.onDeactivation, I = G.useState({}), Q = I[0], W = G.useCallback(function() {
|
|
4634
4634
|
c.current = c.current || document && document.activeElement, l.current && P && P(l.current), s.current = !0;
|
|
4635
4635
|
}, [P]), q = G.useCallback(function() {
|
|
4636
4636
|
s.current = !1, j && j(l.current);
|
|
@@ -7270,48 +7270,48 @@ function Jr(e) {
|
|
|
7270
7270
|
target: null,
|
|
7271
7271
|
isOverTarget: !1,
|
|
7272
7272
|
pointerType: null
|
|
7273
|
-
}), { addGlobalListener: m, removeAllGlobalListeners: y } = gu(), v = Me(($,
|
|
7273
|
+
}), { addGlobalListener: m, removeAllGlobalListeners: y } = gu(), v = Me(($, A) => {
|
|
7274
7274
|
let N = b.current;
|
|
7275
7275
|
if (i || N.didFirePressStart)
|
|
7276
7276
|
return !1;
|
|
7277
7277
|
let x = !0;
|
|
7278
7278
|
if (N.isTriggeringEvent = !0, r) {
|
|
7279
|
-
let F = new Fa("pressstart",
|
|
7279
|
+
let F = new Fa("pressstart", A, $);
|
|
7280
7280
|
r(F), x = F.shouldStopPropagation;
|
|
7281
7281
|
}
|
|
7282
7282
|
return n && n(!0), N.isTriggeringEvent = !1, N.didFirePressStart = !0, h(!0), x;
|
|
7283
|
-
}), _ = Me(($,
|
|
7283
|
+
}), _ = Me(($, A, N = !0) => {
|
|
7284
7284
|
let x = b.current;
|
|
7285
7285
|
if (!x.didFirePressStart)
|
|
7286
7286
|
return !1;
|
|
7287
7287
|
x.ignoreClickAfterPress = !0, x.didFirePressStart = !1, x.isTriggeringEvent = !0;
|
|
7288
7288
|
let F = !0;
|
|
7289
7289
|
if (o) {
|
|
7290
|
-
let D = new Fa("pressend",
|
|
7290
|
+
let D = new Fa("pressend", A, $);
|
|
7291
7291
|
o(D), F = D.shouldStopPropagation;
|
|
7292
7292
|
}
|
|
7293
7293
|
if (n && n(!1), h(!1), t && N && !i) {
|
|
7294
|
-
let D = new Fa("press",
|
|
7294
|
+
let D = new Fa("press", A, $);
|
|
7295
7295
|
t(D), F && (F = D.shouldStopPropagation);
|
|
7296
7296
|
}
|
|
7297
7297
|
return x.isTriggeringEvent = !1, F;
|
|
7298
|
-
}), S = Me(($,
|
|
7298
|
+
}), S = Me(($, A) => {
|
|
7299
7299
|
let N = b.current;
|
|
7300
7300
|
if (i)
|
|
7301
7301
|
return !1;
|
|
7302
7302
|
if (a) {
|
|
7303
7303
|
N.isTriggeringEvent = !0;
|
|
7304
|
-
let x = new Fa("pressup",
|
|
7304
|
+
let x = new Fa("pressup", A, $);
|
|
7305
7305
|
return a(x), N.isTriggeringEvent = !1, x.shouldStopPropagation;
|
|
7306
7306
|
}
|
|
7307
7307
|
return !0;
|
|
7308
7308
|
}), E = Me(($) => {
|
|
7309
|
-
let
|
|
7310
|
-
|
|
7309
|
+
let A = b.current;
|
|
7310
|
+
A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && _(Bt(A.target, $), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, y(), d || Oa(A.target));
|
|
7311
7311
|
}), R = Me(($) => {
|
|
7312
7312
|
c && E($);
|
|
7313
7313
|
}), C = ie(() => {
|
|
7314
|
-
let $ = b.current,
|
|
7314
|
+
let $ = b.current, A = {
|
|
7315
7315
|
onKeyDown(x) {
|
|
7316
7316
|
if (hs(x.nativeEvent, x.currentTarget) && x.currentTarget.contains(x.target)) {
|
|
7317
7317
|
var F;
|
|
@@ -7319,8 +7319,8 @@ function Jr(e) {
|
|
|
7319
7319
|
let D = !0;
|
|
7320
7320
|
if (!$.isPressed && !x.repeat) {
|
|
7321
7321
|
$.target = x.currentTarget, $.isPressed = !0, D = v(x, "keyboard");
|
|
7322
|
-
let P = x.currentTarget, j = (
|
|
7323
|
-
hs(
|
|
7322
|
+
let P = x.currentTarget, j = (I) => {
|
|
7323
|
+
hs(I, P) && !I.repeat && P.contains(I.target) && $.target && S(Bt($.target, I), "keyboard");
|
|
7324
7324
|
};
|
|
7325
7325
|
m(Ie(x.currentTarget), "keyup", nn(j, N), !0);
|
|
7326
7326
|
}
|
|
@@ -7350,12 +7350,12 @@ function Jr(e) {
|
|
|
7350
7350
|
var P;
|
|
7351
7351
|
let j = $.metaKeyEvents;
|
|
7352
7352
|
$.metaKeyEvents = void 0;
|
|
7353
|
-
for (let
|
|
7354
|
-
(P = $.target) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent("keyup",
|
|
7353
|
+
for (let I of j.values())
|
|
7354
|
+
(P = $.target) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent("keyup", I));
|
|
7355
7355
|
}
|
|
7356
7356
|
};
|
|
7357
7357
|
if (typeof PointerEvent < "u") {
|
|
7358
|
-
|
|
7358
|
+
A.onPointerDown = (P) => {
|
|
7359
7359
|
if (P.button !== 0 || !P.currentTarget.contains(P.target))
|
|
7360
7360
|
return;
|
|
7361
7361
|
if (u3(P.nativeEvent)) {
|
|
@@ -7365,9 +7365,9 @@ function Jr(e) {
|
|
|
7365
7365
|
bs(P.currentTarget) && P.preventDefault(), $.pointerType = P.pointerType;
|
|
7366
7366
|
let j = !0;
|
|
7367
7367
|
$.isPressed || ($.isPressed = !0, $.isOverTarget = !0, $.activePointerId = P.pointerId, $.target = P.currentTarget, !i && !s && Ct(P.currentTarget), d || Ep($.target), j = v(P, $.pointerType), m(Ie(P.currentTarget), "pointermove", x, !1), m(Ie(P.currentTarget), "pointerup", F, !1), m(Ie(P.currentTarget), "pointercancel", D, !1)), j && P.stopPropagation();
|
|
7368
|
-
},
|
|
7368
|
+
}, A.onMouseDown = (P) => {
|
|
7369
7369
|
P.currentTarget.contains(P.target) && P.button === 0 && (bs(P.currentTarget) && P.preventDefault(), P.stopPropagation());
|
|
7370
|
-
},
|
|
7370
|
+
}, A.onPointerUp = (P) => {
|
|
7371
7371
|
!P.currentTarget.contains(P.target) || $.pointerType === "virtual" || P.button === 0 && wr(P, P.currentTarget) && S(P, $.pointerType || P.pointerType);
|
|
7372
7372
|
};
|
|
7373
7373
|
let x = (P) => {
|
|
@@ -7377,11 +7377,11 @@ function Jr(e) {
|
|
|
7377
7377
|
}, D = (P) => {
|
|
7378
7378
|
E(P);
|
|
7379
7379
|
};
|
|
7380
|
-
|
|
7380
|
+
A.onDragStart = (P) => {
|
|
7381
7381
|
P.currentTarget.contains(P.target) && E(P);
|
|
7382
7382
|
};
|
|
7383
7383
|
} else {
|
|
7384
|
-
|
|
7384
|
+
A.onMouseDown = (D) => {
|
|
7385
7385
|
if (D.button !== 0 || !D.currentTarget.contains(D.target))
|
|
7386
7386
|
return;
|
|
7387
7387
|
if (bs(D.currentTarget) && D.preventDefault(), $.ignoreEmulatedMouseEvents) {
|
|
@@ -7389,17 +7389,17 @@ function Jr(e) {
|
|
|
7389
7389
|
return;
|
|
7390
7390
|
}
|
|
7391
7391
|
$.isPressed = !0, $.isOverTarget = !0, $.target = D.currentTarget, $.pointerType = kc(D.nativeEvent) ? "virtual" : "mouse", !i && !s && Ct(D.currentTarget), v(D, $.pointerType) && D.stopPropagation(), m(Ie(D.currentTarget), "mouseup", x, !1);
|
|
7392
|
-
},
|
|
7392
|
+
}, A.onMouseEnter = (D) => {
|
|
7393
7393
|
if (!D.currentTarget.contains(D.target))
|
|
7394
7394
|
return;
|
|
7395
7395
|
let P = !0;
|
|
7396
7396
|
$.isPressed && !$.ignoreEmulatedMouseEvents && $.pointerType != null && ($.isOverTarget = !0, P = v(D, $.pointerType)), P && D.stopPropagation();
|
|
7397
|
-
},
|
|
7397
|
+
}, A.onMouseLeave = (D) => {
|
|
7398
7398
|
if (!D.currentTarget.contains(D.target))
|
|
7399
7399
|
return;
|
|
7400
7400
|
let P = !0;
|
|
7401
7401
|
$.isPressed && !$.ignoreEmulatedMouseEvents && $.pointerType != null && ($.isOverTarget = !1, P = _(D, $.pointerType, !1), R(D)), P && D.stopPropagation();
|
|
7402
|
-
},
|
|
7402
|
+
}, A.onMouseUp = (D) => {
|
|
7403
7403
|
D.currentTarget.contains(D.target) && !$.ignoreEmulatedMouseEvents && D.button === 0 && S(D, $.pointerType || "mouse");
|
|
7404
7404
|
};
|
|
7405
7405
|
let x = (D) => {
|
|
@@ -7411,14 +7411,14 @@ function Jr(e) {
|
|
|
7411
7411
|
$.target && wr(D, $.target) && $.pointerType != null ? _(Bt($.target, D), $.pointerType) : $.target && $.isOverTarget && $.pointerType != null && _(Bt($.target, D), $.pointerType, !1), $.isOverTarget = !1;
|
|
7412
7412
|
}
|
|
7413
7413
|
};
|
|
7414
|
-
|
|
7414
|
+
A.onTouchStart = (D) => {
|
|
7415
7415
|
if (!D.currentTarget.contains(D.target))
|
|
7416
7416
|
return;
|
|
7417
7417
|
let P = v3(D.nativeEvent);
|
|
7418
7418
|
if (!P)
|
|
7419
7419
|
return;
|
|
7420
7420
|
$.activePointerId = P.identifier, $.ignoreEmulatedMouseEvents = !0, $.isOverTarget = !0, $.isPressed = !0, $.target = D.currentTarget, $.pointerType = "touch", !i && !s && Ct(D.currentTarget), d || Ep($.target), v(D, $.pointerType) && D.stopPropagation(), m($t(D.currentTarget), "scroll", F, !0);
|
|
7421
|
-
},
|
|
7421
|
+
}, A.onTouchMove = (D) => {
|
|
7422
7422
|
if (!D.currentTarget.contains(D.target))
|
|
7423
7423
|
return;
|
|
7424
7424
|
if (!$.isPressed) {
|
|
@@ -7427,7 +7427,7 @@ function Jr(e) {
|
|
|
7427
7427
|
}
|
|
7428
7428
|
let P = Tp(D.nativeEvent, $.activePointerId), j = !0;
|
|
7429
7429
|
P && wr(P, D.currentTarget) ? !$.isOverTarget && $.pointerType != null && ($.isOverTarget = !0, j = v(D, $.pointerType)) : $.isOverTarget && $.pointerType != null && ($.isOverTarget = !1, j = _(D, $.pointerType, !1), R(D)), j && D.stopPropagation();
|
|
7430
|
-
},
|
|
7430
|
+
}, A.onTouchEnd = (D) => {
|
|
7431
7431
|
if (!D.currentTarget.contains(D.target))
|
|
7432
7432
|
return;
|
|
7433
7433
|
if (!$.isPressed) {
|
|
@@ -7436,7 +7436,7 @@ function Jr(e) {
|
|
|
7436
7436
|
}
|
|
7437
7437
|
let P = Tp(D.nativeEvent, $.activePointerId), j = !0;
|
|
7438
7438
|
P && wr(P, D.currentTarget) && $.pointerType != null ? (S(D, $.pointerType), j = _(D, $.pointerType)) : $.isOverTarget && $.pointerType != null && (j = _(D, $.pointerType, !1)), j && D.stopPropagation(), $.isPressed = !1, $.activePointerId = null, $.isOverTarget = !1, $.ignoreEmulatedMouseEvents = !0, $.target && !d && Oa($.target), y();
|
|
7439
|
-
},
|
|
7439
|
+
}, A.onTouchCancel = (D) => {
|
|
7440
7440
|
D.currentTarget.contains(D.target) && (D.stopPropagation(), $.isPressed && E(D));
|
|
7441
7441
|
};
|
|
7442
7442
|
let F = (D) => {
|
|
@@ -7448,11 +7448,11 @@ function Jr(e) {
|
|
|
7448
7448
|
altKey: !1
|
|
7449
7449
|
});
|
|
7450
7450
|
};
|
|
7451
|
-
|
|
7451
|
+
A.onDragStart = (D) => {
|
|
7452
7452
|
D.currentTarget.contains(D.target) && E(D);
|
|
7453
7453
|
};
|
|
7454
7454
|
}
|
|
7455
|
-
return
|
|
7455
|
+
return A;
|
|
7456
7456
|
}, [
|
|
7457
7457
|
m,
|
|
7458
7458
|
i,
|
|
@@ -9477,8 +9477,8 @@ const vs = "rovingFocusGroup.onEntryFocus", NT = {
|
|
|
9477
9477
|
onFocus: oe(e.onFocus, (C) => {
|
|
9478
9478
|
const $ = !S.current;
|
|
9479
9479
|
if (C.target === C.currentTarget && $ && !m) {
|
|
9480
|
-
const
|
|
9481
|
-
if (C.currentTarget.dispatchEvent(
|
|
9480
|
+
const A = new CustomEvent(vs, NT);
|
|
9481
|
+
if (C.currentTarget.dispatchEvent(A), !A.defaultPrevented) {
|
|
9482
9482
|
const N = _().filter(
|
|
9483
9483
|
(j) => j.focusable
|
|
9484
9484
|
), x = N.find(
|
|
@@ -12747,12 +12747,12 @@ function M4(e, t, n) {
|
|
|
12747
12747
|
d,
|
|
12748
12748
|
n
|
|
12749
12749
|
]);
|
|
12750
|
-
let
|
|
12750
|
+
let A = tr({
|
|
12751
12751
|
day: "numeric",
|
|
12752
12752
|
timeZone: t.timeZone,
|
|
12753
12753
|
calendar: r.calendar.identifier
|
|
12754
|
-
}), N = ie(() =>
|
|
12755
|
-
|
|
12754
|
+
}), N = ie(() => A.formatToParts(h).find((x) => x.type === "day").value, [
|
|
12755
|
+
A,
|
|
12756
12756
|
h
|
|
12757
12757
|
]);
|
|
12758
12758
|
return {
|
|
@@ -13293,27 +13293,27 @@ function Dv(e) {
|
|
|
13293
13293
|
return qc(v, a, r, i, l);
|
|
13294
13294
|
}
|
|
13295
13295
|
}), [R, C] = J(e.autoFocus || !1), $ = ie(() => {
|
|
13296
|
-
let
|
|
13296
|
+
let I = {
|
|
13297
13297
|
...a
|
|
13298
13298
|
};
|
|
13299
|
-
return
|
|
13299
|
+
return I.days ? I.days-- : I.days = -1, S.add(I);
|
|
13300
13300
|
}, [
|
|
13301
13301
|
S,
|
|
13302
13302
|
a
|
|
13303
|
-
]), [
|
|
13304
|
-
if (u.identifier !==
|
|
13305
|
-
let
|
|
13306
|
-
E(qc(
|
|
13303
|
+
]), [A, N] = J(u.identifier);
|
|
13304
|
+
if (u.identifier !== A) {
|
|
13305
|
+
let I = je(v, u);
|
|
13306
|
+
E(qc(I, a, r, i, l)), _(I), N(u.identifier);
|
|
13307
13307
|
}
|
|
13308
13308
|
Ur(v, i, l) ? _($n(v, i, l)) : v.compare(S) < 0 ? E(Xc(v, a, r, i, l)) : v.compare($) > 0 && E(qn(v, a, r, i, l));
|
|
13309
|
-
function x(
|
|
13310
|
-
|
|
13309
|
+
function x(I) {
|
|
13310
|
+
I = $n(I, i, l), _(I);
|
|
13311
13311
|
}
|
|
13312
|
-
function F(
|
|
13312
|
+
function F(I) {
|
|
13313
13313
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
13314
|
-
if (
|
|
13314
|
+
if (I = $n(I, i, l), I = Sv(I, S, c), !I)
|
|
13315
13315
|
return;
|
|
13316
|
-
|
|
13316
|
+
I = je(I, (p == null ? void 0 : p.calendar) || new ct()), p && "hour" in p ? g(p.set(I)) : g(I);
|
|
13317
13317
|
}
|
|
13318
13318
|
}
|
|
13319
13319
|
let D = ie(() => h ? c && c(h) ? !0 : Ur(h, i, l) : !1, [
|
|
@@ -13339,8 +13339,8 @@ function Dv(e) {
|
|
|
13339
13339
|
focusedDate: v,
|
|
13340
13340
|
timeZone: b,
|
|
13341
13341
|
validationState: P,
|
|
13342
|
-
setFocusedDate(
|
|
13343
|
-
x(
|
|
13342
|
+
setFocusedDate(I) {
|
|
13343
|
+
x(I), C(!0);
|
|
13344
13344
|
},
|
|
13345
13345
|
focusNextDay() {
|
|
13346
13346
|
x(v.add({
|
|
@@ -13363,12 +13363,12 @@ function Dv(e) {
|
|
|
13363
13363
|
}));
|
|
13364
13364
|
},
|
|
13365
13365
|
focusNextPage() {
|
|
13366
|
-
let
|
|
13367
|
-
_($n(v.add(j), i, l)), E(qn(Go(v,
|
|
13366
|
+
let I = S.add(j);
|
|
13367
|
+
_($n(v.add(j), i, l)), E(qn(Go(v, I, j, r, i, l), j, r));
|
|
13368
13368
|
},
|
|
13369
13369
|
focusPreviousPage() {
|
|
13370
|
-
let
|
|
13371
|
-
_($n(v.subtract(j), i, l)), E(qn(Go(v,
|
|
13370
|
+
let I = S.subtract(j);
|
|
13371
|
+
_($n(v.subtract(j), i, l)), E(qn(Go(v, I, j, r, i, l), j, r));
|
|
13372
13372
|
},
|
|
13373
13373
|
focusSectionStart() {
|
|
13374
13374
|
a.days ? x(S) : a.weeks ? x(jo(v, r)) : (a.months || a.years) && x(Qn(v));
|
|
@@ -13376,8 +13376,8 @@ function Dv(e) {
|
|
|
13376
13376
|
focusSectionEnd() {
|
|
13377
13377
|
a.days ? x($) : a.weeks ? x(bk(v, r)) : (a.months || a.years) && x(wi(v));
|
|
13378
13378
|
},
|
|
13379
|
-
focusNextSection(
|
|
13380
|
-
if (!
|
|
13379
|
+
focusNextSection(I) {
|
|
13380
|
+
if (!I && !a.days) {
|
|
13381
13381
|
x(v.add(Ts(a)));
|
|
13382
13382
|
return;
|
|
13383
13383
|
}
|
|
@@ -13387,8 +13387,8 @@ function Dv(e) {
|
|
|
13387
13387
|
years: 1
|
|
13388
13388
|
}));
|
|
13389
13389
|
},
|
|
13390
|
-
focusPreviousSection(
|
|
13391
|
-
if (!
|
|
13390
|
+
focusPreviousSection(I) {
|
|
13391
|
+
if (!I && !a.days) {
|
|
13392
13392
|
x(v.subtract(Ts(a)));
|
|
13393
13393
|
return;
|
|
13394
13394
|
}
|
|
@@ -13401,41 +13401,41 @@ function Dv(e) {
|
|
|
13401
13401
|
selectFocusedDate() {
|
|
13402
13402
|
F(v);
|
|
13403
13403
|
},
|
|
13404
|
-
selectDate(
|
|
13405
|
-
F(
|
|
13404
|
+
selectDate(I) {
|
|
13405
|
+
F(I);
|
|
13406
13406
|
},
|
|
13407
13407
|
isFocused: R,
|
|
13408
13408
|
setFocused: C,
|
|
13409
|
-
isInvalid(
|
|
13410
|
-
return Ur(
|
|
13409
|
+
isInvalid(I) {
|
|
13410
|
+
return Ur(I, i, l);
|
|
13411
13411
|
},
|
|
13412
|
-
isSelected(
|
|
13413
|
-
return h != null && ze(
|
|
13412
|
+
isSelected(I) {
|
|
13413
|
+
return h != null && ze(I, h) && !this.isCellDisabled(I) && !this.isCellUnavailable(I);
|
|
13414
13414
|
},
|
|
13415
|
-
isCellFocused(
|
|
13416
|
-
return R && v && ze(
|
|
13415
|
+
isCellFocused(I) {
|
|
13416
|
+
return R && v && ze(I, v);
|
|
13417
13417
|
},
|
|
13418
|
-
isCellDisabled(
|
|
13419
|
-
return e.isDisabled ||
|
|
13418
|
+
isCellDisabled(I) {
|
|
13419
|
+
return e.isDisabled || I.compare(S) < 0 || I.compare($) > 0 || this.isInvalid(I, i, l);
|
|
13420
13420
|
},
|
|
13421
|
-
isCellUnavailable(
|
|
13422
|
-
return e.isDateUnavailable && e.isDateUnavailable(
|
|
13421
|
+
isCellUnavailable(I) {
|
|
13422
|
+
return e.isDateUnavailable && e.isDateUnavailable(I);
|
|
13423
13423
|
},
|
|
13424
13424
|
isPreviousVisibleRangeInvalid() {
|
|
13425
|
-
let
|
|
13425
|
+
let I = S.subtract({
|
|
13426
13426
|
days: 1
|
|
13427
13427
|
});
|
|
13428
|
-
return ze(
|
|
13428
|
+
return ze(I, S) || this.isInvalid(I, i, l);
|
|
13429
13429
|
},
|
|
13430
13430
|
isNextVisibleRangeInvalid() {
|
|
13431
|
-
let
|
|
13431
|
+
let I = $.add({
|
|
13432
13432
|
days: 1
|
|
13433
13433
|
});
|
|
13434
|
-
return ze(
|
|
13434
|
+
return ze(I, $) || this.isInvalid(I, i, l);
|
|
13435
13435
|
},
|
|
13436
|
-
getDatesInWeek(
|
|
13436
|
+
getDatesInWeek(I, Q = S) {
|
|
13437
13437
|
let W = Q.add({
|
|
13438
|
-
weeks:
|
|
13438
|
+
weeks: I
|
|
13439
13439
|
}), q = [];
|
|
13440
13440
|
W = jo(W, r);
|
|
13441
13441
|
let z = yl(W, r);
|
|
@@ -13489,21 +13489,21 @@ function q4(e) {
|
|
|
13489
13489
|
minValue: v,
|
|
13490
13490
|
maxValue: _,
|
|
13491
13491
|
selectionAlignment: h
|
|
13492
|
-
}), E = (
|
|
13493
|
-
|
|
13494
|
-
start: cg(
|
|
13495
|
-
end: cg(
|
|
13492
|
+
}), E = (I) => {
|
|
13493
|
+
I && e.isDateUnavailable && !e.allowsNonContiguousRanges ? (b.current = {
|
|
13494
|
+
start: cg(I, S, -1),
|
|
13495
|
+
end: cg(I, S, 1)
|
|
13496
13496
|
}, y(b.current)) : (b.current = null, y(null));
|
|
13497
13497
|
}, [R, C] = J(S.visibleRange);
|
|
13498
13498
|
(!Fc(S.visibleRange.start, R.start) || !Fc(S.visibleRange.end, R.end)) && (E(p), C(S.visibleRange));
|
|
13499
|
-
let $ = (
|
|
13500
|
-
|
|
13501
|
-
},
|
|
13502
|
-
if (!e.isReadOnly && (
|
|
13499
|
+
let $ = (I) => {
|
|
13500
|
+
I ? (g(I), E(I)) : (g(null), E(null));
|
|
13501
|
+
}, A = p ? ks(p, S.focusedDate) : d && ks(d.start, d.end), N = (I) => {
|
|
13502
|
+
if (!e.isReadOnly && (I = $n(I, v, _), I = Sv(I, S.visibleRange.start, e.isDateUnavailable), !!I))
|
|
13503
13503
|
if (!p)
|
|
13504
|
-
$(
|
|
13504
|
+
$(I);
|
|
13505
13505
|
else {
|
|
13506
|
-
let Q = ks(p,
|
|
13506
|
+
let Q = ks(p, I);
|
|
13507
13507
|
u({
|
|
13508
13508
|
start: sg(Q.start, d == null ? void 0 : d.start),
|
|
13509
13509
|
end: sg(Q.end, d == null ? void 0 : d.end)
|
|
@@ -13522,21 +13522,21 @@ function q4(e) {
|
|
|
13522
13522
|
setValue: u,
|
|
13523
13523
|
anchorDate: p,
|
|
13524
13524
|
setAnchorDate: $,
|
|
13525
|
-
highlightedRange:
|
|
13525
|
+
highlightedRange: A,
|
|
13526
13526
|
validationState: j,
|
|
13527
13527
|
selectFocusedDate() {
|
|
13528
13528
|
N(S.focusedDate);
|
|
13529
13529
|
},
|
|
13530
13530
|
selectDate: N,
|
|
13531
|
-
highlightDate(
|
|
13532
|
-
p && S.setFocusedDate(
|
|
13531
|
+
highlightDate(I) {
|
|
13532
|
+
p && S.setFocusedDate(I);
|
|
13533
13533
|
},
|
|
13534
|
-
isSelected(
|
|
13535
|
-
return
|
|
13534
|
+
isSelected(I) {
|
|
13535
|
+
return A && I.compare(A.start) >= 0 && I.compare(A.end) <= 0 && !S.isCellDisabled(I) && !S.isCellUnavailable(I);
|
|
13536
13536
|
},
|
|
13537
|
-
isInvalid(
|
|
13537
|
+
isInvalid(I) {
|
|
13538
13538
|
var Q, W;
|
|
13539
|
-
return S.isInvalid(
|
|
13539
|
+
return S.isInvalid(I) || Ur(I, (Q = b.current) === null || Q === void 0 ? void 0 : Q.start, (W = b.current) === null || W === void 0 ? void 0 : W.end);
|
|
13540
13540
|
},
|
|
13541
13541
|
isDragging: x,
|
|
13542
13542
|
setDragging: F
|
|
@@ -14294,7 +14294,7 @@ const gg = (e) => ({ name: "arrow", options: e, async fn(t) {
|
|
|
14294
14294
|
const d = Av(c), u = { x: n, y: r }, p = cr(o), g = zu(p), h = await i.getDimensions(s), b = p === "y", m = b ? "top" : "left", y = b ? "bottom" : "right", v = b ? "clientHeight" : "clientWidth", _ = a.reference[g] + a.reference[p] - u[p] - a.floating[g], S = u[p] - a.reference[p], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s));
|
|
14295
14295
|
let R = E ? E[v] : 0;
|
|
14296
14296
|
R && await (i.isElement == null ? void 0 : i.isElement(E)) || (R = l.floating[v] || a.floating[g]);
|
|
14297
|
-
const C = _ / 2 - S / 2, $ = R / 2 - h[g] / 2 - 1,
|
|
14297
|
+
const C = _ / 2 - S / 2, $ = R / 2 - h[g] / 2 - 1, A = qo(d[m], $), N = qo(d[y], $), x = A, F = R - h[g] - N, D = R / 2 - h[g] / 2 + C, P = Qc(x, D, F), j = io(o) != null && D != P && a.reference[g] / 2 - (D < x ? A : N) - h[g] / 2 < 0 ? D < x ? x - D : F - D : 0;
|
|
14298
14298
|
return { [p]: u[p] - j, data: { [p]: P, centerOffset: D - P + j } };
|
|
14299
14299
|
} }), Iv = ["top", "right", "bottom", "left"];
|
|
14300
14300
|
Iv.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []);
|
|
@@ -14321,7 +14321,7 @@ const wC = function(e) {
|
|
|
14321
14321
|
}(i));
|
|
14322
14322
|
u || g === "none" || _.push(...function(x, F, D, P) {
|
|
14323
14323
|
const j = io(x);
|
|
14324
|
-
let
|
|
14324
|
+
let I = function(Q, W, q) {
|
|
14325
14325
|
const z = ["left", "right"], V = ["right", "left"], ne = ["top", "bottom"], H = ["bottom", "top"];
|
|
14326
14326
|
switch (Q) {
|
|
14327
14327
|
case "top":
|
|
@@ -14334,7 +14334,7 @@ const wC = function(e) {
|
|
|
14334
14334
|
return [];
|
|
14335
14335
|
}
|
|
14336
14336
|
}(Jt(x), D === "start", P);
|
|
14337
|
-
return j && (
|
|
14337
|
+
return j && (I = I.map((Q) => Q + "-" + j), F && (I = I.concat(I.map(Rs)))), I;
|
|
14338
14338
|
}(i, h, g, v));
|
|
14339
14339
|
const S = [i, ..._], E = await Yo(t, b), R = [];
|
|
14340
14340
|
let C = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
@@ -14343,16 +14343,16 @@ const wC = function(e) {
|
|
|
14343
14343
|
R.push(E[x], E[F]);
|
|
14344
14344
|
}
|
|
14345
14345
|
if (C = [...C, { placement: r, overflows: R }], !R.every((x) => x <= 0)) {
|
|
14346
|
-
var $,
|
|
14346
|
+
var $, A;
|
|
14347
14347
|
const x = ((($ = o.flip) == null ? void 0 : $.index) || 0) + 1, F = S[x];
|
|
14348
14348
|
if (F)
|
|
14349
14349
|
return { data: { index: x, overflows: C }, reset: { placement: F } };
|
|
14350
|
-
let D = (
|
|
14350
|
+
let D = (A = C.filter((P) => P.overflows[0] <= 0).sort((P, j) => P.overflows[1] - j.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
14351
14351
|
if (!D)
|
|
14352
14352
|
switch (p) {
|
|
14353
14353
|
case "bestFit": {
|
|
14354
14354
|
var N;
|
|
14355
|
-
const P = (N = C.map((j) => [j.placement, j.overflows.filter((
|
|
14355
|
+
const P = (N = C.map((j) => [j.placement, j.overflows.filter((I) => I > 0).reduce((I, Q) => I + Q, 0)]).sort((j, I) => j[1] - I[1])[0]) == null ? void 0 : N[0];
|
|
14356
14356
|
P && (D = P);
|
|
14357
14357
|
break;
|
|
14358
14358
|
}
|
|
@@ -14450,8 +14450,8 @@ const EC = function(e) {
|
|
|
14450
14450
|
_ = d || v ? qo(m, R) : R;
|
|
14451
14451
|
}
|
|
14452
14452
|
if (v && !d) {
|
|
14453
|
-
const R = jn(s.left, 0), C = jn(s.right, 0), $ = jn(s.top, 0),
|
|
14454
|
-
u ? S = p - 2 * (R !== 0 || C !== 0 ? R + C : jn(s.left, s.right)) : _ = g - 2 * ($ !== 0 ||
|
|
14453
|
+
const R = jn(s.left, 0), C = jn(s.right, 0), $ = jn(s.top, 0), A = jn(s.bottom, 0);
|
|
14454
|
+
u ? S = p - 2 * (R !== 0 || C !== 0 ? R + C : jn(s.left, s.right)) : _ = g - 2 * ($ !== 0 || A !== 0 ? $ + A : jn(s.top, s.bottom));
|
|
14455
14455
|
}
|
|
14456
14456
|
await i({ ...t, availableWidth: S, availableHeight: _ });
|
|
14457
14457
|
const E = await o.getDimensions(a.floating);
|
|
@@ -14688,13 +14688,13 @@ function IC(e, t, n, r) {
|
|
|
14688
14688
|
}
|
|
14689
14689
|
return function R(C, $) {
|
|
14690
14690
|
C === void 0 && (C = !1), $ === void 0 && ($ = 1), E();
|
|
14691
|
-
const { left:
|
|
14691
|
+
const { left: A, top: N, width: x, height: F } = m.getBoundingClientRect();
|
|
14692
14692
|
if (C || y(), !x || !F)
|
|
14693
14693
|
return;
|
|
14694
|
-
const D = { rootMargin: -Ba(N) + "px " + -Ba(S.clientWidth - (
|
|
14694
|
+
const D = { rootMargin: -Ba(N) + "px " + -Ba(S.clientWidth - (A + x)) + "px " + -Ba(S.clientHeight - (N + F)) + "px " + -Ba(A) + "px", threshold: Wr(0, td(1, $)) || 1 };
|
|
14695
14695
|
let P = !0;
|
|
14696
|
-
function j(
|
|
14697
|
-
const Q =
|
|
14696
|
+
function j(I) {
|
|
14697
|
+
const Q = I[0].intersectionRatio;
|
|
14698
14698
|
if (Q !== $) {
|
|
14699
14699
|
if (!P)
|
|
14700
14700
|
return R();
|
|
@@ -14822,19 +14822,19 @@ function FC(e) {
|
|
|
14822
14822
|
isPositioned: !1
|
|
14823
14823
|
}), [p, g] = G.useState(r);
|
|
14824
14824
|
zi(p, r) || g(r);
|
|
14825
|
-
const [h, b] = G.useState(null), [m, y] = G.useState(null), v = G.useCallback((
|
|
14826
|
-
|
|
14827
|
-
}, [b]), _ = G.useCallback((
|
|
14828
|
-
|
|
14829
|
-
}, [y]), S = a || h, E = i || m, R = G.useRef(null), C = G.useRef(null), $ = G.useRef(d),
|
|
14825
|
+
const [h, b] = G.useState(null), [m, y] = G.useState(null), v = G.useCallback((I) => {
|
|
14826
|
+
I != R.current && (R.current = I, b(I));
|
|
14827
|
+
}, [b]), _ = G.useCallback((I) => {
|
|
14828
|
+
I !== C.current && (C.current = I, y(I));
|
|
14829
|
+
}, [y]), S = a || h, E = i || m, R = G.useRef(null), C = G.useRef(null), $ = G.useRef(d), A = xg(s), N = xg(o), x = G.useCallback(() => {
|
|
14830
14830
|
if (!R.current || !C.current)
|
|
14831
14831
|
return;
|
|
14832
|
-
const
|
|
14832
|
+
const I = {
|
|
14833
14833
|
placement: t,
|
|
14834
14834
|
strategy: n,
|
|
14835
14835
|
middleware: p
|
|
14836
14836
|
};
|
|
14837
|
-
N.current && (
|
|
14837
|
+
N.current && (I.platform = N.current), OC(R.current, C.current, I).then((Q) => {
|
|
14838
14838
|
const W = {
|
|
14839
14839
|
...Q,
|
|
14840
14840
|
isPositioned: !0
|
|
@@ -14845,8 +14845,8 @@ function FC(e) {
|
|
|
14845
14845
|
});
|
|
14846
14846
|
}, [p, t, n, N]);
|
|
14847
14847
|
ai(() => {
|
|
14848
|
-
c === !1 && $.current.isPositioned && ($.current.isPositioned = !1, u((
|
|
14849
|
-
...
|
|
14848
|
+
c === !1 && $.current.isPositioned && ($.current.isPositioned = !1, u((I) => ({
|
|
14849
|
+
...I,
|
|
14850
14850
|
isPositioned: !1
|
|
14851
14851
|
})));
|
|
14852
14852
|
}, [c]);
|
|
@@ -14855,11 +14855,11 @@ function FC(e) {
|
|
|
14855
14855
|
F.current = !1;
|
|
14856
14856
|
}), []), ai(() => {
|
|
14857
14857
|
if (S && (R.current = S), E && (C.current = E), S && E) {
|
|
14858
|
-
if (
|
|
14859
|
-
return
|
|
14858
|
+
if (A.current)
|
|
14859
|
+
return A.current(S, E, x);
|
|
14860
14860
|
x();
|
|
14861
14861
|
}
|
|
14862
|
-
}, [S, E, x,
|
|
14862
|
+
}, [S, E, x, A]);
|
|
14863
14863
|
const D = G.useMemo(() => ({
|
|
14864
14864
|
reference: R,
|
|
14865
14865
|
floating: C,
|
|
@@ -14869,16 +14869,16 @@ function FC(e) {
|
|
|
14869
14869
|
reference: S,
|
|
14870
14870
|
floating: E
|
|
14871
14871
|
}), [S, E]), j = G.useMemo(() => {
|
|
14872
|
-
const
|
|
14872
|
+
const I = {
|
|
14873
14873
|
position: n,
|
|
14874
14874
|
left: 0,
|
|
14875
14875
|
top: 0
|
|
14876
14876
|
};
|
|
14877
14877
|
if (!P.floating)
|
|
14878
|
-
return
|
|
14878
|
+
return I;
|
|
14879
14879
|
const Q = _g(P.floating, d.x), W = _g(P.floating, d.y);
|
|
14880
14880
|
return l ? {
|
|
14881
|
-
...
|
|
14881
|
+
...I,
|
|
14882
14882
|
transform: "translate(" + Q + "px, " + W + "px)",
|
|
14883
14883
|
...Vv(P.floating) >= 1.5 && {
|
|
14884
14884
|
willChange: "transform"
|
|
@@ -14957,10 +14957,10 @@ const Bv = "Popper", [jv, lo] = We(Bv), [NC, Uv] = jv(Bv), KC = (e) => {
|
|
|
14957
14957
|
}));
|
|
14958
14958
|
}), Wv = "PopperContent", [jC, UC] = jv(Wv), WC = /* @__PURE__ */ B((e, t) => {
|
|
14959
14959
|
var n, r, o, a, i, l, s, c;
|
|
14960
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: m = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: _ = !1, avoidCollisions: S = !0, onPlaced: E, ...R } = e, C = Uv(Wv, d), [$,
|
|
14960
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: m = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: _ = !1, avoidCollisions: S = !0, onPlaced: E, ...R } = e, C = Uv(Wv, d), [$, A] = J(null), N = De(
|
|
14961
14961
|
t,
|
|
14962
|
-
(ke) =>
|
|
14963
|
-
), [x, F] = J(null), D = Vu(x), P = (n = D == null ? void 0 : D.width) !== null && n !== void 0 ? n : 0, j = (r = D == null ? void 0 : D.height) !== null && r !== void 0 ? r : 0,
|
|
14962
|
+
(ke) => A(ke)
|
|
14963
|
+
), [x, F] = J(null), D = Vu(x), P = (n = D == null ? void 0 : D.width) !== null && n !== void 0 ? n : 0, j = (r = D == null ? void 0 : D.height) !== null && r !== void 0 ? r : 0, I = u + (g !== "center" ? "-" + g : ""), Q = typeof y == "number" ? y : {
|
|
14964
14964
|
top: 0,
|
|
14965
14965
|
right: 0,
|
|
14966
14966
|
bottom: 0,
|
|
@@ -14976,7 +14976,7 @@ const Bv = "Popper", [jv, lo] = We(Bv), [NC, Uv] = jv(Bv), KC = (e) => {
|
|
|
14976
14976
|
}, { refs: V, floatingStyles: ne, placement: H, isPositioned: Z, middlewareData: de } = FC({
|
|
14977
14977
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
14978
14978
|
strategy: "fixed",
|
|
14979
|
-
placement:
|
|
14979
|
+
placement: I,
|
|
14980
14980
|
whileElementsMounted: IC,
|
|
14981
14981
|
elements: {
|
|
14982
14982
|
reference: C.anchor
|
|
@@ -15817,13 +15817,13 @@ function W8(e, t, n, r, o, a, i, l, s, c, d, u, p, g, h) {
|
|
|
15817
15817
|
}
|
|
15818
15818
|
let $ = Pg(y, E[y], n[v], l, a);
|
|
15819
15819
|
E[y] += $;
|
|
15820
|
-
let
|
|
15821
|
-
p && p <
|
|
15820
|
+
let A = U8(E, l, s, t, o, a);
|
|
15821
|
+
p && p < A && (A = p), n.height = Math.min(n.height, A), E = As(t, l, n, b, R, d, s, u, g, h), $ = Pg(y, E[y], n[v], l, a), E[y] += $;
|
|
15822
15822
|
let N = {}, x = t[y] + 0.5 * t[v] - n[y];
|
|
15823
|
-
const F = g / 2 + h, D = n[v] - g / 2 - h, P = t[y] - n[y] + g / 2, j = t[y] + t[v] - n[y] - g / 2,
|
|
15824
|
-
return N[y] = ui(
|
|
15823
|
+
const F = g / 2 + h, D = n[v] - g / 2 - h, P = t[y] - n[y] + g / 2, j = t[y] + t[v] - n[y] - g / 2, I = ui(x, P, j);
|
|
15824
|
+
return N[y] = ui(I, F, D), {
|
|
15825
15825
|
position: E,
|
|
15826
|
-
maxHeight:
|
|
15826
|
+
maxHeight: A,
|
|
15827
15827
|
arrowOffsetLeft: N.left,
|
|
15828
15828
|
arrowOffsetTop: N.top,
|
|
15829
15829
|
placement: b.placement
|
|
@@ -16490,7 +16490,7 @@ function M$(e) {
|
|
|
16490
16490
|
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: a = !1, disallowEmptySelection: i = !1, disallowSelectAll: l = !1, selectOnFocus: s = t.selectionBehavior === "replace", disallowTypeAhead: c = !1, shouldUseVirtualFocus: d, allowsTabNavigation: u = !1, isVirtualized: p, scrollRef: g = r } = e, { direction: h } = dt(), b = ($) => {
|
|
16491
16491
|
if ($.altKey && $.key === "Tab" && $.preventDefault(), !r.current.contains($.target))
|
|
16492
16492
|
return;
|
|
16493
|
-
const
|
|
16493
|
+
const A = (W, q) => {
|
|
16494
16494
|
W != null && (t.setFocusedKey(W, q), $.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(W) : s && !O$($) && t.replaceSelection(W));
|
|
16495
16495
|
};
|
|
16496
16496
|
switch ($.key) {
|
|
@@ -16499,7 +16499,7 @@ function M$(e) {
|
|
|
16499
16499
|
var N, x;
|
|
16500
16500
|
$.preventDefault();
|
|
16501
16501
|
let W = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (N = n.getFirstKey) === null || N === void 0 ? void 0 : N.call(n);
|
|
16502
|
-
W == null && a && (W = (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n, t.focusedKey)),
|
|
16502
|
+
W == null && a && (W = (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n, t.focusedKey)), A(W);
|
|
16503
16503
|
}
|
|
16504
16504
|
break;
|
|
16505
16505
|
case "ArrowUp":
|
|
@@ -16507,7 +16507,7 @@ function M$(e) {
|
|
|
16507
16507
|
var F, D;
|
|
16508
16508
|
$.preventDefault();
|
|
16509
16509
|
let W = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n);
|
|
16510
|
-
W == null && a && (W = (D = n.getLastKey) === null || D === void 0 ? void 0 : D.call(n, t.focusedKey)),
|
|
16510
|
+
W == null && a && (W = (D = n.getLastKey) === null || D === void 0 ? void 0 : D.call(n, t.focusedKey)), A(W);
|
|
16511
16511
|
}
|
|
16512
16512
|
break;
|
|
16513
16513
|
case "ArrowLeft":
|
|
@@ -16515,15 +16515,15 @@ function M$(e) {
|
|
|
16515
16515
|
var P, j;
|
|
16516
16516
|
$.preventDefault();
|
|
16517
16517
|
let W = n.getKeyLeftOf(t.focusedKey);
|
|
16518
|
-
W == null && a && (W = h === "rtl" ? (P = n.getFirstKey) === null || P === void 0 ? void 0 : P.call(n, t.focusedKey) : (j = n.getLastKey) === null || j === void 0 ? void 0 : j.call(n, t.focusedKey)),
|
|
16518
|
+
W == null && a && (W = h === "rtl" ? (P = n.getFirstKey) === null || P === void 0 ? void 0 : P.call(n, t.focusedKey) : (j = n.getLastKey) === null || j === void 0 ? void 0 : j.call(n, t.focusedKey)), A(W, h === "rtl" ? "first" : "last");
|
|
16519
16519
|
}
|
|
16520
16520
|
break;
|
|
16521
16521
|
case "ArrowRight":
|
|
16522
16522
|
if (n.getKeyRightOf) {
|
|
16523
|
-
var
|
|
16523
|
+
var I, Q;
|
|
16524
16524
|
$.preventDefault();
|
|
16525
16525
|
let W = n.getKeyRightOf(t.focusedKey);
|
|
16526
|
-
W == null && a && (W = h === "rtl" ? (
|
|
16526
|
+
W == null && a && (W = h === "rtl" ? (I = n.getLastKey) === null || I === void 0 ? void 0 : I.call(n, t.focusedKey) : (Q = n.getFirstKey) === null || Q === void 0 ? void 0 : Q.call(n, t.focusedKey)), A(W, h === "rtl" ? "last" : "first");
|
|
16527
16527
|
}
|
|
16528
16528
|
break;
|
|
16529
16529
|
case "Home":
|
|
@@ -16544,14 +16544,14 @@ function M$(e) {
|
|
|
16544
16544
|
if (n.getKeyPageBelow) {
|
|
16545
16545
|
$.preventDefault();
|
|
16546
16546
|
let W = n.getKeyPageBelow(t.focusedKey);
|
|
16547
|
-
|
|
16547
|
+
A(W);
|
|
16548
16548
|
}
|
|
16549
16549
|
break;
|
|
16550
16550
|
case "PageUp":
|
|
16551
16551
|
if (n.getKeyPageAbove) {
|
|
16552
16552
|
$.preventDefault();
|
|
16553
16553
|
let W = n.getKeyPageAbove(t.focusedKey);
|
|
16554
|
-
|
|
16554
|
+
A(W);
|
|
16555
16555
|
}
|
|
16556
16556
|
break;
|
|
16557
16557
|
case "a":
|
|
@@ -16596,8 +16596,8 @@ function M$(e) {
|
|
|
16596
16596
|
let x = (D) => {
|
|
16597
16597
|
D != null && (t.setFocusedKey(D), s && t.replaceSelection(D));
|
|
16598
16598
|
}, F = $.relatedTarget;
|
|
16599
|
-
var
|
|
16600
|
-
F && $.currentTarget.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? x((
|
|
16599
|
+
var A, N;
|
|
16600
|
+
F && $.currentTarget.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? x((A = t.lastSelectedKey) !== null && A !== void 0 ? A : n.getLastKey()) : x((N = t.firstSelectedKey) !== null && N !== void 0 ? N : n.getFirstKey());
|
|
16601
16601
|
} else
|
|
16602
16602
|
p || (g.current.scrollTop = m.current.top, g.current.scrollLeft = m.current.left);
|
|
16603
16603
|
if (!p && t.focusedKey != null) {
|
|
@@ -16615,8 +16615,8 @@ function M$(e) {
|
|
|
16615
16615
|
if (_.current) {
|
|
16616
16616
|
let $ = null;
|
|
16617
16617
|
o === "first" && ($ = n.getFirstKey()), o === "last" && ($ = n.getLastKey());
|
|
16618
|
-
let
|
|
16619
|
-
|
|
16618
|
+
let A = t.selectedKeys;
|
|
16619
|
+
A.size && ($ = A.values().next().value), t.setFocused(!0), t.setFocusedKey($), $ == null && !d && Vo(r.current);
|
|
16620
16620
|
}
|
|
16621
16621
|
_.current = !1;
|
|
16622
16622
|
}, []);
|
|
@@ -16624,8 +16624,8 @@ function M$(e) {
|
|
|
16624
16624
|
Y(() => {
|
|
16625
16625
|
let $ = vi();
|
|
16626
16626
|
if (t.isFocused && t.focusedKey != null && (g != null && g.current)) {
|
|
16627
|
-
let
|
|
16628
|
-
|
|
16627
|
+
let A = g.current.querySelector(`[data-key="${t.focusedKey}"]`);
|
|
16628
|
+
A && $ === "keyboard" && (p || Am(g.current, A), Tc(A, {
|
|
16629
16629
|
containingElement: r.current
|
|
16630
16630
|
}));
|
|
16631
16631
|
}
|
|
@@ -16705,14 +16705,14 @@ function l9(e) {
|
|
|
16705
16705
|
}), u["data-key"] = n, E.preventFocusOnPress = a;
|
|
16706
16706
|
let { pressProps: R, isPressed: C } = Jr(E), $ = b ? (x) => {
|
|
16707
16707
|
y.current === "mouse" && (x.stopPropagation(), x.preventDefault(), s());
|
|
16708
|
-
} : void 0, { longPressProps:
|
|
16708
|
+
} : void 0, { longPressProps: A } = jm({
|
|
16709
16709
|
isDisabled: !v,
|
|
16710
16710
|
onLongPress(x) {
|
|
16711
16711
|
x.pointerType === "touch" && (d(x), t.setSelectionBehavior("toggle"));
|
|
16712
16712
|
}
|
|
16713
16713
|
});
|
|
16714
16714
|
return {
|
|
16715
|
-
itemProps: ye(u, p || h ? R : {}, v ?
|
|
16715
|
+
itemProps: ye(u, p || h ? R : {}, v ? A : {}, {
|
|
16716
16716
|
onDoubleClick: $,
|
|
16717
16717
|
onDragStartCapture: (x) => {
|
|
16718
16718
|
y.current === "touch" && _.current && x.preventDefault();
|
|
@@ -17242,7 +17242,7 @@ function V$(e, t, n) {
|
|
|
17242
17242
|
let x = Number((S = t.collection.getItem(r)) === null || S === void 0 ? void 0 : S.index);
|
|
17243
17243
|
_["aria-posinset"] = Number.isNaN(x) ? void 0 : x + 1, _["aria-setsize"] = z$(t.collection);
|
|
17244
17244
|
}
|
|
17245
|
-
let { itemProps: E, isPressed: R, isFocused: C, hasAction: $, allowsSelection:
|
|
17245
|
+
let { itemProps: E, isPressed: R, isFocused: C, hasAction: $, allowsSelection: A } = l9({
|
|
17246
17246
|
selectionManager: t.selectionManager,
|
|
17247
17247
|
key: r,
|
|
17248
17248
|
ref: n,
|
|
@@ -17278,7 +17278,7 @@ function V$(e, t, n) {
|
|
|
17278
17278
|
isSelected: s,
|
|
17279
17279
|
isDisabled: i,
|
|
17280
17280
|
isPressed: R,
|
|
17281
|
-
allowsSelection:
|
|
17281
|
+
allowsSelection: A,
|
|
17282
17282
|
hasAction: $
|
|
17283
17283
|
};
|
|
17284
17284
|
}
|
|
@@ -18407,7 +18407,7 @@ function y9(e, t) {
|
|
|
18407
18407
|
id: u.id,
|
|
18408
18408
|
"aria-label": d.format("buttonLabel"),
|
|
18409
18409
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
18410
|
-
}),
|
|
18410
|
+
}), A = Xr({
|
|
18411
18411
|
id: p.id,
|
|
18412
18412
|
"aria-label": d.format("listboxLabel"),
|
|
18413
18413
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
@@ -18424,10 +18424,10 @@ function y9(e, t) {
|
|
|
18424
18424
|
var D;
|
|
18425
18425
|
let P = (D = F == null ? void 0 : F.parentKey) !== null && D !== void 0 ? D : null;
|
|
18426
18426
|
var j;
|
|
18427
|
-
let
|
|
18427
|
+
let I = (j = t.selectionManager.focusedKey) !== null && j !== void 0 ? j : null, Q = K(P), W = K(I);
|
|
18428
18428
|
Y(() => {
|
|
18429
|
-
if (ei() && F != null &&
|
|
18430
|
-
let H = t.selectionManager.isSelected(
|
|
18429
|
+
if (ei() && F != null && I !== W.current) {
|
|
18430
|
+
let H = t.selectionManager.isSelected(I), Z = P != null ? t.collection.getItem(P) : null, de = (Z == null ? void 0 : Z["aria-label"]) || (typeof (Z == null ? void 0 : Z.rendered) == "string" ? Z.rendered : "") || "", le = d.format("focusAnnouncement", {
|
|
18431
18431
|
isGroupChange: Z && P !== Q.current,
|
|
18432
18432
|
groupTitle: de,
|
|
18433
18433
|
groupCount: Z ? [
|
|
@@ -18438,7 +18438,7 @@ function y9(e, t) {
|
|
|
18438
18438
|
});
|
|
18439
18439
|
jr(le);
|
|
18440
18440
|
}
|
|
18441
|
-
Q.current = P, W.current =
|
|
18441
|
+
Q.current = P, W.current = I;
|
|
18442
18442
|
});
|
|
18443
18443
|
let q = z$(t.collection), z = K(q), V = K(t.isOpen);
|
|
18444
18444
|
Y(() => {
|
|
@@ -18493,7 +18493,7 @@ function y9(e, t) {
|
|
|
18493
18493
|
// This disable's the macOS Safari spell check auto corrections.
|
|
18494
18494
|
spellCheck: "false"
|
|
18495
18495
|
}),
|
|
18496
|
-
listBoxProps: ye(p,
|
|
18496
|
+
listBoxProps: ye(p, A, {
|
|
18497
18497
|
autoFocus: t.focusStrategy,
|
|
18498
18498
|
shouldUseVirtualFocus: !0,
|
|
18499
18499
|
shouldSelectOnPressUp: !0,
|
|
@@ -19005,7 +19005,7 @@ function S9(e) {
|
|
|
19005
19005
|
let { defaultFilter: n, menuTrigger: r = "input", allowsEmptyCollection: o = !1, allowsCustomValue: a, shouldCloseOnBlur: i = !0 } = e, [l, s] = J(!1), [c, d] = J(!1);
|
|
19006
19006
|
var u;
|
|
19007
19007
|
let [p, g] = It(e.inputValue, (u = e.defaultInputValue) !== null && u !== void 0 ? u : "", e.onInputChange), h = (fe) => {
|
|
19008
|
-
e.onSelectionChange && e.onSelectionChange(fe), fe === v && (W(),
|
|
19008
|
+
e.onSelectionChange && e.onSelectionChange(fe), fe === v && (W(), I());
|
|
19009
19009
|
};
|
|
19010
19010
|
var b;
|
|
19011
19011
|
let { collection: m, selectionManager: y, selectedKey: v, setSelectedKey: _, selectedItem: S, disabledKeys: E } = a_({
|
|
@@ -19020,7 +19020,7 @@ function S9(e) {
|
|
|
19020
19020
|
p,
|
|
19021
19021
|
n,
|
|
19022
19022
|
e.items
|
|
19023
|
-
]), [$,
|
|
19023
|
+
]), [$, A] = J(C), N = K("focus"), F = i_({
|
|
19024
19024
|
...e,
|
|
19025
19025
|
onOpenChange: (fe) => {
|
|
19026
19026
|
e.onOpenChange && e.onOpenChange(fe, fe ? N.current : void 0), y.setFocused(fe), fe || y.setFocusedKey(null);
|
|
@@ -19034,12 +19034,12 @@ function S9(e) {
|
|
|
19034
19034
|
let ke = ve === "manual" || ve === "focus" && r === "focus";
|
|
19035
19035
|
!(o || C.size > 0 || ke && R.size > 0 || e.items) && !F.isOpen || (ke && !F.isOpen && e.items === void 0 && s(!0), F.isOpen || (N.current = ve), j(fe));
|
|
19036
19036
|
}, j = te((fe) => {
|
|
19037
|
-
F.isOpen &&
|
|
19037
|
+
F.isOpen && A(C), F.toggle(fe);
|
|
19038
19038
|
}, [
|
|
19039
19039
|
F,
|
|
19040
19040
|
C
|
|
19041
|
-
]),
|
|
19042
|
-
F.isOpen && (
|
|
19041
|
+
]), I = te(() => {
|
|
19042
|
+
F.isOpen && (A(C), F.close());
|
|
19043
19043
|
}, [
|
|
19044
19044
|
F,
|
|
19045
19045
|
C
|
|
@@ -19054,7 +19054,7 @@ function S9(e) {
|
|
|
19054
19054
|
let Z = K((H = (t = m.getItem(v)) === null || t === void 0 ? void 0 : t.textValue) !== null && H !== void 0 ? H : "");
|
|
19055
19055
|
Y(() => {
|
|
19056
19056
|
var fe;
|
|
19057
|
-
c && (C.size > 0 || o) && !F.isOpen && p !== Q.current && r !== "manual" && D(null, "input"), !l && !o && F.isOpen && C.size === 0 &&
|
|
19057
|
+
c && (C.size > 0 || o) && !F.isOpen && p !== Q.current && r !== "manual" && D(null, "input"), !l && !o && F.isOpen && C.size === 0 && I(), v != null && v !== ne.current && I(), p !== Q.current && (y.setFocusedKey(null), s(!1), p === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && _(null)), q.current && e.inputValue === void 0 && e.defaultInputValue === void 0 && W(), v !== ne.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : Q.current = p;
|
|
19058
19058
|
var ve;
|
|
19059
19059
|
let ke = (ve = (fe = m.getItem(v)) === null || fe === void 0 ? void 0 : fe.textValue) !== null && ve !== void 0 ? ve : "";
|
|
19060
19060
|
!c && v != null && e.inputValue === void 0 && v === ne.current && Z.current !== ke && (Q.current = ke, g(ke)), q.current = !1, ne.current = v, Z.current = ke;
|
|
@@ -19062,22 +19062,22 @@ function S9(e) {
|
|
|
19062
19062
|
let de = () => {
|
|
19063
19063
|
a && v == null ? le() : se();
|
|
19064
19064
|
}, le = () => {
|
|
19065
|
-
ne.current = null, _(null),
|
|
19065
|
+
ne.current = null, _(null), I();
|
|
19066
19066
|
}, se = () => {
|
|
19067
19067
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
19068
19068
|
var fe;
|
|
19069
19069
|
e.onSelectionChange(v);
|
|
19070
19070
|
var ve;
|
|
19071
19071
|
let ke = (ve = (fe = m.getItem(v)) === null || fe === void 0 ? void 0 : fe.textValue) !== null && ve !== void 0 ? ve : "";
|
|
19072
|
-
Q.current = ke,
|
|
19072
|
+
Q.current = ke, I();
|
|
19073
19073
|
} else
|
|
19074
|
-
W(),
|
|
19074
|
+
W(), I();
|
|
19075
19075
|
}, ue = () => {
|
|
19076
19076
|
F.isOpen && y.focusedKey != null ? v === y.focusedKey ? se() : _(y.focusedKey) : a ? le() : se();
|
|
19077
19077
|
}, ce = () => {
|
|
19078
19078
|
var fe, ve;
|
|
19079
19079
|
let ke = (ve = (fe = m.getItem(v)) === null || fe === void 0 ? void 0 : fe.textValue) !== null && ve !== void 0 ? ve : "";
|
|
19080
|
-
a && p !== ke ? le() : se(),
|
|
19080
|
+
a && p !== ke ? le() : se(), I();
|
|
19081
19081
|
}, pe = (fe) => {
|
|
19082
19082
|
fe ? r === "focus" && D(null, "focus") : i && ce(), d(fe);
|
|
19083
19083
|
}, Ee = ie(() => F.isOpen ? l ? R : C : $, [
|
|
@@ -19890,11 +19890,11 @@ const U9 = b_, Ug = M(Se)`
|
|
|
19890
19890
|
});
|
|
19891
19891
|
}, [r]);
|
|
19892
19892
|
function E(C) {
|
|
19893
|
-
var
|
|
19893
|
+
var A;
|
|
19894
19894
|
if (!a)
|
|
19895
19895
|
return;
|
|
19896
19896
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
19897
|
-
!((
|
|
19897
|
+
!((A = S.current) != null && A.contains(C.target)) && c && s();
|
|
19898
19898
|
}
|
|
19899
19899
|
function R(C) {
|
|
19900
19900
|
o && c && Zh("escape", s)(C);
|
|
@@ -20158,7 +20158,7 @@ const id = [
|
|
|
20158
20158
|
onDismiss: () => n.onOpenChange(!1)
|
|
20159
20159
|
}));
|
|
20160
20160
|
}), sf = /* @__PURE__ */ B((e, t) => {
|
|
20161
|
-
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: l, onEntryFocus: s, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: g, disableOutsideScroll: h, ...b } = e, m = zn(xt, n), y = ya(xt, n), v = $a(n), _ = $_(n), S = tR(n), [E, R] = J(null), C = K(null), $ = De(t, C, m.onContentChange),
|
|
20161
|
+
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: l, onEntryFocus: s, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: g, disableOutsideScroll: h, ...b } = e, m = zn(xt, n), y = ya(xt, n), v = $a(n), _ = $_(n), S = tR(n), [E, R] = J(null), C = K(null), $ = De(t, C, m.onContentChange), A = K(0), N = K(""), x = K(0), F = K(null), D = K("right"), P = K(0), j = h ? Gd : ro, I = h ? {
|
|
20162
20162
|
as: Jn,
|
|
20163
20163
|
allowPinchZoom: !0
|
|
20164
20164
|
} : void 0, Q = (q) => {
|
|
@@ -20173,7 +20173,7 @@ const id = [
|
|
|
20173
20173
|
(ce) => ce.textValue === se
|
|
20174
20174
|
)) === null || V === void 0 ? void 0 : V.ref.current;
|
|
20175
20175
|
(function ce(pe) {
|
|
20176
|
-
N.current = pe, window.clearTimeout(
|
|
20176
|
+
N.current = pe, window.clearTimeout(A.current), pe !== "" && (A.current = window.setTimeout(
|
|
20177
20177
|
() => ce(""),
|
|
20178
20178
|
1e3
|
|
20179
20179
|
));
|
|
@@ -20181,7 +20181,7 @@ const id = [
|
|
|
20181
20181
|
() => ue.focus()
|
|
20182
20182
|
);
|
|
20183
20183
|
};
|
|
20184
|
-
Y(() => () => window.clearTimeout(
|
|
20184
|
+
Y(() => () => window.clearTimeout(A.current), []), Wd();
|
|
20185
20185
|
const W = te((q) => {
|
|
20186
20186
|
var z, V;
|
|
20187
20187
|
return D.current === ((z = F.current) === null || z === void 0 ? void 0 : z.side) && AR(q, (V = F.current) === null || V === void 0 ? void 0 : V.area);
|
|
@@ -20209,7 +20209,7 @@ const id = [
|
|
|
20209
20209
|
onPointerGraceIntentChange: te((q) => {
|
|
20210
20210
|
F.current = q;
|
|
20211
20211
|
}, [])
|
|
20212
|
-
}, /* @__PURE__ */ k(j,
|
|
20212
|
+
}, /* @__PURE__ */ k(j, I, /* @__PURE__ */ k(Ud, {
|
|
20213
20213
|
asChild: !0,
|
|
20214
20214
|
trapped: o,
|
|
20215
20215
|
onMountAutoFocus: oe(a, (q) => {
|
|
@@ -20263,7 +20263,7 @@ const id = [
|
|
|
20263
20263
|
m_.includes(q.key) && le.reverse(), TR(le);
|
|
20264
20264
|
}),
|
|
20265
20265
|
onBlur: oe(e.onBlur, (q) => {
|
|
20266
|
-
q.currentTarget.contains(q.target) || (window.clearTimeout(
|
|
20266
|
+
q.currentTarget.contains(q.target) || (window.clearTimeout(A.current), N.current = "");
|
|
20267
20267
|
}),
|
|
20268
20268
|
onPointerMove: oe(e.onPointerMove, Qo((q) => {
|
|
20269
20269
|
const z = q.target, V = P.current !== q.clientX;
|
|
@@ -23303,7 +23303,7 @@ function PI(e) {
|
|
|
23303
23303
|
});
|
|
23304
23304
|
let $ = (x) => {
|
|
23305
23305
|
x.preventDefault();
|
|
23306
|
-
}, { addGlobalListener:
|
|
23306
|
+
}, { addGlobalListener: A, removeAllGlobalListeners: N } = gu();
|
|
23307
23307
|
return {
|
|
23308
23308
|
spinButtonProps: {
|
|
23309
23309
|
role: "spinbutton",
|
|
@@ -23320,7 +23320,7 @@ function PI(e) {
|
|
|
23320
23320
|
},
|
|
23321
23321
|
incrementButtonProps: {
|
|
23322
23322
|
onPressStart: () => {
|
|
23323
|
-
R(400),
|
|
23323
|
+
R(400), A(window, "contextmenu", $);
|
|
23324
23324
|
},
|
|
23325
23325
|
onPressEnd: () => {
|
|
23326
23326
|
m(), N();
|
|
@@ -23330,7 +23330,7 @@ function PI(e) {
|
|
|
23330
23330
|
},
|
|
23331
23331
|
decrementButtonProps: {
|
|
23332
23332
|
onPressStart: () => {
|
|
23333
|
-
C(400),
|
|
23333
|
+
C(400), A(window, "contextmenu", $);
|
|
23334
23334
|
},
|
|
23335
23335
|
onPressEnd: () => {
|
|
23336
23336
|
m(), N();
|
|
@@ -23585,9 +23585,9 @@ cx = {
|
|
|
23585
23585
|
};
|
|
23586
23586
|
function kI(e, t, n) {
|
|
23587
23587
|
let { id: r, decrementAriaLabel: o, incrementAriaLabel: a, isDisabled: i, isReadOnly: l, isRequired: s, minValue: c, maxValue: d, autoFocus: u, validationState: p, label: g, formatOptions: h, onBlur: b = () => {
|
|
23588
|
-
}, onFocus: m, onFocusChange: y, onKeyDown: v, onKeyUp: _, description: S, errorMessage: E, ...R } = e, { increment: C, incrementToMax: $, decrement:
|
|
23588
|
+
}, onFocus: m, onFocusChange: y, onKeyDown: v, onKeyUp: _, description: S, errorMessage: E, ...R } = e, { increment: C, incrementToMax: $, decrement: A, decrementToMin: N, numberValue: x, inputValue: F, commit: D } = t;
|
|
23589
23589
|
const P = Dt(/* @__PURE__ */ TI(cx));
|
|
23590
|
-
let j = bt(r), { focusProps:
|
|
23590
|
+
let j = bt(r), { focusProps: I } = mu({
|
|
23591
23591
|
onBlur: () => {
|
|
23592
23592
|
D();
|
|
23593
23593
|
}
|
|
@@ -23607,7 +23607,7 @@ function kI(e, t, n) {
|
|
|
23607
23607
|
minValue: c,
|
|
23608
23608
|
onIncrement: C,
|
|
23609
23609
|
onIncrementToMax: $,
|
|
23610
|
-
onDecrement:
|
|
23610
|
+
onDecrement: A,
|
|
23611
23611
|
onDecrementToMin: N,
|
|
23612
23612
|
value: x,
|
|
23613
23613
|
textValue: z
|
|
@@ -23615,9 +23615,9 @@ function kI(e, t, n) {
|
|
|
23615
23615
|
isDisabled: i,
|
|
23616
23616
|
onFocusWithinChange: de
|
|
23617
23617
|
}), se = te((at) => {
|
|
23618
|
-
Math.abs(at.deltaY) <= Math.abs(at.deltaX) || (at.deltaY > 0 ? C() : at.deltaY < 0 &&
|
|
23618
|
+
Math.abs(at.deltaY) <= Math.abs(at.deltaX) || (at.deltaY > 0 ? C() : at.deltaY < 0 && A());
|
|
23619
23619
|
}, [
|
|
23620
|
-
|
|
23620
|
+
A,
|
|
23621
23621
|
C
|
|
23622
23622
|
]);
|
|
23623
23623
|
I3({
|
|
@@ -23653,7 +23653,7 @@ function kI(e, t, n) {
|
|
|
23653
23653
|
onKeyUp: _,
|
|
23654
23654
|
description: S,
|
|
23655
23655
|
errorMessage: E
|
|
23656
|
-
}, t, n), gr = ye(V,
|
|
23656
|
+
}, t, n), gr = ye(V, I, gn, {
|
|
23657
23657
|
// override the spinbutton role, we can't focus a spin button with VO
|
|
23658
23658
|
role: null,
|
|
23659
23659
|
// ignore aria-roledescription on iOS so that required state will announce when it is present
|
|
@@ -23728,8 +23728,8 @@ function CI(e) {
|
|
|
23728
23728
|
y
|
|
23729
23729
|
]), S = isNaN(r) ? 1 : r;
|
|
23730
23730
|
v.style === "percent" && isNaN(r) && (S = 0.01);
|
|
23731
|
-
let [E, R] = J(u), [C, $] = J(s), [
|
|
23732
|
-
(!Object.is(u, E) || s !== C || o !==
|
|
23731
|
+
let [E, R] = J(u), [C, $] = J(s), [A, N] = J(o);
|
|
23732
|
+
(!Object.is(u, E) || s !== C || o !== A) && (h(_(u)), R(u), $(s), N(o));
|
|
23733
23733
|
let x = ie(() => b.parse(g), [
|
|
23734
23734
|
b,
|
|
23735
23735
|
g
|
|
@@ -23759,7 +23759,7 @@ function CI(e) {
|
|
|
23759
23759
|
}, j = () => {
|
|
23760
23760
|
let V = D("-", n);
|
|
23761
23761
|
V === u && h(_(V)), p(V);
|
|
23762
|
-
},
|
|
23762
|
+
}, I = () => {
|
|
23763
23763
|
n != null && p(Kn(n, t, n, S));
|
|
23764
23764
|
}, Q = () => {
|
|
23765
23765
|
t != null && p(t);
|
|
@@ -23781,7 +23781,7 @@ function CI(e) {
|
|
|
23781
23781
|
return {
|
|
23782
23782
|
validate: (V) => b.isValidPartialNumber(V, t, n),
|
|
23783
23783
|
increment: P,
|
|
23784
|
-
incrementToMax:
|
|
23784
|
+
incrementToMax: I,
|
|
23785
23785
|
decrement: j,
|
|
23786
23786
|
decrementToMin: Q,
|
|
23787
23787
|
canIncrement: W,
|
|
@@ -23949,7 +23949,7 @@ const Hx = B(
|
|
|
23949
23949
|
groupProps: R,
|
|
23950
23950
|
inputProps: C,
|
|
23951
23951
|
incrementButtonProps: $,
|
|
23952
|
-
decrementButtonProps:
|
|
23952
|
+
decrementButtonProps: A,
|
|
23953
23953
|
descriptionProps: N,
|
|
23954
23954
|
errorMessageProps: x
|
|
23955
23955
|
} = kI(
|
|
@@ -24006,7 +24006,7 @@ const Hx = B(
|
|
|
24006
24006
|
}
|
|
24007
24007
|
),
|
|
24008
24008
|
/* @__PURE__ */ w(II, { ...$, children: /* @__PURE__ */ w(C5, {}) }),
|
|
24009
|
-
/* @__PURE__ */ w(OI, { ...
|
|
24009
|
+
/* @__PURE__ */ w(OI, { ...A, children: /* @__PURE__ */ w(R5, {}) })
|
|
24010
24010
|
]
|
|
24011
24011
|
}
|
|
24012
24012
|
) : /* @__PURE__ */ w(
|
|
@@ -24104,7 +24104,7 @@ const Yx = B(
|
|
|
24104
24104
|
fontSize: _,
|
|
24105
24105
|
lineHeight: S,
|
|
24106
24106
|
...E
|
|
24107
|
-
} = r, R = Mn(t), C = fn(), $ = u ?? C, { labelProps:
|
|
24107
|
+
} = r, R = Mn(t), C = fn(), $ = u ?? C, { labelProps: A, descriptionProps: N, inputProps: x, errorMessageProps: F } = ba(
|
|
24108
24108
|
{
|
|
24109
24109
|
...E,
|
|
24110
24110
|
isDisabled: $,
|
|
@@ -24115,10 +24115,10 @@ const Yx = B(
|
|
|
24115
24115
|
R
|
|
24116
24116
|
);
|
|
24117
24117
|
let D = null;
|
|
24118
|
-
return typeof b == "string" ? D = /* @__PURE__ */ ee(Ze, { ...
|
|
24118
|
+
return typeof b == "string" ? D = /* @__PURE__ */ ee(Ze, { ...A, mb: f.spacing_100, children: [
|
|
24119
24119
|
b,
|
|
24120
24120
|
r.tooltipContent ? /* @__PURE__ */ w(Et, { children: r.tooltipContent }) : null
|
|
24121
|
-
] }) : en(b) && (D = or(b, { ...
|
|
24121
|
+
] }) : en(b) && (D = or(b, { ...A, mb: f.spacing_100 })), Y(() => {
|
|
24122
24122
|
o && R.current && R.current.focus();
|
|
24123
24123
|
}, [o, R]), /* @__PURE__ */ ee(pn, { "data-id": "input-wrapper", children: [
|
|
24124
24124
|
D,
|
|
@@ -24333,10 +24333,10 @@ const Qg = (e, t, n, r = []) => {
|
|
|
24333
24333
|
});
|
|
24334
24334
|
},
|
|
24335
24335
|
[r, i, R, n]
|
|
24336
|
-
),
|
|
24337
|
-
|
|
24336
|
+
), A = K(s);
|
|
24337
|
+
A.current = s, Y(() => {
|
|
24338
24338
|
const F = () => {
|
|
24339
|
-
R(),
|
|
24339
|
+
R(), A.current();
|
|
24340
24340
|
};
|
|
24341
24341
|
return document.addEventListener(
|
|
24342
24342
|
"mousedown",
|
|
@@ -24536,12 +24536,12 @@ function nV({
|
|
|
24536
24536
|
S(P);
|
|
24537
24537
|
}
|
|
24538
24538
|
}, [u.value, $, g, C.isOpen]);
|
|
24539
|
-
const
|
|
24539
|
+
const A = te(
|
|
24540
24540
|
(D) => {
|
|
24541
|
-
var
|
|
24542
|
-
const P = R.current, j = (
|
|
24541
|
+
var I;
|
|
24542
|
+
const P = R.current, j = (I = P == null ? void 0 : P.getElementsByClassName(
|
|
24543
24543
|
`${D}`
|
|
24544
|
-
)) == null ? void 0 :
|
|
24544
|
+
)) == null ? void 0 : I[0];
|
|
24545
24545
|
if (P && j) {
|
|
24546
24546
|
const Q = P.getBoundingClientRect().top + P.scrollTop, q = j.getBoundingClientRect().top + P.scrollTop - Q + P.scrollTop;
|
|
24547
24547
|
P.scrollTo({
|
|
@@ -24552,7 +24552,11 @@ function nV({
|
|
|
24552
24552
|
}
|
|
24553
24553
|
},
|
|
24554
24554
|
[R]
|
|
24555
|
-
)
|
|
24555
|
+
);
|
|
24556
|
+
Y(() => {
|
|
24557
|
+
C.isOpen && A(_);
|
|
24558
|
+
}, [_, C.isOpen, A]);
|
|
24559
|
+
const { overlayProps: N } = Gu(
|
|
24556
24560
|
{ type: "dialog" },
|
|
24557
24561
|
C,
|
|
24558
24562
|
E
|
|
@@ -24566,23 +24570,23 @@ function nV({
|
|
|
24566
24570
|
const x = te(
|
|
24567
24571
|
(D) => {
|
|
24568
24572
|
const P = g == "24" ? Bs(D ?? _) : Vs(D ?? _);
|
|
24569
|
-
let j,
|
|
24573
|
+
let j, I, Q, W = "";
|
|
24570
24574
|
if (g === "12") {
|
|
24571
|
-
|
|
24575
|
+
I = "0", Q = "0";
|
|
24572
24576
|
const z = P.match(/(\d{2}):(\d{2})|PM|AM/gi);
|
|
24573
|
-
z && (W = z[1] ?? "", [j = "",
|
|
24577
|
+
z && (W = z[1] ?? "", [j = "", I = "", Q = ""] = z[0].split(/(\d{2}):(\d{2})/), W.replace(" ", "") === "AM" && I === "12" && (I = "0"), W.replace(" ", "") === "PM" && I !== "12" && (I = (parseInt(I) + 12).toString()));
|
|
24574
24578
|
} else
|
|
24575
|
-
[
|
|
24579
|
+
[I = "0", Q = "0"] = P.split(":");
|
|
24576
24580
|
S(P);
|
|
24577
|
-
const q = new Iu(parseInt(
|
|
24581
|
+
const q = new Iu(parseInt(I), parseInt(Q));
|
|
24578
24582
|
s == null || s(q), C.close();
|
|
24579
24583
|
},
|
|
24580
24584
|
[s, g, _, C]
|
|
24581
24585
|
), F = te(
|
|
24582
24586
|
(D) => {
|
|
24583
|
-
S(D.target.value),
|
|
24587
|
+
S(D.target.value), A(D.target.value), C.isOpen || C.open();
|
|
24584
24588
|
},
|
|
24585
|
-
[C,
|
|
24589
|
+
[C, A]
|
|
24586
24590
|
);
|
|
24587
24591
|
return /* @__PURE__ */ ee(pn, { ref: E, children: [
|
|
24588
24592
|
e ? /* @__PURE__ */ ee(
|
|
@@ -24621,7 +24625,7 @@ function nV({
|
|
|
24621
24625
|
onKeyDown: (D) => {
|
|
24622
24626
|
D.key === "Enter" && C.isOpen && D.preventDefault();
|
|
24623
24627
|
const P = m.findIndex((j) => j === _);
|
|
24624
|
-
D.key === "ArrowDown" && m[P + 1] ? (C.isOpen || C.open(), S(m[P + 1] ?? _),
|
|
24628
|
+
D.key === "ArrowDown" && m[P + 1] ? (C.isOpen || C.open(), S(m[P + 1] ?? _), A(m[P + 1] ?? "")) : D.key === "ArrowUp" && m[P - 1] && (C.isOpen || C.open(), S(m[P - 1] ?? _), A(m[P - 1] ?? ""));
|
|
24625
24629
|
},
|
|
24626
24630
|
onKeyUp: (D) => {
|
|
24627
24631
|
D.key === "Enter" && x(_);
|
|
@@ -24767,7 +24771,7 @@ function rV({
|
|
|
24767
24771
|
)
|
|
24768
24772
|
));
|
|
24769
24773
|
}, [c.value, $]);
|
|
24770
|
-
const
|
|
24774
|
+
const A = te(
|
|
24771
24775
|
(F) => {
|
|
24772
24776
|
const D = F ?? E;
|
|
24773
24777
|
D && (S(D), R(D), v(
|
|
@@ -24794,7 +24798,7 @@ function rV({
|
|
|
24794
24798
|
(F) => {
|
|
24795
24799
|
v(F.target.value), h.isOpen || h.open();
|
|
24796
24800
|
const P = F.target.value.replace(",", "").split(" ");
|
|
24797
|
-
let j,
|
|
24801
|
+
let j, I, Q;
|
|
24798
24802
|
for (const q of P) {
|
|
24799
24803
|
if (q.match(/[a-zA-Z]+/)) {
|
|
24800
24804
|
const z = N(q);
|
|
@@ -24803,7 +24807,7 @@ function rV({
|
|
|
24803
24807
|
if (q.match(/^[0-9]+$/)) {
|
|
24804
24808
|
if (q.length === 1 || q.length === 2) {
|
|
24805
24809
|
const z = parseInt(q, 10);
|
|
24806
|
-
z >= 1 && z <= 31 && (
|
|
24810
|
+
z >= 1 && z <= 31 && (I = z);
|
|
24807
24811
|
}
|
|
24808
24812
|
if (q.length === 4) {
|
|
24809
24813
|
const z = parseInt(q, 10);
|
|
@@ -24814,7 +24818,7 @@ function rV({
|
|
|
24814
24818
|
const W = new Fe(
|
|
24815
24819
|
Q ?? (/* @__PURE__ */ new Date()).getFullYear(),
|
|
24816
24820
|
js.findIndex((q) => q === j) + 1,
|
|
24817
|
-
|
|
24821
|
+
I ?? 1
|
|
24818
24822
|
);
|
|
24819
24823
|
S(W), R(W);
|
|
24820
24824
|
},
|
|
@@ -24852,13 +24856,13 @@ function rV({
|
|
|
24852
24856
|
F.target.select(), h.open();
|
|
24853
24857
|
},
|
|
24854
24858
|
onBlur: (F) => {
|
|
24855
|
-
g.current && F.relatedTarget && g.current.contains(F.relatedTarget) ||
|
|
24859
|
+
g.current && F.relatedTarget && g.current.contains(F.relatedTarget) || A();
|
|
24856
24860
|
},
|
|
24857
24861
|
onKeyDown: (F) => {
|
|
24858
24862
|
F.key === "Enter" && h.isOpen && F.preventDefault(), h.isOpen || h.open();
|
|
24859
24863
|
},
|
|
24860
24864
|
onKeyUp: (F) => {
|
|
24861
|
-
F.key === "Enter" &&
|
|
24865
|
+
F.key === "Enter" && A();
|
|
24862
24866
|
},
|
|
24863
24867
|
onMouseUp: (F) => {
|
|
24864
24868
|
F.preventDefault();
|
|
@@ -24897,7 +24901,7 @@ function rV({
|
|
|
24897
24901
|
focusedValue: E,
|
|
24898
24902
|
onChange: (F) => {
|
|
24899
24903
|
const D = new Fe(F.year, F.month, F.day);
|
|
24900
|
-
|
|
24904
|
+
A(D);
|
|
24901
24905
|
},
|
|
24902
24906
|
onPrev: () => {
|
|
24903
24907
|
const F = XI(E);
|
|
@@ -25404,9 +25408,9 @@ const uO = M.span`
|
|
|
25404
25408
|
), { buttonProps: C } = ao(
|
|
25405
25409
|
{ ..._, autoFocus: r, excludeFromTabOrder: a, isDisabled: l },
|
|
25406
25410
|
b
|
|
25407
|
-
), $ = y.selectionManager.isSelectAll, [
|
|
25411
|
+
), $ = y.selectionManager.isSelectAll, [A, N] = L.useState(!1), x = () => y.selectionManager.toggleSelectAll(), F = () => y.selectionManager.setFocusedKey(null), D = (P, j = !1, I) => {
|
|
25408
25412
|
var Q;
|
|
25409
|
-
return /* @__PURE__ */ w(sn, { children: j &&
|
|
25413
|
+
return /* @__PURE__ */ w(sn, { children: j && I ? /* @__PURE__ */ w(fs, { variant: "chip", size: "small", children: I }) : P.length > 1 ? P.map((W) => /* @__PURE__ */ w(
|
|
25410
25414
|
fs,
|
|
25411
25415
|
{
|
|
25412
25416
|
variant: "chip",
|
|
@@ -25477,8 +25481,8 @@ const uO = M.span`
|
|
|
25477
25481
|
N(!0), F();
|
|
25478
25482
|
},
|
|
25479
25483
|
onMouseOut: () => N(!1),
|
|
25480
|
-
isFocused:
|
|
25481
|
-
tabIndex:
|
|
25484
|
+
isFocused: A,
|
|
25485
|
+
tabIndex: A ? 0 : -1,
|
|
25482
25486
|
onClick: x,
|
|
25483
25487
|
"aria-label": "Select All",
|
|
25484
25488
|
children: [
|
|
@@ -28534,20 +28538,20 @@ function IL(e) {
|
|
|
28534
28538
|
dark: sc[700]
|
|
28535
28539
|
} : u, g = e.type, h = g === void 0 ? "light" : g, b = e.contrastThreshold, m = b === void 0 ? 3 : b, y = e.tonalOffset, v = y === void 0 ? 0.2 : y, _ = Mt(e, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
28536
28540
|
function S($) {
|
|
28537
|
-
var
|
|
28541
|
+
var A = $h($, cc.text.primary) >= m ? cc.text.primary : _h.text.primary;
|
|
28538
28542
|
if (process.env.NODE_ENV !== "production") {
|
|
28539
|
-
var N = $h($,
|
|
28540
|
-
N < 3 && console.error(["Material-UI: The contrast ratio of ".concat(N, ":1 for ").concat(
|
|
28543
|
+
var N = $h($, A);
|
|
28544
|
+
N < 3 && console.error(["Material-UI: The contrast ratio of ".concat(N, ":1 for ").concat(A, " on ").concat($), "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
28541
28545
|
`));
|
|
28542
28546
|
}
|
|
28543
|
-
return
|
|
28547
|
+
return A;
|
|
28544
28548
|
}
|
|
28545
|
-
var E = function(
|
|
28549
|
+
var E = function(A) {
|
|
28546
28550
|
var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500, x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300, F = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
|
28547
|
-
if (
|
|
28551
|
+
if (A = O({}, A), !A.main && A[N] && (A.main = A[N]), !A.main)
|
|
28548
28552
|
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(N, "` property.") : ji(4, N));
|
|
28549
|
-
if (typeof
|
|
28550
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(
|
|
28553
|
+
if (typeof A.main != "string")
|
|
28554
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(A.main), `\` was provided instead.
|
|
28551
28555
|
|
|
28552
28556
|
Did you intend to use one of the following approaches?
|
|
28553
28557
|
|
|
@@ -28559,8 +28563,8 @@ const theme1 = createTheme({ palette: {
|
|
|
28559
28563
|
|
|
28560
28564
|
const theme2 = createTheme({ palette: {
|
|
28561
28565
|
primary: { main: green[500] },
|
|
28562
|
-
} });`) : ji(5, JSON.stringify(
|
|
28563
|
-
return xh(
|
|
28566
|
+
} });`) : ji(5, JSON.stringify(A.main)));
|
|
28567
|
+
return xh(A, "light", x, v), xh(A, "dark", F, v), A.contrastText || (A.contrastText = S(A.main)), A;
|
|
28564
28568
|
}, R = {
|
|
28565
28569
|
dark: cc,
|
|
28566
28570
|
light: _h
|
|
@@ -28615,10 +28619,10 @@ function ML(e, t) {
|
|
|
28615
28619
|
process.env.NODE_ENV !== "production" && (typeof i != "number" && console.error("Material-UI: `fontSize` is required to be a number."), typeof m != "number" && console.error("Material-UI: `htmlFontSize` is required to be a number."));
|
|
28616
28620
|
var S = i / 14, E = v || function($) {
|
|
28617
28621
|
return "".concat($ / m * S, "rem");
|
|
28618
|
-
}, R = function(
|
|
28622
|
+
}, R = function(A, N, x, F, D) {
|
|
28619
28623
|
return O({
|
|
28620
28624
|
fontFamily: o,
|
|
28621
|
-
fontWeight:
|
|
28625
|
+
fontWeight: A,
|
|
28622
28626
|
fontSize: E(N),
|
|
28623
28627
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
28624
28628
|
lineHeight: x
|
|
@@ -28791,9 +28795,9 @@ function JL() {
|
|
|
28791
28795
|
var v = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], _ = function S(E, R) {
|
|
28792
28796
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, $;
|
|
28793
28797
|
for ($ in E) {
|
|
28794
|
-
var
|
|
28795
|
-
C === 1 ? $.indexOf("Mui") === 0 &&
|
|
28796
|
-
root: Lr({}, "&$".concat($),
|
|
28798
|
+
var A = E[$];
|
|
28799
|
+
C === 1 ? $.indexOf("Mui") === 0 && A && S(A, $, C + 1) : v.indexOf($) !== -1 && Object.keys(A).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(R, "` component increases ") + "the CSS specificity of the `".concat($, "` internal state."), "You can not override it like this: ", JSON.stringify(E, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
28800
|
+
root: Lr({}, "&$".concat($), A)
|
|
28797
28801
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
|
|
28798
28802
|
`)), E[$] = {});
|
|
28799
28803
|
}
|
|
@@ -30046,14 +30050,14 @@ const $N = "ToastViewport", yN = [
|
|
|
30046
30050
|
const y = (v) => {
|
|
30047
30051
|
const _ = v.altKey || v.ctrlKey || v.metaKey;
|
|
30048
30052
|
if (v.key === "Tab" && !_) {
|
|
30049
|
-
const $ = document.activeElement,
|
|
30050
|
-
if (v.target === m &&
|
|
30053
|
+
const $ = document.activeElement, A = v.shiftKey;
|
|
30054
|
+
if (v.target === m && A) {
|
|
30051
30055
|
var E;
|
|
30052
30056
|
(E = c.current) === null || E === void 0 || E.focus();
|
|
30053
30057
|
return;
|
|
30054
30058
|
}
|
|
30055
30059
|
const F = b({
|
|
30056
|
-
tabbingDirection:
|
|
30060
|
+
tabbingDirection: A ? "backwards" : "forwards"
|
|
30057
30061
|
}), D = F.findIndex(
|
|
30058
30062
|
(P) => P === $
|
|
30059
30063
|
);
|
|
@@ -30061,7 +30065,7 @@ const $N = "ToastViewport", yN = [
|
|
|
30061
30065
|
v.preventDefault();
|
|
30062
30066
|
else {
|
|
30063
30067
|
var R, C;
|
|
30064
|
-
|
|
30068
|
+
A ? (R = c.current) === null || R === void 0 || R.focus() : (C = d.current) === null || C === void 0 || C.focus();
|
|
30065
30069
|
}
|
|
30066
30070
|
}
|
|
30067
30071
|
};
|
|
@@ -30154,7 +30158,7 @@ const $N = "ToastViewport", yN = [
|
|
|
30154
30158
|
const { __scopeToast: n, type: r = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: l, onPause: s, onResume: c, onSwipeStart: d, onSwipeMove: u, onSwipeCancel: p, onSwipeEnd: g, ...h } = e, b = jl(Ul, n), [m, y] = J(null), v = De(
|
|
30155
30159
|
t,
|
|
30156
30160
|
(P) => y(P)
|
|
30157
|
-
), _ = K(null), S = K(null), E = o || b.duration, R = K(0), C = K(E), $ = K(0), { onToastAdd:
|
|
30161
|
+
), _ = K(null), S = K(null), E = o || b.duration, R = K(0), C = K(E), $ = K(0), { onToastAdd: A, onToastRemove: N } = b, x = Ye(() => {
|
|
30158
30162
|
var P;
|
|
30159
30163
|
(m == null ? void 0 : m.contains(document.activeElement)) && ((P = b.viewport) === null || P === void 0 || P.focus()), i();
|
|
30160
30164
|
}), F = te((P) => {
|
|
@@ -30167,12 +30171,12 @@ const $N = "ToastViewport", yN = [
|
|
|
30167
30171
|
if (P) {
|
|
30168
30172
|
const j = () => {
|
|
30169
30173
|
F(C.current), c == null || c();
|
|
30170
|
-
},
|
|
30174
|
+
}, I = () => {
|
|
30171
30175
|
const Q = (/* @__PURE__ */ new Date()).getTime() - R.current;
|
|
30172
30176
|
C.current = C.current - Q, window.clearTimeout($.current), s == null || s();
|
|
30173
30177
|
};
|
|
30174
|
-
return P.addEventListener(Dd,
|
|
30175
|
-
P.removeEventListener(Dd,
|
|
30178
|
+
return P.addEventListener(Dd, I), P.addEventListener(Ed, j), () => {
|
|
30179
|
+
P.removeEventListener(Dd, I), P.removeEventListener(Ed, j);
|
|
30176
30180
|
};
|
|
30177
30181
|
}
|
|
30178
30182
|
}, [
|
|
@@ -30188,8 +30192,8 @@ const $N = "ToastViewport", yN = [
|
|
|
30188
30192
|
E,
|
|
30189
30193
|
b.isClosePausedRef,
|
|
30190
30194
|
F
|
|
30191
|
-
]), Y(() => (
|
|
30192
|
-
|
|
30195
|
+
]), Y(() => (A(), () => N()), [
|
|
30196
|
+
A,
|
|
30193
30197
|
N
|
|
30194
30198
|
]);
|
|
30195
30199
|
const D = ie(() => m ? Qw(m) : null, [
|
|
@@ -30237,13 +30241,13 @@ const $N = "ToastViewport", yN = [
|
|
|
30237
30241
|
onPointerMove: oe(e.onPointerMove, (P) => {
|
|
30238
30242
|
if (!_.current)
|
|
30239
30243
|
return;
|
|
30240
|
-
const j = P.clientX - _.current.x,
|
|
30244
|
+
const j = P.clientX - _.current.x, I = P.clientY - _.current.y, Q = !!S.current, W = [
|
|
30241
30245
|
"left",
|
|
30242
30246
|
"right"
|
|
30243
30247
|
].includes(b.swipeDirection), q = [
|
|
30244
30248
|
"left",
|
|
30245
30249
|
"up"
|
|
30246
|
-
].includes(b.swipeDirection) ? Math.min : Math.max, z = W ? q(0, j) : 0, V = W ? 0 : q(0,
|
|
30250
|
+
].includes(b.swipeDirection) ? Math.min : Math.max, z = W ? q(0, j) : 0, V = W ? 0 : q(0, I), ne = P.pointerType === "touch" ? 10 : 2, H = {
|
|
30247
30251
|
x: z,
|
|
30248
30252
|
y: V
|
|
30249
30253
|
}, Z = {
|
|
@@ -30254,11 +30258,11 @@ const $N = "ToastViewport", yN = [
|
|
|
30254
30258
|
discrete: !1
|
|
30255
30259
|
})) : Fh(H, b.swipeDirection, ne) ? (S.current = H, Ja(wN, d, Z, {
|
|
30256
30260
|
discrete: !1
|
|
30257
|
-
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(j) > ne || Math.abs(
|
|
30261
|
+
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(j) > ne || Math.abs(I) > ne) && (_.current = null);
|
|
30258
30262
|
}),
|
|
30259
30263
|
onPointerUp: oe(e.onPointerUp, (P) => {
|
|
30260
|
-
const j = S.current,
|
|
30261
|
-
if (
|
|
30264
|
+
const j = S.current, I = P.target;
|
|
30265
|
+
if (I.hasPointerCapture(P.pointerId) && I.releasePointerCapture(P.pointerId), S.current = null, _.current = null, j) {
|
|
30262
30266
|
const Q = P.currentTarget, W = {
|
|
30263
30267
|
originalEvent: P,
|
|
30264
30268
|
delta: j
|