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