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