@mt-gloss/ui 0.0.19 → 0.0.20
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/{Expandable-B7Umnd4T.js → Expandable-hoPnf93I.js} +622 -610
- package/catalog.js +19 -19
- package/index.js +1070 -908
- package/lib/composites/dashboard/QuickConfigPanel/QuickConfigPanel.d.ts +8 -3
- package/lib/composites/dashboard/QuickConfigPanel/types.d.ts +17 -3
- package/lib/primitives/dashboard/MetricCardGrid/MetricCardGrid.d.ts +11 -5
- package/lib/wrappers/SortableZones/useSortableZones.d.ts +10 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { B as
|
|
5
|
-
import { a as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
8
|
-
function
|
|
9
|
-
const { enabled: t = !0, returnTo: r } = e, a =
|
|
10
|
-
return
|
|
1
|
+
import { N as oa, T as sa, O as ia, Q as la, b2 as da, av as ca, ad as ua, Z as ma, aj as pa, K as ga, a4 as ba, bl as fa, P as ha, B as va, a as ya, y as Ca, H as wa, be as Da, F as Na, J as Sa, A as ka, z as xa, bd as Ta, E as Ia, D as Ra, bu as _a, b as Ma, C as Pa, L as Fa, o as Ea, a9 as Oa, aJ as Aa, y as La, H as $a, F as Ba, J as Ka, A as Ga, z as Ha, E as za, D as Za, aX as Va, a_ as Wa, aZ as Ya, aY as qa, a$ as Ua, ay as ja, am as Qa, k as Xa, m as Ja, aB as er, a7 as tr, b4 as ar, a5 as rr, bm as nr, Y as or, bE as sr, bD as ir, bF as lr, al as dr, aM as cr, b6 as ur, bJ as mr, bs as pr, n as gr, ai as br, by as fr, bp as hr, a0 as vr, an as yr, a2 as Cr, bx as wr, G as Dr, d as Nr, bg as Sr, a6 as kr, bG as xr, aP as Tr, r as Ir, v as Rr, I as _r, g as Mr, as as Pr, bK as Fr, M as Er, w as Or, U as Ar, X as Lr, V as $r, W as Br, ao as Kr, bc as Gr, bM as Hr, bI as zr, ak as Zr, t as Vr, bn as Wr, aO as Yr, af as qr, aG as Ur, ac as jr, ah as Qr, aq as Xr, aN as Jr, a8 as en, ap as tn, c as an, R as rn, j as nn, p as on, aD as sn, bv as ln, bw as dn, ae as cn, aa as un, h as mn, x as pn, b3 as gn, ab as bn, bL as fn, b8 as hn, bb as vn, b9 as yn, ba as Cn, i as wn, b5 as Dn, bk as Nn, S as Sn, bh as kn, bi as xn, ar as Tn, b7 as In, bN as Rn, ag as _n, s as Mn, bH as Pn, l as Fn, f as En, q as On, _ as An, $ as Ln, a3 as $n, bf as Bn, bt as Kn, bA as Gn, aw as Hn, ax as zn, aK as Zn, aL as Vn, az as Wn, aA as Yn, aC as qn, aR as Un, aS as jn, bC as Qn, bB as Xn, aU as Jn, aV as eo, at as to, au as ao, b1 as ro, b0 as no, aW as oo, aH as so, aI as io, aT as lo, aE as co, aF as uo, u as mo, bz as po, bo as go, bq as bo, br as fo, aQ as ho, a1 as vo, e as yo, bj as Co } from "./Expandable-hoPnf93I.js";
|
|
2
|
+
import { jsxs as A, jsx as h } from "react/jsx-runtime";
|
|
3
|
+
import F, { useRef as _, useEffect as P, useState as O, useCallback as w, forwardRef as he, useMemo as se, createContext as ve, useContext as ye } from "react";
|
|
4
|
+
import { B as Ce, U as X } from "./UIContext-C3E-k7HI.js";
|
|
5
|
+
import { a as Do, u as No } from "./UIContext-C3E-k7HI.js";
|
|
6
|
+
import { createPortal as we } from "react-dom";
|
|
7
|
+
import { DEFAULT_MARKET_PRESETS as ko, DEFAULT_PINNED as xo, PERIOD_OPTIONS as To, ROLLING_OPTIONS as Io, TODAY_PRESET as Ro, findPreset as _o, formatDateRange as Mo, formatMarketDates as Po, formatTrend as Fo, formatValue as Eo, generateMarketId as Oo, getAllPresets as Ao, getDateRangeForPreset as Lo, getPresetLabel as $o, isInRange as Bo, isMarketActive as Ko, isSameDay as Go, normalizePresetId as Ho, toUppercasePresetId as zo } from "@mt-gloss/utils";
|
|
8
|
+
function gt(e = {}) {
|
|
9
|
+
const { enabled: t = !0, returnTo: r } = e, a = _(null);
|
|
10
|
+
return P(() => {
|
|
11
11
|
t && (a.current = r || document.activeElement);
|
|
12
|
-
}, [t, r]),
|
|
12
|
+
}, [t, r]), P(() => () => {
|
|
13
13
|
t && a.current && setTimeout(() => {
|
|
14
14
|
a.current?.focus?.();
|
|
15
15
|
}, 0);
|
|
16
16
|
}, [t]), a;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function bt(e) {
|
|
19
19
|
const {
|
|
20
20
|
items: t,
|
|
21
21
|
activeIndex: r,
|
|
22
22
|
onActiveIndexChange: a,
|
|
23
23
|
loop: n = !0,
|
|
24
|
-
orientation:
|
|
25
|
-
enabled:
|
|
26
|
-
isItemDisabled:
|
|
27
|
-
onSelect:
|
|
28
|
-
onEscape:
|
|
29
|
-
} = e, [
|
|
30
|
-
(
|
|
31
|
-
r === void 0 &&
|
|
24
|
+
orientation: s = "vertical",
|
|
25
|
+
enabled: i = !0,
|
|
26
|
+
isItemDisabled: c,
|
|
27
|
+
onSelect: g,
|
|
28
|
+
onEscape: u
|
|
29
|
+
} = e, [C, N] = O(-1), m = r !== void 0 ? r : C, p = w(
|
|
30
|
+
(o) => {
|
|
31
|
+
r === void 0 && N(o), a?.(o);
|
|
32
32
|
},
|
|
33
33
|
[r, a]
|
|
34
|
-
),
|
|
35
|
-
(
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
let
|
|
42
|
-
return n ?
|
|
34
|
+
), S = w(() => t.map((o, f) => ({ item: o, index: f })).filter(({ item: o, index: f }) => !c?.(o, f)).map(({ index: o }) => o), [t, c]), T = w(
|
|
35
|
+
(o, f) => {
|
|
36
|
+
const y = S();
|
|
37
|
+
if (y.length === 0) return -1;
|
|
38
|
+
const D = y.indexOf(o);
|
|
39
|
+
if (D === -1)
|
|
40
|
+
return f === 1 ? y.find((R) => R > o) ?? (n ? y[0] : -1) : [...y].reverse().find((M) => M < o) ?? (n ? y[y.length - 1] : -1);
|
|
41
|
+
let k = D + f;
|
|
42
|
+
return n ? k = (k + y.length) % y.length : k = Math.max(0, Math.min(y.length - 1, k)), y[k];
|
|
43
43
|
},
|
|
44
|
-
[
|
|
45
|
-
),
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
(
|
|
61
|
-
if (!
|
|
62
|
-
const { key:
|
|
63
|
-
if (
|
|
64
|
-
|
|
44
|
+
[S, n]
|
|
45
|
+
), b = w(() => {
|
|
46
|
+
const o = S();
|
|
47
|
+
o.length > 0 && p(o[0]);
|
|
48
|
+
}, [S, p]), x = w(() => {
|
|
49
|
+
const o = S();
|
|
50
|
+
o.length > 0 && p(o[o.length - 1]);
|
|
51
|
+
}, [S, p]), I = w(() => {
|
|
52
|
+
const o = T(m, 1);
|
|
53
|
+
o !== -1 && p(o);
|
|
54
|
+
}, [m, T, p]), l = w(() => {
|
|
55
|
+
const o = T(m, -1);
|
|
56
|
+
o !== -1 && p(o);
|
|
57
|
+
}, [m, T, p]), v = w(() => {
|
|
58
|
+
p(-1);
|
|
59
|
+
}, [p]), d = w(
|
|
60
|
+
(o) => {
|
|
61
|
+
if (!i) return;
|
|
62
|
+
const { key: f } = o, y = f === "ArrowUp" && (s === "vertical" || s === "both"), D = f === "ArrowDown" && (s === "vertical" || s === "both"), k = f === "ArrowLeft" && (s === "horizontal" || s === "both"), R = f === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
63
|
+
if (y || k) {
|
|
64
|
+
o.preventDefault(), m === -1 ? x() : l();
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
|
|
67
|
+
if (D || R) {
|
|
68
|
+
o.preventDefault(), m === -1 ? b() : I();
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
if (
|
|
72
|
-
|
|
71
|
+
if (f === "Home") {
|
|
72
|
+
o.preventDefault(), b();
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
|
|
75
|
+
if (f === "End") {
|
|
76
|
+
o.preventDefault(), x();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
if ((
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
79
|
+
if ((f === "Enter" || f === " ") && m >= 0 && m < t.length) {
|
|
80
|
+
o.preventDefault();
|
|
81
|
+
const M = t[m];
|
|
82
|
+
c?.(M, m) || g?.(M, m);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (f === "Escape") {
|
|
86
|
+
u?.();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
[
|
|
91
|
+
i,
|
|
91
92
|
s,
|
|
92
|
-
|
|
93
|
-
l,
|
|
93
|
+
m,
|
|
94
94
|
t,
|
|
95
|
-
k,
|
|
96
95
|
b,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
g
|
|
96
|
+
x,
|
|
97
|
+
I,
|
|
98
|
+
l,
|
|
99
|
+
c,
|
|
100
|
+
g,
|
|
101
|
+
u
|
|
102
102
|
]
|
|
103
103
|
);
|
|
104
104
|
return {
|
|
105
|
-
focusedIndex:
|
|
106
|
-
setFocusedIndex:
|
|
107
|
-
handleKeyDown:
|
|
108
|
-
focusFirst:
|
|
109
|
-
focusLast:
|
|
110
|
-
focusNext:
|
|
111
|
-
focusPrevious:
|
|
112
|
-
resetFocus:
|
|
105
|
+
focusedIndex: m,
|
|
106
|
+
setFocusedIndex: p,
|
|
107
|
+
handleKeyDown: d,
|
|
108
|
+
focusFirst: b,
|
|
109
|
+
focusLast: x,
|
|
110
|
+
focusNext: I,
|
|
111
|
+
focusPrevious: l,
|
|
112
|
+
resetFocus: v
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
const
|
|
116
|
-
},
|
|
115
|
+
const z = (e) => {
|
|
116
|
+
}, De = {
|
|
117
117
|
id: "entity-filter-1",
|
|
118
118
|
label: "Customer: Acme Corp",
|
|
119
119
|
field: "customer",
|
|
120
120
|
value: "acme-corp-123",
|
|
121
|
-
onRemove:
|
|
122
|
-
},
|
|
121
|
+
onRemove: z
|
|
122
|
+
}, Ne = {
|
|
123
123
|
id: "status-filter-1",
|
|
124
124
|
label: "Status: Open",
|
|
125
125
|
field: "status",
|
|
126
126
|
value: "open",
|
|
127
|
-
onRemove:
|
|
128
|
-
},
|
|
127
|
+
onRemove: z
|
|
128
|
+
}, Se = {
|
|
129
129
|
id: "date-filter-1",
|
|
130
130
|
label: "Date: Mar 1 - Mar 15",
|
|
131
131
|
field: "dateRange",
|
|
132
132
|
value: "2026-03-01..2026-03-15",
|
|
133
|
-
onRemove:
|
|
134
|
-
},
|
|
133
|
+
onRemove: z
|
|
134
|
+
}, ke = {
|
|
135
135
|
id: "mfg-filter-1",
|
|
136
136
|
label: "Manufacturer: Widget Co",
|
|
137
137
|
field: "manufacturer",
|
|
138
138
|
value: "widget-co-456",
|
|
139
|
-
onRemove:
|
|
140
|
-
},
|
|
141
|
-
Ce,
|
|
142
|
-
ye,
|
|
139
|
+
onRemove: z
|
|
140
|
+
}, ft = [
|
|
143
141
|
De,
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
Ne,
|
|
143
|
+
Se,
|
|
144
|
+
ke
|
|
145
|
+
], ht = {
|
|
146
146
|
id: "metric-toggle",
|
|
147
147
|
tabs: [
|
|
148
148
|
{ id: "$", label: "$", mono: !0 },
|
|
149
149
|
{ id: "#", label: "#", mono: !0 }
|
|
150
150
|
]
|
|
151
|
-
},
|
|
151
|
+
}, vt = {
|
|
152
152
|
id: "entity-type",
|
|
153
153
|
tabs: [
|
|
154
154
|
{ id: "orders", label: "Orders" },
|
|
@@ -156,7 +156,7 @@ const K = (e) => {
|
|
|
156
156
|
{ id: "customers", label: "Customers" },
|
|
157
157
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
158
158
|
]
|
|
159
|
-
},
|
|
159
|
+
}, yt = {
|
|
160
160
|
id: "time-frame",
|
|
161
161
|
tabs: [
|
|
162
162
|
{ id: "MTD", label: "MTD" },
|
|
@@ -164,30 +164,30 @@ const K = (e) => {
|
|
|
164
164
|
{ id: "YTD", label: "YTD" },
|
|
165
165
|
{ id: "LYTD", label: "LYTD" }
|
|
166
166
|
]
|
|
167
|
-
},
|
|
167
|
+
}, Ct = [
|
|
168
168
|
{ variant: "block", width: "100%", height: 16 },
|
|
169
169
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
170
170
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
171
171
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
172
|
-
],
|
|
172
|
+
], wt = [
|
|
173
173
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
174
174
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
175
175
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
176
|
-
],
|
|
176
|
+
], Dt = [
|
|
177
177
|
{ variant: "circle", size: 24 },
|
|
178
178
|
{ variant: "circle", size: 40 },
|
|
179
179
|
{ variant: "circle", size: 64 }
|
|
180
|
-
],
|
|
180
|
+
], Nt = [
|
|
181
181
|
{ bars: 10, maxHeight: 120 },
|
|
182
182
|
{ bars: 5, maxHeight: 80 }
|
|
183
|
-
],
|
|
183
|
+
], St = [
|
|
184
184
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
185
185
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
186
|
-
],
|
|
186
|
+
], kt = [
|
|
187
187
|
{ variant: "value", colSpan: 1 },
|
|
188
188
|
{ variant: "trend", colSpan: 2 },
|
|
189
189
|
{ variant: "target", colSpan: 1 }
|
|
190
|
-
],
|
|
190
|
+
], ae = {
|
|
191
191
|
position: "fixed",
|
|
192
192
|
zIndex: 9999,
|
|
193
193
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -213,147 +213,147 @@ const K = (e) => {
|
|
|
213
213
|
width: "100%",
|
|
214
214
|
textAlign: "left",
|
|
215
215
|
border: "none"
|
|
216
|
-
}),
|
|
216
|
+
}), xe = (e) => ({
|
|
217
217
|
...Y(e),
|
|
218
218
|
color: e ? "#4338ca" : "#4f46e5",
|
|
219
219
|
fontWeight: 600
|
|
220
|
-
}),
|
|
220
|
+
}), Te = {
|
|
221
221
|
height: 1,
|
|
222
222
|
background: "rgba(0,0,0,0.06)",
|
|
223
223
|
margin: "3px 10px"
|
|
224
224
|
};
|
|
225
|
-
function
|
|
225
|
+
function Ie({
|
|
226
226
|
open: e,
|
|
227
227
|
anchorEl: t,
|
|
228
228
|
statusId: r,
|
|
229
229
|
onOpenInTable: a,
|
|
230
230
|
onShowOnGraph: n,
|
|
231
|
-
overflowActions:
|
|
232
|
-
onClose:
|
|
231
|
+
overflowActions: s,
|
|
232
|
+
onClose: i
|
|
233
233
|
}) {
|
|
234
|
-
const [
|
|
235
|
-
if (!t) return { ...
|
|
236
|
-
const
|
|
234
|
+
const [c, g] = O(null), u = _(null), C = w(() => {
|
|
235
|
+
if (!t) return { ...ae, top: 0, left: 0 };
|
|
236
|
+
const p = t.getBoundingClientRect();
|
|
237
237
|
return {
|
|
238
|
-
...
|
|
239
|
-
top:
|
|
240
|
-
left:
|
|
238
|
+
...ae,
|
|
239
|
+
top: p.bottom + 4,
|
|
240
|
+
left: p.left
|
|
241
241
|
};
|
|
242
242
|
}, [t]);
|
|
243
|
-
if (
|
|
243
|
+
if (P(() => {
|
|
244
244
|
if (!e) return;
|
|
245
|
-
const
|
|
246
|
-
|
|
245
|
+
const p = (S) => {
|
|
246
|
+
S.key === "Escape" && i();
|
|
247
247
|
};
|
|
248
|
-
return document.addEventListener("keydown",
|
|
249
|
-
}, [e,
|
|
248
|
+
return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
|
|
249
|
+
}, [e, i]), P(() => {
|
|
250
250
|
if (!e) return;
|
|
251
|
-
const
|
|
252
|
-
|
|
251
|
+
const p = (S) => {
|
|
252
|
+
u.current && !u.current.contains(S.target) && i();
|
|
253
253
|
};
|
|
254
|
-
return document.addEventListener("pointerdown",
|
|
255
|
-
}, [e,
|
|
256
|
-
const
|
|
254
|
+
return document.addEventListener("pointerdown", p, !0), () => document.removeEventListener("pointerdown", p, !0);
|
|
255
|
+
}, [e, i]), !e) return null;
|
|
256
|
+
const N = s && s.length > 0, m = /* @__PURE__ */ A(
|
|
257
257
|
"div",
|
|
258
258
|
{
|
|
259
|
-
ref:
|
|
259
|
+
ref: u,
|
|
260
260
|
"data-status-chip-menu": r,
|
|
261
261
|
role: "menu",
|
|
262
262
|
"aria-label": "Status actions",
|
|
263
|
-
style:
|
|
263
|
+
style: C(),
|
|
264
264
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ h(
|
|
266
266
|
"button",
|
|
267
267
|
{
|
|
268
268
|
role: "menuitem",
|
|
269
|
-
style:
|
|
270
|
-
onMouseEnter: () =>
|
|
271
|
-
onMouseLeave: () =>
|
|
269
|
+
style: xe(c === "__primary"),
|
|
270
|
+
onMouseEnter: () => g("__primary"),
|
|
271
|
+
onMouseLeave: () => g(null),
|
|
272
272
|
onClick: () => {
|
|
273
|
-
a(r),
|
|
273
|
+
a(r), i();
|
|
274
274
|
},
|
|
275
275
|
children: "Open in table"
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ h(
|
|
279
279
|
"button",
|
|
280
280
|
{
|
|
281
281
|
role: "menuitem",
|
|
282
|
-
style: Y(
|
|
283
|
-
onMouseEnter: () =>
|
|
284
|
-
onMouseLeave: () =>
|
|
282
|
+
style: Y(c === "__graph"),
|
|
283
|
+
onMouseEnter: () => g("__graph"),
|
|
284
|
+
onMouseLeave: () => g(null),
|
|
285
285
|
onClick: () => {
|
|
286
|
-
n(r),
|
|
286
|
+
n(r), i();
|
|
287
287
|
},
|
|
288
288
|
children: "Show on graph"
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
N && /* @__PURE__ */ h("div", { style: Te }),
|
|
292
|
+
N && s?.map((p) => /* @__PURE__ */ h(
|
|
293
293
|
"button",
|
|
294
294
|
{
|
|
295
295
|
role: "menuitem",
|
|
296
|
-
style: Y(
|
|
297
|
-
onMouseEnter: () =>
|
|
298
|
-
onMouseLeave: () =>
|
|
296
|
+
style: Y(c === p.id),
|
|
297
|
+
onMouseEnter: () => g(p.id),
|
|
298
|
+
onMouseLeave: () => g(null),
|
|
299
299
|
onClick: () => {
|
|
300
|
-
|
|
300
|
+
p.onSelect(r), i();
|
|
301
301
|
},
|
|
302
|
-
children:
|
|
302
|
+
children: p.label
|
|
303
303
|
},
|
|
304
|
-
|
|
304
|
+
p.id
|
|
305
305
|
))
|
|
306
306
|
]
|
|
307
307
|
}
|
|
308
308
|
);
|
|
309
|
-
return
|
|
309
|
+
return we(m, document.body);
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
const
|
|
313
|
-
function({ state: t, onPointerDown: r, onPointerUp: a, onPointerEnter: n, onPointerLeave:
|
|
314
|
-
const
|
|
311
|
+
Ie.displayName = "StatusSlotChipMenu";
|
|
312
|
+
const Re = he(
|
|
313
|
+
function({ state: t, onPointerDown: r, onPointerUp: a, onPointerEnter: n, onPointerLeave: s, edge: i = "right", ariaLabel: c = "Resize card" }, g) {
|
|
314
|
+
const u = t === "handle-visible" || t === "dragging", C = (m) => {
|
|
315
315
|
try {
|
|
316
|
-
|
|
316
|
+
m.currentTarget.setPointerCapture(m.pointerId);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
|
-
r(
|
|
320
|
-
},
|
|
319
|
+
r(m);
|
|
320
|
+
}, N = (m) => {
|
|
321
321
|
try {
|
|
322
|
-
|
|
322
|
+
m.currentTarget.hasPointerCapture?.(m.pointerId) && m.currentTarget.releasePointerCapture(m.pointerId);
|
|
323
323
|
} catch {
|
|
324
324
|
}
|
|
325
|
-
a(
|
|
325
|
+
a(m);
|
|
326
326
|
};
|
|
327
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ h(
|
|
328
328
|
"button",
|
|
329
329
|
{
|
|
330
|
-
ref:
|
|
330
|
+
ref: g,
|
|
331
331
|
type: "button",
|
|
332
|
-
"aria-label":
|
|
333
|
-
"data-edge":
|
|
332
|
+
"aria-label": c,
|
|
333
|
+
"data-edge": i,
|
|
334
334
|
"data-resize-state": t,
|
|
335
335
|
className: [
|
|
336
336
|
"gloss-edge-handle",
|
|
337
|
-
`gloss-edge-handle--${
|
|
338
|
-
|
|
337
|
+
`gloss-edge-handle--${i}`,
|
|
338
|
+
u ? "gloss-edge-handle--visible" : ""
|
|
339
339
|
].filter(Boolean).join(" "),
|
|
340
|
-
onPointerDown:
|
|
341
|
-
onPointerUp:
|
|
340
|
+
onPointerDown: C,
|
|
341
|
+
onPointerUp: N,
|
|
342
342
|
onPointerEnter: n,
|
|
343
|
-
onPointerLeave:
|
|
344
|
-
tabIndex:
|
|
343
|
+
onPointerLeave: s,
|
|
344
|
+
tabIndex: u ? 0 : -1
|
|
345
345
|
}
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
348
|
);
|
|
349
|
-
|
|
350
|
-
function
|
|
349
|
+
Re.displayName = "EdgeHoverHandle";
|
|
350
|
+
function _e({
|
|
351
351
|
visible: e,
|
|
352
352
|
targetColSpan: t,
|
|
353
353
|
enterMs: r = 180,
|
|
354
354
|
exitMs: a = 120
|
|
355
355
|
}) {
|
|
356
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ h(
|
|
357
357
|
"div",
|
|
358
358
|
{
|
|
359
359
|
"aria-hidden": "true",
|
|
@@ -367,96 +367,87 @@ function ke({
|
|
|
367
367
|
}
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
|
-
|
|
371
|
-
function
|
|
370
|
+
_e.displayName = "GhostPreview";
|
|
371
|
+
function xt({
|
|
372
372
|
currentColSpan: e,
|
|
373
373
|
stackable: t,
|
|
374
374
|
onResize: r,
|
|
375
375
|
onCancel: a,
|
|
376
376
|
dwellMs: n = 120,
|
|
377
|
-
enterMs:
|
|
378
|
-
exitMs:
|
|
377
|
+
enterMs: s = 180,
|
|
378
|
+
exitMs: i = 120
|
|
379
379
|
}) {
|
|
380
|
-
const [
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}, [
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
}, []),
|
|
387
|
-
|
|
388
|
-
}, [n]),
|
|
389
|
-
|
|
390
|
-
}, [
|
|
391
|
-
(
|
|
392
|
-
|
|
380
|
+
const [c, g] = O("idle"), [u, C] = O(e), N = _(null), m = _(null), p = _("idle");
|
|
381
|
+
P(() => {
|
|
382
|
+
p.current = c;
|
|
383
|
+
}, [c]);
|
|
384
|
+
const S = 180, T = w(() => {
|
|
385
|
+
N.current && (clearTimeout(N.current), N.current = null);
|
|
386
|
+
}, []), b = w(() => {
|
|
387
|
+
g((d) => d !== "idle" ? d : (N.current = setTimeout(() => g("handle-visible"), n), "dwelling"));
|
|
388
|
+
}, [n]), x = w(() => {
|
|
389
|
+
T(), g((d) => d === "dwelling" || d === "handle-visible" ? "idle" : d);
|
|
390
|
+
}, [T]), I = w(
|
|
391
|
+
(d) => {
|
|
392
|
+
p.current === "handle-visible" && (m.current = d.clientX, p.current = "dragging", g("dragging"));
|
|
393
393
|
},
|
|
394
394
|
[]
|
|
395
|
-
),
|
|
396
|
-
(
|
|
397
|
-
if (
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
400
|
-
const
|
|
401
|
-
r({ direction:
|
|
395
|
+
), l = w(
|
|
396
|
+
(d) => {
|
|
397
|
+
if (p.current !== "dragging") return;
|
|
398
|
+
const o = d.clientX - (m.current ?? d.clientX), f = Math.round(o / S), y = Math.min(3, Math.max(1, e + f)), D = y !== e;
|
|
399
|
+
if (g(D ? "committed" : "cancelled"), D) {
|
|
400
|
+
const k = y > e ? "grow" : "shrink";
|
|
401
|
+
r({ direction: k, targetColSpan: y, mode: t ? "slot-fill" : "sparkline-fidelity" });
|
|
402
402
|
} else
|
|
403
403
|
a?.();
|
|
404
404
|
},
|
|
405
405
|
[e, t, r, a]
|
|
406
|
-
),
|
|
407
|
-
|
|
408
|
-
}, [
|
|
409
|
-
return
|
|
410
|
-
if (
|
|
411
|
-
const
|
|
412
|
-
|
|
406
|
+
), v = w(() => {
|
|
407
|
+
T(), g((d) => d === "dragging" || d === "handle-visible" ? (a?.(), "cancelled") : d);
|
|
408
|
+
}, [T, a]);
|
|
409
|
+
return P(() => {
|
|
410
|
+
if (c !== "dragging" && c !== "handle-visible") return;
|
|
411
|
+
const d = (o) => {
|
|
412
|
+
o.key === "Escape" && v();
|
|
413
413
|
};
|
|
414
|
-
return window.addEventListener("keydown",
|
|
415
|
-
}, [
|
|
416
|
-
if (
|
|
417
|
-
|
|
414
|
+
return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
|
|
415
|
+
}, [c, v]), P(() => {
|
|
416
|
+
if (c !== "dragging") {
|
|
417
|
+
C(e);
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
|
-
const
|
|
421
|
-
const
|
|
422
|
-
|
|
420
|
+
const d = (o) => {
|
|
421
|
+
const f = o.clientX - (m.current ?? o.clientX), y = Math.round(f / S), D = Math.min(3, Math.max(1, e + y));
|
|
422
|
+
C((k) => k === D ? k : D);
|
|
423
423
|
};
|
|
424
|
-
return window.addEventListener("pointermove",
|
|
425
|
-
}, [
|
|
426
|
-
if (
|
|
427
|
-
const
|
|
428
|
-
return () => clearTimeout(
|
|
429
|
-
}, [
|
|
430
|
-
state:
|
|
431
|
-
enterEdgeZone:
|
|
432
|
-
leaveEdgeZone:
|
|
424
|
+
return window.addEventListener("pointermove", d), () => window.removeEventListener("pointermove", d);
|
|
425
|
+
}, [c, e]), P(() => () => T(), [T]), P(() => {
|
|
426
|
+
if (c !== "committed" && c !== "cancelled") return;
|
|
427
|
+
const d = setTimeout(() => g("idle"), i);
|
|
428
|
+
return () => clearTimeout(d);
|
|
429
|
+
}, [c, i]), {
|
|
430
|
+
state: c,
|
|
431
|
+
enterEdgeZone: b,
|
|
432
|
+
leaveEdgeZone: x,
|
|
433
433
|
handleProps: {
|
|
434
|
-
onPointerDown:
|
|
435
|
-
onPointerUp:
|
|
434
|
+
onPointerDown: I,
|
|
435
|
+
onPointerUp: l,
|
|
436
436
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
437
437
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
438
|
-
onPointerEnter:
|
|
439
|
-
onPointerLeave:
|
|
438
|
+
onPointerEnter: b,
|
|
439
|
+
onPointerLeave: x
|
|
440
440
|
},
|
|
441
|
-
previewColSpan:
|
|
441
|
+
previewColSpan: u,
|
|
442
442
|
ghostProps: {
|
|
443
|
-
visible:
|
|
444
|
-
targetColSpan:
|
|
445
|
-
enterMs:
|
|
446
|
-
exitMs:
|
|
443
|
+
visible: c === "dragging",
|
|
444
|
+
targetColSpan: u,
|
|
445
|
+
enterMs: s,
|
|
446
|
+
exitMs: i
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
/** Delay before flip animation begins (ms). */
|
|
452
|
-
flipStart: 50,
|
|
453
|
-
/** Duration of panel extrude animation (ms). */
|
|
454
|
-
extrude: 200,
|
|
455
|
-
/** Duration of settle animation (ms). */
|
|
456
|
-
settle: 100,
|
|
457
|
-
/** Total choreography duration (ms). */
|
|
458
|
-
total: 350
|
|
459
|
-
}, yt = [
|
|
450
|
+
const Tt = [
|
|
460
451
|
// 1. Standard: Total Revenue
|
|
461
452
|
{
|
|
462
453
|
variant: "standard",
|
|
@@ -560,7 +551,7 @@ const Ct = {
|
|
|
560
551
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
561
552
|
]
|
|
562
553
|
}
|
|
563
|
-
],
|
|
554
|
+
], Me = {
|
|
564
555
|
variant: "standard",
|
|
565
556
|
label: "Total Revenue",
|
|
566
557
|
isLoading: !0
|
|
@@ -570,14 +561,14 @@ const Ct = {
|
|
|
570
561
|
value: 125430,
|
|
571
562
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
572
563
|
isError: !0
|
|
573
|
-
},
|
|
564
|
+
}, Fe = {
|
|
574
565
|
variant: "standard",
|
|
575
566
|
label: "Total Revenue",
|
|
576
567
|
value: null,
|
|
577
568
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
578
569
|
isEmpty: !0,
|
|
579
570
|
subtitle: "No data"
|
|
580
|
-
},
|
|
571
|
+
}, Ee = {
|
|
581
572
|
variant: "standard",
|
|
582
573
|
label: "Total Revenue",
|
|
583
574
|
value: 125430,
|
|
@@ -585,7 +576,7 @@ const Ct = {
|
|
|
585
576
|
trend: { value: 12.5, direction: "up" },
|
|
586
577
|
subtitle: "MTD",
|
|
587
578
|
isStale: !0
|
|
588
|
-
},
|
|
579
|
+
}, Oe = {
|
|
589
580
|
variant: "sparkline",
|
|
590
581
|
label: "Daily Orders",
|
|
591
582
|
value: 847,
|
|
@@ -594,7 +585,7 @@ const Ct = {
|
|
|
594
585
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
595
586
|
accentColor: "#6366f1",
|
|
596
587
|
isStale: !0
|
|
597
|
-
},
|
|
588
|
+
}, Ae = {
|
|
598
589
|
variant: "donut",
|
|
599
590
|
label: "Order Fill Rate",
|
|
600
591
|
value: 78,
|
|
@@ -605,14 +596,14 @@ const Ct = {
|
|
|
605
596
|
donutMax: 100,
|
|
606
597
|
accentColor: "#10b981",
|
|
607
598
|
isStale: !0
|
|
608
|
-
},
|
|
609
|
-
Ie,
|
|
610
|
-
Pe,
|
|
611
|
-
_e,
|
|
599
|
+
}, It = [
|
|
612
600
|
Me,
|
|
613
|
-
|
|
614
|
-
Fe
|
|
615
|
-
|
|
601
|
+
Pe,
|
|
602
|
+
Fe,
|
|
603
|
+
Ee,
|
|
604
|
+
Oe,
|
|
605
|
+
Ae
|
|
606
|
+
], Rt = {
|
|
616
607
|
variant: "sparkline",
|
|
617
608
|
label: "Daily Orders",
|
|
618
609
|
value: 847,
|
|
@@ -635,7 +626,7 @@ const Ct = {
|
|
|
635
626
|
59
|
|
636
627
|
],
|
|
637
628
|
accentColor: "#6366f1"
|
|
638
|
-
},
|
|
629
|
+
}, _t = {
|
|
639
630
|
variant: "sparkline",
|
|
640
631
|
label: "New Customers",
|
|
641
632
|
value: 23,
|
|
@@ -674,21 +665,21 @@ const Ct = {
|
|
|
674
665
|
19
|
|
675
666
|
],
|
|
676
667
|
accentColor: "#10b981"
|
|
677
|
-
},
|
|
668
|
+
}, Mt = {
|
|
678
669
|
variant: "standard",
|
|
679
670
|
label: "Total Revenue",
|
|
680
671
|
value: 125430,
|
|
681
672
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
682
673
|
trend: { value: 12.5, direction: "up" },
|
|
683
674
|
subtitle: "MTD"
|
|
684
|
-
},
|
|
675
|
+
}, Pt = {
|
|
685
676
|
variant: "standard",
|
|
686
677
|
label: "Returns",
|
|
687
678
|
value: 3280,
|
|
688
679
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
689
680
|
trend: { value: -8.3, direction: "down" },
|
|
690
681
|
subtitle: "MTD"
|
|
691
|
-
},
|
|
682
|
+
}, Ft = {
|
|
692
683
|
variant: "standard",
|
|
693
684
|
label: "Avg Order Value",
|
|
694
685
|
value: 487,
|
|
@@ -696,33 +687,33 @@ const Ct = {
|
|
|
696
687
|
trend: { value: 0, direction: "flat" },
|
|
697
688
|
subtitle: "QTD"
|
|
698
689
|
};
|
|
699
|
-
function
|
|
690
|
+
function ie({
|
|
700
691
|
open: e,
|
|
701
692
|
onDismiss: t,
|
|
702
693
|
anchorRef: r,
|
|
703
694
|
pages: a,
|
|
704
695
|
activePageId: n,
|
|
705
|
-
onPageChange:
|
|
706
|
-
onCreatePage:
|
|
707
|
-
onManagePages:
|
|
696
|
+
onPageChange: s,
|
|
697
|
+
onCreatePage: i,
|
|
698
|
+
onManagePages: c
|
|
708
699
|
}) {
|
|
709
|
-
const
|
|
710
|
-
(
|
|
711
|
-
|
|
700
|
+
const g = w(
|
|
701
|
+
(m) => {
|
|
702
|
+
s(m), t();
|
|
712
703
|
},
|
|
713
|
-
[
|
|
714
|
-
),
|
|
715
|
-
(
|
|
716
|
-
(
|
|
704
|
+
[s, t]
|
|
705
|
+
), u = w(
|
|
706
|
+
(m, p) => {
|
|
707
|
+
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), g(m));
|
|
717
708
|
},
|
|
718
|
-
[
|
|
719
|
-
),
|
|
720
|
-
|
|
721
|
-
}, [
|
|
722
|
-
|
|
723
|
-
}, [
|
|
724
|
-
return /* @__PURE__ */
|
|
725
|
-
|
|
709
|
+
[g]
|
|
710
|
+
), C = w(() => {
|
|
711
|
+
i(), t();
|
|
712
|
+
}, [i, t]), N = w(() => {
|
|
713
|
+
c(), t();
|
|
714
|
+
}, [c, t]);
|
|
715
|
+
return /* @__PURE__ */ A(
|
|
716
|
+
Ce,
|
|
726
717
|
{
|
|
727
718
|
definition: {
|
|
728
719
|
placement: "bottom-end",
|
|
@@ -735,55 +726,55 @@ function ne({
|
|
|
735
726
|
anchorRef: r,
|
|
736
727
|
className: "gloss-page-dropdown",
|
|
737
728
|
children: [
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
const
|
|
740
|
-
return /* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ h("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((m) => {
|
|
730
|
+
const p = m.id === n;
|
|
731
|
+
return /* @__PURE__ */ A(
|
|
741
732
|
"li",
|
|
742
733
|
{
|
|
743
734
|
role: "menuitemradio",
|
|
744
|
-
"aria-checked":
|
|
745
|
-
"aria-current":
|
|
735
|
+
"aria-checked": p,
|
|
736
|
+
"aria-current": p ? "page" : void 0,
|
|
746
737
|
tabIndex: 0,
|
|
747
|
-
className: `gloss-page-dropdown__item${
|
|
748
|
-
onClick: () => m
|
|
749
|
-
onKeyDown: (
|
|
738
|
+
className: `gloss-page-dropdown__item${p ? " gloss-page-dropdown__item--active" : ""}`,
|
|
739
|
+
onClick: () => g(m.id),
|
|
740
|
+
onKeyDown: (S) => u(m.id, S),
|
|
750
741
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ h(
|
|
752
743
|
"span",
|
|
753
744
|
{
|
|
754
|
-
className: `gloss-page-dropdown__dot${
|
|
745
|
+
className: `gloss-page-dropdown__dot${p ? " gloss-page-dropdown__dot--active" : ""}`
|
|
755
746
|
}
|
|
756
747
|
),
|
|
757
|
-
/* @__PURE__ */
|
|
748
|
+
/* @__PURE__ */ h(
|
|
758
749
|
"span",
|
|
759
750
|
{
|
|
760
|
-
className: `gloss-page-dropdown__name${
|
|
761
|
-
children:
|
|
751
|
+
className: `gloss-page-dropdown__name${m.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
752
|
+
children: m.name
|
|
762
753
|
}
|
|
763
754
|
),
|
|
764
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ h("span", { className: "gloss-page-dropdown__count", children: m.cardCount })
|
|
765
756
|
]
|
|
766
757
|
},
|
|
767
|
-
|
|
758
|
+
m.id
|
|
768
759
|
);
|
|
769
760
|
}) }),
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ h("hr", { className: "gloss-page-dropdown__separator" }),
|
|
762
|
+
/* @__PURE__ */ h(
|
|
772
763
|
"button",
|
|
773
764
|
{
|
|
774
765
|
role: "menuitem",
|
|
775
766
|
className: "gloss-page-dropdown__action",
|
|
776
|
-
onClick:
|
|
767
|
+
onClick: C,
|
|
777
768
|
children: "+ New page"
|
|
778
769
|
}
|
|
779
770
|
),
|
|
780
|
-
/* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ h("hr", { className: "gloss-page-dropdown__separator" }),
|
|
772
|
+
/* @__PURE__ */ h(
|
|
782
773
|
"button",
|
|
783
774
|
{
|
|
784
775
|
role: "menuitem",
|
|
785
776
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
786
|
-
onClick:
|
|
777
|
+
onClick: N,
|
|
787
778
|
children: "Manage pages"
|
|
788
779
|
}
|
|
789
780
|
)
|
|
@@ -791,44 +782,44 @@ function ne({
|
|
|
791
782
|
}
|
|
792
783
|
);
|
|
793
784
|
}
|
|
794
|
-
|
|
795
|
-
const
|
|
785
|
+
ie.displayName = "PageDropdown";
|
|
786
|
+
const Le = function({
|
|
796
787
|
currentIndex: t,
|
|
797
788
|
total: r,
|
|
798
789
|
pages: a,
|
|
799
790
|
onPageChange: n,
|
|
800
|
-
onCreatePage:
|
|
801
|
-
onManagePages:
|
|
802
|
-
maskRadius:
|
|
791
|
+
onCreatePage: s,
|
|
792
|
+
onManagePages: i,
|
|
793
|
+
maskRadius: c = "var(--gloss-radius-md)"
|
|
803
794
|
}) {
|
|
804
|
-
const
|
|
805
|
-
|
|
806
|
-
}, []),
|
|
807
|
-
|
|
808
|
-
}, []),
|
|
809
|
-
return /* @__PURE__ */
|
|
795
|
+
const g = _(null), [u, C] = O(!1), N = w(() => {
|
|
796
|
+
C((S) => !S);
|
|
797
|
+
}, []), m = w(() => {
|
|
798
|
+
C(!1);
|
|
799
|
+
}, []), p = a[t]?.id ?? "";
|
|
800
|
+
return /* @__PURE__ */ A(
|
|
810
801
|
"div",
|
|
811
802
|
{
|
|
812
803
|
className: "gloss-page-chip",
|
|
813
|
-
ref:
|
|
804
|
+
ref: g,
|
|
814
805
|
style: { position: "absolute", top: 0, right: 0 },
|
|
815
806
|
"data-page-chip": !0,
|
|
816
807
|
children: [
|
|
817
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ h(
|
|
818
809
|
"div",
|
|
819
810
|
{
|
|
820
811
|
className: "gloss-page-chip__nuzzle",
|
|
821
|
-
style: { "--_nuzzle-r":
|
|
812
|
+
style: { "--_nuzzle-r": c }
|
|
822
813
|
}
|
|
823
814
|
),
|
|
824
|
-
/* @__PURE__ */
|
|
815
|
+
/* @__PURE__ */ A(
|
|
825
816
|
"button",
|
|
826
817
|
{
|
|
827
818
|
className: "gloss-page-chip__trigger",
|
|
828
819
|
"aria-haspopup": "menu",
|
|
829
|
-
"aria-expanded":
|
|
820
|
+
"aria-expanded": u,
|
|
830
821
|
"aria-label": `Page ${t + 1} of ${r}. Click to switch pages.`,
|
|
831
|
-
onClick:
|
|
822
|
+
onClick: N,
|
|
832
823
|
children: [
|
|
833
824
|
t + 1,
|
|
834
825
|
" / ",
|
|
@@ -836,25 +827,25 @@ const Oe = function({
|
|
|
836
827
|
]
|
|
837
828
|
}
|
|
838
829
|
),
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
|
|
830
|
+
/* @__PURE__ */ h(
|
|
831
|
+
ie,
|
|
841
832
|
{
|
|
842
|
-
open:
|
|
843
|
-
onDismiss:
|
|
844
|
-
anchorRef:
|
|
833
|
+
open: u,
|
|
834
|
+
onDismiss: m,
|
|
835
|
+
anchorRef: g,
|
|
845
836
|
pages: a,
|
|
846
|
-
activePageId:
|
|
837
|
+
activePageId: p,
|
|
847
838
|
onPageChange: n,
|
|
848
|
-
onCreatePage:
|
|
849
|
-
onManagePages:
|
|
839
|
+
onCreatePage: s,
|
|
840
|
+
onManagePages: i
|
|
850
841
|
}
|
|
851
842
|
)
|
|
852
843
|
]
|
|
853
844
|
}
|
|
854
845
|
);
|
|
855
846
|
};
|
|
856
|
-
|
|
857
|
-
const
|
|
847
|
+
Le.displayName = "PageChip";
|
|
848
|
+
const Et = [
|
|
858
849
|
{
|
|
859
850
|
id: "ORD-1001",
|
|
860
851
|
orderNumber: "ORD-1001",
|
|
@@ -987,7 +978,7 @@ const kt = [
|
|
|
987
978
|
date: "2026-03-01",
|
|
988
979
|
skuCount: 9
|
|
989
980
|
}
|
|
990
|
-
],
|
|
981
|
+
], Ot = [
|
|
991
982
|
{
|
|
992
983
|
id: "ITEM-001",
|
|
993
984
|
sku: "PB-4520",
|
|
@@ -1124,13 +1115,13 @@ const kt = [
|
|
|
1124
1115
|
function q(e) {
|
|
1125
1116
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1126
1117
|
}
|
|
1127
|
-
function
|
|
1118
|
+
function le(e) {
|
|
1128
1119
|
return e.toLocaleString("en-US");
|
|
1129
1120
|
}
|
|
1130
|
-
function
|
|
1121
|
+
function de(e) {
|
|
1131
1122
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1132
1123
|
}
|
|
1133
|
-
const
|
|
1124
|
+
const G = F.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), At = [
|
|
1134
1125
|
{
|
|
1135
1126
|
field: "id",
|
|
1136
1127
|
headerName: "Order",
|
|
@@ -1160,7 +1151,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1160
1151
|
align: "right",
|
|
1161
1152
|
headerAlign: "right",
|
|
1162
1153
|
cellClassName: "gloss-tabular-nums",
|
|
1163
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1154
|
+
renderCell: ({ row: e }) => e.skuCount ? le(e.skuCount) : G
|
|
1164
1155
|
},
|
|
1165
1156
|
{
|
|
1166
1157
|
field: "total",
|
|
@@ -1170,7 +1161,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1170
1161
|
align: "right",
|
|
1171
1162
|
headerAlign: "right",
|
|
1172
1163
|
cellClassName: "gloss-tabular-nums",
|
|
1173
|
-
renderCell: ({ row: e }) => e.total ? q(e.total) :
|
|
1164
|
+
renderCell: ({ row: e }) => e.total ? q(e.total) : G
|
|
1174
1165
|
},
|
|
1175
1166
|
{
|
|
1176
1167
|
field: "date",
|
|
@@ -1180,9 +1171,9 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1180
1171
|
align: "right",
|
|
1181
1172
|
headerAlign: "right",
|
|
1182
1173
|
cellClassName: "gloss-tabular-nums",
|
|
1183
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1174
|
+
renderCell: ({ row: e }) => e.date ? de(e.date) : ""
|
|
1184
1175
|
}
|
|
1185
|
-
],
|
|
1176
|
+
], Lt = [
|
|
1186
1177
|
{
|
|
1187
1178
|
field: "sku",
|
|
1188
1179
|
headerName: "Item ID",
|
|
@@ -1214,7 +1205,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1214
1205
|
align: "right",
|
|
1215
1206
|
headerAlign: "right",
|
|
1216
1207
|
cellClassName: "gloss-tabular-nums",
|
|
1217
|
-
renderCell: ({ row: e }) => e.price ? q(e.price) :
|
|
1208
|
+
renderCell: ({ row: e }) => e.price ? q(e.price) : G
|
|
1218
1209
|
},
|
|
1219
1210
|
{
|
|
1220
1211
|
field: "quantity",
|
|
@@ -1224,7 +1215,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1224
1215
|
align: "right",
|
|
1225
1216
|
headerAlign: "right",
|
|
1226
1217
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1227
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1218
|
+
renderCell: ({ row: e }) => e.quantity ? le(e.quantity) : G
|
|
1228
1219
|
},
|
|
1229
1220
|
{
|
|
1230
1221
|
field: "total",
|
|
@@ -1234,7 +1225,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1234
1225
|
align: "right",
|
|
1235
1226
|
headerAlign: "right",
|
|
1236
1227
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1237
|
-
renderCell: ({ row: e }) => e.total ? q(e.total) :
|
|
1228
|
+
renderCell: ({ row: e }) => e.total ? q(e.total) : G
|
|
1238
1229
|
},
|
|
1239
1230
|
{
|
|
1240
1231
|
field: "lastDate",
|
|
@@ -1244,24 +1235,24 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1244
1235
|
align: "right",
|
|
1245
1236
|
headerAlign: "right",
|
|
1246
1237
|
cellClassName: "gloss-tabular-nums",
|
|
1247
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1238
|
+
renderCell: ({ row: e }) => e.lastDate ? de(e.lastDate) : ""
|
|
1248
1239
|
}
|
|
1249
|
-
],
|
|
1240
|
+
], $e = [
|
|
1250
1241
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1251
1242
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1252
1243
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1253
1244
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1254
1245
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1255
|
-
],
|
|
1246
|
+
], Be = [
|
|
1256
1247
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1257
1248
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1258
1249
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1259
1250
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1260
1251
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1261
|
-
],
|
|
1262
|
-
},
|
|
1263
|
-
},
|
|
1264
|
-
},
|
|
1252
|
+
], Z = (e) => {
|
|
1253
|
+
}, Ke = (e) => {
|
|
1254
|
+
}, re = (e, t) => {
|
|
1255
|
+
}, ce = {
|
|
1265
1256
|
vizState: {
|
|
1266
1257
|
type: "orders",
|
|
1267
1258
|
quant: "$",
|
|
@@ -1269,17 +1260,17 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1269
1260
|
byItem: { id: null, name: null },
|
|
1270
1261
|
timeFrame: "MTD"
|
|
1271
1262
|
},
|
|
1272
|
-
onTypeChange:
|
|
1273
|
-
onQuantChange:
|
|
1274
|
-
onEntityTypeChange:
|
|
1275
|
-
onEntitySelect:
|
|
1276
|
-
onItemSelect:
|
|
1277
|
-
onTimeFrameChange:
|
|
1263
|
+
onTypeChange: Z,
|
|
1264
|
+
onQuantChange: Ke,
|
|
1265
|
+
onEntityTypeChange: Z,
|
|
1266
|
+
onEntitySelect: re,
|
|
1267
|
+
onItemSelect: re,
|
|
1268
|
+
onTimeFrameChange: Z,
|
|
1278
1269
|
userType: "sales-agency",
|
|
1279
|
-
entityFilterOptions:
|
|
1280
|
-
itemFilterOptions:
|
|
1281
|
-
},
|
|
1282
|
-
...
|
|
1270
|
+
entityFilterOptions: $e,
|
|
1271
|
+
itemFilterOptions: Be
|
|
1272
|
+
}, $t = {
|
|
1273
|
+
...ce,
|
|
1283
1274
|
vizState: {
|
|
1284
1275
|
type: "items",
|
|
1285
1276
|
quant: "$",
|
|
@@ -1287,8 +1278,8 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1287
1278
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1288
1279
|
timeFrame: "YTD"
|
|
1289
1280
|
}
|
|
1290
|
-
},
|
|
1291
|
-
...
|
|
1281
|
+
}, Bt = {
|
|
1282
|
+
...ce,
|
|
1292
1283
|
vizState: {
|
|
1293
1284
|
type: "orders",
|
|
1294
1285
|
quant: "#",
|
|
@@ -1300,7 +1291,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1300
1291
|
entityFilterOptions: [
|
|
1301
1292
|
{ id: "customers", label: "Customers" }
|
|
1302
1293
|
]
|
|
1303
|
-
},
|
|
1294
|
+
}, Ge = [
|
|
1304
1295
|
{
|
|
1305
1296
|
id: "recent-orders",
|
|
1306
1297
|
label: "Recent Orders",
|
|
@@ -1346,7 +1337,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1346
1337
|
routeKey: "customer.profile",
|
|
1347
1338
|
subtitle: "Opens in RepTime"
|
|
1348
1339
|
}
|
|
1349
|
-
],
|
|
1340
|
+
], He = [
|
|
1350
1341
|
{
|
|
1351
1342
|
id: "order-items",
|
|
1352
1343
|
label: "Items in Order",
|
|
@@ -1375,7 +1366,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1375
1366
|
cellKinds: ["orderId"],
|
|
1376
1367
|
graphType: "timeline"
|
|
1377
1368
|
}
|
|
1378
|
-
],
|
|
1369
|
+
], ze = [
|
|
1379
1370
|
{
|
|
1380
1371
|
id: "graph-metric",
|
|
1381
1372
|
label: "Graph This Metric",
|
|
@@ -1403,14 +1394,14 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1403
1394
|
cellKinds: ["numeric"],
|
|
1404
1395
|
tabType: "orders"
|
|
1405
1396
|
}
|
|
1406
|
-
],
|
|
1407
|
-
entityName:
|
|
1408
|
-
orderId:
|
|
1409
|
-
numeric:
|
|
1410
|
-
},
|
|
1397
|
+
], Kt = {
|
|
1398
|
+
entityName: Ge,
|
|
1399
|
+
orderId: He,
|
|
1400
|
+
numeric: ze
|
|
1401
|
+
}, Gt = [
|
|
1411
1402
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1412
1403
|
/* @__PURE__ */ new Date()
|
|
1413
|
-
],
|
|
1404
|
+
], Ht = {
|
|
1414
1405
|
rangeA: [
|
|
1415
1406
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1416
1407
|
/* @__PURE__ */ new Date()
|
|
@@ -1423,7 +1414,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1423
1414
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1424
1415
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1425
1416
|
]
|
|
1426
|
-
},
|
|
1417
|
+
}, zt = {
|
|
1427
1418
|
version: 4,
|
|
1428
1419
|
lastPreset: "mtd",
|
|
1429
1420
|
pinnedPreset: "mtd",
|
|
@@ -1431,7 +1422,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1431
1422
|
rangeCount: 1,
|
|
1432
1423
|
lastPresetB: null,
|
|
1433
1424
|
lastPresetC: null
|
|
1434
|
-
},
|
|
1425
|
+
}, Zt = [
|
|
1435
1426
|
{
|
|
1436
1427
|
id: "atlanta-jan",
|
|
1437
1428
|
label: "Atlanta Market",
|
|
@@ -1453,7 +1444,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1453
1444
|
endDate: new Date(2026, 3, 22),
|
|
1454
1445
|
location: "Chicago, IL"
|
|
1455
1446
|
}
|
|
1456
|
-
],
|
|
1447
|
+
], Vt = [
|
|
1457
1448
|
{
|
|
1458
1449
|
id: "custom-regional-1",
|
|
1459
1450
|
label: "Southeast Regional Expo",
|
|
@@ -1470,7 +1461,7 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1470
1461
|
location: "Portland, OR",
|
|
1471
1462
|
isCustom: !0
|
|
1472
1463
|
}
|
|
1473
|
-
],
|
|
1464
|
+
], Wt = [
|
|
1474
1465
|
{
|
|
1475
1466
|
id: "atlanta-jan",
|
|
1476
1467
|
label: "Atlanta Market",
|
|
@@ -1487,22 +1478,22 @@ const H = P.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1487
1478
|
location: "New York, NY",
|
|
1488
1479
|
active: !0
|
|
1489
1480
|
}
|
|
1490
|
-
],
|
|
1481
|
+
], Yt = [
|
|
1491
1482
|
{ id: "7d", label: "7D" },
|
|
1492
1483
|
{ id: "30d", label: "30D" },
|
|
1493
1484
|
{ id: "60d", label: "60D" },
|
|
1494
1485
|
{ id: "90d", label: "90D" }
|
|
1495
|
-
],
|
|
1486
|
+
], qt = [
|
|
1496
1487
|
{ id: "mtd", label: "MTD" },
|
|
1497
1488
|
{ id: "qtd", label: "QTD" },
|
|
1498
1489
|
{ id: "ytd", label: "YTD" },
|
|
1499
1490
|
{ id: "lytd", label: "LYTD" }
|
|
1500
1491
|
];
|
|
1501
|
-
function
|
|
1492
|
+
function L(e, t) {
|
|
1502
1493
|
return {
|
|
1503
1494
|
id: e,
|
|
1504
1495
|
colSpan: 1,
|
|
1505
|
-
content:
|
|
1496
|
+
content: F.createElement("div", {
|
|
1506
1497
|
style: {
|
|
1507
1498
|
width: "100%",
|
|
1508
1499
|
height: "100%",
|
|
@@ -1518,38 +1509,38 @@ function O(e, t) {
|
|
|
1518
1509
|
}, t)
|
|
1519
1510
|
};
|
|
1520
1511
|
}
|
|
1521
|
-
function
|
|
1512
|
+
function ne(e, t) {
|
|
1522
1513
|
return {
|
|
1523
|
-
...
|
|
1514
|
+
...L(e, t),
|
|
1524
1515
|
colSpan: 2
|
|
1525
1516
|
};
|
|
1526
1517
|
}
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
],
|
|
1518
|
+
const Ut = [
|
|
1519
|
+
L("total-revenue", "Total Revenue"),
|
|
1520
|
+
L("total-orders", "Total Orders"),
|
|
1521
|
+
ne("revenue-trend", "Revenue Trend (2x)"),
|
|
1522
|
+
L("avg-order", "Avg Order Value"),
|
|
1523
|
+
L("new-customers", "New Customers"),
|
|
1524
|
+
L("top-salesperson", "Top Salesperson"),
|
|
1525
|
+
ne("order-trend", "Order Trend (2x)"),
|
|
1526
|
+
L("repeat-rate", "Repeat Rate"),
|
|
1527
|
+
L("open-orders", "Open Orders"),
|
|
1528
|
+
L("shipped-orders", "Shipped Orders")
|
|
1529
|
+
], jt = {
|
|
1539
1530
|
columns: 6,
|
|
1540
1531
|
rowHeight: 120,
|
|
1541
1532
|
gap: 15,
|
|
1542
1533
|
maxRows: 3,
|
|
1543
1534
|
currentPage: 0,
|
|
1544
1535
|
totalPages: 1
|
|
1545
|
-
},
|
|
1536
|
+
}, Qt = {
|
|
1546
1537
|
columns: 9,
|
|
1547
1538
|
rowHeight: 120,
|
|
1548
1539
|
gap: 15,
|
|
1549
1540
|
maxRows: 3,
|
|
1550
1541
|
currentPage: 0,
|
|
1551
1542
|
totalPages: 2
|
|
1552
|
-
},
|
|
1543
|
+
}, Xt = {
|
|
1553
1544
|
columns: 12,
|
|
1554
1545
|
rowHeight: 120,
|
|
1555
1546
|
gap: 15,
|
|
@@ -1557,15 +1548,15 @@ const zt = [
|
|
|
1557
1548
|
currentPage: 0,
|
|
1558
1549
|
totalPages: 3
|
|
1559
1550
|
};
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1551
|
+
function V(e) {
|
|
1552
|
+
return F.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1562
1553
|
}
|
|
1563
|
-
const
|
|
1554
|
+
const Jt = [
|
|
1564
1555
|
{
|
|
1565
1556
|
id: "all-orders",
|
|
1566
1557
|
type: "orders",
|
|
1567
1558
|
name: "All Orders",
|
|
1568
|
-
icon:
|
|
1559
|
+
icon: V("📋"),
|
|
1569
1560
|
closable: !1,
|
|
1570
1561
|
autoCreated: !0
|
|
1571
1562
|
},
|
|
@@ -1573,17 +1564,17 @@ const Yt = [
|
|
|
1573
1564
|
id: "open-orders",
|
|
1574
1565
|
type: "orders",
|
|
1575
1566
|
name: "Open Orders",
|
|
1576
|
-
icon:
|
|
1567
|
+
icon: V("📦"),
|
|
1577
1568
|
closable: !0
|
|
1578
1569
|
},
|
|
1579
1570
|
{
|
|
1580
1571
|
id: "shipped-orders",
|
|
1581
1572
|
type: "orders",
|
|
1582
1573
|
name: "Shipped Orders",
|
|
1583
|
-
icon:
|
|
1574
|
+
icon: V("🚚"),
|
|
1584
1575
|
closable: !0
|
|
1585
1576
|
}
|
|
1586
|
-
],
|
|
1577
|
+
], ea = [
|
|
1587
1578
|
{
|
|
1588
1579
|
id: "orders-main",
|
|
1589
1580
|
type: "orders",
|
|
@@ -1609,7 +1600,7 @@ const Yt = [
|
|
|
1609
1600
|
name: "Customers",
|
|
1610
1601
|
closable: !0
|
|
1611
1602
|
}
|
|
1612
|
-
],
|
|
1603
|
+
], ta = [
|
|
1613
1604
|
{
|
|
1614
1605
|
id: "only-tab",
|
|
1615
1606
|
type: "orders",
|
|
@@ -1617,7 +1608,7 @@ const Yt = [
|
|
|
1617
1608
|
closable: !1,
|
|
1618
1609
|
autoCreated: !0
|
|
1619
1610
|
}
|
|
1620
|
-
],
|
|
1611
|
+
], aa = [
|
|
1621
1612
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1622
1613
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1623
1614
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1629,7 +1620,7 @@ const Yt = [
|
|
|
1629
1620
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
1630
1621
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
1631
1622
|
];
|
|
1632
|
-
function
|
|
1623
|
+
function U(e) {
|
|
1633
1624
|
switch (e) {
|
|
1634
1625
|
case "wide":
|
|
1635
1626
|
return { cols: 2, rows: 1 };
|
|
@@ -1640,30 +1631,30 @@ function V(e) {
|
|
|
1640
1631
|
return { cols: 1, rows: 1 };
|
|
1641
1632
|
}
|
|
1642
1633
|
}
|
|
1643
|
-
function
|
|
1634
|
+
function Ze(e) {
|
|
1644
1635
|
let t = 0;
|
|
1645
1636
|
for (const a of e) {
|
|
1646
|
-
const n =
|
|
1647
|
-
|
|
1637
|
+
const n = U(a.size), s = a.gridPosition.col + n.cols - 1;
|
|
1638
|
+
s > t && (t = s);
|
|
1648
1639
|
}
|
|
1649
1640
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1650
1641
|
}
|
|
1651
|
-
const
|
|
1642
|
+
const Ve = function(t) {
|
|
1652
1643
|
if (t.renderMode === "discrete")
|
|
1653
|
-
return /* @__PURE__ */
|
|
1644
|
+
return /* @__PURE__ */ h(
|
|
1654
1645
|
"div",
|
|
1655
1646
|
{
|
|
1656
1647
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1657
1648
|
style: { display: "contents" },
|
|
1658
1649
|
children: t.cards.map((n) => {
|
|
1659
|
-
const
|
|
1660
|
-
return /* @__PURE__ */
|
|
1650
|
+
const s = U(n.size);
|
|
1651
|
+
return /* @__PURE__ */ h(
|
|
1661
1652
|
"div",
|
|
1662
1653
|
{
|
|
1663
1654
|
className: "gloss-metric-group__slot",
|
|
1664
1655
|
style: {
|
|
1665
|
-
gridColumn: `${n.gridPosition.col} / span ${
|
|
1666
|
-
gridRow: `${n.gridPosition.row} / span ${
|
|
1656
|
+
gridColumn: `${n.gridPosition.col} / span ${s.cols}`,
|
|
1657
|
+
gridRow: `${n.gridPosition.row} / span ${s.rows}`
|
|
1667
1658
|
},
|
|
1668
1659
|
children: n.children
|
|
1669
1660
|
},
|
|
@@ -1673,7 +1664,7 @@ const ze = function(t) {
|
|
|
1673
1664
|
}
|
|
1674
1665
|
);
|
|
1675
1666
|
const { cards: r, composite: a } = t;
|
|
1676
|
-
return /* @__PURE__ */
|
|
1667
|
+
return /* @__PURE__ */ A(
|
|
1677
1668
|
"div",
|
|
1678
1669
|
{
|
|
1679
1670
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1692,16 +1683,16 @@ const ze = function(t) {
|
|
|
1692
1683
|
"aria-label": a?.label,
|
|
1693
1684
|
tabIndex: void 0,
|
|
1694
1685
|
children: [
|
|
1695
|
-
a?.accentColor && /* @__PURE__ */
|
|
1686
|
+
a?.accentColor && /* @__PURE__ */ h(
|
|
1696
1687
|
"div",
|
|
1697
1688
|
{
|
|
1698
1689
|
className: "gloss-metric-group__accent",
|
|
1699
1690
|
style: { background: a.accentColor }
|
|
1700
1691
|
}
|
|
1701
1692
|
),
|
|
1702
|
-
a?.label && /* @__PURE__ */
|
|
1703
|
-
/* @__PURE__ */
|
|
1704
|
-
a?.trend && /* @__PURE__ */
|
|
1693
|
+
a?.label && /* @__PURE__ */ A("div", { className: "gloss-metric-group__label", children: [
|
|
1694
|
+
/* @__PURE__ */ h("span", { children: a.label }),
|
|
1695
|
+
a?.trend && /* @__PURE__ */ h(
|
|
1705
1696
|
"span",
|
|
1706
1697
|
{
|
|
1707
1698
|
className: "gloss-metric-group__trend",
|
|
@@ -1710,24 +1701,24 @@ const ze = function(t) {
|
|
|
1710
1701
|
}
|
|
1711
1702
|
)
|
|
1712
1703
|
] }),
|
|
1713
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ h(
|
|
1714
1705
|
"div",
|
|
1715
1706
|
{
|
|
1716
1707
|
className: "gloss-metric-group__slots",
|
|
1717
1708
|
style: {
|
|
1718
1709
|
display: "grid",
|
|
1719
1710
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
1720
|
-
gridTemplateColumns:
|
|
1711
|
+
gridTemplateColumns: Ze(r)
|
|
1721
1712
|
},
|
|
1722
1713
|
children: r.map((n) => {
|
|
1723
|
-
const
|
|
1724
|
-
return /* @__PURE__ */
|
|
1714
|
+
const s = U(n.size);
|
|
1715
|
+
return /* @__PURE__ */ h(
|
|
1725
1716
|
"div",
|
|
1726
1717
|
{
|
|
1727
1718
|
className: "gloss-metric-group__slot--composite",
|
|
1728
1719
|
style: {
|
|
1729
|
-
gridColumn: `${n.gridPosition.col} / span ${
|
|
1730
|
-
gridRow: `${n.gridPosition.row} / span ${
|
|
1720
|
+
gridColumn: `${n.gridPosition.col} / span ${s.cols}`,
|
|
1721
|
+
gridRow: `${n.gridPosition.row} / span ${s.rows}`
|
|
1731
1722
|
},
|
|
1732
1723
|
children: n.children
|
|
1733
1724
|
},
|
|
@@ -1740,7 +1731,7 @@ const ze = function(t) {
|
|
|
1740
1731
|
}
|
|
1741
1732
|
);
|
|
1742
1733
|
};
|
|
1743
|
-
|
|
1734
|
+
Ve.displayName = "MetricGroupContainer";
|
|
1744
1735
|
const B = {
|
|
1745
1736
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
1746
1737
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
@@ -1749,44 +1740,44 @@ const B = {
|
|
|
1749
1740
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
1750
1741
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
1751
1742
|
};
|
|
1752
|
-
function
|
|
1743
|
+
function We({
|
|
1753
1744
|
message: e,
|
|
1754
1745
|
primaryAction: t,
|
|
1755
1746
|
onDismiss: r,
|
|
1756
1747
|
anchorEl: a,
|
|
1757
1748
|
anchorSelector: n
|
|
1758
1749
|
}) {
|
|
1759
|
-
const [
|
|
1750
|
+
const [s, i] = F.useState(null), c = F.useMemo(
|
|
1760
1751
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
1761
1752
|
[]
|
|
1762
1753
|
);
|
|
1763
|
-
|
|
1754
|
+
F.useEffect(() => {
|
|
1764
1755
|
!a && !n && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
1765
1756
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
1766
1757
|
);
|
|
1767
|
-
}, [a, n]),
|
|
1768
|
-
let
|
|
1769
|
-
if (a ?
|
|
1770
|
-
const
|
|
1771
|
-
|
|
1772
|
-
top:
|
|
1773
|
-
left:
|
|
1758
|
+
}, [a, n]), F.useLayoutEffect(() => {
|
|
1759
|
+
let u = null;
|
|
1760
|
+
if (a ? u = a : n && (u = document.querySelector(n)), u) {
|
|
1761
|
+
const C = u.getBoundingClientRect();
|
|
1762
|
+
i({
|
|
1763
|
+
top: C.bottom + window.scrollY + 6,
|
|
1764
|
+
left: C.left + window.scrollX
|
|
1774
1765
|
});
|
|
1775
1766
|
}
|
|
1776
1767
|
}, [a, n]);
|
|
1777
|
-
const
|
|
1778
|
-
return /* @__PURE__ */
|
|
1768
|
+
const g = s ? { top: s.top, left: s.left } : {};
|
|
1769
|
+
return /* @__PURE__ */ A(
|
|
1779
1770
|
"div",
|
|
1780
1771
|
{
|
|
1781
1772
|
className: B["gloss-inline-nudge"],
|
|
1782
|
-
style:
|
|
1773
|
+
style: g,
|
|
1783
1774
|
role: "status",
|
|
1784
1775
|
"aria-live": "polite",
|
|
1785
|
-
"data-reduced-motion":
|
|
1776
|
+
"data-reduced-motion": c ? "true" : void 0,
|
|
1786
1777
|
children: [
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1789
|
-
/* @__PURE__ */
|
|
1778
|
+
/* @__PURE__ */ h("span", { className: B["gloss-inline-nudge__message"], children: e }),
|
|
1779
|
+
/* @__PURE__ */ A("div", { className: B["gloss-inline-nudge__actions"], children: [
|
|
1780
|
+
/* @__PURE__ */ h(
|
|
1790
1781
|
"button",
|
|
1791
1782
|
{
|
|
1792
1783
|
type: "button",
|
|
@@ -1795,7 +1786,7 @@ function Ke({
|
|
|
1795
1786
|
children: t.label
|
|
1796
1787
|
}
|
|
1797
1788
|
),
|
|
1798
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ h(
|
|
1799
1790
|
"button",
|
|
1800
1791
|
{
|
|
1801
1792
|
type: "button",
|
|
@@ -1810,641 +1801,812 @@ function Ke({
|
|
|
1810
1801
|
}
|
|
1811
1802
|
);
|
|
1812
1803
|
}
|
|
1813
|
-
|
|
1814
|
-
function
|
|
1804
|
+
We.displayName = "InlineNudge";
|
|
1805
|
+
function j(e) {
|
|
1815
1806
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
1816
1807
|
}
|
|
1817
|
-
function
|
|
1818
|
-
|
|
1819
|
-
const
|
|
1820
|
-
return
|
|
1808
|
+
function Ye(e, t, r) {
|
|
1809
|
+
if (r <= t) {
|
|
1810
|
+
const i = e[0], c = i ? j(i) : "#888";
|
|
1811
|
+
return `linear-gradient(to right, ${c}, ${c})`;
|
|
1812
|
+
}
|
|
1813
|
+
const a = r - t, s = [...e].sort((i, c) => i.value - c.value).map((i) => {
|
|
1814
|
+
const c = (i.value - t) / a * 100;
|
|
1815
|
+
return `${j(i)} ${c.toFixed(2)}%`;
|
|
1821
1816
|
});
|
|
1822
|
-
return
|
|
1817
|
+
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(", ")})`;
|
|
1823
1818
|
}
|
|
1824
|
-
function
|
|
1819
|
+
function qe(e) {
|
|
1820
|
+
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
1821
|
+
}
|
|
1822
|
+
function Ue({
|
|
1825
1823
|
stops: e,
|
|
1826
1824
|
onChange: t,
|
|
1827
1825
|
min: r = 0,
|
|
1828
1826
|
max: a = 100,
|
|
1829
1827
|
disabled: n = !1
|
|
1830
1828
|
}) {
|
|
1831
|
-
const
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1829
|
+
const s = _(null), [i, c] = O(null), [g, u] = O(e), C = qe(e), N = _(C);
|
|
1830
|
+
P(() => {
|
|
1831
|
+
N.current !== C && (N.current = C, !i && u(e));
|
|
1832
|
+
}, [C, e, i]);
|
|
1833
|
+
const m = se(() => Ye(g, r, a), [g, r, a]), p = w(
|
|
1834
|
+
(l) => {
|
|
1835
|
+
if (!s.current) return r;
|
|
1836
|
+
const v = s.current.getBoundingClientRect(), d = v.width || 1, o = Math.max(0, Math.min(1, (l - v.left) / d)), f = r + o * (a - r);
|
|
1837
|
+
return Math.round(f * 100) / 100;
|
|
1838
1838
|
},
|
|
1839
1839
|
[r, a]
|
|
1840
|
-
)
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1840
|
+
);
|
|
1841
|
+
P(() => {
|
|
1842
|
+
a <= r && process.env.NODE_ENV !== "production" && console.warn(
|
|
1843
|
+
`ThresholdRamp: max (${a}) must be greater than min (${r}); rendering degenerate strip.`
|
|
1844
|
+
);
|
|
1845
|
+
}, [r, a]);
|
|
1846
|
+
const S = w(
|
|
1847
|
+
(l, v) => {
|
|
1848
|
+
const d = g.find((o) => o.id === v);
|
|
1849
|
+
n || d?.disabled || (l.preventDefault(), c(v));
|
|
1844
1850
|
},
|
|
1845
|
-
[n,
|
|
1846
|
-
),
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1851
|
+
[n, g]
|
|
1852
|
+
), T = _(g);
|
|
1853
|
+
T.current = g;
|
|
1854
|
+
const b = _(t);
|
|
1855
|
+
b.current = t, P(() => {
|
|
1856
|
+
if (!i) return;
|
|
1857
|
+
const l = (d) => {
|
|
1858
|
+
const o = p(d.clientX);
|
|
1859
|
+
u(
|
|
1860
|
+
(f) => f.map((y) => y.id === i ? { ...y, value: o } : y)
|
|
1852
1861
|
);
|
|
1853
|
-
},
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1862
|
+
}, v = (d) => {
|
|
1863
|
+
const o = p(d.clientX), f = T.current.map(
|
|
1864
|
+
(y) => y.id === i ? { ...y, value: o } : y
|
|
1865
|
+
);
|
|
1866
|
+
u(f), c(null), b.current(f);
|
|
1867
|
+
};
|
|
1868
|
+
return window.addEventListener("pointermove", l), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
1869
|
+
window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
1870
|
+
};
|
|
1871
|
+
}, [i, p]);
|
|
1872
|
+
const x = a - r > 0 ? a - r : 1, I = w(
|
|
1873
|
+
(l, v) => {
|
|
1874
|
+
if (n || v.disabled) return;
|
|
1875
|
+
const d = a - r;
|
|
1876
|
+
if (d <= 0) return;
|
|
1877
|
+
const o = l.shiftKey ? d / 20 : d / 100;
|
|
1878
|
+
let f = v.value;
|
|
1879
|
+
switch (l.key) {
|
|
1880
|
+
case "ArrowRight":
|
|
1881
|
+
case "ArrowUp":
|
|
1882
|
+
f = v.value + o;
|
|
1883
|
+
break;
|
|
1884
|
+
case "ArrowLeft":
|
|
1885
|
+
case "ArrowDown":
|
|
1886
|
+
f = v.value - o;
|
|
1887
|
+
break;
|
|
1888
|
+
case "Home":
|
|
1889
|
+
f = r;
|
|
1890
|
+
break;
|
|
1891
|
+
case "End":
|
|
1892
|
+
f = a;
|
|
1893
|
+
break;
|
|
1894
|
+
default:
|
|
1895
|
+
return;
|
|
1896
|
+
}
|
|
1897
|
+
l.preventDefault();
|
|
1898
|
+
const y = Math.max(r, Math.min(a, f)), D = Math.round(y * 100) / 100;
|
|
1899
|
+
if (D === v.value) return;
|
|
1900
|
+
const k = g.map(
|
|
1901
|
+
(R) => R.id === v.id ? { ...R, value: D } : R
|
|
1860
1902
|
);
|
|
1861
|
-
|
|
1903
|
+
u(k), t(k);
|
|
1862
1904
|
},
|
|
1863
|
-
[
|
|
1864
|
-
)
|
|
1865
|
-
return /* @__PURE__ */
|
|
1905
|
+
[n, r, a, g, t]
|
|
1906
|
+
);
|
|
1907
|
+
return /* @__PURE__ */ h("div", { className: "gloss-threshold-ramp", "data-disabled": n || void 0, children: /* @__PURE__ */ h(
|
|
1866
1908
|
"div",
|
|
1867
1909
|
{
|
|
1868
|
-
ref:
|
|
1910
|
+
ref: s,
|
|
1869
1911
|
className: "gloss-threshold-ramp__track",
|
|
1870
|
-
style: { background:
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
children: m.map((b) => {
|
|
1875
|
-
const S = (b.value - r) / k * 100;
|
|
1876
|
-
return /* @__PURE__ */ u(
|
|
1912
|
+
style: { background: m },
|
|
1913
|
+
children: g.map((l) => {
|
|
1914
|
+
const v = (l.value - r) / x * 100;
|
|
1915
|
+
return /* @__PURE__ */ h(
|
|
1877
1916
|
"span",
|
|
1878
1917
|
{
|
|
1879
1918
|
className: "gloss-threshold-ramp__stop",
|
|
1880
1919
|
style: {
|
|
1881
|
-
left: `${
|
|
1882
|
-
color:
|
|
1920
|
+
left: `${v}%`,
|
|
1921
|
+
color: j(l)
|
|
1883
1922
|
},
|
|
1884
|
-
"data-disabled":
|
|
1885
|
-
"data-dragging":
|
|
1886
|
-
onPointerDown: (
|
|
1887
|
-
|
|
1923
|
+
"data-disabled": l.disabled || void 0,
|
|
1924
|
+
"data-dragging": i === l.id || void 0,
|
|
1925
|
+
onPointerDown: (d) => S(d, l.id),
|
|
1926
|
+
onKeyDown: (d) => I(d, l),
|
|
1927
|
+
"aria-label": l.label ?? `Stop at ${l.value}`,
|
|
1888
1928
|
role: "slider",
|
|
1889
|
-
"aria-valuenow":
|
|
1929
|
+
"aria-valuenow": l.value,
|
|
1890
1930
|
"aria-valuemin": r,
|
|
1891
1931
|
"aria-valuemax": a,
|
|
1892
|
-
|
|
1932
|
+
"aria-disabled": l.disabled || n || void 0,
|
|
1933
|
+
tabIndex: l.disabled || n ? -1 : 0
|
|
1893
1934
|
},
|
|
1894
|
-
|
|
1935
|
+
l.id
|
|
1895
1936
|
);
|
|
1896
1937
|
})
|
|
1897
1938
|
}
|
|
1898
1939
|
) });
|
|
1899
1940
|
}
|
|
1900
|
-
|
|
1901
|
-
const
|
|
1902
|
-
function
|
|
1903
|
-
return
|
|
1941
|
+
Ue.displayName = "ThresholdRamp";
|
|
1942
|
+
const ue = ve(null);
|
|
1943
|
+
function je() {
|
|
1944
|
+
return ye(ue);
|
|
1904
1945
|
}
|
|
1905
|
-
function
|
|
1906
|
-
const t =
|
|
1946
|
+
function Qe({ option: e }) {
|
|
1947
|
+
const t = je(), r = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, n = w(() => {
|
|
1907
1948
|
a || t?.select(e.value);
|
|
1908
|
-
}, [a, t, e.value]),
|
|
1909
|
-
|
|
1949
|
+
}, [a, t, e.value]), s = w(
|
|
1950
|
+
(u) => {
|
|
1951
|
+
a || t?.onKeyNav(u, e.value);
|
|
1952
|
+
},
|
|
1953
|
+
[a, t, e.value]
|
|
1954
|
+
), i = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", c = t?.firstFocusableValue === e.value, g = a ? -1 : c ? 0 : -1;
|
|
1955
|
+
return /* @__PURE__ */ h(
|
|
1910
1956
|
"button",
|
|
1911
1957
|
{
|
|
1958
|
+
ref: (u) => t?.registerRef(e.value, u),
|
|
1912
1959
|
type: "button",
|
|
1960
|
+
role: "radio",
|
|
1961
|
+
"aria-checked": r,
|
|
1913
1962
|
className: "gloss-preset-swatch-row__swatch",
|
|
1914
|
-
style: { backgroundColor:
|
|
1963
|
+
style: { backgroundColor: i },
|
|
1915
1964
|
"data-selected": r || void 0,
|
|
1916
1965
|
"data-disabled": a || void 0,
|
|
1917
|
-
"data-bg-color":
|
|
1966
|
+
"data-bg-color": i,
|
|
1918
1967
|
"aria-label": e.label ?? e.value,
|
|
1919
|
-
"aria-pressed": r,
|
|
1920
1968
|
"aria-disabled": a,
|
|
1921
1969
|
disabled: a,
|
|
1922
|
-
|
|
1970
|
+
tabIndex: g,
|
|
1971
|
+
onClick: n,
|
|
1972
|
+
onKeyDown: s
|
|
1923
1973
|
}
|
|
1924
1974
|
);
|
|
1925
1975
|
}
|
|
1926
|
-
function
|
|
1976
|
+
function Xe({
|
|
1927
1977
|
swatches: e,
|
|
1928
1978
|
value: t,
|
|
1929
1979
|
defaultValue: r,
|
|
1930
1980
|
onChange: a,
|
|
1931
1981
|
disabled: n = !1,
|
|
1932
|
-
name:
|
|
1982
|
+
name: s
|
|
1933
1983
|
}) {
|
|
1934
|
-
const
|
|
1935
|
-
(
|
|
1936
|
-
|
|
1984
|
+
const i = t !== void 0, [c, g] = O(r), u = i ? t : c, C = w(
|
|
1985
|
+
(l) => {
|
|
1986
|
+
i || g(l), a?.(l);
|
|
1937
1987
|
},
|
|
1938
|
-
[
|
|
1939
|
-
),
|
|
1940
|
-
(
|
|
1941
|
-
[
|
|
1942
|
-
),
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1988
|
+
[i, a]
|
|
1989
|
+
), N = w(
|
|
1990
|
+
(l) => u === l,
|
|
1991
|
+
[u]
|
|
1992
|
+
), m = _(/* @__PURE__ */ new Map()), p = w((l, v) => {
|
|
1993
|
+
v ? m.current.set(l, v) : m.current.delete(l);
|
|
1994
|
+
}, []), S = e.filter((l) => !l.disabled && !n), T = S.find((l) => l.value === u)?.value ?? S[0]?.value, b = w((l) => {
|
|
1995
|
+
const v = m.current.get(l);
|
|
1996
|
+
v && v.focus();
|
|
1997
|
+
}, []), x = w(
|
|
1998
|
+
(l, v) => {
|
|
1999
|
+
if (n) return;
|
|
2000
|
+
const d = e.filter((D) => !D.disabled);
|
|
2001
|
+
if (d.length === 0) return;
|
|
2002
|
+
const o = d.findIndex((D) => D.value === v);
|
|
2003
|
+
if (o === -1) return;
|
|
2004
|
+
let f = o;
|
|
2005
|
+
switch (l.key) {
|
|
2006
|
+
case "ArrowRight":
|
|
2007
|
+
case "ArrowDown":
|
|
2008
|
+
f = (o + 1) % d.length;
|
|
2009
|
+
break;
|
|
2010
|
+
case "ArrowLeft":
|
|
2011
|
+
case "ArrowUp":
|
|
2012
|
+
f = (o - 1 + d.length) % d.length;
|
|
2013
|
+
break;
|
|
2014
|
+
case "Home":
|
|
2015
|
+
f = 0;
|
|
2016
|
+
break;
|
|
2017
|
+
case "End":
|
|
2018
|
+
f = d.length - 1;
|
|
2019
|
+
break;
|
|
2020
|
+
case " ":
|
|
2021
|
+
case "Enter":
|
|
2022
|
+
l.preventDefault(), C(v);
|
|
2023
|
+
return;
|
|
2024
|
+
default:
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
l.preventDefault();
|
|
2028
|
+
const y = d[f].value;
|
|
2029
|
+
b(y), C(y);
|
|
2030
|
+
},
|
|
2031
|
+
[n, e, C, b]
|
|
2032
|
+
), I = {
|
|
2033
|
+
selectedValue: u,
|
|
2034
|
+
select: C,
|
|
2035
|
+
isSelected: N,
|
|
1946
2036
|
groupDisabled: n,
|
|
1947
|
-
name:
|
|
2037
|
+
name: s,
|
|
2038
|
+
registerRef: p,
|
|
2039
|
+
firstFocusableValue: T,
|
|
2040
|
+
onKeyNav: x
|
|
1948
2041
|
};
|
|
1949
|
-
return /* @__PURE__ */
|
|
2042
|
+
return /* @__PURE__ */ h(ue.Provider, { value: I, children: /* @__PURE__ */ h(
|
|
1950
2043
|
"div",
|
|
1951
2044
|
{
|
|
1952
2045
|
className: "gloss-preset-swatch-row",
|
|
1953
2046
|
role: "radiogroup",
|
|
1954
|
-
"aria-label":
|
|
2047
|
+
"aria-label": s,
|
|
1955
2048
|
"aria-disabled": n,
|
|
1956
2049
|
"data-disabled": n || void 0,
|
|
1957
|
-
children: e.map((
|
|
2050
|
+
children: e.map((l) => /* @__PURE__ */ h(Qe, { option: l }, l.value))
|
|
1958
2051
|
}
|
|
1959
2052
|
) });
|
|
1960
2053
|
}
|
|
1961
|
-
|
|
1962
|
-
function
|
|
2054
|
+
Xe.displayName = "PresetSwatchRow";
|
|
2055
|
+
function Q(e, t) {
|
|
1963
2056
|
for (const r of e)
|
|
1964
2057
|
if (r.items.some((a) => a.id === t))
|
|
1965
2058
|
return r.zoneKey;
|
|
1966
2059
|
return null;
|
|
1967
2060
|
}
|
|
1968
|
-
function
|
|
2061
|
+
function oe(e, t) {
|
|
1969
2062
|
const r = e.find((a) => a.zoneKey === t);
|
|
1970
|
-
return r ? r.zoneKey :
|
|
2063
|
+
return r ? r.zoneKey : Q(e, t);
|
|
1971
2064
|
}
|
|
1972
|
-
function
|
|
2065
|
+
function Je(e, t, r) {
|
|
1973
2066
|
const a = [...e], [n] = a.splice(t, 1);
|
|
1974
2067
|
return a.splice(r, 0, n), a;
|
|
1975
2068
|
}
|
|
1976
|
-
function
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
2069
|
+
function et(e) {
|
|
2070
|
+
return e.map((t) => `${t.zoneKey}:${t.items.map((r) => r.id).join(",")}`).join("|");
|
|
2071
|
+
}
|
|
2072
|
+
function tt(e) {
|
|
2073
|
+
const [t, r] = O(
|
|
2074
|
+
() => e.zones.map((b) => b.maxItems !== void 0 && b.items.length > b.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2075
|
+
`useSortableZones: zone "${b.zoneKey}" exceeds maxItems (${b.items.length} > ${b.maxItems}); trimming to cap.`
|
|
2076
|
+
), { ...b, items: b.items.slice(0, b.maxItems) }) : b)
|
|
2077
|
+
), [a, n] = O(null), [s, i] = O(null), c = _(null), g = _(e.onZoneChange);
|
|
2078
|
+
g.current = e.onZoneChange;
|
|
2079
|
+
const u = se(
|
|
2080
|
+
() => et(e.zones),
|
|
2081
|
+
[e.zones]
|
|
2082
|
+
), C = _(u);
|
|
2083
|
+
P(() => {
|
|
2084
|
+
C.current !== u && (C.current = u, !a && r(
|
|
2085
|
+
e.zones.map((b) => b.maxItems !== void 0 && b.items.length > b.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2086
|
+
`useSortableZones: zone "${b.zoneKey}" exceeds maxItems (${b.items.length} > ${b.maxItems}); trimming to cap.`
|
|
2087
|
+
), { ...b, items: b.items.slice(0, b.maxItems) }) : b)
|
|
2088
|
+
));
|
|
2089
|
+
}, [u, e.zones, a]);
|
|
2090
|
+
const N = w(
|
|
2091
|
+
(b) => {
|
|
2092
|
+
const x = b.active.id;
|
|
2093
|
+
let I = null, l = null;
|
|
2094
|
+
for (const v of t) {
|
|
2095
|
+
const d = v.items.find((o) => o.id === x);
|
|
2096
|
+
if (d) {
|
|
2097
|
+
I = d, l = v.zoneKey;
|
|
1987
2098
|
break;
|
|
1988
2099
|
}
|
|
1989
2100
|
}
|
|
1990
|
-
|
|
2101
|
+
c.current = l, n(I), i(l);
|
|
1991
2102
|
},
|
|
1992
2103
|
[t]
|
|
1993
|
-
),
|
|
1994
|
-
(
|
|
1995
|
-
if (!
|
|
1996
|
-
|
|
2104
|
+
), m = w(
|
|
2105
|
+
(b) => {
|
|
2106
|
+
if (!b.over) {
|
|
2107
|
+
i(c.current);
|
|
1997
2108
|
return;
|
|
1998
2109
|
}
|
|
1999
|
-
const
|
|
2000
|
-
|
|
2110
|
+
const x = oe(t, b.over.id);
|
|
2111
|
+
i(x);
|
|
2001
2112
|
},
|
|
2002
2113
|
[t]
|
|
2003
|
-
),
|
|
2004
|
-
(
|
|
2005
|
-
const { active:
|
|
2006
|
-
|
|
2114
|
+
), p = w(
|
|
2115
|
+
(b) => {
|
|
2116
|
+
const { active: x, over: I } = b, l = () => {
|
|
2117
|
+
c.current = null, n(null), i(null);
|
|
2007
2118
|
};
|
|
2008
|
-
if (!
|
|
2009
|
-
|
|
2119
|
+
if (!I) {
|
|
2120
|
+
l();
|
|
2010
2121
|
return;
|
|
2011
2122
|
}
|
|
2012
|
-
const
|
|
2013
|
-
if (!
|
|
2014
|
-
|
|
2123
|
+
const v = Q(t, x.id), d = oe(t, I.id);
|
|
2124
|
+
if (!v || !d) {
|
|
2125
|
+
l();
|
|
2015
2126
|
return;
|
|
2016
2127
|
}
|
|
2017
|
-
let
|
|
2018
|
-
if (
|
|
2019
|
-
const
|
|
2020
|
-
|
|
2021
|
-
...
|
|
2022
|
-
items:
|
|
2128
|
+
let o = t.map((f) => ({ ...f, items: [...f.items] }));
|
|
2129
|
+
if (v === d) {
|
|
2130
|
+
const f = o.findIndex((M) => M.zoneKey === v), y = o[f], D = y.items.findIndex((M) => M.id === x.id), k = y.items.findIndex((M) => M.id === I.id), R = k >= 0 ? k : Math.max(0, y.items.length - 1);
|
|
2131
|
+
o[f] = {
|
|
2132
|
+
...y,
|
|
2133
|
+
items: Je(y.items, D, R)
|
|
2023
2134
|
};
|
|
2024
2135
|
} else {
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2136
|
+
const f = o.findIndex((E) => E.zoneKey === v), y = o.findIndex((E) => E.zoneKey === d), D = o[f], k = o[y], R = D.items.find((E) => E.id === x.id);
|
|
2137
|
+
if (!R) {
|
|
2138
|
+
l();
|
|
2139
|
+
return;
|
|
2140
|
+
}
|
|
2141
|
+
const M = D.items.filter((E) => E.id !== x.id), J = k.items.findIndex((E) => E.id === I.id), be = J >= 0 ? J : k.items.length;
|
|
2142
|
+
let ee = M, $ = [...k.items];
|
|
2143
|
+
if (k.maxItems !== void 0 && $.length >= k.maxItems) {
|
|
2144
|
+
const E = $[$.length - 1];
|
|
2145
|
+
$ = $.slice(0, k.maxItems - 1), ee = [...M, E];
|
|
2030
2146
|
}
|
|
2031
|
-
const
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2147
|
+
const te = Math.min(be, $.length), fe = [
|
|
2148
|
+
...$.slice(0, te),
|
|
2149
|
+
R,
|
|
2150
|
+
...$.slice(te)
|
|
2035
2151
|
];
|
|
2036
|
-
|
|
2152
|
+
o[f] = { ...D, items: ee }, o[y] = { ...k, items: fe };
|
|
2037
2153
|
}
|
|
2038
|
-
r(
|
|
2154
|
+
r(o), g.current?.(o), l();
|
|
2039
2155
|
},
|
|
2040
2156
|
[t]
|
|
2041
|
-
),
|
|
2042
|
-
(
|
|
2043
|
-
id:
|
|
2044
|
-
"data-zone-key":
|
|
2157
|
+
), S = w(
|
|
2158
|
+
(b) => ({
|
|
2159
|
+
id: b,
|
|
2160
|
+
"data-zone-key": b
|
|
2045
2161
|
}),
|
|
2046
2162
|
[]
|
|
2047
|
-
),
|
|
2048
|
-
(
|
|
2049
|
-
const
|
|
2163
|
+
), T = w(
|
|
2164
|
+
(b) => {
|
|
2165
|
+
const x = Q(t, b.id) ?? "";
|
|
2050
2166
|
return {
|
|
2051
|
-
id:
|
|
2052
|
-
"data-item-id":
|
|
2053
|
-
"data-zone-key":
|
|
2167
|
+
id: b.id,
|
|
2168
|
+
"data-item-id": b.id,
|
|
2169
|
+
"data-zone-key": x
|
|
2054
2170
|
};
|
|
2055
2171
|
},
|
|
2056
2172
|
[t]
|
|
2057
2173
|
);
|
|
2058
2174
|
return {
|
|
2059
2175
|
zones: t,
|
|
2060
|
-
activeZone:
|
|
2176
|
+
activeZone: s,
|
|
2061
2177
|
activeItem: a,
|
|
2062
|
-
getZoneProps:
|
|
2063
|
-
getItemProps:
|
|
2064
|
-
handleDragStart:
|
|
2065
|
-
handleDragOver:
|
|
2066
|
-
handleDragEnd:
|
|
2178
|
+
getZoneProps: S,
|
|
2179
|
+
getItemProps: T,
|
|
2180
|
+
handleDragStart: N,
|
|
2181
|
+
handleDragOver: m,
|
|
2182
|
+
handleDragEnd: p
|
|
2067
2183
|
};
|
|
2068
2184
|
}
|
|
2069
|
-
let
|
|
2070
|
-
|
|
2071
|
-
|
|
2185
|
+
let K = null, H = null, W = !1;
|
|
2186
|
+
const at = [
|
|
2187
|
+
"DndContext",
|
|
2188
|
+
"DragOverlay",
|
|
2189
|
+
"useSensors",
|
|
2190
|
+
"useSensor",
|
|
2191
|
+
"useDroppable",
|
|
2192
|
+
"PointerSensor",
|
|
2193
|
+
"KeyboardSensor",
|
|
2194
|
+
"closestCenter"
|
|
2195
|
+
], rt = [
|
|
2196
|
+
"SortableContext",
|
|
2197
|
+
"useSortable",
|
|
2198
|
+
"verticalListSortingStrategy"
|
|
2199
|
+
];
|
|
2200
|
+
function nt(e, t) {
|
|
2201
|
+
const r = [], a = e ?? {};
|
|
2202
|
+
for (const s of at)
|
|
2203
|
+
a[s] === void 0 && r.push(`@dnd-kit/core:${s}`);
|
|
2204
|
+
const n = t ?? {};
|
|
2205
|
+
for (const s of rt)
|
|
2206
|
+
n[s] === void 0 && r.push(`@dnd-kit/sortable:${s}`);
|
|
2207
|
+
return r.length === 0 ? { ok: !0 } : { ok: !1, missing: r };
|
|
2208
|
+
}
|
|
2209
|
+
function ot() {
|
|
2210
|
+
return K ? Promise.resolve(K) : W ? Promise.resolve(null) : H || (H = (async () => {
|
|
2072
2211
|
try {
|
|
2073
2212
|
const [e, t, r] = await Promise.all([
|
|
2074
2213
|
import("@dnd-kit/core"),
|
|
2075
2214
|
import("@dnd-kit/sortable"),
|
|
2076
|
-
import("@dnd-kit/utilities").catch(() => (
|
|
2077
|
-
|
|
2078
|
-
|
|
2215
|
+
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
2216
|
+
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
2217
|
+
), {}))
|
|
2218
|
+
]), a = nt(e, t);
|
|
2219
|
+
return a.ok ? (K = {
|
|
2079
2220
|
core: e,
|
|
2080
2221
|
sortable: t,
|
|
2081
2222
|
utilities: r
|
|
2082
|
-
},
|
|
2223
|
+
}, K) : (W = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
2224
|
+
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
2225
|
+
), null);
|
|
2083
2226
|
} catch {
|
|
2084
|
-
return
|
|
2227
|
+
return W = !0, null;
|
|
2085
2228
|
}
|
|
2086
|
-
})(),
|
|
2229
|
+
})(), H);
|
|
2087
2230
|
}
|
|
2088
|
-
function
|
|
2089
|
-
const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay:
|
|
2090
|
-
return
|
|
2091
|
-
if (
|
|
2092
|
-
let
|
|
2093
|
-
return
|
|
2094
|
-
|
|
2231
|
+
function st(e) {
|
|
2232
|
+
const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay: s } = e, i = tt({ zones: t, onZoneChange: r }), [c, g] = F.useState(K);
|
|
2233
|
+
return F.useEffect(() => {
|
|
2234
|
+
if (c) return;
|
|
2235
|
+
let u = !0;
|
|
2236
|
+
return ot().then((C) => {
|
|
2237
|
+
u && g(C);
|
|
2095
2238
|
}), () => {
|
|
2096
|
-
|
|
2239
|
+
u = !1;
|
|
2097
2240
|
};
|
|
2098
|
-
}, [
|
|
2099
|
-
|
|
2241
|
+
}, [c]), c ? /* @__PURE__ */ h(
|
|
2242
|
+
me,
|
|
2100
2243
|
{
|
|
2101
|
-
state:
|
|
2102
|
-
modules:
|
|
2244
|
+
state: i,
|
|
2245
|
+
modules: c,
|
|
2103
2246
|
renderZone: a,
|
|
2104
2247
|
renderItem: n,
|
|
2105
|
-
renderDragOverlay:
|
|
2248
|
+
renderDragOverlay: s
|
|
2106
2249
|
}
|
|
2107
|
-
) : /* @__PURE__ */
|
|
2108
|
-
const
|
|
2109
|
-
return /* @__PURE__ */
|
|
2250
|
+
) : /* @__PURE__ */ h("div", { "data-sortable-zones-passive": "true", children: i.zones.map((u) => {
|
|
2251
|
+
const C = u.items.map((N) => /* @__PURE__ */ h(F.Fragment, { children: n(N) }, N.id));
|
|
2252
|
+
return /* @__PURE__ */ h("div", { ...i.getZoneProps(u.zoneKey), children: a(u.zoneKey, u.items, C) }, u.zoneKey);
|
|
2110
2253
|
}) });
|
|
2111
2254
|
}
|
|
2112
|
-
|
|
2113
|
-
function
|
|
2255
|
+
st.displayName = "SortableZones";
|
|
2256
|
+
function me({
|
|
2114
2257
|
state: e,
|
|
2115
2258
|
modules: t,
|
|
2116
2259
|
renderZone: r,
|
|
2117
2260
|
renderItem: a,
|
|
2118
2261
|
renderDragOverlay: n
|
|
2119
2262
|
}) {
|
|
2120
|
-
const { core:
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
),
|
|
2124
|
-
return /* @__PURE__ */
|
|
2125
|
-
|
|
2263
|
+
const { core: s, sortable: i, utilities: c } = t, { DndContext: g, DragOverlay: u, useSensors: C, useSensor: N, useDroppable: m, PointerSensor: p, KeyboardSensor: S, closestCenter: T } = s, { SortableContext: b, verticalListSortingStrategy: x } = i, I = C(
|
|
2264
|
+
N(p, { activationConstraint: { distance: 5 } }),
|
|
2265
|
+
N(S)
|
|
2266
|
+
), l = g, v = u, d = b;
|
|
2267
|
+
return /* @__PURE__ */ A(
|
|
2268
|
+
l,
|
|
2126
2269
|
{
|
|
2127
|
-
sensors:
|
|
2128
|
-
collisionDetection:
|
|
2270
|
+
sensors: I,
|
|
2271
|
+
collisionDetection: T,
|
|
2129
2272
|
onDragStart: e.handleDragStart,
|
|
2130
2273
|
onDragOver: e.handleDragOver,
|
|
2131
2274
|
onDragEnd: e.handleDragEnd,
|
|
2132
2275
|
children: [
|
|
2133
|
-
e.zones.map((
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2276
|
+
e.zones.map((o) => {
|
|
2277
|
+
const f = o.items.map((D) => D.id), y = o.items.map((D) => /* @__PURE__ */ h(
|
|
2278
|
+
pe,
|
|
2136
2279
|
{
|
|
2137
|
-
id:
|
|
2138
|
-
useSortable:
|
|
2139
|
-
cssHelper:
|
|
2140
|
-
children: a(
|
|
2280
|
+
id: D.id,
|
|
2281
|
+
useSortable: i.useSortable,
|
|
2282
|
+
cssHelper: c.CSS,
|
|
2283
|
+
children: a(D)
|
|
2141
2284
|
},
|
|
2142
|
-
|
|
2285
|
+
D.id
|
|
2143
2286
|
));
|
|
2144
|
-
return /* @__PURE__ */
|
|
2287
|
+
return /* @__PURE__ */ h(
|
|
2288
|
+
ge,
|
|
2289
|
+
{
|
|
2290
|
+
zoneKey: o.zoneKey,
|
|
2291
|
+
zoneProps: e.getZoneProps(o.zoneKey),
|
|
2292
|
+
useDroppable: m,
|
|
2293
|
+
children: /* @__PURE__ */ h(d, { items: f, strategy: x, children: r(o.zoneKey, o.items, y) })
|
|
2294
|
+
},
|
|
2295
|
+
o.zoneKey
|
|
2296
|
+
);
|
|
2145
2297
|
}),
|
|
2146
|
-
/* @__PURE__ */
|
|
2298
|
+
/* @__PURE__ */ h(v, { children: e.activeItem ? n?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
2147
2299
|
]
|
|
2148
2300
|
}
|
|
2149
2301
|
);
|
|
2150
2302
|
}
|
|
2151
|
-
|
|
2152
|
-
function
|
|
2153
|
-
const { attributes: n, listeners:
|
|
2154
|
-
transform: r?.Transform?.toString(
|
|
2155
|
-
transition:
|
|
2156
|
-
opacity:
|
|
2303
|
+
me.displayName = "SortableZonesInner";
|
|
2304
|
+
function pe({ id: e, useSortable: t, cssHelper: r, children: a }) {
|
|
2305
|
+
const { attributes: n, listeners: s, setNodeRef: i, transform: c, transition: g, isDragging: u } = t({ id: e }), C = {
|
|
2306
|
+
transform: r?.Transform?.toString(c) ?? void 0,
|
|
2307
|
+
transition: g,
|
|
2308
|
+
opacity: u ? 0.5 : 1
|
|
2157
2309
|
};
|
|
2158
|
-
return /* @__PURE__ */
|
|
2310
|
+
return /* @__PURE__ */ h("div", { ref: i, style: C, "data-sortable-item-id": e, ...n, ...s, children: a });
|
|
2311
|
+
}
|
|
2312
|
+
pe.displayName = "SortableItem";
|
|
2313
|
+
function ge({
|
|
2314
|
+
zoneKey: e,
|
|
2315
|
+
zoneProps: t,
|
|
2316
|
+
useDroppable: r,
|
|
2317
|
+
children: a
|
|
2318
|
+
}) {
|
|
2319
|
+
const { setNodeRef: n, isOver: s } = r({ id: e });
|
|
2320
|
+
return /* @__PURE__ */ h("div", { ref: n, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
2159
2321
|
}
|
|
2160
|
-
|
|
2161
|
-
const
|
|
2322
|
+
ge.displayName = "ZoneDroppable";
|
|
2323
|
+
const it = F.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
|
|
2162
2324
|
const n = { ...r };
|
|
2163
|
-
return delete n.className, delete n.style, /* @__PURE__ */
|
|
2325
|
+
return delete n.className, delete n.style, /* @__PURE__ */ h("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...n, children: /* @__PURE__ */ h(X, { region: "toolbar", density: e, children: t }) });
|
|
2164
2326
|
});
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2167
|
-
const
|
|
2168
|
-
return delete
|
|
2169
|
-
e && /* @__PURE__ */
|
|
2170
|
-
t && /* @__PURE__ */
|
|
2171
|
-
/* @__PURE__ */
|
|
2327
|
+
it.displayName = "ContainerToolbar";
|
|
2328
|
+
const lt = F.forwardRef(({ legend: e, description: t, density: r = "default", children: a, ...n }, s) => {
|
|
2329
|
+
const i = { ...n };
|
|
2330
|
+
return delete i.className, delete i.style, /* @__PURE__ */ A("fieldset", { ref: s, className: "gloss-container-form-section", ...i, children: [
|
|
2331
|
+
e && /* @__PURE__ */ h("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
2332
|
+
t && /* @__PURE__ */ h("p", { className: "gloss-container-form-section__description", children: t }),
|
|
2333
|
+
/* @__PURE__ */ h(X, { region: "form-section", density: r, children: a })
|
|
2172
2334
|
] });
|
|
2173
2335
|
});
|
|
2174
|
-
|
|
2175
|
-
const
|
|
2336
|
+
lt.displayName = "ContainerFormSection";
|
|
2337
|
+
const dt = F.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
|
|
2176
2338
|
const n = { ...r };
|
|
2177
|
-
return delete n.className, delete n.style, /* @__PURE__ */
|
|
2339
|
+
return delete n.className, delete n.style, /* @__PURE__ */ h("div", { ref: a, className: "gloss-container-table", ...n, children: /* @__PURE__ */ h(X, { region: "table", density: e, children: t }) });
|
|
2178
2340
|
});
|
|
2179
|
-
|
|
2341
|
+
dt.displayName = "ContainerTable";
|
|
2180
2342
|
export {
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2343
|
+
oa as Accordion,
|
|
2344
|
+
sa as AccordionContent,
|
|
2345
|
+
ia as AccordionItem,
|
|
2346
|
+
la as AccordionTrigger,
|
|
2347
|
+
da as Actionable,
|
|
2348
|
+
ca as AddressGroup,
|
|
2349
|
+
ua as AddressSelect,
|
|
2350
|
+
ma as AsyncLoader,
|
|
2351
|
+
pa as Autocomplete,
|
|
2352
|
+
ga as Badge,
|
|
2353
|
+
ba as BarChartCard,
|
|
2354
|
+
fa as BarsBg,
|
|
2355
|
+
ha as Button,
|
|
2356
|
+
va as ButtonGroup,
|
|
2357
|
+
ya as ButtonGroupContext,
|
|
2358
|
+
Ca as Card,
|
|
2359
|
+
wa as CardActions,
|
|
2360
|
+
Da as CardBack,
|
|
2361
|
+
Na as CardBody,
|
|
2362
|
+
Sa as CardFooter,
|
|
2363
|
+
ka as CardHeader,
|
|
2364
|
+
xa as CardMedia,
|
|
2365
|
+
Ta as CardShell,
|
|
2366
|
+
Ia as CardSubtitle,
|
|
2367
|
+
Ra as CardTitle,
|
|
2368
|
+
_a as ChartControlBar,
|
|
2369
|
+
Ma as Checkbox,
|
|
2370
|
+
Pa as CheckboxGroup,
|
|
2371
|
+
Fa as Chip,
|
|
2372
|
+
Ea as ColorPicker,
|
|
2373
|
+
Oa as ComparisonCard,
|
|
2374
|
+
Aa as ContactForm,
|
|
2375
|
+
La as ContainerCard,
|
|
2376
|
+
$a as ContainerCardActions,
|
|
2377
|
+
Ba as ContainerCardBody,
|
|
2378
|
+
Ka as ContainerCardFooter,
|
|
2379
|
+
Ga as ContainerCardHeader,
|
|
2380
|
+
Ha as ContainerCardMedia,
|
|
2381
|
+
za as ContainerCardSubtitle,
|
|
2382
|
+
Za as ContainerCardTitle,
|
|
2383
|
+
Va as ContainerDialog,
|
|
2384
|
+
Wa as ContainerDialogActions,
|
|
2385
|
+
Ya as ContainerDialogBody,
|
|
2386
|
+
qa as ContainerDialogHeader,
|
|
2387
|
+
lt as ContainerFormSection,
|
|
2388
|
+
Ua as ContainerPanel,
|
|
2389
|
+
dt as ContainerTable,
|
|
2390
|
+
it as ContainerToolbar,
|
|
2391
|
+
ja as CreditCardForm,
|
|
2392
|
+
ko as DEFAULT_MARKET_PRESETS,
|
|
2393
|
+
xo as DEFAULT_PINNED,
|
|
2394
|
+
Qa as DataTable,
|
|
2395
|
+
Xa as DatePicker,
|
|
2396
|
+
Ja as DateRangePicker,
|
|
2397
|
+
er as DestructiveModal,
|
|
2398
|
+
tr as DirectionCard,
|
|
2399
|
+
ar as Dismissible,
|
|
2400
|
+
rr as DistributionCard,
|
|
2401
|
+
nr as DonutChart,
|
|
2402
|
+
or as Dropdown,
|
|
2403
|
+
sr as ENTITY_FILTER_KEYS,
|
|
2404
|
+
ir as ENTITY_PROFILE_ROUTES,
|
|
2405
|
+
lr as ENTITY_TYPE_PLURAL,
|
|
2406
|
+
Re as EdgeHoverHandle,
|
|
2407
|
+
dr as EntityPicker,
|
|
2408
|
+
cr as EntitySearchPanel,
|
|
2409
|
+
ur as Expandable,
|
|
2410
|
+
mr as ExpandableChip,
|
|
2411
|
+
pr as FLIP_AND_STAGE_TIMINGS,
|
|
2412
|
+
gr as FileUpload,
|
|
2413
|
+
br as FilterChip,
|
|
2414
|
+
fr as FilterInput,
|
|
2415
|
+
hr as FlipAndStageProvider,
|
|
2416
|
+
vr as Form,
|
|
2417
|
+
yr as FormDialog,
|
|
2418
|
+
Cr as FormField,
|
|
2419
|
+
wr as FusedShape,
|
|
2420
|
+
_e as GhostPreview,
|
|
2421
|
+
Dr as GroupCheckbox,
|
|
2422
|
+
Nr as GroupRadio,
|
|
2423
|
+
Sr as GutterActions,
|
|
2424
|
+
kr as HighlightCard,
|
|
2425
|
+
xr as HybridDatePicker,
|
|
2426
|
+
Tr as ImportWizard,
|
|
2427
|
+
We as InlineNudge,
|
|
2428
|
+
Ir as Input,
|
|
2429
|
+
Rr as InputAddon,
|
|
2430
|
+
_r as InputGroup,
|
|
2431
|
+
Mr as Link,
|
|
2432
|
+
Pr as LoginForm,
|
|
2433
|
+
Fr as MarketPresetRow,
|
|
2434
|
+
Er as MaskPresets,
|
|
2435
|
+
Or as MaskedInput,
|
|
2436
|
+
Ar as Menu,
|
|
2437
|
+
Lr as MenuDivider,
|
|
2438
|
+
$r as MenuGroup,
|
|
2439
|
+
Br as MenuItem,
|
|
2440
|
+
Kr as MergePrompt,
|
|
2441
|
+
Gr as MetricCard,
|
|
2442
|
+
Hr as MetricCardGrid,
|
|
2443
|
+
Ve as MetricGroupContainer,
|
|
2444
|
+
zr as MiniCalendar,
|
|
2445
|
+
Zr as MultiSelect,
|
|
2446
|
+
Vr as NumberInput,
|
|
2447
|
+
Wr as ObjectArrow,
|
|
2448
|
+
Yr as OrderFilterBar,
|
|
2449
|
+
To as PERIOD_OPTIONS,
|
|
2450
|
+
Le as PageChip,
|
|
2451
|
+
ie as PageDropdown,
|
|
2452
|
+
qr as PasswordInput,
|
|
2453
|
+
Ur as PaymentForm,
|
|
2454
|
+
jr as PaymentMethodSelect,
|
|
2455
|
+
Qr as PhoneInput,
|
|
2456
|
+
Xr as PinToMetric,
|
|
2457
|
+
Xe as PresetSwatchRow,
|
|
2458
|
+
Jr as ProfileCard,
|
|
2459
|
+
en as ProgressCard,
|
|
2460
|
+
tn as QuickConfigPanel,
|
|
2461
|
+
Io as ROLLING_OPTIONS,
|
|
2462
|
+
an as Radio,
|
|
2463
|
+
rn as RadioGroup,
|
|
2464
|
+
nn as RangeSlider,
|
|
2465
|
+
on as Rating,
|
|
2466
|
+
sn as RegistrationForm,
|
|
2467
|
+
ln as Row1Controls,
|
|
2468
|
+
dn as Row2FilterTray,
|
|
2469
|
+
cn as SearchInput,
|
|
2470
|
+
un as SegmentCard,
|
|
2471
|
+
mn as SegmentedControl,
|
|
2472
|
+
pn as Select,
|
|
2473
|
+
gn as Selectable,
|
|
2474
|
+
bn as SimpleMetricCard,
|
|
2475
|
+
fn as SimpleSelector,
|
|
2476
|
+
hn as Skeleton,
|
|
2477
|
+
vn as SkeletonCard,
|
|
2478
|
+
yn as SkeletonChart,
|
|
2479
|
+
Cn as SkeletonTable,
|
|
2480
|
+
wn as Slider,
|
|
2481
|
+
Dn as Sortable,
|
|
2482
|
+
st as SortableZones,
|
|
2483
|
+
Nn as SparklineBg,
|
|
2484
|
+
Sn as SplitButton,
|
|
2485
|
+
kn as StackedGroupCard,
|
|
2486
|
+
xn as StatusModeCard,
|
|
2487
|
+
Ie as StatusSlotChipMenu,
|
|
2488
|
+
Tn as Stepper,
|
|
2489
|
+
Ro as TODAY_PRESET,
|
|
2490
|
+
In as TabGroup,
|
|
2491
|
+
Rn as TabbedDataView,
|
|
2492
|
+
_n as TagInput,
|
|
2493
|
+
Mn as Textarea,
|
|
2494
|
+
Ue as ThresholdRamp,
|
|
2495
|
+
Pn as TimeFrame,
|
|
2496
|
+
Fn as TimePicker,
|
|
2497
|
+
En as Toggle,
|
|
2498
|
+
On as Tooltip,
|
|
2499
|
+
An as Transition,
|
|
2500
|
+
Ln as TransitionGroup,
|
|
2501
|
+
$n as TrendCard,
|
|
2502
|
+
Bn as TrendIndicator,
|
|
2503
|
+
Do as UIContext,
|
|
2504
|
+
X as UIContextProvider,
|
|
2505
|
+
Kn as UnifiedBreakdownTable,
|
|
2506
|
+
Gn as UnifiedContextMenu,
|
|
2507
|
+
Hn as addressGroupMetadata,
|
|
2508
|
+
zn as addressSchema,
|
|
2509
|
+
ft as allChips,
|
|
2510
|
+
It as allStateFixtures,
|
|
2511
|
+
Tt as allVariantFixtures,
|
|
2512
|
+
Ct as blockSamples,
|
|
2513
|
+
kt as cardSamples,
|
|
2514
|
+
Nt as chartSamples,
|
|
2515
|
+
Dt as circleSamples,
|
|
2516
|
+
jt as compactLayout,
|
|
2517
|
+
Bt as compactState,
|
|
2518
|
+
Zn as contactFormMetadata,
|
|
2519
|
+
Vn as contactSchema,
|
|
2520
|
+
Kt as contextMenuFixtures,
|
|
2521
|
+
Wn as creditCardFormMetadata,
|
|
2522
|
+
Yn as creditCardSchema,
|
|
2523
|
+
Se as dateChip,
|
|
2524
|
+
ce as defaultControlBarState,
|
|
2525
|
+
qn as destructiveModalMetadata,
|
|
2526
|
+
Un as durations,
|
|
2527
|
+
jn as easings,
|
|
2528
|
+
Fe as emptyFixture,
|
|
2529
|
+
De as entityChip,
|
|
2530
|
+
Ge as entityNameActions,
|
|
2531
|
+
vt as entityTabGroup,
|
|
2370
2532
|
Pe as errorFixture,
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2533
|
+
$t as filteredState,
|
|
2534
|
+
_o as findPreset,
|
|
2535
|
+
Mo as formatDateRange,
|
|
2536
|
+
Po as formatMarketDates,
|
|
2537
|
+
Fo as formatTrend,
|
|
2538
|
+
Eo as formatValue,
|
|
2539
|
+
Xt as fullLayout,
|
|
2540
|
+
Oo as generateMarketId,
|
|
2541
|
+
Qn as generateTabId,
|
|
2542
|
+
Ao as getAllPresets,
|
|
2543
|
+
Lo as getDateRangeForPreset,
|
|
2544
|
+
Xn as getMenuActions,
|
|
2545
|
+
$o as getPresetLabel,
|
|
2546
|
+
Jn as getTransitionStyle,
|
|
2547
|
+
Ut as gridCards,
|
|
2548
|
+
eo as interpolate,
|
|
2549
|
+
Bo as isInRange,
|
|
2550
|
+
Ko as isMarketActive,
|
|
2551
|
+
Go as isSameDay,
|
|
2552
|
+
Lt as itemColumns,
|
|
2553
|
+
Ot as itemRows,
|
|
2554
|
+
Me as loadingFixture,
|
|
2555
|
+
to as loginFormMetadata,
|
|
2556
|
+
ao as loginSchema,
|
|
2557
|
+
ke as manufacturerChip,
|
|
2558
|
+
aa as manyTabs,
|
|
2559
|
+
ro as mergeHandlers,
|
|
2560
|
+
no as mergeRefs,
|
|
2561
|
+
ht as metricTabGroup,
|
|
2562
|
+
ea as mixedTabs,
|
|
2563
|
+
Ho as normalizePresetId,
|
|
2564
|
+
ze as numericActions,
|
|
2565
|
+
At as orderColumns,
|
|
2566
|
+
He as orderIdActions,
|
|
2567
|
+
Et as orderRows,
|
|
2568
|
+
Jt as ordersTabs,
|
|
2569
|
+
oo as parseNumericValue,
|
|
2570
|
+
so as paymentFormMetadata,
|
|
2571
|
+
io as paymentSchema,
|
|
2572
|
+
lo as presets,
|
|
2573
|
+
co as registrationFormMetadata,
|
|
2574
|
+
uo as registrationSchema,
|
|
2575
|
+
Ht as sampleCompareRanges,
|
|
2576
|
+
Vt as sampleCustomMarkets,
|
|
2577
|
+
Gt as sampleDateRange,
|
|
2578
|
+
Wt as sampleMarketPresetData,
|
|
2579
|
+
Zt as sampleMarkets,
|
|
2580
|
+
qt as samplePeriodPresets,
|
|
2581
|
+
zt as samplePreferences,
|
|
2582
|
+
Yt as samplePresets,
|
|
2583
|
+
ta as singleTab,
|
|
2584
|
+
Rt as sparklineFixture,
|
|
2585
|
+
_t as sparklineUpFixture,
|
|
2586
|
+
Ae as staleDonutFixture,
|
|
2587
|
+
Ee as staleFixture,
|
|
2588
|
+
Oe as staleSparklineFixture,
|
|
2589
|
+
Mt as standardFixture,
|
|
2590
|
+
Ft as standardFlatFixture,
|
|
2591
|
+
Qt as standardLayout,
|
|
2592
|
+
Pt as standardNegativeFixture,
|
|
2593
|
+
Ne as statusChip,
|
|
2594
|
+
St as tableSamples,
|
|
2595
|
+
wt as textSamples,
|
|
2596
|
+
yt as timeFrameTabGroup,
|
|
2597
|
+
zo as toUppercasePresetId,
|
|
2598
|
+
bt as useArrowNavigation,
|
|
2599
|
+
mo as useCheckboxGroupContext,
|
|
2600
|
+
xt as useEdgeHoverResize,
|
|
2601
|
+
po as useFilterLayout,
|
|
2602
|
+
go as useFlipAndStage,
|
|
2603
|
+
bo as useFlipAndStageContext,
|
|
2604
|
+
fo as useFlipAndStageContextOptional,
|
|
2605
|
+
gt as useFocusReturn,
|
|
2606
|
+
ho as useFocusTrap,
|
|
2607
|
+
vo as useFormContext,
|
|
2608
|
+
yo as useRadioGroupContext,
|
|
2609
|
+
Co as useSlideOutReveal,
|
|
2610
|
+
tt as useSortableZones,
|
|
2611
|
+
No as useUIContext
|
|
2450
2612
|
};
|