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