@marimo-team/islands 0.23.3-dev15 → 0.23.3-dev17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1129 -1111
- package/package.json +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +116 -5
- package/src/core/islands/bridge.ts +5 -1
- package/src/core/static/export-context.ts +43 -0
- package/src/plugins/core/__test__/trusted-url.test.ts +130 -18
- package/src/plugins/core/trusted-url.ts +23 -10
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +29 -1
- package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +34 -0
- package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +35 -2
package/dist/main.js
CHANGED
|
@@ -4012,21 +4012,21 @@ Defaulting to \`null\`.`;
|
|
|
4012
4012
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, r, c = {}) {
|
|
4013
4013
|
let { block: l = "nearest", inline: u = "nearest" } = c;
|
|
4014
4014
|
if (e === r) return;
|
|
4015
|
-
let d = e.scrollTop, f = e.scrollLeft, p = r.getBoundingClientRect(), m = e.getBoundingClientRect(), h = window.getComputedStyle(r), g = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : m.top, y = e === _ ? e.clientHeight : m.bottom, b = e === _ ? 0 : m.left, S = e === _ ? e.clientWidth : m.right, w = parseInt(h.scrollMarginTop, 10) || 0, T = parseInt(h.scrollMarginBottom, 10) || 0, E = parseInt(h.scrollMarginLeft, 10) || 0, O = parseInt(h.scrollMarginRight, 10) || 0, j = parseInt(g.scrollPaddingTop, 10) || 0, M = parseInt(g.scrollPaddingBottom, 10) || 0, I = parseInt(g.scrollPaddingLeft, 10) || 0, L = parseInt(g.scrollPaddingRight, 10) || 0, R = parseInt(g.borderTopWidth, 10) || 0, z = parseInt(g.borderBottomWidth, 10) || 0, B = parseInt(g.borderLeftWidth, 10) || 0, H = parseInt(g.borderRightWidth, 10) || 0, W = p.top - w, G = p.bottom + T, q = p.left - E,
|
|
4016
|
-
g.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
4017
|
-
let
|
|
4018
|
-
if (
|
|
4019
|
-
else if (
|
|
4020
|
-
else if (
|
|
4021
|
-
else if (
|
|
4022
|
-
let e2 = W - Z, r2 = G -
|
|
4015
|
+
let d = e.scrollTop, f = e.scrollLeft, p = r.getBoundingClientRect(), m = e.getBoundingClientRect(), h = window.getComputedStyle(r), g = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : m.top, y = e === _ ? e.clientHeight : m.bottom, b = e === _ ? 0 : m.left, S = e === _ ? e.clientWidth : m.right, w = parseInt(h.scrollMarginTop, 10) || 0, T = parseInt(h.scrollMarginBottom, 10) || 0, E = parseInt(h.scrollMarginLeft, 10) || 0, O = parseInt(h.scrollMarginRight, 10) || 0, j = parseInt(g.scrollPaddingTop, 10) || 0, M = parseInt(g.scrollPaddingBottom, 10) || 0, I = parseInt(g.scrollPaddingLeft, 10) || 0, L = parseInt(g.scrollPaddingRight, 10) || 0, R = parseInt(g.borderTopWidth, 10) || 0, z = parseInt(g.borderBottomWidth, 10) || 0, B = parseInt(g.borderLeftWidth, 10) || 0, H = parseInt(g.borderRightWidth, 10) || 0, W = p.top - w, G = p.bottom + T, q = p.left - E, D2 = p.right + O, O2 = e === _ ? 0 : B + H, k2 = e === _ ? 0 : R + z, A2 = e.offsetWidth - e.clientWidth - O2, j2 = e.offsetHeight - e.clientHeight - k2, Z = v + R + j, M2 = y - z - M - j2, N2 = b + B + I, P2 = S - H - L;
|
|
4016
|
+
g.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? N2 += A2 : P2 -= A2;
|
|
4017
|
+
let F2 = W < Z || G > M2, I2 = q < N2 || D2 > P2;
|
|
4018
|
+
if (F2 && l === "start") d += W - Z;
|
|
4019
|
+
else if (F2 && l === "center") d += (W + G) / 2 - (Z + M2) / 2;
|
|
4020
|
+
else if (F2 && l === "end") d += G - M2;
|
|
4021
|
+
else if (F2 && l === "nearest") {
|
|
4022
|
+
let e2 = W - Z, r2 = G - M2;
|
|
4023
4023
|
d += Math.abs(e2) <= Math.abs(r2) ? e2 : r2;
|
|
4024
4024
|
}
|
|
4025
|
-
if (
|
|
4026
|
-
else if (
|
|
4027
|
-
else if (
|
|
4028
|
-
else if (
|
|
4029
|
-
let e2 = q -
|
|
4025
|
+
if (I2 && u === "start") f += q - N2;
|
|
4026
|
+
else if (I2 && u === "center") f += (q + D2) / 2 - (N2 + P2) / 2;
|
|
4027
|
+
else if (I2 && u === "end") f += D2 - P2;
|
|
4028
|
+
else if (I2 && u === "nearest") {
|
|
4029
|
+
let e2 = q - N2, r2 = D2 - P2;
|
|
4030
4030
|
f += Math.abs(e2) <= Math.abs(r2) ? e2 : r2;
|
|
4031
4031
|
}
|
|
4032
4032
|
e.scrollTo({
|
|
@@ -7184,11 +7184,11 @@ Defaulting to \`null\`.`;
|
|
|
7184
7184
|
R[j] += W;
|
|
7185
7185
|
let G = $edcf132a9284368a$var$getMaxHeight(R, p, h, v, u, d, c.height, H, m, w, T);
|
|
7186
7186
|
y && y < G && (G = y), c.height = Math.min(c.height, G), R = $edcf132a9284368a$var$computePosition(r, p, c, E, z, _, h, v, b, S, m), W = $edcf132a9284368a$var$getDelta(j, R[j], c[M], p, m, d, h), R[j] += W;
|
|
7187
|
-
let q = {},
|
|
7188
|
-
q[j] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(
|
|
7189
|
-
let Z = I === "left" || I === "top" ? c[O] : 0,
|
|
7190
|
-
x: I === "top" || I === "bottom" ?
|
|
7191
|
-
y: I === "left" || I === "right" ?
|
|
7187
|
+
let q = {}, D2 = r[j] - R[j] - u[$edcf132a9284368a$var$AXIS[j]], O2 = D2 + 0.5 * r[M], k2 = b / 2 + S, A2 = $edcf132a9284368a$var$AXIS[j] === "left" ? (u.left ?? 0) + (u.right ?? 0) : (u.top ?? 0) + (u.bottom ?? 0), j2 = c[M] - A2 - b / 2 - S;
|
|
7188
|
+
q[j] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(O2, r[j] + b / 2 - (R[j] + u[$edcf132a9284368a$var$AXIS[j]]), r[j] + r[M] - b / 2 - (R[j] + u[$edcf132a9284368a$var$AXIS[j]])), k2, j2), { placement: I, crossPlacement: L } = E, b ? D2 = q[j] : L === "right" ? D2 += r[M] : L === "center" && (D2 += r[M] / 2);
|
|
7189
|
+
let Z = I === "left" || I === "top" ? c[O] : 0, M2 = {
|
|
7190
|
+
x: I === "top" || I === "bottom" ? D2 : Z,
|
|
7191
|
+
y: I === "left" || I === "right" ? D2 : Z
|
|
7192
7192
|
};
|
|
7193
7193
|
return {
|
|
7194
7194
|
position: R,
|
|
@@ -7196,7 +7196,7 @@ Defaulting to \`null\`.`;
|
|
|
7196
7196
|
arrowOffsetLeft: q.left,
|
|
7197
7197
|
arrowOffsetTop: q.top,
|
|
7198
7198
|
placement: I,
|
|
7199
|
-
triggerAnchorPoint:
|
|
7199
|
+
triggerAnchorPoint: M2
|
|
7200
7200
|
};
|
|
7201
7201
|
}
|
|
7202
7202
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -9056,8 +9056,8 @@ Defaulting to \`null\`.`;
|
|
|
9056
9056
|
e !== (0, import_react.useMemo)(() => r.segments.find((e2) => e2.isEditable), [
|
|
9057
9057
|
r.segments
|
|
9058
9058
|
]) && !r.isInvalid && (h = void 0);
|
|
9059
|
-
let G = $bdb11010cef70236$export$f680877a34711e37(), q = !r.isDisabled && !r.isReadOnly && e.isEditable,
|
|
9060
|
-
"aria-label": `${
|
|
9059
|
+
let G = $bdb11010cef70236$export$f680877a34711e37(), q = !r.isDisabled && !r.isReadOnly && e.isEditable, D2 = e.type === "literal" ? "" : f.of(e.type), O2 = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
9060
|
+
"aria-label": `${D2}${p ? `, ${p}` : ""}${m ? ", " : ""}`,
|
|
9061
9061
|
"aria-labelledby": m
|
|
9062
9062
|
});
|
|
9063
9063
|
if (e.type === "literal") return {
|
|
@@ -9065,16 +9065,16 @@ Defaulting to \`null\`.`;
|
|
|
9065
9065
|
"aria-hidden": true
|
|
9066
9066
|
}
|
|
9067
9067
|
};
|
|
9068
|
-
let
|
|
9068
|
+
let k2 = {
|
|
9069
9069
|
caretColor: "transparent"
|
|
9070
9070
|
};
|
|
9071
9071
|
if (d === "rtl") {
|
|
9072
|
-
|
|
9072
|
+
k2.unicodeBidi = "embed";
|
|
9073
9073
|
let r2 = v[e.type];
|
|
9074
|
-
(r2 === "numeric" || r2 === "2-digit") && (
|
|
9074
|
+
(r2 === "numeric" || r2 === "2-digit") && (k2.direction = "ltr");
|
|
9075
9075
|
}
|
|
9076
9076
|
return {
|
|
9077
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(S,
|
|
9077
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(S, O2, {
|
|
9078
9078
|
id: G,
|
|
9079
9079
|
...W,
|
|
9080
9080
|
"aria-invalid": r.isInvalid ? "true" : void 0,
|
|
@@ -9090,7 +9090,7 @@ Defaulting to \`null\`.`;
|
|
|
9090
9090
|
tabIndex: r.isDisabled ? void 0 : 0,
|
|
9091
9091
|
onKeyDown: E,
|
|
9092
9092
|
onFocus: B,
|
|
9093
|
-
style:
|
|
9093
|
+
style: k2,
|
|
9094
9094
|
onPointerDown(e2) {
|
|
9095
9095
|
e2.stopPropagation();
|
|
9096
9096
|
},
|
|
@@ -9362,11 +9362,27 @@ Defaulting to \`null\`.`;
|
|
|
9362
9362
|
let r = e.indexOf("/@file/");
|
|
9363
9363
|
return r === -1 ? null : e.slice(r);
|
|
9364
9364
|
}
|
|
9365
|
+
function isMarimoExportContext(e) {
|
|
9366
|
+
if (typeof e != "object" || !e) return false;
|
|
9367
|
+
let r = e;
|
|
9368
|
+
return !(r.trusted !== true || r.notebookCode !== void 0 && typeof r.notebookCode != "string");
|
|
9369
|
+
}
|
|
9370
|
+
function getMarimoExportContext() {
|
|
9371
|
+
let e = window == null ? void 0 : window.__MARIMO_EXPORT_CONTEXT__;
|
|
9372
|
+
return isMarimoExportContext(e) ? e : void 0;
|
|
9373
|
+
}
|
|
9374
|
+
function hasTrustedExportContext() {
|
|
9375
|
+
var _a3;
|
|
9376
|
+
return ((_a3 = getMarimoExportContext()) == null ? void 0 : _a3.trusted) === true;
|
|
9377
|
+
}
|
|
9365
9378
|
function isTrustedVirtualFileUrl(e) {
|
|
9366
|
-
return typeof e != "string" || e.length === 0 ? false : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || isSafeDataUrl(e)
|
|
9379
|
+
return typeof e != "string" || e.length === 0 ? false : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || isSafeDataUrl(e));
|
|
9380
|
+
}
|
|
9381
|
+
function hasNotebookTrustedDataUrlContext() {
|
|
9382
|
+
return store.get(hasRunAnyCellAtom) || hasTrustedExportContext();
|
|
9367
9383
|
}
|
|
9368
9384
|
function isSafeDataUrl(e) {
|
|
9369
|
-
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,");
|
|
9385
|
+
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? hasNotebookTrustedDataUrlContext() : false;
|
|
9370
9386
|
}
|
|
9371
9387
|
const experimental = {
|
|
9372
9388
|
invoke: async () => {
|
|
@@ -10174,7 +10190,7 @@ Defaulting to \`null\`.`;
|
|
|
10174
10190
|
h,
|
|
10175
10191
|
f,
|
|
10176
10192
|
p
|
|
10177
|
-
]), G = e.isInvalid || e.validationState === "invalid" || W, q = G ? "invalid" : null,
|
|
10193
|
+
]), G = e.isInvalid || e.validationState === "invalid" || W, q = G ? "invalid" : null, D2 = (0, import_react.useMemo)(() => g === "visible" ? d : $131cf43a05231e1e$var$unitDuration(d), [
|
|
10178
10194
|
g,
|
|
10179
10195
|
d
|
|
10180
10196
|
]);
|
|
@@ -10217,12 +10233,12 @@ Defaulting to \`null\`.`;
|
|
|
10217
10233
|
}));
|
|
10218
10234
|
},
|
|
10219
10235
|
focusNextPage() {
|
|
10220
|
-
let e2 = O.add(
|
|
10221
|
-
E($f62d864046160412$export$4f5203c0d889109e(T.add(
|
|
10236
|
+
let e2 = O.add(D2);
|
|
10237
|
+
E($f62d864046160412$export$4f5203c0d889109e(T.add(D2), f, p)), j($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(T, e2, D2, l, f, p), D2, l));
|
|
10222
10238
|
},
|
|
10223
10239
|
focusPreviousPage() {
|
|
10224
|
-
let e2 = O.subtract(
|
|
10225
|
-
E($f62d864046160412$export$4f5203c0d889109e(T.subtract(
|
|
10240
|
+
let e2 = O.subtract(D2);
|
|
10241
|
+
E($f62d864046160412$export$4f5203c0d889109e(T.subtract(D2), f, p)), j($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(T, e2, D2, l, f, p), D2, l));
|
|
10226
10242
|
},
|
|
10227
10243
|
focusSectionStart() {
|
|
10228
10244
|
d.days ? B(O) : d.weeks ? B($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(T, l)) : (d.months || d.years) && B($14e0f24ef4ac5c92$export$a5a3b454ada2268e(T));
|
|
@@ -10365,7 +10381,7 @@ Defaulting to \`null\`.`;
|
|
|
10365
10381
|
v,
|
|
10366
10382
|
p,
|
|
10367
10383
|
m
|
|
10368
|
-
]),
|
|
10384
|
+
]), D2 = e.isInvalid || e.validationState === "invalid" || q, O2 = D2 ? "invalid" : null;
|
|
10369
10385
|
return {
|
|
10370
10386
|
...j,
|
|
10371
10387
|
value: g,
|
|
@@ -10373,8 +10389,8 @@ Defaulting to \`null\`.`;
|
|
|
10373
10389
|
anchorDate: v,
|
|
10374
10390
|
setAnchorDate: R,
|
|
10375
10391
|
highlightedRange: z,
|
|
10376
|
-
validationState:
|
|
10377
|
-
isValueInvalid:
|
|
10392
|
+
validationState: O2,
|
|
10393
|
+
isValueInvalid: D2,
|
|
10378
10394
|
selectFocusedDate() {
|
|
10379
10395
|
B(j.focusedDate);
|
|
10380
10396
|
},
|
|
@@ -11595,9 +11611,9 @@ Defaulting to \`null\`.`;
|
|
|
11595
11611
|
e.maxGranularity,
|
|
11596
11612
|
_,
|
|
11597
11613
|
S
|
|
11598
|
-
]), [G, q] = (0, import_react.useState)(O), [
|
|
11599
|
-
(O !== G || S !==
|
|
11600
|
-
let
|
|
11614
|
+
]), [G, q] = (0, import_react.useState)(O), [D2, O2] = (0, import_react.useState)(b), [k2, A2] = (0, import_react.useState)(S);
|
|
11615
|
+
(O !== G || S !== k2 || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(b, D2)) && (j = new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O), q(O), O2(b), A2(S), M(j));
|
|
11616
|
+
let j2 = (r2) => {
|
|
11601
11617
|
if (!(e.isDisabled || e.isReadOnly)) if (r2 == null || r2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && r2.isCleared(W)) M(new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O)), T(null);
|
|
11602
11618
|
else if (!(r2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) r2 = $11d87f3f76e88657$export$b4a036af3fc0b032(r2, (g == null ? void 0 : g.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), M(new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O)), T(r2);
|
|
11603
11619
|
else {
|
|
@@ -11618,7 +11634,7 @@ Defaulting to \`null\`.`;
|
|
|
11618
11634
|
y,
|
|
11619
11635
|
O,
|
|
11620
11636
|
H
|
|
11621
|
-
]),
|
|
11637
|
+
]), M2 = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Z, j, z, B, b, r, _), [
|
|
11622
11638
|
Z,
|
|
11623
11639
|
z,
|
|
11624
11640
|
B,
|
|
@@ -11626,57 +11642,57 @@ Defaulting to \`null\`.`;
|
|
|
11626
11642
|
b,
|
|
11627
11643
|
r,
|
|
11628
11644
|
_
|
|
11629
|
-
]),
|
|
11630
|
-
|
|
11631
|
-
},
|
|
11645
|
+
]), N2 = (e2, r2) => {
|
|
11646
|
+
j2(j.cycle(e2, r2, H, W));
|
|
11647
|
+
}, P2 = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(w, p, m, h, L), [
|
|
11632
11648
|
w,
|
|
11633
11649
|
p,
|
|
11634
11650
|
m,
|
|
11635
11651
|
h,
|
|
11636
11652
|
L
|
|
11637
|
-
]),
|
|
11653
|
+
]), F2 = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11638
11654
|
...e,
|
|
11639
11655
|
value: w,
|
|
11640
|
-
builtinValidation:
|
|
11641
|
-
}),
|
|
11656
|
+
builtinValidation: P2
|
|
11657
|
+
}), I2 = F2.displayValidation.isInvalid, L2 = e.validationState || (I2 ? "invalid" : null);
|
|
11642
11658
|
return {
|
|
11643
|
-
...
|
|
11659
|
+
...F2,
|
|
11644
11660
|
value: O,
|
|
11645
11661
|
defaultValue: e.defaultValue ?? E,
|
|
11646
11662
|
dateValue: Z,
|
|
11647
11663
|
calendar: b,
|
|
11648
|
-
setValue:
|
|
11649
|
-
segments:
|
|
11664
|
+
setValue: j2,
|
|
11665
|
+
segments: M2,
|
|
11650
11666
|
dateFormatter: z,
|
|
11651
|
-
validationState:
|
|
11652
|
-
isInvalid:
|
|
11667
|
+
validationState: L2,
|
|
11668
|
+
isInvalid: I2,
|
|
11653
11669
|
granularity: _,
|
|
11654
11670
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11655
11671
|
isDisabled: u,
|
|
11656
11672
|
isReadOnly: d,
|
|
11657
11673
|
isRequired: f,
|
|
11658
11674
|
increment(e2) {
|
|
11659
|
-
|
|
11675
|
+
N2(e2, 1);
|
|
11660
11676
|
},
|
|
11661
11677
|
decrement(e2) {
|
|
11662
|
-
|
|
11678
|
+
N2(e2, -1);
|
|
11663
11679
|
},
|
|
11664
11680
|
incrementPage(e2) {
|
|
11665
|
-
|
|
11681
|
+
N2(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11666
11682
|
},
|
|
11667
11683
|
decrementPage(e2) {
|
|
11668
|
-
|
|
11684
|
+
N2(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11669
11685
|
},
|
|
11670
11686
|
incrementToMax(e2) {
|
|
11671
11687
|
let r2 = e2 === "hour" && S === "h12" ? 11 : j.getSegmentLimits(e2).maxValue;
|
|
11672
|
-
|
|
11688
|
+
j2(j.set(e2, r2, H));
|
|
11673
11689
|
},
|
|
11674
11690
|
decrementToMin(e2) {
|
|
11675
11691
|
let r2 = e2 === "hour" && S === "h12" ? 12 : j.getSegmentLimits(e2).minValue;
|
|
11676
|
-
|
|
11692
|
+
j2(j.set(e2, r2, H));
|
|
11677
11693
|
},
|
|
11678
11694
|
setSegment(e2, r2) {
|
|
11679
|
-
|
|
11695
|
+
j2(j.set(e2, r2, H));
|
|
11680
11696
|
},
|
|
11681
11697
|
confirmPlaceholder() {
|
|
11682
11698
|
if (!(e.isDisabled || e.isReadOnly) && j.isComplete(W)) {
|
|
@@ -11686,7 +11702,7 @@ Defaulting to \`null\`.`;
|
|
|
11686
11702
|
},
|
|
11687
11703
|
clearSegment(e2) {
|
|
11688
11704
|
let r2 = j;
|
|
11689
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)),
|
|
11705
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)), j2(r2);
|
|
11690
11706
|
},
|
|
11691
11707
|
formatValue(e2) {
|
|
11692
11708
|
return O ? new $fb18d541ea1ad717$export$ad991b66133851cf(r, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, L)).format(Z) : "";
|
|
@@ -14978,7 +14994,7 @@ Defaulting to \`null\`.`;
|
|
|
14978
14994
|
let m2 = get(l, e2);
|
|
14979
14995
|
if (m2) {
|
|
14980
14996
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
14981
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
14997
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : D2(e2, l2), f.mount && w();
|
|
14982
14998
|
}
|
|
14983
14999
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
14984
15000
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -15051,14 +15067,14 @@ Defaulting to \`null\`.`;
|
|
|
15051
15067
|
}, H = () => {
|
|
15052
15068
|
for (let e2 of p.unMount) {
|
|
15053
15069
|
let r2 = get(l, e2);
|
|
15054
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
15070
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && L2(e2);
|
|
15055
15071
|
}
|
|
15056
15072
|
p.unMount = /* @__PURE__ */ new Set();
|
|
15057
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
15073
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(M2(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
15058
15074
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
15059
15075
|
[e2]: r2
|
|
15060
15076
|
} : r2
|
|
15061
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
15077
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), D2 = (e2, r2, c2 = {}) => {
|
|
15062
15078
|
let u2 = get(l, e2), f2 = r2;
|
|
15063
15079
|
if (u2) {
|
|
15064
15080
|
let c3 = u2._f;
|
|
@@ -15072,12 +15088,12 @@ Defaulting to \`null\`.`;
|
|
|
15072
15088
|
})));
|
|
15073
15089
|
}
|
|
15074
15090
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && Z(e2);
|
|
15075
|
-
},
|
|
15091
|
+
}, O2 = (e2, r2, c2) => {
|
|
15076
15092
|
for (let u2 in r2) {
|
|
15077
15093
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
15078
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
15094
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? O2(f2, d2, c2) : D2(f2, d2, c2);
|
|
15079
15095
|
}
|
|
15080
|
-
},
|
|
15096
|
+
}, k2 = (e2, r2, m2 = {}) => {
|
|
15081
15097
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
15082
15098
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
15083
15099
|
name: e2,
|
|
@@ -15088,7 +15104,7 @@ Defaulting to \`null\`.`;
|
|
|
15088
15104
|
name: e2,
|
|
15089
15105
|
dirtyFields: getDirtyFields(u, d),
|
|
15090
15106
|
isDirty: W(e2, y2)
|
|
15091
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
15107
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? O2(e2, y2, m2) : D2(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
15092
15108
|
...c
|
|
15093
15109
|
}), _.values.next({
|
|
15094
15110
|
name: f.mount ? e2 : void 0,
|
|
@@ -15096,26 +15112,26 @@ Defaulting to \`null\`.`;
|
|
|
15096
15112
|
...d
|
|
15097
15113
|
}
|
|
15098
15114
|
});
|
|
15099
|
-
},
|
|
15115
|
+
}, A2 = async (e2) => {
|
|
15100
15116
|
f.mount = true;
|
|
15101
|
-
let u2 = e2.target, h2 = u2.name, S2 = true,
|
|
15117
|
+
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O3 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j3 = (e3) => {
|
|
15102
15118
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
15103
15119
|
};
|
|
15104
|
-
if (
|
|
15105
|
-
let u3, f2, M3 = O3(), z3 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT,
|
|
15106
|
-
set(d, h2, M3), z3 ? (
|
|
15107
|
-
let
|
|
15120
|
+
if (E2) {
|
|
15121
|
+
let u3, f2, M3 = O3(), z3 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT, H3 = !hasValidation(E2._f) && !r.resolver && !get(c.errors, h2) && !E2._f.deps || skipValidation(z3, get(c.touchedFields, h2), c.isSubmitted, y, v), W3 = isWatched(h2, p, z3);
|
|
15122
|
+
set(d, h2, M3), z3 ? (E2._f.onBlur && E2._f.onBlur(e2), m && m(0)) : E2._f.onChange && E2._f.onChange(e2);
|
|
15123
|
+
let G3 = I(h2, M3, z3, false), q2 = !isEmptyObject(G3) || W3;
|
|
15108
15124
|
if (!z3 && _.values.next({
|
|
15109
15125
|
name: h2,
|
|
15110
15126
|
type: e2.type,
|
|
15111
15127
|
values: {
|
|
15112
15128
|
...d
|
|
15113
15129
|
}
|
|
15114
|
-
}),
|
|
15130
|
+
}), H3) return g.isValid && (r.mode === "onBlur" && z3 ? w() : z3 || w()), q2 && _.state.next({
|
|
15115
15131
|
name: h2,
|
|
15116
|
-
...
|
|
15132
|
+
...W3 ? {} : G3
|
|
15117
15133
|
});
|
|
15118
|
-
if (!z3 &&
|
|
15134
|
+
if (!z3 && W3 && _.state.next({
|
|
15119
15135
|
...c
|
|
15120
15136
|
}), r.resolver) {
|
|
15121
15137
|
let { errors: e3 } = await R([
|
|
@@ -15127,12 +15143,12 @@ Defaulting to \`null\`.`;
|
|
|
15127
15143
|
}
|
|
15128
15144
|
} else T([
|
|
15129
15145
|
h2
|
|
15130
|
-
], true), u3 = (await validateField(
|
|
15146
|
+
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
15131
15147
|
h2
|
|
15132
15148
|
]), j3(M3), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
15133
|
-
S2 && (
|
|
15149
|
+
S2 && (E2._f.deps && Z(E2._f.deps), L(h2, f2, u3, G3));
|
|
15134
15150
|
}
|
|
15135
|
-
},
|
|
15151
|
+
}, j2 = (e2, r2) => {
|
|
15136
15152
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
15137
15153
|
}, Z = async (e2, u2 = {}) => {
|
|
15138
15154
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
@@ -15153,23 +15169,23 @@ Defaulting to \`null\`.`;
|
|
|
15153
15169
|
isValid: d2
|
|
15154
15170
|
} : {},
|
|
15155
15171
|
errors: c.errors
|
|
15156
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
15157
|
-
},
|
|
15172
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, j2, e2 ? m2 : p.mount), f2;
|
|
15173
|
+
}, M2 = (e2) => {
|
|
15158
15174
|
let r2 = {
|
|
15159
15175
|
...f.mount ? d : u
|
|
15160
15176
|
};
|
|
15161
15177
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
15162
|
-
},
|
|
15178
|
+
}, N2 = (e2, r2) => ({
|
|
15163
15179
|
invalid: !!get((r2 || c).errors, e2),
|
|
15164
15180
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
15165
15181
|
error: get((r2 || c).errors, e2),
|
|
15166
15182
|
isValidating: !!get(c.validatingFields, e2),
|
|
15167
15183
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
15168
|
-
}),
|
|
15184
|
+
}), P2 = (e2) => {
|
|
15169
15185
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
15170
15186
|
errors: e2 ? c.errors : {}
|
|
15171
15187
|
});
|
|
15172
|
-
},
|
|
15188
|
+
}, F2 = (e2, r2, u2) => {
|
|
15173
15189
|
let d2 = (get(l, e2, {
|
|
15174
15190
|
_f: {}
|
|
15175
15191
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -15182,9 +15198,9 @@ Defaulting to \`null\`.`;
|
|
|
15182
15198
|
errors: c.errors,
|
|
15183
15199
|
isValid: false
|
|
15184
15200
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
15185
|
-
},
|
|
15201
|
+
}, I2 = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
15186
15202
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
15187
|
-
}) : G(e2, r2, true),
|
|
15203
|
+
}) : G(e2, r2, true), L2 = (e2, f2 = {}) => {
|
|
15188
15204
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
15189
15205
|
_.values.next({
|
|
15190
15206
|
values: {
|
|
@@ -15196,9 +15212,9 @@ Defaulting to \`null\`.`;
|
|
|
15196
15212
|
isDirty: W()
|
|
15197
15213
|
} : {}
|
|
15198
15214
|
}), !f2.keepIsValid && w();
|
|
15199
|
-
},
|
|
15215
|
+
}, R2 = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
15200
15216
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
15201
|
-
},
|
|
15217
|
+
}, z2 = (e2, c2 = {}) => {
|
|
15202
15218
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
15203
15219
|
return set(l, e2, {
|
|
15204
15220
|
...d2 || {},
|
|
@@ -15212,7 +15228,7 @@ Defaulting to \`null\`.`;
|
|
|
15212
15228
|
mount: true,
|
|
15213
15229
|
...c2
|
|
15214
15230
|
}
|
|
15215
|
-
}), p.mount.add(e2), d2 ?
|
|
15231
|
+
}), p.mount.add(e2), d2 ? R2({
|
|
15216
15232
|
field: d2,
|
|
15217
15233
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
15218
15234
|
name: e2
|
|
@@ -15229,11 +15245,11 @@ Defaulting to \`null\`.`;
|
|
|
15229
15245
|
pattern: getRuleValue(c2.pattern)
|
|
15230
15246
|
} : {},
|
|
15231
15247
|
name: e2,
|
|
15232
|
-
onChange:
|
|
15233
|
-
onBlur:
|
|
15248
|
+
onChange: A2,
|
|
15249
|
+
onBlur: A2,
|
|
15234
15250
|
ref: (m3) => {
|
|
15235
15251
|
if (m3) {
|
|
15236
|
-
|
|
15252
|
+
z2(e2, c2), d2 = get(l, e2);
|
|
15237
15253
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
15238
15254
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
15239
15255
|
set(l, e2, {
|
|
@@ -15259,7 +15275,7 @@ Defaulting to \`null\`.`;
|
|
|
15259
15275
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
15260
15276
|
}
|
|
15261
15277
|
};
|
|
15262
|
-
},
|
|
15278
|
+
}, B2 = () => r.shouldFocusError && iterateFieldsByAction(l, j2, p.mount), V2 = (e2) => {
|
|
15263
15279
|
isBoolean(e2) && (_.state.next({
|
|
15264
15280
|
disabled: e2
|
|
15265
15281
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -15268,7 +15284,7 @@ Defaulting to \`null\`.`;
|
|
|
15268
15284
|
r3.disabled = u2._f.disabled || e2;
|
|
15269
15285
|
}));
|
|
15270
15286
|
}, 0, false));
|
|
15271
|
-
},
|
|
15287
|
+
}, H2 = (e2, u2) => async (f2) => {
|
|
15272
15288
|
let m2;
|
|
15273
15289
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
15274
15290
|
let h2 = cloneObject(d);
|
|
@@ -15290,7 +15306,7 @@ Defaulting to \`null\`.`;
|
|
|
15290
15306
|
}
|
|
15291
15307
|
} else u2 && await u2({
|
|
15292
15308
|
...c.errors
|
|
15293
|
-
}, f2),
|
|
15309
|
+
}, f2), B2(), setTimeout(B2);
|
|
15294
15310
|
if (_.state.next({
|
|
15295
15311
|
isSubmitted: true,
|
|
15296
15312
|
isSubmitting: false,
|
|
@@ -15298,11 +15314,11 @@ Defaulting to \`null\`.`;
|
|
|
15298
15314
|
submitCount: c.submitCount + 1,
|
|
15299
15315
|
errors: c.errors
|
|
15300
15316
|
}), m2) throw m2;
|
|
15301
|
-
},
|
|
15302
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
15317
|
+
}, U2 = (e2, r2 = {}) => {
|
|
15318
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? k2(e2, cloneObject(get(u, e2))) : (k2(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
15303
15319
|
...c
|
|
15304
15320
|
}));
|
|
15305
|
-
},
|
|
15321
|
+
}, W2 = (e2, m2 = {}) => {
|
|
15306
15322
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
15307
15323
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
15308
15324
|
if (m2.keepDirtyValues) {
|
|
@@ -15310,7 +15326,7 @@ Defaulting to \`null\`.`;
|
|
|
15310
15326
|
...p.mount,
|
|
15311
15327
|
...Object.keys(getDirtyFields(u, d))
|
|
15312
15328
|
]);
|
|
15313
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
15329
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : k2(r2, get(b2, r2));
|
|
15314
15330
|
} else {
|
|
15315
15331
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
15316
15332
|
let r2 = get(l, e3);
|
|
@@ -15355,25 +15371,25 @@ Defaulting to \`null\`.`;
|
|
|
15355
15371
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
15356
15372
|
isSubmitting: false
|
|
15357
15373
|
});
|
|
15358
|
-
},
|
|
15374
|
+
}, G2 = (e2, r2) => W2(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
15359
15375
|
return {
|
|
15360
15376
|
control: {
|
|
15361
|
-
register:
|
|
15362
|
-
unregister:
|
|
15363
|
-
getFieldState:
|
|
15364
|
-
handleSubmit:
|
|
15365
|
-
setError:
|
|
15377
|
+
register: z2,
|
|
15378
|
+
unregister: L2,
|
|
15379
|
+
getFieldState: N2,
|
|
15380
|
+
handleSubmit: H2,
|
|
15381
|
+
setError: F2,
|
|
15366
15382
|
_executeSchema: R,
|
|
15367
15383
|
_getWatch: G,
|
|
15368
15384
|
_getDirty: W,
|
|
15369
15385
|
_updateValid: w,
|
|
15370
15386
|
_removeUnmounted: H,
|
|
15371
15387
|
_updateFieldArray: E,
|
|
15372
|
-
_updateDisabledField:
|
|
15388
|
+
_updateDisabledField: R2,
|
|
15373
15389
|
_getFieldArray: q,
|
|
15374
|
-
_reset:
|
|
15390
|
+
_reset: W2,
|
|
15375
15391
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
15376
|
-
|
|
15392
|
+
G2(e2, r.resetOptions), _.state.next({
|
|
15377
15393
|
isLoading: false
|
|
15378
15394
|
});
|
|
15379
15395
|
}),
|
|
@@ -15383,7 +15399,7 @@ Defaulting to \`null\`.`;
|
|
|
15383
15399
|
...e2
|
|
15384
15400
|
};
|
|
15385
15401
|
},
|
|
15386
|
-
_disableForm:
|
|
15402
|
+
_disableForm: V2,
|
|
15387
15403
|
_subjects: _,
|
|
15388
15404
|
_proxyFormState: g,
|
|
15389
15405
|
_setErrors: j,
|
|
@@ -15425,16 +15441,16 @@ Defaulting to \`null\`.`;
|
|
|
15425
15441
|
}
|
|
15426
15442
|
},
|
|
15427
15443
|
trigger: Z,
|
|
15428
|
-
register:
|
|
15429
|
-
handleSubmit:
|
|
15430
|
-
watch:
|
|
15431
|
-
setValue:
|
|
15432
|
-
getValues:
|
|
15433
|
-
reset:
|
|
15434
|
-
resetField:
|
|
15435
|
-
clearErrors:
|
|
15436
|
-
unregister:
|
|
15437
|
-
setError:
|
|
15444
|
+
register: z2,
|
|
15445
|
+
handleSubmit: H2,
|
|
15446
|
+
watch: I2,
|
|
15447
|
+
setValue: k2,
|
|
15448
|
+
getValues: M2,
|
|
15449
|
+
reset: G2,
|
|
15450
|
+
resetField: U2,
|
|
15451
|
+
clearErrors: P2,
|
|
15452
|
+
unregister: L2,
|
|
15453
|
+
setError: F2,
|
|
15438
15454
|
setFocus: (e2, r2 = {}) => {
|
|
15439
15455
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
15440
15456
|
if (u2) {
|
|
@@ -15442,7 +15458,7 @@ Defaulting to \`null\`.`;
|
|
|
15442
15458
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
15443
15459
|
}
|
|
15444
15460
|
},
|
|
15445
|
-
getFieldState:
|
|
15461
|
+
getFieldState: N2
|
|
15446
15462
|
};
|
|
15447
15463
|
}
|
|
15448
15464
|
function useForm(e = {}) {
|
|
@@ -18604,14 +18620,14 @@ ${c}
|
|
|
18604
18620
|
}), B = C({
|
|
18605
18621
|
height: 0,
|
|
18606
18622
|
width: 0
|
|
18607
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
18623
|
+
}), H = U(), W = U(), G = C(0), q = C(null), D2 = C({
|
|
18608
18624
|
column: 0,
|
|
18609
18625
|
row: 0
|
|
18610
|
-
}),
|
|
18611
|
-
Y(x(b, $(
|
|
18626
|
+
}), O2 = U(), k2 = U(), A2 = C(false), j2 = C(0), Z = C(true), M2 = C(false), N2 = C(false);
|
|
18627
|
+
Y(x(b, $(j2), P(([e2, r2]) => !!r2)), () => {
|
|
18612
18628
|
D(Z, false);
|
|
18613
|
-
}), Y(x(ut(b, Z, B, z,
|
|
18614
|
-
D(
|
|
18629
|
+
}), Y(x(ut(b, Z, B, z, j2, M2), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
18630
|
+
D(M2, true), Ue(1, () => {
|
|
18615
18631
|
D(H, e2);
|
|
18616
18632
|
}), Et(x(h), () => {
|
|
18617
18633
|
D(r, [
|
|
@@ -18619,53 +18635,53 @@ ${c}
|
|
|
18619
18635
|
0
|
|
18620
18636
|
]), D(Z, true);
|
|
18621
18637
|
});
|
|
18622
|
-
}), F(x(
|
|
18623
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
18624
|
-
D(
|
|
18638
|
+
}), F(x(k2, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(k2), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
18639
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(D2, e2.gap), e2.scrollTop > 0 && (D(A2, true), Et(x(h, Kt(1)), (e3) => {
|
|
18640
|
+
D(A2, false);
|
|
18625
18641
|
}), D(m, {
|
|
18626
18642
|
top: e2.scrollTop
|
|
18627
18643
|
})));
|
|
18628
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
18644
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(D2, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
18629
18645
|
gap: c2,
|
|
18630
18646
|
item: r2,
|
|
18631
18647
|
scrollTop: l2,
|
|
18632
18648
|
viewport: e2
|
|
18633
|
-
}))),
|
|
18649
|
+
}))), O2), F(x(ut(V(I), l, V(D2, Or), V(B, xe), V(z, xe), V(q), V(L), V(A2), V(Z), V(j2)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
18634
18650
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
18635
18651
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
18636
18652
|
if (y2 === 0) {
|
|
18637
18653
|
let r3 = Ke(h2, e2);
|
|
18638
18654
|
return zr(En(r3, r3 + Math.max(p2 - 1, 0), f2));
|
|
18639
18655
|
}
|
|
18640
|
-
let S2 = io(b2, y2, g2),
|
|
18641
|
-
m2 ? r2 === 0 && c2 === 0 && p2 > 0 ? (
|
|
18642
|
-
let
|
|
18656
|
+
let S2 = io(b2, y2, g2), w2, T2;
|
|
18657
|
+
m2 ? r2 === 0 && c2 === 0 && p2 > 0 ? (w2 = 0, T2 = p2 - 1) : (w2 = S2 * we((r2 + _2) / (v2 + _2)), T2 = S2 * Rn((c2 + _2) / (v2 + _2)) - 1, T2 = Oe(e2 - 1, re(T2, S2 - 1)), w2 = Oe(T2, re(0, w2))) : (w2 = 0, T2 = -1);
|
|
18658
|
+
let E2 = En(w2, T2, f2), { bottom: O3, top: j3 } = Bn(d2, l2, u2, E2), M3 = Rn(e2 / S2);
|
|
18643
18659
|
return {
|
|
18644
18660
|
bottom: O3,
|
|
18645
18661
|
itemHeight: v2,
|
|
18646
|
-
items:
|
|
18662
|
+
items: E2,
|
|
18647
18663
|
itemWidth: y2,
|
|
18648
18664
|
offsetBottom: M3 * v2 + (M3 - 1) * _2 - O3,
|
|
18649
18665
|
offsetTop: j3,
|
|
18650
18666
|
top: j3
|
|
18651
18667
|
};
|
|
18652
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
18668
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, D2), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
18653
18669
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
18654
18670
|
return [
|
|
18655
18671
|
d2,
|
|
18656
18672
|
u2
|
|
18657
18673
|
];
|
|
18658
18674
|
}), J(ce)), r);
|
|
18659
|
-
let
|
|
18660
|
-
F(x(h, $(
|
|
18661
|
-
let
|
|
18675
|
+
let P2 = C(false);
|
|
18676
|
+
F(x(h, $(P2), k(([e2, r2]) => r2 || e2 !== 0)), P2);
|
|
18677
|
+
let F2 = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(P2), P(([[e2, r2], c2]) => {
|
|
18662
18678
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
18663
18679
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
18664
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
18680
|
+
}), k(([[, e2]]) => e2 - 1), J())), I2 = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), L2 = bt(x(V(R), $(A2), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
18665
18681
|
endIndex: e2[e2.length - 1].index,
|
|
18666
18682
|
startIndex: e2[0].index
|
|
18667
18683
|
})), J(An), Gt(0)));
|
|
18668
|
-
F(
|
|
18684
|
+
F(L2, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, D2), k(([e2, r2, c2, l2, u2]) => {
|
|
18669
18685
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
18670
18686
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
18671
18687
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -18674,7 +18690,7 @@ ${c}
|
|
|
18674
18690
|
top: g2
|
|
18675
18691
|
};
|
|
18676
18692
|
})), m);
|
|
18677
|
-
let
|
|
18693
|
+
let R2 = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
18678
18694
|
return F(x(j, k((e2) => ({
|
|
18679
18695
|
height: e2.visibleHeight,
|
|
18680
18696
|
width: e2.visibleWidth
|
|
@@ -18683,13 +18699,13 @@ ${c}
|
|
|
18683
18699
|
data: q,
|
|
18684
18700
|
deviation: G,
|
|
18685
18701
|
footerHeight: u,
|
|
18686
|
-
gap:
|
|
18702
|
+
gap: D2,
|
|
18687
18703
|
headerHeight: d,
|
|
18688
18704
|
increaseViewportBy: e,
|
|
18689
18705
|
initialItemCount: L,
|
|
18690
18706
|
itemDimensions: B,
|
|
18691
18707
|
overscan: c,
|
|
18692
|
-
restoreStateFrom:
|
|
18708
|
+
restoreStateFrom: k2,
|
|
18693
18709
|
scrollBy: f,
|
|
18694
18710
|
scrollContainerState: p,
|
|
18695
18711
|
scrollHeight: W,
|
|
@@ -18705,16 +18721,16 @@ ${c}
|
|
|
18705
18721
|
windowViewportRect: j,
|
|
18706
18722
|
...y,
|
|
18707
18723
|
gridState: R,
|
|
18708
|
-
horizontalDirection:
|
|
18709
|
-
initialTopMostItemIndex:
|
|
18710
|
-
totalListHeight:
|
|
18724
|
+
horizontalDirection: N2,
|
|
18725
|
+
initialTopMostItemIndex: j2,
|
|
18726
|
+
totalListHeight: R2,
|
|
18711
18727
|
...v,
|
|
18712
|
-
endReached:
|
|
18728
|
+
endReached: F2,
|
|
18713
18729
|
propsReady: S,
|
|
18714
|
-
rangeChanged:
|
|
18715
|
-
startReached:
|
|
18716
|
-
stateChanged:
|
|
18717
|
-
stateRestoreInProgress:
|
|
18730
|
+
rangeChanged: L2,
|
|
18731
|
+
startReached: I2,
|
|
18732
|
+
stateChanged: O2,
|
|
18733
|
+
stateRestoreInProgress: A2,
|
|
18718
18734
|
...M
|
|
18719
18735
|
};
|
|
18720
18736
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -18952,20 +18968,20 @@ ${c}
|
|
|
18952
18968
|
defaultProp: G,
|
|
18953
18969
|
onChange: _
|
|
18954
18970
|
}, r[22] = _, r[23] = b, r[24] = G, r[25] = q) : q = r[25];
|
|
18955
|
-
let [
|
|
18956
|
-
r[26] === y ?
|
|
18971
|
+
let [D2, O2] = useControllableState(q), k2 = D2 === void 0 ? false : D2, A2;
|
|
18972
|
+
r[26] === y ? A2 = r[27] : (A2 = (e2) => {
|
|
18957
18973
|
y == null ? void 0 : y(e2);
|
|
18958
|
-
}, r[26] = y, r[27] =
|
|
18959
|
-
let
|
|
18960
|
-
r[28] !== f || r[29] !==
|
|
18974
|
+
}, r[26] = y, r[27] = A2);
|
|
18975
|
+
let j2;
|
|
18976
|
+
r[28] !== f || r[29] !== A2 || r[30] !== L ? (j2 = {
|
|
18961
18977
|
prop: L,
|
|
18962
18978
|
defaultProp: f,
|
|
18963
|
-
onChange:
|
|
18964
|
-
}, r[28] = f, r[29] =
|
|
18965
|
-
let [Z,
|
|
18966
|
-
r[32] === Z ?
|
|
18967
|
-
let
|
|
18968
|
-
r[34] !== g || r[35] !== R || r[36] !==
|
|
18979
|
+
onChange: A2
|
|
18980
|
+
}, r[28] = f, r[29] = A2, r[30] = L, r[31] = j2) : j2 = r[31];
|
|
18981
|
+
let [Z, M2] = useControllableState(j2), N2;
|
|
18982
|
+
r[32] === Z ? N2 = r[33] : (N2 = (e2) => Array.isArray(Z) ? Z.includes(e2) : Z === e2, r[32] = Z, r[33] = N2);
|
|
18983
|
+
let P2 = N2, F2;
|
|
18984
|
+
r[34] !== g || r[35] !== R || r[36] !== O2 || r[37] !== M2 || r[38] !== Z ? (F2 = (e2) => {
|
|
18969
18985
|
let r2 = e2;
|
|
18970
18986
|
if (R) if (Array.isArray(Z)) if (Z.includes(r2)) {
|
|
18971
18987
|
let c2 = Z.filter((r3) => r3 !== e2);
|
|
@@ -18978,91 +18994,91 @@ ${c}
|
|
|
18978
18994
|
r2
|
|
18979
18995
|
];
|
|
18980
18996
|
else Z === e2 && (r2 = null);
|
|
18981
|
-
|
|
18982
|
-
}, r[34] = g, r[35] = R, r[36] =
|
|
18983
|
-
let
|
|
18984
|
-
r[40] !== W || r[41] !== m || r[42] !== R || r[43] !== S || r[44] !== Z ? (
|
|
18985
|
-
let
|
|
18986
|
-
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18987
|
-
let I2;
|
|
18988
|
-
r[47] === u ? I2 = r[48] : (I2 = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", u), r[47] = u, r[48] = I2);
|
|
18989
|
-
let R2;
|
|
18990
|
-
r[49] === P2 ? R2 = r[50] : (R2 = P2(), r[49] = P2, r[50] = R2);
|
|
18991
|
-
let z2;
|
|
18992
|
-
r[51] === R2 ? z2 = r[52] : (z2 = (0, import_jsx_runtime.jsx)("span", {
|
|
18993
|
-
className: "truncate flex-1 min-w-0",
|
|
18994
|
-
children: R2
|
|
18995
|
-
}), r[51] = R2, r[52] = z2);
|
|
18997
|
+
M2(r2), (g ?? R) || O2(false);
|
|
18998
|
+
}, r[34] = g, r[35] = R, r[36] = O2, r[37] = M2, r[38] = Z, r[39] = F2) : F2 = r[39];
|
|
18999
|
+
let I2 = F2, L2;
|
|
19000
|
+
r[40] !== W || r[41] !== m || r[42] !== R || r[43] !== S || r[44] !== Z ? (L2 = () => R && W && S ? S : Z == null ? S ?? "--" : Array.isArray(Z) ? Z.length === 0 ? S ?? "--" : Z.length === 1 && m !== void 0 ? m(Z[0]) : `${Z.length} selected` : m === void 0 ? S ?? "--" : m(Z), r[40] = W, r[41] = m, r[42] = R, r[43] = S, r[44] = Z, r[45] = L2) : L2 = r[45];
|
|
19001
|
+
let R2 = L2, z2;
|
|
19002
|
+
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z2 = cn("relative"), r[46] = z2) : z2 = r[46];
|
|
18996
19003
|
let B2;
|
|
18997
|
-
r[
|
|
19004
|
+
r[47] === u ? B2 = r[48] : (B2 = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", u), r[47] = u, r[48] = B2);
|
|
19005
|
+
let H2;
|
|
19006
|
+
r[49] === R2 ? H2 = r[50] : (H2 = R2(), r[49] = R2, r[50] = H2);
|
|
19007
|
+
let U2;
|
|
19008
|
+
r[51] === H2 ? U2 = r[52] : (U2 = (0, import_jsx_runtime.jsx)("span", {
|
|
19009
|
+
className: "truncate flex-1 min-w-0",
|
|
19010
|
+
children: H2
|
|
19011
|
+
}), r[51] = H2, r[52] = U2);
|
|
19012
|
+
let W2;
|
|
19013
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W2 = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
18998
19014
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
18999
|
-
}), r[53] =
|
|
19000
|
-
let
|
|
19001
|
-
r[54] !==
|
|
19015
|
+
}), r[53] = W2) : W2 = r[53];
|
|
19016
|
+
let G2;
|
|
19017
|
+
r[54] !== k2 || r[55] !== B2 || r[56] !== U2 ? (G2 = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
19002
19018
|
asChild: true,
|
|
19003
19019
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
19004
|
-
className:
|
|
19005
|
-
"aria-expanded":
|
|
19020
|
+
className: B2,
|
|
19021
|
+
"aria-expanded": k2,
|
|
19006
19022
|
children: [
|
|
19007
|
-
|
|
19008
|
-
|
|
19023
|
+
U2,
|
|
19024
|
+
W2
|
|
19009
19025
|
]
|
|
19010
19026
|
})
|
|
19011
|
-
}), r[54] =
|
|
19012
|
-
let
|
|
19013
|
-
r[58] !== B || r[59] !== v || r[60] !== T ? (
|
|
19027
|
+
}), r[54] = k2, r[55] = B2, r[56] = U2, r[57] = G2) : G2 = r[57];
|
|
19028
|
+
let K2;
|
|
19029
|
+
r[58] !== B || r[59] !== v || r[60] !== T ? (K2 = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
19014
19030
|
placeholder: B,
|
|
19015
19031
|
rootClassName: "px-1 h-8",
|
|
19016
19032
|
autoFocus: true,
|
|
19017
19033
|
value: T,
|
|
19018
19034
|
onValueChange: v
|
|
19019
|
-
}), r[58] = B, r[59] = v, r[60] = T, r[61] =
|
|
19020
|
-
let
|
|
19021
|
-
r[62] === H ?
|
|
19035
|
+
}), r[58] = B, r[59] = v, r[60] = T, r[61] = K2) : K2 = r[61];
|
|
19036
|
+
let q2;
|
|
19037
|
+
r[62] === H ? q2 = r[63] : (q2 = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
19022
19038
|
children: H
|
|
19023
|
-
}), r[62] = H, r[63] =
|
|
19024
|
-
let
|
|
19025
|
-
r[64] !==
|
|
19026
|
-
isSelected:
|
|
19027
|
-
onSelect:
|
|
19028
|
-
}, r[64] =
|
|
19029
|
-
let
|
|
19030
|
-
r[67] !== c || r[68] !==
|
|
19031
|
-
value:
|
|
19039
|
+
}), r[62] = H, r[63] = q2);
|
|
19040
|
+
let J2;
|
|
19041
|
+
r[64] !== I2 || r[65] !== P2 ? (J2 = {
|
|
19042
|
+
isSelected: P2,
|
|
19043
|
+
onSelect: I2
|
|
19044
|
+
}, r[64] = I2, r[65] = P2, r[66] = J2) : J2 = r[66];
|
|
19045
|
+
let Y2;
|
|
19046
|
+
r[67] !== c || r[68] !== J2 ? (Y2 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
19047
|
+
value: J2,
|
|
19032
19048
|
children: c
|
|
19033
|
-
}), r[67] = c, r[68] =
|
|
19034
|
-
let
|
|
19035
|
-
r[70] !==
|
|
19049
|
+
}), r[67] = c, r[68] = J2, r[69] = Y2) : Y2 = r[69];
|
|
19050
|
+
let X2;
|
|
19051
|
+
r[70] !== q2 || r[71] !== Y2 ? (X2 = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
19036
19052
|
className: "max-h-60 py-.5",
|
|
19037
19053
|
children: [
|
|
19038
|
-
|
|
19039
|
-
|
|
19054
|
+
q2,
|
|
19055
|
+
Y2
|
|
19040
19056
|
]
|
|
19041
|
-
}), r[70] =
|
|
19042
|
-
let
|
|
19043
|
-
r[73] !== h || r[74] !== z || r[75] !==
|
|
19057
|
+
}), r[70] = q2, r[71] = Y2, r[72] = X2) : X2 = r[72];
|
|
19058
|
+
let Z2;
|
|
19059
|
+
r[73] !== h || r[74] !== z || r[75] !== K2 || r[76] !== X2 ? (Z2 = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
19044
19060
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
19045
19061
|
align: "start",
|
|
19046
19062
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
19047
19063
|
filter: h,
|
|
19048
19064
|
shouldFilter: z,
|
|
19049
19065
|
children: [
|
|
19050
|
-
|
|
19051
|
-
|
|
19066
|
+
K2,
|
|
19067
|
+
X2
|
|
19052
19068
|
]
|
|
19053
19069
|
})
|
|
19054
|
-
}), r[73] = h, r[74] = z, r[75] =
|
|
19055
|
-
let
|
|
19056
|
-
r[78] !==
|
|
19057
|
-
open:
|
|
19058
|
-
onOpenChange:
|
|
19070
|
+
}), r[73] = h, r[74] = z, r[75] = K2, r[76] = X2, r[77] = Z2) : Z2 = r[77];
|
|
19071
|
+
let Q2;
|
|
19072
|
+
r[78] !== k2 || r[79] !== O2 || r[80] !== G2 || r[81] !== Z2 ? (Q2 = (0, import_jsx_runtime.jsxs)(Popover$1, {
|
|
19073
|
+
open: k2,
|
|
19074
|
+
onOpenChange: O2,
|
|
19059
19075
|
children: [
|
|
19060
|
-
|
|
19061
|
-
|
|
19076
|
+
G2,
|
|
19077
|
+
Z2
|
|
19062
19078
|
]
|
|
19063
|
-
}), r[78] =
|
|
19064
|
-
let
|
|
19065
|
-
r[83] !== W || r[84] !== l || r[85] !== m || r[86] !==
|
|
19079
|
+
}), r[78] = k2, r[79] = O2, r[80] = G2, r[81] = Z2, r[82] = Q2) : Q2 = r[82];
|
|
19080
|
+
let $2;
|
|
19081
|
+
r[83] !== W || r[84] !== l || r[85] !== m || r[86] !== I2 || r[87] !== R || r[88] !== Z ? ($2 = R && W && (0, import_jsx_runtime.jsx)("div", {
|
|
19066
19082
|
className: cn("flex flex-col gap-1 items-start", l),
|
|
19067
19083
|
children: Array.isArray(Z) && Z.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
19068
19084
|
variant: "secondary",
|
|
@@ -19070,22 +19086,22 @@ ${c}
|
|
|
19070
19086
|
(m == null ? void 0 : m(e2)) ?? String(e2),
|
|
19071
19087
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
19072
19088
|
onClick: () => {
|
|
19073
|
-
|
|
19089
|
+
I2(e2);
|
|
19074
19090
|
},
|
|
19075
19091
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
19076
19092
|
})
|
|
19077
19093
|
]
|
|
19078
19094
|
}, String(e2)))
|
|
19079
|
-
}), r[83] = W, r[84] = l, r[85] = m, r[86] =
|
|
19080
|
-
let
|
|
19081
|
-
return r[90] !== w || r[91] !==
|
|
19082
|
-
className:
|
|
19095
|
+
}), r[83] = W, r[84] = l, r[85] = m, r[86] = I2, r[87] = R, r[88] = Z, r[89] = $2) : $2 = r[89];
|
|
19096
|
+
let e4;
|
|
19097
|
+
return r[90] !== w || r[91] !== Q2 || r[92] !== $2 ? (e4 = (0, import_jsx_runtime.jsxs)("div", {
|
|
19098
|
+
className: z2,
|
|
19083
19099
|
...w,
|
|
19084
19100
|
children: [
|
|
19085
|
-
|
|
19086
|
-
|
|
19101
|
+
Q2,
|
|
19102
|
+
$2
|
|
19087
19103
|
]
|
|
19088
|
-
}), r[90] = w, r[91] =
|
|
19104
|
+
}), r[90] = w, r[91] = Q2, r[92] = $2, r[93] = e4) : e4 = r[93], e4;
|
|
19089
19105
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
19090
19106
|
let c = (0, import_compiler_runtime$84.c)(17), { children: l, className: u, value: d, onSelect: f, disabled: m } = e, h = typeof d == "object" && "value" in d ? d.value : String(d), g = import_react.use(ComboboxContext), _;
|
|
19091
19107
|
c[0] === u ? _ = c[1] : (_ = cn("pl-6 m-1 py-1", u), c[0] = u, c[1] = _);
|
|
@@ -22159,53 +22175,53 @@ ${c}
|
|
|
22159
22175
|
className: "text-muted-foreground text-xs",
|
|
22160
22176
|
children: "|"
|
|
22161
22177
|
}), r[24] = q) : q = r[24];
|
|
22162
|
-
let
|
|
22163
|
-
r[25] === E ?
|
|
22164
|
-
let
|
|
22165
|
-
r[27] ===
|
|
22166
|
-
let
|
|
22167
|
-
r[29] !==
|
|
22178
|
+
let D2;
|
|
22179
|
+
r[25] === E ? D2 = r[26] : (D2 = () => E(PANEL_TYPES.COLUMN_EXPLORER), r[25] = E, r[26] = D2);
|
|
22180
|
+
let O2 = R === PANEL_TYPES.COLUMN_EXPLORER ? activeClassName : inactiveClassName, k2;
|
|
22181
|
+
r[27] === O2 ? k2 = r[28] : (k2 = cn(tabTriggerClassName, O2), r[27] = O2, r[28] = k2);
|
|
22182
|
+
let A2;
|
|
22183
|
+
r[29] !== k2 || r[30] !== D2 ? (A2 = (0, import_jsx_runtime.jsx)(Button, {
|
|
22168
22184
|
variant: "text",
|
|
22169
22185
|
size: "xs",
|
|
22170
|
-
onClick:
|
|
22171
|
-
className:
|
|
22186
|
+
onClick: D2,
|
|
22187
|
+
className: k2,
|
|
22172
22188
|
children: "Columns"
|
|
22173
|
-
}), r[29] =
|
|
22174
|
-
let
|
|
22175
|
-
r[32] !==
|
|
22189
|
+
}), r[29] = k2, r[30] = D2, r[31] = A2) : A2 = r[31];
|
|
22190
|
+
let j2;
|
|
22191
|
+
r[32] !== A2 || r[33] !== G ? (j2 = (0, import_jsx_runtime.jsx)(Fill, {
|
|
22176
22192
|
name: SlotNames.CONTEXT_AWARE_PANEL_HEADER,
|
|
22177
22193
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
22178
22194
|
className: "flex items-center gap-1",
|
|
22179
22195
|
children: [
|
|
22180
22196
|
G,
|
|
22181
22197
|
q,
|
|
22182
|
-
|
|
22198
|
+
A2
|
|
22183
22199
|
]
|
|
22184
22200
|
})
|
|
22185
|
-
}), r[32] =
|
|
22201
|
+
}), r[32] = A2, r[33] = G, r[34] = j2) : j2 = r[34];
|
|
22186
22202
|
let Z;
|
|
22187
22203
|
r[35] === M ? Z = r[36] : (Z = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
22188
22204
|
value: PANEL_TYPES.ROW_VIEWER,
|
|
22189
22205
|
className: "flex-1 overflow-auto",
|
|
22190
22206
|
children: M
|
|
22191
22207
|
}), r[35] = M, r[36] = Z);
|
|
22192
|
-
let
|
|
22193
|
-
r[37] === L ?
|
|
22208
|
+
let M2;
|
|
22209
|
+
r[37] === L ? M2 = r[38] : (M2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
22194
22210
|
value: PANEL_TYPES.COLUMN_EXPLORER,
|
|
22195
22211
|
className: "flex-1 overflow-auto",
|
|
22196
22212
|
children: L
|
|
22197
|
-
}), r[37] = L, r[38] =
|
|
22198
|
-
let
|
|
22199
|
-
return r[39] !== R || r[40] !==
|
|
22213
|
+
}), r[37] = L, r[38] = M2);
|
|
22214
|
+
let N2;
|
|
22215
|
+
return r[39] !== R || r[40] !== j2 || r[41] !== Z || r[42] !== M2 || r[43] !== z ? (N2 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
22200
22216
|
value: R,
|
|
22201
22217
|
onValueChange: z,
|
|
22202
22218
|
className: "flex flex-col min-w-[350px]",
|
|
22203
22219
|
children: [
|
|
22204
|
-
|
|
22220
|
+
j2,
|
|
22205
22221
|
Z,
|
|
22206
|
-
|
|
22222
|
+
M2
|
|
22207
22223
|
]
|
|
22208
|
-
}), r[39] = R, r[40] =
|
|
22224
|
+
}), r[39] = R, r[40] = j2, r[41] = Z, r[42] = M2, r[43] = z, r[44] = N2) : N2 = r[44], N2;
|
|
22209
22225
|
};
|
|
22210
22226
|
var import_compiler_runtime$66 = require_compiler_runtime();
|
|
22211
22227
|
function useEffectSkipFirstRender(e, r) {
|
|
@@ -22930,8 +22946,8 @@ ${c}
|
|
|
22930
22946
|
_.pageSize,
|
|
22931
22947
|
_.pageIndex
|
|
22932
22948
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
22933
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
22934
|
-
r[48] !== w || r[49] !== u || r[50] !== y || r[51] !== m ? (
|
|
22949
|
+
let { data: W, error: G, isPending: q, isFetching: D2 } = useAsyncData(z, H), O2;
|
|
22950
|
+
r[48] !== w || r[49] !== u || r[50] !== y || r[51] !== m ? (O2 = async (e2) => ({
|
|
22935
22951
|
rows: await loadTableData((await u({
|
|
22936
22952
|
page_number: e2,
|
|
22937
22953
|
page_size: 1,
|
|
@@ -22940,38 +22956,38 @@ ${c}
|
|
|
22940
22956
|
filters: filtersToFilterGroup(w),
|
|
22941
22957
|
max_columns: null
|
|
22942
22958
|
})).data)
|
|
22943
|
-
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] =
|
|
22944
|
-
let
|
|
22945
|
-
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
22959
|
+
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] = O2) : O2 = r[52];
|
|
22960
|
+
let k2 = O2, A2;
|
|
22961
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A2 = () => {
|
|
22946
22962
|
v(_temp4$6);
|
|
22947
|
-
}, r[53] =
|
|
22948
|
-
let
|
|
22949
|
-
r[54] ===
|
|
22950
|
-
|
|
22951
|
-
], r[54] =
|
|
22952
|
-
let
|
|
22953
|
-
r[56] === e ?
|
|
22963
|
+
}, r[53] = A2) : A2 = r[53];
|
|
22964
|
+
let j2 = W == null ? void 0 : W.totalRows, Z;
|
|
22965
|
+
r[54] === j2 ? Z = r[55] : (Z = [
|
|
22966
|
+
j2
|
|
22967
|
+
], r[54] = j2, r[55] = Z), (0, import_react.useEffect)(A2, Z);
|
|
22968
|
+
let M2;
|
|
22969
|
+
r[56] === e ? M2 = r[57] : (M2 = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
22954
22970
|
data: null,
|
|
22955
22971
|
stats: {},
|
|
22956
22972
|
bin_values: {},
|
|
22957
22973
|
value_counts: {},
|
|
22958
22974
|
show_charts: false
|
|
22959
|
-
} : e.get_column_summaries({}), r[56] = e, r[57] =
|
|
22960
|
-
let
|
|
22961
|
-
r[58] !== w || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== y ? (
|
|
22975
|
+
} : e.get_column_summaries({}), r[56] = e, r[57] = M2);
|
|
22976
|
+
let N2;
|
|
22977
|
+
r[58] !== w || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== y ? (N2 = [
|
|
22962
22978
|
e.get_column_summaries,
|
|
22963
22979
|
e.showColumnSummaries,
|
|
22964
22980
|
w,
|
|
22965
22981
|
y,
|
|
22966
22982
|
e.totalRows,
|
|
22967
22983
|
e.data
|
|
22968
|
-
], r[58] = w, r[59] = e.data, r[60] = e.get_column_summaries, r[61] = e.showColumnSummaries, r[62] = e.totalRows, r[63] = y, r[64] =
|
|
22969
|
-
let { data:
|
|
22970
|
-
if (r[65] ===
|
|
22971
|
-
|
|
22972
|
-
},
|
|
22973
|
-
|
|
22974
|
-
], r[65] =
|
|
22984
|
+
], r[58] = w, r[59] = e.data, r[60] = e.get_column_summaries, r[61] = e.showColumnSummaries, r[62] = e.totalRows, r[63] = y, r[64] = N2) : N2 = r[64];
|
|
22985
|
+
let { data: P2, error: F2 } = useAsyncData(M2, N2), I2, L2;
|
|
22986
|
+
if (r[65] === F2 ? (I2 = r[66], L2 = r[67]) : (I2 = () => {
|
|
22987
|
+
F2 && Logger.error(F2);
|
|
22988
|
+
}, L2 = [
|
|
22989
|
+
F2
|
|
22990
|
+
], r[65] = F2, r[66] = I2, r[67] = L2), (0, import_react.useEffect)(I2, L2), q) {
|
|
22975
22991
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
22976
22992
|
return r[68] === c2 ? l2 = r[69] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
22977
22993
|
milliseconds: 200,
|
|
@@ -22980,7 +22996,7 @@ ${c}
|
|
|
22980
22996
|
})
|
|
22981
22997
|
}), r[68] = c2, r[69] = l2), l2;
|
|
22982
22998
|
}
|
|
22983
|
-
let
|
|
22999
|
+
let R2 = null;
|
|
22984
23000
|
if (G) {
|
|
22985
23001
|
Logger.error(G);
|
|
22986
23002
|
let e2;
|
|
@@ -22996,59 +23012,59 @@ ${c}
|
|
|
22996
23012
|
children: G.message || "An unknown error occurred"
|
|
22997
23013
|
})
|
|
22998
23014
|
]
|
|
22999
|
-
}), r[70] = G, r[71] = e2),
|
|
23015
|
+
}), r[70] = G, r[71] = e2), R2 = e2;
|
|
23000
23016
|
}
|
|
23001
|
-
let
|
|
23002
|
-
r[72] === O ?
|
|
23017
|
+
let z2;
|
|
23018
|
+
r[72] === O ? z2 = r[73] : (z2 = () => {
|
|
23003
23019
|
j(!O);
|
|
23004
|
-
}, r[72] = O, r[73] =
|
|
23005
|
-
let
|
|
23006
|
-
r[74] !== l || r[75] !==
|
|
23020
|
+
}, r[72] = O, r[73] = z2);
|
|
23021
|
+
let B2 = z2, V2 = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, H2 = W == null ? void 0 : W.rawRows, U2 = D2 && !q, W2 = (W == null ? void 0 : W.totalRows) ?? e.totalRows, G2 = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, K2 = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, q2;
|
|
23022
|
+
r[74] !== l || r[75] !== P2 || r[76] !== O || r[77] !== w || r[78] !== k2 || r[79] !== _ || r[80] !== e || r[81] !== y || r[82] !== m || r[83] !== V2 || r[84] !== H2 || r[85] !== U2 || r[86] !== W2 || r[87] !== G2 || r[88] !== K2 || r[89] !== B2 ? (q2 = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
23007
23023
|
...e,
|
|
23008
|
-
data:
|
|
23009
|
-
rawData:
|
|
23010
|
-
columnSummaries:
|
|
23024
|
+
data: V2,
|
|
23025
|
+
rawData: H2,
|
|
23026
|
+
columnSummaries: P2,
|
|
23011
23027
|
sorting: m,
|
|
23012
23028
|
setSorting: h,
|
|
23013
23029
|
searchQuery: y,
|
|
23014
23030
|
setSearchQuery: b,
|
|
23015
23031
|
filters: w,
|
|
23016
23032
|
setFilters: T,
|
|
23017
|
-
reloading:
|
|
23018
|
-
totalRows:
|
|
23033
|
+
reloading: U2,
|
|
23034
|
+
totalRows: W2,
|
|
23019
23035
|
paginationState: _,
|
|
23020
23036
|
setPaginationState: v,
|
|
23021
|
-
cellStyles:
|
|
23022
|
-
cellHoverTexts:
|
|
23023
|
-
toggleDisplayHeader:
|
|
23037
|
+
cellStyles: G2,
|
|
23038
|
+
cellHoverTexts: K2,
|
|
23039
|
+
toggleDisplayHeader: B2,
|
|
23024
23040
|
isChartBuilderOpen: O,
|
|
23025
|
-
getRow:
|
|
23041
|
+
getRow: k2,
|
|
23026
23042
|
cellId: l,
|
|
23027
23043
|
maxHeight: e.maxHeight
|
|
23028
|
-
}), r[74] = l, r[75] =
|
|
23029
|
-
let
|
|
23030
|
-
r[91] !== l || r[92] !==
|
|
23044
|
+
}), r[74] = l, r[75] = P2, r[76] = O, r[77] = w, r[78] = k2, r[79] = _, r[80] = e, r[81] = y, r[82] = m, r[83] = V2, r[84] = H2, r[85] = U2, r[86] = W2, r[87] = G2, r[88] = K2, r[89] = B2, r[90] = q2) : q2 = r[90];
|
|
23045
|
+
let J2 = q2, Y2;
|
|
23046
|
+
r[91] !== l || r[92] !== J2 || r[93] !== (W == null ? void 0 : W.rows) || r[94] !== O || r[95] !== e.fieldTypes || r[96] !== e.get_data_url || r[97] !== e.showChartBuilder || r[98] !== e.totalColumns || r[99] !== e.totalRows ? (Y2 = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
23031
23047
|
displayHeader: O,
|
|
23032
23048
|
onCloseChartBuilder: () => j(false),
|
|
23033
23049
|
data: (W == null ? void 0 : W.rows) || [],
|
|
23034
23050
|
columns: e.totalColumns,
|
|
23035
23051
|
totalRows: e.totalRows,
|
|
23036
|
-
dataTable:
|
|
23052
|
+
dataTable: J2,
|
|
23037
23053
|
getDataUrl: e.get_data_url,
|
|
23038
23054
|
fieldTypes: e.fieldTypes,
|
|
23039
23055
|
cellId: l
|
|
23040
|
-
}) :
|
|
23041
|
-
let
|
|
23042
|
-
return r[101] !==
|
|
23056
|
+
}) : J2, r[91] = l, r[92] = J2, r[93] = W == null ? void 0 : W.rows, r[94] = O, r[95] = e.fieldTypes, r[96] = e.get_data_url, r[97] = e.showChartBuilder, r[98] = e.totalColumns, r[99] = e.totalRows, r[100] = Y2) : Y2 = r[100];
|
|
23057
|
+
let X2;
|
|
23058
|
+
return r[101] !== R2 || r[102] !== Y2 ? (X2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23043
23059
|
children: [
|
|
23044
|
-
|
|
23045
|
-
|
|
23060
|
+
R2,
|
|
23061
|
+
Y2
|
|
23046
23062
|
]
|
|
23047
|
-
}), r[101] =
|
|
23063
|
+
}), r[101] = R2, r[102] = Y2, r[103] = X2) : X2 = r[103], X2;
|
|
23048
23064
|
});
|
|
23049
23065
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
23050
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, maxColumns: u, pagination: d, selection: f, value: p, showFilters: m, showDownload: h, showPageSizeSelector: g, showColumnExplorer: _, showRowExplorer: v, showChartBuilder: y, showDataTypes: b, rowHeaders: S, fieldTypes: w, paginationState: T, setPaginationState: O, download_as: j, columnSummaries: M, className: I, setValue: L, sorting: R, setSorting: z, enableSearch: B, searchQuery: H, setSearchQuery: W, filters: G, setFilters: q, reloading:
|
|
23051
|
-
let
|
|
23066
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, maxColumns: u, pagination: d, selection: f, value: p, showFilters: m, showDownload: h, showPageSizeSelector: g, showColumnExplorer: _, showRowExplorer: v, showChartBuilder: y, showDataTypes: b, rowHeaders: S, fieldTypes: w, paginationState: T, setPaginationState: O, download_as: j, columnSummaries: M, className: I, setValue: L, sorting: R, setSorting: z, enableSearch: B, searchQuery: H, setSearchQuery: W, filters: G, setFilters: q, reloading: D2, freezeColumnsLeft: O2, freezeColumnsRight: k2, textJustifyColumns: A2, wrappedColumns: j2, headerTooltip: Z, totalColumns: M2, get_row_ids: N2, cellStyles: P2, hoverTemplate: F2, cellHoverTexts: I2, toggleDisplayHeader: L2, isChartBuilderOpen: R2, calculate_top_k_rows: z2, preview_column: B2, getRow: V2, cellId: H2, maxHeight: U2 }) => {
|
|
23067
|
+
let W2 = (0, import_react.useId)(), [G2, K2] = (0, import_react.useState)(0), { isPanelOpen: q2, isAnyPanelOpen: J2, togglePanel: Y2, panelType: X2, setPanelType: Z2 } = usePanelOwnership(W2, H2), Q2 = (0, import_react.useMemo)(() => {
|
|
23052
23068
|
if (!M || !w || !M.stats) return ColumnChartSpecModel.EMPTY;
|
|
23053
23069
|
let e2 = toFieldTypes(w);
|
|
23054
23070
|
return new ColumnChartSpecModel(M.data || [], e2, M.stats, M.bin_values, M.value_counts, {
|
|
@@ -23057,13 +23073,13 @@ ${c}
|
|
|
23057
23073
|
}, [
|
|
23058
23074
|
w,
|
|
23059
23075
|
M
|
|
23060
|
-
]),
|
|
23076
|
+
]), $2 = useDeepCompareMemoize(w ?? inferFieldTypes(r)), e4 = (0, import_react.useMemo)(() => u === "all" ? $2 : $2.slice(0, u), [
|
|
23061
23077
|
u,
|
|
23062
|
-
|
|
23063
|
-
]),
|
|
23078
|
+
$2
|
|
23079
|
+
]), t4 = (0, import_react.useMemo)(() => {
|
|
23064
23080
|
let e2 = {};
|
|
23065
23081
|
if (r && r.length > 0) {
|
|
23066
|
-
for (let [c2, l2] of
|
|
23082
|
+
for (let [c2, l2] of e4) if (l2[0] === "number") {
|
|
23067
23083
|
let l3 = 0;
|
|
23068
23084
|
for (let e3 of r) {
|
|
23069
23085
|
let r2 = e3[c2];
|
|
@@ -23078,55 +23094,55 @@ ${c}
|
|
|
23078
23094
|
return e2;
|
|
23079
23095
|
}, [
|
|
23080
23096
|
r,
|
|
23081
|
-
|
|
23082
|
-
]),
|
|
23097
|
+
e4
|
|
23098
|
+
]), n4 = useDeepCompareMemoize(S), r4 = useDeepCompareMemoize(A2), i4 = useDeepCompareMemoize(j2), a4 = useDeepCompareMemoize(Q2), o4 = useDeepCompareMemoize(t4), s4 = e4.length;
|
|
23083
23099
|
w || (b = false);
|
|
23084
|
-
let
|
|
23085
|
-
rowHeaders:
|
|
23100
|
+
let c4 = (0, import_react.useMemo)(() => generateColumns({
|
|
23101
|
+
rowHeaders: n4,
|
|
23086
23102
|
selection: f,
|
|
23087
|
-
chartSpecModel:
|
|
23088
|
-
fieldTypes:
|
|
23089
|
-
textJustifyColumns:
|
|
23090
|
-
wrappedColumns:
|
|
23103
|
+
chartSpecModel: a4,
|
|
23104
|
+
fieldTypes: e4,
|
|
23105
|
+
textJustifyColumns: r4,
|
|
23106
|
+
wrappedColumns: i4,
|
|
23091
23107
|
headerTooltip: Z,
|
|
23092
23108
|
showDataTypes: b,
|
|
23093
|
-
calculateTopKRows:
|
|
23094
|
-
fractionDigitsByColumn:
|
|
23109
|
+
calculateTopKRows: z2,
|
|
23110
|
+
fractionDigitsByColumn: o4
|
|
23095
23111
|
}), [
|
|
23096
23112
|
f,
|
|
23097
23113
|
b,
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
X2,
|
|
23101
|
-
$2,
|
|
23114
|
+
a4,
|
|
23115
|
+
n4,
|
|
23102
23116
|
e4,
|
|
23117
|
+
r4,
|
|
23118
|
+
i4,
|
|
23103
23119
|
Z,
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
]),
|
|
23120
|
+
z2,
|
|
23121
|
+
o4
|
|
23122
|
+
]), l4 = (0, import_react.useMemo)(() => Object.fromEntries((p || []).map((e2) => [
|
|
23107
23123
|
e2,
|
|
23108
23124
|
true
|
|
23109
23125
|
])), [
|
|
23110
23126
|
p
|
|
23111
|
-
]),
|
|
23127
|
+
]), u4 = useEvent_default((e2) => {
|
|
23112
23128
|
if (f === "single") {
|
|
23113
23129
|
let r2 = Functions.asUpdater(e2)({});
|
|
23114
23130
|
L(Object.keys(r2).slice(0, 1));
|
|
23115
23131
|
}
|
|
23116
23132
|
if (f === "multi") {
|
|
23117
|
-
let r2 = Functions.asUpdater(e2)(
|
|
23133
|
+
let r2 = Functions.asUpdater(e2)(l4);
|
|
23118
23134
|
L(Object.keys(r2));
|
|
23119
23135
|
}
|
|
23120
|
-
}),
|
|
23121
|
-
if (
|
|
23136
|
+
}), d4 = useEvent_default((e2) => {
|
|
23137
|
+
if (K2(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
23122
23138
|
let r2 = getPageIndexForRow(e2, T.pageIndex, T.pageSize);
|
|
23123
23139
|
r2 !== null && O((e3) => ({
|
|
23124
23140
|
...e3,
|
|
23125
23141
|
pageIndex: r2
|
|
23126
23142
|
}));
|
|
23127
|
-
}),
|
|
23128
|
-
f === "single-cell" && L(Functions.asUpdater(e2)(
|
|
23129
|
-
}),
|
|
23143
|
+
}), f4 = p.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), p4 = useEvent_default((e2) => {
|
|
23144
|
+
f === "single-cell" && L(Functions.asUpdater(e2)(f4).slice(0, 1)), f === "multi-cell" && L(Functions.asUpdater(e2)(f4));
|
|
23145
|
+
}), m4 = f === "multi" || f === "single", h4 = _ && !!B2, g4 = isInVscodeExtension(), _4 = isIslands();
|
|
23130
23146
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23131
23147
|
children: [
|
|
23132
23148
|
l === "too_many" && T.pageSize === r.length && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
@@ -23137,13 +23153,13 @@ ${c}
|
|
|
23137
23153
|
" rows."
|
|
23138
23154
|
]
|
|
23139
23155
|
}),
|
|
23140
|
-
|
|
23156
|
+
s4 < M2 && s4 > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
23141
23157
|
className: "mb-1 rounded",
|
|
23142
23158
|
children: [
|
|
23143
23159
|
"Result clipped. Showing ",
|
|
23144
|
-
|
|
23160
|
+
s4,
|
|
23145
23161
|
" of ",
|
|
23146
|
-
|
|
23162
|
+
M2,
|
|
23147
23163
|
" columns."
|
|
23148
23164
|
]
|
|
23149
23165
|
}),
|
|
@@ -23151,27 +23167,27 @@ ${c}
|
|
|
23151
23167
|
className: "mb-1 rounded",
|
|
23152
23168
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
23153
23169
|
}),
|
|
23154
|
-
|
|
23170
|
+
J2 && (v || h4) && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
23155
23171
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
23156
|
-
rowIdx:
|
|
23157
|
-
setRowIdx:
|
|
23172
|
+
rowIdx: G2,
|
|
23173
|
+
setRowIdx: d4,
|
|
23158
23174
|
totalRows: l,
|
|
23159
|
-
fieldTypes:
|
|
23160
|
-
getRow:
|
|
23161
|
-
isSelectable:
|
|
23162
|
-
isRowSelected: !!
|
|
23163
|
-
handleRowSelectionChange:
|
|
23164
|
-
previewColumn:
|
|
23165
|
-
totalColumns:
|
|
23166
|
-
tableId:
|
|
23167
|
-
showRowExplorer: v && !
|
|
23168
|
-
showColumnExplorer:
|
|
23169
|
-
activeTab:
|
|
23170
|
-
onTabChange:
|
|
23175
|
+
fieldTypes: $2,
|
|
23176
|
+
getRow: V2,
|
|
23177
|
+
isSelectable: m4,
|
|
23178
|
+
isRowSelected: !!l4[G2],
|
|
23179
|
+
handleRowSelectionChange: u4,
|
|
23180
|
+
previewColumn: B2,
|
|
23181
|
+
totalColumns: M2,
|
|
23182
|
+
tableId: W2,
|
|
23183
|
+
showRowExplorer: v && !g4,
|
|
23184
|
+
showColumnExplorer: h4 && !g4,
|
|
23185
|
+
activeTab: X2,
|
|
23186
|
+
onTabChange: Z2
|
|
23171
23187
|
})
|
|
23172
23188
|
}),
|
|
23173
23189
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
23174
|
-
value:
|
|
23190
|
+
value: Q2,
|
|
23175
23191
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
23176
23192
|
label: e,
|
|
23177
23193
|
align: "top",
|
|
@@ -23179,12 +23195,12 @@ ${c}
|
|
|
23179
23195
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
23180
23196
|
data: r,
|
|
23181
23197
|
rawData: c,
|
|
23182
|
-
columns:
|
|
23198
|
+
columns: c4,
|
|
23183
23199
|
className: I,
|
|
23184
|
-
maxHeight:
|
|
23200
|
+
maxHeight: U2,
|
|
23185
23201
|
sorting: R,
|
|
23186
23202
|
totalRows: l,
|
|
23187
|
-
totalColumns:
|
|
23203
|
+
totalColumns: M2,
|
|
23188
23204
|
manualSorting: true,
|
|
23189
23205
|
setSorting: z,
|
|
23190
23206
|
pagination: d,
|
|
@@ -23192,11 +23208,11 @@ ${c}
|
|
|
23192
23208
|
selection: f,
|
|
23193
23209
|
paginationState: T,
|
|
23194
23210
|
setPaginationState: O,
|
|
23195
|
-
rowSelection:
|
|
23196
|
-
cellSelection:
|
|
23197
|
-
cellStyling:
|
|
23198
|
-
hoverTemplate:
|
|
23199
|
-
cellHoverTexts:
|
|
23211
|
+
rowSelection: l4,
|
|
23212
|
+
cellSelection: f4,
|
|
23213
|
+
cellStyling: P2,
|
|
23214
|
+
hoverTemplate: F2,
|
|
23215
|
+
cellHoverTexts: I2,
|
|
23200
23216
|
downloadAs: h ? j : void 0,
|
|
23201
23217
|
enableSearch: B,
|
|
23202
23218
|
searchQuery: H,
|
|
@@ -23204,22 +23220,22 @@ ${c}
|
|
|
23204
23220
|
showFilters: m,
|
|
23205
23221
|
filters: G,
|
|
23206
23222
|
onFiltersChange: q,
|
|
23207
|
-
reloading:
|
|
23208
|
-
onRowSelectionChange:
|
|
23209
|
-
freezeColumnsLeft:
|
|
23210
|
-
freezeColumnsRight:
|
|
23211
|
-
onCellSelectionChange:
|
|
23212
|
-
getRowIds:
|
|
23213
|
-
toggleDisplayHeader:
|
|
23214
|
-
showChartBuilder: y && !
|
|
23215
|
-
isChartBuilderOpen:
|
|
23223
|
+
reloading: D2,
|
|
23224
|
+
onRowSelectionChange: u4,
|
|
23225
|
+
freezeColumnsLeft: O2,
|
|
23226
|
+
freezeColumnsRight: k2,
|
|
23227
|
+
onCellSelectionChange: p4,
|
|
23228
|
+
getRowIds: N2,
|
|
23229
|
+
toggleDisplayHeader: L2,
|
|
23230
|
+
showChartBuilder: y && !_4,
|
|
23231
|
+
isChartBuilderOpen: R2,
|
|
23216
23232
|
showPageSizeSelector: g,
|
|
23217
|
-
showTableExplorer: (v ||
|
|
23218
|
-
togglePanel:
|
|
23219
|
-
isPanelOpen:
|
|
23220
|
-
isAnyPanelOpen:
|
|
23221
|
-
viewedRowIdx:
|
|
23222
|
-
onViewedRowChange: (e2) =>
|
|
23233
|
+
showTableExplorer: (v || h4) && !g4 && !_4,
|
|
23234
|
+
togglePanel: Y2,
|
|
23235
|
+
isPanelOpen: q2,
|
|
23236
|
+
isAnyPanelOpen: J2,
|
|
23237
|
+
viewedRowIdx: G2,
|
|
23238
|
+
onViewedRowChange: (e2) => K2(e2)
|
|
23223
23239
|
})
|
|
23224
23240
|
})
|
|
23225
23241
|
})
|
|
@@ -25868,29 +25884,29 @@ ${c}
|
|
|
25868
25884
|
], r[2] = b, r[3] = S);
|
|
25869
25885
|
let { data: w, error: T, isPending: O } = useAsyncData(y, S), j;
|
|
25870
25886
|
r[4] === w ? j = r[5] : (j = w || {}, r[4] = w, r[5] = j);
|
|
25871
|
-
let { url: M, total_rows: I, row_headers: L, field_types: R, column_types_per_step: z, python_code: B, sql_code: H } = j, W = R == null ? void 0 : R.length, [G, q] = (0, import_react.useState)(f || EMPTY),
|
|
25872
|
-
r[6] === d ?
|
|
25887
|
+
let { url: M, total_rows: I, row_headers: L, field_types: R, column_types_per_step: z, python_code: B, sql_code: H } = j, W = R == null ? void 0 : R.length, [G, q] = (0, import_react.useState)(f || EMPTY), D2 = (0, import_react.useRef)(null), O2;
|
|
25888
|
+
r[6] === d ? O2 = r[7] : (O2 = (e2) => {
|
|
25873
25889
|
var _a3;
|
|
25874
|
-
d && e2 !== "transform" && ((_a3 =
|
|
25875
|
-
}, r[6] = d, r[7] =
|
|
25876
|
-
let
|
|
25877
|
-
r[8] === G ?
|
|
25878
|
-
|
|
25879
|
-
}, r[8] = G, r[9] =
|
|
25890
|
+
d && e2 !== "transform" && ((_a3 = D2.current) == null ? void 0 : _a3.submit());
|
|
25891
|
+
}, r[6] = d, r[7] = O2);
|
|
25892
|
+
let k2 = O2, A2 = (0, import_react.useRef)(G), j2;
|
|
25893
|
+
r[8] === G ? j2 = r[9] : (j2 = () => {
|
|
25894
|
+
A2.current = G;
|
|
25895
|
+
}, r[8] = G, r[9] = j2), (0, import_react.useEffect)(j2);
|
|
25880
25896
|
let Z;
|
|
25881
25897
|
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (Z = () => {
|
|
25882
|
-
let e2 =
|
|
25898
|
+
let e2 = A2.current;
|
|
25883
25899
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
25884
25900
|
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = Z) : Z = r[12];
|
|
25885
|
-
let
|
|
25886
|
-
r[13] !== w || r[14] !== p || r[15] !==
|
|
25901
|
+
let M2 = f == null ? void 0 : f.transforms.length, N2;
|
|
25902
|
+
r[13] !== w || r[14] !== p || r[15] !== M2 ? (N2 = [
|
|
25887
25903
|
w,
|
|
25888
|
-
|
|
25889
|
-
|
|
25904
|
+
M2,
|
|
25905
|
+
A2,
|
|
25890
25906
|
p
|
|
25891
|
-
], r[13] = w, r[14] = p, r[15] =
|
|
25892
|
-
let
|
|
25893
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25907
|
+
], r[13] = w, r[14] = p, r[15] = M2, r[16] = N2) : N2 = r[16], (0, import_react.useEffect)(Z, N2);
|
|
25908
|
+
let P2;
|
|
25909
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P2 = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25894
25910
|
value: "transform",
|
|
25895
25911
|
className: "text-xs py-1",
|
|
25896
25912
|
children: [
|
|
@@ -25899,9 +25915,9 @@ ${c}
|
|
|
25899
25915
|
}),
|
|
25900
25916
|
"Transform"
|
|
25901
25917
|
]
|
|
25902
|
-
}), r[17] =
|
|
25903
|
-
let
|
|
25904
|
-
r[18] === B ?
|
|
25918
|
+
}), r[17] = P2) : P2 = r[17];
|
|
25919
|
+
let F2;
|
|
25920
|
+
r[18] === B ? F2 = r[19] : (F2 = B && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25905
25921
|
value: "python-code",
|
|
25906
25922
|
className: "text-xs py-1",
|
|
25907
25923
|
children: [
|
|
@@ -25910,9 +25926,9 @@ ${c}
|
|
|
25910
25926
|
}),
|
|
25911
25927
|
"Python Code"
|
|
25912
25928
|
]
|
|
25913
|
-
}), r[18] = B, r[19] =
|
|
25914
|
-
let
|
|
25915
|
-
r[20] === H ?
|
|
25929
|
+
}), r[18] = B, r[19] = F2);
|
|
25930
|
+
let L2;
|
|
25931
|
+
r[20] === H ? L2 = r[21] : (L2 = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25916
25932
|
value: "sql-code",
|
|
25917
25933
|
className: "text-xs py-1",
|
|
25918
25934
|
children: [
|
|
@@ -25921,54 +25937,54 @@ ${c}
|
|
|
25921
25937
|
}),
|
|
25922
25938
|
"SQL Code"
|
|
25923
25939
|
]
|
|
25924
|
-
}), r[20] = H, r[21] =
|
|
25925
|
-
let
|
|
25926
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25940
|
+
}), r[20] = H, r[21] = L2);
|
|
25941
|
+
let R2;
|
|
25942
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R2 = (0, import_jsx_runtime.jsx)("div", {
|
|
25927
25943
|
className: "grow"
|
|
25928
|
-
}), r[22] =
|
|
25929
|
-
let
|
|
25930
|
-
r[23] !==
|
|
25944
|
+
}), r[22] = R2) : R2 = r[22];
|
|
25945
|
+
let z2;
|
|
25946
|
+
r[23] !== F2 || r[24] !== L2 ? (z2 = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
25931
25947
|
className: "h-8",
|
|
25932
25948
|
children: [
|
|
25933
|
-
|
|
25934
|
-
|
|
25935
|
-
|
|
25936
|
-
|
|
25949
|
+
P2,
|
|
25950
|
+
F2,
|
|
25951
|
+
L2,
|
|
25952
|
+
R2
|
|
25937
25953
|
]
|
|
25938
|
-
}), r[23] =
|
|
25939
|
-
let
|
|
25940
|
-
r[26] === O ?
|
|
25954
|
+
}), r[23] = F2, r[24] = L2, r[25] = z2) : z2 = r[25];
|
|
25955
|
+
let B2;
|
|
25956
|
+
r[26] === O ? B2 = r[27] : (B2 = O && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
25941
25957
|
size: "small"
|
|
25942
|
-
}), r[26] = O, r[27] =
|
|
25943
|
-
let
|
|
25944
|
-
r[28] !==
|
|
25958
|
+
}), r[26] = O, r[27] = B2);
|
|
25959
|
+
let V2;
|
|
25960
|
+
r[28] !== z2 || r[29] !== B2 ? (V2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
25945
25961
|
className: "flex items-center gap-2",
|
|
25946
25962
|
children: [
|
|
25947
|
-
|
|
25948
|
-
|
|
25963
|
+
z2,
|
|
25964
|
+
B2
|
|
25949
25965
|
]
|
|
25950
|
-
}), r[28] =
|
|
25951
|
-
let
|
|
25952
|
-
r[31] !== p || r[32] !== f ? (
|
|
25966
|
+
}), r[28] = z2, r[29] = B2, r[30] = V2) : V2 = r[30];
|
|
25967
|
+
let H2;
|
|
25968
|
+
r[31] !== p || r[32] !== f ? (H2 = (e2) => {
|
|
25953
25969
|
dequal(e2, f) || (p(e2), q(e2));
|
|
25954
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
25955
|
-
let
|
|
25956
|
-
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !==
|
|
25970
|
+
}, r[31] = p, r[32] = f, r[33] = H2) : H2 = r[33];
|
|
25971
|
+
let U2;
|
|
25972
|
+
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !== H2 ? (U2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25957
25973
|
value: "transform",
|
|
25958
25974
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25959
25975
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
25960
|
-
ref:
|
|
25976
|
+
ref: D2,
|
|
25961
25977
|
initialValue: G,
|
|
25962
25978
|
columns: c,
|
|
25963
|
-
onChange:
|
|
25979
|
+
onChange: H2,
|
|
25964
25980
|
onInvalidChange: q,
|
|
25965
25981
|
getColumnValues: h,
|
|
25966
25982
|
columnTypesPerStep: z,
|
|
25967
25983
|
lazy: d
|
|
25968
25984
|
})
|
|
25969
|
-
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] =
|
|
25970
|
-
let
|
|
25971
|
-
r[41] === B ?
|
|
25985
|
+
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] = H2, r[40] = U2) : U2 = r[40];
|
|
25986
|
+
let W2;
|
|
25987
|
+
r[41] === B ? W2 = r[42] : (W2 = B && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25972
25988
|
value: "python-code",
|
|
25973
25989
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25974
25990
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25977,9 +25993,9 @@ ${c}
|
|
|
25977
25993
|
code: B,
|
|
25978
25994
|
language: "python"
|
|
25979
25995
|
})
|
|
25980
|
-
}), r[41] = B, r[42] =
|
|
25981
|
-
let
|
|
25982
|
-
r[43] === H ?
|
|
25996
|
+
}), r[41] = B, r[42] = W2);
|
|
25997
|
+
let G2;
|
|
25998
|
+
r[43] === H ? G2 = r[44] : (G2 = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25983
25999
|
value: "sql-code",
|
|
25984
26000
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25985
26001
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25988,35 +26004,35 @@ ${c}
|
|
|
25988
26004
|
code: H,
|
|
25989
26005
|
language: "sql"
|
|
25990
26006
|
})
|
|
25991
|
-
}), r[43] = H, r[44] =
|
|
25992
|
-
let
|
|
25993
|
-
r[45] !==
|
|
26007
|
+
}), r[43] = H, r[44] = G2);
|
|
26008
|
+
let K2;
|
|
26009
|
+
r[45] !== k2 || r[46] !== V2 || r[47] !== U2 || r[48] !== W2 || r[49] !== G2 ? (K2 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
25994
26010
|
defaultValue: "transform",
|
|
25995
|
-
onValueChange:
|
|
26011
|
+
onValueChange: k2,
|
|
25996
26012
|
children: [
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26000
|
-
|
|
26013
|
+
V2,
|
|
26014
|
+
U2,
|
|
26015
|
+
W2,
|
|
26016
|
+
G2
|
|
26001
26017
|
]
|
|
26002
|
-
}), r[45] =
|
|
26003
|
-
let
|
|
26004
|
-
r[51] === T ?
|
|
26018
|
+
}), r[45] = k2, r[46] = V2, r[47] = U2, r[48] = W2, r[49] = G2, r[50] = K2) : K2 = r[50];
|
|
26019
|
+
let q2;
|
|
26020
|
+
r[51] === T ? q2 = r[52] : (q2 = T && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
26005
26021
|
error: T
|
|
26006
|
-
}), r[51] = T, r[52] =
|
|
26007
|
-
let
|
|
26008
|
-
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !==
|
|
26022
|
+
}), r[51] = T, r[52] = q2);
|
|
26023
|
+
let J2 = M || "", Y2 = I ?? 0, X2 = W ?? 0, Z2 = L || Arrays.EMPTY, Q2 = I && I > 5 || false, $2;
|
|
26024
|
+
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !== J2 || r[60] !== Y2 || r[61] !== X2 || r[62] !== Z2 || r[63] !== Q2 ? ($2 = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
26009
26025
|
label: null,
|
|
26010
26026
|
className: "rounded-b border-x border-b",
|
|
26011
|
-
data:
|
|
26027
|
+
data: J2,
|
|
26012
26028
|
hasStableRowId: false,
|
|
26013
|
-
totalRows:
|
|
26014
|
-
totalColumns:
|
|
26029
|
+
totalRows: Y2,
|
|
26030
|
+
totalColumns: X2,
|
|
26015
26031
|
maxColumns: "all",
|
|
26016
26032
|
pageSize: l,
|
|
26017
26033
|
pagination: true,
|
|
26018
26034
|
fieldTypes: R,
|
|
26019
|
-
rowHeaders:
|
|
26035
|
+
rowHeaders: Z2,
|
|
26020
26036
|
showDownload: u,
|
|
26021
26037
|
download_as: _,
|
|
26022
26038
|
enableSearch: false,
|
|
@@ -26025,7 +26041,7 @@ ${c}
|
|
|
26025
26041
|
showColumnSummaries: false,
|
|
26026
26042
|
showDataTypes: true,
|
|
26027
26043
|
get_column_summaries: getColumnSummaries,
|
|
26028
|
-
showPageSizeSelector:
|
|
26044
|
+
showPageSizeSelector: Q2,
|
|
26029
26045
|
showColumnExplorer: false,
|
|
26030
26046
|
showRowExplorer: true,
|
|
26031
26047
|
showChartBuilder: false,
|
|
@@ -26034,15 +26050,15 @@ ${c}
|
|
|
26034
26050
|
selection: null,
|
|
26035
26051
|
lazy: false,
|
|
26036
26052
|
host: v
|
|
26037
|
-
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] =
|
|
26038
|
-
let
|
|
26039
|
-
return r[65] !==
|
|
26053
|
+
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] = J2, r[60] = Y2, r[61] = X2, r[62] = Z2, r[63] = Q2, r[64] = $2) : $2 = r[64];
|
|
26054
|
+
let e4;
|
|
26055
|
+
return r[65] !== K2 || r[66] !== q2 || r[67] !== $2 ? (e4 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26040
26056
|
children: [
|
|
26041
|
-
|
|
26042
|
-
|
|
26043
|
-
|
|
26057
|
+
K2,
|
|
26058
|
+
q2,
|
|
26059
|
+
$2
|
|
26044
26060
|
]
|
|
26045
|
-
}), r[65] =
|
|
26061
|
+
}), r[65] = K2, r[66] = q2, r[67] = $2, r[68] = e4) : e4 = r[68], e4;
|
|
26046
26062
|
});
|
|
26047
26063
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
26048
26064
|
function getColumnSummaries() {
|
|
@@ -26230,30 +26246,30 @@ ${c}
|
|
|
26230
26246
|
}, W = [
|
|
26231
26247
|
B
|
|
26232
26248
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
26233
|
-
let G, q,
|
|
26249
|
+
let G, q, D2, O2, k2, A2, Z, M2, N2;
|
|
26234
26250
|
if (r[11] !== R || r[12] !== z || r[13] !== u || r[14] !== b || r[15] !== f || r[16] !== v || r[17] !== h || r[18] !== d || r[19] !== y || r[20] !== l || r[21] !== c) {
|
|
26235
|
-
|
|
26251
|
+
N2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
26236
26252
|
bb0: {
|
|
26237
|
-
|
|
26253
|
+
k2 = (R == null ? void 0 : R.files) ?? [];
|
|
26238
26254
|
let e2;
|
|
26239
26255
|
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$13)), r[31] = c, r[32] = e2);
|
|
26240
26256
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
26241
26257
|
r[33] !== g2 || r[34] !== _2 ? (w = (e3) => g2 && e3.is_directory || _2 && !e3.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
26242
|
-
let
|
|
26243
|
-
if (G =
|
|
26258
|
+
let T2 = k2.filter(w);
|
|
26259
|
+
if (G = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
26244
26260
|
let e3;
|
|
26245
26261
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
26246
26262
|
kind: "danger",
|
|
26247
26263
|
children: z.message
|
|
26248
|
-
}), r[36] = z.message, r[37] = e3),
|
|
26264
|
+
}), r[36] = z.message, r[37] = e3), N2 = e3;
|
|
26249
26265
|
break bb0;
|
|
26250
26266
|
}
|
|
26251
|
-
let
|
|
26252
|
-
r[38] === u ?
|
|
26267
|
+
let E2;
|
|
26268
|
+
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), q = E2.deliminator;
|
|
26253
26269
|
let O3;
|
|
26254
26270
|
r[40] === c ? O3 = r[41] : (O3 = c.map(_temp2$7), r[40] = c, r[41] = O3), Z = O3;
|
|
26255
|
-
let
|
|
26256
|
-
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (
|
|
26271
|
+
let j2;
|
|
26272
|
+
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
26257
26273
|
if (b) return;
|
|
26258
26274
|
if (S(true), e3 === PARENT_DIRECTORY) {
|
|
26259
26275
|
if (v === q) {
|
|
@@ -26272,7 +26288,7 @@ ${c}
|
|
|
26272
26288
|
return;
|
|
26273
26289
|
}
|
|
26274
26290
|
y(e3), S(false);
|
|
26275
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] =
|
|
26291
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], M2 = j2;
|
|
26276
26292
|
let M3;
|
|
26277
26293
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M3 = function(e3) {
|
|
26278
26294
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -26283,8 +26299,8 @@ ${c}
|
|
|
26283
26299
|
is_directory: l2
|
|
26284
26300
|
};
|
|
26285
26301
|
}, r[49] = M3) : M3 = r[49];
|
|
26286
|
-
let I3 = M3,
|
|
26287
|
-
r[50] !== f || r[51] !== m2 || r[52] !== l || r[53] !== c ? (
|
|
26302
|
+
let I3 = M3, B3;
|
|
26303
|
+
r[50] !== f || r[51] !== m2 || r[52] !== l || r[53] !== c ? (B3 = function(e3) {
|
|
26288
26304
|
let { path: r2, name: u2, isDirectory: d2 } = e3, p = I3({
|
|
26289
26305
|
path: r2,
|
|
26290
26306
|
name: u2,
|
|
@@ -26296,13 +26312,13 @@ ${c}
|
|
|
26296
26312
|
] : [
|
|
26297
26313
|
p
|
|
26298
26314
|
]);
|
|
26299
|
-
}, r[50] = f, r[51] = m2, r[52] = l, r[53] = c, r[54] =
|
|
26300
|
-
let
|
|
26315
|
+
}, r[50] = f, r[51] = m2, r[52] = l, r[53] = c, r[54] = B3) : B3 = r[54];
|
|
26316
|
+
let H3 = B3, W2;
|
|
26301
26317
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
26302
26318
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
26303
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
26319
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], D2 = W2, A2 = function() {
|
|
26304
26320
|
let e3 = [];
|
|
26305
|
-
for (let r2 of
|
|
26321
|
+
for (let r2 of k2) {
|
|
26306
26322
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
26307
26323
|
let c2 = I3({
|
|
26308
26324
|
path: r2.path,
|
|
@@ -26315,35 +26331,35 @@ ${c}
|
|
|
26315
26331
|
...c,
|
|
26316
26332
|
...e3
|
|
26317
26333
|
]);
|
|
26318
|
-
},
|
|
26319
|
-
let
|
|
26320
|
-
r[59] ===
|
|
26321
|
-
let
|
|
26322
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
26334
|
+
}, O2 = [];
|
|
26335
|
+
let j22;
|
|
26336
|
+
r[59] === M2 ? j22 = r[60] : (j22 = () => M2(PARENT_DIRECTORY), r[59] = M2, r[60] = j22);
|
|
26337
|
+
let P22, F22;
|
|
26338
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P22 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
26323
26339
|
className: "w-[50px] pl-4",
|
|
26324
26340
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
26325
26341
|
size: 16
|
|
26326
26342
|
})
|
|
26327
|
-
}),
|
|
26343
|
+
}), F22 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
26328
26344
|
children: PARENT_DIRECTORY
|
|
26329
|
-
}), r[61] =
|
|
26330
|
-
let
|
|
26331
|
-
r[63] ===
|
|
26345
|
+
}), r[61] = P22, r[62] = F22) : (P22 = r[61], F22 = r[62]);
|
|
26346
|
+
let I22;
|
|
26347
|
+
r[63] === j22 ? I22 = r[64] : (I22 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
26332
26348
|
className: "hover:bg-accent select-none",
|
|
26333
|
-
onClick:
|
|
26349
|
+
onClick: j22,
|
|
26334
26350
|
children: [
|
|
26335
|
-
|
|
26336
|
-
|
|
26351
|
+
P22,
|
|
26352
|
+
F22
|
|
26337
26353
|
]
|
|
26338
|
-
}, "Parent directory"), r[63] =
|
|
26339
|
-
for (let e3 of
|
|
26354
|
+
}, "Parent directory"), r[63] = j22, r[64] = I22), O2.push(I22);
|
|
26355
|
+
for (let e3 of k2) {
|
|
26340
26356
|
let r2 = e3.path;
|
|
26341
26357
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
26342
26358
|
let c2 = e3.is_directory ? (e4) => {
|
|
26343
26359
|
let { path: r3 } = e4;
|
|
26344
|
-
return
|
|
26345
|
-
} :
|
|
26346
|
-
|
|
26360
|
+
return M2(r3);
|
|
26361
|
+
} : H3, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
26362
|
+
O2.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
26347
26363
|
className: cn("hover:bg-accent group select-none", {
|
|
26348
26364
|
"bg-primary/25 hover:bg-primary/35": u2
|
|
26349
26365
|
}),
|
|
@@ -26359,7 +26375,7 @@ ${c}
|
|
|
26359
26375
|
isSelected: u2,
|
|
26360
26376
|
canSelect: g2 && e3.is_directory || _2 && !e3.is_directory,
|
|
26361
26377
|
Icon: l2,
|
|
26362
|
-
onSelect: () =>
|
|
26378
|
+
onSelect: () => H3({
|
|
26363
26379
|
path: r2,
|
|
26364
26380
|
name: e3.name,
|
|
26365
26381
|
isDirectory: e3.is_directory
|
|
@@ -26373,21 +26389,21 @@ ${c}
|
|
|
26373
26389
|
}, e3.id));
|
|
26374
26390
|
}
|
|
26375
26391
|
}
|
|
26376
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] =
|
|
26377
|
-
} else G = r[22], q = r[23],
|
|
26378
|
-
if (
|
|
26379
|
-
let
|
|
26380
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
26392
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] = D2, r[25] = O2, r[26] = k2, r[27] = A2, r[28] = Z, r[29] = M2, r[30] = N2;
|
|
26393
|
+
} else G = r[22], q = r[23], D2 = r[24], O2 = r[25], k2 = r[26], A2 = r[27], Z = r[28], M2 = r[29], N2 = r[30];
|
|
26394
|
+
if (N2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return N2;
|
|
26395
|
+
let P2, F2, I2, L2, R2, z2, B2;
|
|
26396
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== D2 || r[69] !== z || r[70] !== O2 || r[71] !== k2 || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== A2 || r[79] !== Z || r[80] !== d || r[81] !== M2 || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
26381
26397
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
26382
26398
|
path: v,
|
|
26383
26399
|
delimiter: q,
|
|
26384
26400
|
initialPath: u,
|
|
26385
26401
|
restrictNavigation: h
|
|
26386
26402
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
26387
|
-
r[92] === z ?
|
|
26403
|
+
r[92] === z ? B2 = r[93] : (B2 = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
26388
26404
|
kind: "danger",
|
|
26389
26405
|
children: z.message
|
|
26390
|
-
}), r[92] = z, r[93] =
|
|
26406
|
+
}), r[92] = z, r[93] = B2), P2 = (() => {
|
|
26391
26407
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
26392
26408
|
children: renderHTML({
|
|
26393
26409
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -26404,7 +26420,7 @@ ${c}
|
|
|
26404
26420
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
26405
26421
|
size: "xs",
|
|
26406
26422
|
variant: "link",
|
|
26407
|
-
onClick: G ?
|
|
26423
|
+
onClick: G ? D2 : A2,
|
|
26408
26424
|
children: G ? "Deselect all" : "Select all"
|
|
26409
26425
|
})
|
|
26410
26426
|
})
|
|
@@ -26412,18 +26428,18 @@ ${c}
|
|
|
26412
26428
|
}) : e3;
|
|
26413
26429
|
})();
|
|
26414
26430
|
let _2;
|
|
26415
|
-
r[94] ===
|
|
26431
|
+
r[94] === M2 ? _2 = r[95] : (_2 = (e3) => M2(e3.target.value), r[94] = M2, r[95] = _2);
|
|
26416
26432
|
let y2 = e2.map(_temp3$5);
|
|
26417
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
26433
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (F2 = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
26418
26434
|
className: "mt-2 w-full",
|
|
26419
26435
|
placeholder: v,
|
|
26420
26436
|
value: v,
|
|
26421
26437
|
onChange: _2,
|
|
26422
26438
|
children: y2
|
|
26423
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
26439
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = F2) : F2 = r[99], r[100] !== R || r[101] !== k2 ? (I2 = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
26424
26440
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
26425
|
-
children: R.is_truncated ? `Showing ${
|
|
26426
|
-
}), r[100] = R, r[101] =
|
|
26441
|
+
children: R.is_truncated ? `Showing ${k2.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
26442
|
+
}), r[100] = R, r[101] = k2, r[102] = I2) : I2 = r[102];
|
|
26427
26443
|
let b2;
|
|
26428
26444
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
26429
26445
|
height: "14rem"
|
|
@@ -26441,22 +26457,22 @@ ${c}
|
|
|
26441
26457
|
})
|
|
26442
26458
|
]
|
|
26443
26459
|
}), r[104] = T, r[105] = S2);
|
|
26444
|
-
let
|
|
26445
|
-
r[106] ===
|
|
26460
|
+
let E2;
|
|
26461
|
+
r[106] === O2 ? E2 = r[107] : (E2 = (0, import_jsx_runtime.jsx)(Table, {
|
|
26446
26462
|
className: "cursor-pointer table-fixed",
|
|
26447
26463
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
26448
|
-
children:
|
|
26464
|
+
children: O2
|
|
26449
26465
|
})
|
|
26450
|
-
}), r[106] =
|
|
26466
|
+
}), r[106] = O2, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (L2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26451
26467
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
26452
26468
|
style: b2,
|
|
26453
26469
|
"aria-busy": B,
|
|
26454
26470
|
"aria-live": "polite",
|
|
26455
26471
|
children: [
|
|
26456
26472
|
S2,
|
|
26457
|
-
|
|
26473
|
+
E2
|
|
26458
26474
|
]
|
|
26459
|
-
}), r[108] = B, r[109] = S2, r[110] =
|
|
26475
|
+
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = L2) : L2 = r[111], R2 = "mt-4", z2 = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
26460
26476
|
children: [
|
|
26461
26477
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
26462
26478
|
className: "flex items-center gap-2",
|
|
@@ -26490,24 +26506,24 @@ ${c}
|
|
|
26490
26506
|
})
|
|
26491
26507
|
})
|
|
26492
26508
|
]
|
|
26493
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
26494
|
-
} else
|
|
26495
|
-
let
|
|
26496
|
-
r[112] !==
|
|
26497
|
-
className:
|
|
26498
|
-
children:
|
|
26499
|
-
}), r[112] =
|
|
26500
|
-
let
|
|
26501
|
-
return r[115] !==
|
|
26509
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = D2, r[69] = z, r[70] = O2, r[71] = k2, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = A2, r[79] = Z, r[80] = d, r[81] = M2, r[82] = l, r[83] = T, r[84] = c.length, r[85] = P2, r[86] = F2, r[87] = I2, r[88] = L2, r[89] = R2, r[90] = z2, r[91] = B2;
|
|
26510
|
+
} else P2 = r[85], F2 = r[86], I2 = r[87], L2 = r[88], R2 = r[89], z2 = r[90], B2 = r[91];
|
|
26511
|
+
let V2;
|
|
26512
|
+
r[112] !== R2 || r[113] !== z2 ? (V2 = (0, import_jsx_runtime.jsx)("div", {
|
|
26513
|
+
className: R2,
|
|
26514
|
+
children: z2
|
|
26515
|
+
}), r[112] = R2, r[113] = z2, r[114] = V2) : V2 = r[114];
|
|
26516
|
+
let H2;
|
|
26517
|
+
return r[115] !== P2 || r[116] !== F2 || r[117] !== I2 || r[118] !== L2 || r[119] !== V2 || r[120] !== B2 ? (H2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26502
26518
|
children: [
|
|
26519
|
+
B2,
|
|
26520
|
+
P2,
|
|
26521
|
+
F2,
|
|
26503
26522
|
I2,
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
M2,
|
|
26507
|
-
N2,
|
|
26508
|
-
L2
|
|
26523
|
+
L2,
|
|
26524
|
+
V2
|
|
26509
26525
|
]
|
|
26510
|
-
}), r[115] =
|
|
26526
|
+
}), r[115] = P2, r[116] = F2, r[117] = I2, r[118] = L2, r[119] = V2, r[120] = B2, r[121] = H2) : H2 = r[121], H2;
|
|
26511
26527
|
};
|
|
26512
26528
|
function _temp$13(e) {
|
|
26513
26529
|
return e.path;
|
|
@@ -31897,55 +31913,55 @@ ${c}
|
|
|
31897
31913
|
return typeof S == "function" ? S : noop$2;
|
|
31898
31914
|
}, [
|
|
31899
31915
|
S
|
|
31900
|
-
]), q = (0, import_react.useRef)(null),
|
|
31901
|
-
!
|
|
31902
|
-
|
|
31916
|
+
]), q = (0, import_react.useRef)(null), D2 = (0, import_react.useRef)(null), O2 = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), k2 = O2[0], A2 = O2[1], j2 = k2.isFocused, Z = k2.isFileDialogActive, M2 = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), N2 = function() {
|
|
31917
|
+
!M2.current && Z && setTimeout(function() {
|
|
31918
|
+
D2.current && (D2.current.files.length || (A2({
|
|
31903
31919
|
type: "closeDialog"
|
|
31904
31920
|
}), G()));
|
|
31905
31921
|
}, 300);
|
|
31906
31922
|
};
|
|
31907
31923
|
(0, import_react.useEffect)(function() {
|
|
31908
|
-
return window.addEventListener("focus",
|
|
31909
|
-
window.removeEventListener("focus",
|
|
31924
|
+
return window.addEventListener("focus", N2, false), function() {
|
|
31925
|
+
window.removeEventListener("focus", N2, false);
|
|
31910
31926
|
};
|
|
31911
31927
|
}, [
|
|
31912
|
-
|
|
31928
|
+
D2,
|
|
31913
31929
|
Z,
|
|
31914
31930
|
G,
|
|
31915
|
-
|
|
31931
|
+
M2
|
|
31916
31932
|
]);
|
|
31917
|
-
var
|
|
31918
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
31933
|
+
var P2 = (0, import_react.useRef)([]), F2 = (0, import_react.useRef)([]), I2 = function(e2) {
|
|
31934
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), P2.current = []);
|
|
31919
31935
|
};
|
|
31920
31936
|
(0, import_react.useEffect)(function() {
|
|
31921
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
31922
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
31937
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", I2, false)), function() {
|
|
31938
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", I2));
|
|
31923
31939
|
};
|
|
31924
31940
|
}, [
|
|
31925
31941
|
q,
|
|
31926
31942
|
O
|
|
31927
31943
|
]), (0, import_react.useEffect)(function() {
|
|
31928
31944
|
var e2 = function(e3) {
|
|
31929
|
-
|
|
31945
|
+
F2.current = [].concat(_toConsumableArray(F2.current), [
|
|
31930
31946
|
e3.target
|
|
31931
|
-
]), isEvtWithFiles(e3) &&
|
|
31947
|
+
]), isEvtWithFiles(e3) && A2({
|
|
31932
31948
|
isDragGlobal: true,
|
|
31933
31949
|
type: "setDragGlobal"
|
|
31934
31950
|
});
|
|
31935
31951
|
}, r2 = function(e3) {
|
|
31936
|
-
|
|
31952
|
+
F2.current = F2.current.filter(function(r3) {
|
|
31937
31953
|
return r3 !== e3.target && r3 !== null;
|
|
31938
|
-
}), !(
|
|
31954
|
+
}), !(F2.current.length > 0) && A2({
|
|
31939
31955
|
isDragGlobal: false,
|
|
31940
31956
|
type: "setDragGlobal"
|
|
31941
31957
|
});
|
|
31942
31958
|
}, c2 = function() {
|
|
31943
|
-
|
|
31959
|
+
F2.current = [], A2({
|
|
31944
31960
|
isDragGlobal: false,
|
|
31945
31961
|
type: "setDragGlobal"
|
|
31946
31962
|
});
|
|
31947
31963
|
}, l2 = function() {
|
|
31948
|
-
|
|
31964
|
+
F2.current = [], A2({
|
|
31949
31965
|
isDragGlobal: false,
|
|
31950
31966
|
type: "setDragGlobal"
|
|
31951
31967
|
});
|
|
@@ -31963,12 +31979,12 @@ ${c}
|
|
|
31963
31979
|
E,
|
|
31964
31980
|
l
|
|
31965
31981
|
]);
|
|
31966
|
-
var
|
|
31982
|
+
var L2 = (0, import_react.useCallback)(function(e2) {
|
|
31967
31983
|
R ? R(e2) : console.error(e2);
|
|
31968
31984
|
}, [
|
|
31969
31985
|
R
|
|
31970
|
-
]),
|
|
31971
|
-
e2.preventDefault(), e2.persist(),
|
|
31986
|
+
]), R2 = (0, import_react.useCallback)(function(e2) {
|
|
31987
|
+
e2.preventDefault(), e2.persist(), Z2(e2), P2.current = [].concat(_toConsumableArray(P2.current), [
|
|
31972
31988
|
e2.target
|
|
31973
31989
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
31974
31990
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -31981,7 +31997,7 @@ ${c}
|
|
|
31981
31997
|
maxFiles: m,
|
|
31982
31998
|
validator: z
|
|
31983
31999
|
});
|
|
31984
|
-
|
|
32000
|
+
A2({
|
|
31985
32001
|
isDragAccept: l2,
|
|
31986
32002
|
isDragReject: c2 > 0 && !l2,
|
|
31987
32003
|
isDragActive: true,
|
|
@@ -31989,12 +32005,12 @@ ${c}
|
|
|
31989
32005
|
}), h && h(e2);
|
|
31990
32006
|
}
|
|
31991
32007
|
}).catch(function(e3) {
|
|
31992
|
-
return
|
|
32008
|
+
return L2(e3);
|
|
31993
32009
|
});
|
|
31994
32010
|
}, [
|
|
31995
32011
|
u,
|
|
31996
32012
|
h,
|
|
31997
|
-
|
|
32013
|
+
L2,
|
|
31998
32014
|
L,
|
|
31999
32015
|
B,
|
|
32000
32016
|
f,
|
|
@@ -32002,8 +32018,8 @@ ${c}
|
|
|
32002
32018
|
p,
|
|
32003
32019
|
m,
|
|
32004
32020
|
z
|
|
32005
|
-
]),
|
|
32006
|
-
e2.preventDefault(), e2.persist(),
|
|
32021
|
+
]), z2 = (0, import_react.useCallback)(function(e2) {
|
|
32022
|
+
e2.preventDefault(), e2.persist(), Z2(e2);
|
|
32007
32023
|
var r2 = isEvtWithFiles(e2);
|
|
32008
32024
|
if (r2 && e2.dataTransfer) try {
|
|
32009
32025
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -32013,12 +32029,12 @@ ${c}
|
|
|
32013
32029
|
}, [
|
|
32014
32030
|
_,
|
|
32015
32031
|
L
|
|
32016
|
-
]),
|
|
32017
|
-
e2.preventDefault(), e2.persist(),
|
|
32018
|
-
var r2 =
|
|
32032
|
+
]), B2 = (0, import_react.useCallback)(function(e2) {
|
|
32033
|
+
e2.preventDefault(), e2.persist(), Z2(e2);
|
|
32034
|
+
var r2 = P2.current.filter(function(e3) {
|
|
32019
32035
|
return q.current && q.current.contains(e3);
|
|
32020
32036
|
}), c2 = r2.indexOf(e2.target);
|
|
32021
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
32037
|
+
c2 !== -1 && r2.splice(c2, 1), P2.current = r2, !(r2.length > 0) && (A2({
|
|
32022
32038
|
type: "setDraggedFiles",
|
|
32023
32039
|
isDragActive: false,
|
|
32024
32040
|
isDragAccept: false,
|
|
@@ -32028,7 +32044,7 @@ ${c}
|
|
|
32028
32044
|
q,
|
|
32029
32045
|
g,
|
|
32030
32046
|
L
|
|
32031
|
-
]),
|
|
32047
|
+
]), V2 = (0, import_react.useCallback)(function(e2, r2) {
|
|
32032
32048
|
var c2 = [], l2 = [];
|
|
32033
32049
|
e2.forEach(function(e3) {
|
|
32034
32050
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -32040,8 +32056,8 @@ ${c}
|
|
|
32040
32056
|
];
|
|
32041
32057
|
_2 && (v2 = v2.concat(_2)), l2.push({
|
|
32042
32058
|
file: e3,
|
|
32043
|
-
errors: v2.filter(function(
|
|
32044
|
-
return
|
|
32059
|
+
errors: v2.filter(function(e5) {
|
|
32060
|
+
return e5;
|
|
32045
32061
|
})
|
|
32046
32062
|
});
|
|
32047
32063
|
}
|
|
@@ -32052,14 +32068,14 @@ ${c}
|
|
|
32052
32068
|
TOO_MANY_FILES_REJECTION
|
|
32053
32069
|
]
|
|
32054
32070
|
});
|
|
32055
|
-
}), c2.splice(0)),
|
|
32071
|
+
}), c2.splice(0)), A2({
|
|
32056
32072
|
acceptedFiles: c2,
|
|
32057
32073
|
fileRejections: l2,
|
|
32058
32074
|
isDragReject: l2.length > 0,
|
|
32059
32075
|
type: "setFiles"
|
|
32060
32076
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
32061
32077
|
}, [
|
|
32062
|
-
|
|
32078
|
+
A2,
|
|
32063
32079
|
p,
|
|
32064
32080
|
B,
|
|
32065
32081
|
f,
|
|
@@ -32069,22 +32085,22 @@ ${c}
|
|
|
32069
32085
|
y,
|
|
32070
32086
|
b,
|
|
32071
32087
|
z
|
|
32072
|
-
]),
|
|
32073
|
-
e2.preventDefault(), e2.persist(),
|
|
32074
|
-
isPropagationStopped(e2) && !L ||
|
|
32088
|
+
]), H2 = (0, import_react.useCallback)(function(e2) {
|
|
32089
|
+
e2.preventDefault(), e2.persist(), Z2(e2), P2.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
32090
|
+
isPropagationStopped(e2) && !L || V2(r2, e2);
|
|
32075
32091
|
}).catch(function(e3) {
|
|
32076
|
-
return
|
|
32077
|
-
}),
|
|
32092
|
+
return L2(e3);
|
|
32093
|
+
}), A2({
|
|
32078
32094
|
type: "reset"
|
|
32079
32095
|
});
|
|
32080
32096
|
}, [
|
|
32081
32097
|
u,
|
|
32098
|
+
V2,
|
|
32082
32099
|
L2,
|
|
32083
|
-
N2,
|
|
32084
32100
|
L
|
|
32085
|
-
]),
|
|
32086
|
-
if (
|
|
32087
|
-
|
|
32101
|
+
]), U2 = (0, import_react.useCallback)(function() {
|
|
32102
|
+
if (M2.current) {
|
|
32103
|
+
A2({
|
|
32088
32104
|
type: "openDialog"
|
|
32089
32105
|
}), W();
|
|
32090
32106
|
var e2 = {
|
|
@@ -32094,66 +32110,66 @@ ${c}
|
|
|
32094
32110
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
32095
32111
|
return u(e3);
|
|
32096
32112
|
}).then(function(e3) {
|
|
32097
|
-
|
|
32113
|
+
V2(e3, null), A2({
|
|
32098
32114
|
type: "closeDialog"
|
|
32099
32115
|
});
|
|
32100
32116
|
}).catch(function(e3) {
|
|
32101
|
-
isAbort(e3) ? (G(e3),
|
|
32117
|
+
isAbort(e3) ? (G(e3), A2({
|
|
32102
32118
|
type: "closeDialog"
|
|
32103
|
-
})) : isSecurityError(e3) ? (
|
|
32119
|
+
})) : isSecurityError(e3) ? (M2.current = false, D2.current ? (D2.current.value = null, D2.current.click()) : L2(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : L2(e3);
|
|
32104
32120
|
});
|
|
32105
32121
|
return;
|
|
32106
32122
|
}
|
|
32107
|
-
|
|
32123
|
+
D2.current && (A2({
|
|
32108
32124
|
type: "openDialog"
|
|
32109
|
-
}), W(),
|
|
32125
|
+
}), W(), D2.current.value = null, D2.current.click());
|
|
32110
32126
|
}, [
|
|
32111
|
-
|
|
32127
|
+
A2,
|
|
32112
32128
|
W,
|
|
32113
32129
|
G,
|
|
32114
32130
|
T,
|
|
32131
|
+
V2,
|
|
32115
32132
|
L2,
|
|
32116
|
-
N2,
|
|
32117
32133
|
H,
|
|
32118
32134
|
p
|
|
32119
|
-
]),
|
|
32120
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
32135
|
+
]), W2 = (0, import_react.useCallback)(function(e2) {
|
|
32136
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), U2());
|
|
32121
32137
|
}, [
|
|
32122
32138
|
q,
|
|
32123
|
-
|
|
32124
|
-
]),
|
|
32125
|
-
|
|
32139
|
+
U2
|
|
32140
|
+
]), G2 = (0, import_react.useCallback)(function() {
|
|
32141
|
+
A2({
|
|
32126
32142
|
type: "focus"
|
|
32127
32143
|
});
|
|
32128
|
-
}, []),
|
|
32129
|
-
|
|
32144
|
+
}, []), K2 = (0, import_react.useCallback)(function() {
|
|
32145
|
+
A2({
|
|
32130
32146
|
type: "blur"
|
|
32131
32147
|
});
|
|
32132
|
-
}, []),
|
|
32133
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
32148
|
+
}, []), q2 = (0, import_react.useCallback)(function() {
|
|
32149
|
+
j || (isIeOrEdge() ? setTimeout(U2, 0) : U2());
|
|
32134
32150
|
}, [
|
|
32135
32151
|
j,
|
|
32136
|
-
|
|
32137
|
-
]),
|
|
32152
|
+
U2
|
|
32153
|
+
]), J2 = function(e2) {
|
|
32138
32154
|
return l ? null : e2;
|
|
32139
|
-
},
|
|
32140
|
-
return M ? null :
|
|
32141
|
-
},
|
|
32142
|
-
return I ? null :
|
|
32143
|
-
},
|
|
32155
|
+
}, Y2 = function(e2) {
|
|
32156
|
+
return M ? null : J2(e2);
|
|
32157
|
+
}, X2 = function(e2) {
|
|
32158
|
+
return I ? null : J2(e2);
|
|
32159
|
+
}, Z2 = function(e2) {
|
|
32144
32160
|
L && e2.stopPropagation();
|
|
32145
|
-
},
|
|
32161
|
+
}, Q2 = (0, import_react.useMemo)(function() {
|
|
32146
32162
|
return function() {
|
|
32147
32163
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
32148
32164
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
32149
|
-
onKeyDown:
|
|
32150
|
-
onFocus:
|
|
32151
|
-
onBlur:
|
|
32152
|
-
onClick:
|
|
32153
|
-
onDragEnter:
|
|
32154
|
-
onDragOver:
|
|
32155
|
-
onDragLeave:
|
|
32156
|
-
onDrop:
|
|
32165
|
+
onKeyDown: Y2(composeEventHandlers(d2, W2)),
|
|
32166
|
+
onFocus: Y2(composeEventHandlers(f2, G2)),
|
|
32167
|
+
onBlur: Y2(composeEventHandlers(p2, K2)),
|
|
32168
|
+
onClick: J2(composeEventHandlers(m2, q2)),
|
|
32169
|
+
onDragEnter: X2(composeEventHandlers(h2, R2)),
|
|
32170
|
+
onDragOver: X2(composeEventHandlers(g2, z2)),
|
|
32171
|
+
onDragLeave: X2(composeEventHandlers(_2, B2)),
|
|
32172
|
+
onDrop: X2(composeEventHandlers(v2, H2)),
|
|
32157
32173
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
32158
32174
|
}, c2, q), !l && !M ? {
|
|
32159
32175
|
tabIndex: 0
|
|
@@ -32161,20 +32177,20 @@ ${c}
|
|
|
32161
32177
|
};
|
|
32162
32178
|
}, [
|
|
32163
32179
|
q,
|
|
32180
|
+
W2,
|
|
32181
|
+
G2,
|
|
32182
|
+
K2,
|
|
32183
|
+
q2,
|
|
32184
|
+
R2,
|
|
32185
|
+
z2,
|
|
32164
32186
|
B2,
|
|
32165
|
-
V2,
|
|
32166
32187
|
H2,
|
|
32167
|
-
U2,
|
|
32168
|
-
P2,
|
|
32169
|
-
F2,
|
|
32170
|
-
I2,
|
|
32171
|
-
R2,
|
|
32172
32188
|
M,
|
|
32173
32189
|
I,
|
|
32174
32190
|
l
|
|
32175
|
-
]),
|
|
32191
|
+
]), $2 = (0, import_react.useCallback)(function(e2) {
|
|
32176
32192
|
e2.stopPropagation();
|
|
32177
|
-
}, []),
|
|
32193
|
+
}, []), e4 = (0, import_react.useMemo)(function() {
|
|
32178
32194
|
return function() {
|
|
32179
32195
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
32180
32196
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -32193,25 +32209,25 @@ ${c}
|
|
|
32193
32209
|
width: "1px",
|
|
32194
32210
|
whiteSpace: "nowrap"
|
|
32195
32211
|
},
|
|
32196
|
-
onChange:
|
|
32197
|
-
onClick:
|
|
32212
|
+
onChange: J2(composeEventHandlers(l2, H2)),
|
|
32213
|
+
onClick: J2(composeEventHandlers(u2, $2)),
|
|
32198
32214
|
tabIndex: -1
|
|
32199
|
-
}, c2,
|
|
32215
|
+
}, c2, D2)), d2);
|
|
32200
32216
|
};
|
|
32201
32217
|
}, [
|
|
32202
|
-
|
|
32218
|
+
D2,
|
|
32203
32219
|
c,
|
|
32204
32220
|
p,
|
|
32205
|
-
|
|
32221
|
+
H2,
|
|
32206
32222
|
l
|
|
32207
32223
|
]);
|
|
32208
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
32209
|
-
isFocused:
|
|
32210
|
-
getRootProps:
|
|
32211
|
-
getInputProps:
|
|
32224
|
+
return _objectSpread$7(_objectSpread$7({}, k2), {}, {
|
|
32225
|
+
isFocused: j2 && !l,
|
|
32226
|
+
getRootProps: Q2,
|
|
32227
|
+
getInputProps: e4,
|
|
32212
32228
|
rootRef: q,
|
|
32213
|
-
inputRef:
|
|
32214
|
-
open:
|
|
32229
|
+
inputRef: D2,
|
|
32230
|
+
open: J2(U2)
|
|
32215
32231
|
});
|
|
32216
32232
|
}
|
|
32217
32233
|
function reducer$2(e, r) {
|
|
@@ -32379,8 +32395,8 @@ ${c}
|
|
|
32379
32395
|
..._2,
|
|
32380
32396
|
type: "file"
|
|
32381
32397
|
}), r[25] = _2, r[26] = S2);
|
|
32382
|
-
let
|
|
32383
|
-
r[27] !== u || r[28] !== M || r[29] !== j || r[30] !== m.length ? (
|
|
32398
|
+
let w2;
|
|
32399
|
+
r[27] !== u || r[28] !== M || r[29] !== j || r[30] !== m.length ? (w2 = M ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32384
32400
|
children: [
|
|
32385
32401
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
32386
32402
|
content: j,
|
|
@@ -32408,16 +32424,16 @@ ${c}
|
|
|
32408
32424
|
children: "Click to clear files."
|
|
32409
32425
|
})
|
|
32410
32426
|
]
|
|
32411
|
-
}) : null, r[27] = u, r[28] = M, r[29] = j, r[30] = m.length, r[31] =
|
|
32412
|
-
let
|
|
32413
|
-
return r[32] !== S2 || r[33] !==
|
|
32427
|
+
}) : null, r[27] = u, r[28] = M, r[29] = j, r[30] = m.length, r[31] = w2) : w2 = r[31];
|
|
32428
|
+
let T2;
|
|
32429
|
+
return r[32] !== S2 || r[33] !== w2 || r[34] !== g2 ? (T2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32414
32430
|
className: "flex flex-row items-center justify-start gap-2",
|
|
32415
32431
|
children: [
|
|
32416
32432
|
g2,
|
|
32417
32433
|
S2,
|
|
32418
|
-
|
|
32434
|
+
w2
|
|
32419
32435
|
]
|
|
32420
|
-
}), r[32] = S2, r[33] =
|
|
32436
|
+
}), r[32] = S2, r[33] = w2, r[34] = g2, r[35] = T2) : T2 = r[35], T2;
|
|
32421
32437
|
}
|
|
32422
32438
|
let I = e.label ?? `Drag and drop ${f ? "files" : "a file"} here, or click to open file browser`, L = !S && "border-input/60 border-dashed", R = S && "border-solid", z;
|
|
32423
32439
|
r[36] !== L || r[37] !== R ? (z = cn("hover:text-primary", "mt-3 mb-2 w-full flex flex-col items-center justify-center ", "px-6 py-6 sm:px-8 sm:py-8 md:py-10 md:px-16", "border rounded-sm", "text-sm text-muted-foreground", "hover:cursor-pointer", "active:shadow-xs-solid", "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent", L, R), r[36] = L, r[37] = R, r[38] = z) : z = r[38];
|
|
@@ -32443,47 +32459,47 @@ ${c}
|
|
|
32443
32459
|
html: I
|
|
32444
32460
|
})
|
|
32445
32461
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
32446
|
-
let q = w && "text-primary",
|
|
32447
|
-
r[48] !== q || r[49] !==
|
|
32448
|
-
let
|
|
32449
|
-
r[51] ===
|
|
32462
|
+
let q = w && "text-primary", D2 = T && "text-destructive", O2;
|
|
32463
|
+
r[48] !== q || r[49] !== D2 ? (O2 = cn(q, D2), r[48] = q, r[49] = D2, r[50] = O2) : O2 = r[50];
|
|
32464
|
+
let k2;
|
|
32465
|
+
r[51] === O2 ? k2 = r[52] : (k2 = (0, import_jsx_runtime.jsx)(Upload, {
|
|
32450
32466
|
strokeWidth: 1.4,
|
|
32451
|
-
className:
|
|
32452
|
-
}), r[51] =
|
|
32453
|
-
let
|
|
32454
|
-
r[53] !==
|
|
32455
|
-
let
|
|
32456
|
-
r[56] === Z ?
|
|
32467
|
+
className: O2
|
|
32468
|
+
}), r[51] = O2, r[52] = k2);
|
|
32469
|
+
let A2 = w && "text-primary", j2 = T && "text-destructive", Z;
|
|
32470
|
+
r[53] !== A2 || r[54] !== j2 ? (Z = cn(A2, j2), r[53] = A2, r[54] = j2, r[55] = Z) : Z = r[55];
|
|
32471
|
+
let M2;
|
|
32472
|
+
r[56] === Z ? M2 = r[57] : (M2 = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
32457
32473
|
strokeWidth: 1.4,
|
|
32458
32474
|
className: Z
|
|
32459
|
-
}), r[56] = Z, r[57] =
|
|
32460
|
-
let
|
|
32461
|
-
r[58] !==
|
|
32475
|
+
}), r[56] = Z, r[57] = M2);
|
|
32476
|
+
let N2;
|
|
32477
|
+
r[58] !== k2 || r[59] !== M2 ? (N2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32462
32478
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
32463
32479
|
children: [
|
|
32464
|
-
|
|
32465
|
-
|
|
32480
|
+
k2,
|
|
32481
|
+
M2
|
|
32466
32482
|
]
|
|
32467
|
-
}), r[58] =
|
|
32468
|
-
let
|
|
32469
|
-
r[61] !== G || r[62] !==
|
|
32483
|
+
}), r[58] = k2, r[59] = M2, r[60] = N2) : N2 = r[60];
|
|
32484
|
+
let P2;
|
|
32485
|
+
r[61] !== G || r[62] !== N2 ? (P2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32470
32486
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
32471
32487
|
children: [
|
|
32472
32488
|
G,
|
|
32473
|
-
|
|
32489
|
+
N2
|
|
32474
32490
|
]
|
|
32475
|
-
}), r[61] = G, r[62] =
|
|
32476
|
-
let
|
|
32477
|
-
r[64] !== W || r[65] !==
|
|
32491
|
+
}), r[61] = G, r[62] = N2, r[63] = P2) : P2 = r[63];
|
|
32492
|
+
let F2;
|
|
32493
|
+
r[64] !== W || r[65] !== P2 || r[66] !== z || r[67] !== B ? (F2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32478
32494
|
className: z,
|
|
32479
32495
|
...B,
|
|
32480
32496
|
children: [
|
|
32481
32497
|
W,
|
|
32482
|
-
|
|
32498
|
+
P2
|
|
32483
32499
|
]
|
|
32484
|
-
}), r[64] = W, r[65] =
|
|
32485
|
-
let
|
|
32486
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
32500
|
+
}), r[64] = W, r[65] = P2, r[66] = z, r[67] = B, r[68] = F2) : F2 = r[68];
|
|
32501
|
+
let I2;
|
|
32502
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (I2 = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
32487
32503
|
className: "flex flex-row gap-1",
|
|
32488
32504
|
children: [
|
|
32489
32505
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -32519,17 +32535,17 @@ ${c}
|
|
|
32519
32535
|
})
|
|
32520
32536
|
})
|
|
32521
32537
|
]
|
|
32522
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
32523
|
-
let
|
|
32524
|
-
return r[75] !==
|
|
32538
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = I2) : I2 = r[74];
|
|
32539
|
+
let L2;
|
|
32540
|
+
return r[75] !== F2 || r[76] !== I2 ? (L2 = (0, import_jsx_runtime.jsx)("section", {
|
|
32525
32541
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
32526
32542
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
32527
32543
|
children: [
|
|
32528
|
-
|
|
32529
|
-
|
|
32544
|
+
F2,
|
|
32545
|
+
I2
|
|
32530
32546
|
]
|
|
32531
32547
|
})
|
|
32532
|
-
}), r[75] =
|
|
32548
|
+
}), r[75] = F2, r[76] = I2, r[77] = L2) : L2 = r[77], L2;
|
|
32533
32549
|
};
|
|
32534
32550
|
function _temp$12(e) {
|
|
32535
32551
|
Logger.error(e), toast({
|
|
@@ -32621,79 +32637,79 @@ ${c}
|
|
|
32621
32637
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
32622
32638
|
"bg-(--amber-1) border-(--amber-7)": G
|
|
32623
32639
|
}), r[7] = m, r[8] = G, r[9] = q) : q = r[9];
|
|
32624
|
-
let
|
|
32625
|
-
r[10] !== u || r[11] !== d ? (
|
|
32640
|
+
let D2;
|
|
32641
|
+
r[10] !== u || r[11] !== d ? (D2 = (e2) => {
|
|
32626
32642
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
32627
|
-
}, r[10] = u, r[11] = d, r[12] =
|
|
32628
|
-
let
|
|
32629
|
-
r[13] === f ?
|
|
32643
|
+
}, r[10] = u, r[11] = d, r[12] = D2) : D2 = r[12];
|
|
32644
|
+
let O2;
|
|
32645
|
+
r[13] === f ? O2 = r[14] : (O2 = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
32630
32646
|
className: "text-center",
|
|
32631
32647
|
children: renderHTML({
|
|
32632
32648
|
html: f
|
|
32633
32649
|
})
|
|
32634
|
-
}), r[13] = f, r[14] =
|
|
32635
|
-
let
|
|
32636
|
-
r[15] === L ?
|
|
32650
|
+
}), r[13] = f, r[14] = O2);
|
|
32651
|
+
let k2;
|
|
32652
|
+
r[15] === L ? k2 = r[16] : (k2 = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
32637
32653
|
kind: "danger",
|
|
32638
32654
|
className: "rounded",
|
|
32639
32655
|
children: L ?? "Invalid input"
|
|
32640
|
-
}), r[15] = L, r[16] =
|
|
32641
|
-
let
|
|
32642
|
-
r[17] === c ?
|
|
32656
|
+
}), r[15] = L, r[16] = k2);
|
|
32657
|
+
let A2;
|
|
32658
|
+
r[17] === c ? A2 = r[18] : (A2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32643
32659
|
children: c
|
|
32644
|
-
}), r[17] = c, r[18] =
|
|
32645
|
-
let
|
|
32646
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
32660
|
+
}), r[17] = c, r[18] = A2);
|
|
32661
|
+
let j2;
|
|
32662
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (j2 = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
32647
32663
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
32648
32664
|
variant: "text",
|
|
32649
32665
|
onClick: (e2) => {
|
|
32650
32666
|
e2.preventDefault(), B();
|
|
32651
32667
|
},
|
|
32652
32668
|
children: S
|
|
32653
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
32654
|
-
let Z = v || h,
|
|
32655
|
-
r[23] === h ?
|
|
32669
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = j2) : j2 = r[22];
|
|
32670
|
+
let Z = v || h, M2;
|
|
32671
|
+
r[23] === h ? M2 = r[24] : (M2 = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
32656
32672
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
32657
|
-
}), r[23] = h, r[24] =
|
|
32658
|
-
let
|
|
32659
|
-
r[25] !== g || r[26] !== Z || r[27] !==
|
|
32673
|
+
}), r[23] = h, r[24] = M2);
|
|
32674
|
+
let N2;
|
|
32675
|
+
r[25] !== g || r[26] !== Z || r[27] !== M2 || r[28] !== I ? (N2 = (0, import_jsx_runtime.jsxs)(Button, {
|
|
32660
32676
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
32661
32677
|
variant: I,
|
|
32662
32678
|
disabled: Z,
|
|
32663
32679
|
type: "submit",
|
|
32664
32680
|
children: [
|
|
32665
|
-
|
|
32681
|
+
M2,
|
|
32666
32682
|
g
|
|
32667
32683
|
]
|
|
32668
|
-
}), r[25] = g, r[26] = Z, r[27] =
|
|
32669
|
-
let
|
|
32670
|
-
r[30] !== _ || r[31] !==
|
|
32671
|
-
let
|
|
32672
|
-
r[33] !==
|
|
32684
|
+
}), r[25] = g, r[26] = Z, r[27] = M2, r[28] = I, r[29] = N2) : N2 = r[29];
|
|
32685
|
+
let P2;
|
|
32686
|
+
r[30] !== _ || r[31] !== N2 ? (P2 = withTooltip(N2, _), r[30] = _, r[31] = N2, r[32] = P2) : P2 = r[32];
|
|
32687
|
+
let F2;
|
|
32688
|
+
r[33] !== P2 || r[34] !== j2 ? (F2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32673
32689
|
className: "flex justify-end gap-2 font-code",
|
|
32674
32690
|
children: [
|
|
32675
|
-
|
|
32676
|
-
|
|
32691
|
+
j2,
|
|
32692
|
+
P2
|
|
32677
32693
|
]
|
|
32678
|
-
}), r[33] =
|
|
32679
|
-
let
|
|
32680
|
-
r[36] !==
|
|
32694
|
+
}), r[33] = P2, r[34] = j2, r[35] = F2) : F2 = r[35];
|
|
32695
|
+
let I2;
|
|
32696
|
+
r[36] !== F2 || r[37] !== q || r[38] !== D2 || r[39] !== O2 || r[40] !== k2 || r[41] !== A2 ? (I2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32681
32697
|
className: q,
|
|
32682
|
-
onKeyDown:
|
|
32698
|
+
onKeyDown: D2,
|
|
32683
32699
|
children: [
|
|
32684
|
-
|
|
32685
|
-
|
|
32686
|
-
|
|
32687
|
-
|
|
32700
|
+
O2,
|
|
32701
|
+
k2,
|
|
32702
|
+
A2,
|
|
32703
|
+
F2
|
|
32688
32704
|
]
|
|
32689
|
-
}), r[36] =
|
|
32690
|
-
let
|
|
32691
|
-
return r[43] !==
|
|
32705
|
+
}), r[36] = F2, r[37] = q, r[38] = D2, r[39] = O2, r[40] = k2, r[41] = A2, r[42] = I2) : I2 = r[42];
|
|
32706
|
+
let L2;
|
|
32707
|
+
return r[43] !== I2 || r[44] !== H ? (L2 = (0, import_jsx_runtime.jsx)("form", {
|
|
32692
32708
|
className: "contents",
|
|
32693
32709
|
ref: j,
|
|
32694
32710
|
onSubmit: H,
|
|
32695
|
-
children:
|
|
32696
|
-
}), r[43] =
|
|
32711
|
+
children: I2
|
|
32712
|
+
}), r[43] = I2, r[44] = H, r[45] = L2) : L2 = r[45], L2;
|
|
32697
32713
|
};
|
|
32698
32714
|
var Form = (e) => {
|
|
32699
32715
|
let r = (0, import_compiler_runtime$43.c)(24), c, l, u, d, f, p;
|
|
@@ -34453,8 +34469,8 @@ ${c}
|
|
|
34453
34469
|
points: extractSunburstPoints(e2.points)
|
|
34454
34470
|
}));
|
|
34455
34471
|
}, r[29] = u, r[30] = G);
|
|
34456
|
-
let q = useEvent_default(G),
|
|
34457
|
-
r[31] === u ?
|
|
34472
|
+
let q = useEvent_default(G), D2;
|
|
34473
|
+
r[31] === u ? D2 = r[32] : (D2 = (e2) => {
|
|
34458
34474
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
34459
34475
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
34460
34476
|
u((e3) => ({
|
|
@@ -34465,9 +34481,9 @@ ${c}
|
|
|
34465
34481
|
points: r2,
|
|
34466
34482
|
indices: c2
|
|
34467
34483
|
}));
|
|
34468
|
-
}, r[31] = u, r[32] =
|
|
34469
|
-
let
|
|
34470
|
-
r[33] === u ?
|
|
34484
|
+
}, r[31] = u, r[32] = D2);
|
|
34485
|
+
let O2 = useEvent_default(D2), k2;
|
|
34486
|
+
r[33] === u ? k2 = r[34] : (k2 = (e2) => {
|
|
34471
34487
|
e2 && u((r2) => ({
|
|
34472
34488
|
...r2,
|
|
34473
34489
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -34476,9 +34492,9 @@ ${c}
|
|
|
34476
34492
|
range: e2.range,
|
|
34477
34493
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
34478
34494
|
}));
|
|
34479
|
-
}, r[33] = u, r[34] =
|
|
34480
|
-
let
|
|
34481
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
34495
|
+
}, r[33] = u, r[34] = k2);
|
|
34496
|
+
let A2 = useEvent_default(k2), j2 = m.frames ?? void 0, Z = useEvent_default(_temp3$3), M2;
|
|
34497
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== O2 || r[42] !== A2 || r[43] !== j2 || r[44] !== Z || r[45] !== R ? (M2 = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
34482
34498
|
...m,
|
|
34483
34499
|
layout: h,
|
|
34484
34500
|
onRelayout: R,
|
|
@@ -34486,13 +34502,13 @@ ${c}
|
|
|
34486
34502
|
onTreemapClick: W,
|
|
34487
34503
|
onSunburstClick: q,
|
|
34488
34504
|
config: L,
|
|
34489
|
-
onClick:
|
|
34490
|
-
onSelected:
|
|
34505
|
+
onClick: O2,
|
|
34506
|
+
onSelected: A2,
|
|
34491
34507
|
className: "w-full",
|
|
34492
34508
|
useResizeHandler: true,
|
|
34493
|
-
frames:
|
|
34509
|
+
frames: j2,
|
|
34494
34510
|
onError: Z
|
|
34495
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
34511
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = O2, r[42] = A2, r[43] = j2, r[44] = Z, r[45] = R, r[46] = M2) : M2 = r[46], M2;
|
|
34496
34512
|
});
|
|
34497
34513
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
34498
34514
|
function _temp$9(e) {
|
|
@@ -34604,13 +34620,13 @@ ${c}
|
|
|
34604
34620
|
let c3 = r2.width;
|
|
34605
34621
|
p = (e2.clientX - _.current) / c3 * f2;
|
|
34606
34622
|
}
|
|
34607
|
-
let [m2, h2] = b.current, y2 = h2 - m2, S2 = u.steps,
|
|
34623
|
+
let [m2, h2] = b.current, y2 = h2 - m2, S2 = u.steps, T2 = S2 && S2.length > 1 ? Math.min(...S2.slice(1).map((e3, r3) => e3 - S2[r3])) : u.step ?? 1, E2 = Math.round(p / T2) * T2, j3 = m2 + Math.max(l2 - m2, Math.min(d2 - h2, E2)), M3 = j3 + y2;
|
|
34608
34624
|
w.current = [
|
|
34609
34625
|
j3,
|
|
34610
|
-
|
|
34626
|
+
M3
|
|
34611
34627
|
], (_a3 = u.onValueChange) == null ? void 0 : _a3.call(u, [
|
|
34612
34628
|
j3,
|
|
34613
|
-
|
|
34629
|
+
M3
|
|
34614
34630
|
]);
|
|
34615
34631
|
}, c[11] = u, c[12] = R);
|
|
34616
34632
|
let z = R, B;
|
|
@@ -34624,8 +34640,8 @@ ${c}
|
|
|
34624
34640
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
34625
34641
|
let q;
|
|
34626
34642
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
34627
|
-
let
|
|
34628
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
34643
|
+
let D2;
|
|
34644
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (D2 = (0, import_jsx_runtime.jsx)(Track, {
|
|
34629
34645
|
ref: E,
|
|
34630
34646
|
"data-testid": "track",
|
|
34631
34647
|
className: G,
|
|
@@ -34636,9 +34652,9 @@ ${c}
|
|
|
34636
34652
|
onPointerMove: z,
|
|
34637
34653
|
onPointerUp: H
|
|
34638
34654
|
})
|
|
34639
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
34640
|
-
let
|
|
34641
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
34655
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = D2) : D2 = c[22];
|
|
34656
|
+
let O2;
|
|
34657
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (O2 = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34642
34658
|
asChild: true,
|
|
34643
34659
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
34644
34660
|
"data-testid": "thumb",
|
|
@@ -34648,28 +34664,28 @@ ${c}
|
|
|
34648
34664
|
onMouseEnter: m.setTrue,
|
|
34649
34665
|
onMouseLeave: m.setFalse
|
|
34650
34666
|
})
|
|
34651
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
34652
|
-
let
|
|
34653
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
34667
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = O2) : O2 = c[25];
|
|
34668
|
+
let k2;
|
|
34669
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (k2 = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
34654
34670
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
34655
34671
|
locale: h
|
|
34656
34672
|
})
|
|
34657
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
34658
|
-
let
|
|
34659
|
-
c[30] ===
|
|
34660
|
-
children:
|
|
34661
|
-
}), c[30] =
|
|
34662
|
-
let
|
|
34663
|
-
c[32] !== f || c[33] !==
|
|
34673
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = k2) : k2 = c[29];
|
|
34674
|
+
let A2;
|
|
34675
|
+
c[30] === k2 ? A2 = c[31] : (A2 = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
34676
|
+
children: k2
|
|
34677
|
+
}), c[30] = k2, c[31] = A2);
|
|
34678
|
+
let j2;
|
|
34679
|
+
c[32] !== f || c[33] !== O2 || c[34] !== A2 ? (j2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34664
34680
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34665
34681
|
delayDuration: 0,
|
|
34666
34682
|
open: f,
|
|
34667
34683
|
children: [
|
|
34668
|
-
|
|
34669
|
-
|
|
34684
|
+
O2,
|
|
34685
|
+
A2
|
|
34670
34686
|
]
|
|
34671
34687
|
})
|
|
34672
|
-
}), c[32] = f, c[33] =
|
|
34688
|
+
}), c[32] = f, c[33] = O2, c[34] = A2, c[35] = j2) : j2 = c[35];
|
|
34673
34689
|
let Z;
|
|
34674
34690
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34675
34691
|
asChild: true,
|
|
@@ -34682,38 +34698,38 @@ ${c}
|
|
|
34682
34698
|
onMouseLeave: m.setFalse
|
|
34683
34699
|
})
|
|
34684
34700
|
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = Z) : Z = c[38];
|
|
34685
|
-
let
|
|
34686
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
34701
|
+
let M2;
|
|
34702
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (M2 = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
34687
34703
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
34688
34704
|
locale: h
|
|
34689
34705
|
})
|
|
34690
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
34691
|
-
let
|
|
34692
|
-
c[43] ===
|
|
34693
|
-
children:
|
|
34694
|
-
}), c[43] =
|
|
34695
|
-
let
|
|
34696
|
-
c[45] !== f || c[46] !== Z || c[47] !==
|
|
34706
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = M2) : M2 = c[42];
|
|
34707
|
+
let N2;
|
|
34708
|
+
c[43] === M2 ? N2 = c[44] : (N2 = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
34709
|
+
children: M2
|
|
34710
|
+
}), c[43] = M2, c[44] = N2);
|
|
34711
|
+
let P2;
|
|
34712
|
+
c[45] !== f || c[46] !== Z || c[47] !== N2 ? (P2 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34697
34713
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34698
34714
|
delayDuration: 0,
|
|
34699
34715
|
open: f,
|
|
34700
34716
|
children: [
|
|
34701
34717
|
Z,
|
|
34702
|
-
|
|
34718
|
+
N2
|
|
34703
34719
|
]
|
|
34704
34720
|
})
|
|
34705
|
-
}), c[45] = f, c[46] = Z, c[47] =
|
|
34706
|
-
let
|
|
34707
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
34721
|
+
}), c[45] = f, c[46] = Z, c[47] = N2, c[48] = P2) : P2 = c[48];
|
|
34722
|
+
let F2;
|
|
34723
|
+
return c[49] !== M || c[50] !== u || c[51] !== D2 || c[52] !== j2 || c[53] !== P2 || c[54] !== W ? (F2 = (0, import_jsx_runtime.jsxs)(Root$1, {
|
|
34708
34724
|
ref: M,
|
|
34709
34725
|
className: W,
|
|
34710
34726
|
...u,
|
|
34711
34727
|
children: [
|
|
34712
|
-
C2,
|
|
34713
34728
|
D2,
|
|
34714
|
-
|
|
34729
|
+
j2,
|
|
34730
|
+
P2
|
|
34715
34731
|
]
|
|
34716
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
34732
|
+
}), c[49] = M, c[50] = u, c[51] = D2, c[52] = j2, c[53] = P2, c[54] = W, c[55] = F2) : F2 = c[55], F2;
|
|
34717
34733
|
});
|
|
34718
34734
|
RangeSlider.displayName = Root$1.displayName;
|
|
34719
34735
|
var import_compiler_runtime$31 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -34764,14 +34780,14 @@ ${c}
|
|
|
34764
34780
|
}, q = (e2) => {
|
|
34765
34781
|
h && l(e2);
|
|
34766
34782
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
34767
|
-
let
|
|
34768
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
34783
|
+
let D2, O2;
|
|
34784
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (D2 = () => {
|
|
34769
34785
|
h && !dequal(T, u) && l(T);
|
|
34770
|
-
},
|
|
34786
|
+
}, O2 = () => {
|
|
34771
34787
|
h && !dequal(T, u) && l(T);
|
|
34772
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
34773
|
-
let
|
|
34774
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
34788
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = D2, r[19] = O2) : (D2 = r[18], O2 = r[19]);
|
|
34789
|
+
let k2;
|
|
34790
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== D2 || r[31] !== O2 || r[32] !== b ? (k2 = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
34775
34791
|
id: S,
|
|
34776
34792
|
className: W,
|
|
34777
34793
|
value: T,
|
|
@@ -34782,36 +34798,36 @@ ${c}
|
|
|
34782
34798
|
disabled: y,
|
|
34783
34799
|
onValueChange: G,
|
|
34784
34800
|
onValueCommit: q,
|
|
34785
|
-
onPointerUp:
|
|
34786
|
-
onMouseUp:
|
|
34801
|
+
onPointerUp: D2,
|
|
34802
|
+
onMouseUp: O2,
|
|
34787
34803
|
valueMap: b
|
|
34788
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
34789
|
-
let
|
|
34790
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
34804
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = D2, r[31] = O2, r[32] = b, r[33] = k2) : k2 = r[33];
|
|
34805
|
+
let A2;
|
|
34806
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (A2 = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
34791
34807
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
34792
34808
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
34793
34809
|
locale: w
|
|
34794
34810
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
34795
34811
|
locale: w
|
|
34796
34812
|
})}`
|
|
34797
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
34798
|
-
let
|
|
34799
|
-
r[39] !==
|
|
34813
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = A2) : A2 = r[38];
|
|
34814
|
+
let j2;
|
|
34815
|
+
r[39] !== k2 || r[40] !== A2 || r[41] !== B ? (j2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
34800
34816
|
className: B,
|
|
34801
34817
|
children: [
|
|
34802
|
-
|
|
34803
|
-
|
|
34818
|
+
k2,
|
|
34819
|
+
A2
|
|
34804
34820
|
]
|
|
34805
|
-
}), r[39] =
|
|
34821
|
+
}), r[39] = k2, r[40] = A2, r[41] = B, r[42] = j2) : j2 = r[42];
|
|
34806
34822
|
let Z;
|
|
34807
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
34823
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== j2 || r[47] !== M || r[48] !== L ? (Z = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
34808
34824
|
label: c,
|
|
34809
34825
|
id: S,
|
|
34810
34826
|
align: M,
|
|
34811
34827
|
className: L,
|
|
34812
34828
|
fullWidth: v,
|
|
34813
|
-
children:
|
|
34814
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
34829
|
+
children: j2
|
|
34830
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = j2, r[47] = M, r[48] = L, r[49] = Z) : Z = r[49], Z;
|
|
34815
34831
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
34816
34832
|
r.exports = u;
|
|
34817
34833
|
var c = {
|
|
@@ -35039,16 +35055,16 @@ ${c}
|
|
|
35039
35055
|
r[9] === E ? G = r[10] : (G = [
|
|
35040
35056
|
E
|
|
35041
35057
|
], r[9] = E, r[10] = G);
|
|
35042
|
-
let q,
|
|
35058
|
+
let q, D2;
|
|
35043
35059
|
r[11] !== h || r[12] !== l ? (q = (e2) => {
|
|
35044
35060
|
let [r2] = e2;
|
|
35045
35061
|
O(r2), h || l(r2);
|
|
35046
|
-
},
|
|
35062
|
+
}, D2 = (e2) => {
|
|
35047
35063
|
let [r2] = e2;
|
|
35048
35064
|
h && l(r2);
|
|
35049
|
-
}, r[11] = h, r[12] = l, r[13] = q, r[14] =
|
|
35050
|
-
let
|
|
35051
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !==
|
|
35065
|
+
}, r[11] = h, r[12] = l, r[13] = q, r[14] = D2) : (q = r[13], D2 = r[14]);
|
|
35066
|
+
let O2;
|
|
35067
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !== D2 || r[24] !== W || r[25] !== y ? (O2 = (0, import_jsx_runtime.jsx)(Slider, {
|
|
35052
35068
|
id: w,
|
|
35053
35069
|
className: W,
|
|
35054
35070
|
value: G,
|
|
@@ -35057,19 +35073,19 @@ ${c}
|
|
|
35057
35073
|
step: m,
|
|
35058
35074
|
orientation: g,
|
|
35059
35075
|
onValueChange: q,
|
|
35060
|
-
onValueCommit:
|
|
35076
|
+
onValueCommit: D2,
|
|
35061
35077
|
valueMap: y,
|
|
35062
35078
|
disabled: S
|
|
35063
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] =
|
|
35064
|
-
let
|
|
35065
|
-
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (
|
|
35079
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] = D2, r[24] = W, r[25] = y, r[26] = O2) : O2 = r[26];
|
|
35080
|
+
let k2;
|
|
35081
|
+
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (k2 = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
35066
35082
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
35067
35083
|
children: prettyScientificNumber(y(E), {
|
|
35068
35084
|
locale: T
|
|
35069
35085
|
})
|
|
35070
|
-
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] =
|
|
35071
|
-
let
|
|
35072
|
-
r[32] !== S || r[33] !== b || r[34] !== E || r[35] !== c || r[36] !== l || r[37] !== d || r[38] !== m || r[39] !== f || r[40] !== y ? (
|
|
35086
|
+
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = k2) : k2 = r[31];
|
|
35087
|
+
let A2;
|
|
35088
|
+
r[32] !== S || r[33] !== b || r[34] !== E || r[35] !== c || r[36] !== l || r[37] !== d || r[38] !== m || r[39] !== f || r[40] !== y ? (A2 = b && (0, import_jsx_runtime.jsx)(NumberField, {
|
|
35073
35089
|
value: y(E),
|
|
35074
35090
|
onChange: (e2) => {
|
|
35075
35091
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -35080,25 +35096,25 @@ ${c}
|
|
|
35080
35096
|
className: "w-24",
|
|
35081
35097
|
"aria-label": `${c || "Slider"} value input`,
|
|
35082
35098
|
isDisabled: S
|
|
35083
|
-
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] =
|
|
35084
|
-
let
|
|
35085
|
-
r[42] !==
|
|
35099
|
+
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] = A2) : A2 = r[41];
|
|
35100
|
+
let j2;
|
|
35101
|
+
r[42] !== O2 || r[43] !== k2 || r[44] !== A2 || r[45] !== B ? (j2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35086
35102
|
className: B,
|
|
35087
35103
|
children: [
|
|
35088
|
-
|
|
35089
|
-
|
|
35090
|
-
|
|
35104
|
+
O2,
|
|
35105
|
+
k2,
|
|
35106
|
+
A2
|
|
35091
35107
|
]
|
|
35092
|
-
}), r[42] =
|
|
35108
|
+
}), r[42] = O2, r[43] = k2, r[44] = A2, r[45] = B, r[46] = j2) : j2 = r[46];
|
|
35093
35109
|
let Z;
|
|
35094
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
35110
|
+
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !== j2 || r[51] !== I || r[52] !== R ? (Z = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
35095
35111
|
label: c,
|
|
35096
35112
|
id: w,
|
|
35097
35113
|
align: I,
|
|
35098
35114
|
fullWidth: v,
|
|
35099
35115
|
className: R,
|
|
35100
|
-
children:
|
|
35101
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
35116
|
+
children: j2
|
|
35117
|
+
}), r[47] = v, r[48] = w, r[49] = c, r[50] = j2, r[51] = I, r[52] = R, r[53] = Z) : Z = r[53], Z;
|
|
35102
35118
|
}, import_compiler_runtime$29 = require_compiler_runtime(), switchVariants = cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", {
|
|
35103
35119
|
variants: {
|
|
35104
35120
|
size: {
|
|
@@ -38007,17 +38023,17 @@ ${c}
|
|
|
38007
38023
|
}
|
|
38008
38024
|
var p = "[object Arguments]", m = "[object Boolean]", h = "[object Date]", g = "[object RegExp]", _ = "[object Map]", v = "[object Number]", y = "[object Object]", b = "[object Set]", S = "[object String]", w = Object.prototype.toString;
|
|
38009
38025
|
function T(e3) {
|
|
38010
|
-
var r3 = e3.areArraysEqual, c2 = e3.areDatesEqual, l2 = e3.areMapsEqual,
|
|
38011
|
-
function
|
|
38026
|
+
var r3 = e3.areArraysEqual, c2 = e3.areDatesEqual, l2 = e3.areMapsEqual, T2 = e3.areObjectsEqual, E2 = e3.areRegExpsEqual, O3 = e3.areSetsEqual, j3 = e3.createIsNestedEqual, M3 = j3(I3);
|
|
38027
|
+
function I3(e4, j4, I4) {
|
|
38012
38028
|
if (e4 === j4) return true;
|
|
38013
38029
|
if (!e4 || !j4 || typeof e4 != "object" || typeof j4 != "object") return e4 !== e4 && j4 !== j4;
|
|
38014
|
-
if (u(e4) && u(j4)) return
|
|
38030
|
+
if (u(e4) && u(j4)) return T2(e4, j4, M3, I4);
|
|
38015
38031
|
var L2 = Array.isArray(e4), R2 = Array.isArray(j4);
|
|
38016
|
-
if (L2 || R2) return L2 === R2 && r3(e4, j4, M3,
|
|
38032
|
+
if (L2 || R2) return L2 === R2 && r3(e4, j4, M3, I4);
|
|
38017
38033
|
var z2 = w.call(e4);
|
|
38018
|
-
return z2 === w.call(j4) ? z2 === h ? c2(e4, j4, M3,
|
|
38034
|
+
return z2 === w.call(j4) ? z2 === h ? c2(e4, j4, M3, I4) : z2 === g ? E2(e4, j4, M3, I4) : z2 === _ ? l2(e4, j4, M3, I4) : z2 === b ? O3(e4, j4, M3, I4) : z2 === y || z2 === p ? d(e4) || d(j4) ? false : T2(e4, j4, M3, I4) : z2 === m || z2 === v || z2 === S ? f(e4.valueOf(), j4.valueOf()) : false : false;
|
|
38019
38035
|
}
|
|
38020
|
-
return
|
|
38036
|
+
return I3;
|
|
38021
38037
|
}
|
|
38022
38038
|
function E(e3, r3, c2, l2) {
|
|
38023
38039
|
var u2 = e3.length;
|
|
@@ -38082,7 +38098,7 @@ ${c}
|
|
|
38082
38098
|
areRegExpsEqual: H,
|
|
38083
38099
|
areSetsEqual: W,
|
|
38084
38100
|
createIsNestedEqual: r2
|
|
38085
|
-
}),
|
|
38101
|
+
}), D2 = Object.freeze({
|
|
38086
38102
|
areArraysEqual: O,
|
|
38087
38103
|
areDatesEqual: j,
|
|
38088
38104
|
areMapsEqual: I,
|
|
@@ -38090,40 +38106,40 @@ ${c}
|
|
|
38090
38106
|
areRegExpsEqual: H,
|
|
38091
38107
|
areSetsEqual: G,
|
|
38092
38108
|
createIsNestedEqual: r2
|
|
38093
|
-
}),
|
|
38094
|
-
function
|
|
38095
|
-
return
|
|
38109
|
+
}), O2 = T(q);
|
|
38110
|
+
function k2(e3, r3) {
|
|
38111
|
+
return O2(e3, r3, void 0);
|
|
38096
38112
|
}
|
|
38097
|
-
var
|
|
38113
|
+
var A2 = T(l(q, {
|
|
38098
38114
|
createIsNestedEqual: function() {
|
|
38099
38115
|
return f;
|
|
38100
38116
|
}
|
|
38101
38117
|
}));
|
|
38102
|
-
function
|
|
38103
|
-
return
|
|
38118
|
+
function j2(e3, r3) {
|
|
38119
|
+
return A2(e3, r3, void 0);
|
|
38104
38120
|
}
|
|
38105
|
-
var Z = T(
|
|
38106
|
-
function
|
|
38121
|
+
var Z = T(D2);
|
|
38122
|
+
function M2(e3, r3) {
|
|
38107
38123
|
return Z(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
38108
38124
|
}
|
|
38109
|
-
var
|
|
38125
|
+
var N2 = T(l(D2, {
|
|
38110
38126
|
createIsNestedEqual: function() {
|
|
38111
38127
|
return f;
|
|
38112
38128
|
}
|
|
38113
38129
|
}));
|
|
38114
|
-
function
|
|
38115
|
-
return
|
|
38130
|
+
function P2(e3, r3) {
|
|
38131
|
+
return N2(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
38116
38132
|
}
|
|
38117
|
-
function
|
|
38133
|
+
function F2(e3) {
|
|
38118
38134
|
return T(l(q, e3(q)));
|
|
38119
38135
|
}
|
|
38120
|
-
function
|
|
38121
|
-
var r3 = T(l(
|
|
38136
|
+
function I2(e3) {
|
|
38137
|
+
var r3 = T(l(D2, e3(D2)));
|
|
38122
38138
|
return (function(e4, c2, l2) {
|
|
38123
38139
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
38124
38140
|
});
|
|
38125
38141
|
}
|
|
38126
|
-
e2.circularDeepEqual =
|
|
38142
|
+
e2.circularDeepEqual = M2, e2.circularShallowEqual = P2, e2.createCustomCircularEqual = I2, e2.createCustomEqual = F2, e2.deepEqual = k2, e2.sameValueZeroEqual = f, e2.shallowEqual = j2, Object.defineProperty(e2, "__esModule", {
|
|
38127
38143
|
value: true
|
|
38128
38144
|
});
|
|
38129
38145
|
}));
|
|
@@ -38149,7 +38165,7 @@ ${c}
|
|
|
38149
38165
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
38150
38166
|
Object.defineProperty(e, "__esModule", {
|
|
38151
38167
|
value: true
|
|
38152
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
38168
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = H2, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = P2, e.setTopLeft = I2, e.setTransform = F2, e.sortLayoutItems = L2, e.sortLayoutItemsByColRow = z2, e.sortLayoutItemsByRowCol = R2, e.synchronizeLayoutWithChildren = B2, e.validateLayout = V2, e.withLayoutItem = v;
|
|
38153
38169
|
var r = require_fast_equals(), c = l(require_react());
|
|
38154
38170
|
function l(e2) {
|
|
38155
38171
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -38254,7 +38270,7 @@ ${c}
|
|
|
38254
38270
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
38255
38271
|
}
|
|
38256
38272
|
function T(e2, r2, c2, l2) {
|
|
38257
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
38273
|
+
let u2 = B(e2), d2 = h(u2), f2 = L2(e2, r2), p2 = Array(e2.length);
|
|
38258
38274
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
38259
38275
|
let h3 = y(f2[m2]);
|
|
38260
38276
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -38312,7 +38328,7 @@ ${c}
|
|
|
38312
38328
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
38313
38329
|
let h2 = r2.x, _2 = r2.y;
|
|
38314
38330
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
38315
|
-
let v2 =
|
|
38331
|
+
let v2 = L2(e2, f2);
|
|
38316
38332
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
38317
38333
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
38318
38334
|
if (b2 && m2) return g(e2);
|
|
@@ -38346,61 +38362,61 @@ ${c}
|
|
|
38346
38362
|
function G(e2) {
|
|
38347
38363
|
return e2 * 100 + "%";
|
|
38348
38364
|
}
|
|
38349
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
38365
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, D2 = (e2, r2, c2) => e2 < 0 ? r2 : c2, O2 = (e2) => Math.max(0, e2), k2 = (e2) => Math.max(0, e2), A2 = (e2, r2, c2) => {
|
|
38350
38366
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
38351
38367
|
return {
|
|
38352
38368
|
left: l2,
|
|
38353
38369
|
width: d2,
|
|
38354
|
-
height:
|
|
38355
|
-
top:
|
|
38370
|
+
height: D2(f2, e2.height, u2),
|
|
38371
|
+
top: k2(f2)
|
|
38356
38372
|
};
|
|
38357
|
-
},
|
|
38373
|
+
}, j2 = (e2, r2, c2) => {
|
|
38358
38374
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
38359
38375
|
return {
|
|
38360
38376
|
top: l2,
|
|
38361
38377
|
height: d2,
|
|
38362
38378
|
width: q(e2.left, e2.width, f2, c2),
|
|
38363
|
-
left:
|
|
38379
|
+
left: O2(u2)
|
|
38364
38380
|
};
|
|
38365
38381
|
}, Z = (e2, r2, c2) => {
|
|
38366
38382
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
38367
38383
|
return {
|
|
38368
38384
|
height: u2,
|
|
38369
38385
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
38370
|
-
top:
|
|
38371
|
-
left:
|
|
38386
|
+
top: k2(l2),
|
|
38387
|
+
left: O2(f2)
|
|
38372
38388
|
};
|
|
38373
|
-
},
|
|
38389
|
+
}, M2 = (e2, r2, c2) => {
|
|
38374
38390
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
38375
38391
|
return {
|
|
38376
38392
|
width: f2,
|
|
38377
38393
|
left: u2,
|
|
38378
|
-
height:
|
|
38379
|
-
top:
|
|
38394
|
+
height: D2(l2, e2.height, d2),
|
|
38395
|
+
top: k2(l2)
|
|
38380
38396
|
};
|
|
38381
|
-
},
|
|
38382
|
-
n:
|
|
38397
|
+
}, N2 = {
|
|
38398
|
+
n: A2,
|
|
38383
38399
|
ne: function() {
|
|
38384
|
-
return
|
|
38400
|
+
return A2(arguments.length <= 0 ? void 0 : arguments[0], j2(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38385
38401
|
},
|
|
38386
|
-
e:
|
|
38402
|
+
e: j2,
|
|
38387
38403
|
se: function() {
|
|
38388
|
-
return
|
|
38404
|
+
return M2(arguments.length <= 0 ? void 0 : arguments[0], j2(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38389
38405
|
},
|
|
38390
|
-
s:
|
|
38406
|
+
s: M2,
|
|
38391
38407
|
sw: function() {
|
|
38392
|
-
return
|
|
38408
|
+
return M2(arguments.length <= 0 ? void 0 : arguments[0], Z(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38393
38409
|
},
|
|
38394
38410
|
w: Z,
|
|
38395
38411
|
nw: function() {
|
|
38396
|
-
return
|
|
38412
|
+
return A2(arguments.length <= 0 ? void 0 : arguments[0], Z(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
38397
38413
|
}
|
|
38398
38414
|
};
|
|
38399
|
-
function
|
|
38400
|
-
let u2 =
|
|
38415
|
+
function P2(e2, r2, c2, l2) {
|
|
38416
|
+
let u2 = N2[e2];
|
|
38401
38417
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
38402
38418
|
}
|
|
38403
|
-
function
|
|
38419
|
+
function F2(e2) {
|
|
38404
38420
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
38405
38421
|
return {
|
|
38406
38422
|
transform: d2,
|
|
@@ -38413,7 +38429,7 @@ ${c}
|
|
|
38413
38429
|
position: "absolute"
|
|
38414
38430
|
};
|
|
38415
38431
|
}
|
|
38416
|
-
function
|
|
38432
|
+
function I2(e2) {
|
|
38417
38433
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
38418
38434
|
return {
|
|
38419
38435
|
top: `${r2}px`,
|
|
@@ -38423,20 +38439,20 @@ ${c}
|
|
|
38423
38439
|
position: "absolute"
|
|
38424
38440
|
};
|
|
38425
38441
|
}
|
|
38426
|
-
function
|
|
38427
|
-
return r2 === "horizontal" ?
|
|
38442
|
+
function L2(e2, r2) {
|
|
38443
|
+
return r2 === "horizontal" ? z2(e2) : r2 === "vertical" ? R2(e2) : e2;
|
|
38428
38444
|
}
|
|
38429
|
-
function
|
|
38445
|
+
function R2(e2) {
|
|
38430
38446
|
return e2.slice(0).sort(function(e3, r2) {
|
|
38431
38447
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
38432
38448
|
});
|
|
38433
38449
|
}
|
|
38434
|
-
function
|
|
38450
|
+
function z2(e2) {
|
|
38435
38451
|
return e2.slice(0).sort(function(e3, r2) {
|
|
38436
38452
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
38437
38453
|
});
|
|
38438
38454
|
}
|
|
38439
|
-
function
|
|
38455
|
+
function B2(e2, r2, l2, u2, f2) {
|
|
38440
38456
|
e2 || (e2 = []);
|
|
38441
38457
|
let p2 = [];
|
|
38442
38458
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -38457,7 +38473,7 @@ ${c}
|
|
|
38457
38473
|
});
|
|
38458
38474
|
return f2 ? m2 : T(m2, u2, l2);
|
|
38459
38475
|
}
|
|
38460
|
-
function
|
|
38476
|
+
function V2(e2) {
|
|
38461
38477
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
38462
38478
|
"x",
|
|
38463
38479
|
"y",
|
|
@@ -38474,7 +38490,7 @@ ${c}
|
|
|
38474
38490
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
38475
38491
|
}
|
|
38476
38492
|
}
|
|
38477
|
-
function
|
|
38493
|
+
function H2(e2) {
|
|
38478
38494
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
38479
38495
|
return r2 === false ? null : c2;
|
|
38480
38496
|
}
|
|
@@ -41279,7 +41295,7 @@ ${c}
|
|
|
41279
41295
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
41280
41296
|
let E = useIsDragging(), O, j;
|
|
41281
41297
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
41282
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
41298
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, D2, O2, k2, A2, j2, Z, M2, N2, P2, F2, I2, L2, R2, z2, B2, V2, H2;
|
|
41283
41299
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== h || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
41284
41300
|
let e2 = Maps.keyBy(c.cells, _temp2$2), m2;
|
|
41285
41301
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -41298,23 +41314,23 @@ ${c}
|
|
|
41298
41314
|
});
|
|
41299
41315
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
41300
41316
|
let y2 = v2;
|
|
41301
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
41317
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, z2 = "lg", r[58] === c.cells ? B2 = r[59] : (B2 = {
|
|
41302
41318
|
lg: c.cells
|
|
41303
|
-
}, r[58] = c.cells, r[59] =
|
|
41304
|
-
let b2 = M && "bg-(--slate-2) border-r",
|
|
41305
|
-
r[60] !== b2 || r[61] !==
|
|
41319
|
+
}, r[58] = c.cells, r[59] = B2), V2 = L, H2 = S, R = false;
|
|
41320
|
+
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
41321
|
+
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
41306
41322
|
20,
|
|
41307
41323
|
20
|
|
41308
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
41324
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, D2 = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (O2 = (e3) => {
|
|
41309
41325
|
f || l({
|
|
41310
41326
|
...c,
|
|
41311
41327
|
cells: e3
|
|
41312
41328
|
});
|
|
41313
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
41329
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = O2) : O2 = r[69], r[70] === g ? k2 = r[71] : (k2 = g ? {
|
|
41314
41330
|
i: g.i,
|
|
41315
41331
|
w: g.w || 2,
|
|
41316
41332
|
h: g.h || 2
|
|
41317
|
-
} : void 0, r[70] = g, r[71] =
|
|
41333
|
+
} : void 0, r[70] = g, r[71] = k2), r[72] !== O || r[73] !== c || r[74] !== l ? (A2 = (e3, r2, u2) => {
|
|
41318
41334
|
O.onDragStop(), r2 && l({
|
|
41319
41335
|
...c,
|
|
41320
41336
|
cells: [
|
|
@@ -41322,15 +41338,15 @@ ${c}
|
|
|
41322
41338
|
r2
|
|
41323
41339
|
]
|
|
41324
41340
|
});
|
|
41325
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
41341
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = A2) : A2 = r[75], r[76] === O ? (j2 = r[77], Z = r[78], M2 = r[79]) : (j2 = (e3, r2, c2, l2, u2) => {
|
|
41326
41342
|
O.onDragStart(u2);
|
|
41327
41343
|
}, Z = (e3, r2, c2, l2, u2) => {
|
|
41328
41344
|
O.onDragMove(u2);
|
|
41329
|
-
},
|
|
41345
|
+
}, M2 = () => {
|
|
41330
41346
|
O.onDragStop();
|
|
41331
|
-
}, r[76] = O, r[77] =
|
|
41332
|
-
let
|
|
41333
|
-
r[80] === h ?
|
|
41347
|
+
}, r[76] = O, r[77] = j2, r[78] = Z, r[79] = M2), N2 = _temp3$2, P2 = M, F2 = M, I2 = M, L2 = M ? `.${DRAG_HANDLE}` : "noop";
|
|
41348
|
+
let E2;
|
|
41349
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), R2 = u.filter(E2).map((r2) => {
|
|
41334
41350
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
41335
41351
|
code: r2.code,
|
|
41336
41352
|
mode: d,
|
|
@@ -41359,14 +41375,14 @@ ${c}
|
|
|
41359
41375
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
41360
41376
|
children: m3
|
|
41361
41377
|
}, r2.id);
|
|
41362
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
41363
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
41364
|
-
let
|
|
41365
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
41366
|
-
breakpoint:
|
|
41367
|
-
layouts:
|
|
41368
|
-
style:
|
|
41369
|
-
cols:
|
|
41378
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = D2, r[31] = O2, r[32] = k2, r[33] = A2, r[34] = j2, r[35] = Z, r[36] = M2, r[37] = N2, r[38] = P2, r[39] = F2, r[40] = I2, r[41] = L2, r[42] = R2, r[43] = z2, r[44] = B2, r[45] = V2, r[46] = H2;
|
|
41379
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], D2 = r[30], O2 = r[31], k2 = r[32], A2 = r[33], j2 = r[34], Z = r[35], M2 = r[36], N2 = r[37], P2 = r[38], F2 = r[39], I2 = r[40], L2 = r[41], R2 = r[42], z2 = r[43], B2 = r[44], V2 = r[45], H2 = r[46];
|
|
41380
|
+
let U2;
|
|
41381
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== D2 || r[91] !== O2 || r[92] !== k2 || r[93] !== A2 || r[94] !== j2 || r[95] !== Z || r[96] !== M2 || r[97] !== N2 || r[98] !== P2 || r[99] !== F2 || r[100] !== I2 || r[101] !== L2 || r[102] !== R2 || r[103] !== z2 || r[104] !== B2 || r[105] !== V2 || r[106] !== H2 ? (U2 = (0, import_jsx_runtime.jsx)(I, {
|
|
41382
|
+
breakpoint: z2,
|
|
41383
|
+
layouts: B2,
|
|
41384
|
+
style: V2,
|
|
41385
|
+
cols: H2,
|
|
41370
41386
|
allowOverlap: R,
|
|
41371
41387
|
className: z,
|
|
41372
41388
|
containerPadding: B,
|
|
@@ -41374,51 +41390,51 @@ ${c}
|
|
|
41374
41390
|
isBounded: W,
|
|
41375
41391
|
compactType: G,
|
|
41376
41392
|
preventCollision: q,
|
|
41377
|
-
rowHeight:
|
|
41378
|
-
onLayoutChange:
|
|
41379
|
-
droppingItem:
|
|
41380
|
-
onDrop:
|
|
41381
|
-
onDragStart:
|
|
41393
|
+
rowHeight: D2,
|
|
41394
|
+
onLayoutChange: O2,
|
|
41395
|
+
droppingItem: k2,
|
|
41396
|
+
onDrop: A2,
|
|
41397
|
+
onDragStart: j2,
|
|
41382
41398
|
onDrag: Z,
|
|
41383
|
-
onDragStop:
|
|
41384
|
-
onResizeStop:
|
|
41385
|
-
isDraggable:
|
|
41386
|
-
isDroppable:
|
|
41387
|
-
isResizable:
|
|
41388
|
-
draggableHandle:
|
|
41389
|
-
children:
|
|
41390
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
41391
|
-
let
|
|
41392
|
-
if (r[108] !== u || r[109] !==
|
|
41393
|
-
|
|
41399
|
+
onDragStop: M2,
|
|
41400
|
+
onResizeStop: N2,
|
|
41401
|
+
isDraggable: P2,
|
|
41402
|
+
isDroppable: F2,
|
|
41403
|
+
isResizable: I2,
|
|
41404
|
+
draggableHandle: L2,
|
|
41405
|
+
children: R2
|
|
41406
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = D2, r[91] = O2, r[92] = k2, r[93] = A2, r[94] = j2, r[95] = Z, r[96] = M2, r[97] = N2, r[98] = P2, r[99] = F2, r[100] = I2, r[101] = L2, r[102] = R2, r[103] = z2, r[104] = B2, r[105] = V2, r[106] = H2, r[107] = U2) : U2 = r[107];
|
|
41407
|
+
let W2 = U2, G2, K2, q2, J2, Y2, X2, Z2;
|
|
41408
|
+
if (r[108] !== u || r[109] !== W2 || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
41409
|
+
Z2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
41394
41410
|
bb0: {
|
|
41395
41411
|
let e2;
|
|
41396
41412
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
41397
41413
|
let m2 = u.filter(e2);
|
|
41398
41414
|
if (f) {
|
|
41399
41415
|
if (c.bordered) {
|
|
41400
|
-
let
|
|
41401
|
-
r[127] !==
|
|
41416
|
+
let e5;
|
|
41417
|
+
r[127] !== W2 || r[128] !== L ? (e5 = (0, import_jsx_runtime.jsx)("div", {
|
|
41402
41418
|
className: "flex flex-1 flex-col items-center",
|
|
41403
41419
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
41404
41420
|
style: L,
|
|
41405
41421
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
41406
|
-
children:
|
|
41422
|
+
children: W2
|
|
41407
41423
|
})
|
|
41408
|
-
}), r[127] =
|
|
41424
|
+
}), r[127] = W2, r[128] = L, r[129] = e5) : e5 = r[129], W2 = e5;
|
|
41409
41425
|
}
|
|
41410
41426
|
let e3 = m2.filter(_temp4$2), l2;
|
|
41411
|
-
r[130] === d ? l2 = r[131] : (l2 = (
|
|
41412
|
-
code:
|
|
41427
|
+
r[130] === d ? l2 = r[131] : (l2 = (e5) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
41428
|
+
code: e5.code,
|
|
41413
41429
|
mode: d,
|
|
41414
|
-
cellId:
|
|
41415
|
-
output:
|
|
41416
|
-
status:
|
|
41430
|
+
cellId: e5.id,
|
|
41431
|
+
output: e5.output,
|
|
41432
|
+
status: e5.status,
|
|
41417
41433
|
isScrollable: false,
|
|
41418
41434
|
hidden: false
|
|
41419
|
-
},
|
|
41435
|
+
}, e5.id), r[130] = d, r[131] = l2), Z2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41420
41436
|
children: [
|
|
41421
|
-
|
|
41437
|
+
W2,
|
|
41422
41438
|
(0, import_jsx_runtime.jsx)("div", {
|
|
41423
41439
|
className: "hidden",
|
|
41424
41440
|
children: e3.map(l2)
|
|
@@ -41429,31 +41445,31 @@ ${c}
|
|
|
41429
41445
|
}
|
|
41430
41446
|
if (c.bordered) {
|
|
41431
41447
|
let e3;
|
|
41432
|
-
r[132] ===
|
|
41448
|
+
r[132] === W2 ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
41433
41449
|
className: "h-full overflow-auto",
|
|
41434
|
-
children:
|
|
41435
|
-
}), r[132] =
|
|
41450
|
+
children: W2
|
|
41451
|
+
}), r[132] = W2, r[133] = e3);
|
|
41436
41452
|
let c2;
|
|
41437
41453
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41438
41454
|
style: L,
|
|
41439
41455
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
41440
41456
|
children: e3
|
|
41441
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
41457
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], W2 = c2;
|
|
41442
41458
|
}
|
|
41443
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
41459
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (X2 = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
41444
41460
|
layout: c,
|
|
41445
41461
|
setLayout: l,
|
|
41446
41462
|
isLocked: v,
|
|
41447
41463
|
setIsLocked: y
|
|
41448
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
41464
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = X2) : X2 = r[140];
|
|
41449
41465
|
let g2;
|
|
41450
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
41466
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J2 = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = J2, r[142] = g2) : (J2 = r[141], g2 = r[142]), r[143] === W2 ? Y2 = r[144] : (Y2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41451
41467
|
className: g2,
|
|
41452
|
-
children:
|
|
41453
|
-
}), r[143] =
|
|
41468
|
+
children: W2
|
|
41469
|
+
}), r[143] = W2, r[144] = Y2), G2 = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41454
41470
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
41455
41471
|
children: "Outputs"
|
|
41456
|
-
}), r[145] =
|
|
41472
|
+
}), r[145] = K2) : K2 = r[145];
|
|
41457
41473
|
let b2;
|
|
41458
41474
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
41459
41475
|
draggable: true,
|
|
@@ -41478,34 +41494,34 @@ ${c}
|
|
|
41478
41494
|
status: e3.status,
|
|
41479
41495
|
hidden: false
|
|
41480
41496
|
})
|
|
41481
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
41482
|
-
}
|
|
41483
|
-
r[108] = u, r[109] =
|
|
41484
|
-
} else
|
|
41485
|
-
if (
|
|
41486
|
-
let
|
|
41487
|
-
r[150] !==
|
|
41488
|
-
className:
|
|
41497
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], q2 = m2.map(b2);
|
|
41498
|
+
}
|
|
41499
|
+
r[108] = u, r[109] = W2, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = G2, r[118] = K2, r[119] = q2, r[120] = J2, r[121] = Y2, r[122] = X2, r[123] = Z2, r[124] = W2;
|
|
41500
|
+
} else G2 = r[117], K2 = r[118], q2 = r[119], J2 = r[120], Y2 = r[121], X2 = r[122], Z2 = r[123], W2 = r[124];
|
|
41501
|
+
if (Z2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return Z2;
|
|
41502
|
+
let Q2;
|
|
41503
|
+
r[150] !== G2 || r[151] !== K2 || r[152] !== q2 ? (Q2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41504
|
+
className: G2,
|
|
41489
41505
|
children: [
|
|
41490
|
-
|
|
41491
|
-
|
|
41506
|
+
K2,
|
|
41507
|
+
q2
|
|
41492
41508
|
]
|
|
41493
|
-
}), r[150] =
|
|
41494
|
-
let
|
|
41495
|
-
r[154] !==
|
|
41496
|
-
className:
|
|
41509
|
+
}), r[150] = G2, r[151] = K2, r[152] = q2, r[153] = Q2) : Q2 = r[153];
|
|
41510
|
+
let $2;
|
|
41511
|
+
r[154] !== J2 || r[155] !== Y2 || r[156] !== Q2 ? ($2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41512
|
+
className: J2,
|
|
41497
41513
|
children: [
|
|
41498
|
-
|
|
41499
|
-
|
|
41514
|
+
Y2,
|
|
41515
|
+
Q2
|
|
41500
41516
|
]
|
|
41501
|
-
}), r[154] =
|
|
41502
|
-
let
|
|
41503
|
-
return r[158] !==
|
|
41517
|
+
}), r[154] = J2, r[155] = Y2, r[156] = Q2, r[157] = $2) : $2 = r[157];
|
|
41518
|
+
let e4;
|
|
41519
|
+
return r[158] !== X2 || r[159] !== $2 ? (e4 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41504
41520
|
children: [
|
|
41505
|
-
|
|
41506
|
-
|
|
41521
|
+
X2,
|
|
41522
|
+
$2
|
|
41507
41523
|
]
|
|
41508
|
-
}), r[158] =
|
|
41524
|
+
}), r[158] = X2, r[159] = $2, r[160] = e4) : e4 = r[160], e4;
|
|
41509
41525
|
};
|
|
41510
41526
|
var GridCell = (0, import_react.memo)((e) => {
|
|
41511
41527
|
let r = (0, import_compiler_runtime$12.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -41806,25 +41822,25 @@ ${c}
|
|
|
41806
41822
|
G
|
|
41807
41823
|
]
|
|
41808
41824
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
41809
|
-
let
|
|
41810
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
41825
|
+
let D2;
|
|
41826
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D2 = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
41811
41827
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
41812
|
-
}), r[35] =
|
|
41813
|
-
let
|
|
41814
|
-
r[36] === l ?
|
|
41828
|
+
}), r[35] = D2) : D2 = r[35];
|
|
41829
|
+
let O2;
|
|
41830
|
+
r[36] === l ? O2 = r[37] : (O2 = (0, import_jsx_runtime.jsx)(X, {
|
|
41815
41831
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
41816
41832
|
onClick: () => l()
|
|
41817
|
-
}), r[36] = l, r[37] =
|
|
41818
|
-
let
|
|
41819
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
41833
|
+
}), r[36] = l, r[37] = O2);
|
|
41834
|
+
let k2;
|
|
41835
|
+
return r[38] !== I || r[39] !== q || r[40] !== O2 || r[41] !== w ? (k2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41820
41836
|
className: w,
|
|
41821
41837
|
children: [
|
|
41822
41838
|
I,
|
|
41823
41839
|
q,
|
|
41824
|
-
|
|
41825
|
-
|
|
41840
|
+
D2,
|
|
41841
|
+
O2
|
|
41826
41842
|
]
|
|
41827
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
41843
|
+
}), r[38] = I, r[39] = q, r[40] = O2, r[41] = w, r[42] = k2) : k2 = r[42], k2;
|
|
41828
41844
|
};
|
|
41829
41845
|
function isSidebarCell(e) {
|
|
41830
41846
|
var _a3;
|
|
@@ -43752,31 +43768,31 @@ ${c}
|
|
|
43752
43768
|
}, [
|
|
43753
43769
|
T,
|
|
43754
43770
|
M
|
|
43755
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
43771
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), D2 = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
43756
43772
|
j
|
|
43757
|
-
]),
|
|
43773
|
+
]), O2 = useMeasuringConfiguration(p), { droppableRects: k2, measureDroppableContainers: A2, measuringScheduled: j2 } = useDroppableMeasuring(D2, {
|
|
43758
43774
|
dragging: w,
|
|
43759
43775
|
dependencies: [
|
|
43760
43776
|
O.x,
|
|
43761
43777
|
O.y
|
|
43762
43778
|
],
|
|
43763
|
-
config:
|
|
43764
|
-
}), Z = useCachedNode(E, T),
|
|
43779
|
+
config: O2.droppable
|
|
43780
|
+
}), Z = useCachedNode(E, T), M2 = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
43765
43781
|
H
|
|
43766
|
-
]),
|
|
43782
|
+
]), N2 = u4(), P2 = useInitialRect(Z, O2.draggable.measure);
|
|
43767
43783
|
useLayoutShiftScrollCompensation({
|
|
43768
43784
|
activeNode: T == null ? null : E.get(T),
|
|
43769
|
-
config:
|
|
43770
|
-
initialRect:
|
|
43771
|
-
measure:
|
|
43785
|
+
config: N2.layoutShiftCompensation,
|
|
43786
|
+
initialRect: P2,
|
|
43787
|
+
measure: O2.draggable.measure
|
|
43772
43788
|
});
|
|
43773
|
-
let
|
|
43789
|
+
let F2 = useRect(Z, O2.draggable.measure, P2), I2 = useRect(Z ? Z.parentElement : null), L2 = (0, import_react.useRef)({
|
|
43774
43790
|
activatorEvent: null,
|
|
43775
43791
|
active: null,
|
|
43776
43792
|
activeNode: Z,
|
|
43777
43793
|
collisionRect: null,
|
|
43778
43794
|
collisions: null,
|
|
43779
|
-
droppableRects:
|
|
43795
|
+
droppableRects: k2,
|
|
43780
43796
|
draggableNodes: E,
|
|
43781
43797
|
draggingNode: null,
|
|
43782
43798
|
draggingNodeRect: null,
|
|
@@ -43784,45 +43800,45 @@ ${c}
|
|
|
43784
43800
|
over: null,
|
|
43785
43801
|
scrollableAncestors: [],
|
|
43786
43802
|
scrollAdjustedTranslate: null
|
|
43787
|
-
}),
|
|
43788
|
-
measure:
|
|
43789
|
-
}),
|
|
43803
|
+
}), R2 = j.getNodeFor((_a3 = L2.current.over) == null ? void 0 : _a3.id), z2 = useDragOverlayMeasuring({
|
|
43804
|
+
measure: O2.dragOverlay.measure
|
|
43805
|
+
}), B2 = z2.nodeRef.current ?? Z, V2 = w ? z2.rect ?? F2 : null, H2 = !!(z2.nodeRef.current && z2.rect), U2 = useRectDelta(H2 ? null : F2), W2 = useWindowRect(B2 ? getWindow(B2) : null), G2 = useScrollableAncestors(w ? R2 ?? Z : null), K2 = useRects(G2), q2 = applyModifiers(m, {
|
|
43790
43806
|
transform: {
|
|
43791
|
-
x: O.x -
|
|
43792
|
-
y: O.y -
|
|
43807
|
+
x: O.x - U2.x,
|
|
43808
|
+
y: O.y - U2.y,
|
|
43793
43809
|
scaleX: 1,
|
|
43794
43810
|
scaleY: 1
|
|
43795
43811
|
},
|
|
43796
43812
|
activatorEvent: H,
|
|
43797
43813
|
active: L,
|
|
43798
|
-
activeNodeRect:
|
|
43799
|
-
containerNodeRect:
|
|
43800
|
-
draggingNodeRect:
|
|
43801
|
-
over:
|
|
43802
|
-
overlayNodeRect:
|
|
43803
|
-
scrollableAncestors:
|
|
43804
|
-
scrollableAncestorRects:
|
|
43805
|
-
windowRect:
|
|
43806
|
-
}),
|
|
43807
|
-
|
|
43808
|
-
]),
|
|
43814
|
+
activeNodeRect: F2,
|
|
43815
|
+
containerNodeRect: I2,
|
|
43816
|
+
draggingNodeRect: V2,
|
|
43817
|
+
over: L2.current.over,
|
|
43818
|
+
overlayNodeRect: z2.rect,
|
|
43819
|
+
scrollableAncestors: G2,
|
|
43820
|
+
scrollableAncestorRects: K2,
|
|
43821
|
+
windowRect: W2
|
|
43822
|
+
}), J2 = M2 ? add(M2, O) : null, Y2 = useScrollOffsets(G2), X2 = useScrollOffsetsDelta(Y2), Z2 = useScrollOffsetsDelta(Y2, [
|
|
43823
|
+
F2
|
|
43824
|
+
]), Q2 = add(q2, X2), $2 = V2 ? getAdjustedRect(V2, q2) : null, e4 = L && $2 ? f({
|
|
43809
43825
|
active: L,
|
|
43810
|
-
collisionRect:
|
|
43811
|
-
droppableRects:
|
|
43812
|
-
droppableContainers:
|
|
43813
|
-
pointerCoordinates:
|
|
43814
|
-
}) : null,
|
|
43826
|
+
collisionRect: $2,
|
|
43827
|
+
droppableRects: k2,
|
|
43828
|
+
droppableContainers: D2,
|
|
43829
|
+
pointerCoordinates: J2
|
|
43830
|
+
}) : null, t4 = getFirstCollision(e4, "id"), [n4, r4] = (0, import_react.useState)(null), i4 = adjustScale(H2 ? q2 : add(q2, Z2), (n4 == null ? void 0 : n4.rect) ?? null, F2), a4 = (0, import_react.useRef)(null), o4 = (0, import_react.useCallback)((e2, r2) => {
|
|
43815
43831
|
let { sensor: c2, options: l2 } = r2;
|
|
43816
43832
|
if (R.current == null) return;
|
|
43817
43833
|
let u2 = E.get(R.current);
|
|
43818
43834
|
if (!u2) return;
|
|
43819
43835
|
let d2 = e2.nativeEvent;
|
|
43820
|
-
|
|
43836
|
+
a4.current = new c2({
|
|
43821
43837
|
active: R.current,
|
|
43822
43838
|
activeNode: u2,
|
|
43823
43839
|
event: d2,
|
|
43824
43840
|
options: l2,
|
|
43825
|
-
context:
|
|
43841
|
+
context: L2,
|
|
43826
43842
|
onAbort(e3) {
|
|
43827
43843
|
if (!E.get(e3)) return;
|
|
43828
43844
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -43867,7 +43883,7 @@ ${c}
|
|
|
43867
43883
|
}), v({
|
|
43868
43884
|
type: "onDragStart",
|
|
43869
43885
|
event: u3
|
|
43870
|
-
}), B(
|
|
43886
|
+
}), B(a4.current), W(d2);
|
|
43871
43887
|
});
|
|
43872
43888
|
},
|
|
43873
43889
|
onMove(e3) {
|
|
@@ -43881,7 +43897,7 @@ ${c}
|
|
|
43881
43897
|
});
|
|
43882
43898
|
function f2(e3) {
|
|
43883
43899
|
return async function() {
|
|
43884
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
43900
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = L2.current, f3 = null;
|
|
43885
43901
|
if (r3 && u3) {
|
|
43886
43902
|
let { cancelDrop: p2 } = G.current;
|
|
43887
43903
|
f3 = {
|
|
@@ -43895,7 +43911,7 @@ ${c}
|
|
|
43895
43911
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43896
43912
|
_({
|
|
43897
43913
|
type: e3
|
|
43898
|
-
}), S(Status.Uninitialized),
|
|
43914
|
+
}), S(Status.Uninitialized), r4(null), B(null), W(null), a4.current = null;
|
|
43899
43915
|
let r5 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
43900
43916
|
if (f3) {
|
|
43901
43917
|
let e5 = G.current[r5];
|
|
@@ -43909,7 +43925,7 @@ ${c}
|
|
|
43909
43925
|
}
|
|
43910
43926
|
}, [
|
|
43911
43927
|
E
|
|
43912
|
-
]),
|
|
43928
|
+
]), s4 = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
43913
43929
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
43914
43930
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
43915
43931
|
let f2 = {
|
|
@@ -43917,26 +43933,26 @@ ${c}
|
|
|
43917
43933
|
};
|
|
43918
43934
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
43919
43935
|
capturedBy: r2.sensor
|
|
43920
|
-
}, R.current = l2,
|
|
43936
|
+
}, R.current = l2, o4(c2, r2));
|
|
43921
43937
|
}, [
|
|
43922
43938
|
E,
|
|
43923
|
-
|
|
43939
|
+
o4
|
|
43924
43940
|
]));
|
|
43925
43941
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
43926
|
-
|
|
43942
|
+
F2 && b === Status.Initializing && S(Status.Initialized);
|
|
43927
43943
|
}, [
|
|
43928
|
-
|
|
43944
|
+
F2,
|
|
43929
43945
|
b
|
|
43930
43946
|
]), (0, import_react.useEffect)(() => {
|
|
43931
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
43947
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = L2.current;
|
|
43932
43948
|
if (!r2 || !c2) return;
|
|
43933
43949
|
let d2 = {
|
|
43934
43950
|
active: r2,
|
|
43935
43951
|
activatorEvent: c2,
|
|
43936
43952
|
collisions: l2,
|
|
43937
43953
|
delta: {
|
|
43938
|
-
x:
|
|
43939
|
-
y:
|
|
43954
|
+
x: Q2.x,
|
|
43955
|
+
y: Q2.y
|
|
43940
43956
|
},
|
|
43941
43957
|
over: u2
|
|
43942
43958
|
};
|
|
@@ -43947,12 +43963,12 @@ ${c}
|
|
|
43947
43963
|
});
|
|
43948
43964
|
});
|
|
43949
43965
|
}, [
|
|
43950
|
-
|
|
43951
|
-
|
|
43966
|
+
Q2.x,
|
|
43967
|
+
Q2.y
|
|
43952
43968
|
]), (0, import_react.useEffect)(() => {
|
|
43953
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
43969
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = L2.current;
|
|
43954
43970
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
43955
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
43971
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(t4), p2 = f2 && f2.rect.current ? {
|
|
43956
43972
|
id: f2.id,
|
|
43957
43973
|
rect: f2.rect.current,
|
|
43958
43974
|
data: f2.data,
|
|
@@ -43968,127 +43984,127 @@ ${c}
|
|
|
43968
43984
|
over: p2
|
|
43969
43985
|
};
|
|
43970
43986
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43971
|
-
|
|
43987
|
+
r4(p2), d2 == null ? void 0 : d2(m2), v({
|
|
43972
43988
|
type: "onDragOver",
|
|
43973
43989
|
event: m2
|
|
43974
43990
|
});
|
|
43975
43991
|
});
|
|
43976
43992
|
}, [
|
|
43977
|
-
|
|
43993
|
+
t4
|
|
43978
43994
|
]), useIsomorphicLayoutEffect(() => {
|
|
43979
|
-
|
|
43995
|
+
L2.current = {
|
|
43980
43996
|
activatorEvent: H,
|
|
43981
43997
|
active: L,
|
|
43982
43998
|
activeNode: Z,
|
|
43983
|
-
collisionRect:
|
|
43984
|
-
collisions:
|
|
43985
|
-
droppableRects:
|
|
43999
|
+
collisionRect: $2,
|
|
44000
|
+
collisions: e4,
|
|
44001
|
+
droppableRects: k2,
|
|
43986
44002
|
draggableNodes: E,
|
|
43987
|
-
draggingNode:
|
|
43988
|
-
draggingNodeRect:
|
|
44003
|
+
draggingNode: B2,
|
|
44004
|
+
draggingNodeRect: V2,
|
|
43989
44005
|
droppableContainers: j,
|
|
43990
|
-
over:
|
|
43991
|
-
scrollableAncestors:
|
|
43992
|
-
scrollAdjustedTranslate:
|
|
44006
|
+
over: n4,
|
|
44007
|
+
scrollableAncestors: G2,
|
|
44008
|
+
scrollAdjustedTranslate: Q2
|
|
43993
44009
|
}, I.current = {
|
|
43994
|
-
initial:
|
|
43995
|
-
translated:
|
|
44010
|
+
initial: V2,
|
|
44011
|
+
translated: $2
|
|
43996
44012
|
};
|
|
43997
44013
|
}, [
|
|
43998
44014
|
L,
|
|
43999
44015
|
Z,
|
|
44000
|
-
|
|
44001
|
-
|
|
44016
|
+
e4,
|
|
44017
|
+
$2,
|
|
44002
44018
|
E,
|
|
44003
|
-
|
|
44004
|
-
L2,
|
|
44005
|
-
T2,
|
|
44006
|
-
j,
|
|
44007
|
-
Q2,
|
|
44019
|
+
B2,
|
|
44008
44020
|
V2,
|
|
44009
|
-
|
|
44021
|
+
k2,
|
|
44022
|
+
j,
|
|
44023
|
+
n4,
|
|
44024
|
+
G2,
|
|
44025
|
+
Q2
|
|
44010
44026
|
]), useAutoScroller({
|
|
44011
|
-
...
|
|
44027
|
+
...N2,
|
|
44012
44028
|
delta: O,
|
|
44013
|
-
draggingRect:
|
|
44014
|
-
pointerCoordinates:
|
|
44015
|
-
scrollableAncestors:
|
|
44016
|
-
scrollableAncestorRects:
|
|
44029
|
+
draggingRect: $2,
|
|
44030
|
+
pointerCoordinates: J2,
|
|
44031
|
+
scrollableAncestors: G2,
|
|
44032
|
+
scrollableAncestorRects: K2
|
|
44017
44033
|
});
|
|
44018
|
-
let
|
|
44034
|
+
let c4 = (0, import_react.useMemo)(() => ({
|
|
44019
44035
|
active: L,
|
|
44020
44036
|
activeNode: Z,
|
|
44021
|
-
activeNodeRect:
|
|
44037
|
+
activeNodeRect: F2,
|
|
44022
44038
|
activatorEvent: H,
|
|
44023
|
-
collisions:
|
|
44024
|
-
containerNodeRect:
|
|
44025
|
-
dragOverlay:
|
|
44039
|
+
collisions: e4,
|
|
44040
|
+
containerNodeRect: I2,
|
|
44041
|
+
dragOverlay: z2,
|
|
44026
44042
|
draggableNodes: E,
|
|
44027
44043
|
droppableContainers: j,
|
|
44028
|
-
droppableRects:
|
|
44029
|
-
over:
|
|
44030
|
-
measureDroppableContainers:
|
|
44031
|
-
scrollableAncestors:
|
|
44032
|
-
scrollableAncestorRects:
|
|
44033
|
-
measuringConfiguration:
|
|
44034
|
-
measuringScheduled:
|
|
44035
|
-
windowRect:
|
|
44044
|
+
droppableRects: k2,
|
|
44045
|
+
over: n4,
|
|
44046
|
+
measureDroppableContainers: A2,
|
|
44047
|
+
scrollableAncestors: G2,
|
|
44048
|
+
scrollableAncestorRects: K2,
|
|
44049
|
+
measuringConfiguration: O2,
|
|
44050
|
+
measuringScheduled: j2,
|
|
44051
|
+
windowRect: W2
|
|
44036
44052
|
}), [
|
|
44037
44053
|
L,
|
|
44038
44054
|
Z,
|
|
44039
|
-
j2,
|
|
44040
|
-
H,
|
|
44041
|
-
X2,
|
|
44042
|
-
M2,
|
|
44043
44055
|
F2,
|
|
44056
|
+
H,
|
|
44057
|
+
e4,
|
|
44058
|
+
I2,
|
|
44059
|
+
z2,
|
|
44044
44060
|
E,
|
|
44045
44061
|
j,
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
|
|
44050
|
-
|
|
44051
|
-
|
|
44052
|
-
|
|
44053
|
-
|
|
44054
|
-
]),
|
|
44062
|
+
k2,
|
|
44063
|
+
n4,
|
|
44064
|
+
A2,
|
|
44065
|
+
G2,
|
|
44066
|
+
K2,
|
|
44067
|
+
O2,
|
|
44068
|
+
j2,
|
|
44069
|
+
W2
|
|
44070
|
+
]), l4 = (0, import_react.useMemo)(() => ({
|
|
44055
44071
|
activatorEvent: H,
|
|
44056
|
-
activators:
|
|
44072
|
+
activators: s4,
|
|
44057
44073
|
active: L,
|
|
44058
|
-
activeNodeRect:
|
|
44074
|
+
activeNodeRect: F2,
|
|
44059
44075
|
ariaDescribedById: {
|
|
44060
44076
|
draggable: q
|
|
44061
44077
|
},
|
|
44062
44078
|
dispatch: _,
|
|
44063
44079
|
draggableNodes: E,
|
|
44064
|
-
over:
|
|
44065
|
-
measureDroppableContainers:
|
|
44080
|
+
over: n4,
|
|
44081
|
+
measureDroppableContainers: A2
|
|
44066
44082
|
}), [
|
|
44067
44083
|
H,
|
|
44068
|
-
|
|
44084
|
+
s4,
|
|
44069
44085
|
L,
|
|
44070
|
-
|
|
44086
|
+
F2,
|
|
44071
44087
|
_,
|
|
44072
44088
|
q,
|
|
44073
44089
|
E,
|
|
44074
|
-
|
|
44075
|
-
|
|
44090
|
+
n4,
|
|
44091
|
+
A2
|
|
44076
44092
|
]);
|
|
44077
44093
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
44078
44094
|
value: y
|
|
44079
44095
|
}, import_react.createElement(InternalContext.Provider, {
|
|
44080
|
-
value:
|
|
44096
|
+
value: l4
|
|
44081
44097
|
}, import_react.createElement(PublicContext.Provider, {
|
|
44082
|
-
value:
|
|
44098
|
+
value: c4
|
|
44083
44099
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
44084
|
-
value:
|
|
44100
|
+
value: i4
|
|
44085
44101
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
44086
44102
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
44087
44103
|
})), import_react.createElement(Accessibility, {
|
|
44088
44104
|
...c,
|
|
44089
44105
|
hiddenTextDescribedById: q
|
|
44090
44106
|
}));
|
|
44091
|
-
function
|
|
44107
|
+
function u4() {
|
|
44092
44108
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
44093
44109
|
return typeof l == "object" ? {
|
|
44094
44110
|
...l,
|
|
@@ -44616,7 +44632,7 @@ ${c}
|
|
|
44616
44632
|
updateMeasurementsFor: I,
|
|
44617
44633
|
...m
|
|
44618
44634
|
}
|
|
44619
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
44635
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: D2, listeners: O2, isDragging: k2, over: A2, setActivatorNodeRef: j2, transform: Z } = useDraggable({
|
|
44620
44636
|
id: f,
|
|
44621
44637
|
data: M,
|
|
44622
44638
|
attributes: {
|
|
@@ -44624,60 +44640,60 @@ ${c}
|
|
|
44624
44640
|
...c
|
|
44625
44641
|
},
|
|
44626
44642
|
disabled: O.draggable
|
|
44627
|
-
}),
|
|
44643
|
+
}), M2 = useCombinedRefs(B, D2), N2 = !!H, P2 = N2 && !b && isValidIndex(v) && isValidIndex(w), F2 = !T && k2, I2 = P2 ? (F2 && P2 ? Z : null) ?? (p ?? E)({
|
|
44628
44644
|
rects: S,
|
|
44629
44645
|
activeNodeRect: G,
|
|
44630
44646
|
activeIndex: v,
|
|
44631
44647
|
overIndex: w,
|
|
44632
44648
|
index: j
|
|
44633
|
-
}) : null,
|
|
44649
|
+
}) : null, L2 = isValidIndex(v) && isValidIndex(w) ? d({
|
|
44634
44650
|
id: f,
|
|
44635
44651
|
items: g,
|
|
44636
44652
|
activeIndex: v,
|
|
44637
44653
|
overIndex: w
|
|
44638
|
-
}) : j,
|
|
44639
|
-
activeId:
|
|
44654
|
+
}) : j, R2 = H == null ? void 0 : H.id, z2 = (0, import_react.useRef)({
|
|
44655
|
+
activeId: R2,
|
|
44640
44656
|
items: g,
|
|
44641
|
-
newIndex:
|
|
44657
|
+
newIndex: L2,
|
|
44642
44658
|
containerId: _
|
|
44643
|
-
}),
|
|
44659
|
+
}), B2 = g !== z2.current.items, V2 = r({
|
|
44644
44660
|
active: H,
|
|
44645
44661
|
containerId: _,
|
|
44646
|
-
isDragging:
|
|
44647
|
-
isSorting:
|
|
44662
|
+
isDragging: k2,
|
|
44663
|
+
isSorting: N2,
|
|
44648
44664
|
id: f,
|
|
44649
44665
|
index: j,
|
|
44650
44666
|
items: g,
|
|
44651
|
-
newIndex:
|
|
44652
|
-
previousItems:
|
|
44653
|
-
previousContainerId:
|
|
44667
|
+
newIndex: z2.current.newIndex,
|
|
44668
|
+
previousItems: z2.current.items,
|
|
44669
|
+
previousContainerId: z2.current.containerId,
|
|
44654
44670
|
transition: h,
|
|
44655
|
-
wasDragging:
|
|
44656
|
-
}),
|
|
44657
|
-
disabled: !
|
|
44671
|
+
wasDragging: z2.current.activeId != null
|
|
44672
|
+
}), H2 = useDerivedTransform({
|
|
44673
|
+
disabled: !V2,
|
|
44658
44674
|
index: j,
|
|
44659
44675
|
node: R,
|
|
44660
44676
|
rect: L
|
|
44661
44677
|
});
|
|
44662
44678
|
return (0, import_react.useEffect)(() => {
|
|
44663
|
-
|
|
44679
|
+
N2 && z2.current.newIndex !== L2 && (z2.current.newIndex = L2), _ !== z2.current.containerId && (z2.current.containerId = _), g !== z2.current.items && (z2.current.items = g);
|
|
44664
44680
|
}, [
|
|
44665
|
-
k2,
|
|
44666
44681
|
N2,
|
|
44682
|
+
L2,
|
|
44667
44683
|
_,
|
|
44668
44684
|
g
|
|
44669
44685
|
]), (0, import_react.useEffect)(() => {
|
|
44670
|
-
if (
|
|
44671
|
-
if (
|
|
44672
|
-
|
|
44686
|
+
if (R2 === z2.current.activeId) return;
|
|
44687
|
+
if (R2 != null && z2.current.activeId == null) {
|
|
44688
|
+
z2.current.activeId = R2;
|
|
44673
44689
|
return;
|
|
44674
44690
|
}
|
|
44675
44691
|
let e2 = setTimeout(() => {
|
|
44676
|
-
|
|
44692
|
+
z2.current.activeId = R2;
|
|
44677
44693
|
}, 50);
|
|
44678
44694
|
return () => clearTimeout(e2);
|
|
44679
44695
|
}, [
|
|
44680
|
-
|
|
44696
|
+
R2
|
|
44681
44697
|
]), {
|
|
44682
44698
|
active: H,
|
|
44683
44699
|
activeIndex: v,
|
|
@@ -44685,25 +44701,25 @@ ${c}
|
|
|
44685
44701
|
data: M,
|
|
44686
44702
|
rect: L,
|
|
44687
44703
|
index: j,
|
|
44688
|
-
newIndex:
|
|
44704
|
+
newIndex: L2,
|
|
44689
44705
|
items: g,
|
|
44690
44706
|
isOver: z,
|
|
44691
|
-
isSorting:
|
|
44692
|
-
isDragging:
|
|
44693
|
-
listeners:
|
|
44707
|
+
isSorting: N2,
|
|
44708
|
+
isDragging: k2,
|
|
44709
|
+
listeners: O2,
|
|
44694
44710
|
node: R,
|
|
44695
44711
|
overIndex: w,
|
|
44696
|
-
over:
|
|
44697
|
-
setNodeRef:
|
|
44698
|
-
setActivatorNodeRef:
|
|
44712
|
+
over: A2,
|
|
44713
|
+
setNodeRef: M2,
|
|
44714
|
+
setActivatorNodeRef: j2,
|
|
44699
44715
|
setDroppableNodeRef: B,
|
|
44700
|
-
setDraggableNodeRef:
|
|
44701
|
-
transform:
|
|
44702
|
-
transition:
|
|
44716
|
+
setDraggableNodeRef: D2,
|
|
44717
|
+
transform: H2 ?? I2,
|
|
44718
|
+
transition: U2()
|
|
44703
44719
|
};
|
|
44704
|
-
function
|
|
44705
|
-
if (
|
|
44706
|
-
if (!(
|
|
44720
|
+
function U2() {
|
|
44721
|
+
if (H2 || B2 && z2.current.newIndex === j) return disabledTransition;
|
|
44722
|
+
if (!(F2 && !isKeyboardEvent(W) || !h) && (N2 || V2)) return CSS$1.Transition.toString({
|
|
44707
44723
|
...h,
|
|
44708
44724
|
property: transitionProperty
|
|
44709
44725
|
});
|
|
@@ -45326,7 +45342,7 @@ ${c}
|
|
|
45326
45342
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
45327
45343
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
45328
45344
|
}, r[2] = z) : z = r[2], (0, import_react.useLayoutEffect)(z), !I && isInternalCellName(b)) return null;
|
|
45329
|
-
let B, H, W, G, q,
|
|
45345
|
+
let B, H, W, G, q, D2, O2, k2, A2, j2;
|
|
45330
45346
|
if (r[3] !== S || r[4] !== j || r[5] !== M || r[6] !== I || r[7] !== _ || r[8] !== d || r[9] !== R || r[10] !== E || r[11] !== O || r[12] !== T || r[13] !== L || r[14] !== f || r[15] !== u || r[16] !== y || r[17] !== m || r[18] !== l) {
|
|
45331
45347
|
let e2 = M.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), b2;
|
|
45332
45348
|
r[29] === M ? b2 = r[30] : (b2 = () => M.filter(_temp3$1).map(_temp4$1).join("\n"), r[29] = M, r[30] = b2);
|
|
@@ -45372,11 +45388,11 @@ ${c}
|
|
|
45372
45388
|
})
|
|
45373
45389
|
})
|
|
45374
45390
|
]
|
|
45375
|
-
}), r[31] = z2, r[32] = I, r[33] = d, r[34] = R, r[35] = f, r[36] = u, r[37] = l, r[38] = H) : H = r[38], W = y ? "This console output is stale" : void 0, G = "console-output-area", q = c,
|
|
45376
|
-
let Z2 = y && "marimo-output-stale",
|
|
45377
|
-
r[39] !== j || r[40] !== Z2 || r[41] !==
|
|
45391
|
+
}), r[31] = z2, r[32] = I, r[33] = d, r[34] = R, r[35] = f, r[36] = u, r[37] = l, r[38] = H) : H = r[38], W = y ? "This console output is stale" : void 0, G = "console-output-area", q = c, D2 = L, O2 = 0;
|
|
45392
|
+
let Z2 = y && "marimo-output-stale", M22 = I ? "p-5" : "p-3";
|
|
45393
|
+
r[39] !== j || r[40] !== Z2 || r[41] !== M22 ? (k2 = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", Z2, M22, j), r[39] = j, r[40] = Z2, r[41] = M22, r[42] = k2) : k2 = r[42], r[43] === d ? A2 = r[44] : (A2 = d ? {
|
|
45378
45394
|
maxHeight: "none"
|
|
45379
|
-
} : void 0, r[43] = d, r[44] =
|
|
45395
|
+
} : void 0, r[43] = d, r[44] = A2), j2 = e2.map((e3, r2) => {
|
|
45380
45396
|
if (e3.channel === "pdb") return null;
|
|
45381
45397
|
if (e3.channel === "stdin") {
|
|
45382
45398
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -45404,36 +45420,36 @@ ${c}
|
|
|
45404
45420
|
wrapText: l
|
|
45405
45421
|
})
|
|
45406
45422
|
}, r2);
|
|
45407
|
-
}), r[3] = S, r[4] = j, r[5] = M, r[6] = I, r[7] = _, r[8] = d, r[9] = R, r[10] = E, r[11] = O, r[12] = T, r[13] = L, r[14] = f, r[15] = u, r[16] = y, r[17] = m, r[18] = l, r[19] = B, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
45408
|
-
} else B = r[19], H = r[20], W = r[21], G = r[22], q = r[23],
|
|
45423
|
+
}), r[3] = S, r[4] = j, r[5] = M, r[6] = I, r[7] = _, r[8] = d, r[9] = R, r[10] = E, r[11] = O, r[12] = T, r[13] = L, r[14] = f, r[15] = u, r[16] = y, r[17] = m, r[18] = l, r[19] = B, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = D2, r[25] = O2, r[26] = k2, r[27] = A2, r[28] = j2;
|
|
45424
|
+
} else B = r[19], H = r[20], W = r[21], G = r[22], q = r[23], D2 = r[24], O2 = r[25], k2 = r[26], A2 = r[27], j2 = r[28];
|
|
45409
45425
|
let Z;
|
|
45410
45426
|
r[45] !== S || r[46] !== b ? (Z = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
45411
45427
|
value: b,
|
|
45412
45428
|
cellId: S,
|
|
45413
45429
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
45414
45430
|
}), r[45] = S, r[46] = b, r[47] = Z) : Z = r[47];
|
|
45415
|
-
let
|
|
45416
|
-
r[48] !== Z || r[49] !== W || r[50] !== G || r[51] !== q || r[52] !==
|
|
45431
|
+
let M2;
|
|
45432
|
+
r[48] !== Z || r[49] !== W || r[50] !== G || r[51] !== q || r[52] !== D2 || r[53] !== O2 || r[54] !== k2 || r[55] !== A2 || r[56] !== j2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45417
45433
|
title: W,
|
|
45418
45434
|
"data-testid": G,
|
|
45419
45435
|
ref: q,
|
|
45420
|
-
...
|
|
45421
|
-
tabIndex:
|
|
45422
|
-
className:
|
|
45423
|
-
style:
|
|
45436
|
+
...D2,
|
|
45437
|
+
tabIndex: O2,
|
|
45438
|
+
className: k2,
|
|
45439
|
+
style: A2,
|
|
45424
45440
|
children: [
|
|
45425
|
-
|
|
45441
|
+
j2,
|
|
45426
45442
|
Z
|
|
45427
45443
|
]
|
|
45428
|
-
}), r[48] = Z, r[49] = W, r[50] = G, r[51] = q, r[52] =
|
|
45429
|
-
let
|
|
45430
|
-
return r[58] !== B || r[59] !== H || r[60] !==
|
|
45444
|
+
}), r[48] = Z, r[49] = W, r[50] = G, r[51] = q, r[52] = D2, r[53] = O2, r[54] = k2, r[55] = A2, r[56] = j2, r[57] = M2) : M2 = r[57];
|
|
45445
|
+
let N2;
|
|
45446
|
+
return r[58] !== B || r[59] !== H || r[60] !== M2 ? (N2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45431
45447
|
className: B,
|
|
45432
45448
|
children: [
|
|
45433
45449
|
H,
|
|
45434
|
-
|
|
45450
|
+
M2
|
|
45435
45451
|
]
|
|
45436
|
-
}), r[58] = B, r[59] = H, r[60] =
|
|
45452
|
+
}), r[58] = B, r[59] = H, r[60] = M2, r[61] = N2) : N2 = r[61], N2;
|
|
45437
45453
|
}, StdInput = (e) => {
|
|
45438
45454
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
45439
45455
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -45525,7 +45541,7 @@ ${c}
|
|
|
45525
45541
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
45526
45542
|
}
|
|
45527
45543
|
}
|
|
45528
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.3-
|
|
45544
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.3-dev17"), showCodeInRunModeAtom = atom(true);
|
|
45529
45545
|
atom(null);
|
|
45530
45546
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
45531
45547
|
constructor() {
|
|
@@ -45885,8 +45901,8 @@ ${c}
|
|
|
45885
45901
|
cellId: d,
|
|
45886
45902
|
debuggerActive: false
|
|
45887
45903
|
}), r[30] = d, r[31] = l, r[32] = T, r[33] = I, r[34] = S2) : S2 = r[34];
|
|
45888
|
-
let
|
|
45889
|
-
return r[35] !== H || r[36] !== S2 || r[37] !== h2 || r[38] !== _2 || r[39] !== v2 || r[40] !== y2 ? (
|
|
45904
|
+
let w2;
|
|
45905
|
+
return r[35] !== H || r[36] !== S2 || r[37] !== h2 || r[38] !== _2 || r[39] !== v2 || r[40] !== y2 ? (w2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45890
45906
|
tabIndex: -1,
|
|
45891
45907
|
ref: j,
|
|
45892
45908
|
className: H,
|
|
@@ -45897,29 +45913,29 @@ ${c}
|
|
|
45897
45913
|
y2,
|
|
45898
45914
|
S2
|
|
45899
45915
|
]
|
|
45900
|
-
}), r[35] = H, r[36] = S2, r[37] = h2, r[38] = _2, r[39] = v2, r[40] = y2, r[41] =
|
|
45916
|
+
}), r[35] = H, r[36] = S2, r[37] = h2, r[38] = _2, r[39] = v2, r[40] = y2, r[41] = w2) : w2 = r[41], w2;
|
|
45901
45917
|
}
|
|
45902
45918
|
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp6);
|
|
45903
45919
|
if ((h || _ || m || W) && !G) return null;
|
|
45904
45920
|
let q;
|
|
45905
45921
|
r[42] !== d || r[43] !== T ? (q = cellDomProps(d, T), r[42] = d, r[43] = T, r[44] = q) : q = r[44];
|
|
45906
|
-
let
|
|
45907
|
-
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !==
|
|
45908
|
-
allowExpand:
|
|
45922
|
+
let D2 = w === "edit", O2;
|
|
45923
|
+
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !== D2 ? (O2 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
45924
|
+
allowExpand: D2,
|
|
45909
45925
|
output: c,
|
|
45910
45926
|
className: CSSClasses.outputArea,
|
|
45911
45927
|
cellId: d,
|
|
45912
45928
|
stale: I,
|
|
45913
45929
|
loading: R
|
|
45914
|
-
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] =
|
|
45915
|
-
let
|
|
45916
|
-
return r[51] !== H || r[52] !== q || r[53] !==
|
|
45930
|
+
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] = D2, r[50] = O2) : O2 = r[50];
|
|
45931
|
+
let k2;
|
|
45932
|
+
return r[51] !== H || r[52] !== q || r[53] !== O2 ? (k2 = (0, import_jsx_runtime.jsx)("div", {
|
|
45917
45933
|
tabIndex: -1,
|
|
45918
45934
|
ref: j,
|
|
45919
45935
|
className: H,
|
|
45920
45936
|
...q,
|
|
45921
|
-
children:
|
|
45922
|
-
}), r[51] = H, r[52] = q, r[53] =
|
|
45937
|
+
children: O2
|
|
45938
|
+
}), r[51] = H, r[52] = q, r[53] = O2, r[54] = k2) : k2 = r[54], k2;
|
|
45923
45939
|
});
|
|
45924
45940
|
VerticalCell.displayName = "VerticalCell";
|
|
45925
45941
|
const VerticalLayoutPlugin = {
|
|
@@ -46964,16 +46980,18 @@ ${r}
|
|
|
46964
46980
|
});
|
|
46965
46981
|
}
|
|
46966
46982
|
startSessionsForAllApps() {
|
|
46983
|
+
var _a3;
|
|
46967
46984
|
let e = parseMarimoIslandApps(this.root);
|
|
46968
46985
|
Logger.debug(`Starting sessions for ${e.length} app(s):`, e.map((e2) => `${e2.id} (${e2.cells.length} cells)`));
|
|
46969
|
-
|
|
46970
|
-
|
|
46971
|
-
|
|
46986
|
+
let r = (_a3 = e.length === 1 ? getMarimoExportContext() : void 0) == null ? void 0 : _a3.notebookCode;
|
|
46987
|
+
for (let c of e) {
|
|
46988
|
+
let e2 = r || createMarimoFile(c);
|
|
46989
|
+
Logger.debug(`App ${c.id} marimo file:
|
|
46972
46990
|
`, e2), this.startSession({
|
|
46973
46991
|
code: e2,
|
|
46974
|
-
appId:
|
|
46992
|
+
appId: c.id
|
|
46975
46993
|
}).catch((e3) => {
|
|
46976
|
-
Logger.error(`Failed to start session for app ${
|
|
46994
|
+
Logger.error(`Failed to start session for app ${c.id}:`, e3);
|
|
46977
46995
|
});
|
|
46978
46996
|
}
|
|
46979
46997
|
}
|