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