@mt-gloss/ui 0.0.46 → 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 +1094 -1084
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +16 -1
- 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 bn(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 k =
|
|
49
|
-
return s ? k = (k +
|
|
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
|
-
T,
|
|
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
|
-
nt,
|
|
146
|
+
onRemove: oe
|
|
147
|
+
}, wn = [
|
|
149
148
|
at,
|
|
150
149
|
rt,
|
|
151
|
-
st
|
|
152
|
-
|
|
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)",
|
|
@@ -220,152 +220,152 @@ const se = (e) => {
|
|
|
220
220
|
width: "100%",
|
|
221
221
|
textAlign: "left",
|
|
222
222
|
border: "none"
|
|
223
|
-
}),
|
|
223
|
+
}), it = (e) => ({
|
|
224
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: pe(
|
|
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: pe(
|
|
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 dt({
|
|
|
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,14 +406,14 @@ class ut {
|
|
|
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
|
|
416
|
+
const _e = {
|
|
417
417
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
418
418
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
419
419
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -433,210 +433,220 @@ const Te = {
|
|
|
433
433
|
// Velocity multiplier (D-03b panel)
|
|
434
434
|
velocityMultiplier: 1
|
|
435
435
|
};
|
|
436
|
-
function
|
|
436
|
+
function Rn({
|
|
437
437
|
currentColSpan: e,
|
|
438
438
|
stackable: t,
|
|
439
439
|
onResize: a,
|
|
440
440
|
onCancel: n,
|
|
441
441
|
step: s = 180,
|
|
442
442
|
gap: o = 0,
|
|
443
|
-
tuning:
|
|
444
|
-
dwellMs:
|
|
443
|
+
tuning: c,
|
|
444
|
+
dwellMs: p = 120,
|
|
445
445
|
enterMs: h = 180,
|
|
446
|
-
exitMs:
|
|
447
|
-
maxColSpan: D = 3
|
|
446
|
+
exitMs: m = 120,
|
|
447
|
+
maxColSpan: D = 3,
|
|
448
|
+
containerRef: C
|
|
448
449
|
}) {
|
|
449
|
-
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");
|
|
450
451
|
L(() => {
|
|
451
|
-
|
|
452
|
-
}, [
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
452
|
+
r.current = i;
|
|
453
|
+
}, [i]);
|
|
454
|
+
const d = Ue(0), v = R(null), N = f(() => {
|
|
455
|
+
const y = v.current;
|
|
456
|
+
if (y) {
|
|
456
457
|
try {
|
|
457
|
-
|
|
458
|
+
y.stop();
|
|
458
459
|
} catch {
|
|
459
460
|
}
|
|
460
|
-
|
|
461
|
+
v.current = null;
|
|
461
462
|
}
|
|
462
|
-
}, []),
|
|
463
|
-
(
|
|
464
|
-
const
|
|
465
|
-
return
|
|
463
|
+
}, []), k = f(
|
|
464
|
+
(y) => {
|
|
465
|
+
const P = w.current, I = S.current;
|
|
466
|
+
return y * P + (y - 1) * I;
|
|
466
467
|
},
|
|
467
468
|
[]
|
|
468
|
-
),
|
|
469
|
+
), T = R(new mt()), E = R(e);
|
|
469
470
|
L(() => {
|
|
470
|
-
|
|
471
|
-
}, [
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
}, []),
|
|
475
|
-
|
|
476
|
-
}, []),
|
|
477
|
-
|
|
478
|
-
}, [
|
|
479
|
-
|
|
480
|
-
}, [
|
|
481
|
-
(
|
|
482
|
-
const A =
|
|
483
|
-
let H =
|
|
484
|
-
for (;
|
|
485
|
-
const
|
|
486
|
-
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;
|
|
487
488
|
else break;
|
|
488
489
|
}
|
|
489
|
-
if (H ===
|
|
490
|
-
for (;
|
|
491
|
-
const
|
|
492
|
-
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;
|
|
493
494
|
else break;
|
|
494
495
|
}
|
|
495
|
-
return Math.min(3, Math.max(1,
|
|
496
|
+
return Math.min(3, Math.max(1, I + H));
|
|
496
497
|
},
|
|
497
|
-
[
|
|
498
|
-
),
|
|
499
|
-
(
|
|
500
|
-
if (
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
_.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");
|
|
504
505
|
},
|
|
505
|
-
[s, o, e,
|
|
506
|
-
),
|
|
507
|
-
(
|
|
506
|
+
[s, o, e, d, N]
|
|
507
|
+
), ye = f(
|
|
508
|
+
(y) => y * w.current + (y - 1) * S.current,
|
|
508
509
|
[]
|
|
509
|
-
),
|
|
510
|
-
(
|
|
511
|
-
const
|
|
510
|
+
), re = f(
|
|
511
|
+
(y, P) => {
|
|
512
|
+
const I = ye(y), A = y !== e;
|
|
512
513
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
513
|
-
|
|
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");
|
|
514
515
|
return;
|
|
515
516
|
}
|
|
516
|
-
const
|
|
517
|
-
|
|
517
|
+
const X = T.current.getWeightedVelocity() * O.velocityMultiplier;
|
|
518
|
+
r.current = "settling", l("settling"), N(), v.current = De(d, I, {
|
|
518
519
|
type: "spring",
|
|
519
|
-
stiffness:
|
|
520
|
-
damping:
|
|
521
|
-
mass:
|
|
522
|
-
velocity:
|
|
520
|
+
stiffness: O.stiffness,
|
|
521
|
+
damping: O.damping,
|
|
522
|
+
mass: O.mass,
|
|
523
|
+
velocity: X,
|
|
523
524
|
onComplete: () => {
|
|
524
|
-
|
|
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");
|
|
525
526
|
}
|
|
526
527
|
});
|
|
527
528
|
},
|
|
528
|
-
[
|
|
529
|
-
),
|
|
530
|
-
(
|
|
531
|
-
if (
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
|
|
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);
|
|
536
537
|
},
|
|
537
|
-
[
|
|
538
|
+
[j, e, re]
|
|
538
539
|
), ie = f(() => {
|
|
539
|
-
if (
|
|
540
|
-
const
|
|
540
|
+
if (B(), r.current === "dragging") {
|
|
541
|
+
const y = _.current;
|
|
541
542
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
542
|
-
|
|
543
|
+
d.jump(y), n?.(), d.jump(0), r.current = "idle", l("idle");
|
|
543
544
|
return;
|
|
544
545
|
}
|
|
545
|
-
const
|
|
546
|
-
|
|
546
|
+
const I = T.current.getWeightedVelocity();
|
|
547
|
+
r.current = "settling", l("settling"), N(), v.current = De(d, y, {
|
|
547
548
|
type: "spring",
|
|
548
|
-
stiffness:
|
|
549
|
-
damping:
|
|
550
|
-
mass:
|
|
551
|
-
velocity:
|
|
549
|
+
stiffness: O.stiffness,
|
|
550
|
+
damping: O.damping,
|
|
551
|
+
mass: O.mass,
|
|
552
|
+
velocity: I,
|
|
552
553
|
onComplete: () => {
|
|
553
|
-
|
|
554
|
+
v.current = null, n?.(), d.jump(0), r.current = "idle", l("idle");
|
|
554
555
|
}
|
|
555
556
|
});
|
|
556
557
|
return;
|
|
557
558
|
}
|
|
558
|
-
|
|
559
|
-
}, [
|
|
559
|
+
r.current === "handle-visible" && (n?.(), r.current = "cancelled", l("cancelled"));
|
|
560
|
+
}, [B, d, n, O, N]);
|
|
560
561
|
L(() => {
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
-
|
|
562
|
+
if (i !== "dragging" && i !== "handle-visible") return;
|
|
563
|
+
const y = (P) => {
|
|
564
|
+
P.key === "Escape" && ie();
|
|
564
565
|
};
|
|
565
|
-
return window.addEventListener("keydown",
|
|
566
|
-
}, [
|
|
567
|
-
if (
|
|
568
|
-
|
|
566
|
+
return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
|
|
567
|
+
}, [i, ie]), L(() => {
|
|
568
|
+
if (i !== "dragging") {
|
|
569
|
+
M(e);
|
|
569
570
|
return;
|
|
570
571
|
}
|
|
571
|
-
const
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
const le =
|
|
575
|
-
|
|
576
|
-
const ce =
|
|
577
|
-
ce !==
|
|
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));
|
|
578
579
|
};
|
|
579
|
-
return window.addEventListener("pointermove",
|
|
580
|
-
}, [
|
|
581
|
-
|
|
582
|
-
}, [
|
|
583
|
-
if (
|
|
584
|
-
const
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
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();
|
|
590
|
+
};
|
|
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();
|
|
593
603
|
const A = e * s + (e - 1) * o;
|
|
594
|
-
_.current = A,
|
|
604
|
+
_.current = A, d.jump(A), re(I, y);
|
|
595
605
|
},
|
|
596
|
-
[e, s, o,
|
|
597
|
-
),
|
|
598
|
-
|
|
599
|
-
|
|
606
|
+
[e, s, o, d, re]
|
|
607
|
+
), we = f(() => {
|
|
608
|
+
z(), x.current = setTimeout(() => {
|
|
609
|
+
r.current === "handle-visible" && (r.current = "idle", l("idle"));
|
|
600
610
|
}, 5e3);
|
|
601
|
-
}, [
|
|
602
|
-
|
|
603
|
-
}, [
|
|
604
|
-
|
|
605
|
-
}, [
|
|
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]);
|
|
606
616
|
return {
|
|
607
|
-
state:
|
|
608
|
-
enterEdgeZone:
|
|
609
|
-
leaveEdgeZone:
|
|
617
|
+
state: i,
|
|
618
|
+
enterEdgeZone: V,
|
|
619
|
+
leaveEdgeZone: U,
|
|
610
620
|
handleProps: {
|
|
611
|
-
onPointerDown:
|
|
612
|
-
onPointerUp:
|
|
621
|
+
onPointerDown: W,
|
|
622
|
+
onPointerUp: $e,
|
|
613
623
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
614
624
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
615
|
-
onPointerEnter:
|
|
616
|
-
onPointerLeave:
|
|
625
|
+
onPointerEnter: V,
|
|
626
|
+
onPointerLeave: U
|
|
617
627
|
},
|
|
618
|
-
previewColSpan:
|
|
628
|
+
previewColSpan: b,
|
|
619
629
|
ghostProps: {
|
|
620
|
-
visible:
|
|
621
|
-
targetColSpan:
|
|
622
|
-
ghostWidth:
|
|
630
|
+
visible: i === "dragging" || i === "settling",
|
|
631
|
+
targetColSpan: b,
|
|
632
|
+
ghostWidth: d,
|
|
623
633
|
enterMs: h,
|
|
624
|
-
exitMs:
|
|
634
|
+
exitMs: m
|
|
625
635
|
},
|
|
626
|
-
onKeyboardStep:
|
|
627
|
-
onTouchReveal:
|
|
628
|
-
onTouchDismiss:
|
|
636
|
+
onKeyboardStep: Be,
|
|
637
|
+
onTouchReveal: Ke,
|
|
638
|
+
onTouchDismiss: We,
|
|
629
639
|
cancel: ie
|
|
630
640
|
};
|
|
631
641
|
}
|
|
632
|
-
function
|
|
642
|
+
function Mn(e) {
|
|
633
643
|
const { cardWidthPx: t, slotCount: a, activeSlotIdx: n, pillWidthPx: s } = e;
|
|
634
644
|
if (n == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(a) || a <= 0 || !Number.isInteger(n) || n < 0 || n >= a)
|
|
635
645
|
return;
|
|
636
646
|
const o = (n + 0.5) * (t / a);
|
|
637
647
|
return s != null && Number.isFinite(s) && s > 0 ? o - s / 2 : o;
|
|
638
648
|
}
|
|
639
|
-
const
|
|
649
|
+
const Pn = [
|
|
640
650
|
// 1. Standard: Total Revenue
|
|
641
651
|
{
|
|
642
652
|
variant: "standard",
|
|
@@ -740,24 +750,24 @@ const Mn = [
|
|
|
740
750
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
741
751
|
]
|
|
742
752
|
}
|
|
743
|
-
],
|
|
753
|
+
], pt = {
|
|
744
754
|
variant: "standard",
|
|
745
755
|
label: "Total Revenue",
|
|
746
756
|
isLoading: !0
|
|
747
|
-
},
|
|
757
|
+
}, gt = {
|
|
748
758
|
variant: "standard",
|
|
749
759
|
label: "Total Revenue",
|
|
750
760
|
value: 125430,
|
|
751
761
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
752
762
|
isError: !0
|
|
753
|
-
},
|
|
763
|
+
}, ft = {
|
|
754
764
|
variant: "standard",
|
|
755
765
|
label: "Total Revenue",
|
|
756
766
|
value: null,
|
|
757
767
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
758
768
|
isEmpty: !0,
|
|
759
769
|
subtitle: "No data"
|
|
760
|
-
},
|
|
770
|
+
}, ht = {
|
|
761
771
|
variant: "standard",
|
|
762
772
|
label: "Total Revenue",
|
|
763
773
|
value: 125430,
|
|
@@ -765,7 +775,7 @@ const Mn = [
|
|
|
765
775
|
trend: { value: 12.5, direction: "up" },
|
|
766
776
|
subtitle: "MTD",
|
|
767
777
|
isStale: !0
|
|
768
|
-
},
|
|
778
|
+
}, bt = {
|
|
769
779
|
variant: "sparkline",
|
|
770
780
|
label: "Daily Orders",
|
|
771
781
|
value: 847,
|
|
@@ -774,7 +784,7 @@ const Mn = [
|
|
|
774
784
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
775
785
|
accentColor: "#6366f1",
|
|
776
786
|
isStale: !0
|
|
777
|
-
},
|
|
787
|
+
}, vt = {
|
|
778
788
|
variant: "donut",
|
|
779
789
|
label: "Order Fill Rate",
|
|
780
790
|
value: 78,
|
|
@@ -785,14 +795,14 @@ const Mn = [
|
|
|
785
795
|
donutMax: 100,
|
|
786
796
|
accentColor: "#10b981",
|
|
787
797
|
isStale: !0
|
|
788
|
-
},
|
|
789
|
-
mt,
|
|
798
|
+
}, Fn = [
|
|
790
799
|
pt,
|
|
791
800
|
gt,
|
|
792
801
|
ft,
|
|
793
802
|
ht,
|
|
794
|
-
bt
|
|
795
|
-
|
|
803
|
+
bt,
|
|
804
|
+
vt
|
|
805
|
+
], En = {
|
|
796
806
|
variant: "sparkline",
|
|
797
807
|
label: "Daily Orders",
|
|
798
808
|
value: 847,
|
|
@@ -815,7 +825,7 @@ const Mn = [
|
|
|
815
825
|
59
|
|
816
826
|
],
|
|
817
827
|
accentColor: "#6366f1"
|
|
818
|
-
},
|
|
828
|
+
}, On = {
|
|
819
829
|
variant: "sparkline",
|
|
820
830
|
label: "New Customers",
|
|
821
831
|
value: 23,
|
|
@@ -854,21 +864,21 @@ const Mn = [
|
|
|
854
864
|
19
|
|
855
865
|
],
|
|
856
866
|
accentColor: "#10b981"
|
|
857
|
-
},
|
|
867
|
+
}, An = {
|
|
858
868
|
variant: "standard",
|
|
859
869
|
label: "Total Revenue",
|
|
860
870
|
value: 125430,
|
|
861
871
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
862
872
|
trend: { value: 12.5, direction: "up" },
|
|
863
873
|
subtitle: "MTD"
|
|
864
|
-
},
|
|
874
|
+
}, Ln = {
|
|
865
875
|
variant: "standard",
|
|
866
876
|
label: "Returns",
|
|
867
877
|
value: 3280,
|
|
868
878
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
869
879
|
trend: { value: -8.3, direction: "down" },
|
|
870
880
|
subtitle: "MTD"
|
|
871
|
-
},
|
|
881
|
+
}, $n = {
|
|
872
882
|
variant: "standard",
|
|
873
883
|
label: "Avg Order Value",
|
|
874
884
|
value: 487,
|
|
@@ -876,33 +886,33 @@ const Mn = [
|
|
|
876
886
|
trend: { value: 0, direction: "flat" },
|
|
877
887
|
subtitle: "QTD"
|
|
878
888
|
};
|
|
879
|
-
function
|
|
889
|
+
function Ie({
|
|
880
890
|
open: e,
|
|
881
891
|
onDismiss: t,
|
|
882
892
|
anchorRef: a,
|
|
883
893
|
pages: n,
|
|
884
894
|
activePageId: s,
|
|
885
895
|
onPageChange: o,
|
|
886
|
-
onCreatePage:
|
|
887
|
-
onManagePages:
|
|
896
|
+
onCreatePage: c,
|
|
897
|
+
onManagePages: p
|
|
888
898
|
}) {
|
|
889
899
|
const h = f(
|
|
890
900
|
(i) => {
|
|
891
901
|
o(i), t();
|
|
892
902
|
},
|
|
893
903
|
[o, t]
|
|
894
|
-
),
|
|
895
|
-
(i,
|
|
896
|
-
(
|
|
904
|
+
), m = f(
|
|
905
|
+
(i, l) => {
|
|
906
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), h(i));
|
|
897
907
|
},
|
|
898
908
|
[h]
|
|
899
909
|
), D = f(() => {
|
|
900
|
-
|
|
901
|
-
}, [
|
|
902
|
-
|
|
903
|
-
}, [
|
|
904
|
-
return /* @__PURE__ */
|
|
905
|
-
|
|
910
|
+
c(), t();
|
|
911
|
+
}, [c, t]), C = f(() => {
|
|
912
|
+
p(), t();
|
|
913
|
+
}, [p, t]);
|
|
914
|
+
return /* @__PURE__ */ $(
|
|
915
|
+
qe,
|
|
906
916
|
{
|
|
907
917
|
definition: {
|
|
908
918
|
placement: "bottom-end",
|
|
@@ -915,40 +925,40 @@ function _e({
|
|
|
915
925
|
anchorRef: a,
|
|
916
926
|
className: "gloss-page-dropdown",
|
|
917
927
|
children: [
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
-
const
|
|
920
|
-
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__ */ $(
|
|
921
931
|
"li",
|
|
922
932
|
{
|
|
923
933
|
role: "menuitemradio",
|
|
924
|
-
"aria-checked":
|
|
925
|
-
"aria-current":
|
|
934
|
+
"aria-checked": l,
|
|
935
|
+
"aria-current": l ? "page" : void 0,
|
|
926
936
|
tabIndex: 0,
|
|
927
|
-
className: `gloss-page-dropdown__item${
|
|
937
|
+
className: `gloss-page-dropdown__item${l ? " gloss-page-dropdown__item--active" : ""}`,
|
|
928
938
|
onClick: () => h(i.id),
|
|
929
|
-
onKeyDown: (
|
|
939
|
+
onKeyDown: (b) => m(i.id, b),
|
|
930
940
|
children: [
|
|
931
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ u(
|
|
932
942
|
"span",
|
|
933
943
|
{
|
|
934
|
-
className: `gloss-page-dropdown__dot${
|
|
944
|
+
className: `gloss-page-dropdown__dot${l ? " gloss-page-dropdown__dot--active" : ""}`
|
|
935
945
|
}
|
|
936
946
|
),
|
|
937
|
-
/* @__PURE__ */
|
|
947
|
+
/* @__PURE__ */ u(
|
|
938
948
|
"span",
|
|
939
949
|
{
|
|
940
950
|
className: `gloss-page-dropdown__name${i.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
941
951
|
children: i.name
|
|
942
952
|
}
|
|
943
953
|
),
|
|
944
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ u("span", { className: "gloss-page-dropdown__count", children: i.cardCount })
|
|
945
955
|
]
|
|
946
956
|
},
|
|
947
957
|
i.id
|
|
948
958
|
);
|
|
949
959
|
}) }),
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ u("hr", { className: "gloss-page-dropdown__separator" }),
|
|
961
|
+
/* @__PURE__ */ u(
|
|
952
962
|
"button",
|
|
953
963
|
{
|
|
954
964
|
role: "menuitem",
|
|
@@ -957,13 +967,13 @@ function _e({
|
|
|
957
967
|
children: "+ New page"
|
|
958
968
|
}
|
|
959
969
|
),
|
|
960
|
-
/* @__PURE__ */
|
|
961
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ u("hr", { className: "gloss-page-dropdown__separator" }),
|
|
971
|
+
/* @__PURE__ */ u(
|
|
962
972
|
"button",
|
|
963
973
|
{
|
|
964
974
|
role: "menuitem",
|
|
965
975
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
966
|
-
onClick:
|
|
976
|
+
onClick: C,
|
|
967
977
|
children: "Manage pages"
|
|
968
978
|
}
|
|
969
979
|
)
|
|
@@ -971,22 +981,22 @@ function _e({
|
|
|
971
981
|
}
|
|
972
982
|
);
|
|
973
983
|
}
|
|
974
|
-
|
|
975
|
-
const
|
|
984
|
+
Ie.displayName = "PageDropdown";
|
|
985
|
+
const yt = function({
|
|
976
986
|
currentIndex: t,
|
|
977
987
|
total: a,
|
|
978
988
|
pages: n,
|
|
979
989
|
onPageChange: s,
|
|
980
990
|
onCreatePage: o,
|
|
981
|
-
onManagePages:
|
|
982
|
-
maskRadius:
|
|
991
|
+
onManagePages: c,
|
|
992
|
+
maskRadius: p = "var(--gloss-radius-md)"
|
|
983
993
|
}) {
|
|
984
|
-
const h =
|
|
985
|
-
D((
|
|
994
|
+
const h = R(null), [m, D] = K(!1), C = f(() => {
|
|
995
|
+
D((b) => !b);
|
|
986
996
|
}, []), i = f(() => {
|
|
987
997
|
D(!1);
|
|
988
|
-
}, []),
|
|
989
|
-
return /* @__PURE__ */
|
|
998
|
+
}, []), l = n[t]?.id ?? "";
|
|
999
|
+
return /* @__PURE__ */ $(
|
|
990
1000
|
"div",
|
|
991
1001
|
{
|
|
992
1002
|
className: "gloss-page-chip",
|
|
@@ -994,21 +1004,21 @@ const vt = function({
|
|
|
994
1004
|
style: { position: "absolute", top: 0, right: 0 },
|
|
995
1005
|
"data-page-chip": !0,
|
|
996
1006
|
children: [
|
|
997
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ u(
|
|
998
1008
|
"div",
|
|
999
1009
|
{
|
|
1000
1010
|
className: "gloss-page-chip__nuzzle",
|
|
1001
|
-
style: { "--_nuzzle-r":
|
|
1011
|
+
style: { "--_nuzzle-r": p }
|
|
1002
1012
|
}
|
|
1003
1013
|
),
|
|
1004
|
-
/* @__PURE__ */
|
|
1014
|
+
/* @__PURE__ */ $(
|
|
1005
1015
|
"button",
|
|
1006
1016
|
{
|
|
1007
1017
|
className: "gloss-page-chip__trigger",
|
|
1008
1018
|
"aria-haspopup": "menu",
|
|
1009
|
-
"aria-expanded":
|
|
1019
|
+
"aria-expanded": m,
|
|
1010
1020
|
"aria-label": `Page ${t + 1} of ${a}. Click to switch pages.`,
|
|
1011
|
-
onClick:
|
|
1021
|
+
onClick: C,
|
|
1012
1022
|
children: [
|
|
1013
1023
|
t + 1,
|
|
1014
1024
|
" / ",
|
|
@@ -1016,25 +1026,25 @@ const vt = function({
|
|
|
1016
1026
|
]
|
|
1017
1027
|
}
|
|
1018
1028
|
),
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
|
|
1029
|
+
/* @__PURE__ */ u(
|
|
1030
|
+
Ie,
|
|
1021
1031
|
{
|
|
1022
|
-
open:
|
|
1032
|
+
open: m,
|
|
1023
1033
|
onDismiss: i,
|
|
1024
1034
|
anchorRef: h,
|
|
1025
1035
|
pages: n,
|
|
1026
|
-
activePageId:
|
|
1036
|
+
activePageId: l,
|
|
1027
1037
|
onPageChange: s,
|
|
1028
1038
|
onCreatePage: o,
|
|
1029
|
-
onManagePages:
|
|
1039
|
+
onManagePages: c
|
|
1030
1040
|
}
|
|
1031
1041
|
)
|
|
1032
1042
|
]
|
|
1033
1043
|
}
|
|
1034
1044
|
);
|
|
1035
1045
|
};
|
|
1036
|
-
|
|
1037
|
-
const
|
|
1046
|
+
yt.displayName = "PageChip";
|
|
1047
|
+
const Bn = [
|
|
1038
1048
|
{
|
|
1039
1049
|
id: "ORD-1001",
|
|
1040
1050
|
orderNumber: "ORD-1001",
|
|
@@ -1167,7 +1177,7 @@ const $n = [
|
|
|
1167
1177
|
date: "2026-03-01",
|
|
1168
1178
|
skuCount: 9
|
|
1169
1179
|
}
|
|
1170
|
-
],
|
|
1180
|
+
], Kn = [
|
|
1171
1181
|
{
|
|
1172
1182
|
id: "ITEM-001",
|
|
1173
1183
|
sku: "PB-4520",
|
|
@@ -1304,13 +1314,13 @@ const $n = [
|
|
|
1304
1314
|
function ge(e) {
|
|
1305
1315
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1306
1316
|
}
|
|
1307
|
-
function
|
|
1317
|
+
function Re(e) {
|
|
1308
1318
|
return e.toLocaleString("en-US");
|
|
1309
1319
|
}
|
|
1310
|
-
function
|
|
1320
|
+
function Me(e) {
|
|
1311
1321
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1312
1322
|
}
|
|
1313
|
-
const
|
|
1323
|
+
const ne = G.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Wn = [
|
|
1314
1324
|
{
|
|
1315
1325
|
field: "id",
|
|
1316
1326
|
headerName: "Order",
|
|
@@ -1340,7 +1350,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1340
1350
|
align: "right",
|
|
1341
1351
|
headerAlign: "right",
|
|
1342
1352
|
cellClassName: "gloss-tabular-nums",
|
|
1343
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1353
|
+
renderCell: ({ row: e }) => e.skuCount ? Re(e.skuCount) : ne
|
|
1344
1354
|
},
|
|
1345
1355
|
{
|
|
1346
1356
|
field: "total",
|
|
@@ -1350,7 +1360,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1350
1360
|
align: "right",
|
|
1351
1361
|
headerAlign: "right",
|
|
1352
1362
|
cellClassName: "gloss-tabular-nums",
|
|
1353
|
-
renderCell: ({ row: e }) => e.total ? ge(e.total) :
|
|
1363
|
+
renderCell: ({ row: e }) => e.total ? ge(e.total) : ne
|
|
1354
1364
|
},
|
|
1355
1365
|
{
|
|
1356
1366
|
field: "date",
|
|
@@ -1360,9 +1370,9 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1360
1370
|
align: "right",
|
|
1361
1371
|
headerAlign: "right",
|
|
1362
1372
|
cellClassName: "gloss-tabular-nums",
|
|
1363
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1373
|
+
renderCell: ({ row: e }) => e.date ? Me(e.date) : ""
|
|
1364
1374
|
}
|
|
1365
|
-
],
|
|
1375
|
+
], Gn = [
|
|
1366
1376
|
{
|
|
1367
1377
|
field: "sku",
|
|
1368
1378
|
headerName: "Item ID",
|
|
@@ -1394,7 +1404,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1394
1404
|
align: "right",
|
|
1395
1405
|
headerAlign: "right",
|
|
1396
1406
|
cellClassName: "gloss-tabular-nums",
|
|
1397
|
-
renderCell: ({ row: e }) => e.price ? ge(e.price) :
|
|
1407
|
+
renderCell: ({ row: e }) => e.price ? ge(e.price) : ne
|
|
1398
1408
|
},
|
|
1399
1409
|
{
|
|
1400
1410
|
field: "quantity",
|
|
@@ -1404,7 +1414,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1404
1414
|
align: "right",
|
|
1405
1415
|
headerAlign: "right",
|
|
1406
1416
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1407
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1417
|
+
renderCell: ({ row: e }) => e.quantity ? Re(e.quantity) : ne
|
|
1408
1418
|
},
|
|
1409
1419
|
{
|
|
1410
1420
|
field: "total",
|
|
@@ -1414,7 +1424,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1414
1424
|
align: "right",
|
|
1415
1425
|
headerAlign: "right",
|
|
1416
1426
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1417
|
-
renderCell: ({ row: e }) => e.total ? ge(e.total) :
|
|
1427
|
+
renderCell: ({ row: e }) => e.total ? ge(e.total) : ne
|
|
1418
1428
|
},
|
|
1419
1429
|
{
|
|
1420
1430
|
field: "lastDate",
|
|
@@ -1424,24 +1434,24 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1424
1434
|
align: "right",
|
|
1425
1435
|
headerAlign: "right",
|
|
1426
1436
|
cellClassName: "gloss-tabular-nums",
|
|
1427
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1437
|
+
renderCell: ({ row: e }) => e.lastDate ? Me(e.lastDate) : ""
|
|
1428
1438
|
}
|
|
1429
|
-
],
|
|
1439
|
+
], wt = [
|
|
1430
1440
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1431
1441
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1432
1442
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1433
1443
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1434
1444
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1435
|
-
],
|
|
1445
|
+
], Dt = [
|
|
1436
1446
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1437
1447
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1438
1448
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1439
1449
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1440
1450
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1441
1451
|
], de = (e) => {
|
|
1442
|
-
},
|
|
1443
|
-
},
|
|
1444
|
-
},
|
|
1452
|
+
}, Ct = (e) => {
|
|
1453
|
+
}, Ne = (e, t) => {
|
|
1454
|
+
}, Pe = {
|
|
1445
1455
|
vizState: {
|
|
1446
1456
|
type: "orders",
|
|
1447
1457
|
quant: "$",
|
|
@@ -1450,16 +1460,16 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1450
1460
|
timeFrame: "MTD"
|
|
1451
1461
|
},
|
|
1452
1462
|
onTypeChange: de,
|
|
1453
|
-
onQuantChange:
|
|
1463
|
+
onQuantChange: Ct,
|
|
1454
1464
|
onEntityTypeChange: de,
|
|
1455
|
-
onEntitySelect:
|
|
1456
|
-
onItemSelect:
|
|
1465
|
+
onEntitySelect: Ne,
|
|
1466
|
+
onItemSelect: Ne,
|
|
1457
1467
|
onTimeFrameChange: de,
|
|
1458
1468
|
userType: "sales-agency",
|
|
1459
|
-
entityFilterOptions:
|
|
1460
|
-
itemFilterOptions:
|
|
1461
|
-
},
|
|
1462
|
-
...
|
|
1469
|
+
entityFilterOptions: wt,
|
|
1470
|
+
itemFilterOptions: Dt
|
|
1471
|
+
}, Hn = {
|
|
1472
|
+
...Pe,
|
|
1463
1473
|
vizState: {
|
|
1464
1474
|
type: "items",
|
|
1465
1475
|
quant: "$",
|
|
@@ -1467,8 +1477,8 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1467
1477
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1468
1478
|
timeFrame: "YTD"
|
|
1469
1479
|
}
|
|
1470
|
-
},
|
|
1471
|
-
...
|
|
1480
|
+
}, Vn = {
|
|
1481
|
+
...Pe,
|
|
1472
1482
|
vizState: {
|
|
1473
1483
|
type: "orders",
|
|
1474
1484
|
quant: "#",
|
|
@@ -1480,7 +1490,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1480
1490
|
entityFilterOptions: [
|
|
1481
1491
|
{ id: "customers", label: "Customers" }
|
|
1482
1492
|
]
|
|
1483
|
-
},
|
|
1493
|
+
}, Nt = [
|
|
1484
1494
|
{
|
|
1485
1495
|
id: "recent-orders",
|
|
1486
1496
|
label: "Recent Orders",
|
|
@@ -1526,7 +1536,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1526
1536
|
routeKey: "customer.profile",
|
|
1527
1537
|
subtitle: "Opens in RepTime"
|
|
1528
1538
|
}
|
|
1529
|
-
],
|
|
1539
|
+
], kt = [
|
|
1530
1540
|
{
|
|
1531
1541
|
id: "order-items",
|
|
1532
1542
|
label: "Items in Order",
|
|
@@ -1555,7 +1565,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1555
1565
|
cellKinds: ["orderId"],
|
|
1556
1566
|
graphType: "timeline"
|
|
1557
1567
|
}
|
|
1558
|
-
],
|
|
1568
|
+
], xt = [
|
|
1559
1569
|
{
|
|
1560
1570
|
id: "graph-metric",
|
|
1561
1571
|
label: "Graph This Metric",
|
|
@@ -1583,14 +1593,14 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1583
1593
|
cellKinds: ["numeric"],
|
|
1584
1594
|
tabType: "orders"
|
|
1585
1595
|
}
|
|
1586
|
-
],
|
|
1587
|
-
entityName:
|
|
1588
|
-
orderId:
|
|
1589
|
-
numeric:
|
|
1590
|
-
},
|
|
1596
|
+
], zn = {
|
|
1597
|
+
entityName: Nt,
|
|
1598
|
+
orderId: kt,
|
|
1599
|
+
numeric: xt
|
|
1600
|
+
}, Zn = [
|
|
1591
1601
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1592
1602
|
/* @__PURE__ */ new Date()
|
|
1593
|
-
],
|
|
1603
|
+
], Un = {
|
|
1594
1604
|
rangeA: [
|
|
1595
1605
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1596
1606
|
/* @__PURE__ */ new Date()
|
|
@@ -1603,7 +1613,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1603
1613
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1604
1614
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1605
1615
|
]
|
|
1606
|
-
},
|
|
1616
|
+
}, Yn = {
|
|
1607
1617
|
version: 4,
|
|
1608
1618
|
lastPreset: "mtd",
|
|
1609
1619
|
pinnedPreset: "mtd",
|
|
@@ -1611,7 +1621,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1611
1621
|
rangeCount: 1,
|
|
1612
1622
|
lastPresetB: null,
|
|
1613
1623
|
lastPresetC: null
|
|
1614
|
-
},
|
|
1624
|
+
}, qn = [
|
|
1615
1625
|
{
|
|
1616
1626
|
id: "atlanta-jan",
|
|
1617
1627
|
label: "Atlanta Market",
|
|
@@ -1633,7 +1643,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1633
1643
|
endDate: new Date(2026, 3, 22),
|
|
1634
1644
|
location: "Chicago, IL"
|
|
1635
1645
|
}
|
|
1636
|
-
],
|
|
1646
|
+
], jn = [
|
|
1637
1647
|
{
|
|
1638
1648
|
id: "custom-regional-1",
|
|
1639
1649
|
label: "Southeast Regional Expo",
|
|
@@ -1650,7 +1660,7 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1650
1660
|
location: "Portland, OR",
|
|
1651
1661
|
isCustom: !0
|
|
1652
1662
|
}
|
|
1653
|
-
],
|
|
1663
|
+
], Xn = [
|
|
1654
1664
|
{
|
|
1655
1665
|
id: "atlanta-jan",
|
|
1656
1666
|
label: "Atlanta Market",
|
|
@@ -1667,35 +1677,35 @@ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1667
1677
|
location: "New York, NY",
|
|
1668
1678
|
active: !0
|
|
1669
1679
|
}
|
|
1670
|
-
],
|
|
1680
|
+
], Qn = [
|
|
1671
1681
|
{ id: "7d", label: "7D" },
|
|
1672
1682
|
{ id: "30d", label: "30D" },
|
|
1673
1683
|
{ id: "60d", label: "60D" },
|
|
1674
1684
|
{ id: "90d", label: "90D" }
|
|
1675
|
-
],
|
|
1685
|
+
], Jn = [
|
|
1676
1686
|
{ id: "mtd", label: "MTD" },
|
|
1677
1687
|
{ id: "qtd", label: "QTD" },
|
|
1678
1688
|
{ id: "ytd", label: "YTD" },
|
|
1679
1689
|
{ id: "lytd", label: "LYTD" }
|
|
1680
|
-
],
|
|
1690
|
+
], St = {
|
|
1681
1691
|
timeframe: "Time Frame",
|
|
1682
1692
|
threshold: "Thresholds",
|
|
1683
1693
|
slots: "Slots",
|
|
1684
1694
|
size: "Size",
|
|
1685
1695
|
color: "Color",
|
|
1686
1696
|
pinned: "Pinned"
|
|
1687
|
-
},
|
|
1688
|
-
timeframe:
|
|
1689
|
-
threshold:
|
|
1690
|
-
slots:
|
|
1691
|
-
size:
|
|
1692
|
-
color:
|
|
1693
|
-
pinned:
|
|
1697
|
+
}, Tt = {
|
|
1698
|
+
timeframe: Xe,
|
|
1699
|
+
threshold: Qe,
|
|
1700
|
+
slots: Je,
|
|
1701
|
+
size: et,
|
|
1702
|
+
color: tt,
|
|
1703
|
+
pinned: nt
|
|
1694
1704
|
};
|
|
1695
|
-
function
|
|
1705
|
+
function ke(...e) {
|
|
1696
1706
|
return e.filter(Boolean).join(" ");
|
|
1697
1707
|
}
|
|
1698
|
-
function
|
|
1708
|
+
function _t() {
|
|
1699
1709
|
const [e, t] = K(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1700
1710
|
return L(() => {
|
|
1701
1711
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
@@ -1705,85 +1715,85 @@ function Tt() {
|
|
|
1705
1715
|
});
|
|
1706
1716
|
}, []), e;
|
|
1707
1717
|
}
|
|
1708
|
-
const
|
|
1718
|
+
const It = ({
|
|
1709
1719
|
dimensions: e,
|
|
1710
1720
|
onDimensionSelect: t,
|
|
1711
1721
|
activeDimension: a,
|
|
1712
1722
|
ariaCardTypeLabel: n,
|
|
1713
1723
|
className: s
|
|
1714
1724
|
}) => {
|
|
1715
|
-
const o =
|
|
1725
|
+
const o = R(null), c = R([]), p = _t(), h = ae(() => Array.from(e), [e]);
|
|
1716
1726
|
if (h.length === 0) return null;
|
|
1717
|
-
const
|
|
1718
|
-
const
|
|
1719
|
-
const
|
|
1720
|
-
|
|
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();
|
|
1721
1731
|
};
|
|
1722
1732
|
switch (i.key) {
|
|
1723
1733
|
case "ArrowRight":
|
|
1724
1734
|
case "ArrowDown": {
|
|
1725
|
-
i.preventDefault(),
|
|
1735
|
+
i.preventDefault(), M(l === b ? 0 : l + 1);
|
|
1726
1736
|
break;
|
|
1727
1737
|
}
|
|
1728
1738
|
case "ArrowLeft":
|
|
1729
1739
|
case "ArrowUp": {
|
|
1730
|
-
i.preventDefault(),
|
|
1740
|
+
i.preventDefault(), M(l === 0 ? b : l - 1);
|
|
1731
1741
|
break;
|
|
1732
1742
|
}
|
|
1733
1743
|
case "Home": {
|
|
1734
|
-
i.preventDefault(),
|
|
1744
|
+
i.preventDefault(), M(0);
|
|
1735
1745
|
break;
|
|
1736
1746
|
}
|
|
1737
1747
|
case "End": {
|
|
1738
|
-
i.preventDefault(),
|
|
1748
|
+
i.preventDefault(), M(b);
|
|
1739
1749
|
break;
|
|
1740
1750
|
}
|
|
1741
1751
|
case "Enter":
|
|
1742
1752
|
case " ": {
|
|
1743
|
-
i.preventDefault(), t(h[
|
|
1753
|
+
i.preventDefault(), t(h[l]);
|
|
1744
1754
|
break;
|
|
1745
1755
|
}
|
|
1746
1756
|
}
|
|
1747
1757
|
};
|
|
1748
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ u(
|
|
1749
1759
|
"div",
|
|
1750
1760
|
{
|
|
1751
1761
|
ref: o,
|
|
1752
1762
|
role: "group",
|
|
1753
|
-
"aria-label":
|
|
1754
|
-
className:
|
|
1763
|
+
"aria-label": m,
|
|
1764
|
+
className: ke("gloss-reconfig-backside-buttons", s),
|
|
1755
1765
|
style: {
|
|
1756
1766
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1757
1767
|
// so the SCSS transition rule can consume it without a nested media
|
|
1758
1768
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1759
1769
|
"--gloss-reconfig-backside-buttons-transition-duration": D
|
|
1760
1770
|
},
|
|
1761
|
-
children: h.map((i,
|
|
1762
|
-
const
|
|
1763
|
-
return /* @__PURE__ */
|
|
1771
|
+
children: h.map((i, l) => {
|
|
1772
|
+
const b = Tt[i], M = a === i;
|
|
1773
|
+
return /* @__PURE__ */ $(
|
|
1764
1774
|
"button",
|
|
1765
1775
|
{
|
|
1766
|
-
ref: (
|
|
1767
|
-
|
|
1776
|
+
ref: (g) => {
|
|
1777
|
+
c.current[l] = g;
|
|
1768
1778
|
},
|
|
1769
1779
|
type: "button",
|
|
1770
1780
|
"data-dimension": i,
|
|
1771
|
-
className:
|
|
1781
|
+
className: ke(
|
|
1772
1782
|
"gloss-reconfig-backside-buttons__button",
|
|
1773
|
-
|
|
1783
|
+
M && "gloss-reconfig-backside-buttons__button--active"
|
|
1774
1784
|
),
|
|
1775
|
-
"aria-current":
|
|
1785
|
+
"aria-current": M ? "true" : void 0,
|
|
1776
1786
|
onClick: () => t(i),
|
|
1777
|
-
onKeyDown: (
|
|
1787
|
+
onKeyDown: (g) => C(g, l),
|
|
1778
1788
|
children: [
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
|
|
1789
|
+
/* @__PURE__ */ u(
|
|
1790
|
+
b,
|
|
1781
1791
|
{
|
|
1782
1792
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
1783
1793
|
"aria-hidden": "true"
|
|
1784
1794
|
}
|
|
1785
1795
|
),
|
|
1786
|
-
/* @__PURE__ */
|
|
1796
|
+
/* @__PURE__ */ u("span", { className: "gloss-reconfig-backside-buttons__button-label", children: St[i] })
|
|
1787
1797
|
]
|
|
1788
1798
|
},
|
|
1789
1799
|
i
|
|
@@ -1792,12 +1802,12 @@ const _t = ({
|
|
|
1792
1802
|
}
|
|
1793
1803
|
);
|
|
1794
1804
|
};
|
|
1795
|
-
|
|
1796
|
-
function
|
|
1805
|
+
It.displayName = "ReconfigBacksideButtons";
|
|
1806
|
+
function Z(e, t) {
|
|
1797
1807
|
return {
|
|
1798
1808
|
id: e,
|
|
1799
1809
|
colSpan: 1,
|
|
1800
|
-
content:
|
|
1810
|
+
content: G.createElement("div", {
|
|
1801
1811
|
style: {
|
|
1802
1812
|
width: "100%",
|
|
1803
1813
|
height: "100%",
|
|
@@ -1813,38 +1823,38 @@ function z(e, t) {
|
|
|
1813
1823
|
}, t)
|
|
1814
1824
|
};
|
|
1815
1825
|
}
|
|
1816
|
-
function
|
|
1826
|
+
function xe(e, t) {
|
|
1817
1827
|
return {
|
|
1818
|
-
...
|
|
1828
|
+
...Z(e, t),
|
|
1819
1829
|
colSpan: 2
|
|
1820
1830
|
};
|
|
1821
1831
|
}
|
|
1822
|
-
const
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
],
|
|
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 = {
|
|
1834
1844
|
columns: 6,
|
|
1835
1845
|
rowHeight: 120,
|
|
1836
1846
|
gap: 15,
|
|
1837
1847
|
maxRows: 3,
|
|
1838
1848
|
currentPage: 0,
|
|
1839
1849
|
totalPages: 1
|
|
1840
|
-
},
|
|
1850
|
+
}, na = {
|
|
1841
1851
|
columns: 9,
|
|
1842
1852
|
rowHeight: 120,
|
|
1843
1853
|
gap: 15,
|
|
1844
1854
|
maxRows: 3,
|
|
1845
1855
|
currentPage: 0,
|
|
1846
1856
|
totalPages: 2
|
|
1847
|
-
},
|
|
1857
|
+
}, aa = {
|
|
1848
1858
|
columns: 12,
|
|
1849
1859
|
rowHeight: 120,
|
|
1850
1860
|
gap: 15,
|
|
@@ -1853,9 +1863,9 @@ const Jn = [
|
|
|
1853
1863
|
totalPages: 3
|
|
1854
1864
|
};
|
|
1855
1865
|
function ue(e) {
|
|
1856
|
-
return
|
|
1866
|
+
return G.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1857
1867
|
}
|
|
1858
|
-
const
|
|
1868
|
+
const ra = [
|
|
1859
1869
|
{
|
|
1860
1870
|
id: "all-orders",
|
|
1861
1871
|
type: "orders",
|
|
@@ -1878,7 +1888,7 @@ const aa = [
|
|
|
1878
1888
|
icon: ue("🚚"),
|
|
1879
1889
|
closable: !0
|
|
1880
1890
|
}
|
|
1881
|
-
],
|
|
1891
|
+
], sa = [
|
|
1882
1892
|
{
|
|
1883
1893
|
id: "orders-main",
|
|
1884
1894
|
type: "orders",
|
|
@@ -1904,7 +1914,7 @@ const aa = [
|
|
|
1904
1914
|
name: "Customers",
|
|
1905
1915
|
closable: !0
|
|
1906
1916
|
}
|
|
1907
|
-
],
|
|
1917
|
+
], oa = [
|
|
1908
1918
|
{
|
|
1909
1919
|
id: "only-tab",
|
|
1910
1920
|
type: "orders",
|
|
@@ -1912,7 +1922,7 @@ const aa = [
|
|
|
1912
1922
|
closable: !1,
|
|
1913
1923
|
autoCreated: !0
|
|
1914
1924
|
}
|
|
1915
|
-
],
|
|
1925
|
+
], ia = [
|
|
1916
1926
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1917
1927
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1918
1928
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1935,7 +1945,7 @@ function fe(e) {
|
|
|
1935
1945
|
return { cols: 1, rows: 1 };
|
|
1936
1946
|
}
|
|
1937
1947
|
}
|
|
1938
|
-
function
|
|
1948
|
+
function Rt(e) {
|
|
1939
1949
|
let t = 0;
|
|
1940
1950
|
for (const n of e) {
|
|
1941
1951
|
const s = fe(n.size), o = n.gridPosition.col + s.cols - 1;
|
|
@@ -1943,16 +1953,16 @@ function It(e) {
|
|
|
1943
1953
|
}
|
|
1944
1954
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1945
1955
|
}
|
|
1946
|
-
const
|
|
1956
|
+
const Mt = function(t) {
|
|
1947
1957
|
if (t.renderMode === "discrete")
|
|
1948
|
-
return /* @__PURE__ */
|
|
1958
|
+
return /* @__PURE__ */ u(
|
|
1949
1959
|
"div",
|
|
1950
1960
|
{
|
|
1951
1961
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1952
1962
|
style: { display: "contents" },
|
|
1953
1963
|
children: t.cards.map((s) => {
|
|
1954
1964
|
const o = fe(s.size);
|
|
1955
|
-
return /* @__PURE__ */
|
|
1965
|
+
return /* @__PURE__ */ u(
|
|
1956
1966
|
"div",
|
|
1957
1967
|
{
|
|
1958
1968
|
className: "gloss-metric-group__slot",
|
|
@@ -1968,7 +1978,7 @@ const Rt = function(t) {
|
|
|
1968
1978
|
}
|
|
1969
1979
|
);
|
|
1970
1980
|
const { cards: a, composite: n } = t;
|
|
1971
|
-
return /* @__PURE__ */
|
|
1981
|
+
return /* @__PURE__ */ $(
|
|
1972
1982
|
"div",
|
|
1973
1983
|
{
|
|
1974
1984
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1987,16 +1997,16 @@ const Rt = function(t) {
|
|
|
1987
1997
|
"aria-label": n?.label,
|
|
1988
1998
|
tabIndex: void 0,
|
|
1989
1999
|
children: [
|
|
1990
|
-
n?.accentColor && /* @__PURE__ */
|
|
2000
|
+
n?.accentColor && /* @__PURE__ */ u(
|
|
1991
2001
|
"div",
|
|
1992
2002
|
{
|
|
1993
2003
|
className: "gloss-metric-group__accent",
|
|
1994
2004
|
style: { background: n.accentColor }
|
|
1995
2005
|
}
|
|
1996
2006
|
),
|
|
1997
|
-
n?.label && /* @__PURE__ */
|
|
1998
|
-
/* @__PURE__ */
|
|
1999
|
-
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(
|
|
2000
2010
|
"span",
|
|
2001
2011
|
{
|
|
2002
2012
|
className: "gloss-metric-group__trend",
|
|
@@ -2005,18 +2015,18 @@ const Rt = function(t) {
|
|
|
2005
2015
|
}
|
|
2006
2016
|
)
|
|
2007
2017
|
] }),
|
|
2008
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ u(
|
|
2009
2019
|
"div",
|
|
2010
2020
|
{
|
|
2011
2021
|
className: "gloss-metric-group__slots",
|
|
2012
2022
|
style: {
|
|
2013
2023
|
display: "grid",
|
|
2014
2024
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2015
|
-
gridTemplateColumns:
|
|
2025
|
+
gridTemplateColumns: Rt(a)
|
|
2016
2026
|
},
|
|
2017
2027
|
children: a.map((s) => {
|
|
2018
2028
|
const o = fe(s.size);
|
|
2019
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ u(
|
|
2020
2030
|
"div",
|
|
2021
2031
|
{
|
|
2022
2032
|
className: "gloss-metric-group__slot--composite",
|
|
@@ -2035,48 +2045,48 @@ const Rt = function(t) {
|
|
|
2035
2045
|
}
|
|
2036
2046
|
);
|
|
2037
2047
|
};
|
|
2038
|
-
|
|
2039
|
-
const
|
|
2040
|
-
...
|
|
2048
|
+
Mt.displayName = "MetricGroupContainer";
|
|
2049
|
+
const Fe = "resize.tuning.dev", Pt = {
|
|
2050
|
+
..._e,
|
|
2041
2051
|
snapInPx: 60,
|
|
2042
2052
|
snapOutPx: 90
|
|
2043
|
-
},
|
|
2044
|
-
function
|
|
2045
|
-
if (typeof window > "u") return { ...
|
|
2053
|
+
}, q = Pt;
|
|
2054
|
+
function Ft() {
|
|
2055
|
+
if (typeof window > "u") return { ...q };
|
|
2046
2056
|
try {
|
|
2047
|
-
const e = window.localStorage.getItem(
|
|
2048
|
-
if (!e) return { ...
|
|
2057
|
+
const e = window.localStorage.getItem(Fe);
|
|
2058
|
+
if (!e) return { ...q };
|
|
2049
2059
|
const t = JSON.parse(e);
|
|
2050
|
-
return !t || typeof t != "object" || Array.isArray(t) ? { ...
|
|
2060
|
+
return !t || typeof t != "object" || Array.isArray(t) ? { ...q } : { ...q, ...t };
|
|
2051
2061
|
} catch {
|
|
2052
|
-
return { ...
|
|
2062
|
+
return { ...q };
|
|
2053
2063
|
}
|
|
2054
2064
|
}
|
|
2055
|
-
function
|
|
2056
|
-
const [e, t] = K(() =>
|
|
2065
|
+
function Et() {
|
|
2066
|
+
const [e, t] = K(() => Ft());
|
|
2057
2067
|
L(() => {
|
|
2058
2068
|
if (!(typeof window > "u"))
|
|
2059
2069
|
try {
|
|
2060
|
-
window.localStorage.setItem(
|
|
2070
|
+
window.localStorage.setItem(Fe, JSON.stringify(e));
|
|
2061
2071
|
} catch {
|
|
2062
2072
|
}
|
|
2063
2073
|
}, [e]);
|
|
2064
2074
|
const a = f(
|
|
2065
|
-
(o,
|
|
2066
|
-
t((
|
|
2075
|
+
(o, c) => {
|
|
2076
|
+
t((p) => ({ ...p, [o]: c }));
|
|
2067
2077
|
},
|
|
2068
2078
|
[]
|
|
2069
2079
|
), n = f(
|
|
2070
2080
|
(o) => {
|
|
2071
|
-
t((
|
|
2081
|
+
t((c) => ({ ...c, [o]: q[o] }));
|
|
2072
2082
|
},
|
|
2073
2083
|
[]
|
|
2074
2084
|
), s = f(() => {
|
|
2075
|
-
t({ ...
|
|
2085
|
+
t({ ...q });
|
|
2076
2086
|
}, []);
|
|
2077
2087
|
return { values: e, setValue: a, resetRow: n, resetAll: s };
|
|
2078
2088
|
}
|
|
2079
|
-
const
|
|
2089
|
+
const Ot = [
|
|
2080
2090
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2081
2091
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2082
2092
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2087,11 +2097,11 @@ const Et = [
|
|
|
2087
2097
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2088
2098
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2089
2099
|
];
|
|
2090
|
-
function
|
|
2100
|
+
function At(e, t) {
|
|
2091
2101
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2092
2102
|
}
|
|
2093
|
-
function
|
|
2094
|
-
return /* @__PURE__ */
|
|
2103
|
+
function Lt() {
|
|
2104
|
+
return /* @__PURE__ */ $(
|
|
2095
2105
|
"svg",
|
|
2096
2106
|
{
|
|
2097
2107
|
width: "14",
|
|
@@ -2104,32 +2114,32 @@ function At() {
|
|
|
2104
2114
|
strokeLinejoin: "round",
|
|
2105
2115
|
"aria-hidden": "true",
|
|
2106
2116
|
children: [
|
|
2107
|
-
/* @__PURE__ */
|
|
2108
|
-
/* @__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" })
|
|
2109
2119
|
]
|
|
2110
2120
|
}
|
|
2111
2121
|
);
|
|
2112
2122
|
}
|
|
2113
|
-
function
|
|
2123
|
+
function $t({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
|
|
2114
2124
|
const o = f(
|
|
2115
|
-
(
|
|
2116
|
-
(
|
|
2125
|
+
(c) => {
|
|
2126
|
+
(c.key === "r" || c.key === "R") && (c.preventDefault(), n());
|
|
2117
2127
|
},
|
|
2118
2128
|
[n]
|
|
2119
2129
|
);
|
|
2120
|
-
return /* @__PURE__ */
|
|
2130
|
+
return /* @__PURE__ */ $(
|
|
2121
2131
|
"div",
|
|
2122
2132
|
{
|
|
2123
2133
|
className: `gloss-dev-tuning-panel__row${s ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
2124
2134
|
"data-tuning-row": e.key,
|
|
2125
2135
|
onKeyDown: o,
|
|
2126
2136
|
children: [
|
|
2127
|
-
/* @__PURE__ */
|
|
2128
|
-
/* @__PURE__ */
|
|
2129
|
-
|
|
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),
|
|
2130
2140
|
e.unit ? ` ${e.unit}` : ""
|
|
2131
2141
|
] }),
|
|
2132
|
-
/* @__PURE__ */
|
|
2142
|
+
/* @__PURE__ */ u(
|
|
2133
2143
|
"input",
|
|
2134
2144
|
{
|
|
2135
2145
|
id: `gloss-dtp-${e.key}`,
|
|
@@ -2140,24 +2150,24 @@ function Lt({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
|
|
|
2140
2150
|
step: e.step,
|
|
2141
2151
|
value: t,
|
|
2142
2152
|
"aria-label": e.label,
|
|
2143
|
-
onChange: (
|
|
2153
|
+
onChange: (c) => a(Number(c.target.value))
|
|
2144
2154
|
}
|
|
2145
2155
|
),
|
|
2146
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ u(
|
|
2147
2157
|
"button",
|
|
2148
2158
|
{
|
|
2149
2159
|
type: "button",
|
|
2150
2160
|
className: "gloss-dev-tuning-panel__reset",
|
|
2151
2161
|
"aria-label": `Reset ${e.label}`,
|
|
2152
2162
|
onClick: n,
|
|
2153
|
-
children: /* @__PURE__ */
|
|
2163
|
+
children: /* @__PURE__ */ u(Lt, {})
|
|
2154
2164
|
}
|
|
2155
2165
|
)
|
|
2156
2166
|
]
|
|
2157
2167
|
}
|
|
2158
2168
|
);
|
|
2159
2169
|
}
|
|
2160
|
-
function
|
|
2170
|
+
function Bt() {
|
|
2161
2171
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2162
2172
|
try {
|
|
2163
2173
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2165,23 +2175,23 @@ function $t() {
|
|
|
2165
2175
|
return !1;
|
|
2166
2176
|
}
|
|
2167
2177
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return
|
|
2178
|
+
function Kt(e = {}) {
|
|
2179
|
+
return Bt() ? /* @__PURE__ */ u(Wt, {}) : null;
|
|
2170
2180
|
}
|
|
2171
|
-
|
|
2172
|
-
function
|
|
2173
|
-
const e =
|
|
2174
|
-
|
|
2175
|
-
|
|
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;
|
|
2176
2186
|
}, 200);
|
|
2177
|
-
}, []),
|
|
2178
|
-
(i,
|
|
2179
|
-
a(i,
|
|
2187
|
+
}, []), m = f(
|
|
2188
|
+
(i, l) => {
|
|
2189
|
+
a(i, l), i === "snapInPx" && l > t.snapOutPx && (a("snapOutPx", l), h("snapOutPx"));
|
|
2180
2190
|
},
|
|
2181
2191
|
[a, t.snapOutPx, h]
|
|
2182
|
-
), D =
|
|
2183
|
-
return /* @__PURE__ */
|
|
2184
|
-
|
|
2192
|
+
), D = ae(() => Ot, []), C = Ye();
|
|
2193
|
+
return /* @__PURE__ */ $(
|
|
2194
|
+
Te.div,
|
|
2185
2195
|
{
|
|
2186
2196
|
className: "gloss-dev-tuning-panel",
|
|
2187
2197
|
role: "region",
|
|
@@ -2189,32 +2199,32 @@ function Kt() {
|
|
|
2189
2199
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2190
2200
|
drag: !0,
|
|
2191
2201
|
dragListener: !1,
|
|
2192
|
-
dragControls:
|
|
2202
|
+
dragControls: C,
|
|
2193
2203
|
dragMomentum: !1,
|
|
2194
2204
|
children: [
|
|
2195
|
-
/* @__PURE__ */
|
|
2205
|
+
/* @__PURE__ */ $(
|
|
2196
2206
|
"div",
|
|
2197
2207
|
{
|
|
2198
2208
|
className: "gloss-dev-tuning-panel__header",
|
|
2199
|
-
onPointerDown: (i) =>
|
|
2209
|
+
onPointerDown: (i) => C.start(i),
|
|
2200
2210
|
children: [
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
/* @__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" })
|
|
2203
2213
|
]
|
|
2204
2214
|
}
|
|
2205
2215
|
),
|
|
2206
|
-
/* @__PURE__ */
|
|
2207
|
-
|
|
2216
|
+
/* @__PURE__ */ u("div", { className: "gloss-dev-tuning-panel__body", children: D.map((i) => /* @__PURE__ */ u(
|
|
2217
|
+
$t,
|
|
2208
2218
|
{
|
|
2209
2219
|
spec: i,
|
|
2210
2220
|
value: t[i.key],
|
|
2211
|
-
onChange: (
|
|
2221
|
+
onChange: (l) => m(i.key, l),
|
|
2212
2222
|
onReset: () => n(i.key),
|
|
2213
2223
|
flashing: o === i.key
|
|
2214
2224
|
},
|
|
2215
2225
|
i.key
|
|
2216
2226
|
)) }),
|
|
2217
|
-
/* @__PURE__ */
|
|
2227
|
+
/* @__PURE__ */ u("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ u(
|
|
2218
2228
|
"button",
|
|
2219
2229
|
{
|
|
2220
2230
|
type: "button",
|
|
@@ -2227,7 +2237,7 @@ function Kt() {
|
|
|
2227
2237
|
}
|
|
2228
2238
|
);
|
|
2229
2239
|
}
|
|
2230
|
-
const
|
|
2240
|
+
const Y = {
|
|
2231
2241
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
2232
2242
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
2233
2243
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -2235,57 +2245,57 @@ const U = {
|
|
|
2235
2245
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2236
2246
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2237
2247
|
};
|
|
2238
|
-
function
|
|
2248
|
+
function Gt({
|
|
2239
2249
|
message: e,
|
|
2240
2250
|
primaryAction: t,
|
|
2241
2251
|
onDismiss: a,
|
|
2242
2252
|
anchorEl: n,
|
|
2243
2253
|
anchorSelector: s
|
|
2244
2254
|
}) {
|
|
2245
|
-
const [o,
|
|
2255
|
+
const [o, c] = G.useState(null), p = G.useMemo(
|
|
2246
2256
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
2247
2257
|
[]
|
|
2248
2258
|
);
|
|
2249
|
-
|
|
2259
|
+
G.useEffect(() => {
|
|
2250
2260
|
!n && !s && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
2251
2261
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2252
2262
|
);
|
|
2253
|
-
}, [n, s]),
|
|
2254
|
-
let
|
|
2255
|
-
if (n ?
|
|
2256
|
-
const D =
|
|
2257
|
-
|
|
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({
|
|
2258
2268
|
top: D.bottom + window.scrollY + 6,
|
|
2259
2269
|
left: D.left + window.scrollX
|
|
2260
2270
|
});
|
|
2261
2271
|
}
|
|
2262
2272
|
}, [n, s]);
|
|
2263
2273
|
const h = o ? { top: o.top, left: o.left } : {};
|
|
2264
|
-
return /* @__PURE__ */
|
|
2274
|
+
return /* @__PURE__ */ $(
|
|
2265
2275
|
"div",
|
|
2266
2276
|
{
|
|
2267
|
-
className:
|
|
2277
|
+
className: Y["gloss-inline-nudge"],
|
|
2268
2278
|
style: h,
|
|
2269
2279
|
role: "status",
|
|
2270
2280
|
"aria-live": "polite",
|
|
2271
|
-
"data-reduced-motion":
|
|
2281
|
+
"data-reduced-motion": p ? "true" : void 0,
|
|
2272
2282
|
children: [
|
|
2273
|
-
/* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__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(
|
|
2276
2286
|
"button",
|
|
2277
2287
|
{
|
|
2278
2288
|
type: "button",
|
|
2279
|
-
className: `${
|
|
2289
|
+
className: `${Y["gloss-inline-nudge__btn"]} ${Y["gloss-inline-nudge__btn--action"]}`,
|
|
2280
2290
|
onClick: t.onClick,
|
|
2281
2291
|
children: t.label
|
|
2282
2292
|
}
|
|
2283
2293
|
),
|
|
2284
|
-
/* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ u(
|
|
2285
2295
|
"button",
|
|
2286
2296
|
{
|
|
2287
2297
|
type: "button",
|
|
2288
|
-
className: `${
|
|
2298
|
+
className: `${Y["gloss-inline-nudge__btn"]} ${Y["gloss-inline-nudge__btn--dismiss"]}`,
|
|
2289
2299
|
onClick: a,
|
|
2290
2300
|
"aria-label": "Dismiss",
|
|
2291
2301
|
children: "Dismiss"
|
|
@@ -2296,25 +2306,25 @@ function Wt({
|
|
|
2296
2306
|
}
|
|
2297
2307
|
);
|
|
2298
2308
|
}
|
|
2299
|
-
|
|
2309
|
+
Gt.displayName = "InlineNudge";
|
|
2300
2310
|
function he(e) {
|
|
2301
2311
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
2302
2312
|
}
|
|
2303
|
-
function
|
|
2313
|
+
function Ht(e, t, a) {
|
|
2304
2314
|
if (a <= t) {
|
|
2305
|
-
const
|
|
2306
|
-
return `linear-gradient(to right, ${
|
|
2315
|
+
const c = e[0], p = c ? he(c) : "#888";
|
|
2316
|
+
return `linear-gradient(to right, ${p}, ${p})`;
|
|
2307
2317
|
}
|
|
2308
|
-
const n = a - t, o = [...e].sort((
|
|
2309
|
-
const
|
|
2310
|
-
return `${he(
|
|
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)}%`;
|
|
2311
2321
|
});
|
|
2312
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(", ")})`;
|
|
2313
2323
|
}
|
|
2314
|
-
function
|
|
2324
|
+
function Vt(e) {
|
|
2315
2325
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
2316
2326
|
}
|
|
2317
|
-
function
|
|
2327
|
+
function zt({
|
|
2318
2328
|
stops: e,
|
|
2319
2329
|
onChange: t,
|
|
2320
2330
|
min: a = 0,
|
|
@@ -2322,69 +2332,69 @@ function Vt({
|
|
|
2322
2332
|
step: s,
|
|
2323
2333
|
disabled: o = !1
|
|
2324
2334
|
}) {
|
|
2325
|
-
const
|
|
2335
|
+
const c = s === void 0 ? 0.01 : !Number.isFinite(s) || s <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
2326
2336
|
`ThresholdRamp: step (${s}) must be a positive finite number; falling back to 0.01.`
|
|
2327
|
-
), 0.01) : s,
|
|
2328
|
-
(r) => Math.round(r /
|
|
2329
|
-
[
|
|
2330
|
-
), 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);
|
|
2331
2341
|
L(() => {
|
|
2332
|
-
|
|
2333
|
-
}, [
|
|
2334
|
-
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(
|
|
2335
2345
|
(r) => {
|
|
2336
2346
|
if (!h.current) return a;
|
|
2337
|
-
const
|
|
2338
|
-
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);
|
|
2339
2349
|
},
|
|
2340
|
-
[a, n,
|
|
2350
|
+
[a, n, p]
|
|
2341
2351
|
);
|
|
2342
2352
|
L(() => {
|
|
2343
2353
|
n <= a && process.env.NODE_ENV !== "production" && console.warn(
|
|
2344
2354
|
`ThresholdRamp: max (${n}) must be greater than min (${a}); rendering degenerate strip.`
|
|
2345
2355
|
);
|
|
2346
2356
|
}, [a, n]);
|
|
2347
|
-
const
|
|
2348
|
-
(r,
|
|
2349
|
-
const
|
|
2350
|
-
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));
|
|
2351
2361
|
},
|
|
2352
|
-
[o,
|
|
2353
|
-
),
|
|
2354
|
-
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2357
|
-
if (!
|
|
2358
|
-
const r = (
|
|
2359
|
-
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);
|
|
2360
2370
|
i(
|
|
2361
|
-
(k) => k.map((
|
|
2371
|
+
(k) => k.map((T) => T.id === m ? { ...T, value: N } : T)
|
|
2362
2372
|
);
|
|
2363
|
-
},
|
|
2364
|
-
const
|
|
2365
|
-
(
|
|
2373
|
+
}, d = (v) => {
|
|
2374
|
+
const N = g(v.clientX), k = F.current.map(
|
|
2375
|
+
(T) => T.id === m ? { ...T, value: N } : T
|
|
2366
2376
|
);
|
|
2367
|
-
i(k), D(null),
|
|
2377
|
+
i(k), D(null), w.current(k);
|
|
2368
2378
|
};
|
|
2369
|
-
return window.addEventListener("pointermove", r), window.addEventListener("pointerup",
|
|
2370
|
-
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);
|
|
2371
2381
|
};
|
|
2372
|
-
}, [
|
|
2373
|
-
const
|
|
2374
|
-
(r,
|
|
2375
|
-
if (o ||
|
|
2376
|
-
const
|
|
2377
|
-
if (
|
|
2378
|
-
const
|
|
2379
|
-
let k =
|
|
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;
|
|
2380
2390
|
switch (r.key) {
|
|
2381
2391
|
case "ArrowRight":
|
|
2382
2392
|
case "ArrowUp":
|
|
2383
|
-
k =
|
|
2393
|
+
k = d.value + N;
|
|
2384
2394
|
break;
|
|
2385
2395
|
case "ArrowLeft":
|
|
2386
2396
|
case "ArrowDown":
|
|
2387
|
-
k =
|
|
2397
|
+
k = d.value - N;
|
|
2388
2398
|
break;
|
|
2389
2399
|
case "Home":
|
|
2390
2400
|
k = a;
|
|
@@ -2396,35 +2406,35 @@ function Vt({
|
|
|
2396
2406
|
return;
|
|
2397
2407
|
}
|
|
2398
2408
|
r.preventDefault();
|
|
2399
|
-
const
|
|
2400
|
-
if (
|
|
2401
|
-
const
|
|
2402
|
-
(
|
|
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
|
|
2403
2413
|
);
|
|
2404
|
-
i(
|
|
2414
|
+
i(O), t(O);
|
|
2405
2415
|
},
|
|
2406
|
-
[o, a, n,
|
|
2416
|
+
[o, a, n, C, t, p]
|
|
2407
2417
|
);
|
|
2408
|
-
return /* @__PURE__ */
|
|
2418
|
+
return /* @__PURE__ */ u("div", { className: "gloss-threshold-ramp", "data-disabled": o || void 0, children: /* @__PURE__ */ u(
|
|
2409
2419
|
"div",
|
|
2410
2420
|
{
|
|
2411
2421
|
ref: h,
|
|
2412
2422
|
className: "gloss-threshold-ramp__track",
|
|
2413
|
-
style: { background:
|
|
2414
|
-
children:
|
|
2415
|
-
const
|
|
2416
|
-
return /* @__PURE__ */
|
|
2423
|
+
style: { background: M },
|
|
2424
|
+
children: C.map((r) => {
|
|
2425
|
+
const d = (r.value - a) / S * 100;
|
|
2426
|
+
return /* @__PURE__ */ u(
|
|
2417
2427
|
"span",
|
|
2418
2428
|
{
|
|
2419
2429
|
className: "gloss-threshold-ramp__stop",
|
|
2420
2430
|
style: {
|
|
2421
|
-
left: `${
|
|
2431
|
+
left: `${d}%`,
|
|
2422
2432
|
color: he(r)
|
|
2423
2433
|
},
|
|
2424
2434
|
"data-disabled": r.disabled || void 0,
|
|
2425
|
-
"data-dragging":
|
|
2426
|
-
onPointerDown: (
|
|
2427
|
-
onKeyDown: (
|
|
2435
|
+
"data-dragging": m === r.id || void 0,
|
|
2436
|
+
onPointerDown: (v) => x(v, r.id),
|
|
2437
|
+
onKeyDown: (v) => _(v, r),
|
|
2428
2438
|
"aria-label": r.label ?? `Stop at ${r.value}`,
|
|
2429
2439
|
role: "slider",
|
|
2430
2440
|
"aria-valuenow": r.value,
|
|
@@ -2439,32 +2449,32 @@ function Vt({
|
|
|
2439
2449
|
}
|
|
2440
2450
|
) });
|
|
2441
2451
|
}
|
|
2442
|
-
|
|
2443
|
-
const
|
|
2444
|
-
function
|
|
2445
|
-
return
|
|
2452
|
+
zt.displayName = "ThresholdRamp";
|
|
2453
|
+
const Ee = ze(null);
|
|
2454
|
+
function Zt() {
|
|
2455
|
+
return Ze(Ee);
|
|
2446
2456
|
}
|
|
2447
|
-
function
|
|
2448
|
-
const t =
|
|
2457
|
+
function Ut({ option: e }) {
|
|
2458
|
+
const t = Zt(), a = t?.isSelected(e.value) ?? !1, n = e.disabled || t?.groupDisabled, s = f(() => {
|
|
2449
2459
|
n || t?.select(e.value);
|
|
2450
2460
|
}, [n, t, e.value]), o = f(
|
|
2451
|
-
(
|
|
2452
|
-
n || t?.onKeyNav(
|
|
2461
|
+
(m) => {
|
|
2462
|
+
n || t?.onKeyNav(m, e.value);
|
|
2453
2463
|
},
|
|
2454
2464
|
[n, t, e.value]
|
|
2455
|
-
),
|
|
2456
|
-
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(
|
|
2457
2467
|
"button",
|
|
2458
2468
|
{
|
|
2459
|
-
ref: (
|
|
2469
|
+
ref: (m) => t?.registerRef(e.value, m),
|
|
2460
2470
|
type: "button",
|
|
2461
2471
|
role: "radio",
|
|
2462
2472
|
"aria-checked": a,
|
|
2463
2473
|
className: "gloss-preset-swatch-row__swatch",
|
|
2464
|
-
style: { backgroundColor:
|
|
2474
|
+
style: { backgroundColor: c },
|
|
2465
2475
|
"data-selected": a || void 0,
|
|
2466
2476
|
"data-disabled": n || void 0,
|
|
2467
|
-
...process.env.NODE_ENV === "test" ? { "data-bg-color":
|
|
2477
|
+
...process.env.NODE_ENV === "test" ? { "data-bg-color": c } : {},
|
|
2468
2478
|
"aria-label": e.label ?? e.value,
|
|
2469
2479
|
"aria-disabled": n,
|
|
2470
2480
|
disabled: n,
|
|
@@ -2474,7 +2484,7 @@ function Zt({ option: e }) {
|
|
|
2474
2484
|
}
|
|
2475
2485
|
);
|
|
2476
2486
|
}
|
|
2477
|
-
function
|
|
2487
|
+
function Yt({
|
|
2478
2488
|
swatches: e,
|
|
2479
2489
|
value: t,
|
|
2480
2490
|
defaultValue: a,
|
|
@@ -2482,65 +2492,65 @@ function Ut({
|
|
|
2482
2492
|
disabled: s = !1,
|
|
2483
2493
|
name: o
|
|
2484
2494
|
}) {
|
|
2485
|
-
const
|
|
2486
|
-
(
|
|
2487
|
-
|
|
2495
|
+
const c = t !== void 0, [p, h] = K(a), m = c ? t : p, D = f(
|
|
2496
|
+
(w) => {
|
|
2497
|
+
c || h(w), n?.(w);
|
|
2488
2498
|
},
|
|
2489
|
-
[
|
|
2490
|
-
),
|
|
2491
|
-
(
|
|
2492
|
-
[
|
|
2493
|
-
), i =
|
|
2494
|
-
|
|
2495
|
-
}, []),
|
|
2496
|
-
const
|
|
2497
|
-
|
|
2498
|
-
}, []),
|
|
2499
|
-
(
|
|
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) => {
|
|
2500
2510
|
if (s) return;
|
|
2501
|
-
const
|
|
2502
|
-
if (
|
|
2503
|
-
const r =
|
|
2511
|
+
const _ = e.filter((N) => !N.disabled);
|
|
2512
|
+
if (_.length === 0) return;
|
|
2513
|
+
const r = _.findIndex((N) => N.value === S);
|
|
2504
2514
|
if (r === -1) return;
|
|
2505
|
-
let
|
|
2506
|
-
switch (
|
|
2515
|
+
let d = r;
|
|
2516
|
+
switch (w.key) {
|
|
2507
2517
|
case "ArrowRight":
|
|
2508
2518
|
case "ArrowDown":
|
|
2509
|
-
|
|
2519
|
+
d = (r + 1) % _.length;
|
|
2510
2520
|
break;
|
|
2511
2521
|
case "ArrowLeft":
|
|
2512
2522
|
case "ArrowUp":
|
|
2513
|
-
|
|
2523
|
+
d = (r - 1 + _.length) % _.length;
|
|
2514
2524
|
break;
|
|
2515
2525
|
case "Home":
|
|
2516
|
-
|
|
2526
|
+
d = 0;
|
|
2517
2527
|
break;
|
|
2518
2528
|
case "End":
|
|
2519
|
-
|
|
2529
|
+
d = _.length - 1;
|
|
2520
2530
|
break;
|
|
2521
2531
|
case " ":
|
|
2522
2532
|
case "Enter":
|
|
2523
|
-
|
|
2533
|
+
w.preventDefault(), D(S);
|
|
2524
2534
|
return;
|
|
2525
2535
|
default:
|
|
2526
2536
|
return;
|
|
2527
2537
|
}
|
|
2528
|
-
|
|
2529
|
-
const
|
|
2530
|
-
|
|
2538
|
+
w.preventDefault();
|
|
2539
|
+
const v = _[d].value;
|
|
2540
|
+
g(v), D(v);
|
|
2531
2541
|
},
|
|
2532
|
-
[s, e, D,
|
|
2533
|
-
),
|
|
2534
|
-
selectedValue:
|
|
2542
|
+
[s, e, D, g]
|
|
2543
|
+
), F = {
|
|
2544
|
+
selectedValue: m,
|
|
2535
2545
|
select: D,
|
|
2536
|
-
isSelected:
|
|
2546
|
+
isSelected: C,
|
|
2537
2547
|
groupDisabled: s,
|
|
2538
2548
|
name: o,
|
|
2539
|
-
registerRef:
|
|
2540
|
-
firstFocusableValue:
|
|
2541
|
-
onKeyNav:
|
|
2549
|
+
registerRef: l,
|
|
2550
|
+
firstFocusableValue: M,
|
|
2551
|
+
onKeyNav: x
|
|
2542
2552
|
};
|
|
2543
|
-
return /* @__PURE__ */
|
|
2553
|
+
return /* @__PURE__ */ u(Ee.Provider, { value: F, children: /* @__PURE__ */ u(
|
|
2544
2554
|
"div",
|
|
2545
2555
|
{
|
|
2546
2556
|
className: "gloss-preset-swatch-row",
|
|
@@ -2548,126 +2558,126 @@ function Ut({
|
|
|
2548
2558
|
"aria-label": o,
|
|
2549
2559
|
"aria-disabled": s,
|
|
2550
2560
|
"data-disabled": s || void 0,
|
|
2551
|
-
children: e.map((
|
|
2561
|
+
children: e.map((w) => /* @__PURE__ */ u(Ut, { option: w }, w.value))
|
|
2552
2562
|
}
|
|
2553
2563
|
) });
|
|
2554
2564
|
}
|
|
2555
|
-
|
|
2565
|
+
Yt.displayName = "PresetSwatchRow";
|
|
2556
2566
|
function be(e, t) {
|
|
2557
2567
|
for (const a of e)
|
|
2558
2568
|
if (a.items.some((n) => n.id === t))
|
|
2559
2569
|
return a.zoneKey;
|
|
2560
2570
|
return null;
|
|
2561
2571
|
}
|
|
2562
|
-
function
|
|
2572
|
+
function Se(e, t) {
|
|
2563
2573
|
const a = e.find((n) => n.zoneKey === t);
|
|
2564
2574
|
return a ? a.zoneKey : be(e, t);
|
|
2565
2575
|
}
|
|
2566
|
-
function
|
|
2576
|
+
function qt(e, t, a) {
|
|
2567
2577
|
const n = [...e], [s] = n.splice(t, 1);
|
|
2568
2578
|
return n.splice(a, 0, s), n;
|
|
2569
2579
|
}
|
|
2570
|
-
function
|
|
2580
|
+
function jt(e) {
|
|
2571
2581
|
return e.map((t) => `${t.zoneKey}:${t.items.map((a) => a.id).join(",")}`).join("|");
|
|
2572
2582
|
}
|
|
2573
|
-
function
|
|
2583
|
+
function Xt(e) {
|
|
2574
2584
|
const [t, a] = K(
|
|
2575
|
-
() => e.zones.map((
|
|
2576
|
-
`useSortableZones: zone "${
|
|
2577
|
-
), { ...
|
|
2578
|
-
), [n, s] = K(null), [o,
|
|
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);
|
|
2579
2589
|
h.current = e.onZoneChange;
|
|
2580
|
-
const
|
|
2581
|
-
() =>
|
|
2590
|
+
const m = ae(
|
|
2591
|
+
() => jt(e.zones),
|
|
2582
2592
|
[e.zones]
|
|
2583
|
-
), D =
|
|
2593
|
+
), D = R(m);
|
|
2584
2594
|
L(() => {
|
|
2585
|
-
D.current !==
|
|
2586
|
-
e.zones.map((
|
|
2587
|
-
`useSortableZones: zone "${
|
|
2588
|
-
), { ...
|
|
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)
|
|
2589
2599
|
));
|
|
2590
|
-
}, [
|
|
2591
|
-
const
|
|
2592
|
-
(
|
|
2593
|
-
const
|
|
2594
|
-
let
|
|
2595
|
-
for (const
|
|
2596
|
-
const
|
|
2597
|
-
if (
|
|
2598
|
-
|
|
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;
|
|
2599
2609
|
break;
|
|
2600
2610
|
}
|
|
2601
2611
|
}
|
|
2602
|
-
|
|
2612
|
+
p.current = w, s(F), c(w);
|
|
2603
2613
|
},
|
|
2604
2614
|
[t]
|
|
2605
2615
|
), i = f(
|
|
2606
|
-
(
|
|
2607
|
-
if (!
|
|
2608
|
-
|
|
2616
|
+
(g) => {
|
|
2617
|
+
if (!g.over) {
|
|
2618
|
+
c(p.current);
|
|
2609
2619
|
return;
|
|
2610
2620
|
}
|
|
2611
|
-
const
|
|
2612
|
-
|
|
2621
|
+
const x = Se(t, g.over.id);
|
|
2622
|
+
c(x);
|
|
2613
2623
|
},
|
|
2614
2624
|
[t]
|
|
2615
|
-
),
|
|
2616
|
-
(
|
|
2617
|
-
const { active:
|
|
2618
|
-
|
|
2625
|
+
), l = f(
|
|
2626
|
+
(g) => {
|
|
2627
|
+
const { active: x, over: F } = g, w = () => {
|
|
2628
|
+
p.current = null, s(null), c(null);
|
|
2619
2629
|
};
|
|
2620
|
-
if (!
|
|
2621
|
-
|
|
2630
|
+
if (!F) {
|
|
2631
|
+
w();
|
|
2622
2632
|
return;
|
|
2623
2633
|
}
|
|
2624
|
-
const
|
|
2625
|
-
if (!
|
|
2626
|
-
|
|
2634
|
+
const S = be(t, x.id), _ = Se(t, F.id);
|
|
2635
|
+
if (!S || !_) {
|
|
2636
|
+
w();
|
|
2627
2637
|
return;
|
|
2628
2638
|
}
|
|
2629
|
-
let r = t.map((
|
|
2630
|
-
if (
|
|
2631
|
-
const
|
|
2632
|
-
r[
|
|
2633
|
-
...
|
|
2634
|
-
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)
|
|
2635
2645
|
};
|
|
2636
2646
|
} else {
|
|
2637
|
-
const
|
|
2638
|
-
if (!
|
|
2639
|
-
|
|
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);
|
|
2648
|
+
if (!T) {
|
|
2649
|
+
w();
|
|
2640
2650
|
return;
|
|
2641
2651
|
}
|
|
2642
|
-
const
|
|
2643
|
-
let
|
|
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];
|
|
2644
2654
|
if (k.maxItems !== void 0 && V.length >= k.maxItems) {
|
|
2645
|
-
const
|
|
2646
|
-
V = V.slice(0, k.maxItems - 1),
|
|
2655
|
+
const W = V[V.length - 1];
|
|
2656
|
+
V = V.slice(0, k.maxItems - 1), z = [...E, W];
|
|
2647
2657
|
}
|
|
2648
|
-
const
|
|
2649
|
-
...V.slice(0,
|
|
2650
|
-
|
|
2651
|
-
...V.slice(
|
|
2658
|
+
const U = Math.min(B, V.length), j = [
|
|
2659
|
+
...V.slice(0, U),
|
|
2660
|
+
T,
|
|
2661
|
+
...V.slice(U)
|
|
2652
2662
|
];
|
|
2653
|
-
r[
|
|
2663
|
+
r[d] = { ...N, items: z }, r[v] = { ...k, items: j };
|
|
2654
2664
|
}
|
|
2655
|
-
a(r), h.current?.(r),
|
|
2665
|
+
a(r), h.current?.(r), w();
|
|
2656
2666
|
},
|
|
2657
2667
|
[t]
|
|
2658
|
-
),
|
|
2659
|
-
(
|
|
2660
|
-
id:
|
|
2661
|
-
"data-zone-key":
|
|
2668
|
+
), b = f(
|
|
2669
|
+
(g) => ({
|
|
2670
|
+
id: g,
|
|
2671
|
+
"data-zone-key": g
|
|
2662
2672
|
}),
|
|
2663
2673
|
[]
|
|
2664
|
-
),
|
|
2665
|
-
(
|
|
2666
|
-
const
|
|
2674
|
+
), M = f(
|
|
2675
|
+
(g) => {
|
|
2676
|
+
const x = be(t, g.id) ?? "";
|
|
2667
2677
|
return {
|
|
2668
|
-
id:
|
|
2669
|
-
"data-item-id":
|
|
2670
|
-
"data-zone-key":
|
|
2678
|
+
id: g.id,
|
|
2679
|
+
"data-item-id": g.id,
|
|
2680
|
+
"data-zone-key": x
|
|
2671
2681
|
};
|
|
2672
2682
|
},
|
|
2673
2683
|
[t]
|
|
@@ -2676,15 +2686,15 @@ function jt(e) {
|
|
|
2676
2686
|
zones: t,
|
|
2677
2687
|
activeZone: o,
|
|
2678
2688
|
activeItem: n,
|
|
2679
|
-
getZoneProps:
|
|
2680
|
-
getItemProps:
|
|
2681
|
-
handleDragStart:
|
|
2689
|
+
getZoneProps: b,
|
|
2690
|
+
getItemProps: M,
|
|
2691
|
+
handleDragStart: C,
|
|
2682
2692
|
handleDragOver: i,
|
|
2683
|
-
handleDragEnd:
|
|
2693
|
+
handleDragEnd: l
|
|
2684
2694
|
};
|
|
2685
2695
|
}
|
|
2686
|
-
let
|
|
2687
|
-
const
|
|
2696
|
+
let te = null, se = null, me = !1;
|
|
2697
|
+
const Qt = [
|
|
2688
2698
|
"DndContext",
|
|
2689
2699
|
"DragOverlay",
|
|
2690
2700
|
"useSensors",
|
|
@@ -2693,22 +2703,22 @@ const Xt = [
|
|
|
2693
2703
|
"PointerSensor",
|
|
2694
2704
|
"KeyboardSensor",
|
|
2695
2705
|
"closestCenter"
|
|
2696
|
-
],
|
|
2706
|
+
], Jt = [
|
|
2697
2707
|
"SortableContext",
|
|
2698
2708
|
"useSortable",
|
|
2699
2709
|
"verticalListSortingStrategy"
|
|
2700
2710
|
];
|
|
2701
|
-
function
|
|
2711
|
+
function en(e, t) {
|
|
2702
2712
|
const a = [], n = e ?? {};
|
|
2703
|
-
for (const o of
|
|
2713
|
+
for (const o of Qt)
|
|
2704
2714
|
n[o] === void 0 && a.push(`@dnd-kit/core:${o}`);
|
|
2705
2715
|
const s = t ?? {};
|
|
2706
|
-
for (const o of
|
|
2716
|
+
for (const o of Jt)
|
|
2707
2717
|
s[o] === void 0 && a.push(`@dnd-kit/sortable:${o}`);
|
|
2708
2718
|
return a.length === 0 ? { ok: !0 } : { ok: !1, missing: a };
|
|
2709
2719
|
}
|
|
2710
|
-
function
|
|
2711
|
-
return
|
|
2720
|
+
function tn() {
|
|
2721
|
+
return te ? Promise.resolve(te) : me ? Promise.resolve(null) : se || (se = (async () => {
|
|
2712
2722
|
try {
|
|
2713
2723
|
const [e, t, a] = await Promise.all([
|
|
2714
2724
|
import("@dnd-kit/core"),
|
|
@@ -2716,410 +2726,410 @@ function en() {
|
|
|
2716
2726
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
2717
2727
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
2718
2728
|
), {}))
|
|
2719
|
-
]), n =
|
|
2720
|
-
return n.ok ? (
|
|
2729
|
+
]), n = en(e, t);
|
|
2730
|
+
return n.ok ? (te = {
|
|
2721
2731
|
core: e,
|
|
2722
2732
|
sortable: t,
|
|
2723
2733
|
utilities: a
|
|
2724
|
-
},
|
|
2734
|
+
}, te) : (me = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
2725
2735
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${n.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
2726
2736
|
), null);
|
|
2727
2737
|
} catch {
|
|
2728
2738
|
return me = !0, null;
|
|
2729
2739
|
}
|
|
2730
|
-
})(),
|
|
2740
|
+
})(), se);
|
|
2731
2741
|
}
|
|
2732
|
-
function
|
|
2733
|
-
const { zones: t, onZoneChange: a, renderZone: n, renderItem: s, renderDragOverlay: o } = e,
|
|
2734
|
-
return
|
|
2735
|
-
if (
|
|
2736
|
-
let
|
|
2737
|
-
return
|
|
2738
|
-
|
|
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);
|
|
2739
2749
|
}), () => {
|
|
2740
|
-
|
|
2750
|
+
m = !1;
|
|
2741
2751
|
};
|
|
2742
|
-
}, [
|
|
2743
|
-
|
|
2752
|
+
}, [p]), p ? /* @__PURE__ */ u(
|
|
2753
|
+
Oe,
|
|
2744
2754
|
{
|
|
2745
|
-
state:
|
|
2746
|
-
modules:
|
|
2755
|
+
state: c,
|
|
2756
|
+
modules: p,
|
|
2747
2757
|
renderZone: n,
|
|
2748
2758
|
renderItem: s,
|
|
2749
2759
|
renderDragOverlay: o
|
|
2750
2760
|
}
|
|
2751
|
-
) : /* @__PURE__ */
|
|
2752
|
-
const D =
|
|
2753
|
-
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);
|
|
2754
2764
|
}) });
|
|
2755
2765
|
}
|
|
2756
|
-
|
|
2757
|
-
function
|
|
2766
|
+
nn.displayName = "SortableZones";
|
|
2767
|
+
function Oe({
|
|
2758
2768
|
state: e,
|
|
2759
2769
|
modules: t,
|
|
2760
2770
|
renderZone: a,
|
|
2761
2771
|
renderItem: n,
|
|
2762
2772
|
renderDragOverlay: s
|
|
2763
2773
|
}) {
|
|
2764
|
-
const { core: o, sortable:
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
),
|
|
2768
|
-
return /* @__PURE__ */
|
|
2769
|
-
|
|
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,
|
|
2770
2780
|
{
|
|
2771
|
-
sensors:
|
|
2772
|
-
collisionDetection:
|
|
2781
|
+
sensors: F,
|
|
2782
|
+
collisionDetection: M,
|
|
2773
2783
|
onDragStart: e.handleDragStart,
|
|
2774
2784
|
onDragOver: e.handleDragOver,
|
|
2775
2785
|
onDragEnd: e.handleDragEnd,
|
|
2776
2786
|
children: [
|
|
2777
2787
|
e.zones.map((r) => {
|
|
2778
|
-
const
|
|
2779
|
-
|
|
2788
|
+
const d = r.items.map((N) => N.id), v = r.items.map((N) => /* @__PURE__ */ u(
|
|
2789
|
+
Ae,
|
|
2780
2790
|
{
|
|
2781
|
-
id:
|
|
2782
|
-
useSortable:
|
|
2783
|
-
cssHelper:
|
|
2784
|
-
children: n(
|
|
2791
|
+
id: N.id,
|
|
2792
|
+
useSortable: c.useSortable,
|
|
2793
|
+
cssHelper: p.CSS,
|
|
2794
|
+
children: n(N)
|
|
2785
2795
|
},
|
|
2786
|
-
|
|
2796
|
+
N.id
|
|
2787
2797
|
));
|
|
2788
|
-
return /* @__PURE__ */
|
|
2789
|
-
|
|
2798
|
+
return /* @__PURE__ */ u(
|
|
2799
|
+
Le,
|
|
2790
2800
|
{
|
|
2791
2801
|
zoneKey: r.zoneKey,
|
|
2792
2802
|
zoneProps: e.getZoneProps(r.zoneKey),
|
|
2793
2803
|
useDroppable: i,
|
|
2794
|
-
children: /* @__PURE__ */
|
|
2804
|
+
children: /* @__PURE__ */ u(_, { items: d, strategy: x, children: a(r.zoneKey, r.items, v) })
|
|
2795
2805
|
},
|
|
2796
2806
|
r.zoneKey
|
|
2797
2807
|
);
|
|
2798
2808
|
}),
|
|
2799
|
-
/* @__PURE__ */
|
|
2809
|
+
/* @__PURE__ */ u(S, { children: e.activeItem ? s?.(e.activeItem) ?? n(e.activeItem) : null })
|
|
2800
2810
|
]
|
|
2801
2811
|
}
|
|
2802
2812
|
);
|
|
2803
2813
|
}
|
|
2804
|
-
|
|
2805
|
-
function
|
|
2806
|
-
const { attributes: s, listeners: o, setNodeRef:
|
|
2807
|
-
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,
|
|
2808
2818
|
transition: h,
|
|
2809
|
-
opacity:
|
|
2819
|
+
opacity: m ? 0.5 : 1
|
|
2810
2820
|
};
|
|
2811
|
-
return /* @__PURE__ */
|
|
2821
|
+
return /* @__PURE__ */ u("div", { ref: c, style: D, "data-sortable-item-id": e, ...s, ...o, children: n });
|
|
2812
2822
|
}
|
|
2813
|
-
|
|
2814
|
-
function
|
|
2823
|
+
Ae.displayName = "SortableItem";
|
|
2824
|
+
function Le({
|
|
2815
2825
|
zoneKey: e,
|
|
2816
2826
|
zoneProps: t,
|
|
2817
2827
|
useDroppable: a,
|
|
2818
2828
|
children: n
|
|
2819
2829
|
}) {
|
|
2820
2830
|
const { setNodeRef: s, isOver: o } = a({ id: e });
|
|
2821
|
-
return /* @__PURE__ */
|
|
2831
|
+
return /* @__PURE__ */ u("div", { ref: s, "data-zone-is-over": o || void 0, ...t, children: n });
|
|
2822
2832
|
}
|
|
2823
|
-
|
|
2824
|
-
const
|
|
2833
|
+
Le.displayName = "ZoneDroppable";
|
|
2834
|
+
const an = G.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
|
|
2825
2835
|
const s = { ...a };
|
|
2826
|
-
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 }) });
|
|
2827
2837
|
});
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2830
|
-
const
|
|
2831
|
-
return delete
|
|
2832
|
-
e && /* @__PURE__ */
|
|
2833
|
-
t && /* @__PURE__ */
|
|
2834
|
-
/* @__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 })
|
|
2835
2845
|
] });
|
|
2836
2846
|
});
|
|
2837
|
-
|
|
2838
|
-
const
|
|
2847
|
+
rn.displayName = "ContainerFormSection";
|
|
2848
|
+
const sn = G.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
|
|
2839
2849
|
const s = { ...a };
|
|
2840
|
-
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 }) });
|
|
2841
2851
|
});
|
|
2842
|
-
|
|
2852
|
+
sn.displayName = "ContainerTable";
|
|
2843
2853
|
export {
|
|
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
|
-
|
|
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,
|
|
3013
3023
|
ve as UIContextProvider,
|
|
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
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
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
|
|
3125
3135
|
};
|