@mt-gloss/ui 0.1.8 → 0.1.9

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,12 +1,12 @@
1
- import { N as En, T as On, O as An, Q as Ln, a3 as $n, b6 as Bn, az as zn, ah as Kn, Z as Wn, an as Gn, K as Hn, a8 as Vn, bn as jn, P as Un, B as Zn, a as Yn, y as qn, H as Qn, bi as Xn, F as Jn, J as er, A as tr, z as ar, bh as nr, E as rr, D as sr, bw as or, b as ir, C as lr, L as dr, o as cr, ad as ur, aN as mr, y as gr, H as pr, F as fr, J as hr, A as br, z as vr, E as yr, D as wr, a$ as Dr, b2 as Nr, b1 as Cr, b0 as kr, b3 as _r, aC as xr, a5 as Sr, a4 as Mr, aq as Tr, k as Ir, m as Rr, aF as Pr, ab as Fr, b8 as Er, a9 as Or, bo as Ar, Y as Lr, bG as $r, bF as Br, bH as zr, ap as Kr, aQ as Wr, ba as Gr, bL as Hr, bu as Vr, n as jr, am as Ur, bA as Zr, br as Yr, a0 as qr, ar as Qr, a2 as Xr, bz as Jr, G as es, d as ts, aa as as, bI as ns, aT as rs, r as ss, v as os, I as is, g as ls, aw as ds, bM as cs, M as us, w as ms, U as gs, X as ps, V as fs, W as hs, as as bs, bg as vs, bO as ys, bK as ws, ao as Ds, t as Ns, bp as Cs, aS as ks, aj as _s, aK as xs, ag as Ss, al as Ms, au as Ts, aR as Is, ac as Rs, at as Ps, c as Fs, R as Es, j as Os, p as As, aH as Ls, bx as $s, by as Bs, ai as zs, ae as Ks, h as Ws, x as Gs, b7 as Hs, af as Vs, bN as js, bc as Us, bf as Zs, bd as Ys, be as qs, i as Qs, b9 as Xs, bm as Js, S as eo, bk as to, bl as ao, av as no, bb as ro, bP as so, ak as oo, s as io, bJ as lo, l as co, f as uo, q as mo, _ as go, $ as po, a7 as fo, bj as ho, bv as bo, bC as vo, aA as yo, aB as wo, a6 as Do, aO as No, aP as Co, aD as ko, aE as _o, aG as xo, aV as So, aW as Mo, bE as To, bD as Io, aY as Ro, aZ as Po, ax as Fo, ay as Eo, b5 as Oo, b4 as Ao, a_ as Lo, aL as $o, aM as Bo, aX as zo, aI as Ko, aJ as Wo, u as Go, bB as Ho, bq as Vo, bs as jo, bt as Uo, aU as Zo, a1 as Yo, e as qo } from "./Expandable-CTI-osAf.js";
2
- import { jsxs as A, jsx as d, Fragment as Ue } from "react/jsx-runtime";
1
+ import { N as En, T as On, O as An, Q as Ln, a3 as $n, b6 as Bn, az as zn, ah as Kn, Z as Wn, an as Gn, K as Hn, a8 as Vn, bn as jn, P as Un, B as Zn, a as Yn, y as qn, H as Qn, bi as Xn, F as Jn, J as er, A as tr, z as ar, bh as nr, E as rr, D as sr, bw as or, b as ir, C as lr, L as cr, o as dr, ad as ur, aN as mr, y as gr, H as pr, F as fr, J as hr, A as br, z as vr, E as yr, D as wr, a$ as Dr, b2 as Nr, b1 as Cr, b0 as kr, b3 as _r, aC as xr, a5 as Sr, a4 as Mr, aq as Tr, k as Rr, m as Ir, aF as Pr, ab as Fr, b8 as Er, a9 as Or, bo as Ar, Y as Lr, bG as $r, bF as Br, bH as zr, ap as Kr, aQ as Wr, ba as Gr, bL as Hr, bu as Vr, n as jr, am as Ur, bA as Zr, br as Yr, a0 as qr, ar as Qr, a2 as Xr, bz as Jr, G as es, d as ts, aa as as, bI as ns, aT as rs, r as ss, v as os, I as is, g as ls, aw as cs, bM as ds, M as us, w as ms, U as gs, X as ps, V as fs, W as hs, as as bs, bg as vs, bO as ys, bK as ws, ao as Ds, t as Ns, bp as Cs, aS as ks, aj as _s, aK as xs, ag as Ss, al as Ms, au as Ts, aR as Rs, ac as Is, at as Ps, c as Fs, R as Es, j as Os, p as As, aH as Ls, bx as $s, by as Bs, ai as zs, ae as Ks, h as Ws, x as Gs, b7 as Hs, af as Vs, bN as js, bc as Us, bf as Zs, bd as Ys, be as qs, i as Qs, b9 as Xs, bm as Js, S as eo, bk as to, bl as ao, av as no, bb as ro, bP as so, ak as oo, s as io, bJ as lo, l as co, f as uo, q as mo, _ as go, $ as po, a7 as fo, bj as ho, bv as bo, bC as vo, aA as yo, aB as wo, a6 as Do, aO as No, aP as Co, aD as ko, aE as _o, aG as xo, aV as So, aW as Mo, bE as To, bD as Ro, aY as Io, aZ as Po, ax as Fo, ay as Eo, b5 as Oo, b4 as Ao, a_ as Lo, aL as $o, aM as Bo, aX as zo, aI as Ko, aJ as Wo, u as Go, bB as Ho, bq as Vo, bs as jo, bt as Uo, aU as Zo, a1 as Yo, e as qo } from "./Expandable-CTI-osAf.js";
2
+ import { jsxs as A, jsx as l, Fragment as Ue } from "react/jsx-runtime";
3
3
  import * as Ze from "react";
4
- import H, { useRef as I, useEffect as L, useState as W, useCallback as y, forwardRef as Ye, useMemo as re, createContext as qe, useContext as Qe } from "react";
5
- import { motion as de, useMotionValue as Xe, animate as _e, useDragControls as Je } from "framer-motion";
4
+ import H, { useRef as R, useEffect as L, useState as W, useCallback as y, forwardRef as Ye, useMemo as re, createContext as qe, useContext as Qe } from "react";
5
+ import { motion as ce, useMotionValue as Xe, animate as _e, useDragControls as Je } from "framer-motion";
6
6
  import { B as et, U as De } from "./UIContext-C3E-k7HI.js";
7
7
  import { a as Xo, u as Jo } from "./UIContext-C3E-k7HI.js";
8
8
  import { createPortal as tt } from "react-dom";
9
- import { DEFAULT_MARKET_PRESETS as ti, DEFAULT_PINNED as ai, PERIOD_OPTIONS as ni, ROLLING_OPTIONS as ri, TODAY_PRESET as si, findPreset as oi, formatDateRange as ii, formatMarketDates as li, formatTrend as di, formatValue as ci, generateMarketId as ui, getAllPresets as mi, getDateRangeForPreset as gi, getPresetLabel as pi, isInRange as fi, isMarketActive as hi, isSameDay as bi, normalizePresetId as vi, toUppercasePresetId as yi } from "@mt-gloss/utils";
9
+ import { DEFAULT_MARKET_PRESETS as ti, DEFAULT_PINNED as ai, PERIOD_OPTIONS as ni, ROLLING_OPTIONS as ri, TODAY_PRESET as si, findPreset as oi, formatDateRange as ii, formatMarketDates as li, formatTrend as ci, formatValue as di, generateMarketId as ui, getAllPresets as mi, getDateRangeForPreset as gi, getPresetLabel as pi, isInRange as fi, isMarketActive as hi, isSameDay as bi, normalizePresetId as vi, toUppercasePresetId as yi } from "@mt-gloss/utils";
10
10
  import at from "@mui/icons-material/AccessTime";
11
11
  import nt from "@mui/icons-material/Tune";
12
12
  import rt from "@mui/icons-material/ViewColumn";
@@ -14,7 +14,7 @@ import st from "@mui/icons-material/AspectRatio";
14
14
  import ot from "@mui/icons-material/Palette";
15
15
  import it from "@mui/icons-material/PushPin";
