@mt-gloss/ui 0.1.56 → 0.1.58

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 (2) hide show
  1. package/index.js +1449 -1362
  2. package/package.json +5 -1
package/index.js CHANGED
@@ -1,21 +1,22 @@
1
- import { u as yt, C as wt } from "./Expandable-BgEhifn0.js";
2
- import { Q as Wr, V as jr, T as Gr, U as Vr, a5 as Hr, b8 as Ur, aB as Zr, aj as Yr, $ as qr, ap as Qr, N as Xr, aa as Jr, bo as es, P as ts, B as as, a as ns, A as rs, K as ss, bj as is, J as os, L as ls, E as cs, D as ds, H as us, F as ms, by as gs, b as ps, c as hs, O as fs, q as bs, af as vs, aP as ys, A as ws, K as _s, J as Ns, L as Ds, E as ks, D as Cs, H as xs, F as Ss, b1 as Rs, b4 as Ms, b3 as Ts, b2 as Is, b5 as Ps, aE as Fs, a7 as Es, a6 as As, as as Os, m as Ls, o as $s, aH as Bs, ad as Ks, ba as zs, ab as Ws, bp as js, _ as Gs, bI as Vs, bH as Hs, bJ as Us, ar as Zs, aS as Ys, bc as qs, bN as Qs, bw as Xs, p as Js, ao as ei, bC as ti, bt as ai, a2 as ni, at as ri, a4 as si, bB as ii, bS as oi, G as li, f as ci, ac as di, bK as ui, aV as mi, t as gi, x as pi, I as hi, i as fi, ay as bi, bO as vi, M as yi, y as wi, W as _i, Z as Ni, X as Di, Y as ki, au as Ci, bi as xi, bQ as Si, bM as Ri, aq as Mi, w as Ti, bq as Ii, aU as Pi, al as Fi, aM as Ei, ai as Ai, an as Oi, aw as Li, aT as $i, ae as Bi, av as Ki, e as zi, R as Wi, l as ji, r as Gi, aJ as Vi, bz as Hi, bA as Ui, ak as Zi, ag as Yi, j as qi, z as Qi, b9 as Xi, ah as Ji, bP as eo, be as to, bh as ao, bf as no, bg as ro, k as so, bb as io, bn as oo, S as lo, bl as co, bm as uo, ax as mo, bd as go, bR as po, am as ho, v as fo, bL as bo, n as vo, h as yo, s as wo, a0 as _o, a1 as No, a9 as Do, bk as ko, bx as Co, bE as xo, aC as So, aD as Ro, a8 as Mo, aQ as To, aR as Io, aF as Po, aG as Fo, aI as Eo, aX as Ao, aY as Oo, br as Lo, bG as $o, bF as Bo, a_ as Ko, a$ as zo, az as Wo, aA as jo, b7 as Go, b6 as Vo, b0 as Ho, aN as Uo, aO as Zo, aZ as Yo, aK as qo, aL as Qo, d as Xo, bD as Jo, bs as el, bu as tl, bv as al, aW as nl, a3 as rl, g as sl } from "./Expandable-BgEhifn0.js";
3
- import { jsxs as D, jsx as r, Fragment as te } from "react/jsx-runtime";
4
- import * as ke from "react";
5
- import V, { useRef as I, useEffect as O, useState as $, useCallback as w, useId as _t, forwardRef as Nt, useMemo as we, createContext as Dt, useContext as kt } from "react";
6
- import { motion as Ce, useMotionValue as Ct, animate as Ve, useDragControls as xt } from "framer-motion";
7
- import { B as St, a as he, b as Pe, U as Be } from "./UIContext-CDdyubSF.js";
8
- import { c as ol, u as ll } from "./UIContext-CDdyubSF.js";
9
- import { createPortal as Rt } from "react-dom";
10
- import { DEFAULT_MARKET_PRESETS as dl, DEFAULT_PINNED as ul, PERIOD_OPTIONS as ml, ROLLING_OPTIONS as gl, TODAY_PRESET as pl, findPreset as hl, formatDateRange as fl, formatMarketDates as bl, formatTrend as vl, formatValue as yl, generateMarketId as wl, getAllPresets as _l, getDateRangeForPreset as Nl, getPresetLabel as Dl, isInRange as kl, isMarketActive as Cl, isSameDay as xl, normalizePresetId as Sl, toUppercasePresetId as Rl } from "@mt-gloss/utils";
11
- import Mt from "@mui/icons-material/AccessTime";
12
- import Tt from "@mui/icons-material/Tune";
13
- import It from "@mui/icons-material/ViewColumn";
14
- import Pt from "@mui/icons-material/AspectRatio";
15
- import Ft from "@mui/icons-material/Palette";
16
- import Et from "@mui/icons-material/PushPin";
17
- function Nn(e = {}) {
18
- const { enabled: t = !0, returnTo: n } = e, a = I(null);
1
+ import { u as _t, C as Nt } from "./Expandable-BgEhifn0.js";
2
+ import { Q as Gr, V as Vr, T as Hr, U as Ur, a5 as Zr, b8 as Yr, aB as qr, aj as Qr, $ as Xr, ap as Jr, N as es, aa as ts, bo as as, P as ns, B as rs, a as ss, A as is, K as os, bj as ls, J as cs, L as ds, E as us, D as ms, H as gs, F as ps, by as fs, b as hs, c as bs, O as vs, q as ys, af as ws, aP as _s, A as Ns, K as Ds, J as ks, L as Cs, E as xs, D as Ss, H as Rs, F as Ms, b1 as Ts, b4 as Is, b3 as Ps, b2 as Es, b5 as Fs, aE as As, a7 as Os, a6 as Ls, as as $s, m as Bs, o as Ks, aH as zs, ad as Ws, ba as js, ab as Gs, bp as Vs, _ as Hs, bI as Us, bH as Zs, bJ as Ys, ar as qs, aS as Qs, bc as Xs, bN as Js, bw as ei, p as ti, ao as ai, bC as ni, bt as ri, a2 as si, at as ii, a4 as oi, bB as li, bS as ci, G as di, f as ui, ac as mi, bK as gi, aV as pi, t as fi, x as hi, I as bi, i as vi, ay as yi, bO as wi, M as _i, y as Ni, W as Di, Z as ki, X as Ci, Y as xi, au as Si, bi as Ri, bQ as Mi, bM as Ti, aq as Ii, w as Pi, bq as Ei, aU as Fi, al as Ai, aM as Oi, ai as Li, an as $i, aw as Bi, aT as Ki, ae as zi, av as Wi, e as ji, R as Gi, l as Vi, r as Hi, aJ as Ui, bz as Zi, bA as Yi, ak as qi, ag as Qi, j as Xi, z as Ji, b9 as eo, ah as to, bP as ao, be as no, bh as ro, bf as so, bg as io, k as oo, bb as lo, bn as co, S as uo, bl as mo, bm as go, ax as po, bd as fo, bR as ho, am as bo, v as vo, bL as yo, n as wo, h as _o, s as No, a0 as Do, a1 as ko, a9 as Co, bk as xo, bx as So, bE as Ro, aC as Mo, aD as To, a8 as Io, aQ as Po, aR as Eo, aF as Fo, aG as Ao, aI as Oo, aX as Lo, aY as $o, br as Bo, bG as Ko, bF as zo, a_ as Wo, a$ as jo, az as Go, aA as Vo, b7 as Ho, b6 as Uo, b0 as Zo, aN as Yo, aO as qo, aZ as Qo, aK as Xo, aL as Jo, d as el, bD as tl, bs as al, bu as nl, bv as rl, aW as sl, a3 as il, g as ol } from "./Expandable-BgEhifn0.js";
3
+ import { jsxs as k, jsx as r, Fragment as te } from "react/jsx-runtime";
4
+ import * as ce from "react";
5
+ import V, { useRef as P, useEffect as O, useState as $, useCallback as N, useId as Dt, forwardRef as kt, useMemo as Ne, createContext as Ct, useContext as xt } from "react";
6
+ import { motion as xe, useMotionValue as St, animate as Ue, useDragControls as Rt } from "framer-motion";
7
+ import { B as Mt, a as be, b as Ee, U as ze } from "./UIContext-CDdyubSF.js";
8
+ import { c as cl, u as dl } from "./UIContext-CDdyubSF.js";
9
+ import { createPortal as Tt } from "react-dom";
10
+ import { DEFAULT_MARKET_PRESETS as ml, DEFAULT_PINNED as gl, PERIOD_OPTIONS as pl, ROLLING_OPTIONS as fl, TODAY_PRESET as hl, findPreset as bl, formatDateRange as vl, formatMarketDates as yl, formatTrend as wl, formatValue as _l, generateMarketId as Nl, getAllPresets as Dl, getDateRangeForPreset as kl, getPresetLabel as Cl, isInRange as xl, isMarketActive as Sl, isSameDay as Rl, normalizePresetId as Ml, toUppercasePresetId as Tl } from "@mt-gloss/utils";
11
+ import It from "@mui/icons-material/AccessTime";
12
+ import Pt from "@mui/icons-material/Tune";
13
+ import Et from "@mui/icons-material/ViewColumn";
14
+ import Ft from "@mui/icons-material/AspectRatio";
15
+ import At from "@mui/icons-material/Palette";
16
+ import Ot from "@mui/icons-material/PushPin";
17
+ import { useMotionProbe as Fe } from "@mt-gloss/motion";
18
+ function Cn(e = {}) {
19
+ const { enabled: t = !0, returnTo: n } = e, a = P(null);
19
20
  return O(() => {
20
21
  t && (a.current = n || document.activeElement);
21
22
  }, [t, n]), O(() => () => {
@@ -24,7 +25,7 @@ function Nn(e = {}) {
24
25
  }, 0);
25
26
  }, [t]), a;
26
27
  }
