@mt-gloss/ui 0.0.45 → 0.0.46

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,18 +1,18 @@
1
- import { N as ia, T as la, O as da, Q as ca, a3 as ua, b6 as ma, az as pa, ah as ga, Z as fa, an as ba, K as ha, a8 as va, bo as ya, P as wa, B as Da, a as Ca, y as Na, H as ka, bi as xa, F as Sa, J as Ta, A as _a, z as Ia, bh as Ra, E as Ma, D as Pa, bx as Fa, b as Ea, C as Oa, L as Aa, o as La, ad as $a, aN as Ba, y as Ka, H as Wa, F as Ga, J as Va, A as Ha, z as za, E as Za, D as Ua, a$ as Ya, b2 as qa, b1 as ja, b0 as Xa, b3 as Qa, aC as Ja, a5 as er, a4 as tr, aq as nr, k as ar, m as rr, aF as sr, ab as or, b8 as ir, a9 as lr, bp as dr, Y as cr, bH as ur, bG as mr, bI as pr, ap as gr, aQ as fr, ba as br, bM as hr, bv as vr, n as yr, am as wr, bB as Dr, bs as Cr, a0 as Nr, ar as kr, a2 as xr, bA as Sr, G as Tr, d as _r, aa as Ir, bJ as Rr, aT as Mr, r as Pr, v as Fr, I as Er, g as Or, aw as Ar, bN as Lr, M as $r, w as Br, U as Kr, X as Wr, V as Gr, W as Vr, as as Hr, bg as zr, bP as Zr, bL as Ur, ao as Yr, t as qr, bq as jr, aS as Xr, aj as Qr, aK as Jr, ag as es, al as ts, au as ns, aR as as, ac as rs, at as ss, c as os, R as is, j as ls, p as ds, aH as cs, by as us, bz as ms, ai as ps, ae as gs, h as fs, x as bs, b7 as hs, af as vs, bO as ys, bc as ws, bf as Ds, bd as Cs, be as Ns, i as ks, b9 as xs, bn as Ss, S as Ts, bk as _s, bl as Is, av as Rs, bb as Ms, bQ as Ps, ak as Fs, s as Es, bK as Os, l as As, f as Ls, q as $s, _ as Bs, $ as Ks, a7 as Ws, bj as Gs, bw as Vs, bD as Hs, aA as zs, aB as Zs, a6 as Us, aO as Ys, aP as qs, aD as js, aE as Xs, aG as Qs, aV as Js, aW as eo, bF as to, bE as no, aY as ao, aZ as ro, ax as so, ay as oo, b5 as io, b4 as lo, a_ as co, aL as uo, aM as mo, aX as po, aI as go, aJ as fo, u as bo, bC as ho, br as vo, bt as yo, bu as wo, aU as Do, a1 as Co, e as No, bm as ko } from "./Expandable-BdC9RXOI.js";
2
- import { jsxs as O, jsx as c } from "react/jsx-runtime";
3
- import K, { useRef as P, useEffect as L, useState as $, useCallback as f, forwardRef as We, useMemo as ae, createContext as Ge, useContext as Ve } from "react";
4
- import { motion as xe, useMotionValue as He, animate as ye, useDragControls as ze } from "framer-motion";
5
- import { B as Ze, U as he } from "./UIContext-C3E-k7HI.js";
6
- import { a as So, u as To } from "./UIContext-C3E-k7HI.js";
7
- import { createPortal as Ue } from "react-dom";
8
- import { DEFAULT_MARKET_PRESETS as Io, DEFAULT_PINNED as Ro, PERIOD_OPTIONS as Mo, ROLLING_OPTIONS as Po, TODAY_PRESET as Fo, findPreset as Eo, formatDateRange as Oo, formatMarketDates as Ao, formatTrend as Lo, formatValue as $o, generateMarketId as Bo, getAllPresets as Ko, getDateRangeForPreset as Wo, getPresetLabel as Go, isInRange as Vo, isMarketActive as Ho, isSameDay as zo, normalizePresetId as Zo, toUppercasePresetId as Uo } from "@mt-gloss/utils";
9
- import Ye from "@mui/icons-material/AccessTime";
10
- import qe from "@mui/icons-material/Tune";
11
- import je from "@mui/icons-material/ViewColumn";
12
- import Xe from "@mui/icons-material/AspectRatio";
13
- import Qe from "@mui/icons-material/Palette";
14
- import Je from "@mui/icons-material/PushPin";
15
- function fn(e = {}) {
1
+ import { N as ca, T as da, O as ua, Q as ma, a3 as pa, b6 as ga, az as fa, ah as ha, Z as ba, an as va, K as ya, a8 as wa, bo as Da, P as Ca, B as Na, a as ka, y as xa, H as Sa, bi as Ta, F as _a, J as Ia, A as Ra, z as Ma, bh as Pa, E as Fa, D as Ea, bx as Oa, b as Aa, C as La, L as $a, o as Ba, ad as Ka, aN as Wa, y as Ga, H as Ha, F as Va, J as za, A as Za, z as Ua, E as Ya, D as qa, a$ as ja, b2 as Xa, b1 as Qa, b0 as Ja, b3 as er, aC as tr, a5 as nr, a4 as ar, aq as rr, k as sr, m as or, aF as ir, ab as lr, b8 as cr, a9 as dr, bp as ur, Y as mr, bH as pr, bG as gr, bI as fr, ap as hr, aQ as br, ba as vr, bM as yr, bv as wr, n as Dr, am as Cr, bB as Nr, bs as kr, a0 as xr, ar as Sr, a2 as Tr, bA as _r, G as Ir, d as Rr, aa as Mr, bJ as Pr, aT as Fr, r as Er, v as Or, I as Ar, g as Lr, aw as $r, bN as Br, M as Kr, w as Wr, U as Gr, X as Hr, V as Vr, W as zr, as as Zr, bg as Ur, bP as Yr, bL as qr, ao as jr, t as Xr, bq as Qr, aS as Jr, aj as es, aK as ts, ag as ns, al as as, au as rs, aR as ss, ac as os, at as is, c as ls, R as cs, j as ds, p as us, aH as ms, by as ps, bz as gs, ai as fs, ae as hs, h as bs, x as vs, b7 as ys, af as ws, bO as Ds, bc as Cs, bf as Ns, bd as ks, be as xs, i as Ss, b9 as Ts, bn as _s, S as Is, bk as Rs, bl as Ms, av as Ps, bb as Fs, bQ as Es, ak as Os, s as As, bK as Ls, l as $s, f as Bs, q as Ks, _ as Ws, $ as Gs, a7 as Hs, bj as Vs, bw as zs, bD as Zs, aA as Us, aB as Ys, a6 as qs, aO as js, aP as Xs, aD as Qs, aE as Js, aG as eo, aV as to, aW as no, bF as ao, bE as ro, aY as so, aZ as oo, ax as io, ay as lo, b5 as co, b4 as uo, a_ as mo, aL as po, aM as go, aX as fo, aI as ho, aJ as bo, u as vo, bC as yo, br as wo, bt as Do, bu as Co, aU as No, a1 as ko, e as xo, bm as So } from "./Expandable-BdC9RXOI.js";
2
+ import { jsxs as O, jsx as d } from "react/jsx-runtime";
3
+ import W, { useRef as P, useEffect as L, useState as K, useCallback as f, forwardRef as He, useMemo as ne, createContext as Ve, useContext as ze } from "react";
4
+ import { motion as Se, useMotionValue as Ze, animate as we, useDragControls as Ue } from "framer-motion";
5
+ import { B as Ye, U as ve } from "./UIContext-C3E-k7HI.js";
6
+ import { a as _o, u as Io } from "./UIContext-C3E-k7HI.js";
7
+ import { createPortal as qe } from "react-dom";
8
+ import { DEFAULT_MARKET_PRESETS as Mo, DEFAULT_PINNED as Po, PERIOD_OPTIONS as Fo, ROLLING_OPTIONS as Eo, TODAY_PRESET as Oo, findPreset as Ao, formatDateRange as Lo, formatMarketDates as $o, formatTrend as Bo, formatValue as Ko, generateMarketId as Wo, getAllPresets as Go, getDateRangeForPreset as Ho, getPresetLabel as Vo, isInRange as zo, isMarketActive as Zo, isSameDay as Uo, normalizePresetId as Yo, toUppercasePresetId as qo } from "@mt-gloss/utils";
9
+ import je from "@mui/icons-material/AccessTime";
10
+ import Xe from "@mui/icons-material/Tune";
11
+ import Qe from "@mui/icons-material/ViewColumn";
12
+ import Je from "@mui/icons-material/AspectRatio";
13
+ import et from "@mui/icons-material/Palette";
14
+ import tt from "@mui/icons-material/PushPin";
15
+ function bn(e = {}) {
16
16
  const { enabled: t = !0, returnTo: a } = e, n = P(null);
17
17
  return L(() => {
18
18
  t && (n.current = a || document.activeElement);
@@ -22,7 +22,7 @@ function fn(e = {}) {
22
22
  }, 0);
23
23
  }, [t]), n;
24
24
  }
