@mt-gloss/ui 0.1.9 → 0.1.11
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
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as A, jsx as l, Fragment as
|
|
3
|
-
import * as
|
|
4
|
-
import H, { useRef as R, useEffect as L, useState as W, useCallback as y, forwardRef as
|
|
5
|
-
import { motion as
|
|
6
|
-
import { B as
|
|
7
|
-
import { a as
|
|
8
|
-
import { createPortal as
|
|
9
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
1
|
+
import { N as On, T as An, O as Ln, Q as $n, a3 as Bn, b6 as zn, az as Kn, ah as Wn, Z as Gn, an as Hn, K as Vn, a8 as jn, bn as Un, P as Zn, B as Yn, a as qn, y as Qn, H as Xn, bi as Jn, F as er, J as tr, A as ar, z as nr, bh as rr, E as sr, D as or, bw as ir, b as lr, C as cr, L as dr, o as ur, ad as mr, aN as gr, y as pr, H as fr, F as hr, J as br, A as vr, z as yr, E as wr, D as Dr, a$ as Nr, b2 as Cr, b1 as kr, b0 as _r, b3 as xr, aC as Sr, a5 as Mr, a4 as Tr, aq as Rr, k as Ir, m as Pr, aF as Fr, ab as Er, b8 as Or, a9 as Ar, bo as Lr, Y as $r, bG as Br, bF as zr, bH as Kr, ap as Wr, aQ as Gr, ba as Hr, bL as Vr, bu as jr, n as Ur, am as Zr, bA as Yr, br as qr, a0 as Qr, ar as Xr, a2 as Jr, bz as es, G as ts, d as as, aa as ns, bI as rs, aT as ss, r as os, v as is, I as ls, g as cs, aw as ds, bM as us, M as ms, w as gs, U as ps, X as fs, V as hs, W as bs, as as vs, bg as ys, bO as ws, bK as Ds, ao as Ns, t as Cs, bp as ks, aS as _s, aj as xs, aK as Ss, ag as Ms, al as Ts, au as Rs, aR as Is, ac as Ps, at as Fs, c as Es, R as Os, j as As, p as Ls, aH as $s, bx as Bs, by as zs, ai as Ks, ae as Ws, h as Gs, x as Hs, b7 as Vs, af as js, bN as Us, bc as Zs, bf as Ys, bd as qs, be as Qs, i as Xs, b9 as Js, bm as eo, S as to, bk as ao, bl as no, av as ro, bb as so, bP as oo, ak as io, s as lo, bJ as co, l as uo, f as mo, q as go, _ as po, $ as fo, a7 as ho, bj as bo, bv as vo, bC as yo, aA as wo, aB as Do, a6 as No, aO as Co, aP as ko, aD as _o, aE as xo, aG as So, aV as Mo, aW as To, bE as Ro, bD as Io, aY as Po, aZ as Fo, ax as Eo, ay as Oo, b5 as Ao, b4 as Lo, a_ as $o, aL as Bo, aM as zo, aX as Ko, aI as Wo, aJ as Go, u as Ho, bB as Vo, bq as jo, bs as Uo, bt as Zo, aU as Yo, a1 as qo, e as Qo } from "./Expandable-CTI-osAf.js";
|
|
2
|
+
import { jsxs as A, jsx as l, Fragment as Ze } from "react/jsx-runtime";
|
|
3
|
+
import * as Ye from "react";
|
|
4
|
+
import H, { useRef as R, useEffect as L, useState as W, useCallback as y, forwardRef as qe, useMemo as se, createContext as Qe, useContext as Xe } from "react";
|
|
5
|
+
import { motion as de, useMotionValue as Je, animate as xe, useDragControls as et } from "framer-motion";
|
|
6
|
+
import { B as tt, U as Ne } from "./UIContext-C3E-k7HI.js";
|
|
7
|
+
import { a as Jo, u as ei } from "./UIContext-C3E-k7HI.js";
|
|
8
|
+
import { createPortal as at } from "react-dom";
|
|
9
|
+
import { DEFAULT_MARKET_PRESETS as ai, DEFAULT_PINNED as ni, PERIOD_OPTIONS as ri, ROLLING_OPTIONS as si, TODAY_PRESET as oi, findPreset as ii, formatDateRange as li, formatMarketDates as ci, formatTrend as di, formatValue as ui, generateMarketId as mi, getAllPresets as gi, getDateRangeForPreset as pi, getPresetLabel as fi, isInRange as hi, isMarketActive as bi, isSameDay as vi, normalizePresetId as yi, toUppercasePresetId as wi } from "@mt-gloss/utils";
|
|
10
|
+
import nt from "@mui/icons-material/AccessTime";
|
|
11
|
+
import rt from "@mui/icons-material/Tune";
|
|
12
|
+
import st from "@mui/icons-material/ViewColumn";
|
|
13
|
+
import ot from "@mui/icons-material/AspectRatio";
|
|
14
|
+
import it from "@mui/icons-material/Palette";
|
|
15
|
+
import lt from "@mui/icons-material/PushPin";
|
|
16
|
+
function _a(e = {}) {
|
|
17
17
|
const { enabled: t = !0, returnTo: n } = e, a = R(null);
|
|
18
18
|
return L(() => {
|
|
19
19
|
t && (a.current = n || document.activeElement);
|
|
@@ -23,7 +23,7 @@ function Ca(e = {}) {
|
|
|
23
23
|
}, 0);
|
|
24
24
|
}, [t]), a;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function xa(e) {
|
|
27
27
|
const {
|
|
28
28
|
items: t,
|
|
29
29
|
activeIndex: n,
|
|
@@ -33,8 +33,8 @@ function ka(e) {
|
|
|
33
33
|
enabled: o = !0,
|
|
34
34
|
isItemDisabled: d,
|
|
35
35
|
onSelect: b,
|
|
36
|
-
onEscape:
|
|
37
|
-
} = e, [
|
|
36
|
+
onEscape: g
|
|
37
|
+
} = e, [u, C] = W(-1), m = n !== void 0 ? n : u, c = y(
|
|
38
38
|
(i) => {
|
|
39
39
|
n === void 0 && C(i), a?.(i);
|
|
40
40
|
},
|
|
@@ -57,23 +57,23 @@ function ka(e) {
|
|
|
57
57
|
const i = f();
|
|
58
58
|
i.length > 0 && c(i[i.length - 1]);
|
|
59
59
|
}, [f, c]), I = y(() => {
|
|
60
|
-
const i = S(
|
|
60
|
+
const i = S(m, 1);
|
|
61
61
|
i !== -1 && c(i);
|
|
62
|
-
}, [
|
|
63
|
-
const i = S(
|
|
62
|
+
}, [m, S, c]), N = y(() => {
|
|
63
|
+
const i = S(m, -1);
|
|
64
64
|
i !== -1 && c(i);
|
|
65
|
-
}, [
|
|
65
|
+
}, [m, S, c]), _ = y(() => {
|
|
66
66
|
c(-1);
|
|
67
67
|
}, [c]), T = y(
|
|
68
68
|
(i) => {
|
|
69
69
|
if (!o) return;
|
|
70
70
|
const { key: v } = i, p = v === "ArrowUp" && (s === "vertical" || s === "both"), w = v === "ArrowDown" && (s === "vertical" || s === "both"), k = v === "ArrowLeft" && (s === "horizontal" || s === "both"), M = v === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
71
71
|
if (p || k) {
|
|
72
|
-
i.preventDefault(),
|
|
72
|
+
i.preventDefault(), m === -1 ? x() : N();
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
if (w || M) {
|
|
76
|
-
i.preventDefault(),
|
|
76
|
+
i.preventDefault(), m === -1 ? h() : I();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
if (v === "Home") {
|
|
@@ -84,21 +84,21 @@ function ka(e) {
|
|
|
84
84
|
i.preventDefault(), x();
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
if ((v === "Enter" || v === " ") &&
|
|
87
|
+
if ((v === "Enter" || v === " ") && m >= 0 && m < t.length) {
|
|
88
88
|
i.preventDefault();
|
|
89
|
-
const E = t[
|
|
90
|
-
d?.(E,
|
|
89
|
+
const E = t[m];
|
|
90
|
+
d?.(E, m) || b?.(E, m);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
if (v === "Escape") {
|
|
94
|
-
|
|
94
|
+
g?.();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
[
|
|
99
99
|
o,
|
|
100
100
|
s,
|
|
101
|
-
|
|
101
|
+
m,
|
|
102
102
|
t,
|
|
103
103
|
h,
|
|
104
104
|
x,
|
|
@@ -106,11 +106,11 @@ function ka(e) {
|
|
|
106
106
|
N,
|
|
107
107
|
d,
|
|
108
108
|
b,
|
|
109
|
-
|
|
109
|
+
g
|
|
110
110
|
]
|
|
111
111
|
);
|
|
112
112
|
return {
|
|
113
|
-
focusedIndex:
|
|
113
|
+
focusedIndex: m,
|
|
114
114
|
setFocusedIndex: c,
|
|
115
115
|
handleKeyDown: T,
|
|
116
116
|
focusFirst: h,
|
|
@@ -120,43 +120,43 @@ function ka(e) {
|
|
|
120
120
|
resetFocus: _
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
},
|
|
123
|
+
const ue = (e) => {
|
|
124
|
+
}, ct = {
|
|
125
125
|
id: "entity-filter-1",
|
|
126
126
|
label: "Customer: Acme Corp",
|
|
127
127
|
field: "customer",
|
|
128
128
|
value: "acme-corp-123",
|
|
129
|
-
onRemove:
|
|
130
|
-
},
|
|
129
|
+
onRemove: ue
|
|
130
|
+
}, dt = {
|
|
131
131
|
id: "status-filter-1",
|
|
132
132
|
label: "Status: Open",
|
|
133
133
|
field: "status",
|
|
134
134
|
value: "open",
|
|
135
|
-
onRemove:
|
|
136
|
-
},
|
|
135
|
+
onRemove: ue
|
|
136
|
+
}, ut = {
|
|
137
137
|
id: "date-filter-1",
|
|
138
138
|
label: "Date: Mar 1 - Mar 15",
|
|
139
139
|
field: "dateRange",
|
|
140
140
|
value: "2026-03-01..2026-03-15",
|
|
141
|
-
onRemove:
|
|
142
|
-
},
|
|
141
|
+
onRemove: ue
|
|
142
|
+
}, mt = {
|
|
143
143
|
id: "mfg-filter-1",
|
|
144
144
|
label: "Manufacturer: Widget Co",
|
|
145
145
|
field: "manufacturer",
|
|
146
146
|
value: "widget-co-456",
|
|
147
|
-
onRemove:
|
|
148
|
-
},
|
|
149
|
-
lt,
|
|
147
|
+
onRemove: ue
|
|
148
|
+
}, Sa = [
|
|
150
149
|
ct,
|
|
151
150
|
dt,
|
|
152
|
-
ut
|
|
153
|
-
|
|
151
|
+
ut,
|
|
152
|
+
mt
|
|
153
|
+
], Ma = {
|
|
154
154
|
id: "metric-toggle",
|
|
155
155
|
tabs: [
|
|
156
156
|
{ id: "$", label: "$", mono: !0 },
|
|
157
157
|
{ id: "#", label: "#", mono: !0 }
|
|
158
158
|
]
|
|
159
|
-
},
|
|
159
|
+
}, Ta = {
|
|
160
160
|
id: "entity-type",
|
|
161
161
|
tabs: [
|
|
162
162
|
{ id: "orders", label: "Orders" },
|
|
@@ -164,7 +164,7 @@ const de = (e) => {
|
|
|
164
164
|
{ id: "customers", label: "Customers" },
|
|
165
165
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
166
166
|
]
|
|
167
|
-
},
|
|
167
|
+
}, Ra = {
|
|
168
168
|
id: "time-frame",
|
|
169
169
|
tabs: [
|
|
170
170
|
{ id: "MTD", label: "MTD" },
|
|
@@ -172,30 +172,30 @@ const de = (e) => {
|
|
|
172
172
|
{ id: "YTD", label: "YTD" },
|
|
173
173
|
{ id: "LYTD", label: "LYTD" }
|
|
174
174
|
]
|
|
175
|
-
},
|
|
175
|
+
}, Ia = [
|
|
176
176
|
{ variant: "block", width: "100%", height: 16 },
|
|
177
177
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
178
178
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
179
179
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
180
|
-
],
|
|
180
|
+
], Pa = [
|
|
181
181
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
182
182
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
183
183
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
184
|
-
],
|
|
184
|
+
], Fa = [
|
|
185
185
|
{ variant: "circle", size: 24 },
|
|
186
186
|
{ variant: "circle", size: 40 },
|
|
187
187
|
{ variant: "circle", size: 64 }
|
|
188
|
-
],
|
|
188
|
+
], Ea = [
|
|
189
189
|
{ bars: 10, maxHeight: 120 },
|
|
190
190
|
{ bars: 5, maxHeight: 80 }
|
|
191
|
-
],
|
|
191
|
+
], Oa = [
|
|
192
192
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
193
193
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
194
|
-
],
|
|
194
|
+
], Aa = [
|
|
195
195
|
{ variant: "value", colSpan: 1 },
|
|
196
196
|
{ variant: "trend", colSpan: 2 },
|
|
197
197
|
{ variant: "target", colSpan: 1 }
|
|
198
|
-
],
|
|
198
|
+
], Se = {
|
|
199
199
|
position: "fixed",
|
|
200
200
|
zIndex: 9999,
|
|
201
201
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -207,7 +207,7 @@ const de = (e) => {
|
|
|
207
207
|
minWidth: 148,
|
|
208
208
|
paddingTop: 4,
|
|
209
209
|
paddingBottom: 4
|
|
210
|
-
},
|
|
210
|
+
}, be = (e) => ({
|
|
211
211
|
padding: "6px 12px",
|
|
212
212
|
fontSize: 12,
|
|
213
213
|
lineHeight: 1.4,
|
|
@@ -221,16 +221,16 @@ const de = (e) => {
|
|
|
221
221
|
width: "100%",
|
|
222
222
|
textAlign: "left",
|
|
223
223
|
border: "none"
|
|
224
|
-
}),
|
|
225
|
-
...
|
|
224
|
+
}), gt = (e) => ({
|
|
225
|
+
...be(e),
|
|
226
226
|
color: e ? "#4338ca" : "#4f46e5",
|
|
227
227
|
fontWeight: 600
|
|
228
|
-
}),
|
|
228
|
+
}), pt = {
|
|
229
229
|
height: 1,
|
|
230
230
|
background: "rgba(0,0,0,0.06)",
|
|
231
231
|
margin: "3px 10px"
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function ft({
|
|
234
234
|
open: e,
|
|
235
235
|
anchorEl: t,
|
|
236
236
|
statusId: n,
|
|
@@ -239,11 +239,11 @@ function pt({
|
|
|
239
239
|
overflowActions: s,
|
|
240
240
|
onClose: o
|
|
241
241
|
}) {
|
|
242
|
-
const [d, b] = W(null),
|
|
243
|
-
if (!t) return { ...
|
|
242
|
+
const [d, b] = W(null), g = R(null), u = y(() => {
|
|
243
|
+
if (!t) return { ...Se, top: 0, left: 0 };
|
|
244
244
|
const c = t.getBoundingClientRect();
|
|
245
245
|
return {
|
|
246
|
-
...
|
|
246
|
+
...Se,
|
|
247
247
|
top: c.bottom + 4,
|
|
248
248
|
left: c.left
|
|
249
249
|
};
|
|
@@ -257,24 +257,24 @@ function pt({
|
|
|
257
257
|
}, [e, o]), L(() => {
|
|
258
258
|
if (!e) return;
|
|
259
259
|
const c = (f) => {
|
|
260
|
-
|
|
260
|
+
g.current && !g.current.contains(f.target) && o();
|
|
261
261
|
};
|
|
262
262
|
return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
|
|
263
263
|
}, [e, o]), !e) return null;
|
|
264
|
-
const C = s && s.length > 0,
|
|
264
|
+
const C = s && s.length > 0, m = /* @__PURE__ */ A(
|
|
265
265
|
"div",
|
|
266
266
|
{
|
|
267
|
-
ref:
|
|
267
|
+
ref: g,
|
|
268
268
|
"data-status-chip-menu": n,
|
|
269
269
|
role: "menu",
|
|
270
270
|
"aria-label": "Status actions",
|
|
271
|
-
style:
|
|
271
|
+
style: u(),
|
|
272
272
|
children: [
|
|
273
273
|
/* @__PURE__ */ l(
|
|
274
274
|
"button",
|
|
275
275
|
{
|
|
276
276
|
role: "menuitem",
|
|
277
|
-
style:
|
|
277
|
+
style: gt(d === "__primary"),
|
|
278
278
|
onMouseEnter: () => b("__primary"),
|
|
279
279
|
onMouseLeave: () => b(null),
|
|
280
280
|
onClick: () => {
|
|
@@ -287,7 +287,7 @@ function pt({
|
|
|
287
287
|
"button",
|
|
288
288
|
{
|
|
289
289
|
role: "menuitem",
|
|
290
|
-
style:
|
|
290
|
+
style: be(d === "__graph"),
|
|
291
291
|
onMouseEnter: () => b("__graph"),
|
|
292
292
|
onMouseLeave: () => b(null),
|
|
293
293
|
onClick: () => {
|
|
@@ -296,12 +296,12 @@ function pt({
|
|
|
296
296
|
children: "Show on graph"
|
|
297
297
|
}
|
|
298
298
|
),
|
|
299
|
-
C && /* @__PURE__ */ l("div", { style:
|
|
299
|
+
C && /* @__PURE__ */ l("div", { style: pt }),
|
|
300
300
|
C && s?.map((c) => /* @__PURE__ */ l(
|
|
301
301
|
"button",
|
|
302
302
|
{
|
|
303
303
|
role: "menuitem",
|
|
304
|
-
style:
|
|
304
|
+
style: be(d === c.id),
|
|
305
305
|
onMouseEnter: () => b(c.id),
|
|
306
306
|
onMouseLeave: () => b(null),
|
|
307
307
|
onClick: () => {
|
|
@@ -314,30 +314,102 @@ function pt({
|
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
|
-
return
|
|
317
|
+
return at(m, document.body);
|
|
318
318
|
}
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
ft.displayName = "StatusSlotChipMenu";
|
|
320
|
+
const La = {
|
|
321
|
+
forwardStaggerMs: 50,
|
|
322
|
+
reverseStaggerMs: 30,
|
|
323
|
+
springStiffness: 380,
|
|
324
|
+
springDamping: 32,
|
|
325
|
+
reverseVelocityMultiplier: 1.4
|
|
326
|
+
}, ae = {
|
|
327
|
+
enterDurationMs: 220,
|
|
328
|
+
exitDurationMs: 140,
|
|
329
|
+
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
330
|
+
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
331
|
+
translateOffsetPx: 4
|
|
332
|
+
}, $a = {
|
|
333
|
+
shiverCycles: 3,
|
|
334
|
+
shiverAmplitudePx: 2,
|
|
335
|
+
shiverDurationMs: 180,
|
|
336
|
+
validCellOpacity: 0.6
|
|
337
|
+
}, Ba = {
|
|
338
|
+
materializeMs: 180,
|
|
339
|
+
dematerializeMs: 140,
|
|
340
|
+
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
341
|
+
dotStrokePx: 2,
|
|
342
|
+
dividerDashGapPx: 4
|
|
343
|
+
}, za = {
|
|
344
|
+
cascadeStaggerMs: 0,
|
|
345
|
+
cascadeSpringCapMs: 120,
|
|
346
|
+
swingEnterMs: 100,
|
|
347
|
+
swingEnterStyle: "opacity",
|
|
348
|
+
provisionalMs: 80,
|
|
349
|
+
provisionalStyle: "opacity",
|
|
350
|
+
shiverMs: 200,
|
|
351
|
+
shiverStyle: "color-flash"
|
|
352
|
+
}, Ka = !0, Wa = {
|
|
353
|
+
rejectionFill: "var(--gloss-rejection-fill)",
|
|
354
|
+
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
355
|
+
validFill: "var(--gloss-valid-fill)",
|
|
356
|
+
validStroke: "var(--gloss-valid-stroke)",
|
|
357
|
+
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
358
|
+
provisionalWash: "var(--gloss-provisional-wash)"
|
|
359
|
+
};
|
|
360
|
+
function Ga() {
|
|
361
|
+
if (typeof window > "u") return "full";
|
|
362
|
+
try {
|
|
363
|
+
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
364
|
+
} catch {
|
|
365
|
+
return "full";
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const ht = ({ visible: e, variant: t, trigger: n, children: a, className: r }) => {
|
|
369
|
+
const s = {
|
|
370
|
+
"--gloss-swing-enter-ms": `${ae.enterDurationMs}ms`,
|
|
371
|
+
"--gloss-swing-exit-ms": `${ae.exitDurationMs}ms`,
|
|
372
|
+
"--gloss-swing-offset": `${ae.translateOffsetPx}px`,
|
|
373
|
+
"--gloss-swing-enter-easing": ae.enterEasing,
|
|
374
|
+
"--gloss-swing-exit-easing": ae.exitEasing
|
|
375
|
+
}, o = [
|
|
376
|
+
"gloss-swing-reveal",
|
|
377
|
+
`gloss-swing-reveal--${t}`,
|
|
378
|
+
n === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
|
|
379
|
+
r ?? ""
|
|
380
|
+
].filter(Boolean).join(" ");
|
|
381
|
+
return /* @__PURE__ */ l(
|
|
382
|
+
"span",
|
|
383
|
+
{
|
|
384
|
+
"data-testid": "gloss-swing-reveal",
|
|
385
|
+
"data-variant": t,
|
|
386
|
+
"data-visible": e ? "true" : "false",
|
|
387
|
+
className: o,
|
|
388
|
+
style: s,
|
|
389
|
+
children: a
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
}, bt = qe(
|
|
393
|
+
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: d = "right", ariaLabel: b = "Resize card" }, g) {
|
|
394
|
+
const u = t === "handle-visible" || t === "dragging" || t === "settling", C = (f) => {
|
|
323
395
|
try {
|
|
324
396
|
f.currentTarget.setPointerCapture(f.pointerId);
|
|
325
397
|
} catch {
|
|
326
398
|
}
|
|
327
399
|
n(f);
|
|
328
|
-
},
|
|
400
|
+
}, m = (f) => {
|
|
329
401
|
try {
|
|
330
402
|
f.currentTarget.hasPointerCapture?.(f.pointerId) && f.currentTarget.releasePointerCapture(f.pointerId);
|
|
331
403
|
} catch {
|
|
332
404
|
}
|
|
333
405
|
a(f);
|
|
334
406
|
}, c = (f) => {
|
|
335
|
-
!
|
|
407
|
+
!u || !o || (f.key === "ArrowRight" ? (f.preventDefault(), o("grow")) : f.key === "ArrowLeft" && (f.preventDefault(), o("shrink")));
|
|
336
408
|
};
|
|
337
|
-
return /* @__PURE__ */ l(
|
|
409
|
+
return /* @__PURE__ */ l(ht, { visible: u, variant: "handle", trigger: "hover", children: /* @__PURE__ */ l(
|
|
338
410
|
"button",
|
|
339
411
|
{
|
|
340
|
-
ref:
|
|
412
|
+
ref: g,
|
|
341
413
|
type: "button",
|
|
342
414
|
"aria-label": b,
|
|
343
415
|
"data-edge": d,
|
|
@@ -345,20 +417,20 @@ const ft = Ye(
|
|
|
345
417
|
className: [
|
|
346
418
|
"gloss-edge-handle",
|
|
347
419
|
`gloss-edge-handle--${d}`,
|
|
348
|
-
|
|
420
|
+
u ? "gloss-edge-handle--visible" : ""
|
|
349
421
|
].filter(Boolean).join(" "),
|
|
350
422
|
onPointerDown: C,
|
|
351
|
-
onPointerUp:
|
|
423
|
+
onPointerUp: m,
|
|
352
424
|
onPointerEnter: r,
|
|
353
425
|
onPointerLeave: s,
|
|
354
426
|
onKeyDown: c,
|
|
355
|
-
tabIndex:
|
|
427
|
+
tabIndex: u ? 0 : -1
|
|
356
428
|
}
|
|
357
|
-
);
|
|
429
|
+
) });
|
|
358
430
|
}
|
|
359
431
|
);
|
|
360
|
-
|
|
361
|
-
function
|
|
432
|
+
bt.displayName = "EdgeHoverHandle";
|
|
433
|
+
function vt({
|
|
362
434
|
visible: e,
|
|
363
435
|
targetColSpan: t,
|
|
364
436
|
ghostWidth: n,
|
|
@@ -366,7 +438,7 @@ function ht({
|
|
|
366
438
|
exitMs: r = 120
|
|
367
439
|
}) {
|
|
368
440
|
return /* @__PURE__ */ l(
|
|
369
|
-
|
|
441
|
+
de.div,
|
|
370
442
|
{
|
|
371
443
|
"aria-hidden": "true",
|
|
372
444
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -382,8 +454,8 @@ function ht({
|
|
|
382
454
|
}
|
|
383
455
|
);
|
|
384
456
|
}
|
|
385
|
-
|
|
386
|
-
class
|
|
457
|
+
vt.displayName = "GhostPreview";
|
|
458
|
+
class yt {
|
|
387
459
|
constructor() {
|
|
388
460
|
this.samples = [], this.capacity = 3;
|
|
389
461
|
}
|
|
@@ -407,14 +479,14 @@ class bt {
|
|
|
407
479
|
const t = this.samples.length;
|
|
408
480
|
if (t < 2) return 0;
|
|
409
481
|
if (t === 2) {
|
|
410
|
-
const [b,
|
|
411
|
-
return (
|
|
482
|
+
const [b, g] = this.samples, u = Math.max(1, g.t - b.t);
|
|
483
|
+
return (g.x - b.x) / u * 1e3;
|
|
412
484
|
}
|
|
413
485
|
const [n, a, r] = this.samples, s = (r.x - a.x) / Math.max(1, r.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, d = o;
|
|
414
486
|
return (s * 3 + o * 2 + d * 1) / 6;
|
|
415
487
|
}
|
|
416
488
|
}
|
|
417
|
-
const
|
|
489
|
+
const Pe = {
|
|
418
490
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
419
491
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
420
492
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -434,7 +506,7 @@ const Ie = {
|
|
|
434
506
|
// Velocity multiplier (D-03b panel)
|
|
435
507
|
velocityMultiplier: 1
|
|
436
508
|
};
|
|
437
|
-
function
|
|
509
|
+
function Ha({
|
|
438
510
|
currentColSpan: e,
|
|
439
511
|
stackable: t,
|
|
440
512
|
onResize: n,
|
|
@@ -444,16 +516,16 @@ function Oa({
|
|
|
444
516
|
tuning: o,
|
|
445
517
|
dwellMs: d = 120,
|
|
446
518
|
enterMs: b = 180,
|
|
447
|
-
exitMs:
|
|
448
|
-
maxColSpan:
|
|
519
|
+
exitMs: g = 120,
|
|
520
|
+
maxColSpan: u = 3,
|
|
449
521
|
containerRef: C,
|
|
450
|
-
forceIdle:
|
|
522
|
+
forceIdle: m
|
|
451
523
|
}) {
|
|
452
|
-
const [c, f] = W("idle"), [S, h] = W(e), x = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), i = R(
|
|
524
|
+
const [c, f] = W("idle"), [S, h] = W(e), x = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), i = R(u), v = R(0), p = R("idle");
|
|
453
525
|
L(() => {
|
|
454
526
|
p.current = c;
|
|
455
527
|
}, [c]);
|
|
456
|
-
const w =
|
|
528
|
+
const w = Je(0), k = R(null), M = y(() => {
|
|
457
529
|
const D = k.current;
|
|
458
530
|
if (D) {
|
|
459
531
|
try {
|
|
@@ -468,27 +540,27 @@ function Oa({
|
|
|
468
540
|
return D * P + (D - 1) * F;
|
|
469
541
|
},
|
|
470
542
|
[]
|
|
471
|
-
), G = R(new
|
|
543
|
+
), G = R(new yt()), V = R(e);
|
|
472
544
|
L(() => {
|
|
473
545
|
V.current = S;
|
|
474
546
|
}, [S]);
|
|
475
|
-
const $ =
|
|
547
|
+
const $ = se(() => ({ ...Pe, ...o ?? {} }), [o]), O = y(() => {
|
|
476
548
|
x.current && (clearTimeout(x.current), x.current = null);
|
|
477
549
|
}, []), j = y(() => {
|
|
478
550
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
479
551
|
}, []);
|
|
480
552
|
L(() => {
|
|
481
|
-
|
|
482
|
-
}, [
|
|
483
|
-
const
|
|
553
|
+
m && (p.current === "dragging" || p.current === "settling" || (O(), j(), p.current = "idle", f("idle")));
|
|
554
|
+
}, [m, O, j]);
|
|
555
|
+
const oe = y(() => {
|
|
484
556
|
f((D) => D === "settling" || D !== "idle" ? D : (x.current = setTimeout(() => f("handle-visible"), d), "dwelling"));
|
|
485
557
|
}, [d]), K = y(() => {
|
|
486
558
|
O(), f((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
|
|
487
|
-
}, [O]),
|
|
559
|
+
}, [O]), ie = y(
|
|
488
560
|
(D, P, F) => {
|
|
489
561
|
const B = _.current, Q = B * $.snapInFraction, Z = B * $.snapOutFraction, Y = P - F, q = Math.max(
|
|
490
562
|
F,
|
|
491
|
-
i.current ??
|
|
563
|
+
i.current ?? u
|
|
492
564
|
);
|
|
493
565
|
let z = Y;
|
|
494
566
|
for (; F + z < q; ) {
|
|
@@ -504,27 +576,27 @@ function Oa({
|
|
|
504
576
|
}
|
|
505
577
|
return Math.min(q, Math.max(1, F + z));
|
|
506
578
|
},
|
|
507
|
-
[$.snapInFraction, $.snapOutFraction,
|
|
508
|
-
),
|
|
579
|
+
[$.snapInFraction, $.snapOutFraction, u]
|
|
580
|
+
), We = y(
|
|
509
581
|
(D) => {
|
|
510
582
|
if (p.current !== "handle-visible") return;
|
|
511
|
-
M(), N.current = D.clientX, _.current = r, T.current = s, i.current =
|
|
583
|
+
M(), N.current = D.clientX, _.current = r, T.current = s, i.current = u;
|
|
512
584
|
const P = e * r + (e - 1) * s;
|
|
513
585
|
v.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), p.current = "dragging", f("dragging");
|
|
514
586
|
},
|
|
515
|
-
[r, s,
|
|
516
|
-
),
|
|
587
|
+
[r, s, u, e, w, M]
|
|
588
|
+
), Ce = y(
|
|
517
589
|
(D) => D * _.current + (D - 1) * T.current,
|
|
518
590
|
[]
|
|
519
|
-
),
|
|
591
|
+
), le = y(
|
|
520
592
|
(D, P) => {
|
|
521
|
-
const F =
|
|
593
|
+
const F = Ce(D), B = D !== e;
|
|
522
594
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
523
595
|
w.jump(F), B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), p.current = "idle", f("idle");
|
|
524
596
|
return;
|
|
525
597
|
}
|
|
526
598
|
const Z = G.current.getWeightedVelocity() * $.velocityMultiplier;
|
|
527
|
-
p.current = "settling", f("settling"), M(), k.current =
|
|
599
|
+
p.current = "settling", f("settling"), M(), k.current = xe(w, F, {
|
|
528
600
|
type: "spring",
|
|
529
601
|
stiffness: $.stiffness,
|
|
530
602
|
damping: $.damping,
|
|
@@ -535,17 +607,17 @@ function Oa({
|
|
|
535
607
|
}
|
|
536
608
|
});
|
|
537
609
|
},
|
|
538
|
-
[
|
|
539
|
-
),
|
|
610
|
+
[Ce, e, t, n, a, w, $, M]
|
|
611
|
+
), Ge = y(
|
|
540
612
|
(D) => {
|
|
541
613
|
if (p.current !== "dragging") return;
|
|
542
|
-
const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((i.current ??
|
|
614
|
+
const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((i.current ?? u) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
|
|
543
615
|
G.current.push({ x: D.clientX, t: performance.now() });
|
|
544
|
-
const q =
|
|
545
|
-
|
|
616
|
+
const q = ie(Y, V.current, e), z = q > e ? "grow" : q < e ? "shrink" : null;
|
|
617
|
+
le(q, z);
|
|
546
618
|
},
|
|
547
|
-
[
|
|
548
|
-
),
|
|
619
|
+
[ie, e, u, le]
|
|
620
|
+
), me = y(() => {
|
|
549
621
|
if (O(), p.current === "dragging") {
|
|
550
622
|
const D = v.current;
|
|
551
623
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
@@ -553,7 +625,7 @@ function Oa({
|
|
|
553
625
|
return;
|
|
554
626
|
}
|
|
555
627
|
const F = G.current.getWeightedVelocity();
|
|
556
|
-
p.current = "settling", f("settling"), M(), k.current =
|
|
628
|
+
p.current = "settling", f("settling"), M(), k.current = xe(w, D, {
|
|
557
629
|
type: "spring",
|
|
558
630
|
stiffness: $.stiffness,
|
|
559
631
|
damping: $.damping,
|
|
@@ -570,59 +642,59 @@ function Oa({
|
|
|
570
642
|
L(() => {
|
|
571
643
|
if (c !== "dragging" && c !== "handle-visible") return;
|
|
572
644
|
const D = (P) => {
|
|
573
|
-
P.key === "Escape" &&
|
|
645
|
+
P.key === "Escape" && me();
|
|
574
646
|
};
|
|
575
647
|
return window.addEventListener("keydown", D), () => window.removeEventListener("keydown", D);
|
|
576
|
-
}, [c,
|
|
648
|
+
}, [c, me]), L(() => {
|
|
577
649
|
if (c !== "dragging") {
|
|
578
650
|
h(e);
|
|
579
651
|
return;
|
|
580
652
|
}
|
|
581
653
|
const D = (P) => {
|
|
582
|
-
const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(
|
|
654
|
+
const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(u), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
|
|
583
655
|
w.set(q);
|
|
584
|
-
const z = _.current,
|
|
656
|
+
const z = _.current, _e = (u - e) * z, te = (1 - e) * z, Ue = Math.max(te, Math.min(_e, F));
|
|
585
657
|
G.current.push({ x: P.clientX, t: performance.now() });
|
|
586
|
-
const
|
|
587
|
-
|
|
658
|
+
const ge = ie(Ue, V.current, e);
|
|
659
|
+
ge !== V.current && (V.current = ge, h(ge));
|
|
588
660
|
};
|
|
589
661
|
return window.addEventListener("pointermove", D), () => window.removeEventListener("pointermove", D);
|
|
590
|
-
}, [c, e, w,
|
|
662
|
+
}, [c, e, w, ie, u, E]), L(() => () => {
|
|
591
663
|
O(), j();
|
|
592
664
|
}, [O, j]), L(() => {
|
|
593
665
|
if (c !== "cancelled") return;
|
|
594
|
-
const D = setTimeout(() => f("idle"),
|
|
666
|
+
const D = setTimeout(() => f("idle"), g);
|
|
595
667
|
return () => clearTimeout(D);
|
|
596
|
-
}, [c,
|
|
597
|
-
const
|
|
668
|
+
}, [c, g]);
|
|
669
|
+
const He = y(
|
|
598
670
|
(D) => {
|
|
599
671
|
if (p.current === "settling") return;
|
|
600
|
-
const F = Math.min(
|
|
672
|
+
const F = Math.min(u, Math.max(1, e + (D === "grow" ? 1 : -1)));
|
|
601
673
|
if (F === e) return;
|
|
602
|
-
_.current = r, T.current = s, i.current =
|
|
674
|
+
_.current = r, T.current = s, i.current = u, G.current.clear();
|
|
603
675
|
const B = e * r + (e - 1) * s;
|
|
604
|
-
v.current = B, w.jump(B),
|
|
676
|
+
v.current = B, w.jump(B), le(F, D);
|
|
605
677
|
},
|
|
606
|
-
[e, r, s,
|
|
607
|
-
),
|
|
678
|
+
[e, r, s, u, w, le]
|
|
679
|
+
), ke = y(() => {
|
|
608
680
|
j(), I.current = setTimeout(() => {
|
|
609
681
|
p.current === "handle-visible" && (p.current = "idle", f("idle"));
|
|
610
682
|
}, 5e3);
|
|
611
|
-
}, [j]),
|
|
612
|
-
p.current === "idle" && (O(), p.current = "handle-visible", f("handle-visible"),
|
|
613
|
-
}, [O,
|
|
683
|
+
}, [j]), Ve = y(() => {
|
|
684
|
+
p.current === "idle" && (O(), p.current = "handle-visible", f("handle-visible"), ke());
|
|
685
|
+
}, [O, ke]), je = y(() => {
|
|
614
686
|
j(), p.current === "handle-visible" && (p.current = "idle", f("idle"));
|
|
615
687
|
}, [j]);
|
|
616
688
|
return {
|
|
617
689
|
state: c,
|
|
618
|
-
enterEdgeZone:
|
|
690
|
+
enterEdgeZone: oe,
|
|
619
691
|
leaveEdgeZone: K,
|
|
620
692
|
handleProps: {
|
|
621
|
-
onPointerDown:
|
|
622
|
-
onPointerUp:
|
|
693
|
+
onPointerDown: We,
|
|
694
|
+
onPointerUp: Ge,
|
|
623
695
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
624
696
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
625
|
-
onPointerEnter:
|
|
697
|
+
onPointerEnter: oe,
|
|
626
698
|
onPointerLeave: K
|
|
627
699
|
},
|
|
628
700
|
previewColSpan: S,
|
|
@@ -631,12 +703,12 @@ function Oa({
|
|
|
631
703
|
targetColSpan: S,
|
|
632
704
|
ghostWidth: w,
|
|
633
705
|
enterMs: b,
|
|
634
|
-
exitMs:
|
|
706
|
+
exitMs: g
|
|
635
707
|
},
|
|
636
|
-
onKeyboardStep:
|
|
637
|
-
onTouchReveal:
|
|
638
|
-
onTouchDismiss:
|
|
639
|
-
cancel:
|
|
708
|
+
onKeyboardStep: He,
|
|
709
|
+
onTouchReveal: Ve,
|
|
710
|
+
onTouchDismiss: je,
|
|
711
|
+
cancel: me
|
|
640
712
|
};
|
|
641
713
|
}
|
|
642
714
|
const ee = {
|
|
@@ -664,14 +736,14 @@ const ee = {
|
|
|
664
736
|
sectionDividerFadeOutMs: 80,
|
|
665
737
|
sectionDividerStaggerMs: 40
|
|
666
738
|
};
|
|
667
|
-
function
|
|
739
|
+
function Va(e) {
|
|
668
740
|
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: r } = e;
|
|
669
741
|
if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
|
|
670
742
|
return;
|
|
671
743
|
const s = (a + 0.5) * (t / n);
|
|
672
744
|
return r != null && Number.isFinite(r) && r > 0 ? s - r / 2 : s;
|
|
673
745
|
}
|
|
674
|
-
const
|
|
746
|
+
const ja = [
|
|
675
747
|
// 1. Standard: Total Revenue
|
|
676
748
|
{
|
|
677
749
|
variant: "standard",
|
|
@@ -775,24 +847,24 @@ const La = [
|
|
|
775
847
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
776
848
|
]
|
|
777
849
|
}
|
|
778
|
-
],
|
|
850
|
+
], wt = {
|
|
779
851
|
variant: "standard",
|
|
780
852
|
label: "Total Revenue",
|
|
781
853
|
isLoading: !0
|
|
782
|
-
},
|
|
854
|
+
}, Dt = {
|
|
783
855
|
variant: "standard",
|
|
784
856
|
label: "Total Revenue",
|
|
785
857
|
value: 125430,
|
|
786
858
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
787
859
|
isError: !0
|
|
788
|
-
},
|
|
860
|
+
}, Nt = {
|
|
789
861
|
variant: "standard",
|
|
790
862
|
label: "Total Revenue",
|
|
791
863
|
value: null,
|
|
792
864
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
793
865
|
isEmpty: !0,
|
|
794
866
|
subtitle: "No data"
|
|
795
|
-
},
|
|
867
|
+
}, Ct = {
|
|
796
868
|
variant: "standard",
|
|
797
869
|
label: "Total Revenue",
|
|
798
870
|
value: 125430,
|
|
@@ -800,7 +872,7 @@ const La = [
|
|
|
800
872
|
trend: { value: 12.5, direction: "up" },
|
|
801
873
|
subtitle: "MTD",
|
|
802
874
|
isStale: !0
|
|
803
|
-
},
|
|
875
|
+
}, kt = {
|
|
804
876
|
variant: "sparkline",
|
|
805
877
|
label: "Daily Orders",
|
|
806
878
|
value: 847,
|
|
@@ -809,7 +881,7 @@ const La = [
|
|
|
809
881
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
810
882
|
accentColor: "#6366f1",
|
|
811
883
|
isStale: !0
|
|
812
|
-
},
|
|
884
|
+
}, _t = {
|
|
813
885
|
variant: "donut",
|
|
814
886
|
label: "Order Fill Rate",
|
|
815
887
|
value: 78,
|
|
@@ -820,14 +892,14 @@ const La = [
|
|
|
820
892
|
donutMax: 100,
|
|
821
893
|
accentColor: "#10b981",
|
|
822
894
|
isStale: !0
|
|
823
|
-
},
|
|
824
|
-
vt,
|
|
825
|
-
yt,
|
|
895
|
+
}, Ua = [
|
|
826
896
|
wt,
|
|
827
897
|
Dt,
|
|
828
898
|
Nt,
|
|
829
|
-
Ct
|
|
830
|
-
|
|
899
|
+
Ct,
|
|
900
|
+
kt,
|
|
901
|
+
_t
|
|
902
|
+
], Za = {
|
|
831
903
|
variant: "sparkline",
|
|
832
904
|
label: "Daily Orders",
|
|
833
905
|
value: 847,
|
|
@@ -850,7 +922,7 @@ const La = [
|
|
|
850
922
|
59
|
|
851
923
|
],
|
|
852
924
|
accentColor: "#6366f1"
|
|
853
|
-
},
|
|
925
|
+
}, Ya = {
|
|
854
926
|
variant: "sparkline",
|
|
855
927
|
label: "New Customers",
|
|
856
928
|
value: 23,
|
|
@@ -889,21 +961,21 @@ const La = [
|
|
|
889
961
|
19
|
|
890
962
|
],
|
|
891
963
|
accentColor: "#10b981"
|
|
892
|
-
},
|
|
964
|
+
}, qa = {
|
|
893
965
|
variant: "standard",
|
|
894
966
|
label: "Total Revenue",
|
|
895
967
|
value: 125430,
|
|
896
968
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
897
969
|
trend: { value: 12.5, direction: "up" },
|
|
898
970
|
subtitle: "MTD"
|
|
899
|
-
},
|
|
971
|
+
}, Qa = {
|
|
900
972
|
variant: "standard",
|
|
901
973
|
label: "Returns",
|
|
902
974
|
value: 3280,
|
|
903
975
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
904
976
|
trend: { value: -8.3, direction: "down" },
|
|
905
977
|
subtitle: "MTD"
|
|
906
|
-
},
|
|
978
|
+
}, Xa = {
|
|
907
979
|
variant: "standard",
|
|
908
980
|
label: "Avg Order Value",
|
|
909
981
|
value: 487,
|
|
@@ -911,7 +983,7 @@ const La = [
|
|
|
911
983
|
trend: { value: 0, direction: "flat" },
|
|
912
984
|
subtitle: "QTD"
|
|
913
985
|
};
|
|
914
|
-
function
|
|
986
|
+
function Fe({
|
|
915
987
|
open: e,
|
|
916
988
|
onDismiss: t,
|
|
917
989
|
anchorRef: n,
|
|
@@ -922,22 +994,22 @@ function Pe({
|
|
|
922
994
|
onManagePages: d
|
|
923
995
|
}) {
|
|
924
996
|
const b = y(
|
|
925
|
-
(
|
|
926
|
-
s(
|
|
997
|
+
(m) => {
|
|
998
|
+
s(m), t();
|
|
927
999
|
},
|
|
928
1000
|
[s, t]
|
|
929
|
-
),
|
|
930
|
-
(
|
|
931
|
-
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(
|
|
1001
|
+
), g = y(
|
|
1002
|
+
(m, c) => {
|
|
1003
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(m));
|
|
932
1004
|
},
|
|
933
1005
|
[b]
|
|
934
|
-
),
|
|
1006
|
+
), u = y(() => {
|
|
935
1007
|
o(), t();
|
|
936
1008
|
}, [o, t]), C = y(() => {
|
|
937
1009
|
d(), t();
|
|
938
1010
|
}, [d, t]);
|
|
939
1011
|
return /* @__PURE__ */ A(
|
|
940
|
-
|
|
1012
|
+
tt,
|
|
941
1013
|
{
|
|
942
1014
|
definition: {
|
|
943
1015
|
placement: "bottom-end",
|
|
@@ -950,8 +1022,8 @@ function Pe({
|
|
|
950
1022
|
anchorRef: n,
|
|
951
1023
|
className: "gloss-page-dropdown",
|
|
952
1024
|
children: [
|
|
953
|
-
/* @__PURE__ */ l("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((
|
|
954
|
-
const c =
|
|
1025
|
+
/* @__PURE__ */ l("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((m) => {
|
|
1026
|
+
const c = m.id === r;
|
|
955
1027
|
return /* @__PURE__ */ A(
|
|
956
1028
|
"li",
|
|
957
1029
|
{
|
|
@@ -960,8 +1032,8 @@ function Pe({
|
|
|
960
1032
|
"aria-current": c ? "page" : void 0,
|
|
961
1033
|
tabIndex: 0,
|
|
962
1034
|
className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
|
|
963
|
-
onClick: () => b(
|
|
964
|
-
onKeyDown: (f) => m
|
|
1035
|
+
onClick: () => b(m.id),
|
|
1036
|
+
onKeyDown: (f) => g(m.id, f),
|
|
965
1037
|
children: [
|
|
966
1038
|
/* @__PURE__ */ l(
|
|
967
1039
|
"span",
|
|
@@ -972,14 +1044,14 @@ function Pe({
|
|
|
972
1044
|
/* @__PURE__ */ l(
|
|
973
1045
|
"span",
|
|
974
1046
|
{
|
|
975
|
-
className: `gloss-page-dropdown__name${
|
|
976
|
-
children:
|
|
1047
|
+
className: `gloss-page-dropdown__name${m.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
1048
|
+
children: m.name
|
|
977
1049
|
}
|
|
978
1050
|
),
|
|
979
|
-
/* @__PURE__ */ l("span", { className: "gloss-page-dropdown__count", children:
|
|
1051
|
+
/* @__PURE__ */ l("span", { className: "gloss-page-dropdown__count", children: m.cardCount })
|
|
980
1052
|
]
|
|
981
1053
|
},
|
|
982
|
-
|
|
1054
|
+
m.id
|
|
983
1055
|
);
|
|
984
1056
|
}) }),
|
|
985
1057
|
/* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -988,7 +1060,7 @@ function Pe({
|
|
|
988
1060
|
{
|
|
989
1061
|
role: "menuitem",
|
|
990
1062
|
className: "gloss-page-dropdown__action",
|
|
991
|
-
onClick:
|
|
1063
|
+
onClick: u,
|
|
992
1064
|
children: "+ New page"
|
|
993
1065
|
}
|
|
994
1066
|
),
|
|
@@ -1006,8 +1078,8 @@ function Pe({
|
|
|
1006
1078
|
}
|
|
1007
1079
|
);
|
|
1008
1080
|
}
|
|
1009
|
-
|
|
1010
|
-
const
|
|
1081
|
+
Fe.displayName = "PageDropdown";
|
|
1082
|
+
const xt = function({
|
|
1011
1083
|
currentIndex: t,
|
|
1012
1084
|
total: n,
|
|
1013
1085
|
pages: a,
|
|
@@ -1016,10 +1088,10 @@ const kt = function({
|
|
|
1016
1088
|
onManagePages: o,
|
|
1017
1089
|
maskRadius: d = "var(--gloss-radius-md)"
|
|
1018
1090
|
}) {
|
|
1019
|
-
const b = R(null), [
|
|
1020
|
-
|
|
1021
|
-
}, []),
|
|
1022
|
-
|
|
1091
|
+
const b = R(null), [g, u] = W(!1), C = y(() => {
|
|
1092
|
+
u((f) => !f);
|
|
1093
|
+
}, []), m = y(() => {
|
|
1094
|
+
u(!1);
|
|
1023
1095
|
}, []), c = a[t]?.id ?? "";
|
|
1024
1096
|
return /* @__PURE__ */ A(
|
|
1025
1097
|
"div",
|
|
@@ -1041,7 +1113,7 @@ const kt = function({
|
|
|
1041
1113
|
{
|
|
1042
1114
|
className: "gloss-page-chip__trigger",
|
|
1043
1115
|
"aria-haspopup": "menu",
|
|
1044
|
-
"aria-expanded":
|
|
1116
|
+
"aria-expanded": g,
|
|
1045
1117
|
"aria-label": `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1046
1118
|
onClick: C,
|
|
1047
1119
|
children: [
|
|
@@ -1052,10 +1124,10 @@ const kt = function({
|
|
|
1052
1124
|
}
|
|
1053
1125
|
),
|
|
1054
1126
|
/* @__PURE__ */ l(
|
|
1055
|
-
|
|
1127
|
+
Fe,
|
|
1056
1128
|
{
|
|
1057
|
-
open:
|
|
1058
|
-
onDismiss:
|
|
1129
|
+
open: g,
|
|
1130
|
+
onDismiss: m,
|
|
1059
1131
|
anchorRef: b,
|
|
1060
1132
|
pages: a,
|
|
1061
1133
|
activePageId: c,
|
|
@@ -1068,8 +1140,8 @@ const kt = function({
|
|
|
1068
1140
|
}
|
|
1069
1141
|
);
|
|
1070
1142
|
};
|
|
1071
|
-
|
|
1072
|
-
const
|
|
1143
|
+
xt.displayName = "PageChip";
|
|
1144
|
+
const Ja = [
|
|
1073
1145
|
{
|
|
1074
1146
|
id: "ORD-1001",
|
|
1075
1147
|
orderNumber: "ORD-1001",
|
|
@@ -1202,7 +1274,7 @@ const Ha = [
|
|
|
1202
1274
|
date: "2026-03-01",
|
|
1203
1275
|
skuCount: 9
|
|
1204
1276
|
}
|
|
1205
|
-
],
|
|
1277
|
+
], en = [
|
|
1206
1278
|
{
|
|
1207
1279
|
id: "ITEM-001",
|
|
1208
1280
|
sku: "PB-4520",
|
|
@@ -1336,16 +1408,16 @@ const Ha = [
|
|
|
1336
1408
|
lastDate: "2026-03-01"
|
|
1337
1409
|
}
|
|
1338
1410
|
];
|
|
1339
|
-
function
|
|
1411
|
+
function ve(e) {
|
|
1340
1412
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1341
1413
|
}
|
|
1342
|
-
function
|
|
1414
|
+
function Ee(e) {
|
|
1343
1415
|
return e.toLocaleString("en-US");
|
|
1344
1416
|
}
|
|
1345
|
-
function
|
|
1417
|
+
function Oe(e) {
|
|
1346
1418
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1347
1419
|
}
|
|
1348
|
-
const
|
|
1420
|
+
const re = H.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), tn = [
|
|
1349
1421
|
{
|
|
1350
1422
|
field: "id",
|
|
1351
1423
|
headerName: "Order",
|
|
@@ -1375,7 +1447,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1375
1447
|
align: "right",
|
|
1376
1448
|
headerAlign: "right",
|
|
1377
1449
|
cellClassName: "gloss-tabular-nums",
|
|
1378
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1450
|
+
renderCell: ({ row: e }) => e.skuCount ? Ee(e.skuCount) : re
|
|
1379
1451
|
},
|
|
1380
1452
|
{
|
|
1381
1453
|
field: "total",
|
|
@@ -1385,7 +1457,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1385
1457
|
align: "right",
|
|
1386
1458
|
headerAlign: "right",
|
|
1387
1459
|
cellClassName: "gloss-tabular-nums",
|
|
1388
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1460
|
+
renderCell: ({ row: e }) => e.total ? ve(e.total) : re
|
|
1389
1461
|
},
|
|
1390
1462
|
{
|
|
1391
1463
|
field: "date",
|
|
@@ -1395,9 +1467,9 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1395
1467
|
align: "right",
|
|
1396
1468
|
headerAlign: "right",
|
|
1397
1469
|
cellClassName: "gloss-tabular-nums",
|
|
1398
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1470
|
+
renderCell: ({ row: e }) => e.date ? Oe(e.date) : ""
|
|
1399
1471
|
}
|
|
1400
|
-
],
|
|
1472
|
+
], an = [
|
|
1401
1473
|
{
|
|
1402
1474
|
field: "sku",
|
|
1403
1475
|
headerName: "Item ID",
|
|
@@ -1429,7 +1501,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1429
1501
|
align: "right",
|
|
1430
1502
|
headerAlign: "right",
|
|
1431
1503
|
cellClassName: "gloss-tabular-nums",
|
|
1432
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1504
|
+
renderCell: ({ row: e }) => e.price ? ve(e.price) : re
|
|
1433
1505
|
},
|
|
1434
1506
|
{
|
|
1435
1507
|
field: "quantity",
|
|
@@ -1439,7 +1511,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1439
1511
|
align: "right",
|
|
1440
1512
|
headerAlign: "right",
|
|
1441
1513
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1442
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1514
|
+
renderCell: ({ row: e }) => e.quantity ? Ee(e.quantity) : re
|
|
1443
1515
|
},
|
|
1444
1516
|
{
|
|
1445
1517
|
field: "total",
|
|
@@ -1449,7 +1521,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1449
1521
|
align: "right",
|
|
1450
1522
|
headerAlign: "right",
|
|
1451
1523
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1452
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1524
|
+
renderCell: ({ row: e }) => e.total ? ve(e.total) : re
|
|
1453
1525
|
},
|
|
1454
1526
|
{
|
|
1455
1527
|
field: "lastDate",
|
|
@@ -1459,24 +1531,24 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1459
1531
|
align: "right",
|
|
1460
1532
|
headerAlign: "right",
|
|
1461
1533
|
cellClassName: "gloss-tabular-nums",
|
|
1462
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1534
|
+
renderCell: ({ row: e }) => e.lastDate ? Oe(e.lastDate) : ""
|
|
1463
1535
|
}
|
|
1464
|
-
],
|
|
1536
|
+
], St = [
|
|
1465
1537
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1466
1538
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1467
1539
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1468
1540
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1469
1541
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1470
|
-
],
|
|
1542
|
+
], Mt = [
|
|
1471
1543
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1472
1544
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1473
1545
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1474
1546
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1475
1547
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1476
|
-
],
|
|
1477
|
-
},
|
|
1478
|
-
},
|
|
1479
|
-
},
|
|
1548
|
+
], pe = (e) => {
|
|
1549
|
+
}, Tt = (e) => {
|
|
1550
|
+
}, Me = (e, t) => {
|
|
1551
|
+
}, Ae = {
|
|
1480
1552
|
vizState: {
|
|
1481
1553
|
type: "orders",
|
|
1482
1554
|
quant: "$",
|
|
@@ -1484,17 +1556,17 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1484
1556
|
byItem: { id: null, name: null },
|
|
1485
1557
|
timeFrame: "MTD"
|
|
1486
1558
|
},
|
|
1487
|
-
onTypeChange:
|
|
1488
|
-
onQuantChange:
|
|
1489
|
-
onEntityTypeChange:
|
|
1490
|
-
onEntitySelect:
|
|
1491
|
-
onItemSelect:
|
|
1492
|
-
onTimeFrameChange:
|
|
1559
|
+
onTypeChange: pe,
|
|
1560
|
+
onQuantChange: Tt,
|
|
1561
|
+
onEntityTypeChange: pe,
|
|
1562
|
+
onEntitySelect: Me,
|
|
1563
|
+
onItemSelect: Me,
|
|
1564
|
+
onTimeFrameChange: pe,
|
|
1493
1565
|
userType: "sales-agency",
|
|
1494
|
-
entityFilterOptions:
|
|
1495
|
-
itemFilterOptions:
|
|
1496
|
-
},
|
|
1497
|
-
...
|
|
1566
|
+
entityFilterOptions: St,
|
|
1567
|
+
itemFilterOptions: Mt
|
|
1568
|
+
}, nn = {
|
|
1569
|
+
...Ae,
|
|
1498
1570
|
vizState: {
|
|
1499
1571
|
type: "items",
|
|
1500
1572
|
quant: "$",
|
|
@@ -1502,8 +1574,8 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1502
1574
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1503
1575
|
timeFrame: "YTD"
|
|
1504
1576
|
}
|
|
1505
|
-
},
|
|
1506
|
-
...
|
|
1577
|
+
}, rn = {
|
|
1578
|
+
...Ae,
|
|
1507
1579
|
vizState: {
|
|
1508
1580
|
type: "orders",
|
|
1509
1581
|
quant: "#",
|
|
@@ -1515,7 +1587,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1515
1587
|
entityFilterOptions: [
|
|
1516
1588
|
{ id: "customers", label: "Customers" }
|
|
1517
1589
|
]
|
|
1518
|
-
},
|
|
1590
|
+
}, Rt = [
|
|
1519
1591
|
{
|
|
1520
1592
|
id: "recent-orders",
|
|
1521
1593
|
label: "Recent Orders",
|
|
@@ -1561,7 +1633,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1561
1633
|
routeKey: "customer.profile",
|
|
1562
1634
|
subtitle: "Opens in RepTime"
|
|
1563
1635
|
}
|
|
1564
|
-
],
|
|
1636
|
+
], It = [
|
|
1565
1637
|
{
|
|
1566
1638
|
id: "order-items",
|
|
1567
1639
|
label: "Items in Order",
|
|
@@ -1590,7 +1662,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1590
1662
|
cellKinds: ["orderId"],
|
|
1591
1663
|
graphType: "timeline"
|
|
1592
1664
|
}
|
|
1593
|
-
],
|
|
1665
|
+
], Pt = [
|
|
1594
1666
|
{
|
|
1595
1667
|
id: "graph-metric",
|
|
1596
1668
|
label: "Graph This Metric",
|
|
@@ -1618,14 +1690,14 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1618
1690
|
cellKinds: ["numeric"],
|
|
1619
1691
|
tabType: "orders"
|
|
1620
1692
|
}
|
|
1621
|
-
],
|
|
1622
|
-
entityName:
|
|
1623
|
-
orderId:
|
|
1624
|
-
numeric:
|
|
1625
|
-
},
|
|
1693
|
+
], sn = {
|
|
1694
|
+
entityName: Rt,
|
|
1695
|
+
orderId: It,
|
|
1696
|
+
numeric: Pt
|
|
1697
|
+
}, on = [
|
|
1626
1698
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1627
1699
|
/* @__PURE__ */ new Date()
|
|
1628
|
-
],
|
|
1700
|
+
], ln = {
|
|
1629
1701
|
rangeA: [
|
|
1630
1702
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1631
1703
|
/* @__PURE__ */ new Date()
|
|
@@ -1638,7 +1710,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1638
1710
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1639
1711
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1640
1712
|
]
|
|
1641
|
-
},
|
|
1713
|
+
}, cn = {
|
|
1642
1714
|
version: 4,
|
|
1643
1715
|
lastPreset: "mtd",
|
|
1644
1716
|
pinnedPreset: "mtd",
|
|
@@ -1646,7 +1718,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1646
1718
|
rangeCount: 1,
|
|
1647
1719
|
lastPresetB: null,
|
|
1648
1720
|
lastPresetC: null
|
|
1649
|
-
},
|
|
1721
|
+
}, dn = [
|
|
1650
1722
|
{
|
|
1651
1723
|
id: "atlanta-jan",
|
|
1652
1724
|
label: "Atlanta Market",
|
|
@@ -1668,7 +1740,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1668
1740
|
endDate: new Date(2026, 3, 22),
|
|
1669
1741
|
location: "Chicago, IL"
|
|
1670
1742
|
}
|
|
1671
|
-
],
|
|
1743
|
+
], un = [
|
|
1672
1744
|
{
|
|
1673
1745
|
id: "custom-regional-1",
|
|
1674
1746
|
label: "Southeast Regional Expo",
|
|
@@ -1685,7 +1757,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1685
1757
|
location: "Portland, OR",
|
|
1686
1758
|
isCustom: !0
|
|
1687
1759
|
}
|
|
1688
|
-
],
|
|
1760
|
+
], mn = [
|
|
1689
1761
|
{
|
|
1690
1762
|
id: "atlanta-jan",
|
|
1691
1763
|
label: "Atlanta Market",
|
|
@@ -1702,35 +1774,35 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1702
1774
|
location: "New York, NY",
|
|
1703
1775
|
active: !0
|
|
1704
1776
|
}
|
|
1705
|
-
],
|
|
1777
|
+
], gn = [
|
|
1706
1778
|
{ id: "7d", label: "7D" },
|
|
1707
1779
|
{ id: "30d", label: "30D" },
|
|
1708
1780
|
{ id: "60d", label: "60D" },
|
|
1709
1781
|
{ id: "90d", label: "90D" }
|
|
1710
|
-
],
|
|
1782
|
+
], pn = [
|
|
1711
1783
|
{ id: "mtd", label: "MTD" },
|
|
1712
1784
|
{ id: "qtd", label: "QTD" },
|
|
1713
1785
|
{ id: "ytd", label: "YTD" },
|
|
1714
1786
|
{ id: "lytd", label: "LYTD" }
|
|
1715
|
-
],
|
|
1787
|
+
], Ft = {
|
|
1716
1788
|
timeframe: "Time Frame",
|
|
1717
1789
|
threshold: "Thresholds",
|
|
1718
1790
|
slots: "Slots",
|
|
1719
1791
|
size: "Size",
|
|
1720
1792
|
color: "Color",
|
|
1721
1793
|
pinned: "Pinned"
|
|
1722
|
-
},
|
|
1723
|
-
timeframe:
|
|
1724
|
-
threshold:
|
|
1725
|
-
slots:
|
|
1726
|
-
size:
|
|
1727
|
-
color:
|
|
1728
|
-
pinned:
|
|
1794
|
+
}, Et = {
|
|
1795
|
+
timeframe: nt,
|
|
1796
|
+
threshold: rt,
|
|
1797
|
+
slots: st,
|
|
1798
|
+
size: ot,
|
|
1799
|
+
color: it,
|
|
1800
|
+
pinned: lt
|
|
1729
1801
|
};
|
|
1730
|
-
function
|
|
1802
|
+
function Te(...e) {
|
|
1731
1803
|
return e.filter(Boolean).join(" ");
|
|
1732
1804
|
}
|
|
1733
|
-
function
|
|
1805
|
+
function Ot() {
|
|
1734
1806
|
const [e, t] = W(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1735
1807
|
return L(() => {
|
|
1736
1808
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
@@ -1740,42 +1812,42 @@ function Ft() {
|
|
|
1740
1812
|
});
|
|
1741
1813
|
}, []), e;
|
|
1742
1814
|
}
|
|
1743
|
-
const
|
|
1815
|
+
const At = ({
|
|
1744
1816
|
dimensions: e,
|
|
1745
1817
|
onDimensionSelect: t,
|
|
1746
1818
|
activeDimension: n,
|
|
1747
1819
|
ariaCardTypeLabel: a,
|
|
1748
1820
|
className: r
|
|
1749
1821
|
}) => {
|
|
1750
|
-
const s = R(null), o = R([]), d =
|
|
1822
|
+
const s = R(null), o = R([]), d = Ot(), b = se(() => Array.from(e), [e]);
|
|
1751
1823
|
if (b.length === 0) return null;
|
|
1752
|
-
const
|
|
1824
|
+
const g = a ? `Configure ${a}: choose a dimension` : void 0, u = d ? "10ms" : "200ms", C = (m, c) => {
|
|
1753
1825
|
const f = b.length - 1, S = (h) => {
|
|
1754
1826
|
const x = o.current[h];
|
|
1755
1827
|
x && x.focus();
|
|
1756
1828
|
};
|
|
1757
|
-
switch (
|
|
1829
|
+
switch (m.key) {
|
|
1758
1830
|
case "ArrowRight":
|
|
1759
1831
|
case "ArrowDown": {
|
|
1760
|
-
|
|
1832
|
+
m.preventDefault(), S(c === f ? 0 : c + 1);
|
|
1761
1833
|
break;
|
|
1762
1834
|
}
|
|
1763
1835
|
case "ArrowLeft":
|
|
1764
1836
|
case "ArrowUp": {
|
|
1765
|
-
|
|
1837
|
+
m.preventDefault(), S(c === 0 ? f : c - 1);
|
|
1766
1838
|
break;
|
|
1767
1839
|
}
|
|
1768
1840
|
case "Home": {
|
|
1769
|
-
|
|
1841
|
+
m.preventDefault(), S(0);
|
|
1770
1842
|
break;
|
|
1771
1843
|
}
|
|
1772
1844
|
case "End": {
|
|
1773
|
-
|
|
1845
|
+
m.preventDefault(), S(f);
|
|
1774
1846
|
break;
|
|
1775
1847
|
}
|
|
1776
1848
|
case "Enter":
|
|
1777
1849
|
case " ": {
|
|
1778
|
-
|
|
1850
|
+
m.preventDefault(), t(b[c]);
|
|
1779
1851
|
break;
|
|
1780
1852
|
}
|
|
1781
1853
|
}
|
|
@@ -1785,16 +1857,16 @@ const Et = ({
|
|
|
1785
1857
|
{
|
|
1786
1858
|
ref: s,
|
|
1787
1859
|
role: "group",
|
|
1788
|
-
"aria-label":
|
|
1789
|
-
className:
|
|
1860
|
+
"aria-label": g,
|
|
1861
|
+
className: Te("gloss-reconfig-backside-buttons", r),
|
|
1790
1862
|
style: {
|
|
1791
1863
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1792
1864
|
// so the SCSS transition rule can consume it without a nested media
|
|
1793
1865
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1794
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
1866
|
+
"--gloss-reconfig-backside-buttons-transition-duration": u
|
|
1795
1867
|
},
|
|
1796
|
-
children: b.map((
|
|
1797
|
-
const f =
|
|
1868
|
+
children: b.map((m, c) => {
|
|
1869
|
+
const f = Et[m], S = n === m;
|
|
1798
1870
|
return /* @__PURE__ */ A(
|
|
1799
1871
|
"button",
|
|
1800
1872
|
{
|
|
@@ -1802,13 +1874,13 @@ const Et = ({
|
|
|
1802
1874
|
o.current[c] = h;
|
|
1803
1875
|
},
|
|
1804
1876
|
type: "button",
|
|
1805
|
-
"data-dimension":
|
|
1806
|
-
className:
|
|
1877
|
+
"data-dimension": m,
|
|
1878
|
+
className: Te(
|
|
1807
1879
|
"gloss-reconfig-backside-buttons__button",
|
|
1808
1880
|
S && "gloss-reconfig-backside-buttons__button--active"
|
|
1809
1881
|
),
|
|
1810
1882
|
"aria-current": S ? "true" : void 0,
|
|
1811
|
-
onClick: () => t(
|
|
1883
|
+
onClick: () => t(m),
|
|
1812
1884
|
onKeyDown: (h) => C(h, c),
|
|
1813
1885
|
children: [
|
|
1814
1886
|
/* @__PURE__ */ l(
|
|
@@ -1818,16 +1890,16 @@ const Et = ({
|
|
|
1818
1890
|
"aria-hidden": "true"
|
|
1819
1891
|
}
|
|
1820
1892
|
),
|
|
1821
|
-
/* @__PURE__ */ l("span", { className: "gloss-reconfig-backside-buttons__button-label", children:
|
|
1893
|
+
/* @__PURE__ */ l("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Ft[m] })
|
|
1822
1894
|
]
|
|
1823
1895
|
},
|
|
1824
|
-
|
|
1896
|
+
m
|
|
1825
1897
|
);
|
|
1826
1898
|
})
|
|
1827
1899
|
}
|
|
1828
1900
|
);
|
|
1829
1901
|
};
|
|
1830
|
-
|
|
1902
|
+
At.displayName = "ReconfigBacksideButtons";
|
|
1831
1903
|
function U(e, t) {
|
|
1832
1904
|
return {
|
|
1833
1905
|
id: e,
|
|
@@ -1848,38 +1920,38 @@ function U(e, t) {
|
|
|
1848
1920
|
}, t)
|
|
1849
1921
|
};
|
|
1850
1922
|
}
|
|
1851
|
-
function
|
|
1923
|
+
function Re(e, t) {
|
|
1852
1924
|
return {
|
|
1853
1925
|
...U(e, t),
|
|
1854
1926
|
colSpan: 2
|
|
1855
1927
|
};
|
|
1856
1928
|
}
|
|
1857
|
-
const
|
|
1929
|
+
const fn = [
|
|
1858
1930
|
U("total-revenue", "Total Revenue"),
|
|
1859
1931
|
U("total-orders", "Total Orders"),
|
|
1860
|
-
|
|
1932
|
+
Re("revenue-trend", "Revenue Trend (2x)"),
|
|
1861
1933
|
U("avg-order", "Avg Order Value"),
|
|
1862
1934
|
U("new-customers", "New Customers"),
|
|
1863
1935
|
U("top-salesperson", "Top Salesperson"),
|
|
1864
|
-
|
|
1936
|
+
Re("order-trend", "Order Trend (2x)"),
|
|
1865
1937
|
U("repeat-rate", "Repeat Rate"),
|
|
1866
1938
|
U("open-orders", "Open Orders"),
|
|
1867
1939
|
U("shipped-orders", "Shipped Orders")
|
|
1868
|
-
],
|
|
1940
|
+
], hn = {
|
|
1869
1941
|
columns: 6,
|
|
1870
1942
|
rowHeight: 120,
|
|
1871
1943
|
gap: 15,
|
|
1872
1944
|
maxRows: 3,
|
|
1873
1945
|
currentPage: 0,
|
|
1874
1946
|
totalPages: 1
|
|
1875
|
-
},
|
|
1947
|
+
}, bn = {
|
|
1876
1948
|
columns: 9,
|
|
1877
1949
|
rowHeight: 120,
|
|
1878
1950
|
gap: 15,
|
|
1879
1951
|
maxRows: 3,
|
|
1880
1952
|
currentPage: 0,
|
|
1881
1953
|
totalPages: 2
|
|
1882
|
-
},
|
|
1954
|
+
}, vn = {
|
|
1883
1955
|
columns: 12,
|
|
1884
1956
|
rowHeight: 120,
|
|
1885
1957
|
gap: 15,
|
|
@@ -1887,15 +1959,15 @@ const sn = [
|
|
|
1887
1959
|
currentPage: 0,
|
|
1888
1960
|
totalPages: 3
|
|
1889
1961
|
};
|
|
1890
|
-
function
|
|
1962
|
+
function fe(e) {
|
|
1891
1963
|
return H.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1892
1964
|
}
|
|
1893
|
-
const
|
|
1965
|
+
const yn = [
|
|
1894
1966
|
{
|
|
1895
1967
|
id: "all-orders",
|
|
1896
1968
|
type: "orders",
|
|
1897
1969
|
name: "All Orders",
|
|
1898
|
-
icon:
|
|
1970
|
+
icon: fe("📋"),
|
|
1899
1971
|
closable: !1,
|
|
1900
1972
|
autoCreated: !0
|
|
1901
1973
|
},
|
|
@@ -1903,17 +1975,17 @@ const dn = [
|
|
|
1903
1975
|
id: "open-orders",
|
|
1904
1976
|
type: "orders",
|
|
1905
1977
|
name: "Open Orders",
|
|
1906
|
-
icon:
|
|
1978
|
+
icon: fe("📦"),
|
|
1907
1979
|
closable: !0
|
|
1908
1980
|
},
|
|
1909
1981
|
{
|
|
1910
1982
|
id: "shipped-orders",
|
|
1911
1983
|
type: "orders",
|
|
1912
1984
|
name: "Shipped Orders",
|
|
1913
|
-
icon:
|
|
1985
|
+
icon: fe("🚚"),
|
|
1914
1986
|
closable: !0
|
|
1915
1987
|
}
|
|
1916
|
-
],
|
|
1988
|
+
], wn = [
|
|
1917
1989
|
{
|
|
1918
1990
|
id: "orders-main",
|
|
1919
1991
|
type: "orders",
|
|
@@ -1939,7 +2011,7 @@ const dn = [
|
|
|
1939
2011
|
name: "Customers",
|
|
1940
2012
|
closable: !0
|
|
1941
2013
|
}
|
|
1942
|
-
],
|
|
2014
|
+
], Dn = [
|
|
1943
2015
|
{
|
|
1944
2016
|
id: "only-tab",
|
|
1945
2017
|
type: "orders",
|
|
@@ -1947,7 +2019,7 @@ const dn = [
|
|
|
1947
2019
|
closable: !1,
|
|
1948
2020
|
autoCreated: !0
|
|
1949
2021
|
}
|
|
1950
|
-
],
|
|
2022
|
+
], Nn = [
|
|
1951
2023
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1952
2024
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1953
2025
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1959,7 +2031,7 @@ const dn = [
|
|
|
1959
2031
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
1960
2032
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
1961
2033
|
];
|
|
1962
|
-
function
|
|
2034
|
+
function ye(e) {
|
|
1963
2035
|
switch (e) {
|
|
1964
2036
|
case "wide":
|
|
1965
2037
|
return { cols: 2, rows: 1 };
|
|
@@ -1970,15 +2042,15 @@ function ve(e) {
|
|
|
1970
2042
|
return { cols: 1, rows: 1 };
|
|
1971
2043
|
}
|
|
1972
2044
|
}
|
|
1973
|
-
function
|
|
2045
|
+
function Lt(e) {
|
|
1974
2046
|
let t = 0;
|
|
1975
2047
|
for (const a of e) {
|
|
1976
|
-
const r =
|
|
2048
|
+
const r = ye(a.size), s = a.gridPosition.col + r.cols - 1;
|
|
1977
2049
|
s > t && (t = s);
|
|
1978
2050
|
}
|
|
1979
2051
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1980
2052
|
}
|
|
1981
|
-
const
|
|
2053
|
+
const $t = function(t) {
|
|
1982
2054
|
if (t.renderMode === "discrete")
|
|
1983
2055
|
return /* @__PURE__ */ l(
|
|
1984
2056
|
"div",
|
|
@@ -1986,7 +2058,7 @@ const At = function(t) {
|
|
|
1986
2058
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1987
2059
|
style: { display: "contents" },
|
|
1988
2060
|
children: t.cards.map((r) => {
|
|
1989
|
-
const s =
|
|
2061
|
+
const s = ye(r.size);
|
|
1990
2062
|
return /* @__PURE__ */ l(
|
|
1991
2063
|
"div",
|
|
1992
2064
|
{
|
|
@@ -2047,10 +2119,10 @@ const At = function(t) {
|
|
|
2047
2119
|
style: {
|
|
2048
2120
|
display: "grid",
|
|
2049
2121
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2050
|
-
gridTemplateColumns:
|
|
2122
|
+
gridTemplateColumns: Lt(n)
|
|
2051
2123
|
},
|
|
2052
2124
|
children: n.map((r) => {
|
|
2053
|
-
const s =
|
|
2125
|
+
const s = ye(r.size);
|
|
2054
2126
|
return /* @__PURE__ */ l(
|
|
2055
2127
|
"div",
|
|
2056
2128
|
{
|
|
@@ -2070,16 +2142,16 @@ const At = function(t) {
|
|
|
2070
2142
|
}
|
|
2071
2143
|
);
|
|
2072
2144
|
};
|
|
2073
|
-
|
|
2074
|
-
const
|
|
2075
|
-
...
|
|
2145
|
+
$t.displayName = "MetricGroupContainer";
|
|
2146
|
+
const Le = "resize.tuning.dev", Bt = {
|
|
2147
|
+
...Pe,
|
|
2076
2148
|
snapInPx: 60,
|
|
2077
2149
|
snapOutPx: 90
|
|
2078
|
-
}, J =
|
|
2079
|
-
function
|
|
2150
|
+
}, J = Bt;
|
|
2151
|
+
function zt() {
|
|
2080
2152
|
if (typeof window > "u") return { ...J };
|
|
2081
2153
|
try {
|
|
2082
|
-
const e = window.localStorage.getItem(
|
|
2154
|
+
const e = window.localStorage.getItem(Le);
|
|
2083
2155
|
if (!e) return { ...J };
|
|
2084
2156
|
const t = JSON.parse(e);
|
|
2085
2157
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...J } : { ...J, ...t };
|
|
@@ -2087,12 +2159,12 @@ function $t() {
|
|
|
2087
2159
|
return { ...J };
|
|
2088
2160
|
}
|
|
2089
2161
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const [e, t] = W(() =>
|
|
2162
|
+
function Kt() {
|
|
2163
|
+
const [e, t] = W(() => zt());
|
|
2092
2164
|
L(() => {
|
|
2093
2165
|
if (!(typeof window > "u"))
|
|
2094
2166
|
try {
|
|
2095
|
-
window.localStorage.setItem(
|
|
2167
|
+
window.localStorage.setItem(Le, JSON.stringify(e));
|
|
2096
2168
|
} catch {
|
|
2097
2169
|
}
|
|
2098
2170
|
}, [e]);
|
|
@@ -2111,7 +2183,7 @@ function Bt() {
|
|
|
2111
2183
|
}, []);
|
|
2112
2184
|
return { values: e, setValue: n, resetRow: a, resetAll: r };
|
|
2113
2185
|
}
|
|
2114
|
-
const
|
|
2186
|
+
const Wt = [
|
|
2115
2187
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2116
2188
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2117
2189
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2122,10 +2194,10 @@ const zt = [
|
|
|
2122
2194
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2123
2195
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2124
2196
|
];
|
|
2125
|
-
function
|
|
2197
|
+
function Gt(e, t) {
|
|
2126
2198
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2127
2199
|
}
|
|
2128
|
-
function
|
|
2200
|
+
function Ht() {
|
|
2129
2201
|
return /* @__PURE__ */ A(
|
|
2130
2202
|
"svg",
|
|
2131
2203
|
{
|
|
@@ -2145,7 +2217,7 @@ function Wt() {
|
|
|
2145
2217
|
}
|
|
2146
2218
|
);
|
|
2147
2219
|
}
|
|
2148
|
-
function
|
|
2220
|
+
function Vt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
2149
2221
|
const s = y(
|
|
2150
2222
|
(o) => {
|
|
2151
2223
|
(o.key === "r" || o.key === "R") && (o.preventDefault(), a());
|
|
@@ -2161,7 +2233,7 @@ function Gt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2161
2233
|
children: [
|
|
2162
2234
|
/* @__PURE__ */ l("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2163
2235
|
/* @__PURE__ */ A("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2164
|
-
|
|
2236
|
+
Gt(t, e.step),
|
|
2165
2237
|
e.unit ? ` ${e.unit}` : ""
|
|
2166
2238
|
] }),
|
|
2167
2239
|
/* @__PURE__ */ l(
|
|
@@ -2185,14 +2257,14 @@ function Gt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2185
2257
|
className: "gloss-dev-tuning-panel__reset",
|
|
2186
2258
|
"aria-label": `Reset ${e.label}`,
|
|
2187
2259
|
onClick: a,
|
|
2188
|
-
children: /* @__PURE__ */ l(
|
|
2260
|
+
children: /* @__PURE__ */ l(Ht, {})
|
|
2189
2261
|
}
|
|
2190
2262
|
)
|
|
2191
2263
|
]
|
|
2192
2264
|
}
|
|
2193
2265
|
);
|
|
2194
2266
|
}
|
|
2195
|
-
function
|
|
2267
|
+
function jt() {
|
|
2196
2268
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2197
2269
|
try {
|
|
2198
2270
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2200,23 +2272,23 @@ function Ht() {
|
|
|
2200
2272
|
return !1;
|
|
2201
2273
|
}
|
|
2202
2274
|
}
|
|
2203
|
-
function
|
|
2204
|
-
return
|
|
2275
|
+
function Ut(e = {}) {
|
|
2276
|
+
return jt() ? /* @__PURE__ */ l(Zt, {}) : null;
|
|
2205
2277
|
}
|
|
2206
|
-
|
|
2207
|
-
function
|
|
2208
|
-
const e =
|
|
2209
|
-
d.current && clearTimeout(d.current), o(
|
|
2278
|
+
Ut.displayName = "DevTuningPanel";
|
|
2279
|
+
function Zt() {
|
|
2280
|
+
const e = Kt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), d = R(null), b = y((m) => {
|
|
2281
|
+
d.current && clearTimeout(d.current), o(m), d.current = setTimeout(() => {
|
|
2210
2282
|
o(null), d.current = null;
|
|
2211
2283
|
}, 200);
|
|
2212
|
-
}, []),
|
|
2213
|
-
(
|
|
2214
|
-
n(
|
|
2284
|
+
}, []), g = y(
|
|
2285
|
+
(m, c) => {
|
|
2286
|
+
n(m, c), m === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
|
|
2215
2287
|
},
|
|
2216
2288
|
[n, t.snapOutPx, b]
|
|
2217
|
-
),
|
|
2289
|
+
), u = se(() => Wt, []), C = et();
|
|
2218
2290
|
return /* @__PURE__ */ A(
|
|
2219
|
-
|
|
2291
|
+
de.div,
|
|
2220
2292
|
{
|
|
2221
2293
|
className: "gloss-dev-tuning-panel",
|
|
2222
2294
|
role: "region",
|
|
@@ -2231,23 +2303,23 @@ function jt() {
|
|
|
2231
2303
|
"div",
|
|
2232
2304
|
{
|
|
2233
2305
|
className: "gloss-dev-tuning-panel__header",
|
|
2234
|
-
onPointerDown: (
|
|
2306
|
+
onPointerDown: (m) => C.start(m),
|
|
2235
2307
|
children: [
|
|
2236
2308
|
/* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2237
2309
|
/* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2238
2310
|
]
|
|
2239
2311
|
}
|
|
2240
2312
|
),
|
|
2241
|
-
/* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__body", children:
|
|
2242
|
-
|
|
2313
|
+
/* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__body", children: u.map((m) => /* @__PURE__ */ l(
|
|
2314
|
+
Vt,
|
|
2243
2315
|
{
|
|
2244
|
-
spec:
|
|
2245
|
-
value: t[
|
|
2246
|
-
onChange: (c) => m
|
|
2247
|
-
onReset: () => a(
|
|
2248
|
-
flashing: s ===
|
|
2316
|
+
spec: m,
|
|
2317
|
+
value: t[m.key],
|
|
2318
|
+
onChange: (c) => g(m.key, c),
|
|
2319
|
+
onReset: () => a(m.key),
|
|
2320
|
+
flashing: s === m.key
|
|
2249
2321
|
},
|
|
2250
|
-
|
|
2322
|
+
m.key
|
|
2251
2323
|
)) }),
|
|
2252
2324
|
/* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ l(
|
|
2253
2325
|
"button",
|
|
@@ -2262,7 +2334,7 @@ function jt() {
|
|
|
2262
2334
|
}
|
|
2263
2335
|
);
|
|
2264
2336
|
}
|
|
2265
|
-
function
|
|
2337
|
+
function Cn({
|
|
2266
2338
|
state: e,
|
|
2267
2339
|
originX: t,
|
|
2268
2340
|
originY: n,
|
|
@@ -2272,22 +2344,22 @@ function pn({
|
|
|
2272
2344
|
snapBoundariesX: o,
|
|
2273
2345
|
topY: d,
|
|
2274
2346
|
bottomY: b,
|
|
2275
|
-
enterMs:
|
|
2276
|
-
exitMs:
|
|
2347
|
+
enterMs: g = ee.envelopeEnterMs,
|
|
2348
|
+
exitMs: u = ee.envelopeExitMs,
|
|
2277
2349
|
className: C,
|
|
2278
|
-
style:
|
|
2350
|
+
style: m
|
|
2279
2351
|
}) {
|
|
2280
2352
|
if (e === "hidden") return null;
|
|
2281
2353
|
const c = Math.max(0, r - a), f = Math.max(0, b - d), S = {
|
|
2282
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2283
|
-
"--gloss-resize-envelope-exit-ms": `${
|
|
2354
|
+
"--gloss-resize-envelope-enter-ms": `${g}ms`,
|
|
2355
|
+
"--gloss-resize-envelope-exit-ms": `${u}ms`,
|
|
2284
2356
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2285
2357
|
"--gloss-resize-envelope-origin-y": `${n - d}px`,
|
|
2286
2358
|
left: a,
|
|
2287
2359
|
top: d,
|
|
2288
2360
|
width: c,
|
|
2289
2361
|
height: f,
|
|
2290
|
-
...
|
|
2362
|
+
...m
|
|
2291
2363
|
};
|
|
2292
2364
|
return /* @__PURE__ */ A(
|
|
2293
2365
|
"div",
|
|
@@ -2335,7 +2407,7 @@ function pn({
|
|
|
2335
2407
|
}
|
|
2336
2408
|
);
|
|
2337
2409
|
}
|
|
2338
|
-
function
|
|
2410
|
+
function kn({
|
|
2339
2411
|
density: e,
|
|
2340
2412
|
canAccept: t,
|
|
2341
2413
|
blocked: n = !1,
|
|
@@ -2364,11 +2436,11 @@ function fn({
|
|
|
2364
2436
|
}
|
|
2365
2437
|
);
|
|
2366
2438
|
}
|
|
2367
|
-
function
|
|
2439
|
+
function Yt(e, t, n, a) {
|
|
2368
2440
|
const r = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2369
2441
|
return `M${e},${t} Q${r},${s} ${n},${a}`;
|
|
2370
2442
|
}
|
|
2371
|
-
function
|
|
2443
|
+
function _n({
|
|
2372
2444
|
segments: e,
|
|
2373
2445
|
durationMs: t = ee.spilloverArcDurationMs,
|
|
2374
2446
|
staggerMs: n = ee.spilloverStaggerMs,
|
|
@@ -2388,7 +2460,7 @@ function hn({
|
|
|
2388
2460
|
{
|
|
2389
2461
|
"data-arc-id": s.id,
|
|
2390
2462
|
className: "gloss-spillover-arc__path",
|
|
2391
|
-
d:
|
|
2463
|
+
d: Yt(s.fromX, s.fromY, s.toX, s.toY),
|
|
2392
2464
|
style: {
|
|
2393
2465
|
animationDelay: `${o * n}ms`,
|
|
2394
2466
|
animationDuration: `${t}ms`
|
|
@@ -2399,7 +2471,7 @@ function hn({
|
|
|
2399
2471
|
}
|
|
2400
2472
|
);
|
|
2401
2473
|
}
|
|
2402
|
-
function
|
|
2474
|
+
function xn({
|
|
2403
2475
|
state: e,
|
|
2404
2476
|
staggerIndex: t = 0,
|
|
2405
2477
|
fadeInMs: n = ee.sectionDividerFadeInMs,
|
|
@@ -2431,7 +2503,7 @@ function bn({
|
|
|
2431
2503
|
}
|
|
2432
2504
|
);
|
|
2433
2505
|
}
|
|
2434
|
-
function
|
|
2506
|
+
function Sn({
|
|
2435
2507
|
enabled: e,
|
|
2436
2508
|
onPack: t,
|
|
2437
2509
|
ariaLabel: n = "Pack row (shift cards left)",
|
|
@@ -2451,7 +2523,7 @@ function vn({
|
|
|
2451
2523
|
}
|
|
2452
2524
|
) : null;
|
|
2453
2525
|
}
|
|
2454
|
-
function
|
|
2526
|
+
function Mn({
|
|
2455
2527
|
tint: e,
|
|
2456
2528
|
colSpan: t,
|
|
2457
2529
|
colWidth: n,
|
|
@@ -2462,9 +2534,9 @@ function yn({
|
|
|
2462
2534
|
children: d,
|
|
2463
2535
|
className: b
|
|
2464
2536
|
}) {
|
|
2465
|
-
const
|
|
2537
|
+
const g = t * n + (t - 1) * r;
|
|
2466
2538
|
return /* @__PURE__ */ l(
|
|
2467
|
-
|
|
2539
|
+
de.div,
|
|
2468
2540
|
{
|
|
2469
2541
|
"data-testid": "gloss-drag-ghost",
|
|
2470
2542
|
"data-tint": e,
|
|
@@ -2474,12 +2546,12 @@ function yn({
|
|
|
2474
2546
|
`gloss-drag-ghost--tint-${e}`,
|
|
2475
2547
|
b
|
|
2476
2548
|
].filter(Boolean).join(" "),
|
|
2477
|
-
style: { x: s, y: o, width:
|
|
2549
|
+
style: { x: s, y: o, width: g, height: a },
|
|
2478
2550
|
children: d
|
|
2479
2551
|
}
|
|
2480
2552
|
);
|
|
2481
2553
|
}
|
|
2482
|
-
function
|
|
2554
|
+
function Tn({
|
|
2483
2555
|
cell: e,
|
|
2484
2556
|
colSpan: t,
|
|
2485
2557
|
colWidth: n,
|
|
@@ -2488,7 +2560,7 @@ function wn({
|
|
|
2488
2560
|
transitionMs: s = 120,
|
|
2489
2561
|
className: o
|
|
2490
2562
|
}) {
|
|
2491
|
-
const d = t * n + (t - 1) * a, b = e.col * (n + a),
|
|
2563
|
+
const d = t * n + (t - 1) * a, b = e.col * (n + a), g = e.row * (r + a);
|
|
2492
2564
|
return /* @__PURE__ */ l(
|
|
2493
2565
|
"div",
|
|
2494
2566
|
{
|
|
@@ -2496,7 +2568,7 @@ function wn({
|
|
|
2496
2568
|
"data-testid": "gloss-snap-outline",
|
|
2497
2569
|
"aria-hidden": "true",
|
|
2498
2570
|
style: {
|
|
2499
|
-
transform: `translate(${b}px, ${
|
|
2571
|
+
transform: `translate(${b}px, ${g}px)`,
|
|
2500
2572
|
width: d,
|
|
2501
2573
|
height: r,
|
|
2502
2574
|
transition: `transform ${s}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
@@ -2504,13 +2576,13 @@ function wn({
|
|
|
2504
2576
|
}
|
|
2505
2577
|
);
|
|
2506
2578
|
}
|
|
2507
|
-
function
|
|
2579
|
+
function Rn({
|
|
2508
2580
|
items: e,
|
|
2509
2581
|
children: t,
|
|
2510
2582
|
className: n
|
|
2511
2583
|
}) {
|
|
2512
|
-
return e.length === 0 ? null : /* @__PURE__ */ l(
|
|
2513
|
-
|
|
2584
|
+
return e.length === 0 ? null : /* @__PURE__ */ l(Ze, { children: e.map((a) => /* @__PURE__ */ l(
|
|
2585
|
+
de.div,
|
|
2514
2586
|
{
|
|
2515
2587
|
"data-card-id": a.cardId,
|
|
2516
2588
|
"data-testid": "gloss-cascade-preview-item",
|
|
@@ -2522,54 +2594,6 @@ function Dn({
|
|
|
2522
2594
|
a.cardId
|
|
2523
2595
|
)) });
|
|
2524
2596
|
}
|
|
2525
|
-
const Nn = {
|
|
2526
|
-
forwardStaggerMs: 50,
|
|
2527
|
-
reverseStaggerMs: 30,
|
|
2528
|
-
springStiffness: 380,
|
|
2529
|
-
springDamping: 32,
|
|
2530
|
-
reverseVelocityMultiplier: 1.4
|
|
2531
|
-
}, Cn = {
|
|
2532
|
-
enterDurationMs: 220,
|
|
2533
|
-
exitDurationMs: 140,
|
|
2534
|
-
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
2535
|
-
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2536
|
-
translateOffsetPx: 4
|
|
2537
|
-
}, kn = {
|
|
2538
|
-
shiverCycles: 3,
|
|
2539
|
-
shiverAmplitudePx: 2,
|
|
2540
|
-
shiverDurationMs: 180,
|
|
2541
|
-
validCellOpacity: 0.6
|
|
2542
|
-
}, _n = {
|
|
2543
|
-
materializeMs: 180,
|
|
2544
|
-
dematerializeMs: 140,
|
|
2545
|
-
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
2546
|
-
dotStrokePx: 2,
|
|
2547
|
-
dividerDashGapPx: 4
|
|
2548
|
-
}, xn = {
|
|
2549
|
-
cascadeStaggerMs: 0,
|
|
2550
|
-
cascadeSpringCapMs: 120,
|
|
2551
|
-
swingEnterMs: 100,
|
|
2552
|
-
swingEnterStyle: "opacity",
|
|
2553
|
-
provisionalMs: 80,
|
|
2554
|
-
provisionalStyle: "opacity",
|
|
2555
|
-
shiverMs: 200,
|
|
2556
|
-
shiverStyle: "color-flash"
|
|
2557
|
-
}, Sn = !0, Mn = {
|
|
2558
|
-
rejectionFill: "var(--gloss-rejection-fill)",
|
|
2559
|
-
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
2560
|
-
validFill: "var(--gloss-valid-fill)",
|
|
2561
|
-
validStroke: "var(--gloss-valid-stroke)",
|
|
2562
|
-
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
2563
|
-
provisionalWash: "var(--gloss-provisional-wash)"
|
|
2564
|
-
};
|
|
2565
|
-
function Tn() {
|
|
2566
|
-
if (typeof window > "u") return "full";
|
|
2567
|
-
try {
|
|
2568
|
-
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
2569
|
-
} catch {
|
|
2570
|
-
return "full";
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
2597
|
const X = {
|
|
2574
2598
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
2575
2599
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
@@ -2578,7 +2602,7 @@ const X = {
|
|
|
2578
2602
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2579
2603
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2580
2604
|
};
|
|
2581
|
-
function
|
|
2605
|
+
function qt({
|
|
2582
2606
|
message: e,
|
|
2583
2607
|
primaryAction: t,
|
|
2584
2608
|
onDismiss: n,
|
|
@@ -2594,12 +2618,12 @@ function Zt({
|
|
|
2594
2618
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2595
2619
|
);
|
|
2596
2620
|
}, [a, r]), H.useLayoutEffect(() => {
|
|
2597
|
-
let
|
|
2598
|
-
if (a ?
|
|
2599
|
-
const
|
|
2621
|
+
let g = null;
|
|
2622
|
+
if (a ? g = a : r && (g = document.querySelector(r)), g) {
|
|
2623
|
+
const u = g.getBoundingClientRect();
|
|
2600
2624
|
o({
|
|
2601
|
-
top:
|
|
2602
|
-
left:
|
|
2625
|
+
top: u.bottom + window.scrollY + 6,
|
|
2626
|
+
left: u.left + window.scrollX
|
|
2603
2627
|
});
|
|
2604
2628
|
}
|
|
2605
2629
|
}, [a, r]);
|
|
@@ -2639,25 +2663,25 @@ function Zt({
|
|
|
2639
2663
|
}
|
|
2640
2664
|
);
|
|
2641
2665
|
}
|
|
2642
|
-
|
|
2643
|
-
function
|
|
2666
|
+
qt.displayName = "InlineNudge";
|
|
2667
|
+
function we(e) {
|
|
2644
2668
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
2645
2669
|
}
|
|
2646
|
-
function
|
|
2670
|
+
function Qt(e, t, n) {
|
|
2647
2671
|
if (n <= t) {
|
|
2648
|
-
const o = e[0], d = o ?
|
|
2672
|
+
const o = e[0], d = o ? we(o) : "#888";
|
|
2649
2673
|
return `linear-gradient(to right, ${d}, ${d})`;
|
|
2650
2674
|
}
|
|
2651
2675
|
const a = n - t, s = [...e].sort((o, d) => o.value - d.value).map((o) => {
|
|
2652
2676
|
const d = (o.value - t) / a * 100;
|
|
2653
|
-
return `${
|
|
2677
|
+
return `${we(o)} ${d.toFixed(2)}%`;
|
|
2654
2678
|
});
|
|
2655
2679
|
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(", ")})`;
|
|
2656
2680
|
}
|
|
2657
|
-
function
|
|
2681
|
+
function Xt(e) {
|
|
2658
2682
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
2659
2683
|
}
|
|
2660
|
-
function
|
|
2684
|
+
function Jt({
|
|
2661
2685
|
stops: e,
|
|
2662
2686
|
onChange: t,
|
|
2663
2687
|
min: n = 0,
|
|
@@ -2670,11 +2694,11 @@ function Qt({
|
|
|
2670
2694
|
), 0.01) : r, d = y(
|
|
2671
2695
|
(i) => Math.round(i / o) * o,
|
|
2672
2696
|
[o]
|
|
2673
|
-
), b = R(null), [
|
|
2697
|
+
), b = R(null), [g, u] = W(null), [C, m] = W(e), c = Xt(e), f = R(c);
|
|
2674
2698
|
L(() => {
|
|
2675
|
-
f.current !== c && (f.current = c, !
|
|
2676
|
-
}, [c, e,
|
|
2677
|
-
const S =
|
|
2699
|
+
f.current !== c && (f.current = c, !g && m(e));
|
|
2700
|
+
}, [c, e, g]);
|
|
2701
|
+
const S = se(() => Qt(C, n, a), [C, n, a]), h = y(
|
|
2678
2702
|
(i) => {
|
|
2679
2703
|
if (!b.current) return n;
|
|
2680
2704
|
const v = b.current.getBoundingClientRect(), p = v.width || 1, w = Math.max(0, Math.min(1, (i - v.left) / p)), k = n + w * (a - n);
|
|
@@ -2690,29 +2714,29 @@ function Qt({
|
|
|
2690
2714
|
const x = y(
|
|
2691
2715
|
(i, v) => {
|
|
2692
2716
|
const p = C.find((w) => w.id === v);
|
|
2693
|
-
s || p?.disabled || (i.preventDefault(),
|
|
2717
|
+
s || p?.disabled || (i.preventDefault(), u(v));
|
|
2694
2718
|
},
|
|
2695
2719
|
[s, C]
|
|
2696
2720
|
), I = R(C);
|
|
2697
2721
|
I.current = C;
|
|
2698
2722
|
const N = R(t);
|
|
2699
2723
|
N.current = t, L(() => {
|
|
2700
|
-
if (!
|
|
2724
|
+
if (!g) return;
|
|
2701
2725
|
const i = (p) => {
|
|
2702
2726
|
const w = h(p.clientX);
|
|
2703
|
-
|
|
2704
|
-
(k) => k.map((M) => M.id ===
|
|
2727
|
+
m(
|
|
2728
|
+
(k) => k.map((M) => M.id === g ? { ...M, value: w } : M)
|
|
2705
2729
|
);
|
|
2706
2730
|
}, v = (p) => {
|
|
2707
2731
|
const w = h(p.clientX), k = I.current.map(
|
|
2708
|
-
(M) => M.id ===
|
|
2732
|
+
(M) => M.id === g ? { ...M, value: w } : M
|
|
2709
2733
|
);
|
|
2710
|
-
|
|
2734
|
+
m(k), u(null), N.current(k);
|
|
2711
2735
|
};
|
|
2712
2736
|
return window.addEventListener("pointermove", i), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
2713
2737
|
window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
2714
2738
|
};
|
|
2715
|
-
}, [
|
|
2739
|
+
}, [g, h]);
|
|
2716
2740
|
const _ = a - n > 0 ? a - n : 1, T = y(
|
|
2717
2741
|
(i, v) => {
|
|
2718
2742
|
if (s || v.disabled) return;
|
|
@@ -2744,7 +2768,7 @@ function Qt({
|
|
|
2744
2768
|
const G = C.map(
|
|
2745
2769
|
(V) => V.id === v.id ? { ...V, value: E } : V
|
|
2746
2770
|
);
|
|
2747
|
-
|
|
2771
|
+
m(G), t(G);
|
|
2748
2772
|
},
|
|
2749
2773
|
[s, n, a, C, t, d]
|
|
2750
2774
|
);
|
|
@@ -2762,10 +2786,10 @@ function Qt({
|
|
|
2762
2786
|
className: "gloss-threshold-ramp__stop",
|
|
2763
2787
|
style: {
|
|
2764
2788
|
left: `${v}%`,
|
|
2765
|
-
color:
|
|
2789
|
+
color: we(i)
|
|
2766
2790
|
},
|
|
2767
2791
|
"data-disabled": i.disabled || void 0,
|
|
2768
|
-
"data-dragging":
|
|
2792
|
+
"data-dragging": g === i.id || void 0,
|
|
2769
2793
|
onPointerDown: (p) => x(p, i.id),
|
|
2770
2794
|
onKeyDown: (p) => T(p, i),
|
|
2771
2795
|
"aria-label": i.label ?? `Stop at ${i.value}`,
|
|
@@ -2782,24 +2806,24 @@ function Qt({
|
|
|
2782
2806
|
}
|
|
2783
2807
|
) });
|
|
2784
2808
|
}
|
|
2785
|
-
|
|
2786
|
-
const
|
|
2787
|
-
function
|
|
2788
|
-
return
|
|
2809
|
+
Jt.displayName = "ThresholdRamp";
|
|
2810
|
+
const $e = Qe(null);
|
|
2811
|
+
function ea() {
|
|
2812
|
+
return Xe($e);
|
|
2789
2813
|
}
|
|
2790
|
-
function
|
|
2791
|
-
const t =
|
|
2814
|
+
function ta({ option: e }) {
|
|
2815
|
+
const t = ea(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, r = y(() => {
|
|
2792
2816
|
a || t?.select(e.value);
|
|
2793
2817
|
}, [a, t, e.value]), s = y(
|
|
2794
|
-
(
|
|
2795
|
-
a || t?.onKeyNav(
|
|
2818
|
+
(g) => {
|
|
2819
|
+
a || t?.onKeyNav(g, e.value);
|
|
2796
2820
|
},
|
|
2797
2821
|
[a, t, e.value]
|
|
2798
2822
|
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", d = t?.firstFocusableValue === e.value, b = a ? -1 : d ? 0 : -1;
|
|
2799
2823
|
return /* @__PURE__ */ l(
|
|
2800
2824
|
"button",
|
|
2801
2825
|
{
|
|
2802
|
-
ref: (
|
|
2826
|
+
ref: (g) => t?.registerRef(e.value, g),
|
|
2803
2827
|
type: "button",
|
|
2804
2828
|
role: "radio",
|
|
2805
2829
|
"aria-checked": n,
|
|
@@ -2817,7 +2841,7 @@ function Jt({ option: e }) {
|
|
|
2817
2841
|
}
|
|
2818
2842
|
);
|
|
2819
2843
|
}
|
|
2820
|
-
function
|
|
2844
|
+
function aa({
|
|
2821
2845
|
swatches: e,
|
|
2822
2846
|
value: t,
|
|
2823
2847
|
defaultValue: n,
|
|
@@ -2825,18 +2849,18 @@ function ea({
|
|
|
2825
2849
|
disabled: r = !1,
|
|
2826
2850
|
name: s
|
|
2827
2851
|
}) {
|
|
2828
|
-
const o = t !== void 0, [d, b] = W(n),
|
|
2852
|
+
const o = t !== void 0, [d, b] = W(n), g = o ? t : d, u = y(
|
|
2829
2853
|
(N) => {
|
|
2830
2854
|
o || b(N), a?.(N);
|
|
2831
2855
|
},
|
|
2832
2856
|
[o, a]
|
|
2833
2857
|
), C = y(
|
|
2834
|
-
(N) =>
|
|
2835
|
-
[
|
|
2836
|
-
),
|
|
2837
|
-
_ ?
|
|
2838
|
-
}, []), f = e.filter((N) => !N.disabled && !r), S = f.find((N) => N.value ===
|
|
2839
|
-
const _ =
|
|
2858
|
+
(N) => g === N,
|
|
2859
|
+
[g]
|
|
2860
|
+
), m = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
|
|
2861
|
+
_ ? m.current.set(N, _) : m.current.delete(N);
|
|
2862
|
+
}, []), f = e.filter((N) => !N.disabled && !r), S = f.find((N) => N.value === g)?.value ?? f[0]?.value, h = y((N) => {
|
|
2863
|
+
const _ = m.current.get(N);
|
|
2840
2864
|
_ && _.focus();
|
|
2841
2865
|
}, []), x = y(
|
|
2842
2866
|
(N, _) => {
|
|
@@ -2863,19 +2887,19 @@ function ea({
|
|
|
2863
2887
|
break;
|
|
2864
2888
|
case " ":
|
|
2865
2889
|
case "Enter":
|
|
2866
|
-
N.preventDefault(),
|
|
2890
|
+
N.preventDefault(), u(_);
|
|
2867
2891
|
return;
|
|
2868
2892
|
default:
|
|
2869
2893
|
return;
|
|
2870
2894
|
}
|
|
2871
2895
|
N.preventDefault();
|
|
2872
2896
|
const p = T[v].value;
|
|
2873
|
-
h(p),
|
|
2897
|
+
h(p), u(p);
|
|
2874
2898
|
},
|
|
2875
|
-
[r, e,
|
|
2899
|
+
[r, e, u, h]
|
|
2876
2900
|
), I = {
|
|
2877
|
-
selectedValue:
|
|
2878
|
-
select:
|
|
2901
|
+
selectedValue: g,
|
|
2902
|
+
select: u,
|
|
2879
2903
|
isSelected: C,
|
|
2880
2904
|
groupDisabled: r,
|
|
2881
2905
|
name: s,
|
|
@@ -2883,7 +2907,7 @@ function ea({
|
|
|
2883
2907
|
firstFocusableValue: S,
|
|
2884
2908
|
onKeyNav: x
|
|
2885
2909
|
};
|
|
2886
|
-
return /* @__PURE__ */ l(
|
|
2910
|
+
return /* @__PURE__ */ l($e.Provider, { value: I, children: /* @__PURE__ */ l(
|
|
2887
2911
|
"div",
|
|
2888
2912
|
{
|
|
2889
2913
|
className: "gloss-preset-swatch-row",
|
|
@@ -2891,46 +2915,46 @@ function ea({
|
|
|
2891
2915
|
"aria-label": s,
|
|
2892
2916
|
"aria-disabled": r,
|
|
2893
2917
|
"data-disabled": r || void 0,
|
|
2894
|
-
children: e.map((N) => /* @__PURE__ */ l(
|
|
2918
|
+
children: e.map((N) => /* @__PURE__ */ l(ta, { option: N }, N.value))
|
|
2895
2919
|
}
|
|
2896
2920
|
) });
|
|
2897
2921
|
}
|
|
2898
|
-
|
|
2899
|
-
function
|
|
2922
|
+
aa.displayName = "PresetSwatchRow";
|
|
2923
|
+
function De(e, t) {
|
|
2900
2924
|
for (const n of e)
|
|
2901
2925
|
if (n.items.some((a) => a.id === t))
|
|
2902
2926
|
return n.zoneKey;
|
|
2903
2927
|
return null;
|
|
2904
2928
|
}
|
|
2905
|
-
function
|
|
2929
|
+
function Ie(e, t) {
|
|
2906
2930
|
const n = e.find((a) => a.zoneKey === t);
|
|
2907
|
-
return n ? n.zoneKey :
|
|
2931
|
+
return n ? n.zoneKey : De(e, t);
|
|
2908
2932
|
}
|
|
2909
|
-
function
|
|
2933
|
+
function na(e, t, n) {
|
|
2910
2934
|
const a = [...e], [r] = a.splice(t, 1);
|
|
2911
2935
|
return a.splice(n, 0, r), a;
|
|
2912
2936
|
}
|
|
2913
|
-
function
|
|
2937
|
+
function ra(e) {
|
|
2914
2938
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
2915
2939
|
}
|
|
2916
|
-
function
|
|
2940
|
+
function sa(e) {
|
|
2917
2941
|
const [t, n] = W(
|
|
2918
2942
|
() => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2919
2943
|
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
2920
2944
|
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
2921
2945
|
), [a, r] = W(null), [s, o] = W(null), d = R(null), b = R(e.onZoneChange);
|
|
2922
2946
|
b.current = e.onZoneChange;
|
|
2923
|
-
const
|
|
2924
|
-
() =>
|
|
2947
|
+
const g = se(
|
|
2948
|
+
() => ra(e.zones),
|
|
2925
2949
|
[e.zones]
|
|
2926
|
-
),
|
|
2950
|
+
), u = R(g);
|
|
2927
2951
|
L(() => {
|
|
2928
|
-
|
|
2952
|
+
u.current !== g && (u.current = g, !a && n(
|
|
2929
2953
|
e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2930
2954
|
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
2931
2955
|
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
2932
2956
|
));
|
|
2933
|
-
}, [
|
|
2957
|
+
}, [g, e.zones, a]);
|
|
2934
2958
|
const C = y(
|
|
2935
2959
|
(h) => {
|
|
2936
2960
|
const x = h.active.id;
|
|
@@ -2945,13 +2969,13 @@ function na(e) {
|
|
|
2945
2969
|
d.current = N, r(I), o(N);
|
|
2946
2970
|
},
|
|
2947
2971
|
[t]
|
|
2948
|
-
),
|
|
2972
|
+
), m = y(
|
|
2949
2973
|
(h) => {
|
|
2950
2974
|
if (!h.over) {
|
|
2951
2975
|
o(d.current);
|
|
2952
2976
|
return;
|
|
2953
2977
|
}
|
|
2954
|
-
const x =
|
|
2978
|
+
const x = Ie(t, h.over.id);
|
|
2955
2979
|
o(x);
|
|
2956
2980
|
},
|
|
2957
2981
|
[t]
|
|
@@ -2964,7 +2988,7 @@ function na(e) {
|
|
|
2964
2988
|
N();
|
|
2965
2989
|
return;
|
|
2966
2990
|
}
|
|
2967
|
-
const _ =
|
|
2991
|
+
const _ = De(t, x.id), T = Ie(t, I.id);
|
|
2968
2992
|
if (!_ || !T) {
|
|
2969
2993
|
N();
|
|
2970
2994
|
return;
|
|
@@ -2974,7 +2998,7 @@ function na(e) {
|
|
|
2974
2998
|
const v = i.findIndex((E) => E.zoneKey === _), p = i[v], w = p.items.findIndex((E) => E.id === x.id), k = p.items.findIndex((E) => E.id === I.id), M = k >= 0 ? k : Math.max(0, p.items.length - 1);
|
|
2975
2999
|
i[v] = {
|
|
2976
3000
|
...p,
|
|
2977
|
-
items:
|
|
3001
|
+
items: na(p.items, w, M)
|
|
2978
3002
|
};
|
|
2979
3003
|
} else {
|
|
2980
3004
|
const v = i.findIndex((K) => K.zoneKey === _), p = i.findIndex((K) => K.zoneKey === T), w = i[v], k = i[p], M = w.items.find((K) => K.id === x.id);
|
|
@@ -2988,12 +3012,12 @@ function na(e) {
|
|
|
2988
3012
|
const K = O[O.length - 1];
|
|
2989
3013
|
O = O.slice(0, k.maxItems - 1), $ = [...E, K];
|
|
2990
3014
|
}
|
|
2991
|
-
const j = Math.min(V, O.length),
|
|
3015
|
+
const j = Math.min(V, O.length), oe = [
|
|
2992
3016
|
...O.slice(0, j),
|
|
2993
3017
|
M,
|
|
2994
3018
|
...O.slice(j)
|
|
2995
3019
|
];
|
|
2996
|
-
i[v] = { ...w, items: $ }, i[p] = { ...k, items:
|
|
3020
|
+
i[v] = { ...w, items: $ }, i[p] = { ...k, items: oe };
|
|
2997
3021
|
}
|
|
2998
3022
|
n(i), b.current?.(i), N();
|
|
2999
3023
|
},
|
|
@@ -3006,7 +3030,7 @@ function na(e) {
|
|
|
3006
3030
|
[]
|
|
3007
3031
|
), S = y(
|
|
3008
3032
|
(h) => {
|
|
3009
|
-
const x =
|
|
3033
|
+
const x = De(t, h.id) ?? "";
|
|
3010
3034
|
return {
|
|
3011
3035
|
id: h.id,
|
|
3012
3036
|
"data-item-id": h.id,
|
|
@@ -3022,12 +3046,12 @@ function na(e) {
|
|
|
3022
3046
|
getZoneProps: f,
|
|
3023
3047
|
getItemProps: S,
|
|
3024
3048
|
handleDragStart: C,
|
|
3025
|
-
handleDragOver:
|
|
3049
|
+
handleDragOver: m,
|
|
3026
3050
|
handleDragEnd: c
|
|
3027
3051
|
};
|
|
3028
3052
|
}
|
|
3029
|
-
let
|
|
3030
|
-
const
|
|
3053
|
+
let ne = null, ce = null, he = !1;
|
|
3054
|
+
const oa = [
|
|
3031
3055
|
"DndContext",
|
|
3032
3056
|
"DragOverlay",
|
|
3033
3057
|
"useSensors",
|
|
@@ -3036,22 +3060,22 @@ const ra = [
|
|
|
3036
3060
|
"PointerSensor",
|
|
3037
3061
|
"KeyboardSensor",
|
|
3038
3062
|
"closestCenter"
|
|
3039
|
-
],
|
|
3063
|
+
], ia = [
|
|
3040
3064
|
"SortableContext",
|
|
3041
3065
|
"useSortable",
|
|
3042
3066
|
"verticalListSortingStrategy"
|
|
3043
3067
|
];
|
|
3044
|
-
function
|
|
3068
|
+
function la(e, t) {
|
|
3045
3069
|
const n = [], a = e ?? {};
|
|
3046
|
-
for (const s of
|
|
3070
|
+
for (const s of oa)
|
|
3047
3071
|
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
3048
3072
|
const r = t ?? {};
|
|
3049
|
-
for (const s of
|
|
3073
|
+
for (const s of ia)
|
|
3050
3074
|
r[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
3051
3075
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
3052
3076
|
}
|
|
3053
|
-
function
|
|
3054
|
-
return
|
|
3077
|
+
function ca() {
|
|
3078
|
+
return ne ? Promise.resolve(ne) : he ? Promise.resolve(null) : ce || (ce = (async () => {
|
|
3055
3079
|
try {
|
|
3056
3080
|
const [e, t, n] = await Promise.all([
|
|
3057
3081
|
import("@dnd-kit/core"),
|
|
@@ -3059,31 +3083,31 @@ function ia() {
|
|
|
3059
3083
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
3060
3084
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
3061
3085
|
), {}))
|
|
3062
|
-
]), a =
|
|
3063
|
-
return a.ok ? (
|
|
3086
|
+
]), a = la(e, t);
|
|
3087
|
+
return a.ok ? (ne = {
|
|
3064
3088
|
core: e,
|
|
3065
3089
|
sortable: t,
|
|
3066
3090
|
utilities: n
|
|
3067
|
-
},
|
|
3091
|
+
}, ne) : (he = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
3068
3092
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
3069
3093
|
), null);
|
|
3070
3094
|
} catch {
|
|
3071
|
-
return
|
|
3095
|
+
return he = !0, null;
|
|
3072
3096
|
}
|
|
3073
|
-
})(),
|
|
3097
|
+
})(), ce);
|
|
3074
3098
|
}
|
|
3075
|
-
function
|
|
3076
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o =
|
|
3099
|
+
function da(e) {
|
|
3100
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o = sa({ zones: t, onZoneChange: n }), [d, b] = H.useState(ne);
|
|
3077
3101
|
return H.useEffect(() => {
|
|
3078
3102
|
if (d) return;
|
|
3079
|
-
let
|
|
3080
|
-
return
|
|
3081
|
-
|
|
3103
|
+
let g = !0;
|
|
3104
|
+
return ca().then((u) => {
|
|
3105
|
+
g && b(u);
|
|
3082
3106
|
}), () => {
|
|
3083
|
-
|
|
3107
|
+
g = !1;
|
|
3084
3108
|
};
|
|
3085
3109
|
}, [d]), d ? /* @__PURE__ */ l(
|
|
3086
|
-
|
|
3110
|
+
Be,
|
|
3087
3111
|
{
|
|
3088
3112
|
state: o,
|
|
3089
3113
|
modules: d,
|
|
@@ -3091,23 +3115,23 @@ function la(e) {
|
|
|
3091
3115
|
renderItem: r,
|
|
3092
3116
|
renderDragOverlay: s
|
|
3093
3117
|
}
|
|
3094
|
-
) : /* @__PURE__ */ l("div", { "data-sortable-zones-passive": "true", children: o.zones.map((
|
|
3095
|
-
const
|
|
3096
|
-
return /* @__PURE__ */ l("div", { ...o.getZoneProps(
|
|
3118
|
+
) : /* @__PURE__ */ l("div", { "data-sortable-zones-passive": "true", children: o.zones.map((g) => {
|
|
3119
|
+
const u = g.items.map((C) => /* @__PURE__ */ l(H.Fragment, { children: r(C) }, C.id));
|
|
3120
|
+
return /* @__PURE__ */ l("div", { ...o.getZoneProps(g.zoneKey), children: a(g.zoneKey, g.items, u) }, g.zoneKey);
|
|
3097
3121
|
}) });
|
|
3098
3122
|
}
|
|
3099
|
-
|
|
3100
|
-
function
|
|
3123
|
+
da.displayName = "SortableZones";
|
|
3124
|
+
function Be({
|
|
3101
3125
|
state: e,
|
|
3102
3126
|
modules: t,
|
|
3103
3127
|
renderZone: n,
|
|
3104
3128
|
renderItem: a,
|
|
3105
3129
|
renderDragOverlay: r
|
|
3106
3130
|
}) {
|
|
3107
|
-
const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay:
|
|
3131
|
+
const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay: g, useSensors: u, useSensor: C, useDroppable: m, PointerSensor: c, KeyboardSensor: f, closestCenter: S } = s, { SortableContext: h, verticalListSortingStrategy: x } = o, I = u(
|
|
3108
3132
|
C(c, { activationConstraint: { distance: 5 } }),
|
|
3109
3133
|
C(f)
|
|
3110
|
-
), N = b, _ =
|
|
3134
|
+
), N = b, _ = g, T = h;
|
|
3111
3135
|
return /* @__PURE__ */ A(
|
|
3112
3136
|
N,
|
|
3113
3137
|
{
|
|
@@ -3119,7 +3143,7 @@ function $e({
|
|
|
3119
3143
|
children: [
|
|
3120
3144
|
e.zones.map((i) => {
|
|
3121
3145
|
const v = i.items.map((w) => w.id), p = i.items.map((w) => /* @__PURE__ */ l(
|
|
3122
|
-
|
|
3146
|
+
ze,
|
|
3123
3147
|
{
|
|
3124
3148
|
id: w.id,
|
|
3125
3149
|
useSortable: o.useSortable,
|
|
@@ -3129,11 +3153,11 @@ function $e({
|
|
|
3129
3153
|
w.id
|
|
3130
3154
|
));
|
|
3131
3155
|
return /* @__PURE__ */ l(
|
|
3132
|
-
|
|
3156
|
+
Ke,
|
|
3133
3157
|
{
|
|
3134
3158
|
zoneKey: i.zoneKey,
|
|
3135
3159
|
zoneProps: e.getZoneProps(i.zoneKey),
|
|
3136
|
-
useDroppable:
|
|
3160
|
+
useDroppable: m,
|
|
3137
3161
|
children: /* @__PURE__ */ l(T, { items: v, strategy: x, children: n(i.zoneKey, i.items, p) })
|
|
3138
3162
|
},
|
|
3139
3163
|
i.zoneKey
|
|
@@ -3144,17 +3168,17 @@ function $e({
|
|
|
3144
3168
|
}
|
|
3145
3169
|
);
|
|
3146
3170
|
}
|
|
3147
|
-
|
|
3148
|
-
function
|
|
3149
|
-
const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging:
|
|
3171
|
+
Be.displayName = "SortableZonesInner";
|
|
3172
|
+
function ze({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
3173
|
+
const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging: g } = t({ id: e }), u = {
|
|
3150
3174
|
transform: n?.Transform?.toString(d) ?? void 0,
|
|
3151
3175
|
transition: b,
|
|
3152
|
-
opacity:
|
|
3176
|
+
opacity: g ? 0.5 : 1
|
|
3153
3177
|
};
|
|
3154
|
-
return /* @__PURE__ */ l("div", { ref: o, style:
|
|
3178
|
+
return /* @__PURE__ */ l("div", { ref: o, style: u, "data-sortable-item-id": e, ...r, ...s, children: a });
|
|
3155
3179
|
}
|
|
3156
|
-
|
|
3157
|
-
function
|
|
3180
|
+
ze.displayName = "SortableItem";
|
|
3181
|
+
function Ke({
|
|
3158
3182
|
zoneKey: e,
|
|
3159
3183
|
zoneProps: t,
|
|
3160
3184
|
useDroppable: n,
|
|
@@ -3163,8 +3187,8 @@ function ze({
|
|
|
3163
3187
|
const { setNodeRef: r, isOver: s } = n({ id: e });
|
|
3164
3188
|
return /* @__PURE__ */ l("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
3165
3189
|
}
|
|
3166
|
-
|
|
3167
|
-
function
|
|
3190
|
+
Ke.displayName = "ZoneDroppable";
|
|
3191
|
+
function In({
|
|
3168
3192
|
slotLeft: e,
|
|
3169
3193
|
slotCenter: t,
|
|
3170
3194
|
slotRight: n,
|
|
@@ -3214,7 +3238,7 @@ function Rn({
|
|
|
3214
3238
|
}
|
|
3215
3239
|
);
|
|
3216
3240
|
}
|
|
3217
|
-
function
|
|
3241
|
+
function Pn({
|
|
3218
3242
|
count: e,
|
|
3219
3243
|
currentIndex: t,
|
|
3220
3244
|
onSelect: n,
|
|
@@ -3223,7 +3247,7 @@ function In({
|
|
|
3223
3247
|
pulseIndex: s,
|
|
3224
3248
|
pulseNonce: o
|
|
3225
3249
|
}) {
|
|
3226
|
-
const d =
|
|
3250
|
+
const d = Ye.useRef([]);
|
|
3227
3251
|
return d.current.length = e, /* @__PURE__ */ l(
|
|
3228
3252
|
"div",
|
|
3229
3253
|
{
|
|
@@ -3231,359 +3255,360 @@ function In({
|
|
|
3231
3255
|
"aria-label": a,
|
|
3232
3256
|
"data-testid": "gloss-section-dots",
|
|
3233
3257
|
className: "gloss-section-dots",
|
|
3234
|
-
onKeyDown: (
|
|
3258
|
+
onKeyDown: (g) => {
|
|
3235
3259
|
if (e !== 0) {
|
|
3236
|
-
if (
|
|
3237
|
-
|
|
3238
|
-
const
|
|
3239
|
-
n(
|
|
3240
|
-
} else if (
|
|
3241
|
-
|
|
3242
|
-
const
|
|
3243
|
-
n(
|
|
3260
|
+
if (g.key === "ArrowRight") {
|
|
3261
|
+
g.preventDefault();
|
|
3262
|
+
const u = (t + 1) % e;
|
|
3263
|
+
n(u), requestAnimationFrame(() => d.current[u]?.focus());
|
|
3264
|
+
} else if (g.key === "ArrowLeft") {
|
|
3265
|
+
g.preventDefault();
|
|
3266
|
+
const u = (t - 1 + e) % e;
|
|
3267
|
+
n(u), requestAnimationFrame(() => d.current[u]?.focus());
|
|
3244
3268
|
}
|
|
3245
3269
|
}
|
|
3246
3270
|
},
|
|
3247
|
-
children: Array.from({ length: e }, (
|
|
3271
|
+
children: Array.from({ length: e }, (g, u) => /* @__PURE__ */ l(
|
|
3248
3272
|
"button",
|
|
3249
3273
|
{
|
|
3250
3274
|
ref: (C) => {
|
|
3251
|
-
d.current[
|
|
3275
|
+
d.current[u] = C;
|
|
3252
3276
|
},
|
|
3253
3277
|
type: "button",
|
|
3254
3278
|
role: "tab",
|
|
3255
|
-
"aria-selected":
|
|
3256
|
-
"aria-label":
|
|
3257
|
-
"data-state":
|
|
3258
|
-
"data-section-index":
|
|
3279
|
+
"aria-selected": u === t,
|
|
3280
|
+
"aria-label": u === r ? "Unconfirmed section" : `Section ${u + 1}`,
|
|
3281
|
+
"data-state": u === r ? "provisional-hollow" : u === s ? "pulse" : u === t ? "current" : "hollow",
|
|
3282
|
+
"data-section-index": u,
|
|
3259
3283
|
className: [
|
|
3260
3284
|
"gloss-section-dots__dot",
|
|
3261
|
-
|
|
3285
|
+
u === t && "gloss-section-dots__dot--current"
|
|
3262
3286
|
].filter(Boolean).join(" "),
|
|
3263
|
-
onClick: () => n(
|
|
3287
|
+
onClick: () => n(u)
|
|
3264
3288
|
},
|
|
3265
|
-
|
|
3289
|
+
u === s ? `${u}-${o ?? 0}` : u
|
|
3266
3290
|
))
|
|
3267
3291
|
}
|
|
3268
3292
|
);
|
|
3269
3293
|
}
|
|
3270
|
-
const
|
|
3294
|
+
const ua = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3271
3295
|
const r = { ...n };
|
|
3272
|
-
return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ l(
|
|
3296
|
+
return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ l(Ne, { region: "toolbar", density: e, children: t }) });
|
|
3273
3297
|
});
|
|
3274
|
-
|
|
3275
|
-
const
|
|
3298
|
+
ua.displayName = "ContainerToolbar";
|
|
3299
|
+
const ma = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...r }, s) => {
|
|
3276
3300
|
const o = { ...r };
|
|
3277
3301
|
return delete o.className, delete o.style, /* @__PURE__ */ A("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
3278
3302
|
e && /* @__PURE__ */ l("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
3279
3303
|
t && /* @__PURE__ */ l("p", { className: "gloss-container-form-section__description", children: t }),
|
|
3280
|
-
/* @__PURE__ */ l(
|
|
3304
|
+
/* @__PURE__ */ l(Ne, { region: "form-section", density: n, children: a })
|
|
3281
3305
|
] });
|
|
3282
3306
|
});
|
|
3283
|
-
|
|
3284
|
-
const
|
|
3307
|
+
ma.displayName = "ContainerFormSection";
|
|
3308
|
+
const ga = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3285
3309
|
const r = { ...n };
|
|
3286
|
-
return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ l(
|
|
3310
|
+
return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ l(Ne, { region: "table", density: e, children: t }) });
|
|
3287
3311
|
});
|
|
3288
|
-
|
|
3312
|
+
ga.displayName = "ContainerTable";
|
|
3289
3313
|
export {
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3314
|
+
On as Accordion,
|
|
3315
|
+
An as AccordionContent,
|
|
3316
|
+
Ln as AccordionItem,
|
|
3317
|
+
$n as AccordionTrigger,
|
|
3318
|
+
Bn as ActionStrip,
|
|
3319
|
+
zn as Actionable,
|
|
3320
|
+
Kn as AddressGroup,
|
|
3321
|
+
Wn as AddressSelect,
|
|
3322
|
+
Gn as AsyncLoader,
|
|
3323
|
+
Hn as Autocomplete,
|
|
3324
|
+
Vn as Badge,
|
|
3325
|
+
jn as BarChartCard,
|
|
3326
|
+
Un as BarsBg,
|
|
3327
|
+
In as BottomToolbar,
|
|
3328
|
+
Zn as Button,
|
|
3329
|
+
Yn as ButtonGroup,
|
|
3330
|
+
qn as ButtonGroupContext,
|
|
3331
|
+
Qn as Card,
|
|
3332
|
+
Xn as CardActions,
|
|
3333
|
+
Jn as CardBack,
|
|
3334
|
+
er as CardBody,
|
|
3335
|
+
tr as CardFooter,
|
|
3336
|
+
ar as CardHeader,
|
|
3337
|
+
nr as CardMedia,
|
|
3338
|
+
rr as CardShell,
|
|
3339
|
+
sr as CardSubtitle,
|
|
3340
|
+
or as CardTitle,
|
|
3341
|
+
Rn as CascadePreview,
|
|
3342
|
+
ir as ChartControlBar,
|
|
3343
|
+
lr as Checkbox,
|
|
3344
|
+
cr as CheckboxGroup,
|
|
3345
|
+
dr as Chip,
|
|
3346
|
+
ur as ColorPicker,
|
|
3347
|
+
mr as ComparisonCard,
|
|
3348
|
+
gr as ContactForm,
|
|
3349
|
+
pr as ContainerCard,
|
|
3350
|
+
fr as ContainerCardActions,
|
|
3351
|
+
hr as ContainerCardBody,
|
|
3352
|
+
br as ContainerCardFooter,
|
|
3353
|
+
vr as ContainerCardHeader,
|
|
3354
|
+
yr as ContainerCardMedia,
|
|
3355
|
+
wr as ContainerCardSubtitle,
|
|
3356
|
+
Dr as ContainerCardTitle,
|
|
3357
|
+
Nr as ContainerDialog,
|
|
3358
|
+
Cr as ContainerDialogActions,
|
|
3359
|
+
kr as ContainerDialogBody,
|
|
3360
|
+
_r as ContainerDialogHeader,
|
|
3361
|
+
ma as ContainerFormSection,
|
|
3362
|
+
xr as ContainerPanel,
|
|
3363
|
+
ga as ContainerTable,
|
|
3364
|
+
ua as ContainerToolbar,
|
|
3365
|
+
Sr as CreditCardForm,
|
|
3366
|
+
Mr as DEFAULT_FOOTER_IDS,
|
|
3343
3367
|
ee as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3368
|
+
ai as DEFAULT_MARKET_PRESETS,
|
|
3369
|
+
Tr as DEFAULT_OVERFLOW_IDS,
|
|
3370
|
+
ni as DEFAULT_PINNED,
|
|
3371
|
+
Pe as DEFAULT_RESIZE_PHYSICS,
|
|
3372
|
+
Rr as DataTable,
|
|
3373
|
+
Ir as DatePicker,
|
|
3374
|
+
Pr as DateRangePicker,
|
|
3375
|
+
Fr as DestructiveModal,
|
|
3376
|
+
Ut as DevTuningPanel,
|
|
3377
|
+
Er as DirectionCard,
|
|
3378
|
+
Or as Dismissible,
|
|
3379
|
+
Ar as DistributionCard,
|
|
3380
|
+
Lr as DonutChart,
|
|
3381
|
+
Mn as DragGhost,
|
|
3382
|
+
kn as DropAnchorCell,
|
|
3383
|
+
$r as Dropdown,
|
|
3384
|
+
Br as ENTITY_FILTER_KEYS,
|
|
3385
|
+
zr as ENTITY_PROFILE_ROUTES,
|
|
3386
|
+
Kr as ENTITY_TYPE_PLURAL,
|
|
3387
|
+
bt as EdgeHoverHandle,
|
|
3388
|
+
Sn as EmptyCellPackAffordance,
|
|
3389
|
+
Wr as EntityPicker,
|
|
3390
|
+
Gr as EntitySearchPanel,
|
|
3391
|
+
Hr as Expandable,
|
|
3392
|
+
Vr as ExpandableChip,
|
|
3393
|
+
jr as FLIP_AND_STAGE_TIMINGS,
|
|
3394
|
+
Ur as FileUpload,
|
|
3395
|
+
Zr as FilterChip,
|
|
3396
|
+
Yr as FilterInput,
|
|
3397
|
+
qr as FlipAndStageProvider,
|
|
3398
|
+
Qr as Form,
|
|
3399
|
+
Xr as FormDialog,
|
|
3400
|
+
Jr as FormField,
|
|
3401
|
+
es as FusedShape,
|
|
3402
|
+
vt as GhostPreview,
|
|
3403
|
+
ts as GroupCheckbox,
|
|
3404
|
+
as as GroupRadio,
|
|
3405
|
+
Ka as HARD_CLIP,
|
|
3406
|
+
ns as HighlightCard,
|
|
3407
|
+
rs as HybridDatePicker,
|
|
3408
|
+
ss as ImportWizard,
|
|
3409
|
+
qt as InlineNudge,
|
|
3410
|
+
os as Input,
|
|
3411
|
+
is as InputAddon,
|
|
3412
|
+
ls as InputGroup,
|
|
3413
|
+
cs as Link,
|
|
3414
|
+
ds as LoginForm,
|
|
3415
|
+
us as MarketPresetRow,
|
|
3416
|
+
ms as MaskPresets,
|
|
3417
|
+
gs as MaskedInput,
|
|
3418
|
+
ps as Menu,
|
|
3419
|
+
fs as MenuDivider,
|
|
3420
|
+
hs as MenuGroup,
|
|
3421
|
+
bs as MenuItem,
|
|
3422
|
+
vs as MergePrompt,
|
|
3423
|
+
ys as MetricCard,
|
|
3424
|
+
ws as MetricCardGrid,
|
|
3425
|
+
$t as MetricGroupContainer,
|
|
3426
|
+
Ds as MiniCalendar,
|
|
3427
|
+
Ns as MultiSelect,
|
|
3428
|
+
Cs as NumberInput,
|
|
3429
|
+
ks as ObjectArrow,
|
|
3430
|
+
_s as OrderFilterBar,
|
|
3431
|
+
ri as PERIOD_OPTIONS,
|
|
3432
|
+
xt as PageChip,
|
|
3433
|
+
Fe as PageDropdown,
|
|
3434
|
+
xs as PasswordInput,
|
|
3435
|
+
Ss as PaymentForm,
|
|
3436
|
+
Ms as PaymentMethodSelect,
|
|
3437
|
+
Ts as PhoneInput,
|
|
3438
|
+
Rs as PinToMetric,
|
|
3439
|
+
aa as PresetSwatchRow,
|
|
3440
|
+
Is as ProfileCard,
|
|
3441
|
+
Ps as ProgressCard,
|
|
3442
|
+
Fs as QuickConfigPanel,
|
|
3443
|
+
Ft as RECONFIG_BACKSIDE_LABELS,
|
|
3444
|
+
si as ROLLING_OPTIONS,
|
|
3445
|
+
Es as Radio,
|
|
3446
|
+
Os as RadioGroup,
|
|
3447
|
+
As as RangeSlider,
|
|
3448
|
+
Ls as Rating,
|
|
3449
|
+
At as ReconfigBacksideButtons,
|
|
3450
|
+
$s as RegistrationForm,
|
|
3451
|
+
Cn as ResizeEnvelope,
|
|
3452
|
+
Bs as Row1Controls,
|
|
3453
|
+
zs as Row2FilterTray,
|
|
3454
|
+
Ks as SearchInput,
|
|
3455
|
+
xn as SectionDivider,
|
|
3456
|
+
Pn as SectionDots,
|
|
3457
|
+
Ws as SegmentCard,
|
|
3458
|
+
Gs as SegmentedControl,
|
|
3459
|
+
Hs as Select,
|
|
3460
|
+
Vs as Selectable,
|
|
3461
|
+
js as SimpleMetricCard,
|
|
3462
|
+
Us as SimpleSelector,
|
|
3463
|
+
Zs as Skeleton,
|
|
3464
|
+
Ys as SkeletonCard,
|
|
3465
|
+
qs as SkeletonChart,
|
|
3466
|
+
Qs as SkeletonTable,
|
|
3467
|
+
Xs as Slider,
|
|
3468
|
+
Tn as SnapOutline,
|
|
3469
|
+
Js as Sortable,
|
|
3470
|
+
da as SortableZones,
|
|
3471
|
+
eo as SparklineBg,
|
|
3472
|
+
_n as SpilloverArc,
|
|
3473
|
+
to as SplitButton,
|
|
3474
|
+
ao as StackedGroupCard,
|
|
3475
|
+
no as StatusModeCard,
|
|
3476
|
+
ft as StatusSlotChipMenu,
|
|
3477
|
+
ro as Stepper,
|
|
3478
|
+
ht as SwingReveal,
|
|
3479
|
+
oi as TODAY_PRESET,
|
|
3455
3480
|
J as TUNING_DEFAULTS,
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3481
|
+
Le as TUNING_STORAGE_KEY,
|
|
3482
|
+
so as TabGroup,
|
|
3483
|
+
oo as TabbedDataView,
|
|
3484
|
+
io as TagInput,
|
|
3485
|
+
lo as Textarea,
|
|
3486
|
+
Jt as ThresholdRamp,
|
|
3487
|
+
co as TimeFrame,
|
|
3488
|
+
uo as TimePicker,
|
|
3489
|
+
mo as Toggle,
|
|
3490
|
+
go as Tooltip,
|
|
3491
|
+
po as Transition,
|
|
3492
|
+
fo as TransitionGroup,
|
|
3493
|
+
ho as TrendCard,
|
|
3494
|
+
bo as TrendIndicator,
|
|
3495
|
+
Jo as UIContext,
|
|
3496
|
+
Ne as UIContextProvider,
|
|
3497
|
+
vo as UnifiedBreakdownTable,
|
|
3498
|
+
yo as UnifiedContextMenu,
|
|
3499
|
+
yt as VelocityBuffer,
|
|
3500
|
+
wo as addressGroupMetadata,
|
|
3501
|
+
Do as addressSchema,
|
|
3502
|
+
Sa as allChips,
|
|
3503
|
+
Ua as allStateFixtures,
|
|
3504
|
+
ja as allVariantFixtures,
|
|
3505
|
+
Ia as blockSamples,
|
|
3506
|
+
No as buildDefaultOverflow,
|
|
3507
|
+
Aa as cardSamples,
|
|
3508
|
+
La as cascadePhysics,
|
|
3509
|
+
Ea as chartSamples,
|
|
3510
|
+
Fa as circleSamples,
|
|
3511
|
+
Wa as colorTokens,
|
|
3512
|
+
hn as compactLayout,
|
|
3513
|
+
rn as compactState,
|
|
3514
|
+
Va as computeGutterAnchorX,
|
|
3515
|
+
Co as contactFormMetadata,
|
|
3516
|
+
ko as contactSchema,
|
|
3517
|
+
sn as contextMenuFixtures,
|
|
3518
|
+
_o as creditCardFormMetadata,
|
|
3519
|
+
xo as creditCardSchema,
|
|
3520
|
+
ut as dateChip,
|
|
3521
|
+
Ae as defaultControlBarState,
|
|
3522
|
+
So as destructiveModalMetadata,
|
|
3523
|
+
Mo as durations,
|
|
3524
|
+
To as easings,
|
|
3525
|
+
Nt as emptyFixture,
|
|
3526
|
+
ct as entityChip,
|
|
3527
|
+
Rt as entityNameActions,
|
|
3528
|
+
Ta as entityTabGroup,
|
|
3529
|
+
Dt as errorFixture,
|
|
3530
|
+
nn as filteredState,
|
|
3531
|
+
ii as findPreset,
|
|
3532
|
+
li as formatDateRange,
|
|
3533
|
+
ci as formatMarketDates,
|
|
3534
|
+
di as formatTrend,
|
|
3535
|
+
ui as formatValue,
|
|
3536
|
+
vn as fullLayout,
|
|
3537
|
+
mi as generateMarketId,
|
|
3538
|
+
Ro as generateTabId,
|
|
3539
|
+
gi as getAllPresets,
|
|
3540
|
+
pi as getDateRangeForPreset,
|
|
3541
|
+
Io as getMenuActions,
|
|
3542
|
+
Ga as getMotionMode,
|
|
3543
|
+
fi as getPresetLabel,
|
|
3544
|
+
Po as getTransitionStyle,
|
|
3545
|
+
fn as gridCards,
|
|
3546
|
+
Fo as interpolate,
|
|
3547
|
+
hi as isInRange,
|
|
3548
|
+
bi as isMarketActive,
|
|
3549
|
+
vi as isSameDay,
|
|
3550
|
+
an as itemColumns,
|
|
3551
|
+
en as itemRows,
|
|
3552
|
+
wt as loadingFixture,
|
|
3553
|
+
Eo as loginFormMetadata,
|
|
3554
|
+
Oo as loginSchema,
|
|
3555
|
+
mt as manufacturerChip,
|
|
3556
|
+
Nn as manyTabs,
|
|
3557
|
+
Ao as mergeHandlers,
|
|
3558
|
+
Lo as mergeRefs,
|
|
3559
|
+
Ma as metricTabGroup,
|
|
3560
|
+
wn as mixedTabs,
|
|
3561
|
+
yi as normalizePresetId,
|
|
3562
|
+
Pt as numericActions,
|
|
3563
|
+
tn as orderColumns,
|
|
3564
|
+
It as orderIdActions,
|
|
3565
|
+
Ja as orderRows,
|
|
3566
|
+
yn as ordersTabs,
|
|
3567
|
+
$o as parseNumericValue,
|
|
3568
|
+
Bo as paymentFormMetadata,
|
|
3569
|
+
zo as paymentSchema,
|
|
3570
|
+
Ko as presets,
|
|
3571
|
+
Ba as provisional,
|
|
3572
|
+
za as reducedMotion,
|
|
3573
|
+
Wo as registrationFormMetadata,
|
|
3574
|
+
Go as registrationSchema,
|
|
3575
|
+
$a as rejectionFeedback,
|
|
3576
|
+
ln as sampleCompareRanges,
|
|
3577
|
+
un as sampleCustomMarkets,
|
|
3578
|
+
on as sampleDateRange,
|
|
3579
|
+
mn as sampleMarketPresetData,
|
|
3580
|
+
dn as sampleMarkets,
|
|
3581
|
+
pn as samplePeriodPresets,
|
|
3582
|
+
cn as samplePreferences,
|
|
3583
|
+
gn as samplePresets,
|
|
3584
|
+
Dn as singleTab,
|
|
3585
|
+
Za as sparklineFixture,
|
|
3586
|
+
Ya as sparklineUpFixture,
|
|
3587
|
+
_t as staleDonutFixture,
|
|
3588
|
+
Ct as staleFixture,
|
|
3589
|
+
kt as staleSparklineFixture,
|
|
3590
|
+
qa as standardFixture,
|
|
3591
|
+
Xa as standardFlatFixture,
|
|
3592
|
+
bn as standardLayout,
|
|
3593
|
+
Qa as standardNegativeFixture,
|
|
3594
|
+
dt as statusChip,
|
|
3595
|
+
ae as swingReveal,
|
|
3596
|
+
Oa as tableSamples,
|
|
3597
|
+
Pa as textSamples,
|
|
3598
|
+
Ra as timeFrameTabGroup,
|
|
3599
|
+
wi as toUppercasePresetId,
|
|
3600
|
+
xa as useArrowNavigation,
|
|
3601
|
+
Ho as useCheckboxGroupContext,
|
|
3602
|
+
Ha as useEdgeHoverResize,
|
|
3603
|
+
Vo as useFilterLayout,
|
|
3604
|
+
jo as useFlipAndStage,
|
|
3605
|
+
Uo as useFlipAndStageContext,
|
|
3606
|
+
Zo as useFlipAndStageContextOptional,
|
|
3607
|
+
_a as useFocusReturn,
|
|
3608
|
+
Yo as useFocusTrap,
|
|
3609
|
+
qo as useFormContext,
|
|
3610
|
+
Qo as useRadioGroupContext,
|
|
3611
|
+
Kt as useResizeTuning,
|
|
3612
|
+
sa as useSortableZones,
|
|
3613
|
+
ei as useUIContext
|
|
3589
3614
|
};
|