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