16
16
  function Ca(e = {}) {
17
- const { enabled: t = !0, returnTo: n } = e, a = I(null);
17
+ const { enabled: t = !0, returnTo: n } = e, a = R(null);
18
18
  return L(() => {
19
19
  t && (a.current = n || document.activeElement);
20
20
  }, [t, n]), L(() => () => {
@@ -31,66 +31,66 @@ function ka(e) {
31
31
  loop: r = !0,
32
32
  orientation: s = "vertical",
33
33
  enabled: o = !0,
34
- isItemDisabled: i,
35
- onSelect: h,
34
+ isItemDisabled: d,
35
+ onSelect: b,
36
36
  onEscape: m
37
- } = e, [v, C] = W(-1), u = n !== void 0 ? n : v, c = y(
38
- (l) => {
39
- n === void 0 && C(l), a?.(l);
37
+ } = e, [g, C] = W(-1), u = n !== void 0 ? n : g, c = y(
38
+ (i) => {
39
+ n === void 0 && C(i), a?.(i);
40
40
  },
41
41
  [n, a]
42
- ), p = y(() => t.map((l, b) => ({ item: l, index: b })).filter(({ item: l, index: b }) => !i?.(l, b)).map(({ index: l }) => l), [t, i]), S = y(
43
- (l, b) => {
44
- const g = p();
45
- if (g.length === 0) return -1;
46
- const w = g.indexOf(l);
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();
45
+ if (p.length === 0) return -1;
46
+ const w = p.indexOf(i);
47
47
  if (w === -1)
48
- return b === 1 ? g.find((M) => M > l) ?? (r ? g[0] : -1) : [...g].reverse().find((E) => E < l) ?? (r ? g[g.length - 1] : -1);
49
- let k = w + b;
50
- return r ? k = (k + g.length) % g.length : k = Math.max(0, Math.min(g.length - 1, k)), g[k];
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);
49
+ let k = w + v;
50
+ return r ? k = (k + p.length) % p.length : k = Math.max(0, Math.min(p.length - 1, k)), p[k];
51
51
  },
52
- [p, r]
53
- ), f = y(() => {
54
- const l = p();
55
- l.length > 0 && c(l[0]);
56
- }, [p, c]), x = y(() => {
57
- const l = p();
58
- l.length > 0 && c(l[l.length - 1]);
59
- }, [p, c]), R = y(() => {
60
- const l = S(u, 1);
61
- l !== -1 && c(l);
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(u, 1);
61
+ i !== -1 && c(i);
62
62
  }, [u, S, c]), N = y(() => {
63
- const l = S(u, -1);
64
- l !== -1 && c(l);
63
+ const i = S(u, -1);
64
+ i !== -1 && c(i);
65
65
  }, [u, S, c]), _ = y(() => {
66
66
  c(-1);
67
67
  }, [c]), T = y(
68
- (l) => {
68
+ (i) => {
69
69
  if (!o) return;
70
- const { key: b } = l, g = b === "ArrowUp" && (s === "vertical" || s === "both"), w = b === "ArrowDown" && (s === "vertical" || s === "both"), k = b === "ArrowLeft" && (s === "horizontal" || s === "both"), M = b === "ArrowRight" && (s === "horizontal" || s === "both");
71
- if (g || k) {
72
- l.preventDefault(), u === -1 ? x() : N();
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");
71
+ if (p || k) {
72
+ i.preventDefault(), u === -1 ? x() : N();
73
73
  return;
74
74
  }
75
75
  if (w || M) {
76
- l.preventDefault(), u === -1 ? f() : R();
76
+ i.preventDefault(), u === -1 ? h() : I();
77
77
  return;
78
78
  }
79
- if (b === "Home") {
80
- l.preventDefault(), f();
79
+ if (v === "Home") {
80
+ i.preventDefault(), h();
81
81
  return;
82
82
  }
83
- if (b === "End") {
84
- l.preventDefault(), x();
83
+ if (v === "End") {
84
+ i.preventDefault(), x();
85
85
  return;
86
86
  }
87
- if ((b === "Enter" || b === " ") && u >= 0 && u < t.length) {
88
- l.preventDefault();
87
+ if ((v === "Enter" || v === " ") && u >= 0 && u < t.length) {
88
+ i.preventDefault();
89
89
  const E = t[u];
90
- i?.(E, u) || h?.(E, u);
90
+ d?.(E, u) || b?.(E, u);
91
91
  return;
92
92
  }
93
- if (b === "Escape") {
93
+ if (v === "Escape") {
94
94
  m?.();
95
95
  return;
96
96
  }
@@ -100,12 +100,12 @@ function ka(e) {
100
100
  s,
101
101
  u,
102
102
  t,
103
- f,
103
+ h,
104
104
  x,
105
- R,
105
+ I,
106
106
  N,
107
- i,
108
- h,
107
+ d,
108
+ b,
109
109
  m
110
110
  ]
111
111
  );
@@ -113,42 +113,42 @@ function ka(e) {
113
113
  focusedIndex: u,
114
114
  setFocusedIndex: c,
115
115
  handleKeyDown: T,
116
- focusFirst: f,
116
+ focusFirst: h,
117
117
  focusLast: x,
118
- focusNext: R,
118
+ focusNext: I,
119
119
  focusPrevious: N,
120
120
  resetFocus: _
121
121
  };
122
122
  }
123
- const ce = (e) => {
123
+ const de = (e) => {
124
124
  }, lt = {
125
125
  id: "entity-filter-1",
126
126
  label: "Customer: Acme Corp",
127
127
  field: "customer",
128
128
  value: "acme-corp-123",
129
- onRemove: ce
130
- }, dt = {
129
+ onRemove: de
130
+ }, ct = {
131
131
  id: "status-filter-1",
132
132
  label: "Status: Open",
133
133
  field: "status",
134
134
  value: "open",
135
- onRemove: ce
136
- }, ct = {
135
+ onRemove: de
136
+ }, dt = {
137
137
  id: "date-filter-1",
138
138
  label: "Date: Mar 1 - Mar 15",
139
139
  field: "dateRange",
140
140
  value: "2026-03-01..2026-03-15",
141
- onRemove: ce
141
+ onRemove: de
142
142
  }, ut = {
143
143
  id: "mfg-filter-1",
144
144
  label: "Manufacturer: Widget Co",
145
145
  field: "manufacturer",
146
146
  value: "widget-co-456",
147
- onRemove: ce
147
+ onRemove: de
148
148
  }, _a = [
149
149
  lt,
150
- dt,
151
150
  ct,
151
+ dt,
152
152
  ut
153
153
  ], xa = {
154
154
  id: "metric-toggle",
@@ -177,11 +177,11 @@ const ce = (e) => {
177
177
  { variant: "block", width: 200, height: 32, borderRadius: 8 },
178
178
  { variant: "block", width: "80%", height: 12, borderRadius: "4px" },
179
179
  { variant: "block", width: 120, height: 44, borderRadius: 22 }
180
- ], Ia = [
180
+ ], Ra = [
181
181
  { variant: "text", lines: 3, lineHeight: 14, gap: 8 },
182
182
  { variant: "text", lines: 2, lineHeight: 16, gap: 10 },
183
183
  { variant: "text", lines: 5, lineHeight: 12, gap: 6 }
184
- ], Ra = [
184
+ ], Ia = [
185
185
  { variant: "circle", size: 24 },
186
186
  { variant: "circle", size: 40 },
187
187
  { variant: "circle", size: 64 }
@@ -239,7 +239,7 @@ function pt({
239
239
  overflowActions: s,
240
240
  onClose: o
241
241
  }) {
242
- const [i, h] = W(null), m = I(null), v = y(() => {
242
+ const [d, b] = W(null), m = R(null), g = y(() => {
243
243
  if (!t) return { ...xe, top: 0, left: 0 };
244
244
  const c = t.getBoundingClientRect();
245
245
  return {
@@ -250,14 +250,14 @@ function pt({
250
250
  }, [t]);
251
251
  if (L(() => {
252
252
  if (!e) return;
253
- const c = (p) => {
254
- p.key === "Escape" && o();
253
+ const c = (f) => {
254
+ f.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 = (p) => {
260
- m.current && !m.current.contains(p.target) && o();
259
+ const c = (f) => {
260
+ m.current && !m.current.contains(f.target) && o();
261
261
  };
262
262
  return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
263
263
  }, [e, o]), !e) return null;
@@ -268,42 +268,42 @@ function pt({
268
268
  "data-status-chip-menu": n,
269
269
  role: "menu",
270
270
  "aria-label": "Status actions",
271
- style: v(),
271
+ style: g(),
272
272
  children: [
273
- /* @__PURE__ */ d(
273
+ /* @__PURE__ */ l(
274
274
  "button",
275
275
  {
276
276
  role: "menuitem",
277
- style: mt(i === "__primary"),
278
- onMouseEnter: () => h("__primary"),
279
- onMouseLeave: () => h(null),
277
+ style: mt(d === "__primary"),
278
+ onMouseEnter: () => b("__primary"),
279
+ onMouseLeave: () => b(null),
280
280
  onClick: () => {
281
281
  a(n), o();
282
282
  },
283
283
  children: "Open in table"
284
284
  }
285
285
  ),
286
- /* @__PURE__ */ d(
286
+ /* @__PURE__ */ l(
287
287
  "button",
288
288
  {
289
289
  role: "menuitem",
290
- style: he(i === "__graph"),
291
- onMouseEnter: () => h("__graph"),
292
- onMouseLeave: () => h(null),
290
+ style: he(d === "__graph"),
291
+ onMouseEnter: () => b("__graph"),
292
+ onMouseLeave: () => b(null),
293
293
  onClick: () => {
294
294
  r(n), o();
295
295
  },
296
296
  children: "Show on graph"
297
297
  }
298
298
  ),
299
- C && /* @__PURE__ */ d("div", { style: gt }),
300
- C && s?.map((c) => /* @__PURE__ */ d(
299
+ C && /* @__PURE__ */ l("div", { style: gt }),
300
+ C && s?.map((c) => /* @__PURE__ */ l(
301
301
  "button",
302
302
  {
303
303
  role: "menuitem",
304
- style: he(i === c.id),
305
- onMouseEnter: () => h(c.id),
306
- onMouseLeave: () => h(null),
304
+ style: he(d === c.id),
305
+ onMouseEnter: () => b(c.id),
306
+ onMouseLeave: () => b(null),
307
307
  onClick: () => {
308
308
  c.onSelect(n), o();
309
309
  },
@@ -318,41 +318,41 @@ function pt({
318
318
  }
319
319
  pt.displayName = "StatusSlotChipMenu";
320
320
  const ft = Ye(
321
- function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: i = "right", ariaLabel: h = "Resize card" }, m) {
322
- const v = t === "handle-visible" || t === "dragging" || t === "settling", C = (p) => {
321
+ function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: d = "right", ariaLabel: b = "Resize card" }, m) {
322
+ const g = t === "handle-visible" || t === "dragging" || t === "settling", C = (f) => {
323
323
  try {
324
- p.currentTarget.setPointerCapture(p.pointerId);
324
+ f.currentTarget.setPointerCapture(f.pointerId);
325
325
  } catch {
326
326
  }
327
- n(p);
328
- }, u = (p) => {
327
+ n(f);
328
+ }, u = (f) => {
329
329
  try {
330
- p.currentTarget.hasPointerCapture?.(p.pointerId) && p.currentTarget.releasePointerCapture(p.pointerId);
330
+ f.currentTarget.hasPointerCapture?.(f.pointerId) && f.currentTarget.releasePointerCapture(f.pointerId);
331
331
  } catch {
332
332
  }
333
- a(p);
334
- }, c = (p) => {
335
- !v || !o || (p.key === "ArrowRight" ? (p.preventDefault(), o("grow")) : p.key === "ArrowLeft" && (p.preventDefault(), o("shrink")));
333
+ a(f);
334
+ }, c = (f) => {
335
+ !g || !o || (f.key === "ArrowRight" ? (f.preventDefault(), o("grow")) : f.key === "ArrowLeft" && (f.preventDefault(), o("shrink")));
336
336
  };
337
- return /* @__PURE__ */ d(
337
+ return /* @__PURE__ */ l(
338
338
  "button",
339
339
  {
340
340
  ref: m,
341
341
  type: "button",
342
- "aria-label": h,
343
- "data-edge": i,
342
+ "aria-label": b,
343
+ "data-edge": d,
344
344
  "data-resize-state": t,
345
345
  className: [
346
346
  "gloss-edge-handle",
347
- `gloss-edge-handle--${i}`,
348
- v ? "gloss-edge-handle--visible" : ""
347
+ `gloss-edge-handle--${d}`,
348
+ g ? "gloss-edge-handle--visible" : ""
349
349
  ].filter(Boolean).join(" "),
350
350
  onPointerDown: C,
351
351
  onPointerUp: u,
352
352
  onPointerEnter: r,
353
353
  onPointerLeave: s,
354
354
  onKeyDown: c,
355
- tabIndex: v ? 0 : -1
355
+ tabIndex: g ? 0 : -1
356
356
  }
357
357
  );
358
358
  }
@@ -365,8 +365,8 @@ function ht({
365
365
  enterMs: a = 180,
366
366
  exitMs: r = 120
367
367
  }) {
368
- return /* @__PURE__ */ d(
369
- de.div,
368
+ return /* @__PURE__ */ l(
369
+ ce.div,
370
370
  {
371
371
  "aria-hidden": "true",
372
372
  "data-ghost-preview": e ? "visible" : "hidden",
@@ -407,14 +407,14 @@ class bt {
407
407
  const t = this.samples.length;
408
408
  if (t < 2) return 0;
409
409
  if (t === 2) {
410
- const [h, m] = this.samples, v = Math.max(1, m.t - h.t);
411
- return (m.x - h.x) / v * 1e3;
410
+ const [b, m] = this.samples, g = Math.max(1, m.t - b.t);
411
+ return (m.x - b.x) / g * 1e3;
412
412
  }
413
- 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, i = o;
414
- return (s * 3 + o * 2 + i * 1) / 6;
413
+ 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;
414
+ return (s * 3 + o * 2 + d * 1) / 6;
415
415
  }
416
416
  }
417
- const Re = {
417
+ const Ie = {
418
418
  // Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
419
419
  // has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
420
420
  // prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
@@ -442,18 +442,18 @@ function Oa({
442
442
  step: r = 180,
443
443
  gap: s = 0,
444
444
  tuning: o,
445
- dwellMs: i = 120,
446
- enterMs: h = 180,
445
+ dwellMs: d = 120,
446
+ enterMs: b = 180,
447
447
  exitMs: m = 120,
448
- maxColSpan: v = 3,
448
+ maxColSpan: g = 3,
449
449
  containerRef: C,
450
450
  forceIdle: u
451
451
  }) {
452
- const [c, p] = W("idle"), [S, f] = W(e), x = I(null), R = I(null), N = I(null), _ = I(r), T = I(s), l = I(v), b = I(0), g = I("idle");
452
+ 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(g), v = R(0), p = R("idle");
453
453
  L(() => {
454
- g.current = c;
454
+ p.current = c;
455
455
  }, [c]);
456
- const w = Xe(0), k = I(null), M = y(() => {
456
+ const w = Xe(0), k = R(null), M = y(() => {
457
457
  const D = k.current;
458
458
  if (D) {
459
459
  try {
@@ -468,27 +468,27 @@ function Oa({
468
468
  return D * P + (D - 1) * F;
469
469
  },
470
470
  []
471
- ), G = I(new bt()), V = I(e);
471
+ ), G = R(new bt()), V = R(e);
472
472
  L(() => {
473
473
  V.current = S;
474
474
  }, [S]);
475
- const $ = re(() => ({ ...Re, ...o ?? {} }), [o]), O = y(() => {
475
+ const $ = re(() => ({ ...Ie, ...o ?? {} }), [o]), O = y(() => {
476
476
  x.current && (clearTimeout(x.current), x.current = null);
477
477
  }, []), j = y(() => {
478
- R.current && (clearTimeout(R.current), R.current = null);
478
+ I.current && (clearTimeout(I.current), I.current = null);
479
479
  }, []);
480
480
  L(() => {
481
- u && (g.current === "dragging" || g.current === "settling" || (O(), j(), g.current = "idle", p("idle")));
481
+ u && (p.current === "dragging" || p.current === "settling" || (O(), j(), p.current = "idle", f("idle")));
482
482
  }, [u, O, j]);
483
483
  const se = y(() => {
484
- p((D) => D === "settling" || D !== "idle" ? D : (x.current = setTimeout(() => p("handle-visible"), i), "dwelling"));
485
- }, [i]), K = y(() => {
486
- O(), p((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
484
+ f((D) => D === "settling" || D !== "idle" ? D : (x.current = setTimeout(() => f("handle-visible"), d), "dwelling"));
485
+ }, [d]), K = y(() => {
486
+ O(), f((D) => D === "dwelling" || D === "handle-visible" ? "idle" : D);
487
487
  }, [O]), oe = y(
488
488
  (D, P, F) => {
489
489
  const B = _.current, Q = B * $.snapInFraction, Z = B * $.snapOutFraction, Y = P - F, q = Math.max(
490
490
  F,
491
- l.current ?? v
491
+ i.current ?? g
492
492
  );
493
493
  let z = Y;
494
494
  for (; F + z < q; ) {
@@ -504,15 +504,15 @@ function Oa({
504
504
  }
505
505
  return Math.min(q, Math.max(1, F + z));
506
506
  },
507
- [$.snapInFraction, $.snapOutFraction, v]
507
+ [$.snapInFraction, $.snapOutFraction, g]
508
508
  ), Ke = y(
509
509
  (D) => {
510
- if (g.current !== "handle-visible") return;
511
- M(), N.current = D.clientX, _.current = r, T.current = s, l.current = v;
510
+ if (p.current !== "handle-visible") return;
511
+ M(), N.current = D.clientX, _.current = r, T.current = s, i.current = g;
512
512
  const P = e * r + (e - 1) * s;
513
- b.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), g.current = "dragging", p("dragging");
513
+ v.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), p.current = "dragging", f("dragging");
514
514
  },
515
- [r, s, v, e, w, M]
515
+ [r, s, g, e, w, M]
516
516
  ), Ne = y(
517
517
  (D) => D * _.current + (D - 1) * T.current,
518
518
  []
@@ -520,52 +520,52 @@ function Oa({
520
520
  (D, P) => {
521
521
  const F = Ne(D), B = D !== e;
522
522
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
523
- w.jump(F), B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), g.current = "idle", p("idle");
523
+ 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");
524
524
  return;
525
525
  }
526
526
  const Z = G.current.getWeightedVelocity() * $.velocityMultiplier;
527
- g.current = "settling", p("settling"), M(), k.current = _e(w, F, {
527
+ p.current = "settling", f("settling"), M(), k.current = _e(w, F, {
528
528
  type: "spring",
529
529
  stiffness: $.stiffness,
530
530
  damping: $.damping,
531
531
  mass: $.mass,
532
532
  velocity: Z,
533
533
  onComplete: () => {
534
- k.current = null, B && P ? n({ direction: P, targetColSpan: D, mode: t ? "slot-fill" : "sparkline-fidelity" }) : B || a?.(), w.jump(0), g.current = "idle", p("idle");
534
+ 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");
535
535
  }
536
536
  });
537
537
  },
538
538
  [Ne, e, t, n, a, w, $, M]
539
539
  ), We = y(
540
540
  (D) => {
541
- if (g.current !== "dragging") return;
542
- const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((l.current ?? v) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
541
+ if (p.current !== "dragging") return;
542
+ const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((i.current ?? g) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
543
543
  G.current.push({ x: D.clientX, t: performance.now() });
544
544
  const q = oe(Y, V.current, e), z = q > e ? "grow" : q < e ? "shrink" : null;
545
545
  ie(q, z);
546
546
  },
547
- [oe, e, v, ie]
547
+ [oe, e, g, ie]
548
548
  ), ue = y(() => {
549
- if (O(), g.current === "dragging") {
550
- const D = b.current;
549
+ if (O(), p.current === "dragging") {
550
+ const D = v.current;
551
551
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
552
- w.jump(D), a?.(), w.jump(0), g.current = "idle", p("idle");
552
+ w.jump(D), a?.(), w.jump(0), p.current = "idle", f("idle");
553
553
  return;
554
554
  }
555
555
  const F = G.current.getWeightedVelocity();
556
- g.current = "settling", p("settling"), M(), k.current = _e(w, D, {
556
+ p.current = "settling", f("settling"), M(), k.current = _e(w, D, {
557
557
  type: "spring",
558
558
  stiffness: $.stiffness,
559
559
  damping: $.damping,
560
560
  mass: $.mass,
561
561
  velocity: F,
562
562
  onComplete: () => {
563
- k.current = null, a?.(), w.jump(0), g.current = "idle", p("idle");
563
+ k.current = null, a?.(), w.jump(0), p.current = "idle", f("idle");
564
564
  }
565
565
  });
566
566
  return;
567
567
  }
568
- g.current === "handle-visible" && (a?.(), g.current = "cancelled", p("cancelled"));
568
+ p.current === "handle-visible" && (a?.(), p.current = "cancelled", f("cancelled"));
569
569
  }, [O, w, a, $, M]);
570
570
  L(() => {
571
571
  if (c !== "dragging" && c !== "handle-visible") return;
@@ -575,43 +575,43 @@ function Oa({
575
575
  return window.addEventListener("keydown", D), () => window.removeEventListener("keydown", D);
576
576
  }, [c, ue]), L(() => {
577
577
  if (c !== "dragging") {
578
- f(e);
578
+ h(e);
579
579
  return;
580
580
  }
581
581
  const D = (P) => {
582
- const F = P.clientX - (N.current ?? P.clientX), B = b.current, Q = E(1), Z = E(v), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
582
+ const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(g), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
583
583
  w.set(q);
584
- const z = _.current, ke = (v - e) * z, te = (1 - e) * z, je = Math.max(te, Math.min(ke, F));
584
+ const z = _.current, ke = (g - e) * z, te = (1 - e) * z, je = Math.max(te, Math.min(ke, F));
585
585
  G.current.push({ x: P.clientX, t: performance.now() });
586
586
  const me = oe(je, V.current, e);
587
- me !== V.current && (V.current = me, f(me));
587
+ me !== V.current && (V.current = me, h(me));
588
588
  };
589
589
  return window.addEventListener("pointermove", D), () => window.removeEventListener("pointermove", D);
590
- }, [c, e, w, oe, v, E]), L(() => () => {
590
+ }, [c, e, w, oe, g, E]), L(() => () => {
591
591
  O(), j();
592
592
  }, [O, j]), L(() => {
593
593
  if (c !== "cancelled") return;
594
- const D = setTimeout(() => p("idle"), m);
594
+ const D = setTimeout(() => f("idle"), m);
595
595
  return () => clearTimeout(D);
596
596
  }, [c, m]);
597
597
  const Ge = y(
598
598
  (D) => {
599
- if (g.current === "settling") return;
600
- const F = Math.min(v, Math.max(1, e + (D === "grow" ? 1 : -1)));
599
+ if (p.current === "settling") return;
600
+ const F = Math.min(g, Math.max(1, e + (D === "grow" ? 1 : -1)));
601
601
  if (F === e) return;
602
- _.current = r, T.current = s, l.current = v, G.current.clear();
602
+ _.current = r, T.current = s, i.current = g, G.current.clear();
603
603
  const B = e * r + (e - 1) * s;
604
- b.current = B, w.jump(B), ie(F, D);
604
+ v.current = B, w.jump(B), ie(F, D);
605
605
  },
606
- [e, r, s, v, w, ie]
606
+ [e, r, s, g, w, ie]
607
607
  ), Ce = y(() => {
608
- j(), R.current = setTimeout(() => {
609
- g.current === "handle-visible" && (g.current = "idle", p("idle"));
608
+ j(), I.current = setTimeout(() => {
609
+ p.current === "handle-visible" && (p.current = "idle", f("idle"));
610
610
  }, 5e3);
611
611
  }, [j]), He = y(() => {
612
- g.current === "idle" && (O(), g.current = "handle-visible", p("handle-visible"), Ce());
612
+ p.current === "idle" && (O(), p.current = "handle-visible", f("handle-visible"), Ce());
613
613
  }, [O, Ce]), Ve = y(() => {
614
- j(), g.current === "handle-visible" && (g.current = "idle", p("idle"));
614
+ j(), p.current === "handle-visible" && (p.current = "idle", f("idle"));
615
615
  }, [j]);
616
616
  return {
617
617
  state: c,
@@ -630,7 +630,7 @@ function Oa({
630
630
  visible: c === "dragging" || c === "settling",
631
631
  targetColSpan: S,
632
632
  ghostWidth: w,
633
- enterMs: h,
633
+ enterMs: b,
634
634
  exitMs: m
635
635
  },
636
636
  onKeyboardStep: Ge,
@@ -919,23 +919,23 @@ function Pe({
919
919
  activePageId: r,
920
920
  onPageChange: s,
921
921
  onCreatePage: o,
922
- onManagePages: i
922
+ onManagePages: d
923
923
  }) {
924
- const h = y(
924
+ const b = y(
925
925
  (u) => {
926
926
  s(u), t();
927
927
  },
928
928
  [s, t]
929
929
  ), m = y(
930
930
  (u, c) => {
931
- (c.key === "Enter" || c.key === " ") && (c.preventDefault(), h(u));
931
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(u));
932
932
  },
933
- [h]
934
- ), v = y(() => {
933
+ [b]
934
+ ), g = y(() => {
935
935
  o(), t();
936
936
  }, [o, t]), C = y(() => {
937
- i(), t();
938
- }, [i, t]);
937
+ d(), t();
938
+ }, [d, t]);
939
939
  return /* @__PURE__ */ A(
940
940
  et,
941
941
  {
@@ -950,7 +950,7 @@ function Pe({
950
950
  anchorRef: n,
951
951
  className: "gloss-page-dropdown",
952
952
  children: [
953
- /* @__PURE__ */ d("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
953
+ /* @__PURE__ */ l("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
954
954
  const c = u.id === r;
955
955
  return /* @__PURE__ */ A(
956
956
  "li",
@@ -960,40 +960,40 @@ function Pe({
960
960
  "aria-current": c ? "page" : void 0,
961
961
  tabIndex: 0,
962
962
  className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
963
- onClick: () => h(u.id),
964
- onKeyDown: (p) => m(u.id, p),
963
+ onClick: () => b(u.id),
964
+ onKeyDown: (f) => m(u.id, f),
965
965
  children: [
966
- /* @__PURE__ */ d(
966
+ /* @__PURE__ */ l(
967
967
  "span",
968
968
  {
969
969
  className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
970
970
  }
971
971
  ),
972
- /* @__PURE__ */ d(
972
+ /* @__PURE__ */ l(
973
973
  "span",
974
974
  {
975
975
  className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
976
976
  children: u.name
977
977
  }
978
978
  ),
979
- /* @__PURE__ */ d("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
979
+ /* @__PURE__ */ l("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
980
980
  ]
981
981
  },
982
982
  u.id
983
983
  );
984
984
  }) }),
985
- /* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
986
- /* @__PURE__ */ d(
985
+ /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
986
+ /* @__PURE__ */ l(
987
987
  "button",
988
988
  {
989
989
  role: "menuitem",
990
990
  className: "gloss-page-dropdown__action",
991
- onClick: v,
991
+ onClick: g,
992
992
  children: "+ New page"
993
993
  }
994
994
  ),
995
- /* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
996
- /* @__PURE__ */ d(
995
+ /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
996
+ /* @__PURE__ */ l(
997
997
  "button",
998
998
  {
999
999
  role: "menuitem",
@@ -1014,26 +1014,26 @@ const kt = function({
1014
1014
  onPageChange: r,
1015
1015
  onCreatePage: s,
1016
1016
  onManagePages: o,
1017
- maskRadius: i = "var(--gloss-radius-md)"
1017
+ maskRadius: d = "var(--gloss-radius-md)"
1018
1018
  }) {
1019
- const h = I(null), [m, v] = W(!1), C = y(() => {
1020
- v((p) => !p);
1019
+ const b = R(null), [m, g] = W(!1), C = y(() => {
1020
+ g((f) => !f);
1021
1021
  }, []), u = y(() => {
1022
- v(!1);
1022
+ g(!1);
1023
1023
  }, []), c = a[t]?.id ?? "";
1024
1024
  return /* @__PURE__ */ A(
1025
1025
  "div",
1026
1026
  {
1027
1027
  className: "gloss-page-chip",
1028
- ref: h,
1028
+ ref: b,
1029
1029
  style: { position: "absolute", top: 0, right: 0 },
1030
1030
  "data-page-chip": !0,
1031
1031
  children: [
1032
- /* @__PURE__ */ d(
1032
+ /* @__PURE__ */ l(
1033
1033
  "div",
1034
1034
  {
1035
1035
  className: "gloss-page-chip__nuzzle",
1036
- style: { "--_nuzzle-r": i }
1036
+ style: { "--_nuzzle-r": d }
1037
1037
  }
1038
1038
  ),
1039
1039
  /* @__PURE__ */ A(
@@ -1051,12 +1051,12 @@ const kt = function({
1051
1051
  ]
1052
1052
  }
1053
1053
  ),
1054
- /* @__PURE__ */ d(
1054
+ /* @__PURE__ */ l(
1055
1055
  Pe,
1056
1056
  {
1057
1057
  open: m,
1058
1058
  onDismiss: u,
1059
- anchorRef: h,
1059
+ anchorRef: b,
1060
1060
  pages: a,
1061
1061
  activePageId: c,
1062
1062
  onPageChange: r,
@@ -1590,7 +1590,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1590
1590
  cellKinds: ["orderId"],
1591
1591
  graphType: "timeline"
1592
1592
  }
1593
- ], It = [
1593
+ ], Rt = [
1594
1594
  {
1595
1595
  id: "graph-metric",
1596
1596
  label: "Graph This Metric",
@@ -1621,7 +1621,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1621
1621
  ], qa = {
1622
1622
  entityName: Mt,
1623
1623
  orderId: Tt,
1624
- numeric: It
1624
+ numeric: Rt
1625
1625
  }, Qa = [
1626
1626
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
1627
1627
  /* @__PURE__ */ new Date()
@@ -1712,7 +1712,7 @@ const ne = H.createElement("span", { style: { color: "var(--color-text-muted)" }
1712
1712
  { id: "qtd", label: "QTD" },
1713
1713
  { id: "ytd", label: "YTD" },
1714
1714
  { id: "lytd", label: "LYTD" }
1715
- ], Rt = {
1715
+ ], It = {
1716
1716
  timeframe: "Time Frame",
1717
1717
  threshold: "Thresholds",
1718
1718
  slots: "Slots",
@@ -1747,22 +1747,22 @@ const Et = ({
1747
1747
  ariaCardTypeLabel: a,
1748
1748
  className: r
1749
1749
  }) => {
1750
- const s = I(null), o = I([]), i = Ft(), h = re(() => Array.from(e), [e]);
1751
- if (h.length === 0) return null;
1752
- const m = a ? `Configure ${a}: choose a dimension` : void 0, v = i ? "10ms" : "200ms", C = (u, c) => {
1753
- const p = h.length - 1, S = (f) => {
1754
- const x = o.current[f];
1750
+ const s = R(null), o = R([]), d = Ft(), b = re(() => Array.from(e), [e]);
1751
+ if (b.length === 0) return null;
1752
+ const m = a ? `Configure ${a}: choose a dimension` : void 0, g = d ? "10ms" : "200ms", C = (u, c) => {
1753
+ const f = b.length - 1, S = (h) => {
1754
+ const x = o.current[h];
1755
1755
  x && x.focus();
1756
1756
  };
1757
1757
  switch (u.key) {
1758
1758
  case "ArrowRight":
1759
1759
  case "ArrowDown": {
1760
- u.preventDefault(), S(c === p ? 0 : c + 1);
1760
+ u.preventDefault(), S(c === f ? 0 : c + 1);
1761
1761
  break;
1762
1762
  }
1763
1763
  case "ArrowLeft":
1764
1764
  case "ArrowUp": {
1765
- u.preventDefault(), S(c === 0 ? p : c - 1);
1765
+ u.preventDefault(), S(c === 0 ? f : c - 1);
1766
1766
  break;
1767
1767
  }
1768
1768
  case "Home": {
@@ -1770,17 +1770,17 @@ const Et = ({
1770
1770
  break;
1771
1771
  }
1772
1772
  case "End": {
1773
- u.preventDefault(), S(p);
1773
+ u.preventDefault(), S(f);
1774
1774
  break;
1775
1775
  }
1776
1776
  case "Enter":
1777
1777
  case " ": {
1778
- u.preventDefault(), t(h[c]);
1778
+ u.preventDefault(), t(b[c]);
1779
1779
  break;
1780
1780
  }
1781
1781
  }
1782
1782
  };
1783
- return /* @__PURE__ */ d(
1783
+ return /* @__PURE__ */ l(
1784
1784
  "div",
1785
1785
  {
1786
1786
  ref: s,
@@ -1791,15 +1791,15 @@ const Et = ({
1791
1791
  // Expose the reduced-motion-resolved duration as a CSS custom prop
1792
1792
  // so the SCSS transition rule can consume it without a nested media
1793
1793
  // query in the JS. Also surfaces the value for the unit test.
1794
- "--gloss-reconfig-backside-buttons-transition-duration": v
1794
+ "--gloss-reconfig-backside-buttons-transition-duration": g
1795
1795
  },
1796
- children: h.map((u, c) => {
1797
- const p = Pt[u], S = n === u;
1796
+ children: b.map((u, c) => {
1797
+ const f = Pt[u], S = n === u;
1798
1798
  return /* @__PURE__ */ A(
1799
1799
  "button",
1800
1800
  {
1801
- ref: (f) => {
1802
- o.current[c] = f;
1801
+ ref: (h) => {
1802
+ o.current[c] = h;
1803
1803
  },
1804
1804
  type: "button",
1805
1805
  "data-dimension": u,
@@ -1809,16 +1809,16 @@ const Et = ({
1809
1809
  ),
1810
1810
  "aria-current": S ? "true" : void 0,
1811
1811
  onClick: () => t(u),
1812
- onKeyDown: (f) => C(f, c),
1812
+ onKeyDown: (h) => C(h, c),
1813
1813
  children: [
1814
- /* @__PURE__ */ d(
1815
- p,
1814
+ /* @__PURE__ */ l(
1815
+ f,
1816
1816
  {
1817
1817
  className: "gloss-reconfig-backside-buttons__button-icon",
1818
1818
  "aria-hidden": "true"
1819
1819
  }
1820
1820
  ),
1821
- /* @__PURE__ */ d("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Rt[u] })
1821
+ /* @__PURE__ */ l("span", { className: "gloss-reconfig-backside-buttons__button-label", children: It[u] })
1822
1822
  ]
1823
1823
  },
1824
1824
  u
@@ -1879,7 +1879,7 @@ const sn = [
1879
1879
  maxRows: 3,
1880
1880
  currentPage: 0,
1881
1881
  totalPages: 2
1882
- }, dn = {
1882
+ }, cn = {
1883
1883
  columns: 12,
1884
1884
  rowHeight: 120,
1885
1885
  gap: 15,
@@ -1890,7 +1890,7 @@ const sn = [
1890
1890
  function pe(e) {
1891
1891
  return H.createElement("span", { style: { fontSize: 14 } }, e);
1892
1892
  }
1893
- const cn = [
1893
+ const dn = [
1894
1894
  {
1895
1895
  id: "all-orders",
1896
1896
  type: "orders",
@@ -1980,14 +1980,14 @@ function Ot(e) {
1980
1980
  }
1981
1981
  const At = function(t) {
1982
1982
  if (t.renderMode === "discrete")
1983
- return /* @__PURE__ */ d(
1983
+ return /* @__PURE__ */ l(
1984
1984
  "div",
1985
1985
  {
1986
1986
  className: "gloss-metric-group gloss-metric-group--discrete",
1987
1987
  style: { display: "contents" },
1988
1988
  children: t.cards.map((r) => {
1989
1989
  const s = ve(r.size);
1990
- return /* @__PURE__ */ d(
1990
+ return /* @__PURE__ */ l(
1991
1991
  "div",
1992
1992
  {
1993
1993
  className: "gloss-metric-group__slot",
@@ -2022,7 +2022,7 @@ const At = function(t) {
2022
2022
  "aria-label": a?.label,
2023
2023
  tabIndex: void 0,
2024
2024
  children: [
2025
- a?.accentColor && /* @__PURE__ */ d(
2025
+ a?.accentColor && /* @__PURE__ */ l(
2026
2026
  "div",
2027
2027
  {
2028
2028
  className: "gloss-metric-group__accent",
@@ -2030,8 +2030,8 @@ const At = function(t) {
2030
2030
  }
2031
2031
  ),
2032
2032
  a?.label && /* @__PURE__ */ A("div", { className: "gloss-metric-group__label", children: [
2033
- /* @__PURE__ */ d("span", { children: a.label }),
2034
- a?.trend && /* @__PURE__ */ d(
2033
+ /* @__PURE__ */ l("span", { children: a.label }),
2034
+ a?.trend && /* @__PURE__ */ l(
2035
2035
  "span",
2036
2036
  {
2037
2037
  className: "gloss-metric-group__trend",
@@ -2040,7 +2040,7 @@ const At = function(t) {
2040
2040
  }
2041
2041
  )
2042
2042
  ] }),
2043
- /* @__PURE__ */ d(
2043
+ /* @__PURE__ */ l(
2044
2044
  "div",
2045
2045
  {
2046
2046
  className: "gloss-metric-group__slots",
@@ -2051,7 +2051,7 @@ const At = function(t) {
2051
2051
  },
2052
2052
  children: n.map((r) => {
2053
2053
  const s = ve(r.size);
2054
- return /* @__PURE__ */ d(
2054
+ return /* @__PURE__ */ l(
2055
2055
  "div",
2056
2056
  {
2057
2057
  className: "gloss-metric-group__slot--composite",
@@ -2072,7 +2072,7 @@ const At = function(t) {
2072
2072
  };
2073
2073
  At.displayName = "MetricGroupContainer";
2074
2074
  const Ae = "resize.tuning.dev", Lt = {
2075
- ...Re,
2075
+ ...Ie,
2076
2076
  snapInPx: 60,
2077
2077
  snapOutPx: 90
2078
2078
  }, J = Lt;
@@ -2098,7 +2098,7 @@ function Bt() {
2098
2098
  }, [e]);
2099
2099
  const n = y(
2100
2100
  (s, o) => {
2101
- t((i) => ({ ...i, [s]: o }));
2101
+ t((d) => ({ ...d, [s]: o }));
2102
2102
  },
2103
2103
  []
2104
2104
  ), a = y(
@@ -2139,8 +2139,8 @@ function Wt() {
2139
2139
  strokeLinejoin: "round",
2140
2140
  "aria-hidden": "true",
2141
2141
  children: [
2142
- /* @__PURE__ */ d("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2143
- /* @__PURE__ */ d("polyline", { points: "3 3 3 8 8 8" })
2142
+ /* @__PURE__ */ l("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2143
+ /* @__PURE__ */ l("polyline", { points: "3 3 3 8 8 8" })
2144
2144
  ]
2145
2145
  }
2146
2146
  );
@@ -2159,12 +2159,12 @@ function Gt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
2159
2159
  "data-tuning-row": e.key,
2160
2160
  onKeyDown: s,
2161
2161
  children: [
2162
- /* @__PURE__ */ d("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2162
+ /* @__PURE__ */ l("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2163
2163
  /* @__PURE__ */ A("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2164
2164
  Kt(t, e.step),
2165
2165
  e.unit ? ` ${e.unit}` : ""
2166
2166
  ] }),
2167
- /* @__PURE__ */ d(
2167
+ /* @__PURE__ */ l(
2168
2168
  "input",
2169
2169
  {
2170
2170
  id: `gloss-dtp-${e.key}`,
@@ -2178,14 +2178,14 @@ function Gt({ spec: e, value: t, onChange: n, onReset: a, flashing: r }) {
2178
2178
  onChange: (o) => n(Number(o.target.value))
2179
2179
  }
2180
2180
  ),
2181
- /* @__PURE__ */ d(
2181
+ /* @__PURE__ */ l(
2182
2182
  "button",
2183
2183
  {
2184
2184
  type: "button",
2185
2185
  className: "gloss-dev-tuning-panel__reset",
2186
2186
  "aria-label": `Reset ${e.label}`,
2187
2187
  onClick: a,
2188
- children: /* @__PURE__ */ d(Wt, {})
2188
+ children: /* @__PURE__ */ l(Wt, {})
2189
2189
  }
2190
2190
  )
2191
2191
  ]
@@ -2201,22 +2201,22 @@ function Ht() {
2201
2201
  }
2202
2202
  }
2203
2203
  function Vt(e = {}) {
2204
- return Ht() ? /* @__PURE__ */ d(jt, {}) : null;
2204
+ return Ht() ? /* @__PURE__ */ l(jt, {}) : null;
2205
2205
  }
2206
2206
  Vt.displayName = "DevTuningPanel";
2207
2207
  function jt() {
2208
- const e = Bt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), i = I(null), h = y((u) => {
2209
- i.current && clearTimeout(i.current), o(u), i.current = setTimeout(() => {
2210
- o(null), i.current = null;
2208
+ const e = Bt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), d = R(null), b = y((u) => {
2209
+ d.current && clearTimeout(d.current), o(u), d.current = setTimeout(() => {
2210
+ o(null), d.current = null;
2211
2211
  }, 200);
2212
2212
  }, []), m = y(
2213
2213
  (u, c) => {
2214
- n(u, c), u === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), h("snapOutPx"));
2214
+ n(u, c), u === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
2215
2215
  },
2216
- [n, t.snapOutPx, h]
2217
- ), v = re(() => zt, []), C = Je();
2216
+ [n, t.snapOutPx, b]
2217
+ ), g = re(() => zt, []), C = Je();
2218
2218
  return /* @__PURE__ */ A(
2219
- de.div,
2219
+ ce.div,
2220
2220
  {
2221
2221
  className: "gloss-dev-tuning-panel",
2222
2222
  role: "region",
@@ -2233,12 +2233,12 @@ function jt() {
2233
2233
  className: "gloss-dev-tuning-panel__header",
2234
2234
  onPointerDown: (u) => C.start(u),
2235
2235
  children: [
2236
- /* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2237
- /* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2236
+ /* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2237
+ /* @__PURE__ */ l("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2238
2238
  ]
2239
2239
  }
2240
2240
  ),
2241
- /* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__body", children: v.map((u) => /* @__PURE__ */ d(
2241
+ /* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__body", children: g.map((u) => /* @__PURE__ */ l(
2242
2242
  Gt,
2243
2243
  {
2244
2244
  spec: u,
@@ -2249,7 +2249,7 @@ function jt() {
2249
2249
  },
2250
2250
  u.key
2251
2251
  )) }),
2252
- /* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ d(
2252
+ /* @__PURE__ */ l("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ l(
2253
2253
  "button",
2254
2254
  {
2255
2255
  type: "button",
@@ -2270,23 +2270,23 @@ function pn({
2270
2270
  rightEdgeX: r,
2271
2271
  minBoundaryX: s,
2272
2272
  snapBoundariesX: o,
2273
- topY: i,
2274
- bottomY: h,
2273
+ topY: d,
2274
+ bottomY: b,
2275
2275
  enterMs: m = ee.envelopeEnterMs,
2276
- exitMs: v = ee.envelopeExitMs,
2276
+ exitMs: g = ee.envelopeExitMs,
2277
2277
  className: C,
2278
2278
  style: u
2279
2279
  }) {
2280
2280
  if (e === "hidden") return null;
2281
- const c = Math.max(0, r - a), p = Math.max(0, h - i), S = {
2281
+ const c = Math.max(0, r - a), f = Math.max(0, b - d), S = {
2282
2282
  "--gloss-resize-envelope-enter-ms": `${m}ms`,
2283
- "--gloss-resize-envelope-exit-ms": `${v}ms`,
2283
+ "--gloss-resize-envelope-exit-ms": `${g}ms`,
2284
2284
  "--gloss-resize-envelope-origin-x": `${t - a}px`,
2285
- "--gloss-resize-envelope-origin-y": `${n - i}px`,
2285
+ "--gloss-resize-envelope-origin-y": `${n - d}px`,
2286
2286
  left: a,
2287
- top: i,
2287
+ top: d,
2288
2288
  width: c,
2289
- height: p,
2289
+ height: f,
2290
2290
  ...u
2291
2291
  };
2292
2292
  return /* @__PURE__ */ A(
@@ -2298,7 +2298,7 @@ function pn({
2298
2298
  style: S,
2299
2299
  "aria-hidden": "true",
2300
2300
  children: [
2301
- /* @__PURE__ */ d(
2301
+ /* @__PURE__ */ l(
2302
2302
  "div",
2303
2303
  {
2304
2304
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--left",
@@ -2306,7 +2306,7 @@ function pn({
2306
2306
  style: { left: 0 }
2307
2307
  }
2308
2308
  ),
2309
- /* @__PURE__ */ d(
2309
+ /* @__PURE__ */ l(
2310
2310
  "div",
2311
2311
  {
2312
2312
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--min-boundary",
@@ -2314,7 +2314,7 @@ function pn({
2314
2314
  style: { left: s - a }
2315
2315
  }
2316
2316
  ),
2317
- /* @__PURE__ */ d(
2317
+ /* @__PURE__ */ l(
2318
2318
  "div",
2319
2319
  {
2320
2320
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--right",
@@ -2322,14 +2322,14 @@ function pn({
2322
2322
  style: { left: c - 1 }
2323
2323
  }
2324
2324
  ),
2325
- o.filter((f) => f > s && f < r).map((f) => /* @__PURE__ */ d(
2325
+ o.filter((h) => h > s && h < r).map((h) => /* @__PURE__ */ l(
2326
2326
  "div",
2327
2327
  {
2328
2328
  className: "gloss-resize-envelope__snap-line",
2329
2329
  "data-snap-line": !0,
2330
- style: { left: f - a }
2330
+ style: { left: h - a }
2331
2331
  },
2332
- f
2332
+ h
2333
2333
  ))
2334
2334
  ]
2335
2335
  }
@@ -2344,12 +2344,12 @@ function fn({
2344
2344
  children: s,
2345
2345
  ...o
2346
2346
  }) {
2347
- const i = a != null ? { ...o.style, "--_proximity-opacity": String(a) } : o.style;
2348
- return /* @__PURE__ */ d(
2347
+ const d = a != null ? { ...o.style, "--_proximity-opacity": String(a) } : o.style;
2348
+ return /* @__PURE__ */ l(
2349
2349
  "div",
2350
2350
  {
2351
2351
  ...o,
2352
- style: i,
2352
+ style: d,
2353
2353
  "data-density": e,
2354
2354
  "data-can-accept": t ? "true" : "false",
2355
2355
  "data-blocked": n ? "true" : void 0,
@@ -2375,7 +2375,7 @@ function hn({
2375
2375
  className: a,
2376
2376
  style: r
2377
2377
  }) {
2378
- return e.length === 0 ? null : /* @__PURE__ */ d(
2378
+ return e.length === 0 ? null : /* @__PURE__ */ l(
2379
2379
  "svg",
2380
2380
  {
2381
2381
  className: ["gloss-spillover-arc", a].filter(Boolean).join(" "),
@@ -2383,7 +2383,7 @@ function hn({
2383
2383
  "aria-hidden": "true",
2384
2384
  overflow: "visible",
2385
2385
  style: { position: "absolute", inset: 0, pointerEvents: "none", ...r },
2386
- children: e.map((s, o) => /* @__PURE__ */ d(
2386
+ children: e.map((s, o) => /* @__PURE__ */ l(
2387
2387
  "path",
2388
2388
  {
2389
2389
  "data-arc-id": s.id,
@@ -2407,18 +2407,18 @@ function bn({
2407
2407
  staggerMs: r = ee.sectionDividerStaggerMs,
2408
2408
  className: s,
2409
2409
  style: o,
2410
- ...i
2410
+ ...d
2411
2411
  }) {
2412
- const h = {
2412
+ const b = {
2413
2413
  "--gloss-section-divider-fade-in-ms": `${n}ms`,
2414
2414
  "--gloss-section-divider-fade-out-ms": `${a}ms`,
2415
2415
  "--gloss-section-divider-stagger-delay": `${t * r}ms`,
2416
2416
  ...o
2417
2417
  };
2418
- return /* @__PURE__ */ d(
2418
+ return /* @__PURE__ */ l(
2419
2419
  "div",
2420
2420
  {
2421
- ...i,
2421
+ ...d,
2422
2422
  "data-state": e,
2423
2423
  "data-testid": "gloss-section-divider",
2424
2424
  "aria-hidden": "true",
@@ -2427,7 +2427,7 @@ function bn({
2427
2427
  `gloss-section-divider--state-${e}`,
2428
2428
  s
2429
2429
  ].filter(Boolean).join(" "),
2430
- style: h
2430
+ style: b
2431
2431
  }
2432
2432
  );
2433
2433
  }
@@ -2438,7 +2438,7 @@ function vn({
2438
2438
  className: a,
2439
2439
  style: r
2440
2440
  }) {
2441
- return e ? /* @__PURE__ */ d(
2441
+ return e ? /* @__PURE__ */ l(
2442
2442
  "button",
2443
2443
  {
2444
2444
  type: "button",
@@ -2447,7 +2447,7 @@ function vn({
2447
2447
  className: ["gloss-empty-cell-pack-affordance", a].filter(Boolean).join(" "),
2448
2448
  style: r,
2449
2449
  onClick: t,
2450
- children: /* @__PURE__ */ d("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2450
+ children: /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "×" })
2451
2451
  }
2452
2452
  ) : null;
2453
2453
  }
@@ -2459,12 +2459,12 @@ function yn({
2459
2459
  gap: r,
2460
2460
  x: s,
2461
2461
  y: o,
2462
- children: i,
2463
- className: h
2462
+ children: d,
2463
+ className: b
2464
2464
  }) {
2465
2465
  const m = t * n + (t - 1) * r;
2466
- return /* @__PURE__ */ d(
2467
- de.div,
2466
+ return /* @__PURE__ */ l(
2467
+ ce.div,
2468
2468
  {
2469
2469
  "data-testid": "gloss-drag-ghost",
2470
2470
  "data-tint": e,
@@ -2472,10 +2472,10 @@ function yn({
2472
2472
  className: [
2473
2473
  "gloss-drag-ghost",
2474
2474
  `gloss-drag-ghost--tint-${e}`,
2475
- h
2475
+ b
2476
2476
  ].filter(Boolean).join(" "),
2477
2477
  style: { x: s, y: o, width: m, height: a },
2478
- children: i
2478
+ children: d
2479
2479
  }
2480
2480
  );
2481
2481
  }
@@ -2488,16 +2488,16 @@ function wn({
2488
2488
  transitionMs: s = 120,
2489
2489
  className: o
2490
2490
  }) {
2491
- const i = t * n + (t - 1) * a, h = e.col * (n + a), m = e.row * (r + a);
2492
- return /* @__PURE__ */ d(
2491
+ const d = t * n + (t - 1) * a, b = e.col * (n + a), m = e.row * (r + a);
2492
+ return /* @__PURE__ */ l(
2493
2493
  "div",
2494
2494
  {
2495
2495
  className: ["gloss-drag-feedback-snap-outline", o].filter(Boolean).join(" "),
2496
2496
  "data-testid": "gloss-snap-outline",
2497
2497
  "aria-hidden": "true",
2498
2498
  style: {
2499
- transform: `translate(${h}px, ${m}px)`,
2500
- width: i,
2499
+ transform: `translate(${b}px, ${m}px)`,
2500
+ width: d,
2501
2501
  height: r,
2502
2502
  transition: `transform ${s}ms cubic-bezier(0.4, 0, 0.2, 1)`
2503
2503
  }
@@ -2509,8 +2509,8 @@ function Dn({
2509
2509
  children: t,
2510
2510
  className: n
2511
2511
  }) {
2512
- return e.length === 0 ? null : /* @__PURE__ */ d(Ue, { children: e.map((a) => /* @__PURE__ */ d(
2513
- de.div,
2512
+ return e.length === 0 ? null : /* @__PURE__ */ l(Ue, { children: e.map((a) => /* @__PURE__ */ l(
2513
+ ce.div,
2514
2514
  {
2515
2515
  "data-card-id": a.cardId,
2516
2516
  "data-testid": "gloss-cascade-preview-item",
@@ -2585,7 +2585,7 @@ function Zt({
2585
2585
  anchorEl: a,
2586
2586
  anchorSelector: r
2587
2587
  }) {
2588
- const [s, o] = H.useState(null), i = H.useMemo(
2588
+ const [s, o] = H.useState(null), d = H.useMemo(
2589
2589
  () => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
2590
2590
  []
2591
2591
  );
@@ -2596,26 +2596,26 @@ function Zt({
2596
2596
  }, [a, r]), H.useLayoutEffect(() => {
2597
2597
  let m = null;
2598
2598
  if (a ? m = a : r && (m = document.querySelector(r)), m) {
2599
- const v = m.getBoundingClientRect();
2599
+ const g = m.getBoundingClientRect();
2600
2600
  o({
2601
- top: v.bottom + window.scrollY + 6,
2602
- left: v.left + window.scrollX
2601
+ top: g.bottom + window.scrollY + 6,
2602
+ left: g.left + window.scrollX
2603
2603
  });
2604
2604
  }
2605
2605
  }, [a, r]);
2606
- const h = s ? { top: s.top, left: s.left } : {};
2606
+ const b = s ? { top: s.top, left: s.left } : {};
2607
2607
  return /* @__PURE__ */ A(
2608
2608
  "div",
2609
2609
  {
2610
2610
  className: X["gloss-inline-nudge"],
2611
- style: h,
2611
+ style: b,
2612
2612
  role: "status",
2613
2613
  "aria-live": "polite",
2614
- "data-reduced-motion": i ? "true" : void 0,
2614
+ "data-reduced-motion": d ? "true" : void 0,
2615
2615
  children: [
2616
- /* @__PURE__ */ d("span", { className: X["gloss-inline-nudge__message"], children: e }),
2616
+ /* @__PURE__ */ l("span", { className: X["gloss-inline-nudge__message"], children: e }),
2617
2617
  /* @__PURE__ */ A("div", { className: X["gloss-inline-nudge__actions"], children: [
2618
- /* @__PURE__ */ d(
2618
+ /* @__PURE__ */ l(
2619
2619
  "button",
2620
2620
  {
2621
2621
  type: "button",
@@ -2624,7 +2624,7 @@ function Zt({
2624
2624
  children: t.label
2625
2625
  }
2626
2626
  ),
2627
- /* @__PURE__ */ d(
2627
+ /* @__PURE__ */ l(
2628
2628
  "button",
2629
2629
  {
2630
2630
  type: "button",
@@ -2645,12 +2645,12 @@ function ye(e) {
2645
2645
  }
2646
2646
  function Yt(e, t, n) {
2647
2647
  if (n <= t) {
2648
- const o = e[0], i = o ? ye(o) : "#888";
2649
- return `linear-gradient(to right, ${i}, ${i})`;
2648
+ const o = e[0], d = o ? ye(o) : "#888";
2649
+ return `linear-gradient(to right, ${d}, ${d})`;
2650
2650
  }
2651
- const a = n - t, s = [...e].sort((o, i) => o.value - i.value).map((o) => {
2652
- const i = (o.value - t) / a * 100;
2653
- return `${ye(o)} ${i.toFixed(2)}%`;
2651
+ const a = n - t, s = [...e].sort((o, d) => o.value - d.value).map((o) => {
2652
+ const d = (o.value - t) / a * 100;
2653
+ return `${ye(o)} ${d.toFixed(2)}%`;
2654
2654
  });
2655
2655
  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(", ")})`;
2656
2656
  }
@@ -2667,20 +2667,20 @@ function Qt({
2667
2667
  }) {
2668
2668
  const o = r === void 0 ? 0.01 : !Number.isFinite(r) || r <= 0 ? (process.env.NODE_ENV !== "production" && console.warn(
2669
2669
  `ThresholdRamp: step (${r}) must be a positive finite number; falling back to 0.01.`
2670
- ), 0.01) : r, i = y(
2671
- (l) => Math.round(l / o) * o,
2670
+ ), 0.01) : r, d = y(
2671
+ (i) => Math.round(i / o) * o,
2672
2672
  [o]
2673
- ), h = I(null), [m, v] = W(null), [C, u] = W(e), c = qt(e), p = I(c);
2673
+ ), b = R(null), [m, g] = W(null), [C, u] = W(e), c = qt(e), f = R(c);
2674
2674
  L(() => {
2675
- p.current !== c && (p.current = c, !m && u(e));
2675
+ f.current !== c && (f.current = c, !m && u(e));
2676
2676
  }, [c, e, m]);
2677
- const S = re(() => Yt(C, n, a), [C, n, a]), f = y(
2678
- (l) => {
2679
- if (!h.current) return n;
2680
- const b = h.current.getBoundingClientRect(), g = b.width || 1, w = Math.max(0, Math.min(1, (l - b.left) / g)), k = n + w * (a - n);
2681
- return i(k);
2677
+ const S = re(() => Yt(C, n, a), [C, n, a]), h = y(
2678
+ (i) => {
2679
+ if (!b.current) return n;
2680
+ 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);
2681
+ return d(k);
2682
2682
  },
2683
- [n, a, i]
2683
+ [n, a, d]
2684
2684
  );
2685
2685
  L(() => {
2686
2686
  a <= n && process.env.NODE_ENV !== "production" && console.warn(
@@ -2688,46 +2688,46 @@ function Qt({
2688
2688
  );
2689
2689
  }, [n, a]);
2690
2690
  const x = y(
2691
- (l, b) => {
2692
- const g = C.find((w) => w.id === b);
2693
- s || g?.disabled || (l.preventDefault(), v(b));
2691
+ (i, v) => {
2692
+ const p = C.find((w) => w.id === v);
2693
+ s || p?.disabled || (i.preventDefault(), g(v));
2694
2694
  },
2695
2695
  [s, C]
2696
- ), R = I(C);
2697
- R.current = C;
2698
- const N = I(t);
2696
+ ), I = R(C);
2697
+ I.current = C;
2698
+ const N = R(t);
2699
2699
  N.current = t, L(() => {
2700
2700
  if (!m) return;
2701
- const l = (g) => {
2702
- const w = f(g.clientX);
2701
+ const i = (p) => {
2702
+ const w = h(p.clientX);
2703
2703
  u(
2704
2704
  (k) => k.map((M) => M.id === m ? { ...M, value: w } : M)
2705
2705
  );
2706
- }, b = (g) => {
2707
- const w = f(g.clientX), k = R.current.map(
2706
+ }, v = (p) => {
2707
+ const w = h(p.clientX), k = I.current.map(
2708
2708
  (M) => M.id === m ? { ...M, value: w } : M
2709
2709
  );
2710
- u(k), v(null), N.current(k);
2710
+ u(k), g(null), N.current(k);
2711
2711
  };
2712
- return window.addEventListener("pointermove", l), window.addEventListener("pointerup", b), window.addEventListener("pointercancel", b), () => {
2713
- window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", b), window.removeEventListener("pointercancel", b);
2712
+ return window.addEventListener("pointermove", i), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
2713
+ window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
2714
2714
  };
2715
- }, [m, f]);
2715
+ }, [m, h]);
2716
2716
  const _ = a - n > 0 ? a - n : 1, T = y(
2717
- (l, b) => {
2718
- if (s || b.disabled) return;
2719
- const g = a - n;
2720
- if (g <= 0) return;
2721
- const w = l.shiftKey ? g / 20 : g / 100;
2722
- let k = b.value;
2723
- switch (l.key) {
2717
+ (i, v) => {
2718
+ if (s || v.disabled) return;
2719
+ const p = a - n;
2720
+ if (p <= 0) return;
2721
+ const w = i.shiftKey ? p / 20 : p / 100;
2722
+ let k = v.value;
2723
+ switch (i.key) {
2724
2724
  case "ArrowRight":
2725
2725
  case "ArrowUp":
2726
- k = b.value + w;
2726
+ k = v.value + w;
2727
2727
  break;
2728
2728
  case "ArrowLeft":
2729
2729
  case "ArrowDown":
2730
- k = b.value - w;
2730
+ k = v.value - w;
2731
2731
  break;
2732
2732
  case "Home":
2733
2733
  k = n;
@@ -2738,45 +2738,45 @@ function Qt({
2738
2738
  default:
2739
2739
  return;
2740
2740
  }
2741
- l.preventDefault();
2742
- const M = Math.max(n, Math.min(a, k)), E = i(M);
2743
- if (E === b.value) return;
2741
+ i.preventDefault();
2742
+ const M = Math.max(n, Math.min(a, k)), E = d(M);
2743
+ if (E === v.value) return;
2744
2744
  const G = C.map(
2745
- (V) => V.id === b.id ? { ...V, value: E } : V
2745
+ (V) => V.id === v.id ? { ...V, value: E } : V
2746
2746
  );
2747
2747
  u(G), t(G);
2748
2748
  },
2749
- [s, n, a, C, t, i]
2749
+ [s, n, a, C, t, d]
2750
2750
  );
2751
- return /* @__PURE__ */ d("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ d(
2751
+ return /* @__PURE__ */ l("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ l(
2752
2752
  "div",
2753
2753
  {
2754
- ref: h,
2754
+ ref: b,
2755
2755
  className: "gloss-threshold-ramp__track",
2756
2756
  style: { background: S },
2757
- children: C.map((l) => {
2758
- const b = (l.value - n) / _ * 100;
2759
- return /* @__PURE__ */ d(
2757
+ children: C.map((i) => {
2758
+ const v = (i.value - n) / _ * 100;
2759
+ return /* @__PURE__ */ l(
2760
2760
  "span",
2761
2761
  {
2762
2762
  className: "gloss-threshold-ramp__stop",
2763
2763
  style: {
2764
- left: `${b}%`,
2765
- color: ye(l)
2764
+ left: `${v}%`,
2765
+ color: ye(i)
2766
2766
  },
2767
- "data-disabled": l.disabled || void 0,
2768
- "data-dragging": m === l.id || void 0,
2769
- onPointerDown: (g) => x(g, l.id),
2770
- onKeyDown: (g) => T(g, l),
2771
- "aria-label": l.label ?? `Stop at ${l.value}`,
2767
+ "data-disabled": i.disabled || void 0,
2768
+ "data-dragging": m === i.id || void 0,
2769
+ onPointerDown: (p) => x(p, i.id),
2770
+ onKeyDown: (p) => T(p, i),
2771
+ "aria-label": i.label ?? `Stop at ${i.value}`,
2772
2772
  role: "slider",
2773
- "aria-valuenow": l.value,
2773
+ "aria-valuenow": i.value,
2774
2774
  "aria-valuemin": n,
2775
2775
  "aria-valuemax": a,
2776
- "aria-disabled": l.disabled || s || void 0,
2777
- tabIndex: l.disabled || s ? -1 : 0
2776
+ "aria-disabled": i.disabled || s || void 0,
2777
+ tabIndex: i.disabled || s ? -1 : 0
2778
2778
  },
2779
- l.id
2779
+ i.id
2780
2780
  );
2781
2781
  })
2782
2782
  }
@@ -2795,8 +2795,8 @@ function Jt({ option: e }) {
2795
2795
  a || t?.onKeyNav(m, e.value);
2796
2796
  },
2797
2797
  [a, t, e.value]
2798
- ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", i = t?.firstFocusableValue === e.value, h = a ? -1 : i ? 0 : -1;
2799
- return /* @__PURE__ */ d(
2798
+ ), 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;
2799
+ return /* @__PURE__ */ l(
2800
2800
  "button",
2801
2801
  {
2802
2802
  ref: (m) => t?.registerRef(e.value, m),
@@ -2811,7 +2811,7 @@ function Jt({ option: e }) {
2811
2811
  "aria-label": e.label ?? e.value,
2812
2812
  "aria-disabled": a,
2813
2813
  disabled: a,
2814
- tabIndex: h,
2814
+ tabIndex: b,
2815
2815
  onClick: r,
2816
2816
  onKeyDown: s
2817
2817
  }
@@ -2825,17 +2825,17 @@ function ea({
2825
2825
  disabled: r = !1,
2826
2826
  name: s
2827
2827
  }) {
2828
- const o = t !== void 0, [i, h] = W(n), m = o ? t : i, v = y(
2828
+ const o = t !== void 0, [d, b] = W(n), m = o ? t : d, g = y(
2829
2829
  (N) => {
2830
- o || h(N), a?.(N);
2830
+ o || b(N), a?.(N);
2831
2831
  },
2832
2832
  [o, a]
2833
2833
  ), C = y(
2834
2834
  (N) => m === N,
2835
2835
  [m]
2836
- ), u = I(/* @__PURE__ */ new Map()), c = y((N, _) => {
2836
+ ), u = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
2837
2837
  _ ? u.current.set(N, _) : u.current.delete(N);
2838
- }, []), p = e.filter((N) => !N.disabled && !r), S = p.find((N) => N.value === m)?.value ?? p[0]?.value, f = y((N) => {
2838
+ }, []), f = e.filter((N) => !N.disabled && !r), S = f.find((N) => N.value === m)?.value ?? f[0]?.value, h = y((N) => {
2839
2839
  const _ = u.current.get(N);
2840
2840
  _ && _.focus();
2841
2841
  }, []), x = y(
@@ -2843,39 +2843,39 @@ function ea({
2843
2843
  if (r) return;
2844
2844
  const T = e.filter((w) => !w.disabled);
2845
2845
  if (T.length === 0) return;
2846
- const l = T.findIndex((w) => w.value === _);
2847
- if (l === -1) return;
2848
- let b = l;
2846
+ const i = T.findIndex((w) => w.value === _);
2847
+ if (i === -1) return;
2848
+ let v = i;
2849
2849
  switch (N.key) {
2850
2850
  case "ArrowRight":
2851
2851
  case "ArrowDown":
2852
- b = (l + 1) % T.length;
2852
+ v = (i + 1) % T.length;
2853
2853
  break;
2854
2854
  case "ArrowLeft":
2855
2855
  case "ArrowUp":
2856
- b = (l - 1 + T.length) % T.length;
2856
+ v = (i - 1 + T.length) % T.length;
2857
2857
  break;
2858
2858
  case "Home":
2859
- b = 0;
2859
+ v = 0;
2860
2860
  break;
2861
2861
  case "End":
2862
- b = T.length - 1;
2862
+ v = T.length - 1;
2863
2863
  break;
2864
2864
  case " ":
2865
2865
  case "Enter":
2866
- N.preventDefault(), v(_);
2866
+ N.preventDefault(), g(_);
2867
2867
  return;
2868
2868
  default:
2869
2869
  return;
2870
2870
  }
2871
2871
  N.preventDefault();
2872
- const g = T[b].value;
2873
- f(g), v(g);
2872
+ const p = T[v].value;
2873
+ h(p), g(p);
2874
2874
  },
2875
- [r, e, v, f]
2876
- ), R = {
2875
+ [r, e, g, h]
2876
+ ), I = {
2877
2877
  selectedValue: m,
2878
- select: v,
2878
+ select: g,
2879
2879
  isSelected: C,
2880
2880
  groupDisabled: r,
2881
2881
  name: s,
@@ -2883,7 +2883,7 @@ function ea({
2883
2883
  firstFocusableValue: S,
2884
2884
  onKeyNav: x
2885
2885
  };
2886
- return /* @__PURE__ */ d(Le.Provider, { value: R, children: /* @__PURE__ */ d(
2886
+ return /* @__PURE__ */ l(Le.Provider, { value: I, children: /* @__PURE__ */ l(
2887
2887
  "div",
2888
2888
  {
2889
2889
  className: "gloss-preset-swatch-row",
@@ -2891,7 +2891,7 @@ function ea({
2891
2891
  "aria-label": s,
2892
2892
  "aria-disabled": r,
2893
2893
  "data-disabled": r || void 0,
2894
- children: e.map((N) => /* @__PURE__ */ d(Jt, { option: N }, N.value))
2894
+ children: e.map((N) => /* @__PURE__ */ l(Jt, { option: N }, N.value))
2895
2895
  }
2896
2896
  ) });
2897
2897
  }
@@ -2902,7 +2902,7 @@ function we(e, t) {
2902
2902
  return n.zoneKey;
2903
2903
  return null;
2904
2904
  }
2905
- function Ie(e, t) {
2905
+ function Re(e, t) {
2906
2906
  const n = e.find((a) => a.zoneKey === t);
2907
2907
  return n ? n.zoneKey : we(e, t);
2908
2908
  }
@@ -2915,74 +2915,74 @@ function aa(e) {
2915
2915
  }
2916
2916
  function na(e) {
2917
2917
  const [t, n] = W(
2918
- () => e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2919
- `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
2920
- ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
2921
- ), [a, r] = W(null), [s, o] = W(null), i = I(null), h = I(e.onZoneChange);
2922
- h.current = e.onZoneChange;
2918
+ () => e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2919
+ `useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
2920
+ ), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
2921
+ ), [a, r] = W(null), [s, o] = W(null), d = R(null), b = R(e.onZoneChange);
2922
+ b.current = e.onZoneChange;
2923
2923
  const m = re(
2924
2924
  () => aa(e.zones),
2925
2925
  [e.zones]
2926
- ), v = I(m);
2926
+ ), g = R(m);
2927
2927
  L(() => {
2928
- v.current !== m && (v.current = m, !a && n(
2929
- e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2930
- `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
2931
- ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
2928
+ g.current !== m && (g.current = m, !a && n(
2929
+ e.zones.map((h) => h.maxItems !== void 0 && h.items.length > h.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2930
+ `useSortableZones: zone "${h.zoneKey}" exceeds maxItems (${h.items.length} > ${h.maxItems}); trimming to cap.`
2931
+ ), { ...h, items: h.items.slice(0, h.maxItems) }) : h)
2932
2932
  ));
2933
2933
  }, [m, e.zones, a]);
2934
2934
  const C = y(
2935
- (f) => {
2936
- const x = f.active.id;
2937
- let R = null, N = null;
2935
+ (h) => {
2936
+ const x = h.active.id;
2937
+ let I = null, N = null;
2938
2938
  for (const _ of t) {
2939
- const T = _.items.find((l) => l.id === x);
2939
+ const T = _.items.find((i) => i.id === x);
2940
2940
  if (T) {
2941
- R = T, N = _.zoneKey;
2941
+ I = T, N = _.zoneKey;
2942
2942
  break;
2943
2943
  }
2944
2944
  }
2945
- i.current = N, r(R), o(N);
2945
+ d.current = N, r(I), o(N);
2946
2946
  },
2947
2947
  [t]
2948
2948
  ), u = y(
2949
- (f) => {
2950
- if (!f.over) {
2951
- o(i.current);
2949
+ (h) => {
2950
+ if (!h.over) {
2951
+ o(d.current);
2952
2952
  return;
2953
2953
  }
2954
- const x = Ie(t, f.over.id);
2954
+ const x = Re(t, h.over.id);
2955
2955
  o(x);
2956
2956
  },
2957
2957
  [t]
2958
2958
  ), c = y(
2959
- (f) => {
2960
- const { active: x, over: R } = f, N = () => {
2961
- i.current = null, r(null), o(null);
2959
+ (h) => {
2960
+ const { active: x, over: I } = h, N = () => {
2961
+ d.current = null, r(null), o(null);
2962
2962
  };
2963
- if (!R) {
2963
+ if (!I) {
2964
2964
  N();
2965
2965
  return;
2966
2966
  }
2967
- const _ = we(t, x.id), T = Ie(t, R.id);
2967
+ const _ = we(t, x.id), T = Re(t, I.id);
2968
2968
  if (!_ || !T) {
2969
2969
  N();
2970
2970
  return;
2971
2971
  }
2972
- let l = t.map((b) => ({ ...b, items: [...b.items] }));
2972
+ let i = t.map((v) => ({ ...v, items: [...v.items] }));
2973
2973
  if (_ === T) {
2974
- const b = l.findIndex((E) => E.zoneKey === _), g = l[b], w = g.items.findIndex((E) => E.id === x.id), k = g.items.findIndex((E) => E.id === R.id), M = k >= 0 ? k : Math.max(0, g.items.length - 1);
2975
- l[b] = {
2976
- ...g,
2977
- items: ta(g.items, w, M)
2974
+ 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);
2975
+ i[v] = {
2976
+ ...p,
2977
+ items: ta(p.items, w, M)
2978
2978
  };
2979
2979
  } else {
2980
- const b = l.findIndex((K) => K.zoneKey === _), g = l.findIndex((K) => K.zoneKey === T), w = l[b], k = l[g], M = w.items.find((K) => K.id === x.id);
2980
+ 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);
2981
2981
  if (!M) {
2982
2982
  N();
2983
2983
  return;
2984
2984
  }
2985
- const E = w.items.filter((K) => K.id !== x.id), G = k.items.findIndex((K) => K.id === R.id), V = G >= 0 ? G : k.items.length;
2985
+ 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;
2986
2986
  let $ = E, O = [...k.items];
2987
2987
  if (k.maxItems !== void 0 && O.length >= k.maxItems) {
2988
2988
  const K = O[O.length - 1];
@@ -2993,23 +2993,23 @@ function na(e) {
2993
2993
  M,
2994
2994
  ...O.slice(j)
2995
2995
  ];
2996
- l[b] = { ...w, items: $ }, l[g] = { ...k, items: se };
2996
+ i[v] = { ...w, items: $ }, i[p] = { ...k, items: se };
2997
2997
  }
2998
- n(l), h.current?.(l), N();
2998
+ n(i), b.current?.(i), N();
2999
2999
  },
3000
3000
  [t]
3001
- ), p = y(
3002
- (f) => ({
3003
- id: f,
3004
- "data-zone-key": f
3001
+ ), f = y(
3002
+ (h) => ({
3003
+ id: h,
3004
+ "data-zone-key": h
3005
3005
  }),
3006
3006
  []
3007
3007
  ), S = y(
3008
- (f) => {
3009
- const x = we(t, f.id) ?? "";
3008
+ (h) => {
3009
+ const x = we(t, h.id) ?? "";
3010
3010
  return {
3011
- id: f.id,
3012
- "data-item-id": f.id,
3011
+ id: h.id,
3012
+ "data-item-id": h.id,
3013
3013
  "data-zone-key": x
3014
3014
  };
3015
3015
  },
@@ -3019,7 +3019,7 @@ function na(e) {
3019
3019
  zones: t,
3020
3020
  activeZone: s,
3021
3021
  activeItem: a,
3022
- getZoneProps: p,
3022
+ getZoneProps: f,
3023
3023
  getItemProps: S,
3024
3024
  handleDragStart: C,
3025
3025
  handleDragOver: u,
@@ -3073,27 +3073,27 @@ function ia() {
3073
3073
  })(), le);
3074
3074
  }
3075
3075
  function la(e) {
3076
- const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o = na({ zones: t, onZoneChange: n }), [i, h] = H.useState(ae);
3076
+ const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o = na({ zones: t, onZoneChange: n }), [d, b] = H.useState(ae);
3077
3077
  return H.useEffect(() => {
3078
- if (i) return;
3078
+ if (d) return;
3079
3079
  let m = !0;
3080
- return ia().then((v) => {
3081
- m && h(v);
3080
+ return ia().then((g) => {
3081
+ m && b(g);
3082
3082
  }), () => {
3083
3083
  m = !1;
3084
3084
  };
3085
- }, [i]), i ? /* @__PURE__ */ d(
3085
+ }, [d]), d ? /* @__PURE__ */ l(
3086
3086
  $e,
3087
3087
  {
3088
3088
  state: o,
3089
- modules: i,
3089
+ modules: d,
3090
3090
  renderZone: a,
3091
3091
  renderItem: r,
3092
3092
  renderDragOverlay: s
3093
3093
  }
3094
- ) : /* @__PURE__ */ d("div", { "data-sortable-zones-passive": "true", children: o.zones.map((m) => {
3095
- const v = m.items.map((C) => /* @__PURE__ */ d(H.Fragment, { children: r(C) }, C.id));
3096
- return /* @__PURE__ */ d("div", { ...o.getZoneProps(m.zoneKey), children: a(m.zoneKey, m.items, v) }, m.zoneKey);
3094
+ ) : /* @__PURE__ */ l("div", { "data-sortable-zones-passive": "true", children: o.zones.map((m) => {
3095
+ const g = m.items.map((C) => /* @__PURE__ */ l(H.Fragment, { children: r(C) }, C.id));
3096
+ return /* @__PURE__ */ l("div", { ...o.getZoneProps(m.zoneKey), children: a(m.zoneKey, m.items, g) }, m.zoneKey);
3097
3097
  }) });
3098
3098
  }
3099
3099
  la.displayName = "SortableZones";
@@ -3104,54 +3104,54 @@ function $e({
3104
3104
  renderItem: a,
3105
3105
  renderDragOverlay: r
3106
3106
  }) {
3107
- const { core: s, sortable: o, utilities: i } = t, { DndContext: h, DragOverlay: m, useSensors: v, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: p, closestCenter: S } = s, { SortableContext: f, verticalListSortingStrategy: x } = o, R = v(
3107
+ const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay: m, useSensors: g, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: f, closestCenter: S } = s, { SortableContext: h, verticalListSortingStrategy: x } = o, I = g(
3108
3108
  C(c, { activationConstraint: { distance: 5 } }),
3109
- C(p)
3110
- ), N = h, _ = m, T = f;
3109
+ C(f)
3110
+ ), N = b, _ = m, T = h;
3111
3111
  return /* @__PURE__ */ A(
3112
3112
  N,
3113
3113
  {
3114
- sensors: R,
3114
+ sensors: I,
3115
3115
  collisionDetection: S,
3116
3116
  onDragStart: e.handleDragStart,
3117
3117
  onDragOver: e.handleDragOver,
3118
3118
  onDragEnd: e.handleDragEnd,
3119
3119
  children: [
3120
- e.zones.map((l) => {
3121
- const b = l.items.map((w) => w.id), g = l.items.map((w) => /* @__PURE__ */ d(
3120
+ e.zones.map((i) => {
3121
+ const v = i.items.map((w) => w.id), p = i.items.map((w) => /* @__PURE__ */ l(
3122
3122
  Be,
3123
3123
  {
3124
3124
  id: w.id,
3125
3125
  useSortable: o.useSortable,
3126
- cssHelper: i.CSS,
3126
+ cssHelper: d.CSS,
3127
3127
  children: a(w)
3128
3128
  },
3129
3129
  w.id
3130
3130
  ));
3131
- return /* @__PURE__ */ d(
3131
+ return /* @__PURE__ */ l(
3132
3132
  ze,
3133
3133
  {
3134
- zoneKey: l.zoneKey,
3135
- zoneProps: e.getZoneProps(l.zoneKey),
3134
+ zoneKey: i.zoneKey,
3135
+ zoneProps: e.getZoneProps(i.zoneKey),
3136
3136
  useDroppable: u,
3137
- children: /* @__PURE__ */ d(T, { items: b, strategy: x, children: n(l.zoneKey, l.items, g) })
3137
+ children: /* @__PURE__ */ l(T, { items: v, strategy: x, children: n(i.zoneKey, i.items, p) })
3138
3138
  },
3139
- l.zoneKey
3139
+ i.zoneKey
3140
3140
  );
3141
3141
  }),
3142
- /* @__PURE__ */ d(_, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
3142
+ /* @__PURE__ */ l(_, { children: e.activeItem ? r?.(e.activeItem) ?? a(e.activeItem) : null })
3143
3143
  ]
3144
3144
  }
3145
3145
  );
3146
3146
  }
3147
3147
  $e.displayName = "SortableZonesInner";
3148
3148
  function Be({ id: e, useSortable: t, cssHelper: n, children: a }) {
3149
- const { attributes: r, listeners: s, setNodeRef: o, transform: i, transition: h, isDragging: m } = t({ id: e }), v = {
3150
- transform: n?.Transform?.toString(i) ?? void 0,
3151
- transition: h,
3149
+ const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging: m } = t({ id: e }), g = {
3150
+ transform: n?.Transform?.toString(d) ?? void 0,
3151
+ transition: b,
3152
3152
  opacity: m ? 0.5 : 1
3153
3153
  };
3154
- return /* @__PURE__ */ d("div", { ref: o, style: v, "data-sortable-item-id": e, ...r, ...s, children: a });
3154
+ return /* @__PURE__ */ l("div", { ref: o, style: g, "data-sortable-item-id": e, ...r, ...s, children: a });
3155
3155
  }
3156
3156
  Be.displayName = "SortableItem";
3157
3157
  function ze({
@@ -3161,10 +3161,10 @@ function ze({
3161
3161
  children: a
3162
3162
  }) {
3163
3163
  const { setNodeRef: r, isOver: s } = n({ id: e });
3164
- return /* @__PURE__ */ d("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
3164
+ return /* @__PURE__ */ l("div", { ref: r, "data-zone-is-over": s || void 0, ...t, children: a });
3165
3165
  }
3166
3166
  ze.displayName = "ZoneDroppable";
3167
- function In({
3167
+ function Rn({
3168
3168
  slotLeft: e,
3169
3169
  slotCenter: t,
3170
3170
  slotRight: n,
@@ -3173,7 +3173,7 @@ function In({
3173
3173
  style: s,
3174
3174
  "aria-label": o = "Dashboard navigation"
3175
3175
  }) {
3176
- const i = {
3176
+ const d = {
3177
3177
  "--gloss-bottom-toolbar-height": `${a}px`,
3178
3178
  ...s
3179
3179
  };
@@ -3184,9 +3184,9 @@ function In({
3184
3184
  "aria-label": o,
3185
3185
  "data-testid": "gloss-bottom-toolbar",
3186
3186
  className: ["gloss-bottom-toolbar", r].filter(Boolean).join(" "),
3187
- style: i,
3187
+ style: d,
3188
3188
  children: [
3189
- /* @__PURE__ */ d(
3189
+ /* @__PURE__ */ l(
3190
3190
  "div",
3191
3191
  {
3192
3192
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--left",
@@ -3194,7 +3194,7 @@ function In({
3194
3194
  children: e
3195
3195
  }
3196
3196
  ),
3197
- /* @__PURE__ */ d(
3197
+ /* @__PURE__ */ l(
3198
3198
  "div",
3199
3199
  {
3200
3200
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--center",
@@ -3202,7 +3202,7 @@ function In({
3202
3202
  children: t
3203
3203
  }
3204
3204
  ),
3205
- /* @__PURE__ */ d(
3205
+ /* @__PURE__ */ l(
3206
3206
  "div",
3207
3207
  {
3208
3208
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--right",
@@ -3214,73 +3214,76 @@ function In({
3214
3214
  }
3215
3215
  );
3216
3216
  }
3217
- function Rn({
3217
+ function In({
3218
3218
  count: e,
3219
3219
  currentIndex: t,
3220
3220
  onSelect: n,
3221
- "aria-label": a = "Sections"
3221
+ "aria-label": a = "Sections",
3222
+ provisionalIndex: r,
3223
+ pulseIndex: s,
3224
+ pulseNonce: o
3222
3225
  }) {
3223
- const r = Ze.useRef([]);
3224
- return r.current.length = e, /* @__PURE__ */ d(
3226
+ const d = Ze.useRef([]);
3227
+ return d.current.length = e, /* @__PURE__ */ l(
3225
3228
  "div",
3226
3229
  {
3227
3230
  role: "tablist",
3228
3231
  "aria-label": a,
3229
3232
  "data-testid": "gloss-section-dots",
3230
3233
  className: "gloss-section-dots",
3231
- onKeyDown: (o) => {
3234
+ onKeyDown: (m) => {
3232
3235
  if (e !== 0) {
3233
- if (o.key === "ArrowRight") {
3234
- o.preventDefault();
3235
- const i = (t + 1) % e;
3236
- n(i), requestAnimationFrame(() => r.current[i]?.focus());
3237
- } else if (o.key === "ArrowLeft") {
3238
- o.preventDefault();
3239
- const i = (t - 1 + e) % e;
3240
- n(i), requestAnimationFrame(() => r.current[i]?.focus());
3236
+ if (m.key === "ArrowRight") {
3237
+ m.preventDefault();
3238
+ const g = (t + 1) % e;
3239
+ n(g), requestAnimationFrame(() => d.current[g]?.focus());
3240
+ } else if (m.key === "ArrowLeft") {
3241
+ m.preventDefault();
3242
+ const g = (t - 1 + e) % e;
3243
+ n(g), requestAnimationFrame(() => d.current[g]?.focus());
3241
3244
  }
3242
3245
  }
3243
3246
  },
3244
- children: Array.from({ length: e }, (o, i) => /* @__PURE__ */ d(
3247
+ children: Array.from({ length: e }, (m, g) => /* @__PURE__ */ l(
3245
3248
  "button",
3246
3249
  {
3247
- ref: (h) => {
3248
- r.current[i] = h;
3250
+ ref: (C) => {
3251
+ d.current[g] = C;
3249
3252
  },
3250
3253
  type: "button",
3251
3254
  role: "tab",
3252
- "aria-selected": i === t,
3253
- "aria-label": `Section ${i + 1}`,
3254
- "data-state": i === t ? "current" : "hollow",
3255
- "data-section-index": i,
3255
+ "aria-selected": g === t,
3256
+ "aria-label": g === r ? "Unconfirmed section" : `Section ${g + 1}`,
3257
+ "data-state": g === r ? "provisional-hollow" : g === s ? "pulse" : g === t ? "current" : "hollow",
3258
+ "data-section-index": g,
3256
3259
  className: [
3257
3260
  "gloss-section-dots__dot",
3258
- i === t && "gloss-section-dots__dot--current"
3261
+ g === t && "gloss-section-dots__dot--current"
3259
3262
  ].filter(Boolean).join(" "),
3260
- onClick: () => n(i)
3263
+ onClick: () => n(g)
3261
3264
  },
3262
- i
3265
+ g === s ? `${g}-${o ?? 0}` : g
3263
3266
  ))
3264
3267
  }
3265
3268
  );
3266
3269
  }
3267
- const da = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
3270
+ const ca = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
3268
3271
  const r = { ...n };
3269
- return delete r.className, delete r.style, /* @__PURE__ */ d("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ d(De, { region: "toolbar", density: e, children: t }) });
3272
+ return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...r, children: /* @__PURE__ */ l(De, { region: "toolbar", density: e, children: t }) });
3270
3273
  });
3271
- da.displayName = "ContainerToolbar";
3272
- const ca = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...r }, s) => {
3274
+ ca.displayName = "ContainerToolbar";
3275
+ const da = H.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...r }, s) => {
3273
3276
  const o = { ...r };
3274
3277
  return delete o.className, delete o.style, /* @__PURE__ */ A("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
3275
- e && /* @__PURE__ */ d("legend", { className: "gloss-container-form-section__legend", children: e }),
3276
- t && /* @__PURE__ */ d("p", { className: "gloss-container-form-section__description", children: t }),
3277
- /* @__PURE__ */ d(De, { region: "form-section", density: n, children: a })
3278
+ e && /* @__PURE__ */ l("legend", { className: "gloss-container-form-section__legend", children: e }),
3279
+ t && /* @__PURE__ */ l("p", { className: "gloss-container-form-section__description", children: t }),
3280
+ /* @__PURE__ */ l(De, { region: "form-section", density: n, children: a })
3278
3281
  ] });
3279
3282
  });
3280
- ca.displayName = "ContainerFormSection";
3283
+ da.displayName = "ContainerFormSection";
3281
3284
  const ua = H.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
3282
3285
  const r = { ...n };
3283
- return delete r.className, delete r.style, /* @__PURE__ */ d("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ d(De, { region: "table", density: e, children: t }) });
3286
+ return delete r.className, delete r.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-table", ...r, children: /* @__PURE__ */ l(De, { region: "table", density: e, children: t }) });
3284
3287
  });
3285
3288
  ua.displayName = "ContainerTable";
3286
3289
  export {
@@ -3297,7 +3300,7 @@ export {
3297
3300
  Hn as Badge,
3298
3301
  Vn as BarChartCard,
3299
3302
  jn as BarsBg,
3300
- In as BottomToolbar,
3303
+ Rn as BottomToolbar,
3301
3304
  Un as Button,
3302
3305
  Zn as ButtonGroup,
3303
3306
  Yn as ButtonGroupContext,
@@ -3315,8 +3318,8 @@ export {
3315
3318
  or as ChartControlBar,
3316
3319
  ir as Checkbox,
3317
3320
  lr as CheckboxGroup,
3318
- dr as Chip,
3319
- cr as ColorPicker,
3321
+ cr as Chip,
3322
+ dr as ColorPicker,
3320
3323
  ur as ComparisonCard,
3321
3324
  mr as ContactForm,
3322
3325
  gr as ContainerCard,
@@ -3331,20 +3334,20 @@ export {
3331
3334
  Nr as ContainerDialogActions,
3332
3335
  Cr as ContainerDialogBody,
3333
3336
  kr as ContainerDialogHeader,
3334
- ca as ContainerFormSection,
3337
+ da as ContainerFormSection,
3335
3338
  _r as ContainerPanel,
3336
3339
  ua as ContainerTable,
3337
- da as ContainerToolbar,
3340
+ ca as ContainerToolbar,
3338
3341
  xr as CreditCardForm,
3339
3342
  Sr as DEFAULT_FOOTER_IDS,
3340
3343
  ee as DEFAULT_GRID_INTERACTION_PHYSICS,
3341
3344
  ti as DEFAULT_MARKET_PRESETS,
3342
3345
  Mr as DEFAULT_OVERFLOW_IDS,
3343
3346
  ai as DEFAULT_PINNED,
3344
- Re as DEFAULT_RESIZE_PHYSICS,
3347
+ Ie as DEFAULT_RESIZE_PHYSICS,
3345
3348
  Tr as DataTable,
3346
- Ir as DatePicker,
3347
- Rr as DateRangePicker,
3349
+ Rr as DatePicker,
3350
+ Ir as DateRangePicker,
3348
3351
  Pr as DestructiveModal,
3349
3352
  Vt as DevTuningPanel,
3350
3353
  Fr as DirectionCard,
@@ -3384,8 +3387,8 @@ export {
3384
3387
  os as InputAddon,
3385
3388
  is as InputGroup,
3386
3389
  ls as Link,
3387
- ds as LoginForm,
3388
- cs as MarketPresetRow,
3390
+ cs as LoginForm,
3391
+ ds as MarketPresetRow,
3389
3392
  us as MaskPresets,
3390
3393
  ms as MaskedInput,
3391
3394
  gs as Menu,
@@ -3410,10 +3413,10 @@ export {
3410
3413
  Ms as PhoneInput,
3411
3414
  Ts as PinToMetric,
3412
3415
  ea as PresetSwatchRow,
3413
- Is as ProfileCard,
3414
- Rs as ProgressCard,
3416
+ Rs as ProfileCard,
3417
+ Is as ProgressCard,
3415
3418
  Ps as QuickConfigPanel,
3416
- Rt as RECONFIG_BACKSIDE_LABELS,
3419
+ It as RECONFIG_BACKSIDE_LABELS,
3417
3420
  ri as ROLLING_OPTIONS,
3418
3421
  Fs as Radio,
3419
3422
  Es as RadioGroup,
@@ -3426,7 +3429,7 @@ export {
3426
3429
  Bs as Row2FilterTray,
3427
3430
  zs as SearchInput,
3428
3431
  bn as SectionDivider,
3429
- Rn as SectionDots,
3432
+ In as SectionDots,
3430
3433
  Ks as SegmentCard,
3431
3434
  Ws as SegmentedControl,
3432
3435
  Gs as Select,
@@ -3479,7 +3482,7 @@ export {
3479
3482
  Ea as cardSamples,
3480
3483
  Nn as cascadePhysics,
3481
3484
  Pa as chartSamples,
3482
- Ra as circleSamples,
3485
+ Ia as circleSamples,
3483
3486
  Mn as colorTokens,
3484
3487
  on as compactLayout,
3485
3488
  Ya as compactState,
@@ -3489,7 +3492,7 @@ export {
3489
3492
  qa as contextMenuFixtures,
3490
3493
  ko as creditCardFormMetadata,
3491
3494
  _o as creditCardSchema,
3492
- ct as dateChip,
3495
+ dt as dateChip,
3493
3496
  Oe as defaultControlBarState,
3494
3497
  xo as destructiveModalMetadata,
3495
3498
  So as durations,
@@ -3503,17 +3506,17 @@ export {
3503
3506
  oi as findPreset,
3504
3507
  ii as formatDateRange,
3505
3508
  li as formatMarketDates,
3506
- di as formatTrend,
3507
- ci as formatValue,
3508
- dn as fullLayout,
3509
+ ci as formatTrend,
3510
+ di as formatValue,
3511
+ cn as fullLayout,
3509
3512
  ui as generateMarketId,
3510
3513
  To as generateTabId,
3511
3514
  mi as getAllPresets,
3512
3515
  gi as getDateRangeForPreset,
3513
- Io as getMenuActions,
3516
+ Ro as getMenuActions,
3514
3517
  Tn as getMotionMode,
3515
3518
  pi as getPresetLabel,
3516
- Ro as getTransitionStyle,
3519
+ Io as getTransitionStyle,
3517
3520
  sn as gridCards,
3518
3521
  Po as interpolate,
3519
3522
  fi as isInRange,
@@ -3531,11 +3534,11 @@ export {
3531
3534
  xa as metricTabGroup,
3532
3535
  un as mixedTabs,
3533
3536
  vi as normalizePresetId,
3534
- It as numericActions,
3537
+ Rt as numericActions,
3535
3538
  ja as orderColumns,
3536
3539
  Tt as orderIdActions,
3537
3540
  Ha as orderRows,
3538
- cn as ordersTabs,
3541
+ dn as ordersTabs,
3539
3542
  Lo as parseNumericValue,
3540
3543
  $o as paymentFormMetadata,
3541
3544
  Bo as paymentSchema,
@@ -3563,10 +3566,10 @@ export {
3563
3566
  Ga as standardFlatFixture,
3564
3567
  ln as standardLayout,
3565
3568
  Wa as standardNegativeFixture,
3566
- dt as statusChip,
3569
+ ct as statusChip,
3567
3570
  Cn as swingReveal,
3568
3571
  Fa as tableSamples,
3569
- Ia as textSamples,
3572
+ Ra as textSamples,
3570
3573
  Ma as timeFrameTabGroup,
3571
3574
  yi as toUppercasePresetId,
3572
3575
  ka as useArrowNavigation,