@mt-gloss/ui 0.0.14 → 0.0.15

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,8 +1,8 @@
1
- import { N as aa, T as ra, O as na, Q as oa, b2 as sa, av as ia, ad as la, Z as da, aj as ca, K as ua, a4 as ma, bl as ga, P as pa, B as ba, a as ha, y as fa, H as va, be as Ca, F as ya, J as Da, A as wa, z as Na, bd as Sa, E as xa, D as Ta, bt as ka, b as Ia, C as _a, L as Ra, o as Ma, a9 as Pa, aJ as Fa, y as Oa, H as Aa, F as Ea, J as La, A as Ba, z as Ga, E as za, D as Ha, aX as $a, a_ as Ka, aZ as Wa, aY as Za, a$ as Ya, ay as qa, am as Va, k as Ua, m as ja, aB as Qa, a7 as Xa, b4 as Ja, a5 as er, bm as tr, Y as ar, bD as rr, bC as nr, bE as or, al as sr, aM as ir, b6 as lr, bI as dr, n as cr, ai as ur, bx as mr, bp as gr, a0 as pr, an as br, a2 as hr, bw as fr, G as vr, d as Cr, bg as yr, a6 as Dr, bF as wr, aP as Nr, r as Sr, v as xr, I as Tr, g as kr, as as Ir, bJ as _r, M as Rr, w as Mr, U as Pr, X as Fr, V as Or, W as Ar, ao as Er, bc as Lr, bL as Br, bH as Gr, ak as zr, t as Hr, bn as $r, aO as Kr, af as Wr, aG as Zr, ac as Yr, ah as qr, aq as Vr, aN as Ur, a8 as jr, ap as Qr, c as Xr, R as Jr, j as en, p as tn, aD as an, bu as rn, bv as nn, ae as on, aa as sn, h as ln, x as dn, b3 as cn, ab as un, bK as mn, b8 as gn, bb as pn, b9 as bn, ba as hn, i as fn, b5 as vn, bk as Cn, S as yn, bh as Dn, bi as wn, ar as Nn, b7 as Sn, bM as xn, ag as Tn, s as kn, bG as In, l as _n, f as Rn, q as Mn, _ as Pn, $ as Fn, a3 as On, bf as An, bs as En, bz as Ln, aw as Bn, ax as Gn, aK as zn, aL as Hn, az as $n, aA as Kn, aC as Wn, aR as Zn, aS as Yn, bB as qn, bA as Vn, aU as Un, aV as jn, at as Qn, au as Xn, b1 as Jn, b0 as eo, aW as to, aH as ao, aI as ro, aT as no, aE as oo, aF as so, u as io, by as lo, bo as co, bq as uo, br as mo, aQ as go, a1 as po, e as bo, bj as ho } from "./Expandable-aJSmv_1C.js";
2
- import { jsxs as _, jsx as l } from "react/jsx-runtime";
3
- import R, { useRef as F, useEffect as G, useState as M, useCallback as b, forwardRef as ve, useMemo as Ce, createContext as ye, useContext as De } from "react";
4
- import { B as we, U } from "./UIContext-Cx54OlNB.js";
5
- import { a as vo, u as Co } from "./UIContext-Cx54OlNB.js";
1
+ import { N as aa, T as ra, O as na, Q as oa, b2 as sa, av as ia, ad as la, Z as da, aj as ca, K as ua, a4 as ma, bl as ga, P as pa, B as ba, a as ha, y as fa, H as va, be as Ca, F as ya, J as Da, A as wa, z as Na, bd as Sa, E as xa, D as Ta, bt as ka, b as Ia, C as _a, L as Ra, o as Ma, a9 as Pa, aJ as Fa, y as Oa, H as Aa, F as Ea, J as La, A as Ba, z as Ga, E as za, D as Ha, aX as $a, a_ as Ka, aZ as Wa, aY as Za, a$ as Ya, ay as qa, am as Va, k as Ua, m as ja, aB as Qa, a7 as Xa, b4 as Ja, a5 as er, bm as tr, Y as ar, bD as rr, bC as nr, bE as or, al as sr, aM as ir, b6 as lr, bI as dr, n as cr, ai as ur, bx as mr, bp as gr, a0 as pr, an as br, a2 as hr, bw as fr, G as vr, d as Cr, bg as yr, a6 as Dr, bF as wr, aP as Nr, r as Sr, v as xr, I as Tr, g as kr, as as Ir, bJ as _r, M as Rr, w as Mr, U as Pr, X as Fr, V as Or, W as Ar, ao as Er, bc as Lr, bL as Br, bH as Gr, ak as zr, t as Hr, bn as $r, aO as Kr, af as Wr, aG as Zr, ac as Yr, ah as qr, aq as Vr, aN as Ur, a8 as jr, ap as Qr, c as Xr, R as Jr, j as en, p as tn, aD as an, bu as rn, bv as nn, ae as on, aa as sn, h as ln, x as dn, b3 as cn, ab as un, bK as mn, b8 as gn, bb as pn, b9 as bn, ba as hn, i as fn, b5 as vn, bk as Cn, S as yn, bh as Dn, bi as wn, ar as Nn, b7 as Sn, bM as xn, ag as Tn, s as kn, bG as In, l as _n, f as Rn, q as Mn, _ as Pn, $ as Fn, a3 as On, bf as An, bs as En, bz as Ln, aw as Bn, ax as Gn, aK as zn, aL as Hn, az as $n, aA as Kn, aC as Wn, aR as Zn, aS as Yn, bB as qn, bA as Vn, aU as Un, aV as jn, at as Qn, au as Xn, b1 as Jn, b0 as eo, aW as to, aH as ao, aI as ro, aT as no, aE as oo, aF as so, u as io, by as lo, bo as co, bq as uo, br as mo, aQ as go, a1 as po, e as bo, bj as ho } from "./Expandable-BXdTP6Nb.js";
2
+ import { jsxs as _, jsx as d } from "react/jsx-runtime";
3
+ import R, { useRef as F, useEffect as G, useState as M, useCallback as p, forwardRef as ve, useMemo as Ce, createContext as ye, useContext as De } from "react";
4
+ import { B as we, U } from "./UIContext-C3E-k7HI.js";
5
+ import { a as vo, u as Co } from "./UIContext-C3E-k7HI.js";
6
6
  import { createPortal as Ne } from "react-dom";
7
7
  import { DEFAULT_MARKET_PRESETS as Do, DEFAULT_PINNED as wo, PERIOD_OPTIONS as No, ROLLING_OPTIONS as So, TODAY_PRESET as xo, findPreset as To, formatDateRange as ko, formatMarketDates as Io, formatTrend as _o, formatValue as Ro, generateMarketId as Mo, getAllPresets as Po, getDateRangeForPreset as Fo, getPresetLabel as Oo, isInRange as Ao, isMarketActive as Eo, isSameDay as Lo, normalizePresetId as Bo, toUppercasePresetId as Go } from "@mt-gloss/utils";
