@mt-gloss/ui 0.0.44 → 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
CHANGED
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { motion as
|
|
5
|
-
import { B as
|
|
6
|
-
import { a as
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
const { enabled: t = !0, returnTo:
|
|
17
|
-
return
|
|
18
|
-
t && (
|
|
19
|
-
}, [t,
|
|
20
|
-
t &&
|
|
21
|
-
|
|
1
|
+
import { N as 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:
|
|
33
|
-
isItemDisabled:
|
|
32
|
+
enabled: l = !0,
|
|
33
|
+
isItemDisabled: m,
|
|
34
34
|
onSelect: h,
|
|
35
35
|
onEscape: u
|
|
36
|
-
} = e, [
|
|
37
|
-
(
|
|
38
|
-
|
|
36
|
+
} = e, [D, v] = $(-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
|
|
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
|
-
),
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
}, [
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}, [
|
|
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
65
|
d(-1);
|
|
66
|
-
}, [d]),
|
|
67
|
-
(
|
|
68
|
-
if (!
|
|
69
|
-
const { key:
|
|
70
|
-
if (
|
|
71
|
-
|
|
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
|
-
if (
|
|
79
|
-
|
|
78
|
+
if (g === "Home") {
|
|
79
|
+
r.preventDefault(), p();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
if (
|
|
83
|
-
|
|
82
|
+
if (g === "End") {
|
|
83
|
+
r.preventDefault(), S();
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
if ((
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
86
|
+
if ((g === "Enter" || g === " ") && i >= 0 && i < t.length) {
|
|
87
|
+
r.preventDefault();
|
|
88
|
+
const M = t[i];
|
|
89
|
+
m?.(M, i) || h?.(M, i);
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
if (
|
|
92
|
+
if (g === "Escape") {
|
|
93
93
|
u?.();
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
[
|
|
98
|
-
i,
|
|
99
|
-
o,
|
|
100
98
|
l,
|
|
99
|
+
o,
|
|
100
|
+
i,
|
|
101
101
|
t,
|
|
102
|
-
|
|
102
|
+
p,
|
|
103
103
|
S,
|
|
104
|
+
R,
|
|
104
105
|
C,
|
|
105
|
-
|
|
106
|
-
p,
|
|
106
|
+
m,
|
|
107
107
|
h,
|
|
108
108
|
u
|
|
109
109
|
]
|
|
110
110
|
);
|
|
111
111
|
return {
|
|
112
|
-
focusedIndex:
|
|
112
|
+
focusedIndex: i,
|
|
113
113
|
setFocusedIndex: d,
|
|
114
|
-
handleKeyDown:
|
|
115
|
-
focusFirst:
|
|
114
|
+
handleKeyDown: k,
|
|
115
|
+
focusFirst: p,
|
|
116
116
|
focusLast: S,
|
|
117
|
-
focusNext:
|
|
118
|
-
focusPrevious:
|
|
119
|
-
resetFocus:
|
|
117
|
+
focusNext: R,
|
|
118
|
+
focusPrevious: C,
|
|
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 re = (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 re = (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 re = (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,64 +220,64 @@ const re = (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 [
|
|
242
|
-
if (!t) return { ...
|
|
241
|
+
const [m, h] = $(null), u = P(null), D = f(() => {
|
|
242
|
+
if (!t) return { ...we, top: 0, left: 0 };
|
|
243
243
|
const d = t.getBoundingClientRect();
|
|
244
244
|
return {
|
|
245
|
-
...
|
|
245
|
+
...we,
|
|
246
246
|
top: d.bottom + 4,
|
|
247
247
|
left: d.left
|
|
248
248
|
};
|
|
249
249
|
}, [t]);
|
|
250
|
-
if (
|
|
250
|
+
if (L(() => {
|
|
251
251
|
if (!e) return;
|
|
252
|
-
const d = (
|
|
253
|
-
|
|
252
|
+
const d = (y) => {
|
|
253
|
+
y.key === "Escape" && l();
|
|
254
254
|
};
|
|
255
255
|
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
256
|
-
}, [e,
|
|
256
|
+
}, [e, l]), L(() => {
|
|
257
257
|
if (!e) return;
|
|
258
|
-
const d = (
|
|
259
|
-
u.current && !u.current.contains(
|
|
258
|
+
const d = (y) => {
|
|
259
|
+
u.current && !u.current.contains(y.target) && l();
|
|
260
260
|
};
|
|
261
261
|
return document.addEventListener("pointerdown", d, !0), () => document.removeEventListener("pointerdown", d, !0);
|
|
262
|
-
}, [e,
|
|
263
|
-
const
|
|
262
|
+
}, [e, l]), !e) return null;
|
|
263
|
+
const v = o && o.length > 0, i = /* @__PURE__ */ O(
|
|
264
264
|
"div",
|
|
265
265
|
{
|
|
266
266
|
ref: u,
|
|
267
|
-
"data-status-chip-menu":
|
|
267
|
+
"data-status-chip-menu": a,
|
|
268
268
|
role: "menu",
|
|
269
269
|
"aria-label": "Status actions",
|
|
270
|
-
style:
|
|
270
|
+
style: D(),
|
|
271
271
|
children: [
|
|
272
272
|
/* @__PURE__ */ c(
|
|
273
273
|
"button",
|
|
274
274
|
{
|
|
275
275
|
role: "menuitem",
|
|
276
|
-
style:
|
|
276
|
+
style: rt(m === "__primary"),
|
|
277
277
|
onMouseEnter: () => h("__primary"),
|
|
278
278
|
onMouseLeave: () => h(null),
|
|
279
279
|
onClick: () => {
|
|
280
|
-
a
|
|
280
|
+
n(a), l();
|
|
281
281
|
},
|
|
282
282
|
children: "Open in table"
|
|
283
283
|
}
|
|
@@ -286,25 +286,25 @@ function Qe({
|
|
|
286
286
|
"button",
|
|
287
287
|
{
|
|
288
288
|
role: "menuitem",
|
|
289
|
-
style:
|
|
289
|
+
style: me(m === "__graph"),
|
|
290
290
|
onMouseEnter: () => h("__graph"),
|
|
291
291
|
onMouseLeave: () => h(null),
|
|
292
292
|
onClick: () => {
|
|
293
|
-
|
|
293
|
+
s(a), l();
|
|
294
294
|
},
|
|
295
295
|
children: "Show on graph"
|
|
296
296
|
}
|
|
297
297
|
),
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
v && /* @__PURE__ */ c("div", { style: st }),
|
|
299
|
+
v && o?.map((d) => /* @__PURE__ */ c(
|
|
300
300
|
"button",
|
|
301
301
|
{
|
|
302
302
|
role: "menuitem",
|
|
303
|
-
style:
|
|
303
|
+
style: me(m === d.id),
|
|
304
304
|
onMouseEnter: () => h(d.id),
|
|
305
305
|
onMouseLeave: () => h(null),
|
|
306
306
|
onClick: () => {
|
|
307
|
-
d.onSelect(
|
|
307
|
+
d.onSelect(a), l();
|
|
308
308
|
},
|
|
309
309
|
children: d.label
|
|
310
310
|
},
|
|
@@ -313,25 +313,25 @@ function Qe({
|
|
|
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
|
-
}, d = (
|
|
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
336
|
return /* @__PURE__ */ c(
|
|
337
337
|
"button",
|
|
@@ -339,33 +339,33 @@ const Je = Fe(
|
|
|
339
339
|
ref: u,
|
|
340
340
|
type: "button",
|
|
341
341
|
"aria-label": h,
|
|
342
|
-
"data-edge":
|
|
342
|
+
"data-edge": m,
|
|
343
343
|
"data-resize-state": t,
|
|
344
344
|
className: [
|
|
345
345
|
"gloss-edge-handle",
|
|
346
|
-
`gloss-edge-handle--${
|
|
347
|
-
|
|
346
|
+
`gloss-edge-handle--${m}`,
|
|
347
|
+
D ? "gloss-edge-handle--visible" : ""
|
|
348
348
|
].filter(Boolean).join(" "),
|
|
349
|
-
onPointerDown:
|
|
350
|
-
onPointerUp:
|
|
351
|
-
onPointerEnter:
|
|
349
|
+
onPointerDown: v,
|
|
350
|
+
onPointerUp: i,
|
|
351
|
+
onPointerEnter: s,
|
|
352
352
|
onPointerLeave: o,
|
|
353
353
|
onKeyDown: d,
|
|
354
|
-
tabIndex:
|
|
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
367
|
return /* @__PURE__ */ c(
|
|
368
|
-
|
|
368
|
+
xe.div,
|
|
369
369
|
{
|
|
370
370
|
"aria-hidden": "true",
|
|
371
371
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -374,12 +374,15 @@ function et({
|
|
|
374
374
|
"gloss-ghost-preview",
|
|
375
375
|
e ? "gloss-ghost-preview--visible" : ""
|
|
376
376
|
].filter(Boolean).join(" "),
|
|
377
|
-
style: {
|
|
377
|
+
style: {
|
|
378
|
+
width: a,
|
|
379
|
+
transitionDuration: `${e ? n : s}ms`
|
|
380
|
+
}
|
|
378
381
|
}
|
|
379
382
|
);
|
|
380
383
|
}
|
|
381
|
-
|
|
382
|
-
class
|
|
384
|
+
lt.displayName = "GhostPreview";
|
|
385
|
+
class dt {
|
|
383
386
|
constructor() {
|
|
384
387
|
this.samples = [], this.capacity = 3;
|
|
385
388
|
}
|
|
@@ -403,14 +406,14 @@ class tt {
|
|
|
403
406
|
const t = this.samples.length;
|
|
404
407
|
if (t < 2) return 0;
|
|
405
408
|
if (t === 2) {
|
|
406
|
-
const [h, u] = this.samples,
|
|
407
|
-
return (u.x - h.x) /
|
|
409
|
+
const [h, u] = this.samples, D = Math.max(1, u.t - h.t);
|
|
410
|
+
return (u.x - h.x) / D * 1e3;
|
|
408
411
|
}
|
|
409
|
-
const [
|
|
410
|
-
return (o * 3 +
|
|
412
|
+
const [a, n, s] = this.samples, o = (s.x - n.x) / Math.max(1, s.t - n.t) * 1e3, l = (n.x - a.x) / Math.max(1, n.t - a.t) * 1e3, m = l;
|
|
413
|
+
return (o * 3 + l * 2 + m * 1) / 6;
|
|
411
414
|
}
|
|
412
415
|
}
|
|
413
|
-
const
|
|
416
|
+
const Se = {
|
|
414
417
|
// Spring (D-08)
|
|
415
418
|
stiffness: 500,
|
|
416
419
|
damping: 35,
|
|
@@ -427,185 +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
|
-
|
|
440
|
-
|
|
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
|
|
441
445
|
}) {
|
|
442
|
-
const [
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, [
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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;
|
|
459
|
+
}, [d]);
|
|
460
|
+
const w = ae(() => ({ ...Se, ...l ?? {} }), [l]), T = f(() => {
|
|
453
461
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
454
|
-
}, []),
|
|
455
|
-
|
|
456
|
-
}, [
|
|
457
|
-
|
|
458
|
-
}, [m]),
|
|
459
|
-
(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
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(
|
|
469
|
+
(N, F, E) => {
|
|
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;
|
|
465
475
|
else break;
|
|
466
476
|
}
|
|
467
|
-
if (
|
|
468
|
-
for (;
|
|
469
|
-
const
|
|
470
|
-
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;
|
|
471
481
|
else break;
|
|
472
482
|
}
|
|
473
|
-
return Math.min(3, Math.max(1,
|
|
483
|
+
return Math.min(3, Math.max(1, E + W));
|
|
474
484
|
},
|
|
475
|
-
[
|
|
476
|
-
),
|
|
485
|
+
[w.snapInFraction, w.snapOutFraction]
|
|
486
|
+
), G = f(
|
|
477
487
|
(N) => {
|
|
478
|
-
|
|
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");
|
|
479
492
|
},
|
|
480
|
-
[
|
|
481
|
-
),
|
|
482
|
-
(N) => (N -
|
|
483
|
-
[
|
|
484
|
-
),
|
|
493
|
+
[s, o, e, r]
|
|
494
|
+
), Q = f(
|
|
495
|
+
(N) => N * R.current + (N - 1) * C.current,
|
|
496
|
+
[]
|
|
497
|
+
), q = f(
|
|
485
498
|
(N, F) => {
|
|
486
|
-
const
|
|
499
|
+
const E = Q(N), A = N !== e;
|
|
487
500
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
488
|
-
|
|
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");
|
|
489
502
|
return;
|
|
490
503
|
}
|
|
491
|
-
const
|
|
492
|
-
|
|
504
|
+
const j = b.current.getWeightedVelocity() * w.velocityMultiplier;
|
|
505
|
+
k.current = "settling", i("settling"), ye(r, E, {
|
|
493
506
|
type: "spring",
|
|
494
|
-
stiffness:
|
|
495
|
-
damping:
|
|
496
|
-
mass:
|
|
497
|
-
velocity:
|
|
507
|
+
stiffness: w.stiffness,
|
|
508
|
+
damping: w.damping,
|
|
509
|
+
mass: w.mass,
|
|
510
|
+
velocity: j,
|
|
498
511
|
onComplete: () => {
|
|
499
|
-
|
|
512
|
+
A && F ? a({ direction: F, targetColSpan: N, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), k.current = "idle", i("idle");
|
|
500
513
|
}
|
|
501
514
|
});
|
|
502
515
|
},
|
|
503
|
-
[
|
|
504
|
-
),
|
|
516
|
+
[Q, e, t, a, n, r, w]
|
|
517
|
+
), B = f(
|
|
505
518
|
(N) => {
|
|
506
|
-
if (
|
|
507
|
-
const F = N.clientX - (
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
|
|
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);
|
|
511
524
|
},
|
|
512
|
-
[
|
|
513
|
-
),
|
|
514
|
-
if (
|
|
525
|
+
[Z, e, q]
|
|
526
|
+
), oe = f(() => {
|
|
527
|
+
if (T(), k.current === "dragging") {
|
|
528
|
+
const N = _.current;
|
|
515
529
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
516
|
-
|
|
530
|
+
r.jump(N), n?.(), r.jump(0), k.current = "idle", i("idle");
|
|
517
531
|
return;
|
|
518
532
|
}
|
|
519
|
-
const
|
|
520
|
-
|
|
533
|
+
const E = b.current.getWeightedVelocity();
|
|
534
|
+
k.current = "settling", i("settling"), ye(r, N, {
|
|
521
535
|
type: "spring",
|
|
522
|
-
stiffness:
|
|
523
|
-
damping:
|
|
524
|
-
mass:
|
|
525
|
-
velocity:
|
|
536
|
+
stiffness: w.stiffness,
|
|
537
|
+
damping: w.damping,
|
|
538
|
+
mass: w.mass,
|
|
539
|
+
velocity: E,
|
|
526
540
|
onComplete: () => {
|
|
527
|
-
|
|
541
|
+
n?.(), r.jump(0), k.current = "idle", i("idle");
|
|
528
542
|
}
|
|
529
543
|
});
|
|
530
544
|
return;
|
|
531
545
|
}
|
|
532
|
-
|
|
533
|
-
}, [
|
|
534
|
-
|
|
535
|
-
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;
|
|
536
550
|
const N = (F) => {
|
|
537
|
-
F.key === "Escape" &&
|
|
551
|
+
F.key === "Escape" && oe();
|
|
538
552
|
};
|
|
539
553
|
return window.addEventListener("keydown", N), () => window.removeEventListener("keydown", N);
|
|
540
|
-
}, [
|
|
541
|
-
if (
|
|
542
|
-
|
|
554
|
+
}, [v, oe]), L(() => {
|
|
555
|
+
if (v !== "dragging") {
|
|
556
|
+
y(e);
|
|
543
557
|
return;
|
|
544
558
|
}
|
|
545
559
|
const N = (F) => {
|
|
546
|
-
const
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
|
|
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));
|
|
550
566
|
};
|
|
551
567
|
return window.addEventListener("pointermove", N), () => window.removeEventListener("pointermove", N);
|
|
552
|
-
}, [
|
|
553
|
-
|
|
554
|
-
}, [
|
|
555
|
-
if (
|
|
556
|
-
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);
|
|
557
573
|
return () => clearTimeout(N);
|
|
558
|
-
}, [
|
|
559
|
-
const
|
|
574
|
+
}, [v, u]);
|
|
575
|
+
const Ae = f(
|
|
560
576
|
(N) => {
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
-
|
|
577
|
+
if (k.current === "settling") return;
|
|
578
|
+
const E = Math.min(3, Math.max(1, e + (N === "grow" ? 1 : -1)));
|
|
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);
|
|
564
583
|
},
|
|
565
|
-
[e,
|
|
566
|
-
),
|
|
567
|
-
|
|
568
|
-
|
|
584
|
+
[e, s, o, r, q]
|
|
585
|
+
), ve = f(() => {
|
|
586
|
+
M(), p.current = setTimeout(() => {
|
|
587
|
+
k.current === "handle-visible" && (k.current = "idle", i("idle"));
|
|
569
588
|
}, 5e3);
|
|
570
|
-
}, [
|
|
571
|
-
|
|
572
|
-
}, [
|
|
573
|
-
|
|
574
|
-
}, [
|
|
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]);
|
|
575
594
|
return {
|
|
576
|
-
state:
|
|
577
|
-
enterEdgeZone:
|
|
578
|
-
leaveEdgeZone:
|
|
595
|
+
state: v,
|
|
596
|
+
enterEdgeZone: H,
|
|
597
|
+
leaveEdgeZone: z,
|
|
579
598
|
handleProps: {
|
|
580
|
-
onPointerDown:
|
|
581
|
-
onPointerUp:
|
|
599
|
+
onPointerDown: G,
|
|
600
|
+
onPointerUp: B,
|
|
582
601
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
583
602
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
584
|
-
onPointerEnter:
|
|
585
|
-
onPointerLeave:
|
|
603
|
+
onPointerEnter: H,
|
|
604
|
+
onPointerLeave: z
|
|
586
605
|
},
|
|
587
|
-
previewColSpan:
|
|
606
|
+
previewColSpan: d,
|
|
588
607
|
ghostProps: {
|
|
589
|
-
visible:
|
|
590
|
-
targetColSpan:
|
|
591
|
-
|
|
592
|
-
enterMs:
|
|
593
|
-
exitMs:
|
|
608
|
+
visible: v === "dragging" || v === "settling",
|
|
609
|
+
targetColSpan: d,
|
|
610
|
+
ghostWidth: r,
|
|
611
|
+
enterMs: h,
|
|
612
|
+
exitMs: u
|
|
594
613
|
},
|
|
595
|
-
onKeyboardStep:
|
|
596
|
-
onTouchReveal:
|
|
597
|
-
onTouchDismiss:
|
|
598
|
-
cancel:
|
|
614
|
+
onKeyboardStep: Ae,
|
|
615
|
+
onTouchReveal: Le,
|
|
616
|
+
onTouchDismiss: $e,
|
|
617
|
+
cancel: oe
|
|
599
618
|
};
|
|
600
619
|
}
|
|
601
|
-
function
|
|
602
|
-
const { cardWidthPx: t, slotCount:
|
|
603
|
-
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)
|
|
604
623
|
return;
|
|
605
|
-
const o = (
|
|
606
|
-
return
|
|
624
|
+
const o = (n + 0.5) * (t / a);
|
|
625
|
+
return s != null && Number.isFinite(s) && s > 0 ? o - s / 2 : o;
|
|
607
626
|
}
|
|
608
|
-
const
|
|
627
|
+
const In = [
|
|
609
628
|
// 1. Standard: Total Revenue
|
|
610
629
|
{
|
|
611
630
|
variant: "standard",
|
|
@@ -709,24 +728,24 @@ const Da = [
|
|
|
709
728
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
710
729
|
]
|
|
711
730
|
}
|
|
712
|
-
],
|
|
731
|
+
], ct = {
|
|
713
732
|
variant: "standard",
|
|
714
733
|
label: "Total Revenue",
|
|
715
734
|
isLoading: !0
|
|
716
|
-
},
|
|
735
|
+
}, ut = {
|
|
717
736
|
variant: "standard",
|
|
718
737
|
label: "Total Revenue",
|
|
719
738
|
value: 125430,
|
|
720
739
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
721
740
|
isError: !0
|
|
722
|
-
},
|
|
741
|
+
}, mt = {
|
|
723
742
|
variant: "standard",
|
|
724
743
|
label: "Total Revenue",
|
|
725
744
|
value: null,
|
|
726
745
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
727
746
|
isEmpty: !0,
|
|
728
747
|
subtitle: "No data"
|
|
729
|
-
},
|
|
748
|
+
}, pt = {
|
|
730
749
|
variant: "standard",
|
|
731
750
|
label: "Total Revenue",
|
|
732
751
|
value: 125430,
|
|
@@ -734,7 +753,7 @@ const Da = [
|
|
|
734
753
|
trend: { value: 12.5, direction: "up" },
|
|
735
754
|
subtitle: "MTD",
|
|
736
755
|
isStale: !0
|
|
737
|
-
},
|
|
756
|
+
}, gt = {
|
|
738
757
|
variant: "sparkline",
|
|
739
758
|
label: "Daily Orders",
|
|
740
759
|
value: 847,
|
|
@@ -743,7 +762,7 @@ const Da = [
|
|
|
743
762
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
744
763
|
accentColor: "#6366f1",
|
|
745
764
|
isStale: !0
|
|
746
|
-
},
|
|
765
|
+
}, ft = {
|
|
747
766
|
variant: "donut",
|
|
748
767
|
label: "Order Fill Rate",
|
|
749
768
|
value: 78,
|
|
@@ -754,14 +773,14 @@ const Da = [
|
|
|
754
773
|
donutMax: 100,
|
|
755
774
|
accentColor: "#10b981",
|
|
756
775
|
isStale: !0
|
|
757
|
-
},
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
],
|
|
776
|
+
}, Rn = [
|
|
777
|
+
ct,
|
|
778
|
+
ut,
|
|
779
|
+
mt,
|
|
780
|
+
pt,
|
|
781
|
+
gt,
|
|
782
|
+
ft
|
|
783
|
+
], Mn = {
|
|
765
784
|
variant: "sparkline",
|
|
766
785
|
label: "Daily Orders",
|
|
767
786
|
value: 847,
|
|
@@ -784,7 +803,7 @@ const Da = [
|
|
|
784
803
|
59
|
|
785
804
|
],
|
|
786
805
|
accentColor: "#6366f1"
|
|
787
|
-
},
|
|
806
|
+
}, Pn = {
|
|
788
807
|
variant: "sparkline",
|
|
789
808
|
label: "New Customers",
|
|
790
809
|
value: 23,
|
|
@@ -823,21 +842,21 @@ const Da = [
|
|
|
823
842
|
19
|
|
824
843
|
],
|
|
825
844
|
accentColor: "#10b981"
|
|
826
|
-
},
|
|
845
|
+
}, Fn = {
|
|
827
846
|
variant: "standard",
|
|
828
847
|
label: "Total Revenue",
|
|
829
848
|
value: 125430,
|
|
830
849
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
831
850
|
trend: { value: 12.5, direction: "up" },
|
|
832
851
|
subtitle: "MTD"
|
|
833
|
-
},
|
|
852
|
+
}, En = {
|
|
834
853
|
variant: "standard",
|
|
835
854
|
label: "Returns",
|
|
836
855
|
value: 3280,
|
|
837
856
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
838
857
|
trend: { value: -8.3, direction: "down" },
|
|
839
858
|
subtitle: "MTD"
|
|
840
|
-
},
|
|
859
|
+
}, On = {
|
|
841
860
|
variant: "standard",
|
|
842
861
|
label: "Avg Order Value",
|
|
843
862
|
value: 487,
|
|
@@ -845,33 +864,33 @@ const Da = [
|
|
|
845
864
|
trend: { value: 0, direction: "flat" },
|
|
846
865
|
subtitle: "QTD"
|
|
847
866
|
};
|
|
848
|
-
function
|
|
867
|
+
function Te({
|
|
849
868
|
open: e,
|
|
850
869
|
onDismiss: t,
|
|
851
|
-
anchorRef:
|
|
852
|
-
pages:
|
|
853
|
-
activePageId:
|
|
870
|
+
anchorRef: a,
|
|
871
|
+
pages: n,
|
|
872
|
+
activePageId: s,
|
|
854
873
|
onPageChange: o,
|
|
855
|
-
onCreatePage:
|
|
856
|
-
onManagePages:
|
|
874
|
+
onCreatePage: l,
|
|
875
|
+
onManagePages: m
|
|
857
876
|
}) {
|
|
858
|
-
const h =
|
|
859
|
-
(
|
|
860
|
-
o(
|
|
877
|
+
const h = f(
|
|
878
|
+
(i) => {
|
|
879
|
+
o(i), t();
|
|
861
880
|
},
|
|
862
881
|
[o, t]
|
|
863
|
-
), u =
|
|
864
|
-
(
|
|
865
|
-
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), h(
|
|
882
|
+
), u = f(
|
|
883
|
+
(i, d) => {
|
|
884
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), h(i));
|
|
866
885
|
},
|
|
867
886
|
[h]
|
|
868
|
-
),
|
|
869
|
-
|
|
870
|
-
}, [
|
|
871
|
-
|
|
872
|
-
}, [
|
|
873
|
-
return /* @__PURE__ */
|
|
874
|
-
|
|
887
|
+
), D = f(() => {
|
|
888
|
+
l(), t();
|
|
889
|
+
}, [l, t]), v = f(() => {
|
|
890
|
+
m(), t();
|
|
891
|
+
}, [m, t]);
|
|
892
|
+
return /* @__PURE__ */ O(
|
|
893
|
+
Ze,
|
|
875
894
|
{
|
|
876
895
|
definition: {
|
|
877
896
|
placement: "bottom-end",
|
|
@@ -881,12 +900,12 @@ function Ne({
|
|
|
881
900
|
},
|
|
882
901
|
open: e,
|
|
883
902
|
onDismiss: t,
|
|
884
|
-
anchorRef:
|
|
903
|
+
anchorRef: a,
|
|
885
904
|
className: "gloss-page-dropdown",
|
|
886
905
|
children: [
|
|
887
|
-
/* @__PURE__ */ c("ul", { role: "menu", className: "gloss-page-dropdown__list", children:
|
|
888
|
-
const d =
|
|
889
|
-
return /* @__PURE__ */
|
|
906
|
+
/* @__PURE__ */ c("ul", { role: "menu", className: "gloss-page-dropdown__list", children: n.map((i) => {
|
|
907
|
+
const d = i.id === s;
|
|
908
|
+
return /* @__PURE__ */ O(
|
|
890
909
|
"li",
|
|
891
910
|
{
|
|
892
911
|
role: "menuitemradio",
|
|
@@ -894,8 +913,8 @@ function Ne({
|
|
|
894
913
|
"aria-current": d ? "page" : void 0,
|
|
895
914
|
tabIndex: 0,
|
|
896
915
|
className: `gloss-page-dropdown__item${d ? " gloss-page-dropdown__item--active" : ""}`,
|
|
897
|
-
onClick: () => h(
|
|
898
|
-
onKeyDown: (
|
|
916
|
+
onClick: () => h(i.id),
|
|
917
|
+
onKeyDown: (y) => u(i.id, y),
|
|
899
918
|
children: [
|
|
900
919
|
/* @__PURE__ */ c(
|
|
901
920
|
"span",
|
|
@@ -906,14 +925,14 @@ function Ne({
|
|
|
906
925
|
/* @__PURE__ */ c(
|
|
907
926
|
"span",
|
|
908
927
|
{
|
|
909
|
-
className: `gloss-page-dropdown__name${
|
|
910
|
-
children:
|
|
928
|
+
className: `gloss-page-dropdown__name${i.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
929
|
+
children: i.name
|
|
911
930
|
}
|
|
912
931
|
),
|
|
913
|
-
/* @__PURE__ */ c("span", { className: "gloss-page-dropdown__count", children:
|
|
932
|
+
/* @__PURE__ */ c("span", { className: "gloss-page-dropdown__count", children: i.cardCount })
|
|
914
933
|
]
|
|
915
934
|
},
|
|
916
|
-
|
|
935
|
+
i.id
|
|
917
936
|
);
|
|
918
937
|
}) }),
|
|
919
938
|
/* @__PURE__ */ c("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -922,7 +941,7 @@ function Ne({
|
|
|
922
941
|
{
|
|
923
942
|
role: "menuitem",
|
|
924
943
|
className: "gloss-page-dropdown__action",
|
|
925
|
-
onClick:
|
|
944
|
+
onClick: D,
|
|
926
945
|
children: "+ New page"
|
|
927
946
|
}
|
|
928
947
|
),
|
|
@@ -932,7 +951,7 @@ function Ne({
|
|
|
932
951
|
{
|
|
933
952
|
role: "menuitem",
|
|
934
953
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
935
|
-
onClick:
|
|
954
|
+
onClick: v,
|
|
936
955
|
children: "Manage pages"
|
|
937
956
|
}
|
|
938
957
|
)
|
|
@@ -940,22 +959,22 @@ function Ne({
|
|
|
940
959
|
}
|
|
941
960
|
);
|
|
942
961
|
}
|
|
943
|
-
|
|
944
|
-
const
|
|
962
|
+
Te.displayName = "PageDropdown";
|
|
963
|
+
const bt = function({
|
|
945
964
|
currentIndex: t,
|
|
946
|
-
total:
|
|
947
|
-
pages:
|
|
948
|
-
onPageChange:
|
|
965
|
+
total: a,
|
|
966
|
+
pages: n,
|
|
967
|
+
onPageChange: s,
|
|
949
968
|
onCreatePage: o,
|
|
950
|
-
onManagePages:
|
|
951
|
-
maskRadius:
|
|
969
|
+
onManagePages: l,
|
|
970
|
+
maskRadius: m = "var(--gloss-radius-md)"
|
|
952
971
|
}) {
|
|
953
|
-
const h =
|
|
954
|
-
|
|
955
|
-
}, []),
|
|
956
|
-
|
|
957
|
-
}, []), d =
|
|
958
|
-
return /* @__PURE__ */
|
|
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 ?? "";
|
|
977
|
+
return /* @__PURE__ */ O(
|
|
959
978
|
"div",
|
|
960
979
|
{
|
|
961
980
|
className: "gloss-page-chip",
|
|
@@ -967,43 +986,43 @@ const lt = function({
|
|
|
967
986
|
"div",
|
|
968
987
|
{
|
|
969
988
|
className: "gloss-page-chip__nuzzle",
|
|
970
|
-
style: { "--_nuzzle-r":
|
|
989
|
+
style: { "--_nuzzle-r": m }
|
|
971
990
|
}
|
|
972
991
|
),
|
|
973
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ O(
|
|
974
993
|
"button",
|
|
975
994
|
{
|
|
976
995
|
className: "gloss-page-chip__trigger",
|
|
977
996
|
"aria-haspopup": "menu",
|
|
978
997
|
"aria-expanded": u,
|
|
979
|
-
"aria-label": `Page ${t + 1} of ${
|
|
980
|
-
onClick:
|
|
998
|
+
"aria-label": `Page ${t + 1} of ${a}. Click to switch pages.`,
|
|
999
|
+
onClick: v,
|
|
981
1000
|
children: [
|
|
982
1001
|
t + 1,
|
|
983
1002
|
" / ",
|
|
984
|
-
|
|
1003
|
+
a
|
|
985
1004
|
]
|
|
986
1005
|
}
|
|
987
1006
|
),
|
|
988
1007
|
/* @__PURE__ */ c(
|
|
989
|
-
|
|
1008
|
+
Te,
|
|
990
1009
|
{
|
|
991
1010
|
open: u,
|
|
992
|
-
onDismiss:
|
|
1011
|
+
onDismiss: i,
|
|
993
1012
|
anchorRef: h,
|
|
994
|
-
pages:
|
|
1013
|
+
pages: n,
|
|
995
1014
|
activePageId: d,
|
|
996
|
-
onPageChange:
|
|
1015
|
+
onPageChange: s,
|
|
997
1016
|
onCreatePage: o,
|
|
998
|
-
onManagePages:
|
|
1017
|
+
onManagePages: l
|
|
999
1018
|
}
|
|
1000
1019
|
)
|
|
1001
1020
|
]
|
|
1002
1021
|
}
|
|
1003
1022
|
);
|
|
1004
1023
|
};
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1024
|
+
bt.displayName = "PageChip";
|
|
1025
|
+
const An = [
|
|
1007
1026
|
{
|
|
1008
1027
|
id: "ORD-1001",
|
|
1009
1028
|
orderNumber: "ORD-1001",
|
|
@@ -1136,7 +1155,7 @@ const _a = [
|
|
|
1136
1155
|
date: "2026-03-01",
|
|
1137
1156
|
skuCount: 9
|
|
1138
1157
|
}
|
|
1139
|
-
],
|
|
1158
|
+
], Ln = [
|
|
1140
1159
|
{
|
|
1141
1160
|
id: "ITEM-001",
|
|
1142
1161
|
sku: "PB-4520",
|
|
@@ -1270,16 +1289,16 @@ const _a = [
|
|
|
1270
1289
|
lastDate: "2026-03-01"
|
|
1271
1290
|
}
|
|
1272
1291
|
];
|
|
1273
|
-
function
|
|
1292
|
+
function pe(e) {
|
|
1274
1293
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1275
1294
|
}
|
|
1276
|
-
function
|
|
1295
|
+
function _e(e) {
|
|
1277
1296
|
return e.toLocaleString("en-US");
|
|
1278
1297
|
}
|
|
1279
|
-
function
|
|
1298
|
+
function Ie(e) {
|
|
1280
1299
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1281
1300
|
}
|
|
1282
|
-
const
|
|
1301
|
+
const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), $n = [
|
|
1283
1302
|
{
|
|
1284
1303
|
field: "id",
|
|
1285
1304
|
headerName: "Order",
|
|
@@ -1309,7 +1328,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1309
1328
|
align: "right",
|
|
1310
1329
|
headerAlign: "right",
|
|
1311
1330
|
cellClassName: "gloss-tabular-nums",
|
|
1312
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1331
|
+
renderCell: ({ row: e }) => e.skuCount ? _e(e.skuCount) : ne
|
|
1313
1332
|
},
|
|
1314
1333
|
{
|
|
1315
1334
|
field: "total",
|
|
@@ -1319,7 +1338,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1319
1338
|
align: "right",
|
|
1320
1339
|
headerAlign: "right",
|
|
1321
1340
|
cellClassName: "gloss-tabular-nums",
|
|
1322
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1341
|
+
renderCell: ({ row: e }) => e.total ? pe(e.total) : ne
|
|
1323
1342
|
},
|
|
1324
1343
|
{
|
|
1325
1344
|
field: "date",
|
|
@@ -1329,9 +1348,9 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1329
1348
|
align: "right",
|
|
1330
1349
|
headerAlign: "right",
|
|
1331
1350
|
cellClassName: "gloss-tabular-nums",
|
|
1332
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1351
|
+
renderCell: ({ row: e }) => e.date ? Ie(e.date) : ""
|
|
1333
1352
|
}
|
|
1334
|
-
],
|
|
1353
|
+
], Bn = [
|
|
1335
1354
|
{
|
|
1336
1355
|
field: "sku",
|
|
1337
1356
|
headerName: "Item ID",
|
|
@@ -1363,7 +1382,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1363
1382
|
align: "right",
|
|
1364
1383
|
headerAlign: "right",
|
|
1365
1384
|
cellClassName: "gloss-tabular-nums",
|
|
1366
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1385
|
+
renderCell: ({ row: e }) => e.price ? pe(e.price) : ne
|
|
1367
1386
|
},
|
|
1368
1387
|
{
|
|
1369
1388
|
field: "quantity",
|
|
@@ -1373,7 +1392,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1373
1392
|
align: "right",
|
|
1374
1393
|
headerAlign: "right",
|
|
1375
1394
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1376
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1395
|
+
renderCell: ({ row: e }) => e.quantity ? _e(e.quantity) : ne
|
|
1377
1396
|
},
|
|
1378
1397
|
{
|
|
1379
1398
|
field: "total",
|
|
@@ -1383,7 +1402,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1383
1402
|
align: "right",
|
|
1384
1403
|
headerAlign: "right",
|
|
1385
1404
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1386
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1405
|
+
renderCell: ({ row: e }) => e.total ? pe(e.total) : ne
|
|
1387
1406
|
},
|
|
1388
1407
|
{
|
|
1389
1408
|
field: "lastDate",
|
|
@@ -1393,24 +1412,24 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1393
1412
|
align: "right",
|
|
1394
1413
|
headerAlign: "right",
|
|
1395
1414
|
cellClassName: "gloss-tabular-nums",
|
|
1396
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1415
|
+
renderCell: ({ row: e }) => e.lastDate ? Ie(e.lastDate) : ""
|
|
1397
1416
|
}
|
|
1398
|
-
],
|
|
1417
|
+
], ht = [
|
|
1399
1418
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1400
1419
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1401
1420
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1402
1421
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1403
1422
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1404
|
-
],
|
|
1423
|
+
], vt = [
|
|
1405
1424
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1406
1425
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1407
1426
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1408
1427
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1409
1428
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1410
|
-
],
|
|
1411
|
-
},
|
|
1412
|
-
},
|
|
1413
|
-
},
|
|
1429
|
+
], de = (e) => {
|
|
1430
|
+
}, yt = (e) => {
|
|
1431
|
+
}, De = (e, t) => {
|
|
1432
|
+
}, Re = {
|
|
1414
1433
|
vizState: {
|
|
1415
1434
|
type: "orders",
|
|
1416
1435
|
quant: "$",
|
|
@@ -1418,17 +1437,17 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1418
1437
|
byItem: { id: null, name: null },
|
|
1419
1438
|
timeFrame: "MTD"
|
|
1420
1439
|
},
|
|
1421
|
-
onTypeChange:
|
|
1422
|
-
onQuantChange:
|
|
1423
|
-
onEntityTypeChange:
|
|
1424
|
-
onEntitySelect:
|
|
1425
|
-
onItemSelect:
|
|
1426
|
-
onTimeFrameChange:
|
|
1440
|
+
onTypeChange: de,
|
|
1441
|
+
onQuantChange: yt,
|
|
1442
|
+
onEntityTypeChange: de,
|
|
1443
|
+
onEntitySelect: De,
|
|
1444
|
+
onItemSelect: De,
|
|
1445
|
+
onTimeFrameChange: de,
|
|
1427
1446
|
userType: "sales-agency",
|
|
1428
|
-
entityFilterOptions:
|
|
1429
|
-
itemFilterOptions:
|
|
1430
|
-
},
|
|
1431
|
-
...
|
|
1447
|
+
entityFilterOptions: ht,
|
|
1448
|
+
itemFilterOptions: vt
|
|
1449
|
+
}, Kn = {
|
|
1450
|
+
...Re,
|
|
1432
1451
|
vizState: {
|
|
1433
1452
|
type: "items",
|
|
1434
1453
|
quant: "$",
|
|
@@ -1436,8 +1455,8 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1436
1455
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1437
1456
|
timeFrame: "YTD"
|
|
1438
1457
|
}
|
|
1439
|
-
},
|
|
1440
|
-
...
|
|
1458
|
+
}, Wn = {
|
|
1459
|
+
...Re,
|
|
1441
1460
|
vizState: {
|
|
1442
1461
|
type: "orders",
|
|
1443
1462
|
quant: "#",
|
|
@@ -1449,7 +1468,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1449
1468
|
entityFilterOptions: [
|
|
1450
1469
|
{ id: "customers", label: "Customers" }
|
|
1451
1470
|
]
|
|
1452
|
-
},
|
|
1471
|
+
}, wt = [
|
|
1453
1472
|
{
|
|
1454
1473
|
id: "recent-orders",
|
|
1455
1474
|
label: "Recent Orders",
|
|
@@ -1495,7 +1514,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1495
1514
|
routeKey: "customer.profile",
|
|
1496
1515
|
subtitle: "Opens in RepTime"
|
|
1497
1516
|
}
|
|
1498
|
-
],
|
|
1517
|
+
], Dt = [
|
|
1499
1518
|
{
|
|
1500
1519
|
id: "order-items",
|
|
1501
1520
|
label: "Items in Order",
|
|
@@ -1524,7 +1543,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1524
1543
|
cellKinds: ["orderId"],
|
|
1525
1544
|
graphType: "timeline"
|
|
1526
1545
|
}
|
|
1527
|
-
],
|
|
1546
|
+
], Ct = [
|
|
1528
1547
|
{
|
|
1529
1548
|
id: "graph-metric",
|
|
1530
1549
|
label: "Graph This Metric",
|
|
@@ -1552,14 +1571,14 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1552
1571
|
cellKinds: ["numeric"],
|
|
1553
1572
|
tabType: "orders"
|
|
1554
1573
|
}
|
|
1555
|
-
],
|
|
1556
|
-
entityName:
|
|
1557
|
-
orderId:
|
|
1558
|
-
numeric:
|
|
1559
|
-
},
|
|
1574
|
+
], Gn = {
|
|
1575
|
+
entityName: wt,
|
|
1576
|
+
orderId: Dt,
|
|
1577
|
+
numeric: Ct
|
|
1578
|
+
}, Vn = [
|
|
1560
1579
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1561
1580
|
/* @__PURE__ */ new Date()
|
|
1562
|
-
],
|
|
1581
|
+
], Hn = {
|
|
1563
1582
|
rangeA: [
|
|
1564
1583
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1565
1584
|
/* @__PURE__ */ new Date()
|
|
@@ -1572,7 +1591,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1572
1591
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1573
1592
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1574
1593
|
]
|
|
1575
|
-
},
|
|
1594
|
+
}, zn = {
|
|
1576
1595
|
version: 4,
|
|
1577
1596
|
lastPreset: "mtd",
|
|
1578
1597
|
pinnedPreset: "mtd",
|
|
@@ -1580,7 +1599,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1580
1599
|
rangeCount: 1,
|
|
1581
1600
|
lastPresetB: null,
|
|
1582
1601
|
lastPresetC: null
|
|
1583
|
-
},
|
|
1602
|
+
}, Zn = [
|
|
1584
1603
|
{
|
|
1585
1604
|
id: "atlanta-jan",
|
|
1586
1605
|
label: "Atlanta Market",
|
|
@@ -1602,7 +1621,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1602
1621
|
endDate: new Date(2026, 3, 22),
|
|
1603
1622
|
location: "Chicago, IL"
|
|
1604
1623
|
}
|
|
1605
|
-
],
|
|
1624
|
+
], Un = [
|
|
1606
1625
|
{
|
|
1607
1626
|
id: "custom-regional-1",
|
|
1608
1627
|
label: "Southeast Regional Expo",
|
|
@@ -1619,7 +1638,7 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1619
1638
|
location: "Portland, OR",
|
|
1620
1639
|
isCustom: !0
|
|
1621
1640
|
}
|
|
1622
|
-
],
|
|
1641
|
+
], Yn = [
|
|
1623
1642
|
{
|
|
1624
1643
|
id: "atlanta-jan",
|
|
1625
1644
|
label: "Atlanta Market",
|
|
@@ -1636,80 +1655,80 @@ const Q = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1636
1655
|
location: "New York, NY",
|
|
1637
1656
|
active: !0
|
|
1638
1657
|
}
|
|
1639
|
-
],
|
|
1658
|
+
], qn = [
|
|
1640
1659
|
{ id: "7d", label: "7D" },
|
|
1641
1660
|
{ id: "30d", label: "30D" },
|
|
1642
1661
|
{ id: "60d", label: "60D" },
|
|
1643
1662
|
{ id: "90d", label: "90D" }
|
|
1644
|
-
],
|
|
1663
|
+
], jn = [
|
|
1645
1664
|
{ id: "mtd", label: "MTD" },
|
|
1646
1665
|
{ id: "qtd", label: "QTD" },
|
|
1647
1666
|
{ id: "ytd", label: "YTD" },
|
|
1648
1667
|
{ id: "lytd", label: "LYTD" }
|
|
1649
|
-
],
|
|
1668
|
+
], Nt = {
|
|
1650
1669
|
timeframe: "Time Frame",
|
|
1651
1670
|
threshold: "Thresholds",
|
|
1652
1671
|
slots: "Slots",
|
|
1653
1672
|
size: "Size",
|
|
1654
1673
|
color: "Color",
|
|
1655
1674
|
pinned: "Pinned"
|
|
1656
|
-
},
|
|
1657
|
-
timeframe:
|
|
1658
|
-
threshold:
|
|
1659
|
-
slots:
|
|
1660
|
-
size:
|
|
1661
|
-
color:
|
|
1662
|
-
pinned:
|
|
1675
|
+
}, kt = {
|
|
1676
|
+
timeframe: Ye,
|
|
1677
|
+
threshold: qe,
|
|
1678
|
+
slots: je,
|
|
1679
|
+
size: Xe,
|
|
1680
|
+
color: Qe,
|
|
1681
|
+
pinned: Je
|
|
1663
1682
|
};
|
|
1664
|
-
function
|
|
1683
|
+
function Ce(...e) {
|
|
1665
1684
|
return e.filter(Boolean).join(" ");
|
|
1666
1685
|
}
|
|
1667
|
-
function
|
|
1668
|
-
const [e, t] =
|
|
1669
|
-
return
|
|
1686
|
+
function xt() {
|
|
1687
|
+
const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1688
|
+
return L(() => {
|
|
1670
1689
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1671
|
-
const
|
|
1672
|
-
return typeof
|
|
1673
|
-
|
|
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);
|
|
1674
1693
|
});
|
|
1675
1694
|
}, []), e;
|
|
1676
1695
|
}
|
|
1677
|
-
const
|
|
1696
|
+
const St = ({
|
|
1678
1697
|
dimensions: e,
|
|
1679
1698
|
onDimensionSelect: t,
|
|
1680
|
-
activeDimension:
|
|
1681
|
-
ariaCardTypeLabel:
|
|
1682
|
-
className:
|
|
1699
|
+
activeDimension: a,
|
|
1700
|
+
ariaCardTypeLabel: n,
|
|
1701
|
+
className: s
|
|
1683
1702
|
}) => {
|
|
1684
|
-
const o =
|
|
1703
|
+
const o = P(null), l = P([]), m = xt(), h = ae(() => Array.from(e), [e]);
|
|
1685
1704
|
if (h.length === 0) return null;
|
|
1686
|
-
const u =
|
|
1687
|
-
const
|
|
1688
|
-
const S =
|
|
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];
|
|
1689
1708
|
S && S.focus();
|
|
1690
1709
|
};
|
|
1691
|
-
switch (
|
|
1710
|
+
switch (i.key) {
|
|
1692
1711
|
case "ArrowRight":
|
|
1693
1712
|
case "ArrowDown": {
|
|
1694
|
-
|
|
1713
|
+
i.preventDefault(), I(d === y ? 0 : d + 1);
|
|
1695
1714
|
break;
|
|
1696
1715
|
}
|
|
1697
1716
|
case "ArrowLeft":
|
|
1698
1717
|
case "ArrowUp": {
|
|
1699
|
-
|
|
1718
|
+
i.preventDefault(), I(d === 0 ? y : d - 1);
|
|
1700
1719
|
break;
|
|
1701
1720
|
}
|
|
1702
1721
|
case "Home": {
|
|
1703
|
-
|
|
1722
|
+
i.preventDefault(), I(0);
|
|
1704
1723
|
break;
|
|
1705
1724
|
}
|
|
1706
1725
|
case "End": {
|
|
1707
|
-
|
|
1726
|
+
i.preventDefault(), I(y);
|
|
1708
1727
|
break;
|
|
1709
1728
|
}
|
|
1710
1729
|
case "Enter":
|
|
1711
1730
|
case " ": {
|
|
1712
|
-
|
|
1731
|
+
i.preventDefault(), t(h[d]);
|
|
1713
1732
|
break;
|
|
1714
1733
|
}
|
|
1715
1734
|
}
|
|
@@ -1720,53 +1739,53 @@ const vt = ({
|
|
|
1720
1739
|
ref: o,
|
|
1721
1740
|
role: "group",
|
|
1722
1741
|
"aria-label": u,
|
|
1723
|
-
className:
|
|
1742
|
+
className: Ce("gloss-reconfig-backside-buttons", s),
|
|
1724
1743
|
style: {
|
|
1725
1744
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1726
1745
|
// so the SCSS transition rule can consume it without a nested media
|
|
1727
1746
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1728
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
1747
|
+
"--gloss-reconfig-backside-buttons-transition-duration": D
|
|
1729
1748
|
},
|
|
1730
|
-
children: h.map((
|
|
1731
|
-
const
|
|
1732
|
-
return /* @__PURE__ */
|
|
1749
|
+
children: h.map((i, d) => {
|
|
1750
|
+
const y = kt[i], I = a === i;
|
|
1751
|
+
return /* @__PURE__ */ O(
|
|
1733
1752
|
"button",
|
|
1734
1753
|
{
|
|
1735
|
-
ref: (
|
|
1736
|
-
|
|
1754
|
+
ref: (p) => {
|
|
1755
|
+
l.current[d] = p;
|
|
1737
1756
|
},
|
|
1738
1757
|
type: "button",
|
|
1739
|
-
"data-dimension":
|
|
1740
|
-
className:
|
|
1758
|
+
"data-dimension": i,
|
|
1759
|
+
className: Ce(
|
|
1741
1760
|
"gloss-reconfig-backside-buttons__button",
|
|
1742
1761
|
I && "gloss-reconfig-backside-buttons__button--active"
|
|
1743
1762
|
),
|
|
1744
1763
|
"aria-current": I ? "true" : void 0,
|
|
1745
|
-
onClick: () => t(
|
|
1746
|
-
onKeyDown: (
|
|
1764
|
+
onClick: () => t(i),
|
|
1765
|
+
onKeyDown: (p) => v(p, d),
|
|
1747
1766
|
children: [
|
|
1748
1767
|
/* @__PURE__ */ c(
|
|
1749
|
-
|
|
1768
|
+
y,
|
|
1750
1769
|
{
|
|
1751
1770
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
1752
1771
|
"aria-hidden": "true"
|
|
1753
1772
|
}
|
|
1754
1773
|
),
|
|
1755
|
-
/* @__PURE__ */ c("span", { className: "gloss-reconfig-backside-buttons__button-label", children:
|
|
1774
|
+
/* @__PURE__ */ c("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Nt[i] })
|
|
1756
1775
|
]
|
|
1757
1776
|
},
|
|
1758
|
-
|
|
1777
|
+
i
|
|
1759
1778
|
);
|
|
1760
1779
|
})
|
|
1761
1780
|
}
|
|
1762
1781
|
);
|
|
1763
1782
|
};
|
|
1764
|
-
|
|
1765
|
-
function
|
|
1783
|
+
St.displayName = "ReconfigBacksideButtons";
|
|
1784
|
+
function V(e, t) {
|
|
1766
1785
|
return {
|
|
1767
1786
|
id: e,
|
|
1768
1787
|
colSpan: 1,
|
|
1769
|
-
content:
|
|
1788
|
+
content: K.createElement("div", {
|
|
1770
1789
|
style: {
|
|
1771
1790
|
width: "100%",
|
|
1772
1791
|
height: "100%",
|
|
@@ -1782,38 +1801,38 @@ function z(e, t) {
|
|
|
1782
1801
|
}, t)
|
|
1783
1802
|
};
|
|
1784
1803
|
}
|
|
1785
|
-
function
|
|
1804
|
+
function Ne(e, t) {
|
|
1786
1805
|
return {
|
|
1787
|
-
...
|
|
1806
|
+
...V(e, t),
|
|
1788
1807
|
colSpan: 2
|
|
1789
1808
|
};
|
|
1790
1809
|
}
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
],
|
|
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 = {
|
|
1803
1822
|
columns: 6,
|
|
1804
1823
|
rowHeight: 120,
|
|
1805
1824
|
gap: 15,
|
|
1806
1825
|
maxRows: 3,
|
|
1807
1826
|
currentPage: 0,
|
|
1808
1827
|
totalPages: 1
|
|
1809
|
-
},
|
|
1828
|
+
}, Jn = {
|
|
1810
1829
|
columns: 9,
|
|
1811
1830
|
rowHeight: 120,
|
|
1812
1831
|
gap: 15,
|
|
1813
1832
|
maxRows: 3,
|
|
1814
1833
|
currentPage: 0,
|
|
1815
1834
|
totalPages: 2
|
|
1816
|
-
},
|
|
1835
|
+
}, ea = {
|
|
1817
1836
|
columns: 12,
|
|
1818
1837
|
rowHeight: 120,
|
|
1819
1838
|
gap: 15,
|
|
@@ -1821,15 +1840,15 @@ const Ha = [
|
|
|
1821
1840
|
currentPage: 0,
|
|
1822
1841
|
totalPages: 3
|
|
1823
1842
|
};
|
|
1824
|
-
function
|
|
1825
|
-
return
|
|
1843
|
+
function ce(e) {
|
|
1844
|
+
return K.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1826
1845
|
}
|
|
1827
|
-
const
|
|
1846
|
+
const ta = [
|
|
1828
1847
|
{
|
|
1829
1848
|
id: "all-orders",
|
|
1830
1849
|
type: "orders",
|
|
1831
1850
|
name: "All Orders",
|
|
1832
|
-
icon:
|
|
1851
|
+
icon: ce("📋"),
|
|
1833
1852
|
closable: !1,
|
|
1834
1853
|
autoCreated: !0
|
|
1835
1854
|
},
|
|
@@ -1837,17 +1856,17 @@ const Ua = [
|
|
|
1837
1856
|
id: "open-orders",
|
|
1838
1857
|
type: "orders",
|
|
1839
1858
|
name: "Open Orders",
|
|
1840
|
-
icon:
|
|
1859
|
+
icon: ce("📦"),
|
|
1841
1860
|
closable: !0
|
|
1842
1861
|
},
|
|
1843
1862
|
{
|
|
1844
1863
|
id: "shipped-orders",
|
|
1845
1864
|
type: "orders",
|
|
1846
1865
|
name: "Shipped Orders",
|
|
1847
|
-
icon:
|
|
1866
|
+
icon: ce("🚚"),
|
|
1848
1867
|
closable: !0
|
|
1849
1868
|
}
|
|
1850
|
-
],
|
|
1869
|
+
], na = [
|
|
1851
1870
|
{
|
|
1852
1871
|
id: "orders-main",
|
|
1853
1872
|
type: "orders",
|
|
@@ -1873,7 +1892,7 @@ const Ua = [
|
|
|
1873
1892
|
name: "Customers",
|
|
1874
1893
|
closable: !0
|
|
1875
1894
|
}
|
|
1876
|
-
],
|
|
1895
|
+
], aa = [
|
|
1877
1896
|
{
|
|
1878
1897
|
id: "only-tab",
|
|
1879
1898
|
type: "orders",
|
|
@@ -1881,7 +1900,7 @@ const Ua = [
|
|
|
1881
1900
|
closable: !1,
|
|
1882
1901
|
autoCreated: !0
|
|
1883
1902
|
}
|
|
1884
|
-
],
|
|
1903
|
+
], ra = [
|
|
1885
1904
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1886
1905
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1887
1906
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1893,7 +1912,7 @@ const Ua = [
|
|
|
1893
1912
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
1894
1913
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
1895
1914
|
];
|
|
1896
|
-
function
|
|
1915
|
+
function ge(e) {
|
|
1897
1916
|
switch (e) {
|
|
1898
1917
|
case "wide":
|
|
1899
1918
|
return { cols: 2, rows: 1 };
|
|
@@ -1904,40 +1923,40 @@ function ue(e) {
|
|
|
1904
1923
|
return { cols: 1, rows: 1 };
|
|
1905
1924
|
}
|
|
1906
1925
|
}
|
|
1907
|
-
function
|
|
1926
|
+
function Tt(e) {
|
|
1908
1927
|
let t = 0;
|
|
1909
|
-
for (const
|
|
1910
|
-
const
|
|
1928
|
+
for (const n of e) {
|
|
1929
|
+
const s = ge(n.size), o = n.gridPosition.col + s.cols - 1;
|
|
1911
1930
|
o > t && (t = o);
|
|
1912
1931
|
}
|
|
1913
1932
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1914
1933
|
}
|
|
1915
|
-
const
|
|
1934
|
+
const _t = function(t) {
|
|
1916
1935
|
if (t.renderMode === "discrete")
|
|
1917
1936
|
return /* @__PURE__ */ c(
|
|
1918
1937
|
"div",
|
|
1919
1938
|
{
|
|
1920
1939
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1921
1940
|
style: { display: "contents" },
|
|
1922
|
-
children: t.cards.map((
|
|
1923
|
-
const o =
|
|
1941
|
+
children: t.cards.map((s) => {
|
|
1942
|
+
const o = ge(s.size);
|
|
1924
1943
|
return /* @__PURE__ */ c(
|
|
1925
1944
|
"div",
|
|
1926
1945
|
{
|
|
1927
1946
|
className: "gloss-metric-group__slot",
|
|
1928
1947
|
style: {
|
|
1929
|
-
gridColumn: `${
|
|
1930
|
-
gridRow: `${
|
|
1948
|
+
gridColumn: `${s.gridPosition.col} / span ${o.cols}`,
|
|
1949
|
+
gridRow: `${s.gridPosition.row} / span ${o.rows}`
|
|
1931
1950
|
},
|
|
1932
|
-
children:
|
|
1951
|
+
children: s.children
|
|
1933
1952
|
},
|
|
1934
|
-
|
|
1953
|
+
s.key
|
|
1935
1954
|
);
|
|
1936
1955
|
})
|
|
1937
1956
|
}
|
|
1938
1957
|
);
|
|
1939
|
-
const { cards:
|
|
1940
|
-
return /* @__PURE__ */
|
|
1958
|
+
const { cards: a, composite: n } = t;
|
|
1959
|
+
return /* @__PURE__ */ O(
|
|
1941
1960
|
"div",
|
|
1942
1961
|
{
|
|
1943
1962
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1952,25 +1971,25 @@ const wt = function(t) {
|
|
|
1952
1971
|
padding: "10px 12px 8px",
|
|
1953
1972
|
overflow: "visible"
|
|
1954
1973
|
},
|
|
1955
|
-
role:
|
|
1956
|
-
"aria-label":
|
|
1974
|
+
role: n?.label ? "group" : void 0,
|
|
1975
|
+
"aria-label": n?.label,
|
|
1957
1976
|
tabIndex: void 0,
|
|
1958
1977
|
children: [
|
|
1959
|
-
|
|
1978
|
+
n?.accentColor && /* @__PURE__ */ c(
|
|
1960
1979
|
"div",
|
|
1961
1980
|
{
|
|
1962
1981
|
className: "gloss-metric-group__accent",
|
|
1963
|
-
style: { background:
|
|
1982
|
+
style: { background: n.accentColor }
|
|
1964
1983
|
}
|
|
1965
1984
|
),
|
|
1966
|
-
|
|
1967
|
-
/* @__PURE__ */ c("span", { children:
|
|
1968
|
-
|
|
1985
|
+
n?.label && /* @__PURE__ */ O("div", { className: "gloss-metric-group__label", children: [
|
|
1986
|
+
/* @__PURE__ */ c("span", { children: n.label }),
|
|
1987
|
+
n?.trend && /* @__PURE__ */ c(
|
|
1969
1988
|
"span",
|
|
1970
1989
|
{
|
|
1971
1990
|
className: "gloss-metric-group__trend",
|
|
1972
|
-
"data-direction":
|
|
1973
|
-
children:
|
|
1991
|
+
"data-direction": n.trend.direction,
|
|
1992
|
+
children: n.trend.delta
|
|
1974
1993
|
}
|
|
1975
1994
|
)
|
|
1976
1995
|
] }),
|
|
@@ -1981,21 +2000,21 @@ const wt = function(t) {
|
|
|
1981
2000
|
style: {
|
|
1982
2001
|
display: "grid",
|
|
1983
2002
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
1984
|
-
gridTemplateColumns:
|
|
2003
|
+
gridTemplateColumns: Tt(a)
|
|
1985
2004
|
},
|
|
1986
|
-
children:
|
|
1987
|
-
const o =
|
|
2005
|
+
children: a.map((s) => {
|
|
2006
|
+
const o = ge(s.size);
|
|
1988
2007
|
return /* @__PURE__ */ c(
|
|
1989
2008
|
"div",
|
|
1990
2009
|
{
|
|
1991
2010
|
className: "gloss-metric-group__slot--composite",
|
|
1992
2011
|
style: {
|
|
1993
|
-
gridColumn: `${
|
|
1994
|
-
gridRow: `${
|
|
2012
|
+
gridColumn: `${s.gridPosition.col} / span ${o.cols}`,
|
|
2013
|
+
gridRow: `${s.gridPosition.row} / span ${o.rows}`
|
|
1995
2014
|
},
|
|
1996
|
-
children:
|
|
2015
|
+
children: s.children
|
|
1997
2016
|
},
|
|
1998
|
-
|
|
2017
|
+
s.key
|
|
1999
2018
|
);
|
|
2000
2019
|
})
|
|
2001
2020
|
}
|
|
@@ -2004,16 +2023,16 @@ const wt = function(t) {
|
|
|
2004
2023
|
}
|
|
2005
2024
|
);
|
|
2006
2025
|
};
|
|
2007
|
-
|
|
2008
|
-
const
|
|
2009
|
-
...
|
|
2026
|
+
_t.displayName = "MetricGroupContainer";
|
|
2027
|
+
const Me = "resize.tuning.dev", It = {
|
|
2028
|
+
...Se,
|
|
2010
2029
|
snapInPx: 60,
|
|
2011
2030
|
snapOutPx: 90
|
|
2012
|
-
}, Y =
|
|
2013
|
-
function
|
|
2031
|
+
}, Y = It;
|
|
2032
|
+
function Rt() {
|
|
2014
2033
|
if (typeof window > "u") return { ...Y };
|
|
2015
2034
|
try {
|
|
2016
|
-
const e = window.localStorage.getItem(
|
|
2035
|
+
const e = window.localStorage.getItem(Me);
|
|
2017
2036
|
if (!e) return { ...Y };
|
|
2018
2037
|
const t = JSON.parse(e);
|
|
2019
2038
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...Y } : { ...Y, ...t };
|
|
@@ -2021,31 +2040,31 @@ function Ct() {
|
|
|
2021
2040
|
return { ...Y };
|
|
2022
2041
|
}
|
|
2023
2042
|
}
|
|
2024
|
-
function
|
|
2025
|
-
const [e, t] =
|
|
2026
|
-
|
|
2043
|
+
function Mt() {
|
|
2044
|
+
const [e, t] = $(() => Rt());
|
|
2045
|
+
L(() => {
|
|
2027
2046
|
if (!(typeof window > "u"))
|
|
2028
2047
|
try {
|
|
2029
|
-
window.localStorage.setItem(
|
|
2048
|
+
window.localStorage.setItem(Me, JSON.stringify(e));
|
|
2030
2049
|
} catch {
|
|
2031
2050
|
}
|
|
2032
2051
|
}, [e]);
|
|
2033
|
-
const
|
|
2034
|
-
(o,
|
|
2035
|
-
t((
|
|
2052
|
+
const a = f(
|
|
2053
|
+
(o, l) => {
|
|
2054
|
+
t((m) => ({ ...m, [o]: l }));
|
|
2036
2055
|
},
|
|
2037
2056
|
[]
|
|
2038
|
-
),
|
|
2057
|
+
), n = f(
|
|
2039
2058
|
(o) => {
|
|
2040
|
-
t((
|
|
2059
|
+
t((l) => ({ ...l, [o]: Y[o] }));
|
|
2041
2060
|
},
|
|
2042
2061
|
[]
|
|
2043
|
-
),
|
|
2062
|
+
), s = f(() => {
|
|
2044
2063
|
t({ ...Y });
|
|
2045
2064
|
}, []);
|
|
2046
|
-
return { values: e, setValue:
|
|
2065
|
+
return { values: e, setValue: a, resetRow: n, resetAll: s };
|
|
2047
2066
|
}
|
|
2048
|
-
const
|
|
2067
|
+
const Pt = [
|
|
2049
2068
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2050
2069
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2051
2070
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2056,11 +2075,11 @@ const kt = [
|
|
|
2056
2075
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2057
2076
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2058
2077
|
];
|
|
2059
|
-
function
|
|
2078
|
+
function Ft(e, t) {
|
|
2060
2079
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2061
2080
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return /* @__PURE__ */
|
|
2081
|
+
function Et() {
|
|
2082
|
+
return /* @__PURE__ */ O(
|
|
2064
2083
|
"svg",
|
|
2065
2084
|
{
|
|
2066
2085
|
width: "14",
|
|
@@ -2079,23 +2098,23 @@ function St() {
|
|
|
2079
2098
|
}
|
|
2080
2099
|
);
|
|
2081
2100
|
}
|
|
2082
|
-
function
|
|
2083
|
-
const o =
|
|
2084
|
-
(
|
|
2085
|
-
(
|
|
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());
|
|
2086
2105
|
},
|
|
2087
|
-
[
|
|
2106
|
+
[n]
|
|
2088
2107
|
);
|
|
2089
|
-
return /* @__PURE__ */
|
|
2108
|
+
return /* @__PURE__ */ O(
|
|
2090
2109
|
"div",
|
|
2091
2110
|
{
|
|
2092
|
-
className: `gloss-dev-tuning-panel__row${
|
|
2111
|
+
className: `gloss-dev-tuning-panel__row${s ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
2093
2112
|
"data-tuning-row": e.key,
|
|
2094
2113
|
onKeyDown: o,
|
|
2095
2114
|
children: [
|
|
2096
2115
|
/* @__PURE__ */ c("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
|
|
2116
|
+
/* @__PURE__ */ O("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2117
|
+
Ft(t, e.step),
|
|
2099
2118
|
e.unit ? ` ${e.unit}` : ""
|
|
2100
2119
|
] }),
|
|
2101
2120
|
/* @__PURE__ */ c(
|
|
@@ -2109,7 +2128,7 @@ function Tt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2109
2128
|
step: e.step,
|
|
2110
2129
|
value: t,
|
|
2111
2130
|
"aria-label": e.label,
|
|
2112
|
-
onChange: (
|
|
2131
|
+
onChange: (l) => a(Number(l.target.value))
|
|
2113
2132
|
}
|
|
2114
2133
|
),
|
|
2115
2134
|
/* @__PURE__ */ c(
|
|
@@ -2118,15 +2137,15 @@ function Tt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2118
2137
|
type: "button",
|
|
2119
2138
|
className: "gloss-dev-tuning-panel__reset",
|
|
2120
2139
|
"aria-label": `Reset ${e.label}`,
|
|
2121
|
-
onClick:
|
|
2122
|
-
children: /* @__PURE__ */ c(
|
|
2140
|
+
onClick: n,
|
|
2141
|
+
children: /* @__PURE__ */ c(Et, {})
|
|
2123
2142
|
}
|
|
2124
2143
|
)
|
|
2125
2144
|
]
|
|
2126
2145
|
}
|
|
2127
2146
|
);
|
|
2128
2147
|
}
|
|
2129
|
-
function
|
|
2148
|
+
function At() {
|
|
2130
2149
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2131
2150
|
try {
|
|
2132
2151
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2134,23 +2153,23 @@ function _t() {
|
|
|
2134
2153
|
return !1;
|
|
2135
2154
|
}
|
|
2136
2155
|
}
|
|
2137
|
-
function
|
|
2138
|
-
return
|
|
2156
|
+
function Lt(e = {}) {
|
|
2157
|
+
return At() ? /* @__PURE__ */ c($t, {}) : null;
|
|
2139
2158
|
}
|
|
2140
|
-
|
|
2141
|
-
function
|
|
2142
|
-
const e =
|
|
2143
|
-
|
|
2144
|
-
|
|
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;
|
|
2145
2164
|
}, 200);
|
|
2146
|
-
}, []), u =
|
|
2147
|
-
(
|
|
2148
|
-
|
|
2165
|
+
}, []), u = f(
|
|
2166
|
+
(i, d) => {
|
|
2167
|
+
a(i, d), i === "snapInPx" && d > t.snapOutPx && (a("snapOutPx", d), h("snapOutPx"));
|
|
2149
2168
|
},
|
|
2150
|
-
[
|
|
2151
|
-
),
|
|
2152
|
-
return /* @__PURE__ */
|
|
2153
|
-
|
|
2169
|
+
[a, t.snapOutPx, h]
|
|
2170
|
+
), D = ae(() => Pt, []), v = ze();
|
|
2171
|
+
return /* @__PURE__ */ O(
|
|
2172
|
+
xe.div,
|
|
2154
2173
|
{
|
|
2155
2174
|
className: "gloss-dev-tuning-panel",
|
|
2156
2175
|
role: "region",
|
|
@@ -2158,37 +2177,37 @@ function Rt() {
|
|
|
2158
2177
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2159
2178
|
drag: !0,
|
|
2160
2179
|
dragListener: !1,
|
|
2161
|
-
dragControls:
|
|
2180
|
+
dragControls: v,
|
|
2162
2181
|
dragMomentum: !1,
|
|
2163
2182
|
children: [
|
|
2164
|
-
/* @__PURE__ */
|
|
2183
|
+
/* @__PURE__ */ O(
|
|
2165
2184
|
"div",
|
|
2166
2185
|
{
|
|
2167
2186
|
className: "gloss-dev-tuning-panel__header",
|
|
2168
|
-
onPointerDown: (
|
|
2187
|
+
onPointerDown: (i) => v.start(i),
|
|
2169
2188
|
children: [
|
|
2170
2189
|
/* @__PURE__ */ c("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2171
2190
|
/* @__PURE__ */ c("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2172
2191
|
]
|
|
2173
2192
|
}
|
|
2174
2193
|
),
|
|
2175
|
-
/* @__PURE__ */ c("div", { className: "gloss-dev-tuning-panel__body", children:
|
|
2176
|
-
|
|
2194
|
+
/* @__PURE__ */ c("div", { className: "gloss-dev-tuning-panel__body", children: D.map((i) => /* @__PURE__ */ c(
|
|
2195
|
+
Ot,
|
|
2177
2196
|
{
|
|
2178
|
-
spec:
|
|
2179
|
-
value: t[
|
|
2180
|
-
onChange: (d) => u(
|
|
2181
|
-
onReset: () =>
|
|
2182
|
-
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
|
|
2183
2202
|
},
|
|
2184
|
-
|
|
2203
|
+
i.key
|
|
2185
2204
|
)) }),
|
|
2186
2205
|
/* @__PURE__ */ c("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ c(
|
|
2187
2206
|
"button",
|
|
2188
2207
|
{
|
|
2189
2208
|
type: "button",
|
|
2190
2209
|
className: "gloss-dev-tuning-panel__reset-all",
|
|
2191
|
-
onClick:
|
|
2210
|
+
onClick: s,
|
|
2192
2211
|
children: "Reset all"
|
|
2193
2212
|
}
|
|
2194
2213
|
) })
|
|
@@ -2204,43 +2223,43 @@ const U = {
|
|
|
2204
2223
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2205
2224
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2206
2225
|
};
|
|
2207
|
-
function
|
|
2226
|
+
function Bt({
|
|
2208
2227
|
message: e,
|
|
2209
2228
|
primaryAction: t,
|
|
2210
|
-
onDismiss:
|
|
2211
|
-
anchorEl:
|
|
2212
|
-
anchorSelector:
|
|
2229
|
+
onDismiss: a,
|
|
2230
|
+
anchorEl: n,
|
|
2231
|
+
anchorSelector: s
|
|
2213
2232
|
}) {
|
|
2214
|
-
const [o,
|
|
2233
|
+
const [o, l] = K.useState(null), m = K.useMemo(
|
|
2215
2234
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
2216
2235
|
[]
|
|
2217
2236
|
);
|
|
2218
|
-
|
|
2219
|
-
!
|
|
2237
|
+
K.useEffect(() => {
|
|
2238
|
+
!n && !s && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
2220
2239
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2221
2240
|
);
|
|
2222
|
-
}, [
|
|
2241
|
+
}, [n, s]), K.useLayoutEffect(() => {
|
|
2223
2242
|
let u = null;
|
|
2224
|
-
if (
|
|
2225
|
-
const
|
|
2226
|
-
|
|
2227
|
-
top:
|
|
2228
|
-
left:
|
|
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
|
|
2229
2248
|
});
|
|
2230
2249
|
}
|
|
2231
|
-
}, [
|
|
2250
|
+
}, [n, s]);
|
|
2232
2251
|
const h = o ? { top: o.top, left: o.left } : {};
|
|
2233
|
-
return /* @__PURE__ */
|
|
2252
|
+
return /* @__PURE__ */ O(
|
|
2234
2253
|
"div",
|
|
2235
2254
|
{
|
|
2236
2255
|
className: U["gloss-inline-nudge"],
|
|
2237
2256
|
style: h,
|
|
2238
2257
|
role: "status",
|
|
2239
2258
|
"aria-live": "polite",
|
|
2240
|
-
"data-reduced-motion":
|
|
2259
|
+
"data-reduced-motion": m ? "true" : void 0,
|
|
2241
2260
|
children: [
|
|
2242
2261
|
/* @__PURE__ */ c("span", { className: U["gloss-inline-nudge__message"], children: e }),
|
|
2243
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ O("div", { className: U["gloss-inline-nudge__actions"], children: [
|
|
2244
2263
|
/* @__PURE__ */ c(
|
|
2245
2264
|
"button",
|
|
2246
2265
|
{
|
|
@@ -2255,7 +2274,7 @@ function Mt({
|
|
|
2255
2274
|
{
|
|
2256
2275
|
type: "button",
|
|
2257
2276
|
className: `${U["gloss-inline-nudge__btn"]} ${U["gloss-inline-nudge__btn--dismiss"]}`,
|
|
2258
|
-
onClick:
|
|
2277
|
+
onClick: a,
|
|
2259
2278
|
"aria-label": "Dismiss",
|
|
2260
2279
|
children: "Dismiss"
|
|
2261
2280
|
}
|
|
@@ -2265,114 +2284,114 @@ function Mt({
|
|
|
2265
2284
|
}
|
|
2266
2285
|
);
|
|
2267
2286
|
}
|
|
2268
|
-
|
|
2269
|
-
function
|
|
2287
|
+
Bt.displayName = "InlineNudge";
|
|
2288
|
+
function fe(e) {
|
|
2270
2289
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
2271
2290
|
}
|
|
2272
|
-
function
|
|
2273
|
-
if (
|
|
2274
|
-
const
|
|
2275
|
-
return `linear-gradient(to right, ${
|
|
2291
|
+
function Kt(e, t, a) {
|
|
2292
|
+
if (a <= t) {
|
|
2293
|
+
const l = e[0], m = l ? fe(l) : "#888";
|
|
2294
|
+
return `linear-gradient(to right, ${m}, ${m})`;
|
|
2276
2295
|
}
|
|
2277
|
-
const
|
|
2278
|
-
const
|
|
2279
|
-
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)}%`;
|
|
2280
2299
|
});
|
|
2281
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(", ")})`;
|
|
2282
2301
|
}
|
|
2283
|
-
function
|
|
2302
|
+
function Wt(e) {
|
|
2284
2303
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
2285
2304
|
}
|
|
2286
|
-
function
|
|
2305
|
+
function Gt({
|
|
2287
2306
|
stops: e,
|
|
2288
2307
|
onChange: t,
|
|
2289
|
-
min:
|
|
2290
|
-
max:
|
|
2291
|
-
step:
|
|
2308
|
+
min: a = 0,
|
|
2309
|
+
max: n = 100,
|
|
2310
|
+
step: s,
|
|
2292
2311
|
disabled: o = !1
|
|
2293
2312
|
}) {
|
|
2294
|
-
const
|
|
2295
|
-
`ThresholdRamp: step (${
|
|
2296
|
-
), 0.01) :
|
|
2297
|
-
(
|
|
2298
|
-
[
|
|
2299
|
-
), h =
|
|
2300
|
-
|
|
2301
|
-
|
|
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));
|
|
2302
2321
|
}, [d, e, u]);
|
|
2303
|
-
const I =
|
|
2304
|
-
(
|
|
2305
|
-
if (!h.current) return
|
|
2306
|
-
const
|
|
2307
|
-
return
|
|
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);
|
|
2308
2327
|
},
|
|
2309
|
-
[
|
|
2328
|
+
[a, n, m]
|
|
2310
2329
|
);
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
`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.`
|
|
2314
2333
|
);
|
|
2315
|
-
}, [
|
|
2316
|
-
const S =
|
|
2317
|
-
(
|
|
2318
|
-
const
|
|
2319
|
-
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));
|
|
2320
2339
|
},
|
|
2321
|
-
[o,
|
|
2322
|
-
),
|
|
2323
|
-
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2340
|
+
[o, v]
|
|
2341
|
+
), R = P(v);
|
|
2342
|
+
R.current = v;
|
|
2343
|
+
const C = P(t);
|
|
2344
|
+
C.current = t, L(() => {
|
|
2326
2345
|
if (!u) return;
|
|
2327
|
-
const
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
(
|
|
2346
|
+
const r = (b) => {
|
|
2347
|
+
const x = p(b.clientX);
|
|
2348
|
+
i(
|
|
2349
|
+
(w) => w.map((T) => T.id === u ? { ...T, value: x } : T)
|
|
2331
2350
|
);
|
|
2332
|
-
},
|
|
2333
|
-
const
|
|
2334
|
-
(
|
|
2351
|
+
}, g = (b) => {
|
|
2352
|
+
const x = p(b.clientX), w = R.current.map(
|
|
2353
|
+
(T) => T.id === u ? { ...T, value: x } : T
|
|
2335
2354
|
);
|
|
2336
|
-
|
|
2355
|
+
i(w), D(null), C.current(w);
|
|
2337
2356
|
};
|
|
2338
|
-
return window.addEventListener("pointermove",
|
|
2339
|
-
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);
|
|
2340
2359
|
};
|
|
2341
|
-
}, [u,
|
|
2342
|
-
const
|
|
2343
|
-
(
|
|
2344
|
-
if (o ||
|
|
2345
|
-
const
|
|
2346
|
-
if (
|
|
2347
|
-
const
|
|
2348
|
-
let
|
|
2349
|
-
switch (
|
|
2360
|
+
}, [u, p]);
|
|
2361
|
+
const _ = n - a > 0 ? n - a : 1, k = f(
|
|
2362
|
+
(r, g) => {
|
|
2363
|
+
if (o || g.disabled) return;
|
|
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) {
|
|
2350
2369
|
case "ArrowRight":
|
|
2351
2370
|
case "ArrowUp":
|
|
2352
|
-
|
|
2371
|
+
w = g.value + x;
|
|
2353
2372
|
break;
|
|
2354
2373
|
case "ArrowLeft":
|
|
2355
2374
|
case "ArrowDown":
|
|
2356
|
-
|
|
2375
|
+
w = g.value - x;
|
|
2357
2376
|
break;
|
|
2358
2377
|
case "Home":
|
|
2359
|
-
|
|
2378
|
+
w = a;
|
|
2360
2379
|
break;
|
|
2361
2380
|
case "End":
|
|
2362
|
-
|
|
2381
|
+
w = n;
|
|
2363
2382
|
break;
|
|
2364
2383
|
default:
|
|
2365
2384
|
return;
|
|
2366
2385
|
}
|
|
2367
|
-
|
|
2368
|
-
const
|
|
2369
|
-
if (
|
|
2370
|
-
const
|
|
2371
|
-
(
|
|
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
|
|
2372
2391
|
);
|
|
2373
|
-
|
|
2392
|
+
i(H), t(H);
|
|
2374
2393
|
},
|
|
2375
|
-
[o,
|
|
2394
|
+
[o, a, n, v, t, m]
|
|
2376
2395
|
);
|
|
2377
2396
|
return /* @__PURE__ */ c("div", { className: "gloss-threshold-ramp", "data-disabled": o || void 0, children: /* @__PURE__ */ c(
|
|
2378
2397
|
"div",
|
|
@@ -2380,262 +2399,262 @@ function Et({
|
|
|
2380
2399
|
ref: h,
|
|
2381
2400
|
className: "gloss-threshold-ramp__track",
|
|
2382
2401
|
style: { background: I },
|
|
2383
|
-
children:
|
|
2384
|
-
const
|
|
2402
|
+
children: v.map((r) => {
|
|
2403
|
+
const g = (r.value - a) / _ * 100;
|
|
2385
2404
|
return /* @__PURE__ */ c(
|
|
2386
2405
|
"span",
|
|
2387
2406
|
{
|
|
2388
2407
|
className: "gloss-threshold-ramp__stop",
|
|
2389
2408
|
style: {
|
|
2390
|
-
left: `${
|
|
2391
|
-
color:
|
|
2409
|
+
left: `${g}%`,
|
|
2410
|
+
color: fe(r)
|
|
2392
2411
|
},
|
|
2393
|
-
"data-disabled":
|
|
2394
|
-
"data-dragging": u ===
|
|
2395
|
-
onPointerDown: (
|
|
2396
|
-
onKeyDown: (
|
|
2397
|
-
"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}`,
|
|
2398
2417
|
role: "slider",
|
|
2399
|
-
"aria-valuenow":
|
|
2400
|
-
"aria-valuemin":
|
|
2401
|
-
"aria-valuemax":
|
|
2402
|
-
"aria-disabled":
|
|
2403
|
-
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
|
|
2404
2423
|
},
|
|
2405
|
-
|
|
2424
|
+
r.id
|
|
2406
2425
|
);
|
|
2407
2426
|
})
|
|
2408
2427
|
}
|
|
2409
2428
|
) });
|
|
2410
2429
|
}
|
|
2411
|
-
|
|
2412
|
-
const
|
|
2413
|
-
function
|
|
2414
|
-
return
|
|
2430
|
+
Gt.displayName = "ThresholdRamp";
|
|
2431
|
+
const Pe = Ge(null);
|
|
2432
|
+
function Vt() {
|
|
2433
|
+
return Ve(Pe);
|
|
2415
2434
|
}
|
|
2416
|
-
function
|
|
2417
|
-
const t =
|
|
2418
|
-
|
|
2419
|
-
}, [
|
|
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(
|
|
2420
2439
|
(u) => {
|
|
2421
|
-
|
|
2440
|
+
n || t?.onKeyNav(u, e.value);
|
|
2422
2441
|
},
|
|
2423
|
-
[
|
|
2424
|
-
),
|
|
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;
|
|
2425
2444
|
return /* @__PURE__ */ c(
|
|
2426
2445
|
"button",
|
|
2427
2446
|
{
|
|
2428
2447
|
ref: (u) => t?.registerRef(e.value, u),
|
|
2429
2448
|
type: "button",
|
|
2430
2449
|
role: "radio",
|
|
2431
|
-
"aria-checked":
|
|
2450
|
+
"aria-checked": a,
|
|
2432
2451
|
className: "gloss-preset-swatch-row__swatch",
|
|
2433
|
-
style: { backgroundColor:
|
|
2434
|
-
"data-selected":
|
|
2435
|
-
"data-disabled":
|
|
2436
|
-
...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 } : {},
|
|
2437
2456
|
"aria-label": e.label ?? e.value,
|
|
2438
|
-
"aria-disabled":
|
|
2439
|
-
disabled:
|
|
2457
|
+
"aria-disabled": n,
|
|
2458
|
+
disabled: n,
|
|
2440
2459
|
tabIndex: h,
|
|
2441
|
-
onClick:
|
|
2460
|
+
onClick: s,
|
|
2442
2461
|
onKeyDown: o
|
|
2443
2462
|
}
|
|
2444
2463
|
);
|
|
2445
2464
|
}
|
|
2446
|
-
function
|
|
2465
|
+
function zt({
|
|
2447
2466
|
swatches: e,
|
|
2448
2467
|
value: t,
|
|
2449
|
-
defaultValue:
|
|
2450
|
-
onChange:
|
|
2451
|
-
disabled:
|
|
2468
|
+
defaultValue: a,
|
|
2469
|
+
onChange: n,
|
|
2470
|
+
disabled: s = !1,
|
|
2452
2471
|
name: o
|
|
2453
2472
|
}) {
|
|
2454
|
-
const
|
|
2455
|
-
(
|
|
2456
|
-
|
|
2473
|
+
const l = t !== void 0, [m, h] = $(a), u = l ? t : m, D = f(
|
|
2474
|
+
(C) => {
|
|
2475
|
+
l || h(C), n?.(C);
|
|
2457
2476
|
},
|
|
2458
|
-
[
|
|
2459
|
-
),
|
|
2460
|
-
(
|
|
2477
|
+
[l, n]
|
|
2478
|
+
), v = f(
|
|
2479
|
+
(C) => u === C,
|
|
2461
2480
|
[u]
|
|
2462
|
-
),
|
|
2463
|
-
|
|
2464
|
-
}, []),
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2467
|
-
}, []), S =
|
|
2468
|
-
(
|
|
2469
|
-
if (
|
|
2470
|
-
const
|
|
2471
|
-
if (
|
|
2472
|
-
const
|
|
2473
|
-
if (
|
|
2474
|
-
let
|
|
2475
|
-
switch (
|
|
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);
|
|
2485
|
+
_ && _.focus();
|
|
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) {
|
|
2476
2495
|
case "ArrowRight":
|
|
2477
2496
|
case "ArrowDown":
|
|
2478
|
-
|
|
2497
|
+
g = (r + 1) % k.length;
|
|
2479
2498
|
break;
|
|
2480
2499
|
case "ArrowLeft":
|
|
2481
2500
|
case "ArrowUp":
|
|
2482
|
-
|
|
2501
|
+
g = (r - 1 + k.length) % k.length;
|
|
2483
2502
|
break;
|
|
2484
2503
|
case "Home":
|
|
2485
|
-
|
|
2504
|
+
g = 0;
|
|
2486
2505
|
break;
|
|
2487
2506
|
case "End":
|
|
2488
|
-
|
|
2507
|
+
g = k.length - 1;
|
|
2489
2508
|
break;
|
|
2490
2509
|
case " ":
|
|
2491
2510
|
case "Enter":
|
|
2492
|
-
|
|
2511
|
+
C.preventDefault(), D(_);
|
|
2493
2512
|
return;
|
|
2494
2513
|
default:
|
|
2495
2514
|
return;
|
|
2496
2515
|
}
|
|
2497
|
-
|
|
2498
|
-
const
|
|
2499
|
-
|
|
2516
|
+
C.preventDefault();
|
|
2517
|
+
const b = k[g].value;
|
|
2518
|
+
p(b), D(b);
|
|
2500
2519
|
},
|
|
2501
|
-
[
|
|
2502
|
-
),
|
|
2520
|
+
[s, e, D, p]
|
|
2521
|
+
), R = {
|
|
2503
2522
|
selectedValue: u,
|
|
2504
|
-
select:
|
|
2505
|
-
isSelected:
|
|
2506
|
-
groupDisabled:
|
|
2523
|
+
select: D,
|
|
2524
|
+
isSelected: v,
|
|
2525
|
+
groupDisabled: s,
|
|
2507
2526
|
name: o,
|
|
2508
2527
|
registerRef: d,
|
|
2509
2528
|
firstFocusableValue: I,
|
|
2510
2529
|
onKeyNav: S
|
|
2511
2530
|
};
|
|
2512
|
-
return /* @__PURE__ */ c(
|
|
2531
|
+
return /* @__PURE__ */ c(Pe.Provider, { value: R, children: /* @__PURE__ */ c(
|
|
2513
2532
|
"div",
|
|
2514
2533
|
{
|
|
2515
2534
|
className: "gloss-preset-swatch-row",
|
|
2516
2535
|
role: "radiogroup",
|
|
2517
2536
|
"aria-label": o,
|
|
2518
|
-
"aria-disabled":
|
|
2519
|
-
"data-disabled":
|
|
2520
|
-
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))
|
|
2521
2540
|
}
|
|
2522
2541
|
) });
|
|
2523
2542
|
}
|
|
2524
|
-
|
|
2525
|
-
function
|
|
2526
|
-
for (const
|
|
2527
|
-
if (
|
|
2528
|
-
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;
|
|
2529
2548
|
return null;
|
|
2530
2549
|
}
|
|
2531
|
-
function
|
|
2532
|
-
const
|
|
2533
|
-
return
|
|
2550
|
+
function ke(e, t) {
|
|
2551
|
+
const a = e.find((n) => n.zoneKey === t);
|
|
2552
|
+
return a ? a.zoneKey : be(e, t);
|
|
2534
2553
|
}
|
|
2535
|
-
function
|
|
2536
|
-
const
|
|
2537
|
-
return
|
|
2554
|
+
function Zt(e, t, a) {
|
|
2555
|
+
const n = [...e], [s] = n.splice(t, 1);
|
|
2556
|
+
return n.splice(a, 0, s), n;
|
|
2538
2557
|
}
|
|
2539
|
-
function
|
|
2540
|
-
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("|");
|
|
2541
2560
|
}
|
|
2542
|
-
function
|
|
2543
|
-
const [t,
|
|
2544
|
-
() => e.zones.map((
|
|
2545
|
-
`useSortableZones: zone "${
|
|
2546
|
-
), { ...
|
|
2547
|
-
), [
|
|
2561
|
+
function Yt(e) {
|
|
2562
|
+
const [t, a] = $(
|
|
2563
|
+
() => e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2564
|
+
`useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
|
|
2565
|
+
), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
|
|
2566
|
+
), [n, s] = $(null), [o, l] = $(null), m = P(null), h = P(e.onZoneChange);
|
|
2548
2567
|
h.current = e.onZoneChange;
|
|
2549
|
-
const u =
|
|
2550
|
-
() =>
|
|
2568
|
+
const u = ae(
|
|
2569
|
+
() => Ut(e.zones),
|
|
2551
2570
|
[e.zones]
|
|
2552
|
-
),
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
e.zones.map((
|
|
2556
|
-
`useSortableZones: zone "${
|
|
2557
|
-
), { ...
|
|
2571
|
+
), D = P(u);
|
|
2572
|
+
L(() => {
|
|
2573
|
+
D.current !== u && (D.current = u, !n && a(
|
|
2574
|
+
e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2575
|
+
`useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
|
|
2576
|
+
), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
|
|
2558
2577
|
));
|
|
2559
|
-
}, [u, e.zones,
|
|
2560
|
-
const
|
|
2561
|
-
(
|
|
2562
|
-
const S =
|
|
2563
|
-
let
|
|
2564
|
-
for (const
|
|
2565
|
-
const
|
|
2566
|
-
if (
|
|
2567
|
-
|
|
2578
|
+
}, [u, e.zones, n]);
|
|
2579
|
+
const v = f(
|
|
2580
|
+
(p) => {
|
|
2581
|
+
const S = p.active.id;
|
|
2582
|
+
let R = null, C = null;
|
|
2583
|
+
for (const _ of t) {
|
|
2584
|
+
const k = _.items.find((r) => r.id === S);
|
|
2585
|
+
if (k) {
|
|
2586
|
+
R = k, C = _.zoneKey;
|
|
2568
2587
|
break;
|
|
2569
2588
|
}
|
|
2570
2589
|
}
|
|
2571
|
-
|
|
2590
|
+
m.current = C, s(R), l(C);
|
|
2572
2591
|
},
|
|
2573
2592
|
[t]
|
|
2574
|
-
),
|
|
2575
|
-
(
|
|
2576
|
-
if (!
|
|
2577
|
-
|
|
2593
|
+
), i = f(
|
|
2594
|
+
(p) => {
|
|
2595
|
+
if (!p.over) {
|
|
2596
|
+
l(m.current);
|
|
2578
2597
|
return;
|
|
2579
2598
|
}
|
|
2580
|
-
const S =
|
|
2581
|
-
|
|
2599
|
+
const S = ke(t, p.over.id);
|
|
2600
|
+
l(S);
|
|
2582
2601
|
},
|
|
2583
2602
|
[t]
|
|
2584
|
-
), d =
|
|
2585
|
-
(
|
|
2586
|
-
const { active: S, over:
|
|
2587
|
-
|
|
2603
|
+
), d = f(
|
|
2604
|
+
(p) => {
|
|
2605
|
+
const { active: S, over: R } = p, C = () => {
|
|
2606
|
+
m.current = null, s(null), l(null);
|
|
2588
2607
|
};
|
|
2589
|
-
if (!
|
|
2590
|
-
|
|
2608
|
+
if (!R) {
|
|
2609
|
+
C();
|
|
2591
2610
|
return;
|
|
2592
2611
|
}
|
|
2593
|
-
const
|
|
2594
|
-
if (!
|
|
2595
|
-
|
|
2612
|
+
const _ = be(t, S.id), k = ke(t, R.id);
|
|
2613
|
+
if (!_ || !k) {
|
|
2614
|
+
C();
|
|
2596
2615
|
return;
|
|
2597
2616
|
}
|
|
2598
|
-
let
|
|
2599
|
-
if (
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2602
|
-
...
|
|
2603
|
-
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)
|
|
2604
2623
|
};
|
|
2605
2624
|
} else {
|
|
2606
|
-
const
|
|
2607
|
-
if (!
|
|
2608
|
-
|
|
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();
|
|
2609
2628
|
return;
|
|
2610
2629
|
}
|
|
2611
|
-
const
|
|
2612
|
-
let
|
|
2613
|
-
if (
|
|
2614
|
-
const
|
|
2615
|
-
|
|
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];
|
|
2616
2635
|
}
|
|
2617
|
-
const
|
|
2618
|
-
...
|
|
2619
|
-
|
|
2620
|
-
...
|
|
2636
|
+
const Q = Math.min(z, G.length), q = [
|
|
2637
|
+
...G.slice(0, Q),
|
|
2638
|
+
T,
|
|
2639
|
+
...G.slice(Q)
|
|
2621
2640
|
];
|
|
2622
|
-
|
|
2641
|
+
r[g] = { ...x, items: Z }, r[b] = { ...w, items: q };
|
|
2623
2642
|
}
|
|
2624
|
-
|
|
2643
|
+
a(r), h.current?.(r), C();
|
|
2625
2644
|
},
|
|
2626
2645
|
[t]
|
|
2627
|
-
),
|
|
2628
|
-
(
|
|
2629
|
-
id:
|
|
2630
|
-
"data-zone-key":
|
|
2646
|
+
), y = f(
|
|
2647
|
+
(p) => ({
|
|
2648
|
+
id: p,
|
|
2649
|
+
"data-zone-key": p
|
|
2631
2650
|
}),
|
|
2632
2651
|
[]
|
|
2633
|
-
), I =
|
|
2634
|
-
(
|
|
2635
|
-
const S =
|
|
2652
|
+
), I = f(
|
|
2653
|
+
(p) => {
|
|
2654
|
+
const S = be(t, p.id) ?? "";
|
|
2636
2655
|
return {
|
|
2637
|
-
id:
|
|
2638
|
-
"data-item-id":
|
|
2656
|
+
id: p.id,
|
|
2657
|
+
"data-item-id": p.id,
|
|
2639
2658
|
"data-zone-key": S
|
|
2640
2659
|
};
|
|
2641
2660
|
},
|
|
@@ -2644,16 +2663,16 @@ function Kt(e) {
|
|
|
2644
2663
|
return {
|
|
2645
2664
|
zones: t,
|
|
2646
2665
|
activeZone: o,
|
|
2647
|
-
activeItem:
|
|
2648
|
-
getZoneProps:
|
|
2666
|
+
activeItem: n,
|
|
2667
|
+
getZoneProps: y,
|
|
2649
2668
|
getItemProps: I,
|
|
2650
|
-
handleDragStart:
|
|
2651
|
-
handleDragOver:
|
|
2669
|
+
handleDragStart: v,
|
|
2670
|
+
handleDragOver: i,
|
|
2652
2671
|
handleDragEnd: d
|
|
2653
2672
|
};
|
|
2654
2673
|
}
|
|
2655
|
-
let
|
|
2656
|
-
const
|
|
2674
|
+
let te = null, re = null, ue = !1;
|
|
2675
|
+
const qt = [
|
|
2657
2676
|
"DndContext",
|
|
2658
2677
|
"DragOverlay",
|
|
2659
2678
|
"useSensors",
|
|
@@ -2662,433 +2681,433 @@ const Gt = [
|
|
|
2662
2681
|
"PointerSensor",
|
|
2663
2682
|
"KeyboardSensor",
|
|
2664
2683
|
"closestCenter"
|
|
2665
|
-
],
|
|
2684
|
+
], jt = [
|
|
2666
2685
|
"SortableContext",
|
|
2667
2686
|
"useSortable",
|
|
2668
2687
|
"verticalListSortingStrategy"
|
|
2669
2688
|
];
|
|
2670
|
-
function
|
|
2671
|
-
const
|
|
2672
|
-
for (const o of
|
|
2673
|
-
|
|
2674
|
-
const
|
|
2675
|
-
for (const o of
|
|
2676
|
-
|
|
2677
|
-
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 };
|
|
2678
2697
|
}
|
|
2679
|
-
function
|
|
2680
|
-
return
|
|
2698
|
+
function Qt() {
|
|
2699
|
+
return te ? Promise.resolve(te) : ue ? Promise.resolve(null) : re || (re = (async () => {
|
|
2681
2700
|
try {
|
|
2682
|
-
const [e, t,
|
|
2701
|
+
const [e, t, a] = await Promise.all([
|
|
2683
2702
|
import("@dnd-kit/core"),
|
|
2684
2703
|
import("@dnd-kit/sortable"),
|
|
2685
2704
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
2686
2705
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
2687
2706
|
), {}))
|
|
2688
|
-
]),
|
|
2689
|
-
return
|
|
2707
|
+
]), n = Xt(e, t);
|
|
2708
|
+
return n.ok ? (te = {
|
|
2690
2709
|
core: e,
|
|
2691
2710
|
sortable: t,
|
|
2692
|
-
utilities:
|
|
2693
|
-
},
|
|
2694
|
-
`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.`
|
|
2695
2714
|
), null);
|
|
2696
2715
|
} catch {
|
|
2697
|
-
return
|
|
2716
|
+
return ue = !0, null;
|
|
2698
2717
|
}
|
|
2699
|
-
})(),
|
|
2718
|
+
})(), re);
|
|
2700
2719
|
}
|
|
2701
|
-
function
|
|
2702
|
-
const { zones: t, onZoneChange:
|
|
2703
|
-
return
|
|
2704
|
-
if (
|
|
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);
|
|
2722
|
+
return K.useEffect(() => {
|
|
2723
|
+
if (m) return;
|
|
2705
2724
|
let u = !0;
|
|
2706
|
-
return
|
|
2707
|
-
u && h(
|
|
2725
|
+
return Qt().then((D) => {
|
|
2726
|
+
u && h(D);
|
|
2708
2727
|
}), () => {
|
|
2709
2728
|
u = !1;
|
|
2710
2729
|
};
|
|
2711
|
-
}, [
|
|
2712
|
-
|
|
2730
|
+
}, [m]), m ? /* @__PURE__ */ c(
|
|
2731
|
+
Fe,
|
|
2713
2732
|
{
|
|
2714
|
-
state:
|
|
2715
|
-
modules:
|
|
2716
|
-
renderZone:
|
|
2717
|
-
renderItem:
|
|
2733
|
+
state: l,
|
|
2734
|
+
modules: m,
|
|
2735
|
+
renderZone: n,
|
|
2736
|
+
renderItem: s,
|
|
2718
2737
|
renderDragOverlay: o
|
|
2719
2738
|
}
|
|
2720
|
-
) : /* @__PURE__ */ c("div", { "data-sortable-zones-passive": "true", children:
|
|
2721
|
-
const
|
|
2722
|
-
return /* @__PURE__ */ c("div", { ...
|
|
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);
|
|
2723
2742
|
}) });
|
|
2724
2743
|
}
|
|
2725
|
-
|
|
2726
|
-
function
|
|
2744
|
+
Jt.displayName = "SortableZones";
|
|
2745
|
+
function Fe({
|
|
2727
2746
|
state: e,
|
|
2728
2747
|
modules: t,
|
|
2729
|
-
renderZone:
|
|
2730
|
-
renderItem:
|
|
2731
|
-
renderDragOverlay:
|
|
2748
|
+
renderZone: a,
|
|
2749
|
+
renderItem: n,
|
|
2750
|
+
renderDragOverlay: s
|
|
2732
2751
|
}) {
|
|
2733
|
-
const { core: o, sortable:
|
|
2734
|
-
|
|
2735
|
-
y
|
|
2736
|
-
),
|
|
2737
|
-
return /* @__PURE__ */
|
|
2738
|
-
|
|
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;
|
|
2756
|
+
return /* @__PURE__ */ O(
|
|
2757
|
+
C,
|
|
2739
2758
|
{
|
|
2740
|
-
sensors:
|
|
2759
|
+
sensors: R,
|
|
2741
2760
|
collisionDetection: I,
|
|
2742
2761
|
onDragStart: e.handleDragStart,
|
|
2743
2762
|
onDragOver: e.handleDragOver,
|
|
2744
2763
|
onDragEnd: e.handleDragEnd,
|
|
2745
2764
|
children: [
|
|
2746
|
-
e.zones.map((
|
|
2747
|
-
const
|
|
2748
|
-
|
|
2765
|
+
e.zones.map((r) => {
|
|
2766
|
+
const g = r.items.map((x) => x.id), b = r.items.map((x) => /* @__PURE__ */ c(
|
|
2767
|
+
Ee,
|
|
2749
2768
|
{
|
|
2750
|
-
id:
|
|
2751
|
-
useSortable:
|
|
2752
|
-
cssHelper:
|
|
2753
|
-
children:
|
|
2769
|
+
id: x.id,
|
|
2770
|
+
useSortable: l.useSortable,
|
|
2771
|
+
cssHelper: m.CSS,
|
|
2772
|
+
children: n(x)
|
|
2754
2773
|
},
|
|
2755
|
-
|
|
2774
|
+
x.id
|
|
2756
2775
|
));
|
|
2757
2776
|
return /* @__PURE__ */ c(
|
|
2758
|
-
|
|
2777
|
+
Oe,
|
|
2759
2778
|
{
|
|
2760
|
-
zoneKey:
|
|
2761
|
-
zoneProps: e.getZoneProps(
|
|
2762
|
-
useDroppable:
|
|
2763
|
-
children: /* @__PURE__ */ c(
|
|
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) })
|
|
2764
2783
|
},
|
|
2765
|
-
|
|
2784
|
+
r.zoneKey
|
|
2766
2785
|
);
|
|
2767
2786
|
}),
|
|
2768
|
-
/* @__PURE__ */ c(
|
|
2787
|
+
/* @__PURE__ */ c(_, { children: e.activeItem ? s?.(e.activeItem) ?? n(e.activeItem) : null })
|
|
2769
2788
|
]
|
|
2770
2789
|
}
|
|
2771
2790
|
);
|
|
2772
2791
|
}
|
|
2773
|
-
|
|
2774
|
-
function
|
|
2775
|
-
const { attributes:
|
|
2776
|
-
transform:
|
|
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,
|
|
2777
2796
|
transition: h,
|
|
2778
2797
|
opacity: u ? 0.5 : 1
|
|
2779
2798
|
};
|
|
2780
|
-
return /* @__PURE__ */ c("div", { ref:
|
|
2799
|
+
return /* @__PURE__ */ c("div", { ref: l, style: D, "data-sortable-item-id": e, ...s, ...o, children: n });
|
|
2781
2800
|
}
|
|
2782
|
-
|
|
2783
|
-
function
|
|
2801
|
+
Ee.displayName = "SortableItem";
|
|
2802
|
+
function Oe({
|
|
2784
2803
|
zoneKey: e,
|
|
2785
2804
|
zoneProps: t,
|
|
2786
|
-
useDroppable:
|
|
2787
|
-
children:
|
|
2805
|
+
useDroppable: a,
|
|
2806
|
+
children: n
|
|
2788
2807
|
}) {
|
|
2789
|
-
const { setNodeRef:
|
|
2790
|
-
return /* @__PURE__ */ c("div", { ref:
|
|
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 });
|
|
2791
2810
|
}
|
|
2792
|
-
|
|
2793
|
-
const
|
|
2794
|
-
const
|
|
2795
|
-
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 }) });
|
|
2796
2815
|
});
|
|
2797
|
-
|
|
2798
|
-
const
|
|
2799
|
-
const
|
|
2800
|
-
return delete
|
|
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: [
|
|
2801
2820
|
e && /* @__PURE__ */ c("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
2802
2821
|
t && /* @__PURE__ */ c("p", { className: "gloss-container-form-section__description", children: t }),
|
|
2803
|
-
/* @__PURE__ */ c(
|
|
2822
|
+
/* @__PURE__ */ c(he, { region: "form-section", density: a, children: n })
|
|
2804
2823
|
] });
|
|
2805
2824
|
});
|
|
2806
|
-
|
|
2807
|
-
const
|
|
2808
|
-
const
|
|
2809
|
-
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 }) });
|
|
2810
2829
|
});
|
|
2811
|
-
|
|
2830
|
+
nn.displayName = "ContainerTable";
|
|
2812
2831
|
export {
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
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,
|
|
2966
2985
|
Y as TUNING_DEFAULTS,
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
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
|
|
3094
3113
|
};
|