25
- function bn(e) {
25
+ function vn(e) {
26
26
  const {
27
27
  items: t,
28
28
  activeIndex: a,
@@ -33,7 +33,7 @@ function bn(e) {
33
33
  isItemDisabled: m,
34
34
  onSelect: h,
35
35
  onEscape: u
36
- } = e, [D, v] = $(-1), i = a !== void 0 ? a : D, d = f(
36
+ } = e, [D, v] = K(-1), i = a !== void 0 ? a : D, c = f(
37
37
  (r) => {
38
38
  a === void 0 && v(r), n?.(r);
39
39
  },
@@ -44,34 +44,34 @@ function bn(e) {
44
44
  if (b.length === 0) return -1;
45
45
  const x = b.indexOf(r);
46
46
  if (x === -1)
47
- return g === 1 ? b.find((T) => T > r) ?? (s ? b[0] : -1) : [...b].reverse().find((M) => M < r) ?? (s ? b[b.length - 1] : -1);
48
- let w = x + g;
49
- return s ? w = (w + b.length) % b.length : w = Math.max(0, Math.min(b.length - 1, w)), b[w];
47
+ return g === 1 ? b.find((M) => M > r) ?? (s ? b[0] : -1) : [...b].reverse().find((S) => S < r) ?? (s ? b[b.length - 1] : -1);
48
+ let k = x + g;
49
+ return s ? k = (k + b.length) % b.length : k = Math.max(0, Math.min(b.length - 1, k)), b[k];
50
50
  },
51
51
  [y, s]
52
52
  ), p = f(() => {
53
53
  const r = y();
54
- r.length > 0 && d(r[0]);
55
- }, [y, d]), S = f(() => {
54
+ r.length > 0 && c(r[0]);
55
+ }, [y, c]), T = f(() => {
56
56
  const r = y();
57
- r.length > 0 && d(r[r.length - 1]);
58
- }, [y, d]), R = f(() => {
57
+ r.length > 0 && c(r[r.length - 1]);
58
+ }, [y, c]), R = f(() => {
59
59
  const r = I(i, 1);
60
- r !== -1 && d(r);
61
- }, [i, I, d]), C = f(() => {
60
+ r !== -1 && c(r);
61
+ }, [i, I, c]), C = f(() => {
62
62
  const r = I(i, -1);
63
- r !== -1 && d(r);
64
- }, [i, I, d]), _ = f(() => {
65
- d(-1);
66
- }, [d]), k = f(
63
+ r !== -1 && c(r);
64
+ }, [i, I, c]), _ = f(() => {
65
+ c(-1);
66
+ }, [c]), N = f(
67
67
  (r) => {
68
68
  if (!l) return;
69
- const { key: g } = r, b = g === "ArrowUp" && (o === "vertical" || o === "both"), x = g === "ArrowDown" && (o === "vertical" || o === "both"), w = g === "ArrowLeft" && (o === "horizontal" || o === "both"), T = g === "ArrowRight" && (o === "horizontal" || o === "both");
70
- if (b || w) {
71
- r.preventDefault(), i === -1 ? S() : C();
69
+ const { key: g } = r, b = g === "ArrowUp" && (o === "vertical" || o === "both"), x = g === "ArrowDown" && (o === "vertical" || o === "both"), k = g === "ArrowLeft" && (o === "horizontal" || o === "both"), M = g === "ArrowRight" && (o === "horizontal" || o === "both");
70
+ if (b || k) {
71
+ r.preventDefault(), i === -1 ? T() : C();
72
72
  return;
73
73
  }
74
- if (x || T) {
74
+ if (x || M) {
75
75
  r.preventDefault(), i === -1 ? p() : R();
76
76
  return;
77
77
  }
@@ -80,13 +80,13 @@ function bn(e) {
80
80
  return;
81
81
  }
82
82
  if (g === "End") {
83
- r.preventDefault(), S();
83
+ r.preventDefault(), T();
84
84
  return;
85
85
  }
86
86
  if ((g === "Enter" || g === " ") && i >= 0 && i < t.length) {
87
87
  r.preventDefault();
88
- const M = t[i];
89
- m?.(M, i) || h?.(M, i);
88
+ const S = t[i];
89
+ m?.(S, i) || h?.(S, i);
90
90
  return;
91
91
  }
92
92
  if (g === "Escape") {
@@ -100,7 +100,7 @@ function bn(e) {
100
100
  i,
101
101
  t,
102
102
  p,
103
- S,
103
+ T,
104
104
  R,
105
105
  C,
106
106
  m,
@@ -110,52 +110,52 @@ function bn(e) {
110
110
  );
111
111
  return {
112
112
  focusedIndex: i,
113
- setFocusedIndex: d,
114
- handleKeyDown: k,
113
+ setFocusedIndex: c,
114
+ handleKeyDown: N,
115
115
  focusFirst: p,
116
- focusLast: S,
116
+ focusLast: T,
117
117
  focusNext: R,
118
118
  focusPrevious: C,
119
119
  resetFocus: _
120
120
  };
121
121
  }
122
122
  const se = (e) => {
123
- }, et = {
123
+ }, nt = {
124
124
  id: "entity-filter-1",
125
125
  label: "Customer: Acme Corp",
126
126
  field: "customer",
127
127
  value: "acme-corp-123",
128
128
  onRemove: se
129
- }, tt = {
129
+ }, at = {
130
130
  id: "status-filter-1",
131
131
  label: "Status: Open",
132
132
  field: "status",
133
133
  value: "open",
134
134
  onRemove: se
135
- }, nt = {
135
+ }, rt = {
136
136
  id: "date-filter-1",
137
137
  label: "Date: Mar 1 - Mar 15",
138
138
  field: "dateRange",
139
139
  value: "2026-03-01..2026-03-15",
140
140
  onRemove: se
141
- }, at = {
141
+ }, st = {
142
142
  id: "mfg-filter-1",
143
143
  label: "Manufacturer: Widget Co",
144
144
  field: "manufacturer",
145
145
  value: "widget-co-456",
146
146
  onRemove: se
147
- }, hn = [
148
- et,
149
- tt,
147
+ }, yn = [
150
148
  nt,
151
- at
152
- ], vn = {
149
+ at,
150
+ rt,
151
+ st
152
+ ], wn = {
153
153
  id: "metric-toggle",
154
154
  tabs: [
155
155
  { id: "$", label: "$", mono: !0 },
156
156
  { id: "#", label: "#", mono: !0 }
157
157
  ]
158
- }, yn = {
158
+ }, Dn = {
159
159
  id: "entity-type",
160
160
  tabs: [
161
161
  { id: "orders", label: "Orders" },
@@ -163,7 +163,7 @@ const se = (e) => {
163
163
  { id: "customers", label: "Customers" },
164
164
  { id: "manufacturers", label: "Manufacturers" }
165
165
  ]
166
- }, wn = {
166
+ }, Cn = {
167
167
  id: "time-frame",
168
168
  tabs: [
169
169
  { id: "MTD", label: "MTD" },
@@ -171,30 +171,30 @@ const se = (e) => {
171
171
  { id: "YTD", label: "YTD" },
172
172
  { id: "LYTD", label: "LYTD" }
173
173
  ]
174
- }, Dn = [
174
+ }, Nn = [
175
175
  { variant: "block", width: "100%", height: 16 },
176
176
  { variant: "block", width: 200, height: 32, borderRadius: 8 },
177
177
  { variant: "block", width: "80%", height: 12, borderRadius: "4px" },
178
178
  { variant: "block", width: 120, height: 44, borderRadius: 22 }
179
- ], Cn = [
179
+ ], kn = [
180
180
  { variant: "text", lines: 3, lineHeight: 14, gap: 8 },
181
181
  { variant: "text", lines: 2, lineHeight: 16, gap: 10 },
182
182
  { variant: "text", lines: 5, lineHeight: 12, gap: 6 }
183
- ], Nn = [
183
+ ], xn = [
184
184
  { variant: "circle", size: 24 },
185
185
  { variant: "circle", size: 40 },
186
186
  { variant: "circle", size: 64 }
187
- ], kn = [
187
+ ], Sn = [
188
188
  { bars: 10, maxHeight: 120 },
189
189
  { bars: 5, maxHeight: 80 }
190
- ], xn = [
190
+ ], Tn = [
191
191
  { rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
192
192
  { rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
193
- ], Sn = [
193
+ ], _n = [
194
194
  { variant: "value", colSpan: 1 },
195
195
  { variant: "trend", colSpan: 2 },
196
196
  { variant: "target", colSpan: 1 }
197
- ], we = {
197
+ ], De = {
198
198
  position: "fixed",
199
199
  zIndex: 9999,
200
200
  background: "rgba(255,255,255,0.92)",
@@ -206,7 +206,7 @@ const se = (e) => {
206
206
  minWidth: 148,
207
207
  paddingTop: 4,
208
208
  paddingBottom: 4
209
- }, me = (e) => ({
209
+ }, pe = (e) => ({
210
210
  padding: "6px 12px",
211
211
  fontSize: 12,
212
212
  lineHeight: 1.4,
@@ -220,16 +220,16 @@ const se = (e) => {
220
220
  width: "100%",
221
221
  textAlign: "left",
222
222
  border: "none"
223
- }), rt = (e) => ({
224
- ...me(e),
223
+ }), ot = (e) => ({
224
+ ...pe(e),
225
225
  color: e ? "#4338ca" : "#4f46e5",
226
226
  fontWeight: 600
227
- }), st = {
227
+ }), it = {
228
228
  height: 1,
229
229
  background: "rgba(0,0,0,0.06)",
230
230
  margin: "3px 10px"
231
231
  };
232
- function ot({
232
+ function lt({
233
233
  open: e,
234
234
  anchorEl: t,
235
235
  statusId: a,
@@ -238,27 +238,27 @@ function ot({
238
238
  overflowActions: o,
239
239
  onClose: l
240
240
  }) {
241
- const [m, h] = $(null), u = P(null), D = f(() => {
242
- if (!t) return { ...we, top: 0, left: 0 };
243
- const d = t.getBoundingClientRect();
241
+ const [m, h] = K(null), u = P(null), D = f(() => {
242
+ if (!t) return { ...De, top: 0, left: 0 };
243
+ const c = t.getBoundingClientRect();
244
244
  return {
245
- ...we,
246
- top: d.bottom + 4,
247
- left: d.left
245
+ ...De,
246
+ top: c.bottom + 4,
247
+ left: c.left
248
248
  };
249
249
  }, [t]);
250
250
  if (L(() => {
251
251
  if (!e) return;
252
- const d = (y) => {
252
+ const c = (y) => {
253
253
  y.key === "Escape" && l();
254
254
  };
255
- return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
255
+ return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
256
256
  }, [e, l]), L(() => {
257
257
  if (!e) return;
258
- const d = (y) => {
258
+ const c = (y) => {
259
259
  u.current && !u.current.contains(y.target) && l();
260
260
  };
261
- return document.addEventListener("pointerdown", d, !0), () => document.removeEventListener("pointerdown", d, !0);
261
+ return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
262
262
  }, [e, l]), !e) return null;
263
263
  const v = o && o.length > 0, i = /* @__PURE__ */ O(
264
264
  "div",
@@ -269,11 +269,11 @@ function ot({
269
269
  "aria-label": "Status actions",
270
270
  style: D(),
271
271
  children: [
272
- /* @__PURE__ */ c(
272
+ /* @__PURE__ */ d(
273
273
  "button",
274
274
  {
275
275
  role: "menuitem",
276
- style: rt(m === "__primary"),
276
+ style: ot(m === "__primary"),
277
277
  onMouseEnter: () => h("__primary"),
278
278
  onMouseLeave: () => h(null),
279
279
  onClick: () => {
@@ -282,11 +282,11 @@ function ot({
282
282
  children: "Open in table"
283
283
  }
284
284
  ),
285
- /* @__PURE__ */ c(
285
+ /* @__PURE__ */ d(
286
286
  "button",
287
287
  {
288
288
  role: "menuitem",
289
- style: me(m === "__graph"),
289
+ style: pe(m === "__graph"),
290
290
  onMouseEnter: () => h("__graph"),
291
291
  onMouseLeave: () => h(null),
292
292
  onClick: () => {
@@ -295,28 +295,28 @@ function ot({
295
295
  children: "Show on graph"
296
296
  }
297
297
  ),
298
- v && /* @__PURE__ */ c("div", { style: st }),
299
- v && o?.map((d) => /* @__PURE__ */ c(
298
+ v && /* @__PURE__ */ d("div", { style: it }),
299
+ v && o?.map((c) => /* @__PURE__ */ d(
300
300
  "button",
301
301
  {
302
302
  role: "menuitem",
303
- style: me(m === d.id),
304
- onMouseEnter: () => h(d.id),
303
+ style: pe(m === c.id),
304
+ onMouseEnter: () => h(c.id),
305
305
  onMouseLeave: () => h(null),
306
306
  onClick: () => {
307
- d.onSelect(a), l();
307
+ c.onSelect(a), l();
308
308
  },
309
- children: d.label
309
+ children: c.label
310
310
  },
311
- d.id
311
+ c.id
312
312
  ))
313
313
  ]
314
314
  }
315
315
  );
316
- return Ue(i, document.body);
316
+ return qe(i, document.body);
317
317
  }
318
- ot.displayName = "StatusSlotChipMenu";
319
- const it = We(
318
+ lt.displayName = "StatusSlotChipMenu";
319
+ const ct = He(
320
320
  function({ state: t, onPointerDown: a, onPointerUp: n, onPointerEnter: s, onPointerLeave: o, onKeyboardStep: l, edge: m = "right", ariaLabel: h = "Resize card" }, u) {
321
321
  const D = t === "handle-visible" || t === "dragging" || t === "settling", v = (y) => {
322
322
  try {
@@ -330,10 +330,10 @@ const it = We(
330
330
  } catch {
331
331
  }
332
332
  n(y);
333
- }, d = (y) => {
333
+ }, c = (y) => {
334
334
  !D || !l || (y.key === "ArrowRight" ? (y.preventDefault(), l("grow")) : y.key === "ArrowLeft" && (y.preventDefault(), l("shrink")));
335
335
  };
336
- return /* @__PURE__ */ c(
336
+ return /* @__PURE__ */ d(
337
337
  "button",
338
338
  {
339
339
  ref: u,
@@ -350,22 +350,22 @@ const it = We(
350
350
  onPointerUp: i,
351
351
  onPointerEnter: s,
352
352
  onPointerLeave: o,
353
- onKeyDown: d,
353
+ onKeyDown: c,
354
354
  tabIndex: D ? 0 : -1
355
355
  }
356
356
  );
357
357
  }
358
358
  );
359
- it.displayName = "EdgeHoverHandle";
360
- function lt({
359
+ ct.displayName = "EdgeHoverHandle";
360
+ function dt({
361
361
  visible: e,
362
362
  targetColSpan: t,
363
363
  ghostWidth: a,
364
364
  enterMs: n = 180,
365
365
  exitMs: s = 120
366
366
  }) {
367
- return /* @__PURE__ */ c(
368
- xe.div,
367
+ return /* @__PURE__ */ d(
368
+ Se.div,
369
369
  {
370
370
  "aria-hidden": "true",
371
371
  "data-ghost-preview": e ? "visible" : "hidden",
@@ -381,8 +381,8 @@ function lt({
381
381
  }
382
382
  );
383
383
  }
384
- lt.displayName = "GhostPreview";
385
- class dt {
384
+ dt.displayName = "GhostPreview";
385
+ class ut {
386
386
  constructor() {
387
387
  this.samples = [], this.capacity = 3;
388
388
  }
@@ -413,10 +413,13 @@ class dt {
413
413
  return (o * 3 + l * 2 + m * 1) / 6;
414
414
  }
415
415
  }
416
- const Se = {
417
- // Spring (D-08)
416
+ const Te = {
417
+ // Spring (D-08). Retuned 260419 — damping 35 → 22 so the commit spring
418
+ // has visible overshoot (ζ ≈ 0.49, ~13–17% overshoot, ~350ms settle). The
419
+ // prior ζ ≈ 0.78 was imperceptible to users. Debug slug:
420
+ // 260419-resize-integration-broken (Fix E).
418
421
  stiffness: 500,
419
- damping: 35,
422
+ damping: 22,
420
423
  mass: 1,
421
424
  // Hysteresis (D-06) — expressed as fractions of GRID_STEP
422
425
  snapInFraction: 1 / 3,
@@ -430,7 +433,7 @@ const Se = {
430
433
  // Velocity multiplier (D-03b panel)
431
434
  velocityMultiplier: 1
432
435
  };
433
- function Tn({
436
+ function In({
434
437
  currentColSpan: e,
435
438
  stackable: t,
436
439
  onResize: a,
@@ -443,188 +446,197 @@ function Tn({
443
446
  exitMs: u = 120,
444
447
  maxColSpan: D = 3
445
448
  }) {
446
- const [v, i] = $("idle"), [d, y] = $(e), I = P(null), p = P(null), S = P(null), R = P(s), C = P(o), _ = P(0), k = P("idle");
449
+ const [v, i] = K("idle"), [c, y] = K(e), I = P(null), p = P(null), T = P(null), R = P(s), C = P(o), _ = P(0), N = P("idle");
447
450
  L(() => {
448
- k.current = v;
451
+ N.current = v;
449
452
  }, [v]);
450
- const r = He(0), g = f(
451
- (N) => {
453
+ const r = Ze(0), g = P(null), b = f(() => {
454
+ const w = g.current;
455
+ if (w) {
456
+ try {
457
+ w.stop();
458
+ } catch {
459
+ }
460
+ g.current = null;
461
+ }
462
+ }, []), x = f(
463
+ (w) => {
452
464
  const F = R.current, E = C.current;
453
- return N * F + (N - 1) * E;
465
+ return w * F + (w - 1) * E;
454
466
  },
455
467
  []
456
- ), b = P(new dt()), x = P(e);
468
+ ), k = P(new ut()), M = P(e);
457
469
  L(() => {
458
- x.current = d;
459
- }, [d]);
460
- const w = ae(() => ({ ...Se, ...l ?? {} }), [l]), T = f(() => {
470
+ M.current = c;
471
+ }, [c]);
472
+ const S = ne(() => ({ ...Te, ...l ?? {} }), [l]), $ = f(() => {
461
473
  I.current && (clearTimeout(I.current), I.current = null);
462
- }, []), M = f(() => {
474
+ }, []), G = f(() => {
463
475
  p.current && (clearTimeout(p.current), p.current = null);
464
- }, []), H = f(() => {
465
- i((N) => N === "settling" || N !== "idle" ? N : (I.current = setTimeout(() => i("handle-visible"), m), "dwelling"));
466
- }, [m]), z = f(() => {
467
- T(), i((N) => N === "dwelling" || N === "handle-visible" ? "idle" : N);
468
- }, [T]), Z = f(
469
- (N, F, E) => {
470
- const A = R.current, J = A * w.snapInFraction, j = A * w.snapOutFraction, X = F - E;
471
- let W = X;
472
- for (; E + W < 3; ) {
473
- const ee = W * A + (W < 0 ? j : J);
474
- if (N >= ee) W += 1;
476
+ }, []), X = f(() => {
477
+ i((w) => w === "settling" || w !== "idle" ? w : (I.current = setTimeout(() => i("handle-visible"), m), "dwelling"));
478
+ }, [m]), V = f(() => {
479
+ $(), i((w) => w === "dwelling" || w === "handle-visible" ? "idle" : w);
480
+ }, [$]), Z = f(
481
+ (w, F, E) => {
482
+ const A = R.current, Q = A * S.snapInFraction, q = A * S.snapOutFraction, j = F - E;
483
+ let H = j;
484
+ for (; E + H < 3; ) {
485
+ const J = H * A + (H < 0 ? q : Q);
486
+ if (w >= J) H += 1;
475
487
  else break;
476
488
  }
477
- if (W === X)
478
- for (; E + W > 1; ) {
479
- const ee = W * A - (W > 0 ? j : J);
480
- if (N <= ee) W -= 1;
489
+ if (H === j)
490
+ for (; E + H > 1; ) {
491
+ const J = H * A - (H > 0 ? q : Q);
492
+ if (w <= J) H -= 1;
481
493
  else break;
482
494
  }
483
- return Math.min(3, Math.max(1, E + W));
495
+ return Math.min(3, Math.max(1, E + H));
484
496
  },
485
- [w.snapInFraction, w.snapOutFraction]
486
- ), G = f(
487
- (N) => {
488
- if (k.current !== "handle-visible") return;
489
- S.current = N.clientX, R.current = s, C.current = o;
497
+ [S.snapInFraction, S.snapOutFraction]
498
+ ), oe = f(
499
+ (w) => {
500
+ if (N.current !== "handle-visible") return;
501
+ b(), T.current = w.clientX, R.current = s, C.current = o;
490
502
  const F = e * s + (e - 1) * o;
491
- _.current = F, b.current.clear(), b.current.push({ x: N.clientX, t: performance.now() }), r.jump(F), k.current = "dragging", i("dragging");
503
+ _.current = F, k.current.clear(), k.current.push({ x: w.clientX, t: performance.now() }), r.jump(F), N.current = "dragging", i("dragging");
492
504
  },
493
- [s, o, e, r]
494
- ), Q = f(
495
- (N) => N * R.current + (N - 1) * C.current,
505
+ [s, o, e, r, b]
506
+ ), B = f(
507
+ (w) => w * R.current + (w - 1) * C.current,
496
508
  []
497
- ), q = f(
498
- (N, F) => {
499
- const E = Q(N), A = N !== e;
509
+ ), ae = f(
510
+ (w, F) => {
511
+ const E = B(w), A = w !== e;
500
512
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
501
- r.jump(E), A && F ? a({ direction: F, targetColSpan: N, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), k.current = "idle", i("idle");
513
+ r.jump(E), A && F ? a({ direction: F, targetColSpan: w, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), N.current = "idle", i("idle");
502
514
  return;
503
515
  }
504
- const j = b.current.getWeightedVelocity() * w.velocityMultiplier;
505
- k.current = "settling", i("settling"), ye(r, E, {
516
+ const q = k.current.getWeightedVelocity() * S.velocityMultiplier;
517
+ N.current = "settling", i("settling"), b(), g.current = we(r, E, {
506
518
  type: "spring",
507
- stiffness: w.stiffness,
508
- damping: w.damping,
509
- mass: w.mass,
510
- velocity: j,
519
+ stiffness: S.stiffness,
520
+ damping: S.damping,
521
+ mass: S.mass,
522
+ velocity: q,
511
523
  onComplete: () => {
512
- A && F ? a({ direction: F, targetColSpan: N, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), k.current = "idle", i("idle");
524
+ g.current = null, A && F ? a({ direction: F, targetColSpan: w, mode: t ? "slot-fill" : "sparkline-fidelity" }) : A || n?.(), r.jump(0), N.current = "idle", i("idle");
513
525
  }
514
526
  });
515
527
  },
516
- [Q, e, t, a, n, r, w]
517
- ), B = f(
518
- (N) => {
519
- if (k.current !== "dragging") return;
520
- const F = N.clientX - (S.current ?? N.clientX);
521
- b.current.push({ x: N.clientX, t: performance.now() });
522
- const E = Z(F, x.current, e), A = E > e ? "grow" : E < e ? "shrink" : null;
523
- q(E, A);
528
+ [B, e, t, a, n, r, S, b]
529
+ ), Le = f(
530
+ (w) => {
531
+ if (N.current !== "dragging") return;
532
+ const F = w.clientX - (T.current ?? w.clientX);
533
+ k.current.push({ x: w.clientX, t: performance.now() });
534
+ const E = Z(F, M.current, e), A = E > e ? "grow" : E < e ? "shrink" : null;
535
+ ae(E, A);
524
536
  },
525
- [Z, e, q]
526
- ), oe = f(() => {
527
- if (T(), k.current === "dragging") {
528
- const N = _.current;
537
+ [Z, e, ae]
538
+ ), ie = f(() => {
539
+ if ($(), N.current === "dragging") {
540
+ const w = _.current;
529
541
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
530
- r.jump(N), n?.(), r.jump(0), k.current = "idle", i("idle");
542
+ r.jump(w), n?.(), r.jump(0), N.current = "idle", i("idle");
531
543
  return;
532
544
  }
533
- const E = b.current.getWeightedVelocity();
534
- k.current = "settling", i("settling"), ye(r, N, {
545
+ const E = k.current.getWeightedVelocity();
546
+ N.current = "settling", i("settling"), b(), g.current = we(r, w, {
535
547
  type: "spring",
536
- stiffness: w.stiffness,
537
- damping: w.damping,
538
- mass: w.mass,
548
+ stiffness: S.stiffness,
549
+ damping: S.damping,
550
+ mass: S.mass,
539
551
  velocity: E,
540
552
  onComplete: () => {
541
- n?.(), r.jump(0), k.current = "idle", i("idle");
553
+ g.current = null, n?.(), r.jump(0), N.current = "idle", i("idle");
542
554
  }
543
555
  });
544
556
  return;
545
557
  }
546
- k.current === "handle-visible" && (n?.(), k.current = "cancelled", i("cancelled"));
547
- }, [T, r, n, w]);
558
+ N.current === "handle-visible" && (n?.(), N.current = "cancelled", i("cancelled"));
559
+ }, [$, r, n, S, b]);
548
560
  L(() => {
549
561
  if (v !== "dragging" && v !== "handle-visible") return;
550
- const N = (F) => {
551
- F.key === "Escape" && oe();
562
+ const w = (F) => {
563
+ F.key === "Escape" && ie();
552
564
  };
553
- return window.addEventListener("keydown", N), () => window.removeEventListener("keydown", N);
554
- }, [v, oe]), L(() => {
565
+ return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
566
+ }, [v, ie]), L(() => {
555
567
  if (v !== "dragging") {
556
568
  y(e);
557
569
  return;
558
570
  }
559
- const N = (F) => {
560
- const E = F.clientX - (S.current ?? F.clientX), A = _.current, J = g(1), j = g(D), X = A + E, W = Math.max(J, Math.min(j, X));
561
- r.set(W);
562
- const ie = R.current, ee = (D - e) * ie, Be = (1 - e) * ie, Ke = Math.max(Be, Math.min(ee, E));
563
- b.current.push({ x: F.clientX, t: performance.now() });
564
- const le = Z(Ke, x.current, e);
565
- le !== x.current && (x.current = le, y(le));
571
+ const w = (F) => {
572
+ const E = F.clientX - (T.current ?? F.clientX), A = _.current, Q = x(1), q = x(D), j = A + E, H = Math.max(Q, Math.min(q, j));
573
+ r.set(H);
574
+ const le = R.current, J = (D - e) * le, We = (1 - e) * le, Ge = Math.max(We, Math.min(J, E));
575
+ k.current.push({ x: F.clientX, t: performance.now() });
576
+ const ce = Z(Ge, M.current, e);
577
+ ce !== M.current && (M.current = ce, y(ce));
566
578
  };
567
- return window.addEventListener("pointermove", N), () => window.removeEventListener("pointermove", N);
568
- }, [v, e, r, Z, D, g]), L(() => () => {
569
- T(), M();
570
- }, [T, M]), L(() => {
579
+ return window.addEventListener("pointermove", w), () => window.removeEventListener("pointermove", w);
580
+ }, [v, e, r, Z, D, x]), L(() => () => {
581
+ $(), G();
582
+ }, [$, G]), L(() => {
571
583
  if (v !== "cancelled") return;
572
- const N = setTimeout(() => i("idle"), u);
573
- return () => clearTimeout(N);
584
+ const w = setTimeout(() => i("idle"), u);
585
+ return () => clearTimeout(w);
574
586
  }, [v, u]);
575
- const Ae = f(
576
- (N) => {
577
- if (k.current === "settling") return;
578
- const E = Math.min(3, Math.max(1, e + (N === "grow" ? 1 : -1)));
587
+ const $e = f(
588
+ (w) => {
589
+ if (N.current === "settling") return;
590
+ const E = Math.min(3, Math.max(1, e + (w === "grow" ? 1 : -1)));
579
591
  if (E === e) return;
580
- R.current = s, C.current = o, b.current.clear();
592
+ R.current = s, C.current = o, k.current.clear();
581
593
  const A = e * s + (e - 1) * o;
582
- _.current = A, r.jump(A), q(E, N);
594
+ _.current = A, r.jump(A), ae(E, w);
583
595
  },
584
- [e, s, o, r, q]
585
- ), ve = f(() => {
586
- M(), p.current = setTimeout(() => {
587
- k.current === "handle-visible" && (k.current = "idle", i("idle"));
596
+ [e, s, o, r, ae]
597
+ ), ye = f(() => {
598
+ G(), p.current = setTimeout(() => {
599
+ N.current === "handle-visible" && (N.current = "idle", i("idle"));
588
600
  }, 5e3);
589
- }, [M]), Le = f(() => {
590
- k.current === "idle" && (T(), k.current = "handle-visible", i("handle-visible"), ve());
591
- }, [T, ve]), $e = f(() => {
592
- M(), k.current === "handle-visible" && (k.current = "idle", i("idle"));
593
- }, [M]);
601
+ }, [G]), Be = f(() => {
602
+ N.current === "idle" && ($(), N.current = "handle-visible", i("handle-visible"), ye());
603
+ }, [$, ye]), Ke = f(() => {
604
+ G(), N.current === "handle-visible" && (N.current = "idle", i("idle"));
605
+ }, [G]);
594
606
  return {
595
607
  state: v,
596
- enterEdgeZone: H,
597
- leaveEdgeZone: z,
608
+ enterEdgeZone: X,
609
+ leaveEdgeZone: V,
598
610
  handleProps: {
599
- onPointerDown: G,
600
- onPointerUp: B,
611
+ onPointerDown: oe,
612
+ onPointerUp: Le,
601
613
  // Bug E: handle continues zone presence so pointer crossing sentinel→handle
602
614
  // doesn't collapse state. handle's pointerenter = stay in zone.
603
- onPointerEnter: H,
604
- onPointerLeave: z
615
+ onPointerEnter: X,
616
+ onPointerLeave: V
605
617
  },
606
- previewColSpan: d,
618
+ previewColSpan: c,
607
619
  ghostProps: {
608
620
  visible: v === "dragging" || v === "settling",
609
- targetColSpan: d,
621
+ targetColSpan: c,
610
622
  ghostWidth: r,
611
623
  enterMs: h,
612
624
  exitMs: u
613
625
  },
614
- onKeyboardStep: Ae,
615
- onTouchReveal: Le,
616
- onTouchDismiss: $e,
617
- cancel: oe
626
+ onKeyboardStep: $e,
627
+ onTouchReveal: Be,
628
+ onTouchDismiss: Ke,
629
+ cancel: ie
618
630
  };
619
631
  }
620
- function _n(e) {
632
+ function Rn(e) {
621
633
  const { cardWidthPx: t, slotCount: a, activeSlotIdx: n, pillWidthPx: s } = e;
622
634
  if (n == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(a) || a <= 0 || !Number.isInteger(n) || n < 0 || n >= a)
623
635
  return;
624
636
  const o = (n + 0.5) * (t / a);
625
637
  return s != null && Number.isFinite(s) && s > 0 ? o - s / 2 : o;
626
638
  }
627
- const In = [
639
+ const Mn = [
628
640
  // 1. Standard: Total Revenue
629
641
  {
630
642
  variant: "standard",
@@ -728,24 +740,24 @@ const In = [
728
740
  { value: 9, color: "#6b7280", label: "Other" }
729
741
  ]
730
742
  }
731
- ], ct = {
743
+ ], mt = {
732
744
  variant: "standard",
733
745
  label: "Total Revenue",
734
746
  isLoading: !0
735
- }, ut = {
747
+ }, pt = {
736
748
  variant: "standard",
737
749
  label: "Total Revenue",
738
750
  value: 125430,
739
751
  valueFormat: { prefix: "$", abbreviated: !0 },
740
752
  isError: !0
741
- }, mt = {
753
+ }, gt = {
742
754
  variant: "standard",
743
755
  label: "Total Revenue",
744
756
  value: null,
745
757
  valueFormat: { prefix: "$", abbreviated: !0 },
746
758
  isEmpty: !0,
747
759
  subtitle: "No data"
748
- }, pt = {
760
+ }, ft = {
749
761
  variant: "standard",
750
762
  label: "Total Revenue",
751
763
  value: 125430,
@@ -753,7 +765,7 @@ const In = [
753
765
  trend: { value: 12.5, direction: "up" },
754
766
  subtitle: "MTD",
755
767
  isStale: !0
756
- }, gt = {
768
+ }, ht = {
757
769
  variant: "sparkline",
758
770
  label: "Daily Orders",
759
771
  value: 847,
@@ -762,7 +774,7 @@ const In = [
762
774
  sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
763
775
  accentColor: "#6366f1",
764
776
  isStale: !0
765
- }, ft = {
777
+ }, bt = {
766
778
  variant: "donut",
767
779
  label: "Order Fill Rate",
768
780
  value: 78,
@@ -773,14 +785,14 @@ const In = [
773
785
  donutMax: 100,
774
786
  accentColor: "#10b981",
775
787
  isStale: !0
776
- }, Rn = [
777
- ct,
778
- ut,
788
+ }, Pn = [
779
789
  mt,
780
790
  pt,
781
791
  gt,
782
- ft
783
- ], Mn = {
792
+ ft,
793
+ ht,
794
+ bt
795
+ ], Fn = {
784
796
  variant: "sparkline",
785
797
  label: "Daily Orders",
786
798
  value: 847,
@@ -803,7 +815,7 @@ const In = [
803
815
  59
804
816
  ],
805
817
  accentColor: "#6366f1"
806
- }, Pn = {
818
+ }, En = {
807
819
  variant: "sparkline",
808
820
  label: "New Customers",
809
821
  value: 23,
@@ -842,21 +854,21 @@ const In = [
842
854
  19
843
855
  ],
844
856
  accentColor: "#10b981"
845
- }, Fn = {
857
+ }, On = {
846
858
  variant: "standard",
847
859
  label: "Total Revenue",
848
860
  value: 125430,
849
861
  valueFormat: { prefix: "$", abbreviated: !0 },
850
862
  trend: { value: 12.5, direction: "up" },
851
863
  subtitle: "MTD"
852
- }, En = {
864
+ }, An = {
853
865
  variant: "standard",
854
866
  label: "Returns",
855
867
  value: 3280,
856
868
  valueFormat: { prefix: "$", abbreviated: !0 },
857
869
  trend: { value: -8.3, direction: "down" },
858
870
  subtitle: "MTD"
859
- }, On = {
871
+ }, Ln = {
860
872
  variant: "standard",
861
873
  label: "Avg Order Value",
862
874
  value: 487,
@@ -864,7 +876,7 @@ const In = [
864
876
  trend: { value: 0, direction: "flat" },
865
877
  subtitle: "QTD"
866
878
  };
867
- function Te({
879
+ function _e({
868
880
  open: e,
869
881
  onDismiss: t,
870
882
  anchorRef: a,
@@ -880,8 +892,8 @@ function Te({
880
892
  },
881
893
  [o, t]
882
894
  ), u = f(
883
- (i, d) => {
884
- (d.key === "Enter" || d.key === " ") && (d.preventDefault(), h(i));
895
+ (i, c) => {
896
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), h(i));
885
897
  },
886
898
  [h]
887
899
  ), D = f(() => {
@@ -890,7 +902,7 @@ function Te({
890
902
  m(), t();
891
903
  }, [m, t]);
892
904
  return /* @__PURE__ */ O(
893
- Ze,
905
+ Ye,
894
906
  {
895
907
  definition: {
896
908
  placement: "bottom-end",
@@ -903,40 +915,40 @@ function Te({
903
915
  anchorRef: a,
904
916
  className: "gloss-page-dropdown",
905
917
  children: [
906
- /* @__PURE__ */ c("ul", { role: "menu", className: "gloss-page-dropdown__list", children: n.map((i) => {
907
- const d = i.id === s;
918
+ /* @__PURE__ */ d("ul", { role: "menu", className: "gloss-page-dropdown__list", children: n.map((i) => {
919
+ const c = i.id === s;
908
920
  return /* @__PURE__ */ O(
909
921
  "li",
910
922
  {
911
923
  role: "menuitemradio",
912
- "aria-checked": d,
913
- "aria-current": d ? "page" : void 0,
924
+ "aria-checked": c,
925
+ "aria-current": c ? "page" : void 0,
914
926
  tabIndex: 0,
915
- className: `gloss-page-dropdown__item${d ? " gloss-page-dropdown__item--active" : ""}`,
927
+ className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
916
928
  onClick: () => h(i.id),
917
929
  onKeyDown: (y) => u(i.id, y),
918
930
  children: [
919
- /* @__PURE__ */ c(
931
+ /* @__PURE__ */ d(
920
932
  "span",
921
933
  {
922
- className: `gloss-page-dropdown__dot${d ? " gloss-page-dropdown__dot--active" : ""}`
934
+ className: `gloss-page-dropdown__dot${c ? " gloss-page-dropdown__dot--active" : ""}`
923
935
  }
924
936
  ),
925
- /* @__PURE__ */ c(
937
+ /* @__PURE__ */ d(
926
938
  "span",
927
939
  {
928
940
  className: `gloss-page-dropdown__name${i.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
929
941
  children: i.name
930
942
  }
931
943
  ),
932
- /* @__PURE__ */ c("span", { className: "gloss-page-dropdown__count", children: i.cardCount })
944
+ /* @__PURE__ */ d("span", { className: "gloss-page-dropdown__count", children: i.cardCount })
933
945
  ]
934
946
  },
935
947
  i.id
936
948
  );
937
949
  }) }),
938
- /* @__PURE__ */ c("hr", { className: "gloss-page-dropdown__separator" }),
939
- /* @__PURE__ */ c(
950
+ /* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
951
+ /* @__PURE__ */ d(
940
952
  "button",
941
953
  {
942
954
  role: "menuitem",
@@ -945,8 +957,8 @@ function Te({
945
957
  children: "+ New page"
946
958
  }
947
959
  ),
948
- /* @__PURE__ */ c("hr", { className: "gloss-page-dropdown__separator" }),
949
- /* @__PURE__ */ c(
960
+ /* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
961
+ /* @__PURE__ */ d(
950
962
  "button",
951
963
  {
952
964
  role: "menuitem",
@@ -959,8 +971,8 @@ function Te({
959
971
  }
960
972
  );
961
973
  }
962
- Te.displayName = "PageDropdown";
963
- const bt = function({
974
+ _e.displayName = "PageDropdown";
975
+ const vt = function({
964
976
  currentIndex: t,
965
977
  total: a,
966
978
  pages: n,
@@ -969,11 +981,11 @@ const bt = function({
969
981
  onManagePages: l,
970
982
  maskRadius: m = "var(--gloss-radius-md)"
971
983
  }) {
972
- const h = P(null), [u, D] = $(!1), v = f(() => {
984
+ const h = P(null), [u, D] = K(!1), v = f(() => {
973
985
  D((y) => !y);
974
986
  }, []), i = f(() => {
975
987
  D(!1);
976
- }, []), d = n[t]?.id ?? "";
988
+ }, []), c = n[t]?.id ?? "";
977
989
  return /* @__PURE__ */ O(
978
990
  "div",
979
991
  {
@@ -982,7 +994,7 @@ const bt = function({
982
994
  style: { position: "absolute", top: 0, right: 0 },
983
995
  "data-page-chip": !0,
984
996
  children: [
985
- /* @__PURE__ */ c(
997
+ /* @__PURE__ */ d(
986
998
  "div",
987
999
  {
988
1000
  className: "gloss-page-chip__nuzzle",
@@ -1004,14 +1016,14 @@ const bt = function({
1004
1016
  ]
1005
1017
  }
1006
1018
  ),
1007
- /* @__PURE__ */ c(
1008
- Te,
1019
+ /* @__PURE__ */ d(
1020
+ _e,
1009
1021
  {
1010
1022
  open: u,
1011
1023
  onDismiss: i,
1012
1024
  anchorRef: h,
1013
1025
  pages: n,
1014
- activePageId: d,
1026
+ activePageId: c,
1015
1027
  onPageChange: s,
1016
1028
  onCreatePage: o,
1017
1029
  onManagePages: l
@@ -1021,8 +1033,8 @@ const bt = function({
1021
1033
  }
1022
1034
  );
1023
1035
  };
1024
- bt.displayName = "PageChip";
1025
- const An = [
1036
+ vt.displayName = "PageChip";
1037
+ const $n = [
1026
1038
  {
1027
1039
  id: "ORD-1001",
1028
1040
  orderNumber: "ORD-1001",
@@ -1155,7 +1167,7 @@ const An = [
1155
1167
  date: "2026-03-01",
1156
1168
  skuCount: 9
1157
1169
  }
1158
- ], Ln = [
1170
+ ], Bn = [
1159
1171
  {
1160
1172
  id: "ITEM-001",
1161
1173
  sku: "PB-4520",
@@ -1289,16 +1301,16 @@ const An = [
1289
1301
  lastDate: "2026-03-01"
1290
1302
  }
1291
1303
  ];
1292
- function pe(e) {
1304
+ function ge(e) {
1293
1305
  return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
1294
1306
  }
1295
- function _e(e) {
1307
+ function Ie(e) {
1296
1308
  return e.toLocaleString("en-US");
1297
1309
  }
1298
- function Ie(e) {
1310
+ function Re(e) {
1299
1311
  return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
1300
1312
  }
1301
- const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), $n = [
1313
+ const te = W.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Kn = [
1302
1314
  {
1303
1315
  field: "id",
1304
1316
  headerName: "Order",
@@ -1328,7 +1340,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1328
1340
  align: "right",
1329
1341
  headerAlign: "right",
1330
1342
  cellClassName: "gloss-tabular-nums",
1331
- renderCell: ({ row: e }) => e.skuCount ? _e(e.skuCount) : ne
1343
+ renderCell: ({ row: e }) => e.skuCount ? Ie(e.skuCount) : te
1332
1344
  },
1333
1345
  {
1334
1346
  field: "total",
@@ -1338,7 +1350,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1338
1350
  align: "right",
1339
1351
  headerAlign: "right",
1340
1352
  cellClassName: "gloss-tabular-nums",
1341
- renderCell: ({ row: e }) => e.total ? pe(e.total) : ne
1353
+ renderCell: ({ row: e }) => e.total ? ge(e.total) : te
1342
1354
  },
1343
1355
  {
1344
1356
  field: "date",
@@ -1348,9 +1360,9 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1348
1360
  align: "right",
1349
1361
  headerAlign: "right",
1350
1362
  cellClassName: "gloss-tabular-nums",
1351
- renderCell: ({ row: e }) => e.date ? Ie(e.date) : ""
1363
+ renderCell: ({ row: e }) => e.date ? Re(e.date) : ""
1352
1364
  }
1353
- ], Bn = [
1365
+ ], Wn = [
1354
1366
  {
1355
1367
  field: "sku",
1356
1368
  headerName: "Item ID",
@@ -1382,7 +1394,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1382
1394
  align: "right",
1383
1395
  headerAlign: "right",
1384
1396
  cellClassName: "gloss-tabular-nums",
1385
- renderCell: ({ row: e }) => e.price ? pe(e.price) : ne
1397
+ renderCell: ({ row: e }) => e.price ? ge(e.price) : te
1386
1398
  },
1387
1399
  {
1388
1400
  field: "quantity",
@@ -1392,7 +1404,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1392
1404
  align: "right",
1393
1405
  headerAlign: "right",
1394
1406
  cellClassName: "gloss-tabular-nums gloss-drillable",
1395
- renderCell: ({ row: e }) => e.quantity ? _e(e.quantity) : ne
1407
+ renderCell: ({ row: e }) => e.quantity ? Ie(e.quantity) : te
1396
1408
  },
1397
1409
  {
1398
1410
  field: "total",
@@ -1402,7 +1414,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1402
1414
  align: "right",
1403
1415
  headerAlign: "right",
1404
1416
  cellClassName: "gloss-tabular-nums gloss-drillable",
1405
- renderCell: ({ row: e }) => e.total ? pe(e.total) : ne
1417
+ renderCell: ({ row: e }) => e.total ? ge(e.total) : te
1406
1418
  },
1407
1419
  {
1408
1420
  field: "lastDate",
@@ -1412,24 +1424,24 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1412
1424
  align: "right",
1413
1425
  headerAlign: "right",
1414
1426
  cellClassName: "gloss-tabular-nums",
1415
- renderCell: ({ row: e }) => e.lastDate ? Ie(e.lastDate) : ""
1427
+ renderCell: ({ row: e }) => e.lastDate ? Re(e.lastDate) : ""
1416
1428
  }
1417
- ], ht = [
1429
+ ], yt = [
1418
1430
  { id: "c-001", label: "ABC Home Goods" },
1419
1431
  { id: "c-002", label: "Riverside Retail" },
1420
1432
  { id: "c-003", label: "Mountain View Store" },
1421
1433
  { id: "c-004", label: "Downtown Decor" },
1422
1434
  { id: "c-005", label: "Pacific Coast Imports" }
1423
- ], vt = [
1435
+ ], wt = [
1424
1436
  { id: "i-001", label: "Classic Linen Throw Pillow" },
1425
1437
  { id: "i-002", label: "Coastal Wave Candle Set" },
1426
1438
  { id: "i-003", label: "Walnut Console Table" },
1427
1439
  { id: "i-004", label: "Hand-Blown Glass Vase" },
1428
1440
  { id: "i-005", label: "Velvet Accent Cushion" }
1429
1441
  ], de = (e) => {
1430
- }, yt = (e) => {
1431
- }, De = (e, t) => {
1432
- }, Re = {
1442
+ }, Dt = (e) => {
1443
+ }, Ce = (e, t) => {
1444
+ }, Me = {
1433
1445
  vizState: {
1434
1446
  type: "orders",
1435
1447
  quant: "$",
@@ -1438,16 +1450,16 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1438
1450
  timeFrame: "MTD"
1439
1451
  },
1440
1452
  onTypeChange: de,
1441
- onQuantChange: yt,
1453
+ onQuantChange: Dt,
1442
1454
  onEntityTypeChange: de,
1443
- onEntitySelect: De,
1444
- onItemSelect: De,
1455
+ onEntitySelect: Ce,
1456
+ onItemSelect: Ce,
1445
1457
  onTimeFrameChange: de,
1446
1458
  userType: "sales-agency",
1447
- entityFilterOptions: ht,
1448
- itemFilterOptions: vt
1449
- }, Kn = {
1450
- ...Re,
1459
+ entityFilterOptions: yt,
1460
+ itemFilterOptions: wt
1461
+ }, Gn = {
1462
+ ...Me,
1451
1463
  vizState: {
1452
1464
  type: "items",
1453
1465
  quant: "$",
@@ -1455,8 +1467,8 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1455
1467
  byItem: { id: "i-003", name: "Walnut Console Table" },
1456
1468
  timeFrame: "YTD"
1457
1469
  }
1458
- }, Wn = {
1459
- ...Re,
1470
+ }, Hn = {
1471
+ ...Me,
1460
1472
  vizState: {
1461
1473
  type: "orders",
1462
1474
  quant: "#",
@@ -1468,7 +1480,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1468
1480
  entityFilterOptions: [
1469
1481
  { id: "customers", label: "Customers" }
1470
1482
  ]
1471
- }, wt = [
1483
+ }, Ct = [
1472
1484
  {
1473
1485
  id: "recent-orders",
1474
1486
  label: "Recent Orders",
@@ -1514,7 +1526,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1514
1526
  routeKey: "customer.profile",
1515
1527
  subtitle: "Opens in RepTime"
1516
1528
  }
1517
- ], Dt = [
1529
+ ], Nt = [
1518
1530
  {
1519
1531
  id: "order-items",
1520
1532
  label: "Items in Order",
@@ -1543,7 +1555,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1543
1555
  cellKinds: ["orderId"],
1544
1556
  graphType: "timeline"
1545
1557
  }
1546
- ], Ct = [
1558
+ ], kt = [
1547
1559
  {
1548
1560
  id: "graph-metric",
1549
1561
  label: "Graph This Metric",
@@ -1571,14 +1583,14 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1571
1583
  cellKinds: ["numeric"],
1572
1584
  tabType: "orders"
1573
1585
  }
1574
- ], Gn = {
1575
- entityName: wt,
1576
- orderId: Dt,
1577
- numeric: Ct
1578
- }, Vn = [
1586
+ ], Vn = {
1587
+ entityName: Ct,
1588
+ orderId: Nt,
1589
+ numeric: kt
1590
+ }, zn = [
1579
1591
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
1580
1592
  /* @__PURE__ */ new Date()
1581
- ], Hn = {
1593
+ ], Zn = {
1582
1594
  rangeA: [
1583
1595
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
1584
1596
  /* @__PURE__ */ new Date()
@@ -1591,7 +1603,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1591
1603
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
1592
1604
  new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
1593
1605
  ]
1594
- }, zn = {
1606
+ }, Un = {
1595
1607
  version: 4,
1596
1608
  lastPreset: "mtd",
1597
1609
  pinnedPreset: "mtd",
@@ -1599,7 +1611,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1599
1611
  rangeCount: 1,
1600
1612
  lastPresetB: null,
1601
1613
  lastPresetC: null
1602
- }, Zn = [
1614
+ }, Yn = [
1603
1615
  {
1604
1616
  id: "atlanta-jan",
1605
1617
  label: "Atlanta Market",
@@ -1621,7 +1633,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1621
1633
  endDate: new Date(2026, 3, 22),
1622
1634
  location: "Chicago, IL"
1623
1635
  }
1624
- ], Un = [
1636
+ ], qn = [
1625
1637
  {
1626
1638
  id: "custom-regional-1",
1627
1639
  label: "Southeast Regional Expo",
@@ -1638,7 +1650,7 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1638
1650
  location: "Portland, OR",
1639
1651
  isCustom: !0
1640
1652
  }
1641
- ], Yn = [
1653
+ ], jn = [
1642
1654
  {
1643
1655
  id: "atlanta-jan",
1644
1656
  label: "Atlanta Market",
@@ -1655,36 +1667,36 @@ const ne = K.createElement("span", { style: { color: "var(--color-text-muted)" }
1655
1667
  location: "New York, NY",
1656
1668
  active: !0
1657
1669
  }
1658
- ], qn = [
1670
+ ], Xn = [
1659
1671
  { id: "7d", label: "7D" },
1660
1672
  { id: "30d", label: "30D" },
1661
1673
  { id: "60d", label: "60D" },
1662
1674
  { id: "90d", label: "90D" }
1663
- ], jn = [
1675
+ ], Qn = [
1664
1676
  { id: "mtd", label: "MTD" },
1665
1677
  { id: "qtd", label: "QTD" },
1666
1678
  { id: "ytd", label: "YTD" },
1667
1679
  { id: "lytd", label: "LYTD" }
1668
- ], Nt = {
1680
+ ], xt = {
1669
1681
  timeframe: "Time Frame",
1670
1682
  threshold: "Thresholds",
1671
1683
  slots: "Slots",
1672
1684
  size: "Size",
1673
1685
  color: "Color",
1674
1686
  pinned: "Pinned"
1675
- }, kt = {
1676
- timeframe: Ye,
1677
- threshold: qe,
1678
- slots: je,
1679
- size: Xe,
1680
- color: Qe,
1681
- pinned: Je
1687
+ }, St = {
1688
+ timeframe: je,
1689
+ threshold: Xe,
1690
+ slots: Qe,
1691
+ size: Je,
1692
+ color: et,
1693
+ pinned: tt
1682
1694
  };
1683
- function Ce(...e) {
1695
+ function Ne(...e) {
1684
1696
  return e.filter(Boolean).join(" ");
1685
1697
  }
1686
- function xt() {
1687
- const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
1698
+ function Tt() {
1699
+ const [e, t] = K(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
1688
1700
  return L(() => {
1689
1701
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
1690
1702
  const a = window.matchMedia("(prefers-reduced-motion: reduce)"), n = (s) => t(s.matches);
@@ -1693,29 +1705,29 @@ function xt() {
1693
1705
  });
1694
1706
  }, []), e;
1695
1707
  }
1696
- const St = ({
1708
+ const _t = ({
1697
1709
  dimensions: e,
1698
1710
  onDimensionSelect: t,
1699
1711
  activeDimension: a,
1700
1712
  ariaCardTypeLabel: n,
1701
1713
  className: s
1702
1714
  }) => {
1703
- const o = P(null), l = P([]), m = xt(), h = ae(() => Array.from(e), [e]);
1715
+ const o = P(null), l = P([]), m = Tt(), h = ne(() => Array.from(e), [e]);
1704
1716
  if (h.length === 0) return null;
1705
- const u = n ? `Configure ${n}: choose a dimension` : void 0, D = m ? "10ms" : "200ms", v = (i, d) => {
1717
+ const u = n ? `Configure ${n}: choose a dimension` : void 0, D = m ? "10ms" : "200ms", v = (i, c) => {
1706
1718
  const y = h.length - 1, I = (p) => {
1707
- const S = l.current[p];
1708
- S && S.focus();
1719
+ const T = l.current[p];
1720
+ T && T.focus();
1709
1721
  };
1710
1722
  switch (i.key) {
1711
1723
  case "ArrowRight":
1712
1724
  case "ArrowDown": {
1713
- i.preventDefault(), I(d === y ? 0 : d + 1);
1725
+ i.preventDefault(), I(c === y ? 0 : c + 1);
1714
1726
  break;
1715
1727
  }
1716
1728
  case "ArrowLeft":
1717
1729
  case "ArrowUp": {
1718
- i.preventDefault(), I(d === 0 ? y : d - 1);
1730
+ i.preventDefault(), I(c === 0 ? y : c - 1);
1719
1731
  break;
1720
1732
  }
1721
1733
  case "Home": {
@@ -1728,50 +1740,50 @@ const St = ({
1728
1740
  }
1729
1741
  case "Enter":
1730
1742
  case " ": {
1731
- i.preventDefault(), t(h[d]);
1743
+ i.preventDefault(), t(h[c]);
1732
1744
  break;
1733
1745
  }
1734
1746
  }
1735
1747
  };
1736
- return /* @__PURE__ */ c(
1748
+ return /* @__PURE__ */ d(
1737
1749
  "div",
1738
1750
  {
1739
1751
  ref: o,
1740
1752
  role: "group",
1741
1753
  "aria-label": u,
1742
- className: Ce("gloss-reconfig-backside-buttons", s),
1754
+ className: Ne("gloss-reconfig-backside-buttons", s),
1743
1755
  style: {
1744
1756
  // Expose the reduced-motion-resolved duration as a CSS custom prop
1745
1757
  // so the SCSS transition rule can consume it without a nested media
1746
1758
  // query in the JS. Also surfaces the value for the unit test.
1747
1759
  "--gloss-reconfig-backside-buttons-transition-duration": D
1748
1760
  },
1749
- children: h.map((i, d) => {
1750
- const y = kt[i], I = a === i;
1761
+ children: h.map((i, c) => {
1762
+ const y = St[i], I = a === i;
1751
1763
  return /* @__PURE__ */ O(
1752
1764
  "button",
1753
1765
  {
1754
1766
  ref: (p) => {
1755
- l.current[d] = p;
1767
+ l.current[c] = p;
1756
1768
  },
1757
1769
  type: "button",
1758
1770
  "data-dimension": i,
1759
- className: Ce(
1771
+ className: Ne(
1760
1772
  "gloss-reconfig-backside-buttons__button",
1761
1773
  I && "gloss-reconfig-backside-buttons__button--active"
1762
1774
  ),
1763
1775
  "aria-current": I ? "true" : void 0,
1764
1776
  onClick: () => t(i),
1765
- onKeyDown: (p) => v(p, d),
1777
+ onKeyDown: (p) => v(p, c),
1766
1778
  children: [
1767
- /* @__PURE__ */ c(
1779
+ /* @__PURE__ */ d(
1768
1780
  y,
1769
1781
  {
1770
1782
  className: "gloss-reconfig-backside-buttons__button-icon",
1771
1783
  "aria-hidden": "true"
1772
1784
  }
1773
1785
  ),
1774
- /* @__PURE__ */ c("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Nt[i] })
1786
+ /* @__PURE__ */ d("span", { className: "gloss-reconfig-backside-buttons__button-label", children: xt[i] })
1775
1787
  ]
1776
1788
  },
1777
1789
  i
@@ -1780,12 +1792,12 @@ const St = ({
1780
1792
  }
1781
1793
  );
1782
1794
  };
1783
- St.displayName = "ReconfigBacksideButtons";
1784
- function V(e, t) {
1795
+ _t.displayName = "ReconfigBacksideButtons";
1796
+ function z(e, t) {
1785
1797
  return {
1786
1798
  id: e,
1787
1799
  colSpan: 1,
1788
- content: K.createElement("div", {
1800
+ content: W.createElement("div", {
1789
1801
  style: {
1790
1802
  width: "100%",
1791
1803
  height: "100%",
@@ -1801,38 +1813,38 @@ function V(e, t) {
1801
1813
  }, t)
1802
1814
  };
1803
1815
  }
1804
- function Ne(e, t) {
1816
+ function ke(e, t) {
1805
1817
  return {
1806
- ...V(e, t),
1818
+ ...z(e, t),
1807
1819
  colSpan: 2
1808
1820
  };
1809
1821
  }
1810
- const Xn = [
1811
- V("total-revenue", "Total Revenue"),
1812
- V("total-orders", "Total Orders"),
1813
- Ne("revenue-trend", "Revenue Trend (2x)"),
1814
- V("avg-order", "Avg Order Value"),
1815
- V("new-customers", "New Customers"),
1816
- V("top-salesperson", "Top Salesperson"),
1817
- Ne("order-trend", "Order Trend (2x)"),
1818
- V("repeat-rate", "Repeat Rate"),
1819
- V("open-orders", "Open Orders"),
1820
- V("shipped-orders", "Shipped Orders")
1821
- ], Qn = {
1822
+ const Jn = [
1823
+ z("total-revenue", "Total Revenue"),
1824
+ z("total-orders", "Total Orders"),
1825
+ ke("revenue-trend", "Revenue Trend (2x)"),
1826
+ z("avg-order", "Avg Order Value"),
1827
+ z("new-customers", "New Customers"),
1828
+ z("top-salesperson", "Top Salesperson"),
1829
+ ke("order-trend", "Order Trend (2x)"),
1830
+ z("repeat-rate", "Repeat Rate"),
1831
+ z("open-orders", "Open Orders"),
1832
+ z("shipped-orders", "Shipped Orders")
1833
+ ], ea = {
1822
1834
  columns: 6,
1823
1835
  rowHeight: 120,
1824
1836
  gap: 15,
1825
1837
  maxRows: 3,
1826
1838
  currentPage: 0,
1827
1839
  totalPages: 1
1828
- }, Jn = {
1840
+ }, ta = {
1829
1841
  columns: 9,
1830
1842
  rowHeight: 120,
1831
1843
  gap: 15,
1832
1844
  maxRows: 3,
1833
1845
  currentPage: 0,
1834
1846
  totalPages: 2
1835
- }, ea = {
1847
+ }, na = {
1836
1848
  columns: 12,
1837
1849
  rowHeight: 120,
1838
1850
  gap: 15,
@@ -1840,15 +1852,15 @@ const Xn = [
1840
1852
  currentPage: 0,
1841
1853
  totalPages: 3
1842
1854
  };
1843
- function ce(e) {
1844
- return K.createElement("span", { style: { fontSize: 14 } }, e);
1855
+ function ue(e) {
1856
+ return W.createElement("span", { style: { fontSize: 14 } }, e);
1845
1857
  }
1846
- const ta = [
1858
+ const aa = [
1847
1859
  {
1848
1860
  id: "all-orders",
1849
1861
  type: "orders",
1850
1862
  name: "All Orders",
1851
- icon: ce("📋"),
1863
+ icon: ue("📋"),
1852
1864
  closable: !1,
1853
1865
  autoCreated: !0
1854
1866
  },
@@ -1856,17 +1868,17 @@ const ta = [
1856
1868
  id: "open-orders",
1857
1869
  type: "orders",
1858
1870
  name: "Open Orders",
1859
- icon: ce("📦"),
1871
+ icon: ue("📦"),
1860
1872
  closable: !0
1861
1873
  },
1862
1874
  {
1863
1875
  id: "shipped-orders",
1864
1876
  type: "orders",
1865
1877
  name: "Shipped Orders",
1866
- icon: ce("🚚"),
1878
+ icon: ue("🚚"),
1867
1879
  closable: !0
1868
1880
  }
1869
- ], na = [
1881
+ ], ra = [
1870
1882
  {
1871
1883
  id: "orders-main",
1872
1884
  type: "orders",
@@ -1892,7 +1904,7 @@ const ta = [
1892
1904
  name: "Customers",
1893
1905
  closable: !0
1894
1906
  }
1895
- ], aa = [
1907
+ ], sa = [
1896
1908
  {
1897
1909
  id: "only-tab",
1898
1910
  type: "orders",
@@ -1900,7 +1912,7 @@ const ta = [
1900
1912
  closable: !1,
1901
1913
  autoCreated: !0
1902
1914
  }
1903
- ], ra = [
1915
+ ], oa = [
1904
1916
  { id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
1905
1917
  { id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
1906
1918
  { id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
@@ -1912,7 +1924,7 @@ const ta = [
1912
1924
  { id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
1913
1925
  { id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
1914
1926
  ];
1915
- function ge(e) {
1927
+ function fe(e) {
1916
1928
  switch (e) {
1917
1929
  case "wide":
1918
1930
  return { cols: 2, rows: 1 };
@@ -1923,24 +1935,24 @@ function ge(e) {
1923
1935
  return { cols: 1, rows: 1 };
1924
1936
  }
1925
1937
  }
1926
- function Tt(e) {
1938
+ function It(e) {
1927
1939
  let t = 0;
1928
1940
  for (const n of e) {
1929
- const s = ge(n.size), o = n.gridPosition.col + s.cols - 1;
1941
+ const s = fe(n.size), o = n.gridPosition.col + s.cols - 1;
1930
1942
  o > t && (t = o);
1931
1943
  }
1932
1944
  return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
1933
1945
  }
1934
- const _t = function(t) {
1946
+ const Rt = function(t) {
1935
1947
  if (t.renderMode === "discrete")
1936
- return /* @__PURE__ */ c(
1948
+ return /* @__PURE__ */ d(
1937
1949
  "div",
1938
1950
  {
1939
1951
  className: "gloss-metric-group gloss-metric-group--discrete",
1940
1952
  style: { display: "contents" },
1941
1953
  children: t.cards.map((s) => {
1942
- const o = ge(s.size);
1943
- return /* @__PURE__ */ c(
1954
+ const o = fe(s.size);
1955
+ return /* @__PURE__ */ d(
1944
1956
  "div",
1945
1957
  {
1946
1958
  className: "gloss-metric-group__slot",
@@ -1975,7 +1987,7 @@ const _t = function(t) {
1975
1987
  "aria-label": n?.label,
1976
1988
  tabIndex: void 0,
1977
1989
  children: [
1978
- n?.accentColor && /* @__PURE__ */ c(
1990
+ n?.accentColor && /* @__PURE__ */ d(
1979
1991
  "div",
1980
1992
  {
1981
1993
  className: "gloss-metric-group__accent",
@@ -1983,8 +1995,8 @@ const _t = function(t) {
1983
1995
  }
1984
1996
  ),
1985
1997
  n?.label && /* @__PURE__ */ O("div", { className: "gloss-metric-group__label", children: [
1986
- /* @__PURE__ */ c("span", { children: n.label }),
1987
- n?.trend && /* @__PURE__ */ c(
1998
+ /* @__PURE__ */ d("span", { children: n.label }),
1999
+ n?.trend && /* @__PURE__ */ d(
1988
2000
  "span",
1989
2001
  {
1990
2002
  className: "gloss-metric-group__trend",
@@ -1993,18 +2005,18 @@ const _t = function(t) {
1993
2005
  }
1994
2006
  )
1995
2007
  ] }),
1996
- /* @__PURE__ */ c(
2008
+ /* @__PURE__ */ d(
1997
2009
  "div",
1998
2010
  {
1999
2011
  className: "gloss-metric-group__slots",
2000
2012
  style: {
2001
2013
  display: "grid",
2002
2014
  gap: "var(--gloss-spacing-2, 8px)",
2003
- gridTemplateColumns: Tt(a)
2015
+ gridTemplateColumns: It(a)
2004
2016
  },
2005
2017
  children: a.map((s) => {
2006
- const o = ge(s.size);
2007
- return /* @__PURE__ */ c(
2018
+ const o = fe(s.size);
2019
+ return /* @__PURE__ */ d(
2008
2020
  "div",
2009
2021
  {
2010
2022
  className: "gloss-metric-group__slot--composite",
@@ -2023,16 +2035,16 @@ const _t = function(t) {
2023
2035
  }
2024
2036
  );
2025
2037
  };
2026
- _t.displayName = "MetricGroupContainer";
2027
- const Me = "resize.tuning.dev", It = {
2028
- ...Se,
2038
+ Rt.displayName = "MetricGroupContainer";
2039
+ const Pe = "resize.tuning.dev", Mt = {
2040
+ ...Te,
2029
2041
  snapInPx: 60,
2030
2042
  snapOutPx: 90
2031
- }, Y = It;
2032
- function Rt() {
2043
+ }, Y = Mt;
2044
+ function Pt() {
2033
2045
  if (typeof window > "u") return { ...Y };
2034
2046
  try {
2035
- const e = window.localStorage.getItem(Me);
2047
+ const e = window.localStorage.getItem(Pe);
2036
2048
  if (!e) return { ...Y };
2037
2049
  const t = JSON.parse(e);
2038
2050
  return !t || typeof t != "object" || Array.isArray(t) ? { ...Y } : { ...Y, ...t };
@@ -2040,12 +2052,12 @@ function Rt() {
2040
2052
  return { ...Y };
2041
2053
  }
2042
2054
  }
2043
- function Mt() {
2044
- const [e, t] = $(() => Rt());
2055
+ function Ft() {
2056
+ const [e, t] = K(() => Pt());
2045
2057
  L(() => {
2046
2058
  if (!(typeof window > "u"))
2047
2059
  try {
2048
- window.localStorage.setItem(Me, JSON.stringify(e));
2060
+ window.localStorage.setItem(Pe, JSON.stringify(e));
2049
2061
  } catch {
2050
2062
  }
2051
2063
  }, [e]);
@@ -2064,7 +2076,7 @@ function Mt() {
2064
2076
  }, []);
2065
2077
  return { values: e, setValue: a, resetRow: n, resetAll: s };
2066
2078
  }
2067
- const Pt = [
2079
+ const Et = [
2068
2080
  { key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
2069
2081
  { key: "damping", label: "Spring damping", unit: "", min: 10, max: 60, step: 1 },
2070
2082
  { key: "mass", label: "Spring mass", unit: "", min: 0.5, max: 2, step: 0.1 },
@@ -2075,10 +2087,10 @@ const Pt = [
2075
2087
  { key: "blueprintFadeOutMs", label: "Blueprint fade out", unit: "ms", min: 60, max: 400, step: 10 },
2076
2088
  { key: "velocityMultiplier", label: "Velocity multiplier", unit: "×", min: 0, max: 2, step: 0.05 }
2077
2089
  ];
2078
- function Ft(e, t) {
2090
+ function Ot(e, t) {
2079
2091
  return t >= 1 ? String(Math.round(e)) : t >= 0.1 ? e.toFixed(1) : e.toFixed(2);
2080
2092
  }
2081
- function Et() {
2093
+ function At() {
2082
2094
  return /* @__PURE__ */ O(
2083
2095
  "svg",
2084
2096
  {
@@ -2092,13 +2104,13 @@ function Et() {
2092
2104
  strokeLinejoin: "round",
2093
2105
  "aria-hidden": "true",
2094
2106
  children: [
2095
- /* @__PURE__ */ c("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2096
- /* @__PURE__ */ c("polyline", { points: "3 3 3 8 8 8" })
2107
+ /* @__PURE__ */ d("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
2108
+ /* @__PURE__ */ d("polyline", { points: "3 3 3 8 8 8" })
2097
2109
  ]
2098
2110
  }
2099
2111
  );
2100
2112
  }
2101
- function Ot({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
2113
+ function Lt({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
2102
2114
  const o = f(
2103
2115
  (l) => {
2104
2116
  (l.key === "r" || l.key === "R") && (l.preventDefault(), n());
@@ -2112,12 +2124,12 @@ function Ot({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
2112
2124
  "data-tuning-row": e.key,
2113
2125
  onKeyDown: o,
2114
2126
  children: [
2115
- /* @__PURE__ */ c("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2127
+ /* @__PURE__ */ d("label", { className: "gloss-dev-tuning-panel__label", htmlFor: `gloss-dtp-${e.key}`, children: e.label }),
2116
2128
  /* @__PURE__ */ O("span", { className: "gloss-dev-tuning-panel__value", "aria-live": "off", children: [
2117
- Ft(t, e.step),
2129
+ Ot(t, e.step),
2118
2130
  e.unit ? ` ${e.unit}` : ""
2119
2131
  ] }),
2120
- /* @__PURE__ */ c(
2132
+ /* @__PURE__ */ d(
2121
2133
  "input",
2122
2134
  {
2123
2135
  id: `gloss-dtp-${e.key}`,
@@ -2131,21 +2143,21 @@ function Ot({ spec: e, value: t, onChange: a, onReset: n, flashing: s }) {
2131
2143
  onChange: (l) => a(Number(l.target.value))
2132
2144
  }
2133
2145
  ),
2134
- /* @__PURE__ */ c(
2146
+ /* @__PURE__ */ d(
2135
2147
  "button",
2136
2148
  {
2137
2149
  type: "button",
2138
2150
  className: "gloss-dev-tuning-panel__reset",
2139
2151
  "aria-label": `Reset ${e.label}`,
2140
2152
  onClick: n,
2141
- children: /* @__PURE__ */ c(Et, {})
2153
+ children: /* @__PURE__ */ d(At, {})
2142
2154
  }
2143
2155
  )
2144
2156
  ]
2145
2157
  }
2146
2158
  );
2147
2159
  }
2148
- function At() {
2160
+ function $t() {
2149
2161
  if (typeof process < "u" && process.env && process.env.NODE_ENV === "production" || typeof window > "u") return !1;
2150
2162
  try {
2151
2163
  return new URLSearchParams(window.location.search).has("devtune");
@@ -2153,23 +2165,23 @@ function At() {
2153
2165
  return !1;
2154
2166
  }
2155
2167
  }
2156
- function Lt(e = {}) {
2157
- return At() ? /* @__PURE__ */ c($t, {}) : null;
2168
+ function Bt(e = {}) {
2169
+ return $t() ? /* @__PURE__ */ d(Kt, {}) : null;
2158
2170
  }
2159
- Lt.displayName = "DevTuningPanel";
2160
- function $t() {
2161
- const e = Mt(), { values: t, setValue: a, resetRow: n, resetAll: s } = e, [o, l] = $(null), m = P(null), h = f((i) => {
2171
+ Bt.displayName = "DevTuningPanel";
2172
+ function Kt() {
2173
+ const e = Ft(), { values: t, setValue: a, resetRow: n, resetAll: s } = e, [o, l] = K(null), m = P(null), h = f((i) => {
2162
2174
  m.current && clearTimeout(m.current), l(i), m.current = setTimeout(() => {
2163
2175
  l(null), m.current = null;
2164
2176
  }, 200);
2165
2177
  }, []), u = f(
2166
- (i, d) => {
2167
- a(i, d), i === "snapInPx" && d > t.snapOutPx && (a("snapOutPx", d), h("snapOutPx"));
2178
+ (i, c) => {
2179
+ a(i, c), i === "snapInPx" && c > t.snapOutPx && (a("snapOutPx", c), h("snapOutPx"));
2168
2180
  },
2169
2181
  [a, t.snapOutPx, h]
2170
- ), D = ae(() => Pt, []), v = ze();
2182
+ ), D = ne(() => Et, []), v = Ue();
2171
2183
  return /* @__PURE__ */ O(
2172
- xe.div,
2184
+ Se.div,
2173
2185
  {
2174
2186
  className: "gloss-dev-tuning-panel",
2175
2187
  role: "region",
@@ -2186,23 +2198,23 @@ function $t() {
2186
2198
  className: "gloss-dev-tuning-panel__header",
2187
2199
  onPointerDown: (i) => v.start(i),
2188
2200
  children: [
2189
- /* @__PURE__ */ c("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2190
- /* @__PURE__ */ c("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2201
+ /* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2202
+ /* @__PURE__ */ d("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2191
2203
  ]
2192
2204
  }
2193
2205
  ),
2194
- /* @__PURE__ */ c("div", { className: "gloss-dev-tuning-panel__body", children: D.map((i) => /* @__PURE__ */ c(
2195
- Ot,
2206
+ /* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__body", children: D.map((i) => /* @__PURE__ */ d(
2207
+ Lt,
2196
2208
  {
2197
2209
  spec: i,
2198
2210
  value: t[i.key],
2199
- onChange: (d) => u(i.key, d),
2211
+ onChange: (c) => u(i.key, c),
2200
2212
  onReset: () => n(i.key),
2201
2213
  flashing: o === i.key
2202
2214
  },
2203
2215
  i.key
2204
2216
  )) }),
2205
- /* @__PURE__ */ c("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ c(
2217
+ /* @__PURE__ */ d("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ d(
2206
2218
  "button",
2207
2219
  {
2208
2220
  type: "button",
@@ -2223,22 +2235,22 @@ const U = {
2223
2235
  "gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
2224
2236
  "gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
2225
2237
  };
2226
- function Bt({
2238
+ function Wt({
2227
2239
  message: e,
2228
2240
  primaryAction: t,
2229
2241
  onDismiss: a,
2230
2242
  anchorEl: n,
2231
2243
  anchorSelector: s
2232
2244
  }) {
2233
- const [o, l] = K.useState(null), m = K.useMemo(
2245
+ const [o, l] = W.useState(null), m = W.useMemo(
2234
2246
  () => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
2235
2247
  []
2236
2248
  );
2237
- K.useEffect(() => {
2249
+ W.useEffect(() => {
2238
2250
  !n && !s && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
2239
2251
  "[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
2240
2252
  );
2241
- }, [n, s]), K.useLayoutEffect(() => {
2253
+ }, [n, s]), W.useLayoutEffect(() => {
2242
2254
  let u = null;
2243
2255
  if (n ? u = n : s && (u = document.querySelector(s)), u) {
2244
2256
  const D = u.getBoundingClientRect();
@@ -2258,9 +2270,9 @@ function Bt({
2258
2270
  "aria-live": "polite",
2259
2271
  "data-reduced-motion": m ? "true" : void 0,
2260
2272
  children: [
2261
- /* @__PURE__ */ c("span", { className: U["gloss-inline-nudge__message"], children: e }),
2273
+ /* @__PURE__ */ d("span", { className: U["gloss-inline-nudge__message"], children: e }),
2262
2274
  /* @__PURE__ */ O("div", { className: U["gloss-inline-nudge__actions"], children: [
2263
- /* @__PURE__ */ c(
2275
+ /* @__PURE__ */ d(
2264
2276
  "button",
2265
2277
  {
2266
2278
  type: "button",
@@ -2269,7 +2281,7 @@ function Bt({
2269
2281
  children: t.label
2270
2282
  }
2271
2283
  ),
2272
- /* @__PURE__ */ c(
2284
+ /* @__PURE__ */ d(
2273
2285
  "button",
2274
2286
  {
2275
2287
  type: "button",
@@ -2284,25 +2296,25 @@ function Bt({
2284
2296
  }
2285
2297
  );
2286
2298
  }
2287
- Bt.displayName = "InlineNudge";
2288
- function fe(e) {
2299
+ Wt.displayName = "InlineNudge";
2300
+ function he(e) {
2289
2301
  return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
2290
2302
  }
2291
- function Kt(e, t, a) {
2303
+ function Gt(e, t, a) {
2292
2304
  if (a <= t) {
2293
- const l = e[0], m = l ? fe(l) : "#888";
2305
+ const l = e[0], m = l ? he(l) : "#888";
2294
2306
  return `linear-gradient(to right, ${m}, ${m})`;
2295
2307
  }
2296
2308
  const n = a - t, o = [...e].sort((l, m) => l.value - m.value).map((l) => {
2297
2309
  const m = (l.value - t) / n * 100;
2298
- return `${fe(l)} ${m.toFixed(2)}%`;
2310
+ return `${he(l)} ${m.toFixed(2)}%`;
2299
2311
  });
2300
2312
  return o.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : o.length === 1 ? `linear-gradient(to right, ${o[0]}, ${o[0]})` : `linear-gradient(to right, ${o.join(", ")})`;
2301
2313
  }
2302
- function Wt(e) {
2314
+ function Ht(e) {
2303
2315
  return e.map((t) => `${t.id}:${t.value}`).join("|");
2304
2316
  }
2305
- function Gt({
2317
+ function Vt({
2306
2318
  stops: e,
2307
2319
  onChange: t,
2308
2320
  min: a = 0,
@@ -2315,15 +2327,15 @@ function Gt({
2315
2327
  ), 0.01) : s, m = f(
2316
2328
  (r) => Math.round(r / l) * l,
2317
2329
  [l]
2318
- ), h = P(null), [u, D] = $(null), [v, i] = $(e), d = Wt(e), y = P(d);
2330
+ ), h = P(null), [u, D] = K(null), [v, i] = K(e), c = Ht(e), y = P(c);
2319
2331
  L(() => {
2320
- y.current !== d && (y.current = d, !u && i(e));
2321
- }, [d, e, u]);
2322
- const I = ae(() => Kt(v, a, n), [v, a, n]), p = f(
2332
+ y.current !== c && (y.current = c, !u && i(e));
2333
+ }, [c, e, u]);
2334
+ const I = ne(() => Gt(v, a, n), [v, a, n]), p = f(
2323
2335
  (r) => {
2324
2336
  if (!h.current) return a;
2325
- const g = h.current.getBoundingClientRect(), b = g.width || 1, x = Math.max(0, Math.min(1, (r - g.left) / b)), w = a + x * (n - a);
2326
- return m(w);
2337
+ const g = h.current.getBoundingClientRect(), b = g.width || 1, x = Math.max(0, Math.min(1, (r - g.left) / b)), k = a + x * (n - a);
2338
+ return m(k);
2327
2339
  },
2328
2340
  [a, n, m]
2329
2341
  );
@@ -2332,7 +2344,7 @@ function Gt({
2332
2344
  `ThresholdRamp: max (${n}) must be greater than min (${a}); rendering degenerate strip.`
2333
2345
  );
2334
2346
  }, [a, n]);
2335
- const S = f(
2347
+ const T = f(
2336
2348
  (r, g) => {
2337
2349
  const b = v.find((x) => x.id === g);
2338
2350
  o || b?.disabled || (r.preventDefault(), D(g));
@@ -2346,54 +2358,54 @@ function Gt({
2346
2358
  const r = (b) => {
2347
2359
  const x = p(b.clientX);
2348
2360
  i(
2349
- (w) => w.map((T) => T.id === u ? { ...T, value: x } : T)
2361
+ (k) => k.map((M) => M.id === u ? { ...M, value: x } : M)
2350
2362
  );
2351
2363
  }, g = (b) => {
2352
- const x = p(b.clientX), w = R.current.map(
2353
- (T) => T.id === u ? { ...T, value: x } : T
2364
+ const x = p(b.clientX), k = R.current.map(
2365
+ (M) => M.id === u ? { ...M, value: x } : M
2354
2366
  );
2355
- i(w), D(null), C.current(w);
2367
+ i(k), D(null), C.current(k);
2356
2368
  };
2357
2369
  return window.addEventListener("pointermove", r), window.addEventListener("pointerup", g), window.addEventListener("pointercancel", g), () => {
2358
2370
  window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", g), window.removeEventListener("pointercancel", g);
2359
2371
  };
2360
2372
  }, [u, p]);
2361
- const _ = n - a > 0 ? n - a : 1, k = f(
2373
+ const _ = n - a > 0 ? n - a : 1, N = f(
2362
2374
  (r, g) => {
2363
2375
  if (o || g.disabled) return;
2364
2376
  const b = n - a;
2365
2377
  if (b <= 0) return;
2366
2378
  const x = r.shiftKey ? b / 20 : b / 100;
2367
- let w = g.value;
2379
+ let k = g.value;
2368
2380
  switch (r.key) {
2369
2381
  case "ArrowRight":
2370
2382
  case "ArrowUp":
2371
- w = g.value + x;
2383
+ k = g.value + x;
2372
2384
  break;
2373
2385
  case "ArrowLeft":
2374
2386
  case "ArrowDown":
2375
- w = g.value - x;
2387
+ k = g.value - x;
2376
2388
  break;
2377
2389
  case "Home":
2378
- w = a;
2390
+ k = a;
2379
2391
  break;
2380
2392
  case "End":
2381
- w = n;
2393
+ k = n;
2382
2394
  break;
2383
2395
  default:
2384
2396
  return;
2385
2397
  }
2386
2398
  r.preventDefault();
2387
- const T = Math.max(a, Math.min(n, w)), M = m(T);
2388
- if (M === g.value) return;
2389
- const H = v.map(
2390
- (z) => z.id === g.id ? { ...z, value: M } : z
2399
+ const M = Math.max(a, Math.min(n, k)), S = m(M);
2400
+ if (S === g.value) return;
2401
+ const $ = v.map(
2402
+ (G) => G.id === g.id ? { ...G, value: S } : G
2391
2403
  );
2392
- i(H), t(H);
2404
+ i($), t($);
2393
2405
  },
2394
2406
  [o, a, n, v, t, m]
2395
2407
  );
2396
- return /* @__PURE__ */ c("div", { className: "gloss-threshold-ramp", "data-disabled": o || void 0, children: /* @__PURE__ */ c(
2408
+ return /* @__PURE__ */ d("div", { className: "gloss-threshold-ramp", "data-disabled": o || void 0, children: /* @__PURE__ */ d(
2397
2409
  "div",
2398
2410
  {
2399
2411
  ref: h,
@@ -2401,18 +2413,18 @@ function Gt({
2401
2413
  style: { background: I },
2402
2414
  children: v.map((r) => {
2403
2415
  const g = (r.value - a) / _ * 100;
2404
- return /* @__PURE__ */ c(
2416
+ return /* @__PURE__ */ d(
2405
2417
  "span",
2406
2418
  {
2407
2419
  className: "gloss-threshold-ramp__stop",
2408
2420
  style: {
2409
2421
  left: `${g}%`,
2410
- color: fe(r)
2422
+ color: he(r)
2411
2423
  },
2412
2424
  "data-disabled": r.disabled || void 0,
2413
2425
  "data-dragging": u === r.id || void 0,
2414
- onPointerDown: (b) => S(b, r.id),
2415
- onKeyDown: (b) => k(b, r),
2426
+ onPointerDown: (b) => T(b, r.id),
2427
+ onKeyDown: (b) => N(b, r),
2416
2428
  "aria-label": r.label ?? `Stop at ${r.value}`,
2417
2429
  role: "slider",
2418
2430
  "aria-valuenow": r.value,
@@ -2427,13 +2439,13 @@ function Gt({
2427
2439
  }
2428
2440
  ) });
2429
2441
  }
2430
- Gt.displayName = "ThresholdRamp";
2431
- const Pe = Ge(null);
2432
- function Vt() {
2433
- return Ve(Pe);
2442
+ Vt.displayName = "ThresholdRamp";
2443
+ const Fe = Ve(null);
2444
+ function zt() {
2445
+ return ze(Fe);
2434
2446
  }
2435
- function Ht({ option: e }) {
2436
- const t = Vt(), a = t?.isSelected(e.value) ?? !1, n = e.disabled || t?.groupDisabled, s = f(() => {
2447
+ function Zt({ option: e }) {
2448
+ const t = zt(), a = t?.isSelected(e.value) ?? !1, n = e.disabled || t?.groupDisabled, s = f(() => {
2437
2449
  n || t?.select(e.value);
2438
2450
  }, [n, t, e.value]), o = f(
2439
2451
  (u) => {
@@ -2441,7 +2453,7 @@ function Ht({ option: e }) {
2441
2453
  },
2442
2454
  [n, t, e.value]
2443
2455
  ), l = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", m = t?.firstFocusableValue === e.value, h = n ? -1 : m ? 0 : -1;
2444
- return /* @__PURE__ */ c(
2456
+ return /* @__PURE__ */ d(
2445
2457
  "button",
2446
2458
  {
2447
2459
  ref: (u) => t?.registerRef(e.value, u),
@@ -2462,7 +2474,7 @@ function Ht({ option: e }) {
2462
2474
  }
2463
2475
  );
2464
2476
  }
2465
- function zt({
2477
+ function Ut({
2466
2478
  swatches: e,
2467
2479
  value: t,
2468
2480
  defaultValue: a,
@@ -2470,7 +2482,7 @@ function zt({
2470
2482
  disabled: s = !1,
2471
2483
  name: o
2472
2484
  }) {
2473
- const l = t !== void 0, [m, h] = $(a), u = l ? t : m, D = f(
2485
+ const l = t !== void 0, [m, h] = K(a), u = l ? t : m, D = f(
2474
2486
  (C) => {
2475
2487
  l || h(C), n?.(C);
2476
2488
  },
@@ -2478,33 +2490,33 @@ function zt({
2478
2490
  ), v = f(
2479
2491
  (C) => u === C,
2480
2492
  [u]
2481
- ), i = P(/* @__PURE__ */ new Map()), d = f((C, _) => {
2493
+ ), i = P(/* @__PURE__ */ new Map()), c = f((C, _) => {
2482
2494
  _ ? i.current.set(C, _) : i.current.delete(C);
2483
2495
  }, []), y = e.filter((C) => !C.disabled && !s), I = y.find((C) => C.value === u)?.value ?? y[0]?.value, p = f((C) => {
2484
2496
  const _ = i.current.get(C);
2485
2497
  _ && _.focus();
2486
- }, []), S = f(
2498
+ }, []), T = f(
2487
2499
  (C, _) => {
2488
2500
  if (s) return;
2489
- const k = e.filter((x) => !x.disabled);
2490
- if (k.length === 0) return;
2491
- const r = k.findIndex((x) => x.value === _);
2501
+ const N = e.filter((x) => !x.disabled);
2502
+ if (N.length === 0) return;
2503
+ const r = N.findIndex((x) => x.value === _);
2492
2504
  if (r === -1) return;
2493
2505
  let g = r;
2494
2506
  switch (C.key) {
2495
2507
  case "ArrowRight":
2496
2508
  case "ArrowDown":
2497
- g = (r + 1) % k.length;
2509
+ g = (r + 1) % N.length;
2498
2510
  break;
2499
2511
  case "ArrowLeft":
2500
2512
  case "ArrowUp":
2501
- g = (r - 1 + k.length) % k.length;
2513
+ g = (r - 1 + N.length) % N.length;
2502
2514
  break;
2503
2515
  case "Home":
2504
2516
  g = 0;
2505
2517
  break;
2506
2518
  case "End":
2507
- g = k.length - 1;
2519
+ g = N.length - 1;
2508
2520
  break;
2509
2521
  case " ":
2510
2522
  case "Enter":
@@ -2514,7 +2526,7 @@ function zt({
2514
2526
  return;
2515
2527
  }
2516
2528
  C.preventDefault();
2517
- const b = k[g].value;
2529
+ const b = N[g].value;
2518
2530
  p(b), D(b);
2519
2531
  },
2520
2532
  [s, e, D, p]
@@ -2524,11 +2536,11 @@ function zt({
2524
2536
  isSelected: v,
2525
2537
  groupDisabled: s,
2526
2538
  name: o,
2527
- registerRef: d,
2539
+ registerRef: c,
2528
2540
  firstFocusableValue: I,
2529
- onKeyNav: S
2541
+ onKeyNav: T
2530
2542
  };
2531
- return /* @__PURE__ */ c(Pe.Provider, { value: R, children: /* @__PURE__ */ c(
2543
+ return /* @__PURE__ */ d(Fe.Provider, { value: R, children: /* @__PURE__ */ d(
2532
2544
  "div",
2533
2545
  {
2534
2546
  className: "gloss-preset-swatch-row",
@@ -2536,37 +2548,37 @@ function zt({
2536
2548
  "aria-label": o,
2537
2549
  "aria-disabled": s,
2538
2550
  "data-disabled": s || void 0,
2539
- children: e.map((C) => /* @__PURE__ */ c(Ht, { option: C }, C.value))
2551
+ children: e.map((C) => /* @__PURE__ */ d(Zt, { option: C }, C.value))
2540
2552
  }
2541
2553
  ) });
2542
2554
  }
2543
- zt.displayName = "PresetSwatchRow";
2555
+ Ut.displayName = "PresetSwatchRow";
2544
2556
  function be(e, t) {
2545
2557
  for (const a of e)
2546
2558
  if (a.items.some((n) => n.id === t))
2547
2559
  return a.zoneKey;
2548
2560
  return null;
2549
2561
  }
2550
- function ke(e, t) {
2562
+ function xe(e, t) {
2551
2563
  const a = e.find((n) => n.zoneKey === t);
2552
2564
  return a ? a.zoneKey : be(e, t);
2553
2565
  }
2554
- function Zt(e, t, a) {
2566
+ function Yt(e, t, a) {
2555
2567
  const n = [...e], [s] = n.splice(t, 1);
2556
2568
  return n.splice(a, 0, s), n;
2557
2569
  }
2558
- function Ut(e) {
2570
+ function qt(e) {
2559
2571
  return e.map((t) => `${t.zoneKey}:${t.items.map((a) => a.id).join(",")}`).join("|");
2560
2572
  }
2561
- function Yt(e) {
2562
- const [t, a] = $(
2573
+ function jt(e) {
2574
+ const [t, a] = K(
2563
2575
  () => e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2564
2576
  `useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
2565
2577
  ), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
2566
- ), [n, s] = $(null), [o, l] = $(null), m = P(null), h = P(e.onZoneChange);
2578
+ ), [n, s] = K(null), [o, l] = K(null), m = P(null), h = P(e.onZoneChange);
2567
2579
  h.current = e.onZoneChange;
2568
- const u = ae(
2569
- () => Ut(e.zones),
2580
+ const u = ne(
2581
+ () => qt(e.zones),
2570
2582
  [e.zones]
2571
2583
  ), D = P(u);
2572
2584
  L(() => {
@@ -2578,12 +2590,12 @@ function Yt(e) {
2578
2590
  }, [u, e.zones, n]);
2579
2591
  const v = f(
2580
2592
  (p) => {
2581
- const S = p.active.id;
2593
+ const T = p.active.id;
2582
2594
  let R = null, C = null;
2583
2595
  for (const _ of t) {
2584
- const k = _.items.find((r) => r.id === S);
2585
- if (k) {
2586
- R = k, C = _.zoneKey;
2596
+ const N = _.items.find((r) => r.id === T);
2597
+ if (N) {
2598
+ R = N, C = _.zoneKey;
2587
2599
  break;
2588
2600
  }
2589
2601
  }
@@ -2596,49 +2608,49 @@ function Yt(e) {
2596
2608
  l(m.current);
2597
2609
  return;
2598
2610
  }
2599
- const S = ke(t, p.over.id);
2600
- l(S);
2611
+ const T = xe(t, p.over.id);
2612
+ l(T);
2601
2613
  },
2602
2614
  [t]
2603
- ), d = f(
2615
+ ), c = f(
2604
2616
  (p) => {
2605
- const { active: S, over: R } = p, C = () => {
2617
+ const { active: T, over: R } = p, C = () => {
2606
2618
  m.current = null, s(null), l(null);
2607
2619
  };
2608
2620
  if (!R) {
2609
2621
  C();
2610
2622
  return;
2611
2623
  }
2612
- const _ = be(t, S.id), k = ke(t, R.id);
2613
- if (!_ || !k) {
2624
+ const _ = be(t, T.id), N = xe(t, R.id);
2625
+ if (!_ || !N) {
2614
2626
  C();
2615
2627
  return;
2616
2628
  }
2617
2629
  let r = t.map((g) => ({ ...g, items: [...g.items] }));
2618
- if (_ === k) {
2619
- const g = r.findIndex((M) => M.zoneKey === _), b = r[g], x = b.items.findIndex((M) => M.id === S.id), w = b.items.findIndex((M) => M.id === R.id), T = w >= 0 ? w : Math.max(0, b.items.length - 1);
2630
+ if (_ === N) {
2631
+ const g = r.findIndex((S) => S.zoneKey === _), b = r[g], x = b.items.findIndex((S) => S.id === T.id), k = b.items.findIndex((S) => S.id === R.id), M = k >= 0 ? k : Math.max(0, b.items.length - 1);
2620
2632
  r[g] = {
2621
2633
  ...b,
2622
- items: Zt(b.items, x, T)
2634
+ items: Yt(b.items, x, M)
2623
2635
  };
2624
2636
  } else {
2625
- const g = r.findIndex((B) => B.zoneKey === _), b = r.findIndex((B) => B.zoneKey === k), x = r[g], w = r[b], T = x.items.find((B) => B.id === S.id);
2626
- if (!T) {
2637
+ const g = r.findIndex((B) => B.zoneKey === _), b = r.findIndex((B) => B.zoneKey === N), x = r[g], k = r[b], M = x.items.find((B) => B.id === T.id);
2638
+ if (!M) {
2627
2639
  C();
2628
2640
  return;
2629
2641
  }
2630
- const M = x.items.filter((B) => B.id !== S.id), H = w.items.findIndex((B) => B.id === R.id), z = H >= 0 ? H : w.items.length;
2631
- let Z = M, G = [...w.items];
2632
- if (w.maxItems !== void 0 && G.length >= w.maxItems) {
2633
- const B = G[G.length - 1];
2634
- G = G.slice(0, w.maxItems - 1), Z = [...M, B];
2642
+ const S = x.items.filter((B) => B.id !== T.id), $ = k.items.findIndex((B) => B.id === R.id), G = $ >= 0 ? $ : k.items.length;
2643
+ let X = S, V = [...k.items];
2644
+ if (k.maxItems !== void 0 && V.length >= k.maxItems) {
2645
+ const B = V[V.length - 1];
2646
+ V = V.slice(0, k.maxItems - 1), X = [...S, B];
2635
2647
  }
2636
- const Q = Math.min(z, G.length), q = [
2637
- ...G.slice(0, Q),
2638
- T,
2639
- ...G.slice(Q)
2648
+ const Z = Math.min(G, V.length), oe = [
2649
+ ...V.slice(0, Z),
2650
+ M,
2651
+ ...V.slice(Z)
2640
2652
  ];
2641
- r[g] = { ...x, items: Z }, r[b] = { ...w, items: q };
2653
+ r[g] = { ...x, items: X }, r[b] = { ...k, items: oe };
2642
2654
  }
2643
2655
  a(r), h.current?.(r), C();
2644
2656
  },
@@ -2651,11 +2663,11 @@ function Yt(e) {
2651
2663
  []
2652
2664
  ), I = f(
2653
2665
  (p) => {
2654
- const S = be(t, p.id) ?? "";
2666
+ const T = be(t, p.id) ?? "";
2655
2667
  return {
2656
2668
  id: p.id,
2657
2669
  "data-item-id": p.id,
2658
- "data-zone-key": S
2670
+ "data-zone-key": T
2659
2671
  };
2660
2672
  },
2661
2673
  [t]
@@ -2668,11 +2680,11 @@ function Yt(e) {
2668
2680
  getItemProps: I,
2669
2681
  handleDragStart: v,
2670
2682
  handleDragOver: i,
2671
- handleDragEnd: d
2683
+ handleDragEnd: c
2672
2684
  };
2673
2685
  }
2674
- let te = null, re = null, ue = !1;
2675
- const qt = [
2686
+ let ee = null, re = null, me = !1;
2687
+ const Xt = [
2676
2688
  "DndContext",
2677
2689
  "DragOverlay",
2678
2690
  "useSensors",
@@ -2681,22 +2693,22 @@ const qt = [
2681
2693
  "PointerSensor",
2682
2694
  "KeyboardSensor",
2683
2695
  "closestCenter"
2684
- ], jt = [
2696
+ ], Qt = [
2685
2697
  "SortableContext",
2686
2698
  "useSortable",
2687
2699
  "verticalListSortingStrategy"
2688
2700
  ];
2689
- function Xt(e, t) {
2701
+ function Jt(e, t) {
2690
2702
  const a = [], n = e ?? {};
2691
- for (const o of qt)
2703
+ for (const o of Xt)
2692
2704
  n[o] === void 0 && a.push(`@dnd-kit/core:${o}`);
2693
2705
  const s = t ?? {};
2694
- for (const o of jt)
2706
+ for (const o of Qt)
2695
2707
  s[o] === void 0 && a.push(`@dnd-kit/sortable:${o}`);
2696
2708
  return a.length === 0 ? { ok: !0 } : { ok: !1, missing: a };
2697
2709
  }
2698
- function Qt() {
2699
- return te ? Promise.resolve(te) : ue ? Promise.resolve(null) : re || (re = (async () => {
2710
+ function en() {
2711
+ return ee ? Promise.resolve(ee) : me ? Promise.resolve(null) : re || (re = (async () => {
2700
2712
  try {
2701
2713
  const [e, t, a] = await Promise.all([
2702
2714
  import("@dnd-kit/core"),
@@ -2704,31 +2716,31 @@ function Qt() {
2704
2716
  import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
2705
2717
  "SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
2706
2718
  ), {}))
2707
- ]), n = Xt(e, t);
2708
- return n.ok ? (te = {
2719
+ ]), n = Jt(e, t);
2720
+ return n.ok ? (ee = {
2709
2721
  core: e,
2710
2722
  sortable: t,
2711
2723
  utilities: a
2712
- }, te) : (ue = !0, process.env.NODE_ENV !== "production" && console.error(
2724
+ }, ee) : (me = !0, process.env.NODE_ENV !== "production" && console.error(
2713
2725
  `SortableZones: @dnd-kit shape mismatch — missing exports: ${n.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
2714
2726
  ), null);
2715
2727
  } catch {
2716
- return ue = !0, null;
2728
+ return me = !0, null;
2717
2729
  }
2718
2730
  })(), re);
2719
2731
  }
2720
- function Jt(e) {
2721
- const { zones: t, onZoneChange: a, renderZone: n, renderItem: s, renderDragOverlay: o } = e, l = Yt({ zones: t, onZoneChange: a }), [m, h] = K.useState(te);
2722
- return K.useEffect(() => {
2732
+ function tn(e) {
2733
+ const { zones: t, onZoneChange: a, renderZone: n, renderItem: s, renderDragOverlay: o } = e, l = jt({ zones: t, onZoneChange: a }), [m, h] = W.useState(ee);
2734
+ return W.useEffect(() => {
2723
2735
  if (m) return;
2724
2736
  let u = !0;
2725
- return Qt().then((D) => {
2737
+ return en().then((D) => {
2726
2738
  u && h(D);
2727
2739
  }), () => {
2728
2740
  u = !1;
2729
2741
  };
2730
- }, [m]), m ? /* @__PURE__ */ c(
2731
- Fe,
2742
+ }, [m]), m ? /* @__PURE__ */ d(
2743
+ Ee,
2732
2744
  {
2733
2745
  state: l,
2734
2746
  modules: m,
@@ -2736,23 +2748,23 @@ function Jt(e) {
2736
2748
  renderItem: s,
2737
2749
  renderDragOverlay: o
2738
2750
  }
2739
- ) : /* @__PURE__ */ c("div", { "data-sortable-zones-passive": "true", children: l.zones.map((u) => {
2740
- const D = u.items.map((v) => /* @__PURE__ */ c(K.Fragment, { children: s(v) }, v.id));
2741
- return /* @__PURE__ */ c("div", { ...l.getZoneProps(u.zoneKey), children: n(u.zoneKey, u.items, D) }, u.zoneKey);
2751
+ ) : /* @__PURE__ */ d("div", { "data-sortable-zones-passive": "true", children: l.zones.map((u) => {
2752
+ const D = u.items.map((v) => /* @__PURE__ */ d(W.Fragment, { children: s(v) }, v.id));
2753
+ return /* @__PURE__ */ d("div", { ...l.getZoneProps(u.zoneKey), children: n(u.zoneKey, u.items, D) }, u.zoneKey);
2742
2754
  }) });
2743
2755
  }
2744
- Jt.displayName = "SortableZones";
2745
- function Fe({
2756
+ tn.displayName = "SortableZones";
2757
+ function Ee({
2746
2758
  state: e,
2747
2759
  modules: t,
2748
2760
  renderZone: a,
2749
2761
  renderItem: n,
2750
2762
  renderDragOverlay: s
2751
2763
  }) {
2752
- const { core: o, sortable: l, utilities: m } = t, { DndContext: h, DragOverlay: u, useSensors: D, useSensor: v, useDroppable: i, PointerSensor: d, KeyboardSensor: y, closestCenter: I } = o, { SortableContext: p, verticalListSortingStrategy: S } = l, R = D(
2753
- v(d, { activationConstraint: { distance: 5 } }),
2764
+ const { core: o, sortable: l, utilities: m } = t, { DndContext: h, DragOverlay: u, useSensors: D, useSensor: v, useDroppable: i, PointerSensor: c, KeyboardSensor: y, closestCenter: I } = o, { SortableContext: p, verticalListSortingStrategy: T } = l, R = D(
2765
+ v(c, { activationConstraint: { distance: 5 } }),
2754
2766
  v(y)
2755
- ), C = h, _ = u, k = p;
2767
+ ), C = h, _ = u, N = p;
2756
2768
  return /* @__PURE__ */ O(
2757
2769
  C,
2758
2770
  {
@@ -2763,8 +2775,8 @@ function Fe({
2763
2775
  onDragEnd: e.handleDragEnd,
2764
2776
  children: [
2765
2777
  e.zones.map((r) => {
2766
- const g = r.items.map((x) => x.id), b = r.items.map((x) => /* @__PURE__ */ c(
2767
- Ee,
2778
+ const g = r.items.map((x) => x.id), b = r.items.map((x) => /* @__PURE__ */ d(
2779
+ Oe,
2768
2780
  {
2769
2781
  id: x.id,
2770
2782
  useSortable: l.useSortable,
@@ -2773,341 +2785,341 @@ function Fe({
2773
2785
  },
2774
2786
  x.id
2775
2787
  ));
2776
- return /* @__PURE__ */ c(
2777
- Oe,
2788
+ return /* @__PURE__ */ d(
2789
+ Ae,
2778
2790
  {
2779
2791
  zoneKey: r.zoneKey,
2780
2792
  zoneProps: e.getZoneProps(r.zoneKey),
2781
2793
  useDroppable: i,
2782
- children: /* @__PURE__ */ c(k, { items: g, strategy: S, children: a(r.zoneKey, r.items, b) })
2794
+ children: /* @__PURE__ */ d(N, { items: g, strategy: T, children: a(r.zoneKey, r.items, b) })
2783
2795
  },
2784
2796
  r.zoneKey
2785
2797
  );
2786
2798
  }),
2787
- /* @__PURE__ */ c(_, { children: e.activeItem ? s?.(e.activeItem) ?? n(e.activeItem) : null })
2799
+ /* @__PURE__ */ d(_, { children: e.activeItem ? s?.(e.activeItem) ?? n(e.activeItem) : null })
2788
2800
  ]
2789
2801
  }
2790
2802
  );
2791
2803
  }
2792
- Fe.displayName = "SortableZonesInner";
2793
- function Ee({ id: e, useSortable: t, cssHelper: a, children: n }) {
2804
+ Ee.displayName = "SortableZonesInner";
2805
+ function Oe({ id: e, useSortable: t, cssHelper: a, children: n }) {
2794
2806
  const { attributes: s, listeners: o, setNodeRef: l, transform: m, transition: h, isDragging: u } = t({ id: e }), D = {
2795
2807
  transform: a?.Transform?.toString(m) ?? void 0,
2796
2808
  transition: h,
2797
2809
  opacity: u ? 0.5 : 1
2798
2810
  };
2799
- return /* @__PURE__ */ c("div", { ref: l, style: D, "data-sortable-item-id": e, ...s, ...o, children: n });
2811
+ return /* @__PURE__ */ d("div", { ref: l, style: D, "data-sortable-item-id": e, ...s, ...o, children: n });
2800
2812
  }
2801
- Ee.displayName = "SortableItem";
2802
- function Oe({
2813
+ Oe.displayName = "SortableItem";
2814
+ function Ae({
2803
2815
  zoneKey: e,
2804
2816
  zoneProps: t,
2805
2817
  useDroppable: a,
2806
2818
  children: n
2807
2819
  }) {
2808
2820
  const { setNodeRef: s, isOver: o } = a({ id: e });
2809
- return /* @__PURE__ */ c("div", { ref: s, "data-zone-is-over": o || void 0, ...t, children: n });
2821
+ return /* @__PURE__ */ d("div", { ref: s, "data-zone-is-over": o || void 0, ...t, children: n });
2810
2822
  }
2811
- Oe.displayName = "ZoneDroppable";
2812
- const en = K.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
2823
+ Ae.displayName = "ZoneDroppable";
2824
+ const nn = W.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
2813
2825
  const s = { ...a };
2814
- return delete s.className, delete s.style, /* @__PURE__ */ c("div", { ref: n, className: "gloss-container-toolbar", role: "toolbar", ...s, children: /* @__PURE__ */ c(he, { region: "toolbar", density: e, children: t }) });
2826
+ return delete s.className, delete s.style, /* @__PURE__ */ d("div", { ref: n, className: "gloss-container-toolbar", role: "toolbar", ...s, children: /* @__PURE__ */ d(ve, { region: "toolbar", density: e, children: t }) });
2815
2827
  });
2816
- en.displayName = "ContainerToolbar";
2817
- const tn = K.forwardRef(({ legend: e, description: t, density: a = "default", children: n, ...s }, o) => {
2828
+ nn.displayName = "ContainerToolbar";
2829
+ const an = W.forwardRef(({ legend: e, description: t, density: a = "default", children: n, ...s }, o) => {
2818
2830
  const l = { ...s };
2819
2831
  return delete l.className, delete l.style, /* @__PURE__ */ O("fieldset", { ref: o, className: "gloss-container-form-section", ...l, children: [
2820
- e && /* @__PURE__ */ c("legend", { className: "gloss-container-form-section__legend", children: e }),
2821
- t && /* @__PURE__ */ c("p", { className: "gloss-container-form-section__description", children: t }),
2822
- /* @__PURE__ */ c(he, { region: "form-section", density: a, children: n })
2832
+ e && /* @__PURE__ */ d("legend", { className: "gloss-container-form-section__legend", children: e }),
2833
+ t && /* @__PURE__ */ d("p", { className: "gloss-container-form-section__description", children: t }),
2834
+ /* @__PURE__ */ d(ve, { region: "form-section", density: a, children: n })
2823
2835
  ] });
2824
2836
  });
2825
- tn.displayName = "ContainerFormSection";
2826
- const nn = K.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
2837
+ an.displayName = "ContainerFormSection";
2838
+ const rn = W.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
2827
2839
  const s = { ...a };
2828
- return delete s.className, delete s.style, /* @__PURE__ */ c("div", { ref: n, className: "gloss-container-table", ...s, children: /* @__PURE__ */ c(he, { region: "table", density: e, children: t }) });
2840
+ return delete s.className, delete s.style, /* @__PURE__ */ d("div", { ref: n, className: "gloss-container-table", ...s, children: /* @__PURE__ */ d(ve, { region: "table", density: e, children: t }) });
2829
2841
  });
2830
- nn.displayName = "ContainerTable";
2842
+ rn.displayName = "ContainerTable";
2831
2843
  export {
2832
- ia as Accordion,
2833
- la as AccordionContent,
2834
- da as AccordionItem,
2835
- ca as AccordionTrigger,
2836
- ua as ActionStrip,
2837
- ma as Actionable,
2838
- pa as AddressGroup,
2839
- ga as AddressSelect,
2840
- fa as AsyncLoader,
2841
- ba as Autocomplete,
2842
- ha as Badge,
2843
- va as BarChartCard,
2844
- ya as BarsBg,
2845
- wa as Button,
2846
- Da as ButtonGroup,
2847
- Ca as ButtonGroupContext,
2848
- Na as Card,
2849
- ka as CardActions,
2850
- xa as CardBack,
2851
- Sa as CardBody,
2852
- Ta as CardFooter,
2853
- _a as CardHeader,
2854
- Ia as CardMedia,
2855
- Ra as CardShell,
2856
- Ma as CardSubtitle,
2857
- Pa as CardTitle,
2858
- Fa as ChartControlBar,
2859
- Ea as Checkbox,
2860
- Oa as CheckboxGroup,
2861
- Aa as Chip,
2862
- La as ColorPicker,
2863
- $a as ComparisonCard,
2864
- Ba as ContactForm,
2865
- Ka as ContainerCard,
2866
- Wa as ContainerCardActions,
2867
- Ga as ContainerCardBody,
2868
- Va as ContainerCardFooter,
2869
- Ha as ContainerCardHeader,
2870
- za as ContainerCardMedia,
2871
- Za as ContainerCardSubtitle,
2872
- Ua as ContainerCardTitle,
2873
- Ya as ContainerDialog,
2874
- qa as ContainerDialogActions,
2875
- ja as ContainerDialogBody,
2876
- Xa as ContainerDialogHeader,
2877
- tn as ContainerFormSection,
2878
- Qa as ContainerPanel,
2879
- nn as ContainerTable,
2880
- en as ContainerToolbar,
2881
- Ja as CreditCardForm,
2882
- er as DEFAULT_FOOTER_IDS,
2883
- Io as DEFAULT_MARKET_PRESETS,
2884
- tr as DEFAULT_OVERFLOW_IDS,
2885
- Ro as DEFAULT_PINNED,
2886
- Se as DEFAULT_RESIZE_PHYSICS,
2887
- nr as DataTable,
2888
- ar as DatePicker,
2889
- rr as DateRangePicker,
2890
- sr as DestructiveModal,
2891
- Lt as DevTuningPanel,
2892
- or as DirectionCard,
2893
- ir as Dismissible,
2894
- lr as DistributionCard,
2895
- dr as DonutChart,
2896
- cr as Dropdown,
2897
- ur as ENTITY_FILTER_KEYS,
2898
- mr as ENTITY_PROFILE_ROUTES,
2899
- pr as ENTITY_TYPE_PLURAL,
2900
- it as EdgeHoverHandle,
2901
- gr as EntityPicker,
2902
- fr as EntitySearchPanel,
2903
- br as Expandable,
2904
- hr as ExpandableChip,
2905
- vr as FLIP_AND_STAGE_TIMINGS,
2906
- yr as FileUpload,
2907
- wr as FilterChip,
2908
- Dr as FilterInput,
2909
- Cr as FlipAndStageProvider,
2910
- Nr as Form,
2911
- kr as FormDialog,
2912
- xr as FormField,
2913
- Sr as FusedShape,
2914
- lt as GhostPreview,
2915
- Tr as GroupCheckbox,
2916
- _r as GroupRadio,
2917
- Ir as HighlightCard,
2918
- Rr as HybridDatePicker,
2919
- Mr as ImportWizard,
2920
- Bt as InlineNudge,
2921
- Pr as Input,
2922
- Fr as InputAddon,
2923
- Er as InputGroup,
2924
- Or as Link,
2925
- Ar as LoginForm,
2926
- Lr as MarketPresetRow,
2927
- $r as MaskPresets,
2928
- Br as MaskedInput,
2929
- Kr as Menu,
2930
- Wr as MenuDivider,
2931
- Gr as MenuGroup,
2932
- Vr as MenuItem,
2933
- Hr as MergePrompt,
2934
- zr as MetricCard,
2935
- Zr as MetricCardGrid,
2936
- _t as MetricGroupContainer,
2937
- Ur as MiniCalendar,
2938
- Yr as MultiSelect,
2939
- qr as NumberInput,
2940
- jr as ObjectArrow,
2941
- Xr as OrderFilterBar,
2942
- Mo as PERIOD_OPTIONS,
2943
- bt as PageChip,
2944
- Te as PageDropdown,
2945
- Qr as PasswordInput,
2946
- Jr as PaymentForm,
2947
- es as PaymentMethodSelect,
2948
- ts as PhoneInput,
2949
- ns as PinToMetric,
2950
- zt as PresetSwatchRow,
2951
- as as ProfileCard,
2952
- rs as ProgressCard,
2953
- ss as QuickConfigPanel,
2954
- Nt as RECONFIG_BACKSIDE_LABELS,
2955
- Po as ROLLING_OPTIONS,
2956
- os as Radio,
2957
- is as RadioGroup,
2958
- ls as RangeSlider,
2959
- ds as Rating,
2960
- St as ReconfigBacksideButtons,
2961
- cs as RegistrationForm,
2962
- us as Row1Controls,
2963
- ms as Row2FilterTray,
2964
- ps as SearchInput,
2965
- gs as SegmentCard,
2966
- fs as SegmentedControl,
2967
- bs as Select,
2968
- hs as Selectable,
2969
- vs as SimpleMetricCard,
2970
- ys as SimpleSelector,
2971
- ws as Skeleton,
2972
- Ds as SkeletonCard,
2973
- Cs as SkeletonChart,
2974
- Ns as SkeletonTable,
2975
- ks as Slider,
2976
- xs as Sortable,
2977
- Jt as SortableZones,
2978
- Ss as SparklineBg,
2979
- Ts as SplitButton,
2980
- _s as StackedGroupCard,
2981
- Is as StatusModeCard,
2982
- ot as StatusSlotChipMenu,
2983
- Rs as Stepper,
2984
- Fo as TODAY_PRESET,
2844
+ ca as Accordion,
2845
+ da as AccordionContent,
2846
+ ua as AccordionItem,
2847
+ ma as AccordionTrigger,
2848
+ pa as ActionStrip,
2849
+ ga as Actionable,
2850
+ fa as AddressGroup,
2851
+ ha as AddressSelect,
2852
+ ba as AsyncLoader,
2853
+ va as Autocomplete,
2854
+ ya as Badge,
2855
+ wa as BarChartCard,
2856
+ Da as BarsBg,
2857
+ Ca as Button,
2858
+ Na as ButtonGroup,
2859
+ ka as ButtonGroupContext,
2860
+ xa as Card,
2861
+ Sa as CardActions,
2862
+ Ta as CardBack,
2863
+ _a as CardBody,
2864
+ Ia as CardFooter,
2865
+ Ra as CardHeader,
2866
+ Ma as CardMedia,
2867
+ Pa as CardShell,
2868
+ Fa as CardSubtitle,
2869
+ Ea as CardTitle,
2870
+ Oa as ChartControlBar,
2871
+ Aa as Checkbox,
2872
+ La as CheckboxGroup,
2873
+ $a as Chip,
2874
+ Ba as ColorPicker,
2875
+ Ka as ComparisonCard,
2876
+ Wa as ContactForm,
2877
+ Ga as ContainerCard,
2878
+ Ha as ContainerCardActions,
2879
+ Va as ContainerCardBody,
2880
+ za as ContainerCardFooter,
2881
+ Za as ContainerCardHeader,
2882
+ Ua as ContainerCardMedia,
2883
+ Ya as ContainerCardSubtitle,
2884
+ qa as ContainerCardTitle,
2885
+ ja as ContainerDialog,
2886
+ Xa as ContainerDialogActions,
2887
+ Qa as ContainerDialogBody,
2888
+ Ja as ContainerDialogHeader,
2889
+ an as ContainerFormSection,
2890
+ er as ContainerPanel,
2891
+ rn as ContainerTable,
2892
+ nn as ContainerToolbar,
2893
+ tr as CreditCardForm,
2894
+ nr as DEFAULT_FOOTER_IDS,
2895
+ Mo as DEFAULT_MARKET_PRESETS,
2896
+ ar as DEFAULT_OVERFLOW_IDS,
2897
+ Po as DEFAULT_PINNED,
2898
+ Te as DEFAULT_RESIZE_PHYSICS,
2899
+ rr as DataTable,
2900
+ sr as DatePicker,
2901
+ or as DateRangePicker,
2902
+ ir as DestructiveModal,
2903
+ Bt as DevTuningPanel,
2904
+ lr as DirectionCard,
2905
+ cr as Dismissible,
2906
+ dr as DistributionCard,
2907
+ ur as DonutChart,
2908
+ mr as Dropdown,
2909
+ pr as ENTITY_FILTER_KEYS,
2910
+ gr as ENTITY_PROFILE_ROUTES,
2911
+ fr as ENTITY_TYPE_PLURAL,
2912
+ ct as EdgeHoverHandle,
2913
+ hr as EntityPicker,
2914
+ br as EntitySearchPanel,
2915
+ vr as Expandable,
2916
+ yr as ExpandableChip,
2917
+ wr as FLIP_AND_STAGE_TIMINGS,
2918
+ Dr as FileUpload,
2919
+ Cr as FilterChip,
2920
+ Nr as FilterInput,
2921
+ kr as FlipAndStageProvider,
2922
+ xr as Form,
2923
+ Sr as FormDialog,
2924
+ Tr as FormField,
2925
+ _r as FusedShape,
2926
+ dt as GhostPreview,
2927
+ Ir as GroupCheckbox,
2928
+ Rr as GroupRadio,
2929
+ Mr as HighlightCard,
2930
+ Pr as HybridDatePicker,
2931
+ Fr as ImportWizard,
2932
+ Wt as InlineNudge,
2933
+ Er as Input,
2934
+ Or as InputAddon,
2935
+ Ar as InputGroup,
2936
+ Lr as Link,
2937
+ $r as LoginForm,
2938
+ Br as MarketPresetRow,
2939
+ Kr as MaskPresets,
2940
+ Wr as MaskedInput,
2941
+ Gr as Menu,
2942
+ Hr as MenuDivider,
2943
+ Vr as MenuGroup,
2944
+ zr as MenuItem,
2945
+ Zr as MergePrompt,
2946
+ Ur as MetricCard,
2947
+ Yr as MetricCardGrid,
2948
+ Rt as MetricGroupContainer,
2949
+ qr as MiniCalendar,
2950
+ jr as MultiSelect,
2951
+ Xr as NumberInput,
2952
+ Qr as ObjectArrow,
2953
+ Jr as OrderFilterBar,
2954
+ Fo as PERIOD_OPTIONS,
2955
+ vt as PageChip,
2956
+ _e as PageDropdown,
2957
+ es as PasswordInput,
2958
+ ts as PaymentForm,
2959
+ ns as PaymentMethodSelect,
2960
+ as as PhoneInput,
2961
+ rs as PinToMetric,
2962
+ Ut as PresetSwatchRow,
2963
+ ss as ProfileCard,
2964
+ os as ProgressCard,
2965
+ is as QuickConfigPanel,
2966
+ xt as RECONFIG_BACKSIDE_LABELS,
2967
+ Eo as ROLLING_OPTIONS,
2968
+ ls as Radio,
2969
+ cs as RadioGroup,
2970
+ ds as RangeSlider,
2971
+ us as Rating,
2972
+ _t as ReconfigBacksideButtons,
2973
+ ms as RegistrationForm,
2974
+ ps as Row1Controls,
2975
+ gs as Row2FilterTray,
2976
+ fs as SearchInput,
2977
+ hs as SegmentCard,
2978
+ bs as SegmentedControl,
2979
+ vs as Select,
2980
+ ys as Selectable,
2981
+ ws as SimpleMetricCard,
2982
+ Ds as SimpleSelector,
2983
+ Cs as Skeleton,
2984
+ Ns as SkeletonCard,
2985
+ ks as SkeletonChart,
2986
+ xs as SkeletonTable,
2987
+ Ss as Slider,
2988
+ Ts as Sortable,
2989
+ tn as SortableZones,
2990
+ _s as SparklineBg,
2991
+ Is as SplitButton,
2992
+ Rs as StackedGroupCard,
2993
+ Ms as StatusModeCard,
2994
+ lt as StatusSlotChipMenu,
2995
+ Ps as Stepper,
2996
+ Oo as TODAY_PRESET,
2985
2997
  Y as TUNING_DEFAULTS,
2986
- Me as TUNING_STORAGE_KEY,
2987
- Ms as TabGroup,
2988
- Ps as TabbedDataView,
2989
- Fs as TagInput,
2990
- Es as Textarea,
2991
- Gt as ThresholdRamp,
2992
- Os as TimeFrame,
2993
- As as TimePicker,
2994
- Ls as Toggle,
2995
- $s as Tooltip,
2996
- Bs as Transition,
2997
- Ks as TransitionGroup,
2998
- Ws as TrendCard,
2999
- Gs as TrendIndicator,
3000
- So as UIContext,
3001
- he as UIContextProvider,
3002
- Vs as UnifiedBreakdownTable,
3003
- Hs as UnifiedContextMenu,
3004
- dt as VelocityBuffer,
3005
- zs as addressGroupMetadata,
3006
- Zs as addressSchema,
3007
- hn as allChips,
3008
- Rn as allStateFixtures,
3009
- In as allVariantFixtures,
3010
- Dn as blockSamples,
3011
- Us as buildDefaultOverflow,
3012
- Sn as cardSamples,
3013
- kn as chartSamples,
3014
- Nn as circleSamples,
3015
- Qn as compactLayout,
3016
- Wn as compactState,
3017
- _n as computeGutterAnchorX,
3018
- Ys as contactFormMetadata,
3019
- qs as contactSchema,
3020
- Gn as contextMenuFixtures,
3021
- js as creditCardFormMetadata,
3022
- Xs as creditCardSchema,
3023
- nt as dateChip,
3024
- Re as defaultControlBarState,
3025
- Qs as destructiveModalMetadata,
3026
- Js as durations,
3027
- eo as easings,
3028
- mt as emptyFixture,
3029
- et as entityChip,
3030
- wt as entityNameActions,
3031
- yn as entityTabGroup,
3032
- ut as errorFixture,
3033
- Kn as filteredState,
3034
- Eo as findPreset,
3035
- Oo as formatDateRange,
3036
- Ao as formatMarketDates,
3037
- Lo as formatTrend,
3038
- $o as formatValue,
3039
- ea as fullLayout,
3040
- Bo as generateMarketId,
3041
- to as generateTabId,
3042
- Ko as getAllPresets,
3043
- Wo as getDateRangeForPreset,
3044
- no as getMenuActions,
3045
- Go as getPresetLabel,
3046
- ao as getTransitionStyle,
3047
- Xn as gridCards,
3048
- ro as interpolate,
3049
- Vo as isInRange,
3050
- Ho as isMarketActive,
3051
- zo as isSameDay,
3052
- Bn as itemColumns,
3053
- Ln as itemRows,
3054
- ct as loadingFixture,
3055
- so as loginFormMetadata,
3056
- oo as loginSchema,
3057
- at as manufacturerChip,
3058
- ra as manyTabs,
3059
- io as mergeHandlers,
3060
- lo as mergeRefs,
3061
- vn as metricTabGroup,
3062
- na as mixedTabs,
3063
- Zo as normalizePresetId,
3064
- Ct as numericActions,
3065
- $n as orderColumns,
3066
- Dt as orderIdActions,
3067
- An as orderRows,
3068
- ta as ordersTabs,
3069
- co as parseNumericValue,
3070
- uo as paymentFormMetadata,
3071
- mo as paymentSchema,
3072
- po as presets,
3073
- go as registrationFormMetadata,
3074
- fo as registrationSchema,
3075
- Hn as sampleCompareRanges,
3076
- Un as sampleCustomMarkets,
3077
- Vn as sampleDateRange,
3078
- Yn as sampleMarketPresetData,
3079
- Zn as sampleMarkets,
3080
- jn as samplePeriodPresets,
3081
- zn as samplePreferences,
3082
- qn as samplePresets,
3083
- aa as singleTab,
3084
- Mn as sparklineFixture,
3085
- Pn as sparklineUpFixture,
3086
- ft as staleDonutFixture,
3087
- pt as staleFixture,
3088
- gt as staleSparklineFixture,
3089
- Fn as standardFixture,
3090
- On as standardFlatFixture,
3091
- Jn as standardLayout,
3092
- En as standardNegativeFixture,
3093
- tt as statusChip,
3094
- xn as tableSamples,
3095
- Cn as textSamples,
3096
- wn as timeFrameTabGroup,
3097
- Uo as toUppercasePresetId,
3098
- bn as useArrowNavigation,
3099
- bo as useCheckboxGroupContext,
3100
- Tn as useEdgeHoverResize,
3101
- ho as useFilterLayout,
3102
- vo as useFlipAndStage,
3103
- yo as useFlipAndStageContext,
3104
- wo as useFlipAndStageContextOptional,
3105
- fn as useFocusReturn,
3106
- Do as useFocusTrap,
3107
- Co as useFormContext,
3108
- No as useRadioGroupContext,
3109
- Mt as useResizeTuning,
3110
- ko as useSlideOutReveal,
3111
- Yt as useSortableZones,
3112
- To as useUIContext
2998
+ Pe as TUNING_STORAGE_KEY,
2999
+ Fs as TabGroup,
3000
+ Es as TabbedDataView,
3001
+ Os as TagInput,
3002
+ As as Textarea,
3003
+ Vt as ThresholdRamp,
3004
+ Ls as TimeFrame,
3005
+ $s as TimePicker,
3006
+ Bs as Toggle,
3007
+ Ks as Tooltip,
3008
+ Ws as Transition,
3009
+ Gs as TransitionGroup,
3010
+ Hs as TrendCard,
3011
+ Vs as TrendIndicator,
3012
+ _o as UIContext,
3013
+ ve as UIContextProvider,
3014
+ zs as UnifiedBreakdownTable,
3015
+ Zs as UnifiedContextMenu,
3016
+ ut as VelocityBuffer,
3017
+ Us as addressGroupMetadata,
3018
+ Ys as addressSchema,
3019
+ yn as allChips,
3020
+ Pn as allStateFixtures,
3021
+ Mn as allVariantFixtures,
3022
+ Nn as blockSamples,
3023
+ qs as buildDefaultOverflow,
3024
+ _n as cardSamples,
3025
+ Sn as chartSamples,
3026
+ xn as circleSamples,
3027
+ ea as compactLayout,
3028
+ Hn as compactState,
3029
+ Rn as computeGutterAnchorX,
3030
+ js as contactFormMetadata,
3031
+ Xs as contactSchema,
3032
+ Vn as contextMenuFixtures,
3033
+ Qs as creditCardFormMetadata,
3034
+ Js as creditCardSchema,
3035
+ rt as dateChip,
3036
+ Me as defaultControlBarState,
3037
+ eo as destructiveModalMetadata,
3038
+ to as durations,
3039
+ no as easings,
3040
+ gt as emptyFixture,
3041
+ nt as entityChip,
3042
+ Ct as entityNameActions,
3043
+ Dn as entityTabGroup,
3044
+ pt as errorFixture,
3045
+ Gn as filteredState,
3046
+ Ao as findPreset,
3047
+ Lo as formatDateRange,
3048
+ $o as formatMarketDates,
3049
+ Bo as formatTrend,
3050
+ Ko as formatValue,
3051
+ na as fullLayout,
3052
+ Wo as generateMarketId,
3053
+ ao as generateTabId,
3054
+ Go as getAllPresets,
3055
+ Ho as getDateRangeForPreset,
3056
+ ro as getMenuActions,
3057
+ Vo as getPresetLabel,
3058
+ so as getTransitionStyle,
3059
+ Jn as gridCards,
3060
+ oo as interpolate,
3061
+ zo as isInRange,
3062
+ Zo as isMarketActive,
3063
+ Uo as isSameDay,
3064
+ Wn as itemColumns,
3065
+ Bn as itemRows,
3066
+ mt as loadingFixture,
3067
+ io as loginFormMetadata,
3068
+ lo as loginSchema,
3069
+ st as manufacturerChip,
3070
+ oa as manyTabs,
3071
+ co as mergeHandlers,
3072
+ uo as mergeRefs,
3073
+ wn as metricTabGroup,
3074
+ ra as mixedTabs,
3075
+ Yo as normalizePresetId,
3076
+ kt as numericActions,
3077
+ Kn as orderColumns,
3078
+ Nt as orderIdActions,
3079
+ $n as orderRows,
3080
+ aa as ordersTabs,
3081
+ mo as parseNumericValue,
3082
+ po as paymentFormMetadata,
3083
+ go as paymentSchema,
3084
+ fo as presets,
3085
+ ho as registrationFormMetadata,
3086
+ bo as registrationSchema,
3087
+ Zn as sampleCompareRanges,
3088
+ qn as sampleCustomMarkets,
3089
+ zn as sampleDateRange,
3090
+ jn as sampleMarketPresetData,
3091
+ Yn as sampleMarkets,
3092
+ Qn as samplePeriodPresets,
3093
+ Un as samplePreferences,
3094
+ Xn as samplePresets,
3095
+ sa as singleTab,
3096
+ Fn as sparklineFixture,
3097
+ En as sparklineUpFixture,
3098
+ bt as staleDonutFixture,
3099
+ ft as staleFixture,
3100
+ ht as staleSparklineFixture,
3101
+ On as standardFixture,
3102
+ Ln as standardFlatFixture,
3103
+ ta as standardLayout,
3104
+ An as standardNegativeFixture,
3105
+ at as statusChip,
3106
+ Tn as tableSamples,
3107
+ kn as textSamples,
3108
+ Cn as timeFrameTabGroup,
3109
+ qo as toUppercasePresetId,
3110
+ vn as useArrowNavigation,
3111
+ vo as useCheckboxGroupContext,
3112
+ In as useEdgeHoverResize,
3113
+ yo as useFilterLayout,
3114
+ wo as useFlipAndStage,
3115
+ Do as useFlipAndStageContext,
3116
+ Co as useFlipAndStageContextOptional,
3117
+ bn as useFocusReturn,
3118
+ No as useFocusTrap,
3119
+ ko as useFormContext,
3120
+ xo as useRadioGroupContext,
3121
+ Ft as useResizeTuning,
3122
+ So as useSlideOutReveal,
3123
+ jt as useSortableZones,
3124
+ Io as useUIContext
3113
3125
  };