react-resizable-panels 4.13.2 → 4.13.3

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,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as B, jsxs as wt } from "react/jsx-runtime";
3
- import { useState as Z, useCallback as ce, useId as Pt, useLayoutEffect as Qe, useEffect as Se, useRef as D, createContext as Lt, useContext as Ct, isValidElement as Rt, useImperativeHandle as et, useMemo as Pe, useSyncExternalStore as tt } from "react";
3
+ import { useState as Z, useCallback as ce, useId as Pt, useLayoutEffect as et, useEffect as Se, useRef as T, createContext as Lt, useContext as Ct, isValidElement as Rt, useImperativeHandle as tt, useMemo as Pe, useSyncExternalStore as nt } from "react";
4
4
  function Mt(e, t) {
5
5
  const n = getComputedStyle(e), o = parseFloat(n.fontSize);
6
6
  return t * o;
@@ -140,7 +140,7 @@ function Le(e) {
140
140
  };
141
141
  });
142
142
  }
143
- class nt {
143
+ class ot {
144
144
  #e = {};
145
145
  addListener(t, n) {
146
146
  const o = this.#e[t];
@@ -183,16 +183,16 @@ let k = {
183
183
  cursorFlags: 0,
184
184
  state: "inactive"
185
185
  };
186
- const Re = new nt();
186
+ const Me = new ot();
187
187
  function q() {
188
188
  return k;
189
189
  }
190
- function ot(e) {
191
- return Re.addListener("change", e);
190
+ function rt(e) {
191
+ return Me.addListener("change", e);
192
192
  }
193
- function Tt(e, t = [], n, o = !1) {
193
+ function Dt(e, t = [], n, o = !1) {
194
194
  const r = k, i = { ...k };
195
- i.cursorFlags = e, i.state === "active" && (i.didPointerMove ||= o, i.previews = t, n && (i.previewLayoutMap = n)), k = i, Re.emit("change", {
195
+ i.cursorFlags = e, i.state === "active" && (i.didPointerMove ||= o, i.previews = t, n && (i.previewLayoutMap = n)), k = i, Me.emit("change", {
196
196
  prev: r,
197
197
  next: i
198
198
  });
@@ -201,12 +201,12 @@ function W(e) {
201
201
  const t = k;
202
202
  k = e, t.state === "active" && e.state !== "active" && t.didPointerMove && t.hitRegions.forEach(({ separator: n }) => {
203
203
  n && n.element.ownerDocument.activeElement === n.element && n.element.blur();
204
- }), Re.emit("change", {
204
+ }), Me.emit("change", {
205
205
  prev: t,
206
206
  next: e
207
207
  });
208
208
  }
209
- function Dt(e) {
209
+ function Tt(e) {
210
210
  k.state !== "active" || !k.previews.some((t) => t.separator === e) || W({
211
211
  ...k,
212
212
  previews: k.previews.map(
@@ -239,9 +239,9 @@ function Nt(e) {
239
239
  return !0;
240
240
  }
241
241
  const Gt = (e) => e, we = () => {
242
- }, rt = 1, it = 2, st = 4, at = 8, Ae = 3, Fe = 12;
242
+ }, it = 1, st = 2, at = 4, lt = 8, Fe = 3, _e = 12;
243
243
  let me;
244
- function _e() {
244
+ function $e() {
245
245
  return me === void 0 && (me = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (me = !0)), me;
246
246
  }
247
247
  function At({
@@ -270,8 +270,8 @@ function At({
270
270
  if (!(o === 0 && r === 0)) {
271
271
  switch (n) {
272
272
  case "active": {
273
- if (e && _e()) {
274
- const i = (e & rt) !== 0, s = (e & it) !== 0, u = (e & st) !== 0, c = (e & at) !== 0;
273
+ if (e && $e()) {
274
+ const i = (e & it) !== 0, s = (e & st) !== 0, u = (e & at) !== 0, c = (e & lt) !== 0;
275
275
  if (i)
276
276
  return u ? "se-resize" : c ? "ne-resize" : "e-resize";
277
277
  if (s)
@@ -284,14 +284,14 @@ function At({
284
284
  break;
285
285
  }
286
286
  }
287
- return _e() ? o > 0 && r > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && r > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
287
+ return $e() ? o > 0 && r > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && r > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
288
288
  }
289
289
  }
290
- const $e = /* @__PURE__ */ new WeakMap();
290
+ const He = /* @__PURE__ */ new WeakMap();
291
291
  function fe(e) {
292
292
  if (!e.defaultView || !e.adoptedStyleSheets)
293
293
  return;
294
- let { prevStyle: t, styleSheet: n } = $e.get(e) ?? {};
294
+ let { prevStyle: t, styleSheet: n } = He.get(e) ?? {};
295
295
  n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [
296
296
  ...e.adoptedStyleSheets,
297
297
  n
@@ -315,7 +315,7 @@ function fe(e) {
315
315
  break;
316
316
  }
317
317
  }
318
- $e.set(e, {
318
+ He.set(e, {
319
319
  prevStyle: t,
320
320
  styleSheet: n
321
321
  });
@@ -341,7 +341,7 @@ function _t(e, t) {
341
341
  const n = e.element.offsetTop - t.element.offsetTop;
342
342
  return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
343
343
  }
344
- function lt(e) {
344
+ function Re(e) {
345
345
  return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
346
346
  }
347
347
  function ct(e, t) {
@@ -376,14 +376,14 @@ let ge;
376
376
  function Ht() {
377
377
  return ge === void 0 && (typeof matchMedia == "function" ? ge = !!matchMedia("(pointer:coarse)").matches : ge = !1), ge;
378
378
  }
379
- function Me({
379
+ function Ee({
380
380
  expandHitTargets: e = !0,
381
381
  group: t,
382
382
  includeDisabled: n = !1
383
383
  }) {
384
384
  const { element: o, orientation: r, panels: i, separators: s } = t, u = Ce(
385
385
  r,
386
- Array.from(o.children).filter(lt).filter((h) => !h.hasAttribute("data-resize-preview")).map((h) => ({ element: h }))
386
+ Array.from(o.children).filter(Re).filter((h) => !h.hasAttribute("data-resize-preview")).map((h) => ({ element: h }))
387
387
  ).map(({ element: h }) => h), c = [];
388
388
  let a = !1, l = !1, f = -1, y, p = -1, g = 0, d, v = [];
389
389
  {
@@ -499,7 +499,7 @@ function Me({
499
499
  return c;
500
500
  }
501
501
  let U = /* @__PURE__ */ new Map();
502
- const ut = new nt();
502
+ const ut = new ot();
503
503
  function Vt(e) {
504
504
  U = new Map(U), U.delete(e);
505
505
  }
@@ -518,7 +518,7 @@ function Q(e, t) {
518
518
  function ee() {
519
519
  return U;
520
520
  }
521
- function Ee(e, t) {
521
+ function Ie(e, t) {
522
522
  return ut.addListener("groupChange", (n) => {
523
523
  n.group.id === e && t(n);
524
524
  });
@@ -540,11 +540,11 @@ function jt(e, t) {
540
540
  return !1;
541
541
  return !0;
542
542
  }
543
- function T(e, t, n = 0) {
543
+ function D(e, t, n = 0) {
544
544
  return Math.abs(F(e) - F(t)) <= n;
545
545
  }
546
546
  function j(e, t) {
547
- return T(e, t) ? 0 : e > t ? 1 : -1;
547
+ return D(e, t) ? 0 : e > t ? 1 : -1;
548
548
  }
549
549
  function se({
550
550
  overrideDisabledPanels: e,
@@ -578,7 +578,7 @@ function de({
578
578
  prevLayout: r,
579
579
  trigger: i
580
580
  }) {
581
- if (T(e, 0))
581
+ if (D(e, 0))
582
582
  return t;
583
583
  const s = i === "imperative-api", u = n.map(
584
584
  ({ panelId: g }) => t[g]
@@ -605,7 +605,7 @@ function de({
605
605
  if (L(
606
606
  x != null,
607
607
  `Previous layout not found for panel index ${g}`
608
- ), T(x, v)) {
608
+ ), D(x, v)) {
609
609
  const S = m - x;
610
610
  j(S, Math.abs(e)) > 0 && (e = e < 0 ? 0 - S : S);
611
611
  }
@@ -627,7 +627,7 @@ function de({
627
627
  if (L(
628
628
  x != null,
629
629
  `Previous layout not found for panel index ${g}`
630
- ), T(x, m)) {
630
+ ), D(x, m)) {
631
631
  const S = x - v;
632
632
  j(S, Math.abs(e)) > 0 && (e = e < 0 ? 0 - S : S);
633
633
  }
@@ -687,7 +687,7 @@ function de({
687
687
  prevSize: h,
688
688
  size: m
689
689
  });
690
- if (!T(h, x) && (y += h - x, a[d] = x, y.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
690
+ if (!D(h, x) && (y += h - x, a[d] = x, y.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
691
691
  numeric: !0
692
692
  }) >= 0))
693
693
  break;
@@ -708,7 +708,7 @@ function de({
708
708
  prevSize: d,
709
709
  size: v
710
710
  });
711
- if (a[g] = h, !T(h, v)) {
711
+ if (a[g] = h, !D(h, v)) {
712
712
  let m = v - h, S = e < 0 ? f : l;
713
713
  for (; S >= 0 && S < n.length; ) {
714
714
  const P = a[S];
@@ -722,7 +722,7 @@ function de({
722
722
  prevSize: P,
723
723
  size: C
724
724
  });
725
- if (T(P, E) || (m -= E - P, a[S] = E), T(m, 0))
725
+ if (D(P, E) || (m -= E - P, a[S] = E), D(m, 0))
726
726
  break;
727
727
  e > 0 ? S-- : S++;
728
728
  }
@@ -732,7 +732,7 @@ function de({
732
732
  (g, d) => d + g,
733
733
  0
734
734
  );
735
- return T(p, 100, 0.1) ? a.reduce((g, d, v) => (g[n[v].panelId] = d, g), {}) : r;
735
+ return D(p, 100, 0.1) ? a.reduce((g, d, v) => (g[n[v].panelId] = d, g), {}) : r;
736
736
  }
737
737
  function K(e, t) {
738
738
  if (Object.keys(e).length !== Object.keys(t).length)
@@ -742,7 +742,7 @@ function K(e, t) {
742
742
  return !1;
743
743
  return !0;
744
744
  }
745
- function Ie({
745
+ function ke({
746
746
  commit: e,
747
747
  document: t,
748
748
  event: n,
@@ -798,11 +798,11 @@ function Ie({
798
798
  if (K(G, I) && S !== 0 && !x)
799
799
  switch (h) {
800
800
  case "horizontal": {
801
- c |= S < 0 ? rt : it;
801
+ c |= S < 0 ? it : st;
802
802
  break;
803
803
  }
804
804
  case "vertical": {
805
- c |= S < 0 ? st : at;
805
+ c |= S < 0 ? at : lt;
806
806
  break;
807
807
  }
808
808
  }
@@ -816,16 +816,16 @@ function Ie({
816
816
  }
817
817
  });
818
818
  let y = 0;
819
- n.movementX === 0 ? y |= u & Ae : y |= c & Ae, n.movementY === 0 ? y |= u & Fe : y |= c & Fe;
819
+ n.movementX === 0 ? y |= u & Fe : y |= c & Fe, n.movementY === 0 ? y |= u & _e : y |= c & _e;
820
820
  const p = a.state === "active" && (n.clientX !== a.pointerDownAtPoint.x || n.clientY !== a.pointerDownAtPoint.y);
821
- Tt(y, l, f, p), fe(t);
821
+ Dt(y, l, f, p), fe(t);
822
822
  }
823
823
  function dt(e, t) {
824
824
  const n = q(), o = ee();
825
825
  let r = !1;
826
826
  switch (n.state) {
827
827
  case "active":
828
- Ie({
828
+ ke({
829
829
  commit: !0,
830
830
  document: e,
831
831
  event: t,
@@ -848,7 +848,7 @@ function dt(e, t) {
848
848
  }
849
849
  return r;
850
850
  }
851
- function He(e) {
851
+ function Ve(e) {
852
852
  e.defaultPrevented || dt(e.currentTarget, e);
853
853
  }
854
854
  function Ut(e, t, n) {
@@ -880,8 +880,8 @@ function Bt(e) {
880
880
  function Wt(e, t) {
881
881
  if (e === t) throw new Error("Cannot compare node with itself");
882
882
  const n = {
883
- a: Ue(e),
884
- b: Ue(t)
883
+ a: Be(e),
884
+ b: Be(t)
885
885
  };
886
886
  let o;
887
887
  for (; n.a.at(-1) === n.b.at(-1); )
@@ -891,8 +891,8 @@ function Wt(e, t) {
891
891
  "Stacking order can only be calculated for elements with a common ancestor"
892
892
  );
893
893
  const r = {
894
- a: je(Ve(n.a)),
895
- b: je(Ve(n.b))
894
+ a: Ue(je(n.a)),
895
+ b: Ue(je(n.b))
896
896
  };
897
897
  if (r.a === r.b) {
898
898
  const i = o.childNodes, s = {
@@ -917,7 +917,7 @@ function qt(e) {
917
917
  const t = getComputedStyle(e);
918
918
  return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || Xt(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || Kt.test(t.willChange) || t.webkitOverflowScrolling === "touch");
919
919
  }
920
- function Ve(e) {
920
+ function je(e) {
921
921
  let t = e.length;
922
922
  for (; t--; ) {
923
923
  const n = e[t];
@@ -925,10 +925,10 @@ function Ve(e) {
925
925
  }
926
926
  return null;
927
927
  }
928
- function je(e) {
928
+ function Ue(e) {
929
929
  return e && Number(getComputedStyle(e).zIndex) || 0;
930
930
  }
931
- function Ue(e) {
931
+ function Be(e) {
932
932
  const t = [];
933
933
  for (; e; )
934
934
  t.push(e), e = pt(e);
@@ -941,12 +941,24 @@ function pt(e) {
941
941
  function Yt(e, t) {
942
942
  return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
943
943
  }
944
- function Jt({
944
+ function Jt(e) {
945
+ try {
946
+ return e.matches(":modal");
947
+ } catch {
948
+ return !1;
949
+ }
950
+ }
951
+ function Zt({
945
952
  groupElement: e,
946
953
  hitRegion: t,
947
954
  pointerEventTarget: n
948
955
  }) {
949
- if (!lt(n) || n.contains(e) || e.contains(n))
956
+ if (Re(n)) {
957
+ const o = n.closest("dialog");
958
+ if (o && !o.contains(e) && Jt(o))
959
+ return !1;
960
+ }
961
+ if (!Re(n) || n.contains(e) || e.contains(n))
950
962
  return !0;
951
963
  if (Wt(n, e) > 0) {
952
964
  let o = n;
@@ -960,16 +972,16 @@ function Jt({
960
972
  }
961
973
  return !0;
962
974
  }
963
- function ke(e, t) {
975
+ function Oe(e, t) {
964
976
  const n = [];
965
977
  return t.forEach((o, r) => {
966
978
  if (r.disabled)
967
979
  return;
968
- const i = Me({ group: r }), s = Ut(r.orientation, i, {
980
+ const i = Ee({ group: r }), s = Ut(r.orientation, i, {
969
981
  x: e.clientX,
970
982
  y: e.clientY
971
983
  });
972
- s && s.distance.x <= 0 && s.distance.y <= 0 && Jt({
984
+ s && s.distance.x <= 0 && s.distance.y <= 0 && Zt({
973
985
  groupElement: r.element,
974
986
  hitRegion: s.hitRegion.rect,
975
987
  pointerEventTarget: e.target
@@ -988,7 +1000,7 @@ function ne({
988
1000
  throw Error(
989
1001
  `Invalid ${t.length} panel layout: ${Object.values(e).map((s) => `${s}%`).join(", ")}`
990
1002
  );
991
- if (!T(r, 100) && o.length > 0)
1003
+ if (!D(r, 100) && o.length > 0)
992
1004
  for (let s = 0; s < t.length; s++) {
993
1005
  const u = o[s];
994
1006
  L(u != null, `No layout data found for index ${s}`);
@@ -1009,7 +1021,7 @@ function ne({
1009
1021
  });
1010
1022
  c != a && (i += c - a, o[s] = a);
1011
1023
  }
1012
- if (!T(i, 0))
1024
+ if (!D(i, 0))
1013
1025
  for (let s = 0; s < t.length; s++) {
1014
1026
  const u = o[s];
1015
1027
  L(u != null, `No layout data found for index ${s}`);
@@ -1019,7 +1031,7 @@ function ne({
1019
1031
  prevSize: u,
1020
1032
  size: c
1021
1033
  });
1022
- if (u !== a && (i -= a - u, o[s] = a, T(i, 0)))
1034
+ if (u !== a && (i -= a - u, o[s] = a, D(i, 0)))
1023
1035
  break;
1024
1036
  }
1025
1037
  return o.reduce((s, u, c) => (s[t[c].panelId] = u, s), {});
@@ -1076,7 +1088,7 @@ function ht({
1076
1088
  const y = i(), p = a.findIndex((h) => h.id === t), g = p === 0, d = p === a.length - 1;
1077
1089
  if (d && c < y && (g || a.slice(0, p).every((h, m) => {
1078
1090
  const x = f[m];
1079
- return x?.collapsible && T(x.collapsedSize, l[x.panelId]);
1091
+ return x?.collapsible && D(x.collapsedSize, l[x.panelId]);
1080
1092
  }))) {
1081
1093
  const h = a.slice(0, p).reduce((m, x) => m + l[x.id], 0);
1082
1094
  return {
@@ -1141,7 +1153,7 @@ function ht({
1141
1153
  },
1142
1154
  isCollapsed: () => {
1143
1155
  const { collapsible: c, collapsedSize: a } = o(), l = i();
1144
- return c && T(a, l);
1156
+ return c && D(a, l);
1145
1157
  },
1146
1158
  resize: (c) => {
1147
1159
  const { group: a } = n(), { element: l } = r(), f = ae({ group: a }), y = ie({
@@ -1153,11 +1165,11 @@ function ht({
1153
1165
  }
1154
1166
  };
1155
1167
  }
1156
- function Be(e) {
1168
+ function We(e) {
1157
1169
  if (e.defaultPrevented)
1158
1170
  return;
1159
1171
  const t = ee();
1160
- ke(e, t).forEach((o) => {
1172
+ Oe(e, t).forEach((o) => {
1161
1173
  if (o.separator && !o.separator.disableDoubleClick) {
1162
1174
  const r = o.panels.find(
1163
1175
  (i) => i.panelConstraints.defaultSize !== void 0
@@ -1252,7 +1264,7 @@ function te(e, t) {
1252
1264
  { isUserInteraction: !0 }
1253
1265
  );
1254
1266
  }
1255
- function We(e) {
1267
+ function Ke(e) {
1256
1268
  if (e.defaultPrevented)
1257
1269
  return;
1258
1270
  const t = e.currentTarget, n = ye(t);
@@ -1317,9 +1329,9 @@ function We(e) {
1317
1329
  }
1318
1330
  }
1319
1331
  }
1320
- function Zt(e, t) {
1332
+ function Qt(e, t) {
1321
1333
  const { element: n, orientation: o, panels: r } = e, i = n.getBoundingClientRect(), s = o === "horizontal";
1322
- return Me({
1334
+ return Ee({
1323
1335
  expandHitTargets: !1,
1324
1336
  group: e,
1325
1337
  includeDisabled: !0
@@ -1333,7 +1345,7 @@ function Zt(e, t) {
1333
1345
  if (l || d.separator)
1334
1346
  return d.separator === l;
1335
1347
  const v = s ? d.rect.left + d.rect.width / 2 : d.rect.top + d.rect.height / 2;
1336
- return T(p, v);
1348
+ return D(p, v);
1337
1349
  }),
1338
1350
  group: e,
1339
1351
  key: l ? `separator-${l.id}` : `panel-${c[0].id}-${f}`,
@@ -1350,12 +1362,12 @@ function Zt(e, t) {
1350
1362
  }
1351
1363
  );
1352
1364
  }
1353
- function Ke(e) {
1365
+ function Xe(e) {
1354
1366
  if (e.defaultPrevented)
1355
1367
  return;
1356
1368
  if (e.pointerType === "mouse" && e.button > 0)
1357
1369
  return;
1358
- const t = ee(), n = ke(e, t);
1370
+ const t = ee(), n = Oe(e, t);
1359
1371
  if (n.length === 0)
1360
1372
  return;
1361
1373
  const o = /* @__PURE__ */ new Map();
@@ -1370,7 +1382,7 @@ function Ke(e) {
1370
1382
  u && o.set(s.group, u.layout);
1371
1383
  });
1372
1384
  const i = Array.from(o.keys()).flatMap(
1373
- (s) => s.resizePreviewMode === "separator" ? Zt(s, n) : []
1385
+ (s) => s.resizePreviewMode === "separator" ? Qt(s, n) : []
1374
1386
  );
1375
1387
  W({
1376
1388
  cursorFlags: 0,
@@ -1383,11 +1395,11 @@ function Ke(e) {
1383
1395
  state: "active"
1384
1396
  }), e.preventDefault();
1385
1397
  }
1386
- function Xe(e) {
1398
+ function qe(e) {
1387
1399
  const t = ee(), n = q();
1388
1400
  switch (n.state) {
1389
1401
  case "active":
1390
- Ie({
1402
+ ke({
1391
1403
  commit: !1,
1392
1404
  document: e.currentTarget,
1393
1405
  event: e,
@@ -1398,7 +1410,7 @@ function Xe(e) {
1398
1410
  });
1399
1411
  }
1400
1412
  }
1401
- function qe(e) {
1413
+ function Ye(e) {
1402
1414
  if (e.defaultPrevented)
1403
1415
  return;
1404
1416
  const t = q(), n = ee();
@@ -1429,7 +1441,7 @@ function qe(e) {
1429
1441
  const { element: r } = o.separator;
1430
1442
  r.isConnected && !r.hasPointerCapture?.(e.pointerId) && r.setPointerCapture?.(e.pointerId);
1431
1443
  }
1432
- Ie({
1444
+ ke({
1433
1445
  commit: !1,
1434
1446
  document: e.currentTarget,
1435
1447
  event: e,
@@ -1442,7 +1454,7 @@ function qe(e) {
1442
1454
  break;
1443
1455
  }
1444
1456
  default: {
1445
- const o = ke(e, n);
1457
+ const o = Oe(e, n);
1446
1458
  o.length === 0 ? t.state !== "inactive" && W({
1447
1459
  cursorFlags: 0,
1448
1460
  state: "inactive"
@@ -1455,7 +1467,7 @@ function qe(e) {
1455
1467
  }
1456
1468
  }
1457
1469
  }
1458
- function Ye(e) {
1470
+ function Je(e) {
1459
1471
  if (e.relatedTarget instanceof HTMLIFrameElement)
1460
1472
  switch (q().state) {
1461
1473
  case "hover":
@@ -1465,7 +1477,7 @@ function Ye(e) {
1465
1477
  });
1466
1478
  }
1467
1479
  }
1468
- function Je(e) {
1480
+ function Ze(e) {
1469
1481
  if (e.defaultPrevented)
1470
1482
  return;
1471
1483
  if (e.pointerType === "mouse" && e.button > 0)
@@ -1475,7 +1487,7 @@ function Je(e) {
1475
1487
  e
1476
1488
  ) && e.preventDefault();
1477
1489
  }
1478
- function Qt(e) {
1490
+ function en(e) {
1479
1491
  let t = 0, n = 0;
1480
1492
  const o = {};
1481
1493
  for (const i of e)
@@ -1493,7 +1505,7 @@ function Qt(e) {
1493
1505
  }
1494
1506
  return o;
1495
1507
  }
1496
- function en(e, t) {
1508
+ function tn(e, t) {
1497
1509
  const n = e.map((r) => r.id), o = Object.keys(t);
1498
1510
  if (n.length !== o.length)
1499
1511
  return !1;
@@ -1502,14 +1514,14 @@ function en(e, t) {
1502
1514
  return !1;
1503
1515
  return !0;
1504
1516
  }
1505
- function Ze({
1517
+ function Qe({
1506
1518
  group: e,
1507
1519
  panelConstraints: t
1508
1520
  }) {
1509
1521
  const n = e.panels.map(({ id: r }) => r).join(","), o = e.mutableState.defaultLayout;
1510
- return e.mutableState.layouts[n] ?? (o && en(e.panels, o) ? o : Qt(t));
1522
+ return e.mutableState.layouts[n] ?? (o && tn(e.panels, o) ? o : en(t));
1511
1523
  }
1512
- function tn(e, t, n) {
1524
+ function nn(e, t, n) {
1513
1525
  if (!n[0])
1514
1526
  return;
1515
1527
  const r = e.panels.find((a) => a.element === t);
@@ -1529,10 +1541,10 @@ function gt(e, t) {
1529
1541
  return !1;
1530
1542
  return !0;
1531
1543
  }
1532
- function nn(e, t) {
1544
+ function on(e, t) {
1533
1545
  return e.length !== t.length ? !1 : e.every((n, o) => gt(n, t[o]));
1534
1546
  }
1535
- function on({
1547
+ function rn({
1536
1548
  group: e,
1537
1549
  nextGroupSize: t,
1538
1550
  prevGroupSize: n,
@@ -1582,7 +1594,7 @@ function on({
1582
1594
  return l;
1583
1595
  }
1584
1596
  const re = /* @__PURE__ */ new Map();
1585
- function rn(e) {
1597
+ function sn(e) {
1586
1598
  let t = !0;
1587
1599
  L(
1588
1600
  e.element.ownerDocument.defaultView,
@@ -1599,10 +1611,10 @@ function rn(e) {
1599
1611
  const m = Q(e.id);
1600
1612
  if (!m)
1601
1613
  return;
1602
- const x = Le(e), S = m.defaultLayoutDeferred ? Ze({
1614
+ const x = Le(e), S = m.defaultLayoutDeferred ? Qe({
1603
1615
  group: e,
1604
1616
  panelConstraints: x
1605
- }) : m.layout, P = on({
1617
+ }) : m.layout, P = rn({
1606
1618
  group: e,
1607
1619
  nextGroupSize: h,
1608
1620
  prevGroupSize: m.groupSize,
@@ -1611,7 +1623,7 @@ function rn(e) {
1611
1623
  layout: P,
1612
1624
  panelConstraints: x
1613
1625
  });
1614
- if (!m.defaultLayoutDeferred && K(m.layout, C) && nn(
1626
+ if (!m.defaultLayoutDeferred && K(m.layout, C) && on(
1615
1627
  m.derivedPanelConstraints,
1616
1628
  x
1617
1629
  ) && m.groupSize === h)
@@ -1625,7 +1637,7 @@ function rn(e) {
1625
1637
  });
1626
1638
  }
1627
1639
  } else
1628
- tn(e, v, d);
1640
+ nn(e, v, d);
1629
1641
  }
1630
1642
  });
1631
1643
  i.observe(e.element), e.panels.forEach((p) => {
@@ -1634,7 +1646,7 @@ function rn(e) {
1634
1646
  `Panel ids must be unique; id "${p.id}" was used more than once`
1635
1647
  ), o.add(p.id), p.onResize && i.observe(p.element);
1636
1648
  });
1637
- const s = ae({ group: e }), u = Le(e), c = Ze({
1649
+ const s = ae({ group: e }), u = Le(e), c = Qe({
1638
1650
  group: e,
1639
1651
  panelConstraints: u
1640
1652
  }), a = ne({
@@ -1646,7 +1658,7 @@ function rn(e) {
1646
1658
  (re.get(l) ?? 0) + 1
1647
1659
  );
1648
1660
  const f = /* @__PURE__ */ new Map();
1649
- return Me({ group: e, includeDisabled: !0 }).forEach((p) => {
1661
+ return Ee({ group: e, includeDisabled: !0 }).forEach((p) => {
1650
1662
  p.separator && f.set(p.separator, p.panels);
1651
1663
  }), X(e, {
1652
1664
  defaultLayoutDeferred: s === 0,
@@ -1658,39 +1670,39 @@ function rn(e) {
1658
1670
  L(
1659
1671
  !r.has(p.id),
1660
1672
  `Separator ids must be unique; id "${p.id}" was used more than once`
1661
- ), r.add(p.id), p.element.addEventListener("keydown", We);
1662
- }), re.get(l) === 1 && (l.addEventListener("contextmenu", He, !0), l.addEventListener("dblclick", Be, !0), l.addEventListener("pointerdown", Ke, !0), l.addEventListener("pointerleave", Xe), l.addEventListener("pointermove", qe), l.addEventListener("pointerout", Ye), l.addEventListener("pointerup", Je, !0)), function() {
1673
+ ), r.add(p.id), p.element.addEventListener("keydown", Ke);
1674
+ }), re.get(l) === 1 && (l.addEventListener("contextmenu", Ve, !0), l.addEventListener("dblclick", We, !0), l.addEventListener("pointerdown", Xe, !0), l.addEventListener("pointerleave", qe), l.addEventListener("pointermove", Ye), l.addEventListener("pointerout", Je), l.addEventListener("pointerup", Ze, !0)), function() {
1663
1675
  t = !1, re.set(
1664
1676
  l,
1665
1677
  Math.max(0, (re.get(l) ?? 0) - 1)
1666
1678
  ), Vt(e), Nt(e) && fe(l), e.separators.forEach((g) => {
1667
- g.element.removeEventListener("keydown", We);
1679
+ g.element.removeEventListener("keydown", Ke);
1668
1680
  }), re.get(l) || (l.removeEventListener(
1669
1681
  "contextmenu",
1670
- He,
1682
+ Ve,
1671
1683
  !0
1672
1684
  ), l.removeEventListener(
1673
1685
  "dblclick",
1674
- Be,
1686
+ We,
1675
1687
  !0
1676
1688
  ), l.removeEventListener(
1677
1689
  "pointerdown",
1678
- Ke,
1690
+ Xe,
1679
1691
  !0
1680
- ), l.removeEventListener("pointerleave", Xe), l.removeEventListener("pointermove", qe), l.removeEventListener("pointerout", Ye), l.removeEventListener("pointerup", Je, !0)), i.disconnect();
1692
+ ), l.removeEventListener("pointerleave", qe), l.removeEventListener("pointermove", Ye), l.removeEventListener("pointerout", Je), l.removeEventListener("pointerup", Ze, !0)), i.disconnect();
1681
1693
  };
1682
1694
  }
1683
- function sn() {
1695
+ function an() {
1684
1696
  const [e, t] = Z({}), n = ce(() => t({}), []);
1685
1697
  return [e, n];
1686
1698
  }
1687
- function Oe(e) {
1699
+ function De(e) {
1688
1700
  const t = Pt();
1689
1701
  return `${e ?? t}`;
1690
1702
  }
1691
- const V = typeof window < "u" ? Qe : Se;
1703
+ const V = typeof window < "u" ? et : Se;
1692
1704
  function ue(e) {
1693
- const t = D(e);
1705
+ const t = T(e);
1694
1706
  return V(() => {
1695
1707
  t.current = e;
1696
1708
  }, [e]), ce(
@@ -1715,18 +1727,18 @@ function Te(...e) {
1715
1727
  });
1716
1728
  });
1717
1729
  }
1718
- function De(e) {
1719
- const t = D({ ...e });
1730
+ function Ne(e) {
1731
+ const t = T({ ...e });
1720
1732
  return V(() => {
1721
1733
  for (const n in e)
1722
1734
  t.current[n] = e[n];
1723
1735
  }, [e]), t.current;
1724
1736
  }
1725
1737
  const yt = Lt(null);
1726
- function an({
1738
+ function ln({
1727
1739
  separator: e
1728
1740
  }) {
1729
- const { element: t } = e, n = D(null);
1741
+ const { element: t } = e, n = T(null);
1730
1742
  return V(() => {
1731
1743
  const o = t.cloneNode(!0), r = [t, ...t.querySelectorAll("*")], i = [o, ...o.querySelectorAll("*")], s = t.ownerDocument.defaultView;
1732
1744
  return r.forEach((u, c) => {
@@ -1771,7 +1783,7 @@ function be() {
1771
1783
  ), e;
1772
1784
  }
1773
1785
  function vt(e) {
1774
- const { registerOverlay: t } = be(), n = D(e);
1786
+ const { registerOverlay: t } = be(), n = T(e);
1775
1787
  gt(n.current, e) || (n.current = e);
1776
1788
  const o = n.current;
1777
1789
  return V(
@@ -1780,7 +1792,7 @@ function vt(e) {
1780
1792
  ), null;
1781
1793
  }
1782
1794
  vt.displayName = "SeparatorOverlay";
1783
- function ln({
1795
+ function cn({
1784
1796
  active: e,
1785
1797
  orientation: t,
1786
1798
  style: n,
@@ -1817,20 +1829,20 @@ function ln({
1817
1829
  }
1818
1830
  );
1819
1831
  }
1820
- function cn({
1832
+ function un({
1821
1833
  overlay: e,
1822
1834
  preview: t
1823
1835
  }) {
1824
1836
  const { group: n, offset: o, rect: r, separator: i } = t, s = n.orientation === "horizontal";
1825
1837
  let u = i?.preview, c = e;
1826
1838
  return Rt(u) && u.type === vt && (c = u.props, u = void 0), u == null && (c ? u = /* @__PURE__ */ B(
1827
- ln,
1839
+ cn,
1828
1840
  {
1829
1841
  ...c,
1830
1842
  active: t.active,
1831
1843
  orientation: n.orientation
1832
1844
  }
1833
- ) : i && (u = /* @__PURE__ */ B(an, { separator: i }))), /* @__PURE__ */ B(
1845
+ ) : i && (u = /* @__PURE__ */ B(ln, { separator: i }))), /* @__PURE__ */ B(
1834
1846
  "div",
1835
1847
  {
1836
1848
  "aria-hidden": "true",
@@ -1849,27 +1861,27 @@ function cn({
1849
1861
  }
1850
1862
  );
1851
1863
  }
1852
- function un(e, t) {
1853
- const n = D({
1864
+ function fn(e, t) {
1865
+ const n = T({
1854
1866
  getLayout: () => ({}),
1855
1867
  setLayout: Gt
1856
1868
  });
1857
- et(t, () => n.current, []), V(() => {
1869
+ tt(t, () => n.current, []), V(() => {
1858
1870
  Object.assign(
1859
1871
  n.current,
1860
1872
  mt({ groupId: e })
1861
1873
  );
1862
1874
  });
1863
1875
  }
1864
- function fn({
1876
+ function dn({
1865
1877
  groupId: e,
1866
1878
  resizePreviewMode: t
1867
1879
  }) {
1868
- const [n, o] = Z([]), r = D(n);
1880
+ const [n, o] = Z([]), r = T(n);
1869
1881
  return V(() => {
1870
1882
  const i = (u) => {
1871
1883
  const c = ft(e), a = t === "separator" && u.state === "active" ? u.previews.filter(
1872
- (f) => f.group === c && (f.active || !T(f.offset, 0))
1884
+ (f) => f.group === c && (f.active || !D(f.offset, 0))
1873
1885
  ) : [], l = r.current;
1874
1886
  l.length === a.length && a.every(
1875
1887
  (f, y) => f === l[y]
@@ -1879,13 +1891,13 @@ function fn({
1879
1891
  i(q());
1880
1892
  return;
1881
1893
  }
1882
- const s = ot(
1894
+ const s = rt(
1883
1895
  ({ next: u }) => i(u)
1884
1896
  );
1885
1897
  return i(q()), s;
1886
1898
  }, [e, t]), n;
1887
1899
  }
1888
- function dn({
1900
+ function pn({
1889
1901
  children: e,
1890
1902
  className: t,
1891
1903
  defaultLayout: n,
@@ -1905,7 +1917,7 @@ function dn({
1905
1917
  style: p,
1906
1918
  ...g
1907
1919
  }) {
1908
- const d = D({
1920
+ const d = T({
1909
1921
  onLayoutChange: {},
1910
1922
  onLayoutChanged: {}
1911
1923
  }), v = ue((b) => {
@@ -1914,16 +1926,16 @@ function dn({
1914
1926
  (b, z) => {
1915
1927
  K(d.current.onLayoutChanged, b) || (d.current.onLayoutChanged = b, a?.(b, { isUserInteraction: z }));
1916
1928
  }
1917
- ), m = Oe(u), [x, S] = Z(), P = fn({
1929
+ ), m = De(u), [x, S] = Z(), P = dn({
1918
1930
  groupId: m,
1919
1931
  resizePreviewMode: f
1920
- }), C = D(null), [E, w] = sn(), R = D({
1932
+ }), C = T(null), [E, w] = an(), R = T({
1921
1933
  lastExpandedPanelSizes: {},
1922
1934
  layouts: {},
1923
1935
  panels: [],
1924
1936
  separators: []
1925
1937
  }), N = Te(C, i);
1926
- un(m, s);
1938
+ fn(m, s);
1927
1939
  const O = ue(
1928
1940
  (b, z) => {
1929
1941
  const M = Q(b);
@@ -1936,7 +1948,7 @@ function dn({
1936
1948
  flexGrow: n?.[z]
1937
1949
  };
1938
1950
  }
1939
- ), I = De({
1951
+ ), I = Ne({
1940
1952
  defaultLayout: n,
1941
1953
  disableCursor: o,
1942
1954
  resizeTargetMinimumSize: y
@@ -1995,7 +2007,7 @@ function dn({
1995
2007
  }
1996
2008
  }),
1997
2009
  [O, m, w, l, I]
1998
- ), _ = D(null);
2010
+ ), _ = T(null);
1999
2011
  return V(() => {
2000
2012
  const b = C.current;
2001
2013
  if (b === null)
@@ -2028,21 +2040,21 @@ function dn({
2028
2040
  separators: z.separators
2029
2041
  };
2030
2042
  _.current = A;
2031
- const $ = rn(A), { defaultLayoutDeferred: Y, derivedPanelConstraints: oe, layout: le } = Q(A.id, !0);
2043
+ const $ = sn(A), { defaultLayoutDeferred: Y, derivedPanelConstraints: oe, layout: le } = Q(A.id, !0);
2032
2044
  !Y && oe.length > 0 && (v(le), h(le, !1));
2033
- const xe = Ee(m, (J) => {
2034
- const { defaultLayoutDeferred: pe, derivedPanelConstraints: Ne, layout: he } = J.next;
2035
- if (pe || Ne.length === 0)
2045
+ const xe = Ie(m, (J) => {
2046
+ const { defaultLayoutDeferred: pe, derivedPanelConstraints: Ge, layout: he } = J.next;
2047
+ if (pe || Ge.length === 0)
2036
2048
  return;
2037
2049
  const St = A.panels.map(({ id: H }) => H).join(",");
2038
- A.mutableState.layouts[St] = he, Ne.forEach((H) => {
2050
+ A.mutableState.layouts[St] = he, Ge.forEach((H) => {
2039
2051
  if (H.collapsible) {
2040
2052
  const { layout: ze } = J.prev ?? {};
2041
2053
  if (ze) {
2042
- const xt = T(
2054
+ const xt = D(
2043
2055
  H.collapsedSize,
2044
2056
  he[H.panelId]
2045
- ), zt = T(
2057
+ ), zt = D(
2046
2058
  H.collapsedSize,
2047
2059
  ze[H.panelId]
2048
2060
  );
@@ -2050,7 +2062,7 @@ function dn({
2050
2062
  }
2051
2063
  }
2052
2064
  });
2053
- const Ge = q(), bt = Ge.state !== "active" || !Ge.hitRegions.some((H) => H.group === A);
2065
+ const Ae = q(), bt = Ae.state !== "active" || !Ae.hitRegions.some((H) => H.group === A);
2054
2066
  v(he), bt && h(he, J.isUserInteraction);
2055
2067
  });
2056
2068
  return () => {
@@ -2095,7 +2107,7 @@ function dn({
2095
2107
  children: [
2096
2108
  e,
2097
2109
  P.map((b) => /* @__PURE__ */ B(
2098
- cn,
2110
+ un,
2099
2111
  {
2100
2112
  overlay: x,
2101
2113
  preview: b
@@ -2106,11 +2118,11 @@ function dn({
2106
2118
  }
2107
2119
  ) });
2108
2120
  }
2109
- dn.displayName = "Group";
2121
+ pn.displayName = "Group";
2110
2122
  function ve(e, t) {
2111
2123
  return `react-resizable-panels:${[e, ...t].join(":")}`;
2112
2124
  }
2113
- function pn({
2125
+ function hn({
2114
2126
  id: e,
2115
2127
  panelIds: t,
2116
2128
  storage: n
@@ -2145,15 +2157,15 @@ function pn({
2145
2157
  } catch {
2146
2158
  }
2147
2159
  }
2148
- function zn({
2160
+ function wn({
2149
2161
  debounceSaveMs: e = 100,
2150
2162
  onlySaveAfterUserInteractions: t,
2151
2163
  panelIds: n,
2152
2164
  storage: o = localStorage,
2153
2165
  ...r
2154
2166
  }) {
2155
- const i = n !== void 0, s = "id" in r ? r.id : r.groupId, u = ve(s, n ?? []), c = tt(
2156
- hn,
2167
+ const i = n !== void 0, s = "id" in r ? r.id : r.groupId, u = ve(s, n ?? []), c = nt(
2168
+ mn,
2157
2169
  () => o.getItem(u),
2158
2170
  () => o.getItem(u)
2159
2171
  ), a = Pe(() => {
@@ -2164,16 +2176,16 @@ function zn({
2164
2176
  }
2165
2177
  }, [c]), l = Pe(() => {
2166
2178
  if (!a)
2167
- return pn({
2179
+ return hn({
2168
2180
  id: s,
2169
2181
  panelIds: n,
2170
2182
  storage: o
2171
2183
  });
2172
- }, [a, s, n, o]), f = a ?? l, y = D(null), p = ce(() => {
2184
+ }, [a, s, n, o]), f = a ?? l, y = T(null), p = ce(() => {
2173
2185
  const v = y.current;
2174
2186
  v && (y.current = null, clearTimeout(v));
2175
2187
  }, []);
2176
- Qe(() => () => {
2188
+ et(() => () => {
2177
2189
  p();
2178
2190
  }, [p]);
2179
2191
  const g = ce(
@@ -2226,18 +2238,18 @@ function zn({
2226
2238
  onLayoutChanged: g
2227
2239
  };
2228
2240
  }
2229
- function hn() {
2241
+ function mn() {
2230
2242
  return function() {
2231
2243
  };
2232
2244
  }
2233
- function wn() {
2245
+ function Pn() {
2234
2246
  return Z(null);
2235
2247
  }
2236
- function Pn() {
2237
- return D(null);
2248
+ function Ln() {
2249
+ return T(null);
2238
2250
  }
2239
- function mn(e, t) {
2240
- const { id: n } = be(), o = D({
2251
+ function gn(e, t) {
2252
+ const { id: n } = be(), o = T({
2241
2253
  collapse: we,
2242
2254
  expand: we,
2243
2255
  getSize: () => ({
@@ -2247,14 +2259,14 @@ function mn(e, t) {
2247
2259
  isCollapsed: () => !1,
2248
2260
  resize: we
2249
2261
  });
2250
- et(t, () => o.current, []), V(() => {
2262
+ tt(t, () => o.current, []), V(() => {
2251
2263
  Object.assign(
2252
2264
  o.current,
2253
2265
  ht({ groupId: n, panelId: e })
2254
2266
  );
2255
2267
  });
2256
2268
  }
2257
- function gn({
2269
+ function yn({
2258
2270
  children: e,
2259
2271
  className: t,
2260
2272
  collapsedSize: n = "0%",
@@ -2272,9 +2284,9 @@ function gn({
2272
2284
  style: g,
2273
2285
  ...d
2274
2286
  }) {
2275
- const v = !!a, h = Oe(a), m = De({
2287
+ const v = !!a, h = De(a), m = Ne({
2276
2288
  disabled: s
2277
- }), x = D(null), S = Te(x, u), {
2289
+ }), x = T(null), S = Te(x, u), {
2278
2290
  getPanelStyles: P,
2279
2291
  id: C,
2280
2292
  orientation: E,
@@ -2326,13 +2338,13 @@ function gn({
2326
2338
  m
2327
2339
  ]), Se(() => {
2328
2340
  R(h, { disabled: s });
2329
- }, [s, h, R]), mn(h, p);
2341
+ }, [s, h, R]), gn(h, p);
2330
2342
  const I = () => {
2331
2343
  const b = P(C, h);
2332
2344
  if (b)
2333
2345
  return JSON.stringify(b);
2334
- }, G = tt(
2335
- (b) => Ee(C, b),
2346
+ }, G = nt(
2347
+ (b) => Ie(C, b),
2336
2348
  I,
2337
2349
  I
2338
2350
  );
@@ -2351,7 +2363,7 @@ function gn({
2351
2363
  id: h,
2352
2364
  ref: S,
2353
2365
  style: {
2354
- ...yn,
2366
+ ...vn,
2355
2367
  display: "flex",
2356
2368
  flexBasis: 0,
2357
2369
  flexShrink: 1,
@@ -2380,8 +2392,8 @@ function gn({
2380
2392
  }
2381
2393
  );
2382
2394
  }
2383
- gn.displayName = "Panel";
2384
- const yn = {
2395
+ yn.displayName = "Panel";
2396
+ const vn = {
2385
2397
  minHeight: 0,
2386
2398
  maxHeight: "100%",
2387
2399
  height: "auto",
@@ -2393,13 +2405,13 @@ const yn = {
2393
2405
  padding: 0,
2394
2406
  margin: 0
2395
2407
  };
2396
- function Ln() {
2408
+ function Cn() {
2397
2409
  return Z(null);
2398
2410
  }
2399
- function Cn() {
2400
- return D(null);
2411
+ function Rn() {
2412
+ return T(null);
2401
2413
  }
2402
- function vn({
2414
+ function Sn({
2403
2415
  layout: e,
2404
2416
  panelConstraints: t,
2405
2417
  panelId: n,
@@ -2438,7 +2450,7 @@ function vn({
2438
2450
  valueNow: s
2439
2451
  };
2440
2452
  }
2441
- function Sn({
2453
+ function bn({
2442
2454
  children: e,
2443
2455
  className: t,
2444
2456
  disabled: n,
@@ -2449,14 +2461,14 @@ function Sn({
2449
2461
  style: u,
2450
2462
  ...c
2451
2463
  }) {
2452
- const a = Oe(i), l = De({
2464
+ const a = De(i), l = Ne({
2453
2465
  disabled: n,
2454
2466
  disableDoubleClick: o,
2455
2467
  children: e,
2456
2468
  className: t,
2457
2469
  preview: s,
2458
2470
  style: u
2459
- }), [f, y] = Z({}), [p, g] = Z("inactive"), [d, v] = Z(!1), h = D(null), m = D(null), x = Te(h, r), {
2471
+ }), [f, y] = Z({}), [p, g] = Z("inactive"), [d, v] = Z(!1), h = T(null), m = T(null), x = Te(h, r), {
2460
2472
  disableCursor: S,
2461
2473
  id: P,
2462
2474
  orientation: C,
@@ -2485,7 +2497,7 @@ function Sn({
2485
2497
  }
2486
2498
  };
2487
2499
  m.current = G;
2488
- const _ = E(G), b = ot(
2500
+ const _ = E(G), b = rt(
2489
2501
  (M) => {
2490
2502
  g(
2491
2503
  M.next.state !== "inactive" && M.next.hitRegions.some(
@@ -2493,7 +2505,7 @@ function Sn({
2493
2505
  ) ? M.next.state : "inactive"
2494
2506
  );
2495
2507
  }
2496
- ), z = Ee(
2508
+ ), z = Ie(
2497
2509
  P,
2498
2510
  (M) => {
2499
2511
  const { derivedPanelConstraints: A, layout: $, separatorToPanels: Y } = M.next, oe = Y.get(G);
@@ -2502,7 +2514,7 @@ function Sn({
2502
2514
  (J) => J.panelId === le.id
2503
2515
  );
2504
2516
  y(
2505
- vn({
2517
+ Sn({
2506
2518
  layout: $,
2507
2519
  panelConstraints: A,
2508
2520
  panelId: le.id,
@@ -2518,7 +2530,7 @@ function Sn({
2518
2530
  }
2519
2531
  }, [P, a, E, l]), V(() => {
2520
2532
  const I = m.current;
2521
- I && Dt(I);
2533
+ I && Tt(I);
2522
2534
  }, [s]), Se(() => {
2523
2535
  w(a, { disabled: n, disableDoubleClick: o });
2524
2536
  }, [n, o, a, w]);
@@ -2569,17 +2581,17 @@ function Sn({
2569
2581
  }
2570
2582
  );
2571
2583
  }
2572
- Sn.displayName = "Separator";
2584
+ bn.displayName = "Separator";
2573
2585
  export {
2574
- dn as Group,
2575
- gn as Panel,
2576
- Sn as Separator,
2586
+ pn as Group,
2587
+ yn as Panel,
2588
+ bn as Separator,
2577
2589
  vt as SeparatorOverlay,
2578
2590
  Ht as isCoarsePointer,
2579
- zn as useDefaultLayout,
2580
- wn as useGroupCallbackRef,
2581
- Pn as useGroupRef,
2582
- Ln as usePanelCallbackRef,
2583
- Cn as usePanelRef
2591
+ wn as useDefaultLayout,
2592
+ Pn as useGroupCallbackRef,
2593
+ Ln as useGroupRef,
2594
+ Cn as usePanelCallbackRef,
2595
+ Rn as usePanelRef
2584
2596
  };
2585
2597
  //# sourceMappingURL=react-resizable-panels.js.map