@rafal.lemieszewski/tide-ui 0.6.1 → 0.7.0
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/ui/sidebar.d.ts +6 -0
- package/dist/index.cjs.js +349 -349
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +689 -536
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -244,9 +244,9 @@ const kz = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, bz = Me, b
|
|
|
244
244
|
continue;
|
|
245
245
|
i.push(M);
|
|
246
246
|
const _ = o(b, g);
|
|
247
|
-
for (let
|
|
248
|
-
const
|
|
249
|
-
i.push(x +
|
|
247
|
+
for (let C = 0; C < _.length; ++C) {
|
|
248
|
+
const S = _[C];
|
|
249
|
+
i.push(x + S);
|
|
250
250
|
}
|
|
251
251
|
s = d + (s.length > 0 ? " " + s : s);
|
|
252
252
|
}
|
|
@@ -316,7 +316,7 @@ const st = (e) => {
|
|
|
316
316
|
"bottom-left",
|
|
317
317
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
318
318
|
"left-bottom"
|
|
319
|
-
], _ = () => [...M(), se, ce],
|
|
319
|
+
], _ = () => [...M(), se, ce], C = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], I = () => [se, ce, s], L = () => [nl, "full", "auto", ...I()], z = () => [jr, "none", "subgrid", se, ce], E = () => ["auto", {
|
|
320
320
|
span: ["full", jr, se, ce]
|
|
321
321
|
}, jr, se, ce], j = () => [jr, "auto", se, ce], N = () => ["auto", "min", "max", "fr", se, ce], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...I()], X = () => [nl, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], H = () => [e, se, ce], q = () => [...M(), _z, Mz, {
|
|
322
322
|
position: [se, ce]
|
|
@@ -470,42 +470,42 @@ const st = (e) => {
|
|
|
470
470
|
* @see https://tailwindcss.com/docs/overflow
|
|
471
471
|
*/
|
|
472
472
|
overflow: [{
|
|
473
|
-
overflow:
|
|
473
|
+
overflow: C()
|
|
474
474
|
}],
|
|
475
475
|
/**
|
|
476
476
|
* Overflow X
|
|
477
477
|
* @see https://tailwindcss.com/docs/overflow
|
|
478
478
|
*/
|
|
479
479
|
"overflow-x": [{
|
|
480
|
-
"overflow-x":
|
|
480
|
+
"overflow-x": C()
|
|
481
481
|
}],
|
|
482
482
|
/**
|
|
483
483
|
* Overflow Y
|
|
484
484
|
* @see https://tailwindcss.com/docs/overflow
|
|
485
485
|
*/
|
|
486
486
|
"overflow-y": [{
|
|
487
|
-
"overflow-y":
|
|
487
|
+
"overflow-y": C()
|
|
488
488
|
}],
|
|
489
489
|
/**
|
|
490
490
|
* Overscroll Behavior
|
|
491
491
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
492
492
|
*/
|
|
493
493
|
overscroll: [{
|
|
494
|
-
overscroll:
|
|
494
|
+
overscroll: S()
|
|
495
495
|
}],
|
|
496
496
|
/**
|
|
497
497
|
* Overscroll Behavior X
|
|
498
498
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
499
499
|
*/
|
|
500
500
|
"overscroll-x": [{
|
|
501
|
-
"overscroll-x":
|
|
501
|
+
"overscroll-x": S()
|
|
502
502
|
}],
|
|
503
503
|
/**
|
|
504
504
|
* Overscroll Behavior Y
|
|
505
505
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
506
506
|
*/
|
|
507
507
|
"overscroll-y": [{
|
|
508
|
-
"overscroll-y":
|
|
508
|
+
"overscroll-y": S()
|
|
509
509
|
}],
|
|
510
510
|
/**
|
|
511
511
|
* Position
|
|
@@ -2981,8 +2981,8 @@ function Kte() {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
|
-
var x = a, M = e, _ = c,
|
|
2985
|
-
return Oe.ContextConsumer = i, Oe.ContextProvider = x, Oe.Element = M, Oe.ForwardRef = _, Oe.Fragment =
|
|
2984
|
+
var x = a, M = e, _ = c, C = n, S = h, I = d, L = t, z = o, E = r, j = s;
|
|
2985
|
+
return Oe.ContextConsumer = i, Oe.ContextProvider = x, Oe.Element = M, Oe.ForwardRef = _, Oe.Fragment = C, Oe.Lazy = S, Oe.Memo = I, Oe.Portal = L, Oe.Profiler = z, Oe.StrictMode = E, Oe.Suspense = j, Oe.isAsyncMode = function() {
|
|
2986
2986
|
return !1;
|
|
2987
2987
|
}, Oe.isConcurrentMode = function() {
|
|
2988
2988
|
return !1;
|
|
@@ -3064,7 +3064,7 @@ function Zte() {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
|
-
var _ = i,
|
|
3067
|
+
var _ = i, C = a, S = e, I = c, L = n, z = h, E = d, j = t, N = o, P = r, Z = s, O = !1, X = !1;
|
|
3068
3068
|
function H(K) {
|
|
3069
3069
|
return O || (O = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
3070
3070
|
}
|
|
@@ -3104,7 +3104,7 @@ function Zte() {
|
|
|
3104
3104
|
function Q(K) {
|
|
3105
3105
|
return M(K) === s;
|
|
3106
3106
|
}
|
|
3107
|
-
De.ContextConsumer = _, De.ContextProvider =
|
|
3107
|
+
De.ContextConsumer = _, De.ContextProvider = C, De.Element = S, De.ForwardRef = I, De.Fragment = L, De.Lazy = z, De.Memo = E, De.Portal = j, De.Profiler = N, De.StrictMode = P, De.Suspense = Z, De.isAsyncMode = H, De.isConcurrentMode = q, De.isContextConsumer = ne, De.isContextProvider = ie, De.isElement = T, De.isForwardRef = R, De.isFragment = F, De.isLazy = V, De.isMemo = J, De.isPortal = D, De.isProfiler = Y, De.isStrictMode = U, De.isSuspense = Q, De.isValidElementType = x, De.typeOf = M;
|
|
3108
3108
|
})()), De;
|
|
3109
3109
|
}
|
|
3110
3110
|
var Ez;
|
|
@@ -4870,8 +4870,8 @@ var n$ = {}, oj;
|
|
|
4870
4870
|
function AO() {
|
|
4871
4871
|
return oj || (oj = 1, (function(e) {
|
|
4872
4872
|
Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
|
|
4873
|
-
const t = "[object RegExp]", n = "[object String]", r = "[object Number]", o = "[object Boolean]", a = "[object Arguments]", i = "[object Symbol]", c = "[object Date]", s = "[object Map]", l = "[object Set]", d = "[object Array]", h = "[object Function]", p = "[object ArrayBuffer]", f = "[object Object]", v = "[object Error]", m = "[object DataView]", g = "[object Uint8Array]", b = "[object Uint8ClampedArray]", w = "[object Uint16Array]", x = "[object Uint32Array]", M = "[object BigUint64Array]", _ = "[object Int8Array]",
|
|
4874
|
-
e.argumentsTag = a, e.arrayBufferTag = p, e.arrayTag = d, e.bigInt64ArrayTag = I, e.bigUint64ArrayTag = M, e.booleanTag = o, e.dataViewTag = m, e.dateTag = c, e.errorTag = v, e.float32ArrayTag = L, e.float64ArrayTag = z, e.functionTag = h, e.int16ArrayTag =
|
|
4873
|
+
const t = "[object RegExp]", n = "[object String]", r = "[object Number]", o = "[object Boolean]", a = "[object Arguments]", i = "[object Symbol]", c = "[object Date]", s = "[object Map]", l = "[object Set]", d = "[object Array]", h = "[object Function]", p = "[object ArrayBuffer]", f = "[object Object]", v = "[object Error]", m = "[object DataView]", g = "[object Uint8Array]", b = "[object Uint8ClampedArray]", w = "[object Uint16Array]", x = "[object Uint32Array]", M = "[object BigUint64Array]", _ = "[object Int8Array]", C = "[object Int16Array]", S = "[object Int32Array]", I = "[object BigInt64Array]", L = "[object Float32Array]", z = "[object Float64Array]";
|
|
4874
|
+
e.argumentsTag = a, e.arrayBufferTag = p, e.arrayTag = d, e.bigInt64ArrayTag = I, e.bigUint64ArrayTag = M, e.booleanTag = o, e.dataViewTag = m, e.dateTag = c, e.errorTag = v, e.float32ArrayTag = L, e.float64ArrayTag = z, e.functionTag = h, e.int16ArrayTag = C, e.int32ArrayTag = S, e.int8ArrayTag = _, e.mapTag = s, e.numberTag = r, e.objectTag = f, e.regexpTag = t, e.setTag = l, e.stringTag = n, e.symbolTag = i, e.uint16ArrayTag = w, e.uint32ArrayTag = x, e.uint8ArrayTag = g, e.uint8ClampedArrayTag = b;
|
|
4875
4875
|
})(n$)), n$;
|
|
4876
4876
|
}
|
|
4877
4877
|
var r$ = {}, aj;
|
|
@@ -5324,18 +5324,18 @@ function _re() {
|
|
|
5324
5324
|
} else m = v.current;
|
|
5325
5325
|
v = c(
|
|
5326
5326
|
function() {
|
|
5327
|
-
function b(
|
|
5327
|
+
function b(C) {
|
|
5328
5328
|
if (!w) {
|
|
5329
|
-
if (w = !0, x =
|
|
5330
|
-
var
|
|
5331
|
-
if (f(
|
|
5332
|
-
return M =
|
|
5329
|
+
if (w = !0, x = C, C = p(C), f !== void 0 && m.hasValue) {
|
|
5330
|
+
var S = m.value;
|
|
5331
|
+
if (f(S, C))
|
|
5332
|
+
return M = S;
|
|
5333
5333
|
}
|
|
5334
|
-
return M =
|
|
5334
|
+
return M = C;
|
|
5335
5335
|
}
|
|
5336
|
-
if (
|
|
5337
|
-
var I = p(
|
|
5338
|
-
return f !== void 0 && f(
|
|
5336
|
+
if (S = M, r(x, C)) return S;
|
|
5337
|
+
var I = p(C);
|
|
5338
|
+
return f !== void 0 && f(S, I) ? (x = C, S) : (x = C, M = I);
|
|
5339
5339
|
}
|
|
5340
5340
|
var w = !1, x, M, _ = h === void 0 ? null : h;
|
|
5341
5341
|
return [
|
|
@@ -5384,19 +5384,19 @@ function Cre() {
|
|
|
5384
5384
|
} else m = v.current;
|
|
5385
5385
|
v = c(
|
|
5386
5386
|
function() {
|
|
5387
|
-
function b(
|
|
5387
|
+
function b(C) {
|
|
5388
5388
|
if (!w) {
|
|
5389
|
-
if (w = !0, x =
|
|
5390
|
-
var
|
|
5391
|
-
if (f(
|
|
5392
|
-
return M =
|
|
5389
|
+
if (w = !0, x = C, C = p(C), f !== void 0 && m.hasValue) {
|
|
5390
|
+
var S = m.value;
|
|
5391
|
+
if (f(S, C))
|
|
5392
|
+
return M = S;
|
|
5393
5393
|
}
|
|
5394
|
-
return M =
|
|
5394
|
+
return M = C;
|
|
5395
5395
|
}
|
|
5396
|
-
if (
|
|
5397
|
-
return
|
|
5398
|
-
var I = p(
|
|
5399
|
-
return f !== void 0 && f(
|
|
5396
|
+
if (S = M, r(x, C))
|
|
5397
|
+
return S;
|
|
5398
|
+
var I = p(C);
|
|
5399
|
+
return f !== void 0 && f(S, I) ? (x = C, S) : (x = C, M = I);
|
|
5400
5400
|
}
|
|
5401
5401
|
var w = !1, x, M, _ = h === void 0 ? null : h;
|
|
5402
5402
|
return [
|
|
@@ -5609,15 +5609,15 @@ function Vre(e, ...t) {
|
|
|
5609
5609
|
let M = !0;
|
|
5610
5610
|
const _ = f(function() {
|
|
5611
5611
|
i++;
|
|
5612
|
-
const
|
|
5612
|
+
const S = Sj(
|
|
5613
5613
|
w,
|
|
5614
5614
|
arguments
|
|
5615
5615
|
);
|
|
5616
|
-
if (c = x.apply(null,
|
|
5616
|
+
if (c = x.apply(null, S), process.env.NODE_ENV !== "production") {
|
|
5617
5617
|
const { identityFunctionCheck: I, inputStabilityCheck: L } = zre(M, m);
|
|
5618
5618
|
if (I.shouldRun && I.run(
|
|
5619
5619
|
l,
|
|
5620
|
-
|
|
5620
|
+
S,
|
|
5621
5621
|
c
|
|
5622
5622
|
), L.shouldRun) {
|
|
5623
5623
|
const z = Sj(
|
|
@@ -5625,7 +5625,7 @@ function Vre(e, ...t) {
|
|
|
5625
5625
|
arguments
|
|
5626
5626
|
);
|
|
5627
5627
|
L.run(
|
|
5628
|
-
{ inputSelectorResults:
|
|
5628
|
+
{ inputSelectorResults: S, inputSelectorResultsCopy: z },
|
|
5629
5629
|
{ memoize: h, memoizeOptions: g },
|
|
5630
5630
|
arguments
|
|
5631
5631
|
);
|
|
@@ -7047,18 +7047,18 @@ function Voe({
|
|
|
7047
7047
|
function d() {
|
|
7048
7048
|
if (process.env.NODE_ENV !== "production" && typeof r.extraReducers == "object")
|
|
7049
7049
|
throw new Error(process.env.NODE_ENV === "production" ? Ae(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
7050
|
-
const [x = {}, M = [], _ = void 0] = typeof r.extraReducers == "function" ? BB(r.extraReducers) : [r.extraReducers],
|
|
7050
|
+
const [x = {}, M = [], _ = void 0] = typeof r.extraReducers == "function" ? BB(r.extraReducers) : [r.extraReducers], C = {
|
|
7051
7051
|
...x,
|
|
7052
7052
|
...s.sliceCaseReducersByType
|
|
7053
7053
|
};
|
|
7054
|
-
return Toe(r.initialState, (
|
|
7055
|
-
for (let I in
|
|
7056
|
-
|
|
7054
|
+
return Toe(r.initialState, (S) => {
|
|
7055
|
+
for (let I in C)
|
|
7056
|
+
S.addCase(I, C[I]);
|
|
7057
7057
|
for (let I of s.sliceMatchers)
|
|
7058
|
-
|
|
7058
|
+
S.addMatcher(I.matcher, I.reducer);
|
|
7059
7059
|
for (let I of M)
|
|
7060
|
-
|
|
7061
|
-
_ &&
|
|
7060
|
+
S.addMatcher(I.matcher, I.reducer);
|
|
7061
|
+
_ && S.addDefaultCase(_);
|
|
7062
7062
|
});
|
|
7063
7063
|
}
|
|
7064
7064
|
const h = (x) => x, p = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new WeakMap();
|
|
@@ -7070,8 +7070,8 @@ function Voe({
|
|
|
7070
7070
|
return v || (v = d()), v.getInitialState();
|
|
7071
7071
|
}
|
|
7072
7072
|
function b(x, M = !1) {
|
|
7073
|
-
function _(
|
|
7074
|
-
let I =
|
|
7073
|
+
function _(S) {
|
|
7074
|
+
let I = S[x];
|
|
7075
7075
|
if (typeof I > "u") {
|
|
7076
7076
|
if (M)
|
|
7077
7077
|
I = Uu(f, _, g);
|
|
@@ -7080,20 +7080,20 @@ function Voe({
|
|
|
7080
7080
|
}
|
|
7081
7081
|
return I;
|
|
7082
7082
|
}
|
|
7083
|
-
function S
|
|
7083
|
+
function C(S = h) {
|
|
7084
7084
|
const I = Uu(p, M, () => /* @__PURE__ */ new WeakMap());
|
|
7085
|
-
return Uu(I,
|
|
7085
|
+
return Uu(I, S, () => {
|
|
7086
7086
|
const L = {};
|
|
7087
7087
|
for (const [z, E] of Object.entries(r.selectors ?? {}))
|
|
7088
|
-
L[z] = Foe(E,
|
|
7088
|
+
L[z] = Foe(E, S, () => Uu(f, S, g), M);
|
|
7089
7089
|
return L;
|
|
7090
7090
|
});
|
|
7091
7091
|
}
|
|
7092
7092
|
return {
|
|
7093
7093
|
reducerPath: x,
|
|
7094
|
-
getSelectors:
|
|
7094
|
+
getSelectors: C,
|
|
7095
7095
|
get selectors() {
|
|
7096
|
-
return
|
|
7096
|
+
return C(_);
|
|
7097
7097
|
},
|
|
7098
7098
|
selectSlice: _
|
|
7099
7099
|
};
|
|
@@ -7109,13 +7109,13 @@ function Voe({
|
|
|
7109
7109
|
reducerPath: M,
|
|
7110
7110
|
..._
|
|
7111
7111
|
} = {}) {
|
|
7112
|
-
const
|
|
7112
|
+
const C = M ?? a;
|
|
7113
7113
|
return x.inject({
|
|
7114
|
-
reducerPath:
|
|
7114
|
+
reducerPath: C,
|
|
7115
7115
|
reducer: m
|
|
7116
7116
|
}, _), {
|
|
7117
7117
|
...w,
|
|
7118
|
-
...b(
|
|
7118
|
+
...b(C, !0)
|
|
7119
7119
|
};
|
|
7120
7120
|
}
|
|
7121
7121
|
};
|
|
@@ -8393,15 +8393,15 @@ var yie = (e) => {
|
|
|
8393
8393
|
var _ = {
|
|
8394
8394
|
padding: 0,
|
|
8395
8395
|
margin: 0
|
|
8396
|
-
},
|
|
8397
|
-
if (
|
|
8396
|
+
}, C = (c ? VN(a, c) : a).map((S, I) => {
|
|
8397
|
+
if (S.type === "none")
|
|
8398
8398
|
return null;
|
|
8399
|
-
var L =
|
|
8399
|
+
var L = S.formatter || i || fie, {
|
|
8400
8400
|
value: z,
|
|
8401
8401
|
name: E
|
|
8402
|
-
} =
|
|
8402
|
+
} = S, j = z, N = E;
|
|
8403
8403
|
if (L) {
|
|
8404
|
-
var P = L(z, E,
|
|
8404
|
+
var P = L(z, E, S, I, a);
|
|
8405
8405
|
if (Array.isArray(P))
|
|
8406
8406
|
[j, N] = P;
|
|
8407
8407
|
else if (P != null)
|
|
@@ -8413,7 +8413,7 @@ var yie = (e) => {
|
|
|
8413
8413
|
display: "block",
|
|
8414
8414
|
paddingTop: 4,
|
|
8415
8415
|
paddingBottom: 4,
|
|
8416
|
-
color:
|
|
8416
|
+
color: S.color || "#000"
|
|
8417
8417
|
}, r);
|
|
8418
8418
|
return (
|
|
8419
8419
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -8429,13 +8429,13 @@ var yie = (e) => {
|
|
|
8429
8429
|
className: "recharts-tooltip-item-value"
|
|
8430
8430
|
}, j), /* @__PURE__ */ y.createElement("span", {
|
|
8431
8431
|
className: "recharts-tooltip-item-unit"
|
|
8432
|
-
},
|
|
8432
|
+
}, S.unit || ""))
|
|
8433
8433
|
);
|
|
8434
8434
|
});
|
|
8435
8435
|
return /* @__PURE__ */ y.createElement("ul", {
|
|
8436
8436
|
className: "recharts-tooltip-item-list",
|
|
8437
8437
|
style: _
|
|
8438
|
-
},
|
|
8438
|
+
}, C);
|
|
8439
8439
|
}
|
|
8440
8440
|
return null;
|
|
8441
8441
|
}, v = S$({
|
|
@@ -9015,7 +9015,7 @@ function Bie() {
|
|
|
9015
9015
|
return !1;
|
|
9016
9016
|
const b = Array.from(l.values()), w = Array.from(d.values());
|
|
9017
9017
|
for (let x = 0; x < b.length; x++) {
|
|
9018
|
-
const M = b[x], _ = w.findIndex((
|
|
9018
|
+
const M = b[x], _ = w.findIndex((C) => c(M, C, void 0, l, d, h, p));
|
|
9019
9019
|
if (_ === -1)
|
|
9020
9020
|
return !1;
|
|
9021
9021
|
w.splice(_, 1);
|
|
@@ -9054,11 +9054,11 @@ function Bie() {
|
|
|
9054
9054
|
if (w.length !== x.length)
|
|
9055
9055
|
return !1;
|
|
9056
9056
|
for (let M = 0; M < w.length; M++) {
|
|
9057
|
-
const _ = w[M],
|
|
9057
|
+
const _ = w[M], C = l[_];
|
|
9058
9058
|
if (!Object.hasOwn(d, _))
|
|
9059
9059
|
return !1;
|
|
9060
|
-
const
|
|
9061
|
-
if (!c(
|
|
9060
|
+
const S = d[_];
|
|
9061
|
+
if (!c(C, S, _, l, d, h, p))
|
|
9062
9062
|
return !1;
|
|
9063
9063
|
}
|
|
9064
9064
|
return !0;
|
|
@@ -9579,11 +9579,11 @@ class BO extends Fl {
|
|
|
9579
9579
|
var {
|
|
9580
9580
|
style: M = {},
|
|
9581
9581
|
className: _
|
|
9582
|
-
} = x.props,
|
|
9582
|
+
} = x.props, C = /* @__PURE__ */ Pr(x, Hr(Hr({}, m), {}, {
|
|
9583
9583
|
style: Hr(Hr({}, M), b),
|
|
9584
9584
|
className: _
|
|
9585
9585
|
}));
|
|
9586
|
-
return
|
|
9586
|
+
return C;
|
|
9587
9587
|
};
|
|
9588
9588
|
return g === 1 ? w(m0.only(n)) : /* @__PURE__ */ y.createElement("div", null, m0.map(n, (x) => w(x)));
|
|
9589
9589
|
}
|
|
@@ -9858,8 +9858,8 @@ var kce = (e, t) => {
|
|
|
9858
9858
|
cornerRadius: a,
|
|
9859
9859
|
cornerIsExternal: c
|
|
9860
9860
|
}), {
|
|
9861
|
-
circleTangency:
|
|
9862
|
-
lineTangency:
|
|
9861
|
+
circleTangency: C,
|
|
9862
|
+
lineTangency: S,
|
|
9863
9863
|
theta: I
|
|
9864
9864
|
} = Xu({
|
|
9865
9865
|
cx: t,
|
|
@@ -9873,8 +9873,8 @@ var kce = (e, t) => {
|
|
|
9873
9873
|
}), L = c ? Math.abs(s - l) : Math.abs(s - l) - _ - I;
|
|
9874
9874
|
if (L < 0 && a === 0)
|
|
9875
9875
|
return "".concat(w, "L").concat(t, ",").concat(n, "Z");
|
|
9876
|
-
w += "L".concat(
|
|
9877
|
-
A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(
|
|
9876
|
+
w += "L".concat(S.x, ",").concat(S.y, `
|
|
9877
|
+
A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(C.x, ",").concat(C.y, `
|
|
9878
9878
|
A`).concat(r, ",").concat(r, ",0,").concat(+(L > 180), ",").concat(+(d > 0), ",").concat(x.x, ",").concat(x.y, `
|
|
9879
9879
|
A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(M.x, ",").concat(M.y, "Z");
|
|
9880
9880
|
} else
|
|
@@ -10852,10 +10852,10 @@ function Mse(e) {
|
|
|
10852
10852
|
h = Hd(h);
|
|
10853
10853
|
var p = h.fill, f = h.align, v = h.sign, m = h.symbol, g = h.zero, b = h.width, w = h.comma, x = h.precision, M = h.trim, _ = h.type;
|
|
10854
10854
|
_ === "n" ? (w = !0, _ = "g") : Bq[_] || (x === void 0 && (x = 12), M = !0, _ = "g"), (g || p === "0" && f === "=") && (g = !0, p = "0", f = "=");
|
|
10855
|
-
var
|
|
10855
|
+
var C = m === "$" ? n : m === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", S = m === "$" ? r : /[%p]/.test(_) ? i : "", I = Bq[_], L = /[defgprs%]/.test(_);
|
|
10856
10856
|
x = x === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, x)) : Math.max(0, Math.min(20, x));
|
|
10857
10857
|
function z(E) {
|
|
10858
|
-
var j =
|
|
10858
|
+
var j = C, N = S, P, Z, O;
|
|
10859
10859
|
if (_ === "c")
|
|
10860
10860
|
N = I(E) + N, E = "";
|
|
10861
10861
|
else {
|
|
@@ -11529,8 +11529,8 @@ function Zse(e) {
|
|
|
11529
11529
|
Z: ole,
|
|
11530
11530
|
"%": hle
|
|
11531
11531
|
};
|
|
11532
|
-
x.x =
|
|
11533
|
-
function
|
|
11532
|
+
x.x = C(n, x), x.X = C(r, x), x.c = C(t, x), M.x = C(n, M), M.X = C(r, M), M.c = C(t, M);
|
|
11533
|
+
function C(U, Q) {
|
|
11534
11534
|
return function(K) {
|
|
11535
11535
|
var B = [], le = -1, ee = 0, $e = U.length, Ee, He, Ye;
|
|
11536
11536
|
for (K instanceof Date || (K = /* @__PURE__ */ new Date(+K)); ++le < $e; )
|
|
@@ -11538,7 +11538,7 @@ function Zse(e) {
|
|
|
11538
11538
|
return B.push(U.slice(ee, le)), B.join("");
|
|
11539
11539
|
};
|
|
11540
11540
|
}
|
|
11541
|
-
function
|
|
11541
|
+
function S(U, Q) {
|
|
11542
11542
|
return function(K) {
|
|
11543
11543
|
var B = y1(1900, void 0, 1), le = I(B, U, K += "", 0), ee, $e;
|
|
11544
11544
|
if (le != K.length) return null;
|
|
@@ -11628,25 +11628,25 @@ function Zse(e) {
|
|
|
11628
11628
|
}
|
|
11629
11629
|
return {
|
|
11630
11630
|
format: function(U) {
|
|
11631
|
-
var Q =
|
|
11631
|
+
var Q = C(U += "", x);
|
|
11632
11632
|
return Q.toString = function() {
|
|
11633
11633
|
return U;
|
|
11634
11634
|
}, Q;
|
|
11635
11635
|
},
|
|
11636
11636
|
parse: function(U) {
|
|
11637
|
-
var Q =
|
|
11637
|
+
var Q = S(U += "", !1);
|
|
11638
11638
|
return Q.toString = function() {
|
|
11639
11639
|
return U;
|
|
11640
11640
|
}, Q;
|
|
11641
11641
|
},
|
|
11642
11642
|
utcFormat: function(U) {
|
|
11643
|
-
var Q =
|
|
11643
|
+
var Q = C(U += "", M);
|
|
11644
11644
|
return Q.toString = function() {
|
|
11645
11645
|
return U;
|
|
11646
11646
|
}, Q;
|
|
11647
11647
|
},
|
|
11648
11648
|
utcParse: function(U) {
|
|
11649
|
-
var Q =
|
|
11649
|
+
var Q = S(U += "", !0);
|
|
11650
11650
|
return Q.toString = function() {
|
|
11651
11651
|
return U;
|
|
11652
11652
|
}, Q;
|
|
@@ -11905,21 +11905,21 @@ function Yle(e) {
|
|
|
11905
11905
|
}
|
|
11906
11906
|
function uD(e, t, n, r, o, a, i, c, s, l) {
|
|
11907
11907
|
var d = YO(), h = d.invert, p = d.domain, f = l(".%L"), v = l(":%S"), m = l("%I:%M"), g = l("%I %p"), b = l("%a %d"), w = l("%b %d"), x = l("%B"), M = l("%Y");
|
|
11908
|
-
function _(
|
|
11909
|
-
return (s(
|
|
11910
|
-
}
|
|
11911
|
-
return d.invert = function(
|
|
11912
|
-
return new Date(h(
|
|
11913
|
-
}, d.domain = function(
|
|
11914
|
-
return arguments.length ? p(Array.from(
|
|
11915
|
-
}, d.ticks = function(
|
|
11916
|
-
var
|
|
11917
|
-
return e(
|
|
11918
|
-
}, d.tickFormat = function(
|
|
11919
|
-
return
|
|
11920
|
-
}, d.nice = function(
|
|
11921
|
-
var
|
|
11922
|
-
return (!
|
|
11908
|
+
function _(C) {
|
|
11909
|
+
return (s(C) < C ? f : c(C) < C ? v : i(C) < C ? m : a(C) < C ? g : r(C) < C ? o(C) < C ? b : w : n(C) < C ? x : M)(C);
|
|
11910
|
+
}
|
|
11911
|
+
return d.invert = function(C) {
|
|
11912
|
+
return new Date(h(C));
|
|
11913
|
+
}, d.domain = function(C) {
|
|
11914
|
+
return arguments.length ? p(Array.from(C, Yle)) : p().map(Xle);
|
|
11915
|
+
}, d.ticks = function(C) {
|
|
11916
|
+
var S = p();
|
|
11917
|
+
return e(S[0], S[S.length - 1], C ?? 10);
|
|
11918
|
+
}, d.tickFormat = function(C, S) {
|
|
11919
|
+
return S == null ? _ : l(S);
|
|
11920
|
+
}, d.nice = function(C) {
|
|
11921
|
+
var S = p();
|
|
11922
|
+
return (!C || typeof C.range != "function") && (C = t(S[0], S[S.length - 1], C ?? 10)), C ? p(DU(S, C)) : d;
|
|
11923
11923
|
}, d.copy = function() {
|
|
11924
11924
|
return lu(d, uD(e, t, n, r, o, a, i, c, s, l));
|
|
11925
11925
|
}, d;
|
|
@@ -12441,19 +12441,19 @@ var kr = /* @__PURE__ */ (function() {
|
|
|
12441
12441
|
for (; !r[0] && r.length > 1; ) r.shift();
|
|
12442
12442
|
}
|
|
12443
12443
|
return function(r, o, a, i) {
|
|
12444
|
-
var c, s, l, d, h, p, f, v, m, g, b, w, x, M, _,
|
|
12444
|
+
var c, s, l, d, h, p, f, v, m, g, b, w, x, M, _, C, S, I, L = r.constructor, z = r.s == o.s ? 1 : -1, E = r.d, j = o.d;
|
|
12445
12445
|
if (!r.s) return new L(r);
|
|
12446
12446
|
if (!o.s) throw Error(kn + "Division by zero");
|
|
12447
|
-
for (s = r.e - o.e,
|
|
12447
|
+
for (s = r.e - o.e, S = j.length, _ = E.length, f = new L(z), v = f.d = [], l = 0; j[l] == (E[l] || 0); ) ++l;
|
|
12448
12448
|
if (j[l] > (E[l] || 0) && --s, a == null ? w = a = L.precision : i ? w = a + (at(r) - at(o)) + 1 : w = a, w < 0) return new L(0);
|
|
12449
|
-
if (w = w / Be + 2 | 0, l = 0,
|
|
12449
|
+
if (w = w / Be + 2 | 0, l = 0, S == 1)
|
|
12450
12450
|
for (d = 0, j = j[0], w++; (l < _ || d) && w--; l++)
|
|
12451
12451
|
x = d * vt + (E[l] || 0), v[l] = x / j | 0, d = x % j | 0;
|
|
12452
12452
|
else {
|
|
12453
|
-
for (d = vt / (j[0] + 1) | 0, d > 1 && (j = e(j, d), E = e(E, d),
|
|
12454
|
-
I = j.slice(), I.unshift(0),
|
|
12453
|
+
for (d = vt / (j[0] + 1) | 0, d > 1 && (j = e(j, d), E = e(E, d), S = j.length, _ = E.length), M = S, m = E.slice(0, S), g = m.length; g < S; ) m[g++] = 0;
|
|
12454
|
+
I = j.slice(), I.unshift(0), C = j[0], j[1] >= vt / 2 && ++C;
|
|
12455
12455
|
do
|
|
12456
|
-
d = 0, c = t(j, m,
|
|
12456
|
+
d = 0, c = t(j, m, S, g), c < 0 ? (b = m[0], S != g && (b = b * vt + (m[1] || 0)), d = b / C | 0, d > 1 ? (d >= vt && (d = vt - 1), h = e(j, d), p = h.length, g = m.length, c = t(h, m, p, g), c == 1 && (d--, n(h, S < p ? I : j, p))) : (d == 0 && (c = d = 1), h = j.slice()), p = h.length, p < g && h.unshift(0), n(m, h, g), c == -1 && (g = m.length, c = t(j, m, S, g), c < 1 && (d++, n(m, S < g ? I : j, g))), g = m.length) : c === 0 && (d++, m = [0]), v[l++] = d, c && m[0] ? m[g++] = E[M] || 0 : (m = [E[M]], g = 1);
|
|
12457
12457
|
while ((M++ < _ || m[0] !== void 0) && w--);
|
|
12458
12458
|
}
|
|
12459
12459
|
return v[0] || v.shift(), f.e = s, ze(f, i ? a + at(f) + 1 : a);
|
|
@@ -13866,10 +13866,10 @@ var gW = (e, t, n, r, o, a, i) => {
|
|
|
13866
13866
|
* which is always accurate, irrespective of the allowDuplicatedCategory setting.
|
|
13867
13867
|
*/
|
|
13868
13868
|
i === "axis" ? _ = ZF(w, r.dataKey, o) : _ = a(w, t, s, M), Array.isArray(_))
|
|
13869
|
-
_.forEach((
|
|
13869
|
+
_.forEach((S) => {
|
|
13870
13870
|
var I = wH(wH({}, g), {}, {
|
|
13871
|
-
name:
|
|
13872
|
-
unit:
|
|
13871
|
+
name: S.name,
|
|
13872
|
+
unit: S.unit,
|
|
13873
13873
|
// color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.
|
|
13874
13874
|
color: void 0,
|
|
13875
13875
|
// color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.
|
|
@@ -13877,15 +13877,15 @@ var gW = (e, t, n, r, o, a, i) => {
|
|
|
13877
13877
|
});
|
|
13878
13878
|
p.push(tq({
|
|
13879
13879
|
tooltipEntrySettings: I,
|
|
13880
|
-
dataKey:
|
|
13881
|
-
payload:
|
|
13880
|
+
dataKey: S.dataKey,
|
|
13881
|
+
payload: S.payload,
|
|
13882
13882
|
// @ts-expect-error getValueByDataKey does not validate the output type
|
|
13883
|
-
value: Ke(
|
|
13884
|
-
name:
|
|
13883
|
+
value: Ke(S.payload, S.dataKey),
|
|
13884
|
+
name: S.name
|
|
13885
13885
|
}));
|
|
13886
13886
|
});
|
|
13887
13887
|
else {
|
|
13888
|
-
var
|
|
13888
|
+
var C;
|
|
13889
13889
|
p.push(tq({
|
|
13890
13890
|
tooltipEntrySettings: g,
|
|
13891
13891
|
dataKey: x,
|
|
@@ -13893,7 +13893,7 @@ var gW = (e, t, n, r, o, a, i) => {
|
|
|
13893
13893
|
// @ts-expect-error getValueByDataKey does not validate the output type
|
|
13894
13894
|
value: Ke(_, x),
|
|
13895
13895
|
// @ts-expect-error getValueByDataKey does not validate the output type
|
|
13896
|
-
name: (
|
|
13896
|
+
name: (C = Ke(_, M)) !== null && C !== void 0 ? C : g?.name
|
|
13897
13897
|
}));
|
|
13898
13898
|
}
|
|
13899
13899
|
return p;
|
|
@@ -14297,7 +14297,7 @@ function Oue() {
|
|
|
14297
14297
|
activeCoordinate: d.payload.coordinate
|
|
14298
14298
|
}, v = r(o, f);
|
|
14299
14299
|
p = o[v];
|
|
14300
|
-
} else r === "value" && (p = o.find((
|
|
14300
|
+
} else r === "value" && (p = o.find((C) => String(C.value) === d.payload.label));
|
|
14301
14301
|
var {
|
|
14302
14302
|
coordinate: m
|
|
14303
14303
|
} = d.payload;
|
|
@@ -14457,20 +14457,20 @@ function g1(e) {
|
|
|
14457
14457
|
defaultIndex: w,
|
|
14458
14458
|
portal: x,
|
|
14459
14459
|
axisId: M
|
|
14460
|
-
} = t, _ = nt(),
|
|
14460
|
+
} = t, _ = nt(), C = typeof w == "number" ? String(w) : w;
|
|
14461
14461
|
Ce(() => {
|
|
14462
14462
|
_(kde({
|
|
14463
14463
|
shared: g,
|
|
14464
14464
|
trigger: b,
|
|
14465
14465
|
axisId: M,
|
|
14466
14466
|
active: n,
|
|
14467
|
-
defaultIndex:
|
|
14467
|
+
defaultIndex: C
|
|
14468
14468
|
}));
|
|
14469
|
-
}, [_, g, b, M, n,
|
|
14470
|
-
var
|
|
14469
|
+
}, [_, g, b, M, n, C]);
|
|
14470
|
+
var S = qO(), I = hU(), L = fde(g), {
|
|
14471
14471
|
activeIndex: z,
|
|
14472
14472
|
isActive: E
|
|
14473
|
-
} = de((V) => mue(V, L, b,
|
|
14473
|
+
} = de((V) => mue(V, L, b, C)), j = de((V) => vue(V, L, b, C)), N = de((V) => PW(V, L, b, C)), P = de((V) => yue(V, L, b, C)), Z = j, O = _ue(), X = n ?? E, [H, q] = IB([Z, X]), ne = L === "axis" ? N : void 0;
|
|
14474
14474
|
zue(L, b, P, ne, z, X);
|
|
14475
14475
|
var ie = x ?? O;
|
|
14476
14476
|
if (ie == null)
|
|
@@ -14489,7 +14489,7 @@ function g1(e) {
|
|
|
14489
14489
|
position: h,
|
|
14490
14490
|
reverseDirection: p,
|
|
14491
14491
|
useTranslate3d: f,
|
|
14492
|
-
viewBox:
|
|
14492
|
+
viewBox: S,
|
|
14493
14493
|
wrapperStyle: v,
|
|
14494
14494
|
lastBoundingBox: H,
|
|
14495
14495
|
innerRef: q,
|
|
@@ -14662,10 +14662,10 @@ var t0e = /* @__PURE__ */ Pt((e, t) => {
|
|
|
14662
14662
|
var [b, w] = Te({
|
|
14663
14663
|
containerWidth: r.width,
|
|
14664
14664
|
containerHeight: r.height
|
|
14665
|
-
}), x = ve((_,
|
|
14666
|
-
w((
|
|
14667
|
-
var I = Math.round(_), L = Math.round(
|
|
14668
|
-
return
|
|
14665
|
+
}), x = ve((_, C) => {
|
|
14666
|
+
w((S) => {
|
|
14667
|
+
var I = Math.round(_), L = Math.round(C);
|
|
14668
|
+
return S.containerWidth === I && S.containerHeight === L ? S : {
|
|
14669
14669
|
containerWidth: I,
|
|
14670
14670
|
containerHeight: L
|
|
14671
14671
|
};
|
|
@@ -14683,33 +14683,33 @@ var t0e = /* @__PURE__ */ Pt((e, t) => {
|
|
|
14683
14683
|
trailing: !0,
|
|
14684
14684
|
leading: !1
|
|
14685
14685
|
}));
|
|
14686
|
-
var
|
|
14687
|
-
width:
|
|
14686
|
+
var C = new ResizeObserver(_), {
|
|
14687
|
+
width: S,
|
|
14688
14688
|
height: I
|
|
14689
14689
|
} = m.current.getBoundingClientRect();
|
|
14690
|
-
return x(
|
|
14691
|
-
|
|
14690
|
+
return x(S, I), C.observe(m.current), () => {
|
|
14691
|
+
C.disconnect();
|
|
14692
14692
|
};
|
|
14693
14693
|
}, [x, d]);
|
|
14694
14694
|
var M = er(() => {
|
|
14695
14695
|
var {
|
|
14696
14696
|
containerWidth: _,
|
|
14697
|
-
containerHeight:
|
|
14697
|
+
containerHeight: C
|
|
14698
14698
|
} = b;
|
|
14699
|
-
if (_ < 0 ||
|
|
14699
|
+
if (_ < 0 || C < 0)
|
|
14700
14700
|
return null;
|
|
14701
14701
|
P1(bs(o) || bs(a), `The width(%s) and height(%s) are both fixed numbers,
|
|
14702
14702
|
maybe you don't need to use a ResponsiveContainer.`, o, a), P1(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
|
|
14703
|
-
var
|
|
14704
|
-
return n && n > 0 && (
|
|
14703
|
+
var S = bs(o) ? _ : o, I = bs(a) ? C : a;
|
|
14704
|
+
return n && n > 0 && (S ? I = S / n : I && (S = I * n), s && I > s && (I = s)), P1(S > 0 || I > 0, `The width(%s) and height(%s) of chart should be greater than 0,
|
|
14705
14705
|
please check the style of container, or the props width(%s) and height(%s),
|
|
14706
14706
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
14707
|
-
height and width.`,
|
|
14708
|
-
width:
|
|
14707
|
+
height and width.`, S, I, o, a, i, c, n), y.Children.map(l, (L) => /* @__PURE__ */ Pr(L, {
|
|
14708
|
+
width: S,
|
|
14709
14709
|
height: I,
|
|
14710
14710
|
// calculate the actual size and override it.
|
|
14711
14711
|
style: Z$({
|
|
14712
|
-
width:
|
|
14712
|
+
width: S,
|
|
14713
14713
|
height: I
|
|
14714
14714
|
}, L.props.style)
|
|
14715
14715
|
}));
|
|
@@ -15023,8 +15023,8 @@ var jW = /[ \f\n\r\t\v\u2028\u2029]+/, qW = (e) => {
|
|
|
15023
15023
|
}).wordsWithComputedWidth, N = h(j), P = N.length > a || f(N).width > Number(r);
|
|
15024
15024
|
return [P, N];
|
|
15025
15025
|
}, b = 0, w = d.length - 1, x = 0, M; b <= w && x <= d.length - 1; ) {
|
|
15026
|
-
var _ = Math.floor((b + w) / 2),
|
|
15027
|
-
if (!
|
|
15026
|
+
var _ = Math.floor((b + w) / 2), C = _ - 1, [S, I] = g(C), [L] = g(_);
|
|
15027
|
+
if (!S && !L && (b = _ + 1), S && L && (w = _ - 1), !S && L) {
|
|
15028
15028
|
M = I;
|
|
15029
15029
|
break;
|
|
15030
15030
|
}
|
|
@@ -15109,10 +15109,10 @@ var jW = /[ \f\n\r\t\v\u2028\u2029]+/, qW = (e) => {
|
|
|
15109
15109
|
}
|
|
15110
15110
|
var _ = [];
|
|
15111
15111
|
if (i) {
|
|
15112
|
-
var
|
|
15113
|
-
width:
|
|
15112
|
+
var C = h[0].width, {
|
|
15113
|
+
width: S
|
|
15114
15114
|
} = d;
|
|
15115
|
-
_.push("scale(".concat(oe(
|
|
15115
|
+
_.push("scale(".concat(oe(S) ? S / C : 1, ")"));
|
|
15116
15116
|
}
|
|
15117
15117
|
return v && _.push("rotate(".concat(v, ", ").concat(w, ", ").concat(x, ")")), _.length && (b.transform = _.join(" ")), /* @__PURE__ */ y.createElement("text", SR({}, Ue(b, !0), {
|
|
15118
15118
|
ref: t,
|
|
@@ -15227,15 +15227,15 @@ var P0e = (e) => {
|
|
|
15227
15227
|
o === "insideStart" ? (b = h + g * a, w = f) : o === "insideEnd" ? (b = p - g * a, w = !f) : o === "end" && (b = p + g * a, w = f), w = m <= 0 ? w : !w;
|
|
15228
15228
|
var x = _t(c, s, v, b), M = _t(c, s, v, b + (w ? 1 : -1) * 359), _ = "M".concat(x.x, ",").concat(x.y, `
|
|
15229
15229
|
A`).concat(v, ",").concat(v, ",0,1,").concat(w ? 0 : 1, `,
|
|
15230
|
-
`).concat(M.x, ",").concat(M.y),
|
|
15230
|
+
`).concat(M.x, ",").concat(M.y), C = Ne(e.id) ? Rd("recharts-radial-line-") : e.id;
|
|
15231
15231
|
return /* @__PURE__ */ y.createElement("text", fr({}, n, {
|
|
15232
15232
|
dominantBaseline: "central",
|
|
15233
15233
|
className: Me("recharts-radial-bar-label", i)
|
|
15234
15234
|
}), /* @__PURE__ */ y.createElement("defs", null, /* @__PURE__ */ y.createElement("path", {
|
|
15235
|
-
id:
|
|
15235
|
+
id: C,
|
|
15236
15236
|
d: _
|
|
15237
15237
|
})), /* @__PURE__ */ y.createElement("textPath", {
|
|
15238
|
-
xlinkHref: "#".concat(
|
|
15238
|
+
xlinkHref: "#".concat(C)
|
|
15239
15239
|
}, t));
|
|
15240
15240
|
}, R0e = (e, t, n) => {
|
|
15241
15241
|
var {
|
|
@@ -15439,11 +15439,11 @@ function Qt(e) {
|
|
|
15439
15439
|
var M = D0e(m), _ = Ue(r, !0);
|
|
15440
15440
|
if (M && (a === "insideStart" || a === "insideEnd" || a === "end"))
|
|
15441
15441
|
return E0e(r, x, _, m);
|
|
15442
|
-
var
|
|
15442
|
+
var C = M ? R0e(m, r.offset, r.position) : O0e(r, m);
|
|
15443
15443
|
return /* @__PURE__ */ y.createElement(qD, fr({
|
|
15444
15444
|
ref: h,
|
|
15445
15445
|
className: Me("recharts-label", l)
|
|
15446
|
-
}, _,
|
|
15446
|
+
}, _, C, {
|
|
15447
15447
|
breakAll: d
|
|
15448
15448
|
}), x);
|
|
15449
15449
|
}
|
|
@@ -16579,7 +16579,7 @@ function she(e) {
|
|
|
16579
16579
|
} = v, x = pN(v, Q2e);
|
|
16580
16580
|
if (!b)
|
|
16581
16581
|
return null;
|
|
16582
|
-
var M = d(v, m), _ = h(v, m),
|
|
16582
|
+
var M = d(v, m), _ = h(v, m), C = p(v, m), S = Nt(Nt(Nt(Nt(Nt({
|
|
16583
16583
|
option: o,
|
|
16584
16584
|
isActive: String(m) === t
|
|
16585
16585
|
}, x), {}, {
|
|
@@ -16588,14 +16588,14 @@ function she(e) {
|
|
|
16588
16588
|
}, b), f), nu(l, v, m)), {}, {
|
|
16589
16589
|
onMouseEnter: M,
|
|
16590
16590
|
onMouseLeave: _,
|
|
16591
|
-
onClick:
|
|
16591
|
+
onClick: C,
|
|
16592
16592
|
dataKey: r,
|
|
16593
16593
|
index: m,
|
|
16594
16594
|
className: "recharts-bar-background-rectangle"
|
|
16595
16595
|
});
|
|
16596
16596
|
return /* @__PURE__ */ y.createElement(BW, El({
|
|
16597
16597
|
key: "background-bar-".concat(m)
|
|
16598
|
-
},
|
|
16598
|
+
}, S));
|
|
16599
16599
|
}));
|
|
16600
16600
|
}
|
|
16601
16601
|
function GW(e) {
|
|
@@ -16615,9 +16615,9 @@ function GW(e) {
|
|
|
16615
16615
|
onMouseLeave: v
|
|
16616
16616
|
} = n, m = pN(n, the), g = FD(p, s), b = BD(v), w = UD(f, s);
|
|
16617
16617
|
return t ? /* @__PURE__ */ y.createElement(y.Fragment, null, t.map((x, M) => {
|
|
16618
|
-
var _ = l && String(M) === d && (h == null || s === h),
|
|
16618
|
+
var _ = l && String(M) === d && (h == null || s === h), C = _ ? l : c, S = Nt(Nt(Nt({}, i), x), {}, {
|
|
16619
16619
|
isActive: _,
|
|
16620
|
-
option:
|
|
16620
|
+
option: C,
|
|
16621
16621
|
index: M,
|
|
16622
16622
|
dataKey: s
|
|
16623
16623
|
});
|
|
@@ -16629,7 +16629,7 @@ function GW(e) {
|
|
|
16629
16629
|
onMouseLeave: b(x, M),
|
|
16630
16630
|
onClick: w(x, M),
|
|
16631
16631
|
key: "rectangle-".concat(x?.x, "-").concat(x?.y, "-").concat(x?.value, "-").concat(M)
|
|
16632
|
-
}), /* @__PURE__ */ y.createElement(BW,
|
|
16632
|
+
}), /* @__PURE__ */ y.createElement(BW, S));
|
|
16633
16633
|
}), r && Jn.renderCallByParent(n, t)) : null;
|
|
16634
16634
|
}
|
|
16635
16635
|
function lhe(e) {
|
|
@@ -16669,15 +16669,15 @@ function lhe(e) {
|
|
|
16669
16669
|
height: Mt(_.height, x.height, b)
|
|
16670
16670
|
});
|
|
16671
16671
|
if (o === "horizontal") {
|
|
16672
|
-
var
|
|
16672
|
+
var C = Mt(0, x.height, b);
|
|
16673
16673
|
return Nt(Nt({}, x), {}, {
|
|
16674
|
-
y: x.y + x.height -
|
|
16675
|
-
height:
|
|
16674
|
+
y: x.y + x.height - C,
|
|
16675
|
+
height: C
|
|
16676
16676
|
});
|
|
16677
16677
|
}
|
|
16678
|
-
var
|
|
16678
|
+
var S = Mt(0, x.width, b);
|
|
16679
16679
|
return Nt(Nt({}, x), {}, {
|
|
16680
|
-
width:
|
|
16680
|
+
width: S
|
|
16681
16681
|
});
|
|
16682
16682
|
});
|
|
16683
16683
|
return b > 0 && (n.current = w ?? null), w == null ? null : /* @__PURE__ */ y.createElement(et, null, /* @__PURE__ */ y.createElement(GW, {
|
|
@@ -16818,7 +16818,7 @@ function yhe(e) {
|
|
|
16818
16818
|
numericAxis: v
|
|
16819
16819
|
});
|
|
16820
16820
|
return h.map((b, w) => {
|
|
16821
|
-
var x, M, _,
|
|
16821
|
+
var x, M, _, C, S, I;
|
|
16822
16822
|
d ? x = Iae(d[w], m) : (x = Ke(b, n), Array.isArray(x) || (x = [g, x]));
|
|
16823
16823
|
var L = B2e(r, WW)(x[1], w);
|
|
16824
16824
|
if (t === "horizontal") {
|
|
@@ -16830,16 +16830,16 @@ function yhe(e) {
|
|
|
16830
16830
|
offset: o.offset,
|
|
16831
16831
|
entry: b,
|
|
16832
16832
|
index: w
|
|
16833
|
-
}), _ = (z = j ?? E) !== null && z !== void 0 ? z : void 0,
|
|
16833
|
+
}), _ = (z = j ?? E) !== null && z !== void 0 ? z : void 0, C = o.size;
|
|
16834
16834
|
var N = E - j;
|
|
16835
|
-
if (
|
|
16835
|
+
if (S = Ut(N) ? 0 : N, I = {
|
|
16836
16836
|
x: M,
|
|
16837
16837
|
y: p.top,
|
|
16838
|
-
width:
|
|
16838
|
+
width: C,
|
|
16839
16839
|
height: p.height
|
|
16840
|
-
}, Math.abs(L) > 0 && Math.abs(
|
|
16841
|
-
var P = Vt(
|
|
16842
|
-
_ -= P,
|
|
16840
|
+
}, Math.abs(L) > 0 && Math.abs(S) < Math.abs(L)) {
|
|
16841
|
+
var P = Vt(S || L) * (Math.abs(L) - Math.abs(S));
|
|
16842
|
+
_ -= P, S += P;
|
|
16843
16843
|
}
|
|
16844
16844
|
} else {
|
|
16845
16845
|
var [Z, O] = [i.scale(x[0]), i.scale(x[1])];
|
|
@@ -16850,29 +16850,29 @@ function yhe(e) {
|
|
|
16850
16850
|
offset: o.offset,
|
|
16851
16851
|
entry: b,
|
|
16852
16852
|
index: w
|
|
16853
|
-
}),
|
|
16853
|
+
}), C = O - Z, S = o.size, I = {
|
|
16854
16854
|
x: p.left,
|
|
16855
16855
|
y: _,
|
|
16856
16856
|
width: p.width,
|
|
16857
|
-
height:
|
|
16858
|
-
}, Math.abs(L) > 0 && Math.abs(
|
|
16859
|
-
var X = Vt(
|
|
16860
|
-
|
|
16857
|
+
height: S
|
|
16858
|
+
}, Math.abs(L) > 0 && Math.abs(C) < Math.abs(L)) {
|
|
16859
|
+
var X = Vt(C || L) * (Math.abs(L) - Math.abs(C));
|
|
16860
|
+
C += X;
|
|
16861
16861
|
}
|
|
16862
16862
|
}
|
|
16863
|
-
if (M == null || _ == null ||
|
|
16863
|
+
if (M == null || _ == null || C == null || S == null)
|
|
16864
16864
|
return null;
|
|
16865
16865
|
var H = Nt(Nt({}, b), {}, {
|
|
16866
16866
|
x: M,
|
|
16867
16867
|
y: _,
|
|
16868
|
-
width:
|
|
16869
|
-
height:
|
|
16868
|
+
width: C,
|
|
16869
|
+
height: S,
|
|
16870
16870
|
value: d ? x : x[1],
|
|
16871
16871
|
payload: b,
|
|
16872
16872
|
background: I,
|
|
16873
16873
|
tooltipPosition: {
|
|
16874
|
-
x: M +
|
|
16875
|
-
y: _ +
|
|
16874
|
+
x: M + C / 2,
|
|
16875
|
+
y: _ + S / 2
|
|
16876
16876
|
}
|
|
16877
16877
|
}, f && f[w] && f[w].props);
|
|
16878
16878
|
return H;
|
|
@@ -17397,16 +17397,16 @@ function cpe(e, t, n, r, o, a) {
|
|
|
17397
17397
|
for (var v = a ? c - 1 : c, m = function(w) {
|
|
17398
17398
|
var x = i[w], M, _ = () => (M === void 0 && (M = n(x, w)), M);
|
|
17399
17399
|
if (w === 0) {
|
|
17400
|
-
var
|
|
17400
|
+
var C = e * (x.coordinate - e * _() / 2 - s);
|
|
17401
17401
|
i[w] = x = Lt(Lt({}, x), {}, {
|
|
17402
|
-
tickCoord:
|
|
17402
|
+
tickCoord: C < 0 ? x.coordinate - C * e : x.coordinate
|
|
17403
17403
|
});
|
|
17404
17404
|
} else
|
|
17405
17405
|
i[w] = x = Lt(Lt({}, x), {}, {
|
|
17406
17406
|
tickCoord: x.coordinate
|
|
17407
17407
|
});
|
|
17408
|
-
var
|
|
17409
|
-
|
|
17408
|
+
var S = fN(e, x.tickCoord, _, s, l);
|
|
17409
|
+
S && (s = x.tickCoord + e * (_() / 2 + o), i[w] = Lt(Lt({}, x), {}, {
|
|
17410
17410
|
isShow: !0
|
|
17411
17411
|
}));
|
|
17412
17412
|
}, g = 0; g < v; g++)
|
|
@@ -18081,7 +18081,7 @@ function sl(e) {
|
|
|
18081
18081
|
verticalPoints: M
|
|
18082
18082
|
} = o;
|
|
18083
18083
|
if ((!x || !x.length) && typeof w == "function") {
|
|
18084
|
-
var _ = p && p.length,
|
|
18084
|
+
var _ = p && p.length, C = w({
|
|
18085
18085
|
yAxis: g ? At(At({}, g), {}, {
|
|
18086
18086
|
ticks: _ ? p : g.ticks
|
|
18087
18087
|
}) : void 0,
|
|
@@ -18089,17 +18089,17 @@ function sl(e) {
|
|
|
18089
18089
|
height: n,
|
|
18090
18090
|
offset: r
|
|
18091
18091
|
}, _ ? !0 : h);
|
|
18092
|
-
P1(Array.isArray(
|
|
18092
|
+
P1(Array.isArray(C), "horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C, "]")), Array.isArray(C) && (x = C);
|
|
18093
18093
|
}
|
|
18094
18094
|
if ((!M || !M.length) && typeof b == "function") {
|
|
18095
|
-
var
|
|
18095
|
+
var S = f && f.length, I = b({
|
|
18096
18096
|
xAxis: m ? At(At({}, m), {}, {
|
|
18097
|
-
ticks:
|
|
18097
|
+
ticks: S ? f : m.ticks
|
|
18098
18098
|
}) : void 0,
|
|
18099
18099
|
width: t,
|
|
18100
18100
|
height: n,
|
|
18101
18101
|
offset: r
|
|
18102
|
-
},
|
|
18102
|
+
}, S ? !0 : h);
|
|
18103
18103
|
P1(Array.isArray(I), "verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof I, "]")), Array.isArray(I) && (M = I);
|
|
18104
18104
|
}
|
|
18105
18105
|
return /* @__PURE__ */ y.createElement("g", {
|
|
@@ -18397,24 +18397,24 @@ function Zpe(e) {
|
|
|
18397
18397
|
onAnimationStart: g
|
|
18398
18398
|
} = n, b = o.current, w = gA(n, "recharts-line-"), [x, M] = Te(!1), _ = ve(() => {
|
|
18399
18399
|
typeof m == "function" && m(), M(!1);
|
|
18400
|
-
}, [m]),
|
|
18400
|
+
}, [m]), C = ve(() => {
|
|
18401
18401
|
typeof g == "function" && g(), M(!0);
|
|
18402
|
-
}, [g]),
|
|
18402
|
+
}, [g]), S = Kpe(r.current), I = a.current;
|
|
18403
18403
|
return /* @__PURE__ */ y.createElement(xA, {
|
|
18404
18404
|
begin: l,
|
|
18405
18405
|
duration: d,
|
|
18406
18406
|
isActive: s,
|
|
18407
18407
|
easing: h,
|
|
18408
18408
|
onAnimationEnd: _,
|
|
18409
|
-
onAnimationStart:
|
|
18409
|
+
onAnimationStart: C,
|
|
18410
18410
|
key: w
|
|
18411
18411
|
}, (L) => {
|
|
18412
|
-
var z = Mt(I,
|
|
18412
|
+
var z = Mt(I, S + I, L), E = Math.min(z, S), j;
|
|
18413
18413
|
if (c) {
|
|
18414
18414
|
var N = "".concat(c).split(/[,\s]+/gim).map((O) => parseFloat(O));
|
|
18415
|
-
j = Bpe(E,
|
|
18415
|
+
j = Bpe(E, S, N);
|
|
18416
18416
|
} else
|
|
18417
|
-
j = rK(
|
|
18417
|
+
j = rK(S, E);
|
|
18418
18418
|
if (b) {
|
|
18419
18419
|
var P = b.length / i.length, Z = L === 1 ? i : i.map((O, X) => {
|
|
18420
18420
|
var H = Math.floor(X * P);
|
|
@@ -18442,7 +18442,7 @@ function Zpe(e) {
|
|
|
18442
18442
|
strokeDasharray: j
|
|
18443
18443
|
});
|
|
18444
18444
|
}
|
|
18445
|
-
return L > 0 &&
|
|
18445
|
+
return L > 0 && S > 0 && (o.current = i, a.current = E), /* @__PURE__ */ y.createElement(PR, {
|
|
18446
18446
|
props: n,
|
|
18447
18447
|
points: i,
|
|
18448
18448
|
clipPathId: t,
|
|
@@ -18576,8 +18576,8 @@ function Qpe(e) {
|
|
|
18576
18576
|
if (x !== "horizontal" && x !== "vertical" || _ == null || w == null)
|
|
18577
18577
|
return null;
|
|
18578
18578
|
var {
|
|
18579
|
-
height:
|
|
18580
|
-
width:
|
|
18579
|
+
height: C,
|
|
18580
|
+
width: S,
|
|
18581
18581
|
x: I,
|
|
18582
18582
|
y: L
|
|
18583
18583
|
} = w;
|
|
@@ -18598,8 +18598,8 @@ function Qpe(e) {
|
|
|
18598
18598
|
yAxisId: v,
|
|
18599
18599
|
points: _,
|
|
18600
18600
|
layout: x,
|
|
18601
|
-
height:
|
|
18602
|
-
width:
|
|
18601
|
+
height: C,
|
|
18602
|
+
width: S,
|
|
18603
18603
|
left: I,
|
|
18604
18604
|
top: L,
|
|
18605
18605
|
needClip: b
|
|
@@ -19012,7 +19012,7 @@ function kfe(e) {
|
|
|
19012
19012
|
key: v
|
|
19013
19013
|
}, (_) => {
|
|
19014
19014
|
if (x) {
|
|
19015
|
-
var
|
|
19015
|
+
var C = x.length / i.length, S = (
|
|
19016
19016
|
/*
|
|
19017
19017
|
* Here it is important that at the very end of the animation, on the last frame,
|
|
19018
19018
|
* we render the original points without any interpolation.
|
|
@@ -19021,7 +19021,7 @@ function kfe(e) {
|
|
|
19021
19021
|
* then we would break animations.
|
|
19022
19022
|
*/
|
|
19023
19023
|
_ === 1 ? i : i.map((L, z) => {
|
|
19024
|
-
var E = Math.floor(z *
|
|
19024
|
+
var E = Math.floor(z * C);
|
|
19025
19025
|
if (x[E]) {
|
|
19026
19026
|
var j = x[E];
|
|
19027
19027
|
return Cs(Cs({}, L), {}, {
|
|
@@ -19033,7 +19033,7 @@ function kfe(e) {
|
|
|
19033
19033
|
})
|
|
19034
19034
|
), I;
|
|
19035
19035
|
return oe(c) ? I = Mt(M, c, _) : Ne(c) || Ut(c) ? I = Mt(M, 0, _) : I = c.map((L, z) => {
|
|
19036
|
-
var E = Math.floor(z *
|
|
19036
|
+
var E = Math.floor(z * C);
|
|
19037
19037
|
if (Array.isArray(M) && M[E]) {
|
|
19038
19038
|
var j = M[E];
|
|
19039
19039
|
return Cs(Cs({}, L), {}, {
|
|
@@ -19042,8 +19042,8 @@ function kfe(e) {
|
|
|
19042
19042
|
});
|
|
19043
19043
|
}
|
|
19044
19044
|
return L;
|
|
19045
|
-
}), _ > 0 && (o.current =
|
|
19046
|
-
points:
|
|
19045
|
+
}), _ > 0 && (o.current = S, a.current = I), /* @__PURE__ */ y.createElement(ER, {
|
|
19046
|
+
points: S,
|
|
19047
19047
|
baseLine: I,
|
|
19048
19048
|
needClip: t,
|
|
19049
19049
|
clipPathId: n,
|
|
@@ -19192,8 +19192,8 @@ function wfe(e) {
|
|
|
19192
19192
|
} = n, b = dK(n, ife), w = iu(), x = IW(), {
|
|
19193
19193
|
needClip: M
|
|
19194
19194
|
} = mu(m, g), _ = kt(), {
|
|
19195
|
-
points:
|
|
19196
|
-
isRange:
|
|
19195
|
+
points: C,
|
|
19196
|
+
isRange: S,
|
|
19197
19197
|
baseLine: I
|
|
19198
19198
|
} = (t = de((P) => ofe(P, m, g, _, e.id))) !== null && t !== void 0 ? t : {}, L = wA();
|
|
19199
19199
|
if (w !== "horizontal" && w !== "vertical" || L == null || x !== "AreaChart" && x !== "ComposedChart")
|
|
@@ -19204,7 +19204,7 @@ function wfe(e) {
|
|
|
19204
19204
|
x: j,
|
|
19205
19205
|
y: N
|
|
19206
19206
|
} = L;
|
|
19207
|
-
return !
|
|
19207
|
+
return !C || !C.length ? null : /* @__PURE__ */ y.createElement(xfe, br({}, b, {
|
|
19208
19208
|
activeDot: r,
|
|
19209
19209
|
animationBegin: o,
|
|
19210
19210
|
animationDuration: a,
|
|
@@ -19218,10 +19218,10 @@ function wfe(e) {
|
|
|
19218
19218
|
hide: h,
|
|
19219
19219
|
layout: w,
|
|
19220
19220
|
isAnimationActive: p,
|
|
19221
|
-
isRange:
|
|
19221
|
+
isRange: S,
|
|
19222
19222
|
legendType: f,
|
|
19223
19223
|
needClip: M,
|
|
19224
|
-
points:
|
|
19224
|
+
points: C,
|
|
19225
19225
|
stroke: v,
|
|
19226
19226
|
width: E,
|
|
19227
19227
|
left: j,
|
|
@@ -19259,9 +19259,9 @@ function _fe(e) {
|
|
|
19259
19259
|
yAxisTicks: p,
|
|
19260
19260
|
bandSize: f
|
|
19261
19261
|
} = e, v = o && o.length, m = Mfe(a, i, n, c, s), g = a === "horizontal", b = !1, w = l.map((M, _) => {
|
|
19262
|
-
var
|
|
19263
|
-
v ?
|
|
19264
|
-
var
|
|
19262
|
+
var C;
|
|
19263
|
+
v ? C = o[d + _] : (C = Ke(M, r), Array.isArray(C) ? b = !0 : C = [m, C]);
|
|
19264
|
+
var S = C[1] == null || v && !t && Ke(M, r) == null;
|
|
19265
19265
|
return g ? {
|
|
19266
19266
|
// @ts-expect-error getCateCoordinateOfLine expects chart data to be an object, we allow unknown
|
|
19267
19267
|
x: Il({
|
|
@@ -19271,11 +19271,11 @@ function _fe(e) {
|
|
|
19271
19271
|
entry: M,
|
|
19272
19272
|
index: _
|
|
19273
19273
|
}),
|
|
19274
|
-
y:
|
|
19275
|
-
value:
|
|
19274
|
+
y: S ? null : s.scale(C[1]),
|
|
19275
|
+
value: C,
|
|
19276
19276
|
payload: M
|
|
19277
19277
|
} : {
|
|
19278
|
-
x:
|
|
19278
|
+
x: S ? null : c.scale(C[1]),
|
|
19279
19279
|
// @ts-expect-error getCateCoordinateOfLine expects chart data to be an object, we allow unknown
|
|
19280
19280
|
y: Il({
|
|
19281
19281
|
axis: s,
|
|
@@ -19284,7 +19284,7 @@ function _fe(e) {
|
|
|
19284
19284
|
entry: M,
|
|
19285
19285
|
index: _
|
|
19286
19286
|
}),
|
|
19287
|
-
value:
|
|
19287
|
+
value: C,
|
|
19288
19288
|
payload: M
|
|
19289
19289
|
};
|
|
19290
19290
|
}), x;
|
|
@@ -19681,7 +19681,7 @@ function yK(e) {
|
|
|
19681
19681
|
points: t,
|
|
19682
19682
|
props: g
|
|
19683
19683
|
}), t.map((w, x) => {
|
|
19684
|
-
var M = a && c === String(x), _ = M ? a : o,
|
|
19684
|
+
var M = a && c === String(x), _ = M ? a : o, C = Bt(Bt(Bt({
|
|
19685
19685
|
key: "symbol-".concat(x)
|
|
19686
19686
|
}, b), w), {}, {
|
|
19687
19687
|
[cU]: x,
|
|
@@ -19698,7 +19698,7 @@ function yK(e) {
|
|
|
19698
19698
|
}), /* @__PURE__ */ y.createElement(Ffe, qs({
|
|
19699
19699
|
option: _,
|
|
19700
19700
|
isActive: M
|
|
19701
|
-
},
|
|
19701
|
+
}, C)));
|
|
19702
19702
|
}), n && Jn.renderCallByParent(g, t));
|
|
19703
19703
|
}
|
|
19704
19704
|
function lye(e) {
|
|
@@ -19735,9 +19735,9 @@ function lye(e) {
|
|
|
19735
19735
|
size: _(v)
|
|
19736
19736
|
});
|
|
19737
19737
|
}
|
|
19738
|
-
var
|
|
19738
|
+
var C = ju(0, g.size);
|
|
19739
19739
|
return Bt(Bt({}, g), {}, {
|
|
19740
|
-
size:
|
|
19740
|
+
size: C(v)
|
|
19741
19741
|
});
|
|
19742
19742
|
});
|
|
19743
19743
|
return v > 0 && (t.current = m), /* @__PURE__ */ y.createElement(et, null, /* @__PURE__ */ y.createElement(yK, {
|
|
@@ -19831,14 +19831,14 @@ function hye(e) {
|
|
|
19831
19831
|
dataKey: h,
|
|
19832
19832
|
type: a.tooltipType
|
|
19833
19833
|
});
|
|
19834
|
-
var
|
|
19834
|
+
var C = Il({
|
|
19835
19835
|
axis: n,
|
|
19836
19836
|
ticks: i,
|
|
19837
19837
|
bandSize: v,
|
|
19838
19838
|
entry: g,
|
|
19839
19839
|
index: b,
|
|
19840
19840
|
dataKey: l
|
|
19841
|
-
}),
|
|
19841
|
+
}), S = Il({
|
|
19842
19842
|
axis: r,
|
|
19843
19843
|
ticks: c,
|
|
19844
19844
|
bandSize: m,
|
|
@@ -19847,10 +19847,10 @@ function hye(e) {
|
|
|
19847
19847
|
dataKey: d
|
|
19848
19848
|
}), I = M !== "-" ? o.scale(M) : f, L = Math.sqrt(Math.max(I, 0) / Math.PI);
|
|
19849
19849
|
return Bt(Bt({}, g), {}, {
|
|
19850
|
-
cx:
|
|
19851
|
-
cy:
|
|
19852
|
-
x:
|
|
19853
|
-
y:
|
|
19850
|
+
cx: C,
|
|
19851
|
+
cy: S,
|
|
19852
|
+
x: C - L,
|
|
19853
|
+
y: S - L,
|
|
19854
19854
|
width: 2 * L,
|
|
19855
19855
|
height: 2 * L,
|
|
19856
19856
|
size: I,
|
|
@@ -19861,8 +19861,8 @@ function hye(e) {
|
|
|
19861
19861
|
},
|
|
19862
19862
|
tooltipPayload: _,
|
|
19863
19863
|
tooltipPosition: {
|
|
19864
|
-
x:
|
|
19865
|
-
y:
|
|
19864
|
+
x: C,
|
|
19865
|
+
y: S
|
|
19866
19866
|
},
|
|
19867
19867
|
payload: g
|
|
19868
19868
|
}, s && s[b] && s[b].props);
|
|
@@ -20194,14 +20194,14 @@ var Pye = (e) => {
|
|
|
20194
20194
|
var x;
|
|
20195
20195
|
if (!(o !== "auto" || !f || HD(a) || /* @__PURE__ */ Nn(a))) {
|
|
20196
20196
|
var M = i.current, _ = M == null || (x = M.tickRefs) === null || x === void 0 ? void 0 : x.current, {
|
|
20197
|
-
tickSize:
|
|
20198
|
-
tickMargin:
|
|
20197
|
+
tickSize: C,
|
|
20198
|
+
tickMargin: S
|
|
20199
20199
|
} = M.props, I = _ye({
|
|
20200
20200
|
ticks: _,
|
|
20201
20201
|
label: c.current,
|
|
20202
20202
|
labelGapWithTick: 5,
|
|
20203
|
-
tickSize:
|
|
20204
|
-
tickMargin:
|
|
20203
|
+
tickSize: C,
|
|
20204
|
+
tickMargin: S
|
|
20205
20205
|
});
|
|
20206
20206
|
Math.round(f.width) !== Math.round(I) && d(Ofe({
|
|
20207
20207
|
id: n,
|
|
@@ -20315,15 +20315,15 @@ function Rye() {
|
|
|
20315
20315
|
function g(_) {
|
|
20316
20316
|
if (!b) {
|
|
20317
20317
|
if (b = !0, w = _, _ = h(_), p !== void 0 && v.hasValue) {
|
|
20318
|
-
var
|
|
20319
|
-
if (p(
|
|
20320
|
-
return x =
|
|
20318
|
+
var C = v.value;
|
|
20319
|
+
if (p(C, _))
|
|
20320
|
+
return x = C;
|
|
20321
20321
|
}
|
|
20322
20322
|
return x = _;
|
|
20323
20323
|
}
|
|
20324
|
-
if (
|
|
20325
|
-
var
|
|
20326
|
-
return p !== void 0 && p(
|
|
20324
|
+
if (C = x, n(w, _)) return C;
|
|
20325
|
+
var S = h(_);
|
|
20326
|
+
return p !== void 0 && p(C, S) ? (w = _, C) : (w = _, x = S);
|
|
20327
20327
|
}
|
|
20328
20328
|
var b = !1, w, x, M = d === void 0 ? null : d;
|
|
20329
20329
|
return [
|
|
@@ -20375,16 +20375,16 @@ function Oye() {
|
|
|
20375
20375
|
function g(_) {
|
|
20376
20376
|
if (!b) {
|
|
20377
20377
|
if (b = !0, w = _, _ = h(_), p !== void 0 && v.hasValue) {
|
|
20378
|
-
var
|
|
20379
|
-
if (p(
|
|
20380
|
-
return x =
|
|
20378
|
+
var C = v.value;
|
|
20379
|
+
if (p(C, _))
|
|
20380
|
+
return x = C;
|
|
20381
20381
|
}
|
|
20382
20382
|
return x = _;
|
|
20383
20383
|
}
|
|
20384
|
-
if (
|
|
20385
|
-
return
|
|
20386
|
-
var
|
|
20387
|
-
return p !== void 0 && p(
|
|
20384
|
+
if (C = x, n(w, _))
|
|
20385
|
+
return C;
|
|
20386
|
+
var S = h(_);
|
|
20387
|
+
return p !== void 0 && p(C, S) ? (w = _, C) : (w = _, x = S);
|
|
20388
20388
|
}
|
|
20389
20389
|
var b = !1, w, x, M = d === void 0 ? null : d;
|
|
20390
20390
|
return [
|
|
@@ -20928,11 +20928,11 @@ var xve = /* @__PURE__ */ Pt((e, t) => {
|
|
|
20928
20928
|
onTouchStart: m,
|
|
20929
20929
|
style: g,
|
|
20930
20930
|
width: b
|
|
20931
|
-
} = e, w = nt(), [x, M] = Te(null), [_,
|
|
20931
|
+
} = e, w = nt(), [x, M] = Te(null), [_, C] = Te(null);
|
|
20932
20932
|
Tue();
|
|
20933
|
-
var
|
|
20934
|
-
|
|
20935
|
-
}, [
|
|
20933
|
+
var S = vve(), I = ve((T) => {
|
|
20934
|
+
S(T), typeof t == "function" && t(T), M(T), C(T);
|
|
20935
|
+
}, [S, t, M, C]), L = ve((T) => {
|
|
20936
20936
|
w(xK(T)), w(fn({
|
|
20937
20937
|
handler: a,
|
|
20938
20938
|
reactEvent: T
|
|
@@ -21341,7 +21341,7 @@ function zve({
|
|
|
21341
21341
|
}, [s]), _ = ve((P) => {
|
|
21342
21342
|
const Z = P?.activeTooltipIndex ?? 0;
|
|
21343
21343
|
c?.(P?.activePayload?.[0]?.payload, Z);
|
|
21344
|
-
}, [c]),
|
|
21344
|
+
}, [c]), S = {
|
|
21345
21345
|
data: t,
|
|
21346
21346
|
margin: (() => {
|
|
21347
21347
|
switch (e) {
|
|
@@ -21402,7 +21402,7 @@ function zve({
|
|
|
21402
21402
|
return /* @__PURE__ */ G(
|
|
21403
21403
|
$V,
|
|
21404
21404
|
{
|
|
21405
|
-
...
|
|
21405
|
+
...S,
|
|
21406
21406
|
onMouseMove: x,
|
|
21407
21407
|
onMouseLeave: M,
|
|
21408
21408
|
onClick: _,
|
|
@@ -21449,7 +21449,7 @@ function zve({
|
|
|
21449
21449
|
return /* @__PURE__ */ G(
|
|
21450
21450
|
$V,
|
|
21451
21451
|
{
|
|
21452
|
-
...
|
|
21452
|
+
...S,
|
|
21453
21453
|
layout: "vertical",
|
|
21454
21454
|
onMouseMove: x,
|
|
21455
21455
|
onMouseLeave: M,
|
|
@@ -21495,7 +21495,7 @@ function zve({
|
|
|
21495
21495
|
return /* @__PURE__ */ G(
|
|
21496
21496
|
$ve,
|
|
21497
21497
|
{
|
|
21498
|
-
...
|
|
21498
|
+
...S,
|
|
21499
21499
|
onMouseMove: x,
|
|
21500
21500
|
onMouseLeave: M,
|
|
21501
21501
|
onClick: _,
|
|
@@ -21545,7 +21545,7 @@ function zve({
|
|
|
21545
21545
|
return /* @__PURE__ */ G(
|
|
21546
21546
|
Ove,
|
|
21547
21547
|
{
|
|
21548
|
-
...
|
|
21548
|
+
...S,
|
|
21549
21549
|
onMouseMove: x,
|
|
21550
21550
|
onMouseLeave: M,
|
|
21551
21551
|
onClick: _,
|
|
@@ -21584,7 +21584,7 @@ function zve({
|
|
|
21584
21584
|
return /* @__PURE__ */ G(
|
|
21585
21585
|
Tve,
|
|
21586
21586
|
{
|
|
21587
|
-
...
|
|
21587
|
+
...S,
|
|
21588
21588
|
onMouseMove: x,
|
|
21589
21589
|
onMouseLeave: M,
|
|
21590
21590
|
onClick: _,
|
|
@@ -54015,10 +54015,10 @@ var nZ = "CheckboxBubbleInput", rZ = y.forwardRef(
|
|
|
54015
54015
|
const x = window.HTMLInputElement.prototype, _ = Object.getOwnPropertyDescriptor(
|
|
54016
54016
|
x,
|
|
54017
54017
|
"checked"
|
|
54018
|
-
).set,
|
|
54018
|
+
).set, C = !o.current;
|
|
54019
54019
|
if (m !== a && _) {
|
|
54020
|
-
const
|
|
54021
|
-
w.indeterminate = lo(a), _.call(w, lo(a) ? !1 : a), w.dispatchEvent(
|
|
54020
|
+
const S = new Event("click", { bubbles: C });
|
|
54021
|
+
w.indeterminate = lo(a), _.call(w, lo(a) ? !1 : a), w.dispatchEvent(S);
|
|
54022
54022
|
}
|
|
54023
54023
|
}, [p, m, a, o]);
|
|
54024
54024
|
const b = y.useRef(lo(a) ? !1 : a);
|
|
@@ -54121,8 +54121,8 @@ function AA(e) {
|
|
|
54121
54121
|
l.displayName = c;
|
|
54122
54122
|
const d = e + "CollectionItemSlot", h = "data-radix-collection-item", p = /* @__PURE__ */ po(d), f = $.forwardRef(
|
|
54123
54123
|
(m, g) => {
|
|
54124
|
-
const { scope: b, children: w, ...x } = m, M = $.useRef(null), _ = ye(g, M),
|
|
54125
|
-
return $.useEffect(() => (
|
|
54124
|
+
const { scope: b, children: w, ...x } = m, M = $.useRef(null), _ = ye(g, M), C = a(d, b);
|
|
54125
|
+
return $.useEffect(() => (C.itemMap.set(M, { ref: M, ...x }), () => void C.itemMap.delete(M))), /* @__PURE__ */ k(p, { [h]: "", ref: _, children: w });
|
|
54126
54126
|
}
|
|
54127
54127
|
);
|
|
54128
54128
|
f.displayName = d;
|
|
@@ -54133,7 +54133,7 @@ function AA(e) {
|
|
|
54133
54133
|
if (!w) return [];
|
|
54134
54134
|
const x = Array.from(w.querySelectorAll(`[${h}]`));
|
|
54135
54135
|
return Array.from(g.itemMap.values()).sort(
|
|
54136
|
-
(
|
|
54136
|
+
(C, S) => x.indexOf(C.ref.current) - x.indexOf(S.ref.current)
|
|
54137
54137
|
);
|
|
54138
54138
|
}, [g.collectionRef, g.itemMap]);
|
|
54139
54139
|
}
|
|
@@ -54172,7 +54172,7 @@ var Wqe = y.forwardRef((e, t) => {
|
|
|
54172
54172
|
defaultProp: c ?? null,
|
|
54173
54173
|
onChange: s,
|
|
54174
54174
|
caller: ku
|
|
54175
|
-
}), [b, w] = y.useState(!1), x = mt(l), M = iZ(n), _ = y.useRef(!1), [
|
|
54175
|
+
}), [b, w] = y.useState(!1), x = mt(l), M = iZ(n), _ = y.useRef(!1), [C, S] = y.useState(0);
|
|
54176
54176
|
return y.useEffect(() => {
|
|
54177
54177
|
const I = p.current;
|
|
54178
54178
|
if (I)
|
|
@@ -54191,17 +54191,17 @@ var Wqe = y.forwardRef((e, t) => {
|
|
|
54191
54191
|
),
|
|
54192
54192
|
onItemShiftTab: y.useCallback(() => w(!0), []),
|
|
54193
54193
|
onFocusableItemAdd: y.useCallback(
|
|
54194
|
-
() =>
|
|
54194
|
+
() => S((I) => I + 1),
|
|
54195
54195
|
[]
|
|
54196
54196
|
),
|
|
54197
54197
|
onFocusableItemRemove: y.useCallback(
|
|
54198
|
-
() =>
|
|
54198
|
+
() => S((I) => I - 1),
|
|
54199
54199
|
[]
|
|
54200
54200
|
),
|
|
54201
54201
|
children: /* @__PURE__ */ k(
|
|
54202
54202
|
re.div,
|
|
54203
54203
|
{
|
|
54204
|
-
tabIndex: b ||
|
|
54204
|
+
tabIndex: b || C === 0 ? -1 : 0,
|
|
54205
54205
|
"data-orientation": r,
|
|
54206
54206
|
...h,
|
|
54207
54207
|
ref: f,
|
|
@@ -54641,7 +54641,7 @@ var lT = "ScrollArea", [CZ, pQe] = rt(lT), [mHe, Mn] = CZ(lT), SZ = y.forwardRef
|
|
|
54641
54641
|
dir: o,
|
|
54642
54642
|
scrollHideDelay: a = 600,
|
|
54643
54643
|
...i
|
|
54644
|
-
} = e, [c, s] = y.useState(null), [l, d] = y.useState(null), [h, p] = y.useState(null), [f, v] = y.useState(null), [m, g] = y.useState(null), [b, w] = y.useState(0), [x, M] = y.useState(0), [_,
|
|
54644
|
+
} = e, [c, s] = y.useState(null), [l, d] = y.useState(null), [h, p] = y.useState(null), [f, v] = y.useState(null), [m, g] = y.useState(null), [b, w] = y.useState(0), [x, M] = y.useState(0), [_, C] = y.useState(!1), [S, I] = y.useState(!1), L = ye(t, (E) => s(E)), z = So(o);
|
|
54645
54645
|
return /* @__PURE__ */ k(
|
|
54646
54646
|
mHe,
|
|
54647
54647
|
{
|
|
@@ -54657,10 +54657,10 @@ var lT = "ScrollArea", [CZ, pQe] = rt(lT), [mHe, Mn] = CZ(lT), SZ = y.forwardRef
|
|
|
54657
54657
|
scrollbarX: f,
|
|
54658
54658
|
onScrollbarXChange: v,
|
|
54659
54659
|
scrollbarXEnabled: _,
|
|
54660
|
-
onScrollbarXEnabledChange:
|
|
54660
|
+
onScrollbarXEnabledChange: C,
|
|
54661
54661
|
scrollbarY: m,
|
|
54662
54662
|
onScrollbarYChange: g,
|
|
54663
|
-
scrollbarYEnabled:
|
|
54663
|
+
scrollbarYEnabled: S,
|
|
54664
54664
|
onScrollbarYEnabledChange: I,
|
|
54665
54665
|
onCornerWidthChange: w,
|
|
54666
54666
|
onCornerHeightChange: M,
|
|
@@ -54963,7 +54963,7 @@ var gHe = y.forwardRef((e, t) => {
|
|
|
54963
54963
|
onWheelScroll: d,
|
|
54964
54964
|
onResize: h,
|
|
54965
54965
|
...p
|
|
54966
|
-
} = e, f = Mn(ar, n), [v, m] = y.useState(null), g = ye(t, (L) => m(L)), b = y.useRef(null), w = y.useRef(""), x = f.viewport, M = r.content - r.viewport, _ = mt(d),
|
|
54966
|
+
} = e, f = Mn(ar, n), [v, m] = y.useState(null), g = ye(t, (L) => m(L)), b = y.useRef(null), w = y.useRef(""), x = f.viewport, M = r.content - r.viewport, _ = mt(d), C = mt(s), S = OA(h, 10);
|
|
54967
54967
|
function I(L) {
|
|
54968
54968
|
if (b.current) {
|
|
54969
54969
|
const z = L.clientX - b.current.left, E = L.clientY - b.current.top;
|
|
@@ -54976,7 +54976,7 @@ var gHe = y.forwardRef((e, t) => {
|
|
|
54976
54976
|
v?.contains(E) && _(z, M);
|
|
54977
54977
|
};
|
|
54978
54978
|
return document.addEventListener("wheel", L, { passive: !1 }), () => document.removeEventListener("wheel", L, { passive: !1 });
|
|
54979
|
-
}, [x, v, M, _]), y.useEffect(
|
|
54979
|
+
}, [x, v, M, _]), y.useEffect(C, [r, C]), Rl(v, S), Rl(f.content, S), /* @__PURE__ */ k(
|
|
54980
54980
|
wHe,
|
|
54981
54981
|
{
|
|
54982
54982
|
scope: n,
|
|
@@ -54984,7 +54984,7 @@ var gHe = y.forwardRef((e, t) => {
|
|
|
54984
54984
|
hasThumb: o,
|
|
54985
54985
|
onThumbChange: mt(a),
|
|
54986
54986
|
onThumbPointerUp: mt(i),
|
|
54987
|
-
onThumbPositionChange:
|
|
54987
|
+
onThumbPositionChange: C,
|
|
54988
54988
|
onThumbPointerDown: mt(c),
|
|
54989
54989
|
children: /* @__PURE__ */ k(
|
|
54990
54990
|
re.div,
|
|
@@ -55604,19 +55604,19 @@ const FHe = be(
|
|
|
55604
55604
|
children: m,
|
|
55605
55605
|
...g
|
|
55606
55606
|
}, b) => {
|
|
55607
|
-
const [w, x] = y.useState(!1), [M, _] = y.useState(n || r), [
|
|
55607
|
+
const [w, x] = y.useState(!1), [M, _] = y.useState(n || r), [C, S] = y.useState(n || r), [I, L] = y.useState(void 0), z = v ? n || "" : M;
|
|
55608
55608
|
y.useEffect(() => {
|
|
55609
|
-
v && n !== void 0 && (_(n),
|
|
55609
|
+
v && n !== void 0 && (_(n), S(n));
|
|
55610
55610
|
}, [v, n]);
|
|
55611
55611
|
const Z = {
|
|
55612
55612
|
isEditing: w,
|
|
55613
55613
|
value: z,
|
|
55614
|
-
originalValue:
|
|
55614
|
+
originalValue: C,
|
|
55615
55615
|
onEdit: () => {
|
|
55616
|
-
p || (
|
|
55616
|
+
p || (S(z), x(!0), a?.());
|
|
55617
55617
|
},
|
|
55618
55618
|
onCancel: () => {
|
|
55619
|
-
const O =
|
|
55619
|
+
const O = C;
|
|
55620
55620
|
v || _(O), x(!1), i?.(), o?.(O);
|
|
55621
55621
|
},
|
|
55622
55622
|
onSubmit: () => {
|
|
@@ -55727,8 +55727,8 @@ const WHe = y.forwardRef(
|
|
|
55727
55727
|
const M = x.currentTarget.textContent || "";
|
|
55728
55728
|
if (h && M.length > h) {
|
|
55729
55729
|
x.currentTarget.textContent = M.slice(0, h);
|
|
55730
|
-
const _ = document.createRange(),
|
|
55731
|
-
_.selectNodeContents(x.currentTarget), _.collapse(!1),
|
|
55730
|
+
const _ = document.createRange(), C = window.getSelection();
|
|
55731
|
+
_.selectNodeContents(x.currentTarget), _.collapse(!1), C?.removeAllRanges(), C?.addRange(_);
|
|
55732
55732
|
return;
|
|
55733
55733
|
}
|
|
55734
55734
|
i(M);
|
|
@@ -55793,8 +55793,8 @@ const KHe = y.forwardRef(
|
|
|
55793
55793
|
const _ = M.currentTarget.textContent || "";
|
|
55794
55794
|
if (p && _.length > p) {
|
|
55795
55795
|
M.currentTarget.textContent = _.slice(0, p);
|
|
55796
|
-
const
|
|
55797
|
-
|
|
55796
|
+
const C = document.createRange(), S = window.getSelection();
|
|
55797
|
+
C.selectNodeContents(M.currentTarget), C.collapse(!1), S?.removeAllRanges(), S?.addRange(C);
|
|
55798
55798
|
return;
|
|
55799
55799
|
}
|
|
55800
55800
|
c(_);
|
|
@@ -56395,15 +56395,15 @@ var mVe = "DismissableLayer", HR = "dismissableLayer.update", gVe = "dismissable
|
|
|
56395
56395
|
onInteractOutside: i,
|
|
56396
56396
|
onDismiss: c,
|
|
56397
56397
|
...s
|
|
56398
|
-
} = e, l = y.useContext(MX), [d, h] = y.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, f] = y.useState({}), v = ye(t, (
|
|
56399
|
-
const I =
|
|
56400
|
-
!M || L || (o?.(
|
|
56401
|
-
}, p),
|
|
56402
|
-
const I =
|
|
56403
|
-
[...l.branches].some((z) => z.contains(I)) || (a?.(
|
|
56398
|
+
} = e, l = y.useContext(MX), [d, h] = y.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, f] = y.useState({}), v = ye(t, (S) => h(S)), m = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(g), w = d ? m.indexOf(d) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, M = w >= b, _ = wVe((S) => {
|
|
56399
|
+
const I = S.target, L = [...l.branches].some((z) => z.contains(I));
|
|
56400
|
+
!M || L || (o?.(S), i?.(S), S.defaultPrevented || c?.());
|
|
56401
|
+
}, p), C = MVe((S) => {
|
|
56402
|
+
const I = S.target;
|
|
56403
|
+
[...l.branches].some((z) => z.contains(I)) || (a?.(S), i?.(S), S.defaultPrevented || c?.());
|
|
56404
56404
|
}, p);
|
|
56405
|
-
return vVe((
|
|
56406
|
-
w === l.layers.size - 1 && (r?.(
|
|
56405
|
+
return vVe((S) => {
|
|
56406
|
+
w === l.layers.size - 1 && (r?.(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
56407
56407
|
}, p), y.useEffect(() => {
|
|
56408
56408
|
if (d)
|
|
56409
56409
|
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (VV = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), FV(), () => {
|
|
@@ -56412,8 +56412,8 @@ var mVe = "DismissableLayer", HR = "dismissableLayer.update", gVe = "dismissable
|
|
|
56412
56412
|
}, [d, p, n, l]), y.useEffect(() => () => {
|
|
56413
56413
|
d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), FV());
|
|
56414
56414
|
}, [d, l]), y.useEffect(() => {
|
|
56415
|
-
const
|
|
56416
|
-
return document.addEventListener(HR,
|
|
56415
|
+
const S = () => f({});
|
|
56416
|
+
return document.addEventListener(HR, S), () => document.removeEventListener(HR, S);
|
|
56417
56417
|
}, []), /* @__PURE__ */ k(
|
|
56418
56418
|
re.div,
|
|
56419
56419
|
{
|
|
@@ -56423,8 +56423,8 @@ var mVe = "DismissableLayer", HR = "dismissableLayer.update", gVe = "dismissable
|
|
|
56423
56423
|
pointerEvents: x ? M ? "auto" : "none" : void 0,
|
|
56424
56424
|
...e.style
|
|
56425
56425
|
},
|
|
56426
|
-
onFocusCapture: te(e.onFocusCapture,
|
|
56427
|
-
onBlurCapture: te(e.onBlurCapture,
|
|
56426
|
+
onFocusCapture: te(e.onFocusCapture, C.onFocusCapture),
|
|
56427
|
+
onBlurCapture: te(e.onBlurCapture, C.onBlurCapture),
|
|
56428
56428
|
onPointerDownCapture: te(
|
|
56429
56429
|
e.onPointerDownCapture,
|
|
56430
56430
|
_.onPointerDownCapture
|
|
@@ -56919,10 +56919,10 @@ const FVe = (e) => ({
|
|
|
56919
56919
|
const h = SX(d), p = {
|
|
56920
56920
|
x: n,
|
|
56921
56921
|
y: r
|
|
56922
|
-
}, f = bT(o), v = kT(f), m = await i.getDimensions(l), g = f === "y", b = g ? "top" : "left", w = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", M = a.reference[v] + a.reference[f] - p[f] - a.floating[v], _ = p[f] - a.reference[f],
|
|
56923
|
-
let
|
|
56924
|
-
(!
|
|
56925
|
-
const I = M / 2 - _ / 2, L =
|
|
56922
|
+
}, f = bT(o), v = kT(f), m = await i.getDimensions(l), g = f === "y", b = g ? "top" : "left", w = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", M = a.reference[v] + a.reference[f] - p[f] - a.floating[v], _ = p[f] - a.reference[f], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
56923
|
+
let S = C ? C[x] : 0;
|
|
56924
|
+
(!S || !await (i.isElement == null ? void 0 : i.isElement(C))) && (S = c.floating[x] || a.floating[v]);
|
|
56925
|
+
const I = M / 2 - _ / 2, L = S / 2 - m[v] / 2 - 1, z = fo(h[b], L), E = fo(h[w], L), j = z, N = S - m[v] - E, P = S / 2 - m[v] / 2 + I, Z = VR(j, P, N), O = !s.arrow && r1(o) != null && P !== Z && a.reference[v] / 2 - (P < j ? z : E) - m[v] / 2 < 0, X = O ? P < j ? P - j : P - N : 0;
|
|
56926
56926
|
return {
|
|
56927
56927
|
[f]: p[f] + X,
|
|
56928
56928
|
data: {
|
|
@@ -56959,9 +56959,9 @@ const FVe = (e) => ({
|
|
|
56959
56959
|
} = Lr(e, t);
|
|
56960
56960
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
56961
56961
|
return {};
|
|
56962
|
-
const b = Nr(o), w = Xn(c), x = Nr(c) === c, M = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), _ = p || (x || !m ? [MN(c)] : DVe(c)),
|
|
56963
|
-
!p &&
|
|
56964
|
-
const
|
|
56962
|
+
const b = Nr(o), w = Xn(c), x = Nr(c) === c, M = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), _ = p || (x || !m ? [MN(c)] : DVe(c)), C = v !== "none";
|
|
56963
|
+
!p && C && _.push(...qVe(c, m, v, M));
|
|
56964
|
+
const S = [c, ..._], I = await Gd(t, g), L = [];
|
|
56965
56965
|
let z = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
56966
56966
|
if (d && L.push(I[b]), h) {
|
|
56967
56967
|
const P = OVe(o, i, M);
|
|
@@ -56972,7 +56972,7 @@ const FVe = (e) => ({
|
|
|
56972
56972
|
overflows: L
|
|
56973
56973
|
}], !L.every((P) => P <= 0)) {
|
|
56974
56974
|
var E, j;
|
|
56975
|
-
const P = (((E = a.flip) == null ? void 0 : E.index) || 0) + 1, Z =
|
|
56975
|
+
const P = (((E = a.flip) == null ? void 0 : E.index) || 0) + 1, Z = S[P];
|
|
56976
56976
|
if (Z && (!(h === "alignment" ? w !== Xn(Z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
56977
56977
|
// overflows the main axis.
|
|
56978
56978
|
z.every((H) => Xn(H.placement) === w ? H.overflows[0] > 0 : !0)))
|
|
@@ -56991,7 +56991,7 @@ const FVe = (e) => ({
|
|
|
56991
56991
|
case "bestFit": {
|
|
56992
56992
|
var N;
|
|
56993
56993
|
const X = (N = z.filter((H) => {
|
|
56994
|
-
if (
|
|
56994
|
+
if (C) {
|
|
56995
56995
|
const q = Xn(H.placement);
|
|
56996
56996
|
return q === w || // Create a bias to the `y` side axis due to horizontal
|
|
56997
56997
|
// reading directions favoring greater width.
|
|
@@ -57208,8 +57208,8 @@ const WVe = function(e) {
|
|
|
57208
57208
|
}
|
|
57209
57209
|
if (l) {
|
|
57210
57210
|
var b, w;
|
|
57211
|
-
const x = p === "y" ? "width" : "height", M = IX.has(Nr(o)), _ = a.reference[h] - a.floating[x] + (M && ((b = i.offset) == null ? void 0 : b[h]) || 0) + (M ? 0 : g.crossAxis),
|
|
57212
|
-
v < _ ? v = _ : v >
|
|
57211
|
+
const x = p === "y" ? "width" : "height", M = IX.has(Nr(o)), _ = a.reference[h] - a.floating[x] + (M && ((b = i.offset) == null ? void 0 : b[h]) || 0) + (M ? 0 : g.crossAxis), C = a.reference[h] + a.reference[x] + (M ? 0 : ((w = i.offset) == null ? void 0 : w[h]) || 0) - (M ? g.crossAxis : 0);
|
|
57212
|
+
v < _ ? v = _ : v > C && (v = C);
|
|
57213
57213
|
}
|
|
57214
57214
|
return {
|
|
57215
57215
|
[p]: f,
|
|
@@ -57238,16 +57238,16 @@ const WVe = function(e) {
|
|
|
57238
57238
|
} = a.floating;
|
|
57239
57239
|
let g, b;
|
|
57240
57240
|
h === "top" || h === "bottom" ? (g = h, b = p === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (b = h, g = p === "end" ? "top" : "bottom");
|
|
57241
|
-
const w = m - d.top - d.bottom, x = v - d.left - d.right, M = fo(m - d[g], w), _ = fo(v - d[b], x),
|
|
57242
|
-
let
|
|
57243
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = x), (r = t.middlewareData.shift) != null && r.enabled.y && (
|
|
57241
|
+
const w = m - d.top - d.bottom, x = v - d.left - d.right, M = fo(m - d[g], w), _ = fo(v - d[b], x), C = !t.middlewareData.shift;
|
|
57242
|
+
let S = M, I = _;
|
|
57243
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = x), (r = t.middlewareData.shift) != null && r.enabled.y && (S = w), C && !p) {
|
|
57244
57244
|
const z = en(d.left, 0), E = en(d.right, 0), j = en(d.top, 0), N = en(d.bottom, 0);
|
|
57245
|
-
f ? I = v - 2 * (z !== 0 || E !== 0 ? z + E : en(d.left, d.right)) :
|
|
57245
|
+
f ? I = v - 2 * (z !== 0 || E !== 0 ? z + E : en(d.left, d.right)) : S = m - 2 * (j !== 0 || N !== 0 ? j + N : en(d.top, d.bottom));
|
|
57246
57246
|
}
|
|
57247
57247
|
await s({
|
|
57248
57248
|
...t,
|
|
57249
57249
|
availableWidth: I,
|
|
57250
|
-
availableHeight:
|
|
57250
|
+
availableHeight: S
|
|
57251
57251
|
});
|
|
57252
57252
|
const L = await i.getDimensions(c.floating);
|
|
57253
57253
|
return v !== L.width || m !== L.height ? {
|
|
@@ -57683,16 +57683,16 @@ function xFe(e, t) {
|
|
|
57683
57683
|
threshold: en(0, fo(1, s)) || 1
|
|
57684
57684
|
};
|
|
57685
57685
|
let M = !0;
|
|
57686
|
-
function _(
|
|
57687
|
-
const
|
|
57688
|
-
if (
|
|
57686
|
+
function _(C) {
|
|
57687
|
+
const S = C[0].intersectionRatio;
|
|
57688
|
+
if (S !== s) {
|
|
57689
57689
|
if (!M)
|
|
57690
57690
|
return i();
|
|
57691
|
-
|
|
57691
|
+
S ? i(!1, S) : r = setTimeout(() => {
|
|
57692
57692
|
i(!1, 1e-7);
|
|
57693
57693
|
}, 1e3);
|
|
57694
57694
|
}
|
|
57695
|
-
|
|
57695
|
+
S === 1 && !OX(l, e.getBoundingClientRect()) && i(), M = !1;
|
|
57696
57696
|
}
|
|
57697
57697
|
try {
|
|
57698
57698
|
n = new IntersectionObserver(_, {
|
|
@@ -57825,18 +57825,18 @@ function $Fe(e) {
|
|
|
57825
57825
|
}), [p, f] = y.useState(r);
|
|
57826
57826
|
CN(p, r) || f(r);
|
|
57827
57827
|
const [v, m] = y.useState(null), [g, b] = y.useState(null), w = y.useCallback((H) => {
|
|
57828
|
-
H !==
|
|
57828
|
+
H !== C.current && (C.current = H, m(H));
|
|
57829
57829
|
}, []), x = y.useCallback((H) => {
|
|
57830
|
-
H !==
|
|
57831
|
-
}, []), M = a || v, _ = i || g,
|
|
57832
|
-
if (!
|
|
57830
|
+
H !== S.current && (S.current = H, b(H));
|
|
57831
|
+
}, []), M = a || v, _ = i || g, C = y.useRef(null), S = y.useRef(null), I = y.useRef(d), L = s != null, z = fE(s), E = fE(o), j = fE(l), N = y.useCallback(() => {
|
|
57832
|
+
if (!C.current || !S.current)
|
|
57833
57833
|
return;
|
|
57834
57834
|
const H = {
|
|
57835
57835
|
placement: t,
|
|
57836
57836
|
strategy: n,
|
|
57837
57837
|
middleware: p
|
|
57838
57838
|
};
|
|
57839
|
-
E.current && (H.platform = E.current), NFe(
|
|
57839
|
+
E.current && (H.platform = E.current), NFe(C.current, S.current, H).then((q) => {
|
|
57840
57840
|
const ne = {
|
|
57841
57841
|
...q,
|
|
57842
57842
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -57860,15 +57860,15 @@ function $Fe(e) {
|
|
|
57860
57860
|
AL(() => (P.current = !0, () => {
|
|
57861
57861
|
P.current = !1;
|
|
57862
57862
|
}), []), AL(() => {
|
|
57863
|
-
if (M && (
|
|
57863
|
+
if (M && (C.current = M), _ && (S.current = _), M && _) {
|
|
57864
57864
|
if (z.current)
|
|
57865
57865
|
return z.current(M, _, N);
|
|
57866
57866
|
N();
|
|
57867
57867
|
}
|
|
57868
57868
|
}, [M, _, N, z, L]);
|
|
57869
57869
|
const Z = y.useMemo(() => ({
|
|
57870
|
-
reference:
|
|
57871
|
-
floating:
|
|
57870
|
+
reference: C,
|
|
57871
|
+
floating: S,
|
|
57872
57872
|
setReference: w,
|
|
57873
57873
|
setFloating: x
|
|
57874
57874
|
}), [w, x]), O = y.useMemo(() => ({
|
|
@@ -57994,7 +57994,7 @@ var ST = "PopperContent", [BFe, UFe] = zX(ST), FX = y.forwardRef(
|
|
|
57994
57994
|
updatePositionStrategy: f = "optimized",
|
|
57995
57995
|
onPlaced: v,
|
|
57996
57996
|
...m
|
|
57997
|
-
} = e, g = jX(ST, n), [b, w] = y.useState(null), x = ye(t, (D) => w(D)), [M, _] = y.useState(null),
|
|
57997
|
+
} = e, g = jX(ST, n), [b, w] = y.useState(null), x = ye(t, (D) => w(D)), [M, _] = y.useState(null), C = LA(M), S = C?.width ?? 0, I = C?.height ?? 0, L = r + (a !== "center" ? "-" + a : ""), z = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, E = Array.isArray(l) ? l : [l], j = E.length > 0, N = {
|
|
57998
57998
|
padding: z,
|
|
57999
57999
|
boundary: E.filter(WFe),
|
|
58000
58000
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -58026,7 +58026,7 @@ var ST = "PopperContent", [BFe, UFe] = zX(ST), FX = y.forwardRef(
|
|
|
58026
58026
|
}
|
|
58027
58027
|
}),
|
|
58028
58028
|
M && qFe({ element: M, padding: c }),
|
|
58029
|
-
KFe({ arrowWidth:
|
|
58029
|
+
KFe({ arrowWidth: S, arrowHeight: I }),
|
|
58030
58030
|
p && jFe({ strategy: "referenceHidden", ...N })
|
|
58031
58031
|
]
|
|
58032
58032
|
}), [q, ne] = GX(O), ie = mt(v);
|
|
@@ -58385,12 +58385,12 @@ var JX = lBe(), mE = function() {
|
|
|
58385
58385
|
onScrollCapture: mE,
|
|
58386
58386
|
onWheelCapture: mE,
|
|
58387
58387
|
onTouchMoveCapture: mE
|
|
58388
|
-
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children, s = e.className, l = e.removeScrollBar, d = e.enabled, h = e.shards, p = e.sideCar, f = e.noRelative, v = e.noIsolation, m = e.inert, g = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, x = e.gapMode, M = XX(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = p,
|
|
58388
|
+
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children, s = e.className, l = e.removeScrollBar, d = e.enabled, h = e.shards, p = e.sideCar, f = e.noRelative, v = e.noIsolation, m = e.inert, g = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, x = e.gapMode, M = XX(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = p, C = iBe([n, t]), S = Kn(Kn({}, M), o);
|
|
58389
58389
|
return y.createElement(
|
|
58390
58390
|
y.Fragment,
|
|
58391
58391
|
null,
|
|
58392
58392
|
d && y.createElement(_, { sideCar: JX, removeScrollBar: l, shards: h, noRelative: f, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
|
|
58393
|
-
i ? y.cloneElement(y.Children.only(c), Kn(Kn({},
|
|
58393
|
+
i ? y.cloneElement(y.Children.only(c), Kn(Kn({}, S), { ref: C })) : y.createElement(w, Kn({}, S, { className: s, ref: C }), c)
|
|
58394
58394
|
);
|
|
58395
58395
|
});
|
|
58396
58396
|
GA.defaultProps = {
|
|
@@ -58636,13 +58636,13 @@ function RBe(e) {
|
|
|
58636
58636
|
var c = y.useCallback(function(m, g) {
|
|
58637
58637
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
58638
58638
|
return !i.current.allowPinchZoom;
|
|
58639
|
-
var b = l0(m), w = n.current, x = "deltaX" in m ? m.deltaX : w[0] - b[0], M = "deltaY" in m ? m.deltaY : w[1] - b[1], _,
|
|
58640
|
-
if ("touches" in m &&
|
|
58639
|
+
var b = l0(m), w = n.current, x = "deltaX" in m ? m.deltaX : w[0] - b[0], M = "deltaY" in m ? m.deltaY : w[1] - b[1], _, C = m.target, S = Math.abs(x) > Math.abs(M) ? "h" : "v";
|
|
58640
|
+
if ("touches" in m && S === "h" && C.type === "range")
|
|
58641
58641
|
return !1;
|
|
58642
|
-
var I = cF(
|
|
58642
|
+
var I = cF(S, C);
|
|
58643
58643
|
if (!I)
|
|
58644
58644
|
return !0;
|
|
58645
|
-
if (I ? _ =
|
|
58645
|
+
if (I ? _ = S : (_ = S === "v" ? "h" : "v", I = cF(S, C)), !I)
|
|
58646
58646
|
return !1;
|
|
58647
58647
|
if (!r.current && "changedTouches" in m && (x || M) && (r.current = _), !_)
|
|
58648
58648
|
return !0;
|
|
@@ -58727,7 +58727,7 @@ var TBe = [" ", "Enter", "ArrowUp", "ArrowDown"], zBe = [" ", "Enter"], Vs = "Se
|
|
|
58727
58727
|
disabled: p,
|
|
58728
58728
|
required: f,
|
|
58729
58729
|
form: v
|
|
58730
|
-
} = e, m = ZA(t), [g, b] = y.useState(null), [w, x] = y.useState(null), [M, _] = y.useState(!1),
|
|
58730
|
+
} = e, m = ZA(t), [g, b] = y.useState(null), [w, x] = y.useState(null), [M, _] = y.useState(!1), C = So(l), [S, I] = St({
|
|
58731
58731
|
prop: r,
|
|
58732
58732
|
defaultProp: o ?? !1,
|
|
58733
58733
|
onChange: a,
|
|
@@ -58752,9 +58752,9 @@ var TBe = [" ", "Enter", "ArrowUp", "ArrowDown"], zBe = [" ", "Enter"], Vs = "Se
|
|
|
58752
58752
|
contentId: it(),
|
|
58753
58753
|
value: L,
|
|
58754
58754
|
onValueChange: z,
|
|
58755
|
-
open:
|
|
58755
|
+
open: S,
|
|
58756
58756
|
onOpenChange: I,
|
|
58757
|
-
dir:
|
|
58757
|
+
dir: C,
|
|
58758
58758
|
triggerPointerDownPosRef: E,
|
|
58759
58759
|
disabled: p,
|
|
58760
58760
|
children: [
|
|
@@ -58906,7 +58906,7 @@ var Sn = 10, [uY, Po] = a1(Fs), UBe = "SelectContentImpl", GBe = /* @__PURE__ */
|
|
|
58906
58906
|
avoidCollisions: g,
|
|
58907
58907
|
//
|
|
58908
58908
|
...b
|
|
58909
|
-
} = e, w = Ao(Fs, n), [x, M] = y.useState(null), [_,
|
|
58909
|
+
} = e, w = Ao(Fs, n), [x, M] = y.useState(null), [_, C] = y.useState(null), S = ye(t, (D) => M(D)), [I, L] = y.useState(null), [z, E] = y.useState(
|
|
58910
58910
|
null
|
|
58911
58911
|
), j = KA(n), [N, P] = y.useState(!1), Z = y.useRef(!1);
|
|
58912
58912
|
y.useEffect(() => {
|
|
@@ -58981,7 +58981,7 @@ var Sn = 10, [uY, Po] = a1(Fs), UBe = "SelectContentImpl", GBe = /* @__PURE__ */
|
|
|
58981
58981
|
scope: n,
|
|
58982
58982
|
content: x,
|
|
58983
58983
|
viewport: _,
|
|
58984
|
-
onViewportChange:
|
|
58984
|
+
onViewportChange: C,
|
|
58985
58985
|
itemRefCallback: T,
|
|
58986
58986
|
selectedItem: I,
|
|
58987
58987
|
onItemLeave: R,
|
|
@@ -59022,7 +59022,7 @@ var Sn = 10, [uY, Po] = a1(Fs), UBe = "SelectContentImpl", GBe = /* @__PURE__ */
|
|
|
59022
59022
|
...b,
|
|
59023
59023
|
...J,
|
|
59024
59024
|
onPlaced: () => P(!0),
|
|
59025
|
-
ref:
|
|
59025
|
+
ref: S,
|
|
59026
59026
|
style: {
|
|
59027
59027
|
// flex layout so we can place the scroll buttons properly
|
|
59028
59028
|
display: "flex",
|
|
@@ -59054,11 +59054,11 @@ var Sn = 10, [uY, Po] = a1(Fs), UBe = "SelectContentImpl", GBe = /* @__PURE__ */
|
|
|
59054
59054
|
);
|
|
59055
59055
|
hY.displayName = UBe;
|
|
59056
59056
|
var WBe = "SelectItemAlignedPosition", pY = y.forwardRef((e, t) => {
|
|
59057
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Ao(Fs, n), i = Po(Fs, n), [c, s] = y.useState(null), [l, d] = y.useState(null), h = ye(t, (
|
|
59057
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Ao(Fs, n), i = Po(Fs, n), [c, s] = y.useState(null), [l, d] = y.useState(null), h = ye(t, (S) => d(S)), p = KA(n), f = y.useRef(!1), v = y.useRef(!0), { viewport: m, selectedItem: g, selectedItemText: b, focusSelectedItem: w } = i, x = y.useCallback(() => {
|
|
59058
59058
|
if (a.trigger && a.valueNode && c && l && m && g && b) {
|
|
59059
|
-
const
|
|
59059
|
+
const S = a.trigger.getBoundingClientRect(), I = l.getBoundingClientRect(), L = a.valueNode.getBoundingClientRect(), z = b.getBoundingClientRect();
|
|
59060
59060
|
if (a.dir !== "rtl") {
|
|
59061
|
-
const K = z.left - I.left, B = L.left - K, le =
|
|
59061
|
+
const K = z.left - I.left, B = L.left - K, le = S.left - B, ee = S.width + le, $e = Math.max(ee, I.width), Ee = window.innerWidth - Sn, He = qR(B, [
|
|
59062
59062
|
Sn,
|
|
59063
59063
|
// Prevents the content from going off the starting edge of the
|
|
59064
59064
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -59069,13 +59069,13 @@ var WBe = "SelectItemAlignedPosition", pY = y.forwardRef((e, t) => {
|
|
|
59069
59069
|
]);
|
|
59070
59070
|
c.style.minWidth = ee + "px", c.style.left = He + "px";
|
|
59071
59071
|
} else {
|
|
59072
|
-
const K = I.right - z.right, B = window.innerWidth - L.right - K, le = window.innerWidth -
|
|
59072
|
+
const K = I.right - z.right, B = window.innerWidth - L.right - K, le = window.innerWidth - S.right - B, ee = S.width + le, $e = Math.max(ee, I.width), Ee = window.innerWidth - Sn, He = qR(B, [
|
|
59073
59073
|
Sn,
|
|
59074
59074
|
Math.max(Sn, Ee - $e)
|
|
59075
59075
|
]);
|
|
59076
59076
|
c.style.minWidth = ee + "px", c.style.right = He + "px";
|
|
59077
59077
|
}
|
|
59078
|
-
const E = p(), j = window.innerHeight - Sn * 2, N = m.scrollHeight, P = window.getComputedStyle(l), Z = parseInt(P.borderTopWidth, 10), O = parseInt(P.paddingTop, 10), X = parseInt(P.borderBottomWidth, 10), H = parseInt(P.paddingBottom, 10), q = Z + O + N + H + X, ne = Math.min(g.offsetHeight * 5, q), ie = window.getComputedStyle(m), T = parseInt(ie.paddingTop, 10), R = parseInt(ie.paddingBottom, 10), F =
|
|
59078
|
+
const E = p(), j = window.innerHeight - Sn * 2, N = m.scrollHeight, P = window.getComputedStyle(l), Z = parseInt(P.borderTopWidth, 10), O = parseInt(P.paddingTop, 10), X = parseInt(P.borderBottomWidth, 10), H = parseInt(P.paddingBottom, 10), q = Z + O + N + H + X, ne = Math.min(g.offsetHeight * 5, q), ie = window.getComputedStyle(m), T = parseInt(ie.paddingTop, 10), R = parseInt(ie.paddingBottom, 10), F = S.top + S.height / 2 - Sn, V = j - F, J = g.offsetHeight / 2, D = g.offsetTop + J, Y = Z + O + D, U = q - Y;
|
|
59079
59079
|
if (Y <= F) {
|
|
59080
59080
|
const K = E.length > 0 && g === E[E.length - 1].ref.current;
|
|
59081
59081
|
c.style.bottom = "0px";
|
|
@@ -59114,9 +59114,9 @@ var WBe = "SelectItemAlignedPosition", pY = y.forwardRef((e, t) => {
|
|
|
59114
59114
|
tt(() => {
|
|
59115
59115
|
l && _(window.getComputedStyle(l).zIndex);
|
|
59116
59116
|
}, [l]);
|
|
59117
|
-
const
|
|
59118
|
-
(
|
|
59119
|
-
|
|
59117
|
+
const C = y.useCallback(
|
|
59118
|
+
(S) => {
|
|
59119
|
+
S && v.current === !0 && (x(), w?.(), v.current = !1);
|
|
59120
59120
|
},
|
|
59121
59121
|
[x, w]
|
|
59122
59122
|
);
|
|
@@ -59126,7 +59126,7 @@ var WBe = "SelectItemAlignedPosition", pY = y.forwardRef((e, t) => {
|
|
|
59126
59126
|
scope: n,
|
|
59127
59127
|
contentWrapper: c,
|
|
59128
59128
|
shouldExpandOnScrollRef: f,
|
|
59129
|
-
onScrollButtonChange:
|
|
59129
|
+
onScrollButtonChange: C,
|
|
59130
59130
|
children: /* @__PURE__ */ k(
|
|
59131
59131
|
"div",
|
|
59132
59132
|
{
|
|
@@ -59773,7 +59773,7 @@ var [qY, IUe] = XA(jn), [HY, LUe] = XA(
|
|
|
59773
59773
|
let w = g;
|
|
59774
59774
|
const x = 0, M = b - 1, _ = () => {
|
|
59775
59775
|
w = g + 1, w > M && (w = x);
|
|
59776
|
-
},
|
|
59776
|
+
}, C = () => {
|
|
59777
59777
|
w = g - 1, w < x && (w = M);
|
|
59778
59778
|
};
|
|
59779
59779
|
switch (f.key) {
|
|
@@ -59784,20 +59784,20 @@ var [qY, IUe] = XA(jn), [HY, LUe] = XA(
|
|
|
59784
59784
|
w = M;
|
|
59785
59785
|
break;
|
|
59786
59786
|
case "ArrowRight":
|
|
59787
|
-
a === "horizontal" && (h ? _() :
|
|
59787
|
+
a === "horizontal" && (h ? _() : C());
|
|
59788
59788
|
break;
|
|
59789
59789
|
case "ArrowDown":
|
|
59790
59790
|
a === "vertical" && _();
|
|
59791
59791
|
break;
|
|
59792
59792
|
case "ArrowLeft":
|
|
59793
|
-
a === "horizontal" && (h ?
|
|
59793
|
+
a === "horizontal" && (h ? C() : _());
|
|
59794
59794
|
break;
|
|
59795
59795
|
case "ArrowUp":
|
|
59796
|
-
a === "vertical" &&
|
|
59796
|
+
a === "vertical" && C();
|
|
59797
59797
|
break;
|
|
59798
59798
|
}
|
|
59799
|
-
const
|
|
59800
|
-
m[
|
|
59799
|
+
const S = w % b;
|
|
59800
|
+
m[S].ref.current?.focus();
|
|
59801
59801
|
});
|
|
59802
59802
|
return /* @__PURE__ */ k(
|
|
59803
59803
|
PUe,
|
|
@@ -60517,49 +60517,49 @@ var x1 = '[cmdk-group=""]', xE = '[cmdk-group-items=""]', RGe = '[cmdk-group-hea
|
|
|
60517
60517
|
let n = dl(() => {
|
|
60518
60518
|
var T, R;
|
|
60519
60519
|
return { search: "", value: (R = (T = e.value) != null ? T : e.defaultValue) != null ? R : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
60520
|
-
}), r = dl(() => /* @__PURE__ */ new Set()), o = dl(() => /* @__PURE__ */ new Map()), a = dl(() => /* @__PURE__ */ new Map()), i = dl(() => /* @__PURE__ */ new Set()), c = jJ(e), { label: s, children: l, value: d, onValueChange: h, filter: p, shouldFilter: f, loop: v, disablePointerSelection: m = !1, vimBindings: g = !0, ...b } = e, w = it(), x = it(), M = it(), _ = y.useRef(null),
|
|
60520
|
+
}), r = dl(() => /* @__PURE__ */ new Set()), o = dl(() => /* @__PURE__ */ new Map()), a = dl(() => /* @__PURE__ */ new Map()), i = dl(() => /* @__PURE__ */ new Set()), c = jJ(e), { label: s, children: l, value: d, onValueChange: h, filter: p, shouldFilter: f, loop: v, disablePointerSelection: m = !1, vimBindings: g = !0, ...b } = e, w = it(), x = it(), M = it(), _ = y.useRef(null), C = GGe();
|
|
60521
60521
|
Us(() => {
|
|
60522
60522
|
if (d !== void 0) {
|
|
60523
60523
|
let T = d.trim();
|
|
60524
|
-
n.current.value = T,
|
|
60524
|
+
n.current.value = T, S.emit();
|
|
60525
60525
|
}
|
|
60526
60526
|
}, [d]), Us(() => {
|
|
60527
|
-
|
|
60527
|
+
C(6, N);
|
|
60528
60528
|
}, []);
|
|
60529
|
-
let
|
|
60529
|
+
let S = y.useMemo(() => ({ subscribe: (T) => (i.current.add(T), () => i.current.delete(T)), snapshot: () => n.current, setState: (T, R, F) => {
|
|
60530
60530
|
var V, J, D, Y;
|
|
60531
60531
|
if (!Object.is(n.current[T], R)) {
|
|
60532
|
-
if (n.current[T] = R, T === "search") j(), z(),
|
|
60532
|
+
if (n.current[T] = R, T === "search") j(), z(), C(1, E);
|
|
60533
60533
|
else if (T === "value") {
|
|
60534
60534
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
60535
60535
|
let U = document.getElementById(M);
|
|
60536
60536
|
U ? U.focus() : (V = document.getElementById(w)) == null || V.focus();
|
|
60537
60537
|
}
|
|
60538
|
-
if (
|
|
60538
|
+
if (C(7, () => {
|
|
60539
60539
|
var U;
|
|
60540
|
-
n.current.selectedItemId = (U = P()) == null ? void 0 : U.id,
|
|
60541
|
-
}), F ||
|
|
60540
|
+
n.current.selectedItemId = (U = P()) == null ? void 0 : U.id, S.emit();
|
|
60541
|
+
}), F || C(5, N), ((J = c.current) == null ? void 0 : J.value) !== void 0) {
|
|
60542
60542
|
let U = R ?? "";
|
|
60543
60543
|
(Y = (D = c.current).onValueChange) == null || Y.call(D, U);
|
|
60544
60544
|
return;
|
|
60545
60545
|
}
|
|
60546
60546
|
}
|
|
60547
|
-
|
|
60547
|
+
S.emit();
|
|
60548
60548
|
}
|
|
60549
60549
|
}, emit: () => {
|
|
60550
60550
|
i.current.forEach((T) => T());
|
|
60551
60551
|
} }), []), I = y.useMemo(() => ({ value: (T, R, F) => {
|
|
60552
60552
|
var V;
|
|
60553
|
-
R !== ((V = a.current.get(T)) == null ? void 0 : V.value) && (a.current.set(T, { value: R, keywords: F }), n.current.filtered.items.set(T, L(R, F)),
|
|
60554
|
-
z(),
|
|
60553
|
+
R !== ((V = a.current.get(T)) == null ? void 0 : V.value) && (a.current.set(T, { value: R, keywords: F }), n.current.filtered.items.set(T, L(R, F)), C(2, () => {
|
|
60554
|
+
z(), S.emit();
|
|
60555
60555
|
}));
|
|
60556
|
-
}, item: (T, R) => (r.current.add(T), R && (o.current.has(R) ? o.current.get(R).add(T) : o.current.set(R, /* @__PURE__ */ new Set([T]))),
|
|
60557
|
-
j(), z(), n.current.value || E(),
|
|
60556
|
+
}, item: (T, R) => (r.current.add(T), R && (o.current.has(R) ? o.current.get(R).add(T) : o.current.set(R, /* @__PURE__ */ new Set([T]))), C(3, () => {
|
|
60557
|
+
j(), z(), n.current.value || E(), S.emit();
|
|
60558
60558
|
}), () => {
|
|
60559
60559
|
a.current.delete(T), r.current.delete(T), n.current.filtered.items.delete(T);
|
|
60560
60560
|
let F = P();
|
|
60561
|
-
|
|
60562
|
-
j(), F?.getAttribute("id") === T && E(),
|
|
60561
|
+
C(4, () => {
|
|
60562
|
+
j(), F?.getAttribute("id") === T && E(), S.emit();
|
|
60563
60563
|
});
|
|
60564
60564
|
}), group: (T) => (o.current.has(T) || o.current.set(T, /* @__PURE__ */ new Set()), () => {
|
|
60565
60565
|
a.current.delete(T), o.current.delete(T);
|
|
@@ -60595,7 +60595,7 @@ var x1 = '[cmdk-group=""]', xE = '[cmdk-group-items=""]', RGe = '[cmdk-group-hea
|
|
|
60595
60595
|
}
|
|
60596
60596
|
function E() {
|
|
60597
60597
|
let T = Z().find((F) => F.getAttribute("aria-disabled") !== "true"), R = T?.getAttribute(ll);
|
|
60598
|
-
|
|
60598
|
+
S.setState("value", R || void 0);
|
|
60599
60599
|
}
|
|
60600
60600
|
function j() {
|
|
60601
60601
|
var T, R, F, V;
|
|
@@ -60630,17 +60630,17 @@ var x1 = '[cmdk-group=""]', xE = '[cmdk-group-items=""]', RGe = '[cmdk-group-hea
|
|
|
60630
60630
|
}
|
|
60631
60631
|
function O(T) {
|
|
60632
60632
|
let R = Z()[T];
|
|
60633
|
-
R &&
|
|
60633
|
+
R && S.setState("value", R.getAttribute(ll));
|
|
60634
60634
|
}
|
|
60635
60635
|
function X(T) {
|
|
60636
60636
|
var R;
|
|
60637
60637
|
let F = P(), V = Z(), J = V.findIndex((Y) => Y === F), D = V[J + T];
|
|
60638
|
-
(R = c.current) != null && R.loop && (D = J + T < 0 ? V[V.length - 1] : J + T === V.length ? V[0] : V[J + T]), D &&
|
|
60638
|
+
(R = c.current) != null && R.loop && (D = J + T < 0 ? V[V.length - 1] : J + T === V.length ? V[0] : V[J + T]), D && S.setState("value", D.getAttribute(ll));
|
|
60639
60639
|
}
|
|
60640
60640
|
function H(T) {
|
|
60641
60641
|
let R = P(), F = R?.closest(x1), V;
|
|
60642
60642
|
for (; F && !V; ) F = T > 0 ? BGe(F, x1) : UGe(F, x1), V = F?.querySelector(hF);
|
|
60643
|
-
V ?
|
|
60643
|
+
V ? S.setState("value", V.getAttribute(ll)) : X(T);
|
|
60644
60644
|
}
|
|
60645
60645
|
let q = () => O(Z().length - 1), ne = (T) => {
|
|
60646
60646
|
T.preventDefault(), T.metaKey ? q() : T.altKey ? H(1) : X(1);
|
|
@@ -60687,21 +60687,21 @@ var x1 = '[cmdk-group=""]', xE = '[cmdk-group-items=""]', RGe = '[cmdk-group-hea
|
|
|
60687
60687
|
}
|
|
60688
60688
|
}
|
|
60689
60689
|
}
|
|
60690
|
-
} }, y.createElement("label", { "cmdk-label": "", htmlFor: I.inputId, id: I.labelId, style: KGe }, s), tP(e, (T) => y.createElement(DJ.Provider, { value:
|
|
60690
|
+
} }, y.createElement("label", { "cmdk-label": "", htmlFor: I.inputId, id: I.labelId, style: KGe }, s), tP(e, (T) => y.createElement(DJ.Provider, { value: S }, y.createElement(OJ.Provider, { value: I }, T))));
|
|
60691
60691
|
}), DGe = y.forwardRef((e, t) => {
|
|
60692
60692
|
var n, r;
|
|
60693
60693
|
let o = it(), a = y.useRef(null), i = y.useContext(TJ), c = Su(), s = jJ(e), l = (r = (n = s.current) == null ? void 0 : n.forceMount) != null ? r : i?.forceMount;
|
|
60694
60694
|
Us(() => {
|
|
60695
60695
|
if (!l) return c.item(o, i?.id);
|
|
60696
60696
|
}, [l]);
|
|
60697
|
-
let d = qJ(o, a, [e.value, e.children, a], e.keywords), h = OT(), p = vo((
|
|
60697
|
+
let d = qJ(o, a, [e.value, e.children, a], e.keywords), h = OT(), p = vo((C) => C.value && C.value === d.current), f = vo((C) => l || c.filter() === !1 ? !0 : C.search ? C.filtered.items.get(o) > 0 : !0);
|
|
60698
60698
|
y.useEffect(() => {
|
|
60699
|
-
let
|
|
60700
|
-
if (!(!
|
|
60699
|
+
let C = a.current;
|
|
60700
|
+
if (!(!C || e.disabled)) return C.addEventListener(eO, v), () => C.removeEventListener(eO, v);
|
|
60701
60701
|
}, [f, e.onSelect, e.disabled]);
|
|
60702
60702
|
function v() {
|
|
60703
|
-
var
|
|
60704
|
-
m(), (
|
|
60703
|
+
var C, S;
|
|
60704
|
+
m(), (S = (C = s.current).onSelect) == null || S.call(C, d.current);
|
|
60705
60705
|
}
|
|
60706
60706
|
function m() {
|
|
60707
60707
|
h.setState("value", d.current, !0);
|
|
@@ -61449,25 +61449,25 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61449
61449
|
innerHeight: window.innerHeight
|
|
61450
61450
|
} : void 0);
|
|
61451
61451
|
$.useEffect(() => {
|
|
61452
|
-
function
|
|
61452
|
+
function S() {
|
|
61453
61453
|
f({
|
|
61454
61454
|
innerWidth: window.innerWidth,
|
|
61455
61455
|
innerHeight: window.innerHeight
|
|
61456
61456
|
});
|
|
61457
61457
|
}
|
|
61458
|
-
return window.addEventListener("resize",
|
|
61458
|
+
return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
61459
61459
|
}, []);
|
|
61460
61460
|
const v = $.useMemo(() => d === n?.[n.length - 1] || null, [
|
|
61461
61461
|
n,
|
|
61462
61462
|
d
|
|
61463
61463
|
]), m = $.useMemo(() => {
|
|
61464
|
-
var
|
|
61465
|
-
return (
|
|
61464
|
+
var S;
|
|
61465
|
+
return (S = n?.findIndex((I) => I === d)) != null ? S : null;
|
|
61466
61466
|
}, [
|
|
61467
61467
|
n,
|
|
61468
61468
|
d
|
|
61469
61469
|
]), g = n && n.length > 0 && (a || a === 0) && !Number.isNaN(a) && n[a] === d || !n, b = $.useMemo(() => {
|
|
61470
|
-
const
|
|
61470
|
+
const S = s ? {
|
|
61471
61471
|
width: s.getBoundingClientRect().width,
|
|
61472
61472
|
height: s.getBoundingClientRect().height
|
|
61473
61473
|
} : typeof window < "u" ? {
|
|
@@ -61482,11 +61482,11 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61482
61482
|
const z = typeof L == "string";
|
|
61483
61483
|
let E = 0;
|
|
61484
61484
|
if (z && (E = parseInt(L, 10)), ot(c)) {
|
|
61485
|
-
const N = z ? E : p ? L *
|
|
61486
|
-
return p ? c === "bottom" ?
|
|
61485
|
+
const N = z ? E : p ? L * S.height : 0;
|
|
61486
|
+
return p ? c === "bottom" ? S.height - N : -S.height + N : N;
|
|
61487
61487
|
}
|
|
61488
|
-
const j = z ? E : p ? L *
|
|
61489
|
-
return p ? c === "right" ?
|
|
61488
|
+
const j = z ? E : p ? L * S.width : 0;
|
|
61489
|
+
return p ? c === "right" ? S.width - j : -S.width + j : j;
|
|
61490
61490
|
})) != null ? I : [];
|
|
61491
61491
|
}, [
|
|
61492
61492
|
n,
|
|
@@ -61495,12 +61495,12 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61495
61495
|
]), w = $.useMemo(() => m !== null ? b?.[m] : null, [
|
|
61496
61496
|
b,
|
|
61497
61497
|
m
|
|
61498
|
-
]), x = $.useCallback((
|
|
61498
|
+
]), x = $.useCallback((S) => {
|
|
61499
61499
|
var I;
|
|
61500
|
-
const L = (I = b?.findIndex((z) => z ===
|
|
61500
|
+
const L = (I = b?.findIndex((z) => z === S)) != null ? I : null;
|
|
61501
61501
|
i(L), dt(r.current, {
|
|
61502
61502
|
transition: `transform ${Xe.DURATION}s cubic-bezier(${Xe.EASE.join(",")})`,
|
|
61503
|
-
transform: ot(c) ? `translate3d(0, ${
|
|
61503
|
+
transform: ot(c) ? `translate3d(0, ${S}px, 0)` : `translate3d(${S}px, 0, 0)`
|
|
61504
61504
|
}), b && L !== b.length - 1 && a !== void 0 && L !== a && L < a ? dt(o.current, {
|
|
61505
61505
|
transition: `opacity ${Xe.DURATION}s cubic-bezier(${Xe.EASE.join(",")})`,
|
|
61506
61506
|
opacity: "0"
|
|
@@ -61518,8 +61518,8 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61518
61518
|
]);
|
|
61519
61519
|
$.useEffect(() => {
|
|
61520
61520
|
if (d || e) {
|
|
61521
|
-
var
|
|
61522
|
-
const I = (
|
|
61521
|
+
var S;
|
|
61522
|
+
const I = (S = n?.findIndex((L) => L === e || L === d)) != null ? S : -1;
|
|
61523
61523
|
b && I !== -1 && typeof b[I] == "number" && x(b[I]);
|
|
61524
61524
|
}
|
|
61525
61525
|
}, [
|
|
@@ -61529,9 +61529,9 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61529
61529
|
b,
|
|
61530
61530
|
x
|
|
61531
61531
|
]);
|
|
61532
|
-
function M({ draggedDistance:
|
|
61532
|
+
function M({ draggedDistance: S, closeDrawer: I, velocity: L, dismissible: z }) {
|
|
61533
61533
|
if (a === void 0) return;
|
|
61534
|
-
const E = c === "bottom" || c === "right" ? (w ?? 0) -
|
|
61534
|
+
const E = c === "bottom" || c === "right" ? (w ?? 0) - S : (w ?? 0) + S, j = m === a - 1, N = m === 0, P = S > 0;
|
|
61535
61535
|
if (j && dt(o.current, {
|
|
61536
61536
|
transition: `opacity ${Xe.DURATION}s cubic-bezier(${Xe.EASE.join(",")})`
|
|
61537
61537
|
}), !l && L > 2 && !P) {
|
|
@@ -61543,7 +61543,7 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61543
61543
|
return;
|
|
61544
61544
|
}
|
|
61545
61545
|
const Z = b?.reduce((X, H) => typeof X != "number" || typeof H != "number" ? X : Math.abs(H - E) < Math.abs(X - E) ? H : X), O = ot(c) ? window.innerHeight : window.innerWidth;
|
|
61546
|
-
if (L > rQ && Math.abs(
|
|
61546
|
+
if (L > rQ && Math.abs(S) < O * 0.4) {
|
|
61547
61547
|
const X = P ? 1 : -1;
|
|
61548
61548
|
if (X > 0 && v && n) {
|
|
61549
61549
|
x(b[n.length - 1]);
|
|
@@ -61555,28 +61555,28 @@ function LWe({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
61555
61555
|
}
|
|
61556
61556
|
x(Z);
|
|
61557
61557
|
}
|
|
61558
|
-
function _({ draggedDistance:
|
|
61558
|
+
function _({ draggedDistance: S }) {
|
|
61559
61559
|
if (w === null) return;
|
|
61560
|
-
const I = c === "bottom" || c === "right" ? w -
|
|
61560
|
+
const I = c === "bottom" || c === "right" ? w - S : w + S;
|
|
61561
61561
|
(c === "bottom" || c === "right") && I < b[b.length - 1] || (c === "top" || c === "left") && I > b[b.length - 1] || dt(r.current, {
|
|
61562
61562
|
transform: ot(c) ? `translate3d(0, ${I}px, 0)` : `translate3d(${I}px, 0, 0)`
|
|
61563
61563
|
});
|
|
61564
61564
|
}
|
|
61565
|
-
function S
|
|
61565
|
+
function C(S, I) {
|
|
61566
61566
|
if (!n || typeof m != "number" || !b || a === void 0) return null;
|
|
61567
61567
|
const L = m === a - 1;
|
|
61568
61568
|
if (m >= a && I)
|
|
61569
61569
|
return 0;
|
|
61570
61570
|
if (L && !I) return 1;
|
|
61571
61571
|
if (!g && !L) return null;
|
|
61572
|
-
const E = L ? m + 1 : m - 1, j = L ? b[E] - b[E - 1] : b[E + 1] - b[E], N =
|
|
61572
|
+
const E = L ? m + 1 : m - 1, j = L ? b[E] - b[E - 1] : b[E + 1] - b[E], N = S / Math.abs(j);
|
|
61573
61573
|
return L ? 1 - N : N;
|
|
61574
61574
|
}
|
|
61575
61575
|
return {
|
|
61576
61576
|
isLastSnapPoint: v,
|
|
61577
61577
|
activeSnapPoint: d,
|
|
61578
61578
|
shouldFade: g,
|
|
61579
|
-
getPercentageDragged:
|
|
61579
|
+
getPercentageDragged: C,
|
|
61580
61580
|
setActiveSnapPoint: h,
|
|
61581
61581
|
activeSnapPointIndex: m,
|
|
61582
61582
|
onRelease: M,
|
|
@@ -61694,7 +61694,7 @@ function PWe({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRe
|
|
|
61694
61694
|
restorePositionSetting: d
|
|
61695
61695
|
};
|
|
61696
61696
|
}
|
|
61697
|
-
function $We({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: a, shouldScaleBackground: i = !1, setBackgroundColorOnScale: c = !0, closeThreshold: s = CWe, scrollLockTimeout: l = SWe, dismissible: d = !0, handleOnly: h = !1, fadeFromIndex: p = a && a.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: m, modal: g = !0, onClose: b, nested: w, noBodyStyles: x = !1, direction: M = "bottom", defaultOpen: _ = !1, disablePreventScroll:
|
|
61697
|
+
function $We({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: a, shouldScaleBackground: i = !1, setBackgroundColorOnScale: c = !0, closeThreshold: s = CWe, scrollLockTimeout: l = SWe, dismissible: d = !0, handleOnly: h = !1, fadeFromIndex: p = a && a.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: m, modal: g = !0, onClose: b, nested: w, noBodyStyles: x = !1, direction: M = "bottom", defaultOpen: _ = !1, disablePreventScroll: C = !0, snapToSequentialPoint: S = !1, preventScrollRestoration: I = !1, repositionInputs: L = !0, onAnimationEnd: z, container: E, autoFocus: j = !1 }) {
|
|
61698
61698
|
var N, P;
|
|
61699
61699
|
const [Z = !1, O] = iQ({
|
|
61700
61700
|
defaultProp: _,
|
|
@@ -61718,10 +61718,10 @@ function $We({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
|
|
|
61718
61718
|
onSnapPointChange: Ye,
|
|
61719
61719
|
direction: M,
|
|
61720
61720
|
container: E,
|
|
61721
|
-
snapToSequentialPoint:
|
|
61721
|
+
snapToSequentialPoint: S
|
|
61722
61722
|
});
|
|
61723
61723
|
mWe({
|
|
61724
|
-
isDisabled: !Z || q || !g || ie || !X || !L || !
|
|
61724
|
+
isDisabled: !Z || q || !g || ie || !X || !L || !C
|
|
61725
61725
|
});
|
|
61726
61726
|
const { restorePositionSetting: wP } = PWe({
|
|
61727
61727
|
isOpen: Z,
|
|
@@ -62012,7 +62012,7 @@ const cQ = /* @__PURE__ */ $.forwardRef(function({ ...e }, t) {
|
|
|
62012
62012
|
});
|
|
62013
62013
|
cQ.displayName = "Drawer.Overlay";
|
|
62014
62014
|
const sQ = /* @__PURE__ */ $.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
|
|
62015
|
-
const { drawerRef: a, onPress: i, onRelease: c, onDrag: s, keyboardIsOpen: l, snapPointsOffset: d, activeSnapPointIndex: h, modal: p, isOpen: f, direction: v, snapPoints: m, container: g, handleOnly: b, shouldAnimate: w, autoFocus: x } = Lu(), [M, _] = $.useState(!1),
|
|
62015
|
+
const { drawerRef: a, onPress: i, onRelease: c, onDrag: s, keyboardIsOpen: l, snapPointsOffset: d, activeSnapPointIndex: h, modal: p, isOpen: f, direction: v, snapPoints: m, container: g, handleOnly: b, shouldAnimate: w, autoFocus: x } = Lu(), [M, _] = $.useState(!1), C = tQ(o, a), S = $.useRef(null), I = $.useRef(null), L = $.useRef(!1), z = m && m.length > 0;
|
|
62016
62016
|
AWe();
|
|
62017
62017
|
const E = (N, P, Z = 0) => {
|
|
62018
62018
|
if (L.current) return !0;
|
|
@@ -62033,7 +62033,7 @@ const sQ = /* @__PURE__ */ $.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
62033
62033
|
});
|
|
62034
62034
|
}, []);
|
|
62035
62035
|
function j(N) {
|
|
62036
|
-
|
|
62036
|
+
S.current = null, L.current = !1, c(N);
|
|
62037
62037
|
}
|
|
62038
62038
|
return /* @__PURE__ */ $.createElement($o, {
|
|
62039
62039
|
"data-vaul-drawer-direction": v,
|
|
@@ -62043,13 +62043,13 @@ const sQ = /* @__PURE__ */ $.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
62043
62043
|
"data-vaul-custom-container": g ? "true" : "false",
|
|
62044
62044
|
"data-vaul-animate": w?.current ? "true" : "false",
|
|
62045
62045
|
...r,
|
|
62046
|
-
ref:
|
|
62046
|
+
ref: C,
|
|
62047
62047
|
style: d && d.length > 0 ? {
|
|
62048
62048
|
"--snap-point-height": `${d[h ?? 0]}px`,
|
|
62049
62049
|
...t
|
|
62050
62050
|
} : t,
|
|
62051
62051
|
onPointerDown: (N) => {
|
|
62052
|
-
b || (r.onPointerDown == null || r.onPointerDown.call(r, N),
|
|
62052
|
+
b || (r.onPointerDown == null || r.onPointerDown.call(r, N), S.current = {
|
|
62053
62053
|
x: N.pageX,
|
|
62054
62054
|
y: N.pageY
|
|
62055
62055
|
}, i(N));
|
|
@@ -62071,15 +62071,15 @@ const sQ = /* @__PURE__ */ $.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
62071
62071
|
}
|
|
62072
62072
|
},
|
|
62073
62073
|
onPointerMove: (N) => {
|
|
62074
|
-
if (I.current = N, b || (r.onPointerMove == null || r.onPointerMove.call(r, N), !
|
|
62075
|
-
const P = N.pageY -
|
|
62074
|
+
if (I.current = N, b || (r.onPointerMove == null || r.onPointerMove.call(r, N), !S.current)) return;
|
|
62075
|
+
const P = N.pageY - S.current.y, Z = N.pageX - S.current.x, O = N.pointerType === "touch" ? 10 : 2;
|
|
62076
62076
|
E({
|
|
62077
62077
|
x: Z,
|
|
62078
62078
|
y: P
|
|
62079
|
-
}, v, O) ? s(N) : (Math.abs(Z) > O || Math.abs(P) > O) && (
|
|
62079
|
+
}, v, O) ? s(N) : (Math.abs(Z) > O || Math.abs(P) > O) && (S.current = null);
|
|
62080
62080
|
},
|
|
62081
62081
|
onPointerUp: (N) => {
|
|
62082
|
-
r.onPointerUp == null || r.onPointerUp.call(r, N),
|
|
62082
|
+
r.onPointerUp == null || r.onPointerUp.call(r, N), S.current = null, L.current = !1, c(N);
|
|
62083
62083
|
},
|
|
62084
62084
|
onPointerOut: (N) => {
|
|
62085
62085
|
r.onPointerOut == null || r.onPointerOut.call(r, N), j(I.current);
|
|
@@ -62114,10 +62114,10 @@ const EWe = 250, RWe = 120, OWe = /* @__PURE__ */ $.forwardRef(function({ preven
|
|
|
62114
62114
|
o();
|
|
62115
62115
|
return;
|
|
62116
62116
|
}
|
|
62117
|
-
const _ = i.findIndex((
|
|
62117
|
+
const _ = i.findIndex((S) => S === c);
|
|
62118
62118
|
if (_ === -1) return;
|
|
62119
|
-
const
|
|
62120
|
-
s(
|
|
62119
|
+
const C = i[_ + 1];
|
|
62120
|
+
s(C);
|
|
62121
62121
|
}
|
|
62122
62122
|
function w() {
|
|
62123
62123
|
v.current = window.setTimeout(() => {
|
|
@@ -62535,15 +62535,15 @@ var Kd = "Tooltip", [XWe, sP] = iP(Kd), hQ = (e) => {
|
|
|
62535
62535
|
} = e, s = FT(Kd, e.__scopeTooltip), l = cP(t), [d, h] = y.useState(null), p = it(), f = y.useRef(0), v = i ?? s.disableHoverableContent, m = c ?? s.delayDuration, g = y.useRef(!1), [b, w] = St({
|
|
62536
62536
|
prop: r,
|
|
62537
62537
|
defaultProp: o ?? !1,
|
|
62538
|
-
onChange: (
|
|
62539
|
-
|
|
62538
|
+
onChange: (S) => {
|
|
62539
|
+
S ? (s.onOpen(), document.dispatchEvent(new CustomEvent(rO))) : s.onClose(), a?.(S);
|
|
62540
62540
|
},
|
|
62541
62541
|
caller: Kd
|
|
62542
62542
|
}), x = y.useMemo(() => b ? g.current ? "delayed-open" : "instant-open" : "closed", [b]), M = y.useCallback(() => {
|
|
62543
62543
|
window.clearTimeout(f.current), f.current = 0, g.current = !1, w(!0);
|
|
62544
62544
|
}, [w]), _ = y.useCallback(() => {
|
|
62545
62545
|
window.clearTimeout(f.current), f.current = 0, w(!1);
|
|
62546
|
-
}, [w]),
|
|
62546
|
+
}, [w]), C = y.useCallback(() => {
|
|
62547
62547
|
window.clearTimeout(f.current), f.current = window.setTimeout(() => {
|
|
62548
62548
|
g.current = !0, w(!0), f.current = 0;
|
|
62549
62549
|
}, m);
|
|
@@ -62560,8 +62560,8 @@ var Kd = "Tooltip", [XWe, sP] = iP(Kd), hQ = (e) => {
|
|
|
62560
62560
|
trigger: d,
|
|
62561
62561
|
onTriggerChange: h,
|
|
62562
62562
|
onTriggerEnter: y.useCallback(() => {
|
|
62563
|
-
s.isOpenDelayedRef.current ?
|
|
62564
|
-
}, [s.isOpenDelayedRef,
|
|
62563
|
+
s.isOpenDelayedRef.current ? C() : M();
|
|
62564
|
+
}, [s.isOpenDelayedRef, C, M]),
|
|
62565
62565
|
onTriggerLeave: y.useCallback(() => {
|
|
62566
62566
|
v ? _() : (window.clearTimeout(f.current), f.current = 0);
|
|
62567
62567
|
}, [_, v]),
|
|
@@ -63160,59 +63160,144 @@ const RKe = be(
|
|
|
63160
63160
|
({
|
|
63161
63161
|
asChild: e = !1,
|
|
63162
63162
|
isActive: t = !1,
|
|
63163
|
-
variant: n = "
|
|
63163
|
+
variant: n = "enhanced",
|
|
63164
63164
|
size: r = "default",
|
|
63165
63165
|
tooltip: o,
|
|
63166
|
-
|
|
63167
|
-
|
|
63168
|
-
|
|
63169
|
-
|
|
63170
|
-
|
|
63166
|
+
enhancedHover: a = !0,
|
|
63167
|
+
preserveActiveOnFocus: i = !0,
|
|
63168
|
+
className: c,
|
|
63169
|
+
onMouseEnter: s,
|
|
63170
|
+
onMouseLeave: l,
|
|
63171
|
+
onFocus: d,
|
|
63172
|
+
onBlur: h,
|
|
63173
|
+
...p
|
|
63174
|
+
}, f) => {
|
|
63175
|
+
const v = e ? "span" : "button", { isMobile: m, state: g } = lP(), [b, w] = y.useState(!1), [x, M] = y.useState(!1), _ = y.useCallback(
|
|
63176
|
+
(E) => {
|
|
63177
|
+
a && w(!0), s?.(E);
|
|
63178
|
+
},
|
|
63179
|
+
[a, s]
|
|
63180
|
+
), C = y.useCallback(
|
|
63181
|
+
(E) => {
|
|
63182
|
+
a && w(!1), l?.(E);
|
|
63183
|
+
},
|
|
63184
|
+
[a, l]
|
|
63185
|
+
), S = y.useCallback(
|
|
63186
|
+
(E) => {
|
|
63187
|
+
a && M(!0), d?.(E);
|
|
63188
|
+
},
|
|
63189
|
+
[a, d]
|
|
63190
|
+
), I = y.useCallback(
|
|
63191
|
+
(E) => {
|
|
63192
|
+
a && M(!1), h?.(E);
|
|
63193
|
+
},
|
|
63194
|
+
[a, h]
|
|
63195
|
+
), L = y.useMemo(() => n !== "enhanced" ? RKe({ variant: "default", size: r }) : A(
|
|
63196
|
+
// Base button styles
|
|
63197
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
63198
|
+
// Size variants
|
|
63199
|
+
r === "sm" && "h-7 text-body-sm py-1",
|
|
63200
|
+
r === "default" && "h-8",
|
|
63201
|
+
r === "lg" && "h-12 py-3 text-body-lg group-data-[collapsible=icon]:!size-8",
|
|
63202
|
+
// Enhanced hover behavior - only when hovered and not focused
|
|
63203
|
+
b && !x && "bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63204
|
+
// Focus styles - clean focus for non-active items
|
|
63205
|
+
x && !t && "bg-transparent ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63206
|
+
// Active item focus - preserve brand background when focused
|
|
63207
|
+
x && t && i && [
|
|
63208
|
+
"bg-[var(--color-background-brand-selected)]",
|
|
63209
|
+
"text-[var(--color-text-brand)]",
|
|
63210
|
+
"ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63211
|
+
"[&>svg]:text-[var(--color-text-brand)]"
|
|
63212
|
+
],
|
|
63213
|
+
// Active item styles (non-focus state)
|
|
63214
|
+
t && !x && [
|
|
63215
|
+
"bg-[var(--color-background-brand-selected)]",
|
|
63216
|
+
"text-[var(--color-text-brand)]",
|
|
63217
|
+
"font-medium",
|
|
63218
|
+
"[&>svg]:text-[var(--color-text-brand)]"
|
|
63219
|
+
],
|
|
63220
|
+
// Active item hover (when active but not focused)
|
|
63221
|
+
t && b && !x && [
|
|
63222
|
+
"bg-[var(--color-background-brand-selected-hovered)]",
|
|
63223
|
+
"text-[var(--color-text-brand-hovered)]",
|
|
63224
|
+
"[&>svg]:text-[var(--color-icon-brand-hover)]"
|
|
63225
|
+
],
|
|
63226
|
+
// Open state (for collapsible items)
|
|
63227
|
+
"data-[state=open]:bg-[var(--color-surface-secondary)]",
|
|
63228
|
+
// Collapsed sidebar styles
|
|
63229
|
+
"group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:justify-center"
|
|
63230
|
+
), [n, r, b, x, t, i]), z = /* @__PURE__ */ k(
|
|
63231
|
+
v,
|
|
63171
63232
|
{
|
|
63172
|
-
ref:
|
|
63233
|
+
ref: f,
|
|
63173
63234
|
"data-sidebar": "menu-button",
|
|
63174
63235
|
"data-size": r,
|
|
63175
63236
|
"data-active": t,
|
|
63176
|
-
className: A(
|
|
63177
|
-
|
|
63237
|
+
className: A(L, c),
|
|
63238
|
+
onMouseEnter: a ? _ : s,
|
|
63239
|
+
onMouseLeave: a ? C : l,
|
|
63240
|
+
onFocus: a ? S : d,
|
|
63241
|
+
onBlur: a ? I : h,
|
|
63242
|
+
...p
|
|
63178
63243
|
}
|
|
63179
63244
|
);
|
|
63180
63245
|
return o ? (typeof o == "string" && (o = {
|
|
63181
63246
|
children: o
|
|
63182
63247
|
}), /* @__PURE__ */ G(gQ, { children: [
|
|
63183
|
-
/* @__PURE__ */ k(kQ, { asChild: !0, children:
|
|
63248
|
+
/* @__PURE__ */ k(kQ, { asChild: !0, children: z }),
|
|
63184
63249
|
/* @__PURE__ */ k(
|
|
63185
63250
|
BT,
|
|
63186
63251
|
{
|
|
63187
63252
|
side: "right",
|
|
63188
63253
|
align: "center",
|
|
63189
|
-
hidden:
|
|
63254
|
+
hidden: g !== "collapsed" || m,
|
|
63190
63255
|
className: "z-50 overflow-hidden rounded-md bg-[var(--color-surface-primary)] px-3 py-1.5 text-xs text-[var(--color-text-primary)] border border-[var(--color-border-primary-subtle)] shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
63191
63256
|
...o
|
|
63192
63257
|
}
|
|
63193
63258
|
)
|
|
63194
|
-
] })) :
|
|
63259
|
+
] })) : z;
|
|
63195
63260
|
}
|
|
63196
63261
|
);
|
|
63197
63262
|
OKe.displayName = "SidebarMenuButton";
|
|
63198
|
-
const DKe = y.forwardRef(({ className: e, showOnHover: t = !1,
|
|
63263
|
+
const DKe = y.forwardRef(({ className: e, showOnHover: t = !1, size: n = "md", ...r }, o) => /* @__PURE__ */ k(
|
|
63199
63264
|
$t,
|
|
63200
63265
|
{
|
|
63201
|
-
ref:
|
|
63266
|
+
ref: o,
|
|
63202
63267
|
"data-sidebar": "menu-action",
|
|
63203
63268
|
variant: "ghost",
|
|
63204
63269
|
size: "sm",
|
|
63205
63270
|
className: A(
|
|
63206
|
-
|
|
63207
|
-
|
|
63271
|
+
// Base positioning and styling - Fixed inconsistencies
|
|
63272
|
+
"absolute right-1 flex aspect-square items-center justify-center rounded-md p-0",
|
|
63273
|
+
"text-[var(--color-text-secondary)] outline-none transition-all duration-150 ease-in-out",
|
|
63274
|
+
"hover:bg-[var(--color-background-neutral-subtle-hovered)] hover:text-[var(--color-text-primary)]",
|
|
63275
|
+
"focus-visible:ring-2 focus-visible:ring-[var(--color-border-focused)]",
|
|
63276
|
+
"peer-hover/menu-button:text-[var(--color-text-primary)]",
|
|
63277
|
+
"enabled:active:bg-[var(--grey-alpha-100)] enabled:active:translate-y-px",
|
|
63278
|
+
"[&>svg]:size-4 [&>svg]:shrink-0",
|
|
63279
|
+
// Consistent sizing - Fixed w-5 -> w-6 issue
|
|
63280
|
+
"w-6 h-6",
|
|
63281
|
+
// Improved positioning - Fixed top-1.5 -> top-1 issue
|
|
63282
|
+
"top-1",
|
|
63283
|
+
// Size-responsive positioning for different menu button sizes
|
|
63208
63284
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
63209
|
-
"peer-data-[size=
|
|
63285
|
+
"peer-data-[size=default]/menu-button:top-1",
|
|
63210
63286
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
63287
|
+
// Enhanced showOnHover behavior with improved transitions
|
|
63288
|
+
t && [
|
|
63289
|
+
"opacity-0 transition-opacity duration-150",
|
|
63290
|
+
"group-hover/menu-item:opacity-100",
|
|
63291
|
+
"group-focus-within/menu-item:opacity-100",
|
|
63292
|
+
"data-[state=open]:opacity-100",
|
|
63293
|
+
"peer-data-[active=true]/menu-button:opacity-100",
|
|
63294
|
+
"peer-data-[active=true]/menu-button:text-[var(--color-text-primary)]"
|
|
63295
|
+
],
|
|
63296
|
+
// Hide in collapsed sidebar
|
|
63211
63297
|
"group-data-[collapsible=icon]:hidden",
|
|
63212
|
-
t && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-[var(--color-text-primary)] md:opacity-0",
|
|
63213
63298
|
e
|
|
63214
63299
|
),
|
|
63215
|
-
...
|
|
63300
|
+
...r
|
|
63216
63301
|
}
|
|
63217
63302
|
));
|
|
63218
63303
|
DKe.displayName = "SidebarMenuAction";
|
|
@@ -63275,23 +63360,91 @@ const jKe = y.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
|
|
|
63275
63360
|
jKe.displayName = "SidebarMenuSub";
|
|
63276
63361
|
const qKe = y.forwardRef(({ ...e }, t) => /* @__PURE__ */ k("li", { ref: t, ...e }));
|
|
63277
63362
|
qKe.displayName = "SidebarMenuSubItem";
|
|
63278
|
-
const HKe = y.forwardRef(({
|
|
63279
|
-
e
|
|
63280
|
-
|
|
63281
|
-
|
|
63282
|
-
|
|
63283
|
-
|
|
63284
|
-
|
|
63285
|
-
|
|
63286
|
-
|
|
63287
|
-
|
|
63288
|
-
|
|
63289
|
-
|
|
63290
|
-
|
|
63291
|
-
|
|
63292
|
-
|
|
63293
|
-
|
|
63294
|
-
|
|
63363
|
+
const HKe = y.forwardRef(({
|
|
63364
|
+
asChild: e = !1,
|
|
63365
|
+
size: t = "md",
|
|
63366
|
+
isActive: n = !1,
|
|
63367
|
+
enhancedHover: r = !0,
|
|
63368
|
+
preserveActiveOnFocus: o = !0,
|
|
63369
|
+
className: a,
|
|
63370
|
+
onMouseEnter: i,
|
|
63371
|
+
onMouseLeave: c,
|
|
63372
|
+
onFocus: s,
|
|
63373
|
+
onBlur: l,
|
|
63374
|
+
...d
|
|
63375
|
+
}, h) => {
|
|
63376
|
+
const p = e ? "span" : "a", [f, v] = y.useState(!1), [m, g] = y.useState(!1), b = y.useCallback(
|
|
63377
|
+
(C) => {
|
|
63378
|
+
r && v(!0), i?.(C);
|
|
63379
|
+
},
|
|
63380
|
+
[r, i]
|
|
63381
|
+
), w = y.useCallback(
|
|
63382
|
+
(C) => {
|
|
63383
|
+
r && v(!1), c?.(C);
|
|
63384
|
+
},
|
|
63385
|
+
[r, c]
|
|
63386
|
+
), x = y.useCallback(
|
|
63387
|
+
(C) => {
|
|
63388
|
+
r && g(!0), s?.(C);
|
|
63389
|
+
},
|
|
63390
|
+
[r, s]
|
|
63391
|
+
), M = y.useCallback(
|
|
63392
|
+
(C) => {
|
|
63393
|
+
r && g(!1), l?.(C);
|
|
63394
|
+
},
|
|
63395
|
+
[r, l]
|
|
63396
|
+
), _ = y.useMemo(() => A(
|
|
63397
|
+
// Base submenu button styles
|
|
63398
|
+
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-[var(--color-text-secondary)] outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 cursor-pointer [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-[var(--color-text-secondary)]",
|
|
63399
|
+
// Size variants
|
|
63400
|
+
t === "sm" && "text-body-sm px-1.5 py-0.5",
|
|
63401
|
+
t === "md" && "text-body-md",
|
|
63402
|
+
// Enhanced hover behavior - only when hovered and not focused
|
|
63403
|
+
r && f && !m && [
|
|
63404
|
+
"bg-[var(--color-background-neutral-subtle-hovered)]",
|
|
63405
|
+
"text-[var(--color-text-primary)]"
|
|
63406
|
+
],
|
|
63407
|
+
// Focus styles - clean focus for non-active items
|
|
63408
|
+
r && m && !n && "bg-transparent ring-2 ring-[var(--color-border-brand)] ring-offset-1",
|
|
63409
|
+
// Active item focus - preserve brand background when focused
|
|
63410
|
+
r && m && n && o && [
|
|
63411
|
+
"bg-[var(--color-background-brand-selected)]",
|
|
63412
|
+
"text-[var(--color-text-brand)]",
|
|
63413
|
+
"ring-2 ring-[var(--color-border-brand)] ring-offset-1"
|
|
63414
|
+
],
|
|
63415
|
+
// Active item styles (non-focus state)
|
|
63416
|
+
n && !m && [
|
|
63417
|
+
"bg-[var(--color-background-brand-selected)]",
|
|
63418
|
+
"text-[var(--color-text-brand)]",
|
|
63419
|
+
"font-medium"
|
|
63420
|
+
],
|
|
63421
|
+
// Active item hover (when active but not focused)
|
|
63422
|
+
n && f && !m && [
|
|
63423
|
+
"bg-[var(--color-background-brand-selected-hovered)]",
|
|
63424
|
+
"text-[var(--color-text-brand-hovered)]"
|
|
63425
|
+
],
|
|
63426
|
+
// Fallback for non-enhanced behavior
|
|
63427
|
+
!r && [
|
|
63428
|
+
"hover:bg-[var(--color-background-neutral-subtle-hovered)] hover:text-[var(--color-text-primary)] focus-visible:ring-2 active:bg-[var(--color-background-neutral-subtle-hovered)] active:text-[var(--color-text-primary)]",
|
|
63429
|
+
"data-[active=true]:bg-[var(--color-background-brand-selected)] data-[active=true]:text-[var(--color-text-selected)] data-[active=true]:hover:!bg-[var(--color-background-brand-selected-hovered)] data-[active=true]:hover:!text-[var(--color-text-brand-hovered)] data-[active=true]:active:!bg-[var(--color-background-brand-selected-hovered)] data-[active=true]:active:!text-[var(--color-text-brand-hovered)]"
|
|
63430
|
+
]
|
|
63431
|
+
), [t, r, f, m, n, o]);
|
|
63432
|
+
return /* @__PURE__ */ k(
|
|
63433
|
+
p,
|
|
63434
|
+
{
|
|
63435
|
+
ref: h,
|
|
63436
|
+
"data-sidebar": "menu-sub-button",
|
|
63437
|
+
"data-size": t,
|
|
63438
|
+
"data-active": n,
|
|
63439
|
+
className: A(_, a),
|
|
63440
|
+
onMouseEnter: r ? b : i,
|
|
63441
|
+
onMouseLeave: r ? w : c,
|
|
63442
|
+
onFocus: r ? x : s,
|
|
63443
|
+
onBlur: r ? M : l,
|
|
63444
|
+
...d
|
|
63445
|
+
}
|
|
63446
|
+
);
|
|
63447
|
+
});
|
|
63295
63448
|
HKe.displayName = "SidebarMenuSubButton";
|
|
63296
63449
|
const EQe = i1, RQe = QA, OQe = Js, VKe = Cu, xQ = y.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
|
|
63297
63450
|
Ys,
|
|
@@ -63509,7 +63662,7 @@ var mn = "MenuContent", [aZe, WT] = Qs(mn), LQ = y.forwardRef(
|
|
|
63509
63662
|
onDismiss: f,
|
|
63510
63663
|
disableOutsideScroll: v,
|
|
63511
63664
|
...m
|
|
63512
|
-
} = e, g = el(mn, n), b = Au(mn, n), w = dP(n), x = _Q(n), M = QKe(n), [_,
|
|
63665
|
+
} = e, g = el(mn, n), b = Au(mn, n), w = dP(n), x = _Q(n), M = QKe(n), [_, C] = y.useState(null), S = y.useRef(null), I = ye(t, S, g.onContentChange), L = y.useRef(0), z = y.useRef(""), E = y.useRef(0), j = y.useRef(null), N = y.useRef("right"), P = y.useRef(0), Z = v ? _u : y.Fragment, O = v ? { as: sZe, allowPinchZoom: !0 } : void 0, X = (q) => {
|
|
63513
63666
|
const ne = z.current + q, ie = M().filter((D) => !D.disabled), T = document.activeElement, R = ie.find((D) => D.ref.current === T)?.textValue, F = ie.map((D) => D.textValue), V = bZe(F, ne, R), J = ie.find((D) => D.textValue === V)?.ref.current;
|
|
63514
63667
|
(function D(Y) {
|
|
63515
63668
|
z.current = Y, window.clearTimeout(L.current), Y !== "" && (L.current = window.setTimeout(() => D(""), 1e3));
|
|
@@ -63530,7 +63683,7 @@ var mn = "MenuContent", [aZe, WT] = Qs(mn), LQ = y.forwardRef(
|
|
|
63530
63683
|
),
|
|
63531
63684
|
onItemLeave: y.useCallback(
|
|
63532
63685
|
(q) => {
|
|
63533
|
-
H(q) || (
|
|
63686
|
+
H(q) || (S.current?.focus(), C(null));
|
|
63534
63687
|
},
|
|
63535
63688
|
[H]
|
|
63536
63689
|
),
|
|
@@ -63550,7 +63703,7 @@ var mn = "MenuContent", [aZe, WT] = Qs(mn), LQ = y.forwardRef(
|
|
|
63550
63703
|
asChild: !0,
|
|
63551
63704
|
trapped: o,
|
|
63552
63705
|
onMountAutoFocus: te(a, (q) => {
|
|
63553
|
-
q.preventDefault(),
|
|
63706
|
+
q.preventDefault(), S.current?.focus({ preventScroll: !0 });
|
|
63554
63707
|
}),
|
|
63555
63708
|
onUnmountAutoFocus: i,
|
|
63556
63709
|
children: /* @__PURE__ */ k(
|
|
@@ -63572,7 +63725,7 @@ var mn = "MenuContent", [aZe, WT] = Qs(mn), LQ = y.forwardRef(
|
|
|
63572
63725
|
orientation: "vertical",
|
|
63573
63726
|
loop: r,
|
|
63574
63727
|
currentTabStopId: _,
|
|
63575
|
-
onCurrentTabStopIdChange:
|
|
63728
|
+
onCurrentTabStopIdChange: C,
|
|
63576
63729
|
onEntryFocus: te(s, (q) => {
|
|
63577
63730
|
b.isUsingKeyboardRef.current || q.preventDefault();
|
|
63578
63731
|
}),
|
|
@@ -63592,7 +63745,7 @@ var mn = "MenuContent", [aZe, WT] = Qs(mn), LQ = y.forwardRef(
|
|
|
63592
63745
|
onKeyDown: te(m.onKeyDown, (q) => {
|
|
63593
63746
|
const ie = q.target.closest("[data-radix-menu-content]") === q.currentTarget, T = q.ctrlKey || q.altKey || q.metaKey, R = q.key.length === 1;
|
|
63594
63747
|
ie && (q.key === "Tab" && q.preventDefault(), !T && R && X(q.key));
|
|
63595
|
-
const F =
|
|
63748
|
+
const F = S.current;
|
|
63596
63749
|
if (q.target !== F || !XKe.includes(q.key)) return;
|
|
63597
63750
|
q.preventDefault();
|
|
63598
63751
|
const J = M().filter((D) => !D.disabled).map((D) => D.ref.current);
|
|
@@ -64998,15 +65151,15 @@ function VXe(e) {
|
|
|
64998
65151
|
}
|
|
64999
65152
|
const FXe = (e) => {
|
|
65000
65153
|
var t, n, r, o, a, i, c, s, l;
|
|
65001
|
-
const { invert: d, toast: h, unstyled: p, interacting: f, setHeights: v, visibleToasts: m, heights: g, index: b, toasts: w, expanded: x, removeToast: M, defaultRichColors: _, closeButton:
|
|
65154
|
+
const { invert: d, toast: h, unstyled: p, interacting: f, setHeights: v, visibleToasts: m, heights: g, index: b, toasts: w, expanded: x, removeToast: M, defaultRichColors: _, closeButton: C, style: S, cancelButtonStyle: I, actionButtonStyle: L, className: z = "", descriptionClassName: E = "", duration: j, position: N, gap: P, expandByDefault: Z, classNames: O, icons: X, closeButtonAriaLabel: H = "Close toast" } = e, [q, ne] = $.useState(null), [ie, T] = $.useState(null), [R, F] = $.useState(!1), [V, J] = $.useState(!1), [D, Y] = $.useState(!1), [U, Q] = $.useState(!1), [K, B] = $.useState(!1), [le, ee] = $.useState(0), [$e, Ee] = $.useState(0), He = $.useRef(h.duration || j || gF), Ye = $.useRef(null), Ot = $.useRef(null), Vn = b === 0, Fn = b + 1 <= m, yt = h.type, Dt = h.dismissible !== !1, xP = h.className || "", Pu = h.descriptionClassName || "", tl = $.useMemo(() => g.findIndex((he) => he.toastId === h.id) || 0, [
|
|
65002
65155
|
g,
|
|
65003
65156
|
h.id
|
|
65004
65157
|
]), wP = $.useMemo(() => {
|
|
65005
65158
|
var he;
|
|
65006
|
-
return (he = h.closeButton) != null ? he :
|
|
65159
|
+
return (he = h.closeButton) != null ? he : C;
|
|
65007
65160
|
}, [
|
|
65008
65161
|
h.closeButton,
|
|
65009
|
-
|
|
65162
|
+
C
|
|
65010
65163
|
]), Ro = $.useMemo(() => h.duration || j || gF, [
|
|
65011
65164
|
h.duration,
|
|
65012
65165
|
j
|
|
@@ -65148,7 +65301,7 @@ const FXe = (e) => {
|
|
|
65148
65301
|
"--z-index": w.length - b,
|
|
65149
65302
|
"--offset": `${V ? le : cr.current}px`,
|
|
65150
65303
|
"--initial-height": Z ? "auto" : `${$e}px`,
|
|
65151
|
-
...
|
|
65304
|
+
...S,
|
|
65152
65305
|
...h.style
|
|
65153
65306
|
},
|
|
65154
65307
|
onDragEnd: () => {
|
|
@@ -65278,8 +65431,8 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65278
65431
|
const { id: r, invert: o, position: a = "bottom-right", hotkey: i = [
|
|
65279
65432
|
"altKey",
|
|
65280
65433
|
"KeyT"
|
|
65281
|
-
], expand: c, closeButton: s, className: l, offset: d, mobileOffset: h, theme: p = "light", richColors: f, duration: v, style: m, visibleToasts: g = OXe, toastOptions: b, dir: w = kF(), gap: x = jXe, icons: M, containerAriaLabel: _ = "Notifications" } = t, [
|
|
65282
|
-
|
|
65434
|
+
], expand: c, closeButton: s, className: l, offset: d, mobileOffset: h, theme: p = "light", richColors: f, duration: v, style: m, visibleToasts: g = OXe, toastOptions: b, dir: w = kF(), gap: x = jXe, icons: M, containerAriaLabel: _ = "Notifications" } = t, [C, S] = $.useState([]), I = $.useMemo(() => r ? C.filter((R) => R.toasterId === r) : C.filter((R) => !R.toasterId), [
|
|
65435
|
+
C,
|
|
65283
65436
|
r
|
|
65284
65437
|
]), L = $.useMemo(() => Array.from(new Set([
|
|
65285
65438
|
a
|
|
@@ -65287,7 +65440,7 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65287
65440
|
I,
|
|
65288
65441
|
a
|
|
65289
65442
|
]), [z, E] = $.useState([]), [j, N] = $.useState(!1), [P, Z] = $.useState(!1), [O, X] = $.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), H = $.useRef(null), q = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ne = $.useRef(null), ie = $.useRef(!1), T = $.useCallback((R) => {
|
|
65290
|
-
|
|
65443
|
+
S((F) => {
|
|
65291
65444
|
var V;
|
|
65292
65445
|
return (V = F.find((J) => J.id === R.id)) != null && V.delete || qt.dismiss(R.id), F.filter(({ id: J }) => J !== R.id);
|
|
65293
65446
|
});
|
|
@@ -65295,7 +65448,7 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65295
65448
|
return $.useEffect(() => qt.subscribe((R) => {
|
|
65296
65449
|
if (R.dismiss) {
|
|
65297
65450
|
requestAnimationFrame(() => {
|
|
65298
|
-
|
|
65451
|
+
S((F) => F.map((V) => V.id === R.id ? {
|
|
65299
65452
|
...V,
|
|
65300
65453
|
delete: !0
|
|
65301
65454
|
} : V));
|
|
@@ -65304,7 +65457,7 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65304
65457
|
}
|
|
65305
65458
|
setTimeout(() => {
|
|
65306
65459
|
EF.flushSync(() => {
|
|
65307
|
-
|
|
65460
|
+
S((F) => {
|
|
65308
65461
|
const V = F.findIndex((J) => J.id === R.id);
|
|
65309
65462
|
return V !== -1 ? [
|
|
65310
65463
|
...F.slice(0, V),
|
|
@@ -65321,7 +65474,7 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65321
65474
|
});
|
|
65322
65475
|
});
|
|
65323
65476
|
}), [
|
|
65324
|
-
|
|
65477
|
+
C
|
|
65325
65478
|
]), $.useEffect(() => {
|
|
65326
65479
|
if (p !== "system") {
|
|
65327
65480
|
X(p);
|
|
@@ -65345,9 +65498,9 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65345
65498
|
}, [
|
|
65346
65499
|
p
|
|
65347
65500
|
]), $.useEffect(() => {
|
|
65348
|
-
|
|
65501
|
+
C.length <= 1 && N(!1);
|
|
65349
65502
|
}, [
|
|
65350
|
-
|
|
65503
|
+
C
|
|
65351
65504
|
]), $.useEffect(() => {
|
|
65352
65505
|
const R = (F) => {
|
|
65353
65506
|
var V;
|
|
@@ -65497,8 +65650,8 @@ const UXe = /* @__PURE__ */ $.forwardRef(function(t, n) {
|
|
|
65497
65650
|
...s
|
|
65498
65651
|
}, l) => {
|
|
65499
65652
|
const d = Math.ceil(r / o), h = (n - 1) * o + 1, p = Math.min(n * o, r), f = () => a(1), v = () => a(Math.max(1, n - 1)), m = () => a(Math.min(d, n + 1)), g = () => a(d), b = n === 1, w = n === d || r === 0, x = (M) => {
|
|
65500
|
-
const _ = (n - 1) * o + 1,
|
|
65501
|
-
i(M), a(Math.max(1,
|
|
65653
|
+
const _ = (n - 1) * o + 1, C = Math.ceil(_ / M);
|
|
65654
|
+
i(M), a(Math.max(1, C));
|
|
65502
65655
|
};
|
|
65503
65656
|
return /* @__PURE__ */ G(
|
|
65504
65657
|
"div",
|
|
@@ -66144,7 +66297,7 @@ function p0(e, t, n, r) {
|
|
|
66144
66297
|
const _ = wF(n, x, {
|
|
66145
66298
|
id: [r, f, x.id, g?.id].filter(Boolean).join("_"),
|
|
66146
66299
|
isPlaceholder: M,
|
|
66147
|
-
placeholderId: M ? `${m.filter((
|
|
66300
|
+
placeholderId: M ? `${m.filter((C) => C.column === x).length}` : void 0,
|
|
66148
66301
|
depth: f,
|
|
66149
66302
|
index: m.length
|
|
66150
66303
|
});
|
|
@@ -66677,13 +66830,13 @@ const f0 = {
|
|
|
66677
66830
|
const i = e.getSize(), c = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[r.id, r.getSize()]], s = NE(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, d = (b, w) => {
|
|
66678
66831
|
typeof w == "number" && (t.setColumnSizingInfo((x) => {
|
|
66679
66832
|
var M, _;
|
|
66680
|
-
const
|
|
66833
|
+
const C = t.options.columnResizeDirection === "rtl" ? -1 : 1, S = (w - ((M = x?.startOffset) != null ? M : 0)) * C, I = Math.max(S / ((_ = x?.startSize) != null ? _ : 0), -0.999999);
|
|
66681
66834
|
return x.columnSizingStart.forEach((L) => {
|
|
66682
66835
|
let [z, E] = L;
|
|
66683
66836
|
l[z] = Math.round(Math.max(E + E * I, 0) * 100) / 100;
|
|
66684
66837
|
}), {
|
|
66685
66838
|
...x,
|
|
66686
|
-
deltaOffset:
|
|
66839
|
+
deltaOffset: S,
|
|
66687
66840
|
deltaPercentage: I
|
|
66688
66841
|
};
|
|
66689
66842
|
}), (t.options.columnResizeMode === "onChange" || b === "end") && t.setColumnSizing((x) => ({
|
|
@@ -67751,11 +67904,11 @@ function nJe() {
|
|
|
67751
67904
|
const v = a[f], m = i[v.id], g = m.sortUndefined, b = (p = v?.desc) != null ? p : !1;
|
|
67752
67905
|
let w = 0;
|
|
67753
67906
|
if (g) {
|
|
67754
|
-
const x = d.getValue(v.id), M = h.getValue(v.id), _ = x === void 0,
|
|
67755
|
-
if (_ ||
|
|
67907
|
+
const x = d.getValue(v.id), M = h.getValue(v.id), _ = x === void 0, C = M === void 0;
|
|
67908
|
+
if (_ || C) {
|
|
67756
67909
|
if (g === "first") return _ ? -1 : 1;
|
|
67757
67910
|
if (g === "last") return _ ? 1 : -1;
|
|
67758
|
-
w = _ &&
|
|
67911
|
+
w = _ && C ? 0 : _ ? g : -g;
|
|
67759
67912
|
}
|
|
67760
67913
|
}
|
|
67761
67914
|
if (w === 0 && (w = m.sortingFn(d, h, v.id)), w !== 0)
|
|
@@ -68093,7 +68246,7 @@ function GQe({
|
|
|
68093
68246
|
className: v,
|
|
68094
68247
|
...m
|
|
68095
68248
|
}) {
|
|
68096
|
-
const [g, b] = Te(/* @__PURE__ */ new Set()), [w, x] = Te(null), [M, _] = Te(null), [
|
|
68249
|
+
const [g, b] = Te(/* @__PURE__ */ new Set()), [w, x] = Te(null), [M, _] = Te(null), [C, S] = Te(/* @__PURE__ */ new Set()), [I, L] = Te(!1), z = er(() => C.size > 0 ? n.filter((q, ne) => C.has(ne)) : I && g.size > 0 ? n.filter((q, ne) => g.has(ne)) : n, [n, C, g, I]), E = ve((q, ne) => {
|
|
68097
68250
|
if (ne !== void 0 && q) {
|
|
68098
68251
|
const ie = n.findIndex((T) => T === z[ne]);
|
|
68099
68252
|
_(ie !== -1 ? ie : null);
|
|
@@ -68103,18 +68256,18 @@ function GQe({
|
|
|
68103
68256
|
if (!i) return;
|
|
68104
68257
|
const ie = n.findIndex((F) => F === z[ne]);
|
|
68105
68258
|
if (ie === -1) return;
|
|
68106
|
-
const T = new Set(
|
|
68107
|
-
T.has(ie) ? T.delete(ie) : T.add(ie),
|
|
68259
|
+
const T = new Set(C);
|
|
68260
|
+
T.has(ie) ? T.delete(ie) : T.add(ie), S(T);
|
|
68108
68261
|
const R = n.filter((F, V) => T.has(V));
|
|
68109
68262
|
l?.(R);
|
|
68110
|
-
}, [i,
|
|
68263
|
+
}, [i, C, n, l, z]), N = ve((q) => {
|
|
68111
68264
|
if (!c) return;
|
|
68112
68265
|
const ne = new Set(g);
|
|
68113
68266
|
ne.has(q) ? ne.delete(q) : ne.add(q), b(ne), s?.(Array.from(ne));
|
|
68114
68267
|
}, [c, g, s]), P = ve((q) => {
|
|
68115
68268
|
x(q);
|
|
68116
68269
|
}, []), Z = ve(() => {
|
|
68117
|
-
b(/* @__PURE__ */ new Set()),
|
|
68270
|
+
b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Set()), x(null), _(null), L(!1), s?.([]), l?.([]);
|
|
68118
68271
|
}, [s, l]), O = ve((q, ne, ie) => {
|
|
68119
68272
|
if (ne.format)
|
|
68120
68273
|
return ne.format(q, ie);
|
|
@@ -68146,8 +68299,8 @@ function GQe({
|
|
|
68146
68299
|
" selected",
|
|
68147
68300
|
I ? " (filtered)" : ""
|
|
68148
68301
|
] }),
|
|
68149
|
-
|
|
68150
|
-
|
|
68302
|
+
C.size > 0 && /* @__PURE__ */ G(Ps, { intent: "brand", appearance: "subtle", size: "sm", children: [
|
|
68303
|
+
C.size,
|
|
68151
68304
|
" chart filtered"
|
|
68152
68305
|
] })
|
|
68153
68306
|
] }),
|
|
@@ -68164,7 +68317,7 @@ function GQe({
|
|
|
68164
68317
|
]
|
|
68165
68318
|
}
|
|
68166
68319
|
),
|
|
68167
|
-
(g.size > 0 ||
|
|
68320
|
+
(g.size > 0 || C.size > 0 || I) && /* @__PURE__ */ G($t, { variant: "ghost", size: "sm", onClick: Z, children: [
|
|
68168
68321
|
/* @__PURE__ */ k(ke, { name: "x", size: "sm", className: "mr-[var(--space-sm)]" }),
|
|
68169
68322
|
"Clear All"
|
|
68170
68323
|
] })
|
|
@@ -68288,8 +68441,8 @@ function zee({
|
|
|
68288
68441
|
getPanelSize: x,
|
|
68289
68442
|
getPanelStyle: M,
|
|
68290
68443
|
groupId: _,
|
|
68291
|
-
isPanelCollapsed:
|
|
68292
|
-
reevaluatePanelConstraints:
|
|
68444
|
+
isPanelCollapsed: C,
|
|
68445
|
+
reevaluatePanelConstraints: S,
|
|
68293
68446
|
registerPanel: I,
|
|
68294
68447
|
resizePanel: L,
|
|
68295
68448
|
unregisterPanel: z
|
|
@@ -68319,7 +68472,7 @@ function zee({
|
|
|
68319
68472
|
} = j.current, O = {
|
|
68320
68473
|
...Z
|
|
68321
68474
|
};
|
|
68322
|
-
j.current.id = E, j.current.idIsFromProps = i !== void 0, j.current.order = p, P.onCollapse = l, P.onExpand = d, P.onResize = h, Z.collapsedSize = n, Z.collapsible = r, Z.defaultSize = o, Z.maxSize = c, Z.minSize = s, (O.collapsedSize !== Z.collapsedSize || O.collapsible !== Z.collapsible || O.maxSize !== Z.maxSize || O.minSize !== Z.minSize) &&
|
|
68475
|
+
j.current.id = E, j.current.idIsFromProps = i !== void 0, j.current.order = p, P.onCollapse = l, P.onExpand = d, P.onResize = h, Z.collapsedSize = n, Z.collapsible = r, Z.defaultSize = o, Z.maxSize = c, Z.minSize = s, (O.collapsedSize !== Z.collapsedSize || O.collapsible !== Z.collapsible || O.maxSize !== Z.maxSize || O.minSize !== Z.minSize) && S(j.current, O);
|
|
68323
68476
|
}), Es(() => {
|
|
68324
68477
|
const P = j.current;
|
|
68325
68478
|
return I(P), () => {
|
|
@@ -68339,15 +68492,15 @@ function zee({
|
|
|
68339
68492
|
return x(j.current);
|
|
68340
68493
|
},
|
|
68341
68494
|
isCollapsed() {
|
|
68342
|
-
return
|
|
68495
|
+
return C(j.current);
|
|
68343
68496
|
},
|
|
68344
68497
|
isExpanded() {
|
|
68345
|
-
return !
|
|
68498
|
+
return !C(j.current);
|
|
68346
68499
|
},
|
|
68347
68500
|
resize: (P) => {
|
|
68348
68501
|
L(j.current, P);
|
|
68349
68502
|
}
|
|
68350
|
-
}), [b, w, x,
|
|
68503
|
+
}), [b, w, x, C, E, L]);
|
|
68351
68504
|
const N = M(j.current, o);
|
|
68352
68505
|
return $n(v, {
|
|
68353
68506
|
...m,
|
|
@@ -68938,12 +69091,12 @@ function AJe({
|
|
|
68938
69091
|
me(x, `No panel data found for index ${w}`);
|
|
68939
69092
|
const M = r[w], {
|
|
68940
69093
|
collapsedSize: _ = 0,
|
|
68941
|
-
collapsible:
|
|
68942
|
-
minSize:
|
|
69094
|
+
collapsible: C,
|
|
69095
|
+
minSize: S = 0
|
|
68943
69096
|
} = x.constraints;
|
|
68944
|
-
if (M != null &&
|
|
69097
|
+
if (M != null && C) {
|
|
68945
69098
|
const I = N1({
|
|
68946
|
-
delta: Yt(M, _) ?
|
|
69099
|
+
delta: Yt(M, _) ? S - _ : _ - M,
|
|
68947
69100
|
initialLayout: r,
|
|
68948
69101
|
panelConstraints: s.map((L) => L.constraints),
|
|
68949
69102
|
pivotIndices: Xee(n, f, a),
|
|
@@ -69226,7 +69379,7 @@ function nte({
|
|
|
69226
69379
|
tagName: d = "div",
|
|
69227
69380
|
...h
|
|
69228
69381
|
}) {
|
|
69229
|
-
const p = vz(a), f = Se(null), [v, m] = Te(null), [g, b] = Te([]), w = CJe(), x = Se({}), M = Se(/* @__PURE__ */ new Map()), _ = Se(0),
|
|
69382
|
+
const p = vz(a), f = Se(null), [v, m] = Te(null), [g, b] = Te([]), w = CJe(), x = Se({}), M = Se(/* @__PURE__ */ new Map()), _ = Se(0), C = Se({
|
|
69230
69383
|
autoSaveId: e,
|
|
69231
69384
|
direction: r,
|
|
69232
69385
|
dragState: v,
|
|
@@ -69234,7 +69387,7 @@ function nte({
|
|
|
69234
69387
|
keyboardResizeBy: c,
|
|
69235
69388
|
onLayout: i,
|
|
69236
69389
|
storage: s
|
|
69237
|
-
}),
|
|
69390
|
+
}), S = Se({
|
|
69238
69391
|
layout: g,
|
|
69239
69392
|
panelDataArray: [],
|
|
69240
69393
|
panelDataArrayChanged: !1
|
|
@@ -69244,39 +69397,39 @@ function nte({
|
|
|
69244
69397
|
didLogPanelConstraintsWarning: !1,
|
|
69245
69398
|
prevPanelIds: []
|
|
69246
69399
|
}), fO(o, () => ({
|
|
69247
|
-
getId: () =>
|
|
69400
|
+
getId: () => C.current.id,
|
|
69248
69401
|
getLayout: () => {
|
|
69249
69402
|
const {
|
|
69250
69403
|
layout: R
|
|
69251
|
-
} =
|
|
69404
|
+
} = S.current;
|
|
69252
69405
|
return R;
|
|
69253
69406
|
},
|
|
69254
69407
|
setLayout: (R) => {
|
|
69255
69408
|
const {
|
|
69256
69409
|
onLayout: F
|
|
69257
|
-
} =
|
|
69410
|
+
} = C.current, {
|
|
69258
69411
|
layout: V,
|
|
69259
69412
|
panelDataArray: J
|
|
69260
|
-
} =
|
|
69413
|
+
} = S.current, D = PF({
|
|
69261
69414
|
layout: R,
|
|
69262
69415
|
panelConstraints: J.map((Y) => Y.constraints)
|
|
69263
69416
|
});
|
|
69264
|
-
NF(V, D) || (b(D),
|
|
69417
|
+
NF(V, D) || (b(D), S.current.layout = D, F && F(D), cl(J, D, x.current));
|
|
69265
69418
|
}
|
|
69266
69419
|
}), []), Es(() => {
|
|
69267
|
-
|
|
69420
|
+
C.current.autoSaveId = e, C.current.direction = r, C.current.dragState = v, C.current.id = p, C.current.onLayout = i, C.current.storage = s;
|
|
69268
69421
|
}), AJe({
|
|
69269
|
-
committedValuesRef:
|
|
69270
|
-
eagerValuesRef:
|
|
69422
|
+
committedValuesRef: C,
|
|
69423
|
+
eagerValuesRef: S,
|
|
69271
69424
|
groupId: p,
|
|
69272
69425
|
layout: g,
|
|
69273
|
-
panelDataArray:
|
|
69426
|
+
panelDataArray: S.current.panelDataArray,
|
|
69274
69427
|
setLayout: b,
|
|
69275
69428
|
panelGroupElement: f.current
|
|
69276
69429
|
}), Ce(() => {
|
|
69277
69430
|
const {
|
|
69278
69431
|
panelDataArray: R
|
|
69279
|
-
} =
|
|
69432
|
+
} = S.current;
|
|
69280
69433
|
if (e) {
|
|
69281
69434
|
if (g.length === 0 || g.length !== R.length)
|
|
69282
69435
|
return;
|
|
@@ -69290,10 +69443,10 @@ function nte({
|
|
|
69290
69443
|
const I = ve((R) => {
|
|
69291
69444
|
const {
|
|
69292
69445
|
onLayout: F
|
|
69293
|
-
} =
|
|
69446
|
+
} = C.current, {
|
|
69294
69447
|
layout: V,
|
|
69295
69448
|
panelDataArray: J
|
|
69296
|
-
} =
|
|
69449
|
+
} = S.current;
|
|
69297
69450
|
if (R.constraints.collapsible) {
|
|
69298
69451
|
const D = J.map((K) => K.constraints), {
|
|
69299
69452
|
collapsedSize: Y = 0,
|
|
@@ -69310,16 +69463,16 @@ function nte({
|
|
|
69310
69463
|
prevLayout: V,
|
|
69311
69464
|
trigger: "imperative-api"
|
|
69312
69465
|
});
|
|
69313
|
-
v0(V, le) || (b(le),
|
|
69466
|
+
v0(V, le) || (b(le), S.current.layout = le, F && F(le), cl(J, le, x.current));
|
|
69314
69467
|
}
|
|
69315
69468
|
}
|
|
69316
69469
|
}, []), L = ve((R, F) => {
|
|
69317
69470
|
const {
|
|
69318
69471
|
onLayout: V
|
|
69319
|
-
} =
|
|
69472
|
+
} = C.current, {
|
|
69320
69473
|
layout: J,
|
|
69321
69474
|
panelDataArray: D
|
|
69322
|
-
} =
|
|
69475
|
+
} = S.current;
|
|
69323
69476
|
if (R.constraints.collapsible) {
|
|
69324
69477
|
const Y = D.map((ee) => ee.constraints), {
|
|
69325
69478
|
collapsedSize: U = 0,
|
|
@@ -69336,21 +69489,21 @@ function nte({
|
|
|
69336
69489
|
prevLayout: J,
|
|
69337
69490
|
trigger: "imperative-api"
|
|
69338
69491
|
});
|
|
69339
|
-
v0(J, Ye) || (b(Ye),
|
|
69492
|
+
v0(J, Ye) || (b(Ye), S.current.layout = Ye, V && V(Ye), cl(D, Ye, x.current));
|
|
69340
69493
|
}
|
|
69341
69494
|
}
|
|
69342
69495
|
}, []), z = ve((R) => {
|
|
69343
69496
|
const {
|
|
69344
69497
|
layout: F,
|
|
69345
69498
|
panelDataArray: V
|
|
69346
|
-
} =
|
|
69499
|
+
} = S.current, {
|
|
69347
69500
|
panelSize: J
|
|
69348
69501
|
} = zo(V, R, F);
|
|
69349
69502
|
return me(J != null, `Panel size not found for panel "${R.id}"`), J;
|
|
69350
69503
|
}, []), E = ve((R, F) => {
|
|
69351
69504
|
const {
|
|
69352
69505
|
panelDataArray: V
|
|
69353
|
-
} =
|
|
69506
|
+
} = S.current, J = ul(V, R);
|
|
69354
69507
|
return RJe({
|
|
69355
69508
|
defaultSize: F,
|
|
69356
69509
|
dragState: v,
|
|
@@ -69362,7 +69515,7 @@ function nte({
|
|
|
69362
69515
|
const {
|
|
69363
69516
|
layout: F,
|
|
69364
69517
|
panelDataArray: V
|
|
69365
|
-
} =
|
|
69518
|
+
} = S.current, {
|
|
69366
69519
|
collapsedSize: J = 0,
|
|
69367
69520
|
collapsible: D,
|
|
69368
69521
|
panelSize: Y
|
|
@@ -69372,7 +69525,7 @@ function nte({
|
|
|
69372
69525
|
const {
|
|
69373
69526
|
layout: F,
|
|
69374
69527
|
panelDataArray: V
|
|
69375
|
-
} =
|
|
69528
|
+
} = S.current, {
|
|
69376
69529
|
collapsedSize: J = 0,
|
|
69377
69530
|
collapsible: D,
|
|
69378
69531
|
panelSize: Y
|
|
@@ -69381,23 +69534,23 @@ function nte({
|
|
|
69381
69534
|
}, []), P = ve((R) => {
|
|
69382
69535
|
const {
|
|
69383
69536
|
panelDataArray: F
|
|
69384
|
-
} =
|
|
69537
|
+
} = S.current;
|
|
69385
69538
|
F.push(R), F.sort((V, J) => {
|
|
69386
69539
|
const D = V.order, Y = J.order;
|
|
69387
69540
|
return D == null && Y == null ? 0 : D == null ? -1 : Y == null ? 1 : D - Y;
|
|
69388
|
-
}),
|
|
69541
|
+
}), S.current.panelDataArrayChanged = !0, w();
|
|
69389
69542
|
}, [w]);
|
|
69390
69543
|
Es(() => {
|
|
69391
|
-
if (
|
|
69392
|
-
|
|
69544
|
+
if (S.current.panelDataArrayChanged) {
|
|
69545
|
+
S.current.panelDataArrayChanged = !1;
|
|
69393
69546
|
const {
|
|
69394
69547
|
autoSaveId: R,
|
|
69395
69548
|
onLayout: F,
|
|
69396
69549
|
storage: V
|
|
69397
|
-
} =
|
|
69550
|
+
} = C.current, {
|
|
69398
69551
|
layout: J,
|
|
69399
69552
|
panelDataArray: D
|
|
69400
|
-
} =
|
|
69553
|
+
} = S.current;
|
|
69401
69554
|
let Y = null;
|
|
69402
69555
|
if (R) {
|
|
69403
69556
|
const Q = DJe(R, D, V);
|
|
@@ -69410,10 +69563,10 @@ function nte({
|
|
|
69410
69563
|
layout: Y,
|
|
69411
69564
|
panelConstraints: D.map((Q) => Q.constraints)
|
|
69412
69565
|
});
|
|
69413
|
-
NF(J, U) || (b(U),
|
|
69566
|
+
NF(J, U) || (b(U), S.current.layout = U, F && F(U), cl(D, U, x.current));
|
|
69414
69567
|
}
|
|
69415
69568
|
}), Es(() => {
|
|
69416
|
-
const R =
|
|
69569
|
+
const R = S.current;
|
|
69417
69570
|
return () => {
|
|
69418
69571
|
R.layout = [];
|
|
69419
69572
|
};
|
|
@@ -69432,10 +69585,10 @@ function nte({
|
|
|
69432
69585
|
id: K,
|
|
69433
69586
|
keyboardResizeBy: B,
|
|
69434
69587
|
onLayout: le
|
|
69435
|
-
} =
|
|
69588
|
+
} = C.current, {
|
|
69436
69589
|
layout: ee,
|
|
69437
69590
|
panelDataArray: $e
|
|
69438
|
-
} =
|
|
69591
|
+
} = S.current, {
|
|
69439
69592
|
initialLayout: Ee
|
|
69440
69593
|
} = Q ?? {}, He = Xee(K, R, Y);
|
|
69441
69594
|
let Ye = $Je(D, R, U, Q, B, Y);
|
|
@@ -69449,15 +69602,15 @@ function nte({
|
|
|
69449
69602
|
prevLayout: ee,
|
|
69450
69603
|
trigger: qee(D) ? "keyboard" : "mouse-or-touch"
|
|
69451
69604
|
}), yt = !v0(ee, Fn);
|
|
69452
|
-
(Hee(D) || Vee(D)) && _.current != Ye && (_.current = Ye, !yt && Ye !== 0 ? Ot ? DE(R, Ye < 0 ? Bee : Uee) : DE(R, Ye < 0 ? Gee : Wee) : DE(R, 0)), yt && (b(Fn),
|
|
69605
|
+
(Hee(D) || Vee(D)) && _.current != Ye && (_.current = Ye, !yt && Ye !== 0 ? Ot ? DE(R, Ye < 0 ? Bee : Uee) : DE(R, Ye < 0 ? Gee : Wee) : DE(R, 0)), yt && (b(Fn), S.current.layout = Fn, le && le(Fn), cl($e, Fn, x.current));
|
|
69453
69606
|
};
|
|
69454
69607
|
}, []), O = ve((R, F) => {
|
|
69455
69608
|
const {
|
|
69456
69609
|
onLayout: V
|
|
69457
|
-
} =
|
|
69610
|
+
} = C.current, {
|
|
69458
69611
|
layout: J,
|
|
69459
69612
|
panelDataArray: D
|
|
69460
|
-
} =
|
|
69613
|
+
} = S.current, Y = D.map((ee) => ee.constraints), {
|
|
69461
69614
|
panelSize: U,
|
|
69462
69615
|
pivotIndices: Q
|
|
69463
69616
|
} = zo(D, R, J);
|
|
@@ -69470,12 +69623,12 @@ function nte({
|
|
|
69470
69623
|
prevLayout: J,
|
|
69471
69624
|
trigger: "imperative-api"
|
|
69472
69625
|
});
|
|
69473
|
-
v0(J, le) || (b(le),
|
|
69626
|
+
v0(J, le) || (b(le), S.current.layout = le, V && V(le), cl(D, le, x.current));
|
|
69474
69627
|
}, []), X = ve((R, F) => {
|
|
69475
69628
|
const {
|
|
69476
69629
|
layout: V,
|
|
69477
69630
|
panelDataArray: J
|
|
69478
|
-
} =
|
|
69631
|
+
} = S.current, {
|
|
69479
69632
|
collapsedSize: D = 0,
|
|
69480
69633
|
collapsible: Y
|
|
69481
69634
|
} = F, {
|
|
@@ -69490,9 +69643,9 @@ function nte({
|
|
|
69490
69643
|
}, [O]), H = ve((R, F) => {
|
|
69491
69644
|
const {
|
|
69492
69645
|
direction: V
|
|
69493
|
-
} =
|
|
69646
|
+
} = C.current, {
|
|
69494
69647
|
layout: J
|
|
69495
|
-
} =
|
|
69648
|
+
} = S.current;
|
|
69496
69649
|
if (!f.current)
|
|
69497
69650
|
return;
|
|
69498
69651
|
const D = bP(R, f.current);
|
|
@@ -69509,8 +69662,8 @@ function nte({
|
|
|
69509
69662
|
}, []), ne = ve((R) => {
|
|
69510
69663
|
const {
|
|
69511
69664
|
panelDataArray: F
|
|
69512
|
-
} =
|
|
69513
|
-
V >= 0 && (F.splice(V, 1), delete x.current[R.id],
|
|
69665
|
+
} = S.current, V = ul(F, R);
|
|
69666
|
+
V >= 0 && (F.splice(V, 1), delete x.current[R.id], S.current.panelDataArrayChanged = !0, w());
|
|
69514
69667
|
}, [w]), ie = er(() => ({
|
|
69515
69668
|
collapsePanel: I,
|
|
69516
69669
|
direction: r,
|
|
@@ -69645,8 +69798,8 @@ function ote({
|
|
|
69645
69798
|
const {
|
|
69646
69799
|
direction: M,
|
|
69647
69800
|
groupId: _,
|
|
69648
|
-
registerResizeHandle:
|
|
69649
|
-
startDragging:
|
|
69801
|
+
registerResizeHandle: C,
|
|
69802
|
+
startDragging: S,
|
|
69650
69803
|
stopDragging: I,
|
|
69651
69804
|
panelGroupElement: L
|
|
69652
69805
|
} = x, z = vz(o), [E, j] = Te("inactive"), [N, P] = Te(!1), [Z, O] = Te(null), X = Se({
|
|
@@ -69658,10 +69811,10 @@ function ote({
|
|
|
69658
69811
|
if (n)
|
|
69659
69812
|
O(null);
|
|
69660
69813
|
else {
|
|
69661
|
-
const ie =
|
|
69814
|
+
const ie = C(z);
|
|
69662
69815
|
O(() => ie);
|
|
69663
69816
|
}
|
|
69664
|
-
}, [n, z,
|
|
69817
|
+
}, [n, z, C]);
|
|
69665
69818
|
const H = (m = r?.coarse) !== null && m !== void 0 ? m : 15, q = (g = r?.fine) !== null && g !== void 0 ? g : 5;
|
|
69666
69819
|
return Ce(() => {
|
|
69667
69820
|
if (n || Z == null)
|
|
@@ -69679,7 +69832,7 @@ function ote({
|
|
|
69679
69832
|
}
|
|
69680
69833
|
switch (F) {
|
|
69681
69834
|
case "down": {
|
|
69682
|
-
j("drag"), T = !1, me(J, 'Expected event to be defined for "down" action'),
|
|
69835
|
+
j("drag"), T = !1, me(J, 'Expected event to be defined for "down" action'), S(z, J);
|
|
69683
69836
|
const {
|
|
69684
69837
|
onDragging: D,
|
|
69685
69838
|
onPointerDown: Y
|
|
@@ -69706,7 +69859,7 @@ function ote({
|
|
|
69706
69859
|
}
|
|
69707
69860
|
}
|
|
69708
69861
|
});
|
|
69709
|
-
}, [H, M, n, q,
|
|
69862
|
+
}, [H, M, n, q, C, z, Z, S, I]), jJe({
|
|
69710
69863
|
disabled: n,
|
|
69711
69864
|
handleId: z,
|
|
69712
69865
|
resizeHandler: Z,
|