@mt-gloss/ui 0.1.138 → 0.1.140

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.
@@ -1,31 +1,31 @@
1
1
  import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
2
  import { motion as ie } from "framer-motion";
3
- import Z, { useSyncExternalStore as le, useState as A, useRef as O, useMemo as z, useEffect as w, useCallback as T, createContext as ae, useContext as W, useReducer as ce, useId as X, useLayoutEffect as G } from "react";
4
- import { z as L } from "zod";
5
- const Je = {
3
+ import B, { useSyncExternalStore as le, useState as F, useRef as O, useMemo as z, useEffect as w, useCallback as T, createContext as ae, useContext as W, useReducer as ce, useId as X, useLayoutEffect as G } from "react";
4
+ import { z as K } from "zod";
5
+ const We = {
6
6
  forwardStaggerMs: 50,
7
7
  reverseStaggerMs: 30,
8
8
  springStiffness: 380,
9
9
  springDamping: 32,
10
10
  reverseVelocityMultiplier: 1.4
11
- }, en = {
11
+ }, Xe = {
12
12
  enterDurationMs: 220,
13
13
  exitDurationMs: 140,
14
14
  enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
15
15
  exitEasing: "cubic-bezier(0.4, 0, 1, 1)",
16
16
  translateOffsetPx: 8
17
- }, nn = {
17
+ }, Ge = {
18
18
  shiverCycles: 3,
19
19
  shiverAmplitudePx: 2,
20
20
  shiverDurationMs: 180,
21
21
  validCellOpacity: 0.6
22
- }, tn = {
22
+ }, Je = {
23
23
  materializeMs: 180,
24
24
  dematerializeMs: 140,
25
25
  easing: "cubic-bezier(0.22, 1, 0.36, 1)",
26
26
  dotStrokePx: 2,
27
27
  dividerDashGapPx: 4
28
- }, rn = {
28
+ }, en = {
29
29
  cascadeStaggerMs: 0,
30
30
  cascadeSpringCapMs: 120,
31
31
  swingEnterMs: 100,
@@ -34,7 +34,7 @@ const Je = {
34
34
  provisionalStyle: "opacity",
35
35
  shiverMs: 200,
36
36
  shiverStyle: "color-flash"
37
- }, on = !0, sn = {
37
+ }, nn = !0, tn = {
38
38
  rejectionFill: "var(--gloss-rejection-fill)",
39
39
  rejectionStroke: "var(--gloss-rejection-stroke)",
40
40
  validFill: "var(--gloss-valid-fill)",
@@ -42,7 +42,7 @@ const Je = {
42
42
  validCellStroke: "var(--gloss-valid-cell-stroke)",
43
43
  provisionalWash: "var(--gloss-provisional-wash)"
44
44
  };
45
- function ln() {
45
+ function rn() {
46
46
  if (typeof window > "u") return "full";
47
47
  try {
48
48
  return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "reduced" : "full";
@@ -141,22 +141,22 @@ function Q(e, n) {
141
141
  const t = e.find((r) => r.zoneKey === n);
142
142
  return t ? t.zoneKey : U(e, n);
143
143
  }
144
- function he(e, n, t) {
144
+ function ve(e, n, t) {
145
145
  const r = [...e], [s] = r.splice(n, 1);
146
146
  return r.splice(t, 0, s), r;
147
147
  }
148
- function ve(e) {
148
+ function he(e) {
149
149
  return e.map((n) => `${n.zoneKey}:${n.items.map((t) => t.id).join(",")}`).join("|");
150
150
  }
151
151
  function ye(e) {
152
- const [n, t] = A(
152
+ const [n, t] = F(
153
153
  () => e.zones.map((l) => l.maxItems !== void 0 && l.items.length > l.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
154
154
  `useSortableZones: zone "${l.zoneKey}" exceeds maxItems (${l.items.length} > ${l.maxItems}); trimming to cap.`
155
155
  ), { ...l, items: l.items.slice(0, l.maxItems) }) : l)
156
- ), [r, s] = A(null), [a, c] = A(null), o = O(null), p = O(e.onZoneChange);
156
+ ), [r, s] = F(null), [a, c] = F(null), o = O(null), p = O(e.onZoneChange);
157
157
  p.current = e.onZoneChange;
158
158
  const u = z(
159
- () => ve(e.zones),
159
+ () => he(e.zones),
160
160
  [e.zones]
161
161
  ), d = O(u);
162
162
  w(() => {
@@ -204,42 +204,42 @@ function ye(e) {
204
204
  y();
205
205
  return;
206
206
  }
207
- let f = n.map((E) => ({ ...E, items: [...E.items] }));
207
+ let f = n.map((I) => ({ ...I, items: [...I.items] }));
208
208
  if (b === P) {
209
- const E = f.findIndex((D) => D.zoneKey === b), I = f[E], h = I.items.findIndex((D) => D.id === g.id), S = I.items.findIndex((D) => D.id === C.id), R = S >= 0 ? S : Math.max(0, I.items.length - 1);
210
- f[E] = {
211
- ...I,
212
- items: he(I.items, h, R)
209
+ const I = f.findIndex((D) => D.zoneKey === b), E = f[I], v = E.items.findIndex((D) => D.id === g.id), S = E.items.findIndex((D) => D.id === C.id), M = S >= 0 ? S : Math.max(0, E.items.length - 1);
210
+ f[I] = {
211
+ ...E,
212
+ items: ve(E.items, v, M)
213
213
  };
214
214
  } else {
215
- const E = f.findIndex((v) => v.zoneKey === b), I = f.findIndex((v) => v.zoneKey === P), h = f[E], S = f[I], R = h.items.find((v) => v.id === g.id);
216
- if (!R) {
215
+ const I = f.findIndex((h) => h.zoneKey === b), E = f.findIndex((h) => h.zoneKey === P), v = f[I], S = f[E], M = v.items.find((h) => h.id === g.id);
216
+ if (!M) {
217
217
  y();
218
218
  return;
219
219
  }
220
- const D = h.items.filter((v) => v.id !== g.id), $ = S.items.findIndex((v) => v.id === C.id), oe = $ >= 0 ? $ : S.items.length;
220
+ const D = v.items.filter((h) => h.id !== g.id), $ = S.items.findIndex((h) => h.id === C.id), oe = $ >= 0 ? $ : S.items.length;
221
221
  let j = D, x = [...S.items];
222
222
  if (S.maxItems !== void 0 && x.length >= S.maxItems) {
223
- const v = x[x.length - 1];
224
- x = x.slice(0, S.maxItems - 1), j = [...D, v];
223
+ const h = x[x.length - 1];
224
+ x = x.slice(0, S.maxItems - 1), j = [...D, h];
225
225
  }
226
226
  const q = Math.min(oe, x.length), se = [
227
227
  ...x.slice(0, q),
228
- R,
228
+ M,
229
229
  ...x.slice(q)
230
230
  ];
231
- f[E] = { ...h, items: j }, f[I] = { ...S, items: se };
231
+ f[I] = { ...v, items: j }, f[E] = { ...S, items: se };
232
232
  }
233
233
  t(f), p.current?.(f), y();
234
234
  },
235
235
  [n]
236
- ), H = T(
236
+ ), A = T(
237
237
  (l) => ({
238
238
  id: l,
239
239
  "data-zone-key": l
240
240
  }),
241
241
  []
242
- ), B = T(
242
+ ), H = T(
243
243
  (l) => {
244
244
  const g = U(n, l.id) ?? "";
245
245
  return {
@@ -254,15 +254,15 @@ function ye(e) {
254
254
  zones: n,
255
255
  activeZone: a,
256
256
  activeItem: r,
257
- getZoneProps: H,
258
- getItemProps: B,
257
+ getZoneProps: A,
258
+ getItemProps: H,
259
259
  handleDragStart: m,
260
260
  handleDragOver: _,
261
261
  handleDragEnd: k
262
262
  };
263
263
  }
264
- let M = null, F = null, K = !1;
265
- const Ee = [
264
+ let L = null, R = null, Z = !1;
265
+ const Ie = [
266
266
  "DndContext",
267
267
  "DragOverlay",
268
268
  "useSensors",
@@ -271,22 +271,22 @@ const Ee = [
271
271
  "PointerSensor",
272
272
  "KeyboardSensor",
273
273
  "closestCenter"
274
- ], Ie = [
274
+ ], Ee = [
275
275
  "SortableContext",
276
276
  "useSortable",
277
277
  "verticalListSortingStrategy"
278
278
  ];
279
279
  function Se(e, n) {
280
280
  const t = [], r = e ?? {};
281
- for (const a of Ee)
281
+ for (const a of Ie)
282
282
  r[a] === void 0 && t.push(`@dnd-kit/core:${a}`);
283
283
  const s = n ?? {};
284
- for (const a of Ie)
284
+ for (const a of Ee)
285
285
  s[a] === void 0 && t.push(`@dnd-kit/sortable:${a}`);
286
286
  return t.length === 0 ? { ok: !0 } : { ok: !1, missing: t };
287
287
  }
288
288
  function Ce() {
289
- return M ? Promise.resolve(M) : K ? Promise.resolve(null) : F || (F = (async () => {
289
+ return L ? Promise.resolve(L) : Z ? Promise.resolve(null) : R || (R = (async () => {
290
290
  try {
291
291
  const [e, n, t] = await Promise.all([
292
292
  import("@dnd-kit/core"),
@@ -295,21 +295,21 @@ function Ce() {
295
295
  "SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
296
296
  ), {}))
297
297
  ]), r = Se(e, n);
298
- return r.ok ? (M = {
298
+ return r.ok ? (L = {
299
299
  core: e,
300
300
  sortable: n,
301
301
  utilities: t
302
- }, M) : (K = !0, process.env.NODE_ENV !== "production" && console.error(
302
+ }, L) : (Z = !0, process.env.NODE_ENV !== "production" && console.error(
303
303
  `SortableZones: @dnd-kit shape mismatch — missing exports: ${r.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
304
304
  ), null);
305
305
  } catch {
306
- return K = !0, null;
306
+ return Z = !0, null;
307
307
  }
308
- })(), F);
308
+ })(), R);
309
309
  }
310
310
  function be(e) {
311
- const { zones: n, onZoneChange: t, renderZone: r, renderItem: s, renderDragOverlay: a } = e, c = ye({ zones: n, onZoneChange: t }), [o, p] = Z.useState(M);
312
- return Z.useEffect(() => {
311
+ const { zones: n, onZoneChange: t, renderZone: r, renderItem: s, renderDragOverlay: a } = e, c = ye({ zones: n, onZoneChange: t }), [o, p] = B.useState(L);
312
+ return B.useEffect(() => {
313
313
  if (o) return;
314
314
  let u = !0;
315
315
  return Ce().then((d) => {
@@ -327,7 +327,7 @@ function be(e) {
327
327
  renderDragOverlay: a
328
328
  }
329
329
  ) : /* @__PURE__ */ i("div", { "data-sortable-zones-passive": "true", children: c.zones.map((u) => {
330
- const d = u.items.map((m) => /* @__PURE__ */ i(Z.Fragment, { children: s(m) }, m.id));
330
+ const d = u.items.map((m) => /* @__PURE__ */ i(B.Fragment, { children: s(m) }, m.id));
331
331
  return /* @__PURE__ */ i("div", { ...c.getZoneProps(u.zoneKey), children: r(u.zoneKey, u.items, d) }, u.zoneKey);
332
332
  }) });
333
333
  }
@@ -339,29 +339,29 @@ function ne({
339
339
  renderItem: r,
340
340
  renderDragOverlay: s
341
341
  }) {
342
- const { core: a, sortable: c, utilities: o } = n, { DndContext: p, DragOverlay: u, useSensors: d, useSensor: m, useDroppable: _, PointerSensor: k, KeyboardSensor: H, closestCenter: B } = a, { SortableContext: l, verticalListSortingStrategy: g } = c, C = d(
342
+ const { core: a, sortable: c, utilities: o } = n, { DndContext: p, DragOverlay: u, useSensors: d, useSensor: m, useDroppable: _, PointerSensor: k, KeyboardSensor: A, closestCenter: H } = a, { SortableContext: l, verticalListSortingStrategy: g } = c, C = d(
343
343
  m(k, { activationConstraint: { distance: 5 } }),
344
- m(H)
344
+ m(A)
345
345
  ), y = p, b = u, P = l;
346
346
  return /* @__PURE__ */ N(
347
347
  y,
348
348
  {
349
349
  sensors: C,
350
- collisionDetection: B,
350
+ collisionDetection: H,
351
351
  onDragStart: e.handleDragStart,
352
352
  onDragOver: e.handleDragOver,
353
353
  onDragEnd: e.handleDragEnd,
354
354
  children: [
355
355
  e.zones.map((f) => {
356
- const E = f.items.map((h) => h.id), I = f.items.map((h) => /* @__PURE__ */ i(
356
+ const I = f.items.map((v) => v.id), E = f.items.map((v) => /* @__PURE__ */ i(
357
357
  te,
358
358
  {
359
- id: h.id,
359
+ id: v.id,
360
360
  useSortable: c.useSortable,
361
361
  cssHelper: o.CSS,
362
- children: r(h)
362
+ children: r(v)
363
363
  },
364
- h.id
364
+ v.id
365
365
  ));
366
366
  return /* @__PURE__ */ i(
367
367
  re,
@@ -369,7 +369,7 @@ function ne({
369
369
  zoneKey: f.zoneKey,
370
370
  zoneProps: e.getZoneProps(f.zoneKey),
371
371
  useDroppable: _,
372
- children: /* @__PURE__ */ i(P, { items: E, strategy: g, children: t(f.zoneKey, f.items, I) })
372
+ children: /* @__PURE__ */ i(P, { items: I, strategy: g, children: t(f.zoneKey, f.items, E) })
373
373
  },
374
374
  f.zoneKey
375
375
  );
@@ -411,31 +411,19 @@ function _e() {
411
411
  function Pe() {
412
412
  return W(V);
413
413
  }
414
- const De = L.number().min(0).max(100), xe = L.number().min(7).max(90), Ne = L.enum(["#1d6fd8", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6"]), Oe = L.array(L.string().min(1)).max(3), we = L.boolean();
415
- function Te(e, n) {
416
- if (e === "threshold") {
417
- const t = De.safeParse(n);
418
- return t.success ? t.data : 80;
419
- }
414
+ const De = K.number().min(7).max(90), xe = K.array(K.string().min(1)).max(6);
415
+ function Ne(e, n) {
420
416
  if (e === "timeframe") {
421
- const t = xe.safeParse(n);
417
+ const t = De.safeParse(n);
422
418
  return t.success ? t.data : 30;
423
419
  }
424
- if (e === "accent") {
425
- const t = Ne.safeParse(n);
426
- return t.success ? t.data : null;
427
- }
428
420
  if (e === "slots") {
429
- const t = Oe.safeParse(n);
421
+ const t = xe.safeParse(n);
430
422
  return t.success ? t.data : [];
431
423
  }
432
- if (e === "thresholdEnabled" || e === "accentEnabled") {
433
- const t = we.safeParse(n);
434
- return t.success ? t.data : !1;
435
- }
436
424
  return n;
437
425
  }
438
- const Le = {
426
+ const Oe = {
439
427
  activePanelId: null,
440
428
  activeTrigger: null,
441
429
  bellCutoutOpen: !1,
@@ -446,7 +434,7 @@ const Le = {
446
434
  lastClose: null,
447
435
  pendingSideEffects: []
448
436
  }, Y = /* @__PURE__ */ new Set(["settings"]);
449
- function ke(e, n) {
437
+ function we(e, n) {
450
438
  if (e == null || e.kind !== n.kind) return !1;
451
439
  switch (e.kind) {
452
440
  case "bell":
@@ -461,7 +449,7 @@ function ke(e, n) {
461
449
  return e.action === n.action && e.blockedCardId === n.blockedCardId && e.activeCardId === n.activeCardId;
462
450
  }
463
451
  }
464
- function Me(e, n) {
452
+ function Te(e, n) {
465
453
  switch (n.type) {
466
454
  case "OPEN_PANEL": {
467
455
  if (e.activePanelId && e.isDirty)
@@ -479,7 +467,7 @@ function Me(e, n) {
479
467
  }
480
468
  ]
481
469
  };
482
- if (e.activePanelId === n.panelId && ke(e.activeTrigger, n.trigger))
470
+ if (e.activePanelId === n.panelId && we(e.activeTrigger, n.trigger))
483
471
  return e;
484
472
  const t = e.activePanelId != null ? [
485
473
  {
@@ -549,7 +537,7 @@ function Me(e, n) {
549
537
  { type: "INVALID_DISPATCH", reason: "no-buffer-panel" }
550
538
  ]
551
539
  };
552
- const t = e.bufferByCard[n.cardId], r = t == null, s = Te(n.key, n.value);
540
+ const t = e.bufferByCard[n.cardId], r = t == null, s = Ne(n.key, n.value);
553
541
  if (!r && t.changes[n.key] === s)
554
542
  return e;
555
543
  const c = { kind: "settings", changes: {
@@ -623,11 +611,11 @@ function Me(e, n) {
623
611
  return e;
624
612
  }
625
613
  }
626
- function Re(e) {
614
+ function ke(e) {
627
615
  return e.activePanelId === "notification-center" ? "notif-center" : e.activePanelId != null && e.bellCutoutOpen ? e.isDirty ? "panel-dirty+cutout" : "panel-clean+cutout" : e.activePanelId != null ? e.isDirty ? "panel-dirty" : "panel-clean" : e.bellCutoutOpen ? "bell-cutout-only" : "idle";
628
616
  }
629
- function Fe() {
630
- const [e, n] = ce(Me, Le), t = O([]), r = O(null);
617
+ function Le() {
618
+ const [e, n] = ce(Te, Oe), t = O([]), r = O(null);
631
619
  w(() => () => {
632
620
  r.current != null && (window.clearTimeout(r.current), r.current = null);
633
621
  }, []), w(() => {
@@ -661,13 +649,13 @@ function Fe() {
661
649
  ];
662
650
  }, [e.lastClose]);
663
651
  const s = z(
664
- () => Re(e),
652
+ () => ke(e),
665
653
  [e.activePanelId, e.bellCutoutOpen, e.isDirty]
666
654
  ), a = T(() => t.current.slice(), []);
667
655
  return { state: e, surfaceState: s, dispatch: n, getCloseLog: a };
668
656
  }
669
- function an({ children: e }) {
670
- const n = Fe(), t = z(
657
+ function on({ children: e }) {
658
+ const n = Le(), t = z(
671
659
  () => n,
672
660
  // Re-publish only when one of the four coordinator fields changes identity.
673
661
  // dispatch + getCloseLog are stable. state + surfaceState change on dispatch.
@@ -675,7 +663,7 @@ function an({ children: e }) {
675
663
  );
676
664
  return /* @__PURE__ */ i(V.Provider, { value: t, children: e });
677
665
  }
678
- function Ae({ title: e, onClose: n, titleId: t }) {
666
+ function Me({ title: e, onClose: n, titleId: t }) {
679
667
  return /* @__PURE__ */ N("div", { className: "gloss-panel-chrome-v2__header", children: [
680
668
  e != null && /* @__PURE__ */ i("span", { id: t, className: "gloss-panel-chrome-v2__title", children: e }),
681
669
  /* @__PURE__ */ i(
@@ -691,7 +679,7 @@ function Ae({ title: e, onClose: n, titleId: t }) {
691
679
  )
692
680
  ] });
693
681
  }
694
- function He({ children: e }) {
682
+ function Re({ children: e }) {
695
683
  return /* @__PURE__ */ i(
696
684
  "div",
697
685
  {
@@ -702,19 +690,19 @@ function He({ children: e }) {
702
690
  }
703
691
  );
704
692
  }
705
- function Be({ children: e }) {
693
+ function Fe({ children: e }) {
706
694
  return /* @__PURE__ */ i("div", { className: "gloss-panel-chrome-v2__navigation", children: e });
707
695
  }
708
- function Ze({ children: e }) {
696
+ function Ae({ children: e }) {
709
697
  return /* @__PURE__ */ i("div", { className: "gloss-panel-chrome-v2__body", children: e });
710
698
  }
711
- function Ke({ left: e, right: n }) {
699
+ function He({ left: e, right: n }) {
712
700
  return /* @__PURE__ */ N("div", { className: "gloss-panel-chrome-v2__footer", children: [
713
701
  /* @__PURE__ */ i("div", { className: "gloss-panel-chrome-v2__footer-left", children: e }),
714
702
  /* @__PURE__ */ i("div", { className: "gloss-panel-chrome-v2__footer-right", children: n })
715
703
  ] });
716
704
  }
717
- function Ue({
705
+ function Be({
718
706
  children: e,
719
707
  onClose: n,
720
708
  title: t,
@@ -736,11 +724,11 @@ function Ue({
736
724
  "aria-label": u ? void 0 : "Panel",
737
725
  className: `gloss-panel-chrome-v2 gloss-panel-chrome-v2--${r}${o ? " gloss-panel-chrome-v2--headerless" : ""}`,
738
726
  children: [
739
- !o && /* @__PURE__ */ i(Ae, { title: t, onClose: n, titleId: p }),
740
- r === "with-stage" && /* @__PURE__ */ i(He, { children: s }),
741
- a != null && /* @__PURE__ */ i(Be, { children: a }),
742
- /* @__PURE__ */ i(Ze, { children: e }),
743
- c != null && /* @__PURE__ */ i(Ke, { left: c.left, right: c.right }),
727
+ !o && /* @__PURE__ */ i(Me, { title: t, onClose: n, titleId: p }),
728
+ r === "with-stage" && /* @__PURE__ */ i(Re, { children: s }),
729
+ a != null && /* @__PURE__ */ i(Fe, { children: a }),
730
+ /* @__PURE__ */ i(Ae, { children: e }),
731
+ c != null && /* @__PURE__ */ i(He, { left: c.left, right: c.right }),
744
732
  o && /* @__PURE__ */ i(
745
733
  "button",
746
734
  {
@@ -756,10 +744,10 @@ function Ue({
756
744
  }
757
745
  );
758
746
  }
759
- function cn({ isOpen: e }) {
747
+ function sn({ isOpen: e }) {
760
748
  const n = Pe();
761
749
  return /* @__PURE__ */ i(
762
- Ue,
750
+ Be,
763
751
  {
764
752
  variant: "no-stage",
765
753
  title: "Notifications",
@@ -776,11 +764,11 @@ function cn({ isOpen: e }) {
776
764
  }
777
765
  );
778
766
  }
779
- const ze = {
767
+ const Ze = {
780
768
  position: "relative",
781
769
  pointerEvents: "auto"
782
770
  };
783
- function Ve({ children: e, onClose: n, footer: t, title: r, variant: s = "default" }) {
771
+ function Ke({ children: e, onClose: n, footer: t, title: r, variant: s = "default" }) {
784
772
  const a = `panel-close-${X().replace(/:/g, "-")}`;
785
773
  return /* @__PURE__ */ N(
786
774
  "div",
@@ -790,7 +778,7 @@ function Ve({ children: e, onClose: n, footer: t, title: r, variant: s = "defaul
790
778
  role: "dialog",
791
779
  "aria-modal": "true",
792
780
  className: s === "merged-stage" ? "gloss-panel-chrome gloss-panel-chrome--merged-stage" : "gloss-panel-chrome",
793
- style: ze,
781
+ style: Ze,
794
782
  children: [
795
783
  /* @__PURE__ */ N("div", { className: "gloss-panel-chrome__header", children: [
796
784
  r != null && /* @__PURE__ */ i("span", { className: "gloss-panel-chrome__title", children: r }),
@@ -812,7 +800,7 @@ function Ve({ children: e, onClose: n, footer: t, title: r, variant: s = "defaul
812
800
  }
813
801
  );
814
802
  }
815
- function $e(e) {
803
+ function Ue(e) {
816
804
  if (process.env.NODE_ENV === "production" || !e || !e.parentElement) return;
817
805
  const n = e.parentElement, t = window.getComputedStyle(n);
818
806
  t.perspective === "none" && console.warn(
@@ -823,12 +811,12 @@ function $e(e) {
823
811
  n
824
812
  );
825
813
  }
826
- function je({ isOpen: e, children: n }) {
814
+ function ze({ isOpen: e, children: n }) {
827
815
  const t = ee(), r = O(null);
828
816
  G(() => {
829
- $e(r.current);
817
+ Ue(r.current);
830
818
  }, []);
831
- const [s, a] = A(!1);
819
+ const [s, a] = F(!1);
832
820
  w(() => {
833
821
  if (!e) {
834
822
  a(!1);
@@ -853,7 +841,7 @@ function je({ isOpen: e, children: n }) {
853
841
  }
854
842
  );
855
843
  }
856
- const qe = {
844
+ const Ve = {
857
845
  position: "fixed",
858
846
  top: 0,
859
847
  left: 0,
@@ -864,7 +852,7 @@ const qe = {
864
852
  overflow: "visible",
865
853
  pointerEvents: "none",
866
854
  zIndex: 55
867
- }, Qe = {
855
+ }, $e = {
868
856
  position: "fixed",
869
857
  top: "var(--tb-h, 60px)",
870
858
  left: 0,
@@ -878,7 +866,7 @@ const qe = {
878
866
  pointerEvents: "none",
879
867
  background: "rgba(0, 0, 0, 0.04)"
880
868
  };
881
- function dn({ panelComponents: e }) {
869
+ function ln({ panelComponents: e }) {
882
870
  const { state: n, dispatch: t, getCloseLog: r } = _e(), s = n.activePanelId ? e[n.activePanelId] : null;
883
871
  n.activePanelId && !s && process.env.NODE_ENV !== "production" && console.error(
884
872
  "[panels] No panel component registered for activePanelId:",
@@ -907,16 +895,16 @@ function dn({ panelComponents: e }) {
907
895
  };
908
896
  }, [t, r]);
909
897
  const c = n.activePanelId != null && s != null;
910
- return /* @__PURE__ */ N("div", { "data-panel-host": "true", style: qe, children: [
898
+ return /* @__PURE__ */ N("div", { "data-panel-host": "true", style: Ve, children: [
911
899
  c && /* @__PURE__ */ i(
912
900
  "div",
913
901
  {
914
902
  "data-panel-scrim": "true",
915
- style: Qe
903
+ style: $e
916
904
  }
917
905
  ),
918
- /* @__PURE__ */ i(je, { isOpen: c, children: c && /* @__PURE__ */ i(
919
- Ve,
906
+ /* @__PURE__ */ i(ze, { isOpen: c, children: c && /* @__PURE__ */ i(
907
+ Ke,
920
908
  {
921
909
  isOpen: !0,
922
910
  onClose: () => t({ type: "CLOSE_PANEL", reason: "header-x" }),
@@ -925,7 +913,7 @@ function dn({ panelComponents: e }) {
925
913
  ) })
926
914
  ] });
927
915
  }
928
- const un = {
916
+ const an = {
929
917
  "apply-button": !0,
930
918
  // the ONLY commit reason
931
919
  "cancel-button": !1,
@@ -943,33 +931,33 @@ const un = {
943
931
  // 260524 panel-x-axis-transitions — viewport shrank past targetSection
944
932
  };
945
933
  export {
946
- un as C,
947
- on as H,
948
- cn as N,
949
- an as P,
934
+ an as C,
935
+ nn as H,
936
+ sn as N,
937
+ on as P,
950
938
  be as S,
951
- rn as a,
952
- sn as b,
953
- Je as c,
939
+ en as a,
940
+ tn as b,
941
+ We as c,
954
942
  ye as d,
955
943
  _e as e,
956
- dn as f,
957
- ln as g,
958
- Fe as h,
959
- Me as i,
960
- Le as j,
961
- Re as k,
944
+ ln as f,
945
+ rn as g,
946
+ Le as h,
947
+ Te as i,
948
+ Oe as j,
949
+ ke as k,
962
950
  ge as l,
963
951
  ee as m,
964
- Ue as n,
965
- je as o,
966
- tn as p,
967
- Ae as q,
968
- nn as r,
969
- en as s,
970
- He as t,
952
+ Be as n,
953
+ ze as o,
954
+ Je as p,
955
+ Me as q,
956
+ Ge as r,
957
+ Xe as s,
958
+ Re as t,
971
959
  Pe as u,
972
- Be as v,
973
- Ze as w,
974
- Ke as x
960
+ Fe as v,
961
+ Ae as w,
962
+ He as x
975
963
  };