@mt-gloss/ui 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { N as On, T as An, O as Ln, Q as $n, a3 as Bn, b6 as zn, az as Kn, ah as Wn, Z as Gn, an as Hn, K as Vn, a8 as jn, bn as Un, P as Zn, B as Yn, a as qn, y as Qn, H as Xn, bi as Jn, F as er, J as tr, A as ar, z as nr, bh as rr, E as sr, D as or, bw as ir, b as lr, C as cr, L as dr, o as ur, ad as mr, aN as gr, y as pr, H as fr, F as hr, J as br, A as vr, z as yr, E as wr, D as Dr, a$ as Nr, b2 as Cr, b1 as kr, b0 as _r, b3 as xr, aC as Sr, a5 as Mr, a4 as Tr, aq as Rr, k as Ir, m as Pr, aF as Fr, ab as Er, b8 as Or, a9 as Ar, bo as Lr, Y as $r, bG as Br, bF as zr, bH as Kr, ap as Wr, aQ as Gr, ba as Hr, bL as Vr, bu as jr, n as Ur, am as Zr, bA as Yr, br as qr, a0 as Qr, ar as Xr, a2 as Jr, bz as es, G as ts, d as as, aa as ns, bI as rs, aT as ss, r as os, v as is, I as ls, g as cs, aw as ds, bM as us, M as ms, w as gs, U as ps, X as fs, V as hs, W as bs, as as vs, bg as ys, bO as ws, bK as Ds, ao as Ns, t as Cs, bp as ks, aS as _s, aj as xs, aK as Ss, ag as Ms, al as Ts, au as Rs, aR as Is, ac as Ps, at as Fs, c as Es, R as Os, j as As, p as Ls, aH as $s, bx as Bs, by as zs, ai as Ks, ae as Ws, h as Gs, x as Hs, b7 as Vs, af as js, bN as Us, bc as Zs, bf as Ys, bd as qs, be as Qs, i as Xs, b9 as Js, bm as eo, S as to, bk as ao, bl as no, av as ro, bb as so, bP as oo, ak as io, s as lo, bJ as co, l as uo, f as mo, q as go, _ as po, $ as fo, a7 as ho, bj as bo, bv as vo, bC as yo, aA as wo, aB as Do, a6 as No, aO as Co, aP as ko, aD as _o, aE as xo, aG as So, aV as Mo, aW as To, bE as Ro, bD as Io, aY as Po, aZ as Fo, ax as Eo, ay as Oo, b5 as Ao, b4 as Lo, a_ as $o, aL as Bo, aM as zo, aX as Ko, aI as Wo, aJ as Go, u as Ho, bB as Vo, bq as jo, bs as Uo, bt as Zo, aU as Yo, a1 as qo, e as Qo } from "./Expandable-CTI-osAf.js";
2
- import { jsxs as A, jsx as l, Fragment as Ye } from "react/jsx-runtime";
2
+ import { jsxs as O, jsx as i, Fragment as be } from "react/jsx-runtime";
3
3
  import * as qe from "react";
4
4
  import H, { useRef as R, useEffect as L, useState as W, useCallback as y, forwardRef as Qe, useMemo as se, createContext as Xe, useContext as Je } from "react";
5
- import { motion as de, useMotionValue as et, animate as xe, useDragControls as tt } from "framer-motion";
6
- import { B as at, U as Ne } from "./UIContext-C3E-k7HI.js";
5
+ import { motion as de, useMotionValue as et, animate as Se, useDragControls as tt } from "framer-motion";
6
+ import { B as at, U as Ce } from "./UIContext-C3E-k7HI.js";
7
7
  import { a as Jo, u as ei } from "./UIContext-C3E-k7HI.js";
8
8
  import { createPortal as nt } from "react-dom";
9
9
  import { DEFAULT_MARKET_PRESETS as ai, DEFAULT_PINNED as ni, PERIOD_OPTIONS as ri, ROLLING_OPTIONS as si, TODAY_PRESET as oi, findPreset as ii, formatDateRange as li, formatMarketDates as ci, formatTrend as di, formatValue as ui, generateMarketId as mi, getAllPresets as gi, getDateRangeForPreset as pi, getPresetLabel as fi, isInRange as hi, isMarketActive as bi, isSameDay as vi, normalizePresetId as yi, toUppercasePresetId as wi } from "@mt-gloss/utils";
