@mt-gloss/ui 0.1.14 → 0.1.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,4 +1,4 @@
1
- import { N as On, T as An, O as Ln, Q as $n, a3 as Bn, b6 as zn, az as Kn, ah as Wn, Z as Gn, an as Hn, K as Vn, a8 as jn, bn as Un, P as Zn, B as Yn, a as qn, y as Qn, H as Xn, bi as Jn, F as er, J as tr, A as ar, z as nr, bh as rr, E as sr, D as or, bw as ir, b as lr, C as cr, L as dr, o as ur, ad as mr, aN as gr, y as pr, H as fr, F as hr, J as br, A as vr, z as yr, E as wr, D as Dr, a$ as Nr, b2 as Cr, b1 as kr, b0 as _r, b3 as xr, aC as Sr, a5 as Mr, a4 as Tr, aq as Rr, k as Ir, m as Pr, aF as Fr, ab as Er, b8 as Or, a9 as Ar, bo as Lr, Y as $r, bG as Br, bF as zr, bH as Kr, ap as Wr, aQ as Gr, ba as Hr, bL as Vr, bu as jr, n as Ur, am as Zr, bA as Yr, br as qr, a0 as Qr, ar as Xr, a2 as Jr, bz as es, G as ts, d as as, aa as ns, bI as rs, aT as ss, r as os, v as is, I as ls, g as cs, aw as ds, bM as us, M as ms, w as gs, U as ps, X as fs, V as hs, W as bs, as as vs, bg as ys, bO as ws, bK as Ds, ao as Ns, t as Cs, bp as ks, aS as _s, aj as xs, aK as Ss, ag as Ms, al as Ts, au as Rs, aR as Is, ac as Ps, at as Fs, c as Es, R as Os, j as As, p as Ls, aH as $s, bx as Bs, by as zs, ai as Ks, ae as Ws, h as Gs, x as Hs, b7 as Vs, af as js, bN as Us, bc as Zs, bf as Ys, bd as qs, be as Qs, i as Xs, b9 as Js, bm as eo, S as to, bk as ao, bl as no, av as ro, bb as so, bP as oo, ak as io, s as lo, bJ as co, l as uo, f as mo, q as go, _ as po, $ as fo, a7 as ho, bj as bo, bv as vo, bC as yo, aA as wo, aB as Do, a6 as No, aO as Co, aP as ko, aD as _o, aE as xo, aG as So, aV as Mo, aW as To, bE as Ro, bD as Io, aY as Po, aZ as Fo, ax as Eo, ay as Oo, b5 as Ao, b4 as Lo, a_ as $o, aL as Bo, aM as zo, aX as Ko, aI as Wo, aJ as Go, u as Ho, bB as Vo, bq as jo, bs as Uo, bt as Zo, aU as Yo, a1 as qo, e as Qo } from "./Expandable-CTI-osAf.js";
1
+ import { N as On, T as An, O as Ln, Q as $n, a3 as Bn, b6 as zn, az as Kn, ah as Wn, Z as Gn, an as Hn, K as Vn, a8 as jn, bn as Un, P as Zn, B as Yn, a as qn, y as Qn, H as Xn, bi as Jn, F as er, J as tr, A as ar, z as nr, bh as rr, E as sr, D as or, bw as ir, b as lr, C as cr, L as dr, o as ur, ad as mr, aN as gr, y as pr, H as fr, F as hr, J as br, A as vr, z as yr, E as wr, D as Dr, a$ as Nr, b2 as Cr, b1 as kr, b0 as _r, b3 as xr, aC as Sr, a5 as Mr, a4 as Tr, aq as Rr, k as Ir, m as Pr, aF as Fr, ab as Er, b8 as Or, a9 as Ar, bo as Lr, Y as $r, bG as Br, bF as zr, bH as Kr, ap as Wr, aQ as Gr, ba as Hr, bL as Vr, bu as jr, n as Ur, am as Zr, bA as Yr, br as qr, a0 as Qr, ar as Xr, a2 as Jr, bz as es, G as ts, d as as, aa as ns, bI as rs, aT as ss, r as os, v as is, I as ls, g as cs, aw as ds, bM as us, M as ms, w as gs, U as ps, X as fs, V as hs, W as bs, as as vs, bg as ys, bO as ws, bK as Ds, ao as Ns, t as Cs, bp as ks, aS as _s, aj as xs, aK as Ss, ag as Ms, al as Ts, au as Rs, aR as Is, ac as Ps, at as Fs, c as Es, R as Os, j as As, p as Ls, aH as $s, bx as Bs, by as zs, ai as Ks, ae as Ws, h as Gs, x as Hs, b7 as Vs, af as js, bN as Us, bc as Zs, bf as Ys, bd as qs, be as Qs, i as Xs, b9 as Js, bm as eo, S as to, bk as ao, bl as no, av as ro, bb as so, bP as oo, ak as io, s as lo, bJ as co, l as uo, f as mo, q as go, _ as po, $ as fo, a7 as ho, bj as bo, bv as vo, bC as yo, aA as wo, aB as Do, a6 as No, aO as Co, aP as ko, aD as _o, aE as xo, aG as So, aV as Mo, aW as To, bE as Ro, bD as Io, aY as Po, aZ as Fo, ax as Eo, ay as Oo, b5 as Ao, b4 as Lo, a_ as $o, aL as Bo, aM as zo, aX as Ko, aI as Wo, aJ as Go, u as Ho, bB as Vo, bq as jo, bs as Uo, bt as Zo, aU as Yo, a1 as qo, e as Qo } from "./Expandable-ByRpX7qt.js";
2
2
  import { jsxs as O, jsx as i, Fragment as be } from "react/jsx-runtime";
3
3
  import * as qe from "react";
4
4
  import H, { useRef as R, useEffect as L, useState as W, useCallback as y, forwardRef as Qe, useMemo as se, createContext as Xe, useContext as Je } from "react";
