@mt-gloss/ui 0.0.44 → 0.0.45

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