@mt-gloss/ui 0.1.6 → 0.1.7
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/{Expandable-CsLVYNv3.js → Expandable-CTI-osAf.js} +2015 -2010
- package/catalog.js +2 -2
- package/index.d.ts +1 -0
- package/index.js +508 -452
- package/lib/primitives/dashboard/gridMotionPrimitives.d.ts +82 -0
- package/lib/primitives/dashboard/index.d.ts +1 -0
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { N as
|
|
1
|
+
import { N as Rn, T as In, O as Pn, Q as Fn, a3 as En, b6 as On, az as An, ah as Ln, Z as $n, an as Bn, K as zn, a8 as Kn, bn as Wn, P as Gn, B as Hn, a as Vn, y as jn, H as Un, bi as Zn, F as Yn, J as qn, A as Qn, z as Xn, bh as Jn, E as er, D as tr, bw as ar, b as nr, C as rr, L as sr, o as or, ad as ir, aN as lr, y as cr, H as dr, F as ur, J as mr, A as pr, z as gr, E as fr, D as hr, a$ as br, b2 as vr, b1 as yr, b0 as wr, b3 as Dr, aC as Nr, a5 as Cr, a4 as kr, aq as _r, k as xr, m as Sr, aF as Mr, ab as Tr, b8 as Rr, a9 as Ir, bo as Pr, Y as Fr, bG as Er, bF as Or, bH as Ar, ap as Lr, aQ as $r, ba as Br, bL as zr, bu as Kr, n as Wr, am as Gr, bA as Hr, br as Vr, a0 as jr, ar as Ur, a2 as Zr, bz as Yr, G as qr, d as Qr, aa as Xr, bI as Jr, aT as es, r as ts, v as as, I as ns, g as rs, aw as ss, bM as os, M as is, w as ls, U as cs, X as ds, V as us, W as ms, as as ps, bg as gs, bO as fs, bK as hs, ao as bs, t as vs, bp as ys, aS as ws, aj as Ds, aK as Ns, ag as Cs, al as ks, au as _s, aR as xs, ac as Ss, at as Ms, c as Ts, R as Rs, j as Is, p as Ps, aH as Fs, bx as Es, by as Os, ai as As, ae as Ls, h as $s, x as Bs, b7 as zs, af as Ks, bN as Ws, bc as Gs, bf as Hs, bd as Vs, be as js, i as Us, b9 as Zs, bm as Ys, S as qs, bk as Qs, bl as Xs, av as Js, bb as eo, bP as to, ak as ao, s as no, bJ as ro, l as so, f as oo, q as io, _ as lo, $ as co, a7 as uo, bj as mo, bv as po, bC as go, aA as fo, aB as ho, a6 as bo, aO as vo, aP as yo, aD as wo, aE as Do, aG as No, aV as Co, aW as ko, bE as _o, bD as xo, aY as So, aZ as Mo, ax as To, ay as Ro, b5 as Io, b4 as Po, a_ as Fo, aL as Eo, aM as Oo, aX as Ao, aI as Lo, aJ as $o, u as Bo, bB as zo, bq as Ko, bs as Wo, bt as Go, aU as Ho, a1 as Vo, e as jo } from "./Expandable-CTI-osAf.js";
|
|
2
2
|
import { jsxs as A, jsx as d } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import H, { useRef as
|
|
5
|
-
import { motion as
|
|
3
|
+
import * as Ue from "react";
|
|
4
|
+
import H, { useRef as R, useEffect as L, useState as W, useCallback as y, forwardRef as Ze, useMemo as re, createContext as Ye, useContext as qe } from "react";
|
|
5
|
+
import { motion as Re, useMotionValue as Qe, animate as ke, useDragControls as Xe } from "framer-motion";
|
|
6
6
|
import { B as Je, U as we } from "./UIContext-C3E-k7HI.js";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as Zo, u as Yo } from "./UIContext-C3E-k7HI.js";
|
|
8
8
|
import { createPortal as et } from "react-dom";
|
|
9
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
9
|
+
import { DEFAULT_MARKET_PRESETS as Qo, DEFAULT_PINNED as Xo, PERIOD_OPTIONS as Jo, ROLLING_OPTIONS as ei, TODAY_PRESET as ti, findPreset as ai, formatDateRange as ni, formatMarketDates as ri, formatTrend as si, formatValue as oi, generateMarketId as ii, getAllPresets as li, getDateRangeForPreset as ci, getPresetLabel as di, isInRange as ui, isMarketActive as mi, isSameDay as pi, normalizePresetId as gi, toUppercasePresetId as fi } from "@mt-gloss/utils";
|
|
10
10
|
import tt from "@mui/icons-material/AccessTime";
|
|
11
11
|
import at from "@mui/icons-material/Tune";
|
|
12
12
|
import nt from "@mui/icons-material/ViewColumn";
|
|
@@ -14,7 +14,7 @@ import rt from "@mui/icons-material/AspectRatio";
|
|
|
14
14
|
import st from "@mui/icons-material/Palette";
|
|
15
15
|
import ot from "@mui/icons-material/PushPin";
|
|
16
16
|
function Na(e = {}) {
|
|
17
|
-
const { enabled: t = !0, returnTo: n } = e, a =
|
|
17
|
+
const { enabled: t = !0, returnTo: n } = e, a = R(null);
|
|
18
18
|
return L(() => {
|
|
19
19
|
t && (a.current = n || document.activeElement);
|
|
20
20
|
}, [t, n]), L(() => () => {
|
|
@@ -45,9 +45,9 @@ function Ca(e) {
|
|
|
45
45
|
if (m.length === 0) return -1;
|
|
46
46
|
const w = m.indexOf(i);
|
|
47
47
|
if (w === -1)
|
|
48
|
-
return h === 1 ? m.find((
|
|
49
|
-
let
|
|
50
|
-
return r ?
|
|
48
|
+
return h === 1 ? m.find((M) => M > i) ?? (r ? m[0] : -1) : [...m].reverse().find((E) => E < i) ?? (r ? m[m.length - 1] : -1);
|
|
49
|
+
let k = w + h;
|
|
50
|
+
return r ? k = (k + m.length) % m.length : k = Math.max(0, Math.min(m.length - 1, k)), m[k];
|
|
51
51
|
},
|
|
52
52
|
[g, r]
|
|
53
53
|
), f = y(() => {
|
|
@@ -56,24 +56,24 @@ function Ca(e) {
|
|
|
56
56
|
}, [g, c]), x = y(() => {
|
|
57
57
|
const i = g();
|
|
58
58
|
i.length > 0 && c(i[i.length - 1]);
|
|
59
|
-
}, [g, c]),
|
|
59
|
+
}, [g, c]), I = y(() => {
|
|
60
60
|
const i = S(u, 1);
|
|
61
61
|
i !== -1 && c(i);
|
|
62
62
|
}, [u, S, c]), N = y(() => {
|
|
63
63
|
const i = S(u, -1);
|
|
64
64
|
i !== -1 && c(i);
|
|
65
|
-
}, [u, S, c]),
|
|
65
|
+
}, [u, S, c]), _ = y(() => {
|
|
66
66
|
c(-1);
|
|
67
|
-
}, [c]),
|
|
67
|
+
}, [c]), T = y(
|
|
68
68
|
(i) => {
|
|
69
69
|
if (!o) return;
|
|
70
|
-
const { key: h } = i, m = h === "ArrowUp" && (s === "vertical" || s === "both"), w = h === "ArrowDown" && (s === "vertical" || s === "both"),
|
|
71
|
-
if (m ||
|
|
70
|
+
const { key: h } = i, m = h === "ArrowUp" && (s === "vertical" || s === "both"), w = h === "ArrowDown" && (s === "vertical" || s === "both"), k = h === "ArrowLeft" && (s === "horizontal" || s === "both"), M = h === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
71
|
+
if (m || k) {
|
|
72
72
|
i.preventDefault(), u === -1 ? x() : N();
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
if (w ||
|
|
76
|
-
i.preventDefault(), u === -1 ? f() :
|
|
75
|
+
if (w || M) {
|
|
76
|
+
i.preventDefault(), u === -1 ? f() : I();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
if (h === "Home") {
|
|
@@ -102,7 +102,7 @@ function Ca(e) {
|
|
|
102
102
|
t,
|
|
103
103
|
f,
|
|
104
104
|
x,
|
|
105
|
-
|
|
105
|
+
I,
|
|
106
106
|
N,
|
|
107
107
|
l,
|
|
108
108
|
b,
|
|
@@ -112,12 +112,12 @@ function Ca(e) {
|
|
|
112
112
|
return {
|
|
113
113
|
focusedIndex: u,
|
|
114
114
|
setFocusedIndex: c,
|
|
115
|
-
handleKeyDown:
|
|
115
|
+
handleKeyDown: T,
|
|
116
116
|
focusFirst: f,
|
|
117
117
|
focusLast: x,
|
|
118
|
-
focusNext:
|
|
118
|
+
focusNext: I,
|
|
119
119
|
focusPrevious: N,
|
|
120
|
-
resetFocus:
|
|
120
|
+
resetFocus: _
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
const ce = (e) => {
|
|
@@ -145,12 +145,12 @@ const ce = (e) => {
|
|
|
145
145
|
field: "manufacturer",
|
|
146
146
|
value: "widget-co-456",
|
|
147
147
|
onRemove: ce
|
|
148
|
-
},
|
|
148
|
+
}, ka = [
|
|
149
149
|
it,
|
|
150
150
|
lt,
|
|
151
151
|
ct,
|
|
152
152
|
dt
|
|
153
|
-
],
|
|
153
|
+
], _a = {
|
|
154
154
|
id: "metric-toggle",
|
|
155
155
|
tabs: [
|
|
156
156
|
{ id: "$", label: "$", mono: !0 },
|
|
@@ -172,30 +172,30 @@ const ce = (e) => {
|
|
|
172
172
|
{ id: "YTD", label: "YTD" },
|
|
173
173
|
{ id: "LYTD", label: "LYTD" }
|
|
174
174
|
]
|
|
175
|
-
},
|
|
175
|
+
}, Ma = [
|
|
176
176
|
{ variant: "block", width: "100%", height: 16 },
|
|
177
177
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
178
178
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
179
179
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
180
|
-
],
|
|
180
|
+
], Ta = [
|
|
181
181
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
182
182
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
183
183
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
184
|
-
],
|
|
184
|
+
], Ra = [
|
|
185
185
|
{ variant: "circle", size: 24 },
|
|
186
186
|
{ variant: "circle", size: 40 },
|
|
187
187
|
{ variant: "circle", size: 64 }
|
|
188
|
-
],
|
|
188
|
+
], Ia = [
|
|
189
189
|
{ bars: 10, maxHeight: 120 },
|
|
190
190
|
{ bars: 5, maxHeight: 80 }
|
|
191
|
-
],
|
|
191
|
+
], Pa = [
|
|
192
192
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
193
193
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
194
|
-
],
|
|
194
|
+
], Fa = [
|
|
195
195
|
{ variant: "value", colSpan: 1 },
|
|
196
196
|
{ variant: "trend", colSpan: 2 },
|
|
197
197
|
{ variant: "target", colSpan: 1 }
|
|
198
|
-
],
|
|
198
|
+
], _e = {
|
|
199
199
|
position: "fixed",
|
|
200
200
|
zIndex: 9999,
|
|
201
201
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -239,11 +239,11 @@ function pt({
|
|
|
239
239
|
overflowActions: s,
|
|
240
240
|
onClose: o
|
|
241
241
|
}) {
|
|
242
|
-
const [l, b] = W(null), p =
|
|
243
|
-
if (!t) return { ...
|
|
242
|
+
const [l, b] = W(null), p = R(null), v = y(() => {
|
|
243
|
+
if (!t) return { ..._e, top: 0, left: 0 };
|
|
244
244
|
const c = t.getBoundingClientRect();
|
|
245
245
|
return {
|
|
246
|
-
...
|
|
246
|
+
..._e,
|
|
247
247
|
top: c.bottom + 4,
|
|
248
248
|
left: c.left
|
|
249
249
|
};
|
|
@@ -317,7 +317,7 @@ function pt({
|
|
|
317
317
|
return et(u, document.body);
|
|
318
318
|
}
|
|
319
319
|
pt.displayName = "StatusSlotChipMenu";
|
|
320
|
-
const gt =
|
|
320
|
+
const gt = Ze(
|
|
321
321
|
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: l = "right", ariaLabel: b = "Resize card" }, p) {
|
|
322
322
|
const v = t === "handle-visible" || t === "dragging" || t === "settling", C = (g) => {
|
|
323
323
|
try {
|
|
@@ -366,7 +366,7 @@ function ft({
|
|
|
366
366
|
exitMs: r = 120
|
|
367
367
|
}) {
|
|
368
368
|
return /* @__PURE__ */ d(
|
|
369
|
-
|
|
369
|
+
Re.div,
|
|
370
370
|
{
|
|
371
371
|
"aria-hidden": "true",
|
|
372
372
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -414,7 +414,7 @@ class ht {
|
|
|
414
414
|
return (s * 3 + o * 2 + l * 1) / 6;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
const
|
|
417
|
+
const Ie = {
|
|
418
418
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
419
419
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
420
420
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -449,100 +449,100 @@ function Ea({
|
|
|
449
449
|
containerRef: C,
|
|
450
450
|
forceIdle: u
|
|
451
451
|
}) {
|
|
452
|
-
const [c, g] = W("idle"), [S, f] = W(e), x =
|
|
452
|
+
const [c, g] = W("idle"), [S, f] = W(e), x = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), i = R(v), h = R(0), m = R("idle");
|
|
453
453
|
L(() => {
|
|
454
454
|
m.current = c;
|
|
455
455
|
}, [c]);
|
|
456
|
-
const w = Qe(0),
|
|
457
|
-
const D =
|
|
456
|
+
const w = Qe(0), k = R(null), M = y(() => {
|
|
457
|
+
const D = k.current;
|
|
458
458
|
if (D) {
|
|
459
459
|
try {
|
|
460
460
|
D.stop();
|
|
461
461
|
} catch {
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
k.current = null;
|
|
464
464
|
}
|
|
465
465
|
}, []), E = y(
|
|
466
466
|
(D) => {
|
|
467
|
-
const
|
|
468
|
-
return D *
|
|
467
|
+
const P = _.current, F = T.current;
|
|
468
|
+
return D * P + (D - 1) * F;
|
|
469
469
|
},
|
|
470
470
|
[]
|
|
471
|
-
), G =
|
|
471
|
+
), G = R(new ht()), V = R(e);
|
|
472
472
|
L(() => {
|
|
473
473
|
V.current = S;
|
|
474
474
|
}, [S]);
|
|
475
|
-
const $ = re(() => ({ ...
|
|
475
|
+
const $ = re(() => ({ ...Ie, ...o ?? {} }), [o]), O = y(() => {
|
|
476
476
|
x.current && (clearTimeout(x.current), x.current = null);
|
|
477
|
-
}, []),
|
|
478
|
-
|
|
477
|
+
}, []), j = y(() => {
|
|
478
|
+
I.current && (clearTimeout(I.current), I.current = null);
|
|
479
479
|
}, []);
|
|
480
480
|
L(() => {
|
|
481
|
-
u && (m.current === "dragging" || m.current === "settling" || (O(),
|
|
482
|
-
}, [u, O,
|
|
481
|
+
u && (m.current === "dragging" || m.current === "settling" || (O(), j(), m.current = "idle", g("idle")));
|
|
482
|
+
}, [u, O, j]);
|
|
483
483
|
const se = y(() => {
|
|
484
484
|
g((D) => D === "settling" || D !== "idle" ? D : (x.current = setTimeout(() => g("handle-visible"), l), "dwelling"));
|
|
485
|
-
}, [l]),
|
|
485
|
+
}, [l]), K = y(() => {
|
|
486
486
|
O(), g((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
|
|
487
487
|
}, [O]), oe = y(
|
|
488
|
-
(D,
|
|
489
|
-
const B =
|
|
490
|
-
|
|
488
|
+
(D, P, F) => {
|
|
489
|
+
const B = _.current, Q = B * $.snapInFraction, Z = B * $.snapOutFraction, Y = P - F, q = Math.max(
|
|
490
|
+
F,
|
|
491
491
|
i.current ?? v
|
|
492
492
|
);
|
|
493
|
-
let
|
|
494
|
-
for (;
|
|
495
|
-
const te =
|
|
496
|
-
if (D >= te)
|
|
493
|
+
let z = Y;
|
|
494
|
+
for (; F + z < q; ) {
|
|
495
|
+
const te = z * B + (z < 0 ? Z : Q);
|
|
496
|
+
if (D >= te) z += 1;
|
|
497
497
|
else break;
|
|
498
498
|
}
|
|
499
|
-
if (
|
|
500
|
-
for (;
|
|
501
|
-
const te =
|
|
502
|
-
if (D <= te)
|
|
499
|
+
if (z === Y)
|
|
500
|
+
for (; F + z > 1; ) {
|
|
501
|
+
const te = z * B - (z > 0 ? Z : Q);
|
|
502
|
+
if (D <= te) z -= 1;
|
|
503
503
|
else break;
|
|
504
504
|
}
|
|
505
|
-
return Math.min(q, Math.max(1,
|
|
505
|
+
return Math.min(q, Math.max(1, F + z));
|
|
506
506
|
},
|
|
507
507
|
[$.snapInFraction, $.snapOutFraction, v]
|
|
508
|
-
),
|
|
508
|
+
), Ke = y(
|
|
509
509
|
(D) => {
|
|
510
510
|
if (m.current !== "handle-visible") return;
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
h.current =
|
|
511
|
+
M(), N.current = D.clientX, _.current = r, T.current = s, i.current = v;
|
|
512
|
+
const P = e * r + (e - 1) * s;
|
|
513
|
+
h.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), m.current = "dragging", g("dragging");
|
|
514
514
|
},
|
|
515
|
-
[r, s, v, e, w,
|
|
515
|
+
[r, s, v, e, w, M]
|
|
516
516
|
), De = y(
|
|
517
|
-
(D) => D *
|
|
517
|
+
(D) => D * _.current + (D - 1) * T.current,
|
|
518
518
|
[]
|
|
519
519
|
), ie = y(
|
|
520
|
-
(D,
|
|
521
|
-
const
|
|
520
|
+
(D, P) => {
|
|
521
|
+
const F = De(D), B = D !== e;
|
|
522
522
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
523
|
-
w.jump(
|
|
523
|
+
w.jump(F), B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
524
524
|
return;
|
|
525
525
|
}
|
|
526
|
-
const
|
|
527
|
-
m.current = "settling", g("settling"),
|
|
526
|
+
const Z = G.current.getWeightedVelocity() * $.velocityMultiplier;
|
|
527
|
+
m.current = "settling", g("settling"), M(), k.current = ke(w, F, {
|
|
528
528
|
type: "spring",
|
|
529
529
|
stiffness: $.stiffness,
|
|
530
530
|
damping: $.damping,
|
|
531
531
|
mass: $.mass,
|
|
532
|
-
velocity:
|
|
532
|
+
velocity: Z,
|
|
533
533
|
onComplete: () => {
|
|
534
|
-
|
|
534
|
+
k.current = null, B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
},
|
|
538
|
-
[De, e, t, n, a, w, $,
|
|
538
|
+
[De, e, t, n, a, w, $, M]
|
|
539
539
|
), We = y(
|
|
540
540
|
(D) => {
|
|
541
541
|
if (m.current !== "dragging") return;
|
|
542
|
-
const
|
|
542
|
+
const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((i.current ?? v) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
|
|
543
543
|
G.current.push({ x: D.clientX, t: performance.now() });
|
|
544
|
-
const q = oe(Y, V.current, e),
|
|
545
|
-
ie(q,
|
|
544
|
+
const q = oe(Y, V.current, e), z = q > e ? "grow" : q < e ? "shrink" : null;
|
|
545
|
+
ie(q, z);
|
|
546
546
|
},
|
|
547
547
|
[oe, e, v, ie]
|
|
548
548
|
), de = y(() => {
|
|
@@ -552,25 +552,25 @@ function Ea({
|
|
|
552
552
|
w.jump(D), a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
553
553
|
return;
|
|
554
554
|
}
|
|
555
|
-
const
|
|
556
|
-
m.current = "settling", g("settling"),
|
|
555
|
+
const F = G.current.getWeightedVelocity();
|
|
556
|
+
m.current = "settling", g("settling"), M(), k.current = ke(w, D, {
|
|
557
557
|
type: "spring",
|
|
558
558
|
stiffness: $.stiffness,
|
|
559
559
|
damping: $.damping,
|
|
560
560
|
mass: $.mass,
|
|
561
|
-
velocity:
|
|
561
|
+
velocity: F,
|
|
562
562
|
onComplete: () => {
|
|
563
|
-
|
|
563
|
+
k.current = null, a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
return;
|
|
567
567
|
}
|
|
568
568
|
m.current === "handle-visible" && (a?.(), m.current = "cancelled", g("cancelled"));
|
|
569
|
-
}, [O, w, a, $,
|
|
569
|
+
}, [O, w, a, $, M]);
|
|
570
570
|
L(() => {
|
|
571
571
|
if (c !== "dragging" && c !== "handle-visible") return;
|
|
572
|
-
const D = (
|
|
573
|
-
|
|
572
|
+
const D = (P) => {
|
|
573
|
+
P.key === "Escape" && de();
|
|
574
574
|
};
|
|
575
575
|
return window.addEventListener("keydown", D), () => window.removeEventListener("keydown", D);
|
|
576
576
|
}, [c, de]), L(() => {
|
|
@@ -578,18 +578,18 @@ function Ea({
|
|
|
578
578
|
f(e);
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
|
-
const D = (
|
|
582
|
-
const
|
|
581
|
+
const D = (P) => {
|
|
582
|
+
const F = P.clientX - (N.current ?? P.clientX), B = h.current, Q = E(1), Z = E(v), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
|
|
583
583
|
w.set(q);
|
|
584
|
-
const
|
|
585
|
-
G.current.push({ x:
|
|
586
|
-
const ue = oe(
|
|
584
|
+
const z = _.current, Ce = (v - e) * z, te = (1 - e) * z, je = Math.max(te, Math.min(Ce, F));
|
|
585
|
+
G.current.push({ x: P.clientX, t: performance.now() });
|
|
586
|
+
const ue = oe(je, V.current, e);
|
|
587
587
|
ue !== V.current && (V.current = ue, f(ue));
|
|
588
588
|
};
|
|
589
589
|
return window.addEventListener("pointermove", D), () => window.removeEventListener("pointermove", D);
|
|
590
590
|
}, [c, e, w, oe, v, E]), L(() => () => {
|
|
591
|
-
O(),
|
|
592
|
-
}, [O,
|
|
591
|
+
O(), j();
|
|
592
|
+
}, [O, j]), L(() => {
|
|
593
593
|
if (c !== "cancelled") return;
|
|
594
594
|
const D = setTimeout(() => g("idle"), p);
|
|
595
595
|
return () => clearTimeout(D);
|
|
@@ -597,33 +597,33 @@ function Ea({
|
|
|
597
597
|
const Ge = y(
|
|
598
598
|
(D) => {
|
|
599
599
|
if (m.current === "settling") return;
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
602
|
-
|
|
600
|
+
const F = Math.min(v, Math.max(1, e + (D === "grow" ? 1 : -1)));
|
|
601
|
+
if (F === e) return;
|
|
602
|
+
_.current = r, T.current = s, i.current = v, G.current.clear();
|
|
603
603
|
const B = e * r + (e - 1) * s;
|
|
604
|
-
h.current = B, w.jump(B), ie(
|
|
604
|
+
h.current = B, w.jump(B), ie(F, D);
|
|
605
605
|
},
|
|
606
606
|
[e, r, s, v, w, ie]
|
|
607
607
|
), Ne = y(() => {
|
|
608
|
-
|
|
608
|
+
j(), I.current = setTimeout(() => {
|
|
609
609
|
m.current === "handle-visible" && (m.current = "idle", g("idle"));
|
|
610
610
|
}, 5e3);
|
|
611
|
-
}, [
|
|
611
|
+
}, [j]), He = y(() => {
|
|
612
612
|
m.current === "idle" && (O(), m.current = "handle-visible", g("handle-visible"), Ne());
|
|
613
613
|
}, [O, Ne]), Ve = y(() => {
|
|
614
|
-
|
|
615
|
-
}, [
|
|
614
|
+
j(), m.current === "handle-visible" && (m.current = "idle", g("idle"));
|
|
615
|
+
}, [j]);
|
|
616
616
|
return {
|
|
617
617
|
state: c,
|
|
618
618
|
enterEdgeZone: se,
|
|
619
|
-
leaveEdgeZone:
|
|
619
|
+
leaveEdgeZone: K,
|
|
620
620
|
handleProps: {
|
|
621
|
-
onPointerDown:
|
|
621
|
+
onPointerDown: Ke,
|
|
622
622
|
onPointerUp: We,
|
|
623
623
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
624
624
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
625
625
|
onPointerEnter: se,
|
|
626
|
-
onPointerLeave:
|
|
626
|
+
onPointerLeave: K
|
|
627
627
|
},
|
|
628
628
|
previewColSpan: S,
|
|
629
629
|
ghostProps: {
|
|
@@ -889,14 +889,14 @@ const Aa = [
|
|
|
889
889
|
19
|
|
890
890
|
],
|
|
891
891
|
accentColor: "#10b981"
|
|
892
|
-
},
|
|
892
|
+
}, za = {
|
|
893
893
|
variant: "standard",
|
|
894
894
|
label: "Total Revenue",
|
|
895
895
|
value: 125430,
|
|
896
896
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
897
897
|
trend: { value: 12.5, direction: "up" },
|
|
898
898
|
subtitle: "MTD"
|
|
899
|
-
},
|
|
899
|
+
}, Ka = {
|
|
900
900
|
variant: "standard",
|
|
901
901
|
label: "Returns",
|
|
902
902
|
value: 3280,
|
|
@@ -911,7 +911,7 @@ const Aa = [
|
|
|
911
911
|
trend: { value: 0, direction: "flat" },
|
|
912
912
|
subtitle: "QTD"
|
|
913
913
|
};
|
|
914
|
-
function
|
|
914
|
+
function Pe({
|
|
915
915
|
open: e,
|
|
916
916
|
onDismiss: t,
|
|
917
917
|
anchorRef: n,
|
|
@@ -1006,7 +1006,7 @@ function Fe({
|
|
|
1006
1006
|
}
|
|
1007
1007
|
);
|
|
1008
1008
|
}
|
|
1009
|
-
|
|
1009
|
+
Pe.displayName = "PageDropdown";
|
|
1010
1010
|
const Ct = function({
|
|
1011
1011
|
currentIndex: t,
|
|
1012
1012
|
total: n,
|
|
@@ -1016,7 +1016,7 @@ const Ct = function({
|
|
|
1016
1016
|
onManagePages: o,
|
|
1017
1017
|
maskRadius: l = "var(--gloss-radius-md)"
|
|
1018
1018
|
}) {
|
|
1019
|
-
const b =
|
|
1019
|
+
const b = R(null), [p, v] = W(!1), C = y(() => {
|
|
1020
1020
|
v((g) => !g);
|
|
1021
1021
|
}, []), u = y(() => {
|
|
1022
1022
|
v(!1);
|
|
@@ -1052,7 +1052,7 @@ const Ct = function({
|
|
|
1052
1052
|
}
|
|
1053
1053
|
),
|
|
1054
1054
|
/* @__PURE__ */ d(
|
|
1055
|
-
|
|
1055
|
+
Pe,
|
|
1056
1056
|
{
|
|
1057
1057
|
open: p,
|
|
1058
1058
|
onDismiss: u,
|
|
@@ -1339,7 +1339,7 @@ const Ga = [
|
|
|
1339
1339
|
function he(e) {
|
|
1340
1340
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Fe(e) {
|
|
1343
1343
|
return e.toLocaleString("en-US");
|
|
1344
1344
|
}
|
|
1345
1345
|
function Ee(e) {
|
|
@@ -1375,7 +1375,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1375
1375
|
align: "right",
|
|
1376
1376
|
headerAlign: "right",
|
|
1377
1377
|
cellClassName: "gloss-tabular-nums",
|
|
1378
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1378
|
+
renderCell: ({ row: e }) => e.skuCount ? Fe(e.skuCount) : ne
|
|
1379
1379
|
},
|
|
1380
1380
|
{
|
|
1381
1381
|
field: "total",
|
|
@@ -1397,7 +1397,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1397
1397
|
cellClassName: "gloss-tabular-nums",
|
|
1398
1398
|
renderCell: ({ row: e }) => e.date ? Ee(e.date) : ""
|
|
1399
1399
|
}
|
|
1400
|
-
],
|
|
1400
|
+
], ja = [
|
|
1401
1401
|
{
|
|
1402
1402
|
field: "sku",
|
|
1403
1403
|
headerName: "Item ID",
|
|
@@ -1439,7 +1439,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1439
1439
|
align: "right",
|
|
1440
1440
|
headerAlign: "right",
|
|
1441
1441
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1442
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1442
|
+
renderCell: ({ row: e }) => e.quantity ? Fe(e.quantity) : ne
|
|
1443
1443
|
},
|
|
1444
1444
|
{
|
|
1445
1445
|
field: "total",
|
|
@@ -1461,13 +1461,13 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1461
1461
|
cellClassName: "gloss-tabular-nums",
|
|
1462
1462
|
renderCell: ({ row: e }) => e.lastDate ? Ee(e.lastDate) : ""
|
|
1463
1463
|
}
|
|
1464
|
-
],
|
|
1464
|
+
], kt = [
|
|
1465
1465
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1466
1466
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1467
1467
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1468
1468
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1469
1469
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1470
|
-
],
|
|
1470
|
+
], _t = [
|
|
1471
1471
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1472
1472
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1473
1473
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
@@ -1491,9 +1491,9 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1491
1491
|
onItemSelect: xe,
|
|
1492
1492
|
onTimeFrameChange: me,
|
|
1493
1493
|
userType: "sales-agency",
|
|
1494
|
-
entityFilterOptions:
|
|
1495
|
-
itemFilterOptions:
|
|
1496
|
-
},
|
|
1494
|
+
entityFilterOptions: kt,
|
|
1495
|
+
itemFilterOptions: _t
|
|
1496
|
+
}, Ua = {
|
|
1497
1497
|
...Oe,
|
|
1498
1498
|
vizState: {
|
|
1499
1499
|
type: "items",
|
|
@@ -1502,7 +1502,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1502
1502
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1503
1503
|
timeFrame: "YTD"
|
|
1504
1504
|
}
|
|
1505
|
-
},
|
|
1505
|
+
}, Za = {
|
|
1506
1506
|
...Oe,
|
|
1507
1507
|
vizState: {
|
|
1508
1508
|
type: "orders",
|
|
@@ -1561,7 +1561,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1561
1561
|
routeKey: "customer.profile",
|
|
1562
1562
|
subtitle: "Opens in RepTime"
|
|
1563
1563
|
}
|
|
1564
|
-
],
|
|
1564
|
+
], Mt = [
|
|
1565
1565
|
{
|
|
1566
1566
|
id: "order-items",
|
|
1567
1567
|
label: "Items in Order",
|
|
@@ -1590,7 +1590,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1590
1590
|
cellKinds: ["orderId"],
|
|
1591
1591
|
graphType: "timeline"
|
|
1592
1592
|
}
|
|
1593
|
-
],
|
|
1593
|
+
], Tt = [
|
|
1594
1594
|
{
|
|
1595
1595
|
id: "graph-metric",
|
|
1596
1596
|
label: "Graph This Metric",
|
|
@@ -1620,8 +1620,8 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1620
1620
|
}
|
|
1621
1621
|
], Ya = {
|
|
1622
1622
|
entityName: St,
|
|
1623
|
-
orderId:
|
|
1624
|
-
numeric:
|
|
1623
|
+
orderId: Mt,
|
|
1624
|
+
numeric: Tt
|
|
1625
1625
|
}, qa = [
|
|
1626
1626
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1627
1627
|
/* @__PURE__ */ new Date()
|
|
@@ -1712,14 +1712,14 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1712
1712
|
{ id: "qtd", label: "QTD" },
|
|
1713
1713
|
{ id: "ytd", label: "YTD" },
|
|
1714
1714
|
{ id: "lytd", label: "LYTD" }
|
|
1715
|
-
],
|
|
1715
|
+
], Rt = {
|
|
1716
1716
|
timeframe: "Time Frame",
|
|
1717
1717
|
threshold: "Thresholds",
|
|
1718
1718
|
slots: "Slots",
|
|
1719
1719
|
size: "Size",
|
|
1720
1720
|
color: "Color",
|
|
1721
1721
|
pinned: "Pinned"
|
|
1722
|
-
},
|
|
1722
|
+
}, It = {
|
|
1723
1723
|
timeframe: tt,
|
|
1724
1724
|
threshold: at,
|
|
1725
1725
|
slots: nt,
|
|
@@ -1730,7 +1730,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1730
1730
|
function Se(...e) {
|
|
1731
1731
|
return e.filter(Boolean).join(" ");
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function Pt() {
|
|
1734
1734
|
const [e, t] = W(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1735
1735
|
return L(() => {
|
|
1736
1736
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
@@ -1740,14 +1740,14 @@ function Ft() {
|
|
|
1740
1740
|
});
|
|
1741
1741
|
}, []), e;
|
|
1742
1742
|
}
|
|
1743
|
-
const
|
|
1743
|
+
const Ft = ({
|
|
1744
1744
|
dimensions: e,
|
|
1745
1745
|
onDimensionSelect: t,
|
|
1746
1746
|
activeDimension: n,
|
|
1747
1747
|
ariaCardTypeLabel: a,
|
|
1748
1748
|
className: r
|
|
1749
1749
|
}) => {
|
|
1750
|
-
const s =
|
|
1750
|
+
const s = R(null), o = R([]), l = Pt(), b = re(() => Array.from(e), [e]);
|
|
1751
1751
|
if (b.length === 0) return null;
|
|
1752
1752
|
const p = a ? `Configure ${a}: choose a dimension` : void 0, v = l ? "10ms" : "200ms", C = (u, c) => {
|
|
1753
1753
|
const g = b.length - 1, S = (f) => {
|
|
@@ -1794,7 +1794,7 @@ const Pt = ({
|
|
|
1794
1794
|
"--gloss-reconfig-backside-buttons-transition-duration": v
|
|
1795
1795
|
},
|
|
1796
1796
|
children: b.map((u, c) => {
|
|
1797
|
-
const g =
|
|
1797
|
+
const g = It[u], S = n === u;
|
|
1798
1798
|
return /* @__PURE__ */ A(
|
|
1799
1799
|
"button",
|
|
1800
1800
|
{
|
|
@@ -1818,7 +1818,7 @@ const Pt = ({
|
|
|
1818
1818
|
"aria-hidden": "true"
|
|
1819
1819
|
}
|
|
1820
1820
|
),
|
|
1821
|
-
/* @__PURE__ */ d("span", { className: "gloss-reconfig-backside-buttons__button-label", children:
|
|
1821
|
+
/* @__PURE__ */ d("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Rt[u] })
|
|
1822
1822
|
]
|
|
1823
1823
|
},
|
|
1824
1824
|
u
|
|
@@ -1827,8 +1827,8 @@ const Pt = ({
|
|
|
1827
1827
|
}
|
|
1828
1828
|
);
|
|
1829
1829
|
};
|
|
1830
|
-
|
|
1831
|
-
function
|
|
1830
|
+
Ft.displayName = "ReconfigBacksideButtons";
|
|
1831
|
+
function U(e, t) {
|
|
1832
1832
|
return {
|
|
1833
1833
|
id: e,
|
|
1834
1834
|
colSpan: 1,
|
|
@@ -1848,23 +1848,23 @@ function Z(e, t) {
|
|
|
1848
1848
|
}, t)
|
|
1849
1849
|
};
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1851
|
+
function Me(e, t) {
|
|
1852
1852
|
return {
|
|
1853
|
-
...
|
|
1853
|
+
...U(e, t),
|
|
1854
1854
|
colSpan: 2
|
|
1855
1855
|
};
|
|
1856
1856
|
}
|
|
1857
1857
|
const rn = [
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1858
|
+
U("total-revenue", "Total Revenue"),
|
|
1859
|
+
U("total-orders", "Total Orders"),
|
|
1860
|
+
Me("revenue-trend", "Revenue Trend (2x)"),
|
|
1861
|
+
U("avg-order", "Avg Order Value"),
|
|
1862
|
+
U("new-customers", "New Customers"),
|
|
1863
|
+
U("top-salesperson", "Top Salesperson"),
|
|
1864
|
+
Me("order-trend", "Order Trend (2x)"),
|
|
1865
|
+
U("repeat-rate", "Repeat Rate"),
|
|
1866
|
+
U("open-orders", "Open Orders"),
|
|
1867
|
+
U("shipped-orders", "Shipped Orders")
|
|
1868
1868
|
], sn = {
|
|
1869
1869
|
columns: 6,
|
|
1870
1870
|
rowHeight: 120,
|
|
@@ -2072,7 +2072,7 @@ const Ot = function(t) {
|
|
|
2072
2072
|
};
|
|
2073
2073
|
Ot.displayName = "MetricGroupContainer";
|
|
2074
2074
|
const Ae = "resize.tuning.dev", At = {
|
|
2075
|
-
...
|
|
2075
|
+
...Ie,
|
|
2076
2076
|
snapInPx: 60,
|
|
2077
2077
|
snapOutPx: 90
|
|
2078
2078
|
}, J = At;
|
|
@@ -2122,10 +2122,10 @@ const Bt = [
|
|
|
2122
2122
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2123
2123
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2124
2124
|
];
|
|
2125
|
-
function
|
|
2125
|
+
function zt(e, t) {
|
|
2126
2126
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function Kt() {
|
|
2129
2129
|
return /* @__PURE__ */ A(
|
|
2130
2130
|
"svg",
|
|
2131
2131
|
{
|
|
@@ -2161,7 +2161,7 @@ function Wt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2161
2161
|
children: [
|
|
2162
2162
|
/* @__PURE__ */ d("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2163
2163
|
/* @__PURE__ */ A("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2164
|
-
|
|
2164
|
+
zt(t, e.step),
|
|
2165
2165
|
e.unit ? ` ${e.unit}` : ""
|
|
2166
2166
|
] }),
|
|
2167
2167
|
/* @__PURE__ */ d(
|
|
@@ -2185,7 +2185,7 @@ function Wt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2185
2185
|
className: "gloss-dev-tuning-panel__reset",
|
|
2186
2186
|
"aria-label": `Reset ${e.label}`,
|
|
2187
2187
|
onClick: a,
|
|
2188
|
-
children: /* @__PURE__ */ d(
|
|
2188
|
+
children: /* @__PURE__ */ d(Kt, {})
|
|
2189
2189
|
}
|
|
2190
2190
|
)
|
|
2191
2191
|
]
|
|
@@ -2205,7 +2205,7 @@ function Ht(e = {}) {
|
|
|
2205
2205
|
}
|
|
2206
2206
|
Ht.displayName = "DevTuningPanel";
|
|
2207
2207
|
function Vt() {
|
|
2208
|
-
const e = $t(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), l =
|
|
2208
|
+
const e = $t(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), l = R(null), b = y((u) => {
|
|
2209
2209
|
l.current && clearTimeout(l.current), o(u), l.current = setTimeout(() => {
|
|
2210
2210
|
o(null), l.current = null;
|
|
2211
2211
|
}, 200);
|
|
@@ -2216,7 +2216,7 @@ function Vt() {
|
|
|
2216
2216
|
[n, t.snapOutPx, b]
|
|
2217
2217
|
), v = re(() => Bt, []), C = Xe();
|
|
2218
2218
|
return /* @__PURE__ */ A(
|
|
2219
|
-
|
|
2219
|
+
Re.div,
|
|
2220
2220
|
{
|
|
2221
2221
|
className: "gloss-dev-tuning-panel",
|
|
2222
2222
|
role: "region",
|
|
@@ -2360,7 +2360,7 @@ function gn({
|
|
|
2360
2360
|
}
|
|
2361
2361
|
);
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function jt(e, t, n, a) {
|
|
2364
2364
|
const r = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2365
2365
|
return `M${e},${t} Q${r},${s} ${n},${a}`;
|
|
2366
2366
|
}
|
|
@@ -2384,7 +2384,7 @@ function fn({
|
|
|
2384
2384
|
{
|
|
2385
2385
|
"data-arc-id": s.id,
|
|
2386
2386
|
className: "gloss-spillover-arc__path",
|
|
2387
|
-
d:
|
|
2387
|
+
d: jt(s.fromX, s.fromY, s.toX, s.toY),
|
|
2388
2388
|
style: {
|
|
2389
2389
|
animationDelay: `${o * n}ms`,
|
|
2390
2390
|
animationDuration: `${t}ms`
|
|
@@ -2447,6 +2447,54 @@ function bn({
|
|
|
2447
2447
|
}
|
|
2448
2448
|
) : null;
|
|
2449
2449
|
}
|
|
2450
|
+
const vn = {
|
|
2451
|
+
forwardStaggerMs: 50,
|
|
2452
|
+
reverseStaggerMs: 30,
|
|
2453
|
+
springStiffness: 380,
|
|
2454
|
+
springDamping: 32,
|
|
2455
|
+
reverseVelocityMultiplier: 1.4
|
|
2456
|
+
}, yn = {
|
|
2457
|
+
enterDurationMs: 220,
|
|
2458
|
+
exitDurationMs: 140,
|
|
2459
|
+
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
2460
|
+
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2461
|
+
translateOffsetPx: 4
|
|
2462
|
+
}, wn = {
|
|
2463
|
+
shiverCycles: 3,
|
|
2464
|
+
shiverAmplitudePx: 2,
|
|
2465
|
+
shiverDurationMs: 180,
|
|
2466
|
+
validCellOpacity: 0.6
|
|
2467
|
+
}, Dn = {
|
|
2468
|
+
materializeMs: 180,
|
|
2469
|
+
dematerializeMs: 140,
|
|
2470
|
+
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
2471
|
+
dotStrokePx: 2,
|
|
2472
|
+
dividerDashGapPx: 4
|
|
2473
|
+
}, Nn = {
|
|
2474
|
+
cascadeStaggerMs: 0,
|
|
2475
|
+
cascadeSpringCapMs: 120,
|
|
2476
|
+
swingEnterMs: 100,
|
|
2477
|
+
swingEnterStyle: "opacity",
|
|
2478
|
+
provisionalMs: 80,
|
|
2479
|
+
provisionalStyle: "opacity",
|
|
2480
|
+
shiverMs: 200,
|
|
2481
|
+
shiverStyle: "color-flash"
|
|
2482
|
+
}, Cn = !0, kn = {
|
|
2483
|
+
rejectionFill: "var(--gloss-rejection-fill)",
|
|
2484
|
+
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
2485
|
+
validFill: "var(--gloss-valid-fill)",
|
|
2486
|
+
validStroke: "var(--gloss-valid-stroke)",
|
|
2487
|
+
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
2488
|
+
provisionalWash: "var(--gloss-provisional-wash)"
|
|
2489
|
+
};
|
|
2490
|
+
function _n() {
|
|
2491
|
+
if (typeof window > "u") return "full";
|
|
2492
|
+
try {
|
|
2493
|
+
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
2494
|
+
} catch {
|
|
2495
|
+
return "full";
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2450
2498
|
const X = {
|
|
2451
2499
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
2452
2500
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
@@ -2455,7 +2503,7 @@ const X = {
|
|
|
2455
2503
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2456
2504
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2457
2505
|
};
|
|
2458
|
-
function
|
|
2506
|
+
function Ut({
|
|
2459
2507
|
message: e,
|
|
2460
2508
|
primaryAction: t,
|
|
2461
2509
|
onDismiss: n,
|
|
@@ -2516,11 +2564,11 @@ function Zt({
|
|
|
2516
2564
|
}
|
|
2517
2565
|
);
|
|
2518
2566
|
}
|
|
2519
|
-
|
|
2567
|
+
Ut.displayName = "InlineNudge";
|
|
2520
2568
|
function ve(e) {
|
|
2521
2569
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
2522
2570
|
}
|
|
2523
|
-
function
|
|
2571
|
+
function Zt(e, t, n) {
|
|
2524
2572
|
if (n <= t) {
|
|
2525
2573
|
const o = e[0], l = o ? ve(o) : "#888";
|
|
2526
2574
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
@@ -2547,15 +2595,15 @@ function qt({
|
|
|
2547
2595
|
), 0.01) : r, l = y(
|
|
2548
2596
|
(i) => Math.round(i / o) * o,
|
|
2549
2597
|
[o]
|
|
2550
|
-
), b =
|
|
2598
|
+
), b = R(null), [p, v] = W(null), [C, u] = W(e), c = Yt(e), g = R(c);
|
|
2551
2599
|
L(() => {
|
|
2552
2600
|
g.current !== c && (g.current = c, !p && u(e));
|
|
2553
2601
|
}, [c, e, p]);
|
|
2554
|
-
const S = re(() =>
|
|
2602
|
+
const S = re(() => Zt(C, n, a), [C, n, a]), f = y(
|
|
2555
2603
|
(i) => {
|
|
2556
2604
|
if (!b.current) return n;
|
|
2557
|
-
const h = b.current.getBoundingClientRect(), m = h.width || 1, w = Math.max(0, Math.min(1, (i - h.left) / m)),
|
|
2558
|
-
return l(
|
|
2605
|
+
const h = b.current.getBoundingClientRect(), m = h.width || 1, w = Math.max(0, Math.min(1, (i - h.left) / m)), k = n + w * (a - n);
|
|
2606
|
+
return l(k);
|
|
2559
2607
|
},
|
|
2560
2608
|
[n, a, l]
|
|
2561
2609
|
);
|
|
@@ -2570,53 +2618,53 @@ function qt({
|
|
|
2570
2618
|
s || m?.disabled || (i.preventDefault(), v(h));
|
|
2571
2619
|
},
|
|
2572
2620
|
[s, C]
|
|
2573
|
-
),
|
|
2574
|
-
|
|
2575
|
-
const N =
|
|
2621
|
+
), I = R(C);
|
|
2622
|
+
I.current = C;
|
|
2623
|
+
const N = R(t);
|
|
2576
2624
|
N.current = t, L(() => {
|
|
2577
2625
|
if (!p) return;
|
|
2578
2626
|
const i = (m) => {
|
|
2579
2627
|
const w = f(m.clientX);
|
|
2580
2628
|
u(
|
|
2581
|
-
(
|
|
2629
|
+
(k) => k.map((M) => M.id === p ? { ...M, value: w } : M)
|
|
2582
2630
|
);
|
|
2583
2631
|
}, h = (m) => {
|
|
2584
|
-
const w = f(m.clientX),
|
|
2585
|
-
(
|
|
2632
|
+
const w = f(m.clientX), k = I.current.map(
|
|
2633
|
+
(M) => M.id === p ? { ...M, value: w } : M
|
|
2586
2634
|
);
|
|
2587
|
-
u(
|
|
2635
|
+
u(k), v(null), N.current(k);
|
|
2588
2636
|
};
|
|
2589
2637
|
return window.addEventListener("pointermove", i), window.addEventListener("pointerup", h), window.addEventListener("pointercancel", h), () => {
|
|
2590
2638
|
window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", h);
|
|
2591
2639
|
};
|
|
2592
2640
|
}, [p, f]);
|
|
2593
|
-
const
|
|
2641
|
+
const _ = a - n > 0 ? a - n : 1, T = y(
|
|
2594
2642
|
(i, h) => {
|
|
2595
2643
|
if (s || h.disabled) return;
|
|
2596
2644
|
const m = a - n;
|
|
2597
2645
|
if (m <= 0) return;
|
|
2598
2646
|
const w = i.shiftKey ? m / 20 : m / 100;
|
|
2599
|
-
let
|
|
2647
|
+
let k = h.value;
|
|
2600
2648
|
switch (i.key) {
|
|
2601
2649
|
case "ArrowRight":
|
|
2602
2650
|
case "ArrowUp":
|
|
2603
|
-
|
|
2651
|
+
k = h.value + w;
|
|
2604
2652
|
break;
|
|
2605
2653
|
case "ArrowLeft":
|
|
2606
2654
|
case "ArrowDown":
|
|
2607
|
-
|
|
2655
|
+
k = h.value - w;
|
|
2608
2656
|
break;
|
|
2609
2657
|
case "Home":
|
|
2610
|
-
|
|
2658
|
+
k = n;
|
|
2611
2659
|
break;
|
|
2612
2660
|
case "End":
|
|
2613
|
-
|
|
2661
|
+
k = a;
|
|
2614
2662
|
break;
|
|
2615
2663
|
default:
|
|
2616
2664
|
return;
|
|
2617
2665
|
}
|
|
2618
2666
|
i.preventDefault();
|
|
2619
|
-
const
|
|
2667
|
+
const M = Math.max(n, Math.min(a, k)), E = l(M);
|
|
2620
2668
|
if (E === h.value) return;
|
|
2621
2669
|
const G = C.map(
|
|
2622
2670
|
(V) => V.id === h.id ? { ...V, value: E } : V
|
|
@@ -2632,7 +2680,7 @@ function qt({
|
|
|
2632
2680
|
className: "gloss-threshold-ramp__track",
|
|
2633
2681
|
style: { background: S },
|
|
2634
2682
|
children: C.map((i) => {
|
|
2635
|
-
const h = (i.value - n) /
|
|
2683
|
+
const h = (i.value - n) / _ * 100;
|
|
2636
2684
|
return /* @__PURE__ */ d(
|
|
2637
2685
|
"span",
|
|
2638
2686
|
{
|
|
@@ -2644,7 +2692,7 @@ function qt({
|
|
|
2644
2692
|
"data-disabled": i.disabled || void 0,
|
|
2645
2693
|
"data-dragging": p === i.id || void 0,
|
|
2646
2694
|
onPointerDown: (m) => x(m, i.id),
|
|
2647
|
-
onKeyDown: (m) =>
|
|
2695
|
+
onKeyDown: (m) => T(m, i),
|
|
2648
2696
|
"aria-label": i.label ?? `Stop at ${i.value}`,
|
|
2649
2697
|
role: "slider",
|
|
2650
2698
|
"aria-valuenow": i.value,
|
|
@@ -2710,47 +2758,47 @@ function Jt({
|
|
|
2710
2758
|
), C = y(
|
|
2711
2759
|
(N) => p === N,
|
|
2712
2760
|
[p]
|
|
2713
|
-
), u =
|
|
2714
|
-
|
|
2761
|
+
), u = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
|
|
2762
|
+
_ ? u.current.set(N, _) : u.current.delete(N);
|
|
2715
2763
|
}, []), g = e.filter((N) => !N.disabled && !r), S = g.find((N) => N.value === p)?.value ?? g[0]?.value, f = y((N) => {
|
|
2716
|
-
const
|
|
2717
|
-
|
|
2764
|
+
const _ = u.current.get(N);
|
|
2765
|
+
_ && _.focus();
|
|
2718
2766
|
}, []), x = y(
|
|
2719
|
-
(N,
|
|
2767
|
+
(N, _) => {
|
|
2720
2768
|
if (r) return;
|
|
2721
|
-
const
|
|
2722
|
-
if (
|
|
2723
|
-
const i =
|
|
2769
|
+
const T = e.filter((w) => !w.disabled);
|
|
2770
|
+
if (T.length === 0) return;
|
|
2771
|
+
const i = T.findIndex((w) => w.value === _);
|
|
2724
2772
|
if (i === -1) return;
|
|
2725
2773
|
let h = i;
|
|
2726
2774
|
switch (N.key) {
|
|
2727
2775
|
case "ArrowRight":
|
|
2728
2776
|
case "ArrowDown":
|
|
2729
|
-
h = (i + 1) %
|
|
2777
|
+
h = (i + 1) % T.length;
|
|
2730
2778
|
break;
|
|
2731
2779
|
case "ArrowLeft":
|
|
2732
2780
|
case "ArrowUp":
|
|
2733
|
-
h = (i - 1 +
|
|
2781
|
+
h = (i - 1 + T.length) % T.length;
|
|
2734
2782
|
break;
|
|
2735
2783
|
case "Home":
|
|
2736
2784
|
h = 0;
|
|
2737
2785
|
break;
|
|
2738
2786
|
case "End":
|
|
2739
|
-
h =
|
|
2787
|
+
h = T.length - 1;
|
|
2740
2788
|
break;
|
|
2741
2789
|
case " ":
|
|
2742
2790
|
case "Enter":
|
|
2743
|
-
N.preventDefault(), v(
|
|
2791
|
+
N.preventDefault(), v(_);
|
|
2744
2792
|
return;
|
|
2745
2793
|
default:
|
|
2746
2794
|
return;
|
|
2747
2795
|
}
|
|
2748
2796
|
N.preventDefault();
|
|
2749
|
-
const m =
|
|
2797
|
+
const m = T[h].value;
|
|
2750
2798
|
f(m), v(m);
|
|
2751
2799
|
},
|
|
2752
2800
|
[r, e, v, f]
|
|
2753
|
-
),
|
|
2801
|
+
), I = {
|
|
2754
2802
|
selectedValue: p,
|
|
2755
2803
|
select: v,
|
|
2756
2804
|
isSelected: C,
|
|
@@ -2760,7 +2808,7 @@ function Jt({
|
|
|
2760
2808
|
firstFocusableValue: S,
|
|
2761
2809
|
onKeyNav: x
|
|
2762
2810
|
};
|
|
2763
|
-
return /* @__PURE__ */ d(Le.Provider, { value:
|
|
2811
|
+
return /* @__PURE__ */ d(Le.Provider, { value: I, children: /* @__PURE__ */ d(
|
|
2764
2812
|
"div",
|
|
2765
2813
|
{
|
|
2766
2814
|
className: "gloss-preset-swatch-row",
|
|
@@ -2779,7 +2827,7 @@ function ye(e, t) {
|
|
|
2779
2827
|
return n.zoneKey;
|
|
2780
2828
|
return null;
|
|
2781
2829
|
}
|
|
2782
|
-
function
|
|
2830
|
+
function Te(e, t) {
|
|
2783
2831
|
const n = e.find((a) => a.zoneKey === t);
|
|
2784
2832
|
return n ? n.zoneKey : ye(e, t);
|
|
2785
2833
|
}
|
|
@@ -2795,12 +2843,12 @@ function aa(e) {
|
|
|
2795
2843
|
() => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2796
2844
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
2797
2845
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
2798
|
-
), [a, r] = W(null), [s, o] = W(null), l =
|
|
2846
|
+
), [a, r] = W(null), [s, o] = W(null), l = R(null), b = R(e.onZoneChange);
|
|
2799
2847
|
b.current = e.onZoneChange;
|
|
2800
2848
|
const p = re(
|
|
2801
2849
|
() => ta(e.zones),
|
|
2802
2850
|
[e.zones]
|
|
2803
|
-
), v =
|
|
2851
|
+
), v = R(p);
|
|
2804
2852
|
L(() => {
|
|
2805
2853
|
v.current !== p && (v.current = p, !a && n(
|
|
2806
2854
|
e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -2811,15 +2859,15 @@ function aa(e) {
|
|
|
2811
2859
|
const C = y(
|
|
2812
2860
|
(f) => {
|
|
2813
2861
|
const x = f.active.id;
|
|
2814
|
-
let
|
|
2815
|
-
for (const
|
|
2816
|
-
const
|
|
2817
|
-
if (
|
|
2818
|
-
|
|
2862
|
+
let I = null, N = null;
|
|
2863
|
+
for (const _ of t) {
|
|
2864
|
+
const T = _.items.find((i) => i.id === x);
|
|
2865
|
+
if (T) {
|
|
2866
|
+
I = T, N = _.zoneKey;
|
|
2819
2867
|
break;
|
|
2820
2868
|
}
|
|
2821
2869
|
}
|
|
2822
|
-
l.current = N, r(
|
|
2870
|
+
l.current = N, r(I), o(N);
|
|
2823
2871
|
},
|
|
2824
2872
|
[t]
|
|
2825
2873
|
), u = y(
|
|
@@ -2828,49 +2876,49 @@ function aa(e) {
|
|
|
2828
2876
|
o(l.current);
|
|
2829
2877
|
return;
|
|
2830
2878
|
}
|
|
2831
|
-
const x =
|
|
2879
|
+
const x = Te(t, f.over.id);
|
|
2832
2880
|
o(x);
|
|
2833
2881
|
},
|
|
2834
2882
|
[t]
|
|
2835
2883
|
), c = y(
|
|
2836
2884
|
(f) => {
|
|
2837
|
-
const { active: x, over:
|
|
2885
|
+
const { active: x, over: I } = f, N = () => {
|
|
2838
2886
|
l.current = null, r(null), o(null);
|
|
2839
2887
|
};
|
|
2840
|
-
if (!
|
|
2888
|
+
if (!I) {
|
|
2841
2889
|
N();
|
|
2842
2890
|
return;
|
|
2843
2891
|
}
|
|
2844
|
-
const
|
|
2845
|
-
if (!
|
|
2892
|
+
const _ = ye(t, x.id), T = Te(t, I.id);
|
|
2893
|
+
if (!_ || !T) {
|
|
2846
2894
|
N();
|
|
2847
2895
|
return;
|
|
2848
2896
|
}
|
|
2849
2897
|
let i = t.map((h) => ({ ...h, items: [...h.items] }));
|
|
2850
|
-
if (
|
|
2851
|
-
const h = i.findIndex((E) => E.zoneKey ===
|
|
2898
|
+
if (_ === T) {
|
|
2899
|
+
const h = i.findIndex((E) => E.zoneKey === _), m = i[h], w = m.items.findIndex((E) => E.id === x.id), k = m.items.findIndex((E) => E.id === I.id), M = k >= 0 ? k : Math.max(0, m.items.length - 1);
|
|
2852
2900
|
i[h] = {
|
|
2853
2901
|
...m,
|
|
2854
|
-
items: ea(m.items, w,
|
|
2902
|
+
items: ea(m.items, w, M)
|
|
2855
2903
|
};
|
|
2856
2904
|
} else {
|
|
2857
|
-
const h = i.findIndex((
|
|
2858
|
-
if (!
|
|
2905
|
+
const h = i.findIndex((K) => K.zoneKey === _), m = i.findIndex((K) => K.zoneKey === T), w = i[h], k = i[m], M = w.items.find((K) => K.id === x.id);
|
|
2906
|
+
if (!M) {
|
|
2859
2907
|
N();
|
|
2860
2908
|
return;
|
|
2861
2909
|
}
|
|
2862
|
-
const E = w.items.filter((
|
|
2863
|
-
let $ = E, O = [...
|
|
2864
|
-
if (
|
|
2865
|
-
const
|
|
2866
|
-
O = O.slice(0,
|
|
2910
|
+
const E = w.items.filter((K) => K.id !== x.id), G = k.items.findIndex((K) => K.id === I.id), V = G >= 0 ? G : k.items.length;
|
|
2911
|
+
let $ = E, O = [...k.items];
|
|
2912
|
+
if (k.maxItems !== void 0 && O.length >= k.maxItems) {
|
|
2913
|
+
const K = O[O.length - 1];
|
|
2914
|
+
O = O.slice(0, k.maxItems - 1), $ = [...E, K];
|
|
2867
2915
|
}
|
|
2868
|
-
const
|
|
2869
|
-
...O.slice(0,
|
|
2870
|
-
|
|
2871
|
-
...O.slice(
|
|
2916
|
+
const j = Math.min(V, O.length), se = [
|
|
2917
|
+
...O.slice(0, j),
|
|
2918
|
+
M,
|
|
2919
|
+
...O.slice(j)
|
|
2872
2920
|
];
|
|
2873
|
-
i[h] = { ...w, items: $ }, i[m] = { ...
|
|
2921
|
+
i[h] = { ...w, items: $ }, i[m] = { ...k, items: se };
|
|
2874
2922
|
}
|
|
2875
2923
|
n(i), b.current?.(i), N();
|
|
2876
2924
|
},
|
|
@@ -2981,14 +3029,14 @@ function $e({
|
|
|
2981
3029
|
renderItem: a,
|
|
2982
3030
|
renderDragOverlay: r
|
|
2983
3031
|
}) {
|
|
2984
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext: b, DragOverlay: p, useSensors: v, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: g, closestCenter: S } = s, { SortableContext: f, verticalListSortingStrategy: x } = o,
|
|
3032
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: b, DragOverlay: p, useSensors: v, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: g, closestCenter: S } = s, { SortableContext: f, verticalListSortingStrategy: x } = o, I = v(
|
|
2985
3033
|
C(c, { activationConstraint: { distance: 5 } }),
|
|
2986
3034
|
C(g)
|
|
2987
|
-
), N = b,
|
|
3035
|
+
), N = b, _ = p, T = f;
|
|
2988
3036
|
return /* @__PURE__ */ A(
|
|
2989
3037
|
N,
|
|
2990
3038
|
{
|
|
2991
|
-
sensors:
|
|
3039
|
+
sensors: I,
|
|
2992
3040
|
collisionDetection: S,
|
|
2993
3041
|
onDragStart: e.handleDragStart,
|
|
2994
3042
|
onDragOver: e.handleDragOver,
|
|
@@ -3006,17 +3054,17 @@ function $e({
|
|
|
3006
3054
|
w.id
|
|
3007
3055
|
));
|
|
3008
3056
|
return /* @__PURE__ */ d(
|
|
3009
|
-
|
|
3057
|
+
ze,
|
|
3010
3058
|
{
|
|
3011
3059
|
zoneKey: i.zoneKey,
|
|
3012
3060
|
zoneProps: e.getZoneProps(i.zoneKey),
|
|
3013
3061
|
useDroppable: u,
|
|
3014
|
-
children: /* @__PURE__ */ d(
|
|
3062
|
+
children: /* @__PURE__ */ d(T, { items: h, strategy: x, children: n(i.zoneKey, i.items, m) })
|
|
3015
3063
|
},
|
|
3016
3064
|
i.zoneKey
|
|
3017
3065
|
);
|
|
3018
3066
|
}),
|
|
3019
|
-
/* @__PURE__ */ d(
|
|
3067
|
+
/* @__PURE__ */ d(_, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
3020
3068
|
]
|
|
3021
3069
|
}
|
|
3022
3070
|
);
|
|
@@ -3031,7 +3079,7 @@ function Be({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
|
3031
3079
|
return /* @__PURE__ */ d("div", { ref: o, style: v, "data-sortable-item-id": e, ...r, ...s, children: a });
|
|
3032
3080
|
}
|
|
3033
3081
|
Be.displayName = "SortableItem";
|
|
3034
|
-
function
|
|
3082
|
+
function ze({
|
|
3035
3083
|
zoneKey: e,
|
|
3036
3084
|
zoneProps: t,
|
|
3037
3085
|
useDroppable: n,
|
|
@@ -3040,8 +3088,8 @@ function Ke({
|
|
|
3040
3088
|
const { setNodeRef: r, isOver: s } = n({ id: e });
|
|
3041
3089
|
return /* @__PURE__ */ d("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
3042
3090
|
}
|
|
3043
|
-
|
|
3044
|
-
function
|
|
3091
|
+
ze.displayName = "ZoneDroppable";
|
|
3092
|
+
function xn({
|
|
3045
3093
|
slotLeft: e,
|
|
3046
3094
|
slotCenter: t,
|
|
3047
3095
|
slotRight: n,
|
|
@@ -3091,13 +3139,13 @@ function vn({
|
|
|
3091
3139
|
}
|
|
3092
3140
|
);
|
|
3093
3141
|
}
|
|
3094
|
-
function
|
|
3142
|
+
function Sn({
|
|
3095
3143
|
count: e,
|
|
3096
3144
|
currentIndex: t,
|
|
3097
3145
|
onSelect: n,
|
|
3098
3146
|
"aria-label": a = "Sections"
|
|
3099
3147
|
}) {
|
|
3100
|
-
const r =
|
|
3148
|
+
const r = Ue.useRef([]);
|
|
3101
3149
|
return r.current.length = e, /* @__PURE__ */ d(
|
|
3102
3150
|
"div",
|
|
3103
3151
|
{
|
|
@@ -3161,257 +3209,264 @@ const da = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
|
3161
3209
|
});
|
|
3162
3210
|
da.displayName = "ContainerTable";
|
|
3163
3211
|
export {
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3212
|
+
Rn as Accordion,
|
|
3213
|
+
In as AccordionContent,
|
|
3214
|
+
Pn as AccordionItem,
|
|
3215
|
+
Fn as AccordionTrigger,
|
|
3216
|
+
En as ActionStrip,
|
|
3217
|
+
On as Actionable,
|
|
3218
|
+
An as AddressGroup,
|
|
3219
|
+
Ln as AddressSelect,
|
|
3220
|
+
$n as AsyncLoader,
|
|
3221
|
+
Bn as Autocomplete,
|
|
3222
|
+
zn as Badge,
|
|
3223
|
+
Kn as BarChartCard,
|
|
3224
|
+
Wn as BarsBg,
|
|
3225
|
+
xn as BottomToolbar,
|
|
3226
|
+
Gn as Button,
|
|
3227
|
+
Hn as ButtonGroup,
|
|
3228
|
+
Vn as ButtonGroupContext,
|
|
3229
|
+
jn as Card,
|
|
3230
|
+
Un as CardActions,
|
|
3231
|
+
Zn as CardBack,
|
|
3232
|
+
Yn as CardBody,
|
|
3233
|
+
qn as CardFooter,
|
|
3234
|
+
Qn as CardHeader,
|
|
3235
|
+
Xn as CardMedia,
|
|
3236
|
+
Jn as CardShell,
|
|
3237
|
+
er as CardSubtitle,
|
|
3238
|
+
tr as CardTitle,
|
|
3239
|
+
ar as ChartControlBar,
|
|
3240
|
+
nr as Checkbox,
|
|
3241
|
+
rr as CheckboxGroup,
|
|
3242
|
+
sr as Chip,
|
|
3243
|
+
or as ColorPicker,
|
|
3244
|
+
ir as ComparisonCard,
|
|
3245
|
+
lr as ContactForm,
|
|
3246
|
+
cr as ContainerCard,
|
|
3247
|
+
dr as ContainerCardActions,
|
|
3248
|
+
ur as ContainerCardBody,
|
|
3249
|
+
mr as ContainerCardFooter,
|
|
3250
|
+
pr as ContainerCardHeader,
|
|
3251
|
+
gr as ContainerCardMedia,
|
|
3252
|
+
fr as ContainerCardSubtitle,
|
|
3253
|
+
hr as ContainerCardTitle,
|
|
3254
|
+
br as ContainerDialog,
|
|
3255
|
+
vr as ContainerDialogActions,
|
|
3256
|
+
yr as ContainerDialogBody,
|
|
3257
|
+
wr as ContainerDialogHeader,
|
|
3210
3258
|
ca as ContainerFormSection,
|
|
3211
|
-
|
|
3259
|
+
Dr as ContainerPanel,
|
|
3212
3260
|
da as ContainerTable,
|
|
3213
3261
|
la as ContainerToolbar,
|
|
3214
|
-
|
|
3215
|
-
|
|
3262
|
+
Nr as CreditCardForm,
|
|
3263
|
+
Cr as DEFAULT_FOOTER_IDS,
|
|
3216
3264
|
ee as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3265
|
+
Qo as DEFAULT_MARKET_PRESETS,
|
|
3266
|
+
kr as DEFAULT_OVERFLOW_IDS,
|
|
3267
|
+
Xo as DEFAULT_PINNED,
|
|
3268
|
+
Ie as DEFAULT_RESIZE_PHYSICS,
|
|
3269
|
+
_r as DataTable,
|
|
3270
|
+
xr as DatePicker,
|
|
3271
|
+
Sr as DateRangePicker,
|
|
3272
|
+
Mr as DestructiveModal,
|
|
3225
3273
|
Ht as DevTuningPanel,
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3274
|
+
Tr as DirectionCard,
|
|
3275
|
+
Rr as Dismissible,
|
|
3276
|
+
Ir as DistributionCard,
|
|
3277
|
+
Pr as DonutChart,
|
|
3230
3278
|
gn as DropAnchorCell,
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3279
|
+
Fr as Dropdown,
|
|
3280
|
+
Er as ENTITY_FILTER_KEYS,
|
|
3281
|
+
Or as ENTITY_PROFILE_ROUTES,
|
|
3282
|
+
Ar as ENTITY_TYPE_PLURAL,
|
|
3235
3283
|
gt as EdgeHoverHandle,
|
|
3236
3284
|
bn as EmptyCellPackAffordance,
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3285
|
+
Lr as EntityPicker,
|
|
3286
|
+
$r as EntitySearchPanel,
|
|
3287
|
+
Br as Expandable,
|
|
3288
|
+
zr as ExpandableChip,
|
|
3289
|
+
Kr as FLIP_AND_STAGE_TIMINGS,
|
|
3290
|
+
Wr as FileUpload,
|
|
3291
|
+
Gr as FilterChip,
|
|
3292
|
+
Hr as FilterInput,
|
|
3293
|
+
Vr as FlipAndStageProvider,
|
|
3294
|
+
jr as Form,
|
|
3295
|
+
Ur as FormDialog,
|
|
3296
|
+
Zr as FormField,
|
|
3297
|
+
Yr as FusedShape,
|
|
3250
3298
|
ft as GhostPreview,
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3299
|
+
qr as GroupCheckbox,
|
|
3300
|
+
Qr as GroupRadio,
|
|
3301
|
+
Cn as HARD_CLIP,
|
|
3302
|
+
Xr as HighlightCard,
|
|
3303
|
+
Jr as HybridDatePicker,
|
|
3304
|
+
es as ImportWizard,
|
|
3305
|
+
Ut as InlineNudge,
|
|
3306
|
+
ts as Input,
|
|
3307
|
+
as as InputAddon,
|
|
3308
|
+
ns as InputGroup,
|
|
3309
|
+
rs as Link,
|
|
3310
|
+
ss as LoginForm,
|
|
3311
|
+
os as MarketPresetRow,
|
|
3312
|
+
is as MaskPresets,
|
|
3313
|
+
ls as MaskedInput,
|
|
3314
|
+
cs as Menu,
|
|
3315
|
+
ds as MenuDivider,
|
|
3316
|
+
us as MenuGroup,
|
|
3317
|
+
ms as MenuItem,
|
|
3318
|
+
ps as MergePrompt,
|
|
3319
|
+
gs as MetricCard,
|
|
3320
|
+
fs as MetricCardGrid,
|
|
3272
3321
|
Ot as MetricGroupContainer,
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3322
|
+
hs as MiniCalendar,
|
|
3323
|
+
bs as MultiSelect,
|
|
3324
|
+
vs as NumberInput,
|
|
3325
|
+
ys as ObjectArrow,
|
|
3326
|
+
ws as OrderFilterBar,
|
|
3327
|
+
Jo as PERIOD_OPTIONS,
|
|
3279
3328
|
Ct as PageChip,
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3329
|
+
Pe as PageDropdown,
|
|
3330
|
+
Ds as PasswordInput,
|
|
3331
|
+
Ns as PaymentForm,
|
|
3332
|
+
Cs as PaymentMethodSelect,
|
|
3333
|
+
ks as PhoneInput,
|
|
3334
|
+
_s as PinToMetric,
|
|
3286
3335
|
Jt as PresetSwatchRow,
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3336
|
+
xs as ProfileCard,
|
|
3337
|
+
Ss as ProgressCard,
|
|
3338
|
+
Ms as QuickConfigPanel,
|
|
3339
|
+
Rt as RECONFIG_BACKSIDE_LABELS,
|
|
3340
|
+
ei as ROLLING_OPTIONS,
|
|
3341
|
+
Ts as Radio,
|
|
3342
|
+
Rs as RadioGroup,
|
|
3343
|
+
Is as RangeSlider,
|
|
3344
|
+
Ps as Rating,
|
|
3345
|
+
Ft as ReconfigBacksideButtons,
|
|
3346
|
+
Fs as RegistrationForm,
|
|
3298
3347
|
pn as ResizeEnvelope,
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3348
|
+
Es as Row1Controls,
|
|
3349
|
+
Os as Row2FilterTray,
|
|
3350
|
+
As as SearchInput,
|
|
3302
3351
|
hn as SectionDivider,
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3352
|
+
Sn as SectionDots,
|
|
3353
|
+
Ls as SegmentCard,
|
|
3354
|
+
$s as SegmentedControl,
|
|
3355
|
+
Bs as Select,
|
|
3356
|
+
zs as Selectable,
|
|
3357
|
+
Ks as SimpleMetricCard,
|
|
3358
|
+
Ws as SimpleSelector,
|
|
3359
|
+
Gs as Skeleton,
|
|
3360
|
+
Hs as SkeletonCard,
|
|
3361
|
+
Vs as SkeletonChart,
|
|
3362
|
+
js as SkeletonTable,
|
|
3363
|
+
Us as Slider,
|
|
3364
|
+
Zs as Sortable,
|
|
3316
3365
|
ia as SortableZones,
|
|
3317
|
-
|
|
3366
|
+
Ys as SparklineBg,
|
|
3318
3367
|
fn as SpilloverArc,
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3368
|
+
qs as SplitButton,
|
|
3369
|
+
Qs as StackedGroupCard,
|
|
3370
|
+
Xs as StatusModeCard,
|
|
3322
3371
|
pt as StatusSlotChipMenu,
|
|
3323
|
-
|
|
3324
|
-
|
|
3372
|
+
Js as Stepper,
|
|
3373
|
+
ti as TODAY_PRESET,
|
|
3325
3374
|
J as TUNING_DEFAULTS,
|
|
3326
3375
|
Ae as TUNING_STORAGE_KEY,
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3376
|
+
eo as TabGroup,
|
|
3377
|
+
to as TabbedDataView,
|
|
3378
|
+
ao as TagInput,
|
|
3379
|
+
no as Textarea,
|
|
3331
3380
|
qt as ThresholdRamp,
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3381
|
+
ro as TimeFrame,
|
|
3382
|
+
so as TimePicker,
|
|
3383
|
+
oo as Toggle,
|
|
3384
|
+
io as Tooltip,
|
|
3385
|
+
lo as Transition,
|
|
3386
|
+
co as TransitionGroup,
|
|
3387
|
+
uo as TrendCard,
|
|
3388
|
+
mo as TrendIndicator,
|
|
3389
|
+
Zo as UIContext,
|
|
3341
3390
|
we as UIContextProvider,
|
|
3342
|
-
|
|
3343
|
-
|
|
3391
|
+
po as UnifiedBreakdownTable,
|
|
3392
|
+
go as UnifiedContextMenu,
|
|
3344
3393
|
ht as VelocityBuffer,
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3394
|
+
fo as addressGroupMetadata,
|
|
3395
|
+
ho as addressSchema,
|
|
3396
|
+
ka as allChips,
|
|
3348
3397
|
La as allStateFixtures,
|
|
3349
3398
|
Aa as allVariantFixtures,
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
Ia as
|
|
3399
|
+
Ma as blockSamples,
|
|
3400
|
+
bo as buildDefaultOverflow,
|
|
3401
|
+
Fa as cardSamples,
|
|
3402
|
+
vn as cascadePhysics,
|
|
3403
|
+
Ia as chartSamples,
|
|
3404
|
+
Ra as circleSamples,
|
|
3405
|
+
kn as colorTokens,
|
|
3355
3406
|
sn as compactLayout,
|
|
3356
|
-
|
|
3407
|
+
Za as compactState,
|
|
3357
3408
|
Oa as computeGutterAnchorX,
|
|
3358
|
-
|
|
3359
|
-
|
|
3409
|
+
vo as contactFormMetadata,
|
|
3410
|
+
yo as contactSchema,
|
|
3360
3411
|
Ya as contextMenuFixtures,
|
|
3361
|
-
|
|
3362
|
-
|
|
3412
|
+
wo as creditCardFormMetadata,
|
|
3413
|
+
Do as creditCardSchema,
|
|
3363
3414
|
ct as dateChip,
|
|
3364
3415
|
Oe as defaultControlBarState,
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3416
|
+
No as destructiveModalMetadata,
|
|
3417
|
+
Co as durations,
|
|
3418
|
+
ko as easings,
|
|
3368
3419
|
yt as emptyFixture,
|
|
3369
3420
|
it as entityChip,
|
|
3370
3421
|
St as entityNameActions,
|
|
3371
3422
|
xa as entityTabGroup,
|
|
3372
3423
|
vt as errorFixture,
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3424
|
+
Ua as filteredState,
|
|
3425
|
+
ai as findPreset,
|
|
3426
|
+
ni as formatDateRange,
|
|
3427
|
+
ri as formatMarketDates,
|
|
3428
|
+
si as formatTrend,
|
|
3429
|
+
oi as formatValue,
|
|
3379
3430
|
ln as fullLayout,
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3431
|
+
ii as generateMarketId,
|
|
3432
|
+
_o as generateTabId,
|
|
3433
|
+
li as getAllPresets,
|
|
3434
|
+
ci as getDateRangeForPreset,
|
|
3435
|
+
xo as getMenuActions,
|
|
3436
|
+
_n as getMotionMode,
|
|
3437
|
+
di as getPresetLabel,
|
|
3438
|
+
So as getTransitionStyle,
|
|
3387
3439
|
rn as gridCards,
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3440
|
+
Mo as interpolate,
|
|
3441
|
+
ui as isInRange,
|
|
3442
|
+
mi as isMarketActive,
|
|
3443
|
+
pi as isSameDay,
|
|
3444
|
+
ja as itemColumns,
|
|
3393
3445
|
Ha as itemRows,
|
|
3394
3446
|
bt as loadingFixture,
|
|
3395
|
-
|
|
3396
|
-
|
|
3447
|
+
To as loginFormMetadata,
|
|
3448
|
+
Ro as loginSchema,
|
|
3397
3449
|
dt as manufacturerChip,
|
|
3398
3450
|
mn as manyTabs,
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3451
|
+
Io as mergeHandlers,
|
|
3452
|
+
Po as mergeRefs,
|
|
3453
|
+
_a as metricTabGroup,
|
|
3402
3454
|
dn as mixedTabs,
|
|
3403
|
-
|
|
3404
|
-
|
|
3455
|
+
gi as normalizePresetId,
|
|
3456
|
+
Tt as numericActions,
|
|
3405
3457
|
Va as orderColumns,
|
|
3406
|
-
|
|
3458
|
+
Mt as orderIdActions,
|
|
3407
3459
|
Ga as orderRows,
|
|
3408
3460
|
cn as ordersTabs,
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3461
|
+
Fo as parseNumericValue,
|
|
3462
|
+
Eo as paymentFormMetadata,
|
|
3463
|
+
Oo as paymentSchema,
|
|
3464
|
+
Ao as presets,
|
|
3465
|
+
Dn as provisional,
|
|
3466
|
+
Nn as reducedMotion,
|
|
3467
|
+
Lo as registrationFormMetadata,
|
|
3468
|
+
$o as registrationSchema,
|
|
3469
|
+
wn as rejectionFeedback,
|
|
3415
3470
|
Qa as sampleCompareRanges,
|
|
3416
3471
|
en as sampleCustomMarkets,
|
|
3417
3472
|
qa as sampleDateRange,
|
|
@@ -3426,27 +3481,28 @@ export {
|
|
|
3426
3481
|
Nt as staleDonutFixture,
|
|
3427
3482
|
wt as staleFixture,
|
|
3428
3483
|
Dt as staleSparklineFixture,
|
|
3429
|
-
|
|
3484
|
+
za as standardFixture,
|
|
3430
3485
|
Wa as standardFlatFixture,
|
|
3431
3486
|
on as standardLayout,
|
|
3432
|
-
|
|
3487
|
+
Ka as standardNegativeFixture,
|
|
3433
3488
|
lt as statusChip,
|
|
3434
|
-
|
|
3435
|
-
|
|
3489
|
+
yn as swingReveal,
|
|
3490
|
+
Pa as tableSamples,
|
|
3491
|
+
Ta as textSamples,
|
|
3436
3492
|
Sa as timeFrameTabGroup,
|
|
3437
|
-
|
|
3493
|
+
fi as toUppercasePresetId,
|
|
3438
3494
|
Ca as useArrowNavigation,
|
|
3439
|
-
|
|
3495
|
+
Bo as useCheckboxGroupContext,
|
|
3440
3496
|
Ea as useEdgeHoverResize,
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3497
|
+
zo as useFilterLayout,
|
|
3498
|
+
Ko as useFlipAndStage,
|
|
3499
|
+
Wo as useFlipAndStageContext,
|
|
3500
|
+
Go as useFlipAndStageContextOptional,
|
|
3445
3501
|
Na as useFocusReturn,
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3502
|
+
Ho as useFocusTrap,
|
|
3503
|
+
Vo as useFormContext,
|
|
3504
|
+
jo as useRadioGroupContext,
|
|
3449
3505
|
$t as useResizeTuning,
|
|
3450
3506
|
aa as useSortableZones,
|
|
3451
|
-
|
|
3507
|
+
Yo as useUIContext
|
|
3452
3508
|
};
|