react-resizable-panels 4.12.0 → 4.12.1
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,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as ae } from "react/jsx-runtime";
|
|
3
|
-
import { useState as Q, useCallback as re, useId as
|
|
4
|
-
function
|
|
3
|
+
import { useState as Q, useCallback as re, useId as mt, useLayoutEffect as Ke, useEffect as me, useRef as O, createContext as gt, useImperativeHandle as Xe, useMemo as Se, useSyncExternalStore as qe, useContext as yt } from "react";
|
|
4
|
+
function St(e, t) {
|
|
5
5
|
const n = getComputedStyle(e), o = parseFloat(n.fontSize);
|
|
6
6
|
return t * o;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function vt(e, t) {
|
|
9
9
|
const n = getComputedStyle(e.ownerDocument.documentElement), o = parseFloat(n.fontSize);
|
|
10
10
|
return t * o;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function bt(e) {
|
|
13
13
|
return e / 100 * window.innerHeight;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function zt(e) {
|
|
16
16
|
return e / 100 * window.innerWidth;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function xt(e) {
|
|
19
19
|
switch (typeof e) {
|
|
20
20
|
case "number":
|
|
21
21
|
return [e, "px"];
|
|
@@ -31,7 +31,7 @@ function ie({
|
|
|
31
31
|
styleProp: n
|
|
32
32
|
}) {
|
|
33
33
|
let o;
|
|
34
|
-
const [i, s] =
|
|
34
|
+
const [i, s] = xt(n);
|
|
35
35
|
switch (s) {
|
|
36
36
|
case "%": {
|
|
37
37
|
o = i / 100 * e;
|
|
@@ -42,25 +42,25 @@ function ie({
|
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
44
44
|
case "rem": {
|
|
45
|
-
o =
|
|
45
|
+
o = vt(t, i);
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
48
48
|
case "em": {
|
|
49
|
-
o =
|
|
49
|
+
o = St(t, i);
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
case "vh": {
|
|
53
|
-
o =
|
|
53
|
+
o = bt(i);
|
|
54
54
|
break;
|
|
55
55
|
}
|
|
56
56
|
case "vw": {
|
|
57
|
-
o =
|
|
57
|
+
o = zt(i);
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return o;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function T(e) {
|
|
64
64
|
return parseFloat(e.toFixed(3));
|
|
65
65
|
}
|
|
66
66
|
function ne({
|
|
@@ -89,7 +89,7 @@ function ve(e) {
|
|
|
89
89
|
panelElement: i,
|
|
90
90
|
styleProp: s.collapsedSize
|
|
91
91
|
});
|
|
92
|
-
u =
|
|
92
|
+
u = T(c / n * 100);
|
|
93
93
|
}
|
|
94
94
|
let a;
|
|
95
95
|
if (s.defaultSize !== void 0) {
|
|
@@ -98,7 +98,7 @@ function ve(e) {
|
|
|
98
98
|
panelElement: i,
|
|
99
99
|
styleProp: s.defaultSize
|
|
100
100
|
});
|
|
101
|
-
a =
|
|
101
|
+
a = T(c / n * 100);
|
|
102
102
|
}
|
|
103
103
|
let r = 0;
|
|
104
104
|
if (s.minSize !== void 0) {
|
|
@@ -107,7 +107,7 @@ function ve(e) {
|
|
|
107
107
|
panelElement: i,
|
|
108
108
|
styleProp: s.minSize
|
|
109
109
|
});
|
|
110
|
-
r =
|
|
110
|
+
r = T(c / n * 100);
|
|
111
111
|
}
|
|
112
112
|
let l = 100;
|
|
113
113
|
if (s.maxSize !== void 0) {
|
|
@@ -116,7 +116,7 @@ function ve(e) {
|
|
|
116
116
|
panelElement: i,
|
|
117
117
|
styleProp: s.maxSize
|
|
118
118
|
});
|
|
119
|
-
l =
|
|
119
|
+
l = T(c / n * 100);
|
|
120
120
|
}
|
|
121
121
|
return {
|
|
122
122
|
groupResizeBehavior: s.groupResizeBehavior,
|
|
@@ -136,21 +136,21 @@ function C(e, t = "Assertion error") {
|
|
|
136
136
|
}
|
|
137
137
|
function be(e, t) {
|
|
138
138
|
return Array.from(t).sort(
|
|
139
|
-
e === "horizontal" ?
|
|
139
|
+
e === "horizontal" ? Pt : wt
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Pt(e, t) {
|
|
143
143
|
const n = e.element.offsetLeft - t.element.offsetLeft;
|
|
144
144
|
return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function wt(e, t) {
|
|
147
147
|
const n = e.element.offsetTop - t.element.offsetTop;
|
|
148
148
|
return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ye(e) {
|
|
151
151
|
return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Je(e, t) {
|
|
154
154
|
return {
|
|
155
155
|
x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(
|
|
156
156
|
Math.abs(e.x - t.left),
|
|
@@ -162,7 +162,7 @@ function Ye(e, t) {
|
|
|
162
162
|
)
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Lt({
|
|
166
166
|
orientation: e,
|
|
167
167
|
rects: t,
|
|
168
168
|
targetRect: n
|
|
@@ -173,19 +173,19 @@ function Pt({
|
|
|
173
173
|
};
|
|
174
174
|
let i, s = Number.MAX_VALUE;
|
|
175
175
|
for (const u of t) {
|
|
176
|
-
const { x: a, y: r } =
|
|
176
|
+
const { x: a, y: r } = Je(o, u), l = e === "horizontal" ? a : r;
|
|
177
177
|
l < s && (s = l, i = u);
|
|
178
178
|
}
|
|
179
179
|
return C(i, "No rect found"), i;
|
|
180
180
|
}
|
|
181
181
|
let fe;
|
|
182
|
-
function
|
|
182
|
+
function Ct() {
|
|
183
183
|
return fe === void 0 && (typeof matchMedia == "function" ? fe = !!matchMedia("(pointer:coarse)").matches : fe = !1), fe;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Ze(e) {
|
|
186
186
|
const { element: t, orientation: n, panels: o, separators: i } = e, s = be(
|
|
187
187
|
n,
|
|
188
|
-
Array.from(t.children).filter(
|
|
188
|
+
Array.from(t.children).filter(Ye).map((z) => ({ element: z }))
|
|
189
189
|
).map(({ element: z }) => z), u = [];
|
|
190
190
|
let a = !1, r = !1, l = -1, c = -1, m = 0, p, S = [];
|
|
191
191
|
{
|
|
@@ -226,7 +226,7 @@ function Je(e) {
|
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
228
|
case 1: {
|
|
229
|
-
const w = S[0], M =
|
|
229
|
+
const w = S[0], M = Lt({
|
|
230
230
|
orientation: n,
|
|
231
231
|
rects: [h, y],
|
|
232
232
|
targetRect: w.element.getBoundingClientRect()
|
|
@@ -258,7 +258,7 @@ function Je(e) {
|
|
|
258
258
|
];
|
|
259
259
|
for (const v of b) {
|
|
260
260
|
let g = "width" in v ? v : v.element.getBoundingClientRect();
|
|
261
|
-
const w =
|
|
261
|
+
const w = Ct() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
|
|
262
262
|
if (g.width < w) {
|
|
263
263
|
const L = w - g.width;
|
|
264
264
|
g = new DOMRect(
|
|
@@ -300,7 +300,7 @@ function Je(e) {
|
|
|
300
300
|
}
|
|
301
301
|
return u;
|
|
302
302
|
}
|
|
303
|
-
class
|
|
303
|
+
class Qe {
|
|
304
304
|
#e = {};
|
|
305
305
|
addListener(t, n) {
|
|
306
306
|
const o = this.#e[t];
|
|
@@ -339,12 +339,119 @@ class Ze {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
+
let ee = {
|
|
343
|
+
cursorFlags: 0,
|
|
344
|
+
state: "inactive"
|
|
345
|
+
};
|
|
346
|
+
const ze = new Qe();
|
|
347
|
+
function B() {
|
|
348
|
+
return ee;
|
|
349
|
+
}
|
|
350
|
+
function Rt(e) {
|
|
351
|
+
return ze.addListener("change", e);
|
|
352
|
+
}
|
|
353
|
+
function Mt(e) {
|
|
354
|
+
const t = ee, n = { ...ee };
|
|
355
|
+
n.cursorFlags = e, ee = n, ze.emit("change", {
|
|
356
|
+
prev: t,
|
|
357
|
+
next: n
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
function te(e) {
|
|
361
|
+
const t = ee;
|
|
362
|
+
ee = e, ze.emit("change", {
|
|
363
|
+
prev: t,
|
|
364
|
+
next: e
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
const Et = (e) => e, ye = () => {
|
|
368
|
+
}, et = 1, tt = 2, nt = 4, ot = 8, Ie = 3, ke = 12;
|
|
369
|
+
let de;
|
|
370
|
+
function De() {
|
|
371
|
+
return de === void 0 && (de = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (de = !0)), de;
|
|
372
|
+
}
|
|
373
|
+
function It({
|
|
374
|
+
cursorFlags: e,
|
|
375
|
+
groups: t,
|
|
376
|
+
state: n
|
|
377
|
+
}) {
|
|
378
|
+
let o = 0, i = 0;
|
|
379
|
+
switch (n) {
|
|
380
|
+
case "active":
|
|
381
|
+
case "hover":
|
|
382
|
+
t.forEach((s) => {
|
|
383
|
+
if (!s.mutableState.disableCursor)
|
|
384
|
+
switch (s.orientation) {
|
|
385
|
+
case "horizontal": {
|
|
386
|
+
o++;
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
389
|
+
case "vertical": {
|
|
390
|
+
i++;
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
if (!(o === 0 && i === 0)) {
|
|
397
|
+
switch (n) {
|
|
398
|
+
case "active": {
|
|
399
|
+
if (e && De()) {
|
|
400
|
+
const s = (e & et) !== 0, u = (e & tt) !== 0, a = (e & nt) !== 0, r = (e & ot) !== 0;
|
|
401
|
+
if (s)
|
|
402
|
+
return a ? "se-resize" : r ? "ne-resize" : "e-resize";
|
|
403
|
+
if (u)
|
|
404
|
+
return a ? "sw-resize" : r ? "nw-resize" : "w-resize";
|
|
405
|
+
if (a)
|
|
406
|
+
return "s-resize";
|
|
407
|
+
if (r)
|
|
408
|
+
return "n-resize";
|
|
409
|
+
}
|
|
410
|
+
break;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return De() ? o > 0 && i > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
const Te = /* @__PURE__ */ new WeakMap();
|
|
417
|
+
function xe(e) {
|
|
418
|
+
if (e.defaultView === null || e.defaultView === void 0)
|
|
419
|
+
return;
|
|
420
|
+
let { prevStyle: t, styleSheet: n } = Te.get(e) ?? {};
|
|
421
|
+
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [
|
|
422
|
+
...e.adoptedStyleSheets,
|
|
423
|
+
n
|
|
424
|
+
]));
|
|
425
|
+
const o = B();
|
|
426
|
+
switch (o.state) {
|
|
427
|
+
case "active":
|
|
428
|
+
case "hover": {
|
|
429
|
+
const i = It({
|
|
430
|
+
cursorFlags: o.cursorFlags,
|
|
431
|
+
groups: o.hitRegions.map((u) => u.group),
|
|
432
|
+
state: o.state
|
|
433
|
+
}), s = `*, *:hover {cursor: ${i} !important; }`;
|
|
434
|
+
if (t === s)
|
|
435
|
+
return;
|
|
436
|
+
t = s, i ? n.cssRules.length === 0 ? n.insertRule(s) : n.replaceSync(s) : n.cssRules.length === 1 && n.deleteRule(0);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
case "inactive": {
|
|
440
|
+
t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
Te.set(e, {
|
|
445
|
+
prevStyle: t,
|
|
446
|
+
styleSheet: n
|
|
447
|
+
});
|
|
448
|
+
}
|
|
342
449
|
let F = /* @__PURE__ */ new Map();
|
|
343
|
-
const
|
|
344
|
-
function
|
|
450
|
+
const it = new Qe();
|
|
451
|
+
function kt(e) {
|
|
345
452
|
F = new Map(F), F.delete(e);
|
|
346
453
|
}
|
|
347
|
-
function
|
|
454
|
+
function Oe(e, t) {
|
|
348
455
|
for (const [n] of F)
|
|
349
456
|
if (n.id === e)
|
|
350
457
|
return n;
|
|
@@ -359,27 +466,47 @@ function H(e, t) {
|
|
|
359
466
|
function X() {
|
|
360
467
|
return F;
|
|
361
468
|
}
|
|
362
|
-
function
|
|
363
|
-
return
|
|
469
|
+
function Pe(e, t) {
|
|
470
|
+
return it.addListener("groupChange", (n) => {
|
|
364
471
|
n.group.id === e && t(n);
|
|
365
472
|
});
|
|
366
473
|
}
|
|
367
474
|
function j(e, t, n) {
|
|
368
475
|
const o = F.get(e);
|
|
369
|
-
F = new Map(F), F.set(e, t),
|
|
476
|
+
F = new Map(F), F.set(e, t), it.emit("groupChange", {
|
|
370
477
|
group: e,
|
|
371
478
|
isUserInteraction: n?.isUserInteraction === !0,
|
|
372
479
|
prev: o,
|
|
373
480
|
next: t
|
|
374
481
|
});
|
|
375
482
|
}
|
|
376
|
-
function
|
|
483
|
+
function rt(e) {
|
|
484
|
+
const t = B();
|
|
485
|
+
let n = !1;
|
|
486
|
+
switch (t.state) {
|
|
487
|
+
case "active":
|
|
488
|
+
te({
|
|
489
|
+
cursorFlags: 0,
|
|
490
|
+
state: "inactive"
|
|
491
|
+
}), t.hitRegions.length > 0 && (xe(e), n = !0, t.hitRegions.forEach((o) => {
|
|
492
|
+
const i = H(o.group.id, !0);
|
|
493
|
+
j(o.group, i, {
|
|
494
|
+
isUserInteraction: !0
|
|
495
|
+
});
|
|
496
|
+
}));
|
|
497
|
+
}
|
|
498
|
+
return n;
|
|
499
|
+
}
|
|
500
|
+
function Ge(e) {
|
|
501
|
+
e.defaultPrevented || rt(e.currentTarget);
|
|
502
|
+
}
|
|
503
|
+
function Dt(e, t, n) {
|
|
377
504
|
let o, i = {
|
|
378
505
|
x: 1 / 0,
|
|
379
506
|
y: 1 / 0
|
|
380
507
|
};
|
|
381
508
|
for (const s of t) {
|
|
382
|
-
const u =
|
|
509
|
+
const u = Je(n, s.rect);
|
|
383
510
|
switch (e) {
|
|
384
511
|
case "horizontal": {
|
|
385
512
|
u.x <= i.x && (o = s, i = u);
|
|
@@ -396,14 +523,14 @@ function Ct(e, t, n) {
|
|
|
396
523
|
hitRegion: o
|
|
397
524
|
} : void 0;
|
|
398
525
|
}
|
|
399
|
-
function
|
|
526
|
+
function Tt(e) {
|
|
400
527
|
return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
401
528
|
}
|
|
402
|
-
function
|
|
529
|
+
function Ot(e, t) {
|
|
403
530
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
404
531
|
const n = {
|
|
405
|
-
a:
|
|
406
|
-
b:
|
|
532
|
+
a: Ne(e),
|
|
533
|
+
b: Ne(t)
|
|
407
534
|
};
|
|
408
535
|
let o;
|
|
409
536
|
for (; n.a.at(-1) === n.b.at(-1); )
|
|
@@ -413,8 +540,8 @@ function Mt(e, t) {
|
|
|
413
540
|
"Stacking order can only be calculated for elements with a common ancestor"
|
|
414
541
|
);
|
|
415
542
|
const i = {
|
|
416
|
-
a:
|
|
417
|
-
b:
|
|
543
|
+
a: Fe(Ae(n.a)),
|
|
544
|
+
b: Fe(Ae(n.b))
|
|
418
545
|
};
|
|
419
546
|
if (i.a === i.b) {
|
|
420
547
|
const s = o.childNodes, u = {
|
|
@@ -430,75 +557,75 @@ function Mt(e, t) {
|
|
|
430
557
|
}
|
|
431
558
|
return Math.sign(i.a - i.b);
|
|
432
559
|
}
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
const t = getComputedStyle(
|
|
560
|
+
const Gt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
561
|
+
function At(e) {
|
|
562
|
+
const t = getComputedStyle(st(e) ?? e).display;
|
|
436
563
|
return t === "flex" || t === "inline-flex";
|
|
437
564
|
}
|
|
438
|
-
function
|
|
565
|
+
function Ft(e) {
|
|
439
566
|
const t = getComputedStyle(e);
|
|
440
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
567
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || At(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" || Gt.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
441
568
|
}
|
|
442
|
-
function
|
|
569
|
+
function Ae(e) {
|
|
443
570
|
let t = e.length;
|
|
444
571
|
for (; t--; ) {
|
|
445
572
|
const n = e[t];
|
|
446
|
-
if (C(n, "Missing node"),
|
|
573
|
+
if (C(n, "Missing node"), Ft(n)) return n;
|
|
447
574
|
}
|
|
448
575
|
return null;
|
|
449
576
|
}
|
|
450
|
-
function
|
|
577
|
+
function Fe(e) {
|
|
451
578
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
452
579
|
}
|
|
453
|
-
function
|
|
580
|
+
function Ne(e) {
|
|
454
581
|
const t = [];
|
|
455
582
|
for (; e; )
|
|
456
|
-
t.push(e), e =
|
|
583
|
+
t.push(e), e = st(e);
|
|
457
584
|
return t;
|
|
458
585
|
}
|
|
459
|
-
function
|
|
586
|
+
function st(e) {
|
|
460
587
|
const { parentNode: t } = e;
|
|
461
|
-
return
|
|
588
|
+
return Tt(t) ? t.host : t;
|
|
462
589
|
}
|
|
463
|
-
function
|
|
590
|
+
function Nt(e, t) {
|
|
464
591
|
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;
|
|
465
592
|
}
|
|
466
|
-
function
|
|
593
|
+
function _t({
|
|
467
594
|
groupElement: e,
|
|
468
595
|
hitRegion: t,
|
|
469
596
|
pointerEventTarget: n
|
|
470
597
|
}) {
|
|
471
|
-
if (!
|
|
598
|
+
if (!Ye(n) || n.contains(e) || e.contains(n))
|
|
472
599
|
return !0;
|
|
473
|
-
if (
|
|
600
|
+
if (Ot(n, e) > 0) {
|
|
474
601
|
let o = n;
|
|
475
602
|
for (; o; ) {
|
|
476
603
|
if (o.contains(e))
|
|
477
604
|
return !0;
|
|
478
|
-
if (
|
|
605
|
+
if (Nt(o.getBoundingClientRect(), t))
|
|
479
606
|
return !1;
|
|
480
607
|
o = o.parentElement;
|
|
481
608
|
}
|
|
482
609
|
}
|
|
483
610
|
return !0;
|
|
484
611
|
}
|
|
485
|
-
function
|
|
612
|
+
function we(e, t) {
|
|
486
613
|
const n = [];
|
|
487
614
|
return t.forEach((o, i) => {
|
|
488
615
|
if (i.disabled)
|
|
489
616
|
return;
|
|
490
|
-
const s =
|
|
617
|
+
const s = Ze(i), u = Dt(i.orientation, s, {
|
|
491
618
|
x: e.clientX,
|
|
492
619
|
y: e.clientY
|
|
493
620
|
});
|
|
494
|
-
u && u.distance.x <= 0 && u.distance.y <= 0 &&
|
|
621
|
+
u && u.distance.x <= 0 && u.distance.y <= 0 && _t({
|
|
495
622
|
groupElement: i.element,
|
|
496
623
|
hitRegion: u.hitRegion.rect,
|
|
497
624
|
pointerEventTarget: e.target
|
|
498
625
|
}) && n.push(u.hitRegion);
|
|
499
626
|
}), n;
|
|
500
627
|
}
|
|
501
|
-
function
|
|
628
|
+
function $t(e, t) {
|
|
502
629
|
if (e.length !== t.length)
|
|
503
630
|
return !1;
|
|
504
631
|
for (let n = 0; n < e.length; n++)
|
|
@@ -507,7 +634,7 @@ function Tt(e, t) {
|
|
|
507
634
|
return !0;
|
|
508
635
|
}
|
|
509
636
|
function k(e, t, n = 0) {
|
|
510
|
-
return Math.abs(
|
|
637
|
+
return Math.abs(T(e) - T(t)) <= n;
|
|
511
638
|
}
|
|
512
639
|
function A(e, t) {
|
|
513
640
|
return k(e, t) ? 0 : e > t ? 1 : -1;
|
|
@@ -533,7 +660,7 @@ function Z({
|
|
|
533
660
|
A(o, l) < 0 ? o = i : o = r;
|
|
534
661
|
} else
|
|
535
662
|
o = r;
|
|
536
|
-
return o = Math.min(a, o), o =
|
|
663
|
+
return o = Math.min(a, o), o = T(o), o;
|
|
537
664
|
}
|
|
538
665
|
function le({
|
|
539
666
|
delta: e,
|
|
@@ -656,7 +783,7 @@ function le({
|
|
|
656
783
|
e < 0 ? d-- : d++;
|
|
657
784
|
}
|
|
658
785
|
}
|
|
659
|
-
if (
|
|
786
|
+
if ($t(r, l))
|
|
660
787
|
return i;
|
|
661
788
|
{
|
|
662
789
|
const f = e < 0 ? m : c, d = a[f];
|
|
@@ -699,7 +826,7 @@ function le({
|
|
|
699
826
|
const z = Object.keys(i);
|
|
700
827
|
return l.reduce((f, d, h) => (f[z[h]] = d, f), {});
|
|
701
828
|
}
|
|
702
|
-
function
|
|
829
|
+
function W(e, t) {
|
|
703
830
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
704
831
|
return !1;
|
|
705
832
|
for (const n in e)
|
|
@@ -707,7 +834,7 @@ function B(e, t) {
|
|
|
707
834
|
return !1;
|
|
708
835
|
return !0;
|
|
709
836
|
}
|
|
710
|
-
function
|
|
837
|
+
function K({
|
|
711
838
|
layout: e,
|
|
712
839
|
panelConstraints: t
|
|
713
840
|
}) {
|
|
@@ -756,7 +883,7 @@ function W({
|
|
|
756
883
|
const u = Object.keys(e);
|
|
757
884
|
return o.reduce((a, r, l) => (a[u[l]] = r, a), {});
|
|
758
885
|
}
|
|
759
|
-
function
|
|
886
|
+
function at({
|
|
760
887
|
groupId: e,
|
|
761
888
|
panelId: t
|
|
762
889
|
}) {
|
|
@@ -813,7 +940,7 @@ function tt({
|
|
|
813
940
|
const h = l.slice(0, S).reduce((y, b) => y + c[b.id], 0);
|
|
814
941
|
return {
|
|
815
942
|
...c,
|
|
816
|
-
[t]:
|
|
943
|
+
[t]: T(100 - h)
|
|
817
944
|
};
|
|
818
945
|
}
|
|
819
946
|
return le({
|
|
@@ -840,11 +967,11 @@ function tt({
|
|
|
840
967
|
panels: p.panels,
|
|
841
968
|
prevLayout: z,
|
|
842
969
|
derivedPanelConstraints: m
|
|
843
|
-
}), h =
|
|
970
|
+
}), h = K({
|
|
844
971
|
layout: d,
|
|
845
972
|
panelConstraints: m
|
|
846
973
|
});
|
|
847
|
-
|
|
974
|
+
W(z, h) || j(p, {
|
|
848
975
|
defaultLayoutDeferred: c,
|
|
849
976
|
derivedPanelConstraints: m,
|
|
850
977
|
groupSize: S,
|
|
@@ -880,22 +1007,22 @@ function tt({
|
|
|
880
1007
|
groupSize: m,
|
|
881
1008
|
panelElement: c,
|
|
882
1009
|
styleProp: r
|
|
883
|
-
}), S =
|
|
1010
|
+
}), S = T(p / m * 100);
|
|
884
1011
|
a(S);
|
|
885
1012
|
}
|
|
886
1013
|
};
|
|
887
1014
|
}
|
|
888
|
-
function
|
|
1015
|
+
function _e(e) {
|
|
889
1016
|
if (e.defaultPrevented)
|
|
890
1017
|
return;
|
|
891
1018
|
const t = X();
|
|
892
|
-
|
|
1019
|
+
we(e, t).forEach((o) => {
|
|
893
1020
|
if (o.separator && !o.separator.disableDoubleClick) {
|
|
894
1021
|
const i = o.panels.find(
|
|
895
1022
|
(s) => s.panelConstraints.defaultSize !== void 0
|
|
896
1023
|
);
|
|
897
1024
|
if (i) {
|
|
898
|
-
const s = i.panelConstraints.defaultSize, u =
|
|
1025
|
+
const s = i.panelConstraints.defaultSize, u = at({
|
|
899
1026
|
groupId: o.group.id,
|
|
900
1027
|
panelId: i.id
|
|
901
1028
|
});
|
|
@@ -913,7 +1040,7 @@ function pe(e) {
|
|
|
913
1040
|
return n;
|
|
914
1041
|
throw Error("Could not find parent Group for separator element");
|
|
915
1042
|
}
|
|
916
|
-
function
|
|
1043
|
+
function lt({
|
|
917
1044
|
groupId: e
|
|
918
1045
|
}) {
|
|
919
1046
|
const t = () => {
|
|
@@ -936,11 +1063,11 @@ function nt({
|
|
|
936
1063
|
groupSize: u,
|
|
937
1064
|
layout: a,
|
|
938
1065
|
separatorToPanels: r
|
|
939
|
-
} = t(), l =
|
|
1066
|
+
} = t(), l = K({
|
|
940
1067
|
layout: n,
|
|
941
1068
|
panelConstraints: i
|
|
942
1069
|
});
|
|
943
|
-
return o ? a : (
|
|
1070
|
+
return o ? a : (W(a, l) || j(s, {
|
|
944
1071
|
defaultLayoutDeferred: o,
|
|
945
1072
|
derivedPanelConstraints: i,
|
|
946
1073
|
groupSize: u,
|
|
@@ -957,18 +1084,18 @@ function U(e, t) {
|
|
|
957
1084
|
C(i, "Matching separator not found");
|
|
958
1085
|
const s = o.separatorToPanels.get(i);
|
|
959
1086
|
C(s, "Matching panels not found");
|
|
960
|
-
const u = s.map((m) => n.panels.indexOf(m)), r =
|
|
1087
|
+
const u = s.map((m) => n.panels.indexOf(m)), r = lt({ groupId: n.id }).getLayout(), l = le({
|
|
961
1088
|
delta: t,
|
|
962
1089
|
initialLayout: r,
|
|
963
1090
|
panelConstraints: o.derivedPanelConstraints,
|
|
964
1091
|
pivotIndices: u,
|
|
965
1092
|
prevLayout: r,
|
|
966
1093
|
trigger: "keyboard"
|
|
967
|
-
}), c =
|
|
1094
|
+
}), c = K({
|
|
968
1095
|
layout: l,
|
|
969
1096
|
panelConstraints: o.derivedPanelConstraints
|
|
970
1097
|
});
|
|
971
|
-
|
|
1098
|
+
W(r, c) || j(
|
|
972
1099
|
n,
|
|
973
1100
|
{
|
|
974
1101
|
defaultLayoutDeferred: o.defaultLayoutDeferred,
|
|
@@ -984,7 +1111,7 @@ function U(e, t) {
|
|
|
984
1111
|
{ isUserInteraction: !0 }
|
|
985
1112
|
);
|
|
986
1113
|
}
|
|
987
|
-
function
|
|
1114
|
+
function $e(e) {
|
|
988
1115
|
if (e.defaultPrevented)
|
|
989
1116
|
return;
|
|
990
1117
|
const t = e.currentTarget, n = pe(t);
|
|
@@ -1047,37 +1174,12 @@ function Ge(e) {
|
|
|
1047
1174
|
}
|
|
1048
1175
|
}
|
|
1049
1176
|
}
|
|
1050
|
-
|
|
1051
|
-
cursorFlags: 0,
|
|
1052
|
-
state: "inactive"
|
|
1053
|
-
};
|
|
1054
|
-
const Pe = new Ze();
|
|
1055
|
-
function K() {
|
|
1056
|
-
return ee;
|
|
1057
|
-
}
|
|
1058
|
-
function Gt(e) {
|
|
1059
|
-
return Pe.addListener("change", e);
|
|
1060
|
-
}
|
|
1061
|
-
function At(e) {
|
|
1062
|
-
const t = ee, n = { ...ee };
|
|
1063
|
-
n.cursorFlags = e, ee = n, Pe.emit("change", {
|
|
1064
|
-
prev: t,
|
|
1065
|
-
next: n
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
function te(e) {
|
|
1069
|
-
const t = ee;
|
|
1070
|
-
ee = e, Pe.emit("change", {
|
|
1071
|
-
prev: t,
|
|
1072
|
-
next: e
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
function Ae(e) {
|
|
1177
|
+
function je(e) {
|
|
1076
1178
|
if (e.defaultPrevented)
|
|
1077
1179
|
return;
|
|
1078
1180
|
if (e.pointerType === "mouse" && e.button > 0)
|
|
1079
1181
|
return;
|
|
1080
|
-
const t = X(), n =
|
|
1182
|
+
const t = X(), n = we(e, t), o = /* @__PURE__ */ new Map();
|
|
1081
1183
|
let i = !1;
|
|
1082
1184
|
n.forEach((s) => {
|
|
1083
1185
|
s.separator && (i || (i = !0, s.separator.element.focus({
|
|
@@ -1095,89 +1197,7 @@ function Ae(e) {
|
|
|
1095
1197
|
state: "active"
|
|
1096
1198
|
}), n.length && e.preventDefault();
|
|
1097
1199
|
}
|
|
1098
|
-
|
|
1099
|
-
}, ot = 1, it = 2, rt = 4, st = 8, Fe = 3, Ne = 12;
|
|
1100
|
-
let de;
|
|
1101
|
-
function _e() {
|
|
1102
|
-
return de === void 0 && (de = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (de = !0)), de;
|
|
1103
|
-
}
|
|
1104
|
-
function Nt({
|
|
1105
|
-
cursorFlags: e,
|
|
1106
|
-
groups: t,
|
|
1107
|
-
state: n
|
|
1108
|
-
}) {
|
|
1109
|
-
let o = 0, i = 0;
|
|
1110
|
-
switch (n) {
|
|
1111
|
-
case "active":
|
|
1112
|
-
case "hover":
|
|
1113
|
-
t.forEach((s) => {
|
|
1114
|
-
if (!s.mutableState.disableCursor)
|
|
1115
|
-
switch (s.orientation) {
|
|
1116
|
-
case "horizontal": {
|
|
1117
|
-
o++;
|
|
1118
|
-
break;
|
|
1119
|
-
}
|
|
1120
|
-
case "vertical": {
|
|
1121
|
-
i++;
|
|
1122
|
-
break;
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
if (!(o === 0 && i === 0)) {
|
|
1128
|
-
switch (n) {
|
|
1129
|
-
case "active": {
|
|
1130
|
-
if (e && _e()) {
|
|
1131
|
-
const s = (e & ot) !== 0, u = (e & it) !== 0, a = (e & rt) !== 0, r = (e & st) !== 0;
|
|
1132
|
-
if (s)
|
|
1133
|
-
return a ? "se-resize" : r ? "ne-resize" : "e-resize";
|
|
1134
|
-
if (u)
|
|
1135
|
-
return a ? "sw-resize" : r ? "nw-resize" : "w-resize";
|
|
1136
|
-
if (a)
|
|
1137
|
-
return "s-resize";
|
|
1138
|
-
if (r)
|
|
1139
|
-
return "n-resize";
|
|
1140
|
-
}
|
|
1141
|
-
break;
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
return _e() ? o > 0 && i > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
const $e = /* @__PURE__ */ new WeakMap();
|
|
1148
|
-
function we(e) {
|
|
1149
|
-
if (e.defaultView === null || e.defaultView === void 0)
|
|
1150
|
-
return;
|
|
1151
|
-
let { prevStyle: t, styleSheet: n } = $e.get(e) ?? {};
|
|
1152
|
-
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [
|
|
1153
|
-
...e.adoptedStyleSheets,
|
|
1154
|
-
n
|
|
1155
|
-
]));
|
|
1156
|
-
const o = K();
|
|
1157
|
-
switch (o.state) {
|
|
1158
|
-
case "active":
|
|
1159
|
-
case "hover": {
|
|
1160
|
-
const i = Nt({
|
|
1161
|
-
cursorFlags: o.cursorFlags,
|
|
1162
|
-
groups: o.hitRegions.map((u) => u.group),
|
|
1163
|
-
state: o.state
|
|
1164
|
-
}), s = `*, *:hover {cursor: ${i} !important; }`;
|
|
1165
|
-
if (t === s)
|
|
1166
|
-
return;
|
|
1167
|
-
t = s, i ? n.cssRules.length === 0 ? n.insertRule(s) : n.replaceSync(s) : n.cssRules.length === 1 && n.deleteRule(0);
|
|
1168
|
-
break;
|
|
1169
|
-
}
|
|
1170
|
-
case "inactive": {
|
|
1171
|
-
t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
|
|
1172
|
-
break;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
$e.set(e, {
|
|
1176
|
-
prevStyle: t,
|
|
1177
|
-
styleSheet: n
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
function at({
|
|
1200
|
+
function ut({
|
|
1181
1201
|
document: e,
|
|
1182
1202
|
event: t,
|
|
1183
1203
|
hitRegions: n,
|
|
@@ -1210,15 +1230,15 @@ function at({
|
|
|
1210
1230
|
prevLayout: g,
|
|
1211
1231
|
trigger: "mouse-or-touch"
|
|
1212
1232
|
});
|
|
1213
|
-
if (
|
|
1233
|
+
if (W(M, g)) {
|
|
1214
1234
|
if (f !== 0 && !z)
|
|
1215
1235
|
switch (p) {
|
|
1216
1236
|
case "horizontal": {
|
|
1217
|
-
a |= f < 0 ?
|
|
1237
|
+
a |= f < 0 ? et : tt;
|
|
1218
1238
|
break;
|
|
1219
1239
|
}
|
|
1220
1240
|
case "vertical": {
|
|
1221
|
-
a |= f < 0 ?
|
|
1241
|
+
a |= f < 0 ? nt : ot;
|
|
1222
1242
|
break;
|
|
1223
1243
|
}
|
|
1224
1244
|
}
|
|
@@ -1233,13 +1253,13 @@ function at({
|
|
|
1233
1253
|
}
|
|
1234
1254
|
});
|
|
1235
1255
|
let r = 0;
|
|
1236
|
-
t.movementX === 0 ? r |= u &
|
|
1256
|
+
t.movementX === 0 ? r |= u & Ie : r |= a & Ie, t.movementY === 0 ? r |= u & ke : r |= a & ke, Mt(r), xe(e);
|
|
1237
1257
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const t = X(), n =
|
|
1258
|
+
function He(e) {
|
|
1259
|
+
const t = X(), n = B();
|
|
1240
1260
|
switch (n.state) {
|
|
1241
1261
|
case "active":
|
|
1242
|
-
|
|
1262
|
+
ut({
|
|
1243
1263
|
document: e.currentTarget,
|
|
1244
1264
|
event: e,
|
|
1245
1265
|
hitRegions: n.hitRegions,
|
|
@@ -1249,10 +1269,10 @@ function je(e) {
|
|
|
1249
1269
|
});
|
|
1250
1270
|
}
|
|
1251
1271
|
}
|
|
1252
|
-
function
|
|
1272
|
+
function Ve(e) {
|
|
1253
1273
|
if (e.defaultPrevented)
|
|
1254
1274
|
return;
|
|
1255
|
-
const t =
|
|
1275
|
+
const t = B(), n = X();
|
|
1256
1276
|
switch (t.state) {
|
|
1257
1277
|
case "active": {
|
|
1258
1278
|
if (
|
|
@@ -1275,7 +1295,7 @@ function He(e) {
|
|
|
1275
1295
|
const { element: i } = o.separator;
|
|
1276
1296
|
i.hasPointerCapture?.(e.pointerId) || i.setPointerCapture?.(e.pointerId);
|
|
1277
1297
|
}
|
|
1278
|
-
|
|
1298
|
+
ut({
|
|
1279
1299
|
document: e.currentTarget,
|
|
1280
1300
|
event: e,
|
|
1281
1301
|
hitRegions: t.hitRegions,
|
|
@@ -1287,7 +1307,7 @@ function He(e) {
|
|
|
1287
1307
|
break;
|
|
1288
1308
|
}
|
|
1289
1309
|
default: {
|
|
1290
|
-
const o =
|
|
1310
|
+
const o = we(e, n);
|
|
1291
1311
|
o.length === 0 ? t.state !== "inactive" && te({
|
|
1292
1312
|
cursorFlags: 0,
|
|
1293
1313
|
state: "inactive"
|
|
@@ -1295,14 +1315,14 @@ function He(e) {
|
|
|
1295
1315
|
cursorFlags: 0,
|
|
1296
1316
|
hitRegions: o,
|
|
1297
1317
|
state: "hover"
|
|
1298
|
-
}),
|
|
1318
|
+
}), xe(e.currentTarget);
|
|
1299
1319
|
break;
|
|
1300
1320
|
}
|
|
1301
1321
|
}
|
|
1302
1322
|
}
|
|
1303
|
-
function
|
|
1323
|
+
function Ue(e) {
|
|
1304
1324
|
if (e.relatedTarget instanceof HTMLIFrameElement)
|
|
1305
|
-
switch (
|
|
1325
|
+
switch (B().state) {
|
|
1306
1326
|
case "hover":
|
|
1307
1327
|
te({
|
|
1308
1328
|
cursorFlags: 0,
|
|
@@ -1310,56 +1330,44 @@ function Ve(e) {
|
|
|
1310
1330
|
});
|
|
1311
1331
|
}
|
|
1312
1332
|
}
|
|
1313
|
-
function
|
|
1333
|
+
function Be(e) {
|
|
1314
1334
|
if (e.defaultPrevented)
|
|
1315
1335
|
return;
|
|
1316
1336
|
if (e.pointerType === "mouse" && e.button > 0)
|
|
1317
1337
|
return;
|
|
1318
|
-
|
|
1319
|
-
switch (t.state) {
|
|
1320
|
-
case "active":
|
|
1321
|
-
te({
|
|
1322
|
-
cursorFlags: 0,
|
|
1323
|
-
state: "inactive"
|
|
1324
|
-
}), t.hitRegions.length > 0 && (we(e.currentTarget), t.hitRegions.forEach((n) => {
|
|
1325
|
-
const o = H(n.group.id, !0);
|
|
1326
|
-
j(n.group, o, {
|
|
1327
|
-
isUserInteraction: !0
|
|
1328
|
-
});
|
|
1329
|
-
}), e.preventDefault());
|
|
1330
|
-
}
|
|
1338
|
+
rt(e.currentTarget) && e.preventDefault();
|
|
1331
1339
|
}
|
|
1332
|
-
function
|
|
1340
|
+
function We(e) {
|
|
1333
1341
|
let t = 0, n = 0;
|
|
1334
1342
|
const o = {};
|
|
1335
1343
|
for (const s of e)
|
|
1336
1344
|
if (s.defaultSize !== void 0) {
|
|
1337
1345
|
t++;
|
|
1338
|
-
const u =
|
|
1346
|
+
const u = T(s.defaultSize);
|
|
1339
1347
|
n += u, o[s.panelId] = u;
|
|
1340
1348
|
} else
|
|
1341
1349
|
o[s.panelId] = void 0;
|
|
1342
1350
|
const i = e.length - t;
|
|
1343
1351
|
if (i !== 0) {
|
|
1344
|
-
const s =
|
|
1352
|
+
const s = T((100 - n) / i);
|
|
1345
1353
|
for (const u of e)
|
|
1346
1354
|
u.defaultSize === void 0 && (o[u.panelId] = s);
|
|
1347
1355
|
}
|
|
1348
1356
|
return o;
|
|
1349
1357
|
}
|
|
1350
|
-
function
|
|
1358
|
+
function jt(e, t, n) {
|
|
1351
1359
|
if (!n[0])
|
|
1352
1360
|
return;
|
|
1353
1361
|
const i = e.panels.find((l) => l.element === t);
|
|
1354
1362
|
if (!i || !i.onResize)
|
|
1355
1363
|
return;
|
|
1356
1364
|
const s = ne({ group: e }), u = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, a = i.mutableValues.prevSize, r = {
|
|
1357
|
-
asPercentage:
|
|
1365
|
+
asPercentage: T(u / s * 100),
|
|
1358
1366
|
inPixels: u
|
|
1359
1367
|
};
|
|
1360
1368
|
i.mutableValues.prevSize = r, i.onResize(r, i.id, a);
|
|
1361
1369
|
}
|
|
1362
|
-
function
|
|
1370
|
+
function Ht(e, t) {
|
|
1363
1371
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1364
1372
|
return !1;
|
|
1365
1373
|
for (const o in e)
|
|
@@ -1367,7 +1375,7 @@ function $t(e, t) {
|
|
|
1367
1375
|
return !1;
|
|
1368
1376
|
return !0;
|
|
1369
1377
|
}
|
|
1370
|
-
function
|
|
1378
|
+
function Vt({
|
|
1371
1379
|
group: e,
|
|
1372
1380
|
nextGroupSize: t,
|
|
1373
1381
|
prevGroupSize: n,
|
|
@@ -1382,7 +1390,7 @@ function jt({
|
|
|
1382
1390
|
switch (m.panelConstraints.groupResizeBehavior) {
|
|
1383
1391
|
case "preserve-pixel-size": {
|
|
1384
1392
|
u = !0;
|
|
1385
|
-
const S = p / 100 * n, z =
|
|
1393
|
+
const S = p / 100 * n, z = T(
|
|
1386
1394
|
S / t * 100
|
|
1387
1395
|
);
|
|
1388
1396
|
a.set(m.id, z), i += z;
|
|
@@ -1403,12 +1411,12 @@ function jt({
|
|
|
1403
1411
|
}), s > 0)
|
|
1404
1412
|
for (const m of r) {
|
|
1405
1413
|
const p = o[m] ?? 0;
|
|
1406
|
-
c[m] =
|
|
1414
|
+
c[m] = T(
|
|
1407
1415
|
p / s * l
|
|
1408
1416
|
);
|
|
1409
1417
|
}
|
|
1410
1418
|
else {
|
|
1411
|
-
const m =
|
|
1419
|
+
const m = T(
|
|
1412
1420
|
l / r.length
|
|
1413
1421
|
);
|
|
1414
1422
|
for (const p of r)
|
|
@@ -1416,7 +1424,7 @@ function jt({
|
|
|
1416
1424
|
}
|
|
1417
1425
|
return c;
|
|
1418
1426
|
}
|
|
1419
|
-
function
|
|
1427
|
+
function Ut(e, t) {
|
|
1420
1428
|
const n = e.map((i) => i.id), o = Object.keys(t);
|
|
1421
1429
|
if (n.length !== o.length)
|
|
1422
1430
|
return !1;
|
|
@@ -1426,7 +1434,7 @@ function Ht(e, t) {
|
|
|
1426
1434
|
return !0;
|
|
1427
1435
|
}
|
|
1428
1436
|
const J = /* @__PURE__ */ new Map();
|
|
1429
|
-
function
|
|
1437
|
+
function Bt(e) {
|
|
1430
1438
|
let t = !0;
|
|
1431
1439
|
C(
|
|
1432
1440
|
e.element.ownerDocument.defaultView,
|
|
@@ -1443,16 +1451,16 @@ function Vt(e) {
|
|
|
1443
1451
|
const v = H(e.id);
|
|
1444
1452
|
if (!v)
|
|
1445
1453
|
return;
|
|
1446
|
-
const g = ve(e), w = v.defaultLayoutDeferred ?
|
|
1454
|
+
const g = ve(e), w = v.defaultLayoutDeferred ? We(g) : v.layout, M = Vt({
|
|
1447
1455
|
group: e,
|
|
1448
1456
|
nextGroupSize: b,
|
|
1449
1457
|
prevGroupSize: v.groupSize,
|
|
1450
1458
|
prevLayout: w
|
|
1451
|
-
}), L =
|
|
1459
|
+
}), L = K({
|
|
1452
1460
|
layout: M,
|
|
1453
1461
|
panelConstraints: g
|
|
1454
1462
|
});
|
|
1455
|
-
if (!v.defaultLayoutDeferred &&
|
|
1463
|
+
if (!v.defaultLayoutDeferred && W(v.layout, L) && Ht(
|
|
1456
1464
|
v.derivedPanelConstraints,
|
|
1457
1465
|
g
|
|
1458
1466
|
) && v.groupSize === b)
|
|
@@ -1466,7 +1474,7 @@ function Vt(e) {
|
|
|
1466
1474
|
});
|
|
1467
1475
|
}
|
|
1468
1476
|
} else
|
|
1469
|
-
|
|
1477
|
+
jt(e, y, h);
|
|
1470
1478
|
}
|
|
1471
1479
|
});
|
|
1472
1480
|
s.observe(e.element), e.panels.forEach((f) => {
|
|
@@ -1477,8 +1485,8 @@ function Vt(e) {
|
|
|
1477
1485
|
});
|
|
1478
1486
|
const u = ne({ group: e }), a = ve(e), r = e.panels.map(({ id: f }) => f).join(",");
|
|
1479
1487
|
let l = e.mutableState.defaultLayout;
|
|
1480
|
-
l && (
|
|
1481
|
-
const c = e.mutableState.layouts[r] ?? l ??
|
|
1488
|
+
l && (Ut(e.panels, l) || (l = void 0));
|
|
1489
|
+
const c = e.mutableState.layouts[r] ?? l ?? We(a), m = K({
|
|
1482
1490
|
layout: c,
|
|
1483
1491
|
panelConstraints: a
|
|
1484
1492
|
}), p = e.element.ownerDocument;
|
|
@@ -1487,7 +1495,7 @@ function Vt(e) {
|
|
|
1487
1495
|
(J.get(p) ?? 0) + 1
|
|
1488
1496
|
);
|
|
1489
1497
|
const S = /* @__PURE__ */ new Map();
|
|
1490
|
-
return
|
|
1498
|
+
return Ze(e).forEach((f) => {
|
|
1491
1499
|
f.separator && S.set(f.separator, f.panels);
|
|
1492
1500
|
}), j(e, {
|
|
1493
1501
|
defaultLayoutDeferred: u === 0,
|
|
@@ -1499,35 +1507,39 @@ function Vt(e) {
|
|
|
1499
1507
|
C(
|
|
1500
1508
|
!i.has(f.id),
|
|
1501
1509
|
`Separator ids must be unique; id "${f.id}" was used more than once`
|
|
1502
|
-
), i.add(f.id), f.element.addEventListener("keydown",
|
|
1503
|
-
}), J.get(p) === 1 && (p.addEventListener("dblclick",
|
|
1510
|
+
), i.add(f.id), f.element.addEventListener("keydown", $e);
|
|
1511
|
+
}), J.get(p) === 1 && (p.addEventListener("contextmenu", Ge, !0), p.addEventListener("dblclick", _e, !0), p.addEventListener("pointerdown", je, !0), p.addEventListener("pointerleave", He), p.addEventListener("pointermove", Ve), p.addEventListener("pointerout", Ue), p.addEventListener("pointerup", Be, !0)), function() {
|
|
1504
1512
|
t = !1, J.set(
|
|
1505
1513
|
p,
|
|
1506
1514
|
Math.max(0, (J.get(p) ?? 0) - 1)
|
|
1507
|
-
),
|
|
1508
|
-
d.element.removeEventListener("keydown",
|
|
1515
|
+
), kt(e), e.separators.forEach((d) => {
|
|
1516
|
+
d.element.removeEventListener("keydown", $e);
|
|
1509
1517
|
}), J.get(p) || (p.removeEventListener(
|
|
1518
|
+
"contextmenu",
|
|
1519
|
+
Ge,
|
|
1520
|
+
!0
|
|
1521
|
+
), p.removeEventListener(
|
|
1510
1522
|
"dblclick",
|
|
1511
|
-
|
|
1523
|
+
_e,
|
|
1512
1524
|
!0
|
|
1513
1525
|
), p.removeEventListener(
|
|
1514
1526
|
"pointerdown",
|
|
1515
|
-
|
|
1527
|
+
je,
|
|
1516
1528
|
!0
|
|
1517
|
-
), p.removeEventListener("pointerleave",
|
|
1529
|
+
), p.removeEventListener("pointerleave", He), p.removeEventListener("pointermove", Ve), p.removeEventListener("pointerout", Ue), p.removeEventListener("pointerup", Be, !0)), s.disconnect();
|
|
1518
1530
|
};
|
|
1519
1531
|
}
|
|
1520
|
-
function
|
|
1532
|
+
function Wt() {
|
|
1521
1533
|
const [e, t] = Q({}), n = re(() => t({}), []);
|
|
1522
1534
|
return [e, n];
|
|
1523
1535
|
}
|
|
1524
1536
|
function Le(e) {
|
|
1525
|
-
const t =
|
|
1537
|
+
const t = mt();
|
|
1526
1538
|
return `${e ?? t}`;
|
|
1527
1539
|
}
|
|
1528
|
-
const q = typeof window < "u" ?
|
|
1540
|
+
const q = typeof window < "u" ? Ke : me;
|
|
1529
1541
|
function se(e) {
|
|
1530
|
-
const t =
|
|
1542
|
+
const t = O(e);
|
|
1531
1543
|
return q(() => {
|
|
1532
1544
|
t.current = e;
|
|
1533
1545
|
}, [e]), re(
|
|
@@ -1553,26 +1565,26 @@ function Ce(...e) {
|
|
|
1553
1565
|
});
|
|
1554
1566
|
}
|
|
1555
1567
|
function Re(e) {
|
|
1556
|
-
const t =
|
|
1568
|
+
const t = O({ ...e });
|
|
1557
1569
|
return q(() => {
|
|
1558
1570
|
for (const n in e)
|
|
1559
1571
|
t.current[n] = e[n];
|
|
1560
1572
|
}, [e]), t.current;
|
|
1561
1573
|
}
|
|
1562
|
-
const
|
|
1563
|
-
function
|
|
1564
|
-
const n =
|
|
1574
|
+
const ct = gt(null);
|
|
1575
|
+
function Kt(e, t) {
|
|
1576
|
+
const n = O({
|
|
1565
1577
|
getLayout: () => ({}),
|
|
1566
|
-
setLayout:
|
|
1578
|
+
setLayout: Et
|
|
1567
1579
|
});
|
|
1568
|
-
|
|
1580
|
+
Xe(t, () => n.current, []), q(() => {
|
|
1569
1581
|
Object.assign(
|
|
1570
1582
|
n.current,
|
|
1571
|
-
|
|
1583
|
+
lt({ groupId: e })
|
|
1572
1584
|
);
|
|
1573
1585
|
});
|
|
1574
1586
|
}
|
|
1575
|
-
function
|
|
1587
|
+
function Xt({
|
|
1576
1588
|
children: e,
|
|
1577
1589
|
className: t,
|
|
1578
1590
|
defaultLayout: n,
|
|
@@ -1591,26 +1603,26 @@ function Wt({
|
|
|
1591
1603
|
style: p,
|
|
1592
1604
|
...S
|
|
1593
1605
|
}) {
|
|
1594
|
-
const z =
|
|
1606
|
+
const z = O({
|
|
1595
1607
|
onLayoutChange: {},
|
|
1596
1608
|
onLayoutChanged: {}
|
|
1597
1609
|
}), f = se((x) => {
|
|
1598
|
-
|
|
1610
|
+
W(z.current.onLayoutChange, x) || (z.current.onLayoutChange = x, r?.(x));
|
|
1599
1611
|
}), d = se(
|
|
1600
1612
|
(x, P) => {
|
|
1601
|
-
|
|
1613
|
+
W(z.current.onLayoutChanged, x) || (z.current.onLayoutChanged = x, l?.(x, { isUserInteraction: P }));
|
|
1602
1614
|
}
|
|
1603
|
-
), h = Le(a), y =
|
|
1615
|
+
), h = Le(a), y = O(null), [b, v] = Wt(), g = O({
|
|
1604
1616
|
lastExpandedPanelSizes: {},
|
|
1605
1617
|
layouts: {},
|
|
1606
1618
|
panels: [],
|
|
1607
1619
|
resizeTargetMinimumSize: m,
|
|
1608
1620
|
separators: []
|
|
1609
1621
|
}), w = Ce(y, s);
|
|
1610
|
-
|
|
1622
|
+
Kt(h, u);
|
|
1611
1623
|
const M = se(
|
|
1612
1624
|
(x, P) => {
|
|
1613
|
-
const I =
|
|
1625
|
+
const I = B(), R = Oe(x), E = H(x);
|
|
1614
1626
|
if (E) {
|
|
1615
1627
|
let D = !1;
|
|
1616
1628
|
switch (I.state) {
|
|
@@ -1669,7 +1681,7 @@ function Wt({
|
|
|
1669
1681
|
(V) => V.id === x
|
|
1670
1682
|
);
|
|
1671
1683
|
R && (R.panelConstraints.disabled = P);
|
|
1672
|
-
const E =
|
|
1684
|
+
const E = Oe(h), D = H(h);
|
|
1673
1685
|
E && D && j(E, {
|
|
1674
1686
|
...D,
|
|
1675
1687
|
derivedPanelConstraints: ve(E)
|
|
@@ -1686,7 +1698,7 @@ function Wt({
|
|
|
1686
1698
|
}
|
|
1687
1699
|
}),
|
|
1688
1700
|
[M, h, v, c, L]
|
|
1689
|
-
), N =
|
|
1701
|
+
), N = O(null);
|
|
1690
1702
|
return q(() => {
|
|
1691
1703
|
const x = y.current;
|
|
1692
1704
|
if (x === null)
|
|
@@ -1716,30 +1728,30 @@ function Wt({
|
|
|
1716
1728
|
separators: P.separators
|
|
1717
1729
|
};
|
|
1718
1730
|
N.current = R;
|
|
1719
|
-
const E =
|
|
1731
|
+
const E = Bt(R), { defaultLayoutDeferred: D, derivedPanelConstraints: V, layout: ue } = H(R.id, !0);
|
|
1720
1732
|
!D && V.length > 0 && (f(ue), d(ue, !1));
|
|
1721
|
-
const oe =
|
|
1733
|
+
const oe = Pe(h, (_) => {
|
|
1722
1734
|
const { defaultLayoutDeferred: Y, derivedPanelConstraints: Ee, layout: ce } = _.next;
|
|
1723
1735
|
if (Y || Ee.length === 0)
|
|
1724
1736
|
return;
|
|
1725
|
-
const
|
|
1726
|
-
R.mutableState.layouts[
|
|
1737
|
+
const ft = R.panels.map(({ id: $ }) => $).join(",");
|
|
1738
|
+
R.mutableState.layouts[ft] = ce, Ee.forEach(($) => {
|
|
1727
1739
|
if ($.collapsible) {
|
|
1728
1740
|
const { layout: ge } = _.prev ?? {};
|
|
1729
1741
|
if (ge) {
|
|
1730
|
-
const
|
|
1742
|
+
const pt = k(
|
|
1731
1743
|
$.collapsedSize,
|
|
1732
1744
|
ce[$.panelId]
|
|
1733
|
-
),
|
|
1745
|
+
), ht = k(
|
|
1734
1746
|
$.collapsedSize,
|
|
1735
1747
|
ge[$.panelId]
|
|
1736
1748
|
);
|
|
1737
|
-
|
|
1749
|
+
pt && !ht && (R.mutableState.expandedPanelSizes[$.panelId] = ge[$.panelId]);
|
|
1738
1750
|
}
|
|
1739
1751
|
}
|
|
1740
1752
|
});
|
|
1741
|
-
const
|
|
1742
|
-
f(ce),
|
|
1753
|
+
const dt = B().state !== "active";
|
|
1754
|
+
f(ce), dt && d(ce, _.isUserInteraction);
|
|
1743
1755
|
});
|
|
1744
1756
|
return () => {
|
|
1745
1757
|
N.current = null, E(), oe();
|
|
@@ -1755,7 +1767,7 @@ function Wt({
|
|
|
1755
1767
|
]), me(() => {
|
|
1756
1768
|
const x = N.current;
|
|
1757
1769
|
x && (x.mutableState.defaultLayout = n, x.mutableState.disableCursor = !!o);
|
|
1758
|
-
}), /* @__PURE__ */ ae(
|
|
1770
|
+
}), /* @__PURE__ */ ae(ct.Provider, { value: G, children: /* @__PURE__ */ ae(
|
|
1759
1771
|
"div",
|
|
1760
1772
|
{
|
|
1761
1773
|
...S,
|
|
@@ -1782,11 +1794,11 @@ function Wt({
|
|
|
1782
1794
|
}
|
|
1783
1795
|
) });
|
|
1784
1796
|
}
|
|
1785
|
-
|
|
1797
|
+
Xt.displayName = "Group";
|
|
1786
1798
|
function he(e, t) {
|
|
1787
1799
|
return `react-resizable-panels:${[e, ...t].join(":")}`;
|
|
1788
1800
|
}
|
|
1789
|
-
function
|
|
1801
|
+
function qt({
|
|
1790
1802
|
id: e,
|
|
1791
1803
|
panelIds: t,
|
|
1792
1804
|
storage: n
|
|
@@ -1821,15 +1833,15 @@ function Kt({
|
|
|
1821
1833
|
} catch {
|
|
1822
1834
|
}
|
|
1823
1835
|
}
|
|
1824
|
-
function
|
|
1836
|
+
function sn({
|
|
1825
1837
|
debounceSaveMs: e = 100,
|
|
1826
1838
|
onlySaveAfterUserInteractions: t,
|
|
1827
1839
|
panelIds: n,
|
|
1828
1840
|
storage: o = localStorage,
|
|
1829
1841
|
...i
|
|
1830
1842
|
}) {
|
|
1831
|
-
const s = n !== void 0, u = "id" in i ? i.id : i.groupId, a = he(u, n ?? []), r =
|
|
1832
|
-
|
|
1843
|
+
const s = n !== void 0, u = "id" in i ? i.id : i.groupId, a = he(u, n ?? []), r = qe(
|
|
1844
|
+
Yt,
|
|
1833
1845
|
() => o.getItem(a),
|
|
1834
1846
|
() => o.getItem(a)
|
|
1835
1847
|
), l = Se(() => {
|
|
@@ -1840,16 +1852,16 @@ function on({
|
|
|
1840
1852
|
}
|
|
1841
1853
|
}, [r]), c = Se(() => {
|
|
1842
1854
|
if (!l)
|
|
1843
|
-
return
|
|
1855
|
+
return qt({
|
|
1844
1856
|
id: u,
|
|
1845
1857
|
panelIds: n,
|
|
1846
1858
|
storage: o
|
|
1847
1859
|
});
|
|
1848
|
-
}, [l, u, n, o]), m = l ?? c, p =
|
|
1860
|
+
}, [l, u, n, o]), m = l ?? c, p = O(null), S = re(() => {
|
|
1849
1861
|
const d = p.current;
|
|
1850
1862
|
d && (p.current = null, clearTimeout(d));
|
|
1851
1863
|
}, []);
|
|
1852
|
-
|
|
1864
|
+
Ke(() => () => {
|
|
1853
1865
|
S();
|
|
1854
1866
|
}, [S]);
|
|
1855
1867
|
const z = re(
|
|
@@ -1902,25 +1914,25 @@ function on({
|
|
|
1902
1914
|
onLayoutChanged: z
|
|
1903
1915
|
};
|
|
1904
1916
|
}
|
|
1905
|
-
function
|
|
1917
|
+
function Yt() {
|
|
1906
1918
|
return function() {
|
|
1907
1919
|
};
|
|
1908
1920
|
}
|
|
1909
|
-
function
|
|
1921
|
+
function an() {
|
|
1910
1922
|
return Q(null);
|
|
1911
1923
|
}
|
|
1912
|
-
function
|
|
1913
|
-
return
|
|
1924
|
+
function ln() {
|
|
1925
|
+
return O(null);
|
|
1914
1926
|
}
|
|
1915
1927
|
function Me() {
|
|
1916
|
-
const e =
|
|
1928
|
+
const e = yt(ct);
|
|
1917
1929
|
return C(
|
|
1918
1930
|
e,
|
|
1919
1931
|
"Group Context not found; did you render a Panel or Separator outside of a Group?"
|
|
1920
1932
|
), e;
|
|
1921
1933
|
}
|
|
1922
|
-
function
|
|
1923
|
-
const { id: n } = Me(), o =
|
|
1934
|
+
function Jt(e, t) {
|
|
1935
|
+
const { id: n } = Me(), o = O({
|
|
1924
1936
|
collapse: ye,
|
|
1925
1937
|
expand: ye,
|
|
1926
1938
|
getSize: () => ({
|
|
@@ -1930,14 +1942,14 @@ function qt(e, t) {
|
|
|
1930
1942
|
isCollapsed: () => !1,
|
|
1931
1943
|
resize: ye
|
|
1932
1944
|
});
|
|
1933
|
-
|
|
1945
|
+
Xe(t, () => o.current, []), q(() => {
|
|
1934
1946
|
Object.assign(
|
|
1935
1947
|
o.current,
|
|
1936
|
-
|
|
1948
|
+
at({ groupId: n, panelId: e })
|
|
1937
1949
|
);
|
|
1938
1950
|
});
|
|
1939
1951
|
}
|
|
1940
|
-
function
|
|
1952
|
+
function Zt({
|
|
1941
1953
|
children: e,
|
|
1942
1954
|
className: t,
|
|
1943
1955
|
collapsedSize: n = "0%",
|
|
@@ -1956,7 +1968,7 @@ function Yt({
|
|
|
1956
1968
|
}) {
|
|
1957
1969
|
const f = !!r, d = Le(r), h = Re({
|
|
1958
1970
|
disabled: s
|
|
1959
|
-
}), y =
|
|
1971
|
+
}), y = O(null), b = Ce(y, u), {
|
|
1960
1972
|
getPanelStyles: v,
|
|
1961
1973
|
id: g,
|
|
1962
1974
|
orientation: w,
|
|
@@ -2006,13 +2018,13 @@ function Yt({
|
|
|
2006
2018
|
h
|
|
2007
2019
|
]), me(() => {
|
|
2008
2020
|
L(d, { disabled: s });
|
|
2009
|
-
}, [s, d, L]),
|
|
2021
|
+
}, [s, d, L]), Jt(d, p);
|
|
2010
2022
|
const x = () => {
|
|
2011
2023
|
const R = v(g, d);
|
|
2012
2024
|
if (R)
|
|
2013
2025
|
return JSON.stringify(R);
|
|
2014
|
-
}, P =
|
|
2015
|
-
(R) =>
|
|
2026
|
+
}, P = qe(
|
|
2027
|
+
(R) => Pe(g, R),
|
|
2016
2028
|
x,
|
|
2017
2029
|
x
|
|
2018
2030
|
);
|
|
@@ -2031,7 +2043,7 @@ function Yt({
|
|
|
2031
2043
|
id: d,
|
|
2032
2044
|
ref: b,
|
|
2033
2045
|
style: {
|
|
2034
|
-
...
|
|
2046
|
+
...Qt,
|
|
2035
2047
|
display: "flex",
|
|
2036
2048
|
flexBasis: 0,
|
|
2037
2049
|
flexShrink: 1,
|
|
@@ -2060,8 +2072,8 @@ function Yt({
|
|
|
2060
2072
|
}
|
|
2061
2073
|
);
|
|
2062
2074
|
}
|
|
2063
|
-
|
|
2064
|
-
const
|
|
2075
|
+
Zt.displayName = "Panel";
|
|
2076
|
+
const Qt = {
|
|
2065
2077
|
minHeight: 0,
|
|
2066
2078
|
maxHeight: "100%",
|
|
2067
2079
|
height: "auto",
|
|
@@ -2073,13 +2085,13 @@ const Jt = {
|
|
|
2073
2085
|
padding: 0,
|
|
2074
2086
|
margin: 0
|
|
2075
2087
|
};
|
|
2076
|
-
function
|
|
2088
|
+
function un() {
|
|
2077
2089
|
return Q(null);
|
|
2078
2090
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return
|
|
2091
|
+
function cn() {
|
|
2092
|
+
return O(null);
|
|
2081
2093
|
}
|
|
2082
|
-
function
|
|
2094
|
+
function en({
|
|
2083
2095
|
layout: e,
|
|
2084
2096
|
panelConstraints: t,
|
|
2085
2097
|
panelId: n,
|
|
@@ -2091,7 +2103,7 @@ function Zt({
|
|
|
2091
2103
|
);
|
|
2092
2104
|
if (a) {
|
|
2093
2105
|
const r = a.maxSize, l = a.collapsible ? a.collapsedSize : a.minSize, c = [o, o + 1];
|
|
2094
|
-
s =
|
|
2106
|
+
s = K({
|
|
2095
2107
|
layout: le({
|
|
2096
2108
|
delta: l - u,
|
|
2097
2109
|
initialLayout: e,
|
|
@@ -2100,7 +2112,7 @@ function Zt({
|
|
|
2100
2112
|
prevLayout: e
|
|
2101
2113
|
}),
|
|
2102
2114
|
panelConstraints: t
|
|
2103
|
-
})[n], i =
|
|
2115
|
+
})[n], i = K({
|
|
2104
2116
|
layout: le({
|
|
2105
2117
|
delta: r - u,
|
|
2106
2118
|
initialLayout: e,
|
|
@@ -2118,7 +2130,7 @@ function Zt({
|
|
|
2118
2130
|
valueNow: u
|
|
2119
2131
|
};
|
|
2120
2132
|
}
|
|
2121
|
-
function
|
|
2133
|
+
function tn({
|
|
2122
2134
|
children: e,
|
|
2123
2135
|
className: t,
|
|
2124
2136
|
disabled: n,
|
|
@@ -2131,7 +2143,7 @@ function Qt({
|
|
|
2131
2143
|
const r = Le(s), l = Re({
|
|
2132
2144
|
disabled: n,
|
|
2133
2145
|
disableDoubleClick: o
|
|
2134
|
-
}), [c, m] = Q({}), [p, S] = Q("inactive"), [z, f] = Q(!1), d =
|
|
2146
|
+
}), [c, m] = Q({}), [p, S] = Q("inactive"), [z, f] = Q(!1), d = O(null), h = Ce(d, i), {
|
|
2135
2147
|
disableCursor: y,
|
|
2136
2148
|
id: b,
|
|
2137
2149
|
orientation: v,
|
|
@@ -2146,7 +2158,7 @@ function Qt({
|
|
|
2146
2158
|
disableDoubleClick: l.disableDoubleClick,
|
|
2147
2159
|
element: N,
|
|
2148
2160
|
id: r
|
|
2149
|
-
}, P = g(x), I =
|
|
2161
|
+
}, P = g(x), I = Rt(
|
|
2150
2162
|
(E) => {
|
|
2151
2163
|
S(
|
|
2152
2164
|
E.next.state !== "inactive" && E.next.hitRegions.some(
|
|
@@ -2154,14 +2166,14 @@ function Qt({
|
|
|
2154
2166
|
) ? E.next.state : "inactive"
|
|
2155
2167
|
);
|
|
2156
2168
|
}
|
|
2157
|
-
), R =
|
|
2169
|
+
), R = Pe(
|
|
2158
2170
|
b,
|
|
2159
2171
|
(E) => {
|
|
2160
2172
|
const { derivedPanelConstraints: D, layout: V, separatorToPanels: ue } = E.next, oe = ue.get(x);
|
|
2161
2173
|
if (oe) {
|
|
2162
2174
|
const _ = oe[0], Y = oe.indexOf(_);
|
|
2163
2175
|
m(
|
|
2164
|
-
|
|
2176
|
+
en({
|
|
2165
2177
|
layout: V,
|
|
2166
2178
|
panelConstraints: D,
|
|
2167
2179
|
panelId: _.id,
|
|
@@ -2225,16 +2237,16 @@ function Qt({
|
|
|
2225
2237
|
}
|
|
2226
2238
|
);
|
|
2227
2239
|
}
|
|
2228
|
-
|
|
2240
|
+
tn.displayName = "Separator";
|
|
2229
2241
|
export {
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2242
|
+
Xt as Group,
|
|
2243
|
+
Zt as Panel,
|
|
2244
|
+
tn as Separator,
|
|
2245
|
+
Ct as isCoarsePointer,
|
|
2246
|
+
sn as useDefaultLayout,
|
|
2247
|
+
an as useGroupCallbackRef,
|
|
2248
|
+
ln as useGroupRef,
|
|
2249
|
+
un as usePanelCallbackRef,
|
|
2250
|
+
cn as usePanelRef
|
|
2239
2251
|
};
|
|
2240
2252
|
//# sourceMappingURL=react-resizable-panels.js.map
|