@mt-gloss/ui 0.1.96 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -0
- package/index.js +1292 -1150
- package/lib/composites/dashboard/BellCutout/BellCutout.d.ts +11 -0
- package/lib/composites/dashboard/BellCutout/index.d.ts +2 -0
- package/lib/composites/dashboard/BellPopover/BellPopover.d.ts +12 -0
- package/lib/composites/dashboard/BellPopover/index.d.ts +2 -0
- package/lib/composites/dashboard/index.d.ts +2 -0
- package/lib/composites/index.d.ts +1 -0
- package/lib/composites/portal/BodyPortal.d.ts +18 -0
- package/lib/composites/portal/index.d.ts +4 -0
- package/lib/composites/portal/usePortalAnchor.d.ts +17 -0
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { Q as
|
|
3
|
-
import { jsxs as
|
|
1
|
+
import { u as Qe, C as Xe } from "./Expandable-BcmIxWR8.js";
|
|
2
|
+
import { Q as Pr, V as Ir, T as Er, U as Ar, a5 as Fr, b8 as Or, aB as Lr, aj as $r, $ as zr, ap as Br, N as Kr, aa as Gr, bo as Hr, P as Wr, B as Vr, a as jr, A as Ur, K as Yr, bj as Zr, J as qr, L as Qr, E as Xr, D as Jr, H as es, F as ts, by as as, b as ns, c as rs, O as ss, q as is, af as os, aP as ls, A as cs, K as ds, J as us, L as ms, E as ps, D as gs, H as hs, F as fs, b1 as bs, b4 as vs, b3 as ys, b2 as ws, b5 as _s, aE as Cs, a7 as Ns, a6 as Ss, as as ks, m as Ds, o as xs, aH as Rs, ad as Ts, ba as Ms, ab as Ps, bp as Is, _ as Es, bI as As, bH as Fs, bJ as Os, ar as Ls, aS as $s, bc as zs, bN as Bs, bw as Ks, p as Gs, ao as Hs, bC as Ws, bt as Vs, a2 as js, at as Us, a4 as Ys, bB as Zs, bS as qs, G as Qs, f as Xs, ac as Js, bK as ei, aV as ti, t as ai, x as ni, I as ri, i as si, ay as ii, bO as oi, M as li, y as ci, W as di, Z as ui, X as mi, Y as pi, au as gi, bi as hi, bQ as fi, bM as bi, aq as vi, w as yi, bq as wi, aU as _i, al as Ci, aM as Ni, ai as Si, an as ki, aw as Di, aT as xi, ae as Ri, av as Ti, e as Mi, R as Pi, l as Ii, r as Ei, aJ as Ai, bz as Fi, bA as Oi, ak as Li, ag as $i, j as zi, z as Bi, b9 as Ki, ah as Gi, bP as Hi, be as Wi, bh as Vi, bf as ji, bg as Ui, k as Yi, bb as Zi, bn as qi, S as Qi, bl as Xi, bm as Ji, ax as eo, bd as to, bR as ao, am as no, v as ro, bL as so, n as io, h as oo, s as lo, a0 as co, a1 as uo, a9 as mo, bk as po, bx as go, bE as ho, aC as fo, aD as bo, a8 as vo, aQ as yo, aR as wo, aF as _o, aG as Co, aI as No, aX as So, aY as ko, br as Do, bG as xo, bF as Ro, a_ as To, a$ as Mo, az as Po, aA as Io, b7 as Eo, b6 as Ao, b0 as Fo, aN as Oo, aO as Lo, aZ as $o, aK as zo, aL as Bo, d as Ko, bD as Go, bs as Ho, bu as Wo, bv as Vo, aW as jo, a3 as Uo, bT as Yo, g as Zo } from "./Expandable-BcmIxWR8.js";
|
|
3
|
+
import { jsxs as y, jsx as r, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import * as B from "react";
|
|
5
|
-
import F, { useRef as P, useEffect as A, useState as
|
|
6
|
-
import { motion as G, useMotionValue as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
5
|
+
import F, { useRef as P, useEffect as A, useState as I, useCallback as C, useId as Je, forwardRef as et, useMemo as re, useLayoutEffect as Ie, createContext as tt, useContext as at } from "react";
|
|
6
|
+
import { motion as G, useMotionValue as nt, AnimatePresence as rt, useDragControls as st } from "framer-motion";
|
|
7
|
+
import { createPortal as Ee } from "react-dom";
|
|
8
|
+
import { B as it, a as X, b as ce, U as fe } from "./UIContext-DP6JGCto.js";
|
|
9
|
+
import { c as Qo, u as Xo } from "./UIContext-DP6JGCto.js";
|
|
10
|
+
import { C as el, c as tl, b as al, P as nl, e as rl, i as sl, r as il, u as ol, a as ll, d as cl } from "./COMMITS-By42AA8m.js";
|
|
11
|
+
import { DEFAULT_MARKET_PRESETS as ul, DEFAULT_PINNED as ml, PERIOD_OPTIONS as pl, ROLLING_OPTIONS as gl, TODAY_PRESET as hl, findPreset as fl, formatDateRange as bl, formatMarketDates as vl, formatTrend as yl, formatValue as wl, generateMarketId as _l, getAllPresets as Cl, getDateRangeForPreset as Nl, getPresetLabel as Sl, isInRange as kl, isMarketActive as Dl, isSameDay as xl, normalizePresetId as Rl, toUppercasePresetId as Tl } from "@mt-gloss/utils";
|
|
12
|
+
import ot from "@mui/icons-material/AccessTime";
|
|
13
|
+
import lt from "@mui/icons-material/Tune";
|
|
14
|
+
import ct from "@mui/icons-material/ViewColumn";
|
|
15
|
+
import dt from "@mui/icons-material/AspectRatio";
|
|
16
|
+
import ut from "@mui/icons-material/Palette";
|
|
17
|
+
import mt from "@mui/icons-material/PushPin";
|
|
18
18
|
import { useMotionProbe as de } from "@mt-gloss/motion";
|
|
19
|
-
function
|
|
19
|
+
function ln(e = {}) {
|
|
20
20
|
const { enabled: t = !0, returnTo: n } = e, a = P(null);
|
|
21
21
|
return A(() => {
|
|
22
22
|
t && (a.current = n || document.activeElement);
|
|
@@ -26,7 +26,7 @@ function an(e = {}) {
|
|
|
26
26
|
}, 0);
|
|
27
27
|
}, [t]), a;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function cn(e) {
|
|
30
30
|
const {
|
|
31
31
|
items: t,
|
|
32
32
|
activeIndex: n,
|
|
@@ -35,87 +35,87 @@ function nn(e) {
|
|
|
35
35
|
orientation: s = "vertical",
|
|
36
36
|
enabled: o = !0,
|
|
37
37
|
isItemDisabled: l,
|
|
38
|
-
onSelect:
|
|
39
|
-
onEscape:
|
|
40
|
-
} = e, [
|
|
41
|
-
(
|
|
42
|
-
n === void 0 && h(
|
|
38
|
+
onSelect: m,
|
|
39
|
+
onEscape: c
|
|
40
|
+
} = e, [d, h] = I(-1), u = n !== void 0 ? n : d, p = C(
|
|
41
|
+
(g) => {
|
|
42
|
+
n === void 0 && h(g), a?.(g);
|
|
43
43
|
},
|
|
44
44
|
[n, a]
|
|
45
|
-
),
|
|
46
|
-
(
|
|
47
|
-
const _ =
|
|
45
|
+
), w = C(() => t.map((g, v) => ({ item: g, index: v })).filter(({ item: g, index: v }) => !l?.(g, v)).map(({ index: g }) => g), [t, l]), k = C(
|
|
46
|
+
(g, v) => {
|
|
47
|
+
const _ = w();
|
|
48
48
|
if (_.length === 0) return -1;
|
|
49
|
-
const D = _.indexOf(
|
|
49
|
+
const D = _.indexOf(g);
|
|
50
50
|
if (D === -1)
|
|
51
|
-
return v === 1 ? _.find((x) => x >
|
|
52
|
-
let
|
|
53
|
-
return i ?
|
|
51
|
+
return v === 1 ? _.find((x) => x > g) ?? (i ? _[0] : -1) : [..._].reverse().find((E) => E < g) ?? (i ? _[_.length - 1] : -1);
|
|
52
|
+
let R = D + v;
|
|
53
|
+
return i ? R = (R + _.length) % _.length : R = Math.max(0, Math.min(_.length - 1, R)), _[R];
|
|
54
54
|
},
|
|
55
|
-
[
|
|
55
|
+
[w, i]
|
|
56
56
|
), f = C(() => {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
}, [
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
}, [
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
}, [
|
|
69
|
-
|
|
70
|
-
}, [
|
|
71
|
-
(
|
|
57
|
+
const g = w();
|
|
58
|
+
g.length > 0 && p(g[0]);
|
|
59
|
+
}, [w, p]), b = C(() => {
|
|
60
|
+
const g = w();
|
|
61
|
+
g.length > 0 && p(g[g.length - 1]);
|
|
62
|
+
}, [w, p]), M = C(() => {
|
|
63
|
+
const g = k(u, 1);
|
|
64
|
+
g !== -1 && p(g);
|
|
65
|
+
}, [u, k, p]), N = C(() => {
|
|
66
|
+
const g = k(u, -1);
|
|
67
|
+
g !== -1 && p(g);
|
|
68
|
+
}, [u, k, p]), S = C(() => {
|
|
69
|
+
p(-1);
|
|
70
|
+
}, [p]), T = C(
|
|
71
|
+
(g) => {
|
|
72
72
|
if (!o) return;
|
|
73
|
-
const { key: v } =
|
|
74
|
-
if (_ ||
|
|
75
|
-
|
|
73
|
+
const { key: v } = g, _ = v === "ArrowUp" && (s === "vertical" || s === "both"), D = v === "ArrowDown" && (s === "vertical" || s === "both"), R = v === "ArrowLeft" && (s === "horizontal" || s === "both"), x = v === "ArrowRight" && (s === "horizontal" || s === "both");
|
|
74
|
+
if (_ || R) {
|
|
75
|
+
g.preventDefault(), u === -1 ? b() : N();
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
if (D || x) {
|
|
79
|
-
|
|
79
|
+
g.preventDefault(), u === -1 ? f() : M();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
if (v === "Home") {
|
|
83
|
-
|
|
83
|
+
g.preventDefault(), f();
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
if (v === "End") {
|
|
87
|
-
|
|
87
|
+
g.preventDefault(), b();
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
if ((v === "Enter" || v === " ") &&
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
l?.(
|
|
90
|
+
if ((v === "Enter" || v === " ") && u >= 0 && u < t.length) {
|
|
91
|
+
g.preventDefault();
|
|
92
|
+
const E = t[u];
|
|
93
|
+
l?.(E, u) || m?.(E, u);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (v === "Escape") {
|
|
97
|
-
|
|
97
|
+
c?.();
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
[
|
|
102
102
|
o,
|
|
103
103
|
s,
|
|
104
|
-
|
|
104
|
+
u,
|
|
105
105
|
t,
|
|
106
106
|
f,
|
|
107
107
|
b,
|
|
108
108
|
M,
|
|
109
109
|
N,
|
|
110
110
|
l,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
m,
|
|
112
|
+
c
|
|
113
113
|
]
|
|
114
114
|
);
|
|
115
115
|
return {
|
|
116
|
-
focusedIndex:
|
|
117
|
-
setFocusedIndex:
|
|
118
|
-
handleKeyDown:
|
|
116
|
+
focusedIndex: u,
|
|
117
|
+
setFocusedIndex: p,
|
|
118
|
+
handleKeyDown: T,
|
|
119
119
|
focusFirst: f,
|
|
120
120
|
focusLast: b,
|
|
121
121
|
focusNext: M,
|
|
@@ -123,7 +123,7 @@ function nn(e) {
|
|
|
123
123
|
resetFocus: S
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const pt = ({
|
|
127
127
|
label: e = "Set a target",
|
|
128
128
|
unit: t,
|
|
129
129
|
currentValue: n,
|
|
@@ -131,15 +131,15 @@ const mt = ({
|
|
|
131
131
|
onSkip: i,
|
|
132
132
|
hint: s
|
|
133
133
|
}) => {
|
|
134
|
-
const [o, l] =
|
|
135
|
-
const
|
|
136
|
-
Number.isNaN(
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
return /* @__PURE__ */
|
|
134
|
+
const [o, l] = I(n != null ? String(n) : ""), m = () => {
|
|
135
|
+
const p = parseFloat(o);
|
|
136
|
+
Number.isNaN(p) || a(p);
|
|
137
|
+
}, c = (p) => {
|
|
138
|
+
p.key === "Enter" ? (p.preventDefault(), m()) : p.key === "Escape" && (p.preventDefault(), i?.());
|
|
139
|
+
}, d = Je(), h = `gloss-target-input-field-${d}`, u = s ? `gloss-target-input-hint-${d}` : void 0;
|
|
140
|
+
return /* @__PURE__ */ y("div", { className: "gloss-target-input", children: [
|
|
141
141
|
/* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: h, children: e }),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ y("div", { className: "gloss-target-input__field-row", children: [
|
|
143
143
|
/* @__PURE__ */ r(
|
|
144
144
|
"input",
|
|
145
145
|
{
|
|
@@ -147,22 +147,22 @@ const mt = ({
|
|
|
147
147
|
type: "number",
|
|
148
148
|
className: "gloss-target-input__field",
|
|
149
149
|
value: o,
|
|
150
|
-
onChange: (
|
|
151
|
-
onKeyDown:
|
|
152
|
-
"aria-describedby":
|
|
150
|
+
onChange: (p) => l(p.target.value),
|
|
151
|
+
onKeyDown: c,
|
|
152
|
+
"aria-describedby": u,
|
|
153
153
|
autoFocus: !0
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
|
|
157
157
|
] }),
|
|
158
|
-
s && /* @__PURE__ */ r("p", { id:
|
|
159
|
-
/* @__PURE__ */
|
|
158
|
+
s && /* @__PURE__ */ r("p", { id: u, className: "gloss-target-input__hint", children: s }),
|
|
159
|
+
/* @__PURE__ */ y("div", { className: "gloss-target-input__actions", children: [
|
|
160
160
|
/* @__PURE__ */ r(
|
|
161
161
|
"button",
|
|
162
162
|
{
|
|
163
163
|
type: "button",
|
|
164
164
|
className: "gloss-target-input__confirm",
|
|
165
|
-
onClick:
|
|
165
|
+
onClick: m,
|
|
166
166
|
children: "Confirm"
|
|
167
167
|
}
|
|
168
168
|
),
|
|
@@ -184,36 +184,36 @@ const mt = ({
|
|
|
184
184
|
field: "customer",
|
|
185
185
|
value: "acme-corp-123",
|
|
186
186
|
onRemove: se
|
|
187
|
-
},
|
|
187
|
+
}, ht = {
|
|
188
188
|
id: "status-filter-1",
|
|
189
189
|
label: "Status: Open",
|
|
190
190
|
field: "status",
|
|
191
191
|
value: "open",
|
|
192
192
|
onRemove: se
|
|
193
|
-
},
|
|
193
|
+
}, ft = {
|
|
194
194
|
id: "date-filter-1",
|
|
195
195
|
label: "Date: Mar 1 - Mar 15",
|
|
196
196
|
field: "dateRange",
|
|
197
197
|
value: "2026-03-01..2026-03-15",
|
|
198
198
|
onRemove: se
|
|
199
|
-
},
|
|
199
|
+
}, bt = {
|
|
200
200
|
id: "mfg-filter-1",
|
|
201
201
|
label: "Manufacturer: Widget Co",
|
|
202
202
|
field: "manufacturer",
|
|
203
203
|
value: "widget-co-456",
|
|
204
204
|
onRemove: se
|
|
205
|
-
},
|
|
205
|
+
}, dn = [
|
|
206
206
|
gt,
|
|
207
|
-
pt,
|
|
208
207
|
ht,
|
|
209
|
-
ft
|
|
210
|
-
|
|
208
|
+
ft,
|
|
209
|
+
bt
|
|
210
|
+
], un = {
|
|
211
211
|
id: "metric-toggle",
|
|
212
212
|
tabs: [
|
|
213
213
|
{ id: "$", label: "$", mono: !0 },
|
|
214
214
|
{ id: "#", label: "#", mono: !0 }
|
|
215
215
|
]
|
|
216
|
-
},
|
|
216
|
+
}, mn = {
|
|
217
217
|
id: "entity-type",
|
|
218
218
|
tabs: [
|
|
219
219
|
{ id: "orders", label: "Orders" },
|
|
@@ -221,7 +221,7 @@ const mt = ({
|
|
|
221
221
|
{ id: "customers", label: "Customers" },
|
|
222
222
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
223
223
|
]
|
|
224
|
-
},
|
|
224
|
+
}, pn = {
|
|
225
225
|
id: "time-frame",
|
|
226
226
|
tabs: [
|
|
227
227
|
{ id: "MTD", label: "MTD" },
|
|
@@ -229,26 +229,26 @@ const mt = ({
|
|
|
229
229
|
{ id: "YTD", label: "YTD" },
|
|
230
230
|
{ id: "LYTD", label: "LYTD" }
|
|
231
231
|
]
|
|
232
|
-
},
|
|
232
|
+
}, gn = [
|
|
233
233
|
{ variant: "block", width: "100%", height: 16 },
|
|
234
234
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
235
235
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
236
236
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
237
|
-
],
|
|
237
|
+
], hn = [
|
|
238
238
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
239
239
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
240
240
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
241
|
-
],
|
|
241
|
+
], fn = [
|
|
242
242
|
{ variant: "circle", size: 24 },
|
|
243
243
|
{ variant: "circle", size: 40 },
|
|
244
244
|
{ variant: "circle", size: 64 }
|
|
245
|
-
],
|
|
245
|
+
], bn = [
|
|
246
246
|
{ bars: 10, maxHeight: 120 },
|
|
247
247
|
{ bars: 5, maxHeight: 80 }
|
|
248
|
-
],
|
|
248
|
+
], vn = [
|
|
249
249
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
250
250
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
251
|
-
],
|
|
251
|
+
], yn = [
|
|
252
252
|
{ variant: "value", colSpan: 1 },
|
|
253
253
|
{ variant: "trend", colSpan: 2 },
|
|
254
254
|
{ variant: "target", colSpan: 1 }
|
|
@@ -278,16 +278,16 @@ const mt = ({
|
|
|
278
278
|
width: "100%",
|
|
279
279
|
textAlign: "left",
|
|
280
280
|
border: "none"
|
|
281
|
-
}),
|
|
281
|
+
}), vt = (e) => ({
|
|
282
282
|
...ue(e),
|
|
283
283
|
color: e ? "#4338ca" : "#4f46e5",
|
|
284
284
|
fontWeight: 600
|
|
285
|
-
}),
|
|
285
|
+
}), yt = {
|
|
286
286
|
height: 1,
|
|
287
287
|
background: "rgba(0,0,0,0.06)",
|
|
288
288
|
margin: "3px 10px"
|
|
289
289
|
};
|
|
290
|
-
function
|
|
290
|
+
function wt({
|
|
291
291
|
open: e,
|
|
292
292
|
anchorEl: t,
|
|
293
293
|
statusId: n,
|
|
@@ -296,44 +296,44 @@ function yt({
|
|
|
296
296
|
overflowActions: s,
|
|
297
297
|
onClose: o
|
|
298
298
|
}) {
|
|
299
|
-
const [l,
|
|
299
|
+
const [l, m] = I(null), c = P(null), d = C(() => {
|
|
300
300
|
if (!t) return { ...ye, top: 0, left: 0 };
|
|
301
|
-
const
|
|
301
|
+
const p = t.getBoundingClientRect();
|
|
302
302
|
return {
|
|
303
303
|
...ye,
|
|
304
|
-
top:
|
|
305
|
-
left:
|
|
304
|
+
top: p.bottom + 4,
|
|
305
|
+
left: p.left
|
|
306
306
|
};
|
|
307
307
|
}, [t]);
|
|
308
308
|
if (A(() => {
|
|
309
309
|
if (!e) return;
|
|
310
|
-
const
|
|
311
|
-
|
|
310
|
+
const p = (w) => {
|
|
311
|
+
w.key === "Escape" && o();
|
|
312
312
|
};
|
|
313
|
-
return document.addEventListener("keydown",
|
|
313
|
+
return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
|
|
314
314
|
}, [e, o]), A(() => {
|
|
315
315
|
if (!e) return;
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const p = (w) => {
|
|
317
|
+
c.current && !c.current.contains(w.target) && o();
|
|
318
318
|
};
|
|
319
|
-
return document.addEventListener("pointerdown",
|
|
319
|
+
return document.addEventListener("pointerdown", p, !0), () => document.removeEventListener("pointerdown", p, !0);
|
|
320
320
|
}, [e, o]), !e) return null;
|
|
321
|
-
const h = s && s.length > 0,
|
|
321
|
+
const h = s && s.length > 0, u = /* @__PURE__ */ y(
|
|
322
322
|
"div",
|
|
323
323
|
{
|
|
324
|
-
ref:
|
|
324
|
+
ref: c,
|
|
325
325
|
"data-status-chip-menu": n,
|
|
326
326
|
role: "menu",
|
|
327
327
|
"aria-label": "Status actions",
|
|
328
|
-
style:
|
|
328
|
+
style: d(),
|
|
329
329
|
children: [
|
|
330
330
|
/* @__PURE__ */ r(
|
|
331
331
|
"button",
|
|
332
332
|
{
|
|
333
333
|
role: "menuitem",
|
|
334
|
-
style:
|
|
335
|
-
onMouseEnter: () =>
|
|
336
|
-
onMouseLeave: () =>
|
|
334
|
+
style: vt(l === "__primary"),
|
|
335
|
+
onMouseEnter: () => m("__primary"),
|
|
336
|
+
onMouseLeave: () => m(null),
|
|
337
337
|
onClick: () => {
|
|
338
338
|
a(n), o();
|
|
339
339
|
},
|
|
@@ -345,36 +345,36 @@ function yt({
|
|
|
345
345
|
{
|
|
346
346
|
role: "menuitem",
|
|
347
347
|
style: ue(l === "__graph"),
|
|
348
|
-
onMouseEnter: () =>
|
|
349
|
-
onMouseLeave: () =>
|
|
348
|
+
onMouseEnter: () => m("__graph"),
|
|
349
|
+
onMouseLeave: () => m(null),
|
|
350
350
|
onClick: () => {
|
|
351
351
|
i(n), o();
|
|
352
352
|
},
|
|
353
353
|
children: "Show on graph"
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
|
-
h && /* @__PURE__ */ r("div", { style:
|
|
357
|
-
h && s?.map((
|
|
356
|
+
h && /* @__PURE__ */ r("div", { style: yt }),
|
|
357
|
+
h && s?.map((p) => /* @__PURE__ */ r(
|
|
358
358
|
"button",
|
|
359
359
|
{
|
|
360
360
|
role: "menuitem",
|
|
361
|
-
style: ue(l ===
|
|
362
|
-
onMouseEnter: () =>
|
|
363
|
-
onMouseLeave: () =>
|
|
361
|
+
style: ue(l === p.id),
|
|
362
|
+
onMouseEnter: () => m(p.id),
|
|
363
|
+
onMouseLeave: () => m(null),
|
|
364
364
|
onClick: () => {
|
|
365
|
-
|
|
365
|
+
p.onSelect(n), o();
|
|
366
366
|
},
|
|
367
|
-
children:
|
|
367
|
+
children: p.label
|
|
368
368
|
},
|
|
369
|
-
|
|
369
|
+
p.id
|
|
370
370
|
))
|
|
371
371
|
]
|
|
372
372
|
}
|
|
373
373
|
);
|
|
374
|
-
return
|
|
374
|
+
return Ee(u, document.body);
|
|
375
375
|
}
|
|
376
|
-
|
|
377
|
-
function
|
|
376
|
+
wt.displayName = "StatusSlotChipMenu";
|
|
377
|
+
function _t({
|
|
378
378
|
visible: e,
|
|
379
379
|
targetColSpan: t,
|
|
380
380
|
ghostWidth: n,
|
|
@@ -398,8 +398,8 @@ function wt({
|
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
|
-
|
|
402
|
-
const
|
|
401
|
+
_t.displayName = "GhostPreview";
|
|
402
|
+
const Ct = {
|
|
403
403
|
// Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
|
|
404
404
|
// has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
|
|
405
405
|
// prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
|
|
@@ -419,7 +419,7 @@ const _t = {
|
|
|
419
419
|
// Velocity multiplier (D-03b panel)
|
|
420
420
|
velocityMultiplier: 1
|
|
421
421
|
};
|
|
422
|
-
class
|
|
422
|
+
class wn {
|
|
423
423
|
constructor() {
|
|
424
424
|
this.samples = [], this.capacity = 3;
|
|
425
425
|
}
|
|
@@ -457,8 +457,8 @@ class hn {
|
|
|
457
457
|
const t = this.samples.length;
|
|
458
458
|
if (t < 2) return 0;
|
|
459
459
|
if (t === 2) {
|
|
460
|
-
const [
|
|
461
|
-
return (
|
|
460
|
+
const [m, c] = this.samples, d = Math.max(1, c.t - m.t);
|
|
461
|
+
return (c.x - m.x) / d * 1e3;
|
|
462
462
|
}
|
|
463
463
|
const [n, a, i] = this.samples, s = (i.x - a.x) / Math.max(1, i.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
|
|
464
464
|
return (s * 3 + o * 2 + l * 1) / 6;
|
|
@@ -488,7 +488,7 @@ const U = {
|
|
|
488
488
|
sectionDividerFadeInMs: 120,
|
|
489
489
|
sectionDividerFadeOutMs: 80,
|
|
490
490
|
sectionDividerStaggerMs: 40
|
|
491
|
-
},
|
|
491
|
+
}, Ae = {
|
|
492
492
|
// Geometry (D-08)
|
|
493
493
|
pillOverhangPx: 12,
|
|
494
494
|
pillClearancePx: 14,
|
|
@@ -507,8 +507,8 @@ const U = {
|
|
|
507
507
|
chainPulseMs: 1200,
|
|
508
508
|
chainStaggerMs: 120
|
|
509
509
|
};
|
|
510
|
-
function
|
|
511
|
-
const { visible: t, currentTarget: n, previewTarget: a, targetWidth: i, orientation: s } = e, o =
|
|
510
|
+
function Fe(e) {
|
|
511
|
+
const { visible: t, currentTarget: n, previewTarget: a, targetWidth: i, orientation: s } = e, o = nt(i);
|
|
512
512
|
return A(() => {
|
|
513
513
|
o.set(i);
|
|
514
514
|
}, [i, o]), !t || a === n ? null : /* @__PURE__ */ r(
|
|
@@ -545,8 +545,8 @@ function Ee(e) {
|
|
|
545
545
|
}
|
|
546
546
|
);
|
|
547
547
|
}
|
|
548
|
-
|
|
549
|
-
function
|
|
548
|
+
Fe.displayName = "ResizePillGhost";
|
|
549
|
+
function Oe(e) {
|
|
550
550
|
const {
|
|
551
551
|
visible: t,
|
|
552
552
|
direction: n,
|
|
@@ -555,10 +555,10 @@ function Ae(e) {
|
|
|
555
555
|
startX: s,
|
|
556
556
|
endX: o,
|
|
557
557
|
pulseMs: l,
|
|
558
|
-
staggerMs:
|
|
558
|
+
staggerMs: m
|
|
559
559
|
} = e;
|
|
560
560
|
if (!t) return null;
|
|
561
|
-
const
|
|
561
|
+
const c = n === "grow", d = c ? s + a : s + i, h = c ? o - i : o - a, u = Math.max(0, h - d);
|
|
562
562
|
return /* @__PURE__ */ r(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
@@ -575,10 +575,10 @@ function Ae(e) {
|
|
|
575
575
|
top: 0,
|
|
576
576
|
height: "100%",
|
|
577
577
|
alignItems: "center",
|
|
578
|
-
left:
|
|
579
|
-
width:
|
|
578
|
+
left: d,
|
|
579
|
+
width: u
|
|
580
580
|
},
|
|
581
|
-
children: (n === "grow" ? [0, 1, 2, 3, 4] : [4, 3, 2, 1, 0]).map((
|
|
581
|
+
children: (n === "grow" ? [0, 1, 2, 3, 4] : [4, 3, 2, 1, 0]).map((w, k) => /* @__PURE__ */ r(
|
|
582
582
|
G.span,
|
|
583
583
|
{
|
|
584
584
|
className: [
|
|
@@ -593,7 +593,7 @@ function Ae(e) {
|
|
|
593
593
|
duration: l / 1e3,
|
|
594
594
|
repeat: 1 / 0,
|
|
595
595
|
ease: "easeInOut",
|
|
596
|
-
delay:
|
|
596
|
+
delay: w * m / 1e3
|
|
597
597
|
},
|
|
598
598
|
children: "›"
|
|
599
599
|
},
|
|
@@ -602,7 +602,7 @@ function Ae(e) {
|
|
|
602
602
|
}
|
|
603
603
|
);
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
Oe.displayName = "ResizePillArrowChain";
|
|
606
606
|
const we = 3;
|
|
607
607
|
function _e({ filled: e, total: t }) {
|
|
608
608
|
const n = [];
|
|
@@ -624,9 +624,9 @@ function _e({ filled: e, total: t }) {
|
|
|
624
624
|
function Ce(e) {
|
|
625
625
|
return e === "compact" ? "Compact" : e === "medium" ? "Medium" : e === "full" ? "Full" : String(e);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Le(e) {
|
|
628
628
|
const { visible: t, currentTarget: n, previewTarget: a, mode: i, showSizeTooltip: s = !0 } = e;
|
|
629
|
-
return !t || s === !1 ? null : /* @__PURE__ */
|
|
629
|
+
return !t || s === !1 ? null : /* @__PURE__ */ y(
|
|
630
630
|
G.div,
|
|
631
631
|
{
|
|
632
632
|
"aria-hidden": "true",
|
|
@@ -638,7 +638,7 @@ function Fe(e) {
|
|
|
638
638
|
exit: { opacity: 0 },
|
|
639
639
|
transition: { duration: 0.18 },
|
|
640
640
|
children: [
|
|
641
|
-
i === "directional" && /* @__PURE__ */
|
|
641
|
+
i === "directional" && /* @__PURE__ */ y($, { children: [
|
|
642
642
|
/* @__PURE__ */ r(
|
|
643
643
|
_e,
|
|
644
644
|
{
|
|
@@ -655,7 +655,7 @@ function Fe(e) {
|
|
|
655
655
|
}
|
|
656
656
|
)
|
|
657
657
|
] }),
|
|
658
|
-
i === "sized" && /* @__PURE__ */
|
|
658
|
+
i === "sized" && /* @__PURE__ */ y($, { children: [
|
|
659
659
|
/* @__PURE__ */ r("span", { className: "gloss-resize-pill-tooltip__label", children: Ce(n) }),
|
|
660
660
|
/* @__PURE__ */ r("span", { className: "gloss-resize-pill-tooltip__arrow", children: "→" }),
|
|
661
661
|
/* @__PURE__ */ r("span", { className: "gloss-resize-pill-tooltip__label", children: Ce(a) })
|
|
@@ -664,8 +664,8 @@ function Fe(e) {
|
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
|
-
|
|
668
|
-
function
|
|
667
|
+
Le.displayName = "ResizePillSizeTooltip";
|
|
668
|
+
function Nt({ direction: e }) {
|
|
669
669
|
return /* @__PURE__ */ r(
|
|
670
670
|
"svg",
|
|
671
671
|
{
|
|
@@ -682,7 +682,7 @@ function Ct({ direction: e }) {
|
|
|
682
682
|
}
|
|
683
683
|
);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function St() {
|
|
686
686
|
return /* @__PURE__ */ r(
|
|
687
687
|
"svg",
|
|
688
688
|
{
|
|
@@ -699,7 +699,7 @@ function Nt() {
|
|
|
699
699
|
}
|
|
700
700
|
);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function kt({ target: e }) {
|
|
703
703
|
const t = e === "compact" ? 5 : e === "medium" ? 9 : 13;
|
|
704
704
|
return /* @__PURE__ */ r(
|
|
705
705
|
"svg",
|
|
@@ -713,7 +713,7 @@ function St({ target: e }) {
|
|
|
713
713
|
}
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Dt(e) {
|
|
717
717
|
const {
|
|
718
718
|
target: t,
|
|
719
719
|
currentTarget: n,
|
|
@@ -722,17 +722,17 @@ function kt(e) {
|
|
|
722
722
|
isHovered: s,
|
|
723
723
|
onCommit: o,
|
|
724
724
|
onEnter: l,
|
|
725
|
-
onLeave:
|
|
726
|
-
buttonHeight:
|
|
727
|
-
buttonWidth:
|
|
725
|
+
onLeave: m,
|
|
726
|
+
buttonHeight: c,
|
|
727
|
+
buttonWidth: d
|
|
728
728
|
} = e;
|
|
729
729
|
let h = null;
|
|
730
730
|
if (a === "directional") {
|
|
731
|
-
const
|
|
732
|
-
h = /* @__PURE__ */ r(
|
|
731
|
+
const u = typeof t == "number" && typeof n == "number" && t < n ? "left" : "right";
|
|
732
|
+
h = /* @__PURE__ */ r(Nt, { direction: u });
|
|
733
733
|
} else
|
|
734
|
-
h = /* @__PURE__ */ r(
|
|
735
|
-
return /* @__PURE__ */
|
|
734
|
+
h = /* @__PURE__ */ r(kt, { target: t });
|
|
735
|
+
return /* @__PURE__ */ y(
|
|
736
736
|
"button",
|
|
737
737
|
{
|
|
738
738
|
type: "button",
|
|
@@ -745,25 +745,25 @@ function kt(e) {
|
|
|
745
745
|
"data-mode": a,
|
|
746
746
|
"data-active": i ? "true" : "false",
|
|
747
747
|
"data-button-hover-state": s ? "check" : "chevron",
|
|
748
|
-
style: { width:
|
|
748
|
+
style: { width: d, height: c },
|
|
749
749
|
onClick: () => o(t),
|
|
750
750
|
onPointerEnter: () => l?.(t),
|
|
751
|
-
onPointerLeave: () =>
|
|
751
|
+
onPointerLeave: () => m?.(),
|
|
752
752
|
"aria-label": `Resize to ${String(t)}`,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ r("span", { className: "gloss-resize-pill__glyph", children: h }),
|
|
755
|
-
/* @__PURE__ */ r("span", { className: "gloss-resize-pill__check", children: /* @__PURE__ */ r(
|
|
755
|
+
/* @__PURE__ */ r("span", { className: "gloss-resize-pill__check", children: /* @__PURE__ */ r(St, {}) })
|
|
756
756
|
]
|
|
757
757
|
}
|
|
758
758
|
);
|
|
759
759
|
}
|
|
760
|
-
const
|
|
760
|
+
const xt = et(
|
|
761
761
|
function(t, n) {
|
|
762
762
|
const a = {
|
|
763
|
-
...
|
|
763
|
+
...Ae,
|
|
764
764
|
...t.physics
|
|
765
|
-
}, i = t.pillVisible && !t.forceIdle && t.resizePillEnabled !== !1, s = t.availableTargets, o = t.orientation ?? "vertical", l = t.buttonHover !== null && t.previewTarget !== void 0 && t.previewTarget !== null && t.previewTarget !== t.currentTarget && !t.forceIdle && t.resizePillEnabled !== !1,
|
|
766
|
-
return /* @__PURE__ */
|
|
765
|
+
}, i = t.pillVisible && !t.forceIdle && t.resizePillEnabled !== !1, s = t.availableTargets, o = t.orientation ?? "vertical", l = t.buttonHover !== null && t.previewTarget !== void 0 && t.previewTarget !== null && t.previewTarget !== t.currentTarget && !t.forceIdle && t.resizePillEnabled !== !1, m = l && t.previewTarget != null ? t.resolveTargetWidth(t.previewTarget) : t.hostWidth, c = t.chainStartX ?? 0, d = t.chainEndX ?? t.hostWidth, h = t.chainDirection ?? "grow";
|
|
766
|
+
return /* @__PURE__ */ y(rt, { children: [
|
|
767
767
|
i && /* @__PURE__ */ r(
|
|
768
768
|
G.div,
|
|
769
769
|
{
|
|
@@ -790,16 +790,16 @@ const Dt = Xe(
|
|
|
790
790
|
transition: { duration: a.pillRevealMs / 1e3 },
|
|
791
791
|
onPointerEnter: t.onPillEnter,
|
|
792
792
|
onPointerLeave: t.onPillLeave,
|
|
793
|
-
children: s.map((
|
|
794
|
-
|
|
793
|
+
children: s.map((u) => /* @__PURE__ */ r(
|
|
794
|
+
Dt,
|
|
795
795
|
{
|
|
796
|
-
target:
|
|
796
|
+
target: u,
|
|
797
797
|
currentTarget: t.currentTarget,
|
|
798
798
|
mode: t.mode,
|
|
799
|
-
isActive:
|
|
799
|
+
isActive: u === t.currentTarget,
|
|
800
800
|
isHovered: (
|
|
801
801
|
// Hover-state mapping for chevron→✓ morph CSS.
|
|
802
|
-
t.buttonHover !== null && (typeof
|
|
802
|
+
t.buttonHover !== null && (typeof u == "number" && typeof t.currentTarget == "number" && (t.buttonHover === "grow" && u > t.currentTarget || t.buttonHover === "shrink" && u < t.currentTarget) || t.buttonHover === u)
|
|
803
803
|
),
|
|
804
804
|
onCommit: t.onCommit,
|
|
805
805
|
onEnter: t.onButtonEnter,
|
|
@@ -807,40 +807,40 @@ const Dt = Xe(
|
|
|
807
807
|
buttonHeight: a.pillButtonHeight,
|
|
808
808
|
buttonWidth: a.pillButtonWidth
|
|
809
809
|
},
|
|
810
|
-
String(
|
|
810
|
+
String(u)
|
|
811
811
|
))
|
|
812
812
|
},
|
|
813
813
|
"pill"
|
|
814
814
|
),
|
|
815
815
|
i && l && t.previewTarget != null && /* @__PURE__ */ r(
|
|
816
|
-
|
|
816
|
+
Fe,
|
|
817
817
|
{
|
|
818
818
|
visible: !0,
|
|
819
819
|
currentTarget: t.currentTarget,
|
|
820
820
|
previewTarget: t.previewTarget,
|
|
821
821
|
hostWidth: t.hostWidth,
|
|
822
|
-
targetWidth:
|
|
822
|
+
targetWidth: m,
|
|
823
823
|
ghostClearancePx: a.ghostClearancePx,
|
|
824
824
|
orientation: o
|
|
825
825
|
},
|
|
826
826
|
"ghost"
|
|
827
827
|
),
|
|
828
828
|
i && l && /* @__PURE__ */ r(
|
|
829
|
-
|
|
829
|
+
Oe,
|
|
830
830
|
{
|
|
831
831
|
visible: !0,
|
|
832
832
|
direction: h,
|
|
833
833
|
pillClearancePx: a.pillClearancePx,
|
|
834
834
|
ghostClearancePx: a.ghostClearancePx,
|
|
835
|
-
startX:
|
|
836
|
-
endX:
|
|
835
|
+
startX: c,
|
|
836
|
+
endX: d,
|
|
837
837
|
pulseMs: a.chainPulseMs,
|
|
838
838
|
staggerMs: a.chainStaggerMs
|
|
839
839
|
},
|
|
840
840
|
"chain"
|
|
841
841
|
),
|
|
842
842
|
i && l && t.showSizeTooltip && t.previewTarget != null && /* @__PURE__ */ r(
|
|
843
|
-
|
|
843
|
+
Le,
|
|
844
844
|
{
|
|
845
845
|
visible: !0,
|
|
846
846
|
currentTarget: t.currentTarget,
|
|
@@ -853,52 +853,52 @@ const Dt = Xe(
|
|
|
853
853
|
] });
|
|
854
854
|
}
|
|
855
855
|
);
|
|
856
|
-
|
|
857
|
-
function
|
|
856
|
+
xt.displayName = "ResizePill";
|
|
857
|
+
function _n(e) {
|
|
858
858
|
const t = {
|
|
859
|
-
...
|
|
859
|
+
...Ae,
|
|
860
860
|
...e.physics
|
|
861
|
-
}, [n, a] =
|
|
861
|
+
}, [n, a] = I("idle"), [i, s] = I(e.currentTarget), [o, l] = I(null), m = P(!1), c = P(null), d = P(null), h = P(e.currentTarget);
|
|
862
862
|
h.current = e.currentTarget;
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
const
|
|
866
|
-
|
|
867
|
-
const
|
|
868
|
-
|
|
869
|
-
|
|
863
|
+
const u = P(e.onCommit);
|
|
864
|
+
u.current = e.onCommit;
|
|
865
|
+
const p = P(e.forceIdle);
|
|
866
|
+
p.current = e.forceIdle;
|
|
867
|
+
const w = P(e.onPhaseChange);
|
|
868
|
+
w.current = e.onPhaseChange, A(() => {
|
|
869
|
+
w.current?.(n);
|
|
870
870
|
}, [n]), A(() => {
|
|
871
|
-
e.forceIdle && (
|
|
871
|
+
e.forceIdle && (d.current && (clearTimeout(d.current), d.current = null), a("idle"), l(null));
|
|
872
872
|
}, [e.forceIdle]), A(() => () => {
|
|
873
|
-
|
|
873
|
+
c.current && clearTimeout(c.current), d.current && clearTimeout(d.current);
|
|
874
874
|
}, []);
|
|
875
875
|
const k = C(() => {
|
|
876
|
-
|
|
876
|
+
m.current || p.current || (s(h.current), a("pill-visible"));
|
|
877
877
|
}, []), f = C(() => {
|
|
878
878
|
a("idle"), l(null);
|
|
879
879
|
}, []), b = C(
|
|
880
880
|
(x) => {
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
}, t.fadeGraceMs), l(null), a("fading"),
|
|
881
|
+
m.current = !0, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
882
|
+
m.current = !1, c.current = null;
|
|
883
|
+
}, t.fadeGraceMs), l(null), a("fading"), u.current(x);
|
|
884
884
|
},
|
|
885
885
|
[t.fadeGraceMs]
|
|
886
886
|
), M = C(() => {
|
|
887
|
-
|
|
887
|
+
d.current && (clearTimeout(d.current), d.current = null), k();
|
|
888
888
|
}, [k]), N = C(() => {
|
|
889
|
-
|
|
890
|
-
f(),
|
|
889
|
+
d.current && clearTimeout(d.current), d.current = setTimeout(() => {
|
|
890
|
+
f(), d.current = null;
|
|
891
891
|
}, t.hoverHideGraceMs);
|
|
892
892
|
}, [f, t.hoverHideGraceMs]), S = C(() => {
|
|
893
|
-
|
|
894
|
-
}, []),
|
|
895
|
-
|
|
896
|
-
f(),
|
|
893
|
+
d.current && (clearTimeout(d.current), d.current = null);
|
|
894
|
+
}, []), T = C(() => {
|
|
895
|
+
d.current && clearTimeout(d.current), d.current = setTimeout(() => {
|
|
896
|
+
f(), d.current = null;
|
|
897
897
|
}, t.hoverHideGraceMs);
|
|
898
|
-
}, [f, t.hoverHideGraceMs]),
|
|
899
|
-
const
|
|
898
|
+
}, [f, t.hoverHideGraceMs]), g = C((x) => {
|
|
899
|
+
const E = h.current;
|
|
900
900
|
let L;
|
|
901
|
-
x === "compact" || x === "medium" || x === "full" ? L = x : typeof
|
|
901
|
+
x === "compact" || x === "medium" || x === "full" ? L = x : typeof E == "number" && typeof x == "number" ? L = x > E ? "grow" : "shrink" : L = "grow", l(L), a("pre-commit");
|
|
902
902
|
}, []), v = C(() => {
|
|
903
903
|
l(null), a((x) => x === "pre-commit" ? "pill-visible" : x);
|
|
904
904
|
}, []), _ = C(
|
|
@@ -918,22 +918,22 @@ function fn(e) {
|
|
|
918
918
|
onTriggerEnter: M,
|
|
919
919
|
onTriggerLeave: N,
|
|
920
920
|
onPillEnter: S,
|
|
921
|
-
onPillLeave:
|
|
922
|
-
onButtonEnter:
|
|
921
|
+
onPillLeave: T,
|
|
922
|
+
onButtonEnter: g,
|
|
923
923
|
onButtonLeave: v,
|
|
924
924
|
onButtonClick: _
|
|
925
925
|
},
|
|
926
926
|
commit: b
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Cn(e) {
|
|
930
930
|
const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: i } = e;
|
|
931
931
|
if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
|
|
932
932
|
return;
|
|
933
933
|
const s = (a + 0.5) * (t / n);
|
|
934
934
|
return i != null && Number.isFinite(i) && i > 0 ? s - i / 2 : s;
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const Nn = [
|
|
937
937
|
// 1. Standard: Total Revenue
|
|
938
938
|
{
|
|
939
939
|
variant: "standard",
|
|
@@ -1065,7 +1065,7 @@ const vn = [
|
|
|
1065
1065
|
subtitle: "Awaiting QA",
|
|
1066
1066
|
highlightColor: "neutral"
|
|
1067
1067
|
}
|
|
1068
|
-
],
|
|
1068
|
+
], Rt = {
|
|
1069
1069
|
variant: "standard",
|
|
1070
1070
|
label: "Total Revenue",
|
|
1071
1071
|
isLoading: !0
|
|
@@ -1075,14 +1075,14 @@ const vn = [
|
|
|
1075
1075
|
value: 125430,
|
|
1076
1076
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1077
1077
|
isError: !0
|
|
1078
|
-
},
|
|
1078
|
+
}, Mt = {
|
|
1079
1079
|
variant: "standard",
|
|
1080
1080
|
label: "Total Revenue",
|
|
1081
1081
|
value: null,
|
|
1082
1082
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1083
1083
|
isEmpty: !0,
|
|
1084
1084
|
subtitle: "No data"
|
|
1085
|
-
},
|
|
1085
|
+
}, Pt = {
|
|
1086
1086
|
variant: "standard",
|
|
1087
1087
|
label: "Total Revenue",
|
|
1088
1088
|
value: 125430,
|
|
@@ -1090,7 +1090,7 @@ const vn = [
|
|
|
1090
1090
|
trend: { value: 12.5, direction: "up" },
|
|
1091
1091
|
subtitle: "MTD",
|
|
1092
1092
|
isStale: !0
|
|
1093
|
-
},
|
|
1093
|
+
}, It = {
|
|
1094
1094
|
variant: "sparkline",
|
|
1095
1095
|
label: "Daily Orders",
|
|
1096
1096
|
value: 847,
|
|
@@ -1099,7 +1099,7 @@ const vn = [
|
|
|
1099
1099
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
1100
1100
|
accentColor: "#6366f1",
|
|
1101
1101
|
isStale: !0
|
|
1102
|
-
},
|
|
1102
|
+
}, Et = {
|
|
1103
1103
|
variant: "donut",
|
|
1104
1104
|
label: "Order Fill Rate",
|
|
1105
1105
|
value: 78,
|
|
@@ -1110,14 +1110,14 @@ const vn = [
|
|
|
1110
1110
|
donutMax: 100,
|
|
1111
1111
|
accentColor: "#10b981",
|
|
1112
1112
|
isStale: !0
|
|
1113
|
-
},
|
|
1114
|
-
xt,
|
|
1115
|
-
Tt,
|
|
1113
|
+
}, Sn = [
|
|
1116
1114
|
Rt,
|
|
1115
|
+
Tt,
|
|
1117
1116
|
Mt,
|
|
1118
1117
|
Pt,
|
|
1119
|
-
It
|
|
1120
|
-
|
|
1118
|
+
It,
|
|
1119
|
+
Et
|
|
1120
|
+
], kn = {
|
|
1121
1121
|
variant: "sparkline",
|
|
1122
1122
|
label: "Daily Orders",
|
|
1123
1123
|
value: 847,
|
|
@@ -1140,7 +1140,7 @@ const vn = [
|
|
|
1140
1140
|
59
|
|
1141
1141
|
],
|
|
1142
1142
|
accentColor: "#6366f1"
|
|
1143
|
-
},
|
|
1143
|
+
}, Dn = {
|
|
1144
1144
|
variant: "sparkline",
|
|
1145
1145
|
label: "New Customers",
|
|
1146
1146
|
value: 23,
|
|
@@ -1179,21 +1179,21 @@ const vn = [
|
|
|
1179
1179
|
19
|
|
1180
1180
|
],
|
|
1181
1181
|
accentColor: "#10b981"
|
|
1182
|
-
},
|
|
1182
|
+
}, xn = {
|
|
1183
1183
|
variant: "standard",
|
|
1184
1184
|
label: "Total Revenue",
|
|
1185
1185
|
value: 125430,
|
|
1186
1186
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1187
1187
|
trend: { value: 12.5, direction: "up" },
|
|
1188
1188
|
subtitle: "MTD"
|
|
1189
|
-
},
|
|
1189
|
+
}, Rn = {
|
|
1190
1190
|
variant: "standard",
|
|
1191
1191
|
label: "Returns",
|
|
1192
1192
|
value: 3280,
|
|
1193
1193
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
1194
1194
|
trend: { value: -8.3, direction: "down" },
|
|
1195
1195
|
subtitle: "MTD"
|
|
1196
|
-
},
|
|
1196
|
+
}, Tn = {
|
|
1197
1197
|
variant: "standard",
|
|
1198
1198
|
label: "Avg Order Value",
|
|
1199
1199
|
value: 487,
|
|
@@ -1201,7 +1201,7 @@ const vn = [
|
|
|
1201
1201
|
trend: { value: 0, direction: "flat" },
|
|
1202
1202
|
subtitle: "QTD"
|
|
1203
1203
|
};
|
|
1204
|
-
function
|
|
1204
|
+
function $e({
|
|
1205
1205
|
open: e,
|
|
1206
1206
|
onDismiss: t,
|
|
1207
1207
|
anchorRef: n,
|
|
@@ -1211,23 +1211,23 @@ function Oe({
|
|
|
1211
1211
|
onCreatePage: o,
|
|
1212
1212
|
onManagePages: l
|
|
1213
1213
|
}) {
|
|
1214
|
-
const
|
|
1215
|
-
(
|
|
1216
|
-
s(
|
|
1214
|
+
const m = C(
|
|
1215
|
+
(u) => {
|
|
1216
|
+
s(u), t();
|
|
1217
1217
|
},
|
|
1218
1218
|
[s, t]
|
|
1219
|
-
),
|
|
1220
|
-
(
|
|
1221
|
-
(
|
|
1219
|
+
), c = C(
|
|
1220
|
+
(u, p) => {
|
|
1221
|
+
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), m(u));
|
|
1222
1222
|
},
|
|
1223
|
-
[
|
|
1224
|
-
),
|
|
1223
|
+
[m]
|
|
1224
|
+
), d = C(() => {
|
|
1225
1225
|
o(), t();
|
|
1226
1226
|
}, [o, t]), h = C(() => {
|
|
1227
1227
|
l(), t();
|
|
1228
1228
|
}, [l, t]);
|
|
1229
|
-
return /* @__PURE__ */
|
|
1230
|
-
|
|
1229
|
+
return /* @__PURE__ */ y(
|
|
1230
|
+
it,
|
|
1231
1231
|
{
|
|
1232
1232
|
definition: {
|
|
1233
1233
|
placement: "bottom-end",
|
|
@@ -1240,37 +1240,37 @@ function Oe({
|
|
|
1240
1240
|
anchorRef: n,
|
|
1241
1241
|
className: "gloss-page-dropdown",
|
|
1242
1242
|
children: [
|
|
1243
|
-
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((
|
|
1244
|
-
const
|
|
1245
|
-
return /* @__PURE__ */
|
|
1243
|
+
/* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
|
|
1244
|
+
const p = u.id === i;
|
|
1245
|
+
return /* @__PURE__ */ y(
|
|
1246
1246
|
"li",
|
|
1247
1247
|
{
|
|
1248
1248
|
role: "menuitemradio",
|
|
1249
|
-
"aria-checked":
|
|
1250
|
-
"aria-current":
|
|
1249
|
+
"aria-checked": p,
|
|
1250
|
+
"aria-current": p ? "page" : void 0,
|
|
1251
1251
|
tabIndex: 0,
|
|
1252
|
-
className: `gloss-page-dropdown__item${
|
|
1253
|
-
onClick: () => u
|
|
1254
|
-
onKeyDown: (
|
|
1252
|
+
className: `gloss-page-dropdown__item${p ? " gloss-page-dropdown__item--active" : ""}`,
|
|
1253
|
+
onClick: () => m(u.id),
|
|
1254
|
+
onKeyDown: (w) => c(u.id, w),
|
|
1255
1255
|
children: [
|
|
1256
1256
|
/* @__PURE__ */ r(
|
|
1257
1257
|
"span",
|
|
1258
1258
|
{
|
|
1259
|
-
className: `gloss-page-dropdown__dot${
|
|
1259
|
+
className: `gloss-page-dropdown__dot${p ? " gloss-page-dropdown__dot--active" : ""}`
|
|
1260
1260
|
}
|
|
1261
1261
|
),
|
|
1262
1262
|
/* @__PURE__ */ r(
|
|
1263
1263
|
"span",
|
|
1264
1264
|
{
|
|
1265
|
-
className: `gloss-page-dropdown__name${
|
|
1266
|
-
children:
|
|
1265
|
+
className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
1266
|
+
children: u.name
|
|
1267
1267
|
}
|
|
1268
1268
|
),
|
|
1269
|
-
|
|
1270
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children:
|
|
1269
|
+
u.icon && /* @__PURE__ */ r("span", { className: "gloss-page-dropdown__icon", children: u.icon }),
|
|
1270
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
|
|
1271
1271
|
]
|
|
1272
1272
|
},
|
|
1273
|
-
|
|
1273
|
+
u.id
|
|
1274
1274
|
);
|
|
1275
1275
|
}) }),
|
|
1276
1276
|
/* @__PURE__ */ r("hr", { className: "gloss-page-dropdown__separator" }),
|
|
@@ -1279,7 +1279,7 @@ function Oe({
|
|
|
1279
1279
|
{
|
|
1280
1280
|
role: "menuitem",
|
|
1281
1281
|
className: "gloss-page-dropdown__action",
|
|
1282
|
-
onClick:
|
|
1282
|
+
onClick: d,
|
|
1283
1283
|
children: "+ New page"
|
|
1284
1284
|
}
|
|
1285
1285
|
),
|
|
@@ -1297,8 +1297,8 @@ function Oe({
|
|
|
1297
1297
|
}
|
|
1298
1298
|
);
|
|
1299
1299
|
}
|
|
1300
|
-
|
|
1301
|
-
const
|
|
1300
|
+
$e.displayName = "PageDropdown";
|
|
1301
|
+
const At = function({
|
|
1302
1302
|
currentIndex: t,
|
|
1303
1303
|
total: n,
|
|
1304
1304
|
pages: a,
|
|
@@ -1306,23 +1306,23 @@ const Et = function({
|
|
|
1306
1306
|
onCreatePage: s,
|
|
1307
1307
|
onManagePages: o,
|
|
1308
1308
|
maskRadius: l = "var(--gloss-radius-md)",
|
|
1309
|
-
displayMode:
|
|
1310
|
-
activePage:
|
|
1309
|
+
displayMode: m = "count",
|
|
1310
|
+
activePage: c
|
|
1311
1311
|
}) {
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1314
|
-
}, []),
|
|
1315
|
-
|
|
1312
|
+
const d = P(null), [h, u] = I(!1), p = C(() => {
|
|
1313
|
+
u((b) => !b);
|
|
1314
|
+
}, []), w = C(() => {
|
|
1315
|
+
u(!1);
|
|
1316
1316
|
}, []), k = a[t]?.id ?? "";
|
|
1317
|
-
return /* @__PURE__ */
|
|
1317
|
+
return /* @__PURE__ */ y(
|
|
1318
1318
|
"div",
|
|
1319
1319
|
{
|
|
1320
1320
|
className: "gloss-page-chip",
|
|
1321
|
-
ref:
|
|
1322
|
-
style:
|
|
1321
|
+
ref: d,
|
|
1322
|
+
style: m === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
|
|
1323
1323
|
"data-page-chip": !0,
|
|
1324
1324
|
children: [
|
|
1325
|
-
|
|
1325
|
+
m !== "name" && /* @__PURE__ */ r(
|
|
1326
1326
|
"div",
|
|
1327
1327
|
{
|
|
1328
1328
|
className: "gloss-page-chip__nuzzle",
|
|
@@ -1332,15 +1332,15 @@ const Et = function({
|
|
|
1332
1332
|
/* @__PURE__ */ r(
|
|
1333
1333
|
"button",
|
|
1334
1334
|
{
|
|
1335
|
-
className: `gloss-page-chip__trigger${
|
|
1335
|
+
className: `gloss-page-chip__trigger${m === "name" ? " gloss-page-chip__trigger--name" : ""}`,
|
|
1336
1336
|
"aria-haspopup": "menu",
|
|
1337
1337
|
"aria-expanded": h,
|
|
1338
|
-
"aria-label":
|
|
1339
|
-
onClick:
|
|
1340
|
-
children:
|
|
1341
|
-
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children:
|
|
1338
|
+
"aria-label": m === "name" ? `${c ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
|
|
1339
|
+
onClick: p,
|
|
1340
|
+
children: m === "name" ? /* @__PURE__ */ y($, { children: [
|
|
1341
|
+
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: c ?? "" }),
|
|
1342
1342
|
/* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
|
|
1343
|
-
] }) : /* @__PURE__ */
|
|
1343
|
+
] }) : /* @__PURE__ */ y($, { children: [
|
|
1344
1344
|
t + 1,
|
|
1345
1345
|
" / ",
|
|
1346
1346
|
n
|
|
@@ -1348,11 +1348,11 @@ const Et = function({
|
|
|
1348
1348
|
}
|
|
1349
1349
|
),
|
|
1350
1350
|
/* @__PURE__ */ r(
|
|
1351
|
-
|
|
1351
|
+
$e,
|
|
1352
1352
|
{
|
|
1353
1353
|
open: h,
|
|
1354
|
-
onDismiss:
|
|
1355
|
-
anchorRef:
|
|
1354
|
+
onDismiss: w,
|
|
1355
|
+
anchorRef: d,
|
|
1356
1356
|
pages: a,
|
|
1357
1357
|
activePageId: k,
|
|
1358
1358
|
onPageChange: i,
|
|
@@ -1364,8 +1364,8 @@ const Et = function({
|
|
|
1364
1364
|
}
|
|
1365
1365
|
);
|
|
1366
1366
|
};
|
|
1367
|
-
|
|
1368
|
-
const
|
|
1367
|
+
At.displayName = "PageChip";
|
|
1368
|
+
const Mn = [
|
|
1369
1369
|
{
|
|
1370
1370
|
id: "ORD-1001",
|
|
1371
1371
|
orderNumber: "ORD-1001",
|
|
@@ -1498,7 +1498,7 @@ const kn = [
|
|
|
1498
1498
|
date: "2026-03-01",
|
|
1499
1499
|
skuCount: 9
|
|
1500
1500
|
}
|
|
1501
|
-
],
|
|
1501
|
+
], Pn = [
|
|
1502
1502
|
{
|
|
1503
1503
|
id: "ITEM-001",
|
|
1504
1504
|
sku: "PB-4520",
|
|
@@ -1635,13 +1635,13 @@ const kn = [
|
|
|
1635
1635
|
function me(e) {
|
|
1636
1636
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function ze(e) {
|
|
1639
1639
|
return e.toLocaleString("en-US");
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function Be(e) {
|
|
1642
1642
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1643
1643
|
}
|
|
1644
|
-
const J = F.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"),
|
|
1644
|
+
const J = F.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), In = [
|
|
1645
1645
|
{
|
|
1646
1646
|
field: "id",
|
|
1647
1647
|
headerName: "Order",
|
|
@@ -1671,7 +1671,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1671
1671
|
align: "right",
|
|
1672
1672
|
headerAlign: "right",
|
|
1673
1673
|
cellClassName: "gloss-tabular-nums",
|
|
1674
|
-
renderCell: ({ row: e }) => e.skuCount ?
|
|
1674
|
+
renderCell: ({ row: e }) => e.skuCount ? ze(e.skuCount) : J
|
|
1675
1675
|
},
|
|
1676
1676
|
{
|
|
1677
1677
|
field: "total",
|
|
@@ -1691,9 +1691,9 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1691
1691
|
align: "right",
|
|
1692
1692
|
headerAlign: "right",
|
|
1693
1693
|
cellClassName: "gloss-tabular-nums",
|
|
1694
|
-
renderCell: ({ row: e }) => e.date ?
|
|
1694
|
+
renderCell: ({ row: e }) => e.date ? Be(e.date) : ""
|
|
1695
1695
|
}
|
|
1696
|
-
],
|
|
1696
|
+
], En = [
|
|
1697
1697
|
{
|
|
1698
1698
|
field: "sku",
|
|
1699
1699
|
headerName: "Item ID",
|
|
@@ -1735,7 +1735,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1735
1735
|
align: "right",
|
|
1736
1736
|
headerAlign: "right",
|
|
1737
1737
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1738
|
-
renderCell: ({ row: e }) => e.quantity ?
|
|
1738
|
+
renderCell: ({ row: e }) => e.quantity ? ze(e.quantity) : J
|
|
1739
1739
|
},
|
|
1740
1740
|
{
|
|
1741
1741
|
field: "total",
|
|
@@ -1755,24 +1755,24 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1755
1755
|
align: "right",
|
|
1756
1756
|
headerAlign: "right",
|
|
1757
1757
|
cellClassName: "gloss-tabular-nums",
|
|
1758
|
-
renderCell: ({ row: e }) => e.lastDate ?
|
|
1758
|
+
renderCell: ({ row: e }) => e.lastDate ? Be(e.lastDate) : ""
|
|
1759
1759
|
}
|
|
1760
|
-
],
|
|
1760
|
+
], Ft = [
|
|
1761
1761
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1762
1762
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1763
1763
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1764
1764
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1765
1765
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1766
|
-
],
|
|
1766
|
+
], Ot = [
|
|
1767
1767
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1768
1768
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1769
1769
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1770
1770
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1771
1771
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1772
1772
|
], ie = (e) => {
|
|
1773
|
-
},
|
|
1773
|
+
}, Lt = (e) => {
|
|
1774
1774
|
}, Ne = (e, t) => {
|
|
1775
|
-
},
|
|
1775
|
+
}, Ke = {
|
|
1776
1776
|
vizState: {
|
|
1777
1777
|
type: "orders",
|
|
1778
1778
|
quant: "$",
|
|
@@ -1781,16 +1781,16 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1781
1781
|
timeFrame: "MTD"
|
|
1782
1782
|
},
|
|
1783
1783
|
onTypeChange: ie,
|
|
1784
|
-
onQuantChange:
|
|
1784
|
+
onQuantChange: Lt,
|
|
1785
1785
|
onEntityTypeChange: ie,
|
|
1786
1786
|
onEntitySelect: Ne,
|
|
1787
1787
|
onItemSelect: Ne,
|
|
1788
1788
|
onTimeFrameChange: ie,
|
|
1789
1789
|
userType: "sales-agency",
|
|
1790
|
-
entityFilterOptions:
|
|
1791
|
-
itemFilterOptions:
|
|
1792
|
-
},
|
|
1793
|
-
...
|
|
1790
|
+
entityFilterOptions: Ft,
|
|
1791
|
+
itemFilterOptions: Ot
|
|
1792
|
+
}, An = {
|
|
1793
|
+
...Ke,
|
|
1794
1794
|
vizState: {
|
|
1795
1795
|
type: "items",
|
|
1796
1796
|
quant: "$",
|
|
@@ -1798,8 +1798,8 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1798
1798
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1799
1799
|
timeFrame: "YTD"
|
|
1800
1800
|
}
|
|
1801
|
-
},
|
|
1802
|
-
...
|
|
1801
|
+
}, Fn = {
|
|
1802
|
+
...Ke,
|
|
1803
1803
|
vizState: {
|
|
1804
1804
|
type: "orders",
|
|
1805
1805
|
quant: "#",
|
|
@@ -1811,7 +1811,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1811
1811
|
entityFilterOptions: [
|
|
1812
1812
|
{ id: "customers", label: "Customers" }
|
|
1813
1813
|
]
|
|
1814
|
-
},
|
|
1814
|
+
}, $t = [
|
|
1815
1815
|
{
|
|
1816
1816
|
id: "recent-orders",
|
|
1817
1817
|
label: "Recent Orders",
|
|
@@ -1857,7 +1857,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1857
1857
|
routeKey: "customer.profile",
|
|
1858
1858
|
subtitle: "Opens in RepTime"
|
|
1859
1859
|
}
|
|
1860
|
-
],
|
|
1860
|
+
], zt = [
|
|
1861
1861
|
{
|
|
1862
1862
|
id: "order-items",
|
|
1863
1863
|
label: "Items in Order",
|
|
@@ -1886,7 +1886,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1886
1886
|
cellKinds: ["orderId"],
|
|
1887
1887
|
graphType: "timeline"
|
|
1888
1888
|
}
|
|
1889
|
-
],
|
|
1889
|
+
], Bt = [
|
|
1890
1890
|
{
|
|
1891
1891
|
id: "graph-metric",
|
|
1892
1892
|
label: "Graph This Metric",
|
|
@@ -1914,14 +1914,14 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1914
1914
|
cellKinds: ["numeric"],
|
|
1915
1915
|
tabType: "orders"
|
|
1916
1916
|
}
|
|
1917
|
-
],
|
|
1918
|
-
entityName:
|
|
1919
|
-
orderId:
|
|
1920
|
-
numeric:
|
|
1921
|
-
},
|
|
1917
|
+
], On = {
|
|
1918
|
+
entityName: $t,
|
|
1919
|
+
orderId: zt,
|
|
1920
|
+
numeric: Bt
|
|
1921
|
+
}, Ln = [
|
|
1922
1922
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1923
1923
|
/* @__PURE__ */ new Date()
|
|
1924
|
-
],
|
|
1924
|
+
], $n = {
|
|
1925
1925
|
rangeA: [
|
|
1926
1926
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1927
1927
|
/* @__PURE__ */ new Date()
|
|
@@ -1934,7 +1934,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1934
1934
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1935
1935
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1936
1936
|
]
|
|
1937
|
-
},
|
|
1937
|
+
}, zn = {
|
|
1938
1938
|
version: 4,
|
|
1939
1939
|
lastPreset: "mtd",
|
|
1940
1940
|
pinnedPreset: "mtd",
|
|
@@ -1942,7 +1942,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1942
1942
|
rangeCount: 1,
|
|
1943
1943
|
lastPresetB: null,
|
|
1944
1944
|
lastPresetC: null
|
|
1945
|
-
},
|
|
1945
|
+
}, Bn = [
|
|
1946
1946
|
{
|
|
1947
1947
|
id: "atlanta-jan",
|
|
1948
1948
|
label: "Atlanta Market",
|
|
@@ -1964,7 +1964,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1964
1964
|
endDate: new Date(2026, 3, 22),
|
|
1965
1965
|
location: "Chicago, IL"
|
|
1966
1966
|
}
|
|
1967
|
-
],
|
|
1967
|
+
], Kn = [
|
|
1968
1968
|
{
|
|
1969
1969
|
id: "custom-regional-1",
|
|
1970
1970
|
label: "Southeast Regional Expo",
|
|
@@ -1981,7 +1981,7 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1981
1981
|
location: "Portland, OR",
|
|
1982
1982
|
isCustom: !0
|
|
1983
1983
|
}
|
|
1984
|
-
],
|
|
1984
|
+
], Gn = [
|
|
1985
1985
|
{
|
|
1986
1986
|
id: "atlanta-jan",
|
|
1987
1987
|
label: "Atlanta Market",
|
|
@@ -1998,36 +1998,36 @@ const J = F.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1998
1998
|
location: "New York, NY",
|
|
1999
1999
|
active: !0
|
|
2000
2000
|
}
|
|
2001
|
-
],
|
|
2001
|
+
], Hn = [
|
|
2002
2002
|
{ id: "7d", label: "7D" },
|
|
2003
2003
|
{ id: "30d", label: "30D" },
|
|
2004
2004
|
{ id: "60d", label: "60D" },
|
|
2005
2005
|
{ id: "90d", label: "90D" }
|
|
2006
|
-
],
|
|
2006
|
+
], Wn = [
|
|
2007
2007
|
{ id: "mtd", label: "MTD" },
|
|
2008
2008
|
{ id: "qtd", label: "QTD" },
|
|
2009
2009
|
{ id: "ytd", label: "YTD" },
|
|
2010
2010
|
{ id: "lytd", label: "LYTD" }
|
|
2011
|
-
],
|
|
2011
|
+
], Kt = {
|
|
2012
2012
|
timeframe: "Time Frame",
|
|
2013
2013
|
threshold: "Thresholds",
|
|
2014
2014
|
slots: "Slots",
|
|
2015
2015
|
size: "Size",
|
|
2016
2016
|
color: "Color",
|
|
2017
2017
|
pinned: "Pinned"
|
|
2018
|
-
},
|
|
2019
|
-
timeframe:
|
|
2020
|
-
threshold:
|
|
2021
|
-
slots:
|
|
2022
|
-
size:
|
|
2023
|
-
color:
|
|
2024
|
-
pinned:
|
|
2018
|
+
}, Gt = {
|
|
2019
|
+
timeframe: ot,
|
|
2020
|
+
threshold: lt,
|
|
2021
|
+
slots: ct,
|
|
2022
|
+
size: dt,
|
|
2023
|
+
color: ut,
|
|
2024
|
+
pinned: mt
|
|
2025
2025
|
};
|
|
2026
2026
|
function Se(...e) {
|
|
2027
2027
|
return e.filter(Boolean).join(" ");
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2030
|
-
const [e, t] =
|
|
2029
|
+
function Ht() {
|
|
2030
|
+
const [e, t] = I(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
2031
2031
|
return A(() => {
|
|
2032
2032
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
2033
2033
|
const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (i) => t(i.matches);
|
|
@@ -2036,42 +2036,42 @@ function Gt() {
|
|
|
2036
2036
|
});
|
|
2037
2037
|
}, []), e;
|
|
2038
2038
|
}
|
|
2039
|
-
const
|
|
2039
|
+
const Wt = ({
|
|
2040
2040
|
dimensions: e,
|
|
2041
2041
|
onDimensionSelect: t,
|
|
2042
2042
|
activeDimension: n,
|
|
2043
2043
|
ariaCardTypeLabel: a,
|
|
2044
2044
|
className: i
|
|
2045
2045
|
}) => {
|
|
2046
|
-
const s = P(null), o = P([]), l =
|
|
2047
|
-
if (
|
|
2048
|
-
const
|
|
2049
|
-
const
|
|
2046
|
+
const s = P(null), o = P([]), l = Ht(), m = re(() => Array.from(e), [e]);
|
|
2047
|
+
if (m.length === 0) return null;
|
|
2048
|
+
const c = a ? `Configure ${a}: choose a dimension` : void 0, d = l ? "10ms" : "200ms", h = (u, p) => {
|
|
2049
|
+
const w = m.length - 1, k = (f) => {
|
|
2050
2050
|
const b = o.current[f];
|
|
2051
2051
|
b && b.focus();
|
|
2052
2052
|
};
|
|
2053
|
-
switch (
|
|
2053
|
+
switch (u.key) {
|
|
2054
2054
|
case "ArrowRight":
|
|
2055
2055
|
case "ArrowDown": {
|
|
2056
|
-
|
|
2056
|
+
u.preventDefault(), k(p === w ? 0 : p + 1);
|
|
2057
2057
|
break;
|
|
2058
2058
|
}
|
|
2059
2059
|
case "ArrowLeft":
|
|
2060
2060
|
case "ArrowUp": {
|
|
2061
|
-
|
|
2061
|
+
u.preventDefault(), k(p === 0 ? w : p - 1);
|
|
2062
2062
|
break;
|
|
2063
2063
|
}
|
|
2064
2064
|
case "Home": {
|
|
2065
|
-
|
|
2065
|
+
u.preventDefault(), k(0);
|
|
2066
2066
|
break;
|
|
2067
2067
|
}
|
|
2068
2068
|
case "End": {
|
|
2069
|
-
|
|
2069
|
+
u.preventDefault(), k(w);
|
|
2070
2070
|
break;
|
|
2071
2071
|
}
|
|
2072
2072
|
case "Enter":
|
|
2073
2073
|
case " ": {
|
|
2074
|
-
|
|
2074
|
+
u.preventDefault(), t(m[p]);
|
|
2075
2075
|
break;
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
@@ -2081,49 +2081,49 @@ const Ht = ({
|
|
|
2081
2081
|
{
|
|
2082
2082
|
ref: s,
|
|
2083
2083
|
role: "group",
|
|
2084
|
-
"aria-label":
|
|
2084
|
+
"aria-label": c,
|
|
2085
2085
|
className: Se("gloss-reconfig-backside-buttons", i),
|
|
2086
2086
|
style: {
|
|
2087
2087
|
// Expose the reduced-motion-resolved duration as a CSS custom prop
|
|
2088
2088
|
// so the SCSS transition rule can consume it without a nested media
|
|
2089
2089
|
// query in the JS. Also surfaces the value for the unit test.
|
|
2090
|
-
"--gloss-reconfig-backside-buttons-transition-duration":
|
|
2090
|
+
"--gloss-reconfig-backside-buttons-transition-duration": d
|
|
2091
2091
|
},
|
|
2092
|
-
children:
|
|
2093
|
-
const
|
|
2094
|
-
return /* @__PURE__ */
|
|
2092
|
+
children: m.map((u, p) => {
|
|
2093
|
+
const w = Gt[u], k = n === u;
|
|
2094
|
+
return /* @__PURE__ */ y(
|
|
2095
2095
|
"button",
|
|
2096
2096
|
{
|
|
2097
2097
|
ref: (f) => {
|
|
2098
|
-
o.current[
|
|
2098
|
+
o.current[p] = f;
|
|
2099
2099
|
},
|
|
2100
2100
|
type: "button",
|
|
2101
|
-
"data-dimension":
|
|
2101
|
+
"data-dimension": u,
|
|
2102
2102
|
className: Se(
|
|
2103
2103
|
"gloss-reconfig-backside-buttons__button",
|
|
2104
2104
|
k && "gloss-reconfig-backside-buttons__button--active"
|
|
2105
2105
|
),
|
|
2106
2106
|
"aria-current": k ? "true" : void 0,
|
|
2107
|
-
onClick: () => t(
|
|
2108
|
-
onKeyDown: (f) => h(f,
|
|
2107
|
+
onClick: () => t(u),
|
|
2108
|
+
onKeyDown: (f) => h(f, p),
|
|
2109
2109
|
children: [
|
|
2110
2110
|
/* @__PURE__ */ r(
|
|
2111
|
-
|
|
2111
|
+
w,
|
|
2112
2112
|
{
|
|
2113
2113
|
className: "gloss-reconfig-backside-buttons__button-icon",
|
|
2114
2114
|
"aria-hidden": "true"
|
|
2115
2115
|
}
|
|
2116
2116
|
),
|
|
2117
|
-
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children:
|
|
2117
|
+
/* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Kt[u] })
|
|
2118
2118
|
]
|
|
2119
2119
|
},
|
|
2120
|
-
|
|
2120
|
+
u
|
|
2121
2121
|
);
|
|
2122
2122
|
})
|
|
2123
2123
|
}
|
|
2124
2124
|
);
|
|
2125
2125
|
};
|
|
2126
|
-
|
|
2126
|
+
Wt.displayName = "ReconfigBacksideButtons";
|
|
2127
2127
|
function z(e, t) {
|
|
2128
2128
|
return {
|
|
2129
2129
|
id: e,
|
|
@@ -2150,7 +2150,7 @@ function ke(e, t) {
|
|
|
2150
2150
|
colSpan: 2
|
|
2151
2151
|
};
|
|
2152
2152
|
}
|
|
2153
|
-
const
|
|
2153
|
+
const Vn = [
|
|
2154
2154
|
z("total-revenue", "Total Revenue"),
|
|
2155
2155
|
z("total-orders", "Total Orders"),
|
|
2156
2156
|
ke("revenue-trend", "Revenue Trend (2x)"),
|
|
@@ -2161,21 +2161,21 @@ const Bn = [
|
|
|
2161
2161
|
z("repeat-rate", "Repeat Rate"),
|
|
2162
2162
|
z("open-orders", "Open Orders"),
|
|
2163
2163
|
z("shipped-orders", "Shipped Orders")
|
|
2164
|
-
],
|
|
2164
|
+
], jn = {
|
|
2165
2165
|
columns: 6,
|
|
2166
2166
|
rowHeight: 120,
|
|
2167
2167
|
gap: 15,
|
|
2168
2168
|
maxRows: 3,
|
|
2169
2169
|
currentPage: 0,
|
|
2170
2170
|
totalPages: 1
|
|
2171
|
-
},
|
|
2171
|
+
}, Un = {
|
|
2172
2172
|
columns: 9,
|
|
2173
2173
|
rowHeight: 120,
|
|
2174
2174
|
gap: 15,
|
|
2175
2175
|
maxRows: 3,
|
|
2176
2176
|
currentPage: 0,
|
|
2177
2177
|
totalPages: 2
|
|
2178
|
-
},
|
|
2178
|
+
}, Yn = {
|
|
2179
2179
|
columns: 12,
|
|
2180
2180
|
rowHeight: 120,
|
|
2181
2181
|
gap: 15,
|
|
@@ -2186,7 +2186,7 @@ const Bn = [
|
|
|
2186
2186
|
function oe(e) {
|
|
2187
2187
|
return F.createElement("span", { style: { fontSize: 14 } }, e);
|
|
2188
2188
|
}
|
|
2189
|
-
const
|
|
2189
|
+
const Zn = [
|
|
2190
2190
|
{
|
|
2191
2191
|
id: "all-orders",
|
|
2192
2192
|
type: "orders",
|
|
@@ -2209,7 +2209,7 @@ const Wn = [
|
|
|
2209
2209
|
icon: oe("🚚"),
|
|
2210
2210
|
closable: !0
|
|
2211
2211
|
}
|
|
2212
|
-
],
|
|
2212
|
+
], qn = [
|
|
2213
2213
|
{
|
|
2214
2214
|
id: "orders-main",
|
|
2215
2215
|
type: "orders",
|
|
@@ -2235,7 +2235,7 @@ const Wn = [
|
|
|
2235
2235
|
name: "Customers",
|
|
2236
2236
|
closable: !0
|
|
2237
2237
|
}
|
|
2238
|
-
],
|
|
2238
|
+
], Qn = [
|
|
2239
2239
|
{
|
|
2240
2240
|
id: "only-tab",
|
|
2241
2241
|
type: "orders",
|
|
@@ -2243,7 +2243,7 @@ const Wn = [
|
|
|
2243
2243
|
closable: !1,
|
|
2244
2244
|
autoCreated: !0
|
|
2245
2245
|
}
|
|
2246
|
-
],
|
|
2246
|
+
], Xn = [
|
|
2247
2247
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
2248
2248
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
2249
2249
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -2255,7 +2255,7 @@ const Wn = [
|
|
|
2255
2255
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
2256
2256
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
2257
2257
|
];
|
|
2258
|
-
function
|
|
2258
|
+
function pe(e) {
|
|
2259
2259
|
switch (e) {
|
|
2260
2260
|
case "wide":
|
|
2261
2261
|
return { cols: 2, rows: 1 };
|
|
@@ -2266,15 +2266,15 @@ function ge(e) {
|
|
|
2266
2266
|
return { cols: 1, rows: 1 };
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function Vt(e) {
|
|
2270
2270
|
let t = 0;
|
|
2271
2271
|
for (const a of e) {
|
|
2272
|
-
const i =
|
|
2272
|
+
const i = pe(a.size), s = a.gridPosition.col + i.cols - 1;
|
|
2273
2273
|
s > t && (t = s);
|
|
2274
2274
|
}
|
|
2275
2275
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
2276
2276
|
}
|
|
2277
|
-
const
|
|
2277
|
+
const jt = function(t) {
|
|
2278
2278
|
if (t.renderMode === "discrete")
|
|
2279
2279
|
return /* @__PURE__ */ r(
|
|
2280
2280
|
"div",
|
|
@@ -2282,7 +2282,7 @@ const Vt = function(t) {
|
|
|
2282
2282
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
2283
2283
|
style: { display: "contents" },
|
|
2284
2284
|
children: t.cards.map((i) => {
|
|
2285
|
-
const s =
|
|
2285
|
+
const s = pe(i.size);
|
|
2286
2286
|
return /* @__PURE__ */ r(
|
|
2287
2287
|
"div",
|
|
2288
2288
|
{
|
|
@@ -2299,7 +2299,7 @@ const Vt = function(t) {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
);
|
|
2301
2301
|
const { cards: n, composite: a } = t;
|
|
2302
|
-
return /* @__PURE__ */
|
|
2302
|
+
return /* @__PURE__ */ y(
|
|
2303
2303
|
"div",
|
|
2304
2304
|
{
|
|
2305
2305
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -2325,7 +2325,7 @@ const Vt = function(t) {
|
|
|
2325
2325
|
style: { background: a.accentColor }
|
|
2326
2326
|
}
|
|
2327
2327
|
),
|
|
2328
|
-
a?.label && /* @__PURE__ */
|
|
2328
|
+
a?.label && /* @__PURE__ */ y("div", { className: "gloss-metric-group__label", children: [
|
|
2329
2329
|
/* @__PURE__ */ r("span", { children: a.label }),
|
|
2330
2330
|
a?.trend && /* @__PURE__ */ r(
|
|
2331
2331
|
"span",
|
|
@@ -2343,10 +2343,10 @@ const Vt = function(t) {
|
|
|
2343
2343
|
style: {
|
|
2344
2344
|
display: "grid",
|
|
2345
2345
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
2346
|
-
gridTemplateColumns:
|
|
2346
|
+
gridTemplateColumns: Vt(n)
|
|
2347
2347
|
},
|
|
2348
2348
|
children: n.map((i) => {
|
|
2349
|
-
const s =
|
|
2349
|
+
const s = pe(i.size);
|
|
2350
2350
|
return /* @__PURE__ */ r(
|
|
2351
2351
|
"div",
|
|
2352
2352
|
{
|
|
@@ -2366,16 +2366,16 @@ const Vt = function(t) {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
);
|
|
2368
2368
|
};
|
|
2369
|
-
|
|
2370
|
-
const
|
|
2371
|
-
...
|
|
2369
|
+
jt.displayName = "MetricGroupContainer";
|
|
2370
|
+
const Ge = "resize.tuning.dev", Ut = {
|
|
2371
|
+
...Ct,
|
|
2372
2372
|
snapInPx: 60,
|
|
2373
2373
|
snapOutPx: 90
|
|
2374
|
-
}, V =
|
|
2375
|
-
function
|
|
2374
|
+
}, V = Ut;
|
|
2375
|
+
function Yt() {
|
|
2376
2376
|
if (typeof window > "u") return { ...V };
|
|
2377
2377
|
try {
|
|
2378
|
-
const e = window.localStorage.getItem(
|
|
2378
|
+
const e = window.localStorage.getItem(Ge);
|
|
2379
2379
|
if (!e) return { ...V };
|
|
2380
2380
|
const t = JSON.parse(e);
|
|
2381
2381
|
return !t || typeof t != "object" || Array.isArray(t) ? { ...V } : { ...V, ...t };
|
|
@@ -2383,12 +2383,12 @@ function Ut() {
|
|
|
2383
2383
|
return { ...V };
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2387
|
-
const [e, t] =
|
|
2386
|
+
function Zt() {
|
|
2387
|
+
const [e, t] = I(() => Yt());
|
|
2388
2388
|
A(() => {
|
|
2389
2389
|
if (!(typeof window > "u"))
|
|
2390
2390
|
try {
|
|
2391
|
-
window.localStorage.setItem(
|
|
2391
|
+
window.localStorage.setItem(Ge, JSON.stringify(e));
|
|
2392
2392
|
} catch {
|
|
2393
2393
|
}
|
|
2394
2394
|
}, [e]);
|
|
@@ -2407,7 +2407,7 @@ function Yt() {
|
|
|
2407
2407
|
}, []);
|
|
2408
2408
|
return { values: e, setValue: n, resetRow: a, resetAll: i };
|
|
2409
2409
|
}
|
|
2410
|
-
const
|
|
2410
|
+
const qt = [
|
|
2411
2411
|
{ key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
|
|
2412
2412
|
{ key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
|
|
2413
2413
|
{ key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
|
|
@@ -2418,11 +2418,11 @@ const Zt = [
|
|
|
2418
2418
|
{ key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
|
|
2419
2419
|
{ key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
|
|
2420
2420
|
];
|
|
2421
|
-
function
|
|
2421
|
+
function Qt(e, t) {
|
|
2422
2422
|
return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2425
|
-
return /* @__PURE__ */
|
|
2424
|
+
function Xt() {
|
|
2425
|
+
return /* @__PURE__ */ y(
|
|
2426
2426
|
"svg",
|
|
2427
2427
|
{
|
|
2428
2428
|
width: "14",
|
|
@@ -2441,14 +2441,14 @@ function Qt() {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
);
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function Jt({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
2445
2445
|
const s = C(
|
|
2446
2446
|
(o) => {
|
|
2447
2447
|
(o.key === "r" || o.key === "R") && (o.preventDefault(), a());
|
|
2448
2448
|
},
|
|
2449
2449
|
[a]
|
|
2450
2450
|
);
|
|
2451
|
-
return /* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ y(
|
|
2452
2452
|
"div",
|
|
2453
2453
|
{
|
|
2454
2454
|
className: `gloss-dev-tuning-panel__row${i ? " gloss-dev-tuning-panel__row--flash" : ""}`,
|
|
@@ -2456,8 +2456,8 @@ function Xt({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
|
2456
2456
|
onKeyDown: s,
|
|
2457
2457
|
children: [
|
|
2458
2458
|
/* @__PURE__ */ r("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
|
|
2459
|
-
/* @__PURE__ */
|
|
2460
|
-
|
|
2459
|
+
/* @__PURE__ */ y("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
|
|
2460
|
+
Qt(t, e.step),
|
|
2461
2461
|
e.unit ? ` ${e.unit}` : ""
|
|
2462
2462
|
] }),
|
|
2463
2463
|
/* @__PURE__ */ r(
|
|
@@ -2481,14 +2481,14 @@ function Xt({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
|
|
|
2481
2481
|
className: "gloss-dev-tuning-panel__reset",
|
|
2482
2482
|
"aria-label": `Reset ${e.label}`,
|
|
2483
2483
|
onClick: a,
|
|
2484
|
-
children: /* @__PURE__ */ r(
|
|
2484
|
+
children: /* @__PURE__ */ r(Xt, {})
|
|
2485
2485
|
}
|
|
2486
2486
|
)
|
|
2487
2487
|
]
|
|
2488
2488
|
}
|
|
2489
2489
|
);
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function ea() {
|
|
2492
2492
|
if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
|
|
2493
2493
|
try {
|
|
2494
2494
|
return new URLSearchParams(window.location.search).has("devtune");
|
|
@@ -2496,22 +2496,22 @@ function Jt() {
|
|
|
2496
2496
|
return !1;
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2500
|
-
return
|
|
2499
|
+
function ta(e = {}) {
|
|
2500
|
+
return ea() ? /* @__PURE__ */ r(aa, {}) : null;
|
|
2501
2501
|
}
|
|
2502
|
-
|
|
2503
|
-
function
|
|
2504
|
-
const e =
|
|
2505
|
-
l.current && clearTimeout(l.current), o(
|
|
2502
|
+
ta.displayName = "DevTuningPanel";
|
|
2503
|
+
function aa() {
|
|
2504
|
+
const e = Zt(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = I(null), l = P(null), m = C((u) => {
|
|
2505
|
+
l.current && clearTimeout(l.current), o(u), l.current = setTimeout(() => {
|
|
2506
2506
|
o(null), l.current = null;
|
|
2507
2507
|
}, 200);
|
|
2508
|
-
}, []),
|
|
2509
|
-
(
|
|
2510
|
-
n(
|
|
2508
|
+
}, []), c = C(
|
|
2509
|
+
(u, p) => {
|
|
2510
|
+
n(u, p), u === "snapInPx" && p > t.snapOutPx && (n("snapOutPx", p), m("snapOutPx"));
|
|
2511
2511
|
},
|
|
2512
|
-
[n, t.snapOutPx,
|
|
2513
|
-
),
|
|
2514
|
-
return /* @__PURE__ */
|
|
2512
|
+
[n, t.snapOutPx, m]
|
|
2513
|
+
), d = re(() => qt, []), h = st();
|
|
2514
|
+
return /* @__PURE__ */ y(
|
|
2515
2515
|
G.div,
|
|
2516
2516
|
{
|
|
2517
2517
|
className: "gloss-dev-tuning-panel",
|
|
@@ -2523,27 +2523,27 @@ function ta() {
|
|
|
2523
2523
|
dragControls: h,
|
|
2524
2524
|
dragMomentum: !1,
|
|
2525
2525
|
children: [
|
|
2526
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ y(
|
|
2527
2527
|
"div",
|
|
2528
2528
|
{
|
|
2529
2529
|
className: "gloss-dev-tuning-panel__header",
|
|
2530
|
-
onPointerDown: (
|
|
2530
|
+
onPointerDown: (u) => h.start(u),
|
|
2531
2531
|
children: [
|
|
2532
2532
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
|
|
2533
2533
|
/* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
|
|
2534
2534
|
]
|
|
2535
2535
|
}
|
|
2536
2536
|
),
|
|
2537
|
-
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children:
|
|
2538
|
-
|
|
2537
|
+
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: d.map((u) => /* @__PURE__ */ r(
|
|
2538
|
+
Jt,
|
|
2539
2539
|
{
|
|
2540
|
-
spec:
|
|
2541
|
-
value: t[
|
|
2542
|
-
onChange: (
|
|
2543
|
-
onReset: () => a(
|
|
2544
|
-
flashing: s ===
|
|
2540
|
+
spec: u,
|
|
2541
|
+
value: t[u.key],
|
|
2542
|
+
onChange: (p) => c(u.key, p),
|
|
2543
|
+
onReset: () => a(u.key),
|
|
2544
|
+
flashing: s === u.key
|
|
2545
2545
|
},
|
|
2546
|
-
|
|
2546
|
+
u.key
|
|
2547
2547
|
)) }),
|
|
2548
2548
|
/* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ r(
|
|
2549
2549
|
"button",
|
|
@@ -2558,7 +2558,7 @@ function ta() {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
);
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function Jn({
|
|
2562
2562
|
state: e,
|
|
2563
2563
|
originX: t,
|
|
2564
2564
|
originY: n,
|
|
@@ -2567,25 +2567,25 @@ function Yn({
|
|
|
2567
2567
|
minBoundaryX: s,
|
|
2568
2568
|
snapBoundariesX: o,
|
|
2569
2569
|
topY: l,
|
|
2570
|
-
bottomY:
|
|
2571
|
-
enterMs:
|
|
2572
|
-
exitMs:
|
|
2570
|
+
bottomY: m,
|
|
2571
|
+
enterMs: c = U.envelopeEnterMs,
|
|
2572
|
+
exitMs: d = U.envelopeExitMs,
|
|
2573
2573
|
className: h,
|
|
2574
|
-
style:
|
|
2574
|
+
style: u
|
|
2575
2575
|
}) {
|
|
2576
2576
|
if (e === "hidden") return null;
|
|
2577
|
-
const
|
|
2578
|
-
"--gloss-resize-envelope-enter-ms": `${
|
|
2579
|
-
"--gloss-resize-envelope-exit-ms": `${
|
|
2577
|
+
const p = Math.max(0, i - a), w = Math.max(0, m - l), k = {
|
|
2578
|
+
"--gloss-resize-envelope-enter-ms": `${c}ms`,
|
|
2579
|
+
"--gloss-resize-envelope-exit-ms": `${d}ms`,
|
|
2580
2580
|
"--gloss-resize-envelope-origin-x": `${t - a}px`,
|
|
2581
2581
|
"--gloss-resize-envelope-origin-y": `${n - l}px`,
|
|
2582
2582
|
left: a,
|
|
2583
2583
|
top: l,
|
|
2584
|
-
width:
|
|
2585
|
-
height:
|
|
2586
|
-
...
|
|
2584
|
+
width: p,
|
|
2585
|
+
height: w,
|
|
2586
|
+
...u
|
|
2587
2587
|
};
|
|
2588
|
-
return /* @__PURE__ */
|
|
2588
|
+
return /* @__PURE__ */ y(
|
|
2589
2589
|
"div",
|
|
2590
2590
|
{
|
|
2591
2591
|
className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, h].filter(Boolean).join(" "),
|
|
@@ -2615,7 +2615,7 @@ function Yn({
|
|
|
2615
2615
|
{
|
|
2616
2616
|
className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
|
|
2617
2617
|
"data-edge": "right",
|
|
2618
|
-
style: { left:
|
|
2618
|
+
style: { left: p - 1 }
|
|
2619
2619
|
}
|
|
2620
2620
|
),
|
|
2621
2621
|
o.filter((f) => f > s && f < i).map((f) => /* @__PURE__ */ r(
|
|
@@ -2631,7 +2631,7 @@ function Yn({
|
|
|
2631
2631
|
}
|
|
2632
2632
|
);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2634
|
+
function er({
|
|
2635
2635
|
density: e,
|
|
2636
2636
|
canAccept: t,
|
|
2637
2637
|
blocked: n = !1,
|
|
@@ -2640,14 +2640,14 @@ function Zn({
|
|
|
2640
2640
|
rejection: s = !1,
|
|
2641
2641
|
className: o,
|
|
2642
2642
|
children: l,
|
|
2643
|
-
...
|
|
2643
|
+
...m
|
|
2644
2644
|
}) {
|
|
2645
|
-
const
|
|
2645
|
+
const c = a != null ? { ...m.style, "--_proximity-opacity": String(a) } : m.style;
|
|
2646
2646
|
return /* @__PURE__ */ r(
|
|
2647
2647
|
"div",
|
|
2648
2648
|
{
|
|
2649
|
-
...
|
|
2650
|
-
style:
|
|
2649
|
+
...m,
|
|
2650
|
+
style: c,
|
|
2651
2651
|
"data-density": e,
|
|
2652
2652
|
"data-can-accept": t ? "true" : "false",
|
|
2653
2653
|
"data-blocked": n ? "true" : void 0,
|
|
@@ -2664,11 +2664,11 @@ function Zn({
|
|
|
2664
2664
|
}
|
|
2665
2665
|
);
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function na(e, t, n, a) {
|
|
2668
2668
|
const i = (e + n) / 2, s = Math.min(t, a) - 40;
|
|
2669
2669
|
return `M${e},${t} Q${i},${s} ${n},${a}`;
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function tr({
|
|
2672
2672
|
segments: e,
|
|
2673
2673
|
durationMs: t = U.spilloverArcDurationMs,
|
|
2674
2674
|
staggerMs: n = U.spilloverStaggerMs,
|
|
@@ -2688,7 +2688,7 @@ function qn({
|
|
|
2688
2688
|
{
|
|
2689
2689
|
"data-arc-id": s.id,
|
|
2690
2690
|
className: "gloss-spillover-arc__path",
|
|
2691
|
-
d:
|
|
2691
|
+
d: na(s.fromX, s.fromY, s.toX, s.toY),
|
|
2692
2692
|
style: {
|
|
2693
2693
|
animationDelay: `${o * n}ms`,
|
|
2694
2694
|
animationDuration: `${t}ms`
|
|
@@ -2699,7 +2699,7 @@ function qn({
|
|
|
2699
2699
|
}
|
|
2700
2700
|
);
|
|
2701
2701
|
}
|
|
2702
|
-
function
|
|
2702
|
+
function ar({
|
|
2703
2703
|
state: e,
|
|
2704
2704
|
staggerIndex: t = 0,
|
|
2705
2705
|
fadeInMs: n = U.sectionDividerFadeInMs,
|
|
@@ -2708,9 +2708,9 @@ function Qn({
|
|
|
2708
2708
|
variant: s = "dashed",
|
|
2709
2709
|
className: o,
|
|
2710
2710
|
style: l,
|
|
2711
|
-
...
|
|
2711
|
+
...m
|
|
2712
2712
|
}) {
|
|
2713
|
-
const
|
|
2713
|
+
const c = {
|
|
2714
2714
|
"--gloss-section-divider-fade-in-ms": `${n}ms`,
|
|
2715
2715
|
"--gloss-section-divider-fade-out-ms": `${a}ms`,
|
|
2716
2716
|
"--gloss-section-divider-stagger-delay": `${t * i}ms`,
|
|
@@ -2719,7 +2719,7 @@ function Qn({
|
|
|
2719
2719
|
return /* @__PURE__ */ r(
|
|
2720
2720
|
"div",
|
|
2721
2721
|
{
|
|
2722
|
-
...
|
|
2722
|
+
...m,
|
|
2723
2723
|
"data-state": e,
|
|
2724
2724
|
"data-testid": "gloss-section-divider",
|
|
2725
2725
|
"aria-hidden": "true",
|
|
@@ -2729,7 +2729,7 @@ function Qn({
|
|
|
2729
2729
|
s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
|
|
2730
2730
|
o
|
|
2731
2731
|
].filter(Boolean).join(" "),
|
|
2732
|
-
style:
|
|
2732
|
+
style: c
|
|
2733
2733
|
}
|
|
2734
2734
|
);
|
|
2735
2735
|
}
|
|
@@ -2745,18 +2745,18 @@ const Y = {
|
|
|
2745
2745
|
enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
2746
2746
|
exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2747
2747
|
translateOffsetPx: 8
|
|
2748
|
-
},
|
|
2748
|
+
}, nr = {
|
|
2749
2749
|
shiverCycles: 3,
|
|
2750
2750
|
shiverAmplitudePx: 2,
|
|
2751
2751
|
shiverDurationMs: 180,
|
|
2752
2752
|
validCellOpacity: 0.6
|
|
2753
|
-
},
|
|
2753
|
+
}, rr = {
|
|
2754
2754
|
materializeMs: 180,
|
|
2755
2755
|
dematerializeMs: 140,
|
|
2756
2756
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
2757
2757
|
dotStrokePx: 2,
|
|
2758
2758
|
dividerDashGapPx: 4
|
|
2759
|
-
},
|
|
2759
|
+
}, sr = {
|
|
2760
2760
|
cascadeStaggerMs: 0,
|
|
2761
2761
|
cascadeSpringCapMs: 120,
|
|
2762
2762
|
swingEnterMs: 100,
|
|
@@ -2765,7 +2765,7 @@ const Y = {
|
|
|
2765
2765
|
provisionalStyle: "opacity",
|
|
2766
2766
|
shiverMs: 200,
|
|
2767
2767
|
shiverStyle: "color-flash"
|
|
2768
|
-
},
|
|
2768
|
+
}, ir = !0, or = {
|
|
2769
2769
|
rejectionFill: "var(--gloss-rejection-fill)",
|
|
2770
2770
|
rejectionStroke: "var(--gloss-rejection-stroke)",
|
|
2771
2771
|
validFill: "var(--gloss-valid-fill)",
|
|
@@ -2773,7 +2773,7 @@ const Y = {
|
|
|
2773
2773
|
validCellStroke: "var(--gloss-valid-cell-stroke)",
|
|
2774
2774
|
provisionalWash: "var(--gloss-provisional-wash)"
|
|
2775
2775
|
};
|
|
2776
|
-
function
|
|
2776
|
+
function He() {
|
|
2777
2777
|
if (typeof window > "u") return "full";
|
|
2778
2778
|
try {
|
|
2779
2779
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
|
|
@@ -2806,7 +2806,7 @@ const De = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
|
|
|
2806
2806
|
}
|
|
2807
2807
|
);
|
|
2808
2808
|
};
|
|
2809
|
-
function
|
|
2809
|
+
function lr({
|
|
2810
2810
|
enabled: e,
|
|
2811
2811
|
onCollapse: t,
|
|
2812
2812
|
onAdd: n,
|
|
@@ -2815,45 +2815,45 @@ function nr({
|
|
|
2815
2815
|
className: s,
|
|
2816
2816
|
style: o,
|
|
2817
2817
|
onPack: l,
|
|
2818
|
-
ariaLabel:
|
|
2818
|
+
ariaLabel: m
|
|
2819
2819
|
}) {
|
|
2820
|
-
const
|
|
2821
|
-
return /* @__PURE__ */
|
|
2822
|
-
/* @__PURE__ */ r(De, { visible:
|
|
2820
|
+
const c = a ?? "Add card to this cell", d = i ?? m ?? "Pack row — shift cards left", h = t ?? l, { affordancesVisible: u } = Qe();
|
|
2821
|
+
return /* @__PURE__ */ y(B.Fragment, { children: [
|
|
2822
|
+
/* @__PURE__ */ r(De, { visible: u, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2823
2823
|
"button",
|
|
2824
2824
|
{
|
|
2825
2825
|
type: "button",
|
|
2826
2826
|
"data-testid": "gloss-empty-cell-add",
|
|
2827
|
-
"aria-label":
|
|
2827
|
+
"aria-label": c,
|
|
2828
2828
|
className: [
|
|
2829
2829
|
"gloss-empty-cell-pack-affordance",
|
|
2830
2830
|
"gloss-empty-cell-pack-affordance--add",
|
|
2831
2831
|
s
|
|
2832
2832
|
].filter(Boolean).join(" "),
|
|
2833
2833
|
style: o,
|
|
2834
|
-
onClick: (
|
|
2835
|
-
|
|
2834
|
+
onClick: (p) => {
|
|
2835
|
+
p.stopPropagation(), n?.();
|
|
2836
2836
|
},
|
|
2837
2837
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
|
|
2838
2838
|
}
|
|
2839
2839
|
) }),
|
|
2840
|
-
/* @__PURE__ */ r(De, { visible: e &&
|
|
2840
|
+
/* @__PURE__ */ r(De, { visible: e && u, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
|
|
2841
2841
|
"button",
|
|
2842
2842
|
{
|
|
2843
2843
|
type: "button",
|
|
2844
2844
|
"data-testid": "gloss-empty-cell-pack",
|
|
2845
|
-
"aria-label":
|
|
2845
|
+
"aria-label": d,
|
|
2846
2846
|
className: ["gloss-empty-cell-pack-affordance", s].filter(Boolean).join(" "),
|
|
2847
2847
|
style: o,
|
|
2848
|
-
onClick: (
|
|
2849
|
-
|
|
2848
|
+
onClick: (p) => {
|
|
2849
|
+
p.stopPropagation(), h?.();
|
|
2850
2850
|
},
|
|
2851
2851
|
children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
|
|
2852
2852
|
}
|
|
2853
2853
|
) })
|
|
2854
2854
|
] });
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function cr({
|
|
2857
2857
|
tint: e,
|
|
2858
2858
|
colSpan: t,
|
|
2859
2859
|
colWidth: n,
|
|
@@ -2862,13 +2862,13 @@ function rr({
|
|
|
2862
2862
|
x: s,
|
|
2863
2863
|
y: o,
|
|
2864
2864
|
children: l,
|
|
2865
|
-
className:
|
|
2865
|
+
className: m
|
|
2866
2866
|
}) {
|
|
2867
|
-
const
|
|
2867
|
+
const c = t * n + (t - 1) * i, d = B.useRef(null);
|
|
2868
2868
|
return de("drag-ghost", () => {
|
|
2869
2869
|
if (process.env.NODE_ENV === "production")
|
|
2870
2870
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2871
|
-
const h =
|
|
2871
|
+
const h = d.current?.getBoundingClientRect() ?? null;
|
|
2872
2872
|
return {
|
|
2873
2873
|
values: {
|
|
2874
2874
|
x: s.get(),
|
|
@@ -2891,12 +2891,12 @@ function rr({
|
|
|
2891
2891
|
}), de("commit-ghost-singleton", () => {
|
|
2892
2892
|
if (process.env.NODE_ENV === "production")
|
|
2893
2893
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
2894
|
-
const h =
|
|
2895
|
-
let
|
|
2894
|
+
const h = d.current;
|
|
2895
|
+
let u = 0, p = "", w = "", k = "";
|
|
2896
2896
|
if (h)
|
|
2897
2897
|
try {
|
|
2898
|
-
const M = window.getComputedStyle(h), N = M.outline || "", S = M.border || "",
|
|
2899
|
-
|
|
2898
|
+
const M = window.getComputedStyle(h), N = M.outline || "", S = M.border || "", T = M.boxShadow || "", g = !!N && N !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(N), v = !!S && S !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(S), _ = !!T && T !== "none";
|
|
2899
|
+
u = g || v || _ ? 1 : 0, p = g ? N : "", w = v ? S : "", k = _ ? T : "";
|
|
2900
2900
|
} catch {
|
|
2901
2901
|
}
|
|
2902
2902
|
const f = h?.getBoundingClientRect() ?? null, b = h ? "drag-clone" : "subsumed-by-tracking-outline";
|
|
@@ -2909,13 +2909,13 @@ function rr({
|
|
|
2909
2909
|
bounds_w: f?.width ?? 0,
|
|
2910
2910
|
bounds_h: f?.height ?? 0,
|
|
2911
2911
|
visible: h ? 1 : 0,
|
|
2912
|
-
outlineOnClone:
|
|
2912
|
+
outlineOnClone: u
|
|
2913
2913
|
},
|
|
2914
2914
|
spec: {
|
|
2915
2915
|
mode: b,
|
|
2916
2916
|
tint: e,
|
|
2917
|
-
outlineSrc:
|
|
2918
|
-
borderSrc:
|
|
2917
|
+
outlineSrc: p,
|
|
2918
|
+
borderSrc: w,
|
|
2919
2919
|
boxShadowSrc: k
|
|
2920
2920
|
// D-01 contract: Frame 1 (current/buggy) shows outline-on-clone=true;
|
|
2921
2921
|
// Frame 2 (decided): outline-on-clone=false (subsumed by tracking
|
|
@@ -2928,22 +2928,22 @@ function rr({
|
|
|
2928
2928
|
}), /* @__PURE__ */ r(
|
|
2929
2929
|
G.div,
|
|
2930
2930
|
{
|
|
2931
|
-
ref:
|
|
2931
|
+
ref: d,
|
|
2932
2932
|
"data-testid": "gloss-drag-ghost",
|
|
2933
2933
|
"data-tint": e,
|
|
2934
2934
|
"aria-hidden": "true",
|
|
2935
2935
|
className: [
|
|
2936
2936
|
"gloss-drag-ghost",
|
|
2937
2937
|
`gloss-drag-ghost--tint-${e}`,
|
|
2938
|
-
|
|
2938
|
+
m
|
|
2939
2939
|
].filter(Boolean).join(" "),
|
|
2940
|
-
style: { x: s, y: o, width:
|
|
2940
|
+
style: { x: s, y: o, width: c, height: a },
|
|
2941
2941
|
children: l
|
|
2942
2942
|
}
|
|
2943
2943
|
);
|
|
2944
2944
|
}
|
|
2945
|
-
const
|
|
2946
|
-
function
|
|
2945
|
+
const ra = 3;
|
|
2946
|
+
function We({
|
|
2947
2947
|
gesture: e,
|
|
2948
2948
|
cell: t,
|
|
2949
2949
|
colSpan: n,
|
|
@@ -2952,10 +2952,10 @@ function Ge({
|
|
|
2952
2952
|
rowHeight: s,
|
|
2953
2953
|
pattern: o = "solid",
|
|
2954
2954
|
transitionMs: l = 120,
|
|
2955
|
-
className:
|
|
2956
|
-
motionWidth:
|
|
2955
|
+
className: m,
|
|
2956
|
+
motionWidth: c
|
|
2957
2957
|
}) {
|
|
2958
|
-
const
|
|
2958
|
+
const d = n * a + (n - 1) * i, u = (t.section * ra + t.col) * (a + i), p = t.row * (s + i), w = e === "resize" ? 2.5 : 2, k = o === "dashed-retreated" ? "dashed" : "solid", f = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline", b = {
|
|
2959
2959
|
className: [
|
|
2960
2960
|
"gloss-tracking-outline",
|
|
2961
2961
|
`gloss-tracking-outline--${e}`,
|
|
@@ -2963,7 +2963,7 @@ function Ge({
|
|
|
2963
2963
|
// D-15 #4 parity: drag callers must keep the legacy class so reptime
|
|
2964
2964
|
// metric-card-grid.scss nested selectors continue to match.
|
|
2965
2965
|
e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
|
|
2966
|
-
|
|
2966
|
+
m
|
|
2967
2967
|
].filter(Boolean).join(" "),
|
|
2968
2968
|
"data-testid": f,
|
|
2969
2969
|
"data-tracking-outline": "",
|
|
@@ -2971,15 +2971,15 @@ function Ge({
|
|
|
2971
2971
|
"data-pattern": o,
|
|
2972
2972
|
"aria-hidden": "true"
|
|
2973
2973
|
};
|
|
2974
|
-
return
|
|
2974
|
+
return c ? /* @__PURE__ */ r(
|
|
2975
2975
|
G.div,
|
|
2976
2976
|
{
|
|
2977
2977
|
...b,
|
|
2978
2978
|
style: {
|
|
2979
|
-
transform: `translate(${
|
|
2980
|
-
width:
|
|
2979
|
+
transform: `translate(${u}px, ${p}px)`,
|
|
2980
|
+
width: c,
|
|
2981
2981
|
height: s,
|
|
2982
|
-
borderWidth:
|
|
2982
|
+
borderWidth: w,
|
|
2983
2983
|
borderStyle: k
|
|
2984
2984
|
}
|
|
2985
2985
|
}
|
|
@@ -2988,20 +2988,20 @@ function Ge({
|
|
|
2988
2988
|
{
|
|
2989
2989
|
...b,
|
|
2990
2990
|
style: {
|
|
2991
|
-
transform: `translate(${
|
|
2992
|
-
width:
|
|
2991
|
+
transform: `translate(${u}px, ${p}px)`,
|
|
2992
|
+
width: d,
|
|
2993
2993
|
height: s,
|
|
2994
|
-
borderWidth:
|
|
2994
|
+
borderWidth: w,
|
|
2995
2995
|
borderStyle: k,
|
|
2996
2996
|
transition: `transform ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
2999
|
);
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3002
|
-
return /* @__PURE__ */ r(
|
|
3001
|
+
function dr(e) {
|
|
3002
|
+
return /* @__PURE__ */ r(We, { gesture: "drag", pattern: "solid", ...e });
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function ur({
|
|
3005
3005
|
items: e,
|
|
3006
3006
|
children: t,
|
|
3007
3007
|
className: n,
|
|
@@ -3012,16 +3012,16 @@ function ir({
|
|
|
3012
3012
|
if (process.env.NODE_ENV === "production")
|
|
3013
3013
|
return { values: {}, spec: null, state: "idle", t: performance.now() };
|
|
3014
3014
|
const o = s.current;
|
|
3015
|
-
let l = 0,
|
|
3015
|
+
let l = 0, m = 0, c = 0, d = 0;
|
|
3016
3016
|
for (const h of o) {
|
|
3017
|
-
const
|
|
3018
|
-
Math.abs(
|
|
3017
|
+
const u = h.x.get(), p = h.y.get();
|
|
3018
|
+
Math.abs(u) > Math.abs(c) && (c = u, l = u), Math.abs(p) > Math.abs(d) && (d = p, m = p);
|
|
3019
3019
|
}
|
|
3020
3020
|
return {
|
|
3021
3021
|
values: {
|
|
3022
3022
|
activeCount: o.length,
|
|
3023
3023
|
maxX: l,
|
|
3024
|
-
maxY:
|
|
3024
|
+
maxY: m,
|
|
3025
3025
|
visible: o.length > 0 ? 1 : 0
|
|
3026
3026
|
},
|
|
3027
3027
|
spec: {
|
|
@@ -3055,27 +3055,27 @@ function ir({
|
|
|
3055
3055
|
o.cardId
|
|
3056
3056
|
)) });
|
|
3057
3057
|
}
|
|
3058
|
-
const
|
|
3058
|
+
const sa = ({
|
|
3059
3059
|
consumed: e,
|
|
3060
3060
|
elapsed: t,
|
|
3061
3061
|
severity: n = "neutral"
|
|
3062
3062
|
}) => {
|
|
3063
3063
|
const a = P(null), i = P(null);
|
|
3064
3064
|
A(() => {
|
|
3065
|
-
const l = Math.min(100, Math.max(0, e.value)),
|
|
3066
|
-
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${
|
|
3065
|
+
const l = Math.min(100, Math.max(0, e.value)), m = Math.min(100, Math.max(0, t.value)), c = requestAnimationFrame(() => {
|
|
3066
|
+
a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${m}%`);
|
|
3067
3067
|
});
|
|
3068
|
-
return () => cancelAnimationFrame(
|
|
3068
|
+
return () => cancelAnimationFrame(c);
|
|
3069
3069
|
}, [e.value, t.value]);
|
|
3070
3070
|
const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
|
|
3071
|
-
return /* @__PURE__ */
|
|
3071
|
+
return /* @__PURE__ */ y(
|
|
3072
3072
|
"div",
|
|
3073
3073
|
{
|
|
3074
3074
|
className: "gloss-dual-pace-bars",
|
|
3075
3075
|
role: "img",
|
|
3076
3076
|
"aria-label": `${s}: ${e.value}%, ${o}: ${t.value}%`,
|
|
3077
3077
|
children: [
|
|
3078
|
-
/* @__PURE__ */
|
|
3078
|
+
/* @__PURE__ */ y("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
3079
3079
|
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: s }),
|
|
3080
3080
|
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
3081
3081
|
"div",
|
|
@@ -3090,12 +3090,12 @@ const ra = ({
|
|
|
3090
3090
|
"aria-label": `${s}: ${e.value}%`
|
|
3091
3091
|
}
|
|
3092
3092
|
) }),
|
|
3093
|
-
/* @__PURE__ */
|
|
3093
|
+
/* @__PURE__ */ y("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
3094
3094
|
e.value,
|
|
3095
3095
|
"%"
|
|
3096
3096
|
] })
|
|
3097
3097
|
] }),
|
|
3098
|
-
/* @__PURE__ */
|
|
3098
|
+
/* @__PURE__ */ y("div", { className: "gloss-dual-pace-bars__row", children: [
|
|
3099
3099
|
/* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: o }),
|
|
3100
3100
|
/* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
|
|
3101
3101
|
"div",
|
|
@@ -3110,7 +3110,7 @@ const ra = ({
|
|
|
3110
3110
|
"aria-label": `${o}: ${t.value}%`
|
|
3111
3111
|
}
|
|
3112
3112
|
) }),
|
|
3113
|
-
/* @__PURE__ */
|
|
3113
|
+
/* @__PURE__ */ y("span", { className: "gloss-dual-pace-bars__track-value", children: [
|
|
3114
3114
|
t.value,
|
|
3115
3115
|
"%"
|
|
3116
3116
|
] })
|
|
@@ -3118,22 +3118,22 @@ const ra = ({
|
|
|
3118
3118
|
]
|
|
3119
3119
|
}
|
|
3120
3120
|
);
|
|
3121
|
-
},
|
|
3121
|
+
}, ia = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ y(
|
|
3122
3122
|
"div",
|
|
3123
3123
|
{
|
|
3124
3124
|
className: `gloss-gap-readout gloss-gap-readout--${n}`,
|
|
3125
3125
|
"aria-label": `${e}: ${t}`,
|
|
3126
3126
|
children: [
|
|
3127
3127
|
/* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
|
|
3128
|
-
/* @__PURE__ */
|
|
3128
|
+
/* @__PURE__ */ y("div", { className: "gloss-gap-readout__strip", children: [
|
|
3129
3129
|
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__label", children: e }),
|
|
3130
3130
|
/* @__PURE__ */ r("span", { className: "gloss-gap-readout__value", children: t })
|
|
3131
3131
|
] })
|
|
3132
3132
|
]
|
|
3133
3133
|
}
|
|
3134
|
-
),
|
|
3134
|
+
), oa = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ y("div", { className: "gloss-pace-placeholder", children: [
|
|
3135
3135
|
/* @__PURE__ */ r("p", { className: "gloss-pace-placeholder__heading", children: "Set a target" }),
|
|
3136
|
-
/* @__PURE__ */
|
|
3136
|
+
/* @__PURE__ */ y("p", { className: "gloss-pace-placeholder__context", children: [
|
|
3137
3137
|
"for ",
|
|
3138
3138
|
e
|
|
3139
3139
|
] }),
|
|
@@ -3147,9 +3147,9 @@ const ra = ({
|
|
|
3147
3147
|
children: "Set target"
|
|
3148
3148
|
}
|
|
3149
3149
|
)
|
|
3150
|
-
] }),
|
|
3151
|
-
const [t, n] =
|
|
3152
|
-
|
|
3150
|
+
] }), mr = (e) => {
|
|
3151
|
+
const [t, n] = I(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
|
|
3152
|
+
pt,
|
|
3153
3153
|
{
|
|
3154
3154
|
label: `Set a target for ${e.label}`,
|
|
3155
3155
|
unit: s,
|
|
@@ -3163,7 +3163,7 @@ const ra = ({
|
|
|
3163
3163
|
}
|
|
3164
3164
|
);
|
|
3165
3165
|
return /* @__PURE__ */ r(
|
|
3166
|
-
|
|
3166
|
+
Xe,
|
|
3167
3167
|
{
|
|
3168
3168
|
colSpan: 2,
|
|
3169
3169
|
enableQuickSettings: !0,
|
|
@@ -3171,21 +3171,21 @@ const ra = ({
|
|
|
3171
3171
|
onFlipChange: n,
|
|
3172
3172
|
quickConfigSlot: o,
|
|
3173
3173
|
onRemove: e.onRemove,
|
|
3174
|
-
children: /* @__PURE__ */
|
|
3174
|
+
children: /* @__PURE__ */ y("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
|
|
3175
3175
|
/* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
|
|
3176
3176
|
e.subtitle && /* @__PURE__ */ r("div", { className: "gloss-pace-card__subtitle", children: e.subtitle }),
|
|
3177
|
-
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ y($, { children: [
|
|
3178
3178
|
/* @__PURE__ */ r(
|
|
3179
|
-
|
|
3179
|
+
sa,
|
|
3180
3180
|
{
|
|
3181
3181
|
consumed: e.consumed,
|
|
3182
3182
|
elapsed: e.elapsed,
|
|
3183
3183
|
severity: e.severity
|
|
3184
3184
|
}
|
|
3185
3185
|
),
|
|
3186
|
-
/* @__PURE__ */ r(
|
|
3186
|
+
/* @__PURE__ */ r(ia, { label: "Gap", value: e.gapLabel, severity: e.severity })
|
|
3187
3187
|
] }) : /* @__PURE__ */ r(
|
|
3188
|
-
|
|
3188
|
+
oa,
|
|
3189
3189
|
{
|
|
3190
3190
|
label: e.label,
|
|
3191
3191
|
onSetTarget: () => n(!0)
|
|
@@ -3194,7 +3194,7 @@ const ra = ({
|
|
|
3194
3194
|
] })
|
|
3195
3195
|
}
|
|
3196
3196
|
);
|
|
3197
|
-
},
|
|
3197
|
+
}, pr = () => /* @__PURE__ */ y("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
|
|
3198
3198
|
/* @__PURE__ */ r(
|
|
3199
3199
|
"div",
|
|
3200
3200
|
{
|
|
@@ -3211,7 +3211,7 @@ const ra = ({
|
|
|
3211
3211
|
),
|
|
3212
3212
|
/* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
|
|
3213
3213
|
] });
|
|
3214
|
-
function
|
|
3214
|
+
function la({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, onClick: o }) {
|
|
3215
3215
|
return /* @__PURE__ */ r(
|
|
3216
3216
|
"span",
|
|
3217
3217
|
{
|
|
@@ -3225,24 +3225,24 @@ function oa({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, o
|
|
|
3225
3225
|
onClick: () => {
|
|
3226
3226
|
i || o(e);
|
|
3227
3227
|
},
|
|
3228
|
-
children: /* @__PURE__ */
|
|
3228
|
+
children: /* @__PURE__ */ y("span", { className: "gloss-lens-chip__inner", children: [
|
|
3229
3229
|
/* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
|
|
3230
3230
|
s && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: s })
|
|
3231
3231
|
] })
|
|
3232
3232
|
}
|
|
3233
3233
|
);
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function ca({
|
|
3236
3236
|
lenses: e,
|
|
3237
3237
|
value: t,
|
|
3238
3238
|
onChange: n,
|
|
3239
3239
|
"aria-label": a = "Lens"
|
|
3240
3240
|
}) {
|
|
3241
|
-
const [i, s] =
|
|
3241
|
+
const [i, s] = I(
|
|
3242
3242
|
() => Math.max(0, e.findIndex((l) => l.id === t))
|
|
3243
3243
|
);
|
|
3244
3244
|
return A(() => {
|
|
3245
|
-
const l = e.findIndex((
|
|
3245
|
+
const l = e.findIndex((m) => m.id === t);
|
|
3246
3246
|
s(l >= 0 ? l : 0);
|
|
3247
3247
|
}, [t, e]), e.length === 0 ? null : /* @__PURE__ */ r(
|
|
3248
3248
|
"div",
|
|
@@ -3253,11 +3253,11 @@ function la({
|
|
|
3253
3253
|
switch (l.key) {
|
|
3254
3254
|
case "ArrowRight":
|
|
3255
3255
|
case "ArrowDown":
|
|
3256
|
-
l.preventDefault(), s((
|
|
3256
|
+
l.preventDefault(), s((m) => (m + 1) % e.length);
|
|
3257
3257
|
break;
|
|
3258
3258
|
case "ArrowLeft":
|
|
3259
3259
|
case "ArrowUp":
|
|
3260
|
-
l.preventDefault(), s((
|
|
3260
|
+
l.preventDefault(), s((m) => (m - 1 + e.length) % e.length);
|
|
3261
3261
|
break;
|
|
3262
3262
|
case "Home":
|
|
3263
3263
|
l.preventDefault(), s(0);
|
|
@@ -3268,20 +3268,20 @@ function la({
|
|
|
3268
3268
|
case "Enter":
|
|
3269
3269
|
case " ": {
|
|
3270
3270
|
l.preventDefault();
|
|
3271
|
-
const
|
|
3272
|
-
|
|
3271
|
+
const m = e[i];
|
|
3272
|
+
m && !m.disabled && n(m.id);
|
|
3273
3273
|
break;
|
|
3274
3274
|
}
|
|
3275
3275
|
}
|
|
3276
3276
|
},
|
|
3277
3277
|
className: "gloss-lens-chip-group",
|
|
3278
|
-
children: e.map((l,
|
|
3279
|
-
|
|
3278
|
+
children: e.map((l, m) => /* @__PURE__ */ r(
|
|
3279
|
+
la,
|
|
3280
3280
|
{
|
|
3281
3281
|
id: l.id,
|
|
3282
3282
|
label: l.label,
|
|
3283
3283
|
selected: l.id === t,
|
|
3284
|
-
focused:
|
|
3284
|
+
focused: m === i,
|
|
3285
3285
|
disabled: l.disabled,
|
|
3286
3286
|
badge: l.badge,
|
|
3287
3287
|
onClick: n
|
|
@@ -3291,25 +3291,25 @@ function la({
|
|
|
3291
3291
|
}
|
|
3292
3292
|
);
|
|
3293
3293
|
}
|
|
3294
|
-
|
|
3295
|
-
function
|
|
3296
|
-
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */
|
|
3294
|
+
ca.displayName = "LensChipGroup";
|
|
3295
|
+
function da({ heading: e, children: t }) {
|
|
3296
|
+
return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ y("section", { className: "gloss-starter-rail", "aria-label": e, children: [
|
|
3297
3297
|
/* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
|
|
3298
3298
|
/* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
|
|
3299
3299
|
] });
|
|
3300
3300
|
}
|
|
3301
|
-
|
|
3302
|
-
function
|
|
3301
|
+
da.displayName = "StarterRail";
|
|
3302
|
+
function ua({ heading: e, children: t, emptyStateLabel: n }) {
|
|
3303
3303
|
const a = !t || Array.isArray(t) && t.length === 0;
|
|
3304
|
-
return /* @__PURE__ */
|
|
3304
|
+
return /* @__PURE__ */ y("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
|
|
3305
3305
|
/* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
|
|
3306
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ y("div", { className: "gloss-more-in-lens-rail__tiles", children: [
|
|
3307
3307
|
t,
|
|
3308
3308
|
a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
|
|
3309
3309
|
] })
|
|
3310
3310
|
] });
|
|
3311
3311
|
}
|
|
3312
|
-
|
|
3312
|
+
ua.displayName = "MoreInLensRail";
|
|
3313
3313
|
function K({
|
|
3314
3314
|
lead: e,
|
|
3315
3315
|
name: t,
|
|
@@ -3319,21 +3319,21 @@ function K({
|
|
|
3319
3319
|
variant: s = "default",
|
|
3320
3320
|
onClick: o,
|
|
3321
3321
|
className: l,
|
|
3322
|
-
style:
|
|
3322
|
+
style: m
|
|
3323
3323
|
}) {
|
|
3324
|
-
const
|
|
3324
|
+
const c = [
|
|
3325
3325
|
"gloss-entity-row",
|
|
3326
3326
|
`gloss-entity-row--${s}`,
|
|
3327
3327
|
o ? "gloss-entity-row--clickable" : "",
|
|
3328
3328
|
l ?? ""
|
|
3329
|
-
].filter(Boolean).join(" "),
|
|
3329
|
+
].filter(Boolean).join(" "), d = /* @__PURE__ */ y($, { children: [
|
|
3330
3330
|
e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
|
|
3331
3331
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
|
|
3332
3332
|
n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
|
|
3333
3333
|
/* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
|
|
3334
3334
|
i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
|
|
3335
3335
|
] });
|
|
3336
|
-
return o ? /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3336
|
+
return o ? /* @__PURE__ */ r("div", { role: "listitem", className: c, style: m, children: /* @__PURE__ */ r(
|
|
3337
3337
|
"button",
|
|
3338
3338
|
{
|
|
3339
3339
|
type: "button",
|
|
@@ -3348,9 +3348,9 @@ function K({
|
|
|
3348
3348
|
onClick: (h) => {
|
|
3349
3349
|
h.stopPropagation(), o();
|
|
3350
3350
|
},
|
|
3351
|
-
children:
|
|
3351
|
+
children: d
|
|
3352
3352
|
}
|
|
3353
|
-
) }) : /* @__PURE__ */ r("div", { role: "listitem", className:
|
|
3353
|
+
) }) : /* @__PURE__ */ r("div", { role: "listitem", className: c, style: m, children: d });
|
|
3354
3354
|
}
|
|
3355
3355
|
K.displayName = "EntityRow";
|
|
3356
3356
|
const ee = ({ rank: e }) => {
|
|
@@ -3377,7 +3377,7 @@ function te({ severity: e, "aria-label": t }) {
|
|
|
3377
3377
|
);
|
|
3378
3378
|
}
|
|
3379
3379
|
te.displayName = "SeverityDot";
|
|
3380
|
-
function
|
|
3380
|
+
function Ve({
|
|
3381
3381
|
delta: e,
|
|
3382
3382
|
direction: t = "flat",
|
|
3383
3383
|
"aria-label": n
|
|
@@ -3393,7 +3393,7 @@ function He({
|
|
|
3393
3393
|
}
|
|
3394
3394
|
);
|
|
3395
3395
|
const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
|
|
3396
|
-
return /* @__PURE__ */
|
|
3396
|
+
return /* @__PURE__ */ y(
|
|
3397
3397
|
"span",
|
|
3398
3398
|
{
|
|
3399
3399
|
role: "img",
|
|
@@ -3406,7 +3406,7 @@ function He({
|
|
|
3406
3406
|
}
|
|
3407
3407
|
);
|
|
3408
3408
|
}
|
|
3409
|
-
|
|
3409
|
+
Ve.displayName = "RankDelta";
|
|
3410
3410
|
function ae({ fill: e, variant: t = "default", className: n }) {
|
|
3411
3411
|
const a = Math.max(0, Math.min(100, e));
|
|
3412
3412
|
return /* @__PURE__ */ r(
|
|
@@ -3424,8 +3424,8 @@ function ae({ fill: e, variant: t = "default", className: n }) {
|
|
|
3424
3424
|
);
|
|
3425
3425
|
}
|
|
3426
3426
|
ae.displayName = "MagnitudeBar";
|
|
3427
|
-
const
|
|
3428
|
-
function
|
|
3427
|
+
const ma = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
|
|
3428
|
+
function pa({
|
|
3429
3429
|
label: e,
|
|
3430
3430
|
rows: t,
|
|
3431
3431
|
rowCount: n,
|
|
@@ -3433,7 +3433,7 @@ function ma({
|
|
|
3433
3433
|
isStale: i
|
|
3434
3434
|
}) {
|
|
3435
3435
|
const s = n ?? 3;
|
|
3436
|
-
return /* @__PURE__ */
|
|
3436
|
+
return /* @__PURE__ */ y($, { children: [
|
|
3437
3437
|
/* @__PURE__ */ r(
|
|
3438
3438
|
X,
|
|
3439
3439
|
{
|
|
@@ -3461,11 +3461,11 @@ function ma({
|
|
|
3461
3461
|
),
|
|
3462
3462
|
value: o.value,
|
|
3463
3463
|
trail: /* @__PURE__ */ r(
|
|
3464
|
-
|
|
3464
|
+
Ve,
|
|
3465
3465
|
{
|
|
3466
3466
|
delta: o.rankDelta,
|
|
3467
3467
|
direction: o.direction,
|
|
3468
|
-
"aria-label":
|
|
3468
|
+
"aria-label": ma(o)
|
|
3469
3469
|
}
|
|
3470
3470
|
),
|
|
3471
3471
|
variant: "leaderboard",
|
|
@@ -3475,14 +3475,14 @@ function ma({
|
|
|
3475
3475
|
)) })
|
|
3476
3476
|
}
|
|
3477
3477
|
),
|
|
3478
|
-
/* @__PURE__ */
|
|
3478
|
+
/* @__PURE__ */ y("div", { className: "gloss-leaderboard__zone-c", children: [
|
|
3479
3479
|
a ?? "WoW",
|
|
3480
3480
|
" rank change"
|
|
3481
3481
|
] })
|
|
3482
3482
|
] });
|
|
3483
3483
|
}
|
|
3484
|
-
|
|
3485
|
-
const ga = () => /* @__PURE__ */
|
|
3484
|
+
pa.displayName = "LeaderboardCard";
|
|
3485
|
+
const ga = () => /* @__PURE__ */ y(
|
|
3486
3486
|
"div",
|
|
3487
3487
|
{
|
|
3488
3488
|
className: "leaderboard-tile-preview",
|
|
@@ -3496,7 +3496,7 @@ const ga = () => /* @__PURE__ */ w(
|
|
|
3496
3496
|
}
|
|
3497
3497
|
);
|
|
3498
3498
|
ga.displayName = "LeaderboardTilePreview";
|
|
3499
|
-
const
|
|
3499
|
+
const ha = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", fa = (e, t) => {
|
|
3500
3500
|
const n = e.sourceValue;
|
|
3501
3501
|
if (typeof n != "number") return !1;
|
|
3502
3502
|
switch (t.condition) {
|
|
@@ -3514,7 +3514,7 @@ const pa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warni
|
|
|
3514
3514
|
return !1;
|
|
3515
3515
|
}
|
|
3516
3516
|
};
|
|
3517
|
-
function
|
|
3517
|
+
function ba({
|
|
3518
3518
|
label: e,
|
|
3519
3519
|
rows: t,
|
|
3520
3520
|
rule: n,
|
|
@@ -3523,8 +3523,8 @@ function fa({
|
|
|
3523
3523
|
ruleSubtitle: s,
|
|
3524
3524
|
isStale: o
|
|
3525
3525
|
}) {
|
|
3526
|
-
const l = t.filter((
|
|
3527
|
-
return l.length === 0 ? /* @__PURE__ */
|
|
3526
|
+
const l = t.filter((c) => fa(c, n)), m = l.slice(0, a ?? 3);
|
|
3527
|
+
return l.length === 0 ? /* @__PURE__ */ y($, { children: [
|
|
3528
3528
|
/* @__PURE__ */ r(
|
|
3529
3529
|
X,
|
|
3530
3530
|
{
|
|
@@ -3535,7 +3535,7 @@ function fa({
|
|
|
3535
3535
|
),
|
|
3536
3536
|
/* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: i ?? "No exceptions" }),
|
|
3537
3537
|
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3538
|
-
] }) : /* @__PURE__ */
|
|
3538
|
+
] }) : /* @__PURE__ */ y($, { children: [
|
|
3539
3539
|
/* @__PURE__ */ r(
|
|
3540
3540
|
X,
|
|
3541
3541
|
{
|
|
@@ -3549,24 +3549,24 @@ function fa({
|
|
|
3549
3549
|
{
|
|
3550
3550
|
className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
|
|
3551
3551
|
style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
|
|
3552
|
-
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children:
|
|
3552
|
+
children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: m.map((c, d) => /* @__PURE__ */ r(
|
|
3553
3553
|
K,
|
|
3554
3554
|
{
|
|
3555
|
-
lead: /* @__PURE__ */ r(te, { severity:
|
|
3556
|
-
name:
|
|
3557
|
-
value:
|
|
3555
|
+
lead: /* @__PURE__ */ r(te, { severity: c.severity, "aria-label": ha(c.severity) }),
|
|
3556
|
+
name: c.name,
|
|
3557
|
+
value: c.value,
|
|
3558
3558
|
variant: "exception",
|
|
3559
|
-
style: { "--i":
|
|
3559
|
+
style: { "--i": d }
|
|
3560
3560
|
},
|
|
3561
|
-
|
|
3561
|
+
c.id
|
|
3562
3562
|
)) })
|
|
3563
3563
|
}
|
|
3564
3564
|
),
|
|
3565
3565
|
s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
|
|
3566
3566
|
] });
|
|
3567
3567
|
}
|
|
3568
|
-
|
|
3569
|
-
const
|
|
3568
|
+
ba.displayName = "ExceptionListCard";
|
|
3569
|
+
const va = () => /* @__PURE__ */ y(
|
|
3570
3570
|
"div",
|
|
3571
3571
|
{
|
|
3572
3572
|
className: "exception-list-tile-preview",
|
|
@@ -3600,29 +3600,29 @@ const ba = () => /* @__PURE__ */ w(
|
|
|
3600
3600
|
]
|
|
3601
3601
|
}
|
|
3602
3602
|
);
|
|
3603
|
-
|
|
3604
|
-
const xe = ["MTD", "QTD", "YTD", "LYTD", "7D"],
|
|
3603
|
+
va.displayName = "ExceptionListTilePreview";
|
|
3604
|
+
const xe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Re = ["$248K", "$612K", "$1.24M", "$980K", "$54K"], Te = [
|
|
3605
3605
|
"M0,7 L10,5 L20,6 L30,3 L40,2",
|
|
3606
3606
|
"M0,6 L10,4 L20,5 L30,2 L40,1",
|
|
3607
3607
|
"M0,8 L10,7 L20,5 L30,4 L40,2",
|
|
3608
3608
|
"M0,5 L10,6 L20,3 L30,4 L40,1",
|
|
3609
3609
|
"M0,7 L10,4 L20,5 L30,3 L40,2"
|
|
3610
|
-
],
|
|
3610
|
+
], ya = ({
|
|
3611
3611
|
slotCount: e = 3,
|
|
3612
3612
|
labels: t = xe,
|
|
3613
|
-
sampleValues: n =
|
|
3613
|
+
sampleValues: n = Re
|
|
3614
3614
|
}) => {
|
|
3615
3615
|
const a = Array.from({ length: e }, (i, s) => ({
|
|
3616
3616
|
label: t[s] ?? xe[s] ?? "",
|
|
3617
|
-
value: n[s] ??
|
|
3618
|
-
sparkPath:
|
|
3617
|
+
value: n[s] ?? Re[s] ?? "",
|
|
3618
|
+
sparkPath: Te[s % Te.length]
|
|
3619
3619
|
}));
|
|
3620
3620
|
return e === 1 ? /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--single", "aria-hidden": "true", children: /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview__single-value", children: a[0].value }) }) : /* @__PURE__ */ r(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
3623
3623
|
className: `gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--slots-${e}`,
|
|
3624
3624
|
"aria-hidden": "true",
|
|
3625
|
-
children: a.map((i, s) => /* @__PURE__ */
|
|
3625
|
+
children: a.map((i, s) => /* @__PURE__ */ y("div", { className: "gloss-stacked-group-tile-preview__row", children: [
|
|
3626
3626
|
/* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-label", children: i.label }),
|
|
3627
3627
|
/* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-value", children: i.value }),
|
|
3628
3628
|
/* @__PURE__ */ r(
|
|
@@ -3641,8 +3641,8 @@ const xe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Te = ["$248K", "$612K", "$1.24M"
|
|
|
3641
3641
|
}
|
|
3642
3642
|
);
|
|
3643
3643
|
};
|
|
3644
|
-
|
|
3645
|
-
const
|
|
3644
|
+
ya.displayName = "StackedGroupTilePreview";
|
|
3645
|
+
const gr = {
|
|
3646
3646
|
/** GEV-01 — Eligibility tint. Contiguous-from-source paint; blocked by first occupied cell (Principle 4). */
|
|
3647
3647
|
eligibilityTint: { applicableStates: ["arming", "active"] },
|
|
3648
3648
|
/** GEV-01 — Commit tint. Fill+stroke emphasis on the commit-target cell footprint (G-02). */
|
|
@@ -3684,8 +3684,8 @@ const cr = {
|
|
|
3684
3684
|
rejectionFill: "var(--gloss-g02-rejection-fill)",
|
|
3685
3685
|
rejectionStroke: "var(--gloss-g02-rejection-stroke)",
|
|
3686
3686
|
trackingOutline: "var(--gloss-g02-tracking-outline)"
|
|
3687
|
-
},
|
|
3688
|
-
function
|
|
3687
|
+
}, hr = "dashed", fr = "solid", br = "sparse-dash", vr = "2px no-fill", yr = "6 4", wr = "10 6", wa = 3;
|
|
3688
|
+
function _r({
|
|
3689
3689
|
cell: e,
|
|
3690
3690
|
variant: t,
|
|
3691
3691
|
rampColor: n,
|
|
@@ -3694,10 +3694,10 @@ function fr({
|
|
|
3694
3694
|
gap: s,
|
|
3695
3695
|
className: o
|
|
3696
3696
|
}) {
|
|
3697
|
-
const
|
|
3697
|
+
const m = (e.section * wa + e.col) * (a + s), c = e.row * (i + s), d = t === "eligibility" ? j.eligibilityFill : t === "commit" ? j.commitFill : t === "rejection" ? j.rejectionFill : (
|
|
3698
3698
|
/* ramp */
|
|
3699
3699
|
n ?? j.eligibilityFill
|
|
3700
|
-
), h = t === "rejection",
|
|
3700
|
+
), h = t === "rejection", u = h ? j.rejectionStroke : "transparent", p = h ? "dashed" : "solid";
|
|
3701
3701
|
return /* @__PURE__ */ r(
|
|
3702
3702
|
"div",
|
|
3703
3703
|
{
|
|
@@ -3710,25 +3710,25 @@ function fr({
|
|
|
3710
3710
|
"data-variant": t,
|
|
3711
3711
|
"aria-hidden": "true",
|
|
3712
3712
|
style: {
|
|
3713
|
-
transform: `translate(${
|
|
3713
|
+
transform: `translate(${m}px, ${c}px)`,
|
|
3714
3714
|
width: a,
|
|
3715
3715
|
height: i,
|
|
3716
3716
|
// Use background-color longhand (NOT background shorthand) so jsdom + DOM
|
|
3717
3717
|
// both preserve `var(...)` in inline cssText. The shorthand getter strips
|
|
3718
3718
|
// unknown values and breaks both unit-test introspection and styling.
|
|
3719
|
-
backgroundColor:
|
|
3720
|
-
borderColor:
|
|
3721
|
-
borderStyle:
|
|
3719
|
+
backgroundColor: d,
|
|
3720
|
+
borderColor: u,
|
|
3721
|
+
borderStyle: p
|
|
3722
3722
|
}
|
|
3723
3723
|
}
|
|
3724
3724
|
);
|
|
3725
3725
|
}
|
|
3726
|
-
const
|
|
3726
|
+
const _a = 3, Ca = [
|
|
3727
3727
|
{ idx: 0, peakR: 22, peakOpacity: 0.45, strokeW: 1.5 },
|
|
3728
3728
|
{ idx: 1, peakR: 34, peakOpacity: 0.22, strokeW: 1 },
|
|
3729
3729
|
{ idx: 2, peakR: 46, peakOpacity: 0.1, strokeW: 0.8 }
|
|
3730
3730
|
];
|
|
3731
|
-
function
|
|
3731
|
+
function Cr({
|
|
3732
3732
|
cell: e,
|
|
3733
3733
|
fireKey: t,
|
|
3734
3734
|
colWidth: n,
|
|
@@ -3736,8 +3736,8 @@ function br({
|
|
|
3736
3736
|
gap: i,
|
|
3737
3737
|
className: s
|
|
3738
3738
|
}) {
|
|
3739
|
-
const l = (e.section *
|
|
3740
|
-
return
|
|
3739
|
+
const l = (e.section * _a + e.col) * (n + i) + n / 2, m = e.row * (a + i) + a / 2;
|
|
3740
|
+
return He() === "reduced" ? /* @__PURE__ */ r(
|
|
3741
3741
|
"div",
|
|
3742
3742
|
{
|
|
3743
3743
|
className: ["gloss-refuse-pulse-flash", s].filter(Boolean).join(" "),
|
|
@@ -3747,7 +3747,7 @@ function br({
|
|
|
3747
3747
|
style: {
|
|
3748
3748
|
position: "absolute",
|
|
3749
3749
|
left: l - 24,
|
|
3750
|
-
top:
|
|
3750
|
+
top: m - 24,
|
|
3751
3751
|
width: 48,
|
|
3752
3752
|
height: 48,
|
|
3753
3753
|
borderRadius: "50%",
|
|
@@ -3765,7 +3765,7 @@ function br({
|
|
|
3765
3765
|
"data-testid": "gloss-refuse-pulse",
|
|
3766
3766
|
"data-fire-key": t,
|
|
3767
3767
|
"data-cx": l,
|
|
3768
|
-
"data-cy":
|
|
3768
|
+
"data-cy": m,
|
|
3769
3769
|
"aria-hidden": "true",
|
|
3770
3770
|
style: {
|
|
3771
3771
|
position: "absolute",
|
|
@@ -3773,107 +3773,107 @@ function br({
|
|
|
3773
3773
|
top: 0,
|
|
3774
3774
|
pointerEvents: "none"
|
|
3775
3775
|
},
|
|
3776
|
-
children:
|
|
3777
|
-
const h =
|
|
3776
|
+
children: Ca.map((d) => {
|
|
3777
|
+
const h = d.peakR * 2;
|
|
3778
3778
|
return /* @__PURE__ */ r(
|
|
3779
3779
|
"div",
|
|
3780
3780
|
{
|
|
3781
|
-
className: `gloss-refuse-pulse__ring gloss-refuse-pulse__ring--${
|
|
3782
|
-
"data-ring-index":
|
|
3783
|
-
"data-peak-radius":
|
|
3784
|
-
"data-peak-opacity":
|
|
3781
|
+
className: `gloss-refuse-pulse__ring gloss-refuse-pulse__ring--${d.idx}`,
|
|
3782
|
+
"data-ring-index": d.idx,
|
|
3783
|
+
"data-peak-radius": d.peakR,
|
|
3784
|
+
"data-peak-opacity": d.peakOpacity,
|
|
3785
3785
|
style: {
|
|
3786
3786
|
position: "absolute",
|
|
3787
|
-
left: l -
|
|
3788
|
-
top:
|
|
3787
|
+
left: l - d.peakR,
|
|
3788
|
+
top: m - d.peakR,
|
|
3789
3789
|
width: h,
|
|
3790
3790
|
height: h,
|
|
3791
3791
|
borderRadius: "50%",
|
|
3792
3792
|
borderStyle: "solid",
|
|
3793
|
-
borderWidth:
|
|
3793
|
+
borderWidth: d.strokeW,
|
|
3794
3794
|
borderColor: j.rejectionStroke,
|
|
3795
3795
|
background: "transparent",
|
|
3796
3796
|
opacity: 0,
|
|
3797
3797
|
transform: "scale(0)",
|
|
3798
3798
|
// CSS custom property feeds the keyframe peak opacity.
|
|
3799
|
-
"--peak-opacity":
|
|
3800
|
-
animation: `gloss-refuse-pulse-ring-${
|
|
3799
|
+
"--peak-opacity": d.peakOpacity,
|
|
3800
|
+
animation: `gloss-refuse-pulse-ring-${d.idx} 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards`
|
|
3801
3801
|
}
|
|
3802
3802
|
},
|
|
3803
|
-
|
|
3803
|
+
d.idx
|
|
3804
3804
|
);
|
|
3805
3805
|
})
|
|
3806
3806
|
},
|
|
3807
3807
|
t
|
|
3808
3808
|
);
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3811
|
-
return /* @__PURE__ */ r(
|
|
3810
|
+
function Nr(e) {
|
|
3811
|
+
return /* @__PURE__ */ r(We, { gesture: "resize", ...e });
|
|
3812
3812
|
}
|
|
3813
|
-
function
|
|
3813
|
+
function Na(e, t, n) {
|
|
3814
3814
|
const a = Math.max(0, Math.min(1, n)), i = (h) => [
|
|
3815
3815
|
parseInt(h.slice(1, 3), 16),
|
|
3816
3816
|
parseInt(h.slice(3, 5), 16),
|
|
3817
3817
|
parseInt(h.slice(5, 7), 16)
|
|
3818
|
-
], [s, o, l] = i(e), [
|
|
3819
|
-
return `rgb(${Math.round(s + (
|
|
3820
|
-
l + (
|
|
3818
|
+
], [s, o, l] = i(e), [m, c, d] = i(t);
|
|
3819
|
+
return `rgb(${Math.round(s + (m - s) * a)}, ${Math.round(o + (c - o) * a)}, ${Math.round(
|
|
3820
|
+
l + (d - l) * a
|
|
3821
3821
|
)})`;
|
|
3822
3822
|
}
|
|
3823
|
-
function
|
|
3823
|
+
function Sa(e) {
|
|
3824
3824
|
return e <= 1 ? 1 : e >= 3 ? 3 : 2;
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function ka(e) {
|
|
3827
3827
|
return e === "dragging";
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3830
|
-
const { edgeHover: t, sourceCell: n, cascadeResult: a } = e, s =
|
|
3831
|
-
if (s ? (
|
|
3829
|
+
function Sr(e) {
|
|
3830
|
+
const { edgeHover: t, sourceCell: n, cascadeResult: a } = e, s = He() === "reduced", o = B.useRef(t.currentColSpan), l = B.useRef({ armed: !0, fireKey: 0, lastResult: null }), m = B.useRef(t.currentColSpan), c = B.useRef("idle"), d = B.useRef(t.currentColSpan), h = ka(t.state);
|
|
3831
|
+
if (s ? (c.current = "settled", d.current = t.currentColSpan, m.current = t.currentColSpan) : h ? c.current = t.currentColSpan !== m.current ? "incoming" : "outgoing" : (t.currentColSpan !== m.current && (d.current = t.currentColSpan, m.current = t.currentColSpan), c.current !== "idle" && (c.current = "settled")), !h)
|
|
3832
3832
|
return l.current.armed = !0, l.current.lastResult = null, {
|
|
3833
3833
|
trackingOutline: null,
|
|
3834
3834
|
cellTints: [],
|
|
3835
3835
|
refusePulse: null,
|
|
3836
3836
|
shrinkFreedCells: [],
|
|
3837
|
-
phase:
|
|
3838
|
-
displayColSpan:
|
|
3837
|
+
phase: c.current,
|
|
3838
|
+
displayColSpan: d.current
|
|
3839
3839
|
};
|
|
3840
|
-
const
|
|
3841
|
-
|
|
3842
|
-
const k =
|
|
3840
|
+
const u = t.hysteresisTargetColSpan, p = t.previewColSpan, w = a?.result === "rejected";
|
|
3841
|
+
w || (o.current = u), w && l.current.armed && l.current.lastResult !== "rejected" && (l.current.fireKey += 1, l.current.armed = !1), l.current.lastResult = w ? "rejected" : "ok";
|
|
3842
|
+
const k = w ? o.current : u, f = {
|
|
3843
3843
|
cell: { section: 0, col: 0, row: 0 },
|
|
3844
3844
|
colSpan: k,
|
|
3845
|
-
pattern:
|
|
3845
|
+
pattern: w ? "dashed-retreated" : "solid"
|
|
3846
3846
|
}, b = [];
|
|
3847
|
-
if (
|
|
3848
|
-
const S = n.col + o.current,
|
|
3849
|
-
for (let
|
|
3847
|
+
if (w) {
|
|
3848
|
+
const S = n.col + o.current, T = n.col + u - 1;
|
|
3849
|
+
for (let g = S; g <= T && g <= 2; g++)
|
|
3850
3850
|
b.push({
|
|
3851
3851
|
cell: {
|
|
3852
3852
|
section: 0,
|
|
3853
|
-
col:
|
|
3853
|
+
col: g - n.col,
|
|
3854
3854
|
row: 0
|
|
3855
3855
|
},
|
|
3856
3856
|
variant: "rejection"
|
|
3857
3857
|
});
|
|
3858
3858
|
} else {
|
|
3859
|
-
const S = Math.abs(
|
|
3860
|
-
for (let
|
|
3861
|
-
if (
|
|
3862
|
-
const v =
|
|
3859
|
+
const S = Math.abs(p - u), T = Math.max(0, Math.min(1, 1 - S));
|
|
3860
|
+
for (let g = n.col; g < n.col + u && g <= 2; g++) {
|
|
3861
|
+
if (g === n.col) continue;
|
|
3862
|
+
const v = g === n.col + u - 1, _ = {
|
|
3863
3863
|
section: 0,
|
|
3864
|
-
col:
|
|
3864
|
+
col: g - n.col,
|
|
3865
3865
|
row: 0
|
|
3866
3866
|
};
|
|
3867
|
-
v && t.direction.startsWith("grow") &&
|
|
3867
|
+
v && t.direction.startsWith("grow") && u > 1 && !s && S > 0 && S < 1 ? b.push({
|
|
3868
3868
|
cell: _,
|
|
3869
3869
|
variant: "ramp",
|
|
3870
|
-
rampColor:
|
|
3870
|
+
rampColor: Na(Me.eligibilityFill, Me.commitFill, T)
|
|
3871
3871
|
}) : v ? b.push({ cell: _, variant: "commit" }) : b.push({ cell: _, variant: "eligibility" });
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
3874
|
const M = [];
|
|
3875
|
-
if (t.currentColSpan >
|
|
3876
|
-
for (let S = n.col +
|
|
3875
|
+
if (t.currentColSpan > u)
|
|
3876
|
+
for (let S = n.col + u; S < n.col + t.currentColSpan && S <= 2; S++)
|
|
3877
3877
|
M.push({
|
|
3878
3878
|
section: 0,
|
|
3879
3879
|
col: S - n.col,
|
|
@@ -3882,7 +3882,7 @@ function yr(e) {
|
|
|
3882
3882
|
const N = l.current.fireKey > 0 ? {
|
|
3883
3883
|
cell: {
|
|
3884
3884
|
section: 0,
|
|
3885
|
-
col:
|
|
3885
|
+
col: Sa(
|
|
3886
3886
|
Math.min(o.current, 2)
|
|
3887
3887
|
),
|
|
3888
3888
|
row: 0
|
|
@@ -3894,8 +3894,8 @@ function yr(e) {
|
|
|
3894
3894
|
cellTints: b,
|
|
3895
3895
|
refusePulse: N,
|
|
3896
3896
|
shrinkFreedCells: M,
|
|
3897
|
-
phase:
|
|
3898
|
-
displayColSpan:
|
|
3897
|
+
phase: c.current,
|
|
3898
|
+
displayColSpan: d.current
|
|
3899
3899
|
};
|
|
3900
3900
|
}
|
|
3901
3901
|
const W = {
|
|
@@ -3906,7 +3906,7 @@ const W = {
|
|
|
3906
3906
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
3907
3907
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
3908
3908
|
};
|
|
3909
|
-
function
|
|
3909
|
+
function Da({
|
|
3910
3910
|
message: e,
|
|
3911
3911
|
primaryAction: t,
|
|
3912
3912
|
onDismiss: n,
|
|
@@ -3922,27 +3922,27 @@ function ka({
|
|
|
3922
3922
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
3923
3923
|
);
|
|
3924
3924
|
}, [a, i]), F.useLayoutEffect(() => {
|
|
3925
|
-
let
|
|
3926
|
-
if (a ?
|
|
3927
|
-
const
|
|
3925
|
+
let c = null;
|
|
3926
|
+
if (a ? c = a : i && (c = document.querySelector(i)), c) {
|
|
3927
|
+
const d = c.getBoundingClientRect();
|
|
3928
3928
|
o({
|
|
3929
|
-
top:
|
|
3930
|
-
left:
|
|
3929
|
+
top: d.bottom + window.scrollY + 6,
|
|
3930
|
+
left: d.left + window.scrollX
|
|
3931
3931
|
});
|
|
3932
3932
|
}
|
|
3933
3933
|
}, [a, i]);
|
|
3934
|
-
const
|
|
3935
|
-
return /* @__PURE__ */
|
|
3934
|
+
const m = s ? { top: s.top, left: s.left } : {};
|
|
3935
|
+
return /* @__PURE__ */ y(
|
|
3936
3936
|
"div",
|
|
3937
3937
|
{
|
|
3938
3938
|
className: W["gloss-inline-nudge"],
|
|
3939
|
-
style:
|
|
3939
|
+
style: m,
|
|
3940
3940
|
role: "status",
|
|
3941
3941
|
"aria-live": "polite",
|
|
3942
3942
|
"data-reduced-motion": l ? "true" : void 0,
|
|
3943
3943
|
children: [
|
|
3944
3944
|
/* @__PURE__ */ r("span", { className: W["gloss-inline-nudge__message"], children: e }),
|
|
3945
|
-
/* @__PURE__ */
|
|
3945
|
+
/* @__PURE__ */ y("div", { className: W["gloss-inline-nudge__actions"], children: [
|
|
3946
3946
|
/* @__PURE__ */ r(
|
|
3947
3947
|
"button",
|
|
3948
3948
|
{
|
|
@@ -3967,22 +3967,22 @@ function ka({
|
|
|
3967
3967
|
}
|
|
3968
3968
|
);
|
|
3969
3969
|
}
|
|
3970
|
-
|
|
3971
|
-
function
|
|
3970
|
+
Da.displayName = "InlineNudge";
|
|
3971
|
+
function ge(e) {
|
|
3972
3972
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3974
|
+
function xa(e, t, n) {
|
|
3975
3975
|
if (n <= t) {
|
|
3976
|
-
const o = e[0], l = o ?
|
|
3976
|
+
const o = e[0], l = o ? ge(o) : "#888";
|
|
3977
3977
|
return `linear-gradient(to right, ${l}, ${l})`;
|
|
3978
3978
|
}
|
|
3979
3979
|
const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
|
|
3980
3980
|
const l = (o.value - t) / a * 100;
|
|
3981
|
-
return `${
|
|
3981
|
+
return `${ge(o)} ${l.toFixed(2)}%`;
|
|
3982
3982
|
});
|
|
3983
3983
|
return s.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : s.length === 1 ? `linear-gradient(to right, ${s[0]}, ${s[0]})` : `linear-gradient(to right, ${s.join(", ")})`;
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3985
|
+
function Ra(e) {
|
|
3986
3986
|
return e.map((t) => `${t.id}:${t.value}`).join("|");
|
|
3987
3987
|
}
|
|
3988
3988
|
function Ta({
|
|
@@ -3996,17 +3996,17 @@ function Ta({
|
|
|
3996
3996
|
const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
3997
3997
|
`ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
|
|
3998
3998
|
), 0.01) : i, l = C(
|
|
3999
|
-
(
|
|
3999
|
+
(g) => Math.round(g / o) * o,
|
|
4000
4000
|
[o]
|
|
4001
|
-
),
|
|
4001
|
+
), m = P(null), [c, d] = I(null), [h, u] = I(e), p = Ra(e), w = P(p);
|
|
4002
4002
|
A(() => {
|
|
4003
|
-
|
|
4004
|
-
}, [
|
|
4005
|
-
const k = re(() =>
|
|
4006
|
-
(
|
|
4007
|
-
if (!
|
|
4008
|
-
const v =
|
|
4009
|
-
return l(
|
|
4003
|
+
w.current !== p && (w.current = p, !c && u(e));
|
|
4004
|
+
}, [p, e, c]);
|
|
4005
|
+
const k = re(() => xa(h, n, a), [h, n, a]), f = C(
|
|
4006
|
+
(g) => {
|
|
4007
|
+
if (!m.current) return n;
|
|
4008
|
+
const v = m.current.getBoundingClientRect(), _ = v.width || 1, D = Math.max(0, Math.min(1, (g - v.left) / _)), R = n + D * (a - n);
|
|
4009
|
+
return l(R);
|
|
4010
4010
|
},
|
|
4011
4011
|
[n, a, l]
|
|
4012
4012
|
);
|
|
@@ -4016,118 +4016,181 @@ function Ta({
|
|
|
4016
4016
|
);
|
|
4017
4017
|
}, [n, a]);
|
|
4018
4018
|
const b = C(
|
|
4019
|
-
(
|
|
4019
|
+
(g, v) => {
|
|
4020
4020
|
const _ = h.find((D) => D.id === v);
|
|
4021
|
-
s || _?.disabled || (
|
|
4021
|
+
s || _?.disabled || (g.preventDefault(), d(v));
|
|
4022
4022
|
},
|
|
4023
4023
|
[s, h]
|
|
4024
4024
|
), M = P(h);
|
|
4025
4025
|
M.current = h;
|
|
4026
4026
|
const N = P(t);
|
|
4027
4027
|
N.current = t, A(() => {
|
|
4028
|
-
if (!
|
|
4029
|
-
const
|
|
4028
|
+
if (!c) return;
|
|
4029
|
+
const g = (_) => {
|
|
4030
4030
|
const D = f(_.clientX);
|
|
4031
|
-
|
|
4032
|
-
(
|
|
4031
|
+
u(
|
|
4032
|
+
(R) => R.map((x) => x.id === c ? { ...x, value: D } : x)
|
|
4033
4033
|
);
|
|
4034
4034
|
}, v = (_) => {
|
|
4035
|
-
const D = f(_.clientX),
|
|
4036
|
-
(x) => x.id ===
|
|
4035
|
+
const D = f(_.clientX), R = M.current.map(
|
|
4036
|
+
(x) => x.id === c ? { ...x, value: D } : x
|
|
4037
4037
|
);
|
|
4038
|
-
|
|
4038
|
+
u(R), d(null), N.current(R);
|
|
4039
4039
|
};
|
|
4040
|
-
return window.addEventListener("pointermove",
|
|
4041
|
-
window.removeEventListener("pointermove",
|
|
4040
|
+
return window.addEventListener("pointermove", g), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
|
|
4041
|
+
window.removeEventListener("pointermove", g), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
|
|
4042
4042
|
};
|
|
4043
|
-
}, [
|
|
4044
|
-
const S = a - n > 0 ? a - n : 1,
|
|
4045
|
-
(
|
|
4043
|
+
}, [c, f]);
|
|
4044
|
+
const S = a - n > 0 ? a - n : 1, T = C(
|
|
4045
|
+
(g, v) => {
|
|
4046
4046
|
if (s || v.disabled) return;
|
|
4047
4047
|
const _ = a - n;
|
|
4048
4048
|
if (_ <= 0) return;
|
|
4049
|
-
const D =
|
|
4050
|
-
let
|
|
4051
|
-
switch (
|
|
4049
|
+
const D = g.shiftKey ? _ / 20 : _ / 100;
|
|
4050
|
+
let R = v.value;
|
|
4051
|
+
switch (g.key) {
|
|
4052
4052
|
case "ArrowRight":
|
|
4053
4053
|
case "ArrowUp":
|
|
4054
|
-
|
|
4054
|
+
R = v.value + D;
|
|
4055
4055
|
break;
|
|
4056
4056
|
case "ArrowLeft":
|
|
4057
4057
|
case "ArrowDown":
|
|
4058
|
-
|
|
4058
|
+
R = v.value - D;
|
|
4059
4059
|
break;
|
|
4060
4060
|
case "Home":
|
|
4061
|
-
|
|
4061
|
+
R = n;
|
|
4062
4062
|
break;
|
|
4063
4063
|
case "End":
|
|
4064
|
-
|
|
4064
|
+
R = a;
|
|
4065
4065
|
break;
|
|
4066
4066
|
default:
|
|
4067
4067
|
return;
|
|
4068
4068
|
}
|
|
4069
|
-
|
|
4070
|
-
const x = Math.max(n, Math.min(a,
|
|
4071
|
-
if (
|
|
4069
|
+
g.preventDefault();
|
|
4070
|
+
const x = Math.max(n, Math.min(a, R)), E = l(x);
|
|
4071
|
+
if (E === v.value) return;
|
|
4072
4072
|
const L = h.map(
|
|
4073
|
-
(Z) => Z.id === v.id ? { ...Z, value:
|
|
4073
|
+
(Z) => Z.id === v.id ? { ...Z, value: E } : Z
|
|
4074
4074
|
);
|
|
4075
|
-
|
|
4075
|
+
u(L), t(L);
|
|
4076
4076
|
},
|
|
4077
4077
|
[s, n, a, h, t, l]
|
|
4078
4078
|
);
|
|
4079
4079
|
return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
|
|
4080
4080
|
"div",
|
|
4081
4081
|
{
|
|
4082
|
-
ref:
|
|
4082
|
+
ref: m,
|
|
4083
4083
|
className: "gloss-threshold-ramp__track",
|
|
4084
4084
|
style: { background: k },
|
|
4085
|
-
children: h.map((
|
|
4086
|
-
const v = (
|
|
4085
|
+
children: h.map((g) => {
|
|
4086
|
+
const v = (g.value - n) / S * 100;
|
|
4087
4087
|
return /* @__PURE__ */ r(
|
|
4088
4088
|
"span",
|
|
4089
4089
|
{
|
|
4090
4090
|
className: "gloss-threshold-ramp__stop",
|
|
4091
4091
|
style: {
|
|
4092
4092
|
left: `${v}%`,
|
|
4093
|
-
color:
|
|
4093
|
+
color: ge(g)
|
|
4094
4094
|
},
|
|
4095
|
-
"data-disabled":
|
|
4096
|
-
"data-dragging":
|
|
4097
|
-
onPointerDown: (_) => b(_,
|
|
4098
|
-
onKeyDown: (_) =>
|
|
4099
|
-
"aria-label":
|
|
4095
|
+
"data-disabled": g.disabled || void 0,
|
|
4096
|
+
"data-dragging": c === g.id || void 0,
|
|
4097
|
+
onPointerDown: (_) => b(_, g.id),
|
|
4098
|
+
onKeyDown: (_) => T(_, g),
|
|
4099
|
+
"aria-label": g.label ?? `Stop at ${g.value}`,
|
|
4100
4100
|
role: "slider",
|
|
4101
|
-
"aria-valuenow":
|
|
4101
|
+
"aria-valuenow": g.value,
|
|
4102
4102
|
"aria-valuemin": n,
|
|
4103
4103
|
"aria-valuemax": a,
|
|
4104
|
-
"aria-disabled":
|
|
4105
|
-
tabIndex:
|
|
4104
|
+
"aria-disabled": g.disabled || s || void 0,
|
|
4105
|
+
tabIndex: g.disabled || s ? -1 : 0
|
|
4106
4106
|
},
|
|
4107
|
-
|
|
4107
|
+
g.id
|
|
4108
4108
|
);
|
|
4109
4109
|
})
|
|
4110
4110
|
}
|
|
4111
4111
|
) });
|
|
4112
4112
|
}
|
|
4113
4113
|
Ta.displayName = "ThresholdRamp";
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4114
|
+
function Ma(e, t, n, a) {
|
|
4115
|
+
switch (t) {
|
|
4116
|
+
case "above-right":
|
|
4117
|
+
return {
|
|
4118
|
+
top: e.top - n + a.y,
|
|
4119
|
+
left: e.right + a.x,
|
|
4120
|
+
transform: "translate(-100%, -100%)",
|
|
4121
|
+
transformOrigin: "bottom right"
|
|
4122
|
+
};
|
|
4123
|
+
case "above-left":
|
|
4124
|
+
return {
|
|
4125
|
+
top: e.top - n + a.y,
|
|
4126
|
+
left: e.left + a.x,
|
|
4127
|
+
transform: "translate(0, -100%)",
|
|
4128
|
+
transformOrigin: "bottom left"
|
|
4129
|
+
};
|
|
4130
|
+
case "below-right":
|
|
4131
|
+
return {
|
|
4132
|
+
top: e.bottom + n + a.y,
|
|
4133
|
+
left: e.right + a.x,
|
|
4134
|
+
transform: "translate(-100%, 0)",
|
|
4135
|
+
transformOrigin: "top right"
|
|
4136
|
+
};
|
|
4137
|
+
case "below-left":
|
|
4138
|
+
default:
|
|
4139
|
+
return {
|
|
4140
|
+
top: e.bottom + n + a.y,
|
|
4141
|
+
left: e.left + a.x,
|
|
4142
|
+
transform: "translate(0, 0)",
|
|
4143
|
+
transformOrigin: "top left"
|
|
4144
|
+
};
|
|
4145
|
+
}
|
|
4117
4146
|
}
|
|
4118
|
-
function
|
|
4119
|
-
const
|
|
4147
|
+
function Pa(e) {
|
|
4148
|
+
const { anchorRef: t, placement: n, gap: a = 8, offset: i, isOpen: s = !0 } = e, o = P({ x: i?.x ?? 0, y: i?.y ?? 0 });
|
|
4149
|
+
o.current = { x: i?.x ?? 0, y: i?.y ?? 0 };
|
|
4150
|
+
const [l, m] = I({});
|
|
4151
|
+
return Ie(() => {
|
|
4152
|
+
if (typeof window > "u" || !s) return;
|
|
4153
|
+
const c = t.current;
|
|
4154
|
+
if (!c) return;
|
|
4155
|
+
const d = () => {
|
|
4156
|
+
const u = c.getBoundingClientRect();
|
|
4157
|
+
m(Ma(u, n, a, o.current));
|
|
4158
|
+
};
|
|
4159
|
+
d();
|
|
4160
|
+
let h = null;
|
|
4161
|
+
return typeof ResizeObserver < "u" && (h = new ResizeObserver(d), h.observe(c)), window.addEventListener("scroll", d, { capture: !0, passive: !0 }), window.addEventListener("resize", d, { passive: !0 }), () => {
|
|
4162
|
+
h?.disconnect(), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
|
|
4163
|
+
};
|
|
4164
|
+
}, [t, n, a, s]), { style: l };
|
|
4165
|
+
}
|
|
4166
|
+
const Ia = {
|
|
4167
|
+
position: "fixed",
|
|
4168
|
+
zIndex: 9999
|
|
4169
|
+
};
|
|
4170
|
+
function Ea(e) {
|
|
4171
|
+
const { anchorRef: t, placement: n, gap: a, offset: i, dataHost: s, isOpen: o = !0, className: l, children: m } = e, { style: c } = Pa({ anchorRef: t, placement: n, gap: a, offset: i, isOpen: o });
|
|
4172
|
+
return typeof window > "u" || typeof document > "u" || !o ? null : Ee(
|
|
4173
|
+
/* @__PURE__ */ r("div", { "data-portal-host": s, className: l, style: { ...Ia, ...c }, children: m }),
|
|
4174
|
+
document.body
|
|
4175
|
+
);
|
|
4176
|
+
}
|
|
4177
|
+
const je = tt(null);
|
|
4178
|
+
function Aa() {
|
|
4179
|
+
return at(je);
|
|
4180
|
+
}
|
|
4181
|
+
function Fa({ option: e }) {
|
|
4182
|
+
const t = Aa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = C(() => {
|
|
4120
4183
|
a || t?.select(e.value);
|
|
4121
4184
|
}, [a, t, e.value]), s = C(
|
|
4122
|
-
(
|
|
4123
|
-
a || t?.onKeyNav(
|
|
4185
|
+
(c) => {
|
|
4186
|
+
a || t?.onKeyNav(c, e.value);
|
|
4124
4187
|
},
|
|
4125
4188
|
[a, t, e.value]
|
|
4126
|
-
), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value,
|
|
4189
|
+
), 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;
|
|
4127
4190
|
return /* @__PURE__ */ r(
|
|
4128
4191
|
"button",
|
|
4129
4192
|
{
|
|
4130
|
-
ref: (
|
|
4193
|
+
ref: (c) => t?.registerRef(e.value, c),
|
|
4131
4194
|
type: "button",
|
|
4132
4195
|
role: "radio",
|
|
4133
4196
|
"aria-checked": n,
|
|
@@ -4139,13 +4202,13 @@ function Ma({ option: e }) {
|
|
|
4139
4202
|
"aria-label": e.label ?? e.value,
|
|
4140
4203
|
"aria-disabled": a,
|
|
4141
4204
|
disabled: a,
|
|
4142
|
-
tabIndex:
|
|
4205
|
+
tabIndex: m,
|
|
4143
4206
|
onClick: i,
|
|
4144
4207
|
onKeyDown: s
|
|
4145
4208
|
}
|
|
4146
4209
|
);
|
|
4147
4210
|
}
|
|
4148
|
-
function
|
|
4211
|
+
function Oa({
|
|
4149
4212
|
swatches: e,
|
|
4150
4213
|
value: t,
|
|
4151
4214
|
defaultValue: n,
|
|
@@ -4153,65 +4216,65 @@ function Pa({
|
|
|
4153
4216
|
disabled: i = !1,
|
|
4154
4217
|
name: s
|
|
4155
4218
|
}) {
|
|
4156
|
-
const o = t !== void 0, [l,
|
|
4219
|
+
const o = t !== void 0, [l, m] = I(n), c = o ? t : l, d = C(
|
|
4157
4220
|
(N) => {
|
|
4158
|
-
o ||
|
|
4221
|
+
o || m(N), a?.(N);
|
|
4159
4222
|
},
|
|
4160
4223
|
[o, a]
|
|
4161
4224
|
), h = C(
|
|
4162
|
-
(N) =>
|
|
4163
|
-
[
|
|
4164
|
-
),
|
|
4165
|
-
S ?
|
|
4166
|
-
}, []),
|
|
4167
|
-
const S =
|
|
4225
|
+
(N) => c === N,
|
|
4226
|
+
[c]
|
|
4227
|
+
), u = P(/* @__PURE__ */ new Map()), p = C((N, S) => {
|
|
4228
|
+
S ? u.current.set(N, S) : u.current.delete(N);
|
|
4229
|
+
}, []), w = e.filter((N) => !N.disabled && !i), k = w.find((N) => N.value === c)?.value ?? w[0]?.value, f = C((N) => {
|
|
4230
|
+
const S = u.current.get(N);
|
|
4168
4231
|
S && S.focus();
|
|
4169
4232
|
}, []), b = C(
|
|
4170
4233
|
(N, S) => {
|
|
4171
4234
|
if (i) return;
|
|
4172
|
-
const
|
|
4173
|
-
if (
|
|
4174
|
-
const
|
|
4175
|
-
if (
|
|
4176
|
-
let v =
|
|
4235
|
+
const T = e.filter((D) => !D.disabled);
|
|
4236
|
+
if (T.length === 0) return;
|
|
4237
|
+
const g = T.findIndex((D) => D.value === S);
|
|
4238
|
+
if (g === -1) return;
|
|
4239
|
+
let v = g;
|
|
4177
4240
|
switch (N.key) {
|
|
4178
4241
|
case "ArrowRight":
|
|
4179
4242
|
case "ArrowDown":
|
|
4180
|
-
v = (
|
|
4243
|
+
v = (g + 1) % T.length;
|
|
4181
4244
|
break;
|
|
4182
4245
|
case "ArrowLeft":
|
|
4183
4246
|
case "ArrowUp":
|
|
4184
|
-
v = (
|
|
4247
|
+
v = (g - 1 + T.length) % T.length;
|
|
4185
4248
|
break;
|
|
4186
4249
|
case "Home":
|
|
4187
4250
|
v = 0;
|
|
4188
4251
|
break;
|
|
4189
4252
|
case "End":
|
|
4190
|
-
v =
|
|
4253
|
+
v = T.length - 1;
|
|
4191
4254
|
break;
|
|
4192
4255
|
case " ":
|
|
4193
4256
|
case "Enter":
|
|
4194
|
-
N.preventDefault(),
|
|
4257
|
+
N.preventDefault(), d(S);
|
|
4195
4258
|
return;
|
|
4196
4259
|
default:
|
|
4197
4260
|
return;
|
|
4198
4261
|
}
|
|
4199
4262
|
N.preventDefault();
|
|
4200
|
-
const _ =
|
|
4201
|
-
f(_),
|
|
4263
|
+
const _ = T[v].value;
|
|
4264
|
+
f(_), d(_);
|
|
4202
4265
|
},
|
|
4203
|
-
[i, e,
|
|
4266
|
+
[i, e, d, f]
|
|
4204
4267
|
), M = {
|
|
4205
|
-
selectedValue:
|
|
4206
|
-
select:
|
|
4268
|
+
selectedValue: c,
|
|
4269
|
+
select: d,
|
|
4207
4270
|
isSelected: h,
|
|
4208
4271
|
groupDisabled: i,
|
|
4209
4272
|
name: s,
|
|
4210
|
-
registerRef:
|
|
4273
|
+
registerRef: p,
|
|
4211
4274
|
firstFocusableValue: k,
|
|
4212
4275
|
onKeyNav: b
|
|
4213
4276
|
};
|
|
4214
|
-
return /* @__PURE__ */ r(
|
|
4277
|
+
return /* @__PURE__ */ r(je.Provider, { value: M, children: /* @__PURE__ */ r(
|
|
4215
4278
|
"div",
|
|
4216
4279
|
{
|
|
4217
4280
|
className: "gloss-preset-swatch-row",
|
|
@@ -4219,11 +4282,11 @@ function Pa({
|
|
|
4219
4282
|
"aria-label": s,
|
|
4220
4283
|
"aria-disabled": i,
|
|
4221
4284
|
"data-disabled": i || void 0,
|
|
4222
|
-
children: e.map((N) => /* @__PURE__ */ r(
|
|
4285
|
+
children: e.map((N) => /* @__PURE__ */ r(Fa, { option: N }, N.value))
|
|
4223
4286
|
}
|
|
4224
4287
|
) });
|
|
4225
4288
|
}
|
|
4226
|
-
|
|
4289
|
+
Oa.displayName = "PresetSwatchRow";
|
|
4227
4290
|
function he(e, t) {
|
|
4228
4291
|
for (const n of e)
|
|
4229
4292
|
if (n.items.some((a) => a.id === t))
|
|
@@ -4234,46 +4297,46 @@ function Pe(e, t) {
|
|
|
4234
4297
|
const n = e.find((a) => a.zoneKey === t);
|
|
4235
4298
|
return n ? n.zoneKey : he(e, t);
|
|
4236
4299
|
}
|
|
4237
|
-
function
|
|
4300
|
+
function La(e, t, n) {
|
|
4238
4301
|
const a = [...e], [i] = a.splice(t, 1);
|
|
4239
4302
|
return a.splice(n, 0, i), a;
|
|
4240
4303
|
}
|
|
4241
|
-
function
|
|
4304
|
+
function $a(e) {
|
|
4242
4305
|
return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
|
|
4243
4306
|
}
|
|
4244
|
-
function
|
|
4245
|
-
const [t, n] =
|
|
4307
|
+
function za(e) {
|
|
4308
|
+
const [t, n] = I(
|
|
4246
4309
|
() => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4247
4310
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
4248
4311
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4249
|
-
), [a, i] =
|
|
4250
|
-
|
|
4251
|
-
const
|
|
4252
|
-
() =>
|
|
4312
|
+
), [a, i] = I(null), [s, o] = I(null), l = P(null), m = P(e.onZoneChange);
|
|
4313
|
+
m.current = e.onZoneChange;
|
|
4314
|
+
const c = re(
|
|
4315
|
+
() => $a(e.zones),
|
|
4253
4316
|
[e.zones]
|
|
4254
|
-
),
|
|
4317
|
+
), d = P(c);
|
|
4255
4318
|
A(() => {
|
|
4256
|
-
|
|
4319
|
+
d.current !== c && (d.current = c, !a && n(
|
|
4257
4320
|
e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
4258
4321
|
`useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
|
|
4259
4322
|
), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
|
|
4260
4323
|
));
|
|
4261
|
-
}, [
|
|
4324
|
+
}, [c, e.zones, a]);
|
|
4262
4325
|
const h = C(
|
|
4263
4326
|
(f) => {
|
|
4264
4327
|
const b = f.active.id;
|
|
4265
4328
|
let M = null, N = null;
|
|
4266
4329
|
for (const S of t) {
|
|
4267
|
-
const
|
|
4268
|
-
if (
|
|
4269
|
-
M =
|
|
4330
|
+
const T = S.items.find((g) => g.id === b);
|
|
4331
|
+
if (T) {
|
|
4332
|
+
M = T, N = S.zoneKey;
|
|
4270
4333
|
break;
|
|
4271
4334
|
}
|
|
4272
4335
|
}
|
|
4273
4336
|
l.current = N, i(M), o(N);
|
|
4274
4337
|
},
|
|
4275
4338
|
[t]
|
|
4276
|
-
),
|
|
4339
|
+
), u = C(
|
|
4277
4340
|
(f) => {
|
|
4278
4341
|
if (!f.over) {
|
|
4279
4342
|
o(l.current);
|
|
@@ -4283,7 +4346,7 @@ function Aa(e) {
|
|
|
4283
4346
|
o(b);
|
|
4284
4347
|
},
|
|
4285
4348
|
[t]
|
|
4286
|
-
),
|
|
4349
|
+
), p = C(
|
|
4287
4350
|
(f) => {
|
|
4288
4351
|
const { active: b, over: M } = f, N = () => {
|
|
4289
4352
|
l.current = null, i(null), o(null);
|
|
@@ -4292,41 +4355,41 @@ function Aa(e) {
|
|
|
4292
4355
|
N();
|
|
4293
4356
|
return;
|
|
4294
4357
|
}
|
|
4295
|
-
const S = he(t, b.id),
|
|
4296
|
-
if (!S || !
|
|
4358
|
+
const S = he(t, b.id), T = Pe(t, M.id);
|
|
4359
|
+
if (!S || !T) {
|
|
4297
4360
|
N();
|
|
4298
4361
|
return;
|
|
4299
4362
|
}
|
|
4300
|
-
let
|
|
4301
|
-
if (S ===
|
|
4302
|
-
const v =
|
|
4303
|
-
|
|
4363
|
+
let g = t.map((v) => ({ ...v, items: [...v.items] }));
|
|
4364
|
+
if (S === T) {
|
|
4365
|
+
const v = g.findIndex((E) => E.zoneKey === S), _ = g[v], D = _.items.findIndex((E) => E.id === b.id), R = _.items.findIndex((E) => E.id === M.id), x = R >= 0 ? R : Math.max(0, _.items.length - 1);
|
|
4366
|
+
g[v] = {
|
|
4304
4367
|
..._,
|
|
4305
|
-
items:
|
|
4368
|
+
items: La(_.items, D, x)
|
|
4306
4369
|
};
|
|
4307
4370
|
} else {
|
|
4308
|
-
const v =
|
|
4371
|
+
const v = g.findIndex((O) => O.zoneKey === S), _ = g.findIndex((O) => O.zoneKey === T), D = g[v], R = g[_], x = D.items.find((O) => O.id === b.id);
|
|
4309
4372
|
if (!x) {
|
|
4310
4373
|
N();
|
|
4311
4374
|
return;
|
|
4312
4375
|
}
|
|
4313
|
-
const
|
|
4314
|
-
let be =
|
|
4315
|
-
if (
|
|
4376
|
+
const E = D.items.filter((O) => O.id !== b.id), L = R.items.findIndex((O) => O.id === M.id), Z = L >= 0 ? L : R.items.length;
|
|
4377
|
+
let be = E, H = [...R.items];
|
|
4378
|
+
if (R.maxItems !== void 0 && H.length >= R.maxItems) {
|
|
4316
4379
|
const O = H[H.length - 1];
|
|
4317
|
-
H = H.slice(0,
|
|
4380
|
+
H = H.slice(0, R.maxItems - 1), be = [...E, O];
|
|
4318
4381
|
}
|
|
4319
|
-
const ve = Math.min(Z, H.length),
|
|
4382
|
+
const ve = Math.min(Z, H.length), qe = [
|
|
4320
4383
|
...H.slice(0, ve),
|
|
4321
4384
|
x,
|
|
4322
4385
|
...H.slice(ve)
|
|
4323
4386
|
];
|
|
4324
|
-
|
|
4387
|
+
g[v] = { ...D, items: be }, g[_] = { ...R, items: qe };
|
|
4325
4388
|
}
|
|
4326
|
-
n(
|
|
4389
|
+
n(g), m.current?.(g), N();
|
|
4327
4390
|
},
|
|
4328
4391
|
[t]
|
|
4329
|
-
),
|
|
4392
|
+
), w = C(
|
|
4330
4393
|
(f) => ({
|
|
4331
4394
|
id: f,
|
|
4332
4395
|
"data-zone-key": f
|
|
@@ -4347,15 +4410,15 @@ function Aa(e) {
|
|
|
4347
4410
|
zones: t,
|
|
4348
4411
|
activeZone: s,
|
|
4349
4412
|
activeItem: a,
|
|
4350
|
-
getZoneProps:
|
|
4413
|
+
getZoneProps: w,
|
|
4351
4414
|
getItemProps: k,
|
|
4352
4415
|
handleDragStart: h,
|
|
4353
|
-
handleDragOver:
|
|
4354
|
-
handleDragEnd:
|
|
4416
|
+
handleDragOver: u,
|
|
4417
|
+
handleDragEnd: p
|
|
4355
4418
|
};
|
|
4356
4419
|
}
|
|
4357
4420
|
let Q = null, ne = null, le = !1;
|
|
4358
|
-
const
|
|
4421
|
+
const Ba = [
|
|
4359
4422
|
"DndContext",
|
|
4360
4423
|
"DragOverlay",
|
|
4361
4424
|
"useSensors",
|
|
@@ -4364,21 +4427,21 @@ const Fa = [
|
|
|
4364
4427
|
"PointerSensor",
|
|
4365
4428
|
"KeyboardSensor",
|
|
4366
4429
|
"closestCenter"
|
|
4367
|
-
],
|
|
4430
|
+
], Ka = [
|
|
4368
4431
|
"SortableContext",
|
|
4369
4432
|
"useSortable",
|
|
4370
4433
|
"verticalListSortingStrategy"
|
|
4371
4434
|
];
|
|
4372
|
-
function
|
|
4435
|
+
function Ga(e, t) {
|
|
4373
4436
|
const n = [], a = e ?? {};
|
|
4374
|
-
for (const s of
|
|
4437
|
+
for (const s of Ba)
|
|
4375
4438
|
a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
|
|
4376
4439
|
const i = t ?? {};
|
|
4377
|
-
for (const s of
|
|
4440
|
+
for (const s of Ka)
|
|
4378
4441
|
i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
|
|
4379
4442
|
return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
|
|
4380
4443
|
}
|
|
4381
|
-
function
|
|
4444
|
+
function Ha() {
|
|
4382
4445
|
return Q ? Promise.resolve(Q) : le ? Promise.resolve(null) : ne || (ne = (async () => {
|
|
4383
4446
|
try {
|
|
4384
4447
|
const [e, t, n] = await Promise.all([
|
|
@@ -4387,7 +4450,7 @@ function $a() {
|
|
|
4387
4450
|
import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
|
|
4388
4451
|
"SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
|
|
4389
4452
|
), {}))
|
|
4390
|
-
]), a =
|
|
4453
|
+
]), a = Ga(e, t);
|
|
4391
4454
|
return a.ok ? (Q = {
|
|
4392
4455
|
core: e,
|
|
4393
4456
|
sortable: t,
|
|
@@ -4400,18 +4463,18 @@ function $a() {
|
|
|
4400
4463
|
}
|
|
4401
4464
|
})(), ne);
|
|
4402
4465
|
}
|
|
4403
|
-
function
|
|
4404
|
-
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o =
|
|
4466
|
+
function Wa(e) {
|
|
4467
|
+
const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = za({ zones: t, onZoneChange: n }), [l, m] = F.useState(Q);
|
|
4405
4468
|
return F.useEffect(() => {
|
|
4406
4469
|
if (l) return;
|
|
4407
|
-
let
|
|
4408
|
-
return
|
|
4409
|
-
|
|
4470
|
+
let c = !0;
|
|
4471
|
+
return Ha().then((d) => {
|
|
4472
|
+
c && m(d);
|
|
4410
4473
|
}), () => {
|
|
4411
|
-
|
|
4474
|
+
c = !1;
|
|
4412
4475
|
};
|
|
4413
4476
|
}, [l]), l ? /* @__PURE__ */ r(
|
|
4414
|
-
|
|
4477
|
+
Ue,
|
|
4415
4478
|
{
|
|
4416
4479
|
state: o,
|
|
4417
4480
|
modules: l,
|
|
@@ -4419,24 +4482,24 @@ function za(e) {
|
|
|
4419
4482
|
renderItem: i,
|
|
4420
4483
|
renderDragOverlay: s
|
|
4421
4484
|
}
|
|
4422
|
-
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((
|
|
4423
|
-
const
|
|
4424
|
-
return /* @__PURE__ */ r("div", { ...o.getZoneProps(
|
|
4485
|
+
) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((c) => {
|
|
4486
|
+
const d = c.items.map((h) => /* @__PURE__ */ r(F.Fragment, { children: i(h) }, h.id));
|
|
4487
|
+
return /* @__PURE__ */ r("div", { ...o.getZoneProps(c.zoneKey), children: a(c.zoneKey, c.items, d) }, c.zoneKey);
|
|
4425
4488
|
}) });
|
|
4426
4489
|
}
|
|
4427
|
-
|
|
4428
|
-
function
|
|
4490
|
+
Wa.displayName = "SortableZones";
|
|
4491
|
+
function Ue({
|
|
4429
4492
|
state: e,
|
|
4430
4493
|
modules: t,
|
|
4431
4494
|
renderZone: n,
|
|
4432
4495
|
renderItem: a,
|
|
4433
4496
|
renderDragOverlay: i
|
|
4434
4497
|
}) {
|
|
4435
|
-
const { core: s, sortable: o, utilities: l } = t, { DndContext:
|
|
4436
|
-
h(
|
|
4437
|
-
h(
|
|
4438
|
-
), N =
|
|
4439
|
-
return /* @__PURE__ */
|
|
4498
|
+
const { core: s, sortable: o, utilities: l } = t, { DndContext: m, DragOverlay: c, useSensors: d, useSensor: h, useDroppable: u, PointerSensor: p, KeyboardSensor: w, closestCenter: k } = s, { SortableContext: f, verticalListSortingStrategy: b } = o, M = d(
|
|
4499
|
+
h(p, { activationConstraint: { distance: 5 } }),
|
|
4500
|
+
h(w)
|
|
4501
|
+
), N = m, S = c, T = f;
|
|
4502
|
+
return /* @__PURE__ */ y(
|
|
4440
4503
|
N,
|
|
4441
4504
|
{
|
|
4442
4505
|
sensors: M,
|
|
@@ -4445,9 +4508,9 @@ function Ve({
|
|
|
4445
4508
|
onDragOver: e.handleDragOver,
|
|
4446
4509
|
onDragEnd: e.handleDragEnd,
|
|
4447
4510
|
children: [
|
|
4448
|
-
e.zones.map((
|
|
4449
|
-
const v =
|
|
4450
|
-
|
|
4511
|
+
e.zones.map((g) => {
|
|
4512
|
+
const v = g.items.map((D) => D.id), _ = g.items.map((D) => /* @__PURE__ */ r(
|
|
4513
|
+
Ye,
|
|
4451
4514
|
{
|
|
4452
4515
|
id: D.id,
|
|
4453
4516
|
useSortable: o.useSortable,
|
|
@@ -4457,14 +4520,14 @@ function Ve({
|
|
|
4457
4520
|
D.id
|
|
4458
4521
|
));
|
|
4459
4522
|
return /* @__PURE__ */ r(
|
|
4460
|
-
|
|
4523
|
+
Ze,
|
|
4461
4524
|
{
|
|
4462
|
-
zoneKey:
|
|
4463
|
-
zoneProps: e.getZoneProps(
|
|
4464
|
-
useDroppable:
|
|
4465
|
-
children: /* @__PURE__ */ r(
|
|
4525
|
+
zoneKey: g.zoneKey,
|
|
4526
|
+
zoneProps: e.getZoneProps(g.zoneKey),
|
|
4527
|
+
useDroppable: u,
|
|
4528
|
+
children: /* @__PURE__ */ r(T, { items: v, strategy: b, children: n(g.zoneKey, g.items, _) })
|
|
4466
4529
|
},
|
|
4467
|
-
|
|
4530
|
+
g.zoneKey
|
|
4468
4531
|
);
|
|
4469
4532
|
}),
|
|
4470
4533
|
/* @__PURE__ */ r(S, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
@@ -4472,17 +4535,17 @@ function Ve({
|
|
|
4472
4535
|
}
|
|
4473
4536
|
);
|
|
4474
4537
|
}
|
|
4475
|
-
|
|
4476
|
-
function
|
|
4477
|
-
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition:
|
|
4538
|
+
Ue.displayName = "SortableZonesInner";
|
|
4539
|
+
function Ye({ id: e, useSortable: t, cssHelper: n, children: a }) {
|
|
4540
|
+
const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: m, isDragging: c } = t({ id: e }), d = {
|
|
4478
4541
|
transform: n?.Transform?.toString(l) ?? void 0,
|
|
4479
|
-
transition:
|
|
4480
|
-
opacity:
|
|
4542
|
+
transition: m,
|
|
4543
|
+
opacity: c ? 0.5 : 1
|
|
4481
4544
|
};
|
|
4482
|
-
return /* @__PURE__ */ r("div", { ref: o, style:
|
|
4545
|
+
return /* @__PURE__ */ r("div", { ref: o, style: d, "data-sortable-item-id": e, ...i, ...s, children: a });
|
|
4483
4546
|
}
|
|
4484
|
-
|
|
4485
|
-
function
|
|
4547
|
+
Ye.displayName = "SortableItem";
|
|
4548
|
+
function Ze({
|
|
4486
4549
|
zoneKey: e,
|
|
4487
4550
|
zoneProps: t,
|
|
4488
4551
|
useDroppable: n,
|
|
@@ -4491,8 +4554,8 @@ function Ue({
|
|
|
4491
4554
|
const { setNodeRef: i, isOver: s } = n({ id: e });
|
|
4492
4555
|
return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
|
|
4493
4556
|
}
|
|
4494
|
-
|
|
4495
|
-
function
|
|
4557
|
+
Ze.displayName = "ZoneDroppable";
|
|
4558
|
+
function kr({
|
|
4496
4559
|
slotLeft: e,
|
|
4497
4560
|
slotCenter: t,
|
|
4498
4561
|
slotRight: n,
|
|
@@ -4505,7 +4568,7 @@ function wr({
|
|
|
4505
4568
|
"--gloss-bottom-toolbar-height": `${a}px`,
|
|
4506
4569
|
...s
|
|
4507
4570
|
};
|
|
4508
|
-
return /* @__PURE__ */
|
|
4571
|
+
return /* @__PURE__ */ y(
|
|
4509
4572
|
"div",
|
|
4510
4573
|
{
|
|
4511
4574
|
role: "toolbar",
|
|
@@ -4542,7 +4605,7 @@ function wr({
|
|
|
4542
4605
|
}
|
|
4543
4606
|
);
|
|
4544
4607
|
}
|
|
4545
|
-
function
|
|
4608
|
+
function Dr({
|
|
4546
4609
|
count: e,
|
|
4547
4610
|
currentIndex: t,
|
|
4548
4611
|
onSelect: n,
|
|
@@ -4551,29 +4614,29 @@ function _r({
|
|
|
4551
4614
|
pulseIndex: s,
|
|
4552
4615
|
pulseNonce: o,
|
|
4553
4616
|
currentSection: l,
|
|
4554
|
-
sectionsPerView:
|
|
4617
|
+
sectionsPerView: m = 1,
|
|
4555
4618
|
// D-09 default
|
|
4556
|
-
isHiding:
|
|
4619
|
+
isHiding: c
|
|
4557
4620
|
}) {
|
|
4558
|
-
const
|
|
4559
|
-
return
|
|
4621
|
+
const d = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, d)), u = Math.min(e - 1, h + Math.max(0, m - 1)), p = [h, u], w = B.useRef([]);
|
|
4622
|
+
return w.current.length = e, !c && e <= 1 || !c && p[0] === 0 && p[1] === e - 1 ? null : /* @__PURE__ */ y(
|
|
4560
4623
|
"div",
|
|
4561
4624
|
{
|
|
4562
4625
|
role: "tablist",
|
|
4563
4626
|
"aria-label": a,
|
|
4564
4627
|
"data-testid": "gloss-section-dots",
|
|
4565
4628
|
className: "gloss-section-dots",
|
|
4566
|
-
"data-hiding":
|
|
4629
|
+
"data-hiding": c ? "true" : void 0,
|
|
4567
4630
|
onKeyDown: (f) => {
|
|
4568
4631
|
if (e !== 0) {
|
|
4569
4632
|
if (f.key === "ArrowRight") {
|
|
4570
4633
|
f.preventDefault();
|
|
4571
|
-
const b = (
|
|
4572
|
-
n(b), requestAnimationFrame(() =>
|
|
4634
|
+
const b = (d + 1) % e;
|
|
4635
|
+
n(b), requestAnimationFrame(() => w.current[b]?.focus());
|
|
4573
4636
|
} else if (f.key === "ArrowLeft") {
|
|
4574
4637
|
f.preventDefault();
|
|
4575
|
-
const b = (
|
|
4576
|
-
n(b), requestAnimationFrame(() =>
|
|
4638
|
+
const b = (d - 1 + e) % e;
|
|
4639
|
+
n(b), requestAnimationFrame(() => w.current[b]?.focus());
|
|
4577
4640
|
}
|
|
4578
4641
|
}
|
|
4579
4642
|
},
|
|
@@ -4584,8 +4647,8 @@ function _r({
|
|
|
4584
4647
|
className: "gloss-section-dots__blob",
|
|
4585
4648
|
"aria-hidden": "true",
|
|
4586
4649
|
style: {
|
|
4587
|
-
"--blob-start":
|
|
4588
|
-
"--blob-end":
|
|
4650
|
+
"--blob-start": p[0],
|
|
4651
|
+
"--blob-end": p[1]
|
|
4589
4652
|
}
|
|
4590
4653
|
}
|
|
4591
4654
|
),
|
|
@@ -4593,17 +4656,17 @@ function _r({
|
|
|
4593
4656
|
"button",
|
|
4594
4657
|
{
|
|
4595
4658
|
ref: (M) => {
|
|
4596
|
-
|
|
4659
|
+
w.current[b] = M;
|
|
4597
4660
|
},
|
|
4598
4661
|
type: "button",
|
|
4599
4662
|
role: "tab",
|
|
4600
|
-
"aria-selected": b ===
|
|
4663
|
+
"aria-selected": b === d,
|
|
4601
4664
|
"aria-label": b === i ? "Unconfirmed section" : `Section ${b + 1}`,
|
|
4602
|
-
"data-state": b === i ? "provisional-hollow" : b === s ? "pulse" : b ===
|
|
4665
|
+
"data-state": b === i ? "provisional-hollow" : b === s ? "pulse" : b === d ? "current" : "hollow",
|
|
4603
4666
|
"data-section-index": b,
|
|
4604
4667
|
className: [
|
|
4605
4668
|
"gloss-section-dots__dot",
|
|
4606
|
-
b ===
|
|
4669
|
+
b === d && "gloss-section-dots__dot--current"
|
|
4607
4670
|
].filter(Boolean).join(" "),
|
|
4608
4671
|
onClick: () => n(b)
|
|
4609
4672
|
},
|
|
@@ -4613,371 +4676,450 @@ function _r({
|
|
|
4613
4676
|
}
|
|
4614
4677
|
);
|
|
4615
4678
|
}
|
|
4616
|
-
|
|
4679
|
+
function xr(e) {
|
|
4680
|
+
const { anchorRef: t, isOpen: n, onRequestClose: a, onPopoverEnter: i, onPopoverLeave: s, children: o } = e, l = P(!0);
|
|
4681
|
+
return A(() => (l.current = !0, () => {
|
|
4682
|
+
l.current = !1;
|
|
4683
|
+
}), []), n ? /* @__PURE__ */ r(
|
|
4684
|
+
Ea,
|
|
4685
|
+
{
|
|
4686
|
+
anchorRef: t,
|
|
4687
|
+
placement: "above-right",
|
|
4688
|
+
gap: 8,
|
|
4689
|
+
dataHost: "bell-popover",
|
|
4690
|
+
isOpen: n,
|
|
4691
|
+
className: "bell-popover",
|
|
4692
|
+
children: /* @__PURE__ */ y(
|
|
4693
|
+
"div",
|
|
4694
|
+
{
|
|
4695
|
+
className: "bell-popover__panel",
|
|
4696
|
+
role: "dialog",
|
|
4697
|
+
"aria-label": "Notifications preview",
|
|
4698
|
+
onMouseEnter: i,
|
|
4699
|
+
onMouseLeave: s,
|
|
4700
|
+
children: [
|
|
4701
|
+
/* @__PURE__ */ r("div", { className: "bell-popover__header", children: /* @__PURE__ */ r("h4", { className: "bell-popover__title", children: "Notifications" }) }),
|
|
4702
|
+
/* @__PURE__ */ r("div", { className: "bell-popover__body", children: o ?? /* @__PURE__ */ r("em", { className: "bell-popover__placeholder", children: "No recent notifications" }) }),
|
|
4703
|
+
/* @__PURE__ */ r("div", { className: "bell-popover__footer", children: /* @__PURE__ */ r(
|
|
4704
|
+
"button",
|
|
4705
|
+
{
|
|
4706
|
+
type: "button",
|
|
4707
|
+
"data-action": "open-notification-center",
|
|
4708
|
+
className: "bell-popover__open",
|
|
4709
|
+
onClick: () => {
|
|
4710
|
+
l.current && a();
|
|
4711
|
+
},
|
|
4712
|
+
children: "Open notification center"
|
|
4713
|
+
}
|
|
4714
|
+
) })
|
|
4715
|
+
]
|
|
4716
|
+
}
|
|
4717
|
+
)
|
|
4718
|
+
}
|
|
4719
|
+
) : null;
|
|
4720
|
+
}
|
|
4721
|
+
function Rr(e) {
|
|
4722
|
+
const { mode: t, count: n, anchorRef: a } = e, i = P(null), [s, o] = I({ cx: 0, cy: 0, r: 14 });
|
|
4723
|
+
return Ie(() => {
|
|
4724
|
+
if (t == null) return;
|
|
4725
|
+
const l = i.current, m = a.current;
|
|
4726
|
+
if (!l || !m) return;
|
|
4727
|
+
const c = () => {
|
|
4728
|
+
const d = m.getBoundingClientRect(), h = l.getBoundingClientRect(), u = d.left + d.width / 2 - h.left, p = d.top + d.height / 2 - h.top, w = Math.max(d.width, d.height) / 2 + 4;
|
|
4729
|
+
o({ cx: u, cy: p, r: w });
|
|
4730
|
+
};
|
|
4731
|
+
if (c(), !(typeof window > "u"))
|
|
4732
|
+
return window.addEventListener("resize", c, { passive: !0 }), () => window.removeEventListener("resize", c);
|
|
4733
|
+
}, [t, a]), t == null ? null : /* @__PURE__ */ y(
|
|
4734
|
+
"div",
|
|
4735
|
+
{
|
|
4736
|
+
ref: i,
|
|
4737
|
+
className: "bell-cutout",
|
|
4738
|
+
"data-mode": t,
|
|
4739
|
+
"data-count": t === "unread-count" && n != null ? String(n) : void 0,
|
|
4740
|
+
"aria-hidden": "true",
|
|
4741
|
+
children: [
|
|
4742
|
+
/* @__PURE__ */ y("svg", { className: "bell-cutout__svg", width: "100%", height: "100%", preserveAspectRatio: "none", children: [
|
|
4743
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ y("mask", { id: "bell-cutout-mask", children: [
|
|
4744
|
+
/* @__PURE__ */ r("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: "white" }),
|
|
4745
|
+
/* @__PURE__ */ r("circle", { cx: s.cx, cy: s.cy, r: s.r, fill: "black" })
|
|
4746
|
+
] }) }),
|
|
4747
|
+
/* @__PURE__ */ r("rect", { x: "0", y: "0", width: "100%", height: "100%", mask: "url(#bell-cutout-mask)", className: "bell-cutout__fill" })
|
|
4748
|
+
] }),
|
|
4749
|
+
/* @__PURE__ */ r("span", { className: "bell-cutout__dot", "aria-hidden": "true" })
|
|
4750
|
+
]
|
|
4751
|
+
}
|
|
4752
|
+
);
|
|
4753
|
+
}
|
|
4754
|
+
const Va = F.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4617
4755
|
const i = { ...n };
|
|
4618
4756
|
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(fe, { region: "toolbar", density: e, children: t }) });
|
|
4619
4757
|
});
|
|
4620
|
-
|
|
4621
|
-
const
|
|
4758
|
+
Va.displayName = "ContainerToolbar";
|
|
4759
|
+
const ja = F.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
|
|
4622
4760
|
const o = { ...i };
|
|
4623
|
-
return delete o.className, delete o.style, /* @__PURE__ */
|
|
4761
|
+
return delete o.className, delete o.style, /* @__PURE__ */ y("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
|
|
4624
4762
|
e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
4625
4763
|
t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
|
|
4626
4764
|
/* @__PURE__ */ r(fe, { region: "form-section", density: n, children: a })
|
|
4627
4765
|
] });
|
|
4628
4766
|
});
|
|
4629
|
-
|
|
4630
|
-
const
|
|
4767
|
+
ja.displayName = "ContainerFormSection";
|
|
4768
|
+
const Ua = F.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
|
|
4631
4769
|
const i = { ...n };
|
|
4632
4770
|
return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(fe, { region: "table", density: e, children: t }) });
|
|
4633
4771
|
});
|
|
4634
|
-
|
|
4772
|
+
Ua.displayName = "ContainerTable";
|
|
4635
4773
|
export {
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4774
|
+
Pr as Accordion,
|
|
4775
|
+
Ir as AccordionContent,
|
|
4776
|
+
Er as AccordionItem,
|
|
4777
|
+
Ar as AccordionTrigger,
|
|
4778
|
+
Fr as ActionStrip,
|
|
4779
|
+
Or as Actionable,
|
|
4780
|
+
Lr as AddressGroup,
|
|
4781
|
+
$r as AddressSelect,
|
|
4782
|
+
zr as AsyncLoader,
|
|
4783
|
+
Br as Autocomplete,
|
|
4784
|
+
Kr as Badge,
|
|
4785
|
+
Gr as BarChartCard,
|
|
4786
|
+
Hr as BarsBg,
|
|
4787
|
+
Rr as BellCutout,
|
|
4788
|
+
xr as BellPopover,
|
|
4789
|
+
Ea as BodyPortal,
|
|
4790
|
+
kr as BottomToolbar,
|
|
4791
|
+
Wr as Button,
|
|
4792
|
+
Vr as ButtonGroup,
|
|
4793
|
+
jr as ButtonGroupContext,
|
|
4794
|
+
Ur as Card,
|
|
4795
|
+
Yr as CardActions,
|
|
4796
|
+
Zr as CardBack,
|
|
4797
|
+
qr as CardBody,
|
|
4798
|
+
Qr as CardFooter,
|
|
4799
|
+
Xr as CardHeader,
|
|
4800
|
+
Jr as CardMedia,
|
|
4801
|
+
Xe as CardShell,
|
|
4802
|
+
es as CardSubtitle,
|
|
4803
|
+
ts as CardTitle,
|
|
4804
|
+
ur as CascadePreview,
|
|
4805
|
+
_r as CellTintOverlay,
|
|
4806
|
+
as as ChartControlBar,
|
|
4807
|
+
ns as Checkbox,
|
|
4808
|
+
rs as CheckboxGroup,
|
|
4809
|
+
ss as Chip,
|
|
4810
|
+
is as ColorPicker,
|
|
4811
|
+
os as ComparisonCard,
|
|
4812
|
+
ls as ContactForm,
|
|
4813
|
+
cs as ContainerCard,
|
|
4814
|
+
ds as ContainerCardActions,
|
|
4815
|
+
us as ContainerCardBody,
|
|
4816
|
+
ms as ContainerCardFooter,
|
|
4817
|
+
ps as ContainerCardHeader,
|
|
4818
|
+
gs as ContainerCardMedia,
|
|
4819
|
+
hs as ContainerCardSubtitle,
|
|
4820
|
+
fs as ContainerCardTitle,
|
|
4821
|
+
bs as ContainerDialog,
|
|
4822
|
+
vs as ContainerDialogActions,
|
|
4823
|
+
ys as ContainerDialogBody,
|
|
4824
|
+
ws as ContainerDialogHeader,
|
|
4825
|
+
ja as ContainerFormSection,
|
|
4826
|
+
_s as ContainerPanel,
|
|
4827
|
+
Ua as ContainerTable,
|
|
4828
|
+
Va as ContainerToolbar,
|
|
4829
|
+
Cs as CreditCardForm,
|
|
4830
|
+
Ns as DEFAULT_FOOTER_IDS,
|
|
4690
4831
|
U as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4832
|
+
ul as DEFAULT_MARKET_PRESETS,
|
|
4833
|
+
Ss as DEFAULT_OVERFLOW_IDS,
|
|
4834
|
+
ml as DEFAULT_PINNED,
|
|
4835
|
+
Ct as DEFAULT_RESIZE_PHYSICS,
|
|
4836
|
+
Ae as DEFAULT_RESIZE_PILL_PHYSICS,
|
|
4837
|
+
ks as DataTable,
|
|
4838
|
+
Ds as DatePicker,
|
|
4839
|
+
xs as DateRangePicker,
|
|
4840
|
+
Rs as DestructiveModal,
|
|
4841
|
+
ta as DevTuningPanel,
|
|
4842
|
+
Ts as DirectionCard,
|
|
4843
|
+
Ms as Dismissible,
|
|
4844
|
+
Ps as DistributionCard,
|
|
4845
|
+
Is as DonutChart,
|
|
4846
|
+
cr as DragGhost,
|
|
4847
|
+
er as DropAnchorCell,
|
|
4848
|
+
Es as Dropdown,
|
|
4849
|
+
sa as DualPaceBars,
|
|
4850
|
+
As as ENTITY_FILTER_KEYS,
|
|
4851
|
+
Fs as ENTITY_PROFILE_ROUTES,
|
|
4852
|
+
Os as ENTITY_TYPE_PLURAL,
|
|
4853
|
+
lr as EmptyCellPackAffordance,
|
|
4854
|
+
Ls as EntityPicker,
|
|
4714
4855
|
K as EntityRow,
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4856
|
+
$s as EntitySearchPanel,
|
|
4857
|
+
ba as ExceptionListCard,
|
|
4858
|
+
va as ExceptionListTilePreview,
|
|
4859
|
+
zs as Expandable,
|
|
4860
|
+
Bs as ExpandableChip,
|
|
4861
|
+
Ks as FLIP_AND_STAGE_TIMINGS,
|
|
4862
|
+
Gs as FileUpload,
|
|
4863
|
+
Hs as FilterChip,
|
|
4864
|
+
Ws as FilterInput,
|
|
4865
|
+
Vs as FlipAndStageProvider,
|
|
4866
|
+
js as Form,
|
|
4867
|
+
Us as FormDialog,
|
|
4868
|
+
Ys as FormField,
|
|
4869
|
+
Zs as FusedShape,
|
|
4870
|
+
ia as GapReadout,
|
|
4871
|
+
qs as GestureStateProvider,
|
|
4872
|
+
_t as GhostPreview,
|
|
4873
|
+
Qs as GroupCheckbox,
|
|
4874
|
+
Xs as GroupRadio,
|
|
4875
|
+
ir as HARD_CLIP,
|
|
4876
|
+
Js as HighlightCard,
|
|
4877
|
+
ei as HybridDatePicker,
|
|
4878
|
+
ti as ImportWizard,
|
|
4879
|
+
Da as InlineNudge,
|
|
4880
|
+
ai as Input,
|
|
4881
|
+
ni as InputAddon,
|
|
4882
|
+
ri as InputGroup,
|
|
4883
|
+
pa as LeaderboardCard,
|
|
4743
4884
|
ga as LeaderboardTilePreview,
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4885
|
+
ca as LensChipGroup,
|
|
4886
|
+
si as Link,
|
|
4887
|
+
ii as LoginForm,
|
|
4747
4888
|
ae as MagnitudeBar,
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4889
|
+
oi as MarketPresetRow,
|
|
4890
|
+
li as MaskPresets,
|
|
4891
|
+
ci as MaskedInput,
|
|
4892
|
+
di as Menu,
|
|
4893
|
+
ui as MenuDivider,
|
|
4894
|
+
mi as MenuGroup,
|
|
4895
|
+
pi as MenuItem,
|
|
4896
|
+
gi as MergePrompt,
|
|
4897
|
+
hi as MetricCard,
|
|
4898
|
+
fi as MetricCardGrid,
|
|
4899
|
+
jt as MetricGroupContainer,
|
|
4900
|
+
bi as MiniCalendar,
|
|
4901
|
+
ua as MoreInLensRail,
|
|
4902
|
+
vi as MultiSelect,
|
|
4903
|
+
yi as NumberInput,
|
|
4904
|
+
wi as ObjectArrow,
|
|
4905
|
+
_i as OrderFilterBar,
|
|
4906
|
+
el as PANEL_COMMITS,
|
|
4907
|
+
pl as PERIOD_OPTIONS,
|
|
4908
|
+
mr as PaceCard,
|
|
4909
|
+
pr as PaceTilePreview,
|
|
4910
|
+
At as PageChip,
|
|
4911
|
+
$e as PageDropdown,
|
|
4912
|
+
tl as PanelChrome,
|
|
4913
|
+
al as PanelHost,
|
|
4914
|
+
nl as PanelProvider,
|
|
4915
|
+
Ci as PasswordInput,
|
|
4916
|
+
Ni as PaymentForm,
|
|
4917
|
+
Si as PaymentMethodSelect,
|
|
4918
|
+
ki as PhoneInput,
|
|
4919
|
+
Di as PinToMetric,
|
|
4920
|
+
Oa as PresetSwatchRow,
|
|
4921
|
+
xi as ProfileCard,
|
|
4922
|
+
Ri as ProgressCard,
|
|
4923
|
+
Ti as QuickConfigPanel,
|
|
4924
|
+
Kt as RECONFIG_BACKSIDE_LABELS,
|
|
4925
|
+
gl as ROLLING_OPTIONS,
|
|
4926
|
+
Mi as Radio,
|
|
4927
|
+
Pi as RadioGroup,
|
|
4928
|
+
Ii as RangeSlider,
|
|
4788
4929
|
ee as RankBadge,
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4930
|
+
Ve as RankDelta,
|
|
4931
|
+
Ei as Rating,
|
|
4932
|
+
Wt as ReconfigBacksideButtons,
|
|
4933
|
+
Cr as RefusePulse,
|
|
4934
|
+
Ai as RegistrationForm,
|
|
4935
|
+
Jn as ResizeEnvelope,
|
|
4936
|
+
xt as ResizePill,
|
|
4937
|
+
Nr as ResizeTrackingOutline,
|
|
4938
|
+
Fi as Row1Controls,
|
|
4939
|
+
Oi as Row2FilterTray,
|
|
4940
|
+
hr as STROKE_DASHED,
|
|
4941
|
+
yr as STROKE_DASHED_DASHARRAY,
|
|
4942
|
+
vr as STROKE_OUTLINE,
|
|
4943
|
+
fr as STROKE_SOLID,
|
|
4944
|
+
br as STROKE_SPARSE_DASH,
|
|
4945
|
+
wr as STROKE_SPARSE_DASH_DASHARRAY,
|
|
4946
|
+
Li as SearchInput,
|
|
4947
|
+
ar as SectionDivider,
|
|
4948
|
+
Dr as SectionDots,
|
|
4949
|
+
$i as SegmentCard,
|
|
4950
|
+
zi as SegmentedControl,
|
|
4951
|
+
Bi as Select,
|
|
4952
|
+
Ki as Selectable,
|
|
4812
4953
|
te as SeverityDot,
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4954
|
+
Gi as SimpleMetricCard,
|
|
4955
|
+
Hi as SimpleSelector,
|
|
4956
|
+
Wi as Skeleton,
|
|
4957
|
+
Vi as SkeletonCard,
|
|
4958
|
+
ji as SkeletonChart,
|
|
4959
|
+
Ui as SkeletonTable,
|
|
4960
|
+
Yi as Slider,
|
|
4961
|
+
dr as SnapOutline,
|
|
4962
|
+
Zi as Sortable,
|
|
4963
|
+
Wa as SortableZones,
|
|
4964
|
+
qi as SparklineBg,
|
|
4965
|
+
tr as SpilloverArc,
|
|
4966
|
+
Qi as SplitButton,
|
|
4967
|
+
Xi as StackedGroupCard,
|
|
4968
|
+
ya as StackedGroupTilePreview,
|
|
4969
|
+
da as StarterRail,
|
|
4970
|
+
Ji as StatusModeCard,
|
|
4971
|
+
wt as StatusSlotChipMenu,
|
|
4972
|
+
eo as Stepper,
|
|
4832
4973
|
De as SwingReveal,
|
|
4833
|
-
|
|
4974
|
+
hl as TODAY_PRESET,
|
|
4834
4975
|
V as TUNING_DEFAULTS,
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4976
|
+
Ge as TUNING_STORAGE_KEY,
|
|
4977
|
+
to as TabGroup,
|
|
4978
|
+
ao as TabbedDataView,
|
|
4979
|
+
no as TagInput,
|
|
4980
|
+
pt as TargetInput,
|
|
4981
|
+
ro as Textarea,
|
|
4841
4982
|
Ta as ThresholdRamp,
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4983
|
+
so as TimeFrame,
|
|
4984
|
+
io as TimePicker,
|
|
4985
|
+
oo as Toggle,
|
|
4986
|
+
lo as Tooltip,
|
|
4987
|
+
We as TrackingOutline,
|
|
4988
|
+
co as Transition,
|
|
4989
|
+
uo as TransitionGroup,
|
|
4990
|
+
mo as TrendCard,
|
|
4991
|
+
po as TrendIndicator,
|
|
4992
|
+
Qo as UIContext,
|
|
4852
4993
|
fe as UIContextProvider,
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4994
|
+
go as UnifiedBreakdownTable,
|
|
4995
|
+
ho as UnifiedContextMenu,
|
|
4996
|
+
wn as VelocityBuffer,
|
|
4997
|
+
fo as addressGroupMetadata,
|
|
4998
|
+
bo as addressSchema,
|
|
4999
|
+
dn as allChips,
|
|
5000
|
+
Sn as allStateFixtures,
|
|
5001
|
+
Nn as allVariantFixtures,
|
|
5002
|
+
gn as blockSamples,
|
|
5003
|
+
vo as buildDefaultOverflow,
|
|
5004
|
+
yn as cardSamples,
|
|
4864
5005
|
Y as cascadePhysics,
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
5006
|
+
bn as chartSamples,
|
|
5007
|
+
fn as circleSamples,
|
|
5008
|
+
or as colorTokens,
|
|
5009
|
+
jn as compactLayout,
|
|
5010
|
+
Fn as compactState,
|
|
5011
|
+
Cn as computeGutterAnchorX,
|
|
5012
|
+
yo as contactFormMetadata,
|
|
5013
|
+
wo as contactSchema,
|
|
5014
|
+
On as contextMenuFixtures,
|
|
5015
|
+
_o as creditCardFormMetadata,
|
|
5016
|
+
Co as creditCardSchema,
|
|
5017
|
+
ft as dateChip,
|
|
5018
|
+
Ke as defaultControlBarState,
|
|
5019
|
+
No as destructiveModalMetadata,
|
|
5020
|
+
So as durations,
|
|
5021
|
+
ko as easings,
|
|
5022
|
+
Mt as emptyFixture,
|
|
4882
5023
|
gt as entityChip,
|
|
4883
|
-
|
|
4884
|
-
|
|
5024
|
+
$t as entityNameActions,
|
|
5025
|
+
mn as entityTabGroup,
|
|
4885
5026
|
Tt as errorFixture,
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
5027
|
+
Do as evaluateTintCondition,
|
|
5028
|
+
An as filteredState,
|
|
5029
|
+
fl as findPreset,
|
|
5030
|
+
bl as formatDateRange,
|
|
5031
|
+
vl as formatMarketDates,
|
|
5032
|
+
yl as formatTrend,
|
|
5033
|
+
wl as formatValue,
|
|
5034
|
+
Yn as fullLayout,
|
|
5035
|
+
_l as generateMarketId,
|
|
5036
|
+
xo as generateTabId,
|
|
5037
|
+
Cl as getAllPresets,
|
|
5038
|
+
Nl as getDateRangeForPreset,
|
|
5039
|
+
Ro as getMenuActions,
|
|
5040
|
+
He as getMotionMode,
|
|
5041
|
+
Sl as getPresetLabel,
|
|
5042
|
+
To as getTransitionStyle,
|
|
5043
|
+
Vn as gridCards,
|
|
5044
|
+
gr as gridChannels,
|
|
5045
|
+
Mo as interpolate,
|
|
5046
|
+
kl as isInRange,
|
|
5047
|
+
Dl as isMarketActive,
|
|
5048
|
+
xl as isSameDay,
|
|
5049
|
+
En as itemColumns,
|
|
5050
|
+
Pn as itemRows,
|
|
5051
|
+
Rt as loadingFixture,
|
|
5052
|
+
Po as loginFormMetadata,
|
|
5053
|
+
Io as loginSchema,
|
|
5054
|
+
bt as manufacturerChip,
|
|
5055
|
+
Xn as manyTabs,
|
|
5056
|
+
Eo as mergeHandlers,
|
|
5057
|
+
Ao as mergeRefs,
|
|
5058
|
+
un as metricTabGroup,
|
|
5059
|
+
qn as mixedTabs,
|
|
5060
|
+
Rl as normalizePresetId,
|
|
5061
|
+
Bt as numericActions,
|
|
5062
|
+
In as orderColumns,
|
|
5063
|
+
zt as orderIdActions,
|
|
5064
|
+
Mn as orderRows,
|
|
5065
|
+
Zn as ordersTabs,
|
|
4925
5066
|
Me as paletteHex,
|
|
4926
5067
|
j as paletteVars,
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
5068
|
+
rl as panelsDeriveSurfaceState,
|
|
5069
|
+
sl as panelsInitialState,
|
|
5070
|
+
il as panelsReducer,
|
|
5071
|
+
Fo as parseNumericValue,
|
|
5072
|
+
Oo as paymentFormMetadata,
|
|
5073
|
+
Lo as paymentSchema,
|
|
5074
|
+
$o as presets,
|
|
5075
|
+
rr as provisional,
|
|
5076
|
+
sr as reducedMotion,
|
|
5077
|
+
zo as registrationFormMetadata,
|
|
5078
|
+
Bo as registrationSchema,
|
|
5079
|
+
nr as rejectionFeedback,
|
|
5080
|
+
$n as sampleCompareRanges,
|
|
5081
|
+
Kn as sampleCustomMarkets,
|
|
5082
|
+
Ln as sampleDateRange,
|
|
5083
|
+
Gn as sampleMarketPresetData,
|
|
5084
|
+
Bn as sampleMarkets,
|
|
5085
|
+
Wn as samplePeriodPresets,
|
|
5086
|
+
zn as samplePreferences,
|
|
5087
|
+
Hn as samplePresets,
|
|
5088
|
+
Qn as singleTab,
|
|
5089
|
+
kn as sparklineFixture,
|
|
5090
|
+
Dn as sparklineUpFixture,
|
|
5091
|
+
Et as staleDonutFixture,
|
|
5092
|
+
Pt as staleFixture,
|
|
5093
|
+
It as staleSparklineFixture,
|
|
5094
|
+
xn as standardFixture,
|
|
5095
|
+
Tn as standardFlatFixture,
|
|
5096
|
+
Un as standardLayout,
|
|
5097
|
+
Rn as standardNegativeFixture,
|
|
5098
|
+
ht as statusChip,
|
|
4958
5099
|
q as swingReveal,
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
5100
|
+
vn as tableSamples,
|
|
5101
|
+
hn as textSamples,
|
|
5102
|
+
pn as timeFrameTabGroup,
|
|
5103
|
+
Tl as toUppercasePresetId,
|
|
5104
|
+
Qe as useAffordanceVisibility,
|
|
5105
|
+
cn as useArrowNavigation,
|
|
5106
|
+
Ko as useCheckboxGroupContext,
|
|
5107
|
+
Go as useFilterLayout,
|
|
5108
|
+
Ho as useFlipAndStage,
|
|
5109
|
+
Wo as useFlipAndStageContext,
|
|
5110
|
+
Vo as useFlipAndStageContextOptional,
|
|
5111
|
+
ln as useFocusReturn,
|
|
5112
|
+
jo as useFocusTrap,
|
|
5113
|
+
Uo as useFormContext,
|
|
5114
|
+
Yo as useGestureState,
|
|
5115
|
+
ol as usePanelContext,
|
|
5116
|
+
ll as usePanelContextOptional,
|
|
5117
|
+
cl as usePanelCoordinator,
|
|
5118
|
+
Pa as usePortalAnchor,
|
|
5119
|
+
Zo as useRadioGroupContext,
|
|
5120
|
+
Sr as useResizeChoreography,
|
|
5121
|
+
_n as useResizePill,
|
|
5122
|
+
Zt as useResizeTuning,
|
|
5123
|
+
za as useSortableZones,
|
|
5124
|
+
Xo as useUIContext
|
|
4983
5125
|
};
|