@mt-gloss/ui 0.1.4 → 0.1.6
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 +1004 -1001
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +7 -0
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as A, jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { motion as
|
|
6
|
-
import { B as
|
|
7
|
-
import { a as
|
|
8
|
-
import { createPortal as
|
|
9
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
17
|
-
const { enabled: t = !0, returnTo: n } = e, a =
|
|
18
|
-
return
|
|
1
|
+
import { N as Nn, T as Cn, O as _n, Q as kn, a3 as xn, b6 as Sn, az as Tn, ah as Rn, Z as In, an as Mn, K as Fn, a8 as Pn, bn as En, P as On, B as An, a as Ln, y as $n, H as Bn, bi as Kn, F as zn, J as Wn, A as Gn, z as Hn, bh as Vn, E as Un, D as Zn, bw as jn, b as Yn, C as qn, L as Qn, o as Xn, ad as Jn, aN as er, y as tr, H as ar, F as nr, J as rr, A as sr, z as or, E as ir, D as lr, a$ as cr, b2 as dr, b1 as ur, b0 as mr, b3 as pr, aC as gr, a5 as fr, a4 as hr, aq as br, k as vr, m as yr, aF as wr, ab as Dr, b8 as Nr, a9 as Cr, bo as _r, Y as kr, bG as xr, bF as Sr, bH as Tr, ap as Rr, aQ as Ir, ba as Mr, bL as Fr, bu as Pr, n as Er, am as Or, bA as Ar, br as Lr, a0 as $r, ar as Br, a2 as Kr, bz as zr, G as Wr, d as Gr, aa as Hr, bI as Vr, aT as Ur, r as Zr, v as jr, I as Yr, g as qr, aw as Qr, bM as Xr, M as Jr, w as es, U as ts, X as as, V as ns, W as rs, as as ss, bg as os, bO as is, bK as ls, ao as cs, t as ds, bp as us, aS as ms, aj as ps, aK as gs, ag as fs, al as hs, au as bs, aR as vs, ac as ys, at as ws, c as Ds, R as Ns, j as Cs, p as _s, aH as ks, bx as xs, by as Ss, ai as Ts, ae as Rs, h as Is, x as Ms, b7 as Fs, af as Ps, bN as Es, bc as Os, bf as As, bd as Ls, be as $s, i as Bs, b9 as Ks, bm as zs, S as Ws, bk as Gs, bl as Hs, av as Vs, bb as Us, bP as Zs, ak as js, s as Ys, bJ as qs, l as Qs, f as Xs, q as Js, _ as eo, $ as to, a7 as ao, bj as no, bv as ro, bC as so, aA as oo, aB as io, a6 as lo, aO as co, aP as uo, aD as mo, aE as po, aG as go, aV as fo, aW as ho, bE as bo, bD as vo, aY as yo, aZ as wo, ax as Do, ay as No, b5 as Co, b4 as _o, a_ as ko, aL as xo, aM as So, aX as To, aI as Ro, aJ as Io, u as Mo, bB as Fo, bq as Po, bs as Eo, bt as Oo, aU as Ao, a1 as Lo, e as $o } from "./Expandable-CsLVYNv3.js";
|
|
2
|
+
import { jsxs as A, jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import * as Ze from "react";
|
|
4
|
+
import H, { useRef as I, useEffect as L, useState as W, useCallback as y, forwardRef as je, useMemo as re, createContext as Ye, useContext as qe } from "react";
|
|
5
|
+
import { motion as Ie, useMotionValue as Qe, animate as _e, useDragControls as Xe } from "framer-motion";
|
|
6
|
+
import { B as Je, U as we } from "./UIContext-C3E-k7HI.js";
|
|
7
|
+
import { a as Ko, u as zo } from "./UIContext-C3E-k7HI.js";
|
|
8
|
+
import { createPortal as et } from "react-dom";
|
|
9
|
+
import { DEFAULT_MARKET_PRESETS as Go, DEFAULT_PINNED as Ho, PERIOD_OPTIONS as Vo, ROLLING_OPTIONS as Uo, TODAY_PRESET as Zo, findPreset as jo, formatDateRange as Yo, formatMarketDates as qo, formatTrend as Qo, formatValue as Xo, generateMarketId as Jo, getAllPresets as ei, getDateRangeForPreset as ti, getPresetLabel as ai, isInRange as ni, isMarketActive as ri, isSameDay as si, normalizePresetId as oi, toUppercasePresetId as ii } from "@mt-gloss/utils";
|
|
10
|
+
import tt from "@mui/icons-material/AccessTime";
|
|
11
|
+
import at from "@mui/icons-material/Tune";
|
|
12
|
+
import nt from "@mui/icons-material/ViewColumn";
|
|
13
|
+
import rt from "@mui/icons-material/AspectRatio";
|
|
14
|
+
import st from "@mui/icons-material/Palette";
|
|
15
|
+
import ot from "@mui/icons-material/PushPin";
|
|
16
|
+
function Na(e = {}) {
|
|
17
|
+
const { enabled: t = !0, returnTo: n } = e, a = I(null);
|
|
18
|
+
return L(() => {
|
|
19
19
|
t && (a.current = n || document.activeElement);
|
|
20
|
-
}, [t, n]),
|
|
20
|
+
}, [t, n]), L(() => () => {
|
|
21
21
|
t && a.current && setTimeout(() => {
|
|
22
22
|
a.current?.focus?.();
|
|
23
23
|
}, 0);
|
|
@@ -34,63 +34,63 @@ function Ca(e) {
|
|
|
34
34
|
isItemDisabled: l,
|
|
35
35
|
onSelect: b,
|
|
36
36
|
onEscape: p
|
|
37
|
-
} = e, [
|
|
37
|
+
} = e, [v, C] = W(-1), u = n !== void 0 ? n : v, c = y(
|
|
38
38
|
(i) => {
|
|
39
39
|
n === void 0 && C(i), a?.(i);
|
|
40
40
|
},
|
|
41
41
|
[n, a]
|
|
42
|
-
), g =
|
|
43
|
-
(i,
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
49
|
-
let _ =
|
|
50
|
-
return r ? _ = (_ +
|
|
42
|
+
), g = y(() => t.map((i, h) => ({ item: i, index: h })).filter(({ item: i, index: h }) => !l?.(i, h)).map(({ index: i }) => i), [t, l]), S = y(
|
|
43
|
+
(i, h) => {
|
|
44
|
+
const m = g();
|
|
45
|
+
if (m.length === 0) return -1;
|
|
46
|
+
const w = m.indexOf(i);
|
|
47
|
+
if (w === -1)
|
|
48
|
+
return h === 1 ? m.find((T) => T > i) ?? (r ? m[0] : -1) : [...m].reverse().find((E) => E < i) ?? (r ? m[m.length - 1] : -1);
|
|
49
|
+
let _ = w + h;
|
|
50
|
+
return r ? _ = (_ + m.length) % m.length : _ = Math.max(0, Math.min(m.length - 1, _)), m[_];
|
|
51
51
|
},
|
|
52
52
|
[g, r]
|
|
53
|
-
), f =
|
|
53
|
+
), f = y(() => {
|
|
54
54
|
const i = g();
|
|
55
|
-
i.length > 0 &&
|
|
56
|
-
}, [g,
|
|
55
|
+
i.length > 0 && c(i[0]);
|
|
56
|
+
}, [g, c]), x = y(() => {
|
|
57
57
|
const i = g();
|
|
58
|
-
i.length > 0 &&
|
|
59
|
-
}, [g,
|
|
60
|
-
const i =
|
|
61
|
-
i !== -1 &&
|
|
62
|
-
}, [u,
|
|
63
|
-
const i =
|
|
64
|
-
i !== -1 &&
|
|
65
|
-
}, [u,
|
|
66
|
-
|
|
67
|
-
}, [
|
|
58
|
+
i.length > 0 && c(i[i.length - 1]);
|
|
59
|
+
}, [g, c]), M = y(() => {
|
|
60
|
+
const i = S(u, 1);
|
|
61
|
+
i !== -1 && c(i);
|
|
62
|
+
}, [u, S, c]), N = y(() => {
|
|
63
|
+
const i = S(u, -1);
|
|
64
|
+
i !== -1 && c(i);
|
|
65
|
+
}, [u, S, c]), k = y(() => {
|
|
66
|
+
c(-1);
|
|
67
|
+
}, [c]), R = y(
|
|
68
68
|
(i) => {
|
|
69
69
|
if (!o) return;
|
|
70
|
-
const { key:
|
|
71
|
-
if (
|
|
72
|
-
i.preventDefault(), u === -1 ?
|
|
70
|
+
const { key: h } = i, m = h === "ArrowUp" && (s === "vertical" || s === "both"), w = h === "ArrowDown" && (s === "vertical" || s === "both"), _ = h === "ArrowLeft" && (s === "horizontal" || s === "both"), T = h === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
71
|
+
if (m || _) {
|
|
72
|
+
i.preventDefault(), u === -1 ? x() : N();
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
75
|
+
if (w || T) {
|
|
76
76
|
i.preventDefault(), u === -1 ? f() : M();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
if (
|
|
79
|
+
if (h === "Home") {
|
|
80
80
|
i.preventDefault(), f();
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
i.preventDefault(),
|
|
83
|
+
if (h === "End") {
|
|
84
|
+
i.preventDefault(), x();
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
if ((
|
|
87
|
+
if ((h === "Enter" || h === " ") && u >= 0 && u < t.length) {
|
|
88
88
|
i.preventDefault();
|
|
89
|
-
const
|
|
90
|
-
l?.(
|
|
89
|
+
const E = t[u];
|
|
90
|
+
l?.(E, u) || b?.(E, u);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
93
|
+
if (h === "Escape") {
|
|
94
94
|
p?.();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
@@ -101,9 +101,9 @@ function Ca(e) {
|
|
|
101
101
|
u,
|
|
102
102
|
t,
|
|
103
103
|
f,
|
|
104
|
-
|
|
104
|
+
x,
|
|
105
105
|
M,
|
|
106
|
-
|
|
106
|
+
N,
|
|
107
107
|
l,
|
|
108
108
|
b,
|
|
109
109
|
p
|
|
@@ -111,52 +111,52 @@ function Ca(e) {
|
|
|
111
111
|
);
|
|
112
112
|
return {
|
|
113
113
|
focusedIndex: u,
|
|
114
|
-
setFocusedIndex:
|
|
115
|
-
handleKeyDown:
|
|
114
|
+
setFocusedIndex: c,
|
|
115
|
+
handleKeyDown: R,
|
|
116
116
|
focusFirst: f,
|
|
117
|
-
focusLast:
|
|
117
|
+
focusLast: x,
|
|
118
118
|
focusNext: M,
|
|
119
|
-
focusPrevious:
|
|
120
|
-
resetFocus:
|
|
119
|
+
focusPrevious: N,
|
|
120
|
+
resetFocus: k
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
},
|
|
123
|
+
const ce = (e) => {
|
|
124
|
+
}, it = {
|
|
125
125
|
id: "entity-filter-1",
|
|
126
126
|
label: "Customer: Acme Corp",
|
|
127
127
|
field: "customer",
|
|
128
128
|
value: "acme-corp-123",
|
|
129
|
-
onRemove:
|
|
130
|
-
},
|
|
129
|
+
onRemove: ce
|
|
130
|
+
}, lt = {
|
|
131
131
|
id: "status-filter-1",
|
|
132
132
|
label: "Status: Open",
|
|
133
133
|
field: "status",
|
|
134
134
|
value: "open",
|
|
135
|
-
onRemove:
|
|
136
|
-
},
|
|
135
|
+
onRemove: ce
|
|
136
|
+
}, ct = {
|
|
137
137
|
id: "date-filter-1",
|
|
138
138
|
label: "Date: Mar 1 - Mar 15",
|
|
139
139
|
field: "dateRange",
|
|
140
140
|
value: "2026-03-01..2026-03-15",
|
|
141
|
-
onRemove:
|
|
141
|
+
onRemove: ce
|
|
142
142
|
}, dt = {
|
|
143
143
|
id: "mfg-filter-1",
|
|
144
144
|
label: "Manufacturer: Widget Co",
|
|
145
145
|
field: "manufacturer",
|
|
146
146
|
value: "widget-co-456",
|
|
147
|
-
onRemove:
|
|
148
|
-
},
|
|
149
|
-
ot,
|
|
147
|
+
onRemove: ce
|
|
148
|
+
}, _a = [
|
|
150
149
|
it,
|
|
151
150
|
lt,
|
|
151
|
+
ct,
|
|
152
152
|
dt
|
|
153
|
-
],
|
|
153
|
+
], ka = {
|
|
154
154
|
id: "metric-toggle",
|
|
155
155
|
tabs: [
|
|
156
156
|
{ id: "$", label: "$", mono: !0 },
|
|
157
157
|
{ id: "#", label: "#", mono: !0 }
|
|
158
158
|
]
|
|
159
|
-
},
|
|
159
|
+
}, xa = {
|
|
160
160
|
id: "entity-type",
|
|
161
161
|
tabs: [
|
|
162
162
|
{ id: "orders", label: "Orders" },
|
|
@@ -172,12 +172,12 @@ const ie = (e) => {
|
|
|
172
172
|
{ id: "YTD", label: "YTD" },
|
|
173
173
|
{ id: "LYTD", label: "LYTD" }
|
|
174
174
|
]
|
|
175
|
-
},
|
|
175
|
+
}, Ta = [
|
|
176
176
|
{ variant: "block", width: "100%", height: 16 },
|
|
177
177
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
178
178
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
179
179
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
180
|
-
],
|
|
180
|
+
], Ra = [
|
|
181
181
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
182
182
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
183
183
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
@@ -185,17 +185,17 @@ const ie = (e) => {
|
|
|
185
185
|
{ variant: "circle", size: 24 },
|
|
186
186
|
{ variant: "circle", size: 40 },
|
|
187
187
|
{ variant: "circle", size: 64 }
|
|
188
|
-
],
|
|
188
|
+
], Ma = [
|
|
189
189
|
{ bars: 10, maxHeight: 120 },
|
|
190
190
|
{ bars: 5, maxHeight: 80 }
|
|
191
|
-
],
|
|
191
|
+
], Fa = [
|
|
192
192
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
193
193
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
194
|
-
],
|
|
194
|
+
], Pa = [
|
|
195
195
|
{ variant: "value", colSpan: 1 },
|
|
196
196
|
{ variant: "trend", colSpan: 2 },
|
|
197
197
|
{ variant: "target", colSpan: 1 }
|
|
198
|
-
],
|
|
198
|
+
], ke = {
|
|
199
199
|
position: "fixed",
|
|
200
200
|
zIndex: 9999,
|
|
201
201
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -207,7 +207,7 @@ const ie = (e) => {
|
|
|
207
207
|
minWidth: 148,
|
|
208
208
|
paddingTop: 4,
|
|
209
209
|
paddingBottom: 4
|
|
210
|
-
},
|
|
210
|
+
}, fe = (e) => ({
|
|
211
211
|
padding: "6px 12px",
|
|
212
212
|
fontSize: 12,
|
|
213
213
|
lineHeight: 1.4,
|
|
@@ -221,16 +221,16 @@ const ie = (e) => {
|
|
|
221
221
|
width: "100%",
|
|
222
222
|
textAlign: "left",
|
|
223
223
|
border: "none"
|
|
224
|
-
}),
|
|
225
|
-
...
|
|
224
|
+
}), ut = (e) => ({
|
|
225
|
+
...fe(e),
|
|
226
226
|
color: e ? "#4338ca" : "#4f46e5",
|
|
227
227
|
fontWeight: 600
|
|
228
|
-
}),
|
|
228
|
+
}), mt = {
|
|
229
229
|
height: 1,
|
|
230
230
|
background: "rgba(0,0,0,0.06)",
|
|
231
231
|
margin: "3px 10px"
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function pt({
|
|
234
234
|
open: e,
|
|
235
235
|
anchorEl: t,
|
|
236
236
|
statusId: n,
|
|
@@ -239,27 +239,27 @@ function mt({
|
|
|
239
239
|
overflowActions: s,
|
|
240
240
|
onClose: o
|
|
241
241
|
}) {
|
|
242
|
-
const [l, b] =
|
|
243
|
-
if (!t) return { ...
|
|
244
|
-
const
|
|
242
|
+
const [l, b] = W(null), p = I(null), v = y(() => {
|
|
243
|
+
if (!t) return { ...ke, top: 0, left: 0 };
|
|
244
|
+
const c = t.getBoundingClientRect();
|
|
245
245
|
return {
|
|
246
|
-
...
|
|
247
|
-
top:
|
|
248
|
-
left:
|
|
246
|
+
...ke,
|
|
247
|
+
top: c.bottom + 4,
|
|
248
|
+
left: c.left
|
|
249
249
|
};
|
|
250
250
|
}, [t]);
|
|
251
|
-
if (
|
|
251
|
+
if (L(() => {
|
|
252
252
|
if (!e) return;
|
|
253
|
-
const
|
|
253
|
+
const c = (g) => {
|
|
254
254
|
g.key === "Escape" && o();
|
|
255
255
|
};
|
|
256
|
-
return document.addEventListener("keydown",
|
|
257
|
-
}, [e, o]),
|
|
256
|
+
return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
|
|
257
|
+
}, [e, o]), L(() => {
|
|
258
258
|
if (!e) return;
|
|
259
|
-
const
|
|
259
|
+
const c = (g) => {
|
|
260
260
|
p.current && !p.current.contains(g.target) && o();
|
|
261
261
|
};
|
|
262
|
-
return document.addEventListener("pointerdown",
|
|
262
|
+
return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
|
|
263
263
|
}, [e, o]), !e) return null;
|
|
264
264
|
const C = s && s.length > 0, u = /* @__PURE__ */ A(
|
|
265
265
|
"div",
|
|
@@ -268,13 +268,13 @@ function mt({
|
|
|
268
268
|
"data-status-chip-menu": n,
|
|
269
269
|
role: "menu",
|
|
270
270
|
"aria-label": "Status actions",
|
|
271
|
-
style:
|
|
271
|
+
style: v(),
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ d(
|
|
274
274
|
"button",
|
|
275
275
|
{
|
|
276
276
|
role: "menuitem",
|
|
277
|
-
style:
|
|
277
|
+
style: ut(l === "__primary"),
|
|
278
278
|
onMouseEnter: () => b("__primary"),
|
|
279
279
|
onMouseLeave: () => b(null),
|
|
280
280
|
onClick: () => {
|
|
@@ -283,11 +283,11 @@ function mt({
|
|
|
283
283
|
children: "Open in table"
|
|
284
284
|
}
|
|
285
285
|
),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ d(
|
|
287
287
|
"button",
|
|
288
288
|
{
|
|
289
289
|
role: "menuitem",
|
|
290
|
-
style:
|
|
290
|
+
style: fe(l === "__graph"),
|
|
291
291
|
onMouseEnter: () => b("__graph"),
|
|
292
292
|
onMouseLeave: () => b(null),
|
|
293
293
|
onClick: () => {
|
|
@@ -296,30 +296,30 @@ function mt({
|
|
|
296
296
|
children: "Show on graph"
|
|
297
297
|
}
|
|
298
298
|
),
|
|
299
|
-
C && /* @__PURE__ */
|
|
300
|
-
C && s?.map((
|
|
299
|
+
C && /* @__PURE__ */ d("div", { style: mt }),
|
|
300
|
+
C && s?.map((c) => /* @__PURE__ */ d(
|
|
301
301
|
"button",
|
|
302
302
|
{
|
|
303
303
|
role: "menuitem",
|
|
304
|
-
style:
|
|
305
|
-
onMouseEnter: () => b(
|
|
304
|
+
style: fe(l === c.id),
|
|
305
|
+
onMouseEnter: () => b(c.id),
|
|
306
306
|
onMouseLeave: () => b(null),
|
|
307
307
|
onClick: () => {
|
|
308
|
-
|
|
308
|
+
c.onSelect(n), o();
|
|
309
309
|
},
|
|
310
|
-
children:
|
|
310
|
+
children: c.label
|
|
311
311
|
},
|
|
312
|
-
|
|
312
|
+
c.id
|
|
313
313
|
))
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
|
-
return
|
|
317
|
+
return et(u, document.body);
|
|
318
318
|
}
|
|
319
|
-
|
|
320
|
-
const
|
|
319
|
+
pt.displayName = "StatusSlotChipMenu";
|
|
320
|
+
const gt = je(
|
|
321
321
|
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: l = "right", ariaLabel: b = "Resize card" }, p) {
|
|
322
|
-
const
|
|
322
|
+
const v = t === "handle-visible" || t === "dragging" || t === "settling", C = (g) => {
|
|
323
323
|
try {
|
|
324
324
|
g.currentTarget.setPointerCapture(g.pointerId);
|
|
325
325
|
} catch {
|
|
@@ -331,10 +331,10 @@ const pt = Ze(
|
|
|
331
331
|
} catch {
|
|
332
332
|
}
|
|
333
333
|
a(g);
|
|
334
|
-
},
|
|
335
|
-
!
|
|
334
|
+
}, c = (g) => {
|
|
335
|
+
!v || !o || (g.key === "ArrowRight" ? (g.preventDefault(), o("grow")) : g.key === "ArrowLeft" && (g.preventDefault(), o("shrink")));
|
|
336
336
|
};
|
|
337
|
-
return /* @__PURE__ */
|
|
337
|
+
return /* @__PURE__ */ d(
|
|
338
338
|
"button",
|
|
339
339
|
{
|
|
340
340
|
ref: p,
|
|
@@ -345,28 +345,28 @@ const pt = Ze(
|
|
|
345
345
|
className: [
|
|
346
346
|
"gloss-edge-handle",
|
|
347
347
|
`gloss-edge-handle--${l}`,
|
|
348
|
-
|
|
348
|
+
v ? "gloss-edge-handle--visible" : ""
|
|
349
349
|
].filter(Boolean).join(" "),
|
|
350
350
|
onPointerDown: C,
|
|
351
351
|
onPointerUp: u,
|
|
352
352
|
onPointerEnter: r,
|
|
353
353
|
onPointerLeave: s,
|
|
354
|
-
onKeyDown:
|
|
355
|
-
tabIndex:
|
|
354
|
+
onKeyDown: c,
|
|
355
|
+
tabIndex: v ? 0 : -1
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
359
|
);
|
|
360
|
-
|
|
361
|
-
function
|
|
360
|
+
gt.displayName = "EdgeHoverHandle";
|
|
361
|
+
function ft({
|
|
362
362
|
visible: e,
|
|
363
363
|
targetColSpan: t,
|
|
364
364
|
ghostWidth: n,
|
|
365
365
|
enterMs: a = 180,
|
|
366
366
|
exitMs: r = 120
|
|
367
367
|
}) {
|
|
368
|
-
return /* @__PURE__ */
|
|
369
|
-
|
|
368
|
+
return /* @__PURE__ */ d(
|
|
369
|
+
Ie.div,
|
|
370
370
|
{
|
|
371
371
|
"aria-hidden": "true",
|
|
372
372
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -382,8 +382,8 @@ function gt({
|
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
}
|
|
385
|
-
|
|
386
|
-
class
|
|
385
|
+
ft.displayName = "GhostPreview";
|
|
386
|
+
class ht {
|
|
387
387
|
constructor() {
|
|
388
388
|
this.samples = [], this.capacity = 3;
|
|
389
389
|
}
|
|
@@ -407,14 +407,14 @@ class ft {
|
|
|
407
407
|
const t = this.samples.length;
|
|
408
408
|
if (t < 2) return 0;
|
|
409
409
|
if (t === 2) {
|
|
410
|
-
const [b, p] = this.samples,
|
|
411
|
-
return (p.x - b.x) /
|
|
410
|
+
const [b, p] = this.samples, v = Math.max(1, p.t - b.t);
|
|
411
|
+
return (p.x - b.x) / v * 1e3;
|
|
412
412
|
}
|
|
413
413
|
const [n, a, r] = this.samples, s = (r.x - a.x) / Math.max(1, r.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
|
|
414
414
|
return (s * 3 + o * 2 + l * 1) / 6;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
const
|
|
417
|
+
const Me = {
|
|
418
418
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
419
419
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
420
420
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -434,7 +434,7 @@ const Ie = {
|
|
|
434
434
|
// Velocity multiplier (D-03b panel)
|
|
435
435
|
velocityMultiplier: 1
|
|
436
436
|
};
|
|
437
|
-
function
|
|
437
|
+
function Ea({
|
|
438
438
|
currentColSpan: e,
|
|
439
439
|
stackable: t,
|
|
440
440
|
onResize: n,
|
|
@@ -445,198 +445,201 @@ function Pa({
|
|
|
445
445
|
dwellMs: l = 120,
|
|
446
446
|
enterMs: b = 180,
|
|
447
447
|
exitMs: p = 120,
|
|
448
|
-
maxColSpan:
|
|
448
|
+
maxColSpan: v = 3,
|
|
449
449
|
containerRef: C,
|
|
450
450
|
forceIdle: u
|
|
451
451
|
}) {
|
|
452
|
-
const [
|
|
453
|
-
|
|
454
|
-
m.current =
|
|
455
|
-
}, [
|
|
456
|
-
const
|
|
457
|
-
const
|
|
458
|
-
if (
|
|
452
|
+
const [c, g] = W("idle"), [S, f] = W(e), x = I(null), M = I(null), N = I(null), k = I(r), R = I(s), i = I(v), h = I(0), m = I("idle");
|
|
453
|
+
L(() => {
|
|
454
|
+
m.current = c;
|
|
455
|
+
}, [c]);
|
|
456
|
+
const w = Qe(0), _ = I(null), T = y(() => {
|
|
457
|
+
const D = _.current;
|
|
458
|
+
if (D) {
|
|
459
459
|
try {
|
|
460
|
-
|
|
460
|
+
D.stop();
|
|
461
461
|
} catch {
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
_.current = null;
|
|
464
464
|
}
|
|
465
|
-
}, []),
|
|
466
|
-
(
|
|
467
|
-
const
|
|
468
|
-
return
|
|
465
|
+
}, []), E = y(
|
|
466
|
+
(D) => {
|
|
467
|
+
const F = k.current, P = R.current;
|
|
468
|
+
return D * F + (D - 1) * P;
|
|
469
469
|
},
|
|
470
470
|
[]
|
|
471
|
-
),
|
|
472
|
-
|
|
473
|
-
V.current =
|
|
474
|
-
}, [
|
|
475
|
-
const
|
|
476
|
-
|
|
477
|
-
}, []),
|
|
471
|
+
), G = I(new ht()), V = I(e);
|
|
472
|
+
L(() => {
|
|
473
|
+
V.current = S;
|
|
474
|
+
}, [S]);
|
|
475
|
+
const $ = re(() => ({ ...Me, ...o ?? {} }), [o]), O = y(() => {
|
|
476
|
+
x.current && (clearTimeout(x.current), x.current = null);
|
|
477
|
+
}, []), U = y(() => {
|
|
478
478
|
M.current && (clearTimeout(M.current), M.current = null);
|
|
479
479
|
}, []);
|
|
480
|
-
|
|
481
|
-
u && (m.current === "dragging" || m.current === "settling" || (
|
|
482
|
-
}, [u,
|
|
483
|
-
const
|
|
484
|
-
g((
|
|
485
|
-
}, [l]),
|
|
486
|
-
|
|
487
|
-
}, [
|
|
488
|
-
(
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
480
|
+
L(() => {
|
|
481
|
+
u && (m.current === "dragging" || m.current === "settling" || (O(), U(), m.current = "idle", g("idle")));
|
|
482
|
+
}, [u, O, U]);
|
|
483
|
+
const se = y(() => {
|
|
484
|
+
g((D) => D === "settling" || D !== "idle" ? D : (x.current = setTimeout(() => g("handle-visible"), l), "dwelling"));
|
|
485
|
+
}, [l]), z = y(() => {
|
|
486
|
+
O(), g((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
|
|
487
|
+
}, [O]), oe = y(
|
|
488
|
+
(D, F, P) => {
|
|
489
|
+
const B = k.current, Q = B * $.snapInFraction, j = B * $.snapOutFraction, Y = F - P, q = Math.max(
|
|
490
|
+
P,
|
|
491
|
+
i.current ?? v
|
|
492
|
+
);
|
|
493
|
+
let K = Y;
|
|
494
|
+
for (; P + K < q; ) {
|
|
495
|
+
const te = K * B + (K < 0 ? j : Q);
|
|
496
|
+
if (D >= te) K += 1;
|
|
494
497
|
else break;
|
|
495
498
|
}
|
|
496
|
-
if (
|
|
497
|
-
for (;
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
499
|
+
if (K === Y)
|
|
500
|
+
for (; P + K > 1; ) {
|
|
501
|
+
const te = K * B - (K > 0 ? j : Q);
|
|
502
|
+
if (D <= te) K -= 1;
|
|
500
503
|
else break;
|
|
501
504
|
}
|
|
502
|
-
return Math.min(
|
|
505
|
+
return Math.min(q, Math.max(1, P + K));
|
|
503
506
|
},
|
|
504
|
-
[
|
|
505
|
-
),
|
|
506
|
-
(
|
|
507
|
+
[$.snapInFraction, $.snapOutFraction, v]
|
|
508
|
+
), ze = y(
|
|
509
|
+
(D) => {
|
|
507
510
|
if (m.current !== "handle-visible") return;
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
+
T(), N.current = D.clientX, k.current = r, R.current = s, i.current = v;
|
|
512
|
+
const F = e * r + (e - 1) * s;
|
|
513
|
+
h.current = F, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(F), m.current = "dragging", g("dragging");
|
|
511
514
|
},
|
|
512
|
-
[r, s, e,
|
|
513
|
-
),
|
|
514
|
-
(
|
|
515
|
+
[r, s, v, e, w, T]
|
|
516
|
+
), De = y(
|
|
517
|
+
(D) => D * k.current + (D - 1) * R.current,
|
|
515
518
|
[]
|
|
516
|
-
),
|
|
517
|
-
(
|
|
518
|
-
const
|
|
519
|
+
), ie = y(
|
|
520
|
+
(D, F) => {
|
|
521
|
+
const P = De(D), B = D !== e;
|
|
519
522
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
520
|
-
|
|
523
|
+
w.jump(P), B && F ? n({ direction: F, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
521
524
|
return;
|
|
522
525
|
}
|
|
523
|
-
const
|
|
524
|
-
m.current = "settling", g("settling"),
|
|
526
|
+
const j = G.current.getWeightedVelocity() * $.velocityMultiplier;
|
|
527
|
+
m.current = "settling", g("settling"), T(), _.current = _e(w, P, {
|
|
525
528
|
type: "spring",
|
|
526
|
-
stiffness:
|
|
527
|
-
damping:
|
|
528
|
-
mass:
|
|
529
|
-
velocity:
|
|
529
|
+
stiffness: $.stiffness,
|
|
530
|
+
damping: $.damping,
|
|
531
|
+
mass: $.mass,
|
|
532
|
+
velocity: j,
|
|
530
533
|
onComplete: () => {
|
|
531
|
-
|
|
534
|
+
_.current = null, B && F ? n({ direction: F, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
532
535
|
}
|
|
533
536
|
});
|
|
534
537
|
},
|
|
535
|
-
[
|
|
536
|
-
),
|
|
537
|
-
(
|
|
538
|
+
[De, e, t, n, a, w, $, T]
|
|
539
|
+
), We = y(
|
|
540
|
+
(D) => {
|
|
538
541
|
if (m.current !== "dragging") return;
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
|
|
542
|
+
const F = D.clientX - (N.current ?? D.clientX), P = k.current, Q = ((i.current ?? v) - e) * P, j = (1 - e) * P, Y = Math.max(j, Math.min(Q, F));
|
|
543
|
+
G.current.push({ x: D.clientX, t: performance.now() });
|
|
544
|
+
const q = oe(Y, V.current, e), K = q > e ? "grow" : q < e ? "shrink" : null;
|
|
545
|
+
ie(q, K);
|
|
543
546
|
},
|
|
544
|
-
[
|
|
545
|
-
),
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
547
|
+
[oe, e, v, ie]
|
|
548
|
+
), de = y(() => {
|
|
549
|
+
if (O(), m.current === "dragging") {
|
|
550
|
+
const D = h.current;
|
|
548
551
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
549
|
-
|
|
552
|
+
w.jump(D), a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
550
553
|
return;
|
|
551
554
|
}
|
|
552
|
-
const
|
|
553
|
-
m.current = "settling", g("settling"),
|
|
555
|
+
const P = G.current.getWeightedVelocity();
|
|
556
|
+
m.current = "settling", g("settling"), T(), _.current = _e(w, D, {
|
|
554
557
|
type: "spring",
|
|
555
|
-
stiffness:
|
|
556
|
-
damping:
|
|
557
|
-
mass:
|
|
558
|
-
velocity:
|
|
558
|
+
stiffness: $.stiffness,
|
|
559
|
+
damping: $.damping,
|
|
560
|
+
mass: $.mass,
|
|
561
|
+
velocity: P,
|
|
559
562
|
onComplete: () => {
|
|
560
|
-
|
|
563
|
+
_.current = null, a?.(), w.jump(0), m.current = "idle", g("idle");
|
|
561
564
|
}
|
|
562
565
|
});
|
|
563
566
|
return;
|
|
564
567
|
}
|
|
565
568
|
m.current === "handle-visible" && (a?.(), m.current = "cancelled", g("cancelled"));
|
|
566
|
-
}, [
|
|
567
|
-
|
|
568
|
-
if (
|
|
569
|
-
const
|
|
570
|
-
|
|
569
|
+
}, [O, w, a, $, T]);
|
|
570
|
+
L(() => {
|
|
571
|
+
if (c !== "dragging" && c !== "handle-visible") return;
|
|
572
|
+
const D = (F) => {
|
|
573
|
+
F.key === "Escape" && de();
|
|
571
574
|
};
|
|
572
|
-
return window.addEventListener("keydown",
|
|
573
|
-
}, [
|
|
574
|
-
if (
|
|
575
|
+
return window.addEventListener("keydown", D), () => window.removeEventListener("keydown", D);
|
|
576
|
+
}, [c, de]), L(() => {
|
|
577
|
+
if (c !== "dragging") {
|
|
575
578
|
f(e);
|
|
576
579
|
return;
|
|
577
580
|
}
|
|
578
|
-
const
|
|
579
|
-
const
|
|
580
|
-
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
const
|
|
584
|
-
|
|
581
|
+
const D = (F) => {
|
|
582
|
+
const P = F.clientX - (N.current ?? F.clientX), B = h.current, Q = E(1), j = E(v), Y = B + P, q = Math.max(Q, Math.min(j, Y));
|
|
583
|
+
w.set(q);
|
|
584
|
+
const K = k.current, Ce = (v - e) * K, te = (1 - e) * K, Ue = Math.max(te, Math.min(Ce, P));
|
|
585
|
+
G.current.push({ x: F.clientX, t: performance.now() });
|
|
586
|
+
const ue = oe(Ue, V.current, e);
|
|
587
|
+
ue !== V.current && (V.current = ue, f(ue));
|
|
585
588
|
};
|
|
586
|
-
return window.addEventListener("pointermove",
|
|
587
|
-
}, [
|
|
588
|
-
|
|
589
|
-
}, [
|
|
590
|
-
if (
|
|
591
|
-
const
|
|
592
|
-
return () => clearTimeout(
|
|
593
|
-
}, [
|
|
594
|
-
const
|
|
595
|
-
(
|
|
589
|
+
return window.addEventListener("pointermove", D), () => window.removeEventListener("pointermove", D);
|
|
590
|
+
}, [c, e, w, oe, v, E]), L(() => () => {
|
|
591
|
+
O(), U();
|
|
592
|
+
}, [O, U]), L(() => {
|
|
593
|
+
if (c !== "cancelled") return;
|
|
594
|
+
const D = setTimeout(() => g("idle"), p);
|
|
595
|
+
return () => clearTimeout(D);
|
|
596
|
+
}, [c, p]);
|
|
597
|
+
const Ge = y(
|
|
598
|
+
(D) => {
|
|
596
599
|
if (m.current === "settling") return;
|
|
597
|
-
const
|
|
598
|
-
if (
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
600
|
+
const P = Math.min(v, Math.max(1, e + (D === "grow" ? 1 : -1)));
|
|
601
|
+
if (P === e) return;
|
|
602
|
+
k.current = r, R.current = s, i.current = v, G.current.clear();
|
|
603
|
+
const B = e * r + (e - 1) * s;
|
|
604
|
+
h.current = B, w.jump(B), ie(P, D);
|
|
602
605
|
},
|
|
603
|
-
[e, r, s,
|
|
604
|
-
),
|
|
605
|
-
|
|
606
|
+
[e, r, s, v, w, ie]
|
|
607
|
+
), Ne = y(() => {
|
|
608
|
+
U(), M.current = setTimeout(() => {
|
|
606
609
|
m.current === "handle-visible" && (m.current = "idle", g("idle"));
|
|
607
610
|
}, 5e3);
|
|
608
|
-
}, [
|
|
609
|
-
m.current === "idle" && (
|
|
610
|
-
}, [
|
|
611
|
-
|
|
612
|
-
}, [
|
|
611
|
+
}, [U]), He = y(() => {
|
|
612
|
+
m.current === "idle" && (O(), m.current = "handle-visible", g("handle-visible"), Ne());
|
|
613
|
+
}, [O, Ne]), Ve = y(() => {
|
|
614
|
+
U(), m.current === "handle-visible" && (m.current = "idle", g("idle"));
|
|
615
|
+
}, [U]);
|
|
613
616
|
return {
|
|
614
|
-
state:
|
|
615
|
-
enterEdgeZone:
|
|
616
|
-
leaveEdgeZone:
|
|
617
|
+
state: c,
|
|
618
|
+
enterEdgeZone: se,
|
|
619
|
+
leaveEdgeZone: z,
|
|
617
620
|
handleProps: {
|
|
618
|
-
onPointerDown:
|
|
619
|
-
onPointerUp:
|
|
621
|
+
onPointerDown: ze,
|
|
622
|
+
onPointerUp: We,
|
|
620
623
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
621
624
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
622
|
-
onPointerEnter:
|
|
623
|
-
onPointerLeave:
|
|
625
|
+
onPointerEnter: se,
|
|
626
|
+
onPointerLeave: z
|
|
624
627
|
},
|
|
625
|
-
previewColSpan:
|
|
628
|
+
previewColSpan: S,
|
|
626
629
|
ghostProps: {
|
|
627
|
-
visible:
|
|
628
|
-
targetColSpan:
|
|
629
|
-
ghostWidth:
|
|
630
|
+
visible: c === "dragging" || c === "settling",
|
|
631
|
+
targetColSpan: S,
|
|
632
|
+
ghostWidth: w,
|
|
630
633
|
enterMs: b,
|
|
631
634
|
exitMs: p
|
|
632
635
|
},
|
|
633
|
-
onKeyboardStep:
|
|
634
|
-
onTouchReveal:
|
|
635
|
-
onTouchDismiss:
|
|
636
|
-
cancel:
|
|
636
|
+
onKeyboardStep: Ge,
|
|
637
|
+
onTouchReveal: He,
|
|
638
|
+
onTouchDismiss: Ve,
|
|
639
|
+
cancel: de
|
|
637
640
|
};
|
|
638
641
|
}
|
|
639
|
-
const
|
|
642
|
+
const ee = {
|
|
640
643
|
// Cascade (D-08, D-10)
|
|
641
644
|
staggerMs: 50,
|
|
642
645
|
reverseStaggerMs: 30,
|
|
@@ -661,14 +664,14 @@ const Y = {
|
|
|
661
664
|
sectionDividerFadeOutMs: 80,
|
|
662
665
|
sectionDividerStaggerMs: 40
|
|
663
666
|
};
|
|
664
|
-
function
|
|
667
|
+
function Oa(e) {
|
|
665
668
|
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: r } = e;
|
|
666
669
|
if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
|
|
667
670
|
return;
|
|
668
671
|
const s = (a + 0.5) * (t / n);
|
|
669
672
|
return r != null && Number.isFinite(r) && r > 0 ? s - r / 2 : s;
|
|
670
673
|
}
|
|
671
|
-
const
|
|
674
|
+
const Aa = [
|
|
672
675
|
// 1. Standard: Total Revenue
|
|
673
676
|
{
|
|
674
677
|
variant: "standard",
|
|
@@ -772,24 +775,24 @@ const Oa = [
|
|
|
772
775
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
773
776
|
]
|
|
774
777
|
}
|
|
775
|
-
],
|
|
778
|
+
], bt = {
|
|
776
779
|
variant: "standard",
|
|
777
780
|
label: "Total Revenue",
|
|
778
781
|
isLoading: !0
|
|
779
|
-
},
|
|
782
|
+
}, vt = {
|
|
780
783
|
variant: "standard",
|
|
781
784
|
label: "Total Revenue",
|
|
782
785
|
value: 125430,
|
|
783
786
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
784
787
|
isError: !0
|
|
785
|
-
},
|
|
788
|
+
}, yt = {
|
|
786
789
|
variant: "standard",
|
|
787
790
|
label: "Total Revenue",
|
|
788
791
|
value: null,
|
|
789
792
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
790
793
|
isEmpty: !0,
|
|
791
794
|
subtitle: "No data"
|
|
792
|
-
},
|
|
795
|
+
}, wt = {
|
|
793
796
|
variant: "standard",
|
|
794
797
|
label: "Total Revenue",
|
|
795
798
|
value: 125430,
|
|
@@ -797,7 +800,7 @@ const Oa = [
|
|
|
797
800
|
trend: { value: 12.5, direction: "up" },
|
|
798
801
|
subtitle: "MTD",
|
|
799
802
|
isStale: !0
|
|
800
|
-
},
|
|
803
|
+
}, Dt = {
|
|
801
804
|
variant: "sparkline",
|
|
802
805
|
label: "Daily Orders",
|
|
803
806
|
value: 847,
|
|
@@ -806,7 +809,7 @@ const Oa = [
|
|
|
806
809
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
807
810
|
accentColor: "#6366f1",
|
|
808
811
|
isStale: !0
|
|
809
|
-
},
|
|
812
|
+
}, Nt = {
|
|
810
813
|
variant: "donut",
|
|
811
814
|
label: "Order Fill Rate",
|
|
812
815
|
value: 78,
|
|
@@ -817,14 +820,14 @@ const Oa = [
|
|
|
817
820
|
donutMax: 100,
|
|
818
821
|
accentColor: "#10b981",
|
|
819
822
|
isStale: !0
|
|
820
|
-
},
|
|
821
|
-
ht,
|
|
823
|
+
}, La = [
|
|
822
824
|
bt,
|
|
823
825
|
vt,
|
|
824
826
|
yt,
|
|
825
827
|
wt,
|
|
826
|
-
Dt
|
|
827
|
-
|
|
828
|
+
Dt,
|
|
829
|
+
Nt
|
|
830
|
+
], $a = {
|
|
828
831
|
variant: "sparkline",
|
|
829
832
|
label: "Daily Orders",
|
|
830
833
|
value: 847,
|
|
@@ -847,7 +850,7 @@ const Oa = [
|
|
|
847
850
|
59
|
|
848
851
|
],
|
|
849
852
|
accentColor: "#6366f1"
|
|
850
|
-
},
|
|
853
|
+
}, Ba = {
|
|
851
854
|
variant: "sparkline",
|
|
852
855
|
label: "New Customers",
|
|
853
856
|
value: 23,
|
|
@@ -886,21 +889,21 @@ const Oa = [
|
|
|
886
889
|
19
|
|
887
890
|
],
|
|
888
891
|
accentColor: "#10b981"
|
|
889
|
-
},
|
|
892
|
+
}, Ka = {
|
|
890
893
|
variant: "standard",
|
|
891
894
|
label: "Total Revenue",
|
|
892
895
|
value: 125430,
|
|
893
896
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
894
897
|
trend: { value: 12.5, direction: "up" },
|
|
895
898
|
subtitle: "MTD"
|
|
896
|
-
},
|
|
899
|
+
}, za = {
|
|
897
900
|
variant: "standard",
|
|
898
901
|
label: "Returns",
|
|
899
902
|
value: 3280,
|
|
900
903
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
901
904
|
trend: { value: -8.3, direction: "down" },
|
|
902
905
|
subtitle: "MTD"
|
|
903
|
-
},
|
|
906
|
+
}, Wa = {
|
|
904
907
|
variant: "standard",
|
|
905
908
|
label: "Avg Order Value",
|
|
906
909
|
value: 487,
|
|
@@ -908,7 +911,7 @@ const Oa = [
|
|
|
908
911
|
trend: { value: 0, direction: "flat" },
|
|
909
912
|
subtitle: "QTD"
|
|
910
913
|
};
|
|
911
|
-
function
|
|
914
|
+
function Fe({
|
|
912
915
|
open: e,
|
|
913
916
|
onDismiss: t,
|
|
914
917
|
anchorRef: n,
|
|
@@ -918,23 +921,23 @@ function Re({
|
|
|
918
921
|
onCreatePage: o,
|
|
919
922
|
onManagePages: l
|
|
920
923
|
}) {
|
|
921
|
-
const b =
|
|
924
|
+
const b = y(
|
|
922
925
|
(u) => {
|
|
923
926
|
s(u), t();
|
|
924
927
|
},
|
|
925
928
|
[s, t]
|
|
926
|
-
), p =
|
|
927
|
-
(u,
|
|
928
|
-
(
|
|
929
|
+
), p = y(
|
|
930
|
+
(u, c) => {
|
|
931
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(u));
|
|
929
932
|
},
|
|
930
933
|
[b]
|
|
931
|
-
),
|
|
934
|
+
), v = y(() => {
|
|
932
935
|
o(), t();
|
|
933
|
-
}, [o, t]), C =
|
|
936
|
+
}, [o, t]), C = y(() => {
|
|
934
937
|
l(), t();
|
|
935
938
|
}, [l, t]);
|
|
936
939
|
return /* @__PURE__ */ A(
|
|
937
|
-
|
|
940
|
+
Je,
|
|
938
941
|
{
|
|
939
942
|
definition: {
|
|
940
943
|
placement: "bottom-end",
|
|
@@ -947,50 +950,50 @@ function Re({
|
|
|
947
950
|
anchorRef: n,
|
|
948
951
|
className: "gloss-page-dropdown",
|
|
949
952
|
children: [
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
-
const
|
|
953
|
+
/* @__PURE__ */ d("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
|
|
954
|
+
const c = u.id === r;
|
|
952
955
|
return /* @__PURE__ */ A(
|
|
953
956
|
"li",
|
|
954
957
|
{
|
|
955
958
|
role: "menuitemradio",
|
|
956
|
-
"aria-checked":
|
|
957
|
-
"aria-current":
|
|
959
|
+
"aria-checked": c,
|
|
960
|
+
"aria-current": c ? "page" : void 0,
|
|
958
961
|
tabIndex: 0,
|
|
959
|
-
className: `gloss-page-dropdown__item${
|
|
962
|
+
className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
|
|
960
963
|
onClick: () => b(u.id),
|
|
961
964
|
onKeyDown: (g) => p(u.id, g),
|
|
962
965
|
children: [
|
|
963
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ d(
|
|
964
967
|
"span",
|
|
965
968
|
{
|
|
966
|
-
className: `gloss-page-dropdown__dot${
|
|
969
|
+
className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
|
|
967
970
|
}
|
|
968
971
|
),
|
|
969
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ d(
|
|
970
973
|
"span",
|
|
971
974
|
{
|
|
972
975
|
className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
973
976
|
children: u.name
|
|
974
977
|
}
|
|
975
978
|
),
|
|
976
|
-
/* @__PURE__ */
|
|
979
|
+
/* @__PURE__ */ d("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
|
|
977
980
|
]
|
|
978
981
|
},
|
|
979
982
|
u.id
|
|
980
983
|
);
|
|
981
984
|
}) }),
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
|
|
986
|
+
/* @__PURE__ */ d(
|
|
984
987
|
"button",
|
|
985
988
|
{
|
|
986
989
|
role: "menuitem",
|
|
987
990
|
className: "gloss-page-dropdown__action",
|
|
988
|
-
onClick:
|
|
991
|
+
onClick: v,
|
|
989
992
|
children: "+ New page"
|
|
990
993
|
}
|
|
991
994
|
),
|
|
992
|
-
/* @__PURE__ */
|
|
993
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
|
|
996
|
+
/* @__PURE__ */ d(
|
|
994
997
|
"button",
|
|
995
998
|
{
|
|
996
999
|
role: "menuitem",
|
|
@@ -1003,7 +1006,7 @@ function Re({
|
|
|
1003
1006
|
}
|
|
1004
1007
|
);
|
|
1005
1008
|
}
|
|
1006
|
-
|
|
1009
|
+
Fe.displayName = "PageDropdown";
|
|
1007
1010
|
const Ct = function({
|
|
1008
1011
|
currentIndex: t,
|
|
1009
1012
|
total: n,
|
|
@@ -1013,11 +1016,11 @@ const Ct = function({
|
|
|
1013
1016
|
onManagePages: o,
|
|
1014
1017
|
maskRadius: l = "var(--gloss-radius-md)"
|
|
1015
1018
|
}) {
|
|
1016
|
-
const b =
|
|
1017
|
-
|
|
1018
|
-
}, []), u =
|
|
1019
|
-
|
|
1020
|
-
}, []),
|
|
1019
|
+
const b = I(null), [p, v] = W(!1), C = y(() => {
|
|
1020
|
+
v((g) => !g);
|
|
1021
|
+
}, []), u = y(() => {
|
|
1022
|
+
v(!1);
|
|
1023
|
+
}, []), c = a[t]?.id ?? "";
|
|
1021
1024
|
return /* @__PURE__ */ A(
|
|
1022
1025
|
"div",
|
|
1023
1026
|
{
|
|
@@ -1026,7 +1029,7 @@ const Ct = function({
|
|
|
1026
1029
|
style: { position: "absolute", top: 0, right: 0 },
|
|
1027
1030
|
"data-page-chip": !0,
|
|
1028
1031
|
children: [
|
|
1029
|
-
/* @__PURE__ */
|
|
1032
|
+
/* @__PURE__ */ d(
|
|
1030
1033
|
"div",
|
|
1031
1034
|
{
|
|
1032
1035
|
className: "gloss-page-chip__nuzzle",
|
|
@@ -1048,14 +1051,14 @@ const Ct = function({
|
|
|
1048
1051
|
]
|
|
1049
1052
|
}
|
|
1050
1053
|
),
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
|
|
1054
|
+
/* @__PURE__ */ d(
|
|
1055
|
+
Fe,
|
|
1053
1056
|
{
|
|
1054
1057
|
open: p,
|
|
1055
1058
|
onDismiss: u,
|
|
1056
1059
|
anchorRef: b,
|
|
1057
1060
|
pages: a,
|
|
1058
|
-
activePageId:
|
|
1061
|
+
activePageId: c,
|
|
1059
1062
|
onPageChange: r,
|
|
1060
1063
|
onCreatePage: s,
|
|
1061
1064
|
onManagePages: o
|
|
@@ -1066,7 +1069,7 @@ const Ct = function({
|
|
|
1066
1069
|
);
|
|
1067
1070
|
};
|
|
1068
1071
|
Ct.displayName = "PageChip";
|
|
1069
|
-
const
|
|
1072
|
+
const Ga = [
|
|
1070
1073
|
{
|
|
1071
1074
|
id: "ORD-1001",
|
|
1072
1075
|
orderNumber: "ORD-1001",
|
|
@@ -1199,7 +1202,7 @@ const Wa = [
|
|
|
1199
1202
|
date: "2026-03-01",
|
|
1200
1203
|
skuCount: 9
|
|
1201
1204
|
}
|
|
1202
|
-
],
|
|
1205
|
+
], Ha = [
|
|
1203
1206
|
{
|
|
1204
1207
|
id: "ITEM-001",
|
|
1205
1208
|
sku: "PB-4520",
|
|
@@ -1333,16 +1336,16 @@ const Wa = [
|
|
|
1333
1336
|
lastDate: "2026-03-01"
|
|
1334
1337
|
}
|
|
1335
1338
|
];
|
|
1336
|
-
function
|
|
1339
|
+
function he(e) {
|
|
1337
1340
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1338
1341
|
}
|
|
1339
|
-
function
|
|
1342
|
+
function Pe(e) {
|
|
1340
1343
|
return e.toLocaleString("en-US");
|
|
1341
1344
|
}
|
|
1342
|
-
function
|
|
1345
|
+
function Ee(e) {
|
|
1343
1346
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1344
1347
|
}
|
|
1345
|
-
const
|
|
1348
|
+
const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Va = [
|
|
1346
1349
|
{
|
|
1347
1350
|
field: "id",
|
|
1348
1351
|
headerName: "Order",
|
|
@@ -1372,7 +1375,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1372
1375
|
align: "right",
|
|
1373
1376
|
headerAlign: "right",
|
|
1374
1377
|
cellClassName: "gloss-tabular-nums",
|
|
1375
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1378
|
+
renderCell: ({ row: e }) => e.skuCount ? Pe(e.skuCount) : ne
|
|
1376
1379
|
},
|
|
1377
1380
|
{
|
|
1378
1381
|
field: "total",
|
|
@@ -1382,7 +1385,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1382
1385
|
align: "right",
|
|
1383
1386
|
headerAlign: "right",
|
|
1384
1387
|
cellClassName: "gloss-tabular-nums",
|
|
1385
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1388
|
+
renderCell: ({ row: e }) => e.total ? he(e.total) : ne
|
|
1386
1389
|
},
|
|
1387
1390
|
{
|
|
1388
1391
|
field: "date",
|
|
@@ -1392,9 +1395,9 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1392
1395
|
align: "right",
|
|
1393
1396
|
headerAlign: "right",
|
|
1394
1397
|
cellClassName: "gloss-tabular-nums",
|
|
1395
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1398
|
+
renderCell: ({ row: e }) => e.date ? Ee(e.date) : ""
|
|
1396
1399
|
}
|
|
1397
|
-
],
|
|
1400
|
+
], Ua = [
|
|
1398
1401
|
{
|
|
1399
1402
|
field: "sku",
|
|
1400
1403
|
headerName: "Item ID",
|
|
@@ -1426,7 +1429,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1426
1429
|
align: "right",
|
|
1427
1430
|
headerAlign: "right",
|
|
1428
1431
|
cellClassName: "gloss-tabular-nums",
|
|
1429
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1432
|
+
renderCell: ({ row: e }) => e.price ? he(e.price) : ne
|
|
1430
1433
|
},
|
|
1431
1434
|
{
|
|
1432
1435
|
field: "quantity",
|
|
@@ -1436,7 +1439,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1436
1439
|
align: "right",
|
|
1437
1440
|
headerAlign: "right",
|
|
1438
1441
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1439
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1442
|
+
renderCell: ({ row: e }) => e.quantity ? Pe(e.quantity) : ne
|
|
1440
1443
|
},
|
|
1441
1444
|
{
|
|
1442
1445
|
field: "total",
|
|
@@ -1446,7 +1449,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1446
1449
|
align: "right",
|
|
1447
1450
|
headerAlign: "right",
|
|
1448
1451
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1449
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1452
|
+
renderCell: ({ row: e }) => e.total ? he(e.total) : ne
|
|
1450
1453
|
},
|
|
1451
1454
|
{
|
|
1452
1455
|
field: "lastDate",
|
|
@@ -1456,24 +1459,24 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1456
1459
|
align: "right",
|
|
1457
1460
|
headerAlign: "right",
|
|
1458
1461
|
cellClassName: "gloss-tabular-nums",
|
|
1459
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1462
|
+
renderCell: ({ row: e }) => e.lastDate ? Ee(e.lastDate) : ""
|
|
1460
1463
|
}
|
|
1461
|
-
],
|
|
1464
|
+
], _t = [
|
|
1462
1465
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1463
1466
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1464
1467
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1465
1468
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1466
1469
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1467
|
-
],
|
|
1470
|
+
], kt = [
|
|
1468
1471
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1469
1472
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1470
1473
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1471
1474
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1472
1475
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1473
|
-
],
|
|
1474
|
-
},
|
|
1475
|
-
},
|
|
1476
|
-
},
|
|
1476
|
+
], me = (e) => {
|
|
1477
|
+
}, xt = (e) => {
|
|
1478
|
+
}, xe = (e, t) => {
|
|
1479
|
+
}, Oe = {
|
|
1477
1480
|
vizState: {
|
|
1478
1481
|
type: "orders",
|
|
1479
1482
|
quant: "$",
|
|
@@ -1481,17 +1484,17 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1481
1484
|
byItem: { id: null, name: null },
|
|
1482
1485
|
timeFrame: "MTD"
|
|
1483
1486
|
},
|
|
1484
|
-
onTypeChange:
|
|
1485
|
-
onQuantChange:
|
|
1486
|
-
onEntityTypeChange:
|
|
1487
|
-
onEntitySelect:
|
|
1488
|
-
onItemSelect:
|
|
1489
|
-
onTimeFrameChange:
|
|
1487
|
+
onTypeChange: me,
|
|
1488
|
+
onQuantChange: xt,
|
|
1489
|
+
onEntityTypeChange: me,
|
|
1490
|
+
onEntitySelect: xe,
|
|
1491
|
+
onItemSelect: xe,
|
|
1492
|
+
onTimeFrameChange: me,
|
|
1490
1493
|
userType: "sales-agency",
|
|
1491
|
-
entityFilterOptions:
|
|
1492
|
-
itemFilterOptions:
|
|
1493
|
-
},
|
|
1494
|
-
...
|
|
1494
|
+
entityFilterOptions: _t,
|
|
1495
|
+
itemFilterOptions: kt
|
|
1496
|
+
}, Za = {
|
|
1497
|
+
...Oe,
|
|
1495
1498
|
vizState: {
|
|
1496
1499
|
type: "items",
|
|
1497
1500
|
quant: "$",
|
|
@@ -1499,8 +1502,8 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1499
1502
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1500
1503
|
timeFrame: "YTD"
|
|
1501
1504
|
}
|
|
1502
|
-
},
|
|
1503
|
-
...
|
|
1505
|
+
}, ja = {
|
|
1506
|
+
...Oe,
|
|
1504
1507
|
vizState: {
|
|
1505
1508
|
type: "orders",
|
|
1506
1509
|
quant: "#",
|
|
@@ -1558,7 +1561,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1558
1561
|
routeKey: "customer.profile",
|
|
1559
1562
|
subtitle: "Opens in RepTime"
|
|
1560
1563
|
}
|
|
1561
|
-
],
|
|
1564
|
+
], Tt = [
|
|
1562
1565
|
{
|
|
1563
1566
|
id: "order-items",
|
|
1564
1567
|
label: "Items in Order",
|
|
@@ -1587,7 +1590,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1587
1590
|
cellKinds: ["orderId"],
|
|
1588
1591
|
graphType: "timeline"
|
|
1589
1592
|
}
|
|
1590
|
-
],
|
|
1593
|
+
], Rt = [
|
|
1591
1594
|
{
|
|
1592
1595
|
id: "graph-metric",
|
|
1593
1596
|
label: "Graph This Metric",
|
|
@@ -1615,14 +1618,14 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1615
1618
|
cellKinds: ["numeric"],
|
|
1616
1619
|
tabType: "orders"
|
|
1617
1620
|
}
|
|
1618
|
-
],
|
|
1621
|
+
], Ya = {
|
|
1619
1622
|
entityName: St,
|
|
1620
|
-
orderId:
|
|
1621
|
-
numeric:
|
|
1622
|
-
},
|
|
1623
|
+
orderId: Tt,
|
|
1624
|
+
numeric: Rt
|
|
1625
|
+
}, qa = [
|
|
1623
1626
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1624
1627
|
/* @__PURE__ */ new Date()
|
|
1625
|
-
],
|
|
1628
|
+
], Qa = {
|
|
1626
1629
|
rangeA: [
|
|
1627
1630
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1628
1631
|
/* @__PURE__ */ new Date()
|
|
@@ -1635,7 +1638,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1635
1638
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1636
1639
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1637
1640
|
]
|
|
1638
|
-
},
|
|
1641
|
+
}, Xa = {
|
|
1639
1642
|
version: 4,
|
|
1640
1643
|
lastPreset: "mtd",
|
|
1641
1644
|
pinnedPreset: "mtd",
|
|
@@ -1643,7 +1646,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1643
1646
|
rangeCount: 1,
|
|
1644
1647
|
lastPresetB: null,
|
|
1645
1648
|
lastPresetC: null
|
|
1646
|
-
},
|
|
1649
|
+
}, Ja = [
|
|
1647
1650
|
{
|
|
1648
1651
|
id: "atlanta-jan",
|
|
1649
1652
|
label: "Atlanta Market",
|
|
@@ -1665,7 +1668,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1665
1668
|
endDate: new Date(2026, 3, 22),
|
|
1666
1669
|
location: "Chicago, IL"
|
|
1667
1670
|
}
|
|
1668
|
-
],
|
|
1671
|
+
], en = [
|
|
1669
1672
|
{
|
|
1670
1673
|
id: "custom-regional-1",
|
|
1671
1674
|
label: "Southeast Regional Expo",
|
|
@@ -1682,7 +1685,7 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1682
1685
|
location: "Portland, OR",
|
|
1683
1686
|
isCustom: !0
|
|
1684
1687
|
}
|
|
1685
|
-
],
|
|
1688
|
+
], tn = [
|
|
1686
1689
|
{
|
|
1687
1690
|
id: "atlanta-jan",
|
|
1688
1691
|
label: "Atlanta Market",
|
|
@@ -1699,12 +1702,12 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1699
1702
|
location: "New York, NY",
|
|
1700
1703
|
active: !0
|
|
1701
1704
|
}
|
|
1702
|
-
],
|
|
1705
|
+
], an = [
|
|
1703
1706
|
{ id: "7d", label: "7D" },
|
|
1704
1707
|
{ id: "30d", label: "30D" },
|
|
1705
1708
|
{ id: "60d", label: "60D" },
|
|
1706
1709
|
{ id: "90d", label: "90D" }
|
|
1707
|
-
],
|
|
1710
|
+
], nn = [
|
|
1708
1711
|
{ id: "mtd", label: "MTD" },
|
|
1709
1712
|
{ id: "qtd", label: "QTD" },
|
|
1710
1713
|
{ id: "ytd", label: "YTD" },
|
|
@@ -1716,20 +1719,20 @@ const ae = G.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1716
1719
|
size: "Size",
|
|
1717
1720
|
color: "Color",
|
|
1718
1721
|
pinned: "Pinned"
|
|
1719
|
-
},
|
|
1720
|
-
timeframe:
|
|
1721
|
-
threshold:
|
|
1722
|
-
slots:
|
|
1723
|
-
size:
|
|
1724
|
-
color:
|
|
1725
|
-
pinned:
|
|
1722
|
+
}, Mt = {
|
|
1723
|
+
timeframe: tt,
|
|
1724
|
+
threshold: at,
|
|
1725
|
+
slots: nt,
|
|
1726
|
+
size: rt,
|
|
1727
|
+
color: st,
|
|
1728
|
+
pinned: ot
|
|
1726
1729
|
};
|
|
1727
|
-
function
|
|
1730
|
+
function Se(...e) {
|
|
1728
1731
|
return e.filter(Boolean).join(" ");
|
|
1729
1732
|
}
|
|
1730
|
-
function
|
|
1731
|
-
const [e, t] =
|
|
1732
|
-
return
|
|
1733
|
+
function Ft() {
|
|
1734
|
+
const [e, t] = W(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1735
|
+
return L(() => {
|
|
1733
1736
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1734
1737
|
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (r) => t(r.matches);
|
|
1735
1738
|
return typeof n.addEventListener == "function" ? (n.addEventListener("change", a), () => n.removeEventListener("change", a)) : (n.addListener?.(a), () => {
|
|
@@ -1737,85 +1740,85 @@ function Mt() {
|
|
|
1737
1740
|
});
|
|
1738
1741
|
}, []), e;
|
|
1739
1742
|
}
|
|
1740
|
-
const
|
|
1743
|
+
const Pt = ({
|
|
1741
1744
|
dimensions: e,
|
|
1742
1745
|
onDimensionSelect: t,
|
|
1743
1746
|
activeDimension: n,
|
|
1744
1747
|
ariaCardTypeLabel: a,
|
|
1745
1748
|
className: r
|
|
1746
1749
|
}) => {
|
|
1747
|
-
const s =
|
|
1750
|
+
const s = I(null), o = I([]), l = Ft(), b = re(() => Array.from(e), [e]);
|
|
1748
1751
|
if (b.length === 0) return null;
|
|
1749
|
-
const p = a ? `Configure ${a}: choose a dimension` : void 0,
|
|
1750
|
-
const g = b.length - 1,
|
|
1751
|
-
const
|
|
1752
|
-
|
|
1752
|
+
const p = a ? `Configure ${a}: choose a dimension` : void 0, v = l ? "10ms" : "200ms", C = (u, c) => {
|
|
1753
|
+
const g = b.length - 1, S = (f) => {
|
|
1754
|
+
const x = o.current[f];
|
|
1755
|
+
x && x.focus();
|
|
1753
1756
|
};
|
|
1754
1757
|
switch (u.key) {
|
|
1755
1758
|
case "ArrowRight":
|
|
1756
1759
|
case "ArrowDown": {
|
|
1757
|
-
u.preventDefault(),
|
|
1760
|
+
u.preventDefault(), S(c === g ? 0 : c + 1);
|
|
1758
1761
|
break;
|
|
1759
1762
|
}
|
|
1760
1763
|
case "ArrowLeft":
|
|
1761
1764
|
case "ArrowUp": {
|
|
1762
|
-
u.preventDefault(),
|
|
1765
|
+
u.preventDefault(), S(c === 0 ? g : c - 1);
|
|
1763
1766
|
break;
|
|
1764
1767
|
}
|
|
1765
1768
|
case "Home": {
|
|
1766
|
-
u.preventDefault(),
|
|
1769
|
+
u.preventDefault(), S(0);
|
|
1767
1770
|
break;
|
|
1768
1771
|
}
|
|
1769
1772
|
case "End": {
|
|
1770
|
-
u.preventDefault(),
|
|
1773
|
+
u.preventDefault(), S(g);
|
|
1771
1774
|
break;
|
|
1772
1775
|
}
|
|
1773
1776
|
case "Enter":
|
|
1774
1777
|
case " ": {
|
|
1775
|
-
u.preventDefault(), t(b[
|
|
1778
|
+
u.preventDefault(), t(b[c]);
|
|
1776
1779
|
break;
|
|
1777
1780
|
}
|
|
1778
1781
|
}
|
|
1779
1782
|
};
|
|
1780
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ d(
|
|
1781
1784
|
"div",
|
|
1782
1785
|
{
|
|
1783
1786
|
ref: s,
|
|
1784
1787
|
role: "group",
|
|
1785
1788
|
"aria-label": p,
|
|
1786
|
-
className:
|
|
1789
|
+
className: Se("gloss-reconfig-backside-buttons", r),
|
|
1787
1790
|
style: {
|
|
1788
1791
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1789
1792
|
// so the SCSS transition rule can consume it without a nested media
|
|
1790
1793
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1791
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
1794
|
+
"--gloss-reconfig-backside-buttons-transition-duration": v
|
|
1792
1795
|
},
|
|
1793
|
-
children: b.map((u,
|
|
1794
|
-
const g =
|
|
1796
|
+
children: b.map((u, c) => {
|
|
1797
|
+
const g = Mt[u], S = n === u;
|
|
1795
1798
|
return /* @__PURE__ */ A(
|
|
1796
1799
|
"button",
|
|
1797
1800
|
{
|
|
1798
1801
|
ref: (f) => {
|
|
1799
|
-
o.current[
|
|
1802
|
+
o.current[c] = f;
|
|
1800
1803
|
},
|
|
1801
1804
|
type: "button",
|
|
1802
1805
|
"data-dimension": u,
|
|
1803
|
-
className:
|
|
1806
|
+
className: Se(
|
|
1804
1807
|
"gloss-reconfig-backside-buttons__button",
|
|
1805
|
-
|
|
1808
|
+
S && "gloss-reconfig-backside-buttons__button--active"
|
|
1806
1809
|
),
|
|
1807
|
-
"aria-current":
|
|
1810
|
+
"aria-current": S ? "true" : void 0,
|
|
1808
1811
|
onClick: () => t(u),
|
|
1809
|
-
onKeyDown: (f) => C(f,
|
|
1812
|
+
onKeyDown: (f) => C(f, c),
|
|
1810
1813
|
children: [
|
|
1811
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ d(
|
|
1812
1815
|
g,
|
|
1813
1816
|
{
|
|
1814
1817
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
1815
1818
|
"aria-hidden": "true"
|
|
1816
1819
|
}
|
|
1817
1820
|
),
|
|
1818
|
-
/* @__PURE__ */
|
|
1821
|
+
/* @__PURE__ */ d("span", { className: "gloss-reconfig-backside-buttons__button-label", children: It[u] })
|
|
1819
1822
|
]
|
|
1820
1823
|
},
|
|
1821
1824
|
u
|
|
@@ -1824,12 +1827,12 @@ const Ft = ({
|
|
|
1824
1827
|
}
|
|
1825
1828
|
);
|
|
1826
1829
|
};
|
|
1827
|
-
|
|
1828
|
-
function
|
|
1830
|
+
Pt.displayName = "ReconfigBacksideButtons";
|
|
1831
|
+
function Z(e, t) {
|
|
1829
1832
|
return {
|
|
1830
1833
|
id: e,
|
|
1831
1834
|
colSpan: 1,
|
|
1832
|
-
content:
|
|
1835
|
+
content: H.createElement("div", {
|
|
1833
1836
|
style: {
|
|
1834
1837
|
width: "100%",
|
|
1835
1838
|
height: "100%",
|
|
@@ -1845,38 +1848,38 @@ function U(e, t) {
|
|
|
1845
1848
|
}, t)
|
|
1846
1849
|
};
|
|
1847
1850
|
}
|
|
1848
|
-
function
|
|
1851
|
+
function Te(e, t) {
|
|
1849
1852
|
return {
|
|
1850
|
-
...
|
|
1853
|
+
...Z(e, t),
|
|
1851
1854
|
colSpan: 2
|
|
1852
1855
|
};
|
|
1853
1856
|
}
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
],
|
|
1857
|
+
const rn = [
|
|
1858
|
+
Z("total-revenue", "Total Revenue"),
|
|
1859
|
+
Z("total-orders", "Total Orders"),
|
|
1860
|
+
Te("revenue-trend", "Revenue Trend (2x)"),
|
|
1861
|
+
Z("avg-order", "Avg Order Value"),
|
|
1862
|
+
Z("new-customers", "New Customers"),
|
|
1863
|
+
Z("top-salesperson", "Top Salesperson"),
|
|
1864
|
+
Te("order-trend", "Order Trend (2x)"),
|
|
1865
|
+
Z("repeat-rate", "Repeat Rate"),
|
|
1866
|
+
Z("open-orders", "Open Orders"),
|
|
1867
|
+
Z("shipped-orders", "Shipped Orders")
|
|
1868
|
+
], sn = {
|
|
1866
1869
|
columns: 6,
|
|
1867
1870
|
rowHeight: 120,
|
|
1868
1871
|
gap: 15,
|
|
1869
1872
|
maxRows: 3,
|
|
1870
1873
|
currentPage: 0,
|
|
1871
1874
|
totalPages: 1
|
|
1872
|
-
},
|
|
1875
|
+
}, on = {
|
|
1873
1876
|
columns: 9,
|
|
1874
1877
|
rowHeight: 120,
|
|
1875
1878
|
gap: 15,
|
|
1876
1879
|
maxRows: 3,
|
|
1877
1880
|
currentPage: 0,
|
|
1878
1881
|
totalPages: 2
|
|
1879
|
-
},
|
|
1882
|
+
}, ln = {
|
|
1880
1883
|
columns: 12,
|
|
1881
1884
|
rowHeight: 120,
|
|
1882
1885
|
gap: 15,
|
|
@@ -1884,15 +1887,15 @@ const nn = [
|
|
|
1884
1887
|
currentPage: 0,
|
|
1885
1888
|
totalPages: 3
|
|
1886
1889
|
};
|
|
1887
|
-
function
|
|
1888
|
-
return
|
|
1890
|
+
function pe(e) {
|
|
1891
|
+
return H.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1889
1892
|
}
|
|
1890
|
-
const
|
|
1893
|
+
const cn = [
|
|
1891
1894
|
{
|
|
1892
1895
|
id: "all-orders",
|
|
1893
1896
|
type: "orders",
|
|
1894
1897
|
name: "All Orders",
|
|
1895
|
-
icon:
|
|
1898
|
+
icon: pe("📋"),
|
|
1896
1899
|
closable: !1,
|
|
1897
1900
|
autoCreated: !0
|
|
1898
1901
|
},
|
|
@@ -1900,14 +1903,14 @@ const ln = [
|
|
|
1900
1903
|
id: "open-orders",
|
|
1901
1904
|
type: "orders",
|
|
1902
1905
|
name: "Open Orders",
|
|
1903
|
-
icon:
|
|
1906
|
+
icon: pe("📦"),
|
|
1904
1907
|
closable: !0
|
|
1905
1908
|
},
|
|
1906
1909
|
{
|
|
1907
1910
|
id: "shipped-orders",
|
|
1908
1911
|
type: "orders",
|
|
1909
1912
|
name: "Shipped Orders",
|
|
1910
|
-
icon:
|
|
1913
|
+
icon: pe("🚚"),
|
|
1911
1914
|
closable: !0
|
|
1912
1915
|
}
|
|
1913
1916
|
], dn = [
|
|
@@ -1936,7 +1939,7 @@ const ln = [
|
|
|
1936
1939
|
name: "Customers",
|
|
1937
1940
|
closable: !0
|
|
1938
1941
|
}
|
|
1939
|
-
],
|
|
1942
|
+
], un = [
|
|
1940
1943
|
{
|
|
1941
1944
|
id: "only-tab",
|
|
1942
1945
|
type: "orders",
|
|
@@ -1944,7 +1947,7 @@ const ln = [
|
|
|
1944
1947
|
closable: !1,
|
|
1945
1948
|
autoCreated: !0
|
|
1946
1949
|
}
|
|
1947
|
-
],
|
|
1950
|
+
], mn = [
|
|
1948
1951
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1949
1952
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1950
1953
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1956,7 +1959,7 @@ const ln = [
|
|
|
1956
1959
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
1957
1960
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
1958
1961
|
];
|
|
1959
|
-
function
|
|
1962
|
+
function be(e) {
|
|
1960
1963
|
switch (e) {
|
|
1961
1964
|
case "wide":
|
|
1962
1965
|
return { cols: 2, rows: 1 };
|
|
@@ -1967,24 +1970,24 @@ function he(e) {
|
|
|
1967
1970
|
return { cols: 1, rows: 1 };
|
|
1968
1971
|
}
|
|
1969
1972
|
}
|
|
1970
|
-
function
|
|
1973
|
+
function Et(e) {
|
|
1971
1974
|
let t = 0;
|
|
1972
1975
|
for (const a of e) {
|
|
1973
|
-
const r =
|
|
1976
|
+
const r = be(a.size), s = a.gridPosition.col + r.cols - 1;
|
|
1974
1977
|
s > t && (t = s);
|
|
1975
1978
|
}
|
|
1976
1979
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1977
1980
|
}
|
|
1978
|
-
const
|
|
1981
|
+
const Ot = function(t) {
|
|
1979
1982
|
if (t.renderMode === "discrete")
|
|
1980
|
-
return /* @__PURE__ */
|
|
1983
|
+
return /* @__PURE__ */ d(
|
|
1981
1984
|
"div",
|
|
1982
1985
|
{
|
|
1983
1986
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1984
1987
|
style: { display: "contents" },
|
|
1985
1988
|
children: t.cards.map((r) => {
|
|
1986
|
-
const s =
|
|
1987
|
-
return /* @__PURE__ */
|
|
1989
|
+
const s = be(r.size);
|
|
1990
|
+
return /* @__PURE__ */ d(
|
|
1988
1991
|
"div",
|
|
1989
1992
|
{
|
|
1990
1993
|
className: "gloss-metric-group__slot",
|
|
@@ -2019,7 +2022,7 @@ const Et = function(t) {
|
|
|
2019
2022
|
"aria-label": a?.label,
|
|
2020
2023
|
tabIndex: void 0,
|
|
2021
2024
|
children: [
|
|
2022
|
-
a?.accentColor && /* @__PURE__ */
|
|
2025
|
+
a?.accentColor && /* @__PURE__ */ d(
|
|
2023
2026
|
"div",
|
|
2024
2027
|
{
|
|
2025
2028
|
className: "gloss-metric-group__accent",
|
|
@@ -2027,8 +2030,8 @@ const Et = function(t) {
|
|
|
2027
2030
|
}
|
|
2028
2031
|
),
|
|
2029
2032
|
a?.label && /* @__PURE__ */ A("div", { className: "gloss-metric-group__label", children: [
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
a?.trend && /* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ d("span", { children: a.label }),
|
|
2034
|
+
a?.trend && /* @__PURE__ */ d(
|
|
2032
2035
|
"span",
|
|
2033
2036
|
{
|
|
2034
2037
|
className: "gloss-metric-group__trend",
|
|
@@ -2037,18 +2040,18 @@ const Et = function(t) {
|
|
|
2037
2040
|
}
|
|
2038
2041
|
)
|
|
2039
2042
|
] }),
|
|
2040
|
-
/* @__PURE__ */
|
|
2043
|
+
/* @__PURE__ */ d(
|
|
2041
2044
|
"div",
|
|
2042
2045
|
{
|
|
2043
2046
|
className: "gloss-metric-group__slots",
|
|
2044
2047
|
style: {
|
|
2045
2048
|
display: "grid",
|
|
2046
2049
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2047
|
-
gridTemplateColumns:
|
|
2050
|
+
gridTemplateColumns: Et(n)
|
|
2048
2051
|
},
|
|
2049
2052
|
children: n.map((r) => {
|
|
2050
|
-
const s =
|
|
2051
|
-
return /* @__PURE__ */
|
|
2053
|
+
const s = be(r.size);
|
|
2054
|
+
return /* @__PURE__ */ d(
|
|
2052
2055
|
"div",
|
|
2053
2056
|
{
|
|
2054
2057
|
className: "gloss-metric-group__slot--composite",
|
|
@@ -2067,48 +2070,48 @@ const Et = function(t) {
|
|
|
2067
2070
|
}
|
|
2068
2071
|
);
|
|
2069
2072
|
};
|
|
2070
|
-
|
|
2071
|
-
const
|
|
2072
|
-
...
|
|
2073
|
+
Ot.displayName = "MetricGroupContainer";
|
|
2074
|
+
const Ae = "resize.tuning.dev", At = {
|
|
2075
|
+
...Me,
|
|
2073
2076
|
snapInPx: 60,
|
|
2074
2077
|
snapOutPx: 90
|
|
2075
|
-
},
|
|
2076
|
-
function
|
|
2077
|
-
if (typeof window > "u") return { ...
|
|
2078
|
+
}, J = At;
|
|
2079
|
+
function Lt() {
|
|
2080
|
+
if (typeof window > "u") return { ...J };
|
|
2078
2081
|
try {
|
|
2079
|
-
const e = window.localStorage.getItem(
|
|
2080
|
-
if (!e) return { ...
|
|
2082
|
+
const e = window.localStorage.getItem(Ae);
|
|
2083
|
+
if (!e) return { ...J };
|
|
2081
2084
|
const t = JSON.parse(e);
|
|
2082
|
-
return !t || typeof t != "object" || Array.isArray(t) ? { ...
|
|
2085
|
+
return !t || typeof t != "object" || Array.isArray(t) ? { ...J } : { ...J, ...t };
|
|
2083
2086
|
} catch {
|
|
2084
|
-
return { ...
|
|
2087
|
+
return { ...J };
|
|
2085
2088
|
}
|
|
2086
2089
|
}
|
|
2087
|
-
function
|
|
2088
|
-
const [e, t] =
|
|
2089
|
-
|
|
2090
|
+
function $t() {
|
|
2091
|
+
const [e, t] = W(() => Lt());
|
|
2092
|
+
L(() => {
|
|
2090
2093
|
if (!(typeof window > "u"))
|
|
2091
2094
|
try {
|
|
2092
|
-
window.localStorage.setItem(
|
|
2095
|
+
window.localStorage.setItem(Ae, JSON.stringify(e));
|
|
2093
2096
|
} catch {
|
|
2094
2097
|
}
|
|
2095
2098
|
}, [e]);
|
|
2096
|
-
const n =
|
|
2099
|
+
const n = y(
|
|
2097
2100
|
(s, o) => {
|
|
2098
2101
|
t((l) => ({ ...l, [s]: o }));
|
|
2099
2102
|
},
|
|
2100
2103
|
[]
|
|
2101
|
-
), a =
|
|
2104
|
+
), a = y(
|
|
2102
2105
|
(s) => {
|
|
2103
|
-
t((o) => ({ ...o, [s]:
|
|
2106
|
+
t((o) => ({ ...o, [s]: J[s] }));
|
|
2104
2107
|
},
|
|
2105
2108
|
[]
|
|
2106
|
-
), r =
|
|
2107
|
-
t({ ...
|
|
2109
|
+
), r = y(() => {
|
|
2110
|
+
t({ ...J });
|
|
2108
2111
|
}, []);
|
|
2109
2112
|
return { values: e, setValue: n, resetRow: a, resetAll: r };
|
|
2110
2113
|
}
|
|
2111
|
-
const
|
|
2114
|
+
const Bt = [
|
|
2112
2115
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2113
2116
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2114
2117
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2119,10 +2122,10 @@ const $t = [
|
|
|
2119
2122
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2120
2123
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2121
2124
|
];
|
|
2122
|
-
function
|
|
2125
|
+
function Kt(e, t) {
|
|
2123
2126
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2124
2127
|
}
|
|
2125
|
-
function
|
|
2128
|
+
function zt() {
|
|
2126
2129
|
return /* @__PURE__ */ A(
|
|
2127
2130
|
"svg",
|
|
2128
2131
|
{
|
|
@@ -2136,14 +2139,14 @@ function Kt() {
|
|
|
2136
2139
|
strokeLinejoin: "round",
|
|
2137
2140
|
"aria-hidden": "true",
|
|
2138
2141
|
children: [
|
|
2139
|
-
/* @__PURE__ */
|
|
2140
|
-
/* @__PURE__ */
|
|
2142
|
+
/* @__PURE__ */ d("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
2143
|
+
/* @__PURE__ */ d("polyline", { points: "3 3 3 8 8 8" })
|
|
2141
2144
|
]
|
|
2142
2145
|
}
|
|
2143
2146
|
);
|
|
2144
2147
|
}
|
|
2145
|
-
function
|
|
2146
|
-
const s =
|
|
2148
|
+
function Wt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
2149
|
+
const s = y(
|
|
2147
2150
|
(o) => {
|
|
2148
2151
|
(o.key === "r" || o.key === "R") && (o.preventDefault(), a());
|
|
2149
2152
|
},
|
|
@@ -2156,12 +2159,12 @@ function zt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2156
2159
|
"data-tuning-row": e.key,
|
|
2157
2160
|
onKeyDown: s,
|
|
2158
2161
|
children: [
|
|
2159
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ d("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2160
2163
|
/* @__PURE__ */ A("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2161
|
-
|
|
2164
|
+
Kt(t, e.step),
|
|
2162
2165
|
e.unit ? ` ${e.unit}` : ""
|
|
2163
2166
|
] }),
|
|
2164
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ d(
|
|
2165
2168
|
"input",
|
|
2166
2169
|
{
|
|
2167
2170
|
id: `gloss-dtp-${e.key}`,
|
|
@@ -2175,21 +2178,21 @@ function zt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2175
2178
|
onChange: (o) => n(Number(o.target.value))
|
|
2176
2179
|
}
|
|
2177
2180
|
),
|
|
2178
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ d(
|
|
2179
2182
|
"button",
|
|
2180
2183
|
{
|
|
2181
2184
|
type: "button",
|
|
2182
2185
|
className: "gloss-dev-tuning-panel__reset",
|
|
2183
2186
|
"aria-label": `Reset ${e.label}`,
|
|
2184
2187
|
onClick: a,
|
|
2185
|
-
children: /* @__PURE__ */
|
|
2188
|
+
children: /* @__PURE__ */ d(zt, {})
|
|
2186
2189
|
}
|
|
2187
2190
|
)
|
|
2188
2191
|
]
|
|
2189
2192
|
}
|
|
2190
2193
|
);
|
|
2191
2194
|
}
|
|
2192
|
-
function
|
|
2195
|
+
function Gt() {
|
|
2193
2196
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2194
2197
|
try {
|
|
2195
2198
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2197,23 +2200,23 @@ function Wt() {
|
|
|
2197
2200
|
return !1;
|
|
2198
2201
|
}
|
|
2199
2202
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return
|
|
2203
|
+
function Ht(e = {}) {
|
|
2204
|
+
return Gt() ? /* @__PURE__ */ d(Vt, {}) : null;
|
|
2202
2205
|
}
|
|
2203
|
-
|
|
2204
|
-
function
|
|
2205
|
-
const e =
|
|
2206
|
+
Ht.displayName = "DevTuningPanel";
|
|
2207
|
+
function Vt() {
|
|
2208
|
+
const e = $t(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), l = I(null), b = y((u) => {
|
|
2206
2209
|
l.current && clearTimeout(l.current), o(u), l.current = setTimeout(() => {
|
|
2207
2210
|
o(null), l.current = null;
|
|
2208
2211
|
}, 200);
|
|
2209
|
-
}, []), p =
|
|
2210
|
-
(u,
|
|
2211
|
-
n(u,
|
|
2212
|
+
}, []), p = y(
|
|
2213
|
+
(u, c) => {
|
|
2214
|
+
n(u, c), u === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
|
|
2212
2215
|
},
|
|
2213
2216
|
[n, t.snapOutPx, b]
|
|
2214
|
-
),
|
|
2217
|
+
), v = re(() => Bt, []), C = Xe();
|
|
2215
2218
|
return /* @__PURE__ */ A(
|
|
2216
|
-
|
|
2219
|
+
Ie.div,
|
|
2217
2220
|
{
|
|
2218
2221
|
className: "gloss-dev-tuning-panel",
|
|
2219
2222
|
role: "region",
|
|
@@ -2230,23 +2233,23 @@ function Ht() {
|
|
|
2230
2233
|
className: "gloss-dev-tuning-panel__header",
|
|
2231
2234
|
onPointerDown: (u) => C.start(u),
|
|
2232
2235
|
children: [
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2237
|
+
/* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2235
2238
|
]
|
|
2236
2239
|
}
|
|
2237
2240
|
),
|
|
2238
|
-
/* @__PURE__ */
|
|
2239
|
-
|
|
2241
|
+
/* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__body", children: v.map((u) => /* @__PURE__ */ d(
|
|
2242
|
+
Wt,
|
|
2240
2243
|
{
|
|
2241
2244
|
spec: u,
|
|
2242
2245
|
value: t[u.key],
|
|
2243
|
-
onChange: (
|
|
2246
|
+
onChange: (c) => p(u.key, c),
|
|
2244
2247
|
onReset: () => a(u.key),
|
|
2245
2248
|
flashing: s === u.key
|
|
2246
2249
|
},
|
|
2247
2250
|
u.key
|
|
2248
2251
|
)) }),
|
|
2249
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ d(
|
|
2250
2253
|
"button",
|
|
2251
2254
|
{
|
|
2252
2255
|
type: "button",
|
|
@@ -2259,7 +2262,7 @@ function Ht() {
|
|
|
2259
2262
|
}
|
|
2260
2263
|
);
|
|
2261
2264
|
}
|
|
2262
|
-
function
|
|
2265
|
+
function pn({
|
|
2263
2266
|
state: e,
|
|
2264
2267
|
originX: t,
|
|
2265
2268
|
originY: n,
|
|
@@ -2269,20 +2272,20 @@ function mn({
|
|
|
2269
2272
|
snapBoundariesX: o,
|
|
2270
2273
|
topY: l,
|
|
2271
2274
|
bottomY: b,
|
|
2272
|
-
enterMs: p =
|
|
2273
|
-
exitMs:
|
|
2275
|
+
enterMs: p = ee.envelopeEnterMs,
|
|
2276
|
+
exitMs: v = ee.envelopeExitMs,
|
|
2274
2277
|
className: C,
|
|
2275
2278
|
style: u
|
|
2276
2279
|
}) {
|
|
2277
2280
|
if (e === "hidden") return null;
|
|
2278
|
-
const
|
|
2281
|
+
const c = Math.max(0, r - a), g = Math.max(0, b - l), S = {
|
|
2279
2282
|
"--gloss-resize-envelope-enter-ms": `${p}ms`,
|
|
2280
|
-
"--gloss-resize-envelope-exit-ms": `${
|
|
2283
|
+
"--gloss-resize-envelope-exit-ms": `${v}ms`,
|
|
2281
2284
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2282
2285
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
2283
2286
|
left: a,
|
|
2284
2287
|
top: l,
|
|
2285
|
-
width:
|
|
2288
|
+
width: c,
|
|
2286
2289
|
height: g,
|
|
2287
2290
|
...u
|
|
2288
2291
|
};
|
|
@@ -2292,10 +2295,10 @@ function mn({
|
|
|
2292
2295
|
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, C].filter(Boolean).join(" "),
|
|
2293
2296
|
"data-state": e,
|
|
2294
2297
|
"data-testid": "gloss-resize-envelope",
|
|
2295
|
-
style:
|
|
2298
|
+
style: S,
|
|
2296
2299
|
"aria-hidden": "true",
|
|
2297
2300
|
children: [
|
|
2298
|
-
/* @__PURE__ */
|
|
2301
|
+
/* @__PURE__ */ d(
|
|
2299
2302
|
"div",
|
|
2300
2303
|
{
|
|
2301
2304
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--left",
|
|
@@ -2303,7 +2306,7 @@ function mn({
|
|
|
2303
2306
|
style: { left: 0 }
|
|
2304
2307
|
}
|
|
2305
2308
|
),
|
|
2306
|
-
/* @__PURE__ */
|
|
2309
|
+
/* @__PURE__ */ d(
|
|
2307
2310
|
"div",
|
|
2308
2311
|
{
|
|
2309
2312
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--min-boundary",
|
|
@@ -2311,15 +2314,15 @@ function mn({
|
|
|
2311
2314
|
style: { left: s - a }
|
|
2312
2315
|
}
|
|
2313
2316
|
),
|
|
2314
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ d(
|
|
2315
2318
|
"div",
|
|
2316
2319
|
{
|
|
2317
2320
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
|
|
2318
2321
|
"data-edge": "right",
|
|
2319
|
-
style: { left:
|
|
2322
|
+
style: { left: c - 1 }
|
|
2320
2323
|
}
|
|
2321
2324
|
),
|
|
2322
|
-
o.filter((f) => f > s && f < r).map((f) => /* @__PURE__ */
|
|
2325
|
+
o.filter((f) => f > s && f < r).map((f) => /* @__PURE__ */ d(
|
|
2323
2326
|
"div",
|
|
2324
2327
|
{
|
|
2325
2328
|
className: "gloss-resize-envelope__snap-line",
|
|
@@ -2332,7 +2335,7 @@ function mn({
|
|
|
2332
2335
|
}
|
|
2333
2336
|
);
|
|
2334
2337
|
}
|
|
2335
|
-
function
|
|
2338
|
+
function gn({
|
|
2336
2339
|
density: e,
|
|
2337
2340
|
canAccept: t,
|
|
2338
2341
|
blocked: n = !1,
|
|
@@ -2340,7 +2343,7 @@ function pn({
|
|
|
2340
2343
|
children: r,
|
|
2341
2344
|
...s
|
|
2342
2345
|
}) {
|
|
2343
|
-
return /* @__PURE__ */
|
|
2346
|
+
return /* @__PURE__ */ d(
|
|
2344
2347
|
"div",
|
|
2345
2348
|
{
|
|
2346
2349
|
...s,
|
|
@@ -2357,18 +2360,18 @@ function pn({
|
|
|
2357
2360
|
}
|
|
2358
2361
|
);
|
|
2359
2362
|
}
|
|
2360
|
-
function
|
|
2363
|
+
function Ut(e, t, n, a) {
|
|
2361
2364
|
const r = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2362
2365
|
return `M${e},${t} Q${r},${s} ${n},${a}`;
|
|
2363
2366
|
}
|
|
2364
|
-
function
|
|
2367
|
+
function fn({
|
|
2365
2368
|
segments: e,
|
|
2366
|
-
durationMs: t =
|
|
2367
|
-
staggerMs: n =
|
|
2369
|
+
durationMs: t = ee.spilloverArcDurationMs,
|
|
2370
|
+
staggerMs: n = ee.spilloverStaggerMs,
|
|
2368
2371
|
className: a,
|
|
2369
2372
|
style: r
|
|
2370
2373
|
}) {
|
|
2371
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
2374
|
+
return e.length === 0 ? null : /* @__PURE__ */ d(
|
|
2372
2375
|
"svg",
|
|
2373
2376
|
{
|
|
2374
2377
|
className: ["gloss-spillover-arc", a].filter(Boolean).join(" "),
|
|
@@ -2376,12 +2379,12 @@ function gn({
|
|
|
2376
2379
|
"aria-hidden": "true",
|
|
2377
2380
|
overflow: "visible",
|
|
2378
2381
|
style: { position: "absolute", inset: 0, pointerEvents: "none", ...r },
|
|
2379
|
-
children: e.map((s, o) => /* @__PURE__ */
|
|
2382
|
+
children: e.map((s, o) => /* @__PURE__ */ d(
|
|
2380
2383
|
"path",
|
|
2381
2384
|
{
|
|
2382
2385
|
"data-arc-id": s.id,
|
|
2383
2386
|
className: "gloss-spillover-arc__path",
|
|
2384
|
-
d:
|
|
2387
|
+
d: Ut(s.fromX, s.fromY, s.toX, s.toY),
|
|
2385
2388
|
style: {
|
|
2386
2389
|
animationDelay: `${o * n}ms`,
|
|
2387
2390
|
animationDuration: `${t}ms`
|
|
@@ -2392,12 +2395,12 @@ function gn({
|
|
|
2392
2395
|
}
|
|
2393
2396
|
);
|
|
2394
2397
|
}
|
|
2395
|
-
function
|
|
2398
|
+
function hn({
|
|
2396
2399
|
state: e,
|
|
2397
2400
|
staggerIndex: t = 0,
|
|
2398
|
-
fadeInMs: n =
|
|
2399
|
-
fadeOutMs: a =
|
|
2400
|
-
staggerMs: r =
|
|
2401
|
+
fadeInMs: n = ee.sectionDividerFadeInMs,
|
|
2402
|
+
fadeOutMs: a = ee.sectionDividerFadeOutMs,
|
|
2403
|
+
staggerMs: r = ee.sectionDividerStaggerMs,
|
|
2401
2404
|
className: s,
|
|
2402
2405
|
style: o,
|
|
2403
2406
|
...l
|
|
@@ -2408,7 +2411,7 @@ function fn({
|
|
|
2408
2411
|
"--gloss-section-divider-stagger-delay": `${t * r}ms`,
|
|
2409
2412
|
...o
|
|
2410
2413
|
};
|
|
2411
|
-
return /* @__PURE__ */
|
|
2414
|
+
return /* @__PURE__ */ d(
|
|
2412
2415
|
"div",
|
|
2413
2416
|
{
|
|
2414
2417
|
...l,
|
|
@@ -2424,14 +2427,14 @@ function fn({
|
|
|
2424
2427
|
}
|
|
2425
2428
|
);
|
|
2426
2429
|
}
|
|
2427
|
-
function
|
|
2430
|
+
function bn({
|
|
2428
2431
|
enabled: e,
|
|
2429
2432
|
onPack: t,
|
|
2430
2433
|
ariaLabel: n = "Pack row (shift cards left)",
|
|
2431
2434
|
className: a,
|
|
2432
2435
|
style: r
|
|
2433
2436
|
}) {
|
|
2434
|
-
return e ? /* @__PURE__ */
|
|
2437
|
+
return e ? /* @__PURE__ */ d(
|
|
2435
2438
|
"button",
|
|
2436
2439
|
{
|
|
2437
2440
|
type: "button",
|
|
@@ -2440,11 +2443,11 @@ function hn({
|
|
|
2440
2443
|
className: ["gloss-empty-cell-pack-affordance", a].filter(Boolean).join(" "),
|
|
2441
2444
|
style: r,
|
|
2442
2445
|
onClick: t,
|
|
2443
|
-
children: /* @__PURE__ */
|
|
2446
|
+
children: /* @__PURE__ */ d("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2444
2447
|
}
|
|
2445
2448
|
) : null;
|
|
2446
2449
|
}
|
|
2447
|
-
const
|
|
2450
|
+
const X = {
|
|
2448
2451
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
2449
2452
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
2450
2453
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -2452,28 +2455,28 @@ const Z = {
|
|
|
2452
2455
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2453
2456
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2454
2457
|
};
|
|
2455
|
-
function
|
|
2458
|
+
function Zt({
|
|
2456
2459
|
message: e,
|
|
2457
2460
|
primaryAction: t,
|
|
2458
2461
|
onDismiss: n,
|
|
2459
2462
|
anchorEl: a,
|
|
2460
2463
|
anchorSelector: r
|
|
2461
2464
|
}) {
|
|
2462
|
-
const [s, o] =
|
|
2465
|
+
const [s, o] = H.useState(null), l = H.useMemo(
|
|
2463
2466
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
2464
2467
|
[]
|
|
2465
2468
|
);
|
|
2466
|
-
|
|
2469
|
+
H.useEffect(() => {
|
|
2467
2470
|
!a && !r && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
2468
2471
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2469
2472
|
);
|
|
2470
|
-
}, [a, r]),
|
|
2473
|
+
}, [a, r]), H.useLayoutEffect(() => {
|
|
2471
2474
|
let p = null;
|
|
2472
2475
|
if (a ? p = a : r && (p = document.querySelector(r)), p) {
|
|
2473
|
-
const
|
|
2476
|
+
const v = p.getBoundingClientRect();
|
|
2474
2477
|
o({
|
|
2475
|
-
top:
|
|
2476
|
-
left:
|
|
2478
|
+
top: v.bottom + window.scrollY + 6,
|
|
2479
|
+
left: v.left + window.scrollX
|
|
2477
2480
|
});
|
|
2478
2481
|
}
|
|
2479
2482
|
}, [a, r]);
|
|
@@ -2481,28 +2484,28 @@ function Ut({
|
|
|
2481
2484
|
return /* @__PURE__ */ A(
|
|
2482
2485
|
"div",
|
|
2483
2486
|
{
|
|
2484
|
-
className:
|
|
2487
|
+
className: X["gloss-inline-nudge"],
|
|
2485
2488
|
style: b,
|
|
2486
2489
|
role: "status",
|
|
2487
2490
|
"aria-live": "polite",
|
|
2488
2491
|
"data-reduced-motion": l ? "true" : void 0,
|
|
2489
2492
|
children: [
|
|
2490
|
-
/* @__PURE__ */
|
|
2491
|
-
/* @__PURE__ */ A("div", { className:
|
|
2492
|
-
/* @__PURE__ */
|
|
2493
|
+
/* @__PURE__ */ d("span", { className: X["gloss-inline-nudge__message"], children: e }),
|
|
2494
|
+
/* @__PURE__ */ A("div", { className: X["gloss-inline-nudge__actions"], children: [
|
|
2495
|
+
/* @__PURE__ */ d(
|
|
2493
2496
|
"button",
|
|
2494
2497
|
{
|
|
2495
2498
|
type: "button",
|
|
2496
|
-
className: `${
|
|
2499
|
+
className: `${X["gloss-inline-nudge__btn"]} ${X["gloss-inline-nudge__btn--action"]}`,
|
|
2497
2500
|
onClick: t.onClick,
|
|
2498
2501
|
children: t.label
|
|
2499
2502
|
}
|
|
2500
2503
|
),
|
|
2501
|
-
/* @__PURE__ */
|
|
2504
|
+
/* @__PURE__ */ d(
|
|
2502
2505
|
"button",
|
|
2503
2506
|
{
|
|
2504
2507
|
type: "button",
|
|
2505
|
-
className: `${
|
|
2508
|
+
className: `${X["gloss-inline-nudge__btn"]} ${X["gloss-inline-nudge__btn--dismiss"]}`,
|
|
2506
2509
|
onClick: n,
|
|
2507
2510
|
"aria-label": "Dismiss",
|
|
2508
2511
|
children: "Dismiss"
|
|
@@ -2513,25 +2516,25 @@ function Ut({
|
|
|
2513
2516
|
}
|
|
2514
2517
|
);
|
|
2515
2518
|
}
|
|
2516
|
-
|
|
2517
|
-
function
|
|
2519
|
+
Zt.displayName = "InlineNudge";
|
|
2520
|
+
function ve(e) {
|
|
2518
2521
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
2519
2522
|
}
|
|
2520
|
-
function
|
|
2523
|
+
function jt(e, t, n) {
|
|
2521
2524
|
if (n <= t) {
|
|
2522
|
-
const o = e[0], l = o ?
|
|
2525
|
+
const o = e[0], l = o ? ve(o) : "#888";
|
|
2523
2526
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
2524
2527
|
}
|
|
2525
2528
|
const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
2526
2529
|
const l = (o.value - t) / a * 100;
|
|
2527
|
-
return `${
|
|
2530
|
+
return `${ve(o)} ${l.toFixed(2)}%`;
|
|
2528
2531
|
});
|
|
2529
2532
|
return s.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : s.length === 1 ? `linear-gradient(to right, ${s[0]}, ${s[0]})` : `linear-gradient(to right, ${s.join(", ")})`;
|
|
2530
2533
|
}
|
|
2531
|
-
function
|
|
2534
|
+
function Yt(e) {
|
|
2532
2535
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
2533
2536
|
}
|
|
2534
|
-
function
|
|
2537
|
+
function qt({
|
|
2535
2538
|
stops: e,
|
|
2536
2539
|
onChange: t,
|
|
2537
2540
|
min: n = 0,
|
|
@@ -2541,67 +2544,67 @@ function Yt({
|
|
|
2541
2544
|
}) {
|
|
2542
2545
|
const o = r === void 0 ? 0.01 : !Number.isFinite(r) || r <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2543
2546
|
`ThresholdRamp: step (${r}) must be a positive finite number; falling back to 0.01.`
|
|
2544
|
-
), 0.01) : r, l =
|
|
2547
|
+
), 0.01) : r, l = y(
|
|
2545
2548
|
(i) => Math.round(i / o) * o,
|
|
2546
2549
|
[o]
|
|
2547
|
-
), b =
|
|
2548
|
-
|
|
2549
|
-
g.current !==
|
|
2550
|
-
}, [
|
|
2551
|
-
const
|
|
2550
|
+
), b = I(null), [p, v] = W(null), [C, u] = W(e), c = Yt(e), g = I(c);
|
|
2551
|
+
L(() => {
|
|
2552
|
+
g.current !== c && (g.current = c, !p && u(e));
|
|
2553
|
+
}, [c, e, p]);
|
|
2554
|
+
const S = re(() => jt(C, n, a), [C, n, a]), f = y(
|
|
2552
2555
|
(i) => {
|
|
2553
2556
|
if (!b.current) return n;
|
|
2554
|
-
const
|
|
2557
|
+
const h = b.current.getBoundingClientRect(), m = h.width || 1, w = Math.max(0, Math.min(1, (i - h.left) / m)), _ = n + w * (a - n);
|
|
2555
2558
|
return l(_);
|
|
2556
2559
|
},
|
|
2557
2560
|
[n, a, l]
|
|
2558
2561
|
);
|
|
2559
|
-
|
|
2562
|
+
L(() => {
|
|
2560
2563
|
a <= n && process.env.NODE_ENV !== "production" && console.warn(
|
|
2561
2564
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
2562
2565
|
);
|
|
2563
2566
|
}, [n, a]);
|
|
2564
|
-
const
|
|
2565
|
-
(i,
|
|
2566
|
-
const
|
|
2567
|
-
s ||
|
|
2567
|
+
const x = y(
|
|
2568
|
+
(i, h) => {
|
|
2569
|
+
const m = C.find((w) => w.id === h);
|
|
2570
|
+
s || m?.disabled || (i.preventDefault(), v(h));
|
|
2568
2571
|
},
|
|
2569
2572
|
[s, C]
|
|
2570
|
-
), M =
|
|
2573
|
+
), M = I(C);
|
|
2571
2574
|
M.current = C;
|
|
2572
|
-
const
|
|
2573
|
-
|
|
2575
|
+
const N = I(t);
|
|
2576
|
+
N.current = t, L(() => {
|
|
2574
2577
|
if (!p) return;
|
|
2575
|
-
const i = (
|
|
2576
|
-
const
|
|
2578
|
+
const i = (m) => {
|
|
2579
|
+
const w = f(m.clientX);
|
|
2577
2580
|
u(
|
|
2578
|
-
(_) => _.map((
|
|
2581
|
+
(_) => _.map((T) => T.id === p ? { ...T, value: w } : T)
|
|
2579
2582
|
);
|
|
2580
|
-
},
|
|
2581
|
-
const
|
|
2582
|
-
(
|
|
2583
|
+
}, h = (m) => {
|
|
2584
|
+
const w = f(m.clientX), _ = M.current.map(
|
|
2585
|
+
(T) => T.id === p ? { ...T, value: w } : T
|
|
2583
2586
|
);
|
|
2584
|
-
u(_),
|
|
2587
|
+
u(_), v(null), N.current(_);
|
|
2585
2588
|
};
|
|
2586
|
-
return window.addEventListener("pointermove", i), window.addEventListener("pointerup",
|
|
2587
|
-
window.removeEventListener("pointermove", i), window.removeEventListener("pointerup",
|
|
2589
|
+
return window.addEventListener("pointermove", i), window.addEventListener("pointerup", h), window.addEventListener("pointercancel", h), () => {
|
|
2590
|
+
window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", h);
|
|
2588
2591
|
};
|
|
2589
2592
|
}, [p, f]);
|
|
2590
|
-
const
|
|
2591
|
-
(i,
|
|
2592
|
-
if (s ||
|
|
2593
|
-
const
|
|
2594
|
-
if (
|
|
2595
|
-
const
|
|
2596
|
-
let _ =
|
|
2593
|
+
const k = a - n > 0 ? a - n : 1, R = y(
|
|
2594
|
+
(i, h) => {
|
|
2595
|
+
if (s || h.disabled) return;
|
|
2596
|
+
const m = a - n;
|
|
2597
|
+
if (m <= 0) return;
|
|
2598
|
+
const w = i.shiftKey ? m / 20 : m / 100;
|
|
2599
|
+
let _ = h.value;
|
|
2597
2600
|
switch (i.key) {
|
|
2598
2601
|
case "ArrowRight":
|
|
2599
2602
|
case "ArrowUp":
|
|
2600
|
-
_ =
|
|
2603
|
+
_ = h.value + w;
|
|
2601
2604
|
break;
|
|
2602
2605
|
case "ArrowLeft":
|
|
2603
2606
|
case "ArrowDown":
|
|
2604
|
-
_ =
|
|
2607
|
+
_ = h.value - w;
|
|
2605
2608
|
break;
|
|
2606
2609
|
case "Home":
|
|
2607
2610
|
_ = n;
|
|
@@ -2613,35 +2616,35 @@ function Yt({
|
|
|
2613
2616
|
return;
|
|
2614
2617
|
}
|
|
2615
2618
|
i.preventDefault();
|
|
2616
|
-
const
|
|
2617
|
-
if (
|
|
2618
|
-
const
|
|
2619
|
-
(
|
|
2619
|
+
const T = Math.max(n, Math.min(a, _)), E = l(T);
|
|
2620
|
+
if (E === h.value) return;
|
|
2621
|
+
const G = C.map(
|
|
2622
|
+
(V) => V.id === h.id ? { ...V, value: E } : V
|
|
2620
2623
|
);
|
|
2621
|
-
u(
|
|
2624
|
+
u(G), t(G);
|
|
2622
2625
|
},
|
|
2623
2626
|
[s, n, a, C, t, l]
|
|
2624
2627
|
);
|
|
2625
|
-
return /* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ d("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ d(
|
|
2626
2629
|
"div",
|
|
2627
2630
|
{
|
|
2628
2631
|
ref: b,
|
|
2629
2632
|
className: "gloss-threshold-ramp__track",
|
|
2630
|
-
style: { background:
|
|
2633
|
+
style: { background: S },
|
|
2631
2634
|
children: C.map((i) => {
|
|
2632
|
-
const
|
|
2633
|
-
return /* @__PURE__ */
|
|
2635
|
+
const h = (i.value - n) / k * 100;
|
|
2636
|
+
return /* @__PURE__ */ d(
|
|
2634
2637
|
"span",
|
|
2635
2638
|
{
|
|
2636
2639
|
className: "gloss-threshold-ramp__stop",
|
|
2637
2640
|
style: {
|
|
2638
|
-
left: `${
|
|
2639
|
-
color:
|
|
2641
|
+
left: `${h}%`,
|
|
2642
|
+
color: ve(i)
|
|
2640
2643
|
},
|
|
2641
2644
|
"data-disabled": i.disabled || void 0,
|
|
2642
2645
|
"data-dragging": p === i.id || void 0,
|
|
2643
|
-
onPointerDown: (
|
|
2644
|
-
onKeyDown: (
|
|
2646
|
+
onPointerDown: (m) => x(m, i.id),
|
|
2647
|
+
onKeyDown: (m) => R(m, i),
|
|
2645
2648
|
"aria-label": i.label ?? `Stop at ${i.value}`,
|
|
2646
2649
|
role: "slider",
|
|
2647
2650
|
"aria-valuenow": i.value,
|
|
@@ -2656,21 +2659,21 @@ function Yt({
|
|
|
2656
2659
|
}
|
|
2657
2660
|
) });
|
|
2658
2661
|
}
|
|
2659
|
-
|
|
2660
|
-
const
|
|
2661
|
-
function
|
|
2662
|
-
return
|
|
2662
|
+
qt.displayName = "ThresholdRamp";
|
|
2663
|
+
const Le = Ye(null);
|
|
2664
|
+
function Qt() {
|
|
2665
|
+
return qe(Le);
|
|
2663
2666
|
}
|
|
2664
|
-
function
|
|
2665
|
-
const t =
|
|
2667
|
+
function Xt({ option: e }) {
|
|
2668
|
+
const t = Qt(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, r = y(() => {
|
|
2666
2669
|
a || t?.select(e.value);
|
|
2667
|
-
}, [a, t, e.value]), s =
|
|
2670
|
+
}, [a, t, e.value]), s = y(
|
|
2668
2671
|
(p) => {
|
|
2669
2672
|
a || t?.onKeyNav(p, e.value);
|
|
2670
2673
|
},
|
|
2671
2674
|
[a, t, e.value]
|
|
2672
2675
|
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, b = a ? -1 : l ? 0 : -1;
|
|
2673
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ d(
|
|
2674
2677
|
"button",
|
|
2675
2678
|
{
|
|
2676
2679
|
ref: (p) => t?.registerRef(e.value, p),
|
|
@@ -2691,7 +2694,7 @@ function Qt({ option: e }) {
|
|
|
2691
2694
|
}
|
|
2692
2695
|
);
|
|
2693
2696
|
}
|
|
2694
|
-
function
|
|
2697
|
+
function Jt({
|
|
2695
2698
|
swatches: e,
|
|
2696
2699
|
value: t,
|
|
2697
2700
|
defaultValue: n,
|
|
@@ -2699,65 +2702,65 @@ function Xt({
|
|
|
2699
2702
|
disabled: r = !1,
|
|
2700
2703
|
name: s
|
|
2701
2704
|
}) {
|
|
2702
|
-
const o = t !== void 0, [l, b] =
|
|
2703
|
-
(
|
|
2704
|
-
o || b(
|
|
2705
|
+
const o = t !== void 0, [l, b] = W(n), p = o ? t : l, v = y(
|
|
2706
|
+
(N) => {
|
|
2707
|
+
o || b(N), a?.(N);
|
|
2705
2708
|
},
|
|
2706
2709
|
[o, a]
|
|
2707
|
-
), C =
|
|
2708
|
-
(
|
|
2710
|
+
), C = y(
|
|
2711
|
+
(N) => p === N,
|
|
2709
2712
|
[p]
|
|
2710
|
-
), u =
|
|
2711
|
-
|
|
2712
|
-
}, []), g = e.filter((
|
|
2713
|
-
const
|
|
2714
|
-
|
|
2715
|
-
}, []),
|
|
2716
|
-
(
|
|
2713
|
+
), u = I(/* @__PURE__ */ new Map()), c = y((N, k) => {
|
|
2714
|
+
k ? u.current.set(N, k) : u.current.delete(N);
|
|
2715
|
+
}, []), g = e.filter((N) => !N.disabled && !r), S = g.find((N) => N.value === p)?.value ?? g[0]?.value, f = y((N) => {
|
|
2716
|
+
const k = u.current.get(N);
|
|
2717
|
+
k && k.focus();
|
|
2718
|
+
}, []), x = y(
|
|
2719
|
+
(N, k) => {
|
|
2717
2720
|
if (r) return;
|
|
2718
|
-
const
|
|
2719
|
-
if (
|
|
2720
|
-
const i =
|
|
2721
|
+
const R = e.filter((w) => !w.disabled);
|
|
2722
|
+
if (R.length === 0) return;
|
|
2723
|
+
const i = R.findIndex((w) => w.value === k);
|
|
2721
2724
|
if (i === -1) return;
|
|
2722
|
-
let
|
|
2723
|
-
switch (
|
|
2725
|
+
let h = i;
|
|
2726
|
+
switch (N.key) {
|
|
2724
2727
|
case "ArrowRight":
|
|
2725
2728
|
case "ArrowDown":
|
|
2726
|
-
|
|
2729
|
+
h = (i + 1) % R.length;
|
|
2727
2730
|
break;
|
|
2728
2731
|
case "ArrowLeft":
|
|
2729
2732
|
case "ArrowUp":
|
|
2730
|
-
|
|
2733
|
+
h = (i - 1 + R.length) % R.length;
|
|
2731
2734
|
break;
|
|
2732
2735
|
case "Home":
|
|
2733
|
-
|
|
2736
|
+
h = 0;
|
|
2734
2737
|
break;
|
|
2735
2738
|
case "End":
|
|
2736
|
-
|
|
2739
|
+
h = R.length - 1;
|
|
2737
2740
|
break;
|
|
2738
2741
|
case " ":
|
|
2739
2742
|
case "Enter":
|
|
2740
|
-
|
|
2743
|
+
N.preventDefault(), v(k);
|
|
2741
2744
|
return;
|
|
2742
2745
|
default:
|
|
2743
2746
|
return;
|
|
2744
2747
|
}
|
|
2745
|
-
|
|
2746
|
-
const
|
|
2747
|
-
f(
|
|
2748
|
+
N.preventDefault();
|
|
2749
|
+
const m = R[h].value;
|
|
2750
|
+
f(m), v(m);
|
|
2748
2751
|
},
|
|
2749
|
-
[r, e,
|
|
2752
|
+
[r, e, v, f]
|
|
2750
2753
|
), M = {
|
|
2751
2754
|
selectedValue: p,
|
|
2752
|
-
select:
|
|
2755
|
+
select: v,
|
|
2753
2756
|
isSelected: C,
|
|
2754
2757
|
groupDisabled: r,
|
|
2755
2758
|
name: s,
|
|
2756
|
-
registerRef:
|
|
2757
|
-
firstFocusableValue:
|
|
2758
|
-
onKeyNav:
|
|
2759
|
+
registerRef: c,
|
|
2760
|
+
firstFocusableValue: S,
|
|
2761
|
+
onKeyNav: x
|
|
2759
2762
|
};
|
|
2760
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ d(Le.Provider, { value: M, children: /* @__PURE__ */ d(
|
|
2761
2764
|
"div",
|
|
2762
2765
|
{
|
|
2763
2766
|
className: "gloss-preset-swatch-row",
|
|
@@ -2765,126 +2768,126 @@ function Xt({
|
|
|
2765
2768
|
"aria-label": s,
|
|
2766
2769
|
"aria-disabled": r,
|
|
2767
2770
|
"data-disabled": r || void 0,
|
|
2768
|
-
children: e.map((
|
|
2771
|
+
children: e.map((N) => /* @__PURE__ */ d(Xt, { option: N }, N.value))
|
|
2769
2772
|
}
|
|
2770
2773
|
) });
|
|
2771
2774
|
}
|
|
2772
|
-
|
|
2773
|
-
function
|
|
2775
|
+
Jt.displayName = "PresetSwatchRow";
|
|
2776
|
+
function ye(e, t) {
|
|
2774
2777
|
for (const n of e)
|
|
2775
2778
|
if (n.items.some((a) => a.id === t))
|
|
2776
2779
|
return n.zoneKey;
|
|
2777
2780
|
return null;
|
|
2778
2781
|
}
|
|
2779
|
-
function
|
|
2782
|
+
function Re(e, t) {
|
|
2780
2783
|
const n = e.find((a) => a.zoneKey === t);
|
|
2781
|
-
return n ? n.zoneKey :
|
|
2784
|
+
return n ? n.zoneKey : ye(e, t);
|
|
2782
2785
|
}
|
|
2783
|
-
function
|
|
2786
|
+
function ea(e, t, n) {
|
|
2784
2787
|
const a = [...e], [r] = a.splice(t, 1);
|
|
2785
2788
|
return a.splice(n, 0, r), a;
|
|
2786
2789
|
}
|
|
2787
|
-
function
|
|
2790
|
+
function ta(e) {
|
|
2788
2791
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
2789
2792
|
}
|
|
2790
|
-
function
|
|
2791
|
-
const [t, n] =
|
|
2793
|
+
function aa(e) {
|
|
2794
|
+
const [t, n] = W(
|
|
2792
2795
|
() => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2793
2796
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
2794
2797
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
2795
|
-
), [a, r] =
|
|
2798
|
+
), [a, r] = W(null), [s, o] = W(null), l = I(null), b = I(e.onZoneChange);
|
|
2796
2799
|
b.current = e.onZoneChange;
|
|
2797
|
-
const p =
|
|
2798
|
-
() =>
|
|
2800
|
+
const p = re(
|
|
2801
|
+
() => ta(e.zones),
|
|
2799
2802
|
[e.zones]
|
|
2800
|
-
),
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
+
), v = I(p);
|
|
2804
|
+
L(() => {
|
|
2805
|
+
v.current !== p && (v.current = p, !a && n(
|
|
2803
2806
|
e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2804
2807
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
2805
2808
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
2806
2809
|
));
|
|
2807
2810
|
}, [p, e.zones, a]);
|
|
2808
|
-
const C =
|
|
2811
|
+
const C = y(
|
|
2809
2812
|
(f) => {
|
|
2810
|
-
const
|
|
2811
|
-
let M = null,
|
|
2812
|
-
for (const
|
|
2813
|
-
const
|
|
2814
|
-
if (
|
|
2815
|
-
M =
|
|
2813
|
+
const x = f.active.id;
|
|
2814
|
+
let M = null, N = null;
|
|
2815
|
+
for (const k of t) {
|
|
2816
|
+
const R = k.items.find((i) => i.id === x);
|
|
2817
|
+
if (R) {
|
|
2818
|
+
M = R, N = k.zoneKey;
|
|
2816
2819
|
break;
|
|
2817
2820
|
}
|
|
2818
2821
|
}
|
|
2819
|
-
l.current =
|
|
2822
|
+
l.current = N, r(M), o(N);
|
|
2820
2823
|
},
|
|
2821
2824
|
[t]
|
|
2822
|
-
), u =
|
|
2825
|
+
), u = y(
|
|
2823
2826
|
(f) => {
|
|
2824
2827
|
if (!f.over) {
|
|
2825
2828
|
o(l.current);
|
|
2826
2829
|
return;
|
|
2827
2830
|
}
|
|
2828
|
-
const
|
|
2829
|
-
o(
|
|
2831
|
+
const x = Re(t, f.over.id);
|
|
2832
|
+
o(x);
|
|
2830
2833
|
},
|
|
2831
2834
|
[t]
|
|
2832
|
-
),
|
|
2835
|
+
), c = y(
|
|
2833
2836
|
(f) => {
|
|
2834
|
-
const { active:
|
|
2837
|
+
const { active: x, over: M } = f, N = () => {
|
|
2835
2838
|
l.current = null, r(null), o(null);
|
|
2836
2839
|
};
|
|
2837
2840
|
if (!M) {
|
|
2838
|
-
|
|
2841
|
+
N();
|
|
2839
2842
|
return;
|
|
2840
2843
|
}
|
|
2841
|
-
const
|
|
2842
|
-
if (!
|
|
2843
|
-
|
|
2844
|
+
const k = ye(t, x.id), R = Re(t, M.id);
|
|
2845
|
+
if (!k || !R) {
|
|
2846
|
+
N();
|
|
2844
2847
|
return;
|
|
2845
2848
|
}
|
|
2846
|
-
let i = t.map((
|
|
2847
|
-
if (
|
|
2848
|
-
const
|
|
2849
|
-
i[
|
|
2850
|
-
...
|
|
2851
|
-
items:
|
|
2849
|
+
let i = t.map((h) => ({ ...h, items: [...h.items] }));
|
|
2850
|
+
if (k === R) {
|
|
2851
|
+
const h = i.findIndex((E) => E.zoneKey === k), m = i[h], w = m.items.findIndex((E) => E.id === x.id), _ = m.items.findIndex((E) => E.id === M.id), T = _ >= 0 ? _ : Math.max(0, m.items.length - 1);
|
|
2852
|
+
i[h] = {
|
|
2853
|
+
...m,
|
|
2854
|
+
items: ea(m.items, w, T)
|
|
2852
2855
|
};
|
|
2853
2856
|
} else {
|
|
2854
|
-
const
|
|
2855
|
-
if (!
|
|
2856
|
-
|
|
2857
|
+
const h = i.findIndex((z) => z.zoneKey === k), m = i.findIndex((z) => z.zoneKey === R), w = i[h], _ = i[m], T = w.items.find((z) => z.id === x.id);
|
|
2858
|
+
if (!T) {
|
|
2859
|
+
N();
|
|
2857
2860
|
return;
|
|
2858
2861
|
}
|
|
2859
|
-
const
|
|
2860
|
-
let
|
|
2861
|
-
if (_.maxItems !== void 0 &&
|
|
2862
|
-
const
|
|
2863
|
-
|
|
2862
|
+
const E = w.items.filter((z) => z.id !== x.id), G = _.items.findIndex((z) => z.id === M.id), V = G >= 0 ? G : _.items.length;
|
|
2863
|
+
let $ = E, O = [..._.items];
|
|
2864
|
+
if (_.maxItems !== void 0 && O.length >= _.maxItems) {
|
|
2865
|
+
const z = O[O.length - 1];
|
|
2866
|
+
O = O.slice(0, _.maxItems - 1), $ = [...E, z];
|
|
2864
2867
|
}
|
|
2865
|
-
const
|
|
2866
|
-
...
|
|
2867
|
-
|
|
2868
|
-
...
|
|
2868
|
+
const U = Math.min(V, O.length), se = [
|
|
2869
|
+
...O.slice(0, U),
|
|
2870
|
+
T,
|
|
2871
|
+
...O.slice(U)
|
|
2869
2872
|
];
|
|
2870
|
-
i[
|
|
2873
|
+
i[h] = { ...w, items: $ }, i[m] = { ..._, items: se };
|
|
2871
2874
|
}
|
|
2872
|
-
n(i), b.current?.(i),
|
|
2875
|
+
n(i), b.current?.(i), N();
|
|
2873
2876
|
},
|
|
2874
2877
|
[t]
|
|
2875
|
-
), g =
|
|
2878
|
+
), g = y(
|
|
2876
2879
|
(f) => ({
|
|
2877
2880
|
id: f,
|
|
2878
2881
|
"data-zone-key": f
|
|
2879
2882
|
}),
|
|
2880
2883
|
[]
|
|
2881
|
-
),
|
|
2884
|
+
), S = y(
|
|
2882
2885
|
(f) => {
|
|
2883
|
-
const
|
|
2886
|
+
const x = ye(t, f.id) ?? "";
|
|
2884
2887
|
return {
|
|
2885
2888
|
id: f.id,
|
|
2886
2889
|
"data-item-id": f.id,
|
|
2887
|
-
"data-zone-key":
|
|
2890
|
+
"data-zone-key": x
|
|
2888
2891
|
};
|
|
2889
2892
|
},
|
|
2890
2893
|
[t]
|
|
@@ -2894,14 +2897,14 @@ function ta(e) {
|
|
|
2894
2897
|
activeZone: s,
|
|
2895
2898
|
activeItem: a,
|
|
2896
2899
|
getZoneProps: g,
|
|
2897
|
-
getItemProps:
|
|
2900
|
+
getItemProps: S,
|
|
2898
2901
|
handleDragStart: C,
|
|
2899
2902
|
handleDragOver: u,
|
|
2900
|
-
handleDragEnd:
|
|
2903
|
+
handleDragEnd: c
|
|
2901
2904
|
};
|
|
2902
2905
|
}
|
|
2903
|
-
let
|
|
2904
|
-
const
|
|
2906
|
+
let ae = null, le = null, ge = !1;
|
|
2907
|
+
const na = [
|
|
2905
2908
|
"DndContext",
|
|
2906
2909
|
"DragOverlay",
|
|
2907
2910
|
"useSensors",
|
|
@@ -2910,22 +2913,22 @@ const aa = [
|
|
|
2910
2913
|
"PointerSensor",
|
|
2911
2914
|
"KeyboardSensor",
|
|
2912
2915
|
"closestCenter"
|
|
2913
|
-
],
|
|
2916
|
+
], ra = [
|
|
2914
2917
|
"SortableContext",
|
|
2915
2918
|
"useSortable",
|
|
2916
2919
|
"verticalListSortingStrategy"
|
|
2917
2920
|
];
|
|
2918
|
-
function
|
|
2921
|
+
function sa(e, t) {
|
|
2919
2922
|
const n = [], a = e ?? {};
|
|
2920
|
-
for (const s of
|
|
2923
|
+
for (const s of na)
|
|
2921
2924
|
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
2922
2925
|
const r = t ?? {};
|
|
2923
|
-
for (const s of
|
|
2926
|
+
for (const s of ra)
|
|
2924
2927
|
r[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
2925
2928
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
2926
2929
|
}
|
|
2927
|
-
function
|
|
2928
|
-
return
|
|
2930
|
+
function oa() {
|
|
2931
|
+
return ae ? Promise.resolve(ae) : ge ? Promise.resolve(null) : le || (le = (async () => {
|
|
2929
2932
|
try {
|
|
2930
2933
|
const [e, t, n] = await Promise.all([
|
|
2931
2934
|
import("@dnd-kit/core"),
|
|
@@ -2933,31 +2936,31 @@ function sa() {
|
|
|
2933
2936
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
2934
2937
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
2935
2938
|
), {}))
|
|
2936
|
-
]), a =
|
|
2937
|
-
return a.ok ? (
|
|
2939
|
+
]), a = sa(e, t);
|
|
2940
|
+
return a.ok ? (ae = {
|
|
2938
2941
|
core: e,
|
|
2939
2942
|
sortable: t,
|
|
2940
2943
|
utilities: n
|
|
2941
|
-
},
|
|
2944
|
+
}, ae) : (ge = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
2942
2945
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
2943
2946
|
), null);
|
|
2944
2947
|
} catch {
|
|
2945
|
-
return
|
|
2948
|
+
return ge = !0, null;
|
|
2946
2949
|
}
|
|
2947
|
-
})(),
|
|
2950
|
+
})(), le);
|
|
2948
2951
|
}
|
|
2949
|
-
function
|
|
2950
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o =
|
|
2951
|
-
return
|
|
2952
|
+
function ia(e) {
|
|
2953
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o = aa({ zones: t, onZoneChange: n }), [l, b] = H.useState(ae);
|
|
2954
|
+
return H.useEffect(() => {
|
|
2952
2955
|
if (l) return;
|
|
2953
2956
|
let p = !0;
|
|
2954
|
-
return
|
|
2955
|
-
p && b(
|
|
2957
|
+
return oa().then((v) => {
|
|
2958
|
+
p && b(v);
|
|
2956
2959
|
}), () => {
|
|
2957
2960
|
p = !1;
|
|
2958
2961
|
};
|
|
2959
|
-
}, [l]), l ? /* @__PURE__ */
|
|
2960
|
-
|
|
2962
|
+
}, [l]), l ? /* @__PURE__ */ d(
|
|
2963
|
+
$e,
|
|
2961
2964
|
{
|
|
2962
2965
|
state: o,
|
|
2963
2966
|
modules: l,
|
|
@@ -2965,80 +2968,80 @@ function oa(e) {
|
|
|
2965
2968
|
renderItem: r,
|
|
2966
2969
|
renderDragOverlay: s
|
|
2967
2970
|
}
|
|
2968
|
-
) : /* @__PURE__ */
|
|
2969
|
-
const
|
|
2970
|
-
return /* @__PURE__ */
|
|
2971
|
+
) : /* @__PURE__ */ d("div", { "data-sortable-zones-passive": "true", children: o.zones.map((p) => {
|
|
2972
|
+
const v = p.items.map((C) => /* @__PURE__ */ d(H.Fragment, { children: r(C) }, C.id));
|
|
2973
|
+
return /* @__PURE__ */ d("div", { ...o.getZoneProps(p.zoneKey), children: a(p.zoneKey, p.items, v) }, p.zoneKey);
|
|
2971
2974
|
}) });
|
|
2972
2975
|
}
|
|
2973
|
-
|
|
2974
|
-
function
|
|
2976
|
+
ia.displayName = "SortableZones";
|
|
2977
|
+
function $e({
|
|
2975
2978
|
state: e,
|
|
2976
2979
|
modules: t,
|
|
2977
2980
|
renderZone: n,
|
|
2978
2981
|
renderItem: a,
|
|
2979
2982
|
renderDragOverlay: r
|
|
2980
2983
|
}) {
|
|
2981
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext: b, DragOverlay: p, useSensors:
|
|
2982
|
-
C(
|
|
2984
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: b, DragOverlay: p, useSensors: v, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: g, closestCenter: S } = s, { SortableContext: f, verticalListSortingStrategy: x } = o, M = v(
|
|
2985
|
+
C(c, { activationConstraint: { distance: 5 } }),
|
|
2983
2986
|
C(g)
|
|
2984
|
-
),
|
|
2987
|
+
), N = b, k = p, R = f;
|
|
2985
2988
|
return /* @__PURE__ */ A(
|
|
2986
|
-
|
|
2989
|
+
N,
|
|
2987
2990
|
{
|
|
2988
2991
|
sensors: M,
|
|
2989
|
-
collisionDetection:
|
|
2992
|
+
collisionDetection: S,
|
|
2990
2993
|
onDragStart: e.handleDragStart,
|
|
2991
2994
|
onDragOver: e.handleDragOver,
|
|
2992
2995
|
onDragEnd: e.handleDragEnd,
|
|
2993
2996
|
children: [
|
|
2994
2997
|
e.zones.map((i) => {
|
|
2995
|
-
const
|
|
2996
|
-
|
|
2998
|
+
const h = i.items.map((w) => w.id), m = i.items.map((w) => /* @__PURE__ */ d(
|
|
2999
|
+
Be,
|
|
2997
3000
|
{
|
|
2998
|
-
id:
|
|
3001
|
+
id: w.id,
|
|
2999
3002
|
useSortable: o.useSortable,
|
|
3000
3003
|
cssHelper: l.CSS,
|
|
3001
|
-
children: a(
|
|
3004
|
+
children: a(w)
|
|
3002
3005
|
},
|
|
3003
|
-
|
|
3006
|
+
w.id
|
|
3004
3007
|
));
|
|
3005
|
-
return /* @__PURE__ */
|
|
3006
|
-
|
|
3008
|
+
return /* @__PURE__ */ d(
|
|
3009
|
+
Ke,
|
|
3007
3010
|
{
|
|
3008
3011
|
zoneKey: i.zoneKey,
|
|
3009
3012
|
zoneProps: e.getZoneProps(i.zoneKey),
|
|
3010
3013
|
useDroppable: u,
|
|
3011
|
-
children: /* @__PURE__ */
|
|
3014
|
+
children: /* @__PURE__ */ d(R, { items: h, strategy: x, children: n(i.zoneKey, i.items, m) })
|
|
3012
3015
|
},
|
|
3013
3016
|
i.zoneKey
|
|
3014
3017
|
);
|
|
3015
3018
|
}),
|
|
3016
|
-
/* @__PURE__ */
|
|
3019
|
+
/* @__PURE__ */ d(k, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
3017
3020
|
]
|
|
3018
3021
|
}
|
|
3019
3022
|
);
|
|
3020
3023
|
}
|
|
3021
|
-
|
|
3022
|
-
function
|
|
3023
|
-
const { attributes: r, listeners: s, setNodeRef: o, transform: l, transition: b, isDragging: p } = t({ id: e }),
|
|
3024
|
+
$e.displayName = "SortableZonesInner";
|
|
3025
|
+
function Be({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
3026
|
+
const { attributes: r, listeners: s, setNodeRef: o, transform: l, transition: b, isDragging: p } = t({ id: e }), v = {
|
|
3024
3027
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
3025
3028
|
transition: b,
|
|
3026
3029
|
opacity: p ? 0.5 : 1
|
|
3027
3030
|
};
|
|
3028
|
-
return /* @__PURE__ */
|
|
3031
|
+
return /* @__PURE__ */ d("div", { ref: o, style: v, "data-sortable-item-id": e, ...r, ...s, children: a });
|
|
3029
3032
|
}
|
|
3030
|
-
|
|
3031
|
-
function
|
|
3033
|
+
Be.displayName = "SortableItem";
|
|
3034
|
+
function Ke({
|
|
3032
3035
|
zoneKey: e,
|
|
3033
3036
|
zoneProps: t,
|
|
3034
3037
|
useDroppable: n,
|
|
3035
3038
|
children: a
|
|
3036
3039
|
}) {
|
|
3037
3040
|
const { setNodeRef: r, isOver: s } = n({ id: e });
|
|
3038
|
-
return /* @__PURE__ */
|
|
3041
|
+
return /* @__PURE__ */ d("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
3039
3042
|
}
|
|
3040
|
-
|
|
3041
|
-
function
|
|
3043
|
+
Ke.displayName = "ZoneDroppable";
|
|
3044
|
+
function vn({
|
|
3042
3045
|
slotLeft: e,
|
|
3043
3046
|
slotCenter: t,
|
|
3044
3047
|
slotRight: n,
|
|
@@ -3060,7 +3063,7 @@ function bn({
|
|
|
3060
3063
|
className: ["gloss-bottom-toolbar", r].filter(Boolean).join(" "),
|
|
3061
3064
|
style: l,
|
|
3062
3065
|
children: [
|
|
3063
|
-
/* @__PURE__ */
|
|
3066
|
+
/* @__PURE__ */ d(
|
|
3064
3067
|
"div",
|
|
3065
3068
|
{
|
|
3066
3069
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--left",
|
|
@@ -3068,7 +3071,7 @@ function bn({
|
|
|
3068
3071
|
children: e
|
|
3069
3072
|
}
|
|
3070
3073
|
),
|
|
3071
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ d(
|
|
3072
3075
|
"div",
|
|
3073
3076
|
{
|
|
3074
3077
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--center",
|
|
@@ -3076,7 +3079,7 @@ function bn({
|
|
|
3076
3079
|
children: t
|
|
3077
3080
|
}
|
|
3078
3081
|
),
|
|
3079
|
-
/* @__PURE__ */
|
|
3082
|
+
/* @__PURE__ */ d(
|
|
3080
3083
|
"div",
|
|
3081
3084
|
{
|
|
3082
3085
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--right",
|
|
@@ -3088,14 +3091,14 @@ function bn({
|
|
|
3088
3091
|
}
|
|
3089
3092
|
);
|
|
3090
3093
|
}
|
|
3091
|
-
function
|
|
3094
|
+
function yn({
|
|
3092
3095
|
count: e,
|
|
3093
3096
|
currentIndex: t,
|
|
3094
3097
|
onSelect: n,
|
|
3095
3098
|
"aria-label": a = "Sections"
|
|
3096
3099
|
}) {
|
|
3097
|
-
const r =
|
|
3098
|
-
return r.current.length = e, /* @__PURE__ */
|
|
3100
|
+
const r = Ze.useRef([]);
|
|
3101
|
+
return r.current.length = e, /* @__PURE__ */ d(
|
|
3099
3102
|
"div",
|
|
3100
3103
|
{
|
|
3101
3104
|
role: "tablist",
|
|
@@ -3115,7 +3118,7 @@ function vn({
|
|
|
3115
3118
|
}
|
|
3116
3119
|
}
|
|
3117
3120
|
},
|
|
3118
|
-
children: Array.from({ length: e }, (o, l) => /* @__PURE__ */
|
|
3121
|
+
children: Array.from({ length: e }, (o, l) => /* @__PURE__ */ d(
|
|
3119
3122
|
"button",
|
|
3120
3123
|
{
|
|
3121
3124
|
ref: (b) => {
|
|
@@ -3138,312 +3141,312 @@ function vn({
|
|
|
3138
3141
|
}
|
|
3139
3142
|
);
|
|
3140
3143
|
}
|
|
3141
|
-
const
|
|
3144
|
+
const la = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3142
3145
|
const r = { ...n };
|
|
3143
|
-
return delete r.className, delete r.style, /* @__PURE__ */
|
|
3146
|
+
return delete r.className, delete r.style, /* @__PURE__ */ d("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ d(we, { region: "toolbar", density: e, children: t }) });
|
|
3144
3147
|
});
|
|
3145
|
-
|
|
3146
|
-
const
|
|
3148
|
+
la.displayName = "ContainerToolbar";
|
|
3149
|
+
const ca = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...r }, s) => {
|
|
3147
3150
|
const o = { ...r };
|
|
3148
3151
|
return delete o.className, delete o.style, /* @__PURE__ */ A("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
3149
|
-
e && /* @__PURE__ */
|
|
3150
|
-
t && /* @__PURE__ */
|
|
3151
|
-
/* @__PURE__ */
|
|
3152
|
+
e && /* @__PURE__ */ d("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
3153
|
+
t && /* @__PURE__ */ d("p", { className: "gloss-container-form-section__description", children: t }),
|
|
3154
|
+
/* @__PURE__ */ d(we, { region: "form-section", density: n, children: a })
|
|
3152
3155
|
] });
|
|
3153
3156
|
});
|
|
3154
|
-
|
|
3155
|
-
const da =
|
|
3157
|
+
ca.displayName = "ContainerFormSection";
|
|
3158
|
+
const da = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3156
3159
|
const r = { ...n };
|
|
3157
|
-
return delete r.className, delete r.style, /* @__PURE__ */
|
|
3160
|
+
return delete r.className, delete r.style, /* @__PURE__ */ d("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ d(we, { region: "table", density: e, children: t }) });
|
|
3158
3161
|
});
|
|
3159
3162
|
da.displayName = "ContainerTable";
|
|
3160
3163
|
export {
|
|
3161
|
-
|
|
3164
|
+
Nn as Accordion,
|
|
3162
3165
|
Cn as AccordionContent,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
+
_n as AccordionItem,
|
|
3167
|
+
kn as AccordionTrigger,
|
|
3168
|
+
xn as ActionStrip,
|
|
3166
3169
|
Sn as Actionable,
|
|
3167
|
-
|
|
3168
|
-
|
|
3170
|
+
Tn as AddressGroup,
|
|
3171
|
+
Rn as AddressSelect,
|
|
3169
3172
|
In as AsyncLoader,
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3173
|
+
Mn as Autocomplete,
|
|
3174
|
+
Fn as Badge,
|
|
3175
|
+
Pn as BarChartCard,
|
|
3176
|
+
En as BarsBg,
|
|
3177
|
+
vn as BottomToolbar,
|
|
3178
|
+
On as Button,
|
|
3179
|
+
An as ButtonGroup,
|
|
3180
|
+
Ln as ButtonGroupContext,
|
|
3181
|
+
$n as Card,
|
|
3182
|
+
Bn as CardActions,
|
|
3183
|
+
Kn as CardBack,
|
|
3184
|
+
zn as CardBody,
|
|
3185
|
+
Wn as CardFooter,
|
|
3186
|
+
Gn as CardHeader,
|
|
3187
|
+
Hn as CardMedia,
|
|
3188
|
+
Vn as CardShell,
|
|
3189
|
+
Un as CardSubtitle,
|
|
3190
|
+
Zn as CardTitle,
|
|
3191
|
+
jn as ChartControlBar,
|
|
3192
|
+
Yn as Checkbox,
|
|
3193
|
+
qn as CheckboxGroup,
|
|
3194
|
+
Qn as Chip,
|
|
3195
|
+
Xn as ColorPicker,
|
|
3196
|
+
Jn as ComparisonCard,
|
|
3197
|
+
er as ContactForm,
|
|
3198
|
+
tr as ContainerCard,
|
|
3199
|
+
ar as ContainerCardActions,
|
|
3200
|
+
nr as ContainerCardBody,
|
|
3201
|
+
rr as ContainerCardFooter,
|
|
3202
|
+
sr as ContainerCardHeader,
|
|
3203
|
+
or as ContainerCardMedia,
|
|
3204
|
+
ir as ContainerCardSubtitle,
|
|
3205
|
+
lr as ContainerCardTitle,
|
|
3206
|
+
cr as ContainerDialog,
|
|
3204
3207
|
dr as ContainerDialogActions,
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3208
|
+
ur as ContainerDialogBody,
|
|
3209
|
+
mr as ContainerDialogHeader,
|
|
3210
|
+
ca as ContainerFormSection,
|
|
3211
|
+
pr as ContainerPanel,
|
|
3209
3212
|
da as ContainerTable,
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3213
|
+
la as ContainerToolbar,
|
|
3214
|
+
gr as CreditCardForm,
|
|
3215
|
+
fr as DEFAULT_FOOTER_IDS,
|
|
3216
|
+
ee as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
3217
|
+
Go as DEFAULT_MARKET_PRESETS,
|
|
3218
|
+
hr as DEFAULT_OVERFLOW_IDS,
|
|
3219
|
+
Ho as DEFAULT_PINNED,
|
|
3220
|
+
Me as DEFAULT_RESIZE_PHYSICS,
|
|
3221
|
+
br as DataTable,
|
|
3222
|
+
vr as DatePicker,
|
|
3223
|
+
yr as DateRangePicker,
|
|
3224
|
+
wr as DestructiveModal,
|
|
3225
|
+
Ht as DevTuningPanel,
|
|
3226
|
+
Dr as DirectionCard,
|
|
3227
|
+
Nr as Dismissible,
|
|
3225
3228
|
Cr as DistributionCard,
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3229
|
+
_r as DonutChart,
|
|
3230
|
+
gn as DropAnchorCell,
|
|
3231
|
+
kr as Dropdown,
|
|
3232
|
+
xr as ENTITY_FILTER_KEYS,
|
|
3230
3233
|
Sr as ENTITY_PROFILE_ROUTES,
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3234
|
+
Tr as ENTITY_TYPE_PLURAL,
|
|
3235
|
+
gt as EdgeHoverHandle,
|
|
3236
|
+
bn as EmptyCellPackAffordance,
|
|
3237
|
+
Rr as EntityPicker,
|
|
3235
3238
|
Ir as EntitySearchPanel,
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3239
|
+
Mr as Expandable,
|
|
3240
|
+
Fr as ExpandableChip,
|
|
3241
|
+
Pr as FLIP_AND_STAGE_TIMINGS,
|
|
3242
|
+
Er as FileUpload,
|
|
3243
|
+
Or as FilterChip,
|
|
3244
|
+
Ar as FilterInput,
|
|
3245
|
+
Lr as FlipAndStageProvider,
|
|
3246
|
+
$r as Form,
|
|
3247
|
+
Br as FormDialog,
|
|
3248
|
+
Kr as FormField,
|
|
3249
|
+
zr as FusedShape,
|
|
3250
|
+
ft as GhostPreview,
|
|
3251
|
+
Wr as GroupCheckbox,
|
|
3252
|
+
Gr as GroupRadio,
|
|
3253
|
+
Hr as HighlightCard,
|
|
3254
|
+
Vr as HybridDatePicker,
|
|
3255
|
+
Ur as ImportWizard,
|
|
3256
|
+
Zt as InlineNudge,
|
|
3257
|
+
Zr as Input,
|
|
3258
|
+
jr as InputAddon,
|
|
3259
|
+
Yr as InputGroup,
|
|
3260
|
+
qr as Link,
|
|
3261
|
+
Qr as LoginForm,
|
|
3262
|
+
Xr as MarketPresetRow,
|
|
3263
|
+
Jr as MaskPresets,
|
|
3264
|
+
es as MaskedInput,
|
|
3265
|
+
ts as Menu,
|
|
3266
|
+
as as MenuDivider,
|
|
3267
|
+
ns as MenuGroup,
|
|
3268
|
+
rs as MenuItem,
|
|
3269
|
+
ss as MergePrompt,
|
|
3270
|
+
os as MetricCard,
|
|
3271
|
+
is as MetricCardGrid,
|
|
3272
|
+
Ot as MetricGroupContainer,
|
|
3273
|
+
ls as MiniCalendar,
|
|
3274
|
+
cs as MultiSelect,
|
|
3272
3275
|
ds as NumberInput,
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
+
us as ObjectArrow,
|
|
3277
|
+
ms as OrderFilterBar,
|
|
3278
|
+
Vo as PERIOD_OPTIONS,
|
|
3276
3279
|
Ct as PageChip,
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3280
|
+
Fe as PageDropdown,
|
|
3281
|
+
ps as PasswordInput,
|
|
3282
|
+
gs as PaymentForm,
|
|
3283
|
+
fs as PaymentMethodSelect,
|
|
3284
|
+
hs as PhoneInput,
|
|
3285
|
+
bs as PinToMetric,
|
|
3286
|
+
Jt as PresetSwatchRow,
|
|
3287
|
+
vs as ProfileCard,
|
|
3288
|
+
ys as ProgressCard,
|
|
3289
|
+
ws as QuickConfigPanel,
|
|
3287
3290
|
It as RECONFIG_BACKSIDE_LABELS,
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
+
Uo as ROLLING_OPTIONS,
|
|
3292
|
+
Ds as Radio,
|
|
3293
|
+
Ns as RadioGroup,
|
|
3291
3294
|
Cs as RangeSlider,
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3295
|
+
_s as Rating,
|
|
3296
|
+
Pt as ReconfigBacksideButtons,
|
|
3297
|
+
ks as RegistrationForm,
|
|
3298
|
+
pn as ResizeEnvelope,
|
|
3299
|
+
xs as Row1Controls,
|
|
3297
3300
|
Ss as Row2FilterTray,
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3301
|
+
Ts as SearchInput,
|
|
3302
|
+
hn as SectionDivider,
|
|
3303
|
+
yn as SectionDots,
|
|
3304
|
+
Rs as SegmentCard,
|
|
3302
3305
|
Is as SegmentedControl,
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3306
|
+
Ms as Select,
|
|
3307
|
+
Fs as Selectable,
|
|
3308
|
+
Ps as SimpleMetricCard,
|
|
3309
|
+
Es as SimpleSelector,
|
|
3310
|
+
Os as Skeleton,
|
|
3311
|
+
As as SkeletonCard,
|
|
3312
|
+
Ls as SkeletonChart,
|
|
3313
|
+
$s as SkeletonTable,
|
|
3314
|
+
Bs as Slider,
|
|
3315
|
+
Ks as Sortable,
|
|
3316
|
+
ia as SortableZones,
|
|
3317
|
+
zs as SparklineBg,
|
|
3318
|
+
fn as SpilloverArc,
|
|
3319
|
+
Ws as SplitButton,
|
|
3320
|
+
Gs as StackedGroupCard,
|
|
3321
|
+
Hs as StatusModeCard,
|
|
3322
|
+
pt as StatusSlotChipMenu,
|
|
3323
|
+
Vs as Stepper,
|
|
3324
|
+
Zo as TODAY_PRESET,
|
|
3325
|
+
J as TUNING_DEFAULTS,
|
|
3326
|
+
Ae as TUNING_STORAGE_KEY,
|
|
3327
|
+
Us as TabGroup,
|
|
3328
|
+
Zs as TabbedDataView,
|
|
3329
|
+
js as TagInput,
|
|
3330
|
+
Ys as Textarea,
|
|
3331
|
+
qt as ThresholdRamp,
|
|
3332
|
+
qs as TimeFrame,
|
|
3333
|
+
Qs as TimePicker,
|
|
3334
|
+
Xs as Toggle,
|
|
3335
|
+
Js as Tooltip,
|
|
3336
|
+
eo as Transition,
|
|
3337
|
+
to as TransitionGroup,
|
|
3338
|
+
ao as TrendCard,
|
|
3339
|
+
no as TrendIndicator,
|
|
3340
|
+
Ko as UIContext,
|
|
3341
|
+
we as UIContextProvider,
|
|
3342
|
+
ro as UnifiedBreakdownTable,
|
|
3343
|
+
so as UnifiedContextMenu,
|
|
3344
|
+
ht as VelocityBuffer,
|
|
3345
|
+
oo as addressGroupMetadata,
|
|
3346
|
+
io as addressSchema,
|
|
3347
|
+
_a as allChips,
|
|
3348
|
+
La as allStateFixtures,
|
|
3349
|
+
Aa as allVariantFixtures,
|
|
3350
|
+
Ta as blockSamples,
|
|
3351
|
+
lo as buildDefaultOverflow,
|
|
3352
|
+
Pa as cardSamples,
|
|
3353
|
+
Ma as chartSamples,
|
|
3351
3354
|
Ia as circleSamples,
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3355
|
+
sn as compactLayout,
|
|
3356
|
+
ja as compactState,
|
|
3357
|
+
Oa as computeGutterAnchorX,
|
|
3358
|
+
co as contactFormMetadata,
|
|
3359
|
+
uo as contactSchema,
|
|
3360
|
+
Ya as contextMenuFixtures,
|
|
3361
|
+
mo as creditCardFormMetadata,
|
|
3362
|
+
po as creditCardSchema,
|
|
3363
|
+
ct as dateChip,
|
|
3364
|
+
Oe as defaultControlBarState,
|
|
3365
|
+
go as destructiveModalMetadata,
|
|
3366
|
+
fo as durations,
|
|
3367
|
+
ho as easings,
|
|
3368
|
+
yt as emptyFixture,
|
|
3369
|
+
it as entityChip,
|
|
3367
3370
|
St as entityNameActions,
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3371
|
+
xa as entityTabGroup,
|
|
3372
|
+
vt as errorFixture,
|
|
3373
|
+
Za as filteredState,
|
|
3374
|
+
jo as findPreset,
|
|
3375
|
+
Yo as formatDateRange,
|
|
3376
|
+
qo as formatMarketDates,
|
|
3377
|
+
Qo as formatTrend,
|
|
3378
|
+
Xo as formatValue,
|
|
3379
|
+
ln as fullLayout,
|
|
3380
|
+
Jo as generateMarketId,
|
|
3381
|
+
bo as generateTabId,
|
|
3382
|
+
ei as getAllPresets,
|
|
3383
|
+
ti as getDateRangeForPreset,
|
|
3384
|
+
vo as getMenuActions,
|
|
3385
|
+
ai as getPresetLabel,
|
|
3386
|
+
yo as getTransitionStyle,
|
|
3387
|
+
rn as gridCards,
|
|
3388
|
+
wo as interpolate,
|
|
3389
|
+
ni as isInRange,
|
|
3390
|
+
ri as isMarketActive,
|
|
3391
|
+
si as isSameDay,
|
|
3392
|
+
Ua as itemColumns,
|
|
3393
|
+
Ha as itemRows,
|
|
3394
|
+
bt as loadingFixture,
|
|
3395
|
+
Do as loginFormMetadata,
|
|
3396
|
+
No as loginSchema,
|
|
3394
3397
|
dt as manufacturerChip,
|
|
3395
|
-
|
|
3398
|
+
mn as manyTabs,
|
|
3396
3399
|
Co as mergeHandlers,
|
|
3397
|
-
|
|
3398
|
-
|
|
3400
|
+
_o as mergeRefs,
|
|
3401
|
+
ka as metricTabGroup,
|
|
3399
3402
|
dn as mixedTabs,
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3403
|
+
oi as normalizePresetId,
|
|
3404
|
+
Rt as numericActions,
|
|
3405
|
+
Va as orderColumns,
|
|
3406
|
+
Tt as orderIdActions,
|
|
3407
|
+
Ga as orderRows,
|
|
3408
|
+
cn as ordersTabs,
|
|
3409
|
+
ko as parseNumericValue,
|
|
3410
|
+
xo as paymentFormMetadata,
|
|
3408
3411
|
So as paymentSchema,
|
|
3409
|
-
|
|
3410
|
-
|
|
3412
|
+
To as presets,
|
|
3413
|
+
Ro as registrationFormMetadata,
|
|
3411
3414
|
Io as registrationSchema,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3415
|
+
Qa as sampleCompareRanges,
|
|
3416
|
+
en as sampleCustomMarkets,
|
|
3417
|
+
qa as sampleDateRange,
|
|
3418
|
+
tn as sampleMarketPresetData,
|
|
3419
|
+
Ja as sampleMarkets,
|
|
3420
|
+
nn as samplePeriodPresets,
|
|
3421
|
+
Xa as samplePreferences,
|
|
3422
|
+
an as samplePresets,
|
|
3423
|
+
un as singleTab,
|
|
3424
|
+
$a as sparklineFixture,
|
|
3425
|
+
Ba as sparklineUpFixture,
|
|
3426
|
+
Nt as staleDonutFixture,
|
|
3427
|
+
wt as staleFixture,
|
|
3428
|
+
Dt as staleSparklineFixture,
|
|
3429
|
+
Ka as standardFixture,
|
|
3430
|
+
Wa as standardFlatFixture,
|
|
3431
|
+
on as standardLayout,
|
|
3432
|
+
za as standardNegativeFixture,
|
|
3433
|
+
lt as statusChip,
|
|
3434
|
+
Fa as tableSamples,
|
|
3435
|
+
Ra as textSamples,
|
|
3433
3436
|
Sa as timeFrameTabGroup,
|
|
3434
|
-
|
|
3437
|
+
ii as toUppercasePresetId,
|
|
3435
3438
|
Ca as useArrowNavigation,
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3439
|
+
Mo as useCheckboxGroupContext,
|
|
3440
|
+
Ea as useEdgeHoverResize,
|
|
3441
|
+
Fo as useFilterLayout,
|
|
3442
|
+
Po as useFlipAndStage,
|
|
3443
|
+
Eo as useFlipAndStageContext,
|
|
3444
|
+
Oo as useFlipAndStageContextOptional,
|
|
3445
|
+
Na as useFocusReturn,
|
|
3446
|
+
Ao as useFocusTrap,
|
|
3447
|
+
Lo as useFormContext,
|
|
3448
|
+
$o as useRadioGroupContext,
|
|
3449
|
+
$t as useResizeTuning,
|
|
3450
|
+
aa as useSortableZones,
|
|
3451
|
+
zo as useUIContext
|
|
3449
3452
|
};
|