@mt-gloss/ui 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1282 -1251
- package/lib/primitives/dashboard/DevTuningPanel/useResizeTuning.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/GhostPreview.d.ts +21 -7
- package/lib/primitives/dashboard/MetricCard/__tests__/fixtures/nyquist-09-parity-matrix.d.ts +5 -2
- package/lib/primitives/dashboard/MetricCard/resizePhysics.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +20 -6
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { motion as
|
|
5
|
-
import { B as
|
|
6
|
-
import { a as
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
const { enabled: t = !0, returnTo:
|
|
17
|
-
return
|
|
18
|
-
t && (
|
|
19
|
-
}, [t,
|
|
20
|
-
t &&
|
|
21
|
-
|
|
1
|
+
import { N as ca, T as da, O as ua, Q as ma, a3 as pa, b6 as ga, az as fa, ah as ha, Z as ba, an as va, K as ya, a8 as wa, bo as Da, P as Ca, B as Na, a as ka, y as xa, H as Sa, bi as Ta, F as _a, J as Ia, A as Ra, z as Ma, bh as Pa, E as Fa, D as Ea, bx as Oa, b as Aa, C as La, L as $a, o as Ba, ad as Ka, aN as Wa, y as Ga, H as Ha, F as Va, J as za, A as Za, z as Ua, E as Ya, D as qa, a$ as ja, b2 as Xa, b1 as Qa, b0 as Ja, b3 as er, aC as tr, a5 as nr, a4 as ar, aq as rr, k as sr, m as or, aF as ir, ab as lr, b8 as cr, a9 as dr, bp as ur, Y as mr, bH as pr, bG as gr, bI as fr, ap as hr, aQ as br, ba as vr, bM as yr, bv as wr, n as Dr, am as Cr, bB as Nr, bs as kr, a0 as xr, ar as Sr, a2 as Tr, bA as _r, G as Ir, d as Rr, aa as Mr, bJ as Pr, aT as Fr, r as Er, v as Or, I as Ar, g as Lr, aw as $r, bN as Br, M as Kr, w as Wr, U as Gr, X as Hr, V as Vr, W as zr, as as Zr, bg as Ur, bP as Yr, bL as qr, ao as jr, t as Xr, bq as Qr, aS as Jr, aj as es, aK as ts, ag as ns, al as as, au as rs, aR as ss, ac as os, at as is, c as ls, R as cs, j as ds, p as us, aH as ms, by as ps, bz as gs, ai as fs, ae as hs, h as bs, x as vs, b7 as ys, af as ws, bO as Ds, bc as Cs, bf as Ns, bd as ks, be as xs, i as Ss, b9 as Ts, bn as _s, S as Is, bk as Rs, bl as Ms, av as Ps, bb as Fs, bQ as Es, ak as Os, s as As, bK as Ls, l as $s, f as Bs, q as Ks, _ as Ws, $ as Gs, a7 as Hs, bj as Vs, bw as zs, bD as Zs, aA as Us, aB as Ys, a6 as qs, aO as js, aP as Xs, aD as Qs, aE as Js, aG as eo, aV as to, aW as no, bF as ao, bE as ro, aY as so, aZ as oo, ax as io, ay as lo, b5 as co, b4 as uo, a_ as mo, aL as po, aM as go, aX as fo, aI as ho, aJ as bo, u as vo, bC as yo, br as wo, bt as Do, bu as Co, aU as No, a1 as ko, e as xo, bm as So } from "./Expandable-BdC9RXOI.js";
|
|
2
|
+
import { jsxs as O, jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import W, { useRef as P, useEffect as L, useState as K, useCallback as f, forwardRef as He, useMemo as ne, createContext as Ve, useContext as ze } from "react";
|
|
4
|
+
import { motion as Se, useMotionValue as Ze, animate as we, useDragControls as Ue } from "framer-motion";
|
|
5
|
+
import { B as Ye, U as ve } from "./UIContext-C3E-k7HI.js";
|
|
6
|
+
import { a as _o, u as Io } from "./UIContext-C3E-k7HI.js";
|
|
7
|
+
import { createPortal as qe } from "react-dom";
|
|
8
|
+
import { DEFAULT_MARKET_PRESETS as Mo, DEFAULT_PINNED as Po, PERIOD_OPTIONS as Fo, ROLLING_OPTIONS as Eo, TODAY_PRESET as Oo, findPreset as Ao, formatDateRange as Lo, formatMarketDates as $o, formatTrend as Bo, formatValue as Ko, generateMarketId as Wo, getAllPresets as Go, getDateRangeForPreset as Ho, getPresetLabel as Vo, isInRange as zo, isMarketActive as Zo, isSameDay as Uo, normalizePresetId as Yo, toUppercasePresetId as qo } from "@mt-gloss/utils";
|
|
9
|
+
import je from "@mui/icons-material/AccessTime";
|
|
10
|
+
import Xe from "@mui/icons-material/Tune";
|
|
11
|
+
import Qe from "@mui/icons-material/ViewColumn";
|
|
12
|
+
import Je from "@mui/icons-material/AspectRatio";
|
|
13
|
+
import et from "@mui/icons-material/Palette";
|
|
14
|
+
import tt from "@mui/icons-material/PushPin";
|
|
15
|
+
function bn(e = {}) {
|
|
16
|
+
const { enabled: t = !0, returnTo: a } = e, n = P(null);
|
|
17
|
+
return L(() => {
|
|
18
|
+
t && (n.current = a || document.activeElement);
|
|
19
|
+
}, [t, a]), L(() => () => {
|
|
20
|
+
t && n.current && setTimeout(() => {
|
|
21
|
+
n.current?.focus?.();
|
|
22
22
|
}, 0);
|
|
23
|
-
}, [t]),
|
|
23
|
+
}, [t]), n;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function vn(e) {
|
|
26
26
|
const {
|
|
27
27
|
items: t,
|
|
28
|
-
activeIndex:
|
|
29
|
-
onActiveIndexChange:
|
|
30
|
-
loop:
|
|
28
|
+
activeIndex: a,
|
|
29
|
+
onActiveIndexChange: n,
|
|
30
|
+
loop: s = !0,
|
|
31
31
|
orientation: o = "vertical",
|
|
32
|
-
enabled:
|
|
33
|
-
isItemDisabled:
|
|
32
|
+
enabled: l = !0,
|
|
33
|
+
isItemDisabled: m,
|
|
34
34
|
onSelect: h,
|
|
35
35
|
onEscape: u
|
|
36
|
-
} = e, [
|
|
37
|
-
(
|
|
38
|
-
|
|
36
|
+
} = e, [D, v] = K(-1), i = a !== void 0 ? a : D, c = f(
|
|
37
|
+
(r) => {
|
|
38
|
+
a === void 0 && v(r), n?.(r);
|
|
39
39
|
},
|
|
40
|
-
[
|
|
41
|
-
),
|
|
42
|
-
(
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return
|
|
48
|
-
let
|
|
49
|
-
return
|
|
40
|
+
[a, n]
|
|
41
|
+
), y = f(() => t.map((r, g) => ({ item: r, index: g })).filter(({ item: r, index: g }) => !m?.(r, g)).map(({ index: r }) => r), [t, m]), I = f(
|
|
42
|
+
(r, g) => {
|
|
43
|
+
const b = y();
|
|
44
|
+
if (b.length === 0) return -1;
|
|
45
|
+
const x = b.indexOf(r);
|
|
46
|
+
if (x === -1)
|
|
47
|
+
return g === 1 ? b.find((M) => M > r) ?? (s ? b[0] : -1) : [...b].reverse().find((S) => S < r) ?? (s ? b[b.length - 1] : -1);
|
|
48
|
+
let k = x + g;
|
|
49
|
+
return s ? k = (k + b.length) % b.length : k = Math.max(0, Math.min(b.length - 1, k)), b[k];
|
|
50
50
|
},
|
|
51
|
-
[
|
|
52
|
-
),
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
}, [
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
}, [
|
|
67
|
-
(
|
|
68
|
-
if (!
|
|
69
|
-
const { key:
|
|
70
|
-
if (
|
|
71
|
-
|
|
51
|
+
[y, s]
|
|
52
|
+
), p = f(() => {
|
|
53
|
+
const r = y();
|
|
54
|
+
r.length > 0 && c(r[0]);
|
|
55
|
+
}, [y, c]), T = f(() => {
|
|
56
|
+
const r = y();
|
|
57
|
+
r.length > 0 && c(r[r.length - 1]);
|
|
58
|
+
}, [y, c]), R = f(() => {
|
|
59
|
+
const r = I(i, 1);
|
|
60
|
+
r !== -1 && c(r);
|
|
61
|
+
}, [i, I, c]), C = f(() => {
|
|
62
|
+
const r = I(i, -1);
|
|
63
|
+
r !== -1 && c(r);
|
|
64
|
+
}, [i, I, c]), _ = f(() => {
|
|
65
|
+
c(-1);
|
|
66
|
+
}, [c]), N = f(
|
|
67
|
+
(r) => {
|
|
68
|
+
if (!l) return;
|
|
69
|
+
const { key: g } = r, b = g === "ArrowUp" && (o === "vertical" || o === "both"), x = g === "ArrowDown" && (o === "vertical" || o === "both"), k = g === "ArrowLeft" && (o === "horizontal" || o === "both"), M = g === "ArrowRight" && (o === "horizontal" || o === "both");
|
|
70
|
+
if (b || k) {
|
|
71
|
+
r.preventDefault(), i === -1 ? T() : C();
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
if (
|
|
75
|
-
|
|
74
|
+
if (x || M) {
|
|
75
|
+
r.preventDefault(), i === -1 ? p() : R();
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
79
|
-
|
|
78
|
+
if (g === "Home") {
|
|
79
|
+
r.preventDefault(), p();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
if (
|
|
83
|
-
|
|
82
|
+
if (g === "End") {
|
|
83
|
+
r.preventDefault(), T();
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
if ((
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
86
|
+
if ((g === "Enter" || g === " ") && i >= 0 && i < t.length) {
|
|
87
|
+
r.preventDefault();
|
|
88
|
+
const S = t[i];
|
|
89
|
+
m?.(S, i) || h?.(S, i);
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
if (
|
|
92
|
+
if (g === "Escape") {
|
|
93
93
|
u?.();
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
[
|
|
98
|
-
i,
|
|
99
|
-
o,
|
|
100
98
|
l,
|
|
99
|
+
o,
|
|
100
|
+
i,
|
|
101
101
|
t,
|
|
102
|
-
g,
|
|
103
|
-
S,
|
|
104
|
-
C,
|
|
105
|
-
f,
|
|
106
102
|
p,
|
|
103
|
+
T,
|
|
104
|
+
R,
|
|
105
|
+
C,
|
|
106
|
+
m,
|
|
107
107
|
h,
|
|
108
108
|
u
|
|
109
109
|
]
|
|
110
110
|
);
|
|
111
111
|
return {
|
|
112
|
-
focusedIndex:
|
|
113
|
-
setFocusedIndex:
|
|
114
|
-
handleKeyDown:
|
|
115
|
-
focusFirst:
|
|
116
|
-
focusLast:
|
|
117
|
-
focusNext:
|
|
118
|
-
focusPrevious:
|
|
119
|
-
resetFocus:
|
|
112
|
+
focusedIndex: i,
|
|
113
|
+
setFocusedIndex: c,
|
|
114
|
+
handleKeyDown: N,
|
|
115
|
+
focusFirst: p,
|
|
116
|
+
focusLast: T,
|
|
117
|
+
focusNext: R,
|
|
118
|
+
focusPrevious: C,
|
|
119
|
+
resetFocus: _
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
},
|
|
122
|
+
const se = (e) => {
|
|
123
|
+
}, nt = {
|
|
124
124
|
id: "entity-filter-1",
|
|
125
125
|
label: "Customer: Acme Corp",
|
|
126
126
|
field: "customer",
|
|
127
127
|
value: "acme-corp-123",
|
|
128
|
-
onRemove:
|
|
129
|
-
},
|
|
128
|
+
onRemove: se
|
|
129
|
+
}, at = {
|
|
130
130
|
id: "status-filter-1",
|
|
131
131
|
label: "Status: Open",
|
|
132
132
|
field: "status",
|
|
133
133
|
value: "open",
|
|
134
|
-
onRemove:
|
|
135
|
-
},
|
|
134
|
+
onRemove: se
|
|
135
|
+
}, rt = {
|
|
136
136
|
id: "date-filter-1",
|
|
137
137
|
label: "Date: Mar 1 - Mar 15",
|
|
138
138
|
field: "dateRange",
|
|
139
139
|
value: "2026-03-01..2026-03-15",
|
|
140
|
-
onRemove:
|
|
141
|
-
},
|
|
140
|
+
onRemove: se
|
|
141
|
+
}, st = {
|
|
142
142
|
id: "mfg-filter-1",
|
|
143
143
|
label: "Manufacturer: Widget Co",
|
|
144
144
|
field: "manufacturer",
|
|
145
145
|
value: "widget-co-456",
|
|
146
|
-
onRemove:
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
],
|
|
146
|
+
onRemove: se
|
|
147
|
+
}, yn = [
|
|
148
|
+
nt,
|
|
149
|
+
at,
|
|
150
|
+
rt,
|
|
151
|
+
st
|
|
152
|
+
], wn = {
|
|
153
153
|
id: "metric-toggle",
|
|
154
154
|
tabs: [
|
|
155
155
|
{ id: "$", label: "$", mono: !0 },
|
|
156
156
|
{ id: "#", label: "#", mono: !0 }
|
|
157
157
|
]
|
|
158
|
-
},
|
|
158
|
+
}, Dn = {
|
|
159
159
|
id: "entity-type",
|
|
160
160
|
tabs: [
|
|
161
161
|
{ id: "orders", label: "Orders" },
|
|
@@ -163,7 +163,7 @@ const re = (e) => {
|
|
|
163
163
|
{ id: "customers", label: "Customers" },
|
|
164
164
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
165
165
|
]
|
|
166
|
-
},
|
|
166
|
+
}, Cn = {
|
|
167
167
|
id: "time-frame",
|
|
168
168
|
tabs: [
|
|
169
169
|
{ id: "MTD", label: "MTD" },
|
|
@@ -171,30 +171,30 @@ const re = (e) => {
|
|
|
171
171
|
{ id: "YTD", label: "YTD" },
|
|
172
172
|
{ id: "LYTD", label: "LYTD" }
|
|
173
173
|
]
|
|
174
|
-
},
|
|
174
|
+
}, Nn = [
|
|
175
175
|
{ variant: "block", width: "100%", height: 16 },
|
|
176
176
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
177
177
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
178
178
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
179
|
-
],
|
|
179
|
+
], kn = [
|
|
180
180
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
181
181
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
182
182
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
183
|
-
],
|
|
183
|
+
], xn = [
|
|
184
184
|
{ variant: "circle", size: 24 },
|
|
185
185
|
{ variant: "circle", size: 40 },
|
|
186
186
|
{ variant: "circle", size: 64 }
|
|
187
|
-
],
|
|
187
|
+
], Sn = [
|
|
188
188
|
{ bars: 10, maxHeight: 120 },
|
|
189
189
|
{ bars: 5, maxHeight: 80 }
|
|
190
|
-
],
|
|
190
|
+
], Tn = [
|
|
191
191
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
192
192
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
193
|
-
],
|
|
193
|
+
], _n = [
|
|
194
194
|
{ variant: "value", colSpan: 1 },
|
|
195
195
|
{ variant: "trend", colSpan: 2 },
|
|
196
196
|
{ variant: "target", colSpan: 1 }
|
|
197
|
-
],
|
|
197
|
+
], De = {
|
|
198
198
|
position: "fixed",
|
|
199
199
|
zIndex: 9999,
|
|
200
200
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -206,7 +206,7 @@ const re = (e) => {
|
|
|
206
206
|
minWidth: 148,
|
|
207
207
|
paddingTop: 4,
|
|
208
208
|
paddingBottom: 4
|
|
209
|
-
},
|
|
209
|
+
}, pe = (e) => ({
|
|
210
210
|
padding: "6px 12px",
|
|
211
211
|
fontSize: 12,
|
|
212
212
|
lineHeight: 1.4,
|
|
@@ -220,152 +220,152 @@ const re = (e) => {
|
|
|
220
220
|
width: "100%",
|
|
221
221
|
textAlign: "left",
|
|
222
222
|
border: "none"
|
|
223
|
-
}),
|
|
224
|
-
...
|
|
223
|
+
}), ot = (e) => ({
|
|
224
|
+
...pe(e),
|
|
225
225
|
color: e ? "#4338ca" : "#4f46e5",
|
|
226
226
|
fontWeight: 600
|
|
227
|
-
}),
|
|
227
|
+
}), it = {
|
|
228
228
|
height: 1,
|
|
229
229
|
background: "rgba(0,0,0,0.06)",
|
|
230
230
|
margin: "3px 10px"
|
|
231
231
|
};
|
|
232
|
-
function
|
|
232
|
+
function lt({
|
|
233
233
|
open: e,
|
|
234
234
|
anchorEl: t,
|
|
235
|
-
statusId:
|
|
236
|
-
onOpenInTable:
|
|
237
|
-
onShowOnGraph:
|
|
235
|
+
statusId: a,
|
|
236
|
+
onOpenInTable: n,
|
|
237
|
+
onShowOnGraph: s,
|
|
238
238
|
overflowActions: o,
|
|
239
|
-
onClose:
|
|
239
|
+
onClose: l
|
|
240
240
|
}) {
|
|
241
|
-
const [
|
|
242
|
-
if (!t) return { ...
|
|
243
|
-
const
|
|
241
|
+
const [m, h] = K(null), u = P(null), D = f(() => {
|
|
242
|
+
if (!t) return { ...De, top: 0, left: 0 };
|
|
243
|
+
const c = t.getBoundingClientRect();
|
|
244
244
|
return {
|
|
245
|
-
...
|
|
246
|
-
top:
|
|
247
|
-
left:
|
|
245
|
+
...De,
|
|
246
|
+
top: c.bottom + 4,
|
|
247
|
+
left: c.left
|
|
248
248
|
};
|
|
249
249
|
}, [t]);
|
|
250
|
-
if (
|
|
250
|
+
if (L(() => {
|
|
251
251
|
if (!e) return;
|
|
252
|
-
const
|
|
253
|
-
|
|
252
|
+
const c = (y) => {
|
|
253
|
+
y.key === "Escape" && l();
|
|
254
254
|
};
|
|
255
|
-
return document.addEventListener("keydown",
|
|
256
|
-
}, [e,
|
|
255
|
+
return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
|
|
256
|
+
}, [e, l]), L(() => {
|
|
257
257
|
if (!e) return;
|
|
258
|
-
const
|
|
259
|
-
u.current && !u.current.contains(
|
|
258
|
+
const c = (y) => {
|
|
259
|
+
u.current && !u.current.contains(y.target) && l();
|
|
260
260
|
};
|
|
261
|
-
return document.addEventListener("pointerdown",
|
|
262
|
-
}, [e,
|
|
263
|
-
const
|
|
261
|
+
return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
|
|
262
|
+
}, [e, l]), !e) return null;
|
|
263
|
+
const v = o && o.length > 0, i = /* @__PURE__ */ O(
|
|
264
264
|
"div",
|
|
265
265
|
{
|
|
266
266
|
ref: u,
|
|
267
|
-
"data-status-chip-menu":
|
|
267
|
+
"data-status-chip-menu": a,
|
|
268
268
|
role: "menu",
|
|
269
269
|
"aria-label": "Status actions",
|
|
270
|
-
style:
|
|
270
|
+
style: D(),
|
|
271
271
|
children: [
|
|
272
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ d(
|
|
273
273
|
"button",
|
|
274
274
|
{
|
|
275
275
|
role: "menuitem",
|
|
276
|
-
style:
|
|
276
|
+
style: ot(m === "__primary"),
|
|
277
277
|
onMouseEnter: () => h("__primary"),
|
|
278
278
|
onMouseLeave: () => h(null),
|
|
279
279
|
onClick: () => {
|
|
280
|
-
a
|
|
280
|
+
n(a), l();
|
|
281
281
|
},
|
|
282
282
|
children: "Open in table"
|
|
283
283
|
}
|
|
284
284
|
),
|
|
285
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ d(
|
|
286
286
|
"button",
|
|
287
287
|
{
|
|
288
288
|
role: "menuitem",
|
|
289
|
-
style:
|
|
289
|
+
style: pe(m === "__graph"),
|
|
290
290
|
onMouseEnter: () => h("__graph"),
|
|
291
291
|
onMouseLeave: () => h(null),
|
|
292
292
|
onClick: () => {
|
|
293
|
-
|
|
293
|
+
s(a), l();
|
|
294
294
|
},
|
|
295
295
|
children: "Show on graph"
|
|
296
296
|
}
|
|
297
297
|
),
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
v && /* @__PURE__ */ d("div", { style: it }),
|
|
299
|
+
v && o?.map((c) => /* @__PURE__ */ d(
|
|
300
300
|
"button",
|
|
301
301
|
{
|
|
302
302
|
role: "menuitem",
|
|
303
|
-
style:
|
|
304
|
-
onMouseEnter: () => h(
|
|
303
|
+
style: pe(m === c.id),
|
|
304
|
+
onMouseEnter: () => h(c.id),
|
|
305
305
|
onMouseLeave: () => h(null),
|
|
306
306
|
onClick: () => {
|
|
307
|
-
|
|
307
|
+
c.onSelect(a), l();
|
|
308
308
|
},
|
|
309
|
-
children:
|
|
309
|
+
children: c.label
|
|
310
310
|
},
|
|
311
|
-
|
|
311
|
+
c.id
|
|
312
312
|
))
|
|
313
313
|
]
|
|
314
314
|
}
|
|
315
315
|
);
|
|
316
|
-
return
|
|
316
|
+
return qe(i, document.body);
|
|
317
317
|
}
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
function({ state: t, onPointerDown:
|
|
321
|
-
const
|
|
318
|
+
lt.displayName = "StatusSlotChipMenu";
|
|
319
|
+
const ct = He(
|
|
320
|
+
function({ state: t, onPointerDown: a, onPointerUp: n, onPointerEnter: s, onPointerLeave: o, onKeyboardStep: l, edge: m = "right", ariaLabel: h = "Resize card" }, u) {
|
|
321
|
+
const D = t === "handle-visible" || t === "dragging" || t === "settling", v = (y) => {
|
|
322
322
|
try {
|
|
323
|
-
|
|
323
|
+
y.currentTarget.setPointerCapture(y.pointerId);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
|
-
|
|
327
|
-
},
|
|
326
|
+
a(y);
|
|
327
|
+
}, i = (y) => {
|
|
328
328
|
try {
|
|
329
|
-
|
|
329
|
+
y.currentTarget.hasPointerCapture?.(y.pointerId) && y.currentTarget.releasePointerCapture(y.pointerId);
|
|
330
330
|
} catch {
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
},
|
|
334
|
-
!
|
|
332
|
+
n(y);
|
|
333
|
+
}, c = (y) => {
|
|
334
|
+
!D || !l || (y.key === "ArrowRight" ? (y.preventDefault(), l("grow")) : y.key === "ArrowLeft" && (y.preventDefault(), l("shrink")));
|
|
335
335
|
};
|
|
336
|
-
return /* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ d(
|
|
337
337
|
"button",
|
|
338
338
|
{
|
|
339
339
|
ref: u,
|
|
340
340
|
type: "button",
|
|
341
341
|
"aria-label": h,
|
|
342
|
-
"data-edge":
|
|
342
|
+
"data-edge": m,
|
|
343
343
|
"data-resize-state": t,
|
|
344
344
|
className: [
|
|
345
345
|
"gloss-edge-handle",
|
|
346
|
-
`gloss-edge-handle--${
|
|
347
|
-
|
|
346
|
+
`gloss-edge-handle--${m}`,
|
|
347
|
+
D ? "gloss-edge-handle--visible" : ""
|
|
348
348
|
].filter(Boolean).join(" "),
|
|
349
|
-
onPointerDown:
|
|
350
|
-
onPointerUp:
|
|
351
|
-
onPointerEnter:
|
|
349
|
+
onPointerDown: v,
|
|
350
|
+
onPointerUp: i,
|
|
351
|
+
onPointerEnter: s,
|
|
352
352
|
onPointerLeave: o,
|
|
353
|
-
onKeyDown:
|
|
354
|
-
tabIndex:
|
|
353
|
+
onKeyDown: c,
|
|
354
|
+
tabIndex: D ? 0 : -1
|
|
355
355
|
}
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
|
-
|
|
360
|
-
function
|
|
359
|
+
ct.displayName = "EdgeHoverHandle";
|
|
360
|
+
function dt({
|
|
361
361
|
visible: e,
|
|
362
362
|
targetColSpan: t,
|
|
363
|
-
|
|
364
|
-
enterMs:
|
|
365
|
-
exitMs:
|
|
363
|
+
ghostWidth: a,
|
|
364
|
+
enterMs: n = 180,
|
|
365
|
+
exitMs: s = 120
|
|
366
366
|
}) {
|
|
367
|
-
return /* @__PURE__ */
|
|
368
|
-
|
|
367
|
+
return /* @__PURE__ */ d(
|
|
368
|
+
Se.div,
|
|
369
369
|
{
|
|
370
370
|
"aria-hidden": "true",
|
|
371
371
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -374,12 +374,15 @@ function et({
|
|
|
374
374
|
"gloss-ghost-preview",
|
|
375
375
|
e ? "gloss-ghost-preview--visible" : ""
|
|
376
376
|
].filter(Boolean).join(" "),
|
|
377
|
-
style: {
|
|
377
|
+
style: {
|
|
378
|
+
width: a,
|
|
379
|
+
transitionDuration: `${e ? n : s}ms`
|
|
380
|
+
}
|
|
378
381
|
}
|
|
379
382
|
);
|
|
380
383
|
}
|
|
381
|
-
|
|
382
|
-
class
|
|
384
|
+
dt.displayName = "GhostPreview";
|
|
385
|
+
class ut {
|
|
383
386
|
constructor() {
|
|
384
387
|
this.samples = [], this.capacity = 3;
|
|
385
388
|
}
|
|
@@ -403,17 +406,20 @@ class tt {
|
|
|
403
406
|
const t = this.samples.length;
|
|
404
407
|
if (t < 2) return 0;
|
|
405
408
|
if (t === 2) {
|
|
406
|
-
const [h, u] = this.samples,
|
|
407
|
-
return (u.x - h.x) /
|
|
409
|
+
const [h, u] = this.samples, D = Math.max(1, u.t - h.t);
|
|
410
|
+
return (u.x - h.x) / D * 1e3;
|
|
408
411
|
}
|
|
409
|
-
const [
|
|
410
|
-
return (o * 3 +
|
|
412
|
+
const [a, n, s] = this.samples, o = (s.x - n.x) / Math.max(1, s.t - n.t) * 1e3, l = (n.x - a.x) / Math.max(1, n.t - a.t) * 1e3, m = l;
|
|
413
|
+
return (o * 3 + l * 2 + m * 1) / 6;
|
|
411
414
|
}
|
|
412
415
|
}
|
|
413
|
-
const
|
|
414
|
-
// Spring (D-08)
|
|
416
|
+
const Te = {
|
|
417
|
+
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
418
|
+
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
419
|
+
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
420
|
+
// 260419-resize-integration-broken (Fix E).
|
|
415
421
|
stiffness: 500,
|
|
416
|
-
damping:
|
|
422
|
+
damping: 22,
|
|
417
423
|
mass: 1,
|
|
418
424
|
// Hysteresis (D-06) — expressed as fractions of GRID_STEP
|
|
419
425
|
snapInFraction: 1 / 3,
|
|
@@ -427,185 +433,210 @@ const Ce = {
|
|
|
427
433
|
// Velocity multiplier (D-03b panel)
|
|
428
434
|
velocityMultiplier: 1
|
|
429
435
|
};
|
|
430
|
-
function
|
|
436
|
+
function In({
|
|
431
437
|
currentColSpan: e,
|
|
432
438
|
stackable: t,
|
|
433
|
-
onResize:
|
|
434
|
-
onCancel:
|
|
435
|
-
step:
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
onResize: a,
|
|
440
|
+
onCancel: n,
|
|
441
|
+
step: s = 180,
|
|
442
|
+
gap: o = 0,
|
|
443
|
+
tuning: l,
|
|
444
|
+
dwellMs: m = 120,
|
|
445
|
+
enterMs: h = 180,
|
|
446
|
+
exitMs: u = 120,
|
|
447
|
+
maxColSpan: D = 3
|
|
441
448
|
}) {
|
|
442
|
-
const [
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, [
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
449
|
+
const [v, i] = K("idle"), [c, y] = K(e), I = P(null), p = P(null), T = P(null), R = P(s), C = P(o), _ = P(0), N = P("idle");
|
|
450
|
+
L(() => {
|
|
451
|
+
N.current = v;
|
|
452
|
+
}, [v]);
|
|
453
|
+
const r = Ze(0), g = P(null), b = f(() => {
|
|
454
|
+
const w = g.current;
|
|
455
|
+
if (w) {
|
|
456
|
+
try {
|
|
457
|
+
w.stop();
|
|
458
|
+
} catch {
|
|
459
|
+
}
|
|
460
|
+
g.current = null;
|
|
461
|
+
}
|
|
462
|
+
}, []), x = f(
|
|
463
|
+
(w) => {
|
|
464
|
+
const F = R.current, E = C.current;
|
|
465
|
+
return w * F + (w - 1) * E;
|
|
466
|
+
},
|
|
467
|
+
[]
|
|
468
|
+
), k = P(new ut()), M = P(e);
|
|
469
|
+
L(() => {
|
|
470
|
+
M.current = c;
|
|
471
|
+
}, [c]);
|
|
472
|
+
const S = ne(() => ({ ...Te, ...l ?? {} }), [l]), $ = f(() => {
|
|
453
473
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
454
|
-
}, []),
|
|
455
|
-
|
|
456
|
-
}, [
|
|
457
|
-
|
|
458
|
-
}, [m]),
|
|
459
|
-
(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
474
|
+
}, []), G = f(() => {
|
|
475
|
+
p.current && (clearTimeout(p.current), p.current = null);
|
|
476
|
+
}, []), X = f(() => {
|
|
477
|
+
i((w) => w === "settling" || w !== "idle" ? w : (I.current = setTimeout(() => i("handle-visible"), m), "dwelling"));
|
|
478
|
+
}, [m]), V = f(() => {
|
|
479
|
+
$(), i((w) => w === "dwelling" || w === "handle-visible" ? "idle" : w);
|
|
480
|
+
}, [$]), Z = f(
|
|
481
|
+
(w, F, E) => {
|
|
482
|
+
const A = R.current, Q = A * S.snapInFraction, q = A * S.snapOutFraction, j = F - E;
|
|
483
|
+
let H = j;
|
|
484
|
+
for (; E + H < 3; ) {
|
|
485
|
+
const J = H * A + (H < 0 ? q : Q);
|
|
486
|
+
if (w >= J) H += 1;
|
|
465
487
|
else break;
|
|
466
488
|
}
|
|
467
|
-
if (
|
|
468
|
-
for (;
|
|
469
|
-
const
|
|
470
|
-
if (
|
|
489
|
+
if (H === j)
|
|
490
|
+
for (; E + H > 1; ) {
|
|
491
|
+
const J = H * A - (H > 0 ? q : Q);
|
|
492
|
+
if (w <= J) H -= 1;
|
|
471
493
|
else break;
|
|
472
494
|
}
|
|
473
|
-
return Math.min(3, Math.max(1,
|
|
495
|
+
return Math.min(3, Math.max(1, E + H));
|
|
474
496
|
},
|
|
475
|
-
[
|
|
476
|
-
),
|
|
477
|
-
(
|
|
478
|
-
|
|
497
|
+
[S.snapInFraction, S.snapOutFraction]
|
|
498
|
+
), oe = f(
|
|
499
|
+
(w) => {
|
|
500
|
+
if (N.current !== "handle-visible") return;
|
|
501
|
+
b(), T.current = w.clientX, R.current = s, C.current = o;
|
|
502
|
+
const F = e * s + (e - 1) * o;
|
|
503
|
+
_.current = F, k.current.clear(), k.current.push({ x: w.clientX, t: performance.now() }), r.jump(F), N.current = "dragging", i("dragging");
|
|
479
504
|
},
|
|
480
|
-
[r,
|
|
481
|
-
),
|
|
482
|
-
(
|
|
483
|
-
[
|
|
484
|
-
),
|
|
485
|
-
(
|
|
486
|
-
const
|
|
505
|
+
[s, o, e, r, b]
|
|
506
|
+
), B = f(
|
|
507
|
+
(w) => w * R.current + (w - 1) * C.current,
|
|
508
|
+
[]
|
|
509
|
+
), ae = f(
|
|
510
|
+
(w, F) => {
|
|
511
|
+
const E = B(w), A = w !== e;
|
|
487
512
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
488
|
-
|
|
513
|
+
r.jump(E), A && F ? a({ direction: F, targetColSpan: w, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), N.current = "idle", i("idle");
|
|
489
514
|
return;
|
|
490
515
|
}
|
|
491
|
-
const q =
|
|
492
|
-
|
|
516
|
+
const q = k.current.getWeightedVelocity() * S.velocityMultiplier;
|
|
517
|
+
N.current = "settling", i("settling"), b(), g.current = we(r, E, {
|
|
493
518
|
type: "spring",
|
|
494
|
-
stiffness:
|
|
495
|
-
damping:
|
|
496
|
-
mass:
|
|
519
|
+
stiffness: S.stiffness,
|
|
520
|
+
damping: S.damping,
|
|
521
|
+
mass: S.mass,
|
|
497
522
|
velocity: q,
|
|
498
523
|
onComplete: () => {
|
|
499
|
-
|
|
524
|
+
g.current = null, A && F ? a({ direction: F, targetColSpan: w, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), N.current = "idle", i("idle");
|
|
500
525
|
}
|
|
501
526
|
});
|
|
502
527
|
},
|
|
503
|
-
[
|
|
504
|
-
),
|
|
505
|
-
(
|
|
506
|
-
if (
|
|
507
|
-
const F =
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
|
|
528
|
+
[B, e, t, a, n, r, S, b]
|
|
529
|
+
), Le = f(
|
|
530
|
+
(w) => {
|
|
531
|
+
if (N.current !== "dragging") return;
|
|
532
|
+
const F = w.clientX - (T.current ?? w.clientX);
|
|
533
|
+
k.current.push({ x: w.clientX, t: performance.now() });
|
|
534
|
+
const E = Z(F, M.current, e), A = E > e ? "grow" : E < e ? "shrink" : null;
|
|
535
|
+
ae(E, A);
|
|
511
536
|
},
|
|
512
|
-
[
|
|
513
|
-
),
|
|
514
|
-
if (
|
|
537
|
+
[Z, e, ae]
|
|
538
|
+
), ie = f(() => {
|
|
539
|
+
if ($(), N.current === "dragging") {
|
|
540
|
+
const w = _.current;
|
|
515
541
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
516
|
-
|
|
542
|
+
r.jump(w), n?.(), r.jump(0), N.current = "idle", i("idle");
|
|
517
543
|
return;
|
|
518
544
|
}
|
|
519
|
-
const
|
|
520
|
-
|
|
545
|
+
const E = k.current.getWeightedVelocity();
|
|
546
|
+
N.current = "settling", i("settling"), b(), g.current = we(r, w, {
|
|
521
547
|
type: "spring",
|
|
522
|
-
stiffness:
|
|
523
|
-
damping:
|
|
524
|
-
mass:
|
|
525
|
-
velocity:
|
|
548
|
+
stiffness: S.stiffness,
|
|
549
|
+
damping: S.damping,
|
|
550
|
+
mass: S.mass,
|
|
551
|
+
velocity: E,
|
|
526
552
|
onComplete: () => {
|
|
527
|
-
|
|
553
|
+
g.current = null, n?.(), r.jump(0), N.current = "idle", i("idle");
|
|
528
554
|
}
|
|
529
555
|
});
|
|
530
556
|
return;
|
|
531
557
|
}
|
|
532
|
-
|
|
533
|
-
}, [
|
|
534
|
-
|
|
535
|
-
if (
|
|
536
|
-
const
|
|
537
|
-
F.key === "Escape" &&
|
|
558
|
+
N.current === "handle-visible" && (n?.(), N.current = "cancelled", i("cancelled"));
|
|
559
|
+
}, [$, r, n, S, b]);
|
|
560
|
+
L(() => {
|
|
561
|
+
if (v !== "dragging" && v !== "handle-visible") return;
|
|
562
|
+
const w = (F) => {
|
|
563
|
+
F.key === "Escape" && ie();
|
|
538
564
|
};
|
|
539
|
-
return window.addEventListener("keydown",
|
|
540
|
-
}, [
|
|
541
|
-
if (
|
|
542
|
-
|
|
565
|
+
return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
|
|
566
|
+
}, [v, ie]), L(() => {
|
|
567
|
+
if (v !== "dragging") {
|
|
568
|
+
y(e);
|
|
543
569
|
return;
|
|
544
570
|
}
|
|
545
|
-
const
|
|
546
|
-
const
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
|
|
571
|
+
const w = (F) => {
|
|
572
|
+
const E = F.clientX - (T.current ?? F.clientX), A = _.current, Q = x(1), q = x(D), j = A + E, H = Math.max(Q, Math.min(q, j));
|
|
573
|
+
r.set(H);
|
|
574
|
+
const le = R.current, J = (D - e) * le, We = (1 - e) * le, Ge = Math.max(We, Math.min(J, E));
|
|
575
|
+
k.current.push({ x: F.clientX, t: performance.now() });
|
|
576
|
+
const ce = Z(Ge, M.current, e);
|
|
577
|
+
ce !== M.current && (M.current = ce, y(ce));
|
|
550
578
|
};
|
|
551
|
-
return window.addEventListener("pointermove",
|
|
552
|
-
}, [
|
|
553
|
-
|
|
554
|
-
}, [
|
|
555
|
-
if (
|
|
556
|
-
const
|
|
557
|
-
return () => clearTimeout(
|
|
558
|
-
}, [
|
|
559
|
-
const
|
|
560
|
-
(
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
-
|
|
579
|
+
return window.addEventListener("pointermove", w), () => window.removeEventListener("pointermove", w);
|
|
580
|
+
}, [v, e, r, Z, D, x]), L(() => () => {
|
|
581
|
+
$(), G();
|
|
582
|
+
}, [$, G]), L(() => {
|
|
583
|
+
if (v !== "cancelled") return;
|
|
584
|
+
const w = setTimeout(() => i("idle"), u);
|
|
585
|
+
return () => clearTimeout(w);
|
|
586
|
+
}, [v, u]);
|
|
587
|
+
const $e = f(
|
|
588
|
+
(w) => {
|
|
589
|
+
if (N.current === "settling") return;
|
|
590
|
+
const E = Math.min(3, Math.max(1, e + (w === "grow" ? 1 : -1)));
|
|
591
|
+
if (E === e) return;
|
|
592
|
+
R.current = s, C.current = o, k.current.clear();
|
|
593
|
+
const A = e * s + (e - 1) * o;
|
|
594
|
+
_.current = A, r.jump(A), ae(E, w);
|
|
564
595
|
},
|
|
565
|
-
[e,
|
|
566
|
-
),
|
|
567
|
-
|
|
568
|
-
|
|
596
|
+
[e, s, o, r, ae]
|
|
597
|
+
), ye = f(() => {
|
|
598
|
+
G(), p.current = setTimeout(() => {
|
|
599
|
+
N.current === "handle-visible" && (N.current = "idle", i("idle"));
|
|
569
600
|
}, 5e3);
|
|
570
|
-
}, [
|
|
571
|
-
|
|
572
|
-
}, [
|
|
573
|
-
|
|
574
|
-
}, [
|
|
601
|
+
}, [G]), Be = f(() => {
|
|
602
|
+
N.current === "idle" && ($(), N.current = "handle-visible", i("handle-visible"), ye());
|
|
603
|
+
}, [$, ye]), Ke = f(() => {
|
|
604
|
+
G(), N.current === "handle-visible" && (N.current = "idle", i("idle"));
|
|
605
|
+
}, [G]);
|
|
575
606
|
return {
|
|
576
|
-
state:
|
|
577
|
-
enterEdgeZone:
|
|
578
|
-
leaveEdgeZone:
|
|
607
|
+
state: v,
|
|
608
|
+
enterEdgeZone: X,
|
|
609
|
+
leaveEdgeZone: V,
|
|
579
610
|
handleProps: {
|
|
580
|
-
onPointerDown:
|
|
581
|
-
onPointerUp:
|
|
611
|
+
onPointerDown: oe,
|
|
612
|
+
onPointerUp: Le,
|
|
582
613
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
583
614
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
584
|
-
onPointerEnter:
|
|
585
|
-
onPointerLeave:
|
|
615
|
+
onPointerEnter: X,
|
|
616
|
+
onPointerLeave: V
|
|
586
617
|
},
|
|
587
|
-
previewColSpan:
|
|
618
|
+
previewColSpan: c,
|
|
588
619
|
ghostProps: {
|
|
589
|
-
visible:
|
|
590
|
-
targetColSpan:
|
|
591
|
-
|
|
592
|
-
enterMs:
|
|
593
|
-
exitMs:
|
|
620
|
+
visible: v === "dragging" || v === "settling",
|
|
621
|
+
targetColSpan: c,
|
|
622
|
+
ghostWidth: r,
|
|
623
|
+
enterMs: h,
|
|
624
|
+
exitMs: u
|
|
594
625
|
},
|
|
595
|
-
onKeyboardStep:
|
|
596
|
-
onTouchReveal:
|
|
597
|
-
onTouchDismiss:
|
|
598
|
-
cancel:
|
|
626
|
+
onKeyboardStep: $e,
|
|
627
|
+
onTouchReveal: Be,
|
|
628
|
+
onTouchDismiss: Ke,
|
|
629
|
+
cancel: ie
|
|
599
630
|
};
|
|
600
631
|
}
|
|
601
|
-
function
|
|
602
|
-
const { cardWidthPx: t, slotCount:
|
|
603
|
-
if (
|
|
632
|
+
function Rn(e) {
|
|
633
|
+
const { cardWidthPx: t, slotCount: a, activeSlotIdx: n, pillWidthPx: s } = e;
|
|
634
|
+
if (n == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(a) || a <= 0 || !Number.isInteger(n) || n < 0 || n >= a)
|
|
604
635
|
return;
|
|
605
|
-
const o = (
|
|
606
|
-
return
|
|
636
|
+
const o = (n + 0.5) * (t / a);
|
|
637
|
+
return s != null && Number.isFinite(s) && s > 0 ? o - s / 2 : o;
|
|
607
638
|
}
|
|
608
|
-
const
|
|
639
|
+
const Mn = [
|
|
609
640
|
// 1. Standard: Total Revenue
|
|
610
641
|
{
|
|
611
642
|
variant: "standard",
|
|
@@ -709,24 +740,24 @@ const Da = [
|
|
|
709
740
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
710
741
|
]
|
|
711
742
|
}
|
|
712
|
-
],
|
|
743
|
+
], mt = {
|
|
713
744
|
variant: "standard",
|
|
714
745
|
label: "Total Revenue",
|
|
715
746
|
isLoading: !0
|
|
716
|
-
},
|
|
747
|
+
}, pt = {
|
|
717
748
|
variant: "standard",
|
|
718
749
|
label: "Total Revenue",
|
|
719
750
|
value: 125430,
|
|
720
751
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
721
752
|
isError: !0
|
|
722
|
-
},
|
|
753
|
+
}, gt = {
|
|
723
754
|
variant: "standard",
|
|
724
755
|
label: "Total Revenue",
|
|
725
756
|
value: null,
|
|
726
757
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
727
758
|
isEmpty: !0,
|
|
728
759
|
subtitle: "No data"
|
|
729
|
-
},
|
|
760
|
+
}, ft = {
|
|
730
761
|
variant: "standard",
|
|
731
762
|
label: "Total Revenue",
|
|
732
763
|
value: 125430,
|
|
@@ -734,7 +765,7 @@ const Da = [
|
|
|
734
765
|
trend: { value: 12.5, direction: "up" },
|
|
735
766
|
subtitle: "MTD",
|
|
736
767
|
isStale: !0
|
|
737
|
-
},
|
|
768
|
+
}, ht = {
|
|
738
769
|
variant: "sparkline",
|
|
739
770
|
label: "Daily Orders",
|
|
740
771
|
value: 847,
|
|
@@ -743,7 +774,7 @@ const Da = [
|
|
|
743
774
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
744
775
|
accentColor: "#6366f1",
|
|
745
776
|
isStale: !0
|
|
746
|
-
},
|
|
777
|
+
}, bt = {
|
|
747
778
|
variant: "donut",
|
|
748
779
|
label: "Order Fill Rate",
|
|
749
780
|
value: 78,
|
|
@@ -754,14 +785,14 @@ const Da = [
|
|
|
754
785
|
donutMax: 100,
|
|
755
786
|
accentColor: "#10b981",
|
|
756
787
|
isStale: !0
|
|
757
|
-
},
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
],
|
|
788
|
+
}, Pn = [
|
|
789
|
+
mt,
|
|
790
|
+
pt,
|
|
791
|
+
gt,
|
|
792
|
+
ft,
|
|
793
|
+
ht,
|
|
794
|
+
bt
|
|
795
|
+
], Fn = {
|
|
765
796
|
variant: "sparkline",
|
|
766
797
|
label: "Daily Orders",
|
|
767
798
|
value: 847,
|
|
@@ -784,7 +815,7 @@ const Da = [
|
|
|
784
815
|
59
|
|
785
816
|
],
|
|
786
817
|
accentColor: "#6366f1"
|
|
787
|
-
},
|
|
818
|
+
}, En = {
|
|
788
819
|
variant: "sparkline",
|
|
789
820
|
label: "New Customers",
|
|
790
821
|
value: 23,
|
|
@@ -823,21 +854,21 @@ const Da = [
|
|
|
823
854
|
19
|
|
824
855
|
],
|
|
825
856
|
accentColor: "#10b981"
|
|
826
|
-
},
|
|
857
|
+
}, On = {
|
|
827
858
|
variant: "standard",
|
|
828
859
|
label: "Total Revenue",
|
|
829
860
|
value: 125430,
|
|
830
861
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
831
862
|
trend: { value: 12.5, direction: "up" },
|
|
832
863
|
subtitle: "MTD"
|
|
833
|
-
},
|
|
864
|
+
}, An = {
|
|
834
865
|
variant: "standard",
|
|
835
866
|
label: "Returns",
|
|
836
867
|
value: 3280,
|
|
837
868
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
838
869
|
trend: { value: -8.3, direction: "down" },
|
|
839
870
|
subtitle: "MTD"
|
|
840
|
-
},
|
|
871
|
+
}, Ln = {
|
|
841
872
|
variant: "standard",
|
|
842
873
|
label: "Avg Order Value",
|
|
843
874
|
value: 487,
|
|
@@ -845,33 +876,33 @@ const Da = [
|
|
|
845
876
|
trend: { value: 0, direction: "flat" },
|
|
846
877
|
subtitle: "QTD"
|
|
847
878
|
};
|
|
848
|
-
function
|
|
879
|
+
function _e({
|
|
849
880
|
open: e,
|
|
850
881
|
onDismiss: t,
|
|
851
|
-
anchorRef:
|
|
852
|
-
pages:
|
|
853
|
-
activePageId:
|
|
882
|
+
anchorRef: a,
|
|
883
|
+
pages: n,
|
|
884
|
+
activePageId: s,
|
|
854
885
|
onPageChange: o,
|
|
855
|
-
onCreatePage:
|
|
856
|
-
onManagePages:
|
|
886
|
+
onCreatePage: l,
|
|
887
|
+
onManagePages: m
|
|
857
888
|
}) {
|
|
858
|
-
const h =
|
|
859
|
-
(
|
|
860
|
-
o(
|
|
889
|
+
const h = f(
|
|
890
|
+
(i) => {
|
|
891
|
+
o(i), t();
|
|
861
892
|
},
|
|
862
893
|
[o, t]
|
|
863
|
-
), u =
|
|
864
|
-
(
|
|
865
|
-
(
|
|
894
|
+
), u = f(
|
|
895
|
+
(i, c) => {
|
|
896
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), h(i));
|
|
866
897
|
},
|
|
867
898
|
[h]
|
|
868
|
-
),
|
|
869
|
-
|
|
870
|
-
}, [
|
|
871
|
-
|
|
872
|
-
}, [
|
|
873
|
-
return /* @__PURE__ */
|
|
874
|
-
|
|
899
|
+
), D = f(() => {
|
|
900
|
+
l(), t();
|
|
901
|
+
}, [l, t]), v = f(() => {
|
|
902
|
+
m(), t();
|
|
903
|
+
}, [m, t]);
|
|
904
|
+
return /* @__PURE__ */ O(
|
|
905
|
+
Ye,
|
|
875
906
|
{
|
|
876
907
|
definition: {
|
|
877
908
|
placement: "bottom-end",
|
|
@@ -881,58 +912,58 @@ function Ne({
|
|
|
881
912
|
},
|
|
882
913
|
open: e,
|
|
883
914
|
onDismiss: t,
|
|
884
|
-
anchorRef:
|
|
915
|
+
anchorRef: a,
|
|
885
916
|
className: "gloss-page-dropdown",
|
|
886
917
|
children: [
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
const
|
|
889
|
-
return /* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ d("ul", { role: "menu", className: "gloss-page-dropdown__list", children: n.map((i) => {
|
|
919
|
+
const c = i.id === s;
|
|
920
|
+
return /* @__PURE__ */ O(
|
|
890
921
|
"li",
|
|
891
922
|
{
|
|
892
923
|
role: "menuitemradio",
|
|
893
|
-
"aria-checked":
|
|
894
|
-
"aria-current":
|
|
924
|
+
"aria-checked": c,
|
|
925
|
+
"aria-current": c ? "page" : void 0,
|
|
895
926
|
tabIndex: 0,
|
|
896
|
-
className: `gloss-page-dropdown__item${
|
|
897
|
-
onClick: () => h(
|
|
898
|
-
onKeyDown: (
|
|
927
|
+
className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
|
|
928
|
+
onClick: () => h(i.id),
|
|
929
|
+
onKeyDown: (y) => u(i.id, y),
|
|
899
930
|
children: [
|
|
900
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ d(
|
|
901
932
|
"span",
|
|
902
933
|
{
|
|
903
|
-
className: `gloss-page-dropdown__dot${
|
|
934
|
+
className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
|
|
904
935
|
}
|
|
905
936
|
),
|
|
906
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ d(
|
|
907
938
|
"span",
|
|
908
939
|
{
|
|
909
|
-
className: `gloss-page-dropdown__name${
|
|
910
|
-
children:
|
|
940
|
+
className: `gloss-page-dropdown__name${i.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
941
|
+
children: i.name
|
|
911
942
|
}
|
|
912
943
|
),
|
|
913
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ d("span", { className: "gloss-page-dropdown__count", children: i.cardCount })
|
|
914
945
|
]
|
|
915
946
|
},
|
|
916
|
-
|
|
947
|
+
i.id
|
|
917
948
|
);
|
|
918
949
|
}) }),
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
|
|
951
|
+
/* @__PURE__ */ d(
|
|
921
952
|
"button",
|
|
922
953
|
{
|
|
923
954
|
role: "menuitem",
|
|
924
955
|
className: "gloss-page-dropdown__action",
|
|
925
|
-
onClick:
|
|
956
|
+
onClick: D,
|
|
926
957
|
children: "+ New page"
|
|
927
958
|
}
|
|
928
959
|
),
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
|
|
961
|
+
/* @__PURE__ */ d(
|
|
931
962
|
"button",
|
|
932
963
|
{
|
|
933
964
|
role: "menuitem",
|
|
934
965
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
935
|
-
onClick:
|
|
966
|
+
onClick: v,
|
|
936
967
|
children: "Manage pages"
|
|
937
968
|
}
|
|
938
969
|
)
|
|
@@ -940,22 +971,22 @@ function Ne({
|
|
|
940
971
|
}
|
|
941
972
|
);
|
|
942
973
|
}
|
|
943
|
-
|
|
944
|
-
const
|
|
974
|
+
_e.displayName = "PageDropdown";
|
|
975
|
+
const vt = function({
|
|
945
976
|
currentIndex: t,
|
|
946
|
-
total:
|
|
947
|
-
pages:
|
|
948
|
-
onPageChange:
|
|
977
|
+
total: a,
|
|
978
|
+
pages: n,
|
|
979
|
+
onPageChange: s,
|
|
949
980
|
onCreatePage: o,
|
|
950
|
-
onManagePages:
|
|
951
|
-
maskRadius:
|
|
981
|
+
onManagePages: l,
|
|
982
|
+
maskRadius: m = "var(--gloss-radius-md)"
|
|
952
983
|
}) {
|
|
953
|
-
const h =
|
|
954
|
-
|
|
955
|
-
}, []),
|
|
956
|
-
|
|
957
|
-
}, []),
|
|
958
|
-
return /* @__PURE__ */
|
|
984
|
+
const h = P(null), [u, D] = K(!1), v = f(() => {
|
|
985
|
+
D((y) => !y);
|
|
986
|
+
}, []), i = f(() => {
|
|
987
|
+
D(!1);
|
|
988
|
+
}, []), c = n[t]?.id ?? "";
|
|
989
|
+
return /* @__PURE__ */ O(
|
|
959
990
|
"div",
|
|
960
991
|
{
|
|
961
992
|
className: "gloss-page-chip",
|
|
@@ -963,47 +994,47 @@ const lt = function({
|
|
|
963
994
|
style: { position: "absolute", top: 0, right: 0 },
|
|
964
995
|
"data-page-chip": !0,
|
|
965
996
|
children: [
|
|
966
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ d(
|
|
967
998
|
"div",
|
|
968
999
|
{
|
|
969
1000
|
className: "gloss-page-chip__nuzzle",
|
|
970
|
-
style: { "--_nuzzle-r":
|
|
1001
|
+
style: { "--_nuzzle-r": m }
|
|
971
1002
|
}
|
|
972
1003
|
),
|
|
973
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ O(
|
|
974
1005
|
"button",
|
|
975
1006
|
{
|
|
976
1007
|
className: "gloss-page-chip__trigger",
|
|
977
1008
|
"aria-haspopup": "menu",
|
|
978
1009
|
"aria-expanded": u,
|
|
979
|
-
"aria-label": `Page ${t + 1} of ${
|
|
980
|
-
onClick:
|
|
1010
|
+
"aria-label": `Page ${t + 1} of ${a}. Click to switch pages.`,
|
|
1011
|
+
onClick: v,
|
|
981
1012
|
children: [
|
|
982
1013
|
t + 1,
|
|
983
1014
|
" / ",
|
|
984
|
-
|
|
1015
|
+
a
|
|
985
1016
|
]
|
|
986
1017
|
}
|
|
987
1018
|
),
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
|
|
1019
|
+
/* @__PURE__ */ d(
|
|
1020
|
+
_e,
|
|
990
1021
|
{
|
|
991
1022
|
open: u,
|
|
992
|
-
onDismiss:
|
|
1023
|
+
onDismiss: i,
|
|
993
1024
|
anchorRef: h,
|
|
994
|
-
pages:
|
|
995
|
-
activePageId:
|
|
996
|
-
onPageChange:
|
|
1025
|
+
pages: n,
|
|
1026
|
+
activePageId: c,
|
|
1027
|
+
onPageChange: s,
|
|
997
1028
|
onCreatePage: o,
|
|
998
|
-
onManagePages:
|
|
1029
|
+
onManagePages: l
|
|
999
1030
|
}
|
|
1000
1031
|
)
|
|
1001
1032
|
]
|
|
1002
1033
|
}
|
|
1003
1034
|
);
|
|
1004
1035
|
};
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1036
|
+
vt.displayName = "PageChip";
|
|
1037
|
+
const $n = [
|
|
1007
1038
|
{
|
|
1008
1039
|
id: "ORD-1001",
|
|
1009
1040
|
orderNumber: "ORD-1001",
|
|
@@ -1136,7 +1167,7 @@ const _a = [
|
|
|
1136
1167
|
date: "2026-03-01",
|
|
1137
1168
|
skuCount: 9
|
|
1138
1169
|
}
|
|
1139
|
-
],
|
|
1170
|
+
], Bn = [
|
|
1140
1171
|
{
|
|
1141
1172
|
id: "ITEM-001",
|
|
1142
1173
|
sku: "PB-4520",
|
|
@@ -1270,16 +1301,16 @@ const _a = [
|
|
|
1270
1301
|
lastDate: "2026-03-01"
|
|
1271
1302
|
}
|
|
1272
1303
|
];
|
|
1273
|
-
function
|
|
1304
|
+
function ge(e) {
|
|
1274
1305
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1275
1306
|
}
|
|
1276
|
-
function
|
|
1307
|
+
function Ie(e) {
|
|
1277
1308
|
return e.toLocaleString("en-US");
|
|
1278
1309
|
}
|
|
1279
|
-
function
|
|
1310
|
+
function Re(e) {
|
|
1280
1311
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1281
1312
|
}
|
|
1282
|
-
const
|
|
1313
|
+
const te = W.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Kn = [
|
|
1283
1314
|
{
|
|
1284
1315
|
field: "id",
|
|
1285
1316
|
headerName: "Order",
|
|
@@ -1309,7 +1340,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1309
1340
|
align: "right",
|
|
1310
1341
|
headerAlign: "right",
|
|
1311
1342
|
cellClassName: "gloss-tabular-nums",
|
|
1312
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1343
|
+
renderCell: ({ row: e }) => e.skuCount ? Ie(e.skuCount) : te
|
|
1313
1344
|
},
|
|
1314
1345
|
{
|
|
1315
1346
|
field: "total",
|
|
@@ -1319,7 +1350,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1319
1350
|
align: "right",
|
|
1320
1351
|
headerAlign: "right",
|
|
1321
1352
|
cellClassName: "gloss-tabular-nums",
|
|
1322
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1353
|
+
renderCell: ({ row: e }) => e.total ? ge(e.total) : te
|
|
1323
1354
|
},
|
|
1324
1355
|
{
|
|
1325
1356
|
field: "date",
|
|
@@ -1329,9 +1360,9 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1329
1360
|
align: "right",
|
|
1330
1361
|
headerAlign: "right",
|
|
1331
1362
|
cellClassName: "gloss-tabular-nums",
|
|
1332
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1363
|
+
renderCell: ({ row: e }) => e.date ? Re(e.date) : ""
|
|
1333
1364
|
}
|
|
1334
|
-
],
|
|
1365
|
+
], Wn = [
|
|
1335
1366
|
{
|
|
1336
1367
|
field: "sku",
|
|
1337
1368
|
headerName: "Item ID",
|
|
@@ -1363,7 +1394,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1363
1394
|
align: "right",
|
|
1364
1395
|
headerAlign: "right",
|
|
1365
1396
|
cellClassName: "gloss-tabular-nums",
|
|
1366
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1397
|
+
renderCell: ({ row: e }) => e.price ? ge(e.price) : te
|
|
1367
1398
|
},
|
|
1368
1399
|
{
|
|
1369
1400
|
field: "quantity",
|
|
@@ -1373,7 +1404,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1373
1404
|
align: "right",
|
|
1374
1405
|
headerAlign: "right",
|
|
1375
1406
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1376
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1407
|
+
renderCell: ({ row: e }) => e.quantity ? Ie(e.quantity) : te
|
|
1377
1408
|
},
|
|
1378
1409
|
{
|
|
1379
1410
|
field: "total",
|
|
@@ -1383,7 +1414,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1383
1414
|
align: "right",
|
|
1384
1415
|
headerAlign: "right",
|
|
1385
1416
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1386
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1417
|
+
renderCell: ({ row: e }) => e.total ? ge(e.total) : te
|
|
1387
1418
|
},
|
|
1388
1419
|
{
|
|
1389
1420
|
field: "lastDate",
|
|
@@ -1393,24 +1424,24 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1393
1424
|
align: "right",
|
|
1394
1425
|
headerAlign: "right",
|
|
1395
1426
|
cellClassName: "gloss-tabular-nums",
|
|
1396
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1427
|
+
renderCell: ({ row: e }) => e.lastDate ? Re(e.lastDate) : ""
|
|
1397
1428
|
}
|
|
1398
|
-
],
|
|
1429
|
+
], yt = [
|
|
1399
1430
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1400
1431
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1401
1432
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1402
1433
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1403
1434
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1404
|
-
],
|
|
1435
|
+
], wt = [
|
|
1405
1436
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1406
1437
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1407
1438
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1408
1439
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1409
1440
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1410
|
-
],
|
|
1411
|
-
},
|
|
1412
|
-
},
|
|
1413
|
-
},
|
|
1441
|
+
], de = (e) => {
|
|
1442
|
+
}, Dt = (e) => {
|
|
1443
|
+
}, Ce = (e, t) => {
|
|
1444
|
+
}, Me = {
|
|
1414
1445
|
vizState: {
|
|
1415
1446
|
type: "orders",
|
|
1416
1447
|
quant: "$",
|
|
@@ -1418,17 +1449,17 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1418
1449
|
byItem: { id: null, name: null },
|
|
1419
1450
|
timeFrame: "MTD"
|
|
1420
1451
|
},
|
|
1421
|
-
onTypeChange:
|
|
1422
|
-
onQuantChange:
|
|
1423
|
-
onEntityTypeChange:
|
|
1424
|
-
onEntitySelect:
|
|
1425
|
-
onItemSelect:
|
|
1426
|
-
onTimeFrameChange:
|
|
1452
|
+
onTypeChange: de,
|
|
1453
|
+
onQuantChange: Dt,
|
|
1454
|
+
onEntityTypeChange: de,
|
|
1455
|
+
onEntitySelect: Ce,
|
|
1456
|
+
onItemSelect: Ce,
|
|
1457
|
+
onTimeFrameChange: de,
|
|
1427
1458
|
userType: "sales-agency",
|
|
1428
|
-
entityFilterOptions:
|
|
1429
|
-
itemFilterOptions:
|
|
1430
|
-
},
|
|
1431
|
-
...
|
|
1459
|
+
entityFilterOptions: yt,
|
|
1460
|
+
itemFilterOptions: wt
|
|
1461
|
+
}, Gn = {
|
|
1462
|
+
...Me,
|
|
1432
1463
|
vizState: {
|
|
1433
1464
|
type: "items",
|
|
1434
1465
|
quant: "$",
|
|
@@ -1436,8 +1467,8 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1436
1467
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1437
1468
|
timeFrame: "YTD"
|
|
1438
1469
|
}
|
|
1439
|
-
},
|
|
1440
|
-
...
|
|
1470
|
+
}, Hn = {
|
|
1471
|
+
...Me,
|
|
1441
1472
|
vizState: {
|
|
1442
1473
|
type: "orders",
|
|
1443
1474
|
quant: "#",
|
|
@@ -1449,7 +1480,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1449
1480
|
entityFilterOptions: [
|
|
1450
1481
|
{ id: "customers", label: "Customers" }
|
|
1451
1482
|
]
|
|
1452
|
-
},
|
|
1483
|
+
}, Ct = [
|
|
1453
1484
|
{
|
|
1454
1485
|
id: "recent-orders",
|
|
1455
1486
|
label: "Recent Orders",
|
|
@@ -1495,7 +1526,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1495
1526
|
routeKey: "customer.profile",
|
|
1496
1527
|
subtitle: "Opens in RepTime"
|
|
1497
1528
|
}
|
|
1498
|
-
],
|
|
1529
|
+
], Nt = [
|
|
1499
1530
|
{
|
|
1500
1531
|
id: "order-items",
|
|
1501
1532
|
label: "Items in Order",
|
|
@@ -1524,7 +1555,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1524
1555
|
cellKinds: ["orderId"],
|
|
1525
1556
|
graphType: "timeline"
|
|
1526
1557
|
}
|
|
1527
|
-
],
|
|
1558
|
+
], kt = [
|
|
1528
1559
|
{
|
|
1529
1560
|
id: "graph-metric",
|
|
1530
1561
|
label: "Graph This Metric",
|
|
@@ -1552,14 +1583,14 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1552
1583
|
cellKinds: ["numeric"],
|
|
1553
1584
|
tabType: "orders"
|
|
1554
1585
|
}
|
|
1555
|
-
],
|
|
1556
|
-
entityName:
|
|
1557
|
-
orderId:
|
|
1558
|
-
numeric:
|
|
1559
|
-
},
|
|
1586
|
+
], Vn = {
|
|
1587
|
+
entityName: Ct,
|
|
1588
|
+
orderId: Nt,
|
|
1589
|
+
numeric: kt
|
|
1590
|
+
}, zn = [
|
|
1560
1591
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1561
1592
|
/* @__PURE__ */ new Date()
|
|
1562
|
-
],
|
|
1593
|
+
], Zn = {
|
|
1563
1594
|
rangeA: [
|
|
1564
1595
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1565
1596
|
/* @__PURE__ */ new Date()
|
|
@@ -1572,7 +1603,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1572
1603
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1573
1604
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1574
1605
|
]
|
|
1575
|
-
},
|
|
1606
|
+
}, Un = {
|
|
1576
1607
|
version: 4,
|
|
1577
1608
|
lastPreset: "mtd",
|
|
1578
1609
|
pinnedPreset: "mtd",
|
|
@@ -1580,7 +1611,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1580
1611
|
rangeCount: 1,
|
|
1581
1612
|
lastPresetB: null,
|
|
1582
1613
|
lastPresetC: null
|
|
1583
|
-
},
|
|
1614
|
+
}, Yn = [
|
|
1584
1615
|
{
|
|
1585
1616
|
id: "atlanta-jan",
|
|
1586
1617
|
label: "Atlanta Market",
|
|
@@ -1602,7 +1633,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1602
1633
|
endDate: new Date(2026, 3, 22),
|
|
1603
1634
|
location: "Chicago, IL"
|
|
1604
1635
|
}
|
|
1605
|
-
],
|
|
1636
|
+
], qn = [
|
|
1606
1637
|
{
|
|
1607
1638
|
id: "custom-regional-1",
|
|
1608
1639
|
label: "Southeast Regional Expo",
|
|
@@ -1619,7 +1650,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1619
1650
|
location: "Portland, OR",
|
|
1620
1651
|
isCustom: !0
|
|
1621
1652
|
}
|
|
1622
|
-
],
|
|
1653
|
+
], jn = [
|
|
1623
1654
|
{
|
|
1624
1655
|
id: "atlanta-jan",
|
|
1625
1656
|
label: "Atlanta Market",
|
|
@@ -1636,137 +1667,137 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1636
1667
|
location: "New York, NY",
|
|
1637
1668
|
active: !0
|
|
1638
1669
|
}
|
|
1639
|
-
],
|
|
1670
|
+
], Xn = [
|
|
1640
1671
|
{ id: "7d", label: "7D" },
|
|
1641
1672
|
{ id: "30d", label: "30D" },
|
|
1642
1673
|
{ id: "60d", label: "60D" },
|
|
1643
1674
|
{ id: "90d", label: "90D" }
|
|
1644
|
-
],
|
|
1675
|
+
], Qn = [
|
|
1645
1676
|
{ id: "mtd", label: "MTD" },
|
|
1646
1677
|
{ id: "qtd", label: "QTD" },
|
|
1647
1678
|
{ id: "ytd", label: "YTD" },
|
|
1648
1679
|
{ id: "lytd", label: "LYTD" }
|
|
1649
|
-
],
|
|
1680
|
+
], xt = {
|
|
1650
1681
|
timeframe: "Time Frame",
|
|
1651
1682
|
threshold: "Thresholds",
|
|
1652
1683
|
slots: "Slots",
|
|
1653
1684
|
size: "Size",
|
|
1654
1685
|
color: "Color",
|
|
1655
1686
|
pinned: "Pinned"
|
|
1656
|
-
},
|
|
1657
|
-
timeframe:
|
|
1658
|
-
threshold:
|
|
1659
|
-
slots:
|
|
1660
|
-
size:
|
|
1661
|
-
color:
|
|
1662
|
-
pinned:
|
|
1687
|
+
}, St = {
|
|
1688
|
+
timeframe: je,
|
|
1689
|
+
threshold: Xe,
|
|
1690
|
+
slots: Qe,
|
|
1691
|
+
size: Je,
|
|
1692
|
+
color: et,
|
|
1693
|
+
pinned: tt
|
|
1663
1694
|
};
|
|
1664
|
-
function
|
|
1695
|
+
function Ne(...e) {
|
|
1665
1696
|
return e.filter(Boolean).join(" ");
|
|
1666
1697
|
}
|
|
1667
|
-
function
|
|
1668
|
-
const [e, t] =
|
|
1669
|
-
return
|
|
1698
|
+
function Tt() {
|
|
1699
|
+
const [e, t] = K(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1700
|
+
return L(() => {
|
|
1670
1701
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1671
|
-
const
|
|
1672
|
-
return typeof
|
|
1673
|
-
|
|
1702
|
+
const a = window.matchMedia("(prefers-reduced-motion: reduce)"), n = (s) => t(s.matches);
|
|
1703
|
+
return typeof a.addEventListener == "function" ? (a.addEventListener("change", n), () => a.removeEventListener("change", n)) : (a.addListener?.(n), () => {
|
|
1704
|
+
a.removeListener?.(n);
|
|
1674
1705
|
});
|
|
1675
1706
|
}, []), e;
|
|
1676
1707
|
}
|
|
1677
|
-
const
|
|
1708
|
+
const _t = ({
|
|
1678
1709
|
dimensions: e,
|
|
1679
1710
|
onDimensionSelect: t,
|
|
1680
|
-
activeDimension:
|
|
1681
|
-
ariaCardTypeLabel:
|
|
1682
|
-
className:
|
|
1711
|
+
activeDimension: a,
|
|
1712
|
+
ariaCardTypeLabel: n,
|
|
1713
|
+
className: s
|
|
1683
1714
|
}) => {
|
|
1684
|
-
const o =
|
|
1715
|
+
const o = P(null), l = P([]), m = Tt(), h = ne(() => Array.from(e), [e]);
|
|
1685
1716
|
if (h.length === 0) return null;
|
|
1686
|
-
const u =
|
|
1687
|
-
const
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1717
|
+
const u = n ? `Configure ${n}: choose a dimension` : void 0, D = m ? "10ms" : "200ms", v = (i, c) => {
|
|
1718
|
+
const y = h.length - 1, I = (p) => {
|
|
1719
|
+
const T = l.current[p];
|
|
1720
|
+
T && T.focus();
|
|
1690
1721
|
};
|
|
1691
|
-
switch (
|
|
1722
|
+
switch (i.key) {
|
|
1692
1723
|
case "ArrowRight":
|
|
1693
1724
|
case "ArrowDown": {
|
|
1694
|
-
|
|
1725
|
+
i.preventDefault(), I(c === y ? 0 : c + 1);
|
|
1695
1726
|
break;
|
|
1696
1727
|
}
|
|
1697
1728
|
case "ArrowLeft":
|
|
1698
1729
|
case "ArrowUp": {
|
|
1699
|
-
|
|
1730
|
+
i.preventDefault(), I(c === 0 ? y : c - 1);
|
|
1700
1731
|
break;
|
|
1701
1732
|
}
|
|
1702
1733
|
case "Home": {
|
|
1703
|
-
|
|
1734
|
+
i.preventDefault(), I(0);
|
|
1704
1735
|
break;
|
|
1705
1736
|
}
|
|
1706
1737
|
case "End": {
|
|
1707
|
-
|
|
1738
|
+
i.preventDefault(), I(y);
|
|
1708
1739
|
break;
|
|
1709
1740
|
}
|
|
1710
1741
|
case "Enter":
|
|
1711
1742
|
case " ": {
|
|
1712
|
-
|
|
1743
|
+
i.preventDefault(), t(h[c]);
|
|
1713
1744
|
break;
|
|
1714
1745
|
}
|
|
1715
1746
|
}
|
|
1716
1747
|
};
|
|
1717
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ d(
|
|
1718
1749
|
"div",
|
|
1719
1750
|
{
|
|
1720
1751
|
ref: o,
|
|
1721
1752
|
role: "group",
|
|
1722
1753
|
"aria-label": u,
|
|
1723
|
-
className:
|
|
1754
|
+
className: Ne("gloss-reconfig-backside-buttons", s),
|
|
1724
1755
|
style: {
|
|
1725
1756
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1726
1757
|
// so the SCSS transition rule can consume it without a nested media
|
|
1727
1758
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1728
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
1759
|
+
"--gloss-reconfig-backside-buttons-transition-duration": D
|
|
1729
1760
|
},
|
|
1730
|
-
children: h.map((
|
|
1731
|
-
const
|
|
1732
|
-
return /* @__PURE__ */
|
|
1761
|
+
children: h.map((i, c) => {
|
|
1762
|
+
const y = St[i], I = a === i;
|
|
1763
|
+
return /* @__PURE__ */ O(
|
|
1733
1764
|
"button",
|
|
1734
1765
|
{
|
|
1735
|
-
ref: (
|
|
1736
|
-
|
|
1766
|
+
ref: (p) => {
|
|
1767
|
+
l.current[c] = p;
|
|
1737
1768
|
},
|
|
1738
1769
|
type: "button",
|
|
1739
|
-
"data-dimension":
|
|
1740
|
-
className:
|
|
1770
|
+
"data-dimension": i,
|
|
1771
|
+
className: Ne(
|
|
1741
1772
|
"gloss-reconfig-backside-buttons__button",
|
|
1742
1773
|
I && "gloss-reconfig-backside-buttons__button--active"
|
|
1743
1774
|
),
|
|
1744
1775
|
"aria-current": I ? "true" : void 0,
|
|
1745
|
-
onClick: () => t(
|
|
1746
|
-
onKeyDown: (
|
|
1776
|
+
onClick: () => t(i),
|
|
1777
|
+
onKeyDown: (p) => v(p, c),
|
|
1747
1778
|
children: [
|
|
1748
|
-
/* @__PURE__ */
|
|
1749
|
-
|
|
1779
|
+
/* @__PURE__ */ d(
|
|
1780
|
+
y,
|
|
1750
1781
|
{
|
|
1751
1782
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
1752
1783
|
"aria-hidden": "true"
|
|
1753
1784
|
}
|
|
1754
1785
|
),
|
|
1755
|
-
/* @__PURE__ */
|
|
1786
|
+
/* @__PURE__ */ d("span", { className: "gloss-reconfig-backside-buttons__button-label", children: xt[i] })
|
|
1756
1787
|
]
|
|
1757
1788
|
},
|
|
1758
|
-
|
|
1789
|
+
i
|
|
1759
1790
|
);
|
|
1760
1791
|
})
|
|
1761
1792
|
}
|
|
1762
1793
|
);
|
|
1763
1794
|
};
|
|
1764
|
-
|
|
1795
|
+
_t.displayName = "ReconfigBacksideButtons";
|
|
1765
1796
|
function z(e, t) {
|
|
1766
1797
|
return {
|
|
1767
1798
|
id: e,
|
|
1768
1799
|
colSpan: 1,
|
|
1769
|
-
content:
|
|
1800
|
+
content: W.createElement("div", {
|
|
1770
1801
|
style: {
|
|
1771
1802
|
width: "100%",
|
|
1772
1803
|
height: "100%",
|
|
@@ -1782,38 +1813,38 @@ function z(e, t) {
|
|
|
1782
1813
|
}, t)
|
|
1783
1814
|
};
|
|
1784
1815
|
}
|
|
1785
|
-
function
|
|
1816
|
+
function ke(e, t) {
|
|
1786
1817
|
return {
|
|
1787
1818
|
...z(e, t),
|
|
1788
1819
|
colSpan: 2
|
|
1789
1820
|
};
|
|
1790
1821
|
}
|
|
1791
|
-
const
|
|
1822
|
+
const Jn = [
|
|
1792
1823
|
z("total-revenue", "Total Revenue"),
|
|
1793
1824
|
z("total-orders", "Total Orders"),
|
|
1794
|
-
|
|
1825
|
+
ke("revenue-trend", "Revenue Trend (2x)"),
|
|
1795
1826
|
z("avg-order", "Avg Order Value"),
|
|
1796
1827
|
z("new-customers", "New Customers"),
|
|
1797
1828
|
z("top-salesperson", "Top Salesperson"),
|
|
1798
|
-
|
|
1829
|
+
ke("order-trend", "Order Trend (2x)"),
|
|
1799
1830
|
z("repeat-rate", "Repeat Rate"),
|
|
1800
1831
|
z("open-orders", "Open Orders"),
|
|
1801
1832
|
z("shipped-orders", "Shipped Orders")
|
|
1802
|
-
],
|
|
1833
|
+
], ea = {
|
|
1803
1834
|
columns: 6,
|
|
1804
1835
|
rowHeight: 120,
|
|
1805
1836
|
gap: 15,
|
|
1806
1837
|
maxRows: 3,
|
|
1807
1838
|
currentPage: 0,
|
|
1808
1839
|
totalPages: 1
|
|
1809
|
-
},
|
|
1840
|
+
}, ta = {
|
|
1810
1841
|
columns: 9,
|
|
1811
1842
|
rowHeight: 120,
|
|
1812
1843
|
gap: 15,
|
|
1813
1844
|
maxRows: 3,
|
|
1814
1845
|
currentPage: 0,
|
|
1815
1846
|
totalPages: 2
|
|
1816
|
-
},
|
|
1847
|
+
}, na = {
|
|
1817
1848
|
columns: 12,
|
|
1818
1849
|
rowHeight: 120,
|
|
1819
1850
|
gap: 15,
|
|
@@ -1821,15 +1852,15 @@ const Ha = [
|
|
|
1821
1852
|
currentPage: 0,
|
|
1822
1853
|
totalPages: 3
|
|
1823
1854
|
};
|
|
1824
|
-
function
|
|
1825
|
-
return
|
|
1855
|
+
function ue(e) {
|
|
1856
|
+
return W.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1826
1857
|
}
|
|
1827
|
-
const
|
|
1858
|
+
const aa = [
|
|
1828
1859
|
{
|
|
1829
1860
|
id: "all-orders",
|
|
1830
1861
|
type: "orders",
|
|
1831
1862
|
name: "All Orders",
|
|
1832
|
-
icon:
|
|
1863
|
+
icon: ue("📋"),
|
|
1833
1864
|
closable: !1,
|
|
1834
1865
|
autoCreated: !0
|
|
1835
1866
|
},
|
|
@@ -1837,17 +1868,17 @@ const Ua = [
|
|
|
1837
1868
|
id: "open-orders",
|
|
1838
1869
|
type: "orders",
|
|
1839
1870
|
name: "Open Orders",
|
|
1840
|
-
icon:
|
|
1871
|
+
icon: ue("📦"),
|
|
1841
1872
|
closable: !0
|
|
1842
1873
|
},
|
|
1843
1874
|
{
|
|
1844
1875
|
id: "shipped-orders",
|
|
1845
1876
|
type: "orders",
|
|
1846
1877
|
name: "Shipped Orders",
|
|
1847
|
-
icon:
|
|
1878
|
+
icon: ue("🚚"),
|
|
1848
1879
|
closable: !0
|
|
1849
1880
|
}
|
|
1850
|
-
],
|
|
1881
|
+
], ra = [
|
|
1851
1882
|
{
|
|
1852
1883
|
id: "orders-main",
|
|
1853
1884
|
type: "orders",
|
|
@@ -1873,7 +1904,7 @@ const Ua = [
|
|
|
1873
1904
|
name: "Customers",
|
|
1874
1905
|
closable: !0
|
|
1875
1906
|
}
|
|
1876
|
-
],
|
|
1907
|
+
], sa = [
|
|
1877
1908
|
{
|
|
1878
1909
|
id: "only-tab",
|
|
1879
1910
|
type: "orders",
|
|
@@ -1881,7 +1912,7 @@ const Ua = [
|
|
|
1881
1912
|
closable: !1,
|
|
1882
1913
|
autoCreated: !0
|
|
1883
1914
|
}
|
|
1884
|
-
],
|
|
1915
|
+
], oa = [
|
|
1885
1916
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1886
1917
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1887
1918
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1893,7 +1924,7 @@ const Ua = [
|
|
|
1893
1924
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
1894
1925
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
1895
1926
|
];
|
|
1896
|
-
function
|
|
1927
|
+
function fe(e) {
|
|
1897
1928
|
switch (e) {
|
|
1898
1929
|
case "wide":
|
|
1899
1930
|
return { cols: 2, rows: 1 };
|
|
@@ -1904,40 +1935,40 @@ function ue(e) {
|
|
|
1904
1935
|
return { cols: 1, rows: 1 };
|
|
1905
1936
|
}
|
|
1906
1937
|
}
|
|
1907
|
-
function
|
|
1938
|
+
function It(e) {
|
|
1908
1939
|
let t = 0;
|
|
1909
|
-
for (const
|
|
1910
|
-
const
|
|
1940
|
+
for (const n of e) {
|
|
1941
|
+
const s = fe(n.size), o = n.gridPosition.col + s.cols - 1;
|
|
1911
1942
|
o > t && (t = o);
|
|
1912
1943
|
}
|
|
1913
1944
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1914
1945
|
}
|
|
1915
|
-
const
|
|
1946
|
+
const Rt = function(t) {
|
|
1916
1947
|
if (t.renderMode === "discrete")
|
|
1917
|
-
return /* @__PURE__ */
|
|
1948
|
+
return /* @__PURE__ */ d(
|
|
1918
1949
|
"div",
|
|
1919
1950
|
{
|
|
1920
1951
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1921
1952
|
style: { display: "contents" },
|
|
1922
|
-
children: t.cards.map((
|
|
1923
|
-
const o =
|
|
1924
|
-
return /* @__PURE__ */
|
|
1953
|
+
children: t.cards.map((s) => {
|
|
1954
|
+
const o = fe(s.size);
|
|
1955
|
+
return /* @__PURE__ */ d(
|
|
1925
1956
|
"div",
|
|
1926
1957
|
{
|
|
1927
1958
|
className: "gloss-metric-group__slot",
|
|
1928
1959
|
style: {
|
|
1929
|
-
gridColumn: `${
|
|
1930
|
-
gridRow: `${
|
|
1960
|
+
gridColumn: `${s.gridPosition.col} / span ${o.cols}`,
|
|
1961
|
+
gridRow: `${s.gridPosition.row} / span ${o.rows}`
|
|
1931
1962
|
},
|
|
1932
|
-
children:
|
|
1963
|
+
children: s.children
|
|
1933
1964
|
},
|
|
1934
|
-
|
|
1965
|
+
s.key
|
|
1935
1966
|
);
|
|
1936
1967
|
})
|
|
1937
1968
|
}
|
|
1938
1969
|
);
|
|
1939
|
-
const { cards:
|
|
1940
|
-
return /* @__PURE__ */
|
|
1970
|
+
const { cards: a, composite: n } = t;
|
|
1971
|
+
return /* @__PURE__ */ O(
|
|
1941
1972
|
"div",
|
|
1942
1973
|
{
|
|
1943
1974
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1952,50 +1983,50 @@ const wt = function(t) {
|
|
|
1952
1983
|
padding: "10px 12px 8px",
|
|
1953
1984
|
overflow: "visible"
|
|
1954
1985
|
},
|
|
1955
|
-
role:
|
|
1956
|
-
"aria-label":
|
|
1986
|
+
role: n?.label ? "group" : void 0,
|
|
1987
|
+
"aria-label": n?.label,
|
|
1957
1988
|
tabIndex: void 0,
|
|
1958
1989
|
children: [
|
|
1959
|
-
|
|
1990
|
+
n?.accentColor && /* @__PURE__ */ d(
|
|
1960
1991
|
"div",
|
|
1961
1992
|
{
|
|
1962
1993
|
className: "gloss-metric-group__accent",
|
|
1963
|
-
style: { background:
|
|
1994
|
+
style: { background: n.accentColor }
|
|
1964
1995
|
}
|
|
1965
1996
|
),
|
|
1966
|
-
|
|
1967
|
-
/* @__PURE__ */
|
|
1968
|
-
|
|
1997
|
+
n?.label && /* @__PURE__ */ O("div", { className: "gloss-metric-group__label", children: [
|
|
1998
|
+
/* @__PURE__ */ d("span", { children: n.label }),
|
|
1999
|
+
n?.trend && /* @__PURE__ */ d(
|
|
1969
2000
|
"span",
|
|
1970
2001
|
{
|
|
1971
2002
|
className: "gloss-metric-group__trend",
|
|
1972
|
-
"data-direction":
|
|
1973
|
-
children:
|
|
2003
|
+
"data-direction": n.trend.direction,
|
|
2004
|
+
children: n.trend.delta
|
|
1974
2005
|
}
|
|
1975
2006
|
)
|
|
1976
2007
|
] }),
|
|
1977
|
-
/* @__PURE__ */
|
|
2008
|
+
/* @__PURE__ */ d(
|
|
1978
2009
|
"div",
|
|
1979
2010
|
{
|
|
1980
2011
|
className: "gloss-metric-group__slots",
|
|
1981
2012
|
style: {
|
|
1982
2013
|
display: "grid",
|
|
1983
2014
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
1984
|
-
gridTemplateColumns:
|
|
2015
|
+
gridTemplateColumns: It(a)
|
|
1985
2016
|
},
|
|
1986
|
-
children:
|
|
1987
|
-
const o =
|
|
1988
|
-
return /* @__PURE__ */
|
|
2017
|
+
children: a.map((s) => {
|
|
2018
|
+
const o = fe(s.size);
|
|
2019
|
+
return /* @__PURE__ */ d(
|
|
1989
2020
|
"div",
|
|
1990
2021
|
{
|
|
1991
2022
|
className: "gloss-metric-group__slot--composite",
|
|
1992
2023
|
style: {
|
|
1993
|
-
gridColumn: `${
|
|
1994
|
-
gridRow: `${
|
|
2024
|
+
gridColumn: `${s.gridPosition.col} / span ${o.cols}`,
|
|
2025
|
+
gridRow: `${s.gridPosition.row} / span ${o.rows}`
|
|
1995
2026
|
},
|
|
1996
|
-
children:
|
|
2027
|
+
children: s.children
|
|
1997
2028
|
},
|
|
1998
|
-
|
|
2029
|
+
s.key
|
|
1999
2030
|
);
|
|
2000
2031
|
})
|
|
2001
2032
|
}
|
|
@@ -2004,16 +2035,16 @@ const wt = function(t) {
|
|
|
2004
2035
|
}
|
|
2005
2036
|
);
|
|
2006
2037
|
};
|
|
2007
|
-
|
|
2008
|
-
const
|
|
2009
|
-
...
|
|
2038
|
+
Rt.displayName = "MetricGroupContainer";
|
|
2039
|
+
const Pe = "resize.tuning.dev", Mt = {
|
|
2040
|
+
...Te,
|
|
2010
2041
|
snapInPx: 60,
|
|
2011
2042
|
snapOutPx: 90
|
|
2012
|
-
}, Y =
|
|
2013
|
-
function
|
|
2043
|
+
}, Y = Mt;
|
|
2044
|
+
function Pt() {
|
|
2014
2045
|
if (typeof window > "u") return { ...Y };
|
|
2015
2046
|
try {
|
|
2016
|
-
const e = window.localStorage.getItem(
|
|
2047
|
+
const e = window.localStorage.getItem(Pe);
|
|
2017
2048
|
if (!e) return { ...Y };
|
|
2018
2049
|
const t = JSON.parse(e);
|
|
2019
2050
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...Y } : { ...Y, ...t };
|
|
@@ -2021,31 +2052,31 @@ function Ct() {
|
|
|
2021
2052
|
return { ...Y };
|
|
2022
2053
|
}
|
|
2023
2054
|
}
|
|
2024
|
-
function
|
|
2025
|
-
const [e, t] =
|
|
2026
|
-
|
|
2055
|
+
function Ft() {
|
|
2056
|
+
const [e, t] = K(() => Pt());
|
|
2057
|
+
L(() => {
|
|
2027
2058
|
if (!(typeof window > "u"))
|
|
2028
2059
|
try {
|
|
2029
|
-
window.localStorage.setItem(
|
|
2060
|
+
window.localStorage.setItem(Pe, JSON.stringify(e));
|
|
2030
2061
|
} catch {
|
|
2031
2062
|
}
|
|
2032
2063
|
}, [e]);
|
|
2033
|
-
const
|
|
2034
|
-
(o,
|
|
2035
|
-
t((
|
|
2064
|
+
const a = f(
|
|
2065
|
+
(o, l) => {
|
|
2066
|
+
t((m) => ({ ...m, [o]: l }));
|
|
2036
2067
|
},
|
|
2037
2068
|
[]
|
|
2038
|
-
),
|
|
2069
|
+
), n = f(
|
|
2039
2070
|
(o) => {
|
|
2040
|
-
t((
|
|
2071
|
+
t((l) => ({ ...l, [o]: Y[o] }));
|
|
2041
2072
|
},
|
|
2042
2073
|
[]
|
|
2043
|
-
),
|
|
2074
|
+
), s = f(() => {
|
|
2044
2075
|
t({ ...Y });
|
|
2045
2076
|
}, []);
|
|
2046
|
-
return { values: e, setValue:
|
|
2077
|
+
return { values: e, setValue: a, resetRow: n, resetAll: s };
|
|
2047
2078
|
}
|
|
2048
|
-
const
|
|
2079
|
+
const Et = [
|
|
2049
2080
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2050
2081
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2051
2082
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2056,11 +2087,11 @@ const kt = [
|
|
|
2056
2087
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2057
2088
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2058
2089
|
];
|
|
2059
|
-
function
|
|
2090
|
+
function Ot(e, t) {
|
|
2060
2091
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2061
2092
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return /* @__PURE__ */
|
|
2093
|
+
function At() {
|
|
2094
|
+
return /* @__PURE__ */ O(
|
|
2064
2095
|
"svg",
|
|
2065
2096
|
{
|
|
2066
2097
|
width: "14",
|
|
@@ -2073,32 +2104,32 @@ function St() {
|
|
|
2073
2104
|
strokeLinejoin: "round",
|
|
2074
2105
|
"aria-hidden": "true",
|
|
2075
2106
|
children: [
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ d("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
2108
|
+
/* @__PURE__ */ d("polyline", { points: "3 3 3 8 8 8" })
|
|
2078
2109
|
]
|
|
2079
2110
|
}
|
|
2080
2111
|
);
|
|
2081
2112
|
}
|
|
2082
|
-
function
|
|
2083
|
-
const o =
|
|
2084
|
-
(
|
|
2085
|
-
(
|
|
2113
|
+
function Lt({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
|
|
2114
|
+
const o = f(
|
|
2115
|
+
(l) => {
|
|
2116
|
+
(l.key === "r" || l.key === "R") && (l.preventDefault(), n());
|
|
2086
2117
|
},
|
|
2087
|
-
[
|
|
2118
|
+
[n]
|
|
2088
2119
|
);
|
|
2089
|
-
return /* @__PURE__ */
|
|
2120
|
+
return /* @__PURE__ */ O(
|
|
2090
2121
|
"div",
|
|
2091
2122
|
{
|
|
2092
|
-
className: `gloss-dev-tuning-panel__row${
|
|
2123
|
+
className: `gloss-dev-tuning-panel__row${s ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
2093
2124
|
"data-tuning-row": e.key,
|
|
2094
2125
|
onKeyDown: o,
|
|
2095
2126
|
children: [
|
|
2096
|
-
/* @__PURE__ */
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
|
|
2127
|
+
/* @__PURE__ */ d("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2128
|
+
/* @__PURE__ */ O("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2129
|
+
Ot(t, e.step),
|
|
2099
2130
|
e.unit ? ` ${e.unit}` : ""
|
|
2100
2131
|
] }),
|
|
2101
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ d(
|
|
2102
2133
|
"input",
|
|
2103
2134
|
{
|
|
2104
2135
|
id: `gloss-dtp-${e.key}`,
|
|
@@ -2109,24 +2140,24 @@ function Tt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2109
2140
|
step: e.step,
|
|
2110
2141
|
value: t,
|
|
2111
2142
|
"aria-label": e.label,
|
|
2112
|
-
onChange: (
|
|
2143
|
+
onChange: (l) => a(Number(l.target.value))
|
|
2113
2144
|
}
|
|
2114
2145
|
),
|
|
2115
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ d(
|
|
2116
2147
|
"button",
|
|
2117
2148
|
{
|
|
2118
2149
|
type: "button",
|
|
2119
2150
|
className: "gloss-dev-tuning-panel__reset",
|
|
2120
2151
|
"aria-label": `Reset ${e.label}`,
|
|
2121
|
-
onClick:
|
|
2122
|
-
children: /* @__PURE__ */
|
|
2152
|
+
onClick: n,
|
|
2153
|
+
children: /* @__PURE__ */ d(At, {})
|
|
2123
2154
|
}
|
|
2124
2155
|
)
|
|
2125
2156
|
]
|
|
2126
2157
|
}
|
|
2127
2158
|
);
|
|
2128
2159
|
}
|
|
2129
|
-
function
|
|
2160
|
+
function $t() {
|
|
2130
2161
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2131
2162
|
try {
|
|
2132
2163
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2134,23 +2165,23 @@ function _t() {
|
|
|
2134
2165
|
return !1;
|
|
2135
2166
|
}
|
|
2136
2167
|
}
|
|
2137
|
-
function
|
|
2138
|
-
return
|
|
2168
|
+
function Bt(e = {}) {
|
|
2169
|
+
return $t() ? /* @__PURE__ */ d(Kt, {}) : null;
|
|
2139
2170
|
}
|
|
2140
|
-
|
|
2141
|
-
function
|
|
2142
|
-
const e =
|
|
2143
|
-
|
|
2144
|
-
|
|
2171
|
+
Bt.displayName = "DevTuningPanel";
|
|
2172
|
+
function Kt() {
|
|
2173
|
+
const e = Ft(), { values: t, setValue: a, resetRow: n, resetAll: s } = e, [o, l] = K(null), m = P(null), h = f((i) => {
|
|
2174
|
+
m.current && clearTimeout(m.current), l(i), m.current = setTimeout(() => {
|
|
2175
|
+
l(null), m.current = null;
|
|
2145
2176
|
}, 200);
|
|
2146
|
-
}, []), u =
|
|
2147
|
-
(
|
|
2148
|
-
|
|
2177
|
+
}, []), u = f(
|
|
2178
|
+
(i, c) => {
|
|
2179
|
+
a(i, c), i === "snapInPx" && c > t.snapOutPx && (a("snapOutPx", c), h("snapOutPx"));
|
|
2149
2180
|
},
|
|
2150
|
-
[
|
|
2151
|
-
),
|
|
2152
|
-
return /* @__PURE__ */
|
|
2153
|
-
|
|
2181
|
+
[a, t.snapOutPx, h]
|
|
2182
|
+
), D = ne(() => Et, []), v = Ue();
|
|
2183
|
+
return /* @__PURE__ */ O(
|
|
2184
|
+
Se.div,
|
|
2154
2185
|
{
|
|
2155
2186
|
className: "gloss-dev-tuning-panel",
|
|
2156
2187
|
role: "region",
|
|
@@ -2158,37 +2189,37 @@ function Rt() {
|
|
|
2158
2189
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2159
2190
|
drag: !0,
|
|
2160
2191
|
dragListener: !1,
|
|
2161
|
-
dragControls:
|
|
2192
|
+
dragControls: v,
|
|
2162
2193
|
dragMomentum: !1,
|
|
2163
2194
|
children: [
|
|
2164
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ O(
|
|
2165
2196
|
"div",
|
|
2166
2197
|
{
|
|
2167
2198
|
className: "gloss-dev-tuning-panel__header",
|
|
2168
|
-
onPointerDown: (
|
|
2199
|
+
onPointerDown: (i) => v.start(i),
|
|
2169
2200
|
children: [
|
|
2170
|
-
/* @__PURE__ */
|
|
2171
|
-
/* @__PURE__ */
|
|
2201
|
+
/* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2202
|
+
/* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2172
2203
|
]
|
|
2173
2204
|
}
|
|
2174
2205
|
),
|
|
2175
|
-
/* @__PURE__ */
|
|
2176
|
-
|
|
2206
|
+
/* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__body", children: D.map((i) => /* @__PURE__ */ d(
|
|
2207
|
+
Lt,
|
|
2177
2208
|
{
|
|
2178
|
-
spec:
|
|
2179
|
-
value: t[
|
|
2180
|
-
onChange: (
|
|
2181
|
-
onReset: () =>
|
|
2182
|
-
flashing: o ===
|
|
2209
|
+
spec: i,
|
|
2210
|
+
value: t[i.key],
|
|
2211
|
+
onChange: (c) => u(i.key, c),
|
|
2212
|
+
onReset: () => n(i.key),
|
|
2213
|
+
flashing: o === i.key
|
|
2183
2214
|
},
|
|
2184
|
-
|
|
2215
|
+
i.key
|
|
2185
2216
|
)) }),
|
|
2186
|
-
/* @__PURE__ */
|
|
2217
|
+
/* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ d(
|
|
2187
2218
|
"button",
|
|
2188
2219
|
{
|
|
2189
2220
|
type: "button",
|
|
2190
2221
|
className: "gloss-dev-tuning-panel__reset-all",
|
|
2191
|
-
onClick:
|
|
2222
|
+
onClick: s,
|
|
2192
2223
|
children: "Reset all"
|
|
2193
2224
|
}
|
|
2194
2225
|
) })
|
|
@@ -2204,44 +2235,44 @@ const U = {
|
|
|
2204
2235
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2205
2236
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2206
2237
|
};
|
|
2207
|
-
function
|
|
2238
|
+
function Wt({
|
|
2208
2239
|
message: e,
|
|
2209
2240
|
primaryAction: t,
|
|
2210
|
-
onDismiss:
|
|
2211
|
-
anchorEl:
|
|
2212
|
-
anchorSelector:
|
|
2241
|
+
onDismiss: a,
|
|
2242
|
+
anchorEl: n,
|
|
2243
|
+
anchorSelector: s
|
|
2213
2244
|
}) {
|
|
2214
|
-
const [o,
|
|
2245
|
+
const [o, l] = W.useState(null), m = W.useMemo(
|
|
2215
2246
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
2216
2247
|
[]
|
|
2217
2248
|
);
|
|
2218
|
-
|
|
2219
|
-
!
|
|
2249
|
+
W.useEffect(() => {
|
|
2250
|
+
!n && !s && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
2220
2251
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2221
2252
|
);
|
|
2222
|
-
}, [
|
|
2253
|
+
}, [n, s]), W.useLayoutEffect(() => {
|
|
2223
2254
|
let u = null;
|
|
2224
|
-
if (
|
|
2225
|
-
const
|
|
2226
|
-
|
|
2227
|
-
top:
|
|
2228
|
-
left:
|
|
2255
|
+
if (n ? u = n : s && (u = document.querySelector(s)), u) {
|
|
2256
|
+
const D = u.getBoundingClientRect();
|
|
2257
|
+
l({
|
|
2258
|
+
top: D.bottom + window.scrollY + 6,
|
|
2259
|
+
left: D.left + window.scrollX
|
|
2229
2260
|
});
|
|
2230
2261
|
}
|
|
2231
|
-
}, [
|
|
2262
|
+
}, [n, s]);
|
|
2232
2263
|
const h = o ? { top: o.top, left: o.left } : {};
|
|
2233
|
-
return /* @__PURE__ */
|
|
2264
|
+
return /* @__PURE__ */ O(
|
|
2234
2265
|
"div",
|
|
2235
2266
|
{
|
|
2236
2267
|
className: U["gloss-inline-nudge"],
|
|
2237
2268
|
style: h,
|
|
2238
2269
|
role: "status",
|
|
2239
2270
|
"aria-live": "polite",
|
|
2240
|
-
"data-reduced-motion":
|
|
2271
|
+
"data-reduced-motion": m ? "true" : void 0,
|
|
2241
2272
|
children: [
|
|
2242
|
-
/* @__PURE__ */
|
|
2243
|
-
/* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2273
|
+
/* @__PURE__ */ d("span", { className: U["gloss-inline-nudge__message"], children: e }),
|
|
2274
|
+
/* @__PURE__ */ O("div", { className: U["gloss-inline-nudge__actions"], children: [
|
|
2275
|
+
/* @__PURE__ */ d(
|
|
2245
2276
|
"button",
|
|
2246
2277
|
{
|
|
2247
2278
|
type: "button",
|
|
@@ -2250,12 +2281,12 @@ function Mt({
|
|
|
2250
2281
|
children: t.label
|
|
2251
2282
|
}
|
|
2252
2283
|
),
|
|
2253
|
-
/* @__PURE__ */
|
|
2284
|
+
/* @__PURE__ */ d(
|
|
2254
2285
|
"button",
|
|
2255
2286
|
{
|
|
2256
2287
|
type: "button",
|
|
2257
2288
|
className: `${U["gloss-inline-nudge__btn"]} ${U["gloss-inline-nudge__btn--dismiss"]}`,
|
|
2258
|
-
onClick:
|
|
2289
|
+
onClick: a,
|
|
2259
2290
|
"aria-label": "Dismiss",
|
|
2260
2291
|
children: "Dismiss"
|
|
2261
2292
|
}
|
|
@@ -2265,378 +2296,378 @@ function Mt({
|
|
|
2265
2296
|
}
|
|
2266
2297
|
);
|
|
2267
2298
|
}
|
|
2268
|
-
|
|
2269
|
-
function
|
|
2299
|
+
Wt.displayName = "InlineNudge";
|
|
2300
|
+
function he(e) {
|
|
2270
2301
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
2271
2302
|
}
|
|
2272
|
-
function
|
|
2273
|
-
if (
|
|
2274
|
-
const
|
|
2275
|
-
return `linear-gradient(to right, ${
|
|
2303
|
+
function Gt(e, t, a) {
|
|
2304
|
+
if (a <= t) {
|
|
2305
|
+
const l = e[0], m = l ? he(l) : "#888";
|
|
2306
|
+
return `linear-gradient(to right, ${m}, ${m})`;
|
|
2276
2307
|
}
|
|
2277
|
-
const
|
|
2278
|
-
const
|
|
2279
|
-
return `${
|
|
2308
|
+
const n = a - t, o = [...e].sort((l, m) => l.value - m.value).map((l) => {
|
|
2309
|
+
const m = (l.value - t) / n * 100;
|
|
2310
|
+
return `${he(l)} ${m.toFixed(2)}%`;
|
|
2280
2311
|
});
|
|
2281
2312
|
return o.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : o.length === 1 ? `linear-gradient(to right, ${o[0]}, ${o[0]})` : `linear-gradient(to right, ${o.join(", ")})`;
|
|
2282
2313
|
}
|
|
2283
|
-
function
|
|
2314
|
+
function Ht(e) {
|
|
2284
2315
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
2285
2316
|
}
|
|
2286
|
-
function
|
|
2317
|
+
function Vt({
|
|
2287
2318
|
stops: e,
|
|
2288
2319
|
onChange: t,
|
|
2289
|
-
min:
|
|
2290
|
-
max:
|
|
2291
|
-
step:
|
|
2320
|
+
min: a = 0,
|
|
2321
|
+
max: n = 100,
|
|
2322
|
+
step: s,
|
|
2292
2323
|
disabled: o = !1
|
|
2293
2324
|
}) {
|
|
2294
|
-
const
|
|
2295
|
-
`ThresholdRamp: step (${
|
|
2296
|
-
), 0.01) :
|
|
2297
|
-
(
|
|
2298
|
-
[
|
|
2299
|
-
), h =
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
}, [
|
|
2303
|
-
const I =
|
|
2304
|
-
(
|
|
2305
|
-
if (!h.current) return
|
|
2306
|
-
const
|
|
2307
|
-
return
|
|
2325
|
+
const l = s === void 0 ? 0.01 : !Number.isFinite(s) || s <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2326
|
+
`ThresholdRamp: step (${s}) must be a positive finite number; falling back to 0.01.`
|
|
2327
|
+
), 0.01) : s, m = f(
|
|
2328
|
+
(r) => Math.round(r / l) * l,
|
|
2329
|
+
[l]
|
|
2330
|
+
), h = P(null), [u, D] = K(null), [v, i] = K(e), c = Ht(e), y = P(c);
|
|
2331
|
+
L(() => {
|
|
2332
|
+
y.current !== c && (y.current = c, !u && i(e));
|
|
2333
|
+
}, [c, e, u]);
|
|
2334
|
+
const I = ne(() => Gt(v, a, n), [v, a, n]), p = f(
|
|
2335
|
+
(r) => {
|
|
2336
|
+
if (!h.current) return a;
|
|
2337
|
+
const g = h.current.getBoundingClientRect(), b = g.width || 1, x = Math.max(0, Math.min(1, (r - g.left) / b)), k = a + x * (n - a);
|
|
2338
|
+
return m(k);
|
|
2308
2339
|
},
|
|
2309
|
-
[
|
|
2340
|
+
[a, n, m]
|
|
2310
2341
|
);
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
`ThresholdRamp: max (${
|
|
2342
|
+
L(() => {
|
|
2343
|
+
n <= a && process.env.NODE_ENV !== "production" && console.warn(
|
|
2344
|
+
`ThresholdRamp: max (${n}) must be greater than min (${a}); rendering degenerate strip.`
|
|
2314
2345
|
);
|
|
2315
|
-
}, [
|
|
2316
|
-
const
|
|
2317
|
-
(
|
|
2318
|
-
const
|
|
2319
|
-
o ||
|
|
2346
|
+
}, [a, n]);
|
|
2347
|
+
const T = f(
|
|
2348
|
+
(r, g) => {
|
|
2349
|
+
const b = v.find((x) => x.id === g);
|
|
2350
|
+
o || b?.disabled || (r.preventDefault(), D(g));
|
|
2320
2351
|
},
|
|
2321
|
-
[o,
|
|
2322
|
-
),
|
|
2323
|
-
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2352
|
+
[o, v]
|
|
2353
|
+
), R = P(v);
|
|
2354
|
+
R.current = v;
|
|
2355
|
+
const C = P(t);
|
|
2356
|
+
C.current = t, L(() => {
|
|
2326
2357
|
if (!u) return;
|
|
2327
|
-
const
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
(
|
|
2358
|
+
const r = (b) => {
|
|
2359
|
+
const x = p(b.clientX);
|
|
2360
|
+
i(
|
|
2361
|
+
(k) => k.map((M) => M.id === u ? { ...M, value: x } : M)
|
|
2331
2362
|
);
|
|
2332
|
-
},
|
|
2333
|
-
const
|
|
2334
|
-
(
|
|
2363
|
+
}, g = (b) => {
|
|
2364
|
+
const x = p(b.clientX), k = R.current.map(
|
|
2365
|
+
(M) => M.id === u ? { ...M, value: x } : M
|
|
2335
2366
|
);
|
|
2336
|
-
|
|
2367
|
+
i(k), D(null), C.current(k);
|
|
2337
2368
|
};
|
|
2338
|
-
return window.addEventListener("pointermove",
|
|
2339
|
-
window.removeEventListener("pointermove",
|
|
2369
|
+
return window.addEventListener("pointermove", r), window.addEventListener("pointerup", g), window.addEventListener("pointercancel", g), () => {
|
|
2370
|
+
window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", g), window.removeEventListener("pointercancel", g);
|
|
2340
2371
|
};
|
|
2341
|
-
}, [u,
|
|
2342
|
-
const
|
|
2343
|
-
(
|
|
2344
|
-
if (o ||
|
|
2345
|
-
const
|
|
2346
|
-
if (
|
|
2347
|
-
const
|
|
2348
|
-
let
|
|
2349
|
-
switch (
|
|
2372
|
+
}, [u, p]);
|
|
2373
|
+
const _ = n - a > 0 ? n - a : 1, N = f(
|
|
2374
|
+
(r, g) => {
|
|
2375
|
+
if (o || g.disabled) return;
|
|
2376
|
+
const b = n - a;
|
|
2377
|
+
if (b <= 0) return;
|
|
2378
|
+
const x = r.shiftKey ? b / 20 : b / 100;
|
|
2379
|
+
let k = g.value;
|
|
2380
|
+
switch (r.key) {
|
|
2350
2381
|
case "ArrowRight":
|
|
2351
2382
|
case "ArrowUp":
|
|
2352
|
-
|
|
2383
|
+
k = g.value + x;
|
|
2353
2384
|
break;
|
|
2354
2385
|
case "ArrowLeft":
|
|
2355
2386
|
case "ArrowDown":
|
|
2356
|
-
|
|
2387
|
+
k = g.value - x;
|
|
2357
2388
|
break;
|
|
2358
2389
|
case "Home":
|
|
2359
|
-
|
|
2390
|
+
k = a;
|
|
2360
2391
|
break;
|
|
2361
2392
|
case "End":
|
|
2362
|
-
|
|
2393
|
+
k = n;
|
|
2363
2394
|
break;
|
|
2364
2395
|
default:
|
|
2365
2396
|
return;
|
|
2366
2397
|
}
|
|
2367
|
-
|
|
2368
|
-
const
|
|
2369
|
-
if (
|
|
2370
|
-
const
|
|
2371
|
-
(
|
|
2398
|
+
r.preventDefault();
|
|
2399
|
+
const M = Math.max(a, Math.min(n, k)), S = m(M);
|
|
2400
|
+
if (S === g.value) return;
|
|
2401
|
+
const $ = v.map(
|
|
2402
|
+
(G) => G.id === g.id ? { ...G, value: S } : G
|
|
2372
2403
|
);
|
|
2373
|
-
|
|
2404
|
+
i($), t($);
|
|
2374
2405
|
},
|
|
2375
|
-
[o,
|
|
2406
|
+
[o, a, n, v, t, m]
|
|
2376
2407
|
);
|
|
2377
|
-
return /* @__PURE__ */
|
|
2408
|
+
return /* @__PURE__ */ d("div", { className: "gloss-threshold-ramp", "data-disabled": o || void 0, children: /* @__PURE__ */ d(
|
|
2378
2409
|
"div",
|
|
2379
2410
|
{
|
|
2380
2411
|
ref: h,
|
|
2381
2412
|
className: "gloss-threshold-ramp__track",
|
|
2382
2413
|
style: { background: I },
|
|
2383
|
-
children:
|
|
2384
|
-
const
|
|
2385
|
-
return /* @__PURE__ */
|
|
2414
|
+
children: v.map((r) => {
|
|
2415
|
+
const g = (r.value - a) / _ * 100;
|
|
2416
|
+
return /* @__PURE__ */ d(
|
|
2386
2417
|
"span",
|
|
2387
2418
|
{
|
|
2388
2419
|
className: "gloss-threshold-ramp__stop",
|
|
2389
2420
|
style: {
|
|
2390
|
-
left: `${
|
|
2391
|
-
color:
|
|
2421
|
+
left: `${g}%`,
|
|
2422
|
+
color: he(r)
|
|
2392
2423
|
},
|
|
2393
|
-
"data-disabled":
|
|
2394
|
-
"data-dragging": u ===
|
|
2395
|
-
onPointerDown: (
|
|
2396
|
-
onKeyDown: (
|
|
2397
|
-
"aria-label":
|
|
2424
|
+
"data-disabled": r.disabled || void 0,
|
|
2425
|
+
"data-dragging": u === r.id || void 0,
|
|
2426
|
+
onPointerDown: (b) => T(b, r.id),
|
|
2427
|
+
onKeyDown: (b) => N(b, r),
|
|
2428
|
+
"aria-label": r.label ?? `Stop at ${r.value}`,
|
|
2398
2429
|
role: "slider",
|
|
2399
|
-
"aria-valuenow":
|
|
2400
|
-
"aria-valuemin":
|
|
2401
|
-
"aria-valuemax":
|
|
2402
|
-
"aria-disabled":
|
|
2403
|
-
tabIndex:
|
|
2430
|
+
"aria-valuenow": r.value,
|
|
2431
|
+
"aria-valuemin": a,
|
|
2432
|
+
"aria-valuemax": n,
|
|
2433
|
+
"aria-disabled": r.disabled || o || void 0,
|
|
2434
|
+
tabIndex: r.disabled || o ? -1 : 0
|
|
2404
2435
|
},
|
|
2405
|
-
|
|
2436
|
+
r.id
|
|
2406
2437
|
);
|
|
2407
2438
|
})
|
|
2408
2439
|
}
|
|
2409
2440
|
) });
|
|
2410
2441
|
}
|
|
2411
|
-
|
|
2412
|
-
const
|
|
2413
|
-
function
|
|
2414
|
-
return
|
|
2442
|
+
Vt.displayName = "ThresholdRamp";
|
|
2443
|
+
const Fe = Ve(null);
|
|
2444
|
+
function zt() {
|
|
2445
|
+
return ze(Fe);
|
|
2415
2446
|
}
|
|
2416
|
-
function
|
|
2417
|
-
const t =
|
|
2418
|
-
|
|
2419
|
-
}, [
|
|
2447
|
+
function Zt({ option: e }) {
|
|
2448
|
+
const t = zt(), a = t?.isSelected(e.value) ?? !1, n = e.disabled || t?.groupDisabled, s = f(() => {
|
|
2449
|
+
n || t?.select(e.value);
|
|
2450
|
+
}, [n, t, e.value]), o = f(
|
|
2420
2451
|
(u) => {
|
|
2421
|
-
|
|
2452
|
+
n || t?.onKeyNav(u, e.value);
|
|
2422
2453
|
},
|
|
2423
|
-
[
|
|
2424
|
-
),
|
|
2425
|
-
return /* @__PURE__ */
|
|
2454
|
+
[n, t, e.value]
|
|
2455
|
+
), l = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", m = t?.firstFocusableValue === e.value, h = n ? -1 : m ? 0 : -1;
|
|
2456
|
+
return /* @__PURE__ */ d(
|
|
2426
2457
|
"button",
|
|
2427
2458
|
{
|
|
2428
2459
|
ref: (u) => t?.registerRef(e.value, u),
|
|
2429
2460
|
type: "button",
|
|
2430
2461
|
role: "radio",
|
|
2431
|
-
"aria-checked":
|
|
2462
|
+
"aria-checked": a,
|
|
2432
2463
|
className: "gloss-preset-swatch-row__swatch",
|
|
2433
|
-
style: { backgroundColor:
|
|
2434
|
-
"data-selected":
|
|
2435
|
-
"data-disabled":
|
|
2436
|
-
...process.env.NODE_ENV === "test" ? { "data-bg-color":
|
|
2464
|
+
style: { backgroundColor: l },
|
|
2465
|
+
"data-selected": a || void 0,
|
|
2466
|
+
"data-disabled": n || void 0,
|
|
2467
|
+
...process.env.NODE_ENV === "test" ? { "data-bg-color": l } : {},
|
|
2437
2468
|
"aria-label": e.label ?? e.value,
|
|
2438
|
-
"aria-disabled":
|
|
2439
|
-
disabled:
|
|
2469
|
+
"aria-disabled": n,
|
|
2470
|
+
disabled: n,
|
|
2440
2471
|
tabIndex: h,
|
|
2441
|
-
onClick:
|
|
2472
|
+
onClick: s,
|
|
2442
2473
|
onKeyDown: o
|
|
2443
2474
|
}
|
|
2444
2475
|
);
|
|
2445
2476
|
}
|
|
2446
|
-
function
|
|
2477
|
+
function Ut({
|
|
2447
2478
|
swatches: e,
|
|
2448
2479
|
value: t,
|
|
2449
|
-
defaultValue:
|
|
2450
|
-
onChange:
|
|
2451
|
-
disabled:
|
|
2480
|
+
defaultValue: a,
|
|
2481
|
+
onChange: n,
|
|
2482
|
+
disabled: s = !1,
|
|
2452
2483
|
name: o
|
|
2453
2484
|
}) {
|
|
2454
|
-
const
|
|
2455
|
-
(
|
|
2456
|
-
|
|
2485
|
+
const l = t !== void 0, [m, h] = K(a), u = l ? t : m, D = f(
|
|
2486
|
+
(C) => {
|
|
2487
|
+
l || h(C), n?.(C);
|
|
2457
2488
|
},
|
|
2458
|
-
[
|
|
2459
|
-
),
|
|
2460
|
-
(
|
|
2489
|
+
[l, n]
|
|
2490
|
+
), v = f(
|
|
2491
|
+
(C) => u === C,
|
|
2461
2492
|
[u]
|
|
2462
|
-
),
|
|
2463
|
-
|
|
2464
|
-
}, []),
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2467
|
-
}, []),
|
|
2468
|
-
(
|
|
2469
|
-
if (
|
|
2470
|
-
const
|
|
2471
|
-
if (
|
|
2472
|
-
const
|
|
2473
|
-
if (
|
|
2474
|
-
let
|
|
2475
|
-
switch (
|
|
2493
|
+
), i = P(/* @__PURE__ */ new Map()), c = f((C, _) => {
|
|
2494
|
+
_ ? i.current.set(C, _) : i.current.delete(C);
|
|
2495
|
+
}, []), y = e.filter((C) => !C.disabled && !s), I = y.find((C) => C.value === u)?.value ?? y[0]?.value, p = f((C) => {
|
|
2496
|
+
const _ = i.current.get(C);
|
|
2497
|
+
_ && _.focus();
|
|
2498
|
+
}, []), T = f(
|
|
2499
|
+
(C, _) => {
|
|
2500
|
+
if (s) return;
|
|
2501
|
+
const N = e.filter((x) => !x.disabled);
|
|
2502
|
+
if (N.length === 0) return;
|
|
2503
|
+
const r = N.findIndex((x) => x.value === _);
|
|
2504
|
+
if (r === -1) return;
|
|
2505
|
+
let g = r;
|
|
2506
|
+
switch (C.key) {
|
|
2476
2507
|
case "ArrowRight":
|
|
2477
2508
|
case "ArrowDown":
|
|
2478
|
-
|
|
2509
|
+
g = (r + 1) % N.length;
|
|
2479
2510
|
break;
|
|
2480
2511
|
case "ArrowLeft":
|
|
2481
2512
|
case "ArrowUp":
|
|
2482
|
-
|
|
2513
|
+
g = (r - 1 + N.length) % N.length;
|
|
2483
2514
|
break;
|
|
2484
2515
|
case "Home":
|
|
2485
|
-
|
|
2516
|
+
g = 0;
|
|
2486
2517
|
break;
|
|
2487
2518
|
case "End":
|
|
2488
|
-
|
|
2519
|
+
g = N.length - 1;
|
|
2489
2520
|
break;
|
|
2490
2521
|
case " ":
|
|
2491
2522
|
case "Enter":
|
|
2492
|
-
|
|
2523
|
+
C.preventDefault(), D(_);
|
|
2493
2524
|
return;
|
|
2494
2525
|
default:
|
|
2495
2526
|
return;
|
|
2496
2527
|
}
|
|
2497
|
-
|
|
2498
|
-
const
|
|
2499
|
-
|
|
2528
|
+
C.preventDefault();
|
|
2529
|
+
const b = N[g].value;
|
|
2530
|
+
p(b), D(b);
|
|
2500
2531
|
},
|
|
2501
|
-
[
|
|
2502
|
-
),
|
|
2532
|
+
[s, e, D, p]
|
|
2533
|
+
), R = {
|
|
2503
2534
|
selectedValue: u,
|
|
2504
|
-
select:
|
|
2505
|
-
isSelected:
|
|
2506
|
-
groupDisabled:
|
|
2535
|
+
select: D,
|
|
2536
|
+
isSelected: v,
|
|
2537
|
+
groupDisabled: s,
|
|
2507
2538
|
name: o,
|
|
2508
|
-
registerRef:
|
|
2539
|
+
registerRef: c,
|
|
2509
2540
|
firstFocusableValue: I,
|
|
2510
|
-
onKeyNav:
|
|
2541
|
+
onKeyNav: T
|
|
2511
2542
|
};
|
|
2512
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ d(Fe.Provider, { value: R, children: /* @__PURE__ */ d(
|
|
2513
2544
|
"div",
|
|
2514
2545
|
{
|
|
2515
2546
|
className: "gloss-preset-swatch-row",
|
|
2516
2547
|
role: "radiogroup",
|
|
2517
2548
|
"aria-label": o,
|
|
2518
|
-
"aria-disabled":
|
|
2519
|
-
"data-disabled":
|
|
2520
|
-
children: e.map((
|
|
2549
|
+
"aria-disabled": s,
|
|
2550
|
+
"data-disabled": s || void 0,
|
|
2551
|
+
children: e.map((C) => /* @__PURE__ */ d(Zt, { option: C }, C.value))
|
|
2521
2552
|
}
|
|
2522
2553
|
) });
|
|
2523
2554
|
}
|
|
2524
|
-
|
|
2525
|
-
function
|
|
2526
|
-
for (const
|
|
2527
|
-
if (
|
|
2528
|
-
return
|
|
2555
|
+
Ut.displayName = "PresetSwatchRow";
|
|
2556
|
+
function be(e, t) {
|
|
2557
|
+
for (const a of e)
|
|
2558
|
+
if (a.items.some((n) => n.id === t))
|
|
2559
|
+
return a.zoneKey;
|
|
2529
2560
|
return null;
|
|
2530
2561
|
}
|
|
2531
|
-
function
|
|
2532
|
-
const
|
|
2533
|
-
return
|
|
2562
|
+
function xe(e, t) {
|
|
2563
|
+
const a = e.find((n) => n.zoneKey === t);
|
|
2564
|
+
return a ? a.zoneKey : be(e, t);
|
|
2534
2565
|
}
|
|
2535
|
-
function
|
|
2536
|
-
const
|
|
2537
|
-
return
|
|
2566
|
+
function Yt(e, t, a) {
|
|
2567
|
+
const n = [...e], [s] = n.splice(t, 1);
|
|
2568
|
+
return n.splice(a, 0, s), n;
|
|
2538
2569
|
}
|
|
2539
|
-
function
|
|
2540
|
-
return e.map((t) => `${t.zoneKey}:${t.items.map((
|
|
2570
|
+
function qt(e) {
|
|
2571
|
+
return e.map((t) => `${t.zoneKey}:${t.items.map((a) => a.id).join(",")}`).join("|");
|
|
2541
2572
|
}
|
|
2542
|
-
function
|
|
2543
|
-
const [t,
|
|
2544
|
-
() => e.zones.map((
|
|
2545
|
-
`useSortableZones: zone "${
|
|
2546
|
-
), { ...
|
|
2547
|
-
), [
|
|
2573
|
+
function jt(e) {
|
|
2574
|
+
const [t, a] = K(
|
|
2575
|
+
() => e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2576
|
+
`useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
|
|
2577
|
+
), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
|
|
2578
|
+
), [n, s] = K(null), [o, l] = K(null), m = P(null), h = P(e.onZoneChange);
|
|
2548
2579
|
h.current = e.onZoneChange;
|
|
2549
|
-
const u =
|
|
2550
|
-
() =>
|
|
2580
|
+
const u = ne(
|
|
2581
|
+
() => qt(e.zones),
|
|
2551
2582
|
[e.zones]
|
|
2552
|
-
),
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
e.zones.map((
|
|
2556
|
-
`useSortableZones: zone "${
|
|
2557
|
-
), { ...
|
|
2583
|
+
), D = P(u);
|
|
2584
|
+
L(() => {
|
|
2585
|
+
D.current !== u && (D.current = u, !n && a(
|
|
2586
|
+
e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2587
|
+
`useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
|
|
2588
|
+
), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
|
|
2558
2589
|
));
|
|
2559
|
-
}, [u, e.zones,
|
|
2560
|
-
const
|
|
2561
|
-
(
|
|
2562
|
-
const
|
|
2563
|
-
let
|
|
2564
|
-
for (const
|
|
2565
|
-
const
|
|
2566
|
-
if (
|
|
2567
|
-
|
|
2590
|
+
}, [u, e.zones, n]);
|
|
2591
|
+
const v = f(
|
|
2592
|
+
(p) => {
|
|
2593
|
+
const T = p.active.id;
|
|
2594
|
+
let R = null, C = null;
|
|
2595
|
+
for (const _ of t) {
|
|
2596
|
+
const N = _.items.find((r) => r.id === T);
|
|
2597
|
+
if (N) {
|
|
2598
|
+
R = N, C = _.zoneKey;
|
|
2568
2599
|
break;
|
|
2569
2600
|
}
|
|
2570
2601
|
}
|
|
2571
|
-
|
|
2602
|
+
m.current = C, s(R), l(C);
|
|
2572
2603
|
},
|
|
2573
2604
|
[t]
|
|
2574
|
-
),
|
|
2575
|
-
(
|
|
2576
|
-
if (!
|
|
2577
|
-
|
|
2605
|
+
), i = f(
|
|
2606
|
+
(p) => {
|
|
2607
|
+
if (!p.over) {
|
|
2608
|
+
l(m.current);
|
|
2578
2609
|
return;
|
|
2579
2610
|
}
|
|
2580
|
-
const
|
|
2581
|
-
|
|
2611
|
+
const T = xe(t, p.over.id);
|
|
2612
|
+
l(T);
|
|
2582
2613
|
},
|
|
2583
2614
|
[t]
|
|
2584
|
-
),
|
|
2585
|
-
(
|
|
2586
|
-
const { active:
|
|
2587
|
-
|
|
2615
|
+
), c = f(
|
|
2616
|
+
(p) => {
|
|
2617
|
+
const { active: T, over: R } = p, C = () => {
|
|
2618
|
+
m.current = null, s(null), l(null);
|
|
2588
2619
|
};
|
|
2589
|
-
if (!
|
|
2590
|
-
|
|
2620
|
+
if (!R) {
|
|
2621
|
+
C();
|
|
2591
2622
|
return;
|
|
2592
2623
|
}
|
|
2593
|
-
const
|
|
2594
|
-
if (!
|
|
2595
|
-
|
|
2624
|
+
const _ = be(t, T.id), N = xe(t, R.id);
|
|
2625
|
+
if (!_ || !N) {
|
|
2626
|
+
C();
|
|
2596
2627
|
return;
|
|
2597
2628
|
}
|
|
2598
|
-
let
|
|
2599
|
-
if (
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2602
|
-
...
|
|
2603
|
-
items:
|
|
2629
|
+
let r = t.map((g) => ({ ...g, items: [...g.items] }));
|
|
2630
|
+
if (_ === N) {
|
|
2631
|
+
const g = r.findIndex((S) => S.zoneKey === _), b = r[g], x = b.items.findIndex((S) => S.id === T.id), k = b.items.findIndex((S) => S.id === R.id), M = k >= 0 ? k : Math.max(0, b.items.length - 1);
|
|
2632
|
+
r[g] = {
|
|
2633
|
+
...b,
|
|
2634
|
+
items: Yt(b.items, x, M)
|
|
2604
2635
|
};
|
|
2605
2636
|
} else {
|
|
2606
|
-
const
|
|
2607
|
-
if (!
|
|
2608
|
-
|
|
2637
|
+
const g = r.findIndex((B) => B.zoneKey === _), b = r.findIndex((B) => B.zoneKey === N), x = r[g], k = r[b], M = x.items.find((B) => B.id === T.id);
|
|
2638
|
+
if (!M) {
|
|
2639
|
+
C();
|
|
2609
2640
|
return;
|
|
2610
2641
|
}
|
|
2611
|
-
const
|
|
2612
|
-
let
|
|
2613
|
-
if (
|
|
2614
|
-
const
|
|
2615
|
-
V = V.slice(0,
|
|
2642
|
+
const S = x.items.filter((B) => B.id !== T.id), $ = k.items.findIndex((B) => B.id === R.id), G = $ >= 0 ? $ : k.items.length;
|
|
2643
|
+
let X = S, V = [...k.items];
|
|
2644
|
+
if (k.maxItems !== void 0 && V.length >= k.maxItems) {
|
|
2645
|
+
const B = V[V.length - 1];
|
|
2646
|
+
V = V.slice(0, k.maxItems - 1), X = [...S, B];
|
|
2616
2647
|
}
|
|
2617
|
-
const
|
|
2618
|
-
...V.slice(0,
|
|
2619
|
-
|
|
2620
|
-
...V.slice(
|
|
2648
|
+
const Z = Math.min(G, V.length), oe = [
|
|
2649
|
+
...V.slice(0, Z),
|
|
2650
|
+
M,
|
|
2651
|
+
...V.slice(Z)
|
|
2621
2652
|
];
|
|
2622
|
-
|
|
2653
|
+
r[g] = { ...x, items: X }, r[b] = { ...k, items: oe };
|
|
2623
2654
|
}
|
|
2624
|
-
|
|
2655
|
+
a(r), h.current?.(r), C();
|
|
2625
2656
|
},
|
|
2626
2657
|
[t]
|
|
2627
|
-
),
|
|
2628
|
-
(
|
|
2629
|
-
id:
|
|
2630
|
-
"data-zone-key":
|
|
2658
|
+
), y = f(
|
|
2659
|
+
(p) => ({
|
|
2660
|
+
id: p,
|
|
2661
|
+
"data-zone-key": p
|
|
2631
2662
|
}),
|
|
2632
2663
|
[]
|
|
2633
|
-
), I =
|
|
2634
|
-
(
|
|
2635
|
-
const
|
|
2664
|
+
), I = f(
|
|
2665
|
+
(p) => {
|
|
2666
|
+
const T = be(t, p.id) ?? "";
|
|
2636
2667
|
return {
|
|
2637
|
-
id:
|
|
2638
|
-
"data-item-id":
|
|
2639
|
-
"data-zone-key":
|
|
2668
|
+
id: p.id,
|
|
2669
|
+
"data-item-id": p.id,
|
|
2670
|
+
"data-zone-key": T
|
|
2640
2671
|
};
|
|
2641
2672
|
},
|
|
2642
2673
|
[t]
|
|
@@ -2644,16 +2675,16 @@ function Kt(e) {
|
|
|
2644
2675
|
return {
|
|
2645
2676
|
zones: t,
|
|
2646
2677
|
activeZone: o,
|
|
2647
|
-
activeItem:
|
|
2648
|
-
getZoneProps:
|
|
2678
|
+
activeItem: n,
|
|
2679
|
+
getZoneProps: y,
|
|
2649
2680
|
getItemProps: I,
|
|
2650
|
-
handleDragStart:
|
|
2651
|
-
handleDragOver:
|
|
2652
|
-
handleDragEnd:
|
|
2681
|
+
handleDragStart: v,
|
|
2682
|
+
handleDragOver: i,
|
|
2683
|
+
handleDragEnd: c
|
|
2653
2684
|
};
|
|
2654
2685
|
}
|
|
2655
|
-
let
|
|
2656
|
-
const
|
|
2686
|
+
let ee = null, re = null, me = !1;
|
|
2687
|
+
const Xt = [
|
|
2657
2688
|
"DndContext",
|
|
2658
2689
|
"DragOverlay",
|
|
2659
2690
|
"useSensors",
|
|
@@ -2662,433 +2693,433 @@ const Gt = [
|
|
|
2662
2693
|
"PointerSensor",
|
|
2663
2694
|
"KeyboardSensor",
|
|
2664
2695
|
"closestCenter"
|
|
2665
|
-
],
|
|
2696
|
+
], Qt = [
|
|
2666
2697
|
"SortableContext",
|
|
2667
2698
|
"useSortable",
|
|
2668
2699
|
"verticalListSortingStrategy"
|
|
2669
2700
|
];
|
|
2670
|
-
function
|
|
2671
|
-
const
|
|
2672
|
-
for (const o of
|
|
2673
|
-
|
|
2674
|
-
const
|
|
2675
|
-
for (const o of
|
|
2676
|
-
|
|
2677
|
-
return
|
|
2701
|
+
function Jt(e, t) {
|
|
2702
|
+
const a = [], n = e ?? {};
|
|
2703
|
+
for (const o of Xt)
|
|
2704
|
+
n[o] === void 0 && a.push(`@dnd-kit/core:${o}`);
|
|
2705
|
+
const s = t ?? {};
|
|
2706
|
+
for (const o of Qt)
|
|
2707
|
+
s[o] === void 0 && a.push(`@dnd-kit/sortable:${o}`);
|
|
2708
|
+
return a.length === 0 ? { ok: !0 } : { ok: !1, missing: a };
|
|
2678
2709
|
}
|
|
2679
|
-
function
|
|
2680
|
-
return
|
|
2710
|
+
function en() {
|
|
2711
|
+
return ee ? Promise.resolve(ee) : me ? Promise.resolve(null) : re || (re = (async () => {
|
|
2681
2712
|
try {
|
|
2682
|
-
const [e, t,
|
|
2713
|
+
const [e, t, a] = await Promise.all([
|
|
2683
2714
|
import("@dnd-kit/core"),
|
|
2684
2715
|
import("@dnd-kit/sortable"),
|
|
2685
2716
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
2686
2717
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
2687
2718
|
), {}))
|
|
2688
|
-
]),
|
|
2689
|
-
return
|
|
2719
|
+
]), n = Jt(e, t);
|
|
2720
|
+
return n.ok ? (ee = {
|
|
2690
2721
|
core: e,
|
|
2691
2722
|
sortable: t,
|
|
2692
|
-
utilities:
|
|
2693
|
-
},
|
|
2694
|
-
`SortableZones: @dnd-kit shape mismatch — missing exports: ${
|
|
2723
|
+
utilities: a
|
|
2724
|
+
}, ee) : (me = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
2725
|
+
`SortableZones: @dnd-kit shape mismatch — missing exports: ${n.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
2695
2726
|
), null);
|
|
2696
2727
|
} catch {
|
|
2697
|
-
return
|
|
2728
|
+
return me = !0, null;
|
|
2698
2729
|
}
|
|
2699
|
-
})(),
|
|
2730
|
+
})(), re);
|
|
2700
2731
|
}
|
|
2701
|
-
function
|
|
2702
|
-
const { zones: t, onZoneChange:
|
|
2703
|
-
return
|
|
2704
|
-
if (
|
|
2732
|
+
function tn(e) {
|
|
2733
|
+
const { zones: t, onZoneChange: a, renderZone: n, renderItem: s, renderDragOverlay: o } = e, l = jt({ zones: t, onZoneChange: a }), [m, h] = W.useState(ee);
|
|
2734
|
+
return W.useEffect(() => {
|
|
2735
|
+
if (m) return;
|
|
2705
2736
|
let u = !0;
|
|
2706
|
-
return
|
|
2707
|
-
u && h(
|
|
2737
|
+
return en().then((D) => {
|
|
2738
|
+
u && h(D);
|
|
2708
2739
|
}), () => {
|
|
2709
2740
|
u = !1;
|
|
2710
2741
|
};
|
|
2711
|
-
}, [
|
|
2712
|
-
|
|
2742
|
+
}, [m]), m ? /* @__PURE__ */ d(
|
|
2743
|
+
Ee,
|
|
2713
2744
|
{
|
|
2714
|
-
state:
|
|
2715
|
-
modules:
|
|
2716
|
-
renderZone:
|
|
2717
|
-
renderItem:
|
|
2745
|
+
state: l,
|
|
2746
|
+
modules: m,
|
|
2747
|
+
renderZone: n,
|
|
2748
|
+
renderItem: s,
|
|
2718
2749
|
renderDragOverlay: o
|
|
2719
2750
|
}
|
|
2720
|
-
) : /* @__PURE__ */
|
|
2721
|
-
const
|
|
2722
|
-
return /* @__PURE__ */
|
|
2751
|
+
) : /* @__PURE__ */ d("div", { "data-sortable-zones-passive": "true", children: l.zones.map((u) => {
|
|
2752
|
+
const D = u.items.map((v) => /* @__PURE__ */ d(W.Fragment, { children: s(v) }, v.id));
|
|
2753
|
+
return /* @__PURE__ */ d("div", { ...l.getZoneProps(u.zoneKey), children: n(u.zoneKey, u.items, D) }, u.zoneKey);
|
|
2723
2754
|
}) });
|
|
2724
2755
|
}
|
|
2725
|
-
|
|
2726
|
-
function
|
|
2756
|
+
tn.displayName = "SortableZones";
|
|
2757
|
+
function Ee({
|
|
2727
2758
|
state: e,
|
|
2728
2759
|
modules: t,
|
|
2729
|
-
renderZone:
|
|
2730
|
-
renderItem:
|
|
2731
|
-
renderDragOverlay:
|
|
2760
|
+
renderZone: a,
|
|
2761
|
+
renderItem: n,
|
|
2762
|
+
renderDragOverlay: s
|
|
2732
2763
|
}) {
|
|
2733
|
-
const { core: o, sortable:
|
|
2734
|
-
|
|
2735
|
-
y
|
|
2736
|
-
),
|
|
2737
|
-
return /* @__PURE__ */
|
|
2738
|
-
|
|
2764
|
+
const { core: o, sortable: l, utilities: m } = t, { DndContext: h, DragOverlay: u, useSensors: D, useSensor: v, useDroppable: i, PointerSensor: c, KeyboardSensor: y, closestCenter: I } = o, { SortableContext: p, verticalListSortingStrategy: T } = l, R = D(
|
|
2765
|
+
v(c, { activationConstraint: { distance: 5 } }),
|
|
2766
|
+
v(y)
|
|
2767
|
+
), C = h, _ = u, N = p;
|
|
2768
|
+
return /* @__PURE__ */ O(
|
|
2769
|
+
C,
|
|
2739
2770
|
{
|
|
2740
|
-
sensors:
|
|
2771
|
+
sensors: R,
|
|
2741
2772
|
collisionDetection: I,
|
|
2742
2773
|
onDragStart: e.handleDragStart,
|
|
2743
2774
|
onDragOver: e.handleDragOver,
|
|
2744
2775
|
onDragEnd: e.handleDragEnd,
|
|
2745
2776
|
children: [
|
|
2746
|
-
e.zones.map((
|
|
2747
|
-
const
|
|
2748
|
-
|
|
2777
|
+
e.zones.map((r) => {
|
|
2778
|
+
const g = r.items.map((x) => x.id), b = r.items.map((x) => /* @__PURE__ */ d(
|
|
2779
|
+
Oe,
|
|
2749
2780
|
{
|
|
2750
|
-
id:
|
|
2751
|
-
useSortable:
|
|
2752
|
-
cssHelper:
|
|
2753
|
-
children:
|
|
2781
|
+
id: x.id,
|
|
2782
|
+
useSortable: l.useSortable,
|
|
2783
|
+
cssHelper: m.CSS,
|
|
2784
|
+
children: n(x)
|
|
2754
2785
|
},
|
|
2755
|
-
|
|
2786
|
+
x.id
|
|
2756
2787
|
));
|
|
2757
|
-
return /* @__PURE__ */
|
|
2758
|
-
|
|
2788
|
+
return /* @__PURE__ */ d(
|
|
2789
|
+
Ae,
|
|
2759
2790
|
{
|
|
2760
|
-
zoneKey:
|
|
2761
|
-
zoneProps: e.getZoneProps(
|
|
2762
|
-
useDroppable:
|
|
2763
|
-
children: /* @__PURE__ */
|
|
2791
|
+
zoneKey: r.zoneKey,
|
|
2792
|
+
zoneProps: e.getZoneProps(r.zoneKey),
|
|
2793
|
+
useDroppable: i,
|
|
2794
|
+
children: /* @__PURE__ */ d(N, { items: g, strategy: T, children: a(r.zoneKey, r.items, b) })
|
|
2764
2795
|
},
|
|
2765
|
-
|
|
2796
|
+
r.zoneKey
|
|
2766
2797
|
);
|
|
2767
2798
|
}),
|
|
2768
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ d(_, { children: e.activeItem ? s?.(e.activeItem) ?? n(e.activeItem) : null })
|
|
2769
2800
|
]
|
|
2770
2801
|
}
|
|
2771
2802
|
);
|
|
2772
2803
|
}
|
|
2773
|
-
|
|
2774
|
-
function
|
|
2775
|
-
const { attributes:
|
|
2776
|
-
transform:
|
|
2804
|
+
Ee.displayName = "SortableZonesInner";
|
|
2805
|
+
function Oe({ id: e, useSortable: t, cssHelper: a, children: n }) {
|
|
2806
|
+
const { attributes: s, listeners: o, setNodeRef: l, transform: m, transition: h, isDragging: u } = t({ id: e }), D = {
|
|
2807
|
+
transform: a?.Transform?.toString(m) ?? void 0,
|
|
2777
2808
|
transition: h,
|
|
2778
2809
|
opacity: u ? 0.5 : 1
|
|
2779
2810
|
};
|
|
2780
|
-
return /* @__PURE__ */
|
|
2811
|
+
return /* @__PURE__ */ d("div", { ref: l, style: D, "data-sortable-item-id": e, ...s, ...o, children: n });
|
|
2781
2812
|
}
|
|
2782
|
-
|
|
2783
|
-
function
|
|
2813
|
+
Oe.displayName = "SortableItem";
|
|
2814
|
+
function Ae({
|
|
2784
2815
|
zoneKey: e,
|
|
2785
2816
|
zoneProps: t,
|
|
2786
|
-
useDroppable:
|
|
2787
|
-
children:
|
|
2817
|
+
useDroppable: a,
|
|
2818
|
+
children: n
|
|
2788
2819
|
}) {
|
|
2789
|
-
const { setNodeRef:
|
|
2790
|
-
return /* @__PURE__ */
|
|
2820
|
+
const { setNodeRef: s, isOver: o } = a({ id: e });
|
|
2821
|
+
return /* @__PURE__ */ d("div", { ref: s, "data-zone-is-over": o || void 0, ...t, children: n });
|
|
2791
2822
|
}
|
|
2792
|
-
|
|
2793
|
-
const
|
|
2794
|
-
const
|
|
2795
|
-
return delete
|
|
2823
|
+
Ae.displayName = "ZoneDroppable";
|
|
2824
|
+
const nn = W.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
|
|
2825
|
+
const s = { ...a };
|
|
2826
|
+
return delete s.className, delete s.style, /* @__PURE__ */ d("div", { ref: n, className: "gloss-container-toolbar", role: "toolbar", ...s, children: /* @__PURE__ */ d(ve, { region: "toolbar", density: e, children: t }) });
|
|
2796
2827
|
});
|
|
2797
|
-
|
|
2798
|
-
const
|
|
2799
|
-
const
|
|
2800
|
-
return delete
|
|
2801
|
-
e && /* @__PURE__ */
|
|
2802
|
-
t && /* @__PURE__ */
|
|
2803
|
-
/* @__PURE__ */
|
|
2828
|
+
nn.displayName = "ContainerToolbar";
|
|
2829
|
+
const an = W.forwardRef(({ legend: e, description: t, density: a = "default", children: n, ...s }, o) => {
|
|
2830
|
+
const l = { ...s };
|
|
2831
|
+
return delete l.className, delete l.style, /* @__PURE__ */ O("fieldset", { ref: o, className: "gloss-container-form-section", ...l, children: [
|
|
2832
|
+
e && /* @__PURE__ */ d("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
2833
|
+
t && /* @__PURE__ */ d("p", { className: "gloss-container-form-section__description", children: t }),
|
|
2834
|
+
/* @__PURE__ */ d(ve, { region: "form-section", density: a, children: n })
|
|
2804
2835
|
] });
|
|
2805
2836
|
});
|
|
2806
|
-
|
|
2807
|
-
const
|
|
2808
|
-
const
|
|
2809
|
-
return delete
|
|
2837
|
+
an.displayName = "ContainerFormSection";
|
|
2838
|
+
const rn = W.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
|
|
2839
|
+
const s = { ...a };
|
|
2840
|
+
return delete s.className, delete s.style, /* @__PURE__ */ d("div", { ref: n, className: "gloss-container-table", ...s, children: /* @__PURE__ */ d(ve, { region: "table", density: e, children: t }) });
|
|
2810
2841
|
});
|
|
2811
|
-
|
|
2842
|
+
rn.displayName = "ContainerTable";
|
|
2812
2843
|
export {
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2844
|
+
ca as Accordion,
|
|
2845
|
+
da as AccordionContent,
|
|
2846
|
+
ua as AccordionItem,
|
|
2847
|
+
ma as AccordionTrigger,
|
|
2848
|
+
pa as ActionStrip,
|
|
2849
|
+
ga as Actionable,
|
|
2850
|
+
fa as AddressGroup,
|
|
2851
|
+
ha as AddressSelect,
|
|
2852
|
+
ba as AsyncLoader,
|
|
2853
|
+
va as Autocomplete,
|
|
2854
|
+
ya as Badge,
|
|
2855
|
+
wa as BarChartCard,
|
|
2856
|
+
Da as BarsBg,
|
|
2857
|
+
Ca as Button,
|
|
2858
|
+
Na as ButtonGroup,
|
|
2859
|
+
ka as ButtonGroupContext,
|
|
2860
|
+
xa as Card,
|
|
2861
|
+
Sa as CardActions,
|
|
2862
|
+
Ta as CardBack,
|
|
2863
|
+
_a as CardBody,
|
|
2864
|
+
Ia as CardFooter,
|
|
2865
|
+
Ra as CardHeader,
|
|
2866
|
+
Ma as CardMedia,
|
|
2867
|
+
Pa as CardShell,
|
|
2868
|
+
Fa as CardSubtitle,
|
|
2869
|
+
Ea as CardTitle,
|
|
2870
|
+
Oa as ChartControlBar,
|
|
2871
|
+
Aa as Checkbox,
|
|
2872
|
+
La as CheckboxGroup,
|
|
2873
|
+
$a as Chip,
|
|
2874
|
+
Ba as ColorPicker,
|
|
2875
|
+
Ka as ComparisonCard,
|
|
2876
|
+
Wa as ContactForm,
|
|
2877
|
+
Ga as ContainerCard,
|
|
2878
|
+
Ha as ContainerCardActions,
|
|
2879
|
+
Va as ContainerCardBody,
|
|
2880
|
+
za as ContainerCardFooter,
|
|
2881
|
+
Za as ContainerCardHeader,
|
|
2882
|
+
Ua as ContainerCardMedia,
|
|
2883
|
+
Ya as ContainerCardSubtitle,
|
|
2884
|
+
qa as ContainerCardTitle,
|
|
2885
|
+
ja as ContainerDialog,
|
|
2886
|
+
Xa as ContainerDialogActions,
|
|
2887
|
+
Qa as ContainerDialogBody,
|
|
2888
|
+
Ja as ContainerDialogHeader,
|
|
2889
|
+
an as ContainerFormSection,
|
|
2890
|
+
er as ContainerPanel,
|
|
2891
|
+
rn as ContainerTable,
|
|
2892
|
+
nn as ContainerToolbar,
|
|
2893
|
+
tr as CreditCardForm,
|
|
2894
|
+
nr as DEFAULT_FOOTER_IDS,
|
|
2895
|
+
Mo as DEFAULT_MARKET_PRESETS,
|
|
2896
|
+
ar as DEFAULT_OVERFLOW_IDS,
|
|
2897
|
+
Po as DEFAULT_PINNED,
|
|
2898
|
+
Te as DEFAULT_RESIZE_PHYSICS,
|
|
2899
|
+
rr as DataTable,
|
|
2900
|
+
sr as DatePicker,
|
|
2901
|
+
or as DateRangePicker,
|
|
2902
|
+
ir as DestructiveModal,
|
|
2903
|
+
Bt as DevTuningPanel,
|
|
2904
|
+
lr as DirectionCard,
|
|
2905
|
+
cr as Dismissible,
|
|
2906
|
+
dr as DistributionCard,
|
|
2907
|
+
ur as DonutChart,
|
|
2908
|
+
mr as Dropdown,
|
|
2909
|
+
pr as ENTITY_FILTER_KEYS,
|
|
2910
|
+
gr as ENTITY_PROFILE_ROUTES,
|
|
2911
|
+
fr as ENTITY_TYPE_PLURAL,
|
|
2912
|
+
ct as EdgeHoverHandle,
|
|
2913
|
+
hr as EntityPicker,
|
|
2914
|
+
br as EntitySearchPanel,
|
|
2915
|
+
vr as Expandable,
|
|
2916
|
+
yr as ExpandableChip,
|
|
2917
|
+
wr as FLIP_AND_STAGE_TIMINGS,
|
|
2918
|
+
Dr as FileUpload,
|
|
2919
|
+
Cr as FilterChip,
|
|
2920
|
+
Nr as FilterInput,
|
|
2921
|
+
kr as FlipAndStageProvider,
|
|
2922
|
+
xr as Form,
|
|
2923
|
+
Sr as FormDialog,
|
|
2924
|
+
Tr as FormField,
|
|
2925
|
+
_r as FusedShape,
|
|
2926
|
+
dt as GhostPreview,
|
|
2927
|
+
Ir as GroupCheckbox,
|
|
2928
|
+
Rr as GroupRadio,
|
|
2929
|
+
Mr as HighlightCard,
|
|
2930
|
+
Pr as HybridDatePicker,
|
|
2931
|
+
Fr as ImportWizard,
|
|
2932
|
+
Wt as InlineNudge,
|
|
2933
|
+
Er as Input,
|
|
2934
|
+
Or as InputAddon,
|
|
2935
|
+
Ar as InputGroup,
|
|
2936
|
+
Lr as Link,
|
|
2937
|
+
$r as LoginForm,
|
|
2938
|
+
Br as MarketPresetRow,
|
|
2939
|
+
Kr as MaskPresets,
|
|
2940
|
+
Wr as MaskedInput,
|
|
2941
|
+
Gr as Menu,
|
|
2942
|
+
Hr as MenuDivider,
|
|
2943
|
+
Vr as MenuGroup,
|
|
2944
|
+
zr as MenuItem,
|
|
2945
|
+
Zr as MergePrompt,
|
|
2946
|
+
Ur as MetricCard,
|
|
2947
|
+
Yr as MetricCardGrid,
|
|
2948
|
+
Rt as MetricGroupContainer,
|
|
2949
|
+
qr as MiniCalendar,
|
|
2950
|
+
jr as MultiSelect,
|
|
2951
|
+
Xr as NumberInput,
|
|
2952
|
+
Qr as ObjectArrow,
|
|
2953
|
+
Jr as OrderFilterBar,
|
|
2954
|
+
Fo as PERIOD_OPTIONS,
|
|
2955
|
+
vt as PageChip,
|
|
2956
|
+
_e as PageDropdown,
|
|
2957
|
+
es as PasswordInput,
|
|
2958
|
+
ts as PaymentForm,
|
|
2959
|
+
ns as PaymentMethodSelect,
|
|
2960
|
+
as as PhoneInput,
|
|
2961
|
+
rs as PinToMetric,
|
|
2962
|
+
Ut as PresetSwatchRow,
|
|
2963
|
+
ss as ProfileCard,
|
|
2964
|
+
os as ProgressCard,
|
|
2965
|
+
is as QuickConfigPanel,
|
|
2966
|
+
xt as RECONFIG_BACKSIDE_LABELS,
|
|
2967
|
+
Eo as ROLLING_OPTIONS,
|
|
2968
|
+
ls as Radio,
|
|
2969
|
+
cs as RadioGroup,
|
|
2970
|
+
ds as RangeSlider,
|
|
2971
|
+
us as Rating,
|
|
2972
|
+
_t as ReconfigBacksideButtons,
|
|
2973
|
+
ms as RegistrationForm,
|
|
2974
|
+
ps as Row1Controls,
|
|
2975
|
+
gs as Row2FilterTray,
|
|
2976
|
+
fs as SearchInput,
|
|
2977
|
+
hs as SegmentCard,
|
|
2978
|
+
bs as SegmentedControl,
|
|
2979
|
+
vs as Select,
|
|
2980
|
+
ys as Selectable,
|
|
2981
|
+
ws as SimpleMetricCard,
|
|
2982
|
+
Ds as SimpleSelector,
|
|
2983
|
+
Cs as Skeleton,
|
|
2984
|
+
Ns as SkeletonCard,
|
|
2985
|
+
ks as SkeletonChart,
|
|
2986
|
+
xs as SkeletonTable,
|
|
2987
|
+
Ss as Slider,
|
|
2988
|
+
Ts as Sortable,
|
|
2989
|
+
tn as SortableZones,
|
|
2990
|
+
_s as SparklineBg,
|
|
2991
|
+
Is as SplitButton,
|
|
2992
|
+
Rs as StackedGroupCard,
|
|
2993
|
+
Ms as StatusModeCard,
|
|
2994
|
+
lt as StatusSlotChipMenu,
|
|
2995
|
+
Ps as Stepper,
|
|
2996
|
+
Oo as TODAY_PRESET,
|
|
2966
2997
|
Y as TUNING_DEFAULTS,
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
2998
|
+
Pe as TUNING_STORAGE_KEY,
|
|
2999
|
+
Fs as TabGroup,
|
|
3000
|
+
Es as TabbedDataView,
|
|
3001
|
+
Os as TagInput,
|
|
3002
|
+
As as Textarea,
|
|
3003
|
+
Vt as ThresholdRamp,
|
|
3004
|
+
Ls as TimeFrame,
|
|
3005
|
+
$s as TimePicker,
|
|
3006
|
+
Bs as Toggle,
|
|
3007
|
+
Ks as Tooltip,
|
|
3008
|
+
Ws as Transition,
|
|
3009
|
+
Gs as TransitionGroup,
|
|
3010
|
+
Hs as TrendCard,
|
|
3011
|
+
Vs as TrendIndicator,
|
|
3012
|
+
_o as UIContext,
|
|
3013
|
+
ve as UIContextProvider,
|
|
3014
|
+
zs as UnifiedBreakdownTable,
|
|
3015
|
+
Zs as UnifiedContextMenu,
|
|
3016
|
+
ut as VelocityBuffer,
|
|
3017
|
+
Us as addressGroupMetadata,
|
|
3018
|
+
Ys as addressSchema,
|
|
3019
|
+
yn as allChips,
|
|
3020
|
+
Pn as allStateFixtures,
|
|
3021
|
+
Mn as allVariantFixtures,
|
|
3022
|
+
Nn as blockSamples,
|
|
3023
|
+
qs as buildDefaultOverflow,
|
|
3024
|
+
_n as cardSamples,
|
|
3025
|
+
Sn as chartSamples,
|
|
3026
|
+
xn as circleSamples,
|
|
3027
|
+
ea as compactLayout,
|
|
3028
|
+
Hn as compactState,
|
|
3029
|
+
Rn as computeGutterAnchorX,
|
|
3030
|
+
js as contactFormMetadata,
|
|
3031
|
+
Xs as contactSchema,
|
|
3032
|
+
Vn as contextMenuFixtures,
|
|
3033
|
+
Qs as creditCardFormMetadata,
|
|
3034
|
+
Js as creditCardSchema,
|
|
3035
|
+
rt as dateChip,
|
|
3036
|
+
Me as defaultControlBarState,
|
|
3037
|
+
eo as destructiveModalMetadata,
|
|
3038
|
+
to as durations,
|
|
3039
|
+
no as easings,
|
|
3040
|
+
gt as emptyFixture,
|
|
3041
|
+
nt as entityChip,
|
|
3042
|
+
Ct as entityNameActions,
|
|
3043
|
+
Dn as entityTabGroup,
|
|
3044
|
+
pt as errorFixture,
|
|
3045
|
+
Gn as filteredState,
|
|
3046
|
+
Ao as findPreset,
|
|
3047
|
+
Lo as formatDateRange,
|
|
3048
|
+
$o as formatMarketDates,
|
|
3049
|
+
Bo as formatTrend,
|
|
3050
|
+
Ko as formatValue,
|
|
3051
|
+
na as fullLayout,
|
|
3052
|
+
Wo as generateMarketId,
|
|
3053
|
+
ao as generateTabId,
|
|
3054
|
+
Go as getAllPresets,
|
|
3055
|
+
Ho as getDateRangeForPreset,
|
|
3056
|
+
ro as getMenuActions,
|
|
3057
|
+
Vo as getPresetLabel,
|
|
3058
|
+
so as getTransitionStyle,
|
|
3059
|
+
Jn as gridCards,
|
|
3060
|
+
oo as interpolate,
|
|
3061
|
+
zo as isInRange,
|
|
3062
|
+
Zo as isMarketActive,
|
|
3063
|
+
Uo as isSameDay,
|
|
3064
|
+
Wn as itemColumns,
|
|
3065
|
+
Bn as itemRows,
|
|
3066
|
+
mt as loadingFixture,
|
|
3067
|
+
io as loginFormMetadata,
|
|
3068
|
+
lo as loginSchema,
|
|
3069
|
+
st as manufacturerChip,
|
|
3070
|
+
oa as manyTabs,
|
|
3071
|
+
co as mergeHandlers,
|
|
3072
|
+
uo as mergeRefs,
|
|
3073
|
+
wn as metricTabGroup,
|
|
3074
|
+
ra as mixedTabs,
|
|
3075
|
+
Yo as normalizePresetId,
|
|
3076
|
+
kt as numericActions,
|
|
3077
|
+
Kn as orderColumns,
|
|
3078
|
+
Nt as orderIdActions,
|
|
3079
|
+
$n as orderRows,
|
|
3080
|
+
aa as ordersTabs,
|
|
3081
|
+
mo as parseNumericValue,
|
|
3082
|
+
po as paymentFormMetadata,
|
|
3083
|
+
go as paymentSchema,
|
|
3084
|
+
fo as presets,
|
|
3085
|
+
ho as registrationFormMetadata,
|
|
3086
|
+
bo as registrationSchema,
|
|
3087
|
+
Zn as sampleCompareRanges,
|
|
3088
|
+
qn as sampleCustomMarkets,
|
|
3089
|
+
zn as sampleDateRange,
|
|
3090
|
+
jn as sampleMarketPresetData,
|
|
3091
|
+
Yn as sampleMarkets,
|
|
3092
|
+
Qn as samplePeriodPresets,
|
|
3093
|
+
Un as samplePreferences,
|
|
3094
|
+
Xn as samplePresets,
|
|
3095
|
+
sa as singleTab,
|
|
3096
|
+
Fn as sparklineFixture,
|
|
3097
|
+
En as sparklineUpFixture,
|
|
3098
|
+
bt as staleDonutFixture,
|
|
3099
|
+
ft as staleFixture,
|
|
3100
|
+
ht as staleSparklineFixture,
|
|
3101
|
+
On as standardFixture,
|
|
3102
|
+
Ln as standardFlatFixture,
|
|
3103
|
+
ta as standardLayout,
|
|
3104
|
+
An as standardNegativeFixture,
|
|
3105
|
+
at as statusChip,
|
|
3106
|
+
Tn as tableSamples,
|
|
3107
|
+
kn as textSamples,
|
|
3108
|
+
Cn as timeFrameTabGroup,
|
|
3109
|
+
qo as toUppercasePresetId,
|
|
3110
|
+
vn as useArrowNavigation,
|
|
3111
|
+
vo as useCheckboxGroupContext,
|
|
3112
|
+
In as useEdgeHoverResize,
|
|
3113
|
+
yo as useFilterLayout,
|
|
3114
|
+
wo as useFlipAndStage,
|
|
3115
|
+
Do as useFlipAndStageContext,
|
|
3116
|
+
Co as useFlipAndStageContextOptional,
|
|
3117
|
+
bn as useFocusReturn,
|
|
3118
|
+
No as useFocusTrap,
|
|
3119
|
+
ko as useFormContext,
|
|
3120
|
+
xo as useRadioGroupContext,
|
|
3121
|
+
Ft as useResizeTuning,
|
|
3122
|
+
So as useSlideOutReveal,
|
|
3123
|
+
jt as useSortableZones,
|
|
3124
|
+
Io as useUIContext
|
|
3094
3125
|
};
|