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