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