@mt-gloss/ui 0.1.40 → 0.1.42
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 +1215 -1124
- package/lib/primitives/dashboard/CascadePreview/CascadePreview.d.ts +6 -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/gridChannels.d.ts +66 -0
- package/lib/primitives/dashboard/gridInteractivePalette.d.ts +62 -0
- package/lib/primitives/dashboard/index.d.ts +3 -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
|
|
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 Tr, U as Mr, Q as Rr, T as Ir, a4 as Pr, b7 as Fr, aA as Er, ai as Ar, _ as Lr, ao as Or, L as $r, a9 as Br, bn as Kr, P as zr, B as Wr, a as Gr, z as Hr, J as Vr, bi as jr, H as Ur, K as Zr, D as qr, A as Yr, F as Qr, E as Xr, bx as Jr, b as es, c as ts, N as as, p as ns, ae as rs, aO as ss, z as is, J as os, H as ls, K as cs, D as ds, A as us, F as ms, E as gs, b0 as ps, b3 as hs, b2 as fs, b1 as vs, b4 as bs, aD as ys, a6 as ws, a5 as _s, ar as Ns, l as Ds, n as ks, aG as Cs, ac as xs, b9 as Ss, aa as Ts, bo as Ms, Z as Rs, bH as Is, bG as Ps, bI as Fs, aq as Es, aR as As, bb as Ls, bM as Os, bv as $s, o as Bs, an as Ks, bB as zs, bs as Ws, a1 as Gs, as as Hs, a3 as Vs, bA as js, G as Us, e as Zs, ab as qs, bJ as Ys, aU as Qs, s as Xs, w as Js, I as ei, h as ti, ax as ai, bN as ni, M as ri, x as si, V as ii, Y as oi, W as li, X as ci, at as di, bh as ui, bP as mi, bL as gi, ap as pi, v as hi, bp as fi, aT as vi, ak as bi, aL as yi, ah as wi, am as _i, av as Ni, aS as Di, ad as ki, au as Ci, d as xi, R as Si, k as Ti, q as Mi, aI as Ri, by as Ii, bz as Pi, aj as Fi, af as Ei, i as Ai, y as Li, b8 as Oi, ag as $i, bO as Bi, bd as Ki, bg as zi, be as Wi, bf as Gi, j as Hi, ba as Vi, bm as ji, S as Ui, bk as Zi, bl as qi, aw as Yi, bc as Qi, bQ as Xi, al as Ji, t as eo, bK as to, m as ao, g as no, r as ro, $ as so, a0 as io, a8 as oo, bj as lo, bw as co, bD as uo, aB as mo, aC as go, a7 as po, aP as ho, aQ as fo, aE as vo, aF as bo, aH as yo, aW as wo, aX as _o, bq as No, bF as Do, bE as ko, aZ as Co, a_ as xo, ay as So, az as To, b6 as Mo, b5 as Ro, a$ as Io, aM as Po, aN as Fo, aY as Eo, aJ as Ao, aK as Lo, u as Oo, bC as $o, br as Bo, bt as Ko, bu as zo, aV as Wo, a2 as Go, f as Ho } 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 V, { useRef as M, 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 jo, u as Uo } from "./UIContext-CDdyubSF.js";
|
|
9
|
+
import { createPortal as Dt } from "react-dom";
|
|
10
|
+
import { DEFAULT_MARKET_PRESETS as qo, DEFAULT_PINNED as Yo, PERIOD_OPTIONS as Qo, ROLLING_OPTIONS as Xo, TODAY_PRESET as Jo, findPreset as el, formatDateRange as tl, formatMarketDates as al, formatTrend as nl, formatValue as rl, generateMarketId as sl, getAllPresets as il, getDateRangeForPreset as ol, getPresetLabel as ll, isInRange as cl, isMarketActive as dl, isSameDay as ul, normalizePresetId as ml, toUppercasePresetId as gl } 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 Tt from "@mui/icons-material/Palette";
|
|
16
|
+
import Mt from "@mui/icons-material/PushPin";
|
|
17
|
+
function dn(e = {}) {
|
|
18
|
+
const { enabled: t = !0, returnTo: n } = e, a = M(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]), T = 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 ?
|
|
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 ? T() : 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 (
|
|
85
|
-
c.preventDefault(),
|
|
84
|
+
if (v === "End") {
|
|
85
|
+
c.preventDefault(), T();
|
|
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
|
+
T,
|
|
106
106
|
P,
|
|
107
|
-
|
|
107
|
+
C,
|
|
108
108
|
l,
|
|
109
109
|
u,
|
|
110
110
|
d
|
|
@@ -115,29 +115,29 @@ function on(e) {
|
|
|
115
115
|
setFocusedIndex: m,
|
|
116
116
|
handleKeyDown: I,
|
|
117
117
|
focusFirst: h,
|
|
118
|
-
focusLast:
|
|
118
|
+
focusLast: T,
|
|
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 = M(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 Tn() {
|
|
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 Kt {
|
|
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 Mn({
|
|
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,212 +592,212 @@ 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, T] = $(e), P = M(null), C = M(null), R = M(null), I = M(null), c = M(i), v = M(s), _ = M(f), S = M(0), b = M("idle");
|
|
596
|
+
L(() => {
|
|
597
|
+
b.current = D;
|
|
598
|
+
}, [D]);
|
|
599
|
+
const x = wt(0), F = M(null), j = 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
|
-
),
|
|
615
|
-
|
|
614
|
+
), U = M(new Kt()), G = M(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
|
-
(
|
|
638
|
-
const
|
|
637
|
+
(k, E, A) => {
|
|
638
|
+
const K = c.current, ee = K * B.snapInFraction, Y = K * B.snapOutFraction, z = E - A, H = Math.max(
|
|
639
639
|
A,
|
|
640
640
|
_.current ?? f
|
|
641
641
|
);
|
|
642
|
-
let W =
|
|
643
|
-
for (; A + W <
|
|
644
|
-
const ae = W *
|
|
645
|
-
if (
|
|
642
|
+
let W = z;
|
|
643
|
+
for (; A + W < H; ) {
|
|
644
|
+
const ae = W * K + (W < 0 ? Y : ee);
|
|
645
|
+
if (k >= ae) W += 1;
|
|
646
646
|
else break;
|
|
647
647
|
}
|
|
648
|
-
if (W ===
|
|
648
|
+
if (W === z)
|
|
649
649
|
for (; A + W > 1; ) {
|
|
650
|
-
const ae = W *
|
|
651
|
-
if (
|
|
650
|
+
const ae = W * K - (W > 0 ? Y : ee);
|
|
651
|
+
if (k <= ae) W -= 1;
|
|
652
652
|
else break;
|
|
653
653
|
}
|
|
654
|
-
return Math.min(
|
|
654
|
+
return Math.min(H, Math.max(1, A + W));
|
|
655
655
|
},
|
|
656
656
|
[B.snapInFraction, B.snapOutFraction, f]
|
|
657
|
-
),
|
|
658
|
-
(
|
|
659
|
-
if (
|
|
660
|
-
|
|
661
|
-
const E = e *
|
|
662
|
-
S.current = E,
|
|
657
|
+
), ct = w(
|
|
658
|
+
(k) => {
|
|
659
|
+
if (b.current !== "handle-visible") return;
|
|
660
|
+
j(), I.current = k.clientX, c.current = i, v.current = s, _.current = f;
|
|
661
|
+
const E = e * i + (e - 1) * s;
|
|
662
|
+
S.current = E, U.current.clear(), U.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, j]
|
|
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), K = k !== e;
|
|
671
671
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
672
|
-
x.jump(A),
|
|
672
|
+
x.jump(A), K && E ? n({ direction: E, targetColSpan: k, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
|
-
const Y =
|
|
676
|
-
|
|
675
|
+
const Y = U.current.getWeightedVelocity() * B.velocityMultiplier;
|
|
676
|
+
b.current = "settling", y("settling"), j(), 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,
|
|
683
|
+
F.current = null, K && E ? n({ direction: E, targetColSpan: k, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
},
|
|
687
|
-
[Be, e, t, n, a, x, B,
|
|
688
|
-
),
|
|
689
|
-
(
|
|
690
|
-
if (
|
|
691
|
-
const E =
|
|
692
|
-
|
|
693
|
-
const
|
|
694
|
-
ie(
|
|
687
|
+
[Be, e, t, n, a, x, B, j]
|
|
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, z = Math.max(Y, Math.min(ee, E));
|
|
692
|
+
U.current.push({ x: k.clientX, t: performance.now() });
|
|
693
|
+
const H = oe(z, G.current, e), W = H > e ? "grow" : H < e ? "shrink" : null;
|
|
694
|
+
ie(H, 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
|
-
const A =
|
|
705
|
-
|
|
704
|
+
const A = U.current.getWeightedVelocity();
|
|
705
|
+
b.current = "settling", y("settling"), j(), 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
|
-
|
|
718
|
-
}, [Z, x, a, B,
|
|
719
|
-
|
|
720
|
-
if (
|
|
721
|
-
const
|
|
717
|
+
b.current === "handle-visible" && (a?.(), b.current = "cancelled", y("cancelled"));
|
|
718
|
+
}, [Z, x, a, B, j]);
|
|
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 (
|
|
727
|
-
|
|
724
|
+
return window.addEventListener("keydown", k), () => window.removeEventListener("keydown", k);
|
|
725
|
+
}, [D, le]), L(() => {
|
|
726
|
+
if (D !== "dragging") {
|
|
727
|
+
T(e);
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
const
|
|
731
|
-
const
|
|
732
|
-
x.set(
|
|
733
|
-
const _e = c.current,
|
|
734
|
-
|
|
730
|
+
const k = (z) => {
|
|
731
|
+
const H = z.clientX - (I.current ?? z.clientX), W = S.current, ce = q(1), ae = q(f), we = W + H, ze = Math.max(ce, Math.min(ae, we));
|
|
732
|
+
x.set(ze);
|
|
733
|
+
const _e = c.current, Ce = (f - e) * _e, xe = (1 - e) * _e, de = Math.max(xe, Math.min(Ce, H));
|
|
734
|
+
U.current.push({ x: z.clientX, t: performance.now() });
|
|
735
735
|
const ue = oe(de, G.current, e);
|
|
736
|
-
ue !== G.current && (G.current = ue,
|
|
737
|
-
}, E = (
|
|
738
|
-
if (
|
|
739
|
-
if (
|
|
740
|
-
const W =
|
|
741
|
-
|
|
736
|
+
ue !== G.current && (G.current = ue, T(ue));
|
|
737
|
+
}, E = (z, H) => {
|
|
738
|
+
if (b.current === "dragging")
|
|
739
|
+
if (z === "pointerup") {
|
|
740
|
+
const W = U.current.tail(), ce = H?.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
|
+
H && U.current.push({ x: H.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);
|
|
744
744
|
} else
|
|
745
745
|
le();
|
|
746
|
-
}, A = (
|
|
746
|
+
}, A = (z) => E("pointerup", z), K = (z) => E("pointercancel", z), 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", K), window.addEventListener("blur", ee), document.addEventListener("visibilitychange", Y), () => {
|
|
750
|
+
window.removeEventListener("pointermove", k), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", K), 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
|
|
766
|
-
S.current =
|
|
764
|
+
c.current = i, v.current = s, _.current = f, U.current.clear();
|
|
765
|
+
const K = e * i + (e - 1) * s;
|
|
766
|
+
S.current = K, x.jump(K), ie(A, k);
|
|
767
767
|
},
|
|
768
|
-
[e,
|
|
769
|
-
),
|
|
770
|
-
J(),
|
|
771
|
-
|
|
768
|
+
[e, i, s, f, x, ie]
|
|
769
|
+
), Ke = w(() => {
|
|
770
|
+
J(), R.current = setTimeout(() => {
|
|
771
|
+
b.current === "handle-visible" && (b.current = "idle", y("idle"));
|
|
772
772
|
}, 5e3);
|
|
773
|
-
}, [J]),
|
|
774
|
-
|
|
775
|
-
}, [Z,
|
|
776
|
-
J(),
|
|
773
|
+
}, [J]), mt = w(() => {
|
|
774
|
+
b.current === "idle" && (Z(), b.current = "handle-visible", y("handle-visible"), Ke());
|
|
775
|
+
}, [Z, Ke]), 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
|
+
], zt = {
|
|
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
|
+
}, Ht = {
|
|
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
|
+
}, Vt = {
|
|
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
|
+
}, jt = {
|
|
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,
|
|
1013
|
+
}, Pn = [
|
|
1016
1014
|
zt,
|
|
1017
|
-
Kt,
|
|
1018
1015
|
Wt,
|
|
1019
|
-
Gt
|
|
1020
|
-
|
|
1016
|
+
Gt,
|
|
1017
|
+
Ht,
|
|
1018
|
+
Vt,
|
|
1019
|
+
jt
|
|
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 Ut = 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 =
|
|
1212
|
-
g((
|
|
1213
|
-
}, []),
|
|
1211
|
+
const p = M(null), [f, g] = $(!1), m = w(() => {
|
|
1212
|
+
g((T) => !T);
|
|
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
|
+
Ut.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 =
|
|
1543
|
+
const he = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Kn = [
|
|
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
|
+
], zn = [
|
|
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
|
-
},
|
|
1673
|
-
},
|
|
1674
|
-
},
|
|
1672
|
+
}, Yt = (e) => {
|
|
1673
|
+
}, He = (e, t) => {
|
|
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
|
-
onEntitySelect:
|
|
1686
|
-
onItemSelect:
|
|
1685
|
+
onEntitySelect: He,
|
|
1686
|
+
onItemSelect: He,
|
|
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
|
+
], Hn = {
|
|
1817
|
+
entityName: Qt,
|
|
1818
|
+
orderId: Xt,
|
|
1819
|
+
numeric: Jt
|
|
1820
|
+
}, Vn = [
|
|
1821
1821
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1822
1822
|
/* @__PURE__ */ new Date()
|
|
1823
|
-
],
|
|
1823
|
+
], jn = {
|
|
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
|
+
}, Un = {
|
|
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: Tt,
|
|
1923
|
+
pinned: Mt
|
|
1924
1924
|
};
|
|
1925
|
-
function
|
|
1925
|
+
function Ve(...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 = M(null), o = M([]), 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
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1948
|
+
const D = u.length - 1, y = (h) => {
|
|
1949
|
+
const T = o.current[h];
|
|
1950
|
+
T && T.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:
|
|
1984
|
+
className: Ve("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) => {
|
|
@@ -1998,7 +1998,7 @@ const ea = ({
|
|
|
1998
1998
|
},
|
|
1999
1999
|
type: "button",
|
|
2000
2000
|
"data-dimension": g,
|
|
2001
|
-
className:
|
|
2001
|
+
className: Ve(
|
|
2002
2002
|
"gloss-reconfig-backside-buttons__button",
|
|
2003
2003
|
y && "gloss-reconfig-backside-buttons__button--active"
|
|
2004
2004
|
),
|
|
@@ -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,12 +2022,12 @@ 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,
|
|
2029
2029
|
colSpan: 1,
|
|
2030
|
-
content:
|
|
2030
|
+
content: V.createElement("div", {
|
|
2031
2031
|
style: {
|
|
2032
2032
|
width: "100%",
|
|
2033
2033
|
height: "100%",
|
|
@@ -2043,38 +2043,38 @@ function Q(e, t) {
|
|
|
2043
2043
|
}, t)
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function je(e, t) {
|
|
2047
2047
|
return {
|
|
2048
2048
|
...Q(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
|
+
je("revenue-trend", "Revenue Trend (2x)"),
|
|
2056
2056
|
Q("avg-order", "Avg Order Value"),
|
|
2057
2057
|
Q("new-customers", "New Customers"),
|
|
2058
2058
|
Q("top-salesperson", "Top Salesperson"),
|
|
2059
|
-
|
|
2059
|
+
je("order-trend", "Order Trend (2x)"),
|
|
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,
|
|
@@ -2082,15 +2082,15 @@ const qn = [
|
|
|
2082
2082
|
currentPage: 0,
|
|
2083
2083
|
totalPages: 3
|
|
2084
2084
|
};
|
|
2085
|
-
function
|
|
2086
|
-
return
|
|
2085
|
+
function Te(e) {
|
|
2086
|
+
return V.createElement("span", { style: { fontSize: 14 } }, e);
|
|
2087
2087
|
}
|
|
2088
|
-
const
|
|
2088
|
+
const nr = [
|
|
2089
2089
|
{
|
|
2090
2090
|
id: "all-orders",
|
|
2091
2091
|
type: "orders",
|
|
2092
2092
|
name: "All Orders",
|
|
2093
|
-
icon:
|
|
2093
|
+
icon: Te("📋"),
|
|
2094
2094
|
closable: !1,
|
|
2095
2095
|
autoCreated: !0
|
|
2096
2096
|
},
|
|
@@ -2098,17 +2098,17 @@ const Jn = [
|
|
|
2098
2098
|
id: "open-orders",
|
|
2099
2099
|
type: "orders",
|
|
2100
2100
|
name: "Open Orders",
|
|
2101
|
-
icon:
|
|
2101
|
+
icon: Te("📦"),
|
|
2102
2102
|
closable: !0
|
|
2103
2103
|
},
|
|
2104
2104
|
{
|
|
2105
2105
|
id: "shipped-orders",
|
|
2106
2106
|
type: "orders",
|
|
2107
2107
|
name: "Shipped Orders",
|
|
2108
|
-
icon:
|
|
2108
|
+
icon: Te("🚚"),
|
|
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 = M(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
|
|
@@ -2716,34 +2716,34 @@ function dr({
|
|
|
2716
2716
|
"data-testid": "gloss-cascade-preview-item",
|
|
2717
2717
|
"aria-hidden": "true",
|
|
2718
2718
|
className: ["gloss-cascade-preview-item", n].filter(Boolean).join(" "),
|
|
2719
|
-
style: { position: "absolute", x: a.x, y: a.y },
|
|
2719
|
+
style: { position: "absolute", x: a.x, y: a.y, width: a.width, height: a.height },
|
|
2720
2720
|
children: t(a)
|
|
2721
2721
|
},
|
|
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 = M(null), i = M(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 Ta = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", Ma = (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) => Ma(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": Ta(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,8 +3267,91 @@ const Ma = () => /* @__PURE__ */ D(
|
|
|
3267
3267
|
]
|
|
3268
3268
|
}
|
|
3269
3269
|
);
|
|
3270
|
-
|
|
3271
|
-
const
|
|
3270
|
+
Ia.displayName = "ExceptionListTilePreview";
|
|
3271
|
+
const Ue = ["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 = Ue,
|
|
3280
|
+
sampleValues: n = Ze
|
|
3281
|
+
}) => {
|
|
3282
|
+
const a = Array.from({ length: e }, (i, s) => ({
|
|
3283
|
+
label: t[s] ?? Ue[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";
|
|
3312
|
+
const vr = {
|
|
3313
|
+
/** GEV-01 — Eligibility tint. Contiguous-from-source paint; blocked by first occupied cell (Principle 4). */
|
|
3314
|
+
eligibilityTint: { applicableStates: ["arming", "active"] },
|
|
3315
|
+
/** GEV-01 — Commit tint. Fill+stroke emphasis on the commit-target cell footprint (G-02). */
|
|
3316
|
+
commitTint: { applicableStates: ["active"] },
|
|
3317
|
+
/** GEV-01 — Rejection tint. Static fill on cells beyond reach. Stays while rejection condition holds. */
|
|
3318
|
+
rejectionTint: { applicableStates: ["active"] },
|
|
3319
|
+
/** GEV-01 — Tracking outline. Solid 2.5px outline at commit footprint (G-02). Dashes + retreats on rejection — NEVER red (D-01 / Principle 1). */
|
|
3320
|
+
trackingOutline: { applicableStates: ["active", "settling"] },
|
|
3321
|
+
/** GEV-01 — Commit ghost. Drag-only floating clone (D-01 — clean card with shadow + scale). Resize: N/A (subsumed by trackingOutline). */
|
|
3322
|
+
commitGhost: { applicableStates: ["active", "settling"] },
|
|
3323
|
+
/** GEV-01 — Displaced preview. Neighbor-shift preview during cascade-insert. */
|
|
3324
|
+
displacedPreview: { applicableStates: ["active"] },
|
|
3325
|
+
/** GEV-01 — Chrome. Drag/resize affordances — hidden when active per R-05 hide-on-active rule. */
|
|
3326
|
+
chrome: { applicableStates: ["idle", "arming"] },
|
|
3327
|
+
/** GEV-01 — Hide-on-active rule. The rule itself: while a gesture is active, chrome+affordances suppress. */
|
|
3328
|
+
hideOnActive: { applicableStates: ["active"] },
|
|
3329
|
+
/** GEV-01 — Refuse pulse. Discrete moment of crossing into rejection. Fires ONCE per transition (Principle 2). No strobing. */
|
|
3330
|
+
refusePulse: { applicableStates: ["active"] }
|
|
3331
|
+
}, br = {
|
|
3332
|
+
baseCellTint: "#F1F4F8",
|
|
3333
|
+
// Grey · Neutral −2
|
|
3334
|
+
eligibilityFill: "#6F87D2",
|
|
3335
|
+
// Action 0 fill
|
|
3336
|
+
commitFill: "#4664C0",
|
|
3337
|
+
// Action +2 fill
|
|
3338
|
+
commitStroke: "#2541A1",
|
|
3339
|
+
// Action +3 stroke
|
|
3340
|
+
rejectionFill: "#F0BAC1",
|
|
3341
|
+
// Rejection −1 fill
|
|
3342
|
+
rejectionStroke: "#BB2A39",
|
|
3343
|
+
// Rejection +2 stroke (sparse-dash)
|
|
3344
|
+
trackingOutline: "#2541A1"
|
|
3345
|
+
// Action +3 — same hex as commitStroke per D-01
|
|
3346
|
+
}, yr = {
|
|
3347
|
+
baseCellTint: "var(--gloss-g02-base-cell-tint)",
|
|
3348
|
+
eligibilityFill: "var(--gloss-g02-eligibility-fill)",
|
|
3349
|
+
commitFill: "var(--gloss-g02-commit-fill)",
|
|
3350
|
+
commitStroke: "var(--gloss-g02-commit-stroke)",
|
|
3351
|
+
rejectionFill: "var(--gloss-g02-rejection-fill)",
|
|
3352
|
+
rejectionStroke: "var(--gloss-g02-rejection-stroke)",
|
|
3353
|
+
trackingOutline: "var(--gloss-g02-tracking-outline)"
|
|
3354
|
+
}, wr = "dashed", _r = "solid", Nr = "sparse-dash", Dr = "2px no-fill", ne = {
|
|
3272
3355
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
3273
3356
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
3274
3357
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -3276,33 +3359,33 @@ const ne = {
|
|
|
3276
3359
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
3277
3360
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
3278
3361
|
};
|
|
3279
|
-
function
|
|
3362
|
+
function Fa({
|
|
3280
3363
|
message: e,
|
|
3281
3364
|
primaryAction: t,
|
|
3282
3365
|
onDismiss: n,
|
|
3283
3366
|
anchorEl: a,
|
|
3284
|
-
anchorSelector:
|
|
3367
|
+
anchorSelector: i
|
|
3285
3368
|
}) {
|
|
3286
|
-
const [
|
|
3369
|
+
const [s, o] = V.useState(null), l = V.useMemo(
|
|
3287
3370
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
3288
3371
|
[]
|
|
3289
3372
|
);
|
|
3290
|
-
|
|
3291
|
-
!a && !
|
|
3373
|
+
V.useEffect(() => {
|
|
3374
|
+
!a && !i && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
3292
3375
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3293
3376
|
);
|
|
3294
|
-
}, [a,
|
|
3377
|
+
}, [a, i]), V.useLayoutEffect(() => {
|
|
3295
3378
|
let d = null;
|
|
3296
|
-
if (a ? d = a :
|
|
3379
|
+
if (a ? d = a : i && (d = document.querySelector(i)), d) {
|
|
3297
3380
|
const p = d.getBoundingClientRect();
|
|
3298
3381
|
o({
|
|
3299
3382
|
top: p.bottom + window.scrollY + 6,
|
|
3300
3383
|
left: p.left + window.scrollX
|
|
3301
3384
|
});
|
|
3302
3385
|
}
|
|
3303
|
-
}, [a,
|
|
3304
|
-
const u =
|
|
3305
|
-
return /* @__PURE__ */
|
|
3386
|
+
}, [a, i]);
|
|
3387
|
+
const u = s ? { top: s.top, left: s.left } : {};
|
|
3388
|
+
return /* @__PURE__ */ N(
|
|
3306
3389
|
"div",
|
|
3307
3390
|
{
|
|
3308
3391
|
className: ne["gloss-inline-nudge"],
|
|
@@ -3312,7 +3395,7 @@ function Ra({
|
|
|
3312
3395
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3313
3396
|
children: [
|
|
3314
3397
|
/* @__PURE__ */ r("span", { className: ne["gloss-inline-nudge__message"], children: e }),
|
|
3315
|
-
/* @__PURE__ */
|
|
3398
|
+
/* @__PURE__ */ N("div", { className: ne["gloss-inline-nudge__actions"], children: [
|
|
3316
3399
|
/* @__PURE__ */ r(
|
|
3317
3400
|
"button",
|
|
3318
3401
|
{
|
|
@@ -3337,142 +3420,142 @@ function Ra({
|
|
|
3337
3420
|
}
|
|
3338
3421
|
);
|
|
3339
3422
|
}
|
|
3340
|
-
|
|
3423
|
+
Fa.displayName = "InlineNudge";
|
|
3341
3424
|
function Ee(e) {
|
|
3342
3425
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3343
3426
|
}
|
|
3344
|
-
function
|
|
3427
|
+
function Ea(e, t, n) {
|
|
3345
3428
|
if (n <= t) {
|
|
3346
3429
|
const o = e[0], l = o ? Ee(o) : "#888";
|
|
3347
3430
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
3348
3431
|
}
|
|
3349
|
-
const a = n - t,
|
|
3432
|
+
const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
3350
3433
|
const l = (o.value - t) / a * 100;
|
|
3351
3434
|
return `${Ee(o)} ${l.toFixed(2)}%`;
|
|
3352
3435
|
});
|
|
3353
|
-
return
|
|
3436
|
+
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
3437
|
}
|
|
3355
|
-
function
|
|
3438
|
+
function Aa(e) {
|
|
3356
3439
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3357
3440
|
}
|
|
3358
|
-
function
|
|
3441
|
+
function La({
|
|
3359
3442
|
stops: e,
|
|
3360
3443
|
onChange: t,
|
|
3361
3444
|
min: n = 0,
|
|
3362
3445
|
max: a = 100,
|
|
3363
|
-
step:
|
|
3364
|
-
disabled:
|
|
3446
|
+
step: i,
|
|
3447
|
+
disabled: s = !1
|
|
3365
3448
|
}) {
|
|
3366
|
-
const o =
|
|
3367
|
-
`ThresholdRamp: step (${
|
|
3368
|
-
), 0.01) :
|
|
3449
|
+
const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3450
|
+
`ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
|
|
3451
|
+
), 0.01) : i, l = w(
|
|
3369
3452
|
(c) => Math.round(c / o) * o,
|
|
3370
3453
|
[o]
|
|
3371
|
-
), u =
|
|
3372
|
-
|
|
3373
|
-
|
|
3454
|
+
), u = M(null), [d, p] = $(null), [f, g] = $(e), m = Aa(e), D = M(m);
|
|
3455
|
+
L(() => {
|
|
3456
|
+
D.current !== m && (D.current = m, !d && g(e));
|
|
3374
3457
|
}, [m, e, d]);
|
|
3375
|
-
const y = ye(() =>
|
|
3458
|
+
const y = ye(() => Ea(f, n, a), [f, n, a]), h = w(
|
|
3376
3459
|
(c) => {
|
|
3377
3460
|
if (!u.current) return n;
|
|
3378
|
-
const
|
|
3379
|
-
return l(
|
|
3461
|
+
const v = u.current.getBoundingClientRect(), _ = v.width || 1, S = Math.max(0, Math.min(1, (c - v.left) / _)), b = n + S * (a - n);
|
|
3462
|
+
return l(b);
|
|
3380
3463
|
},
|
|
3381
3464
|
[n, a, l]
|
|
3382
3465
|
);
|
|
3383
|
-
|
|
3466
|
+
L(() => {
|
|
3384
3467
|
a <= n && process.env.NODE_ENV !== "production" && console.warn(
|
|
3385
3468
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
3386
3469
|
);
|
|
3387
3470
|
}, [n, a]);
|
|
3388
|
-
const
|
|
3389
|
-
(c,
|
|
3390
|
-
const _ = f.find((S) => S.id ===
|
|
3391
|
-
|
|
3471
|
+
const T = w(
|
|
3472
|
+
(c, v) => {
|
|
3473
|
+
const _ = f.find((S) => S.id === v);
|
|
3474
|
+
s || _?.disabled || (c.preventDefault(), p(v));
|
|
3392
3475
|
},
|
|
3393
|
-
[
|
|
3394
|
-
), P =
|
|
3476
|
+
[s, f]
|
|
3477
|
+
), P = M(f);
|
|
3395
3478
|
P.current = f;
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3479
|
+
const C = M(t);
|
|
3480
|
+
C.current = t, L(() => {
|
|
3398
3481
|
if (!d) return;
|
|
3399
3482
|
const c = (_) => {
|
|
3400
3483
|
const S = h(_.clientX);
|
|
3401
3484
|
g(
|
|
3402
|
-
(
|
|
3485
|
+
(b) => b.map((x) => x.id === d ? { ...x, value: S } : x)
|
|
3403
3486
|
);
|
|
3404
|
-
},
|
|
3405
|
-
const S = h(_.clientX),
|
|
3487
|
+
}, v = (_) => {
|
|
3488
|
+
const S = h(_.clientX), b = P.current.map(
|
|
3406
3489
|
(x) => x.id === d ? { ...x, value: S } : x
|
|
3407
3490
|
);
|
|
3408
|
-
g(
|
|
3491
|
+
g(b), p(null), C.current(b);
|
|
3409
3492
|
};
|
|
3410
|
-
return window.addEventListener("pointermove", c), window.addEventListener("pointerup",
|
|
3411
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup",
|
|
3493
|
+
return window.addEventListener("pointermove", c), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
3494
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
3412
3495
|
};
|
|
3413
3496
|
}, [d, h]);
|
|
3414
|
-
const
|
|
3415
|
-
(c,
|
|
3416
|
-
if (
|
|
3497
|
+
const R = a - n > 0 ? a - n : 1, I = w(
|
|
3498
|
+
(c, v) => {
|
|
3499
|
+
if (s || v.disabled) return;
|
|
3417
3500
|
const _ = a - n;
|
|
3418
3501
|
if (_ <= 0) return;
|
|
3419
3502
|
const S = c.shiftKey ? _ / 20 : _ / 100;
|
|
3420
|
-
let
|
|
3503
|
+
let b = v.value;
|
|
3421
3504
|
switch (c.key) {
|
|
3422
3505
|
case "ArrowRight":
|
|
3423
3506
|
case "ArrowUp":
|
|
3424
|
-
|
|
3507
|
+
b = v.value + S;
|
|
3425
3508
|
break;
|
|
3426
3509
|
case "ArrowLeft":
|
|
3427
3510
|
case "ArrowDown":
|
|
3428
|
-
|
|
3511
|
+
b = v.value - S;
|
|
3429
3512
|
break;
|
|
3430
3513
|
case "Home":
|
|
3431
|
-
|
|
3514
|
+
b = n;
|
|
3432
3515
|
break;
|
|
3433
3516
|
case "End":
|
|
3434
|
-
|
|
3517
|
+
b = a;
|
|
3435
3518
|
break;
|
|
3436
3519
|
default:
|
|
3437
3520
|
return;
|
|
3438
3521
|
}
|
|
3439
3522
|
c.preventDefault();
|
|
3440
|
-
const x = Math.max(n, Math.min(a,
|
|
3441
|
-
if (F ===
|
|
3442
|
-
const
|
|
3443
|
-
(q) => q.id ===
|
|
3523
|
+
const x = Math.max(n, Math.min(a, b)), F = l(x);
|
|
3524
|
+
if (F === v.value) return;
|
|
3525
|
+
const j = f.map(
|
|
3526
|
+
(q) => q.id === v.id ? { ...q, value: F } : q
|
|
3444
3527
|
);
|
|
3445
|
-
g(
|
|
3528
|
+
g(j), t(j);
|
|
3446
3529
|
},
|
|
3447
|
-
[
|
|
3530
|
+
[s, n, a, f, t, l]
|
|
3448
3531
|
);
|
|
3449
|
-
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled":
|
|
3532
|
+
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
|
|
3450
3533
|
"div",
|
|
3451
3534
|
{
|
|
3452
3535
|
ref: u,
|
|
3453
3536
|
className: "gloss-threshold-ramp__track",
|
|
3454
3537
|
style: { background: y },
|
|
3455
3538
|
children: f.map((c) => {
|
|
3456
|
-
const
|
|
3539
|
+
const v = (c.value - n) / R * 100;
|
|
3457
3540
|
return /* @__PURE__ */ r(
|
|
3458
3541
|
"span",
|
|
3459
3542
|
{
|
|
3460
3543
|
className: "gloss-threshold-ramp__stop",
|
|
3461
3544
|
style: {
|
|
3462
|
-
left: `${
|
|
3545
|
+
left: `${v}%`,
|
|
3463
3546
|
color: Ee(c)
|
|
3464
3547
|
},
|
|
3465
3548
|
"data-disabled": c.disabled || void 0,
|
|
3466
3549
|
"data-dragging": d === c.id || void 0,
|
|
3467
|
-
onPointerDown: (_) =>
|
|
3550
|
+
onPointerDown: (_) => T(_, c.id),
|
|
3468
3551
|
onKeyDown: (_) => I(_, c),
|
|
3469
3552
|
"aria-label": c.label ?? `Stop at ${c.value}`,
|
|
3470
3553
|
role: "slider",
|
|
3471
3554
|
"aria-valuenow": c.value,
|
|
3472
3555
|
"aria-valuemin": n,
|
|
3473
3556
|
"aria-valuemax": a,
|
|
3474
|
-
"aria-disabled": c.disabled ||
|
|
3475
|
-
tabIndex: c.disabled ||
|
|
3557
|
+
"aria-disabled": c.disabled || s || void 0,
|
|
3558
|
+
tabIndex: c.disabled || s ? -1 : 0
|
|
3476
3559
|
},
|
|
3477
3560
|
c.id
|
|
3478
3561
|
);
|
|
@@ -3480,15 +3563,15 @@ function Pa({
|
|
|
3480
3563
|
}
|
|
3481
3564
|
) });
|
|
3482
3565
|
}
|
|
3483
|
-
|
|
3484
|
-
const
|
|
3485
|
-
function
|
|
3486
|
-
return
|
|
3566
|
+
La.displayName = "ThresholdRamp";
|
|
3567
|
+
const st = bt(null);
|
|
3568
|
+
function Oa() {
|
|
3569
|
+
return yt(st);
|
|
3487
3570
|
}
|
|
3488
|
-
function
|
|
3489
|
-
const t =
|
|
3571
|
+
function $a({ option: e }) {
|
|
3572
|
+
const t = Oa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = w(() => {
|
|
3490
3573
|
a || t?.select(e.value);
|
|
3491
|
-
}, [a, t, e.value]),
|
|
3574
|
+
}, [a, t, e.value]), s = w(
|
|
3492
3575
|
(d) => {
|
|
3493
3576
|
a || t?.onKeyNav(d, e.value);
|
|
3494
3577
|
},
|
|
@@ -3510,119 +3593,119 @@ function Ea({ option: e }) {
|
|
|
3510
3593
|
"aria-disabled": a,
|
|
3511
3594
|
disabled: a,
|
|
3512
3595
|
tabIndex: u,
|
|
3513
|
-
onClick:
|
|
3514
|
-
onKeyDown:
|
|
3596
|
+
onClick: i,
|
|
3597
|
+
onKeyDown: s
|
|
3515
3598
|
}
|
|
3516
3599
|
);
|
|
3517
3600
|
}
|
|
3518
|
-
function
|
|
3601
|
+
function Ba({
|
|
3519
3602
|
swatches: e,
|
|
3520
3603
|
value: t,
|
|
3521
3604
|
defaultValue: n,
|
|
3522
3605
|
onChange: a,
|
|
3523
|
-
disabled:
|
|
3524
|
-
name:
|
|
3606
|
+
disabled: i = !1,
|
|
3607
|
+
name: s
|
|
3525
3608
|
}) {
|
|
3526
3609
|
const o = t !== void 0, [l, u] = $(n), d = o ? t : l, p = w(
|
|
3527
|
-
(
|
|
3528
|
-
o || u(
|
|
3610
|
+
(C) => {
|
|
3611
|
+
o || u(C), a?.(C);
|
|
3529
3612
|
},
|
|
3530
3613
|
[o, a]
|
|
3531
3614
|
), f = w(
|
|
3532
|
-
(
|
|
3615
|
+
(C) => d === C,
|
|
3533
3616
|
[d]
|
|
3534
|
-
), g =
|
|
3535
|
-
|
|
3536
|
-
}, []),
|
|
3537
|
-
const
|
|
3538
|
-
|
|
3539
|
-
}, []),
|
|
3540
|
-
(
|
|
3541
|
-
if (
|
|
3617
|
+
), g = M(/* @__PURE__ */ new Map()), m = w((C, R) => {
|
|
3618
|
+
R ? g.current.set(C, R) : g.current.delete(C);
|
|
3619
|
+
}, []), D = e.filter((C) => !C.disabled && !i), y = D.find((C) => C.value === d)?.value ?? D[0]?.value, h = w((C) => {
|
|
3620
|
+
const R = g.current.get(C);
|
|
3621
|
+
R && R.focus();
|
|
3622
|
+
}, []), T = w(
|
|
3623
|
+
(C, R) => {
|
|
3624
|
+
if (i) return;
|
|
3542
3625
|
const I = e.filter((S) => !S.disabled);
|
|
3543
3626
|
if (I.length === 0) return;
|
|
3544
|
-
const c = I.findIndex((S) => S.value ===
|
|
3627
|
+
const c = I.findIndex((S) => S.value === R);
|
|
3545
3628
|
if (c === -1) return;
|
|
3546
|
-
let
|
|
3547
|
-
switch (
|
|
3629
|
+
let v = c;
|
|
3630
|
+
switch (C.key) {
|
|
3548
3631
|
case "ArrowRight":
|
|
3549
3632
|
case "ArrowDown":
|
|
3550
|
-
|
|
3633
|
+
v = (c + 1) % I.length;
|
|
3551
3634
|
break;
|
|
3552
3635
|
case "ArrowLeft":
|
|
3553
3636
|
case "ArrowUp":
|
|
3554
|
-
|
|
3637
|
+
v = (c - 1 + I.length) % I.length;
|
|
3555
3638
|
break;
|
|
3556
3639
|
case "Home":
|
|
3557
|
-
|
|
3640
|
+
v = 0;
|
|
3558
3641
|
break;
|
|
3559
3642
|
case "End":
|
|
3560
|
-
|
|
3643
|
+
v = I.length - 1;
|
|
3561
3644
|
break;
|
|
3562
3645
|
case " ":
|
|
3563
3646
|
case "Enter":
|
|
3564
|
-
|
|
3647
|
+
C.preventDefault(), p(R);
|
|
3565
3648
|
return;
|
|
3566
3649
|
default:
|
|
3567
3650
|
return;
|
|
3568
3651
|
}
|
|
3569
|
-
|
|
3570
|
-
const _ = I[
|
|
3652
|
+
C.preventDefault();
|
|
3653
|
+
const _ = I[v].value;
|
|
3571
3654
|
h(_), p(_);
|
|
3572
3655
|
},
|
|
3573
|
-
[
|
|
3656
|
+
[i, e, p, h]
|
|
3574
3657
|
), P = {
|
|
3575
3658
|
selectedValue: d,
|
|
3576
3659
|
select: p,
|
|
3577
3660
|
isSelected: f,
|
|
3578
|
-
groupDisabled:
|
|
3579
|
-
name:
|
|
3661
|
+
groupDisabled: i,
|
|
3662
|
+
name: s,
|
|
3580
3663
|
registerRef: m,
|
|
3581
3664
|
firstFocusableValue: y,
|
|
3582
|
-
onKeyNav:
|
|
3665
|
+
onKeyNav: T
|
|
3583
3666
|
};
|
|
3584
|
-
return /* @__PURE__ */ r(
|
|
3667
|
+
return /* @__PURE__ */ r(st.Provider, { value: P, children: /* @__PURE__ */ r(
|
|
3585
3668
|
"div",
|
|
3586
3669
|
{
|
|
3587
3670
|
className: "gloss-preset-swatch-row",
|
|
3588
3671
|
role: "radiogroup",
|
|
3589
|
-
"aria-label":
|
|
3590
|
-
"aria-disabled":
|
|
3591
|
-
"data-disabled":
|
|
3592
|
-
children: e.map((
|
|
3672
|
+
"aria-label": s,
|
|
3673
|
+
"aria-disabled": i,
|
|
3674
|
+
"data-disabled": i || void 0,
|
|
3675
|
+
children: e.map((C) => /* @__PURE__ */ r($a, { option: C }, C.value))
|
|
3593
3676
|
}
|
|
3594
3677
|
) });
|
|
3595
3678
|
}
|
|
3596
|
-
|
|
3679
|
+
Ba.displayName = "PresetSwatchRow";
|
|
3597
3680
|
function Ae(e, t) {
|
|
3598
3681
|
for (const n of e)
|
|
3599
3682
|
if (n.items.some((a) => a.id === t))
|
|
3600
3683
|
return n.zoneKey;
|
|
3601
3684
|
return null;
|
|
3602
3685
|
}
|
|
3603
|
-
function
|
|
3686
|
+
function Ye(e, t) {
|
|
3604
3687
|
const n = e.find((a) => a.zoneKey === t);
|
|
3605
3688
|
return n ? n.zoneKey : Ae(e, t);
|
|
3606
3689
|
}
|
|
3607
|
-
function
|
|
3608
|
-
const a = [...e], [
|
|
3609
|
-
return a.splice(n, 0,
|
|
3690
|
+
function Ka(e, t, n) {
|
|
3691
|
+
const a = [...e], [i] = a.splice(t, 1);
|
|
3692
|
+
return a.splice(n, 0, i), a;
|
|
3610
3693
|
}
|
|
3611
|
-
function
|
|
3694
|
+
function za(e) {
|
|
3612
3695
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
3613
3696
|
}
|
|
3614
|
-
function
|
|
3697
|
+
function Wa(e) {
|
|
3615
3698
|
const [t, n] = $(
|
|
3616
3699
|
() => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3617
3700
|
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
3618
3701
|
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
3619
|
-
), [a,
|
|
3702
|
+
), [a, i] = $(null), [s, o] = $(null), l = M(null), u = M(e.onZoneChange);
|
|
3620
3703
|
u.current = e.onZoneChange;
|
|
3621
3704
|
const d = ye(
|
|
3622
|
-
() =>
|
|
3705
|
+
() => za(e.zones),
|
|
3623
3706
|
[e.zones]
|
|
3624
|
-
), p =
|
|
3625
|
-
|
|
3707
|
+
), p = M(d);
|
|
3708
|
+
L(() => {
|
|
3626
3709
|
p.current !== d && (p.current = d, !a && n(
|
|
3627
3710
|
e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3628
3711
|
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
@@ -3631,16 +3714,16 @@ function $a(e) {
|
|
|
3631
3714
|
}, [d, e.zones, a]);
|
|
3632
3715
|
const f = w(
|
|
3633
3716
|
(h) => {
|
|
3634
|
-
const
|
|
3635
|
-
let P = null,
|
|
3636
|
-
for (const
|
|
3637
|
-
const I =
|
|
3717
|
+
const T = h.active.id;
|
|
3718
|
+
let P = null, C = null;
|
|
3719
|
+
for (const R of t) {
|
|
3720
|
+
const I = R.items.find((c) => c.id === T);
|
|
3638
3721
|
if (I) {
|
|
3639
|
-
P = I,
|
|
3722
|
+
P = I, C = R.zoneKey;
|
|
3640
3723
|
break;
|
|
3641
3724
|
}
|
|
3642
3725
|
}
|
|
3643
|
-
l.current =
|
|
3726
|
+
l.current = C, i(P), o(C);
|
|
3644
3727
|
},
|
|
3645
3728
|
[t]
|
|
3646
3729
|
), g = w(
|
|
@@ -3649,54 +3732,54 @@ function $a(e) {
|
|
|
3649
3732
|
o(l.current);
|
|
3650
3733
|
return;
|
|
3651
3734
|
}
|
|
3652
|
-
const
|
|
3653
|
-
o(
|
|
3735
|
+
const T = Ye(t, h.over.id);
|
|
3736
|
+
o(T);
|
|
3654
3737
|
},
|
|
3655
3738
|
[t]
|
|
3656
3739
|
), m = w(
|
|
3657
3740
|
(h) => {
|
|
3658
|
-
const { active:
|
|
3659
|
-
l.current = null,
|
|
3741
|
+
const { active: T, over: P } = h, C = () => {
|
|
3742
|
+
l.current = null, i(null), o(null);
|
|
3660
3743
|
};
|
|
3661
3744
|
if (!P) {
|
|
3662
|
-
|
|
3745
|
+
C();
|
|
3663
3746
|
return;
|
|
3664
3747
|
}
|
|
3665
|
-
const
|
|
3666
|
-
if (!
|
|
3667
|
-
|
|
3748
|
+
const R = Ae(t, T.id), I = Ye(t, P.id);
|
|
3749
|
+
if (!R || !I) {
|
|
3750
|
+
C();
|
|
3668
3751
|
return;
|
|
3669
3752
|
}
|
|
3670
|
-
let c = t.map((
|
|
3671
|
-
if (
|
|
3672
|
-
const
|
|
3673
|
-
c[
|
|
3753
|
+
let c = t.map((v) => ({ ...v, items: [...v.items] }));
|
|
3754
|
+
if (R === I) {
|
|
3755
|
+
const v = c.findIndex((F) => F.zoneKey === R), _ = c[v], S = _.items.findIndex((F) => F.id === T.id), b = _.items.findIndex((F) => F.id === P.id), x = b >= 0 ? b : Math.max(0, _.items.length - 1);
|
|
3756
|
+
c[v] = {
|
|
3674
3757
|
..._,
|
|
3675
|
-
items:
|
|
3758
|
+
items: Ka(_.items, S, x)
|
|
3676
3759
|
};
|
|
3677
3760
|
} else {
|
|
3678
|
-
const
|
|
3761
|
+
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 === T.id);
|
|
3679
3762
|
if (!x) {
|
|
3680
|
-
|
|
3763
|
+
C();
|
|
3681
3764
|
return;
|
|
3682
3765
|
}
|
|
3683
|
-
const F = S.items.filter((
|
|
3684
|
-
let
|
|
3685
|
-
if (
|
|
3686
|
-
const
|
|
3687
|
-
G = G.slice(0,
|
|
3766
|
+
const F = S.items.filter((O) => O.id !== T.id), j = b.items.findIndex((O) => O.id === P.id), q = j >= 0 ? j : b.items.length;
|
|
3767
|
+
let U = F, G = [...b.items];
|
|
3768
|
+
if (b.maxItems !== void 0 && G.length >= b.maxItems) {
|
|
3769
|
+
const O = G[G.length - 1];
|
|
3770
|
+
G = G.slice(0, b.maxItems - 1), U = [...F, O];
|
|
3688
3771
|
}
|
|
3689
3772
|
const B = Math.min(q, G.length), Z = [
|
|
3690
3773
|
...G.slice(0, B),
|
|
3691
3774
|
x,
|
|
3692
3775
|
...G.slice(B)
|
|
3693
3776
|
];
|
|
3694
|
-
c[
|
|
3777
|
+
c[v] = { ...S, items: U }, c[_] = { ...b, items: Z };
|
|
3695
3778
|
}
|
|
3696
|
-
n(c), u.current?.(c),
|
|
3779
|
+
n(c), u.current?.(c), C();
|
|
3697
3780
|
},
|
|
3698
3781
|
[t]
|
|
3699
|
-
),
|
|
3782
|
+
), D = w(
|
|
3700
3783
|
(h) => ({
|
|
3701
3784
|
id: h,
|
|
3702
3785
|
"data-zone-key": h
|
|
@@ -3704,28 +3787,28 @@ function $a(e) {
|
|
|
3704
3787
|
[]
|
|
3705
3788
|
), y = w(
|
|
3706
3789
|
(h) => {
|
|
3707
|
-
const
|
|
3790
|
+
const T = Ae(t, h.id) ?? "";
|
|
3708
3791
|
return {
|
|
3709
3792
|
id: h.id,
|
|
3710
3793
|
"data-item-id": h.id,
|
|
3711
|
-
"data-zone-key":
|
|
3794
|
+
"data-zone-key": T
|
|
3712
3795
|
};
|
|
3713
3796
|
},
|
|
3714
3797
|
[t]
|
|
3715
3798
|
);
|
|
3716
3799
|
return {
|
|
3717
3800
|
zones: t,
|
|
3718
|
-
activeZone:
|
|
3801
|
+
activeZone: s,
|
|
3719
3802
|
activeItem: a,
|
|
3720
|
-
getZoneProps:
|
|
3803
|
+
getZoneProps: D,
|
|
3721
3804
|
getItemProps: y,
|
|
3722
3805
|
handleDragStart: f,
|
|
3723
3806
|
handleDragOver: g,
|
|
3724
3807
|
handleDragEnd: m
|
|
3725
3808
|
};
|
|
3726
3809
|
}
|
|
3727
|
-
let ge = null, Ne = null,
|
|
3728
|
-
const
|
|
3810
|
+
let ge = null, Ne = null, Me = !1;
|
|
3811
|
+
const Ga = [
|
|
3729
3812
|
"DndContext",
|
|
3730
3813
|
"DragOverlay",
|
|
3731
3814
|
"useSensors",
|
|
@@ -3734,22 +3817,22 @@ const Ba = [
|
|
|
3734
3817
|
"PointerSensor",
|
|
3735
3818
|
"KeyboardSensor",
|
|
3736
3819
|
"closestCenter"
|
|
3737
|
-
],
|
|
3820
|
+
], Ha = [
|
|
3738
3821
|
"SortableContext",
|
|
3739
3822
|
"useSortable",
|
|
3740
3823
|
"verticalListSortingStrategy"
|
|
3741
3824
|
];
|
|
3742
|
-
function
|
|
3825
|
+
function Va(e, t) {
|
|
3743
3826
|
const n = [], a = e ?? {};
|
|
3744
|
-
for (const
|
|
3745
|
-
a[
|
|
3746
|
-
const
|
|
3747
|
-
for (const
|
|
3748
|
-
s
|
|
3827
|
+
for (const s of Ga)
|
|
3828
|
+
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
3829
|
+
const i = t ?? {};
|
|
3830
|
+
for (const s of Ha)
|
|
3831
|
+
i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
3749
3832
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
3750
3833
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return ge ? Promise.resolve(ge) :
|
|
3834
|
+
function ja() {
|
|
3835
|
+
return ge ? Promise.resolve(ge) : Me ? Promise.resolve(null) : Ne || (Ne = (async () => {
|
|
3753
3836
|
try {
|
|
3754
3837
|
const [e, t, n] = await Promise.all([
|
|
3755
3838
|
import("@dnd-kit/core"),
|
|
@@ -3757,57 +3840,57 @@ function Wa() {
|
|
|
3757
3840
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
3758
3841
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
3759
3842
|
), {}))
|
|
3760
|
-
]), a =
|
|
3843
|
+
]), a = Va(e, t);
|
|
3761
3844
|
return a.ok ? (ge = {
|
|
3762
3845
|
core: e,
|
|
3763
3846
|
sortable: t,
|
|
3764
3847
|
utilities: n
|
|
3765
|
-
}, ge) : (
|
|
3848
|
+
}, ge) : (Me = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
3766
3849
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
3767
3850
|
), null);
|
|
3768
3851
|
} catch {
|
|
3769
|
-
return
|
|
3852
|
+
return Me = !0, null;
|
|
3770
3853
|
}
|
|
3771
3854
|
})(), Ne);
|
|
3772
3855
|
}
|
|
3773
|
-
function
|
|
3774
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem:
|
|
3775
|
-
return
|
|
3856
|
+
function Ua(e) {
|
|
3857
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = Wa({ zones: t, onZoneChange: n }), [l, u] = V.useState(ge);
|
|
3858
|
+
return V.useEffect(() => {
|
|
3776
3859
|
if (l) return;
|
|
3777
3860
|
let d = !0;
|
|
3778
|
-
return
|
|
3861
|
+
return ja().then((p) => {
|
|
3779
3862
|
d && u(p);
|
|
3780
3863
|
}), () => {
|
|
3781
3864
|
d = !1;
|
|
3782
3865
|
};
|
|
3783
3866
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
3784
|
-
|
|
3867
|
+
it,
|
|
3785
3868
|
{
|
|
3786
3869
|
state: o,
|
|
3787
3870
|
modules: l,
|
|
3788
3871
|
renderZone: a,
|
|
3789
|
-
renderItem:
|
|
3790
|
-
renderDragOverlay:
|
|
3872
|
+
renderItem: i,
|
|
3873
|
+
renderDragOverlay: s
|
|
3791
3874
|
}
|
|
3792
3875
|
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
3793
|
-
const p = d.items.map((f) => /* @__PURE__ */ r(
|
|
3876
|
+
const p = d.items.map((f) => /* @__PURE__ */ r(V.Fragment, { children: i(f) }, f.id));
|
|
3794
3877
|
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, p) }, d.zoneKey);
|
|
3795
3878
|
}) });
|
|
3796
3879
|
}
|
|
3797
|
-
|
|
3798
|
-
function
|
|
3880
|
+
Ua.displayName = "SortableZones";
|
|
3881
|
+
function it({
|
|
3799
3882
|
state: e,
|
|
3800
3883
|
modules: t,
|
|
3801
3884
|
renderZone: n,
|
|
3802
3885
|
renderItem: a,
|
|
3803
|
-
renderDragOverlay:
|
|
3886
|
+
renderDragOverlay: i
|
|
3804
3887
|
}) {
|
|
3805
|
-
const { core:
|
|
3888
|
+
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: T } = o, P = p(
|
|
3806
3889
|
f(m, { activationConstraint: { distance: 5 } }),
|
|
3807
|
-
f(
|
|
3808
|
-
),
|
|
3809
|
-
return /* @__PURE__ */
|
|
3810
|
-
|
|
3890
|
+
f(D)
|
|
3891
|
+
), C = u, R = d, I = h;
|
|
3892
|
+
return /* @__PURE__ */ N(
|
|
3893
|
+
C,
|
|
3811
3894
|
{
|
|
3812
3895
|
sensors: P,
|
|
3813
3896
|
collisionDetection: y,
|
|
@@ -3816,8 +3899,8 @@ function nt({
|
|
|
3816
3899
|
onDragEnd: e.handleDragEnd,
|
|
3817
3900
|
children: [
|
|
3818
3901
|
e.zones.map((c) => {
|
|
3819
|
-
const
|
|
3820
|
-
|
|
3902
|
+
const v = c.items.map((S) => S.id), _ = c.items.map((S) => /* @__PURE__ */ r(
|
|
3903
|
+
ot,
|
|
3821
3904
|
{
|
|
3822
3905
|
id: S.id,
|
|
3823
3906
|
useSortable: o.useSortable,
|
|
@@ -3827,61 +3910,61 @@ function nt({
|
|
|
3827
3910
|
S.id
|
|
3828
3911
|
));
|
|
3829
3912
|
return /* @__PURE__ */ r(
|
|
3830
|
-
|
|
3913
|
+
lt,
|
|
3831
3914
|
{
|
|
3832
3915
|
zoneKey: c.zoneKey,
|
|
3833
3916
|
zoneProps: e.getZoneProps(c.zoneKey),
|
|
3834
3917
|
useDroppable: g,
|
|
3835
|
-
children: /* @__PURE__ */ r(I, { items:
|
|
3918
|
+
children: /* @__PURE__ */ r(I, { items: v, strategy: T, children: n(c.zoneKey, c.items, _) })
|
|
3836
3919
|
},
|
|
3837
3920
|
c.zoneKey
|
|
3838
3921
|
);
|
|
3839
3922
|
}),
|
|
3840
|
-
/* @__PURE__ */ r(
|
|
3923
|
+
/* @__PURE__ */ r(R, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
3841
3924
|
]
|
|
3842
3925
|
}
|
|
3843
3926
|
);
|
|
3844
3927
|
}
|
|
3845
|
-
|
|
3846
|
-
function
|
|
3847
|
-
const { attributes:
|
|
3928
|
+
it.displayName = "SortableZonesInner";
|
|
3929
|
+
function ot({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
3930
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging: d } = t({ id: e }), p = {
|
|
3848
3931
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
3849
3932
|
transition: u,
|
|
3850
3933
|
opacity: d ? 0.5 : 1
|
|
3851
3934
|
};
|
|
3852
|
-
return /* @__PURE__ */ r("div", { ref: o, style: p, "data-sortable-item-id": e, ...
|
|
3935
|
+
return /* @__PURE__ */ r("div", { ref: o, style: p, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
3853
3936
|
}
|
|
3854
|
-
|
|
3855
|
-
function
|
|
3937
|
+
ot.displayName = "SortableItem";
|
|
3938
|
+
function lt({
|
|
3856
3939
|
zoneKey: e,
|
|
3857
3940
|
zoneProps: t,
|
|
3858
3941
|
useDroppable: n,
|
|
3859
3942
|
children: a
|
|
3860
3943
|
}) {
|
|
3861
|
-
const { setNodeRef:
|
|
3862
|
-
return /* @__PURE__ */ r("div", { ref:
|
|
3944
|
+
const { setNodeRef: i, isOver: s } = n({ id: e });
|
|
3945
|
+
return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
3863
3946
|
}
|
|
3864
|
-
|
|
3865
|
-
function
|
|
3947
|
+
lt.displayName = "ZoneDroppable";
|
|
3948
|
+
function kr({
|
|
3866
3949
|
slotLeft: e,
|
|
3867
3950
|
slotCenter: t,
|
|
3868
3951
|
slotRight: n,
|
|
3869
3952
|
height: a = 36,
|
|
3870
|
-
className:
|
|
3871
|
-
style:
|
|
3953
|
+
className: i,
|
|
3954
|
+
style: s,
|
|
3872
3955
|
"aria-label": o = "Dashboard navigation"
|
|
3873
3956
|
}) {
|
|
3874
3957
|
const l = {
|
|
3875
3958
|
"--gloss-bottom-toolbar-height": `${a}px`,
|
|
3876
|
-
...
|
|
3959
|
+
...s
|
|
3877
3960
|
};
|
|
3878
|
-
return /* @__PURE__ */
|
|
3961
|
+
return /* @__PURE__ */ N(
|
|
3879
3962
|
"div",
|
|
3880
3963
|
{
|
|
3881
3964
|
role: "toolbar",
|
|
3882
3965
|
"aria-label": o,
|
|
3883
3966
|
"data-testid": "gloss-bottom-toolbar",
|
|
3884
|
-
className: ["gloss-bottom-toolbar",
|
|
3967
|
+
className: ["gloss-bottom-toolbar", i].filter(Boolean).join(" "),
|
|
3885
3968
|
style: l,
|
|
3886
3969
|
children: [
|
|
3887
3970
|
/* @__PURE__ */ r(
|
|
@@ -3912,16 +3995,16 @@ function gr({
|
|
|
3912
3995
|
}
|
|
3913
3996
|
);
|
|
3914
3997
|
}
|
|
3915
|
-
function
|
|
3998
|
+
function Cr({
|
|
3916
3999
|
count: e,
|
|
3917
4000
|
currentIndex: t,
|
|
3918
4001
|
onSelect: n,
|
|
3919
4002
|
"aria-label": a = "Sections",
|
|
3920
|
-
provisionalIndex:
|
|
3921
|
-
pulseIndex:
|
|
4003
|
+
provisionalIndex: i,
|
|
4004
|
+
pulseIndex: s,
|
|
3922
4005
|
pulseNonce: o
|
|
3923
4006
|
}) {
|
|
3924
|
-
const l =
|
|
4007
|
+
const l = ht.useRef([]);
|
|
3925
4008
|
return l.current.length = e, /* @__PURE__ */ r(
|
|
3926
4009
|
"div",
|
|
3927
4010
|
{
|
|
@@ -3951,8 +4034,8 @@ function pr({
|
|
|
3951
4034
|
type: "button",
|
|
3952
4035
|
role: "tab",
|
|
3953
4036
|
"aria-selected": p === t,
|
|
3954
|
-
"aria-label": p ===
|
|
3955
|
-
"data-state": p ===
|
|
4037
|
+
"aria-label": p === i ? "Unconfirmed section" : `Section ${p + 1}`,
|
|
4038
|
+
"data-state": p === i ? "provisional-hollow" : p === s ? "pulse" : p === t ? "current" : "hollow",
|
|
3956
4039
|
"data-section-index": p,
|
|
3957
4040
|
className: [
|
|
3958
4041
|
"gloss-section-dots__dot",
|
|
@@ -3960,347 +4043,355 @@ function pr({
|
|
|
3960
4043
|
].filter(Boolean).join(" "),
|
|
3961
4044
|
onClick: () => n(p)
|
|
3962
4045
|
},
|
|
3963
|
-
p ===
|
|
4046
|
+
p === s ? `${p}-${o ?? 0}` : p
|
|
3964
4047
|
))
|
|
3965
4048
|
}
|
|
3966
4049
|
);
|
|
3967
4050
|
}
|
|
3968
|
-
const
|
|
3969
|
-
const
|
|
3970
|
-
return delete
|
|
4051
|
+
const Za = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4052
|
+
const i = { ...n };
|
|
4053
|
+
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
4054
|
});
|
|
3972
|
-
|
|
3973
|
-
const
|
|
3974
|
-
const o = { ...
|
|
3975
|
-
return delete o.className, delete o.style, /* @__PURE__ */
|
|
4055
|
+
Za.displayName = "ContainerToolbar";
|
|
4056
|
+
const qa = V.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
|
|
4057
|
+
const o = { ...i };
|
|
4058
|
+
return delete o.className, delete o.style, /* @__PURE__ */ N("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
3976
4059
|
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
3977
4060
|
t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
|
|
3978
|
-
/* @__PURE__ */ r(
|
|
4061
|
+
/* @__PURE__ */ r(Le, { region: "form-section", density: n, children: a })
|
|
3979
4062
|
] });
|
|
3980
4063
|
});
|
|
3981
|
-
|
|
3982
|
-
const
|
|
3983
|
-
const
|
|
3984
|
-
return delete
|
|
4064
|
+
qa.displayName = "ContainerFormSection";
|
|
4065
|
+
const Ya = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4066
|
+
const i = { ...n };
|
|
4067
|
+
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
4068
|
});
|
|
3986
|
-
|
|
4069
|
+
Ya.displayName = "ContainerTable";
|
|
3987
4070
|
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
|
-
|
|
4071
|
+
Tr as Accordion,
|
|
4072
|
+
Mr as AccordionContent,
|
|
4073
|
+
Rr as AccordionItem,
|
|
4074
|
+
Ir as AccordionTrigger,
|
|
4075
|
+
Pr as ActionStrip,
|
|
4076
|
+
Fr as Actionable,
|
|
4077
|
+
Er as AddressGroup,
|
|
4078
|
+
Ar as AddressSelect,
|
|
4079
|
+
Lr as AsyncLoader,
|
|
4080
|
+
Or as Autocomplete,
|
|
4081
|
+
$r as Badge,
|
|
4082
|
+
Br as BarChartCard,
|
|
4083
|
+
Kr as BarsBg,
|
|
4084
|
+
kr as BottomToolbar,
|
|
4085
|
+
zr as Button,
|
|
4086
|
+
Wr as ButtonGroup,
|
|
4087
|
+
Gr as ButtonGroupContext,
|
|
4088
|
+
Hr as Card,
|
|
4089
|
+
Vr as CardActions,
|
|
4090
|
+
jr as CardBack,
|
|
4091
|
+
Ur as CardBody,
|
|
4092
|
+
Zr as CardFooter,
|
|
4093
|
+
qr as CardHeader,
|
|
4094
|
+
Yr as CardMedia,
|
|
4095
|
+
pt as CardShell,
|
|
4096
|
+
Qr as CardSubtitle,
|
|
4097
|
+
Xr as CardTitle,
|
|
4098
|
+
pr as CascadePreview,
|
|
4099
|
+
Jr as ChartControlBar,
|
|
4100
|
+
es as Checkbox,
|
|
4101
|
+
ts as CheckboxGroup,
|
|
4102
|
+
as as Chip,
|
|
4103
|
+
ns as ColorPicker,
|
|
4104
|
+
rs as ComparisonCard,
|
|
4105
|
+
ss as ContactForm,
|
|
4106
|
+
is as ContainerCard,
|
|
4107
|
+
os as ContainerCardActions,
|
|
4108
|
+
ls as ContainerCardBody,
|
|
4109
|
+
cs as ContainerCardFooter,
|
|
4110
|
+
ds as ContainerCardHeader,
|
|
4111
|
+
us as ContainerCardMedia,
|
|
4112
|
+
ms as ContainerCardSubtitle,
|
|
4113
|
+
gs as ContainerCardTitle,
|
|
4114
|
+
ps as ContainerDialog,
|
|
4115
|
+
hs as ContainerDialogActions,
|
|
4116
|
+
fs as ContainerDialogBody,
|
|
4117
|
+
vs as ContainerDialogHeader,
|
|
4118
|
+
qa as ContainerFormSection,
|
|
4119
|
+
bs as ContainerPanel,
|
|
4120
|
+
Ya as ContainerTable,
|
|
4121
|
+
Za as ContainerToolbar,
|
|
4122
|
+
ys as CreditCardForm,
|
|
4123
|
+
ws as DEFAULT_FOOTER_IDS,
|
|
4041
4124
|
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
|
-
|
|
4125
|
+
qo as DEFAULT_MARKET_PRESETS,
|
|
4126
|
+
_s as DEFAULT_OVERFLOW_IDS,
|
|
4127
|
+
Yo as DEFAULT_PINNED,
|
|
4128
|
+
Xe as DEFAULT_RESIZE_PHYSICS,
|
|
4129
|
+
Ns as DataTable,
|
|
4130
|
+
Ds as DatePicker,
|
|
4131
|
+
ks as DateRangePicker,
|
|
4132
|
+
Cs as DestructiveModal,
|
|
4133
|
+
pa as DevTuningPanel,
|
|
4134
|
+
xs as DirectionCard,
|
|
4135
|
+
Ss as Dismissible,
|
|
4136
|
+
Ts as DistributionCard,
|
|
4137
|
+
Ms as DonutChart,
|
|
4138
|
+
mr as DragGhost,
|
|
4139
|
+
lr as DropAnchorCell,
|
|
4140
|
+
Rs as Dropdown,
|
|
4141
|
+
ba as DualPaceBars,
|
|
4142
|
+
Is as ENTITY_FILTER_KEYS,
|
|
4143
|
+
Ps as ENTITY_PROFILE_ROUTES,
|
|
4144
|
+
Fs as ENTITY_TYPE_PLURAL,
|
|
4145
|
+
$t as EdgeHoverHandle,
|
|
4146
|
+
ur as EmptyCellPackAffordance,
|
|
4147
|
+
Es as EntityPicker,
|
|
4065
4148
|
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
|
-
|
|
4149
|
+
As as EntitySearchPanel,
|
|
4150
|
+
Ra as ExceptionListCard,
|
|
4151
|
+
Ia as ExceptionListTilePreview,
|
|
4152
|
+
Ls as Expandable,
|
|
4153
|
+
Os as ExpandableChip,
|
|
4154
|
+
$s as FLIP_AND_STAGE_TIMINGS,
|
|
4155
|
+
Bs as FileUpload,
|
|
4156
|
+
Ks as FilterChip,
|
|
4157
|
+
zs as FilterInput,
|
|
4158
|
+
Ws as FlipAndStageProvider,
|
|
4159
|
+
Gs as Form,
|
|
4160
|
+
Hs as FormDialog,
|
|
4161
|
+
Vs as FormField,
|
|
4162
|
+
js as FusedShape,
|
|
4163
|
+
ya as GapReadout,
|
|
4164
|
+
Bt as GhostPreview,
|
|
4165
|
+
Us as GroupCheckbox,
|
|
4166
|
+
Zs as GroupRadio,
|
|
4167
|
+
xn as HARD_CLIP,
|
|
4168
|
+
qs as HighlightCard,
|
|
4169
|
+
Ys as HybridDatePicker,
|
|
4170
|
+
Qs as ImportWizard,
|
|
4171
|
+
Fa as InlineNudge,
|
|
4172
|
+
Xs as Input,
|
|
4173
|
+
Js as InputAddon,
|
|
4174
|
+
ei as InputGroup,
|
|
4175
|
+
xa as LeaderboardCard,
|
|
4176
|
+
Sa as LeaderboardTilePreview,
|
|
4177
|
+
Na as LensChipGroup,
|
|
4178
|
+
ti as Link,
|
|
4179
|
+
ai as LoginForm,
|
|
4180
|
+
be as MagnitudeBar,
|
|
4181
|
+
ni as MarketPresetRow,
|
|
4182
|
+
ri as MaskPresets,
|
|
4183
|
+
si as MaskedInput,
|
|
4184
|
+
ii as Menu,
|
|
4185
|
+
oi as MenuDivider,
|
|
4186
|
+
li as MenuGroup,
|
|
4187
|
+
ci as MenuItem,
|
|
4188
|
+
di as MergePrompt,
|
|
4189
|
+
ui as MetricCard,
|
|
4190
|
+
mi as MetricCardGrid,
|
|
4191
|
+
sa as MetricGroupContainer,
|
|
4192
|
+
gi as MiniCalendar,
|
|
4193
|
+
ka as MoreInLensRail,
|
|
4194
|
+
pi as MultiSelect,
|
|
4195
|
+
hi as NumberInput,
|
|
4196
|
+
fi as ObjectArrow,
|
|
4197
|
+
vi as OrderFilterBar,
|
|
4198
|
+
Qo as PERIOD_OPTIONS,
|
|
4199
|
+
hr as PaceCard,
|
|
4200
|
+
fr as PaceTilePreview,
|
|
4201
|
+
Ut as PageChip,
|
|
4202
|
+
Je as PageDropdown,
|
|
4203
|
+
bi as PasswordInput,
|
|
4204
|
+
yi as PaymentForm,
|
|
4205
|
+
wi as PaymentMethodSelect,
|
|
4206
|
+
_i as PhoneInput,
|
|
4207
|
+
Ni as PinToMetric,
|
|
4208
|
+
Ba as PresetSwatchRow,
|
|
4209
|
+
Di as ProfileCard,
|
|
4210
|
+
ki as ProgressCard,
|
|
4211
|
+
Ci as QuickConfigPanel,
|
|
4212
|
+
ea as RECONFIG_BACKSIDE_LABELS,
|
|
4213
|
+
Xo as ROLLING_OPTIONS,
|
|
4214
|
+
xi as Radio,
|
|
4215
|
+
Si as RadioGroup,
|
|
4216
|
+
Ti as RangeSlider,
|
|
4134
4217
|
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
|
-
|
|
4218
|
+
rt as RankDelta,
|
|
4219
|
+
Mi as Rating,
|
|
4220
|
+
na as ReconfigBacksideButtons,
|
|
4221
|
+
Ri as RegistrationForm,
|
|
4222
|
+
or as ResizeEnvelope,
|
|
4223
|
+
Ii as Row1Controls,
|
|
4224
|
+
Pi as Row2FilterTray,
|
|
4225
|
+
wr as STROKE_DASHED,
|
|
4226
|
+
Dr as STROKE_OUTLINE,
|
|
4227
|
+
_r as STROKE_SOLID,
|
|
4228
|
+
Nr as STROKE_SPARSE_DASH,
|
|
4229
|
+
Fi as SearchInput,
|
|
4230
|
+
dr as SectionDivider,
|
|
4231
|
+
Cr as SectionDots,
|
|
4232
|
+
Ei as SegmentCard,
|
|
4233
|
+
Ai as SegmentedControl,
|
|
4234
|
+
Li as Select,
|
|
4235
|
+
Oi as Selectable,
|
|
4236
|
+
ve as SeverityDot,
|
|
4237
|
+
$i as SimpleMetricCard,
|
|
4238
|
+
Bi as SimpleSelector,
|
|
4239
|
+
Ki as Skeleton,
|
|
4240
|
+
zi as SkeletonCard,
|
|
4241
|
+
Wi as SkeletonChart,
|
|
4242
|
+
Gi as SkeletonTable,
|
|
4243
|
+
Hi as Slider,
|
|
4244
|
+
gr as SnapOutline,
|
|
4245
|
+
Vi as Sortable,
|
|
4246
|
+
Ua as SortableZones,
|
|
4247
|
+
ji as SparklineBg,
|
|
4248
|
+
cr as SpilloverArc,
|
|
4249
|
+
Ui as SplitButton,
|
|
4250
|
+
Zi as StackedGroupCard,
|
|
4251
|
+
Pa as StackedGroupTilePreview,
|
|
4252
|
+
Da as StarterRail,
|
|
4253
|
+
qi as StatusModeCard,
|
|
4254
|
+
Ot as StatusSlotChipMenu,
|
|
4255
|
+
Yi as Stepper,
|
|
4256
|
+
Qe as SwingReveal,
|
|
4257
|
+
Jo as TODAY_PRESET,
|
|
4170
4258
|
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
|
-
|
|
4259
|
+
nt as TUNING_STORAGE_KEY,
|
|
4260
|
+
Qi as TabGroup,
|
|
4261
|
+
Xi as TabbedDataView,
|
|
4262
|
+
Ji as TagInput,
|
|
4263
|
+
Rt as TargetInput,
|
|
4264
|
+
eo as Textarea,
|
|
4265
|
+
La as ThresholdRamp,
|
|
4266
|
+
to as TimeFrame,
|
|
4267
|
+
ao as TimePicker,
|
|
4268
|
+
no as Toggle,
|
|
4269
|
+
ro as Tooltip,
|
|
4270
|
+
so as Transition,
|
|
4271
|
+
io as TransitionGroup,
|
|
4272
|
+
oo as TrendCard,
|
|
4273
|
+
lo as TrendIndicator,
|
|
4274
|
+
jo as UIContext,
|
|
4275
|
+
Le as UIContextProvider,
|
|
4276
|
+
co as UnifiedBreakdownTable,
|
|
4277
|
+
uo as UnifiedContextMenu,
|
|
4278
|
+
Kt as VelocityBuffer,
|
|
4279
|
+
mo as addressGroupMetadata,
|
|
4280
|
+
go as addressSchema,
|
|
4281
|
+
mn as allChips,
|
|
4282
|
+
Pn as allStateFixtures,
|
|
4283
|
+
In as allVariantFixtures,
|
|
4284
|
+
fn as blockSamples,
|
|
4285
|
+
po as buildDefaultOverflow,
|
|
4286
|
+
_n as cardSamples,
|
|
4287
|
+
Nn as cascadePhysics,
|
|
4288
|
+
yn as chartSamples,
|
|
4289
|
+
bn as circleSamples,
|
|
4290
|
+
Sn as colorTokens,
|
|
4291
|
+
er as compactLayout,
|
|
4292
|
+
Gn as compactState,
|
|
4293
|
+
Rn as computeGutterAnchorX,
|
|
4294
|
+
ho as contactFormMetadata,
|
|
4295
|
+
fo as contactSchema,
|
|
4296
|
+
Hn as contextMenuFixtures,
|
|
4297
|
+
vo as creditCardFormMetadata,
|
|
4298
|
+
bo as creditCardSchema,
|
|
4299
|
+
Ft as dateChip,
|
|
4300
|
+
at as defaultControlBarState,
|
|
4301
|
+
yo as destructiveModalMetadata,
|
|
4302
|
+
wo as durations,
|
|
4303
|
+
_o as easings,
|
|
4304
|
+
Gt as emptyFixture,
|
|
4305
|
+
It as entityChip,
|
|
4306
|
+
Qt as entityNameActions,
|
|
4307
|
+
pn as entityTabGroup,
|
|
4308
|
+
Wt as errorFixture,
|
|
4309
|
+
No as evaluateTintCondition,
|
|
4310
|
+
Wn as filteredState,
|
|
4311
|
+
el as findPreset,
|
|
4312
|
+
tl as formatDateRange,
|
|
4313
|
+
al as formatMarketDates,
|
|
4314
|
+
nl as formatTrend,
|
|
4315
|
+
rl as formatValue,
|
|
4316
|
+
ar as fullLayout,
|
|
4317
|
+
sl as generateMarketId,
|
|
4318
|
+
Do as generateTabId,
|
|
4319
|
+
il as getAllPresets,
|
|
4320
|
+
ol as getDateRangeForPreset,
|
|
4321
|
+
ko as getMenuActions,
|
|
4322
|
+
Tn as getMotionMode,
|
|
4323
|
+
ll as getPresetLabel,
|
|
4324
|
+
Co as getTransitionStyle,
|
|
4325
|
+
Jn as gridCards,
|
|
4326
|
+
vr as gridChannels,
|
|
4327
|
+
xo as interpolate,
|
|
4328
|
+
cl as isInRange,
|
|
4329
|
+
dl as isMarketActive,
|
|
4330
|
+
ul as isSameDay,
|
|
4331
|
+
zn as itemColumns,
|
|
4332
|
+
Bn as itemRows,
|
|
4333
|
+
zt as loadingFixture,
|
|
4334
|
+
So as loginFormMetadata,
|
|
4335
|
+
To as loginSchema,
|
|
4336
|
+
Et as manufacturerChip,
|
|
4337
|
+
ir as manyTabs,
|
|
4338
|
+
Mo as mergeHandlers,
|
|
4339
|
+
Ro as mergeRefs,
|
|
4340
|
+
gn as metricTabGroup,
|
|
4341
|
+
rr as mixedTabs,
|
|
4342
|
+
ml as normalizePresetId,
|
|
4343
|
+
Jt as numericActions,
|
|
4344
|
+
Kn as orderColumns,
|
|
4345
|
+
Xt as orderIdActions,
|
|
4346
|
+
$n as orderRows,
|
|
4347
|
+
nr as ordersTabs,
|
|
4348
|
+
br as paletteHex,
|
|
4349
|
+
yr as paletteVars,
|
|
4350
|
+
Io as parseNumericValue,
|
|
4351
|
+
Po as paymentFormMetadata,
|
|
4352
|
+
Fo as paymentSchema,
|
|
4353
|
+
Eo as presets,
|
|
4354
|
+
kn as provisional,
|
|
4355
|
+
Cn as reducedMotion,
|
|
4356
|
+
Ao as registrationFormMetadata,
|
|
4357
|
+
Lo as registrationSchema,
|
|
4358
|
+
Dn as rejectionFeedback,
|
|
4359
|
+
jn as sampleCompareRanges,
|
|
4360
|
+
qn as sampleCustomMarkets,
|
|
4361
|
+
Vn as sampleDateRange,
|
|
4362
|
+
Yn as sampleMarketPresetData,
|
|
4363
|
+
Zn as sampleMarkets,
|
|
4364
|
+
Xn as samplePeriodPresets,
|
|
4365
|
+
Un as samplePreferences,
|
|
4366
|
+
Qn as samplePresets,
|
|
4367
|
+
sr as singleTab,
|
|
4368
|
+
Fn as sparklineFixture,
|
|
4369
|
+
En as sparklineUpFixture,
|
|
4370
|
+
jt as staleDonutFixture,
|
|
4371
|
+
Ht as staleFixture,
|
|
4372
|
+
Vt as staleSparklineFixture,
|
|
4373
|
+
An as standardFixture,
|
|
4374
|
+
On as standardFlatFixture,
|
|
4375
|
+
tr as standardLayout,
|
|
4376
|
+
Ln as standardNegativeFixture,
|
|
4377
|
+
Pt as statusChip,
|
|
4287
4378
|
me as swingReveal,
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4379
|
+
wn as tableSamples,
|
|
4380
|
+
vn as textSamples,
|
|
4381
|
+
hn as timeFrameTabGroup,
|
|
4382
|
+
gl as toUppercasePresetId,
|
|
4383
|
+
un as useArrowNavigation,
|
|
4384
|
+
Oo as useCheckboxGroupContext,
|
|
4385
|
+
Mn as useEdgeHoverResize,
|
|
4386
|
+
$o as useFilterLayout,
|
|
4387
|
+
Bo as useFlipAndStage,
|
|
4388
|
+
Ko as useFlipAndStageContext,
|
|
4389
|
+
zo as useFlipAndStageContextOptional,
|
|
4390
|
+
dn as useFocusReturn,
|
|
4391
|
+
Wo as useFocusTrap,
|
|
4392
|
+
Go as useFormContext,
|
|
4393
|
+
Ho as useRadioGroupContext,
|
|
4394
|
+
la as useResizeTuning,
|
|
4395
|
+
Wa as useSortableZones,
|
|
4396
|
+
Uo as useUIContext
|
|
4306
4397
|
};
|