@mt-gloss/ui 0.1.24 → 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.
Files changed (30) hide show
  1. package/{Expandable-BYIgk5cN.js → Expandable-D7_L8KoV.js} +1437 -1432
  2. package/catalog.js +50 -50
  3. package/index.d.ts +2 -0
  4. package/index.js +1646 -1304
  5. package/lib/primitives/TargetInput/TargetInput.d.ts +16 -0
  6. package/lib/primitives/TargetInput/index.d.ts +2 -0
  7. package/lib/primitives/dashboard/LensChipGroup/LensChipGroup.d.ts +19 -0
  8. package/lib/primitives/dashboard/LensChipGroup/index.d.ts +2 -0
  9. package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
  10. package/lib/primitives/dashboard/MetricCard/types.d.ts +25 -0
  11. package/lib/primitives/dashboard/MoreInLensRail/MoreInLensRail.d.ts +13 -0
  12. package/lib/primitives/dashboard/MoreInLensRail/index.d.ts +2 -0
  13. package/lib/primitives/dashboard/PaceCard/DualPaceBars/DualPaceBars.d.ts +15 -0
  14. package/lib/primitives/dashboard/PaceCard/DualPaceBars/index.d.ts +2 -0
  15. package/lib/primitives/dashboard/PaceCard/GapReadout/GapReadout.d.ts +9 -0
  16. package/lib/primitives/dashboard/PaceCard/GapReadout/index.d.ts +2 -0
  17. package/lib/primitives/dashboard/PaceCard/PaceCard.d.ts +24 -0
  18. package/lib/primitives/dashboard/PaceCard/PacePlaceholder.d.ts +7 -0
  19. package/lib/primitives/dashboard/PaceCard/PaceTilePreview.d.ts +2 -0
  20. package/lib/primitives/dashboard/StarterRail/StarterRail.d.ts +11 -0
  21. package/lib/primitives/dashboard/StarterRail/index.d.ts +2 -0
  22. package/lib/primitives/dashboard/index.d.ts +10 -0
  23. package/lib/primitives/dashboard/rows/EntityRow.d.ts +17 -0
  24. package/lib/primitives/dashboard/rows/MagnitudeBar.d.ts +10 -0
  25. package/lib/primitives/dashboard/rows/RankBadge.d.ts +5 -0
  26. package/lib/primitives/dashboard/rows/RankDelta.d.ts +10 -0
  27. package/lib/primitives/dashboard/rows/SeverityDot.d.ts +9 -0
  28. package/lib/primitives/dashboard/rows/index.d.ts +10 -0
  29. package/package.json +1 -1
  30. package/ui.css +1 -1
package/index.js CHANGED
@@ -1,162 +1,217 @@
1
- import { N as Ha, T as Va, O as ja, Q as Ua, a3 as Za, b6 as Ya, az as qa, ah as Qa, Z as Xa, an as Ja, K as er, a8 as tr, bn as nr, P as ar, B as rr, a as sr, y as or, H as ir, bi as lr, F as cr, J as dr, A as ur, z as mr, bh as gr, E as pr, D as fr, bx as hr, b as br, C as vr, L as yr, o as wr, ad as Dr, aN as Nr, y as Cr, H as _r, F as kr, J as xr, A as Sr, z as Mr, E as Tr, D as Rr, a$ as Ir, b2 as Pr, b1 as Fr, b0 as Er, b3 as Or, aC as Ar, a5 as Lr, a4 as $r, aq as Br, k as zr, m as Kr, aF as Wr, ab as Gr, b8 as Hr, a9 as Vr, bo as jr, Y as Ur, bH as Zr, bG as Yr, bI as qr, ap as Qr, aQ as Xr, ba as Jr, bM as es, bv as ts, n as ns, am as as, bB as rs, bs as ss, a0 as os, ar as is, a2 as ls, bA as cs, G as ds, d as us, aa as ms, bJ as gs, aT as ps, r as fs, v as hs, I as bs, g as vs, aw as ys, bN as ws, M as Ds, w as Ns, U as Cs, X as _s, V as ks, W as xs, as as Ss, bg as Ms, bP as Ts, bL as Rs, ao as Is, t as Ps, bp as Fs, aS as Es, aj as Os, aK as As, ag as Ls, al as $s, au as Bs, aR as zs, ac as Ks, at as Ws, c as Gs, R as Hs, j as Vs, p as js, aH as Us, by as Zs, bz as Ys, ai as qs, ae as Qs, h as Xs, x as Js, b7 as eo, af as to, bO as no, bc as ao, bf as ro, bd as so, be as oo, i as io, b9 as lo, bm as co, S as uo, bk as mo, bl as go, av as po, bb as fo, bQ as ho, ak as bo, s as vo, bK as yo, l as wo, f as Do, q as No, _ as Co, $ as _o, a7 as ko, bj as xo, bw as So, bD as Mo, aA as To, aB as Ro, a6 as Io, aO as Po, aP as Fo, aD as Eo, aE as Oo, aG as Ao, aV as Lo, aW as $o, bq as Bo, bF as zo, bE as Ko, aY as Wo, aZ as Go, ax as Ho, ay as Vo, b5 as jo, b4 as Uo, a_ as Zo, aL as Yo, aM as qo, aX as Qo, aI as Xo, aJ as Jo, u as ei, bC as ti, br as ni, bt as ai, bu as ri, aU as si, a1 as oi, e as ii } from "./Expandable-BYIgk5cN.js";
2
- import { jsxs as O, jsx as l, Fragment as _e } from "react/jsx-runtime";
3
- import * as rt from "react";
4
- import V, { useRef as R, useEffect as L, useState as G, useCallback as w, forwardRef as st, useMemo as ge, createContext as ot, useContext as it } from "react";
5
- import { motion as be, useMotionValue as lt, animate as Ae, useDragControls as ct } from "framer-motion";
6
- import { B as dt, U as Re } from "./UIContext-C3E-k7HI.js";
7
- import { a as ci, u as di } from "./UIContext-C3E-k7HI.js";
8
- import { createPortal as ut } from "react-dom";
9
- import { DEFAULT_MARKET_PRESETS as mi, DEFAULT_PINNED as gi, PERIOD_OPTIONS as pi, ROLLING_OPTIONS as fi, TODAY_PRESET as hi, findPreset as bi, formatDateRange as vi, formatMarketDates as yi, formatTrend as wi, formatValue as Di, generateMarketId as Ni, getAllPresets as Ci, getDateRangeForPreset as _i, getPresetLabel as ki, isInRange as xi, isMarketActive as Si, isSameDay as Mi, normalizePresetId as Ti, toUppercasePresetId as Ri } from "@mt-gloss/utils";
10
- import mt from "@mui/icons-material/AccessTime";
11
- import gt from "@mui/icons-material/Tune";
12
- import pt from "@mui/icons-material/ViewColumn";
13
- import ft from "@mui/icons-material/AspectRatio";
14
- import ht from "@mui/icons-material/Palette";
15
- import bt from "@mui/icons-material/PushPin";
16
- function On(e = {}) {
17
- const { enabled: t = !0, returnTo: a } = e, n = R(null);
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 && (n.current = a || document.activeElement);
20
- }, [t, a]), L(() => () => {
21
- t && n.current && setTimeout(() => {
22
- n.current?.focus?.();
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]), n;
25
+ }, [t]), a;
25
26
  }
