@mt-gloss/ui 0.1.27 → 0.1.29
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 +1713 -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/PaceCard/PaceCard.d.ts +1 -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,29 @@ 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
|
-
|
|
2841
|
-
|
|
2842
|
-
/* @__PURE__ */
|
|
2843
|
-
|
|
2844
|
-
|
|
2840
|
+
onRemove: e.onRemove,
|
|
2841
|
+
children: /* @__PURE__ */ D("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
|
|
2842
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
|
|
2843
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: s ? /* @__PURE__ */ D(te, { children: [
|
|
2844
|
+
/* @__PURE__ */ r(
|
|
2845
|
+
ha,
|
|
2845
2846
|
{
|
|
2846
2847
|
consumed: e.consumed,
|
|
2847
2848
|
elapsed: e.elapsed,
|
|
2848
2849
|
severity: e.severity
|
|
2849
2850
|
}
|
|
2850
2851
|
),
|
|
2851
|
-
/* @__PURE__ */
|
|
2852
|
-
] }) : /* @__PURE__ */
|
|
2853
|
-
|
|
2852
|
+
/* @__PURE__ */ r(fa, { label: "Gap", value: e.gapLabel, severity: e.severity })
|
|
2853
|
+
] }) : /* @__PURE__ */ r(
|
|
2854
|
+
va,
|
|
2854
2855
|
{
|
|
2855
2856
|
label: e.label,
|
|
2856
2857
|
onSetTarget: () => n(!0)
|
|
@@ -2859,55 +2860,55 @@ const la = ({
|
|
|
2859
2860
|
] })
|
|
2860
2861
|
}
|
|
2861
2862
|
);
|
|
2862
|
-
},
|
|
2863
|
-
/* @__PURE__ */
|
|
2863
|
+
}, mr = () => /* @__PURE__ */ D("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
2864
|
+
/* @__PURE__ */ r(
|
|
2864
2865
|
"div",
|
|
2865
2866
|
{
|
|
2866
2867
|
className: "gloss-pace-tile-preview__bar gloss-pace-tile-preview__bar--consumed",
|
|
2867
2868
|
style: { width: "78%" }
|
|
2868
2869
|
}
|
|
2869
2870
|
),
|
|
2870
|
-
/* @__PURE__ */
|
|
2871
|
+
/* @__PURE__ */ r(
|
|
2871
2872
|
"div",
|
|
2872
2873
|
{
|
|
2873
2874
|
className: "gloss-pace-tile-preview__bar gloss-pace-tile-preview__bar--elapsed",
|
|
2874
2875
|
style: { width: "60%" }
|
|
2875
2876
|
}
|
|
2876
2877
|
),
|
|
2877
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
|
|
2878
2879
|
] });
|
|
2879
|
-
function
|
|
2880
|
-
return /* @__PURE__ */
|
|
2880
|
+
function ba({ id: e, label: t, selected: n, focused: a, disabled: s, badge: i, onClick: o }) {
|
|
2881
|
+
return /* @__PURE__ */ r(
|
|
2881
2882
|
"span",
|
|
2882
2883
|
{
|
|
2883
2884
|
role: "radio",
|
|
2884
2885
|
"aria-checked": n,
|
|
2885
|
-
"aria-disabled":
|
|
2886
|
+
"aria-disabled": s || void 0,
|
|
2886
2887
|
tabIndex: a ? 0 : -1,
|
|
2887
2888
|
className: "gloss-lens-chip",
|
|
2888
2889
|
"data-selected": n || void 0,
|
|
2889
|
-
"data-disabled":
|
|
2890
|
+
"data-disabled": s || void 0,
|
|
2890
2891
|
onClick: () => {
|
|
2891
|
-
|
|
2892
|
+
s || o(e);
|
|
2892
2893
|
},
|
|
2893
|
-
children: /* @__PURE__ */
|
|
2894
|
-
/* @__PURE__ */
|
|
2895
|
-
|
|
2894
|
+
children: /* @__PURE__ */ D(mt, { selected: n, disabled: s, variant: "soft", size: "sm", children: [
|
|
2895
|
+
/* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
|
|
2896
|
+
i && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: i })
|
|
2896
2897
|
] })
|
|
2897
2898
|
}
|
|
2898
2899
|
);
|
|
2899
2900
|
}
|
|
2900
|
-
function
|
|
2901
|
+
function ya({
|
|
2901
2902
|
lenses: e,
|
|
2902
2903
|
value: t,
|
|
2903
2904
|
onChange: n,
|
|
2904
2905
|
"aria-label": a = "Lens"
|
|
2905
2906
|
}) {
|
|
2906
2907
|
if (e.length === 0) return null;
|
|
2907
|
-
const [
|
|
2908
|
+
const [s, i] = $(
|
|
2908
2909
|
() => Math.max(0, e.findIndex((l) => l.id === t))
|
|
2909
2910
|
);
|
|
2910
|
-
return /* @__PURE__ */
|
|
2911
|
+
return /* @__PURE__ */ r(
|
|
2911
2912
|
"div",
|
|
2912
2913
|
{
|
|
2913
2914
|
role: "radiogroup",
|
|
@@ -2916,35 +2917,35 @@ function ma({
|
|
|
2916
2917
|
switch (l.key) {
|
|
2917
2918
|
case "ArrowRight":
|
|
2918
2919
|
case "ArrowDown":
|
|
2919
|
-
l.preventDefault(),
|
|
2920
|
+
l.preventDefault(), i((m) => (m + 1) % e.length);
|
|
2920
2921
|
break;
|
|
2921
2922
|
case "ArrowLeft":
|
|
2922
2923
|
case "ArrowUp":
|
|
2923
|
-
l.preventDefault(),
|
|
2924
|
+
l.preventDefault(), i((m) => (m - 1 + e.length) % e.length);
|
|
2924
2925
|
break;
|
|
2925
2926
|
case "Home":
|
|
2926
|
-
l.preventDefault(),
|
|
2927
|
+
l.preventDefault(), i(0);
|
|
2927
2928
|
break;
|
|
2928
2929
|
case "End":
|
|
2929
|
-
l.preventDefault(),
|
|
2930
|
+
l.preventDefault(), i(e.length - 1);
|
|
2930
2931
|
break;
|
|
2931
2932
|
case "Enter":
|
|
2932
2933
|
case " ": {
|
|
2933
2934
|
l.preventDefault();
|
|
2934
|
-
const m = e[
|
|
2935
|
+
const m = e[s];
|
|
2935
2936
|
m && !m.disabled && n(m.id);
|
|
2936
2937
|
break;
|
|
2937
2938
|
}
|
|
2938
2939
|
}
|
|
2939
2940
|
},
|
|
2940
2941
|
className: "gloss-lens-chip-group",
|
|
2941
|
-
children: e.map((l, m) => /* @__PURE__ */
|
|
2942
|
-
|
|
2942
|
+
children: e.map((l, m) => /* @__PURE__ */ r(
|
|
2943
|
+
ba,
|
|
2943
2944
|
{
|
|
2944
2945
|
id: l.id,
|
|
2945
2946
|
label: l.label,
|
|
2946
2947
|
selected: l.id === t,
|
|
2947
|
-
focused: m ===
|
|
2948
|
+
focused: m === s,
|
|
2948
2949
|
disabled: l.disabled,
|
|
2949
2950
|
badge: l.badge,
|
|
2950
2951
|
onClick: n
|
|
@@ -2954,26 +2955,317 @@ function ma({
|
|
|
2954
2955
|
}
|
|
2955
2956
|
);
|
|
2956
2957
|
}
|
|
2957
|
-
|
|
2958
|
-
function
|
|
2959
|
-
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */
|
|
2960
|
-
/* @__PURE__ */
|
|
2961
|
-
/* @__PURE__ */
|
|
2958
|
+
ya.displayName = "LensChipGroup";
|
|
2959
|
+
function wa({ heading: e, children: t }) {
|
|
2960
|
+
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ D("section", { className: "gloss-starter-rail", "aria-label": e, children: [
|
|
2961
|
+
/* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
|
|
2962
|
+
/* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
|
|
2962
2963
|
] });
|
|
2963
2964
|
}
|
|
2964
|
-
|
|
2965
|
-
function
|
|
2965
|
+
wa.displayName = "StarterRail";
|
|
2966
|
+
function _a({ heading: e, children: t, emptyStateLabel: n }) {
|
|
2966
2967
|
const a = !t || Array.isArray(t) && t.length === 0;
|
|
2967
|
-
return /* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2969
|
-
/* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ D("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
|
|
2969
|
+
/* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
|
|
2970
|
+
/* @__PURE__ */ D("div", { className: "gloss-more-in-lens-rail__tiles", children: [
|
|
2970
2971
|
t,
|
|
2971
|
-
a && n && /* @__PURE__ */
|
|
2972
|
+
a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
|
|
2973
|
+
] })
|
|
2974
|
+
] });
|
|
2975
|
+
}
|
|
2976
|
+
_a.displayName = "MoreInLensRail";
|
|
2977
|
+
function X({
|
|
2978
|
+
lead: e,
|
|
2979
|
+
name: t,
|
|
2980
|
+
secondary: n,
|
|
2981
|
+
value: a,
|
|
2982
|
+
trail: s,
|
|
2983
|
+
variant: i = "default",
|
|
2984
|
+
onClick: o,
|
|
2985
|
+
className: l,
|
|
2986
|
+
style: m
|
|
2987
|
+
}) {
|
|
2988
|
+
const d = [
|
|
2989
|
+
"gloss-entity-row",
|
|
2990
|
+
`gloss-entity-row--${i}`,
|
|
2991
|
+
o ? "gloss-entity-row--clickable" : "",
|
|
2992
|
+
l ?? ""
|
|
2993
|
+
].filter(Boolean).join(" "), g = /* @__PURE__ */ D(te, { children: [
|
|
2994
|
+
e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
|
|
2995
|
+
/* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
|
|
2996
|
+
n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
|
|
2997
|
+
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
2998
|
+
s !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: s })
|
|
2999
|
+
] });
|
|
3000
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: /* @__PURE__ */ r(
|
|
3001
|
+
"button",
|
|
3002
|
+
{
|
|
3003
|
+
type: "button",
|
|
3004
|
+
style: {
|
|
3005
|
+
all: "unset",
|
|
3006
|
+
display: "flex",
|
|
3007
|
+
width: "100%",
|
|
3008
|
+
alignItems: "center",
|
|
3009
|
+
gap: 4,
|
|
3010
|
+
cursor: "pointer"
|
|
3011
|
+
},
|
|
3012
|
+
onClick: (f) => {
|
|
3013
|
+
f.stopPropagation(), o();
|
|
3014
|
+
},
|
|
3015
|
+
children: g
|
|
3016
|
+
}
|
|
3017
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: m, children: g });
|
|
3018
|
+
}
|
|
3019
|
+
X.displayName = "EntityRow";
|
|
3020
|
+
const fe = ({ rank: e }) => {
|
|
3021
|
+
const t = e === 1 ? "first" : "other";
|
|
3022
|
+
return /* @__PURE__ */ r(
|
|
3023
|
+
"span",
|
|
3024
|
+
{
|
|
3025
|
+
role: "img",
|
|
3026
|
+
"aria-label": `Rank ${e}`,
|
|
3027
|
+
className: `gloss-rank-badge gloss-rank-badge--${t}`,
|
|
3028
|
+
children: e
|
|
3029
|
+
}
|
|
3030
|
+
);
|
|
3031
|
+
};
|
|
3032
|
+
fe.displayName = "RankBadge";
|
|
3033
|
+
function ve({ severity: e, "aria-label": t }) {
|
|
3034
|
+
return /* @__PURE__ */ r(
|
|
3035
|
+
"span",
|
|
3036
|
+
{
|
|
3037
|
+
role: "img",
|
|
3038
|
+
"aria-label": t,
|
|
3039
|
+
className: `gloss-severity-dot gloss-severity-dot--${e}`
|
|
3040
|
+
}
|
|
3041
|
+
);
|
|
3042
|
+
}
|
|
3043
|
+
ve.displayName = "SeverityDot";
|
|
3044
|
+
function tt({
|
|
3045
|
+
delta: e,
|
|
3046
|
+
direction: t = "flat",
|
|
3047
|
+
"aria-label": n
|
|
3048
|
+
}) {
|
|
3049
|
+
if (e === "new")
|
|
3050
|
+
return /* @__PURE__ */ r(
|
|
3051
|
+
"span",
|
|
3052
|
+
{
|
|
3053
|
+
role: "img",
|
|
3054
|
+
"aria-label": n,
|
|
3055
|
+
className: "gloss-rank-delta gloss-rank-delta--new",
|
|
3056
|
+
children: "NEW"
|
|
3057
|
+
}
|
|
3058
|
+
);
|
|
3059
|
+
const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
|
|
3060
|
+
return /* @__PURE__ */ D(
|
|
3061
|
+
"span",
|
|
3062
|
+
{
|
|
3063
|
+
role: "img",
|
|
3064
|
+
"aria-label": n,
|
|
3065
|
+
className: `gloss-rank-delta gloss-rank-delta--${t}`,
|
|
3066
|
+
children: [
|
|
3067
|
+
a,
|
|
3068
|
+
e
|
|
3069
|
+
]
|
|
3070
|
+
}
|
|
3071
|
+
);
|
|
3072
|
+
}
|
|
3073
|
+
tt.displayName = "RankDelta";
|
|
3074
|
+
function be({ fill: e, variant: t = "default", className: n }) {
|
|
3075
|
+
const a = Math.max(0, Math.min(100, e));
|
|
3076
|
+
return /* @__PURE__ */ r(
|
|
3077
|
+
"div",
|
|
3078
|
+
{
|
|
3079
|
+
"aria-hidden": "true",
|
|
3080
|
+
className: [
|
|
3081
|
+
"gloss-magnitude-bar",
|
|
3082
|
+
`gloss-magnitude-bar--${t}`,
|
|
3083
|
+
n ?? ""
|
|
3084
|
+
].filter(Boolean).join(" "),
|
|
3085
|
+
style: { "--_fill": `${a}%` },
|
|
3086
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-magnitude-bar__fill" })
|
|
3087
|
+
}
|
|
3088
|
+
);
|
|
3089
|
+
}
|
|
3090
|
+
be.displayName = "MagnitudeBar";
|
|
3091
|
+
const Na = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
|
|
3092
|
+
function Da({
|
|
3093
|
+
label: e,
|
|
3094
|
+
rows: t,
|
|
3095
|
+
rowCount: n,
|
|
3096
|
+
rankDeltaPeriod: a,
|
|
3097
|
+
isStale: s
|
|
3098
|
+
}) {
|
|
3099
|
+
const i = n ?? 3;
|
|
3100
|
+
return /* @__PURE__ */ D(te, { children: [
|
|
3101
|
+
/* @__PURE__ */ r(
|
|
3102
|
+
pe,
|
|
3103
|
+
{
|
|
3104
|
+
className: "gloss-metric-card__zone-a",
|
|
3105
|
+
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3106
|
+
children: /* @__PURE__ */ r(Te, { className: "gloss-metric-card__label", children: e })
|
|
3107
|
+
}
|
|
3108
|
+
),
|
|
3109
|
+
/* @__PURE__ */ r(
|
|
3110
|
+
pe,
|
|
3111
|
+
{
|
|
3112
|
+
className: `gloss-metric-card__zone-b gloss-leaderboard ${s ? "gloss-metric-data-stale" : ""}`,
|
|
3113
|
+
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3114
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0, i).map((o, l) => /* @__PURE__ */ r(
|
|
3115
|
+
X,
|
|
3116
|
+
{
|
|
3117
|
+
lead: /* @__PURE__ */ r(fe, { rank: l + 1 }),
|
|
3118
|
+
name: o.name,
|
|
3119
|
+
secondary: /* @__PURE__ */ r(
|
|
3120
|
+
be,
|
|
3121
|
+
{
|
|
3122
|
+
fill: o.magnitude,
|
|
3123
|
+
variant: o.isBottom ? "bottom" : "default"
|
|
3124
|
+
}
|
|
3125
|
+
),
|
|
3126
|
+
value: o.value,
|
|
3127
|
+
trail: /* @__PURE__ */ r(
|
|
3128
|
+
tt,
|
|
3129
|
+
{
|
|
3130
|
+
delta: o.rankDelta,
|
|
3131
|
+
direction: o.direction,
|
|
3132
|
+
"aria-label": Na(o)
|
|
3133
|
+
}
|
|
3134
|
+
),
|
|
3135
|
+
variant: "leaderboard",
|
|
3136
|
+
style: { "--i": l }
|
|
3137
|
+
},
|
|
3138
|
+
o.id
|
|
3139
|
+
)) })
|
|
3140
|
+
}
|
|
3141
|
+
),
|
|
3142
|
+
/* @__PURE__ */ D("div", { className: "gloss-leaderboard__zone-c", children: [
|
|
3143
|
+
a ?? "WoW",
|
|
3144
|
+
" rank change"
|
|
2972
3145
|
] })
|
|
2973
3146
|
] });
|
|
2974
3147
|
}
|
|
2975
|
-
|
|
2976
|
-
const
|
|
3148
|
+
Da.displayName = "LeaderboardCard";
|
|
3149
|
+
const Ca = () => /* @__PURE__ */ D(
|
|
3150
|
+
"div",
|
|
3151
|
+
{
|
|
3152
|
+
className: "leaderboard-tile-preview",
|
|
3153
|
+
"aria-hidden": "true",
|
|
3154
|
+
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3155
|
+
children: [
|
|
3156
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(be, { fill: 96 }), value: "98%" }),
|
|
3157
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(be, { fill: 72 }), value: "85%" }),
|
|
3158
|
+
/* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(fe, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(be, { fill: 48 }), value: "71%" })
|
|
3159
|
+
]
|
|
3160
|
+
}
|
|
3161
|
+
);
|
|
3162
|
+
Ca.displayName = "LeaderboardTilePreview";
|
|
3163
|
+
const ka = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", xa = (e, t) => {
|
|
3164
|
+
const n = e.sourceValue;
|
|
3165
|
+
if (typeof n != "number") return !1;
|
|
3166
|
+
switch (t.condition) {
|
|
3167
|
+
case "lt":
|
|
3168
|
+
return n < t.threshold;
|
|
3169
|
+
case "gt":
|
|
3170
|
+
return n > t.threshold;
|
|
3171
|
+
case "eq":
|
|
3172
|
+
return n === t.threshold;
|
|
3173
|
+
case "gte":
|
|
3174
|
+
return n >= t.threshold;
|
|
3175
|
+
case "lte":
|
|
3176
|
+
return n <= t.threshold;
|
|
3177
|
+
default:
|
|
3178
|
+
return !1;
|
|
3179
|
+
}
|
|
3180
|
+
};
|
|
3181
|
+
function Sa({
|
|
3182
|
+
label: e,
|
|
3183
|
+
rows: t,
|
|
3184
|
+
rule: n,
|
|
3185
|
+
rowCount: a,
|
|
3186
|
+
emptyStateLabel: s,
|
|
3187
|
+
ruleSubtitle: i,
|
|
3188
|
+
isStale: o
|
|
3189
|
+
}) {
|
|
3190
|
+
const l = t.filter((d) => xa(d, n)), m = l.slice(0, a ?? 3);
|
|
3191
|
+
return l.length === 0 ? /* @__PURE__ */ D(te, { children: [
|
|
3192
|
+
/* @__PURE__ */ r(
|
|
3193
|
+
pe,
|
|
3194
|
+
{
|
|
3195
|
+
className: "gloss-metric-card__zone-a",
|
|
3196
|
+
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3197
|
+
children: /* @__PURE__ */ r(Te, { className: "gloss-metric-card__label", children: e })
|
|
3198
|
+
}
|
|
3199
|
+
),
|
|
3200
|
+
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: s ?? "No exceptions" }),
|
|
3201
|
+
i && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: i })
|
|
3202
|
+
] }) : /* @__PURE__ */ D(te, { children: [
|
|
3203
|
+
/* @__PURE__ */ r(
|
|
3204
|
+
pe,
|
|
3205
|
+
{
|
|
3206
|
+
className: "gloss-metric-card__zone-a",
|
|
3207
|
+
style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
|
|
3208
|
+
children: /* @__PURE__ */ r(Te, { className: "gloss-metric-card__label", children: e })
|
|
3209
|
+
}
|
|
3210
|
+
),
|
|
3211
|
+
/* @__PURE__ */ r(
|
|
3212
|
+
pe,
|
|
3213
|
+
{
|
|
3214
|
+
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3215
|
+
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3216
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: m.map((d, g) => /* @__PURE__ */ r(
|
|
3217
|
+
X,
|
|
3218
|
+
{
|
|
3219
|
+
lead: /* @__PURE__ */ r(ve, { severity: d.severity, "aria-label": ka(d.severity) }),
|
|
3220
|
+
name: d.name,
|
|
3221
|
+
value: d.value,
|
|
3222
|
+
variant: "exception",
|
|
3223
|
+
style: { "--i": g }
|
|
3224
|
+
},
|
|
3225
|
+
d.id
|
|
3226
|
+
)) })
|
|
3227
|
+
}
|
|
3228
|
+
),
|
|
3229
|
+
i && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: i })
|
|
3230
|
+
] });
|
|
3231
|
+
}
|
|
3232
|
+
Sa.displayName = "ExceptionListCard";
|
|
3233
|
+
const Ra = () => /* @__PURE__ */ D(
|
|
3234
|
+
"div",
|
|
3235
|
+
{
|
|
3236
|
+
className: "exception-list-tile-preview",
|
|
3237
|
+
"aria-hidden": "true",
|
|
3238
|
+
style: { transform: "scale(0.6)", transformOrigin: "top left" },
|
|
3239
|
+
children: [
|
|
3240
|
+
/* @__PURE__ */ r(
|
|
3241
|
+
X,
|
|
3242
|
+
{
|
|
3243
|
+
lead: /* @__PURE__ */ r(ve, { severity: "critical", "aria-label": "Critical severity" }),
|
|
3244
|
+
name: "SKU A",
|
|
3245
|
+
value: "0 on hand"
|
|
3246
|
+
}
|
|
3247
|
+
),
|
|
3248
|
+
/* @__PURE__ */ r(
|
|
3249
|
+
X,
|
|
3250
|
+
{
|
|
3251
|
+
lead: /* @__PURE__ */ r(ve, { severity: "warn", "aria-label": "Warning severity" }),
|
|
3252
|
+
name: "SKU B",
|
|
3253
|
+
value: "3 units"
|
|
3254
|
+
}
|
|
3255
|
+
),
|
|
3256
|
+
/* @__PURE__ */ r(
|
|
3257
|
+
X,
|
|
3258
|
+
{
|
|
3259
|
+
lead: /* @__PURE__ */ r(ve, { severity: "info", "aria-label": "Info severity" }),
|
|
3260
|
+
name: "SKU C",
|
|
3261
|
+
value: "12 days"
|
|
3262
|
+
}
|
|
3263
|
+
)
|
|
3264
|
+
]
|
|
3265
|
+
}
|
|
3266
|
+
);
|
|
3267
|
+
Ra.displayName = "ExceptionListTilePreview";
|
|
3268
|
+
const ne = {
|
|
2977
3269
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
2978
3270
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
2979
3271
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -2981,57 +3273,57 @@ const te = {
|
|
|
2981
3273
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
2982
3274
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
2983
3275
|
};
|
|
2984
|
-
function
|
|
3276
|
+
function Ma({
|
|
2985
3277
|
message: e,
|
|
2986
3278
|
primaryAction: t,
|
|
2987
3279
|
onDismiss: n,
|
|
2988
3280
|
anchorEl: a,
|
|
2989
|
-
anchorSelector:
|
|
3281
|
+
anchorSelector: s
|
|
2990
3282
|
}) {
|
|
2991
|
-
const [
|
|
3283
|
+
const [i, o] = H.useState(null), l = H.useMemo(
|
|
2992
3284
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
2993
3285
|
[]
|
|
2994
3286
|
);
|
|
2995
|
-
|
|
2996
|
-
!a && !
|
|
3287
|
+
H.useEffect(() => {
|
|
3288
|
+
!a && !s && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
2997
3289
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
2998
3290
|
);
|
|
2999
|
-
}, [a,
|
|
3000
|
-
let
|
|
3001
|
-
if (a ?
|
|
3002
|
-
const
|
|
3291
|
+
}, [a, s]), H.useLayoutEffect(() => {
|
|
3292
|
+
let d = null;
|
|
3293
|
+
if (a ? d = a : s && (d = document.querySelector(s)), d) {
|
|
3294
|
+
const g = d.getBoundingClientRect();
|
|
3003
3295
|
o({
|
|
3004
|
-
top:
|
|
3005
|
-
left:
|
|
3296
|
+
top: g.bottom + window.scrollY + 6,
|
|
3297
|
+
left: g.left + window.scrollX
|
|
3006
3298
|
});
|
|
3007
3299
|
}
|
|
3008
|
-
}, [a,
|
|
3009
|
-
const m =
|
|
3010
|
-
return /* @__PURE__ */
|
|
3300
|
+
}, [a, s]);
|
|
3301
|
+
const m = i ? { top: i.top, left: i.left } : {};
|
|
3302
|
+
return /* @__PURE__ */ D(
|
|
3011
3303
|
"div",
|
|
3012
3304
|
{
|
|
3013
|
-
className:
|
|
3305
|
+
className: ne["gloss-inline-nudge"],
|
|
3014
3306
|
style: m,
|
|
3015
3307
|
role: "status",
|
|
3016
3308
|
"aria-live": "polite",
|
|
3017
3309
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3018
3310
|
children: [
|
|
3019
|
-
/* @__PURE__ */
|
|
3020
|
-
/* @__PURE__ */
|
|
3021
|
-
/* @__PURE__ */
|
|
3311
|
+
/* @__PURE__ */ r("span", { className: ne["gloss-inline-nudge__message"], children: e }),
|
|
3312
|
+
/* @__PURE__ */ D("div", { className: ne["gloss-inline-nudge__actions"], children: [
|
|
3313
|
+
/* @__PURE__ */ r(
|
|
3022
3314
|
"button",
|
|
3023
3315
|
{
|
|
3024
3316
|
type: "button",
|
|
3025
|
-
className: `${
|
|
3317
|
+
className: `${ne["gloss-inline-nudge__btn"]} ${ne["gloss-inline-nudge__btn--action"]}`,
|
|
3026
3318
|
onClick: t.onClick,
|
|
3027
3319
|
children: t.label
|
|
3028
3320
|
}
|
|
3029
3321
|
),
|
|
3030
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ r(
|
|
3031
3323
|
"button",
|
|
3032
3324
|
{
|
|
3033
3325
|
type: "button",
|
|
3034
|
-
className: `${
|
|
3326
|
+
className: `${ne["gloss-inline-nudge__btn"]} ${ne["gloss-inline-nudge__btn--dismiss"]}`,
|
|
3035
3327
|
onClick: n,
|
|
3036
3328
|
"aria-label": "Dismiss",
|
|
3037
3329
|
children: "Dismiss"
|
|
@@ -3042,46 +3334,46 @@ function fa({
|
|
|
3042
3334
|
}
|
|
3043
3335
|
);
|
|
3044
3336
|
}
|
|
3045
|
-
|
|
3046
|
-
function
|
|
3337
|
+
Ma.displayName = "InlineNudge";
|
|
3338
|
+
function Ee(e) {
|
|
3047
3339
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3048
3340
|
}
|
|
3049
|
-
function
|
|
3341
|
+
function Ta(e, t, n) {
|
|
3050
3342
|
if (n <= t) {
|
|
3051
|
-
const o = e[0], l = o ?
|
|
3343
|
+
const o = e[0], l = o ? Ee(o) : "#888";
|
|
3052
3344
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
3053
3345
|
}
|
|
3054
|
-
const a = n - t,
|
|
3346
|
+
const a = n - t, i = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
3055
3347
|
const l = (o.value - t) / a * 100;
|
|
3056
|
-
return `${
|
|
3348
|
+
return `${Ee(o)} ${l.toFixed(2)}%`;
|
|
3057
3349
|
});
|
|
3058
|
-
return
|
|
3350
|
+
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
3351
|
}
|
|
3060
|
-
function
|
|
3352
|
+
function Ia(e) {
|
|
3061
3353
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3062
3354
|
}
|
|
3063
|
-
function
|
|
3355
|
+
function Pa({
|
|
3064
3356
|
stops: e,
|
|
3065
3357
|
onChange: t,
|
|
3066
3358
|
min: n = 0,
|
|
3067
3359
|
max: a = 100,
|
|
3068
|
-
step:
|
|
3069
|
-
disabled:
|
|
3360
|
+
step: s,
|
|
3361
|
+
disabled: i = !1
|
|
3070
3362
|
}) {
|
|
3071
|
-
const o =
|
|
3072
|
-
`ThresholdRamp: step (${
|
|
3073
|
-
), 0.01) :
|
|
3363
|
+
const o = s === void 0 ? 0.01 : !Number.isFinite(s) || s <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3364
|
+
`ThresholdRamp: step (${s}) must be a positive finite number; falling back to 0.01.`
|
|
3365
|
+
), 0.01) : s, l = w(
|
|
3074
3366
|
(c) => Math.round(c / o) * o,
|
|
3075
3367
|
[o]
|
|
3076
|
-
), m =
|
|
3368
|
+
), m = M(null), [d, g] = $(null), [f, u] = $(e), p = Ia(e), N = M(p);
|
|
3077
3369
|
L(() => {
|
|
3078
|
-
|
|
3079
|
-
}, [
|
|
3080
|
-
const y =
|
|
3370
|
+
N.current !== p && (N.current = p, !d && u(e));
|
|
3371
|
+
}, [p, e, d]);
|
|
3372
|
+
const y = ye(() => Ta(f, n, a), [f, n, a]), h = w(
|
|
3081
3373
|
(c) => {
|
|
3082
3374
|
if (!m.current) return n;
|
|
3083
|
-
const
|
|
3084
|
-
return l(
|
|
3375
|
+
const v = m.current.getBoundingClientRect(), _ = v.width || 1, S = Math.max(0, Math.min(1, (c - v.left) / _)), b = n + S * (a - n);
|
|
3376
|
+
return l(b);
|
|
3085
3377
|
},
|
|
3086
3378
|
[n, a, l]
|
|
3087
3379
|
);
|
|
@@ -3090,94 +3382,94 @@ function va({
|
|
|
3090
3382
|
`ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
|
|
3091
3383
|
);
|
|
3092
3384
|
}, [n, a]);
|
|
3093
|
-
const
|
|
3094
|
-
(c,
|
|
3095
|
-
const
|
|
3096
|
-
|
|
3385
|
+
const R = w(
|
|
3386
|
+
(c, v) => {
|
|
3387
|
+
const _ = f.find((S) => S.id === v);
|
|
3388
|
+
i || _?.disabled || (c.preventDefault(), g(v));
|
|
3097
3389
|
},
|
|
3098
|
-
[
|
|
3099
|
-
), P =
|
|
3100
|
-
P.current =
|
|
3101
|
-
const
|
|
3102
|
-
|
|
3103
|
-
if (!
|
|
3104
|
-
const c = (
|
|
3105
|
-
const S =
|
|
3106
|
-
|
|
3107
|
-
(
|
|
3390
|
+
[i, f]
|
|
3391
|
+
), P = M(f);
|
|
3392
|
+
P.current = f;
|
|
3393
|
+
const k = M(t);
|
|
3394
|
+
k.current = t, L(() => {
|
|
3395
|
+
if (!d) return;
|
|
3396
|
+
const c = (_) => {
|
|
3397
|
+
const S = h(_.clientX);
|
|
3398
|
+
u(
|
|
3399
|
+
(b) => b.map((x) => x.id === d ? { ...x, value: S } : x)
|
|
3108
3400
|
);
|
|
3109
|
-
},
|
|
3110
|
-
const S =
|
|
3111
|
-
(x) => x.id ===
|
|
3401
|
+
}, v = (_) => {
|
|
3402
|
+
const S = h(_.clientX), b = P.current.map(
|
|
3403
|
+
(x) => x.id === d ? { ...x, value: S } : x
|
|
3112
3404
|
);
|
|
3113
|
-
|
|
3405
|
+
u(b), g(null), k.current(b);
|
|
3114
3406
|
};
|
|
3115
|
-
return window.addEventListener("pointermove", c), window.addEventListener("pointerup",
|
|
3116
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup",
|
|
3407
|
+
return window.addEventListener("pointermove", c), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
3408
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
3117
3409
|
};
|
|
3118
|
-
}, [
|
|
3119
|
-
const
|
|
3120
|
-
(c,
|
|
3121
|
-
if (
|
|
3122
|
-
const
|
|
3123
|
-
if (
|
|
3124
|
-
const S = c.shiftKey ?
|
|
3125
|
-
let
|
|
3410
|
+
}, [d, h]);
|
|
3411
|
+
const T = a - n > 0 ? a - n : 1, I = w(
|
|
3412
|
+
(c, v) => {
|
|
3413
|
+
if (i || v.disabled) return;
|
|
3414
|
+
const _ = a - n;
|
|
3415
|
+
if (_ <= 0) return;
|
|
3416
|
+
const S = c.shiftKey ? _ / 20 : _ / 100;
|
|
3417
|
+
let b = v.value;
|
|
3126
3418
|
switch (c.key) {
|
|
3127
3419
|
case "ArrowRight":
|
|
3128
3420
|
case "ArrowUp":
|
|
3129
|
-
|
|
3421
|
+
b = v.value + S;
|
|
3130
3422
|
break;
|
|
3131
3423
|
case "ArrowLeft":
|
|
3132
3424
|
case "ArrowDown":
|
|
3133
|
-
|
|
3425
|
+
b = v.value - S;
|
|
3134
3426
|
break;
|
|
3135
3427
|
case "Home":
|
|
3136
|
-
|
|
3428
|
+
b = n;
|
|
3137
3429
|
break;
|
|
3138
3430
|
case "End":
|
|
3139
|
-
|
|
3431
|
+
b = a;
|
|
3140
3432
|
break;
|
|
3141
3433
|
default:
|
|
3142
3434
|
return;
|
|
3143
3435
|
}
|
|
3144
3436
|
c.preventDefault();
|
|
3145
|
-
const x = Math.max(n, Math.min(a,
|
|
3146
|
-
if (F ===
|
|
3147
|
-
const U =
|
|
3148
|
-
(q) => q.id ===
|
|
3437
|
+
const x = Math.max(n, Math.min(a, b)), F = l(x);
|
|
3438
|
+
if (F === v.value) return;
|
|
3439
|
+
const U = f.map(
|
|
3440
|
+
(q) => q.id === v.id ? { ...q, value: F } : q
|
|
3149
3441
|
);
|
|
3150
|
-
|
|
3442
|
+
u(U), t(U);
|
|
3151
3443
|
},
|
|
3152
|
-
[
|
|
3444
|
+
[i, n, a, f, t, l]
|
|
3153
3445
|
);
|
|
3154
|
-
return /* @__PURE__ */
|
|
3446
|
+
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": i || void 0, children: /* @__PURE__ */ r(
|
|
3155
3447
|
"div",
|
|
3156
3448
|
{
|
|
3157
3449
|
ref: m,
|
|
3158
3450
|
className: "gloss-threshold-ramp__track",
|
|
3159
3451
|
style: { background: y },
|
|
3160
|
-
children:
|
|
3161
|
-
const
|
|
3162
|
-
return /* @__PURE__ */
|
|
3452
|
+
children: f.map((c) => {
|
|
3453
|
+
const v = (c.value - n) / T * 100;
|
|
3454
|
+
return /* @__PURE__ */ r(
|
|
3163
3455
|
"span",
|
|
3164
3456
|
{
|
|
3165
3457
|
className: "gloss-threshold-ramp__stop",
|
|
3166
3458
|
style: {
|
|
3167
|
-
left: `${
|
|
3168
|
-
color:
|
|
3459
|
+
left: `${v}%`,
|
|
3460
|
+
color: Ee(c)
|
|
3169
3461
|
},
|
|
3170
3462
|
"data-disabled": c.disabled || void 0,
|
|
3171
|
-
"data-dragging":
|
|
3172
|
-
onPointerDown: (
|
|
3173
|
-
onKeyDown: (
|
|
3463
|
+
"data-dragging": d === c.id || void 0,
|
|
3464
|
+
onPointerDown: (_) => R(_, c.id),
|
|
3465
|
+
onKeyDown: (_) => I(_, c),
|
|
3174
3466
|
"aria-label": c.label ?? `Stop at ${c.value}`,
|
|
3175
3467
|
role: "slider",
|
|
3176
3468
|
"aria-valuenow": c.value,
|
|
3177
3469
|
"aria-valuemin": n,
|
|
3178
3470
|
"aria-valuemax": a,
|
|
3179
|
-
"aria-disabled": c.disabled ||
|
|
3180
|
-
tabIndex: c.disabled ||
|
|
3471
|
+
"aria-disabled": c.disabled || i || void 0,
|
|
3472
|
+
tabIndex: c.disabled || i ? -1 : 0
|
|
3181
3473
|
},
|
|
3182
3474
|
c.id
|
|
3183
3475
|
);
|
|
@@ -3185,24 +3477,24 @@ function va({
|
|
|
3185
3477
|
}
|
|
3186
3478
|
) });
|
|
3187
3479
|
}
|
|
3188
|
-
|
|
3189
|
-
const
|
|
3190
|
-
function
|
|
3191
|
-
return
|
|
3480
|
+
Pa.displayName = "ThresholdRamp";
|
|
3481
|
+
const at = ht(null);
|
|
3482
|
+
function Fa() {
|
|
3483
|
+
return ft(at);
|
|
3192
3484
|
}
|
|
3193
|
-
function
|
|
3194
|
-
const t =
|
|
3485
|
+
function Ea({ option: e }) {
|
|
3486
|
+
const t = Fa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, s = w(() => {
|
|
3195
3487
|
a || t?.select(e.value);
|
|
3196
|
-
}, [a, t, e.value]),
|
|
3197
|
-
(
|
|
3198
|
-
a || t?.onKeyNav(
|
|
3488
|
+
}, [a, t, e.value]), i = w(
|
|
3489
|
+
(d) => {
|
|
3490
|
+
a || t?.onKeyNav(d, e.value);
|
|
3199
3491
|
},
|
|
3200
3492
|
[a, t, e.value]
|
|
3201
3493
|
), 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__ */
|
|
3494
|
+
return /* @__PURE__ */ r(
|
|
3203
3495
|
"button",
|
|
3204
3496
|
{
|
|
3205
|
-
ref: (
|
|
3497
|
+
ref: (d) => t?.registerRef(e.value, d),
|
|
3206
3498
|
type: "button",
|
|
3207
3499
|
role: "radio",
|
|
3208
3500
|
"aria-checked": n,
|
|
@@ -3215,222 +3507,222 @@ function wa({ option: e }) {
|
|
|
3215
3507
|
"aria-disabled": a,
|
|
3216
3508
|
disabled: a,
|
|
3217
3509
|
tabIndex: m,
|
|
3218
|
-
onClick:
|
|
3219
|
-
onKeyDown:
|
|
3510
|
+
onClick: s,
|
|
3511
|
+
onKeyDown: i
|
|
3220
3512
|
}
|
|
3221
3513
|
);
|
|
3222
3514
|
}
|
|
3223
|
-
function
|
|
3515
|
+
function Aa({
|
|
3224
3516
|
swatches: e,
|
|
3225
3517
|
value: t,
|
|
3226
3518
|
defaultValue: n,
|
|
3227
3519
|
onChange: a,
|
|
3228
|
-
disabled:
|
|
3229
|
-
name:
|
|
3520
|
+
disabled: s = !1,
|
|
3521
|
+
name: i
|
|
3230
3522
|
}) {
|
|
3231
|
-
const o = t !== void 0, [l, m] = $(n),
|
|
3232
|
-
(
|
|
3233
|
-
o || m(
|
|
3523
|
+
const o = t !== void 0, [l, m] = $(n), d = o ? t : l, g = w(
|
|
3524
|
+
(k) => {
|
|
3525
|
+
o || m(k), a?.(k);
|
|
3234
3526
|
},
|
|
3235
3527
|
[o, a]
|
|
3236
|
-
),
|
|
3237
|
-
(
|
|
3238
|
-
[
|
|
3239
|
-
),
|
|
3240
|
-
|
|
3241
|
-
}, []),
|
|
3242
|
-
const
|
|
3243
|
-
|
|
3244
|
-
}, []),
|
|
3245
|
-
(
|
|
3246
|
-
if (
|
|
3528
|
+
), f = w(
|
|
3529
|
+
(k) => d === k,
|
|
3530
|
+
[d]
|
|
3531
|
+
), u = M(/* @__PURE__ */ new Map()), p = w((k, T) => {
|
|
3532
|
+
T ? u.current.set(k, T) : u.current.delete(k);
|
|
3533
|
+
}, []), N = e.filter((k) => !k.disabled && !s), y = N.find((k) => k.value === d)?.value ?? N[0]?.value, h = w((k) => {
|
|
3534
|
+
const T = u.current.get(k);
|
|
3535
|
+
T && T.focus();
|
|
3536
|
+
}, []), R = w(
|
|
3537
|
+
(k, T) => {
|
|
3538
|
+
if (s) return;
|
|
3247
3539
|
const I = e.filter((S) => !S.disabled);
|
|
3248
3540
|
if (I.length === 0) return;
|
|
3249
|
-
const c = I.findIndex((S) => S.value ===
|
|
3541
|
+
const c = I.findIndex((S) => S.value === T);
|
|
3250
3542
|
if (c === -1) return;
|
|
3251
|
-
let
|
|
3252
|
-
switch (
|
|
3543
|
+
let v = c;
|
|
3544
|
+
switch (k.key) {
|
|
3253
3545
|
case "ArrowRight":
|
|
3254
3546
|
case "ArrowDown":
|
|
3255
|
-
|
|
3547
|
+
v = (c + 1) % I.length;
|
|
3256
3548
|
break;
|
|
3257
3549
|
case "ArrowLeft":
|
|
3258
3550
|
case "ArrowUp":
|
|
3259
|
-
|
|
3551
|
+
v = (c - 1 + I.length) % I.length;
|
|
3260
3552
|
break;
|
|
3261
3553
|
case "Home":
|
|
3262
|
-
|
|
3554
|
+
v = 0;
|
|
3263
3555
|
break;
|
|
3264
3556
|
case "End":
|
|
3265
|
-
|
|
3557
|
+
v = I.length - 1;
|
|
3266
3558
|
break;
|
|
3267
3559
|
case " ":
|
|
3268
3560
|
case "Enter":
|
|
3269
|
-
|
|
3561
|
+
k.preventDefault(), g(T);
|
|
3270
3562
|
return;
|
|
3271
3563
|
default:
|
|
3272
3564
|
return;
|
|
3273
3565
|
}
|
|
3274
|
-
|
|
3275
|
-
const
|
|
3276
|
-
|
|
3566
|
+
k.preventDefault();
|
|
3567
|
+
const _ = I[v].value;
|
|
3568
|
+
h(_), g(_);
|
|
3277
3569
|
},
|
|
3278
|
-
[
|
|
3570
|
+
[s, e, g, h]
|
|
3279
3571
|
), P = {
|
|
3280
|
-
selectedValue:
|
|
3281
|
-
select:
|
|
3282
|
-
isSelected:
|
|
3283
|
-
groupDisabled:
|
|
3284
|
-
name:
|
|
3285
|
-
registerRef:
|
|
3572
|
+
selectedValue: d,
|
|
3573
|
+
select: g,
|
|
3574
|
+
isSelected: f,
|
|
3575
|
+
groupDisabled: s,
|
|
3576
|
+
name: i,
|
|
3577
|
+
registerRef: p,
|
|
3286
3578
|
firstFocusableValue: y,
|
|
3287
|
-
onKeyNav:
|
|
3579
|
+
onKeyNav: R
|
|
3288
3580
|
};
|
|
3289
|
-
return /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ r(at.Provider, { value: P, children: /* @__PURE__ */ r(
|
|
3290
3582
|
"div",
|
|
3291
3583
|
{
|
|
3292
3584
|
className: "gloss-preset-swatch-row",
|
|
3293
3585
|
role: "radiogroup",
|
|
3294
|
-
"aria-label":
|
|
3295
|
-
"aria-disabled":
|
|
3296
|
-
"data-disabled":
|
|
3297
|
-
children: e.map((
|
|
3586
|
+
"aria-label": i,
|
|
3587
|
+
"aria-disabled": s,
|
|
3588
|
+
"data-disabled": s || void 0,
|
|
3589
|
+
children: e.map((k) => /* @__PURE__ */ r(Ea, { option: k }, k.value))
|
|
3298
3590
|
}
|
|
3299
3591
|
) });
|
|
3300
3592
|
}
|
|
3301
|
-
|
|
3302
|
-
function
|
|
3593
|
+
Aa.displayName = "PresetSwatchRow";
|
|
3594
|
+
function Ae(e, t) {
|
|
3303
3595
|
for (const n of e)
|
|
3304
3596
|
if (n.items.some((a) => a.id === t))
|
|
3305
3597
|
return n.zoneKey;
|
|
3306
3598
|
return null;
|
|
3307
3599
|
}
|
|
3308
|
-
function
|
|
3600
|
+
function je(e, t) {
|
|
3309
3601
|
const n = e.find((a) => a.zoneKey === t);
|
|
3310
|
-
return n ? n.zoneKey :
|
|
3602
|
+
return n ? n.zoneKey : Ae(e, t);
|
|
3311
3603
|
}
|
|
3312
|
-
function
|
|
3313
|
-
const a = [...e], [
|
|
3314
|
-
return a.splice(n, 0,
|
|
3604
|
+
function Oa(e, t, n) {
|
|
3605
|
+
const a = [...e], [s] = a.splice(t, 1);
|
|
3606
|
+
return a.splice(n, 0, s), a;
|
|
3315
3607
|
}
|
|
3316
|
-
function
|
|
3608
|
+
function La(e) {
|
|
3317
3609
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
3318
3610
|
}
|
|
3319
|
-
function
|
|
3611
|
+
function $a(e) {
|
|
3320
3612
|
const [t, n] = $(
|
|
3321
|
-
() => e.zones.map((
|
|
3322
|
-
`useSortableZones: zone "${
|
|
3323
|
-
), { ...
|
|
3324
|
-
), [a,
|
|
3613
|
+
() => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3614
|
+
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
3615
|
+
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
3616
|
+
), [a, s] = $(null), [i, o] = $(null), l = M(null), m = M(e.onZoneChange);
|
|
3325
3617
|
m.current = e.onZoneChange;
|
|
3326
|
-
const
|
|
3327
|
-
() =>
|
|
3618
|
+
const d = ye(
|
|
3619
|
+
() => La(e.zones),
|
|
3328
3620
|
[e.zones]
|
|
3329
|
-
),
|
|
3621
|
+
), g = M(d);
|
|
3330
3622
|
L(() => {
|
|
3331
|
-
|
|
3332
|
-
e.zones.map((
|
|
3333
|
-
`useSortableZones: zone "${
|
|
3334
|
-
), { ...
|
|
3623
|
+
g.current !== d && (g.current = d, !a && n(
|
|
3624
|
+
e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3625
|
+
`useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
|
|
3626
|
+
), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
|
|
3335
3627
|
));
|
|
3336
|
-
}, [
|
|
3337
|
-
const
|
|
3338
|
-
(
|
|
3339
|
-
const
|
|
3340
|
-
let P = null,
|
|
3341
|
-
for (const
|
|
3342
|
-
const I =
|
|
3628
|
+
}, [d, e.zones, a]);
|
|
3629
|
+
const f = w(
|
|
3630
|
+
(h) => {
|
|
3631
|
+
const R = h.active.id;
|
|
3632
|
+
let P = null, k = null;
|
|
3633
|
+
for (const T of t) {
|
|
3634
|
+
const I = T.items.find((c) => c.id === R);
|
|
3343
3635
|
if (I) {
|
|
3344
|
-
P = I,
|
|
3636
|
+
P = I, k = T.zoneKey;
|
|
3345
3637
|
break;
|
|
3346
3638
|
}
|
|
3347
3639
|
}
|
|
3348
|
-
l.current =
|
|
3640
|
+
l.current = k, s(P), o(k);
|
|
3349
3641
|
},
|
|
3350
3642
|
[t]
|
|
3351
|
-
),
|
|
3352
|
-
(
|
|
3353
|
-
if (!
|
|
3643
|
+
), u = w(
|
|
3644
|
+
(h) => {
|
|
3645
|
+
if (!h.over) {
|
|
3354
3646
|
o(l.current);
|
|
3355
3647
|
return;
|
|
3356
3648
|
}
|
|
3357
|
-
const
|
|
3358
|
-
o(
|
|
3649
|
+
const R = je(t, h.over.id);
|
|
3650
|
+
o(R);
|
|
3359
3651
|
},
|
|
3360
3652
|
[t]
|
|
3361
|
-
),
|
|
3362
|
-
(
|
|
3363
|
-
const { active:
|
|
3364
|
-
l.current = null,
|
|
3653
|
+
), p = w(
|
|
3654
|
+
(h) => {
|
|
3655
|
+
const { active: R, over: P } = h, k = () => {
|
|
3656
|
+
l.current = null, s(null), o(null);
|
|
3365
3657
|
};
|
|
3366
3658
|
if (!P) {
|
|
3367
|
-
|
|
3659
|
+
k();
|
|
3368
3660
|
return;
|
|
3369
3661
|
}
|
|
3370
|
-
const
|
|
3371
|
-
if (!
|
|
3372
|
-
|
|
3662
|
+
const T = Ae(t, R.id), I = je(t, P.id);
|
|
3663
|
+
if (!T || !I) {
|
|
3664
|
+
k();
|
|
3373
3665
|
return;
|
|
3374
3666
|
}
|
|
3375
|
-
let c = t.map((
|
|
3376
|
-
if (
|
|
3377
|
-
const
|
|
3378
|
-
c[
|
|
3379
|
-
...
|
|
3380
|
-
items:
|
|
3667
|
+
let c = t.map((v) => ({ ...v, items: [...v.items] }));
|
|
3668
|
+
if (T === I) {
|
|
3669
|
+
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);
|
|
3670
|
+
c[v] = {
|
|
3671
|
+
..._,
|
|
3672
|
+
items: Oa(_.items, S, x)
|
|
3381
3673
|
};
|
|
3382
3674
|
} else {
|
|
3383
|
-
const
|
|
3675
|
+
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
3676
|
if (!x) {
|
|
3385
|
-
|
|
3677
|
+
k();
|
|
3386
3678
|
return;
|
|
3387
3679
|
}
|
|
3388
|
-
const F = S.items.filter((O) => O.id !==
|
|
3389
|
-
let j = F,
|
|
3390
|
-
if (
|
|
3391
|
-
const O =
|
|
3392
|
-
|
|
3680
|
+
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;
|
|
3681
|
+
let j = F, G = [...b.items];
|
|
3682
|
+
if (b.maxItems !== void 0 && G.length >= b.maxItems) {
|
|
3683
|
+
const O = G[G.length - 1];
|
|
3684
|
+
G = G.slice(0, b.maxItems - 1), j = [...F, O];
|
|
3393
3685
|
}
|
|
3394
|
-
const B = Math.min(q,
|
|
3395
|
-
...
|
|
3686
|
+
const B = Math.min(q, G.length), Z = [
|
|
3687
|
+
...G.slice(0, B),
|
|
3396
3688
|
x,
|
|
3397
|
-
...
|
|
3689
|
+
...G.slice(B)
|
|
3398
3690
|
];
|
|
3399
|
-
c[
|
|
3691
|
+
c[v] = { ...S, items: j }, c[_] = { ...b, items: Z };
|
|
3400
3692
|
}
|
|
3401
|
-
n(c), m.current?.(c),
|
|
3693
|
+
n(c), m.current?.(c), k();
|
|
3402
3694
|
},
|
|
3403
3695
|
[t]
|
|
3404
|
-
),
|
|
3405
|
-
(
|
|
3406
|
-
id:
|
|
3407
|
-
"data-zone-key":
|
|
3696
|
+
), N = w(
|
|
3697
|
+
(h) => ({
|
|
3698
|
+
id: h,
|
|
3699
|
+
"data-zone-key": h
|
|
3408
3700
|
}),
|
|
3409
3701
|
[]
|
|
3410
3702
|
), y = w(
|
|
3411
|
-
(
|
|
3412
|
-
const
|
|
3703
|
+
(h) => {
|
|
3704
|
+
const R = Ae(t, h.id) ?? "";
|
|
3413
3705
|
return {
|
|
3414
|
-
id:
|
|
3415
|
-
"data-item-id":
|
|
3416
|
-
"data-zone-key":
|
|
3706
|
+
id: h.id,
|
|
3707
|
+
"data-item-id": h.id,
|
|
3708
|
+
"data-zone-key": R
|
|
3417
3709
|
};
|
|
3418
3710
|
},
|
|
3419
3711
|
[t]
|
|
3420
3712
|
);
|
|
3421
3713
|
return {
|
|
3422
3714
|
zones: t,
|
|
3423
|
-
activeZone:
|
|
3715
|
+
activeZone: i,
|
|
3424
3716
|
activeItem: a,
|
|
3425
|
-
getZoneProps:
|
|
3717
|
+
getZoneProps: N,
|
|
3426
3718
|
getItemProps: y,
|
|
3427
|
-
handleDragStart:
|
|
3428
|
-
handleDragOver:
|
|
3429
|
-
handleDragEnd:
|
|
3719
|
+
handleDragStart: f,
|
|
3720
|
+
handleDragOver: u,
|
|
3721
|
+
handleDragEnd: p
|
|
3430
3722
|
};
|
|
3431
3723
|
}
|
|
3432
|
-
let
|
|
3433
|
-
const
|
|
3724
|
+
let ge = null, Ne = null, Me = !1;
|
|
3725
|
+
const Ba = [
|
|
3434
3726
|
"DndContext",
|
|
3435
3727
|
"DragOverlay",
|
|
3436
3728
|
"useSensors",
|
|
@@ -3439,22 +3731,22 @@ const ka = [
|
|
|
3439
3731
|
"PointerSensor",
|
|
3440
3732
|
"KeyboardSensor",
|
|
3441
3733
|
"closestCenter"
|
|
3442
|
-
],
|
|
3734
|
+
], za = [
|
|
3443
3735
|
"SortableContext",
|
|
3444
3736
|
"useSortable",
|
|
3445
3737
|
"verticalListSortingStrategy"
|
|
3446
3738
|
];
|
|
3447
|
-
function
|
|
3739
|
+
function Ka(e, t) {
|
|
3448
3740
|
const n = [], a = e ?? {};
|
|
3449
|
-
for (const
|
|
3450
|
-
a[
|
|
3451
|
-
const
|
|
3452
|
-
for (const
|
|
3453
|
-
|
|
3741
|
+
for (const i of Ba)
|
|
3742
|
+
a[i] === void 0 && n.push(`@dnd-kit/core:${i}`);
|
|
3743
|
+
const s = t ?? {};
|
|
3744
|
+
for (const i of za)
|
|
3745
|
+
s[i] === void 0 && n.push(`@dnd-kit/sortable:${i}`);
|
|
3454
3746
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
3455
3747
|
}
|
|
3456
|
-
function
|
|
3457
|
-
return
|
|
3748
|
+
function Wa() {
|
|
3749
|
+
return ge ? Promise.resolve(ge) : Me ? Promise.resolve(null) : Ne || (Ne = (async () => {
|
|
3458
3750
|
try {
|
|
3459
3751
|
const [e, t, n] = await Promise.all([
|
|
3460
3752
|
import("@dnd-kit/core"),
|
|
@@ -3462,57 +3754,57 @@ function Ma() {
|
|
|
3462
3754
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
3463
3755
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
3464
3756
|
), {}))
|
|
3465
|
-
]), a =
|
|
3466
|
-
return a.ok ? (
|
|
3757
|
+
]), a = Ka(e, t);
|
|
3758
|
+
return a.ok ? (ge = {
|
|
3467
3759
|
core: e,
|
|
3468
3760
|
sortable: t,
|
|
3469
3761
|
utilities: n
|
|
3470
|
-
},
|
|
3762
|
+
}, ge) : (Me = !0, process.env.NODE_ENV !== "production" && console.error(
|
|
3471
3763
|
`SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
|
|
3472
3764
|
), null);
|
|
3473
3765
|
} catch {
|
|
3474
|
-
return
|
|
3766
|
+
return Me = !0, null;
|
|
3475
3767
|
}
|
|
3476
|
-
})(),
|
|
3768
|
+
})(), Ne);
|
|
3477
3769
|
}
|
|
3478
|
-
function
|
|
3479
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem:
|
|
3480
|
-
return
|
|
3770
|
+
function Ga(e) {
|
|
3771
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: s, renderDragOverlay: i } = e, o = $a({ zones: t, onZoneChange: n }), [l, m] = H.useState(ge);
|
|
3772
|
+
return H.useEffect(() => {
|
|
3481
3773
|
if (l) return;
|
|
3482
|
-
let
|
|
3483
|
-
return
|
|
3484
|
-
|
|
3774
|
+
let d = !0;
|
|
3775
|
+
return Wa().then((g) => {
|
|
3776
|
+
d && m(g);
|
|
3485
3777
|
}), () => {
|
|
3486
|
-
|
|
3778
|
+
d = !1;
|
|
3487
3779
|
};
|
|
3488
|
-
}, [l]), l ? /* @__PURE__ */
|
|
3489
|
-
|
|
3780
|
+
}, [l]), l ? /* @__PURE__ */ r(
|
|
3781
|
+
nt,
|
|
3490
3782
|
{
|
|
3491
3783
|
state: o,
|
|
3492
3784
|
modules: l,
|
|
3493
3785
|
renderZone: a,
|
|
3494
|
-
renderItem:
|
|
3495
|
-
renderDragOverlay:
|
|
3786
|
+
renderItem: s,
|
|
3787
|
+
renderDragOverlay: i
|
|
3496
3788
|
}
|
|
3497
|
-
) : /* @__PURE__ */
|
|
3498
|
-
const
|
|
3499
|
-
return /* @__PURE__ */
|
|
3789
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
|
|
3790
|
+
const g = d.items.map((f) => /* @__PURE__ */ r(H.Fragment, { children: s(f) }, f.id));
|
|
3791
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, g) }, d.zoneKey);
|
|
3500
3792
|
}) });
|
|
3501
3793
|
}
|
|
3502
|
-
|
|
3503
|
-
function
|
|
3794
|
+
Ga.displayName = "SortableZones";
|
|
3795
|
+
function nt({
|
|
3504
3796
|
state: e,
|
|
3505
3797
|
modules: t,
|
|
3506
3798
|
renderZone: n,
|
|
3507
3799
|
renderItem: a,
|
|
3508
|
-
renderDragOverlay:
|
|
3800
|
+
renderDragOverlay: s
|
|
3509
3801
|
}) {
|
|
3510
|
-
const { core:
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
),
|
|
3514
|
-
return /* @__PURE__ */
|
|
3515
|
-
|
|
3802
|
+
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(
|
|
3803
|
+
f(p, { activationConstraint: { distance: 5 } }),
|
|
3804
|
+
f(N)
|
|
3805
|
+
), k = m, T = d, I = h;
|
|
3806
|
+
return /* @__PURE__ */ D(
|
|
3807
|
+
k,
|
|
3516
3808
|
{
|
|
3517
3809
|
sensors: P,
|
|
3518
3810
|
collisionDetection: y,
|
|
@@ -3521,8 +3813,8 @@ function Ye({
|
|
|
3521
3813
|
onDragEnd: e.handleDragEnd,
|
|
3522
3814
|
children: [
|
|
3523
3815
|
e.zones.map((c) => {
|
|
3524
|
-
const
|
|
3525
|
-
|
|
3816
|
+
const v = c.items.map((S) => S.id), _ = c.items.map((S) => /* @__PURE__ */ r(
|
|
3817
|
+
rt,
|
|
3526
3818
|
{
|
|
3527
3819
|
id: S.id,
|
|
3528
3820
|
useSortable: o.useSortable,
|
|
@@ -3531,65 +3823,65 @@ function Ye({
|
|
|
3531
3823
|
},
|
|
3532
3824
|
S.id
|
|
3533
3825
|
));
|
|
3534
|
-
return /* @__PURE__ */
|
|
3535
|
-
|
|
3826
|
+
return /* @__PURE__ */ r(
|
|
3827
|
+
st,
|
|
3536
3828
|
{
|
|
3537
3829
|
zoneKey: c.zoneKey,
|
|
3538
3830
|
zoneProps: e.getZoneProps(c.zoneKey),
|
|
3539
|
-
useDroppable:
|
|
3540
|
-
children: /* @__PURE__ */
|
|
3831
|
+
useDroppable: u,
|
|
3832
|
+
children: /* @__PURE__ */ r(I, { items: v, strategy: R, children: n(c.zoneKey, c.items, _) })
|
|
3541
3833
|
},
|
|
3542
3834
|
c.zoneKey
|
|
3543
3835
|
);
|
|
3544
3836
|
}),
|
|
3545
|
-
/* @__PURE__ */
|
|
3837
|
+
/* @__PURE__ */ r(T, { children: e.activeItem ? s?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
3546
3838
|
]
|
|
3547
3839
|
}
|
|
3548
3840
|
);
|
|
3549
3841
|
}
|
|
3550
|
-
|
|
3551
|
-
function
|
|
3552
|
-
const { attributes:
|
|
3842
|
+
nt.displayName = "SortableZonesInner";
|
|
3843
|
+
function rt({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
3844
|
+
const { attributes: s, listeners: i, setNodeRef: o, transform: l, transition: m, isDragging: d } = t({ id: e }), g = {
|
|
3553
3845
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
3554
3846
|
transition: m,
|
|
3555
|
-
opacity:
|
|
3847
|
+
opacity: d ? 0.5 : 1
|
|
3556
3848
|
};
|
|
3557
|
-
return /* @__PURE__ */
|
|
3849
|
+
return /* @__PURE__ */ r("div", { ref: o, style: g, "data-sortable-item-id": e, ...s, ...i, children: a });
|
|
3558
3850
|
}
|
|
3559
|
-
|
|
3560
|
-
function
|
|
3851
|
+
rt.displayName = "SortableItem";
|
|
3852
|
+
function st({
|
|
3561
3853
|
zoneKey: e,
|
|
3562
3854
|
zoneProps: t,
|
|
3563
3855
|
useDroppable: n,
|
|
3564
3856
|
children: a
|
|
3565
3857
|
}) {
|
|
3566
|
-
const { setNodeRef:
|
|
3567
|
-
return /* @__PURE__ */
|
|
3858
|
+
const { setNodeRef: s, isOver: i } = n({ id: e });
|
|
3859
|
+
return /* @__PURE__ */ r("div", { ref: s, "data-zone-is-over": i || void 0, ...t, children: a });
|
|
3568
3860
|
}
|
|
3569
|
-
|
|
3570
|
-
function
|
|
3861
|
+
st.displayName = "ZoneDroppable";
|
|
3862
|
+
function gr({
|
|
3571
3863
|
slotLeft: e,
|
|
3572
3864
|
slotCenter: t,
|
|
3573
3865
|
slotRight: n,
|
|
3574
3866
|
height: a = 36,
|
|
3575
|
-
className:
|
|
3576
|
-
style:
|
|
3867
|
+
className: s,
|
|
3868
|
+
style: i,
|
|
3577
3869
|
"aria-label": o = "Dashboard navigation"
|
|
3578
3870
|
}) {
|
|
3579
3871
|
const l = {
|
|
3580
3872
|
"--gloss-bottom-toolbar-height": `${a}px`,
|
|
3581
|
-
...
|
|
3873
|
+
...i
|
|
3582
3874
|
};
|
|
3583
|
-
return /* @__PURE__ */
|
|
3875
|
+
return /* @__PURE__ */ D(
|
|
3584
3876
|
"div",
|
|
3585
3877
|
{
|
|
3586
3878
|
role: "toolbar",
|
|
3587
3879
|
"aria-label": o,
|
|
3588
3880
|
"data-testid": "gloss-bottom-toolbar",
|
|
3589
|
-
className: ["gloss-bottom-toolbar",
|
|
3881
|
+
className: ["gloss-bottom-toolbar", s].filter(Boolean).join(" "),
|
|
3590
3882
|
style: l,
|
|
3591
3883
|
children: [
|
|
3592
|
-
/* @__PURE__ */
|
|
3884
|
+
/* @__PURE__ */ r(
|
|
3593
3885
|
"div",
|
|
3594
3886
|
{
|
|
3595
3887
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--left",
|
|
@@ -3597,7 +3889,7 @@ function Jn({
|
|
|
3597
3889
|
children: e
|
|
3598
3890
|
}
|
|
3599
3891
|
),
|
|
3600
|
-
/* @__PURE__ */
|
|
3892
|
+
/* @__PURE__ */ r(
|
|
3601
3893
|
"div",
|
|
3602
3894
|
{
|
|
3603
3895
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--center",
|
|
@@ -3605,7 +3897,7 @@ function Jn({
|
|
|
3605
3897
|
children: t
|
|
3606
3898
|
}
|
|
3607
3899
|
),
|
|
3608
|
-
/* @__PURE__ */
|
|
3900
|
+
/* @__PURE__ */ r(
|
|
3609
3901
|
"div",
|
|
3610
3902
|
{
|
|
3611
3903
|
className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--right",
|
|
@@ -3617,386 +3909,395 @@ function Jn({
|
|
|
3617
3909
|
}
|
|
3618
3910
|
);
|
|
3619
3911
|
}
|
|
3620
|
-
function
|
|
3912
|
+
function pr({
|
|
3621
3913
|
count: e,
|
|
3622
3914
|
currentIndex: t,
|
|
3623
3915
|
onSelect: n,
|
|
3624
3916
|
"aria-label": a = "Sections",
|
|
3625
|
-
provisionalIndex:
|
|
3626
|
-
pulseIndex:
|
|
3917
|
+
provisionalIndex: s,
|
|
3918
|
+
pulseIndex: i,
|
|
3627
3919
|
pulseNonce: o
|
|
3628
3920
|
}) {
|
|
3629
|
-
const l =
|
|
3630
|
-
return l.current.length = e, /* @__PURE__ */
|
|
3921
|
+
const l = gt.useRef([]);
|
|
3922
|
+
return l.current.length = e, /* @__PURE__ */ r(
|
|
3631
3923
|
"div",
|
|
3632
3924
|
{
|
|
3633
3925
|
role: "tablist",
|
|
3634
3926
|
"aria-label": a,
|
|
3635
3927
|
"data-testid": "gloss-section-dots",
|
|
3636
3928
|
className: "gloss-section-dots",
|
|
3637
|
-
onKeyDown: (
|
|
3929
|
+
onKeyDown: (d) => {
|
|
3638
3930
|
if (e !== 0) {
|
|
3639
|
-
if (
|
|
3640
|
-
|
|
3641
|
-
const
|
|
3642
|
-
n(
|
|
3643
|
-
} else if (
|
|
3644
|
-
|
|
3645
|
-
const
|
|
3646
|
-
n(
|
|
3931
|
+
if (d.key === "ArrowRight") {
|
|
3932
|
+
d.preventDefault();
|
|
3933
|
+
const g = (t + 1) % e;
|
|
3934
|
+
n(g), requestAnimationFrame(() => l.current[g]?.focus());
|
|
3935
|
+
} else if (d.key === "ArrowLeft") {
|
|
3936
|
+
d.preventDefault();
|
|
3937
|
+
const g = (t - 1 + e) % e;
|
|
3938
|
+
n(g), requestAnimationFrame(() => l.current[g]?.focus());
|
|
3647
3939
|
}
|
|
3648
3940
|
}
|
|
3649
3941
|
},
|
|
3650
|
-
children: Array.from({ length: e }, (
|
|
3942
|
+
children: Array.from({ length: e }, (d, g) => /* @__PURE__ */ r(
|
|
3651
3943
|
"button",
|
|
3652
3944
|
{
|
|
3653
|
-
ref: (
|
|
3654
|
-
l.current[
|
|
3945
|
+
ref: (f) => {
|
|
3946
|
+
l.current[g] = f;
|
|
3655
3947
|
},
|
|
3656
3948
|
type: "button",
|
|
3657
3949
|
role: "tab",
|
|
3658
|
-
"aria-selected":
|
|
3659
|
-
"aria-label":
|
|
3660
|
-
"data-state":
|
|
3661
|
-
"data-section-index":
|
|
3950
|
+
"aria-selected": g === t,
|
|
3951
|
+
"aria-label": g === s ? "Unconfirmed section" : `Section ${g + 1}`,
|
|
3952
|
+
"data-state": g === s ? "provisional-hollow" : g === i ? "pulse" : g === t ? "current" : "hollow",
|
|
3953
|
+
"data-section-index": g,
|
|
3662
3954
|
className: [
|
|
3663
3955
|
"gloss-section-dots__dot",
|
|
3664
|
-
|
|
3956
|
+
g === t && "gloss-section-dots__dot--current"
|
|
3665
3957
|
].filter(Boolean).join(" "),
|
|
3666
|
-
onClick: () => n(
|
|
3958
|
+
onClick: () => n(g)
|
|
3667
3959
|
},
|
|
3668
|
-
|
|
3960
|
+
g === i ? `${g}-${o ?? 0}` : g
|
|
3669
3961
|
))
|
|
3670
3962
|
}
|
|
3671
3963
|
);
|
|
3672
3964
|
}
|
|
3673
|
-
const
|
|
3674
|
-
const
|
|
3675
|
-
return delete
|
|
3965
|
+
const Va = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3966
|
+
const s = { ...n };
|
|
3967
|
+
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
3968
|
});
|
|
3677
|
-
|
|
3678
|
-
const
|
|
3679
|
-
const o = { ...
|
|
3680
|
-
return delete o.className, delete o.style, /* @__PURE__ */
|
|
3681
|
-
e && /* @__PURE__ */
|
|
3682
|
-
t && /* @__PURE__ */
|
|
3683
|
-
/* @__PURE__ */
|
|
3969
|
+
Va.displayName = "ContainerToolbar";
|
|
3970
|
+
const Ha = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...s }, i) => {
|
|
3971
|
+
const o = { ...s };
|
|
3972
|
+
return delete o.className, delete o.style, /* @__PURE__ */ D("fieldset", { ref: i, className: "gloss-container-form-section", ...o, children: [
|
|
3973
|
+
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
3974
|
+
t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
|
|
3975
|
+
/* @__PURE__ */ r(Oe, { region: "form-section", density: n, children: a })
|
|
3684
3976
|
] });
|
|
3685
3977
|
});
|
|
3686
|
-
|
|
3687
|
-
const
|
|
3688
|
-
const
|
|
3689
|
-
return delete
|
|
3978
|
+
Ha.displayName = "ContainerFormSection";
|
|
3979
|
+
const Ua = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
3980
|
+
const s = { ...n };
|
|
3981
|
+
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
3982
|
});
|
|
3691
|
-
|
|
3983
|
+
Ua.displayName = "ContainerTable";
|
|
3692
3984
|
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
|
-
|
|
3985
|
+
vr as Accordion,
|
|
3986
|
+
br as AccordionContent,
|
|
3987
|
+
yr as AccordionItem,
|
|
3988
|
+
wr as AccordionTrigger,
|
|
3989
|
+
_r as ActionStrip,
|
|
3990
|
+
Nr as Actionable,
|
|
3991
|
+
Dr as AddressGroup,
|
|
3992
|
+
Cr as AddressSelect,
|
|
3993
|
+
kr as AsyncLoader,
|
|
3994
|
+
xr as Autocomplete,
|
|
3995
|
+
Sr as Badge,
|
|
3996
|
+
Rr as BarChartCard,
|
|
3997
|
+
Mr as BarsBg,
|
|
3998
|
+
gr as BottomToolbar,
|
|
3999
|
+
Tr as Button,
|
|
4000
|
+
Ir as ButtonGroup,
|
|
4001
|
+
Pr as ButtonGroupContext,
|
|
4002
|
+
Fr as Card,
|
|
4003
|
+
Er as CardActions,
|
|
4004
|
+
Ar as CardBack,
|
|
4005
|
+
Or as CardBody,
|
|
4006
|
+
Lr as CardFooter,
|
|
4007
|
+
$r as CardHeader,
|
|
4008
|
+
Br as CardMedia,
|
|
4009
|
+
ut as CardShell,
|
|
4010
|
+
zr as CardSubtitle,
|
|
4011
|
+
Kr as CardTitle,
|
|
4012
|
+
dr as CascadePreview,
|
|
4013
|
+
Wr as ChartControlBar,
|
|
4014
|
+
Gr as Checkbox,
|
|
4015
|
+
Vr as CheckboxGroup,
|
|
4016
|
+
mt as Chip,
|
|
4017
|
+
Hr as ColorPicker,
|
|
4018
|
+
Ur as ComparisonCard,
|
|
4019
|
+
jr as ContactForm,
|
|
4020
|
+
Zr as ContainerCard,
|
|
4021
|
+
qr as ContainerCardActions,
|
|
4022
|
+
Yr as ContainerCardBody,
|
|
4023
|
+
Qr as ContainerCardFooter,
|
|
4024
|
+
Xr as ContainerCardHeader,
|
|
4025
|
+
Jr as ContainerCardMedia,
|
|
4026
|
+
es as ContainerCardSubtitle,
|
|
4027
|
+
ts as ContainerCardTitle,
|
|
4028
|
+
as as ContainerDialog,
|
|
4029
|
+
ns as ContainerDialogActions,
|
|
4030
|
+
rs as ContainerDialogBody,
|
|
4031
|
+
ss as ContainerDialogHeader,
|
|
4032
|
+
Ha as ContainerFormSection,
|
|
4033
|
+
is as ContainerPanel,
|
|
4034
|
+
Ua as ContainerTable,
|
|
4035
|
+
Va as ContainerToolbar,
|
|
4036
|
+
os as CreditCardForm,
|
|
4037
|
+
ls as DEFAULT_FOOTER_IDS,
|
|
4038
|
+
se as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4039
|
+
Lo as DEFAULT_MARKET_PRESETS,
|
|
4040
|
+
cs as DEFAULT_OVERFLOW_IDS,
|
|
4041
|
+
$o as DEFAULT_PINNED,
|
|
4042
|
+
qe as DEFAULT_RESIZE_PHYSICS,
|
|
4043
|
+
ds as DataTable,
|
|
4044
|
+
us as DatePicker,
|
|
4045
|
+
ms as DateRangePicker,
|
|
4046
|
+
gs as DestructiveModal,
|
|
4047
|
+
ua as DevTuningPanel,
|
|
4048
|
+
ps as DirectionCard,
|
|
4049
|
+
hs as Dismissible,
|
|
4050
|
+
fs as DistributionCard,
|
|
4051
|
+
vs as DonutChart,
|
|
4052
|
+
lr as DragGhost,
|
|
4053
|
+
rr as DropAnchorCell,
|
|
4054
|
+
bs as Dropdown,
|
|
4055
|
+
ha as DualPaceBars,
|
|
4056
|
+
ys as ENTITY_FILTER_KEYS,
|
|
4057
|
+
ws as ENTITY_PROFILE_ROUTES,
|
|
4058
|
+
_s as ENTITY_TYPE_PLURAL,
|
|
4059
|
+
At as EdgeHoverHandle,
|
|
4060
|
+
or as EmptyCellPackAffordance,
|
|
4061
|
+
Ns as EntityPicker,
|
|
4062
|
+
X as EntityRow,
|
|
4063
|
+
Ds as EntitySearchPanel,
|
|
4064
|
+
Sa as ExceptionListCard,
|
|
4065
|
+
Ra as ExceptionListTilePreview,
|
|
4066
|
+
Cs as Expandable,
|
|
4067
|
+
ks as ExpandableChip,
|
|
4068
|
+
xs as FLIP_AND_STAGE_TIMINGS,
|
|
4069
|
+
Ss as FileUpload,
|
|
4070
|
+
Rs as FilterChip,
|
|
4071
|
+
Ms as FilterInput,
|
|
4072
|
+
Ts as FlipAndStageProvider,
|
|
4073
|
+
Is as Form,
|
|
4074
|
+
Ps as FormDialog,
|
|
4075
|
+
Fs as FormField,
|
|
4076
|
+
Es as FusedShape,
|
|
4077
|
+
fa as GapReadout,
|
|
4078
|
+
Ot as GhostPreview,
|
|
4079
|
+
As as GroupCheckbox,
|
|
4080
|
+
Os as GroupRadio,
|
|
4081
|
+
Nn as HARD_CLIP,
|
|
4082
|
+
Ls as HighlightCard,
|
|
4083
|
+
$s as HybridDatePicker,
|
|
4084
|
+
Bs as ImportWizard,
|
|
4085
|
+
Ma as InlineNudge,
|
|
4086
|
+
zs as Input,
|
|
4087
|
+
Ks as InputAddon,
|
|
4088
|
+
Ws as InputGroup,
|
|
4089
|
+
Da as LeaderboardCard,
|
|
4090
|
+
Ca as LeaderboardTilePreview,
|
|
4091
|
+
ya as LensChipGroup,
|
|
4092
|
+
Gs as Link,
|
|
4093
|
+
Vs as LoginForm,
|
|
4094
|
+
be as MagnitudeBar,
|
|
4095
|
+
Hs as MarketPresetRow,
|
|
4096
|
+
Us as MaskPresets,
|
|
4097
|
+
js as MaskedInput,
|
|
4098
|
+
Zs as Menu,
|
|
4099
|
+
qs as MenuDivider,
|
|
4100
|
+
Ys as MenuGroup,
|
|
4101
|
+
Qs as MenuItem,
|
|
4102
|
+
Xs as MergePrompt,
|
|
4103
|
+
Js as MetricCard,
|
|
4104
|
+
ei as MetricCardGrid,
|
|
4105
|
+
aa as MetricGroupContainer,
|
|
4106
|
+
ti as MiniCalendar,
|
|
4107
|
+
_a as MoreInLensRail,
|
|
4108
|
+
ai as MultiSelect,
|
|
4109
|
+
ni as NumberInput,
|
|
4110
|
+
ri as ObjectArrow,
|
|
4111
|
+
si as OrderFilterBar,
|
|
4112
|
+
Bo as PERIOD_OPTIONS,
|
|
4113
|
+
ur as PaceCard,
|
|
4114
|
+
mr as PaceTilePreview,
|
|
4115
|
+
Vt as PageChip,
|
|
4116
|
+
Ye as PageDropdown,
|
|
4117
|
+
ii as PasswordInput,
|
|
4118
|
+
oi as PaymentForm,
|
|
4119
|
+
li as PaymentMethodSelect,
|
|
4120
|
+
ci as PhoneInput,
|
|
4121
|
+
di as PinToMetric,
|
|
4122
|
+
Aa as PresetSwatchRow,
|
|
4123
|
+
ui as ProfileCard,
|
|
4124
|
+
mi as ProgressCard,
|
|
4125
|
+
gi as QuickConfigPanel,
|
|
4126
|
+
Qt as RECONFIG_BACKSIDE_LABELS,
|
|
4127
|
+
zo as ROLLING_OPTIONS,
|
|
4128
|
+
pi as Radio,
|
|
4129
|
+
hi as RadioGroup,
|
|
4130
|
+
fi as RangeSlider,
|
|
4131
|
+
fe as RankBadge,
|
|
4132
|
+
tt as RankDelta,
|
|
4133
|
+
vi as Rating,
|
|
4134
|
+
ea as ReconfigBacksideButtons,
|
|
4135
|
+
bi as RegistrationForm,
|
|
4136
|
+
nr as ResizeEnvelope,
|
|
4137
|
+
yi as Row1Controls,
|
|
4138
|
+
wi as Row2FilterTray,
|
|
4139
|
+
_i as SearchInput,
|
|
4140
|
+
ir as SectionDivider,
|
|
4141
|
+
pr as SectionDots,
|
|
4142
|
+
Ni as SegmentCard,
|
|
4143
|
+
Di as SegmentedControl,
|
|
4144
|
+
Ci as Select,
|
|
4145
|
+
ki as Selectable,
|
|
4146
|
+
ve as SeverityDot,
|
|
4147
|
+
xi as SimpleMetricCard,
|
|
4148
|
+
Si as SimpleSelector,
|
|
4149
|
+
Ri as Skeleton,
|
|
4150
|
+
Mi as SkeletonCard,
|
|
4151
|
+
Ti as SkeletonChart,
|
|
4152
|
+
Ii as SkeletonTable,
|
|
4153
|
+
Pi as Slider,
|
|
4154
|
+
cr as SnapOutline,
|
|
4155
|
+
Fi as Sortable,
|
|
4156
|
+
Ga as SortableZones,
|
|
4157
|
+
Ei as SparklineBg,
|
|
4158
|
+
sr as SpilloverArc,
|
|
4159
|
+
Ai as SplitButton,
|
|
4160
|
+
Oi as StackedGroupCard,
|
|
4161
|
+
wa as StarterRail,
|
|
4162
|
+
Li as StatusModeCard,
|
|
4163
|
+
Et as StatusSlotChipMenu,
|
|
4164
|
+
$i as Stepper,
|
|
4165
|
+
Ze as SwingReveal,
|
|
4166
|
+
Ko as TODAY_PRESET,
|
|
4167
|
+
re as TUNING_DEFAULTS,
|
|
4168
|
+
et as TUNING_STORAGE_KEY,
|
|
4169
|
+
Bi as TabGroup,
|
|
4170
|
+
zi as TabbedDataView,
|
|
4171
|
+
Ki as TagInput,
|
|
4172
|
+
St as TargetInput,
|
|
4173
|
+
Wi as Textarea,
|
|
4174
|
+
Pa as ThresholdRamp,
|
|
4175
|
+
Gi as TimeFrame,
|
|
4176
|
+
Vi as TimePicker,
|
|
4177
|
+
Hi as Toggle,
|
|
4178
|
+
Ui as Tooltip,
|
|
4179
|
+
ji as Transition,
|
|
4180
|
+
Zi as TransitionGroup,
|
|
4181
|
+
qi as TrendCard,
|
|
4182
|
+
Yi as TrendIndicator,
|
|
4183
|
+
Eo as UIContext,
|
|
4184
|
+
Oe as UIContextProvider,
|
|
4185
|
+
Qi as UnifiedBreakdownTable,
|
|
4186
|
+
Xi as UnifiedContextMenu,
|
|
4187
|
+
Lt as VelocityBuffer,
|
|
4188
|
+
Ji as addressGroupMetadata,
|
|
4189
|
+
eo as addressSchema,
|
|
4190
|
+
ln as allChips,
|
|
4191
|
+
Rn as allStateFixtures,
|
|
4192
|
+
Sn as allVariantFixtures,
|
|
4193
|
+
mn as blockSamples,
|
|
4194
|
+
to as buildDefaultOverflow,
|
|
4195
|
+
vn as cardSamples,
|
|
4196
|
+
bn as cascadePhysics,
|
|
4197
|
+
hn as chartSamples,
|
|
4198
|
+
pn as circleSamples,
|
|
4199
|
+
Dn as colorTokens,
|
|
4200
|
+
Yn as compactLayout,
|
|
4201
|
+
Bn as compactState,
|
|
4202
|
+
xn as computeGutterAnchorX,
|
|
4203
|
+
ao as contactFormMetadata,
|
|
4204
|
+
no as contactSchema,
|
|
4205
|
+
zn as contextMenuFixtures,
|
|
4206
|
+
ro as creditCardFormMetadata,
|
|
4207
|
+
so as creditCardSchema,
|
|
4208
|
+
Tt as dateChip,
|
|
4209
|
+
Je as defaultControlBarState,
|
|
4210
|
+
io as destructiveModalMetadata,
|
|
4211
|
+
oo as durations,
|
|
4212
|
+
lo as easings,
|
|
4213
|
+
zt as emptyFixture,
|
|
4214
|
+
Rt as entityChip,
|
|
4215
|
+
Zt as entityNameActions,
|
|
4216
|
+
dn as entityTabGroup,
|
|
4217
|
+
Bt as errorFixture,
|
|
4218
|
+
co as evaluateTintCondition,
|
|
4219
|
+
$n as filteredState,
|
|
4220
|
+
Wo as findPreset,
|
|
4221
|
+
Go as formatDateRange,
|
|
4222
|
+
Vo as formatMarketDates,
|
|
4223
|
+
Ho as formatTrend,
|
|
4224
|
+
Uo as formatValue,
|
|
4225
|
+
Xn as fullLayout,
|
|
4226
|
+
jo as generateMarketId,
|
|
4227
|
+
uo as generateTabId,
|
|
4228
|
+
Zo as getAllPresets,
|
|
4229
|
+
qo as getDateRangeForPreset,
|
|
4230
|
+
mo as getMenuActions,
|
|
4231
|
+
Cn as getMotionMode,
|
|
4232
|
+
Yo as getPresetLabel,
|
|
4233
|
+
go as getTransitionStyle,
|
|
4234
|
+
qn as gridCards,
|
|
4235
|
+
po as interpolate,
|
|
4236
|
+
Qo as isInRange,
|
|
4237
|
+
Xo as isMarketActive,
|
|
4238
|
+
Jo as isSameDay,
|
|
4239
|
+
Ln as itemColumns,
|
|
4240
|
+
An as itemRows,
|
|
4241
|
+
$t as loadingFixture,
|
|
4242
|
+
ho as loginFormMetadata,
|
|
4243
|
+
fo as loginSchema,
|
|
4244
|
+
It as manufacturerChip,
|
|
4245
|
+
ar as manyTabs,
|
|
4246
|
+
vo as mergeHandlers,
|
|
4247
|
+
bo as mergeRefs,
|
|
4248
|
+
cn as metricTabGroup,
|
|
4249
|
+
er as mixedTabs,
|
|
4250
|
+
el as normalizePresetId,
|
|
4251
|
+
Yt as numericActions,
|
|
4252
|
+
On as orderColumns,
|
|
4253
|
+
qt as orderIdActions,
|
|
4254
|
+
En as orderRows,
|
|
4255
|
+
Jn as ordersTabs,
|
|
4256
|
+
yo as parseNumericValue,
|
|
4257
|
+
wo as paymentFormMetadata,
|
|
4258
|
+
_o as paymentSchema,
|
|
4259
|
+
No as presets,
|
|
4260
|
+
wn as provisional,
|
|
4261
|
+
_n as reducedMotion,
|
|
4262
|
+
Do as registrationFormMetadata,
|
|
4263
|
+
Co as registrationSchema,
|
|
4264
|
+
yn as rejectionFeedback,
|
|
4265
|
+
Wn as sampleCompareRanges,
|
|
4266
|
+
Hn as sampleCustomMarkets,
|
|
4267
|
+
Kn as sampleDateRange,
|
|
4268
|
+
Un as sampleMarketPresetData,
|
|
4269
|
+
Vn as sampleMarkets,
|
|
4270
|
+
Zn as samplePeriodPresets,
|
|
4271
|
+
Gn as samplePreferences,
|
|
4272
|
+
jn as samplePresets,
|
|
4273
|
+
tr as singleTab,
|
|
4274
|
+
Mn as sparklineFixture,
|
|
4275
|
+
Tn as sparklineUpFixture,
|
|
4276
|
+
Gt as staleDonutFixture,
|
|
4277
|
+
Kt as staleFixture,
|
|
4278
|
+
Wt as staleSparklineFixture,
|
|
4279
|
+
In as standardFixture,
|
|
4280
|
+
Fn as standardFlatFixture,
|
|
4281
|
+
Qn as standardLayout,
|
|
4282
|
+
Pn as standardNegativeFixture,
|
|
4283
|
+
Mt as statusChip,
|
|
4284
|
+
me as swingReveal,
|
|
4285
|
+
fn as tableSamples,
|
|
4286
|
+
gn as textSamples,
|
|
4287
|
+
un as timeFrameTabGroup,
|
|
4288
|
+
tl as toUppercasePresetId,
|
|
4289
|
+
on as useArrowNavigation,
|
|
4290
|
+
ko as useCheckboxGroupContext,
|
|
4291
|
+
kn as useEdgeHoverResize,
|
|
4292
|
+
xo as useFilterLayout,
|
|
4293
|
+
So as useFlipAndStage,
|
|
4294
|
+
Ro as useFlipAndStageContext,
|
|
4295
|
+
Mo as useFlipAndStageContextOptional,
|
|
4296
|
+
sn as useFocusReturn,
|
|
4297
|
+
To as useFocusTrap,
|
|
4298
|
+
Io as useFormContext,
|
|
4299
|
+
Po as useRadioGroupContext,
|
|
4300
|
+
sa as useResizeTuning,
|
|
4301
|
+
$a as useSortableZones,
|
|
4302
|
+
Ao as useUIContext
|
|
4002
4303
|
};
|