@mt-gloss/ui 0.0.45 → 0.0.47

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