@mt-gloss/ui 0.1.66 → 0.1.68
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-TqBH7CTs.js → Expandable-BujNoomx.js} +1335 -1329
- package/catalog.js +2 -2
- package/index.js +970 -952
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/index.d.ts +1 -0
- package/lib/primitives/dashboard/MetricCard/types.d.ts +4 -0
- package/lib/primitives/dashboard/MetricCard/useResizeChoreography.d.ts +6 -0
- package/lib/primitives/dashboard/TrackingOutline/TrackingOutline.d.ts +18 -1
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { u as rt, C as Dt } from "./Expandable-
|
|
2
|
-
import { Q as
|
|
3
|
-
import { jsxs as k, jsx as r, Fragment as
|
|
4
|
-
import * as
|
|
1
|
+
import { u as rt, C as Dt } from "./Expandable-BujNoomx.js";
|
|
2
|
+
import { Q as Vr, V as Hr, T as Ur, U as Zr, a5 as Yr, b8 as qr, aB as Qr, aj as Xr, $ as Jr, ap as es, N as ts, aa as as, bo as ns, P as rs, B as ss, a as is, A as os, K as ls, bj as cs, J as ds, L as us, E as ms, D as gs, H as ps, F as fs, by as hs, b as bs, c as vs, O as ys, q as ws, af as _s, aP as Ns, A as Ds, K as ks, J as Cs, L as Ss, E as xs, D as Rs, H as Ms, F as Ts, b1 as Is, b4 as Es, b3 as Ps, b2 as Fs, b5 as As, aE as Os, a7 as Ls, a6 as $s, as as Bs, m as Ks, o as zs, aH as Ws, ad as Gs, ba as js, ab as Vs, bp as Hs, _ as Us, bI as Zs, bH as Ys, bJ as qs, ar as Qs, aS as Xs, bc as Js, bN as ei, bw as ti, p as ai, ao as ni, bC as ri, bt as si, a2 as ii, at as oi, a4 as li, bB as ci, bS as di, G as ui, f as mi, ac as gi, bK as pi, aV as fi, t as hi, x as bi, I as vi, i as yi, ay as wi, bO as _i, M as Ni, y as Di, W as ki, Z as Ci, X as Si, Y as xi, au as Ri, bi as Mi, bQ as Ti, bM as Ii, aq as Ei, w as Pi, bq as Fi, aU as Ai, al as Oi, aM as Li, ai as $i, an as Bi, aw as Ki, aT as zi, ae as Wi, av as Gi, e as ji, R as Vi, l as Hi, r as Ui, aJ as Zi, bz as Yi, bA as qi, ak as Qi, ag as Xi, j as Ji, z as eo, b9 as to, ah as ao, bP as no, be as ro, bh as so, bf as io, bg as oo, k as lo, bb as co, bn as uo, S as mo, bl as go, bm as po, ax as fo, bd as ho, bR as bo, am as vo, v as yo, bL as wo, n as _o, h as No, s as Do, a0 as ko, a1 as Co, a9 as So, bk as xo, bx as Ro, bE as Mo, aC as To, aD as Io, a8 as Eo, aQ as Po, aR as Fo, aF as Ao, aG as Oo, aI as Lo, aX as $o, aY as Bo, br as Ko, bG as zo, bF as Wo, a_ as Go, a$ as jo, az as Vo, aA as Ho, b7 as Uo, b6 as Zo, b0 as Yo, aN as qo, aO as Qo, aZ as Xo, aK as Jo, aL as el, d as tl, bD as al, bs as nl, bu as rl, bv as sl, aW as il, a3 as ol, bT as ll, g as cl } from "./Expandable-BujNoomx.js";
|
|
3
|
+
import { jsxs as k, jsx as r, Fragment as ae } from "react/jsx-runtime";
|
|
4
|
+
import * as X from "react";
|
|
5
5
|
import V, { useRef as E, useEffect as O, useState as $, useCallback as N, useId as kt, forwardRef as Ct, useMemo as Ne, createContext as St, useContext as xt } from "react";
|
|
6
|
-
import { motion as
|
|
6
|
+
import { motion as De, useMotionValue as Rt, animate as Ue, useDragControls as Mt } from "framer-motion";
|
|
7
7
|
import { B as Tt, a as be, b as Pe, U as ze } from "./UIContext-DP6JGCto.js";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as ul, u as ml } from "./UIContext-DP6JGCto.js";
|
|
9
9
|
import { createPortal as It } from "react-dom";
|
|
10
10
|
import { SPRING_RESIZE_COMMIT as Ze, useMotionProbe as Fe } from "@mt-gloss/motion";
|
|
11
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
11
|
+
import { DEFAULT_MARKET_PRESETS as pl, DEFAULT_PINNED as fl, PERIOD_OPTIONS as hl, ROLLING_OPTIONS as bl, TODAY_PRESET as vl, findPreset as yl, formatDateRange as wl, formatMarketDates as _l, formatTrend as Nl, formatValue as Dl, generateMarketId as kl, getAllPresets as Cl, getDateRangeForPreset as Sl, getPresetLabel as xl, isInRange as Rl, isMarketActive as Ml, isSameDay as Tl, normalizePresetId as Il, toUppercasePresetId as El } from "@mt-gloss/utils";
|
|
12
12
|
import Et from "@mui/icons-material/AccessTime";
|
|
13
13
|
import Pt from "@mui/icons-material/Tune";
|
|
14
14
|
import Ft from "@mui/icons-material/ViewColumn";
|
|
15
15
|
import At from "@mui/icons-material/AspectRatio";
|
|
16
16
|
import Ot from "@mui/icons-material/Palette";
|
|
17
17
|
import Lt from "@mui/icons-material/PushPin";
|
|
18
|
-
function
|
|
18
|
+
function Cn(e = {}) {
|
|
19
19
|
const { enabled: t = !0, returnTo: n } = e, a = E(null);
|
|
20
20
|
return O(() => {
|
|
21
21
|
t && (a.current = n || document.activeElement);
|
|
@@ -25,7 +25,7 @@ function Sn(e = {}) {
|
|
|
25
25
|
}, 0);
|
|
26
26
|
}, [t]), a;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Sn(e) {
|
|
29
29
|
const {
|
|
30
30
|
items: t,
|
|
31
31
|
activeIndex: n,
|
|
@@ -36,60 +36,60 @@ function xn(e) {
|
|
|
36
36
|
isItemDisabled: l,
|
|
37
37
|
onSelect: m,
|
|
38
38
|
onEscape: d
|
|
39
|
-
} = e, [h,
|
|
40
|
-
(
|
|
41
|
-
n === void 0 && p
|
|
39
|
+
} = e, [h, f] = $(-1), u = n !== void 0 ? n : h, g = N(
|
|
40
|
+
(p) => {
|
|
41
|
+
n === void 0 && f(p), a?.(p);
|
|
42
42
|
},
|
|
43
43
|
[n, a]
|
|
44
|
-
), w = N(() => t.map((
|
|
45
|
-
(
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return b === 1 ?
|
|
51
|
-
let y =
|
|
52
|
-
return i ? y = (y +
|
|
44
|
+
), w = N(() => t.map((p, b) => ({ item: p, index: b })).filter(({ item: p, index: b }) => !l?.(p, b)).map(({ index: p }) => p), [t, l]), v = N(
|
|
45
|
+
(p, b) => {
|
|
46
|
+
const _ = w();
|
|
47
|
+
if (_.length === 0) return -1;
|
|
48
|
+
const C = _.indexOf(p);
|
|
49
|
+
if (C === -1)
|
|
50
|
+
return b === 1 ? _.find((R) => R > p) ?? (i ? _[0] : -1) : [..._].reverse().find((P) => P < p) ?? (i ? _[_.length - 1] : -1);
|
|
51
|
+
let y = C + b;
|
|
52
|
+
return i ? y = (y + _.length) % _.length : y = Math.max(0, Math.min(_.length - 1, y)), _[y];
|
|
53
53
|
},
|
|
54
54
|
[w, i]
|
|
55
55
|
), c = N(() => {
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
}, [w,
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
}, [w,
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
(
|
|
56
|
+
const p = w();
|
|
57
|
+
p.length > 0 && g(p[0]);
|
|
58
|
+
}, [w, g]), x = N(() => {
|
|
59
|
+
const p = w();
|
|
60
|
+
p.length > 0 && g(p[p.length - 1]);
|
|
61
|
+
}, [w, g]), I = N(() => {
|
|
62
|
+
const p = v(u, 1);
|
|
63
|
+
p !== -1 && g(p);
|
|
64
|
+
}, [u, v, g]), D = N(() => {
|
|
65
|
+
const p = v(u, -1);
|
|
66
|
+
p !== -1 && g(p);
|
|
67
|
+
}, [u, v, g]), M = N(() => {
|
|
68
|
+
g(-1);
|
|
69
|
+
}, [g]), T = N(
|
|
70
|
+
(p) => {
|
|
71
71
|
if (!o) return;
|
|
72
|
-
const { key: b } =
|
|
73
|
-
if (
|
|
74
|
-
|
|
72
|
+
const { key: b } = p, _ = b === "ArrowUp" && (s === "vertical" || s === "both"), C = b === "ArrowDown" && (s === "vertical" || s === "both"), y = b === "ArrowLeft" && (s === "horizontal" || s === "both"), R = b === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
73
|
+
if (_ || y) {
|
|
74
|
+
p.preventDefault(), u === -1 ? x() : D();
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
if (
|
|
78
|
-
|
|
77
|
+
if (C || R) {
|
|
78
|
+
p.preventDefault(), u === -1 ? c() : I();
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
if (b === "Home") {
|
|
82
|
-
|
|
82
|
+
p.preventDefault(), c();
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
if (b === "End") {
|
|
86
|
-
|
|
86
|
+
p.preventDefault(), x();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
if ((b === "Enter" || b === " ") &&
|
|
90
|
-
|
|
91
|
-
const P = t[
|
|
92
|
-
l?.(P,
|
|
89
|
+
if ((b === "Enter" || b === " ") && u >= 0 && u < t.length) {
|
|
90
|
+
p.preventDefault();
|
|
91
|
+
const P = t[u];
|
|
92
|
+
l?.(P, u) || m?.(P, u);
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
if (b === "Escape") {
|
|
@@ -100,25 +100,25 @@ function xn(e) {
|
|
|
100
100
|
[
|
|
101
101
|
o,
|
|
102
102
|
s,
|
|
103
|
-
|
|
103
|
+
u,
|
|
104
104
|
t,
|
|
105
105
|
c,
|
|
106
|
-
|
|
106
|
+
x,
|
|
107
107
|
I,
|
|
108
|
-
|
|
108
|
+
D,
|
|
109
109
|
l,
|
|
110
110
|
m,
|
|
111
111
|
d
|
|
112
112
|
]
|
|
113
113
|
);
|
|
114
114
|
return {
|
|
115
|
-
focusedIndex:
|
|
116
|
-
setFocusedIndex:
|
|
117
|
-
handleKeyDown:
|
|
115
|
+
focusedIndex: u,
|
|
116
|
+
setFocusedIndex: g,
|
|
117
|
+
handleKeyDown: T,
|
|
118
118
|
focusFirst: c,
|
|
119
|
-
focusLast:
|
|
119
|
+
focusLast: x,
|
|
120
120
|
focusNext: I,
|
|
121
|
-
focusPrevious:
|
|
121
|
+
focusPrevious: D,
|
|
122
122
|
resetFocus: M
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -131,30 +131,30 @@ const $t = ({
|
|
|
131
131
|
hint: s
|
|
132
132
|
}) => {
|
|
133
133
|
const [o, l] = $(n != null ? String(n) : ""), m = () => {
|
|
134
|
-
const
|
|
135
|
-
Number.isNaN(
|
|
136
|
-
}, d = (
|
|
137
|
-
|
|
138
|
-
}, h = kt(),
|
|
134
|
+
const g = parseFloat(o);
|
|
135
|
+
Number.isNaN(g) || a(g);
|
|
136
|
+
}, d = (g) => {
|
|
137
|
+
g.key === "Enter" ? (g.preventDefault(), m()) : g.key === "Escape" && (g.preventDefault(), i?.());
|
|
138
|
+
}, h = kt(), f = `gloss-target-input-field-${h}`, u = s ? `gloss-target-input-hint-${h}` : void 0;
|
|
139
139
|
return /* @__PURE__ */ k("div", { className: "gloss-target-input", children: [
|
|
140
|
-
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor:
|
|
140
|
+
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: f, children: e }),
|
|
141
141
|
/* @__PURE__ */ k("div", { className: "gloss-target-input__field-row", children: [
|
|
142
142
|
/* @__PURE__ */ r(
|
|
143
143
|
"input",
|
|
144
144
|
{
|
|
145
|
-
id:
|
|
145
|
+
id: f,
|
|
146
146
|
type: "number",
|
|
147
147
|
className: "gloss-target-input__field",
|
|
148
148
|
value: o,
|
|
149
|
-
onChange: (
|
|
149
|
+
onChange: (g) => l(g.target.value),
|
|
150
150
|
onKeyDown: d,
|
|
151
|
-
"aria-describedby":
|
|
151
|
+
"aria-describedby": u,
|
|
152
152
|
autoFocus: !0
|
|
153
153
|
}
|
|
154
154
|
),
|
|
155
155
|
t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
|
|
156
156
|
] }),
|
|
157
|
-
s && /* @__PURE__ */ r("p", { id:
|
|
157
|
+
s && /* @__PURE__ */ r("p", { id: u, className: "gloss-target-input__hint", children: s }),
|
|
158
158
|
/* @__PURE__ */ k("div", { className: "gloss-target-input__actions", children: [
|
|
159
159
|
/* @__PURE__ */ r(
|
|
160
160
|
"button",
|
|
@@ -201,18 +201,18 @@ const $t = ({
|
|
|
201
201
|
field: "manufacturer",
|
|
202
202
|
value: "widget-co-456",
|
|
203
203
|
onRemove: xe
|
|
204
|
-
},
|
|
204
|
+
}, xn = [
|
|
205
205
|
Bt,
|
|
206
206
|
Kt,
|
|
207
207
|
zt,
|
|
208
208
|
Wt
|
|
209
|
-
],
|
|
209
|
+
], Rn = {
|
|
210
210
|
id: "metric-toggle",
|
|
211
211
|
tabs: [
|
|
212
212
|
{ id: "$", label: "$", mono: !0 },
|
|
213
213
|
{ id: "#", label: "#", mono: !0 }
|
|
214
214
|
]
|
|
215
|
-
},
|
|
215
|
+
}, Mn = {
|
|
216
216
|
id: "entity-type",
|
|
217
217
|
tabs: [
|
|
218
218
|
{ id: "orders", label: "Orders" },
|
|
@@ -220,7 +220,7 @@ const $t = ({
|
|
|
220
220
|
{ id: "customers", label: "Customers" },
|
|
221
221
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
222
222
|
]
|
|
223
|
-
},
|
|
223
|
+
}, Tn = {
|
|
224
224
|
id: "time-frame",
|
|
225
225
|
tabs: [
|
|
226
226
|
{ id: "MTD", label: "MTD" },
|
|
@@ -228,26 +228,26 @@ const $t = ({
|
|
|
228
228
|
{ id: "YTD", label: "YTD" },
|
|
229
229
|
{ id: "LYTD", label: "LYTD" }
|
|
230
230
|
]
|
|
231
|
-
},
|
|
231
|
+
}, In = [
|
|
232
232
|
{ variant: "block", width: "100%", height: 16 },
|
|
233
233
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
234
234
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
235
235
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
236
|
-
],
|
|
236
|
+
], En = [
|
|
237
237
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
238
238
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
239
239
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
240
|
-
],
|
|
240
|
+
], Pn = [
|
|
241
241
|
{ variant: "circle", size: 24 },
|
|
242
242
|
{ variant: "circle", size: 40 },
|
|
243
243
|
{ variant: "circle", size: 64 }
|
|
244
|
-
],
|
|
244
|
+
], Fn = [
|
|
245
245
|
{ bars: 10, maxHeight: 120 },
|
|
246
246
|
{ bars: 5, maxHeight: 80 }
|
|
247
|
-
],
|
|
247
|
+
], An = [
|
|
248
248
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
249
249
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
250
|
-
],
|
|
250
|
+
], On = [
|
|
251
251
|
{ variant: "value", colSpan: 1 },
|
|
252
252
|
{ variant: "trend", colSpan: 2 },
|
|
253
253
|
{ variant: "target", colSpan: 1 }
|
|
@@ -277,11 +277,11 @@ const $t = ({
|
|
|
277
277
|
width: "100%",
|
|
278
278
|
textAlign: "left",
|
|
279
279
|
border: "none"
|
|
280
|
-
}),
|
|
280
|
+
}), Gt = (e) => ({
|
|
281
281
|
...Ae(e),
|
|
282
282
|
color: e ? "#4338ca" : "#4f46e5",
|
|
283
283
|
fontWeight: 600
|
|
284
|
-
}),
|
|
284
|
+
}), jt = {
|
|
285
285
|
height: 1,
|
|
286
286
|
background: "rgba(0,0,0,0.06)",
|
|
287
287
|
margin: "3px 10px"
|
|
@@ -297,27 +297,27 @@ function Vt({
|
|
|
297
297
|
}) {
|
|
298
298
|
const [l, m] = $(null), d = E(null), h = N(() => {
|
|
299
299
|
if (!t) return { ...Ye, top: 0, left: 0 };
|
|
300
|
-
const
|
|
300
|
+
const g = t.getBoundingClientRect();
|
|
301
301
|
return {
|
|
302
302
|
...Ye,
|
|
303
|
-
top:
|
|
304
|
-
left:
|
|
303
|
+
top: g.bottom + 4,
|
|
304
|
+
left: g.left
|
|
305
305
|
};
|
|
306
306
|
}, [t]);
|
|
307
307
|
if (O(() => {
|
|
308
308
|
if (!e) return;
|
|
309
|
-
const
|
|
309
|
+
const g = (w) => {
|
|
310
310
|
w.key === "Escape" && o();
|
|
311
311
|
};
|
|
312
|
-
return document.addEventListener("keydown",
|
|
312
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
313
313
|
}, [e, o]), O(() => {
|
|
314
314
|
if (!e) return;
|
|
315
|
-
const
|
|
315
|
+
const g = (w) => {
|
|
316
316
|
d.current && !d.current.contains(w.target) && o();
|
|
317
317
|
};
|
|
318
|
-
return document.addEventListener("pointerdown",
|
|
318
|
+
return document.addEventListener("pointerdown", g, !0), () => document.removeEventListener("pointerdown", g, !0);
|
|
319
319
|
}, [e, o]), !e) return null;
|
|
320
|
-
const
|
|
320
|
+
const f = s && s.length > 0, u = /* @__PURE__ */ k(
|
|
321
321
|
"div",
|
|
322
322
|
{
|
|
323
323
|
ref: d,
|
|
@@ -330,7 +330,7 @@ function Vt({
|
|
|
330
330
|
"button",
|
|
331
331
|
{
|
|
332
332
|
role: "menuitem",
|
|
333
|
-
style:
|
|
333
|
+
style: Gt(l === "__primary"),
|
|
334
334
|
onMouseEnter: () => m("__primary"),
|
|
335
335
|
onMouseLeave: () => m(null),
|
|
336
336
|
onClick: () => {
|
|
@@ -352,28 +352,28 @@ function Vt({
|
|
|
352
352
|
children: "Show on graph"
|
|
353
353
|
}
|
|
354
354
|
),
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
f && /* @__PURE__ */ r("div", { style: jt }),
|
|
356
|
+
f && s?.map((g) => /* @__PURE__ */ r(
|
|
357
357
|
"button",
|
|
358
358
|
{
|
|
359
359
|
role: "menuitem",
|
|
360
|
-
style: Ae(l ===
|
|
361
|
-
onMouseEnter: () => m(
|
|
360
|
+
style: Ae(l === g.id),
|
|
361
|
+
onMouseEnter: () => m(g.id),
|
|
362
362
|
onMouseLeave: () => m(null),
|
|
363
363
|
onClick: () => {
|
|
364
|
-
|
|
364
|
+
g.onSelect(n), o();
|
|
365
365
|
},
|
|
366
|
-
children:
|
|
366
|
+
children: g.label
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
g.id
|
|
369
369
|
))
|
|
370
370
|
]
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
|
-
return It(
|
|
373
|
+
return It(u, document.body);
|
|
374
374
|
}
|
|
375
375
|
Vt.displayName = "StatusSlotChipMenu";
|
|
376
|
-
const
|
|
376
|
+
const ce = {
|
|
377
377
|
forwardStaggerMs: 50,
|
|
378
378
|
reverseStaggerMs: 30,
|
|
379
379
|
springStiffness: 380,
|
|
@@ -385,18 +385,18 @@ const le = {
|
|
|
385
385
|
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
386
386
|
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
387
387
|
translateOffsetPx: 8
|
|
388
|
-
},
|
|
388
|
+
}, Ln = {
|
|
389
389
|
shiverCycles: 3,
|
|
390
390
|
shiverAmplitudePx: 2,
|
|
391
391
|
shiverDurationMs: 180,
|
|
392
392
|
validCellOpacity: 0.6
|
|
393
|
-
},
|
|
393
|
+
}, $n = {
|
|
394
394
|
materializeMs: 180,
|
|
395
395
|
dematerializeMs: 140,
|
|
396
396
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
397
397
|
dotStrokePx: 2,
|
|
398
398
|
dividerDashGapPx: 4
|
|
399
|
-
},
|
|
399
|
+
}, Bn = {
|
|
400
400
|
cascadeStaggerMs: 0,
|
|
401
401
|
cascadeSpringCapMs: 120,
|
|
402
402
|
swingEnterMs: 100,
|
|
@@ -405,7 +405,7 @@ const le = {
|
|
|
405
405
|
provisionalStyle: "opacity",
|
|
406
406
|
shiverMs: 200,
|
|
407
407
|
shiverStyle: "color-flash"
|
|
408
|
-
},
|
|
408
|
+
}, Kn = !0, zn = {
|
|
409
409
|
rejectionFill: "var(--gloss-rejection-fill)",
|
|
410
410
|
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
411
411
|
validFill: "var(--gloss-valid-fill)",
|
|
@@ -447,7 +447,7 @@ const Oe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
|
|
|
447
447
|
);
|
|
448
448
|
}, Ht = Ct(
|
|
449
449
|
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: m = "right", ariaLabel: d = "Resize card" }, h) {
|
|
450
|
-
const { affordancesVisible:
|
|
450
|
+
const { affordancesVisible: f } = rt(), u = t === "dragging" || t === "settling" || t === "handle-visible" && f, g = (c) => {
|
|
451
451
|
try {
|
|
452
452
|
c.currentTarget.setPointerCapture(c.pointerId);
|
|
453
453
|
} catch {
|
|
@@ -459,10 +459,10 @@ const Oe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
|
|
|
459
459
|
} catch {
|
|
460
460
|
}
|
|
461
461
|
a(c);
|
|
462
|
-
},
|
|
463
|
-
!
|
|
462
|
+
}, v = (c) => {
|
|
463
|
+
!u || !o || (c.key === "ArrowRight" ? (c.preventDefault(), o("grow")) : c.key === "ArrowLeft" && (c.preventDefault(), o("shrink")));
|
|
464
464
|
};
|
|
465
|
-
return /* @__PURE__ */ r(Oe, { visible:
|
|
465
|
+
return /* @__PURE__ */ r(Oe, { visible: u, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
|
|
466
466
|
"button",
|
|
467
467
|
{
|
|
468
468
|
ref: h,
|
|
@@ -473,15 +473,15 @@ const Oe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
|
|
|
473
473
|
className: [
|
|
474
474
|
"gloss-edge-handle",
|
|
475
475
|
`gloss-edge-handle--${m}`,
|
|
476
|
-
|
|
476
|
+
u ? "gloss-edge-handle--visible" : ""
|
|
477
477
|
].filter(Boolean).join(" "),
|
|
478
|
-
onPointerDown:
|
|
478
|
+
onPointerDown: g,
|
|
479
479
|
onPointerUp: w,
|
|
480
480
|
onPointerEnter: i,
|
|
481
481
|
onPointerLeave: s,
|
|
482
482
|
onLostPointerCapture: l,
|
|
483
|
-
onKeyDown:
|
|
484
|
-
tabIndex:
|
|
483
|
+
onKeyDown: v,
|
|
484
|
+
tabIndex: u ? 0 : -1
|
|
485
485
|
}
|
|
486
486
|
) });
|
|
487
487
|
}
|
|
@@ -495,7 +495,7 @@ function Ut({
|
|
|
495
495
|
exitMs: i = 120
|
|
496
496
|
}) {
|
|
497
497
|
return /* @__PURE__ */ r(
|
|
498
|
-
|
|
498
|
+
De.div,
|
|
499
499
|
{
|
|
500
500
|
"aria-hidden": "true",
|
|
501
501
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -577,7 +577,7 @@ const it = {
|
|
|
577
577
|
// Velocity multiplier (D-03b panel)
|
|
578
578
|
velocityMultiplier: 1
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function Wn({
|
|
581
581
|
currentColSpan: e,
|
|
582
582
|
stackable: t,
|
|
583
583
|
onResize: n,
|
|
@@ -589,92 +589,92 @@ function jn({
|
|
|
589
589
|
graceExitMs: m = 150,
|
|
590
590
|
enterMs: d = 180,
|
|
591
591
|
exitMs: h = 120,
|
|
592
|
-
maxColSpan:
|
|
593
|
-
containerRef:
|
|
594
|
-
forceIdle:
|
|
592
|
+
maxColSpan: f = 3,
|
|
593
|
+
containerRef: u,
|
|
594
|
+
forceIdle: g
|
|
595
595
|
}) {
|
|
596
|
-
const [w,
|
|
596
|
+
const [w, v] = $("idle"), [c, x] = $(e), I = E(null), D = E(null), M = E(null), T = E(null), p = E(i), b = E(s), _ = E(f), C = E(0), y = E("idle");
|
|
597
597
|
O(() => {
|
|
598
598
|
y.current = w;
|
|
599
599
|
}, [w]);
|
|
600
|
-
const
|
|
601
|
-
const
|
|
602
|
-
if (
|
|
600
|
+
const R = Rt(0), P = E(null), H = N(() => {
|
|
601
|
+
const S = P.current;
|
|
602
|
+
if (S) {
|
|
603
603
|
try {
|
|
604
|
-
|
|
604
|
+
S.stop();
|
|
605
605
|
} catch {
|
|
606
606
|
}
|
|
607
607
|
P.current = null;
|
|
608
608
|
}
|
|
609
609
|
}, []), Y = N(
|
|
610
|
-
(
|
|
611
|
-
const F =
|
|
612
|
-
return
|
|
610
|
+
(S) => {
|
|
611
|
+
const F = p.current, A = b.current;
|
|
612
|
+
return S * F + (S - 1) * A;
|
|
613
613
|
},
|
|
614
614
|
[]
|
|
615
|
-
), U = E(new Zt()),
|
|
615
|
+
), U = E(new Zt()), G = E(e);
|
|
616
616
|
O(() => {
|
|
617
|
-
|
|
617
|
+
G.current = c;
|
|
618
618
|
}, [c]);
|
|
619
619
|
const B = Ne(() => ({ ...it, ...o ?? {} }), [o]), Z = N(() => {
|
|
620
620
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
621
621
|
}, []), L = N(() => {
|
|
622
|
-
|
|
623
|
-
}, []),
|
|
622
|
+
D.current && (clearTimeout(D.current), D.current = null);
|
|
623
|
+
}, []), ee = N(() => {
|
|
624
624
|
M.current && (clearTimeout(M.current), M.current = null);
|
|
625
625
|
}, []);
|
|
626
626
|
O(() => {
|
|
627
|
-
|
|
628
|
-
}, [w,
|
|
627
|
+
g && (y.current === "dragging" || y.current === "settling" || y.current !== "idle" && (Z(), L(), ee(), y.current = "idle", v("idle")));
|
|
628
|
+
}, [w, g, Z, L, ee]);
|
|
629
629
|
const We = N(() => {
|
|
630
|
-
L(),
|
|
631
|
-
}, [l, L]),
|
|
630
|
+
L(), v((S) => S === "settling" || S !== "idle" ? S : (I.current = setTimeout(() => v("handle-visible"), l), "dwelling"));
|
|
631
|
+
}, [l, L]), Ge = N(() => {
|
|
632
632
|
Z();
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
y.current = "idle",
|
|
633
|
+
const S = y.current;
|
|
634
|
+
S !== "dwelling" && S !== "handle-visible" || (D.current = setTimeout(() => {
|
|
635
|
+
y.current = "idle", v("idle");
|
|
636
636
|
}, m));
|
|
637
637
|
}, [Z, m]), de = N(
|
|
638
|
-
(
|
|
639
|
-
const K =
|
|
638
|
+
(S, F, A) => {
|
|
639
|
+
const K = p.current, te = K * B.snapInFraction, q = K * B.snapOutFraction, z = F - A, j = Math.max(
|
|
640
640
|
A,
|
|
641
|
-
|
|
641
|
+
_.current ?? f
|
|
642
642
|
);
|
|
643
643
|
let W = z;
|
|
644
|
-
for (; A + W <
|
|
645
|
-
const
|
|
646
|
-
if (
|
|
644
|
+
for (; A + W < j; ) {
|
|
645
|
+
const ne = W * K + (W < 0 ? q : te);
|
|
646
|
+
if (S >= ne) W += 1;
|
|
647
647
|
else break;
|
|
648
648
|
}
|
|
649
649
|
if (W === z)
|
|
650
650
|
for (; A + W > 1; ) {
|
|
651
|
-
const
|
|
652
|
-
if (
|
|
651
|
+
const ne = W * K - (W > 0 ? q : te);
|
|
652
|
+
if (S <= ne) W -= 1;
|
|
653
653
|
else break;
|
|
654
654
|
}
|
|
655
|
-
return Math.min(
|
|
655
|
+
return Math.min(j, Math.max(1, A + W));
|
|
656
656
|
},
|
|
657
|
-
[B.snapInFraction, B.snapOutFraction,
|
|
657
|
+
[B.snapInFraction, B.snapOutFraction, f]
|
|
658
658
|
), vt = N(
|
|
659
|
-
(
|
|
659
|
+
(S) => {
|
|
660
660
|
if (y.current !== "handle-visible") return;
|
|
661
|
-
H(),
|
|
661
|
+
H(), T.current = S.clientX, p.current = i, b.current = s, _.current = f;
|
|
662
662
|
const F = e * i + (e - 1) * s;
|
|
663
|
-
|
|
663
|
+
C.current = F, U.current.clear(), U.current.push({ x: S.clientX, t: performance.now() }), R.jump(F), y.current = "dragging", v("dragging");
|
|
664
664
|
},
|
|
665
|
-
[i, s,
|
|
666
|
-
),
|
|
667
|
-
(
|
|
665
|
+
[i, s, f, e, R, H]
|
|
666
|
+
), je = N(
|
|
667
|
+
(S) => S * p.current + (S - 1) * b.current,
|
|
668
668
|
[]
|
|
669
|
-
),
|
|
670
|
-
(
|
|
671
|
-
const A =
|
|
669
|
+
), le = N(
|
|
670
|
+
(S, F) => {
|
|
671
|
+
const A = je(S), K = S !== e;
|
|
672
672
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
673
|
-
|
|
673
|
+
R.jump(A), K && F ? n({ direction: F, targetColSpan: S, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), R.jump(0), y.current = "idle", v("idle");
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
676
|
const q = U.current.getWeightedVelocity() * B.velocityMultiplier;
|
|
677
|
-
y.current = "settling",
|
|
677
|
+
y.current = "settling", v("settling"), K && F ? n({ direction: F, targetColSpan: S, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), H(), P.current = Ue(R, A, {
|
|
678
678
|
...Ze,
|
|
679
679
|
stiffness: B.stiffness,
|
|
680
680
|
damping: B.damping,
|
|
@@ -685,118 +685,118 @@ function jn({
|
|
|
685
685
|
// preserves the spring's perceptual smoothness (ghost retract)
|
|
686
686
|
// while eliminating the stale-frame window.
|
|
687
687
|
onComplete: () => {
|
|
688
|
-
P.current = null,
|
|
688
|
+
P.current = null, R.jump(0), y.current = "idle", v("idle");
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
},
|
|
692
|
-
[
|
|
692
|
+
[je, e, t, n, a, R, B, H]
|
|
693
693
|
), yt = N(
|
|
694
|
-
(
|
|
694
|
+
(S) => {
|
|
695
695
|
if (y.current !== "dragging") return;
|
|
696
|
-
const F =
|
|
697
|
-
U.current.push({ x:
|
|
698
|
-
const
|
|
699
|
-
|
|
696
|
+
const F = S.clientX - (T.current ?? S.clientX), A = p.current, te = ((_.current ?? f) - e) * A, q = (1 - e) * A, z = Math.max(q, Math.min(te, F));
|
|
697
|
+
U.current.push({ x: S.clientX, t: performance.now() });
|
|
698
|
+
const j = de(z, G.current, e), W = j > e ? "grow" : j < e ? "shrink" : null;
|
|
699
|
+
le(j, W);
|
|
700
700
|
},
|
|
701
|
-
[de, e,
|
|
701
|
+
[de, e, f, le]
|
|
702
702
|
), ue = N(() => {
|
|
703
703
|
if (Z(), y.current === "dragging") {
|
|
704
|
-
const
|
|
704
|
+
const S = C.current;
|
|
705
705
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
706
|
-
|
|
706
|
+
R.jump(S), a?.(), R.jump(0), y.current = "idle", v("idle");
|
|
707
707
|
return;
|
|
708
708
|
}
|
|
709
709
|
const A = U.current.getWeightedVelocity();
|
|
710
|
-
y.current = "settling",
|
|
710
|
+
y.current = "settling", v("settling"), H(), P.current = Ue(R, S, {
|
|
711
711
|
...Ze,
|
|
712
712
|
stiffness: B.stiffness,
|
|
713
713
|
damping: B.damping,
|
|
714
714
|
mass: B.mass,
|
|
715
715
|
velocity: A,
|
|
716
716
|
onComplete: () => {
|
|
717
|
-
P.current = null, a?.(),
|
|
717
|
+
P.current = null, a?.(), R.jump(0), y.current = "idle", v("idle");
|
|
718
718
|
}
|
|
719
719
|
});
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
y.current === "handle-visible" && (a?.(), y.current = "cancelled",
|
|
723
|
-
}, [Z,
|
|
722
|
+
y.current === "handle-visible" && (a?.(), y.current = "cancelled", v("cancelled"));
|
|
723
|
+
}, [Z, R, a, B, H]);
|
|
724
724
|
O(() => {
|
|
725
725
|
if (w !== "dragging" && w !== "handle-visible") return;
|
|
726
|
-
const
|
|
726
|
+
const S = (F) => {
|
|
727
727
|
F.key === "Escape" && ue();
|
|
728
728
|
};
|
|
729
|
-
return window.addEventListener("keydown",
|
|
729
|
+
return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
|
|
730
730
|
}, [w, ue]), O(() => {
|
|
731
731
|
if (w !== "dragging") {
|
|
732
|
-
|
|
732
|
+
x(e);
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
const
|
|
736
|
-
const
|
|
737
|
-
|
|
738
|
-
const
|
|
735
|
+
const S = (z) => {
|
|
736
|
+
const j = z.clientX - (T.current ?? z.clientX), W = C.current, me = Y(1), ne = Y(f), ke = W + j, He = Math.max(me, Math.min(ne, ke));
|
|
737
|
+
R.set(He);
|
|
738
|
+
const Ce = p.current, Re = (f - e) * Ce, Me = (1 - e) * Ce, ge = Math.max(Me, Math.min(Re, j));
|
|
739
739
|
U.current.push({ x: z.clientX, t: performance.now() });
|
|
740
|
-
const pe = de(ge,
|
|
741
|
-
pe !==
|
|
742
|
-
}, F = (z,
|
|
740
|
+
const pe = de(ge, G.current, e);
|
|
741
|
+
pe !== G.current && (G.current = pe, x(pe));
|
|
742
|
+
}, F = (z, j) => {
|
|
743
743
|
if (y.current === "dragging")
|
|
744
744
|
if (z === "pointerup") {
|
|
745
|
-
const W = U.current.tail(), me =
|
|
746
|
-
|
|
747
|
-
const ge = de(Me,
|
|
748
|
-
|
|
745
|
+
const W = U.current.tail(), me = j?.clientX ?? W?.x ?? T.current ?? 0, ne = me - (T.current ?? me), ke = p.current, Ce = ((_.current ?? f) - e) * ke, Re = (1 - e) * ke, Me = Math.max(Re, Math.min(Ce, ne));
|
|
746
|
+
j && U.current.push({ x: j.clientX, t: performance.now() });
|
|
747
|
+
const ge = de(Me, G.current, e), pe = ge > e ? "grow" : ge < e ? "shrink" : null;
|
|
748
|
+
le(ge, pe);
|
|
749
749
|
} else
|
|
750
750
|
ue();
|
|
751
|
-
}, A = (z) => F("pointerup", z), K = (z) => F("pointercancel", z),
|
|
751
|
+
}, A = (z) => F("pointerup", z), K = (z) => F("pointercancel", z), te = () => F("blur"), q = () => {
|
|
752
752
|
document.visibilityState === "hidden" && F("visibility-hidden");
|
|
753
753
|
};
|
|
754
|
-
return window.addEventListener("pointermove",
|
|
755
|
-
window.removeEventListener("pointermove",
|
|
754
|
+
return window.addEventListener("pointermove", S), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", K), window.addEventListener("blur", te), document.addEventListener("visibilitychange", q), () => {
|
|
755
|
+
window.removeEventListener("pointermove", S), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", K), window.removeEventListener("blur", te), document.removeEventListener("visibilitychange", q);
|
|
756
756
|
};
|
|
757
|
-
}, [w, e,
|
|
758
|
-
Z(), L(),
|
|
759
|
-
}, [Z, L,
|
|
757
|
+
}, [w, e, R, de, f, Y, ue, le]), O(() => () => {
|
|
758
|
+
Z(), L(), ee();
|
|
759
|
+
}, [Z, L, ee]), O(() => {
|
|
760
760
|
if (w !== "cancelled") return;
|
|
761
|
-
const
|
|
762
|
-
return () => clearTimeout(
|
|
761
|
+
const S = setTimeout(() => v("idle"), h);
|
|
762
|
+
return () => clearTimeout(S);
|
|
763
763
|
}, [w, h]);
|
|
764
764
|
const wt = N(
|
|
765
|
-
(
|
|
765
|
+
(S) => {
|
|
766
766
|
if (y.current === "settling") return;
|
|
767
|
-
const A = Math.min(
|
|
767
|
+
const A = Math.min(f, Math.max(1, e + (S === "grow" ? 1 : -1)));
|
|
768
768
|
if (A === e) return;
|
|
769
|
-
|
|
769
|
+
p.current = i, b.current = s, _.current = f, U.current.clear();
|
|
770
770
|
const K = e * i + (e - 1) * s;
|
|
771
|
-
|
|
771
|
+
C.current = K, R.jump(K), le(A, S);
|
|
772
772
|
},
|
|
773
|
-
[e, i, s,
|
|
773
|
+
[e, i, s, f, R, le]
|
|
774
774
|
), Ve = N(() => {
|
|
775
|
-
|
|
776
|
-
y.current === "handle-visible" && (y.current = "idle",
|
|
775
|
+
ee(), M.current = setTimeout(() => {
|
|
776
|
+
y.current === "handle-visible" && (y.current = "idle", v("idle"));
|
|
777
777
|
}, 5e3);
|
|
778
|
-
}, [
|
|
779
|
-
y.current === "idle" && (Z(), y.current = "handle-visible",
|
|
778
|
+
}, [ee]), _t = N(() => {
|
|
779
|
+
y.current === "idle" && (Z(), y.current = "handle-visible", v("handle-visible"), Ve());
|
|
780
780
|
}, [Z, Ve]), Nt = N(() => {
|
|
781
|
-
|
|
782
|
-
}, [
|
|
781
|
+
ee(), y.current === "handle-visible" && (y.current = "idle", v("idle"));
|
|
782
|
+
}, [ee]);
|
|
783
783
|
return {
|
|
784
784
|
state: w,
|
|
785
785
|
enterEdgeZone: We,
|
|
786
|
-
leaveEdgeZone:
|
|
786
|
+
leaveEdgeZone: Ge,
|
|
787
787
|
handleProps: {
|
|
788
788
|
onPointerDown: vt,
|
|
789
789
|
onPointerUp: yt,
|
|
790
790
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
791
791
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
792
792
|
onPointerEnter: We,
|
|
793
|
-
onPointerLeave:
|
|
793
|
+
onPointerLeave: Ge
|
|
794
794
|
},
|
|
795
795
|
previewColSpan: c,
|
|
796
796
|
ghostProps: {
|
|
797
797
|
visible: w === "dragging" || w === "settling",
|
|
798
798
|
targetColSpan: c,
|
|
799
|
-
ghostWidth:
|
|
799
|
+
ghostWidth: R,
|
|
800
800
|
enterMs: d,
|
|
801
801
|
exitMs: h
|
|
802
802
|
},
|
|
@@ -806,7 +806,7 @@ function jn({
|
|
|
806
806
|
cancel: ue
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
const
|
|
809
|
+
const oe = {
|
|
810
810
|
// Cascade (D-08, D-10)
|
|
811
811
|
staggerMs: 50,
|
|
812
812
|
reverseStaggerMs: 30,
|
|
@@ -838,7 +838,7 @@ function Gn(e) {
|
|
|
838
838
|
const s = (a + 0.5) * (t / n);
|
|
839
839
|
return i != null && Number.isFinite(i) && i > 0 ? s - i / 2 : s;
|
|
840
840
|
}
|
|
841
|
-
const
|
|
841
|
+
const jn = [
|
|
842
842
|
// 1. Standard: Total Revenue
|
|
843
843
|
{
|
|
844
844
|
variant: "standard",
|
|
@@ -1015,14 +1015,14 @@ const Vn = [
|
|
|
1015
1015
|
donutMax: 100,
|
|
1016
1016
|
accentColor: "#10b981",
|
|
1017
1017
|
isStale: !0
|
|
1018
|
-
},
|
|
1018
|
+
}, Vn = [
|
|
1019
1019
|
Yt,
|
|
1020
1020
|
qt,
|
|
1021
1021
|
Qt,
|
|
1022
1022
|
Xt,
|
|
1023
1023
|
Jt,
|
|
1024
1024
|
ea
|
|
1025
|
-
],
|
|
1025
|
+
], Hn = {
|
|
1026
1026
|
variant: "sparkline",
|
|
1027
1027
|
label: "Daily Orders",
|
|
1028
1028
|
value: 847,
|
|
@@ -1045,7 +1045,7 @@ const Vn = [
|
|
|
1045
1045
|
59
|
|
1046
1046
|
],
|
|
1047
1047
|
accentColor: "#6366f1"
|
|
1048
|
-
},
|
|
1048
|
+
}, Un = {
|
|
1049
1049
|
variant: "sparkline",
|
|
1050
1050
|
label: "New Customers",
|
|
1051
1051
|
value: 23,
|
|
@@ -1084,21 +1084,21 @@ const Vn = [
|
|
|
1084
1084
|
19
|
|
1085
1085
|
],
|
|
1086
1086
|
accentColor: "#10b981"
|
|
1087
|
-
},
|
|
1087
|
+
}, Zn = {
|
|
1088
1088
|
variant: "standard",
|
|
1089
1089
|
label: "Total Revenue",
|
|
1090
1090
|
value: 125430,
|
|
1091
1091
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1092
1092
|
trend: { value: 12.5, direction: "up" },
|
|
1093
1093
|
subtitle: "MTD"
|
|
1094
|
-
},
|
|
1094
|
+
}, Yn = {
|
|
1095
1095
|
variant: "standard",
|
|
1096
1096
|
label: "Returns",
|
|
1097
1097
|
value: 3280,
|
|
1098
1098
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1099
1099
|
trend: { value: -8.3, direction: "down" },
|
|
1100
1100
|
subtitle: "MTD"
|
|
1101
|
-
},
|
|
1101
|
+
}, qn = {
|
|
1102
1102
|
variant: "standard",
|
|
1103
1103
|
label: "Avg Order Value",
|
|
1104
1104
|
value: 487,
|
|
@@ -1117,18 +1117,18 @@ function ot({
|
|
|
1117
1117
|
onManagePages: l
|
|
1118
1118
|
}) {
|
|
1119
1119
|
const m = N(
|
|
1120
|
-
(
|
|
1121
|
-
s(
|
|
1120
|
+
(u) => {
|
|
1121
|
+
s(u), t();
|
|
1122
1122
|
},
|
|
1123
1123
|
[s, t]
|
|
1124
1124
|
), d = N(
|
|
1125
|
-
(
|
|
1126
|
-
(
|
|
1125
|
+
(u, g) => {
|
|
1126
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), m(u));
|
|
1127
1127
|
},
|
|
1128
1128
|
[m]
|
|
1129
1129
|
), h = N(() => {
|
|
1130
1130
|
o(), t();
|
|
1131
|
-
}, [o, t]),
|
|
1131
|
+
}, [o, t]), f = N(() => {
|
|
1132
1132
|
l(), t();
|
|
1133
1133
|
}, [l, t]);
|
|
1134
1134
|
return /* @__PURE__ */ k(
|
|
@@ -1145,36 +1145,36 @@ function ot({
|
|
|
1145
1145
|
anchorRef: n,
|
|
1146
1146
|
className: "gloss-page-dropdown",
|
|
1147
1147
|
children: [
|
|
1148
|
-
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((
|
|
1149
|
-
const
|
|
1148
|
+
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
|
|
1149
|
+
const g = u.id === i;
|
|
1150
1150
|
return /* @__PURE__ */ k(
|
|
1151
1151
|
"li",
|
|
1152
1152
|
{
|
|
1153
1153
|
role: "menuitemradio",
|
|
1154
|
-
"aria-checked":
|
|
1155
|
-
"aria-current":
|
|
1154
|
+
"aria-checked": g,
|
|
1155
|
+
"aria-current": g ? "page" : void 0,
|
|
1156
1156
|
tabIndex: 0,
|
|
1157
|
-
className: `gloss-page-dropdown__item${
|
|
1158
|
-
onClick: () => m(
|
|
1159
|
-
onKeyDown: (w) => d(
|
|
1157
|
+
className: `gloss-page-dropdown__item${g ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1158
|
+
onClick: () => m(u.id),
|
|
1159
|
+
onKeyDown: (w) => d(u.id, w),
|
|
1160
1160
|
children: [
|
|
1161
1161
|
/* @__PURE__ */ r(
|
|
1162
1162
|
"span",
|
|
1163
1163
|
{
|
|
1164
|
-
className: `gloss-page-dropdown__dot${
|
|
1164
|
+
className: `gloss-page-dropdown__dot${g ? " gloss-page-dropdown__dot--active" : ""}`
|
|
1165
1165
|
}
|
|
1166
1166
|
),
|
|
1167
1167
|
/* @__PURE__ */ r(
|
|
1168
1168
|
"span",
|
|
1169
1169
|
{
|
|
1170
|
-
className: `gloss-page-dropdown__name${
|
|
1171
|
-
children:
|
|
1170
|
+
className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
1171
|
+
children: u.name
|
|
1172
1172
|
}
|
|
1173
1173
|
),
|
|
1174
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children:
|
|
1174
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
|
|
1175
1175
|
]
|
|
1176
1176
|
},
|
|
1177
|
-
|
|
1177
|
+
u.id
|
|
1178
1178
|
);
|
|
1179
1179
|
}) }),
|
|
1180
1180
|
/* @__PURE__ */ r("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -1193,7 +1193,7 @@ function ot({
|
|
|
1193
1193
|
{
|
|
1194
1194
|
role: "menuitem",
|
|
1195
1195
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
1196
|
-
onClick:
|
|
1196
|
+
onClick: f,
|
|
1197
1197
|
children: "Manage pages"
|
|
1198
1198
|
}
|
|
1199
1199
|
)
|
|
@@ -1213,11 +1213,11 @@ const ta = function({
|
|
|
1213
1213
|
displayMode: m = "count",
|
|
1214
1214
|
activePage: d
|
|
1215
1215
|
}) {
|
|
1216
|
-
const h = E(null), [
|
|
1217
|
-
|
|
1216
|
+
const h = E(null), [f, u] = $(!1), g = N(() => {
|
|
1217
|
+
u((x) => !x);
|
|
1218
1218
|
}, []), w = N(() => {
|
|
1219
|
-
|
|
1220
|
-
}, []),
|
|
1219
|
+
u(!1);
|
|
1220
|
+
}, []), v = a[t]?.id ?? "";
|
|
1221
1221
|
return /* @__PURE__ */ k(
|
|
1222
1222
|
"div",
|
|
1223
1223
|
{
|
|
@@ -1238,13 +1238,13 @@ const ta = function({
|
|
|
1238
1238
|
{
|
|
1239
1239
|
className: `gloss-page-chip__trigger${m === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1240
1240
|
"aria-haspopup": "menu",
|
|
1241
|
-
"aria-expanded":
|
|
1241
|
+
"aria-expanded": f,
|
|
1242
1242
|
"aria-label": m === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1243
|
-
onClick:
|
|
1244
|
-
children: m === "name" ? /* @__PURE__ */ k(
|
|
1243
|
+
onClick: g,
|
|
1244
|
+
children: m === "name" ? /* @__PURE__ */ k(ae, { children: [
|
|
1245
1245
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
|
|
1246
1246
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1247
|
-
] }) : /* @__PURE__ */ k(
|
|
1247
|
+
] }) : /* @__PURE__ */ k(ae, { children: [
|
|
1248
1248
|
t + 1,
|
|
1249
1249
|
" / ",
|
|
1250
1250
|
n
|
|
@@ -1254,11 +1254,11 @@ const ta = function({
|
|
|
1254
1254
|
/* @__PURE__ */ r(
|
|
1255
1255
|
ot,
|
|
1256
1256
|
{
|
|
1257
|
-
open:
|
|
1257
|
+
open: f,
|
|
1258
1258
|
onDismiss: w,
|
|
1259
1259
|
anchorRef: h,
|
|
1260
1260
|
pages: a,
|
|
1261
|
-
activePageId:
|
|
1261
|
+
activePageId: v,
|
|
1262
1262
|
onPageChange: i,
|
|
1263
1263
|
onCreatePage: s,
|
|
1264
1264
|
onManagePages: o
|
|
@@ -1269,7 +1269,7 @@ const ta = function({
|
|
|
1269
1269
|
);
|
|
1270
1270
|
};
|
|
1271
1271
|
ta.displayName = "PageChip";
|
|
1272
|
-
const
|
|
1272
|
+
const Qn = [
|
|
1273
1273
|
{
|
|
1274
1274
|
id: "ORD-1001",
|
|
1275
1275
|
orderNumber: "ORD-1001",
|
|
@@ -1402,7 +1402,7 @@ const Xn = [
|
|
|
1402
1402
|
date: "2026-03-01",
|
|
1403
1403
|
skuCount: 9
|
|
1404
1404
|
}
|
|
1405
|
-
],
|
|
1405
|
+
], Xn = [
|
|
1406
1406
|
{
|
|
1407
1407
|
id: "ITEM-001",
|
|
1408
1408
|
sku: "PB-4520",
|
|
@@ -1545,7 +1545,7 @@ function lt(e) {
|
|
|
1545
1545
|
function ct(e) {
|
|
1546
1546
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1547
1547
|
}
|
|
1548
|
-
const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"),
|
|
1548
|
+
const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Jn = [
|
|
1549
1549
|
{
|
|
1550
1550
|
field: "id",
|
|
1551
1551
|
headerName: "Order",
|
|
@@ -1597,7 +1597,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1597
1597
|
cellClassName: "gloss-tabular-nums",
|
|
1598
1598
|
renderCell: ({ row: e }) => e.date ? ct(e.date) : ""
|
|
1599
1599
|
}
|
|
1600
|
-
],
|
|
1600
|
+
], er = [
|
|
1601
1601
|
{
|
|
1602
1602
|
field: "sku",
|
|
1603
1603
|
headerName: "Item ID",
|
|
@@ -1693,7 +1693,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1693
1693
|
userType: "sales-agency",
|
|
1694
1694
|
entityFilterOptions: aa,
|
|
1695
1695
|
itemFilterOptions: na
|
|
1696
|
-
},
|
|
1696
|
+
}, tr = {
|
|
1697
1697
|
...dt,
|
|
1698
1698
|
vizState: {
|
|
1699
1699
|
type: "items",
|
|
@@ -1702,7 +1702,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1702
1702
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1703
1703
|
timeFrame: "YTD"
|
|
1704
1704
|
}
|
|
1705
|
-
},
|
|
1705
|
+
}, ar = {
|
|
1706
1706
|
...dt,
|
|
1707
1707
|
vizState: {
|
|
1708
1708
|
type: "orders",
|
|
@@ -1818,14 +1818,14 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1818
1818
|
cellKinds: ["numeric"],
|
|
1819
1819
|
tabType: "orders"
|
|
1820
1820
|
}
|
|
1821
|
-
],
|
|
1821
|
+
], nr = {
|
|
1822
1822
|
entityName: sa,
|
|
1823
1823
|
orderId: ia,
|
|
1824
1824
|
numeric: oa
|
|
1825
|
-
},
|
|
1825
|
+
}, rr = [
|
|
1826
1826
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1827
1827
|
/* @__PURE__ */ new Date()
|
|
1828
|
-
],
|
|
1828
|
+
], sr = {
|
|
1829
1829
|
rangeA: [
|
|
1830
1830
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1831
1831
|
/* @__PURE__ */ new Date()
|
|
@@ -1838,7 +1838,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1838
1838
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1839
1839
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1840
1840
|
]
|
|
1841
|
-
},
|
|
1841
|
+
}, ir = {
|
|
1842
1842
|
version: 4,
|
|
1843
1843
|
lastPreset: "mtd",
|
|
1844
1844
|
pinnedPreset: "mtd",
|
|
@@ -1846,7 +1846,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1846
1846
|
rangeCount: 1,
|
|
1847
1847
|
lastPresetB: null,
|
|
1848
1848
|
lastPresetC: null
|
|
1849
|
-
},
|
|
1849
|
+
}, or = [
|
|
1850
1850
|
{
|
|
1851
1851
|
id: "atlanta-jan",
|
|
1852
1852
|
label: "Atlanta Market",
|
|
@@ -1868,7 +1868,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1868
1868
|
endDate: new Date(2026, 3, 22),
|
|
1869
1869
|
location: "Chicago, IL"
|
|
1870
1870
|
}
|
|
1871
|
-
],
|
|
1871
|
+
], lr = [
|
|
1872
1872
|
{
|
|
1873
1873
|
id: "custom-regional-1",
|
|
1874
1874
|
label: "Southeast Regional Expo",
|
|
@@ -1885,7 +1885,7 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1885
1885
|
location: "Portland, OR",
|
|
1886
1886
|
isCustom: !0
|
|
1887
1887
|
}
|
|
1888
|
-
],
|
|
1888
|
+
], cr = [
|
|
1889
1889
|
{
|
|
1890
1890
|
id: "atlanta-jan",
|
|
1891
1891
|
label: "Atlanta Market",
|
|
@@ -1902,12 +1902,12 @@ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1902
1902
|
location: "New York, NY",
|
|
1903
1903
|
active: !0
|
|
1904
1904
|
}
|
|
1905
|
-
],
|
|
1905
|
+
], dr = [
|
|
1906
1906
|
{ id: "7d", label: "7D" },
|
|
1907
1907
|
{ id: "30d", label: "30D" },
|
|
1908
1908
|
{ id: "60d", label: "60D" },
|
|
1909
1909
|
{ id: "90d", label: "90D" }
|
|
1910
|
-
],
|
|
1910
|
+
], ur = [
|
|
1911
1911
|
{ id: "mtd", label: "MTD" },
|
|
1912
1912
|
{ id: "qtd", label: "QTD" },
|
|
1913
1913
|
{ id: "ytd", label: "YTD" },
|
|
@@ -1949,33 +1949,33 @@ const ua = ({
|
|
|
1949
1949
|
}) => {
|
|
1950
1950
|
const s = E(null), o = E([]), l = da(), m = Ne(() => Array.from(e), [e]);
|
|
1951
1951
|
if (m.length === 0) return null;
|
|
1952
|
-
const d = a ? `Configure ${a}: choose a dimension` : void 0, h = l ? "10ms" : "200ms",
|
|
1953
|
-
const w = m.length - 1,
|
|
1954
|
-
const
|
|
1955
|
-
|
|
1952
|
+
const d = a ? `Configure ${a}: choose a dimension` : void 0, h = l ? "10ms" : "200ms", f = (u, g) => {
|
|
1953
|
+
const w = m.length - 1, v = (c) => {
|
|
1954
|
+
const x = o.current[c];
|
|
1955
|
+
x && x.focus();
|
|
1956
1956
|
};
|
|
1957
|
-
switch (
|
|
1957
|
+
switch (u.key) {
|
|
1958
1958
|
case "ArrowRight":
|
|
1959
1959
|
case "ArrowDown": {
|
|
1960
|
-
|
|
1960
|
+
u.preventDefault(), v(g === w ? 0 : g + 1);
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
case "ArrowLeft":
|
|
1964
1964
|
case "ArrowUp": {
|
|
1965
|
-
|
|
1965
|
+
u.preventDefault(), v(g === 0 ? w : g - 1);
|
|
1966
1966
|
break;
|
|
1967
1967
|
}
|
|
1968
1968
|
case "Home": {
|
|
1969
|
-
|
|
1969
|
+
u.preventDefault(), v(0);
|
|
1970
1970
|
break;
|
|
1971
1971
|
}
|
|
1972
1972
|
case "End": {
|
|
1973
|
-
|
|
1973
|
+
u.preventDefault(), v(w);
|
|
1974
1974
|
break;
|
|
1975
1975
|
}
|
|
1976
1976
|
case "Enter":
|
|
1977
1977
|
case " ": {
|
|
1978
|
-
|
|
1978
|
+
u.preventDefault(), t(m[g]);
|
|
1979
1979
|
break;
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
@@ -1993,23 +1993,23 @@ const ua = ({
|
|
|
1993
1993
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1994
1994
|
"--gloss-reconfig-backside-buttons-transition-duration": h
|
|
1995
1995
|
},
|
|
1996
|
-
children: m.map((
|
|
1997
|
-
const w = ca[
|
|
1996
|
+
children: m.map((u, g) => {
|
|
1997
|
+
const w = ca[u], v = n === u;
|
|
1998
1998
|
return /* @__PURE__ */ k(
|
|
1999
1999
|
"button",
|
|
2000
2000
|
{
|
|
2001
2001
|
ref: (c) => {
|
|
2002
|
-
o.current[
|
|
2002
|
+
o.current[g] = c;
|
|
2003
2003
|
},
|
|
2004
2004
|
type: "button",
|
|
2005
|
-
"data-dimension":
|
|
2005
|
+
"data-dimension": u,
|
|
2006
2006
|
className: Qe(
|
|
2007
2007
|
"gloss-reconfig-backside-buttons__button",
|
|
2008
|
-
|
|
2008
|
+
v && "gloss-reconfig-backside-buttons__button--active"
|
|
2009
2009
|
),
|
|
2010
|
-
"aria-current":
|
|
2011
|
-
onClick: () => t(
|
|
2012
|
-
onKeyDown: (c) =>
|
|
2010
|
+
"aria-current": v ? "true" : void 0,
|
|
2011
|
+
onClick: () => t(u),
|
|
2012
|
+
onKeyDown: (c) => f(c, g),
|
|
2013
2013
|
children: [
|
|
2014
2014
|
/* @__PURE__ */ r(
|
|
2015
2015
|
w,
|
|
@@ -2018,10 +2018,10 @@ const ua = ({
|
|
|
2018
2018
|
"aria-hidden": "true"
|
|
2019
2019
|
}
|
|
2020
2020
|
),
|
|
2021
|
-
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: la[
|
|
2021
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: la[u] })
|
|
2022
2022
|
]
|
|
2023
2023
|
},
|
|
2024
|
-
|
|
2024
|
+
u
|
|
2025
2025
|
);
|
|
2026
2026
|
})
|
|
2027
2027
|
}
|
|
@@ -2054,7 +2054,7 @@ function Xe(e, t) {
|
|
|
2054
2054
|
colSpan: 2
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
|
-
const
|
|
2057
|
+
const mr = [
|
|
2058
2058
|
Q("total-revenue", "Total Revenue"),
|
|
2059
2059
|
Q("total-orders", "Total Orders"),
|
|
2060
2060
|
Xe("revenue-trend", "Revenue Trend (2x)"),
|
|
@@ -2065,21 +2065,21 @@ const gr = [
|
|
|
2065
2065
|
Q("repeat-rate", "Repeat Rate"),
|
|
2066
2066
|
Q("open-orders", "Open Orders"),
|
|
2067
2067
|
Q("shipped-orders", "Shipped Orders")
|
|
2068
|
-
],
|
|
2068
|
+
], gr = {
|
|
2069
2069
|
columns: 6,
|
|
2070
2070
|
rowHeight: 120,
|
|
2071
2071
|
gap: 15,
|
|
2072
2072
|
maxRows: 3,
|
|
2073
2073
|
currentPage: 0,
|
|
2074
2074
|
totalPages: 1
|
|
2075
|
-
},
|
|
2075
|
+
}, pr = {
|
|
2076
2076
|
columns: 9,
|
|
2077
2077
|
rowHeight: 120,
|
|
2078
2078
|
gap: 15,
|
|
2079
2079
|
maxRows: 3,
|
|
2080
2080
|
currentPage: 0,
|
|
2081
2081
|
totalPages: 2
|
|
2082
|
-
},
|
|
2082
|
+
}, fr = {
|
|
2083
2083
|
columns: 12,
|
|
2084
2084
|
rowHeight: 120,
|
|
2085
2085
|
gap: 15,
|
|
@@ -2090,7 +2090,7 @@ const gr = [
|
|
|
2090
2090
|
function Ie(e) {
|
|
2091
2091
|
return V.createElement("span", { style: { fontSize: 14 } }, e);
|
|
2092
2092
|
}
|
|
2093
|
-
const
|
|
2093
|
+
const hr = [
|
|
2094
2094
|
{
|
|
2095
2095
|
id: "all-orders",
|
|
2096
2096
|
type: "orders",
|
|
@@ -2113,7 +2113,7 @@ const br = [
|
|
|
2113
2113
|
icon: Ie("🚚"),
|
|
2114
2114
|
closable: !0
|
|
2115
2115
|
}
|
|
2116
|
-
],
|
|
2116
|
+
], br = [
|
|
2117
2117
|
{
|
|
2118
2118
|
id: "orders-main",
|
|
2119
2119
|
type: "orders",
|
|
@@ -2139,7 +2139,7 @@ const br = [
|
|
|
2139
2139
|
name: "Customers",
|
|
2140
2140
|
closable: !0
|
|
2141
2141
|
}
|
|
2142
|
-
],
|
|
2142
|
+
], vr = [
|
|
2143
2143
|
{
|
|
2144
2144
|
id: "only-tab",
|
|
2145
2145
|
type: "orders",
|
|
@@ -2147,7 +2147,7 @@ const br = [
|
|
|
2147
2147
|
closable: !1,
|
|
2148
2148
|
autoCreated: !0
|
|
2149
2149
|
}
|
|
2150
|
-
],
|
|
2150
|
+
], yr = [
|
|
2151
2151
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
2152
2152
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
2153
2153
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -2275,16 +2275,16 @@ const ut = "resize.tuning.dev", pa = {
|
|
|
2275
2275
|
...it,
|
|
2276
2276
|
snapInPx: 60,
|
|
2277
2277
|
snapOutPx: 90
|
|
2278
|
-
},
|
|
2278
|
+
}, se = pa;
|
|
2279
2279
|
function fa() {
|
|
2280
|
-
if (typeof window > "u") return { ...
|
|
2280
|
+
if (typeof window > "u") return { ...se };
|
|
2281
2281
|
try {
|
|
2282
2282
|
const e = window.localStorage.getItem(ut);
|
|
2283
|
-
if (!e) return { ...
|
|
2283
|
+
if (!e) return { ...se };
|
|
2284
2284
|
const t = JSON.parse(e);
|
|
2285
|
-
return !t || typeof t != "object" || Array.isArray(t) ? { ...
|
|
2285
|
+
return !t || typeof t != "object" || Array.isArray(t) ? { ...se } : { ...se, ...t };
|
|
2286
2286
|
} catch {
|
|
2287
|
-
return { ...
|
|
2287
|
+
return { ...se };
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
2290
|
function ha() {
|
|
@@ -2303,11 +2303,11 @@ function ha() {
|
|
|
2303
2303
|
[]
|
|
2304
2304
|
), a = N(
|
|
2305
2305
|
(s) => {
|
|
2306
|
-
t((o) => ({ ...o, [s]:
|
|
2306
|
+
t((o) => ({ ...o, [s]: se[s] }));
|
|
2307
2307
|
},
|
|
2308
2308
|
[]
|
|
2309
2309
|
), i = N(() => {
|
|
2310
|
-
t({ ...
|
|
2310
|
+
t({ ...se });
|
|
2311
2311
|
}, []);
|
|
2312
2312
|
return { values: e, setValue: n, resetRow: a, resetAll: i };
|
|
2313
2313
|
}
|
|
@@ -2405,18 +2405,18 @@ function Na(e = {}) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
Na.displayName = "DevTuningPanel";
|
|
2407
2407
|
function Da() {
|
|
2408
|
-
const e = ha(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = E(null), m = N((
|
|
2409
|
-
l.current && clearTimeout(l.current), o(
|
|
2408
|
+
const e = ha(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = E(null), m = N((u) => {
|
|
2409
|
+
l.current && clearTimeout(l.current), o(u), l.current = setTimeout(() => {
|
|
2410
2410
|
o(null), l.current = null;
|
|
2411
2411
|
}, 200);
|
|
2412
2412
|
}, []), d = N(
|
|
2413
|
-
(
|
|
2414
|
-
n(
|
|
2413
|
+
(u, g) => {
|
|
2414
|
+
n(u, g), u === "snapInPx" && g > t.snapOutPx && (n("snapOutPx", g), m("snapOutPx"));
|
|
2415
2415
|
},
|
|
2416
2416
|
[n, t.snapOutPx, m]
|
|
2417
|
-
), h = Ne(() => ba, []),
|
|
2417
|
+
), h = Ne(() => ba, []), f = Mt();
|
|
2418
2418
|
return /* @__PURE__ */ k(
|
|
2419
|
-
|
|
2419
|
+
De.div,
|
|
2420
2420
|
{
|
|
2421
2421
|
className: "gloss-dev-tuning-panel",
|
|
2422
2422
|
role: "region",
|
|
@@ -2424,30 +2424,30 @@ function Da() {
|
|
|
2424
2424
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2425
2425
|
drag: !0,
|
|
2426
2426
|
dragListener: !1,
|
|
2427
|
-
dragControls:
|
|
2427
|
+
dragControls: f,
|
|
2428
2428
|
dragMomentum: !1,
|
|
2429
2429
|
children: [
|
|
2430
2430
|
/* @__PURE__ */ k(
|
|
2431
2431
|
"div",
|
|
2432
2432
|
{
|
|
2433
2433
|
className: "gloss-dev-tuning-panel__header",
|
|
2434
|
-
onPointerDown: (
|
|
2434
|
+
onPointerDown: (u) => f.start(u),
|
|
2435
2435
|
children: [
|
|
2436
2436
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2437
2437
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2438
2438
|
]
|
|
2439
2439
|
}
|
|
2440
2440
|
),
|
|
2441
|
-
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: h.map((
|
|
2441
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: h.map((u) => /* @__PURE__ */ r(
|
|
2442
2442
|
wa,
|
|
2443
2443
|
{
|
|
2444
|
-
spec:
|
|
2445
|
-
value: t[
|
|
2446
|
-
onChange: (
|
|
2447
|
-
onReset: () => a(
|
|
2448
|
-
flashing: s ===
|
|
2444
|
+
spec: u,
|
|
2445
|
+
value: t[u.key],
|
|
2446
|
+
onChange: (g) => d(u.key, g),
|
|
2447
|
+
onReset: () => a(u.key),
|
|
2448
|
+
flashing: s === u.key
|
|
2449
2449
|
},
|
|
2450
|
-
|
|
2450
|
+
u.key
|
|
2451
2451
|
)) }),
|
|
2452
2452
|
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ r(
|
|
2453
2453
|
"button",
|
|
@@ -2462,7 +2462,7 @@ function Da() {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
);
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function wr({
|
|
2466
2466
|
state: e,
|
|
2467
2467
|
originX: t,
|
|
2468
2468
|
originY: n,
|
|
@@ -2472,30 +2472,30 @@ function _r({
|
|
|
2472
2472
|
snapBoundariesX: o,
|
|
2473
2473
|
topY: l,
|
|
2474
2474
|
bottomY: m,
|
|
2475
|
-
enterMs: d =
|
|
2476
|
-
exitMs: h =
|
|
2477
|
-
className:
|
|
2478
|
-
style:
|
|
2475
|
+
enterMs: d = oe.envelopeEnterMs,
|
|
2476
|
+
exitMs: h = oe.envelopeExitMs,
|
|
2477
|
+
className: f,
|
|
2478
|
+
style: u
|
|
2479
2479
|
}) {
|
|
2480
2480
|
if (e === "hidden") return null;
|
|
2481
|
-
const
|
|
2481
|
+
const g = Math.max(0, i - a), w = Math.max(0, m - l), v = {
|
|
2482
2482
|
"--gloss-resize-envelope-enter-ms": `${d}ms`,
|
|
2483
2483
|
"--gloss-resize-envelope-exit-ms": `${h}ms`,
|
|
2484
2484
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2485
2485
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
2486
2486
|
left: a,
|
|
2487
2487
|
top: l,
|
|
2488
|
-
width:
|
|
2488
|
+
width: g,
|
|
2489
2489
|
height: w,
|
|
2490
|
-
...
|
|
2490
|
+
...u
|
|
2491
2491
|
};
|
|
2492
2492
|
return /* @__PURE__ */ k(
|
|
2493
2493
|
"div",
|
|
2494
2494
|
{
|
|
2495
|
-
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`,
|
|
2495
|
+
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, f].filter(Boolean).join(" "),
|
|
2496
2496
|
"data-state": e,
|
|
2497
2497
|
"data-testid": "gloss-resize-envelope",
|
|
2498
|
-
style:
|
|
2498
|
+
style: v,
|
|
2499
2499
|
"aria-hidden": "true",
|
|
2500
2500
|
children: [
|
|
2501
2501
|
/* @__PURE__ */ r(
|
|
@@ -2519,7 +2519,7 @@ function _r({
|
|
|
2519
2519
|
{
|
|
2520
2520
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
|
|
2521
2521
|
"data-edge": "right",
|
|
2522
|
-
style: { left:
|
|
2522
|
+
style: { left: g - 1 }
|
|
2523
2523
|
}
|
|
2524
2524
|
),
|
|
2525
2525
|
o.filter((c) => c > s && c < i).map((c) => /* @__PURE__ */ r(
|
|
@@ -2535,7 +2535,7 @@ function _r({
|
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function _r({
|
|
2539
2539
|
density: e,
|
|
2540
2540
|
canAccept: t,
|
|
2541
2541
|
blocked: n = !1,
|
|
@@ -2572,10 +2572,10 @@ function ka(e, t, n, a) {
|
|
|
2572
2572
|
const i = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2573
2573
|
return `M${e},${t} Q${i},${s} ${n},${a}`;
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2575
|
+
function Nr({
|
|
2576
2576
|
segments: e,
|
|
2577
|
-
durationMs: t =
|
|
2578
|
-
staggerMs: n =
|
|
2577
|
+
durationMs: t = oe.spilloverArcDurationMs,
|
|
2578
|
+
staggerMs: n = oe.spilloverStaggerMs,
|
|
2579
2579
|
className: a,
|
|
2580
2580
|
style: i
|
|
2581
2581
|
}) {
|
|
@@ -2603,12 +2603,12 @@ function Dr({
|
|
|
2603
2603
|
}
|
|
2604
2604
|
);
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function Dr({
|
|
2607
2607
|
state: e,
|
|
2608
2608
|
staggerIndex: t = 0,
|
|
2609
|
-
fadeInMs: n =
|
|
2610
|
-
fadeOutMs: a =
|
|
2611
|
-
staggerMs: i =
|
|
2609
|
+
fadeInMs: n = oe.sectionDividerFadeInMs,
|
|
2610
|
+
fadeOutMs: a = oe.sectionDividerFadeOutMs,
|
|
2611
|
+
staggerMs: i = oe.sectionDividerStaggerMs,
|
|
2612
2612
|
variant: s = "dashed",
|
|
2613
2613
|
className: o,
|
|
2614
2614
|
style: l,
|
|
@@ -2637,7 +2637,7 @@ function kr({
|
|
|
2637
2637
|
}
|
|
2638
2638
|
);
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function kr({
|
|
2641
2641
|
enabled: e,
|
|
2642
2642
|
onCollapse: t,
|
|
2643
2643
|
onAdd: n,
|
|
@@ -2648,9 +2648,9 @@ function Cr({
|
|
|
2648
2648
|
onPack: l,
|
|
2649
2649
|
ariaLabel: m
|
|
2650
2650
|
}) {
|
|
2651
|
-
const d = a ?? "Add card to this cell", h = i ?? m ?? "Pack row — shift cards left",
|
|
2652
|
-
return /* @__PURE__ */ k(
|
|
2653
|
-
/* @__PURE__ */ r(Oe, { visible:
|
|
2651
|
+
const d = a ?? "Add card to this cell", h = i ?? m ?? "Pack row — shift cards left", f = t ?? l, { affordancesVisible: u } = rt();
|
|
2652
|
+
return /* @__PURE__ */ k(X.Fragment, { children: [
|
|
2653
|
+
/* @__PURE__ */ r(Oe, { visible: u, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2654
2654
|
"button",
|
|
2655
2655
|
{
|
|
2656
2656
|
type: "button",
|
|
@@ -2662,13 +2662,13 @@ function Cr({
|
|
|
2662
2662
|
s
|
|
2663
2663
|
].filter(Boolean).join(" "),
|
|
2664
2664
|
style: o,
|
|
2665
|
-
onClick: (
|
|
2666
|
-
|
|
2665
|
+
onClick: (g) => {
|
|
2666
|
+
g.stopPropagation(), n?.();
|
|
2667
2667
|
},
|
|
2668
2668
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
|
|
2669
2669
|
}
|
|
2670
2670
|
) }),
|
|
2671
|
-
/* @__PURE__ */ r(Oe, { visible: e &&
|
|
2671
|
+
/* @__PURE__ */ r(Oe, { visible: e && u, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2672
2672
|
"button",
|
|
2673
2673
|
{
|
|
2674
2674
|
type: "button",
|
|
@@ -2676,15 +2676,15 @@ function Cr({
|
|
|
2676
2676
|
"aria-label": h,
|
|
2677
2677
|
className: ["gloss-empty-cell-pack-affordance", s].filter(Boolean).join(" "),
|
|
2678
2678
|
style: o,
|
|
2679
|
-
onClick: (
|
|
2680
|
-
|
|
2679
|
+
onClick: (g) => {
|
|
2680
|
+
g.stopPropagation(), f?.();
|
|
2681
2681
|
},
|
|
2682
2682
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2683
2683
|
}
|
|
2684
2684
|
) })
|
|
2685
2685
|
] });
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Cr({
|
|
2688
2688
|
tint: e,
|
|
2689
2689
|
colSpan: t,
|
|
2690
2690
|
colWidth: n,
|
|
@@ -2695,26 +2695,26 @@ function Sr({
|
|
|
2695
2695
|
children: l,
|
|
2696
2696
|
className: m
|
|
2697
2697
|
}) {
|
|
2698
|
-
const d = t * n + (t - 1) * i, h =
|
|
2698
|
+
const d = t * n + (t - 1) * i, h = X.useRef(null);
|
|
2699
2699
|
return Fe("drag-ghost", () => {
|
|
2700
2700
|
if (process.env.NODE_ENV === "production")
|
|
2701
2701
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2702
|
-
const
|
|
2702
|
+
const f = h.current?.getBoundingClientRect() ?? null;
|
|
2703
2703
|
return {
|
|
2704
2704
|
values: {
|
|
2705
2705
|
x: s.get(),
|
|
2706
2706
|
y: o.get(),
|
|
2707
|
-
bounds_x:
|
|
2708
|
-
bounds_y:
|
|
2709
|
-
bounds_w:
|
|
2710
|
-
bounds_h:
|
|
2711
|
-
visible:
|
|
2707
|
+
bounds_x: f?.x ?? 0,
|
|
2708
|
+
bounds_y: f?.y ?? 0,
|
|
2709
|
+
bounds_w: f?.width ?? 0,
|
|
2710
|
+
bounds_h: f?.height ?? 0,
|
|
2711
|
+
visible: f ? 1 : 0
|
|
2712
2712
|
},
|
|
2713
2713
|
spec: {
|
|
2714
2714
|
tint: e,
|
|
2715
2715
|
colSpan: t,
|
|
2716
|
-
springStiffness:
|
|
2717
|
-
springDamping:
|
|
2716
|
+
springStiffness: ce.springStiffness,
|
|
2717
|
+
springDamping: ce.springDamping
|
|
2718
2718
|
},
|
|
2719
2719
|
state: "active",
|
|
2720
2720
|
t: performance.now()
|
|
@@ -2722,15 +2722,15 @@ function Sr({
|
|
|
2722
2722
|
}), Fe("commit-ghost-singleton", () => {
|
|
2723
2723
|
if (process.env.NODE_ENV === "production")
|
|
2724
2724
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2725
|
-
const
|
|
2726
|
-
let
|
|
2727
|
-
if (
|
|
2725
|
+
const f = h.current;
|
|
2726
|
+
let u = 0, g = "", w = "", v = "";
|
|
2727
|
+
if (f)
|
|
2728
2728
|
try {
|
|
2729
|
-
const I = window.getComputedStyle(
|
|
2730
|
-
|
|
2729
|
+
const I = window.getComputedStyle(f), D = I.outline || "", M = I.border || "", T = I.boxShadow || "", p = !!D && D !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(D), b = !!M && M !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(M), _ = !!T && T !== "none";
|
|
2730
|
+
u = p || b || _ ? 1 : 0, g = p ? D : "", w = b ? M : "", v = _ ? T : "";
|
|
2731
2731
|
} catch {
|
|
2732
2732
|
}
|
|
2733
|
-
const c =
|
|
2733
|
+
const c = f?.getBoundingClientRect() ?? null, x = f ? "drag-clone" : "subsumed-by-tracking-outline";
|
|
2734
2734
|
return {
|
|
2735
2735
|
values: {
|
|
2736
2736
|
x: s.get(),
|
|
@@ -2739,25 +2739,25 @@ function Sr({
|
|
|
2739
2739
|
bounds_y: c?.y ?? 0,
|
|
2740
2740
|
bounds_w: c?.width ?? 0,
|
|
2741
2741
|
bounds_h: c?.height ?? 0,
|
|
2742
|
-
visible:
|
|
2743
|
-
outlineOnClone:
|
|
2742
|
+
visible: f ? 1 : 0,
|
|
2743
|
+
outlineOnClone: u
|
|
2744
2744
|
},
|
|
2745
2745
|
spec: {
|
|
2746
|
-
mode:
|
|
2746
|
+
mode: x,
|
|
2747
2747
|
tint: e,
|
|
2748
|
-
outlineSrc:
|
|
2748
|
+
outlineSrc: g,
|
|
2749
2749
|
borderSrc: w,
|
|
2750
|
-
boxShadowSrc:
|
|
2750
|
+
boxShadowSrc: v
|
|
2751
2751
|
// D-01 contract: Frame 1 (current/buggy) shows outline-on-clone=true;
|
|
2752
2752
|
// Frame 2 (decided): outline-on-clone=false (subsumed by tracking
|
|
2753
2753
|
// outline). Wave 2 audit-D-01 reads this field across drag mid-flight
|
|
2754
2754
|
// + post-drop frames and records frame match.
|
|
2755
2755
|
},
|
|
2756
|
-
state:
|
|
2756
|
+
state: f ? "active" : "idle",
|
|
2757
2757
|
t: performance.now()
|
|
2758
2758
|
};
|
|
2759
2759
|
}), /* @__PURE__ */ r(
|
|
2760
|
-
|
|
2760
|
+
De.div,
|
|
2761
2761
|
{
|
|
2762
2762
|
ref: h,
|
|
2763
2763
|
"data-testid": "gloss-drag-ghost",
|
|
@@ -2783,55 +2783,70 @@ function mt({
|
|
|
2783
2783
|
rowHeight: s,
|
|
2784
2784
|
pattern: o = "solid",
|
|
2785
2785
|
transitionMs: l = 120,
|
|
2786
|
-
className: m
|
|
2786
|
+
className: m,
|
|
2787
|
+
motionWidth: d
|
|
2787
2788
|
}) {
|
|
2788
|
-
const
|
|
2789
|
-
|
|
2790
|
-
|
|
2789
|
+
const h = n * a + (n - 1) * i, u = (t.section * Ca + t.col) * (a + i), g = t.row * (s + i), w = e === "resize" ? 2.5 : 2, v = o === "dashed-retreated" ? "dashed" : "solid", c = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline", x = {
|
|
2790
|
+
className: [
|
|
2791
|
+
"gloss-tracking-outline",
|
|
2792
|
+
`gloss-tracking-outline--${e}`,
|
|
2793
|
+
`gloss-tracking-outline--${o}`,
|
|
2794
|
+
// D-15 #4 parity: drag callers must keep the legacy class so reptime
|
|
2795
|
+
// metric-card-grid.scss nested selectors continue to match.
|
|
2796
|
+
e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
|
|
2797
|
+
m
|
|
2798
|
+
].filter(Boolean).join(" "),
|
|
2799
|
+
"data-testid": c,
|
|
2800
|
+
"data-tracking-outline": "",
|
|
2801
|
+
"data-gesture": e,
|
|
2802
|
+
"data-pattern": o,
|
|
2803
|
+
"aria-hidden": "true"
|
|
2804
|
+
};
|
|
2805
|
+
return d ? /* @__PURE__ */ r(
|
|
2806
|
+
De.div,
|
|
2791
2807
|
{
|
|
2792
|
-
|
|
2793
|
-
"gloss-tracking-outline",
|
|
2794
|
-
`gloss-tracking-outline--${e}`,
|
|
2795
|
-
`gloss-tracking-outline--${o}`,
|
|
2796
|
-
// D-15 #4 parity: drag callers must keep the legacy class so reptime
|
|
2797
|
-
// metric-card-grid.scss nested selectors continue to match.
|
|
2798
|
-
e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
|
|
2799
|
-
m
|
|
2800
|
-
].filter(Boolean).join(" "),
|
|
2801
|
-
"data-testid": _,
|
|
2802
|
-
"data-tracking-outline": "",
|
|
2803
|
-
"data-gesture": e,
|
|
2804
|
-
"data-pattern": o,
|
|
2805
|
-
"aria-hidden": "true",
|
|
2808
|
+
...x,
|
|
2806
2809
|
style: {
|
|
2807
|
-
transform: `translate(${
|
|
2810
|
+
transform: `translate(${u}px, ${g}px)`,
|
|
2808
2811
|
width: d,
|
|
2809
2812
|
height: s,
|
|
2810
|
-
borderWidth:
|
|
2811
|
-
borderStyle:
|
|
2813
|
+
borderWidth: w,
|
|
2814
|
+
borderStyle: v
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
) : /* @__PURE__ */ r(
|
|
2818
|
+
"div",
|
|
2819
|
+
{
|
|
2820
|
+
...x,
|
|
2821
|
+
style: {
|
|
2822
|
+
transform: `translate(${u}px, ${g}px)`,
|
|
2823
|
+
width: h,
|
|
2824
|
+
height: s,
|
|
2825
|
+
borderWidth: w,
|
|
2826
|
+
borderStyle: v,
|
|
2812
2827
|
transition: `transform ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
2813
2828
|
}
|
|
2814
2829
|
}
|
|
2815
2830
|
);
|
|
2816
2831
|
}
|
|
2817
|
-
function
|
|
2832
|
+
function Sr(e) {
|
|
2818
2833
|
return /* @__PURE__ */ r(mt, { gesture: "drag", pattern: "solid", ...e });
|
|
2819
2834
|
}
|
|
2820
|
-
function
|
|
2835
|
+
function xr({
|
|
2821
2836
|
items: e,
|
|
2822
2837
|
children: t,
|
|
2823
2838
|
className: n,
|
|
2824
2839
|
debugMagenta: a
|
|
2825
2840
|
}) {
|
|
2826
|
-
const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0), s =
|
|
2841
|
+
const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0), s = X.useRef(e);
|
|
2827
2842
|
return s.current = e, Fe("cascade-preview", () => {
|
|
2828
2843
|
if (process.env.NODE_ENV === "production")
|
|
2829
2844
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2830
2845
|
const o = s.current;
|
|
2831
2846
|
let l = 0, m = 0, d = 0, h = 0;
|
|
2832
|
-
for (const
|
|
2833
|
-
const
|
|
2834
|
-
Math.abs(
|
|
2847
|
+
for (const f of o) {
|
|
2848
|
+
const u = f.x.get(), g = f.y.get();
|
|
2849
|
+
Math.abs(u) > Math.abs(d) && (d = u, l = u), Math.abs(g) > Math.abs(h) && (h = g, m = g);
|
|
2835
2850
|
}
|
|
2836
2851
|
return {
|
|
2837
2852
|
values: {
|
|
@@ -2841,16 +2856,16 @@ function Rr({
|
|
|
2841
2856
|
visible: o.length > 0 ? 1 : 0
|
|
2842
2857
|
},
|
|
2843
2858
|
spec: {
|
|
2844
|
-
forwardStaggerMs:
|
|
2845
|
-
reverseStaggerMs:
|
|
2846
|
-
springStiffness:
|
|
2847
|
-
springDamping:
|
|
2859
|
+
forwardStaggerMs: ce.forwardStaggerMs,
|
|
2860
|
+
reverseStaggerMs: ce.reverseStaggerMs,
|
|
2861
|
+
springStiffness: ce.springStiffness,
|
|
2862
|
+
springDamping: ce.springDamping
|
|
2848
2863
|
},
|
|
2849
2864
|
state: o.length > 0 ? "active" : "idle",
|
|
2850
2865
|
t: performance.now()
|
|
2851
2866
|
};
|
|
2852
|
-
}), e.length === 0 ? null : /* @__PURE__ */ r(
|
|
2853
|
-
|
|
2867
|
+
}), e.length === 0 ? null : /* @__PURE__ */ r(ae, { children: e.map((o) => /* @__PURE__ */ r(
|
|
2868
|
+
De.div,
|
|
2854
2869
|
{
|
|
2855
2870
|
"data-card-id": o.cardId,
|
|
2856
2871
|
"data-testid": "gloss-cascade-preview-item",
|
|
@@ -2963,7 +2978,7 @@ const Sa = ({
|
|
|
2963
2978
|
children: "Set target"
|
|
2964
2979
|
}
|
|
2965
2980
|
)
|
|
2966
|
-
] }),
|
|
2981
|
+
] }), Rr = (e) => {
|
|
2967
2982
|
const [t, n] = $(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
|
|
2968
2983
|
$t,
|
|
2969
2984
|
{
|
|
@@ -2990,7 +3005,7 @@ const Sa = ({
|
|
|
2990
3005
|
children: /* @__PURE__ */ k("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
|
|
2991
3006
|
/* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
|
|
2992
3007
|
e.subtitle && /* @__PURE__ */ r("div", { className: "gloss-pace-card__subtitle", children: e.subtitle }),
|
|
2993
|
-
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ k(
|
|
3008
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ k(ae, { children: [
|
|
2994
3009
|
/* @__PURE__ */ r(
|
|
2995
3010
|
Sa,
|
|
2996
3011
|
{
|
|
@@ -3010,7 +3025,7 @@ const Sa = ({
|
|
|
3010
3025
|
] })
|
|
3011
3026
|
}
|
|
3012
3027
|
);
|
|
3013
|
-
},
|
|
3028
|
+
}, Mr = () => /* @__PURE__ */ k("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
3014
3029
|
/* @__PURE__ */ r(
|
|
3015
3030
|
"div",
|
|
3016
3031
|
{
|
|
@@ -3126,7 +3141,7 @@ function Ea({ heading: e, children: t, emptyStateLabel: n }) {
|
|
|
3126
3141
|
] });
|
|
3127
3142
|
}
|
|
3128
3143
|
Ea.displayName = "MoreInLensRail";
|
|
3129
|
-
function
|
|
3144
|
+
function J({
|
|
3130
3145
|
lead: e,
|
|
3131
3146
|
name: t,
|
|
3132
3147
|
secondary: n,
|
|
@@ -3142,7 +3157,7 @@ function X({
|
|
|
3142
3157
|
`gloss-entity-row--${s}`,
|
|
3143
3158
|
o ? "gloss-entity-row--clickable" : "",
|
|
3144
3159
|
l ?? ""
|
|
3145
|
-
].filter(Boolean).join(" "), h = /* @__PURE__ */ k(
|
|
3160
|
+
].filter(Boolean).join(" "), h = /* @__PURE__ */ k(ae, { children: [
|
|
3146
3161
|
e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
|
|
3147
3162
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
|
|
3148
3163
|
n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
|
|
@@ -3161,14 +3176,14 @@ function X({
|
|
|
3161
3176
|
gap: 4,
|
|
3162
3177
|
cursor: "pointer"
|
|
3163
3178
|
},
|
|
3164
|
-
onClick: (
|
|
3165
|
-
|
|
3179
|
+
onClick: (f) => {
|
|
3180
|
+
f.stopPropagation(), o();
|
|
3166
3181
|
},
|
|
3167
3182
|
children: h
|
|
3168
3183
|
}
|
|
3169
3184
|
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: h });
|
|
3170
3185
|
}
|
|
3171
|
-
|
|
3186
|
+
J.displayName = "EntityRow";
|
|
3172
3187
|
const ye = ({ rank: e }) => {
|
|
3173
3188
|
const t = e === 1 ? "first" : "other";
|
|
3174
3189
|
return /* @__PURE__ */ r(
|
|
@@ -3249,7 +3264,7 @@ function Fa({
|
|
|
3249
3264
|
isStale: i
|
|
3250
3265
|
}) {
|
|
3251
3266
|
const s = n ?? 3;
|
|
3252
|
-
return /* @__PURE__ */ k(
|
|
3267
|
+
return /* @__PURE__ */ k(ae, { children: [
|
|
3253
3268
|
/* @__PURE__ */ r(
|
|
3254
3269
|
be,
|
|
3255
3270
|
{
|
|
@@ -3264,7 +3279,7 @@ function Fa({
|
|
|
3264
3279
|
className: `gloss-metric-card__zone-b gloss-leaderboard ${i ? "gloss-metric-data-stale" : ""}`,
|
|
3265
3280
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3266
3281
|
children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0, s).map((o, l) => /* @__PURE__ */ r(
|
|
3267
|
-
|
|
3282
|
+
J,
|
|
3268
3283
|
{
|
|
3269
3284
|
lead: /* @__PURE__ */ r(ye, { rank: l + 1 }),
|
|
3270
3285
|
name: o.name,
|
|
@@ -3305,9 +3320,9 @@ const Aa = () => /* @__PURE__ */ k(
|
|
|
3305
3320
|
"aria-hidden": "true",
|
|
3306
3321
|
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3307
3322
|
children: [
|
|
3308
|
-
/* @__PURE__ */ r(
|
|
3309
|
-
/* @__PURE__ */ r(
|
|
3310
|
-
/* @__PURE__ */ r(
|
|
3323
|
+
/* @__PURE__ */ r(J, { lead: /* @__PURE__ */ r(ye, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(_e, { fill: 96 }), value: "98%" }),
|
|
3324
|
+
/* @__PURE__ */ r(J, { lead: /* @__PURE__ */ r(ye, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(_e, { fill: 72 }), value: "85%" }),
|
|
3325
|
+
/* @__PURE__ */ r(J, { lead: /* @__PURE__ */ r(ye, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(_e, { fill: 48 }), value: "71%" })
|
|
3311
3326
|
]
|
|
3312
3327
|
}
|
|
3313
3328
|
);
|
|
@@ -3340,7 +3355,7 @@ function $a({
|
|
|
3340
3355
|
isStale: o
|
|
3341
3356
|
}) {
|
|
3342
3357
|
const l = t.filter((d) => La(d, n)), m = l.slice(0, a ?? 3);
|
|
3343
|
-
return l.length === 0 ? /* @__PURE__ */ k(
|
|
3358
|
+
return l.length === 0 ? /* @__PURE__ */ k(ae, { children: [
|
|
3344
3359
|
/* @__PURE__ */ r(
|
|
3345
3360
|
be,
|
|
3346
3361
|
{
|
|
@@ -3351,7 +3366,7 @@ function $a({
|
|
|
3351
3366
|
),
|
|
3352
3367
|
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: i ?? "No exceptions" }),
|
|
3353
3368
|
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3354
|
-
] }) : /* @__PURE__ */ k(
|
|
3369
|
+
] }) : /* @__PURE__ */ k(ae, { children: [
|
|
3355
3370
|
/* @__PURE__ */ r(
|
|
3356
3371
|
be,
|
|
3357
3372
|
{
|
|
@@ -3366,7 +3381,7 @@ function $a({
|
|
|
3366
3381
|
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3367
3382
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3368
3383
|
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: m.map((d, h) => /* @__PURE__ */ r(
|
|
3369
|
-
|
|
3384
|
+
J,
|
|
3370
3385
|
{
|
|
3371
3386
|
lead: /* @__PURE__ */ r(we, { severity: d.severity, "aria-label": Oa(d.severity) }),
|
|
3372
3387
|
name: d.name,
|
|
@@ -3390,7 +3405,7 @@ const Ba = () => /* @__PURE__ */ k(
|
|
|
3390
3405
|
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3391
3406
|
children: [
|
|
3392
3407
|
/* @__PURE__ */ r(
|
|
3393
|
-
|
|
3408
|
+
J,
|
|
3394
3409
|
{
|
|
3395
3410
|
lead: /* @__PURE__ */ r(we, { severity: "critical", "aria-label": "Critical severity" }),
|
|
3396
3411
|
name: "SKU A",
|
|
@@ -3398,7 +3413,7 @@ const Ba = () => /* @__PURE__ */ k(
|
|
|
3398
3413
|
}
|
|
3399
3414
|
),
|
|
3400
3415
|
/* @__PURE__ */ r(
|
|
3401
|
-
|
|
3416
|
+
J,
|
|
3402
3417
|
{
|
|
3403
3418
|
lead: /* @__PURE__ */ r(we, { severity: "warn", "aria-label": "Warning severity" }),
|
|
3404
3419
|
name: "SKU B",
|
|
@@ -3406,7 +3421,7 @@ const Ba = () => /* @__PURE__ */ k(
|
|
|
3406
3421
|
}
|
|
3407
3422
|
),
|
|
3408
3423
|
/* @__PURE__ */ r(
|
|
3409
|
-
|
|
3424
|
+
J,
|
|
3410
3425
|
{
|
|
3411
3426
|
lead: /* @__PURE__ */ r(we, { severity: "info", "aria-label": "Info severity" }),
|
|
3412
3427
|
name: "SKU C",
|
|
@@ -3458,7 +3473,7 @@ const Je = ["MTD", "QTD", "YTD", "LYTD", "7D"], et = ["$248K", "$612K", "$1.24M"
|
|
|
3458
3473
|
);
|
|
3459
3474
|
};
|
|
3460
3475
|
Ka.displayName = "StackedGroupTilePreview";
|
|
3461
|
-
const
|
|
3476
|
+
const Tr = {
|
|
3462
3477
|
/** GEV-01 — Eligibility tint. Contiguous-from-source paint; blocked by first occupied cell (Principle 4). */
|
|
3463
3478
|
eligibilityTint: { applicableStates: ["arming", "active"] },
|
|
3464
3479
|
/** GEV-01 — Commit tint. Fill+stroke emphasis on the commit-target cell footprint (G-02). */
|
|
@@ -3492,7 +3507,7 @@ const Ir = {
|
|
|
3492
3507
|
// Rejection +2 stroke (sparse-dash)
|
|
3493
3508
|
trackingOutline: "#2541A1"
|
|
3494
3509
|
// Action +3 — same hex as commitStroke per D-01
|
|
3495
|
-
},
|
|
3510
|
+
}, ie = {
|
|
3496
3511
|
baseCellTint: "var(--gloss-g02-base-cell-tint)",
|
|
3497
3512
|
eligibilityFill: "var(--gloss-g02-eligibility-fill)",
|
|
3498
3513
|
commitFill: "var(--gloss-g02-commit-fill)",
|
|
@@ -3500,8 +3515,8 @@ const Ir = {
|
|
|
3500
3515
|
rejectionFill: "var(--gloss-g02-rejection-fill)",
|
|
3501
3516
|
rejectionStroke: "var(--gloss-g02-rejection-stroke)",
|
|
3502
3517
|
trackingOutline: "var(--gloss-g02-tracking-outline)"
|
|
3503
|
-
},
|
|
3504
|
-
function
|
|
3518
|
+
}, Ir = "dashed", Er = "solid", Pr = "sparse-dash", Fr = "2px no-fill", Ar = "6 4", Or = "10 6", za = 3;
|
|
3519
|
+
function Lr({
|
|
3505
3520
|
cell: e,
|
|
3506
3521
|
variant: t,
|
|
3507
3522
|
rampColor: n,
|
|
@@ -3510,10 +3525,10 @@ function $r({
|
|
|
3510
3525
|
gap: s,
|
|
3511
3526
|
className: o
|
|
3512
3527
|
}) {
|
|
3513
|
-
const m = (e.section * za + e.col) * (a + s), d = e.row * (i + s), h = t === "eligibility" ?
|
|
3528
|
+
const m = (e.section * za + e.col) * (a + s), d = e.row * (i + s), h = t === "eligibility" ? ie.eligibilityFill : t === "commit" ? ie.commitFill : t === "rejection" ? ie.rejectionFill : (
|
|
3514
3529
|
/* ramp */
|
|
3515
|
-
n ??
|
|
3516
|
-
),
|
|
3530
|
+
n ?? ie.eligibilityFill
|
|
3531
|
+
), f = t === "rejection", u = f ? ie.rejectionStroke : "transparent", g = f ? "dashed" : "solid";
|
|
3517
3532
|
return /* @__PURE__ */ r(
|
|
3518
3533
|
"div",
|
|
3519
3534
|
{
|
|
@@ -3533,18 +3548,18 @@ function $r({
|
|
|
3533
3548
|
// both preserve `var(...)` in inline cssText. The shorthand getter strips
|
|
3534
3549
|
// unknown values and breaks both unit-test introspection and styling.
|
|
3535
3550
|
backgroundColor: h,
|
|
3536
|
-
borderColor:
|
|
3537
|
-
borderStyle:
|
|
3551
|
+
borderColor: u,
|
|
3552
|
+
borderStyle: g
|
|
3538
3553
|
}
|
|
3539
3554
|
}
|
|
3540
3555
|
);
|
|
3541
3556
|
}
|
|
3542
|
-
const Wa = 3,
|
|
3557
|
+
const Wa = 3, Ga = [
|
|
3543
3558
|
{ idx: 0, peakR: 22, peakOpacity: 0.45, strokeW: 1.5 },
|
|
3544
3559
|
{ idx: 1, peakR: 34, peakOpacity: 0.22, strokeW: 1 },
|
|
3545
3560
|
{ idx: 2, peakR: 46, peakOpacity: 0.1, strokeW: 0.8 }
|
|
3546
3561
|
];
|
|
3547
|
-
function
|
|
3562
|
+
function $r({
|
|
3548
3563
|
cell: e,
|
|
3549
3564
|
fireKey: t,
|
|
3550
3565
|
colWidth: n,
|
|
@@ -3567,7 +3582,7 @@ function Br({
|
|
|
3567
3582
|
width: 48,
|
|
3568
3583
|
height: 48,
|
|
3569
3584
|
borderRadius: "50%",
|
|
3570
|
-
background:
|
|
3585
|
+
background: ie.rejectionStroke,
|
|
3571
3586
|
opacity: 0.45,
|
|
3572
3587
|
pointerEvents: "none",
|
|
3573
3588
|
animation: "gloss-refuse-pulse-instant-flash 80ms linear forwards"
|
|
@@ -3589,8 +3604,8 @@ function Br({
|
|
|
3589
3604
|
top: 0,
|
|
3590
3605
|
pointerEvents: "none"
|
|
3591
3606
|
},
|
|
3592
|
-
children:
|
|
3593
|
-
const
|
|
3607
|
+
children: Ga.map((h) => {
|
|
3608
|
+
const f = h.peakR * 2;
|
|
3594
3609
|
return /* @__PURE__ */ r(
|
|
3595
3610
|
"div",
|
|
3596
3611
|
{
|
|
@@ -3602,12 +3617,12 @@ function Br({
|
|
|
3602
3617
|
position: "absolute",
|
|
3603
3618
|
left: l - h.peakR,
|
|
3604
3619
|
top: m - h.peakR,
|
|
3605
|
-
width:
|
|
3606
|
-
height:
|
|
3620
|
+
width: f,
|
|
3621
|
+
height: f,
|
|
3607
3622
|
borderRadius: "50%",
|
|
3608
3623
|
borderStyle: "solid",
|
|
3609
3624
|
borderWidth: h.strokeW,
|
|
3610
|
-
borderColor:
|
|
3625
|
+
borderColor: ie.rejectionStroke,
|
|
3611
3626
|
background: "transparent",
|
|
3612
3627
|
opacity: 0,
|
|
3613
3628
|
transform: "scale(0)",
|
|
@@ -3623,81 +3638,82 @@ function Br({
|
|
|
3623
3638
|
t
|
|
3624
3639
|
);
|
|
3625
3640
|
}
|
|
3626
|
-
function
|
|
3641
|
+
function Br(e) {
|
|
3627
3642
|
return /* @__PURE__ */ r(mt, { gesture: "resize", ...e });
|
|
3628
3643
|
}
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
});
|
|
3635
|
-
function Va(e, t, n) {
|
|
3636
|
-
const a = Math.max(0, Math.min(1, n)), i = (p) => [
|
|
3637
|
-
parseInt(p.slice(1, 3), 16),
|
|
3638
|
-
parseInt(p.slice(3, 5), 16),
|
|
3639
|
-
parseInt(p.slice(5, 7), 16)
|
|
3644
|
+
function ja(e, t, n) {
|
|
3645
|
+
const a = Math.max(0, Math.min(1, n)), i = (f) => [
|
|
3646
|
+
parseInt(f.slice(1, 3), 16),
|
|
3647
|
+
parseInt(f.slice(3, 5), 16),
|
|
3648
|
+
parseInt(f.slice(5, 7), 16)
|
|
3640
3649
|
], [s, o, l] = i(e), [m, d, h] = i(t);
|
|
3641
3650
|
return `rgb(${Math.round(s + (m - s) * a)}, ${Math.round(o + (d - o) * a)}, ${Math.round(
|
|
3642
3651
|
l + (h - l) * a
|
|
3643
3652
|
)})`;
|
|
3644
3653
|
}
|
|
3645
|
-
function
|
|
3654
|
+
function Va(e) {
|
|
3646
3655
|
return e <= 1 ? 1 : e >= 3 ? 3 : 2;
|
|
3647
3656
|
}
|
|
3648
|
-
function
|
|
3649
|
-
return e
|
|
3657
|
+
function Ha(e) {
|
|
3658
|
+
return e === "dragging";
|
|
3650
3659
|
}
|
|
3651
|
-
function
|
|
3652
|
-
const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, m = st() === "reduced", d =
|
|
3653
|
-
if (
|
|
3654
|
-
return h.current.armed = !0, h.current.lastResult = null,
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3660
|
+
function Kr(e) {
|
|
3661
|
+
const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, m = st() === "reduced", d = X.useRef(t.currentColSpan), h = X.useRef({ armed: !0, fireKey: 0, lastResult: null }), f = X.useRef(t.currentColSpan), u = X.useRef("idle"), g = X.useRef(t.currentColSpan), w = Ha(t.state);
|
|
3662
|
+
if (m ? (u.current = "settled", g.current = t.currentColSpan, f.current = t.currentColSpan) : w ? u.current = t.currentColSpan !== f.current ? "incoming" : "outgoing" : (t.currentColSpan !== f.current && (g.current = t.currentColSpan, f.current = t.currentColSpan), u.current !== "idle" && (u.current = "settled")), !w)
|
|
3663
|
+
return h.current.armed = !0, h.current.lastResult = null, {
|
|
3664
|
+
trackingOutline: null,
|
|
3665
|
+
cellTints: [],
|
|
3666
|
+
refusePulse: null,
|
|
3667
|
+
shrinkFreedCells: [],
|
|
3668
|
+
phase: u.current,
|
|
3669
|
+
displayColSpan: g.current
|
|
3670
|
+
};
|
|
3671
|
+
const v = t.hysteresisTargetColSpan, c = t.previewColSpan, x = a?.result === "rejected";
|
|
3672
|
+
x || (d.current = v), x && h.current.armed && h.current.lastResult !== "rejected" && (h.current.fireKey += 1, h.current.armed = !1), h.current.lastResult = x ? "rejected" : "ok";
|
|
3673
|
+
const I = x ? d.current : v, D = {
|
|
3658
3674
|
cell: { section: 0, col: 0, row: 0 },
|
|
3659
|
-
colSpan:
|
|
3660
|
-
pattern:
|
|
3661
|
-
},
|
|
3662
|
-
if (
|
|
3663
|
-
const
|
|
3664
|
-
for (let
|
|
3665
|
-
|
|
3675
|
+
colSpan: I,
|
|
3676
|
+
pattern: x ? "dashed-retreated" : "solid"
|
|
3677
|
+
}, M = [];
|
|
3678
|
+
if (x) {
|
|
3679
|
+
const b = n.col + d.current, _ = n.col + v - 1;
|
|
3680
|
+
for (let C = b; C <= _ && C <= 2; C++)
|
|
3681
|
+
M.push({
|
|
3666
3682
|
cell: {
|
|
3667
3683
|
section: 0,
|
|
3668
|
-
col:
|
|
3684
|
+
col: C - n.col,
|
|
3669
3685
|
row: 0
|
|
3670
3686
|
},
|
|
3671
3687
|
variant: "rejection"
|
|
3672
3688
|
});
|
|
3673
3689
|
} else {
|
|
3674
|
-
const
|
|
3675
|
-
for (let
|
|
3676
|
-
if (
|
|
3677
|
-
const
|
|
3690
|
+
const b = Math.abs(c - v), _ = Math.max(0, Math.min(1, 1 - b));
|
|
3691
|
+
for (let C = n.col; C < n.col + v && C <= 2; C++) {
|
|
3692
|
+
if (C === n.col) continue;
|
|
3693
|
+
const y = C === n.col + v - 1, R = {
|
|
3678
3694
|
section: 0,
|
|
3679
|
-
col:
|
|
3695
|
+
col: C - n.col,
|
|
3680
3696
|
row: 0
|
|
3681
3697
|
};
|
|
3682
|
-
|
|
3683
|
-
cell:
|
|
3698
|
+
y && t.direction.startsWith("grow") && v > 1 && !m && b > 0 && b < 1 ? M.push({
|
|
3699
|
+
cell: R,
|
|
3684
3700
|
variant: "ramp",
|
|
3685
|
-
rampColor:
|
|
3686
|
-
}) :
|
|
3701
|
+
rampColor: ja(at.eligibilityFill, at.commitFill, _)
|
|
3702
|
+
}) : y ? M.push({ cell: R, variant: "commit" }) : M.push({ cell: R, variant: "eligibility" });
|
|
3687
3703
|
}
|
|
3688
3704
|
}
|
|
3689
|
-
const
|
|
3690
|
-
if (t.currentColSpan >
|
|
3691
|
-
for (let
|
|
3692
|
-
|
|
3705
|
+
const T = [];
|
|
3706
|
+
if (t.currentColSpan > v)
|
|
3707
|
+
for (let b = n.col + v; b < n.col + t.currentColSpan && b <= 2; b++)
|
|
3708
|
+
T.push({
|
|
3693
3709
|
section: 0,
|
|
3694
|
-
col:
|
|
3710
|
+
col: b - n.col,
|
|
3695
3711
|
row: 0
|
|
3696
3712
|
});
|
|
3697
|
-
const
|
|
3713
|
+
const p = h.current.fireKey > 0 ? {
|
|
3698
3714
|
cell: {
|
|
3699
3715
|
section: 0,
|
|
3700
|
-
col:
|
|
3716
|
+
col: Va(
|
|
3701
3717
|
Math.min(d.current, 2)
|
|
3702
3718
|
),
|
|
3703
3719
|
row: 0
|
|
@@ -3705,13 +3721,15 @@ function zr(e) {
|
|
|
3705
3721
|
fireKey: h.current.fireKey
|
|
3706
3722
|
} : null;
|
|
3707
3723
|
return {
|
|
3708
|
-
trackingOutline:
|
|
3709
|
-
cellTints:
|
|
3710
|
-
refusePulse:
|
|
3711
|
-
shrinkFreedCells:
|
|
3724
|
+
trackingOutline: D,
|
|
3725
|
+
cellTints: M,
|
|
3726
|
+
refusePulse: p,
|
|
3727
|
+
shrinkFreedCells: T,
|
|
3728
|
+
phase: u.current,
|
|
3729
|
+
displayColSpan: g.current
|
|
3712
3730
|
};
|
|
3713
3731
|
}
|
|
3714
|
-
const
|
|
3732
|
+
const re = {
|
|
3715
3733
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
3716
3734
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
3717
3735
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -3719,7 +3737,7 @@ const ne = {
|
|
|
3719
3737
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
3720
3738
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
3721
3739
|
};
|
|
3722
|
-
function
|
|
3740
|
+
function Ua({
|
|
3723
3741
|
message: e,
|
|
3724
3742
|
primaryAction: t,
|
|
3725
3743
|
onDismiss: n,
|
|
@@ -3748,19 +3766,19 @@ function Za({
|
|
|
3748
3766
|
return /* @__PURE__ */ k(
|
|
3749
3767
|
"div",
|
|
3750
3768
|
{
|
|
3751
|
-
className:
|
|
3769
|
+
className: re["gloss-inline-nudge"],
|
|
3752
3770
|
style: m,
|
|
3753
3771
|
role: "status",
|
|
3754
3772
|
"aria-live": "polite",
|
|
3755
3773
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3756
3774
|
children: [
|
|
3757
|
-
/* @__PURE__ */ r("span", { className:
|
|
3758
|
-
/* @__PURE__ */ k("div", { className:
|
|
3775
|
+
/* @__PURE__ */ r("span", { className: re["gloss-inline-nudge__message"], children: e }),
|
|
3776
|
+
/* @__PURE__ */ k("div", { className: re["gloss-inline-nudge__actions"], children: [
|
|
3759
3777
|
/* @__PURE__ */ r(
|
|
3760
3778
|
"button",
|
|
3761
3779
|
{
|
|
3762
3780
|
type: "button",
|
|
3763
|
-
className: `${
|
|
3781
|
+
className: `${re["gloss-inline-nudge__btn"]} ${re["gloss-inline-nudge__btn--action"]}`,
|
|
3764
3782
|
onClick: t.onClick,
|
|
3765
3783
|
children: t.label
|
|
3766
3784
|
}
|
|
@@ -3769,7 +3787,7 @@ function Za({
|
|
|
3769
3787
|
"button",
|
|
3770
3788
|
{
|
|
3771
3789
|
type: "button",
|
|
3772
|
-
className: `${
|
|
3790
|
+
className: `${re["gloss-inline-nudge__btn"]} ${re["gloss-inline-nudge__btn--dismiss"]}`,
|
|
3773
3791
|
onClick: n,
|
|
3774
3792
|
"aria-label": "Dismiss",
|
|
3775
3793
|
children: "Dismiss"
|
|
@@ -3780,11 +3798,11 @@ function Za({
|
|
|
3780
3798
|
}
|
|
3781
3799
|
);
|
|
3782
3800
|
}
|
|
3783
|
-
|
|
3801
|
+
Ua.displayName = "InlineNudge";
|
|
3784
3802
|
function Be(e) {
|
|
3785
3803
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3786
3804
|
}
|
|
3787
|
-
function
|
|
3805
|
+
function Za(e, t, n) {
|
|
3788
3806
|
if (n <= t) {
|
|
3789
3807
|
const o = e[0], l = o ? Be(o) : "#888";
|
|
3790
3808
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
@@ -3795,10 +3813,10 @@ function Ya(e, t, n) {
|
|
|
3795
3813
|
});
|
|
3796
3814
|
return s.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : s.length === 1 ? `linear-gradient(to right, ${s[0]}, ${s[0]})` : `linear-gradient(to right, ${s.join(", ")})`;
|
|
3797
3815
|
}
|
|
3798
|
-
function
|
|
3816
|
+
function Ya(e) {
|
|
3799
3817
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3800
3818
|
}
|
|
3801
|
-
function
|
|
3819
|
+
function qa({
|
|
3802
3820
|
stops: e,
|
|
3803
3821
|
onChange: t,
|
|
3804
3822
|
min: n = 0,
|
|
@@ -3809,16 +3827,16 @@ function Qa({
|
|
|
3809
3827
|
const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3810
3828
|
`ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
|
|
3811
3829
|
), 0.01) : i, l = N(
|
|
3812
|
-
(
|
|
3830
|
+
(p) => Math.round(p / o) * o,
|
|
3813
3831
|
[o]
|
|
3814
|
-
), m = E(null), [d, h] = $(null), [
|
|
3832
|
+
), m = E(null), [d, h] = $(null), [f, u] = $(e), g = Ya(e), w = E(g);
|
|
3815
3833
|
O(() => {
|
|
3816
|
-
w.current !==
|
|
3817
|
-
}, [
|
|
3818
|
-
const
|
|
3819
|
-
(
|
|
3834
|
+
w.current !== g && (w.current = g, !d && u(e));
|
|
3835
|
+
}, [g, e, d]);
|
|
3836
|
+
const v = Ne(() => Za(f, n, a), [f, n, a]), c = N(
|
|
3837
|
+
(p) => {
|
|
3820
3838
|
if (!m.current) return n;
|
|
3821
|
-
const b = m.current.getBoundingClientRect(),
|
|
3839
|
+
const b = m.current.getBoundingClientRect(), _ = b.width || 1, C = Math.max(0, Math.min(1, (p - b.left) / _)), y = n + C * (a - n);
|
|
3822
3840
|
return l(y);
|
|
3823
3841
|
},
|
|
3824
3842
|
[n, a, l]
|
|
@@ -3828,47 +3846,47 @@ function Qa({
|
|
|
3828
3846
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
3829
3847
|
);
|
|
3830
3848
|
}, [n, a]);
|
|
3831
|
-
const
|
|
3832
|
-
(
|
|
3833
|
-
const
|
|
3834
|
-
s ||
|
|
3849
|
+
const x = N(
|
|
3850
|
+
(p, b) => {
|
|
3851
|
+
const _ = f.find((C) => C.id === b);
|
|
3852
|
+
s || _?.disabled || (p.preventDefault(), h(b));
|
|
3835
3853
|
},
|
|
3836
|
-
[s,
|
|
3837
|
-
), I = E(
|
|
3838
|
-
I.current =
|
|
3839
|
-
const
|
|
3840
|
-
|
|
3854
|
+
[s, f]
|
|
3855
|
+
), I = E(f);
|
|
3856
|
+
I.current = f;
|
|
3857
|
+
const D = E(t);
|
|
3858
|
+
D.current = t, O(() => {
|
|
3841
3859
|
if (!d) return;
|
|
3842
|
-
const
|
|
3843
|
-
const
|
|
3844
|
-
|
|
3845
|
-
(y) => y.map((
|
|
3860
|
+
const p = (_) => {
|
|
3861
|
+
const C = c(_.clientX);
|
|
3862
|
+
u(
|
|
3863
|
+
(y) => y.map((R) => R.id === d ? { ...R, value: C } : R)
|
|
3846
3864
|
);
|
|
3847
|
-
}, b = (
|
|
3848
|
-
const
|
|
3849
|
-
(
|
|
3865
|
+
}, b = (_) => {
|
|
3866
|
+
const C = c(_.clientX), y = I.current.map(
|
|
3867
|
+
(R) => R.id === d ? { ...R, value: C } : R
|
|
3850
3868
|
);
|
|
3851
|
-
|
|
3869
|
+
u(y), h(null), D.current(y);
|
|
3852
3870
|
};
|
|
3853
|
-
return window.addEventListener("pointermove",
|
|
3854
|
-
window.removeEventListener("pointermove",
|
|
3871
|
+
return window.addEventListener("pointermove", p), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b), () => {
|
|
3872
|
+
window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b);
|
|
3855
3873
|
};
|
|
3856
3874
|
}, [d, c]);
|
|
3857
|
-
const M = a - n > 0 ? a - n : 1,
|
|
3858
|
-
(
|
|
3875
|
+
const M = a - n > 0 ? a - n : 1, T = N(
|
|
3876
|
+
(p, b) => {
|
|
3859
3877
|
if (s || b.disabled) return;
|
|
3860
|
-
const
|
|
3861
|
-
if (
|
|
3862
|
-
const
|
|
3878
|
+
const _ = a - n;
|
|
3879
|
+
if (_ <= 0) return;
|
|
3880
|
+
const C = p.shiftKey ? _ / 20 : _ / 100;
|
|
3863
3881
|
let y = b.value;
|
|
3864
|
-
switch (
|
|
3882
|
+
switch (p.key) {
|
|
3865
3883
|
case "ArrowRight":
|
|
3866
3884
|
case "ArrowUp":
|
|
3867
|
-
y = b.value +
|
|
3885
|
+
y = b.value + C;
|
|
3868
3886
|
break;
|
|
3869
3887
|
case "ArrowLeft":
|
|
3870
3888
|
case "ArrowDown":
|
|
3871
|
-
y = b.value -
|
|
3889
|
+
y = b.value - C;
|
|
3872
3890
|
break;
|
|
3873
3891
|
case "Home":
|
|
3874
3892
|
y = n;
|
|
@@ -3879,57 +3897,57 @@ function Qa({
|
|
|
3879
3897
|
default:
|
|
3880
3898
|
return;
|
|
3881
3899
|
}
|
|
3882
|
-
|
|
3883
|
-
const
|
|
3900
|
+
p.preventDefault();
|
|
3901
|
+
const R = Math.max(n, Math.min(a, y)), P = l(R);
|
|
3884
3902
|
if (P === b.value) return;
|
|
3885
|
-
const H =
|
|
3903
|
+
const H = f.map(
|
|
3886
3904
|
(Y) => Y.id === b.id ? { ...Y, value: P } : Y
|
|
3887
3905
|
);
|
|
3888
|
-
|
|
3906
|
+
u(H), t(H);
|
|
3889
3907
|
},
|
|
3890
|
-
[s, n, a,
|
|
3908
|
+
[s, n, a, f, t, l]
|
|
3891
3909
|
);
|
|
3892
3910
|
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
|
|
3893
3911
|
"div",
|
|
3894
3912
|
{
|
|
3895
3913
|
ref: m,
|
|
3896
3914
|
className: "gloss-threshold-ramp__track",
|
|
3897
|
-
style: { background:
|
|
3898
|
-
children:
|
|
3899
|
-
const b = (
|
|
3915
|
+
style: { background: v },
|
|
3916
|
+
children: f.map((p) => {
|
|
3917
|
+
const b = (p.value - n) / M * 100;
|
|
3900
3918
|
return /* @__PURE__ */ r(
|
|
3901
3919
|
"span",
|
|
3902
3920
|
{
|
|
3903
3921
|
className: "gloss-threshold-ramp__stop",
|
|
3904
3922
|
style: {
|
|
3905
3923
|
left: `${b}%`,
|
|
3906
|
-
color: Be(
|
|
3924
|
+
color: Be(p)
|
|
3907
3925
|
},
|
|
3908
|
-
"data-disabled":
|
|
3909
|
-
"data-dragging": d ===
|
|
3910
|
-
onPointerDown: (
|
|
3911
|
-
onKeyDown: (
|
|
3912
|
-
"aria-label":
|
|
3926
|
+
"data-disabled": p.disabled || void 0,
|
|
3927
|
+
"data-dragging": d === p.id || void 0,
|
|
3928
|
+
onPointerDown: (_) => x(_, p.id),
|
|
3929
|
+
onKeyDown: (_) => T(_, p),
|
|
3930
|
+
"aria-label": p.label ?? `Stop at ${p.value}`,
|
|
3913
3931
|
role: "slider",
|
|
3914
|
-
"aria-valuenow":
|
|
3932
|
+
"aria-valuenow": p.value,
|
|
3915
3933
|
"aria-valuemin": n,
|
|
3916
3934
|
"aria-valuemax": a,
|
|
3917
|
-
"aria-disabled":
|
|
3918
|
-
tabIndex:
|
|
3935
|
+
"aria-disabled": p.disabled || s || void 0,
|
|
3936
|
+
tabIndex: p.disabled || s ? -1 : 0
|
|
3919
3937
|
},
|
|
3920
|
-
|
|
3938
|
+
p.id
|
|
3921
3939
|
);
|
|
3922
3940
|
})
|
|
3923
3941
|
}
|
|
3924
3942
|
) });
|
|
3925
3943
|
}
|
|
3926
|
-
|
|
3944
|
+
qa.displayName = "ThresholdRamp";
|
|
3927
3945
|
const pt = St(null);
|
|
3928
|
-
function
|
|
3946
|
+
function Qa() {
|
|
3929
3947
|
return xt(pt);
|
|
3930
3948
|
}
|
|
3931
|
-
function
|
|
3932
|
-
const t =
|
|
3949
|
+
function Xa({ option: e }) {
|
|
3950
|
+
const t = Qa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = N(() => {
|
|
3933
3951
|
a || t?.select(e.value);
|
|
3934
3952
|
}, [a, t, e.value]), s = N(
|
|
3935
3953
|
(d) => {
|
|
@@ -3958,7 +3976,7 @@ function Ja({ option: e }) {
|
|
|
3958
3976
|
}
|
|
3959
3977
|
);
|
|
3960
3978
|
}
|
|
3961
|
-
function
|
|
3979
|
+
function Ja({
|
|
3962
3980
|
swatches: e,
|
|
3963
3981
|
value: t,
|
|
3964
3982
|
defaultValue: n,
|
|
@@ -3967,62 +3985,62 @@ function en({
|
|
|
3967
3985
|
name: s
|
|
3968
3986
|
}) {
|
|
3969
3987
|
const o = t !== void 0, [l, m] = $(n), d = o ? t : l, h = N(
|
|
3970
|
-
(
|
|
3971
|
-
o || m(
|
|
3988
|
+
(D) => {
|
|
3989
|
+
o || m(D), a?.(D);
|
|
3972
3990
|
},
|
|
3973
3991
|
[o, a]
|
|
3974
|
-
),
|
|
3975
|
-
(
|
|
3992
|
+
), f = N(
|
|
3993
|
+
(D) => d === D,
|
|
3976
3994
|
[d]
|
|
3977
|
-
),
|
|
3978
|
-
M ?
|
|
3979
|
-
}, []), w = e.filter((
|
|
3980
|
-
const M =
|
|
3995
|
+
), u = E(/* @__PURE__ */ new Map()), g = N((D, M) => {
|
|
3996
|
+
M ? u.current.set(D, M) : u.current.delete(D);
|
|
3997
|
+
}, []), w = e.filter((D) => !D.disabled && !i), v = w.find((D) => D.value === d)?.value ?? w[0]?.value, c = N((D) => {
|
|
3998
|
+
const M = u.current.get(D);
|
|
3981
3999
|
M && M.focus();
|
|
3982
|
-
}, []),
|
|
3983
|
-
(
|
|
4000
|
+
}, []), x = N(
|
|
4001
|
+
(D, M) => {
|
|
3984
4002
|
if (i) return;
|
|
3985
|
-
const
|
|
3986
|
-
if (
|
|
3987
|
-
const
|
|
3988
|
-
if (
|
|
3989
|
-
let b =
|
|
3990
|
-
switch (
|
|
4003
|
+
const T = e.filter((C) => !C.disabled);
|
|
4004
|
+
if (T.length === 0) return;
|
|
4005
|
+
const p = T.findIndex((C) => C.value === M);
|
|
4006
|
+
if (p === -1) return;
|
|
4007
|
+
let b = p;
|
|
4008
|
+
switch (D.key) {
|
|
3991
4009
|
case "ArrowRight":
|
|
3992
4010
|
case "ArrowDown":
|
|
3993
|
-
b = (
|
|
4011
|
+
b = (p + 1) % T.length;
|
|
3994
4012
|
break;
|
|
3995
4013
|
case "ArrowLeft":
|
|
3996
4014
|
case "ArrowUp":
|
|
3997
|
-
b = (
|
|
4015
|
+
b = (p - 1 + T.length) % T.length;
|
|
3998
4016
|
break;
|
|
3999
4017
|
case "Home":
|
|
4000
4018
|
b = 0;
|
|
4001
4019
|
break;
|
|
4002
4020
|
case "End":
|
|
4003
|
-
b =
|
|
4021
|
+
b = T.length - 1;
|
|
4004
4022
|
break;
|
|
4005
4023
|
case " ":
|
|
4006
4024
|
case "Enter":
|
|
4007
|
-
|
|
4025
|
+
D.preventDefault(), h(M);
|
|
4008
4026
|
return;
|
|
4009
4027
|
default:
|
|
4010
4028
|
return;
|
|
4011
4029
|
}
|
|
4012
|
-
|
|
4013
|
-
const
|
|
4014
|
-
c(
|
|
4030
|
+
D.preventDefault();
|
|
4031
|
+
const _ = T[b].value;
|
|
4032
|
+
c(_), h(_);
|
|
4015
4033
|
},
|
|
4016
4034
|
[i, e, h, c]
|
|
4017
4035
|
), I = {
|
|
4018
4036
|
selectedValue: d,
|
|
4019
4037
|
select: h,
|
|
4020
|
-
isSelected:
|
|
4038
|
+
isSelected: f,
|
|
4021
4039
|
groupDisabled: i,
|
|
4022
4040
|
name: s,
|
|
4023
|
-
registerRef:
|
|
4024
|
-
firstFocusableValue:
|
|
4025
|
-
onKeyNav:
|
|
4041
|
+
registerRef: g,
|
|
4042
|
+
firstFocusableValue: v,
|
|
4043
|
+
onKeyNav: x
|
|
4026
4044
|
};
|
|
4027
4045
|
return /* @__PURE__ */ r(pt.Provider, { value: I, children: /* @__PURE__ */ r(
|
|
4028
4046
|
"div",
|
|
@@ -4032,11 +4050,11 @@ function en({
|
|
|
4032
4050
|
"aria-label": s,
|
|
4033
4051
|
"aria-disabled": i,
|
|
4034
4052
|
"data-disabled": i || void 0,
|
|
4035
|
-
children: e.map((
|
|
4053
|
+
children: e.map((D) => /* @__PURE__ */ r(Xa, { option: D }, D.value))
|
|
4036
4054
|
}
|
|
4037
4055
|
) });
|
|
4038
4056
|
}
|
|
4039
|
-
|
|
4057
|
+
Ja.displayName = "PresetSwatchRow";
|
|
4040
4058
|
function Ke(e, t) {
|
|
4041
4059
|
for (const n of e)
|
|
4042
4060
|
if (n.items.some((a) => a.id === t))
|
|
@@ -4047,14 +4065,14 @@ function nt(e, t) {
|
|
|
4047
4065
|
const n = e.find((a) => a.zoneKey === t);
|
|
4048
4066
|
return n ? n.zoneKey : Ke(e, t);
|
|
4049
4067
|
}
|
|
4050
|
-
function
|
|
4068
|
+
function en(e, t, n) {
|
|
4051
4069
|
const a = [...e], [i] = a.splice(t, 1);
|
|
4052
4070
|
return a.splice(n, 0, i), a;
|
|
4053
4071
|
}
|
|
4054
|
-
function
|
|
4072
|
+
function tn(e) {
|
|
4055
4073
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
4056
4074
|
}
|
|
4057
|
-
function
|
|
4075
|
+
function an(e) {
|
|
4058
4076
|
const [t, n] = $(
|
|
4059
4077
|
() => e.zones.map((c) => c.maxItems !== void 0 && c.items.length > c.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4060
4078
|
`useSortableZones: zone "${c.zoneKey}" exceeds maxItems (${c.items.length} > ${c.maxItems}); trimming to cap.`
|
|
@@ -4062,7 +4080,7 @@ function nn(e) {
|
|
|
4062
4080
|
), [a, i] = $(null), [s, o] = $(null), l = E(null), m = E(e.onZoneChange);
|
|
4063
4081
|
m.current = e.onZoneChange;
|
|
4064
4082
|
const d = Ne(
|
|
4065
|
-
() =>
|
|
4083
|
+
() => tn(e.zones),
|
|
4066
4084
|
[e.zones]
|
|
4067
4085
|
), h = E(d);
|
|
4068
4086
|
O(() => {
|
|
@@ -4072,71 +4090,71 @@ function nn(e) {
|
|
|
4072
4090
|
), { ...c, items: c.items.slice(0, c.maxItems) }) : c)
|
|
4073
4091
|
));
|
|
4074
4092
|
}, [d, e.zones, a]);
|
|
4075
|
-
const
|
|
4093
|
+
const f = N(
|
|
4076
4094
|
(c) => {
|
|
4077
|
-
const
|
|
4078
|
-
let I = null,
|
|
4095
|
+
const x = c.active.id;
|
|
4096
|
+
let I = null, D = null;
|
|
4079
4097
|
for (const M of t) {
|
|
4080
|
-
const
|
|
4081
|
-
if (
|
|
4082
|
-
I =
|
|
4098
|
+
const T = M.items.find((p) => p.id === x);
|
|
4099
|
+
if (T) {
|
|
4100
|
+
I = T, D = M.zoneKey;
|
|
4083
4101
|
break;
|
|
4084
4102
|
}
|
|
4085
4103
|
}
|
|
4086
|
-
l.current =
|
|
4104
|
+
l.current = D, i(I), o(D);
|
|
4087
4105
|
},
|
|
4088
4106
|
[t]
|
|
4089
|
-
),
|
|
4107
|
+
), u = N(
|
|
4090
4108
|
(c) => {
|
|
4091
4109
|
if (!c.over) {
|
|
4092
4110
|
o(l.current);
|
|
4093
4111
|
return;
|
|
4094
4112
|
}
|
|
4095
|
-
const
|
|
4096
|
-
o(
|
|
4113
|
+
const x = nt(t, c.over.id);
|
|
4114
|
+
o(x);
|
|
4097
4115
|
},
|
|
4098
4116
|
[t]
|
|
4099
|
-
),
|
|
4117
|
+
), g = N(
|
|
4100
4118
|
(c) => {
|
|
4101
|
-
const { active:
|
|
4119
|
+
const { active: x, over: I } = c, D = () => {
|
|
4102
4120
|
l.current = null, i(null), o(null);
|
|
4103
4121
|
};
|
|
4104
4122
|
if (!I) {
|
|
4105
|
-
|
|
4123
|
+
D();
|
|
4106
4124
|
return;
|
|
4107
4125
|
}
|
|
4108
|
-
const M = Ke(t,
|
|
4109
|
-
if (!M || !
|
|
4110
|
-
|
|
4126
|
+
const M = Ke(t, x.id), T = nt(t, I.id);
|
|
4127
|
+
if (!M || !T) {
|
|
4128
|
+
D();
|
|
4111
4129
|
return;
|
|
4112
4130
|
}
|
|
4113
|
-
let
|
|
4114
|
-
if (M ===
|
|
4115
|
-
const b =
|
|
4116
|
-
|
|
4117
|
-
...
|
|
4118
|
-
items:
|
|
4131
|
+
let p = t.map((b) => ({ ...b, items: [...b.items] }));
|
|
4132
|
+
if (M === T) {
|
|
4133
|
+
const b = p.findIndex((P) => P.zoneKey === M), _ = p[b], C = _.items.findIndex((P) => P.id === x.id), y = _.items.findIndex((P) => P.id === I.id), R = y >= 0 ? y : Math.max(0, _.items.length - 1);
|
|
4134
|
+
p[b] = {
|
|
4135
|
+
..._,
|
|
4136
|
+
items: en(_.items, C, R)
|
|
4119
4137
|
};
|
|
4120
4138
|
} else {
|
|
4121
|
-
const b =
|
|
4122
|
-
if (!
|
|
4123
|
-
|
|
4139
|
+
const b = p.findIndex((L) => L.zoneKey === M), _ = p.findIndex((L) => L.zoneKey === T), C = p[b], y = p[_], R = C.items.find((L) => L.id === x.id);
|
|
4140
|
+
if (!R) {
|
|
4141
|
+
D();
|
|
4124
4142
|
return;
|
|
4125
4143
|
}
|
|
4126
|
-
const P =
|
|
4127
|
-
let U = P,
|
|
4128
|
-
if (y.maxItems !== void 0 &&
|
|
4129
|
-
const L =
|
|
4130
|
-
|
|
4144
|
+
const P = C.items.filter((L) => L.id !== x.id), H = y.items.findIndex((L) => L.id === I.id), Y = H >= 0 ? H : y.items.length;
|
|
4145
|
+
let U = P, G = [...y.items];
|
|
4146
|
+
if (y.maxItems !== void 0 && G.length >= y.maxItems) {
|
|
4147
|
+
const L = G[G.length - 1];
|
|
4148
|
+
G = G.slice(0, y.maxItems - 1), U = [...P, L];
|
|
4131
4149
|
}
|
|
4132
|
-
const B = Math.min(Y,
|
|
4133
|
-
...
|
|
4134
|
-
|
|
4135
|
-
...
|
|
4150
|
+
const B = Math.min(Y, G.length), Z = [
|
|
4151
|
+
...G.slice(0, B),
|
|
4152
|
+
R,
|
|
4153
|
+
...G.slice(B)
|
|
4136
4154
|
];
|
|
4137
|
-
|
|
4155
|
+
p[b] = { ...C, items: U }, p[_] = { ...y, items: Z };
|
|
4138
4156
|
}
|
|
4139
|
-
n(
|
|
4157
|
+
n(p), m.current?.(p), D();
|
|
4140
4158
|
},
|
|
4141
4159
|
[t]
|
|
4142
4160
|
), w = N(
|
|
@@ -4145,13 +4163,13 @@ function nn(e) {
|
|
|
4145
4163
|
"data-zone-key": c
|
|
4146
4164
|
}),
|
|
4147
4165
|
[]
|
|
4148
|
-
),
|
|
4166
|
+
), v = N(
|
|
4149
4167
|
(c) => {
|
|
4150
|
-
const
|
|
4168
|
+
const x = Ke(t, c.id) ?? "";
|
|
4151
4169
|
return {
|
|
4152
4170
|
id: c.id,
|
|
4153
4171
|
"data-item-id": c.id,
|
|
4154
|
-
"data-zone-key":
|
|
4172
|
+
"data-zone-key": x
|
|
4155
4173
|
};
|
|
4156
4174
|
},
|
|
4157
4175
|
[t]
|
|
@@ -4161,14 +4179,14 @@ function nn(e) {
|
|
|
4161
4179
|
activeZone: s,
|
|
4162
4180
|
activeItem: a,
|
|
4163
4181
|
getZoneProps: w,
|
|
4164
|
-
getItemProps:
|
|
4165
|
-
handleDragStart:
|
|
4166
|
-
handleDragOver:
|
|
4167
|
-
handleDragEnd:
|
|
4182
|
+
getItemProps: v,
|
|
4183
|
+
handleDragStart: f,
|
|
4184
|
+
handleDragOver: u,
|
|
4185
|
+
handleDragEnd: g
|
|
4168
4186
|
};
|
|
4169
4187
|
}
|
|
4170
|
-
let he = null,
|
|
4171
|
-
const
|
|
4188
|
+
let he = null, Se = null, Ee = !1;
|
|
4189
|
+
const nn = [
|
|
4172
4190
|
"DndContext",
|
|
4173
4191
|
"DragOverlay",
|
|
4174
4192
|
"useSensors",
|
|
@@ -4177,22 +4195,22 @@ const rn = [
|
|
|
4177
4195
|
"PointerSensor",
|
|
4178
4196
|
"KeyboardSensor",
|
|
4179
4197
|
"closestCenter"
|
|
4180
|
-
],
|
|
4198
|
+
], rn = [
|
|
4181
4199
|
"SortableContext",
|
|
4182
4200
|
"useSortable",
|
|
4183
4201
|
"verticalListSortingStrategy"
|
|
4184
4202
|
];
|
|
4185
|
-
function
|
|
4203
|
+
function sn(e, t) {
|
|
4186
4204
|
const n = [], a = e ?? {};
|
|
4187
|
-
for (const s of
|
|
4205
|
+
for (const s of nn)
|
|
4188
4206
|
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
4189
4207
|
const i = t ?? {};
|
|
4190
|
-
for (const s of
|
|
4208
|
+
for (const s of rn)
|
|
4191
4209
|
i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
4192
4210
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
4193
4211
|
}
|
|
4194
|
-
function
|
|
4195
|
-
return he ? Promise.resolve(he) : Ee ? Promise.resolve(null) :
|
|
4212
|
+
function on() {
|
|
4213
|
+
return he ? Promise.resolve(he) : Ee ? Promise.resolve(null) : Se || (Se = (async () => {
|
|
4196
4214
|
try {
|
|
4197
4215
|
const [e, t, n] = await Promise.all([
|
|
4198
4216
|
import("@dnd-kit/core"),
|
|
@@ -4200,7 +4218,7 @@ function ln() {
|
|
|
4200
4218
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
4201
4219
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
4202
4220
|
), {}))
|
|
4203
|
-
]), a =
|
|
4221
|
+
]), a = sn(e, t);
|
|
4204
4222
|
return a.ok ? (he = {
|
|
4205
4223
|
core: e,
|
|
4206
4224
|
sortable: t,
|
|
@@ -4211,14 +4229,14 @@ function ln() {
|
|
|
4211
4229
|
} catch {
|
|
4212
4230
|
return Ee = !0, null;
|
|
4213
4231
|
}
|
|
4214
|
-
})(),
|
|
4232
|
+
})(), Se);
|
|
4215
4233
|
}
|
|
4216
|
-
function
|
|
4217
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o =
|
|
4234
|
+
function ln(e) {
|
|
4235
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = an({ zones: t, onZoneChange: n }), [l, m] = V.useState(he);
|
|
4218
4236
|
return V.useEffect(() => {
|
|
4219
4237
|
if (l) return;
|
|
4220
4238
|
let d = !0;
|
|
4221
|
-
return
|
|
4239
|
+
return on().then((h) => {
|
|
4222
4240
|
d && m(h);
|
|
4223
4241
|
}), () => {
|
|
4224
4242
|
d = !1;
|
|
@@ -4233,11 +4251,11 @@ function cn(e) {
|
|
|
4233
4251
|
renderDragOverlay: s
|
|
4234
4252
|
}
|
|
4235
4253
|
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
4236
|
-
const h = d.items.map((
|
|
4254
|
+
const h = d.items.map((f) => /* @__PURE__ */ r(V.Fragment, { children: i(f) }, f.id));
|
|
4237
4255
|
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, h) }, d.zoneKey);
|
|
4238
4256
|
}) });
|
|
4239
4257
|
}
|
|
4240
|
-
|
|
4258
|
+
ln.displayName = "SortableZones";
|
|
4241
4259
|
function ft({
|
|
4242
4260
|
state: e,
|
|
4243
4261
|
modules: t,
|
|
@@ -4245,39 +4263,39 @@ function ft({
|
|
|
4245
4263
|
renderItem: a,
|
|
4246
4264
|
renderDragOverlay: i
|
|
4247
4265
|
}) {
|
|
4248
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext: m, DragOverlay: d, useSensors: h, useSensor:
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
),
|
|
4266
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: m, DragOverlay: d, useSensors: h, useSensor: f, useDroppable: u, PointerSensor: g, KeyboardSensor: w, closestCenter: v } = s, { SortableContext: c, verticalListSortingStrategy: x } = o, I = h(
|
|
4267
|
+
f(g, { activationConstraint: { distance: 5 } }),
|
|
4268
|
+
f(w)
|
|
4269
|
+
), D = m, M = d, T = c;
|
|
4252
4270
|
return /* @__PURE__ */ k(
|
|
4253
|
-
|
|
4271
|
+
D,
|
|
4254
4272
|
{
|
|
4255
4273
|
sensors: I,
|
|
4256
|
-
collisionDetection:
|
|
4274
|
+
collisionDetection: v,
|
|
4257
4275
|
onDragStart: e.handleDragStart,
|
|
4258
4276
|
onDragOver: e.handleDragOver,
|
|
4259
4277
|
onDragEnd: e.handleDragEnd,
|
|
4260
4278
|
children: [
|
|
4261
|
-
e.zones.map((
|
|
4262
|
-
const b =
|
|
4279
|
+
e.zones.map((p) => {
|
|
4280
|
+
const b = p.items.map((C) => C.id), _ = p.items.map((C) => /* @__PURE__ */ r(
|
|
4263
4281
|
ht,
|
|
4264
4282
|
{
|
|
4265
|
-
id:
|
|
4283
|
+
id: C.id,
|
|
4266
4284
|
useSortable: o.useSortable,
|
|
4267
4285
|
cssHelper: l.CSS,
|
|
4268
|
-
children: a(
|
|
4286
|
+
children: a(C)
|
|
4269
4287
|
},
|
|
4270
|
-
|
|
4288
|
+
C.id
|
|
4271
4289
|
));
|
|
4272
4290
|
return /* @__PURE__ */ r(
|
|
4273
4291
|
bt,
|
|
4274
4292
|
{
|
|
4275
|
-
zoneKey:
|
|
4276
|
-
zoneProps: e.getZoneProps(
|
|
4277
|
-
useDroppable:
|
|
4278
|
-
children: /* @__PURE__ */ r(
|
|
4293
|
+
zoneKey: p.zoneKey,
|
|
4294
|
+
zoneProps: e.getZoneProps(p.zoneKey),
|
|
4295
|
+
useDroppable: u,
|
|
4296
|
+
children: /* @__PURE__ */ r(T, { items: b, strategy: x, children: n(p.zoneKey, p.items, _) })
|
|
4279
4297
|
},
|
|
4280
|
-
|
|
4298
|
+
p.zoneKey
|
|
4281
4299
|
);
|
|
4282
4300
|
}),
|
|
4283
4301
|
/* @__PURE__ */ r(M, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
@@ -4305,7 +4323,7 @@ function bt({
|
|
|
4305
4323
|
return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
4306
4324
|
}
|
|
4307
4325
|
bt.displayName = "ZoneDroppable";
|
|
4308
|
-
function
|
|
4326
|
+
function zr({
|
|
4309
4327
|
slotLeft: e,
|
|
4310
4328
|
slotCenter: t,
|
|
4311
4329
|
slotRight: n,
|
|
@@ -4355,7 +4373,7 @@ function Wr({
|
|
|
4355
4373
|
}
|
|
4356
4374
|
);
|
|
4357
4375
|
}
|
|
4358
|
-
function
|
|
4376
|
+
function Wr({
|
|
4359
4377
|
count: e,
|
|
4360
4378
|
currentIndex: t,
|
|
4361
4379
|
onSelect: n,
|
|
@@ -4367,24 +4385,24 @@ function jr({
|
|
|
4367
4385
|
sectionsPerView: m = 1
|
|
4368
4386
|
// D-09 default
|
|
4369
4387
|
}) {
|
|
4370
|
-
const d = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, d)),
|
|
4371
|
-
return
|
|
4388
|
+
const d = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, d)), f = Math.min(e - 1, h + Math.max(0, m - 1)), u = [h, f], g = X.useRef([]);
|
|
4389
|
+
return g.current.length = e, e <= 1 || u[0] === 0 && u[1] === e - 1 ? null : /* @__PURE__ */ k(
|
|
4372
4390
|
"div",
|
|
4373
4391
|
{
|
|
4374
4392
|
role: "tablist",
|
|
4375
4393
|
"aria-label": a,
|
|
4376
4394
|
"data-testid": "gloss-section-dots",
|
|
4377
4395
|
className: "gloss-section-dots",
|
|
4378
|
-
onKeyDown: (
|
|
4396
|
+
onKeyDown: (v) => {
|
|
4379
4397
|
if (e !== 0) {
|
|
4380
|
-
if (
|
|
4381
|
-
|
|
4398
|
+
if (v.key === "ArrowRight") {
|
|
4399
|
+
v.preventDefault();
|
|
4382
4400
|
const c = (d + 1) % e;
|
|
4383
|
-
n(c), requestAnimationFrame(() =>
|
|
4384
|
-
} else if (
|
|
4385
|
-
|
|
4401
|
+
n(c), requestAnimationFrame(() => g.current[c]?.focus());
|
|
4402
|
+
} else if (v.key === "ArrowLeft") {
|
|
4403
|
+
v.preventDefault();
|
|
4386
4404
|
const c = (d - 1 + e) % e;
|
|
4387
|
-
n(c), requestAnimationFrame(() =>
|
|
4405
|
+
n(c), requestAnimationFrame(() => g.current[c]?.focus());
|
|
4388
4406
|
}
|
|
4389
4407
|
}
|
|
4390
4408
|
},
|
|
@@ -4395,16 +4413,16 @@ function jr({
|
|
|
4395
4413
|
className: "gloss-section-dots__blob",
|
|
4396
4414
|
"aria-hidden": "true",
|
|
4397
4415
|
style: {
|
|
4398
|
-
"--blob-start":
|
|
4399
|
-
"--blob-end":
|
|
4416
|
+
"--blob-start": u[0],
|
|
4417
|
+
"--blob-end": u[1]
|
|
4400
4418
|
}
|
|
4401
4419
|
}
|
|
4402
4420
|
),
|
|
4403
|
-
Array.from({ length: e }, (
|
|
4421
|
+
Array.from({ length: e }, (v, c) => /* @__PURE__ */ r(
|
|
4404
4422
|
"button",
|
|
4405
4423
|
{
|
|
4406
|
-
ref: (
|
|
4407
|
-
|
|
4424
|
+
ref: (x) => {
|
|
4425
|
+
g.current[c] = x;
|
|
4408
4426
|
},
|
|
4409
4427
|
type: "button",
|
|
4410
4428
|
role: "tab",
|
|
@@ -4424,12 +4442,12 @@ function jr({
|
|
|
4424
4442
|
}
|
|
4425
4443
|
);
|
|
4426
4444
|
}
|
|
4427
|
-
const
|
|
4445
|
+
const cn = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4428
4446
|
const i = { ...n };
|
|
4429
4447
|
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(ze, { region: "toolbar", density: e, children: t }) });
|
|
4430
4448
|
});
|
|
4431
|
-
|
|
4432
|
-
const
|
|
4449
|
+
cn.displayName = "ContainerToolbar";
|
|
4450
|
+
const dn = V.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
|
|
4433
4451
|
const o = { ...i };
|
|
4434
4452
|
return delete o.className, delete o.style, /* @__PURE__ */ k("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
4435
4453
|
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
@@ -4437,347 +4455,347 @@ const un = V.forwardRef(({ legend: e, description: t, density: n = "default", ch
|
|
|
4437
4455
|
/* @__PURE__ */ r(ze, { region: "form-section", density: n, children: a })
|
|
4438
4456
|
] });
|
|
4439
4457
|
});
|
|
4440
|
-
|
|
4441
|
-
const
|
|
4458
|
+
dn.displayName = "ContainerFormSection";
|
|
4459
|
+
const un = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4442
4460
|
const i = { ...n };
|
|
4443
4461
|
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(ze, { region: "table", density: e, children: t }) });
|
|
4444
4462
|
});
|
|
4445
|
-
|
|
4463
|
+
un.displayName = "ContainerTable";
|
|
4446
4464
|
export {
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4465
|
+
Vr as Accordion,
|
|
4466
|
+
Hr as AccordionContent,
|
|
4467
|
+
Ur as AccordionItem,
|
|
4468
|
+
Zr as AccordionTrigger,
|
|
4469
|
+
Yr as ActionStrip,
|
|
4470
|
+
qr as Actionable,
|
|
4471
|
+
Qr as AddressGroup,
|
|
4472
|
+
Xr as AddressSelect,
|
|
4473
|
+
Jr as AsyncLoader,
|
|
4474
|
+
es as Autocomplete,
|
|
4475
|
+
ts as Badge,
|
|
4476
|
+
as as BarChartCard,
|
|
4477
|
+
ns as BarsBg,
|
|
4478
|
+
zr as BottomToolbar,
|
|
4479
|
+
rs as Button,
|
|
4480
|
+
ss as ButtonGroup,
|
|
4481
|
+
is as ButtonGroupContext,
|
|
4482
|
+
os as Card,
|
|
4483
|
+
ls as CardActions,
|
|
4484
|
+
cs as CardBack,
|
|
4485
|
+
ds as CardBody,
|
|
4486
|
+
us as CardFooter,
|
|
4487
|
+
ms as CardHeader,
|
|
4488
|
+
gs as CardMedia,
|
|
4471
4489
|
Dt as CardShell,
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4490
|
+
ps as CardSubtitle,
|
|
4491
|
+
fs as CardTitle,
|
|
4492
|
+
xr as CascadePreview,
|
|
4493
|
+
Lr as CellTintOverlay,
|
|
4494
|
+
hs as ChartControlBar,
|
|
4495
|
+
bs as Checkbox,
|
|
4496
|
+
vs as CheckboxGroup,
|
|
4497
|
+
ys as Chip,
|
|
4498
|
+
ws as ColorPicker,
|
|
4499
|
+
_s as ComparisonCard,
|
|
4500
|
+
Ns as ContactForm,
|
|
4501
|
+
Ds as ContainerCard,
|
|
4502
|
+
ks as ContainerCardActions,
|
|
4503
|
+
Cs as ContainerCardBody,
|
|
4504
|
+
Ss as ContainerCardFooter,
|
|
4505
|
+
xs as ContainerCardHeader,
|
|
4506
|
+
Rs as ContainerCardMedia,
|
|
4507
|
+
Ms as ContainerCardSubtitle,
|
|
4508
|
+
Ts as ContainerCardTitle,
|
|
4509
|
+
Is as ContainerDialog,
|
|
4510
|
+
Es as ContainerDialogActions,
|
|
4511
|
+
Ps as ContainerDialogBody,
|
|
4512
|
+
Fs as ContainerDialogHeader,
|
|
4513
|
+
dn as ContainerFormSection,
|
|
4514
|
+
As as ContainerPanel,
|
|
4515
|
+
un as ContainerTable,
|
|
4516
|
+
cn as ContainerToolbar,
|
|
4517
|
+
Os as CreditCardForm,
|
|
4518
|
+
Ls as DEFAULT_FOOTER_IDS,
|
|
4519
|
+
oe as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4520
|
+
pl as DEFAULT_MARKET_PRESETS,
|
|
4521
|
+
$s as DEFAULT_OVERFLOW_IDS,
|
|
4522
|
+
fl as DEFAULT_PINNED,
|
|
4505
4523
|
it as DEFAULT_RESIZE_PHYSICS,
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4524
|
+
Bs as DataTable,
|
|
4525
|
+
Ks as DatePicker,
|
|
4526
|
+
zs as DateRangePicker,
|
|
4527
|
+
Ws as DestructiveModal,
|
|
4510
4528
|
Na as DevTuningPanel,
|
|
4511
4529
|
Gs as DirectionCard,
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4530
|
+
js as Dismissible,
|
|
4531
|
+
Vs as DistributionCard,
|
|
4532
|
+
Hs as DonutChart,
|
|
4533
|
+
Cr as DragGhost,
|
|
4534
|
+
_r as DropAnchorCell,
|
|
4535
|
+
Us as Dropdown,
|
|
4518
4536
|
Sa as DualPaceBars,
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4537
|
+
Zs as ENTITY_FILTER_KEYS,
|
|
4538
|
+
Ys as ENTITY_PROFILE_ROUTES,
|
|
4539
|
+
qs as ENTITY_TYPE_PLURAL,
|
|
4522
4540
|
Ht as EdgeHoverHandle,
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4541
|
+
kr as EmptyCellPackAffordance,
|
|
4542
|
+
Qs as EntityPicker,
|
|
4543
|
+
J as EntityRow,
|
|
4544
|
+
Xs as EntitySearchPanel,
|
|
4527
4545
|
$a as ExceptionListCard,
|
|
4528
4546
|
Ba as ExceptionListTilePreview,
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4547
|
+
Js as Expandable,
|
|
4548
|
+
ei as ExpandableChip,
|
|
4549
|
+
ti as FLIP_AND_STAGE_TIMINGS,
|
|
4550
|
+
ai as FileUpload,
|
|
4551
|
+
ni as FilterChip,
|
|
4552
|
+
ri as FilterInput,
|
|
4553
|
+
si as FlipAndStageProvider,
|
|
4554
|
+
ii as Form,
|
|
4555
|
+
oi as FormDialog,
|
|
4556
|
+
li as FormField,
|
|
4557
|
+
ci as FusedShape,
|
|
4540
4558
|
xa as GapReadout,
|
|
4541
|
-
|
|
4559
|
+
di as GestureStateProvider,
|
|
4542
4560
|
Ut as GhostPreview,
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4561
|
+
ui as GroupCheckbox,
|
|
4562
|
+
mi as GroupRadio,
|
|
4563
|
+
Kn as HARD_CLIP,
|
|
4564
|
+
gi as HighlightCard,
|
|
4565
|
+
pi as HybridDatePicker,
|
|
4566
|
+
fi as ImportWizard,
|
|
4567
|
+
Ua as InlineNudge,
|
|
4568
|
+
hi as Input,
|
|
4569
|
+
bi as InputAddon,
|
|
4570
|
+
vi as InputGroup,
|
|
4553
4571
|
Fa as LeaderboardCard,
|
|
4554
4572
|
Aa as LeaderboardTilePreview,
|
|
4555
4573
|
Ta as LensChipGroup,
|
|
4556
|
-
|
|
4557
|
-
|
|
4574
|
+
yi as Link,
|
|
4575
|
+
wi as LoginForm,
|
|
4558
4576
|
_e as MagnitudeBar,
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4577
|
+
_i as MarketPresetRow,
|
|
4578
|
+
Ni as MaskPresets,
|
|
4579
|
+
Di as MaskedInput,
|
|
4580
|
+
ki as Menu,
|
|
4581
|
+
Ci as MenuDivider,
|
|
4582
|
+
Si as MenuGroup,
|
|
4583
|
+
xi as MenuItem,
|
|
4584
|
+
Ri as MergePrompt,
|
|
4585
|
+
Mi as MetricCard,
|
|
4586
|
+
Ti as MetricCardGrid,
|
|
4569
4587
|
ga as MetricGroupContainer,
|
|
4570
|
-
|
|
4588
|
+
Ii as MiniCalendar,
|
|
4571
4589
|
Ea as MoreInLensRail,
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4590
|
+
Ei as MultiSelect,
|
|
4591
|
+
Pi as NumberInput,
|
|
4592
|
+
Fi as ObjectArrow,
|
|
4593
|
+
Ai as OrderFilterBar,
|
|
4594
|
+
hl as PERIOD_OPTIONS,
|
|
4595
|
+
Rr as PaceCard,
|
|
4596
|
+
Mr as PaceTilePreview,
|
|
4579
4597
|
ta as PageChip,
|
|
4580
4598
|
ot as PageDropdown,
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4599
|
+
Oi as PasswordInput,
|
|
4600
|
+
Li as PaymentForm,
|
|
4601
|
+
$i as PaymentMethodSelect,
|
|
4602
|
+
Bi as PhoneInput,
|
|
4603
|
+
Ki as PinToMetric,
|
|
4604
|
+
Ja as PresetSwatchRow,
|
|
4605
|
+
zi as ProfileCard,
|
|
4606
|
+
Wi as ProgressCard,
|
|
4589
4607
|
Gi as QuickConfigPanel,
|
|
4590
4608
|
la as RECONFIG_BACKSIDE_LABELS,
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4609
|
+
bl as ROLLING_OPTIONS,
|
|
4610
|
+
ji as Radio,
|
|
4611
|
+
Vi as RadioGroup,
|
|
4612
|
+
Hi as RangeSlider,
|
|
4595
4613
|
ye as RankBadge,
|
|
4596
4614
|
gt as RankDelta,
|
|
4597
|
-
|
|
4615
|
+
Ui as Rating,
|
|
4598
4616
|
ua as ReconfigBacksideButtons,
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4617
|
+
$r as RefusePulse,
|
|
4618
|
+
Zi as RegistrationForm,
|
|
4619
|
+
wr as ResizeEnvelope,
|
|
4620
|
+
Br as ResizeTrackingOutline,
|
|
4621
|
+
Yi as Row1Controls,
|
|
4622
|
+
qi as Row2FilterTray,
|
|
4623
|
+
Ir as STROKE_DASHED,
|
|
4624
|
+
Ar as STROKE_DASHED_DASHARRAY,
|
|
4625
|
+
Fr as STROKE_OUTLINE,
|
|
4626
|
+
Er as STROKE_SOLID,
|
|
4627
|
+
Pr as STROKE_SPARSE_DASH,
|
|
4628
|
+
Or as STROKE_SPARSE_DASH_DASHARRAY,
|
|
4629
|
+
Qi as SearchInput,
|
|
4630
|
+
Dr as SectionDivider,
|
|
4631
|
+
Wr as SectionDots,
|
|
4632
|
+
Xi as SegmentCard,
|
|
4633
|
+
Ji as SegmentedControl,
|
|
4634
|
+
eo as Select,
|
|
4635
|
+
to as Selectable,
|
|
4618
4636
|
we as SeverityDot,
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4637
|
+
ao as SimpleMetricCard,
|
|
4638
|
+
no as SimpleSelector,
|
|
4639
|
+
ro as Skeleton,
|
|
4640
|
+
so as SkeletonCard,
|
|
4641
|
+
io as SkeletonChart,
|
|
4642
|
+
oo as SkeletonTable,
|
|
4643
|
+
lo as Slider,
|
|
4644
|
+
Sr as SnapOutline,
|
|
4645
|
+
co as Sortable,
|
|
4646
|
+
ln as SortableZones,
|
|
4647
|
+
uo as SparklineBg,
|
|
4648
|
+
Nr as SpilloverArc,
|
|
4649
|
+
mo as SplitButton,
|
|
4650
|
+
go as StackedGroupCard,
|
|
4633
4651
|
Ka as StackedGroupTilePreview,
|
|
4634
4652
|
Ia as StarterRail,
|
|
4635
|
-
|
|
4653
|
+
po as StatusModeCard,
|
|
4636
4654
|
Vt as StatusSlotChipMenu,
|
|
4637
|
-
|
|
4655
|
+
fo as Stepper,
|
|
4638
4656
|
Oe as SwingReveal,
|
|
4639
|
-
|
|
4640
|
-
|
|
4657
|
+
vl as TODAY_PRESET,
|
|
4658
|
+
se as TUNING_DEFAULTS,
|
|
4641
4659
|
ut as TUNING_STORAGE_KEY,
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4660
|
+
ho as TabGroup,
|
|
4661
|
+
bo as TabbedDataView,
|
|
4662
|
+
vo as TagInput,
|
|
4645
4663
|
$t as TargetInput,
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4664
|
+
yo as Textarea,
|
|
4665
|
+
qa as ThresholdRamp,
|
|
4666
|
+
wo as TimeFrame,
|
|
4667
|
+
_o as TimePicker,
|
|
4668
|
+
No as Toggle,
|
|
4669
|
+
Do as Tooltip,
|
|
4652
4670
|
mt as TrackingOutline,
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4671
|
+
ko as Transition,
|
|
4672
|
+
Co as TransitionGroup,
|
|
4673
|
+
So as TrendCard,
|
|
4674
|
+
xo as TrendIndicator,
|
|
4675
|
+
ul as UIContext,
|
|
4658
4676
|
ze as UIContextProvider,
|
|
4659
|
-
|
|
4660
|
-
|
|
4677
|
+
Ro as UnifiedBreakdownTable,
|
|
4678
|
+
Mo as UnifiedContextMenu,
|
|
4661
4679
|
Zt as VelocityBuffer,
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4680
|
+
To as addressGroupMetadata,
|
|
4681
|
+
Io as addressSchema,
|
|
4682
|
+
xn as allChips,
|
|
4683
|
+
Vn as allStateFixtures,
|
|
4684
|
+
jn as allVariantFixtures,
|
|
4685
|
+
In as blockSamples,
|
|
4686
|
+
Eo as buildDefaultOverflow,
|
|
4687
|
+
On as cardSamples,
|
|
4688
|
+
ce as cascadePhysics,
|
|
4689
|
+
Fn as chartSamples,
|
|
4690
|
+
Pn as circleSamples,
|
|
4691
|
+
zn as colorTokens,
|
|
4692
|
+
gr as compactLayout,
|
|
4693
|
+
ar as compactState,
|
|
4676
4694
|
Gn as computeGutterAnchorX,
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4695
|
+
Po as contactFormMetadata,
|
|
4696
|
+
Fo as contactSchema,
|
|
4697
|
+
nr as contextMenuFixtures,
|
|
4698
|
+
Ao as creditCardFormMetadata,
|
|
4699
|
+
Oo as creditCardSchema,
|
|
4682
4700
|
zt as dateChip,
|
|
4683
4701
|
dt as defaultControlBarState,
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4702
|
+
Lo as destructiveModalMetadata,
|
|
4703
|
+
$o as durations,
|
|
4704
|
+
Bo as easings,
|
|
4687
4705
|
Qt as emptyFixture,
|
|
4688
4706
|
Bt as entityChip,
|
|
4689
4707
|
sa as entityNameActions,
|
|
4690
|
-
|
|
4708
|
+
Mn as entityTabGroup,
|
|
4691
4709
|
qt as errorFixture,
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4710
|
+
Ko as evaluateTintCondition,
|
|
4711
|
+
tr as filteredState,
|
|
4712
|
+
yl as findPreset,
|
|
4713
|
+
wl as formatDateRange,
|
|
4714
|
+
_l as formatMarketDates,
|
|
4715
|
+
Nl as formatTrend,
|
|
4716
|
+
Dl as formatValue,
|
|
4717
|
+
fr as fullLayout,
|
|
4718
|
+
kl as generateMarketId,
|
|
4719
|
+
zo as generateTabId,
|
|
4720
|
+
Cl as getAllPresets,
|
|
4721
|
+
Sl as getDateRangeForPreset,
|
|
4722
|
+
Wo as getMenuActions,
|
|
4705
4723
|
st as getMotionMode,
|
|
4706
|
-
|
|
4724
|
+
xl as getPresetLabel,
|
|
4707
4725
|
Go as getTransitionStyle,
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4726
|
+
mr as gridCards,
|
|
4727
|
+
Tr as gridChannels,
|
|
4728
|
+
jo as interpolate,
|
|
4729
|
+
Rl as isInRange,
|
|
4730
|
+
Ml as isMarketActive,
|
|
4731
|
+
Tl as isSameDay,
|
|
4732
|
+
er as itemColumns,
|
|
4733
|
+
Xn as itemRows,
|
|
4716
4734
|
Yt as loadingFixture,
|
|
4717
|
-
|
|
4718
|
-
|
|
4735
|
+
Vo as loginFormMetadata,
|
|
4736
|
+
Ho as loginSchema,
|
|
4719
4737
|
Wt as manufacturerChip,
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4738
|
+
yr as manyTabs,
|
|
4739
|
+
Uo as mergeHandlers,
|
|
4740
|
+
Zo as mergeRefs,
|
|
4741
|
+
Rn as metricTabGroup,
|
|
4742
|
+
br as mixedTabs,
|
|
4743
|
+
Il as normalizePresetId,
|
|
4726
4744
|
oa as numericActions,
|
|
4727
|
-
|
|
4745
|
+
Jn as orderColumns,
|
|
4728
4746
|
ia as orderIdActions,
|
|
4729
|
-
|
|
4730
|
-
|
|
4747
|
+
Qn as orderRows,
|
|
4748
|
+
hr as ordersTabs,
|
|
4731
4749
|
at as paletteHex,
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4750
|
+
ie as paletteVars,
|
|
4751
|
+
Yo as parseNumericValue,
|
|
4752
|
+
qo as paymentFormMetadata,
|
|
4753
|
+
Qo as paymentSchema,
|
|
4754
|
+
Xo as presets,
|
|
4755
|
+
$n as provisional,
|
|
4756
|
+
Bn as reducedMotion,
|
|
4757
|
+
Jo as registrationFormMetadata,
|
|
4758
|
+
el as registrationSchema,
|
|
4759
|
+
Ln as rejectionFeedback,
|
|
4760
|
+
sr as sampleCompareRanges,
|
|
4761
|
+
lr as sampleCustomMarkets,
|
|
4762
|
+
rr as sampleDateRange,
|
|
4763
|
+
cr as sampleMarketPresetData,
|
|
4764
|
+
or as sampleMarkets,
|
|
4765
|
+
ur as samplePeriodPresets,
|
|
4766
|
+
ir as samplePreferences,
|
|
4767
|
+
dr as samplePresets,
|
|
4768
|
+
vr as singleTab,
|
|
4769
|
+
Hn as sparklineFixture,
|
|
4770
|
+
Un as sparklineUpFixture,
|
|
4753
4771
|
ea as staleDonutFixture,
|
|
4754
4772
|
Xt as staleFixture,
|
|
4755
4773
|
Jt as staleSparklineFixture,
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4774
|
+
Zn as standardFixture,
|
|
4775
|
+
qn as standardFlatFixture,
|
|
4776
|
+
pr as standardLayout,
|
|
4777
|
+
Yn as standardNegativeFixture,
|
|
4760
4778
|
Kt as statusChip,
|
|
4761
4779
|
fe as swingReveal,
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4780
|
+
An as tableSamples,
|
|
4781
|
+
En as textSamples,
|
|
4782
|
+
Tn as timeFrameTabGroup,
|
|
4783
|
+
El as toUppercasePresetId,
|
|
4766
4784
|
rt as useAffordanceVisibility,
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4785
|
+
Sn as useArrowNavigation,
|
|
4786
|
+
tl as useCheckboxGroupContext,
|
|
4787
|
+
Wn as useEdgeHoverResize,
|
|
4788
|
+
al as useFilterLayout,
|
|
4789
|
+
nl as useFlipAndStage,
|
|
4790
|
+
rl as useFlipAndStageContext,
|
|
4791
|
+
sl as useFlipAndStageContextOptional,
|
|
4792
|
+
Cn as useFocusReturn,
|
|
4793
|
+
il as useFocusTrap,
|
|
4794
|
+
ol as useFormContext,
|
|
4795
|
+
ll as useGestureState,
|
|
4796
|
+
cl as useRadioGroupContext,
|
|
4797
|
+
Kr as useResizeChoreography,
|
|
4780
4798
|
ha as useResizeTuning,
|
|
4781
|
-
|
|
4782
|
-
|
|
4799
|
+
an as useSortableZones,
|
|
4800
|
+
ml as useUIContext
|
|
4783
4801
|
};
|