@mt-gloss/ui 0.1.27 → 0.1.28
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/{BaseAsyncButton-usdApZUY.js → BaseAsyncButton-DAeHnhMt.js} +10 -10
- package/{Expandable-D7_L8KoV.js → Expandable-alOxKG0x.js} +1 -1
- package/{UIContext-C3E-k7HI.js → UIContext-CDdyubSF.js} +59 -59
- package/catalog.js +4 -4
- package/index.js +1712 -1412
- package/internals.js +3 -3
- package/lib/primitives/dashboard/ExceptionListCard/ExceptionListCard.d.ts +31 -0
- package/lib/primitives/dashboard/ExceptionListCard/ExceptionListTilePreview.d.ts +2 -0
- package/lib/primitives/dashboard/ExceptionListCard/index.d.ts +3 -0
- package/lib/primitives/dashboard/LeaderboardCard/LeaderboardCard.d.ts +26 -0
- package/lib/primitives/dashboard/LeaderboardCard/LeaderboardTilePreview.d.ts +2 -0
- package/lib/primitives/dashboard/LeaderboardCard/index.d.ts +3 -0
- package/lib/primitives/dashboard/index.d.ts +3 -0
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { O as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { motion as
|
|
7
|
-
import { B as
|
|
8
|
-
import {
|
|
9
|
-
import { createPortal as
|
|
10
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
function
|
|
18
|
-
const { enabled: t = !0, returnTo: n } = e, a =
|
|
1
|
+
import { C as ut, P as mt } from "./Expandable-alOxKG0x.js";
|
|
2
|
+
import { O as vr, U as br, Q as yr, T as wr, a4 as _r, b7 as Nr, aA as Dr, ai as Cr, _ as kr, ao as xr, N as Sr, a9 as Rr, bn as Mr, a as Tr, B as Ir, b as Pr, A as Fr, K as Er, bi as Ar, J as Or, L as Lr, E as $r, D as Br, H as zr, F as Kr, bx as Wr, c as Gr, d as Vr, q as Hr, ae as Ur, aO as jr, A as Zr, K as qr, J as Yr, L as Qr, E as Xr, D as Jr, H as es, F as ts, b0 as as, b3 as ns, b2 as rs, b1 as ss, b4 as is, aD as os, a6 as ls, a5 as cs, ar as ds, m as us, o as ms, aG as gs, ac as ps, b9 as hs, aa as fs, bo as vs, Z as bs, bH as ys, bG as ws, bI as _s, aq as Ns, aR as Ds, bb as Cs, bM as ks, bv as xs, p as Ss, an as Rs, bB as Ms, bs as Ts, a1 as Is, as as Ps, a3 as Fs, bA as Es, G as As, f as Os, ab as Ls, bJ as $s, aU as Bs, t as zs, x as Ks, I as Ws, i as Gs, ax as Vs, bN as Hs, M as Us, y as js, V as Zs, Y as qs, W as Ys, X as Qs, at as Xs, bh as Js, bP as ei, bL as ti, ap as ai, w as ni, bp as ri, aT as si, ak as ii, aL as oi, ah as li, am as ci, av as di, aS as ui, ad as mi, au as gi, e as pi, R as hi, l as fi, r as vi, aI as bi, by as yi, bz as wi, aj as _i, af as Ni, j as Di, z as Ci, b8 as ki, ag as xi, bO as Si, bd as Ri, bg as Mi, be as Ti, bf as Ii, k as Pi, ba as Fi, bm as Ei, S as Ai, bk as Oi, bl as Li, aw as $i, bc as Bi, bQ as zi, al as Ki, v as Wi, bK as Gi, n as Vi, h as Hi, s as Ui, $ as ji, a0 as Zi, a8 as qi, bj as Yi, bw as Qi, bD as Xi, aB as Ji, aC as eo, a7 as to, aP as ao, aQ as no, aE as ro, aF as so, aH as io, aW as oo, aX as lo, bq as co, bF as uo, bE as mo, aZ as go, a_ as po, ay as ho, az as fo, b6 as vo, b5 as bo, a$ as yo, aM as wo, aN as _o, aY as No, aJ as Do, aK as Co, u as ko, bC as xo, br as So, bt as Ro, bu as Mo, aV as To, a2 as Io, g as Po } from "./Expandable-alOxKG0x.js";
|
|
3
|
+
import { jsxs as D, jsx as r, Fragment as te } from "react/jsx-runtime";
|
|
4
|
+
import * as gt from "react";
|
|
5
|
+
import H, { useRef as M, useEffect as L, useState as $, useCallback as w, forwardRef as pt, useMemo as ye, createContext as ht, useContext as ft } from "react";
|
|
6
|
+
import { motion as De, useMotionValue as vt, animate as We, useDragControls as bt } from "framer-motion";
|
|
7
|
+
import { B as yt, a as pe, b as Te, U as Oe } from "./UIContext-CDdyubSF.js";
|
|
8
|
+
import { c as Eo, u as Ao } from "./UIContext-CDdyubSF.js";
|
|
9
|
+
import { createPortal as wt } from "react-dom";
|
|
10
|
+
import { DEFAULT_MARKET_PRESETS as Lo, DEFAULT_PINNED as $o, PERIOD_OPTIONS as Bo, ROLLING_OPTIONS as zo, TODAY_PRESET as Ko, findPreset as Wo, formatDateRange as Go, formatMarketDates as Vo, formatTrend as Ho, formatValue as Uo, generateMarketId as jo, getAllPresets as Zo, getDateRangeForPreset as qo, getPresetLabel as Yo, isInRange as Qo, isMarketActive as Xo, isSameDay as Jo, normalizePresetId as el, toUppercasePresetId as tl } from "@mt-gloss/utils";
|
|
11
|
+
import _t from "@mui/icons-material/AccessTime";
|
|
12
|
+
import Nt from "@mui/icons-material/Tune";
|
|
13
|
+
import Dt from "@mui/icons-material/ViewColumn";
|
|
14
|
+
import Ct from "@mui/icons-material/AspectRatio";
|
|
15
|
+
import kt from "@mui/icons-material/Palette";
|
|
16
|
+
import xt from "@mui/icons-material/PushPin";
|
|
17
|
+
function sn(e = {}) {
|
|
18
|
+
const { enabled: t = !0, returnTo: n } = e, a = M(null);
|
|
19
19
|
return L(() => {
|
|
20
20
|
t && (a.current = n || document.activeElement);
|
|
21
21
|
}, [t, n]), L(() => () => {
|
|
@@ -24,138 +24,138 @@ function Va(e = {}) {
|
|
|
24
24
|
}, 0);
|
|
25
25
|
}, [t]), a;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function on(e) {
|
|
28
28
|
const {
|
|
29
29
|
items: t,
|
|
30
30
|
activeIndex: n,
|
|
31
31
|
onActiveIndexChange: a,
|
|
32
|
-
loop:
|
|
33
|
-
orientation:
|
|
32
|
+
loop: s = !0,
|
|
33
|
+
orientation: i = "vertical",
|
|
34
34
|
enabled: o = !0,
|
|
35
35
|
isItemDisabled: l,
|
|
36
36
|
onSelect: m,
|
|
37
|
-
onEscape:
|
|
38
|
-
} = e, [
|
|
37
|
+
onEscape: d
|
|
38
|
+
} = e, [g, f] = $(-1), u = n !== void 0 ? n : g, p = w(
|
|
39
39
|
(c) => {
|
|
40
|
-
n === void 0 &&
|
|
40
|
+
n === void 0 && f(c), a?.(c);
|
|
41
41
|
},
|
|
42
42
|
[n, a]
|
|
43
|
-
),
|
|
44
|
-
(c,
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const S =
|
|
43
|
+
), N = w(() => t.map((c, v) => ({ item: c, index: v })).filter(({ item: c, index: v }) => !l?.(c, v)).map(({ index: c }) => c), [t, l]), y = w(
|
|
44
|
+
(c, v) => {
|
|
45
|
+
const _ = N();
|
|
46
|
+
if (_.length === 0) return -1;
|
|
47
|
+
const S = _.indexOf(c);
|
|
48
48
|
if (S === -1)
|
|
49
|
-
return
|
|
50
|
-
let
|
|
51
|
-
return
|
|
49
|
+
return v === 1 ? _.find((x) => x > c) ?? (s ? _[0] : -1) : [..._].reverse().find((F) => F < c) ?? (s ? _[_.length - 1] : -1);
|
|
50
|
+
let b = S + v;
|
|
51
|
+
return s ? b = (b + _.length) % _.length : b = Math.max(0, Math.min(_.length - 1, b)), _[b];
|
|
52
52
|
},
|
|
53
|
-
[
|
|
54
|
-
),
|
|
55
|
-
const c =
|
|
56
|
-
c.length > 0 &&
|
|
57
|
-
}, [
|
|
58
|
-
const c =
|
|
59
|
-
c.length > 0 &&
|
|
60
|
-
}, [
|
|
61
|
-
const c = y(
|
|
62
|
-
c !== -1 &&
|
|
63
|
-
}, [
|
|
64
|
-
const c = y(
|
|
65
|
-
c !== -1 &&
|
|
66
|
-
}, [
|
|
67
|
-
|
|
68
|
-
}, [
|
|
53
|
+
[N, s]
|
|
54
|
+
), h = w(() => {
|
|
55
|
+
const c = N();
|
|
56
|
+
c.length > 0 && p(c[0]);
|
|
57
|
+
}, [N, p]), R = w(() => {
|
|
58
|
+
const c = N();
|
|
59
|
+
c.length > 0 && p(c[c.length - 1]);
|
|
60
|
+
}, [N, p]), P = w(() => {
|
|
61
|
+
const c = y(u, 1);
|
|
62
|
+
c !== -1 && p(c);
|
|
63
|
+
}, [u, y, p]), k = w(() => {
|
|
64
|
+
const c = y(u, -1);
|
|
65
|
+
c !== -1 && p(c);
|
|
66
|
+
}, [u, y, p]), T = w(() => {
|
|
67
|
+
p(-1);
|
|
68
|
+
}, [p]), I = w(
|
|
69
69
|
(c) => {
|
|
70
70
|
if (!o) return;
|
|
71
|
-
const { key:
|
|
72
|
-
if (
|
|
73
|
-
c.preventDefault(),
|
|
71
|
+
const { key: v } = c, _ = v === "ArrowUp" && (i === "vertical" || i === "both"), S = v === "ArrowDown" && (i === "vertical" || i === "both"), b = v === "ArrowLeft" && (i === "horizontal" || i === "both"), x = v === "ArrowRight" && (i === "horizontal" || i === "both");
|
|
72
|
+
if (_ || b) {
|
|
73
|
+
c.preventDefault(), u === -1 ? R() : k();
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
if (S || x) {
|
|
77
|
-
c.preventDefault(),
|
|
77
|
+
c.preventDefault(), u === -1 ? h() : P();
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
if (
|
|
81
|
-
c.preventDefault(),
|
|
80
|
+
if (v === "Home") {
|
|
81
|
+
c.preventDefault(), h();
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
c.preventDefault(),
|
|
84
|
+
if (v === "End") {
|
|
85
|
+
c.preventDefault(), R();
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
|
-
if ((
|
|
88
|
+
if ((v === "Enter" || v === " ") && u >= 0 && u < t.length) {
|
|
89
89
|
c.preventDefault();
|
|
90
|
-
const F = t[
|
|
91
|
-
l?.(F,
|
|
90
|
+
const F = t[u];
|
|
91
|
+
l?.(F, u) || m?.(F, u);
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
if (
|
|
95
|
-
|
|
94
|
+
if (v === "Escape") {
|
|
95
|
+
d?.();
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
[
|
|
100
100
|
o,
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
i,
|
|
102
|
+
u,
|
|
103
103
|
t,
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
h,
|
|
105
|
+
R,
|
|
106
106
|
P,
|
|
107
|
-
|
|
107
|
+
k,
|
|
108
108
|
l,
|
|
109
109
|
m,
|
|
110
|
-
|
|
110
|
+
d
|
|
111
111
|
]
|
|
112
112
|
);
|
|
113
113
|
return {
|
|
114
|
-
focusedIndex:
|
|
115
|
-
setFocusedIndex:
|
|
114
|
+
focusedIndex: u,
|
|
115
|
+
setFocusedIndex: p,
|
|
116
116
|
handleKeyDown: I,
|
|
117
|
-
focusFirst:
|
|
118
|
-
focusLast:
|
|
117
|
+
focusFirst: h,
|
|
118
|
+
focusLast: R,
|
|
119
119
|
focusNext: P,
|
|
120
|
-
focusPrevious:
|
|
121
|
-
resetFocus:
|
|
120
|
+
focusPrevious: k,
|
|
121
|
+
resetFocus: T
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const St = ({
|
|
125
125
|
label: e = "Set a target",
|
|
126
126
|
unit: t,
|
|
127
127
|
currentValue: n,
|
|
128
128
|
onConfirm: a,
|
|
129
|
-
onSkip:
|
|
130
|
-
hint:
|
|
129
|
+
onSkip: s,
|
|
130
|
+
hint: i
|
|
131
131
|
}) => {
|
|
132
132
|
const [o, l] = $(n != null ? String(n) : ""), m = () => {
|
|
133
|
-
const
|
|
134
|
-
Number.isNaN(
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
133
|
+
const u = parseFloat(o);
|
|
134
|
+
Number.isNaN(u) || a(u);
|
|
135
|
+
}, d = (u) => {
|
|
136
|
+
u.key === "Enter" ? (u.preventDefault(), m()) : u.key === "Escape" && (u.preventDefault(), s?.());
|
|
137
|
+
}, g = "gloss-target-input-field", f = i ? "gloss-target-input-hint" : void 0;
|
|
138
|
+
return /* @__PURE__ */ D("div", { className: "gloss-target-input", children: [
|
|
139
|
+
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: g, children: e }),
|
|
140
|
+
/* @__PURE__ */ D("div", { className: "gloss-target-input__field-row", children: [
|
|
141
|
+
/* @__PURE__ */ r(
|
|
142
142
|
"input",
|
|
143
143
|
{
|
|
144
|
-
id:
|
|
144
|
+
id: g,
|
|
145
145
|
type: "number",
|
|
146
146
|
className: "gloss-target-input__field",
|
|
147
147
|
value: o,
|
|
148
|
-
onChange: (
|
|
149
|
-
onKeyDown:
|
|
150
|
-
"aria-describedby":
|
|
148
|
+
onChange: (u) => l(u.target.value),
|
|
149
|
+
onKeyDown: d,
|
|
150
|
+
"aria-describedby": f,
|
|
151
151
|
autoFocus: !0
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
|
-
t && /* @__PURE__ */
|
|
154
|
+
t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
|
|
155
155
|
] }),
|
|
156
|
-
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
156
|
+
i && /* @__PURE__ */ r("p", { id: f, className: "gloss-target-input__hint", children: i }),
|
|
157
|
+
/* @__PURE__ */ D("div", { className: "gloss-target-input__actions", children: [
|
|
158
|
+
/* @__PURE__ */ r(
|
|
159
159
|
"button",
|
|
160
160
|
{
|
|
161
161
|
type: "button",
|
|
@@ -164,54 +164,54 @@ const wt = ({
|
|
|
164
164
|
children: "Confirm"
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
|
-
|
|
167
|
+
s && /* @__PURE__ */ r(
|
|
168
168
|
"button",
|
|
169
169
|
{
|
|
170
170
|
type: "button",
|
|
171
171
|
className: "gloss-target-input__skip",
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: s,
|
|
173
173
|
children: "Skip"
|
|
174
174
|
}
|
|
175
175
|
)
|
|
176
176
|
] })
|
|
177
177
|
] });
|
|
178
|
-
},
|
|
179
|
-
},
|
|
178
|
+
}, Ce = (e) => {
|
|
179
|
+
}, Rt = {
|
|
180
180
|
id: "entity-filter-1",
|
|
181
181
|
label: "Customer: Acme Corp",
|
|
182
182
|
field: "customer",
|
|
183
183
|
value: "acme-corp-123",
|
|
184
|
-
onRemove:
|
|
185
|
-
},
|
|
184
|
+
onRemove: Ce
|
|
185
|
+
}, Mt = {
|
|
186
186
|
id: "status-filter-1",
|
|
187
187
|
label: "Status: Open",
|
|
188
188
|
field: "status",
|
|
189
189
|
value: "open",
|
|
190
|
-
onRemove:
|
|
191
|
-
},
|
|
190
|
+
onRemove: Ce
|
|
191
|
+
}, Tt = {
|
|
192
192
|
id: "date-filter-1",
|
|
193
193
|
label: "Date: Mar 1 - Mar 15",
|
|
194
194
|
field: "dateRange",
|
|
195
195
|
value: "2026-03-01..2026-03-15",
|
|
196
|
-
onRemove:
|
|
197
|
-
},
|
|
196
|
+
onRemove: Ce
|
|
197
|
+
}, It = {
|
|
198
198
|
id: "mfg-filter-1",
|
|
199
199
|
label: "Manufacturer: Widget Co",
|
|
200
200
|
field: "manufacturer",
|
|
201
201
|
value: "widget-co-456",
|
|
202
|
-
onRemove:
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
202
|
+
onRemove: Ce
|
|
203
|
+
}, ln = [
|
|
204
|
+
Rt,
|
|
205
|
+
Mt,
|
|
206
|
+
Tt,
|
|
207
|
+
It
|
|
208
|
+
], cn = {
|
|
209
209
|
id: "metric-toggle",
|
|
210
210
|
tabs: [
|
|
211
211
|
{ id: "$", label: "$", mono: !0 },
|
|
212
212
|
{ id: "#", label: "#", mono: !0 }
|
|
213
213
|
]
|
|
214
|
-
},
|
|
214
|
+
}, dn = {
|
|
215
215
|
id: "entity-type",
|
|
216
216
|
tabs: [
|
|
217
217
|
{ id: "orders", label: "Orders" },
|
|
@@ -219,7 +219,7 @@ const wt = ({
|
|
|
219
219
|
{ id: "customers", label: "Customers" },
|
|
220
220
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
221
221
|
]
|
|
222
|
-
},
|
|
222
|
+
}, un = {
|
|
223
223
|
id: "time-frame",
|
|
224
224
|
tabs: [
|
|
225
225
|
{ id: "MTD", label: "MTD" },
|
|
@@ -227,30 +227,30 @@ const wt = ({
|
|
|
227
227
|
{ id: "YTD", label: "YTD" },
|
|
228
228
|
{ id: "LYTD", label: "LYTD" }
|
|
229
229
|
]
|
|
230
|
-
},
|
|
230
|
+
}, mn = [
|
|
231
231
|
{ variant: "block", width: "100%", height: 16 },
|
|
232
232
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
233
233
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
234
234
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
235
|
-
],
|
|
235
|
+
], gn = [
|
|
236
236
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
237
237
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
238
238
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
239
|
-
],
|
|
239
|
+
], pn = [
|
|
240
240
|
{ variant: "circle", size: 24 },
|
|
241
241
|
{ variant: "circle", size: 40 },
|
|
242
242
|
{ variant: "circle", size: 64 }
|
|
243
|
-
],
|
|
243
|
+
], hn = [
|
|
244
244
|
{ bars: 10, maxHeight: 120 },
|
|
245
245
|
{ bars: 5, maxHeight: 80 }
|
|
246
|
-
],
|
|
246
|
+
], fn = [
|
|
247
247
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
248
248
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
249
|
-
],
|
|
249
|
+
], vn = [
|
|
250
250
|
{ variant: "value", colSpan: 1 },
|
|
251
251
|
{ variant: "trend", colSpan: 2 },
|
|
252
252
|
{ variant: "target", colSpan: 1 }
|
|
253
|
-
],
|
|
253
|
+
], Ge = {
|
|
254
254
|
position: "fixed",
|
|
255
255
|
zIndex: 9999,
|
|
256
256
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -262,7 +262,7 @@ const wt = ({
|
|
|
262
262
|
minWidth: 148,
|
|
263
263
|
paddingTop: 4,
|
|
264
264
|
paddingBottom: 4
|
|
265
|
-
},
|
|
265
|
+
}, Ie = (e) => ({
|
|
266
266
|
padding: "6px 12px",
|
|
267
267
|
fontSize: 12,
|
|
268
268
|
lineHeight: 1.4,
|
|
@@ -276,60 +276,60 @@ const wt = ({
|
|
|
276
276
|
width: "100%",
|
|
277
277
|
textAlign: "left",
|
|
278
278
|
border: "none"
|
|
279
|
-
}),
|
|
280
|
-
...
|
|
279
|
+
}), Pt = (e) => ({
|
|
280
|
+
...Ie(e),
|
|
281
281
|
color: e ? "#4338ca" : "#4f46e5",
|
|
282
282
|
fontWeight: 600
|
|
283
|
-
}),
|
|
283
|
+
}), Ft = {
|
|
284
284
|
height: 1,
|
|
285
285
|
background: "rgba(0,0,0,0.06)",
|
|
286
286
|
margin: "3px 10px"
|
|
287
287
|
};
|
|
288
|
-
function
|
|
288
|
+
function Et({
|
|
289
289
|
open: e,
|
|
290
290
|
anchorEl: t,
|
|
291
291
|
statusId: n,
|
|
292
292
|
onOpenInTable: a,
|
|
293
|
-
onShowOnGraph:
|
|
294
|
-
overflowActions:
|
|
293
|
+
onShowOnGraph: s,
|
|
294
|
+
overflowActions: i,
|
|
295
295
|
onClose: o
|
|
296
296
|
}) {
|
|
297
|
-
const [l, m] = $(null),
|
|
298
|
-
if (!t) return { ...
|
|
299
|
-
const
|
|
297
|
+
const [l, m] = $(null), d = M(null), g = w(() => {
|
|
298
|
+
if (!t) return { ...Ge, top: 0, left: 0 };
|
|
299
|
+
const p = t.getBoundingClientRect();
|
|
300
300
|
return {
|
|
301
|
-
...
|
|
302
|
-
top:
|
|
303
|
-
left:
|
|
301
|
+
...Ge,
|
|
302
|
+
top: p.bottom + 4,
|
|
303
|
+
left: p.left
|
|
304
304
|
};
|
|
305
305
|
}, [t]);
|
|
306
306
|
if (L(() => {
|
|
307
307
|
if (!e) return;
|
|
308
|
-
const
|
|
309
|
-
|
|
308
|
+
const p = (N) => {
|
|
309
|
+
N.key === "Escape" && o();
|
|
310
310
|
};
|
|
311
|
-
return document.addEventListener("keydown",
|
|
311
|
+
return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
|
|
312
312
|
}, [e, o]), L(() => {
|
|
313
313
|
if (!e) return;
|
|
314
|
-
const
|
|
315
|
-
|
|
314
|
+
const p = (N) => {
|
|
315
|
+
d.current && !d.current.contains(N.target) && o();
|
|
316
316
|
};
|
|
317
|
-
return document.addEventListener("pointerdown",
|
|
317
|
+
return document.addEventListener("pointerdown", p, !0), () => document.removeEventListener("pointerdown", p, !0);
|
|
318
318
|
}, [e, o]), !e) return null;
|
|
319
|
-
const
|
|
319
|
+
const f = i && i.length > 0, u = /* @__PURE__ */ D(
|
|
320
320
|
"div",
|
|
321
321
|
{
|
|
322
|
-
ref:
|
|
322
|
+
ref: d,
|
|
323
323
|
"data-status-chip-menu": n,
|
|
324
324
|
role: "menu",
|
|
325
325
|
"aria-label": "Status actions",
|
|
326
|
-
style:
|
|
326
|
+
style: g(),
|
|
327
327
|
children: [
|
|
328
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ r(
|
|
329
329
|
"button",
|
|
330
330
|
{
|
|
331
331
|
role: "menuitem",
|
|
332
|
-
style:
|
|
332
|
+
style: Pt(l === "__primary"),
|
|
333
333
|
onMouseEnter: () => m("__primary"),
|
|
334
334
|
onMouseLeave: () => m(null),
|
|
335
335
|
onClick: () => {
|
|
@@ -338,64 +338,64 @@ function St({
|
|
|
338
338
|
children: "Open in table"
|
|
339
339
|
}
|
|
340
340
|
),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ r(
|
|
342
342
|
"button",
|
|
343
343
|
{
|
|
344
344
|
role: "menuitem",
|
|
345
|
-
style:
|
|
345
|
+
style: Ie(l === "__graph"),
|
|
346
346
|
onMouseEnter: () => m("__graph"),
|
|
347
347
|
onMouseLeave: () => m(null),
|
|
348
348
|
onClick: () => {
|
|
349
|
-
|
|
349
|
+
s(n), o();
|
|
350
350
|
},
|
|
351
351
|
children: "Show on graph"
|
|
352
352
|
}
|
|
353
353
|
),
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
f && /* @__PURE__ */ r("div", { style: Ft }),
|
|
355
|
+
f && i?.map((p) => /* @__PURE__ */ r(
|
|
356
356
|
"button",
|
|
357
357
|
{
|
|
358
358
|
role: "menuitem",
|
|
359
|
-
style:
|
|
360
|
-
onMouseEnter: () => m(
|
|
359
|
+
style: Ie(l === p.id),
|
|
360
|
+
onMouseEnter: () => m(p.id),
|
|
361
361
|
onMouseLeave: () => m(null),
|
|
362
362
|
onClick: () => {
|
|
363
|
-
|
|
363
|
+
p.onSelect(n), o();
|
|
364
364
|
},
|
|
365
|
-
children:
|
|
365
|
+
children: p.label
|
|
366
366
|
},
|
|
367
|
-
|
|
367
|
+
p.id
|
|
368
368
|
))
|
|
369
369
|
]
|
|
370
370
|
}
|
|
371
371
|
);
|
|
372
|
-
return
|
|
372
|
+
return wt(u, document.body);
|
|
373
373
|
}
|
|
374
|
-
|
|
375
|
-
const
|
|
374
|
+
Et.displayName = "StatusSlotChipMenu";
|
|
375
|
+
const bn = {
|
|
376
376
|
forwardStaggerMs: 50,
|
|
377
377
|
reverseStaggerMs: 30,
|
|
378
378
|
springStiffness: 380,
|
|
379
379
|
springDamping: 32,
|
|
380
380
|
reverseVelocityMultiplier: 1.4
|
|
381
|
-
},
|
|
381
|
+
}, me = {
|
|
382
382
|
enterDurationMs: 220,
|
|
383
383
|
exitDurationMs: 140,
|
|
384
384
|
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
385
385
|
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
386
386
|
translateOffsetPx: 8
|
|
387
|
-
},
|
|
387
|
+
}, yn = {
|
|
388
388
|
shiverCycles: 3,
|
|
389
389
|
shiverAmplitudePx: 2,
|
|
390
390
|
shiverDurationMs: 180,
|
|
391
391
|
validCellOpacity: 0.6
|
|
392
|
-
},
|
|
392
|
+
}, wn = {
|
|
393
393
|
materializeMs: 180,
|
|
394
394
|
dematerializeMs: 140,
|
|
395
395
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
396
396
|
dotStrokePx: 2,
|
|
397
397
|
dividerDashGapPx: 4
|
|
398
|
-
},
|
|
398
|
+
}, _n = {
|
|
399
399
|
cascadeStaggerMs: 0,
|
|
400
400
|
cascadeSpringCapMs: 120,
|
|
401
401
|
swingEnterMs: 100,
|
|
@@ -404,7 +404,7 @@ const nn = {
|
|
|
404
404
|
provisionalStyle: "opacity",
|
|
405
405
|
shiverMs: 200,
|
|
406
406
|
shiverStyle: "color-flash"
|
|
407
|
-
},
|
|
407
|
+
}, Nn = !0, Dn = {
|
|
408
408
|
rejectionFill: "var(--gloss-rejection-fill)",
|
|
409
409
|
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
410
410
|
validFill: "var(--gloss-valid-fill)",
|
|
@@ -412,7 +412,7 @@ const nn = {
|
|
|
412
412
|
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
413
413
|
provisionalWash: "var(--gloss-provisional-wash)"
|
|
414
414
|
};
|
|
415
|
-
function
|
|
415
|
+
function Cn() {
|
|
416
416
|
if (typeof window > "u") return "full";
|
|
417
417
|
try {
|
|
418
418
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
@@ -420,81 +420,81 @@ function dn() {
|
|
|
420
420
|
return "full";
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
const
|
|
425
|
-
"--gloss-swing-enter-ms": `${
|
|
426
|
-
"--gloss-swing-exit-ms": `${
|
|
427
|
-
"--gloss-swing-offset": `${
|
|
428
|
-
"--gloss-swing-enter-easing":
|
|
429
|
-
"--gloss-swing-exit-easing":
|
|
423
|
+
const Ze = ({ visible: e, variant: t, trigger: n, children: a, className: s }) => {
|
|
424
|
+
const i = {
|
|
425
|
+
"--gloss-swing-enter-ms": `${me.enterDurationMs}ms`,
|
|
426
|
+
"--gloss-swing-exit-ms": `${me.exitDurationMs}ms`,
|
|
427
|
+
"--gloss-swing-offset": `${me.translateOffsetPx}px`,
|
|
428
|
+
"--gloss-swing-enter-easing": me.enterEasing,
|
|
429
|
+
"--gloss-swing-exit-easing": me.exitEasing
|
|
430
430
|
}, o = [
|
|
431
431
|
"gloss-swing-reveal",
|
|
432
432
|
`gloss-swing-reveal--${t}`,
|
|
433
433
|
n === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
|
|
434
|
-
|
|
434
|
+
s ?? ""
|
|
435
435
|
].filter(Boolean).join(" ");
|
|
436
|
-
return /* @__PURE__ */
|
|
436
|
+
return /* @__PURE__ */ r(
|
|
437
437
|
"span",
|
|
438
438
|
{
|
|
439
439
|
"data-testid": "gloss-swing-reveal",
|
|
440
440
|
"data-variant": t,
|
|
441
441
|
"data-visible": e ? "true" : "false",
|
|
442
442
|
className: o,
|
|
443
|
-
style:
|
|
443
|
+
style: i,
|
|
444
444
|
children: a
|
|
445
445
|
}
|
|
446
446
|
);
|
|
447
|
-
},
|
|
448
|
-
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter:
|
|
449
|
-
const
|
|
447
|
+
}, At = pt(
|
|
448
|
+
function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: s, onPointerLeave: i, onKeyboardStep: o, onLostPointerCapture: l, edge: m = "right", ariaLabel: d = "Resize card" }, g) {
|
|
449
|
+
const f = t === "handle-visible" || t === "dragging" || t === "settling", u = (y) => {
|
|
450
450
|
try {
|
|
451
451
|
y.currentTarget.setPointerCapture(y.pointerId);
|
|
452
452
|
} catch {
|
|
453
453
|
}
|
|
454
454
|
n(y);
|
|
455
|
-
},
|
|
455
|
+
}, p = (y) => {
|
|
456
456
|
try {
|
|
457
457
|
y.currentTarget.hasPointerCapture?.(y.pointerId) && y.currentTarget.releasePointerCapture(y.pointerId);
|
|
458
458
|
} catch {
|
|
459
459
|
}
|
|
460
460
|
a(y);
|
|
461
|
-
},
|
|
462
|
-
!
|
|
461
|
+
}, N = (y) => {
|
|
462
|
+
!f || !o || (y.key === "ArrowRight" ? (y.preventDefault(), o("grow")) : y.key === "ArrowLeft" && (y.preventDefault(), o("shrink")));
|
|
463
463
|
};
|
|
464
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ r(Ze, { visible: f, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
|
|
465
465
|
"button",
|
|
466
466
|
{
|
|
467
|
-
ref:
|
|
467
|
+
ref: g,
|
|
468
468
|
type: "button",
|
|
469
|
-
"aria-label":
|
|
469
|
+
"aria-label": d,
|
|
470
470
|
"data-edge": m,
|
|
471
471
|
"data-resize-state": t,
|
|
472
472
|
className: [
|
|
473
473
|
"gloss-edge-handle",
|
|
474
474
|
`gloss-edge-handle--${m}`,
|
|
475
|
-
|
|
475
|
+
f ? "gloss-edge-handle--visible" : ""
|
|
476
476
|
].filter(Boolean).join(" "),
|
|
477
|
-
onPointerDown:
|
|
478
|
-
onPointerUp:
|
|
479
|
-
onPointerEnter:
|
|
480
|
-
onPointerLeave:
|
|
477
|
+
onPointerDown: u,
|
|
478
|
+
onPointerUp: p,
|
|
479
|
+
onPointerEnter: s,
|
|
480
|
+
onPointerLeave: i,
|
|
481
481
|
onLostPointerCapture: l,
|
|
482
|
-
onKeyDown:
|
|
483
|
-
tabIndex:
|
|
482
|
+
onKeyDown: N,
|
|
483
|
+
tabIndex: f ? 0 : -1
|
|
484
484
|
}
|
|
485
485
|
) });
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
|
-
|
|
489
|
-
function
|
|
488
|
+
At.displayName = "EdgeHoverHandle";
|
|
489
|
+
function Ot({
|
|
490
490
|
visible: e,
|
|
491
491
|
targetColSpan: t,
|
|
492
492
|
ghostWidth: n,
|
|
493
493
|
enterMs: a = 180,
|
|
494
|
-
exitMs:
|
|
494
|
+
exitMs: s = 120
|
|
495
495
|
}) {
|
|
496
|
-
return /* @__PURE__ */
|
|
497
|
-
|
|
496
|
+
return /* @__PURE__ */ r(
|
|
497
|
+
De.div,
|
|
498
498
|
{
|
|
499
499
|
"aria-hidden": "true",
|
|
500
500
|
"data-ghost-preview": e ? "visible" : "hidden",
|
|
@@ -505,13 +505,13 @@ function Tt({
|
|
|
505
505
|
].filter(Boolean).join(" "),
|
|
506
506
|
style: {
|
|
507
507
|
width: n,
|
|
508
|
-
transitionDuration: `${e ? a :
|
|
508
|
+
transitionDuration: `${e ? a : s}ms`
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
);
|
|
512
512
|
}
|
|
513
|
-
|
|
514
|
-
class
|
|
513
|
+
Ot.displayName = "GhostPreview";
|
|
514
|
+
class Lt {
|
|
515
515
|
constructor() {
|
|
516
516
|
this.samples = [], this.capacity = 3;
|
|
517
517
|
}
|
|
@@ -549,14 +549,14 @@ class Rt {
|
|
|
549
549
|
const t = this.samples.length;
|
|
550
550
|
if (t < 2) return 0;
|
|
551
551
|
if (t === 2) {
|
|
552
|
-
const [m,
|
|
553
|
-
return (
|
|
552
|
+
const [m, d] = this.samples, g = Math.max(1, d.t - m.t);
|
|
553
|
+
return (d.x - m.x) / g * 1e3;
|
|
554
554
|
}
|
|
555
|
-
const [n, a,
|
|
556
|
-
return (
|
|
555
|
+
const [n, a, s] = this.samples, i = (s.x - a.x) / Math.max(1, s.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
|
|
556
|
+
return (i * 3 + o * 2 + l * 1) / 6;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const qe = {
|
|
560
560
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
561
561
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
562
562
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -576,232 +576,232 @@ const We = {
|
|
|
576
576
|
// Velocity multiplier (D-03b panel)
|
|
577
577
|
velocityMultiplier: 1
|
|
578
578
|
};
|
|
579
|
-
function
|
|
579
|
+
function kn({
|
|
580
580
|
currentColSpan: e,
|
|
581
581
|
stackable: t,
|
|
582
582
|
onResize: n,
|
|
583
583
|
onCancel: a,
|
|
584
|
-
step:
|
|
585
|
-
gap:
|
|
584
|
+
step: s = 180,
|
|
585
|
+
gap: i = 0,
|
|
586
586
|
tuning: o,
|
|
587
587
|
dwellMs: l = 60,
|
|
588
588
|
graceExitMs: m = 150,
|
|
589
|
-
enterMs:
|
|
590
|
-
exitMs:
|
|
591
|
-
maxColSpan:
|
|
592
|
-
containerRef:
|
|
593
|
-
forceIdle:
|
|
589
|
+
enterMs: d = 180,
|
|
590
|
+
exitMs: g = 120,
|
|
591
|
+
maxColSpan: f = 3,
|
|
592
|
+
containerRef: u,
|
|
593
|
+
forceIdle: p
|
|
594
594
|
}) {
|
|
595
|
-
const [
|
|
595
|
+
const [N, y] = $("idle"), [h, R] = $(e), P = M(null), k = M(null), T = M(null), I = M(null), c = M(s), v = M(i), _ = M(f), S = M(0), b = M("idle");
|
|
596
596
|
L(() => {
|
|
597
|
-
|
|
598
|
-
}, [
|
|
599
|
-
const x =
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
597
|
+
b.current = N;
|
|
598
|
+
}, [N]);
|
|
599
|
+
const x = vt(0), F = M(null), U = w(() => {
|
|
600
|
+
const C = F.current;
|
|
601
|
+
if (C) {
|
|
602
602
|
try {
|
|
603
|
-
|
|
603
|
+
C.stop();
|
|
604
604
|
} catch {
|
|
605
605
|
}
|
|
606
606
|
F.current = null;
|
|
607
607
|
}
|
|
608
608
|
}, []), q = w(
|
|
609
|
-
(
|
|
610
|
-
const E = c.current, A =
|
|
611
|
-
return
|
|
609
|
+
(C) => {
|
|
610
|
+
const E = c.current, A = v.current;
|
|
611
|
+
return C * E + (C - 1) * A;
|
|
612
612
|
},
|
|
613
613
|
[]
|
|
614
|
-
), j =
|
|
614
|
+
), j = M(new Lt()), G = M(e);
|
|
615
615
|
L(() => {
|
|
616
|
-
|
|
617
|
-
}, [
|
|
618
|
-
const B =
|
|
616
|
+
G.current = h;
|
|
617
|
+
}, [h]);
|
|
618
|
+
const B = ye(() => ({ ...qe, ...o ?? {} }), [o]), Z = w(() => {
|
|
619
619
|
P.current && (clearTimeout(P.current), P.current = null);
|
|
620
620
|
}, []), O = w(() => {
|
|
621
|
-
|
|
622
|
-
}, []),
|
|
623
|
-
|
|
621
|
+
k.current && (clearTimeout(k.current), k.current = null);
|
|
622
|
+
}, []), J = w(() => {
|
|
623
|
+
T.current && (clearTimeout(T.current), T.current = null);
|
|
624
624
|
}, []);
|
|
625
625
|
L(() => {
|
|
626
|
-
|
|
627
|
-
}, [
|
|
628
|
-
const
|
|
629
|
-
O(), y((
|
|
630
|
-
}, [l, O]),
|
|
626
|
+
p && (b.current === "dragging" || b.current === "settling" || (Z(), O(), J(), b.current = "idle", y("idle")));
|
|
627
|
+
}, [p, Z, O, J]);
|
|
628
|
+
const Le = w(() => {
|
|
629
|
+
O(), y((C) => C === "settling" || C !== "idle" ? C : (P.current = setTimeout(() => y("handle-visible"), l), "dwelling"));
|
|
630
|
+
}, [l, O]), $e = w(() => {
|
|
631
631
|
Z();
|
|
632
|
-
const
|
|
633
|
-
|
|
634
|
-
|
|
632
|
+
const C = b.current;
|
|
633
|
+
C !== "dwelling" && C !== "handle-visible" || (k.current = setTimeout(() => {
|
|
634
|
+
b.current = "idle", y("idle");
|
|
635
635
|
}, m));
|
|
636
|
-
}, [Z, m]),
|
|
637
|
-
(
|
|
638
|
-
const
|
|
636
|
+
}, [Z, m]), oe = w(
|
|
637
|
+
(C, E, A) => {
|
|
638
|
+
const z = c.current, ee = z * B.snapInFraction, Y = z * B.snapOutFraction, K = E - A, V = Math.max(
|
|
639
639
|
A,
|
|
640
|
-
|
|
640
|
+
_.current ?? f
|
|
641
641
|
);
|
|
642
|
-
let
|
|
643
|
-
for (; A +
|
|
644
|
-
const
|
|
645
|
-
if (
|
|
642
|
+
let W = K;
|
|
643
|
+
for (; A + W < V; ) {
|
|
644
|
+
const ae = W * z + (W < 0 ? Y : ee);
|
|
645
|
+
if (C >= ae) W += 1;
|
|
646
646
|
else break;
|
|
647
647
|
}
|
|
648
|
-
if (
|
|
649
|
-
for (; A +
|
|
650
|
-
const
|
|
651
|
-
if (
|
|
648
|
+
if (W === K)
|
|
649
|
+
for (; A + W > 1; ) {
|
|
650
|
+
const ae = W * z - (W > 0 ? Y : ee);
|
|
651
|
+
if (C <= ae) W -= 1;
|
|
652
652
|
else break;
|
|
653
653
|
}
|
|
654
|
-
return Math.min(
|
|
654
|
+
return Math.min(V, Math.max(1, A + W));
|
|
655
655
|
},
|
|
656
|
-
[B.snapInFraction, B.snapOutFraction,
|
|
657
|
-
),
|
|
658
|
-
(
|
|
659
|
-
if (
|
|
660
|
-
U(), I.current =
|
|
661
|
-
const E = e *
|
|
662
|
-
S.current = E, j.current.clear(), j.current.push({ x:
|
|
656
|
+
[B.snapInFraction, B.snapOutFraction, f]
|
|
657
|
+
), it = w(
|
|
658
|
+
(C) => {
|
|
659
|
+
if (b.current !== "handle-visible") return;
|
|
660
|
+
U(), I.current = C.clientX, c.current = s, v.current = i, _.current = f;
|
|
661
|
+
const E = e * s + (e - 1) * i;
|
|
662
|
+
S.current = E, j.current.clear(), j.current.push({ x: C.clientX, t: performance.now() }), x.jump(E), b.current = "dragging", y("dragging");
|
|
663
663
|
},
|
|
664
|
-
[
|
|
665
|
-
),
|
|
666
|
-
(
|
|
664
|
+
[s, i, f, e, x, U]
|
|
665
|
+
), Be = w(
|
|
666
|
+
(C) => C * c.current + (C - 1) * v.current,
|
|
667
667
|
[]
|
|
668
|
-
),
|
|
669
|
-
(
|
|
670
|
-
const A =
|
|
668
|
+
), ie = w(
|
|
669
|
+
(C, E) => {
|
|
670
|
+
const A = Be(C), z = C !== e;
|
|
671
671
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
672
|
-
x.jump(A),
|
|
672
|
+
x.jump(A), z && E ? n({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : z || a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
675
|
const Y = j.current.getWeightedVelocity() * B.velocityMultiplier;
|
|
676
|
-
|
|
676
|
+
b.current = "settling", y("settling"), U(), F.current = We(x, A, {
|
|
677
677
|
type: "spring",
|
|
678
678
|
stiffness: B.stiffness,
|
|
679
679
|
damping: B.damping,
|
|
680
680
|
mass: B.mass,
|
|
681
681
|
velocity: Y,
|
|
682
682
|
onComplete: () => {
|
|
683
|
-
F.current = null,
|
|
683
|
+
F.current = null, z && E ? n({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : z || a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
},
|
|
687
|
-
[
|
|
688
|
-
),
|
|
689
|
-
(
|
|
690
|
-
if (
|
|
691
|
-
const E =
|
|
692
|
-
j.current.push({ x:
|
|
693
|
-
const
|
|
694
|
-
|
|
687
|
+
[Be, e, t, n, a, x, B, U]
|
|
688
|
+
), ot = w(
|
|
689
|
+
(C) => {
|
|
690
|
+
if (b.current !== "dragging") return;
|
|
691
|
+
const E = C.clientX - (I.current ?? C.clientX), A = c.current, ee = ((_.current ?? f) - e) * A, Y = (1 - e) * A, K = Math.max(Y, Math.min(ee, E));
|
|
692
|
+
j.current.push({ x: C.clientX, t: performance.now() });
|
|
693
|
+
const V = oe(K, G.current, e), W = V > e ? "grow" : V < e ? "shrink" : null;
|
|
694
|
+
ie(V, W);
|
|
695
695
|
},
|
|
696
|
-
[
|
|
697
|
-
),
|
|
698
|
-
if (Z(),
|
|
699
|
-
const
|
|
696
|
+
[oe, e, f, ie]
|
|
697
|
+
), le = w(() => {
|
|
698
|
+
if (Z(), b.current === "dragging") {
|
|
699
|
+
const C = S.current;
|
|
700
700
|
if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
701
|
-
x.jump(
|
|
701
|
+
x.jump(C), a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
704
|
const A = j.current.getWeightedVelocity();
|
|
705
|
-
|
|
705
|
+
b.current = "settling", y("settling"), U(), F.current = We(x, C, {
|
|
706
706
|
type: "spring",
|
|
707
707
|
stiffness: B.stiffness,
|
|
708
708
|
damping: B.damping,
|
|
709
709
|
mass: B.mass,
|
|
710
710
|
velocity: A,
|
|
711
711
|
onComplete: () => {
|
|
712
|
-
F.current = null, a?.(), x.jump(0),
|
|
712
|
+
F.current = null, a?.(), x.jump(0), b.current = "idle", y("idle");
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
b.current === "handle-visible" && (a?.(), b.current = "cancelled", y("cancelled"));
|
|
718
718
|
}, [Z, x, a, B, U]);
|
|
719
719
|
L(() => {
|
|
720
|
-
if (
|
|
721
|
-
const
|
|
722
|
-
E.key === "Escape" &&
|
|
720
|
+
if (N !== "dragging" && N !== "handle-visible") return;
|
|
721
|
+
const C = (E) => {
|
|
722
|
+
E.key === "Escape" && le();
|
|
723
723
|
};
|
|
724
|
-
return window.addEventListener("keydown",
|
|
725
|
-
}, [
|
|
726
|
-
if (
|
|
727
|
-
|
|
724
|
+
return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
|
|
725
|
+
}, [N, le]), L(() => {
|
|
726
|
+
if (N !== "dragging") {
|
|
727
|
+
R(e);
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
const
|
|
731
|
-
const
|
|
732
|
-
x.set(
|
|
733
|
-
const
|
|
734
|
-
j.current.push({ x:
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
}, E = (
|
|
738
|
-
if (
|
|
739
|
-
if (
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
const
|
|
743
|
-
|
|
730
|
+
const C = (K) => {
|
|
731
|
+
const V = K.clientX - (I.current ?? K.clientX), W = S.current, ce = q(1), ae = q(f), we = W + V, Ke = Math.max(ce, Math.min(ae, we));
|
|
732
|
+
x.set(Ke);
|
|
733
|
+
const _e = c.current, ke = (f - e) * _e, xe = (1 - e) * _e, de = Math.max(xe, Math.min(ke, V));
|
|
734
|
+
j.current.push({ x: K.clientX, t: performance.now() });
|
|
735
|
+
const ue = oe(de, G.current, e);
|
|
736
|
+
ue !== G.current && (G.current = ue, R(ue));
|
|
737
|
+
}, E = (K, V) => {
|
|
738
|
+
if (b.current === "dragging")
|
|
739
|
+
if (K === "pointerup") {
|
|
740
|
+
const W = j.current.tail(), ce = V?.clientX ?? W?.x ?? I.current ?? 0, ae = ce - (I.current ?? ce), we = c.current, _e = ((_.current ?? f) - e) * we, ke = (1 - e) * we, xe = Math.max(ke, Math.min(_e, ae));
|
|
741
|
+
V && j.current.push({ x: V.clientX, t: performance.now() });
|
|
742
|
+
const de = oe(xe, G.current, e), ue = de > e ? "grow" : de < e ? "shrink" : null;
|
|
743
|
+
ie(de, ue);
|
|
744
744
|
} else
|
|
745
|
-
|
|
746
|
-
}, A = (
|
|
745
|
+
le();
|
|
746
|
+
}, A = (K) => E("pointerup", K), z = (K) => E("pointercancel", K), ee = () => E("blur"), Y = () => {
|
|
747
747
|
document.visibilityState === "hidden" && E("visibility-hidden");
|
|
748
748
|
};
|
|
749
|
-
return window.addEventListener("pointermove",
|
|
750
|
-
window.removeEventListener("pointermove",
|
|
749
|
+
return window.addEventListener("pointermove", C), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", z), window.addEventListener("blur", ee), document.addEventListener("visibilitychange", Y), () => {
|
|
750
|
+
window.removeEventListener("pointermove", C), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", z), window.removeEventListener("blur", ee), document.removeEventListener("visibilitychange", Y);
|
|
751
751
|
};
|
|
752
|
-
}, [
|
|
753
|
-
Z(), O(),
|
|
754
|
-
}, [Z, O,
|
|
755
|
-
if (
|
|
756
|
-
const
|
|
757
|
-
return () => clearTimeout(
|
|
758
|
-
}, [
|
|
759
|
-
const
|
|
760
|
-
(
|
|
761
|
-
if (
|
|
762
|
-
const A = Math.min(
|
|
752
|
+
}, [N, e, x, oe, f, q, le, ie]), L(() => () => {
|
|
753
|
+
Z(), O(), J();
|
|
754
|
+
}, [Z, O, J]), L(() => {
|
|
755
|
+
if (N !== "cancelled") return;
|
|
756
|
+
const C = setTimeout(() => y("idle"), g);
|
|
757
|
+
return () => clearTimeout(C);
|
|
758
|
+
}, [N, g]);
|
|
759
|
+
const lt = w(
|
|
760
|
+
(C) => {
|
|
761
|
+
if (b.current === "settling") return;
|
|
762
|
+
const A = Math.min(f, Math.max(1, e + (C === "grow" ? 1 : -1)));
|
|
763
763
|
if (A === e) return;
|
|
764
|
-
c.current =
|
|
765
|
-
const
|
|
766
|
-
S.current =
|
|
764
|
+
c.current = s, v.current = i, _.current = f, j.current.clear();
|
|
765
|
+
const z = e * s + (e - 1) * i;
|
|
766
|
+
S.current = z, x.jump(z), ie(A, C);
|
|
767
767
|
},
|
|
768
|
-
[e,
|
|
769
|
-
),
|
|
770
|
-
|
|
771
|
-
|
|
768
|
+
[e, s, i, f, x, ie]
|
|
769
|
+
), ze = w(() => {
|
|
770
|
+
J(), T.current = setTimeout(() => {
|
|
771
|
+
b.current === "handle-visible" && (b.current = "idle", y("idle"));
|
|
772
772
|
}, 5e3);
|
|
773
|
-
}, [
|
|
774
|
-
|
|
775
|
-
}, [Z,
|
|
776
|
-
|
|
777
|
-
}, [
|
|
773
|
+
}, [J]), ct = w(() => {
|
|
774
|
+
b.current === "idle" && (Z(), b.current = "handle-visible", y("handle-visible"), ze());
|
|
775
|
+
}, [Z, ze]), dt = w(() => {
|
|
776
|
+
J(), b.current === "handle-visible" && (b.current = "idle", y("idle"));
|
|
777
|
+
}, [J]);
|
|
778
778
|
return {
|
|
779
|
-
state:
|
|
780
|
-
enterEdgeZone:
|
|
781
|
-
leaveEdgeZone:
|
|
779
|
+
state: N,
|
|
780
|
+
enterEdgeZone: Le,
|
|
781
|
+
leaveEdgeZone: $e,
|
|
782
782
|
handleProps: {
|
|
783
|
-
onPointerDown:
|
|
784
|
-
onPointerUp:
|
|
783
|
+
onPointerDown: it,
|
|
784
|
+
onPointerUp: ot,
|
|
785
785
|
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
786
786
|
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
787
|
-
onPointerEnter:
|
|
788
|
-
onPointerLeave:
|
|
787
|
+
onPointerEnter: Le,
|
|
788
|
+
onPointerLeave: $e
|
|
789
789
|
},
|
|
790
|
-
previewColSpan:
|
|
790
|
+
previewColSpan: h,
|
|
791
791
|
ghostProps: {
|
|
792
|
-
visible:
|
|
793
|
-
targetColSpan:
|
|
792
|
+
visible: N === "dragging" || N === "settling",
|
|
793
|
+
targetColSpan: h,
|
|
794
794
|
ghostWidth: x,
|
|
795
|
-
enterMs:
|
|
796
|
-
exitMs:
|
|
795
|
+
enterMs: d,
|
|
796
|
+
exitMs: g
|
|
797
797
|
},
|
|
798
|
-
onKeyboardStep:
|
|
799
|
-
onTouchReveal:
|
|
800
|
-
onTouchDismiss:
|
|
801
|
-
cancel:
|
|
798
|
+
onKeyboardStep: lt,
|
|
799
|
+
onTouchReveal: ct,
|
|
800
|
+
onTouchDismiss: dt,
|
|
801
|
+
cancel: le
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
const
|
|
804
|
+
const se = {
|
|
805
805
|
// Cascade (D-08, D-10)
|
|
806
806
|
staggerMs: 50,
|
|
807
807
|
reverseStaggerMs: 30,
|
|
@@ -826,14 +826,14 @@ const ne = {
|
|
|
826
826
|
sectionDividerFadeOutMs: 80,
|
|
827
827
|
sectionDividerStaggerMs: 40
|
|
828
828
|
};
|
|
829
|
-
function
|
|
830
|
-
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx:
|
|
829
|
+
function xn(e) {
|
|
830
|
+
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: s } = e;
|
|
831
831
|
if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
|
|
832
832
|
return;
|
|
833
|
-
const
|
|
834
|
-
return
|
|
833
|
+
const i = (a + 0.5) * (t / n);
|
|
834
|
+
return s != null && Number.isFinite(s) && s > 0 ? i - s / 2 : i;
|
|
835
835
|
}
|
|
836
|
-
const
|
|
836
|
+
const Sn = [
|
|
837
837
|
// 1. Standard: Total Revenue
|
|
838
838
|
{
|
|
839
839
|
variant: "standard",
|
|
@@ -965,24 +965,24 @@ const gn = [
|
|
|
965
965
|
subtitle: "Awaiting QA",
|
|
966
966
|
highlightColor: "neutral"
|
|
967
967
|
}
|
|
968
|
-
],
|
|
968
|
+
], $t = {
|
|
969
969
|
variant: "standard",
|
|
970
970
|
label: "Total Revenue",
|
|
971
971
|
isLoading: !0
|
|
972
|
-
},
|
|
972
|
+
}, Bt = {
|
|
973
973
|
variant: "standard",
|
|
974
974
|
label: "Total Revenue",
|
|
975
975
|
value: 125430,
|
|
976
976
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
977
977
|
isError: !0
|
|
978
|
-
},
|
|
978
|
+
}, zt = {
|
|
979
979
|
variant: "standard",
|
|
980
980
|
label: "Total Revenue",
|
|
981
981
|
value: null,
|
|
982
982
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
983
983
|
isEmpty: !0,
|
|
984
984
|
subtitle: "No data"
|
|
985
|
-
},
|
|
985
|
+
}, Kt = {
|
|
986
986
|
variant: "standard",
|
|
987
987
|
label: "Total Revenue",
|
|
988
988
|
value: 125430,
|
|
@@ -990,7 +990,7 @@ const gn = [
|
|
|
990
990
|
trend: { value: 12.5, direction: "up" },
|
|
991
991
|
subtitle: "MTD",
|
|
992
992
|
isStale: !0
|
|
993
|
-
},
|
|
993
|
+
}, Wt = {
|
|
994
994
|
variant: "sparkline",
|
|
995
995
|
label: "Daily Orders",
|
|
996
996
|
value: 847,
|
|
@@ -999,7 +999,7 @@ const gn = [
|
|
|
999
999
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
1000
1000
|
accentColor: "#6366f1",
|
|
1001
1001
|
isStale: !0
|
|
1002
|
-
},
|
|
1002
|
+
}, Gt = {
|
|
1003
1003
|
variant: "donut",
|
|
1004
1004
|
label: "Order Fill Rate",
|
|
1005
1005
|
value: 78,
|
|
@@ -1010,14 +1010,14 @@ const gn = [
|
|
|
1010
1010
|
donutMax: 100,
|
|
1011
1011
|
accentColor: "#10b981",
|
|
1012
1012
|
isStale: !0
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
],
|
|
1013
|
+
}, Rn = [
|
|
1014
|
+
$t,
|
|
1015
|
+
Bt,
|
|
1016
|
+
zt,
|
|
1017
|
+
Kt,
|
|
1018
|
+
Wt,
|
|
1019
|
+
Gt
|
|
1020
|
+
], Mn = {
|
|
1021
1021
|
variant: "sparkline",
|
|
1022
1022
|
label: "Daily Orders",
|
|
1023
1023
|
value: 847,
|
|
@@ -1040,7 +1040,7 @@ const gn = [
|
|
|
1040
1040
|
59
|
|
1041
1041
|
],
|
|
1042
1042
|
accentColor: "#6366f1"
|
|
1043
|
-
},
|
|
1043
|
+
}, Tn = {
|
|
1044
1044
|
variant: "sparkline",
|
|
1045
1045
|
label: "New Customers",
|
|
1046
1046
|
value: 23,
|
|
@@ -1079,21 +1079,21 @@ const gn = [
|
|
|
1079
1079
|
19
|
|
1080
1080
|
],
|
|
1081
1081
|
accentColor: "#10b981"
|
|
1082
|
-
},
|
|
1082
|
+
}, In = {
|
|
1083
1083
|
variant: "standard",
|
|
1084
1084
|
label: "Total Revenue",
|
|
1085
1085
|
value: 125430,
|
|
1086
1086
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1087
1087
|
trend: { value: 12.5, direction: "up" },
|
|
1088
1088
|
subtitle: "MTD"
|
|
1089
|
-
},
|
|
1089
|
+
}, Pn = {
|
|
1090
1090
|
variant: "standard",
|
|
1091
1091
|
label: "Returns",
|
|
1092
1092
|
value: 3280,
|
|
1093
1093
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1094
1094
|
trend: { value: -8.3, direction: "down" },
|
|
1095
1095
|
subtitle: "MTD"
|
|
1096
|
-
},
|
|
1096
|
+
}, Fn = {
|
|
1097
1097
|
variant: "standard",
|
|
1098
1098
|
label: "Avg Order Value",
|
|
1099
1099
|
value: 487,
|
|
@@ -1101,33 +1101,33 @@ const gn = [
|
|
|
1101
1101
|
trend: { value: 0, direction: "flat" },
|
|
1102
1102
|
subtitle: "QTD"
|
|
1103
1103
|
};
|
|
1104
|
-
function
|
|
1104
|
+
function Ye({
|
|
1105
1105
|
open: e,
|
|
1106
1106
|
onDismiss: t,
|
|
1107
1107
|
anchorRef: n,
|
|
1108
1108
|
pages: a,
|
|
1109
|
-
activePageId:
|
|
1110
|
-
onPageChange:
|
|
1109
|
+
activePageId: s,
|
|
1110
|
+
onPageChange: i,
|
|
1111
1111
|
onCreatePage: o,
|
|
1112
1112
|
onManagePages: l
|
|
1113
1113
|
}) {
|
|
1114
1114
|
const m = w(
|
|
1115
|
-
(
|
|
1116
|
-
|
|
1115
|
+
(u) => {
|
|
1116
|
+
i(u), t();
|
|
1117
1117
|
},
|
|
1118
|
-
[
|
|
1119
|
-
),
|
|
1120
|
-
(
|
|
1121
|
-
(
|
|
1118
|
+
[i, t]
|
|
1119
|
+
), d = w(
|
|
1120
|
+
(u, p) => {
|
|
1121
|
+
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), m(u));
|
|
1122
1122
|
},
|
|
1123
1123
|
[m]
|
|
1124
|
-
),
|
|
1124
|
+
), g = w(() => {
|
|
1125
1125
|
o(), t();
|
|
1126
|
-
}, [o, t]),
|
|
1126
|
+
}, [o, t]), f = w(() => {
|
|
1127
1127
|
l(), t();
|
|
1128
1128
|
}, [l, t]);
|
|
1129
|
-
return /* @__PURE__ */
|
|
1130
|
-
|
|
1129
|
+
return /* @__PURE__ */ D(
|
|
1130
|
+
yt,
|
|
1131
1131
|
{
|
|
1132
1132
|
definition: {
|
|
1133
1133
|
placement: "bottom-end",
|
|
@@ -1140,55 +1140,55 @@ function He({
|
|
|
1140
1140
|
anchorRef: n,
|
|
1141
1141
|
className: "gloss-page-dropdown",
|
|
1142
1142
|
children: [
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
-
const
|
|
1145
|
-
return /* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
|
|
1144
|
+
const p = u.id === s;
|
|
1145
|
+
return /* @__PURE__ */ D(
|
|
1146
1146
|
"li",
|
|
1147
1147
|
{
|
|
1148
1148
|
role: "menuitemradio",
|
|
1149
|
-
"aria-checked":
|
|
1150
|
-
"aria-current":
|
|
1149
|
+
"aria-checked": p,
|
|
1150
|
+
"aria-current": p ? "page" : void 0,
|
|
1151
1151
|
tabIndex: 0,
|
|
1152
|
-
className: `gloss-page-dropdown__item${
|
|
1153
|
-
onClick: () => m(
|
|
1154
|
-
onKeyDown: (
|
|
1152
|
+
className: `gloss-page-dropdown__item${p ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1153
|
+
onClick: () => m(u.id),
|
|
1154
|
+
onKeyDown: (N) => d(u.id, N),
|
|
1155
1155
|
children: [
|
|
1156
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ r(
|
|
1157
1157
|
"span",
|
|
1158
1158
|
{
|
|
1159
|
-
className: `gloss-page-dropdown__dot${
|
|
1159
|
+
className: `gloss-page-dropdown__dot${p ? " gloss-page-dropdown__dot--active" : ""}`
|
|
1160
1160
|
}
|
|
1161
1161
|
),
|
|
1162
|
-
/* @__PURE__ */
|
|
1162
|
+
/* @__PURE__ */ r(
|
|
1163
1163
|
"span",
|
|
1164
1164
|
{
|
|
1165
|
-
className: `gloss-page-dropdown__name${
|
|
1166
|
-
children:
|
|
1165
|
+
className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
1166
|
+
children: u.name
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
|
|
1170
1170
|
]
|
|
1171
1171
|
},
|
|
1172
|
-
|
|
1172
|
+
u.id
|
|
1173
1173
|
);
|
|
1174
1174
|
}) }),
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ r("hr", { className: "gloss-page-dropdown__separator" }),
|
|
1176
|
+
/* @__PURE__ */ r(
|
|
1177
1177
|
"button",
|
|
1178
1178
|
{
|
|
1179
1179
|
role: "menuitem",
|
|
1180
1180
|
className: "gloss-page-dropdown__action",
|
|
1181
|
-
onClick:
|
|
1181
|
+
onClick: g,
|
|
1182
1182
|
children: "+ New page"
|
|
1183
1183
|
}
|
|
1184
1184
|
),
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ r("hr", { className: "gloss-page-dropdown__separator" }),
|
|
1186
|
+
/* @__PURE__ */ r(
|
|
1187
1187
|
"button",
|
|
1188
1188
|
{
|
|
1189
1189
|
role: "menuitem",
|
|
1190
1190
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
1191
|
-
onClick:
|
|
1191
|
+
onClick: f,
|
|
1192
1192
|
children: "Manage pages"
|
|
1193
1193
|
}
|
|
1194
1194
|
)
|
|
@@ -1196,66 +1196,66 @@ function He({
|
|
|
1196
1196
|
}
|
|
1197
1197
|
);
|
|
1198
1198
|
}
|
|
1199
|
-
|
|
1200
|
-
const
|
|
1199
|
+
Ye.displayName = "PageDropdown";
|
|
1200
|
+
const Vt = function({
|
|
1201
1201
|
currentIndex: t,
|
|
1202
1202
|
total: n,
|
|
1203
1203
|
pages: a,
|
|
1204
|
-
onPageChange:
|
|
1205
|
-
onCreatePage:
|
|
1204
|
+
onPageChange: s,
|
|
1205
|
+
onCreatePage: i,
|
|
1206
1206
|
onManagePages: o,
|
|
1207
1207
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1208
1208
|
displayMode: m = "count",
|
|
1209
|
-
activePage:
|
|
1209
|
+
activePage: d
|
|
1210
1210
|
}) {
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
}, []),
|
|
1214
|
-
|
|
1211
|
+
const g = M(null), [f, u] = $(!1), p = w(() => {
|
|
1212
|
+
u((R) => !R);
|
|
1213
|
+
}, []), N = w(() => {
|
|
1214
|
+
u(!1);
|
|
1215
1215
|
}, []), y = a[t]?.id ?? "";
|
|
1216
|
-
return /* @__PURE__ */
|
|
1216
|
+
return /* @__PURE__ */ D(
|
|
1217
1217
|
"div",
|
|
1218
1218
|
{
|
|
1219
1219
|
className: "gloss-page-chip",
|
|
1220
|
-
ref:
|
|
1220
|
+
ref: g,
|
|
1221
1221
|
style: m === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
|
|
1222
1222
|
"data-page-chip": !0,
|
|
1223
1223
|
children: [
|
|
1224
|
-
m !== "name" && /* @__PURE__ */
|
|
1224
|
+
m !== "name" && /* @__PURE__ */ r(
|
|
1225
1225
|
"div",
|
|
1226
1226
|
{
|
|
1227
1227
|
className: "gloss-page-chip__nuzzle",
|
|
1228
1228
|
style: { "--_nuzzle-r": l }
|
|
1229
1229
|
}
|
|
1230
1230
|
),
|
|
1231
|
-
/* @__PURE__ */
|
|
1231
|
+
/* @__PURE__ */ r(
|
|
1232
1232
|
"button",
|
|
1233
1233
|
{
|
|
1234
1234
|
className: `gloss-page-chip__trigger${m === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1235
1235
|
"aria-haspopup": "menu",
|
|
1236
|
-
"aria-expanded":
|
|
1237
|
-
"aria-label": m === "name" ? `${
|
|
1238
|
-
onClick:
|
|
1239
|
-
children: m === "name" ? /* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
] }) : /* @__PURE__ */
|
|
1236
|
+
"aria-expanded": f,
|
|
1237
|
+
"aria-label": m === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1238
|
+
onClick: p,
|
|
1239
|
+
children: m === "name" ? /* @__PURE__ */ D(te, { children: [
|
|
1240
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
|
|
1241
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1242
|
+
] }) : /* @__PURE__ */ D(te, { children: [
|
|
1243
1243
|
t + 1,
|
|
1244
1244
|
" / ",
|
|
1245
1245
|
n
|
|
1246
1246
|
] })
|
|
1247
1247
|
}
|
|
1248
1248
|
),
|
|
1249
|
-
/* @__PURE__ */
|
|
1250
|
-
|
|
1249
|
+
/* @__PURE__ */ r(
|
|
1250
|
+
Ye,
|
|
1251
1251
|
{
|
|
1252
|
-
open:
|
|
1253
|
-
onDismiss:
|
|
1254
|
-
anchorRef:
|
|
1252
|
+
open: f,
|
|
1253
|
+
onDismiss: N,
|
|
1254
|
+
anchorRef: g,
|
|
1255
1255
|
pages: a,
|
|
1256
1256
|
activePageId: y,
|
|
1257
|
-
onPageChange:
|
|
1258
|
-
onCreatePage:
|
|
1257
|
+
onPageChange: s,
|
|
1258
|
+
onCreatePage: i,
|
|
1259
1259
|
onManagePages: o
|
|
1260
1260
|
}
|
|
1261
1261
|
)
|
|
@@ -1263,8 +1263,8 @@ const Lt = function({
|
|
|
1263
1263
|
}
|
|
1264
1264
|
);
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1266
|
+
Vt.displayName = "PageChip";
|
|
1267
|
+
const En = [
|
|
1268
1268
|
{
|
|
1269
1269
|
id: "ORD-1001",
|
|
1270
1270
|
orderNumber: "ORD-1001",
|
|
@@ -1397,7 +1397,7 @@ const wn = [
|
|
|
1397
1397
|
date: "2026-03-01",
|
|
1398
1398
|
skuCount: 9
|
|
1399
1399
|
}
|
|
1400
|
-
],
|
|
1400
|
+
], An = [
|
|
1401
1401
|
{
|
|
1402
1402
|
id: "ITEM-001",
|
|
1403
1403
|
sku: "PB-4520",
|
|
@@ -1531,16 +1531,16 @@ const wn = [
|
|
|
1531
1531
|
lastDate: "2026-03-01"
|
|
1532
1532
|
}
|
|
1533
1533
|
];
|
|
1534
|
-
function
|
|
1534
|
+
function Pe(e) {
|
|
1535
1535
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Qe(e) {
|
|
1538
1538
|
return e.toLocaleString("en-US");
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Xe(e) {
|
|
1541
1541
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1542
1542
|
}
|
|
1543
|
-
const
|
|
1543
|
+
const he = H.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), On = [
|
|
1544
1544
|
{
|
|
1545
1545
|
field: "id",
|
|
1546
1546
|
headerName: "Order",
|
|
@@ -1570,7 +1570,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1570
1570
|
align: "right",
|
|
1571
1571
|
headerAlign: "right",
|
|
1572
1572
|
cellClassName: "gloss-tabular-nums",
|
|
1573
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1573
|
+
renderCell: ({ row: e }) => e.skuCount ? Qe(e.skuCount) : he
|
|
1574
1574
|
},
|
|
1575
1575
|
{
|
|
1576
1576
|
field: "total",
|
|
@@ -1580,7 +1580,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1580
1580
|
align: "right",
|
|
1581
1581
|
headerAlign: "right",
|
|
1582
1582
|
cellClassName: "gloss-tabular-nums",
|
|
1583
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1583
|
+
renderCell: ({ row: e }) => e.total ? Pe(e.total) : he
|
|
1584
1584
|
},
|
|
1585
1585
|
{
|
|
1586
1586
|
field: "date",
|
|
@@ -1590,9 +1590,9 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1590
1590
|
align: "right",
|
|
1591
1591
|
headerAlign: "right",
|
|
1592
1592
|
cellClassName: "gloss-tabular-nums",
|
|
1593
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1593
|
+
renderCell: ({ row: e }) => e.date ? Xe(e.date) : ""
|
|
1594
1594
|
}
|
|
1595
|
-
],
|
|
1595
|
+
], Ln = [
|
|
1596
1596
|
{
|
|
1597
1597
|
field: "sku",
|
|
1598
1598
|
headerName: "Item ID",
|
|
@@ -1624,7 +1624,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1624
1624
|
align: "right",
|
|
1625
1625
|
headerAlign: "right",
|
|
1626
1626
|
cellClassName: "gloss-tabular-nums",
|
|
1627
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1627
|
+
renderCell: ({ row: e }) => e.price ? Pe(e.price) : he
|
|
1628
1628
|
},
|
|
1629
1629
|
{
|
|
1630
1630
|
field: "quantity",
|
|
@@ -1634,7 +1634,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1634
1634
|
align: "right",
|
|
1635
1635
|
headerAlign: "right",
|
|
1636
1636
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1637
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1637
|
+
renderCell: ({ row: e }) => e.quantity ? Qe(e.quantity) : he
|
|
1638
1638
|
},
|
|
1639
1639
|
{
|
|
1640
1640
|
field: "total",
|
|
@@ -1644,7 +1644,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1644
1644
|
align: "right",
|
|
1645
1645
|
headerAlign: "right",
|
|
1646
1646
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1647
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1647
|
+
renderCell: ({ row: e }) => e.total ? Pe(e.total) : he
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
1650
|
field: "lastDate",
|
|
@@ -1654,24 +1654,24 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1654
1654
|
align: "right",
|
|
1655
1655
|
headerAlign: "right",
|
|
1656
1656
|
cellClassName: "gloss-tabular-nums",
|
|
1657
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1657
|
+
renderCell: ({ row: e }) => e.lastDate ? Xe(e.lastDate) : ""
|
|
1658
1658
|
}
|
|
1659
|
-
],
|
|
1659
|
+
], Ht = [
|
|
1660
1660
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1661
1661
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1662
1662
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1663
1663
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1664
1664
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1665
|
-
],
|
|
1665
|
+
], Ut = [
|
|
1666
1666
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1667
1667
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1668
1668
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1669
1669
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1670
1670
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1671
|
-
],
|
|
1672
|
-
},
|
|
1673
|
-
},
|
|
1674
|
-
},
|
|
1671
|
+
], Se = (e) => {
|
|
1672
|
+
}, jt = (e) => {
|
|
1673
|
+
}, Ve = (e, t) => {
|
|
1674
|
+
}, Je = {
|
|
1675
1675
|
vizState: {
|
|
1676
1676
|
type: "orders",
|
|
1677
1677
|
quant: "$",
|
|
@@ -1679,17 +1679,17 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1679
1679
|
byItem: { id: null, name: null },
|
|
1680
1680
|
timeFrame: "MTD"
|
|
1681
1681
|
},
|
|
1682
|
-
onTypeChange:
|
|
1683
|
-
onQuantChange:
|
|
1684
|
-
onEntityTypeChange:
|
|
1685
|
-
onEntitySelect:
|
|
1686
|
-
onItemSelect:
|
|
1687
|
-
onTimeFrameChange:
|
|
1682
|
+
onTypeChange: Se,
|
|
1683
|
+
onQuantChange: jt,
|
|
1684
|
+
onEntityTypeChange: Se,
|
|
1685
|
+
onEntitySelect: Ve,
|
|
1686
|
+
onItemSelect: Ve,
|
|
1687
|
+
onTimeFrameChange: Se,
|
|
1688
1688
|
userType: "sales-agency",
|
|
1689
|
-
entityFilterOptions:
|
|
1690
|
-
itemFilterOptions:
|
|
1691
|
-
},
|
|
1692
|
-
...
|
|
1689
|
+
entityFilterOptions: Ht,
|
|
1690
|
+
itemFilterOptions: Ut
|
|
1691
|
+
}, $n = {
|
|
1692
|
+
...Je,
|
|
1693
1693
|
vizState: {
|
|
1694
1694
|
type: "items",
|
|
1695
1695
|
quant: "$",
|
|
@@ -1697,8 +1697,8 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1697
1697
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1698
1698
|
timeFrame: "YTD"
|
|
1699
1699
|
}
|
|
1700
|
-
},
|
|
1701
|
-
...
|
|
1700
|
+
}, Bn = {
|
|
1701
|
+
...Je,
|
|
1702
1702
|
vizState: {
|
|
1703
1703
|
type: "orders",
|
|
1704
1704
|
quant: "#",
|
|
@@ -1710,7 +1710,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1710
1710
|
entityFilterOptions: [
|
|
1711
1711
|
{ id: "customers", label: "Customers" }
|
|
1712
1712
|
]
|
|
1713
|
-
},
|
|
1713
|
+
}, Zt = [
|
|
1714
1714
|
{
|
|
1715
1715
|
id: "recent-orders",
|
|
1716
1716
|
label: "Recent Orders",
|
|
@@ -1756,7 +1756,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1756
1756
|
routeKey: "customer.profile",
|
|
1757
1757
|
subtitle: "Opens in RepTime"
|
|
1758
1758
|
}
|
|
1759
|
-
],
|
|
1759
|
+
], qt = [
|
|
1760
1760
|
{
|
|
1761
1761
|
id: "order-items",
|
|
1762
1762
|
label: "Items in Order",
|
|
@@ -1785,7 +1785,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1785
1785
|
cellKinds: ["orderId"],
|
|
1786
1786
|
graphType: "timeline"
|
|
1787
1787
|
}
|
|
1788
|
-
],
|
|
1788
|
+
], Yt = [
|
|
1789
1789
|
{
|
|
1790
1790
|
id: "graph-metric",
|
|
1791
1791
|
label: "Graph This Metric",
|
|
@@ -1813,14 +1813,14 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1813
1813
|
cellKinds: ["numeric"],
|
|
1814
1814
|
tabType: "orders"
|
|
1815
1815
|
}
|
|
1816
|
-
],
|
|
1817
|
-
entityName:
|
|
1818
|
-
orderId:
|
|
1819
|
-
numeric:
|
|
1820
|
-
},
|
|
1816
|
+
], zn = {
|
|
1817
|
+
entityName: Zt,
|
|
1818
|
+
orderId: qt,
|
|
1819
|
+
numeric: Yt
|
|
1820
|
+
}, Kn = [
|
|
1821
1821
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1822
1822
|
/* @__PURE__ */ new Date()
|
|
1823
|
-
],
|
|
1823
|
+
], Wn = {
|
|
1824
1824
|
rangeA: [
|
|
1825
1825
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1826
1826
|
/* @__PURE__ */ new Date()
|
|
@@ -1833,7 +1833,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1833
1833
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1834
1834
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1835
1835
|
]
|
|
1836
|
-
},
|
|
1836
|
+
}, Gn = {
|
|
1837
1837
|
version: 4,
|
|
1838
1838
|
lastPreset: "mtd",
|
|
1839
1839
|
pinnedPreset: "mtd",
|
|
@@ -1841,7 +1841,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1841
1841
|
rangeCount: 1,
|
|
1842
1842
|
lastPresetB: null,
|
|
1843
1843
|
lastPresetC: null
|
|
1844
|
-
},
|
|
1844
|
+
}, Vn = [
|
|
1845
1845
|
{
|
|
1846
1846
|
id: "atlanta-jan",
|
|
1847
1847
|
label: "Atlanta Market",
|
|
@@ -1863,7 +1863,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1863
1863
|
endDate: new Date(2026, 3, 22),
|
|
1864
1864
|
location: "Chicago, IL"
|
|
1865
1865
|
}
|
|
1866
|
-
],
|
|
1866
|
+
], Hn = [
|
|
1867
1867
|
{
|
|
1868
1868
|
id: "custom-regional-1",
|
|
1869
1869
|
label: "Southeast Regional Expo",
|
|
@@ -1880,7 +1880,7 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1880
1880
|
location: "Portland, OR",
|
|
1881
1881
|
isCustom: !0
|
|
1882
1882
|
}
|
|
1883
|
-
],
|
|
1883
|
+
], Un = [
|
|
1884
1884
|
{
|
|
1885
1885
|
id: "atlanta-jan",
|
|
1886
1886
|
label: "Atlanta Market",
|
|
@@ -1897,137 +1897,137 @@ const me = V.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1897
1897
|
location: "New York, NY",
|
|
1898
1898
|
active: !0
|
|
1899
1899
|
}
|
|
1900
|
-
],
|
|
1900
|
+
], jn = [
|
|
1901
1901
|
{ id: "7d", label: "7D" },
|
|
1902
1902
|
{ id: "30d", label: "30D" },
|
|
1903
1903
|
{ id: "60d", label: "60D" },
|
|
1904
1904
|
{ id: "90d", label: "90D" }
|
|
1905
|
-
],
|
|
1905
|
+
], Zn = [
|
|
1906
1906
|
{ id: "mtd", label: "MTD" },
|
|
1907
1907
|
{ id: "qtd", label: "QTD" },
|
|
1908
1908
|
{ id: "ytd", label: "YTD" },
|
|
1909
1909
|
{ id: "lytd", label: "LYTD" }
|
|
1910
|
-
],
|
|
1910
|
+
], Qt = {
|
|
1911
1911
|
timeframe: "Time Frame",
|
|
1912
1912
|
threshold: "Thresholds",
|
|
1913
1913
|
slots: "Slots",
|
|
1914
1914
|
size: "Size",
|
|
1915
1915
|
color: "Color",
|
|
1916
1916
|
pinned: "Pinned"
|
|
1917
|
-
},
|
|
1918
|
-
timeframe:
|
|
1919
|
-
threshold:
|
|
1920
|
-
slots:
|
|
1921
|
-
size:
|
|
1922
|
-
color:
|
|
1923
|
-
pinned:
|
|
1917
|
+
}, Xt = {
|
|
1918
|
+
timeframe: _t,
|
|
1919
|
+
threshold: Nt,
|
|
1920
|
+
slots: Dt,
|
|
1921
|
+
size: Ct,
|
|
1922
|
+
color: kt,
|
|
1923
|
+
pinned: xt
|
|
1924
1924
|
};
|
|
1925
|
-
function
|
|
1925
|
+
function He(...e) {
|
|
1926
1926
|
return e.filter(Boolean).join(" ");
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function Jt() {
|
|
1929
1929
|
const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
1930
1930
|
return L(() => {
|
|
1931
1931
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
1932
|
-
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (
|
|
1932
|
+
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (s) => t(s.matches);
|
|
1933
1933
|
return typeof n.addEventListener == "function" ? (n.addEventListener("change", a), () => n.removeEventListener("change", a)) : (n.addListener?.(a), () => {
|
|
1934
1934
|
n.removeListener?.(a);
|
|
1935
1935
|
});
|
|
1936
1936
|
}, []), e;
|
|
1937
1937
|
}
|
|
1938
|
-
const
|
|
1938
|
+
const ea = ({
|
|
1939
1939
|
dimensions: e,
|
|
1940
1940
|
onDimensionSelect: t,
|
|
1941
1941
|
activeDimension: n,
|
|
1942
1942
|
ariaCardTypeLabel: a,
|
|
1943
|
-
className:
|
|
1943
|
+
className: s
|
|
1944
1944
|
}) => {
|
|
1945
|
-
const
|
|
1945
|
+
const i = M(null), o = M([]), l = Jt(), m = ye(() => Array.from(e), [e]);
|
|
1946
1946
|
if (m.length === 0) return null;
|
|
1947
|
-
const
|
|
1948
|
-
const
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1947
|
+
const d = a ? `Configure ${a}: choose a dimension` : void 0, g = l ? "10ms" : "200ms", f = (u, p) => {
|
|
1948
|
+
const N = m.length - 1, y = (h) => {
|
|
1949
|
+
const R = o.current[h];
|
|
1950
|
+
R && R.focus();
|
|
1951
1951
|
};
|
|
1952
|
-
switch (
|
|
1952
|
+
switch (u.key) {
|
|
1953
1953
|
case "ArrowRight":
|
|
1954
1954
|
case "ArrowDown": {
|
|
1955
|
-
|
|
1955
|
+
u.preventDefault(), y(p === N ? 0 : p + 1);
|
|
1956
1956
|
break;
|
|
1957
1957
|
}
|
|
1958
1958
|
case "ArrowLeft":
|
|
1959
1959
|
case "ArrowUp": {
|
|
1960
|
-
|
|
1960
|
+
u.preventDefault(), y(p === 0 ? N : p - 1);
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
case "Home": {
|
|
1964
|
-
|
|
1964
|
+
u.preventDefault(), y(0);
|
|
1965
1965
|
break;
|
|
1966
1966
|
}
|
|
1967
1967
|
case "End": {
|
|
1968
|
-
|
|
1968
|
+
u.preventDefault(), y(N);
|
|
1969
1969
|
break;
|
|
1970
1970
|
}
|
|
1971
1971
|
case "Enter":
|
|
1972
1972
|
case " ": {
|
|
1973
|
-
|
|
1973
|
+
u.preventDefault(), t(m[p]);
|
|
1974
1974
|
break;
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
};
|
|
1978
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ r(
|
|
1979
1979
|
"div",
|
|
1980
1980
|
{
|
|
1981
|
-
ref:
|
|
1981
|
+
ref: i,
|
|
1982
1982
|
role: "group",
|
|
1983
|
-
"aria-label":
|
|
1984
|
-
className:
|
|
1983
|
+
"aria-label": d,
|
|
1984
|
+
className: He("gloss-reconfig-backside-buttons", s),
|
|
1985
1985
|
style: {
|
|
1986
1986
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
1987
1987
|
// so the SCSS transition rule can consume it without a nested media
|
|
1988
1988
|
// query in the JS. Also surfaces the value for the unit test.
|
|
1989
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
1989
|
+
"--gloss-reconfig-backside-buttons-transition-duration": g
|
|
1990
1990
|
},
|
|
1991
|
-
children: m.map((
|
|
1992
|
-
const
|
|
1993
|
-
return /* @__PURE__ */
|
|
1991
|
+
children: m.map((u, p) => {
|
|
1992
|
+
const N = Xt[u], y = n === u;
|
|
1993
|
+
return /* @__PURE__ */ D(
|
|
1994
1994
|
"button",
|
|
1995
1995
|
{
|
|
1996
|
-
ref: (
|
|
1997
|
-
o.current[
|
|
1996
|
+
ref: (h) => {
|
|
1997
|
+
o.current[p] = h;
|
|
1998
1998
|
},
|
|
1999
1999
|
type: "button",
|
|
2000
|
-
"data-dimension":
|
|
2001
|
-
className:
|
|
2000
|
+
"data-dimension": u,
|
|
2001
|
+
className: He(
|
|
2002
2002
|
"gloss-reconfig-backside-buttons__button",
|
|
2003
2003
|
y && "gloss-reconfig-backside-buttons__button--active"
|
|
2004
2004
|
),
|
|
2005
2005
|
"aria-current": y ? "true" : void 0,
|
|
2006
|
-
onClick: () => t(
|
|
2007
|
-
onKeyDown: (
|
|
2006
|
+
onClick: () => t(u),
|
|
2007
|
+
onKeyDown: (h) => f(h, p),
|
|
2008
2008
|
children: [
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
|
|
2009
|
+
/* @__PURE__ */ r(
|
|
2010
|
+
N,
|
|
2011
2011
|
{
|
|
2012
2012
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
2013
2013
|
"aria-hidden": "true"
|
|
2014
2014
|
}
|
|
2015
2015
|
),
|
|
2016
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Qt[u] })
|
|
2017
2017
|
]
|
|
2018
2018
|
},
|
|
2019
|
-
|
|
2019
|
+
u
|
|
2020
2020
|
);
|
|
2021
2021
|
})
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
};
|
|
2025
|
-
|
|
2025
|
+
ea.displayName = "ReconfigBacksideButtons";
|
|
2026
2026
|
function Q(e, t) {
|
|
2027
2027
|
return {
|
|
2028
2028
|
id: e,
|
|
2029
2029
|
colSpan: 1,
|
|
2030
|
-
content:
|
|
2030
|
+
content: H.createElement("div", {
|
|
2031
2031
|
style: {
|
|
2032
2032
|
width: "100%",
|
|
2033
2033
|
height: "100%",
|
|
@@ -2043,38 +2043,38 @@ function Q(e, t) {
|
|
|
2043
2043
|
}, t)
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function Ue(e, t) {
|
|
2047
2047
|
return {
|
|
2048
2048
|
...Q(e, t),
|
|
2049
2049
|
colSpan: 2
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
|
-
const
|
|
2052
|
+
const qn = [
|
|
2053
2053
|
Q("total-revenue", "Total Revenue"),
|
|
2054
2054
|
Q("total-orders", "Total Orders"),
|
|
2055
|
-
|
|
2055
|
+
Ue("revenue-trend", "Revenue Trend (2x)"),
|
|
2056
2056
|
Q("avg-order", "Avg Order Value"),
|
|
2057
2057
|
Q("new-customers", "New Customers"),
|
|
2058
2058
|
Q("top-salesperson", "Top Salesperson"),
|
|
2059
|
-
|
|
2059
|
+
Ue("order-trend", "Order Trend (2x)"),
|
|
2060
2060
|
Q("repeat-rate", "Repeat Rate"),
|
|
2061
2061
|
Q("open-orders", "Open Orders"),
|
|
2062
2062
|
Q("shipped-orders", "Shipped Orders")
|
|
2063
|
-
],
|
|
2063
|
+
], Yn = {
|
|
2064
2064
|
columns: 6,
|
|
2065
2065
|
rowHeight: 120,
|
|
2066
2066
|
gap: 15,
|
|
2067
2067
|
maxRows: 3,
|
|
2068
2068
|
currentPage: 0,
|
|
2069
2069
|
totalPages: 1
|
|
2070
|
-
},
|
|
2070
|
+
}, Qn = {
|
|
2071
2071
|
columns: 9,
|
|
2072
2072
|
rowHeight: 120,
|
|
2073
2073
|
gap: 15,
|
|
2074
2074
|
maxRows: 3,
|
|
2075
2075
|
currentPage: 0,
|
|
2076
2076
|
totalPages: 2
|
|
2077
|
-
},
|
|
2077
|
+
}, Xn = {
|
|
2078
2078
|
columns: 12,
|
|
2079
2079
|
rowHeight: 120,
|
|
2080
2080
|
gap: 15,
|
|
@@ -2082,15 +2082,15 @@ const An = [
|
|
|
2082
2082
|
currentPage: 0,
|
|
2083
2083
|
totalPages: 3
|
|
2084
2084
|
};
|
|
2085
|
-
function
|
|
2086
|
-
return
|
|
2085
|
+
function Re(e) {
|
|
2086
|
+
return H.createElement("span", { style: { fontSize: 14 } }, e);
|
|
2087
2087
|
}
|
|
2088
|
-
const
|
|
2088
|
+
const Jn = [
|
|
2089
2089
|
{
|
|
2090
2090
|
id: "all-orders",
|
|
2091
2091
|
type: "orders",
|
|
2092
2092
|
name: "All Orders",
|
|
2093
|
-
icon:
|
|
2093
|
+
icon: Re("📋"),
|
|
2094
2094
|
closable: !1,
|
|
2095
2095
|
autoCreated: !0
|
|
2096
2096
|
},
|
|
@@ -2098,17 +2098,17 @@ const Bn = [
|
|
|
2098
2098
|
id: "open-orders",
|
|
2099
2099
|
type: "orders",
|
|
2100
2100
|
name: "Open Orders",
|
|
2101
|
-
icon:
|
|
2101
|
+
icon: Re("📦"),
|
|
2102
2102
|
closable: !0
|
|
2103
2103
|
},
|
|
2104
2104
|
{
|
|
2105
2105
|
id: "shipped-orders",
|
|
2106
2106
|
type: "orders",
|
|
2107
2107
|
name: "Shipped Orders",
|
|
2108
|
-
icon:
|
|
2108
|
+
icon: Re("🚚"),
|
|
2109
2109
|
closable: !0
|
|
2110
2110
|
}
|
|
2111
|
-
],
|
|
2111
|
+
], er = [
|
|
2112
2112
|
{
|
|
2113
2113
|
id: "orders-main",
|
|
2114
2114
|
type: "orders",
|
|
@@ -2134,7 +2134,7 @@ const Bn = [
|
|
|
2134
2134
|
name: "Customers",
|
|
2135
2135
|
closable: !0
|
|
2136
2136
|
}
|
|
2137
|
-
],
|
|
2137
|
+
], tr = [
|
|
2138
2138
|
{
|
|
2139
2139
|
id: "only-tab",
|
|
2140
2140
|
type: "orders",
|
|
@@ -2142,7 +2142,7 @@ const Bn = [
|
|
|
2142
2142
|
closable: !1,
|
|
2143
2143
|
autoCreated: !0
|
|
2144
2144
|
}
|
|
2145
|
-
],
|
|
2145
|
+
], ar = [
|
|
2146
2146
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
2147
2147
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
2148
2148
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -2154,7 +2154,7 @@ const Bn = [
|
|
|
2154
2154
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
2155
2155
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
2156
2156
|
];
|
|
2157
|
-
function
|
|
2157
|
+
function Fe(e) {
|
|
2158
2158
|
switch (e) {
|
|
2159
2159
|
case "wide":
|
|
2160
2160
|
return { cols: 2, rows: 1 };
|
|
@@ -2165,40 +2165,40 @@ function Se(e) {
|
|
|
2165
2165
|
return { cols: 1, rows: 1 };
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function ta(e) {
|
|
2169
2169
|
let t = 0;
|
|
2170
2170
|
for (const a of e) {
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2171
|
+
const s = Fe(a.size), i = a.gridPosition.col + s.cols - 1;
|
|
2172
|
+
i > t && (t = i);
|
|
2173
2173
|
}
|
|
2174
2174
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
2175
2175
|
}
|
|
2176
|
-
const
|
|
2176
|
+
const aa = function(t) {
|
|
2177
2177
|
if (t.renderMode === "discrete")
|
|
2178
|
-
return /* @__PURE__ */
|
|
2178
|
+
return /* @__PURE__ */ r(
|
|
2179
2179
|
"div",
|
|
2180
2180
|
{
|
|
2181
2181
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
2182
2182
|
style: { display: "contents" },
|
|
2183
|
-
children: t.cards.map((
|
|
2184
|
-
const
|
|
2185
|
-
return /* @__PURE__ */
|
|
2183
|
+
children: t.cards.map((s) => {
|
|
2184
|
+
const i = Fe(s.size);
|
|
2185
|
+
return /* @__PURE__ */ r(
|
|
2186
2186
|
"div",
|
|
2187
2187
|
{
|
|
2188
2188
|
className: "gloss-metric-group__slot",
|
|
2189
2189
|
style: {
|
|
2190
|
-
gridColumn: `${
|
|
2191
|
-
gridRow: `${
|
|
2190
|
+
gridColumn: `${s.gridPosition.col} / span ${i.cols}`,
|
|
2191
|
+
gridRow: `${s.gridPosition.row} / span ${i.rows}`
|
|
2192
2192
|
},
|
|
2193
|
-
children:
|
|
2193
|
+
children: s.children
|
|
2194
2194
|
},
|
|
2195
|
-
|
|
2195
|
+
s.key
|
|
2196
2196
|
);
|
|
2197
2197
|
})
|
|
2198
2198
|
}
|
|
2199
2199
|
);
|
|
2200
2200
|
const { cards: n, composite: a } = t;
|
|
2201
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ D(
|
|
2202
2202
|
"div",
|
|
2203
2203
|
{
|
|
2204
2204
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -2217,16 +2217,16 @@ const qt = function(t) {
|
|
|
2217
2217
|
"aria-label": a?.label,
|
|
2218
2218
|
tabIndex: void 0,
|
|
2219
2219
|
children: [
|
|
2220
|
-
a?.accentColor && /* @__PURE__ */
|
|
2220
|
+
a?.accentColor && /* @__PURE__ */ r(
|
|
2221
2221
|
"div",
|
|
2222
2222
|
{
|
|
2223
2223
|
className: "gloss-metric-group__accent",
|
|
2224
2224
|
style: { background: a.accentColor }
|
|
2225
2225
|
}
|
|
2226
2226
|
),
|
|
2227
|
-
a?.label && /* @__PURE__ */
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
a?.trend && /* @__PURE__ */
|
|
2227
|
+
a?.label && /* @__PURE__ */ D("div", { className: "gloss-metric-group__label", children: [
|
|
2228
|
+
/* @__PURE__ */ r("span", { children: a.label }),
|
|
2229
|
+
a?.trend && /* @__PURE__ */ r(
|
|
2230
2230
|
"span",
|
|
2231
2231
|
{
|
|
2232
2232
|
className: "gloss-metric-group__trend",
|
|
@@ -2235,28 +2235,28 @@ const qt = function(t) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
)
|
|
2237
2237
|
] }),
|
|
2238
|
-
/* @__PURE__ */
|
|
2238
|
+
/* @__PURE__ */ r(
|
|
2239
2239
|
"div",
|
|
2240
2240
|
{
|
|
2241
2241
|
className: "gloss-metric-group__slots",
|
|
2242
2242
|
style: {
|
|
2243
2243
|
display: "grid",
|
|
2244
2244
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2245
|
-
gridTemplateColumns:
|
|
2245
|
+
gridTemplateColumns: ta(n)
|
|
2246
2246
|
},
|
|
2247
|
-
children: n.map((
|
|
2248
|
-
const
|
|
2249
|
-
return /* @__PURE__ */
|
|
2247
|
+
children: n.map((s) => {
|
|
2248
|
+
const i = Fe(s.size);
|
|
2249
|
+
return /* @__PURE__ */ r(
|
|
2250
2250
|
"div",
|
|
2251
2251
|
{
|
|
2252
2252
|
className: "gloss-metric-group__slot--composite",
|
|
2253
2253
|
style: {
|
|
2254
|
-
gridColumn: `${
|
|
2255
|
-
gridRow: `${
|
|
2254
|
+
gridColumn: `${s.gridPosition.col} / span ${i.cols}`,
|
|
2255
|
+
gridRow: `${s.gridPosition.row} / span ${i.rows}`
|
|
2256
2256
|
},
|
|
2257
|
-
children:
|
|
2257
|
+
children: s.children
|
|
2258
2258
|
},
|
|
2259
|
-
|
|
2259
|
+
s.key
|
|
2260
2260
|
);
|
|
2261
2261
|
})
|
|
2262
2262
|
}
|
|
@@ -2265,48 +2265,48 @@ const qt = function(t) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
);
|
|
2267
2267
|
};
|
|
2268
|
-
|
|
2269
|
-
const
|
|
2270
|
-
...
|
|
2268
|
+
aa.displayName = "MetricGroupContainer";
|
|
2269
|
+
const et = "resize.tuning.dev", na = {
|
|
2270
|
+
...qe,
|
|
2271
2271
|
snapInPx: 60,
|
|
2272
2272
|
snapOutPx: 90
|
|
2273
|
-
},
|
|
2274
|
-
function
|
|
2275
|
-
if (typeof window > "u") return { ...
|
|
2273
|
+
}, re = na;
|
|
2274
|
+
function ra() {
|
|
2275
|
+
if (typeof window > "u") return { ...re };
|
|
2276
2276
|
try {
|
|
2277
|
-
const e = window.localStorage.getItem(
|
|
2278
|
-
if (!e) return { ...
|
|
2277
|
+
const e = window.localStorage.getItem(et);
|
|
2278
|
+
if (!e) return { ...re };
|
|
2279
2279
|
const t = JSON.parse(e);
|
|
2280
|
-
return !t || typeof t != "object" || Array.isArray(t) ? { ...
|
|
2280
|
+
return !t || typeof t != "object" || Array.isArray(t) ? { ...re } : { ...re, ...t };
|
|
2281
2281
|
} catch {
|
|
2282
|
-
return { ...
|
|
2282
|
+
return { ...re };
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2286
|
-
const [e, t] = $(() =>
|
|
2285
|
+
function sa() {
|
|
2286
|
+
const [e, t] = $(() => ra());
|
|
2287
2287
|
L(() => {
|
|
2288
2288
|
if (!(typeof window > "u"))
|
|
2289
2289
|
try {
|
|
2290
|
-
window.localStorage.setItem(
|
|
2290
|
+
window.localStorage.setItem(et, JSON.stringify(e));
|
|
2291
2291
|
} catch {
|
|
2292
2292
|
}
|
|
2293
2293
|
}, [e]);
|
|
2294
2294
|
const n = w(
|
|
2295
|
-
(
|
|
2296
|
-
t((l) => ({ ...l, [
|
|
2295
|
+
(i, o) => {
|
|
2296
|
+
t((l) => ({ ...l, [i]: o }));
|
|
2297
2297
|
},
|
|
2298
2298
|
[]
|
|
2299
2299
|
), a = w(
|
|
2300
|
-
(
|
|
2301
|
-
t((o) => ({ ...o, [
|
|
2300
|
+
(i) => {
|
|
2301
|
+
t((o) => ({ ...o, [i]: re[i] }));
|
|
2302
2302
|
},
|
|
2303
2303
|
[]
|
|
2304
|
-
),
|
|
2305
|
-
t({ ...
|
|
2304
|
+
), s = w(() => {
|
|
2305
|
+
t({ ...re });
|
|
2306
2306
|
}, []);
|
|
2307
|
-
return { values: e, setValue: n, resetRow: a, resetAll:
|
|
2307
|
+
return { values: e, setValue: n, resetRow: a, resetAll: s };
|
|
2308
2308
|
}
|
|
2309
|
-
const
|
|
2309
|
+
const ia = [
|
|
2310
2310
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2311
2311
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2312
2312
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2317,11 +2317,11 @@ const Jt = [
|
|
|
2317
2317
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2318
2318
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2319
2319
|
];
|
|
2320
|
-
function
|
|
2320
|
+
function oa(e, t) {
|
|
2321
2321
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2324
|
-
return /* @__PURE__ */
|
|
2323
|
+
function la() {
|
|
2324
|
+
return /* @__PURE__ */ D(
|
|
2325
2325
|
"svg",
|
|
2326
2326
|
{
|
|
2327
2327
|
width: "14",
|
|
@@ -2334,32 +2334,32 @@ function ta() {
|
|
|
2334
2334
|
strokeLinejoin: "round",
|
|
2335
2335
|
"aria-hidden": "true",
|
|
2336
2336
|
children: [
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ r("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
2338
|
+
/* @__PURE__ */ r("polyline", { points: "3 3 3 8 8 8" })
|
|
2339
2339
|
]
|
|
2340
2340
|
}
|
|
2341
2341
|
);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2344
|
-
const
|
|
2343
|
+
function ca({ spec: e, value: t, onChange: n, onReset: a, flashing: s }) {
|
|
2344
|
+
const i = w(
|
|
2345
2345
|
(o) => {
|
|
2346
2346
|
(o.key === "r" || o.key === "R") && (o.preventDefault(), a());
|
|
2347
2347
|
},
|
|
2348
2348
|
[a]
|
|
2349
2349
|
);
|
|
2350
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ D(
|
|
2351
2351
|
"div",
|
|
2352
2352
|
{
|
|
2353
|
-
className: `gloss-dev-tuning-panel__row${
|
|
2353
|
+
className: `gloss-dev-tuning-panel__row${s ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
2354
2354
|
"data-tuning-row": e.key,
|
|
2355
|
-
onKeyDown:
|
|
2355
|
+
onKeyDown: i,
|
|
2356
2356
|
children: [
|
|
2357
|
-
/* @__PURE__ */
|
|
2358
|
-
/* @__PURE__ */
|
|
2359
|
-
|
|
2357
|
+
/* @__PURE__ */ r("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2358
|
+
/* @__PURE__ */ D("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2359
|
+
oa(t, e.step),
|
|
2360
2360
|
e.unit ? ` ${e.unit}` : ""
|
|
2361
2361
|
] }),
|
|
2362
|
-
/* @__PURE__ */
|
|
2362
|
+
/* @__PURE__ */ r(
|
|
2363
2363
|
"input",
|
|
2364
2364
|
{
|
|
2365
2365
|
id: `gloss-dtp-${e.key}`,
|
|
@@ -2373,21 +2373,21 @@ function aa({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
|
|
|
2373
2373
|
onChange: (o) => n(Number(o.target.value))
|
|
2374
2374
|
}
|
|
2375
2375
|
),
|
|
2376
|
-
/* @__PURE__ */
|
|
2376
|
+
/* @__PURE__ */ r(
|
|
2377
2377
|
"button",
|
|
2378
2378
|
{
|
|
2379
2379
|
type: "button",
|
|
2380
2380
|
className: "gloss-dev-tuning-panel__reset",
|
|
2381
2381
|
"aria-label": `Reset ${e.label}`,
|
|
2382
2382
|
onClick: a,
|
|
2383
|
-
children: /* @__PURE__ */
|
|
2383
|
+
children: /* @__PURE__ */ r(la, {})
|
|
2384
2384
|
}
|
|
2385
2385
|
)
|
|
2386
2386
|
]
|
|
2387
2387
|
}
|
|
2388
2388
|
);
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function da() {
|
|
2391
2391
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2392
2392
|
try {
|
|
2393
2393
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2395,23 +2395,23 @@ function na() {
|
|
|
2395
2395
|
return !1;
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2399
|
-
return
|
|
2398
|
+
function ua(e = {}) {
|
|
2399
|
+
return da() ? /* @__PURE__ */ r(ma, {}) : null;
|
|
2400
2400
|
}
|
|
2401
|
-
|
|
2402
|
-
function
|
|
2403
|
-
const e =
|
|
2404
|
-
l.current && clearTimeout(l.current), o(
|
|
2401
|
+
ua.displayName = "DevTuningPanel";
|
|
2402
|
+
function ma() {
|
|
2403
|
+
const e = sa(), { values: t, setValue: n, resetRow: a, resetAll: s } = e, [i, o] = $(null), l = M(null), m = w((u) => {
|
|
2404
|
+
l.current && clearTimeout(l.current), o(u), l.current = setTimeout(() => {
|
|
2405
2405
|
o(null), l.current = null;
|
|
2406
2406
|
}, 200);
|
|
2407
|
-
}, []),
|
|
2408
|
-
(
|
|
2409
|
-
n(
|
|
2407
|
+
}, []), d = w(
|
|
2408
|
+
(u, p) => {
|
|
2409
|
+
n(u, p), u === "snapInPx" && p > t.snapOutPx && (n("snapOutPx", p), m("snapOutPx"));
|
|
2410
2410
|
},
|
|
2411
2411
|
[n, t.snapOutPx, m]
|
|
2412
|
-
),
|
|
2413
|
-
return /* @__PURE__ */
|
|
2414
|
-
|
|
2412
|
+
), g = ye(() => ia, []), f = bt();
|
|
2413
|
+
return /* @__PURE__ */ D(
|
|
2414
|
+
De.div,
|
|
2415
2415
|
{
|
|
2416
2416
|
className: "gloss-dev-tuning-panel",
|
|
2417
2417
|
role: "region",
|
|
@@ -2419,37 +2419,37 @@ function sa() {
|
|
|
2419
2419
|
"data-testid": "gloss-dev-tuning-panel",
|
|
2420
2420
|
drag: !0,
|
|
2421
2421
|
dragListener: !1,
|
|
2422
|
-
dragControls:
|
|
2422
|
+
dragControls: f,
|
|
2423
2423
|
dragMomentum: !1,
|
|
2424
2424
|
children: [
|
|
2425
|
-
/* @__PURE__ */
|
|
2425
|
+
/* @__PURE__ */ D(
|
|
2426
2426
|
"div",
|
|
2427
2427
|
{
|
|
2428
2428
|
className: "gloss-dev-tuning-panel__header",
|
|
2429
|
-
onPointerDown: (
|
|
2429
|
+
onPointerDown: (u) => f.start(u),
|
|
2430
2430
|
children: [
|
|
2431
|
-
/* @__PURE__ */
|
|
2432
|
-
/* @__PURE__ */
|
|
2431
|
+
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2432
|
+
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2433
2433
|
]
|
|
2434
2434
|
}
|
|
2435
2435
|
),
|
|
2436
|
-
/* @__PURE__ */
|
|
2437
|
-
|
|
2436
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: g.map((u) => /* @__PURE__ */ r(
|
|
2437
|
+
ca,
|
|
2438
2438
|
{
|
|
2439
|
-
spec:
|
|
2440
|
-
value: t[
|
|
2441
|
-
onChange: (
|
|
2442
|
-
onReset: () => a(
|
|
2443
|
-
flashing:
|
|
2439
|
+
spec: u,
|
|
2440
|
+
value: t[u.key],
|
|
2441
|
+
onChange: (p) => d(u.key, p),
|
|
2442
|
+
onReset: () => a(u.key),
|
|
2443
|
+
flashing: i === u.key
|
|
2444
2444
|
},
|
|
2445
|
-
|
|
2445
|
+
u.key
|
|
2446
2446
|
)) }),
|
|
2447
|
-
/* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ r(
|
|
2448
2448
|
"button",
|
|
2449
2449
|
{
|
|
2450
2450
|
type: "button",
|
|
2451
2451
|
className: "gloss-dev-tuning-panel__reset-all",
|
|
2452
|
-
onClick:
|
|
2452
|
+
onClick: s,
|
|
2453
2453
|
children: "Reset all"
|
|
2454
2454
|
}
|
|
2455
2455
|
) })
|
|
@@ -2457,43 +2457,43 @@ function sa() {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
);
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function nr({
|
|
2461
2461
|
state: e,
|
|
2462
2462
|
originX: t,
|
|
2463
2463
|
originY: n,
|
|
2464
2464
|
leftEdgeX: a,
|
|
2465
|
-
rightEdgeX:
|
|
2466
|
-
minBoundaryX:
|
|
2465
|
+
rightEdgeX: s,
|
|
2466
|
+
minBoundaryX: i,
|
|
2467
2467
|
snapBoundariesX: o,
|
|
2468
2468
|
topY: l,
|
|
2469
2469
|
bottomY: m,
|
|
2470
|
-
enterMs:
|
|
2471
|
-
exitMs:
|
|
2472
|
-
className:
|
|
2473
|
-
style:
|
|
2470
|
+
enterMs: d = se.envelopeEnterMs,
|
|
2471
|
+
exitMs: g = se.envelopeExitMs,
|
|
2472
|
+
className: f,
|
|
2473
|
+
style: u
|
|
2474
2474
|
}) {
|
|
2475
2475
|
if (e === "hidden") return null;
|
|
2476
|
-
const
|
|
2477
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2478
|
-
"--gloss-resize-envelope-exit-ms": `${
|
|
2476
|
+
const p = Math.max(0, s - a), N = Math.max(0, m - l), y = {
|
|
2477
|
+
"--gloss-resize-envelope-enter-ms": `${d}ms`,
|
|
2478
|
+
"--gloss-resize-envelope-exit-ms": `${g}ms`,
|
|
2479
2479
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2480
2480
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
2481
2481
|
left: a,
|
|
2482
2482
|
top: l,
|
|
2483
|
-
width:
|
|
2484
|
-
height:
|
|
2485
|
-
...
|
|
2483
|
+
width: p,
|
|
2484
|
+
height: N,
|
|
2485
|
+
...u
|
|
2486
2486
|
};
|
|
2487
|
-
return /* @__PURE__ */
|
|
2487
|
+
return /* @__PURE__ */ D(
|
|
2488
2488
|
"div",
|
|
2489
2489
|
{
|
|
2490
|
-
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`,
|
|
2490
|
+
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, f].filter(Boolean).join(" "),
|
|
2491
2491
|
"data-state": e,
|
|
2492
2492
|
"data-testid": "gloss-resize-envelope",
|
|
2493
2493
|
style: y,
|
|
2494
2494
|
"aria-hidden": "true",
|
|
2495
2495
|
children: [
|
|
2496
|
-
/* @__PURE__ */
|
|
2496
|
+
/* @__PURE__ */ r(
|
|
2497
2497
|
"div",
|
|
2498
2498
|
{
|
|
2499
2499
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--left",
|
|
@@ -2501,46 +2501,46 @@ function Wn({
|
|
|
2501
2501
|
style: { left: 0 }
|
|
2502
2502
|
}
|
|
2503
2503
|
),
|
|
2504
|
-
/* @__PURE__ */
|
|
2504
|
+
/* @__PURE__ */ r(
|
|
2505
2505
|
"div",
|
|
2506
2506
|
{
|
|
2507
2507
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--min-boundary",
|
|
2508
2508
|
"data-edge": "min-boundary",
|
|
2509
|
-
style: { left:
|
|
2509
|
+
style: { left: i - a }
|
|
2510
2510
|
}
|
|
2511
2511
|
),
|
|
2512
|
-
/* @__PURE__ */
|
|
2512
|
+
/* @__PURE__ */ r(
|
|
2513
2513
|
"div",
|
|
2514
2514
|
{
|
|
2515
2515
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
|
|
2516
2516
|
"data-edge": "right",
|
|
2517
|
-
style: { left:
|
|
2517
|
+
style: { left: p - 1 }
|
|
2518
2518
|
}
|
|
2519
2519
|
),
|
|
2520
|
-
o.filter((
|
|
2520
|
+
o.filter((h) => h > i && h < s).map((h) => /* @__PURE__ */ r(
|
|
2521
2521
|
"div",
|
|
2522
2522
|
{
|
|
2523
2523
|
className: "gloss-resize-envelope__snap-line",
|
|
2524
2524
|
"data-snap-line": !0,
|
|
2525
|
-
style: { left:
|
|
2525
|
+
style: { left: h - a }
|
|
2526
2526
|
},
|
|
2527
|
-
|
|
2527
|
+
h
|
|
2528
2528
|
))
|
|
2529
2529
|
]
|
|
2530
2530
|
}
|
|
2531
2531
|
);
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function rr({
|
|
2534
2534
|
density: e,
|
|
2535
2535
|
canAccept: t,
|
|
2536
2536
|
blocked: n = !1,
|
|
2537
2537
|
proximityOpacity: a,
|
|
2538
|
-
className:
|
|
2539
|
-
children:
|
|
2538
|
+
className: s,
|
|
2539
|
+
children: i,
|
|
2540
2540
|
...o
|
|
2541
2541
|
}) {
|
|
2542
2542
|
const l = a != null ? { ...o.style, "--_proximity-opacity": String(a) } : o.style;
|
|
2543
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ r(
|
|
2544
2544
|
"div",
|
|
2545
2545
|
{
|
|
2546
2546
|
...o,
|
|
@@ -2553,65 +2553,65 @@ function Hn({
|
|
|
2553
2553
|
className: [
|
|
2554
2554
|
"gloss-drop-anchor-cell",
|
|
2555
2555
|
n && "gloss-drop-anchor-cell--blocked-pulse",
|
|
2556
|
-
|
|
2556
|
+
s
|
|
2557
2557
|
].filter(Boolean).join(" "),
|
|
2558
|
-
children:
|
|
2558
|
+
children: i
|
|
2559
2559
|
}
|
|
2560
2560
|
);
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2563
|
-
const
|
|
2564
|
-
return `M${e},${t} Q${
|
|
2562
|
+
function ga(e, t, n, a) {
|
|
2563
|
+
const s = (e + n) / 2, i = Math.min(t, a) - 40;
|
|
2564
|
+
return `M${e},${t} Q${s},${i} ${n},${a}`;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function sr({
|
|
2567
2567
|
segments: e,
|
|
2568
|
-
durationMs: t =
|
|
2569
|
-
staggerMs: n =
|
|
2568
|
+
durationMs: t = se.spilloverArcDurationMs,
|
|
2569
|
+
staggerMs: n = se.spilloverStaggerMs,
|
|
2570
2570
|
className: a,
|
|
2571
|
-
style:
|
|
2571
|
+
style: s
|
|
2572
2572
|
}) {
|
|
2573
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
2573
|
+
return e.length === 0 ? null : /* @__PURE__ */ r(
|
|
2574
2574
|
"svg",
|
|
2575
2575
|
{
|
|
2576
2576
|
className: ["gloss-spillover-arc", a].filter(Boolean).join(" "),
|
|
2577
2577
|
"data-testid": "gloss-spillover-arc",
|
|
2578
2578
|
"aria-hidden": "true",
|
|
2579
2579
|
overflow: "visible",
|
|
2580
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", ...
|
|
2581
|
-
children: e.map((
|
|
2580
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", ...s },
|
|
2581
|
+
children: e.map((i, o) => /* @__PURE__ */ r(
|
|
2582
2582
|
"path",
|
|
2583
2583
|
{
|
|
2584
|
-
"data-arc-id":
|
|
2584
|
+
"data-arc-id": i.id,
|
|
2585
2585
|
className: "gloss-spillover-arc__path",
|
|
2586
|
-
d:
|
|
2586
|
+
d: ga(i.fromX, i.fromY, i.toX, i.toY),
|
|
2587
2587
|
style: {
|
|
2588
2588
|
animationDelay: `${o * n}ms`,
|
|
2589
2589
|
animationDuration: `${t}ms`
|
|
2590
2590
|
}
|
|
2591
2591
|
},
|
|
2592
|
-
|
|
2592
|
+
i.id
|
|
2593
2593
|
))
|
|
2594
2594
|
}
|
|
2595
2595
|
);
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function ir({
|
|
2598
2598
|
state: e,
|
|
2599
2599
|
staggerIndex: t = 0,
|
|
2600
|
-
fadeInMs: n =
|
|
2601
|
-
fadeOutMs: a =
|
|
2602
|
-
staggerMs:
|
|
2603
|
-
variant:
|
|
2600
|
+
fadeInMs: n = se.sectionDividerFadeInMs,
|
|
2601
|
+
fadeOutMs: a = se.sectionDividerFadeOutMs,
|
|
2602
|
+
staggerMs: s = se.sectionDividerStaggerMs,
|
|
2603
|
+
variant: i = "dashed",
|
|
2604
2604
|
className: o,
|
|
2605
2605
|
style: l,
|
|
2606
2606
|
...m
|
|
2607
2607
|
}) {
|
|
2608
|
-
const
|
|
2608
|
+
const d = {
|
|
2609
2609
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2610
2610
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2611
|
-
"--gloss-section-divider-stagger-delay": `${t *
|
|
2611
|
+
"--gloss-section-divider-stagger-delay": `${t * s}ms`,
|
|
2612
2612
|
...l
|
|
2613
2613
|
};
|
|
2614
|
-
return /* @__PURE__ */
|
|
2614
|
+
return /* @__PURE__ */ r(
|
|
2615
2615
|
"div",
|
|
2616
2616
|
{
|
|
2617
2617
|
...m,
|
|
@@ -2621,49 +2621,49 @@ function Un({
|
|
|
2621
2621
|
className: [
|
|
2622
2622
|
"gloss-section-divider",
|
|
2623
2623
|
`gloss-section-divider--state-${e}`,
|
|
2624
|
-
|
|
2624
|
+
i === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2625
2625
|
o
|
|
2626
2626
|
].filter(Boolean).join(" "),
|
|
2627
|
-
style:
|
|
2627
|
+
style: d
|
|
2628
2628
|
}
|
|
2629
2629
|
);
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function or({
|
|
2632
2632
|
enabled: e,
|
|
2633
2633
|
onPack: t,
|
|
2634
2634
|
ariaLabel: n = "Pack row (shift cards left)",
|
|
2635
2635
|
className: a,
|
|
2636
|
-
style:
|
|
2636
|
+
style: s
|
|
2637
2637
|
}) {
|
|
2638
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ r(Ze, { visible: e, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2639
2639
|
"button",
|
|
2640
2640
|
{
|
|
2641
2641
|
type: "button",
|
|
2642
2642
|
"data-testid": "gloss-empty-cell-pack",
|
|
2643
2643
|
"aria-label": n,
|
|
2644
2644
|
className: ["gloss-empty-cell-pack-affordance", a].filter(Boolean).join(" "),
|
|
2645
|
-
style:
|
|
2646
|
-
onClick: (
|
|
2647
|
-
|
|
2645
|
+
style: s,
|
|
2646
|
+
onClick: (i) => {
|
|
2647
|
+
i.stopPropagation(), t();
|
|
2648
2648
|
},
|
|
2649
|
-
children: /* @__PURE__ */
|
|
2649
|
+
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2650
2650
|
}
|
|
2651
2651
|
) });
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function lr({
|
|
2654
2654
|
tint: e,
|
|
2655
2655
|
colSpan: t,
|
|
2656
2656
|
colWidth: n,
|
|
2657
2657
|
rowHeight: a,
|
|
2658
|
-
gap:
|
|
2659
|
-
x:
|
|
2658
|
+
gap: s,
|
|
2659
|
+
x: i,
|
|
2660
2660
|
y: o,
|
|
2661
2661
|
children: l,
|
|
2662
2662
|
className: m
|
|
2663
2663
|
}) {
|
|
2664
|
-
const
|
|
2665
|
-
return /* @__PURE__ */
|
|
2666
|
-
|
|
2664
|
+
const d = t * n + (t - 1) * s;
|
|
2665
|
+
return /* @__PURE__ */ r(
|
|
2666
|
+
De.div,
|
|
2667
2667
|
{
|
|
2668
2668
|
"data-testid": "gloss-drag-ghost",
|
|
2669
2669
|
"data-tint": e,
|
|
@@ -2673,44 +2673,44 @@ function Zn({
|
|
|
2673
2673
|
`gloss-drag-ghost--tint-${e}`,
|
|
2674
2674
|
m
|
|
2675
2675
|
].filter(Boolean).join(" "),
|
|
2676
|
-
style: { x:
|
|
2676
|
+
style: { x: i, y: o, width: d, height: a },
|
|
2677
2677
|
children: l
|
|
2678
2678
|
}
|
|
2679
2679
|
);
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2682
|
-
function
|
|
2681
|
+
const pa = 3;
|
|
2682
|
+
function cr({
|
|
2683
2683
|
cell: e,
|
|
2684
2684
|
colSpan: t,
|
|
2685
2685
|
colWidth: n,
|
|
2686
2686
|
gap: a,
|
|
2687
|
-
rowHeight:
|
|
2688
|
-
transitionMs:
|
|
2687
|
+
rowHeight: s,
|
|
2688
|
+
transitionMs: i = 120,
|
|
2689
2689
|
className: o
|
|
2690
2690
|
}) {
|
|
2691
|
-
const l = t * n + (t - 1) * a,
|
|
2692
|
-
return /* @__PURE__ */
|
|
2691
|
+
const l = t * n + (t - 1) * a, d = (e.section * pa + e.col) * (n + a), g = e.row * (s + a);
|
|
2692
|
+
return /* @__PURE__ */ r(
|
|
2693
2693
|
"div",
|
|
2694
2694
|
{
|
|
2695
2695
|
className: ["gloss-drag-feedback-snap-outline", o].filter(Boolean).join(" "),
|
|
2696
2696
|
"data-testid": "gloss-snap-outline",
|
|
2697
2697
|
"aria-hidden": "true",
|
|
2698
2698
|
style: {
|
|
2699
|
-
transform: `translate(${
|
|
2699
|
+
transform: `translate(${d}px, ${g}px)`,
|
|
2700
2700
|
width: l,
|
|
2701
|
-
height:
|
|
2702
|
-
transition: `transform ${
|
|
2701
|
+
height: s,
|
|
2702
|
+
transition: `transform ${i}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
);
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function dr({
|
|
2708
2708
|
items: e,
|
|
2709
2709
|
children: t,
|
|
2710
2710
|
className: n
|
|
2711
2711
|
}) {
|
|
2712
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
2713
|
-
|
|
2712
|
+
return e.length === 0 ? null : /* @__PURE__ */ r(te, { children: e.map((a) => /* @__PURE__ */ r(
|
|
2713
|
+
De.div,
|
|
2714
2714
|
{
|
|
2715
2715
|
"data-card-id": a.cardId,
|
|
2716
2716
|
"data-testid": "gloss-cascade-preview-item",
|
|
@@ -2722,29 +2722,29 @@ function Yn({
|
|
|
2722
2722
|
a.cardId
|
|
2723
2723
|
)) });
|
|
2724
2724
|
}
|
|
2725
|
-
const
|
|
2725
|
+
const ha = ({
|
|
2726
2726
|
consumed: e,
|
|
2727
2727
|
elapsed: t,
|
|
2728
2728
|
severity: n = "neutral"
|
|
2729
2729
|
}) => {
|
|
2730
|
-
const a =
|
|
2730
|
+
const a = M(null), s = M(null);
|
|
2731
2731
|
L(() => {
|
|
2732
2732
|
const l = requestAnimationFrame(() => {
|
|
2733
|
-
a.current && (a.current.style.width = `${e.value}%`),
|
|
2733
|
+
a.current && (a.current.style.width = `${e.value}%`), s.current && (s.current.style.width = `${t.value}%`);
|
|
2734
2734
|
});
|
|
2735
2735
|
return () => cancelAnimationFrame(l);
|
|
2736
2736
|
}, [e.value, t.value]);
|
|
2737
|
-
const
|
|
2738
|
-
return /* @__PURE__ */
|
|
2737
|
+
const i = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
2738
|
+
return /* @__PURE__ */ D(
|
|
2739
2739
|
"div",
|
|
2740
2740
|
{
|
|
2741
2741
|
className: "gloss-dual-pace-bars",
|
|
2742
2742
|
role: "img",
|
|
2743
|
-
"aria-label": `${
|
|
2743
|
+
"aria-label": `${i}: ${e.value}%, ${o}: ${t.value}%`,
|
|
2744
2744
|
children: [
|
|
2745
|
-
/* @__PURE__ */
|
|
2746
|
-
/* @__PURE__ */
|
|
2747
|
-
/* @__PURE__ */
|
|
2745
|
+
/* @__PURE__ */ D("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
2746
|
+
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: i }),
|
|
2747
|
+
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
2748
2748
|
"div",
|
|
2749
2749
|
{
|
|
2750
2750
|
ref: a,
|
|
@@ -2754,20 +2754,20 @@ const la = ({
|
|
|
2754
2754
|
"aria-valuenow": e.value,
|
|
2755
2755
|
"aria-valuemin": 0,
|
|
2756
2756
|
"aria-valuemax": 100,
|
|
2757
|
-
"aria-label": `${
|
|
2757
|
+
"aria-label": `${i}: ${e.value}%`
|
|
2758
2758
|
}
|
|
2759
2759
|
) }),
|
|
2760
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ D("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
2761
2761
|
e.value,
|
|
2762
2762
|
"%"
|
|
2763
2763
|
] })
|
|
2764
2764
|
] }),
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
/* @__PURE__ */
|
|
2767
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ D("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
2766
|
+
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: o }),
|
|
2767
|
+
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
2768
2768
|
"div",
|
|
2769
2769
|
{
|
|
2770
|
-
ref:
|
|
2770
|
+
ref: s,
|
|
2771
2771
|
className: "gloss-dual-pace-bars__fill gloss-dual-pace-bars__fill--elapsed",
|
|
2772
2772
|
style: { width: "0%" },
|
|
2773
2773
|
role: "meter",
|
|
@@ -2777,7 +2777,7 @@ const la = ({
|
|
|
2777
2777
|
"aria-label": `${o}: ${t.value}%`
|
|
2778
2778
|
}
|
|
2779
2779
|
) }),
|
|
2780
|
-
/* @__PURE__ */
|
|
2780
|
+
/* @__PURE__ */ D("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
2781
2781
|
t.value,
|
|
2782
2782
|
"%"
|
|
2783
2783
|
] })
|
|
@@ -2785,26 +2785,26 @@ const la = ({
|
|
|
2785
2785
|
]
|
|
2786
2786
|
}
|
|
2787
2787
|
);
|
|
2788
|
-
},
|
|
2788
|
+
}, fa = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ D(
|
|
2789
2789
|
"div",
|
|
2790
2790
|
{
|
|
2791
2791
|
className: `gloss-gap-readout gloss-gap-readout--${n}`,
|
|
2792
2792
|
"aria-label": `${e}: ${t}`,
|
|
2793
2793
|
children: [
|
|
2794
|
-
/* @__PURE__ */
|
|
2795
|
-
/* @__PURE__ */
|
|
2796
|
-
/* @__PURE__ */
|
|
2797
|
-
/* @__PURE__ */
|
|
2794
|
+
/* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
|
|
2795
|
+
/* @__PURE__ */ D("div", { className: "gloss-gap-readout__strip", children: [
|
|
2796
|
+
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__label", children: e }),
|
|
2797
|
+
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__value", children: t })
|
|
2798
2798
|
] })
|
|
2799
2799
|
]
|
|
2800
2800
|
}
|
|
2801
|
-
),
|
|
2802
|
-
/* @__PURE__ */
|
|
2803
|
-
/* @__PURE__ */
|
|
2801
|
+
), va = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ D("div", { className: "gloss-pace-placeholder", children: [
|
|
2802
|
+
/* @__PURE__ */ r("p", { className: "gloss-pace-placeholder__heading", children: "Set a target" }),
|
|
2803
|
+
/* @__PURE__ */ D("p", { className: "gloss-pace-placeholder__context", children: [
|
|
2804
2804
|
"for ",
|
|
2805
2805
|
e
|
|
2806
2806
|
] }),
|
|
2807
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ r(
|
|
2808
2808
|
"button",
|
|
2809
2809
|
{
|
|
2810
2810
|
type: "button",
|
|
@@ -2814,12 +2814,12 @@ const la = ({
|
|
|
2814
2814
|
children: "Set target"
|
|
2815
2815
|
}
|
|
2816
2816
|
)
|
|
2817
|
-
] }),
|
|
2818
|
-
const [t, n] = $(!1), a = e.target?.value,
|
|
2819
|
-
|
|
2817
|
+
] }), ur = (e) => {
|
|
2818
|
+
const [t, n] = $(!1), a = e.target?.value, s = a !== void 0, i = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
|
|
2819
|
+
St,
|
|
2820
2820
|
{
|
|
2821
2821
|
label: `Set a target for ${e.label}`,
|
|
2822
|
-
unit:
|
|
2822
|
+
unit: i,
|
|
2823
2823
|
currentValue: a,
|
|
2824
2824
|
onConfirm: (l) => {
|
|
2825
2825
|
e.onTargetChange(l), n(!1);
|
|
@@ -2829,28 +2829,28 @@ const la = ({
|
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
2831
|
);
|
|
2832
|
-
return /* @__PURE__ */
|
|
2833
|
-
|
|
2832
|
+
return /* @__PURE__ */ r(
|
|
2833
|
+
ut,
|
|
2834
2834
|
{
|
|
2835
2835
|
colSpan: 2,
|
|
2836
2836
|
enableQuickSettings: !0,
|
|
2837
2837
|
isFlipped: t,
|
|
2838
2838
|
onFlipChange: n,
|
|
2839
2839
|
quickConfigSlot: o,
|
|
2840
|
-
children: /* @__PURE__ */
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
/* @__PURE__ */
|
|
2843
|
-
/* @__PURE__ */
|
|
2844
|
-
|
|
2840
|
+
children: /* @__PURE__ */ D("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
|
|
2841
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
|
|
2842
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: s ? /* @__PURE__ */ D(te, { children: [
|
|
2843
|
+
/* @__PURE__ */ r(
|
|
2844
|
+
ha,
|
|
2845
2845
|
{
|
|
2846
2846
|
consumed: e.consumed,
|
|
2847
2847
|
elapsed: e.elapsed,
|
|
2848
2848
|
severity: e.severity
|
|
2849
2849
|
}
|
|
2850
2850
|
),
|
|
2851
|
-
/* @__PURE__ */
|
|
2852
|
-
] }) : /* @__PURE__ */
|
|
2853
|
-
|
|
2851
|
+
/* @__PURE__ */ r(fa, { label: "Gap", value: e.gapLabel, severity: e.severity })
|
|
2852
|
+
] }) : /* @__PURE__ */ r(
|
|
2853
|
+
va,
|
|
2854
2854
|
{
|
|
2855
2855
|
label: e.label,
|
|
2856
2856
|
onSetTarget: () => n(!0)
|
|
@@ -2859,55 +2859,55 @@ const la = ({
|
|
|
2859
2859
|
] })
|
|
2860
2860
|
}
|
|
2861
2861
|
);
|
|
2862
|
-
},
|
|
2863
|
-
/* @__PURE__ */
|
|
2862
|
+
}, mr = () => /* @__PURE__ */ D("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
2863
|
+
/* @__PURE__ */ r(
|
|
2864
2864
|
"div",
|
|
2865
2865
|
{
|
|
2866
2866
|
className: "gloss-pace-tile-preview__bar gloss-pace-tile-preview__bar--consumed",
|
|
2867
2867
|
style: { width: "78%" }
|
|
2868
2868
|
}
|
|
2869
2869
|
),
|
|
2870
|
-
/* @__PURE__ */
|
|
2870
|
+
/* @__PURE__ */ r(
|
|
2871
2871
|
"div",
|
|
2872
2872
|
{
|
|
2873
2873
|
className: "gloss-pace-tile-preview__bar gloss-pace-tile-preview__bar--elapsed",
|
|
2874
2874
|
style: { width: "60%" }
|
|
2875
2875
|
}
|
|
2876
2876
|
),
|
|
2877
|
-
/* @__PURE__ */
|
|
2877
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
|
|
2878
2878
|
] });
|
|
2879
|
-
function
|
|
2880
|
-
return /* @__PURE__ */
|
|
2879
|
+
function ba({ id: e, label: t, selected: n, focused: a, disabled: s, badge: i, onClick: o }) {
|
|
2880
|
+
return /* @__PURE__ */ r(
|
|
2881
2881
|
"span",
|
|
2882
2882
|
{
|
|
2883
2883
|
role: "radio",
|
|
2884
2884
|
"aria-checked": n,
|
|
2885
|
-
"aria-disabled":
|
|
2885
|
+
"aria-disabled": s || void 0,
|
|
2886
2886
|
tabIndex: a ? 0 : -1,
|
|
2887
2887
|
className: "gloss-lens-chip",
|
|
2888
2888
|
"data-selected": n || void 0,
|
|
2889
|
-
"data-disabled":
|
|
2889
|
+
"data-disabled": s || void 0,
|
|
2890
2890
|
onClick: () => {
|
|
2891
|
-
|
|
2891
|
+
s || o(e);
|
|
2892
2892
|
},
|
|
2893
|
-
children: /* @__PURE__ */
|
|
2894
|
-
/* @__PURE__ */
|
|
2895
|
-
|
|
2893
|
+
children: /* @__PURE__ */ D(mt, { selected: n, disabled: s, variant: "soft", size: "sm", children: [
|
|
2894
|
+
/* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
|
|
2895
|
+
i && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: i })
|
|
2896
2896
|
] })
|
|
2897
2897
|
}
|
|
2898
2898
|
);
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function ya({
|
|
2901
2901
|
lenses: e,
|
|
2902
2902
|
value: t,
|
|
2903
2903
|
onChange: n,
|
|
2904
2904
|
"aria-label": a = "Lens"
|
|
2905
2905
|
}) {
|
|
2906
2906
|
if (e.length === 0) return null;
|
|
2907
|
-
const [
|
|
2907
|
+
const [s, i] = $(
|
|
2908
2908
|
() => Math.max(0, e.findIndex((l) => l.id === t))
|
|
2909
2909
|
);
|
|
2910
|
-
return /* @__PURE__ */
|
|
2910
|
+
return /* @__PURE__ */ r(
|
|
2911
2911
|
"div",
|
|
2912
2912
|
{
|
|
2913
2913
|
role: "radiogroup",
|
|
@@ -2916,35 +2916,35 @@ function ma({
|
|
|
2916
2916
|
switch (l.key) {
|
|
2917
2917
|
case "ArrowRight":
|
|
2918
2918
|
case "ArrowDown":
|
|
2919
|
-
l.preventDefault(),
|
|
2919
|
+
l.preventDefault(), i((m) => (m + 1) % e.length);
|
|
2920
2920
|
break;
|
|
2921
2921
|
case "ArrowLeft":
|
|
2922
2922
|
case "ArrowUp":
|
|
2923
|
-
l.preventDefault(),
|
|
2923
|
+
l.preventDefault(), i((m) => (m - 1 + e.length) % e.length);
|
|
2924
2924
|
break;
|
|
2925
2925
|
case "Home":
|
|
2926
|
-
l.preventDefault(),
|
|
2926
|
+
l.preventDefault(), i(0);
|
|
2927
2927
|
break;
|
|
2928
2928
|
case "End":
|
|
2929
|
-
l.preventDefault(),
|
|
2929
|
+
l.preventDefault(), i(e.length - 1);
|
|
2930
2930
|
break;
|
|
2931
2931
|
case "Enter":
|
|
2932
2932
|
case " ": {
|
|
2933
2933
|
l.preventDefault();
|
|
2934
|
-
const m = e[
|
|
2934
|
+
const m = e[s];
|
|
2935
2935
|
m && !m.disabled && n(m.id);
|
|
2936
2936
|
break;
|
|
2937
2937
|
}
|
|
2938
2938
|
}
|
|
2939
2939
|
},
|
|
2940
2940
|
className: "gloss-lens-chip-group",
|
|
2941
|
-
children: e.map((l, m) => /* @__PURE__ */
|
|
2942
|
-
|
|
2941
|
+
children: e.map((l, m) => /* @__PURE__ */ r(
|
|
2942
|
+
ba,
|
|
2943
2943
|
{
|
|
2944
2944
|
id: l.id,
|
|
2945
2945
|
label: l.label,
|
|
2946
2946
|
selected: l.id === t,
|
|
2947
|
-
focused: m ===
|
|
2947
|
+
focused: m === s,
|
|
2948
2948
|
disabled: l.disabled,
|
|
2949
2949
|
badge: l.badge,
|
|
2950
2950
|
onClick: n
|
|
@@ -2954,26 +2954,317 @@ function ma({
|
|
|
2954
2954
|
}
|
|
2955
2955
|
);
|
|
2956
2956
|
}
|
|
2957
|
-
|
|
2958
|
-
function
|
|
2959
|
-
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */
|
|
2960
|
-
/* @__PURE__ */
|
|
2961
|
-
/* @__PURE__ */
|
|
2957
|
+
ya.displayName = "LensChipGroup";
|
|
2958
|
+
function wa({ heading: e, children: t }) {
|
|
2959
|
+
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ D("section", { className: "gloss-starter-rail", "aria-label": e, children: [
|
|
2960
|
+
/* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
|
|
2961
|
+
/* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
|
|
2962
2962
|
] });
|
|
2963
2963
|
}
|
|
2964
|
-
|
|
2965
|
-
function
|
|
2964
|
+
wa.displayName = "StarterRail";
|
|
2965
|
+
function _a({ heading: e, children: t, emptyStateLabel: n }) {
|
|
2966
2966
|
const a = !t || Array.isArray(t) && t.length === 0;
|
|
2967
|
-
return /* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2969
|
-
/* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ D("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
|
|
2968
|
+
/* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
|
|
2969
|
+
/* @__PURE__ */ D("div", { className: "gloss-more-in-lens-rail__tiles", children: [
|
|
2970
2970
|
t,
|
|
2971
|
-
a && n && /* @__PURE__ */
|
|
2971
|
+
a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
|
|
2972
|
+
] })
|
|
2973
|
+
] });
|
|
2974
|
+
}
|
|
2975
|
+
_a.displayName = "MoreInLensRail";
|
|
2976
|
+
function X({
|
|
2977
|
+
lead: e,
|
|
2978
|
+
name: t,
|
|
2979
|
+
secondary: n,
|
|
2980
|
+
value: a,
|
|
2981
|
+
trail: s,
|
|
2982
|
+
variant: i = "default",
|
|
2983
|
+
onClick: o,
|
|
2984
|
+
className: l,
|
|
2985
|
+
style: m
|
|
2986
|
+
}) {
|
|
2987
|
+
const d = [
|
|
2988
|
+
"gloss-entity-row",
|
|
2989
|
+
`gloss-entity-row--${i}`,
|
|
2990
|
+
o ? "gloss-entity-row--clickable" : "",
|
|
2991
|
+
l ?? ""
|
|
2992
|
+
].filter(Boolean).join(" "), g = /* @__PURE__ */ D(te, { children: [
|
|
2993
|
+
e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
|
|
2994
|
+
/* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
|
|
2995
|
+
n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
|
|
2996
|
+
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
2997
|
+
s !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: s })
|
|
2998
|
+
] });
|
|
2999
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: /* @__PURE__ */ r(
|
|
3000
|
+
"button",
|
|
3001
|
+
{
|
|
3002
|
+
type: "button",
|
|
3003
|
+
style: {
|
|
3004
|
+
all: "unset",
|
|
3005
|
+
display: "flex",
|
|
3006
|
+
width: "100%",
|
|
3007
|
+
alignItems: "center",
|
|
3008
|
+
gap: 4,
|
|
3009
|
+
cursor: "pointer"
|
|
3010
|
+
},
|
|
3011
|
+
onClick: (f) => {
|
|
3012
|
+
f.stopPropagation(), o();
|
|
3013
|
+
},
|
|
3014
|
+
children: g
|
|
3015
|
+
}
|
|
3016
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: g });
|
|
3017
|
+
}
|
|
3018
|
+
X.displayName = "EntityRow";
|
|
3019
|
+
const fe = ({ rank: e }) => {
|
|
3020
|
+
const t = e === 1 ? "first" : "other";
|
|
3021
|
+
return /* @__PURE__ */ r(
|
|
3022
|
+
"span",
|
|
3023
|
+
{
|
|
3024
|
+
role: "img",
|
|
3025
|
+
"aria-label": `Rank ${e}`,
|
|
3026
|
+
className: `gloss-rank-badge gloss-rank-badge--${t}`,
|
|
3027
|
+
children: e
|
|
3028
|
+
}
|
|
3029
|
+
);
|
|
3030
|
+
};
|
|
3031
|
+
fe.displayName = "RankBadge";
|
|
3032
|
+
function ve({ severity: e, "aria-label": t }) {
|
|
3033
|
+
return /* @__PURE__ */ r(
|
|
3034
|
+
"span",
|
|
3035
|
+
{
|
|
3036
|
+
role: "img",
|
|
3037
|
+
"aria-label": t,
|
|
3038
|
+
className: `gloss-severity-dot gloss-severity-dot--${e}`
|
|
3039
|
+
}
|
|
3040
|
+
);
|
|
3041
|
+
}
|
|
3042
|
+
ve.displayName = "SeverityDot";
|
|
3043
|
+
function tt({
|
|
3044
|
+
delta: e,
|
|
3045
|
+
direction: t = "flat",
|
|
3046
|
+
"aria-label": n
|
|
3047
|
+
}) {
|
|
3048
|
+
if (e === "new")
|
|
3049
|
+
return /* @__PURE__ */ r(
|
|
3050
|
+
"span",
|
|
3051
|
+
{
|
|
3052
|
+
role: "img",
|
|
3053
|
+
"aria-label": n,
|
|
3054
|
+
className: "gloss-rank-delta gloss-rank-delta--new",
|
|
3055
|
+
children: "NEW"
|
|
3056
|
+
}
|
|
3057
|
+
);
|
|
3058
|
+
const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
|
|
3059
|
+
return /* @__PURE__ */ D(
|
|
3060
|
+
"span",
|
|
3061
|
+
{
|
|
3062
|
+
role: "img",
|
|
3063
|
+
"aria-label": n,
|
|
3064
|
+
className: `gloss-rank-delta gloss-rank-delta--${t}`,
|
|
3065
|
+
children: [
|
|
3066
|
+
a,
|
|
3067
|
+
e
|
|
3068
|
+
]
|
|
3069
|
+
}
|
|
3070
|
+
);
|
|
3071
|
+
}
|
|
3072
|
+
tt.displayName = "RankDelta";
|
|
3073
|
+
function be({ fill: e, variant: t = "default", className: n }) {
|
|
3074
|
+
const a = Math.max(0, Math.min(100, e));
|
|
3075
|
+
return /* @__PURE__ */ r(
|
|
3076
|
+
"div",
|
|
3077
|
+
{
|
|
3078
|
+
"aria-hidden": "true",
|
|
3079
|
+
className: [
|
|
3080
|
+
"gloss-magnitude-bar",
|
|
3081
|
+
`gloss-magnitude-bar--${t}`,
|
|
3082
|
+
n ?? ""
|
|
3083
|
+
].filter(Boolean).join(" "),
|
|
3084
|
+
style: { "--_fill": `${a}%` },
|
|
3085
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-magnitude-bar__fill" })
|
|
3086
|
+
}
|
|
3087
|
+
);
|
|
3088
|
+
}
|
|
3089
|
+
be.displayName = "MagnitudeBar";
|
|
3090
|
+
const Na = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
|
|
3091
|
+
function Da({
|
|
3092
|
+
label: e,
|
|
3093
|
+
rows: t,
|
|
3094
|
+
rowCount: n,
|
|
3095
|
+
rankDeltaPeriod: a,
|
|
3096
|
+
isStale: s
|
|
3097
|
+
}) {
|
|
3098
|
+
const i = n ?? 3;
|
|
3099
|
+
return /* @__PURE__ */ D(te, { children: [
|
|
3100
|
+
/* @__PURE__ */ r(
|
|
3101
|
+
pe,
|
|
3102
|
+
{
|
|
3103
|
+
className: "gloss-metric-card__zone-a",
|
|
3104
|
+
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3105
|
+
children: /* @__PURE__ */ r(Te, { className: "gloss-metric-card__label", children: e })
|
|
3106
|
+
}
|
|
3107
|
+
),
|
|
3108
|
+
/* @__PURE__ */ r(
|
|
3109
|
+
pe,
|
|
3110
|
+
{
|
|
3111
|
+
className: `gloss-metric-card__zone-b gloss-leaderboard ${s ? "gloss-metric-data-stale" : ""}`,
|
|
3112
|
+
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3113
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0, i).map((o, l) => /* @__PURE__ */ r(
|
|
3114
|
+
X,
|
|
3115
|
+
{
|
|
3116
|
+
lead: /* @__PURE__ */ r(fe, { rank: l + 1 }),
|
|
3117
|
+
name: o.name,
|
|
3118
|
+
secondary: /* @__PURE__ */ r(
|
|
3119
|
+
be,
|
|
3120
|
+
{
|
|
3121
|
+
fill: o.magnitude,
|
|
3122
|
+
variant: o.isBottom ? "bottom" : "default"
|
|
3123
|
+
}
|
|
3124
|
+
),
|
|
3125
|
+
value: o.value,
|
|
3126
|
+
trail: /* @__PURE__ */ r(
|
|
3127
|
+
tt,
|
|
3128
|
+
{
|
|
3129
|
+
delta: o.rankDelta,
|
|
3130
|
+
direction: o.direction,
|
|
3131
|
+
"aria-label": Na(o)
|
|
3132
|
+
}
|
|
3133
|
+
),
|
|
3134
|
+
variant: "leaderboard",
|
|
3135
|
+
style: { "--i": l }
|
|
3136
|
+
},
|
|
3137
|
+
o.id
|
|
3138
|
+
)) })
|
|
3139
|
+
}
|
|
3140
|
+
),
|
|
3141
|
+
/* @__PURE__ */ D("div", { className: "gloss-leaderboard__zone-c", children: [
|
|
3142
|
+
a ?? "WoW",
|
|
3143
|
+
" rank change"
|
|
2972
3144
|
] })
|
|
2973
3145
|
] });
|
|
2974
3146
|
}
|
|
2975
|
-
|
|
2976
|
-
const
|
|
3147
|
+
Da.displayName = "LeaderboardCard";
|
|
3148
|
+
const Ca = () => /* @__PURE__ */ D(
|
|
3149
|
+
"div",
|
|
3150
|
+
{
|
|
3151
|
+
className: "leaderboard-tile-preview",
|
|
3152
|
+
"aria-hidden": "true",
|
|
3153
|
+
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3154
|
+
children: [
|
|
3155
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(be, { fill: 96 }), value: "98%" }),
|
|
3156
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(be, { fill: 72 }), value: "85%" }),
|
|
3157
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(be, { fill: 48 }), value: "71%" })
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
);
|
|
3161
|
+
Ca.displayName = "LeaderboardTilePreview";
|
|
3162
|
+
const ka = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", xa = (e, t) => {
|
|
3163
|
+
const n = e.sourceValue;
|
|
3164
|
+
if (typeof n != "number") return !1;
|
|
3165
|
+
switch (t.condition) {
|
|
3166
|
+
case "lt":
|
|
3167
|
+
return n < t.threshold;
|
|
3168
|
+
case "gt":
|
|
3169
|
+
return n > t.threshold;
|
|
3170
|
+
case "eq":
|
|
3171
|
+
return n === t.threshold;
|
|
3172
|
+
case "gte":
|
|
3173
|
+
return n >= t.threshold;
|
|
3174
|
+
case "lte":
|
|
3175
|
+
return n <= t.threshold;
|
|
3176
|
+
default:
|
|
3177
|
+
return !1;
|
|
3178
|
+
}
|
|
3179
|
+
};
|
|
3180
|
+
function Sa({
|
|
3181
|
+
label: e,
|
|
3182
|
+
rows: t,
|
|
3183
|
+
rule: n,
|
|
3184
|
+
rowCount: a,
|
|
3185
|
+
emptyStateLabel: s,
|
|
3186
|
+
ruleSubtitle: i,
|
|
3187
|
+
isStale: o
|
|
3188
|
+
}) {
|
|
3189
|
+
const l = t.filter((d) => xa(d, n)), m = l.slice(0, a ?? 3);
|
|
3190
|
+
return l.length === 0 ? /* @__PURE__ */ D(te, { children: [
|
|
3191
|
+
/* @__PURE__ */ r(
|
|
3192
|
+
pe,
|
|
3193
|
+
{
|
|
3194
|
+
className: "gloss-metric-card__zone-a",
|
|
3195
|
+
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3196
|
+
children: /* @__PURE__ */ r(Te, { className: "gloss-metric-card__label", children: e })
|
|
3197
|
+
}
|
|
3198
|
+
),
|
|
3199
|
+
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: s ?? "No exceptions" }),
|
|
3200
|
+
i && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: i })
|
|
3201
|
+
] }) : /* @__PURE__ */ D(te, { children: [
|
|
3202
|
+
/* @__PURE__ */ r(
|
|
3203
|
+
pe,
|
|
3204
|
+
{
|
|
3205
|
+
className: "gloss-metric-card__zone-a",
|
|
3206
|
+
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3207
|
+
children: /* @__PURE__ */ r(Te, { className: "gloss-metric-card__label", children: e })
|
|
3208
|
+
}
|
|
3209
|
+
),
|
|
3210
|
+
/* @__PURE__ */ r(
|
|
3211
|
+
pe,
|
|
3212
|
+
{
|
|
3213
|
+
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3214
|
+
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3215
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: m.map((d, g) => /* @__PURE__ */ r(
|
|
3216
|
+
X,
|
|
3217
|
+
{
|
|
3218
|
+
lead: /* @__PURE__ */ r(ve, { severity: d.severity, "aria-label": ka(d.severity) }),
|
|
3219
|
+
name: d.name,
|
|
3220
|
+
value: d.value,
|
|
3221
|
+
variant: "exception",
|
|
3222
|
+
style: { "--i": g }
|
|
3223
|
+
},
|
|
3224
|
+
d.id
|
|
3225
|
+
)) })
|
|
3226
|
+
}
|
|
3227
|
+
),
|
|
3228
|
+
i && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: i })
|
|
3229
|
+
] });
|
|
3230
|
+
}
|
|
3231
|
+
Sa.displayName = "ExceptionListCard";
|
|
3232
|
+
const Ra = () => /* @__PURE__ */ D(
|
|
3233
|
+
"div",
|
|
3234
|
+
{
|
|
3235
|
+
className: "exception-list-tile-preview",
|
|
3236
|
+
"aria-hidden": "true",
|
|
3237
|
+
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3238
|
+
children: [
|
|
3239
|
+
/* @__PURE__ */ r(
|
|
3240
|
+
X,
|
|
3241
|
+
{
|
|
3242
|
+
lead: /* @__PURE__ */ r(ve, { severity: "critical", "aria-label": "Critical severity" }),
|
|
3243
|
+
name: "SKU A",
|
|
3244
|
+
value: "0 on hand"
|
|
3245
|
+
}
|
|
3246
|
+
),
|
|
3247
|
+
/* @__PURE__ */ r(
|
|
3248
|
+
X,
|
|
3249
|
+
{
|
|
3250
|
+
lead: /* @__PURE__ */ r(ve, { severity: "warn", "aria-label": "Warning severity" }),
|
|
3251
|
+
name: "SKU B",
|
|
3252
|
+
value: "3 units"
|
|
3253
|
+
}
|
|
3254
|
+
),
|
|
3255
|
+
/* @__PURE__ */ r(
|
|
3256
|
+
X,
|
|
3257
|
+
{
|
|
3258
|
+
lead: /* @__PURE__ */ r(ve, { severity: "info", "aria-label": "Info severity" }),
|
|
3259
|
+
name: "SKU C",
|
|
3260
|
+
value: "12 days"
|
|
3261
|
+
}
|
|
3262
|
+
)
|
|
3263
|
+
]
|
|
3264
|
+
}
|
|
3265
|
+
);
|
|
3266
|
+
Ra.displayName = "ExceptionListTilePreview";
|
|
3267
|
+
const ne = {
|
|
2977
3268
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
2978
3269
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
2979
3270
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -2981,57 +3272,57 @@ const te = {
|
|
|
2981
3272
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2982
3273
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2983
3274
|
};
|
|
2984
|
-
function
|
|
3275
|
+
function Ma({
|
|
2985
3276
|
message: e,
|
|
2986
3277
|
primaryAction: t,
|
|
2987
3278
|
onDismiss: n,
|
|
2988
3279
|
anchorEl: a,
|
|
2989
|
-
anchorSelector:
|
|
3280
|
+
anchorSelector: s
|
|
2990
3281
|
}) {
|
|
2991
|
-
const [
|
|
3282
|
+
const [i, o] = H.useState(null), l = H.useMemo(
|
|
2992
3283
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
2993
3284
|
[]
|
|
2994
3285
|
);
|
|
2995
|
-
|
|
2996
|
-
!a && !
|
|
3286
|
+
H.useEffect(() => {
|
|
3287
|
+
!a && !s && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
2997
3288
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2998
3289
|
);
|
|
2999
|
-
}, [a,
|
|
3000
|
-
let
|
|
3001
|
-
if (a ?
|
|
3002
|
-
const
|
|
3290
|
+
}, [a, s]), H.useLayoutEffect(() => {
|
|
3291
|
+
let d = null;
|
|
3292
|
+
if (a ? d = a : s && (d = document.querySelector(s)), d) {
|
|
3293
|
+
const g = d.getBoundingClientRect();
|
|
3003
3294
|
o({
|
|
3004
|
-
top:
|
|
3005
|
-
left:
|
|
3295
|
+
top: g.bottom + window.scrollY + 6,
|
|
3296
|
+
left: g.left + window.scrollX
|
|
3006
3297
|
});
|
|
3007
3298
|
}
|
|
3008
|
-
}, [a,
|
|
3009
|
-
const m =
|
|
3010
|
-
return /* @__PURE__ */
|
|
3299
|
+
}, [a, s]);
|
|
3300
|
+
const m = i ? { top: i.top, left: i.left } : {};
|
|
3301
|
+
return /* @__PURE__ */ D(
|
|
3011
3302
|
"div",
|
|
3012
3303
|
{
|
|
3013
|
-
className:
|
|
3304
|
+
className: ne["gloss-inline-nudge"],
|
|
3014
3305
|
style: m,
|
|
3015
3306
|
role: "status",
|
|
3016
3307
|
"aria-live": "polite",
|
|
3017
3308
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3018
3309
|
children: [
|
|
3019
|
-
/* @__PURE__ */
|
|
3020
|
-
/* @__PURE__ */
|
|
3021
|
-
/* @__PURE__ */
|
|
3310
|
+
/* @__PURE__ */ r("span", { className: ne["gloss-inline-nudge__message"], children: e }),
|
|
3311
|
+
/* @__PURE__ */ D("div", { className: ne["gloss-inline-nudge__actions"], children: [
|
|
3312
|
+
/* @__PURE__ */ r(
|
|
3022
3313
|
"button",
|
|
3023
3314
|
{
|
|
3024
3315
|
type: "button",
|
|
3025
|
-
className: `${
|
|
3316
|
+
className: `${ne["gloss-inline-nudge__btn"]} ${ne["gloss-inline-nudge__btn--action"]}`,
|
|
3026
3317
|
onClick: t.onClick,
|
|
3027
3318
|
children: t.label
|
|
3028
3319
|
}
|
|
3029
3320
|
),
|
|
3030
|
-
/* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ r(
|
|
3031
3322
|
"button",
|
|
3032
3323
|
{
|
|
3033
3324
|
type: "button",
|
|
3034
|
-
className: `${
|
|
3325
|
+
className: `${ne["gloss-inline-nudge__btn"]} ${ne["gloss-inline-nudge__btn--dismiss"]}`,
|
|
3035
3326
|
onClick: n,
|
|
3036
3327
|
"aria-label": "Dismiss",
|
|
3037
3328
|
children: "Dismiss"
|
|
@@ -3042,46 +3333,46 @@ function fa({
|
|
|
3042
3333
|
}
|
|
3043
3334
|
);
|
|
3044
3335
|
}
|
|
3045
|
-
|
|
3046
|
-
function
|
|
3336
|
+
Ma.displayName = "InlineNudge";
|
|
3337
|
+
function Ee(e) {
|
|
3047
3338
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3048
3339
|
}
|
|
3049
|
-
function
|
|
3340
|
+
function Ta(e, t, n) {
|
|
3050
3341
|
if (n <= t) {
|
|
3051
|
-
const o = e[0], l = o ?
|
|
3342
|
+
const o = e[0], l = o ? Ee(o) : "#888";
|
|
3052
3343
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
3053
3344
|
}
|
|
3054
|
-
const a = n - t,
|
|
3345
|
+
const a = n - t, i = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
3055
3346
|
const l = (o.value - t) / a * 100;
|
|
3056
|
-
return `${
|
|
3347
|
+
return `${Ee(o)} ${l.toFixed(2)}%`;
|
|
3057
3348
|
});
|
|
3058
|
-
return
|
|
3349
|
+
return i.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : i.length === 1 ? `linear-gradient(to right, ${i[0]}, ${i[0]})` : `linear-gradient(to right, ${i.join(", ")})`;
|
|
3059
3350
|
}
|
|
3060
|
-
function
|
|
3351
|
+
function Ia(e) {
|
|
3061
3352
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3062
3353
|
}
|
|
3063
|
-
function
|
|
3354
|
+
function Pa({
|
|
3064
3355
|
stops: e,
|
|
3065
3356
|
onChange: t,
|
|
3066
3357
|
min: n = 0,
|
|
3067
3358
|
max: a = 100,
|
|
3068
|
-
step:
|
|
3069
|
-
disabled:
|
|
3359
|
+
step: s,
|
|
3360
|
+
disabled: i = !1
|
|
3070
3361
|
}) {
|
|
3071
|
-
const o =
|
|
3072
|
-
`ThresholdRamp: step (${
|
|
3073
|
-
), 0.01) :
|
|
3362
|
+
const o = s === void 0 ? 0.01 : !Number.isFinite(s) || s <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3363
|
+
`ThresholdRamp: step (${s}) must be a positive finite number; falling back to 0.01.`
|
|
3364
|
+
), 0.01) : s, l = w(
|
|
3074
3365
|
(c) => Math.round(c / o) * o,
|
|
3075
3366
|
[o]
|
|
3076
|
-
), m =
|
|
3367
|
+
), m = M(null), [d, g] = $(null), [f, u] = $(e), p = Ia(e), N = M(p);
|
|
3077
3368
|
L(() => {
|
|
3078
|
-
|
|
3079
|
-
}, [
|
|
3080
|
-
const y =
|
|
3369
|
+
N.current !== p && (N.current = p, !d && u(e));
|
|
3370
|
+
}, [p, e, d]);
|
|
3371
|
+
const y = ye(() => Ta(f, n, a), [f, n, a]), h = w(
|
|
3081
3372
|
(c) => {
|
|
3082
3373
|
if (!m.current) return n;
|
|
3083
|
-
const
|
|
3084
|
-
return l(
|
|
3374
|
+
const v = m.current.getBoundingClientRect(), _ = v.width || 1, S = Math.max(0, Math.min(1, (c - v.left) / _)), b = n + S * (a - n);
|
|
3375
|
+
return l(b);
|
|
3085
3376
|
},
|
|
3086
3377
|
[n, a, l]
|
|
3087
3378
|
);
|
|
@@ -3090,94 +3381,94 @@ function va({
|
|
|
3090
3381
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
3091
3382
|
);
|
|
3092
3383
|
}, [n, a]);
|
|
3093
|
-
const
|
|
3094
|
-
(c,
|
|
3095
|
-
const
|
|
3096
|
-
|
|
3384
|
+
const R = w(
|
|
3385
|
+
(c, v) => {
|
|
3386
|
+
const _ = f.find((S) => S.id === v);
|
|
3387
|
+
i || _?.disabled || (c.preventDefault(), g(v));
|
|
3097
3388
|
},
|
|
3098
|
-
[
|
|
3099
|
-
), P =
|
|
3100
|
-
P.current =
|
|
3101
|
-
const
|
|
3102
|
-
|
|
3103
|
-
if (!
|
|
3104
|
-
const c = (
|
|
3105
|
-
const S =
|
|
3106
|
-
|
|
3107
|
-
(
|
|
3389
|
+
[i, f]
|
|
3390
|
+
), P = M(f);
|
|
3391
|
+
P.current = f;
|
|
3392
|
+
const k = M(t);
|
|
3393
|
+
k.current = t, L(() => {
|
|
3394
|
+
if (!d) return;
|
|
3395
|
+
const c = (_) => {
|
|
3396
|
+
const S = h(_.clientX);
|
|
3397
|
+
u(
|
|
3398
|
+
(b) => b.map((x) => x.id === d ? { ...x, value: S } : x)
|
|
3108
3399
|
);
|
|
3109
|
-
},
|
|
3110
|
-
const S =
|
|
3111
|
-
(x) => x.id ===
|
|
3400
|
+
}, v = (_) => {
|
|
3401
|
+
const S = h(_.clientX), b = P.current.map(
|
|
3402
|
+
(x) => x.id === d ? { ...x, value: S } : x
|
|
3112
3403
|
);
|
|
3113
|
-
|
|
3404
|
+
u(b), g(null), k.current(b);
|
|
3114
3405
|
};
|
|
3115
|
-
return window.addEventListener("pointermove", c), window.addEventListener("pointerup",
|
|
3116
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup",
|
|
3406
|
+
return window.addEventListener("pointermove", c), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
3407
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
3117
3408
|
};
|
|
3118
|
-
}, [
|
|
3119
|
-
const
|
|
3120
|
-
(c,
|
|
3121
|
-
if (
|
|
3122
|
-
const
|
|
3123
|
-
if (
|
|
3124
|
-
const S = c.shiftKey ?
|
|
3125
|
-
let
|
|
3409
|
+
}, [d, h]);
|
|
3410
|
+
const T = a - n > 0 ? a - n : 1, I = w(
|
|
3411
|
+
(c, v) => {
|
|
3412
|
+
if (i || v.disabled) return;
|
|
3413
|
+
const _ = a - n;
|
|
3414
|
+
if (_ <= 0) return;
|
|
3415
|
+
const S = c.shiftKey ? _ / 20 : _ / 100;
|
|
3416
|
+
let b = v.value;
|
|
3126
3417
|
switch (c.key) {
|
|
3127
3418
|
case "ArrowRight":
|
|
3128
3419
|
case "ArrowUp":
|
|
3129
|
-
|
|
3420
|
+
b = v.value + S;
|
|
3130
3421
|
break;
|
|
3131
3422
|
case "ArrowLeft":
|
|
3132
3423
|
case "ArrowDown":
|
|
3133
|
-
|
|
3424
|
+
b = v.value - S;
|
|
3134
3425
|
break;
|
|
3135
3426
|
case "Home":
|
|
3136
|
-
|
|
3427
|
+
b = n;
|
|
3137
3428
|
break;
|
|
3138
3429
|
case "End":
|
|
3139
|
-
|
|
3430
|
+
b = a;
|
|
3140
3431
|
break;
|
|
3141
3432
|
default:
|
|
3142
3433
|
return;
|
|
3143
3434
|
}
|
|
3144
3435
|
c.preventDefault();
|
|
3145
|
-
const x = Math.max(n, Math.min(a,
|
|
3146
|
-
if (F ===
|
|
3147
|
-
const U =
|
|
3148
|
-
(q) => q.id ===
|
|
3436
|
+
const x = Math.max(n, Math.min(a, b)), F = l(x);
|
|
3437
|
+
if (F === v.value) return;
|
|
3438
|
+
const U = f.map(
|
|
3439
|
+
(q) => q.id === v.id ? { ...q, value: F } : q
|
|
3149
3440
|
);
|
|
3150
|
-
|
|
3441
|
+
u(U), t(U);
|
|
3151
3442
|
},
|
|
3152
|
-
[
|
|
3443
|
+
[i, n, a, f, t, l]
|
|
3153
3444
|
);
|
|
3154
|
-
return /* @__PURE__ */
|
|
3445
|
+
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": i || void 0, children: /* @__PURE__ */ r(
|
|
3155
3446
|
"div",
|
|
3156
3447
|
{
|
|
3157
3448
|
ref: m,
|
|
3158
3449
|
className: "gloss-threshold-ramp__track",
|
|
3159
3450
|
style: { background: y },
|
|
3160
|
-
children:
|
|
3161
|
-
const
|
|
3162
|
-
return /* @__PURE__ */
|
|
3451
|
+
children: f.map((c) => {
|
|
3452
|
+
const v = (c.value - n) / T * 100;
|
|
3453
|
+
return /* @__PURE__ */ r(
|
|
3163
3454
|
"span",
|
|
3164
3455
|
{
|
|
3165
3456
|
className: "gloss-threshold-ramp__stop",
|
|
3166
3457
|
style: {
|
|
3167
|
-
left: `${
|
|
3168
|
-
color:
|
|
3458
|
+
left: `${v}%`,
|
|
3459
|
+
color: Ee(c)
|
|
3169
3460
|
},
|
|
3170
3461
|
"data-disabled": c.disabled || void 0,
|
|
3171
|
-
"data-dragging":
|
|
3172
|
-
onPointerDown: (
|
|
3173
|
-
onKeyDown: (
|
|
3462
|
+
"data-dragging": d === c.id || void 0,
|
|
3463
|
+
onPointerDown: (_) => R(_, c.id),
|
|
3464
|
+
onKeyDown: (_) => I(_, c),
|
|
3174
3465
|
"aria-label": c.label ?? `Stop at ${c.value}`,
|
|
3175
3466
|
role: "slider",
|
|
3176
3467
|
"aria-valuenow": c.value,
|
|
3177
3468
|
"aria-valuemin": n,
|
|
3178
3469
|
"aria-valuemax": a,
|
|
3179
|
-
"aria-disabled": c.disabled ||
|
|
3180
|
-
tabIndex: c.disabled ||
|
|
3470
|
+
"aria-disabled": c.disabled || i || void 0,
|
|
3471
|
+
tabIndex: c.disabled || i ? -1 : 0
|
|
3181
3472
|
},
|
|
3182
3473
|
c.id
|
|
3183
3474
|
);
|
|
@@ -3185,24 +3476,24 @@ function va({
|
|
|
3185
3476
|
}
|
|
3186
3477
|
) });
|
|
3187
3478
|
}
|
|
3188
|
-
|
|
3189
|
-
const
|
|
3190
|
-
function
|
|
3191
|
-
return
|
|
3479
|
+
Pa.displayName = "ThresholdRamp";
|
|
3480
|
+
const at = ht(null);
|
|
3481
|
+
function Fa() {
|
|
3482
|
+
return ft(at);
|
|
3192
3483
|
}
|
|
3193
|
-
function
|
|
3194
|
-
const t =
|
|
3484
|
+
function Ea({ option: e }) {
|
|
3485
|
+
const t = Fa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, s = w(() => {
|
|
3195
3486
|
a || t?.select(e.value);
|
|
3196
|
-
}, [a, t, e.value]),
|
|
3197
|
-
(
|
|
3198
|
-
a || t?.onKeyNav(
|
|
3487
|
+
}, [a, t, e.value]), i = w(
|
|
3488
|
+
(d) => {
|
|
3489
|
+
a || t?.onKeyNav(d, e.value);
|
|
3199
3490
|
},
|
|
3200
3491
|
[a, t, e.value]
|
|
3201
3492
|
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, m = a ? -1 : l ? 0 : -1;
|
|
3202
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ r(
|
|
3203
3494
|
"button",
|
|
3204
3495
|
{
|
|
3205
|
-
ref: (
|
|
3496
|
+
ref: (d) => t?.registerRef(e.value, d),
|
|
3206
3497
|
type: "button",
|
|
3207
3498
|
role: "radio",
|
|
3208
3499
|
"aria-checked": n,
|
|
@@ -3215,222 +3506,222 @@ function wa({ option: e }) {
|
|
|
3215
3506
|
"aria-disabled": a,
|
|
3216
3507
|
disabled: a,
|
|
3217
3508
|
tabIndex: m,
|
|
3218
|
-
onClick:
|
|
3219
|
-
onKeyDown:
|
|
3509
|
+
onClick: s,
|
|
3510
|
+
onKeyDown: i
|
|
3220
3511
|
}
|
|
3221
3512
|
);
|
|
3222
3513
|
}
|
|
3223
|
-
function
|
|
3514
|
+
function Aa({
|
|
3224
3515
|
swatches: e,
|
|
3225
3516
|
value: t,
|
|
3226
3517
|
defaultValue: n,
|
|
3227
3518
|
onChange: a,
|
|
3228
|
-
disabled:
|
|
3229
|
-
name:
|
|
3519
|
+
disabled: s = !1,
|
|
3520
|
+
name: i
|
|
3230
3521
|
}) {
|
|
3231
|
-
const o = t !== void 0, [l, m] = $(n),
|
|
3232
|
-
(
|
|
3233
|
-
o || m(
|
|
3522
|
+
const o = t !== void 0, [l, m] = $(n), d = o ? t : l, g = w(
|
|
3523
|
+
(k) => {
|
|
3524
|
+
o || m(k), a?.(k);
|
|
3234
3525
|
},
|
|
3235
3526
|
[o, a]
|
|
3236
|
-
),
|
|
3237
|
-
(
|
|
3238
|
-
[
|
|
3239
|
-
),
|
|
3240
|
-
|
|
3241
|
-
}, []),
|
|
3242
|
-
const
|
|
3243
|
-
|
|
3244
|
-
}, []),
|
|
3245
|
-
(
|
|
3246
|
-
if (
|
|
3527
|
+
), f = w(
|
|
3528
|
+
(k) => d === k,
|
|
3529
|
+
[d]
|
|
3530
|
+
), u = M(/* @__PURE__ */ new Map()), p = w((k, T) => {
|
|
3531
|
+
T ? u.current.set(k, T) : u.current.delete(k);
|
|
3532
|
+
}, []), N = e.filter((k) => !k.disabled && !s), y = N.find((k) => k.value === d)?.value ?? N[0]?.value, h = w((k) => {
|
|
3533
|
+
const T = u.current.get(k);
|
|
3534
|
+
T && T.focus();
|
|
3535
|
+
}, []), R = w(
|
|
3536
|
+
(k, T) => {
|
|
3537
|
+
if (s) return;
|
|
3247
3538
|
const I = e.filter((S) => !S.disabled);
|
|
3248
3539
|
if (I.length === 0) return;
|
|
3249
|
-
const c = I.findIndex((S) => S.value ===
|
|
3540
|
+
const c = I.findIndex((S) => S.value === T);
|
|
3250
3541
|
if (c === -1) return;
|
|
3251
|
-
let
|
|
3252
|
-
switch (
|
|
3542
|
+
let v = c;
|
|
3543
|
+
switch (k.key) {
|
|
3253
3544
|
case "ArrowRight":
|
|
3254
3545
|
case "ArrowDown":
|
|
3255
|
-
|
|
3546
|
+
v = (c + 1) % I.length;
|
|
3256
3547
|
break;
|
|
3257
3548
|
case "ArrowLeft":
|
|
3258
3549
|
case "ArrowUp":
|
|
3259
|
-
|
|
3550
|
+
v = (c - 1 + I.length) % I.length;
|
|
3260
3551
|
break;
|
|
3261
3552
|
case "Home":
|
|
3262
|
-
|
|
3553
|
+
v = 0;
|
|
3263
3554
|
break;
|
|
3264
3555
|
case "End":
|
|
3265
|
-
|
|
3556
|
+
v = I.length - 1;
|
|
3266
3557
|
break;
|
|
3267
3558
|
case " ":
|
|
3268
3559
|
case "Enter":
|
|
3269
|
-
|
|
3560
|
+
k.preventDefault(), g(T);
|
|
3270
3561
|
return;
|
|
3271
3562
|
default:
|
|
3272
3563
|
return;
|
|
3273
3564
|
}
|
|
3274
|
-
|
|
3275
|
-
const
|
|
3276
|
-
|
|
3565
|
+
k.preventDefault();
|
|
3566
|
+
const _ = I[v].value;
|
|
3567
|
+
h(_), g(_);
|
|
3277
3568
|
},
|
|
3278
|
-
[
|
|
3569
|
+
[s, e, g, h]
|
|
3279
3570
|
), P = {
|
|
3280
|
-
selectedValue:
|
|
3281
|
-
select:
|
|
3282
|
-
isSelected:
|
|
3283
|
-
groupDisabled:
|
|
3284
|
-
name:
|
|
3285
|
-
registerRef:
|
|
3571
|
+
selectedValue: d,
|
|
3572
|
+
select: g,
|
|
3573
|
+
isSelected: f,
|
|
3574
|
+
groupDisabled: s,
|
|
3575
|
+
name: i,
|
|
3576
|
+
registerRef: p,
|
|
3286
3577
|
firstFocusableValue: y,
|
|
3287
|
-
onKeyNav:
|
|
3578
|
+
onKeyNav: R
|
|
3288
3579
|
};
|
|
3289
|
-
return /* @__PURE__ */
|
|
3580
|
+
return /* @__PURE__ */ r(at.Provider, { value: P, children: /* @__PURE__ */ r(
|
|
3290
3581
|
"div",
|
|
3291
3582
|
{
|
|
3292
3583
|
className: "gloss-preset-swatch-row",
|
|
3293
3584
|
role: "radiogroup",
|
|
3294
|
-
"aria-label":
|
|
3295
|
-
"aria-disabled":
|
|
3296
|
-
"data-disabled":
|
|
3297
|
-
children: e.map((
|
|
3585
|
+
"aria-label": i,
|
|
3586
|
+
"aria-disabled": s,
|
|
3587
|
+
"data-disabled": s || void 0,
|
|
3588
|
+
children: e.map((k) => /* @__PURE__ */ r(Ea, { option: k }, k.value))
|
|
3298
3589
|
}
|
|
3299
3590
|
) });
|
|
3300
3591
|
}
|
|
3301
|
-
|
|
3302
|
-
function
|
|
3592
|
+
Aa.displayName = "PresetSwatchRow";
|
|
3593
|
+
function Ae(e, t) {
|
|
3303
3594
|
for (const n of e)
|
|
3304
3595
|
if (n.items.some((a) => a.id === t))
|
|
3305
3596
|
return n.zoneKey;
|
|
3306
3597
|
return null;
|
|
3307
3598
|
}
|
|
3308
|
-
function
|
|
3599
|
+
function je(e, t) {
|
|
3309
3600
|
const n = e.find((a) => a.zoneKey === t);
|
|
3310
|
-
return n ? n.zoneKey :
|
|
3601
|
+
return n ? n.zoneKey : Ae(e, t);
|
|
3311
3602
|
}
|
|
3312
|
-
function
|
|
3313
|
-
const a = [...e], [
|
|
3314
|
-
return a.splice(n, 0,
|
|
3603
|
+
function Oa(e, t, n) {
|
|
3604
|
+
const a = [...e], [s] = a.splice(t, 1);
|
|
3605
|
+
return a.splice(n, 0, s), a;
|
|
3315
3606
|
}
|
|
3316
|
-
function
|
|
3607
|
+
function La(e) {
|
|
3317
3608
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
3318
3609
|
}
|
|
3319
|
-
function
|
|
3610
|
+
function $a(e) {
|
|
3320
3611
|
const [t, n] = $(
|
|
3321
|
-
() => e.zones.map((
|
|
3322
|
-
`useSortableZones: zone "${
|
|
3323
|
-
), { ...
|
|
3324
|
-
), [a,
|
|
3612
|
+
() => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3613
|
+
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
3614
|
+
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
3615
|
+
), [a, s] = $(null), [i, o] = $(null), l = M(null), m = M(e.onZoneChange);
|
|
3325
3616
|
m.current = e.onZoneChange;
|
|
3326
|
-
const
|
|
3327
|
-
() =>
|
|
3617
|
+
const d = ye(
|
|
3618
|
+
() => La(e.zones),
|
|
3328
3619
|
[e.zones]
|
|
3329
|
-
),
|
|
3620
|
+
), g = M(d);
|
|
3330
3621
|
L(() => {
|
|
3331
|
-
|
|
3332
|
-
e.zones.map((
|
|
3333
|
-
`useSortableZones: zone "${
|
|
3334
|
-
), { ...
|
|
3622
|
+
g.current !== d && (g.current = d, !a && n(
|
|
3623
|
+
e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3624
|
+
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
3625
|
+
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
3335
3626
|
));
|
|
3336
|
-
}, [
|
|
3337
|
-
const
|
|
3338
|
-
(
|
|
3339
|
-
const
|
|
3340
|
-
let P = null,
|
|
3341
|
-
for (const
|
|
3342
|
-
const I =
|
|
3627
|
+
}, [d, e.zones, a]);
|
|
3628
|
+
const f = w(
|
|
3629
|
+
(h) => {
|
|
3630
|
+
const R = h.active.id;
|
|
3631
|
+
let P = null, k = null;
|
|
3632
|
+
for (const T of t) {
|
|
3633
|
+
const I = T.items.find((c) => c.id === R);
|
|
3343
3634
|
if (I) {
|
|
3344
|
-
P = I,
|
|
3635
|
+
P = I, k = T.zoneKey;
|
|
3345
3636
|
break;
|
|
3346
3637
|
}
|
|
3347
3638
|
}
|
|
3348
|
-
l.current =
|
|
3639
|
+
l.current = k, s(P), o(k);
|
|
3349
3640
|
},
|
|
3350
3641
|
[t]
|
|
3351
|
-
),
|
|
3352
|
-
(
|
|
3353
|
-
if (!
|
|
3642
|
+
), u = w(
|
|
3643
|
+
(h) => {
|
|
3644
|
+
if (!h.over) {
|
|
3354
3645
|
o(l.current);
|
|
3355
3646
|
return;
|
|
3356
3647
|
}
|
|
3357
|
-
const
|
|
3358
|
-
o(
|
|
3648
|
+
const R = je(t, h.over.id);
|
|
3649
|
+
o(R);
|
|
3359
3650
|
},
|
|
3360
3651
|
[t]
|
|
3361
|
-
),
|
|
3362
|
-
(
|
|
3363
|
-
const { active:
|
|
3364
|
-
l.current = null,
|
|
3652
|
+
), p = w(
|
|
3653
|
+
(h) => {
|
|
3654
|
+
const { active: R, over: P } = h, k = () => {
|
|
3655
|
+
l.current = null, s(null), o(null);
|
|
3365
3656
|
};
|
|
3366
3657
|
if (!P) {
|
|
3367
|
-
|
|
3658
|
+
k();
|
|
3368
3659
|
return;
|
|
3369
3660
|
}
|
|
3370
|
-
const
|
|
3371
|
-
if (!
|
|
3372
|
-
|
|
3661
|
+
const T = Ae(t, R.id), I = je(t, P.id);
|
|
3662
|
+
if (!T || !I) {
|
|
3663
|
+
k();
|
|
3373
3664
|
return;
|
|
3374
3665
|
}
|
|
3375
|
-
let c = t.map((
|
|
3376
|
-
if (
|
|
3377
|
-
const
|
|
3378
|
-
c[
|
|
3379
|
-
...
|
|
3380
|
-
items:
|
|
3666
|
+
let c = t.map((v) => ({ ...v, items: [...v.items] }));
|
|
3667
|
+
if (T === I) {
|
|
3668
|
+
const v = c.findIndex((F) => F.zoneKey === T), _ = c[v], S = _.items.findIndex((F) => F.id === R.id), b = _.items.findIndex((F) => F.id === P.id), x = b >= 0 ? b : Math.max(0, _.items.length - 1);
|
|
3669
|
+
c[v] = {
|
|
3670
|
+
..._,
|
|
3671
|
+
items: Oa(_.items, S, x)
|
|
3381
3672
|
};
|
|
3382
3673
|
} else {
|
|
3383
|
-
const
|
|
3674
|
+
const v = c.findIndex((O) => O.zoneKey === T), _ = c.findIndex((O) => O.zoneKey === I), S = c[v], b = c[_], x = S.items.find((O) => O.id === R.id);
|
|
3384
3675
|
if (!x) {
|
|
3385
|
-
|
|
3676
|
+
k();
|
|
3386
3677
|
return;
|
|
3387
3678
|
}
|
|
3388
|
-
const F = S.items.filter((O) => O.id !==
|
|
3389
|
-
let j = F,
|
|
3390
|
-
if (
|
|
3391
|
-
const O =
|
|
3392
|
-
|
|
3679
|
+
const F = S.items.filter((O) => O.id !== R.id), U = b.items.findIndex((O) => O.id === P.id), q = U >= 0 ? U : b.items.length;
|
|
3680
|
+
let j = F, G = [...b.items];
|
|
3681
|
+
if (b.maxItems !== void 0 && G.length >= b.maxItems) {
|
|
3682
|
+
const O = G[G.length - 1];
|
|
3683
|
+
G = G.slice(0, b.maxItems - 1), j = [...F, O];
|
|
3393
3684
|
}
|
|
3394
|
-
const B = Math.min(q,
|
|
3395
|
-
...
|
|
3685
|
+
const B = Math.min(q, G.length), Z = [
|
|
3686
|
+
...G.slice(0, B),
|
|
3396
3687
|
x,
|
|
3397
|
-
...
|
|
3688
|
+
...G.slice(B)
|
|
3398
3689
|
];
|
|
3399
|
-
c[
|
|
3690
|
+
c[v] = { ...S, items: j }, c[_] = { ...b, items: Z };
|
|
3400
3691
|
}
|
|
3401
|
-
n(c), m.current?.(c),
|
|
3692
|
+
n(c), m.current?.(c), k();
|
|
3402
3693
|
},
|
|
3403
3694
|
[t]
|
|
3404
|
-
),
|
|
3405
|
-
(
|
|
3406
|
-
id:
|
|
3407
|
-
"data-zone-key":
|
|
3695
|
+
), N = w(
|
|
3696
|
+
(h) => ({
|
|
3697
|
+
id: h,
|
|
3698
|
+
"data-zone-key": h
|
|
3408
3699
|
}),
|
|
3409
3700
|
[]
|
|
3410
3701
|
), y = w(
|
|
3411
|
-
(
|
|
3412
|
-
const
|
|
3702
|
+
(h) => {
|
|
3703
|
+
const R = Ae(t, h.id) ?? "";
|
|
3413
3704
|
return {
|
|
3414
|
-
id:
|
|
3415
|
-
"data-item-id":
|
|
3416
|
-
"data-zone-key":
|
|
3705
|
+
id: h.id,
|
|
3706
|
+
"data-item-id": h.id,
|
|
3707
|
+
"data-zone-key": R
|
|
3417
3708
|
};
|
|
3418
3709
|
},
|
|
3419
3710
|
[t]
|
|
3420
3711
|
);
|
|
3421
3712
|
return {
|
|
3422
3713
|
zones: t,
|
|
3423
|
-
activeZone:
|
|
3714
|
+
activeZone: i,
|
|
3424
3715
|
activeItem: a,
|
|
3425
|
-
getZoneProps:
|
|
3716
|
+
getZoneProps: N,
|
|
3426
3717
|
getItemProps: y,
|
|
3427
|
-
handleDragStart:
|
|
3428
|
-
handleDragOver:
|
|
3429
|
-
handleDragEnd:
|
|
3718
|
+
handleDragStart: f,
|
|
3719
|
+
handleDragOver: u,
|
|
3720
|
+
handleDragEnd: p
|
|
3430
3721
|
};
|
|
3431
3722
|
}
|
|
3432
|
-
let
|
|
3433
|
-
const
|
|
3723
|
+
let ge = null, Ne = null, Me = !1;
|
|
3724
|
+
const Ba = [
|
|
3434
3725
|
"DndContext",
|
|
3435
3726
|
"DragOverlay",
|
|
3436
3727
|
"useSensors",
|
|
@@ -3439,22 +3730,22 @@ const ka = [
|
|
|
3439
3730
|
"PointerSensor",
|
|
3440
3731
|
"KeyboardSensor",
|
|
3441
3732
|
"closestCenter"
|
|
3442
|
-
],
|
|
3733
|
+
], za = [
|
|
3443
3734
|
"SortableContext",
|
|
3444
3735
|
"useSortable",
|
|
3445
3736
|
"verticalListSortingStrategy"
|
|
3446
3737
|
];
|
|
3447
|
-
function
|
|
3738
|
+
function Ka(e, t) {
|
|
3448
3739
|
const n = [], a = e ?? {};
|
|
3449
|
-
for (const
|
|
3450
|
-
a[
|
|
3451
|
-
const
|
|
3452
|
-
for (const
|
|
3453
|
-
|
|
3740
|
+
for (const i of Ba)
|
|
3741
|
+
a[i] === void 0 && n.push(`@dnd-kit/core:${i}`);
|
|
3742
|
+
const s = t ?? {};
|
|
3743
|
+
for (const i of za)
|
|
3744
|
+
s[i] === void 0 && n.push(`@dnd-kit/sortable:${i}`);
|
|
3454
3745
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
3455
3746
|
}
|
|
3456
|
-
function
|
|
3457
|
-
return
|
|
3747
|
+
function Wa() {
|
|
3748
|
+
return ge ? Promise.resolve(ge) : Me ? Promise.resolve(null) : Ne || (Ne = (async () => {
|
|
3458
3749
|
try {
|
|
3459
3750
|
const [e, t, n] = await Promise.all([
|
|
3460
3751
|
import("@dnd-kit/core"),
|
|
@@ -3462,57 +3753,57 @@ function Ma() {
|
|
|
3462
3753
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
3463
3754
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
3464
3755
|
), {}))
|
|
3465
|
-
]), a =
|
|
3466
|
-
return a.ok ? (
|
|
3756
|
+
]), a = Ka(e, t);
|
|
3757
|
+
return a.ok ? (ge = {
|
|
3467
3758
|
core: e,
|
|
3468
3759
|
sortable: t,
|
|
3469
3760
|
utilities: n
|
|
3470
|
-
},
|
|
3761
|
+
}, ge) : (Me = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
3471
3762
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
3472
3763
|
), null);
|
|
3473
3764
|
} catch {
|
|
3474
|
-
return
|
|
3765
|
+
return Me = !0, null;
|
|
3475
3766
|
}
|
|
3476
|
-
})(),
|
|
3767
|
+
})(), Ne);
|
|
3477
3768
|
}
|
|
3478
|
-
function
|
|
3479
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem:
|
|
3480
|
-
return
|
|
3769
|
+
function Ga(e) {
|
|
3770
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: s, renderDragOverlay: i } = e, o = $a({ zones: t, onZoneChange: n }), [l, m] = H.useState(ge);
|
|
3771
|
+
return H.useEffect(() => {
|
|
3481
3772
|
if (l) return;
|
|
3482
|
-
let
|
|
3483
|
-
return
|
|
3484
|
-
|
|
3773
|
+
let d = !0;
|
|
3774
|
+
return Wa().then((g) => {
|
|
3775
|
+
d && m(g);
|
|
3485
3776
|
}), () => {
|
|
3486
|
-
|
|
3777
|
+
d = !1;
|
|
3487
3778
|
};
|
|
3488
|
-
}, [l]), l ? /* @__PURE__ */
|
|
3489
|
-
|
|
3779
|
+
}, [l]), l ? /* @__PURE__ */ r(
|
|
3780
|
+
nt,
|
|
3490
3781
|
{
|
|
3491
3782
|
state: o,
|
|
3492
3783
|
modules: l,
|
|
3493
3784
|
renderZone: a,
|
|
3494
|
-
renderItem:
|
|
3495
|
-
renderDragOverlay:
|
|
3785
|
+
renderItem: s,
|
|
3786
|
+
renderDragOverlay: i
|
|
3496
3787
|
}
|
|
3497
|
-
) : /* @__PURE__ */
|
|
3498
|
-
const
|
|
3499
|
-
return /* @__PURE__ */
|
|
3788
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
3789
|
+
const g = d.items.map((f) => /* @__PURE__ */ r(H.Fragment, { children: s(f) }, f.id));
|
|
3790
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, g) }, d.zoneKey);
|
|
3500
3791
|
}) });
|
|
3501
3792
|
}
|
|
3502
|
-
|
|
3503
|
-
function
|
|
3793
|
+
Ga.displayName = "SortableZones";
|
|
3794
|
+
function nt({
|
|
3504
3795
|
state: e,
|
|
3505
3796
|
modules: t,
|
|
3506
3797
|
renderZone: n,
|
|
3507
3798
|
renderItem: a,
|
|
3508
|
-
renderDragOverlay:
|
|
3799
|
+
renderDragOverlay: s
|
|
3509
3800
|
}) {
|
|
3510
|
-
const { core:
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
),
|
|
3514
|
-
return /* @__PURE__ */
|
|
3515
|
-
|
|
3801
|
+
const { core: i, sortable: o, utilities: l } = t, { DndContext: m, DragOverlay: d, useSensors: g, useSensor: f, useDroppable: u, PointerSensor: p, KeyboardSensor: N, closestCenter: y } = i, { SortableContext: h, verticalListSortingStrategy: R } = o, P = g(
|
|
3802
|
+
f(p, { activationConstraint: { distance: 5 } }),
|
|
3803
|
+
f(N)
|
|
3804
|
+
), k = m, T = d, I = h;
|
|
3805
|
+
return /* @__PURE__ */ D(
|
|
3806
|
+
k,
|
|
3516
3807
|
{
|
|
3517
3808
|
sensors: P,
|
|
3518
3809
|
collisionDetection: y,
|
|
@@ -3521,8 +3812,8 @@ function Ye({
|
|
|
3521
3812
|
onDragEnd: e.handleDragEnd,
|
|
3522
3813
|
children: [
|
|
3523
3814
|
e.zones.map((c) => {
|
|
3524
|
-
const
|
|
3525
|
-
|
|
3815
|
+
const v = c.items.map((S) => S.id), _ = c.items.map((S) => /* @__PURE__ */ r(
|
|
3816
|
+
rt,
|
|
3526
3817
|
{
|
|
3527
3818
|
id: S.id,
|
|
3528
3819
|
useSortable: o.useSortable,
|
|
@@ -3531,65 +3822,65 @@ function Ye({
|
|
|
3531
3822
|
},
|
|
3532
3823
|
S.id
|
|
3533
3824
|
));
|
|
3534
|
-
return /* @__PURE__ */
|
|
3535
|
-
|
|
3825
|
+
return /* @__PURE__ */ r(
|
|
3826
|
+
st,
|
|
3536
3827
|
{
|
|
3537
3828
|
zoneKey: c.zoneKey,
|
|
3538
3829
|
zoneProps: e.getZoneProps(c.zoneKey),
|
|
3539
|
-
useDroppable:
|
|
3540
|
-
children: /* @__PURE__ */
|
|
3830
|
+
useDroppable: u,
|
|
3831
|
+
children: /* @__PURE__ */ r(I, { items: v, strategy: R, children: n(c.zoneKey, c.items, _) })
|
|
3541
3832
|
},
|
|
3542
3833
|
c.zoneKey
|
|
3543
3834
|
);
|
|
3544
3835
|
}),
|
|
3545
|
-
/* @__PURE__ */
|
|
3836
|
+
/* @__PURE__ */ r(T, { children: e.activeItem ? s?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
3546
3837
|
]
|
|
3547
3838
|
}
|
|
3548
3839
|
);
|
|
3549
3840
|
}
|
|
3550
|
-
|
|
3551
|
-
function
|
|
3552
|
-
const { attributes:
|
|
3841
|
+
nt.displayName = "SortableZonesInner";
|
|
3842
|
+
function rt({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
3843
|
+
const { attributes: s, listeners: i, setNodeRef: o, transform: l, transition: m, isDragging: d } = t({ id: e }), g = {
|
|
3553
3844
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
3554
3845
|
transition: m,
|
|
3555
|
-
opacity:
|
|
3846
|
+
opacity: d ? 0.5 : 1
|
|
3556
3847
|
};
|
|
3557
|
-
return /* @__PURE__ */
|
|
3848
|
+
return /* @__PURE__ */ r("div", { ref: o, style: g, "data-sortable-item-id": e, ...s, ...i, children: a });
|
|
3558
3849
|
}
|
|
3559
|
-
|
|
3560
|
-
function
|
|
3850
|
+
rt.displayName = "SortableItem";
|
|
3851
|
+
function st({
|
|
3561
3852
|
zoneKey: e,
|
|
3562
3853
|
zoneProps: t,
|
|
3563
3854
|
useDroppable: n,
|
|
3564
3855
|
children: a
|
|
3565
3856
|
}) {
|
|
3566
|
-
const { setNodeRef:
|
|
3567
|
-
return /* @__PURE__ */
|
|
3857
|
+
const { setNodeRef: s, isOver: i } = n({ id: e });
|
|
3858
|
+
return /* @__PURE__ */ r("div", { ref: s, "data-zone-is-over": i || void 0, ...t, children: a });
|
|
3568
3859
|
}
|
|
3569
|
-
|
|
3570
|
-
function
|
|
3860
|
+
st.displayName = "ZoneDroppable";
|
|
3861
|
+
function gr({
|
|
3571
3862
|
slotLeft: e,
|
|
3572
3863
|
slotCenter: t,
|
|
3573
3864
|
slotRight: n,
|
|
3574
3865
|
height: a = 36,
|
|
3575
|
-
className:
|
|
3576
|
-
style:
|
|
3866
|
+
className: s,
|
|
3867
|
+
style: i,
|
|
3577
3868
|
"aria-label": o = "Dashboard navigation"
|
|
3578
3869
|
}) {
|
|
3579
3870
|
const l = {
|
|
3580
3871
|
"--gloss-bottom-toolbar-height": `${a}px`,
|
|
3581
|
-
...
|
|
3872
|
+
...i
|
|
3582
3873
|
};
|
|
3583
|
-
return /* @__PURE__ */
|
|
3874
|
+
return /* @__PURE__ */ D(
|
|
3584
3875
|
"div",
|
|
3585
3876
|
{
|
|
3586
3877
|
role: "toolbar",
|
|
3587
3878
|
"aria-label": o,
|
|
3588
3879
|
"data-testid": "gloss-bottom-toolbar",
|
|
3589
|
-
className: ["gloss-bottom-toolbar",
|
|
3880
|
+
className: ["gloss-bottom-toolbar", s].filter(Boolean).join(" "),
|
|
3590
3881
|
style: l,
|
|
3591
3882
|
children: [
|
|
3592
|
-
/* @__PURE__ */
|
|
3883
|
+
/* @__PURE__ */ r(
|
|
3593
3884
|
"div",
|
|
3594
3885
|
{
|
|
3595
3886
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--left",
|
|
@@ -3597,7 +3888,7 @@ function Jn({
|
|
|
3597
3888
|
children: e
|
|
3598
3889
|
}
|
|
3599
3890
|
),
|
|
3600
|
-
/* @__PURE__ */
|
|
3891
|
+
/* @__PURE__ */ r(
|
|
3601
3892
|
"div",
|
|
3602
3893
|
{
|
|
3603
3894
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--center",
|
|
@@ -3605,7 +3896,7 @@ function Jn({
|
|
|
3605
3896
|
children: t
|
|
3606
3897
|
}
|
|
3607
3898
|
),
|
|
3608
|
-
/* @__PURE__ */
|
|
3899
|
+
/* @__PURE__ */ r(
|
|
3609
3900
|
"div",
|
|
3610
3901
|
{
|
|
3611
3902
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--right",
|
|
@@ -3617,386 +3908,395 @@ function Jn({
|
|
|
3617
3908
|
}
|
|
3618
3909
|
);
|
|
3619
3910
|
}
|
|
3620
|
-
function
|
|
3911
|
+
function pr({
|
|
3621
3912
|
count: e,
|
|
3622
3913
|
currentIndex: t,
|
|
3623
3914
|
onSelect: n,
|
|
3624
3915
|
"aria-label": a = "Sections",
|
|
3625
|
-
provisionalIndex:
|
|
3626
|
-
pulseIndex:
|
|
3916
|
+
provisionalIndex: s,
|
|
3917
|
+
pulseIndex: i,
|
|
3627
3918
|
pulseNonce: o
|
|
3628
3919
|
}) {
|
|
3629
|
-
const l =
|
|
3630
|
-
return l.current.length = e, /* @__PURE__ */
|
|
3920
|
+
const l = gt.useRef([]);
|
|
3921
|
+
return l.current.length = e, /* @__PURE__ */ r(
|
|
3631
3922
|
"div",
|
|
3632
3923
|
{
|
|
3633
3924
|
role: "tablist",
|
|
3634
3925
|
"aria-label": a,
|
|
3635
3926
|
"data-testid": "gloss-section-dots",
|
|
3636
3927
|
className: "gloss-section-dots",
|
|
3637
|
-
onKeyDown: (
|
|
3928
|
+
onKeyDown: (d) => {
|
|
3638
3929
|
if (e !== 0) {
|
|
3639
|
-
if (
|
|
3640
|
-
|
|
3641
|
-
const
|
|
3642
|
-
n(
|
|
3643
|
-
} else if (
|
|
3644
|
-
|
|
3645
|
-
const
|
|
3646
|
-
n(
|
|
3930
|
+
if (d.key === "ArrowRight") {
|
|
3931
|
+
d.preventDefault();
|
|
3932
|
+
const g = (t + 1) % e;
|
|
3933
|
+
n(g), requestAnimationFrame(() => l.current[g]?.focus());
|
|
3934
|
+
} else if (d.key === "ArrowLeft") {
|
|
3935
|
+
d.preventDefault();
|
|
3936
|
+
const g = (t - 1 + e) % e;
|
|
3937
|
+
n(g), requestAnimationFrame(() => l.current[g]?.focus());
|
|
3647
3938
|
}
|
|
3648
3939
|
}
|
|
3649
3940
|
},
|
|
3650
|
-
children: Array.from({ length: e }, (
|
|
3941
|
+
children: Array.from({ length: e }, (d, g) => /* @__PURE__ */ r(
|
|
3651
3942
|
"button",
|
|
3652
3943
|
{
|
|
3653
|
-
ref: (
|
|
3654
|
-
l.current[
|
|
3944
|
+
ref: (f) => {
|
|
3945
|
+
l.current[g] = f;
|
|
3655
3946
|
},
|
|
3656
3947
|
type: "button",
|
|
3657
3948
|
role: "tab",
|
|
3658
|
-
"aria-selected":
|
|
3659
|
-
"aria-label":
|
|
3660
|
-
"data-state":
|
|
3661
|
-
"data-section-index":
|
|
3949
|
+
"aria-selected": g === t,
|
|
3950
|
+
"aria-label": g === s ? "Unconfirmed section" : `Section ${g + 1}`,
|
|
3951
|
+
"data-state": g === s ? "provisional-hollow" : g === i ? "pulse" : g === t ? "current" : "hollow",
|
|
3952
|
+
"data-section-index": g,
|
|
3662
3953
|
className: [
|
|
3663
3954
|
"gloss-section-dots__dot",
|
|
3664
|
-
|
|
3955
|
+
g === t && "gloss-section-dots__dot--current"
|
|
3665
3956
|
].filter(Boolean).join(" "),
|
|
3666
|
-
onClick: () => n(
|
|
3957
|
+
onClick: () => n(g)
|
|
3667
3958
|
},
|
|
3668
|
-
|
|
3959
|
+
g === i ? `${g}-${o ?? 0}` : g
|
|
3669
3960
|
))
|
|
3670
3961
|
}
|
|
3671
3962
|
);
|
|
3672
3963
|
}
|
|
3673
|
-
const
|
|
3674
|
-
const
|
|
3675
|
-
return delete
|
|
3964
|
+
const Va = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3965
|
+
const s = { ...n };
|
|
3966
|
+
return delete s.className, delete s.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...s, children: /* @__PURE__ */ r(Oe, { region: "toolbar", density: e, children: t }) });
|
|
3676
3967
|
});
|
|
3677
|
-
|
|
3678
|
-
const
|
|
3679
|
-
const o = { ...
|
|
3680
|
-
return delete o.className, delete o.style, /* @__PURE__ */
|
|
3681
|
-
e && /* @__PURE__ */
|
|
3682
|
-
t && /* @__PURE__ */
|
|
3683
|
-
/* @__PURE__ */
|
|
3968
|
+
Va.displayName = "ContainerToolbar";
|
|
3969
|
+
const Ha = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...s }, i) => {
|
|
3970
|
+
const o = { ...s };
|
|
3971
|
+
return delete o.className, delete o.style, /* @__PURE__ */ D("fieldset", { ref: i, className: "gloss-container-form-section", ...o, children: [
|
|
3972
|
+
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
3973
|
+
t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
|
|
3974
|
+
/* @__PURE__ */ r(Oe, { region: "form-section", density: n, children: a })
|
|
3684
3975
|
] });
|
|
3685
3976
|
});
|
|
3686
|
-
|
|
3687
|
-
const
|
|
3688
|
-
const
|
|
3689
|
-
return delete
|
|
3977
|
+
Ha.displayName = "ContainerFormSection";
|
|
3978
|
+
const Ua = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3979
|
+
const s = { ...n };
|
|
3980
|
+
return delete s.className, delete s.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...s, children: /* @__PURE__ */ r(Oe, { region: "table", density: e, children: t }) });
|
|
3690
3981
|
});
|
|
3691
|
-
|
|
3982
|
+
Ua.displayName = "ContainerTable";
|
|
3692
3983
|
export {
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
mn as
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
3984
|
+
vr as Accordion,
|
|
3985
|
+
br as AccordionContent,
|
|
3986
|
+
yr as AccordionItem,
|
|
3987
|
+
wr as AccordionTrigger,
|
|
3988
|
+
_r as ActionStrip,
|
|
3989
|
+
Nr as Actionable,
|
|
3990
|
+
Dr as AddressGroup,
|
|
3991
|
+
Cr as AddressSelect,
|
|
3992
|
+
kr as AsyncLoader,
|
|
3993
|
+
xr as Autocomplete,
|
|
3994
|
+
Sr as Badge,
|
|
3995
|
+
Rr as BarChartCard,
|
|
3996
|
+
Mr as BarsBg,
|
|
3997
|
+
gr as BottomToolbar,
|
|
3998
|
+
Tr as Button,
|
|
3999
|
+
Ir as ButtonGroup,
|
|
4000
|
+
Pr as ButtonGroupContext,
|
|
4001
|
+
Fr as Card,
|
|
4002
|
+
Er as CardActions,
|
|
4003
|
+
Ar as CardBack,
|
|
4004
|
+
Or as CardBody,
|
|
4005
|
+
Lr as CardFooter,
|
|
4006
|
+
$r as CardHeader,
|
|
4007
|
+
Br as CardMedia,
|
|
4008
|
+
ut as CardShell,
|
|
4009
|
+
zr as CardSubtitle,
|
|
4010
|
+
Kr as CardTitle,
|
|
4011
|
+
dr as CascadePreview,
|
|
4012
|
+
Wr as ChartControlBar,
|
|
4013
|
+
Gr as Checkbox,
|
|
4014
|
+
Vr as CheckboxGroup,
|
|
4015
|
+
mt as Chip,
|
|
4016
|
+
Hr as ColorPicker,
|
|
4017
|
+
Ur as ComparisonCard,
|
|
4018
|
+
jr as ContactForm,
|
|
4019
|
+
Zr as ContainerCard,
|
|
4020
|
+
qr as ContainerCardActions,
|
|
4021
|
+
Yr as ContainerCardBody,
|
|
4022
|
+
Qr as ContainerCardFooter,
|
|
4023
|
+
Xr as ContainerCardHeader,
|
|
4024
|
+
Jr as ContainerCardMedia,
|
|
4025
|
+
es as ContainerCardSubtitle,
|
|
4026
|
+
ts as ContainerCardTitle,
|
|
4027
|
+
as as ContainerDialog,
|
|
4028
|
+
ns as ContainerDialogActions,
|
|
4029
|
+
rs as ContainerDialogBody,
|
|
4030
|
+
ss as ContainerDialogHeader,
|
|
4031
|
+
Ha as ContainerFormSection,
|
|
4032
|
+
is as ContainerPanel,
|
|
4033
|
+
Ua as ContainerTable,
|
|
4034
|
+
Va as ContainerToolbar,
|
|
4035
|
+
os as CreditCardForm,
|
|
4036
|
+
ls as DEFAULT_FOOTER_IDS,
|
|
4037
|
+
se as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4038
|
+
Lo as DEFAULT_MARKET_PRESETS,
|
|
4039
|
+
cs as DEFAULT_OVERFLOW_IDS,
|
|
4040
|
+
$o as DEFAULT_PINNED,
|
|
4041
|
+
qe as DEFAULT_RESIZE_PHYSICS,
|
|
4042
|
+
ds as DataTable,
|
|
4043
|
+
us as DatePicker,
|
|
4044
|
+
ms as DateRangePicker,
|
|
4045
|
+
gs as DestructiveModal,
|
|
4046
|
+
ua as DevTuningPanel,
|
|
4047
|
+
ps as DirectionCard,
|
|
4048
|
+
hs as Dismissible,
|
|
4049
|
+
fs as DistributionCard,
|
|
4050
|
+
vs as DonutChart,
|
|
4051
|
+
lr as DragGhost,
|
|
4052
|
+
rr as DropAnchorCell,
|
|
4053
|
+
bs as Dropdown,
|
|
4054
|
+
ha as DualPaceBars,
|
|
4055
|
+
ys as ENTITY_FILTER_KEYS,
|
|
4056
|
+
ws as ENTITY_PROFILE_ROUTES,
|
|
4057
|
+
_s as ENTITY_TYPE_PLURAL,
|
|
4058
|
+
At as EdgeHoverHandle,
|
|
4059
|
+
or as EmptyCellPackAffordance,
|
|
4060
|
+
Ns as EntityPicker,
|
|
4061
|
+
X as EntityRow,
|
|
4062
|
+
Ds as EntitySearchPanel,
|
|
4063
|
+
Sa as ExceptionListCard,
|
|
4064
|
+
Ra as ExceptionListTilePreview,
|
|
4065
|
+
Cs as Expandable,
|
|
4066
|
+
ks as ExpandableChip,
|
|
4067
|
+
xs as FLIP_AND_STAGE_TIMINGS,
|
|
4068
|
+
Ss as FileUpload,
|
|
4069
|
+
Rs as FilterChip,
|
|
4070
|
+
Ms as FilterInput,
|
|
4071
|
+
Ts as FlipAndStageProvider,
|
|
4072
|
+
Is as Form,
|
|
4073
|
+
Ps as FormDialog,
|
|
4074
|
+
Fs as FormField,
|
|
4075
|
+
Es as FusedShape,
|
|
4076
|
+
fa as GapReadout,
|
|
4077
|
+
Ot as GhostPreview,
|
|
4078
|
+
As as GroupCheckbox,
|
|
4079
|
+
Os as GroupRadio,
|
|
4080
|
+
Nn as HARD_CLIP,
|
|
4081
|
+
Ls as HighlightCard,
|
|
4082
|
+
$s as HybridDatePicker,
|
|
4083
|
+
Bs as ImportWizard,
|
|
4084
|
+
Ma as InlineNudge,
|
|
4085
|
+
zs as Input,
|
|
4086
|
+
Ks as InputAddon,
|
|
4087
|
+
Ws as InputGroup,
|
|
4088
|
+
Da as LeaderboardCard,
|
|
4089
|
+
Ca as LeaderboardTilePreview,
|
|
4090
|
+
ya as LensChipGroup,
|
|
4091
|
+
Gs as Link,
|
|
4092
|
+
Vs as LoginForm,
|
|
4093
|
+
be as MagnitudeBar,
|
|
4094
|
+
Hs as MarketPresetRow,
|
|
4095
|
+
Us as MaskPresets,
|
|
4096
|
+
js as MaskedInput,
|
|
4097
|
+
Zs as Menu,
|
|
4098
|
+
qs as MenuDivider,
|
|
4099
|
+
Ys as MenuGroup,
|
|
4100
|
+
Qs as MenuItem,
|
|
4101
|
+
Xs as MergePrompt,
|
|
4102
|
+
Js as MetricCard,
|
|
4103
|
+
ei as MetricCardGrid,
|
|
4104
|
+
aa as MetricGroupContainer,
|
|
4105
|
+
ti as MiniCalendar,
|
|
4106
|
+
_a as MoreInLensRail,
|
|
4107
|
+
ai as MultiSelect,
|
|
4108
|
+
ni as NumberInput,
|
|
4109
|
+
ri as ObjectArrow,
|
|
4110
|
+
si as OrderFilterBar,
|
|
4111
|
+
Bo as PERIOD_OPTIONS,
|
|
4112
|
+
ur as PaceCard,
|
|
4113
|
+
mr as PaceTilePreview,
|
|
4114
|
+
Vt as PageChip,
|
|
4115
|
+
Ye as PageDropdown,
|
|
4116
|
+
ii as PasswordInput,
|
|
4117
|
+
oi as PaymentForm,
|
|
4118
|
+
li as PaymentMethodSelect,
|
|
4119
|
+
ci as PhoneInput,
|
|
4120
|
+
di as PinToMetric,
|
|
4121
|
+
Aa as PresetSwatchRow,
|
|
4122
|
+
ui as ProfileCard,
|
|
4123
|
+
mi as ProgressCard,
|
|
4124
|
+
gi as QuickConfigPanel,
|
|
4125
|
+
Qt as RECONFIG_BACKSIDE_LABELS,
|
|
4126
|
+
zo as ROLLING_OPTIONS,
|
|
4127
|
+
pi as Radio,
|
|
4128
|
+
hi as RadioGroup,
|
|
4129
|
+
fi as RangeSlider,
|
|
4130
|
+
fe as RankBadge,
|
|
4131
|
+
tt as RankDelta,
|
|
4132
|
+
vi as Rating,
|
|
4133
|
+
ea as ReconfigBacksideButtons,
|
|
4134
|
+
bi as RegistrationForm,
|
|
4135
|
+
nr as ResizeEnvelope,
|
|
4136
|
+
yi as Row1Controls,
|
|
4137
|
+
wi as Row2FilterTray,
|
|
4138
|
+
_i as SearchInput,
|
|
4139
|
+
ir as SectionDivider,
|
|
4140
|
+
pr as SectionDots,
|
|
4141
|
+
Ni as SegmentCard,
|
|
4142
|
+
Di as SegmentedControl,
|
|
4143
|
+
Ci as Select,
|
|
4144
|
+
ki as Selectable,
|
|
4145
|
+
ve as SeverityDot,
|
|
4146
|
+
xi as SimpleMetricCard,
|
|
4147
|
+
Si as SimpleSelector,
|
|
4148
|
+
Ri as Skeleton,
|
|
4149
|
+
Mi as SkeletonCard,
|
|
4150
|
+
Ti as SkeletonChart,
|
|
4151
|
+
Ii as SkeletonTable,
|
|
4152
|
+
Pi as Slider,
|
|
4153
|
+
cr as SnapOutline,
|
|
4154
|
+
Fi as Sortable,
|
|
4155
|
+
Ga as SortableZones,
|
|
4156
|
+
Ei as SparklineBg,
|
|
4157
|
+
sr as SpilloverArc,
|
|
4158
|
+
Ai as SplitButton,
|
|
4159
|
+
Oi as StackedGroupCard,
|
|
4160
|
+
wa as StarterRail,
|
|
4161
|
+
Li as StatusModeCard,
|
|
4162
|
+
Et as StatusSlotChipMenu,
|
|
4163
|
+
$i as Stepper,
|
|
4164
|
+
Ze as SwingReveal,
|
|
4165
|
+
Ko as TODAY_PRESET,
|
|
4166
|
+
re as TUNING_DEFAULTS,
|
|
4167
|
+
et as TUNING_STORAGE_KEY,
|
|
4168
|
+
Bi as TabGroup,
|
|
4169
|
+
zi as TabbedDataView,
|
|
4170
|
+
Ki as TagInput,
|
|
4171
|
+
St as TargetInput,
|
|
4172
|
+
Wi as Textarea,
|
|
4173
|
+
Pa as ThresholdRamp,
|
|
4174
|
+
Gi as TimeFrame,
|
|
4175
|
+
Vi as TimePicker,
|
|
4176
|
+
Hi as Toggle,
|
|
4177
|
+
Ui as Tooltip,
|
|
4178
|
+
ji as Transition,
|
|
4179
|
+
Zi as TransitionGroup,
|
|
4180
|
+
qi as TrendCard,
|
|
4181
|
+
Yi as TrendIndicator,
|
|
4182
|
+
Eo as UIContext,
|
|
4183
|
+
Oe as UIContextProvider,
|
|
4184
|
+
Qi as UnifiedBreakdownTable,
|
|
4185
|
+
Xi as UnifiedContextMenu,
|
|
4186
|
+
Lt as VelocityBuffer,
|
|
4187
|
+
Ji as addressGroupMetadata,
|
|
4188
|
+
eo as addressSchema,
|
|
4189
|
+
ln as allChips,
|
|
4190
|
+
Rn as allStateFixtures,
|
|
4191
|
+
Sn as allVariantFixtures,
|
|
4192
|
+
mn as blockSamples,
|
|
4193
|
+
to as buildDefaultOverflow,
|
|
4194
|
+
vn as cardSamples,
|
|
4195
|
+
bn as cascadePhysics,
|
|
4196
|
+
hn as chartSamples,
|
|
4197
|
+
pn as circleSamples,
|
|
4198
|
+
Dn as colorTokens,
|
|
4199
|
+
Yn as compactLayout,
|
|
4200
|
+
Bn as compactState,
|
|
4201
|
+
xn as computeGutterAnchorX,
|
|
4202
|
+
ao as contactFormMetadata,
|
|
4203
|
+
no as contactSchema,
|
|
4204
|
+
zn as contextMenuFixtures,
|
|
4205
|
+
ro as creditCardFormMetadata,
|
|
4206
|
+
so as creditCardSchema,
|
|
4207
|
+
Tt as dateChip,
|
|
4208
|
+
Je as defaultControlBarState,
|
|
4209
|
+
io as destructiveModalMetadata,
|
|
4210
|
+
oo as durations,
|
|
4211
|
+
lo as easings,
|
|
4212
|
+
zt as emptyFixture,
|
|
4213
|
+
Rt as entityChip,
|
|
4214
|
+
Zt as entityNameActions,
|
|
4215
|
+
dn as entityTabGroup,
|
|
4216
|
+
Bt as errorFixture,
|
|
4217
|
+
co as evaluateTintCondition,
|
|
4218
|
+
$n as filteredState,
|
|
4219
|
+
Wo as findPreset,
|
|
4220
|
+
Go as formatDateRange,
|
|
4221
|
+
Vo as formatMarketDates,
|
|
4222
|
+
Ho as formatTrend,
|
|
4223
|
+
Uo as formatValue,
|
|
4224
|
+
Xn as fullLayout,
|
|
4225
|
+
jo as generateMarketId,
|
|
4226
|
+
uo as generateTabId,
|
|
4227
|
+
Zo as getAllPresets,
|
|
4228
|
+
qo as getDateRangeForPreset,
|
|
4229
|
+
mo as getMenuActions,
|
|
4230
|
+
Cn as getMotionMode,
|
|
4231
|
+
Yo as getPresetLabel,
|
|
4232
|
+
go as getTransitionStyle,
|
|
4233
|
+
qn as gridCards,
|
|
4234
|
+
po as interpolate,
|
|
4235
|
+
Qo as isInRange,
|
|
4236
|
+
Xo as isMarketActive,
|
|
4237
|
+
Jo as isSameDay,
|
|
4238
|
+
Ln as itemColumns,
|
|
4239
|
+
An as itemRows,
|
|
4240
|
+
$t as loadingFixture,
|
|
4241
|
+
ho as loginFormMetadata,
|
|
4242
|
+
fo as loginSchema,
|
|
4243
|
+
It as manufacturerChip,
|
|
4244
|
+
ar as manyTabs,
|
|
4245
|
+
vo as mergeHandlers,
|
|
4246
|
+
bo as mergeRefs,
|
|
4247
|
+
cn as metricTabGroup,
|
|
4248
|
+
er as mixedTabs,
|
|
4249
|
+
el as normalizePresetId,
|
|
4250
|
+
Yt as numericActions,
|
|
4251
|
+
On as orderColumns,
|
|
4252
|
+
qt as orderIdActions,
|
|
4253
|
+
En as orderRows,
|
|
4254
|
+
Jn as ordersTabs,
|
|
4255
|
+
yo as parseNumericValue,
|
|
4256
|
+
wo as paymentFormMetadata,
|
|
4257
|
+
_o as paymentSchema,
|
|
4258
|
+
No as presets,
|
|
4259
|
+
wn as provisional,
|
|
4260
|
+
_n as reducedMotion,
|
|
4261
|
+
Do as registrationFormMetadata,
|
|
4262
|
+
Co as registrationSchema,
|
|
4263
|
+
yn as rejectionFeedback,
|
|
4264
|
+
Wn as sampleCompareRanges,
|
|
4265
|
+
Hn as sampleCustomMarkets,
|
|
4266
|
+
Kn as sampleDateRange,
|
|
4267
|
+
Un as sampleMarketPresetData,
|
|
4268
|
+
Vn as sampleMarkets,
|
|
4269
|
+
Zn as samplePeriodPresets,
|
|
4270
|
+
Gn as samplePreferences,
|
|
4271
|
+
jn as samplePresets,
|
|
4272
|
+
tr as singleTab,
|
|
4273
|
+
Mn as sparklineFixture,
|
|
4274
|
+
Tn as sparklineUpFixture,
|
|
4275
|
+
Gt as staleDonutFixture,
|
|
4276
|
+
Kt as staleFixture,
|
|
4277
|
+
Wt as staleSparklineFixture,
|
|
4278
|
+
In as standardFixture,
|
|
4279
|
+
Fn as standardFlatFixture,
|
|
4280
|
+
Qn as standardLayout,
|
|
4281
|
+
Pn as standardNegativeFixture,
|
|
4282
|
+
Mt as statusChip,
|
|
4283
|
+
me as swingReveal,
|
|
4284
|
+
fn as tableSamples,
|
|
4285
|
+
gn as textSamples,
|
|
4286
|
+
un as timeFrameTabGroup,
|
|
4287
|
+
tl as toUppercasePresetId,
|
|
4288
|
+
on as useArrowNavigation,
|
|
4289
|
+
ko as useCheckboxGroupContext,
|
|
4290
|
+
kn as useEdgeHoverResize,
|
|
4291
|
+
xo as useFilterLayout,
|
|
4292
|
+
So as useFlipAndStage,
|
|
4293
|
+
Ro as useFlipAndStageContext,
|
|
4294
|
+
Mo as useFlipAndStageContextOptional,
|
|
4295
|
+
sn as useFocusReturn,
|
|
4296
|
+
To as useFocusTrap,
|
|
4297
|
+
Io as useFormContext,
|
|
4298
|
+
Po as useRadioGroupContext,
|
|
4299
|
+
sa as useResizeTuning,
|
|
4300
|
+
$a as useSortableZones,
|
|
4301
|
+
Ao as useUIContext
|
|
4002
4302
|
};
|