27
- function Dn(e) {
28
+ function xn(e) {
28
29
  const {
29
30
  items: t,
30
31
  activeIndex: n,
@@ -33,66 +34,66 @@ function Dn(e) {
33
34
  orientation: s = "vertical",
34
35
  enabled: o = !0,
35
36
  isItemDisabled: l,
36
- onSelect: d,
37
- onEscape: c
38
- } = e, [f, h] = $(-1), g = n !== void 0 ? n : f, u = w(
39
- (m) => {
40
- n === void 0 && h(m), a?.(m);
37
+ onSelect: u,
38
+ onEscape: d
39
+ } = e, [h, m] = $(-1), g = n !== void 0 ? n : h, c = N(
40
+ (p) => {
41
+ n === void 0 && m(p), a?.(p);
41
42
  },
42
43
  [n, a]
43
- ), N = w(() => t.map((m, v) => ({ item: m, index: v })).filter(({ item: m, index: v }) => !l?.(m, v)).map(({ index: m }) => m), [t, l]), b = w(
44
- (m, v) => {
45
- const k = N();
46
- if (k.length === 0) return -1;
47
- const R = k.indexOf(m);
48
- if (R === -1)
49
- return v === 1 ? k.find((S) => S > m) ?? (i ? k[0] : -1) : [...k].reverse().find((F) => F < m) ?? (i ? k[k.length - 1] : -1);
50
- let y = R + v;
51
- return i ? y = (y + k.length) % k.length : y = Math.max(0, Math.min(k.length - 1, y)), k[y];
44
+ ), _ = N(() => t.map((p, v) => ({ item: p, index: v })).filter(({ item: p, index: v }) => !l?.(p, v)).map(({ index: p }) => p), [t, l]), b = N(
45
+ (p, v) => {
46
+ const D = _();
47
+ if (D.length === 0) return -1;
48
+ const T = D.indexOf(p);
49
+ if (T === -1)
50
+ return v === 1 ? D.find((S) => S > p) ?? (i ? D[0] : -1) : [...D].reverse().find((E) => E < p) ?? (i ? D[D.length - 1] : -1);
51
+ let w = T + v;
52
+ return i ? w = (w + D.length) % D.length : w = Math.max(0, Math.min(D.length - 1, w)), D[w];
52
53
  },
53
- [N, i]
54
- ), p = w(() => {
55
- const m = N();
56
- m.length > 0 && u(m[0]);
57
- }, [N, u]), M = w(() => {
58
- const m = N();
59
- m.length > 0 && u(m[m.length - 1]);
60
- }, [N, u]), P = w(() => {
61
- const m = b(g, 1);
62
- m !== -1 && u(m);
63
- }, [g, b, u]), _ = w(() => {
64
- const m = b(g, -1);
65
- m !== -1 && u(m);
66
- }, [g, b, u]), T = w(() => {
67
- u(-1);
68
- }, [u]), x = w(
69
- (m) => {
54
+ [_, i]
55
+ ), f = N(() => {
56
+ const p = _();
57
+ p.length > 0 && c(p[0]);
58
+ }, [_, c]), R = N(() => {
59
+ const p = _();
60
+ p.length > 0 && c(p[p.length - 1]);
61
+ }, [_, c]), I = N(() => {
62
+ const p = b(g, 1);
63
+ p !== -1 && c(p);
64
+ }, [g, b, c]), y = N(() => {
65
+ const p = b(g, -1);
66
+ p !== -1 && c(p);
67
+ }, [g, b, c]), M = N(() => {
68
+ c(-1);
69
+ }, [c]), x = N(
70
+ (p) => {
70
71
  if (!o) return;
71
- const { key: v } = m, k = v === "ArrowUp" && (s === "vertical" || s === "both"), R = v === "ArrowDown" && (s === "vertical" || s === "both"), y = v === "ArrowLeft" && (s === "horizontal" || s === "both"), S = v === "ArrowRight" && (s === "horizontal" || s === "both");
72
- if (k || y) {
73
- m.preventDefault(), g === -1 ? M() : _();
72
+ const { key: v } = p, D = v === "ArrowUp" && (s === "vertical" || s === "both"), T = v === "ArrowDown" && (s === "vertical" || s === "both"), w = v === "ArrowLeft" && (s === "horizontal" || s === "both"), S = v === "ArrowRight" && (s === "horizontal" || s === "both");
73
+ if (D || w) {
74
+ p.preventDefault(), g === -1 ? R() : y();
74
75
  return;
75
76
  }
76
- if (R || S) {
77
- m.preventDefault(), g === -1 ? p() : P();
77
+ if (T || S) {
78
+ p.preventDefault(), g === -1 ? f() : I();
78
79
  return;
79
80
  }
80
81
  if (v === "Home") {
81
- m.preventDefault(), p();
82
+ p.preventDefault(), f();
82
83
  return;
83
84
  }
84
85
  if (v === "End") {
85
- m.preventDefault(), M();
86
+ p.preventDefault(), R();
86
87
  return;
87
88
  }
88
89
  if ((v === "Enter" || v === " ") && g >= 0 && g < t.length) {
89
- m.preventDefault();
90
- const F = t[g];
91
- l?.(F, g) || d?.(F, g);
90
+ p.preventDefault();
91
+ const E = t[g];
92
+ l?.(E, g) || u?.(E, g);
92
93
  return;
93
94
  }
94
95
  if (v === "Escape") {
95
- c?.();
96
+ d?.();
96
97
  return;
97
98
  }
98
99
  },
@@ -101,27 +102,27 @@ function Dn(e) {
101
102
  s,
102
103
  g,
103
104
  t,
104
- p,
105
- M,
106
- P,
107
- _,
105
+ f,
106
+ R,
107
+ I,
108
+ y,
108
109
  l,
109
- d,
110
- c
110
+ u,
111
+ d
111
112
  ]
112
113
  );
113
114
  return {
114
115
  focusedIndex: g,
115
- setFocusedIndex: u,
116
+ setFocusedIndex: c,
116
117
  handleKeyDown: x,
117
- focusFirst: p,
118
- focusLast: M,
119
- focusNext: P,
120
- focusPrevious: _,
121
- resetFocus: T
118
+ focusFirst: f,
119
+ focusLast: R,
120
+ focusNext: I,
121
+ focusPrevious: y,
122
+ resetFocus: M
122
123
  };
123
124
  }
124
- const At = ({
125
+ const Lt = ({
125
126
  label: e = "Set a target",
126
127
  unit: t,
127
128
  currentValue: n,
@@ -129,24 +130,24 @@ const At = ({
129
130
  onSkip: i,
130
131
  hint: s
131
132
  }) => {
132
- const [o, l] = $(n != null ? String(n) : ""), d = () => {
133
- const u = parseFloat(o);
134
- Number.isNaN(u) || a(u);
135
- }, c = (u) => {
136
- u.key === "Enter" ? (u.preventDefault(), d()) : u.key === "Escape" && (u.preventDefault(), i?.());
137
- }, f = _t(), h = `gloss-target-input-field-${f}`, g = s ? `gloss-target-input-hint-${f}` : void 0;
138
- return /* @__PURE__ */ D("div", { className: "gloss-target-input", children: [
139
- /* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: h, children: e }),
140
- /* @__PURE__ */ D("div", { className: "gloss-target-input__field-row", children: [
133
+ const [o, l] = $(n != null ? String(n) : ""), u = () => {
134
+ const c = parseFloat(o);
135
+ Number.isNaN(c) || a(c);
136
+ }, d = (c) => {
137
+ c.key === "Enter" ? (c.preventDefault(), u()) : c.key === "Escape" && (c.preventDefault(), i?.());
138
+ }, h = Dt(), m = `gloss-target-input-field-${h}`, g = s ? `gloss-target-input-hint-${h}` : void 0;
139
+ return /* @__PURE__ */ k("div", { className: "gloss-target-input", children: [
140
+ /* @__PURE__ */ r("label", { className: "gloss-target-input__label", htmlFor: m, children: e }),
141
+ /* @__PURE__ */ k("div", { className: "gloss-target-input__field-row", children: [
141
142
  /* @__PURE__ */ r(
142
143
  "input",
143
144
  {
144
- id: h,
145
+ id: m,
145
146
  type: "number",
146
147
  className: "gloss-target-input__field",
147
148
  value: o,
148
- onChange: (u) => l(u.target.value),
149
- onKeyDown: c,
149
+ onChange: (c) => l(c.target.value),
150
+ onKeyDown: d,
150
151
  "aria-describedby": g,
151
152
  autoFocus: !0
152
153
  }
@@ -154,13 +155,13 @@ const At = ({
154
155
  t && /* @__PURE__ */ r("span", { className: "gloss-target-input__unit", children: t })
155
156
  ] }),
156
157
  s && /* @__PURE__ */ r("p", { id: g, className: "gloss-target-input__hint", children: s }),
157
- /* @__PURE__ */ D("div", { className: "gloss-target-input__actions", children: [
158
+ /* @__PURE__ */ k("div", { className: "gloss-target-input__actions", children: [
158
159
  /* @__PURE__ */ r(
159
160
  "button",
160
161
  {
161
162
  type: "button",
162
163
  className: "gloss-target-input__confirm",
163
- onClick: d,
164
+ onClick: u,
164
165
  children: "Confirm"
165
166
  }
166
167
  ),
@@ -175,43 +176,43 @@ const At = ({
175
176
  )
176
177
  ] })
177
178
  ] });
178
- }, xe = (e) => {
179
- }, Ot = {
179
+ }, Se = (e) => {
180
+ }, $t = {
180
181
  id: "entity-filter-1",
181
182
  label: "Customer: Acme Corp",
182
183
  field: "customer",
183
184
  value: "acme-corp-123",
184
- onRemove: xe
185
- }, Lt = {
185
+ onRemove: Se
186
+ }, Bt = {
186
187
  id: "status-filter-1",
187
188
  label: "Status: Open",
188
189
  field: "status",
189
190
  value: "open",
190
- onRemove: xe
191
- }, $t = {
191
+ onRemove: Se
192
+ }, Kt = {
192
193
  id: "date-filter-1",
193
194
  label: "Date: Mar 1 - Mar 15",
194
195
  field: "dateRange",
195
196
  value: "2026-03-01..2026-03-15",
196
- onRemove: xe
197
- }, Bt = {
197
+ onRemove: Se
198
+ }, zt = {
198
199
  id: "mfg-filter-1",
199
200
  label: "Manufacturer: Widget Co",
200
201
  field: "manufacturer",
201
202
  value: "widget-co-456",
202
- onRemove: xe
203
- }, kn = [
204
- Ot,
205
- Lt,
203
+ onRemove: Se
204
+ }, Sn = [
206
205
  $t,
207
- Bt
208
- ], Cn = {
206
+ Bt,
207
+ Kt,
208
+ zt
209
+ ], Rn = {
209
210
  id: "metric-toggle",
210
211
  tabs: [
211
212
  { id: "$", label: "$", mono: !0 },
212
213
  { id: "#", label: "#", mono: !0 }
213
214
  ]
214
- }, xn = {
215
+ }, Mn = {
215
216
  id: "entity-type",
216
217
  tabs: [
217
218
  { id: "orders", label: "Orders" },
@@ -219,7 +220,7 @@ const At = ({
219
220
  { id: "customers", label: "Customers" },
220
221
  { id: "manufacturers", label: "Manufacturers" }
221
222
  ]
222
- }, Sn = {
223
+ }, Tn = {
223
224
  id: "time-frame",
224
225
  tabs: [
225
226
  { id: "MTD", label: "MTD" },
@@ -227,30 +228,30 @@ const At = ({
227
228
  { id: "YTD", label: "YTD" },
228
229
  { id: "LYTD", label: "LYTD" }
229
230
  ]
230
- }, Rn = [
231
+ }, In = [
231
232
  { variant: "block", width: "100%", height: 16 },
232
233
  { variant: "block", width: 200, height: 32, borderRadius: 8 },
233
234
  { variant: "block", width: "80%", height: 12, borderRadius: "4px" },
234
235
  { variant: "block", width: 120, height: 44, borderRadius: 22 }
235
- ], Mn = [
236
+ ], Pn = [
236
237
  { variant: "text", lines: 3, lineHeight: 14, gap: 8 },
237
238
  { variant: "text", lines: 2, lineHeight: 16, gap: 10 },
238
239
  { variant: "text", lines: 5, lineHeight: 12, gap: 6 }
239
- ], Tn = [
240
+ ], En = [
240
241
  { variant: "circle", size: 24 },
241
242
  { variant: "circle", size: 40 },
242
243
  { variant: "circle", size: 64 }
243
- ], In = [
244
+ ], Fn = [
244
245
  { bars: 10, maxHeight: 120 },
245
246
  { bars: 5, maxHeight: 80 }
246
- ], Pn = [
247
+ ], An = [
247
248
  { rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
248
249
  { rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
249
- ], Fn = [
250
+ ], On = [
250
251
  { variant: "value", colSpan: 1 },
251
252
  { variant: "trend", colSpan: 2 },
252
253
  { variant: "target", colSpan: 1 }
253
- ], He = {
254
+ ], Ze = {
254
255
  position: "fixed",
255
256
  zIndex: 9999,
256
257
  background: "rgba(255,255,255,0.92)",
@@ -262,7 +263,7 @@ const At = ({
262
263
  minWidth: 148,
263
264
  paddingTop: 4,
264
265
  paddingBottom: 4
265
- }, Fe = (e) => ({
266
+ }, Ae = (e) => ({
266
267
  padding: "6px 12px",
267
268
  fontSize: 12,
268
269
  lineHeight: 1.4,
@@ -276,16 +277,16 @@ const At = ({
276
277
  width: "100%",
277
278
  textAlign: "left",
278
279
  border: "none"
279
- }), Kt = (e) => ({
280
- ...Fe(e),
280
+ }), Wt = (e) => ({
281
+ ...Ae(e),
281
282
  color: e ? "#4338ca" : "#4f46e5",
282
283
  fontWeight: 600
283
- }), zt = {
284
+ }), jt = {
284
285
  height: 1,
285
286
  background: "rgba(0,0,0,0.06)",
286
287
  margin: "3px 10px"
287
288
  };
288
- function Wt({
289
+ function Gt({
289
290
  open: e,
290
291
  anchorEl: t,
291
292
  statusId: n,
@@ -294,44 +295,44 @@ function Wt({
294
295
  overflowActions: s,
295
296
  onClose: o
296
297
  }) {
297
- const [l, d] = $(null), c = I(null), f = w(() => {
298
- if (!t) return { ...He, top: 0, left: 0 };
299
- const u = t.getBoundingClientRect();
298
+ const [l, u] = $(null), d = P(null), h = N(() => {
299
+ if (!t) return { ...Ze, top: 0, left: 0 };
300
+ const c = t.getBoundingClientRect();
300
301
  return {
301
- ...He,
302
- top: u.bottom + 4,
303
- left: u.left
302
+ ...Ze,
303
+ top: c.bottom + 4,
304
+ left: c.left
304
305
  };
305
306
  }, [t]);
306
307
  if (O(() => {
307
308
  if (!e) return;
308
- const u = (N) => {
309
- N.key === "Escape" && o();
309
+ const c = (_) => {
310
+ _.key === "Escape" && o();
310
311
  };
311
- return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
312
+ return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
312
313
  }, [e, o]), O(() => {
313
314
  if (!e) return;
314
- const u = (N) => {
315
- c.current && !c.current.contains(N.target) && o();
315
+ const c = (_) => {
316
+ d.current && !d.current.contains(_.target) && o();
316
317
  };
317
- return document.addEventListener("pointerdown", u, !0), () => document.removeEventListener("pointerdown", u, !0);
318
+ return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
318
319
  }, [e, o]), !e) return null;
319
- const h = s && s.length > 0, g = /* @__PURE__ */ D(
320
+ const m = s && s.length > 0, g = /* @__PURE__ */ k(
320
321
  "div",
321
322
  {
322
- ref: c,
323
+ ref: d,
323
324
  "data-status-chip-menu": n,
324
325
  role: "menu",
325
326
  "aria-label": "Status actions",
326
- style: f(),
327
+ style: h(),
327
328
  children: [
328
329
  /* @__PURE__ */ r(
329
330
  "button",
330
331
  {
331
332
  role: "menuitem",
332
- style: Kt(l === "__primary"),
333
- onMouseEnter: () => d("__primary"),
334
- onMouseLeave: () => d(null),
333
+ style: Wt(l === "__primary"),
334
+ onMouseEnter: () => u("__primary"),
335
+ onMouseLeave: () => u(null),
335
336
  onClick: () => {
336
337
  a(n), o();
337
338
  },
@@ -342,60 +343,60 @@ function Wt({
342
343
  "button",
343
344
  {
344
345
  role: "menuitem",
345
- style: Fe(l === "__graph"),
346
- onMouseEnter: () => d("__graph"),
347
- onMouseLeave: () => d(null),
346
+ style: Ae(l === "__graph"),
347
+ onMouseEnter: () => u("__graph"),
348
+ onMouseLeave: () => u(null),
348
349
  onClick: () => {
349
350
  i(n), o();
350
351
  },
351
352
  children: "Show on graph"
352
353
  }
353
354
  ),
354
- h && /* @__PURE__ */ r("div", { style: zt }),
355
- h && s?.map((u) => /* @__PURE__ */ r(
355
+ m && /* @__PURE__ */ r("div", { style: jt }),
356
+ m && s?.map((c) => /* @__PURE__ */ r(
356
357
  "button",
357
358
  {
358
359
  role: "menuitem",
359
- style: Fe(l === u.id),
360
- onMouseEnter: () => d(u.id),
361
- onMouseLeave: () => d(null),
360
+ style: Ae(l === c.id),
361
+ onMouseEnter: () => u(c.id),
362
+ onMouseLeave: () => u(null),
362
363
  onClick: () => {
363
- u.onSelect(n), o();
364
+ c.onSelect(n), o();
364
365
  },
365
- children: u.label
366
+ children: c.label
366
367
  },
367
- u.id
368
+ c.id
368
369
  ))
369
370
  ]
370
371
  }
371
372
  );
372
- return Rt(g, document.body);
373
+ return Tt(g, document.body);
373
374
  }
374
- Wt.displayName = "StatusSlotChipMenu";
375
- const En = {
375
+ Gt.displayName = "StatusSlotChipMenu";
376
+ const le = {
376
377
  forwardStaggerMs: 50,
377
378
  reverseStaggerMs: 30,
378
379
  springStiffness: 380,
379
380
  springDamping: 32,
380
381
  reverseVelocityMultiplier: 1.4
381
- }, ge = {
382
+ }, fe = {
382
383
  enterDurationMs: 220,
383
384
  exitDurationMs: 140,
384
385
  enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
385
386
  exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
386
387
  translateOffsetPx: 8
387
- }, An = {
388
+ }, Ln = {
388
389
  shiverCycles: 3,
389
390
  shiverAmplitudePx: 2,
390
391
  shiverDurationMs: 180,
391
392
  validCellOpacity: 0.6
392
- }, On = {
393
+ }, $n = {
393
394
  materializeMs: 180,
394
395
  dematerializeMs: 140,
395
396
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
396
397
  dotStrokePx: 2,
397
398
  dividerDashGapPx: 4
398
- }, Ln = {
399
+ }, Bn = {
399
400
  cascadeStaggerMs: 0,
400
401
  cascadeSpringCapMs: 120,
401
402
  swingEnterMs: 100,
@@ -404,7 +405,7 @@ const En = {
404
405
  provisionalStyle: "opacity",
405
406
  shiverMs: 200,
406
407
  shiverStyle: "color-flash"
407
- }, $n = !0, Bn = {
408
+ }, Kn = !0, zn = {
408
409
  rejectionFill: "var(--gloss-rejection-fill)",
409
410
  rejectionStroke: "var(--gloss-rejection-stroke)",
410
411
  validFill: "var(--gloss-valid-fill)",
@@ -412,7 +413,7 @@ const En = {
412
413
  validCellStroke: "var(--gloss-valid-cell-stroke)",
413
414
  provisionalWash: "var(--gloss-provisional-wash)"
414
415
  };
415
- function tt() {
416
+ function nt() {
416
417
  if (typeof window > "u") return "full";
417
418
  try {
418
419
  return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
@@ -420,13 +421,13 @@ function tt() {
420
421
  return "full";
421
422
  }
422
423
  }
423
- const Ee = ({ visible: e, variant: t, trigger: n, children: a, className: i }) => {
424
+ const Oe = ({ visible: e, variant: t, trigger: n, children: a, className: i }) => {
424
425
  const s = {
425
- "--gloss-swing-enter-ms": `${ge.enterDurationMs}ms`,
426
- "--gloss-swing-exit-ms": `${ge.exitDurationMs}ms`,
427
- "--gloss-swing-offset": `${ge.translateOffsetPx}px`,
428
- "--gloss-swing-enter-easing": ge.enterEasing,
429
- "--gloss-swing-exit-easing": ge.exitEasing
426
+ "--gloss-swing-enter-ms": `${fe.enterDurationMs}ms`,
427
+ "--gloss-swing-exit-ms": `${fe.exitDurationMs}ms`,
428
+ "--gloss-swing-offset": `${fe.translateOffsetPx}px`,
429
+ "--gloss-swing-enter-easing": fe.enterEasing,
430
+ "--gloss-swing-exit-easing": fe.exitEasing
430
431
  }, o = [
431
432
  "gloss-swing-reveal",
432
433
  `gloss-swing-reveal--${t}`,
@@ -444,49 +445,49 @@ const Ee = ({ visible: e, variant: t, trigger: n, children: a, className: i }) =
444
445
  children: a
445
446
  }
446
447
  );
447
- }, jt = Nt(
448
- function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: d = "right", ariaLabel: c = "Resize card" }, f) {
449
- const h = t === "handle-visible" || t === "dragging" || t === "settling", g = (b) => {
448
+ }, Vt = kt(
449
+ function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: u = "right", ariaLabel: d = "Resize card" }, h) {
450
+ const m = t === "handle-visible" || t === "dragging" || t === "settling", g = (b) => {
450
451
  try {
451
452
  b.currentTarget.setPointerCapture(b.pointerId);
452
453
  } catch {
453
454
  }
454
455
  n(b);
455
- }, u = (b) => {
456
+ }, c = (b) => {
456
457
  try {
457
458
  b.currentTarget.hasPointerCapture?.(b.pointerId) && b.currentTarget.releasePointerCapture(b.pointerId);
458
459
  } catch {
459
460
  }
460
461
  a(b);
461
- }, N = (b) => {
462
- !h || !o || (b.key === "ArrowRight" ? (b.preventDefault(), o("grow")) : b.key === "ArrowLeft" && (b.preventDefault(), o("shrink")));
462
+ }, _ = (b) => {
463
+ !m || !o || (b.key === "ArrowRight" ? (b.preventDefault(), o("grow")) : b.key === "ArrowLeft" && (b.preventDefault(), o("shrink")));
463
464
  };
464
- return /* @__PURE__ */ r(Ee, { visible: h, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
465
+ return /* @__PURE__ */ r(Oe, { visible: m, variant: "handle", trigger: "hover", children: /* @__PURE__ */ r(
465
466
  "button",
466
467
  {
467
- ref: f,
468
+ ref: h,
468
469
  type: "button",
469
- "aria-label": c,
470
- "data-edge": d,
470
+ "aria-label": d,
471
+ "data-edge": u,
471
472
  "data-resize-state": t,
472
473
  className: [
473
474
  "gloss-edge-handle",
474
- `gloss-edge-handle--${d}`,
475
- h ? "gloss-edge-handle--visible" : ""
475
+ `gloss-edge-handle--${u}`,
476
+ m ? "gloss-edge-handle--visible" : ""
476
477
  ].filter(Boolean).join(" "),
477
478
  onPointerDown: g,
478
- onPointerUp: u,
479
+ onPointerUp: c,
479
480
  onPointerEnter: i,
480
481
  onPointerLeave: s,
481
482
  onLostPointerCapture: l,
482
- onKeyDown: N,
483
- tabIndex: h ? 0 : -1
483
+ onKeyDown: _,
484
+ tabIndex: m ? 0 : -1
484
485
  }
485
486
  ) });
486
487
  }
487
488
  );
488
- jt.displayName = "EdgeHoverHandle";
489
- function Gt({
489
+ Vt.displayName = "EdgeHoverHandle";
490
+ function Ht({
490
491
  visible: e,
491
492
  targetColSpan: t,
492
493
  ghostWidth: n,
@@ -494,7 +495,7 @@ function Gt({
494
495
  exitMs: i = 120
495
496
  }) {
496
497
  return /* @__PURE__ */ r(
497
- Ce.div,
498
+ xe.div,
498
499
  {
499
500
  "aria-hidden": "true",
500
501
  "data-ghost-preview": e ? "visible" : "hidden",
@@ -510,8 +511,8 @@ function Gt({
510
511
  }
511
512
  );
512
513
  }
513
- Gt.displayName = "GhostPreview";
514
- class Vt {
514
+ Ht.displayName = "GhostPreview";
515
+ class Ut {
515
516
  constructor() {
516
517
  this.samples = [], this.capacity = 3;
517
518
  }
@@ -549,14 +550,14 @@ class Vt {
549
550
  const t = this.samples.length;
550
551
  if (t < 2) return 0;
551
552
  if (t === 2) {
552
- const [d, c] = this.samples, f = Math.max(1, c.t - d.t);
553
- return (c.x - d.x) / f * 1e3;
553
+ const [u, d] = this.samples, h = Math.max(1, d.t - u.t);
554
+ return (d.x - u.x) / h * 1e3;
554
555
  }
555
556
  const [n, a, i] = this.samples, s = (i.x - a.x) / Math.max(1, i.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
556
557
  return (s * 3 + o * 2 + l * 1) / 6;
557
558
  }
558
559
  }
559
- const at = {
560
+ const rt = {
560
561
  // Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
561
562
  // has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
562
563
  // prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
@@ -576,7 +577,7 @@ const at = {
576
577
  // Velocity multiplier (D-03b panel)
577
578
  velocityMultiplier: 1
578
579
  };
579
- function Kn({
580
+ function Wn({
580
581
  currentColSpan: e,
581
582
  stackable: t,
582
583
  onResize: n,
@@ -585,59 +586,59 @@ function Kn({
585
586
  gap: s = 0,
586
587
  tuning: o,
587
588
  dwellMs: l = 60,
588
- graceExitMs: d = 150,
589
- enterMs: c = 180,
590
- exitMs: f = 120,
591
- maxColSpan: h = 3,
589
+ graceExitMs: u = 150,
590
+ enterMs: d = 180,
591
+ exitMs: h = 120,
592
+ maxColSpan: m = 3,
592
593
  containerRef: g,
593
- forceIdle: u
594
+ forceIdle: c
594
595
  }) {
595
- const [N, b] = $("idle"), [p, M] = $(e), P = I(null), _ = I(null), T = I(null), x = I(null), m = I(i), v = I(s), k = I(h), R = I(0), y = I("idle");
596
+ const [_, b] = $("idle"), [f, R] = $(e), I = P(null), y = P(null), M = P(null), x = P(null), p = P(i), v = P(s), D = P(m), T = P(0), w = P("idle");
596
597
  O(() => {
597
- y.current = N;
598
- }, [N]);
599
- const S = Ct(0), F = I(null), H = w(() => {
600
- const C = F.current;
598
+ w.current = _;
599
+ }, [_]);
600
+ const S = St(0), E = P(null), H = N(() => {
601
+ const C = E.current;
601
602
  if (C) {
602
603
  try {
603
604
  C.stop();
604
605
  } catch {
605
606
  }
606
- F.current = null;
607
+ E.current = null;
607
608
  }
608
- }, []), Y = w(
609
+ }, []), Y = N(
609
610
  (C) => {
610
- const E = m.current, A = v.current;
611
- return C * E + (C - 1) * A;
611
+ const F = p.current, A = v.current;
612
+ return C * F + (C - 1) * A;
612
613
  },
613
614
  []
614
- ), U = I(new Vt()), j = I(e);
615
+ ), U = P(new Ut()), j = P(e);
615
616
  O(() => {
616
- j.current = p;
617
- }, [p]);
618
- const B = we(() => ({ ...at, ...o ?? {} }), [o]), Z = w(() => {
619
- P.current && (clearTimeout(P.current), P.current = null);
620
- }, []), L = w(() => {
621
- _.current && (clearTimeout(_.current), _.current = null);
622
- }, []), J = w(() => {
623
- T.current && (clearTimeout(T.current), T.current = null);
617
+ j.current = f;
618
+ }, [f]);
619
+ const B = Ne(() => ({ ...rt, ...o ?? {} }), [o]), Z = N(() => {
620
+ I.current && (clearTimeout(I.current), I.current = null);
621
+ }, []), L = N(() => {
622
+ y.current && (clearTimeout(y.current), y.current = null);
623
+ }, []), J = N(() => {
624
+ M.current && (clearTimeout(M.current), M.current = null);
624
625
  }, []);
625
626
  O(() => {
626
- u && (y.current === "dragging" || y.current === "settling" || y.current !== "idle" && (Z(), L(), J(), y.current = "idle", b("idle")));
627
- }, [N, u, Z, L, J]);
628
- const Ke = w(() => {
629
- L(), b((C) => C === "settling" || C !== "idle" ? C : (P.current = setTimeout(() => b("handle-visible"), l), "dwelling"));
630
- }, [l, L]), ze = w(() => {
627
+ c && (w.current === "dragging" || w.current === "settling" || w.current !== "idle" && (Z(), L(), J(), w.current = "idle", b("idle")));
628
+ }, [_, c, Z, L, J]);
629
+ const We = N(() => {
630
+ L(), b((C) => C === "settling" || C !== "idle" ? C : (I.current = setTimeout(() => b("handle-visible"), l), "dwelling"));
631
+ }, [l, L]), je = N(() => {
631
632
  Z();
632
- const C = y.current;
633
- C !== "dwelling" && C !== "handle-visible" || (_.current = setTimeout(() => {
634
- y.current = "idle", b("idle");
635
- }, d));
636
- }, [Z, d]), le = w(
637
- (C, E, A) => {
638
- const K = m.current, ee = K * B.snapInFraction, q = K * B.snapOutFraction, z = E - A, G = Math.max(
633
+ const C = w.current;
634
+ C !== "dwelling" && C !== "handle-visible" || (y.current = setTimeout(() => {
635
+ w.current = "idle", b("idle");
636
+ }, u));
637
+ }, [Z, u]), de = N(
638
+ (C, F, A) => {
639
+ const K = p.current, ee = K * B.snapInFraction, q = K * B.snapOutFraction, z = F - A, G = Math.max(
639
640
  A,
640
- k.current ?? h
641
+ D.current ?? m
641
642
  );
642
643
  let W = z;
643
644
  for (; A + W < G; ) {
@@ -653,27 +654,27 @@ function Kn({
653
654
  }
654
655
  return Math.min(G, Math.max(1, A + W));
655
656
  },
656
- [B.snapInFraction, B.snapOutFraction, h]
657
- ), pt = w(
657
+ [B.snapInFraction, B.snapOutFraction, m]
658
+ ), ht = N(
658
659
  (C) => {
659
- if (y.current !== "handle-visible") return;
660
- H(), x.current = C.clientX, m.current = i, v.current = s, k.current = h;
661
- const E = e * i + (e - 1) * s;
662
- R.current = E, U.current.clear(), U.current.push({ x: C.clientX, t: performance.now() }), S.jump(E), y.current = "dragging", b("dragging");
660
+ if (w.current !== "handle-visible") return;
661
+ H(), x.current = C.clientX, p.current = i, v.current = s, D.current = m;
662
+ const F = e * i + (e - 1) * s;
663
+ T.current = F, U.current.clear(), U.current.push({ x: C.clientX, t: performance.now() }), S.jump(F), w.current = "dragging", b("dragging");
663
664
  },
664
- [i, s, h, e, S, H]
665
- ), We = w(
666
- (C) => C * m.current + (C - 1) * v.current,
665
+ [i, s, m, e, S, H]
666
+ ), Ge = N(
667
+ (C) => C * p.current + (C - 1) * v.current,
667
668
  []
668
- ), oe = w(
669
- (C, E) => {
670
- const A = We(C), K = C !== e;
669
+ ), oe = N(
670
+ (C, F) => {
671
+ const A = Ge(C), K = C !== e;
671
672
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
672
- S.jump(A), K && E ? n({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), S.jump(0), y.current = "idle", b("idle");
673
+ S.jump(A), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), S.jump(0), w.current = "idle", b("idle");
673
674
  return;
674
675
  }
675
676
  const q = U.current.getWeightedVelocity() * B.velocityMultiplier;
676
- y.current = "settling", b("settling"), K && E ? n({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), H(), F.current = Ve(S, A, {
677
+ w.current = "settling", b("settling"), K && F ? n({ direction: F, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), H(), E.current = Ue(S, A, {
677
678
  type: "spring",
678
679
  stiffness: B.stiffness,
679
680
  damping: B.damping,
@@ -684,125 +685,125 @@ function Kn({
684
685
  // preserves the spring's perceptual smoothness (ghost retract)
685
686
  // while eliminating the stale-frame window.
686
687
  onComplete: () => {
687
- F.current = null, S.jump(0), y.current = "idle", b("idle");
688
+ E.current = null, S.jump(0), w.current = "idle", b("idle");
688
689
  }
689
690
  });
690
691
  },
691
- [We, e, t, n, a, S, B, H]
692
- ), ht = w(
692
+ [Ge, e, t, n, a, S, B, H]
693
+ ), bt = N(
693
694
  (C) => {
694
- if (y.current !== "dragging") return;
695
- const E = C.clientX - (x.current ?? C.clientX), A = m.current, ee = ((k.current ?? h) - e) * A, q = (1 - e) * A, z = Math.max(q, Math.min(ee, E));
695
+ if (w.current !== "dragging") return;
696
+ const F = C.clientX - (x.current ?? C.clientX), A = p.current, ee = ((D.current ?? m) - e) * A, q = (1 - e) * A, z = Math.max(q, Math.min(ee, F));
696
697
  U.current.push({ x: C.clientX, t: performance.now() });
697
- const G = le(z, j.current, e), W = G > e ? "grow" : G < e ? "shrink" : null;
698
+ const G = de(z, j.current, e), W = G > e ? "grow" : G < e ? "shrink" : null;
698
699
  oe(G, W);
699
700
  },
700
- [le, e, h, oe]
701
- ), ce = w(() => {
702
- if (Z(), y.current === "dragging") {
703
- const C = R.current;
701
+ [de, e, m, oe]
702
+ ), ue = N(() => {
703
+ if (Z(), w.current === "dragging") {
704
+ const C = T.current;
704
705
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
705
- S.jump(C), a?.(), S.jump(0), y.current = "idle", b("idle");
706
+ S.jump(C), a?.(), S.jump(0), w.current = "idle", b("idle");
706
707
  return;
707
708
  }
708
709
  const A = U.current.getWeightedVelocity();
709
- y.current = "settling", b("settling"), H(), F.current = Ve(S, C, {
710
+ w.current = "settling", b("settling"), H(), E.current = Ue(S, C, {
710
711
  type: "spring",
711
712
  stiffness: B.stiffness,
712
713
  damping: B.damping,
713
714
  mass: B.mass,
714
715
  velocity: A,
715
716
  onComplete: () => {
716
- F.current = null, a?.(), S.jump(0), y.current = "idle", b("idle");
717
+ E.current = null, a?.(), S.jump(0), w.current = "idle", b("idle");
717
718
  }
718
719
  });
719
720
  return;
720
721
  }
721
- y.current === "handle-visible" && (a?.(), y.current = "cancelled", b("cancelled"));
722
+ w.current === "handle-visible" && (a?.(), w.current = "cancelled", b("cancelled"));
722
723
  }, [Z, S, a, B, H]);
723
724
  O(() => {
724
- if (N !== "dragging" && N !== "handle-visible") return;
725
- const C = (E) => {
726
- E.key === "Escape" && ce();
725
+ if (_ !== "dragging" && _ !== "handle-visible") return;
726
+ const C = (F) => {
727
+ F.key === "Escape" && ue();
727
728
  };
728
729
  return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
729
- }, [N, ce]), O(() => {
730
- if (N !== "dragging") {
731
- M(e);
730
+ }, [_, ue]), O(() => {
731
+ if (_ !== "dragging") {
732
+ R(e);
732
733
  return;
733
734
  }
734
735
  const C = (z) => {
735
- const G = z.clientX - (x.current ?? z.clientX), W = R.current, de = Y(1), ae = Y(h), _e = W + G, Ge = Math.max(de, Math.min(ae, _e));
736
- S.set(Ge);
737
- const Ne = m.current, Se = (h - e) * Ne, Re = (1 - e) * Ne, ue = Math.max(Re, Math.min(Se, G));
736
+ const G = z.clientX - (x.current ?? z.clientX), W = T.current, me = Y(1), ae = Y(m), De = W + G, He = Math.max(me, Math.min(ae, De));
737
+ S.set(He);
738
+ const ke = p.current, Re = (m - e) * ke, Me = (1 - e) * ke, ge = Math.max(Me, Math.min(Re, G));
738
739
  U.current.push({ x: z.clientX, t: performance.now() });
739
- const me = le(ue, j.current, e);
740
- me !== j.current && (j.current = me, M(me));
741
- }, E = (z, G) => {
742
- if (y.current === "dragging")
740
+ const pe = de(ge, j.current, e);
741
+ pe !== j.current && (j.current = pe, R(pe));
742
+ }, F = (z, G) => {
743
+ if (w.current === "dragging")
743
744
  if (z === "pointerup") {
744
- const W = U.current.tail(), de = G?.clientX ?? W?.x ?? x.current ?? 0, ae = de - (x.current ?? de), _e = m.current, Ne = ((k.current ?? h) - e) * _e, Se = (1 - e) * _e, Re = Math.max(Se, Math.min(Ne, ae));
745
+ const W = U.current.tail(), me = G?.clientX ?? W?.x ?? x.current ?? 0, ae = me - (x.current ?? me), De = p.current, ke = ((D.current ?? m) - e) * De, Re = (1 - e) * De, Me = Math.max(Re, Math.min(ke, ae));
745
746
  G && U.current.push({ x: G.clientX, t: performance.now() });
746
- const ue = le(Re, j.current, e), me = ue > e ? "grow" : ue < e ? "shrink" : null;
747
- oe(ue, me);
747
+ const ge = de(Me, j.current, e), pe = ge > e ? "grow" : ge < e ? "shrink" : null;
748
+ oe(ge, pe);
748
749
  } else
749
- ce();
750
- }, A = (z) => E("pointerup", z), K = (z) => E("pointercancel", z), ee = () => E("blur"), q = () => {
751
- document.visibilityState === "hidden" && E("visibility-hidden");
750
+ ue();
751
+ }, A = (z) => F("pointerup", z), K = (z) => F("pointercancel", z), ee = () => F("blur"), q = () => {
752
+ document.visibilityState === "hidden" && F("visibility-hidden");
752
753
  };
753
754
  return window.addEventListener("pointermove", C), window.addEventListener("pointerup", A), window.addEventListener("pointercancel", K), window.addEventListener("blur", ee), document.addEventListener("visibilitychange", q), () => {
754
755
  window.removeEventListener("pointermove", C), window.removeEventListener("pointerup", A), window.removeEventListener("pointercancel", K), window.removeEventListener("blur", ee), document.removeEventListener("visibilitychange", q);
755
756
  };
756
- }, [N, e, S, le, h, Y, ce, oe]), O(() => () => {
757
+ }, [_, e, S, de, m, Y, ue, oe]), O(() => () => {
757
758
  Z(), L(), J();
758
759
  }, [Z, L, J]), O(() => {
759
- if (N !== "cancelled") return;
760
- const C = setTimeout(() => b("idle"), f);
760
+ if (_ !== "cancelled") return;
761
+ const C = setTimeout(() => b("idle"), h);
761
762
  return () => clearTimeout(C);
762
- }, [N, f]);
763
- const ft = w(
763
+ }, [_, h]);
764
+ const vt = N(
764
765
  (C) => {
765
- if (y.current === "settling") return;
766
- const A = Math.min(h, Math.max(1, e + (C === "grow" ? 1 : -1)));
766
+ if (w.current === "settling") return;
767
+ const A = Math.min(m, Math.max(1, e + (C === "grow" ? 1 : -1)));
767
768
  if (A === e) return;
768
- m.current = i, v.current = s, k.current = h, U.current.clear();
769
+ p.current = i, v.current = s, D.current = m, U.current.clear();
769
770
  const K = e * i + (e - 1) * s;
770
- R.current = K, S.jump(K), oe(A, C);
771
+ T.current = K, S.jump(K), oe(A, C);
771
772
  },
772
- [e, i, s, h, S, oe]
773
- ), je = w(() => {
774
- J(), T.current = setTimeout(() => {
775
- y.current === "handle-visible" && (y.current = "idle", b("idle"));
773
+ [e, i, s, m, S, oe]
774
+ ), Ve = N(() => {
775
+ J(), M.current = setTimeout(() => {
776
+ w.current === "handle-visible" && (w.current = "idle", b("idle"));
776
777
  }, 5e3);
777
- }, [J]), bt = w(() => {
778
- y.current === "idle" && (Z(), y.current = "handle-visible", b("handle-visible"), je());
779
- }, [Z, je]), vt = w(() => {
780
- J(), y.current === "handle-visible" && (y.current = "idle", b("idle"));
778
+ }, [J]), yt = N(() => {
779
+ w.current === "idle" && (Z(), w.current = "handle-visible", b("handle-visible"), Ve());
780
+ }, [Z, Ve]), wt = N(() => {
781
+ J(), w.current === "handle-visible" && (w.current = "idle", b("idle"));
781
782
  }, [J]);
782
783
  return {
783
- state: N,
784
- enterEdgeZone: Ke,
785
- leaveEdgeZone: ze,
784
+ state: _,
785
+ enterEdgeZone: We,
786
+ leaveEdgeZone: je,
786
787
  handleProps: {
787
- onPointerDown: pt,
788
- onPointerUp: ht,
788
+ onPointerDown: ht,
789
+ onPointerUp: bt,
789
790
  // Bug E: handle continues zone presence so pointer crossing sentinel→handle
790
791
  // doesn't collapse state. handle's pointerenter = stay in zone.
791
- onPointerEnter: Ke,
792
- onPointerLeave: ze
792
+ onPointerEnter: We,
793
+ onPointerLeave: je
793
794
  },
794
- previewColSpan: p,
795
+ previewColSpan: f,
795
796
  ghostProps: {
796
- visible: N === "dragging" || N === "settling",
797
- targetColSpan: p,
797
+ visible: _ === "dragging" || _ === "settling",
798
+ targetColSpan: f,
798
799
  ghostWidth: S,
799
- enterMs: c,
800
- exitMs: f
800
+ enterMs: d,
801
+ exitMs: h
801
802
  },
802
- onKeyboardStep: ft,
803
- onTouchReveal: bt,
804
- onTouchDismiss: vt,
805
- cancel: ce
803
+ onKeyboardStep: vt,
804
+ onTouchReveal: yt,
805
+ onTouchDismiss: wt,
806
+ cancel: ue
806
807
  };
807
808
  }
808
809
  const ie = {
@@ -830,14 +831,14 @@ const ie = {
830
831
  sectionDividerFadeOutMs: 80,
831
832
  sectionDividerStaggerMs: 40
832
833
  };
833
- function zn(e) {
834
+ function jn(e) {
834
835
  const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: i } = e;
835
836
  if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
836
837
  return;
837
838
  const s = (a + 0.5) * (t / n);
838
839
  return i != null && Number.isFinite(i) && i > 0 ? s - i / 2 : s;
839
840
  }
840
- const Wn = [
841
+ const Gn = [
841
842
  // 1. Standard: Total Revenue
842
843
  {
843
844
  variant: "standard",
@@ -969,24 +970,24 @@ const Wn = [
969
970
  subtitle: "Awaiting QA",
970
971
  highlightColor: "neutral"
971
972
  }
972
- ], Ht = {
973
+ ], Zt = {
973
974
  variant: "standard",
974
975
  label: "Total Revenue",
975
976
  isLoading: !0
976
- }, Ut = {
977
+ }, Yt = {
977
978
  variant: "standard",
978
979
  label: "Total Revenue",
979
980
  value: 125430,
980
981
  valueFormat: { prefix: "$", abbreviated: !0 },
981
982
  isError: !0
982
- }, Zt = {
983
+ }, qt = {
983
984
  variant: "standard",
984
985
  label: "Total Revenue",
985
986
  value: null,
986
987
  valueFormat: { prefix: "$", abbreviated: !0 },
987
988
  isEmpty: !0,
988
989
  subtitle: "No data"
989
- }, Yt = {
990
+ }, Qt = {
990
991
  variant: "standard",
991
992
  label: "Total Revenue",
992
993
  value: 125430,
@@ -994,7 +995,7 @@ const Wn = [
994
995
  trend: { value: 12.5, direction: "up" },
995
996
  subtitle: "MTD",
996
997
  isStale: !0
997
- }, qt = {
998
+ }, Xt = {
998
999
  variant: "sparkline",
999
1000
  label: "Daily Orders",
1000
1001
  value: 847,
@@ -1003,7 +1004,7 @@ const Wn = [
1003
1004
  sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
1004
1005
  accentColor: "#6366f1",
1005
1006
  isStale: !0
1006
- }, Qt = {
1007
+ }, Jt = {
1007
1008
  variant: "donut",
1008
1009
  label: "Order Fill Rate",
1009
1010
  value: 78,
@@ -1014,14 +1015,14 @@ const Wn = [
1014
1015
  donutMax: 100,
1015
1016
  accentColor: "#10b981",
1016
1017
  isStale: !0
1017
- }, jn = [
1018
- Ht,
1019
- Ut,
1018
+ }, Vn = [
1020
1019
  Zt,
1021
1020
  Yt,
1022
1021
  qt,
1023
- Qt
1024
- ], Gn = {
1022
+ Qt,
1023
+ Xt,
1024
+ Jt
1025
+ ], Hn = {
1025
1026
  variant: "sparkline",
1026
1027
  label: "Daily Orders",
1027
1028
  value: 847,
@@ -1044,7 +1045,7 @@ const Wn = [
1044
1045
  59
1045
1046
  ],
1046
1047
  accentColor: "#6366f1"
1047
- }, Vn = {
1048
+ }, Un = {
1048
1049
  variant: "sparkline",
1049
1050
  label: "New Customers",
1050
1051
  value: 23,
@@ -1083,21 +1084,21 @@ const Wn = [
1083
1084
  19
1084
1085
  ],
1085
1086
  accentColor: "#10b981"
1086
- }, Hn = {
1087
+ }, Zn = {
1087
1088
  variant: "standard",
1088
1089
  label: "Total Revenue",
1089
1090
  value: 125430,
1090
1091
  valueFormat: { prefix: "$", abbreviated: !0 },
1091
1092
  trend: { value: 12.5, direction: "up" },
1092
1093
  subtitle: "MTD"
1093
- }, Un = {
1094
+ }, Yn = {
1094
1095
  variant: "standard",
1095
1096
  label: "Returns",
1096
1097
  value: 3280,
1097
1098
  valueFormat: { prefix: "$", abbreviated: !0 },
1098
1099
  trend: { value: -8.3, direction: "down" },
1099
1100
  subtitle: "MTD"
1100
- }, Zn = {
1101
+ }, qn = {
1101
1102
  variant: "standard",
1102
1103
  label: "Avg Order Value",
1103
1104
  value: 487,
@@ -1105,7 +1106,7 @@ const Wn = [
1105
1106
  trend: { value: 0, direction: "flat" },
1106
1107
  subtitle: "QTD"
1107
1108
  };
1108
- function nt({
1109
+ function st({
1109
1110
  open: e,
1110
1111
  onDismiss: t,
1111
1112
  anchorRef: n,
@@ -1115,23 +1116,23 @@ function nt({
1115
1116
  onCreatePage: o,
1116
1117
  onManagePages: l
1117
1118
  }) {
1118
- const d = w(
1119
+ const u = N(
1119
1120
  (g) => {
1120
1121
  s(g), t();
1121
1122
  },
1122
1123
  [s, t]
1123
- ), c = w(
1124
- (g, u) => {
1125
- (u.key === "Enter" || u.key === " ") && (u.preventDefault(), d(g));
1124
+ ), d = N(
1125
+ (g, c) => {
1126
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), u(g));
1126
1127
  },
1127
- [d]
1128
- ), f = w(() => {
1128
+ [u]
1129
+ ), h = N(() => {
1129
1130
  o(), t();
1130
- }, [o, t]), h = w(() => {
1131
+ }, [o, t]), m = N(() => {
1131
1132
  l(), t();
1132
1133
  }, [l, t]);
1133
- return /* @__PURE__ */ D(
1134
- St,
1134
+ return /* @__PURE__ */ k(
1135
+ Mt,
1135
1136
  {
1136
1137
  definition: {
1137
1138
  placement: "bottom-end",
@@ -1145,22 +1146,22 @@ function nt({
1145
1146
  className: "gloss-page-dropdown",
1146
1147
  children: [
1147
1148
  /* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((g) => {
1148
- const u = g.id === i;
1149
- return /* @__PURE__ */ D(
1149
+ const c = g.id === i;
1150
+ return /* @__PURE__ */ k(
1150
1151
  "li",
1151
1152
  {
1152
1153
  role: "menuitemradio",
1153
- "aria-checked": u,
1154
- "aria-current": u ? "page" : void 0,
1154
+ "aria-checked": c,
1155
+ "aria-current": c ? "page" : void 0,
1155
1156
  tabIndex: 0,
1156
- className: `gloss-page-dropdown__item${u ? " gloss-page-dropdown__item--active" : ""}`,
1157
- onClick: () => d(g.id),
1158
- onKeyDown: (N) => c(g.id, N),
1157
+ className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
1158
+ onClick: () => u(g.id),
1159
+ onKeyDown: (_) => d(g.id, _),
1159
1160
  children: [
1160
1161
  /* @__PURE__ */ r(
1161
1162
  "span",
1162
1163
  {
1163
- className: `gloss-page-dropdown__dot${u ? " gloss-page-dropdown__dot--active" : ""}`
1164
+ className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
1164
1165
  }
1165
1166
  ),
1166
1167
  /* @__PURE__ */ r(
@@ -1182,7 +1183,7 @@ function nt({
1182
1183
  {
1183
1184
  role: "menuitem",
1184
1185
  className: "gloss-page-dropdown__action",
1185
- onClick: f,
1186
+ onClick: h,
1186
1187
  children: "+ New page"
1187
1188
  }
1188
1189
  ),
@@ -1192,7 +1193,7 @@ function nt({
1192
1193
  {
1193
1194
  role: "menuitem",
1194
1195
  className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
1195
- onClick: h,
1196
+ onClick: m,
1196
1197
  children: "Manage pages"
1197
1198
  }
1198
1199
  )
@@ -1200,8 +1201,8 @@ function nt({
1200
1201
  }
1201
1202
  );
1202
1203
  }
1203
- nt.displayName = "PageDropdown";
1204
- const Xt = function({
1204
+ st.displayName = "PageDropdown";
1205
+ const ea = function({
1205
1206
  currentIndex: t,
1206
1207
  total: n,
1207
1208
  pages: a,
@@ -1209,23 +1210,23 @@ const Xt = function({
1209
1210
  onCreatePage: s,
1210
1211
  onManagePages: o,
1211
1212
  maskRadius: l = "var(--gloss-radius-md)",
1212
- displayMode: d = "count",
1213
- activePage: c
1213
+ displayMode: u = "count",
1214
+ activePage: d
1214
1215
  }) {
1215
- const f = I(null), [h, g] = $(!1), u = w(() => {
1216
- g((M) => !M);
1217
- }, []), N = w(() => {
1216
+ const h = P(null), [m, g] = $(!1), c = N(() => {
1217
+ g((R) => !R);
1218
+ }, []), _ = N(() => {
1218
1219
  g(!1);
1219
1220
  }, []), b = a[t]?.id ?? "";
1220
- return /* @__PURE__ */ D(
1221
+ return /* @__PURE__ */ k(
1221
1222
  "div",
1222
1223
  {
1223
1224
  className: "gloss-page-chip",
1224
- ref: f,
1225
- style: d === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
1225
+ ref: h,
1226
+ style: u === "name" ? { position: "relative", left: 0, right: "auto", top: 0 } : { position: "absolute", top: 0, right: 0 },
1226
1227
  "data-page-chip": !0,
1227
1228
  children: [
1228
- d !== "name" && /* @__PURE__ */ r(
1229
+ u !== "name" && /* @__PURE__ */ r(
1229
1230
  "div",
1230
1231
  {
1231
1232
  className: "gloss-page-chip__nuzzle",
@@ -1235,15 +1236,15 @@ const Xt = function({
1235
1236
  /* @__PURE__ */ r(
1236
1237
  "button",
1237
1238
  {
1238
- className: `gloss-page-chip__trigger${d === "name" ? " gloss-page-chip__trigger--name" : ""}`,
1239
+ className: `gloss-page-chip__trigger${u === "name" ? " gloss-page-chip__trigger--name" : ""}`,
1239
1240
  "aria-haspopup": "menu",
1240
- "aria-expanded": h,
1241
- "aria-label": d === "name" ? `${c ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1242
- onClick: u,
1243
- children: d === "name" ? /* @__PURE__ */ D(te, { children: [
1244
- /* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: c ?? "" }),
1241
+ "aria-expanded": m,
1242
+ "aria-label": u === "name" ? `${d ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1243
+ onClick: c,
1244
+ children: u === "name" ? /* @__PURE__ */ k(te, { children: [
1245
+ /* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: d ?? "" }),
1245
1246
  /* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
1246
- ] }) : /* @__PURE__ */ D(te, { children: [
1247
+ ] }) : /* @__PURE__ */ k(te, { children: [
1247
1248
  t + 1,
1248
1249
  " / ",
1249
1250
  n
@@ -1251,11 +1252,11 @@ const Xt = function({
1251
1252
  }
1252
1253
  ),
1253
1254
  /* @__PURE__ */ r(
1254
- nt,
1255
+ st,
1255
1256
  {
1256
- open: h,
1257
- onDismiss: N,
1258
- anchorRef: f,
1257
+ open: m,
1258
+ onDismiss: _,
1259
+ anchorRef: h,
1259
1260
  pages: a,
1260
1261
  activePageId: b,
1261
1262
  onPageChange: i,
@@ -1267,8 +1268,8 @@ const Xt = function({
1267
1268
  }
1268
1269
  );
1269
1270
  };
1270
- Xt.displayName = "PageChip";
1271
- const Yn = [
1271
+ ea.displayName = "PageChip";
1272
+ const Qn = [
1272
1273
  {
1273
1274
  id: "ORD-1001",
1274
1275
  orderNumber: "ORD-1001",
@@ -1401,7 +1402,7 @@ const Yn = [
1401
1402
  date: "2026-03-01",
1402
1403
  skuCount: 9
1403
1404
  }
1404
- ], qn = [
1405
+ ], Xn = [
1405
1406
  {
1406
1407
  id: "ITEM-001",
1407
1408
  sku: "PB-4520",
@@ -1535,16 +1536,16 @@ const Yn = [
1535
1536
  lastDate: "2026-03-01"
1536
1537
  }
1537
1538
  ];
1538
- function Ae(e) {
1539
+ function Le(e) {
1539
1540
  return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
1540
1541
  }
1541
- function rt(e) {
1542
+ function it(e) {
1542
1543
  return e.toLocaleString("en-US");
1543
1544
  }
1544
- function st(e) {
1545
+ function ot(e) {
1545
1546
  return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
1546
1547
  }
1547
- const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Qn = [
1548
+ const ve = V.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Jn = [
1548
1549
  {
1549
1550
  field: "id",
1550
1551
  headerName: "Order",
@@ -1574,7 +1575,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1574
1575
  align: "right",
1575
1576
  headerAlign: "right",
1576
1577
  cellClassName: "gloss-tabular-nums",
1577
- renderCell: ({ row: e }) => e.skuCount ? rt(e.skuCount) : fe
1578
+ renderCell: ({ row: e }) => e.skuCount ? it(e.skuCount) : ve
1578
1579
  },
1579
1580
  {
1580
1581
  field: "total",
@@ -1584,7 +1585,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1584
1585
  align: "right",
1585
1586
  headerAlign: "right",
1586
1587
  cellClassName: "gloss-tabular-nums",
1587
- renderCell: ({ row: e }) => e.total ? Ae(e.total) : fe
1588
+ renderCell: ({ row: e }) => e.total ? Le(e.total) : ve
1588
1589
  },
1589
1590
  {
1590
1591
  field: "date",
@@ -1594,9 +1595,9 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1594
1595
  align: "right",
1595
1596
  headerAlign: "right",
1596
1597
  cellClassName: "gloss-tabular-nums",
1597
- renderCell: ({ row: e }) => e.date ? st(e.date) : ""
1598
+ renderCell: ({ row: e }) => e.date ? ot(e.date) : ""
1598
1599
  }
1599
- ], Xn = [
1600
+ ], er = [
1600
1601
  {
1601
1602
  field: "sku",
1602
1603
  headerName: "Item ID",
@@ -1628,7 +1629,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1628
1629
  align: "right",
1629
1630
  headerAlign: "right",
1630
1631
  cellClassName: "gloss-tabular-nums",
1631
- renderCell: ({ row: e }) => e.price ? Ae(e.price) : fe
1632
+ renderCell: ({ row: e }) => e.price ? Le(e.price) : ve
1632
1633
  },
1633
1634
  {
1634
1635
  field: "quantity",
@@ -1638,7 +1639,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1638
1639
  align: "right",
1639
1640
  headerAlign: "right",
1640
1641
  cellClassName: "gloss-tabular-nums gloss-drillable",
1641
- renderCell: ({ row: e }) => e.quantity ? rt(e.quantity) : fe
1642
+ renderCell: ({ row: e }) => e.quantity ? it(e.quantity) : ve
1642
1643
  },
1643
1644
  {
1644
1645
  field: "total",
@@ -1648,7 +1649,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1648
1649
  align: "right",
1649
1650
  headerAlign: "right",
1650
1651
  cellClassName: "gloss-tabular-nums gloss-drillable",
1651
- renderCell: ({ row: e }) => e.total ? Ae(e.total) : fe
1652
+ renderCell: ({ row: e }) => e.total ? Le(e.total) : ve
1652
1653
  },
1653
1654
  {
1654
1655
  field: "lastDate",
@@ -1658,24 +1659,24 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1658
1659
  align: "right",
1659
1660
  headerAlign: "right",
1660
1661
  cellClassName: "gloss-tabular-nums",
1661
- renderCell: ({ row: e }) => e.lastDate ? st(e.lastDate) : ""
1662
+ renderCell: ({ row: e }) => e.lastDate ? ot(e.lastDate) : ""
1662
1663
  }
1663
- ], Jt = [
1664
+ ], ta = [
1664
1665
  { id: "c-001", label: "ABC Home Goods" },
1665
1666
  { id: "c-002", label: "Riverside Retail" },
1666
1667
  { id: "c-003", label: "Mountain View Store" },
1667
1668
  { id: "c-004", label: "Downtown Decor" },
1668
1669
  { id: "c-005", label: "Pacific Coast Imports" }
1669
- ], ea = [
1670
+ ], aa = [
1670
1671
  { id: "i-001", label: "Classic Linen Throw Pillow" },
1671
1672
  { id: "i-002", label: "Coastal Wave Candle Set" },
1672
1673
  { id: "i-003", label: "Walnut Console Table" },
1673
1674
  { id: "i-004", label: "Hand-Blown Glass Vase" },
1674
1675
  { id: "i-005", label: "Velvet Accent Cushion" }
1675
- ], Me = (e) => {
1676
- }, ta = (e) => {
1677
- }, Ue = (e, t) => {
1678
- }, it = {
1676
+ ], Te = (e) => {
1677
+ }, na = (e) => {
1678
+ }, Ye = (e, t) => {
1679
+ }, lt = {
1679
1680
  vizState: {
1680
1681
  type: "orders",
1681
1682
  quant: "$",
@@ -1683,17 +1684,17 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1683
1684
  byItem: { id: null, name: null },
1684
1685
  timeFrame: "MTD"
1685
1686
  },
1686
- onTypeChange: Me,
1687
- onQuantChange: ta,
1688
- onEntityTypeChange: Me,
1689
- onEntitySelect: Ue,
1690
- onItemSelect: Ue,
1691
- onTimeFrameChange: Me,
1687
+ onTypeChange: Te,
1688
+ onQuantChange: na,
1689
+ onEntityTypeChange: Te,
1690
+ onEntitySelect: Ye,
1691
+ onItemSelect: Ye,
1692
+ onTimeFrameChange: Te,
1692
1693
  userType: "sales-agency",
1693
- entityFilterOptions: Jt,
1694
- itemFilterOptions: ea
1695
- }, Jn = {
1696
- ...it,
1694
+ entityFilterOptions: ta,
1695
+ itemFilterOptions: aa
1696
+ }, tr = {
1697
+ ...lt,
1697
1698
  vizState: {
1698
1699
  type: "items",
1699
1700
  quant: "$",
@@ -1701,8 +1702,8 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1701
1702
  byItem: { id: "i-003", name: "Walnut Console Table" },
1702
1703
  timeFrame: "YTD"
1703
1704
  }
1704
- }, er = {
1705
- ...it,
1705
+ }, ar = {
1706
+ ...lt,
1706
1707
  vizState: {
1707
1708
  type: "orders",
1708
1709
  quant: "#",
@@ -1714,7 +1715,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1714
1715
  entityFilterOptions: [
1715
1716
  { id: "customers", label: "Customers" }
1716
1717
  ]
1717
- }, aa = [
1718
+ }, ra = [
1718
1719
  {
1719
1720
  id: "recent-orders",
1720
1721
  label: "Recent Orders",
@@ -1760,7 +1761,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1760
1761
  routeKey: "customer.profile",
1761
1762
  subtitle: "Opens in RepTime"
1762
1763
  }
1763
- ], na = [
1764
+ ], sa = [
1764
1765
  {
1765
1766
  id: "order-items",
1766
1767
  label: "Items in Order",
@@ -1789,7 +1790,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1789
1790
  cellKinds: ["orderId"],
1790
1791
  graphType: "timeline"
1791
1792
  }
1792
- ], ra = [
1793
+ ], ia = [
1793
1794
  {
1794
1795
  id: "graph-metric",
1795
1796
  label: "Graph This Metric",
@@ -1817,14 +1818,14 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1817
1818
  cellKinds: ["numeric"],
1818
1819
  tabType: "orders"
1819
1820
  }
1820
- ], tr = {
1821
- entityName: aa,
1822
- orderId: na,
1823
- numeric: ra
1824
- }, ar = [
1821
+ ], nr = {
1822
+ entityName: ra,
1823
+ orderId: sa,
1824
+ numeric: ia
1825
+ }, rr = [
1825
1826
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
1826
1827
  /* @__PURE__ */ new Date()
1827
- ], nr = {
1828
+ ], sr = {
1828
1829
  rangeA: [
1829
1830
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
1830
1831
  /* @__PURE__ */ new Date()
@@ -1837,7 +1838,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1837
1838
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
1838
1839
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
1839
1840
  ]
1840
- }, rr = {
1841
+ }, ir = {
1841
1842
  version: 4,
1842
1843
  lastPreset: "mtd",
1843
1844
  pinnedPreset: "mtd",
@@ -1845,7 +1846,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1845
1846
  rangeCount: 1,
1846
1847
  lastPresetB: null,
1847
1848
  lastPresetC: null
1848
- }, sr = [
1849
+ }, or = [
1849
1850
  {
1850
1851
  id: "atlanta-jan",
1851
1852
  label: "Atlanta Market",
@@ -1867,7 +1868,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1867
1868
  endDate: new Date(2026, 3, 22),
1868
1869
  location: "Chicago, IL"
1869
1870
  }
1870
- ], ir = [
1871
+ ], lr = [
1871
1872
  {
1872
1873
  id: "custom-regional-1",
1873
1874
  label: "Southeast Regional Expo",
@@ -1884,7 +1885,7 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1884
1885
  location: "Portland, OR",
1885
1886
  isCustom: !0
1886
1887
  }
1887
- ], or = [
1888
+ ], cr = [
1888
1889
  {
1889
1890
  id: "atlanta-jan",
1890
1891
  label: "Atlanta Market",
@@ -1901,35 +1902,35 @@ const fe = V.createElement("span", { style: { color: "var(--color-text-muted)" }
1901
1902
  location: "New York, NY",
1902
1903
  active: !0
1903
1904
  }
1904
- ], lr = [
1905
+ ], dr = [
1905
1906
  { id: "7d", label: "7D" },
1906
1907
  { id: "30d", label: "30D" },
1907
1908
  { id: "60d", label: "60D" },
1908
1909
  { id: "90d", label: "90D" }
1909
- ], cr = [
1910
+ ], ur = [
1910
1911
  { id: "mtd", label: "MTD" },
1911
1912
  { id: "qtd", label: "QTD" },
1912
1913
  { id: "ytd", label: "YTD" },
1913
1914
  { id: "lytd", label: "LYTD" }
1914
- ], sa = {
1915
+ ], oa = {
1915
1916
  timeframe: "Time Frame",
1916
1917
  threshold: "Thresholds",
1917
1918
  slots: "Slots",
1918
1919
  size: "Size",
1919
1920
  color: "Color",
1920
1921
  pinned: "Pinned"
1921
- }, ia = {
1922
- timeframe: Mt,
1923
- threshold: Tt,
1924
- slots: It,
1925
- size: Pt,
1926
- color: Ft,
1927
- pinned: Et
1922
+ }, la = {
1923
+ timeframe: It,
1924
+ threshold: Pt,
1925
+ slots: Et,
1926
+ size: Ft,
1927
+ color: At,
1928
+ pinned: Ot
1928
1929
  };
1929
- function Ze(...e) {
1930
+ function qe(...e) {
1930
1931
  return e.filter(Boolean).join(" ");
1931
1932
  }
1932
- function oa() {
1933
+ function ca() {
1933
1934
  const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
1934
1935
  return O(() => {
1935
1936
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
@@ -1939,29 +1940,29 @@ function oa() {
1939
1940
  });
1940
1941
  }, []), e;
1941
1942
  }
1942
- const la = ({
1943
+ const da = ({
1943
1944
  dimensions: e,
1944
1945
  onDimensionSelect: t,
1945
1946
  activeDimension: n,
1946
1947
  ariaCardTypeLabel: a,
1947
1948
  className: i
1948
1949
  }) => {
1949
- const s = I(null), o = I([]), l = oa(), d = we(() => Array.from(e), [e]);
1950
- if (d.length === 0) return null;
1951
- const c = a ? `Configure ${a}: choose a dimension` : void 0, f = l ? "10ms" : "200ms", h = (g, u) => {
1952
- const N = d.length - 1, b = (p) => {
1953
- const M = o.current[p];
1954
- M && M.focus();
1950
+ const s = P(null), o = P([]), l = ca(), u = Ne(() => Array.from(e), [e]);
1951
+ if (u.length === 0) return null;
1952
+ const d = a ? `Configure ${a}: choose a dimension` : void 0, h = l ? "10ms" : "200ms", m = (g, c) => {
1953
+ const _ = u.length - 1, b = (f) => {
1954
+ const R = o.current[f];
1955
+ R && R.focus();
1955
1956
  };
1956
1957
  switch (g.key) {
1957
1958
  case "ArrowRight":
1958
1959
  case "ArrowDown": {
1959
- g.preventDefault(), b(u === N ? 0 : u + 1);
1960
+ g.preventDefault(), b(c === _ ? 0 : c + 1);
1960
1961
  break;
1961
1962
  }
1962
1963
  case "ArrowLeft":
1963
1964
  case "ArrowUp": {
1964
- g.preventDefault(), b(u === 0 ? N : u - 1);
1965
+ g.preventDefault(), b(c === 0 ? _ : c - 1);
1965
1966
  break;
1966
1967
  }
1967
1968
  case "Home": {
@@ -1969,12 +1970,12 @@ const la = ({
1969
1970
  break;
1970
1971
  }
1971
1972
  case "End": {
1972
- g.preventDefault(), b(N);
1973
+ g.preventDefault(), b(_);
1973
1974
  break;
1974
1975
  }
1975
1976
  case "Enter":
1976
1977
  case " ": {
1977
- g.preventDefault(), t(d[u]);
1978
+ g.preventDefault(), t(u[c]);
1978
1979
  break;
1979
1980
  }
1980
1981
  }
@@ -1984,40 +1985,40 @@ const la = ({
1984
1985
  {
1985
1986
  ref: s,
1986
1987
  role: "group",
1987
- "aria-label": c,
1988
- className: Ze("gloss-reconfig-backside-buttons", i),
1988
+ "aria-label": d,
1989
+ className: qe("gloss-reconfig-backside-buttons", i),
1989
1990
  style: {
1990
1991
  // Expose the reduced-motion-resolved duration as a CSS custom prop
1991
1992
  // so the SCSS transition rule can consume it without a nested media
1992
1993
  // query in the JS. Also surfaces the value for the unit test.
1993
- "--gloss-reconfig-backside-buttons-transition-duration": f
1994
+ "--gloss-reconfig-backside-buttons-transition-duration": h
1994
1995
  },
1995
- children: d.map((g, u) => {
1996
- const N = ia[g], b = n === g;
1997
- return /* @__PURE__ */ D(
1996
+ children: u.map((g, c) => {
1997
+ const _ = la[g], b = n === g;
1998
+ return /* @__PURE__ */ k(
1998
1999
  "button",
1999
2000
  {
2000
- ref: (p) => {
2001
- o.current[u] = p;
2001
+ ref: (f) => {
2002
+ o.current[c] = f;
2002
2003
  },
2003
2004
  type: "button",
2004
2005
  "data-dimension": g,
2005
- className: Ze(
2006
+ className: qe(
2006
2007
  "gloss-reconfig-backside-buttons__button",
2007
2008
  b && "gloss-reconfig-backside-buttons__button--active"
2008
2009
  ),
2009
2010
  "aria-current": b ? "true" : void 0,
2010
2011
  onClick: () => t(g),
2011
- onKeyDown: (p) => h(p, u),
2012
+ onKeyDown: (f) => m(f, c),
2012
2013
  children: [
2013
2014
  /* @__PURE__ */ r(
2014
- N,
2015
+ _,
2015
2016
  {
2016
2017
  className: "gloss-reconfig-backside-buttons__button-icon",
2017
2018
  "aria-hidden": "true"
2018
2019
  }
2019
2020
  ),
2020
- /* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: sa[g] })
2021
+ /* @__PURE__ */ r("span", { className: "gloss-reconfig-backside-buttons__button-label", children: oa[g] })
2021
2022
  ]
2022
2023
  },
2023
2024
  g
@@ -2026,7 +2027,7 @@ const la = ({
2026
2027
  }
2027
2028
  );
2028
2029
  };
2029
- la.displayName = "ReconfigBacksideButtons";
2030
+ da.displayName = "ReconfigBacksideButtons";
2030
2031
  function Q(e, t) {
2031
2032
  return {
2032
2033
  id: e,
@@ -2047,38 +2048,38 @@ function Q(e, t) {
2047
2048
  }, t)
2048
2049
  };
2049
2050
  }
2050
- function Ye(e, t) {
2051
+ function Qe(e, t) {
2051
2052
  return {
2052
2053
  ...Q(e, t),
2053
2054
  colSpan: 2
2054
2055
  };
2055
2056
  }
2056
- const dr = [
2057
+ const mr = [
2057
2058
  Q("total-revenue", "Total Revenue"),
2058
2059
  Q("total-orders", "Total Orders"),
2059
- Ye("revenue-trend", "Revenue Trend (2x)"),
2060
+ Qe("revenue-trend", "Revenue Trend (2x)"),
2060
2061
  Q("avg-order", "Avg Order Value"),
2061
2062
  Q("new-customers", "New Customers"),
2062
2063
  Q("top-salesperson", "Top Salesperson"),
2063
- Ye("order-trend", "Order Trend (2x)"),
2064
+ Qe("order-trend", "Order Trend (2x)"),
2064
2065
  Q("repeat-rate", "Repeat Rate"),
2065
2066
  Q("open-orders", "Open Orders"),
2066
2067
  Q("shipped-orders", "Shipped Orders")
2067
- ], ur = {
2068
+ ], gr = {
2068
2069
  columns: 6,
2069
2070
  rowHeight: 120,
2070
2071
  gap: 15,
2071
2072
  maxRows: 3,
2072
2073
  currentPage: 0,
2073
2074
  totalPages: 1
2074
- }, mr = {
2075
+ }, pr = {
2075
2076
  columns: 9,
2076
2077
  rowHeight: 120,
2077
2078
  gap: 15,
2078
2079
  maxRows: 3,
2079
2080
  currentPage: 0,
2080
2081
  totalPages: 2
2081
- }, gr = {
2082
+ }, fr = {
2082
2083
  columns: 12,
2083
2084
  rowHeight: 120,
2084
2085
  gap: 15,
@@ -2086,15 +2087,15 @@ const dr = [
2086
2087
  currentPage: 0,
2087
2088
  totalPages: 3
2088
2089
  };
2089
- function Te(e) {
2090
+ function Ie(e) {
2090
2091
  return V.createElement("span", { style: { fontSize: 14 } }, e);
2091
2092
  }
2092
- const pr = [
2093
+ const hr = [
2093
2094
  {
2094
2095
  id: "all-orders",
2095
2096
  type: "orders",
2096
2097
  name: "All Orders",
2097
- icon: Te("📋"),
2098
+ icon: Ie("📋"),
2098
2099
  closable: !1,
2099
2100
  autoCreated: !0
2100
2101
  },
@@ -2102,17 +2103,17 @@ const pr = [
2102
2103
  id: "open-orders",
2103
2104
  type: "orders",
2104
2105
  name: "Open Orders",
2105
- icon: Te("📦"),
2106
+ icon: Ie("📦"),
2106
2107
  closable: !0
2107
2108
  },
2108
2109
  {
2109
2110
  id: "shipped-orders",
2110
2111
  type: "orders",
2111
2112
  name: "Shipped Orders",
2112
- icon: Te("🚚"),
2113
+ icon: Ie("🚚"),
2113
2114
  closable: !0
2114
2115
  }
2115
- ], hr = [
2116
+ ], br = [
2116
2117
  {
2117
2118
  id: "orders-main",
2118
2119
  type: "orders",
@@ -2138,7 +2139,7 @@ const pr = [
2138
2139
  name: "Customers",
2139
2140
  closable: !0
2140
2141
  }
2141
- ], fr = [
2142
+ ], vr = [
2142
2143
  {
2143
2144
  id: "only-tab",
2144
2145
  type: "orders",
@@ -2146,7 +2147,7 @@ const pr = [
2146
2147
  closable: !1,
2147
2148
  autoCreated: !0
2148
2149
  }
2149
- ], br = [
2150
+ ], yr = [
2150
2151
  { id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
2151
2152
  { id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
2152
2153
  { id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
@@ -2158,7 +2159,7 @@ const pr = [
2158
2159
  { id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
2159
2160
  { id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
2160
2161
  ];
2161
- function Oe(e) {
2162
+ function $e(e) {
2162
2163
  switch (e) {
2163
2164
  case "wide":
2164
2165
  return { cols: 2, rows: 1 };
@@ -2169,15 +2170,15 @@ function Oe(e) {
2169
2170
  return { cols: 1, rows: 1 };
2170
2171
  }
2171
2172
  }
2172
- function ca(e) {
2173
+ function ua(e) {
2173
2174
  let t = 0;
2174
2175
  for (const a of e) {
2175
- const i = Oe(a.size), s = a.gridPosition.col + i.cols - 1;
2176
+ const i = $e(a.size), s = a.gridPosition.col + i.cols - 1;
2176
2177
  s > t && (t = s);
2177
2178
  }
2178
2179
  return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
2179
2180
  }
2180
- const da = function(t) {
2181
+ const ma = function(t) {
2181
2182
  if (t.renderMode === "discrete")
2182
2183
  return /* @__PURE__ */ r(
2183
2184
  "div",
@@ -2185,7 +2186,7 @@ const da = function(t) {
2185
2186
  className: "gloss-metric-group gloss-metric-group--discrete",
2186
2187
  style: { display: "contents" },
2187
2188
  children: t.cards.map((i) => {
2188
- const s = Oe(i.size);
2189
+ const s = $e(i.size);
2189
2190
  return /* @__PURE__ */ r(
2190
2191
  "div",
2191
2192
  {
@@ -2202,7 +2203,7 @@ const da = function(t) {
2202
2203
  }
2203
2204
  );
2204
2205
  const { cards: n, composite: a } = t;
2205
- return /* @__PURE__ */ D(
2206
+ return /* @__PURE__ */ k(
2206
2207
  "div",
2207
2208
  {
2208
2209
  className: "gloss-metric-group gloss-metric-group--composite",
@@ -2228,7 +2229,7 @@ const da = function(t) {
2228
2229
  style: { background: a.accentColor }
2229
2230
  }
2230
2231
  ),
2231
- a?.label && /* @__PURE__ */ D("div", { className: "gloss-metric-group__label", children: [
2232
+ a?.label && /* @__PURE__ */ k("div", { className: "gloss-metric-group__label", children: [
2232
2233
  /* @__PURE__ */ r("span", { children: a.label }),
2233
2234
  a?.trend && /* @__PURE__ */ r(
2234
2235
  "span",
@@ -2246,10 +2247,10 @@ const da = function(t) {
2246
2247
  style: {
2247
2248
  display: "grid",
2248
2249
  gap: "var(--gloss-spacing-2, 8px)",
2249
- gridTemplateColumns: ca(n)
2250
+ gridTemplateColumns: ua(n)
2250
2251
  },
2251
2252
  children: n.map((i) => {
2252
- const s = Oe(i.size);
2253
+ const s = $e(i.size);
2253
2254
  return /* @__PURE__ */ r(
2254
2255
  "div",
2255
2256
  {
@@ -2269,16 +2270,16 @@ const da = function(t) {
2269
2270
  }
2270
2271
  );
2271
2272
  };
2272
- da.displayName = "MetricGroupContainer";
2273
- const ot = "resize.tuning.dev", ua = {
2274
- ...at,
2273
+ ma.displayName = "MetricGroupContainer";
2274
+ const ct = "resize.tuning.dev", ga = {
2275
+ ...rt,
2275
2276
  snapInPx: 60,
2276
2277
  snapOutPx: 90
2277
- }, re = ua;
2278
- function ma() {
2278
+ }, re = ga;
2279
+ function pa() {
2279
2280
  if (typeof window > "u") return { ...re };
2280
2281
  try {
2281
- const e = window.localStorage.getItem(ot);
2282
+ const e = window.localStorage.getItem(ct);
2282
2283
  if (!e) return { ...re };
2283
2284
  const t = JSON.parse(e);
2284
2285
  return !t || typeof t != "object" || Array.isArray(t) ? { ...re } : { ...re, ...t };
@@ -2286,31 +2287,31 @@ function ma() {
2286
2287
  return { ...re };
2287
2288
  }
2288
2289
  }
2289
- function ga() {
2290
- const [e, t] = $(() => ma());
2290
+ function fa() {
2291
+ const [e, t] = $(() => pa());
2291
2292
  O(() => {
2292
2293
  if (!(typeof window > "u"))
2293
2294
  try {
2294
- window.localStorage.setItem(ot, JSON.stringify(e));
2295
+ window.localStorage.setItem(ct, JSON.stringify(e));
2295
2296
  } catch {
2296
2297
  }
2297
2298
  }, [e]);
2298
- const n = w(
2299
+ const n = N(
2299
2300
  (s, o) => {
2300
2301
  t((l) => ({ ...l, [s]: o }));
2301
2302
  },
2302
2303
  []
2303
- ), a = w(
2304
+ ), a = N(
2304
2305
  (s) => {
2305
2306
  t((o) => ({ ...o, [s]: re[s] }));
2306
2307
  },
2307
2308
  []
2308
- ), i = w(() => {
2309
+ ), i = N(() => {
2309
2310
  t({ ...re });
2310
2311
  }, []);
2311
2312
  return { values: e, setValue: n, resetRow: a, resetAll: i };
2312
2313
  }
2313
- const pa = [
2314
+ const ha = [
2314
2315
  { key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
2315
2316
  { key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
2316
2317
  { key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
@@ -2321,11 +2322,11 @@ const pa = [
2321
2322
  { key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
2322
2323
  { key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
2323
2324
  ];
2324
- function ha(e, t) {
2325
+ function ba(e, t) {
2325
2326
  return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
2326
2327
  }
2327
- function fa() {
2328
- return /* @__PURE__ */ D(
2328
+ function va() {
2329
+ return /* @__PURE__ */ k(
2329
2330
  "svg",
2330
2331
  {
2331
2332
  width: "14",
@@ -2344,14 +2345,14 @@ function fa() {
2344
2345
  }
2345
2346
  );
2346
2347
  }
2347
- function ba({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2348
- const s = w(
2348
+ function ya({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2349
+ const s = N(
2349
2350
  (o) => {
2350
2351
  (o.key === "r" || o.key === "R") && (o.preventDefault(), a());
2351
2352
  },
2352
2353
  [a]
2353
2354
  );
2354
- return /* @__PURE__ */ D(
2355
+ return /* @__PURE__ */ k(
2355
2356
  "div",
2356
2357
  {
2357
2358
  className: `gloss-dev-tuning-panel__row${i ? " gloss-dev-tuning-panel__row--flash" : ""}`,
@@ -2359,8 +2360,8 @@ function ba({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2359
2360
  onKeyDown: s,
2360
2361
  children: [
2361
2362
  /* @__PURE__ */ r("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2362
- /* @__PURE__ */ D("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2363
- ha(t, e.step),
2363
+ /* @__PURE__ */ k("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2364
+ ba(t, e.step),
2364
2365
  e.unit ? ` ${e.unit}` : ""
2365
2366
  ] }),
2366
2367
  /* @__PURE__ */ r(
@@ -2384,14 +2385,14 @@ function ba({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2384
2385
  className: "gloss-dev-tuning-panel__reset",
2385
2386
  "aria-label": `Reset ${e.label}`,
2386
2387
  onClick: a,
2387
- children: /* @__PURE__ */ r(fa, {})
2388
+ children: /* @__PURE__ */ r(va, {})
2388
2389
  }
2389
2390
  )
2390
2391
  ]
2391
2392
  }
2392
2393
  );
2393
2394
  }
2394
- function va() {
2395
+ function wa() {
2395
2396
  if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
2396
2397
  try {
2397
2398
  return new URLSearchParams(window.location.search).has("devtune");
@@ -2399,23 +2400,23 @@ function va() {
2399
2400
  return !1;
2400
2401
  }
2401
2402
  }
2402
- function ya(e = {}) {
2403
- return va() ? /* @__PURE__ */ r(wa, {}) : null;
2403
+ function _a(e = {}) {
2404
+ return wa() ? /* @__PURE__ */ r(Na, {}) : null;
2404
2405
  }
2405
- ya.displayName = "DevTuningPanel";
2406
- function wa() {
2407
- const e = ga(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = I(null), d = w((g) => {
2406
+ _a.displayName = "DevTuningPanel";
2407
+ function Na() {
2408
+ const e = fa(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = P(null), u = N((g) => {
2408
2409
  l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => {
2409
2410
  o(null), l.current = null;
2410
2411
  }, 200);
2411
- }, []), c = w(
2412
- (g, u) => {
2413
- n(g, u), g === "snapInPx" && u > t.snapOutPx && (n("snapOutPx", u), d("snapOutPx"));
2412
+ }, []), d = N(
2413
+ (g, c) => {
2414
+ n(g, c), g === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), u("snapOutPx"));
2414
2415
  },
2415
- [n, t.snapOutPx, d]
2416
- ), f = we(() => pa, []), h = xt();
2417
- return /* @__PURE__ */ D(
2418
- Ce.div,
2416
+ [n, t.snapOutPx, u]
2417
+ ), h = Ne(() => ha, []), m = Rt();
2418
+ return /* @__PURE__ */ k(
2419
+ xe.div,
2419
2420
  {
2420
2421
  className: "gloss-dev-tuning-panel",
2421
2422
  role: "region",
@@ -2423,26 +2424,26 @@ function wa() {
2423
2424
  "data-testid": "gloss-dev-tuning-panel",
2424
2425
  drag: !0,
2425
2426
  dragListener: !1,
2426
- dragControls: h,
2427
+ dragControls: m,
2427
2428
  dragMomentum: !1,
2428
2429
  children: [
2429
- /* @__PURE__ */ D(
2430
+ /* @__PURE__ */ k(
2430
2431
  "div",
2431
2432
  {
2432
2433
  className: "gloss-dev-tuning-panel__header",
2433
- onPointerDown: (g) => h.start(g),
2434
+ onPointerDown: (g) => m.start(g),
2434
2435
  children: [
2435
2436
  /* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2436
2437
  /* @__PURE__ */ r("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2437
2438
  ]
2438
2439
  }
2439
2440
  ),
2440
- /* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: f.map((g) => /* @__PURE__ */ r(
2441
- ba,
2441
+ /* @__PURE__ */ r("div", { className: "gloss-dev-tuning-panel__body", children: h.map((g) => /* @__PURE__ */ r(
2442
+ ya,
2442
2443
  {
2443
2444
  spec: g,
2444
2445
  value: t[g.key],
2445
- onChange: (u) => c(g.key, u),
2446
+ onChange: (c) => d(g.key, c),
2446
2447
  onReset: () => a(g.key),
2447
2448
  flashing: s === g.key
2448
2449
  },
@@ -2461,7 +2462,7 @@ function wa() {
2461
2462
  }
2462
2463
  );
2463
2464
  }
2464
- function vr({
2465
+ function wr({
2465
2466
  state: e,
2466
2467
  originX: t,
2467
2468
  originY: n,
@@ -2470,28 +2471,28 @@ function vr({
2470
2471
  minBoundaryX: s,
2471
2472
  snapBoundariesX: o,
2472
2473
  topY: l,
2473
- bottomY: d,
2474
- enterMs: c = ie.envelopeEnterMs,
2475
- exitMs: f = ie.envelopeExitMs,
2476
- className: h,
2474
+ bottomY: u,
2475
+ enterMs: d = ie.envelopeEnterMs,
2476
+ exitMs: h = ie.envelopeExitMs,
2477
+ className: m,
2477
2478
  style: g
2478
2479
  }) {
2479
2480
  if (e === "hidden") return null;
2480
- const u = Math.max(0, i - a), N = Math.max(0, d - l), b = {
2481
- "--gloss-resize-envelope-enter-ms": `${c}ms`,
2482
- "--gloss-resize-envelope-exit-ms": `${f}ms`,
2481
+ const c = Math.max(0, i - a), _ = Math.max(0, u - l), b = {
2482
+ "--gloss-resize-envelope-enter-ms": `${d}ms`,
2483
+ "--gloss-resize-envelope-exit-ms": `${h}ms`,
2483
2484
  "--gloss-resize-envelope-origin-x": `${t - a}px`,
2484
2485
  "--gloss-resize-envelope-origin-y": `${n - l}px`,
2485
2486
  left: a,
2486
2487
  top: l,
2487
- width: u,
2488
- height: N,
2488
+ width: c,
2489
+ height: _,
2489
2490
  ...g
2490
2491
  };
2491
- return /* @__PURE__ */ D(
2492
+ return /* @__PURE__ */ k(
2492
2493
  "div",
2493
2494
  {
2494
- className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, h].filter(Boolean).join(" "),
2495
+ className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, m].filter(Boolean).join(" "),
2495
2496
  "data-state": e,
2496
2497
  "data-testid": "gloss-resize-envelope",
2497
2498
  style: b,
@@ -2518,23 +2519,23 @@ function vr({
2518
2519
  {
2519
2520
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
2520
2521
  "data-edge": "right",
2521
- style: { left: u - 1 }
2522
+ style: { left: c - 1 }
2522
2523
  }
2523
2524
  ),
2524
- o.filter((p) => p > s && p < i).map((p) => /* @__PURE__ */ r(
2525
+ o.filter((f) => f > s && f < i).map((f) => /* @__PURE__ */ r(
2525
2526
  "div",
2526
2527
  {
2527
2528
  className: "gloss-resize-envelope__snap-line",
2528
2529
  "data-snap-line": !0,
2529
- style: { left: p - a }
2530
+ style: { left: f - a }
2530
2531
  },
2531
- p
2532
+ f
2532
2533
  ))
2533
2534
  ]
2534
2535
  }
2535
2536
  );
2536
2537
  }
2537
- function yr({
2538
+ function _r({
2538
2539
  density: e,
2539
2540
  canAccept: t,
2540
2541
  blocked: n = !1,
@@ -2544,12 +2545,12 @@ function yr({
2544
2545
  children: o,
2545
2546
  ...l
2546
2547
  }) {
2547
- const d = a != null ? { ...l.style, "--_proximity-opacity": String(a) } : l.style;
2548
+ const u = a != null ? { ...l.style, "--_proximity-opacity": String(a) } : l.style;
2548
2549
  return /* @__PURE__ */ r(
2549
2550
  "div",
2550
2551
  {
2551
2552
  ...l,
2552
- style: d,
2553
+ style: u,
2553
2554
  "data-density": e,
2554
2555
  "data-can-accept": t ? "true" : "false",
2555
2556
  "data-blocked": n ? "true" : void 0,
@@ -2565,11 +2566,11 @@ function yr({
2565
2566
  }
2566
2567
  );
2567
2568
  }
2568
- function _a(e, t, n, a) {
2569
+ function Da(e, t, n, a) {
2569
2570
  const i = (e + n) / 2, s = Math.min(t, a) - 40;
2570
2571
  return `M${e},${t} Q${i},${s} ${n},${a}`;
2571
2572
  }
2572
- function wr({
2573
+ function Nr({
2573
2574
  segments: e,
2574
2575
  durationMs: t = ie.spilloverArcDurationMs,
2575
2576
  staggerMs: n = ie.spilloverStaggerMs,
@@ -2589,7 +2590,7 @@ function wr({
2589
2590
  {
2590
2591
  "data-arc-id": s.id,
2591
2592
  className: "gloss-spillover-arc__path",
2592
- d: _a(s.fromX, s.fromY, s.toX, s.toY),
2593
+ d: Da(s.fromX, s.fromY, s.toX, s.toY),
2593
2594
  style: {
2594
2595
  animationDelay: `${o * n}ms`,
2595
2596
  animationDuration: `${t}ms`
@@ -2600,7 +2601,7 @@ function wr({
2600
2601
  }
2601
2602
  );
2602
2603
  }
2603
- function _r({
2604
+ function Dr({
2604
2605
  state: e,
2605
2606
  staggerIndex: t = 0,
2606
2607
  fadeInMs: n = ie.sectionDividerFadeInMs,
@@ -2609,9 +2610,9 @@ function _r({
2609
2610
  variant: s = "dashed",
2610
2611
  className: o,
2611
2612
  style: l,
2612
- ...d
2613
+ ...u
2613
2614
  }) {
2614
- const c = {
2615
+ const d = {
2615
2616
  "--gloss-section-divider-fade-in-ms": `${n}ms`,
2616
2617
  "--gloss-section-divider-fade-out-ms": `${a}ms`,
2617
2618
  "--gloss-section-divider-stagger-delay": `${t * i}ms`,
@@ -2620,7 +2621,7 @@ function _r({
2620
2621
  return /* @__PURE__ */ r(
2621
2622
  "div",
2622
2623
  {
2623
- ...d,
2624
+ ...u,
2624
2625
  "data-state": e,
2625
2626
  "data-testid": "gloss-section-divider",
2626
2627
  "aria-hidden": "true",
@@ -2630,11 +2631,11 @@ function _r({
2630
2631
  s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
2631
2632
  o
2632
2633
  ].filter(Boolean).join(" "),
2633
- style: c
2634
+ style: d
2634
2635
  }
2635
2636
  );
2636
2637
  }
2637
- function Nr({
2638
+ function kr({
2638
2639
  enabled: e,
2639
2640
  onCollapse: t,
2640
2641
  onAdd: n,
@@ -2643,48 +2644,48 @@ function Nr({
2643
2644
  className: s,
2644
2645
  style: o,
2645
2646
  onPack: l,
2646
- ariaLabel: d
2647
+ ariaLabel: u
2647
2648
  }) {
2648
- const c = a ?? "Add card to this cell", f = i ?? d ?? "Pack row — shift cards left", h = t ?? l, g = yt();
2649
- return /* @__PURE__ */ D(ke.Fragment, { children: [
2650
- /* @__PURE__ */ r(Ee, { visible: !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
2649
+ const d = a ?? "Add card to this cell", h = i ?? u ?? "Pack row — shift cards left", m = t ?? l, g = _t();
2650
+ return /* @__PURE__ */ k(ce.Fragment, { children: [
2651
+ /* @__PURE__ */ r(Oe, { visible: !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
2651
2652
  "button",
2652
2653
  {
2653
2654
  type: "button",
2654
2655
  "data-testid": "gloss-empty-cell-add",
2655
- "aria-label": c,
2656
+ "aria-label": d,
2656
2657
  className: [
2657
2658
  "gloss-empty-cell-pack-affordance",
2658
2659
  "gloss-empty-cell-pack-affordance--add",
2659
2660
  s
2660
2661
  ].filter(Boolean).join(" "),
2661
2662
  style: o,
2662
- onClick: (u) => {
2663
- u.stopPropagation(), n?.();
2663
+ onClick: (c) => {
2664
+ c.stopPropagation(), n?.();
2664
2665
  },
2665
2666
  children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
2666
2667
  }
2667
2668
  ) }),
2668
- /* @__PURE__ */ r(Ee, { visible: e && !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
2669
+ /* @__PURE__ */ r(Oe, { visible: e && !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
2669
2670
  "button",
2670
2671
  {
2671
2672
  type: "button",
2672
2673
  "data-testid": "gloss-empty-cell-pack",
2673
- "aria-label": f,
2674
+ "aria-label": h,
2674
2675
  className: ["gloss-empty-cell-pack-affordance", s].filter(Boolean).join(" "),
2675
2676
  style: o,
2676
- onClick: (u) => {
2677
- u.stopPropagation(), h?.();
2677
+ onClick: (c) => {
2678
+ c.stopPropagation(), m?.();
2678
2679
  },
2679
2680
  children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2680
2681
  }
2681
2682
  ) })
2682
2683
  ] });
2683
2684
  }
2684
- function Dr() {
2685
+ function Cr() {
2685
2686
  return { affordancesVisible: !0 };
2686
2687
  }
2687
- function kr({
2688
+ function xr({
2688
2689
  tint: e,
2689
2690
  colSpan: t,
2690
2691
  colWidth: n,
@@ -2693,27 +2694,88 @@ function kr({
2693
2694
  x: s,
2694
2695
  y: o,
2695
2696
  children: l,
2696
- className: d
2697
+ className: u
2697
2698
  }) {
2698
- const c = t * n + (t - 1) * i;
2699
- return /* @__PURE__ */ r(
2700
- Ce.div,
2699
+ const d = t * n + (t - 1) * i, h = ce.useRef(null);
2700
+ return Fe("drag-ghost", () => {
2701
+ if (process.env.NODE_ENV === "production")
2702
+ return { values: {}, spec: null, state: "idle", t: performance.now() };
2703
+ const m = h.current?.getBoundingClientRect() ?? null;
2704
+ return {
2705
+ values: {
2706
+ x: s.get(),
2707
+ y: o.get(),
2708
+ bounds_x: m?.x ?? 0,
2709
+ bounds_y: m?.y ?? 0,
2710
+ bounds_w: m?.width ?? 0,
2711
+ bounds_h: m?.height ?? 0,
2712
+ visible: m ? 1 : 0
2713
+ },
2714
+ spec: {
2715
+ tint: e,
2716
+ colSpan: t,
2717
+ springStiffness: le.springStiffness,
2718
+ springDamping: le.springDamping
2719
+ },
2720
+ state: "active",
2721
+ t: performance.now()
2722
+ };
2723
+ }), Fe("commit-ghost-singleton", () => {
2724
+ if (process.env.NODE_ENV === "production")
2725
+ return { values: {}, spec: null, state: "idle", t: performance.now() };
2726
+ const m = h.current;
2727
+ let g = 0, c = "", _ = "", b = "";
2728
+ if (m)
2729
+ try {
2730
+ const I = window.getComputedStyle(m), y = I.outline || "", M = I.border || "", x = I.boxShadow || "", p = !!y && y !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(y), v = !!M && M !== "none" && !/^0px(\s+none)?(\s+rgba?\(0,\s*0,\s*0,\s*0\))?$/i.test(M), D = !!x && x !== "none";
2731
+ g = p || v || D ? 1 : 0, c = p ? y : "", _ = v ? M : "", b = D ? x : "";
2732
+ } catch {
2733
+ }
2734
+ const f = m?.getBoundingClientRect() ?? null, R = m ? "drag-clone" : "subsumed-by-tracking-outline";
2735
+ return {
2736
+ values: {
2737
+ x: s.get(),
2738
+ y: o.get(),
2739
+ bounds_x: f?.x ?? 0,
2740
+ bounds_y: f?.y ?? 0,
2741
+ bounds_w: f?.width ?? 0,
2742
+ bounds_h: f?.height ?? 0,
2743
+ visible: m ? 1 : 0,
2744
+ outlineOnClone: g
2745
+ },
2746
+ spec: {
2747
+ mode: R,
2748
+ tint: e,
2749
+ outlineSrc: c,
2750
+ borderSrc: _,
2751
+ boxShadowSrc: b
2752
+ // D-01 contract: Frame 1 (current/buggy) shows outline-on-clone=true;
2753
+ // Frame 2 (decided): outline-on-clone=false (subsumed by tracking
2754
+ // outline). Wave 2 audit-D-01 reads this field across drag mid-flight
2755
+ // + post-drop frames and records frame match.
2756
+ },
2757
+ state: m ? "active" : "idle",
2758
+ t: performance.now()
2759
+ };
2760
+ }), /* @__PURE__ */ r(
2761
+ xe.div,
2701
2762
  {
2763
+ ref: h,
2702
2764
  "data-testid": "gloss-drag-ghost",
2703
2765
  "data-tint": e,
2704
2766
  "aria-hidden": "true",
2705
2767
  className: [
2706
2768
  "gloss-drag-ghost",
2707
2769
  `gloss-drag-ghost--tint-${e}`,
2708
- d
2770
+ u
2709
2771
  ].filter(Boolean).join(" "),
2710
- style: { x: s, y: o, width: c, height: a },
2772
+ style: { x: s, y: o, width: d, height: a },
2711
2773
  children: l
2712
2774
  }
2713
2775
  );
2714
2776
  }
2715
- const Na = 3;
2716
- function lt({
2777
+ const ka = 3;
2778
+ function dt({
2717
2779
  gesture: e,
2718
2780
  cell: t,
2719
2781
  colSpan: n,
@@ -2722,9 +2784,9 @@ function lt({
2722
2784
  rowHeight: s,
2723
2785
  pattern: o = "solid",
2724
2786
  transitionMs: l = 120,
2725
- className: d
2787
+ className: u
2726
2788
  }) {
2727
- const c = n * a + (n - 1) * i, h = (t.section * Na + t.col) * (a + i), g = t.row * (s + i), u = e === "resize" ? 2.5 : 2, N = o === "dashed-retreated" ? "dashed" : "solid", b = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline";
2789
+ const d = n * a + (n - 1) * i, m = (t.section * ka + t.col) * (a + i), g = t.row * (s + i), c = e === "resize" ? 2.5 : 2, _ = o === "dashed-retreated" ? "dashed" : "solid", b = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline";
2728
2790
  return /* @__PURE__ */ r(
2729
2791
  "div",
2730
2792
  {
@@ -2735,7 +2797,7 @@ function lt({
2735
2797
  // D-15 #4 parity: drag callers must keep the legacy class so reptime
2736
2798
  // metric-card-grid.scss nested selectors continue to match.
2737
2799
  e === "drag" ? "gloss-drag-feedback-snap-outline" : null,
2738
- d
2800
+ u
2739
2801
  ].filter(Boolean).join(" "),
2740
2802
  "data-testid": b,
2741
2803
  "data-tracking-outline": "",
@@ -2743,69 +2805,94 @@ function lt({
2743
2805
  "data-pattern": o,
2744
2806
  "aria-hidden": "true",
2745
2807
  style: {
2746
- transform: `translate(${h}px, ${g}px)`,
2747
- width: c,
2808
+ transform: `translate(${m}px, ${g}px)`,
2809
+ width: d,
2748
2810
  height: s,
2749
- borderWidth: u,
2750
- borderStyle: N,
2811
+ borderWidth: c,
2812
+ borderStyle: _,
2751
2813
  transition: `transform ${l}ms cubic-bezier(0.4, 0, 0.2, 1)`
2752
2814
  }
2753
2815
  }
2754
2816
  );
2755
2817
  }
2756
- function Cr(e) {
2757
- return /* @__PURE__ */ r(lt, { gesture: "drag", pattern: "solid", ...e });
2818
+ function Sr(e) {
2819
+ return /* @__PURE__ */ r(dt, { gesture: "drag", pattern: "solid", ...e });
2758
2820
  }
2759
- function xr({
2821
+ function Rr({
2760
2822
  items: e,
2761
2823
  children: t,
2762
2824
  className: n,
2763
2825
  debugMagenta: a
2764
2826
  }) {
2765
- const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0);
2766
- return e.length === 0 ? null : /* @__PURE__ */ r(te, { children: e.map((s) => /* @__PURE__ */ r(
2767
- Ce.div,
2827
+ const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0), s = ce.useRef(e);
2828
+ return s.current = e, Fe("cascade-preview", () => {
2829
+ if (process.env.NODE_ENV === "production")
2830
+ return { values: {}, spec: null, state: "idle", t: performance.now() };
2831
+ const o = s.current;
2832
+ let l = 0, u = 0, d = 0, h = 0;
2833
+ for (const m of o) {
2834
+ const g = m.x.get(), c = m.y.get();
2835
+ Math.abs(g) > Math.abs(d) && (d = g, l = g), Math.abs(c) > Math.abs(h) && (h = c, u = c);
2836
+ }
2837
+ return {
2838
+ values: {
2839
+ activeCount: o.length,
2840
+ maxX: l,
2841
+ maxY: u,
2842
+ visible: o.length > 0 ? 1 : 0
2843
+ },
2844
+ spec: {
2845
+ forwardStaggerMs: le.forwardStaggerMs,
2846
+ reverseStaggerMs: le.reverseStaggerMs,
2847
+ springStiffness: le.springStiffness,
2848
+ springDamping: le.springDamping
2849
+ },
2850
+ state: o.length > 0 ? "active" : "idle",
2851
+ t: performance.now()
2852
+ };
2853
+ }), e.length === 0 ? null : /* @__PURE__ */ r(te, { children: e.map((o) => /* @__PURE__ */ r(
2854
+ xe.div,
2768
2855
  {
2769
- "data-card-id": s.cardId,
2856
+ "data-card-id": o.cardId,
2770
2857
  "data-testid": "gloss-cascade-preview-item",
2771
2858
  "aria-hidden": "true",
2772
2859
  className: ["gloss-cascade-preview-item", n].filter(Boolean).join(" "),
2773
2860
  style: {
2774
2861
  position: "absolute",
2775
- left: s.left,
2776
- top: s.top,
2777
- x: s.x,
2778
- y: s.y,
2779
- width: s.width,
2780
- height: s.height,
2862
+ left: o.left,
2863
+ top: o.top,
2864
+ x: o.x,
2865
+ y: o.y,
2866
+ width: o.width,
2867
+ height: o.height,
2781
2868
  ...i ? { outline: "2px solid magenta" } : {}
2782
2869
  },
2783
- children: t(s)
2870
+ children: t(o)
2784
2871
  },
2785
- s.cardId
2872
+ o.cardId
2786
2873
  )) });
2787
2874
  }
2788
- const Da = ({
2875
+ const Ca = ({
2789
2876
  consumed: e,
2790
2877
  elapsed: t,
2791
2878
  severity: n = "neutral"
2792
2879
  }) => {
2793
- const a = I(null), i = I(null);
2880
+ const a = P(null), i = P(null);
2794
2881
  O(() => {
2795
- const l = Math.min(100, Math.max(0, e.value)), d = Math.min(100, Math.max(0, t.value)), c = requestAnimationFrame(() => {
2796
- a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${d}%`);
2882
+ const l = Math.min(100, Math.max(0, e.value)), u = Math.min(100, Math.max(0, t.value)), d = requestAnimationFrame(() => {
2883
+ a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${u}%`);
2797
2884
  });
2798
- return () => cancelAnimationFrame(c);
2885
+ return () => cancelAnimationFrame(d);
2799
2886
  }, [e.value, t.value]);
2800
2887
  const s = e.label ?? "ACTUAL", o = t.label ?? "ELAPSED";
2801
- return /* @__PURE__ */ D(
2888
+ return /* @__PURE__ */ k(
2802
2889
  "div",
2803
2890
  {
2804
2891
  className: "gloss-dual-pace-bars",
2805
2892
  role: "img",
2806
2893
  "aria-label": `${s}: ${e.value}%, ${o}: ${t.value}%`,
2807
2894
  children: [
2808
- /* @__PURE__ */ D("div", { className: "gloss-dual-pace-bars__row", children: [
2895
+ /* @__PURE__ */ k("div", { className: "gloss-dual-pace-bars__row", children: [
2809
2896
  /* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: s }),
2810
2897
  /* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
2811
2898
  "div",
@@ -2820,12 +2907,12 @@ const Da = ({
2820
2907
  "aria-label": `${s}: ${e.value}%`
2821
2908
  }
2822
2909
  ) }),
2823
- /* @__PURE__ */ D("span", { className: "gloss-dual-pace-bars__track-value", children: [
2910
+ /* @__PURE__ */ k("span", { className: "gloss-dual-pace-bars__track-value", children: [
2824
2911
  e.value,
2825
2912
  "%"
2826
2913
  ] })
2827
2914
  ] }),
2828
- /* @__PURE__ */ D("div", { className: "gloss-dual-pace-bars__row", children: [
2915
+ /* @__PURE__ */ k("div", { className: "gloss-dual-pace-bars__row", children: [
2829
2916
  /* @__PURE__ */ r("span", { className: "gloss-dual-pace-bars__track-label", children: o }),
2830
2917
  /* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
2831
2918
  "div",
@@ -2840,7 +2927,7 @@ const Da = ({
2840
2927
  "aria-label": `${o}: ${t.value}%`
2841
2928
  }
2842
2929
  ) }),
2843
- /* @__PURE__ */ D("span", { className: "gloss-dual-pace-bars__track-value", children: [
2930
+ /* @__PURE__ */ k("span", { className: "gloss-dual-pace-bars__track-value", children: [
2844
2931
  t.value,
2845
2932
  "%"
2846
2933
  ] })
@@ -2848,22 +2935,22 @@ const Da = ({
2848
2935
  ]
2849
2936
  }
2850
2937
  );
2851
- }, ka = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ D(
2938
+ }, xa = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ k(
2852
2939
  "div",
2853
2940
  {
2854
2941
  className: `gloss-gap-readout gloss-gap-readout--${n}`,
2855
2942
  "aria-label": `${e}: ${t}`,
2856
2943
  children: [
2857
2944
  /* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
2858
- /* @__PURE__ */ D("div", { className: "gloss-gap-readout__strip", children: [
2945
+ /* @__PURE__ */ k("div", { className: "gloss-gap-readout__strip", children: [
2859
2946
  /* @__PURE__ */ r("span", { className: "gloss-gap-readout__label", children: e }),
2860
2947
  /* @__PURE__ */ r("span", { className: "gloss-gap-readout__value", children: t })
2861
2948
  ] })
2862
2949
  ]
2863
2950
  }
2864
- ), Ca = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ D("div", { className: "gloss-pace-placeholder", children: [
2951
+ ), Sa = ({ label: e, onSetTarget: t }) => /* @__PURE__ */ k("div", { className: "gloss-pace-placeholder", children: [
2865
2952
  /* @__PURE__ */ r("p", { className: "gloss-pace-placeholder__heading", children: "Set a target" }),
2866
- /* @__PURE__ */ D("p", { className: "gloss-pace-placeholder__context", children: [
2953
+ /* @__PURE__ */ k("p", { className: "gloss-pace-placeholder__context", children: [
2867
2954
  "for ",
2868
2955
  e
2869
2956
  ] }),
@@ -2877,9 +2964,9 @@ const Da = ({
2877
2964
  children: "Set target"
2878
2965
  }
2879
2966
  )
2880
- ] }), Sr = (e) => {
2967
+ ] }), Mr = (e) => {
2881
2968
  const [t, n] = $(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
2882
- At,
2969
+ Lt,
2883
2970
  {
2884
2971
  label: `Set a target for ${e.label}`,
2885
2972
  unit: s,
@@ -2893,7 +2980,7 @@ const Da = ({
2893
2980
  }
2894
2981
  );
2895
2982
  return /* @__PURE__ */ r(
2896
- wt,
2983
+ Nt,
2897
2984
  {
2898
2985
  colSpan: 2,
2899
2986
  enableQuickSettings: !0,
@@ -2901,21 +2988,21 @@ const Da = ({
2901
2988
  onFlipChange: n,
2902
2989
  quickConfigSlot: o,
2903
2990
  onRemove: e.onRemove,
2904
- children: /* @__PURE__ */ D("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
2991
+ children: /* @__PURE__ */ k("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
2905
2992
  /* @__PURE__ */ r("div", { className: "gloss-pace-card__label", children: e.label }),
2906
2993
  e.subtitle && /* @__PURE__ */ r("div", { className: "gloss-pace-card__subtitle", children: e.subtitle }),
2907
- /* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ D(te, { children: [
2994
+ /* @__PURE__ */ r("div", { className: "gloss-pace-card__body", children: i ? /* @__PURE__ */ k(te, { children: [
2908
2995
  /* @__PURE__ */ r(
2909
- Da,
2996
+ Ca,
2910
2997
  {
2911
2998
  consumed: e.consumed,
2912
2999
  elapsed: e.elapsed,
2913
3000
  severity: e.severity
2914
3001
  }
2915
3002
  ),
2916
- /* @__PURE__ */ r(ka, { label: "Gap", value: e.gapLabel, severity: e.severity })
3003
+ /* @__PURE__ */ r(xa, { label: "Gap", value: e.gapLabel, severity: e.severity })
2917
3004
  ] }) : /* @__PURE__ */ r(
2918
- Ca,
3005
+ Sa,
2919
3006
  {
2920
3007
  label: e.label,
2921
3008
  onSetTarget: () => n(!0)
@@ -2924,7 +3011,7 @@ const Da = ({
2924
3011
  ] })
2925
3012
  }
2926
3013
  );
2927
- }, Rr = () => /* @__PURE__ */ D("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
3014
+ }, Tr = () => /* @__PURE__ */ k("div", { className: "gloss-pace-tile-preview", "aria-hidden": "true", children: [
2928
3015
  /* @__PURE__ */ r(
2929
3016
  "div",
2930
3017
  {
@@ -2941,7 +3028,7 @@ const Da = ({
2941
3028
  ),
2942
3029
  /* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
2943
3030
  ] });
2944
- function xa({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, onClick: o }) {
3031
+ function Ra({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, onClick: o }) {
2945
3032
  return /* @__PURE__ */ r(
2946
3033
  "span",
2947
3034
  {
@@ -2955,14 +3042,14 @@ function xa({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, o
2955
3042
  onClick: () => {
2956
3043
  i || o(e);
2957
3044
  },
2958
- children: /* @__PURE__ */ D("span", { className: "gloss-lens-chip__inner", children: [
3045
+ children: /* @__PURE__ */ k("span", { className: "gloss-lens-chip__inner", children: [
2959
3046
  /* @__PURE__ */ r("span", { className: "gloss-lens-chip__label", children: t }),
2960
3047
  s && /* @__PURE__ */ r("span", { className: "gloss-lens-chip__badge", children: s })
2961
3048
  ] })
2962
3049
  }
2963
3050
  );
2964
3051
  }
2965
- function Sa({
3052
+ function Ma({
2966
3053
  lenses: e,
2967
3054
  value: t,
2968
3055
  onChange: n,
@@ -2972,7 +3059,7 @@ function Sa({
2972
3059
  () => Math.max(0, e.findIndex((l) => l.id === t))
2973
3060
  );
2974
3061
  return O(() => {
2975
- const l = e.findIndex((d) => d.id === t);
3062
+ const l = e.findIndex((u) => u.id === t);
2976
3063
  s(l >= 0 ? l : 0);
2977
3064
  }, [t, e]), e.length === 0 ? null : /* @__PURE__ */ r(
2978
3065
  "div",
@@ -2983,11 +3070,11 @@ function Sa({
2983
3070
  switch (l.key) {
2984
3071
  case "ArrowRight":
2985
3072
  case "ArrowDown":
2986
- l.preventDefault(), s((d) => (d + 1) % e.length);
3073
+ l.preventDefault(), s((u) => (u + 1) % e.length);
2987
3074
  break;
2988
3075
  case "ArrowLeft":
2989
3076
  case "ArrowUp":
2990
- l.preventDefault(), s((d) => (d - 1 + e.length) % e.length);
3077
+ l.preventDefault(), s((u) => (u - 1 + e.length) % e.length);
2991
3078
  break;
2992
3079
  case "Home":
2993
3080
  l.preventDefault(), s(0);
@@ -2998,20 +3085,20 @@ function Sa({
2998
3085
  case "Enter":
2999
3086
  case " ": {
3000
3087
  l.preventDefault();
3001
- const d = e[i];
3002
- d && !d.disabled && n(d.id);
3088
+ const u = e[i];
3089
+ u && !u.disabled && n(u.id);
3003
3090
  break;
3004
3091
  }
3005
3092
  }
3006
3093
  },
3007
3094
  className: "gloss-lens-chip-group",
3008
- children: e.map((l, d) => /* @__PURE__ */ r(
3009
- xa,
3095
+ children: e.map((l, u) => /* @__PURE__ */ r(
3096
+ Ra,
3010
3097
  {
3011
3098
  id: l.id,
3012
3099
  label: l.label,
3013
3100
  selected: l.id === t,
3014
- focused: d === i,
3101
+ focused: u === i,
3015
3102
  disabled: l.disabled,
3016
3103
  badge: l.badge,
3017
3104
  onClick: n
@@ -3021,25 +3108,25 @@ function Sa({
3021
3108
  }
3022
3109
  );
3023
3110
  }
3024
- Sa.displayName = "LensChipGroup";
3025
- function Ra({ heading: e, children: t }) {
3026
- return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ D("section", { className: "gloss-starter-rail", "aria-label": e, children: [
3111
+ Ma.displayName = "LensChipGroup";
3112
+ function Ta({ heading: e, children: t }) {
3113
+ return !t || Array.isArray(t) && t.length === 0 ? null : /* @__PURE__ */ k("section", { className: "gloss-starter-rail", "aria-label": e, children: [
3027
3114
  /* @__PURE__ */ r("header", { className: "gloss-starter-rail__heading", children: e }),
3028
3115
  /* @__PURE__ */ r("div", { className: "gloss-starter-rail__tiles", children: t })
3029
3116
  ] });
3030
3117
  }
3031
- Ra.displayName = "StarterRail";
3032
- function Ma({ heading: e, children: t, emptyStateLabel: n }) {
3118
+ Ta.displayName = "StarterRail";
3119
+ function Ia({ heading: e, children: t, emptyStateLabel: n }) {
3033
3120
  const a = !t || Array.isArray(t) && t.length === 0;
3034
- return /* @__PURE__ */ D("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
3121
+ return /* @__PURE__ */ k("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
3035
3122
  /* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
3036
- /* @__PURE__ */ D("div", { className: "gloss-more-in-lens-rail__tiles", children: [
3123
+ /* @__PURE__ */ k("div", { className: "gloss-more-in-lens-rail__tiles", children: [
3037
3124
  t,
3038
3125
  a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
3039
3126
  ] })
3040
3127
  ] });
3041
3128
  }
3042
- Ma.displayName = "MoreInLensRail";
3129
+ Ia.displayName = "MoreInLensRail";
3043
3130
  function X({
3044
3131
  lead: e,
3045
3132
  name: t,
@@ -3049,21 +3136,21 @@ function X({
3049
3136
  variant: s = "default",
3050
3137
  onClick: o,
3051
3138
  className: l,
3052
- style: d
3139
+ style: u
3053
3140
  }) {
3054
- const c = [
3141
+ const d = [
3055
3142
  "gloss-entity-row",
3056
3143
  `gloss-entity-row--${s}`,
3057
3144
  o ? "gloss-entity-row--clickable" : "",
3058
3145
  l ?? ""
3059
- ].filter(Boolean).join(" "), f = /* @__PURE__ */ D(te, { children: [
3146
+ ].filter(Boolean).join(" "), h = /* @__PURE__ */ k(te, { children: [
3060
3147
  e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
3061
3148
  /* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
3062
3149
  n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
3063
3150
  /* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
3064
3151
  i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
3065
3152
  ] });
3066
- return o ? /* @__PURE__ */ r("div", { role: "listitem", className: c, style: d, children: /* @__PURE__ */ r(
3153
+ return o ? /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: /* @__PURE__ */ r(
3067
3154
  "button",
3068
3155
  {
3069
3156
  type: "button",
@@ -3075,15 +3162,15 @@ function X({
3075
3162
  gap: 4,
3076
3163
  cursor: "pointer"
3077
3164
  },
3078
- onClick: (h) => {
3079
- h.stopPropagation(), o();
3165
+ onClick: (m) => {
3166
+ m.stopPropagation(), o();
3080
3167
  },
3081
- children: f
3168
+ children: h
3082
3169
  }
3083
- ) }) : /* @__PURE__ */ r("div", { role: "listitem", className: c, style: d, children: f });
3170
+ ) }) : /* @__PURE__ */ r("div", { role: "listitem", className: d, style: u, children: h });
3084
3171
  }
3085
3172
  X.displayName = "EntityRow";
3086
- const be = ({ rank: e }) => {
3173
+ const ye = ({ rank: e }) => {
3087
3174
  const t = e === 1 ? "first" : "other";
3088
3175
  return /* @__PURE__ */ r(
3089
3176
  "span",
@@ -3095,8 +3182,8 @@ const be = ({ rank: e }) => {
3095
3182
  }
3096
3183
  );
3097
3184
  };
3098
- be.displayName = "RankBadge";
3099
- function ve({ severity: e, "aria-label": t }) {
3185
+ ye.displayName = "RankBadge";
3186
+ function we({ severity: e, "aria-label": t }) {
3100
3187
  return /* @__PURE__ */ r(
3101
3188
  "span",
3102
3189
  {
@@ -3106,8 +3193,8 @@ function ve({ severity: e, "aria-label": t }) {
3106
3193
  }
3107
3194
  );
3108
3195
  }
3109
- ve.displayName = "SeverityDot";
3110
- function ct({
3196
+ we.displayName = "SeverityDot";
3197
+ function ut({
3111
3198
  delta: e,
3112
3199
  direction: t = "flat",
3113
3200
  "aria-label": n
@@ -3123,7 +3210,7 @@ function ct({
3123
3210
  }
3124
3211
  );
3125
3212
  const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
3126
- return /* @__PURE__ */ D(
3213
+ return /* @__PURE__ */ k(
3127
3214
  "span",
3128
3215
  {
3129
3216
  role: "img",
@@ -3136,8 +3223,8 @@ function ct({
3136
3223
  }
3137
3224
  );
3138
3225
  }
3139
- ct.displayName = "RankDelta";
3140
- function ye({ fill: e, variant: t = "default", className: n }) {
3226
+ ut.displayName = "RankDelta";
3227
+ function _e({ fill: e, variant: t = "default", className: n }) {
3141
3228
  const a = Math.max(0, Math.min(100, e));
3142
3229
  return /* @__PURE__ */ r(
3143
3230
  "div",
@@ -3153,9 +3240,9 @@ function ye({ fill: e, variant: t = "default", className: n }) {
3153
3240
  }
3154
3241
  );
3155
3242
  }
3156
- ye.displayName = "MagnitudeBar";
3157
- const Ta = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
3158
- function Ia({
3243
+ _e.displayName = "MagnitudeBar";
3244
+ const Pa = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `Rank up ${e.rankDelta}` : e.direction === "down" ? `Rank down ${e.rankDelta}` : "Rank unchanged";
3245
+ function Ea({
3159
3246
  label: e,
3160
3247
  rows: t,
3161
3248
  rowCount: n,
@@ -3163,27 +3250,27 @@ function Ia({
3163
3250
  isStale: i
3164
3251
  }) {
3165
3252
  const s = n ?? 3;
3166
- return /* @__PURE__ */ D(te, { children: [
3253
+ return /* @__PURE__ */ k(te, { children: [
3167
3254
  /* @__PURE__ */ r(
3168
- he,
3255
+ be,
3169
3256
  {
3170
3257
  className: "gloss-metric-card__zone-a",
3171
3258
  style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
3172
- children: /* @__PURE__ */ r(Pe, { className: "gloss-metric-card__label", children: e })
3259
+ children: /* @__PURE__ */ r(Ee, { className: "gloss-metric-card__label", children: e })
3173
3260
  }
3174
3261
  ),
3175
3262
  /* @__PURE__ */ r(
3176
- he,
3263
+ be,
3177
3264
  {
3178
3265
  className: `gloss-metric-card__zone-b gloss-leaderboard ${i ? "gloss-metric-data-stale" : ""}`,
3179
3266
  style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
3180
3267
  children: /* @__PURE__ */ r("div", { className: "gloss-leaderboard__rows", role: "list", children: t.slice(0, s).map((o, l) => /* @__PURE__ */ r(
3181
3268
  X,
3182
3269
  {
3183
- lead: /* @__PURE__ */ r(be, { rank: l + 1 }),
3270
+ lead: /* @__PURE__ */ r(ye, { rank: l + 1 }),
3184
3271
  name: o.name,
3185
3272
  secondary: /* @__PURE__ */ r(
3186
- ye,
3273
+ _e,
3187
3274
  {
3188
3275
  fill: o.magnitude,
3189
3276
  variant: o.isBottom ? "bottom" : "default"
@@ -3191,11 +3278,11 @@ function Ia({
3191
3278
  ),
3192
3279
  value: o.value,
3193
3280
  trail: /* @__PURE__ */ r(
3194
- ct,
3281
+ ut,
3195
3282
  {
3196
3283
  delta: o.rankDelta,
3197
3284
  direction: o.direction,
3198
- "aria-label": Ta(o)
3285
+ "aria-label": Pa(o)
3199
3286
  }
3200
3287
  ),
3201
3288
  variant: "leaderboard",
@@ -3205,28 +3292,28 @@ function Ia({
3205
3292
  )) })
3206
3293
  }
3207
3294
  ),
3208
- /* @__PURE__ */ D("div", { className: "gloss-leaderboard__zone-c", children: [
3295
+ /* @__PURE__ */ k("div", { className: "gloss-leaderboard__zone-c", children: [
3209
3296
  a ?? "WoW",
3210
3297
  " rank change"
3211
3298
  ] })
3212
3299
  ] });
3213
3300
  }
3214
- Ia.displayName = "LeaderboardCard";
3215
- const Pa = () => /* @__PURE__ */ D(
3301
+ Ea.displayName = "LeaderboardCard";
3302
+ const Fa = () => /* @__PURE__ */ k(
3216
3303
  "div",
3217
3304
  {
3218
3305
  className: "leaderboard-tile-preview",
3219
3306
  "aria-hidden": "true",
3220
3307
  style: { transform: "scale(0.6)", transformOrigin: "top left" },
3221
3308
  children: [
3222
- /* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(be, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(ye, { fill: 96 }), value: "98%" }),
3223
- /* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(be, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(ye, { fill: 72 }), value: "85%" }),
3224
- /* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(be, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(ye, { fill: 48 }), value: "71%" })
3309
+ /* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(ye, { rank: 1 }), name: "Vendor A", secondary: /* @__PURE__ */ r(_e, { fill: 96 }), value: "98%" }),
3310
+ /* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(ye, { rank: 2 }), name: "Vendor B", secondary: /* @__PURE__ */ r(_e, { fill: 72 }), value: "85%" }),
3311
+ /* @__PURE__ */ r(X, { lead: /* @__PURE__ */ r(ye, { rank: 3 }), name: "Vendor C", secondary: /* @__PURE__ */ r(_e, { fill: 48 }), value: "71%" })
3225
3312
  ]
3226
3313
  }
3227
3314
  );
3228
- Pa.displayName = "LeaderboardTilePreview";
3229
- const Fa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", Ea = (e, t) => {
3315
+ Fa.displayName = "LeaderboardTilePreview";
3316
+ const Aa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", Oa = (e, t) => {
3230
3317
  const n = e.sourceValue;
3231
3318
  if (typeof n != "number") return !1;
3232
3319
  switch (t.condition) {
@@ -3244,7 +3331,7 @@ const Fa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warni
3244
3331
  return !1;
3245
3332
  }
3246
3333
  };
3247
- function Aa({
3334
+ function La({
3248
3335
  label: e,
3249
3336
  rows: t,
3250
3337
  rule: n,
@@ -3253,50 +3340,50 @@ function Aa({
3253
3340
  ruleSubtitle: s,
3254
3341
  isStale: o
3255
3342
  }) {
3256
- const l = t.filter((c) => Ea(c, n)), d = l.slice(0, a ?? 3);
3257
- return l.length === 0 ? /* @__PURE__ */ D(te, { children: [
3343
+ const l = t.filter((d) => Oa(d, n)), u = l.slice(0, a ?? 3);
3344
+ return l.length === 0 ? /* @__PURE__ */ k(te, { children: [
3258
3345
  /* @__PURE__ */ r(
3259
- he,
3346
+ be,
3260
3347
  {
3261
3348
  className: "gloss-metric-card__zone-a",
3262
3349
  style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
3263
- children: /* @__PURE__ */ r(Pe, { className: "gloss-metric-card__label", children: e })
3350
+ children: /* @__PURE__ */ r(Ee, { className: "gloss-metric-card__label", children: e })
3264
3351
  }
3265
3352
  ),
3266
3353
  /* @__PURE__ */ r("div", { className: "gloss-exception-list__empty", role: "status", children: i ?? "No exceptions" }),
3267
3354
  s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
3268
- ] }) : /* @__PURE__ */ D(te, { children: [
3355
+ ] }) : /* @__PURE__ */ k(te, { children: [
3269
3356
  /* @__PURE__ */ r(
3270
- he,
3357
+ be,
3271
3358
  {
3272
3359
  className: "gloss-metric-card__zone-a",
3273
3360
  style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative" },
3274
- children: /* @__PURE__ */ r(Pe, { className: "gloss-metric-card__label", children: e })
3361
+ children: /* @__PURE__ */ r(Ee, { className: "gloss-metric-card__label", children: e })
3275
3362
  }
3276
3363
  ),
3277
3364
  /* @__PURE__ */ r(
3278
- he,
3365
+ be,
3279
3366
  {
3280
3367
  className: `gloss-metric-card__zone-b gloss-exception-list ${o ? "gloss-metric-data-stale" : ""}`,
3281
3368
  style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
3282
- children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: d.map((c, f) => /* @__PURE__ */ r(
3369
+ children: /* @__PURE__ */ r("div", { className: "gloss-exception-list__rows", role: "list", children: u.map((d, h) => /* @__PURE__ */ r(
3283
3370
  X,
3284
3371
  {
3285
- lead: /* @__PURE__ */ r(ve, { severity: c.severity, "aria-label": Fa(c.severity) }),
3286
- name: c.name,
3287
- value: c.value,
3372
+ lead: /* @__PURE__ */ r(we, { severity: d.severity, "aria-label": Aa(d.severity) }),
3373
+ name: d.name,
3374
+ value: d.value,
3288
3375
  variant: "exception",
3289
- style: { "--i": f }
3376
+ style: { "--i": h }
3290
3377
  },
3291
- c.id
3378
+ d.id
3292
3379
  )) })
3293
3380
  }
3294
3381
  ),
3295
3382
  s && /* @__PURE__ */ r("div", { className: "gloss-exception-list__zone-c", children: s })
3296
3383
  ] });
3297
3384
  }
3298
- Aa.displayName = "ExceptionListCard";
3299
- const Oa = () => /* @__PURE__ */ D(
3385
+ La.displayName = "ExceptionListCard";
3386
+ const $a = () => /* @__PURE__ */ k(
3300
3387
  "div",
3301
3388
  {
3302
3389
  className: "exception-list-tile-preview",
@@ -3306,7 +3393,7 @@ const Oa = () => /* @__PURE__ */ D(
3306
3393
  /* @__PURE__ */ r(
3307
3394
  X,
3308
3395
  {
3309
- lead: /* @__PURE__ */ r(ve, { severity: "critical", "aria-label": "Critical severity" }),
3396
+ lead: /* @__PURE__ */ r(we, { severity: "critical", "aria-label": "Critical severity" }),
3310
3397
  name: "SKU A",
3311
3398
  value: "0 on hand"
3312
3399
  }
@@ -3314,7 +3401,7 @@ const Oa = () => /* @__PURE__ */ D(
3314
3401
  /* @__PURE__ */ r(
3315
3402
  X,
3316
3403
  {
3317
- lead: /* @__PURE__ */ r(ve, { severity: "warn", "aria-label": "Warning severity" }),
3404
+ lead: /* @__PURE__ */ r(we, { severity: "warn", "aria-label": "Warning severity" }),
3318
3405
  name: "SKU B",
3319
3406
  value: "3 units"
3320
3407
  }
@@ -3322,7 +3409,7 @@ const Oa = () => /* @__PURE__ */ D(
3322
3409
  /* @__PURE__ */ r(
3323
3410
  X,
3324
3411
  {
3325
- lead: /* @__PURE__ */ r(ve, { severity: "info", "aria-label": "Info severity" }),
3412
+ lead: /* @__PURE__ */ r(we, { severity: "info", "aria-label": "Info severity" }),
3326
3413
  name: "SKU C",
3327
3414
  value: "12 days"
3328
3415
  }
@@ -3330,29 +3417,29 @@ const Oa = () => /* @__PURE__ */ D(
3330
3417
  ]
3331
3418
  }
3332
3419
  );
3333
- Oa.displayName = "ExceptionListTilePreview";
3334
- const qe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Qe = ["$248K", "$612K", "$1.24M", "$980K", "$54K"], Xe = [
3420
+ $a.displayName = "ExceptionListTilePreview";
3421
+ const Xe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Je = ["$248K", "$612K", "$1.24M", "$980K", "$54K"], et = [
3335
3422
  "M0,7 L10,5 L20,6 L30,3 L40,2",
3336
3423
  "M0,6 L10,4 L20,5 L30,2 L40,1",
3337
3424
  "M0,8 L10,7 L20,5 L30,4 L40,2",
3338
3425
  "M0,5 L10,6 L20,3 L30,4 L40,1",
3339
3426
  "M0,7 L10,4 L20,5 L30,3 L40,2"
3340
- ], La = ({
3427
+ ], Ba = ({
3341
3428
  slotCount: e = 3,
3342
- labels: t = qe,
3343
- sampleValues: n = Qe
3429
+ labels: t = Xe,
3430
+ sampleValues: n = Je
3344
3431
  }) => {
3345
3432
  const a = Array.from({ length: e }, (i, s) => ({
3346
- label: t[s] ?? qe[s] ?? "",
3347
- value: n[s] ?? Qe[s] ?? "",
3348
- sparkPath: Xe[s % Xe.length]
3433
+ label: t[s] ?? Xe[s] ?? "",
3434
+ value: n[s] ?? Je[s] ?? "",
3435
+ sparkPath: et[s % et.length]
3349
3436
  }));
3350
3437
  return e === 1 ? /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--single", "aria-hidden": "true", children: /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview__single-value", children: a[0].value }) }) : /* @__PURE__ */ r(
3351
3438
  "div",
3352
3439
  {
3353
3440
  className: `gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--slots-${e}`,
3354
3441
  "aria-hidden": "true",
3355
- children: a.map((i, s) => /* @__PURE__ */ D("div", { className: "gloss-stacked-group-tile-preview__row", children: [
3442
+ children: a.map((i, s) => /* @__PURE__ */ k("div", { className: "gloss-stacked-group-tile-preview__row", children: [
3356
3443
  /* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-label", children: i.label }),
3357
3444
  /* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-value", children: i.value }),
3358
3445
  /* @__PURE__ */ r(
@@ -3371,8 +3458,8 @@ const qe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Qe = ["$248K", "$612K", "$1.24M"
3371
3458
  }
3372
3459
  );
3373
3460
  };
3374
- La.displayName = "StackedGroupTilePreview";
3375
- const Mr = {
3461
+ Ba.displayName = "StackedGroupTilePreview";
3462
+ const Ir = {
3376
3463
  /** GEV-01 — Eligibility tint. Contiguous-from-source paint; blocked by first occupied cell (Principle 4). */
3377
3464
  eligibilityTint: { applicableStates: ["arming", "active"] },
3378
3465
  /** GEV-01 — Commit tint. Fill+stroke emphasis on the commit-target cell footprint (G-02). */
@@ -3391,7 +3478,7 @@ const Mr = {
3391
3478
  hideOnActive: { applicableStates: ["active"] },
3392
3479
  /** GEV-01 — Refuse pulse. Discrete moment of crossing into rejection. Fires ONCE per transition (Principle 2). No strobing. */
3393
3480
  refusePulse: { applicableStates: ["active"] }
3394
- }, Je = {
3481
+ }, tt = {
3395
3482
  baseCellTint: "#F1F4F8",
3396
3483
  // Grey · Neutral −2
3397
3484
  eligibilityFill: "#6F87D2",
@@ -3414,8 +3501,8 @@ const Mr = {
3414
3501
  rejectionFill: "var(--gloss-g02-rejection-fill)",
3415
3502
  rejectionStroke: "var(--gloss-g02-rejection-stroke)",
3416
3503
  trackingOutline: "var(--gloss-g02-tracking-outline)"
3417
- }, Tr = "dashed", Ir = "solid", Pr = "sparse-dash", Fr = "2px no-fill", $a = 3;
3418
- function Er({
3504
+ }, Pr = "dashed", Er = "solid", Fr = "sparse-dash", Ar = "2px no-fill", Ka = 3;
3505
+ function Or({
3419
3506
  cell: e,
3420
3507
  variant: t,
3421
3508
  rampColor: n,
@@ -3424,10 +3511,10 @@ function Er({
3424
3511
  gap: s,
3425
3512
  className: o
3426
3513
  }) {
3427
- const d = (e.section * $a + e.col) * (a + s), c = e.row * (i + s), f = t === "eligibility" ? se.eligibilityFill : t === "commit" ? se.commitFill : t === "rejection" ? se.rejectionFill : (
3514
+ const u = (e.section * Ka + e.col) * (a + s), d = e.row * (i + s), h = t === "eligibility" ? se.eligibilityFill : t === "commit" ? se.commitFill : t === "rejection" ? se.rejectionFill : (
3428
3515
  /* ramp */
3429
3516
  n ?? se.eligibilityFill
3430
- ), h = t === "rejection", g = h ? se.rejectionStroke : "transparent", u = h ? "dashed" : "solid";
3517
+ ), m = t === "rejection", g = m ? se.rejectionStroke : "transparent", c = m ? "dashed" : "solid";
3431
3518
  return /* @__PURE__ */ r(
3432
3519
  "div",
3433
3520
  {
@@ -3440,25 +3527,25 @@ function Er({
3440
3527
  "data-variant": t,
3441
3528
  "aria-hidden": "true",
3442
3529
  style: {
3443
- transform: `translate(${d}px, ${c}px)`,
3530
+ transform: `translate(${u}px, ${d}px)`,
3444
3531
  width: a,
3445
3532
  height: i,
3446
3533
  // Use background-color longhand (NOT background shorthand) so jsdom + DOM
3447
3534
  // both preserve `var(...)` in inline cssText. The shorthand getter strips
3448
3535
  // unknown values and breaks both unit-test introspection and styling.
3449
- backgroundColor: f,
3536
+ backgroundColor: h,
3450
3537
  borderColor: g,
3451
- borderStyle: u
3538
+ borderStyle: c
3452
3539
  }
3453
3540
  }
3454
3541
  );
3455
3542
  }
3456
- const Ba = 3, Ka = [
3543
+ const za = 3, Wa = [
3457
3544
  { idx: 0, peakR: 22, peakOpacity: 0.45, strokeW: 1.5 },
3458
3545
  { idx: 1, peakR: 34, peakOpacity: 0.22, strokeW: 1 },
3459
3546
  { idx: 2, peakR: 46, peakOpacity: 0.1, strokeW: 0.8 }
3460
3547
  ];
3461
- function Ar({
3548
+ function Lr({
3462
3549
  cell: e,
3463
3550
  fireKey: t,
3464
3551
  colWidth: n,
@@ -3466,8 +3553,8 @@ function Ar({
3466
3553
  gap: i,
3467
3554
  className: s
3468
3555
  }) {
3469
- const l = (e.section * Ba + e.col) * (n + i) + n / 2, d = e.row * (a + i) + a / 2;
3470
- return tt() === "reduced" ? /* @__PURE__ */ r(
3556
+ const l = (e.section * za + e.col) * (n + i) + n / 2, u = e.row * (a + i) + a / 2;
3557
+ return nt() === "reduced" ? /* @__PURE__ */ r(
3471
3558
  "div",
3472
3559
  {
3473
3560
  className: ["gloss-refuse-pulse-flash", s].filter(Boolean).join(" "),
@@ -3477,7 +3564,7 @@ function Ar({
3477
3564
  style: {
3478
3565
  position: "absolute",
3479
3566
  left: l - 24,
3480
- top: d - 24,
3567
+ top: u - 24,
3481
3568
  width: 48,
3482
3569
  height: 48,
3483
3570
  borderRadius: "50%",
@@ -3495,7 +3582,7 @@ function Ar({
3495
3582
  "data-testid": "gloss-refuse-pulse",
3496
3583
  "data-fire-key": t,
3497
3584
  "data-cx": l,
3498
- "data-cy": d,
3585
+ "data-cy": u,
3499
3586
  "aria-hidden": "true",
3500
3587
  style: {
3501
3588
  position: "absolute",
@@ -3503,80 +3590,80 @@ function Ar({
3503
3590
  top: 0,
3504
3591
  pointerEvents: "none"
3505
3592
  },
3506
- children: Ka.map((f) => {
3507
- const h = f.peakR * 2;
3593
+ children: Wa.map((h) => {
3594
+ const m = h.peakR * 2;
3508
3595
  return /* @__PURE__ */ r(
3509
3596
  "div",
3510
3597
  {
3511
- className: `gloss-refuse-pulse__ring gloss-refuse-pulse__ring--${f.idx}`,
3512
- "data-ring-index": f.idx,
3513
- "data-peak-radius": f.peakR,
3514
- "data-peak-opacity": f.peakOpacity,
3598
+ className: `gloss-refuse-pulse__ring gloss-refuse-pulse__ring--${h.idx}`,
3599
+ "data-ring-index": h.idx,
3600
+ "data-peak-radius": h.peakR,
3601
+ "data-peak-opacity": h.peakOpacity,
3515
3602
  style: {
3516
3603
  position: "absolute",
3517
- left: l - f.peakR,
3518
- top: d - f.peakR,
3519
- width: h,
3520
- height: h,
3604
+ left: l - h.peakR,
3605
+ top: u - h.peakR,
3606
+ width: m,
3607
+ height: m,
3521
3608
  borderRadius: "50%",
3522
3609
  borderStyle: "solid",
3523
- borderWidth: f.strokeW,
3610
+ borderWidth: h.strokeW,
3524
3611
  borderColor: se.rejectionStroke,
3525
3612
  background: "transparent",
3526
3613
  opacity: 0,
3527
3614
  transform: "scale(0)",
3528
3615
  // CSS custom property feeds the keyframe peak opacity.
3529
- "--peak-opacity": f.peakOpacity,
3530
- animation: `gloss-refuse-pulse-ring-${f.idx} 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards`
3616
+ "--peak-opacity": h.peakOpacity,
3617
+ animation: `gloss-refuse-pulse-ring-${h.idx} 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards`
3531
3618
  }
3532
3619
  },
3533
- f.idx
3620
+ h.idx
3534
3621
  );
3535
3622
  })
3536
3623
  },
3537
3624
  t
3538
3625
  );
3539
3626
  }
3540
- function Or(e) {
3541
- return /* @__PURE__ */ r(lt, { gesture: "resize", ...e });
3627
+ function $r(e) {
3628
+ return /* @__PURE__ */ r(dt, { gesture: "resize", ...e });
3542
3629
  }
3543
- const za = Object.freeze({
3630
+ const ja = Object.freeze({
3544
3631
  trackingOutline: null,
3545
3632
  cellTints: [],
3546
3633
  refusePulse: null,
3547
3634
  shrinkFreedCells: []
3548
3635
  });
3549
- function Wa(e, t, n) {
3550
- const a = Math.max(0, Math.min(1, n)), i = (h) => [
3551
- parseInt(h.slice(1, 3), 16),
3552
- parseInt(h.slice(3, 5), 16),
3553
- parseInt(h.slice(5, 7), 16)
3554
- ], [s, o, l] = i(e), [d, c, f] = i(t);
3555
- return `rgb(${Math.round(s + (d - s) * a)}, ${Math.round(o + (c - o) * a)}, ${Math.round(
3556
- l + (f - l) * a
3636
+ function Ga(e, t, n) {
3637
+ const a = Math.max(0, Math.min(1, n)), i = (m) => [
3638
+ parseInt(m.slice(1, 3), 16),
3639
+ parseInt(m.slice(3, 5), 16),
3640
+ parseInt(m.slice(5, 7), 16)
3641
+ ], [s, o, l] = i(e), [u, d, h] = i(t);
3642
+ return `rgb(${Math.round(s + (u - s) * a)}, ${Math.round(o + (d - o) * a)}, ${Math.round(
3643
+ l + (h - l) * a
3557
3644
  )})`;
3558
3645
  }
3559
- function ja(e) {
3646
+ function Va(e) {
3560
3647
  return e <= 1 ? 1 : e >= 3 ? 3 : 2;
3561
3648
  }
3562
- function Ga(e) {
3649
+ function Ha(e) {
3563
3650
  return e !== "idle" && e !== "settling" && e !== "cancelled";
3564
3651
  }
3565
- function Lr(e) {
3566
- const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, d = tt() === "reduced", c = ke.useRef(t.currentColSpan), f = ke.useRef({ armed: !0, fireKey: 0, lastResult: null });
3567
- if (!Ga(t.state))
3568
- return f.current.armed = !0, f.current.lastResult = null, za;
3569
- const h = t.hysteresisTargetColSpan, g = t.previewColSpan, u = a?.result === "rejected";
3570
- u || (c.current = h), u && f.current.armed && f.current.lastResult !== "rejected" && (f.current.fireKey += 1, f.current.armed = !1), f.current.lastResult = u ? "rejected" : "ok";
3571
- const N = u ? c.current : h, b = {
3652
+ function Br(e) {
3653
+ const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, u = nt() === "reduced", d = ce.useRef(t.currentColSpan), h = ce.useRef({ armed: !0, fireKey: 0, lastResult: null });
3654
+ if (!Ha(t.state))
3655
+ return h.current.armed = !0, h.current.lastResult = null, ja;
3656
+ const m = t.hysteresisTargetColSpan, g = t.previewColSpan, c = a?.result === "rejected";
3657
+ c || (d.current = m), c && h.current.armed && h.current.lastResult !== "rejected" && (h.current.fireKey += 1, h.current.armed = !1), h.current.lastResult = c ? "rejected" : "ok";
3658
+ const _ = c ? d.current : m, b = {
3572
3659
  cell: { section: 0, col: 0, row: 0 },
3573
- colSpan: N,
3574
- pattern: u ? "dashed-retreated" : "solid"
3575
- }, p = [];
3576
- if (u) {
3577
- const _ = n.col + c.current, T = n.col + h - 1;
3578
- for (let x = _; x <= T && x <= 2; x++)
3579
- p.push({
3660
+ colSpan: _,
3661
+ pattern: c ? "dashed-retreated" : "solid"
3662
+ }, f = [];
3663
+ if (c) {
3664
+ const y = n.col + d.current, M = n.col + m - 1;
3665
+ for (let x = y; x <= M && x <= 2; x++)
3666
+ f.push({
3580
3667
  cell: {
3581
3668
  section: 0,
3582
3669
  col: x - n.col,
@@ -3585,44 +3672,44 @@ function Lr(e) {
3585
3672
  variant: "rejection"
3586
3673
  });
3587
3674
  } else {
3588
- const _ = Math.abs(g - h), T = Math.max(0, Math.min(1, 1 - _));
3589
- for (let x = n.col; x < n.col + h && x <= 2; x++) {
3675
+ const y = Math.abs(g - m), M = Math.max(0, Math.min(1, 1 - y));
3676
+ for (let x = n.col; x < n.col + m && x <= 2; x++) {
3590
3677
  if (x === n.col) continue;
3591
- const m = x === n.col + h - 1, v = {
3678
+ const p = x === n.col + m - 1, v = {
3592
3679
  section: 0,
3593
3680
  col: x - n.col,
3594
3681
  row: 0
3595
3682
  };
3596
- m && t.direction.startsWith("grow") && h > 1 && !d && _ > 0 && _ < 1 ? p.push({
3683
+ p && t.direction.startsWith("grow") && m > 1 && !u && y > 0 && y < 1 ? f.push({
3597
3684
  cell: v,
3598
3685
  variant: "ramp",
3599
- rampColor: Wa(Je.eligibilityFill, Je.commitFill, T)
3600
- }) : m ? p.push({ cell: v, variant: "commit" }) : p.push({ cell: v, variant: "eligibility" });
3686
+ rampColor: Ga(tt.eligibilityFill, tt.commitFill, M)
3687
+ }) : p ? f.push({ cell: v, variant: "commit" }) : f.push({ cell: v, variant: "eligibility" });
3601
3688
  }
3602
3689
  }
3603
- const M = [];
3604
- if (t.currentColSpan > h)
3605
- for (let _ = n.col + h; _ < n.col + t.currentColSpan && _ <= 2; _++)
3606
- M.push({
3690
+ const R = [];
3691
+ if (t.currentColSpan > m)
3692
+ for (let y = n.col + m; y < n.col + t.currentColSpan && y <= 2; y++)
3693
+ R.push({
3607
3694
  section: 0,
3608
- col: _ - n.col,
3695
+ col: y - n.col,
3609
3696
  row: 0
3610
3697
  });
3611
- const P = f.current.fireKey > 0 ? {
3698
+ const I = h.current.fireKey > 0 ? {
3612
3699
  cell: {
3613
3700
  section: 0,
3614
- col: ja(
3615
- Math.min(c.current, 2)
3701
+ col: Va(
3702
+ Math.min(d.current, 2)
3616
3703
  ),
3617
3704
  row: 0
3618
3705
  },
3619
- fireKey: f.current.fireKey
3706
+ fireKey: h.current.fireKey
3620
3707
  } : null;
3621
3708
  return {
3622
3709
  trackingOutline: b,
3623
- cellTints: p,
3624
- refusePulse: P,
3625
- shrinkFreedCells: M
3710
+ cellTints: f,
3711
+ refusePulse: I,
3712
+ shrinkFreedCells: R
3626
3713
  };
3627
3714
  }
3628
3715
  const ne = {
@@ -3633,7 +3720,7 @@ const ne = {
3633
3720
  "gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
3634
3721
  "gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
3635
3722
  };
3636
- function Va({
3723
+ function Ua({
3637
3724
  message: e,
3638
3725
  primaryAction: t,
3639
3726
  onDismiss: n,
@@ -3649,27 +3736,27 @@ function Va({
3649
3736
  "[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
3650
3737
  );
3651
3738
  }, [a, i]), V.useLayoutEffect(() => {
3652
- let c = null;
3653
- if (a ? c = a : i && (c = document.querySelector(i)), c) {
3654
- const f = c.getBoundingClientRect();
3739
+ let d = null;
3740
+ if (a ? d = a : i && (d = document.querySelector(i)), d) {
3741
+ const h = d.getBoundingClientRect();
3655
3742
  o({
3656
- top: f.bottom + window.scrollY + 6,
3657
- left: f.left + window.scrollX
3743
+ top: h.bottom + window.scrollY + 6,
3744
+ left: h.left + window.scrollX
3658
3745
  });
3659
3746
  }
3660
3747
  }, [a, i]);
3661
- const d = s ? { top: s.top, left: s.left } : {};
3662
- return /* @__PURE__ */ D(
3748
+ const u = s ? { top: s.top, left: s.left } : {};
3749
+ return /* @__PURE__ */ k(
3663
3750
  "div",
3664
3751
  {
3665
3752
  className: ne["gloss-inline-nudge"],
3666
- style: d,
3753
+ style: u,
3667
3754
  role: "status",
3668
3755
  "aria-live": "polite",
3669
3756
  "data-reduced-motion": l ? "true" : void 0,
3670
3757
  children: [
3671
3758
  /* @__PURE__ */ r("span", { className: ne["gloss-inline-nudge__message"], children: e }),
3672
- /* @__PURE__ */ D("div", { className: ne["gloss-inline-nudge__actions"], children: [
3759
+ /* @__PURE__ */ k("div", { className: ne["gloss-inline-nudge__actions"], children: [
3673
3760
  /* @__PURE__ */ r(
3674
3761
  "button",
3675
3762
  {
@@ -3694,25 +3781,25 @@ function Va({
3694
3781
  }
3695
3782
  );
3696
3783
  }
3697
- Va.displayName = "InlineNudge";
3698
- function Le(e) {
3784
+ Ua.displayName = "InlineNudge";
3785
+ function Be(e) {
3699
3786
  return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
3700
3787
  }
3701
- function Ha(e, t, n) {
3788
+ function Za(e, t, n) {
3702
3789
  if (n <= t) {
3703
- const o = e[0], l = o ? Le(o) : "#888";
3790
+ const o = e[0], l = o ? Be(o) : "#888";
3704
3791
  return `linear-gradient(to right, ${l}, ${l})`;
3705
3792
  }
3706
3793
  const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
3707
3794
  const l = (o.value - t) / a * 100;
3708
- return `${Le(o)} ${l.toFixed(2)}%`;
3795
+ return `${Be(o)} ${l.toFixed(2)}%`;
3709
3796
  });
3710
3797
  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(", ")})`;
3711
3798
  }
3712
- function Ua(e) {
3799
+ function Ya(e) {
3713
3800
  return e.map((t) => `${t.id}:${t.value}`).join("|");
3714
3801
  }
3715
- function Za({
3802
+ function qa({
3716
3803
  stops: e,
3717
3804
  onChange: t,
3718
3805
  min: n = 0,
@@ -3722,18 +3809,18 @@ function Za({
3722
3809
  }) {
3723
3810
  const o = i === void 0 ? 0.01 : !Number.isFinite(i) || i <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
3724
3811
  `ThresholdRamp: step (${i}) must be a positive finite number; falling back to 0.01.`
3725
- ), 0.01) : i, l = w(
3726
- (m) => Math.round(m / o) * o,
3812
+ ), 0.01) : i, l = N(
3813
+ (p) => Math.round(p / o) * o,
3727
3814
  [o]
3728
- ), d = I(null), [c, f] = $(null), [h, g] = $(e), u = Ua(e), N = I(u);
3815
+ ), u = P(null), [d, h] = $(null), [m, g] = $(e), c = Ya(e), _ = P(c);
3729
3816
  O(() => {
3730
- N.current !== u && (N.current = u, !c && g(e));
3731
- }, [u, e, c]);
3732
- const b = we(() => Ha(h, n, a), [h, n, a]), p = w(
3733
- (m) => {
3734
- if (!d.current) return n;
3735
- const v = d.current.getBoundingClientRect(), k = v.width || 1, R = Math.max(0, Math.min(1, (m - v.left) / k)), y = n + R * (a - n);
3736
- return l(y);
3817
+ _.current !== c && (_.current = c, !d && g(e));
3818
+ }, [c, e, d]);
3819
+ const b = Ne(() => Za(m, n, a), [m, n, a]), f = N(
3820
+ (p) => {
3821
+ if (!u.current) return n;
3822
+ const v = u.current.getBoundingClientRect(), D = v.width || 1, T = Math.max(0, Math.min(1, (p - v.left) / D)), w = n + T * (a - n);
3823
+ return l(w);
3737
3824
  },
3738
3825
  [n, a, l]
3739
3826
  );
@@ -3742,119 +3829,119 @@ function Za({
3742
3829
  `ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
3743
3830
  );
3744
3831
  }, [n, a]);
3745
- const M = w(
3746
- (m, v) => {
3747
- const k = h.find((R) => R.id === v);
3748
- s || k?.disabled || (m.preventDefault(), f(v));
3832
+ const R = N(
3833
+ (p, v) => {
3834
+ const D = m.find((T) => T.id === v);
3835
+ s || D?.disabled || (p.preventDefault(), h(v));
3749
3836
  },
3750
- [s, h]
3751
- ), P = I(h);
3752
- P.current = h;
3753
- const _ = I(t);
3754
- _.current = t, O(() => {
3755
- if (!c) return;
3756
- const m = (k) => {
3757
- const R = p(k.clientX);
3837
+ [s, m]
3838
+ ), I = P(m);
3839
+ I.current = m;
3840
+ const y = P(t);
3841
+ y.current = t, O(() => {
3842
+ if (!d) return;
3843
+ const p = (D) => {
3844
+ const T = f(D.clientX);
3758
3845
  g(
3759
- (y) => y.map((S) => S.id === c ? { ...S, value: R } : S)
3846
+ (w) => w.map((S) => S.id === d ? { ...S, value: T } : S)
3760
3847
  );
3761
- }, v = (k) => {
3762
- const R = p(k.clientX), y = P.current.map(
3763
- (S) => S.id === c ? { ...S, value: R } : S
3848
+ }, v = (D) => {
3849
+ const T = f(D.clientX), w = I.current.map(
3850
+ (S) => S.id === d ? { ...S, value: T } : S
3764
3851
  );
3765
- g(y), f(null), _.current(y);
3852
+ g(w), h(null), y.current(w);
3766
3853
  };
3767
- return window.addEventListener("pointermove", m), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
3768
- window.removeEventListener("pointermove", m), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
3854
+ return window.addEventListener("pointermove", p), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
3855
+ window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
3769
3856
  };
3770
- }, [c, p]);
3771
- const T = a - n > 0 ? a - n : 1, x = w(
3772
- (m, v) => {
3857
+ }, [d, f]);
3858
+ const M = a - n > 0 ? a - n : 1, x = N(
3859
+ (p, v) => {
3773
3860
  if (s || v.disabled) return;
3774
- const k = a - n;
3775
- if (k <= 0) return;
3776
- const R = m.shiftKey ? k / 20 : k / 100;
3777
- let y = v.value;
3778
- switch (m.key) {
3861
+ const D = a - n;
3862
+ if (D <= 0) return;
3863
+ const T = p.shiftKey ? D / 20 : D / 100;
3864
+ let w = v.value;
3865
+ switch (p.key) {
3779
3866
  case "ArrowRight":
3780
3867
  case "ArrowUp":
3781
- y = v.value + R;
3868
+ w = v.value + T;
3782
3869
  break;
3783
3870
  case "ArrowLeft":
3784
3871
  case "ArrowDown":
3785
- y = v.value - R;
3872
+ w = v.value - T;
3786
3873
  break;
3787
3874
  case "Home":
3788
- y = n;
3875
+ w = n;
3789
3876
  break;
3790
3877
  case "End":
3791
- y = a;
3878
+ w = a;
3792
3879
  break;
3793
3880
  default:
3794
3881
  return;
3795
3882
  }
3796
- m.preventDefault();
3797
- const S = Math.max(n, Math.min(a, y)), F = l(S);
3798
- if (F === v.value) return;
3799
- const H = h.map(
3800
- (Y) => Y.id === v.id ? { ...Y, value: F } : Y
3883
+ p.preventDefault();
3884
+ const S = Math.max(n, Math.min(a, w)), E = l(S);
3885
+ if (E === v.value) return;
3886
+ const H = m.map(
3887
+ (Y) => Y.id === v.id ? { ...Y, value: E } : Y
3801
3888
  );
3802
3889
  g(H), t(H);
3803
3890
  },
3804
- [s, n, a, h, t, l]
3891
+ [s, n, a, m, t, l]
3805
3892
  );
3806
3893
  return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
3807
3894
  "div",
3808
3895
  {
3809
- ref: d,
3896
+ ref: u,
3810
3897
  className: "gloss-threshold-ramp__track",
3811
3898
  style: { background: b },
3812
- children: h.map((m) => {
3813
- const v = (m.value - n) / T * 100;
3899
+ children: m.map((p) => {
3900
+ const v = (p.value - n) / M * 100;
3814
3901
  return /* @__PURE__ */ r(
3815
3902
  "span",
3816
3903
  {
3817
3904
  className: "gloss-threshold-ramp__stop",
3818
3905
  style: {
3819
3906
  left: `${v}%`,
3820
- color: Le(m)
3907
+ color: Be(p)
3821
3908
  },
3822
- "data-disabled": m.disabled || void 0,
3823
- "data-dragging": c === m.id || void 0,
3824
- onPointerDown: (k) => M(k, m.id),
3825
- onKeyDown: (k) => x(k, m),
3826
- "aria-label": m.label ?? `Stop at ${m.value}`,
3909
+ "data-disabled": p.disabled || void 0,
3910
+ "data-dragging": d === p.id || void 0,
3911
+ onPointerDown: (D) => R(D, p.id),
3912
+ onKeyDown: (D) => x(D, p),
3913
+ "aria-label": p.label ?? `Stop at ${p.value}`,
3827
3914
  role: "slider",
3828
- "aria-valuenow": m.value,
3915
+ "aria-valuenow": p.value,
3829
3916
  "aria-valuemin": n,
3830
3917
  "aria-valuemax": a,
3831
- "aria-disabled": m.disabled || s || void 0,
3832
- tabIndex: m.disabled || s ? -1 : 0
3918
+ "aria-disabled": p.disabled || s || void 0,
3919
+ tabIndex: p.disabled || s ? -1 : 0
3833
3920
  },
3834
- m.id
3921
+ p.id
3835
3922
  );
3836
3923
  })
3837
3924
  }
3838
3925
  ) });
3839
3926
  }
3840
- Za.displayName = "ThresholdRamp";
3841
- const dt = Dt(null);
3842
- function Ya() {
3843
- return kt(dt);
3927
+ qa.displayName = "ThresholdRamp";
3928
+ const mt = Ct(null);
3929
+ function Qa() {
3930
+ return xt(mt);
3844
3931
  }
3845
- function qa({ option: e }) {
3846
- const t = Ya(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = w(() => {
3932
+ function Xa({ option: e }) {
3933
+ const t = Qa(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = N(() => {
3847
3934
  a || t?.select(e.value);
3848
- }, [a, t, e.value]), s = w(
3849
- (c) => {
3850
- a || t?.onKeyNav(c, e.value);
3935
+ }, [a, t, e.value]), s = N(
3936
+ (d) => {
3937
+ a || t?.onKeyNav(d, e.value);
3851
3938
  },
3852
3939
  [a, t, e.value]
3853
- ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, d = a ? -1 : l ? 0 : -1;
3940
+ ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, u = a ? -1 : l ? 0 : -1;
3854
3941
  return /* @__PURE__ */ r(
3855
3942
  "button",
3856
3943
  {
3857
- ref: (c) => t?.registerRef(e.value, c),
3944
+ ref: (d) => t?.registerRef(e.value, d),
3858
3945
  type: "button",
3859
3946
  role: "radio",
3860
3947
  "aria-checked": n,
@@ -3866,13 +3953,13 @@ function qa({ option: e }) {
3866
3953
  "aria-label": e.label ?? e.value,
3867
3954
  "aria-disabled": a,
3868
3955
  disabled: a,
3869
- tabIndex: d,
3956
+ tabIndex: u,
3870
3957
  onClick: i,
3871
3958
  onKeyDown: s
3872
3959
  }
3873
3960
  );
3874
3961
  }
3875
- function Qa({
3962
+ function Ja({
3876
3963
  swatches: e,
3877
3964
  value: t,
3878
3965
  defaultValue: n,
@@ -3880,35 +3967,35 @@ function Qa({
3880
3967
  disabled: i = !1,
3881
3968
  name: s
3882
3969
  }) {
3883
- const o = t !== void 0, [l, d] = $(n), c = o ? t : l, f = w(
3884
- (_) => {
3885
- o || d(_), a?.(_);
3970
+ const o = t !== void 0, [l, u] = $(n), d = o ? t : l, h = N(
3971
+ (y) => {
3972
+ o || u(y), a?.(y);
3886
3973
  },
3887
3974
  [o, a]
3888
- ), h = w(
3889
- (_) => c === _,
3890
- [c]
3891
- ), g = I(/* @__PURE__ */ new Map()), u = w((_, T) => {
3892
- T ? g.current.set(_, T) : g.current.delete(_);
3893
- }, []), N = e.filter((_) => !_.disabled && !i), b = N.find((_) => _.value === c)?.value ?? N[0]?.value, p = w((_) => {
3894
- const T = g.current.get(_);
3895
- T && T.focus();
3896
- }, []), M = w(
3897
- (_, T) => {
3975
+ ), m = N(
3976
+ (y) => d === y,
3977
+ [d]
3978
+ ), g = P(/* @__PURE__ */ new Map()), c = N((y, M) => {
3979
+ M ? g.current.set(y, M) : g.current.delete(y);
3980
+ }, []), _ = e.filter((y) => !y.disabled && !i), b = _.find((y) => y.value === d)?.value ?? _[0]?.value, f = N((y) => {
3981
+ const M = g.current.get(y);
3982
+ M && M.focus();
3983
+ }, []), R = N(
3984
+ (y, M) => {
3898
3985
  if (i) return;
3899
- const x = e.filter((R) => !R.disabled);
3986
+ const x = e.filter((T) => !T.disabled);
3900
3987
  if (x.length === 0) return;
3901
- const m = x.findIndex((R) => R.value === T);
3902
- if (m === -1) return;
3903
- let v = m;
3904
- switch (_.key) {
3988
+ const p = x.findIndex((T) => T.value === M);
3989
+ if (p === -1) return;
3990
+ let v = p;
3991
+ switch (y.key) {
3905
3992
  case "ArrowRight":
3906
3993
  case "ArrowDown":
3907
- v = (m + 1) % x.length;
3994
+ v = (p + 1) % x.length;
3908
3995
  break;
3909
3996
  case "ArrowLeft":
3910
3997
  case "ArrowUp":
3911
- v = (m - 1 + x.length) % x.length;
3998
+ v = (p - 1 + x.length) % x.length;
3912
3999
  break;
3913
4000
  case "Home":
3914
4001
  v = 0;
@@ -3918,27 +4005,27 @@ function Qa({
3918
4005
  break;
3919
4006
  case " ":
3920
4007
  case "Enter":
3921
- _.preventDefault(), f(T);
4008
+ y.preventDefault(), h(M);
3922
4009
  return;
3923
4010
  default:
3924
4011
  return;
3925
4012
  }
3926
- _.preventDefault();
3927
- const k = x[v].value;
3928
- p(k), f(k);
4013
+ y.preventDefault();
4014
+ const D = x[v].value;
4015
+ f(D), h(D);
3929
4016
  },
3930
- [i, e, f, p]
3931
- ), P = {
3932
- selectedValue: c,
3933
- select: f,
3934
- isSelected: h,
4017
+ [i, e, h, f]
4018
+ ), I = {
4019
+ selectedValue: d,
4020
+ select: h,
4021
+ isSelected: m,
3935
4022
  groupDisabled: i,
3936
4023
  name: s,
3937
- registerRef: u,
4024
+ registerRef: c,
3938
4025
  firstFocusableValue: b,
3939
- onKeyNav: M
4026
+ onKeyNav: R
3940
4027
  };
3941
- return /* @__PURE__ */ r(dt.Provider, { value: P, children: /* @__PURE__ */ r(
4028
+ return /* @__PURE__ */ r(mt.Provider, { value: I, children: /* @__PURE__ */ r(
3942
4029
  "div",
3943
4030
  {
3944
4031
  className: "gloss-preset-swatch-row",
@@ -3946,126 +4033,126 @@ function Qa({
3946
4033
  "aria-label": s,
3947
4034
  "aria-disabled": i,
3948
4035
  "data-disabled": i || void 0,
3949
- children: e.map((_) => /* @__PURE__ */ r(qa, { option: _ }, _.value))
4036
+ children: e.map((y) => /* @__PURE__ */ r(Xa, { option: y }, y.value))
3950
4037
  }
3951
4038
  ) });
3952
4039
  }
3953
- Qa.displayName = "PresetSwatchRow";
3954
- function $e(e, t) {
4040
+ Ja.displayName = "PresetSwatchRow";
4041
+ function Ke(e, t) {
3955
4042
  for (const n of e)
3956
4043
  if (n.items.some((a) => a.id === t))
3957
4044
  return n.zoneKey;
3958
4045
  return null;
3959
4046
  }
3960
- function et(e, t) {
4047
+ function at(e, t) {
3961
4048
  const n = e.find((a) => a.zoneKey === t);
3962
- return n ? n.zoneKey : $e(e, t);
4049
+ return n ? n.zoneKey : Ke(e, t);
3963
4050
  }
3964
- function Xa(e, t, n) {
4051
+ function en(e, t, n) {
3965
4052
  const a = [...e], [i] = a.splice(t, 1);
3966
4053
  return a.splice(n, 0, i), a;
3967
4054
  }
3968
- function Ja(e) {
4055
+ function tn(e) {
3969
4056
  return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
3970
4057
  }
3971
- function en(e) {
4058
+ function an(e) {
3972
4059
  const [t, n] = $(
3973
- () => e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
3974
- `useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
3975
- ), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
3976
- ), [a, i] = $(null), [s, o] = $(null), l = I(null), d = I(e.onZoneChange);
3977
- d.current = e.onZoneChange;
3978
- const c = we(
3979
- () => Ja(e.zones),
4060
+ () => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
4061
+ `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
4062
+ ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
4063
+ ), [a, i] = $(null), [s, o] = $(null), l = P(null), u = P(e.onZoneChange);
4064
+ u.current = e.onZoneChange;
4065
+ const d = Ne(
4066
+ () => tn(e.zones),
3980
4067
  [e.zones]
3981
- ), f = I(c);
4068
+ ), h = P(d);
3982
4069
  O(() => {
3983
- f.current !== c && (f.current = c, !a && n(
3984
- e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
3985
- `useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
3986
- ), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
4070
+ h.current !== d && (h.current = d, !a && n(
4071
+ e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
4072
+ `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
4073
+ ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
3987
4074
  ));
3988
- }, [c, e.zones, a]);
3989
- const h = w(
3990
- (p) => {
3991
- const M = p.active.id;
3992
- let P = null, _ = null;
3993
- for (const T of t) {
3994
- const x = T.items.find((m) => m.id === M);
4075
+ }, [d, e.zones, a]);
4076
+ const m = N(
4077
+ (f) => {
4078
+ const R = f.active.id;
4079
+ let I = null, y = null;
4080
+ for (const M of t) {
4081
+ const x = M.items.find((p) => p.id === R);
3995
4082
  if (x) {
3996
- P = x, _ = T.zoneKey;
4083
+ I = x, y = M.zoneKey;
3997
4084
  break;
3998
4085
  }
3999
4086
  }
4000
- l.current = _, i(P), o(_);
4087
+ l.current = y, i(I), o(y);
4001
4088
  },
4002
4089
  [t]
4003
- ), g = w(
4004
- (p) => {
4005
- if (!p.over) {
4090
+ ), g = N(
4091
+ (f) => {
4092
+ if (!f.over) {
4006
4093
  o(l.current);
4007
4094
  return;
4008
4095
  }
4009
- const M = et(t, p.over.id);
4010
- o(M);
4096
+ const R = at(t, f.over.id);
4097
+ o(R);
4011
4098
  },
4012
4099
  [t]
4013
- ), u = w(
4014
- (p) => {
4015
- const { active: M, over: P } = p, _ = () => {
4100
+ ), c = N(
4101
+ (f) => {
4102
+ const { active: R, over: I } = f, y = () => {
4016
4103
  l.current = null, i(null), o(null);
4017
4104
  };
4018
- if (!P) {
4019
- _();
4105
+ if (!I) {
4106
+ y();
4020
4107
  return;
4021
4108
  }
4022
- const T = $e(t, M.id), x = et(t, P.id);
4023
- if (!T || !x) {
4024
- _();
4109
+ const M = Ke(t, R.id), x = at(t, I.id);
4110
+ if (!M || !x) {
4111
+ y();
4025
4112
  return;
4026
4113
  }
4027
- let m = t.map((v) => ({ ...v, items: [...v.items] }));
4028
- if (T === x) {
4029
- const v = m.findIndex((F) => F.zoneKey === T), k = m[v], R = k.items.findIndex((F) => F.id === M.id), y = k.items.findIndex((F) => F.id === P.id), S = y >= 0 ? y : Math.max(0, k.items.length - 1);
4030
- m[v] = {
4031
- ...k,
4032
- items: Xa(k.items, R, S)
4114
+ let p = t.map((v) => ({ ...v, items: [...v.items] }));
4115
+ if (M === x) {
4116
+ const v = p.findIndex((E) => E.zoneKey === M), D = p[v], T = D.items.findIndex((E) => E.id === R.id), w = D.items.findIndex((E) => E.id === I.id), S = w >= 0 ? w : Math.max(0, D.items.length - 1);
4117
+ p[v] = {
4118
+ ...D,
4119
+ items: en(D.items, T, S)
4033
4120
  };
4034
4121
  } else {
4035
- const v = m.findIndex((L) => L.zoneKey === T), k = m.findIndex((L) => L.zoneKey === x), R = m[v], y = m[k], S = R.items.find((L) => L.id === M.id);
4122
+ const v = p.findIndex((L) => L.zoneKey === M), D = p.findIndex((L) => L.zoneKey === x), T = p[v], w = p[D], S = T.items.find((L) => L.id === R.id);
4036
4123
  if (!S) {
4037
- _();
4124
+ y();
4038
4125
  return;
4039
4126
  }
4040
- const F = R.items.filter((L) => L.id !== M.id), H = y.items.findIndex((L) => L.id === P.id), Y = H >= 0 ? H : y.items.length;
4041
- let U = F, j = [...y.items];
4042
- if (y.maxItems !== void 0 && j.length >= y.maxItems) {
4127
+ const E = T.items.filter((L) => L.id !== R.id), H = w.items.findIndex((L) => L.id === I.id), Y = H >= 0 ? H : w.items.length;
4128
+ let U = E, j = [...w.items];
4129
+ if (w.maxItems !== void 0 && j.length >= w.maxItems) {
4043
4130
  const L = j[j.length - 1];
4044
- j = j.slice(0, y.maxItems - 1), U = [...F, L];
4131
+ j = j.slice(0, w.maxItems - 1), U = [...E, L];
4045
4132
  }
4046
4133
  const B = Math.min(Y, j.length), Z = [
4047
4134
  ...j.slice(0, B),
4048
4135
  S,
4049
4136
  ...j.slice(B)
4050
4137
  ];
4051
- m[v] = { ...R, items: U }, m[k] = { ...y, items: Z };
4138
+ p[v] = { ...T, items: U }, p[D] = { ...w, items: Z };
4052
4139
  }
4053
- n(m), d.current?.(m), _();
4140
+ n(p), u.current?.(p), y();
4054
4141
  },
4055
4142
  [t]
4056
- ), N = w(
4057
- (p) => ({
4058
- id: p,
4059
- "data-zone-key": p
4143
+ ), _ = N(
4144
+ (f) => ({
4145
+ id: f,
4146
+ "data-zone-key": f
4060
4147
  }),
4061
4148
  []
4062
- ), b = w(
4063
- (p) => {
4064
- const M = $e(t, p.id) ?? "";
4149
+ ), b = N(
4150
+ (f) => {
4151
+ const R = Ke(t, f.id) ?? "";
4065
4152
  return {
4066
- id: p.id,
4067
- "data-item-id": p.id,
4068
- "data-zone-key": M
4153
+ id: f.id,
4154
+ "data-item-id": f.id,
4155
+ "data-zone-key": R
4069
4156
  };
4070
4157
  },
4071
4158
  [t]
@@ -4074,15 +4161,15 @@ function en(e) {
4074
4161
  zones: t,
4075
4162
  activeZone: s,
4076
4163
  activeItem: a,
4077
- getZoneProps: N,
4164
+ getZoneProps: _,
4078
4165
  getItemProps: b,
4079
- handleDragStart: h,
4166
+ handleDragStart: m,
4080
4167
  handleDragOver: g,
4081
- handleDragEnd: u
4168
+ handleDragEnd: c
4082
4169
  };
4083
4170
  }
4084
- let pe = null, De = null, Ie = !1;
4085
- const tn = [
4171
+ let he = null, Ce = null, Pe = !1;
4172
+ const nn = [
4086
4173
  "DndContext",
4087
4174
  "DragOverlay",
4088
4175
  "useSensors",
@@ -4091,22 +4178,22 @@ const tn = [
4091
4178
  "PointerSensor",
4092
4179
  "KeyboardSensor",
4093
4180
  "closestCenter"
4094
- ], an = [
4181
+ ], rn = [
4095
4182
  "SortableContext",
4096
4183
  "useSortable",
4097
4184
  "verticalListSortingStrategy"
4098
4185
  ];
4099
- function nn(e, t) {
4186
+ function sn(e, t) {
4100
4187
  const n = [], a = e ?? {};
4101
- for (const s of tn)
4188
+ for (const s of nn)
4102
4189
  a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
4103
4190
  const i = t ?? {};
4104
- for (const s of an)
4191
+ for (const s of rn)
4105
4192
  i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
4106
4193
  return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
4107
4194
  }
4108
- function rn() {
4109
- return pe ? Promise.resolve(pe) : Ie ? Promise.resolve(null) : De || (De = (async () => {
4195
+ function on() {
4196
+ return he ? Promise.resolve(he) : Pe ? Promise.resolve(null) : Ce || (Ce = (async () => {
4110
4197
  try {
4111
4198
  const [e, t, n] = await Promise.all([
4112
4199
  import("@dnd-kit/core"),
@@ -4114,31 +4201,31 @@ function rn() {
4114
4201
  import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
4115
4202
  "SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
4116
4203
  ), {}))
4117
- ]), a = nn(e, t);
4118
- return a.ok ? (pe = {
4204
+ ]), a = sn(e, t);
4205
+ return a.ok ? (he = {
4119
4206
  core: e,
4120
4207
  sortable: t,
4121
4208
  utilities: n
4122
- }, pe) : (Ie = !0, process.env.NODE_ENV !== "production" && console.error(
4209
+ }, he) : (Pe = !0, process.env.NODE_ENV !== "production" && console.error(
4123
4210
  `SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
4124
4211
  ), null);
4125
4212
  } catch {
4126
- return Ie = !0, null;
4213
+ return Pe = !0, null;
4127
4214
  }
4128
- })(), De);
4215
+ })(), Ce);
4129
4216
  }
4130
- function sn(e) {
4131
- const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = en({ zones: t, onZoneChange: n }), [l, d] = V.useState(pe);
4217
+ function ln(e) {
4218
+ const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = an({ zones: t, onZoneChange: n }), [l, u] = V.useState(he);
4132
4219
  return V.useEffect(() => {
4133
4220
  if (l) return;
4134
- let c = !0;
4135
- return rn().then((f) => {
4136
- c && d(f);
4221
+ let d = !0;
4222
+ return on().then((h) => {
4223
+ d && u(h);
4137
4224
  }), () => {
4138
- c = !1;
4225
+ d = !1;
4139
4226
  };
4140
4227
  }, [l]), l ? /* @__PURE__ */ r(
4141
- ut,
4228
+ gt,
4142
4229
  {
4143
4230
  state: o,
4144
4231
  modules: l,
@@ -4146,70 +4233,70 @@ function sn(e) {
4146
4233
  renderItem: i,
4147
4234
  renderDragOverlay: s
4148
4235
  }
4149
- ) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((c) => {
4150
- const f = c.items.map((h) => /* @__PURE__ */ r(V.Fragment, { children: i(h) }, h.id));
4151
- return /* @__PURE__ */ r("div", { ...o.getZoneProps(c.zoneKey), children: a(c.zoneKey, c.items, f) }, c.zoneKey);
4236
+ ) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((d) => {
4237
+ const h = d.items.map((m) => /* @__PURE__ */ r(V.Fragment, { children: i(m) }, m.id));
4238
+ return /* @__PURE__ */ r("div", { ...o.getZoneProps(d.zoneKey), children: a(d.zoneKey, d.items, h) }, d.zoneKey);
4152
4239
  }) });
4153
4240
  }
4154
- sn.displayName = "SortableZones";
4155
- function ut({
4241
+ ln.displayName = "SortableZones";
4242
+ function gt({
4156
4243
  state: e,
4157
4244
  modules: t,
4158
4245
  renderZone: n,
4159
4246
  renderItem: a,
4160
4247
  renderDragOverlay: i
4161
4248
  }) {
4162
- const { core: s, sortable: o, utilities: l } = t, { DndContext: d, DragOverlay: c, useSensors: f, useSensor: h, useDroppable: g, PointerSensor: u, KeyboardSensor: N, closestCenter: b } = s, { SortableContext: p, verticalListSortingStrategy: M } = o, P = f(
4163
- h(u, { activationConstraint: { distance: 5 } }),
4164
- h(N)
4165
- ), _ = d, T = c, x = p;
4166
- return /* @__PURE__ */ D(
4167
- _,
4249
+ const { core: s, sortable: o, utilities: l } = t, { DndContext: u, DragOverlay: d, useSensors: h, useSensor: m, useDroppable: g, PointerSensor: c, KeyboardSensor: _, closestCenter: b } = s, { SortableContext: f, verticalListSortingStrategy: R } = o, I = h(
4250
+ m(c, { activationConstraint: { distance: 5 } }),
4251
+ m(_)
4252
+ ), y = u, M = d, x = f;
4253
+ return /* @__PURE__ */ k(
4254
+ y,
4168
4255
  {
4169
- sensors: P,
4256
+ sensors: I,
4170
4257
  collisionDetection: b,
4171
4258
  onDragStart: e.handleDragStart,
4172
4259
  onDragOver: e.handleDragOver,
4173
4260
  onDragEnd: e.handleDragEnd,
4174
4261
  children: [
4175
- e.zones.map((m) => {
4176
- const v = m.items.map((R) => R.id), k = m.items.map((R) => /* @__PURE__ */ r(
4177
- mt,
4262
+ e.zones.map((p) => {
4263
+ const v = p.items.map((T) => T.id), D = p.items.map((T) => /* @__PURE__ */ r(
4264
+ pt,
4178
4265
  {
4179
- id: R.id,
4266
+ id: T.id,
4180
4267
  useSortable: o.useSortable,
4181
4268
  cssHelper: l.CSS,
4182
- children: a(R)
4269
+ children: a(T)
4183
4270
  },
4184
- R.id
4271
+ T.id
4185
4272
  ));
4186
4273
  return /* @__PURE__ */ r(
4187
- gt,
4274
+ ft,
4188
4275
  {
4189
- zoneKey: m.zoneKey,
4190
- zoneProps: e.getZoneProps(m.zoneKey),
4276
+ zoneKey: p.zoneKey,
4277
+ zoneProps: e.getZoneProps(p.zoneKey),
4191
4278
  useDroppable: g,
4192
- children: /* @__PURE__ */ r(x, { items: v, strategy: M, children: n(m.zoneKey, m.items, k) })
4279
+ children: /* @__PURE__ */ r(x, { items: v, strategy: R, children: n(p.zoneKey, p.items, D) })
4193
4280
  },
4194
- m.zoneKey
4281
+ p.zoneKey
4195
4282
  );
4196
4283
  }),
4197
- /* @__PURE__ */ r(T, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
4284
+ /* @__PURE__ */ r(M, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
4198
4285
  ]
4199
4286
  }
4200
4287
  );
4201
4288
  }
4202
- ut.displayName = "SortableZonesInner";
4203
- function mt({ id: e, useSortable: t, cssHelper: n, children: a }) {
4204
- const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: d, isDragging: c } = t({ id: e }), f = {
4289
+ gt.displayName = "SortableZonesInner";
4290
+ function pt({ id: e, useSortable: t, cssHelper: n, children: a }) {
4291
+ const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: u, isDragging: d } = t({ id: e }), h = {
4205
4292
  transform: n?.Transform?.toString(l) ?? void 0,
4206
- transition: d,
4207
- opacity: c ? 0.5 : 1
4293
+ transition: u,
4294
+ opacity: d ? 0.5 : 1
4208
4295
  };
4209
- return /* @__PURE__ */ r("div", { ref: o, style: f, "data-sortable-item-id": e, ...i, ...s, children: a });
4296
+ return /* @__PURE__ */ r("div", { ref: o, style: h, "data-sortable-item-id": e, ...i, ...s, children: a });
4210
4297
  }
4211
- mt.displayName = "SortableItem";
4212
- function gt({
4298
+ pt.displayName = "SortableItem";
4299
+ function ft({
4213
4300
  zoneKey: e,
4214
4301
  zoneProps: t,
4215
4302
  useDroppable: n,
@@ -4218,8 +4305,8 @@ function gt({
4218
4305
  const { setNodeRef: i, isOver: s } = n({ id: e });
4219
4306
  return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
4220
4307
  }
4221
- gt.displayName = "ZoneDroppable";
4222
- function $r({
4308
+ ft.displayName = "ZoneDroppable";
4309
+ function Kr({
4223
4310
  slotLeft: e,
4224
4311
  slotCenter: t,
4225
4312
  slotRight: n,
@@ -4232,7 +4319,7 @@ function $r({
4232
4319
  "--gloss-bottom-toolbar-height": `${a}px`,
4233
4320
  ...s
4234
4321
  };
4235
- return /* @__PURE__ */ D(
4322
+ return /* @__PURE__ */ k(
4236
4323
  "div",
4237
4324
  {
4238
4325
  role: "toolbar",
@@ -4269,7 +4356,7 @@ function $r({
4269
4356
  }
4270
4357
  );
4271
4358
  }
4272
- function Br({
4359
+ function zr({
4273
4360
  count: e,
4274
4361
  currentIndex: t,
4275
4362
  onSelect: n,
@@ -4278,11 +4365,11 @@ function Br({
4278
4365
  pulseIndex: s,
4279
4366
  pulseNonce: o,
4280
4367
  currentSection: l,
4281
- sectionsPerView: d = 1
4368
+ sectionsPerView: u = 1
4282
4369
  // D-09 default
4283
4370
  }) {
4284
- const c = l ?? t ?? 0, f = Math.max(0, Math.min(e - 1, c)), h = Math.min(e - 1, f + Math.max(0, d - 1)), g = [f, h], u = ke.useRef([]);
4285
- return u.current.length = e, e <= 1 || g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ D(
4371
+ const d = l ?? t ?? 0, h = Math.max(0, Math.min(e - 1, d)), m = Math.min(e - 1, h + Math.max(0, u - 1)), g = [h, m], c = ce.useRef([]);
4372
+ return c.current.length = e, e <= 1 || g[0] === 0 && g[1] === e - 1 ? null : /* @__PURE__ */ k(
4286
4373
  "div",
4287
4374
  {
4288
4375
  role: "tablist",
@@ -4293,12 +4380,12 @@ function Br({
4293
4380
  if (e !== 0) {
4294
4381
  if (b.key === "ArrowRight") {
4295
4382
  b.preventDefault();
4296
- const p = (c + 1) % e;
4297
- n(p), requestAnimationFrame(() => u.current[p]?.focus());
4383
+ const f = (d + 1) % e;
4384
+ n(f), requestAnimationFrame(() => c.current[f]?.focus());
4298
4385
  } else if (b.key === "ArrowLeft") {
4299
4386
  b.preventDefault();
4300
- const p = (c - 1 + e) % e;
4301
- n(p), requestAnimationFrame(() => u.current[p]?.focus());
4387
+ const f = (d - 1 + e) % e;
4388
+ n(f), requestAnimationFrame(() => c.current[f]?.focus());
4302
4389
  }
4303
4390
  }
4304
4391
  },
@@ -4314,382 +4401,382 @@ function Br({
4314
4401
  }
4315
4402
  }
4316
4403
  ),
4317
- Array.from({ length: e }, (b, p) => /* @__PURE__ */ r(
4404
+ Array.from({ length: e }, (b, f) => /* @__PURE__ */ r(
4318
4405
  "button",
4319
4406
  {
4320
- ref: (M) => {
4321
- u.current[p] = M;
4407
+ ref: (R) => {
4408
+ c.current[f] = R;
4322
4409
  },
4323
4410
  type: "button",
4324
4411
  role: "tab",
4325
- "aria-selected": p === c,
4326
- "aria-label": p === i ? "Unconfirmed section" : `Section ${p + 1}`,
4327
- "data-state": p === i ? "provisional-hollow" : p === s ? "pulse" : p === c ? "current" : "hollow",
4328
- "data-section-index": p,
4412
+ "aria-selected": f === d,
4413
+ "aria-label": f === i ? "Unconfirmed section" : `Section ${f + 1}`,
4414
+ "data-state": f === i ? "provisional-hollow" : f === s ? "pulse" : f === d ? "current" : "hollow",
4415
+ "data-section-index": f,
4329
4416
  className: [
4330
4417
  "gloss-section-dots__dot",
4331
- p === c && "gloss-section-dots__dot--current"
4418
+ f === d && "gloss-section-dots__dot--current"
4332
4419
  ].filter(Boolean).join(" "),
4333
- onClick: () => n(p)
4420
+ onClick: () => n(f)
4334
4421
  },
4335
- p === s ? `${p}-${o ?? 0}` : p
4422
+ f === s ? `${f}-${o ?? 0}` : f
4336
4423
  ))
4337
4424
  ]
4338
4425
  }
4339
4426
  );
4340
4427
  }
4341
- const on = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4428
+ const cn = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4342
4429
  const i = { ...n };
4343
- return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(Be, { region: "toolbar", density: e, children: t }) });
4430
+ return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(ze, { region: "toolbar", density: e, children: t }) });
4344
4431
  });
4345
- on.displayName = "ContainerToolbar";
4346
- const ln = V.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
4432
+ cn.displayName = "ContainerToolbar";
4433
+ const dn = V.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
4347
4434
  const o = { ...i };
4348
- return delete o.className, delete o.style, /* @__PURE__ */ D("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
4435
+ return delete o.className, delete o.style, /* @__PURE__ */ k("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
4349
4436
  e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
4350
4437
  t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
4351
- /* @__PURE__ */ r(Be, { region: "form-section", density: n, children: a })
4438
+ /* @__PURE__ */ r(ze, { region: "form-section", density: n, children: a })
4352
4439
  ] });
4353
4440
  });
4354
- ln.displayName = "ContainerFormSection";
4355
- const cn = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4441
+ dn.displayName = "ContainerFormSection";
4442
+ const un = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4356
4443
  const i = { ...n };
4357
- return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(Be, { region: "table", density: e, children: t }) });
4444
+ return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(ze, { region: "table", density: e, children: t }) });
4358
4445
  });
4359
- cn.displayName = "ContainerTable";
4446
+ un.displayName = "ContainerTable";
4360
4447
  export {
4361
- Wr as Accordion,
4362
- jr as AccordionContent,
4363
- Gr as AccordionItem,
4364
- Vr as AccordionTrigger,
4365
- Hr as ActionStrip,
4366
- Ur as Actionable,
4367
- Zr as AddressGroup,
4368
- Yr as AddressSelect,
4369
- qr as AsyncLoader,
4370
- Qr as Autocomplete,
4371
- Xr as Badge,
4372
- Jr as BarChartCard,
4373
- es as BarsBg,
4374
- $r as BottomToolbar,
4375
- ts as Button,
4376
- as as ButtonGroup,
4377
- ns as ButtonGroupContext,
4378
- rs as Card,
4379
- ss as CardActions,
4380
- is as CardBack,
4381
- os as CardBody,
4382
- ls as CardFooter,
4383
- cs as CardHeader,
4384
- ds as CardMedia,
4385
- wt as CardShell,
4386
- us as CardSubtitle,
4387
- ms as CardTitle,
4388
- xr as CascadePreview,
4389
- Er as CellTintOverlay,
4390
- gs as ChartControlBar,
4391
- ps as Checkbox,
4392
- hs as CheckboxGroup,
4393
- fs as Chip,
4394
- bs as ColorPicker,
4395
- vs as ComparisonCard,
4396
- ys as ContactForm,
4397
- ws as ContainerCard,
4398
- _s as ContainerCardActions,
4399
- Ns as ContainerCardBody,
4400
- Ds as ContainerCardFooter,
4401
- ks as ContainerCardHeader,
4402
- Cs as ContainerCardMedia,
4403
- xs as ContainerCardSubtitle,
4404
- Ss as ContainerCardTitle,
4405
- Rs as ContainerDialog,
4406
- Ms as ContainerDialogActions,
4407
- Ts as ContainerDialogBody,
4408
- Is as ContainerDialogHeader,
4409
- ln as ContainerFormSection,
4410
- Ps as ContainerPanel,
4411
- cn as ContainerTable,
4412
- on as ContainerToolbar,
4413
- Fs as CreditCardForm,
4414
- Es as DEFAULT_FOOTER_IDS,
4448
+ Gr as Accordion,
4449
+ Vr as AccordionContent,
4450
+ Hr as AccordionItem,
4451
+ Ur as AccordionTrigger,
4452
+ Zr as ActionStrip,
4453
+ Yr as Actionable,
4454
+ qr as AddressGroup,
4455
+ Qr as AddressSelect,
4456
+ Xr as AsyncLoader,
4457
+ Jr as Autocomplete,
4458
+ es as Badge,
4459
+ ts as BarChartCard,
4460
+ as as BarsBg,
4461
+ Kr as BottomToolbar,
4462
+ ns as Button,
4463
+ rs as ButtonGroup,
4464
+ ss as ButtonGroupContext,
4465
+ is as Card,
4466
+ os as CardActions,
4467
+ ls as CardBack,
4468
+ cs as CardBody,
4469
+ ds as CardFooter,
4470
+ us as CardHeader,
4471
+ ms as CardMedia,
4472
+ Nt as CardShell,
4473
+ gs as CardSubtitle,
4474
+ ps as CardTitle,
4475
+ Rr as CascadePreview,
4476
+ Or as CellTintOverlay,
4477
+ fs as ChartControlBar,
4478
+ hs as Checkbox,
4479
+ bs as CheckboxGroup,
4480
+ vs as Chip,
4481
+ ys as ColorPicker,
4482
+ ws as ComparisonCard,
4483
+ _s as ContactForm,
4484
+ Ns as ContainerCard,
4485
+ Ds as ContainerCardActions,
4486
+ ks as ContainerCardBody,
4487
+ Cs as ContainerCardFooter,
4488
+ xs as ContainerCardHeader,
4489
+ Ss as ContainerCardMedia,
4490
+ Rs as ContainerCardSubtitle,
4491
+ Ms as ContainerCardTitle,
4492
+ Ts as ContainerDialog,
4493
+ Is as ContainerDialogActions,
4494
+ Ps as ContainerDialogBody,
4495
+ Es as ContainerDialogHeader,
4496
+ dn as ContainerFormSection,
4497
+ Fs as ContainerPanel,
4498
+ un as ContainerTable,
4499
+ cn as ContainerToolbar,
4500
+ As as CreditCardForm,
4501
+ Os as DEFAULT_FOOTER_IDS,
4415
4502
  ie as DEFAULT_GRID_INTERACTION_PHYSICS,
4416
- dl as DEFAULT_MARKET_PRESETS,
4417
- As as DEFAULT_OVERFLOW_IDS,
4418
- ul as DEFAULT_PINNED,
4419
- at as DEFAULT_RESIZE_PHYSICS,
4420
- Os as DataTable,
4421
- Ls as DatePicker,
4422
- $s as DateRangePicker,
4423
- Bs as DestructiveModal,
4424
- ya as DevTuningPanel,
4425
- Ks as DirectionCard,
4426
- zs as Dismissible,
4427
- Ws as DistributionCard,
4428
- js as DonutChart,
4429
- kr as DragGhost,
4430
- yr as DropAnchorCell,
4431
- Gs as Dropdown,
4432
- Da as DualPaceBars,
4433
- Vs as ENTITY_FILTER_KEYS,
4434
- Hs as ENTITY_PROFILE_ROUTES,
4435
- Us as ENTITY_TYPE_PLURAL,
4436
- jt as EdgeHoverHandle,
4437
- Nr as EmptyCellPackAffordance,
4438
- Zs as EntityPicker,
4503
+ ml as DEFAULT_MARKET_PRESETS,
4504
+ Ls as DEFAULT_OVERFLOW_IDS,
4505
+ gl as DEFAULT_PINNED,
4506
+ rt as DEFAULT_RESIZE_PHYSICS,
4507
+ $s as DataTable,
4508
+ Bs as DatePicker,
4509
+ Ks as DateRangePicker,
4510
+ zs as DestructiveModal,
4511
+ _a as DevTuningPanel,
4512
+ Ws as DirectionCard,
4513
+ js as Dismissible,
4514
+ Gs as DistributionCard,
4515
+ Vs as DonutChart,
4516
+ xr as DragGhost,
4517
+ _r as DropAnchorCell,
4518
+ Hs as Dropdown,
4519
+ Ca as DualPaceBars,
4520
+ Us as ENTITY_FILTER_KEYS,
4521
+ Zs as ENTITY_PROFILE_ROUTES,
4522
+ Ys as ENTITY_TYPE_PLURAL,
4523
+ Vt as EdgeHoverHandle,
4524
+ kr as EmptyCellPackAffordance,
4525
+ qs as EntityPicker,
4439
4526
  X as EntityRow,
4440
- Ys as EntitySearchPanel,
4441
- Aa as ExceptionListCard,
4442
- Oa as ExceptionListTilePreview,
4443
- qs as Expandable,
4444
- Qs as ExpandableChip,
4445
- Xs as FLIP_AND_STAGE_TIMINGS,
4446
- Js as FileUpload,
4447
- ei as FilterChip,
4448
- ti as FilterInput,
4449
- ai as FlipAndStageProvider,
4450
- ni as Form,
4451
- ri as FormDialog,
4452
- si as FormField,
4453
- ii as FusedShape,
4454
- ka as GapReadout,
4455
- oi as GestureStateProvider,
4456
- Gt as GhostPreview,
4457
- li as GroupCheckbox,
4458
- ci as GroupRadio,
4459
- $n as HARD_CLIP,
4460
- di as HighlightCard,
4461
- ui as HybridDatePicker,
4462
- mi as ImportWizard,
4463
- Va as InlineNudge,
4464
- gi as Input,
4465
- pi as InputAddon,
4466
- hi as InputGroup,
4467
- Ia as LeaderboardCard,
4468
- Pa as LeaderboardTilePreview,
4469
- Sa as LensChipGroup,
4470
- fi as Link,
4471
- bi as LoginForm,
4472
- ye as MagnitudeBar,
4473
- vi as MarketPresetRow,
4474
- yi as MaskPresets,
4475
- wi as MaskedInput,
4476
- _i as Menu,
4477
- Ni as MenuDivider,
4478
- Di as MenuGroup,
4479
- ki as MenuItem,
4480
- Ci as MergePrompt,
4481
- xi as MetricCard,
4482
- Si as MetricCardGrid,
4483
- da as MetricGroupContainer,
4484
- Ri as MiniCalendar,
4485
- Ma as MoreInLensRail,
4486
- Mi as MultiSelect,
4487
- Ti as NumberInput,
4488
- Ii as ObjectArrow,
4489
- Pi as OrderFilterBar,
4490
- ml as PERIOD_OPTIONS,
4491
- Sr as PaceCard,
4492
- Rr as PaceTilePreview,
4493
- Xt as PageChip,
4494
- nt as PageDropdown,
4495
- Fi as PasswordInput,
4496
- Ei as PaymentForm,
4497
- Ai as PaymentMethodSelect,
4498
- Oi as PhoneInput,
4499
- Li as PinToMetric,
4500
- Qa as PresetSwatchRow,
4501
- $i as ProfileCard,
4502
- Bi as ProgressCard,
4503
- Ki as QuickConfigPanel,
4504
- sa as RECONFIG_BACKSIDE_LABELS,
4505
- gl as ROLLING_OPTIONS,
4506
- zi as Radio,
4507
- Wi as RadioGroup,
4508
- ji as RangeSlider,
4509
- be as RankBadge,
4510
- ct as RankDelta,
4511
- Gi as Rating,
4512
- la as ReconfigBacksideButtons,
4513
- Ar as RefusePulse,
4514
- Vi as RegistrationForm,
4515
- vr as ResizeEnvelope,
4516
- Or as ResizeTrackingOutline,
4517
- Hi as Row1Controls,
4518
- Ui as Row2FilterTray,
4519
- Tr as STROKE_DASHED,
4520
- Fr as STROKE_OUTLINE,
4521
- Ir as STROKE_SOLID,
4522
- Pr as STROKE_SPARSE_DASH,
4523
- Zi as SearchInput,
4524
- _r as SectionDivider,
4525
- Br as SectionDots,
4526
- Yi as SegmentCard,
4527
- qi as SegmentedControl,
4528
- Qi as Select,
4529
- Xi as Selectable,
4530
- ve as SeverityDot,
4531
- Ji as SimpleMetricCard,
4532
- eo as SimpleSelector,
4533
- to as Skeleton,
4534
- ao as SkeletonCard,
4535
- no as SkeletonChart,
4536
- ro as SkeletonTable,
4537
- so as Slider,
4538
- Cr as SnapOutline,
4539
- io as Sortable,
4540
- sn as SortableZones,
4541
- oo as SparklineBg,
4542
- wr as SpilloverArc,
4543
- lo as SplitButton,
4544
- co as StackedGroupCard,
4545
- La as StackedGroupTilePreview,
4546
- Ra as StarterRail,
4547
- uo as StatusModeCard,
4548
- Wt as StatusSlotChipMenu,
4549
- mo as Stepper,
4550
- Ee as SwingReveal,
4551
- pl as TODAY_PRESET,
4527
+ Qs as EntitySearchPanel,
4528
+ La as ExceptionListCard,
4529
+ $a as ExceptionListTilePreview,
4530
+ Xs as Expandable,
4531
+ Js as ExpandableChip,
4532
+ ei as FLIP_AND_STAGE_TIMINGS,
4533
+ ti as FileUpload,
4534
+ ai as FilterChip,
4535
+ ni as FilterInput,
4536
+ ri as FlipAndStageProvider,
4537
+ si as Form,
4538
+ ii as FormDialog,
4539
+ oi as FormField,
4540
+ li as FusedShape,
4541
+ xa as GapReadout,
4542
+ ci as GestureStateProvider,
4543
+ Ht as GhostPreview,
4544
+ di as GroupCheckbox,
4545
+ ui as GroupRadio,
4546
+ Kn as HARD_CLIP,
4547
+ mi as HighlightCard,
4548
+ gi as HybridDatePicker,
4549
+ pi as ImportWizard,
4550
+ Ua as InlineNudge,
4551
+ fi as Input,
4552
+ hi as InputAddon,
4553
+ bi as InputGroup,
4554
+ Ea as LeaderboardCard,
4555
+ Fa as LeaderboardTilePreview,
4556
+ Ma as LensChipGroup,
4557
+ vi as Link,
4558
+ yi as LoginForm,
4559
+ _e as MagnitudeBar,
4560
+ wi as MarketPresetRow,
4561
+ _i as MaskPresets,
4562
+ Ni as MaskedInput,
4563
+ Di as Menu,
4564
+ ki as MenuDivider,
4565
+ Ci as MenuGroup,
4566
+ xi as MenuItem,
4567
+ Si as MergePrompt,
4568
+ Ri as MetricCard,
4569
+ Mi as MetricCardGrid,
4570
+ ma as MetricGroupContainer,
4571
+ Ti as MiniCalendar,
4572
+ Ia as MoreInLensRail,
4573
+ Ii as MultiSelect,
4574
+ Pi as NumberInput,
4575
+ Ei as ObjectArrow,
4576
+ Fi as OrderFilterBar,
4577
+ pl as PERIOD_OPTIONS,
4578
+ Mr as PaceCard,
4579
+ Tr as PaceTilePreview,
4580
+ ea as PageChip,
4581
+ st as PageDropdown,
4582
+ Ai as PasswordInput,
4583
+ Oi as PaymentForm,
4584
+ Li as PaymentMethodSelect,
4585
+ $i as PhoneInput,
4586
+ Bi as PinToMetric,
4587
+ Ja as PresetSwatchRow,
4588
+ Ki as ProfileCard,
4589
+ zi as ProgressCard,
4590
+ Wi as QuickConfigPanel,
4591
+ oa as RECONFIG_BACKSIDE_LABELS,
4592
+ fl as ROLLING_OPTIONS,
4593
+ ji as Radio,
4594
+ Gi as RadioGroup,
4595
+ Vi as RangeSlider,
4596
+ ye as RankBadge,
4597
+ ut as RankDelta,
4598
+ Hi as Rating,
4599
+ da as ReconfigBacksideButtons,
4600
+ Lr as RefusePulse,
4601
+ Ui as RegistrationForm,
4602
+ wr as ResizeEnvelope,
4603
+ $r as ResizeTrackingOutline,
4604
+ Zi as Row1Controls,
4605
+ Yi as Row2FilterTray,
4606
+ Pr as STROKE_DASHED,
4607
+ Ar as STROKE_OUTLINE,
4608
+ Er as STROKE_SOLID,
4609
+ Fr as STROKE_SPARSE_DASH,
4610
+ qi as SearchInput,
4611
+ Dr as SectionDivider,
4612
+ zr as SectionDots,
4613
+ Qi as SegmentCard,
4614
+ Xi as SegmentedControl,
4615
+ Ji as Select,
4616
+ eo as Selectable,
4617
+ we as SeverityDot,
4618
+ to as SimpleMetricCard,
4619
+ ao as SimpleSelector,
4620
+ no as Skeleton,
4621
+ ro as SkeletonCard,
4622
+ so as SkeletonChart,
4623
+ io as SkeletonTable,
4624
+ oo as Slider,
4625
+ Sr as SnapOutline,
4626
+ lo as Sortable,
4627
+ ln as SortableZones,
4628
+ co as SparklineBg,
4629
+ Nr as SpilloverArc,
4630
+ uo as SplitButton,
4631
+ mo as StackedGroupCard,
4632
+ Ba as StackedGroupTilePreview,
4633
+ Ta as StarterRail,
4634
+ go as StatusModeCard,
4635
+ Gt as StatusSlotChipMenu,
4636
+ po as Stepper,
4637
+ Oe as SwingReveal,
4638
+ hl as TODAY_PRESET,
4552
4639
  re as TUNING_DEFAULTS,
4553
- ot as TUNING_STORAGE_KEY,
4554
- go as TabGroup,
4555
- po as TabbedDataView,
4556
- ho as TagInput,
4557
- At as TargetInput,
4558
- fo as Textarea,
4559
- Za as ThresholdRamp,
4560
- bo as TimeFrame,
4561
- vo as TimePicker,
4562
- yo as Toggle,
4563
- wo as Tooltip,
4564
- lt as TrackingOutline,
4565
- _o as Transition,
4566
- No as TransitionGroup,
4567
- Do as TrendCard,
4568
- ko as TrendIndicator,
4569
- ol as UIContext,
4570
- Be as UIContextProvider,
4571
- Co as UnifiedBreakdownTable,
4572
- xo as UnifiedContextMenu,
4573
- Vt as VelocityBuffer,
4574
- So as addressGroupMetadata,
4575
- Ro as addressSchema,
4576
- kn as allChips,
4577
- jn as allStateFixtures,
4578
- Wn as allVariantFixtures,
4579
- Rn as blockSamples,
4580
- Mo as buildDefaultOverflow,
4581
- Fn as cardSamples,
4582
- En as cascadePhysics,
4583
- In as chartSamples,
4584
- Tn as circleSamples,
4585
- Bn as colorTokens,
4586
- ur as compactLayout,
4587
- er as compactState,
4588
- zn as computeGutterAnchorX,
4589
- To as contactFormMetadata,
4590
- Io as contactSchema,
4591
- tr as contextMenuFixtures,
4592
- Po as creditCardFormMetadata,
4593
- Fo as creditCardSchema,
4594
- $t as dateChip,
4595
- it as defaultControlBarState,
4596
- Eo as destructiveModalMetadata,
4597
- Ao as durations,
4598
- Oo as easings,
4599
- Zt as emptyFixture,
4600
- Ot as entityChip,
4601
- aa as entityNameActions,
4602
- xn as entityTabGroup,
4603
- Ut as errorFixture,
4604
- Lo as evaluateTintCondition,
4605
- Jn as filteredState,
4606
- hl as findPreset,
4607
- fl as formatDateRange,
4608
- bl as formatMarketDates,
4609
- vl as formatTrend,
4610
- yl as formatValue,
4611
- gr as fullLayout,
4612
- wl as generateMarketId,
4613
- $o as generateTabId,
4614
- _l as getAllPresets,
4615
- Nl as getDateRangeForPreset,
4616
- Bo as getMenuActions,
4617
- tt as getMotionMode,
4618
- Dl as getPresetLabel,
4619
- Ko as getTransitionStyle,
4620
- dr as gridCards,
4621
- Mr as gridChannels,
4622
- zo as interpolate,
4623
- kl as isInRange,
4624
- Cl as isMarketActive,
4625
- xl as isSameDay,
4626
- Xn as itemColumns,
4627
- qn as itemRows,
4628
- Ht as loadingFixture,
4629
- Wo as loginFormMetadata,
4630
- jo as loginSchema,
4631
- Bt as manufacturerChip,
4632
- br as manyTabs,
4633
- Go as mergeHandlers,
4634
- Vo as mergeRefs,
4635
- Cn as metricTabGroup,
4636
- hr as mixedTabs,
4637
- Sl as normalizePresetId,
4638
- ra as numericActions,
4639
- Qn as orderColumns,
4640
- na as orderIdActions,
4641
- Yn as orderRows,
4642
- pr as ordersTabs,
4643
- Je as paletteHex,
4640
+ ct as TUNING_STORAGE_KEY,
4641
+ fo as TabGroup,
4642
+ ho as TabbedDataView,
4643
+ bo as TagInput,
4644
+ Lt as TargetInput,
4645
+ vo as Textarea,
4646
+ qa as ThresholdRamp,
4647
+ yo as TimeFrame,
4648
+ wo as TimePicker,
4649
+ _o as Toggle,
4650
+ No as Tooltip,
4651
+ dt as TrackingOutline,
4652
+ Do as Transition,
4653
+ ko as TransitionGroup,
4654
+ Co as TrendCard,
4655
+ xo as TrendIndicator,
4656
+ cl as UIContext,
4657
+ ze as UIContextProvider,
4658
+ So as UnifiedBreakdownTable,
4659
+ Ro as UnifiedContextMenu,
4660
+ Ut as VelocityBuffer,
4661
+ Mo as addressGroupMetadata,
4662
+ To as addressSchema,
4663
+ Sn as allChips,
4664
+ Vn as allStateFixtures,
4665
+ Gn as allVariantFixtures,
4666
+ In as blockSamples,
4667
+ Io as buildDefaultOverflow,
4668
+ On as cardSamples,
4669
+ le as cascadePhysics,
4670
+ Fn as chartSamples,
4671
+ En as circleSamples,
4672
+ zn as colorTokens,
4673
+ gr as compactLayout,
4674
+ ar as compactState,
4675
+ jn as computeGutterAnchorX,
4676
+ Po as contactFormMetadata,
4677
+ Eo as contactSchema,
4678
+ nr as contextMenuFixtures,
4679
+ Fo as creditCardFormMetadata,
4680
+ Ao as creditCardSchema,
4681
+ Kt as dateChip,
4682
+ lt as defaultControlBarState,
4683
+ Oo as destructiveModalMetadata,
4684
+ Lo as durations,
4685
+ $o as easings,
4686
+ qt as emptyFixture,
4687
+ $t as entityChip,
4688
+ ra as entityNameActions,
4689
+ Mn as entityTabGroup,
4690
+ Yt as errorFixture,
4691
+ Bo as evaluateTintCondition,
4692
+ tr as filteredState,
4693
+ bl as findPreset,
4694
+ vl as formatDateRange,
4695
+ yl as formatMarketDates,
4696
+ wl as formatTrend,
4697
+ _l as formatValue,
4698
+ fr as fullLayout,
4699
+ Nl as generateMarketId,
4700
+ Ko as generateTabId,
4701
+ Dl as getAllPresets,
4702
+ kl as getDateRangeForPreset,
4703
+ zo as getMenuActions,
4704
+ nt as getMotionMode,
4705
+ Cl as getPresetLabel,
4706
+ Wo as getTransitionStyle,
4707
+ mr as gridCards,
4708
+ Ir as gridChannels,
4709
+ jo as interpolate,
4710
+ xl as isInRange,
4711
+ Sl as isMarketActive,
4712
+ Rl as isSameDay,
4713
+ er as itemColumns,
4714
+ Xn as itemRows,
4715
+ Zt as loadingFixture,
4716
+ Go as loginFormMetadata,
4717
+ Vo as loginSchema,
4718
+ zt as manufacturerChip,
4719
+ yr as manyTabs,
4720
+ Ho as mergeHandlers,
4721
+ Uo as mergeRefs,
4722
+ Rn as metricTabGroup,
4723
+ br as mixedTabs,
4724
+ Ml as normalizePresetId,
4725
+ ia as numericActions,
4726
+ Jn as orderColumns,
4727
+ sa as orderIdActions,
4728
+ Qn as orderRows,
4729
+ hr as ordersTabs,
4730
+ tt as paletteHex,
4644
4731
  se as paletteVars,
4645
- Ho as parseNumericValue,
4646
- Uo as paymentFormMetadata,
4647
- Zo as paymentSchema,
4648
- Yo as presets,
4649
- On as provisional,
4650
- Ln as reducedMotion,
4651
- qo as registrationFormMetadata,
4652
- Qo as registrationSchema,
4653
- An as rejectionFeedback,
4654
- nr as sampleCompareRanges,
4655
- ir as sampleCustomMarkets,
4656
- ar as sampleDateRange,
4657
- or as sampleMarketPresetData,
4658
- sr as sampleMarkets,
4659
- cr as samplePeriodPresets,
4660
- rr as samplePreferences,
4661
- lr as samplePresets,
4662
- fr as singleTab,
4663
- Gn as sparklineFixture,
4664
- Vn as sparklineUpFixture,
4665
- Qt as staleDonutFixture,
4666
- Yt as staleFixture,
4667
- qt as staleSparklineFixture,
4668
- Hn as standardFixture,
4669
- Zn as standardFlatFixture,
4670
- mr as standardLayout,
4671
- Un as standardNegativeFixture,
4672
- Lt as statusChip,
4673
- ge as swingReveal,
4674
- Pn as tableSamples,
4675
- Mn as textSamples,
4676
- Sn as timeFrameTabGroup,
4677
- Rl as toUppercasePresetId,
4678
- Dr as useAffordanceVisibility,
4679
- Dn as useArrowNavigation,
4680
- Xo as useCheckboxGroupContext,
4681
- Kn as useEdgeHoverResize,
4682
- Jo as useFilterLayout,
4683
- el as useFlipAndStage,
4684
- tl as useFlipAndStageContext,
4685
- al as useFlipAndStageContextOptional,
4686
- Nn as useFocusReturn,
4687
- nl as useFocusTrap,
4688
- rl as useFormContext,
4689
- yt as useGestureState,
4690
- sl as useRadioGroupContext,
4691
- Lr as useResizeChoreography,
4692
- ga as useResizeTuning,
4693
- en as useSortableZones,
4694
- ll as useUIContext
4732
+ Zo as parseNumericValue,
4733
+ Yo as paymentFormMetadata,
4734
+ qo as paymentSchema,
4735
+ Qo as presets,
4736
+ $n as provisional,
4737
+ Bn as reducedMotion,
4738
+ Xo as registrationFormMetadata,
4739
+ Jo as registrationSchema,
4740
+ Ln as rejectionFeedback,
4741
+ sr as sampleCompareRanges,
4742
+ lr as sampleCustomMarkets,
4743
+ rr as sampleDateRange,
4744
+ cr as sampleMarketPresetData,
4745
+ or as sampleMarkets,
4746
+ ur as samplePeriodPresets,
4747
+ ir as samplePreferences,
4748
+ dr as samplePresets,
4749
+ vr as singleTab,
4750
+ Hn as sparklineFixture,
4751
+ Un as sparklineUpFixture,
4752
+ Jt as staleDonutFixture,
4753
+ Qt as staleFixture,
4754
+ Xt as staleSparklineFixture,
4755
+ Zn as standardFixture,
4756
+ qn as standardFlatFixture,
4757
+ pr as standardLayout,
4758
+ Yn as standardNegativeFixture,
4759
+ Bt as statusChip,
4760
+ fe as swingReveal,
4761
+ An as tableSamples,
4762
+ Pn as textSamples,
4763
+ Tn as timeFrameTabGroup,
4764
+ Tl as toUppercasePresetId,
4765
+ Cr as useAffordanceVisibility,
4766
+ xn as useArrowNavigation,
4767
+ el as useCheckboxGroupContext,
4768
+ Wn as useEdgeHoverResize,
4769
+ tl as useFilterLayout,
4770
+ al as useFlipAndStage,
4771
+ nl as useFlipAndStageContext,
4772
+ rl as useFlipAndStageContextOptional,
4773
+ Cn as useFocusReturn,
4774
+ sl as useFocusTrap,
4775
+ il as useFormContext,
4776
+ _t as useGestureState,
4777
+ ol as useRadioGroupContext,
4778
+ Br as useResizeChoreography,
4779
+ fa as useResizeTuning,
4780
+ an as useSortableZones,
4781
+ dl as useUIContext
4695
4782
  };