@@ -34,60 +34,60 @@ function xa(e) {
34
34
  isItemDisabled: d,
35
35
  onSelect: b,
36
36
  onEscape: g
37
- } = e, [u, C] = W(-1), m = n !== void 0 ? n : u, c = y(
38
- (i) => {
39
- n === void 0 && C(i), a?.(i);
37
+ } = e, [m, C] = W(-1), u = n !== void 0 ? n : m, c = y(
38
+ (l) => {
39
+ n === void 0 && C(l), a?.(l);
40
40
  },
41
41
  [n, a]
42
- ), f = y(() => t.map((i, v) => ({ item: i, index: v })).filter(({ item: i, index: v }) => !d?.(i, v)).map(({ index: i }) => i), [t, d]), S = y(
43
- (i, v) => {
44
- const p = f();
42
+ ), h = y(() => t.map((l, v) => ({ item: l, index: v })).filter(({ item: l, index: v }) => !d?.(l, v)).map(({ index: l }) => l), [t, d]), x = y(
43
+ (l, v) => {
44
+ const p = h();
45
45
  if (p.length === 0) return -1;
46
- const w = p.indexOf(i);
46
+ const w = p.indexOf(l);
47
47
  if (w === -1)
48
- return v === 1 ? p.find((M) => M > i) ?? (r ? p[0] : -1) : [...p].reverse().find((E) => E < i) ?? (r ? p[p.length - 1] : -1);
48
+ return v === 1 ? p.find((M) => M > l) ?? (r ? p[0] : -1) : [...p].reverse().find((E) => E < l) ?? (r ? p[p.length - 1] : -1);
49
49
  let k = w + v;
50
50
  return r ? k = (k + p.length) % p.length : k = Math.max(0, Math.min(p.length - 1, k)), p[k];
51
51
  },
52
- [f, r]
53
- ), h = y(() => {
54
- const i = f();
55
- i.length > 0 && c(i[0]);
56
- }, [f, c]), x = y(() => {
57
- const i = f();
58
- i.length > 0 && c(i[i.length - 1]);
59
- }, [f, c]), I = y(() => {
60
- const i = S(m, 1);
61
- i !== -1 && c(i);
62
- }, [m, S, c]), N = y(() => {
63
- const i = S(m, -1);
64
- i !== -1 && c(i);
65
- }, [m, S, c]), _ = y(() => {
52
+ [h, r]
53
+ ), f = y(() => {
54
+ const l = h();
55
+ l.length > 0 && c(l[0]);
56
+ }, [h, c]), S = y(() => {
57
+ const l = h();
58
+ l.length > 0 && c(l[l.length - 1]);
59
+ }, [h, c]), I = y(() => {
60
+ const l = x(u, 1);
61
+ l !== -1 && c(l);
62
+ }, [u, x, c]), N = y(() => {
63
+ const l = x(u, -1);
64
+ l !== -1 && c(l);
65
+ }, [u, x, c]), _ = y(() => {
66
66
  c(-1);
67
67
  }, [c]), T = y(
68
- (i) => {
68
+ (l) => {
69
69
  if (!o) return;
70
- const { key: v } = i, p = v === "ArrowUp" && (s === "vertical" || s === "both"), w = v === "ArrowDown" && (s === "vertical" || s === "both"), k = v === "ArrowLeft" && (s === "horizontal" || s === "both"), M = v === "ArrowRight" && (s === "horizontal" || s === "both");
70
+ const { key: v } = l, p = v === "ArrowUp" && (s === "vertical" || s === "both"), w = v === "ArrowDown" && (s === "vertical" || s === "both"), k = v === "ArrowLeft" && (s === "horizontal" || s === "both"), M = v === "ArrowRight" && (s === "horizontal" || s === "both");
71
71
  if (p || k) {
72
- i.preventDefault(), m === -1 ? x() : N();
72
+ l.preventDefault(), u === -1 ? S() : N();
73
73
  return;
74
74
  }
75
75
  if (w || M) {
76
- i.preventDefault(), m === -1 ? h() : I();
76
+ l.preventDefault(), u === -1 ? f() : I();
77
77
  return;
78
78
  }
79
79
  if (v === "Home") {
80
- i.preventDefault(), h();
80
+ l.preventDefault(), f();
81
81
  return;
82
82
  }
83
83
  if (v === "End") {
84
- i.preventDefault(), x();
84
+ l.preventDefault(), S();
85
85
  return;
86
86
  }
87
- if ((v === "Enter" || v === " ") && m >= 0 && m < t.length) {
88
- i.preventDefault();
89
- const E = t[m];
90
- d?.(E, m) || b?.(E, m);
87
+ if ((v === "Enter" || v === " ") && u >= 0 && u < t.length) {
88
+ l.preventDefault();
89
+ const E = t[u];
90
+ d?.(E, u) || b?.(E, u);
91
91
  return;
92
92
  }
93
93
  if (v === "Escape") {
@@ -98,10 +98,10 @@ function xa(e) {
98
98
  [
99
99
  o,
100
100
  s,
101
- m,
101
+ u,
102
102
  t,
103
- h,
104
- x,
103
+ f,
104
+ S,
105
105
  I,
106
106
  N,
107
107
  d,
@@ -110,11 +110,11 @@ function xa(e) {
110
110
  ]
111
111
  );
112
112
  return {
113
- focusedIndex: m,
113
+ focusedIndex: u,
114
114
  setFocusedIndex: c,
115
115
  handleKeyDown: T,
116
- focusFirst: h,
117
- focusLast: x,
116
+ focusFirst: f,
117
+ focusLast: S,
118
118
  focusNext: I,
119
119
  focusPrevious: N,
120
120
  resetFocus: _
@@ -195,7 +195,7 @@ const ue = (e) => {
195
195
  { variant: "value", colSpan: 1 },
196
196
  { variant: "trend", colSpan: 2 },
197
197
  { variant: "target", colSpan: 1 }
198
- ], Se = {
198
+ ], Me = {
199
199
  position: "fixed",
200
200
  zIndex: 9999,
201
201
  background: "rgba(255,255,255,0.92)",
@@ -207,7 +207,7 @@ const ue = (e) => {
207
207
  minWidth: 148,
208
208
  paddingTop: 4,
209
209
  paddingBottom: 4
210
- }, be = (e) => ({
210
+ }, ve = (e) => ({
211
211
  padding: "6px 12px",
212
212
  fontSize: 12,
213
213
  lineHeight: 1.4,
@@ -222,7 +222,7 @@ const ue = (e) => {
222
222
  textAlign: "left",
223
223
  border: "none"
224
224
  }), pt = (e) => ({
225
- ...be(e),
225
+ ...ve(e),
226
226
  color: e ? "#4338ca" : "#4f46e5",
227
227
  fontWeight: 600
228
228
  }), ft = {
@@ -239,38 +239,38 @@ function ht({
239
239
  overflowActions: s,
240
240
  onClose: o
241
241
  }) {
242
- const [d, b] = W(null), g = R(null), u = y(() => {
243
- if (!t) return { ...Se, top: 0, left: 0 };
242
+ const [d, b] = W(null), g = R(null), m = y(() => {
243
+ if (!t) return { ...Me, top: 0, left: 0 };
244
244
  const c = t.getBoundingClientRect();
245
245
  return {
246
- ...Se,
246
+ ...Me,
247
247
  top: c.bottom + 4,
248
248
  left: c.left
249
249
  };
250
250
  }, [t]);
251
251
  if (L(() => {
252
252
  if (!e) return;
253
- const c = (f) => {
254
- f.key === "Escape" && o();
253
+ const c = (h) => {
254
+ h.key === "Escape" && o();
255
255
  };
256
256
  return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
257
257
  }, [e, o]), L(() => {
258
258
  if (!e) return;
259
- const c = (f) => {
260
- g.current && !g.current.contains(f.target) && o();
259
+ const c = (h) => {
260
+ g.current && !g.current.contains(h.target) && o();
261
261
  };
262
262
  return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
263
263
  }, [e, o]), !e) return null;
264
- const C = s && s.length > 0, m = /* @__PURE__ */ A(
264
+ const C = s && s.length > 0, u = /* @__PURE__ */ O(
265
265
  "div",
266
266
  {
267
267
  ref: g,
268
268
  "data-status-chip-menu": n,
269
269
  role: "menu",
270
270
  "aria-label": "Status actions",
271
- style: u(),
271
+ style: m(),
272
272
  children: [
273
- /* @__PURE__ */ l(
273
+ /* @__PURE__ */ i(
274
274
  "button",
275
275
  {
276
276
  role: "menuitem",
@@ -283,11 +283,11 @@ function ht({
283
283
  children: "Open in table"
284
284
  }
285
285
  ),
286
- /* @__PURE__ */ l(
286
+ /* @__PURE__ */ i(
287
287
  "button",
288
288
  {
289
289
  role: "menuitem",
290
- style: be(d === "__graph"),
290
+ style: ve(d === "__graph"),
291
291
  onMouseEnter: () => b("__graph"),
292
292
  onMouseLeave: () => b(null),
293
293
  onClick: () => {
@@ -296,12 +296,12 @@ function ht({
296
296
  children: "Show on graph"
297
297
  }
298
298
  ),
299
- C && /* @__PURE__ */ l("div", { style: ft }),
300
- C && s?.map((c) => /* @__PURE__ */ l(
299
+ C && /* @__PURE__ */ i("div", { style: ft }),
300
+ C && s?.map((c) => /* @__PURE__ */ i(
301
301
  "button",
302
302
  {
303
303
  role: "menuitem",
304
- style: be(d === c.id),
304
+ style: ve(d === c.id),
305
305
  onMouseEnter: () => b(c.id),
306
306
  onMouseLeave: () => b(null),
307
307
  onClick: () => {
@@ -314,7 +314,7 @@ function ht({
314
314
  ]
315
315
  }
316
316
  );
317
- return nt(m, document.body);
317
+ return nt(u, document.body);
318
318
  }
319
319
  ht.displayName = "StatusSlotChipMenu";
320
320
  const La = {
@@ -365,7 +365,7 @@ function Ga() {
365
365
  return "full";
366
366
  }
367
367
  }
368
- const Pe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) => {
368
+ const Fe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) => {
369
369
  const s = {
370
370
  "--gloss-swing-enter-ms": `${ae.enterDurationMs}ms`,
371
371
  "--gloss-swing-exit-ms": `${ae.exitDurationMs}ms`,
@@ -378,7 +378,7 @@ const Pe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) =
378
378
  n === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
379
379
  r ?? ""
380
380
  ].filter(Boolean).join(" ");
381
- return /* @__PURE__ */ l(
381
+ return /* @__PURE__ */ i(
382
382
  "span",
383
383
  {
384
384
  "data-testid": "gloss-swing-reveal",
@@ -391,22 +391,22 @@ const Pe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) =
391
391
  );
392
392
  }, bt = Qe(
393
393
  function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: d = "right", ariaLabel: b = "Resize card" }, g) {
394
- const u = t === "handle-visible" || t === "dragging" || t === "settling", C = (f) => {
394
+ const m = t === "handle-visible" || t === "dragging" || t === "settling", C = (h) => {
395
395
  try {
396
- f.currentTarget.setPointerCapture(f.pointerId);
396
+ h.currentTarget.setPointerCapture(h.pointerId);
397
397
  } catch {
398
398
  }
399
- n(f);
400
- }, m = (f) => {
399
+ n(h);
400
+ }, u = (h) => {
401
401
  try {
402
- f.currentTarget.hasPointerCapture?.(f.pointerId) && f.currentTarget.releasePointerCapture(f.pointerId);
402
+ h.currentTarget.hasPointerCapture?.(h.pointerId) && h.currentTarget.releasePointerCapture(h.pointerId);
403
403
  } catch {
404
404
  }
405
- a(f);
406
- }, c = (f) => {
407
- !u || !o || (f.key === "ArrowRight" ? (f.preventDefault(), o("grow")) : f.key === "ArrowLeft" && (f.preventDefault(), o("shrink")));
405
+ a(h);
406
+ }, c = (h) => {
407
+ !m || !o || (h.key === "ArrowRight" ? (h.preventDefault(), o("grow")) : h.key === "ArrowLeft" && (h.preventDefault(), o("shrink")));
408
408
  };
409
- return /* @__PURE__ */ l(Pe, { visible: u, variant: "handle", trigger: "hover", children: /* @__PURE__ */ l(
409
+ return /* @__PURE__ */ i(Fe, { visible: m, variant: "handle", trigger: "hover", children: /* @__PURE__ */ i(
410
410
  "button",
411
411
  {
412
412
  ref: g,
@@ -417,14 +417,14 @@ const Pe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) =
417
417
  className: [
418
418
  "gloss-edge-handle",
419
419
  `gloss-edge-handle--${d}`,
420
- u ? "gloss-edge-handle--visible" : ""
420
+ m ? "gloss-edge-handle--visible" : ""
421
421
  ].filter(Boolean).join(" "),
422
422
  onPointerDown: C,
423
- onPointerUp: m,
423
+ onPointerUp: u,
424
424
  onPointerEnter: r,
425
425
  onPointerLeave: s,
426
426
  onKeyDown: c,
427
- tabIndex: u ? 0 : -1
427
+ tabIndex: m ? 0 : -1
428
428
  }
429
429
  ) });
430
430
  }
@@ -437,7 +437,7 @@ function vt({
437
437
  enterMs: a = 180,
438
438
  exitMs: r = 120
439
439
  }) {
440
- return /* @__PURE__ */ l(
440
+ return /* @__PURE__ */ i(
441
441
  de.div,
442
442
  {
443
443
  "aria-hidden": "true",
@@ -479,14 +479,14 @@ class yt {
479
479
  const t = this.samples.length;
480
480
  if (t < 2) return 0;
481
481
  if (t === 2) {
482
- const [b, g] = this.samples, u = Math.max(1, g.t - b.t);
483
- return (g.x - b.x) / u * 1e3;
482
+ const [b, g] = this.samples, m = Math.max(1, g.t - b.t);
483
+ return (g.x - b.x) / m * 1e3;
484
484
  }
485
485
  const [n, a, r] = this.samples, s = (r.x - a.x) / Math.max(1, r.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, d = o;
486
486
  return (s * 3 + o * 2 + d * 1) / 6;
487
487
  }
488
488
  }
489
- const Fe = {
489
+ const Ee = {
490
490
  // Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
491
491
  // has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
492
492
  // prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
@@ -517,11 +517,11 @@ function Ha({
517
517
  dwellMs: d = 120,
518
518
  enterMs: b = 180,
519
519
  exitMs: g = 120,
520
- maxColSpan: u = 3,
520
+ maxColSpan: m = 3,
521
521
  containerRef: C,
522
- forceIdle: m
522
+ forceIdle: u
523
523
  }) {
524
- const [c, f] = W("idle"), [S, h] = W(e), x = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), i = R(u), v = R(0), p = R("idle");
524
+ const [c, h] = W("idle"), [x, f] = W(e), S = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), l = R(m), v = R(0), p = R("idle");
525
525
  L(() => {
526
526
  p.current = c;
527
527
  }, [c]);
@@ -542,25 +542,25 @@ function Ha({
542
542
  []
543
543
  ), G = R(new yt()), V = R(e);
544
544
  L(() => {
545
- V.current = S;
546
- }, [S]);
547
- const $ = se(() => ({ ...Fe, ...o ?? {} }), [o]), O = y(() => {
548
- x.current && (clearTimeout(x.current), x.current = null);
545
+ V.current = x;
546
+ }, [x]);
547
+ const $ = se(() => ({ ...Ee, ...o ?? {} }), [o]), A = y(() => {
548
+ S.current && (clearTimeout(S.current), S.current = null);
549
549
  }, []), j = y(() => {
550
550
  I.current && (clearTimeout(I.current), I.current = null);
551
551
  }, []);
552
552
  L(() => {
553
- m && (p.current === "dragging" || p.current === "settling" || (O(), j(), p.current = "idle", f("idle")));
554
- }, [m, O, j]);
553
+ u && (p.current === "dragging" || p.current === "settling" || (A(), j(), p.current = "idle", h("idle")));
554
+ }, [u, A, j]);
555
555
  const oe = y(() => {
556
- f((D) => D === "settling" || D !== "idle" ? D : (x.current = setTimeout(() => f("handle-visible"), d), "dwelling"));
556
+ h((D) => D === "settling" || D !== "idle" ? D : (S.current = setTimeout(() => h("handle-visible"), d), "dwelling"));
557
557
  }, [d]), K = y(() => {
558
- O(), f((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
559
- }, [O]), ie = y(
558
+ A(), h((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
559
+ }, [A]), ie = y(
560
560
  (D, P, F) => {
561
561
  const B = _.current, Q = B * $.snapInFraction, Z = B * $.snapOutFraction, Y = P - F, q = Math.max(
562
562
  F,
563
- i.current ?? u
563
+ l.current ?? m
564
564
  );
565
565
  let z = Y;
566
566
  for (; F + z < q; ) {
@@ -576,69 +576,69 @@ function Ha({
576
576
  }
577
577
  return Math.min(q, Math.max(1, F + z));
578
578
  },
579
- [$.snapInFraction, $.snapOutFraction, u]
580
- ), Ge = y(
579
+ [$.snapInFraction, $.snapOutFraction, m]
580
+ ), He = y(
581
581
  (D) => {
582
582
  if (p.current !== "handle-visible") return;
583
- M(), N.current = D.clientX, _.current = r, T.current = s, i.current = u;
583
+ M(), N.current = D.clientX, _.current = r, T.current = s, l.current = m;
584
584
  const P = e * r + (e - 1) * s;
585
- v.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), p.current = "dragging", f("dragging");
585
+ v.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), p.current = "dragging", h("dragging");
586
586
  },
587
- [r, s, u, e, w, M]
588
- ), Ce = y(
587
+ [r, s, m, e, w, M]
588
+ ), ke = y(
589
589
  (D) => D * _.current + (D - 1) * T.current,
590
590
  []
591
591
  ), le = y(
592
592
  (D, P) => {
593
- const F = Ce(D), B = D !== e;
593
+ const F = ke(D), B = D !== e;
594
594
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
595
- w.jump(F), B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), p.current = "idle", f("idle");
595
+ w.jump(F), B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), p.current = "idle", h("idle");
596
596
  return;
597
597
  }
598
598
  const Z = G.current.getWeightedVelocity() * $.velocityMultiplier;
599
- p.current = "settling", f("settling"), M(), k.current = xe(w, F, {
599
+ p.current = "settling", h("settling"), M(), k.current = Se(w, F, {
600
600
  type: "spring",
601
601
  stiffness: $.stiffness,
602
602
  damping: $.damping,
603
603
  mass: $.mass,
604
604
  velocity: Z,
605
605
  onComplete: () => {
606
- k.current = null, B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), p.current = "idle", f("idle");
606
+ k.current = null, B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), p.current = "idle", h("idle");
607
607
  }
608
608
  });
609
609
  },
610
- [Ce, e, t, n, a, w, $, M]
611
- ), He = y(
610
+ [ke, e, t, n, a, w, $, M]
611
+ ), Ve = y(
612
612
  (D) => {
613
613
  if (p.current !== "dragging") return;
614
- const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((i.current ?? u) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
614
+ const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((l.current ?? m) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
615
615
  G.current.push({ x: D.clientX, t: performance.now() });
616
616
  const q = ie(Y, V.current, e), z = q > e ? "grow" : q < e ? "shrink" : null;
617
617
  le(q, z);
618
618
  },
619
- [ie, e, u, le]
619
+ [ie, e, m, le]
620
620
  ), me = y(() => {
621
- if (O(), p.current === "dragging") {
621
+ if (A(), p.current === "dragging") {
622
622
  const D = v.current;
623
623
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
624
- w.jump(D), a?.(), w.jump(0), p.current = "idle", f("idle");
624
+ w.jump(D), a?.(), w.jump(0), p.current = "idle", h("idle");
625
625
  return;
626
626
  }
627
627
  const F = G.current.getWeightedVelocity();
628
- p.current = "settling", f("settling"), M(), k.current = xe(w, D, {
628
+ p.current = "settling", h("settling"), M(), k.current = Se(w, D, {
629
629
  type: "spring",
630
630
  stiffness: $.stiffness,
631
631
  damping: $.damping,
632
632
  mass: $.mass,
633
633
  velocity: F,
634
634
  onComplete: () => {
635
- k.current = null, a?.(), w.jump(0), p.current = "idle", f("idle");
635
+ k.current = null, a?.(), w.jump(0), p.current = "idle", h("idle");
636
636
  }
637
637
  });
638
638
  return;
639
639
  }
640
- p.current === "handle-visible" && (a?.(), p.current = "cancelled", f("cancelled"));
641
- }, [O, w, a, $, M]);
640
+ p.current === "handle-visible" && (a?.(), p.current = "cancelled", h("cancelled"));
641
+ }, [A, w, a, $, M]);
642
642
  L(() => {
643
643
  if (c !== "dragging" && c !== "handle-visible") return;
644
644
  const D = (P) => {
@@ -647,67 +647,67 @@ function Ha({
647
647
  return window.addEventListener("keydown", D), () => window.removeEventListener("keydown", D);
648
648
  }, [c, me]), L(() => {
649
649
  if (c !== "dragging") {
650
- h(e);
650
+ f(e);
651
651
  return;
652
652
  }
653
653
  const D = (P) => {
654
- const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(u), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
654
+ const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(m), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
655
655
  w.set(q);
656
- const z = _.current, _e = (u - e) * z, te = (1 - e) * z, Ze = Math.max(te, Math.min(_e, F));
656
+ const z = _.current, xe = (m - e) * z, te = (1 - e) * z, Ye = Math.max(te, Math.min(xe, F));
657
657
  G.current.push({ x: P.clientX, t: performance.now() });
658
- const ge = ie(Ze, V.current, e);
659
- ge !== V.current && (V.current = ge, h(ge));
658
+ const ge = ie(Ye, V.current, e);
659
+ ge !== V.current && (V.current = ge, f(ge));
660
660
  };
661
661
  return window.addEventListener("pointermove", D), () => window.removeEventListener("pointermove", D);
662
- }, [c, e, w, ie, u, E]), L(() => () => {
663
- O(), j();
664
- }, [O, j]), L(() => {
662
+ }, [c, e, w, ie, m, E]), L(() => () => {
663
+ A(), j();
664
+ }, [A, j]), L(() => {
665
665
  if (c !== "cancelled") return;
666
- const D = setTimeout(() => f("idle"), g);
666
+ const D = setTimeout(() => h("idle"), g);
667
667
  return () => clearTimeout(D);
668
668
  }, [c, g]);
669
- const Ve = y(
669
+ const je = y(
670
670
  (D) => {
671
671
  if (p.current === "settling") return;
672
- const F = Math.min(u, Math.max(1, e + (D === "grow" ? 1 : -1)));
672
+ const F = Math.min(m, Math.max(1, e + (D === "grow" ? 1 : -1)));
673
673
  if (F === e) return;
674
- _.current = r, T.current = s, i.current = u, G.current.clear();
674
+ _.current = r, T.current = s, l.current = m, G.current.clear();
675
675
  const B = e * r + (e - 1) * s;
676
676
  v.current = B, w.jump(B), le(F, D);
677
677
  },
678
- [e, r, s, u, w, le]
679
- ), ke = y(() => {
678
+ [e, r, s, m, w, le]
679
+ ), _e = y(() => {
680
680
  j(), I.current = setTimeout(() => {
681
- p.current === "handle-visible" && (p.current = "idle", f("idle"));
681
+ p.current === "handle-visible" && (p.current = "idle", h("idle"));
682
682
  }, 5e3);
683
- }, [j]), je = y(() => {
684
- p.current === "idle" && (O(), p.current = "handle-visible", f("handle-visible"), ke());
685
- }, [O, ke]), Ue = y(() => {
686
- j(), p.current === "handle-visible" && (p.current = "idle", f("idle"));
683
+ }, [j]), Ue = y(() => {
684
+ p.current === "idle" && (A(), p.current = "handle-visible", h("handle-visible"), _e());
685
+ }, [A, _e]), Ze = y(() => {
686
+ j(), p.current === "handle-visible" && (p.current = "idle", h("idle"));
687
687
  }, [j]);
688
688
  return {
689
689
  state: c,
690
690
  enterEdgeZone: oe,
691
691
  leaveEdgeZone: K,
692
692
  handleProps: {
693
- onPointerDown: Ge,
694
- onPointerUp: He,
693
+ onPointerDown: He,
694
+ onPointerUp: Ve,
695
695
  // Bug E: handle continues zone presence so pointer crossing sentinel→handle
696
696
  // doesn't collapse state. handle's pointerenter = stay in zone.
697
697
  onPointerEnter: oe,
698
698
  onPointerLeave: K
699
699
  },
700
- previewColSpan: S,
700
+ previewColSpan: x,
701
701
  ghostProps: {
702
702
  visible: c === "dragging" || c === "settling",
703
- targetColSpan: S,
703
+ targetColSpan: x,
704
704
  ghostWidth: w,
705
705
  enterMs: b,
706
706
  exitMs: g
707
707
  },
708
- onKeyboardStep: Ve,
709
- onTouchReveal: je,
710
- onTouchDismiss: Ue,
708
+ onKeyboardStep: je,
709
+ onTouchReveal: Ue,
710
+ onTouchDismiss: Ze,
711
711
  cancel: me
712
712
  };
713
713
  }
@@ -983,7 +983,7 @@ const ja = [
983
983
  trend: { value: 0, direction: "flat" },
984
984
  subtitle: "QTD"
985
985
  };
986
- function Ee({
986
+ function Oe({
987
987
  open: e,
988
988
  onDismiss: t,
989
989
  anchorRef: n,
@@ -994,21 +994,21 @@ function Ee({
994
994
  onManagePages: d
995
995
  }) {
996
996
  const b = y(
997
- (m) => {
998
- s(m), t();
997
+ (u) => {
998
+ s(u), t();
999
999
  },
1000
1000
  [s, t]
1001
1001
  ), g = y(
1002
- (m, c) => {
1003
- (c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(m));
1002
+ (u, c) => {
1003
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(u));
1004
1004
  },
1005
1005
  [b]
1006
- ), u = y(() => {
1006
+ ), m = y(() => {
1007
1007
  o(), t();
1008
1008
  }, [o, t]), C = y(() => {
1009
1009
  d(), t();
1010
1010
  }, [d, t]);
1011
- return /* @__PURE__ */ A(
1011
+ return /* @__PURE__ */ O(
1012
1012
  at,
1013
1013
  {
1014
1014
  definition: {
@@ -1022,9 +1022,9 @@ function Ee({
1022
1022
  anchorRef: n,
1023
1023
  className: "gloss-page-dropdown",
1024
1024
  children: [
1025
- /* @__PURE__ */ l("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((m) => {
1026
- const c = m.id === r;
1027
- return /* @__PURE__ */ A(
1025
+ /* @__PURE__ */ i("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
1026
+ const c = u.id === r;
1027
+ return /* @__PURE__ */ O(
1028
1028
  "li",
1029
1029
  {
1030
1030
  role: "menuitemradio",
@@ -1032,40 +1032,40 @@ function Ee({
1032
1032
  "aria-current": c ? "page" : void 0,
1033
1033
  tabIndex: 0,
1034
1034
  className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
1035
- onClick: () => b(m.id),
1036
- onKeyDown: (f) => g(m.id, f),
1035
+ onClick: () => b(u.id),
1036
+ onKeyDown: (h) => g(u.id, h),
1037
1037
  children: [
1038
- /* @__PURE__ */ l(
1038
+ /* @__PURE__ */ i(
1039
1039
  "span",
1040
1040
  {
1041
1041
  className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
1042
1042
  }
1043
1043
  ),
1044
- /* @__PURE__ */ l(
1044
+ /* @__PURE__ */ i(
1045
1045
  "span",
1046
1046
  {
1047
- className: `gloss-page-dropdown__name${m.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
1048
- children: m.name
1047
+ className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
1048
+ children: u.name
1049
1049
  }
1050
1050
  ),
1051
- /* @__PURE__ */ l("span", { className: "gloss-page-dropdown__count", children: m.cardCount })
1051
+ /* @__PURE__ */ i("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
1052
1052
  ]
1053
1053
  },
1054
- m.id
1054
+ u.id
1055
1055
  );
1056
1056
  }) }),
1057
- /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
1058
- /* @__PURE__ */ l(
1057
+ /* @__PURE__ */ i("hr", { className: "gloss-page-dropdown__separator" }),
1058
+ /* @__PURE__ */ i(
1059
1059
  "button",
1060
1060
  {
1061
1061
  role: "menuitem",
1062
1062
  className: "gloss-page-dropdown__action",
1063
- onClick: u,
1063
+ onClick: m,
1064
1064
  children: "+ New page"
1065
1065
  }
1066
1066
  ),
1067
- /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
1068
- /* @__PURE__ */ l(
1067
+ /* @__PURE__ */ i("hr", { className: "gloss-page-dropdown__separator" }),
1068
+ /* @__PURE__ */ i(
1069
1069
  "button",
1070
1070
  {
1071
1071
  role: "menuitem",
@@ -1078,7 +1078,7 @@ function Ee({
1078
1078
  }
1079
1079
  );
1080
1080
  }
1081
- Ee.displayName = "PageDropdown";
1081
+ Oe.displayName = "PageDropdown";
1082
1082
  const xt = function({
1083
1083
  currentIndex: t,
1084
1084
  total: n,
@@ -1086,51 +1086,56 @@ const xt = function({
1086
1086
  onPageChange: r,
1087
1087
  onCreatePage: s,
1088
1088
  onManagePages: o,
1089
- maskRadius: d = "var(--gloss-radius-md)"
1089
+ maskRadius: d = "var(--gloss-radius-md)",
1090
+ displayMode: b = "count",
1091
+ activePage: g
1090
1092
  }) {
1091
- const b = R(null), [g, u] = W(!1), C = y(() => {
1093
+ const m = R(null), [C, u] = W(!1), c = y(() => {
1092
1094
  u((f) => !f);
1093
- }, []), m = y(() => {
1095
+ }, []), h = y(() => {
1094
1096
  u(!1);
1095
- }, []), c = a[t]?.id ?? "";
1096
- return /* @__PURE__ */ A(
1097
+ }, []), x = a[t]?.id ?? "";
1098
+ return /* @__PURE__ */ O(
1097
1099
  "div",
1098
1100
  {
1099
1101
  className: "gloss-page-chip",
1100
- ref: b,
1102
+ ref: m,
1101
1103
  style: { position: "absolute", top: 0, right: 0 },
1102
1104
  "data-page-chip": !0,
1103
1105
  children: [
1104
- /* @__PURE__ */ l(
1106
+ /* @__PURE__ */ i(
1105
1107
  "div",
1106
1108
  {
1107
1109
  className: "gloss-page-chip__nuzzle",
1108
1110
  style: { "--_nuzzle-r": d }
1109
1111
  }
1110
1112
  ),
1111
- /* @__PURE__ */ A(
1113
+ /* @__PURE__ */ i(
1112
1114
  "button",
1113
1115
  {
1114
1116
  className: "gloss-page-chip__trigger",
1115
1117
  "aria-haspopup": "menu",
1116
- "aria-expanded": g,
1117
- "aria-label": `Page ${t + 1} of ${n}. Click to switch pages.`,
1118
- onClick: C,
1119
- children: [
1118
+ "aria-expanded": C,
1119
+ "aria-label": b === "name" ? `${g ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1120
+ onClick: c,
1121
+ children: b === "name" ? /* @__PURE__ */ O(be, { children: [
1122
+ /* @__PURE__ */ i("span", { className: "gloss-page-chip__trigger-name", children: g ?? "" }),
1123
+ /* @__PURE__ */ i("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
1124
+ ] }) : /* @__PURE__ */ O(be, { children: [
1120
1125
  t + 1,
1121
1126
  " / ",
1122
1127
  n
1123
- ]
1128
+ ] })
1124
1129
  }
1125
1130
  ),
1126
- /* @__PURE__ */ l(
1127
- Ee,
1131
+ /* @__PURE__ */ i(
1132
+ Oe,
1128
1133
  {
1129
- open: g,
1130
- onDismiss: m,
1131
- anchorRef: b,
1134
+ open: C,
1135
+ onDismiss: h,
1136
+ anchorRef: m,
1132
1137
  pages: a,
1133
- activePageId: c,
1138
+ activePageId: x,
1134
1139
  onPageChange: r,
1135
1140
  onCreatePage: s,
1136
1141
  onManagePages: o
@@ -1408,13 +1413,13 @@ const Ja = [
1408
1413
  lastDate: "2026-03-01"
1409
1414
  }
1410
1415
  ];
1411
- function ve(e) {
1416
+ function ye(e) {
1412
1417
  return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
1413
1418
  }
1414
- function Oe(e) {
1419
+ function Ae(e) {
1415
1420
  return e.toLocaleString("en-US");
1416
1421
  }
1417
- function Ae(e) {
1422
+ function Le(e) {
1418
1423
  return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
1419
1424
  }
1420
1425
  const re = H.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), tn = [
@@ -1447,7 +1452,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1447
1452
  align: "right",
1448
1453
  headerAlign: "right",
1449
1454
  cellClassName: "gloss-tabular-nums",
1450
- renderCell: ({ row: e }) => e.skuCount ? Oe(e.skuCount) : re
1455
+ renderCell: ({ row: e }) => e.skuCount ? Ae(e.skuCount) : re
1451
1456
  },
1452
1457
  {
1453
1458
  field: "total",
@@ -1457,7 +1462,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1457
1462
  align: "right",
1458
1463
  headerAlign: "right",
1459
1464
  cellClassName: "gloss-tabular-nums",
1460
- renderCell: ({ row: e }) => e.total ? ve(e.total) : re
1465
+ renderCell: ({ row: e }) => e.total ? ye(e.total) : re
1461
1466
  },
1462
1467
  {
1463
1468
  field: "date",
@@ -1467,7 +1472,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1467
1472
  align: "right",
1468
1473
  headerAlign: "right",
1469
1474
  cellClassName: "gloss-tabular-nums",
1470
- renderCell: ({ row: e }) => e.date ? Ae(e.date) : ""
1475
+ renderCell: ({ row: e }) => e.date ? Le(e.date) : ""
1471
1476
  }
1472
1477
  ], an = [
1473
1478
  {
@@ -1501,7 +1506,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1501
1506
  align: "right",
1502
1507
  headerAlign: "right",
1503
1508
  cellClassName: "gloss-tabular-nums",
1504
- renderCell: ({ row: e }) => e.price ? ve(e.price) : re
1509
+ renderCell: ({ row: e }) => e.price ? ye(e.price) : re
1505
1510
  },
1506
1511
  {
1507
1512
  field: "quantity",
@@ -1511,7 +1516,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1511
1516
  align: "right",
1512
1517
  headerAlign: "right",
1513
1518
  cellClassName: "gloss-tabular-nums gloss-drillable",
1514
- renderCell: ({ row: e }) => e.quantity ? Oe(e.quantity) : re
1519
+ renderCell: ({ row: e }) => e.quantity ? Ae(e.quantity) : re
1515
1520
  },
1516
1521
  {
1517
1522
  field: "total",
@@ -1521,7 +1526,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1521
1526
  align: "right",
1522
1527
  headerAlign: "right",
1523
1528
  cellClassName: "gloss-tabular-nums gloss-drillable",
1524
- renderCell: ({ row: e }) => e.total ? ve(e.total) : re
1529
+ renderCell: ({ row: e }) => e.total ? ye(e.total) : re
1525
1530
  },
1526
1531
  {
1527
1532
  field: "lastDate",
@@ -1531,7 +1536,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1531
1536
  align: "right",
1532
1537
  headerAlign: "right",
1533
1538
  cellClassName: "gloss-tabular-nums",
1534
- renderCell: ({ row: e }) => e.lastDate ? Ae(e.lastDate) : ""
1539
+ renderCell: ({ row: e }) => e.lastDate ? Le(e.lastDate) : ""
1535
1540
  }
1536
1541
  ], St = [
1537
1542
  { id: "c-001", label: "ABC Home Goods" },
@@ -1547,8 +1552,8 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1547
1552
  { id: "i-005", label: "Velvet Accent Cushion" }
1548
1553
  ], pe = (e) => {
1549
1554
  }, Tt = (e) => {
1550
- }, Me = (e, t) => {
1551
- }, Le = {
1555
+ }, Te = (e, t) => {
1556
+ }, $e = {
1552
1557
  vizState: {
1553
1558
  type: "orders",
1554
1559
  quant: "$",
@@ -1559,14 +1564,14 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1559
1564
  onTypeChange: pe,
1560
1565
  onQuantChange: Tt,
1561
1566
  onEntityTypeChange: pe,
1562
- onEntitySelect: Me,
1563
- onItemSelect: Me,
1567
+ onEntitySelect: Te,
1568
+ onItemSelect: Te,
1564
1569
  onTimeFrameChange: pe,
1565
1570
  userType: "sales-agency",
1566
1571
  entityFilterOptions: St,
1567
1572
  itemFilterOptions: Mt
1568
1573
  }, nn = {
1569
- ...Le,
1574
+ ...$e,
1570
1575
  vizState: {
1571
1576
  type: "items",
1572
1577
  quant: "$",
@@ -1575,7 +1580,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1575
1580
  timeFrame: "YTD"
1576
1581
  }
1577
1582
  }, rn = {
1578
- ...Le,
1583
+ ...$e,
1579
1584
  vizState: {
1580
1585
  type: "orders",
1581
1586
  quant: "#",
@@ -1799,7 +1804,7 @@ const re = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1799
1804
  color: lt,
1800
1805
  pinned: ct
1801
1806
  };
1802
- function Te(...e) {
1807
+ function Re(...e) {
1803
1808
  return e.filter(Boolean).join(" ");
1804
1809
  }
1805
1810
  function Ot() {
@@ -1821,79 +1826,79 @@ const At = ({
1821
1826
  }) => {
1822
1827
  const s = R(null), o = R([]), d = Ot(), b = se(() => Array.from(e), [e]);
1823
1828
  if (b.length === 0) return null;
1824
- const g = a ? `Configure ${a}: choose a dimension` : void 0, u = d ? "10ms" : "200ms", C = (m, c) => {
1825
- const f = b.length - 1, S = (h) => {
1826
- const x = o.current[h];
1827
- x && x.focus();
1829
+ const g = a ? `Configure ${a}: choose a dimension` : void 0, m = d ? "10ms" : "200ms", C = (u, c) => {
1830
+ const h = b.length - 1, x = (f) => {
1831
+ const S = o.current[f];
1832
+ S && S.focus();
1828
1833
  };
1829
- switch (m.key) {
1834
+ switch (u.key) {
1830
1835
  case "ArrowRight":
1831
1836
  case "ArrowDown": {
1832
- m.preventDefault(), S(c === f ? 0 : c + 1);
1837
+ u.preventDefault(), x(c === h ? 0 : c + 1);
1833
1838
  break;
1834
1839
  }
1835
1840
  case "ArrowLeft":
1836
1841
  case "ArrowUp": {
1837
- m.preventDefault(), S(c === 0 ? f : c - 1);
1842
+ u.preventDefault(), x(c === 0 ? h : c - 1);
1838
1843
  break;
1839
1844
  }
1840
1845
  case "Home": {
1841
- m.preventDefault(), S(0);
1846
+ u.preventDefault(), x(0);
1842
1847
  break;
1843
1848
  }
1844
1849
  case "End": {
1845
- m.preventDefault(), S(f);
1850
+ u.preventDefault(), x(h);
1846
1851
  break;
1847
1852
  }
1848
1853
  case "Enter":
1849
1854
  case " ": {
1850
- m.preventDefault(), t(b[c]);
1855
+ u.preventDefault(), t(b[c]);
1851
1856
  break;
1852
1857
  }
1853
1858
  }
1854
1859
  };
1855
- return /* @__PURE__ */ l(
1860
+ return /* @__PURE__ */ i(
1856
1861
  "div",
1857
1862
  {
1858
1863
  ref: s,
1859
1864
  role: "group",
1860
1865
  "aria-label": g,
1861
- className: Te("gloss-reconfig-backside-buttons", r),
1866
+ className: Re("gloss-reconfig-backside-buttons", r),
1862
1867
  style: {
1863
1868
  // Expose the reduced-motion-resolved duration as a CSS custom prop
1864
1869
  // so the SCSS transition rule can consume it without a nested media
1865
1870
  // query in the JS. Also surfaces the value for the unit test.
1866
- "--gloss-reconfig-backside-buttons-transition-duration": u
1871
+ "--gloss-reconfig-backside-buttons-transition-duration": m
1867
1872
  },
1868
- children: b.map((m, c) => {
1869
- const f = Et[m], S = n === m;
1870
- return /* @__PURE__ */ A(
1873
+ children: b.map((u, c) => {
1874
+ const h = Et[u], x = n === u;
1875
+ return /* @__PURE__ */ O(
1871
1876
  "button",
1872
1877
  {
1873
- ref: (h) => {
1874
- o.current[c] = h;
1878
+ ref: (f) => {
1879
+ o.current[c] = f;
1875
1880
  },
1876
1881
  type: "button",
1877
- "data-dimension": m,
1878
- className: Te(
1882
+ "data-dimension": u,
1883
+ className: Re(
1879
1884
  "gloss-reconfig-backside-buttons__button",
1880
- S && "gloss-reconfig-backside-buttons__button--active"
1885
+ x && "gloss-reconfig-backside-buttons__button--active"
1881
1886
  ),
1882
- "aria-current": S ? "true" : void 0,
1883
- onClick: () => t(m),
1884
- onKeyDown: (h) => C(h, c),
1887
+ "aria-current": x ? "true" : void 0,
1888
+ onClick: () => t(u),
1889
+ onKeyDown: (f) => C(f, c),
1885
1890
  children: [
1886
- /* @__PURE__ */ l(
1887
- f,
1891
+ /* @__PURE__ */ i(
1892
+ h,
1888
1893
  {
1889
1894
  className: "gloss-reconfig-backside-buttons__button-icon",
1890
1895
  "aria-hidden": "true"
1891
1896
  }
1892
1897
  ),
1893
- /* @__PURE__ */ l("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Ft[m] })
1898
+ /* @__PURE__ */ i("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Ft[u] })
1894
1899
  ]
1895
1900
  },
1896
- m
1901
+ u
1897
1902
  );
1898
1903
  })
1899
1904
  }
@@ -1920,7 +1925,7 @@ function U(e, t) {
1920
1925
  }, t)
1921
1926
  };
1922
1927
  }
1923
- function Re(e, t) {
1928
+ function Ie(e, t) {
1924
1929
  return {
1925
1930
  ...U(e, t),
1926
1931
  colSpan: 2
@@ -1929,11 +1934,11 @@ function Re(e, t) {
1929
1934
  const fn = [
1930
1935
  U("total-revenue", "Total Revenue"),
1931
1936
  U("total-orders", "Total Orders"),
1932
- Re("revenue-trend", "Revenue Trend (2x)"),
1937
+ Ie("revenue-trend", "Revenue Trend (2x)"),
1933
1938
  U("avg-order", "Avg Order Value"),
1934
1939
  U("new-customers", "New Customers"),
1935
1940
  U("top-salesperson", "Top Salesperson"),
1936
- Re("order-trend", "Order Trend (2x)"),
1941
+ Ie("order-trend", "Order Trend (2x)"),
1937
1942
  U("repeat-rate", "Repeat Rate"),
1938
1943
  U("open-orders", "Open Orders"),
1939
1944
  U("shipped-orders", "Shipped Orders")
@@ -2031,7 +2036,7 @@ const yn = [
2031
2036
  { id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
2032
2037
  { id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
2033
2038
  ];
2034
- function ye(e) {
2039
+ function we(e) {
2035
2040
  switch (e) {
2036
2041
  case "wide":
2037
2042
  return { cols: 2, rows: 1 };
@@ -2045,21 +2050,21 @@ function ye(e) {
2045
2050
  function Lt(e) {
2046
2051
  let t = 0;
2047
2052
  for (const a of e) {
2048
- const r = ye(a.size), s = a.gridPosition.col + r.cols - 1;
2053
+ const r = we(a.size), s = a.gridPosition.col + r.cols - 1;
2049
2054
  s > t && (t = s);
2050
2055
  }
2051
2056
  return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
2052
2057
  }
2053
2058
  const $t = function(t) {
2054
2059
  if (t.renderMode === "discrete")
2055
- return /* @__PURE__ */ l(
2060
+ return /* @__PURE__ */ i(
2056
2061
  "div",
2057
2062
  {
2058
2063
  className: "gloss-metric-group gloss-metric-group--discrete",
2059
2064
  style: { display: "contents" },
2060
2065
  children: t.cards.map((r) => {
2061
- const s = ye(r.size);
2062
- return /* @__PURE__ */ l(
2066
+ const s = we(r.size);
2067
+ return /* @__PURE__ */ i(
2063
2068
  "div",
2064
2069
  {
2065
2070
  className: "gloss-metric-group__slot",
@@ -2075,7 +2080,7 @@ const $t = function(t) {
2075
2080
  }
2076
2081
  );
2077
2082
  const { cards: n, composite: a } = t;
2078
- return /* @__PURE__ */ A(
2083
+ return /* @__PURE__ */ O(
2079
2084
  "div",
2080
2085
  {
2081
2086
  className: "gloss-metric-group gloss-metric-group--composite",
@@ -2094,16 +2099,16 @@ const $t = function(t) {
2094
2099
  "aria-label": a?.label,
2095
2100
  tabIndex: void 0,
2096
2101
  children: [
2097
- a?.accentColor && /* @__PURE__ */ l(
2102
+ a?.accentColor && /* @__PURE__ */ i(
2098
2103
  "div",
2099
2104
  {
2100
2105
  className: "gloss-metric-group__accent",
2101
2106
  style: { background: a.accentColor }
2102
2107
  }
2103
2108
  ),
2104
- a?.label && /* @__PURE__ */ A("div", { className: "gloss-metric-group__label", children: [
2105
- /* @__PURE__ */ l("span", { children: a.label }),
2106
- a?.trend && /* @__PURE__ */ l(
2109
+ a?.label && /* @__PURE__ */ O("div", { className: "gloss-metric-group__label", children: [
2110
+ /* @__PURE__ */ i("span", { children: a.label }),
2111
+ a?.trend && /* @__PURE__ */ i(
2107
2112
  "span",
2108
2113
  {
2109
2114
  className: "gloss-metric-group__trend",
@@ -2112,7 +2117,7 @@ const $t = function(t) {
2112
2117
  }
2113
2118
  )
2114
2119
  ] }),
2115
- /* @__PURE__ */ l(
2120
+ /* @__PURE__ */ i(
2116
2121
  "div",
2117
2122
  {
2118
2123
  className: "gloss-metric-group__slots",
@@ -2122,8 +2127,8 @@ const $t = function(t) {
2122
2127
  gridTemplateColumns: Lt(n)
2123
2128
  },
2124
2129
  children: n.map((r) => {
2125
- const s = ye(r.size);
2126
- return /* @__PURE__ */ l(
2130
+ const s = we(r.size);
2131
+ return /* @__PURE__ */ i(
2127
2132
  "div",
2128
2133
  {
2129
2134
  className: "gloss-metric-group__slot--composite",
@@ -2143,15 +2148,15 @@ const $t = function(t) {
2143
2148
  );
2144
2149
  };
2145
2150
  $t.displayName = "MetricGroupContainer";
2146
- const $e = "resize.tuning.dev", Bt = {
2147
- ...Fe,
2151
+ const Be = "resize.tuning.dev", Bt = {
2152
+ ...Ee,
2148
2153
  snapInPx: 60,
2149
2154
  snapOutPx: 90
2150
2155
  }, J = Bt;
2151
2156
  function zt() {
2152
2157
  if (typeof window > "u") return { ...J };
2153
2158
  try {
2154
- const e = window.localStorage.getItem($e);
2159
+ const e = window.localStorage.getItem(Be);
2155
2160
  if (!e) return { ...J };
2156
2161
  const t = JSON.parse(e);
2157
2162
  return !t || typeof t != "object" || Array.isArray(t) ? { ...J } : { ...J, ...t };
@@ -2164,7 +2169,7 @@ function Kt() {
2164
2169
  L(() => {
2165
2170
  if (!(typeof window > "u"))
2166
2171
  try {
2167
- window.localStorage.setItem($e, JSON.stringify(e));
2172
+ window.localStorage.setItem(Be, JSON.stringify(e));
2168
2173
  } catch {
2169
2174
  }
2170
2175
  }, [e]);
@@ -2198,7 +2203,7 @@ function Gt(e, t) {
2198
2203
  return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
2199
2204
  }
2200
2205
  function Ht() {
2201
- return /* @__PURE__ */ A(
2206
+ return /* @__PURE__ */ O(
2202
2207
  "svg",
2203
2208
  {
2204
2209
  width: "14",
@@ -2211,8 +2216,8 @@ function Ht() {
2211
2216
  strokeLinejoin: "round",
2212
2217
  "aria-hidden": "true",
2213
2218
  children: [
2214
- /* @__PURE__ */ l("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2215
- /* @__PURE__ */ l("polyline", { points: "3 3 3 8 8 8" })
2219
+ /* @__PURE__ */ i("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2220
+ /* @__PURE__ */ i("polyline", { points: "3 3 3 8 8 8" })
2216
2221
  ]
2217
2222
  }
2218
2223
  );
@@ -2224,19 +2229,19 @@ function Vt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
2224
2229
  },
2225
2230
  [a]
2226
2231
  );
2227
- return /* @__PURE__ */ A(
2232
+ return /* @__PURE__ */ O(
2228
2233
  "div",
2229
2234
  {
2230
2235
  className: `gloss-dev-tuning-panel__row${r ? " gloss-dev-tuning-panel__row--flash" : ""}`,
2231
2236
  "data-tuning-row": e.key,
2232
2237
  onKeyDown: s,
2233
2238
  children: [
2234
- /* @__PURE__ */ l("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2235
- /* @__PURE__ */ A("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2239
+ /* @__PURE__ */ i("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2240
+ /* @__PURE__ */ O("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2236
2241
  Gt(t, e.step),
2237
2242
  e.unit ? ` ${e.unit}` : ""
2238
2243
  ] }),
2239
- /* @__PURE__ */ l(
2244
+ /* @__PURE__ */ i(
2240
2245
  "input",
2241
2246
  {
2242
2247
  id: `gloss-dtp-${e.key}`,
@@ -2250,14 +2255,14 @@ function Vt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
2250
2255
  onChange: (o) => n(Number(o.target.value))
2251
2256
  }
2252
2257
  ),
2253
- /* @__PURE__ */ l(
2258
+ /* @__PURE__ */ i(
2254
2259
  "button",
2255
2260
  {
2256
2261
  type: "button",
2257
2262
  className: "gloss-dev-tuning-panel__reset",
2258
2263
  "aria-label": `Reset ${e.label}`,
2259
2264
  onClick: a,
2260
- children: /* @__PURE__ */ l(Ht, {})
2265
+ children: /* @__PURE__ */ i(Ht, {})
2261
2266
  }
2262
2267
  )
2263
2268
  ]
@@ -2273,21 +2278,21 @@ function jt() {
2273
2278
  }
2274
2279
  }
2275
2280
  function Ut(e = {}) {
2276
- return jt() ? /* @__PURE__ */ l(Zt, {}) : null;
2281
+ return jt() ? /* @__PURE__ */ i(Zt, {}) : null;
2277
2282
  }
2278
2283
  Ut.displayName = "DevTuningPanel";
2279
2284
  function Zt() {
2280
- const e = Kt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), d = R(null), b = y((m) => {
2281
- d.current && clearTimeout(d.current), o(m), d.current = setTimeout(() => {
2285
+ const e = Kt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), d = R(null), b = y((u) => {
2286
+ d.current && clearTimeout(d.current), o(u), d.current = setTimeout(() => {
2282
2287
  o(null), d.current = null;
2283
2288
  }, 200);
2284
2289
  }, []), g = y(
2285
- (m, c) => {
2286
- n(m, c), m === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
2290
+ (u, c) => {
2291
+ n(u, c), u === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
2287
2292
  },
2288
2293
  [n, t.snapOutPx, b]
2289
- ), u = se(() => Wt, []), C = tt();
2290
- return /* @__PURE__ */ A(
2294
+ ), m = se(() => Wt, []), C = tt();
2295
+ return /* @__PURE__ */ O(
2291
2296
  de.div,
2292
2297
  {
2293
2298
  className: "gloss-dev-tuning-panel",
@@ -2299,29 +2304,29 @@ function Zt() {
2299
2304
  dragControls: C,
2300
2305
  dragMomentum: !1,
2301
2306
  children: [
2302
- /* @__PURE__ */ A(
2307
+ /* @__PURE__ */ O(
2303
2308
  "div",
2304
2309
  {
2305
2310
  className: "gloss-dev-tuning-panel__header",
2306
- onPointerDown: (m) => C.start(m),
2311
+ onPointerDown: (u) => C.start(u),
2307
2312
  children: [
2308
- /* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2309
- /* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2313
+ /* @__PURE__ */ i("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2314
+ /* @__PURE__ */ i("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2310
2315
  ]
2311
2316
  }
2312
2317
  ),
2313
- /* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__body", children: u.map((m) => /* @__PURE__ */ l(
2318
+ /* @__PURE__ */ i("div", { className: "gloss-dev-tuning-panel__body", children: m.map((u) => /* @__PURE__ */ i(
2314
2319
  Vt,
2315
2320
  {
2316
- spec: m,
2317
- value: t[m.key],
2318
- onChange: (c) => g(m.key, c),
2319
- onReset: () => a(m.key),
2320
- flashing: s === m.key
2321
+ spec: u,
2322
+ value: t[u.key],
2323
+ onChange: (c) => g(u.key, c),
2324
+ onReset: () => a(u.key),
2325
+ flashing: s === u.key
2321
2326
  },
2322
- m.key
2327
+ u.key
2323
2328
  )) }),
2324
- /* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ l(
2329
+ /* @__PURE__ */ i("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ i(
2325
2330
  "button",
2326
2331
  {
2327
2332
  type: "button",
@@ -2345,32 +2350,32 @@ function Cn({
2345
2350
  topY: d,
2346
2351
  bottomY: b,
2347
2352
  enterMs: g = ee.envelopeEnterMs,
2348
- exitMs: u = ee.envelopeExitMs,
2353
+ exitMs: m = ee.envelopeExitMs,
2349
2354
  className: C,
2350
- style: m
2355
+ style: u
2351
2356
  }) {
2352
2357
  if (e === "hidden") return null;
2353
- const c = Math.max(0, r - a), f = Math.max(0, b - d), S = {
2358
+ const c = Math.max(0, r - a), h = Math.max(0, b - d), x = {
2354
2359
  "--gloss-resize-envelope-enter-ms": `${g}ms`,
2355
- "--gloss-resize-envelope-exit-ms": `${u}ms`,
2360
+ "--gloss-resize-envelope-exit-ms": `${m}ms`,
2356
2361
  "--gloss-resize-envelope-origin-x": `${t - a}px`,
2357
2362
  "--gloss-resize-envelope-origin-y": `${n - d}px`,
2358
2363
  left: a,
2359
2364
  top: d,
2360
2365
  width: c,
2361
- height: f,
2362
- ...m
2366
+ height: h,
2367
+ ...u
2363
2368
  };
2364
- return /* @__PURE__ */ A(
2369
+ return /* @__PURE__ */ O(
2365
2370
  "div",
2366
2371
  {
2367
2372
  className: ["gloss-resize-envelope", `gloss-resize-envelope--state-${e}`, C].filter(Boolean).join(" "),
2368
2373
  "data-state": e,
2369
2374
  "data-testid": "gloss-resize-envelope",
2370
- style: S,
2375
+ style: x,
2371
2376
  "aria-hidden": "true",
2372
2377
  children: [
2373
- /* @__PURE__ */ l(
2378
+ /* @__PURE__ */ i(
2374
2379
  "div",
2375
2380
  {
2376
2381
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--left",
@@ -2378,7 +2383,7 @@ function Cn({
2378
2383
  style: { left: 0 }
2379
2384
  }
2380
2385
  ),
2381
- /* @__PURE__ */ l(
2386
+ /* @__PURE__ */ i(
2382
2387
  "div",
2383
2388
  {
2384
2389
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--min-boundary",
@@ -2386,7 +2391,7 @@ function Cn({
2386
2391
  style: { left: s - a }
2387
2392
  }
2388
2393
  ),
2389
- /* @__PURE__ */ l(
2394
+ /* @__PURE__ */ i(
2390
2395
  "div",
2391
2396
  {
2392
2397
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
@@ -2394,14 +2399,14 @@ function Cn({
2394
2399
  style: { left: c - 1 }
2395
2400
  }
2396
2401
  ),
2397
- o.filter((h) => h > s && h < r).map((h) => /* @__PURE__ */ l(
2402
+ o.filter((f) => f > s && f < r).map((f) => /* @__PURE__ */ i(
2398
2403
  "div",
2399
2404
  {
2400
2405
  className: "gloss-resize-envelope__snap-line",
2401
2406
  "data-snap-line": !0,
2402
- style: { left: h - a }
2407
+ style: { left: f - a }
2403
2408
  },
2404
- h
2409
+ f
2405
2410
  ))
2406
2411
  ]
2407
2412
  }
@@ -2417,7 +2422,7 @@ function kn({
2417
2422
  ...o
2418
2423
  }) {
2419
2424
  const d = a != null ? { ...o.style, "--_proximity-opacity": String(a) } : o.style;
2420
- return /* @__PURE__ */ l(
2425
+ return /* @__PURE__ */ i(
2421
2426
  "div",
2422
2427
  {
2423
2428
  ...o,
@@ -2447,7 +2452,7 @@ function _n({
2447
2452
  className: a,
2448
2453
  style: r
2449
2454
  }) {
2450
- return e.length === 0 ? null : /* @__PURE__ */ l(
2455
+ return e.length === 0 ? null : /* @__PURE__ */ i(
2451
2456
  "svg",
2452
2457
  {
2453
2458
  className: ["gloss-spillover-arc", a].filter(Boolean).join(" "),
@@ -2455,7 +2460,7 @@ function _n({
2455
2460
  "aria-hidden": "true",
2456
2461
  overflow: "visible",
2457
2462
  style: { position: "absolute", inset: 0, pointerEvents: "none", ...r },
2458
- children: e.map((s, o) => /* @__PURE__ */ l(
2463
+ children: e.map((s, o) => /* @__PURE__ */ i(
2459
2464
  "path",
2460
2465
  {
2461
2466
  "data-arc-id": s.id,
@@ -2487,7 +2492,7 @@ function xn({
2487
2492
  "--gloss-section-divider-stagger-delay": `${t * r}ms`,
2488
2493
  ...o
2489
2494
  };
2490
- return /* @__PURE__ */ l(
2495
+ return /* @__PURE__ */ i(
2491
2496
  "div",
2492
2497
  {
2493
2498
  ...d,
@@ -2510,7 +2515,7 @@ function Sn({
2510
2515
  className: a,
2511
2516
  style: r
2512
2517
  }) {
2513
- return /* @__PURE__ */ l(Pe, { visible: e, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ l(
2518
+ return /* @__PURE__ */ i(Fe, { visible: e, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ i(
2514
2519
  "button",
2515
2520
  {
2516
2521
  type: "button",
@@ -2519,7 +2524,7 @@ function Sn({
2519
2524
  className: ["gloss-empty-cell-pack-affordance", a].filter(Boolean).join(" "),
2520
2525
  style: r,
2521
2526
  onClick: t,
2522
- children: /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2527
+ children: /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2523
2528
  }
2524
2529
  ) });
2525
2530
  }
@@ -2535,7 +2540,7 @@ function Mn({
2535
2540
  className: b
2536
2541
  }) {
2537
2542
  const g = t * n + (t - 1) * r;
2538
- return /* @__PURE__ */ l(
2543
+ return /* @__PURE__ */ i(
2539
2544
  de.div,
2540
2545
  {
2541
2546
  "data-testid": "gloss-drag-ghost",
@@ -2561,7 +2566,7 @@ function Tn({
2561
2566
  className: o
2562
2567
  }) {
2563
2568
  const d = t * n + (t - 1) * a, b = e.col * (n + a), g = e.row * (r + a);
2564
- return /* @__PURE__ */ l(
2569
+ return /* @__PURE__ */ i(
2565
2570
  "div",
2566
2571
  {
2567
2572
  className: ["gloss-drag-feedback-snap-outline", o].filter(Boolean).join(" "),
@@ -2581,7 +2586,7 @@ function Rn({
2581
2586
  children: t,
2582
2587
  className: n
2583
2588
  }) {
2584
- return e.length === 0 ? null : /* @__PURE__ */ l(Ye, { children: e.map((a) => /* @__PURE__ */ l(
2589
+ return e.length === 0 ? null : /* @__PURE__ */ i(be, { children: e.map((a) => /* @__PURE__ */ i(
2585
2590
  de.div,
2586
2591
  {
2587
2592
  "data-card-id": a.cardId,
@@ -2620,15 +2625,15 @@ function qt({
2620
2625
  }, [a, r]), H.useLayoutEffect(() => {
2621
2626
  let g = null;
2622
2627
  if (a ? g = a : r && (g = document.querySelector(r)), g) {
2623
- const u = g.getBoundingClientRect();
2628
+ const m = g.getBoundingClientRect();
2624
2629
  o({
2625
- top: u.bottom + window.scrollY + 6,
2626
- left: u.left + window.scrollX
2630
+ top: m.bottom + window.scrollY + 6,
2631
+ left: m.left + window.scrollX
2627
2632
  });
2628
2633
  }
2629
2634
  }, [a, r]);
2630
2635
  const b = s ? { top: s.top, left: s.left } : {};
2631
- return /* @__PURE__ */ A(
2636
+ return /* @__PURE__ */ O(
2632
2637
  "div",
2633
2638
  {
2634
2639
  className: X["gloss-inline-nudge"],
@@ -2637,9 +2642,9 @@ function qt({
2637
2642
  "aria-live": "polite",
2638
2643
  "data-reduced-motion": d ? "true" : void 0,
2639
2644
  children: [
2640
- /* @__PURE__ */ l("span", { className: X["gloss-inline-nudge__message"], children: e }),
2641
- /* @__PURE__ */ A("div", { className: X["gloss-inline-nudge__actions"], children: [
2642
- /* @__PURE__ */ l(
2645
+ /* @__PURE__ */ i("span", { className: X["gloss-inline-nudge__message"], children: e }),
2646
+ /* @__PURE__ */ O("div", { className: X["gloss-inline-nudge__actions"], children: [
2647
+ /* @__PURE__ */ i(
2643
2648
  "button",
2644
2649
  {
2645
2650
  type: "button",
@@ -2648,7 +2653,7 @@ function qt({
2648
2653
  children: t.label
2649
2654
  }
2650
2655
  ),
2651
- /* @__PURE__ */ l(
2656
+ /* @__PURE__ */ i(
2652
2657
  "button",
2653
2658
  {
2654
2659
  type: "button",
@@ -2664,17 +2669,17 @@ function qt({
2664
2669
  );
2665
2670
  }
2666
2671
  qt.displayName = "InlineNudge";
2667
- function we(e) {
2672
+ function De(e) {
2668
2673
  return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
2669
2674
  }
2670
2675
  function Qt(e, t, n) {
2671
2676
  if (n <= t) {
2672
- const o = e[0], d = o ? we(o) : "#888";
2677
+ const o = e[0], d = o ? De(o) : "#888";
2673
2678
  return `linear-gradient(to right, ${d}, ${d})`;
2674
2679
  }
2675
2680
  const a = n - t, s = [...e].sort((o, d) => o.value - d.value).map((o) => {
2676
2681
  const d = (o.value - t) / a * 100;
2677
- return `${we(o)} ${d.toFixed(2)}%`;
2682
+ return `${De(o)} ${d.toFixed(2)}%`;
2678
2683
  });
2679
2684
  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(", ")})`;
2680
2685
  }
@@ -2692,16 +2697,16 @@ function Jt({
2692
2697
  const o = r === void 0 ? 0.01 : !Number.isFinite(r) || r <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
2693
2698
  `ThresholdRamp: step (${r}) must be a positive finite number; falling back to 0.01.`
2694
2699
  ), 0.01) : r, d = y(
2695
- (i) => Math.round(i / o) * o,
2700
+ (l) => Math.round(l / o) * o,
2696
2701
  [o]
2697
- ), b = R(null), [g, u] = W(null), [C, m] = W(e), c = Xt(e), f = R(c);
2702
+ ), b = R(null), [g, m] = W(null), [C, u] = W(e), c = Xt(e), h = R(c);
2698
2703
  L(() => {
2699
- f.current !== c && (f.current = c, !g && m(e));
2704
+ h.current !== c && (h.current = c, !g && u(e));
2700
2705
  }, [c, e, g]);
2701
- const S = se(() => Qt(C, n, a), [C, n, a]), h = y(
2702
- (i) => {
2706
+ const x = se(() => Qt(C, n, a), [C, n, a]), f = y(
2707
+ (l) => {
2703
2708
  if (!b.current) return n;
2704
- const v = b.current.getBoundingClientRect(), p = v.width || 1, w = Math.max(0, Math.min(1, (i - v.left) / p)), k = n + w * (a - n);
2709
+ const v = b.current.getBoundingClientRect(), p = v.width || 1, w = Math.max(0, Math.min(1, (l - v.left) / p)), k = n + w * (a - n);
2705
2710
  return d(k);
2706
2711
  },
2707
2712
  [n, a, d]
@@ -2711,10 +2716,10 @@ function Jt({
2711
2716
  `ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
2712
2717
  );
2713
2718
  }, [n, a]);
2714
- const x = y(
2715
- (i, v) => {
2719
+ const S = y(
2720
+ (l, v) => {
2716
2721
  const p = C.find((w) => w.id === v);
2717
- s || p?.disabled || (i.preventDefault(), u(v));
2722
+ s || p?.disabled || (l.preventDefault(), m(v));
2718
2723
  },
2719
2724
  [s, C]
2720
2725
  ), I = R(C);
@@ -2722,29 +2727,29 @@ function Jt({
2722
2727
  const N = R(t);
2723
2728
  N.current = t, L(() => {
2724
2729
  if (!g) return;
2725
- const i = (p) => {
2726
- const w = h(p.clientX);
2727
- m(
2730
+ const l = (p) => {
2731
+ const w = f(p.clientX);
2732
+ u(
2728
2733
  (k) => k.map((M) => M.id === g ? { ...M, value: w } : M)
2729
2734
  );
2730
2735
  }, v = (p) => {
2731
- const w = h(p.clientX), k = I.current.map(
2736
+ const w = f(p.clientX), k = I.current.map(
2732
2737
  (M) => M.id === g ? { ...M, value: w } : M
2733
2738
  );
2734
- m(k), u(null), N.current(k);
2739
+ u(k), m(null), N.current(k);
2735
2740
  };
2736
- return window.addEventListener("pointermove", i), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
2737
- window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
2741
+ return window.addEventListener("pointermove", l), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
2742
+ window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
2738
2743
  };
2739
- }, [g, h]);
2744
+ }, [g, f]);
2740
2745
  const _ = a - n > 0 ? a - n : 1, T = y(
2741
- (i, v) => {
2746
+ (l, v) => {
2742
2747
  if (s || v.disabled) return;
2743
2748
  const p = a - n;
2744
2749
  if (p <= 0) return;
2745
- const w = i.shiftKey ? p / 20 : p / 100;
2750
+ const w = l.shiftKey ? p / 20 : p / 100;
2746
2751
  let k = v.value;
2747
- switch (i.key) {
2752
+ switch (l.key) {
2748
2753
  case "ArrowRight":
2749
2754
  case "ArrowUp":
2750
2755
  k = v.value + w;
@@ -2762,54 +2767,54 @@ function Jt({
2762
2767
  default:
2763
2768
  return;
2764
2769
  }
2765
- i.preventDefault();
2770
+ l.preventDefault();
2766
2771
  const M = Math.max(n, Math.min(a, k)), E = d(M);
2767
2772
  if (E === v.value) return;
2768
2773
  const G = C.map(
2769
2774
  (V) => V.id === v.id ? { ...V, value: E } : V
2770
2775
  );
2771
- m(G), t(G);
2776
+ u(G), t(G);
2772
2777
  },
2773
2778
  [s, n, a, C, t, d]
2774
2779
  );
2775
- return /* @__PURE__ */ l("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ l(
2780
+ return /* @__PURE__ */ i("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ i(
2776
2781
  "div",
2777
2782
  {
2778
2783
  ref: b,
2779
2784
  className: "gloss-threshold-ramp__track",
2780
- style: { background: S },
2781
- children: C.map((i) => {
2782
- const v = (i.value - n) / _ * 100;
2783
- return /* @__PURE__ */ l(
2785
+ style: { background: x },
2786
+ children: C.map((l) => {
2787
+ const v = (l.value - n) / _ * 100;
2788
+ return /* @__PURE__ */ i(
2784
2789
  "span",
2785
2790
  {
2786
2791
  className: "gloss-threshold-ramp__stop",
2787
2792
  style: {
2788
2793
  left: `${v}%`,
2789
- color: we(i)
2794
+ color: De(l)
2790
2795
  },
2791
- "data-disabled": i.disabled || void 0,
2792
- "data-dragging": g === i.id || void 0,
2793
- onPointerDown: (p) => x(p, i.id),
2794
- onKeyDown: (p) => T(p, i),
2795
- "aria-label": i.label ?? `Stop at ${i.value}`,
2796
+ "data-disabled": l.disabled || void 0,
2797
+ "data-dragging": g === l.id || void 0,
2798
+ onPointerDown: (p) => S(p, l.id),
2799
+ onKeyDown: (p) => T(p, l),
2800
+ "aria-label": l.label ?? `Stop at ${l.value}`,
2796
2801
  role: "slider",
2797
- "aria-valuenow": i.value,
2802
+ "aria-valuenow": l.value,
2798
2803
  "aria-valuemin": n,
2799
2804
  "aria-valuemax": a,
2800
- "aria-disabled": i.disabled || s || void 0,
2801
- tabIndex: i.disabled || s ? -1 : 0
2805
+ "aria-disabled": l.disabled || s || void 0,
2806
+ tabIndex: l.disabled || s ? -1 : 0
2802
2807
  },
2803
- i.id
2808
+ l.id
2804
2809
  );
2805
2810
  })
2806
2811
  }
2807
2812
  ) });
2808
2813
  }
2809
2814
  Jt.displayName = "ThresholdRamp";
2810
- const Be = Xe(null);
2815
+ const ze = Xe(null);
2811
2816
  function ea() {
2812
- return Je(Be);
2817
+ return Je(ze);
2813
2818
  }
2814
2819
  function ta({ option: e }) {
2815
2820
  const t = ea(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, r = y(() => {
@@ -2820,7 +2825,7 @@ function ta({ option: e }) {
2820
2825
  },
2821
2826
  [a, t, e.value]
2822
2827
  ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", d = t?.firstFocusableValue === e.value, b = a ? -1 : d ? 0 : -1;
2823
- return /* @__PURE__ */ l(
2828
+ return /* @__PURE__ */ i(
2824
2829
  "button",
2825
2830
  {
2826
2831
  ref: (g) => t?.registerRef(e.value, g),
@@ -2849,7 +2854,7 @@ function aa({
2849
2854
  disabled: r = !1,
2850
2855
  name: s
2851
2856
  }) {
2852
- const o = t !== void 0, [d, b] = W(n), g = o ? t : d, u = y(
2857
+ const o = t !== void 0, [d, b] = W(n), g = o ? t : d, m = y(
2853
2858
  (N) => {
2854
2859
  o || b(N), a?.(N);
2855
2860
  },
@@ -2857,27 +2862,27 @@ function aa({
2857
2862
  ), C = y(
2858
2863
  (N) => g === N,
2859
2864
  [g]
2860
- ), m = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
2861
- _ ? m.current.set(N, _) : m.current.delete(N);
2862
- }, []), f = e.filter((N) => !N.disabled && !r), S = f.find((N) => N.value === g)?.value ?? f[0]?.value, h = y((N) => {
2863
- const _ = m.current.get(N);
2865
+ ), u = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
2866
+ _ ? u.current.set(N, _) : u.current.delete(N);
2867
+ }, []), h = e.filter((N) => !N.disabled && !r), x = h.find((N) => N.value === g)?.value ?? h[0]?.value, f = y((N) => {
2868
+ const _ = u.current.get(N);
2864
2869
  _ && _.focus();
2865
- }, []), x = y(
2870
+ }, []), S = y(
2866
2871
  (N, _) => {
2867
2872
  if (r) return;
2868
2873
  const T = e.filter((w) => !w.disabled);
2869
2874
  if (T.length === 0) return;
2870
- const i = T.findIndex((w) => w.value === _);
2871
- if (i === -1) return;
2872
- let v = i;
2875
+ const l = T.findIndex((w) => w.value === _);
2876
+ if (l === -1) return;
2877
+ let v = l;
2873
2878
  switch (N.key) {
2874
2879
  case "ArrowRight":
2875
2880
  case "ArrowDown":
2876
- v = (i + 1) % T.length;
2881
+ v = (l + 1) % T.length;
2877
2882
  break;
2878
2883
  case "ArrowLeft":
2879
2884
  case "ArrowUp":
2880
- v = (i - 1 + T.length) % T.length;
2885
+ v = (l - 1 + T.length) % T.length;
2881
2886
  break;
2882
2887
  case "Home":
2883
2888
  v = 0;
@@ -2887,27 +2892,27 @@ function aa({
2887
2892
  break;
2888
2893
  case " ":
2889
2894
  case "Enter":
2890
- N.preventDefault(), u(_);
2895
+ N.preventDefault(), m(_);
2891
2896
  return;
2892
2897
  default:
2893
2898
  return;
2894
2899
  }
2895
2900
  N.preventDefault();
2896
2901
  const p = T[v].value;
2897
- h(p), u(p);
2902
+ f(p), m(p);
2898
2903
  },
2899
- [r, e, u, h]
2904
+ [r, e, m, f]
2900
2905
  ), I = {
2901
2906
  selectedValue: g,
2902
- select: u,
2907
+ select: m,
2903
2908
  isSelected: C,
2904
2909
  groupDisabled: r,
2905
2910
  name: s,
2906
2911
  registerRef: c,
2907
- firstFocusableValue: S,
2908
- onKeyNav: x
2912
+ firstFocusableValue: x,
2913
+ onKeyNav: S
2909
2914
  };
2910
- return /* @__PURE__ */ l(Be.Provider, { value: I, children: /* @__PURE__ */ l(
2915
+ return /* @__PURE__ */ i(ze.Provider, { value: I, children: /* @__PURE__ */ i(
2911
2916
  "div",
2912
2917
  {
2913
2918
  className: "gloss-preset-swatch-row",
@@ -2915,20 +2920,20 @@ function aa({
2915
2920
  "aria-label": s,
2916
2921
  "aria-disabled": r,
2917
2922
  "data-disabled": r || void 0,
2918
- children: e.map((N) => /* @__PURE__ */ l(ta, { option: N }, N.value))
2923
+ children: e.map((N) => /* @__PURE__ */ i(ta, { option: N }, N.value))
2919
2924
  }
2920
2925
  ) });
2921
2926
  }
2922
2927
  aa.displayName = "PresetSwatchRow";
2923
- function De(e, t) {
2928
+ function Ne(e, t) {
2924
2929
  for (const n of e)
2925
2930
  if (n.items.some((a) => a.id === t))
2926
2931
  return n.zoneKey;
2927
2932
  return null;
2928
2933
  }
2929
- function Ie(e, t) {
2934
+ function Pe(e, t) {
2930
2935
  const n = e.find((a) => a.zoneKey === t);
2931
- return n ? n.zoneKey : De(e, t);
2936
+ return n ? n.zoneKey : Ne(e, t);
2932
2937
  }
2933
2938
  function na(e, t, n) {
2934
2939
  const a = [...e], [r] = a.splice(t, 1);
@@ -2939,28 +2944,28 @@ function ra(e) {
2939
2944
  }
2940
2945
  function sa(e) {
2941
2946
  const [t, n] = W(
2942
- () => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2943
- `useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
2944
- ), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
2947
+ () => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2948
+ `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
2949
+ ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
2945
2950
  ), [a, r] = W(null), [s, o] = W(null), d = R(null), b = R(e.onZoneChange);
2946
2951
  b.current = e.onZoneChange;
2947
2952
  const g = se(
2948
2953
  () => ra(e.zones),
2949
2954
  [e.zones]
2950
- ), u = R(g);
2955
+ ), m = R(g);
2951
2956
  L(() => {
2952
- u.current !== g && (u.current = g, !a && n(
2953
- e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2954
- `useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
2955
- ), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
2957
+ m.current !== g && (m.current = g, !a && n(
2958
+ e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2959
+ `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
2960
+ ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
2956
2961
  ));
2957
2962
  }, [g, e.zones, a]);
2958
2963
  const C = y(
2959
- (h) => {
2960
- const x = h.active.id;
2964
+ (f) => {
2965
+ const S = f.active.id;
2961
2966
  let I = null, N = null;
2962
2967
  for (const _ of t) {
2963
- const T = _.items.find((i) => i.id === x);
2968
+ const T = _.items.find((l) => l.id === S);
2964
2969
  if (T) {
2965
2970
  I = T, N = _.zoneKey;
2966
2971
  break;
@@ -2969,72 +2974,72 @@ function sa(e) {
2969
2974
  d.current = N, r(I), o(N);
2970
2975
  },
2971
2976
  [t]
2972
- ), m = y(
2973
- (h) => {
2974
- if (!h.over) {
2977
+ ), u = y(
2978
+ (f) => {
2979
+ if (!f.over) {
2975
2980
  o(d.current);
2976
2981
  return;
2977
2982
  }
2978
- const x = Ie(t, h.over.id);
2979
- o(x);
2983
+ const S = Pe(t, f.over.id);
2984
+ o(S);
2980
2985
  },
2981
2986
  [t]
2982
2987
  ), c = y(
2983
- (h) => {
2984
- const { active: x, over: I } = h, N = () => {
2988
+ (f) => {
2989
+ const { active: S, over: I } = f, N = () => {
2985
2990
  d.current = null, r(null), o(null);
2986
2991
  };
2987
2992
  if (!I) {
2988
2993
  N();
2989
2994
  return;
2990
2995
  }
2991
- const _ = De(t, x.id), T = Ie(t, I.id);
2996
+ const _ = Ne(t, S.id), T = Pe(t, I.id);
2992
2997
  if (!_ || !T) {
2993
2998
  N();
2994
2999
  return;
2995
3000
  }
2996
- let i = t.map((v) => ({ ...v, items: [...v.items] }));
3001
+ let l = t.map((v) => ({ ...v, items: [...v.items] }));
2997
3002
  if (_ === T) {
2998
- const v = i.findIndex((E) => E.zoneKey === _), p = i[v], w = p.items.findIndex((E) => E.id === x.id), k = p.items.findIndex((E) => E.id === I.id), M = k >= 0 ? k : Math.max(0, p.items.length - 1);
2999
- i[v] = {
3003
+ const v = l.findIndex((E) => E.zoneKey === _), p = l[v], w = p.items.findIndex((E) => E.id === S.id), k = p.items.findIndex((E) => E.id === I.id), M = k >= 0 ? k : Math.max(0, p.items.length - 1);
3004
+ l[v] = {
3000
3005
  ...p,
3001
3006
  items: na(p.items, w, M)
3002
3007
  };
3003
3008
  } else {
3004
- const v = i.findIndex((K) => K.zoneKey === _), p = i.findIndex((K) => K.zoneKey === T), w = i[v], k = i[p], M = w.items.find((K) => K.id === x.id);
3009
+ const v = l.findIndex((K) => K.zoneKey === _), p = l.findIndex((K) => K.zoneKey === T), w = l[v], k = l[p], M = w.items.find((K) => K.id === S.id);
3005
3010
  if (!M) {
3006
3011
  N();
3007
3012
  return;
3008
3013
  }
3009
- const E = w.items.filter((K) => K.id !== x.id), G = k.items.findIndex((K) => K.id === I.id), V = G >= 0 ? G : k.items.length;
3010
- let $ = E, O = [...k.items];
3011
- if (k.maxItems !== void 0 && O.length >= k.maxItems) {
3012
- const K = O[O.length - 1];
3013
- O = O.slice(0, k.maxItems - 1), $ = [...E, K];
3014
+ const E = w.items.filter((K) => K.id !== S.id), G = k.items.findIndex((K) => K.id === I.id), V = G >= 0 ? G : k.items.length;
3015
+ let $ = E, A = [...k.items];
3016
+ if (k.maxItems !== void 0 && A.length >= k.maxItems) {
3017
+ const K = A[A.length - 1];
3018
+ A = A.slice(0, k.maxItems - 1), $ = [...E, K];
3014
3019
  }
3015
- const j = Math.min(V, O.length), oe = [
3016
- ...O.slice(0, j),
3020
+ const j = Math.min(V, A.length), oe = [
3021
+ ...A.slice(0, j),
3017
3022
  M,
3018
- ...O.slice(j)
3023
+ ...A.slice(j)
3019
3024
  ];
3020
- i[v] = { ...w, items: $ }, i[p] = { ...k, items: oe };
3025
+ l[v] = { ...w, items: $ }, l[p] = { ...k, items: oe };
3021
3026
  }
3022
- n(i), b.current?.(i), N();
3027
+ n(l), b.current?.(l), N();
3023
3028
  },
3024
3029
  [t]
3025
- ), f = y(
3026
- (h) => ({
3027
- id: h,
3028
- "data-zone-key": h
3030
+ ), h = y(
3031
+ (f) => ({
3032
+ id: f,
3033
+ "data-zone-key": f
3029
3034
  }),
3030
3035
  []
3031
- ), S = y(
3032
- (h) => {
3033
- const x = De(t, h.id) ?? "";
3036
+ ), x = y(
3037
+ (f) => {
3038
+ const S = Ne(t, f.id) ?? "";
3034
3039
  return {
3035
- id: h.id,
3036
- "data-item-id": h.id,
3037
- "data-zone-key": x
3040
+ id: f.id,
3041
+ "data-item-id": f.id,
3042
+ "data-zone-key": S
3038
3043
  };
3039
3044
  },
3040
3045
  [t]
@@ -3043,10 +3048,10 @@ function sa(e) {
3043
3048
  zones: t,
3044
3049
  activeZone: s,
3045
3050
  activeItem: a,
3046
- getZoneProps: f,
3047
- getItemProps: S,
3051
+ getZoneProps: h,
3052
+ getItemProps: x,
3048
3053
  handleDragStart: C,
3049
- handleDragOver: m,
3054
+ handleDragOver: u,
3050
3055
  handleDragEnd: c
3051
3056
  };
3052
3057
  }
@@ -3101,13 +3106,13 @@ function da(e) {
3101
3106
  return H.useEffect(() => {
3102
3107
  if (d) return;
3103
3108
  let g = !0;
3104
- return ca().then((u) => {
3105
- g && b(u);
3109
+ return ca().then((m) => {
3110
+ g && b(m);
3106
3111
  }), () => {
3107
3112
  g = !1;
3108
3113
  };
3109
- }, [d]), d ? /* @__PURE__ */ l(
3110
- ze,
3114
+ }, [d]), d ? /* @__PURE__ */ i(
3115
+ Ke,
3111
3116
  {
3112
3117
  state: o,
3113
3118
  modules: d,
@@ -3115,35 +3120,35 @@ function da(e) {
3115
3120
  renderItem: r,
3116
3121
  renderDragOverlay: s
3117
3122
  }
3118
- ) : /* @__PURE__ */ l("div", { "data-sortable-zones-passive": "true", children: o.zones.map((g) => {
3119
- const u = g.items.map((C) => /* @__PURE__ */ l(H.Fragment, { children: r(C) }, C.id));
3120
- return /* @__PURE__ */ l("div", { ...o.getZoneProps(g.zoneKey), children: a(g.zoneKey, g.items, u) }, g.zoneKey);
3123
+ ) : /* @__PURE__ */ i("div", { "data-sortable-zones-passive": "true", children: o.zones.map((g) => {
3124
+ const m = g.items.map((C) => /* @__PURE__ */ i(H.Fragment, { children: r(C) }, C.id));
3125
+ return /* @__PURE__ */ i("div", { ...o.getZoneProps(g.zoneKey), children: a(g.zoneKey, g.items, m) }, g.zoneKey);
3121
3126
  }) });
3122
3127
  }
3123
3128
  da.displayName = "SortableZones";
3124
- function ze({
3129
+ function Ke({
3125
3130
  state: e,
3126
3131
  modules: t,
3127
3132
  renderZone: n,
3128
3133
  renderItem: a,
3129
3134
  renderDragOverlay: r
3130
3135
  }) {
3131
- const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay: g, useSensors: u, useSensor: C, useDroppable: m, PointerSensor: c, KeyboardSensor: f, closestCenter: S } = s, { SortableContext: h, verticalListSortingStrategy: x } = o, I = u(
3136
+ const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay: g, useSensors: m, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: h, closestCenter: x } = s, { SortableContext: f, verticalListSortingStrategy: S } = o, I = m(
3132
3137
  C(c, { activationConstraint: { distance: 5 } }),
3133
- C(f)
3134
- ), N = b, _ = g, T = h;
3135
- return /* @__PURE__ */ A(
3138
+ C(h)
3139
+ ), N = b, _ = g, T = f;
3140
+ return /* @__PURE__ */ O(
3136
3141
  N,
3137
3142
  {
3138
3143
  sensors: I,
3139
- collisionDetection: S,
3144
+ collisionDetection: x,
3140
3145
  onDragStart: e.handleDragStart,
3141
3146
  onDragOver: e.handleDragOver,
3142
3147
  onDragEnd: e.handleDragEnd,
3143
3148
  children: [
3144
- e.zones.map((i) => {
3145
- const v = i.items.map((w) => w.id), p = i.items.map((w) => /* @__PURE__ */ l(
3146
- Ke,
3149
+ e.zones.map((l) => {
3150
+ const v = l.items.map((w) => w.id), p = l.items.map((w) => /* @__PURE__ */ i(
3151
+ We,
3147
3152
  {
3148
3153
  id: w.id,
3149
3154
  useSortable: o.useSortable,
@@ -3152,42 +3157,42 @@ function ze({
3152
3157
  },
3153
3158
  w.id
3154
3159
  ));
3155
- return /* @__PURE__ */ l(
3156
- We,
3160
+ return /* @__PURE__ */ i(
3161
+ Ge,
3157
3162
  {
3158
- zoneKey: i.zoneKey,
3159
- zoneProps: e.getZoneProps(i.zoneKey),
3160
- useDroppable: m,
3161
- children: /* @__PURE__ */ l(T, { items: v, strategy: x, children: n(i.zoneKey, i.items, p) })
3163
+ zoneKey: l.zoneKey,
3164
+ zoneProps: e.getZoneProps(l.zoneKey),
3165
+ useDroppable: u,
3166
+ children: /* @__PURE__ */ i(T, { items: v, strategy: S, children: n(l.zoneKey, l.items, p) })
3162
3167
  },
3163
- i.zoneKey
3168
+ l.zoneKey
3164
3169
  );
3165
3170
  }),
3166
- /* @__PURE__ */ l(_, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
3171
+ /* @__PURE__ */ i(_, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
3167
3172
  ]
3168
3173
  }
3169
3174
  );
3170
3175
  }
3171
- ze.displayName = "SortableZonesInner";
3172
- function Ke({ id: e, useSortable: t, cssHelper: n, children: a }) {
3173
- const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging: g } = t({ id: e }), u = {
3176
+ Ke.displayName = "SortableZonesInner";
3177
+ function We({ id: e, useSortable: t, cssHelper: n, children: a }) {
3178
+ const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging: g } = t({ id: e }), m = {
3174
3179
  transform: n?.Transform?.toString(d) ?? void 0,
3175
3180
  transition: b,
3176
3181
  opacity: g ? 0.5 : 1
3177
3182
  };
3178
- return /* @__PURE__ */ l("div", { ref: o, style: u, "data-sortable-item-id": e, ...r, ...s, children: a });
3183
+ return /* @__PURE__ */ i("div", { ref: o, style: m, "data-sortable-item-id": e, ...r, ...s, children: a });
3179
3184
  }
3180
- Ke.displayName = "SortableItem";
3181
- function We({
3185
+ We.displayName = "SortableItem";
3186
+ function Ge({
3182
3187
  zoneKey: e,
3183
3188
  zoneProps: t,
3184
3189
  useDroppable: n,
3185
3190
  children: a
3186
3191
  }) {
3187
3192
  const { setNodeRef: r, isOver: s } = n({ id: e });
3188
- return /* @__PURE__ */ l("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
3193
+ return /* @__PURE__ */ i("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
3189
3194
  }
3190
- We.displayName = "ZoneDroppable";
3195
+ Ge.displayName = "ZoneDroppable";
3191
3196
  function In({
3192
3197
  slotLeft: e,
3193
3198
  slotCenter: t,
@@ -3201,7 +3206,7 @@ function In({
3201
3206
  "--gloss-bottom-toolbar-height": `${a}px`,
3202
3207
  ...s
3203
3208
  };
3204
- return /* @__PURE__ */ A(
3209
+ return /* @__PURE__ */ O(
3205
3210
  "div",
3206
3211
  {
3207
3212
  role: "toolbar",
@@ -3210,7 +3215,7 @@ function In({
3210
3215
  className: ["gloss-bottom-toolbar", r].filter(Boolean).join(" "),
3211
3216
  style: d,
3212
3217
  children: [
3213
- /* @__PURE__ */ l(
3218
+ /* @__PURE__ */ i(
3214
3219
  "div",
3215
3220
  {
3216
3221
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--left",
@@ -3218,7 +3223,7 @@ function In({
3218
3223
  children: e
3219
3224
  }
3220
3225
  ),
3221
- /* @__PURE__ */ l(
3226
+ /* @__PURE__ */ i(
3222
3227
  "div",
3223
3228
  {
3224
3229
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--center",
@@ -3226,7 +3231,7 @@ function In({
3226
3231
  children: t
3227
3232
  }
3228
3233
  ),
3229
- /* @__PURE__ */ l(
3234
+ /* @__PURE__ */ i(
3230
3235
  "div",
3231
3236
  {
3232
3237
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--right",
@@ -3248,7 +3253,7 @@ function Pn({
3248
3253
  pulseNonce: o
3249
3254
  }) {
3250
3255
  const d = qe.useRef([]);
3251
- return d.current.length = e, /* @__PURE__ */ l(
3256
+ return d.current.length = e, /* @__PURE__ */ i(
3252
3257
  "div",
3253
3258
  {
3254
3259
  role: "tablist",
@@ -3259,55 +3264,55 @@ function Pn({
3259
3264
  if (e !== 0) {
3260
3265
  if (g.key === "ArrowRight") {
3261
3266
  g.preventDefault();
3262
- const u = (t + 1) % e;
3263
- n(u), requestAnimationFrame(() => d.current[u]?.focus());
3267
+ const m = (t + 1) % e;
3268
+ n(m), requestAnimationFrame(() => d.current[m]?.focus());
3264
3269
  } else if (g.key === "ArrowLeft") {
3265
3270
  g.preventDefault();
3266
- const u = (t - 1 + e) % e;
3267
- n(u), requestAnimationFrame(() => d.current[u]?.focus());
3271
+ const m = (t - 1 + e) % e;
3272
+ n(m), requestAnimationFrame(() => d.current[m]?.focus());
3268
3273
  }
3269
3274
  }
3270
3275
  },
3271
- children: Array.from({ length: e }, (g, u) => /* @__PURE__ */ l(
3276
+ children: Array.from({ length: e }, (g, m) => /* @__PURE__ */ i(
3272
3277
  "button",
3273
3278
  {
3274
3279
  ref: (C) => {
3275
- d.current[u] = C;
3280
+ d.current[m] = C;
3276
3281
  },
3277
3282
  type: "button",
3278
3283
  role: "tab",
3279
- "aria-selected": u === t,
3280
- "aria-label": u === r ? "Unconfirmed section" : `Section ${u + 1}`,
3281
- "data-state": u === r ? "provisional-hollow" : u === s ? "pulse" : u === t ? "current" : "hollow",
3282
- "data-section-index": u,
3284
+ "aria-selected": m === t,
3285
+ "aria-label": m === r ? "Unconfirmed section" : `Section ${m + 1}`,
3286
+ "data-state": m === r ? "provisional-hollow" : m === s ? "pulse" : m === t ? "current" : "hollow",
3287
+ "data-section-index": m,
3283
3288
  className: [
3284
3289
  "gloss-section-dots__dot",
3285
- u === t && "gloss-section-dots__dot--current"
3290
+ m === t && "gloss-section-dots__dot--current"
3286
3291
  ].filter(Boolean).join(" "),
3287
- onClick: () => n(u)
3292
+ onClick: () => n(m)
3288
3293
  },
3289
- u === s ? `${u}-${o ?? 0}` : u
3294
+ m === s ? `${m}-${o ?? 0}` : m
3290
3295
  ))
3291
3296
  }
3292
3297
  );
3293
3298
  }
3294
3299
  const ua = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
3295
3300
  const r = { ...n };
3296
- return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ l(Ne, { region: "toolbar", density: e, children: t }) });
3301
+ return delete r.className, delete r.style, /* @__PURE__ */ i("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ i(Ce, { region: "toolbar", density: e, children: t }) });
3297
3302
  });
3298
3303
  ua.displayName = "ContainerToolbar";
3299
3304
  const ma = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...r }, s) => {
3300
3305
  const o = { ...r };
3301
- return delete o.className, delete o.style, /* @__PURE__ */ A("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
3302
- e && /* @__PURE__ */ l("legend", { className: "gloss-container-form-section__legend", children: e }),
3303
- t && /* @__PURE__ */ l("p", { className: "gloss-container-form-section__description", children: t }),
3304
- /* @__PURE__ */ l(Ne, { region: "form-section", density: n, children: a })
3306
+ return delete o.className, delete o.style, /* @__PURE__ */ O("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
3307
+ e && /* @__PURE__ */ i("legend", { className: "gloss-container-form-section__legend", children: e }),
3308
+ t && /* @__PURE__ */ i("p", { className: "gloss-container-form-section__description", children: t }),
3309
+ /* @__PURE__ */ i(Ce, { region: "form-section", density: n, children: a })
3305
3310
  ] });
3306
3311
  });
3307
3312
  ma.displayName = "ContainerFormSection";
3308
3313
  const ga = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
3309
3314
  const r = { ...n };
3310
- return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ l(Ne, { region: "table", density: e, children: t }) });
3315
+ return delete r.className, delete r.style, /* @__PURE__ */ i("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ i(Ce, { region: "table", density: e, children: t }) });
3311
3316
  });
3312
3317
  ga.displayName = "ContainerTable";
3313
3318
  export {
@@ -3368,7 +3373,7 @@ export {
3368
3373
  ai as DEFAULT_MARKET_PRESETS,
3369
3374
  Tr as DEFAULT_OVERFLOW_IDS,
3370
3375
  ni as DEFAULT_PINNED,
3371
- Fe as DEFAULT_RESIZE_PHYSICS,
3376
+ Ee as DEFAULT_RESIZE_PHYSICS,
3372
3377
  Rr as DataTable,
3373
3378
  Ir as DatePicker,
3374
3379
  Pr as DateRangePicker,
@@ -3430,7 +3435,7 @@ export {
3430
3435
  _s as OrderFilterBar,
3431
3436
  ri as PERIOD_OPTIONS,
3432
3437
  xt as PageChip,
3433
- Ee as PageDropdown,
3438
+ Oe as PageDropdown,
3434
3439
  xs as PasswordInput,
3435
3440
  Ss as PaymentForm,
3436
3441
  Ms as PaymentMethodSelect,
@@ -3475,10 +3480,10 @@ export {
3475
3480
  no as StatusModeCard,
3476
3481
  ht as StatusSlotChipMenu,
3477
3482
  ro as Stepper,
3478
- Pe as SwingReveal,
3483
+ Fe as SwingReveal,
3479
3484
  oi as TODAY_PRESET,
3480
3485
  J as TUNING_DEFAULTS,
3481
- $e as TUNING_STORAGE_KEY,
3486
+ Be as TUNING_STORAGE_KEY,
3482
3487
  so as TabGroup,
3483
3488
  oo as TabbedDataView,
3484
3489
  io as TagInput,
@@ -3493,7 +3498,7 @@ export {
3493
3498
  ho as TrendCard,
3494
3499
  bo as TrendIndicator,
3495
3500
  Jo as UIContext,
3496
- Ne as UIContextProvider,
3501
+ Ce as UIContextProvider,
3497
3502
  vo as UnifiedBreakdownTable,
3498
3503
  yo as UnifiedContextMenu,
3499
3504
  yt as VelocityBuffer,
@@ -3518,7 +3523,7 @@ export {
3518
3523
  _o as creditCardFormMetadata,
3519
3524
  xo as creditCardSchema,
3520
3525
  mt as dateChip,
3521
- Le as defaultControlBarState,
3526
+ $e as defaultControlBarState,
3522
3527
  So as destructiveModalMetadata,
3523
3528
  Mo as durations,
3524
3529
  To as easings,