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