8
8
  function ct(e = {}) {
@@ -23,93 +23,93 @@ function ut(e) {
23
23
  loop: n = !0,
24
24
  orientation: o = "vertical",
25
25
  enabled: s = !0,
26
- isItemDisabled: c,
27
- onSelect: u,
28
- onEscape: g
29
- } = e, [w, v] = M(-1), p = r !== void 0 ? r : w, m = b(
30
- (d) => {
31
- r === void 0 && v(d), a?.(d);
26
+ isItemDisabled: u,
27
+ onSelect: m,
28
+ onEscape: b
29
+ } = e, [D, N] = M(-1), g = r !== void 0 ? r : D, l = p(
30
+ (c) => {
31
+ r === void 0 && N(c), a?.(c);
32
32
  },
33
33
  [r, a]
34
- ), f = b(() => t.map((d, D) => ({ item: d, index: D })).filter(({ item: d, index: D }) => !c?.(d, D)).map(({ index: d }) => d), [t, c]), S = b(
35
- (d, D) => {
36
- const y = f();
37
- if (y.length === 0) return -1;
38
- const O = y.indexOf(d);
34
+ ), h = p(() => t.map((c, y) => ({ item: c, index: y })).filter(({ item: c, index: y }) => !u?.(c, y)).map(({ index: c }) => c), [t, u]), S = p(
35
+ (c, y) => {
36
+ const C = h();
37
+ if (C.length === 0) return -1;
38
+ const O = C.indexOf(c);
39
39
  if (O === -1)
40
- return D === 1 ? y.find((E) => E > d) ?? (n ? y[0] : -1) : [...y].reverse().find((B) => B < d) ?? (n ? y[y.length - 1] : -1);
41
- let T = O + D;
42
- return n ? T = (T + y.length) % y.length : T = Math.max(0, Math.min(y.length - 1, T)), y[T];
40
+ return y === 1 ? C.find((E) => E > c) ?? (n ? C[0] : -1) : [...C].reverse().find((B) => B < c) ?? (n ? C[C.length - 1] : -1);
41
+ let T = O + y;
42
+ return n ? T = (T + C.length) % C.length : T = Math.max(0, Math.min(C.length - 1, T)), C[T];
43
43
  },
44
- [f, n]
45
- ), x = b(() => {
46
- const d = f();
47
- d.length > 0 && m(d[0]);
48
- }, [f, m]), i = b(() => {
49
- const d = f();
50
- d.length > 0 && m(d[d.length - 1]);
51
- }, [f, m]), h = b(() => {
52
- const d = S(p, 1);
53
- d !== -1 && m(d);
54
- }, [p, S, m]), N = b(() => {
55
- const d = S(p, -1);
56
- d !== -1 && m(d);
57
- }, [p, S, m]), C = b(() => {
58
- m(-1);
59
- }, [m]), k = b(
60
- (d) => {
44
+ [h, n]
45
+ ), x = p(() => {
46
+ const c = h();
47
+ c.length > 0 && l(c[0]);
48
+ }, [h, l]), i = p(() => {
49
+ const c = h();
50
+ c.length > 0 && l(c[c.length - 1]);
51
+ }, [h, l]), f = p(() => {
52
+ const c = S(g, 1);
53
+ c !== -1 && l(c);
54
+ }, [g, S, l]), w = p(() => {
55
+ const c = S(g, -1);
56
+ c !== -1 && l(c);
57
+ }, [g, S, l]), v = p(() => {
58
+ l(-1);
59
+ }, [l]), k = p(
60
+ (c) => {
61
61
  if (!s) return;
62
- const { key: D } = d, y = D === "ArrowUp" && (o === "vertical" || o === "both"), O = D === "ArrowDown" && (o === "vertical" || o === "both"), T = D === "ArrowLeft" && (o === "horizontal" || o === "both"), E = D === "ArrowRight" && (o === "horizontal" || o === "both");
63
- if (y || T) {
64
- d.preventDefault(), p === -1 ? i() : N();
62
+ const { key: y } = c, C = y === "ArrowUp" && (o === "vertical" || o === "both"), O = y === "ArrowDown" && (o === "vertical" || o === "both"), T = y === "ArrowLeft" && (o === "horizontal" || o === "both"), E = y === "ArrowRight" && (o === "horizontal" || o === "both");
63
+ if (C || T) {
64
+ c.preventDefault(), g === -1 ? i() : w();
65
65
  return;
66
66
  }
67
67
  if (O || E) {
68
- d.preventDefault(), p === -1 ? x() : h();
68
+ c.preventDefault(), g === -1 ? x() : f();
69
69
  return;
70
70
  }
71
- if (D === "Home") {
72
- d.preventDefault(), x();
71
+ if (y === "Home") {
72
+ c.preventDefault(), x();
73
73
  return;
74
74
  }
75
- if (D === "End") {
76
- d.preventDefault(), i();
75
+ if (y === "End") {
76
+ c.preventDefault(), i();
77
77
  return;
78
78
  }
79
- if ((D === "Enter" || D === " ") && p >= 0 && p < t.length) {
80
- d.preventDefault();
81
- const B = t[p];
82
- c?.(B, p) || u?.(B, p);
79
+ if ((y === "Enter" || y === " ") && g >= 0 && g < t.length) {
80
+ c.preventDefault();
81
+ const B = t[g];
82
+ u?.(B, g) || m?.(B, g);
83
83
  return;
84
84
  }
85
- if (D === "Escape") {
86
- g?.();
85
+ if (y === "Escape") {
86
+ b?.();
87
87
  return;
88
88
  }
89
89
  },
90
90
  [
91
91
  s,
92
92
  o,
93
- p,
93
+ g,
94
94
  t,
95
95
  x,
96
96
  i,
97
- h,
98
- N,
99
- c,
97
+ f,
98
+ w,
100
99
  u,
101
- g
100
+ m,
101
+ b
102
102
  ]
103
103
  );
104
104
  return {
105
- focusedIndex: p,
106
- setFocusedIndex: m,
105
+ focusedIndex: g,
106
+ setFocusedIndex: l,
107
107
  handleKeyDown: k,
108
108
  focusFirst: x,
109
109
  focusLast: i,
110
- focusNext: h,
111
- focusPrevious: N,
112
- resetFocus: C
110
+ focusNext: f,
111
+ focusPrevious: w,
112
+ resetFocus: v
113
113
  };
114
114
  }
115
115
  const H = (e) => {
@@ -231,88 +231,88 @@ function Re({
231
231
  overflowActions: o,
232
232
  onClose: s
233
233
  }) {
234
- const [c, u] = M(null), g = F(null), w = b(() => {
234
+ const [u, m] = M(null), b = F(null), D = p(() => {
235
235
  if (!t) return { ...ee, top: 0, left: 0 };
236
- const m = t.getBoundingClientRect();
236
+ const l = t.getBoundingClientRect();
237
237
  return {
238
238
  ...ee,
239
- top: m.bottom + 4,
240
- left: m.left
239
+ top: l.bottom + 4,
240
+ left: l.left
241
241
  };
242
242
  }, [t]);
243
243
  if (G(() => {
244
244
  if (!e) return;
245
- const m = (f) => {
246
- f.key === "Escape" && s();
245
+ const l = (h) => {
246
+ h.key === "Escape" && s();
247
247
  };
248
- return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
248
+ return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
249
249
  }, [e, s]), G(() => {
250
250
  if (!e) return;
251
- const m = (f) => {
252
- g.current && !g.current.contains(f.target) && s();
251
+ const l = (h) => {
252
+ b.current && !b.current.contains(h.target) && s();
253
253
  };
254
- return document.addEventListener("pointerdown", m, !0), () => document.removeEventListener("pointerdown", m, !0);
254
+ return document.addEventListener("pointerdown", l, !0), () => document.removeEventListener("pointerdown", l, !0);
255
255
  }, [e, s]), !e) return null;
256
- const v = o && o.length > 0, p = /* @__PURE__ */ _(
256
+ const N = o && o.length > 0, g = /* @__PURE__ */ _(
257
257
  "div",
258
258
  {
259
- ref: g,
259
+ ref: b,
260
260
  "data-status-chip-menu": r,
261
261
  role: "menu",
262
262
  "aria-label": "Status actions",
263
- style: w(),
263
+ style: D(),
264
264
  children: [
265
- /* @__PURE__ */ l(
265
+ /* @__PURE__ */ d(
266
266
  "button",
267
267
  {
268
268
  role: "menuitem",
269
- style: Ie(c === "__primary"),
270
- onMouseEnter: () => u("__primary"),
271
- onMouseLeave: () => u(null),
269
+ style: Ie(u === "__primary"),
270
+ onMouseEnter: () => m("__primary"),
271
+ onMouseLeave: () => m(null),
272
272
  onClick: () => {
273
273
  a(r), s();
274
274
  },
275
275
  children: "Open in table"
276
276
  }
277
277
  ),
278
- /* @__PURE__ */ l(
278
+ /* @__PURE__ */ d(
279
279
  "button",
280
280
  {
281
281
  role: "menuitem",
282
- style: W(c === "__graph"),
283
- onMouseEnter: () => u("__graph"),
284
- onMouseLeave: () => u(null),
282
+ style: W(u === "__graph"),
283
+ onMouseEnter: () => m("__graph"),
284
+ onMouseLeave: () => m(null),
285
285
  onClick: () => {
286
286
  n(r), s();
287
287
  },
288
288
  children: "Show on graph"
289
289
  }
290
290
  ),
291
- v && /* @__PURE__ */ l("div", { style: _e }),
292
- v && o?.map((m) => /* @__PURE__ */ l(
291
+ N && /* @__PURE__ */ d("div", { style: _e }),
292
+ N && o?.map((l) => /* @__PURE__ */ d(
293
293
  "button",
294
294
  {
295
295
  role: "menuitem",
296
- style: W(c === m.id),
297
- onMouseEnter: () => u(m.id),
298
- onMouseLeave: () => u(null),
296
+ style: W(u === l.id),
297
+ onMouseEnter: () => m(l.id),
298
+ onMouseLeave: () => m(null),
299
299
  onClick: () => {
300
- m.onSelect(r), s();
300
+ l.onSelect(r), s();
301
301
  },
302
- children: m.label
302
+ children: l.label
303
303
  },
304
- m.id
304
+ l.id
305
305
  ))
306
306
  ]
307
307
  }
308
308
  );
309
- return Ne(p, document.body);
309
+ return Ne(g, document.body);
310
310
  }
311
311
  Re.displayName = "StatusSlotChipMenu";
312
312
  const Me = ve(
313
313
  function({ state: t, onPointerDown: r, onPointerUp: a, edge: n = "right", ariaLabel: o = "Resize card" }, s) {
314
- const c = t === "handle-visible" || t === "dragging";
315
- return /* @__PURE__ */ l(
314
+ const u = t === "handle-visible" || t === "dragging";
315
+ return /* @__PURE__ */ d(
316
316
  "button",
317
317
  {
318
318
  ref: s,
@@ -323,11 +323,11 @@ const Me = ve(
323
323
  className: [
324
324
  "gloss-edge-handle",
325
325
  `gloss-edge-handle--${n}`,
326
- c ? "gloss-edge-handle--visible" : ""
326
+ u ? "gloss-edge-handle--visible" : ""
327
327
  ].filter(Boolean).join(" "),
328
328
  onPointerDown: r,
329
329
  onPointerUp: a,
330
- tabIndex: c ? 0 : -1
330
+ tabIndex: u ? 0 : -1
331
331
  }
332
332
  );
333
333
  }
@@ -339,7 +339,7 @@ function Pe({
339
339
  enterMs: r = 180,
340
340
  exitMs: a = 120
341
341
  }) {
342
- return /* @__PURE__ */ l(
342
+ return /* @__PURE__ */ d(
343
343
  "div",
344
344
  {
345
345
  "aria-hidden": "true",
@@ -363,44 +363,44 @@ function wt({
363
363
  enterMs: o = 180,
364
364
  exitMs: s = 120
365
365
  }) {
366
- const [c, u] = M("idle"), g = F(null), w = F(null), v = b(() => {
367
- g.current && (clearTimeout(g.current), g.current = null);
368
- }, []), p = b(() => {
369
- u((i) => i !== "idle" ? i : (g.current = setTimeout(() => u("handle-visible"), n), "dwelling"));
370
- }, [n]), m = b(() => {
371
- v(), u((i) => i === "dwelling" || i === "handle-visible" ? "idle" : i);
372
- }, [v]), f = b(
366
+ const [u, m] = M("idle"), b = F(null), D = F(null), N = p(() => {
367
+ b.current && (clearTimeout(b.current), b.current = null);
368
+ }, []), g = p(() => {
369
+ m((i) => i !== "idle" ? i : (b.current = setTimeout(() => m("handle-visible"), n), "dwelling"));
370
+ }, [n]), l = p(() => {
371
+ N(), m((i) => i === "dwelling" || i === "handle-visible" ? "idle" : i);
372
+ }, [N]), h = p(
373
373
  (i) => {
374
- u((h) => h !== "handle-visible" ? h : (w.current = i.clientX, "dragging"));
374
+ m((f) => f !== "handle-visible" ? f : (D.current = i.clientX, "dragging"));
375
375
  },
376
376
  []
377
- ), S = b(
377
+ ), S = p(
378
378
  (i) => {
379
- u((h) => {
380
- if (h !== "dragging") return h;
381
- const N = i.clientX - (w.current ?? i.clientX), k = Math.round(N / 180), d = Math.min(3, Math.max(1, e + k));
382
- if (d === e)
379
+ m((f) => {
380
+ if (f !== "dragging") return f;
381
+ const w = i.clientX - (D.current ?? i.clientX), k = Math.round(w / 180), c = Math.min(3, Math.max(1, e + k));
382
+ if (c === e)
383
383
  return a?.(), "cancelled";
384
- const D = d > e ? "grow" : "shrink";
385
- return r({ direction: D, targetColSpan: d, mode: t ? "slot-fill" : "sparkline-fidelity" }), "committed";
384
+ const y = c > e ? "grow" : "shrink";
385
+ return r({ direction: y, targetColSpan: c, mode: t ? "slot-fill" : "sparkline-fidelity" }), "committed";
386
386
  });
387
387
  },
388
388
  [e, t, r, a]
389
- ), x = b(() => {
390
- v(), u((i) => i === "dragging" || i === "handle-visible" ? (a?.(), "cancelled") : i);
391
- }, [v, a]);
389
+ ), x = p(() => {
390
+ N(), m((i) => i === "dragging" || i === "handle-visible" ? (a?.(), "cancelled") : i);
391
+ }, [N, a]);
392
392
  return G(() => {
393
- if (c !== "dragging" && c !== "handle-visible") return;
394
- const i = (h) => {
395
- h.key === "Escape" && x();
393
+ if (u !== "dragging" && u !== "handle-visible") return;
394
+ const i = (f) => {
395
+ f.key === "Escape" && x();
396
396
  };
397
397
  return window.addEventListener("keydown", i), () => window.removeEventListener("keydown", i);
398
- }, [c, x]), G(() => () => v(), [v]), {
399
- state: c,
400
- enterEdgeZone: p,
401
- leaveEdgeZone: m,
402
- handleProps: { onPointerDown: f, onPointerUp: S },
403
- ghostProps: { visible: c === "dragging", enterMs: o, exitMs: s }
398
+ }, [u, x]), G(() => () => N(), [N]), {
399
+ state: u,
400
+ enterEdgeZone: g,
401
+ leaveEdgeZone: l,
402
+ handleProps: { onPointerDown: h, onPointerUp: S },
403
+ ghostProps: { visible: u === "dragging", enterMs: o, exitMs: s }
404
404
  };
405
405
  }
406
406
  const Nt = {
@@ -660,18 +660,23 @@ function ne({
660
660
  activePageId: n,
661
661
  onPageChange: o,
662
662
  onCreatePage: s,
663
- onManagePages: c
663
+ onManagePages: u
664
664
  }) {
665
- const u = b(
666
- (v) => {
667
- o(v), t();
665
+ const m = p(
666
+ (g) => {
667
+ o(g), t();
668
668
  },
669
669
  [o, t]
670
- ), g = b(() => {
670
+ ), b = p(
671
+ (g, l) => {
672
+ (l.key === "Enter" || l.key === " ") && (l.preventDefault(), m(g));
673
+ },
674
+ [m]
675
+ ), D = p(() => {
671
676
  s(), t();
672
- }, [s, t]), w = b(() => {
673
- c(), t();
674
- }, [c, t]);
677
+ }, [s, t]), N = p(() => {
678
+ u(), t();
679
+ }, [u, t]);
675
680
  return /* @__PURE__ */ _(
676
681
  we,
677
682
  {
@@ -686,53 +691,55 @@ function ne({
686
691
  anchorRef: r,
687
692
  className: "gloss-page-dropdown",
688
693
  children: [
689
- /* @__PURE__ */ l("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((v) => {
690
- const p = v.id === n;
694
+ /* @__PURE__ */ d("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((g) => {
695
+ const l = g.id === n;
691
696
  return /* @__PURE__ */ _(
692
697
  "li",
693
698
  {
694
699
  role: "menuitemradio",
695
- "aria-checked": p,
696
- "aria-current": p ? "page" : void 0,
697
- className: `gloss-page-dropdown__item${p ? " gloss-page-dropdown__item--active" : ""}`,
700
+ "aria-checked": l,
701
+ "aria-current": l ? "page" : void 0,
702
+ tabIndex: 0,
703
+ className: `gloss-page-dropdown__item${l ? " gloss-page-dropdown__item--active" : ""}`,
704
+ onClick: () => m(g.id),
705
+ onKeyDown: (h) => b(g.id, h),
698
706
  children: [
699
- /* @__PURE__ */ l(
707
+ /* @__PURE__ */ d(
700
708
  "span",
701
709
  {
702
- className: `gloss-page-dropdown__dot${p ? " gloss-page-dropdown__dot--active" : ""}`
710
+ className: `gloss-page-dropdown__dot${l ? " gloss-page-dropdown__dot--active" : ""}`
703
711
  }
704
712
  ),
705
- /* @__PURE__ */ l(
706
- "button",
713
+ /* @__PURE__ */ d(
714
+ "span",
707
715
  {
708
- className: `gloss-page-dropdown__name${v.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
709
- onClick: () => u(v.id),
710
- children: v.name
716
+ className: `gloss-page-dropdown__name${g.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
717
+ children: g.name
711
718
  }
712
719
  ),
713
- /* @__PURE__ */ l("span", { className: "gloss-page-dropdown__count", children: v.cardCount })
720
+ /* @__PURE__ */ d("span", { className: "gloss-page-dropdown__count", children: g.cardCount })
714
721
  ]
715
722
  },
716
- v.id
723
+ g.id
717
724
  );
718
725
  }) }),
719
- /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
720
- /* @__PURE__ */ l(
726
+ /* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
727
+ /* @__PURE__ */ d(
721
728
  "button",
722
729
  {
723
730
  role: "menuitem",
724
731
  className: "gloss-page-dropdown__action",
725
- onClick: g,
732
+ onClick: D,
726
733
  children: "+ New page"
727
734
  }
728
735
  ),
729
- /* @__PURE__ */ l("hr", { className: "gloss-page-dropdown__separator" }),
730
- /* @__PURE__ */ l(
736
+ /* @__PURE__ */ d("hr", { className: "gloss-page-dropdown__separator" }),
737
+ /* @__PURE__ */ d(
731
738
  "button",
732
739
  {
733
740
  role: "menuitem",
734
741
  className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
735
- onClick: w,
742
+ onClick: N,
736
743
  children: "Manage pages"
737
744
  }
738
745
  )
@@ -748,26 +755,26 @@ const Ge = function({
748
755
  onPageChange: n,
749
756
  onCreatePage: o,
750
757
  onManagePages: s,
751
- maskRadius: c = "var(--gloss-radius-md)"
758
+ maskRadius: u = "var(--gloss-radius-md)"
752
759
  }) {
753
- const u = F(null), [g, w] = M(!1), v = b(() => {
754
- w((f) => !f);
755
- }, []), p = b(() => {
756
- w(!1);
757
- }, []), m = a[t]?.id ?? "";
760
+ const m = F(null), [b, D] = M(!1), N = p(() => {
761
+ D((h) => !h);
762
+ }, []), g = p(() => {
763
+ D(!1);
764
+ }, []), l = a[t]?.id ?? "";
758
765
  return /* @__PURE__ */ _(
759
766
  "div",
760
767
  {
761
768
  className: "gloss-page-chip",
762
- ref: u,
769
+ ref: m,
763
770
  style: { position: "absolute", top: 0, right: 0 },
764
771
  "data-page-chip": !0,
765
772
  children: [
766
- /* @__PURE__ */ l(
773
+ /* @__PURE__ */ d(
767
774
  "div",
768
775
  {
769
776
  className: "gloss-page-chip__nuzzle",
770
- style: { "--_nuzzle-r": c }
777
+ style: { "--_nuzzle-r": u }
771
778
  }
772
779
  ),
773
780
  /* @__PURE__ */ _(
@@ -775,9 +782,9 @@ const Ge = function({
775
782
  {
776
783
  className: "gloss-page-chip__trigger",
777
784
  "aria-haspopup": "menu",
778
- "aria-expanded": g,
785
+ "aria-expanded": b,
779
786
  "aria-label": `Page ${t + 1} of ${r}. Click to switch pages.`,
780
- onClick: v,
787
+ onClick: N,
781
788
  children: [
782
789
  t + 1,
783
790
  " / ",
@@ -785,14 +792,14 @@ const Ge = function({
785
792
  ]
786
793
  }
787
794
  ),
788
- /* @__PURE__ */ l(
795
+ /* @__PURE__ */ d(
789
796
  ne,
790
797
  {
791
- open: g,
792
- onDismiss: p,
793
- anchorRef: u,
798
+ open: b,
799
+ onDismiss: g,
800
+ anchorRef: m,
794
801
  pages: a,
795
- activePageId: m,
802
+ activePageId: l,
796
803
  onPageChange: n,
797
804
  onCreatePage: o,
798
805
  onManagePages: s
@@ -1599,14 +1606,14 @@ function Ye(e) {
1599
1606
  }
1600
1607
  const qe = function(t) {
1601
1608
  if (t.renderMode === "discrete")
1602
- return /* @__PURE__ */ l(
1609
+ return /* @__PURE__ */ d(
1603
1610
  "div",
1604
1611
  {
1605
1612
  className: "gloss-metric-group gloss-metric-group--discrete",
1606
1613
  style: { display: "contents" },
1607
1614
  children: t.cards.map((n) => {
1608
1615
  const o = Y(n.size);
1609
- return /* @__PURE__ */ l(
1616
+ return /* @__PURE__ */ d(
1610
1617
  "div",
1611
1618
  {
1612
1619
  className: "gloss-metric-group__slot",
@@ -1641,7 +1648,7 @@ const qe = function(t) {
1641
1648
  "aria-label": a?.label,
1642
1649
  tabIndex: void 0,
1643
1650
  children: [
1644
- a?.accentColor && /* @__PURE__ */ l(
1651
+ a?.accentColor && /* @__PURE__ */ d(
1645
1652
  "div",
1646
1653
  {
1647
1654
  className: "gloss-metric-group__accent",
@@ -1649,8 +1656,8 @@ const qe = function(t) {
1649
1656
  }
1650
1657
  ),
1651
1658
  a?.label && /* @__PURE__ */ _("div", { className: "gloss-metric-group__label", children: [
1652
- /* @__PURE__ */ l("span", { children: a.label }),
1653
- a?.trend && /* @__PURE__ */ l(
1659
+ /* @__PURE__ */ d("span", { children: a.label }),
1660
+ a?.trend && /* @__PURE__ */ d(
1654
1661
  "span",
1655
1662
  {
1656
1663
  className: "gloss-metric-group__trend",
@@ -1659,7 +1666,7 @@ const qe = function(t) {
1659
1666
  }
1660
1667
  )
1661
1668
  ] }),
1662
- /* @__PURE__ */ l(
1669
+ /* @__PURE__ */ d(
1663
1670
  "div",
1664
1671
  {
1665
1672
  className: "gloss-metric-group__slots",
@@ -1670,7 +1677,7 @@ const qe = function(t) {
1670
1677
  },
1671
1678
  children: r.map((n) => {
1672
1679
  const o = Y(n.size);
1673
- return /* @__PURE__ */ l(
1680
+ return /* @__PURE__ */ d(
1674
1681
  "div",
1675
1682
  {
1676
1683
  className: "gloss-metric-group__slot--composite",
@@ -1705,7 +1712,7 @@ function Ve({
1705
1712
  anchorEl: a,
1706
1713
  anchorSelector: n
1707
1714
  }) {
1708
- const [o, s] = R.useState(null), c = R.useMemo(
1715
+ const [o, s] = R.useState(null), u = R.useMemo(
1709
1716
  () => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
1710
1717
  []
1711
1718
  );
@@ -1714,28 +1721,28 @@ function Ve({
1714
1721
  "[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
1715
1722
  );
1716
1723
  }, [a, n]), R.useLayoutEffect(() => {
1717
- let g = null;
1718
- if (a ? g = a : n && (g = document.querySelector(n)), g) {
1719
- const w = g.getBoundingClientRect();
1724
+ let b = null;
1725
+ if (a ? b = a : n && (b = document.querySelector(n)), b) {
1726
+ const D = b.getBoundingClientRect();
1720
1727
  s({
1721
- top: w.bottom + window.scrollY + 6,
1722
- left: w.left + window.scrollX
1728
+ top: D.bottom + window.scrollY + 6,
1729
+ left: D.left + window.scrollX
1723
1730
  });
1724
1731
  }
1725
1732
  }, [a, n]);
1726
- const u = o ? { top: o.top, left: o.left } : {};
1733
+ const m = o ? { top: o.top, left: o.left } : {};
1727
1734
  return /* @__PURE__ */ _(
1728
1735
  "div",
1729
1736
  {
1730
1737
  className: L["gloss-inline-nudge"],
1731
- style: u,
1738
+ style: m,
1732
1739
  role: "status",
1733
1740
  "aria-live": "polite",
1734
- "data-reduced-motion": c ? "true" : void 0,
1741
+ "data-reduced-motion": u ? "true" : void 0,
1735
1742
  children: [
1736
- /* @__PURE__ */ l("span", { className: L["gloss-inline-nudge__message"], children: e }),
1743
+ /* @__PURE__ */ d("span", { className: L["gloss-inline-nudge__message"], children: e }),
1737
1744
  /* @__PURE__ */ _("div", { className: L["gloss-inline-nudge__actions"], children: [
1738
- /* @__PURE__ */ l(
1745
+ /* @__PURE__ */ d(
1739
1746
  "button",
1740
1747
  {
1741
1748
  type: "button",
@@ -1744,7 +1751,7 @@ function Ve({
1744
1751
  children: t.label
1745
1752
  }
1746
1753
  ),
1747
- /* @__PURE__ */ l(
1754
+ /* @__PURE__ */ d(
1748
1755
  "button",
1749
1756
  {
1750
1757
  type: "button",
@@ -1764,9 +1771,9 @@ function le(e) {
1764
1771
  return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
1765
1772
  }
1766
1773
  function Ue(e, t, r) {
1767
- const a = r - t || 1, o = [...e].sort((s, c) => s.value - c.value).map((s) => {
1768
- const c = (s.value - t) / a * 100;
1769
- return `${le(s)} ${c.toFixed(2)}%`;
1774
+ const a = r - t || 1, o = [...e].sort((s, u) => s.value - u.value).map((s) => {
1775
+ const u = (s.value - t) / a * 100;
1776
+ return `${le(s)} ${u.toFixed(2)}%`;
1770
1777
  });
1771
1778
  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(", ")})`;
1772
1779
  }
@@ -1777,62 +1784,62 @@ function je({
1777
1784
  max: a = 100,
1778
1785
  disabled: n = !1
1779
1786
  }) {
1780
- const o = F(null), [s, c] = M(null), [u, g] = M(e), w = F(e);
1781
- w.current !== e && (w.current = e, g(e));
1782
- const v = Ce(() => Ue(u, r, a), [u, r, a]), p = b(
1787
+ const o = F(null), [s, u] = M(null), [m, b] = M(e), D = F(e);
1788
+ D.current !== e && (D.current = e, b(e));
1789
+ const N = Ce(() => Ue(m, r, a), [m, r, a]), g = p(
1783
1790
  (i) => {
1784
1791
  if (!o.current) return r;
1785
- const h = o.current.getBoundingClientRect(), N = Math.max(0, Math.min(1, (i - h.left) / h.width)), C = r + N * (a - r);
1786
- return Math.round(C * 100) / 100;
1792
+ const f = o.current.getBoundingClientRect(), w = Math.max(0, Math.min(1, (i - f.left) / f.width)), v = r + w * (a - r);
1793
+ return Math.round(v * 100) / 100;
1787
1794
  },
1788
1795
  [r, a]
1789
- ), m = b(
1790
- (i, h) => {
1791
- const N = u.find((C) => C.id === h);
1792
- n || N?.disabled || (typeof i.currentTarget.setPointerCapture == "function" && i.currentTarget.setPointerCapture(i.pointerId), c(h));
1796
+ ), l = p(
1797
+ (i, f) => {
1798
+ const w = m.find((v) => v.id === f);
1799
+ n || w?.disabled || (typeof i.currentTarget.setPointerCapture == "function" && i.currentTarget.setPointerCapture(i.pointerId), u(f));
1793
1800
  },
1794
- [n, u]
1795
- ), f = b(
1801
+ [n, m]
1802
+ ), h = p(
1796
1803
  (i) => {
1797
1804
  if (!s) return;
1798
- const h = p(i.clientX);
1799
- g(
1800
- (N) => N.map((C) => C.id === s ? { ...C, value: h } : C)
1805
+ const f = g(i.clientX);
1806
+ b(
1807
+ (w) => w.map((v) => v.id === s ? { ...v, value: f } : v)
1801
1808
  );
1802
1809
  },
1803
- [s, p]
1804
- ), S = b(
1810
+ [s, g]
1811
+ ), S = p(
1805
1812
  (i) => {
1806
1813
  if (!s) return;
1807
- const h = p(i.clientX), N = u.map(
1808
- (C) => C.id === s ? { ...C, value: h } : C
1814
+ const f = g(i.clientX), w = m.map(
1815
+ (v) => v.id === s ? { ...v, value: f } : v
1809
1816
  );
1810
- g(N), c(null), t(N);
1817
+ b(w), u(null), t(w);
1811
1818
  },
1812
- [s, p, u, t]
1819
+ [s, g, m, t]
1813
1820
  ), x = a - r || 1;
1814
- return /* @__PURE__ */ l("div", { className: "gloss-threshold-ramp", "data-disabled": n || void 0, children: /* @__PURE__ */ l(
1821
+ return /* @__PURE__ */ d("div", { className: "gloss-threshold-ramp", "data-disabled": n || void 0, children: /* @__PURE__ */ d(
1815
1822
  "div",
1816
1823
  {
1817
1824
  ref: o,
1818
1825
  className: "gloss-threshold-ramp__track",
1819
- style: { background: v },
1820
- onPointerMove: f,
1826
+ style: { background: N },
1827
+ onPointerMove: h,
1821
1828
  onPointerUp: S,
1822
1829
  onPointerLeave: S,
1823
- children: u.map((i) => {
1824
- const h = (i.value - r) / x * 100;
1825
- return /* @__PURE__ */ l(
1830
+ children: m.map((i) => {
1831
+ const f = (i.value - r) / x * 100;
1832
+ return /* @__PURE__ */ d(
1826
1833
  "span",
1827
1834
  {
1828
1835
  className: "gloss-threshold-ramp__stop",
1829
1836
  style: {
1830
- left: `${h}%`,
1837
+ left: `${f}%`,
1831
1838
  color: le(i)
1832
1839
  },
1833
1840
  "data-disabled": i.disabled || void 0,
1834
1841
  "data-dragging": s === i.id || void 0,
1835
- onPointerDown: (N) => m(N, i.id),
1842
+ onPointerDown: (w) => l(w, i.id),
1836
1843
  "aria-label": i.label ?? `Stop at ${i.value}`,
1837
1844
  role: "slider",
1838
1845
  "aria-valuenow": i.value,
@@ -1852,10 +1859,10 @@ function Qe() {
1852
1859
  return De(de);
1853
1860
  }
1854
1861
  function Xe({ option: e }) {
1855
- const t = Qe(), r = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, n = b(() => {
1862
+ const t = Qe(), r = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, n = p(() => {
1856
1863
  a || t?.select(e.value);
1857
1864
  }, [a, t, e.value]), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
1858
- return /* @__PURE__ */ l(
1865
+ return /* @__PURE__ */ d(
1859
1866
  "button",
1860
1867
  {
1861
1868
  type: "button",
@@ -1880,22 +1887,22 @@ function Je({
1880
1887
  disabled: n = !1,
1881
1888
  name: o
1882
1889
  }) {
1883
- const s = t !== void 0, [c, u] = M(r), g = s ? t : c, w = b(
1884
- (m) => {
1885
- s || u(m), a?.(m);
1890
+ const s = t !== void 0, [u, m] = M(r), b = s ? t : u, D = p(
1891
+ (l) => {
1892
+ s || m(l), a?.(l);
1886
1893
  },
1887
1894
  [s, a]
1888
- ), v = b(
1889
- (m) => g === m,
1890
- [g]
1891
- ), p = {
1892
- selectedValue: g,
1893
- select: w,
1894
- isSelected: v,
1895
+ ), N = p(
1896
+ (l) => b === l,
1897
+ [b]
1898
+ ), g = {
1899
+ selectedValue: b,
1900
+ select: D,
1901
+ isSelected: N,
1895
1902
  groupDisabled: n,
1896
1903
  name: o
1897
1904
  };
1898
- return /* @__PURE__ */ l(de.Provider, { value: p, children: /* @__PURE__ */ l(
1905
+ return /* @__PURE__ */ d(de.Provider, { value: g, children: /* @__PURE__ */ d(
1899
1906
  "div",
1900
1907
  {
1901
1908
  className: "gloss-preset-swatch-row",
@@ -1903,7 +1910,7 @@ function Je({
1903
1910
  "aria-label": o,
1904
1911
  "aria-disabled": n,
1905
1912
  "data-disabled": n || void 0,
1906
- children: e.map((m) => /* @__PURE__ */ l(Xe, { option: m }, m.value))
1913
+ children: e.map((l) => /* @__PURE__ */ d(Xe, { option: l }, l.value))
1907
1914
  }
1908
1915
  ) });
1909
1916
  }
@@ -1923,82 +1930,82 @@ function et(e, t, r) {
1923
1930
  return a.splice(r, 0, n), a;
1924
1931
  }
1925
1932
  function tt(e) {
1926
- const [t, r] = M(() => e.zones), [a, n] = M(null), [o, s] = M(null), c = F(null), u = F(e.onZoneChange);
1927
- u.current = e.onZoneChange;
1928
- const g = b(
1929
- (f) => {
1930
- const S = f.active.id;
1933
+ const [t, r] = M(() => e.zones), [a, n] = M(null), [o, s] = M(null), u = F(null), m = F(e.onZoneChange);
1934
+ m.current = e.onZoneChange;
1935
+ const b = p(
1936
+ (h) => {
1937
+ const S = h.active.id;
1931
1938
  let x = null, i = null;
1932
- for (const h of t) {
1933
- const N = h.items.find((C) => C.id === S);
1934
- if (N) {
1935
- x = N, i = h.zoneKey;
1939
+ for (const f of t) {
1940
+ const w = f.items.find((v) => v.id === S);
1941
+ if (w) {
1942
+ x = w, i = f.zoneKey;
1936
1943
  break;
1937
1944
  }
1938
1945
  }
1939
- c.current = i, n(x), s(i);
1946
+ u.current = i, n(x), s(i);
1940
1947
  },
1941
1948
  [t]
1942
- ), w = b(
1943
- (f) => {
1944
- if (!f.over) {
1945
- s(c.current);
1949
+ ), D = p(
1950
+ (h) => {
1951
+ if (!h.over) {
1952
+ s(u.current);
1946
1953
  return;
1947
1954
  }
1948
- const S = re(t, f.over.id);
1955
+ const S = re(t, h.over.id);
1949
1956
  s(S);
1950
1957
  },
1951
1958
  [t]
1952
- ), v = b(
1953
- (f) => {
1954
- const { active: S, over: x } = f, i = () => {
1955
- c.current = null, n(null), s(null);
1959
+ ), N = p(
1960
+ (h) => {
1961
+ const { active: S, over: x } = h, i = () => {
1962
+ u.current = null, n(null), s(null);
1956
1963
  };
1957
1964
  if (!x) {
1958
1965
  i();
1959
1966
  return;
1960
1967
  }
1961
- const h = q(t, S.id), N = re(t, x.id);
1962
- if (!h || !N) {
1968
+ const f = q(t, S.id), w = re(t, x.id);
1969
+ if (!f || !w) {
1963
1970
  i();
1964
1971
  return;
1965
1972
  }
1966
- let C = t.map((k) => ({ ...k, items: [...k.items] }));
1967
- if (h === N) {
1968
- const k = C.findIndex((T) => T.zoneKey === h), d = C[k], D = d.items.findIndex((T) => T.id === S.id), y = d.items.findIndex((T) => T.id === x.id), O = y >= 0 ? y : d.items.length - 1;
1969
- C[k] = {
1970
- ...d,
1971
- items: et(d.items, D, O)
1973
+ let v = t.map((k) => ({ ...k, items: [...k.items] }));
1974
+ if (f === w) {
1975
+ const k = v.findIndex((T) => T.zoneKey === f), c = v[k], y = c.items.findIndex((T) => T.id === S.id), C = c.items.findIndex((T) => T.id === x.id), O = C >= 0 ? C : c.items.length - 1;
1976
+ v[k] = {
1977
+ ...c,
1978
+ items: et(c.items, y, O)
1972
1979
  };
1973
1980
  } else {
1974
- const k = C.findIndex((I) => I.zoneKey === h), d = C.findIndex((I) => I.zoneKey === N), D = C[k], y = C[d], O = D.items.find((I) => I.id === S.id), T = D.items.filter((I) => I.id !== S.id), E = y.items.findIndex((I) => I.id === x.id), B = E >= 0 ? E : y.items.length;
1975
- let X = T, A = [...y.items];
1976
- if (y.maxItems !== void 0 && A.length >= y.maxItems) {
1981
+ const k = v.findIndex((I) => I.zoneKey === f), c = v.findIndex((I) => I.zoneKey === w), y = v[k], C = v[c], O = y.items.find((I) => I.id === S.id), T = y.items.filter((I) => I.id !== S.id), E = C.items.findIndex((I) => I.id === x.id), B = E >= 0 ? E : C.items.length;
1982
+ let X = T, A = [...C.items];
1983
+ if (C.maxItems !== void 0 && A.length >= C.maxItems) {
1977
1984
  const I = A[A.length - 1];
1978
- A = A.slice(0, y.maxItems - 1), X = [...T, I];
1985
+ A = A.slice(0, C.maxItems - 1), X = [...T, I];
1979
1986
  }
1980
1987
  const J = Math.min(B, A.length), fe = [
1981
1988
  ...A.slice(0, J),
1982
1989
  O,
1983
1990
  ...A.slice(J)
1984
1991
  ];
1985
- C[k] = { ...D, items: X }, C[d] = { ...y, items: fe };
1992
+ v[k] = { ...y, items: X }, v[c] = { ...C, items: fe };
1986
1993
  }
1987
- r(C), u.current?.(C), i();
1994
+ r(v), m.current?.(v), i();
1988
1995
  },
1989
1996
  [t]
1990
- ), p = b(
1991
- (f) => ({
1992
- id: f,
1993
- "data-zone-key": f
1997
+ ), g = p(
1998
+ (h) => ({
1999
+ id: h,
2000
+ "data-zone-key": h
1994
2001
  }),
1995
2002
  []
1996
- ), m = b(
1997
- (f) => {
1998
- const S = q(t, f.id) ?? "";
2003
+ ), l = p(
2004
+ (h) => {
2005
+ const S = q(t, h.id) ?? "";
1999
2006
  return {
2000
- id: f.id,
2001
- "data-item-id": f.id,
2007
+ id: h.id,
2008
+ "data-item-id": h.id,
2002
2009
  "data-zone-key": S
2003
2010
  };
2004
2011
  },
@@ -2008,11 +2015,11 @@ function tt(e) {
2008
2015
  zones: t,
2009
2016
  activeZone: o,
2010
2017
  activeItem: a,
2011
- getZoneProps: p,
2012
- getItemProps: m,
2013
- handleDragStart: g,
2014
- handleDragOver: w,
2015
- handleDragEnd: v
2018
+ getZoneProps: g,
2019
+ getItemProps: l,
2020
+ handleDragStart: b,
2021
+ handleDragOver: D,
2022
+ handleDragEnd: N
2016
2023
  };
2017
2024
  }
2018
2025
  let j = null, ce = null, ue = null, V = null, me = null, ge = null, pe = null, Q = null, be = null;
@@ -2028,7 +2035,7 @@ try {
2028
2035
  }
2029
2036
  function at(e) {
2030
2037
  const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay: o } = e, s = tt({ zones: t, onZoneChange: r });
2031
- return !j || !Q ? /* @__PURE__ */ l("div", { "data-sortable-zones-passive": "true", children: s.zones.map((c) => /* @__PURE__ */ l("div", { ...s.getZoneProps(c.zoneKey), children: a(c.zoneKey, c.items) }, c.zoneKey)) }) : /* @__PURE__ */ l(
2038
+ return !j || !Q ? /* @__PURE__ */ d("div", { "data-sortable-zones-passive": "true", children: s.zones.map((u) => /* @__PURE__ */ d("div", { ...s.getZoneProps(u.zoneKey), children: a(u.zoneKey, u.items) }, u.zoneKey)) }) : /* @__PURE__ */ d(
2032
2039
  he,
2033
2040
  {
2034
2041
  state: s,
@@ -2048,7 +2055,7 @@ function he({
2048
2055
  const n = ue(
2049
2056
  V(me, { activationConstraint: { distance: 5 } }),
2050
2057
  V(ge)
2051
- ), o = j, s = ce, c = Q;
2058
+ ), o = j, s = ce, u = Q;
2052
2059
  return /* @__PURE__ */ _(
2053
2060
  o,
2054
2061
  {
@@ -2058,18 +2065,18 @@ function he({
2058
2065
  onDragOver: e.handleDragOver,
2059
2066
  onDragEnd: e.handleDragEnd,
2060
2067
  children: [
2061
- e.zones.map((u) => {
2062
- const g = u.items.map((w) => w.id);
2063
- return /* @__PURE__ */ l("div", { ...e.getZoneProps(u.zoneKey), children: /* @__PURE__ */ l(
2064
- c,
2068
+ e.zones.map((m) => {
2069
+ const b = m.items.map((D) => D.id);
2070
+ return /* @__PURE__ */ d("div", { ...e.getZoneProps(m.zoneKey), children: /* @__PURE__ */ d(
2071
+ u,
2065
2072
  {
2066
- items: g,
2073
+ items: b,
2067
2074
  strategy: be,
2068
- children: t(u.zoneKey, u.items)
2075
+ children: t(m.zoneKey, m.items)
2069
2076
  }
2070
- ) }, u.zoneKey);
2077
+ ) }, m.zoneKey);
2071
2078
  }),
2072
- /* @__PURE__ */ l(s, { children: e.activeItem ? a?.(e.activeItem) ?? r(e.activeItem) : null })
2079
+ /* @__PURE__ */ d(s, { children: e.activeItem ? a?.(e.activeItem) ?? r(e.activeItem) : null })
2073
2080
  ]
2074
2081
  }
2075
2082
  );
@@ -2077,21 +2084,21 @@ function he({
2077
2084
  he.displayName = "SortableZonesInner";
2078
2085
  const rt = R.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
2079
2086
  const n = { ...r };
2080
- return delete n.className, delete n.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...n, children: /* @__PURE__ */ l(U, { region: "toolbar", density: e, children: t }) });
2087
+ return delete n.className, delete n.style, /* @__PURE__ */ d("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...n, children: /* @__PURE__ */ d(U, { region: "toolbar", density: e, children: t }) });
2081
2088
  });
2082
2089
  rt.displayName = "ContainerToolbar";
2083
2090
  const nt = R.forwardRef(({ legend: e, description: t, density: r = "default", children: a, ...n }, o) => {
2084
2091
  const s = { ...n };
2085
2092
  return delete s.className, delete s.style, /* @__PURE__ */ _("fieldset", { ref: o, className: "gloss-container-form-section", ...s, children: [
2086
- e && /* @__PURE__ */ l("legend", { className: "gloss-container-form-section__legend", children: e }),
2087
- t && /* @__PURE__ */ l("p", { className: "gloss-container-form-section__description", children: t }),
2088
- /* @__PURE__ */ l(U, { region: "form-section", density: r, children: a })
2093
+ e && /* @__PURE__ */ d("legend", { className: "gloss-container-form-section__legend", children: e }),
2094
+ t && /* @__PURE__ */ d("p", { className: "gloss-container-form-section__description", children: t }),
2095
+ /* @__PURE__ */ d(U, { region: "form-section", density: r, children: a })
2089
2096
  ] });
2090
2097
  });
2091
2098
  nt.displayName = "ContainerFormSection";
2092
2099
  const ot = R.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
2093
2100
  const n = { ...r };
2094
- return delete n.className, delete n.style, /* @__PURE__ */ l("div", { ref: a, className: "gloss-container-table", ...n, children: /* @__PURE__ */ l(U, { region: "table", density: e, children: t }) });
2101
+ return delete n.className, delete n.style, /* @__PURE__ */ d("div", { ref: a, className: "gloss-container-table", ...n, children: /* @__PURE__ */ d(U, { region: "table", density: e, children: t }) });
2095
2102
  });
2096
2103
  ot.displayName = "ContainerTable";
2097
2104
  export {