@mt-gloss/ui 0.1.40 → 0.1.41
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 +1109 -1067
- package/lib/primitives/dashboard/CascadePreview/CascadePreview.d.ts +1 -1
- package/lib/primitives/dashboard/DragGhost/DragGhost.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/flipAndStage/FlipAndStageProvider.d.ts +2 -2
- package/lib/primitives/dashboard/SnapOutline/SnapOutline.d.ts +2 -1
- package/lib/primitives/dashboard/StackedGroupTilePreview/StackedGroupTilePreview.d.ts +23 -0
- package/lib/primitives/dashboard/StackedGroupTilePreview/index.d.ts +2 -0
- package/lib/primitives/dashboard/index.d.ts +1 -0
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { O as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import * as
|
|
5
|
-
import H, { useRef as
|
|
6
|
-
import { motion as De, useMotionValue as
|
|
7
|
-
import { B as
|
|
8
|
-
import { c as
|
|
9
|
-
import { createPortal as
|
|
10
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
function
|
|
18
|
-
const { enabled: t = !0, returnTo: n } = e, a =
|
|
19
|
-
return
|
|
1
|
+
import { C as pt } from "./Expandable-Cyncyopi.js";
|
|
2
|
+
import { O as _r, U as Nr, Q as Dr, T as kr, a4 as Cr, b7 as xr, aA as Sr, ai as Mr, _ as Tr, ao as Rr, L as Ir, a9 as Pr, bn as Fr, P as Er, B as Ar, a as Lr, z as Or, J as $r, bi as Br, H as zr, K as Kr, D as Wr, A as Gr, F as Vr, E as Hr, bx as Ur, b as jr, c as Zr, N as qr, p as Yr, ae as Qr, aO as Xr, z as Jr, J as es, H as ts, K as as, D as ns, A as rs, F as ss, E as is, b0 as os, b3 as ls, b2 as cs, b1 as ds, b4 as us, aD as ms, a6 as gs, a5 as ps, ar as hs, l as fs, n as vs, aG as bs, ac as ys, b9 as ws, aa as _s, bo as Ns, Z as Ds, bH as ks, bG as Cs, bI as xs, aq as Ss, aR as Ms, bb as Ts, bM as Rs, bv as Is, o as Ps, an as Fs, bB as Es, bs as As, a1 as Ls, as as Os, a3 as $s, bA as Bs, G as zs, e as Ks, ab as Ws, bJ as Gs, aU as Vs, s as Hs, w as Us, I as js, h as Zs, ax as qs, bN as Ys, M as Qs, x as Xs, V as Js, Y as ei, W as ti, X as ai, at as ni, bh as ri, bP as si, bL as ii, ap as oi, v as li, bp as ci, aT as di, ak as ui, aL as mi, ah as gi, am as pi, av as hi, aS as fi, ad as vi, au as bi, d as yi, R as wi, k as _i, q as Ni, aI as Di, by as ki, bz as Ci, aj as xi, af as Si, i as Mi, y as Ti, b8 as Ri, ag as Ii, bO as Pi, bd as Fi, bg as Ei, be as Ai, bf as Li, j as Oi, ba as $i, bm as Bi, S as zi, bk as Ki, bl as Wi, aw as Gi, bc as Vi, bQ as Hi, al as Ui, t as ji, bK as Zi, m as qi, g as Yi, r as Qi, $ as Xi, a0 as Ji, a8 as eo, bj as to, bw as ao, bD as no, aB as ro, aC as so, a7 as io, aP as oo, aQ as lo, aE as co, aF as uo, aH as mo, aW as go, aX as po, bq as ho, bF as fo, bE as vo, aZ as bo, a_ as yo, ay as wo, az as _o, b6 as No, b5 as Do, a$ as ko, aM as Co, aN as xo, aY as So, aJ as Mo, aK as To, u as Ro, bC as Io, br as Po, bt as Fo, bu as Eo, aV as Ao, a2 as Lo, f as Oo } from "./Expandable-Cyncyopi.js";
|
|
3
|
+
import { jsxs as N, jsx as r, Fragment as te } from "react/jsx-runtime";
|
|
4
|
+
import * as ht from "react";
|
|
5
|
+
import H, { useRef as T, useEffect as L, useState as $, useCallback as w, useId as ft, forwardRef as vt, useMemo as ye, createContext as bt, useContext as yt } from "react";
|
|
6
|
+
import { motion as De, useMotionValue as wt, animate as We, useDragControls as _t } from "framer-motion";
|
|
7
|
+
import { B as Nt, a as pe, b as Re, U as Le } from "./UIContext-CDdyubSF.js";
|
|
8
|
+
import { c as Bo, u as zo } from "./UIContext-CDdyubSF.js";
|
|
9
|
+
import { createPortal as Dt } from "react-dom";
|
|
10
|
+
import { DEFAULT_MARKET_PRESETS as Wo, DEFAULT_PINNED as Go, PERIOD_OPTIONS as Vo, ROLLING_OPTIONS as Ho, TODAY_PRESET as Uo, findPreset as jo, formatDateRange as Zo, formatMarketDates as qo, formatTrend as Yo, formatValue as Qo, generateMarketId as Xo, getAllPresets as Jo, getDateRangeForPreset as el, getPresetLabel as tl, isInRange as al, isMarketActive as nl, isSameDay as rl, normalizePresetId as sl, toUppercasePresetId as il } from "@mt-gloss/utils";
|
|
11
|
+
import kt from "@mui/icons-material/AccessTime";
|
|
12
|
+
import Ct from "@mui/icons-material/Tune";
|
|
13
|
+
import xt from "@mui/icons-material/ViewColumn";
|
|
14
|
+
import St from "@mui/icons-material/AspectRatio";
|
|
15
|
+
import Mt from "@mui/icons-material/Palette";
|
|
16
|
+
import Tt from "@mui/icons-material/PushPin";
|
|
17
|
+
function dn(e = {}) {
|
|
18
|
+
const { enabled: t = !0, returnTo: n } = e, a = T(null);
|
|
19
|
+
return L(() => {
|
|
20
20
|
t && (a.current = n || document.activeElement);
|
|
21
|
-
}, [t, n]),
|
|
21
|
+
}, [t, n]), L(() => () => {
|
|
22
22
|
t && a.current && setTimeout(() => {
|
|
23
23
|
a.current?.focus?.();
|
|
24
24
|
}, 0);
|
|
25
25
|
}, [t]), a;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function un(e) {
|
|
28
28
|
const {
|
|
29
29
|
items: t,
|
|
30
30
|
activeIndex: n,
|
|
31
31
|
onActiveIndexChange: a,
|
|
32
|
-
loop:
|
|
33
|
-
orientation:
|
|
32
|
+
loop: i = !0,
|
|
33
|
+
orientation: s = "vertical",
|
|
34
34
|
enabled: o = !0,
|
|
35
35
|
isItemDisabled: l,
|
|
36
36
|
onSelect: u,
|
|
@@ -40,71 +40,71 @@ function on(e) {
|
|
|
40
40
|
n === void 0 && f(c), a?.(c);
|
|
41
41
|
},
|
|
42
42
|
[n, a]
|
|
43
|
-
),
|
|
44
|
-
(c,
|
|
45
|
-
const _ =
|
|
43
|
+
), D = w(() => t.map((c, v) => ({ item: c, index: v })).filter(({ item: c, index: v }) => !l?.(c, v)).map(({ index: c }) => c), [t, l]), y = w(
|
|
44
|
+
(c, v) => {
|
|
45
|
+
const _ = D();
|
|
46
46
|
if (_.length === 0) return -1;
|
|
47
47
|
const S = _.indexOf(c);
|
|
48
48
|
if (S === -1)
|
|
49
|
-
return
|
|
50
|
-
let
|
|
51
|
-
return
|
|
49
|
+
return v === 1 ? _.find((x) => x > c) ?? (i ? _[0] : -1) : [..._].reverse().find((F) => F < c) ?? (i ? _[_.length - 1] : -1);
|
|
50
|
+
let b = S + v;
|
|
51
|
+
return i ? b = (b + _.length) % _.length : b = Math.max(0, Math.min(_.length - 1, b)), _[b];
|
|
52
52
|
},
|
|
53
|
-
[
|
|
53
|
+
[D, i]
|
|
54
54
|
), h = w(() => {
|
|
55
|
-
const c =
|
|
55
|
+
const c = D();
|
|
56
56
|
c.length > 0 && m(c[0]);
|
|
57
|
-
}, [
|
|
58
|
-
const c =
|
|
57
|
+
}, [D, m]), M = w(() => {
|
|
58
|
+
const c = D();
|
|
59
59
|
c.length > 0 && m(c[c.length - 1]);
|
|
60
|
-
}, [
|
|
60
|
+
}, [D, m]), P = w(() => {
|
|
61
61
|
const c = y(g, 1);
|
|
62
62
|
c !== -1 && m(c);
|
|
63
|
-
}, [g, y, m]),
|
|
63
|
+
}, [g, y, m]), C = w(() => {
|
|
64
64
|
const c = y(g, -1);
|
|
65
65
|
c !== -1 && m(c);
|
|
66
|
-
}, [g, y, m]),
|
|
66
|
+
}, [g, y, m]), R = w(() => {
|
|
67
67
|
m(-1);
|
|
68
68
|
}, [m]), I = w(
|
|
69
69
|
(c) => {
|
|
70
70
|
if (!o) return;
|
|
71
|
-
const { key:
|
|
72
|
-
if (_ ||
|
|
73
|
-
c.preventDefault(), g === -1 ? M() :
|
|
71
|
+
const { key: v } = c, _ = v === "ArrowUp" && (s === "vertical" || s === "both"), S = v === "ArrowDown" && (s === "vertical" || s === "both"), b = v === "ArrowLeft" && (s === "horizontal" || s === "both"), x = v === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
72
|
+
if (_ || b) {
|
|
73
|
+
c.preventDefault(), g === -1 ? M() : C();
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
if (S || x) {
|
|
77
77
|
c.preventDefault(), g === -1 ? h() : P();
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
if (
|
|
80
|
+
if (v === "Home") {
|
|
81
81
|
c.preventDefault(), h();
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
84
|
+
if (v === "End") {
|
|
85
85
|
c.preventDefault(), M();
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
|
-
if ((
|
|
88
|
+
if ((v === "Enter" || v === " ") && g >= 0 && g < t.length) {
|
|
89
89
|
c.preventDefault();
|
|
90
90
|
const F = t[g];
|
|
91
91
|
l?.(F, g) || u?.(F, g);
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
if (
|
|
94
|
+
if (v === "Escape") {
|
|
95
95
|
d?.();
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
[
|
|
100
100
|
o,
|
|
101
|
-
|
|
101
|
+
s,
|
|
102
102
|
g,
|
|
103
103
|
t,
|
|
104
104
|
h,
|
|
105
105
|
M,
|
|
106
106
|
P,
|
|
107
|
-
|
|
107
|
+
C,
|
|
108
108
|
l,
|
|
109
109
|
u,
|
|
110
110
|
d
|
|
@@ -117,27 +117,27 @@ function on(e) {
|
|
|
117
117
|
focusFirst: h,
|
|
118
118
|
focusLast: M,
|
|
119
119
|
focusNext: P,
|
|
120
|
-
focusPrevious:
|
|
121
|
-
resetFocus:
|
|
120
|
+
focusPrevious: C,
|
|
121
|
+
resetFocus: R
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const Rt = ({
|
|
125
125
|
label: e = "Set a target",
|
|
126
126
|
unit: t,
|
|
127
127
|
currentValue: n,
|
|
128
128
|
onConfirm: a,
|
|
129
|
-
onSkip:
|
|
130
|
-
hint:
|
|
129
|
+
onSkip: i,
|
|
130
|
+
hint: s
|
|
131
131
|
}) => {
|
|
132
132
|
const [o, l] = $(n != null ? String(n) : ""), u = () => {
|
|
133
133
|
const m = parseFloat(o);
|
|
134
134
|
Number.isNaN(m) || a(m);
|
|
135
135
|
}, d = (m) => {
|
|
136
|
-
m.key === "Enter" ? (m.preventDefault(), u()) : m.key === "Escape" && (m.preventDefault(),
|
|
137
|
-
}, p =
|
|
138
|
-
return /* @__PURE__ */
|
|
136
|
+
m.key === "Enter" ? (m.preventDefault(), u()) : m.key === "Escape" && (m.preventDefault(), i?.());
|
|
137
|
+
}, p = ft(), f = `gloss-target-input-field-${p}`, g = s ? `gloss-target-input-hint-${p}` : void 0;
|
|
138
|
+
return /* @__PURE__ */ N("div", { className: "gloss-target-input", children: [
|
|
139
139
|
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: f, children: e }),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ N("div", { className: "gloss-target-input__field-row", children: [
|
|
141
141
|
/* @__PURE__ */ r(
|
|
142
142
|
"input",
|
|
143
143
|
{
|
|
@@ -153,8 +153,8 @@ const St = ({
|
|
|
153
153
|
),
|
|
154
154
|
t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
|
|
155
155
|
] }),
|
|
156
|
-
|
|
157
|
-
/* @__PURE__ */
|
|
156
|
+
s && /* @__PURE__ */ r("p", { id: g, className: "gloss-target-input__hint", children: s }),
|
|
157
|
+
/* @__PURE__ */ N("div", { className: "gloss-target-input__actions", children: [
|
|
158
158
|
/* @__PURE__ */ r(
|
|
159
159
|
"button",
|
|
160
160
|
{
|
|
@@ -164,54 +164,54 @@ const St = ({
|
|
|
164
164
|
children: "Confirm"
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
|
-
|
|
167
|
+
i && /* @__PURE__ */ r(
|
|
168
168
|
"button",
|
|
169
169
|
{
|
|
170
170
|
type: "button",
|
|
171
171
|
className: "gloss-target-input__skip",
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: i,
|
|
173
173
|
children: "Skip"
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
] })
|
|
177
177
|
] });
|
|
178
|
-
},
|
|
179
|
-
},
|
|
178
|
+
}, ke = (e) => {
|
|
179
|
+
}, It = {
|
|
180
180
|
id: "entity-filter-1",
|
|
181
181
|
label: "Customer: Acme Corp",
|
|
182
182
|
field: "customer",
|
|
183
183
|
value: "acme-corp-123",
|
|
184
|
-
onRemove:
|
|
185
|
-
},
|
|
184
|
+
onRemove: ke
|
|
185
|
+
}, Pt = {
|
|
186
186
|
id: "status-filter-1",
|
|
187
187
|
label: "Status: Open",
|
|
188
188
|
field: "status",
|
|
189
189
|
value: "open",
|
|
190
|
-
onRemove:
|
|
191
|
-
},
|
|
190
|
+
onRemove: ke
|
|
191
|
+
}, Ft = {
|
|
192
192
|
id: "date-filter-1",
|
|
193
193
|
label: "Date: Mar 1 - Mar 15",
|
|
194
194
|
field: "dateRange",
|
|
195
195
|
value: "2026-03-01..2026-03-15",
|
|
196
|
-
onRemove:
|
|
197
|
-
},
|
|
196
|
+
onRemove: ke
|
|
197
|
+
}, Et = {
|
|
198
198
|
id: "mfg-filter-1",
|
|
199
199
|
label: "Manufacturer: Widget Co",
|
|
200
200
|
field: "manufacturer",
|
|
201
201
|
value: "widget-co-456",
|
|
202
|
-
onRemove:
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
202
|
+
onRemove: ke
|
|
203
|
+
}, mn = [
|
|
204
|
+
It,
|
|
205
|
+
Pt,
|
|
206
|
+
Ft,
|
|
207
|
+
Et
|
|
208
|
+
], gn = {
|
|
209
209
|
id: "metric-toggle",
|
|
210
210
|
tabs: [
|
|
211
211
|
{ id: "$", label: "$", mono: !0 },
|
|
212
212
|
{ id: "#", label: "#", mono: !0 }
|
|
213
213
|
]
|
|
214
|
-
},
|
|
214
|
+
}, pn = {
|
|
215
215
|
id: "entity-type",
|
|
216
216
|
tabs: [
|
|
217
217
|
{ id: "orders", label: "Orders" },
|
|
@@ -219,7 +219,7 @@ const St = ({
|
|
|
219
219
|
{ id: "customers", label: "Customers" },
|
|
220
220
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
221
221
|
]
|
|
222
|
-
},
|
|
222
|
+
}, hn = {
|
|
223
223
|
id: "time-frame",
|
|
224
224
|
tabs: [
|
|
225
225
|
{ id: "MTD", label: "MTD" },
|
|
@@ -227,26 +227,26 @@ const St = ({
|
|
|
227
227
|
{ id: "YTD", label: "YTD" },
|
|
228
228
|
{ id: "LYTD", label: "LYTD" }
|
|
229
229
|
]
|
|
230
|
-
},
|
|
230
|
+
}, fn = [
|
|
231
231
|
{ variant: "block", width: "100%", height: 16 },
|
|
232
232
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
233
233
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
234
234
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
235
|
-
],
|
|
235
|
+
], vn = [
|
|
236
236
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
237
237
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
238
238
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
239
|
-
],
|
|
239
|
+
], bn = [
|
|
240
240
|
{ variant: "circle", size: 24 },
|
|
241
241
|
{ variant: "circle", size: 40 },
|
|
242
242
|
{ variant: "circle", size: 64 }
|
|
243
|
-
],
|
|
243
|
+
], yn = [
|
|
244
244
|
{ bars: 10, maxHeight: 120 },
|
|
245
245
|
{ bars: 5, maxHeight: 80 }
|
|
246
|
-
],
|
|
246
|
+
], wn = [
|
|
247
247
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
248
248
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
249
|
-
],
|
|
249
|
+
], _n = [
|
|
250
250
|
{ variant: "value", colSpan: 1 },
|
|
251
251
|
{ variant: "trend", colSpan: 2 },
|
|
252
252
|
{ variant: "target", colSpan: 1 }
|
|
@@ -276,25 +276,25 @@ const St = ({
|
|
|
276
276
|
width: "100%",
|
|
277
277
|
textAlign: "left",
|
|
278
278
|
border: "none"
|
|
279
|
-
}),
|
|
279
|
+
}), At = (e) => ({
|
|
280
280
|
...Ie(e),
|
|
281
281
|
color: e ? "#4338ca" : "#4f46e5",
|
|
282
282
|
fontWeight: 600
|
|
283
|
-
}),
|
|
283
|
+
}), Lt = {
|
|
284
284
|
height: 1,
|
|
285
285
|
background: "rgba(0,0,0,0.06)",
|
|
286
286
|
margin: "3px 10px"
|
|
287
287
|
};
|
|
288
|
-
function
|
|
288
|
+
function Ot({
|
|
289
289
|
open: e,
|
|
290
290
|
anchorEl: t,
|
|
291
291
|
statusId: n,
|
|
292
292
|
onOpenInTable: a,
|
|
293
|
-
onShowOnGraph:
|
|
294
|
-
overflowActions:
|
|
293
|
+
onShowOnGraph: i,
|
|
294
|
+
overflowActions: s,
|
|
295
295
|
onClose: o
|
|
296
296
|
}) {
|
|
297
|
-
const [l, u] = $(null), d =
|
|
297
|
+
const [l, u] = $(null), d = T(null), p = w(() => {
|
|
298
298
|
if (!t) return { ...Ge, top: 0, left: 0 };
|
|
299
299
|
const m = t.getBoundingClientRect();
|
|
300
300
|
return {
|
|
@@ -303,20 +303,20 @@ function Et({
|
|
|
303
303
|
left: m.left
|
|
304
304
|
};
|
|
305
305
|
}, [t]);
|
|
306
|
-
if (
|
|
306
|
+
if (L(() => {
|
|
307
307
|
if (!e) return;
|
|
308
|
-
const m = (
|
|
309
|
-
|
|
308
|
+
const m = (D) => {
|
|
309
|
+
D.key === "Escape" && o();
|
|
310
310
|
};
|
|
311
311
|
return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
|
|
312
|
-
}, [e, o]),
|
|
312
|
+
}, [e, o]), L(() => {
|
|
313
313
|
if (!e) return;
|
|
314
|
-
const m = (
|
|
315
|
-
d.current && !d.current.contains(
|
|
314
|
+
const m = (D) => {
|
|
315
|
+
d.current && !d.current.contains(D.target) && o();
|
|
316
316
|
};
|
|
317
317
|
return document.addEventListener("pointerdown", m, !0), () => document.removeEventListener("pointerdown", m, !0);
|
|
318
318
|
}, [e, o]), !e) return null;
|
|
319
|
-
const f =
|
|
319
|
+
const f = s && s.length > 0, g = /* @__PURE__ */ N(
|
|
320
320
|
"div",
|
|
321
321
|
{
|
|
322
322
|
ref: d,
|
|
@@ -329,7 +329,7 @@ function Et({
|
|
|
329
329
|
"button",
|
|
330
330
|
{
|
|
331
331
|
role: "menuitem",
|
|
332
|
-
style:
|
|
332
|
+
style: At(l === "__primary"),
|
|
333
333
|
onMouseEnter: () => u("__primary"),
|
|
334
334
|
onMouseLeave: () => u(null),
|
|
335
335
|
onClick: () => {
|
|
@@ -346,13 +346,13 @@ function Et({
|
|
|
346
346
|
onMouseEnter: () => u("__graph"),
|
|
347
347
|
onMouseLeave: () => u(null),
|
|
348
348
|
onClick: () => {
|
|
349
|
-
|
|
349
|
+
i(n), o();
|
|
350
350
|
},
|
|
351
351
|
children: "Show on graph"
|
|
352
352
|
}
|
|
353
353
|
),
|
|
354
|
-
f && /* @__PURE__ */ r("div", { style:
|
|
355
|
-
f &&
|
|
354
|
+
f && /* @__PURE__ */ r("div", { style: Lt }),
|
|
355
|
+
f && s?.map((m) => /* @__PURE__ */ r(
|
|
356
356
|
"button",
|
|
357
357
|
{
|
|
358
358
|
role: "menuitem",
|
|
@@ -369,10 +369,10 @@ function Et({
|
|
|
369
369
|
]
|
|
370
370
|
}
|
|
371
371
|
);
|
|
372
|
-
return
|
|
372
|
+
return Dt(g, document.body);
|
|
373
373
|
}
|
|
374
|
-
|
|
375
|
-
const
|
|
374
|
+
Ot.displayName = "StatusSlotChipMenu";
|
|
375
|
+
const Nn = {
|
|
376
376
|
forwardStaggerMs: 50,
|
|
377
377
|
reverseStaggerMs: 30,
|
|
378
378
|
springStiffness: 380,
|
|
@@ -384,18 +384,18 @@ const vn = {
|
|
|
384
384
|
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
385
385
|
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
386
386
|
translateOffsetPx: 8
|
|
387
|
-
},
|
|
387
|
+
}, Dn = {
|
|
388
388
|
shiverCycles: 3,
|
|
389
389
|
shiverAmplitudePx: 2,
|
|
390
390
|
shiverDurationMs: 180,
|
|
391
391
|
validCellOpacity: 0.6
|
|
392
|
-
},
|
|
392
|
+
}, kn = {
|
|
393
393
|
materializeMs: 180,
|
|
394
394
|
dematerializeMs: 140,
|
|
395
395
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
396
396
|
dotStrokePx: 2,
|
|
397
397
|
dividerDashGapPx: 4
|
|
398
|
-
},
|
|
398
|
+
}, Cn = {
|
|
399
399
|
cascadeStaggerMs: 0,
|
|
400
400
|
cascadeSpringCapMs: 120,
|
|
401
401
|
swingEnterMs: 100,
|
|
@@ -404,7 +404,7 @@ const vn = {
|
|
|
404
404
|
provisionalStyle: "opacity",
|
|
405
405
|
shiverMs: 200,
|
|
406
406
|
shiverStyle: "color-flash"
|
|
407
|
-
},
|
|
407
|
+
}, xn = !0, Sn = {
|
|
408
408
|
rejectionFill: "var(--gloss-rejection-fill)",
|
|
409
409
|
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
410
410
|
validFill: "var(--gloss-valid-fill)",
|
|
@@ -412,7 +412,7 @@ const vn = {
|
|
|
412
412
|
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
413
413
|
provisionalWash: "var(--gloss-provisional-wash)"
|
|
414
414
|
};
|
|
415
|
-
function
|
|
415
|
+
function Mn() {
|
|
416
416
|
if (typeof window > "u") return "full";
|
|
417
417
|
try {
|
|
418
418
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
@@ -420,8 +420,8 @@ function Cn() {
|
|
|
420
420
|
return "full";
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
const
|
|
423
|
+
const Qe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) => {
|
|
424
|
+
const s = {
|
|
425
425
|
"--gloss-swing-enter-ms": `${me.enterDurationMs}ms`,
|
|
426
426
|
"--gloss-swing-exit-ms": `${me.exitDurationMs}ms`,
|
|
427
427
|
"--gloss-swing-offset": `${me.translateOffsetPx}px`,
|
|
@@ -431,7 +431,7 @@ const Ze = ({ visible: e, variant: t, trigger: n, children: a, className: s }) =
|
|
|
431
431
|
"gloss-swing-reveal",
|
|
432
432
|
`gloss-swing-reveal--${t}`,
|
|
433
433
|
n === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
|
|
434
|
-
|
|
434
|
+
i ?? ""
|
|
435
435
|
].filter(Boolean).join(" ");
|
|
436
436
|
return /* @__PURE__ */ r(
|
|
437
437
|
"span",
|
|
@@ -440,12 +440,12 @@ const Ze = ({ visible: e, variant: t, trigger: n, children: a, className: s }) =
|
|
|
440
440
|
"data-variant": t,
|
|
441
441
|
"data-visible": e ? "true" : "false",
|
|
442
442
|
className: o,
|
|
443
|
-
style:
|
|
443
|
+
style: s,
|
|
444
444
|
children: a
|
|
445
445
|
}
|
|
446
446
|
);
|
|
447
|
-
},
|
|
448
|
-
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter:
|
|
447
|
+
}, $t = vt(
|
|
448
|
+
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: u = "right", ariaLabel: d = "Resize card" }, p) {
|
|
449
449
|
const f = t === "handle-visible" || t === "dragging" || t === "settling", g = (y) => {
|
|
450
450
|
try {
|
|
451
451
|
y.currentTarget.setPointerCapture(y.pointerId);
|
|
@@ -458,10 +458,10 @@ const Ze = ({ visible: e, variant: t, trigger: n, children: a, className: s }) =
|
|
|
458
458
|
} catch {
|
|
459
459
|
}
|
|
460
460
|
a(y);
|
|
461
|
-
},
|
|
461
|
+
}, D = (y) => {
|
|
462
462
|
!f || !o || (y.key === "ArrowRight" ? (y.preventDefault(), o("grow")) : y.key === "ArrowLeft" && (y.preventDefault(), o("shrink")));
|
|
463
463
|
};
|
|
464
|
-
return /* @__PURE__ */ r(
|
|
464
|
+
return /* @__PURE__ */ r(Qe, { visible: f, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
|
|
465
465
|
"button",
|
|
466
466
|
{
|
|
467
467
|
ref: p,
|
|
@@ -476,22 +476,22 @@ const Ze = ({ visible: e, variant: t, trigger: n, children: a, className: s }) =
|
|
|
476
476
|
].filter(Boolean).join(" "),
|
|
477
477
|
onPointerDown: g,
|
|
478
478
|
onPointerUp: m,
|
|
479
|
-
onPointerEnter:
|
|
480
|
-
onPointerLeave:
|
|
479
|
+
onPointerEnter: i,
|
|
480
|
+
onPointerLeave: s,
|
|
481
481
|
onLostPointerCapture: l,
|
|
482
|
-
onKeyDown:
|
|
482
|
+
onKeyDown: D,
|
|
483
483
|
tabIndex: f ? 0 : -1
|
|
484
484
|
}
|
|
485
485
|
) });
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
|
-
|
|
489
|
-
function
|
|
488
|
+
$t.displayName = "EdgeHoverHandle";
|
|
489
|
+
function Bt({
|
|
490
490
|
visible: e,
|
|
491
491
|
targetColSpan: t,
|
|
492
492
|
ghostWidth: n,
|
|
493
493
|
enterMs: a = 180,
|
|
494
|
-
exitMs:
|
|
494
|
+
exitMs: i = 120
|
|
495
495
|
}) {
|
|
496
496
|
return /* @__PURE__ */ r(
|
|
497
497
|
De.div,
|
|
@@ -505,13 +505,13 @@ function Ot({
|
|
|
505
505
|
].filter(Boolean).join(" "),
|
|
506
506
|
style: {
|
|
507
507
|
width: n,
|
|
508
|
-
transitionDuration: `${e ? a :
|
|
508
|
+
transitionDuration: `${e ? a : i}ms`
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
|
|
514
|
-
class
|
|
513
|
+
Bt.displayName = "GhostPreview";
|
|
514
|
+
class zt {
|
|
515
515
|
constructor() {
|
|
516
516
|
this.samples = [], this.capacity = 3;
|
|
517
517
|
}
|
|
@@ -552,11 +552,11 @@ class Lt {
|
|
|
552
552
|
const [u, d] = this.samples, p = Math.max(1, d.t - u.t);
|
|
553
553
|
return (d.x - u.x) / p * 1e3;
|
|
554
554
|
}
|
|
555
|
-
const [n, a,
|
|
556
|
-
return (
|
|
555
|
+
const [n, a, i] = this.samples, s = (i.x - a.x) / Math.max(1, i.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
|
|
556
|
+
return (s * 3 + o * 2 + l * 1) / 6;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const Xe = {
|
|
560
560
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
561
561
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
562
562
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -576,13 +576,13 @@ const qe = {
|
|
|
576
576
|
// Velocity multiplier (D-03b panel)
|
|
577
577
|
velocityMultiplier: 1
|
|
578
578
|
};
|
|
579
|
-
function
|
|
579
|
+
function Tn({
|
|
580
580
|
currentColSpan: e,
|
|
581
581
|
stackable: t,
|
|
582
582
|
onResize: n,
|
|
583
583
|
onCancel: a,
|
|
584
|
-
step:
|
|
585
|
-
gap:
|
|
584
|
+
step: i = 180,
|
|
585
|
+
gap: s = 0,
|
|
586
586
|
tuning: o,
|
|
587
587
|
dwellMs: l = 60,
|
|
588
588
|
graceExitMs: u = 150,
|
|
@@ -592,49 +592,49 @@ function kn({
|
|
|
592
592
|
containerRef: g,
|
|
593
593
|
forceIdle: m
|
|
594
594
|
}) {
|
|
595
|
-
const [
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}, [
|
|
599
|
-
const x =
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
595
|
+
const [D, y] = $("idle"), [h, M] = $(e), P = T(null), C = T(null), R = T(null), I = T(null), c = T(i), v = T(s), _ = T(f), S = T(0), b = T("idle");
|
|
596
|
+
L(() => {
|
|
597
|
+
b.current = D;
|
|
598
|
+
}, [D]);
|
|
599
|
+
const x = wt(0), F = T(null), U = w(() => {
|
|
600
|
+
const k = F.current;
|
|
601
|
+
if (k) {
|
|
602
602
|
try {
|
|
603
|
-
|
|
603
|
+
k.stop();
|
|
604
604
|
} catch {
|
|
605
605
|
}
|
|
606
606
|
F.current = null;
|
|
607
607
|
}
|
|
608
608
|
}, []), q = w(
|
|
609
|
-
(
|
|
610
|
-
const E = c.current, A =
|
|
611
|
-
return
|
|
609
|
+
(k) => {
|
|
610
|
+
const E = c.current, A = v.current;
|
|
611
|
+
return k * E + (k - 1) * A;
|
|
612
612
|
},
|
|
613
613
|
[]
|
|
614
|
-
), j =
|
|
615
|
-
|
|
614
|
+
), j = T(new zt()), G = T(e);
|
|
615
|
+
L(() => {
|
|
616
616
|
G.current = h;
|
|
617
617
|
}, [h]);
|
|
618
|
-
const B = ye(() => ({ ...
|
|
618
|
+
const B = ye(() => ({ ...Xe, ...o ?? {} }), [o]), Z = w(() => {
|
|
619
619
|
P.current && (clearTimeout(P.current), P.current = null);
|
|
620
|
-
}, []),
|
|
621
|
-
|
|
620
|
+
}, []), O = w(() => {
|
|
621
|
+
C.current && (clearTimeout(C.current), C.current = null);
|
|
622
622
|
}, []), J = w(() => {
|
|
623
|
-
|
|
623
|
+
R.current && (clearTimeout(R.current), R.current = null);
|
|
624
624
|
}, []);
|
|
625
|
-
|
|
626
|
-
m && (
|
|
627
|
-
}, [m, Z,
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
}, [l,
|
|
625
|
+
L(() => {
|
|
626
|
+
m && (b.current === "dragging" || b.current === "settling" || (Z(), O(), J(), b.current = "idle", y("idle")));
|
|
627
|
+
}, [m, Z, O, J]);
|
|
628
|
+
const Oe = w(() => {
|
|
629
|
+
O(), y((k) => k === "settling" || k !== "idle" ? k : (P.current = setTimeout(() => y("handle-visible"), l), "dwelling"));
|
|
630
|
+
}, [l, O]), $e = w(() => {
|
|
631
631
|
Z();
|
|
632
|
-
const
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
const k = b.current;
|
|
633
|
+
k !== "dwelling" && k !== "handle-visible" || (C.current = setTimeout(() => {
|
|
634
|
+
b.current = "idle", y("idle");
|
|
635
635
|
}, u));
|
|
636
636
|
}, [Z, u]), oe = w(
|
|
637
|
-
(
|
|
637
|
+
(k, E, A) => {
|
|
638
638
|
const z = c.current, ee = z * B.snapInFraction, Y = z * B.snapOutFraction, K = E - A, V = Math.max(
|
|
639
639
|
A,
|
|
640
640
|
_.current ?? f
|
|
@@ -642,102 +642,102 @@ function kn({
|
|
|
642
642
|
let W = K;
|
|
643
643
|
for (; A + W < V; ) {
|
|
644
644
|
const ae = W * z + (W < 0 ? Y : ee);
|
|
645
|
-
if (
|
|
645
|
+
if (k >= ae) W += 1;
|
|
646
646
|
else break;
|
|
647
647
|
}
|
|
648
648
|
if (W === K)
|
|
649
649
|
for (; A + W > 1; ) {
|
|
650
650
|
const ae = W * z - (W > 0 ? Y : ee);
|
|
651
|
-
if (
|
|
651
|
+
if (k <= ae) W -= 1;
|
|
652
652
|
else break;
|
|
653
653
|
}
|
|
654
654
|
return Math.min(V, Math.max(1, A + W));
|
|
655
655
|
},
|
|
656
656
|
[B.snapInFraction, B.snapOutFraction, f]
|
|
657
|
-
),
|
|
658
|
-
(
|
|
659
|
-
if (
|
|
660
|
-
U(), I.current =
|
|
661
|
-
const E = e *
|
|
662
|
-
S.current = E, j.current.clear(), j.current.push({ x:
|
|
657
|
+
), ct = w(
|
|
658
|
+
(k) => {
|
|
659
|
+
if (b.current !== "handle-visible") return;
|
|
660
|
+
U(), I.current = k.clientX, c.current = i, v.current = s, _.current = f;
|
|
661
|
+
const E = e * i + (e - 1) * s;
|
|
662
|
+
S.current = E, j.current.clear(), j.current.push({ x: k.clientX, t: performance.now() }), x.jump(E), b.current = "dragging", y("dragging");
|
|
663
663
|
},
|
|
664
|
-
[
|
|
664
|
+
[i, s, f, e, x, U]
|
|
665
665
|
), Be = w(
|
|
666
|
-
(
|
|
666
|
+
(k) => k * c.current + (k - 1) * v.current,
|
|
667
667
|
[]
|
|
668
668
|
), ie = w(
|
|
669
|
-
(
|
|
670
|
-
const A = Be(
|
|
669
|
+
(k, E) => {
|
|
670
|
+
const A = Be(k), z = k !== e;
|
|
671
671
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
672
|
-
x.jump(A), z && E ? n({ direction: E, targetColSpan:
|
|
672
|
+
x.jump(A), z && E ? n({ direction: E, targetColSpan: k, mode: t ? "slot-fill" : "sparkline-fidelity" }) : z || a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
675
|
const Y = j.current.getWeightedVelocity() * B.velocityMultiplier;
|
|
676
|
-
|
|
676
|
+
b.current = "settling", y("settling"), U(), F.current = We(x, A, {
|
|
677
677
|
type: "spring",
|
|
678
678
|
stiffness: B.stiffness,
|
|
679
679
|
damping: B.damping,
|
|
680
680
|
mass: B.mass,
|
|
681
681
|
velocity: Y,
|
|
682
682
|
onComplete: () => {
|
|
683
|
-
F.current = null, z && E ? n({ direction: E, targetColSpan:
|
|
683
|
+
F.current = null, z && E ? n({ direction: E, targetColSpan: k, mode: t ? "slot-fill" : "sparkline-fidelity" }) : z || a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
},
|
|
687
687
|
[Be, e, t, n, a, x, B, U]
|
|
688
|
-
),
|
|
689
|
-
(
|
|
690
|
-
if (
|
|
691
|
-
const E =
|
|
692
|
-
j.current.push({ x:
|
|
688
|
+
), dt = w(
|
|
689
|
+
(k) => {
|
|
690
|
+
if (b.current !== "dragging") return;
|
|
691
|
+
const E = k.clientX - (I.current ?? k.clientX), A = c.current, ee = ((_.current ?? f) - e) * A, Y = (1 - e) * A, K = Math.max(Y, Math.min(ee, E));
|
|
692
|
+
j.current.push({ x: k.clientX, t: performance.now() });
|
|
693
693
|
const V = oe(K, G.current, e), W = V > e ? "grow" : V < e ? "shrink" : null;
|
|
694
694
|
ie(V, W);
|
|
695
695
|
},
|
|
696
696
|
[oe, e, f, ie]
|
|
697
697
|
), le = w(() => {
|
|
698
|
-
if (Z(),
|
|
699
|
-
const
|
|
698
|
+
if (Z(), b.current === "dragging") {
|
|
699
|
+
const k = S.current;
|
|
700
700
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
701
|
-
x.jump(
|
|
701
|
+
x.jump(k), a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
704
|
const A = j.current.getWeightedVelocity();
|
|
705
|
-
|
|
705
|
+
b.current = "settling", y("settling"), U(), F.current = We(x, k, {
|
|
706
706
|
type: "spring",
|
|
707
707
|
stiffness: B.stiffness,
|
|
708
708
|
damping: B.damping,
|
|
709
709
|
mass: B.mass,
|
|
710
710
|
velocity: A,
|
|
711
711
|
onComplete: () => {
|
|
712
|
-
F.current = null, a?.(), x.jump(0),
|
|
712
|
+
F.current = null, a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
b.current === "handle-visible" && (a?.(), b.current = "cancelled", y("cancelled"));
|
|
718
718
|
}, [Z, x, a, B, U]);
|
|
719
|
-
|
|
720
|
-
if (
|
|
721
|
-
const
|
|
719
|
+
L(() => {
|
|
720
|
+
if (D !== "dragging" && D !== "handle-visible") return;
|
|
721
|
+
const k = (E) => {
|
|
722
722
|
E.key === "Escape" && le();
|
|
723
723
|
};
|
|
724
|
-
return window.addEventListener("keydown",
|
|
725
|
-
}, [
|
|
726
|
-
if (
|
|
724
|
+
return window.addEventListener("keydown", k), () => window.removeEventListener("keydown", k);
|
|
725
|
+
}, [D, le]), L(() => {
|
|
726
|
+
if (D !== "dragging") {
|
|
727
727
|
M(e);
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
const
|
|
730
|
+
const k = (K) => {
|
|
731
731
|
const V = K.clientX - (I.current ?? K.clientX), W = S.current, ce = q(1), ae = q(f), we = W + V, Ke = Math.max(ce, Math.min(ae, we));
|
|
732
732
|
x.set(Ke);
|
|
733
|
-
const _e = c.current,
|
|
733
|
+
const _e = c.current, Ce = (f - e) * _e, xe = (1 - e) * _e, de = Math.max(xe, Math.min(Ce, V));
|
|
734
734
|
j.current.push({ x: K.clientX, t: performance.now() });
|
|
735
735
|
const ue = oe(de, G.current, e);
|
|
736
736
|
ue !== G.current && (G.current = ue, M(ue));
|
|
737
737
|
}, E = (K, V) => {
|
|
738
|
-
if (
|
|
738
|
+
if (b.current === "dragging")
|
|
739
739
|
if (K === "pointerup") {
|
|
740
|
-
const W = j.current.tail(), ce = V?.clientX ?? W?.x ?? I.current ?? 0, ae = ce - (I.current ?? ce), we = c.current, _e = ((_.current ?? f) - e) * we,
|
|
740
|
+
const W = j.current.tail(), ce = V?.clientX ?? W?.x ?? I.current ?? 0, ae = ce - (I.current ?? ce), we = c.current, _e = ((_.current ?? f) - e) * we, Ce = (1 - e) * we, xe = Math.max(Ce, Math.min(_e, ae));
|
|
741
741
|
V && j.current.push({ x: V.clientX, t: performance.now() });
|
|
742
742
|
const de = oe(xe, G.current, e), ue = de > e ? "grow" : de < e ? "shrink" : null;
|
|
743
743
|
ie(de, ue);
|
|
@@ -746,58 +746,58 @@ function kn({
|
|
|
746
746
|
}, A = (K) => E("pointerup", K), z = (K) => E("pointercancel", K), ee = () => E("blur"), Y = () => {
|
|
747
747
|
document.visibilityState === "hidden" && E("visibility-hidden");
|
|
748
748
|
};
|
|
749
|
-
return window.addEventListener("pointermove",
|
|
750
|
-
window.removeEventListener("pointermove",
|
|
749
|
+
return window.addEventListener("pointermove", k), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", z), window.addEventListener("blur", ee), document.addEventListener("visibilitychange", Y), () => {
|
|
750
|
+
window.removeEventListener("pointermove", k), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", z), window.removeEventListener("blur", ee), document.removeEventListener("visibilitychange", Y);
|
|
751
751
|
};
|
|
752
|
-
}, [
|
|
753
|
-
Z(),
|
|
754
|
-
}, [Z,
|
|
755
|
-
if (
|
|
756
|
-
const
|
|
757
|
-
return () => clearTimeout(
|
|
758
|
-
}, [
|
|
759
|
-
const
|
|
760
|
-
(
|
|
761
|
-
if (
|
|
762
|
-
const A = Math.min(f, Math.max(1, e + (
|
|
752
|
+
}, [D, e, x, oe, f, q, le, ie]), L(() => () => {
|
|
753
|
+
Z(), O(), J();
|
|
754
|
+
}, [Z, O, J]), L(() => {
|
|
755
|
+
if (D !== "cancelled") return;
|
|
756
|
+
const k = setTimeout(() => y("idle"), p);
|
|
757
|
+
return () => clearTimeout(k);
|
|
758
|
+
}, [D, p]);
|
|
759
|
+
const ut = w(
|
|
760
|
+
(k) => {
|
|
761
|
+
if (b.current === "settling") return;
|
|
762
|
+
const A = Math.min(f, Math.max(1, e + (k === "grow" ? 1 : -1)));
|
|
763
763
|
if (A === e) return;
|
|
764
|
-
c.current =
|
|
765
|
-
const z = e *
|
|
766
|
-
S.current = z, x.jump(z), ie(A,
|
|
764
|
+
c.current = i, v.current = s, _.current = f, j.current.clear();
|
|
765
|
+
const z = e * i + (e - 1) * s;
|
|
766
|
+
S.current = z, x.jump(z), ie(A, k);
|
|
767
767
|
},
|
|
768
|
-
[e,
|
|
768
|
+
[e, i, s, f, x, ie]
|
|
769
769
|
), ze = w(() => {
|
|
770
|
-
J(),
|
|
771
|
-
|
|
770
|
+
J(), R.current = setTimeout(() => {
|
|
771
|
+
b.current === "handle-visible" && (b.current = "idle", y("idle"));
|
|
772
772
|
}, 5e3);
|
|
773
|
-
}, [J]),
|
|
774
|
-
|
|
775
|
-
}, [Z, ze]),
|
|
776
|
-
J(),
|
|
773
|
+
}, [J]), mt = w(() => {
|
|
774
|
+
b.current === "idle" && (Z(), b.current = "handle-visible", y("handle-visible"), ze());
|
|
775
|
+
}, [Z, ze]), gt = w(() => {
|
|
776
|
+
J(), b.current === "handle-visible" && (b.current = "idle", y("idle"));
|
|
777
777
|
}, [J]);
|
|
778
778
|
return {
|
|
779
|
-
state:
|
|
780
|
-
enterEdgeZone:
|
|
779
|
+
state: D,
|
|
780
|
+
enterEdgeZone: Oe,
|
|
781
781
|
leaveEdgeZone: $e,
|
|
782
782
|
handleProps: {
|
|
783
|
-
onPointerDown:
|
|
784
|
-
onPointerUp:
|
|
783
|
+
onPointerDown: ct,
|
|
784
|
+
onPointerUp: dt,
|
|
785
785
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
786
786
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
787
|
-
onPointerEnter:
|
|
787
|
+
onPointerEnter: Oe,
|
|
788
788
|
onPointerLeave: $e
|
|
789
789
|
},
|
|
790
790
|
previewColSpan: h,
|
|
791
791
|
ghostProps: {
|
|
792
|
-
visible:
|
|
792
|
+
visible: D === "dragging" || D === "settling",
|
|
793
793
|
targetColSpan: h,
|
|
794
794
|
ghostWidth: x,
|
|
795
795
|
enterMs: d,
|
|
796
796
|
exitMs: p
|
|
797
797
|
},
|
|
798
|
-
onKeyboardStep:
|
|
799
|
-
onTouchReveal:
|
|
800
|
-
onTouchDismiss:
|
|
798
|
+
onKeyboardStep: ut,
|
|
799
|
+
onTouchReveal: mt,
|
|
800
|
+
onTouchDismiss: gt,
|
|
801
801
|
cancel: le
|
|
802
802
|
};
|
|
803
803
|
}
|
|
@@ -826,14 +826,14 @@ const se = {
|
|
|
826
826
|
sectionDividerFadeOutMs: 80,
|
|
827
827
|
sectionDividerStaggerMs: 40
|
|
828
828
|
};
|
|
829
|
-
function
|
|
830
|
-
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx:
|
|
829
|
+
function Rn(e) {
|
|
830
|
+
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: i } = e;
|
|
831
831
|
if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
|
|
832
832
|
return;
|
|
833
|
-
const
|
|
834
|
-
return
|
|
833
|
+
const s = (a + 0.5) * (t / n);
|
|
834
|
+
return i != null && Number.isFinite(i) && i > 0 ? s - i / 2 : s;
|
|
835
835
|
}
|
|
836
|
-
const
|
|
836
|
+
const In = [
|
|
837
837
|
// 1. Standard: Total Revenue
|
|
838
838
|
{
|
|
839
839
|
variant: "standard",
|
|
@@ -965,24 +965,24 @@ const Sn = [
|
|
|
965
965
|
subtitle: "Awaiting QA",
|
|
966
966
|
highlightColor: "neutral"
|
|
967
967
|
}
|
|
968
|
-
],
|
|
968
|
+
], Kt = {
|
|
969
969
|
variant: "standard",
|
|
970
970
|
label: "Total Revenue",
|
|
971
971
|
isLoading: !0
|
|
972
|
-
},
|
|
972
|
+
}, Wt = {
|
|
973
973
|
variant: "standard",
|
|
974
974
|
label: "Total Revenue",
|
|
975
975
|
value: 125430,
|
|
976
976
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
977
977
|
isError: !0
|
|
978
|
-
},
|
|
978
|
+
}, Gt = {
|
|
979
979
|
variant: "standard",
|
|
980
980
|
label: "Total Revenue",
|
|
981
981
|
value: null,
|
|
982
982
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
983
983
|
isEmpty: !0,
|
|
984
984
|
subtitle: "No data"
|
|
985
|
-
},
|
|
985
|
+
}, Vt = {
|
|
986
986
|
variant: "standard",
|
|
987
987
|
label: "Total Revenue",
|
|
988
988
|
value: 125430,
|
|
@@ -990,7 +990,7 @@ const Sn = [
|
|
|
990
990
|
trend: { value: 12.5, direction: "up" },
|
|
991
991
|
subtitle: "MTD",
|
|
992
992
|
isStale: !0
|
|
993
|
-
},
|
|
993
|
+
}, Ht = {
|
|
994
994
|
variant: "sparkline",
|
|
995
995
|
label: "Daily Orders",
|
|
996
996
|
value: 847,
|
|
@@ -999,7 +999,7 @@ const Sn = [
|
|
|
999
999
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
1000
1000
|
accentColor: "#6366f1",
|
|
1001
1001
|
isStale: !0
|
|
1002
|
-
},
|
|
1002
|
+
}, Ut = {
|
|
1003
1003
|
variant: "donut",
|
|
1004
1004
|
label: "Order Fill Rate",
|
|
1005
1005
|
value: 78,
|
|
@@ -1010,14 +1010,14 @@ const Sn = [
|
|
|
1010
1010
|
donutMax: 100,
|
|
1011
1011
|
accentColor: "#10b981",
|
|
1012
1012
|
isStale: !0
|
|
1013
|
-
},
|
|
1014
|
-
$t,
|
|
1015
|
-
Bt,
|
|
1016
|
-
zt,
|
|
1013
|
+
}, Pn = [
|
|
1017
1014
|
Kt,
|
|
1018
1015
|
Wt,
|
|
1019
|
-
Gt
|
|
1020
|
-
|
|
1016
|
+
Gt,
|
|
1017
|
+
Vt,
|
|
1018
|
+
Ht,
|
|
1019
|
+
Ut
|
|
1020
|
+
], Fn = {
|
|
1021
1021
|
variant: "sparkline",
|
|
1022
1022
|
label: "Daily Orders",
|
|
1023
1023
|
value: 847,
|
|
@@ -1040,7 +1040,7 @@ const Sn = [
|
|
|
1040
1040
|
59
|
|
1041
1041
|
],
|
|
1042
1042
|
accentColor: "#6366f1"
|
|
1043
|
-
},
|
|
1043
|
+
}, En = {
|
|
1044
1044
|
variant: "sparkline",
|
|
1045
1045
|
label: "New Customers",
|
|
1046
1046
|
value: 23,
|
|
@@ -1079,21 +1079,21 @@ const Sn = [
|
|
|
1079
1079
|
19
|
|
1080
1080
|
],
|
|
1081
1081
|
accentColor: "#10b981"
|
|
1082
|
-
},
|
|
1082
|
+
}, An = {
|
|
1083
1083
|
variant: "standard",
|
|
1084
1084
|
label: "Total Revenue",
|
|
1085
1085
|
value: 125430,
|
|
1086
1086
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1087
1087
|
trend: { value: 12.5, direction: "up" },
|
|
1088
1088
|
subtitle: "MTD"
|
|
1089
|
-
},
|
|
1089
|
+
}, Ln = {
|
|
1090
1090
|
variant: "standard",
|
|
1091
1091
|
label: "Returns",
|
|
1092
1092
|
value: 3280,
|
|
1093
1093
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1094
1094
|
trend: { value: -8.3, direction: "down" },
|
|
1095
1095
|
subtitle: "MTD"
|
|
1096
|
-
},
|
|
1096
|
+
}, On = {
|
|
1097
1097
|
variant: "standard",
|
|
1098
1098
|
label: "Avg Order Value",
|
|
1099
1099
|
value: 487,
|
|
@@ -1101,21 +1101,21 @@ const Sn = [
|
|
|
1101
1101
|
trend: { value: 0, direction: "flat" },
|
|
1102
1102
|
subtitle: "QTD"
|
|
1103
1103
|
};
|
|
1104
|
-
function
|
|
1104
|
+
function Je({
|
|
1105
1105
|
open: e,
|
|
1106
1106
|
onDismiss: t,
|
|
1107
1107
|
anchorRef: n,
|
|
1108
1108
|
pages: a,
|
|
1109
|
-
activePageId:
|
|
1110
|
-
onPageChange:
|
|
1109
|
+
activePageId: i,
|
|
1110
|
+
onPageChange: s,
|
|
1111
1111
|
onCreatePage: o,
|
|
1112
1112
|
onManagePages: l
|
|
1113
1113
|
}) {
|
|
1114
1114
|
const u = w(
|
|
1115
1115
|
(g) => {
|
|
1116
|
-
|
|
1116
|
+
s(g), t();
|
|
1117
1117
|
},
|
|
1118
|
-
[
|
|
1118
|
+
[s, t]
|
|
1119
1119
|
), d = w(
|
|
1120
1120
|
(g, m) => {
|
|
1121
1121
|
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), u(g));
|
|
@@ -1126,8 +1126,8 @@ function Ye({
|
|
|
1126
1126
|
}, [o, t]), f = w(() => {
|
|
1127
1127
|
l(), t();
|
|
1128
1128
|
}, [l, t]);
|
|
1129
|
-
return /* @__PURE__ */
|
|
1130
|
-
|
|
1129
|
+
return /* @__PURE__ */ N(
|
|
1130
|
+
Nt,
|
|
1131
1131
|
{
|
|
1132
1132
|
definition: {
|
|
1133
1133
|
placement: "bottom-end",
|
|
@@ -1141,8 +1141,8 @@ function Ye({
|
|
|
1141
1141
|
className: "gloss-page-dropdown",
|
|
1142
1142
|
children: [
|
|
1143
1143
|
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((g) => {
|
|
1144
|
-
const m = g.id ===
|
|
1145
|
-
return /* @__PURE__ */
|
|
1144
|
+
const m = g.id === i;
|
|
1145
|
+
return /* @__PURE__ */ N(
|
|
1146
1146
|
"li",
|
|
1147
1147
|
{
|
|
1148
1148
|
role: "menuitemradio",
|
|
@@ -1151,7 +1151,7 @@ function Ye({
|
|
|
1151
1151
|
tabIndex: 0,
|
|
1152
1152
|
className: `gloss-page-dropdown__item${m ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1153
1153
|
onClick: () => u(g.id),
|
|
1154
|
-
onKeyDown: (
|
|
1154
|
+
onKeyDown: (D) => d(g.id, D),
|
|
1155
1155
|
children: [
|
|
1156
1156
|
/* @__PURE__ */ r(
|
|
1157
1157
|
"span",
|
|
@@ -1196,24 +1196,24 @@ function Ye({
|
|
|
1196
1196
|
}
|
|
1197
1197
|
);
|
|
1198
1198
|
}
|
|
1199
|
-
|
|
1200
|
-
const
|
|
1199
|
+
Je.displayName = "PageDropdown";
|
|
1200
|
+
const jt = function({
|
|
1201
1201
|
currentIndex: t,
|
|
1202
1202
|
total: n,
|
|
1203
1203
|
pages: a,
|
|
1204
|
-
onPageChange:
|
|
1205
|
-
onCreatePage:
|
|
1204
|
+
onPageChange: i,
|
|
1205
|
+
onCreatePage: s,
|
|
1206
1206
|
onManagePages: o,
|
|
1207
1207
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1208
1208
|
displayMode: u = "count",
|
|
1209
1209
|
activePage: d
|
|
1210
1210
|
}) {
|
|
1211
|
-
const p =
|
|
1211
|
+
const p = T(null), [f, g] = $(!1), m = w(() => {
|
|
1212
1212
|
g((M) => !M);
|
|
1213
|
-
}, []),
|
|
1213
|
+
}, []), D = w(() => {
|
|
1214
1214
|
g(!1);
|
|
1215
1215
|
}, []), y = a[t]?.id ?? "";
|
|
1216
|
-
return /* @__PURE__ */
|
|
1216
|
+
return /* @__PURE__ */ N(
|
|
1217
1217
|
"div",
|
|
1218
1218
|
{
|
|
1219
1219
|
className: "gloss-page-chip",
|
|
@@ -1236,10 +1236,10 @@ const Vt = function({
|
|
|
1236
1236
|
"aria-expanded": f,
|
|
1237
1237
|
"aria-label": u === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1238
1238
|
onClick: m,
|
|
1239
|
-
children: u === "name" ? /* @__PURE__ */
|
|
1239
|
+
children: u === "name" ? /* @__PURE__ */ N(te, { children: [
|
|
1240
1240
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
|
|
1241
1241
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1242
|
-
] }) : /* @__PURE__ */
|
|
1242
|
+
] }) : /* @__PURE__ */ N(te, { children: [
|
|
1243
1243
|
t + 1,
|
|
1244
1244
|
" / ",
|
|
1245
1245
|
n
|
|
@@ -1247,15 +1247,15 @@ const Vt = function({
|
|
|
1247
1247
|
}
|
|
1248
1248
|
),
|
|
1249
1249
|
/* @__PURE__ */ r(
|
|
1250
|
-
|
|
1250
|
+
Je,
|
|
1251
1251
|
{
|
|
1252
1252
|
open: f,
|
|
1253
|
-
onDismiss:
|
|
1253
|
+
onDismiss: D,
|
|
1254
1254
|
anchorRef: p,
|
|
1255
1255
|
pages: a,
|
|
1256
1256
|
activePageId: y,
|
|
1257
|
-
onPageChange:
|
|
1258
|
-
onCreatePage:
|
|
1257
|
+
onPageChange: i,
|
|
1258
|
+
onCreatePage: s,
|
|
1259
1259
|
onManagePages: o
|
|
1260
1260
|
}
|
|
1261
1261
|
)
|
|
@@ -1263,8 +1263,8 @@ const Vt = function({
|
|
|
1263
1263
|
}
|
|
1264
1264
|
);
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1266
|
+
jt.displayName = "PageChip";
|
|
1267
|
+
const $n = [
|
|
1268
1268
|
{
|
|
1269
1269
|
id: "ORD-1001",
|
|
1270
1270
|
orderNumber: "ORD-1001",
|
|
@@ -1397,7 +1397,7 @@ const En = [
|
|
|
1397
1397
|
date: "2026-03-01",
|
|
1398
1398
|
skuCount: 9
|
|
1399
1399
|
}
|
|
1400
|
-
],
|
|
1400
|
+
], Bn = [
|
|
1401
1401
|
{
|
|
1402
1402
|
id: "ITEM-001",
|
|
1403
1403
|
sku: "PB-4520",
|
|
@@ -1534,13 +1534,13 @@ const En = [
|
|
|
1534
1534
|
function Pe(e) {
|
|
1535
1535
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function et(e) {
|
|
1538
1538
|
return e.toLocaleString("en-US");
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function tt(e) {
|
|
1541
1541
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1542
1542
|
}
|
|
1543
|
-
const he = H.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"),
|
|
1543
|
+
const he = H.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), zn = [
|
|
1544
1544
|
{
|
|
1545
1545
|
field: "id",
|
|
1546
1546
|
headerName: "Order",
|
|
@@ -1570,7 +1570,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1570
1570
|
align: "right",
|
|
1571
1571
|
headerAlign: "right",
|
|
1572
1572
|
cellClassName: "gloss-tabular-nums",
|
|
1573
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1573
|
+
renderCell: ({ row: e }) => e.skuCount ? et(e.skuCount) : he
|
|
1574
1574
|
},
|
|
1575
1575
|
{
|
|
1576
1576
|
field: "total",
|
|
@@ -1590,9 +1590,9 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1590
1590
|
align: "right",
|
|
1591
1591
|
headerAlign: "right",
|
|
1592
1592
|
cellClassName: "gloss-tabular-nums",
|
|
1593
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1593
|
+
renderCell: ({ row: e }) => e.date ? tt(e.date) : ""
|
|
1594
1594
|
}
|
|
1595
|
-
],
|
|
1595
|
+
], Kn = [
|
|
1596
1596
|
{
|
|
1597
1597
|
field: "sku",
|
|
1598
1598
|
headerName: "Item ID",
|
|
@@ -1634,7 +1634,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1634
1634
|
align: "right",
|
|
1635
1635
|
headerAlign: "right",
|
|
1636
1636
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1637
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1637
|
+
renderCell: ({ row: e }) => e.quantity ? et(e.quantity) : he
|
|
1638
1638
|
},
|
|
1639
1639
|
{
|
|
1640
1640
|
field: "total",
|
|
@@ -1654,24 +1654,24 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1654
1654
|
align: "right",
|
|
1655
1655
|
headerAlign: "right",
|
|
1656
1656
|
cellClassName: "gloss-tabular-nums",
|
|
1657
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1657
|
+
renderCell: ({ row: e }) => e.lastDate ? tt(e.lastDate) : ""
|
|
1658
1658
|
}
|
|
1659
|
-
],
|
|
1659
|
+
], Zt = [
|
|
1660
1660
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1661
1661
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1662
1662
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1663
1663
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1664
1664
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1665
|
-
],
|
|
1665
|
+
], qt = [
|
|
1666
1666
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1667
1667
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1668
1668
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1669
1669
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1670
1670
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1671
1671
|
], Se = (e) => {
|
|
1672
|
-
},
|
|
1672
|
+
}, Yt = (e) => {
|
|
1673
1673
|
}, Ve = (e, t) => {
|
|
1674
|
-
},
|
|
1674
|
+
}, at = {
|
|
1675
1675
|
vizState: {
|
|
1676
1676
|
type: "orders",
|
|
1677
1677
|
quant: "$",
|
|
@@ -1680,16 +1680,16 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1680
1680
|
timeFrame: "MTD"
|
|
1681
1681
|
},
|
|
1682
1682
|
onTypeChange: Se,
|
|
1683
|
-
onQuantChange:
|
|
1683
|
+
onQuantChange: Yt,
|
|
1684
1684
|
onEntityTypeChange: Se,
|
|
1685
1685
|
onEntitySelect: Ve,
|
|
1686
1686
|
onItemSelect: Ve,
|
|
1687
1687
|
onTimeFrameChange: Se,
|
|
1688
1688
|
userType: "sales-agency",
|
|
1689
|
-
entityFilterOptions:
|
|
1690
|
-
itemFilterOptions:
|
|
1691
|
-
},
|
|
1692
|
-
...
|
|
1689
|
+
entityFilterOptions: Zt,
|
|
1690
|
+
itemFilterOptions: qt
|
|
1691
|
+
}, Wn = {
|
|
1692
|
+
...at,
|
|
1693
1693
|
vizState: {
|
|
1694
1694
|
type: "items",
|
|
1695
1695
|
quant: "$",
|
|
@@ -1697,8 +1697,8 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1697
1697
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1698
1698
|
timeFrame: "YTD"
|
|
1699
1699
|
}
|
|
1700
|
-
},
|
|
1701
|
-
...
|
|
1700
|
+
}, Gn = {
|
|
1701
|
+
...at,
|
|
1702
1702
|
vizState: {
|
|
1703
1703
|
type: "orders",
|
|
1704
1704
|
quant: "#",
|
|
@@ -1710,7 +1710,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1710
1710
|
entityFilterOptions: [
|
|
1711
1711
|
{ id: "customers", label: "Customers" }
|
|
1712
1712
|
]
|
|
1713
|
-
},
|
|
1713
|
+
}, Qt = [
|
|
1714
1714
|
{
|
|
1715
1715
|
id: "recent-orders",
|
|
1716
1716
|
label: "Recent Orders",
|
|
@@ -1756,7 +1756,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1756
1756
|
routeKey: "customer.profile",
|
|
1757
1757
|
subtitle: "Opens in RepTime"
|
|
1758
1758
|
}
|
|
1759
|
-
],
|
|
1759
|
+
], Xt = [
|
|
1760
1760
|
{
|
|
1761
1761
|
id: "order-items",
|
|
1762
1762
|
label: "Items in Order",
|
|
@@ -1785,7 +1785,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1785
1785
|
cellKinds: ["orderId"],
|
|
1786
1786
|
graphType: "timeline"
|
|
1787
1787
|
}
|
|
1788
|
-
],
|
|
1788
|
+
], Jt = [
|
|
1789
1789
|
{
|
|
1790
1790
|
id: "graph-metric",
|
|
1791
1791
|
label: "Graph This Metric",
|
|
@@ -1813,14 +1813,14 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1813
1813
|
cellKinds: ["numeric"],
|
|
1814
1814
|
tabType: "orders"
|
|
1815
1815
|
}
|
|
1816
|
-
],
|
|
1817
|
-
entityName:
|
|
1818
|
-
orderId:
|
|
1819
|
-
numeric:
|
|
1820
|
-
},
|
|
1816
|
+
], Vn = {
|
|
1817
|
+
entityName: Qt,
|
|
1818
|
+
orderId: Xt,
|
|
1819
|
+
numeric: Jt
|
|
1820
|
+
}, Hn = [
|
|
1821
1821
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1822
1822
|
/* @__PURE__ */ new Date()
|
|
1823
|
-
],
|
|
1823
|
+
], Un = {
|
|
1824
1824
|
rangeA: [
|
|
1825
1825
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1826
1826
|
/* @__PURE__ */ new Date()
|
|
@@ -1833,7 +1833,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1833
1833
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1834
1834
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1835
1835
|
]
|
|
1836
|
-
},
|
|
1836
|
+
}, jn = {
|
|
1837
1837
|
version: 4,
|
|
1838
1838
|
lastPreset: "mtd",
|
|
1839
1839
|
pinnedPreset: "mtd",
|
|
@@ -1841,7 +1841,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1841
1841
|
rangeCount: 1,
|
|
1842
1842
|
lastPresetB: null,
|
|
1843
1843
|
lastPresetC: null
|
|
1844
|
-
},
|
|
1844
|
+
}, Zn = [
|
|
1845
1845
|
{
|
|
1846
1846
|
id: "atlanta-jan",
|
|
1847
1847
|
label: "Atlanta Market",
|
|
@@ -1863,7 +1863,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1863
1863
|
endDate: new Date(2026, 3, 22),
|
|
1864
1864
|
location: "Chicago, IL"
|
|
1865
1865
|
}
|
|
1866
|
-
],
|
|
1866
|
+
], qn = [
|
|
1867
1867
|
{
|
|
1868
1868
|
id: "custom-regional-1",
|
|
1869
1869
|
label: "Southeast Regional Expo",
|
|
@@ -1880,7 +1880,7 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1880
1880
|
location: "Portland, OR",
|
|
1881
1881
|
isCustom: !0
|
|
1882
1882
|
}
|
|
1883
|
-
],
|
|
1883
|
+
], Yn = [
|
|
1884
1884
|
{
|
|
1885
1885
|
id: "atlanta-jan",
|
|
1886
1886
|
label: "Atlanta Market",
|
|
@@ -1897,67 +1897,67 @@ const he = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1897
1897
|
location: "New York, NY",
|
|
1898
1898
|
active: !0
|
|
1899
1899
|
}
|
|
1900
|
-
],
|
|
1900
|
+
], Qn = [
|
|
1901
1901
|
{ id: "7d", label: "7D" },
|
|
1902
1902
|
{ id: "30d", label: "30D" },
|
|
1903
1903
|
{ id: "60d", label: "60D" },
|
|
1904
1904
|
{ id: "90d", label: "90D" }
|
|
1905
|
-
],
|
|
1905
|
+
], Xn = [
|
|
1906
1906
|
{ id: "mtd", label: "MTD" },
|
|
1907
1907
|
{ id: "qtd", label: "QTD" },
|
|
1908
1908
|
{ id: "ytd", label: "YTD" },
|
|
1909
1909
|
{ id: "lytd", label: "LYTD" }
|
|
1910
|
-
],
|
|
1910
|
+
], ea = {
|
|
1911
1911
|
timeframe: "Time Frame",
|
|
1912
1912
|
threshold: "Thresholds",
|
|
1913
1913
|
slots: "Slots",
|
|
1914
1914
|
size: "Size",
|
|
1915
1915
|
color: "Color",
|
|
1916
1916
|
pinned: "Pinned"
|
|
1917
|
-
},
|
|
1918
|
-
timeframe:
|
|
1919
|
-
threshold:
|
|
1920
|
-
slots:
|
|
1921
|
-
size:
|
|
1922
|
-
color:
|
|
1923
|
-
pinned:
|
|
1917
|
+
}, ta = {
|
|
1918
|
+
timeframe: kt,
|
|
1919
|
+
threshold: Ct,
|
|
1920
|
+
slots: xt,
|
|
1921
|
+
size: St,
|
|
1922
|
+
color: Mt,
|
|
1923
|
+
pinned: Tt
|
|
1924
1924
|
};
|
|
1925
1925
|
function He(...e) {
|
|
1926
1926
|
return e.filter(Boolean).join(" ");
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function aa() {
|
|
1929
1929
|
const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1930
|
-
return
|
|
1930
|
+
return L(() => {
|
|
1931
1931
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1932
|
-
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (
|
|
1932
|
+
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (i) => t(i.matches);
|
|
1933
1933
|
return typeof n.addEventListener == "function" ? (n.addEventListener("change", a), () => n.removeEventListener("change", a)) : (n.addListener?.(a), () => {
|
|
1934
1934
|
n.removeListener?.(a);
|
|
1935
1935
|
});
|
|
1936
1936
|
}, []), e;
|
|
1937
1937
|
}
|
|
1938
|
-
const
|
|
1938
|
+
const na = ({
|
|
1939
1939
|
dimensions: e,
|
|
1940
1940
|
onDimensionSelect: t,
|
|
1941
1941
|
activeDimension: n,
|
|
1942
1942
|
ariaCardTypeLabel: a,
|
|
1943
|
-
className:
|
|
1943
|
+
className: i
|
|
1944
1944
|
}) => {
|
|
1945
|
-
const
|
|
1945
|
+
const s = T(null), o = T([]), l = aa(), u = ye(() => Array.from(e), [e]);
|
|
1946
1946
|
if (u.length === 0) return null;
|
|
1947
1947
|
const d = a ? `Configure ${a}: choose a dimension` : void 0, p = l ? "10ms" : "200ms", f = (g, m) => {
|
|
1948
|
-
const
|
|
1948
|
+
const D = u.length - 1, y = (h) => {
|
|
1949
1949
|
const M = o.current[h];
|
|
1950
1950
|
M && M.focus();
|
|
1951
1951
|
};
|
|
1952
1952
|
switch (g.key) {
|
|
1953
1953
|
case "ArrowRight":
|
|
1954
1954
|
case "ArrowDown": {
|
|
1955
|
-
g.preventDefault(), y(m ===
|
|
1955
|
+
g.preventDefault(), y(m === D ? 0 : m + 1);
|
|
1956
1956
|
break;
|
|
1957
1957
|
}
|
|
1958
1958
|
case "ArrowLeft":
|
|
1959
1959
|
case "ArrowUp": {
|
|
1960
|
-
g.preventDefault(), y(m === 0 ?
|
|
1960
|
+
g.preventDefault(), y(m === 0 ? D : m - 1);
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
case "Home": {
|
|
@@ -1965,7 +1965,7 @@ const ea = ({
|
|
|
1965
1965
|
break;
|
|
1966
1966
|
}
|
|
1967
1967
|
case "End": {
|
|
1968
|
-
g.preventDefault(), y(
|
|
1968
|
+
g.preventDefault(), y(D);
|
|
1969
1969
|
break;
|
|
1970
1970
|
}
|
|
1971
1971
|
case "Enter":
|
|
@@ -1978,10 +1978,10 @@ const ea = ({
|
|
|
1978
1978
|
return /* @__PURE__ */ r(
|
|
1979
1979
|
"div",
|
|
1980
1980
|
{
|
|
1981
|
-
ref:
|
|
1981
|
+
ref: s,
|
|
1982
1982
|
role: "group",
|
|
1983
1983
|
"aria-label": d,
|
|
1984
|
-
className: He("gloss-reconfig-backside-buttons",
|
|
1984
|
+
className: He("gloss-reconfig-backside-buttons", i),
|
|
1985
1985
|
style: {
|
|
1986
1986
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1987
1987
|
// so the SCSS transition rule can consume it without a nested media
|
|
@@ -1989,8 +1989,8 @@ const ea = ({
|
|
|
1989
1989
|
"--gloss-reconfig-backside-buttons-transition-duration": p
|
|
1990
1990
|
},
|
|
1991
1991
|
children: u.map((g, m) => {
|
|
1992
|
-
const
|
|
1993
|
-
return /* @__PURE__ */
|
|
1992
|
+
const D = ta[g], y = n === g;
|
|
1993
|
+
return /* @__PURE__ */ N(
|
|
1994
1994
|
"button",
|
|
1995
1995
|
{
|
|
1996
1996
|
ref: (h) => {
|
|
@@ -2007,13 +2007,13 @@ const ea = ({
|
|
|
2007
2007
|
onKeyDown: (h) => f(h, m),
|
|
2008
2008
|
children: [
|
|
2009
2009
|
/* @__PURE__ */ r(
|
|
2010
|
-
|
|
2010
|
+
D,
|
|
2011
2011
|
{
|
|
2012
2012
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
2013
2013
|
"aria-hidden": "true"
|
|
2014
2014
|
}
|
|
2015
2015
|
),
|
|
2016
|
-
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children:
|
|
2016
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: ea[g] })
|
|
2017
2017
|
]
|
|
2018
2018
|
},
|
|
2019
2019
|
g
|
|
@@ -2022,7 +2022,7 @@ const ea = ({
|
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
};
|
|
2025
|
-
|
|
2025
|
+
na.displayName = "ReconfigBacksideButtons";
|
|
2026
2026
|
function Q(e, t) {
|
|
2027
2027
|
return {
|
|
2028
2028
|
id: e,
|
|
@@ -2049,7 +2049,7 @@ function Ue(e, t) {
|
|
|
2049
2049
|
colSpan: 2
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
|
-
const
|
|
2052
|
+
const Jn = [
|
|
2053
2053
|
Q("total-revenue", "Total Revenue"),
|
|
2054
2054
|
Q("total-orders", "Total Orders"),
|
|
2055
2055
|
Ue("revenue-trend", "Revenue Trend (2x)"),
|
|
@@ -2060,21 +2060,21 @@ const qn = [
|
|
|
2060
2060
|
Q("repeat-rate", "Repeat Rate"),
|
|
2061
2061
|
Q("open-orders", "Open Orders"),
|
|
2062
2062
|
Q("shipped-orders", "Shipped Orders")
|
|
2063
|
-
],
|
|
2063
|
+
], er = {
|
|
2064
2064
|
columns: 6,
|
|
2065
2065
|
rowHeight: 120,
|
|
2066
2066
|
gap: 15,
|
|
2067
2067
|
maxRows: 3,
|
|
2068
2068
|
currentPage: 0,
|
|
2069
2069
|
totalPages: 1
|
|
2070
|
-
},
|
|
2070
|
+
}, tr = {
|
|
2071
2071
|
columns: 9,
|
|
2072
2072
|
rowHeight: 120,
|
|
2073
2073
|
gap: 15,
|
|
2074
2074
|
maxRows: 3,
|
|
2075
2075
|
currentPage: 0,
|
|
2076
2076
|
totalPages: 2
|
|
2077
|
-
},
|
|
2077
|
+
}, ar = {
|
|
2078
2078
|
columns: 12,
|
|
2079
2079
|
rowHeight: 120,
|
|
2080
2080
|
gap: 15,
|
|
@@ -2085,7 +2085,7 @@ const qn = [
|
|
|
2085
2085
|
function Me(e) {
|
|
2086
2086
|
return H.createElement("span", { style: { fontSize: 14 } }, e);
|
|
2087
2087
|
}
|
|
2088
|
-
const
|
|
2088
|
+
const nr = [
|
|
2089
2089
|
{
|
|
2090
2090
|
id: "all-orders",
|
|
2091
2091
|
type: "orders",
|
|
@@ -2108,7 +2108,7 @@ const Jn = [
|
|
|
2108
2108
|
icon: Me("🚚"),
|
|
2109
2109
|
closable: !0
|
|
2110
2110
|
}
|
|
2111
|
-
],
|
|
2111
|
+
], rr = [
|
|
2112
2112
|
{
|
|
2113
2113
|
id: "orders-main",
|
|
2114
2114
|
type: "orders",
|
|
@@ -2134,7 +2134,7 @@ const Jn = [
|
|
|
2134
2134
|
name: "Customers",
|
|
2135
2135
|
closable: !0
|
|
2136
2136
|
}
|
|
2137
|
-
],
|
|
2137
|
+
], sr = [
|
|
2138
2138
|
{
|
|
2139
2139
|
id: "only-tab",
|
|
2140
2140
|
type: "orders",
|
|
@@ -2142,7 +2142,7 @@ const Jn = [
|
|
|
2142
2142
|
closable: !1,
|
|
2143
2143
|
autoCreated: !0
|
|
2144
2144
|
}
|
|
2145
|
-
],
|
|
2145
|
+
], ir = [
|
|
2146
2146
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
2147
2147
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
2148
2148
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -2165,40 +2165,40 @@ function Fe(e) {
|
|
|
2165
2165
|
return { cols: 1, rows: 1 };
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function ra(e) {
|
|
2169
2169
|
let t = 0;
|
|
2170
2170
|
for (const a of e) {
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2171
|
+
const i = Fe(a.size), s = a.gridPosition.col + i.cols - 1;
|
|
2172
|
+
s > t && (t = s);
|
|
2173
2173
|
}
|
|
2174
2174
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
2175
2175
|
}
|
|
2176
|
-
const
|
|
2176
|
+
const sa = function(t) {
|
|
2177
2177
|
if (t.renderMode === "discrete")
|
|
2178
2178
|
return /* @__PURE__ */ r(
|
|
2179
2179
|
"div",
|
|
2180
2180
|
{
|
|
2181
2181
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
2182
2182
|
style: { display: "contents" },
|
|
2183
|
-
children: t.cards.map((
|
|
2184
|
-
const
|
|
2183
|
+
children: t.cards.map((i) => {
|
|
2184
|
+
const s = Fe(i.size);
|
|
2185
2185
|
return /* @__PURE__ */ r(
|
|
2186
2186
|
"div",
|
|
2187
2187
|
{
|
|
2188
2188
|
className: "gloss-metric-group__slot",
|
|
2189
2189
|
style: {
|
|
2190
|
-
gridColumn: `${
|
|
2191
|
-
gridRow: `${
|
|
2190
|
+
gridColumn: `${i.gridPosition.col} / span ${s.cols}`,
|
|
2191
|
+
gridRow: `${i.gridPosition.row} / span ${s.rows}`
|
|
2192
2192
|
},
|
|
2193
|
-
children:
|
|
2193
|
+
children: i.children
|
|
2194
2194
|
},
|
|
2195
|
-
|
|
2195
|
+
i.key
|
|
2196
2196
|
);
|
|
2197
2197
|
})
|
|
2198
2198
|
}
|
|
2199
2199
|
);
|
|
2200
2200
|
const { cards: n, composite: a } = t;
|
|
2201
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ N(
|
|
2202
2202
|
"div",
|
|
2203
2203
|
{
|
|
2204
2204
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -2224,7 +2224,7 @@ const aa = function(t) {
|
|
|
2224
2224
|
style: { background: a.accentColor }
|
|
2225
2225
|
}
|
|
2226
2226
|
),
|
|
2227
|
-
a?.label && /* @__PURE__ */
|
|
2227
|
+
a?.label && /* @__PURE__ */ N("div", { className: "gloss-metric-group__label", children: [
|
|
2228
2228
|
/* @__PURE__ */ r("span", { children: a.label }),
|
|
2229
2229
|
a?.trend && /* @__PURE__ */ r(
|
|
2230
2230
|
"span",
|
|
@@ -2242,21 +2242,21 @@ const aa = function(t) {
|
|
|
2242
2242
|
style: {
|
|
2243
2243
|
display: "grid",
|
|
2244
2244
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2245
|
-
gridTemplateColumns:
|
|
2245
|
+
gridTemplateColumns: ra(n)
|
|
2246
2246
|
},
|
|
2247
|
-
children: n.map((
|
|
2248
|
-
const
|
|
2247
|
+
children: n.map((i) => {
|
|
2248
|
+
const s = Fe(i.size);
|
|
2249
2249
|
return /* @__PURE__ */ r(
|
|
2250
2250
|
"div",
|
|
2251
2251
|
{
|
|
2252
2252
|
className: "gloss-metric-group__slot--composite",
|
|
2253
2253
|
style: {
|
|
2254
|
-
gridColumn: `${
|
|
2255
|
-
gridRow: `${
|
|
2254
|
+
gridColumn: `${i.gridPosition.col} / span ${s.cols}`,
|
|
2255
|
+
gridRow: `${i.gridPosition.row} / span ${s.rows}`
|
|
2256
2256
|
},
|
|
2257
|
-
children:
|
|
2257
|
+
children: i.children
|
|
2258
2258
|
},
|
|
2259
|
-
|
|
2259
|
+
i.key
|
|
2260
2260
|
);
|
|
2261
2261
|
})
|
|
2262
2262
|
}
|
|
@@ -2265,16 +2265,16 @@ const aa = function(t) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
);
|
|
2267
2267
|
};
|
|
2268
|
-
|
|
2269
|
-
const
|
|
2270
|
-
...
|
|
2268
|
+
sa.displayName = "MetricGroupContainer";
|
|
2269
|
+
const nt = "resize.tuning.dev", ia = {
|
|
2270
|
+
...Xe,
|
|
2271
2271
|
snapInPx: 60,
|
|
2272
2272
|
snapOutPx: 90
|
|
2273
|
-
}, re =
|
|
2274
|
-
function
|
|
2273
|
+
}, re = ia;
|
|
2274
|
+
function oa() {
|
|
2275
2275
|
if (typeof window > "u") return { ...re };
|
|
2276
2276
|
try {
|
|
2277
|
-
const e = window.localStorage.getItem(
|
|
2277
|
+
const e = window.localStorage.getItem(nt);
|
|
2278
2278
|
if (!e) return { ...re };
|
|
2279
2279
|
const t = JSON.parse(e);
|
|
2280
2280
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...re } : { ...re, ...t };
|
|
@@ -2282,31 +2282,31 @@ function ra() {
|
|
|
2282
2282
|
return { ...re };
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2286
|
-
const [e, t] = $(() =>
|
|
2287
|
-
|
|
2285
|
+
function la() {
|
|
2286
|
+
const [e, t] = $(() => oa());
|
|
2287
|
+
L(() => {
|
|
2288
2288
|
if (!(typeof window > "u"))
|
|
2289
2289
|
try {
|
|
2290
|
-
window.localStorage.setItem(
|
|
2290
|
+
window.localStorage.setItem(nt, JSON.stringify(e));
|
|
2291
2291
|
} catch {
|
|
2292
2292
|
}
|
|
2293
2293
|
}, [e]);
|
|
2294
2294
|
const n = w(
|
|
2295
|
-
(
|
|
2296
|
-
t((l) => ({ ...l, [
|
|
2295
|
+
(s, o) => {
|
|
2296
|
+
t((l) => ({ ...l, [s]: o }));
|
|
2297
2297
|
},
|
|
2298
2298
|
[]
|
|
2299
2299
|
), a = w(
|
|
2300
|
-
(
|
|
2301
|
-
t((o) => ({ ...o, [
|
|
2300
|
+
(s) => {
|
|
2301
|
+
t((o) => ({ ...o, [s]: re[s] }));
|
|
2302
2302
|
},
|
|
2303
2303
|
[]
|
|
2304
|
-
),
|
|
2304
|
+
), i = w(() => {
|
|
2305
2305
|
t({ ...re });
|
|
2306
2306
|
}, []);
|
|
2307
|
-
return { values: e, setValue: n, resetRow: a, resetAll:
|
|
2307
|
+
return { values: e, setValue: n, resetRow: a, resetAll: i };
|
|
2308
2308
|
}
|
|
2309
|
-
const
|
|
2309
|
+
const ca = [
|
|
2310
2310
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2311
2311
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2312
2312
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2317,11 +2317,11 @@ const ia = [
|
|
|
2317
2317
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2318
2318
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2319
2319
|
];
|
|
2320
|
-
function
|
|
2320
|
+
function da(e, t) {
|
|
2321
2321
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2324
|
-
return /* @__PURE__ */
|
|
2323
|
+
function ua() {
|
|
2324
|
+
return /* @__PURE__ */ N(
|
|
2325
2325
|
"svg",
|
|
2326
2326
|
{
|
|
2327
2327
|
width: "14",
|
|
@@ -2340,23 +2340,23 @@ function la() {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
const
|
|
2343
|
+
function ma({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
2344
|
+
const s = w(
|
|
2345
2345
|
(o) => {
|
|
2346
2346
|
(o.key === "r" || o.key === "R") && (o.preventDefault(), a());
|
|
2347
2347
|
},
|
|
2348
2348
|
[a]
|
|
2349
2349
|
);
|
|
2350
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ N(
|
|
2351
2351
|
"div",
|
|
2352
2352
|
{
|
|
2353
|
-
className: `gloss-dev-tuning-panel__row${
|
|
2353
|
+
className: `gloss-dev-tuning-panel__row${i ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
2354
2354
|
"data-tuning-row": e.key,
|
|
2355
|
-
onKeyDown:
|
|
2355
|
+
onKeyDown: s,
|
|
2356
2356
|
children: [
|
|
2357
2357
|
/* @__PURE__ */ r("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2358
|
-
/* @__PURE__ */
|
|
2359
|
-
|
|
2358
|
+
/* @__PURE__ */ N("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2359
|
+
da(t, e.step),
|
|
2360
2360
|
e.unit ? ` ${e.unit}` : ""
|
|
2361
2361
|
] }),
|
|
2362
2362
|
/* @__PURE__ */ r(
|
|
@@ -2380,14 +2380,14 @@ function ca({ spec: e, value: t, onChange: n, onReset: a, flashing: s }) {
|
|
|
2380
2380
|
className: "gloss-dev-tuning-panel__reset",
|
|
2381
2381
|
"aria-label": `Reset ${e.label}`,
|
|
2382
2382
|
onClick: a,
|
|
2383
|
-
children: /* @__PURE__ */ r(
|
|
2383
|
+
children: /* @__PURE__ */ r(ua, {})
|
|
2384
2384
|
}
|
|
2385
2385
|
)
|
|
2386
2386
|
]
|
|
2387
2387
|
}
|
|
2388
2388
|
);
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function ga() {
|
|
2391
2391
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2392
2392
|
try {
|
|
2393
2393
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2395,12 +2395,12 @@ function da() {
|
|
|
2395
2395
|
return !1;
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2399
|
-
return
|
|
2398
|
+
function pa(e = {}) {
|
|
2399
|
+
return ga() ? /* @__PURE__ */ r(ha, {}) : null;
|
|
2400
2400
|
}
|
|
2401
|
-
|
|
2402
|
-
function
|
|
2403
|
-
const e =
|
|
2401
|
+
pa.displayName = "DevTuningPanel";
|
|
2402
|
+
function ha() {
|
|
2403
|
+
const e = la(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = T(null), u = w((g) => {
|
|
2404
2404
|
l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => {
|
|
2405
2405
|
o(null), l.current = null;
|
|
2406
2406
|
}, 200);
|
|
@@ -2409,8 +2409,8 @@ function ma() {
|
|
|
2409
2409
|
n(g, m), g === "snapInPx" && m > t.snapOutPx && (n("snapOutPx", m), u("snapOutPx"));
|
|
2410
2410
|
},
|
|
2411
2411
|
[n, t.snapOutPx, u]
|
|
2412
|
-
), p = ye(() =>
|
|
2413
|
-
return /* @__PURE__ */
|
|
2412
|
+
), p = ye(() => ca, []), f = _t();
|
|
2413
|
+
return /* @__PURE__ */ N(
|
|
2414
2414
|
De.div,
|
|
2415
2415
|
{
|
|
2416
2416
|
className: "gloss-dev-tuning-panel",
|
|
@@ -2422,7 +2422,7 @@ function ma() {
|
|
|
2422
2422
|
dragControls: f,
|
|
2423
2423
|
dragMomentum: !1,
|
|
2424
2424
|
children: [
|
|
2425
|
-
/* @__PURE__ */
|
|
2425
|
+
/* @__PURE__ */ N(
|
|
2426
2426
|
"div",
|
|
2427
2427
|
{
|
|
2428
2428
|
className: "gloss-dev-tuning-panel__header",
|
|
@@ -2434,13 +2434,13 @@ function ma() {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
),
|
|
2436
2436
|
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: p.map((g) => /* @__PURE__ */ r(
|
|
2437
|
-
|
|
2437
|
+
ma,
|
|
2438
2438
|
{
|
|
2439
2439
|
spec: g,
|
|
2440
2440
|
value: t[g.key],
|
|
2441
2441
|
onChange: (m) => d(g.key, m),
|
|
2442
2442
|
onReset: () => a(g.key),
|
|
2443
|
-
flashing:
|
|
2443
|
+
flashing: s === g.key
|
|
2444
2444
|
},
|
|
2445
2445
|
g.key
|
|
2446
2446
|
)) }),
|
|
@@ -2449,7 +2449,7 @@ function ma() {
|
|
|
2449
2449
|
{
|
|
2450
2450
|
type: "button",
|
|
2451
2451
|
className: "gloss-dev-tuning-panel__reset-all",
|
|
2452
|
-
onClick:
|
|
2452
|
+
onClick: i,
|
|
2453
2453
|
children: "Reset all"
|
|
2454
2454
|
}
|
|
2455
2455
|
) })
|
|
@@ -2457,13 +2457,13 @@ function ma() {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
);
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function or({
|
|
2461
2461
|
state: e,
|
|
2462
2462
|
originX: t,
|
|
2463
2463
|
originY: n,
|
|
2464
2464
|
leftEdgeX: a,
|
|
2465
|
-
rightEdgeX:
|
|
2466
|
-
minBoundaryX:
|
|
2465
|
+
rightEdgeX: i,
|
|
2466
|
+
minBoundaryX: s,
|
|
2467
2467
|
snapBoundariesX: o,
|
|
2468
2468
|
topY: l,
|
|
2469
2469
|
bottomY: u,
|
|
@@ -2473,7 +2473,7 @@ function nr({
|
|
|
2473
2473
|
style: g
|
|
2474
2474
|
}) {
|
|
2475
2475
|
if (e === "hidden") return null;
|
|
2476
|
-
const m = Math.max(0,
|
|
2476
|
+
const m = Math.max(0, i - a), D = Math.max(0, u - l), y = {
|
|
2477
2477
|
"--gloss-resize-envelope-enter-ms": `${d}ms`,
|
|
2478
2478
|
"--gloss-resize-envelope-exit-ms": `${p}ms`,
|
|
2479
2479
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
@@ -2481,10 +2481,10 @@ function nr({
|
|
|
2481
2481
|
left: a,
|
|
2482
2482
|
top: l,
|
|
2483
2483
|
width: m,
|
|
2484
|
-
height:
|
|
2484
|
+
height: D,
|
|
2485
2485
|
...g
|
|
2486
2486
|
};
|
|
2487
|
-
return /* @__PURE__ */
|
|
2487
|
+
return /* @__PURE__ */ N(
|
|
2488
2488
|
"div",
|
|
2489
2489
|
{
|
|
2490
2490
|
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, f].filter(Boolean).join(" "),
|
|
@@ -2506,7 +2506,7 @@ function nr({
|
|
|
2506
2506
|
{
|
|
2507
2507
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--min-boundary",
|
|
2508
2508
|
"data-edge": "min-boundary",
|
|
2509
|
-
style: { left:
|
|
2509
|
+
style: { left: s - a }
|
|
2510
2510
|
}
|
|
2511
2511
|
),
|
|
2512
2512
|
/* @__PURE__ */ r(
|
|
@@ -2517,7 +2517,7 @@ function nr({
|
|
|
2517
2517
|
style: { left: m - 1 }
|
|
2518
2518
|
}
|
|
2519
2519
|
),
|
|
2520
|
-
o.filter((h) => h >
|
|
2520
|
+
o.filter((h) => h > s && h < i).map((h) => /* @__PURE__ */ r(
|
|
2521
2521
|
"div",
|
|
2522
2522
|
{
|
|
2523
2523
|
className: "gloss-resize-envelope__snap-line",
|
|
@@ -2530,13 +2530,13 @@ function nr({
|
|
|
2530
2530
|
}
|
|
2531
2531
|
);
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function lr({
|
|
2534
2534
|
density: e,
|
|
2535
2535
|
canAccept: t,
|
|
2536
2536
|
blocked: n = !1,
|
|
2537
2537
|
proximityOpacity: a,
|
|
2538
|
-
className:
|
|
2539
|
-
children:
|
|
2538
|
+
className: i,
|
|
2539
|
+
children: s,
|
|
2540
2540
|
...o
|
|
2541
2541
|
}) {
|
|
2542
2542
|
const l = a != null ? { ...o.style, "--_proximity-opacity": String(a) } : o.style;
|
|
@@ -2553,22 +2553,22 @@ function rr({
|
|
|
2553
2553
|
className: [
|
|
2554
2554
|
"gloss-drop-anchor-cell",
|
|
2555
2555
|
n && "gloss-drop-anchor-cell--blocked-pulse",
|
|
2556
|
-
|
|
2556
|
+
i
|
|
2557
2557
|
].filter(Boolean).join(" "),
|
|
2558
|
-
children:
|
|
2558
|
+
children: s
|
|
2559
2559
|
}
|
|
2560
2560
|
);
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2563
|
-
const
|
|
2564
|
-
return `M${e},${t} Q${
|
|
2562
|
+
function fa(e, t, n, a) {
|
|
2563
|
+
const i = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2564
|
+
return `M${e},${t} Q${i},${s} ${n},${a}`;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function cr({
|
|
2567
2567
|
segments: e,
|
|
2568
2568
|
durationMs: t = se.spilloverArcDurationMs,
|
|
2569
2569
|
staggerMs: n = se.spilloverStaggerMs,
|
|
2570
2570
|
className: a,
|
|
2571
|
-
style:
|
|
2571
|
+
style: i
|
|
2572
2572
|
}) {
|
|
2573
2573
|
return e.length === 0 ? null : /* @__PURE__ */ r(
|
|
2574
2574
|
"svg",
|
|
@@ -2577,30 +2577,30 @@ function sr({
|
|
|
2577
2577
|
"data-testid": "gloss-spillover-arc",
|
|
2578
2578
|
"aria-hidden": "true",
|
|
2579
2579
|
overflow: "visible",
|
|
2580
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", ...
|
|
2581
|
-
children: e.map((
|
|
2580
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", ...i },
|
|
2581
|
+
children: e.map((s, o) => /* @__PURE__ */ r(
|
|
2582
2582
|
"path",
|
|
2583
2583
|
{
|
|
2584
|
-
"data-arc-id":
|
|
2584
|
+
"data-arc-id": s.id,
|
|
2585
2585
|
className: "gloss-spillover-arc__path",
|
|
2586
|
-
d:
|
|
2586
|
+
d: fa(s.fromX, s.fromY, s.toX, s.toY),
|
|
2587
2587
|
style: {
|
|
2588
2588
|
animationDelay: `${o * n}ms`,
|
|
2589
2589
|
animationDuration: `${t}ms`
|
|
2590
2590
|
}
|
|
2591
2591
|
},
|
|
2592
|
-
|
|
2592
|
+
s.id
|
|
2593
2593
|
))
|
|
2594
2594
|
}
|
|
2595
2595
|
);
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function dr({
|
|
2598
2598
|
state: e,
|
|
2599
2599
|
staggerIndex: t = 0,
|
|
2600
2600
|
fadeInMs: n = se.sectionDividerFadeInMs,
|
|
2601
2601
|
fadeOutMs: a = se.sectionDividerFadeOutMs,
|
|
2602
|
-
staggerMs:
|
|
2603
|
-
variant:
|
|
2602
|
+
staggerMs: i = se.sectionDividerStaggerMs,
|
|
2603
|
+
variant: s = "dashed",
|
|
2604
2604
|
className: o,
|
|
2605
2605
|
style: l,
|
|
2606
2606
|
...u
|
|
@@ -2608,7 +2608,7 @@ function ir({
|
|
|
2608
2608
|
const d = {
|
|
2609
2609
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2610
2610
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2611
|
-
"--gloss-section-divider-stagger-delay": `${t *
|
|
2611
|
+
"--gloss-section-divider-stagger-delay": `${t * i}ms`,
|
|
2612
2612
|
...l
|
|
2613
2613
|
};
|
|
2614
2614
|
return /* @__PURE__ */ r(
|
|
@@ -2621,47 +2621,47 @@ function ir({
|
|
|
2621
2621
|
className: [
|
|
2622
2622
|
"gloss-section-divider",
|
|
2623
2623
|
`gloss-section-divider--state-${e}`,
|
|
2624
|
-
|
|
2624
|
+
s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2625
2625
|
o
|
|
2626
2626
|
].filter(Boolean).join(" "),
|
|
2627
2627
|
style: d
|
|
2628
2628
|
}
|
|
2629
2629
|
);
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function ur({
|
|
2632
2632
|
enabled: e,
|
|
2633
2633
|
onPack: t,
|
|
2634
2634
|
ariaLabel: n = "Pack row (shift cards left)",
|
|
2635
2635
|
className: a,
|
|
2636
|
-
style:
|
|
2636
|
+
style: i
|
|
2637
2637
|
}) {
|
|
2638
|
-
return /* @__PURE__ */ r(
|
|
2638
|
+
return /* @__PURE__ */ r(Qe, { visible: e, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2639
2639
|
"button",
|
|
2640
2640
|
{
|
|
2641
2641
|
type: "button",
|
|
2642
2642
|
"data-testid": "gloss-empty-cell-pack",
|
|
2643
2643
|
"aria-label": n,
|
|
2644
2644
|
className: ["gloss-empty-cell-pack-affordance", a].filter(Boolean).join(" "),
|
|
2645
|
-
style:
|
|
2646
|
-
onClick: (
|
|
2647
|
-
|
|
2645
|
+
style: i,
|
|
2646
|
+
onClick: (s) => {
|
|
2647
|
+
s.stopPropagation(), t();
|
|
2648
2648
|
},
|
|
2649
2649
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2650
2650
|
}
|
|
2651
2651
|
) });
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function mr({
|
|
2654
2654
|
tint: e,
|
|
2655
2655
|
colSpan: t,
|
|
2656
2656
|
colWidth: n,
|
|
2657
2657
|
rowHeight: a,
|
|
2658
|
-
gap:
|
|
2659
|
-
x:
|
|
2658
|
+
gap: i,
|
|
2659
|
+
x: s,
|
|
2660
2660
|
y: o,
|
|
2661
2661
|
children: l,
|
|
2662
2662
|
className: u
|
|
2663
2663
|
}) {
|
|
2664
|
-
const d = t * n + (t - 1) *
|
|
2664
|
+
const d = t * n + (t - 1) * i;
|
|
2665
2665
|
return /* @__PURE__ */ r(
|
|
2666
2666
|
De.div,
|
|
2667
2667
|
{
|
|
@@ -2673,22 +2673,22 @@ function lr({
|
|
|
2673
2673
|
`gloss-drag-ghost--tint-${e}`,
|
|
2674
2674
|
u
|
|
2675
2675
|
].filter(Boolean).join(" "),
|
|
2676
|
-
style: { x:
|
|
2676
|
+
style: { x: s, y: o, width: d, height: a },
|
|
2677
2677
|
children: l
|
|
2678
2678
|
}
|
|
2679
2679
|
);
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2682
|
-
function
|
|
2681
|
+
const va = 3;
|
|
2682
|
+
function gr({
|
|
2683
2683
|
cell: e,
|
|
2684
2684
|
colSpan: t,
|
|
2685
2685
|
colWidth: n,
|
|
2686
2686
|
gap: a,
|
|
2687
|
-
rowHeight:
|
|
2688
|
-
transitionMs:
|
|
2687
|
+
rowHeight: i,
|
|
2688
|
+
transitionMs: s = 120,
|
|
2689
2689
|
className: o
|
|
2690
2690
|
}) {
|
|
2691
|
-
const l = t * n + (t - 1) * a, d = (e.section *
|
|
2691
|
+
const l = t * n + (t - 1) * a, d = (e.section * va + e.col) * (n + a), p = e.row * (i + a);
|
|
2692
2692
|
return /* @__PURE__ */ r(
|
|
2693
2693
|
"div",
|
|
2694
2694
|
{
|
|
@@ -2698,13 +2698,13 @@ function cr({
|
|
|
2698
2698
|
style: {
|
|
2699
2699
|
transform: `translate(${d}px, ${p}px)`,
|
|
2700
2700
|
width: l,
|
|
2701
|
-
height:
|
|
2702
|
-
transition: `transform ${
|
|
2701
|
+
height: i,
|
|
2702
|
+
transition: `transform ${s}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
);
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function pr({
|
|
2708
2708
|
items: e,
|
|
2709
2709
|
children: t,
|
|
2710
2710
|
className: n
|
|
@@ -2722,28 +2722,28 @@ function dr({
|
|
|
2722
2722
|
a.cardId
|
|
2723
2723
|
)) });
|
|
2724
2724
|
}
|
|
2725
|
-
const
|
|
2725
|
+
const ba = ({
|
|
2726
2726
|
consumed: e,
|
|
2727
2727
|
elapsed: t,
|
|
2728
2728
|
severity: n = "neutral"
|
|
2729
2729
|
}) => {
|
|
2730
|
-
const a =
|
|
2731
|
-
|
|
2730
|
+
const a = T(null), i = T(null);
|
|
2731
|
+
L(() => {
|
|
2732
2732
|
const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)), d = requestAnimationFrame(() => {
|
|
2733
|
-
a.current && (a.current.style.width = `${l}%`),
|
|
2733
|
+
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${u}%`);
|
|
2734
2734
|
});
|
|
2735
2735
|
return () => cancelAnimationFrame(d);
|
|
2736
2736
|
}, [e.value, t.value]);
|
|
2737
|
-
const
|
|
2738
|
-
return /* @__PURE__ */
|
|
2737
|
+
const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
2738
|
+
return /* @__PURE__ */ N(
|
|
2739
2739
|
"div",
|
|
2740
2740
|
{
|
|
2741
2741
|
className: "gloss-dual-pace-bars",
|
|
2742
2742
|
role: "img",
|
|
2743
|
-
"aria-label": `${
|
|
2743
|
+
"aria-label": `${s}: ${e.value}%, ${o}: ${t.value}%`,
|
|
2744
2744
|
children: [
|
|
2745
|
-
/* @__PURE__ */
|
|
2746
|
-
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children:
|
|
2745
|
+
/* @__PURE__ */ N("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
2746
|
+
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: s }),
|
|
2747
2747
|
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
2748
2748
|
"div",
|
|
2749
2749
|
{
|
|
@@ -2754,20 +2754,20 @@ const ha = ({
|
|
|
2754
2754
|
"aria-valuenow": Math.min(100, Math.max(0, e.value)),
|
|
2755
2755
|
"aria-valuemin": 0,
|
|
2756
2756
|
"aria-valuemax": 100,
|
|
2757
|
-
"aria-label": `${
|
|
2757
|
+
"aria-label": `${s}: ${e.value}%`
|
|
2758
2758
|
}
|
|
2759
2759
|
) }),
|
|
2760
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ N("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
2761
2761
|
e.value,
|
|
2762
2762
|
"%"
|
|
2763
2763
|
] })
|
|
2764
2764
|
] }),
|
|
2765
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ N("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
2766
2766
|
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: o }),
|
|
2767
2767
|
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
2768
2768
|
"div",
|
|
2769
2769
|
{
|
|
2770
|
-
ref:
|
|
2770
|
+
ref: i,
|
|
2771
2771
|
className: "gloss-dual-pace-bars__fill gloss-dual-pace-bars__fill--elapsed",
|
|
2772
2772
|
style: { width: "0%" },
|
|
2773
2773
|
role: "meter",
|
|
@@ -2777,7 +2777,7 @@ const ha = ({
|
|
|
2777
2777
|
"aria-label": `${o}: ${t.value}%`
|
|
2778
2778
|
}
|
|
2779
2779
|
) }),
|
|
2780
|
-
/* @__PURE__ */
|
|
2780
|
+
/* @__PURE__ */ N("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
2781
2781
|
t.value,
|
|
2782
2782
|
"%"
|
|
2783
2783
|
] })
|
|
@@ -2785,22 +2785,22 @@ const ha = ({
|
|
|
2785
2785
|
]
|
|
2786
2786
|
}
|
|
2787
2787
|
);
|
|
2788
|
-
},
|
|
2788
|
+
}, ya = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ N(
|
|
2789
2789
|
"div",
|
|
2790
2790
|
{
|
|
2791
2791
|
className: `gloss-gap-readout gloss-gap-readout--${n}`,
|
|
2792
2792
|
"aria-label": `${e}: ${t}`,
|
|
2793
2793
|
children: [
|
|
2794
2794
|
/* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
|
|
2795
|
-
/* @__PURE__ */
|
|
2795
|
+
/* @__PURE__ */ N("div", { className: "gloss-gap-readout__strip", children: [
|
|
2796
2796
|
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__label", children: e }),
|
|
2797
2797
|
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__value", children: t })
|
|
2798
2798
|
] })
|
|
2799
2799
|
]
|
|
2800
2800
|
}
|
|
2801
|
-
),
|
|
2801
|
+
), wa = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ N("div", { className: "gloss-pace-placeholder", children: [
|
|
2802
2802
|
/* @__PURE__ */ r("p", { className: "gloss-pace-placeholder__heading", children: "Set a target" }),
|
|
2803
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ N("p", { className: "gloss-pace-placeholder__context", children: [
|
|
2804
2804
|
"for ",
|
|
2805
2805
|
e
|
|
2806
2806
|
] }),
|
|
@@ -2814,12 +2814,12 @@ const ha = ({
|
|
|
2814
2814
|
children: "Set target"
|
|
2815
2815
|
}
|
|
2816
2816
|
)
|
|
2817
|
-
] }),
|
|
2818
|
-
const [t, n] = $(!1), a = e.target?.value,
|
|
2819
|
-
|
|
2817
|
+
] }), hr = (e) => {
|
|
2818
|
+
const [t, n] = $(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
|
|
2819
|
+
Rt,
|
|
2820
2820
|
{
|
|
2821
2821
|
label: `Set a target for ${e.label}`,
|
|
2822
|
-
unit:
|
|
2822
|
+
unit: s,
|
|
2823
2823
|
currentValue: a,
|
|
2824
2824
|
onConfirm: (l) => {
|
|
2825
2825
|
e.onTargetChange(l), n(!1);
|
|
@@ -2830,7 +2830,7 @@ const ha = ({
|
|
|
2830
2830
|
}
|
|
2831
2831
|
);
|
|
2832
2832
|
return /* @__PURE__ */ r(
|
|
2833
|
-
|
|
2833
|
+
pt,
|
|
2834
2834
|
{
|
|
2835
2835
|
colSpan: 2,
|
|
2836
2836
|
enableQuickSettings: !0,
|
|
@@ -2838,21 +2838,21 @@ const ha = ({
|
|
|
2838
2838
|
onFlipChange: n,
|
|
2839
2839
|
quickConfigSlot: o,
|
|
2840
2840
|
onRemove: e.onRemove,
|
|
2841
|
-
children: /* @__PURE__ */
|
|
2841
|
+
children: /* @__PURE__ */ N("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
|
|
2842
2842
|
/* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
|
|
2843
2843
|
e.subtitle && /* @__PURE__ */ r("div", { className: "gloss-pace-card__subtitle", children: e.subtitle }),
|
|
2844
|
-
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children:
|
|
2844
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ N(te, { children: [
|
|
2845
2845
|
/* @__PURE__ */ r(
|
|
2846
|
-
|
|
2846
|
+
ba,
|
|
2847
2847
|
{
|
|
2848
2848
|
consumed: e.consumed,
|
|
2849
2849
|
elapsed: e.elapsed,
|
|
2850
2850
|
severity: e.severity
|
|
2851
2851
|
}
|
|
2852
2852
|
),
|
|
2853
|
-
/* @__PURE__ */ r(
|
|
2853
|
+
/* @__PURE__ */ r(ya, { label: "Gap", value: e.gapLabel, severity: e.severity })
|
|
2854
2854
|
] }) : /* @__PURE__ */ r(
|
|
2855
|
-
|
|
2855
|
+
wa,
|
|
2856
2856
|
{
|
|
2857
2857
|
label: e.label,
|
|
2858
2858
|
onSetTarget: () => n(!0)
|
|
@@ -2861,7 +2861,7 @@ const ha = ({
|
|
|
2861
2861
|
] })
|
|
2862
2862
|
}
|
|
2863
2863
|
);
|
|
2864
|
-
},
|
|
2864
|
+
}, fr = () => /* @__PURE__ */ N("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
2865
2865
|
/* @__PURE__ */ r(
|
|
2866
2866
|
"div",
|
|
2867
2867
|
{
|
|
@@ -2878,39 +2878,39 @@ const ha = ({
|
|
|
2878
2878
|
),
|
|
2879
2879
|
/* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
|
|
2880
2880
|
] });
|
|
2881
|
-
function
|
|
2881
|
+
function _a({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, onClick: o }) {
|
|
2882
2882
|
return /* @__PURE__ */ r(
|
|
2883
2883
|
"span",
|
|
2884
2884
|
{
|
|
2885
2885
|
role: "radio",
|
|
2886
2886
|
"aria-checked": n,
|
|
2887
|
-
"aria-disabled":
|
|
2887
|
+
"aria-disabled": i || void 0,
|
|
2888
2888
|
tabIndex: a ? 0 : -1,
|
|
2889
2889
|
className: "gloss-lens-chip",
|
|
2890
2890
|
"data-selected": n || void 0,
|
|
2891
|
-
"data-disabled":
|
|
2891
|
+
"data-disabled": i || void 0,
|
|
2892
2892
|
onClick: () => {
|
|
2893
|
-
|
|
2893
|
+
i || o(e);
|
|
2894
2894
|
},
|
|
2895
|
-
children: /* @__PURE__ */
|
|
2895
|
+
children: /* @__PURE__ */ N("span", { className: "gloss-lens-chip__inner", children: [
|
|
2896
2896
|
/* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
|
|
2897
|
-
|
|
2897
|
+
s && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: s })
|
|
2898
2898
|
] })
|
|
2899
2899
|
}
|
|
2900
2900
|
);
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function Na({
|
|
2903
2903
|
lenses: e,
|
|
2904
2904
|
value: t,
|
|
2905
2905
|
onChange: n,
|
|
2906
2906
|
"aria-label": a = "Lens"
|
|
2907
2907
|
}) {
|
|
2908
|
-
const [
|
|
2908
|
+
const [i, s] = $(
|
|
2909
2909
|
() => Math.max(0, e.findIndex((l) => l.id === t))
|
|
2910
2910
|
);
|
|
2911
|
-
return
|
|
2911
|
+
return L(() => {
|
|
2912
2912
|
const l = e.findIndex((u) => u.id === t);
|
|
2913
|
-
|
|
2913
|
+
s(l >= 0 ? l : 0);
|
|
2914
2914
|
}, [t, e]), e.length === 0 ? null : /* @__PURE__ */ r(
|
|
2915
2915
|
"div",
|
|
2916
2916
|
{
|
|
@@ -2920,22 +2920,22 @@ function ya({
|
|
|
2920
2920
|
switch (l.key) {
|
|
2921
2921
|
case "ArrowRight":
|
|
2922
2922
|
case "ArrowDown":
|
|
2923
|
-
l.preventDefault(),
|
|
2923
|
+
l.preventDefault(), s((u) => (u + 1) % e.length);
|
|
2924
2924
|
break;
|
|
2925
2925
|
case "ArrowLeft":
|
|
2926
2926
|
case "ArrowUp":
|
|
2927
|
-
l.preventDefault(),
|
|
2927
|
+
l.preventDefault(), s((u) => (u - 1 + e.length) % e.length);
|
|
2928
2928
|
break;
|
|
2929
2929
|
case "Home":
|
|
2930
|
-
l.preventDefault(),
|
|
2930
|
+
l.preventDefault(), s(0);
|
|
2931
2931
|
break;
|
|
2932
2932
|
case "End":
|
|
2933
|
-
l.preventDefault(),
|
|
2933
|
+
l.preventDefault(), s(e.length - 1);
|
|
2934
2934
|
break;
|
|
2935
2935
|
case "Enter":
|
|
2936
2936
|
case " ": {
|
|
2937
2937
|
l.preventDefault();
|
|
2938
|
-
const u = e[
|
|
2938
|
+
const u = e[i];
|
|
2939
2939
|
u && !u.disabled && n(u.id);
|
|
2940
2940
|
break;
|
|
2941
2941
|
}
|
|
@@ -2943,12 +2943,12 @@ function ya({
|
|
|
2943
2943
|
},
|
|
2944
2944
|
className: "gloss-lens-chip-group",
|
|
2945
2945
|
children: e.map((l, u) => /* @__PURE__ */ r(
|
|
2946
|
-
|
|
2946
|
+
_a,
|
|
2947
2947
|
{
|
|
2948
2948
|
id: l.id,
|
|
2949
2949
|
label: l.label,
|
|
2950
2950
|
selected: l.id === t,
|
|
2951
|
-
focused: u ===
|
|
2951
|
+
focused: u === i,
|
|
2952
2952
|
disabled: l.disabled,
|
|
2953
2953
|
badge: l.badge,
|
|
2954
2954
|
onClick: n
|
|
@@ -2958,47 +2958,47 @@ function ya({
|
|
|
2958
2958
|
}
|
|
2959
2959
|
);
|
|
2960
2960
|
}
|
|
2961
|
-
|
|
2962
|
-
function
|
|
2963
|
-
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */
|
|
2961
|
+
Na.displayName = "LensChipGroup";
|
|
2962
|
+
function Da({ heading: e, children: t }) {
|
|
2963
|
+
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ N("section", { className: "gloss-starter-rail", "aria-label": e, children: [
|
|
2964
2964
|
/* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
|
|
2965
2965
|
/* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
|
|
2966
2966
|
] });
|
|
2967
2967
|
}
|
|
2968
|
-
|
|
2969
|
-
function
|
|
2968
|
+
Da.displayName = "StarterRail";
|
|
2969
|
+
function ka({ heading: e, children: t, emptyStateLabel: n }) {
|
|
2970
2970
|
const a = !t || Array.isArray(t) && t.length === 0;
|
|
2971
|
-
return /* @__PURE__ */
|
|
2971
|
+
return /* @__PURE__ */ N("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
|
|
2972
2972
|
/* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
|
|
2973
|
-
/* @__PURE__ */
|
|
2973
|
+
/* @__PURE__ */ N("div", { className: "gloss-more-in-lens-rail__tiles", children: [
|
|
2974
2974
|
t,
|
|
2975
2975
|
a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
|
|
2976
2976
|
] })
|
|
2977
2977
|
] });
|
|
2978
2978
|
}
|
|
2979
|
-
|
|
2979
|
+
ka.displayName = "MoreInLensRail";
|
|
2980
2980
|
function X({
|
|
2981
2981
|
lead: e,
|
|
2982
2982
|
name: t,
|
|
2983
2983
|
secondary: n,
|
|
2984
2984
|
value: a,
|
|
2985
|
-
trail:
|
|
2986
|
-
variant:
|
|
2985
|
+
trail: i,
|
|
2986
|
+
variant: s = "default",
|
|
2987
2987
|
onClick: o,
|
|
2988
2988
|
className: l,
|
|
2989
2989
|
style: u
|
|
2990
2990
|
}) {
|
|
2991
2991
|
const d = [
|
|
2992
2992
|
"gloss-entity-row",
|
|
2993
|
-
`gloss-entity-row--${
|
|
2993
|
+
`gloss-entity-row--${s}`,
|
|
2994
2994
|
o ? "gloss-entity-row--clickable" : "",
|
|
2995
2995
|
l ?? ""
|
|
2996
|
-
].filter(Boolean).join(" "), p = /* @__PURE__ */
|
|
2996
|
+
].filter(Boolean).join(" "), p = /* @__PURE__ */ N(te, { children: [
|
|
2997
2997
|
e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
|
|
2998
2998
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
|
|
2999
2999
|
n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
|
|
3000
3000
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
3001
|
-
|
|
3001
|
+
i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
|
|
3002
3002
|
] });
|
|
3003
3003
|
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: /* @__PURE__ */ r(
|
|
3004
3004
|
"button",
|
|
@@ -3033,7 +3033,7 @@ const fe = ({ rank: e }) => {
|
|
|
3033
3033
|
);
|
|
3034
3034
|
};
|
|
3035
3035
|
fe.displayName = "RankBadge";
|
|
3036
|
-
function
|
|
3036
|
+
function ve({ severity: e, "aria-label": t }) {
|
|
3037
3037
|
return /* @__PURE__ */ r(
|
|
3038
3038
|
"span",
|
|
3039
3039
|
{
|
|
@@ -3043,8 +3043,8 @@ function be({ severity: e, "aria-label": t }) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
);
|
|
3045
3045
|
}
|
|
3046
|
-
|
|
3047
|
-
function
|
|
3046
|
+
ve.displayName = "SeverityDot";
|
|
3047
|
+
function rt({
|
|
3048
3048
|
delta: e,
|
|
3049
3049
|
direction: t = "flat",
|
|
3050
3050
|
"aria-label": n
|
|
@@ -3060,7 +3060,7 @@ function tt({
|
|
|
3060
3060
|
}
|
|
3061
3061
|
);
|
|
3062
3062
|
const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
|
|
3063
|
-
return /* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ N(
|
|
3064
3064
|
"span",
|
|
3065
3065
|
{
|
|
3066
3066
|
role: "img",
|
|
@@ -3073,8 +3073,8 @@ function tt({
|
|
|
3073
3073
|
}
|
|
3074
3074
|
);
|
|
3075
3075
|
}
|
|
3076
|
-
|
|
3077
|
-
function
|
|
3076
|
+
rt.displayName = "RankDelta";
|
|
3077
|
+
function be({ fill: e, variant: t = "default", className: n }) {
|
|
3078
3078
|
const a = Math.max(0, Math.min(100, e));
|
|
3079
3079
|
return /* @__PURE__ */ r(
|
|
3080
3080
|
"div",
|
|
@@ -3090,37 +3090,37 @@ function ve({ fill: e, variant: t = "default", className: n }) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
);
|
|
3092
3092
|
}
|
|
3093
|
-
|
|
3094
|
-
const
|
|
3095
|
-
function
|
|
3093
|
+
be.displayName = "MagnitudeBar";
|
|
3094
|
+
const Ca = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
|
|
3095
|
+
function xa({
|
|
3096
3096
|
label: e,
|
|
3097
3097
|
rows: t,
|
|
3098
3098
|
rowCount: n,
|
|
3099
3099
|
rankDeltaPeriod: a,
|
|
3100
|
-
isStale:
|
|
3100
|
+
isStale: i
|
|
3101
3101
|
}) {
|
|
3102
|
-
const
|
|
3103
|
-
return /* @__PURE__ */
|
|
3102
|
+
const s = n ?? 3;
|
|
3103
|
+
return /* @__PURE__ */ N(te, { children: [
|
|
3104
3104
|
/* @__PURE__ */ r(
|
|
3105
3105
|
pe,
|
|
3106
3106
|
{
|
|
3107
3107
|
className: "gloss-metric-card__zone-a",
|
|
3108
3108
|
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3109
|
-
children: /* @__PURE__ */ r(
|
|
3109
|
+
children: /* @__PURE__ */ r(Re, { className: "gloss-metric-card__label", children: e })
|
|
3110
3110
|
}
|
|
3111
3111
|
),
|
|
3112
3112
|
/* @__PURE__ */ r(
|
|
3113
3113
|
pe,
|
|
3114
3114
|
{
|
|
3115
|
-
className: `gloss-metric-card__zone-b gloss-leaderboard ${
|
|
3115
|
+
className: `gloss-metric-card__zone-b gloss-leaderboard ${i ? "gloss-metric-data-stale" : ""}`,
|
|
3116
3116
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3117
|
-
children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0,
|
|
3117
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0, s).map((o, l) => /* @__PURE__ */ r(
|
|
3118
3118
|
X,
|
|
3119
3119
|
{
|
|
3120
3120
|
lead: /* @__PURE__ */ r(fe, { rank: l + 1 }),
|
|
3121
3121
|
name: o.name,
|
|
3122
3122
|
secondary: /* @__PURE__ */ r(
|
|
3123
|
-
|
|
3123
|
+
be,
|
|
3124
3124
|
{
|
|
3125
3125
|
fill: o.magnitude,
|
|
3126
3126
|
variant: o.isBottom ? "bottom" : "default"
|
|
@@ -3128,11 +3128,11 @@ function Da({
|
|
|
3128
3128
|
),
|
|
3129
3129
|
value: o.value,
|
|
3130
3130
|
trail: /* @__PURE__ */ r(
|
|
3131
|
-
|
|
3131
|
+
rt,
|
|
3132
3132
|
{
|
|
3133
3133
|
delta: o.rankDelta,
|
|
3134
3134
|
direction: o.direction,
|
|
3135
|
-
"aria-label":
|
|
3135
|
+
"aria-label": Ca(o)
|
|
3136
3136
|
}
|
|
3137
3137
|
),
|
|
3138
3138
|
variant: "leaderboard",
|
|
@@ -3142,28 +3142,28 @@ function Da({
|
|
|
3142
3142
|
)) })
|
|
3143
3143
|
}
|
|
3144
3144
|
),
|
|
3145
|
-
/* @__PURE__ */
|
|
3145
|
+
/* @__PURE__ */ N("div", { className: "gloss-leaderboard__zone-c", children: [
|
|
3146
3146
|
a ?? "WoW",
|
|
3147
3147
|
" rank change"
|
|
3148
3148
|
] })
|
|
3149
3149
|
] });
|
|
3150
3150
|
}
|
|
3151
|
-
|
|
3152
|
-
const
|
|
3151
|
+
xa.displayName = "LeaderboardCard";
|
|
3152
|
+
const Sa = () => /* @__PURE__ */ N(
|
|
3153
3153
|
"div",
|
|
3154
3154
|
{
|
|
3155
3155
|
className: "leaderboard-tile-preview",
|
|
3156
3156
|
"aria-hidden": "true",
|
|
3157
3157
|
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3158
3158
|
children: [
|
|
3159
|
-
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(
|
|
3160
|
-
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(
|
|
3161
|
-
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(
|
|
3159
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(be, { fill: 96 }), value: "98%" }),
|
|
3160
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(be, { fill: 72 }), value: "85%" }),
|
|
3161
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(be, { fill: 48 }), value: "71%" })
|
|
3162
3162
|
]
|
|
3163
3163
|
}
|
|
3164
3164
|
);
|
|
3165
|
-
|
|
3166
|
-
const
|
|
3165
|
+
Sa.displayName = "LeaderboardTilePreview";
|
|
3166
|
+
const Ma = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", Ta = (e, t) => {
|
|
3167
3167
|
const n = e.sourceValue;
|
|
3168
3168
|
if (typeof n != "number") return !1;
|
|
3169
3169
|
switch (t.condition) {
|
|
@@ -3181,34 +3181,34 @@ const ka = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warni
|
|
|
3181
3181
|
return !1;
|
|
3182
3182
|
}
|
|
3183
3183
|
};
|
|
3184
|
-
function
|
|
3184
|
+
function Ra({
|
|
3185
3185
|
label: e,
|
|
3186
3186
|
rows: t,
|
|
3187
3187
|
rule: n,
|
|
3188
3188
|
rowCount: a,
|
|
3189
|
-
emptyStateLabel:
|
|
3190
|
-
ruleSubtitle:
|
|
3189
|
+
emptyStateLabel: i,
|
|
3190
|
+
ruleSubtitle: s,
|
|
3191
3191
|
isStale: o
|
|
3192
3192
|
}) {
|
|
3193
|
-
const l = t.filter((d) =>
|
|
3194
|
-
return l.length === 0 ? /* @__PURE__ */
|
|
3193
|
+
const l = t.filter((d) => Ta(d, n)), u = l.slice(0, a ?? 3);
|
|
3194
|
+
return l.length === 0 ? /* @__PURE__ */ N(te, { children: [
|
|
3195
3195
|
/* @__PURE__ */ r(
|
|
3196
3196
|
pe,
|
|
3197
3197
|
{
|
|
3198
3198
|
className: "gloss-metric-card__zone-a",
|
|
3199
3199
|
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3200
|
-
children: /* @__PURE__ */ r(
|
|
3200
|
+
children: /* @__PURE__ */ r(Re, { className: "gloss-metric-card__label", children: e })
|
|
3201
3201
|
}
|
|
3202
3202
|
),
|
|
3203
|
-
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children:
|
|
3204
|
-
|
|
3205
|
-
] }) : /* @__PURE__ */
|
|
3203
|
+
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: i ?? "No exceptions" }),
|
|
3204
|
+
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3205
|
+
] }) : /* @__PURE__ */ N(te, { children: [
|
|
3206
3206
|
/* @__PURE__ */ r(
|
|
3207
3207
|
pe,
|
|
3208
3208
|
{
|
|
3209
3209
|
className: "gloss-metric-card__zone-a",
|
|
3210
3210
|
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3211
|
-
children: /* @__PURE__ */ r(
|
|
3211
|
+
children: /* @__PURE__ */ r(Re, { className: "gloss-metric-card__label", children: e })
|
|
3212
3212
|
}
|
|
3213
3213
|
),
|
|
3214
3214
|
/* @__PURE__ */ r(
|
|
@@ -3219,7 +3219,7 @@ function Sa({
|
|
|
3219
3219
|
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((d, p) => /* @__PURE__ */ r(
|
|
3220
3220
|
X,
|
|
3221
3221
|
{
|
|
3222
|
-
lead: /* @__PURE__ */ r(
|
|
3222
|
+
lead: /* @__PURE__ */ r(ve, { severity: d.severity, "aria-label": Ma(d.severity) }),
|
|
3223
3223
|
name: d.name,
|
|
3224
3224
|
value: d.value,
|
|
3225
3225
|
variant: "exception",
|
|
@@ -3229,11 +3229,11 @@ function Sa({
|
|
|
3229
3229
|
)) })
|
|
3230
3230
|
}
|
|
3231
3231
|
),
|
|
3232
|
-
|
|
3232
|
+
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3233
3233
|
] });
|
|
3234
3234
|
}
|
|
3235
|
-
|
|
3236
|
-
const
|
|
3235
|
+
Ra.displayName = "ExceptionListCard";
|
|
3236
|
+
const Ia = () => /* @__PURE__ */ N(
|
|
3237
3237
|
"div",
|
|
3238
3238
|
{
|
|
3239
3239
|
className: "exception-list-tile-preview",
|
|
@@ -3243,7 +3243,7 @@ const Ma = () => /* @__PURE__ */ D(
|
|
|
3243
3243
|
/* @__PURE__ */ r(
|
|
3244
3244
|
X,
|
|
3245
3245
|
{
|
|
3246
|
-
lead: /* @__PURE__ */ r(
|
|
3246
|
+
lead: /* @__PURE__ */ r(ve, { severity: "critical", "aria-label": "Critical severity" }),
|
|
3247
3247
|
name: "SKU A",
|
|
3248
3248
|
value: "0 on hand"
|
|
3249
3249
|
}
|
|
@@ -3251,7 +3251,7 @@ const Ma = () => /* @__PURE__ */ D(
|
|
|
3251
3251
|
/* @__PURE__ */ r(
|
|
3252
3252
|
X,
|
|
3253
3253
|
{
|
|
3254
|
-
lead: /* @__PURE__ */ r(
|
|
3254
|
+
lead: /* @__PURE__ */ r(ve, { severity: "warn", "aria-label": "Warning severity" }),
|
|
3255
3255
|
name: "SKU B",
|
|
3256
3256
|
value: "3 units"
|
|
3257
3257
|
}
|
|
@@ -3259,7 +3259,7 @@ const Ma = () => /* @__PURE__ */ D(
|
|
|
3259
3259
|
/* @__PURE__ */ r(
|
|
3260
3260
|
X,
|
|
3261
3261
|
{
|
|
3262
|
-
lead: /* @__PURE__ */ r(
|
|
3262
|
+
lead: /* @__PURE__ */ r(ve, { severity: "info", "aria-label": "Info severity" }),
|
|
3263
3263
|
name: "SKU C",
|
|
3264
3264
|
value: "12 days"
|
|
3265
3265
|
}
|
|
@@ -3267,7 +3267,48 @@ const Ma = () => /* @__PURE__ */ D(
|
|
|
3267
3267
|
]
|
|
3268
3268
|
}
|
|
3269
3269
|
);
|
|
3270
|
-
|
|
3270
|
+
Ia.displayName = "ExceptionListTilePreview";
|
|
3271
|
+
const je = ["MTD", "QTD", "YTD", "LYTD", "7D"], Ze = ["$248K", "$612K", "$1.24M", "$980K", "$54K"], qe = [
|
|
3272
|
+
"M0,7 L10,5 L20,6 L30,3 L40,2",
|
|
3273
|
+
"M0,6 L10,4 L20,5 L30,2 L40,1",
|
|
3274
|
+
"M0,8 L10,7 L20,5 L30,4 L40,2",
|
|
3275
|
+
"M0,5 L10,6 L20,3 L30,4 L40,1",
|
|
3276
|
+
"M0,7 L10,4 L20,5 L30,3 L40,2"
|
|
3277
|
+
], Pa = ({
|
|
3278
|
+
slotCount: e = 3,
|
|
3279
|
+
labels: t = je,
|
|
3280
|
+
sampleValues: n = Ze
|
|
3281
|
+
}) => {
|
|
3282
|
+
const a = Array.from({ length: e }, (i, s) => ({
|
|
3283
|
+
label: t[s] ?? je[s] ?? "",
|
|
3284
|
+
value: n[s] ?? Ze[s] ?? "",
|
|
3285
|
+
sparkPath: qe[s % qe.length]
|
|
3286
|
+
}));
|
|
3287
|
+
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(
|
|
3288
|
+
"div",
|
|
3289
|
+
{
|
|
3290
|
+
className: `gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--slots-${e}`,
|
|
3291
|
+
"aria-hidden": "true",
|
|
3292
|
+
children: a.map((i, s) => /* @__PURE__ */ N("div", { className: "gloss-stacked-group-tile-preview__row", children: [
|
|
3293
|
+
/* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-label", children: i.label }),
|
|
3294
|
+
/* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-value", children: i.value }),
|
|
3295
|
+
/* @__PURE__ */ r(
|
|
3296
|
+
"svg",
|
|
3297
|
+
{
|
|
3298
|
+
className: "gloss-stacked-group-tile-preview__row-spark",
|
|
3299
|
+
viewBox: "0 0 40 10",
|
|
3300
|
+
width: "40",
|
|
3301
|
+
height: "10",
|
|
3302
|
+
preserveAspectRatio: "none",
|
|
3303
|
+
"aria-hidden": "true",
|
|
3304
|
+
children: /* @__PURE__ */ r("path", { d: i.sparkPath, fill: "none", stroke: "currentColor", strokeWidth: "1" })
|
|
3305
|
+
}
|
|
3306
|
+
)
|
|
3307
|
+
] }, s))
|
|
3308
|
+
}
|
|
3309
|
+
);
|
|
3310
|
+
};
|
|
3311
|
+
Pa.displayName = "StackedGroupTilePreview";
|
|
3271
3312
|
const ne = {
|
|
3272
3313
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
3273
3314
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
@@ -3276,33 +3317,33 @@ const ne = {
|
|
|
3276
3317
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
3277
3318
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
3278
3319
|
};
|
|
3279
|
-
function
|
|
3320
|
+
function Fa({
|
|
3280
3321
|
message: e,
|
|
3281
3322
|
primaryAction: t,
|
|
3282
3323
|
onDismiss: n,
|
|
3283
3324
|
anchorEl: a,
|
|
3284
|
-
anchorSelector:
|
|
3325
|
+
anchorSelector: i
|
|
3285
3326
|
}) {
|
|
3286
|
-
const [
|
|
3327
|
+
const [s, o] = H.useState(null), l = H.useMemo(
|
|
3287
3328
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
3288
3329
|
[]
|
|
3289
3330
|
);
|
|
3290
3331
|
H.useEffect(() => {
|
|
3291
|
-
!a && !
|
|
3332
|
+
!a && !i && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
3292
3333
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3293
3334
|
);
|
|
3294
|
-
}, [a,
|
|
3335
|
+
}, [a, i]), H.useLayoutEffect(() => {
|
|
3295
3336
|
let d = null;
|
|
3296
|
-
if (a ? d = a :
|
|
3337
|
+
if (a ? d = a : i && (d = document.querySelector(i)), d) {
|
|
3297
3338
|
const p = d.getBoundingClientRect();
|
|
3298
3339
|
o({
|
|
3299
3340
|
top: p.bottom + window.scrollY + 6,
|
|
3300
3341
|
left: p.left + window.scrollX
|
|
3301
3342
|
});
|
|
3302
3343
|
}
|
|
3303
|
-
}, [a,
|
|
3304
|
-
const u =
|
|
3305
|
-
return /* @__PURE__ */
|
|
3344
|
+
}, [a, i]);
|
|
3345
|
+
const u = s ? { top: s.top, left: s.left } : {};
|
|
3346
|
+
return /* @__PURE__ */ N(
|
|
3306
3347
|
"div",
|
|
3307
3348
|
{
|
|
3308
3349
|
className: ne["gloss-inline-nudge"],
|
|
@@ -3312,7 +3353,7 @@ function Ra({
|
|
|
3312
3353
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3313
3354
|
children: [
|
|
3314
3355
|
/* @__PURE__ */ r("span", { className: ne["gloss-inline-nudge__message"], children: e }),
|
|
3315
|
-
/* @__PURE__ */
|
|
3356
|
+
/* @__PURE__ */ N("div", { className: ne["gloss-inline-nudge__actions"], children: [
|
|
3316
3357
|
/* @__PURE__ */ r(
|
|
3317
3358
|
"button",
|
|
3318
3359
|
{
|
|
@@ -3337,129 +3378,129 @@ function Ra({
|
|
|
3337
3378
|
}
|
|
3338
3379
|
);
|
|
3339
3380
|
}
|
|
3340
|
-
|
|
3381
|
+
Fa.displayName = "InlineNudge";
|
|
3341
3382
|
function Ee(e) {
|
|
3342
3383
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3343
3384
|
}
|
|
3344
|
-
function
|
|
3385
|
+
function Ea(e, t, n) {
|
|
3345
3386
|
if (n <= t) {
|
|
3346
3387
|
const o = e[0], l = o ? Ee(o) : "#888";
|
|
3347
3388
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
3348
3389
|
}
|
|
3349
|
-
const a = n - t,
|
|
3390
|
+
const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
3350
3391
|
const l = (o.value - t) / a * 100;
|
|
3351
3392
|
return `${Ee(o)} ${l.toFixed(2)}%`;
|
|
3352
3393
|
});
|
|
3353
|
-
return
|
|
3394
|
+
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(", ")})`;
|
|
3354
3395
|
}
|
|
3355
|
-
function
|
|
3396
|
+
function Aa(e) {
|
|
3356
3397
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3357
3398
|
}
|
|
3358
|
-
function
|
|
3399
|
+
function La({
|
|
3359
3400
|
stops: e,
|
|
3360
3401
|
onChange: t,
|
|
3361
3402
|
min: n = 0,
|
|
3362
3403
|
max: a = 100,
|
|
3363
|
-
step:
|
|
3364
|
-
disabled:
|
|
3404
|
+
step: i,
|
|
3405
|
+
disabled: s = !1
|
|
3365
3406
|
}) {
|
|
3366
|
-
const o =
|
|
3367
|
-
`ThresholdRamp: step (${
|
|
3368
|
-
), 0.01) :
|
|
3407
|
+
const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3408
|
+
`ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
|
|
3409
|
+
), 0.01) : i, l = w(
|
|
3369
3410
|
(c) => Math.round(c / o) * o,
|
|
3370
3411
|
[o]
|
|
3371
|
-
), u =
|
|
3372
|
-
|
|
3373
|
-
|
|
3412
|
+
), u = T(null), [d, p] = $(null), [f, g] = $(e), m = Aa(e), D = T(m);
|
|
3413
|
+
L(() => {
|
|
3414
|
+
D.current !== m && (D.current = m, !d && g(e));
|
|
3374
3415
|
}, [m, e, d]);
|
|
3375
|
-
const y = ye(() =>
|
|
3416
|
+
const y = ye(() => Ea(f, n, a), [f, n, a]), h = w(
|
|
3376
3417
|
(c) => {
|
|
3377
3418
|
if (!u.current) return n;
|
|
3378
|
-
const
|
|
3379
|
-
return l(
|
|
3419
|
+
const v = u.current.getBoundingClientRect(), _ = v.width || 1, S = Math.max(0, Math.min(1, (c - v.left) / _)), b = n + S * (a - n);
|
|
3420
|
+
return l(b);
|
|
3380
3421
|
},
|
|
3381
3422
|
[n, a, l]
|
|
3382
3423
|
);
|
|
3383
|
-
|
|
3424
|
+
L(() => {
|
|
3384
3425
|
a <= n && process.env.NODE_ENV !== "production" && console.warn(
|
|
3385
3426
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
3386
3427
|
);
|
|
3387
3428
|
}, [n, a]);
|
|
3388
3429
|
const M = w(
|
|
3389
|
-
(c,
|
|
3390
|
-
const _ = f.find((S) => S.id ===
|
|
3391
|
-
|
|
3430
|
+
(c, v) => {
|
|
3431
|
+
const _ = f.find((S) => S.id === v);
|
|
3432
|
+
s || _?.disabled || (c.preventDefault(), p(v));
|
|
3392
3433
|
},
|
|
3393
|
-
[
|
|
3394
|
-
), P =
|
|
3434
|
+
[s, f]
|
|
3435
|
+
), P = T(f);
|
|
3395
3436
|
P.current = f;
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3437
|
+
const C = T(t);
|
|
3438
|
+
C.current = t, L(() => {
|
|
3398
3439
|
if (!d) return;
|
|
3399
3440
|
const c = (_) => {
|
|
3400
3441
|
const S = h(_.clientX);
|
|
3401
3442
|
g(
|
|
3402
|
-
(
|
|
3443
|
+
(b) => b.map((x) => x.id === d ? { ...x, value: S } : x)
|
|
3403
3444
|
);
|
|
3404
|
-
},
|
|
3405
|
-
const S = h(_.clientX),
|
|
3445
|
+
}, v = (_) => {
|
|
3446
|
+
const S = h(_.clientX), b = P.current.map(
|
|
3406
3447
|
(x) => x.id === d ? { ...x, value: S } : x
|
|
3407
3448
|
);
|
|
3408
|
-
g(
|
|
3449
|
+
g(b), p(null), C.current(b);
|
|
3409
3450
|
};
|
|
3410
|
-
return window.addEventListener("pointermove", c), window.addEventListener("pointerup",
|
|
3411
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup",
|
|
3451
|
+
return window.addEventListener("pointermove", c), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
3452
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
3412
3453
|
};
|
|
3413
3454
|
}, [d, h]);
|
|
3414
|
-
const
|
|
3415
|
-
(c,
|
|
3416
|
-
if (
|
|
3455
|
+
const R = a - n > 0 ? a - n : 1, I = w(
|
|
3456
|
+
(c, v) => {
|
|
3457
|
+
if (s || v.disabled) return;
|
|
3417
3458
|
const _ = a - n;
|
|
3418
3459
|
if (_ <= 0) return;
|
|
3419
3460
|
const S = c.shiftKey ? _ / 20 : _ / 100;
|
|
3420
|
-
let
|
|
3461
|
+
let b = v.value;
|
|
3421
3462
|
switch (c.key) {
|
|
3422
3463
|
case "ArrowRight":
|
|
3423
3464
|
case "ArrowUp":
|
|
3424
|
-
|
|
3465
|
+
b = v.value + S;
|
|
3425
3466
|
break;
|
|
3426
3467
|
case "ArrowLeft":
|
|
3427
3468
|
case "ArrowDown":
|
|
3428
|
-
|
|
3469
|
+
b = v.value - S;
|
|
3429
3470
|
break;
|
|
3430
3471
|
case "Home":
|
|
3431
|
-
|
|
3472
|
+
b = n;
|
|
3432
3473
|
break;
|
|
3433
3474
|
case "End":
|
|
3434
|
-
|
|
3475
|
+
b = a;
|
|
3435
3476
|
break;
|
|
3436
3477
|
default:
|
|
3437
3478
|
return;
|
|
3438
3479
|
}
|
|
3439
3480
|
c.preventDefault();
|
|
3440
|
-
const x = Math.max(n, Math.min(a,
|
|
3441
|
-
if (F ===
|
|
3481
|
+
const x = Math.max(n, Math.min(a, b)), F = l(x);
|
|
3482
|
+
if (F === v.value) return;
|
|
3442
3483
|
const U = f.map(
|
|
3443
|
-
(q) => q.id ===
|
|
3484
|
+
(q) => q.id === v.id ? { ...q, value: F } : q
|
|
3444
3485
|
);
|
|
3445
3486
|
g(U), t(U);
|
|
3446
3487
|
},
|
|
3447
|
-
[
|
|
3488
|
+
[s, n, a, f, t, l]
|
|
3448
3489
|
);
|
|
3449
|
-
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled":
|
|
3490
|
+
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
|
|
3450
3491
|
"div",
|
|
3451
3492
|
{
|
|
3452
3493
|
ref: u,
|
|
3453
3494
|
className: "gloss-threshold-ramp__track",
|
|
3454
3495
|
style: { background: y },
|
|
3455
3496
|
children: f.map((c) => {
|
|
3456
|
-
const
|
|
3497
|
+
const v = (c.value - n) / R * 100;
|
|
3457
3498
|
return /* @__PURE__ */ r(
|
|
3458
3499
|
"span",
|
|
3459
3500
|
{
|
|
3460
3501
|
className: "gloss-threshold-ramp__stop",
|
|
3461
3502
|
style: {
|
|
3462
|
-
left: `${
|
|
3503
|
+
left: `${v}%`,
|
|
3463
3504
|
color: Ee(c)
|
|
3464
3505
|
},
|
|
3465
3506
|
"data-disabled": c.disabled || void 0,
|
|
@@ -3471,8 +3512,8 @@ function Pa({
|
|
|
3471
3512
|
"aria-valuenow": c.value,
|
|
3472
3513
|
"aria-valuemin": n,
|
|
3473
3514
|
"aria-valuemax": a,
|
|
3474
|
-
"aria-disabled": c.disabled ||
|
|
3475
|
-
tabIndex: c.disabled ||
|
|
3515
|
+
"aria-disabled": c.disabled || s || void 0,
|
|
3516
|
+
tabIndex: c.disabled || s ? -1 : 0
|
|
3476
3517
|
},
|
|
3477
3518
|
c.id
|
|
3478
3519
|
);
|
|
@@ -3480,15 +3521,15 @@ function Pa({
|
|
|
3480
3521
|
}
|
|
3481
3522
|
) });
|
|
3482
3523
|
}
|
|
3483
|
-
|
|
3484
|
-
const
|
|
3485
|
-
function
|
|
3486
|
-
return
|
|
3524
|
+
La.displayName = "ThresholdRamp";
|
|
3525
|
+
const st = bt(null);
|
|
3526
|
+
function Oa() {
|
|
3527
|
+
return yt(st);
|
|
3487
3528
|
}
|
|
3488
|
-
function
|
|
3489
|
-
const t =
|
|
3529
|
+
function $a({ option: e }) {
|
|
3530
|
+
const t = Oa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = w(() => {
|
|
3490
3531
|
a || t?.select(e.value);
|
|
3491
|
-
}, [a, t, e.value]),
|
|
3532
|
+
}, [a, t, e.value]), s = w(
|
|
3492
3533
|
(d) => {
|
|
3493
3534
|
a || t?.onKeyNav(d, e.value);
|
|
3494
3535
|
},
|
|
@@ -3510,119 +3551,119 @@ function Ea({ option: e }) {
|
|
|
3510
3551
|
"aria-disabled": a,
|
|
3511
3552
|
disabled: a,
|
|
3512
3553
|
tabIndex: u,
|
|
3513
|
-
onClick:
|
|
3514
|
-
onKeyDown:
|
|
3554
|
+
onClick: i,
|
|
3555
|
+
onKeyDown: s
|
|
3515
3556
|
}
|
|
3516
3557
|
);
|
|
3517
3558
|
}
|
|
3518
|
-
function
|
|
3559
|
+
function Ba({
|
|
3519
3560
|
swatches: e,
|
|
3520
3561
|
value: t,
|
|
3521
3562
|
defaultValue: n,
|
|
3522
3563
|
onChange: a,
|
|
3523
|
-
disabled:
|
|
3524
|
-
name:
|
|
3564
|
+
disabled: i = !1,
|
|
3565
|
+
name: s
|
|
3525
3566
|
}) {
|
|
3526
3567
|
const o = t !== void 0, [l, u] = $(n), d = o ? t : l, p = w(
|
|
3527
|
-
(
|
|
3528
|
-
o || u(
|
|
3568
|
+
(C) => {
|
|
3569
|
+
o || u(C), a?.(C);
|
|
3529
3570
|
},
|
|
3530
3571
|
[o, a]
|
|
3531
3572
|
), f = w(
|
|
3532
|
-
(
|
|
3573
|
+
(C) => d === C,
|
|
3533
3574
|
[d]
|
|
3534
|
-
), g =
|
|
3535
|
-
|
|
3536
|
-
}, []),
|
|
3537
|
-
const
|
|
3538
|
-
|
|
3575
|
+
), g = T(/* @__PURE__ */ new Map()), m = w((C, R) => {
|
|
3576
|
+
R ? g.current.set(C, R) : g.current.delete(C);
|
|
3577
|
+
}, []), D = e.filter((C) => !C.disabled && !i), y = D.find((C) => C.value === d)?.value ?? D[0]?.value, h = w((C) => {
|
|
3578
|
+
const R = g.current.get(C);
|
|
3579
|
+
R && R.focus();
|
|
3539
3580
|
}, []), M = w(
|
|
3540
|
-
(
|
|
3541
|
-
if (
|
|
3581
|
+
(C, R) => {
|
|
3582
|
+
if (i) return;
|
|
3542
3583
|
const I = e.filter((S) => !S.disabled);
|
|
3543
3584
|
if (I.length === 0) return;
|
|
3544
|
-
const c = I.findIndex((S) => S.value ===
|
|
3585
|
+
const c = I.findIndex((S) => S.value === R);
|
|
3545
3586
|
if (c === -1) return;
|
|
3546
|
-
let
|
|
3547
|
-
switch (
|
|
3587
|
+
let v = c;
|
|
3588
|
+
switch (C.key) {
|
|
3548
3589
|
case "ArrowRight":
|
|
3549
3590
|
case "ArrowDown":
|
|
3550
|
-
|
|
3591
|
+
v = (c + 1) % I.length;
|
|
3551
3592
|
break;
|
|
3552
3593
|
case "ArrowLeft":
|
|
3553
3594
|
case "ArrowUp":
|
|
3554
|
-
|
|
3595
|
+
v = (c - 1 + I.length) % I.length;
|
|
3555
3596
|
break;
|
|
3556
3597
|
case "Home":
|
|
3557
|
-
|
|
3598
|
+
v = 0;
|
|
3558
3599
|
break;
|
|
3559
3600
|
case "End":
|
|
3560
|
-
|
|
3601
|
+
v = I.length - 1;
|
|
3561
3602
|
break;
|
|
3562
3603
|
case " ":
|
|
3563
3604
|
case "Enter":
|
|
3564
|
-
|
|
3605
|
+
C.preventDefault(), p(R);
|
|
3565
3606
|
return;
|
|
3566
3607
|
default:
|
|
3567
3608
|
return;
|
|
3568
3609
|
}
|
|
3569
|
-
|
|
3570
|
-
const _ = I[
|
|
3610
|
+
C.preventDefault();
|
|
3611
|
+
const _ = I[v].value;
|
|
3571
3612
|
h(_), p(_);
|
|
3572
3613
|
},
|
|
3573
|
-
[
|
|
3614
|
+
[i, e, p, h]
|
|
3574
3615
|
), P = {
|
|
3575
3616
|
selectedValue: d,
|
|
3576
3617
|
select: p,
|
|
3577
3618
|
isSelected: f,
|
|
3578
|
-
groupDisabled:
|
|
3579
|
-
name:
|
|
3619
|
+
groupDisabled: i,
|
|
3620
|
+
name: s,
|
|
3580
3621
|
registerRef: m,
|
|
3581
3622
|
firstFocusableValue: y,
|
|
3582
3623
|
onKeyNav: M
|
|
3583
3624
|
};
|
|
3584
|
-
return /* @__PURE__ */ r(
|
|
3625
|
+
return /* @__PURE__ */ r(st.Provider, { value: P, children: /* @__PURE__ */ r(
|
|
3585
3626
|
"div",
|
|
3586
3627
|
{
|
|
3587
3628
|
className: "gloss-preset-swatch-row",
|
|
3588
3629
|
role: "radiogroup",
|
|
3589
|
-
"aria-label":
|
|
3590
|
-
"aria-disabled":
|
|
3591
|
-
"data-disabled":
|
|
3592
|
-
children: e.map((
|
|
3630
|
+
"aria-label": s,
|
|
3631
|
+
"aria-disabled": i,
|
|
3632
|
+
"data-disabled": i || void 0,
|
|
3633
|
+
children: e.map((C) => /* @__PURE__ */ r($a, { option: C }, C.value))
|
|
3593
3634
|
}
|
|
3594
3635
|
) });
|
|
3595
3636
|
}
|
|
3596
|
-
|
|
3637
|
+
Ba.displayName = "PresetSwatchRow";
|
|
3597
3638
|
function Ae(e, t) {
|
|
3598
3639
|
for (const n of e)
|
|
3599
3640
|
if (n.items.some((a) => a.id === t))
|
|
3600
3641
|
return n.zoneKey;
|
|
3601
3642
|
return null;
|
|
3602
3643
|
}
|
|
3603
|
-
function
|
|
3644
|
+
function Ye(e, t) {
|
|
3604
3645
|
const n = e.find((a) => a.zoneKey === t);
|
|
3605
3646
|
return n ? n.zoneKey : Ae(e, t);
|
|
3606
3647
|
}
|
|
3607
|
-
function
|
|
3608
|
-
const a = [...e], [
|
|
3609
|
-
return a.splice(n, 0,
|
|
3648
|
+
function za(e, t, n) {
|
|
3649
|
+
const a = [...e], [i] = a.splice(t, 1);
|
|
3650
|
+
return a.splice(n, 0, i), a;
|
|
3610
3651
|
}
|
|
3611
|
-
function
|
|
3652
|
+
function Ka(e) {
|
|
3612
3653
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
3613
3654
|
}
|
|
3614
|
-
function
|
|
3655
|
+
function Wa(e) {
|
|
3615
3656
|
const [t, n] = $(
|
|
3616
3657
|
() => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3617
3658
|
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
3618
3659
|
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
3619
|
-
), [a,
|
|
3660
|
+
), [a, i] = $(null), [s, o] = $(null), l = T(null), u = T(e.onZoneChange);
|
|
3620
3661
|
u.current = e.onZoneChange;
|
|
3621
3662
|
const d = ye(
|
|
3622
|
-
() =>
|
|
3663
|
+
() => Ka(e.zones),
|
|
3623
3664
|
[e.zones]
|
|
3624
|
-
), p =
|
|
3625
|
-
|
|
3665
|
+
), p = T(d);
|
|
3666
|
+
L(() => {
|
|
3626
3667
|
p.current !== d && (p.current = d, !a && n(
|
|
3627
3668
|
e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3628
3669
|
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
@@ -3632,15 +3673,15 @@ function $a(e) {
|
|
|
3632
3673
|
const f = w(
|
|
3633
3674
|
(h) => {
|
|
3634
3675
|
const M = h.active.id;
|
|
3635
|
-
let P = null,
|
|
3636
|
-
for (const
|
|
3637
|
-
const I =
|
|
3676
|
+
let P = null, C = null;
|
|
3677
|
+
for (const R of t) {
|
|
3678
|
+
const I = R.items.find((c) => c.id === M);
|
|
3638
3679
|
if (I) {
|
|
3639
|
-
P = I,
|
|
3680
|
+
P = I, C = R.zoneKey;
|
|
3640
3681
|
break;
|
|
3641
3682
|
}
|
|
3642
3683
|
}
|
|
3643
|
-
l.current =
|
|
3684
|
+
l.current = C, i(P), o(C);
|
|
3644
3685
|
},
|
|
3645
3686
|
[t]
|
|
3646
3687
|
), g = w(
|
|
@@ -3649,54 +3690,54 @@ function $a(e) {
|
|
|
3649
3690
|
o(l.current);
|
|
3650
3691
|
return;
|
|
3651
3692
|
}
|
|
3652
|
-
const M =
|
|
3693
|
+
const M = Ye(t, h.over.id);
|
|
3653
3694
|
o(M);
|
|
3654
3695
|
},
|
|
3655
3696
|
[t]
|
|
3656
3697
|
), m = w(
|
|
3657
3698
|
(h) => {
|
|
3658
|
-
const { active: M, over: P } = h,
|
|
3659
|
-
l.current = null,
|
|
3699
|
+
const { active: M, over: P } = h, C = () => {
|
|
3700
|
+
l.current = null, i(null), o(null);
|
|
3660
3701
|
};
|
|
3661
3702
|
if (!P) {
|
|
3662
|
-
|
|
3703
|
+
C();
|
|
3663
3704
|
return;
|
|
3664
3705
|
}
|
|
3665
|
-
const
|
|
3666
|
-
if (!
|
|
3667
|
-
|
|
3706
|
+
const R = Ae(t, M.id), I = Ye(t, P.id);
|
|
3707
|
+
if (!R || !I) {
|
|
3708
|
+
C();
|
|
3668
3709
|
return;
|
|
3669
3710
|
}
|
|
3670
|
-
let c = t.map((
|
|
3671
|
-
if (
|
|
3672
|
-
const
|
|
3673
|
-
c[
|
|
3711
|
+
let c = t.map((v) => ({ ...v, items: [...v.items] }));
|
|
3712
|
+
if (R === I) {
|
|
3713
|
+
const v = c.findIndex((F) => F.zoneKey === R), _ = c[v], S = _.items.findIndex((F) => F.id === M.id), b = _.items.findIndex((F) => F.id === P.id), x = b >= 0 ? b : Math.max(0, _.items.length - 1);
|
|
3714
|
+
c[v] = {
|
|
3674
3715
|
..._,
|
|
3675
|
-
items:
|
|
3716
|
+
items: za(_.items, S, x)
|
|
3676
3717
|
};
|
|
3677
3718
|
} else {
|
|
3678
|
-
const
|
|
3719
|
+
const v = c.findIndex((O) => O.zoneKey === R), _ = c.findIndex((O) => O.zoneKey === I), S = c[v], b = c[_], x = S.items.find((O) => O.id === M.id);
|
|
3679
3720
|
if (!x) {
|
|
3680
|
-
|
|
3721
|
+
C();
|
|
3681
3722
|
return;
|
|
3682
3723
|
}
|
|
3683
|
-
const F = S.items.filter((
|
|
3684
|
-
let j = F, G = [...
|
|
3685
|
-
if (
|
|
3686
|
-
const
|
|
3687
|
-
G = G.slice(0,
|
|
3724
|
+
const F = S.items.filter((O) => O.id !== M.id), U = b.items.findIndex((O) => O.id === P.id), q = U >= 0 ? U : b.items.length;
|
|
3725
|
+
let j = F, G = [...b.items];
|
|
3726
|
+
if (b.maxItems !== void 0 && G.length >= b.maxItems) {
|
|
3727
|
+
const O = G[G.length - 1];
|
|
3728
|
+
G = G.slice(0, b.maxItems - 1), j = [...F, O];
|
|
3688
3729
|
}
|
|
3689
3730
|
const B = Math.min(q, G.length), Z = [
|
|
3690
3731
|
...G.slice(0, B),
|
|
3691
3732
|
x,
|
|
3692
3733
|
...G.slice(B)
|
|
3693
3734
|
];
|
|
3694
|
-
c[
|
|
3735
|
+
c[v] = { ...S, items: j }, c[_] = { ...b, items: Z };
|
|
3695
3736
|
}
|
|
3696
|
-
n(c), u.current?.(c),
|
|
3737
|
+
n(c), u.current?.(c), C();
|
|
3697
3738
|
},
|
|
3698
3739
|
[t]
|
|
3699
|
-
),
|
|
3740
|
+
), D = w(
|
|
3700
3741
|
(h) => ({
|
|
3701
3742
|
id: h,
|
|
3702
3743
|
"data-zone-key": h
|
|
@@ -3715,17 +3756,17 @@ function $a(e) {
|
|
|
3715
3756
|
);
|
|
3716
3757
|
return {
|
|
3717
3758
|
zones: t,
|
|
3718
|
-
activeZone:
|
|
3759
|
+
activeZone: s,
|
|
3719
3760
|
activeItem: a,
|
|
3720
|
-
getZoneProps:
|
|
3761
|
+
getZoneProps: D,
|
|
3721
3762
|
getItemProps: y,
|
|
3722
3763
|
handleDragStart: f,
|
|
3723
3764
|
handleDragOver: g,
|
|
3724
3765
|
handleDragEnd: m
|
|
3725
3766
|
};
|
|
3726
3767
|
}
|
|
3727
|
-
let ge = null, Ne = null,
|
|
3728
|
-
const
|
|
3768
|
+
let ge = null, Ne = null, Te = !1;
|
|
3769
|
+
const Ga = [
|
|
3729
3770
|
"DndContext",
|
|
3730
3771
|
"DragOverlay",
|
|
3731
3772
|
"useSensors",
|
|
@@ -3734,22 +3775,22 @@ const Ba = [
|
|
|
3734
3775
|
"PointerSensor",
|
|
3735
3776
|
"KeyboardSensor",
|
|
3736
3777
|
"closestCenter"
|
|
3737
|
-
],
|
|
3778
|
+
], Va = [
|
|
3738
3779
|
"SortableContext",
|
|
3739
3780
|
"useSortable",
|
|
3740
3781
|
"verticalListSortingStrategy"
|
|
3741
3782
|
];
|
|
3742
|
-
function
|
|
3783
|
+
function Ha(e, t) {
|
|
3743
3784
|
const n = [], a = e ?? {};
|
|
3744
|
-
for (const
|
|
3745
|
-
a[
|
|
3746
|
-
const
|
|
3747
|
-
for (const
|
|
3748
|
-
s
|
|
3785
|
+
for (const s of Ga)
|
|
3786
|
+
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
3787
|
+
const i = t ?? {};
|
|
3788
|
+
for (const s of Va)
|
|
3789
|
+
i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
3749
3790
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
3750
3791
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return ge ? Promise.resolve(ge) :
|
|
3792
|
+
function Ua() {
|
|
3793
|
+
return ge ? Promise.resolve(ge) : Te ? Promise.resolve(null) : Ne || (Ne = (async () => {
|
|
3753
3794
|
try {
|
|
3754
3795
|
const [e, t, n] = await Promise.all([
|
|
3755
3796
|
import("@dnd-kit/core"),
|
|
@@ -3757,57 +3798,57 @@ function Wa() {
|
|
|
3757
3798
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
3758
3799
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
3759
3800
|
), {}))
|
|
3760
|
-
]), a =
|
|
3801
|
+
]), a = Ha(e, t);
|
|
3761
3802
|
return a.ok ? (ge = {
|
|
3762
3803
|
core: e,
|
|
3763
3804
|
sortable: t,
|
|
3764
3805
|
utilities: n
|
|
3765
|
-
}, ge) : (
|
|
3806
|
+
}, ge) : (Te = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
3766
3807
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
3767
3808
|
), null);
|
|
3768
3809
|
} catch {
|
|
3769
|
-
return
|
|
3810
|
+
return Te = !0, null;
|
|
3770
3811
|
}
|
|
3771
3812
|
})(), Ne);
|
|
3772
3813
|
}
|
|
3773
|
-
function
|
|
3774
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem:
|
|
3814
|
+
function ja(e) {
|
|
3815
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = Wa({ zones: t, onZoneChange: n }), [l, u] = H.useState(ge);
|
|
3775
3816
|
return H.useEffect(() => {
|
|
3776
3817
|
if (l) return;
|
|
3777
3818
|
let d = !0;
|
|
3778
|
-
return
|
|
3819
|
+
return Ua().then((p) => {
|
|
3779
3820
|
d && u(p);
|
|
3780
3821
|
}), () => {
|
|
3781
3822
|
d = !1;
|
|
3782
3823
|
};
|
|
3783
3824
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
3784
|
-
|
|
3825
|
+
it,
|
|
3785
3826
|
{
|
|
3786
3827
|
state: o,
|
|
3787
3828
|
modules: l,
|
|
3788
3829
|
renderZone: a,
|
|
3789
|
-
renderItem:
|
|
3790
|
-
renderDragOverlay:
|
|
3830
|
+
renderItem: i,
|
|
3831
|
+
renderDragOverlay: s
|
|
3791
3832
|
}
|
|
3792
3833
|
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
3793
|
-
const p = d.items.map((f) => /* @__PURE__ */ r(H.Fragment, { children:
|
|
3834
|
+
const p = d.items.map((f) => /* @__PURE__ */ r(H.Fragment, { children: i(f) }, f.id));
|
|
3794
3835
|
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, p) }, d.zoneKey);
|
|
3795
3836
|
}) });
|
|
3796
3837
|
}
|
|
3797
|
-
|
|
3798
|
-
function
|
|
3838
|
+
ja.displayName = "SortableZones";
|
|
3839
|
+
function it({
|
|
3799
3840
|
state: e,
|
|
3800
3841
|
modules: t,
|
|
3801
3842
|
renderZone: n,
|
|
3802
3843
|
renderItem: a,
|
|
3803
|
-
renderDragOverlay:
|
|
3844
|
+
renderDragOverlay: i
|
|
3804
3845
|
}) {
|
|
3805
|
-
const { core:
|
|
3846
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: d, useSensors: p, useSensor: f, useDroppable: g, PointerSensor: m, KeyboardSensor: D, closestCenter: y } = s, { SortableContext: h, verticalListSortingStrategy: M } = o, P = p(
|
|
3806
3847
|
f(m, { activationConstraint: { distance: 5 } }),
|
|
3807
|
-
f(
|
|
3808
|
-
),
|
|
3809
|
-
return /* @__PURE__ */
|
|
3810
|
-
|
|
3848
|
+
f(D)
|
|
3849
|
+
), C = u, R = d, I = h;
|
|
3850
|
+
return /* @__PURE__ */ N(
|
|
3851
|
+
C,
|
|
3811
3852
|
{
|
|
3812
3853
|
sensors: P,
|
|
3813
3854
|
collisionDetection: y,
|
|
@@ -3816,8 +3857,8 @@ function nt({
|
|
|
3816
3857
|
onDragEnd: e.handleDragEnd,
|
|
3817
3858
|
children: [
|
|
3818
3859
|
e.zones.map((c) => {
|
|
3819
|
-
const
|
|
3820
|
-
|
|
3860
|
+
const v = c.items.map((S) => S.id), _ = c.items.map((S) => /* @__PURE__ */ r(
|
|
3861
|
+
ot,
|
|
3821
3862
|
{
|
|
3822
3863
|
id: S.id,
|
|
3823
3864
|
useSortable: o.useSortable,
|
|
@@ -3827,61 +3868,61 @@ function nt({
|
|
|
3827
3868
|
S.id
|
|
3828
3869
|
));
|
|
3829
3870
|
return /* @__PURE__ */ r(
|
|
3830
|
-
|
|
3871
|
+
lt,
|
|
3831
3872
|
{
|
|
3832
3873
|
zoneKey: c.zoneKey,
|
|
3833
3874
|
zoneProps: e.getZoneProps(c.zoneKey),
|
|
3834
3875
|
useDroppable: g,
|
|
3835
|
-
children: /* @__PURE__ */ r(I, { items:
|
|
3876
|
+
children: /* @__PURE__ */ r(I, { items: v, strategy: M, children: n(c.zoneKey, c.items, _) })
|
|
3836
3877
|
},
|
|
3837
3878
|
c.zoneKey
|
|
3838
3879
|
);
|
|
3839
3880
|
}),
|
|
3840
|
-
/* @__PURE__ */ r(
|
|
3881
|
+
/* @__PURE__ */ r(R, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
3841
3882
|
]
|
|
3842
3883
|
}
|
|
3843
3884
|
);
|
|
3844
3885
|
}
|
|
3845
|
-
|
|
3846
|
-
function
|
|
3847
|
-
const { attributes:
|
|
3886
|
+
it.displayName = "SortableZonesInner";
|
|
3887
|
+
function ot({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
3888
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging: d } = t({ id: e }), p = {
|
|
3848
3889
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
3849
3890
|
transition: u,
|
|
3850
3891
|
opacity: d ? 0.5 : 1
|
|
3851
3892
|
};
|
|
3852
|
-
return /* @__PURE__ */ r("div", { ref: o, style: p, "data-sortable-item-id": e, ...
|
|
3893
|
+
return /* @__PURE__ */ r("div", { ref: o, style: p, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
3853
3894
|
}
|
|
3854
|
-
|
|
3855
|
-
function
|
|
3895
|
+
ot.displayName = "SortableItem";
|
|
3896
|
+
function lt({
|
|
3856
3897
|
zoneKey: e,
|
|
3857
3898
|
zoneProps: t,
|
|
3858
3899
|
useDroppable: n,
|
|
3859
3900
|
children: a
|
|
3860
3901
|
}) {
|
|
3861
|
-
const { setNodeRef:
|
|
3862
|
-
return /* @__PURE__ */ r("div", { ref:
|
|
3902
|
+
const { setNodeRef: i, isOver: s } = n({ id: e });
|
|
3903
|
+
return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
3863
3904
|
}
|
|
3864
|
-
|
|
3865
|
-
function
|
|
3905
|
+
lt.displayName = "ZoneDroppable";
|
|
3906
|
+
function vr({
|
|
3866
3907
|
slotLeft: e,
|
|
3867
3908
|
slotCenter: t,
|
|
3868
3909
|
slotRight: n,
|
|
3869
3910
|
height: a = 36,
|
|
3870
|
-
className:
|
|
3871
|
-
style:
|
|
3911
|
+
className: i,
|
|
3912
|
+
style: s,
|
|
3872
3913
|
"aria-label": o = "Dashboard navigation"
|
|
3873
3914
|
}) {
|
|
3874
3915
|
const l = {
|
|
3875
3916
|
"--gloss-bottom-toolbar-height": `${a}px`,
|
|
3876
|
-
...
|
|
3917
|
+
...s
|
|
3877
3918
|
};
|
|
3878
|
-
return /* @__PURE__ */
|
|
3919
|
+
return /* @__PURE__ */ N(
|
|
3879
3920
|
"div",
|
|
3880
3921
|
{
|
|
3881
3922
|
role: "toolbar",
|
|
3882
3923
|
"aria-label": o,
|
|
3883
3924
|
"data-testid": "gloss-bottom-toolbar",
|
|
3884
|
-
className: ["gloss-bottom-toolbar",
|
|
3925
|
+
className: ["gloss-bottom-toolbar", i].filter(Boolean).join(" "),
|
|
3885
3926
|
style: l,
|
|
3886
3927
|
children: [
|
|
3887
3928
|
/* @__PURE__ */ r(
|
|
@@ -3912,16 +3953,16 @@ function gr({
|
|
|
3912
3953
|
}
|
|
3913
3954
|
);
|
|
3914
3955
|
}
|
|
3915
|
-
function
|
|
3956
|
+
function br({
|
|
3916
3957
|
count: e,
|
|
3917
3958
|
currentIndex: t,
|
|
3918
3959
|
onSelect: n,
|
|
3919
3960
|
"aria-label": a = "Sections",
|
|
3920
|
-
provisionalIndex:
|
|
3921
|
-
pulseIndex:
|
|
3961
|
+
provisionalIndex: i,
|
|
3962
|
+
pulseIndex: s,
|
|
3922
3963
|
pulseNonce: o
|
|
3923
3964
|
}) {
|
|
3924
|
-
const l =
|
|
3965
|
+
const l = ht.useRef([]);
|
|
3925
3966
|
return l.current.length = e, /* @__PURE__ */ r(
|
|
3926
3967
|
"div",
|
|
3927
3968
|
{
|
|
@@ -3951,8 +3992,8 @@ function pr({
|
|
|
3951
3992
|
type: "button",
|
|
3952
3993
|
role: "tab",
|
|
3953
3994
|
"aria-selected": p === t,
|
|
3954
|
-
"aria-label": p ===
|
|
3955
|
-
"data-state": p ===
|
|
3995
|
+
"aria-label": p === i ? "Unconfirmed section" : `Section ${p + 1}`,
|
|
3996
|
+
"data-state": p === i ? "provisional-hollow" : p === s ? "pulse" : p === t ? "current" : "hollow",
|
|
3956
3997
|
"data-section-index": p,
|
|
3957
3998
|
className: [
|
|
3958
3999
|
"gloss-section-dots__dot",
|
|
@@ -3960,347 +4001,348 @@ function pr({
|
|
|
3960
4001
|
].filter(Boolean).join(" "),
|
|
3961
4002
|
onClick: () => n(p)
|
|
3962
4003
|
},
|
|
3963
|
-
p ===
|
|
4004
|
+
p === s ? `${p}-${o ?? 0}` : p
|
|
3964
4005
|
))
|
|
3965
4006
|
}
|
|
3966
4007
|
);
|
|
3967
4008
|
}
|
|
3968
|
-
const
|
|
3969
|
-
const
|
|
3970
|
-
return delete
|
|
4009
|
+
const Za = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4010
|
+
const i = { ...n };
|
|
4011
|
+
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(Le, { region: "toolbar", density: e, children: t }) });
|
|
3971
4012
|
});
|
|
3972
|
-
|
|
3973
|
-
const
|
|
3974
|
-
const o = { ...
|
|
3975
|
-
return delete o.className, delete o.style, /* @__PURE__ */
|
|
4013
|
+
Za.displayName = "ContainerToolbar";
|
|
4014
|
+
const qa = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
|
|
4015
|
+
const o = { ...i };
|
|
4016
|
+
return delete o.className, delete o.style, /* @__PURE__ */ N("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
3976
4017
|
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
3977
4018
|
t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
|
|
3978
|
-
/* @__PURE__ */ r(
|
|
4019
|
+
/* @__PURE__ */ r(Le, { region: "form-section", density: n, children: a })
|
|
3979
4020
|
] });
|
|
3980
4021
|
});
|
|
3981
|
-
|
|
3982
|
-
const
|
|
3983
|
-
const
|
|
3984
|
-
return delete
|
|
4022
|
+
qa.displayName = "ContainerFormSection";
|
|
4023
|
+
const Ya = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4024
|
+
const i = { ...n };
|
|
4025
|
+
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(Le, { region: "table", density: e, children: t }) });
|
|
3985
4026
|
});
|
|
3986
|
-
|
|
4027
|
+
Ya.displayName = "ContainerTable";
|
|
3987
4028
|
export {
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4029
|
+
_r as Accordion,
|
|
4030
|
+
Nr as AccordionContent,
|
|
4031
|
+
Dr as AccordionItem,
|
|
4032
|
+
kr as AccordionTrigger,
|
|
4033
|
+
Cr as ActionStrip,
|
|
4034
|
+
xr as Actionable,
|
|
4035
|
+
Sr as AddressGroup,
|
|
4036
|
+
Mr as AddressSelect,
|
|
4037
|
+
Tr as AsyncLoader,
|
|
4038
|
+
Rr as Autocomplete,
|
|
4039
|
+
Ir as Badge,
|
|
4040
|
+
Pr as BarChartCard,
|
|
4041
|
+
Fr as BarsBg,
|
|
4042
|
+
vr as BottomToolbar,
|
|
4043
|
+
Er as Button,
|
|
4044
|
+
Ar as ButtonGroup,
|
|
4045
|
+
Lr as ButtonGroupContext,
|
|
4046
|
+
Or as Card,
|
|
4047
|
+
$r as CardActions,
|
|
4048
|
+
Br as CardBack,
|
|
4049
|
+
zr as CardBody,
|
|
4050
|
+
Kr as CardFooter,
|
|
4051
|
+
Wr as CardHeader,
|
|
4052
|
+
Gr as CardMedia,
|
|
4053
|
+
pt as CardShell,
|
|
4054
|
+
Vr as CardSubtitle,
|
|
4055
|
+
Hr as CardTitle,
|
|
4056
|
+
pr as CascadePreview,
|
|
4057
|
+
Ur as ChartControlBar,
|
|
4058
|
+
jr as Checkbox,
|
|
4059
|
+
Zr as CheckboxGroup,
|
|
4060
|
+
qr as Chip,
|
|
4061
|
+
Yr as ColorPicker,
|
|
4062
|
+
Qr as ComparisonCard,
|
|
4063
|
+
Xr as ContactForm,
|
|
4064
|
+
Jr as ContainerCard,
|
|
4065
|
+
es as ContainerCardActions,
|
|
4066
|
+
ts as ContainerCardBody,
|
|
4067
|
+
as as ContainerCardFooter,
|
|
4068
|
+
ns as ContainerCardHeader,
|
|
4069
|
+
rs as ContainerCardMedia,
|
|
4070
|
+
ss as ContainerCardSubtitle,
|
|
4071
|
+
is as ContainerCardTitle,
|
|
4072
|
+
os as ContainerDialog,
|
|
4073
|
+
ls as ContainerDialogActions,
|
|
4074
|
+
cs as ContainerDialogBody,
|
|
4075
|
+
ds as ContainerDialogHeader,
|
|
4076
|
+
qa as ContainerFormSection,
|
|
4077
|
+
us as ContainerPanel,
|
|
4078
|
+
Ya as ContainerTable,
|
|
4079
|
+
Za as ContainerToolbar,
|
|
4080
|
+
ms as CreditCardForm,
|
|
4081
|
+
gs as DEFAULT_FOOTER_IDS,
|
|
4041
4082
|
se as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4083
|
+
Wo as DEFAULT_MARKET_PRESETS,
|
|
4084
|
+
ps as DEFAULT_OVERFLOW_IDS,
|
|
4085
|
+
Go as DEFAULT_PINNED,
|
|
4086
|
+
Xe as DEFAULT_RESIZE_PHYSICS,
|
|
4087
|
+
hs as DataTable,
|
|
4088
|
+
fs as DatePicker,
|
|
4089
|
+
vs as DateRangePicker,
|
|
4090
|
+
bs as DestructiveModal,
|
|
4091
|
+
pa as DevTuningPanel,
|
|
4092
|
+
ys as DirectionCard,
|
|
4093
|
+
ws as Dismissible,
|
|
4094
|
+
_s as DistributionCard,
|
|
4095
|
+
Ns as DonutChart,
|
|
4096
|
+
mr as DragGhost,
|
|
4097
|
+
lr as DropAnchorCell,
|
|
4098
|
+
Ds as Dropdown,
|
|
4099
|
+
ba as DualPaceBars,
|
|
4100
|
+
ks as ENTITY_FILTER_KEYS,
|
|
4101
|
+
Cs as ENTITY_PROFILE_ROUTES,
|
|
4102
|
+
xs as ENTITY_TYPE_PLURAL,
|
|
4103
|
+
$t as EdgeHoverHandle,
|
|
4104
|
+
ur as EmptyCellPackAffordance,
|
|
4105
|
+
Ss as EntityPicker,
|
|
4065
4106
|
X as EntityRow,
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4107
|
+
Ms as EntitySearchPanel,
|
|
4108
|
+
Ra as ExceptionListCard,
|
|
4109
|
+
Ia as ExceptionListTilePreview,
|
|
4110
|
+
Ts as Expandable,
|
|
4111
|
+
Rs as ExpandableChip,
|
|
4112
|
+
Is as FLIP_AND_STAGE_TIMINGS,
|
|
4113
|
+
Ps as FileUpload,
|
|
4114
|
+
Fs as FilterChip,
|
|
4115
|
+
Es as FilterInput,
|
|
4116
|
+
As as FlipAndStageProvider,
|
|
4117
|
+
Ls as Form,
|
|
4118
|
+
Os as FormDialog,
|
|
4119
|
+
$s as FormField,
|
|
4120
|
+
Bs as FusedShape,
|
|
4121
|
+
ya as GapReadout,
|
|
4122
|
+
Bt as GhostPreview,
|
|
4123
|
+
zs as GroupCheckbox,
|
|
4124
|
+
Ks as GroupRadio,
|
|
4125
|
+
xn as HARD_CLIP,
|
|
4126
|
+
Ws as HighlightCard,
|
|
4127
|
+
Gs as HybridDatePicker,
|
|
4128
|
+
Vs as ImportWizard,
|
|
4129
|
+
Fa as InlineNudge,
|
|
4130
|
+
Hs as Input,
|
|
4131
|
+
Us as InputAddon,
|
|
4132
|
+
js as InputGroup,
|
|
4133
|
+
xa as LeaderboardCard,
|
|
4134
|
+
Sa as LeaderboardTilePreview,
|
|
4135
|
+
Na as LensChipGroup,
|
|
4136
|
+
Zs as Link,
|
|
4137
|
+
qs as LoginForm,
|
|
4138
|
+
be as MagnitudeBar,
|
|
4139
|
+
Ys as MarketPresetRow,
|
|
4140
|
+
Qs as MaskPresets,
|
|
4141
|
+
Xs as MaskedInput,
|
|
4142
|
+
Js as Menu,
|
|
4143
|
+
ei as MenuDivider,
|
|
4144
|
+
ti as MenuGroup,
|
|
4145
|
+
ai as MenuItem,
|
|
4146
|
+
ni as MergePrompt,
|
|
4147
|
+
ri as MetricCard,
|
|
4148
|
+
si as MetricCardGrid,
|
|
4149
|
+
sa as MetricGroupContainer,
|
|
4150
|
+
ii as MiniCalendar,
|
|
4151
|
+
ka as MoreInLensRail,
|
|
4152
|
+
oi as MultiSelect,
|
|
4153
|
+
li as NumberInput,
|
|
4154
|
+
ci as ObjectArrow,
|
|
4155
|
+
di as OrderFilterBar,
|
|
4156
|
+
Vo as PERIOD_OPTIONS,
|
|
4157
|
+
hr as PaceCard,
|
|
4158
|
+
fr as PaceTilePreview,
|
|
4159
|
+
jt as PageChip,
|
|
4160
|
+
Je as PageDropdown,
|
|
4161
|
+
ui as PasswordInput,
|
|
4162
|
+
mi as PaymentForm,
|
|
4163
|
+
gi as PaymentMethodSelect,
|
|
4164
|
+
pi as PhoneInput,
|
|
4165
|
+
hi as PinToMetric,
|
|
4166
|
+
Ba as PresetSwatchRow,
|
|
4167
|
+
fi as ProfileCard,
|
|
4168
|
+
vi as ProgressCard,
|
|
4169
|
+
bi as QuickConfigPanel,
|
|
4170
|
+
ea as RECONFIG_BACKSIDE_LABELS,
|
|
4171
|
+
Ho as ROLLING_OPTIONS,
|
|
4172
|
+
yi as Radio,
|
|
4173
|
+
wi as RadioGroup,
|
|
4174
|
+
_i as RangeSlider,
|
|
4134
4175
|
fe as RankBadge,
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4176
|
+
rt as RankDelta,
|
|
4177
|
+
Ni as Rating,
|
|
4178
|
+
na as ReconfigBacksideButtons,
|
|
4179
|
+
Di as RegistrationForm,
|
|
4180
|
+
or as ResizeEnvelope,
|
|
4181
|
+
ki as Row1Controls,
|
|
4182
|
+
Ci as Row2FilterTray,
|
|
4183
|
+
xi as SearchInput,
|
|
4184
|
+
dr as SectionDivider,
|
|
4185
|
+
br as SectionDots,
|
|
4186
|
+
Si as SegmentCard,
|
|
4187
|
+
Mi as SegmentedControl,
|
|
4188
|
+
Ti as Select,
|
|
4189
|
+
Ri as Selectable,
|
|
4190
|
+
ve as SeverityDot,
|
|
4191
|
+
Ii as SimpleMetricCard,
|
|
4192
|
+
Pi as SimpleSelector,
|
|
4193
|
+
Fi as Skeleton,
|
|
4194
|
+
Ei as SkeletonCard,
|
|
4195
|
+
Ai as SkeletonChart,
|
|
4196
|
+
Li as SkeletonTable,
|
|
4197
|
+
Oi as Slider,
|
|
4198
|
+
gr as SnapOutline,
|
|
4199
|
+
$i as Sortable,
|
|
4200
|
+
ja as SortableZones,
|
|
4201
|
+
Bi as SparklineBg,
|
|
4202
|
+
cr as SpilloverArc,
|
|
4203
|
+
zi as SplitButton,
|
|
4204
|
+
Ki as StackedGroupCard,
|
|
4205
|
+
Pa as StackedGroupTilePreview,
|
|
4206
|
+
Da as StarterRail,
|
|
4207
|
+
Wi as StatusModeCard,
|
|
4208
|
+
Ot as StatusSlotChipMenu,
|
|
4209
|
+
Gi as Stepper,
|
|
4210
|
+
Qe as SwingReveal,
|
|
4211
|
+
Uo as TODAY_PRESET,
|
|
4170
4212
|
re as TUNING_DEFAULTS,
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4213
|
+
nt as TUNING_STORAGE_KEY,
|
|
4214
|
+
Vi as TabGroup,
|
|
4215
|
+
Hi as TabbedDataView,
|
|
4216
|
+
Ui as TagInput,
|
|
4217
|
+
Rt as TargetInput,
|
|
4218
|
+
ji as Textarea,
|
|
4219
|
+
La as ThresholdRamp,
|
|
4220
|
+
Zi as TimeFrame,
|
|
4221
|
+
qi as TimePicker,
|
|
4222
|
+
Yi as Toggle,
|
|
4223
|
+
Qi as Tooltip,
|
|
4224
|
+
Xi as Transition,
|
|
4225
|
+
Ji as TransitionGroup,
|
|
4226
|
+
eo as TrendCard,
|
|
4227
|
+
to as TrendIndicator,
|
|
4228
|
+
Bo as UIContext,
|
|
4229
|
+
Le as UIContextProvider,
|
|
4230
|
+
ao as UnifiedBreakdownTable,
|
|
4231
|
+
no as UnifiedContextMenu,
|
|
4232
|
+
zt as VelocityBuffer,
|
|
4233
|
+
ro as addressGroupMetadata,
|
|
4234
|
+
so as addressSchema,
|
|
4235
|
+
mn as allChips,
|
|
4236
|
+
Pn as allStateFixtures,
|
|
4237
|
+
In as allVariantFixtures,
|
|
4238
|
+
fn as blockSamples,
|
|
4239
|
+
io as buildDefaultOverflow,
|
|
4240
|
+
_n as cardSamples,
|
|
4241
|
+
Nn as cascadePhysics,
|
|
4242
|
+
yn as chartSamples,
|
|
4243
|
+
bn as circleSamples,
|
|
4244
|
+
Sn as colorTokens,
|
|
4245
|
+
er as compactLayout,
|
|
4246
|
+
Gn as compactState,
|
|
4247
|
+
Rn as computeGutterAnchorX,
|
|
4248
|
+
oo as contactFormMetadata,
|
|
4249
|
+
lo as contactSchema,
|
|
4250
|
+
Vn as contextMenuFixtures,
|
|
4251
|
+
co as creditCardFormMetadata,
|
|
4252
|
+
uo as creditCardSchema,
|
|
4253
|
+
Ft as dateChip,
|
|
4254
|
+
at as defaultControlBarState,
|
|
4255
|
+
mo as destructiveModalMetadata,
|
|
4256
|
+
go as durations,
|
|
4257
|
+
po as easings,
|
|
4258
|
+
Gt as emptyFixture,
|
|
4259
|
+
It as entityChip,
|
|
4260
|
+
Qt as entityNameActions,
|
|
4261
|
+
pn as entityTabGroup,
|
|
4262
|
+
Wt as errorFixture,
|
|
4263
|
+
ho as evaluateTintCondition,
|
|
4264
|
+
Wn as filteredState,
|
|
4265
|
+
jo as findPreset,
|
|
4266
|
+
Zo as formatDateRange,
|
|
4267
|
+
qo as formatMarketDates,
|
|
4268
|
+
Yo as formatTrend,
|
|
4269
|
+
Qo as formatValue,
|
|
4270
|
+
ar as fullLayout,
|
|
4271
|
+
Xo as generateMarketId,
|
|
4272
|
+
fo as generateTabId,
|
|
4273
|
+
Jo as getAllPresets,
|
|
4274
|
+
el as getDateRangeForPreset,
|
|
4275
|
+
vo as getMenuActions,
|
|
4276
|
+
Mn as getMotionMode,
|
|
4277
|
+
tl as getPresetLabel,
|
|
4278
|
+
bo as getTransitionStyle,
|
|
4279
|
+
Jn as gridCards,
|
|
4280
|
+
yo as interpolate,
|
|
4281
|
+
al as isInRange,
|
|
4282
|
+
nl as isMarketActive,
|
|
4283
|
+
rl as isSameDay,
|
|
4284
|
+
Kn as itemColumns,
|
|
4285
|
+
Bn as itemRows,
|
|
4286
|
+
Kt as loadingFixture,
|
|
4287
|
+
wo as loginFormMetadata,
|
|
4288
|
+
_o as loginSchema,
|
|
4289
|
+
Et as manufacturerChip,
|
|
4290
|
+
ir as manyTabs,
|
|
4291
|
+
No as mergeHandlers,
|
|
4292
|
+
Do as mergeRefs,
|
|
4293
|
+
gn as metricTabGroup,
|
|
4294
|
+
rr as mixedTabs,
|
|
4295
|
+
sl as normalizePresetId,
|
|
4296
|
+
Jt as numericActions,
|
|
4297
|
+
zn as orderColumns,
|
|
4298
|
+
Xt as orderIdActions,
|
|
4299
|
+
$n as orderRows,
|
|
4300
|
+
nr as ordersTabs,
|
|
4301
|
+
ko as parseNumericValue,
|
|
4302
|
+
Co as paymentFormMetadata,
|
|
4303
|
+
xo as paymentSchema,
|
|
4304
|
+
So as presets,
|
|
4305
|
+
kn as provisional,
|
|
4306
|
+
Cn as reducedMotion,
|
|
4307
|
+
Mo as registrationFormMetadata,
|
|
4308
|
+
To as registrationSchema,
|
|
4309
|
+
Dn as rejectionFeedback,
|
|
4310
|
+
Un as sampleCompareRanges,
|
|
4311
|
+
qn as sampleCustomMarkets,
|
|
4312
|
+
Hn as sampleDateRange,
|
|
4313
|
+
Yn as sampleMarketPresetData,
|
|
4314
|
+
Zn as sampleMarkets,
|
|
4315
|
+
Xn as samplePeriodPresets,
|
|
4316
|
+
jn as samplePreferences,
|
|
4317
|
+
Qn as samplePresets,
|
|
4318
|
+
sr as singleTab,
|
|
4319
|
+
Fn as sparklineFixture,
|
|
4320
|
+
En as sparklineUpFixture,
|
|
4321
|
+
Ut as staleDonutFixture,
|
|
4322
|
+
Vt as staleFixture,
|
|
4323
|
+
Ht as staleSparklineFixture,
|
|
4324
|
+
An as standardFixture,
|
|
4325
|
+
On as standardFlatFixture,
|
|
4326
|
+
tr as standardLayout,
|
|
4327
|
+
Ln as standardNegativeFixture,
|
|
4328
|
+
Pt as statusChip,
|
|
4287
4329
|
me as swingReveal,
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4330
|
+
wn as tableSamples,
|
|
4331
|
+
vn as textSamples,
|
|
4332
|
+
hn as timeFrameTabGroup,
|
|
4333
|
+
il as toUppercasePresetId,
|
|
4334
|
+
un as useArrowNavigation,
|
|
4335
|
+
Ro as useCheckboxGroupContext,
|
|
4336
|
+
Tn as useEdgeHoverResize,
|
|
4337
|
+
Io as useFilterLayout,
|
|
4338
|
+
Po as useFlipAndStage,
|
|
4339
|
+
Fo as useFlipAndStageContext,
|
|
4340
|
+
Eo as useFlipAndStageContextOptional,
|
|
4341
|
+
dn as useFocusReturn,
|
|
4342
|
+
Ao as useFocusTrap,
|
|
4343
|
+
Lo as useFormContext,
|
|
4344
|
+
Oo as useRadioGroupContext,
|
|
4345
|
+
la as useResizeTuning,
|
|
4346
|
+
Wa as useSortableZones,
|
|
4347
|
+
zo as useUIContext
|
|
4306
4348
|
};
|