26
- function An(e) {
27
+ function Ua(e) {
27
28
  const {
28
29
  items: t,
29
- activeIndex: a,
30
- onActiveIndexChange: n,
30
+ activeIndex: n,
31
+ onActiveIndexChange: a,
31
32
  loop: r = !0,
32
33
  orientation: s = "vertical",
33
34
  enabled: o = !0,
34
- isItemDisabled: c,
35
- onSelect: f,
36
- onEscape: d
37
- } = e, [p, h] = G(-1), u = a !== void 0 ? a : p, m = w(
38
- (i) => {
39
- a === void 0 && h(i), n?.(i);
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
- [a, n]
42
- ), N = w(() => t.map((i, b) => ({ item: i, index: b })).filter(({ item: i, index: b }) => !c?.(i, b)).map(({ index: i }) => i), [t, c]), y = w(
43
- (i, b) => {
44
- const D = N();
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 x = D.indexOf(i);
47
- if (x === -1)
48
- return b === 1 ? D.find((k) => k > i) ?? (r ? D[0] : -1) : [...D].reverse().find((P) => P < i) ?? (r ? D[D.length - 1] : -1);
49
- let v = x + b;
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
- [N, r]
53
- ), g = w(() => {
54
- const i = N();
55
- i.length > 0 && m(i[0]);
56
- }, [N, m]), S = w(() => {
57
- const i = N();
58
- i.length > 0 && m(i[i.length - 1]);
59
- }, [N, m]), I = w(() => {
60
- const i = y(u, 1);
61
- i !== -1 && m(i);
62
- }, [u, y, m]), _ = w(() => {
63
- const i = y(u, -1);
64
- i !== -1 && m(i);
65
- }, [u, y, m]), M = w(() => {
66
- m(-1);
67
- }, [m]), T = w(
68
- (i) => {
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 } = i, D = b === "ArrowUp" && (s === "vertical" || s === "both"), x = b === "ArrowDown" && (s === "vertical" || s === "both"), v = b === "ArrowLeft" && (s === "horizontal" || s === "both"), k = b === "ArrowRight" && (s === "horizontal" || s === "both");
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
- i.preventDefault(), u === -1 ? S() : _();
73
+ c.preventDefault(), d === -1 ? M() : C();
73
74
  return;
74
75
  }
75
- if (x || k) {
76
- i.preventDefault(), u === -1 ? g() : I();
76
+ if (S || x) {
77
+ c.preventDefault(), d === -1 ? f() : P();
77
78
  return;
78
79
  }
79
80
  if (b === "Home") {
80
- i.preventDefault(), g();
81
+ c.preventDefault(), f();
81
82
  return;
82
83
  }
83
84
  if (b === "End") {
84
- i.preventDefault(), S();
85
+ c.preventDefault(), M();
85
86
  return;
86
87
  }
87
- if ((b === "Enter" || b === " ") && u >= 0 && u < t.length) {
88
- i.preventDefault();
89
- const P = t[u];
90
- c?.(P, u) || f?.(P, u);
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
- d?.();
95
+ u?.();
95
96
  return;
96
97
  }
97
98
  },
98
99
  [
99
100
  o,
100
101
  s,
101
- u,
102
+ d,
102
103
  t,
103
- g,
104
- S,
105
- I,
106
- _,
107
- c,
108
104
  f,
109
- d
105
+ M,
106
+ P,
107
+ C,
108
+ l,
109
+ m,
110
+ u
110
111
  ]
111
112
  );
112
113
  return {
113
- focusedIndex: u,
114
- setFocusedIndex: m,
115
- handleKeyDown: T,
116
- focusFirst: g,
117
- focusLast: S,
118
- focusNext: I,
119
- focusPrevious: _,
120
- resetFocus: M
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 ve = (e) => {
124
- }, vt = {
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: ve
130
- }, yt = {
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: ve
136
- }, wt = {
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: ve
142
- }, Dt = {
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: ve
148
- }, Ln = [
149
- vt,
150
- yt,
151
- wt,
152
- Dt
153
- ], $n = {
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
- }, Bn = {
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
- }, zn = {
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
- }, Kn = [
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
- ], Wn = [
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
- ], Gn = [
239
+ ], Ja = [
185
240
  { variant: "circle", size: 24 },
186
241
  { variant: "circle", size: 40 },
187
242
  { variant: "circle", size: 64 }
188
- ], Hn = [
243
+ ], en = [
189
244
  { bars: 10, maxHeight: 120 },
190
245
  { bars: 5, maxHeight: 80 }
191
- ], Vn = [
246
+ ], tn = [
192
247
  { rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
193
248
  { rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
194
- ], jn = [
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
- }), Nt = (e) => ({
279
+ }), kt = (e) => ({
225
280
  ...ke(e),
226
281
  color: e ? "#4338ca" : "#4f46e5",
227
282
  fontWeight: 600
228
- }), Ct = {
283
+ }), xt = {
229
284
  height: 1,
230
285
  background: "rgba(0,0,0,0.06)",
231
286
  margin: "3px 10px"
232
287
  };
233
- function _t({
288
+ function St({
234
289
  open: e,
235
290
  anchorEl: t,
236
- statusId: a,
237
- onOpenInTable: n,
291
+ statusId: n,
292
+ onOpenInTable: a,
238
293
  onShowOnGraph: r,
239
294
  overflowActions: s,
240
295
  onClose: o
241
296
  }) {
242
- const [c, f] = G(null), d = R(null), p = w(() => {
297
+ const [l, m] = $(null), u = T(null), p = w(() => {
243
298
  if (!t) return { ...Le, top: 0, left: 0 };
244
- const m = t.getBoundingClientRect();
299
+ const g = t.getBoundingClientRect();
245
300
  return {
246
301
  ...Le,
247
- top: m.bottom + 4,
248
- left: m.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 m = (N) => {
254
- N.key === "Escape" && o();
308
+ const g = (_) => {
309
+ _.key === "Escape" && o();
255
310
  };
256
- return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
311
+ return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
257
312
  }, [e, o]), L(() => {
258
313
  if (!e) return;
259
- const m = (N) => {
260
- d.current && !d.current.contains(N.target) && o();
314
+ const g = (_) => {
315
+ u.current && !u.current.contains(_.target) && o();
261
316
  };
262
- return document.addEventListener("pointerdown", m, !0), () => document.removeEventListener("pointerdown", m, !0);
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, u = /* @__PURE__ */ O(
319
+ const h = s && s.length > 0, d = /* @__PURE__ */ k(
265
320
  "div",
266
321
  {
267
- ref: d,
268
- "data-status-chip-menu": a,
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__ */ l(
328
+ /* @__PURE__ */ i(
274
329
  "button",
275
330
  {
276
331
  role: "menuitem",
277
- style: Nt(c === "__primary"),
278
- onMouseEnter: () => f("__primary"),
279
- onMouseLeave: () => f(null),
332
+ style: kt(l === "__primary"),
333
+ onMouseEnter: () => m("__primary"),
334
+ onMouseLeave: () => m(null),
280
335
  onClick: () => {
281
- n(a), o();
336
+ a(n), o();
282
337
  },
283
338
  children: "Open in table"
284
339
  }
285
340
  ),
286
- /* @__PURE__ */ l(
341
+ /* @__PURE__ */ i(
287
342
  "button",
288
343
  {
289
344
  role: "menuitem",
290
- style: ke(c === "__graph"),
291
- onMouseEnter: () => f("__graph"),
292
- onMouseLeave: () => f(null),
345
+ style: ke(l === "__graph"),
346
+ onMouseEnter: () => m("__graph"),
347
+ onMouseLeave: () => m(null),
293
348
  onClick: () => {
294
- r(a), o();
349
+ r(n), o();
295
350
  },
296
351
  children: "Show on graph"
297
352
  }
298
353
  ),
299
- h && /* @__PURE__ */ l("div", { style: Ct }),
300
- h && s?.map((m) => /* @__PURE__ */ l(
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(c === m.id),
305
- onMouseEnter: () => f(m.id),
306
- onMouseLeave: () => f(null),
359
+ style: ke(l === g.id),
360
+ onMouseEnter: () => m(g.id),
361
+ onMouseLeave: () => m(null),
307
362
  onClick: () => {
308
- m.onSelect(a), o();
363
+ g.onSelect(n), o();
309
364
  },
310
- children: m.label
365
+ children: g.label
311
366
  },
312
- m.id
367
+ g.id
313
368
  ))
314
369
  ]
315
370
  }
316
371
  );
317
- return ut(u, document.body);
372
+ return gt(d, document.body);
318
373
  }
319
- _t.displayName = "StatusSlotChipMenu";
320
- const Un = {
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
- }, Zn = {
387
+ }, rn = {
333
388
  shiverCycles: 3,
334
389
  shiverAmplitudePx: 2,
335
390
  shiverDurationMs: 180,
336
391
  validCellOpacity: 0.6
337
- }, Yn = {
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
- }, qn = {
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
- }, Qn = !0, Xn = {
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 Jn() {
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 We = ({ visible: e, variant: t, trigger: a, children: n, className: r }) => {
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
- a === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
433
+ n === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
379
434
  r ?? ""
380
435
  ].filter(Boolean).join(" ");
381
- return /* @__PURE__ */ l(
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: n
444
+ children: a
390
445
  }
391
446
  );
392
- }, kt = st(
393
- function({ state: t, onPointerDown: a, onPointerUp: n, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: c, edge: f = "right", ariaLabel: d = "Resize card" }, p) {
394
- const h = t === "handle-visible" || t === "dragging" || t === "settling", u = (y) => {
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
- a(y);
400
- }, m = (y) => {
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
- n(y);
406
- }, N = (y) => {
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__ */ l(We, { visible: h, variant: "handle", trigger: "hover", children: /* @__PURE__ */ l(
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": d,
415
- "data-edge": f,
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--${f}`,
474
+ `gloss-edge-handle--${m}`,
420
475
  h ? "gloss-edge-handle--visible" : ""
421
476
  ].filter(Boolean).join(" "),
422
- onPointerDown: u,
423
- onPointerUp: m,
477
+ onPointerDown: d,
478
+ onPointerUp: g,
424
479
  onPointerEnter: r,
425
480
  onPointerLeave: s,
426
- onLostPointerCapture: c,
427
- onKeyDown: N,
481
+ onLostPointerCapture: l,
482
+ onKeyDown: _,
428
483
  tabIndex: h ? 0 : -1
429
484
  }
430
485
  ) });
431
486
  }
432
487
  );
433
- kt.displayName = "EdgeHoverHandle";
434
- function xt({
488
+ Mt.displayName = "EdgeHoverHandle";
489
+ function Tt({
435
490
  visible: e,
436
491
  targetColSpan: t,
437
- ghostWidth: a,
438
- enterMs: n = 180,
492
+ ghostWidth: n,
493
+ enterMs: a = 180,
439
494
  exitMs: r = 120
440
495
  }) {
441
- return /* @__PURE__ */ l(
442
- be.div,
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: a,
453
- transitionDuration: `${e ? n : r}ms`
507
+ width: n,
508
+ transitionDuration: `${e ? a : r}ms`
454
509
  }
455
510
  }
456
511
  );
457
512
  }
458
- xt.displayName = "GhostPreview";
459
- class St {
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 [f, d] = this.samples, p = Math.max(1, d.t - f.t);
498
- return (d.x - f.x) / p * 1e3;
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 [a, n, r] = this.samples, s = (r.x - n.x) / Math.max(1, r.t - n.t) * 1e3, o = (n.x - a.x) / Math.max(1, n.t - a.t) * 1e3, c = o;
501
- return (s * 3 + o * 2 + c * 1) / 6;
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 Ge = {
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 ea({
579
+ function un({
525
580
  currentColSpan: e,
526
581
  stackable: t,
527
- onResize: a,
528
- onCancel: n,
582
+ onResize: n,
583
+ onCancel: a,
529
584
  step: r = 180,
530
585
  gap: s = 0,
531
586
  tuning: o,
532
- dwellMs: c = 60,
533
- graceExitMs: f = 150,
534
- enterMs: d = 180,
587
+ dwellMs: l = 60,
588
+ graceExitMs: m = 150,
589
+ enterMs: u = 180,
535
590
  exitMs: p = 120,
536
591
  maxColSpan: h = 3,
537
- containerRef: u,
538
- forceIdle: m
592
+ containerRef: d,
593
+ forceIdle: g
539
594
  }) {
540
- const [N, y] = G("idle"), [g, S] = G(e), I = R(null), _ = R(null), M = R(null), T = R(null), i = R(r), b = R(s), D = R(h), x = R(0), v = R("idle");
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 = N;
543
- }, [N]);
544
- const k = lt(0), P = R(null), j = w(() => {
545
- const C = P.current;
546
- if (C) {
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
- C.stop();
603
+ N.stop();
549
604
  } catch {
550
605
  }
551
- P.current = null;
606
+ F.current = null;
552
607
  }
553
- }, []), Y = w(
554
- (C) => {
555
- const F = i.current, E = b.current;
556
- return C * F + (C - 1) * E;
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
- ), U = R(new St()), W = R(e);
614
+ ), j = T(new Rt()), W = T(e);
560
615
  L(() => {
561
- W.current = g;
562
- }, [g]);
563
- const $ = ge(() => ({ ...Ge, ...o ?? {} }), [o]), Z = w(() => {
564
- I.current && (clearTimeout(I.current), I.current = null);
565
- }, []), A = w(() => {
566
- _.current && (clearTimeout(_.current), _.current = null);
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
- M.current && (clearTimeout(M.current), M.current = null);
623
+ R.current && (clearTimeout(R.current), R.current = null);
569
624
  }, []);
570
625
  L(() => {
571
- m && (v.current === "dragging" || v.current === "settling" || (Z(), A(), X(), v.current = "idle", y("idle")));
572
- }, [m, Z, A, X]);
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
- A(), y((C) => C === "settling" || C !== "idle" ? C : (I.current = setTimeout(() => y("handle-visible"), c), "dwelling"));
575
- }, [c, A]), Pe = w(() => {
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 C = v.current;
578
- C !== "dwelling" && C !== "handle-visible" || (_.current = setTimeout(() => {
632
+ const N = v.current;
633
+ N !== "dwelling" && N !== "handle-visible" || (C.current = setTimeout(() => {
579
634
  v.current = "idle", y("idle");
580
- }, f));
581
- }, [Z, f]), se = w(
582
- (C, F, E) => {
583
- const B = i.current, J = B * $.snapInFraction, q = B * $.snapOutFraction, z = F - E, H = Math.max(
584
- E,
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 K = z;
588
- for (; E + K < H; ) {
589
- const ee = K * B + (K < 0 ? q : J);
590
- if (C >= ee) K += 1;
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 (K === z)
594
- for (; E + K > 1; ) {
595
- const ee = K * B - (K > 0 ? q : J);
596
- if (C <= ee) K -= 1;
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, E + K));
654
+ return Math.min(H, Math.max(1, A + G));
600
655
  },
601
- [$.snapInFraction, $.snapOutFraction, h]
656
+ [B.snapInFraction, B.snapOutFraction, h]
602
657
  ), Je = w(
603
- (C) => {
658
+ (N) => {
604
659
  if (v.current !== "handle-visible") return;
605
- j(), T.current = C.clientX, i.current = r, b.current = s, D.current = h;
606
- const F = e * r + (e - 1) * s;
607
- x.current = F, U.current.clear(), U.current.push({ x: C.clientX, t: performance.now() }), k.jump(F), v.current = "dragging", y("dragging");
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, k, j]
664
+ [r, s, h, e, x, U]
610
665
  ), Fe = w(
611
- (C) => C * i.current + (C - 1) * b.current,
666
+ (N) => N * c.current + (N - 1) * b.current,
612
667
  []
613
668
  ), re = w(
614
- (C, F) => {
615
- const E = Fe(C), B = C !== e;
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
- k.jump(E), B && F ? a({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || n?.(), k.jump(0), v.current = "idle", y("idle");
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 q = U.current.getWeightedVelocity() * $.velocityMultiplier;
621
- v.current = "settling", y("settling"), j(), P.current = Ae(k, E, {
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: $.stiffness,
624
- damping: $.damping,
625
- mass: $.mass,
626
- velocity: q,
678
+ stiffness: B.stiffness,
679
+ damping: B.damping,
680
+ mass: B.mass,
681
+ velocity: Y,
627
682
  onComplete: () => {
628
- P.current = null, B && F ? a({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || n?.(), k.jump(0), v.current = "idle", y("idle");
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, n, k, $, j]
687
+ [Fe, e, t, n, a, x, B, U]
633
688
  ), et = w(
634
- (C) => {
689
+ (N) => {
635
690
  if (v.current !== "dragging") return;
636
- const F = C.clientX - (T.current ?? C.clientX), E = i.current, J = ((D.current ?? h) - e) * E, q = (1 - e) * E, z = Math.max(q, Math.min(J, F));
637
- U.current.push({ x: C.clientX, t: performance.now() });
638
- const H = se(z, W.current, e), K = H > e ? "grow" : H < e ? "shrink" : null;
639
- re(H, K);
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
- ), oe = w(() => {
697
+ ), ie = w(() => {
643
698
  if (Z(), v.current === "dragging") {
644
- const C = x.current;
699
+ const N = S.current;
645
700
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
646
- k.jump(C), n?.(), k.jump(0), v.current = "idle", y("idle");
701
+ x.jump(N), a?.(), x.jump(0), v.current = "idle", y("idle");
647
702
  return;
648
703
  }
649
- const E = U.current.getWeightedVelocity();
650
- v.current = "settling", y("settling"), j(), P.current = Ae(k, C, {
704
+ const A = j.current.getWeightedVelocity();
705
+ v.current = "settling", y("settling"), U(), F.current = Oe(x, N, {
651
706
  type: "spring",
652
- stiffness: $.stiffness,
653
- damping: $.damping,
654
- mass: $.mass,
655
- velocity: E,
707
+ stiffness: B.stiffness,
708
+ damping: B.damping,
709
+ mass: B.mass,
710
+ velocity: A,
656
711
  onComplete: () => {
657
- P.current = null, n?.(), k.jump(0), v.current = "idle", y("idle");
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" && (n?.(), v.current = "cancelled", y("cancelled"));
663
- }, [Z, k, n, $, j]);
717
+ v.current === "handle-visible" && (a?.(), v.current = "cancelled", y("cancelled"));
718
+ }, [Z, x, a, B, U]);
664
719
  L(() => {
665
- if (N !== "dragging" && N !== "handle-visible") return;
666
- const C = (F) => {
667
- F.key === "Escape" && oe();
720
+ if (_ !== "dragging" && _ !== "handle-visible") return;
721
+ const N = (E) => {
722
+ E.key === "Escape" && ie();
668
723
  };
669
- return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
670
- }, [N, oe]), L(() => {
671
- if (N !== "dragging") {
672
- S(e);
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 C = (z) => {
676
- const H = z.clientX - (T.current ?? z.clientX), K = x.current, ie = Y(1), ee = Y(h), pe = K + H, Oe = Math.max(ie, Math.min(ee, pe));
677
- k.set(Oe);
678
- const fe = i.current, ye = (h - e) * fe, we = (1 - e) * fe, le = Math.max(we, Math.min(ye, H));
679
- U.current.push({ x: z.clientX, t: performance.now() });
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, S(ce));
682
- }, F = (z, H) => {
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 K = U.current.tail(), ie = H?.clientX ?? K?.x ?? T.current ?? 0, ee = ie - (T.current ?? ie), pe = i.current, fe = ((D.current ?? h) - e) * pe, ye = (1 - e) * pe, we = Math.max(ye, Math.min(fe, ee));
686
- H && U.current.push({ x: H.clientX, t: performance.now() });
687
- const le = se(we, W.current, e), ce = le > e ? "grow" : le < e ? "shrink" : null;
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
- oe();
691
- }, E = (z) => F("pointerup", z), B = (z) => F("pointercancel", z), J = () => F("blur"), q = () => {
692
- document.visibilityState === "hidden" && F("visibility-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", C), window.addEventListener("pointerup", E), window.addEventListener("pointercancel", B), window.addEventListener("blur", J), document.addEventListener("visibilitychange", q), () => {
695
- window.removeEventListener("pointermove", C), window.removeEventListener("pointerup", E), window.removeEventListener("pointercancel", B), window.removeEventListener("blur", J), document.removeEventListener("visibilitychange", q);
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
- }, [N, e, k, se, h, Y, oe, re]), L(() => () => {
698
- Z(), A(), X();
699
- }, [Z, A, X]), L(() => {
700
- if (N !== "cancelled") return;
701
- const C = setTimeout(() => y("idle"), p);
702
- return () => clearTimeout(C);
703
- }, [N, p]);
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
- (C) => {
760
+ (N) => {
706
761
  if (v.current === "settling") return;
707
- const E = Math.min(h, Math.max(1, e + (C === "grow" ? 1 : -1)));
708
- if (E === e) return;
709
- i.current = r, b.current = s, D.current = h, U.current.clear();
710
- const B = e * r + (e - 1) * s;
711
- x.current = B, k.jump(B), re(E, C);
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, k, re]
768
+ [e, r, s, h, x, re]
714
769
  ), Ee = w(() => {
715
- X(), M.current = setTimeout(() => {
770
+ X(), R.current = setTimeout(() => {
716
771
  v.current === "handle-visible" && (v.current = "idle", y("idle"));
717
772
  }, 5e3);
718
- }, [X]), nt = w(() => {
773
+ }, [X]), at = w(() => {
719
774
  v.current === "idle" && (Z(), v.current = "handle-visible", y("handle-visible"), Ee());
720
- }, [Z, Ee]), at = w(() => {
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: N,
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: g,
790
+ previewColSpan: f,
736
791
  ghostProps: {
737
- visible: N === "dragging" || N === "settling",
738
- targetColSpan: g,
739
- ghostWidth: k,
740
- enterMs: d,
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: nt,
745
- onTouchDismiss: at,
746
- cancel: oe
799
+ onTouchReveal: at,
800
+ onTouchDismiss: nt,
801
+ cancel: ie
747
802
  };
748
803
  }
749
- const ae = {
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 ta(e) {
775
- const { cardWidthPx: t, slotCount: a, activeSlotIdx: n, pillWidthPx: r } = e;
776
- if (n == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(a) || a <= 0 || !Number.isInteger(n) || n < 0 || n >= a)
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 = (n + 0.5) * (t / a);
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 na = [
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
- ], Mt = {
968
+ ], It = {
886
969
  variant: "standard",
887
970
  label: "Total Revenue",
888
971
  isLoading: !0
889
- }, Tt = {
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
- }, Rt = {
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
- }, It = {
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
- }, Pt = {
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
- }, Ft = {
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
- }, aa = [
931
- Mt,
932
- Tt,
933
- Rt,
1013
+ }, pn = [
934
1014
  It,
935
1015
  Pt,
936
- Ft
937
- ], ra = {
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
- }, sa = {
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
- }, oa = {
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
- }, ia = {
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
- }, la = {
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: a,
1025
- pages: n,
1107
+ anchorRef: n,
1108
+ pages: a,
1026
1109
  activePageId: r,
1027
1110
  onPageChange: s,
1028
1111
  onCreatePage: o,
1029
- onManagePages: c
1112
+ onManagePages: l
1030
1113
  }) {
1031
- const f = w(
1032
- (u) => {
1033
- s(u), t();
1114
+ const m = w(
1115
+ (d) => {
1116
+ s(d), t();
1034
1117
  },
1035
1118
  [s, t]
1036
- ), d = w(
1037
- (u, m) => {
1038
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), f(u));
1119
+ ), u = w(
1120
+ (d, g) => {
1121
+ (g.key === "Enter" || g.key === " ") && (g.preventDefault(), m(d));
1039
1122
  },
1040
- [f]
1123
+ [m]
1041
1124
  ), p = w(() => {
1042
1125
  o(), t();
1043
1126
  }, [o, t]), h = w(() => {
1044
- c(), t();
1045
- }, [c, t]);
1046
- return /* @__PURE__ */ O(
1047
- dt,
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: a,
1140
+ anchorRef: n,
1058
1141
  className: "gloss-page-dropdown",
1059
1142
  children: [
1060
- /* @__PURE__ */ l("ul", { role: "menu", className: "gloss-page-dropdown__list", children: n.map((u) => {
1061
- const m = u.id === r;
1062
- return /* @__PURE__ */ O(
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": m,
1067
- "aria-current": m ? "page" : void 0,
1149
+ "aria-checked": g,
1150
+ "aria-current": g ? "page" : void 0,
1068
1151
  tabIndex: 0,
1069
- className: `gloss-page-dropdown__item${m ? " gloss-page-dropdown__item--active" : ""}`,
1070
- onClick: () => f(u.id),
1071
- onKeyDown: (N) => d(u.id, N),
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__ */ l(
1156
+ /* @__PURE__ */ i(
1074
1157
  "span",
1075
1158
  {
1076
- className: `gloss-page-dropdown__dot${m ? " gloss-page-dropdown__dot--active" : ""}`
1159
+ className: `gloss-page-dropdown__dot${g ? " gloss-page-dropdown__dot--active" : ""}`
1077
1160
  }
1078
1161
  ),
1079
- /* @__PURE__ */ l(
1162
+ /* @__PURE__ */ i(
1080
1163
  "span",
1081
1164
  {
1082
- className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
1083
- children: u.name
1165
+ className: `gloss-page-dropdown__name${d.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
1166
+ children: d.name
1084
1167
  }
1085
1168
  ),
1086
- /* @__PURE__ */ l("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
1169
+ /* @__PURE__ */ i("span", { className: "gloss-page-dropdown__count", children: d.cardCount })
1087
1170
  ]
1088
1171
  },
1089
- u.id
1172
+ d.id
1090
1173
  );
1091
1174
  }) }),
1092
- /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
1093
- /* @__PURE__ */ l(
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__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
1103
- /* @__PURE__ */ l(
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 Et = function({
1200
+ const Lt = function({
1118
1201
  currentIndex: t,
1119
- total: a,
1120
- pages: n,
1202
+ total: n,
1203
+ pages: a,
1121
1204
  onPageChange: r,
1122
1205
  onCreatePage: s,
1123
1206
  onManagePages: o,
1124
- maskRadius: c = "var(--gloss-radius-md)",
1125
- displayMode: f = "count",
1126
- activePage: d
1207
+ maskRadius: l = "var(--gloss-radius-md)",
1208
+ displayMode: m = "count",
1209
+ activePage: u
1127
1210
  }) {
1128
- const p = R(null), [h, u] = G(!1), m = w(() => {
1129
- u((S) => !S);
1130
- }, []), N = w(() => {
1131
- u(!1);
1132
- }, []), y = n[t]?.id ?? "";
1133
- return /* @__PURE__ */ O(
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: f === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
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
- f !== "name" && /* @__PURE__ */ l(
1224
+ m !== "name" && /* @__PURE__ */ i(
1142
1225
  "div",
1143
1226
  {
1144
1227
  className: "gloss-page-chip__nuzzle",
1145
- style: { "--_nuzzle-r": c }
1228
+ style: { "--_nuzzle-r": l }
1146
1229
  }
1147
1230
  ),
1148
- /* @__PURE__ */ l(
1231
+ /* @__PURE__ */ i(
1149
1232
  "button",
1150
1233
  {
1151
- className: `gloss-page-chip__trigger${f === "name" ? " gloss-page-chip__trigger--name" : ""}`,
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": f === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${a}. Click to switch pages.`,
1155
- onClick: m,
1156
- children: f === "name" ? /* @__PURE__ */ O(_e, { children: [
1157
- /* @__PURE__ */ l("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
1158
- /* @__PURE__ */ l("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
1159
- ] }) : /* @__PURE__ */ O(_e, { children: [
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
- a
1245
+ n
1163
1246
  ] })
1164
1247
  }
1165
1248
  ),
1166
- /* @__PURE__ */ l(
1249
+ /* @__PURE__ */ i(
1167
1250
  He,
1168
1251
  {
1169
1252
  open: h,
1170
- onDismiss: N,
1253
+ onDismiss: _,
1171
1254
  anchorRef: p,
1172
- pages: n,
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
- Et.displayName = "PageChip";
1184
- const ca = [
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
- ], da = [
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 je(e) {
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)" } }, "—"), ua = [
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 ? je(e.date) : ""
1593
+ renderCell: ({ row: e }) => e.date ? Ue(e.date) : ""
1511
1594
  }
1512
- ], ma = [
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 ? je(e.lastDate) : ""
1657
+ renderCell: ({ row: e }) => e.lastDate ? Ue(e.lastDate) : ""
1575
1658
  }
1576
- ], Ot = [
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
- ], At = [
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
- ], De = (e) => {
1589
- }, Lt = (e) => {
1671
+ ], _e = (e) => {
1672
+ }, Kt = (e) => {
1590
1673
  }, $e = (e, t) => {
1591
- }, Ue = {
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: De,
1600
- onQuantChange: Lt,
1601
- onEntityTypeChange: De,
1682
+ onTypeChange: _e,
1683
+ onQuantChange: Kt,
1684
+ onEntityTypeChange: _e,
1602
1685
  onEntitySelect: $e,
1603
1686
  onItemSelect: $e,
1604
- onTimeFrameChange: De,
1687
+ onTimeFrameChange: _e,
1605
1688
  userType: "sales-agency",
1606
- entityFilterOptions: Ot,
1607
- itemFilterOptions: At
1608
- }, ga = {
1609
- ...Ue,
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
- }, pa = {
1618
- ...Ue,
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
- }, $t = [
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
- ], Bt = [
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
- ], zt = [
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
- ], fa = {
1734
- entityName: $t,
1735
- orderId: Bt,
1736
- numeric: zt
1737
- }, ha = [
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
- ], ba = {
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
- }, va = {
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
- }, ya = [
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
- ], wa = [
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
- ], Da = [
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
- ], Na = [
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
- ], Ca = [
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
- ], Kt = {
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
- }, Wt = {
1835
- timeframe: mt,
1836
- threshold: gt,
1837
- slots: pt,
1838
- size: ft,
1839
- color: ht,
1840
- pinned: bt
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 Gt() {
1846
- const [e, t] = G(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
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 a = window.matchMedia("(prefers-reduced-motion: reduce)"), n = (r) => t(r.matches);
1850
- return typeof a.addEventListener == "function" ? (a.addEventListener("change", n), () => a.removeEventListener("change", n)) : (a.addListener?.(n), () => {
1851
- a.removeListener?.(n);
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 Ht = ({
1938
+ const jt = ({
1856
1939
  dimensions: e,
1857
1940
  onDimensionSelect: t,
1858
- activeDimension: a,
1859
- ariaCardTypeLabel: n,
1941
+ activeDimension: n,
1942
+ ariaCardTypeLabel: a,
1860
1943
  className: r
1861
1944
  }) => {
1862
- const s = R(null), o = R([]), c = Gt(), f = ge(() => Array.from(e), [e]);
1863
- if (f.length === 0) return null;
1864
- const d = n ? `Configure ${n}: choose a dimension` : void 0, p = c ? "10ms" : "200ms", h = (u, m) => {
1865
- const N = f.length - 1, y = (g) => {
1866
- const S = o.current[g];
1867
- S && S.focus();
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 (u.key) {
1952
+ switch (d.key) {
1870
1953
  case "ArrowRight":
1871
1954
  case "ArrowDown": {
1872
- u.preventDefault(), y(m === N ? 0 : m + 1);
1955
+ d.preventDefault(), y(g === _ ? 0 : g + 1);
1873
1956
  break;
1874
1957
  }
1875
1958
  case "ArrowLeft":
1876
1959
  case "ArrowUp": {
1877
- u.preventDefault(), y(m === 0 ? N : m - 1);
1960
+ d.preventDefault(), y(g === 0 ? _ : g - 1);
1878
1961
  break;
1879
1962
  }
1880
1963
  case "Home": {
1881
- u.preventDefault(), y(0);
1964
+ d.preventDefault(), y(0);
1882
1965
  break;
1883
1966
  }
1884
1967
  case "End": {
1885
- u.preventDefault(), y(N);
1968
+ d.preventDefault(), y(_);
1886
1969
  break;
1887
1970
  }
1888
1971
  case "Enter":
1889
1972
  case " ": {
1890
- u.preventDefault(), t(f[m]);
1973
+ d.preventDefault(), t(m[g]);
1891
1974
  break;
1892
1975
  }
1893
1976
  }
1894
1977
  };
1895
- return /* @__PURE__ */ l(
1978
+ return /* @__PURE__ */ i(
1896
1979
  "div",
1897
1980
  {
1898
1981
  ref: s,
1899
1982
  role: "group",
1900
- "aria-label": d,
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: f.map((u, m) => {
1909
- const N = Wt[u], y = a === u;
1910
- return /* @__PURE__ */ O(
1991
+ children: m.map((d, g) => {
1992
+ const _ = Vt[d], y = n === d;
1993
+ return /* @__PURE__ */ k(
1911
1994
  "button",
1912
1995
  {
1913
- ref: (g) => {
1914
- o.current[m] = g;
1996
+ ref: (f) => {
1997
+ o.current[g] = f;
1915
1998
  },
1916
1999
  type: "button",
1917
- "data-dimension": u,
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(u),
1924
- onKeyDown: (g) => h(g, m),
2006
+ onClick: () => t(d),
2007
+ onKeyDown: (f) => h(f, g),
1925
2008
  children: [
1926
- /* @__PURE__ */ l(
1927
- N,
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__ */ l("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Kt[u] })
2016
+ /* @__PURE__ */ i("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Ht[d] })
1934
2017
  ]
1935
2018
  },
1936
- u
2019
+ d
1937
2020
  );
1938
2021
  })
1939
2022
  }
1940
2023
  );
1941
2024
  };
1942
- Ht.displayName = "ReconfigBacksideButtons";
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 ze(e, t) {
2046
+ function Ke(e, t) {
1964
2047
  return {
1965
2048
  ...Q(e, t),
1966
2049
  colSpan: 2
1967
2050
  };
1968
2051
  }
1969
- const _a = [
2052
+ const An = [
1970
2053
  Q("total-revenue", "Total Revenue"),
1971
2054
  Q("total-orders", "Total Orders"),
1972
- ze("revenue-trend", "Revenue Trend (2x)"),
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
- ze("order-trend", "Order Trend (2x)"),
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
- ], ka = {
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
- }, xa = {
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
- }, Sa = {
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 Ma = [
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
- ], Ta = [
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
- ], Ra = [
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
- ], Ia = [
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 Vt(e) {
2168
+ function Zt(e) {
2086
2169
  let t = 0;
2087
- for (const n of e) {
2088
- const r = Se(n.size), s = n.gridPosition.col + r.cols - 1;
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 jt = function(t) {
2176
+ const qt = function(t) {
2094
2177
  if (t.renderMode === "discrete")
2095
- return /* @__PURE__ */ l(
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__ */ l(
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: a, composite: n } = t;
2118
- return /* @__PURE__ */ O(
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: n?.label ? "group" : void 0,
2134
- "aria-label": n?.label,
2216
+ role: a?.label ? "group" : void 0,
2217
+ "aria-label": a?.label,
2135
2218
  tabIndex: void 0,
2136
2219
  children: [
2137
- n?.accentColor && /* @__PURE__ */ l(
2220
+ a?.accentColor && /* @__PURE__ */ i(
2138
2221
  "div",
2139
2222
  {
2140
2223
  className: "gloss-metric-group__accent",
2141
- style: { background: n.accentColor }
2224
+ style: { background: a.accentColor }
2142
2225
  }
2143
2226
  ),
2144
- n?.label && /* @__PURE__ */ O("div", { className: "gloss-metric-group__label", children: [
2145
- /* @__PURE__ */ l("span", { children: n.label }),
2146
- n?.trend && /* @__PURE__ */ l(
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": n.trend.direction,
2151
- children: n.trend.delta
2233
+ "data-direction": a.trend.direction,
2234
+ children: a.trend.delta
2152
2235
  }
2153
2236
  )
2154
2237
  ] }),
2155
- /* @__PURE__ */ l(
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: Vt(a)
2245
+ gridTemplateColumns: Zt(n)
2163
2246
  },
2164
- children: a.map((r) => {
2247
+ children: n.map((r) => {
2165
2248
  const s = Se(r.size);
2166
- return /* @__PURE__ */ l(
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
- jt.displayName = "MetricGroupContainer";
2186
- const Ze = "resize.tuning.dev", Ut = {
2187
- ...Ge,
2268
+ qt.displayName = "MetricGroupContainer";
2269
+ const Ze = "resize.tuning.dev", Yt = {
2270
+ ...We,
2188
2271
  snapInPx: 60,
2189
2272
  snapOutPx: 90
2190
- }, ne = Ut;
2191
- function Zt() {
2192
- if (typeof window > "u") return { ...ne };
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 { ...ne };
2278
+ if (!e) return { ...ae };
2196
2279
  const t = JSON.parse(e);
2197
- return !t || typeof t != "object" || Array.isArray(t) ? { ...ne } : { ...ne, ...t };
2280
+ return !t || typeof t != "object" || Array.isArray(t) ? { ...ae } : { ...ae, ...t };
2198
2281
  } catch {
2199
- return { ...ne };
2282
+ return { ...ae };
2200
2283
  }
2201
2284
  }
2202
- function Yt() {
2203
- const [e, t] = G(() => Zt());
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 a = w(
2294
+ const n = w(
2212
2295
  (s, o) => {
2213
- t((c) => ({ ...c, [s]: o }));
2296
+ t((l) => ({ ...l, [s]: o }));
2214
2297
  },
2215
2298
  []
2216
- ), n = w(
2299
+ ), a = w(
2217
2300
  (s) => {
2218
- t((o) => ({ ...o, [s]: ne[s] }));
2301
+ t((o) => ({ ...o, [s]: ae[s] }));
2219
2302
  },
2220
2303
  []
2221
2304
  ), r = w(() => {
2222
- t({ ...ne });
2305
+ t({ ...ae });
2223
2306
  }, []);
2224
- return { values: e, setValue: a, resetRow: n, resetAll: r };
2307
+ return { values: e, setValue: n, resetRow: a, resetAll: r };
2225
2308
  }
2226
- const qt = [
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 Qt(e, t) {
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 Xt() {
2241
- return /* @__PURE__ */ O(
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__ */ l("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2255
- /* @__PURE__ */ l("polyline", { points: "3 3 3 8 8 8" })
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 Jt({ spec: e, value: t, onChange: a, onReset: n, flashing: r }) {
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(), n());
2346
+ (o.key === "r" || o.key === "R") && (o.preventDefault(), a());
2264
2347
  },
2265
- [n]
2348
+ [a]
2266
2349
  );
2267
- return /* @__PURE__ */ O(
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__ */ l("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2275
- /* @__PURE__ */ O("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2276
- Qt(t, e.step),
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__ */ l(
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) => a(Number(o.target.value))
2373
+ onChange: (o) => n(Number(o.target.value))
2291
2374
  }
2292
2375
  ),
2293
- /* @__PURE__ */ l(
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: n,
2300
- children: /* @__PURE__ */ l(Xt, {})
2382
+ onClick: a,
2383
+ children: /* @__PURE__ */ i(ta, {})
2301
2384
  }
2302
2385
  )
2303
2386
  ]
2304
2387
  }
2305
2388
  );
2306
2389
  }
2307
- function en() {
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 tn(e = {}) {
2316
- return en() ? /* @__PURE__ */ l(nn, {}) : null;
2398
+ function ra(e = {}) {
2399
+ return na() ? /* @__PURE__ */ i(sa, {}) : null;
2317
2400
  }
2318
- tn.displayName = "DevTuningPanel";
2319
- function nn() {
2320
- const e = Yt(), { values: t, setValue: a, resetRow: n, resetAll: r } = e, [s, o] = G(null), c = R(null), f = w((u) => {
2321
- c.current && clearTimeout(c.current), o(u), c.current = setTimeout(() => {
2322
- o(null), c.current = 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
- }, []), d = w(
2325
- (u, m) => {
2326
- a(u, m), u === "snapInPx" && m > t.snapOutPx && (a("snapOutPx", m), f("snapOutPx"));
2407
+ }, []), u = w(
2408
+ (d, g) => {
2409
+ n(d, g), d === "snapInPx" && g > t.snapOutPx && (n("snapOutPx", g), m("snapOutPx"));
2327
2410
  },
2328
- [a, t.snapOutPx, f]
2329
- ), p = ge(() => qt, []), h = ct();
2330
- return /* @__PURE__ */ O(
2331
- be.div,
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__ */ O(
2425
+ /* @__PURE__ */ k(
2343
2426
  "div",
2344
2427
  {
2345
2428
  className: "gloss-dev-tuning-panel__header",
2346
- onPointerDown: (u) => h.start(u),
2429
+ onPointerDown: (d) => h.start(d),
2347
2430
  children: [
2348
- /* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2349
- /* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
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__ */ l("div", { className: "gloss-dev-tuning-panel__body", children: p.map((u) => /* @__PURE__ */ l(
2354
- Jt,
2436
+ /* @__PURE__ */ i("div", { className: "gloss-dev-tuning-panel__body", children: p.map((d) => /* @__PURE__ */ i(
2437
+ aa,
2355
2438
  {
2356
- spec: u,
2357
- value: t[u.key],
2358
- onChange: (m) => d(u.key, m),
2359
- onReset: () => n(u.key),
2360
- flashing: s === u.key
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
- u.key
2445
+ d.key
2363
2446
  )) }),
2364
- /* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ l(
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 Pa({
2460
+ function Wn({
2378
2461
  state: e,
2379
2462
  originX: t,
2380
- originY: a,
2381
- leftEdgeX: n,
2463
+ originY: n,
2464
+ leftEdgeX: a,
2382
2465
  rightEdgeX: r,
2383
2466
  minBoundaryX: s,
2384
2467
  snapBoundariesX: o,
2385
- topY: c,
2386
- bottomY: f,
2387
- enterMs: d = ae.envelopeEnterMs,
2388
- exitMs: p = ae.envelopeExitMs,
2468
+ topY: l,
2469
+ bottomY: m,
2470
+ enterMs: u = ne.envelopeEnterMs,
2471
+ exitMs: p = ne.envelopeExitMs,
2389
2472
  className: h,
2390
- style: u
2473
+ style: d
2391
2474
  }) {
2392
2475
  if (e === "hidden") return null;
2393
- const m = Math.max(0, r - n), N = Math.max(0, f - c), y = {
2394
- "--gloss-resize-envelope-enter-ms": `${d}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 - n}px`,
2397
- "--gloss-resize-envelope-origin-y": `${a - c}px`,
2398
- left: n,
2399
- top: c,
2400
- width: m,
2401
- height: N,
2402
- ...u
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__ */ O(
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__ */ l(
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__ */ l(
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 - n }
2509
+ style: { left: s - a }
2427
2510
  }
2428
2511
  ),
2429
- /* @__PURE__ */ l(
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: m - 1 }
2517
+ style: { left: g - 1 }
2435
2518
  }
2436
2519
  ),
2437
- o.filter((g) => g > s && g < r).map((g) => /* @__PURE__ */ l(
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: g - n }
2525
+ style: { left: f - a }
2443
2526
  },
2444
- g
2527
+ f
2445
2528
  ))
2446
2529
  ]
2447
2530
  }
2448
2531
  );
2449
2532
  }
2450
- function Fa({
2533
+ function Hn({
2451
2534
  density: e,
2452
2535
  canAccept: t,
2453
- blocked: a = !1,
2454
- proximityOpacity: n,
2536
+ blocked: n = !1,
2537
+ proximityOpacity: a,
2455
2538
  className: r,
2456
2539
  children: s,
2457
2540
  ...o
2458
2541
  }) {
2459
- const c = n != null ? { ...o.style, "--_proximity-opacity": String(n) } : o.style;
2460
- return /* @__PURE__ */ l(
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: c,
2547
+ style: l,
2465
2548
  "data-density": e,
2466
2549
  "data-can-accept": t ? "true" : "false",
2467
- "data-blocked": a ? "true" : void 0,
2468
- "data-proximity-driven": n != null ? "true" : void 0,
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
- a && "gloss-drop-anchor-cell--blocked-pulse",
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 an(e, t, a, n) {
2480
- const r = (e + a) / 2, s = Math.min(t, n) - 40;
2481
- return `M${e},${t} Q${r},${s} ${a},${n}`;
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 Ea({
2566
+ function Vn({
2484
2567
  segments: e,
2485
- durationMs: t = ae.spilloverArcDurationMs,
2486
- staggerMs: a = ae.spilloverStaggerMs,
2487
- className: n,
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__ */ l(
2573
+ return e.length === 0 ? null : /* @__PURE__ */ i(
2491
2574
  "svg",
2492
2575
  {
2493
- className: ["gloss-spillover-arc", n].filter(Boolean).join(" "),
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__ */ l(
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: an(s.fromX, s.fromY, s.toX, s.toY),
2586
+ d: ia(s.fromX, s.fromY, s.toX, s.toY),
2504
2587
  style: {
2505
- animationDelay: `${o * a}ms`,
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 Oa({
2597
+ function Un({
2515
2598
  state: e,
2516
2599
  staggerIndex: t = 0,
2517
- fadeInMs: a = ae.sectionDividerFadeInMs,
2518
- fadeOutMs: n = ae.sectionDividerFadeOutMs,
2519
- staggerMs: r = ae.sectionDividerStaggerMs,
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: c,
2523
- ...f
2605
+ style: l,
2606
+ ...m
2524
2607
  }) {
2525
- const d = {
2526
- "--gloss-section-divider-fade-in-ms": `${a}ms`,
2527
- "--gloss-section-divider-fade-out-ms": `${n}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
- ...c
2612
+ ...l
2530
2613
  };
2531
- return /* @__PURE__ */ l(
2614
+ return /* @__PURE__ */ i(
2532
2615
  "div",
2533
2616
  {
2534
- ...f,
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: d
2627
+ style: u
2545
2628
  }
2546
2629
  );
2547
2630
  }
2548
- function Aa({
2631
+ function jn({
2549
2632
  enabled: e,
2550
2633
  onPack: t,
2551
- ariaLabel: a = "Pack row (shift cards left)",
2552
- className: n,
2634
+ ariaLabel: n = "Pack row (shift cards left)",
2635
+ className: a,
2553
2636
  style: r
2554
2637
  }) {
2555
- return /* @__PURE__ */ l(We, { visible: e, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ l(
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": a,
2561
- className: ["gloss-empty-cell-pack-affordance", n].filter(Boolean).join(" "),
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__ */ l("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2649
+ children: /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2567
2650
  }
2568
2651
  ) });
2569
2652
  }
2570
- function La({
2653
+ function Zn({
2571
2654
  tint: e,
2572
2655
  colSpan: t,
2573
- colWidth: a,
2574
- rowHeight: n,
2656
+ colWidth: n,
2657
+ rowHeight: a,
2575
2658
  gap: r,
2576
2659
  x: s,
2577
2660
  y: o,
2578
- children: c,
2579
- className: f
2661
+ children: l,
2662
+ className: m
2580
2663
  }) {
2581
- const d = t * a + (t - 1) * r;
2582
- return /* @__PURE__ */ l(
2583
- be.div,
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
- f
2674
+ m
2592
2675
  ].filter(Boolean).join(" "),
2593
- style: { x: s, y: o, width: d, height: n },
2594
- children: c
2676
+ style: { x: s, y: o, width: u, height: a },
2677
+ children: l
2595
2678
  }
2596
2679
  );
2597
2680
  }
2598
- const rn = 3;
2599
- function $a({
2681
+ const oa = 3;
2682
+ function qn({
2600
2683
  cell: e,
2601
2684
  colSpan: t,
2602
- colWidth: a,
2603
- gap: n,
2685
+ colWidth: n,
2686
+ gap: a,
2604
2687
  rowHeight: r,
2605
2688
  transitionMs: s = 120,
2606
2689
  className: o
2607
2690
  }) {
2608
- const c = t * a + (t - 1) * n, d = (e.section * rn + e.col) * (a + n), p = e.row * (r + n);
2609
- return /* @__PURE__ */ l(
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(${d}px, ${p}px)`,
2617
- width: c,
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 Ba({
2707
+ function Yn({
2625
2708
  items: e,
2626
2709
  children: t,
2627
- className: a
2710
+ className: n
2628
2711
  }) {
2629
- return e.length === 0 ? null : /* @__PURE__ */ l(_e, { children: e.map((n) => /* @__PURE__ */ l(
2630
- be.div,
2712
+ return e.length === 0 ? null : /* @__PURE__ */ i(be, { children: e.map((a) => /* @__PURE__ */ i(
2713
+ ve.div,
2631
2714
  {
2632
- "data-card-id": n.cardId,
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", a].filter(Boolean).join(" "),
2636
- style: { position: "absolute", x: n.x, y: n.y },
2637
- children: t(n)
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
- n.cardId
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 sn({
2984
+ function fa({
2651
2985
  message: e,
2652
2986
  primaryAction: t,
2653
- onDismiss: a,
2654
- anchorEl: n,
2987
+ onDismiss: n,
2988
+ anchorEl: a,
2655
2989
  anchorSelector: r
2656
2990
  }) {
2657
- const [s, o] = V.useState(null), c = V.useMemo(
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
- !n && !r && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
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
- }, [n, r]), V.useLayoutEffect(() => {
2666
- let d = null;
2667
- if (n ? d = n : r && (d = document.querySelector(r)), d) {
2668
- const p = d.getBoundingClientRect();
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
- }, [n, r]);
2675
- const f = s ? { top: s.top, left: s.left } : {};
2676
- return /* @__PURE__ */ O(
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: f,
3014
+ style: m,
2681
3015
  role: "status",
2682
3016
  "aria-live": "polite",
2683
- "data-reduced-motion": c ? "true" : void 0,
3017
+ "data-reduced-motion": l ? "true" : void 0,
2684
3018
  children: [
2685
- /* @__PURE__ */ l("span", { className: te["gloss-inline-nudge__message"], children: e }),
2686
- /* @__PURE__ */ O("div", { className: te["gloss-inline-nudge__actions"], children: [
2687
- /* @__PURE__ */ l(
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__ */ l(
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: a,
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
- sn.displayName = "InlineNudge";
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 on(e, t, a) {
2716
- if (a <= t) {
2717
- const o = e[0], c = o ? Me(o) : "#888";
2718
- return `linear-gradient(to right, ${c}, ${c})`;
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 n = a - t, s = [...e].sort((o, c) => o.value - c.value).map((o) => {
2721
- const c = (o.value - t) / n * 100;
2722
- return `${Me(o)} ${c.toFixed(2)}%`;
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 ln(e) {
3060
+ function ba(e) {
2727
3061
  return e.map((t) => `${t.id}:${t.value}`).join("|");
2728
3062
  }
2729
- function cn({
3063
+ function va({
2730
3064
  stops: e,
2731
3065
  onChange: t,
2732
- min: a = 0,
2733
- max: n = 100,
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, c = w(
2740
- (i) => Math.round(i / o) * o,
3073
+ ), 0.01) : r, l = w(
3074
+ (c) => Math.round(c / o) * o,
2741
3075
  [o]
2742
- ), f = R(null), [d, p] = G(null), [h, u] = G(e), m = ln(e), N = R(m);
3076
+ ), m = T(null), [u, p] = $(null), [h, d] = $(e), g = ba(e), _ = T(g);
2743
3077
  L(() => {
2744
- N.current !== m && (N.current = m, !d && u(e));
2745
- }, [m, e, d]);
2746
- const y = ge(() => on(h, a, n), [h, a, n]), g = w(
2747
- (i) => {
2748
- if (!f.current) return a;
2749
- const b = f.current.getBoundingClientRect(), D = b.width || 1, x = Math.max(0, Math.min(1, (i - b.left) / D)), v = a + x * (n - a);
2750
- return c(v);
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
- [a, n, c]
3086
+ [n, a, l]
2753
3087
  );
2754
3088
  L(() => {
2755
- n <= a && process.env.NODE_ENV !== "production" && console.warn(
2756
- `ThresholdRamp: max (${n}) must be greater than min (${a}); rendering degenerate strip.`
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
- }, [a, n]);
2759
- const S = w(
2760
- (i, b) => {
2761
- const D = h.find((x) => x.id === b);
2762
- s || D?.disabled || (i.preventDefault(), p(b));
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
- ), I = R(h);
2766
- I.current = h;
2767
- const _ = R(t);
2768
- _.current = t, L(() => {
2769
- if (!d) return;
2770
- const i = (D) => {
2771
- const x = g(D.clientX);
2772
- u(
2773
- (v) => v.map((k) => k.id === d ? { ...k, value: x } : k)
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 x = g(D.clientX), v = I.current.map(
2777
- (k) => k.id === d ? { ...k, value: x } : k
3110
+ const S = f(D.clientX), v = P.current.map(
3111
+ (x) => x.id === u ? { ...x, value: S } : x
2778
3112
  );
2779
- u(v), p(null), _.current(v);
3113
+ d(v), p(null), C.current(v);
2780
3114
  };
2781
- return window.addEventListener("pointermove", i), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b), () => {
2782
- window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b);
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
- }, [d, g]);
2785
- const M = n - a > 0 ? n - a : 1, T = w(
2786
- (i, b) => {
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 = n - a;
3122
+ const D = a - n;
2789
3123
  if (D <= 0) return;
2790
- const x = i.shiftKey ? D / 20 : D / 100;
3124
+ const S = c.shiftKey ? D / 20 : D / 100;
2791
3125
  let v = b.value;
2792
- switch (i.key) {
3126
+ switch (c.key) {
2793
3127
  case "ArrowRight":
2794
3128
  case "ArrowUp":
2795
- v = b.value + x;
3129
+ v = b.value + S;
2796
3130
  break;
2797
3131
  case "ArrowLeft":
2798
3132
  case "ArrowDown":
2799
- v = b.value - x;
3133
+ v = b.value - S;
2800
3134
  break;
2801
3135
  case "Home":
2802
- v = a;
3136
+ v = n;
2803
3137
  break;
2804
3138
  case "End":
2805
- v = n;
3139
+ v = a;
2806
3140
  break;
2807
3141
  default:
2808
3142
  return;
2809
3143
  }
2810
- i.preventDefault();
2811
- const k = Math.max(a, Math.min(n, v)), P = c(k);
2812
- if (P === b.value) return;
2813
- const j = h.map(
2814
- (Y) => Y.id === b.id ? { ...Y, value: P } : Y
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
- u(j), t(j);
3150
+ d(U), t(U);
2817
3151
  },
2818
- [s, a, n, h, t, c]
3152
+ [s, n, a, h, t, l]
2819
3153
  );
2820
- return /* @__PURE__ */ l("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ l(
3154
+ return /* @__PURE__ */ i("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ i(
2821
3155
  "div",
2822
3156
  {
2823
- ref: f,
3157
+ ref: m,
2824
3158
  className: "gloss-threshold-ramp__track",
2825
3159
  style: { background: y },
2826
- children: h.map((i) => {
2827
- const b = (i.value - a) / M * 100;
2828
- return /* @__PURE__ */ l(
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(i)
3168
+ color: Me(c)
2835
3169
  },
2836
- "data-disabled": i.disabled || void 0,
2837
- "data-dragging": d === i.id || void 0,
2838
- onPointerDown: (D) => S(D, i.id),
2839
- onKeyDown: (D) => T(D, i),
2840
- "aria-label": i.label ?? `Stop at ${i.value}`,
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": i.value,
2843
- "aria-valuemin": a,
2844
- "aria-valuemax": n,
2845
- "aria-disabled": i.disabled || s || void 0,
2846
- tabIndex: i.disabled || s ? -1 : 0
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
- i.id
3182
+ c.id
2849
3183
  );
2850
3184
  })
2851
3185
  }
2852
3186
  ) });
2853
3187
  }
2854
- cn.displayName = "ThresholdRamp";
2855
- const Ye = ot(null);
2856
- function dn() {
2857
- return it(Ye);
3188
+ va.displayName = "ThresholdRamp";
3189
+ const qe = lt(null);
3190
+ function ya() {
3191
+ return ct(qe);
2858
3192
  }
2859
- function un({ option: e }) {
2860
- const t = dn(), a = t?.isSelected(e.value) ?? !1, n = e.disabled || t?.groupDisabled, r = w(() => {
2861
- n || t?.select(e.value);
2862
- }, [n, t, e.value]), s = w(
2863
- (d) => {
2864
- n || t?.onKeyNav(d, e.value);
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
- [n, t, e.value]
2867
- ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", c = t?.firstFocusableValue === e.value, f = n ? -1 : c ? 0 : -1;
2868
- return /* @__PURE__ */ l(
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: (d) => t?.registerRef(e.value, d),
3205
+ ref: (u) => t?.registerRef(e.value, u),
2872
3206
  type: "button",
2873
3207
  role: "radio",
2874
- "aria-checked": a,
3208
+ "aria-checked": n,
2875
3209
  className: "gloss-preset-swatch-row__swatch",
2876
3210
  style: { backgroundColor: o },
2877
- "data-selected": a || void 0,
2878
- "data-disabled": n || void 0,
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": n,
2882
- disabled: n,
2883
- tabIndex: f,
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 mn({
3223
+ function Da({
2890
3224
  swatches: e,
2891
3225
  value: t,
2892
- defaultValue: a,
2893
- onChange: n,
3226
+ defaultValue: n,
3227
+ onChange: a,
2894
3228
  disabled: r = !1,
2895
3229
  name: s
2896
3230
  }) {
2897
- const o = t !== void 0, [c, f] = G(a), d = o ? t : c, p = w(
2898
- (_) => {
2899
- o || f(_), n?.(_);
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, n]
3235
+ [o, a]
2902
3236
  ), h = w(
2903
- (_) => d === _,
2904
- [d]
2905
- ), u = R(/* @__PURE__ */ new Map()), m = w((_, M) => {
2906
- M ? u.current.set(_, M) : u.current.delete(_);
2907
- }, []), N = e.filter((_) => !_.disabled && !r), y = N.find((_) => _.value === d)?.value ?? N[0]?.value, g = w((_) => {
2908
- const M = u.current.get(_);
2909
- M && M.focus();
2910
- }, []), S = w(
2911
- (_, M) => {
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 T = e.filter((x) => !x.disabled);
2914
- if (T.length === 0) return;
2915
- const i = T.findIndex((x) => x.value === M);
2916
- if (i === -1) return;
2917
- let b = i;
2918
- switch (_.key) {
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 = (i + 1) % T.length;
3255
+ b = (c + 1) % I.length;
2922
3256
  break;
2923
3257
  case "ArrowLeft":
2924
3258
  case "ArrowUp":
2925
- b = (i - 1 + T.length) % T.length;
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 = T.length - 1;
3265
+ b = I.length - 1;
2932
3266
  break;
2933
3267
  case " ":
2934
3268
  case "Enter":
2935
- _.preventDefault(), p(M);
3269
+ C.preventDefault(), p(R);
2936
3270
  return;
2937
3271
  default:
2938
3272
  return;
2939
3273
  }
2940
- _.preventDefault();
2941
- const D = T[b].value;
2942
- g(D), p(D);
3274
+ C.preventDefault();
3275
+ const D = I[b].value;
3276
+ f(D), p(D);
2943
3277
  },
2944
- [r, e, p, g]
2945
- ), I = {
2946
- selectedValue: d,
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: m,
3285
+ registerRef: g,
2952
3286
  firstFocusableValue: y,
2953
- onKeyNav: S
3287
+ onKeyNav: M
2954
3288
  };
2955
- return /* @__PURE__ */ l(Ye.Provider, { value: I, children: /* @__PURE__ */ l(
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((_) => /* @__PURE__ */ l(un, { option: _ }, _.value))
3297
+ children: e.map((C) => /* @__PURE__ */ i(wa, { option: C }, C.value))
2964
3298
  }
2965
3299
  ) });
2966
3300
  }
2967
- mn.displayName = "PresetSwatchRow";
3301
+ Da.displayName = "PresetSwatchRow";
2968
3302
  function Te(e, t) {
2969
- for (const a of e)
2970
- if (a.items.some((n) => n.id === t))
2971
- return a.zoneKey;
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 Ke(e, t) {
2975
- const a = e.find((n) => n.zoneKey === t);
2976
- return a ? a.zoneKey : Te(e, t);
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 gn(e, t, a) {
2979
- const n = [...e], [r] = n.splice(t, 1);
2980
- return n.splice(a, 0, r), n;
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 pn(e) {
2983
- return e.map((t) => `${t.zoneKey}:${t.items.map((a) => a.id).join(",")}`).join("|");
3316
+ function Na(e) {
3317
+ return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
2984
3318
  }
2985
- function fn(e) {
2986
- const [t, a] = G(
2987
- () => e.zones.map((g) => g.maxItems !== void 0 && g.items.length > g.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2988
- `useSortableZones: zone "${g.zoneKey}" exceeds maxItems (${g.items.length} > ${g.maxItems}); trimming to cap.`
2989
- ), { ...g, items: g.items.slice(0, g.maxItems) }) : g)
2990
- ), [n, r] = G(null), [s, o] = G(null), c = R(null), f = R(e.onZoneChange);
2991
- f.current = e.onZoneChange;
2992
- const d = ge(
2993
- () => pn(e.zones),
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 = R(d);
3329
+ ), p = T(u);
2996
3330
  L(() => {
2997
- p.current !== d && (p.current = d, !n && a(
2998
- e.zones.map((g) => g.maxItems !== void 0 && g.items.length > g.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2999
- `useSortableZones: zone "${g.zoneKey}" exceeds maxItems (${g.items.length} > ${g.maxItems}); trimming to cap.`
3000
- ), { ...g, items: g.items.slice(0, g.maxItems) }) : g)
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
- }, [d, e.zones, n]);
3336
+ }, [u, e.zones, a]);
3003
3337
  const h = w(
3004
- (g) => {
3005
- const S = g.active.id;
3006
- let I = null, _ = null;
3007
- for (const M of t) {
3008
- const T = M.items.find((i) => i.id === S);
3009
- if (T) {
3010
- I = T, _ = M.zoneKey;
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
- c.current = _, r(I), o(_);
3348
+ l.current = C, r(P), o(C);
3015
3349
  },
3016
3350
  [t]
3017
- ), u = w(
3018
- (g) => {
3019
- if (!g.over) {
3020
- o(c.current);
3351
+ ), d = w(
3352
+ (f) => {
3353
+ if (!f.over) {
3354
+ o(l.current);
3021
3355
  return;
3022
3356
  }
3023
- const S = Ke(t, g.over.id);
3024
- o(S);
3357
+ const M = ze(t, f.over.id);
3358
+ o(M);
3025
3359
  },
3026
3360
  [t]
3027
- ), m = w(
3028
- (g) => {
3029
- const { active: S, over: I } = g, _ = () => {
3030
- c.current = null, r(null), o(null);
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 (!I) {
3033
- _();
3366
+ if (!P) {
3367
+ C();
3034
3368
  return;
3035
3369
  }
3036
- const M = Te(t, S.id), T = Ke(t, I.id);
3037
- if (!M || !T) {
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 i = t.map((b) => ({ ...b, items: [...b.items] }));
3042
- if (M === T) {
3043
- const b = i.findIndex((P) => P.zoneKey === M), D = i[b], x = D.items.findIndex((P) => P.id === S.id), v = D.items.findIndex((P) => P.id === I.id), k = v >= 0 ? v : Math.max(0, D.items.length - 1);
3044
- i[b] = {
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: gn(D.items, x, k)
3380
+ items: _a(D.items, S, x)
3047
3381
  };
3048
3382
  } else {
3049
- const b = i.findIndex((A) => A.zoneKey === M), D = i.findIndex((A) => A.zoneKey === T), x = i[b], v = i[D], k = x.items.find((A) => A.id === S.id);
3050
- if (!k) {
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 P = x.items.filter((A) => A.id !== S.id), j = v.items.findIndex((A) => A.id === I.id), Y = j >= 0 ? j : v.items.length;
3055
- let U = P, W = [...v.items];
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 A = W[W.length - 1];
3058
- W = W.slice(0, v.maxItems - 1), U = [...P, A];
3391
+ const O = W[W.length - 1];
3392
+ W = W.slice(0, v.maxItems - 1), j = [...F, O];
3059
3393
  }
3060
- const $ = Math.min(Y, W.length), Z = [
3061
- ...W.slice(0, $),
3062
- k,
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
- i[b] = { ...x, items: U }, i[D] = { ...v, items: Z };
3399
+ c[b] = { ...S, items: j }, c[D] = { ...v, items: Z };
3066
3400
  }
3067
- a(i), f.current?.(i), _();
3401
+ n(c), m.current?.(c), C();
3068
3402
  },
3069
3403
  [t]
3070
- ), N = w(
3071
- (g) => ({
3072
- id: g,
3073
- "data-zone-key": g
3404
+ ), _ = w(
3405
+ (f) => ({
3406
+ id: f,
3407
+ "data-zone-key": f
3074
3408
  }),
3075
3409
  []
3076
3410
  ), y = w(
3077
- (g) => {
3078
- const S = Te(t, g.id) ?? "";
3411
+ (f) => {
3412
+ const M = Te(t, f.id) ?? "";
3079
3413
  return {
3080
- id: g.id,
3081
- "data-item-id": g.id,
3082
- "data-zone-key": S
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: n,
3091
- getZoneProps: N,
3424
+ activeItem: a,
3425
+ getZoneProps: _,
3092
3426
  getItemProps: y,
3093
3427
  handleDragStart: h,
3094
- handleDragOver: u,
3095
- handleDragEnd: m
3428
+ handleDragOver: d,
3429
+ handleDragEnd: g
3096
3430
  };
3097
3431
  }
3098
3432
  let ue = null, he = null, Ce = !1;
3099
- const hn = [
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
- ], bn = [
3442
+ ], xa = [
3109
3443
  "SortableContext",
3110
3444
  "useSortable",
3111
3445
  "verticalListSortingStrategy"
3112
3446
  ];
3113
- function vn(e, t) {
3114
- const a = [], n = e ?? {};
3115
- for (const s of hn)
3116
- n[s] === void 0 && a.push(`@dnd-kit/core:${s}`);
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 bn)
3119
- r[s] === void 0 && a.push(`@dnd-kit/sortable:${s}`);
3120
- return a.length === 0 ? { ok: !0 } : { ok: !1, missing: a };
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 yn() {
3456
+ function Ma() {
3123
3457
  return ue ? Promise.resolve(ue) : Ce ? Promise.resolve(null) : he || (he = (async () => {
3124
3458
  try {
3125
- const [e, t, a] = await Promise.all([
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
- ]), n = vn(e, t);
3132
- return n.ok ? (ue = {
3465
+ ]), a = Sa(e, t);
3466
+ return a.ok ? (ue = {
3133
3467
  core: e,
3134
3468
  sortable: t,
3135
- utilities: a
3469
+ utilities: n
3136
3470
  }, ue) : (Ce = !0, process.env.NODE_ENV !== "production" && console.error(
3137
- `SortableZones: @dnd-kit shape mismatch — missing exports: ${n.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
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 wn(e) {
3145
- const { zones: t, onZoneChange: a, renderZone: n, renderItem: r, renderDragOverlay: s } = e, o = fn({ zones: t, onZoneChange: a }), [c, f] = V.useState(ue);
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 (c) return;
3148
- let d = !0;
3149
- return yn().then((p) => {
3150
- d && f(p);
3481
+ if (l) return;
3482
+ let u = !0;
3483
+ return Ma().then((p) => {
3484
+ u && m(p);
3151
3485
  }), () => {
3152
- d = !1;
3486
+ u = !1;
3153
3487
  };
3154
- }, [c]), c ? /* @__PURE__ */ l(
3155
- qe,
3488
+ }, [l]), l ? /* @__PURE__ */ i(
3489
+ Ye,
3156
3490
  {
3157
3491
  state: o,
3158
- modules: c,
3159
- renderZone: n,
3492
+ modules: l,
3493
+ renderZone: a,
3160
3494
  renderItem: r,
3161
3495
  renderDragOverlay: s
3162
3496
  }
3163
- ) : /* @__PURE__ */ l("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
3164
- const p = d.items.map((h) => /* @__PURE__ */ l(V.Fragment, { children: r(h) }, h.id));
3165
- return /* @__PURE__ */ l("div", { ...o.getZoneProps(d.zoneKey), children: n(d.zoneKey, d.items, p) }, d.zoneKey);
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
- wn.displayName = "SortableZones";
3169
- function qe({
3502
+ Ta.displayName = "SortableZones";
3503
+ function Ye({
3170
3504
  state: e,
3171
3505
  modules: t,
3172
- renderZone: a,
3173
- renderItem: n,
3506
+ renderZone: n,
3507
+ renderItem: a,
3174
3508
  renderDragOverlay: r
3175
3509
  }) {
3176
- const { core: s, sortable: o, utilities: c } = t, { DndContext: f, DragOverlay: d, useSensors: p, useSensor: h, useDroppable: u, PointerSensor: m, KeyboardSensor: N, closestCenter: y } = s, { SortableContext: g, verticalListSortingStrategy: S } = o, I = p(
3177
- h(m, { activationConstraint: { distance: 5 } }),
3178
- h(N)
3179
- ), _ = f, M = d, T = g;
3180
- return /* @__PURE__ */ O(
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: I,
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((i) => {
3190
- const b = i.items.map((x) => x.id), D = i.items.map((x) => /* @__PURE__ */ l(
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: x.id,
3527
+ id: S.id,
3194
3528
  useSortable: o.useSortable,
3195
- cssHelper: c.CSS,
3196
- children: n(x)
3529
+ cssHelper: l.CSS,
3530
+ children: a(S)
3197
3531
  },
3198
- x.id
3532
+ S.id
3199
3533
  ));
3200
- return /* @__PURE__ */ l(
3534
+ return /* @__PURE__ */ i(
3201
3535
  Xe,
3202
3536
  {
3203
- zoneKey: i.zoneKey,
3204
- zoneProps: e.getZoneProps(i.zoneKey),
3205
- useDroppable: u,
3206
- children: /* @__PURE__ */ l(T, { items: b, strategy: S, children: a(i.zoneKey, i.items, D) })
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
- i.zoneKey
3542
+ c.zoneKey
3209
3543
  );
3210
3544
  }),
3211
- /* @__PURE__ */ l(M, { children: e.activeItem ? r?.(e.activeItem) ?? n(e.activeItem) : null })
3545
+ /* @__PURE__ */ i(R, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
3212
3546
  ]
3213
3547
  }
3214
3548
  );
3215
3549
  }
3216
- qe.displayName = "SortableZonesInner";
3217
- function Qe({ id: e, useSortable: t, cssHelper: a, children: n }) {
3218
- const { attributes: r, listeners: s, setNodeRef: o, transform: c, transition: f, isDragging: d } = t({ id: e }), p = {
3219
- transform: a?.Transform?.toString(c) ?? void 0,
3220
- transition: f,
3221
- opacity: d ? 0.5 : 1
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__ */ l("div", { ref: o, style: p, "data-sortable-item-id": e, ...r, ...s, children: n });
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: a,
3230
- children: n
3563
+ useDroppable: n,
3564
+ children: a
3231
3565
  }) {
3232
- const { setNodeRef: r, isOver: s } = a({ id: e });
3233
- return /* @__PURE__ */ l("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: n });
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 za({
3570
+ function Jn({
3237
3571
  slotLeft: e,
3238
3572
  slotCenter: t,
3239
- slotRight: a,
3240
- height: n = 36,
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 c = {
3246
- "--gloss-bottom-toolbar-height": `${n}px`,
3579
+ const l = {
3580
+ "--gloss-bottom-toolbar-height": `${a}px`,
3247
3581
  ...s
3248
3582
  };
3249
- return /* @__PURE__ */ O(
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: c,
3590
+ style: l,
3257
3591
  children: [
3258
- /* @__PURE__ */ l(
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__ */ l(
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__ */ l(
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: a
3613
+ children: n
3280
3614
  }
3281
3615
  )
3282
3616
  ]
3283
3617
  }
3284
3618
  );
3285
3619
  }
3286
- function Ka({
3620
+ function er({
3287
3621
  count: e,
3288
3622
  currentIndex: t,
3289
- onSelect: a,
3290
- "aria-label": n = "Sections",
3623
+ onSelect: n,
3624
+ "aria-label": a = "Sections",
3291
3625
  provisionalIndex: r,
3292
3626
  pulseIndex: s,
3293
3627
  pulseNonce: o
3294
3628
  }) {
3295
- const c = rt.useRef([]);
3296
- return c.current.length = e, /* @__PURE__ */ l(
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": n,
3634
+ "aria-label": a,
3301
3635
  "data-testid": "gloss-section-dots",
3302
3636
  className: "gloss-section-dots",
3303
- onKeyDown: (d) => {
3637
+ onKeyDown: (u) => {
3304
3638
  if (e !== 0) {
3305
- if (d.key === "ArrowRight") {
3306
- d.preventDefault();
3639
+ if (u.key === "ArrowRight") {
3640
+ u.preventDefault();
3307
3641
  const p = (t + 1) % e;
3308
- a(p), requestAnimationFrame(() => c.current[p]?.focus());
3309
- } else if (d.key === "ArrowLeft") {
3310
- d.preventDefault();
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
- a(p), requestAnimationFrame(() => c.current[p]?.focus());
3646
+ n(p), requestAnimationFrame(() => l.current[p]?.focus());
3313
3647
  }
3314
3648
  }
3315
3649
  },
3316
- children: Array.from({ length: e }, (d, p) => /* @__PURE__ */ l(
3650
+ children: Array.from({ length: e }, (u, p) => /* @__PURE__ */ i(
3317
3651
  "button",
3318
3652
  {
3319
3653
  ref: (h) => {
3320
- c.current[p] = h;
3654
+ l.current[p] = h;
3321
3655
  },
3322
3656
  type: "button",
3323
3657
  role: "tab",
@@ -3329,332 +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: () => a(p)
3666
+ onClick: () => n(p)
3333
3667
  },
3334
3668
  p === s ? `${p}-${o ?? 0}` : p
3335
3669
  ))
3336
3670
  }
3337
3671
  );
3338
3672
  }
3339
- const Dn = V.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
3340
- const r = { ...a };
3341
- return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: n, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ l(Re, { region: "toolbar", density: e, children: t }) });
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
- Dn.displayName = "ContainerToolbar";
3344
- const Nn = V.forwardRef(({ legend: e, description: t, density: a = "default", children: n, ...r }, s) => {
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__ */ O("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
3347
- e && /* @__PURE__ */ l("legend", { className: "gloss-container-form-section__legend", children: e }),
3348
- t && /* @__PURE__ */ l("p", { className: "gloss-container-form-section__description", children: t }),
3349
- /* @__PURE__ */ l(Re, { region: "form-section", density: a, children: n })
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
- Nn.displayName = "ContainerFormSection";
3353
- const Cn = V.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
3354
- const r = { ...a };
3355
- return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: n, className: "gloss-container-table", ...r, children: /* @__PURE__ */ l(Re, { region: "table", density: e, children: t }) });
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
- Cn.displayName = "ContainerTable";
3691
+ Pa.displayName = "ContainerTable";
3358
3692
  export {
3359
- Ha as Accordion,
3360
- Va as AccordionContent,
3361
- ja as AccordionItem,
3362
- Ua as AccordionTrigger,
3363
- Za as ActionStrip,
3364
- Ya as Actionable,
3365
- qa as AddressGroup,
3366
- Qa as AddressSelect,
3367
- Xa as AsyncLoader,
3368
- Ja as Autocomplete,
3369
- er as Badge,
3370
- tr as BarChartCard,
3371
- nr as BarsBg,
3372
- za as BottomToolbar,
3373
- ar as Button,
3374
- rr as ButtonGroup,
3375
- sr as ButtonGroupContext,
3376
- or as Card,
3377
- ir as CardActions,
3378
- lr as CardBack,
3379
- cr as CardBody,
3380
- dr as CardFooter,
3381
- ur as CardHeader,
3382
- mr as CardMedia,
3383
- gr as CardShell,
3384
- pr as CardSubtitle,
3385
- fr as CardTitle,
3386
- Ba as CascadePreview,
3387
- hr as ChartControlBar,
3388
- br as Checkbox,
3389
- vr as CheckboxGroup,
3390
- yr as Chip,
3391
- wr as ColorPicker,
3392
- Dr as ComparisonCard,
3393
- Nr as ContactForm,
3394
- Cr as ContainerCard,
3395
- _r as ContainerCardActions,
3396
- kr as ContainerCardBody,
3397
- xr as ContainerCardFooter,
3398
- Sr as ContainerCardHeader,
3399
- Mr as ContainerCardMedia,
3400
- Tr as ContainerCardSubtitle,
3401
- Rr as ContainerCardTitle,
3402
- Ir as ContainerDialog,
3403
- Pr as ContainerDialogActions,
3404
- Fr as ContainerDialogBody,
3405
- Er as ContainerDialogHeader,
3406
- Nn as ContainerFormSection,
3407
- Or as ContainerPanel,
3408
- Cn as ContainerTable,
3409
- Dn as ContainerToolbar,
3410
- Ar as CreditCardForm,
3411
- Lr as DEFAULT_FOOTER_IDS,
3412
- ae as DEFAULT_GRID_INTERACTION_PHYSICS,
3413
- mi as DEFAULT_MARKET_PRESETS,
3414
- $r as DEFAULT_OVERFLOW_IDS,
3415
- gi as DEFAULT_PINNED,
3416
- Ge as DEFAULT_RESIZE_PHYSICS,
3417
- Br as DataTable,
3418
- zr as DatePicker,
3419
- Kr as DateRangePicker,
3420
- Wr as DestructiveModal,
3421
- tn as DevTuningPanel,
3422
- Gr as DirectionCard,
3423
- Hr as Dismissible,
3424
- Vr as DistributionCard,
3425
- jr as DonutChart,
3426
- La as DragGhost,
3427
- Fa as DropAnchorCell,
3428
- Ur as Dropdown,
3429
- Zr as ENTITY_FILTER_KEYS,
3430
- Yr as ENTITY_PROFILE_ROUTES,
3431
- qr as ENTITY_TYPE_PLURAL,
3432
- kt as EdgeHoverHandle,
3433
- Aa as EmptyCellPackAffordance,
3434
- Qr as EntityPicker,
3435
- Xr as EntitySearchPanel,
3436
- Jr as Expandable,
3437
- es as ExpandableChip,
3438
- ts as FLIP_AND_STAGE_TIMINGS,
3439
- ns as FileUpload,
3440
- as as FilterChip,
3441
- rs as FilterInput,
3442
- ss as FlipAndStageProvider,
3443
- os as Form,
3444
- is as FormDialog,
3445
- ls as FormField,
3446
- cs as FusedShape,
3447
- xt as GhostPreview,
3448
- ds as GroupCheckbox,
3449
- us as GroupRadio,
3450
- Qn as HARD_CLIP,
3451
- ms as HighlightCard,
3452
- gs as HybridDatePicker,
3453
- ps as ImportWizard,
3454
- sn as InlineNudge,
3455
- fs as Input,
3456
- hs as InputAddon,
3457
- bs as InputGroup,
3458
- vs as Link,
3459
- ys as LoginForm,
3460
- ws as MarketPresetRow,
3461
- Ds as MaskPresets,
3462
- Ns as MaskedInput,
3463
- Cs as Menu,
3464
- _s as MenuDivider,
3465
- ks as MenuGroup,
3466
- xs as MenuItem,
3467
- Ss as MergePrompt,
3468
- Ms as MetricCard,
3469
- Ts as MetricCardGrid,
3470
- jt as MetricGroupContainer,
3471
- Rs as MiniCalendar,
3472
- Is as MultiSelect,
3473
- Ps as NumberInput,
3474
- Fs as ObjectArrow,
3475
- Es as OrderFilterBar,
3476
- pi as PERIOD_OPTIONS,
3477
- Et as PageChip,
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
- Os as PasswordInput,
3480
- As as PaymentForm,
3481
- Ls as PaymentMethodSelect,
3482
- $s as PhoneInput,
3483
- Bs as PinToMetric,
3484
- mn as PresetSwatchRow,
3485
- zs as ProfileCard,
3486
- Ks as ProgressCard,
3487
- Ws as QuickConfigPanel,
3488
- Kt as RECONFIG_BACKSIDE_LABELS,
3489
- fi as ROLLING_OPTIONS,
3490
- Gs as Radio,
3491
- Hs as RadioGroup,
3492
- Vs as RangeSlider,
3493
- js as Rating,
3494
- Ht as ReconfigBacksideButtons,
3495
- Us as RegistrationForm,
3496
- Pa as ResizeEnvelope,
3497
- Zs as Row1Controls,
3498
- Ys as Row2FilterTray,
3499
- qs as SearchInput,
3500
- Oa as SectionDivider,
3501
- Ka as SectionDots,
3502
- Qs as SegmentCard,
3503
- Xs as SegmentedControl,
3504
- Js as Select,
3505
- eo as Selectable,
3506
- to as SimpleMetricCard,
3507
- no as SimpleSelector,
3508
- ao as Skeleton,
3509
- ro as SkeletonCard,
3510
- so as SkeletonChart,
3511
- oo as SkeletonTable,
3512
- io as Slider,
3513
- $a as SnapOutline,
3514
- lo as Sortable,
3515
- wn as SortableZones,
3516
- co as SparklineBg,
3517
- Ea as SpilloverArc,
3518
- uo as SplitButton,
3519
- mo as StackedGroupCard,
3520
- go as StatusModeCard,
3521
- _t as StatusSlotChipMenu,
3522
- po as Stepper,
3523
- We as SwingReveal,
3524
- hi as TODAY_PRESET,
3525
- ne as TUNING_DEFAULTS,
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
- fo as TabGroup,
3528
- ho as TabbedDataView,
3529
- bo as TagInput,
3530
- vo as Textarea,
3531
- cn as ThresholdRamp,
3532
- yo as TimeFrame,
3533
- wo as TimePicker,
3534
- Do as Toggle,
3535
- No as Tooltip,
3536
- Co as Transition,
3537
- _o as TransitionGroup,
3538
- ko as TrendCard,
3539
- xo as TrendIndicator,
3540
- ci as UIContext,
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
- So as UnifiedBreakdownTable,
3543
- Mo as UnifiedContextMenu,
3544
- St as VelocityBuffer,
3545
- To as addressGroupMetadata,
3546
- Ro as addressSchema,
3547
- Ln as allChips,
3548
- aa as allStateFixtures,
3549
- na as allVariantFixtures,
3550
- Kn as blockSamples,
3551
- Io as buildDefaultOverflow,
3552
- jn as cardSamples,
3553
- Un as cascadePhysics,
3554
- Hn as chartSamples,
3555
- Gn as circleSamples,
3556
- Xn as colorTokens,
3557
- ka as compactLayout,
3558
- pa as compactState,
3559
- ta as computeGutterAnchorX,
3560
- Po as contactFormMetadata,
3561
- Fo as contactSchema,
3562
- fa as contextMenuFixtures,
3563
- Eo as creditCardFormMetadata,
3564
- Oo as creditCardSchema,
3565
- wt as dateChip,
3566
- Ue as defaultControlBarState,
3567
- Ao as destructiveModalMetadata,
3568
- Lo as durations,
3569
- $o as easings,
3570
- Rt as emptyFixture,
3571
- vt as entityChip,
3572
- $t as entityNameActions,
3573
- Bn as entityTabGroup,
3574
- Tt as errorFixture,
3575
- Bo as evaluateTintCondition,
3576
- ga as filteredState,
3577
- bi as findPreset,
3578
- vi as formatDateRange,
3579
- yi as formatMarketDates,
3580
- wi as formatTrend,
3581
- Di as formatValue,
3582
- Sa as fullLayout,
3583
- Ni as generateMarketId,
3584
- zo as generateTabId,
3585
- Ci as getAllPresets,
3586
- _i as getDateRangeForPreset,
3587
- Ko as getMenuActions,
3588
- Jn as getMotionMode,
3589
- ki as getPresetLabel,
3590
- Wo as getTransitionStyle,
3591
- _a as gridCards,
3592
- Go as interpolate,
3593
- xi as isInRange,
3594
- Si as isMarketActive,
3595
- Mi as isSameDay,
3596
- ma as itemColumns,
3597
- da as itemRows,
3598
- Mt as loadingFixture,
3599
- Ho as loginFormMetadata,
3600
- Vo as loginSchema,
3601
- Dt as manufacturerChip,
3602
- Ia as manyTabs,
3603
- jo as mergeHandlers,
3604
- Uo as mergeRefs,
3605
- $n as metricTabGroup,
3606
- Ta as mixedTabs,
3607
- Ti as normalizePresetId,
3608
- zt as numericActions,
3609
- ua as orderColumns,
3610
- Bt as orderIdActions,
3611
- ca as orderRows,
3612
- Ma as ordersTabs,
3613
- Zo as parseNumericValue,
3614
- Yo as paymentFormMetadata,
3615
- qo as paymentSchema,
3616
- Qo as presets,
3617
- Yn as provisional,
3618
- qn as reducedMotion,
3619
- Xo as registrationFormMetadata,
3620
- Jo as registrationSchema,
3621
- Zn as rejectionFeedback,
3622
- ba as sampleCompareRanges,
3623
- wa as sampleCustomMarkets,
3624
- ha as sampleDateRange,
3625
- Da as sampleMarketPresetData,
3626
- ya as sampleMarkets,
3627
- Ca as samplePeriodPresets,
3628
- va as samplePreferences,
3629
- Na as samplePresets,
3630
- Ra as singleTab,
3631
- ra as sparklineFixture,
3632
- sa as sparklineUpFixture,
3633
- Ft as staleDonutFixture,
3634
- It as staleFixture,
3635
- Pt as staleSparklineFixture,
3636
- oa as standardFixture,
3637
- la as standardFlatFixture,
3638
- xa as standardLayout,
3639
- ia as standardNegativeFixture,
3640
- yt as statusChip,
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,
3641
3983
  de as swingReveal,
3642
- Vn as tableSamples,
3643
- Wn as textSamples,
3644
- zn as timeFrameTabGroup,
3645
- Ri as toUppercasePresetId,
3646
- An as useArrowNavigation,
3647
- ei as useCheckboxGroupContext,
3648
- ea as useEdgeHoverResize,
3649
- ti as useFilterLayout,
3650
- ni as useFlipAndStage,
3651
- ai as useFlipAndStageContext,
3652
- ri as useFlipAndStageContextOptional,
3653
- On as useFocusReturn,
3654
- si as useFocusTrap,
3655
- oi as useFormContext,
3656
- ii as useRadioGroupContext,
3657
- Yt as useResizeTuning,
3658
- fn as useSortableZones,
3659
- di as useUIContext
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
3660
4002
  };