@@ -33,8 +33,8 @@ function xa(e) {
33
33
  enabled: o = !0,
34
34
  isItemDisabled: d,
35
35
  onSelect: b,
36
- onEscape: g
37
- } = e, [m, C] = W(-1), u = n !== void 0 ? n : m, c = y(
36
+ onEscape: u
37
+ } = e, [g, C] = W(-1), m = n !== void 0 ? n : g, c = y(
38
38
  (l) => {
39
39
  n === void 0 && C(l), a?.(l);
40
40
  },
@@ -57,23 +57,23 @@ function xa(e) {
57
57
  const l = h();
58
58
  l.length > 0 && c(l[l.length - 1]);
59
59
  }, [h, c]), I = y(() => {
60
- const l = x(u, 1);
60
+ const l = x(m, 1);
61
61
  l !== -1 && c(l);
62
- }, [u, x, c]), N = y(() => {
63
- const l = x(u, -1);
62
+ }, [m, x, c]), N = y(() => {
63
+ const l = x(m, -1);
64
64
  l !== -1 && c(l);
65
- }, [u, x, c]), _ = y(() => {
65
+ }, [m, x, c]), _ = y(() => {
66
66
  c(-1);
67
67
  }, [c]), T = y(
68
68
  (l) => {
69
69
  if (!o) return;
70
70
  const { key: v } = l, p = v === "ArrowUp" && (s === "vertical" || s === "both"), w = v === "ArrowDown" && (s === "vertical" || s === "both"), k = v === "ArrowLeft" && (s === "horizontal" || s === "both"), M = v === "ArrowRight" && (s === "horizontal" || s === "both");
71
71
  if (p || k) {
72
- l.preventDefault(), u === -1 ? S() : N();
72
+ l.preventDefault(), m === -1 ? S() : N();
73
73
  return;
74
74
  }
75
75
  if (w || M) {
76
- l.preventDefault(), u === -1 ? f() : I();
76
+ l.preventDefault(), m === -1 ? f() : I();
77
77
  return;
78
78
  }
79
79
  if (v === "Home") {
@@ -84,21 +84,21 @@ function xa(e) {
84
84
  l.preventDefault(), S();
85
85
  return;
86
86
  }
87
- if ((v === "Enter" || v === " ") && u >= 0 && u < t.length) {
87
+ if ((v === "Enter" || v === " ") && m >= 0 && m < t.length) {
88
88
  l.preventDefault();
89
- const E = t[u];
90
- d?.(E, u) || b?.(E, u);
89
+ const E = t[m];
90
+ d?.(E, m) || b?.(E, m);
91
91
  return;
92
92
  }
93
93
  if (v === "Escape") {
94
- g?.();
94
+ u?.();
95
95
  return;
96
96
  }
97
97
  },
98
98
  [
99
99
  o,
100
100
  s,
101
- u,
101
+ m,
102
102
  t,
103
103
  f,
104
104
  S,
@@ -106,11 +106,11 @@ function xa(e) {
106
106
  N,
107
107
  d,
108
108
  b,
109
- g
109
+ u
110
110
  ]
111
111
  );
112
112
  return {
113
- focusedIndex: u,
113
+ focusedIndex: m,
114
114
  setFocusedIndex: c,
115
115
  handleKeyDown: T,
116
116
  focusFirst: f,
@@ -239,7 +239,7 @@ function ht({
239
239
  overflowActions: s,
240
240
  onClose: o
241
241
  }) {
242
- const [d, b] = W(null), g = R(null), m = y(() => {
242
+ const [d, b] = W(null), u = R(null), g = y(() => {
243
243
  if (!t) return { ...Me, top: 0, left: 0 };
244
244
  const c = t.getBoundingClientRect();
245
245
  return {
@@ -257,18 +257,18 @@ function ht({
257
257
  }, [e, o]), L(() => {
258
258
  if (!e) return;
259
259
  const c = (h) => {
260
- g.current && !g.current.contains(h.target) && o();
260
+ u.current && !u.current.contains(h.target) && o();
261
261
  };
262
262
  return document.addEventListener("pointerdown", c, !0), () => document.removeEventListener("pointerdown", c, !0);
263
263
  }, [e, o]), !e) return null;
264
- const C = s && s.length > 0, u = /* @__PURE__ */ O(
264
+ const C = s && s.length > 0, m = /* @__PURE__ */ O(
265
265
  "div",
266
266
  {
267
- ref: g,
267
+ ref: u,
268
268
  "data-status-chip-menu": n,
269
269
  role: "menu",
270
270
  "aria-label": "Status actions",
271
- style: m(),
271
+ style: g(),
272
272
  children: [
273
273
  /* @__PURE__ */ i(
274
274
  "button",
@@ -314,7 +314,7 @@ function ht({
314
314
  ]
315
315
  }
316
316
  );
317
- return nt(u, document.body);
317
+ return nt(m, document.body);
318
318
  }
319
319
  ht.displayName = "StatusSlotChipMenu";
320
320
  const La = {
@@ -390,26 +390,26 @@ const Fe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) =
390
390
  }
391
391
  );
392
392
  }, bt = Qe(
393
- function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: d = "right", ariaLabel: b = "Resize card" }, g) {
394
- const m = t === "handle-visible" || t === "dragging" || t === "settling", C = (h) => {
393
+ function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: r, onPointerLeave: s, onKeyboardStep: o, edge: d = "right", ariaLabel: b = "Resize card" }, u) {
394
+ const g = t === "handle-visible" || t === "dragging" || t === "settling", C = (h) => {
395
395
  try {
396
396
  h.currentTarget.setPointerCapture(h.pointerId);
397
397
  } catch {
398
398
  }
399
399
  n(h);
400
- }, u = (h) => {
400
+ }, m = (h) => {
401
401
  try {
402
402
  h.currentTarget.hasPointerCapture?.(h.pointerId) && h.currentTarget.releasePointerCapture(h.pointerId);
403
403
  } catch {
404
404
  }
405
405
  a(h);
406
406
  }, c = (h) => {
407
- !m || !o || (h.key === "ArrowRight" ? (h.preventDefault(), o("grow")) : h.key === "ArrowLeft" && (h.preventDefault(), o("shrink")));
407
+ !g || !o || (h.key === "ArrowRight" ? (h.preventDefault(), o("grow")) : h.key === "ArrowLeft" && (h.preventDefault(), o("shrink")));
408
408
  };
409
- return /* @__PURE__ */ i(Fe, { visible: m, variant: "handle", trigger: "hover", children: /* @__PURE__ */ i(
409
+ return /* @__PURE__ */ i(Fe, { visible: g, variant: "handle", trigger: "hover", children: /* @__PURE__ */ i(
410
410
  "button",
411
411
  {
412
- ref: g,
412
+ ref: u,
413
413
  type: "button",
414
414
  "aria-label": b,
415
415
  "data-edge": d,
@@ -417,14 +417,14 @@ const Fe = ({ visible: e, variant: t, trigger: n, children: a, className: r }) =
417
417
  className: [
418
418
  "gloss-edge-handle",
419
419
  `gloss-edge-handle--${d}`,
420
- m ? "gloss-edge-handle--visible" : ""
420
+ g ? "gloss-edge-handle--visible" : ""
421
421
  ].filter(Boolean).join(" "),
422
422
  onPointerDown: C,
423
- onPointerUp: u,
423
+ onPointerUp: m,
424
424
  onPointerEnter: r,
425
425
  onPointerLeave: s,
426
426
  onKeyDown: c,
427
- tabIndex: m ? 0 : -1
427
+ tabIndex: g ? 0 : -1
428
428
  }
429
429
  ) });
430
430
  }
@@ -479,8 +479,8 @@ class yt {
479
479
  const t = this.samples.length;
480
480
  if (t < 2) return 0;
481
481
  if (t === 2) {
482
- const [b, g] = this.samples, m = Math.max(1, g.t - b.t);
483
- return (g.x - b.x) / m * 1e3;
482
+ const [b, u] = this.samples, g = Math.max(1, u.t - b.t);
483
+ return (u.x - b.x) / g * 1e3;
484
484
  }
485
485
  const [n, a, r] = this.samples, s = (r.x - a.x) / Math.max(1, r.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, d = o;
486
486
  return (s * 3 + o * 2 + d * 1) / 6;
@@ -516,12 +516,12 @@ function Ha({
516
516
  tuning: o,
517
517
  dwellMs: d = 120,
518
518
  enterMs: b = 180,
519
- exitMs: g = 120,
520
- maxColSpan: m = 3,
519
+ exitMs: u = 120,
520
+ maxColSpan: g = 3,
521
521
  containerRef: C,
522
- forceIdle: u
522
+ forceIdle: m
523
523
  }) {
524
- const [c, h] = W("idle"), [x, f] = W(e), S = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), l = R(m), v = R(0), p = R("idle");
524
+ const [c, h] = W("idle"), [x, f] = W(e), S = R(null), I = R(null), N = R(null), _ = R(r), T = R(s), l = R(g), v = R(0), p = R("idle");
525
525
  L(() => {
526
526
  p.current = c;
527
527
  }, [c]);
@@ -550,8 +550,8 @@ function Ha({
550
550
  I.current && (clearTimeout(I.current), I.current = null);
551
551
  }, []);
552
552
  L(() => {
553
- u && (p.current === "dragging" || p.current === "settling" || (A(), j(), p.current = "idle", h("idle")));
554
- }, [u, A, j]);
553
+ m && (p.current === "dragging" || p.current === "settling" || (A(), j(), p.current = "idle", h("idle")));
554
+ }, [m, A, j]);
555
555
  const oe = y(() => {
556
556
  h((D) => D === "settling" || D !== "idle" ? D : (S.current = setTimeout(() => h("handle-visible"), d), "dwelling"));
557
557
  }, [d]), K = y(() => {
@@ -560,7 +560,7 @@ function Ha({
560
560
  (D, P, F) => {
561
561
  const B = _.current, Q = B * $.snapInFraction, Z = B * $.snapOutFraction, Y = P - F, q = Math.max(
562
562
  F,
563
- l.current ?? m
563
+ l.current ?? g
564
564
  );
565
565
  let z = Y;
566
566
  for (; F + z < q; ) {
@@ -576,15 +576,15 @@ function Ha({
576
576
  }
577
577
  return Math.min(q, Math.max(1, F + z));
578
578
  },
579
- [$.snapInFraction, $.snapOutFraction, m]
579
+ [$.snapInFraction, $.snapOutFraction, g]
580
580
  ), He = y(
581
581
  (D) => {
582
582
  if (p.current !== "handle-visible") return;
583
- M(), N.current = D.clientX, _.current = r, T.current = s, l.current = m;
583
+ M(), N.current = D.clientX, _.current = r, T.current = s, l.current = g;
584
584
  const P = e * r + (e - 1) * s;
585
585
  v.current = P, G.current.clear(), G.current.push({ x: D.clientX, t: performance.now() }), w.jump(P), p.current = "dragging", h("dragging");
586
586
  },
587
- [r, s, m, e, w, M]
587
+ [r, s, g, e, w, M]
588
588
  ), ke = y(
589
589
  (D) => D * _.current + (D - 1) * T.current,
590
590
  []
@@ -611,12 +611,12 @@ function Ha({
611
611
  ), Ve = y(
612
612
  (D) => {
613
613
  if (p.current !== "dragging") return;
614
- const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((l.current ?? m) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
614
+ const P = D.clientX - (N.current ?? D.clientX), F = _.current, Q = ((l.current ?? g) - e) * F, Z = (1 - e) * F, Y = Math.max(Z, Math.min(Q, P));
615
615
  G.current.push({ x: D.clientX, t: performance.now() });
616
616
  const q = ie(Y, V.current, e), z = q > e ? "grow" : q < e ? "shrink" : null;
617
617
  le(q, z);
618
618
  },
619
- [ie, e, m, le]
619
+ [ie, e, g, le]
620
620
  ), me = y(() => {
621
621
  if (A(), p.current === "dragging") {
622
622
  const D = v.current;
@@ -651,31 +651,31 @@ function Ha({
651
651
  return;
652
652
  }
653
653
  const D = (P) => {
654
- const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(m), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
654
+ const F = P.clientX - (N.current ?? P.clientX), B = v.current, Q = E(1), Z = E(g), Y = B + F, q = Math.max(Q, Math.min(Z, Y));
655
655
  w.set(q);
656
- const z = _.current, xe = (m - e) * z, te = (1 - e) * z, Ye = Math.max(te, Math.min(xe, F));
656
+ const z = _.current, xe = (g - e) * z, te = (1 - e) * z, Ye = Math.max(te, Math.min(xe, F));
657
657
  G.current.push({ x: P.clientX, t: performance.now() });
658
658
  const ge = ie(Ye, V.current, e);
659
659
  ge !== V.current && (V.current = ge, f(ge));
660
660
  };
661
661
  return window.addEventListener("pointermove", D), () => window.removeEventListener("pointermove", D);
662
- }, [c, e, w, ie, m, E]), L(() => () => {
662
+ }, [c, e, w, ie, g, E]), L(() => () => {
663
663
  A(), j();
664
664
  }, [A, j]), L(() => {
665
665
  if (c !== "cancelled") return;
666
- const D = setTimeout(() => h("idle"), g);
666
+ const D = setTimeout(() => h("idle"), u);
667
667
  return () => clearTimeout(D);
668
- }, [c, g]);
668
+ }, [c, u]);
669
669
  const je = y(
670
670
  (D) => {
671
671
  if (p.current === "settling") return;
672
- const F = Math.min(m, Math.max(1, e + (D === "grow" ? 1 : -1)));
672
+ const F = Math.min(g, Math.max(1, e + (D === "grow" ? 1 : -1)));
673
673
  if (F === e) return;
674
- _.current = r, T.current = s, l.current = m, G.current.clear();
674
+ _.current = r, T.current = s, l.current = g, G.current.clear();
675
675
  const B = e * r + (e - 1) * s;
676
676
  v.current = B, w.jump(B), le(F, D);
677
677
  },
678
- [e, r, s, m, w, le]
678
+ [e, r, s, g, w, le]
679
679
  ), _e = y(() => {
680
680
  j(), I.current = setTimeout(() => {
681
681
  p.current === "handle-visible" && (p.current = "idle", h("idle"));
@@ -703,7 +703,7 @@ function Ha({
703
703
  targetColSpan: x,
704
704
  ghostWidth: w,
705
705
  enterMs: b,
706
- exitMs: g
706
+ exitMs: u
707
707
  },
708
708
  onKeyboardStep: je,
709
709
  onTouchReveal: Ue,
@@ -994,16 +994,16 @@ function Oe({
994
994
  onManagePages: d
995
995
  }) {
996
996
  const b = y(
997
- (u) => {
998
- s(u), t();
997
+ (m) => {
998
+ s(m), t();
999
999
  },
1000
1000
  [s, t]
1001
- ), g = y(
1002
- (u, c) => {
1003
- (c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(u));
1001
+ ), u = y(
1002
+ (m, c) => {
1003
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), b(m));
1004
1004
  },
1005
1005
  [b]
1006
- ), m = y(() => {
1006
+ ), g = y(() => {
1007
1007
  o(), t();
1008
1008
  }, [o, t]), C = y(() => {
1009
1009
  d(), t();
@@ -1022,8 +1022,8 @@ function Oe({
1022
1022
  anchorRef: n,
1023
1023
  className: "gloss-page-dropdown",
1024
1024
  children: [
1025
- /* @__PURE__ */ i("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((u) => {
1026
- const c = u.id === r;
1025
+ /* @__PURE__ */ i("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((m) => {
1026
+ const c = m.id === r;
1027
1027
  return /* @__PURE__ */ O(
1028
1028
  "li",
1029
1029
  {
@@ -1032,8 +1032,8 @@ function Oe({
1032
1032
  "aria-current": c ? "page" : void 0,
1033
1033
  tabIndex: 0,
1034
1034
  className: `gloss-page-dropdown__item${c ? " gloss-page-dropdown__item--active" : ""}`,
1035
- onClick: () => b(u.id),
1036
- onKeyDown: (h) => g(u.id, h),
1035
+ onClick: () => b(m.id),
1036
+ onKeyDown: (h) => u(m.id, h),
1037
1037
  children: [
1038
1038
  /* @__PURE__ */ i(
1039
1039
  "span",
@@ -1044,14 +1044,14 @@ function Oe({
1044
1044
  /* @__PURE__ */ i(
1045
1045
  "span",
1046
1046
  {
1047
- className: `gloss-page-dropdown__name${u.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
1048
- children: u.name
1047
+ className: `gloss-page-dropdown__name${m.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
1048
+ children: m.name
1049
1049
  }
1050
1050
  ),
1051
- /* @__PURE__ */ i("span", { className: "gloss-page-dropdown__count", children: u.cardCount })
1051
+ /* @__PURE__ */ i("span", { className: "gloss-page-dropdown__count", children: m.cardCount })
1052
1052
  ]
1053
1053
  },
1054
- u.id
1054
+ m.id
1055
1055
  );
1056
1056
  }) }),
1057
1057
  /* @__PURE__ */ i("hr", { className: "gloss-page-dropdown__separator" }),
@@ -1060,7 +1060,7 @@ function Oe({
1060
1060
  {
1061
1061
  role: "menuitem",
1062
1062
  className: "gloss-page-dropdown__action",
1063
- onClick: m,
1063
+ onClick: g,
1064
1064
  children: "+ New page"
1065
1065
  }
1066
1066
  ),
@@ -1088,18 +1088,18 @@ const xt = function({
1088
1088
  onManagePages: o,
1089
1089
  maskRadius: d = "var(--gloss-radius-md)",
1090
1090
  displayMode: b = "count",
1091
- activePage: g
1091
+ activePage: u
1092
1092
  }) {
1093
- const m = R(null), [C, u] = W(!1), c = y(() => {
1094
- u((f) => !f);
1093
+ const g = R(null), [C, m] = W(!1), c = y(() => {
1094
+ m((f) => !f);
1095
1095
  }, []), h = y(() => {
1096
- u(!1);
1096
+ m(!1);
1097
1097
  }, []), x = a[t]?.id ?? "";
1098
1098
  return /* @__PURE__ */ O(
1099
1099
  "div",
1100
1100
  {
1101
1101
  className: "gloss-page-chip",
1102
- ref: m,
1102
+ ref: g,
1103
1103
  style: { position: "absolute", top: 0, right: 0 },
1104
1104
  "data-page-chip": !0,
1105
1105
  children: [
@@ -1116,10 +1116,10 @@ const xt = function({
1116
1116
  className: "gloss-page-chip__trigger",
1117
1117
  "aria-haspopup": "menu",
1118
1118
  "aria-expanded": C,
1119
- "aria-label": b === "name" ? `${g ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1119
+ "aria-label": b === "name" ? `${u ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1120
1120
  onClick: c,
1121
1121
  children: b === "name" ? /* @__PURE__ */ O(be, { children: [
1122
- /* @__PURE__ */ i("span", { className: "gloss-page-chip__trigger-name", children: g ?? "" }),
1122
+ /* @__PURE__ */ i("span", { className: "gloss-page-chip__trigger-name", children: u ?? "" }),
1123
1123
  /* @__PURE__ */ i("span", { className: "gloss-page-chip__trigger-chevron", "aria-hidden": "true", children: "▾" })
1124
1124
  ] }) : /* @__PURE__ */ O(be, { children: [
1125
1125
  t + 1,
@@ -1133,7 +1133,7 @@ const xt = function({
1133
1133
  {
1134
1134
  open: C,
1135
1135
  onDismiss: h,
1136
- anchorRef: m,
1136
+ anchorRef: g,
1137
1137
  pages: a,
1138
1138
  activePageId: x,
1139
1139
  onPageChange: r,
@@ -1826,33 +1826,33 @@ const At = ({
1826
1826
  }) => {
1827
1827
  const s = R(null), o = R([]), d = Ot(), b = se(() => Array.from(e), [e]);
1828
1828
  if (b.length === 0) return null;
1829
- const g = a ? `Configure ${a}: choose a dimension` : void 0, m = d ? "10ms" : "200ms", C = (u, c) => {
1829
+ const u = a ? `Configure ${a}: choose a dimension` : void 0, g = d ? "10ms" : "200ms", C = (m, c) => {
1830
1830
  const h = b.length - 1, x = (f) => {
1831
1831
  const S = o.current[f];
1832
1832
  S && S.focus();
1833
1833
  };
1834
- switch (u.key) {
1834
+ switch (m.key) {
1835
1835
  case "ArrowRight":
1836
1836
  case "ArrowDown": {
1837
- u.preventDefault(), x(c === h ? 0 : c + 1);
1837
+ m.preventDefault(), x(c === h ? 0 : c + 1);
1838
1838
  break;
1839
1839
  }
1840
1840
  case "ArrowLeft":
1841
1841
  case "ArrowUp": {
1842
- u.preventDefault(), x(c === 0 ? h : c - 1);
1842
+ m.preventDefault(), x(c === 0 ? h : c - 1);
1843
1843
  break;
1844
1844
  }
1845
1845
  case "Home": {
1846
- u.preventDefault(), x(0);
1846
+ m.preventDefault(), x(0);
1847
1847
  break;
1848
1848
  }
1849
1849
  case "End": {
1850
- u.preventDefault(), x(h);
1850
+ m.preventDefault(), x(h);
1851
1851
  break;
1852
1852
  }
1853
1853
  case "Enter":
1854
1854
  case " ": {
1855
- u.preventDefault(), t(b[c]);
1855
+ m.preventDefault(), t(b[c]);
1856
1856
  break;
1857
1857
  }
1858
1858
  }
@@ -1862,16 +1862,16 @@ const At = ({
1862
1862
  {
1863
1863
  ref: s,
1864
1864
  role: "group",
1865
- "aria-label": g,
1865
+ "aria-label": u,
1866
1866
  className: Re("gloss-reconfig-backside-buttons", r),
1867
1867
  style: {
1868
1868
  // Expose the reduced-motion-resolved duration as a CSS custom prop
1869
1869
  // so the SCSS transition rule can consume it without a nested media
1870
1870
  // query in the JS. Also surfaces the value for the unit test.
1871
- "--gloss-reconfig-backside-buttons-transition-duration": m
1871
+ "--gloss-reconfig-backside-buttons-transition-duration": g
1872
1872
  },
1873
- children: b.map((u, c) => {
1874
- const h = Et[u], x = n === u;
1873
+ children: b.map((m, c) => {
1874
+ const h = Et[m], x = n === m;
1875
1875
  return /* @__PURE__ */ O(
1876
1876
  "button",
1877
1877
  {
@@ -1879,13 +1879,13 @@ const At = ({
1879
1879
  o.current[c] = f;
1880
1880
  },
1881
1881
  type: "button",
1882
- "data-dimension": u,
1882
+ "data-dimension": m,
1883
1883
  className: Re(
1884
1884
  "gloss-reconfig-backside-buttons__button",
1885
1885
  x && "gloss-reconfig-backside-buttons__button--active"
1886
1886
  ),
1887
1887
  "aria-current": x ? "true" : void 0,
1888
- onClick: () => t(u),
1888
+ onClick: () => t(m),
1889
1889
  onKeyDown: (f) => C(f, c),
1890
1890
  children: [
1891
1891
  /* @__PURE__ */ i(
@@ -1895,10 +1895,10 @@ const At = ({
1895
1895
  "aria-hidden": "true"
1896
1896
  }
1897
1897
  ),
1898
- /* @__PURE__ */ i("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Ft[u] })
1898
+ /* @__PURE__ */ i("span", { className: "gloss-reconfig-backside-buttons__button-label", children: Ft[m] })
1899
1899
  ]
1900
1900
  },
1901
- u
1901
+ m
1902
1902
  );
1903
1903
  })
1904
1904
  }
@@ -2282,16 +2282,16 @@ function Ut(e = {}) {
2282
2282
  }
2283
2283
  Ut.displayName = "DevTuningPanel";
2284
2284
  function Zt() {
2285
- const e = Kt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), d = R(null), b = y((u) => {
2286
- d.current && clearTimeout(d.current), o(u), d.current = setTimeout(() => {
2285
+ const e = Kt(), { values: t, setValue: n, resetRow: a, resetAll: r } = e, [s, o] = W(null), d = R(null), b = y((m) => {
2286
+ d.current && clearTimeout(d.current), o(m), d.current = setTimeout(() => {
2287
2287
  o(null), d.current = null;
2288
2288
  }, 200);
2289
- }, []), g = y(
2290
- (u, c) => {
2291
- n(u, c), u === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
2289
+ }, []), u = y(
2290
+ (m, c) => {
2291
+ n(m, c), m === "snapInPx" && c > t.snapOutPx && (n("snapOutPx", c), b("snapOutPx"));
2292
2292
  },
2293
2293
  [n, t.snapOutPx, b]
2294
- ), m = se(() => Wt, []), C = tt();
2294
+ ), g = se(() => Wt, []), C = tt();
2295
2295
  return /* @__PURE__ */ O(
2296
2296
  de.div,
2297
2297
  {
@@ -2308,23 +2308,23 @@ function Zt() {
2308
2308
  "div",
2309
2309
  {
2310
2310
  className: "gloss-dev-tuning-panel__header",
2311
- onPointerDown: (u) => C.start(u),
2311
+ onPointerDown: (m) => C.start(m),
2312
2312
  children: [
2313
2313
  /* @__PURE__ */ i("span", { className: "gloss-dev-tuning-panel__title", children: "Resize Tuning — dev only" }),
2314
2314
  /* @__PURE__ */ i("span", { className: "gloss-dev-tuning-panel__hint", children: "?devtune=1" })
2315
2315
  ]
2316
2316
  }
2317
2317
  ),
2318
- /* @__PURE__ */ i("div", { className: "gloss-dev-tuning-panel__body", children: m.map((u) => /* @__PURE__ */ i(
2318
+ /* @__PURE__ */ i("div", { className: "gloss-dev-tuning-panel__body", children: g.map((m) => /* @__PURE__ */ i(
2319
2319
  Vt,
2320
2320
  {
2321
- spec: u,
2322
- value: t[u.key],
2323
- onChange: (c) => g(u.key, c),
2324
- onReset: () => a(u.key),
2325
- flashing: s === u.key
2321
+ spec: m,
2322
+ value: t[m.key],
2323
+ onChange: (c) => u(m.key, c),
2324
+ onReset: () => a(m.key),
2325
+ flashing: s === m.key
2326
2326
  },
2327
- u.key
2327
+ m.key
2328
2328
  )) }),
2329
2329
  /* @__PURE__ */ i("div", { className: "gloss-dev-tuning-panel__footer", children: /* @__PURE__ */ i(
2330
2330
  "button",
@@ -2349,22 +2349,22 @@ function Cn({
2349
2349
  snapBoundariesX: o,
2350
2350
  topY: d,
2351
2351
  bottomY: b,
2352
- enterMs: g = ee.envelopeEnterMs,
2353
- exitMs: m = ee.envelopeExitMs,
2352
+ enterMs: u = ee.envelopeEnterMs,
2353
+ exitMs: g = ee.envelopeExitMs,
2354
2354
  className: C,
2355
- style: u
2355
+ style: m
2356
2356
  }) {
2357
2357
  if (e === "hidden") return null;
2358
2358
  const c = Math.max(0, r - a), h = Math.max(0, b - d), x = {
2359
- "--gloss-resize-envelope-enter-ms": `${g}ms`,
2360
- "--gloss-resize-envelope-exit-ms": `${m}ms`,
2359
+ "--gloss-resize-envelope-enter-ms": `${u}ms`,
2360
+ "--gloss-resize-envelope-exit-ms": `${g}ms`,
2361
2361
  "--gloss-resize-envelope-origin-x": `${t - a}px`,
2362
2362
  "--gloss-resize-envelope-origin-y": `${n - d}px`,
2363
2363
  left: a,
2364
2364
  top: d,
2365
2365
  width: c,
2366
2366
  height: h,
2367
- ...u
2367
+ ...m
2368
2368
  };
2369
2369
  return /* @__PURE__ */ O(
2370
2370
  "div",
@@ -2482,29 +2482,31 @@ function xn({
2482
2482
  fadeInMs: n = ee.sectionDividerFadeInMs,
2483
2483
  fadeOutMs: a = ee.sectionDividerFadeOutMs,
2484
2484
  staggerMs: r = ee.sectionDividerStaggerMs,
2485
- className: s,
2486
- style: o,
2487
- ...d
2485
+ variant: s = "dashed",
2486
+ className: o,
2487
+ style: d,
2488
+ ...b
2488
2489
  }) {
2489
- const b = {
2490
+ const u = {
2490
2491
  "--gloss-section-divider-fade-in-ms": `${n}ms`,
2491
2492
  "--gloss-section-divider-fade-out-ms": `${a}ms`,
2492
2493
  "--gloss-section-divider-stagger-delay": `${t * r}ms`,
2493
- ...o
2494
+ ...d
2494
2495
  };
2495
2496
  return /* @__PURE__ */ i(
2496
2497
  "div",
2497
2498
  {
2498
- ...d,
2499
+ ...b,
2499
2500
  "data-state": e,
2500
2501
  "data-testid": "gloss-section-divider",
2501
2502
  "aria-hidden": "true",
2502
2503
  className: [
2503
2504
  "gloss-section-divider",
2504
2505
  `gloss-section-divider--state-${e}`,
2505
- s
2506
+ s === "seam-bleed" ? "gloss-section-divider--variant-seam-bleed" : "",
2507
+ o
2506
2508
  ].filter(Boolean).join(" "),
2507
- style: b
2509
+ style: u
2508
2510
  }
2509
2511
  );
2510
2512
  }
@@ -2539,7 +2541,7 @@ function Mn({
2539
2541
  children: d,
2540
2542
  className: b
2541
2543
  }) {
2542
- const g = t * n + (t - 1) * r;
2544
+ const u = t * n + (t - 1) * r;
2543
2545
  return /* @__PURE__ */ i(
2544
2546
  de.div,
2545
2547
  {
@@ -2551,7 +2553,7 @@ function Mn({
2551
2553
  `gloss-drag-ghost--tint-${e}`,
2552
2554
  b
2553
2555
  ].filter(Boolean).join(" "),
2554
- style: { x: s, y: o, width: g, height: a },
2556
+ style: { x: s, y: o, width: u, height: a },
2555
2557
  children: d
2556
2558
  }
2557
2559
  );
@@ -2565,7 +2567,7 @@ function Tn({
2565
2567
  transitionMs: s = 120,
2566
2568
  className: o
2567
2569
  }) {
2568
- const d = t * n + (t - 1) * a, b = e.col * (n + a), g = e.row * (r + a);
2570
+ const d = t * n + (t - 1) * a, b = e.col * (n + a), u = e.row * (r + a);
2569
2571
  return /* @__PURE__ */ i(
2570
2572
  "div",
2571
2573
  {
@@ -2573,7 +2575,7 @@ function Tn({
2573
2575
  "data-testid": "gloss-snap-outline",
2574
2576
  "aria-hidden": "true",
2575
2577
  style: {
2576
- transform: `translate(${b}px, ${g}px)`,
2578
+ transform: `translate(${b}px, ${u}px)`,
2577
2579
  width: d,
2578
2580
  height: r,
2579
2581
  transition: `transform ${s}ms cubic-bezier(0.4, 0, 0.2, 1)`
@@ -2623,12 +2625,12 @@ function qt({
2623
2625
  "[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
2624
2626
  );
2625
2627
  }, [a, r]), H.useLayoutEffect(() => {
2626
- let g = null;
2627
- if (a ? g = a : r && (g = document.querySelector(r)), g) {
2628
- const m = g.getBoundingClientRect();
2628
+ let u = null;
2629
+ if (a ? u = a : r && (u = document.querySelector(r)), u) {
2630
+ const g = u.getBoundingClientRect();
2629
2631
  o({
2630
- top: m.bottom + window.scrollY + 6,
2631
- left: m.left + window.scrollX
2632
+ top: g.bottom + window.scrollY + 6,
2633
+ left: g.left + window.scrollX
2632
2634
  });
2633
2635
  }
2634
2636
  }, [a, r]);
@@ -2699,10 +2701,10 @@ function Jt({
2699
2701
  ), 0.01) : r, d = y(
2700
2702
  (l) => Math.round(l / o) * o,
2701
2703
  [o]
2702
- ), b = R(null), [g, m] = W(null), [C, u] = W(e), c = Xt(e), h = R(c);
2704
+ ), b = R(null), [u, g] = W(null), [C, m] = W(e), c = Xt(e), h = R(c);
2703
2705
  L(() => {
2704
- h.current !== c && (h.current = c, !g && u(e));
2705
- }, [c, e, g]);
2706
+ h.current !== c && (h.current = c, !u && m(e));
2707
+ }, [c, e, u]);
2706
2708
  const x = se(() => Qt(C, n, a), [C, n, a]), f = y(
2707
2709
  (l) => {
2708
2710
  if (!b.current) return n;
@@ -2719,29 +2721,29 @@ function Jt({
2719
2721
  const S = y(
2720
2722
  (l, v) => {
2721
2723
  const p = C.find((w) => w.id === v);
2722
- s || p?.disabled || (l.preventDefault(), m(v));
2724
+ s || p?.disabled || (l.preventDefault(), g(v));
2723
2725
  },
2724
2726
  [s, C]
2725
2727
  ), I = R(C);
2726
2728
  I.current = C;
2727
2729
  const N = R(t);
2728
2730
  N.current = t, L(() => {
2729
- if (!g) return;
2731
+ if (!u) return;
2730
2732
  const l = (p) => {
2731
2733
  const w = f(p.clientX);
2732
- u(
2733
- (k) => k.map((M) => M.id === g ? { ...M, value: w } : M)
2734
+ m(
2735
+ (k) => k.map((M) => M.id === u ? { ...M, value: w } : M)
2734
2736
  );
2735
2737
  }, v = (p) => {
2736
2738
  const w = f(p.clientX), k = I.current.map(
2737
- (M) => M.id === g ? { ...M, value: w } : M
2739
+ (M) => M.id === u ? { ...M, value: w } : M
2738
2740
  );
2739
- u(k), m(null), N.current(k);
2741
+ m(k), g(null), N.current(k);
2740
2742
  };
2741
2743
  return window.addEventListener("pointermove", l), window.addEventListener("pointerup", v), window.addEventListener("pointercancel", v), () => {
2742
2744
  window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
2743
2745
  };
2744
- }, [g, f]);
2746
+ }, [u, f]);
2745
2747
  const _ = a - n > 0 ? a - n : 1, T = y(
2746
2748
  (l, v) => {
2747
2749
  if (s || v.disabled) return;
@@ -2773,7 +2775,7 @@ function Jt({
2773
2775
  const G = C.map(
2774
2776
  (V) => V.id === v.id ? { ...V, value: E } : V
2775
2777
  );
2776
- u(G), t(G);
2778
+ m(G), t(G);
2777
2779
  },
2778
2780
  [s, n, a, C, t, d]
2779
2781
  );
@@ -2794,7 +2796,7 @@ function Jt({
2794
2796
  color: De(l)
2795
2797
  },
2796
2798
  "data-disabled": l.disabled || void 0,
2797
- "data-dragging": g === l.id || void 0,
2799
+ "data-dragging": u === l.id || void 0,
2798
2800
  onPointerDown: (p) => S(p, l.id),
2799
2801
  onKeyDown: (p) => T(p, l),
2800
2802
  "aria-label": l.label ?? `Stop at ${l.value}`,
@@ -2820,15 +2822,15 @@ function ta({ option: e }) {
2820
2822
  const t = ea(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, r = y(() => {
2821
2823
  a || t?.select(e.value);
2822
2824
  }, [a, t, e.value]), s = y(
2823
- (g) => {
2824
- a || t?.onKeyNav(g, e.value);
2825
+ (u) => {
2826
+ a || t?.onKeyNav(u, e.value);
2825
2827
  },
2826
2828
  [a, t, e.value]
2827
2829
  ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", d = t?.firstFocusableValue === e.value, b = a ? -1 : d ? 0 : -1;
2828
2830
  return /* @__PURE__ */ i(
2829
2831
  "button",
2830
2832
  {
2831
- ref: (g) => t?.registerRef(e.value, g),
2833
+ ref: (u) => t?.registerRef(e.value, u),
2832
2834
  type: "button",
2833
2835
  role: "radio",
2834
2836
  "aria-checked": n,
@@ -2854,18 +2856,18 @@ function aa({
2854
2856
  disabled: r = !1,
2855
2857
  name: s
2856
2858
  }) {
2857
- const o = t !== void 0, [d, b] = W(n), g = o ? t : d, m = y(
2859
+ const o = t !== void 0, [d, b] = W(n), u = o ? t : d, g = y(
2858
2860
  (N) => {
2859
2861
  o || b(N), a?.(N);
2860
2862
  },
2861
2863
  [o, a]
2862
2864
  ), C = y(
2863
- (N) => g === N,
2864
- [g]
2865
- ), u = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
2866
- _ ? u.current.set(N, _) : u.current.delete(N);
2867
- }, []), h = e.filter((N) => !N.disabled && !r), x = h.find((N) => N.value === g)?.value ?? h[0]?.value, f = y((N) => {
2868
- const _ = u.current.get(N);
2865
+ (N) => u === N,
2866
+ [u]
2867
+ ), m = R(/* @__PURE__ */ new Map()), c = y((N, _) => {
2868
+ _ ? m.current.set(N, _) : m.current.delete(N);
2869
+ }, []), h = e.filter((N) => !N.disabled && !r), x = h.find((N) => N.value === u)?.value ?? h[0]?.value, f = y((N) => {
2870
+ const _ = m.current.get(N);
2869
2871
  _ && _.focus();
2870
2872
  }, []), S = y(
2871
2873
  (N, _) => {
@@ -2892,19 +2894,19 @@ function aa({
2892
2894
  break;
2893
2895
  case " ":
2894
2896
  case "Enter":
2895
- N.preventDefault(), m(_);
2897
+ N.preventDefault(), g(_);
2896
2898
  return;
2897
2899
  default:
2898
2900
  return;
2899
2901
  }
2900
2902
  N.preventDefault();
2901
2903
  const p = T[v].value;
2902
- f(p), m(p);
2904
+ f(p), g(p);
2903
2905
  },
2904
- [r, e, m, f]
2906
+ [r, e, g, f]
2905
2907
  ), I = {
2906
- selectedValue: g,
2907
- select: m,
2908
+ selectedValue: u,
2909
+ select: g,
2908
2910
  isSelected: C,
2909
2911
  groupDisabled: r,
2910
2912
  name: s,
@@ -2949,17 +2951,17 @@ function sa(e) {
2949
2951
  ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
2950
2952
  ), [a, r] = W(null), [s, o] = W(null), d = R(null), b = R(e.onZoneChange);
2951
2953
  b.current = e.onZoneChange;
2952
- const g = se(
2954
+ const u = se(
2953
2955
  () => ra(e.zones),
2954
2956
  [e.zones]
2955
- ), m = R(g);
2957
+ ), g = R(u);
2956
2958
  L(() => {
2957
- m.current !== g && (m.current = g, !a && n(
2959
+ g.current !== u && (g.current = u, !a && n(
2958
2960
  e.zones.map((f) => f.maxItems !== void 0 && f.items.length > f.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
2959
2961
  `useSortableZones: zone "${f.zoneKey}" exceeds maxItems (${f.items.length} > ${f.maxItems}); trimming to cap.`
2960
2962
  ), { ...f, items: f.items.slice(0, f.maxItems) }) : f)
2961
2963
  ));
2962
- }, [g, e.zones, a]);
2964
+ }, [u, e.zones, a]);
2963
2965
  const C = y(
2964
2966
  (f) => {
2965
2967
  const S = f.active.id;
@@ -2974,7 +2976,7 @@ function sa(e) {
2974
2976
  d.current = N, r(I), o(N);
2975
2977
  },
2976
2978
  [t]
2977
- ), u = y(
2979
+ ), m = y(
2978
2980
  (f) => {
2979
2981
  if (!f.over) {
2980
2982
  o(d.current);
@@ -3051,7 +3053,7 @@ function sa(e) {
3051
3053
  getZoneProps: h,
3052
3054
  getItemProps: x,
3053
3055
  handleDragStart: C,
3054
- handleDragOver: u,
3056
+ handleDragOver: m,
3055
3057
  handleDragEnd: c
3056
3058
  };
3057
3059
  }
@@ -3105,11 +3107,11 @@ function da(e) {
3105
3107
  const { zones: t, onZoneChange: n, renderZone: a, renderItem: r, renderDragOverlay: s } = e, o = sa({ zones: t, onZoneChange: n }), [d, b] = H.useState(ne);
3106
3108
  return H.useEffect(() => {
3107
3109
  if (d) return;
3108
- let g = !0;
3109
- return ca().then((m) => {
3110
- g && b(m);
3110
+ let u = !0;
3111
+ return ca().then((g) => {
3112
+ u && b(g);
3111
3113
  }), () => {
3112
- g = !1;
3114
+ u = !1;
3113
3115
  };
3114
3116
  }, [d]), d ? /* @__PURE__ */ i(
3115
3117
  Ke,
@@ -3120,9 +3122,9 @@ function da(e) {
3120
3122
  renderItem: r,
3121
3123
  renderDragOverlay: s
3122
3124
  }
3123
- ) : /* @__PURE__ */ i("div", { "data-sortable-zones-passive": "true", children: o.zones.map((g) => {
3124
- const m = g.items.map((C) => /* @__PURE__ */ i(H.Fragment, { children: r(C) }, C.id));
3125
- return /* @__PURE__ */ i("div", { ...o.getZoneProps(g.zoneKey), children: a(g.zoneKey, g.items, m) }, g.zoneKey);
3125
+ ) : /* @__PURE__ */ i("div", { "data-sortable-zones-passive": "true", children: o.zones.map((u) => {
3126
+ const g = u.items.map((C) => /* @__PURE__ */ i(H.Fragment, { children: r(C) }, C.id));
3127
+ return /* @__PURE__ */ i("div", { ...o.getZoneProps(u.zoneKey), children: a(u.zoneKey, u.items, g) }, u.zoneKey);
3126
3128
  }) });
3127
3129
  }
3128
3130
  da.displayName = "SortableZones";
@@ -3133,10 +3135,10 @@ function Ke({
3133
3135
  renderItem: a,
3134
3136
  renderDragOverlay: r
3135
3137
  }) {
3136
- const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay: g, useSensors: m, useSensor: C, useDroppable: u, PointerSensor: c, KeyboardSensor: h, closestCenter: x } = s, { SortableContext: f, verticalListSortingStrategy: S } = o, I = m(
3138
+ const { core: s, sortable: o, utilities: d } = t, { DndContext: b, DragOverlay: u, useSensors: g, useSensor: C, useDroppable: m, PointerSensor: c, KeyboardSensor: h, closestCenter: x } = s, { SortableContext: f, verticalListSortingStrategy: S } = o, I = g(
3137
3139
  C(c, { activationConstraint: { distance: 5 } }),
3138
3140
  C(h)
3139
- ), N = b, _ = g, T = f;
3141
+ ), N = b, _ = u, T = f;
3140
3142
  return /* @__PURE__ */ O(
3141
3143
  N,
3142
3144
  {
@@ -3162,7 +3164,7 @@ function Ke({
3162
3164
  {
3163
3165
  zoneKey: l.zoneKey,
3164
3166
  zoneProps: e.getZoneProps(l.zoneKey),
3165
- useDroppable: u,
3167
+ useDroppable: m,
3166
3168
  children: /* @__PURE__ */ i(T, { items: v, strategy: S, children: n(l.zoneKey, l.items, p) })
3167
3169
  },
3168
3170
  l.zoneKey
@@ -3175,12 +3177,12 @@ function Ke({
3175
3177
  }
3176
3178
  Ke.displayName = "SortableZonesInner";
3177
3179
  function We({ id: e, useSortable: t, cssHelper: n, children: a }) {
3178
- const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging: g } = t({ id: e }), m = {
3180
+ const { attributes: r, listeners: s, setNodeRef: o, transform: d, transition: b, isDragging: u } = t({ id: e }), g = {
3179
3181
  transform: n?.Transform?.toString(d) ?? void 0,
3180
3182
  transition: b,
3181
- opacity: g ? 0.5 : 1
3183
+ opacity: u ? 0.5 : 1
3182
3184
  };
3183
- return /* @__PURE__ */ i("div", { ref: o, style: m, "data-sortable-item-id": e, ...r, ...s, children: a });
3185
+ return /* @__PURE__ */ i("div", { ref: o, style: g, "data-sortable-item-id": e, ...r, ...s, children: a });
3184
3186
  }
3185
3187
  We.displayName = "SortableItem";
3186
3188
  function Ge({
@@ -3260,38 +3262,38 @@ function Pn({
3260
3262
  "aria-label": a,
3261
3263
  "data-testid": "gloss-section-dots",
3262
3264
  className: "gloss-section-dots",
3263
- onKeyDown: (g) => {
3265
+ onKeyDown: (u) => {
3264
3266
  if (e !== 0) {
3265
- if (g.key === "ArrowRight") {
3266
- g.preventDefault();
3267
- const m = (t + 1) % e;
3268
- n(m), requestAnimationFrame(() => d.current[m]?.focus());
3269
- } else if (g.key === "ArrowLeft") {
3270
- g.preventDefault();
3271
- const m = (t - 1 + e) % e;
3272
- n(m), requestAnimationFrame(() => d.current[m]?.focus());
3267
+ if (u.key === "ArrowRight") {
3268
+ u.preventDefault();
3269
+ const g = (t + 1) % e;
3270
+ n(g), requestAnimationFrame(() => d.current[g]?.focus());
3271
+ } else if (u.key === "ArrowLeft") {
3272
+ u.preventDefault();
3273
+ const g = (t - 1 + e) % e;
3274
+ n(g), requestAnimationFrame(() => d.current[g]?.focus());
3273
3275
  }
3274
3276
  }
3275
3277
  },
3276
- children: Array.from({ length: e }, (g, m) => /* @__PURE__ */ i(
3278
+ children: Array.from({ length: e }, (u, g) => /* @__PURE__ */ i(
3277
3279
  "button",
3278
3280
  {
3279
3281
  ref: (C) => {
3280
- d.current[m] = C;
3282
+ d.current[g] = C;
3281
3283
  },
3282
3284
  type: "button",
3283
3285
  role: "tab",
3284
- "aria-selected": m === t,
3285
- "aria-label": m === r ? "Unconfirmed section" : `Section ${m + 1}`,
3286
- "data-state": m === r ? "provisional-hollow" : m === s ? "pulse" : m === t ? "current" : "hollow",
3287
- "data-section-index": m,
3286
+ "aria-selected": g === t,
3287
+ "aria-label": g === r ? "Unconfirmed section" : `Section ${g + 1}`,
3288
+ "data-state": g === r ? "provisional-hollow" : g === s ? "pulse" : g === t ? "current" : "hollow",
3289
+ "data-section-index": g,
3288
3290
  className: [
3289
3291
  "gloss-section-dots__dot",
3290
- m === t && "gloss-section-dots__dot--current"
3292
+ g === t && "gloss-section-dots__dot--current"
3291
3293
  ].filter(Boolean).join(" "),
3292
- onClick: () => n(m)
3294
+ onClick: () => n(g)
3293
3295
  },
3294
- m === s ? `${m}-${o ?? 0}` : m
3296
+ g === s ? `${g}-${o ?? 0}` : g
3295
3297
  ))
3296
3298
  }
3297
3299
  );