@mt-gloss/ui 0.1.57 → 0.1.58
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/index.js +1449 -1362
- package/package.json +5 -1
package/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { Q as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import * as
|
|
5
|
-
import V, { useRef as
|
|
6
|
-
import { motion as
|
|
7
|
-
import { B as
|
|
8
|
-
import { c as
|
|
9
|
-
import { createPortal as
|
|
10
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { u as _t, C as Nt } from "./Expandable-BgEhifn0.js";
|
|
2
|
+
import { Q as Gr, V as Vr, T as Hr, U as Ur, a5 as Zr, b8 as Yr, aB as qr, aj as Qr, $ as Xr, ap as Jr, N as es, aa as ts, bo as as, P as ns, B as rs, a as ss, A as is, K as os, bj as ls, J as cs, L as ds, E as us, D as ms, H as gs, F as ps, by as fs, b as hs, c as bs, O as vs, q as ys, af as ws, aP as _s, A as Ns, K as Ds, J as ks, L as Cs, E as xs, D as Ss, H as Rs, F as Ms, b1 as Ts, b4 as Is, b3 as Ps, b2 as Es, b5 as Fs, aE as As, a7 as Os, a6 as Ls, as as $s, m as Bs, o as Ks, aH as zs, ad as Ws, ba as js, ab as Gs, bp as Vs, _ as Hs, bI as Us, bH as Zs, bJ as Ys, ar as qs, aS as Qs, bc as Xs, bN as Js, bw as ei, p as ti, ao as ai, bC as ni, bt as ri, a2 as si, at as ii, a4 as oi, bB as li, bS as ci, G as di, f as ui, ac as mi, bK as gi, aV as pi, t as fi, x as hi, I as bi, i as vi, ay as yi, bO as wi, M as _i, y as Ni, W as Di, Z as ki, X as Ci, Y as xi, au as Si, bi as Ri, bQ as Mi, bM as Ti, aq as Ii, w as Pi, bq as Ei, aU as Fi, al as Ai, aM as Oi, ai as Li, an as $i, aw as Bi, aT as Ki, ae as zi, av as Wi, e as ji, R as Gi, l as Vi, r as Hi, aJ as Ui, bz as Zi, bA as Yi, ak as qi, ag as Qi, j as Xi, z as Ji, b9 as eo, ah as to, bP as ao, be as no, bh as ro, bf as so, bg as io, k as oo, bb as lo, bn as co, S as uo, bl as mo, bm as go, ax as po, bd as fo, bR as ho, am as bo, v as vo, bL as yo, n as wo, h as _o, s as No, a0 as Do, a1 as ko, a9 as Co, bk as xo, bx as So, bE as Ro, aC as Mo, aD as To, a8 as Io, aQ as Po, aR as Eo, aF as Fo, aG as Ao, aI as Oo, aX as Lo, aY as $o, br as Bo, bG as Ko, bF as zo, a_ as Wo, a$ as jo, az as Go, aA as Vo, b7 as Ho, b6 as Uo, b0 as Zo, aN as Yo, aO as qo, aZ as Qo, aK as Xo, aL as Jo, d as el, bD as tl, bs as al, bu as nl, bv as rl, aW as sl, a3 as il, g as ol } from "./Expandable-BgEhifn0.js";
|
|
3
|
+
import { jsxs as k, jsx as r, Fragment as te } from "react/jsx-runtime";
|
|
4
|
+
import * as ce from "react";
|
|
5
|
+
import V, { useRef as P, useEffect as O, useState as $, useCallback as N, useId as Dt, forwardRef as kt, useMemo as Ne, createContext as Ct, useContext as xt } from "react";
|
|
6
|
+
import { motion as xe, useMotionValue as St, animate as Ue, useDragControls as Rt } from "framer-motion";
|
|
7
|
+
import { B as Mt, a as be, b as Ee, U as ze } from "./UIContext-CDdyubSF.js";
|
|
8
|
+
import { c as cl, u as dl } from "./UIContext-CDdyubSF.js";
|
|
9
|
+
import { createPortal as Tt } from "react-dom";
|
|
10
|
+
import { DEFAULT_MARKET_PRESETS as ml, DEFAULT_PINNED as gl, PERIOD_OPTIONS as pl, ROLLING_OPTIONS as fl, TODAY_PRESET as hl, findPreset as bl, formatDateRange as vl, formatMarketDates as yl, formatTrend as wl, formatValue as _l, generateMarketId as Nl, getAllPresets as Dl, getDateRangeForPreset as kl, getPresetLabel as Cl, isInRange as xl, isMarketActive as Sl, isSameDay as Rl, normalizePresetId as Ml, toUppercasePresetId as Tl } from "@mt-gloss/utils";
|
|
11
|
+
import It from "@mui/icons-material/AccessTime";
|
|
12
|
+
import Pt from "@mui/icons-material/Tune";
|
|
13
|
+
import Et from "@mui/icons-material/ViewColumn";
|
|
14
|
+
import Ft from "@mui/icons-material/AspectRatio";
|
|
15
|
+
import At from "@mui/icons-material/Palette";
|
|
16
|
+
import Ot from "@mui/icons-material/PushPin";
|
|
17
|
+
import { useMotionProbe as Fe } from "@mt-gloss/motion";
|
|
18
|
+
function Cn(e = {}) {
|
|
19
|
+
const { enabled: t = !0, returnTo: n } = e, a = P(null);
|
|
19
20
|
return O(() => {
|
|
20
21
|
t && (a.current = n || document.activeElement);
|
|
21
22
|
}, [t, n]), O(() => () => {
|
|
@@ -24,7 +25,7 @@ function Nn(e = {}) {
|
|
|
24
25
|
}, 0);
|
|
25
26
|
}, [t]), a;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function xn(e) {
|
|
28
29
|
const {
|
|
29
30
|
items: t,
|
|
30
31
|
activeIndex: n,
|
|
@@ -33,66 +34,66 @@ function Dn(e) {
|
|
|
33
34
|
orientation: s = "vertical",
|
|
34
35
|
enabled: o = !0,
|
|
35
36
|
isItemDisabled: l,
|
|
36
|
-
onSelect:
|
|
37
|
-
onEscape:
|
|
38
|
-
} = e, [
|
|
39
|
-
(
|
|
40
|
-
n === void 0 &&
|
|
37
|
+
onSelect: u,
|
|
38
|
+
onEscape: d
|
|
39
|
+
} = e, [h, m] = $(-1), g = n !== void 0 ? n : h, c = N(
|
|
40
|
+
(p) => {
|
|
41
|
+
n === void 0 && m(p), a?.(p);
|
|
41
42
|
},
|
|
42
43
|
[n, a]
|
|
43
|
-
),
|
|
44
|
-
(
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
-
return v === 1 ?
|
|
50
|
-
let
|
|
51
|
-
return i ?
|
|
44
|
+
), _ = N(() => t.map((p, v) => ({ item: p, index: v })).filter(({ item: p, index: v }) => !l?.(p, v)).map(({ index: p }) => p), [t, l]), b = N(
|
|
45
|
+
(p, v) => {
|
|
46
|
+
const D = _();
|
|
47
|
+
if (D.length === 0) return -1;
|
|
48
|
+
const T = D.indexOf(p);
|
|
49
|
+
if (T === -1)
|
|
50
|
+
return v === 1 ? D.find((S) => S > p) ?? (i ? D[0] : -1) : [...D].reverse().find((E) => E < p) ?? (i ? D[D.length - 1] : -1);
|
|
51
|
+
let w = T + v;
|
|
52
|
+
return i ? w = (w + D.length) % D.length : w = Math.max(0, Math.min(D.length - 1, w)), D[w];
|
|
52
53
|
},
|
|
53
|
-
[
|
|
54
|
-
),
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
}, [
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
}, [
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
}, [g, b,
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
}, [g, b,
|
|
67
|
-
|
|
68
|
-
}, [
|
|
69
|
-
(
|
|
54
|
+
[_, i]
|
|
55
|
+
), f = N(() => {
|
|
56
|
+
const p = _();
|
|
57
|
+
p.length > 0 && c(p[0]);
|
|
58
|
+
}, [_, c]), R = N(() => {
|
|
59
|
+
const p = _();
|
|
60
|
+
p.length > 0 && c(p[p.length - 1]);
|
|
61
|
+
}, [_, c]), I = N(() => {
|
|
62
|
+
const p = b(g, 1);
|
|
63
|
+
p !== -1 && c(p);
|
|
64
|
+
}, [g, b, c]), y = N(() => {
|
|
65
|
+
const p = b(g, -1);
|
|
66
|
+
p !== -1 && c(p);
|
|
67
|
+
}, [g, b, c]), M = N(() => {
|
|
68
|
+
c(-1);
|
|
69
|
+
}, [c]), x = N(
|
|
70
|
+
(p) => {
|
|
70
71
|
if (!o) return;
|
|
71
|
-
const { key: v } =
|
|
72
|
-
if (
|
|
73
|
-
|
|
72
|
+
const { key: v } = p, D = v === "ArrowUp" && (s === "vertical" || s === "both"), T = v === "ArrowDown" && (s === "vertical" || s === "both"), w = v === "ArrowLeft" && (s === "horizontal" || s === "both"), S = v === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
73
|
+
if (D || w) {
|
|
74
|
+
p.preventDefault(), g === -1 ? R() : y();
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
if (
|
|
77
|
-
|
|
77
|
+
if (T || S) {
|
|
78
|
+
p.preventDefault(), g === -1 ? f() : I();
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
80
81
|
if (v === "Home") {
|
|
81
|
-
|
|
82
|
+
p.preventDefault(), f();
|
|
82
83
|
return;
|
|
83
84
|
}
|
|
84
85
|
if (v === "End") {
|
|
85
|
-
|
|
86
|
+
p.preventDefault(), R();
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
88
89
|
if ((v === "Enter" || v === " ") && g >= 0 && g < t.length) {
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
l?.(
|
|
90
|
+
p.preventDefault();
|
|
91
|
+
const E = t[g];
|
|
92
|
+
l?.(E, g) || u?.(E, g);
|
|
92
93
|
return;
|
|
93
94
|
}
|
|
94
95
|
if (v === "Escape") {
|
|
95
|
-
|
|
96
|
+
d?.();
|
|
96
97
|
return;
|
|
97
98
|
}
|
|
98
99
|
},
|
|
@@ -101,27 +102,27 @@ function Dn(e) {
|
|
|
101
102
|
s,
|
|
102
103
|
g,
|
|
103
104
|
t,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
f,
|
|
106
|
+
R,
|
|
107
|
+
I,
|
|
108
|
+
y,
|
|
108
109
|
l,
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
u,
|
|
111
|
+
d
|
|
111
112
|
]
|
|
112
113
|
);
|
|
113
114
|
return {
|
|
114
115
|
focusedIndex: g,
|
|
115
|
-
setFocusedIndex:
|
|
116
|
+
setFocusedIndex: c,
|
|
116
117
|
handleKeyDown: x,
|
|
117
|
-
focusFirst:
|
|
118
|
-
focusLast:
|
|
119
|
-
focusNext:
|
|
120
|
-
focusPrevious:
|
|
121
|
-
resetFocus:
|
|
118
|
+
focusFirst: f,
|
|
119
|
+
focusLast: R,
|
|
120
|
+
focusNext: I,
|
|
121
|
+
focusPrevious: y,
|
|
122
|
+
resetFocus: M
|
|
122
123
|
};
|
|
123
124
|
}
|
|
124
|
-
const
|
|
125
|
+
const Lt = ({
|
|
125
126
|
label: e = "Set a target",
|
|
126
127
|
unit: t,
|
|
127
128
|
currentValue: n,
|
|
@@ -129,24 +130,24 @@ const At = ({
|
|
|
129
130
|
onSkip: i,
|
|
130
131
|
hint: s
|
|
131
132
|
}) => {
|
|
132
|
-
const [o, l] = $(n != null ? String(n) : ""),
|
|
133
|
-
const
|
|
134
|
-
Number.isNaN(
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor:
|
|
140
|
-
/* @__PURE__ */
|
|
133
|
+
const [o, l] = $(n != null ? String(n) : ""), u = () => {
|
|
134
|
+
const c = parseFloat(o);
|
|
135
|
+
Number.isNaN(c) || a(c);
|
|
136
|
+
}, d = (c) => {
|
|
137
|
+
c.key === "Enter" ? (c.preventDefault(), u()) : c.key === "Escape" && (c.preventDefault(), i?.());
|
|
138
|
+
}, h = Dt(), m = `gloss-target-input-field-${h}`, g = s ? `gloss-target-input-hint-${h}` : void 0;
|
|
139
|
+
return /* @__PURE__ */ k("div", { className: "gloss-target-input", children: [
|
|
140
|
+
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: m, children: e }),
|
|
141
|
+
/* @__PURE__ */ k("div", { className: "gloss-target-input__field-row", children: [
|
|
141
142
|
/* @__PURE__ */ r(
|
|
142
143
|
"input",
|
|
143
144
|
{
|
|
144
|
-
id:
|
|
145
|
+
id: m,
|
|
145
146
|
type: "number",
|
|
146
147
|
className: "gloss-target-input__field",
|
|
147
148
|
value: o,
|
|
148
|
-
onChange: (
|
|
149
|
-
onKeyDown:
|
|
149
|
+
onChange: (c) => l(c.target.value),
|
|
150
|
+
onKeyDown: d,
|
|
150
151
|
"aria-describedby": g,
|
|
151
152
|
autoFocus: !0
|
|
152
153
|
}
|
|
@@ -154,13 +155,13 @@ const At = ({
|
|
|
154
155
|
t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
|
|
155
156
|
] }),
|
|
156
157
|
s && /* @__PURE__ */ r("p", { id: g, className: "gloss-target-input__hint", children: s }),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ k("div", { className: "gloss-target-input__actions", children: [
|
|
158
159
|
/* @__PURE__ */ r(
|
|
159
160
|
"button",
|
|
160
161
|
{
|
|
161
162
|
type: "button",
|
|
162
163
|
className: "gloss-target-input__confirm",
|
|
163
|
-
onClick:
|
|
164
|
+
onClick: u,
|
|
164
165
|
children: "Confirm"
|
|
165
166
|
}
|
|
166
167
|
),
|
|
@@ -175,43 +176,43 @@ const At = ({
|
|
|
175
176
|
)
|
|
176
177
|
] })
|
|
177
178
|
] });
|
|
178
|
-
},
|
|
179
|
-
},
|
|
179
|
+
}, Se = (e) => {
|
|
180
|
+
}, $t = {
|
|
180
181
|
id: "entity-filter-1",
|
|
181
182
|
label: "Customer: Acme Corp",
|
|
182
183
|
field: "customer",
|
|
183
184
|
value: "acme-corp-123",
|
|
184
|
-
onRemove:
|
|
185
|
-
},
|
|
185
|
+
onRemove: Se
|
|
186
|
+
}, Bt = {
|
|
186
187
|
id: "status-filter-1",
|
|
187
188
|
label: "Status: Open",
|
|
188
189
|
field: "status",
|
|
189
190
|
value: "open",
|
|
190
|
-
onRemove:
|
|
191
|
-
},
|
|
191
|
+
onRemove: Se
|
|
192
|
+
}, Kt = {
|
|
192
193
|
id: "date-filter-1",
|
|
193
194
|
label: "Date: Mar 1 - Mar 15",
|
|
194
195
|
field: "dateRange",
|
|
195
196
|
value: "2026-03-01..2026-03-15",
|
|
196
|
-
onRemove:
|
|
197
|
-
},
|
|
197
|
+
onRemove: Se
|
|
198
|
+
}, zt = {
|
|
198
199
|
id: "mfg-filter-1",
|
|
199
200
|
label: "Manufacturer: Widget Co",
|
|
200
201
|
field: "manufacturer",
|
|
201
202
|
value: "widget-co-456",
|
|
202
|
-
onRemove:
|
|
203
|
-
},
|
|
204
|
-
Ot,
|
|
205
|
-
Lt,
|
|
203
|
+
onRemove: Se
|
|
204
|
+
}, Sn = [
|
|
206
205
|
$t,
|
|
207
|
-
Bt
|
|
208
|
-
|
|
206
|
+
Bt,
|
|
207
|
+
Kt,
|
|
208
|
+
zt
|
|
209
|
+
], Rn = {
|
|
209
210
|
id: "metric-toggle",
|
|
210
211
|
tabs: [
|
|
211
212
|
{ id: "$", label: "$", mono: !0 },
|
|
212
213
|
{ id: "#", label: "#", mono: !0 }
|
|
213
214
|
]
|
|
214
|
-
},
|
|
215
|
+
}, Mn = {
|
|
215
216
|
id: "entity-type",
|
|
216
217
|
tabs: [
|
|
217
218
|
{ id: "orders", label: "Orders" },
|
|
@@ -219,7 +220,7 @@ const At = ({
|
|
|
219
220
|
{ id: "customers", label: "Customers" },
|
|
220
221
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
221
222
|
]
|
|
222
|
-
},
|
|
223
|
+
}, Tn = {
|
|
223
224
|
id: "time-frame",
|
|
224
225
|
tabs: [
|
|
225
226
|
{ id: "MTD", label: "MTD" },
|
|
@@ -227,30 +228,30 @@ const At = ({
|
|
|
227
228
|
{ id: "YTD", label: "YTD" },
|
|
228
229
|
{ id: "LYTD", label: "LYTD" }
|
|
229
230
|
]
|
|
230
|
-
},
|
|
231
|
+
}, In = [
|
|
231
232
|
{ variant: "block", width: "100%", height: 16 },
|
|
232
233
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
233
234
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
234
235
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
235
|
-
],
|
|
236
|
+
], Pn = [
|
|
236
237
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
237
238
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
238
239
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
239
|
-
],
|
|
240
|
+
], En = [
|
|
240
241
|
{ variant: "circle", size: 24 },
|
|
241
242
|
{ variant: "circle", size: 40 },
|
|
242
243
|
{ variant: "circle", size: 64 }
|
|
243
|
-
],
|
|
244
|
+
], Fn = [
|
|
244
245
|
{ bars: 10, maxHeight: 120 },
|
|
245
246
|
{ bars: 5, maxHeight: 80 }
|
|
246
|
-
],
|
|
247
|
+
], An = [
|
|
247
248
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
248
249
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
249
|
-
],
|
|
250
|
+
], On = [
|
|
250
251
|
{ variant: "value", colSpan: 1 },
|
|
251
252
|
{ variant: "trend", colSpan: 2 },
|
|
252
253
|
{ variant: "target", colSpan: 1 }
|
|
253
|
-
],
|
|
254
|
+
], Ze = {
|
|
254
255
|
position: "fixed",
|
|
255
256
|
zIndex: 9999,
|
|
256
257
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -262,7 +263,7 @@ const At = ({
|
|
|
262
263
|
minWidth: 148,
|
|
263
264
|
paddingTop: 4,
|
|
264
265
|
paddingBottom: 4
|
|
265
|
-
},
|
|
266
|
+
}, Ae = (e) => ({
|
|
266
267
|
padding: "6px 12px",
|
|
267
268
|
fontSize: 12,
|
|
268
269
|
lineHeight: 1.4,
|
|
@@ -276,16 +277,16 @@ const At = ({
|
|
|
276
277
|
width: "100%",
|
|
277
278
|
textAlign: "left",
|
|
278
279
|
border: "none"
|
|
279
|
-
}),
|
|
280
|
-
...
|
|
280
|
+
}), Wt = (e) => ({
|
|
281
|
+
...Ae(e),
|
|
281
282
|
color: e ? "#4338ca" : "#4f46e5",
|
|
282
283
|
fontWeight: 600
|
|
283
|
-
}),
|
|
284
|
+
}), jt = {
|
|
284
285
|
height: 1,
|
|
285
286
|
background: "rgba(0,0,0,0.06)",
|
|
286
287
|
margin: "3px 10px"
|
|
287
288
|
};
|
|
288
|
-
function
|
|
289
|
+
function Gt({
|
|
289
290
|
open: e,
|
|
290
291
|
anchorEl: t,
|
|
291
292
|
statusId: n,
|
|
@@ -294,44 +295,44 @@ function Wt({
|
|
|
294
295
|
overflowActions: s,
|
|
295
296
|
onClose: o
|
|
296
297
|
}) {
|
|
297
|
-
const [l,
|
|
298
|
-
if (!t) return { ...
|
|
299
|
-
const
|
|
298
|
+
const [l, u] = $(null), d = P(null), h = N(() => {
|
|
299
|
+
if (!t) return { ...Ze, top: 0, left: 0 };
|
|
300
|
+
const c = t.getBoundingClientRect();
|
|
300
301
|
return {
|
|
301
|
-
...
|
|
302
|
-
top:
|
|
303
|
-
left:
|
|
302
|
+
...Ze,
|
|
303
|
+
top: c.bottom + 4,
|
|
304
|
+
left: c.left
|
|
304
305
|
};
|
|
305
306
|
}, [t]);
|
|
306
307
|
if (O(() => {
|
|
307
308
|
if (!e) return;
|
|
308
|
-
const
|
|
309
|
-
|
|
309
|
+
const c = (_) => {
|
|
310
|
+
_.key === "Escape" && o();
|
|
310
311
|
};
|
|
311
|
-
return document.addEventListener("keydown",
|
|
312
|
+
return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
|
|
312
313
|
}, [e, o]), O(() => {
|
|
313
314
|
if (!e) return;
|
|
314
|
-
const
|
|
315
|
-
|
|
315
|
+
const c = (_) => {
|
|
316
|
+
d.current && !d.current.contains(_.target) && o();
|
|
316
317
|
};
|
|
317
|
-
return document.addEventListener("pointerdown",
|
|
318
|
+
return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
|
|
318
319
|
}, [e, o]), !e) return null;
|
|
319
|
-
const
|
|
320
|
+
const m = s && s.length > 0, g = /* @__PURE__ */ k(
|
|
320
321
|
"div",
|
|
321
322
|
{
|
|
322
|
-
ref:
|
|
323
|
+
ref: d,
|
|
323
324
|
"data-status-chip-menu": n,
|
|
324
325
|
role: "menu",
|
|
325
326
|
"aria-label": "Status actions",
|
|
326
|
-
style:
|
|
327
|
+
style: h(),
|
|
327
328
|
children: [
|
|
328
329
|
/* @__PURE__ */ r(
|
|
329
330
|
"button",
|
|
330
331
|
{
|
|
331
332
|
role: "menuitem",
|
|
332
|
-
style:
|
|
333
|
-
onMouseEnter: () =>
|
|
334
|
-
onMouseLeave: () =>
|
|
333
|
+
style: Wt(l === "__primary"),
|
|
334
|
+
onMouseEnter: () => u("__primary"),
|
|
335
|
+
onMouseLeave: () => u(null),
|
|
335
336
|
onClick: () => {
|
|
336
337
|
a(n), o();
|
|
337
338
|
},
|
|
@@ -342,60 +343,60 @@ function Wt({
|
|
|
342
343
|
"button",
|
|
343
344
|
{
|
|
344
345
|
role: "menuitem",
|
|
345
|
-
style:
|
|
346
|
-
onMouseEnter: () =>
|
|
347
|
-
onMouseLeave: () =>
|
|
346
|
+
style: Ae(l === "__graph"),
|
|
347
|
+
onMouseEnter: () => u("__graph"),
|
|
348
|
+
onMouseLeave: () => u(null),
|
|
348
349
|
onClick: () => {
|
|
349
350
|
i(n), o();
|
|
350
351
|
},
|
|
351
352
|
children: "Show on graph"
|
|
352
353
|
}
|
|
353
354
|
),
|
|
354
|
-
|
|
355
|
-
|
|
355
|
+
m && /* @__PURE__ */ r("div", { style: jt }),
|
|
356
|
+
m && s?.map((c) => /* @__PURE__ */ r(
|
|
356
357
|
"button",
|
|
357
358
|
{
|
|
358
359
|
role: "menuitem",
|
|
359
|
-
style:
|
|
360
|
-
onMouseEnter: () =>
|
|
361
|
-
onMouseLeave: () =>
|
|
360
|
+
style: Ae(l === c.id),
|
|
361
|
+
onMouseEnter: () => u(c.id),
|
|
362
|
+
onMouseLeave: () => u(null),
|
|
362
363
|
onClick: () => {
|
|
363
|
-
|
|
364
|
+
c.onSelect(n), o();
|
|
364
365
|
},
|
|
365
|
-
children:
|
|
366
|
+
children: c.label
|
|
366
367
|
},
|
|
367
|
-
|
|
368
|
+
c.id
|
|
368
369
|
))
|
|
369
370
|
]
|
|
370
371
|
}
|
|
371
372
|
);
|
|
372
|
-
return
|
|
373
|
+
return Tt(g, document.body);
|
|
373
374
|
}
|
|
374
|
-
|
|
375
|
-
const
|
|
375
|
+
Gt.displayName = "StatusSlotChipMenu";
|
|
376
|
+
const le = {
|
|
376
377
|
forwardStaggerMs: 50,
|
|
377
378
|
reverseStaggerMs: 30,
|
|
378
379
|
springStiffness: 380,
|
|
379
380
|
springDamping: 32,
|
|
380
381
|
reverseVelocityMultiplier: 1.4
|
|
381
|
-
},
|
|
382
|
+
}, fe = {
|
|
382
383
|
enterDurationMs: 220,
|
|
383
384
|
exitDurationMs: 140,
|
|
384
385
|
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
385
386
|
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
386
387
|
translateOffsetPx: 8
|
|
387
|
-
},
|
|
388
|
+
}, Ln = {
|
|
388
389
|
shiverCycles: 3,
|
|
389
390
|
shiverAmplitudePx: 2,
|
|
390
391
|
shiverDurationMs: 180,
|
|
391
392
|
validCellOpacity: 0.6
|
|
392
|
-
},
|
|
393
|
+
}, $n = {
|
|
393
394
|
materializeMs: 180,
|
|
394
395
|
dematerializeMs: 140,
|
|
395
396
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
396
397
|
dotStrokePx: 2,
|
|
397
398
|
dividerDashGapPx: 4
|
|
398
|
-
},
|
|
399
|
+
}, Bn = {
|
|
399
400
|
cascadeStaggerMs: 0,
|
|
400
401
|
cascadeSpringCapMs: 120,
|
|
401
402
|
swingEnterMs: 100,
|
|
@@ -404,7 +405,7 @@ const En = {
|
|
|
404
405
|
provisionalStyle: "opacity",
|
|
405
406
|
shiverMs: 200,
|
|
406
407
|
shiverStyle: "color-flash"
|
|
407
|
-
},
|
|
408
|
+
}, Kn = !0, zn = {
|
|
408
409
|
rejectionFill: "var(--gloss-rejection-fill)",
|
|
409
410
|
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
410
411
|
validFill: "var(--gloss-valid-fill)",
|
|
@@ -412,7 +413,7 @@ const En = {
|
|
|
412
413
|
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
413
414
|
provisionalWash: "var(--gloss-provisional-wash)"
|
|
414
415
|
};
|
|
415
|
-
function
|
|
416
|
+
function nt() {
|
|
416
417
|
if (typeof window > "u") return "full";
|
|
417
418
|
try {
|
|
418
419
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
@@ -420,13 +421,13 @@ function tt() {
|
|
|
420
421
|
return "full";
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
|
-
const
|
|
424
|
+
const Oe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) => {
|
|
424
425
|
const s = {
|
|
425
|
-
"--gloss-swing-enter-ms": `${
|
|
426
|
-
"--gloss-swing-exit-ms": `${
|
|
427
|
-
"--gloss-swing-offset": `${
|
|
428
|
-
"--gloss-swing-enter-easing":
|
|
429
|
-
"--gloss-swing-exit-easing":
|
|
426
|
+
"--gloss-swing-enter-ms": `${fe.enterDurationMs}ms`,
|
|
427
|
+
"--gloss-swing-exit-ms": `${fe.exitDurationMs}ms`,
|
|
428
|
+
"--gloss-swing-offset": `${fe.translateOffsetPx}px`,
|
|
429
|
+
"--gloss-swing-enter-easing": fe.enterEasing,
|
|
430
|
+
"--gloss-swing-exit-easing": fe.exitEasing
|
|
430
431
|
}, o = [
|
|
431
432
|
"gloss-swing-reveal",
|
|
432
433
|
`gloss-swing-reveal--${t}`,
|
|
@@ -444,49 +445,49 @@ const Ee = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
|
|
|
444
445
|
children: a
|
|
445
446
|
}
|
|
446
447
|
);
|
|
447
|
-
},
|
|
448
|
-
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge:
|
|
449
|
-
const
|
|
448
|
+
}, Vt = kt(
|
|
449
|
+
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: u = "right", ariaLabel: d = "Resize card" }, h) {
|
|
450
|
+
const m = t === "handle-visible" || t === "dragging" || t === "settling", g = (b) => {
|
|
450
451
|
try {
|
|
451
452
|
b.currentTarget.setPointerCapture(b.pointerId);
|
|
452
453
|
} catch {
|
|
453
454
|
}
|
|
454
455
|
n(b);
|
|
455
|
-
},
|
|
456
|
+
}, c = (b) => {
|
|
456
457
|
try {
|
|
457
458
|
b.currentTarget.hasPointerCapture?.(b.pointerId) && b.currentTarget.releasePointerCapture(b.pointerId);
|
|
458
459
|
} catch {
|
|
459
460
|
}
|
|
460
461
|
a(b);
|
|
461
|
-
},
|
|
462
|
-
!
|
|
462
|
+
}, _ = (b) => {
|
|
463
|
+
!m || !o || (b.key === "ArrowRight" ? (b.preventDefault(), o("grow")) : b.key === "ArrowLeft" && (b.preventDefault(), o("shrink")));
|
|
463
464
|
};
|
|
464
|
-
return /* @__PURE__ */ r(
|
|
465
|
+
return /* @__PURE__ */ r(Oe, { visible: m, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
|
|
465
466
|
"button",
|
|
466
467
|
{
|
|
467
|
-
ref:
|
|
468
|
+
ref: h,
|
|
468
469
|
type: "button",
|
|
469
|
-
"aria-label":
|
|
470
|
-
"data-edge":
|
|
470
|
+
"aria-label": d,
|
|
471
|
+
"data-edge": u,
|
|
471
472
|
"data-resize-state": t,
|
|
472
473
|
className: [
|
|
473
474
|
"gloss-edge-handle",
|
|
474
|
-
`gloss-edge-handle--${
|
|
475
|
-
|
|
475
|
+
`gloss-edge-handle--${u}`,
|
|
476
|
+
m ? "gloss-edge-handle--visible" : ""
|
|
476
477
|
].filter(Boolean).join(" "),
|
|
477
478
|
onPointerDown: g,
|
|
478
|
-
onPointerUp:
|
|
479
|
+
onPointerUp: c,
|
|
479
480
|
onPointerEnter: i,
|
|
480
481
|
onPointerLeave: s,
|
|
481
482
|
onLostPointerCapture: l,
|
|
482
|
-
onKeyDown:
|
|
483
|
-
tabIndex:
|
|
483
|
+
onKeyDown: _,
|
|
484
|
+
tabIndex: m ? 0 : -1
|
|
484
485
|
}
|
|
485
486
|
) });
|
|
486
487
|
}
|
|
487
488
|
);
|
|
488
|
-
|
|
489
|
-
function
|
|
489
|
+
Vt.displayName = "EdgeHoverHandle";
|
|
490
|
+
function Ht({
|
|
490
491
|
visible: e,
|
|
491
492
|
targetColSpan: t,
|
|
492
493
|
ghostWidth: n,
|
|
@@ -494,7 +495,7 @@ function Gt({
|
|
|
494
495
|
exitMs: i = 120
|
|
495
496
|
}) {
|
|
496
497
|
return /* @__PURE__ */ r(
|
|
497
|
-
|
|
498
|
+
xe.div,
|
|
498
499
|
{
|
|
499
500
|
"aria-hidden": "true",
|
|
500
501
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -510,8 +511,8 @@ function Gt({
|
|
|
510
511
|
}
|
|
511
512
|
);
|
|
512
513
|
}
|
|
513
|
-
|
|
514
|
-
class
|
|
514
|
+
Ht.displayName = "GhostPreview";
|
|
515
|
+
class Ut {
|
|
515
516
|
constructor() {
|
|
516
517
|
this.samples = [], this.capacity = 3;
|
|
517
518
|
}
|
|
@@ -549,14 +550,14 @@ class Vt {
|
|
|
549
550
|
const t = this.samples.length;
|
|
550
551
|
if (t < 2) return 0;
|
|
551
552
|
if (t === 2) {
|
|
552
|
-
const [
|
|
553
|
-
return (
|
|
553
|
+
const [u, d] = this.samples, h = Math.max(1, d.t - u.t);
|
|
554
|
+
return (d.x - u.x) / h * 1e3;
|
|
554
555
|
}
|
|
555
556
|
const [n, a, i] = this.samples, s = (i.x - a.x) / Math.max(1, i.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
|
|
556
557
|
return (s * 3 + o * 2 + l * 1) / 6;
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
const
|
|
560
|
+
const rt = {
|
|
560
561
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
561
562
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
562
563
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -576,7 +577,7 @@ const at = {
|
|
|
576
577
|
// Velocity multiplier (D-03b panel)
|
|
577
578
|
velocityMultiplier: 1
|
|
578
579
|
};
|
|
579
|
-
function
|
|
580
|
+
function Wn({
|
|
580
581
|
currentColSpan: e,
|
|
581
582
|
stackable: t,
|
|
582
583
|
onResize: n,
|
|
@@ -585,59 +586,59 @@ function Kn({
|
|
|
585
586
|
gap: s = 0,
|
|
586
587
|
tuning: o,
|
|
587
588
|
dwellMs: l = 60,
|
|
588
|
-
graceExitMs:
|
|
589
|
-
enterMs:
|
|
590
|
-
exitMs:
|
|
591
|
-
maxColSpan:
|
|
589
|
+
graceExitMs: u = 150,
|
|
590
|
+
enterMs: d = 180,
|
|
591
|
+
exitMs: h = 120,
|
|
592
|
+
maxColSpan: m = 3,
|
|
592
593
|
containerRef: g,
|
|
593
|
-
forceIdle:
|
|
594
|
+
forceIdle: c
|
|
594
595
|
}) {
|
|
595
|
-
const [
|
|
596
|
+
const [_, b] = $("idle"), [f, R] = $(e), I = P(null), y = P(null), M = P(null), x = P(null), p = P(i), v = P(s), D = P(m), T = P(0), w = P("idle");
|
|
596
597
|
O(() => {
|
|
597
|
-
|
|
598
|
-
}, [
|
|
599
|
-
const S =
|
|
600
|
-
const C =
|
|
598
|
+
w.current = _;
|
|
599
|
+
}, [_]);
|
|
600
|
+
const S = St(0), E = P(null), H = N(() => {
|
|
601
|
+
const C = E.current;
|
|
601
602
|
if (C) {
|
|
602
603
|
try {
|
|
603
604
|
C.stop();
|
|
604
605
|
} catch {
|
|
605
606
|
}
|
|
606
|
-
|
|
607
|
+
E.current = null;
|
|
607
608
|
}
|
|
608
|
-
}, []), Y =
|
|
609
|
+
}, []), Y = N(
|
|
609
610
|
(C) => {
|
|
610
|
-
const
|
|
611
|
-
return C *
|
|
611
|
+
const F = p.current, A = v.current;
|
|
612
|
+
return C * F + (C - 1) * A;
|
|
612
613
|
},
|
|
613
614
|
[]
|
|
614
|
-
), U =
|
|
615
|
+
), U = P(new Ut()), j = P(e);
|
|
615
616
|
O(() => {
|
|
616
|
-
j.current =
|
|
617
|
-
}, [
|
|
618
|
-
const B =
|
|
619
|
-
|
|
620
|
-
}, []), L =
|
|
621
|
-
|
|
622
|
-
}, []), J =
|
|
623
|
-
|
|
617
|
+
j.current = f;
|
|
618
|
+
}, [f]);
|
|
619
|
+
const B = Ne(() => ({ ...rt, ...o ?? {} }), [o]), Z = N(() => {
|
|
620
|
+
I.current && (clearTimeout(I.current), I.current = null);
|
|
621
|
+
}, []), L = N(() => {
|
|
622
|
+
y.current && (clearTimeout(y.current), y.current = null);
|
|
623
|
+
}, []), J = N(() => {
|
|
624
|
+
M.current && (clearTimeout(M.current), M.current = null);
|
|
624
625
|
}, []);
|
|
625
626
|
O(() => {
|
|
626
|
-
|
|
627
|
-
}, [
|
|
628
|
-
const
|
|
629
|
-
L(), b((C) => C === "settling" || C !== "idle" ? C : (
|
|
630
|
-
}, [l, L]),
|
|
627
|
+
c && (w.current === "dragging" || w.current === "settling" || w.current !== "idle" && (Z(), L(), J(), w.current = "idle", b("idle")));
|
|
628
|
+
}, [_, c, Z, L, J]);
|
|
629
|
+
const We = N(() => {
|
|
630
|
+
L(), b((C) => C === "settling" || C !== "idle" ? C : (I.current = setTimeout(() => b("handle-visible"), l), "dwelling"));
|
|
631
|
+
}, [l, L]), je = N(() => {
|
|
631
632
|
Z();
|
|
632
|
-
const C =
|
|
633
|
-
C !== "dwelling" && C !== "handle-visible" || (
|
|
634
|
-
|
|
635
|
-
},
|
|
636
|
-
}, [Z,
|
|
637
|
-
(C,
|
|
638
|
-
const K =
|
|
633
|
+
const C = w.current;
|
|
634
|
+
C !== "dwelling" && C !== "handle-visible" || (y.current = setTimeout(() => {
|
|
635
|
+
w.current = "idle", b("idle");
|
|
636
|
+
}, u));
|
|
637
|
+
}, [Z, u]), de = N(
|
|
638
|
+
(C, F, A) => {
|
|
639
|
+
const K = p.current, ee = K * B.snapInFraction, q = K * B.snapOutFraction, z = F - A, G = Math.max(
|
|
639
640
|
A,
|
|
640
|
-
|
|
641
|
+
D.current ?? m
|
|
641
642
|
);
|
|
642
643
|
let W = z;
|
|
643
644
|
for (; A + W < G; ) {
|
|
@@ -653,27 +654,27 @@ function Kn({
|
|
|
653
654
|
}
|
|
654
655
|
return Math.min(G, Math.max(1, A + W));
|
|
655
656
|
},
|
|
656
|
-
[B.snapInFraction, B.snapOutFraction,
|
|
657
|
-
),
|
|
657
|
+
[B.snapInFraction, B.snapOutFraction, m]
|
|
658
|
+
), ht = N(
|
|
658
659
|
(C) => {
|
|
659
|
-
if (
|
|
660
|
-
H(), x.current = C.clientX,
|
|
661
|
-
const
|
|
662
|
-
|
|
660
|
+
if (w.current !== "handle-visible") return;
|
|
661
|
+
H(), x.current = C.clientX, p.current = i, v.current = s, D.current = m;
|
|
662
|
+
const F = e * i + (e - 1) * s;
|
|
663
|
+
T.current = F, U.current.clear(), U.current.push({ x: C.clientX, t: performance.now() }), S.jump(F), w.current = "dragging", b("dragging");
|
|
663
664
|
},
|
|
664
|
-
[i, s,
|
|
665
|
-
),
|
|
666
|
-
(C) => C *
|
|
665
|
+
[i, s, m, e, S, H]
|
|
666
|
+
), Ge = N(
|
|
667
|
+
(C) => C * p.current + (C - 1) * v.current,
|
|
667
668
|
[]
|
|
668
|
-
), oe =
|
|
669
|
-
(C,
|
|
670
|
-
const A =
|
|
669
|
+
), oe = N(
|
|
670
|
+
(C, F) => {
|
|
671
|
+
const A = Ge(C), K = C !== e;
|
|
671
672
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
672
|
-
S.jump(A), K &&
|
|
673
|
+
S.jump(A), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), S.jump(0), w.current = "idle", b("idle");
|
|
673
674
|
return;
|
|
674
675
|
}
|
|
675
676
|
const q = U.current.getWeightedVelocity() * B.velocityMultiplier;
|
|
676
|
-
|
|
677
|
+
w.current = "settling", b("settling"), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), H(), E.current = Ue(S, A, {
|
|
677
678
|
type: "spring",
|
|
678
679
|
stiffness: B.stiffness,
|
|
679
680
|
damping: B.damping,
|
|
@@ -684,125 +685,125 @@ function Kn({
|
|
|
684
685
|
// preserves the spring's perceptual smoothness (ghost retract)
|
|
685
686
|
// while eliminating the stale-frame window.
|
|
686
687
|
onComplete: () => {
|
|
687
|
-
|
|
688
|
+
E.current = null, S.jump(0), w.current = "idle", b("idle");
|
|
688
689
|
}
|
|
689
690
|
});
|
|
690
691
|
},
|
|
691
|
-
[
|
|
692
|
-
),
|
|
692
|
+
[Ge, e, t, n, a, S, B, H]
|
|
693
|
+
), bt = N(
|
|
693
694
|
(C) => {
|
|
694
|
-
if (
|
|
695
|
-
const
|
|
695
|
+
if (w.current !== "dragging") return;
|
|
696
|
+
const F = C.clientX - (x.current ?? C.clientX), A = p.current, ee = ((D.current ?? m) - e) * A, q = (1 - e) * A, z = Math.max(q, Math.min(ee, F));
|
|
696
697
|
U.current.push({ x: C.clientX, t: performance.now() });
|
|
697
|
-
const G =
|
|
698
|
+
const G = de(z, j.current, e), W = G > e ? "grow" : G < e ? "shrink" : null;
|
|
698
699
|
oe(G, W);
|
|
699
700
|
},
|
|
700
|
-
[
|
|
701
|
-
),
|
|
702
|
-
if (Z(),
|
|
703
|
-
const C =
|
|
701
|
+
[de, e, m, oe]
|
|
702
|
+
), ue = N(() => {
|
|
703
|
+
if (Z(), w.current === "dragging") {
|
|
704
|
+
const C = T.current;
|
|
704
705
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
705
|
-
S.jump(C), a?.(), S.jump(0),
|
|
706
|
+
S.jump(C), a?.(), S.jump(0), w.current = "idle", b("idle");
|
|
706
707
|
return;
|
|
707
708
|
}
|
|
708
709
|
const A = U.current.getWeightedVelocity();
|
|
709
|
-
|
|
710
|
+
w.current = "settling", b("settling"), H(), E.current = Ue(S, C, {
|
|
710
711
|
type: "spring",
|
|
711
712
|
stiffness: B.stiffness,
|
|
712
713
|
damping: B.damping,
|
|
713
714
|
mass: B.mass,
|
|
714
715
|
velocity: A,
|
|
715
716
|
onComplete: () => {
|
|
716
|
-
|
|
717
|
+
E.current = null, a?.(), S.jump(0), w.current = "idle", b("idle");
|
|
717
718
|
}
|
|
718
719
|
});
|
|
719
720
|
return;
|
|
720
721
|
}
|
|
721
|
-
|
|
722
|
+
w.current === "handle-visible" && (a?.(), w.current = "cancelled", b("cancelled"));
|
|
722
723
|
}, [Z, S, a, B, H]);
|
|
723
724
|
O(() => {
|
|
724
|
-
if (
|
|
725
|
-
const C = (
|
|
726
|
-
|
|
725
|
+
if (_ !== "dragging" && _ !== "handle-visible") return;
|
|
726
|
+
const C = (F) => {
|
|
727
|
+
F.key === "Escape" && ue();
|
|
727
728
|
};
|
|
728
729
|
return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
|
|
729
|
-
}, [
|
|
730
|
-
if (
|
|
731
|
-
|
|
730
|
+
}, [_, ue]), O(() => {
|
|
731
|
+
if (_ !== "dragging") {
|
|
732
|
+
R(e);
|
|
732
733
|
return;
|
|
733
734
|
}
|
|
734
735
|
const C = (z) => {
|
|
735
|
-
const G = z.clientX - (x.current ?? z.clientX), W =
|
|
736
|
-
S.set(
|
|
737
|
-
const
|
|
736
|
+
const G = z.clientX - (x.current ?? z.clientX), W = T.current, me = Y(1), ae = Y(m), De = W + G, He = Math.max(me, Math.min(ae, De));
|
|
737
|
+
S.set(He);
|
|
738
|
+
const ke = p.current, Re = (m - e) * ke, Me = (1 - e) * ke, ge = Math.max(Me, Math.min(Re, G));
|
|
738
739
|
U.current.push({ x: z.clientX, t: performance.now() });
|
|
739
|
-
const
|
|
740
|
-
|
|
741
|
-
},
|
|
742
|
-
if (
|
|
740
|
+
const pe = de(ge, j.current, e);
|
|
741
|
+
pe !== j.current && (j.current = pe, R(pe));
|
|
742
|
+
}, F = (z, G) => {
|
|
743
|
+
if (w.current === "dragging")
|
|
743
744
|
if (z === "pointerup") {
|
|
744
|
-
const W = U.current.tail(),
|
|
745
|
+
const W = U.current.tail(), me = G?.clientX ?? W?.x ?? x.current ?? 0, ae = me - (x.current ?? me), De = p.current, ke = ((D.current ?? m) - e) * De, Re = (1 - e) * De, Me = Math.max(Re, Math.min(ke, ae));
|
|
745
746
|
G && U.current.push({ x: G.clientX, t: performance.now() });
|
|
746
|
-
const
|
|
747
|
-
oe(
|
|
747
|
+
const ge = de(Me, j.current, e), pe = ge > e ? "grow" : ge < e ? "shrink" : null;
|
|
748
|
+
oe(ge, pe);
|
|
748
749
|
} else
|
|
749
|
-
|
|
750
|
-
}, A = (z) =>
|
|
751
|
-
document.visibilityState === "hidden" &&
|
|
750
|
+
ue();
|
|
751
|
+
}, A = (z) => F("pointerup", z), K = (z) => F("pointercancel", z), ee = () => F("blur"), q = () => {
|
|
752
|
+
document.visibilityState === "hidden" && F("visibility-hidden");
|
|
752
753
|
};
|
|
753
754
|
return window.addEventListener("pointermove", C), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", K), window.addEventListener("blur", ee), document.addEventListener("visibilitychange", q), () => {
|
|
754
755
|
window.removeEventListener("pointermove", C), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", K), window.removeEventListener("blur", ee), document.removeEventListener("visibilitychange", q);
|
|
755
756
|
};
|
|
756
|
-
}, [
|
|
757
|
+
}, [_, e, S, de, m, Y, ue, oe]), O(() => () => {
|
|
757
758
|
Z(), L(), J();
|
|
758
759
|
}, [Z, L, J]), O(() => {
|
|
759
|
-
if (
|
|
760
|
-
const C = setTimeout(() => b("idle"),
|
|
760
|
+
if (_ !== "cancelled") return;
|
|
761
|
+
const C = setTimeout(() => b("idle"), h);
|
|
761
762
|
return () => clearTimeout(C);
|
|
762
|
-
}, [
|
|
763
|
-
const
|
|
763
|
+
}, [_, h]);
|
|
764
|
+
const vt = N(
|
|
764
765
|
(C) => {
|
|
765
|
-
if (
|
|
766
|
-
const A = Math.min(
|
|
766
|
+
if (w.current === "settling") return;
|
|
767
|
+
const A = Math.min(m, Math.max(1, e + (C === "grow" ? 1 : -1)));
|
|
767
768
|
if (A === e) return;
|
|
768
|
-
|
|
769
|
+
p.current = i, v.current = s, D.current = m, U.current.clear();
|
|
769
770
|
const K = e * i + (e - 1) * s;
|
|
770
|
-
|
|
771
|
+
T.current = K, S.jump(K), oe(A, C);
|
|
771
772
|
},
|
|
772
|
-
[e, i, s,
|
|
773
|
-
),
|
|
774
|
-
J(),
|
|
775
|
-
|
|
773
|
+
[e, i, s, m, S, oe]
|
|
774
|
+
), Ve = N(() => {
|
|
775
|
+
J(), M.current = setTimeout(() => {
|
|
776
|
+
w.current === "handle-visible" && (w.current = "idle", b("idle"));
|
|
776
777
|
}, 5e3);
|
|
777
|
-
}, [J]),
|
|
778
|
-
|
|
779
|
-
}, [Z,
|
|
780
|
-
J(),
|
|
778
|
+
}, [J]), yt = N(() => {
|
|
779
|
+
w.current === "idle" && (Z(), w.current = "handle-visible", b("handle-visible"), Ve());
|
|
780
|
+
}, [Z, Ve]), wt = N(() => {
|
|
781
|
+
J(), w.current === "handle-visible" && (w.current = "idle", b("idle"));
|
|
781
782
|
}, [J]);
|
|
782
783
|
return {
|
|
783
|
-
state:
|
|
784
|
-
enterEdgeZone:
|
|
785
|
-
leaveEdgeZone:
|
|
784
|
+
state: _,
|
|
785
|
+
enterEdgeZone: We,
|
|
786
|
+
leaveEdgeZone: je,
|
|
786
787
|
handleProps: {
|
|
787
|
-
onPointerDown:
|
|
788
|
-
onPointerUp:
|
|
788
|
+
onPointerDown: ht,
|
|
789
|
+
onPointerUp: bt,
|
|
789
790
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
790
791
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
791
|
-
onPointerEnter:
|
|
792
|
-
onPointerLeave:
|
|
792
|
+
onPointerEnter: We,
|
|
793
|
+
onPointerLeave: je
|
|
793
794
|
},
|
|
794
|
-
previewColSpan:
|
|
795
|
+
previewColSpan: f,
|
|
795
796
|
ghostProps: {
|
|
796
|
-
visible:
|
|
797
|
-
targetColSpan:
|
|
797
|
+
visible: _ === "dragging" || _ === "settling",
|
|
798
|
+
targetColSpan: f,
|
|
798
799
|
ghostWidth: S,
|
|
799
|
-
enterMs:
|
|
800
|
-
exitMs:
|
|
800
|
+
enterMs: d,
|
|
801
|
+
exitMs: h
|
|
801
802
|
},
|
|
802
|
-
onKeyboardStep:
|
|
803
|
-
onTouchReveal:
|
|
804
|
-
onTouchDismiss:
|
|
805
|
-
cancel:
|
|
803
|
+
onKeyboardStep: vt,
|
|
804
|
+
onTouchReveal: yt,
|
|
805
|
+
onTouchDismiss: wt,
|
|
806
|
+
cancel: ue
|
|
806
807
|
};
|
|
807
808
|
}
|
|
808
809
|
const ie = {
|
|
@@ -830,14 +831,14 @@ const ie = {
|
|
|
830
831
|
sectionDividerFadeOutMs: 80,
|
|
831
832
|
sectionDividerStaggerMs: 40
|
|
832
833
|
};
|
|
833
|
-
function
|
|
834
|
+
function jn(e) {
|
|
834
835
|
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: i } = e;
|
|
835
836
|
if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
|
|
836
837
|
return;
|
|
837
838
|
const s = (a + 0.5) * (t / n);
|
|
838
839
|
return i != null && Number.isFinite(i) && i > 0 ? s - i / 2 : s;
|
|
839
840
|
}
|
|
840
|
-
const
|
|
841
|
+
const Gn = [
|
|
841
842
|
// 1. Standard: Total Revenue
|
|
842
843
|
{
|
|
843
844
|
variant: "standard",
|
|
@@ -969,24 +970,24 @@ const Wn = [
|
|
|
969
970
|
subtitle: "Awaiting QA",
|
|
970
971
|
highlightColor: "neutral"
|
|
971
972
|
}
|
|
972
|
-
],
|
|
973
|
+
], Zt = {
|
|
973
974
|
variant: "standard",
|
|
974
975
|
label: "Total Revenue",
|
|
975
976
|
isLoading: !0
|
|
976
|
-
},
|
|
977
|
+
}, Yt = {
|
|
977
978
|
variant: "standard",
|
|
978
979
|
label: "Total Revenue",
|
|
979
980
|
value: 125430,
|
|
980
981
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
981
982
|
isError: !0
|
|
982
|
-
},
|
|
983
|
+
}, qt = {
|
|
983
984
|
variant: "standard",
|
|
984
985
|
label: "Total Revenue",
|
|
985
986
|
value: null,
|
|
986
987
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
987
988
|
isEmpty: !0,
|
|
988
989
|
subtitle: "No data"
|
|
989
|
-
},
|
|
990
|
+
}, Qt = {
|
|
990
991
|
variant: "standard",
|
|
991
992
|
label: "Total Revenue",
|
|
992
993
|
value: 125430,
|
|
@@ -994,7 +995,7 @@ const Wn = [
|
|
|
994
995
|
trend: { value: 12.5, direction: "up" },
|
|
995
996
|
subtitle: "MTD",
|
|
996
997
|
isStale: !0
|
|
997
|
-
},
|
|
998
|
+
}, Xt = {
|
|
998
999
|
variant: "sparkline",
|
|
999
1000
|
label: "Daily Orders",
|
|
1000
1001
|
value: 847,
|
|
@@ -1003,7 +1004,7 @@ const Wn = [
|
|
|
1003
1004
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
1004
1005
|
accentColor: "#6366f1",
|
|
1005
1006
|
isStale: !0
|
|
1006
|
-
},
|
|
1007
|
+
}, Jt = {
|
|
1007
1008
|
variant: "donut",
|
|
1008
1009
|
label: "Order Fill Rate",
|
|
1009
1010
|
value: 78,
|
|
@@ -1014,14 +1015,14 @@ const Wn = [
|
|
|
1014
1015
|
donutMax: 100,
|
|
1015
1016
|
accentColor: "#10b981",
|
|
1016
1017
|
isStale: !0
|
|
1017
|
-
},
|
|
1018
|
-
Ht,
|
|
1019
|
-
Ut,
|
|
1018
|
+
}, Vn = [
|
|
1020
1019
|
Zt,
|
|
1021
1020
|
Yt,
|
|
1022
1021
|
qt,
|
|
1023
|
-
Qt
|
|
1024
|
-
|
|
1022
|
+
Qt,
|
|
1023
|
+
Xt,
|
|
1024
|
+
Jt
|
|
1025
|
+
], Hn = {
|
|
1025
1026
|
variant: "sparkline",
|
|
1026
1027
|
label: "Daily Orders",
|
|
1027
1028
|
value: 847,
|
|
@@ -1044,7 +1045,7 @@ const Wn = [
|
|
|
1044
1045
|
59
|
|
1045
1046
|
],
|
|
1046
1047
|
accentColor: "#6366f1"
|
|
1047
|
-
},
|
|
1048
|
+
}, Un = {
|
|
1048
1049
|
variant: "sparkline",
|
|
1049
1050
|
label: "New Customers",
|
|
1050
1051
|
value: 23,
|
|
@@ -1083,21 +1084,21 @@ const Wn = [
|
|
|
1083
1084
|
19
|
|
1084
1085
|
],
|
|
1085
1086
|
accentColor: "#10b981"
|
|
1086
|
-
},
|
|
1087
|
+
}, Zn = {
|
|
1087
1088
|
variant: "standard",
|
|
1088
1089
|
label: "Total Revenue",
|
|
1089
1090
|
value: 125430,
|
|
1090
1091
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1091
1092
|
trend: { value: 12.5, direction: "up" },
|
|
1092
1093
|
subtitle: "MTD"
|
|
1093
|
-
},
|
|
1094
|
+
}, Yn = {
|
|
1094
1095
|
variant: "standard",
|
|
1095
1096
|
label: "Returns",
|
|
1096
1097
|
value: 3280,
|
|
1097
1098
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1098
1099
|
trend: { value: -8.3, direction: "down" },
|
|
1099
1100
|
subtitle: "MTD"
|
|
1100
|
-
},
|
|
1101
|
+
}, qn = {
|
|
1101
1102
|
variant: "standard",
|
|
1102
1103
|
label: "Avg Order Value",
|
|
1103
1104
|
value: 487,
|
|
@@ -1105,7 +1106,7 @@ const Wn = [
|
|
|
1105
1106
|
trend: { value: 0, direction: "flat" },
|
|
1106
1107
|
subtitle: "QTD"
|
|
1107
1108
|
};
|
|
1108
|
-
function
|
|
1109
|
+
function st({
|
|
1109
1110
|
open: e,
|
|
1110
1111
|
onDismiss: t,
|
|
1111
1112
|
anchorRef: n,
|
|
@@ -1115,23 +1116,23 @@ function nt({
|
|
|
1115
1116
|
onCreatePage: o,
|
|
1116
1117
|
onManagePages: l
|
|
1117
1118
|
}) {
|
|
1118
|
-
const
|
|
1119
|
+
const u = N(
|
|
1119
1120
|
(g) => {
|
|
1120
1121
|
s(g), t();
|
|
1121
1122
|
},
|
|
1122
1123
|
[s, t]
|
|
1123
|
-
),
|
|
1124
|
-
(g,
|
|
1125
|
-
(
|
|
1124
|
+
), d = N(
|
|
1125
|
+
(g, c) => {
|
|
1126
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), u(g));
|
|
1126
1127
|
},
|
|
1127
|
-
[
|
|
1128
|
-
),
|
|
1128
|
+
[u]
|
|
1129
|
+
), h = N(() => {
|
|
1129
1130
|
o(), t();
|
|
1130
|
-
}, [o, t]),
|
|
1131
|
+
}, [o, t]), m = N(() => {
|
|
1131
1132
|
l(), t();
|
|
1132
1133
|
}, [l, t]);
|
|
1133
|
-
return /* @__PURE__ */
|
|
1134
|
-
|
|
1134
|
+
return /* @__PURE__ */ k(
|
|
1135
|
+
Mt,
|
|
1135
1136
|
{
|
|
1136
1137
|
definition: {
|
|
1137
1138
|
placement: "bottom-end",
|
|
@@ -1145,22 +1146,22 @@ function nt({
|
|
|
1145
1146
|
className: "gloss-page-dropdown",
|
|
1146
1147
|
children: [
|
|
1147
1148
|
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((g) => {
|
|
1148
|
-
const
|
|
1149
|
-
return /* @__PURE__ */
|
|
1149
|
+
const c = g.id === i;
|
|
1150
|
+
return /* @__PURE__ */ k(
|
|
1150
1151
|
"li",
|
|
1151
1152
|
{
|
|
1152
1153
|
role: "menuitemradio",
|
|
1153
|
-
"aria-checked":
|
|
1154
|
-
"aria-current":
|
|
1154
|
+
"aria-checked": c,
|
|
1155
|
+
"aria-current": c ? "page" : void 0,
|
|
1155
1156
|
tabIndex: 0,
|
|
1156
|
-
className: `gloss-page-dropdown__item${
|
|
1157
|
-
onClick: () =>
|
|
1158
|
-
onKeyDown: (
|
|
1157
|
+
className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1158
|
+
onClick: () => u(g.id),
|
|
1159
|
+
onKeyDown: (_) => d(g.id, _),
|
|
1159
1160
|
children: [
|
|
1160
1161
|
/* @__PURE__ */ r(
|
|
1161
1162
|
"span",
|
|
1162
1163
|
{
|
|
1163
|
-
className: `gloss-page-dropdown__dot${
|
|
1164
|
+
className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
|
|
1164
1165
|
}
|
|
1165
1166
|
),
|
|
1166
1167
|
/* @__PURE__ */ r(
|
|
@@ -1182,7 +1183,7 @@ function nt({
|
|
|
1182
1183
|
{
|
|
1183
1184
|
role: "menuitem",
|
|
1184
1185
|
className: "gloss-page-dropdown__action",
|
|
1185
|
-
onClick:
|
|
1186
|
+
onClick: h,
|
|
1186
1187
|
children: "+ New page"
|
|
1187
1188
|
}
|
|
1188
1189
|
),
|
|
@@ -1192,7 +1193,7 @@ function nt({
|
|
|
1192
1193
|
{
|
|
1193
1194
|
role: "menuitem",
|
|
1194
1195
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
1195
|
-
onClick:
|
|
1196
|
+
onClick: m,
|
|
1196
1197
|
children: "Manage pages"
|
|
1197
1198
|
}
|
|
1198
1199
|
)
|
|
@@ -1200,8 +1201,8 @@ function nt({
|
|
|
1200
1201
|
}
|
|
1201
1202
|
);
|
|
1202
1203
|
}
|
|
1203
|
-
|
|
1204
|
-
const
|
|
1204
|
+
st.displayName = "PageDropdown";
|
|
1205
|
+
const ea = function({
|
|
1205
1206
|
currentIndex: t,
|
|
1206
1207
|
total: n,
|
|
1207
1208
|
pages: a,
|
|
@@ -1209,23 +1210,23 @@ const Xt = function({
|
|
|
1209
1210
|
onCreatePage: s,
|
|
1210
1211
|
onManagePages: o,
|
|
1211
1212
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1212
|
-
displayMode:
|
|
1213
|
-
activePage:
|
|
1213
|
+
displayMode: u = "count",
|
|
1214
|
+
activePage: d
|
|
1214
1215
|
}) {
|
|
1215
|
-
const
|
|
1216
|
-
g((
|
|
1217
|
-
}, []),
|
|
1216
|
+
const h = P(null), [m, g] = $(!1), c = N(() => {
|
|
1217
|
+
g((R) => !R);
|
|
1218
|
+
}, []), _ = N(() => {
|
|
1218
1219
|
g(!1);
|
|
1219
1220
|
}, []), b = a[t]?.id ?? "";
|
|
1220
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ k(
|
|
1221
1222
|
"div",
|
|
1222
1223
|
{
|
|
1223
1224
|
className: "gloss-page-chip",
|
|
1224
|
-
ref:
|
|
1225
|
-
style:
|
|
1225
|
+
ref: h,
|
|
1226
|
+
style: u === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
|
|
1226
1227
|
"data-page-chip": !0,
|
|
1227
1228
|
children: [
|
|
1228
|
-
|
|
1229
|
+
u !== "name" && /* @__PURE__ */ r(
|
|
1229
1230
|
"div",
|
|
1230
1231
|
{
|
|
1231
1232
|
className: "gloss-page-chip__nuzzle",
|
|
@@ -1235,15 +1236,15 @@ const Xt = function({
|
|
|
1235
1236
|
/* @__PURE__ */ r(
|
|
1236
1237
|
"button",
|
|
1237
1238
|
{
|
|
1238
|
-
className: `gloss-page-chip__trigger${
|
|
1239
|
+
className: `gloss-page-chip__trigger${u === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1239
1240
|
"aria-haspopup": "menu",
|
|
1240
|
-
"aria-expanded":
|
|
1241
|
-
"aria-label":
|
|
1242
|
-
onClick:
|
|
1243
|
-
children:
|
|
1244
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children:
|
|
1241
|
+
"aria-expanded": m,
|
|
1242
|
+
"aria-label": u === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1243
|
+
onClick: c,
|
|
1244
|
+
children: u === "name" ? /* @__PURE__ */ k(te, { children: [
|
|
1245
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
|
|
1245
1246
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1246
|
-
] }) : /* @__PURE__ */
|
|
1247
|
+
] }) : /* @__PURE__ */ k(te, { children: [
|
|
1247
1248
|
t + 1,
|
|
1248
1249
|
" / ",
|
|
1249
1250
|
n
|
|
@@ -1251,11 +1252,11 @@ const Xt = function({
|
|
|
1251
1252
|
}
|
|
1252
1253
|
),
|
|
1253
1254
|
/* @__PURE__ */ r(
|
|
1254
|
-
|
|
1255
|
+
st,
|
|
1255
1256
|
{
|
|
1256
|
-
open:
|
|
1257
|
-
onDismiss:
|
|
1258
|
-
anchorRef:
|
|
1257
|
+
open: m,
|
|
1258
|
+
onDismiss: _,
|
|
1259
|
+
anchorRef: h,
|
|
1259
1260
|
pages: a,
|
|
1260
1261
|
activePageId: b,
|
|
1261
1262
|
onPageChange: i,
|
|
@@ -1267,8 +1268,8 @@ const Xt = function({
|
|
|
1267
1268
|
}
|
|
1268
1269
|
);
|
|
1269
1270
|
};
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1271
|
+
ea.displayName = "PageChip";
|
|
1272
|
+
const Qn = [
|
|
1272
1273
|
{
|
|
1273
1274
|
id: "ORD-1001",
|
|
1274
1275
|
orderNumber: "ORD-1001",
|
|
@@ -1401,7 +1402,7 @@ const Yn = [
|
|
|
1401
1402
|
date: "2026-03-01",
|
|
1402
1403
|
skuCount: 9
|
|
1403
1404
|
}
|
|
1404
|
-
],
|
|
1405
|
+
], Xn = [
|
|
1405
1406
|
{
|
|
1406
1407
|
id: "ITEM-001",
|
|
1407
1408
|
sku: "PB-4520",
|
|
@@ -1535,16 +1536,16 @@ const Yn = [
|
|
|
1535
1536
|
lastDate: "2026-03-01"
|
|
1536
1537
|
}
|
|
1537
1538
|
];
|
|
1538
|
-
function
|
|
1539
|
+
function Le(e) {
|
|
1539
1540
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1540
1541
|
}
|
|
1541
|
-
function
|
|
1542
|
+
function it(e) {
|
|
1542
1543
|
return e.toLocaleString("en-US");
|
|
1543
1544
|
}
|
|
1544
|
-
function
|
|
1545
|
+
function ot(e) {
|
|
1545
1546
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1546
1547
|
}
|
|
1547
|
-
const
|
|
1548
|
+
const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Jn = [
|
|
1548
1549
|
{
|
|
1549
1550
|
field: "id",
|
|
1550
1551
|
headerName: "Order",
|
|
@@ -1574,7 +1575,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1574
1575
|
align: "right",
|
|
1575
1576
|
headerAlign: "right",
|
|
1576
1577
|
cellClassName: "gloss-tabular-nums",
|
|
1577
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1578
|
+
renderCell: ({ row: e }) => e.skuCount ? it(e.skuCount) : ve
|
|
1578
1579
|
},
|
|
1579
1580
|
{
|
|
1580
1581
|
field: "total",
|
|
@@ -1584,7 +1585,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1584
1585
|
align: "right",
|
|
1585
1586
|
headerAlign: "right",
|
|
1586
1587
|
cellClassName: "gloss-tabular-nums",
|
|
1587
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1588
|
+
renderCell: ({ row: e }) => e.total ? Le(e.total) : ve
|
|
1588
1589
|
},
|
|
1589
1590
|
{
|
|
1590
1591
|
field: "date",
|
|
@@ -1594,9 +1595,9 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1594
1595
|
align: "right",
|
|
1595
1596
|
headerAlign: "right",
|
|
1596
1597
|
cellClassName: "gloss-tabular-nums",
|
|
1597
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1598
|
+
renderCell: ({ row: e }) => e.date ? ot(e.date) : ""
|
|
1598
1599
|
}
|
|
1599
|
-
],
|
|
1600
|
+
], er = [
|
|
1600
1601
|
{
|
|
1601
1602
|
field: "sku",
|
|
1602
1603
|
headerName: "Item ID",
|
|
@@ -1628,7 +1629,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1628
1629
|
align: "right",
|
|
1629
1630
|
headerAlign: "right",
|
|
1630
1631
|
cellClassName: "gloss-tabular-nums",
|
|
1631
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1632
|
+
renderCell: ({ row: e }) => e.price ? Le(e.price) : ve
|
|
1632
1633
|
},
|
|
1633
1634
|
{
|
|
1634
1635
|
field: "quantity",
|
|
@@ -1638,7 +1639,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1638
1639
|
align: "right",
|
|
1639
1640
|
headerAlign: "right",
|
|
1640
1641
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1641
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1642
|
+
renderCell: ({ row: e }) => e.quantity ? it(e.quantity) : ve
|
|
1642
1643
|
},
|
|
1643
1644
|
{
|
|
1644
1645
|
field: "total",
|
|
@@ -1648,7 +1649,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1648
1649
|
align: "right",
|
|
1649
1650
|
headerAlign: "right",
|
|
1650
1651
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1651
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1652
|
+
renderCell: ({ row: e }) => e.total ? Le(e.total) : ve
|
|
1652
1653
|
},
|
|
1653
1654
|
{
|
|
1654
1655
|
field: "lastDate",
|
|
@@ -1658,24 +1659,24 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1658
1659
|
align: "right",
|
|
1659
1660
|
headerAlign: "right",
|
|
1660
1661
|
cellClassName: "gloss-tabular-nums",
|
|
1661
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1662
|
+
renderCell: ({ row: e }) => e.lastDate ? ot(e.lastDate) : ""
|
|
1662
1663
|
}
|
|
1663
|
-
],
|
|
1664
|
+
], ta = [
|
|
1664
1665
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1665
1666
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1666
1667
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1667
1668
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1668
1669
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1669
|
-
],
|
|
1670
|
+
], aa = [
|
|
1670
1671
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1671
1672
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1672
1673
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1673
1674
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1674
1675
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1675
|
-
],
|
|
1676
|
-
},
|
|
1677
|
-
},
|
|
1678
|
-
},
|
|
1676
|
+
], Te = (e) => {
|
|
1677
|
+
}, na = (e) => {
|
|
1678
|
+
}, Ye = (e, t) => {
|
|
1679
|
+
}, lt = {
|
|
1679
1680
|
vizState: {
|
|
1680
1681
|
type: "orders",
|
|
1681
1682
|
quant: "$",
|
|
@@ -1683,17 +1684,17 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1683
1684
|
byItem: { id: null, name: null },
|
|
1684
1685
|
timeFrame: "MTD"
|
|
1685
1686
|
},
|
|
1686
|
-
onTypeChange:
|
|
1687
|
-
onQuantChange:
|
|
1688
|
-
onEntityTypeChange:
|
|
1689
|
-
onEntitySelect:
|
|
1690
|
-
onItemSelect:
|
|
1691
|
-
onTimeFrameChange:
|
|
1687
|
+
onTypeChange: Te,
|
|
1688
|
+
onQuantChange: na,
|
|
1689
|
+
onEntityTypeChange: Te,
|
|
1690
|
+
onEntitySelect: Ye,
|
|
1691
|
+
onItemSelect: Ye,
|
|
1692
|
+
onTimeFrameChange: Te,
|
|
1692
1693
|
userType: "sales-agency",
|
|
1693
|
-
entityFilterOptions:
|
|
1694
|
-
itemFilterOptions:
|
|
1695
|
-
},
|
|
1696
|
-
...
|
|
1694
|
+
entityFilterOptions: ta,
|
|
1695
|
+
itemFilterOptions: aa
|
|
1696
|
+
}, tr = {
|
|
1697
|
+
...lt,
|
|
1697
1698
|
vizState: {
|
|
1698
1699
|
type: "items",
|
|
1699
1700
|
quant: "$",
|
|
@@ -1701,8 +1702,8 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1701
1702
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1702
1703
|
timeFrame: "YTD"
|
|
1703
1704
|
}
|
|
1704
|
-
},
|
|
1705
|
-
...
|
|
1705
|
+
}, ar = {
|
|
1706
|
+
...lt,
|
|
1706
1707
|
vizState: {
|
|
1707
1708
|
type: "orders",
|
|
1708
1709
|
quant: "#",
|
|
@@ -1714,7 +1715,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1714
1715
|
entityFilterOptions: [
|
|
1715
1716
|
{ id: "customers", label: "Customers" }
|
|
1716
1717
|
]
|
|
1717
|
-
},
|
|
1718
|
+
}, ra = [
|
|
1718
1719
|
{
|
|
1719
1720
|
id: "recent-orders",
|
|
1720
1721
|
label: "Recent Orders",
|
|
@@ -1760,7 +1761,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1760
1761
|
routeKey: "customer.profile",
|
|
1761
1762
|
subtitle: "Opens in RepTime"
|
|
1762
1763
|
}
|
|
1763
|
-
],
|
|
1764
|
+
], sa = [
|
|
1764
1765
|
{
|
|
1765
1766
|
id: "order-items",
|
|
1766
1767
|
label: "Items in Order",
|
|
@@ -1789,7 +1790,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1789
1790
|
cellKinds: ["orderId"],
|
|
1790
1791
|
graphType: "timeline"
|
|
1791
1792
|
}
|
|
1792
|
-
],
|
|
1793
|
+
], ia = [
|
|
1793
1794
|
{
|
|
1794
1795
|
id: "graph-metric",
|
|
1795
1796
|
label: "Graph This Metric",
|
|
@@ -1817,14 +1818,14 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1817
1818
|
cellKinds: ["numeric"],
|
|
1818
1819
|
tabType: "orders"
|
|
1819
1820
|
}
|
|
1820
|
-
],
|
|
1821
|
-
entityName:
|
|
1822
|
-
orderId:
|
|
1823
|
-
numeric:
|
|
1824
|
-
},
|
|
1821
|
+
], nr = {
|
|
1822
|
+
entityName: ra,
|
|
1823
|
+
orderId: sa,
|
|
1824
|
+
numeric: ia
|
|
1825
|
+
}, rr = [
|
|
1825
1826
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1826
1827
|
/* @__PURE__ */ new Date()
|
|
1827
|
-
],
|
|
1828
|
+
], sr = {
|
|
1828
1829
|
rangeA: [
|
|
1829
1830
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1830
1831
|
/* @__PURE__ */ new Date()
|
|
@@ -1837,7 +1838,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1837
1838
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1838
1839
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1839
1840
|
]
|
|
1840
|
-
},
|
|
1841
|
+
}, ir = {
|
|
1841
1842
|
version: 4,
|
|
1842
1843
|
lastPreset: "mtd",
|
|
1843
1844
|
pinnedPreset: "mtd",
|
|
@@ -1845,7 +1846,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1845
1846
|
rangeCount: 1,
|
|
1846
1847
|
lastPresetB: null,
|
|
1847
1848
|
lastPresetC: null
|
|
1848
|
-
},
|
|
1849
|
+
}, or = [
|
|
1849
1850
|
{
|
|
1850
1851
|
id: "atlanta-jan",
|
|
1851
1852
|
label: "Atlanta Market",
|
|
@@ -1867,7 +1868,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1867
1868
|
endDate: new Date(2026, 3, 22),
|
|
1868
1869
|
location: "Chicago, IL"
|
|
1869
1870
|
}
|
|
1870
|
-
],
|
|
1871
|
+
], lr = [
|
|
1871
1872
|
{
|
|
1872
1873
|
id: "custom-regional-1",
|
|
1873
1874
|
label: "Southeast Regional Expo",
|
|
@@ -1884,7 +1885,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1884
1885
|
location: "Portland, OR",
|
|
1885
1886
|
isCustom: !0
|
|
1886
1887
|
}
|
|
1887
|
-
],
|
|
1888
|
+
], cr = [
|
|
1888
1889
|
{
|
|
1889
1890
|
id: "atlanta-jan",
|
|
1890
1891
|
label: "Atlanta Market",
|
|
@@ -1901,35 +1902,35 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1901
1902
|
location: "New York, NY",
|
|
1902
1903
|
active: !0
|
|
1903
1904
|
}
|
|
1904
|
-
],
|
|
1905
|
+
], dr = [
|
|
1905
1906
|
{ id: "7d", label: "7D" },
|
|
1906
1907
|
{ id: "30d", label: "30D" },
|
|
1907
1908
|
{ id: "60d", label: "60D" },
|
|
1908
1909
|
{ id: "90d", label: "90D" }
|
|
1909
|
-
],
|
|
1910
|
+
], ur = [
|
|
1910
1911
|
{ id: "mtd", label: "MTD" },
|
|
1911
1912
|
{ id: "qtd", label: "QTD" },
|
|
1912
1913
|
{ id: "ytd", label: "YTD" },
|
|
1913
1914
|
{ id: "lytd", label: "LYTD" }
|
|
1914
|
-
],
|
|
1915
|
+
], oa = {
|
|
1915
1916
|
timeframe: "Time Frame",
|
|
1916
1917
|
threshold: "Thresholds",
|
|
1917
1918
|
slots: "Slots",
|
|
1918
1919
|
size: "Size",
|
|
1919
1920
|
color: "Color",
|
|
1920
1921
|
pinned: "Pinned"
|
|
1921
|
-
},
|
|
1922
|
-
timeframe:
|
|
1923
|
-
threshold:
|
|
1924
|
-
slots:
|
|
1925
|
-
size:
|
|
1926
|
-
color:
|
|
1927
|
-
pinned:
|
|
1922
|
+
}, la = {
|
|
1923
|
+
timeframe: It,
|
|
1924
|
+
threshold: Pt,
|
|
1925
|
+
slots: Et,
|
|
1926
|
+
size: Ft,
|
|
1927
|
+
color: At,
|
|
1928
|
+
pinned: Ot
|
|
1928
1929
|
};
|
|
1929
|
-
function
|
|
1930
|
+
function qe(...e) {
|
|
1930
1931
|
return e.filter(Boolean).join(" ");
|
|
1931
1932
|
}
|
|
1932
|
-
function
|
|
1933
|
+
function ca() {
|
|
1933
1934
|
const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1934
1935
|
return O(() => {
|
|
1935
1936
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
@@ -1939,29 +1940,29 @@ function oa() {
|
|
|
1939
1940
|
});
|
|
1940
1941
|
}, []), e;
|
|
1941
1942
|
}
|
|
1942
|
-
const
|
|
1943
|
+
const da = ({
|
|
1943
1944
|
dimensions: e,
|
|
1944
1945
|
onDimensionSelect: t,
|
|
1945
1946
|
activeDimension: n,
|
|
1946
1947
|
ariaCardTypeLabel: a,
|
|
1947
1948
|
className: i
|
|
1948
1949
|
}) => {
|
|
1949
|
-
const s =
|
|
1950
|
-
if (
|
|
1951
|
-
const
|
|
1952
|
-
const
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1950
|
+
const s = P(null), o = P([]), l = ca(), u = Ne(() => Array.from(e), [e]);
|
|
1951
|
+
if (u.length === 0) return null;
|
|
1952
|
+
const d = a ? `Configure ${a}: choose a dimension` : void 0, h = l ? "10ms" : "200ms", m = (g, c) => {
|
|
1953
|
+
const _ = u.length - 1, b = (f) => {
|
|
1954
|
+
const R = o.current[f];
|
|
1955
|
+
R && R.focus();
|
|
1955
1956
|
};
|
|
1956
1957
|
switch (g.key) {
|
|
1957
1958
|
case "ArrowRight":
|
|
1958
1959
|
case "ArrowDown": {
|
|
1959
|
-
g.preventDefault(), b(
|
|
1960
|
+
g.preventDefault(), b(c === _ ? 0 : c + 1);
|
|
1960
1961
|
break;
|
|
1961
1962
|
}
|
|
1962
1963
|
case "ArrowLeft":
|
|
1963
1964
|
case "ArrowUp": {
|
|
1964
|
-
g.preventDefault(), b(
|
|
1965
|
+
g.preventDefault(), b(c === 0 ? _ : c - 1);
|
|
1965
1966
|
break;
|
|
1966
1967
|
}
|
|
1967
1968
|
case "Home": {
|
|
@@ -1969,12 +1970,12 @@ const la = ({
|
|
|
1969
1970
|
break;
|
|
1970
1971
|
}
|
|
1971
1972
|
case "End": {
|
|
1972
|
-
g.preventDefault(), b(
|
|
1973
|
+
g.preventDefault(), b(_);
|
|
1973
1974
|
break;
|
|
1974
1975
|
}
|
|
1975
1976
|
case "Enter":
|
|
1976
1977
|
case " ": {
|
|
1977
|
-
g.preventDefault(), t(
|
|
1978
|
+
g.preventDefault(), t(u[c]);
|
|
1978
1979
|
break;
|
|
1979
1980
|
}
|
|
1980
1981
|
}
|
|
@@ -1984,40 +1985,40 @@ const la = ({
|
|
|
1984
1985
|
{
|
|
1985
1986
|
ref: s,
|
|
1986
1987
|
role: "group",
|
|
1987
|
-
"aria-label":
|
|
1988
|
-
className:
|
|
1988
|
+
"aria-label": d,
|
|
1989
|
+
className: qe("gloss-reconfig-backside-buttons", i),
|
|
1989
1990
|
style: {
|
|
1990
1991
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1991
1992
|
// so the SCSS transition rule can consume it without a nested media
|
|
1992
1993
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1993
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
1994
|
+
"--gloss-reconfig-backside-buttons-transition-duration": h
|
|
1994
1995
|
},
|
|
1995
|
-
children:
|
|
1996
|
-
const
|
|
1997
|
-
return /* @__PURE__ */
|
|
1996
|
+
children: u.map((g, c) => {
|
|
1997
|
+
const _ = la[g], b = n === g;
|
|
1998
|
+
return /* @__PURE__ */ k(
|
|
1998
1999
|
"button",
|
|
1999
2000
|
{
|
|
2000
|
-
ref: (
|
|
2001
|
-
o.current[
|
|
2001
|
+
ref: (f) => {
|
|
2002
|
+
o.current[c] = f;
|
|
2002
2003
|
},
|
|
2003
2004
|
type: "button",
|
|
2004
2005
|
"data-dimension": g,
|
|
2005
|
-
className:
|
|
2006
|
+
className: qe(
|
|
2006
2007
|
"gloss-reconfig-backside-buttons__button",
|
|
2007
2008
|
b && "gloss-reconfig-backside-buttons__button--active"
|
|
2008
2009
|
),
|
|
2009
2010
|
"aria-current": b ? "true" : void 0,
|
|
2010
2011
|
onClick: () => t(g),
|
|
2011
|
-
onKeyDown: (
|
|
2012
|
+
onKeyDown: (f) => m(f, c),
|
|
2012
2013
|
children: [
|
|
2013
2014
|
/* @__PURE__ */ r(
|
|
2014
|
-
|
|
2015
|
+
_,
|
|
2015
2016
|
{
|
|
2016
2017
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
2017
2018
|
"aria-hidden": "true"
|
|
2018
2019
|
}
|
|
2019
2020
|
),
|
|
2020
|
-
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children:
|
|
2021
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: oa[g] })
|
|
2021
2022
|
]
|
|
2022
2023
|
},
|
|
2023
2024
|
g
|
|
@@ -2026,7 +2027,7 @@ const la = ({
|
|
|
2026
2027
|
}
|
|
2027
2028
|
);
|
|
2028
2029
|
};
|
|
2029
|
-
|
|
2030
|
+
da.displayName = "ReconfigBacksideButtons";
|
|
2030
2031
|
function Q(e, t) {
|
|
2031
2032
|
return {
|
|
2032
2033
|
id: e,
|
|
@@ -2047,38 +2048,38 @@ function Q(e, t) {
|
|
|
2047
2048
|
}, t)
|
|
2048
2049
|
};
|
|
2049
2050
|
}
|
|
2050
|
-
function
|
|
2051
|
+
function Qe(e, t) {
|
|
2051
2052
|
return {
|
|
2052
2053
|
...Q(e, t),
|
|
2053
2054
|
colSpan: 2
|
|
2054
2055
|
};
|
|
2055
2056
|
}
|
|
2056
|
-
const
|
|
2057
|
+
const mr = [
|
|
2057
2058
|
Q("total-revenue", "Total Revenue"),
|
|
2058
2059
|
Q("total-orders", "Total Orders"),
|
|
2059
|
-
|
|
2060
|
+
Qe("revenue-trend", "Revenue Trend (2x)"),
|
|
2060
2061
|
Q("avg-order", "Avg Order Value"),
|
|
2061
2062
|
Q("new-customers", "New Customers"),
|
|
2062
2063
|
Q("top-salesperson", "Top Salesperson"),
|
|
2063
|
-
|
|
2064
|
+
Qe("order-trend", "Order Trend (2x)"),
|
|
2064
2065
|
Q("repeat-rate", "Repeat Rate"),
|
|
2065
2066
|
Q("open-orders", "Open Orders"),
|
|
2066
2067
|
Q("shipped-orders", "Shipped Orders")
|
|
2067
|
-
],
|
|
2068
|
+
], gr = {
|
|
2068
2069
|
columns: 6,
|
|
2069
2070
|
rowHeight: 120,
|
|
2070
2071
|
gap: 15,
|
|
2071
2072
|
maxRows: 3,
|
|
2072
2073
|
currentPage: 0,
|
|
2073
2074
|
totalPages: 1
|
|
2074
|
-
},
|
|
2075
|
+
}, pr = {
|
|
2075
2076
|
columns: 9,
|
|
2076
2077
|
rowHeight: 120,
|
|
2077
2078
|
gap: 15,
|
|
2078
2079
|
maxRows: 3,
|
|
2079
2080
|
currentPage: 0,
|
|
2080
2081
|
totalPages: 2
|
|
2081
|
-
},
|
|
2082
|
+
}, fr = {
|
|
2082
2083
|
columns: 12,
|
|
2083
2084
|
rowHeight: 120,
|
|
2084
2085
|
gap: 15,
|
|
@@ -2086,15 +2087,15 @@ const dr = [
|
|
|
2086
2087
|
currentPage: 0,
|
|
2087
2088
|
totalPages: 3
|
|
2088
2089
|
};
|
|
2089
|
-
function
|
|
2090
|
+
function Ie(e) {
|
|
2090
2091
|
return V.createElement("span", { style: { fontSize: 14 } }, e);
|
|
2091
2092
|
}
|
|
2092
|
-
const
|
|
2093
|
+
const hr = [
|
|
2093
2094
|
{
|
|
2094
2095
|
id: "all-orders",
|
|
2095
2096
|
type: "orders",
|
|
2096
2097
|
name: "All Orders",
|
|
2097
|
-
icon:
|
|
2098
|
+
icon: Ie("📋"),
|
|
2098
2099
|
closable: !1,
|
|
2099
2100
|
autoCreated: !0
|
|
2100
2101
|
},
|
|
@@ -2102,17 +2103,17 @@ const pr = [
|
|
|
2102
2103
|
id: "open-orders",
|
|
2103
2104
|
type: "orders",
|
|
2104
2105
|
name: "Open Orders",
|
|
2105
|
-
icon:
|
|
2106
|
+
icon: Ie("📦"),
|
|
2106
2107
|
closable: !0
|
|
2107
2108
|
},
|
|
2108
2109
|
{
|
|
2109
2110
|
id: "shipped-orders",
|
|
2110
2111
|
type: "orders",
|
|
2111
2112
|
name: "Shipped Orders",
|
|
2112
|
-
icon:
|
|
2113
|
+
icon: Ie("🚚"),
|
|
2113
2114
|
closable: !0
|
|
2114
2115
|
}
|
|
2115
|
-
],
|
|
2116
|
+
], br = [
|
|
2116
2117
|
{
|
|
2117
2118
|
id: "orders-main",
|
|
2118
2119
|
type: "orders",
|
|
@@ -2138,7 +2139,7 @@ const pr = [
|
|
|
2138
2139
|
name: "Customers",
|
|
2139
2140
|
closable: !0
|
|
2140
2141
|
}
|
|
2141
|
-
],
|
|
2142
|
+
], vr = [
|
|
2142
2143
|
{
|
|
2143
2144
|
id: "only-tab",
|
|
2144
2145
|
type: "orders",
|
|
@@ -2146,7 +2147,7 @@ const pr = [
|
|
|
2146
2147
|
closable: !1,
|
|
2147
2148
|
autoCreated: !0
|
|
2148
2149
|
}
|
|
2149
|
-
],
|
|
2150
|
+
], yr = [
|
|
2150
2151
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
2151
2152
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
2152
2153
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -2158,7 +2159,7 @@ const pr = [
|
|
|
2158
2159
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
2159
2160
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
2160
2161
|
];
|
|
2161
|
-
function
|
|
2162
|
+
function $e(e) {
|
|
2162
2163
|
switch (e) {
|
|
2163
2164
|
case "wide":
|
|
2164
2165
|
return { cols: 2, rows: 1 };
|
|
@@ -2169,15 +2170,15 @@ function Oe(e) {
|
|
|
2169
2170
|
return { cols: 1, rows: 1 };
|
|
2170
2171
|
}
|
|
2171
2172
|
}
|
|
2172
|
-
function
|
|
2173
|
+
function ua(e) {
|
|
2173
2174
|
let t = 0;
|
|
2174
2175
|
for (const a of e) {
|
|
2175
|
-
const i =
|
|
2176
|
+
const i = $e(a.size), s = a.gridPosition.col + i.cols - 1;
|
|
2176
2177
|
s > t && (t = s);
|
|
2177
2178
|
}
|
|
2178
2179
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
2179
2180
|
}
|
|
2180
|
-
const
|
|
2181
|
+
const ma = function(t) {
|
|
2181
2182
|
if (t.renderMode === "discrete")
|
|
2182
2183
|
return /* @__PURE__ */ r(
|
|
2183
2184
|
"div",
|
|
@@ -2185,7 +2186,7 @@ const da = function(t) {
|
|
|
2185
2186
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
2186
2187
|
style: { display: "contents" },
|
|
2187
2188
|
children: t.cards.map((i) => {
|
|
2188
|
-
const s =
|
|
2189
|
+
const s = $e(i.size);
|
|
2189
2190
|
return /* @__PURE__ */ r(
|
|
2190
2191
|
"div",
|
|
2191
2192
|
{
|
|
@@ -2202,7 +2203,7 @@ const da = function(t) {
|
|
|
2202
2203
|
}
|
|
2203
2204
|
);
|
|
2204
2205
|
const { cards: n, composite: a } = t;
|
|
2205
|
-
return /* @__PURE__ */
|
|
2206
|
+
return /* @__PURE__ */ k(
|
|
2206
2207
|
"div",
|
|
2207
2208
|
{
|
|
2208
2209
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -2228,7 +2229,7 @@ const da = function(t) {
|
|
|
2228
2229
|
style: { background: a.accentColor }
|
|
2229
2230
|
}
|
|
2230
2231
|
),
|
|
2231
|
-
a?.label && /* @__PURE__ */
|
|
2232
|
+
a?.label && /* @__PURE__ */ k("div", { className: "gloss-metric-group__label", children: [
|
|
2232
2233
|
/* @__PURE__ */ r("span", { children: a.label }),
|
|
2233
2234
|
a?.trend && /* @__PURE__ */ r(
|
|
2234
2235
|
"span",
|
|
@@ -2246,10 +2247,10 @@ const da = function(t) {
|
|
|
2246
2247
|
style: {
|
|
2247
2248
|
display: "grid",
|
|
2248
2249
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2249
|
-
gridTemplateColumns:
|
|
2250
|
+
gridTemplateColumns: ua(n)
|
|
2250
2251
|
},
|
|
2251
2252
|
children: n.map((i) => {
|
|
2252
|
-
const s =
|
|
2253
|
+
const s = $e(i.size);
|
|
2253
2254
|
return /* @__PURE__ */ r(
|
|
2254
2255
|
"div",
|
|
2255
2256
|
{
|
|
@@ -2269,16 +2270,16 @@ const da = function(t) {
|
|
|
2269
2270
|
}
|
|
2270
2271
|
);
|
|
2271
2272
|
};
|
|
2272
|
-
|
|
2273
|
-
const
|
|
2274
|
-
...
|
|
2273
|
+
ma.displayName = "MetricGroupContainer";
|
|
2274
|
+
const ct = "resize.tuning.dev", ga = {
|
|
2275
|
+
...rt,
|
|
2275
2276
|
snapInPx: 60,
|
|
2276
2277
|
snapOutPx: 90
|
|
2277
|
-
}, re =
|
|
2278
|
-
function
|
|
2278
|
+
}, re = ga;
|
|
2279
|
+
function pa() {
|
|
2279
2280
|
if (typeof window > "u") return { ...re };
|
|
2280
2281
|
try {
|
|
2281
|
-
const e = window.localStorage.getItem(
|
|
2282
|
+
const e = window.localStorage.getItem(ct);
|
|
2282
2283
|
if (!e) return { ...re };
|
|
2283
2284
|
const t = JSON.parse(e);
|
|
2284
2285
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...re } : { ...re, ...t };
|
|
@@ -2286,31 +2287,31 @@ function ma() {
|
|
|
2286
2287
|
return { ...re };
|
|
2287
2288
|
}
|
|
2288
2289
|
}
|
|
2289
|
-
function
|
|
2290
|
-
const [e, t] = $(() =>
|
|
2290
|
+
function fa() {
|
|
2291
|
+
const [e, t] = $(() => pa());
|
|
2291
2292
|
O(() => {
|
|
2292
2293
|
if (!(typeof window > "u"))
|
|
2293
2294
|
try {
|
|
2294
|
-
window.localStorage.setItem(
|
|
2295
|
+
window.localStorage.setItem(ct, JSON.stringify(e));
|
|
2295
2296
|
} catch {
|
|
2296
2297
|
}
|
|
2297
2298
|
}, [e]);
|
|
2298
|
-
const n =
|
|
2299
|
+
const n = N(
|
|
2299
2300
|
(s, o) => {
|
|
2300
2301
|
t((l) => ({ ...l, [s]: o }));
|
|
2301
2302
|
},
|
|
2302
2303
|
[]
|
|
2303
|
-
), a =
|
|
2304
|
+
), a = N(
|
|
2304
2305
|
(s) => {
|
|
2305
2306
|
t((o) => ({ ...o, [s]: re[s] }));
|
|
2306
2307
|
},
|
|
2307
2308
|
[]
|
|
2308
|
-
), i =
|
|
2309
|
+
), i = N(() => {
|
|
2309
2310
|
t({ ...re });
|
|
2310
2311
|
}, []);
|
|
2311
2312
|
return { values: e, setValue: n, resetRow: a, resetAll: i };
|
|
2312
2313
|
}
|
|
2313
|
-
const
|
|
2314
|
+
const ha = [
|
|
2314
2315
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2315
2316
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2316
2317
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2321,11 +2322,11 @@ const pa = [
|
|
|
2321
2322
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2322
2323
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2323
2324
|
];
|
|
2324
|
-
function
|
|
2325
|
+
function ba(e, t) {
|
|
2325
2326
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2326
2327
|
}
|
|
2327
|
-
function
|
|
2328
|
-
return /* @__PURE__ */
|
|
2328
|
+
function va() {
|
|
2329
|
+
return /* @__PURE__ */ k(
|
|
2329
2330
|
"svg",
|
|
2330
2331
|
{
|
|
2331
2332
|
width: "14",
|
|
@@ -2344,14 +2345,14 @@ function fa() {
|
|
|
2344
2345
|
}
|
|
2345
2346
|
);
|
|
2346
2347
|
}
|
|
2347
|
-
function
|
|
2348
|
-
const s =
|
|
2348
|
+
function ya({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
2349
|
+
const s = N(
|
|
2349
2350
|
(o) => {
|
|
2350
2351
|
(o.key === "r" || o.key === "R") && (o.preventDefault(), a());
|
|
2351
2352
|
},
|
|
2352
2353
|
[a]
|
|
2353
2354
|
);
|
|
2354
|
-
return /* @__PURE__ */
|
|
2355
|
+
return /* @__PURE__ */ k(
|
|
2355
2356
|
"div",
|
|
2356
2357
|
{
|
|
2357
2358
|
className: `gloss-dev-tuning-panel__row${i ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
@@ -2359,8 +2360,8 @@ function ba({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
|
2359
2360
|
onKeyDown: s,
|
|
2360
2361
|
children: [
|
|
2361
2362
|
/* @__PURE__ */ r("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
|
|
2363
|
+
/* @__PURE__ */ k("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2364
|
+
ba(t, e.step),
|
|
2364
2365
|
e.unit ? ` ${e.unit}` : ""
|
|
2365
2366
|
] }),
|
|
2366
2367
|
/* @__PURE__ */ r(
|
|
@@ -2384,14 +2385,14 @@ function ba({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
|
2384
2385
|
className: "gloss-dev-tuning-panel__reset",
|
|
2385
2386
|
"aria-label": `Reset ${e.label}`,
|
|
2386
2387
|
onClick: a,
|
|
2387
|
-
children: /* @__PURE__ */ r(
|
|
2388
|
+
children: /* @__PURE__ */ r(va, {})
|
|
2388
2389
|
}
|
|
2389
2390
|
)
|
|
2390
2391
|
]
|
|
2391
2392
|
}
|
|
2392
2393
|
);
|
|
2393
2394
|
}
|
|
2394
|
-
function
|
|
2395
|
+
function wa() {
|
|
2395
2396
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2396
2397
|
try {
|
|
2397
2398
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2399,23 +2400,23 @@ function va() {
|
|
|
2399
2400
|
return !1;
|
|
2400
2401
|
}
|
|
2401
2402
|
}
|
|
2402
|
-
function
|
|
2403
|
-
return
|
|
2403
|
+
function _a(e = {}) {
|
|
2404
|
+
return wa() ? /* @__PURE__ */ r(Na, {}) : null;
|
|
2404
2405
|
}
|
|
2405
|
-
|
|
2406
|
-
function
|
|
2407
|
-
const e =
|
|
2406
|
+
_a.displayName = "DevTuningPanel";
|
|
2407
|
+
function Na() {
|
|
2408
|
+
const e = fa(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = P(null), u = N((g) => {
|
|
2408
2409
|
l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => {
|
|
2409
2410
|
o(null), l.current = null;
|
|
2410
2411
|
}, 200);
|
|
2411
|
-
}, []),
|
|
2412
|
-
(g,
|
|
2413
|
-
n(g,
|
|
2412
|
+
}, []), d = N(
|
|
2413
|
+
(g, c) => {
|
|
2414
|
+
n(g, c), g === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), u("snapOutPx"));
|
|
2414
2415
|
},
|
|
2415
|
-
[n, t.snapOutPx,
|
|
2416
|
-
),
|
|
2417
|
-
return /* @__PURE__ */
|
|
2418
|
-
|
|
2416
|
+
[n, t.snapOutPx, u]
|
|
2417
|
+
), h = Ne(() => ha, []), m = Rt();
|
|
2418
|
+
return /* @__PURE__ */ k(
|
|
2419
|
+
xe.div,
|
|
2419
2420
|
{
|
|
2420
2421
|
className: "gloss-dev-tuning-panel",
|
|
2421
2422
|
role: "region",
|
|
@@ -2423,26 +2424,26 @@ function wa() {
|
|
|
2423
2424
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2424
2425
|
drag: !0,
|
|
2425
2426
|
dragListener: !1,
|
|
2426
|
-
dragControls:
|
|
2427
|
+
dragControls: m,
|
|
2427
2428
|
dragMomentum: !1,
|
|
2428
2429
|
children: [
|
|
2429
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ k(
|
|
2430
2431
|
"div",
|
|
2431
2432
|
{
|
|
2432
2433
|
className: "gloss-dev-tuning-panel__header",
|
|
2433
|
-
onPointerDown: (g) =>
|
|
2434
|
+
onPointerDown: (g) => m.start(g),
|
|
2434
2435
|
children: [
|
|
2435
2436
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2436
2437
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2437
2438
|
]
|
|
2438
2439
|
}
|
|
2439
2440
|
),
|
|
2440
|
-
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children:
|
|
2441
|
-
|
|
2441
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: h.map((g) => /* @__PURE__ */ r(
|
|
2442
|
+
ya,
|
|
2442
2443
|
{
|
|
2443
2444
|
spec: g,
|
|
2444
2445
|
value: t[g.key],
|
|
2445
|
-
onChange: (
|
|
2446
|
+
onChange: (c) => d(g.key, c),
|
|
2446
2447
|
onReset: () => a(g.key),
|
|
2447
2448
|
flashing: s === g.key
|
|
2448
2449
|
},
|
|
@@ -2461,7 +2462,7 @@ function wa() {
|
|
|
2461
2462
|
}
|
|
2462
2463
|
);
|
|
2463
2464
|
}
|
|
2464
|
-
function
|
|
2465
|
+
function wr({
|
|
2465
2466
|
state: e,
|
|
2466
2467
|
originX: t,
|
|
2467
2468
|
originY: n,
|
|
@@ -2470,28 +2471,28 @@ function vr({
|
|
|
2470
2471
|
minBoundaryX: s,
|
|
2471
2472
|
snapBoundariesX: o,
|
|
2472
2473
|
topY: l,
|
|
2473
|
-
bottomY:
|
|
2474
|
-
enterMs:
|
|
2475
|
-
exitMs:
|
|
2476
|
-
className:
|
|
2474
|
+
bottomY: u,
|
|
2475
|
+
enterMs: d = ie.envelopeEnterMs,
|
|
2476
|
+
exitMs: h = ie.envelopeExitMs,
|
|
2477
|
+
className: m,
|
|
2477
2478
|
style: g
|
|
2478
2479
|
}) {
|
|
2479
2480
|
if (e === "hidden") return null;
|
|
2480
|
-
const
|
|
2481
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2482
|
-
"--gloss-resize-envelope-exit-ms": `${
|
|
2481
|
+
const c = Math.max(0, i - a), _ = Math.max(0, u - l), b = {
|
|
2482
|
+
"--gloss-resize-envelope-enter-ms": `${d}ms`,
|
|
2483
|
+
"--gloss-resize-envelope-exit-ms": `${h}ms`,
|
|
2483
2484
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2484
2485
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
2485
2486
|
left: a,
|
|
2486
2487
|
top: l,
|
|
2487
|
-
width:
|
|
2488
|
-
height:
|
|
2488
|
+
width: c,
|
|
2489
|
+
height: _,
|
|
2489
2490
|
...g
|
|
2490
2491
|
};
|
|
2491
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ k(
|
|
2492
2493
|
"div",
|
|
2493
2494
|
{
|
|
2494
|
-
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`,
|
|
2495
|
+
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, m].filter(Boolean).join(" "),
|
|
2495
2496
|
"data-state": e,
|
|
2496
2497
|
"data-testid": "gloss-resize-envelope",
|
|
2497
2498
|
style: b,
|
|
@@ -2518,23 +2519,23 @@ function vr({
|
|
|
2518
2519
|
{
|
|
2519
2520
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
|
|
2520
2521
|
"data-edge": "right",
|
|
2521
|
-
style: { left:
|
|
2522
|
+
style: { left: c - 1 }
|
|
2522
2523
|
}
|
|
2523
2524
|
),
|
|
2524
|
-
o.filter((
|
|
2525
|
+
o.filter((f) => f > s && f < i).map((f) => /* @__PURE__ */ r(
|
|
2525
2526
|
"div",
|
|
2526
2527
|
{
|
|
2527
2528
|
className: "gloss-resize-envelope__snap-line",
|
|
2528
2529
|
"data-snap-line": !0,
|
|
2529
|
-
style: { left:
|
|
2530
|
+
style: { left: f - a }
|
|
2530
2531
|
},
|
|
2531
|
-
|
|
2532
|
+
f
|
|
2532
2533
|
))
|
|
2533
2534
|
]
|
|
2534
2535
|
}
|
|
2535
2536
|
);
|
|
2536
2537
|
}
|
|
2537
|
-
function
|
|
2538
|
+
function _r({
|
|
2538
2539
|
density: e,
|
|
2539
2540
|
canAccept: t,
|
|
2540
2541
|
blocked: n = !1,
|
|
@@ -2544,12 +2545,12 @@ function yr({
|
|
|
2544
2545
|
children: o,
|
|
2545
2546
|
...l
|
|
2546
2547
|
}) {
|
|
2547
|
-
const
|
|
2548
|
+
const u = a != null ? { ...l.style, "--_proximity-opacity": String(a) } : l.style;
|
|
2548
2549
|
return /* @__PURE__ */ r(
|
|
2549
2550
|
"div",
|
|
2550
2551
|
{
|
|
2551
2552
|
...l,
|
|
2552
|
-
style:
|
|
2553
|
+
style: u,
|
|
2553
2554
|
"data-density": e,
|
|
2554
2555
|
"data-can-accept": t ? "true" : "false",
|
|
2555
2556
|
"data-blocked": n ? "true" : void 0,
|
|
@@ -2565,11 +2566,11 @@ function yr({
|
|
|
2565
2566
|
}
|
|
2566
2567
|
);
|
|
2567
2568
|
}
|
|
2568
|
-
function
|
|
2569
|
+
function Da(e, t, n, a) {
|
|
2569
2570
|
const i = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2570
2571
|
return `M${e},${t} Q${i},${s} ${n},${a}`;
|
|
2571
2572
|
}
|
|
2572
|
-
function
|
|
2573
|
+
function Nr({
|
|
2573
2574
|
segments: e,
|
|
2574
2575
|
durationMs: t = ie.spilloverArcDurationMs,
|
|
2575
2576
|
staggerMs: n = ie.spilloverStaggerMs,
|
|
@@ -2589,7 +2590,7 @@ function wr({
|
|
|
2589
2590
|
{
|
|
2590
2591
|
"data-arc-id": s.id,
|
|
2591
2592
|
className: "gloss-spillover-arc__path",
|
|
2592
|
-
d:
|
|
2593
|
+
d: Da(s.fromX, s.fromY, s.toX, s.toY),
|
|
2593
2594
|
style: {
|
|
2594
2595
|
animationDelay: `${o * n}ms`,
|
|
2595
2596
|
animationDuration: `${t}ms`
|
|
@@ -2600,7 +2601,7 @@ function wr({
|
|
|
2600
2601
|
}
|
|
2601
2602
|
);
|
|
2602
2603
|
}
|
|
2603
|
-
function
|
|
2604
|
+
function Dr({
|
|
2604
2605
|
state: e,
|
|
2605
2606
|
staggerIndex: t = 0,
|
|
2606
2607
|
fadeInMs: n = ie.sectionDividerFadeInMs,
|
|
@@ -2609,9 +2610,9 @@ function _r({
|
|
|
2609
2610
|
variant: s = "dashed",
|
|
2610
2611
|
className: o,
|
|
2611
2612
|
style: l,
|
|
2612
|
-
...
|
|
2613
|
+
...u
|
|
2613
2614
|
}) {
|
|
2614
|
-
const
|
|
2615
|
+
const d = {
|
|
2615
2616
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2616
2617
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2617
2618
|
"--gloss-section-divider-stagger-delay": `${t * i}ms`,
|
|
@@ -2620,7 +2621,7 @@ function _r({
|
|
|
2620
2621
|
return /* @__PURE__ */ r(
|
|
2621
2622
|
"div",
|
|
2622
2623
|
{
|
|
2623
|
-
...
|
|
2624
|
+
...u,
|
|
2624
2625
|
"data-state": e,
|
|
2625
2626
|
"data-testid": "gloss-section-divider",
|
|
2626
2627
|
"aria-hidden": "true",
|
|
@@ -2630,11 +2631,11 @@ function _r({
|
|
|
2630
2631
|
s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2631
2632
|
o
|
|
2632
2633
|
].filter(Boolean).join(" "),
|
|
2633
|
-
style:
|
|
2634
|
+
style: d
|
|
2634
2635
|
}
|
|
2635
2636
|
);
|
|
2636
2637
|
}
|
|
2637
|
-
function
|
|
2638
|
+
function kr({
|
|
2638
2639
|
enabled: e,
|
|
2639
2640
|
onCollapse: t,
|
|
2640
2641
|
onAdd: n,
|
|
@@ -2643,48 +2644,48 @@ function Nr({
|
|
|
2643
2644
|
className: s,
|
|
2644
2645
|
style: o,
|
|
2645
2646
|
onPack: l,
|
|
2646
|
-
ariaLabel:
|
|
2647
|
+
ariaLabel: u
|
|
2647
2648
|
}) {
|
|
2648
|
-
const
|
|
2649
|
-
return /* @__PURE__ */
|
|
2650
|
-
/* @__PURE__ */ r(
|
|
2649
|
+
const d = a ?? "Add card to this cell", h = i ?? u ?? "Pack row — shift cards left", m = t ?? l, g = _t();
|
|
2650
|
+
return /* @__PURE__ */ k(ce.Fragment, { children: [
|
|
2651
|
+
/* @__PURE__ */ r(Oe, { visible: !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2651
2652
|
"button",
|
|
2652
2653
|
{
|
|
2653
2654
|
type: "button",
|
|
2654
2655
|
"data-testid": "gloss-empty-cell-add",
|
|
2655
|
-
"aria-label":
|
|
2656
|
+
"aria-label": d,
|
|
2656
2657
|
className: [
|
|
2657
2658
|
"gloss-empty-cell-pack-affordance",
|
|
2658
2659
|
"gloss-empty-cell-pack-affordance--add",
|
|
2659
2660
|
s
|
|
2660
2661
|
].filter(Boolean).join(" "),
|
|
2661
2662
|
style: o,
|
|
2662
|
-
onClick: (
|
|
2663
|
-
|
|
2663
|
+
onClick: (c) => {
|
|
2664
|
+
c.stopPropagation(), n?.();
|
|
2664
2665
|
},
|
|
2665
2666
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
|
|
2666
2667
|
}
|
|
2667
2668
|
) }),
|
|
2668
|
-
/* @__PURE__ */ r(
|
|
2669
|
+
/* @__PURE__ */ r(Oe, { visible: e && !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2669
2670
|
"button",
|
|
2670
2671
|
{
|
|
2671
2672
|
type: "button",
|
|
2672
2673
|
"data-testid": "gloss-empty-cell-pack",
|
|
2673
|
-
"aria-label":
|
|
2674
|
+
"aria-label": h,
|
|
2674
2675
|
className: ["gloss-empty-cell-pack-affordance", s].filter(Boolean).join(" "),
|
|
2675
2676
|
style: o,
|
|
2676
|
-
onClick: (
|
|
2677
|
-
|
|
2677
|
+
onClick: (c) => {
|
|
2678
|
+
c.stopPropagation(), m?.();
|
|
2678
2679
|
},
|
|
2679
2680
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2680
2681
|
}
|
|
2681
2682
|
) })
|
|
2682
2683
|
] });
|
|
2683
2684
|
}
|
|
2684
|
-
function
|
|
2685
|
+
function Cr() {
|
|
2685
2686
|
return { affordancesVisible: !0 };
|
|
2686
2687
|
}
|
|
2687
|
-
function
|
|
2688
|
+
function xr({
|
|
2688
2689
|
tint: e,
|
|
2689
2690
|
colSpan: t,
|
|
2690
2691
|
colWidth: n,
|
|
@@ -2693,27 +2694,88 @@ function kr({
|
|
|
2693
2694
|
x: s,
|
|
2694
2695
|
y: o,
|
|
2695
2696
|
children: l,
|
|
2696
|
-
className:
|
|
2697
|
+
className: u
|
|
2697
2698
|
}) {
|
|
2698
|
-
const
|
|
2699
|
-
return
|
|
2700
|
-
|
|
2699
|
+
const d = t * n + (t - 1) * i, h = ce.useRef(null);
|
|
2700
|
+
return Fe("drag-ghost", () => {
|
|
2701
|
+
if (process.env.NODE_ENV === "production")
|
|
2702
|
+
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2703
|
+
const m = h.current?.getBoundingClientRect() ?? null;
|
|
2704
|
+
return {
|
|
2705
|
+
values: {
|
|
2706
|
+
x: s.get(),
|
|
2707
|
+
y: o.get(),
|
|
2708
|
+
bounds_x: m?.x ?? 0,
|
|
2709
|
+
bounds_y: m?.y ?? 0,
|
|
2710
|
+
bounds_w: m?.width ?? 0,
|
|
2711
|
+
bounds_h: m?.height ?? 0,
|
|
2712
|
+
visible: m ? 1 : 0
|
|
2713
|
+
},
|
|
2714
|
+
spec: {
|
|
2715
|
+
tint: e,
|
|
2716
|
+
colSpan: t,
|
|
2717
|
+
springStiffness: le.springStiffness,
|
|
2718
|
+
springDamping: le.springDamping
|
|
2719
|
+
},
|
|
2720
|
+
state: "active",
|
|
2721
|
+
t: performance.now()
|
|
2722
|
+
};
|
|
2723
|
+
}), Fe("commit-ghost-singleton", () => {
|
|
2724
|
+
if (process.env.NODE_ENV === "production")
|
|
2725
|
+
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2726
|
+
const m = h.current;
|
|
2727
|
+
let g = 0, c = "", _ = "", b = "";
|
|
2728
|
+
if (m)
|
|
2729
|
+
try {
|
|
2730
|
+
const I = window.getComputedStyle(m), y = I.outline || "", M = I.border || "", x = I.boxShadow || "", p = !!y && y !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(y), v = !!M && M !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(M), D = !!x && x !== "none";
|
|
2731
|
+
g = p || v || D ? 1 : 0, c = p ? y : "", _ = v ? M : "", b = D ? x : "";
|
|
2732
|
+
} catch {
|
|
2733
|
+
}
|
|
2734
|
+
const f = m?.getBoundingClientRect() ?? null, R = m ? "drag-clone" : "subsumed-by-tracking-outline";
|
|
2735
|
+
return {
|
|
2736
|
+
values: {
|
|
2737
|
+
x: s.get(),
|
|
2738
|
+
y: o.get(),
|
|
2739
|
+
bounds_x: f?.x ?? 0,
|
|
2740
|
+
bounds_y: f?.y ?? 0,
|
|
2741
|
+
bounds_w: f?.width ?? 0,
|
|
2742
|
+
bounds_h: f?.height ?? 0,
|
|
2743
|
+
visible: m ? 1 : 0,
|
|
2744
|
+
outlineOnClone: g
|
|
2745
|
+
},
|
|
2746
|
+
spec: {
|
|
2747
|
+
mode: R,
|
|
2748
|
+
tint: e,
|
|
2749
|
+
outlineSrc: c,
|
|
2750
|
+
borderSrc: _,
|
|
2751
|
+
boxShadowSrc: b
|
|
2752
|
+
// D-01 contract: Frame 1 (current/buggy) shows outline-on-clone=true;
|
|
2753
|
+
// Frame 2 (decided): outline-on-clone=false (subsumed by tracking
|
|
2754
|
+
// outline). Wave 2 audit-D-01 reads this field across drag mid-flight
|
|
2755
|
+
// + post-drop frames and records frame match.
|
|
2756
|
+
},
|
|
2757
|
+
state: m ? "active" : "idle",
|
|
2758
|
+
t: performance.now()
|
|
2759
|
+
};
|
|
2760
|
+
}), /* @__PURE__ */ r(
|
|
2761
|
+
xe.div,
|
|
2701
2762
|
{
|
|
2763
|
+
ref: h,
|
|
2702
2764
|
"data-testid": "gloss-drag-ghost",
|
|
2703
2765
|
"data-tint": e,
|
|
2704
2766
|
"aria-hidden": "true",
|
|
2705
2767
|
className: [
|
|
2706
2768
|
"gloss-drag-ghost",
|
|
2707
2769
|
`gloss-drag-ghost--tint-${e}`,
|
|
2708
|
-
|
|
2770
|
+
u
|
|
2709
2771
|
].filter(Boolean).join(" "),
|
|
2710
|
-
style: { x: s, y: o, width:
|
|
2772
|
+
style: { x: s, y: o, width: d, height: a },
|
|
2711
2773
|
children: l
|
|
2712
2774
|
}
|
|
2713
2775
|
);
|
|
2714
2776
|
}
|
|
2715
|
-
const
|
|
2716
|
-
function
|
|
2777
|
+
const ka = 3;
|
|
2778
|
+
function dt({
|
|
2717
2779
|
gesture: e,
|
|
2718
2780
|
cell: t,
|
|
2719
2781
|
colSpan: n,
|
|
@@ -2722,9 +2784,9 @@ function lt({
|
|
|
2722
2784
|
rowHeight: s,
|
|
2723
2785
|
pattern: o = "solid",
|
|
2724
2786
|
transitionMs: l = 120,
|
|
2725
|
-
className:
|
|
2787
|
+
className: u
|
|
2726
2788
|
}) {
|
|
2727
|
-
const
|
|
2789
|
+
const d = n * a + (n - 1) * i, m = (t.section * ka + t.col) * (a + i), g = t.row * (s + i), c = e === "resize" ? 2.5 : 2, _ = o === "dashed-retreated" ? "dashed" : "solid", b = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline";
|
|
2728
2790
|
return /* @__PURE__ */ r(
|
|
2729
2791
|
"div",
|
|
2730
2792
|
{
|
|
@@ -2735,7 +2797,7 @@ function lt({
|
|
|
2735
2797
|
// D-15 #4 parity: drag callers must keep the legacy class so reptime
|
|
2736
2798
|
// metric-card-grid.scss nested selectors continue to match.
|
|
2737
2799
|
e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
|
|
2738
|
-
|
|
2800
|
+
u
|
|
2739
2801
|
].filter(Boolean).join(" "),
|
|
2740
2802
|
"data-testid": b,
|
|
2741
2803
|
"data-tracking-outline": "",
|
|
@@ -2743,69 +2805,94 @@ function lt({
|
|
|
2743
2805
|
"data-pattern": o,
|
|
2744
2806
|
"aria-hidden": "true",
|
|
2745
2807
|
style: {
|
|
2746
|
-
transform: `translate(${
|
|
2747
|
-
width:
|
|
2808
|
+
transform: `translate(${m}px, ${g}px)`,
|
|
2809
|
+
width: d,
|
|
2748
2810
|
height: s,
|
|
2749
|
-
borderWidth:
|
|
2750
|
-
borderStyle:
|
|
2811
|
+
borderWidth: c,
|
|
2812
|
+
borderStyle: _,
|
|
2751
2813
|
transition: `transform ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
2752
2814
|
}
|
|
2753
2815
|
}
|
|
2754
2816
|
);
|
|
2755
2817
|
}
|
|
2756
|
-
function
|
|
2757
|
-
return /* @__PURE__ */ r(
|
|
2818
|
+
function Sr(e) {
|
|
2819
|
+
return /* @__PURE__ */ r(dt, { gesture: "drag", pattern: "solid", ...e });
|
|
2758
2820
|
}
|
|
2759
|
-
function
|
|
2821
|
+
function Rr({
|
|
2760
2822
|
items: e,
|
|
2761
2823
|
children: t,
|
|
2762
2824
|
className: n,
|
|
2763
2825
|
debugMagenta: a
|
|
2764
2826
|
}) {
|
|
2765
|
-
const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0);
|
|
2766
|
-
return
|
|
2767
|
-
|
|
2827
|
+
const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0), s = ce.useRef(e);
|
|
2828
|
+
return s.current = e, Fe("cascade-preview", () => {
|
|
2829
|
+
if (process.env.NODE_ENV === "production")
|
|
2830
|
+
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2831
|
+
const o = s.current;
|
|
2832
|
+
let l = 0, u = 0, d = 0, h = 0;
|
|
2833
|
+
for (const m of o) {
|
|
2834
|
+
const g = m.x.get(), c = m.y.get();
|
|
2835
|
+
Math.abs(g) > Math.abs(d) && (d = g, l = g), Math.abs(c) > Math.abs(h) && (h = c, u = c);
|
|
2836
|
+
}
|
|
2837
|
+
return {
|
|
2838
|
+
values: {
|
|
2839
|
+
activeCount: o.length,
|
|
2840
|
+
maxX: l,
|
|
2841
|
+
maxY: u,
|
|
2842
|
+
visible: o.length > 0 ? 1 : 0
|
|
2843
|
+
},
|
|
2844
|
+
spec: {
|
|
2845
|
+
forwardStaggerMs: le.forwardStaggerMs,
|
|
2846
|
+
reverseStaggerMs: le.reverseStaggerMs,
|
|
2847
|
+
springStiffness: le.springStiffness,
|
|
2848
|
+
springDamping: le.springDamping
|
|
2849
|
+
},
|
|
2850
|
+
state: o.length > 0 ? "active" : "idle",
|
|
2851
|
+
t: performance.now()
|
|
2852
|
+
};
|
|
2853
|
+
}), e.length === 0 ? null : /* @__PURE__ */ r(te, { children: e.map((o) => /* @__PURE__ */ r(
|
|
2854
|
+
xe.div,
|
|
2768
2855
|
{
|
|
2769
|
-
"data-card-id":
|
|
2856
|
+
"data-card-id": o.cardId,
|
|
2770
2857
|
"data-testid": "gloss-cascade-preview-item",
|
|
2771
2858
|
"aria-hidden": "true",
|
|
2772
2859
|
className: ["gloss-cascade-preview-item", n].filter(Boolean).join(" "),
|
|
2773
2860
|
style: {
|
|
2774
2861
|
position: "absolute",
|
|
2775
|
-
left:
|
|
2776
|
-
top:
|
|
2777
|
-
x:
|
|
2778
|
-
y:
|
|
2779
|
-
width:
|
|
2780
|
-
height:
|
|
2862
|
+
left: o.left,
|
|
2863
|
+
top: o.top,
|
|
2864
|
+
x: o.x,
|
|
2865
|
+
y: o.y,
|
|
2866
|
+
width: o.width,
|
|
2867
|
+
height: o.height,
|
|
2781
2868
|
...i ? { outline: "2px solid magenta" } : {}
|
|
2782
2869
|
},
|
|
2783
|
-
children: t(
|
|
2870
|
+
children: t(o)
|
|
2784
2871
|
},
|
|
2785
|
-
|
|
2872
|
+
o.cardId
|
|
2786
2873
|
)) });
|
|
2787
2874
|
}
|
|
2788
|
-
const
|
|
2875
|
+
const Ca = ({
|
|
2789
2876
|
consumed: e,
|
|
2790
2877
|
elapsed: t,
|
|
2791
2878
|
severity: n = "neutral"
|
|
2792
2879
|
}) => {
|
|
2793
|
-
const a =
|
|
2880
|
+
const a = P(null), i = P(null);
|
|
2794
2881
|
O(() => {
|
|
2795
|
-
const l = Math.min(100, Math.max(0, e.value)),
|
|
2796
|
-
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${
|
|
2882
|
+
const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)), d = requestAnimationFrame(() => {
|
|
2883
|
+
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${u}%`);
|
|
2797
2884
|
});
|
|
2798
|
-
return () => cancelAnimationFrame(
|
|
2885
|
+
return () => cancelAnimationFrame(d);
|
|
2799
2886
|
}, [e.value, t.value]);
|
|
2800
2887
|
const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
2801
|
-
return /* @__PURE__ */
|
|
2888
|
+
return /* @__PURE__ */ k(
|
|
2802
2889
|
"div",
|
|
2803
2890
|
{
|
|
2804
2891
|
className: "gloss-dual-pace-bars",
|
|
2805
2892
|
role: "img",
|
|
2806
2893
|
"aria-label": `${s}: ${e.value}%, ${o}: ${t.value}%`,
|
|
2807
2894
|
children: [
|
|
2808
|
-
/* @__PURE__ */
|
|
2895
|
+
/* @__PURE__ */ k("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
2809
2896
|
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: s }),
|
|
2810
2897
|
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
2811
2898
|
"div",
|
|
@@ -2820,12 +2907,12 @@ const Da = ({
|
|
|
2820
2907
|
"aria-label": `${s}: ${e.value}%`
|
|
2821
2908
|
}
|
|
2822
2909
|
) }),
|
|
2823
|
-
/* @__PURE__ */
|
|
2910
|
+
/* @__PURE__ */ k("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
2824
2911
|
e.value,
|
|
2825
2912
|
"%"
|
|
2826
2913
|
] })
|
|
2827
2914
|
] }),
|
|
2828
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ k("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
2829
2916
|
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: o }),
|
|
2830
2917
|
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
2831
2918
|
"div",
|
|
@@ -2840,7 +2927,7 @@ const Da = ({
|
|
|
2840
2927
|
"aria-label": `${o}: ${t.value}%`
|
|
2841
2928
|
}
|
|
2842
2929
|
) }),
|
|
2843
|
-
/* @__PURE__ */
|
|
2930
|
+
/* @__PURE__ */ k("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
2844
2931
|
t.value,
|
|
2845
2932
|
"%"
|
|
2846
2933
|
] })
|
|
@@ -2848,22 +2935,22 @@ const Da = ({
|
|
|
2848
2935
|
]
|
|
2849
2936
|
}
|
|
2850
2937
|
);
|
|
2851
|
-
},
|
|
2938
|
+
}, xa = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ k(
|
|
2852
2939
|
"div",
|
|
2853
2940
|
{
|
|
2854
2941
|
className: `gloss-gap-readout gloss-gap-readout--${n}`,
|
|
2855
2942
|
"aria-label": `${e}: ${t}`,
|
|
2856
2943
|
children: [
|
|
2857
2944
|
/* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
|
|
2858
|
-
/* @__PURE__ */
|
|
2945
|
+
/* @__PURE__ */ k("div", { className: "gloss-gap-readout__strip", children: [
|
|
2859
2946
|
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__label", children: e }),
|
|
2860
2947
|
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__value", children: t })
|
|
2861
2948
|
] })
|
|
2862
2949
|
]
|
|
2863
2950
|
}
|
|
2864
|
-
),
|
|
2951
|
+
), Sa = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ k("div", { className: "gloss-pace-placeholder", children: [
|
|
2865
2952
|
/* @__PURE__ */ r("p", { className: "gloss-pace-placeholder__heading", children: "Set a target" }),
|
|
2866
|
-
/* @__PURE__ */
|
|
2953
|
+
/* @__PURE__ */ k("p", { className: "gloss-pace-placeholder__context", children: [
|
|
2867
2954
|
"for ",
|
|
2868
2955
|
e
|
|
2869
2956
|
] }),
|
|
@@ -2877,9 +2964,9 @@ const Da = ({
|
|
|
2877
2964
|
children: "Set target"
|
|
2878
2965
|
}
|
|
2879
2966
|
)
|
|
2880
|
-
] }),
|
|
2967
|
+
] }), Mr = (e) => {
|
|
2881
2968
|
const [t, n] = $(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
|
|
2882
|
-
|
|
2969
|
+
Lt,
|
|
2883
2970
|
{
|
|
2884
2971
|
label: `Set a target for ${e.label}`,
|
|
2885
2972
|
unit: s,
|
|
@@ -2893,7 +2980,7 @@ const Da = ({
|
|
|
2893
2980
|
}
|
|
2894
2981
|
);
|
|
2895
2982
|
return /* @__PURE__ */ r(
|
|
2896
|
-
|
|
2983
|
+
Nt,
|
|
2897
2984
|
{
|
|
2898
2985
|
colSpan: 2,
|
|
2899
2986
|
enableQuickSettings: !0,
|
|
@@ -2901,21 +2988,21 @@ const Da = ({
|
|
|
2901
2988
|
onFlipChange: n,
|
|
2902
2989
|
quickConfigSlot: o,
|
|
2903
2990
|
onRemove: e.onRemove,
|
|
2904
|
-
children: /* @__PURE__ */
|
|
2991
|
+
children: /* @__PURE__ */ k("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
|
|
2905
2992
|
/* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
|
|
2906
2993
|
e.subtitle && /* @__PURE__ */ r("div", { className: "gloss-pace-card__subtitle", children: e.subtitle }),
|
|
2907
|
-
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */
|
|
2994
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ k(te, { children: [
|
|
2908
2995
|
/* @__PURE__ */ r(
|
|
2909
|
-
|
|
2996
|
+
Ca,
|
|
2910
2997
|
{
|
|
2911
2998
|
consumed: e.consumed,
|
|
2912
2999
|
elapsed: e.elapsed,
|
|
2913
3000
|
severity: e.severity
|
|
2914
3001
|
}
|
|
2915
3002
|
),
|
|
2916
|
-
/* @__PURE__ */ r(
|
|
3003
|
+
/* @__PURE__ */ r(xa, { label: "Gap", value: e.gapLabel, severity: e.severity })
|
|
2917
3004
|
] }) : /* @__PURE__ */ r(
|
|
2918
|
-
|
|
3005
|
+
Sa,
|
|
2919
3006
|
{
|
|
2920
3007
|
label: e.label,
|
|
2921
3008
|
onSetTarget: () => n(!0)
|
|
@@ -2924,7 +3011,7 @@ const Da = ({
|
|
|
2924
3011
|
] })
|
|
2925
3012
|
}
|
|
2926
3013
|
);
|
|
2927
|
-
},
|
|
3014
|
+
}, Tr = () => /* @__PURE__ */ k("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
2928
3015
|
/* @__PURE__ */ r(
|
|
2929
3016
|
"div",
|
|
2930
3017
|
{
|
|
@@ -2941,7 +3028,7 @@ const Da = ({
|
|
|
2941
3028
|
),
|
|
2942
3029
|
/* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
|
|
2943
3030
|
] });
|
|
2944
|
-
function
|
|
3031
|
+
function Ra({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, onClick: o }) {
|
|
2945
3032
|
return /* @__PURE__ */ r(
|
|
2946
3033
|
"span",
|
|
2947
3034
|
{
|
|
@@ -2955,14 +3042,14 @@ function xa({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, o
|
|
|
2955
3042
|
onClick: () => {
|
|
2956
3043
|
i || o(e);
|
|
2957
3044
|
},
|
|
2958
|
-
children: /* @__PURE__ */
|
|
3045
|
+
children: /* @__PURE__ */ k("span", { className: "gloss-lens-chip__inner", children: [
|
|
2959
3046
|
/* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
|
|
2960
3047
|
s && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: s })
|
|
2961
3048
|
] })
|
|
2962
3049
|
}
|
|
2963
3050
|
);
|
|
2964
3051
|
}
|
|
2965
|
-
function
|
|
3052
|
+
function Ma({
|
|
2966
3053
|
lenses: e,
|
|
2967
3054
|
value: t,
|
|
2968
3055
|
onChange: n,
|
|
@@ -2972,7 +3059,7 @@ function Sa({
|
|
|
2972
3059
|
() => Math.max(0, e.findIndex((l) => l.id === t))
|
|
2973
3060
|
);
|
|
2974
3061
|
return O(() => {
|
|
2975
|
-
const l = e.findIndex((
|
|
3062
|
+
const l = e.findIndex((u) => u.id === t);
|
|
2976
3063
|
s(l >= 0 ? l : 0);
|
|
2977
3064
|
}, [t, e]), e.length === 0 ? null : /* @__PURE__ */ r(
|
|
2978
3065
|
"div",
|
|
@@ -2983,11 +3070,11 @@ function Sa({
|
|
|
2983
3070
|
switch (l.key) {
|
|
2984
3071
|
case "ArrowRight":
|
|
2985
3072
|
case "ArrowDown":
|
|
2986
|
-
l.preventDefault(), s((
|
|
3073
|
+
l.preventDefault(), s((u) => (u + 1) % e.length);
|
|
2987
3074
|
break;
|
|
2988
3075
|
case "ArrowLeft":
|
|
2989
3076
|
case "ArrowUp":
|
|
2990
|
-
l.preventDefault(), s((
|
|
3077
|
+
l.preventDefault(), s((u) => (u - 1 + e.length) % e.length);
|
|
2991
3078
|
break;
|
|
2992
3079
|
case "Home":
|
|
2993
3080
|
l.preventDefault(), s(0);
|
|
@@ -2998,20 +3085,20 @@ function Sa({
|
|
|
2998
3085
|
case "Enter":
|
|
2999
3086
|
case " ": {
|
|
3000
3087
|
l.preventDefault();
|
|
3001
|
-
const
|
|
3002
|
-
|
|
3088
|
+
const u = e[i];
|
|
3089
|
+
u && !u.disabled && n(u.id);
|
|
3003
3090
|
break;
|
|
3004
3091
|
}
|
|
3005
3092
|
}
|
|
3006
3093
|
},
|
|
3007
3094
|
className: "gloss-lens-chip-group",
|
|
3008
|
-
children: e.map((l,
|
|
3009
|
-
|
|
3095
|
+
children: e.map((l, u) => /* @__PURE__ */ r(
|
|
3096
|
+
Ra,
|
|
3010
3097
|
{
|
|
3011
3098
|
id: l.id,
|
|
3012
3099
|
label: l.label,
|
|
3013
3100
|
selected: l.id === t,
|
|
3014
|
-
focused:
|
|
3101
|
+
focused: u === i,
|
|
3015
3102
|
disabled: l.disabled,
|
|
3016
3103
|
badge: l.badge,
|
|
3017
3104
|
onClick: n
|
|
@@ -3021,25 +3108,25 @@ function Sa({
|
|
|
3021
3108
|
}
|
|
3022
3109
|
);
|
|
3023
3110
|
}
|
|
3024
|
-
|
|
3025
|
-
function
|
|
3026
|
-
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */
|
|
3111
|
+
Ma.displayName = "LensChipGroup";
|
|
3112
|
+
function Ta({ heading: e, children: t }) {
|
|
3113
|
+
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ k("section", { className: "gloss-starter-rail", "aria-label": e, children: [
|
|
3027
3114
|
/* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
|
|
3028
3115
|
/* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
|
|
3029
3116
|
] });
|
|
3030
3117
|
}
|
|
3031
|
-
|
|
3032
|
-
function
|
|
3118
|
+
Ta.displayName = "StarterRail";
|
|
3119
|
+
function Ia({ heading: e, children: t, emptyStateLabel: n }) {
|
|
3033
3120
|
const a = !t || Array.isArray(t) && t.length === 0;
|
|
3034
|
-
return /* @__PURE__ */
|
|
3121
|
+
return /* @__PURE__ */ k("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
|
|
3035
3122
|
/* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
|
|
3036
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ k("div", { className: "gloss-more-in-lens-rail__tiles", children: [
|
|
3037
3124
|
t,
|
|
3038
3125
|
a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
|
|
3039
3126
|
] })
|
|
3040
3127
|
] });
|
|
3041
3128
|
}
|
|
3042
|
-
|
|
3129
|
+
Ia.displayName = "MoreInLensRail";
|
|
3043
3130
|
function X({
|
|
3044
3131
|
lead: e,
|
|
3045
3132
|
name: t,
|
|
@@ -3049,21 +3136,21 @@ function X({
|
|
|
3049
3136
|
variant: s = "default",
|
|
3050
3137
|
onClick: o,
|
|
3051
3138
|
className: l,
|
|
3052
|
-
style:
|
|
3139
|
+
style: u
|
|
3053
3140
|
}) {
|
|
3054
|
-
const
|
|
3141
|
+
const d = [
|
|
3055
3142
|
"gloss-entity-row",
|
|
3056
3143
|
`gloss-entity-row--${s}`,
|
|
3057
3144
|
o ? "gloss-entity-row--clickable" : "",
|
|
3058
3145
|
l ?? ""
|
|
3059
|
-
].filter(Boolean).join(" "),
|
|
3146
|
+
].filter(Boolean).join(" "), h = /* @__PURE__ */ k(te, { children: [
|
|
3060
3147
|
e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
|
|
3061
3148
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
|
|
3062
3149
|
n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
|
|
3063
3150
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
3064
3151
|
i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
|
|
3065
3152
|
] });
|
|
3066
|
-
return o ? /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3153
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: /* @__PURE__ */ r(
|
|
3067
3154
|
"button",
|
|
3068
3155
|
{
|
|
3069
3156
|
type: "button",
|
|
@@ -3075,15 +3162,15 @@ function X({
|
|
|
3075
3162
|
gap: 4,
|
|
3076
3163
|
cursor: "pointer"
|
|
3077
3164
|
},
|
|
3078
|
-
onClick: (
|
|
3079
|
-
|
|
3165
|
+
onClick: (m) => {
|
|
3166
|
+
m.stopPropagation(), o();
|
|
3080
3167
|
},
|
|
3081
|
-
children:
|
|
3168
|
+
children: h
|
|
3082
3169
|
}
|
|
3083
|
-
) }) : /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3170
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: h });
|
|
3084
3171
|
}
|
|
3085
3172
|
X.displayName = "EntityRow";
|
|
3086
|
-
const
|
|
3173
|
+
const ye = ({ rank: e }) => {
|
|
3087
3174
|
const t = e === 1 ? "first" : "other";
|
|
3088
3175
|
return /* @__PURE__ */ r(
|
|
3089
3176
|
"span",
|
|
@@ -3095,8 +3182,8 @@ const be = ({ rank: e }) => {
|
|
|
3095
3182
|
}
|
|
3096
3183
|
);
|
|
3097
3184
|
};
|
|
3098
|
-
|
|
3099
|
-
function
|
|
3185
|
+
ye.displayName = "RankBadge";
|
|
3186
|
+
function we({ severity: e, "aria-label": t }) {
|
|
3100
3187
|
return /* @__PURE__ */ r(
|
|
3101
3188
|
"span",
|
|
3102
3189
|
{
|
|
@@ -3106,8 +3193,8 @@ function ve({ severity: e, "aria-label": t }) {
|
|
|
3106
3193
|
}
|
|
3107
3194
|
);
|
|
3108
3195
|
}
|
|
3109
|
-
|
|
3110
|
-
function
|
|
3196
|
+
we.displayName = "SeverityDot";
|
|
3197
|
+
function ut({
|
|
3111
3198
|
delta: e,
|
|
3112
3199
|
direction: t = "flat",
|
|
3113
3200
|
"aria-label": n
|
|
@@ -3123,7 +3210,7 @@ function ct({
|
|
|
3123
3210
|
}
|
|
3124
3211
|
);
|
|
3125
3212
|
const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
|
|
3126
|
-
return /* @__PURE__ */
|
|
3213
|
+
return /* @__PURE__ */ k(
|
|
3127
3214
|
"span",
|
|
3128
3215
|
{
|
|
3129
3216
|
role: "img",
|
|
@@ -3136,8 +3223,8 @@ function ct({
|
|
|
3136
3223
|
}
|
|
3137
3224
|
);
|
|
3138
3225
|
}
|
|
3139
|
-
|
|
3140
|
-
function
|
|
3226
|
+
ut.displayName = "RankDelta";
|
|
3227
|
+
function _e({ fill: e, variant: t = "default", className: n }) {
|
|
3141
3228
|
const a = Math.max(0, Math.min(100, e));
|
|
3142
3229
|
return /* @__PURE__ */ r(
|
|
3143
3230
|
"div",
|
|
@@ -3153,9 +3240,9 @@ function ye({ fill: e, variant: t = "default", className: n }) {
|
|
|
3153
3240
|
}
|
|
3154
3241
|
);
|
|
3155
3242
|
}
|
|
3156
|
-
|
|
3157
|
-
const
|
|
3158
|
-
function
|
|
3243
|
+
_e.displayName = "MagnitudeBar";
|
|
3244
|
+
const Pa = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
|
|
3245
|
+
function Ea({
|
|
3159
3246
|
label: e,
|
|
3160
3247
|
rows: t,
|
|
3161
3248
|
rowCount: n,
|
|
@@ -3163,27 +3250,27 @@ function Ia({
|
|
|
3163
3250
|
isStale: i
|
|
3164
3251
|
}) {
|
|
3165
3252
|
const s = n ?? 3;
|
|
3166
|
-
return /* @__PURE__ */
|
|
3253
|
+
return /* @__PURE__ */ k(te, { children: [
|
|
3167
3254
|
/* @__PURE__ */ r(
|
|
3168
|
-
|
|
3255
|
+
be,
|
|
3169
3256
|
{
|
|
3170
3257
|
className: "gloss-metric-card__zone-a",
|
|
3171
3258
|
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3172
|
-
children: /* @__PURE__ */ r(
|
|
3259
|
+
children: /* @__PURE__ */ r(Ee, { className: "gloss-metric-card__label", children: e })
|
|
3173
3260
|
}
|
|
3174
3261
|
),
|
|
3175
3262
|
/* @__PURE__ */ r(
|
|
3176
|
-
|
|
3263
|
+
be,
|
|
3177
3264
|
{
|
|
3178
3265
|
className: `gloss-metric-card__zone-b gloss-leaderboard ${i ? "gloss-metric-data-stale" : ""}`,
|
|
3179
3266
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3180
3267
|
children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0, s).map((o, l) => /* @__PURE__ */ r(
|
|
3181
3268
|
X,
|
|
3182
3269
|
{
|
|
3183
|
-
lead: /* @__PURE__ */ r(
|
|
3270
|
+
lead: /* @__PURE__ */ r(ye, { rank: l + 1 }),
|
|
3184
3271
|
name: o.name,
|
|
3185
3272
|
secondary: /* @__PURE__ */ r(
|
|
3186
|
-
|
|
3273
|
+
_e,
|
|
3187
3274
|
{
|
|
3188
3275
|
fill: o.magnitude,
|
|
3189
3276
|
variant: o.isBottom ? "bottom" : "default"
|
|
@@ -3191,11 +3278,11 @@ function Ia({
|
|
|
3191
3278
|
),
|
|
3192
3279
|
value: o.value,
|
|
3193
3280
|
trail: /* @__PURE__ */ r(
|
|
3194
|
-
|
|
3281
|
+
ut,
|
|
3195
3282
|
{
|
|
3196
3283
|
delta: o.rankDelta,
|
|
3197
3284
|
direction: o.direction,
|
|
3198
|
-
"aria-label":
|
|
3285
|
+
"aria-label": Pa(o)
|
|
3199
3286
|
}
|
|
3200
3287
|
),
|
|
3201
3288
|
variant: "leaderboard",
|
|
@@ -3205,28 +3292,28 @@ function Ia({
|
|
|
3205
3292
|
)) })
|
|
3206
3293
|
}
|
|
3207
3294
|
),
|
|
3208
|
-
/* @__PURE__ */
|
|
3295
|
+
/* @__PURE__ */ k("div", { className: "gloss-leaderboard__zone-c", children: [
|
|
3209
3296
|
a ?? "WoW",
|
|
3210
3297
|
" rank change"
|
|
3211
3298
|
] })
|
|
3212
3299
|
] });
|
|
3213
3300
|
}
|
|
3214
|
-
|
|
3215
|
-
const
|
|
3301
|
+
Ea.displayName = "LeaderboardCard";
|
|
3302
|
+
const Fa = () => /* @__PURE__ */ k(
|
|
3216
3303
|
"div",
|
|
3217
3304
|
{
|
|
3218
3305
|
className: "leaderboard-tile-preview",
|
|
3219
3306
|
"aria-hidden": "true",
|
|
3220
3307
|
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3221
3308
|
children: [
|
|
3222
|
-
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(
|
|
3223
|
-
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(
|
|
3224
|
-
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(
|
|
3309
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(ye, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(_e, { fill: 96 }), value: "98%" }),
|
|
3310
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(ye, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(_e, { fill: 72 }), value: "85%" }),
|
|
3311
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(ye, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(_e, { fill: 48 }), value: "71%" })
|
|
3225
3312
|
]
|
|
3226
3313
|
}
|
|
3227
3314
|
);
|
|
3228
|
-
|
|
3229
|
-
const
|
|
3315
|
+
Fa.displayName = "LeaderboardTilePreview";
|
|
3316
|
+
const Aa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", Oa = (e, t) => {
|
|
3230
3317
|
const n = e.sourceValue;
|
|
3231
3318
|
if (typeof n != "number") return !1;
|
|
3232
3319
|
switch (t.condition) {
|
|
@@ -3244,7 +3331,7 @@ const Fa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warni
|
|
|
3244
3331
|
return !1;
|
|
3245
3332
|
}
|
|
3246
3333
|
};
|
|
3247
|
-
function
|
|
3334
|
+
function La({
|
|
3248
3335
|
label: e,
|
|
3249
3336
|
rows: t,
|
|
3250
3337
|
rule: n,
|
|
@@ -3253,50 +3340,50 @@ function Aa({
|
|
|
3253
3340
|
ruleSubtitle: s,
|
|
3254
3341
|
isStale: o
|
|
3255
3342
|
}) {
|
|
3256
|
-
const l = t.filter((
|
|
3257
|
-
return l.length === 0 ? /* @__PURE__ */
|
|
3343
|
+
const l = t.filter((d) => Oa(d, n)), u = l.slice(0, a ?? 3);
|
|
3344
|
+
return l.length === 0 ? /* @__PURE__ */ k(te, { children: [
|
|
3258
3345
|
/* @__PURE__ */ r(
|
|
3259
|
-
|
|
3346
|
+
be,
|
|
3260
3347
|
{
|
|
3261
3348
|
className: "gloss-metric-card__zone-a",
|
|
3262
3349
|
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3263
|
-
children: /* @__PURE__ */ r(
|
|
3350
|
+
children: /* @__PURE__ */ r(Ee, { className: "gloss-metric-card__label", children: e })
|
|
3264
3351
|
}
|
|
3265
3352
|
),
|
|
3266
3353
|
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: i ?? "No exceptions" }),
|
|
3267
3354
|
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3268
|
-
] }) : /* @__PURE__ */
|
|
3355
|
+
] }) : /* @__PURE__ */ k(te, { children: [
|
|
3269
3356
|
/* @__PURE__ */ r(
|
|
3270
|
-
|
|
3357
|
+
be,
|
|
3271
3358
|
{
|
|
3272
3359
|
className: "gloss-metric-card__zone-a",
|
|
3273
3360
|
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3274
|
-
children: /* @__PURE__ */ r(
|
|
3361
|
+
children: /* @__PURE__ */ r(Ee, { className: "gloss-metric-card__label", children: e })
|
|
3275
3362
|
}
|
|
3276
3363
|
),
|
|
3277
3364
|
/* @__PURE__ */ r(
|
|
3278
|
-
|
|
3365
|
+
be,
|
|
3279
3366
|
{
|
|
3280
3367
|
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3281
3368
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3282
|
-
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children:
|
|
3369
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((d, h) => /* @__PURE__ */ r(
|
|
3283
3370
|
X,
|
|
3284
3371
|
{
|
|
3285
|
-
lead: /* @__PURE__ */ r(
|
|
3286
|
-
name:
|
|
3287
|
-
value:
|
|
3372
|
+
lead: /* @__PURE__ */ r(we, { severity: d.severity, "aria-label": Aa(d.severity) }),
|
|
3373
|
+
name: d.name,
|
|
3374
|
+
value: d.value,
|
|
3288
3375
|
variant: "exception",
|
|
3289
|
-
style: { "--i":
|
|
3376
|
+
style: { "--i": h }
|
|
3290
3377
|
},
|
|
3291
|
-
|
|
3378
|
+
d.id
|
|
3292
3379
|
)) })
|
|
3293
3380
|
}
|
|
3294
3381
|
),
|
|
3295
3382
|
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3296
3383
|
] });
|
|
3297
3384
|
}
|
|
3298
|
-
|
|
3299
|
-
const
|
|
3385
|
+
La.displayName = "ExceptionListCard";
|
|
3386
|
+
const $a = () => /* @__PURE__ */ k(
|
|
3300
3387
|
"div",
|
|
3301
3388
|
{
|
|
3302
3389
|
className: "exception-list-tile-preview",
|
|
@@ -3306,7 +3393,7 @@ const Oa = () => /* @__PURE__ */ D(
|
|
|
3306
3393
|
/* @__PURE__ */ r(
|
|
3307
3394
|
X,
|
|
3308
3395
|
{
|
|
3309
|
-
lead: /* @__PURE__ */ r(
|
|
3396
|
+
lead: /* @__PURE__ */ r(we, { severity: "critical", "aria-label": "Critical severity" }),
|
|
3310
3397
|
name: "SKU A",
|
|
3311
3398
|
value: "0 on hand"
|
|
3312
3399
|
}
|
|
@@ -3314,7 +3401,7 @@ const Oa = () => /* @__PURE__ */ D(
|
|
|
3314
3401
|
/* @__PURE__ */ r(
|
|
3315
3402
|
X,
|
|
3316
3403
|
{
|
|
3317
|
-
lead: /* @__PURE__ */ r(
|
|
3404
|
+
lead: /* @__PURE__ */ r(we, { severity: "warn", "aria-label": "Warning severity" }),
|
|
3318
3405
|
name: "SKU B",
|
|
3319
3406
|
value: "3 units"
|
|
3320
3407
|
}
|
|
@@ -3322,7 +3409,7 @@ const Oa = () => /* @__PURE__ */ D(
|
|
|
3322
3409
|
/* @__PURE__ */ r(
|
|
3323
3410
|
X,
|
|
3324
3411
|
{
|
|
3325
|
-
lead: /* @__PURE__ */ r(
|
|
3412
|
+
lead: /* @__PURE__ */ r(we, { severity: "info", "aria-label": "Info severity" }),
|
|
3326
3413
|
name: "SKU C",
|
|
3327
3414
|
value: "12 days"
|
|
3328
3415
|
}
|
|
@@ -3330,29 +3417,29 @@ const Oa = () => /* @__PURE__ */ D(
|
|
|
3330
3417
|
]
|
|
3331
3418
|
}
|
|
3332
3419
|
);
|
|
3333
|
-
|
|
3334
|
-
const
|
|
3420
|
+
$a.displayName = "ExceptionListTilePreview";
|
|
3421
|
+
const Xe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Je = ["$248K", "$612K", "$1.24M", "$980K", "$54K"], et = [
|
|
3335
3422
|
"M0,7 L10,5 L20,6 L30,3 L40,2",
|
|
3336
3423
|
"M0,6 L10,4 L20,5 L30,2 L40,1",
|
|
3337
3424
|
"M0,8 L10,7 L20,5 L30,4 L40,2",
|
|
3338
3425
|
"M0,5 L10,6 L20,3 L30,4 L40,1",
|
|
3339
3426
|
"M0,7 L10,4 L20,5 L30,3 L40,2"
|
|
3340
|
-
],
|
|
3427
|
+
], Ba = ({
|
|
3341
3428
|
slotCount: e = 3,
|
|
3342
|
-
labels: t =
|
|
3343
|
-
sampleValues: n =
|
|
3429
|
+
labels: t = Xe,
|
|
3430
|
+
sampleValues: n = Je
|
|
3344
3431
|
}) => {
|
|
3345
3432
|
const a = Array.from({ length: e }, (i, s) => ({
|
|
3346
|
-
label: t[s] ??
|
|
3347
|
-
value: n[s] ??
|
|
3348
|
-
sparkPath:
|
|
3433
|
+
label: t[s] ?? Xe[s] ?? "",
|
|
3434
|
+
value: n[s] ?? Je[s] ?? "",
|
|
3435
|
+
sparkPath: et[s % et.length]
|
|
3349
3436
|
}));
|
|
3350
3437
|
return e === 1 ? /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--single", "aria-hidden": "true", children: /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview__single-value", children: a[0].value }) }) : /* @__PURE__ */ r(
|
|
3351
3438
|
"div",
|
|
3352
3439
|
{
|
|
3353
3440
|
className: `gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--slots-${e}`,
|
|
3354
3441
|
"aria-hidden": "true",
|
|
3355
|
-
children: a.map((i, s) => /* @__PURE__ */
|
|
3442
|
+
children: a.map((i, s) => /* @__PURE__ */ k("div", { className: "gloss-stacked-group-tile-preview__row", children: [
|
|
3356
3443
|
/* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-label", children: i.label }),
|
|
3357
3444
|
/* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-value", children: i.value }),
|
|
3358
3445
|
/* @__PURE__ */ r(
|
|
@@ -3371,8 +3458,8 @@ const qe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Qe = ["$248K", "$612K", "$1.24M"
|
|
|
3371
3458
|
}
|
|
3372
3459
|
);
|
|
3373
3460
|
};
|
|
3374
|
-
|
|
3375
|
-
const
|
|
3461
|
+
Ba.displayName = "StackedGroupTilePreview";
|
|
3462
|
+
const Ir = {
|
|
3376
3463
|
/** GEV-01 — Eligibility tint. Contiguous-from-source paint; blocked by first occupied cell (Principle 4). */
|
|
3377
3464
|
eligibilityTint: { applicableStates: ["arming", "active"] },
|
|
3378
3465
|
/** GEV-01 — Commit tint. Fill+stroke emphasis on the commit-target cell footprint (G-02). */
|
|
@@ -3391,7 +3478,7 @@ const Mr = {
|
|
|
3391
3478
|
hideOnActive: { applicableStates: ["active"] },
|
|
3392
3479
|
/** GEV-01 — Refuse pulse. Discrete moment of crossing into rejection. Fires ONCE per transition (Principle 2). No strobing. */
|
|
3393
3480
|
refusePulse: { applicableStates: ["active"] }
|
|
3394
|
-
},
|
|
3481
|
+
}, tt = {
|
|
3395
3482
|
baseCellTint: "#F1F4F8",
|
|
3396
3483
|
// Grey · Neutral −2
|
|
3397
3484
|
eligibilityFill: "#6F87D2",
|
|
@@ -3414,8 +3501,8 @@ const Mr = {
|
|
|
3414
3501
|
rejectionFill: "var(--gloss-g02-rejection-fill)",
|
|
3415
3502
|
rejectionStroke: "var(--gloss-g02-rejection-stroke)",
|
|
3416
3503
|
trackingOutline: "var(--gloss-g02-tracking-outline)"
|
|
3417
|
-
},
|
|
3418
|
-
function
|
|
3504
|
+
}, Pr = "dashed", Er = "solid", Fr = "sparse-dash", Ar = "2px no-fill", Ka = 3;
|
|
3505
|
+
function Or({
|
|
3419
3506
|
cell: e,
|
|
3420
3507
|
variant: t,
|
|
3421
3508
|
rampColor: n,
|
|
@@ -3424,10 +3511,10 @@ function Er({
|
|
|
3424
3511
|
gap: s,
|
|
3425
3512
|
className: o
|
|
3426
3513
|
}) {
|
|
3427
|
-
const
|
|
3514
|
+
const u = (e.section * Ka + e.col) * (a + s), d = e.row * (i + s), h = t === "eligibility" ? se.eligibilityFill : t === "commit" ? se.commitFill : t === "rejection" ? se.rejectionFill : (
|
|
3428
3515
|
/* ramp */
|
|
3429
3516
|
n ?? se.eligibilityFill
|
|
3430
|
-
),
|
|
3517
|
+
), m = t === "rejection", g = m ? se.rejectionStroke : "transparent", c = m ? "dashed" : "solid";
|
|
3431
3518
|
return /* @__PURE__ */ r(
|
|
3432
3519
|
"div",
|
|
3433
3520
|
{
|
|
@@ -3440,25 +3527,25 @@ function Er({
|
|
|
3440
3527
|
"data-variant": t,
|
|
3441
3528
|
"aria-hidden": "true",
|
|
3442
3529
|
style: {
|
|
3443
|
-
transform: `translate(${
|
|
3530
|
+
transform: `translate(${u}px, ${d}px)`,
|
|
3444
3531
|
width: a,
|
|
3445
3532
|
height: i,
|
|
3446
3533
|
// Use background-color longhand (NOT background shorthand) so jsdom + DOM
|
|
3447
3534
|
// both preserve `var(...)` in inline cssText. The shorthand getter strips
|
|
3448
3535
|
// unknown values and breaks both unit-test introspection and styling.
|
|
3449
|
-
backgroundColor:
|
|
3536
|
+
backgroundColor: h,
|
|
3450
3537
|
borderColor: g,
|
|
3451
|
-
borderStyle:
|
|
3538
|
+
borderStyle: c
|
|
3452
3539
|
}
|
|
3453
3540
|
}
|
|
3454
3541
|
);
|
|
3455
3542
|
}
|
|
3456
|
-
const
|
|
3543
|
+
const za = 3, Wa = [
|
|
3457
3544
|
{ idx: 0, peakR: 22, peakOpacity: 0.45, strokeW: 1.5 },
|
|
3458
3545
|
{ idx: 1, peakR: 34, peakOpacity: 0.22, strokeW: 1 },
|
|
3459
3546
|
{ idx: 2, peakR: 46, peakOpacity: 0.1, strokeW: 0.8 }
|
|
3460
3547
|
];
|
|
3461
|
-
function
|
|
3548
|
+
function Lr({
|
|
3462
3549
|
cell: e,
|
|
3463
3550
|
fireKey: t,
|
|
3464
3551
|
colWidth: n,
|
|
@@ -3466,8 +3553,8 @@ function Ar({
|
|
|
3466
3553
|
gap: i,
|
|
3467
3554
|
className: s
|
|
3468
3555
|
}) {
|
|
3469
|
-
const l = (e.section *
|
|
3470
|
-
return
|
|
3556
|
+
const l = (e.section * za + e.col) * (n + i) + n / 2, u = e.row * (a + i) + a / 2;
|
|
3557
|
+
return nt() === "reduced" ? /* @__PURE__ */ r(
|
|
3471
3558
|
"div",
|
|
3472
3559
|
{
|
|
3473
3560
|
className: ["gloss-refuse-pulse-flash", s].filter(Boolean).join(" "),
|
|
@@ -3477,7 +3564,7 @@ function Ar({
|
|
|
3477
3564
|
style: {
|
|
3478
3565
|
position: "absolute",
|
|
3479
3566
|
left: l - 24,
|
|
3480
|
-
top:
|
|
3567
|
+
top: u - 24,
|
|
3481
3568
|
width: 48,
|
|
3482
3569
|
height: 48,
|
|
3483
3570
|
borderRadius: "50%",
|
|
@@ -3495,7 +3582,7 @@ function Ar({
|
|
|
3495
3582
|
"data-testid": "gloss-refuse-pulse",
|
|
3496
3583
|
"data-fire-key": t,
|
|
3497
3584
|
"data-cx": l,
|
|
3498
|
-
"data-cy":
|
|
3585
|
+
"data-cy": u,
|
|
3499
3586
|
"aria-hidden": "true",
|
|
3500
3587
|
style: {
|
|
3501
3588
|
position: "absolute",
|
|
@@ -3503,80 +3590,80 @@ function Ar({
|
|
|
3503
3590
|
top: 0,
|
|
3504
3591
|
pointerEvents: "none"
|
|
3505
3592
|
},
|
|
3506
|
-
children:
|
|
3507
|
-
const
|
|
3593
|
+
children: Wa.map((h) => {
|
|
3594
|
+
const m = h.peakR * 2;
|
|
3508
3595
|
return /* @__PURE__ */ r(
|
|
3509
3596
|
"div",
|
|
3510
3597
|
{
|
|
3511
|
-
className: `gloss-refuse-pulse__ring gloss-refuse-pulse__ring--${
|
|
3512
|
-
"data-ring-index":
|
|
3513
|
-
"data-peak-radius":
|
|
3514
|
-
"data-peak-opacity":
|
|
3598
|
+
className: `gloss-refuse-pulse__ring gloss-refuse-pulse__ring--${h.idx}`,
|
|
3599
|
+
"data-ring-index": h.idx,
|
|
3600
|
+
"data-peak-radius": h.peakR,
|
|
3601
|
+
"data-peak-opacity": h.peakOpacity,
|
|
3515
3602
|
style: {
|
|
3516
3603
|
position: "absolute",
|
|
3517
|
-
left: l -
|
|
3518
|
-
top:
|
|
3519
|
-
width:
|
|
3520
|
-
height:
|
|
3604
|
+
left: l - h.peakR,
|
|
3605
|
+
top: u - h.peakR,
|
|
3606
|
+
width: m,
|
|
3607
|
+
height: m,
|
|
3521
3608
|
borderRadius: "50%",
|
|
3522
3609
|
borderStyle: "solid",
|
|
3523
|
-
borderWidth:
|
|
3610
|
+
borderWidth: h.strokeW,
|
|
3524
3611
|
borderColor: se.rejectionStroke,
|
|
3525
3612
|
background: "transparent",
|
|
3526
3613
|
opacity: 0,
|
|
3527
3614
|
transform: "scale(0)",
|
|
3528
3615
|
// CSS custom property feeds the keyframe peak opacity.
|
|
3529
|
-
"--peak-opacity":
|
|
3530
|
-
animation: `gloss-refuse-pulse-ring-${
|
|
3616
|
+
"--peak-opacity": h.peakOpacity,
|
|
3617
|
+
animation: `gloss-refuse-pulse-ring-${h.idx} 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards`
|
|
3531
3618
|
}
|
|
3532
3619
|
},
|
|
3533
|
-
|
|
3620
|
+
h.idx
|
|
3534
3621
|
);
|
|
3535
3622
|
})
|
|
3536
3623
|
},
|
|
3537
3624
|
t
|
|
3538
3625
|
);
|
|
3539
3626
|
}
|
|
3540
|
-
function
|
|
3541
|
-
return /* @__PURE__ */ r(
|
|
3627
|
+
function $r(e) {
|
|
3628
|
+
return /* @__PURE__ */ r(dt, { gesture: "resize", ...e });
|
|
3542
3629
|
}
|
|
3543
|
-
const
|
|
3630
|
+
const ja = Object.freeze({
|
|
3544
3631
|
trackingOutline: null,
|
|
3545
3632
|
cellTints: [],
|
|
3546
3633
|
refusePulse: null,
|
|
3547
3634
|
shrinkFreedCells: []
|
|
3548
3635
|
});
|
|
3549
|
-
function
|
|
3550
|
-
const a = Math.max(0, Math.min(1, n)), i = (
|
|
3551
|
-
parseInt(
|
|
3552
|
-
parseInt(
|
|
3553
|
-
parseInt(
|
|
3554
|
-
], [s, o, l] = i(e), [
|
|
3555
|
-
return `rgb(${Math.round(s + (
|
|
3556
|
-
l + (
|
|
3636
|
+
function Ga(e, t, n) {
|
|
3637
|
+
const a = Math.max(0, Math.min(1, n)), i = (m) => [
|
|
3638
|
+
parseInt(m.slice(1, 3), 16),
|
|
3639
|
+
parseInt(m.slice(3, 5), 16),
|
|
3640
|
+
parseInt(m.slice(5, 7), 16)
|
|
3641
|
+
], [s, o, l] = i(e), [u, d, h] = i(t);
|
|
3642
|
+
return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (d - o) * a)}, ${Math.round(
|
|
3643
|
+
l + (h - l) * a
|
|
3557
3644
|
)})`;
|
|
3558
3645
|
}
|
|
3559
|
-
function
|
|
3646
|
+
function Va(e) {
|
|
3560
3647
|
return e <= 1 ? 1 : e >= 3 ? 3 : 2;
|
|
3561
3648
|
}
|
|
3562
|
-
function
|
|
3649
|
+
function Ha(e) {
|
|
3563
3650
|
return e !== "idle" && e !== "settling" && e !== "cancelled";
|
|
3564
3651
|
}
|
|
3565
|
-
function
|
|
3566
|
-
const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e,
|
|
3567
|
-
if (!
|
|
3568
|
-
return
|
|
3569
|
-
const
|
|
3570
|
-
|
|
3571
|
-
const
|
|
3652
|
+
function Br(e) {
|
|
3653
|
+
const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, u = nt() === "reduced", d = ce.useRef(t.currentColSpan), h = ce.useRef({ armed: !0, fireKey: 0, lastResult: null });
|
|
3654
|
+
if (!Ha(t.state))
|
|
3655
|
+
return h.current.armed = !0, h.current.lastResult = null, ja;
|
|
3656
|
+
const m = t.hysteresisTargetColSpan, g = t.previewColSpan, c = a?.result === "rejected";
|
|
3657
|
+
c || (d.current = m), c && h.current.armed && h.current.lastResult !== "rejected" && (h.current.fireKey += 1, h.current.armed = !1), h.current.lastResult = c ? "rejected" : "ok";
|
|
3658
|
+
const _ = c ? d.current : m, b = {
|
|
3572
3659
|
cell: { section: 0, col: 0, row: 0 },
|
|
3573
|
-
colSpan:
|
|
3574
|
-
pattern:
|
|
3575
|
-
},
|
|
3576
|
-
if (
|
|
3577
|
-
const
|
|
3578
|
-
for (let x =
|
|
3579
|
-
|
|
3660
|
+
colSpan: _,
|
|
3661
|
+
pattern: c ? "dashed-retreated" : "solid"
|
|
3662
|
+
}, f = [];
|
|
3663
|
+
if (c) {
|
|
3664
|
+
const y = n.col + d.current, M = n.col + m - 1;
|
|
3665
|
+
for (let x = y; x <= M && x <= 2; x++)
|
|
3666
|
+
f.push({
|
|
3580
3667
|
cell: {
|
|
3581
3668
|
section: 0,
|
|
3582
3669
|
col: x - n.col,
|
|
@@ -3585,44 +3672,44 @@ function Lr(e) {
|
|
|
3585
3672
|
variant: "rejection"
|
|
3586
3673
|
});
|
|
3587
3674
|
} else {
|
|
3588
|
-
const
|
|
3589
|
-
for (let x = n.col; x < n.col +
|
|
3675
|
+
const y = Math.abs(g - m), M = Math.max(0, Math.min(1, 1 - y));
|
|
3676
|
+
for (let x = n.col; x < n.col + m && x <= 2; x++) {
|
|
3590
3677
|
if (x === n.col) continue;
|
|
3591
|
-
const
|
|
3678
|
+
const p = x === n.col + m - 1, v = {
|
|
3592
3679
|
section: 0,
|
|
3593
3680
|
col: x - n.col,
|
|
3594
3681
|
row: 0
|
|
3595
3682
|
};
|
|
3596
|
-
|
|
3683
|
+
p && t.direction.startsWith("grow") && m > 1 && !u && y > 0 && y < 1 ? f.push({
|
|
3597
3684
|
cell: v,
|
|
3598
3685
|
variant: "ramp",
|
|
3599
|
-
rampColor:
|
|
3600
|
-
}) :
|
|
3686
|
+
rampColor: Ga(tt.eligibilityFill, tt.commitFill, M)
|
|
3687
|
+
}) : p ? f.push({ cell: v, variant: "commit" }) : f.push({ cell: v, variant: "eligibility" });
|
|
3601
3688
|
}
|
|
3602
3689
|
}
|
|
3603
|
-
const
|
|
3604
|
-
if (t.currentColSpan >
|
|
3605
|
-
for (let
|
|
3606
|
-
|
|
3690
|
+
const R = [];
|
|
3691
|
+
if (t.currentColSpan > m)
|
|
3692
|
+
for (let y = n.col + m; y < n.col + t.currentColSpan && y <= 2; y++)
|
|
3693
|
+
R.push({
|
|
3607
3694
|
section: 0,
|
|
3608
|
-
col:
|
|
3695
|
+
col: y - n.col,
|
|
3609
3696
|
row: 0
|
|
3610
3697
|
});
|
|
3611
|
-
const
|
|
3698
|
+
const I = h.current.fireKey > 0 ? {
|
|
3612
3699
|
cell: {
|
|
3613
3700
|
section: 0,
|
|
3614
|
-
col:
|
|
3615
|
-
Math.min(
|
|
3701
|
+
col: Va(
|
|
3702
|
+
Math.min(d.current, 2)
|
|
3616
3703
|
),
|
|
3617
3704
|
row: 0
|
|
3618
3705
|
},
|
|
3619
|
-
fireKey:
|
|
3706
|
+
fireKey: h.current.fireKey
|
|
3620
3707
|
} : null;
|
|
3621
3708
|
return {
|
|
3622
3709
|
trackingOutline: b,
|
|
3623
|
-
cellTints:
|
|
3624
|
-
refusePulse:
|
|
3625
|
-
shrinkFreedCells:
|
|
3710
|
+
cellTints: f,
|
|
3711
|
+
refusePulse: I,
|
|
3712
|
+
shrinkFreedCells: R
|
|
3626
3713
|
};
|
|
3627
3714
|
}
|
|
3628
3715
|
const ne = {
|
|
@@ -3633,7 +3720,7 @@ const ne = {
|
|
|
3633
3720
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
3634
3721
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
3635
3722
|
};
|
|
3636
|
-
function
|
|
3723
|
+
function Ua({
|
|
3637
3724
|
message: e,
|
|
3638
3725
|
primaryAction: t,
|
|
3639
3726
|
onDismiss: n,
|
|
@@ -3649,27 +3736,27 @@ function Va({
|
|
|
3649
3736
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3650
3737
|
);
|
|
3651
3738
|
}, [a, i]), V.useLayoutEffect(() => {
|
|
3652
|
-
let
|
|
3653
|
-
if (a ?
|
|
3654
|
-
const
|
|
3739
|
+
let d = null;
|
|
3740
|
+
if (a ? d = a : i && (d = document.querySelector(i)), d) {
|
|
3741
|
+
const h = d.getBoundingClientRect();
|
|
3655
3742
|
o({
|
|
3656
|
-
top:
|
|
3657
|
-
left:
|
|
3743
|
+
top: h.bottom + window.scrollY + 6,
|
|
3744
|
+
left: h.left + window.scrollX
|
|
3658
3745
|
});
|
|
3659
3746
|
}
|
|
3660
3747
|
}, [a, i]);
|
|
3661
|
-
const
|
|
3662
|
-
return /* @__PURE__ */
|
|
3748
|
+
const u = s ? { top: s.top, left: s.left } : {};
|
|
3749
|
+
return /* @__PURE__ */ k(
|
|
3663
3750
|
"div",
|
|
3664
3751
|
{
|
|
3665
3752
|
className: ne["gloss-inline-nudge"],
|
|
3666
|
-
style:
|
|
3753
|
+
style: u,
|
|
3667
3754
|
role: "status",
|
|
3668
3755
|
"aria-live": "polite",
|
|
3669
3756
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3670
3757
|
children: [
|
|
3671
3758
|
/* @__PURE__ */ r("span", { className: ne["gloss-inline-nudge__message"], children: e }),
|
|
3672
|
-
/* @__PURE__ */
|
|
3759
|
+
/* @__PURE__ */ k("div", { className: ne["gloss-inline-nudge__actions"], children: [
|
|
3673
3760
|
/* @__PURE__ */ r(
|
|
3674
3761
|
"button",
|
|
3675
3762
|
{
|
|
@@ -3694,25 +3781,25 @@ function Va({
|
|
|
3694
3781
|
}
|
|
3695
3782
|
);
|
|
3696
3783
|
}
|
|
3697
|
-
|
|
3698
|
-
function
|
|
3784
|
+
Ua.displayName = "InlineNudge";
|
|
3785
|
+
function Be(e) {
|
|
3699
3786
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3700
3787
|
}
|
|
3701
|
-
function
|
|
3788
|
+
function Za(e, t, n) {
|
|
3702
3789
|
if (n <= t) {
|
|
3703
|
-
const o = e[0], l = o ?
|
|
3790
|
+
const o = e[0], l = o ? Be(o) : "#888";
|
|
3704
3791
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
3705
3792
|
}
|
|
3706
3793
|
const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
3707
3794
|
const l = (o.value - t) / a * 100;
|
|
3708
|
-
return `${
|
|
3795
|
+
return `${Be(o)} ${l.toFixed(2)}%`;
|
|
3709
3796
|
});
|
|
3710
3797
|
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(", ")})`;
|
|
3711
3798
|
}
|
|
3712
|
-
function
|
|
3799
|
+
function Ya(e) {
|
|
3713
3800
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3714
3801
|
}
|
|
3715
|
-
function
|
|
3802
|
+
function qa({
|
|
3716
3803
|
stops: e,
|
|
3717
3804
|
onChange: t,
|
|
3718
3805
|
min: n = 0,
|
|
@@ -3722,18 +3809,18 @@ function Za({
|
|
|
3722
3809
|
}) {
|
|
3723
3810
|
const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3724
3811
|
`ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
|
|
3725
|
-
), 0.01) : i, l =
|
|
3726
|
-
(
|
|
3812
|
+
), 0.01) : i, l = N(
|
|
3813
|
+
(p) => Math.round(p / o) * o,
|
|
3727
3814
|
[o]
|
|
3728
|
-
),
|
|
3815
|
+
), u = P(null), [d, h] = $(null), [m, g] = $(e), c = Ya(e), _ = P(c);
|
|
3729
3816
|
O(() => {
|
|
3730
|
-
|
|
3731
|
-
}, [
|
|
3732
|
-
const b =
|
|
3733
|
-
(
|
|
3734
|
-
if (!
|
|
3735
|
-
const v =
|
|
3736
|
-
return l(
|
|
3817
|
+
_.current !== c && (_.current = c, !d && g(e));
|
|
3818
|
+
}, [c, e, d]);
|
|
3819
|
+
const b = Ne(() => Za(m, n, a), [m, n, a]), f = N(
|
|
3820
|
+
(p) => {
|
|
3821
|
+
if (!u.current) return n;
|
|
3822
|
+
const v = u.current.getBoundingClientRect(), D = v.width || 1, T = Math.max(0, Math.min(1, (p - v.left) / D)), w = n + T * (a - n);
|
|
3823
|
+
return l(w);
|
|
3737
3824
|
},
|
|
3738
3825
|
[n, a, l]
|
|
3739
3826
|
);
|
|
@@ -3742,119 +3829,119 @@ function Za({
|
|
|
3742
3829
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
3743
3830
|
);
|
|
3744
3831
|
}, [n, a]);
|
|
3745
|
-
const
|
|
3746
|
-
(
|
|
3747
|
-
const
|
|
3748
|
-
s ||
|
|
3832
|
+
const R = N(
|
|
3833
|
+
(p, v) => {
|
|
3834
|
+
const D = m.find((T) => T.id === v);
|
|
3835
|
+
s || D?.disabled || (p.preventDefault(), h(v));
|
|
3749
3836
|
},
|
|
3750
|
-
[s,
|
|
3751
|
-
),
|
|
3752
|
-
|
|
3753
|
-
const
|
|
3754
|
-
|
|
3755
|
-
if (!
|
|
3756
|
-
const
|
|
3757
|
-
const
|
|
3837
|
+
[s, m]
|
|
3838
|
+
), I = P(m);
|
|
3839
|
+
I.current = m;
|
|
3840
|
+
const y = P(t);
|
|
3841
|
+
y.current = t, O(() => {
|
|
3842
|
+
if (!d) return;
|
|
3843
|
+
const p = (D) => {
|
|
3844
|
+
const T = f(D.clientX);
|
|
3758
3845
|
g(
|
|
3759
|
-
(
|
|
3846
|
+
(w) => w.map((S) => S.id === d ? { ...S, value: T } : S)
|
|
3760
3847
|
);
|
|
3761
|
-
}, v = (
|
|
3762
|
-
const
|
|
3763
|
-
(S) => S.id ===
|
|
3848
|
+
}, v = (D) => {
|
|
3849
|
+
const T = f(D.clientX), w = I.current.map(
|
|
3850
|
+
(S) => S.id === d ? { ...S, value: T } : S
|
|
3764
3851
|
);
|
|
3765
|
-
g(
|
|
3852
|
+
g(w), h(null), y.current(w);
|
|
3766
3853
|
};
|
|
3767
|
-
return window.addEventListener("pointermove",
|
|
3768
|
-
window.removeEventListener("pointermove",
|
|
3854
|
+
return window.addEventListener("pointermove", p), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
3855
|
+
window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
3769
3856
|
};
|
|
3770
|
-
}, [
|
|
3771
|
-
const
|
|
3772
|
-
(
|
|
3857
|
+
}, [d, f]);
|
|
3858
|
+
const M = a - n > 0 ? a - n : 1, x = N(
|
|
3859
|
+
(p, v) => {
|
|
3773
3860
|
if (s || v.disabled) return;
|
|
3774
|
-
const
|
|
3775
|
-
if (
|
|
3776
|
-
const
|
|
3777
|
-
let
|
|
3778
|
-
switch (
|
|
3861
|
+
const D = a - n;
|
|
3862
|
+
if (D <= 0) return;
|
|
3863
|
+
const T = p.shiftKey ? D / 20 : D / 100;
|
|
3864
|
+
let w = v.value;
|
|
3865
|
+
switch (p.key) {
|
|
3779
3866
|
case "ArrowRight":
|
|
3780
3867
|
case "ArrowUp":
|
|
3781
|
-
|
|
3868
|
+
w = v.value + T;
|
|
3782
3869
|
break;
|
|
3783
3870
|
case "ArrowLeft":
|
|
3784
3871
|
case "ArrowDown":
|
|
3785
|
-
|
|
3872
|
+
w = v.value - T;
|
|
3786
3873
|
break;
|
|
3787
3874
|
case "Home":
|
|
3788
|
-
|
|
3875
|
+
w = n;
|
|
3789
3876
|
break;
|
|
3790
3877
|
case "End":
|
|
3791
|
-
|
|
3878
|
+
w = a;
|
|
3792
3879
|
break;
|
|
3793
3880
|
default:
|
|
3794
3881
|
return;
|
|
3795
3882
|
}
|
|
3796
|
-
|
|
3797
|
-
const S = Math.max(n, Math.min(a,
|
|
3798
|
-
if (
|
|
3799
|
-
const H =
|
|
3800
|
-
(Y) => Y.id === v.id ? { ...Y, value:
|
|
3883
|
+
p.preventDefault();
|
|
3884
|
+
const S = Math.max(n, Math.min(a, w)), E = l(S);
|
|
3885
|
+
if (E === v.value) return;
|
|
3886
|
+
const H = m.map(
|
|
3887
|
+
(Y) => Y.id === v.id ? { ...Y, value: E } : Y
|
|
3801
3888
|
);
|
|
3802
3889
|
g(H), t(H);
|
|
3803
3890
|
},
|
|
3804
|
-
[s, n, a,
|
|
3891
|
+
[s, n, a, m, t, l]
|
|
3805
3892
|
);
|
|
3806
3893
|
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
|
|
3807
3894
|
"div",
|
|
3808
3895
|
{
|
|
3809
|
-
ref:
|
|
3896
|
+
ref: u,
|
|
3810
3897
|
className: "gloss-threshold-ramp__track",
|
|
3811
3898
|
style: { background: b },
|
|
3812
|
-
children:
|
|
3813
|
-
const v = (
|
|
3899
|
+
children: m.map((p) => {
|
|
3900
|
+
const v = (p.value - n) / M * 100;
|
|
3814
3901
|
return /* @__PURE__ */ r(
|
|
3815
3902
|
"span",
|
|
3816
3903
|
{
|
|
3817
3904
|
className: "gloss-threshold-ramp__stop",
|
|
3818
3905
|
style: {
|
|
3819
3906
|
left: `${v}%`,
|
|
3820
|
-
color:
|
|
3907
|
+
color: Be(p)
|
|
3821
3908
|
},
|
|
3822
|
-
"data-disabled":
|
|
3823
|
-
"data-dragging":
|
|
3824
|
-
onPointerDown: (
|
|
3825
|
-
onKeyDown: (
|
|
3826
|
-
"aria-label":
|
|
3909
|
+
"data-disabled": p.disabled || void 0,
|
|
3910
|
+
"data-dragging": d === p.id || void 0,
|
|
3911
|
+
onPointerDown: (D) => R(D, p.id),
|
|
3912
|
+
onKeyDown: (D) => x(D, p),
|
|
3913
|
+
"aria-label": p.label ?? `Stop at ${p.value}`,
|
|
3827
3914
|
role: "slider",
|
|
3828
|
-
"aria-valuenow":
|
|
3915
|
+
"aria-valuenow": p.value,
|
|
3829
3916
|
"aria-valuemin": n,
|
|
3830
3917
|
"aria-valuemax": a,
|
|
3831
|
-
"aria-disabled":
|
|
3832
|
-
tabIndex:
|
|
3918
|
+
"aria-disabled": p.disabled || s || void 0,
|
|
3919
|
+
tabIndex: p.disabled || s ? -1 : 0
|
|
3833
3920
|
},
|
|
3834
|
-
|
|
3921
|
+
p.id
|
|
3835
3922
|
);
|
|
3836
3923
|
})
|
|
3837
3924
|
}
|
|
3838
3925
|
) });
|
|
3839
3926
|
}
|
|
3840
|
-
|
|
3841
|
-
const
|
|
3842
|
-
function
|
|
3843
|
-
return
|
|
3927
|
+
qa.displayName = "ThresholdRamp";
|
|
3928
|
+
const mt = Ct(null);
|
|
3929
|
+
function Qa() {
|
|
3930
|
+
return xt(mt);
|
|
3844
3931
|
}
|
|
3845
|
-
function
|
|
3846
|
-
const t =
|
|
3932
|
+
function Xa({ option: e }) {
|
|
3933
|
+
const t = Qa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = N(() => {
|
|
3847
3934
|
a || t?.select(e.value);
|
|
3848
|
-
}, [a, t, e.value]), s =
|
|
3849
|
-
(
|
|
3850
|
-
a || t?.onKeyNav(
|
|
3935
|
+
}, [a, t, e.value]), s = N(
|
|
3936
|
+
(d) => {
|
|
3937
|
+
a || t?.onKeyNav(d, e.value);
|
|
3851
3938
|
},
|
|
3852
3939
|
[a, t, e.value]
|
|
3853
|
-
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value,
|
|
3940
|
+
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, u = a ? -1 : l ? 0 : -1;
|
|
3854
3941
|
return /* @__PURE__ */ r(
|
|
3855
3942
|
"button",
|
|
3856
3943
|
{
|
|
3857
|
-
ref: (
|
|
3944
|
+
ref: (d) => t?.registerRef(e.value, d),
|
|
3858
3945
|
type: "button",
|
|
3859
3946
|
role: "radio",
|
|
3860
3947
|
"aria-checked": n,
|
|
@@ -3866,13 +3953,13 @@ function qa({ option: e }) {
|
|
|
3866
3953
|
"aria-label": e.label ?? e.value,
|
|
3867
3954
|
"aria-disabled": a,
|
|
3868
3955
|
disabled: a,
|
|
3869
|
-
tabIndex:
|
|
3956
|
+
tabIndex: u,
|
|
3870
3957
|
onClick: i,
|
|
3871
3958
|
onKeyDown: s
|
|
3872
3959
|
}
|
|
3873
3960
|
);
|
|
3874
3961
|
}
|
|
3875
|
-
function
|
|
3962
|
+
function Ja({
|
|
3876
3963
|
swatches: e,
|
|
3877
3964
|
value: t,
|
|
3878
3965
|
defaultValue: n,
|
|
@@ -3880,35 +3967,35 @@ function Qa({
|
|
|
3880
3967
|
disabled: i = !1,
|
|
3881
3968
|
name: s
|
|
3882
3969
|
}) {
|
|
3883
|
-
const o = t !== void 0, [l,
|
|
3884
|
-
(
|
|
3885
|
-
o ||
|
|
3970
|
+
const o = t !== void 0, [l, u] = $(n), d = o ? t : l, h = N(
|
|
3971
|
+
(y) => {
|
|
3972
|
+
o || u(y), a?.(y);
|
|
3886
3973
|
},
|
|
3887
3974
|
[o, a]
|
|
3888
|
-
),
|
|
3889
|
-
(
|
|
3890
|
-
[
|
|
3891
|
-
), g =
|
|
3892
|
-
|
|
3893
|
-
}, []),
|
|
3894
|
-
const
|
|
3895
|
-
|
|
3896
|
-
}, []),
|
|
3897
|
-
(
|
|
3975
|
+
), m = N(
|
|
3976
|
+
(y) => d === y,
|
|
3977
|
+
[d]
|
|
3978
|
+
), g = P(/* @__PURE__ */ new Map()), c = N((y, M) => {
|
|
3979
|
+
M ? g.current.set(y, M) : g.current.delete(y);
|
|
3980
|
+
}, []), _ = e.filter((y) => !y.disabled && !i), b = _.find((y) => y.value === d)?.value ?? _[0]?.value, f = N((y) => {
|
|
3981
|
+
const M = g.current.get(y);
|
|
3982
|
+
M && M.focus();
|
|
3983
|
+
}, []), R = N(
|
|
3984
|
+
(y, M) => {
|
|
3898
3985
|
if (i) return;
|
|
3899
|
-
const x = e.filter((
|
|
3986
|
+
const x = e.filter((T) => !T.disabled);
|
|
3900
3987
|
if (x.length === 0) return;
|
|
3901
|
-
const
|
|
3902
|
-
if (
|
|
3903
|
-
let v =
|
|
3904
|
-
switch (
|
|
3988
|
+
const p = x.findIndex((T) => T.value === M);
|
|
3989
|
+
if (p === -1) return;
|
|
3990
|
+
let v = p;
|
|
3991
|
+
switch (y.key) {
|
|
3905
3992
|
case "ArrowRight":
|
|
3906
3993
|
case "ArrowDown":
|
|
3907
|
-
v = (
|
|
3994
|
+
v = (p + 1) % x.length;
|
|
3908
3995
|
break;
|
|
3909
3996
|
case "ArrowLeft":
|
|
3910
3997
|
case "ArrowUp":
|
|
3911
|
-
v = (
|
|
3998
|
+
v = (p - 1 + x.length) % x.length;
|
|
3912
3999
|
break;
|
|
3913
4000
|
case "Home":
|
|
3914
4001
|
v = 0;
|
|
@@ -3918,27 +4005,27 @@ function Qa({
|
|
|
3918
4005
|
break;
|
|
3919
4006
|
case " ":
|
|
3920
4007
|
case "Enter":
|
|
3921
|
-
|
|
4008
|
+
y.preventDefault(), h(M);
|
|
3922
4009
|
return;
|
|
3923
4010
|
default:
|
|
3924
4011
|
return;
|
|
3925
4012
|
}
|
|
3926
|
-
|
|
3927
|
-
const
|
|
3928
|
-
|
|
4013
|
+
y.preventDefault();
|
|
4014
|
+
const D = x[v].value;
|
|
4015
|
+
f(D), h(D);
|
|
3929
4016
|
},
|
|
3930
|
-
[i, e,
|
|
3931
|
-
),
|
|
3932
|
-
selectedValue:
|
|
3933
|
-
select:
|
|
3934
|
-
isSelected:
|
|
4017
|
+
[i, e, h, f]
|
|
4018
|
+
), I = {
|
|
4019
|
+
selectedValue: d,
|
|
4020
|
+
select: h,
|
|
4021
|
+
isSelected: m,
|
|
3935
4022
|
groupDisabled: i,
|
|
3936
4023
|
name: s,
|
|
3937
|
-
registerRef:
|
|
4024
|
+
registerRef: c,
|
|
3938
4025
|
firstFocusableValue: b,
|
|
3939
|
-
onKeyNav:
|
|
4026
|
+
onKeyNav: R
|
|
3940
4027
|
};
|
|
3941
|
-
return /* @__PURE__ */ r(
|
|
4028
|
+
return /* @__PURE__ */ r(mt.Provider, { value: I, children: /* @__PURE__ */ r(
|
|
3942
4029
|
"div",
|
|
3943
4030
|
{
|
|
3944
4031
|
className: "gloss-preset-swatch-row",
|
|
@@ -3946,126 +4033,126 @@ function Qa({
|
|
|
3946
4033
|
"aria-label": s,
|
|
3947
4034
|
"aria-disabled": i,
|
|
3948
4035
|
"data-disabled": i || void 0,
|
|
3949
|
-
children: e.map((
|
|
4036
|
+
children: e.map((y) => /* @__PURE__ */ r(Xa, { option: y }, y.value))
|
|
3950
4037
|
}
|
|
3951
4038
|
) });
|
|
3952
4039
|
}
|
|
3953
|
-
|
|
3954
|
-
function
|
|
4040
|
+
Ja.displayName = "PresetSwatchRow";
|
|
4041
|
+
function Ke(e, t) {
|
|
3955
4042
|
for (const n of e)
|
|
3956
4043
|
if (n.items.some((a) => a.id === t))
|
|
3957
4044
|
return n.zoneKey;
|
|
3958
4045
|
return null;
|
|
3959
4046
|
}
|
|
3960
|
-
function
|
|
4047
|
+
function at(e, t) {
|
|
3961
4048
|
const n = e.find((a) => a.zoneKey === t);
|
|
3962
|
-
return n ? n.zoneKey :
|
|
4049
|
+
return n ? n.zoneKey : Ke(e, t);
|
|
3963
4050
|
}
|
|
3964
|
-
function
|
|
4051
|
+
function en(e, t, n) {
|
|
3965
4052
|
const a = [...e], [i] = a.splice(t, 1);
|
|
3966
4053
|
return a.splice(n, 0, i), a;
|
|
3967
4054
|
}
|
|
3968
|
-
function
|
|
4055
|
+
function tn(e) {
|
|
3969
4056
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
3970
4057
|
}
|
|
3971
|
-
function
|
|
4058
|
+
function an(e) {
|
|
3972
4059
|
const [t, n] = $(
|
|
3973
|
-
() => e.zones.map((
|
|
3974
|
-
`useSortableZones: zone "${
|
|
3975
|
-
), { ...
|
|
3976
|
-
), [a, i] = $(null), [s, o] = $(null), l =
|
|
3977
|
-
|
|
3978
|
-
const
|
|
3979
|
-
() =>
|
|
4060
|
+
() => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4061
|
+
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
4062
|
+
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4063
|
+
), [a, i] = $(null), [s, o] = $(null), l = P(null), u = P(e.onZoneChange);
|
|
4064
|
+
u.current = e.onZoneChange;
|
|
4065
|
+
const d = Ne(
|
|
4066
|
+
() => tn(e.zones),
|
|
3980
4067
|
[e.zones]
|
|
3981
|
-
),
|
|
4068
|
+
), h = P(d);
|
|
3982
4069
|
O(() => {
|
|
3983
|
-
|
|
3984
|
-
e.zones.map((
|
|
3985
|
-
`useSortableZones: zone "${
|
|
3986
|
-
), { ...
|
|
4070
|
+
h.current !== d && (h.current = d, !a && n(
|
|
4071
|
+
e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4072
|
+
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
4073
|
+
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
3987
4074
|
));
|
|
3988
|
-
}, [
|
|
3989
|
-
const
|
|
3990
|
-
(
|
|
3991
|
-
const
|
|
3992
|
-
let
|
|
3993
|
-
for (const
|
|
3994
|
-
const x =
|
|
4075
|
+
}, [d, e.zones, a]);
|
|
4076
|
+
const m = N(
|
|
4077
|
+
(f) => {
|
|
4078
|
+
const R = f.active.id;
|
|
4079
|
+
let I = null, y = null;
|
|
4080
|
+
for (const M of t) {
|
|
4081
|
+
const x = M.items.find((p) => p.id === R);
|
|
3995
4082
|
if (x) {
|
|
3996
|
-
|
|
4083
|
+
I = x, y = M.zoneKey;
|
|
3997
4084
|
break;
|
|
3998
4085
|
}
|
|
3999
4086
|
}
|
|
4000
|
-
l.current =
|
|
4087
|
+
l.current = y, i(I), o(y);
|
|
4001
4088
|
},
|
|
4002
4089
|
[t]
|
|
4003
|
-
), g =
|
|
4004
|
-
(
|
|
4005
|
-
if (!
|
|
4090
|
+
), g = N(
|
|
4091
|
+
(f) => {
|
|
4092
|
+
if (!f.over) {
|
|
4006
4093
|
o(l.current);
|
|
4007
4094
|
return;
|
|
4008
4095
|
}
|
|
4009
|
-
const
|
|
4010
|
-
o(
|
|
4096
|
+
const R = at(t, f.over.id);
|
|
4097
|
+
o(R);
|
|
4011
4098
|
},
|
|
4012
4099
|
[t]
|
|
4013
|
-
),
|
|
4014
|
-
(
|
|
4015
|
-
const { active:
|
|
4100
|
+
), c = N(
|
|
4101
|
+
(f) => {
|
|
4102
|
+
const { active: R, over: I } = f, y = () => {
|
|
4016
4103
|
l.current = null, i(null), o(null);
|
|
4017
4104
|
};
|
|
4018
|
-
if (!
|
|
4019
|
-
|
|
4105
|
+
if (!I) {
|
|
4106
|
+
y();
|
|
4020
4107
|
return;
|
|
4021
4108
|
}
|
|
4022
|
-
const
|
|
4023
|
-
if (!
|
|
4024
|
-
|
|
4109
|
+
const M = Ke(t, R.id), x = at(t, I.id);
|
|
4110
|
+
if (!M || !x) {
|
|
4111
|
+
y();
|
|
4025
4112
|
return;
|
|
4026
4113
|
}
|
|
4027
|
-
let
|
|
4028
|
-
if (
|
|
4029
|
-
const v =
|
|
4030
|
-
|
|
4031
|
-
...
|
|
4032
|
-
items:
|
|
4114
|
+
let p = t.map((v) => ({ ...v, items: [...v.items] }));
|
|
4115
|
+
if (M === x) {
|
|
4116
|
+
const v = p.findIndex((E) => E.zoneKey === M), D = p[v], T = D.items.findIndex((E) => E.id === R.id), w = D.items.findIndex((E) => E.id === I.id), S = w >= 0 ? w : Math.max(0, D.items.length - 1);
|
|
4117
|
+
p[v] = {
|
|
4118
|
+
...D,
|
|
4119
|
+
items: en(D.items, T, S)
|
|
4033
4120
|
};
|
|
4034
4121
|
} else {
|
|
4035
|
-
const v =
|
|
4122
|
+
const v = p.findIndex((L) => L.zoneKey === M), D = p.findIndex((L) => L.zoneKey === x), T = p[v], w = p[D], S = T.items.find((L) => L.id === R.id);
|
|
4036
4123
|
if (!S) {
|
|
4037
|
-
|
|
4124
|
+
y();
|
|
4038
4125
|
return;
|
|
4039
4126
|
}
|
|
4040
|
-
const
|
|
4041
|
-
let U =
|
|
4042
|
-
if (
|
|
4127
|
+
const E = T.items.filter((L) => L.id !== R.id), H = w.items.findIndex((L) => L.id === I.id), Y = H >= 0 ? H : w.items.length;
|
|
4128
|
+
let U = E, j = [...w.items];
|
|
4129
|
+
if (w.maxItems !== void 0 && j.length >= w.maxItems) {
|
|
4043
4130
|
const L = j[j.length - 1];
|
|
4044
|
-
j = j.slice(0,
|
|
4131
|
+
j = j.slice(0, w.maxItems - 1), U = [...E, L];
|
|
4045
4132
|
}
|
|
4046
4133
|
const B = Math.min(Y, j.length), Z = [
|
|
4047
4134
|
...j.slice(0, B),
|
|
4048
4135
|
S,
|
|
4049
4136
|
...j.slice(B)
|
|
4050
4137
|
];
|
|
4051
|
-
|
|
4138
|
+
p[v] = { ...T, items: U }, p[D] = { ...w, items: Z };
|
|
4052
4139
|
}
|
|
4053
|
-
n(
|
|
4140
|
+
n(p), u.current?.(p), y();
|
|
4054
4141
|
},
|
|
4055
4142
|
[t]
|
|
4056
|
-
),
|
|
4057
|
-
(
|
|
4058
|
-
id:
|
|
4059
|
-
"data-zone-key":
|
|
4143
|
+
), _ = N(
|
|
4144
|
+
(f) => ({
|
|
4145
|
+
id: f,
|
|
4146
|
+
"data-zone-key": f
|
|
4060
4147
|
}),
|
|
4061
4148
|
[]
|
|
4062
|
-
), b =
|
|
4063
|
-
(
|
|
4064
|
-
const
|
|
4149
|
+
), b = N(
|
|
4150
|
+
(f) => {
|
|
4151
|
+
const R = Ke(t, f.id) ?? "";
|
|
4065
4152
|
return {
|
|
4066
|
-
id:
|
|
4067
|
-
"data-item-id":
|
|
4068
|
-
"data-zone-key":
|
|
4153
|
+
id: f.id,
|
|
4154
|
+
"data-item-id": f.id,
|
|
4155
|
+
"data-zone-key": R
|
|
4069
4156
|
};
|
|
4070
4157
|
},
|
|
4071
4158
|
[t]
|
|
@@ -4074,15 +4161,15 @@ function en(e) {
|
|
|
4074
4161
|
zones: t,
|
|
4075
4162
|
activeZone: s,
|
|
4076
4163
|
activeItem: a,
|
|
4077
|
-
getZoneProps:
|
|
4164
|
+
getZoneProps: _,
|
|
4078
4165
|
getItemProps: b,
|
|
4079
|
-
handleDragStart:
|
|
4166
|
+
handleDragStart: m,
|
|
4080
4167
|
handleDragOver: g,
|
|
4081
|
-
handleDragEnd:
|
|
4168
|
+
handleDragEnd: c
|
|
4082
4169
|
};
|
|
4083
4170
|
}
|
|
4084
|
-
let
|
|
4085
|
-
const
|
|
4171
|
+
let he = null, Ce = null, Pe = !1;
|
|
4172
|
+
const nn = [
|
|
4086
4173
|
"DndContext",
|
|
4087
4174
|
"DragOverlay",
|
|
4088
4175
|
"useSensors",
|
|
@@ -4091,22 +4178,22 @@ const tn = [
|
|
|
4091
4178
|
"PointerSensor",
|
|
4092
4179
|
"KeyboardSensor",
|
|
4093
4180
|
"closestCenter"
|
|
4094
|
-
],
|
|
4181
|
+
], rn = [
|
|
4095
4182
|
"SortableContext",
|
|
4096
4183
|
"useSortable",
|
|
4097
4184
|
"verticalListSortingStrategy"
|
|
4098
4185
|
];
|
|
4099
|
-
function
|
|
4186
|
+
function sn(e, t) {
|
|
4100
4187
|
const n = [], a = e ?? {};
|
|
4101
|
-
for (const s of
|
|
4188
|
+
for (const s of nn)
|
|
4102
4189
|
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
4103
4190
|
const i = t ?? {};
|
|
4104
|
-
for (const s of
|
|
4191
|
+
for (const s of rn)
|
|
4105
4192
|
i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
4106
4193
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
4107
4194
|
}
|
|
4108
|
-
function
|
|
4109
|
-
return
|
|
4195
|
+
function on() {
|
|
4196
|
+
return he ? Promise.resolve(he) : Pe ? Promise.resolve(null) : Ce || (Ce = (async () => {
|
|
4110
4197
|
try {
|
|
4111
4198
|
const [e, t, n] = await Promise.all([
|
|
4112
4199
|
import("@dnd-kit/core"),
|
|
@@ -4114,31 +4201,31 @@ function rn() {
|
|
|
4114
4201
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
4115
4202
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
4116
4203
|
), {}))
|
|
4117
|
-
]), a =
|
|
4118
|
-
return a.ok ? (
|
|
4204
|
+
]), a = sn(e, t);
|
|
4205
|
+
return a.ok ? (he = {
|
|
4119
4206
|
core: e,
|
|
4120
4207
|
sortable: t,
|
|
4121
4208
|
utilities: n
|
|
4122
|
-
},
|
|
4209
|
+
}, he) : (Pe = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
4123
4210
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
4124
4211
|
), null);
|
|
4125
4212
|
} catch {
|
|
4126
|
-
return
|
|
4213
|
+
return Pe = !0, null;
|
|
4127
4214
|
}
|
|
4128
|
-
})(),
|
|
4215
|
+
})(), Ce);
|
|
4129
4216
|
}
|
|
4130
|
-
function
|
|
4131
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o =
|
|
4217
|
+
function ln(e) {
|
|
4218
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = an({ zones: t, onZoneChange: n }), [l, u] = V.useState(he);
|
|
4132
4219
|
return V.useEffect(() => {
|
|
4133
4220
|
if (l) return;
|
|
4134
|
-
let
|
|
4135
|
-
return
|
|
4136
|
-
|
|
4221
|
+
let d = !0;
|
|
4222
|
+
return on().then((h) => {
|
|
4223
|
+
d && u(h);
|
|
4137
4224
|
}), () => {
|
|
4138
|
-
|
|
4225
|
+
d = !1;
|
|
4139
4226
|
};
|
|
4140
4227
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
4141
|
-
|
|
4228
|
+
gt,
|
|
4142
4229
|
{
|
|
4143
4230
|
state: o,
|
|
4144
4231
|
modules: l,
|
|
@@ -4146,70 +4233,70 @@ function sn(e) {
|
|
|
4146
4233
|
renderItem: i,
|
|
4147
4234
|
renderDragOverlay: s
|
|
4148
4235
|
}
|
|
4149
|
-
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((
|
|
4150
|
-
const
|
|
4151
|
-
return /* @__PURE__ */ r("div", { ...o.getZoneProps(
|
|
4236
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
4237
|
+
const h = d.items.map((m) => /* @__PURE__ */ r(V.Fragment, { children: i(m) }, m.id));
|
|
4238
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, h) }, d.zoneKey);
|
|
4152
4239
|
}) });
|
|
4153
4240
|
}
|
|
4154
|
-
|
|
4155
|
-
function
|
|
4241
|
+
ln.displayName = "SortableZones";
|
|
4242
|
+
function gt({
|
|
4156
4243
|
state: e,
|
|
4157
4244
|
modules: t,
|
|
4158
4245
|
renderZone: n,
|
|
4159
4246
|
renderItem: a,
|
|
4160
4247
|
renderDragOverlay: i
|
|
4161
4248
|
}) {
|
|
4162
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext:
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
),
|
|
4166
|
-
return /* @__PURE__ */
|
|
4167
|
-
|
|
4249
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: d, useSensors: h, useSensor: m, useDroppable: g, PointerSensor: c, KeyboardSensor: _, closestCenter: b } = s, { SortableContext: f, verticalListSortingStrategy: R } = o, I = h(
|
|
4250
|
+
m(c, { activationConstraint: { distance: 5 } }),
|
|
4251
|
+
m(_)
|
|
4252
|
+
), y = u, M = d, x = f;
|
|
4253
|
+
return /* @__PURE__ */ k(
|
|
4254
|
+
y,
|
|
4168
4255
|
{
|
|
4169
|
-
sensors:
|
|
4256
|
+
sensors: I,
|
|
4170
4257
|
collisionDetection: b,
|
|
4171
4258
|
onDragStart: e.handleDragStart,
|
|
4172
4259
|
onDragOver: e.handleDragOver,
|
|
4173
4260
|
onDragEnd: e.handleDragEnd,
|
|
4174
4261
|
children: [
|
|
4175
|
-
e.zones.map((
|
|
4176
|
-
const v =
|
|
4177
|
-
|
|
4262
|
+
e.zones.map((p) => {
|
|
4263
|
+
const v = p.items.map((T) => T.id), D = p.items.map((T) => /* @__PURE__ */ r(
|
|
4264
|
+
pt,
|
|
4178
4265
|
{
|
|
4179
|
-
id:
|
|
4266
|
+
id: T.id,
|
|
4180
4267
|
useSortable: o.useSortable,
|
|
4181
4268
|
cssHelper: l.CSS,
|
|
4182
|
-
children: a(
|
|
4269
|
+
children: a(T)
|
|
4183
4270
|
},
|
|
4184
|
-
|
|
4271
|
+
T.id
|
|
4185
4272
|
));
|
|
4186
4273
|
return /* @__PURE__ */ r(
|
|
4187
|
-
|
|
4274
|
+
ft,
|
|
4188
4275
|
{
|
|
4189
|
-
zoneKey:
|
|
4190
|
-
zoneProps: e.getZoneProps(
|
|
4276
|
+
zoneKey: p.zoneKey,
|
|
4277
|
+
zoneProps: e.getZoneProps(p.zoneKey),
|
|
4191
4278
|
useDroppable: g,
|
|
4192
|
-
children: /* @__PURE__ */ r(x, { items: v, strategy:
|
|
4279
|
+
children: /* @__PURE__ */ r(x, { items: v, strategy: R, children: n(p.zoneKey, p.items, D) })
|
|
4193
4280
|
},
|
|
4194
|
-
|
|
4281
|
+
p.zoneKey
|
|
4195
4282
|
);
|
|
4196
4283
|
}),
|
|
4197
|
-
/* @__PURE__ */ r(
|
|
4284
|
+
/* @__PURE__ */ r(M, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
4198
4285
|
]
|
|
4199
4286
|
}
|
|
4200
4287
|
);
|
|
4201
4288
|
}
|
|
4202
|
-
|
|
4203
|
-
function
|
|
4204
|
-
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition:
|
|
4289
|
+
gt.displayName = "SortableZonesInner";
|
|
4290
|
+
function pt({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
4291
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging: d } = t({ id: e }), h = {
|
|
4205
4292
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
4206
|
-
transition:
|
|
4207
|
-
opacity:
|
|
4293
|
+
transition: u,
|
|
4294
|
+
opacity: d ? 0.5 : 1
|
|
4208
4295
|
};
|
|
4209
|
-
return /* @__PURE__ */ r("div", { ref: o, style:
|
|
4296
|
+
return /* @__PURE__ */ r("div", { ref: o, style: h, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
4210
4297
|
}
|
|
4211
|
-
|
|
4212
|
-
function
|
|
4298
|
+
pt.displayName = "SortableItem";
|
|
4299
|
+
function ft({
|
|
4213
4300
|
zoneKey: e,
|
|
4214
4301
|
zoneProps: t,
|
|
4215
4302
|
useDroppable: n,
|
|
@@ -4218,8 +4305,8 @@ function gt({
|
|
|
4218
4305
|
const { setNodeRef: i, isOver: s } = n({ id: e });
|
|
4219
4306
|
return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
4220
4307
|
}
|
|
4221
|
-
|
|
4222
|
-
function
|
|
4308
|
+
ft.displayName = "ZoneDroppable";
|
|
4309
|
+
function Kr({
|
|
4223
4310
|
slotLeft: e,
|
|
4224
4311
|
slotCenter: t,
|
|
4225
4312
|
slotRight: n,
|
|
@@ -4232,7 +4319,7 @@ function $r({
|
|
|
4232
4319
|
"--gloss-bottom-toolbar-height": `${a}px`,
|
|
4233
4320
|
...s
|
|
4234
4321
|
};
|
|
4235
|
-
return /* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ k(
|
|
4236
4323
|
"div",
|
|
4237
4324
|
{
|
|
4238
4325
|
role: "toolbar",
|
|
@@ -4269,7 +4356,7 @@ function $r({
|
|
|
4269
4356
|
}
|
|
4270
4357
|
);
|
|
4271
4358
|
}
|
|
4272
|
-
function
|
|
4359
|
+
function zr({
|
|
4273
4360
|
count: e,
|
|
4274
4361
|
currentIndex: t,
|
|
4275
4362
|
onSelect: n,
|
|
@@ -4278,11 +4365,11 @@ function Br({
|
|
|
4278
4365
|
pulseIndex: s,
|
|
4279
4366
|
pulseNonce: o,
|
|
4280
4367
|
currentSection: l,
|
|
4281
|
-
sectionsPerView:
|
|
4368
|
+
sectionsPerView: u = 1
|
|
4282
4369
|
// D-09 default
|
|
4283
4370
|
}) {
|
|
4284
|
-
const
|
|
4285
|
-
return
|
|
4371
|
+
const d = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, d)), m = Math.min(e - 1, h + Math.max(0, u - 1)), g = [h, m], c = ce.useRef([]);
|
|
4372
|
+
return c.current.length = e, e <= 1 || g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ k(
|
|
4286
4373
|
"div",
|
|
4287
4374
|
{
|
|
4288
4375
|
role: "tablist",
|
|
@@ -4293,12 +4380,12 @@ function Br({
|
|
|
4293
4380
|
if (e !== 0) {
|
|
4294
4381
|
if (b.key === "ArrowRight") {
|
|
4295
4382
|
b.preventDefault();
|
|
4296
|
-
const
|
|
4297
|
-
n(
|
|
4383
|
+
const f = (d + 1) % e;
|
|
4384
|
+
n(f), requestAnimationFrame(() => c.current[f]?.focus());
|
|
4298
4385
|
} else if (b.key === "ArrowLeft") {
|
|
4299
4386
|
b.preventDefault();
|
|
4300
|
-
const
|
|
4301
|
-
n(
|
|
4387
|
+
const f = (d - 1 + e) % e;
|
|
4388
|
+
n(f), requestAnimationFrame(() => c.current[f]?.focus());
|
|
4302
4389
|
}
|
|
4303
4390
|
}
|
|
4304
4391
|
},
|
|
@@ -4314,382 +4401,382 @@ function Br({
|
|
|
4314
4401
|
}
|
|
4315
4402
|
}
|
|
4316
4403
|
),
|
|
4317
|
-
Array.from({ length: e }, (b,
|
|
4404
|
+
Array.from({ length: e }, (b, f) => /* @__PURE__ */ r(
|
|
4318
4405
|
"button",
|
|
4319
4406
|
{
|
|
4320
|
-
ref: (
|
|
4321
|
-
|
|
4407
|
+
ref: (R) => {
|
|
4408
|
+
c.current[f] = R;
|
|
4322
4409
|
},
|
|
4323
4410
|
type: "button",
|
|
4324
4411
|
role: "tab",
|
|
4325
|
-
"aria-selected":
|
|
4326
|
-
"aria-label":
|
|
4327
|
-
"data-state":
|
|
4328
|
-
"data-section-index":
|
|
4412
|
+
"aria-selected": f === d,
|
|
4413
|
+
"aria-label": f === i ? "Unconfirmed section" : `Section ${f + 1}`,
|
|
4414
|
+
"data-state": f === i ? "provisional-hollow" : f === s ? "pulse" : f === d ? "current" : "hollow",
|
|
4415
|
+
"data-section-index": f,
|
|
4329
4416
|
className: [
|
|
4330
4417
|
"gloss-section-dots__dot",
|
|
4331
|
-
|
|
4418
|
+
f === d && "gloss-section-dots__dot--current"
|
|
4332
4419
|
].filter(Boolean).join(" "),
|
|
4333
|
-
onClick: () => n(
|
|
4420
|
+
onClick: () => n(f)
|
|
4334
4421
|
},
|
|
4335
|
-
|
|
4422
|
+
f === s ? `${f}-${o ?? 0}` : f
|
|
4336
4423
|
))
|
|
4337
4424
|
]
|
|
4338
4425
|
}
|
|
4339
4426
|
);
|
|
4340
4427
|
}
|
|
4341
|
-
const
|
|
4428
|
+
const cn = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4342
4429
|
const i = { ...n };
|
|
4343
|
-
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(
|
|
4430
|
+
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 }) });
|
|
4344
4431
|
});
|
|
4345
|
-
|
|
4346
|
-
const
|
|
4432
|
+
cn.displayName = "ContainerToolbar";
|
|
4433
|
+
const dn = V.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
|
|
4347
4434
|
const o = { ...i };
|
|
4348
|
-
return delete o.className, delete o.style, /* @__PURE__ */
|
|
4435
|
+
return delete o.className, delete o.style, /* @__PURE__ */ k("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
4349
4436
|
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
4350
4437
|
t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
|
|
4351
|
-
/* @__PURE__ */ r(
|
|
4438
|
+
/* @__PURE__ */ r(ze, { region: "form-section", density: n, children: a })
|
|
4352
4439
|
] });
|
|
4353
4440
|
});
|
|
4354
|
-
|
|
4355
|
-
const
|
|
4441
|
+
dn.displayName = "ContainerFormSection";
|
|
4442
|
+
const un = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4356
4443
|
const i = { ...n };
|
|
4357
|
-
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(
|
|
4444
|
+
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 }) });
|
|
4358
4445
|
});
|
|
4359
|
-
|
|
4446
|
+
un.displayName = "ContainerTable";
|
|
4360
4447
|
export {
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4448
|
+
Gr as Accordion,
|
|
4449
|
+
Vr as AccordionContent,
|
|
4450
|
+
Hr as AccordionItem,
|
|
4451
|
+
Ur as AccordionTrigger,
|
|
4452
|
+
Zr as ActionStrip,
|
|
4453
|
+
Yr as Actionable,
|
|
4454
|
+
qr as AddressGroup,
|
|
4455
|
+
Qr as AddressSelect,
|
|
4456
|
+
Xr as AsyncLoader,
|
|
4457
|
+
Jr as Autocomplete,
|
|
4458
|
+
es as Badge,
|
|
4459
|
+
ts as BarChartCard,
|
|
4460
|
+
as as BarsBg,
|
|
4461
|
+
Kr as BottomToolbar,
|
|
4462
|
+
ns as Button,
|
|
4463
|
+
rs as ButtonGroup,
|
|
4464
|
+
ss as ButtonGroupContext,
|
|
4465
|
+
is as Card,
|
|
4466
|
+
os as CardActions,
|
|
4467
|
+
ls as CardBack,
|
|
4468
|
+
cs as CardBody,
|
|
4469
|
+
ds as CardFooter,
|
|
4470
|
+
us as CardHeader,
|
|
4471
|
+
ms as CardMedia,
|
|
4472
|
+
Nt as CardShell,
|
|
4473
|
+
gs as CardSubtitle,
|
|
4474
|
+
ps as CardTitle,
|
|
4475
|
+
Rr as CascadePreview,
|
|
4476
|
+
Or as CellTintOverlay,
|
|
4477
|
+
fs as ChartControlBar,
|
|
4478
|
+
hs as Checkbox,
|
|
4479
|
+
bs as CheckboxGroup,
|
|
4480
|
+
vs as Chip,
|
|
4481
|
+
ys as ColorPicker,
|
|
4482
|
+
ws as ComparisonCard,
|
|
4483
|
+
_s as ContactForm,
|
|
4484
|
+
Ns as ContainerCard,
|
|
4485
|
+
Ds as ContainerCardActions,
|
|
4486
|
+
ks as ContainerCardBody,
|
|
4487
|
+
Cs as ContainerCardFooter,
|
|
4488
|
+
xs as ContainerCardHeader,
|
|
4489
|
+
Ss as ContainerCardMedia,
|
|
4490
|
+
Rs as ContainerCardSubtitle,
|
|
4491
|
+
Ms as ContainerCardTitle,
|
|
4492
|
+
Ts as ContainerDialog,
|
|
4493
|
+
Is as ContainerDialogActions,
|
|
4494
|
+
Ps as ContainerDialogBody,
|
|
4495
|
+
Es as ContainerDialogHeader,
|
|
4496
|
+
dn as ContainerFormSection,
|
|
4497
|
+
Fs as ContainerPanel,
|
|
4498
|
+
un as ContainerTable,
|
|
4499
|
+
cn as ContainerToolbar,
|
|
4500
|
+
As as CreditCardForm,
|
|
4501
|
+
Os as DEFAULT_FOOTER_IDS,
|
|
4415
4502
|
ie as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4503
|
+
ml as DEFAULT_MARKET_PRESETS,
|
|
4504
|
+
Ls as DEFAULT_OVERFLOW_IDS,
|
|
4505
|
+
gl as DEFAULT_PINNED,
|
|
4506
|
+
rt as DEFAULT_RESIZE_PHYSICS,
|
|
4507
|
+
$s as DataTable,
|
|
4508
|
+
Bs as DatePicker,
|
|
4509
|
+
Ks as DateRangePicker,
|
|
4510
|
+
zs as DestructiveModal,
|
|
4511
|
+
_a as DevTuningPanel,
|
|
4512
|
+
Ws as DirectionCard,
|
|
4513
|
+
js as Dismissible,
|
|
4514
|
+
Gs as DistributionCard,
|
|
4515
|
+
Vs as DonutChart,
|
|
4516
|
+
xr as DragGhost,
|
|
4517
|
+
_r as DropAnchorCell,
|
|
4518
|
+
Hs as Dropdown,
|
|
4519
|
+
Ca as DualPaceBars,
|
|
4520
|
+
Us as ENTITY_FILTER_KEYS,
|
|
4521
|
+
Zs as ENTITY_PROFILE_ROUTES,
|
|
4522
|
+
Ys as ENTITY_TYPE_PLURAL,
|
|
4523
|
+
Vt as EdgeHoverHandle,
|
|
4524
|
+
kr as EmptyCellPackAffordance,
|
|
4525
|
+
qs as EntityPicker,
|
|
4439
4526
|
X as EntityRow,
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
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
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4527
|
+
Qs as EntitySearchPanel,
|
|
4528
|
+
La as ExceptionListCard,
|
|
4529
|
+
$a as ExceptionListTilePreview,
|
|
4530
|
+
Xs as Expandable,
|
|
4531
|
+
Js as ExpandableChip,
|
|
4532
|
+
ei as FLIP_AND_STAGE_TIMINGS,
|
|
4533
|
+
ti as FileUpload,
|
|
4534
|
+
ai as FilterChip,
|
|
4535
|
+
ni as FilterInput,
|
|
4536
|
+
ri as FlipAndStageProvider,
|
|
4537
|
+
si as Form,
|
|
4538
|
+
ii as FormDialog,
|
|
4539
|
+
oi as FormField,
|
|
4540
|
+
li as FusedShape,
|
|
4541
|
+
xa as GapReadout,
|
|
4542
|
+
ci as GestureStateProvider,
|
|
4543
|
+
Ht as GhostPreview,
|
|
4544
|
+
di as GroupCheckbox,
|
|
4545
|
+
ui as GroupRadio,
|
|
4546
|
+
Kn as HARD_CLIP,
|
|
4547
|
+
mi as HighlightCard,
|
|
4548
|
+
gi as HybridDatePicker,
|
|
4549
|
+
pi as ImportWizard,
|
|
4550
|
+
Ua as InlineNudge,
|
|
4551
|
+
fi as Input,
|
|
4552
|
+
hi as InputAddon,
|
|
4553
|
+
bi as InputGroup,
|
|
4554
|
+
Ea as LeaderboardCard,
|
|
4555
|
+
Fa as LeaderboardTilePreview,
|
|
4556
|
+
Ma as LensChipGroup,
|
|
4557
|
+
vi as Link,
|
|
4558
|
+
yi as LoginForm,
|
|
4559
|
+
_e as MagnitudeBar,
|
|
4560
|
+
wi as MarketPresetRow,
|
|
4561
|
+
_i as MaskPresets,
|
|
4562
|
+
Ni as MaskedInput,
|
|
4563
|
+
Di as Menu,
|
|
4564
|
+
ki as MenuDivider,
|
|
4565
|
+
Ci as MenuGroup,
|
|
4566
|
+
xi as MenuItem,
|
|
4567
|
+
Si as MergePrompt,
|
|
4568
|
+
Ri as MetricCard,
|
|
4569
|
+
Mi as MetricCardGrid,
|
|
4570
|
+
ma as MetricGroupContainer,
|
|
4571
|
+
Ti as MiniCalendar,
|
|
4572
|
+
Ia as MoreInLensRail,
|
|
4573
|
+
Ii as MultiSelect,
|
|
4574
|
+
Pi as NumberInput,
|
|
4575
|
+
Ei as ObjectArrow,
|
|
4576
|
+
Fi as OrderFilterBar,
|
|
4577
|
+
pl as PERIOD_OPTIONS,
|
|
4578
|
+
Mr as PaceCard,
|
|
4579
|
+
Tr as PaceTilePreview,
|
|
4580
|
+
ea as PageChip,
|
|
4581
|
+
st as PageDropdown,
|
|
4582
|
+
Ai as PasswordInput,
|
|
4583
|
+
Oi as PaymentForm,
|
|
4584
|
+
Li as PaymentMethodSelect,
|
|
4585
|
+
$i as PhoneInput,
|
|
4586
|
+
Bi as PinToMetric,
|
|
4587
|
+
Ja as PresetSwatchRow,
|
|
4588
|
+
Ki as ProfileCard,
|
|
4589
|
+
zi as ProgressCard,
|
|
4590
|
+
Wi as QuickConfigPanel,
|
|
4591
|
+
oa as RECONFIG_BACKSIDE_LABELS,
|
|
4592
|
+
fl as ROLLING_OPTIONS,
|
|
4593
|
+
ji as Radio,
|
|
4594
|
+
Gi as RadioGroup,
|
|
4595
|
+
Vi as RangeSlider,
|
|
4596
|
+
ye as RankBadge,
|
|
4597
|
+
ut as RankDelta,
|
|
4598
|
+
Hi as Rating,
|
|
4599
|
+
da as ReconfigBacksideButtons,
|
|
4600
|
+
Lr as RefusePulse,
|
|
4601
|
+
Ui as RegistrationForm,
|
|
4602
|
+
wr as ResizeEnvelope,
|
|
4603
|
+
$r as ResizeTrackingOutline,
|
|
4604
|
+
Zi as Row1Controls,
|
|
4605
|
+
Yi as Row2FilterTray,
|
|
4606
|
+
Pr as STROKE_DASHED,
|
|
4607
|
+
Ar as STROKE_OUTLINE,
|
|
4608
|
+
Er as STROKE_SOLID,
|
|
4609
|
+
Fr as STROKE_SPARSE_DASH,
|
|
4610
|
+
qi as SearchInput,
|
|
4611
|
+
Dr as SectionDivider,
|
|
4612
|
+
zr as SectionDots,
|
|
4613
|
+
Qi as SegmentCard,
|
|
4614
|
+
Xi as SegmentedControl,
|
|
4615
|
+
Ji as Select,
|
|
4616
|
+
eo as Selectable,
|
|
4617
|
+
we as SeverityDot,
|
|
4618
|
+
to as SimpleMetricCard,
|
|
4619
|
+
ao as SimpleSelector,
|
|
4620
|
+
no as Skeleton,
|
|
4621
|
+
ro as SkeletonCard,
|
|
4622
|
+
so as SkeletonChart,
|
|
4623
|
+
io as SkeletonTable,
|
|
4624
|
+
oo as Slider,
|
|
4625
|
+
Sr as SnapOutline,
|
|
4626
|
+
lo as Sortable,
|
|
4627
|
+
ln as SortableZones,
|
|
4628
|
+
co as SparklineBg,
|
|
4629
|
+
Nr as SpilloverArc,
|
|
4630
|
+
uo as SplitButton,
|
|
4631
|
+
mo as StackedGroupCard,
|
|
4632
|
+
Ba as StackedGroupTilePreview,
|
|
4633
|
+
Ta as StarterRail,
|
|
4634
|
+
go as StatusModeCard,
|
|
4635
|
+
Gt as StatusSlotChipMenu,
|
|
4636
|
+
po as Stepper,
|
|
4637
|
+
Oe as SwingReveal,
|
|
4638
|
+
hl as TODAY_PRESET,
|
|
4552
4639
|
re as TUNING_DEFAULTS,
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4640
|
+
ct as TUNING_STORAGE_KEY,
|
|
4641
|
+
fo as TabGroup,
|
|
4642
|
+
ho as TabbedDataView,
|
|
4643
|
+
bo as TagInput,
|
|
4644
|
+
Lt as TargetInput,
|
|
4645
|
+
vo as Textarea,
|
|
4646
|
+
qa as ThresholdRamp,
|
|
4647
|
+
yo as TimeFrame,
|
|
4648
|
+
wo as TimePicker,
|
|
4649
|
+
_o as Toggle,
|
|
4650
|
+
No as Tooltip,
|
|
4651
|
+
dt as TrackingOutline,
|
|
4652
|
+
Do as Transition,
|
|
4653
|
+
ko as TransitionGroup,
|
|
4654
|
+
Co as TrendCard,
|
|
4655
|
+
xo as TrendIndicator,
|
|
4656
|
+
cl as UIContext,
|
|
4657
|
+
ze as UIContextProvider,
|
|
4658
|
+
So as UnifiedBreakdownTable,
|
|
4659
|
+
Ro as UnifiedContextMenu,
|
|
4660
|
+
Ut as VelocityBuffer,
|
|
4661
|
+
Mo as addressGroupMetadata,
|
|
4662
|
+
To as addressSchema,
|
|
4663
|
+
Sn as allChips,
|
|
4664
|
+
Vn as allStateFixtures,
|
|
4665
|
+
Gn as allVariantFixtures,
|
|
4666
|
+
In as blockSamples,
|
|
4667
|
+
Io as buildDefaultOverflow,
|
|
4668
|
+
On as cardSamples,
|
|
4669
|
+
le as cascadePhysics,
|
|
4670
|
+
Fn as chartSamples,
|
|
4671
|
+
En as circleSamples,
|
|
4672
|
+
zn as colorTokens,
|
|
4673
|
+
gr as compactLayout,
|
|
4674
|
+
ar as compactState,
|
|
4675
|
+
jn as computeGutterAnchorX,
|
|
4676
|
+
Po as contactFormMetadata,
|
|
4677
|
+
Eo as contactSchema,
|
|
4678
|
+
nr as contextMenuFixtures,
|
|
4679
|
+
Fo as creditCardFormMetadata,
|
|
4680
|
+
Ao as creditCardSchema,
|
|
4681
|
+
Kt as dateChip,
|
|
4682
|
+
lt as defaultControlBarState,
|
|
4683
|
+
Oo as destructiveModalMetadata,
|
|
4684
|
+
Lo as durations,
|
|
4685
|
+
$o as easings,
|
|
4686
|
+
qt as emptyFixture,
|
|
4687
|
+
$t as entityChip,
|
|
4688
|
+
ra as entityNameActions,
|
|
4689
|
+
Mn as entityTabGroup,
|
|
4690
|
+
Yt as errorFixture,
|
|
4691
|
+
Bo as evaluateTintCondition,
|
|
4692
|
+
tr as filteredState,
|
|
4693
|
+
bl as findPreset,
|
|
4694
|
+
vl as formatDateRange,
|
|
4695
|
+
yl as formatMarketDates,
|
|
4696
|
+
wl as formatTrend,
|
|
4697
|
+
_l as formatValue,
|
|
4698
|
+
fr as fullLayout,
|
|
4699
|
+
Nl as generateMarketId,
|
|
4700
|
+
Ko as generateTabId,
|
|
4701
|
+
Dl as getAllPresets,
|
|
4702
|
+
kl as getDateRangeForPreset,
|
|
4703
|
+
zo as getMenuActions,
|
|
4704
|
+
nt as getMotionMode,
|
|
4705
|
+
Cl as getPresetLabel,
|
|
4706
|
+
Wo as getTransitionStyle,
|
|
4707
|
+
mr as gridCards,
|
|
4708
|
+
Ir as gridChannels,
|
|
4709
|
+
jo as interpolate,
|
|
4710
|
+
xl as isInRange,
|
|
4711
|
+
Sl as isMarketActive,
|
|
4712
|
+
Rl as isSameDay,
|
|
4713
|
+
er as itemColumns,
|
|
4714
|
+
Xn as itemRows,
|
|
4715
|
+
Zt as loadingFixture,
|
|
4716
|
+
Go as loginFormMetadata,
|
|
4717
|
+
Vo as loginSchema,
|
|
4718
|
+
zt as manufacturerChip,
|
|
4719
|
+
yr as manyTabs,
|
|
4720
|
+
Ho as mergeHandlers,
|
|
4721
|
+
Uo as mergeRefs,
|
|
4722
|
+
Rn as metricTabGroup,
|
|
4723
|
+
br as mixedTabs,
|
|
4724
|
+
Ml as normalizePresetId,
|
|
4725
|
+
ia as numericActions,
|
|
4726
|
+
Jn as orderColumns,
|
|
4727
|
+
sa as orderIdActions,
|
|
4728
|
+
Qn as orderRows,
|
|
4729
|
+
hr as ordersTabs,
|
|
4730
|
+
tt as paletteHex,
|
|
4644
4731
|
se as paletteVars,
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4732
|
+
Zo as parseNumericValue,
|
|
4733
|
+
Yo as paymentFormMetadata,
|
|
4734
|
+
qo as paymentSchema,
|
|
4735
|
+
Qo as presets,
|
|
4736
|
+
$n as provisional,
|
|
4737
|
+
Bn as reducedMotion,
|
|
4738
|
+
Xo as registrationFormMetadata,
|
|
4739
|
+
Jo as registrationSchema,
|
|
4740
|
+
Ln as rejectionFeedback,
|
|
4741
|
+
sr as sampleCompareRanges,
|
|
4742
|
+
lr as sampleCustomMarkets,
|
|
4743
|
+
rr as sampleDateRange,
|
|
4744
|
+
cr as sampleMarketPresetData,
|
|
4745
|
+
or as sampleMarkets,
|
|
4746
|
+
ur as samplePeriodPresets,
|
|
4747
|
+
ir as samplePreferences,
|
|
4748
|
+
dr as samplePresets,
|
|
4749
|
+
vr as singleTab,
|
|
4750
|
+
Hn as sparklineFixture,
|
|
4751
|
+
Un as sparklineUpFixture,
|
|
4752
|
+
Jt as staleDonutFixture,
|
|
4753
|
+
Qt as staleFixture,
|
|
4754
|
+
Xt as staleSparklineFixture,
|
|
4755
|
+
Zn as standardFixture,
|
|
4756
|
+
qn as standardFlatFixture,
|
|
4757
|
+
pr as standardLayout,
|
|
4758
|
+
Yn as standardNegativeFixture,
|
|
4759
|
+
Bt as statusChip,
|
|
4760
|
+
fe as swingReveal,
|
|
4761
|
+
An as tableSamples,
|
|
4762
|
+
Pn as textSamples,
|
|
4763
|
+
Tn as timeFrameTabGroup,
|
|
4764
|
+
Tl as toUppercasePresetId,
|
|
4765
|
+
Cr as useAffordanceVisibility,
|
|
4766
|
+
xn as useArrowNavigation,
|
|
4767
|
+
el as useCheckboxGroupContext,
|
|
4768
|
+
Wn as useEdgeHoverResize,
|
|
4769
|
+
tl as useFilterLayout,
|
|
4770
|
+
al as useFlipAndStage,
|
|
4771
|
+
nl as useFlipAndStageContext,
|
|
4772
|
+
rl as useFlipAndStageContextOptional,
|
|
4773
|
+
Cn as useFocusReturn,
|
|
4774
|
+
sl as useFocusTrap,
|
|
4775
|
+
il as useFormContext,
|
|
4776
|
+
_t as useGestureState,
|
|
4777
|
+
ol as useRadioGroupContext,
|
|
4778
|
+
Br as useResizeChoreography,
|
|
4779
|
+
fa as useResizeTuning,
|
|
4780
|
+
an as useSortableZones,
|
|
4781
|
+
dl as useUIContext
|
|
4695
4782
|
};
|