react-resizable-panels 4.5.3 → 4.5.4
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,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
4
|
-
function
|
|
2
|
+
import { jsx as Q } from "react/jsx-runtime";
|
|
3
|
+
import { useState as ee, useCallback as Z, useId as nt, useLayoutEffect as Te, useEffect as Oe, useRef as k, createContext as ot, useImperativeHandle as Ae, useMemo as _e, useSyncExternalStore as it, useContext as rt } from "react";
|
|
4
|
+
function z(e, t = "Assertion error") {
|
|
5
5
|
if (!e)
|
|
6
6
|
throw Error(t);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function K({
|
|
9
9
|
group: e
|
|
10
10
|
}) {
|
|
11
11
|
const { orientation: t, panels: n } = e;
|
|
12
12
|
return n.reduce((o, i) => (o += t === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, o), 0);
|
|
13
13
|
}
|
|
14
14
|
function de(e, t) {
|
|
15
|
-
return t.sort(
|
|
16
|
-
e === "horizontal" ?
|
|
15
|
+
return Array.from(t).sort(
|
|
16
|
+
e === "horizontal" ? st : at
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function st(e, t) {
|
|
20
20
|
const n = e.element.offsetLeft - t.element.offsetLeft;
|
|
21
21
|
return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function at(e, t) {
|
|
24
24
|
const n = e.element.offsetTop - t.element.offsetTop;
|
|
25
25
|
return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
|
|
26
26
|
}
|
|
@@ -39,7 +39,7 @@ function Fe(e, t) {
|
|
|
39
39
|
)
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function lt({
|
|
43
43
|
orientation: e,
|
|
44
44
|
rects: t,
|
|
45
45
|
targetRect: n
|
|
@@ -48,24 +48,24 @@ function at({
|
|
|
48
48
|
x: n.x + n.width / 2,
|
|
49
49
|
y: n.y + n.height / 2
|
|
50
50
|
};
|
|
51
|
-
let i,
|
|
51
|
+
let i, r = Number.MAX_VALUE;
|
|
52
52
|
for (const l of t) {
|
|
53
|
-
const { x:
|
|
54
|
-
u <
|
|
53
|
+
const { x: s, y: a } = Fe(o, l), u = e === "horizontal" ? s : a;
|
|
54
|
+
u < r && (r = u, i = l);
|
|
55
55
|
}
|
|
56
|
-
return
|
|
56
|
+
return z(i, "No rect found"), i;
|
|
57
57
|
}
|
|
58
58
|
let ie;
|
|
59
|
-
function
|
|
59
|
+
function ut() {
|
|
60
60
|
return ie === void 0 && (typeof matchMedia == "function" ? ie = !!matchMedia("(pointer:coarse)").matches : ie = !1), ie;
|
|
61
61
|
}
|
|
62
62
|
function $e(e) {
|
|
63
|
-
const { element: t, orientation: n, panels: o, separators: i } = e,
|
|
63
|
+
const { element: t, orientation: n, panels: o, separators: i } = e, r = de(
|
|
64
64
|
n,
|
|
65
65
|
Array.from(t.children).filter(Ne).map((c) => ({ element: c }))
|
|
66
66
|
).map(({ element: c }) => c), l = [];
|
|
67
|
-
let
|
|
68
|
-
for (const c of
|
|
67
|
+
let s = !1, a, u = [];
|
|
68
|
+
for (const c of r)
|
|
69
69
|
if (c.hasAttribute("data-panel")) {
|
|
70
70
|
const h = o.find(
|
|
71
71
|
(y) => y.element === c
|
|
@@ -74,7 +74,7 @@ function $e(e) {
|
|
|
74
74
|
if (a) {
|
|
75
75
|
const y = a.element.getBoundingClientRect(), m = c.getBoundingClientRect();
|
|
76
76
|
let f;
|
|
77
|
-
if (
|
|
77
|
+
if (s) {
|
|
78
78
|
const d = n === "horizontal" ? new DOMRect(y.right, y.top, 0, y.height) : new DOMRect(
|
|
79
79
|
y.left,
|
|
80
80
|
y.bottom,
|
|
@@ -90,7 +90,7 @@ function $e(e) {
|
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
case 1: {
|
|
93
|
-
const g = u[0], v =
|
|
93
|
+
const g = u[0], v = lt({
|
|
94
94
|
orientation: n,
|
|
95
95
|
rects: [y, m],
|
|
96
96
|
targetRect: g.element.getBoundingClientRect()
|
|
@@ -122,7 +122,7 @@ function $e(e) {
|
|
|
122
122
|
];
|
|
123
123
|
for (const d of f) {
|
|
124
124
|
let p = "width" in d ? d : d.element.getBoundingClientRect();
|
|
125
|
-
const g =
|
|
125
|
+
const g = ut() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
|
|
126
126
|
if (p.width < g) {
|
|
127
127
|
const v = g - p.width;
|
|
128
128
|
p = new DOMRect(
|
|
@@ -143,14 +143,14 @@ function $e(e) {
|
|
|
143
143
|
}
|
|
144
144
|
l.push({
|
|
145
145
|
group: e,
|
|
146
|
-
groupSize:
|
|
146
|
+
groupSize: K({ group: e }),
|
|
147
147
|
panels: [a, h],
|
|
148
148
|
separator: "width" in d ? void 0 : d,
|
|
149
149
|
rect: p
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
s = !1, a = h, u = [];
|
|
154
154
|
}
|
|
155
155
|
} else if (c.hasAttribute("data-separator")) {
|
|
156
156
|
const h = i.find(
|
|
@@ -158,24 +158,24 @@ function $e(e) {
|
|
|
158
158
|
);
|
|
159
159
|
h ? u.push(h) : (a = void 0, u = []);
|
|
160
160
|
} else
|
|
161
|
-
|
|
161
|
+
s = !0;
|
|
162
162
|
return l;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ct(e, t) {
|
|
165
165
|
const n = getComputedStyle(e), o = parseFloat(n.fontSize);
|
|
166
166
|
return t * o;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ft(e, t) {
|
|
169
169
|
const n = getComputedStyle(e.ownerDocument.body), o = parseFloat(n.fontSize);
|
|
170
170
|
return t * o;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function dt(e) {
|
|
173
173
|
return e / 100 * window.innerHeight;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function pt(e) {
|
|
176
176
|
return e / 100 * window.innerWidth;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ht(e) {
|
|
179
179
|
switch (typeof e) {
|
|
180
180
|
case "number":
|
|
181
181
|
return [e, "px"];
|
|
@@ -191,8 +191,8 @@ function re({
|
|
|
191
191
|
styleProp: n
|
|
192
192
|
}) {
|
|
193
193
|
let o;
|
|
194
|
-
const [i,
|
|
195
|
-
switch (
|
|
194
|
+
const [i, r] = ht(n);
|
|
195
|
+
switch (r) {
|
|
196
196
|
case "%": {
|
|
197
197
|
o = i / 100 * e;
|
|
198
198
|
break;
|
|
@@ -202,19 +202,19 @@ function re({
|
|
|
202
202
|
break;
|
|
203
203
|
}
|
|
204
204
|
case "rem": {
|
|
205
|
-
o =
|
|
205
|
+
o = ft(t, i);
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
208
|
case "em": {
|
|
209
|
-
o =
|
|
209
|
+
o = ct(t, i);
|
|
210
210
|
break;
|
|
211
211
|
}
|
|
212
212
|
case "vh": {
|
|
213
|
-
o =
|
|
213
|
+
o = dt(i);
|
|
214
214
|
break;
|
|
215
215
|
}
|
|
216
216
|
case "vw": {
|
|
217
|
-
o =
|
|
217
|
+
o = pt(i);
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -224,7 +224,7 @@ function D(e) {
|
|
|
224
224
|
return parseFloat(e.toFixed(3));
|
|
225
225
|
}
|
|
226
226
|
function ve(e) {
|
|
227
|
-
const { panels: t } = e, n =
|
|
227
|
+
const { panels: t } = e, n = K({ group: e });
|
|
228
228
|
return n === 0 ? t.map((o) => ({
|
|
229
229
|
collapsedSize: 0,
|
|
230
230
|
collapsible: o.panelConstraints.collapsible === !0,
|
|
@@ -233,54 +233,54 @@ function ve(e) {
|
|
|
233
233
|
maxSize: 100,
|
|
234
234
|
panelId: o.id
|
|
235
235
|
})) : t.map((o) => {
|
|
236
|
-
const { element: i, panelConstraints:
|
|
236
|
+
const { element: i, panelConstraints: r } = o;
|
|
237
237
|
let l = 0;
|
|
238
|
-
if (
|
|
238
|
+
if (r.collapsedSize !== void 0) {
|
|
239
239
|
const c = re({
|
|
240
240
|
groupSize: n,
|
|
241
241
|
panelElement: i,
|
|
242
|
-
styleProp:
|
|
242
|
+
styleProp: r.collapsedSize
|
|
243
243
|
});
|
|
244
244
|
l = D(c / n * 100);
|
|
245
245
|
}
|
|
246
|
-
let
|
|
247
|
-
if (
|
|
246
|
+
let s;
|
|
247
|
+
if (r.defaultSize !== void 0) {
|
|
248
248
|
const c = re({
|
|
249
249
|
groupSize: n,
|
|
250
250
|
panelElement: i,
|
|
251
|
-
styleProp:
|
|
251
|
+
styleProp: r.defaultSize
|
|
252
252
|
});
|
|
253
|
-
|
|
253
|
+
s = D(c / n * 100);
|
|
254
254
|
}
|
|
255
255
|
let a = 0;
|
|
256
|
-
if (
|
|
256
|
+
if (r.minSize !== void 0) {
|
|
257
257
|
const c = re({
|
|
258
258
|
groupSize: n,
|
|
259
259
|
panelElement: i,
|
|
260
|
-
styleProp:
|
|
260
|
+
styleProp: r.minSize
|
|
261
261
|
});
|
|
262
262
|
a = D(c / n * 100);
|
|
263
263
|
}
|
|
264
264
|
let u = 100;
|
|
265
|
-
if (
|
|
265
|
+
if (r.maxSize !== void 0) {
|
|
266
266
|
const c = re({
|
|
267
267
|
groupSize: n,
|
|
268
268
|
panelElement: i,
|
|
269
|
-
styleProp:
|
|
269
|
+
styleProp: r.maxSize
|
|
270
270
|
});
|
|
271
271
|
u = D(c / n * 100);
|
|
272
272
|
}
|
|
273
273
|
return {
|
|
274
274
|
collapsedSize: l,
|
|
275
|
-
collapsible:
|
|
276
|
-
defaultSize:
|
|
275
|
+
collapsible: r.collapsible === !0,
|
|
276
|
+
defaultSize: s,
|
|
277
277
|
minSize: a,
|
|
278
278
|
maxSize: u,
|
|
279
279
|
panelId: o.id
|
|
280
280
|
};
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
class
|
|
283
|
+
class mt {
|
|
284
284
|
#e = {};
|
|
285
285
|
addListener(t, n) {
|
|
286
286
|
const o = this.#e[t];
|
|
@@ -294,18 +294,18 @@ class ht {
|
|
|
294
294
|
if (o.length === 1)
|
|
295
295
|
o[0].call(null, n);
|
|
296
296
|
else {
|
|
297
|
-
let i = !1,
|
|
297
|
+
let i = !1, r = null;
|
|
298
298
|
const l = Array.from(o);
|
|
299
|
-
for (let
|
|
300
|
-
const a = l[
|
|
299
|
+
for (let s = 0; s < l.length; s++) {
|
|
300
|
+
const a = l[s];
|
|
301
301
|
try {
|
|
302
302
|
a.call(null, n);
|
|
303
303
|
} catch (u) {
|
|
304
|
-
|
|
304
|
+
r === null && (i = !0, r = u);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
if (i)
|
|
308
|
-
throw
|
|
308
|
+
throw r;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
removeAllListeners() {
|
|
@@ -329,7 +329,7 @@ let I = {
|
|
|
329
329
|
},
|
|
330
330
|
mountedGroups: /* @__PURE__ */ new Map()
|
|
331
331
|
};
|
|
332
|
-
const
|
|
332
|
+
const F = new mt();
|
|
333
333
|
function G() {
|
|
334
334
|
return I;
|
|
335
335
|
}
|
|
@@ -341,38 +341,38 @@ function M(e) {
|
|
|
341
341
|
return I = {
|
|
342
342
|
...I,
|
|
343
343
|
...t
|
|
344
|
-
}, t.cursorFlags !== void 0 &&
|
|
345
|
-
o.derivedPanelConstraints.forEach((
|
|
346
|
-
if (
|
|
344
|
+
}, t.cursorFlags !== void 0 && F.emit("cursorFlagsChange", I.cursorFlags), t.interactionState !== void 0 && F.emit("interactionStateChange", I.interactionState), t.mountedGroups !== void 0 && (I.mountedGroups.forEach((o, i) => {
|
|
345
|
+
o.derivedPanelConstraints.forEach((r) => {
|
|
346
|
+
if (r.collapsible) {
|
|
347
347
|
const { layout: l } = n.mountedGroups.get(i) ?? {};
|
|
348
348
|
if (l) {
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
o.layout[
|
|
349
|
+
const s = R(
|
|
350
|
+
r.collapsedSize,
|
|
351
|
+
o.layout[r.panelId]
|
|
352
352
|
), a = R(
|
|
353
|
-
|
|
354
|
-
l[
|
|
353
|
+
r.collapsedSize,
|
|
354
|
+
l[r.panelId]
|
|
355
355
|
);
|
|
356
|
-
|
|
356
|
+
s && !a && (i.inMemoryLastExpandedPanelSizes[r.panelId] = l[r.panelId]);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
|
-
}),
|
|
360
|
+
}), F.emit("mountedGroupsChange", I.mountedGroups)), I;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function gt(e, t, n) {
|
|
363
363
|
let o, i = {
|
|
364
364
|
x: 1 / 0,
|
|
365
365
|
y: 1 / 0
|
|
366
366
|
};
|
|
367
|
-
for (const
|
|
368
|
-
const l = Fe(n,
|
|
367
|
+
for (const r of t) {
|
|
368
|
+
const l = Fe(n, r.rect);
|
|
369
369
|
switch (e) {
|
|
370
370
|
case "horizontal": {
|
|
371
|
-
l.x <= i.x && (o =
|
|
371
|
+
l.x <= i.x && (o = r, i = l);
|
|
372
372
|
break;
|
|
373
373
|
}
|
|
374
374
|
case "vertical": {
|
|
375
|
-
l.y <= i.y && (o =
|
|
375
|
+
l.y <= i.y && (o = r, i = l);
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -382,61 +382,61 @@ function mt(e, t, n) {
|
|
|
382
382
|
hitRegion: o
|
|
383
383
|
} : void 0;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function yt(e) {
|
|
386
386
|
return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function St(e, t) {
|
|
389
389
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
390
390
|
const n = {
|
|
391
|
-
a:
|
|
392
|
-
b:
|
|
391
|
+
a: be(e),
|
|
392
|
+
b: be(t)
|
|
393
393
|
};
|
|
394
394
|
let o;
|
|
395
395
|
for (; n.a.at(-1) === n.b.at(-1); )
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
o = n.a.pop(), n.b.pop();
|
|
397
|
+
z(
|
|
398
398
|
o,
|
|
399
399
|
"Stacking order can only be calculated for elements with a common ancestor"
|
|
400
400
|
);
|
|
401
401
|
const i = {
|
|
402
|
-
a: xe(
|
|
403
|
-
b: xe(
|
|
402
|
+
a: ze(xe(n.a)),
|
|
403
|
+
b: ze(xe(n.b))
|
|
404
404
|
};
|
|
405
405
|
if (i.a === i.b) {
|
|
406
|
-
const
|
|
406
|
+
const r = o.childNodes, l = {
|
|
407
407
|
a: n.a.at(-1),
|
|
408
408
|
b: n.b.at(-1)
|
|
409
409
|
};
|
|
410
|
-
let
|
|
411
|
-
for (;
|
|
412
|
-
const a = s
|
|
410
|
+
let s = r.length;
|
|
411
|
+
for (; s--; ) {
|
|
412
|
+
const a = r[s];
|
|
413
413
|
if (a === l.a) return 1;
|
|
414
414
|
if (a === l.b) return -1;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
return Math.sign(i.a - i.b);
|
|
418
418
|
}
|
|
419
|
-
const
|
|
420
|
-
function
|
|
419
|
+
const vt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
420
|
+
function xt(e) {
|
|
421
421
|
const t = getComputedStyle(He(e) ?? e).display;
|
|
422
422
|
return t === "flex" || t === "inline-flex";
|
|
423
423
|
}
|
|
424
424
|
function zt(e) {
|
|
425
425
|
const t = getComputedStyle(e);
|
|
426
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
426
|
+
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" || vt.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function xe(e) {
|
|
429
429
|
let t = e.length;
|
|
430
430
|
for (; t--; ) {
|
|
431
431
|
const n = e[t];
|
|
432
|
-
if (
|
|
432
|
+
if (z(n, "Missing node"), zt(n)) return n;
|
|
433
433
|
}
|
|
434
434
|
return null;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ze(e) {
|
|
437
437
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function be(e) {
|
|
440
440
|
const t = [];
|
|
441
441
|
for (; e; )
|
|
442
442
|
t.push(e), e = He(e);
|
|
@@ -444,9 +444,9 @@ function we(e) {
|
|
|
444
444
|
}
|
|
445
445
|
function He(e) {
|
|
446
446
|
const { parentNode: t } = e;
|
|
447
|
-
return
|
|
447
|
+
return yt(t) ? t.host : t;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function bt(e, t) {
|
|
450
450
|
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;
|
|
451
451
|
}
|
|
452
452
|
function wt({
|
|
@@ -456,12 +456,12 @@ function wt({
|
|
|
456
456
|
}) {
|
|
457
457
|
if (!Ne(n) || n.contains(e) || e.contains(n))
|
|
458
458
|
return !0;
|
|
459
|
-
if (
|
|
459
|
+
if (St(n, e) > 0) {
|
|
460
460
|
let o = n;
|
|
461
461
|
for (; o; ) {
|
|
462
462
|
if (o.contains(e))
|
|
463
463
|
return !0;
|
|
464
|
-
if (
|
|
464
|
+
if (bt(o.getBoundingClientRect(), t))
|
|
465
465
|
return !1;
|
|
466
466
|
o = o.parentElement;
|
|
467
467
|
}
|
|
@@ -473,7 +473,7 @@ function pe(e, t) {
|
|
|
473
473
|
return t.forEach((o, i) => {
|
|
474
474
|
if (i.disabled)
|
|
475
475
|
return;
|
|
476
|
-
const
|
|
476
|
+
const r = $e(i), l = gt(i.orientation, r, {
|
|
477
477
|
x: e.clientX,
|
|
478
478
|
y: e.clientY
|
|
479
479
|
});
|
|
@@ -484,7 +484,7 @@ function pe(e, t) {
|
|
|
484
484
|
}) && n.push(l.hitRegion);
|
|
485
485
|
}), n;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Lt(e, t) {
|
|
488
488
|
if (e.length !== t.length)
|
|
489
489
|
return !1;
|
|
490
490
|
for (let n = 0; n < e.length; n++)
|
|
@@ -495,7 +495,7 @@ function bt(e, t) {
|
|
|
495
495
|
function O(e, t) {
|
|
496
496
|
return R(e, t) ? 0 : e > t ? 1 : -1;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function B({
|
|
499
499
|
panelConstraints: e,
|
|
500
500
|
size: t
|
|
501
501
|
}) {
|
|
@@ -503,34 +503,34 @@ function U({
|
|
|
503
503
|
collapsedSize: n = 0,
|
|
504
504
|
collapsible: o,
|
|
505
505
|
maxSize: i = 100,
|
|
506
|
-
minSize:
|
|
506
|
+
minSize: r = 0
|
|
507
507
|
} = e;
|
|
508
|
-
if (O(t,
|
|
508
|
+
if (O(t, r) < 0)
|
|
509
509
|
if (o) {
|
|
510
|
-
const l = (n +
|
|
511
|
-
O(t, l) < 0 ? t = n : t =
|
|
510
|
+
const l = (n + r) / 2;
|
|
511
|
+
O(t, l) < 0 ? t = n : t = r;
|
|
512
512
|
} else
|
|
513
|
-
t =
|
|
513
|
+
t = r;
|
|
514
514
|
return t = Math.min(i, t), t = D(t), t;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function te({
|
|
517
517
|
delta: e,
|
|
518
518
|
initialLayout: t,
|
|
519
519
|
panelConstraints: n,
|
|
520
520
|
pivotIndices: o,
|
|
521
521
|
prevLayout: i,
|
|
522
|
-
trigger:
|
|
522
|
+
trigger: r
|
|
523
523
|
}) {
|
|
524
524
|
if (R(e, 0))
|
|
525
525
|
return t;
|
|
526
|
-
const l = Object.values(t),
|
|
527
|
-
|
|
526
|
+
const l = Object.values(t), s = Object.values(i), a = [...l], [u, c] = o;
|
|
527
|
+
z(u != null, "Invalid first pivot index"), z(c != null, "Invalid second pivot index");
|
|
528
528
|
let h = 0;
|
|
529
|
-
switch (
|
|
529
|
+
switch (r) {
|
|
530
530
|
case "keyboard": {
|
|
531
531
|
{
|
|
532
532
|
const f = e < 0 ? c : u, d = n[f];
|
|
533
|
-
|
|
533
|
+
z(
|
|
534
534
|
d,
|
|
535
535
|
`Panel constraints not found for index ${f}`
|
|
536
536
|
);
|
|
@@ -540,19 +540,19 @@ function J({
|
|
|
540
540
|
minSize: v = 0
|
|
541
541
|
} = d;
|
|
542
542
|
if (g) {
|
|
543
|
-
const
|
|
544
|
-
if (
|
|
545
|
-
|
|
543
|
+
const x = l[f];
|
|
544
|
+
if (z(
|
|
545
|
+
x != null,
|
|
546
546
|
`Previous layout not found for panel index ${f}`
|
|
547
|
-
), R(
|
|
548
|
-
const S = v -
|
|
547
|
+
), R(x, p)) {
|
|
548
|
+
const S = v - x;
|
|
549
549
|
O(S, Math.abs(e)) > 0 && (e = e < 0 ? 0 - S : S);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
{
|
|
554
554
|
const f = e < 0 ? u : c, d = n[f];
|
|
555
|
-
|
|
555
|
+
z(
|
|
556
556
|
d,
|
|
557
557
|
`No panel constraints found for index ${f}`
|
|
558
558
|
);
|
|
@@ -562,12 +562,12 @@ function J({
|
|
|
562
562
|
minSize: v = 0
|
|
563
563
|
} = d;
|
|
564
564
|
if (g) {
|
|
565
|
-
const
|
|
566
|
-
if (
|
|
567
|
-
|
|
565
|
+
const x = l[f];
|
|
566
|
+
if (z(
|
|
567
|
+
x != null,
|
|
568
568
|
`Previous layout not found for panel index ${f}`
|
|
569
|
-
), R(
|
|
570
|
-
const S =
|
|
569
|
+
), R(x, v)) {
|
|
570
|
+
const S = x - p;
|
|
571
571
|
O(S, Math.abs(e)) > 0 && (e = e < 0 ? 0 - S : S);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -576,18 +576,18 @@ function J({
|
|
|
576
576
|
}
|
|
577
577
|
default: {
|
|
578
578
|
const f = e < 0 ? c : u, d = n[f];
|
|
579
|
-
|
|
579
|
+
z(
|
|
580
580
|
d,
|
|
581
581
|
`Panel constraints not found for index ${f}`
|
|
582
582
|
);
|
|
583
583
|
const { collapsible: p, collapsedSize: g, minSize: v } = d;
|
|
584
584
|
if (p)
|
|
585
585
|
if (e > 0) {
|
|
586
|
-
const
|
|
587
|
-
O(e, v) < 0 && (e = O(e, S) <= 0 ? 0 :
|
|
586
|
+
const x = v - g, S = x / 2;
|
|
587
|
+
O(e, v) < 0 && (e = O(e, S) <= 0 ? 0 : x);
|
|
588
588
|
} else {
|
|
589
|
-
const
|
|
590
|
-
O(100 + e, v) > 0 && (e = O(100 + e, S) > 0 ? 0 : -
|
|
589
|
+
const x = v - g, S = 100 - x / 2;
|
|
590
|
+
O(100 + e, v) > 0 && (e = O(100 + e, S) > 0 ? 0 : -x);
|
|
591
591
|
}
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
@@ -597,11 +597,11 @@ function J({
|
|
|
597
597
|
let d = e < 0 ? c : u, p = 0;
|
|
598
598
|
for (; ; ) {
|
|
599
599
|
const v = l[d];
|
|
600
|
-
|
|
600
|
+
z(
|
|
601
601
|
v != null,
|
|
602
602
|
`Previous layout not found for panel index ${d}`
|
|
603
603
|
);
|
|
604
|
-
const S =
|
|
604
|
+
const S = B({
|
|
605
605
|
panelConstraints: n[d],
|
|
606
606
|
size: 100
|
|
607
607
|
}) - v;
|
|
@@ -615,46 +615,46 @@ function J({
|
|
|
615
615
|
let d = e < 0 ? u : c;
|
|
616
616
|
for (; d >= 0 && d < n.length; ) {
|
|
617
617
|
const p = Math.abs(e) - Math.abs(h), g = l[d];
|
|
618
|
-
|
|
618
|
+
z(
|
|
619
619
|
g != null,
|
|
620
620
|
`Previous layout not found for panel index ${d}`
|
|
621
621
|
);
|
|
622
|
-
const v = g - p,
|
|
622
|
+
const v = g - p, x = B({
|
|
623
623
|
panelConstraints: n[d],
|
|
624
624
|
size: v
|
|
625
625
|
});
|
|
626
|
-
if (!R(g,
|
|
626
|
+
if (!R(g, x) && (h += g - x, a[d] = x, h.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
|
|
627
627
|
numeric: !0
|
|
628
628
|
}) >= 0))
|
|
629
629
|
break;
|
|
630
630
|
e < 0 ? d-- : d++;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
if (
|
|
633
|
+
if (Lt(s, a))
|
|
634
634
|
return i;
|
|
635
635
|
{
|
|
636
636
|
const f = e < 0 ? c : u, d = l[f];
|
|
637
|
-
|
|
637
|
+
z(
|
|
638
638
|
d != null,
|
|
639
639
|
`Previous layout not found for panel index ${f}`
|
|
640
640
|
);
|
|
641
|
-
const p = d + h, g =
|
|
641
|
+
const p = d + h, g = B({
|
|
642
642
|
panelConstraints: n[f],
|
|
643
643
|
size: p
|
|
644
644
|
});
|
|
645
645
|
if (a[f] = g, !R(g, p)) {
|
|
646
646
|
let v = p - g, S = e < 0 ? c : u;
|
|
647
647
|
for (; S >= 0 && S < n.length; ) {
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
|
|
648
|
+
const w = a[S];
|
|
649
|
+
z(
|
|
650
|
+
w != null,
|
|
651
651
|
`Previous layout not found for panel index ${S}`
|
|
652
652
|
);
|
|
653
|
-
const C =
|
|
653
|
+
const C = w + v, P = B({
|
|
654
654
|
panelConstraints: n[S],
|
|
655
655
|
size: C
|
|
656
656
|
});
|
|
657
|
-
if (R(
|
|
657
|
+
if (R(w, P) || (v -= P - w, a[S] = P), R(v, 0))
|
|
658
658
|
break;
|
|
659
659
|
e > 0 ? S-- : S++;
|
|
660
660
|
}
|
|
@@ -669,7 +669,7 @@ function J({
|
|
|
669
669
|
const m = Object.keys(i);
|
|
670
670
|
return a.reduce((f, d, p) => (f[m[p]] = d, f), {});
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function $(e, t) {
|
|
673
673
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
674
674
|
return !1;
|
|
675
675
|
for (const n in e)
|
|
@@ -677,55 +677,55 @@ function F(e, t) {
|
|
|
677
677
|
return !1;
|
|
678
678
|
return !0;
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function H({
|
|
681
681
|
layout: e,
|
|
682
682
|
panelConstraints: t
|
|
683
683
|
}) {
|
|
684
684
|
const o = [...Object.values(e)], i = o.reduce(
|
|
685
|
-
(
|
|
685
|
+
(s, a) => s + a,
|
|
686
686
|
0
|
|
687
687
|
);
|
|
688
688
|
if (o.length !== t.length)
|
|
689
689
|
throw Error(
|
|
690
|
-
`Invalid ${t.length} panel layout: ${o.map((
|
|
690
|
+
`Invalid ${t.length} panel layout: ${o.map((s) => `${s}%`).join(", ")}`
|
|
691
691
|
);
|
|
692
692
|
if (!R(i, 100) && o.length > 0)
|
|
693
|
-
for (let
|
|
694
|
-
const a = o[
|
|
695
|
-
|
|
693
|
+
for (let s = 0; s < t.length; s++) {
|
|
694
|
+
const a = o[s];
|
|
695
|
+
z(a != null, `No layout data found for index ${s}`);
|
|
696
696
|
const u = 100 / i * a;
|
|
697
|
-
o[
|
|
697
|
+
o[s] = u;
|
|
698
698
|
}
|
|
699
|
-
let
|
|
700
|
-
for (let
|
|
701
|
-
const a = o[
|
|
702
|
-
|
|
703
|
-
const u =
|
|
704
|
-
panelConstraints: t[
|
|
699
|
+
let r = 0;
|
|
700
|
+
for (let s = 0; s < t.length; s++) {
|
|
701
|
+
const a = o[s];
|
|
702
|
+
z(a != null, `No layout data found for index ${s}`);
|
|
703
|
+
const u = B({
|
|
704
|
+
panelConstraints: t[s],
|
|
705
705
|
size: a
|
|
706
706
|
});
|
|
707
|
-
a != u && (
|
|
707
|
+
a != u && (r += a - u, o[s] = u);
|
|
708
708
|
}
|
|
709
|
-
if (!R(
|
|
710
|
-
for (let
|
|
711
|
-
const a = o[
|
|
712
|
-
|
|
713
|
-
const u = a +
|
|
714
|
-
panelConstraints: t[
|
|
709
|
+
if (!R(r, 0))
|
|
710
|
+
for (let s = 0; s < t.length; s++) {
|
|
711
|
+
const a = o[s];
|
|
712
|
+
z(a != null, `No layout data found for index ${s}`);
|
|
713
|
+
const u = a + r, c = B({
|
|
714
|
+
panelConstraints: t[s],
|
|
715
715
|
size: u
|
|
716
716
|
});
|
|
717
|
-
if (a !== c && (
|
|
717
|
+
if (a !== c && (r -= c - a, o[s] = c, R(r, 0)))
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
720
|
const l = Object.keys(e);
|
|
721
|
-
return o.reduce((
|
|
721
|
+
return o.reduce((s, a, u) => (s[l[u]] = a, s), {});
|
|
722
722
|
}
|
|
723
723
|
function je({
|
|
724
724
|
groupId: e,
|
|
725
725
|
panelId: t
|
|
726
726
|
}) {
|
|
727
727
|
const n = () => {
|
|
728
|
-
const { mountedGroups:
|
|
728
|
+
const { mountedGroups: s } = G();
|
|
729
729
|
for (const [
|
|
730
730
|
a,
|
|
731
731
|
{
|
|
@@ -734,7 +734,7 @@ function je({
|
|
|
734
734
|
layout: h,
|
|
735
735
|
separatorToPanels: y
|
|
736
736
|
}
|
|
737
|
-
] of
|
|
737
|
+
] of s)
|
|
738
738
|
if (a.id === e)
|
|
739
739
|
return {
|
|
740
740
|
defaultLayoutDeferred: u,
|
|
@@ -745,25 +745,25 @@ function je({
|
|
|
745
745
|
};
|
|
746
746
|
throw Error(`Group ${e} not found`);
|
|
747
747
|
}, o = () => {
|
|
748
|
-
const
|
|
748
|
+
const s = n().derivedPanelConstraints.find(
|
|
749
749
|
(a) => a.panelId === t
|
|
750
750
|
);
|
|
751
|
-
if (
|
|
752
|
-
return
|
|
751
|
+
if (s !== void 0)
|
|
752
|
+
return s;
|
|
753
753
|
throw Error(`Panel constraints not found for Panel ${t}`);
|
|
754
754
|
}, i = () => {
|
|
755
|
-
const
|
|
756
|
-
if (
|
|
757
|
-
return
|
|
755
|
+
const s = n().group.panels.find((a) => a.id === t);
|
|
756
|
+
if (s !== void 0)
|
|
757
|
+
return s;
|
|
758
758
|
throw Error(`Layout not found for Panel ${t}`);
|
|
759
|
-
},
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
return
|
|
759
|
+
}, r = () => {
|
|
760
|
+
const s = n().layout[t];
|
|
761
|
+
if (s !== void 0)
|
|
762
|
+
return s;
|
|
763
763
|
throw Error(`Layout not found for Panel ${t}`);
|
|
764
|
-
}, l = (
|
|
765
|
-
const a =
|
|
766
|
-
if (
|
|
764
|
+
}, l = (s) => {
|
|
765
|
+
const a = r();
|
|
766
|
+
if (s === a)
|
|
767
767
|
return;
|
|
768
768
|
const {
|
|
769
769
|
defaultLayoutDeferred: u,
|
|
@@ -771,18 +771,18 @@ function je({
|
|
|
771
771
|
group: h,
|
|
772
772
|
layout: y,
|
|
773
773
|
separatorToPanels: m
|
|
774
|
-
} = n(), f = h.panels.findIndex((v) => v.id === t), d = f === h.panels.length - 1, p =
|
|
775
|
-
delta: d ? a -
|
|
774
|
+
} = n(), f = h.panels.findIndex((v) => v.id === t), d = f === h.panels.length - 1, p = te({
|
|
775
|
+
delta: d ? a - s : s - a,
|
|
776
776
|
initialLayout: y,
|
|
777
777
|
panelConstraints: c,
|
|
778
778
|
pivotIndices: d ? [f - 1, f] : [f, f + 1],
|
|
779
779
|
prevLayout: y,
|
|
780
780
|
trigger: "imperative-api"
|
|
781
|
-
}), g =
|
|
781
|
+
}), g = H({
|
|
782
782
|
layout: p,
|
|
783
783
|
panelConstraints: c
|
|
784
784
|
});
|
|
785
|
-
|
|
785
|
+
$(y, g) || M((v) => ({
|
|
786
786
|
mountedGroups: new Map(v.mountedGroups).set(h, {
|
|
787
787
|
defaultLayoutDeferred: u,
|
|
788
788
|
derivedPanelConstraints: c,
|
|
@@ -793,38 +793,38 @@ function je({
|
|
|
793
793
|
};
|
|
794
794
|
return {
|
|
795
795
|
collapse: () => {
|
|
796
|
-
const { collapsible:
|
|
797
|
-
|
|
796
|
+
const { collapsible: s, collapsedSize: a } = o(), { mutableValues: u } = i(), c = r();
|
|
797
|
+
s && c !== a && (u.expandToSize = c, l(a));
|
|
798
798
|
},
|
|
799
799
|
expand: () => {
|
|
800
|
-
const { collapsible:
|
|
801
|
-
if (
|
|
800
|
+
const { collapsible: s, collapsedSize: a, minSize: u } = o(), { mutableValues: c } = i(), h = r();
|
|
801
|
+
if (s && h === a) {
|
|
802
802
|
let y = c.expandToSize ?? u;
|
|
803
803
|
y === 0 && (y = 1), l(y);
|
|
804
804
|
}
|
|
805
805
|
},
|
|
806
806
|
getSize: () => {
|
|
807
|
-
const { group:
|
|
807
|
+
const { group: s } = n(), a = r(), { element: u } = i(), c = s.orientation === "horizontal" ? u.offsetWidth : u.offsetHeight;
|
|
808
808
|
return {
|
|
809
809
|
asPercentage: a,
|
|
810
810
|
inPixels: c
|
|
811
811
|
};
|
|
812
812
|
},
|
|
813
813
|
isCollapsed: () => {
|
|
814
|
-
const { collapsible:
|
|
815
|
-
return
|
|
814
|
+
const { collapsible: s, collapsedSize: a } = o(), u = r();
|
|
815
|
+
return s && R(a, u);
|
|
816
816
|
},
|
|
817
|
-
resize: (
|
|
818
|
-
if (
|
|
817
|
+
resize: (s) => {
|
|
818
|
+
if (r() !== s) {
|
|
819
819
|
let u;
|
|
820
|
-
switch (typeof
|
|
820
|
+
switch (typeof s) {
|
|
821
821
|
case "number": {
|
|
822
|
-
const { group: c } = n(), h =
|
|
823
|
-
u = D(
|
|
822
|
+
const { group: c } = n(), h = K({ group: c });
|
|
823
|
+
u = D(s / h * 100);
|
|
824
824
|
break;
|
|
825
825
|
}
|
|
826
826
|
case "string": {
|
|
827
|
-
u = parseFloat(
|
|
827
|
+
u = parseFloat(s);
|
|
828
828
|
break;
|
|
829
829
|
}
|
|
830
830
|
}
|
|
@@ -833,21 +833,21 @@ function je({
|
|
|
833
833
|
}
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function we(e) {
|
|
837
837
|
if (e.defaultPrevented)
|
|
838
838
|
return;
|
|
839
839
|
const { mountedGroups: t } = G();
|
|
840
840
|
pe(e, t).forEach((o) => {
|
|
841
841
|
if (o.separator) {
|
|
842
842
|
const i = o.panels.find(
|
|
843
|
-
(
|
|
843
|
+
(r) => r.panelConstraints.defaultSize !== void 0
|
|
844
844
|
);
|
|
845
845
|
if (i) {
|
|
846
|
-
const
|
|
846
|
+
const r = i.panelConstraints.defaultSize, l = je({
|
|
847
847
|
groupId: o.group.id,
|
|
848
848
|
panelId: i.id
|
|
849
849
|
});
|
|
850
|
-
l &&
|
|
850
|
+
l && r !== void 0 && (l.resize(r), e.preventDefault());
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
});
|
|
@@ -880,19 +880,19 @@ function Ve({
|
|
|
880
880
|
const {
|
|
881
881
|
defaultLayoutDeferred: o,
|
|
882
882
|
derivedPanelConstraints: i,
|
|
883
|
-
group:
|
|
883
|
+
group: r,
|
|
884
884
|
layout: l,
|
|
885
|
-
separatorToPanels:
|
|
886
|
-
} = t(), a =
|
|
885
|
+
separatorToPanels: s
|
|
886
|
+
} = t(), a = H({
|
|
887
887
|
layout: n,
|
|
888
888
|
panelConstraints: i
|
|
889
889
|
});
|
|
890
|
-
return o ? l : (
|
|
891
|
-
mountedGroups: new Map(u.mountedGroups).set(
|
|
890
|
+
return o ? l : ($(l, a) || M((u) => ({
|
|
891
|
+
mountedGroups: new Map(u.mountedGroups).set(r, {
|
|
892
892
|
defaultLayoutDeferred: o,
|
|
893
893
|
derivedPanelConstraints: i,
|
|
894
894
|
layout: a,
|
|
895
|
-
separatorToPanels:
|
|
895
|
+
separatorToPanels: s
|
|
896
896
|
})
|
|
897
897
|
})), a);
|
|
898
898
|
}
|
|
@@ -900,27 +900,27 @@ function Ve({
|
|
|
900
900
|
}
|
|
901
901
|
function Ue(e) {
|
|
902
902
|
const { mountedGroups: t } = G(), n = t.get(e);
|
|
903
|
-
return
|
|
903
|
+
return z(n, `Mounted Group ${e.id} not found`), n;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function N(e, t) {
|
|
906
906
|
const n = ae(e), o = Ue(n), i = n.separators.find(
|
|
907
907
|
(h) => h.element === e
|
|
908
908
|
);
|
|
909
|
-
|
|
910
|
-
const
|
|
911
|
-
|
|
912
|
-
const l =
|
|
909
|
+
z(i, "Matching separator not found");
|
|
910
|
+
const r = o.separatorToPanels.get(i);
|
|
911
|
+
z(r, "Matching panels not found");
|
|
912
|
+
const l = r.map((h) => n.panels.indexOf(h)), a = Ve({ groupId: n.id }).getLayout(), u = te({
|
|
913
913
|
delta: t,
|
|
914
914
|
initialLayout: a,
|
|
915
915
|
panelConstraints: o.derivedPanelConstraints,
|
|
916
916
|
pivotIndices: l,
|
|
917
917
|
prevLayout: a,
|
|
918
918
|
trigger: "keyboard"
|
|
919
|
-
}), c =
|
|
919
|
+
}), c = H({
|
|
920
920
|
layout: u,
|
|
921
921
|
panelConstraints: o.derivedPanelConstraints
|
|
922
922
|
});
|
|
923
|
-
|
|
923
|
+
$(a, c) || M((h) => ({
|
|
924
924
|
mountedGroups: new Map(h.mountedGroups).set(n, {
|
|
925
925
|
defaultLayoutDeferred: o.defaultLayoutDeferred,
|
|
926
926
|
derivedPanelConstraints: o.derivedPanelConstraints,
|
|
@@ -936,39 +936,39 @@ function Le(e) {
|
|
|
936
936
|
if (!n.disabled)
|
|
937
937
|
switch (e.key) {
|
|
938
938
|
case "ArrowDown": {
|
|
939
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
939
|
+
e.preventDefault(), n.orientation === "vertical" && N(t, 5);
|
|
940
940
|
break;
|
|
941
941
|
}
|
|
942
942
|
case "ArrowLeft": {
|
|
943
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
943
|
+
e.preventDefault(), n.orientation === "horizontal" && N(t, -5);
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
946
|
case "ArrowRight": {
|
|
947
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
947
|
+
e.preventDefault(), n.orientation === "horizontal" && N(t, 5);
|
|
948
948
|
break;
|
|
949
949
|
}
|
|
950
950
|
case "ArrowUp": {
|
|
951
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
951
|
+
e.preventDefault(), n.orientation === "vertical" && N(t, -5);
|
|
952
952
|
break;
|
|
953
953
|
}
|
|
954
954
|
case "End": {
|
|
955
|
-
e.preventDefault(),
|
|
955
|
+
e.preventDefault(), N(t, 100);
|
|
956
956
|
break;
|
|
957
957
|
}
|
|
958
958
|
case "Enter": {
|
|
959
959
|
e.preventDefault();
|
|
960
|
-
const o = ae(t), { derivedPanelConstraints: i, layout:
|
|
960
|
+
const o = ae(t), { derivedPanelConstraints: i, layout: r, separatorToPanels: l } = Ue(o), s = o.separators.find(
|
|
961
961
|
(h) => h.element === t
|
|
962
962
|
);
|
|
963
|
-
|
|
964
|
-
const a = l.get(
|
|
965
|
-
|
|
963
|
+
z(s, "Matching separator not found");
|
|
964
|
+
const a = l.get(s);
|
|
965
|
+
z(a, "Matching panels not found");
|
|
966
966
|
const u = a[0], c = i.find(
|
|
967
967
|
(h) => h.panelId === u.id
|
|
968
968
|
);
|
|
969
|
-
if (
|
|
970
|
-
const h =
|
|
971
|
-
|
|
969
|
+
if (z(c, "Panel metadata not found"), c.collapsible) {
|
|
970
|
+
const h = r[u.id], y = c.collapsedSize === h ? o.inMemoryLastExpandedPanelSizes[u.id] ?? c.minSize : c.collapsedSize;
|
|
971
|
+
N(t, y - h);
|
|
972
972
|
}
|
|
973
973
|
break;
|
|
974
974
|
}
|
|
@@ -976,16 +976,16 @@ function Le(e) {
|
|
|
976
976
|
e.preventDefault();
|
|
977
977
|
const i = ae(t).separators.map(
|
|
978
978
|
(a) => a.element
|
|
979
|
-
),
|
|
979
|
+
), r = Array.from(i).findIndex(
|
|
980
980
|
(a) => a === e.currentTarget
|
|
981
981
|
);
|
|
982
|
-
|
|
983
|
-
const l = e.shiftKey ?
|
|
982
|
+
z(r !== null, "Index not found");
|
|
983
|
+
const l = e.shiftKey ? r > 0 ? r - 1 : i.length - 1 : r + 1 < i.length ? r + 1 : 0;
|
|
984
984
|
i[l].focus();
|
|
985
985
|
break;
|
|
986
986
|
}
|
|
987
987
|
case "Home": {
|
|
988
|
-
e.preventDefault(),
|
|
988
|
+
e.preventDefault(), N(t, -100);
|
|
989
989
|
break;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
@@ -995,30 +995,28 @@ function Ce(e) {
|
|
|
995
995
|
return;
|
|
996
996
|
if (e.pointerType === "mouse" && e.button > 0)
|
|
997
997
|
return;
|
|
998
|
-
const { mountedGroups: t } = G(), n = pe(e, t), o = /* @__PURE__ */ new
|
|
999
|
-
let
|
|
1000
|
-
n.forEach((
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
const u = t.get(a.group);
|
|
1005
|
-
u && l.set(a.group, u.layout);
|
|
998
|
+
const { mountedGroups: t } = G(), n = pe(e, t), o = /* @__PURE__ */ new Map();
|
|
999
|
+
let i = !1;
|
|
1000
|
+
n.forEach((r) => {
|
|
1001
|
+
r.separator && (i || (i = !0, r.separator.element.focus()));
|
|
1002
|
+
const l = t.get(r.group);
|
|
1003
|
+
l && o.set(r.group, l.layout);
|
|
1006
1004
|
}), M({
|
|
1007
1005
|
interactionState: {
|
|
1008
1006
|
hitRegions: n,
|
|
1009
|
-
initialLayoutMap:
|
|
1007
|
+
initialLayoutMap: o,
|
|
1010
1008
|
pointerDownAtPoint: { x: e.clientX, y: e.clientY },
|
|
1011
1009
|
state: "active"
|
|
1012
1010
|
}
|
|
1013
1011
|
}), n.length && e.preventDefault();
|
|
1014
1012
|
}
|
|
1015
|
-
const
|
|
1013
|
+
const Ct = (e) => e, ce = () => {
|
|
1016
1014
|
}, We = 1, Be = 2, Ke = 4, Xe = 8, Pe = 3, Re = 12;
|
|
1017
1015
|
let se;
|
|
1018
1016
|
function Me() {
|
|
1019
1017
|
return se === void 0 && (se = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (se = !0)), se;
|
|
1020
1018
|
}
|
|
1021
|
-
function
|
|
1019
|
+
function Pt({
|
|
1022
1020
|
cursorFlags: e,
|
|
1023
1021
|
groups: t,
|
|
1024
1022
|
state: n
|
|
@@ -1027,9 +1025,9 @@ function Ct({
|
|
|
1027
1025
|
switch (n) {
|
|
1028
1026
|
case "active":
|
|
1029
1027
|
case "hover":
|
|
1030
|
-
t.forEach((
|
|
1031
|
-
if (!
|
|
1032
|
-
switch (
|
|
1028
|
+
t.forEach((r) => {
|
|
1029
|
+
if (!r.disableCursor)
|
|
1030
|
+
switch (r.orientation) {
|
|
1033
1031
|
case "horizontal": {
|
|
1034
1032
|
o++;
|
|
1035
1033
|
break;
|
|
@@ -1046,12 +1044,12 @@ function Ct({
|
|
|
1046
1044
|
switch (n) {
|
|
1047
1045
|
case "active": {
|
|
1048
1046
|
if (e && Me()) {
|
|
1049
|
-
const
|
|
1050
|
-
if (s)
|
|
1051
|
-
return r ? "se-resize" : a ? "ne-resize" : "e-resize";
|
|
1052
|
-
if (l)
|
|
1053
|
-
return r ? "sw-resize" : a ? "nw-resize" : "w-resize";
|
|
1047
|
+
const r = (e & We) !== 0, l = (e & Be) !== 0, s = (e & Ke) !== 0, a = (e & Xe) !== 0;
|
|
1054
1048
|
if (r)
|
|
1049
|
+
return s ? "se-resize" : a ? "ne-resize" : "e-resize";
|
|
1050
|
+
if (l)
|
|
1051
|
+
return s ? "sw-resize" : a ? "nw-resize" : "w-resize";
|
|
1052
|
+
if (s)
|
|
1055
1053
|
return "s-resize";
|
|
1056
1054
|
if (a)
|
|
1057
1055
|
return "n-resize";
|
|
@@ -1071,14 +1069,14 @@ function he(e) {
|
|
|
1071
1069
|
switch (i.state) {
|
|
1072
1070
|
case "active":
|
|
1073
1071
|
case "hover": {
|
|
1074
|
-
const
|
|
1072
|
+
const r = Pt({
|
|
1075
1073
|
cursorFlags: o,
|
|
1076
|
-
groups: i.hitRegions.map((
|
|
1074
|
+
groups: i.hitRegions.map((s) => s.group),
|
|
1077
1075
|
state: i.state
|
|
1078
|
-
}), l = `*, *:hover {cursor: ${
|
|
1076
|
+
}), l = `*, *:hover {cursor: ${r} !important; ${i.state === "active" ? "touch-action: none;" : ""} }`;
|
|
1079
1077
|
if (t === l)
|
|
1080
1078
|
return;
|
|
1081
|
-
t = l,
|
|
1079
|
+
t = l, r ? n.cssRules.length === 0 ? n.insertRule(l) : n.replaceSync(l) : n.cssRules.length === 1 && n.deleteRule(0);
|
|
1082
1080
|
break;
|
|
1083
1081
|
}
|
|
1084
1082
|
case "inactive": {
|
|
@@ -1097,48 +1095,48 @@ function qe({
|
|
|
1097
1095
|
hitRegions: n,
|
|
1098
1096
|
initialLayoutMap: o,
|
|
1099
1097
|
mountedGroups: i,
|
|
1100
|
-
pointerDownAtPoint:
|
|
1098
|
+
pointerDownAtPoint: r,
|
|
1101
1099
|
prevCursorFlags: l
|
|
1102
1100
|
}) {
|
|
1103
|
-
let
|
|
1101
|
+
let s = 0;
|
|
1104
1102
|
const a = new Map(i);
|
|
1105
1103
|
n.forEach((c) => {
|
|
1106
1104
|
const { group: h, groupSize: y } = c, { disableCursor: m, orientation: f, panels: d } = h;
|
|
1107
1105
|
let p = 0;
|
|
1108
|
-
|
|
1106
|
+
r ? f === "horizontal" ? p = (t.clientX - r.x) / y * 100 : p = (t.clientY - r.y) / y * 100 : f === "horizontal" ? p = t.clientX < 0 ? -100 : 100 : p = t.clientY < 0 ? -100 : 100;
|
|
1109
1107
|
const g = o.get(h), {
|
|
1110
1108
|
defaultLayoutDeferred: v,
|
|
1111
|
-
derivedPanelConstraints:
|
|
1109
|
+
derivedPanelConstraints: x,
|
|
1112
1110
|
layout: S,
|
|
1113
|
-
separatorToPanels:
|
|
1111
|
+
separatorToPanels: w
|
|
1114
1112
|
} = i.get(h) ?? { defaultLayoutDeferred: !1 };
|
|
1115
|
-
if (
|
|
1116
|
-
const C =
|
|
1113
|
+
if (x && g && S && w) {
|
|
1114
|
+
const C = te({
|
|
1117
1115
|
delta: p,
|
|
1118
1116
|
initialLayout: g,
|
|
1119
|
-
panelConstraints:
|
|
1117
|
+
panelConstraints: x,
|
|
1120
1118
|
pivotIndices: c.panels.map((P) => d.indexOf(P)),
|
|
1121
1119
|
prevLayout: S,
|
|
1122
1120
|
trigger: "mouse-or-touch"
|
|
1123
1121
|
});
|
|
1124
|
-
if (
|
|
1122
|
+
if ($(C, S)) {
|
|
1125
1123
|
if (p !== 0 && !m)
|
|
1126
1124
|
switch (f) {
|
|
1127
1125
|
case "horizontal": {
|
|
1128
|
-
|
|
1126
|
+
s |= p < 0 ? We : Be;
|
|
1129
1127
|
break;
|
|
1130
1128
|
}
|
|
1131
1129
|
case "vertical": {
|
|
1132
|
-
|
|
1130
|
+
s |= p < 0 ? Ke : Xe;
|
|
1133
1131
|
break;
|
|
1134
1132
|
}
|
|
1135
1133
|
}
|
|
1136
1134
|
} else {
|
|
1137
1135
|
a.set(c.group, {
|
|
1138
1136
|
defaultLayoutDeferred: v,
|
|
1139
|
-
derivedPanelConstraints:
|
|
1137
|
+
derivedPanelConstraints: x,
|
|
1140
1138
|
layout: C,
|
|
1141
|
-
separatorToPanels:
|
|
1139
|
+
separatorToPanels: w
|
|
1142
1140
|
});
|
|
1143
1141
|
const P = c.group.panels.map(({ id: T }) => T).join(",");
|
|
1144
1142
|
c.group.inMemoryLayouts[P] = C;
|
|
@@ -1146,7 +1144,7 @@ function qe({
|
|
|
1146
1144
|
}
|
|
1147
1145
|
});
|
|
1148
1146
|
let u = 0;
|
|
1149
|
-
t.movementX === 0 ? u |= l & Pe : u |=
|
|
1147
|
+
t.movementX === 0 ? u |= l & Pe : u |= s & Pe, t.movementY === 0 ? u |= l & Re : u |= s & Re, M({
|
|
1150
1148
|
cursorFlags: u,
|
|
1151
1149
|
mountedGroups: a
|
|
1152
1150
|
}), he(e);
|
|
@@ -1233,34 +1231,34 @@ function Ie(e) {
|
|
|
1233
1231
|
function De(e) {
|
|
1234
1232
|
let t = 0, n = 0;
|
|
1235
1233
|
const o = {};
|
|
1236
|
-
for (const
|
|
1237
|
-
if (
|
|
1234
|
+
for (const r of e)
|
|
1235
|
+
if (r.defaultSize !== void 0) {
|
|
1238
1236
|
t++;
|
|
1239
|
-
const l = D(
|
|
1240
|
-
n += l, o[
|
|
1237
|
+
const l = D(r.defaultSize);
|
|
1238
|
+
n += l, o[r.panelId] = l;
|
|
1241
1239
|
} else
|
|
1242
|
-
o[
|
|
1240
|
+
o[r.panelId] = void 0;
|
|
1243
1241
|
const i = e.length - t;
|
|
1244
1242
|
if (i !== 0) {
|
|
1245
|
-
const
|
|
1243
|
+
const r = D((100 - n) / i);
|
|
1246
1244
|
for (const l of e)
|
|
1247
|
-
l.defaultSize === void 0 && (o[l.panelId] =
|
|
1245
|
+
l.defaultSize === void 0 && (o[l.panelId] = r);
|
|
1248
1246
|
}
|
|
1249
1247
|
return o;
|
|
1250
1248
|
}
|
|
1251
|
-
function
|
|
1249
|
+
function Rt(e, t, n) {
|
|
1252
1250
|
if (!n[0])
|
|
1253
1251
|
return;
|
|
1254
1252
|
const i = e.panels.find((u) => u.element === t);
|
|
1255
1253
|
if (!i || !i.onResize)
|
|
1256
1254
|
return;
|
|
1257
|
-
const
|
|
1258
|
-
asPercentage: D(l /
|
|
1255
|
+
const r = K({ group: e }), l = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, s = i.mutableValues.prevSize, a = {
|
|
1256
|
+
asPercentage: D(l / r * 100),
|
|
1259
1257
|
inPixels: l
|
|
1260
1258
|
};
|
|
1261
|
-
i.mutableValues.prevSize = a, i.onResize(a, i.id,
|
|
1259
|
+
i.mutableValues.prevSize = a, i.onResize(a, i.id, s);
|
|
1262
1260
|
}
|
|
1263
|
-
function
|
|
1261
|
+
function Mt(e, t) {
|
|
1264
1262
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1265
1263
|
return !1;
|
|
1266
1264
|
for (const o in e)
|
|
@@ -1268,7 +1266,7 @@ function Rt(e, t) {
|
|
|
1268
1266
|
return !1;
|
|
1269
1267
|
return !0;
|
|
1270
1268
|
}
|
|
1271
|
-
function
|
|
1269
|
+
function Et(e, t) {
|
|
1272
1270
|
const n = e.map((i) => i.id), o = Object.keys(t);
|
|
1273
1271
|
if (n.length !== o.length)
|
|
1274
1272
|
return !1;
|
|
@@ -1277,119 +1275,119 @@ function Mt(e, t) {
|
|
|
1277
1275
|
return !1;
|
|
1278
1276
|
return !0;
|
|
1279
1277
|
}
|
|
1280
|
-
const
|
|
1281
|
-
function
|
|
1278
|
+
const W = /* @__PURE__ */ new Map();
|
|
1279
|
+
function kt(e) {
|
|
1282
1280
|
let t = !0;
|
|
1283
|
-
|
|
1281
|
+
z(
|
|
1284
1282
|
e.element.ownerDocument.defaultView,
|
|
1285
1283
|
"Cannot register an unmounted Group"
|
|
1286
1284
|
);
|
|
1287
|
-
const n = e.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(),
|
|
1285
|
+
const n = e.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), r = new n((f) => {
|
|
1288
1286
|
for (const d of f) {
|
|
1289
1287
|
const { borderBoxSize: p, target: g } = d;
|
|
1290
1288
|
if (g === e.element) {
|
|
1291
1289
|
if (t) {
|
|
1292
|
-
if (
|
|
1290
|
+
if (K({ group: e }) === 0)
|
|
1293
1291
|
return;
|
|
1294
|
-
M((
|
|
1295
|
-
const S =
|
|
1292
|
+
M((x) => {
|
|
1293
|
+
const S = x.mountedGroups.get(e);
|
|
1296
1294
|
if (S) {
|
|
1297
|
-
const
|
|
1295
|
+
const w = ve(e), C = S.defaultLayoutDeferred ? De(w) : S.layout, P = H({
|
|
1298
1296
|
layout: C,
|
|
1299
|
-
panelConstraints:
|
|
1297
|
+
panelConstraints: w
|
|
1300
1298
|
});
|
|
1301
|
-
return !S.defaultLayoutDeferred &&
|
|
1299
|
+
return !S.defaultLayoutDeferred && $(C, P) && Mt(
|
|
1302
1300
|
S.derivedPanelConstraints,
|
|
1303
|
-
|
|
1304
|
-
) ?
|
|
1305
|
-
mountedGroups: new Map(
|
|
1301
|
+
w
|
|
1302
|
+
) ? x : {
|
|
1303
|
+
mountedGroups: new Map(x.mountedGroups).set(e, {
|
|
1306
1304
|
defaultLayoutDeferred: !1,
|
|
1307
|
-
derivedPanelConstraints:
|
|
1305
|
+
derivedPanelConstraints: w,
|
|
1308
1306
|
layout: P,
|
|
1309
1307
|
separatorToPanels: S.separatorToPanels
|
|
1310
1308
|
})
|
|
1311
1309
|
};
|
|
1312
1310
|
}
|
|
1313
|
-
return
|
|
1311
|
+
return x;
|
|
1314
1312
|
});
|
|
1315
1313
|
}
|
|
1316
1314
|
} else
|
|
1317
|
-
|
|
1315
|
+
Rt(e, g, p);
|
|
1318
1316
|
}
|
|
1319
1317
|
});
|
|
1320
|
-
|
|
1321
|
-
|
|
1318
|
+
r.observe(e.element), e.panels.forEach((f) => {
|
|
1319
|
+
z(
|
|
1322
1320
|
!o.has(f.id),
|
|
1323
1321
|
`Panel ids must be unique; id "${f.id}" was used more than once`
|
|
1324
|
-
), o.add(f.id), f.onResize &&
|
|
1322
|
+
), o.add(f.id), f.onResize && r.observe(f.element);
|
|
1325
1323
|
});
|
|
1326
|
-
const l =
|
|
1324
|
+
const l = K({ group: e }), s = ve(e), a = e.panels.map(({ id: f }) => f).join(",");
|
|
1327
1325
|
let u = e.defaultLayout;
|
|
1328
|
-
u && (
|
|
1329
|
-
const c = e.inMemoryLayouts[a] ?? u ?? De(
|
|
1326
|
+
u && (Et(e.panels, u) || (u = void 0));
|
|
1327
|
+
const c = e.inMemoryLayouts[a] ?? u ?? De(s), h = H({
|
|
1330
1328
|
layout: c,
|
|
1331
|
-
panelConstraints:
|
|
1329
|
+
panelConstraints: s
|
|
1332
1330
|
}), y = $e(e), m = e.element.ownerDocument;
|
|
1333
1331
|
return M((f) => {
|
|
1334
1332
|
const d = /* @__PURE__ */ new Map();
|
|
1335
|
-
return
|
|
1333
|
+
return W.set(
|
|
1336
1334
|
m,
|
|
1337
|
-
(
|
|
1335
|
+
(W.get(m) ?? 0) + 1
|
|
1338
1336
|
), y.forEach((p) => {
|
|
1339
1337
|
p.separator && d.set(p.separator, p.panels);
|
|
1340
1338
|
}), {
|
|
1341
1339
|
mountedGroups: new Map(f.mountedGroups).set(e, {
|
|
1342
1340
|
defaultLayoutDeferred: l === 0,
|
|
1343
|
-
derivedPanelConstraints:
|
|
1341
|
+
derivedPanelConstraints: s,
|
|
1344
1342
|
layout: h,
|
|
1345
1343
|
separatorToPanels: d
|
|
1346
1344
|
})
|
|
1347
1345
|
};
|
|
1348
1346
|
}), e.separators.forEach((f) => {
|
|
1349
|
-
|
|
1347
|
+
z(
|
|
1350
1348
|
!i.has(f.id),
|
|
1351
1349
|
`Separator ids must be unique; id "${f.id}" was used more than once`
|
|
1352
1350
|
), i.add(f.id), f.element.addEventListener("keydown", Le);
|
|
1353
|
-
}),
|
|
1354
|
-
t = !1,
|
|
1351
|
+
}), W.get(m) === 1 && (m.addEventListener("dblclick", we, !0), m.addEventListener("pointerdown", Ce, !0), m.addEventListener("pointerleave", ke), m.addEventListener("pointermove", Ge), m.addEventListener("pointerup", Ie, !0)), function() {
|
|
1352
|
+
t = !1, W.set(
|
|
1355
1353
|
m,
|
|
1356
|
-
Math.max(0, (
|
|
1354
|
+
Math.max(0, (W.get(m) ?? 0) - 1)
|
|
1357
1355
|
), M((d) => {
|
|
1358
1356
|
const p = new Map(d.mountedGroups);
|
|
1359
1357
|
return p.delete(e), { mountedGroups: p };
|
|
1360
1358
|
}), e.separators.forEach((d) => {
|
|
1361
1359
|
d.element.removeEventListener("keydown", Le);
|
|
1362
|
-
}),
|
|
1360
|
+
}), W.get(m) || (m.removeEventListener(
|
|
1363
1361
|
"dblclick",
|
|
1364
|
-
|
|
1362
|
+
we,
|
|
1365
1363
|
!0
|
|
1366
1364
|
), m.removeEventListener(
|
|
1367
1365
|
"pointerdown",
|
|
1368
1366
|
Ce,
|
|
1369
1367
|
!0
|
|
1370
|
-
), m.removeEventListener("pointerleave", ke), m.removeEventListener("pointermove", Ge), m.removeEventListener("pointerup", Ie, !0)),
|
|
1368
|
+
), m.removeEventListener("pointerleave", ke), m.removeEventListener("pointermove", Ge), m.removeEventListener("pointerup", Ie, !0)), r.disconnect();
|
|
1371
1369
|
};
|
|
1372
1370
|
}
|
|
1373
1371
|
function Ye() {
|
|
1374
|
-
const [e, t] =
|
|
1372
|
+
const [e, t] = ee({}), n = Z(() => t({}), []);
|
|
1375
1373
|
return [e, n];
|
|
1376
1374
|
}
|
|
1377
1375
|
function me(e) {
|
|
1378
|
-
const t =
|
|
1376
|
+
const t = nt();
|
|
1379
1377
|
return `${e ?? t}`;
|
|
1380
1378
|
}
|
|
1381
|
-
const
|
|
1382
|
-
function
|
|
1379
|
+
const j = typeof window < "u" ? Te : Oe;
|
|
1380
|
+
function J(e) {
|
|
1383
1381
|
const t = k(e);
|
|
1384
|
-
return
|
|
1382
|
+
return j(() => {
|
|
1385
1383
|
t.current = e;
|
|
1386
|
-
}, [e]),
|
|
1384
|
+
}, [e]), Z(
|
|
1387
1385
|
(...n) => t.current?.(...n),
|
|
1388
1386
|
[t]
|
|
1389
1387
|
);
|
|
1390
1388
|
}
|
|
1391
1389
|
function ge(...e) {
|
|
1392
|
-
return
|
|
1390
|
+
return J((t) => {
|
|
1393
1391
|
e.forEach((n) => {
|
|
1394
1392
|
if (n)
|
|
1395
1393
|
switch (typeof n) {
|
|
@@ -1405,35 +1403,35 @@ function ge(...e) {
|
|
|
1405
1403
|
});
|
|
1406
1404
|
});
|
|
1407
1405
|
}
|
|
1408
|
-
function
|
|
1406
|
+
function Gt(e) {
|
|
1409
1407
|
const t = k({ ...e });
|
|
1410
|
-
return
|
|
1408
|
+
return j(() => {
|
|
1411
1409
|
for (const n in e)
|
|
1412
1410
|
t.current[n] = e[n];
|
|
1413
1411
|
}, [e]), t.current;
|
|
1414
1412
|
}
|
|
1415
|
-
const Ze =
|
|
1416
|
-
function
|
|
1413
|
+
const Ze = ot(null);
|
|
1414
|
+
function It(e, t) {
|
|
1417
1415
|
const n = k({
|
|
1418
1416
|
getLayout: () => ({}),
|
|
1419
|
-
setLayout:
|
|
1417
|
+
setLayout: Ct
|
|
1420
1418
|
});
|
|
1421
|
-
|
|
1419
|
+
Ae(t, () => n.current, []), j(() => {
|
|
1422
1420
|
Object.assign(
|
|
1423
1421
|
n.current,
|
|
1424
1422
|
Ve({ groupId: e })
|
|
1425
1423
|
);
|
|
1426
1424
|
});
|
|
1427
1425
|
}
|
|
1428
|
-
function
|
|
1426
|
+
function Dt({
|
|
1429
1427
|
children: e,
|
|
1430
1428
|
className: t,
|
|
1431
1429
|
defaultLayout: n,
|
|
1432
1430
|
disableCursor: o,
|
|
1433
1431
|
disabled: i,
|
|
1434
|
-
elementRef:
|
|
1432
|
+
elementRef: r,
|
|
1435
1433
|
groupRef: l,
|
|
1436
|
-
id:
|
|
1434
|
+
id: s,
|
|
1437
1435
|
onLayoutChange: a,
|
|
1438
1436
|
onLayoutChanged: u,
|
|
1439
1437
|
orientation: c = "horizontal",
|
|
@@ -1447,37 +1445,37 @@ function It({
|
|
|
1447
1445
|
const f = k({
|
|
1448
1446
|
onLayoutChange: {},
|
|
1449
1447
|
onLayoutChanged: {}
|
|
1450
|
-
}), d =
|
|
1451
|
-
|
|
1452
|
-
}), p =
|
|
1453
|
-
|
|
1454
|
-
}), g = me(
|
|
1448
|
+
}), d = J((b) => {
|
|
1449
|
+
$(f.current.onLayoutChange, b) || (f.current.onLayoutChange = b, a?.(b));
|
|
1450
|
+
}), p = J((b) => {
|
|
1451
|
+
$(f.current.onLayoutChanged, b) || (f.current.onLayoutChanged = b, u?.(b));
|
|
1452
|
+
}), g = me(s), v = k(null), [x, S] = Ye(), w = k({
|
|
1455
1453
|
lastExpandedPanelSizes: {},
|
|
1456
1454
|
layouts: {},
|
|
1457
1455
|
panels: [],
|
|
1458
1456
|
resizeTargetMinimumSize: h,
|
|
1459
1457
|
separators: []
|
|
1460
|
-
}), C = ge(v,
|
|
1461
|
-
|
|
1462
|
-
const P =
|
|
1463
|
-
(
|
|
1464
|
-
const { interactionState: E, mountedGroups:
|
|
1465
|
-
for (const
|
|
1466
|
-
if (
|
|
1467
|
-
const
|
|
1468
|
-
if (
|
|
1469
|
-
let
|
|
1458
|
+
}), C = ge(v, r);
|
|
1459
|
+
It(g, l);
|
|
1460
|
+
const P = J(
|
|
1461
|
+
(b, L) => {
|
|
1462
|
+
const { interactionState: E, mountedGroups: ne } = G();
|
|
1463
|
+
for (const oe of ne.keys())
|
|
1464
|
+
if (oe.id === b) {
|
|
1465
|
+
const X = ne.get(oe);
|
|
1466
|
+
if (X) {
|
|
1467
|
+
let q = !1;
|
|
1470
1468
|
switch (E.state) {
|
|
1471
1469
|
case "active": {
|
|
1472
|
-
|
|
1473
|
-
(le) => le.group ===
|
|
1470
|
+
q = E.hitRegions.some(
|
|
1471
|
+
(le) => le.group === oe
|
|
1474
1472
|
);
|
|
1475
1473
|
break;
|
|
1476
1474
|
}
|
|
1477
1475
|
}
|
|
1478
1476
|
return {
|
|
1479
|
-
flexGrow:
|
|
1480
|
-
pointerEvents:
|
|
1477
|
+
flexGrow: X.layout[L] ?? 1,
|
|
1478
|
+
pointerEvents: q ? "none" : void 0
|
|
1481
1479
|
};
|
|
1482
1480
|
}
|
|
1483
1481
|
}
|
|
@@ -1485,88 +1483,90 @@ function It({
|
|
|
1485
1483
|
flexGrow: n?.[L] ?? 1
|
|
1486
1484
|
};
|
|
1487
1485
|
}
|
|
1488
|
-
), T =
|
|
1486
|
+
), T = _e(
|
|
1489
1487
|
() => ({
|
|
1490
1488
|
getPanelStyles: P,
|
|
1491
1489
|
id: g,
|
|
1492
1490
|
orientation: c,
|
|
1493
|
-
registerPanel: (
|
|
1494
|
-
const L =
|
|
1491
|
+
registerPanel: (b) => {
|
|
1492
|
+
const L = w.current;
|
|
1495
1493
|
return L.panels = de(c, [
|
|
1496
1494
|
...L.panels,
|
|
1497
|
-
|
|
1495
|
+
b
|
|
1498
1496
|
]), S(), () => {
|
|
1499
1497
|
L.panels = L.panels.filter(
|
|
1500
|
-
(E) => E !==
|
|
1498
|
+
(E) => E !== b
|
|
1501
1499
|
), S();
|
|
1502
1500
|
};
|
|
1503
1501
|
},
|
|
1504
|
-
registerSeparator: (
|
|
1505
|
-
const L =
|
|
1502
|
+
registerSeparator: (b) => {
|
|
1503
|
+
const L = w.current;
|
|
1506
1504
|
return L.separators = de(c, [
|
|
1507
1505
|
...L.separators,
|
|
1508
|
-
|
|
1506
|
+
b
|
|
1509
1507
|
]), S(), () => {
|
|
1510
1508
|
L.separators = L.separators.filter(
|
|
1511
|
-
(E) => E !==
|
|
1509
|
+
(E) => E !== b
|
|
1512
1510
|
), S();
|
|
1513
1511
|
};
|
|
1514
1512
|
}
|
|
1515
1513
|
}),
|
|
1516
1514
|
[P, g, S, c]
|
|
1517
|
-
),
|
|
1515
|
+
), V = Gt({
|
|
1518
1516
|
defaultLayout: n,
|
|
1519
1517
|
disableCursor: o
|
|
1520
|
-
}),
|
|
1521
|
-
return
|
|
1522
|
-
const
|
|
1523
|
-
if (
|
|
1518
|
+
}), A = k(null);
|
|
1519
|
+
return j(() => {
|
|
1520
|
+
const b = v.current;
|
|
1521
|
+
if (b === null)
|
|
1524
1522
|
return;
|
|
1525
|
-
const L =
|
|
1526
|
-
defaultLayout:
|
|
1527
|
-
disableCursor: !!
|
|
1523
|
+
const L = w.current, E = {
|
|
1524
|
+
defaultLayout: V.defaultLayout,
|
|
1525
|
+
disableCursor: !!V.disableCursor,
|
|
1528
1526
|
disabled: !!i,
|
|
1529
|
-
element:
|
|
1527
|
+
element: b,
|
|
1530
1528
|
id: g,
|
|
1531
|
-
inMemoryLastExpandedPanelSizes:
|
|
1532
|
-
inMemoryLayouts:
|
|
1529
|
+
inMemoryLastExpandedPanelSizes: w.current.lastExpandedPanelSizes,
|
|
1530
|
+
inMemoryLayouts: w.current.layouts,
|
|
1533
1531
|
orientation: c,
|
|
1534
1532
|
panels: L.panels,
|
|
1535
1533
|
resizeTargetMinimumSize: L.resizeTargetMinimumSize,
|
|
1536
1534
|
separators: L.separators
|
|
1537
1535
|
};
|
|
1538
|
-
|
|
1539
|
-
const
|
|
1540
|
-
if (
|
|
1541
|
-
const { defaultLayoutDeferred:
|
|
1542
|
-
!
|
|
1536
|
+
A.current = E;
|
|
1537
|
+
const ne = kt(E), X = G().mountedGroups.get(E);
|
|
1538
|
+
if (X) {
|
|
1539
|
+
const { defaultLayoutDeferred: Y, derivedPanelConstraints: _, layout: U } = X;
|
|
1540
|
+
!Y && _.length > 0 && (d(U), p(U), L.panels.forEach((ue) => {
|
|
1543
1541
|
ue.scheduleUpdate();
|
|
1544
1542
|
}));
|
|
1545
1543
|
}
|
|
1546
|
-
|
|
1544
|
+
let q = !1;
|
|
1545
|
+
const le = F.addListener(
|
|
1547
1546
|
"interactionStateChange",
|
|
1548
|
-
() => {
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1547
|
+
(Y) => {
|
|
1548
|
+
const _ = Y.state === "active";
|
|
1549
|
+
q !== _ && (q = _, L.panels.forEach((U) => {
|
|
1550
|
+
U.scheduleUpdate();
|
|
1551
|
+
}));
|
|
1552
1552
|
}
|
|
1553
|
-
),
|
|
1553
|
+
), Je = F.addListener(
|
|
1554
1554
|
"mountedGroupsChange",
|
|
1555
|
-
(
|
|
1556
|
-
const
|
|
1557
|
-
if (
|
|
1558
|
-
const { defaultLayoutDeferred:
|
|
1559
|
-
if (
|
|
1555
|
+
(Y) => {
|
|
1556
|
+
const _ = Y.get(E);
|
|
1557
|
+
if (_) {
|
|
1558
|
+
const { defaultLayoutDeferred: U, derivedPanelConstraints: ue, layout: Se } = _;
|
|
1559
|
+
if (U || ue.length === 0)
|
|
1560
1560
|
return;
|
|
1561
|
-
const { interactionState:
|
|
1562
|
-
d(Se),
|
|
1563
|
-
|
|
1561
|
+
const { interactionState: Qe } = G(), et = Qe.state !== "active";
|
|
1562
|
+
d(Se), et && p(Se), L.panels.forEach((tt) => {
|
|
1563
|
+
tt.scheduleUpdate();
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
);
|
|
1568
1568
|
return () => {
|
|
1569
|
-
|
|
1569
|
+
A.current = null, ne(), le(), Je();
|
|
1570
1570
|
};
|
|
1571
1571
|
}, [
|
|
1572
1572
|
i,
|
|
@@ -1574,12 +1574,12 @@ function It({
|
|
|
1574
1574
|
p,
|
|
1575
1575
|
d,
|
|
1576
1576
|
c,
|
|
1577
|
-
|
|
1578
|
-
|
|
1577
|
+
x,
|
|
1578
|
+
V
|
|
1579
1579
|
]), Oe(() => {
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1582
|
-
}), /* @__PURE__ */
|
|
1580
|
+
const b = A.current;
|
|
1581
|
+
b && (b.defaultLayout = n, b.disableCursor = !!o);
|
|
1582
|
+
}), /* @__PURE__ */ Q(Ze.Provider, { value: T, children: /* @__PURE__ */ Q(
|
|
1583
1583
|
"div",
|
|
1584
1584
|
{
|
|
1585
1585
|
...m,
|
|
@@ -1602,43 +1602,43 @@ function It({
|
|
|
1602
1602
|
}
|
|
1603
1603
|
) });
|
|
1604
1604
|
}
|
|
1605
|
-
|
|
1605
|
+
Dt.displayName = "Group";
|
|
1606
1606
|
function fe(e, t) {
|
|
1607
1607
|
return `react-resizable-panels:${[e, ...t].join(":")}`;
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function jt({
|
|
1610
1610
|
debounceSaveMs: e = 100,
|
|
1611
1611
|
panelIds: t,
|
|
1612
1612
|
storage: n = localStorage,
|
|
1613
1613
|
...o
|
|
1614
1614
|
}) {
|
|
1615
|
-
const i = t !== void 0,
|
|
1616
|
-
|
|
1615
|
+
const i = t !== void 0, r = "id" in o ? o.id : o.groupId, l = fe(r, t ?? []), s = it(
|
|
1616
|
+
Tt,
|
|
1617
1617
|
() => n.getItem(l),
|
|
1618
1618
|
() => n.getItem(l)
|
|
1619
|
-
), a =
|
|
1620
|
-
() =>
|
|
1621
|
-
[
|
|
1622
|
-
), u = k(null), c =
|
|
1619
|
+
), a = _e(
|
|
1620
|
+
() => s ? JSON.parse(s) : void 0,
|
|
1621
|
+
[s]
|
|
1622
|
+
), u = k(null), c = Z(() => {
|
|
1623
1623
|
const m = u.current;
|
|
1624
1624
|
m && (u.current = null, clearTimeout(m));
|
|
1625
1625
|
}, []);
|
|
1626
1626
|
Te(() => () => {
|
|
1627
1627
|
c();
|
|
1628
1628
|
}, [c]);
|
|
1629
|
-
const h =
|
|
1629
|
+
const h = Z(
|
|
1630
1630
|
(m) => {
|
|
1631
1631
|
c();
|
|
1632
1632
|
let f;
|
|
1633
|
-
i ? f = fe(
|
|
1633
|
+
i ? f = fe(r, Object.keys(m)) : f = fe(r, []);
|
|
1634
1634
|
try {
|
|
1635
1635
|
n.setItem(f, JSON.stringify(m));
|
|
1636
1636
|
} catch (d) {
|
|
1637
1637
|
console.error(d);
|
|
1638
1638
|
}
|
|
1639
1639
|
},
|
|
1640
|
-
[c, i,
|
|
1641
|
-
), y =
|
|
1640
|
+
[c, i, r, n]
|
|
1641
|
+
), y = Z(
|
|
1642
1642
|
(m) => {
|
|
1643
1643
|
c(), e === 0 ? h(m) : u.current = setTimeout(() => {
|
|
1644
1644
|
h(m);
|
|
@@ -1663,24 +1663,24 @@ function Ht({
|
|
|
1663
1663
|
onLayoutChanged: h
|
|
1664
1664
|
};
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function Tt() {
|
|
1667
1667
|
return function() {
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
|
-
function jt() {
|
|
1671
|
-
return Z(null);
|
|
1672
|
-
}
|
|
1673
1670
|
function Vt() {
|
|
1671
|
+
return ee(null);
|
|
1672
|
+
}
|
|
1673
|
+
function Ut() {
|
|
1674
1674
|
return k(null);
|
|
1675
1675
|
}
|
|
1676
1676
|
function ye() {
|
|
1677
|
-
const e =
|
|
1678
|
-
return
|
|
1677
|
+
const e = rt(Ze);
|
|
1678
|
+
return z(
|
|
1679
1679
|
e,
|
|
1680
1680
|
"Group Context not found; did you render a Panel or Separator outside of a Group?"
|
|
1681
1681
|
), e;
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Ot(e, t) {
|
|
1684
1684
|
const { id: n } = ye(), o = k({
|
|
1685
1685
|
collapse: ce,
|
|
1686
1686
|
expand: ce,
|
|
@@ -1691,34 +1691,34 @@ function Tt(e, t) {
|
|
|
1691
1691
|
isCollapsed: () => !1,
|
|
1692
1692
|
resize: ce
|
|
1693
1693
|
});
|
|
1694
|
-
|
|
1694
|
+
Ae(t, () => o.current, []), j(() => {
|
|
1695
1695
|
Object.assign(
|
|
1696
1696
|
o.current,
|
|
1697
1697
|
je({ groupId: n, panelId: e })
|
|
1698
1698
|
);
|
|
1699
1699
|
});
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function At({
|
|
1702
1702
|
children: e,
|
|
1703
1703
|
className: t,
|
|
1704
1704
|
collapsedSize: n = "0%",
|
|
1705
1705
|
collapsible: o = !1,
|
|
1706
1706
|
defaultSize: i,
|
|
1707
|
-
elementRef:
|
|
1707
|
+
elementRef: r,
|
|
1708
1708
|
id: l,
|
|
1709
|
-
maxSize:
|
|
1709
|
+
maxSize: s = "100%",
|
|
1710
1710
|
minSize: a = "0%",
|
|
1711
1711
|
onResize: u,
|
|
1712
1712
|
panelRef: c,
|
|
1713
1713
|
style: h,
|
|
1714
1714
|
...y
|
|
1715
1715
|
}) {
|
|
1716
|
-
const m = !!l, f = me(l), d = k(null), p = ge(d,
|
|
1717
|
-
(T,
|
|
1718
|
-
u?.(T, l,
|
|
1716
|
+
const m = !!l, f = me(l), d = k(null), p = ge(d, r), [, g] = Ye(), { getPanelStyles: v, id: x, registerPanel: S } = ye(), w = u !== null, C = J(
|
|
1717
|
+
(T, V, A) => {
|
|
1718
|
+
u?.(T, l, A);
|
|
1719
1719
|
}
|
|
1720
1720
|
);
|
|
1721
|
-
|
|
1721
|
+
j(() => {
|
|
1722
1722
|
const T = d.current;
|
|
1723
1723
|
if (T !== null)
|
|
1724
1724
|
return S({
|
|
@@ -1729,12 +1729,12 @@ function Ot({
|
|
|
1729
1729
|
expandToSize: void 0,
|
|
1730
1730
|
prevSize: void 0
|
|
1731
1731
|
},
|
|
1732
|
-
onResize:
|
|
1732
|
+
onResize: w ? C : void 0,
|
|
1733
1733
|
panelConstraints: {
|
|
1734
1734
|
collapsedSize: n,
|
|
1735
1735
|
collapsible: o,
|
|
1736
1736
|
defaultSize: i,
|
|
1737
|
-
maxSize:
|
|
1737
|
+
maxSize: s,
|
|
1738
1738
|
minSize: a
|
|
1739
1739
|
},
|
|
1740
1740
|
scheduleUpdate: g
|
|
@@ -1744,16 +1744,16 @@ function Ot({
|
|
|
1744
1744
|
o,
|
|
1745
1745
|
i,
|
|
1746
1746
|
g,
|
|
1747
|
-
|
|
1747
|
+
w,
|
|
1748
1748
|
f,
|
|
1749
1749
|
m,
|
|
1750
|
-
|
|
1750
|
+
s,
|
|
1751
1751
|
a,
|
|
1752
1752
|
C,
|
|
1753
1753
|
S
|
|
1754
|
-
]),
|
|
1755
|
-
const P = v(
|
|
1756
|
-
return /* @__PURE__ */
|
|
1754
|
+
]), Ot(f, c);
|
|
1755
|
+
const P = v(x, f);
|
|
1756
|
+
return /* @__PURE__ */ Q(
|
|
1757
1757
|
"div",
|
|
1758
1758
|
{
|
|
1759
1759
|
...y,
|
|
@@ -1770,7 +1770,7 @@ function Ot({
|
|
|
1770
1770
|
overflow: "hidden",
|
|
1771
1771
|
...P
|
|
1772
1772
|
},
|
|
1773
|
-
children: /* @__PURE__ */
|
|
1773
|
+
children: /* @__PURE__ */ Q(
|
|
1774
1774
|
"div",
|
|
1775
1775
|
{
|
|
1776
1776
|
className: t,
|
|
@@ -1786,7 +1786,7 @@ function Ot({
|
|
|
1786
1786
|
}
|
|
1787
1787
|
);
|
|
1788
1788
|
}
|
|
1789
|
-
|
|
1789
|
+
At.displayName = "Panel";
|
|
1790
1790
|
const _t = {
|
|
1791
1791
|
minHeight: 0,
|
|
1792
1792
|
maxHeight: "100%",
|
|
@@ -1799,26 +1799,26 @@ const _t = {
|
|
|
1799
1799
|
padding: 0,
|
|
1800
1800
|
margin: 0
|
|
1801
1801
|
};
|
|
1802
|
-
function Ut() {
|
|
1803
|
-
return Z(null);
|
|
1804
|
-
}
|
|
1805
1802
|
function Wt() {
|
|
1803
|
+
return ee(null);
|
|
1804
|
+
}
|
|
1805
|
+
function Bt() {
|
|
1806
1806
|
return k(null);
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function Nt({
|
|
1809
1809
|
layout: e,
|
|
1810
1810
|
panelConstraints: t,
|
|
1811
1811
|
panelId: n,
|
|
1812
1812
|
panelIndex: o
|
|
1813
1813
|
}) {
|
|
1814
|
-
let i,
|
|
1815
|
-
const l = e[n],
|
|
1814
|
+
let i, r;
|
|
1815
|
+
const l = e[n], s = t.find(
|
|
1816
1816
|
(a) => a.panelId === n
|
|
1817
1817
|
);
|
|
1818
|
-
if (
|
|
1819
|
-
const a =
|
|
1820
|
-
|
|
1821
|
-
layout:
|
|
1818
|
+
if (s) {
|
|
1819
|
+
const a = s.maxSize, u = s.collapsible ? s.collapsedSize : s.minSize, c = [o, o + 1];
|
|
1820
|
+
r = H({
|
|
1821
|
+
layout: te({
|
|
1822
1822
|
delta: u - l,
|
|
1823
1823
|
initialLayout: e,
|
|
1824
1824
|
panelConstraints: t,
|
|
@@ -1826,8 +1826,8 @@ function At({
|
|
|
1826
1826
|
prevLayout: e
|
|
1827
1827
|
}),
|
|
1828
1828
|
panelConstraints: t
|
|
1829
|
-
})[n], i =
|
|
1830
|
-
layout:
|
|
1829
|
+
})[n], i = H({
|
|
1830
|
+
layout: te({
|
|
1831
1831
|
delta: a - l,
|
|
1832
1832
|
initialLayout: e,
|
|
1833
1833
|
panelConstraints: t,
|
|
@@ -1840,30 +1840,30 @@ function At({
|
|
|
1840
1840
|
return {
|
|
1841
1841
|
valueControls: n,
|
|
1842
1842
|
valueMax: i,
|
|
1843
|
-
valueMin:
|
|
1843
|
+
valueMin: r,
|
|
1844
1844
|
valueNow: l
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1847
|
+
function Ft({
|
|
1848
1848
|
children: e,
|
|
1849
1849
|
className: t,
|
|
1850
1850
|
elementRef: n,
|
|
1851
1851
|
id: o,
|
|
1852
1852
|
style: i,
|
|
1853
|
-
...
|
|
1853
|
+
...r
|
|
1854
1854
|
}) {
|
|
1855
|
-
const l = me(o), [
|
|
1855
|
+
const l = me(o), [s, a] = ee({}), [u, c] = ee("inactive"), h = k(null), y = ge(h, n), {
|
|
1856
1856
|
id: m,
|
|
1857
1857
|
orientation: f,
|
|
1858
1858
|
registerSeparator: d
|
|
1859
1859
|
} = ye(), p = f === "horizontal" ? "vertical" : "horizontal";
|
|
1860
|
-
return
|
|
1860
|
+
return j(() => {
|
|
1861
1861
|
const g = h.current;
|
|
1862
1862
|
if (g !== null) {
|
|
1863
1863
|
const v = {
|
|
1864
1864
|
element: g,
|
|
1865
1865
|
id: l
|
|
1866
|
-
},
|
|
1866
|
+
}, x = d(v), S = F.addListener(
|
|
1867
1867
|
"interactionStateChange",
|
|
1868
1868
|
(C) => {
|
|
1869
1869
|
c(
|
|
@@ -1872,17 +1872,17 @@ function Nt({
|
|
|
1872
1872
|
) ? C.state : "inactive"
|
|
1873
1873
|
);
|
|
1874
1874
|
}
|
|
1875
|
-
),
|
|
1875
|
+
), w = F.addListener(
|
|
1876
1876
|
"mountedGroupsChange",
|
|
1877
1877
|
(C) => {
|
|
1878
1878
|
C.forEach(
|
|
1879
|
-
({ derivedPanelConstraints: P, layout: T, separatorToPanels:
|
|
1880
|
-
if (
|
|
1881
|
-
const
|
|
1882
|
-
if (
|
|
1883
|
-
const L =
|
|
1879
|
+
({ derivedPanelConstraints: P, layout: T, separatorToPanels: V }, A) => {
|
|
1880
|
+
if (A.id === m) {
|
|
1881
|
+
const b = V.get(v);
|
|
1882
|
+
if (b) {
|
|
1883
|
+
const L = b[0], E = A.panels.indexOf(L);
|
|
1884
1884
|
a(
|
|
1885
|
-
|
|
1885
|
+
Nt({
|
|
1886
1886
|
layout: T,
|
|
1887
1887
|
panelConstraints: P,
|
|
1888
1888
|
panelId: L.id,
|
|
@@ -1896,18 +1896,18 @@ function Nt({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
);
|
|
1898
1898
|
return () => {
|
|
1899
|
-
S(),
|
|
1899
|
+
S(), w(), x();
|
|
1900
1900
|
};
|
|
1901
1901
|
}
|
|
1902
|
-
}, [m, l, d]), /* @__PURE__ */
|
|
1902
|
+
}, [m, l, d]), /* @__PURE__ */ Q(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
1905
|
-
...
|
|
1906
|
-
"aria-controls":
|
|
1905
|
+
...r,
|
|
1906
|
+
"aria-controls": s.valueControls,
|
|
1907
1907
|
"aria-orientation": p,
|
|
1908
|
-
"aria-valuemax":
|
|
1909
|
-
"aria-valuemin":
|
|
1910
|
-
"aria-valuenow":
|
|
1908
|
+
"aria-valuemax": s.valueMax,
|
|
1909
|
+
"aria-valuemin": s.valueMin,
|
|
1910
|
+
"aria-valuenow": s.valueNow,
|
|
1911
1911
|
children: e,
|
|
1912
1912
|
className: t,
|
|
1913
1913
|
"data-separator": u,
|
|
@@ -1925,16 +1925,16 @@ function Nt({
|
|
|
1925
1925
|
}
|
|
1926
1926
|
);
|
|
1927
1927
|
}
|
|
1928
|
-
|
|
1928
|
+
Ft.displayName = "Separator";
|
|
1929
1929
|
export {
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1930
|
+
Dt as Group,
|
|
1931
|
+
At as Panel,
|
|
1932
|
+
Ft as Separator,
|
|
1933
|
+
ut as isCoarsePointer,
|
|
1934
|
+
jt as useDefaultLayout,
|
|
1935
|
+
Vt as useGroupCallbackRef,
|
|
1936
|
+
Ut as useGroupRef,
|
|
1937
|
+
Wt as usePanelCallbackRef,
|
|
1938
|
+
Bt as usePanelRef
|
|
1939
1939
|
};
|
|
1940
1940
|
//# sourceMappingURL=react-resizable-panels.js.map
|