@marimo-team/islands 0.23.5-dev1 → 0.23.5-dev10
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/{slide-form-CYU9AOO4.js → code-visibility-CXDNwlYU.js} +849 -784
- package/dist/main.js +1039 -1073
- package/dist/{reveal-component-DK-5_Ei4.js → reveal-component-CEDMcYw2.js} +575 -527
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/data-table/export-actions.tsx +15 -1
- package/src/components/editor/file-tree/file-explorer.tsx +38 -8
- package/src/components/editor/file-tree/file-operations.tsx +19 -2
- package/src/components/editor/notebook-cell.tsx +33 -23
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +3 -5
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -17
- package/src/components/slides/reveal-component.tsx +159 -47
- package/src/components/slides/reveal-slides.css +8 -0
- package/src/components/slides/slide-cell-view.tsx +182 -0
- package/src/components/slides/slide-form.tsx +2 -0
- package/src/core/cells/utils.ts +45 -0
- package/src/core/islands/stubs/slide-cell-view.tsx +30 -0
- package/src/core/meta/__tests__/code-visibility.test.tsx +141 -0
- package/src/core/meta/code-visibility.ts +48 -0
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as useCellActions, At as DeferredRequestRegistry, B as safeExtractSet
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-CO1e63h_.js";
|
|
27
27
|
import { o as useSize, s as Root$3, u as createLucideIcon } from "./dist-ESg7xyoD.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-BKWq0wn2.js";
|
|
29
|
-
import { $ as
|
|
29
|
+
import { $ as getPageIndexForRow, A as contextAwarePanelType, At as GripHorizontal, B as TableHead, Bt as ChevronsDownUp, C as useInternalStateWithSync, Ct as RenderTextWithLinks, D as PANEL_TYPES, Dt as getStaticVirtualFiles, E as ContextAwarePanelItem, Et as EmotionCacheProvider, F as Fill, Ft as Download, G as inferFieldTypes, H as TableRow, Ht as ArrowDownWideNarrow, I as Provider$1, It as Code, J as ColumnChartSpecModel, K as renderCellValue, L as Table, Lt as ChevronsUpDown, M as SlotNames, Mt as EyeOff, N as slotsController, O as contextAwarePanelOpen, Ot as isStaticNotebook, P as Toggle, Pt as Ellipsis, Q as filtersToFilterGroup, R as TableBody, Rt as ChevronsRight, S as prettifyRowCount, St as useOverflowDetection, T as ComboboxItem, Tt as HtmlOutput, U as NAMELESS_COLUMN_PREFIX, V as TableHeader, Vt as ChevronLeft, W as generateColumns, X as useIntersectionObserver, Y as DelayMount, Z as usePrevious$1, _ as downloadBlob, _t as TabsTrigger, at as toFieldTypes, b as Filenames, bt as ChartLoadingState, c as Slide, ct as CommandEmpty, d as JsonOutput, dt as CommandList, et as loadTableAndRawData, f as OutputArea, ft as CommandSeparator, g as ADD_PRINTING_CLASS, gt as TabsList, h as InstallPackageButton, ht as TabsContent, it as TOO_MANY_ROWS, j as isCellAwareAtom, jt as Funnel, k as contextAwarePanelOwner, kt as TextWrap, l as RadioGroup, lt as CommandInput, m as DataTable, mt as Tabs, n as marimoVersionAtom, nt as INDEX_COLUMN_NAME, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as getMimeValues, p as OutputRenderer, pt as Maps, q as ColumnChartContext, r as showCodeInRunModeAtom, rt as SELECT_COLUMN_ID, st as Command, t as useNotebookCodeAvailable, tt as loadTableData, u as RadioGroupItem, ut as CommandItem, v as downloadByURL, vt as ChartErrorState, w as Combobox, wt as Kbd, x as prettifyRowColumnCount, xt as LazyVegaEmbed, y as downloadHTMLAsImage, yt as ChartInfoState, z as TableCell, zt as ChevronsLeft, __tla as __tla_2 } from "./code-visibility-CXDNwlYU.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-smVfjLNI.js";
|
|
31
31
|
import { n as $fb18d541ea1ad717$export$ad991b66133851cf, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-B3mCQMP3.js";
|
|
32
32
|
import { t as Check } from "./check-CFM2mVDr.js";
|
|
@@ -1688,21 +1688,6 @@ let __tla = Promise.all([
|
|
|
1688
1688
|
key: "e7oirm"
|
|
1689
1689
|
}
|
|
1690
1690
|
]
|
|
1691
|
-
]), Code = createLucideIcon("code", [
|
|
1692
|
-
[
|
|
1693
|
-
"path",
|
|
1694
|
-
{
|
|
1695
|
-
d: "m16 18 6-6-6-6",
|
|
1696
|
-
key: "eg8j8"
|
|
1697
|
-
}
|
|
1698
|
-
],
|
|
1699
|
-
[
|
|
1700
|
-
"path",
|
|
1701
|
-
{
|
|
1702
|
-
d: "m8 6-6 6 6 6",
|
|
1703
|
-
key: "ppft3o"
|
|
1704
|
-
}
|
|
1705
|
-
]
|
|
1706
1691
|
]), Combine = createLucideIcon("combine", [
|
|
1707
1692
|
[
|
|
1708
1693
|
"path",
|
|
@@ -3811,21 +3796,21 @@ Defaulting to \`null\`.`;
|
|
|
3811
3796
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, r, c = {}) {
|
|
3812
3797
|
let { block: l = "nearest", inline: u = "nearest" } = c;
|
|
3813
3798
|
if (e === r) return;
|
|
3814
|
-
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, Z = p.right + O,
|
|
3815
|
-
g.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
3816
|
-
let
|
|
3817
|
-
if (
|
|
3818
|
-
else if (
|
|
3819
|
-
else if (
|
|
3820
|
-
else if (
|
|
3821
|
-
let e2 = W -
|
|
3799
|
+
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, Z = p.right + O, H0 = e === _ ? 0 : B + H, U0 = e === _ ? 0 : R + z, W0 = e.offsetWidth - e.clientWidth - H0, G0 = e.offsetHeight - e.clientHeight - U0, K0 = v + R + j, q0 = y - z - M - G0, J0 = b + B + I, Y0 = S - H - L;
|
|
3800
|
+
g.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? J0 += W0 : Y0 -= W0;
|
|
3801
|
+
let X0 = W < K0 || G > q0, Z0 = q < J0 || Z > Y0;
|
|
3802
|
+
if (X0 && l === "start") d += W - K0;
|
|
3803
|
+
else if (X0 && l === "center") d += (W + G) / 2 - (K0 + q0) / 2;
|
|
3804
|
+
else if (X0 && l === "end") d += G - q0;
|
|
3805
|
+
else if (X0 && l === "nearest") {
|
|
3806
|
+
let e2 = W - K0, r2 = G - q0;
|
|
3822
3807
|
d += Math.abs(e2) <= Math.abs(r2) ? e2 : r2;
|
|
3823
3808
|
}
|
|
3824
|
-
if (
|
|
3825
|
-
else if (
|
|
3826
|
-
else if (
|
|
3827
|
-
else if (
|
|
3828
|
-
let e2 = q -
|
|
3809
|
+
if (Z0 && u === "start") f += q - J0;
|
|
3810
|
+
else if (Z0 && u === "center") f += (q + Z) / 2 - (J0 + Y0) / 2;
|
|
3811
|
+
else if (Z0 && u === "end") f += Z - Y0;
|
|
3812
|
+
else if (Z0 && u === "nearest") {
|
|
3813
|
+
let e2 = q - J0, r2 = Z - Y0;
|
|
3829
3814
|
f += Math.abs(e2) <= Math.abs(r2) ? e2 : r2;
|
|
3830
3815
|
}
|
|
3831
3816
|
e.scrollTo({
|
|
@@ -6983,11 +6968,11 @@ Defaulting to \`null\`.`;
|
|
|
6983
6968
|
R[j] += W;
|
|
6984
6969
|
let G = $edcf132a9284368a$var$getMaxHeight(R, p, h, v, u, d, c.height, H, m, w, T);
|
|
6985
6970
|
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;
|
|
6986
|
-
let q = {}, Z = r[j] - R[j] - u[$edcf132a9284368a$var$AXIS[j]],
|
|
6987
|
-
q[j] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(
|
|
6988
|
-
let
|
|
6989
|
-
x: I === "top" || I === "bottom" ? Z :
|
|
6990
|
-
y: I === "left" || I === "right" ? Z :
|
|
6971
|
+
let q = {}, Z = r[j] - R[j] - u[$edcf132a9284368a$var$AXIS[j]], H0 = Z + 0.5 * r[M], U0 = b / 2 + S, W0 = $edcf132a9284368a$var$AXIS[j] === "left" ? (u.left ?? 0) + (u.right ?? 0) : (u.top ?? 0) + (u.bottom ?? 0), G0 = c[M] - W0 - b / 2 - S;
|
|
6972
|
+
q[j] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(H0, r[j] + b / 2 - (R[j] + u[$edcf132a9284368a$var$AXIS[j]]), r[j] + r[M] - b / 2 - (R[j] + u[$edcf132a9284368a$var$AXIS[j]])), U0, G0), { placement: I, crossPlacement: L } = E, b ? Z = q[j] : L === "right" ? Z += r[M] : L === "center" && (Z += r[M] / 2);
|
|
6973
|
+
let K0 = I === "left" || I === "top" ? c[O] : 0, q0 = {
|
|
6974
|
+
x: I === "top" || I === "bottom" ? Z : K0,
|
|
6975
|
+
y: I === "left" || I === "right" ? Z : K0
|
|
6991
6976
|
};
|
|
6992
6977
|
return {
|
|
6993
6978
|
position: R,
|
|
@@ -6995,7 +6980,7 @@ Defaulting to \`null\`.`;
|
|
|
6995
6980
|
arrowOffsetLeft: q.left,
|
|
6996
6981
|
arrowOffsetTop: q.top,
|
|
6997
6982
|
placement: I,
|
|
6998
|
-
triggerAnchorPoint:
|
|
6983
|
+
triggerAnchorPoint: q0
|
|
6999
6984
|
};
|
|
7000
6985
|
}
|
|
7001
6986
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -8855,7 +8840,7 @@ Defaulting to \`null\`.`;
|
|
|
8855
8840
|
e !== (0, import_react.useMemo)(() => r.segments.find((e2) => e2.isEditable), [
|
|
8856
8841
|
r.segments
|
|
8857
8842
|
]) && !r.isInvalid && (h = void 0);
|
|
8858
|
-
let G = $bdb11010cef70236$export$f680877a34711e37(), q = !r.isDisabled && !r.isReadOnly && e.isEditable, Z = e.type === "literal" ? "" : f.of(e.type),
|
|
8843
|
+
let G = $bdb11010cef70236$export$f680877a34711e37(), q = !r.isDisabled && !r.isReadOnly && e.isEditable, Z = e.type === "literal" ? "" : f.of(e.type), H0 = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
8859
8844
|
"aria-label": `${Z}${p ? `, ${p}` : ""}${m ? ", " : ""}`,
|
|
8860
8845
|
"aria-labelledby": m
|
|
8861
8846
|
});
|
|
@@ -8864,16 +8849,16 @@ Defaulting to \`null\`.`;
|
|
|
8864
8849
|
"aria-hidden": true
|
|
8865
8850
|
}
|
|
8866
8851
|
};
|
|
8867
|
-
let
|
|
8852
|
+
let U0 = {
|
|
8868
8853
|
caretColor: "transparent"
|
|
8869
8854
|
};
|
|
8870
8855
|
if (d === "rtl") {
|
|
8871
|
-
|
|
8856
|
+
U0.unicodeBidi = "embed";
|
|
8872
8857
|
let r2 = v[e.type];
|
|
8873
|
-
(r2 === "numeric" || r2 === "2-digit") && (
|
|
8858
|
+
(r2 === "numeric" || r2 === "2-digit") && (U0.direction = "ltr");
|
|
8874
8859
|
}
|
|
8875
8860
|
return {
|
|
8876
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(S,
|
|
8861
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(S, H0, {
|
|
8877
8862
|
id: G,
|
|
8878
8863
|
...W,
|
|
8879
8864
|
"aria-invalid": r.isInvalid ? "true" : void 0,
|
|
@@ -8889,7 +8874,7 @@ Defaulting to \`null\`.`;
|
|
|
8889
8874
|
tabIndex: r.isDisabled ? void 0 : 0,
|
|
8890
8875
|
onKeyDown: E,
|
|
8891
8876
|
onFocus: B,
|
|
8892
|
-
style:
|
|
8877
|
+
style: U0,
|
|
8893
8878
|
onPointerDown(e2) {
|
|
8894
8879
|
e2.stopPropagation();
|
|
8895
8880
|
},
|
|
@@ -10167,7 +10152,7 @@ Defaulting to \`null\`.`;
|
|
|
10167
10152
|
v,
|
|
10168
10153
|
p,
|
|
10169
10154
|
m
|
|
10170
|
-
]), Z = e.isInvalid || e.validationState === "invalid" || q,
|
|
10155
|
+
]), Z = e.isInvalid || e.validationState === "invalid" || q, H0 = Z ? "invalid" : null;
|
|
10171
10156
|
return {
|
|
10172
10157
|
...j,
|
|
10173
10158
|
value: g,
|
|
@@ -10175,7 +10160,7 @@ Defaulting to \`null\`.`;
|
|
|
10175
10160
|
anchorDate: v,
|
|
10176
10161
|
setAnchorDate: R,
|
|
10177
10162
|
highlightedRange: z,
|
|
10178
|
-
validationState:
|
|
10163
|
+
validationState: H0,
|
|
10179
10164
|
isValueInvalid: Z,
|
|
10180
10165
|
selectFocusedDate() {
|
|
10181
10166
|
B(j.focusedDate);
|
|
@@ -11397,9 +11382,9 @@ Defaulting to \`null\`.`;
|
|
|
11397
11382
|
e.maxGranularity,
|
|
11398
11383
|
_,
|
|
11399
11384
|
S
|
|
11400
|
-
]), [G, q] = (0, import_react.useState)(O), [Z,
|
|
11401
|
-
(O !== G || S !==
|
|
11402
|
-
let
|
|
11385
|
+
]), [G, q] = (0, import_react.useState)(O), [Z, H0] = (0, import_react.useState)(b), [U0, W0] = (0, import_react.useState)(S);
|
|
11386
|
+
(O !== G || S !== U0 || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(b, Z)) && (j = new $f863c03ccd9aead0$export$ae165b50d181e1ef(b, S, O), q(O), H0(b), W0(S), M(j));
|
|
11387
|
+
let G0 = (r2) => {
|
|
11403
11388
|
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);
|
|
11404
11389
|
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);
|
|
11405
11390
|
else {
|
|
@@ -11415,70 +11400,70 @@ Defaulting to \`null\`.`;
|
|
|
11415
11400
|
}
|
|
11416
11401
|
M(r2);
|
|
11417
11402
|
}
|
|
11418
|
-
},
|
|
11403
|
+
}, K0 = (0, import_react.useMemo)(() => j.toValue(O ?? H).toDate(y), [
|
|
11419
11404
|
j,
|
|
11420
11405
|
y,
|
|
11421
11406
|
O,
|
|
11422
11407
|
H
|
|
11423
|
-
]),
|
|
11424
|
-
|
|
11408
|
+
]), q0 = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(K0, j, z, B, b, r, _), [
|
|
11409
|
+
K0,
|
|
11425
11410
|
z,
|
|
11426
11411
|
B,
|
|
11427
11412
|
j,
|
|
11428
11413
|
b,
|
|
11429
11414
|
r,
|
|
11430
11415
|
_
|
|
11431
|
-
]),
|
|
11432
|
-
|
|
11433
|
-
},
|
|
11416
|
+
]), J0 = (e2, r2) => {
|
|
11417
|
+
G0(j.cycle(e2, r2, H, W));
|
|
11418
|
+
}, Y0 = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(w, p, m, h, L), [
|
|
11434
11419
|
w,
|
|
11435
11420
|
p,
|
|
11436
11421
|
m,
|
|
11437
11422
|
h,
|
|
11438
11423
|
L
|
|
11439
|
-
]),
|
|
11424
|
+
]), X0 = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11440
11425
|
...e,
|
|
11441
11426
|
value: w,
|
|
11442
|
-
builtinValidation:
|
|
11443
|
-
}),
|
|
11427
|
+
builtinValidation: Y0
|
|
11428
|
+
}), Z0 = X0.displayValidation.isInvalid, Q0 = e.validationState || (Z0 ? "invalid" : null);
|
|
11444
11429
|
return {
|
|
11445
|
-
...
|
|
11430
|
+
...X0,
|
|
11446
11431
|
value: O,
|
|
11447
11432
|
defaultValue: e.defaultValue ?? E,
|
|
11448
|
-
dateValue:
|
|
11433
|
+
dateValue: K0,
|
|
11449
11434
|
calendar: b,
|
|
11450
|
-
setValue:
|
|
11451
|
-
segments:
|
|
11435
|
+
setValue: G0,
|
|
11436
|
+
segments: q0,
|
|
11452
11437
|
dateFormatter: z,
|
|
11453
|
-
validationState:
|
|
11454
|
-
isInvalid:
|
|
11438
|
+
validationState: Q0,
|
|
11439
|
+
isInvalid: Z0,
|
|
11455
11440
|
granularity: _,
|
|
11456
11441
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11457
11442
|
isDisabled: u,
|
|
11458
11443
|
isReadOnly: d,
|
|
11459
11444
|
isRequired: f,
|
|
11460
11445
|
increment(e2) {
|
|
11461
|
-
|
|
11446
|
+
J0(e2, 1);
|
|
11462
11447
|
},
|
|
11463
11448
|
decrement(e2) {
|
|
11464
|
-
|
|
11449
|
+
J0(e2, -1);
|
|
11465
11450
|
},
|
|
11466
11451
|
incrementPage(e2) {
|
|
11467
|
-
|
|
11452
|
+
J0(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11468
11453
|
},
|
|
11469
11454
|
decrementPage(e2) {
|
|
11470
|
-
|
|
11455
|
+
J0(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11471
11456
|
},
|
|
11472
11457
|
incrementToMax(e2) {
|
|
11473
11458
|
let r2 = e2 === "hour" && S === "h12" ? 11 : j.getSegmentLimits(e2).maxValue;
|
|
11474
|
-
|
|
11459
|
+
G0(j.set(e2, r2, H));
|
|
11475
11460
|
},
|
|
11476
11461
|
decrementToMin(e2) {
|
|
11477
11462
|
let r2 = e2 === "hour" && S === "h12" ? 12 : j.getSegmentLimits(e2).minValue;
|
|
11478
|
-
|
|
11463
|
+
G0(j.set(e2, r2, H));
|
|
11479
11464
|
},
|
|
11480
11465
|
setSegment(e2, r2) {
|
|
11481
|
-
|
|
11466
|
+
G0(j.set(e2, r2, H));
|
|
11482
11467
|
},
|
|
11483
11468
|
confirmPlaceholder() {
|
|
11484
11469
|
if (!(e.isDisabled || e.isReadOnly) && j.isComplete(W)) {
|
|
@@ -11488,10 +11473,10 @@ Defaulting to \`null\`.`;
|
|
|
11488
11473
|
},
|
|
11489
11474
|
clearSegment(e2) {
|
|
11490
11475
|
let r2 = j;
|
|
11491
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)),
|
|
11476
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (r2 = j.clear(e2)), G0(r2);
|
|
11492
11477
|
},
|
|
11493
11478
|
formatValue(e2) {
|
|
11494
|
-
return O ? new $fb18d541ea1ad717$export$ad991b66133851cf(r, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, L)).format(
|
|
11479
|
+
return O ? new $fb18d541ea1ad717$export$ad991b66133851cf(r, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, L)).format(K0) : "";
|
|
11495
11480
|
},
|
|
11496
11481
|
getDateFormatter(e2, r2) {
|
|
11497
11482
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -14853,10 +14838,10 @@ Defaulting to \`null\`.`;
|
|
|
14853
14838
|
}, H = () => {
|
|
14854
14839
|
for (let e3 of p.unMount) {
|
|
14855
14840
|
let r3 = get(l, e3);
|
|
14856
|
-
r3 && (r3._f.refs ? r3._f.refs.every((e4) => !live(e4)) : !live(r3._f.ref)) &&
|
|
14841
|
+
r3 && (r3._f.refs ? r3._f.refs.every((e4) => !live(e4)) : !live(r3._f.ref)) && Q0(e3);
|
|
14857
14842
|
}
|
|
14858
14843
|
p.unMount = /* @__PURE__ */ new Set();
|
|
14859
|
-
}, W = (e3, c2) => !r.disabled && (e3 && c2 && set(d, e3, c2), !deepEqual(
|
|
14844
|
+
}, W = (e3, c2) => !r.disabled && (e3 && c2 && set(d, e3, c2), !deepEqual(q0(), u)), G = (e3, r3, c2) => generateWatchOutput(e3, p, {
|
|
14860
14845
|
...f.mount ? d : isUndefined(r3) ? u : isString(e3) ? {
|
|
14861
14846
|
[e3]: r3
|
|
14862
14847
|
} : r3
|
|
@@ -14873,13 +14858,13 @@ Defaulting to \`null\`.`;
|
|
|
14873
14858
|
}
|
|
14874
14859
|
})));
|
|
14875
14860
|
}
|
|
14876
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e3, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
14877
|
-
},
|
|
14861
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e3, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && K0(e3);
|
|
14862
|
+
}, H0 = (e3, r3, c2) => {
|
|
14878
14863
|
for (let u2 in r3) {
|
|
14879
14864
|
let d2 = r3[u2], f2 = `${e3}.${u2}`, m2 = get(l, f2);
|
|
14880
|
-
(p.array.has(e3) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
14865
|
+
(p.array.has(e3) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? H0(f2, d2, c2) : Z(f2, d2, c2);
|
|
14881
14866
|
}
|
|
14882
|
-
},
|
|
14867
|
+
}, U0 = (e3, r3, m2 = {}) => {
|
|
14883
14868
|
let h2 = get(l, e3), v2 = p.array.has(e3), y2 = cloneObject(r3);
|
|
14884
14869
|
set(d, e3, y2), v2 ? (_.array.next({
|
|
14885
14870
|
name: e3,
|
|
@@ -14890,7 +14875,7 @@ Defaulting to \`null\`.`;
|
|
|
14890
14875
|
name: e3,
|
|
14891
14876
|
dirtyFields: getDirtyFields(u, d),
|
|
14892
14877
|
isDirty: W(e3, y2)
|
|
14893
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
14878
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? H0(e3, y2, m2) : Z(e3, y2, m2), isWatched(e3, p) && _.state.next({
|
|
14894
14879
|
...c
|
|
14895
14880
|
}), _.values.next({
|
|
14896
14881
|
name: f.mount ? e3 : void 0,
|
|
@@ -14898,7 +14883,7 @@ Defaulting to \`null\`.`;
|
|
|
14898
14883
|
...d
|
|
14899
14884
|
}
|
|
14900
14885
|
});
|
|
14901
|
-
},
|
|
14886
|
+
}, W0 = async (e3) => {
|
|
14902
14887
|
f.mount = true;
|
|
14903
14888
|
let u2 = e3.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e3), j2 = (e4) => {
|
|
14904
14889
|
S2 = Number.isNaN(e4) || isDateObject(e4) && isNaN(e4.getTime()) || deepEqual(e4, get(d, h2, e4));
|
|
@@ -14932,11 +14917,11 @@ Defaulting to \`null\`.`;
|
|
|
14932
14917
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
14933
14918
|
h2
|
|
14934
14919
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
14935
|
-
S2 && (E2._f.deps &&
|
|
14920
|
+
S2 && (E2._f.deps && K0(E2._f.deps), L(h2, f2, u3, G2));
|
|
14936
14921
|
}
|
|
14937
|
-
},
|
|
14922
|
+
}, G0 = (e3, r3) => {
|
|
14938
14923
|
if (get(c.errors, r3) && e3.focus) return e3.focus(), 1;
|
|
14939
|
-
},
|
|
14924
|
+
}, K0 = async (e3, u2 = {}) => {
|
|
14940
14925
|
let d2, f2, m2 = convertToArrayPayload(e3);
|
|
14941
14926
|
if (r.resolver) {
|
|
14942
14927
|
let r3 = await z(isUndefined(e3) ? e3 : m2);
|
|
@@ -14955,23 +14940,23 @@ Defaulting to \`null\`.`;
|
|
|
14955
14940
|
isValid: d2
|
|
14956
14941
|
} : {},
|
|
14957
14942
|
errors: c.errors
|
|
14958
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
14959
|
-
},
|
|
14943
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, G0, e3 ? m2 : p.mount), f2;
|
|
14944
|
+
}, q0 = (e3) => {
|
|
14960
14945
|
let r3 = {
|
|
14961
14946
|
...f.mount ? d : u
|
|
14962
14947
|
};
|
|
14963
14948
|
return isUndefined(e3) ? r3 : isString(e3) ? get(r3, e3) : e3.map((e4) => get(r3, e4));
|
|
14964
|
-
},
|
|
14949
|
+
}, J0 = (e3, r3) => ({
|
|
14965
14950
|
invalid: !!get((r3 || c).errors, e3),
|
|
14966
14951
|
isDirty: !!get((r3 || c).dirtyFields, e3),
|
|
14967
14952
|
error: get((r3 || c).errors, e3),
|
|
14968
14953
|
isValidating: !!get(c.validatingFields, e3),
|
|
14969
14954
|
isTouched: !!get((r3 || c).touchedFields, e3)
|
|
14970
|
-
}),
|
|
14955
|
+
}), Y0 = (e3) => {
|
|
14971
14956
|
e3 && convertToArrayPayload(e3).forEach((e4) => unset(c.errors, e4)), _.state.next({
|
|
14972
14957
|
errors: e3 ? c.errors : {}
|
|
14973
14958
|
});
|
|
14974
|
-
},
|
|
14959
|
+
}, X0 = (e3, r3, u2) => {
|
|
14975
14960
|
let d2 = (get(l, e3, {
|
|
14976
14961
|
_f: {}
|
|
14977
14962
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e3) || {};
|
|
@@ -14984,9 +14969,9 @@ Defaulting to \`null\`.`;
|
|
|
14984
14969
|
errors: c.errors,
|
|
14985
14970
|
isValid: false
|
|
14986
14971
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
14987
|
-
},
|
|
14972
|
+
}, Z0 = (e3, r3) => isFunction$1(e3) ? _.values.subscribe({
|
|
14988
14973
|
next: (c2) => e3(G(void 0, r3), c2)
|
|
14989
|
-
}) : G(e3, r3, true),
|
|
14974
|
+
}) : G(e3, r3, true), Q0 = (e3, f2 = {}) => {
|
|
14990
14975
|
for (let m2 of e3 ? convertToArrayPayload(e3) : 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);
|
|
14991
14976
|
_.values.next({
|
|
14992
14977
|
values: {
|
|
@@ -14998,9 +14983,9 @@ Defaulting to \`null\`.`;
|
|
|
14998
14983
|
isDirty: W()
|
|
14999
14984
|
} : {}
|
|
15000
14985
|
}), !f2.keepIsValid && w();
|
|
15001
|
-
},
|
|
14986
|
+
}, $0 = ({ disabled: e3, name: r3, field: c2, fields: l2 }) => {
|
|
15002
14987
|
(isBoolean(e3) && f.mount || e3 || p.disabled.has(r3)) && (e3 ? p.disabled.add(r3) : p.disabled.delete(r3), I(r3, getFieldValue(c2 ? c2._f : get(l2, r3)._f), false, false, true));
|
|
15003
|
-
},
|
|
14988
|
+
}, e2 = (e3, c2 = {}) => {
|
|
15004
14989
|
let d2 = get(l, e3), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
15005
14990
|
return set(l, e3, {
|
|
15006
14991
|
...d2 || {},
|
|
@@ -15014,7 +14999,7 @@ Defaulting to \`null\`.`;
|
|
|
15014
14999
|
mount: true,
|
|
15015
15000
|
...c2
|
|
15016
15001
|
}
|
|
15017
|
-
}), p.mount.add(e3), d2 ?
|
|
15002
|
+
}), p.mount.add(e3), d2 ? $0({
|
|
15018
15003
|
field: d2,
|
|
15019
15004
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
15020
15005
|
name: e3
|
|
@@ -15031,11 +15016,11 @@ Defaulting to \`null\`.`;
|
|
|
15031
15016
|
pattern: getRuleValue(c2.pattern)
|
|
15032
15017
|
} : {},
|
|
15033
15018
|
name: e3,
|
|
15034
|
-
onChange:
|
|
15035
|
-
onBlur:
|
|
15019
|
+
onChange: W0,
|
|
15020
|
+
onBlur: W0,
|
|
15036
15021
|
ref: (m3) => {
|
|
15037
15022
|
if (m3) {
|
|
15038
|
-
|
|
15023
|
+
e2(e3, c2), d2 = get(l, e3);
|
|
15039
15024
|
let r3 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r3), p2 = d2._f.refs || [];
|
|
15040
15025
|
if (f2 ? p2.find((e4) => e4 === r3) : r3 === d2._f.ref) return;
|
|
15041
15026
|
set(l, e3, {
|
|
@@ -15061,7 +15046,7 @@ Defaulting to \`null\`.`;
|
|
|
15061
15046
|
} else d2 = get(l, e3, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e3) && f.action) && p.unMount.add(e3);
|
|
15062
15047
|
}
|
|
15063
15048
|
};
|
|
15064
|
-
},
|
|
15049
|
+
}, t2 = () => r.shouldFocusError && iterateFieldsByAction(l, G0, p.mount), n2 = (e3) => {
|
|
15065
15050
|
isBoolean(e3) && (_.state.next({
|
|
15066
15051
|
disabled: e3
|
|
15067
15052
|
}), iterateFieldsByAction(l, (r3, c2) => {
|
|
@@ -15070,7 +15055,7 @@ Defaulting to \`null\`.`;
|
|
|
15070
15055
|
r4.disabled = u2._f.disabled || e3;
|
|
15071
15056
|
}));
|
|
15072
15057
|
}, 0, false));
|
|
15073
|
-
},
|
|
15058
|
+
}, r2 = (e3, u2) => async (f2) => {
|
|
15074
15059
|
let m2;
|
|
15075
15060
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
15076
15061
|
let h2 = cloneObject(d);
|
|
@@ -15092,7 +15077,7 @@ Defaulting to \`null\`.`;
|
|
|
15092
15077
|
}
|
|
15093
15078
|
} else u2 && await u2({
|
|
15094
15079
|
...c.errors
|
|
15095
|
-
}, f2),
|
|
15080
|
+
}, f2), t2(), setTimeout(t2);
|
|
15096
15081
|
if (_.state.next({
|
|
15097
15082
|
isSubmitted: true,
|
|
15098
15083
|
isSubmitting: false,
|
|
@@ -15100,11 +15085,11 @@ Defaulting to \`null\`.`;
|
|
|
15100
15085
|
submitCount: c.submitCount + 1,
|
|
15101
15086
|
errors: c.errors
|
|
15102
15087
|
}), m2) throw m2;
|
|
15103
|
-
},
|
|
15104
|
-
get(l, e3) && (isUndefined(r3.defaultValue) ?
|
|
15088
|
+
}, i2 = (e3, r3 = {}) => {
|
|
15089
|
+
get(l, e3) && (isUndefined(r3.defaultValue) ? U0(e3, cloneObject(get(u, e3))) : (U0(e3, r3.defaultValue), set(u, e3, cloneObject(r3.defaultValue))), r3.keepTouched || unset(c.touchedFields, e3), r3.keepDirty || (unset(c.dirtyFields, e3), c.isDirty = r3.defaultValue ? W(e3, cloneObject(get(u, e3))) : W()), r3.keepError || (unset(c.errors, e3), g.isValid && w()), _.state.next({
|
|
15105
15090
|
...c
|
|
15106
15091
|
}));
|
|
15107
|
-
},
|
|
15092
|
+
}, a2 = (e3, m2 = {}) => {
|
|
15108
15093
|
let h2 = e3 ? cloneObject(e3) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e3), b2 = y2 ? u : v2;
|
|
15109
15094
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
15110
15095
|
if (m2.keepDirtyValues) {
|
|
@@ -15112,7 +15097,7 @@ Defaulting to \`null\`.`;
|
|
|
15112
15097
|
...p.mount,
|
|
15113
15098
|
...Object.keys(getDirtyFields(u, d))
|
|
15114
15099
|
]);
|
|
15115
|
-
for (let r3 of Array.from(e4)) get(c.dirtyFields, r3) ? set(b2, r3, get(d, r3)) :
|
|
15100
|
+
for (let r3 of Array.from(e4)) get(c.dirtyFields, r3) ? set(b2, r3, get(d, r3)) : U0(r3, get(b2, r3));
|
|
15116
15101
|
} else {
|
|
15117
15102
|
if (isWeb && isUndefined(e3)) for (let e4 of p.mount) {
|
|
15118
15103
|
let r3 = get(l, e4);
|
|
@@ -15157,25 +15142,25 @@ Defaulting to \`null\`.`;
|
|
|
15157
15142
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
15158
15143
|
isSubmitting: false
|
|
15159
15144
|
});
|
|
15160
|
-
},
|
|
15145
|
+
}, o2 = (e3, r3) => a2(isFunction$1(e3) ? e3(d) : e3, r3);
|
|
15161
15146
|
return {
|
|
15162
15147
|
control: {
|
|
15163
|
-
register:
|
|
15164
|
-
unregister:
|
|
15165
|
-
getFieldState:
|
|
15166
|
-
handleSubmit:
|
|
15167
|
-
setError:
|
|
15148
|
+
register: e2,
|
|
15149
|
+
unregister: Q0,
|
|
15150
|
+
getFieldState: J0,
|
|
15151
|
+
handleSubmit: r2,
|
|
15152
|
+
setError: X0,
|
|
15168
15153
|
_executeSchema: R,
|
|
15169
15154
|
_getWatch: G,
|
|
15170
15155
|
_getDirty: W,
|
|
15171
15156
|
_updateValid: w,
|
|
15172
15157
|
_removeUnmounted: H,
|
|
15173
15158
|
_updateFieldArray: E,
|
|
15174
|
-
_updateDisabledField:
|
|
15159
|
+
_updateDisabledField: $0,
|
|
15175
15160
|
_getFieldArray: q,
|
|
15176
|
-
_reset:
|
|
15161
|
+
_reset: a2,
|
|
15177
15162
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e3) => {
|
|
15178
|
-
|
|
15163
|
+
o2(e3, r.resetOptions), _.state.next({
|
|
15179
15164
|
isLoading: false
|
|
15180
15165
|
});
|
|
15181
15166
|
}),
|
|
@@ -15185,7 +15170,7 @@ Defaulting to \`null\`.`;
|
|
|
15185
15170
|
...e3
|
|
15186
15171
|
};
|
|
15187
15172
|
},
|
|
15188
|
-
_disableForm:
|
|
15173
|
+
_disableForm: n2,
|
|
15189
15174
|
_subjects: _,
|
|
15190
15175
|
_proxyFormState: g,
|
|
15191
15176
|
_setErrors: j,
|
|
@@ -15226,17 +15211,17 @@ Defaulting to \`null\`.`;
|
|
|
15226
15211
|
};
|
|
15227
15212
|
}
|
|
15228
15213
|
},
|
|
15229
|
-
trigger:
|
|
15230
|
-
register:
|
|
15231
|
-
handleSubmit:
|
|
15232
|
-
watch:
|
|
15233
|
-
setValue:
|
|
15234
|
-
getValues:
|
|
15235
|
-
reset:
|
|
15236
|
-
resetField:
|
|
15237
|
-
clearErrors:
|
|
15238
|
-
unregister:
|
|
15239
|
-
setError:
|
|
15214
|
+
trigger: K0,
|
|
15215
|
+
register: e2,
|
|
15216
|
+
handleSubmit: r2,
|
|
15217
|
+
watch: Z0,
|
|
15218
|
+
setValue: U0,
|
|
15219
|
+
getValues: q0,
|
|
15220
|
+
reset: o2,
|
|
15221
|
+
resetField: i2,
|
|
15222
|
+
clearErrors: Y0,
|
|
15223
|
+
unregister: Q0,
|
|
15224
|
+
setError: X0,
|
|
15240
15225
|
setFocus: (e3, r3 = {}) => {
|
|
15241
15226
|
let c2 = get(l, e3), u2 = c2 && c2._f;
|
|
15242
15227
|
if (u2) {
|
|
@@ -15244,7 +15229,7 @@ Defaulting to \`null\`.`;
|
|
|
15244
15229
|
e4.focus && (e4.focus(), r3.shouldSelect && isFunction$1(e4.select) && e4.select());
|
|
15245
15230
|
}
|
|
15246
15231
|
},
|
|
15247
|
-
getFieldState:
|
|
15232
|
+
getFieldState: J0
|
|
15248
15233
|
};
|
|
15249
15234
|
}
|
|
15250
15235
|
function useForm(e = {}) {
|
|
@@ -18409,39 +18394,39 @@ ${c}
|
|
|
18409
18394
|
}), H = U(), W = U(), G = C(0), q = C(null), Z = C({
|
|
18410
18395
|
column: 0,
|
|
18411
18396
|
row: 0
|
|
18412
|
-
}),
|
|
18413
|
-
Y(x(b, $(
|
|
18414
|
-
D(
|
|
18415
|
-
}), Y(x(ut(b,
|
|
18416
|
-
D(
|
|
18417
|
-
D(H,
|
|
18397
|
+
}), H0 = U(), U0 = U(), W0 = C(false), G0 = C(0), K0 = C(true), q0 = C(false), J0 = C(false);
|
|
18398
|
+
Y(x(b, $(G0), P(([e2, r2]) => !!r2)), () => {
|
|
18399
|
+
D(K0, false);
|
|
18400
|
+
}), Y(x(ut(b, K0, B, z, G0, q0), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
18401
|
+
D(q0, true), Ue(1, () => {
|
|
18402
|
+
D(H, e2);
|
|
18418
18403
|
}), Et(x(h), () => {
|
|
18419
18404
|
D(r, [
|
|
18420
18405
|
0,
|
|
18421
18406
|
0
|
|
18422
|
-
]), D(
|
|
18407
|
+
]), D(K0, true);
|
|
18423
18408
|
});
|
|
18424
|
-
}), F(x(
|
|
18425
|
-
|
|
18426
|
-
D(
|
|
18409
|
+
}), F(x(U0, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(U0), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
18410
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(Z, e2.gap), e2.scrollTop > 0 && (D(W0, true), Et(x(h, Kt(1)), (e3) => {
|
|
18411
|
+
D(W0, false);
|
|
18427
18412
|
}), D(m, {
|
|
18428
|
-
top:
|
|
18413
|
+
top: e2.scrollTop
|
|
18429
18414
|
})));
|
|
18430
|
-
}), F(x(z, k(({ height:
|
|
18415
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(Z, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
18431
18416
|
gap: c2,
|
|
18432
18417
|
item: r2,
|
|
18433
18418
|
scrollTop: l2,
|
|
18434
|
-
viewport:
|
|
18435
|
-
}))),
|
|
18419
|
+
viewport: e2
|
|
18420
|
+
}))), H0), F(x(ut(V(I), l, V(Z, Or), V(B, xe), V(z, xe), V(q), V(L), V(W0), V(K0), V(G0)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
18436
18421
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
18437
|
-
if (p2 === 0 && (
|
|
18422
|
+
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
18438
18423
|
if (y2 === 0) {
|
|
18439
|
-
let r3 = Ke(h2,
|
|
18424
|
+
let r3 = Ke(h2, e2);
|
|
18440
18425
|
return zr(En(r3, r3 + Math.max(p2 - 1, 0), f2));
|
|
18441
18426
|
}
|
|
18442
18427
|
let S2 = io(b2, y2, g2), w2, T2;
|
|
18443
|
-
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(
|
|
18444
|
-
let E2 = En(w2, T2, f2), { bottom: O2, top: j2 } = Bn(d2, l2, u2, E2), M2 = Rn(
|
|
18428
|
+
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);
|
|
18429
|
+
let E2 = En(w2, T2, f2), { bottom: O2, top: j2 } = Bn(d2, l2, u2, E2), M2 = Rn(e2 / S2);
|
|
18445
18430
|
return {
|
|
18446
18431
|
bottom: O2,
|
|
18447
18432
|
itemHeight: v2,
|
|
@@ -18451,24 +18436,24 @@ ${c}
|
|
|
18451
18436
|
offsetTop: j2,
|
|
18452
18437
|
top: j2
|
|
18453
18438
|
};
|
|
18454
|
-
})), R), F(x(q, P((
|
|
18455
|
-
let { bottom: u2, top: d2 } = Bn(
|
|
18439
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, Z), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
18440
|
+
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
18456
18441
|
return [
|
|
18457
18442
|
d2,
|
|
18458
18443
|
u2
|
|
18459
18444
|
];
|
|
18460
18445
|
}), J(ce)), r);
|
|
18461
|
-
let
|
|
18462
|
-
F(x(h, $(
|
|
18463
|
-
let
|
|
18464
|
-
let l2 =
|
|
18465
|
-
return (c2 ||
|
|
18466
|
-
}), k(([[,
|
|
18467
|
-
endIndex:
|
|
18468
|
-
startIndex:
|
|
18446
|
+
let Y0 = C(false);
|
|
18447
|
+
F(x(h, $(Y0), k(([e2, r2]) => r2 || e2 !== 0)), Y0);
|
|
18448
|
+
let X0 = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(Y0), P(([[e2, r2], c2]) => {
|
|
18449
|
+
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
18450
|
+
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
18451
|
+
}), k(([[, e2]]) => e2 - 1), J())), Z0 = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), Q0 = bt(x(V(R), $(W0), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
18452
|
+
endIndex: e2[e2.length - 1].index,
|
|
18453
|
+
startIndex: e2[0].index
|
|
18469
18454
|
})), J(An), Gt(0)));
|
|
18470
|
-
F(
|
|
18471
|
-
let d2 = $n(
|
|
18455
|
+
F(Q0, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, Z), k(([e2, r2, c2, l2, u2]) => {
|
|
18456
|
+
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
18472
18457
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
18473
18458
|
let g2 = Me(r2, u2, c2, h2);
|
|
18474
18459
|
return f2 === "end" ? g2 = Hn(g2 - r2.height + c2.height) : f2 === "center" && (g2 = Hn(g2 - r2.height / 2 + c2.height / 2)), m2 && (g2 += m2), {
|
|
@@ -18476,10 +18461,10 @@ ${c}
|
|
|
18476
18461
|
top: g2
|
|
18477
18462
|
};
|
|
18478
18463
|
})), m);
|
|
18479
|
-
let
|
|
18480
|
-
return F(x(j, k((
|
|
18481
|
-
height:
|
|
18482
|
-
width:
|
|
18464
|
+
let $0 = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
18465
|
+
return F(x(j, k((e2) => ({
|
|
18466
|
+
height: e2.visibleHeight,
|
|
18467
|
+
width: e2.visibleWidth
|
|
18483
18468
|
}))), z), {
|
|
18484
18469
|
customScrollParent: w,
|
|
18485
18470
|
data: q,
|
|
@@ -18491,7 +18476,7 @@ ${c}
|
|
|
18491
18476
|
initialItemCount: L,
|
|
18492
18477
|
itemDimensions: B,
|
|
18493
18478
|
overscan: c,
|
|
18494
|
-
restoreStateFrom:
|
|
18479
|
+
restoreStateFrom: U0,
|
|
18495
18480
|
scrollBy: f,
|
|
18496
18481
|
scrollContainerState: p,
|
|
18497
18482
|
scrollHeight: W,
|
|
@@ -18507,16 +18492,16 @@ ${c}
|
|
|
18507
18492
|
windowViewportRect: j,
|
|
18508
18493
|
...y,
|
|
18509
18494
|
gridState: R,
|
|
18510
|
-
horizontalDirection:
|
|
18511
|
-
initialTopMostItemIndex:
|
|
18512
|
-
totalListHeight:
|
|
18495
|
+
horizontalDirection: J0,
|
|
18496
|
+
initialTopMostItemIndex: G0,
|
|
18497
|
+
totalListHeight: $0,
|
|
18513
18498
|
...v,
|
|
18514
|
-
endReached:
|
|
18499
|
+
endReached: X0,
|
|
18515
18500
|
propsReady: S,
|
|
18516
|
-
rangeChanged:
|
|
18517
|
-
startReached:
|
|
18518
|
-
stateChanged:
|
|
18519
|
-
stateRestoreInProgress:
|
|
18501
|
+
rangeChanged: Q0,
|
|
18502
|
+
startReached: Z0,
|
|
18503
|
+
stateChanged: H0,
|
|
18504
|
+
stateRestoreInProgress: W0,
|
|
18520
18505
|
...M
|
|
18521
18506
|
};
|
|
18522
18507
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -19604,7 +19589,7 @@ ${c}
|
|
|
19604
19589
|
render: h
|
|
19605
19590
|
}), r[5] = c, r[6] = m.control, r[7] = h, r[8] = g) : g = r[8], g;
|
|
19606
19591
|
}, AggregationSelect = (e) => {
|
|
19607
|
-
let r = (0, import_compiler_runtime$77.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS$1, { chartType: m } = useChartFormContext(), h = m !== ChartType.HEATMAP, g = _temp6$
|
|
19592
|
+
let r = (0, import_compiler_runtime$77.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS$1, { chartType: m } = useChartFormContext(), h = m !== ChartType.HEATMAP, g = _temp6$3, _ = _temp7$1, v;
|
|
19608
19593
|
r[0] !== u || r[1] !== f ? (v = (e2) => {
|
|
19609
19594
|
let { value: r2, previousValue: c2, onChange: l2 } = e2;
|
|
19610
19595
|
r2 === "bin" ? f.setValue(u, true) : c2 === "bin" && f.setValue(u, false), l2(r2);
|
|
@@ -19770,7 +19755,7 @@ ${c}
|
|
|
19770
19755
|
children: r
|
|
19771
19756
|
}, e);
|
|
19772
19757
|
}
|
|
19773
|
-
function _temp6$
|
|
19758
|
+
function _temp6$3(e) {
|
|
19774
19759
|
return (0, import_jsx_runtime.jsx)("span", {
|
|
19775
19760
|
className: "text-xs text-muted-foreground pr-10",
|
|
19776
19761
|
children: e
|
|
@@ -21790,51 +21775,51 @@ ${c}
|
|
|
21790
21775
|
}), r[24] = q) : q = r[24];
|
|
21791
21776
|
let Z;
|
|
21792
21777
|
r[25] === E ? Z = r[26] : (Z = () => E(PANEL_TYPES.COLUMN_EXPLORER), r[25] = E, r[26] = Z);
|
|
21793
|
-
let
|
|
21794
|
-
r[27] ===
|
|
21795
|
-
let
|
|
21796
|
-
r[29] !==
|
|
21778
|
+
let H0 = R === PANEL_TYPES.COLUMN_EXPLORER ? activeClassName : inactiveClassName, U0;
|
|
21779
|
+
r[27] === H0 ? U0 = r[28] : (U0 = cn(tabTriggerClassName, H0), r[27] = H0, r[28] = U0);
|
|
21780
|
+
let W0;
|
|
21781
|
+
r[29] !== U0 || r[30] !== Z ? (W0 = (0, import_jsx_runtime.jsx)(Button, {
|
|
21797
21782
|
variant: "text",
|
|
21798
21783
|
size: "xs",
|
|
21799
21784
|
onClick: Z,
|
|
21800
|
-
className:
|
|
21785
|
+
className: U0,
|
|
21801
21786
|
children: "Columns"
|
|
21802
|
-
}), r[29] =
|
|
21803
|
-
let
|
|
21804
|
-
r[32] !==
|
|
21787
|
+
}), r[29] = U0, r[30] = Z, r[31] = W0) : W0 = r[31];
|
|
21788
|
+
let G0;
|
|
21789
|
+
r[32] !== W0 || r[33] !== G ? (G0 = (0, import_jsx_runtime.jsx)(Fill, {
|
|
21805
21790
|
name: SlotNames.CONTEXT_AWARE_PANEL_HEADER,
|
|
21806
21791
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
21807
21792
|
className: "flex items-center gap-1",
|
|
21808
21793
|
children: [
|
|
21809
21794
|
G,
|
|
21810
21795
|
q,
|
|
21811
|
-
|
|
21796
|
+
W0
|
|
21812
21797
|
]
|
|
21813
21798
|
})
|
|
21814
|
-
}), r[32] =
|
|
21815
|
-
let
|
|
21816
|
-
r[35] === M ?
|
|
21799
|
+
}), r[32] = W0, r[33] = G, r[34] = G0) : G0 = r[34];
|
|
21800
|
+
let K0;
|
|
21801
|
+
r[35] === M ? K0 = r[36] : (K0 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
21817
21802
|
value: PANEL_TYPES.ROW_VIEWER,
|
|
21818
21803
|
className: "flex-1 overflow-auto",
|
|
21819
21804
|
children: M
|
|
21820
|
-
}), r[35] = M, r[36] =
|
|
21821
|
-
let
|
|
21822
|
-
r[37] === L ?
|
|
21805
|
+
}), r[35] = M, r[36] = K0);
|
|
21806
|
+
let q0;
|
|
21807
|
+
r[37] === L ? q0 = r[38] : (q0 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
21823
21808
|
value: PANEL_TYPES.COLUMN_EXPLORER,
|
|
21824
21809
|
className: "flex-1 overflow-auto",
|
|
21825
21810
|
children: L
|
|
21826
|
-
}), r[37] = L, r[38] =
|
|
21827
|
-
let
|
|
21828
|
-
return r[39] !== R || r[40] !==
|
|
21811
|
+
}), r[37] = L, r[38] = q0);
|
|
21812
|
+
let J0;
|
|
21813
|
+
return r[39] !== R || r[40] !== G0 || r[41] !== K0 || r[42] !== q0 || r[43] !== z ? (J0 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
21829
21814
|
value: R,
|
|
21830
21815
|
onValueChange: z,
|
|
21831
21816
|
className: "flex flex-col min-w-[350px]",
|
|
21832
21817
|
children: [
|
|
21818
|
+
G0,
|
|
21833
21819
|
K0,
|
|
21834
|
-
q0
|
|
21835
|
-
J0
|
|
21820
|
+
q0
|
|
21836
21821
|
]
|
|
21837
|
-
}), r[39] = R, r[40] =
|
|
21822
|
+
}), r[39] = R, r[40] = G0, r[41] = K0, r[42] = q0, r[43] = z, r[44] = J0) : J0 = r[44], J0;
|
|
21838
21823
|
};
|
|
21839
21824
|
var import_compiler_runtime$64 = require_compiler_runtime();
|
|
21840
21825
|
function useEffectSkipFirstRender(e, r) {
|
|
@@ -22523,7 +22508,7 @@ ${c}
|
|
|
22523
22508
|
totalRows: 0,
|
|
22524
22509
|
cellStyles: {}
|
|
22525
22510
|
};
|
|
22526
|
-
let r3 = e.data, c3 = e.rawData, l3 = e.totalRows, d = e.cellStyles,
|
|
22511
|
+
let r3 = e.data, c3 = e.rawData, l3 = e.totalRows, d = e.cellStyles, f2 = e.cellHoverTexts, p2 = _.pageSize !== e.pageSize, h2 = y === "" && _.pageIndex === 0 && w.length === 0 && m.length === 0 && !e.lazy && !p2, g2 = u({
|
|
22527
22512
|
sort: m.length > 0 ? m.map(_temp$21) : void 0,
|
|
22528
22513
|
query: y,
|
|
22529
22514
|
page_number: _.pageIndex,
|
|
@@ -22533,7 +22518,7 @@ ${c}
|
|
|
22533
22518
|
if (h2) g2.catch(_temp2$15);
|
|
22534
22519
|
else {
|
|
22535
22520
|
let e3 = await g2;
|
|
22536
|
-
r3 = e3.data, c3 = e3.raw_data, l3 = e3.total_rows, d = e3.cell_styles || {},
|
|
22521
|
+
r3 = e3.data, c3 = e3.raw_data, l3 = e3.total_rows, d = e3.cell_styles || {}, f2 = e3.cell_hover_texts || {};
|
|
22537
22522
|
}
|
|
22538
22523
|
let [v2, b2] = await loadTableAndRawData(r3, c3);
|
|
22539
22524
|
return r3 = v2, {
|
|
@@ -22541,7 +22526,7 @@ ${c}
|
|
|
22541
22526
|
rawRows: b2,
|
|
22542
22527
|
totalRows: l3,
|
|
22543
22528
|
cellStyles: d,
|
|
22544
|
-
cellHoverTexts:
|
|
22529
|
+
cellHoverTexts: f2
|
|
22545
22530
|
};
|
|
22546
22531
|
}, r[21] = w, r[22] = _.pageIndex, r[23] = _.pageSize, r[24] = e.cellHoverTexts, r[25] = e.cellStyles, r[26] = e.data, r[27] = e.lazy, r[28] = e.pageSize, r[29] = e.rawData, r[30] = e.totalRows, r[31] = u, r[32] = y, r[33] = m, r[34] = z) : z = r[34];
|
|
22547
22532
|
let B = useDeepCompareMemoize(e.fieldTypes), H;
|
|
@@ -22559,8 +22544,8 @@ ${c}
|
|
|
22559
22544
|
_.pageSize,
|
|
22560
22545
|
_.pageIndex
|
|
22561
22546
|
], 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];
|
|
22562
|
-
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H),
|
|
22563
|
-
r[48] !== w || r[49] !== u || r[50] !== y || r[51] !== m ? (
|
|
22547
|
+
let { data: W, error: G, isPending: q, isFetching: Z } = useAsyncData(z, H), H0;
|
|
22548
|
+
r[48] !== w || r[49] !== u || r[50] !== y || r[51] !== m ? (H0 = async (e3) => ({
|
|
22564
22549
|
rows: await loadTableData((await u({
|
|
22565
22550
|
page_number: e3,
|
|
22566
22551
|
page_size: 1,
|
|
@@ -22569,38 +22554,38 @@ ${c}
|
|
|
22569
22554
|
filters: filtersToFilterGroup(w),
|
|
22570
22555
|
max_columns: null
|
|
22571
22556
|
})).data)
|
|
22572
|
-
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] =
|
|
22573
|
-
let
|
|
22574
|
-
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
22557
|
+
}), r[48] = w, r[49] = u, r[50] = y, r[51] = m, r[52] = H0) : H0 = r[52];
|
|
22558
|
+
let U0 = H0, W0;
|
|
22559
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W0 = () => {
|
|
22575
22560
|
v(_temp4$6);
|
|
22576
|
-
}, r[53] =
|
|
22577
|
-
let
|
|
22578
|
-
r[54] ===
|
|
22579
|
-
|
|
22580
|
-
], r[54] =
|
|
22581
|
-
let
|
|
22582
|
-
r[56] === e ?
|
|
22561
|
+
}, r[53] = W0) : W0 = r[53];
|
|
22562
|
+
let G0 = W == null ? void 0 : W.totalRows, K0;
|
|
22563
|
+
r[54] === G0 ? K0 = r[55] : (K0 = [
|
|
22564
|
+
G0
|
|
22565
|
+
], r[54] = G0, r[55] = K0), (0, import_react.useEffect)(W0, K0);
|
|
22566
|
+
let q0;
|
|
22567
|
+
r[56] === e ? q0 = r[57] : (q0 = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
22583
22568
|
data: null,
|
|
22584
22569
|
stats: {},
|
|
22585
22570
|
bin_values: {},
|
|
22586
22571
|
value_counts: {},
|
|
22587
22572
|
show_charts: false
|
|
22588
|
-
} : e.get_column_summaries({}), r[56] = e, r[57] =
|
|
22589
|
-
let
|
|
22590
|
-
r[58] !== w || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== y ? (
|
|
22573
|
+
} : e.get_column_summaries({}), r[56] = e, r[57] = q0);
|
|
22574
|
+
let J0;
|
|
22575
|
+
r[58] !== w || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== y ? (J0 = [
|
|
22591
22576
|
e.get_column_summaries,
|
|
22592
22577
|
e.showColumnSummaries,
|
|
22593
22578
|
w,
|
|
22594
22579
|
y,
|
|
22595
22580
|
e.totalRows,
|
|
22596
22581
|
e.data
|
|
22597
|
-
], 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] =
|
|
22598
|
-
let { data:
|
|
22599
|
-
if (r[65] ===
|
|
22600
|
-
|
|
22601
|
-
},
|
|
22602
|
-
|
|
22603
|
-
], r[65] =
|
|
22582
|
+
], 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] = J0) : J0 = r[64];
|
|
22583
|
+
let { data: Y0, error: X0 } = useAsyncData(q0, J0), Z0, Q0;
|
|
22584
|
+
if (r[65] === X0 ? (Z0 = r[66], Q0 = r[67]) : (Z0 = () => {
|
|
22585
|
+
X0 && Logger.error(X0);
|
|
22586
|
+
}, Q0 = [
|
|
22587
|
+
X0
|
|
22588
|
+
], r[65] = X0, r[66] = Z0, r[67] = Q0), (0, import_react.useEffect)(Z0, Q0), q) {
|
|
22604
22589
|
let c3 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l3;
|
|
22605
22590
|
return r[68] === c3 ? l3 = r[69] : (l3 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
22606
22591
|
milliseconds: 200,
|
|
@@ -22609,7 +22594,7 @@ ${c}
|
|
|
22609
22594
|
})
|
|
22610
22595
|
}), r[68] = c3, r[69] = l3), l3;
|
|
22611
22596
|
}
|
|
22612
|
-
let
|
|
22597
|
+
let $0 = null;
|
|
22613
22598
|
if (G) {
|
|
22614
22599
|
Logger.error(G);
|
|
22615
22600
|
let e3;
|
|
@@ -22625,59 +22610,59 @@ ${c}
|
|
|
22625
22610
|
children: G.message || "An unknown error occurred"
|
|
22626
22611
|
})
|
|
22627
22612
|
]
|
|
22628
|
-
}), r[70] = G, r[71] = e3),
|
|
22613
|
+
}), r[70] = G, r[71] = e3), $0 = e3;
|
|
22629
22614
|
}
|
|
22630
|
-
let
|
|
22631
|
-
r[72] === O ?
|
|
22615
|
+
let e2;
|
|
22616
|
+
r[72] === O ? e2 = r[73] : (e2 = () => {
|
|
22632
22617
|
j(!O);
|
|
22633
|
-
}, r[72] = O, r[73] =
|
|
22634
|
-
let
|
|
22635
|
-
r[74] !== l || r[75] !==
|
|
22618
|
+
}, r[72] = O, r[73] = e2);
|
|
22619
|
+
let t2 = e2, n2 = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, r2 = W == null ? void 0 : W.rawRows, i2 = Z && !q, a2 = (W == null ? void 0 : W.totalRows) ?? e.totalRows, o2 = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, s2 = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, c2;
|
|
22620
|
+
r[74] !== l || r[75] !== Y0 || r[76] !== O || r[77] !== w || r[78] !== U0 || r[79] !== _ || r[80] !== e || r[81] !== y || r[82] !== m || r[83] !== n2 || r[84] !== r2 || r[85] !== i2 || r[86] !== a2 || r[87] !== o2 || r[88] !== s2 || r[89] !== t2 ? (c2 = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
22636
22621
|
...e,
|
|
22637
|
-
data:
|
|
22638
|
-
rawData:
|
|
22639
|
-
columnSummaries:
|
|
22622
|
+
data: n2,
|
|
22623
|
+
rawData: r2,
|
|
22624
|
+
columnSummaries: Y0,
|
|
22640
22625
|
sorting: m,
|
|
22641
22626
|
setSorting: h,
|
|
22642
22627
|
searchQuery: y,
|
|
22643
22628
|
setSearchQuery: b,
|
|
22644
22629
|
filters: w,
|
|
22645
22630
|
setFilters: T,
|
|
22646
|
-
reloading:
|
|
22647
|
-
totalRows:
|
|
22631
|
+
reloading: i2,
|
|
22632
|
+
totalRows: a2,
|
|
22648
22633
|
paginationState: _,
|
|
22649
22634
|
setPaginationState: v,
|
|
22650
|
-
cellStyles:
|
|
22651
|
-
cellHoverTexts:
|
|
22652
|
-
toggleDisplayHeader:
|
|
22635
|
+
cellStyles: o2,
|
|
22636
|
+
cellHoverTexts: s2,
|
|
22637
|
+
toggleDisplayHeader: t2,
|
|
22653
22638
|
isChartBuilderOpen: O,
|
|
22654
|
-
getRow:
|
|
22639
|
+
getRow: U0,
|
|
22655
22640
|
cellId: l,
|
|
22656
22641
|
maxHeight: e.maxHeight
|
|
22657
|
-
}), r[74] = l, r[75] =
|
|
22658
|
-
let
|
|
22659
|
-
r[91] !== l || r[92] !==
|
|
22642
|
+
}), r[74] = l, r[75] = Y0, r[76] = O, r[77] = w, r[78] = U0, r[79] = _, r[80] = e, r[81] = y, r[82] = m, r[83] = n2, r[84] = r2, r[85] = i2, r[86] = a2, r[87] = o2, r[88] = s2, r[89] = t2, r[90] = c2) : c2 = r[90];
|
|
22643
|
+
let l2 = c2, u2;
|
|
22644
|
+
r[91] !== l || r[92] !== l2 || 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 ? (u2 = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
22660
22645
|
displayHeader: O,
|
|
22661
22646
|
onCloseChartBuilder: () => j(false),
|
|
22662
22647
|
data: (W == null ? void 0 : W.rows) || [],
|
|
22663
22648
|
columns: e.totalColumns,
|
|
22664
22649
|
totalRows: e.totalRows,
|
|
22665
|
-
dataTable:
|
|
22650
|
+
dataTable: l2,
|
|
22666
22651
|
getDataUrl: e.get_data_url,
|
|
22667
22652
|
fieldTypes: e.fieldTypes,
|
|
22668
22653
|
cellId: l
|
|
22669
|
-
}) :
|
|
22670
|
-
let
|
|
22671
|
-
return r[101] !==
|
|
22654
|
+
}) : l2, r[91] = l, r[92] = l2, 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] = u2) : u2 = r[100];
|
|
22655
|
+
let d2;
|
|
22656
|
+
return r[101] !== $0 || r[102] !== u2 ? (d2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
22672
22657
|
children: [
|
|
22673
|
-
|
|
22674
|
-
|
|
22658
|
+
$0,
|
|
22659
|
+
u2
|
|
22675
22660
|
]
|
|
22676
|
-
}), r[101] =
|
|
22661
|
+
}), r[101] = $0, r[102] = u2, r[103] = d2) : d2 = r[103], d2;
|
|
22677
22662
|
});
|
|
22678
22663
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
22679
|
-
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: Z, freezeColumnsLeft:
|
|
22680
|
-
let
|
|
22664
|
+
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: Z, freezeColumnsLeft: H0, freezeColumnsRight: U0, textJustifyColumns: W0, wrappedColumns: G0, headerTooltip: K0, totalColumns: q0, get_row_ids: J0, cellStyles: Y0, hoverTemplate: X0, cellHoverTexts: Z0, toggleDisplayHeader: Q0, isChartBuilderOpen: $0, calculate_top_k_rows: e2, preview_column: t2, getRow: n2, cellId: r2, maxHeight: i2 }) => {
|
|
22665
|
+
let a2 = (0, import_react.useId)(), [o2, s2] = (0, import_react.useState)(0), { isPanelOpen: c2, isAnyPanelOpen: l2, togglePanel: u2, panelType: d2, setPanelType: f2 } = usePanelOwnership(a2, r2), p2 = (0, import_react.useMemo)(() => {
|
|
22681
22666
|
if (!M || !w || !M.stats) return ColumnChartSpecModel.EMPTY;
|
|
22682
22667
|
let e3 = toFieldTypes(w);
|
|
22683
22668
|
return new ColumnChartSpecModel(M.data || [], e3, M.stats, M.bin_values, M.value_counts, {
|
|
@@ -22686,13 +22671,13 @@ ${c}
|
|
|
22686
22671
|
}, [
|
|
22687
22672
|
w,
|
|
22688
22673
|
M
|
|
22689
|
-
]),
|
|
22674
|
+
]), m2 = useDeepCompareMemoize(w ?? inferFieldTypes(r)), h2 = (0, import_react.useMemo)(() => u === "all" ? m2 : m2.slice(0, u), [
|
|
22690
22675
|
u,
|
|
22691
|
-
|
|
22692
|
-
]),
|
|
22676
|
+
m2
|
|
22677
|
+
]), g2 = (0, import_react.useMemo)(() => {
|
|
22693
22678
|
let e3 = {};
|
|
22694
22679
|
if (r && r.length > 0) {
|
|
22695
|
-
for (let [c3, l3] of
|
|
22680
|
+
for (let [c3, l3] of h2) if (l3[0] === "number") {
|
|
22696
22681
|
let l4 = 0;
|
|
22697
22682
|
for (let e4 of r) {
|
|
22698
22683
|
let r3 = e4[c3];
|
|
@@ -22707,55 +22692,55 @@ ${c}
|
|
|
22707
22692
|
return e3;
|
|
22708
22693
|
}, [
|
|
22709
22694
|
r,
|
|
22710
|
-
|
|
22711
|
-
]),
|
|
22695
|
+
h2
|
|
22696
|
+
]), _2 = useDeepCompareMemoize(S), v2 = useDeepCompareMemoize(W0), y2 = useDeepCompareMemoize(G0), b2 = useDeepCompareMemoize(p2), x2 = useDeepCompareMemoize(g2), S2 = h2.length;
|
|
22712
22697
|
w || (b = false);
|
|
22713
|
-
let
|
|
22714
|
-
rowHeaders:
|
|
22698
|
+
let C2 = (0, import_react.useMemo)(() => generateColumns({
|
|
22699
|
+
rowHeaders: _2,
|
|
22715
22700
|
selection: f,
|
|
22716
|
-
chartSpecModel:
|
|
22717
|
-
fieldTypes:
|
|
22718
|
-
textJustifyColumns:
|
|
22719
|
-
wrappedColumns:
|
|
22720
|
-
headerTooltip:
|
|
22701
|
+
chartSpecModel: b2,
|
|
22702
|
+
fieldTypes: h2,
|
|
22703
|
+
textJustifyColumns: v2,
|
|
22704
|
+
wrappedColumns: y2,
|
|
22705
|
+
headerTooltip: K0,
|
|
22721
22706
|
showDataTypes: b,
|
|
22722
|
-
calculateTopKRows:
|
|
22723
|
-
fractionDigitsByColumn:
|
|
22707
|
+
calculateTopKRows: e2,
|
|
22708
|
+
fractionDigitsByColumn: x2
|
|
22724
22709
|
}), [
|
|
22725
22710
|
f,
|
|
22726
22711
|
b,
|
|
22727
|
-
|
|
22712
|
+
b2,
|
|
22713
|
+
_2,
|
|
22714
|
+
h2,
|
|
22728
22715
|
v2,
|
|
22729
|
-
g2,
|
|
22730
22716
|
y2,
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
|
-
|
|
22734
|
-
|
|
22735
|
-
]), T2 = (0, import_react.useMemo)(() => Object.fromEntries((p || []).map((e3) => [
|
|
22717
|
+
K0,
|
|
22718
|
+
e2,
|
|
22719
|
+
x2
|
|
22720
|
+
]), w2 = (0, import_react.useMemo)(() => Object.fromEntries((p || []).map((e3) => [
|
|
22736
22721
|
e3,
|
|
22737
22722
|
true
|
|
22738
22723
|
])), [
|
|
22739
22724
|
p
|
|
22740
|
-
]),
|
|
22725
|
+
]), T2 = useEvent_default((e3) => {
|
|
22741
22726
|
if (f === "single") {
|
|
22742
22727
|
let r3 = Functions.asUpdater(e3)({});
|
|
22743
22728
|
L(Object.keys(r3).slice(0, 1));
|
|
22744
22729
|
}
|
|
22745
22730
|
if (f === "multi") {
|
|
22746
|
-
let r3 = Functions.asUpdater(e3)(
|
|
22731
|
+
let r3 = Functions.asUpdater(e3)(w2);
|
|
22747
22732
|
L(Object.keys(r3));
|
|
22748
22733
|
}
|
|
22749
|
-
}),
|
|
22750
|
-
if (
|
|
22734
|
+
}), E2 = useEvent_default((e3) => {
|
|
22735
|
+
if (s2(e3), e3 < 0 || typeof l == "number" && e3 >= l || l === "too_many") return;
|
|
22751
22736
|
let r3 = getPageIndexForRow(e3, T.pageIndex, T.pageSize);
|
|
22752
22737
|
r3 !== null && O((e4) => ({
|
|
22753
22738
|
...e4,
|
|
22754
22739
|
pageIndex: r3
|
|
22755
22740
|
}));
|
|
22756
|
-
}),
|
|
22757
|
-
f === "single-cell" && L(Functions.asUpdater(e3)(
|
|
22758
|
-
}),
|
|
22741
|
+
}), D2 = p.filter((e3) => e3 instanceof Object && e3.columnName !== void 0), O2 = useEvent_default((e3) => {
|
|
22742
|
+
f === "single-cell" && L(Functions.asUpdater(e3)(D2).slice(0, 1)), f === "multi-cell" && L(Functions.asUpdater(e3)(D2));
|
|
22743
|
+
}), k2 = f === "multi" || f === "single", A2 = _ && !!t2, j2 = isInVscodeExtension(), M2 = isIslands();
|
|
22759
22744
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
22760
22745
|
children: [
|
|
22761
22746
|
l === "too_many" && T.pageSize === r.length && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
@@ -22766,13 +22751,13 @@ ${c}
|
|
|
22766
22751
|
" rows."
|
|
22767
22752
|
]
|
|
22768
22753
|
}),
|
|
22769
|
-
|
|
22754
|
+
S2 < q0 && S2 > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
22770
22755
|
className: "mb-1 rounded",
|
|
22771
22756
|
children: [
|
|
22772
22757
|
"Result clipped. Showing ",
|
|
22773
|
-
|
|
22758
|
+
S2,
|
|
22774
22759
|
" of ",
|
|
22775
|
-
|
|
22760
|
+
q0,
|
|
22776
22761
|
" columns."
|
|
22777
22762
|
]
|
|
22778
22763
|
}),
|
|
@@ -22780,27 +22765,27 @@ ${c}
|
|
|
22780
22765
|
className: "mb-1 rounded",
|
|
22781
22766
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
22782
22767
|
}),
|
|
22783
|
-
|
|
22768
|
+
l2 && (v || A2) && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
22784
22769
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
22785
|
-
rowIdx:
|
|
22786
|
-
setRowIdx:
|
|
22770
|
+
rowIdx: o2,
|
|
22771
|
+
setRowIdx: E2,
|
|
22787
22772
|
totalRows: l,
|
|
22788
|
-
fieldTypes:
|
|
22789
|
-
getRow:
|
|
22790
|
-
isSelectable:
|
|
22791
|
-
isRowSelected: !!
|
|
22792
|
-
handleRowSelectionChange:
|
|
22793
|
-
previewColumn:
|
|
22794
|
-
totalColumns:
|
|
22795
|
-
tableId:
|
|
22796
|
-
showRowExplorer: v && !
|
|
22797
|
-
showColumnExplorer:
|
|
22798
|
-
activeTab:
|
|
22799
|
-
onTabChange:
|
|
22773
|
+
fieldTypes: m2,
|
|
22774
|
+
getRow: n2,
|
|
22775
|
+
isSelectable: k2,
|
|
22776
|
+
isRowSelected: !!w2[o2],
|
|
22777
|
+
handleRowSelectionChange: T2,
|
|
22778
|
+
previewColumn: t2,
|
|
22779
|
+
totalColumns: q0,
|
|
22780
|
+
tableId: a2,
|
|
22781
|
+
showRowExplorer: v && !j2,
|
|
22782
|
+
showColumnExplorer: A2 && !j2,
|
|
22783
|
+
activeTab: d2,
|
|
22784
|
+
onTabChange: f2
|
|
22800
22785
|
})
|
|
22801
22786
|
}),
|
|
22802
22787
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
22803
|
-
value:
|
|
22788
|
+
value: p2,
|
|
22804
22789
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
22805
22790
|
label: e,
|
|
22806
22791
|
align: "top",
|
|
@@ -22808,12 +22793,12 @@ ${c}
|
|
|
22808
22793
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
22809
22794
|
data: r,
|
|
22810
22795
|
rawData: c,
|
|
22811
|
-
columns:
|
|
22796
|
+
columns: C2,
|
|
22812
22797
|
className: I,
|
|
22813
|
-
maxHeight:
|
|
22798
|
+
maxHeight: i2,
|
|
22814
22799
|
sorting: R,
|
|
22815
22800
|
totalRows: l,
|
|
22816
|
-
totalColumns:
|
|
22801
|
+
totalColumns: q0,
|
|
22817
22802
|
manualSorting: true,
|
|
22818
22803
|
setSorting: z,
|
|
22819
22804
|
pagination: d,
|
|
@@ -22821,11 +22806,11 @@ ${c}
|
|
|
22821
22806
|
selection: f,
|
|
22822
22807
|
paginationState: T,
|
|
22823
22808
|
setPaginationState: O,
|
|
22824
|
-
rowSelection:
|
|
22825
|
-
cellSelection:
|
|
22826
|
-
cellStyling:
|
|
22827
|
-
hoverTemplate:
|
|
22828
|
-
cellHoverTexts:
|
|
22809
|
+
rowSelection: w2,
|
|
22810
|
+
cellSelection: D2,
|
|
22811
|
+
cellStyling: Y0,
|
|
22812
|
+
hoverTemplate: X0,
|
|
22813
|
+
cellHoverTexts: Z0,
|
|
22829
22814
|
downloadAs: h ? j : void 0,
|
|
22830
22815
|
enableSearch: B,
|
|
22831
22816
|
searchQuery: H,
|
|
@@ -22833,23 +22818,23 @@ ${c}
|
|
|
22833
22818
|
showFilters: m,
|
|
22834
22819
|
filters: G,
|
|
22835
22820
|
onFiltersChange: q,
|
|
22836
|
-
calculateTopKRows:
|
|
22821
|
+
calculateTopKRows: e2,
|
|
22837
22822
|
reloading: Z,
|
|
22838
|
-
onRowSelectionChange:
|
|
22839
|
-
freezeColumnsLeft:
|
|
22840
|
-
freezeColumnsRight:
|
|
22841
|
-
onCellSelectionChange:
|
|
22842
|
-
getRowIds:
|
|
22843
|
-
toggleDisplayHeader:
|
|
22844
|
-
showChartBuilder: y && !
|
|
22845
|
-
isChartBuilderOpen:
|
|
22823
|
+
onRowSelectionChange: T2,
|
|
22824
|
+
freezeColumnsLeft: H0,
|
|
22825
|
+
freezeColumnsRight: U0,
|
|
22826
|
+
onCellSelectionChange: O2,
|
|
22827
|
+
getRowIds: J0,
|
|
22828
|
+
toggleDisplayHeader: Q0,
|
|
22829
|
+
showChartBuilder: y && !M2,
|
|
22830
|
+
isChartBuilderOpen: $0,
|
|
22846
22831
|
showPageSizeSelector: g,
|
|
22847
|
-
showTableExplorer: (v ||
|
|
22848
|
-
togglePanel:
|
|
22849
|
-
isPanelOpen:
|
|
22850
|
-
isAnyPanelOpen:
|
|
22851
|
-
viewedRowIdx:
|
|
22852
|
-
onViewedRowChange: (e3) =>
|
|
22832
|
+
showTableExplorer: (v || A2) && !j2 && !M2,
|
|
22833
|
+
togglePanel: u2,
|
|
22834
|
+
isPanelOpen: c2,
|
|
22835
|
+
isAnyPanelOpen: l2,
|
|
22836
|
+
viewedRowIdx: o2,
|
|
22837
|
+
onViewedRowChange: (e3) => s2(e3)
|
|
22853
22838
|
})
|
|
22854
22839
|
})
|
|
22855
22840
|
})
|
|
@@ -23050,7 +23035,7 @@ ${c}
|
|
|
23050
23035
|
children: _temp5$3
|
|
23051
23036
|
}),
|
|
23052
23037
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
23053
|
-
children: _temp6$
|
|
23038
|
+
children: _temp6$2
|
|
23054
23039
|
})
|
|
23055
23040
|
]
|
|
23056
23041
|
}), r[7] = p) : p = r[7];
|
|
@@ -23092,7 +23077,7 @@ ${c}
|
|
|
23092
23077
|
children: e
|
|
23093
23078
|
});
|
|
23094
23079
|
}
|
|
23095
|
-
function _temp6$
|
|
23080
|
+
function _temp6$2(e) {
|
|
23096
23081
|
return (0, import_jsx_runtime.jsx)(CalendarCell, {
|
|
23097
23082
|
date: e
|
|
23098
23083
|
});
|
|
@@ -23350,7 +23335,7 @@ ${c}
|
|
|
23350
23335
|
(0, import_jsx_runtime.jsxs)(CalendarGrid, {
|
|
23351
23336
|
children: [
|
|
23352
23337
|
(0, import_jsx_runtime.jsx)(CalendarGridHeader, {
|
|
23353
|
-
children: _temp6$
|
|
23338
|
+
children: _temp6$1
|
|
23354
23339
|
}),
|
|
23355
23340
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
23356
23341
|
children: _temp7
|
|
@@ -23394,7 +23379,7 @@ ${c}
|
|
|
23394
23379
|
function _temp5$2(e) {
|
|
23395
23380
|
return cn("group flex flex-col gap-2", e);
|
|
23396
23381
|
}
|
|
23397
|
-
function _temp6$
|
|
23382
|
+
function _temp6$1(e) {
|
|
23398
23383
|
return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
|
|
23399
23384
|
children: e
|
|
23400
23385
|
});
|
|
@@ -25461,29 +25446,29 @@ ${c}
|
|
|
25461
25446
|
], r[2] = b, r[3] = S);
|
|
25462
25447
|
let { data: w, error: T, isPending: O } = useAsyncData(y, S), j;
|
|
25463
25448
|
r[4] === w ? j = r[5] : (j = w || {}, r[4] = w, r[5] = j);
|
|
25464
|
-
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), Z = (0, import_react.useRef)(null),
|
|
25465
|
-
r[6] === d ?
|
|
25449
|
+
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), Z = (0, import_react.useRef)(null), H0;
|
|
25450
|
+
r[6] === d ? H0 = r[7] : (H0 = (e3) => {
|
|
25466
25451
|
var _a3;
|
|
25467
|
-
d &&
|
|
25468
|
-
}, r[6] = d, r[7] =
|
|
25469
|
-
let
|
|
25470
|
-
r[8] === G ?
|
|
25471
|
-
|
|
25472
|
-
}, r[8] = G, r[9] =
|
|
25473
|
-
let
|
|
25474
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
25475
|
-
let
|
|
25476
|
-
(f == null ? void 0 : f.transforms.length) !==
|
|
25477
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
25478
|
-
let
|
|
25479
|
-
r[13] !== w || r[14] !== p || r[15] !==
|
|
25452
|
+
d && e3 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
25453
|
+
}, r[6] = d, r[7] = H0);
|
|
25454
|
+
let U0 = H0, W0 = (0, import_react.useRef)(G), G0;
|
|
25455
|
+
r[8] === G ? G0 = r[9] : (G0 = () => {
|
|
25456
|
+
W0.current = G;
|
|
25457
|
+
}, r[8] = G, r[9] = G0), (0, import_react.useEffect)(G0);
|
|
25458
|
+
let K0;
|
|
25459
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (K0 = () => {
|
|
25460
|
+
let e3 = W0.current;
|
|
25461
|
+
(f == null ? void 0 : f.transforms.length) !== e3.transforms.length && p(e3);
|
|
25462
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = K0) : K0 = r[12];
|
|
25463
|
+
let q0 = f == null ? void 0 : f.transforms.length, J0;
|
|
25464
|
+
r[13] !== w || r[14] !== p || r[15] !== q0 ? (J0 = [
|
|
25480
25465
|
w,
|
|
25481
|
-
|
|
25482
|
-
|
|
25466
|
+
q0,
|
|
25467
|
+
W0,
|
|
25483
25468
|
p
|
|
25484
|
-
], r[13] = w, r[14] = p, r[15] =
|
|
25485
|
-
let
|
|
25486
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25469
|
+
], r[13] = w, r[14] = p, r[15] = q0, r[16] = J0) : J0 = r[16], (0, import_react.useEffect)(K0, J0);
|
|
25470
|
+
let Y0;
|
|
25471
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y0 = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25487
25472
|
value: "transform",
|
|
25488
25473
|
className: "text-xs py-1",
|
|
25489
25474
|
children: [
|
|
@@ -25492,9 +25477,9 @@ ${c}
|
|
|
25492
25477
|
}),
|
|
25493
25478
|
"Transform"
|
|
25494
25479
|
]
|
|
25495
|
-
}), r[17] =
|
|
25496
|
-
let
|
|
25497
|
-
r[18] === B ?
|
|
25480
|
+
}), r[17] = Y0) : Y0 = r[17];
|
|
25481
|
+
let X0;
|
|
25482
|
+
r[18] === B ? X0 = r[19] : (X0 = B && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25498
25483
|
value: "python-code",
|
|
25499
25484
|
className: "text-xs py-1",
|
|
25500
25485
|
children: [
|
|
@@ -25503,9 +25488,9 @@ ${c}
|
|
|
25503
25488
|
}),
|
|
25504
25489
|
"Python Code"
|
|
25505
25490
|
]
|
|
25506
|
-
}), r[18] = B, r[19] =
|
|
25507
|
-
let
|
|
25508
|
-
r[20] === H ?
|
|
25491
|
+
}), r[18] = B, r[19] = X0);
|
|
25492
|
+
let Z0;
|
|
25493
|
+
r[20] === H ? Z0 = r[21] : (Z0 = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
25509
25494
|
value: "sql-code",
|
|
25510
25495
|
className: "text-xs py-1",
|
|
25511
25496
|
children: [
|
|
@@ -25514,54 +25499,54 @@ ${c}
|
|
|
25514
25499
|
}),
|
|
25515
25500
|
"SQL Code"
|
|
25516
25501
|
]
|
|
25517
|
-
}), r[20] = H, r[21] =
|
|
25518
|
-
let
|
|
25519
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25502
|
+
}), r[20] = H, r[21] = Z0);
|
|
25503
|
+
let Q0;
|
|
25504
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q0 = (0, import_jsx_runtime.jsx)("div", {
|
|
25520
25505
|
className: "grow"
|
|
25521
|
-
}), r[22] =
|
|
25522
|
-
let
|
|
25523
|
-
r[23] !==
|
|
25506
|
+
}), r[22] = Q0) : Q0 = r[22];
|
|
25507
|
+
let e2;
|
|
25508
|
+
r[23] !== X0 || r[24] !== Z0 ? (e2 = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
25524
25509
|
className: "h-8",
|
|
25525
25510
|
children: [
|
|
25511
|
+
Y0,
|
|
25526
25512
|
X0,
|
|
25527
25513
|
Z0,
|
|
25528
|
-
Q0
|
|
25529
|
-
$0
|
|
25514
|
+
Q0
|
|
25530
25515
|
]
|
|
25531
|
-
}), r[23] =
|
|
25532
|
-
let
|
|
25533
|
-
r[26] === O ?
|
|
25516
|
+
}), r[23] = X0, r[24] = Z0, r[25] = e2) : e2 = r[25];
|
|
25517
|
+
let t2;
|
|
25518
|
+
r[26] === O ? t2 = r[27] : (t2 = O && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
25534
25519
|
size: "small"
|
|
25535
|
-
}), r[26] = O, r[27] =
|
|
25536
|
-
let
|
|
25537
|
-
r[28] !==
|
|
25520
|
+
}), r[26] = O, r[27] = t2);
|
|
25521
|
+
let n2;
|
|
25522
|
+
r[28] !== e2 || r[29] !== t2 ? (n2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
25538
25523
|
className: "flex items-center gap-2",
|
|
25539
25524
|
children: [
|
|
25540
|
-
|
|
25541
|
-
|
|
25525
|
+
e2,
|
|
25526
|
+
t2
|
|
25542
25527
|
]
|
|
25543
|
-
}), r[28] =
|
|
25528
|
+
}), r[28] = e2, r[29] = t2, r[30] = n2) : n2 = r[30];
|
|
25529
|
+
let r2;
|
|
25530
|
+
r[31] !== p || r[32] !== f ? (r2 = (e3) => {
|
|
25531
|
+
dequal(e3, f) || (p(e3), q(e3));
|
|
25532
|
+
}, r[31] = p, r[32] = f, r[33] = r2) : r2 = r[33];
|
|
25544
25533
|
let i2;
|
|
25545
|
-
r[
|
|
25546
|
-
dequal(e2, f) || (p(e2), q(e2));
|
|
25547
|
-
}, r[31] = p, r[32] = f, r[33] = i2) : i2 = r[33];
|
|
25548
|
-
let a2;
|
|
25549
|
-
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !== i2 ? (a2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25534
|
+
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !== r2 ? (i2 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25550
25535
|
value: "transform",
|
|
25551
25536
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25552
25537
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
25553
25538
|
ref: Z,
|
|
25554
25539
|
initialValue: G,
|
|
25555
25540
|
columns: c,
|
|
25556
|
-
onChange:
|
|
25541
|
+
onChange: r2,
|
|
25557
25542
|
onInvalidChange: q,
|
|
25558
25543
|
getColumnValues: h,
|
|
25559
25544
|
columnTypesPerStep: z,
|
|
25560
25545
|
lazy: d
|
|
25561
25546
|
})
|
|
25562
|
-
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] =
|
|
25563
|
-
let
|
|
25564
|
-
r[41] === B ?
|
|
25547
|
+
}), r[34] = z, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] = r2, r[40] = i2) : i2 = r[40];
|
|
25548
|
+
let a2;
|
|
25549
|
+
r[41] === B ? a2 = r[42] : (a2 = B && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25565
25550
|
value: "python-code",
|
|
25566
25551
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25567
25552
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25570,9 +25555,9 @@ ${c}
|
|
|
25570
25555
|
code: B,
|
|
25571
25556
|
language: "python"
|
|
25572
25557
|
})
|
|
25573
|
-
}), r[41] = B, r[42] =
|
|
25574
|
-
let
|
|
25575
|
-
r[43] === H ?
|
|
25558
|
+
}), r[41] = B, r[42] = a2);
|
|
25559
|
+
let o2;
|
|
25560
|
+
r[43] === H ? o2 = r[44] : (o2 = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
25576
25561
|
value: "sql-code",
|
|
25577
25562
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
25578
25563
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -25581,35 +25566,35 @@ ${c}
|
|
|
25581
25566
|
code: H,
|
|
25582
25567
|
language: "sql"
|
|
25583
25568
|
})
|
|
25584
|
-
}), r[43] = H, r[44] =
|
|
25585
|
-
let
|
|
25586
|
-
r[45] !==
|
|
25569
|
+
}), r[43] = H, r[44] = o2);
|
|
25570
|
+
let s2;
|
|
25571
|
+
r[45] !== U0 || r[46] !== n2 || r[47] !== i2 || r[48] !== a2 || r[49] !== o2 ? (s2 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
25587
25572
|
defaultValue: "transform",
|
|
25588
|
-
onValueChange:
|
|
25573
|
+
onValueChange: U0,
|
|
25589
25574
|
children: [
|
|
25590
|
-
|
|
25575
|
+
n2,
|
|
25576
|
+
i2,
|
|
25591
25577
|
a2,
|
|
25592
|
-
o2
|
|
25593
|
-
s2
|
|
25578
|
+
o2
|
|
25594
25579
|
]
|
|
25595
|
-
}), r[45] =
|
|
25596
|
-
let
|
|
25597
|
-
r[51] === T ?
|
|
25580
|
+
}), r[45] = U0, r[46] = n2, r[47] = i2, r[48] = a2, r[49] = o2, r[50] = s2) : s2 = r[50];
|
|
25581
|
+
let c2;
|
|
25582
|
+
r[51] === T ? c2 = r[52] : (c2 = T && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
25598
25583
|
error: T
|
|
25599
|
-
}), r[51] = T, r[52] =
|
|
25600
|
-
let
|
|
25601
|
-
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !==
|
|
25584
|
+
}), r[51] = T, r[52] = c2);
|
|
25585
|
+
let l2 = M || "", u2 = I ?? 0, d2 = W ?? 0, f2 = L || Arrays.EMPTY, p2 = I && I > 5 || false, m2;
|
|
25586
|
+
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !== l2 || r[60] !== u2 || r[61] !== d2 || r[62] !== f2 || r[63] !== p2 ? (m2 = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
25602
25587
|
label: null,
|
|
25603
25588
|
className: "rounded-b border-x border-b",
|
|
25604
|
-
data:
|
|
25589
|
+
data: l2,
|
|
25605
25590
|
hasStableRowId: false,
|
|
25606
|
-
totalRows:
|
|
25607
|
-
totalColumns:
|
|
25591
|
+
totalRows: u2,
|
|
25592
|
+
totalColumns: d2,
|
|
25608
25593
|
maxColumns: "all",
|
|
25609
25594
|
pageSize: l,
|
|
25610
25595
|
pagination: true,
|
|
25611
25596
|
fieldTypes: R,
|
|
25612
|
-
rowHeaders:
|
|
25597
|
+
rowHeaders: f2,
|
|
25613
25598
|
showDownload: u,
|
|
25614
25599
|
download_as: _,
|
|
25615
25600
|
enableSearch: false,
|
|
@@ -25618,7 +25603,7 @@ ${c}
|
|
|
25618
25603
|
showColumnSummaries: false,
|
|
25619
25604
|
showDataTypes: true,
|
|
25620
25605
|
get_column_summaries: getColumnSummaries,
|
|
25621
|
-
showPageSizeSelector:
|
|
25606
|
+
showPageSizeSelector: p2,
|
|
25622
25607
|
showColumnExplorer: false,
|
|
25623
25608
|
showRowExplorer: true,
|
|
25624
25609
|
showChartBuilder: false,
|
|
@@ -25627,15 +25612,15 @@ ${c}
|
|
|
25627
25612
|
selection: null,
|
|
25628
25613
|
lazy: false,
|
|
25629
25614
|
host: v
|
|
25630
|
-
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] =
|
|
25631
|
-
let
|
|
25632
|
-
return r[65] !==
|
|
25615
|
+
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] = l2, r[60] = u2, r[61] = d2, r[62] = f2, r[63] = p2, r[64] = m2) : m2 = r[64];
|
|
25616
|
+
let h2;
|
|
25617
|
+
return r[65] !== s2 || r[66] !== c2 || r[67] !== m2 ? (h2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
25633
25618
|
children: [
|
|
25619
|
+
s2,
|
|
25634
25620
|
c2,
|
|
25635
|
-
|
|
25636
|
-
h2
|
|
25621
|
+
m2
|
|
25637
25622
|
]
|
|
25638
|
-
}), r[65] =
|
|
25623
|
+
}), r[65] = s2, r[66] = c2, r[67] = m2, r[68] = h2) : h2 = r[68], h2;
|
|
25639
25624
|
});
|
|
25640
25625
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
25641
25626
|
function getColumnSummaries() {
|
|
@@ -25823,28 +25808,28 @@ ${c}
|
|
|
25823
25808
|
}, W = [
|
|
25824
25809
|
B
|
|
25825
25810
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
25826
|
-
let G, q, Z, U0,
|
|
25811
|
+
let G, q, Z, H0, U0, G0, K0, J0, Y0;
|
|
25827
25812
|
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) {
|
|
25828
|
-
|
|
25813
|
+
Y0 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
25829
25814
|
bb0: {
|
|
25830
|
-
|
|
25815
|
+
U0 = (R == null ? void 0 : R.files) ?? [];
|
|
25831
25816
|
let e3;
|
|
25832
25817
|
r[31] === c ? e3 = r[32] : (e3 = new Set(c.map(_temp$12)), r[31] = c, r[32] = e3);
|
|
25833
25818
|
let m2 = e3, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
25834
25819
|
r[33] !== g2 || r[34] !== _2 ? (w = (e4) => g2 && e4.is_directory || _2 && !e4.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
25835
|
-
let T2 =
|
|
25820
|
+
let T2 = U0.filter(w);
|
|
25836
25821
|
if (G = T2.length > 0 && T2.every((e4) => m2.has(e4.path)), !R && z) {
|
|
25837
25822
|
let e4;
|
|
25838
25823
|
r[36] === z.message ? e4 = r[37] : (e4 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
25839
25824
|
kind: "danger",
|
|
25840
25825
|
children: z.message
|
|
25841
|
-
}), r[36] = z.message, r[37] = e4),
|
|
25826
|
+
}), r[36] = z.message, r[37] = e4), Y0 = e4;
|
|
25842
25827
|
break bb0;
|
|
25843
25828
|
}
|
|
25844
25829
|
let E2;
|
|
25845
25830
|
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), q = E2.deliminator;
|
|
25846
25831
|
let O2;
|
|
25847
|
-
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2),
|
|
25832
|
+
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2), K0 = O2;
|
|
25848
25833
|
let j2;
|
|
25849
25834
|
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e4) {
|
|
25850
25835
|
if (b) return;
|
|
@@ -25865,7 +25850,7 @@ ${c}
|
|
|
25865
25850
|
return;
|
|
25866
25851
|
}
|
|
25867
25852
|
y(e4), S(false);
|
|
25868
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48],
|
|
25853
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], J0 = j2;
|
|
25869
25854
|
let M2;
|
|
25870
25855
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e4) {
|
|
25871
25856
|
let { path: r3, name: c2, isDirectory: l2 } = e4;
|
|
@@ -25893,9 +25878,9 @@ ${c}
|
|
|
25893
25878
|
let H2 = B2, W2;
|
|
25894
25879
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
25895
25880
|
l(c.filter((e4) => Paths.dirname(e4.path) !== v));
|
|
25896
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], Z = W2,
|
|
25881
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], Z = W2, G0 = function() {
|
|
25897
25882
|
let e4 = [];
|
|
25898
|
-
for (let r3 of
|
|
25883
|
+
for (let r3 of U0) {
|
|
25899
25884
|
if (!g2 && r3.is_directory || m2.has(r3.path)) continue;
|
|
25900
25885
|
let c2 = I2({
|
|
25901
25886
|
path: r3.path,
|
|
@@ -25908,35 +25893,35 @@ ${c}
|
|
|
25908
25893
|
...c,
|
|
25909
25894
|
...e4
|
|
25910
25895
|
]);
|
|
25911
|
-
},
|
|
25912
|
-
let
|
|
25913
|
-
r[59] ===
|
|
25914
|
-
let
|
|
25915
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25896
|
+
}, H0 = [];
|
|
25897
|
+
let X02;
|
|
25898
|
+
r[59] === J0 ? X02 = r[60] : (X02 = () => J0(PARENT_DIRECTORY), r[59] = J0, r[60] = X02);
|
|
25899
|
+
let Z02, Q02;
|
|
25900
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z02 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
25916
25901
|
className: "w-[50px] pl-4",
|
|
25917
25902
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
25918
25903
|
size: 16
|
|
25919
25904
|
})
|
|
25920
|
-
}),
|
|
25905
|
+
}), Q02 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
25921
25906
|
children: PARENT_DIRECTORY
|
|
25922
|
-
}), r[61] =
|
|
25923
|
-
let
|
|
25924
|
-
r[63] ===
|
|
25907
|
+
}), r[61] = Z02, r[62] = Q02) : (Z02 = r[61], Q02 = r[62]);
|
|
25908
|
+
let $02;
|
|
25909
|
+
r[63] === X02 ? $02 = r[64] : ($02 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
25925
25910
|
className: "hover:bg-accent select-none",
|
|
25926
|
-
onClick:
|
|
25911
|
+
onClick: X02,
|
|
25927
25912
|
children: [
|
|
25928
|
-
|
|
25929
|
-
|
|
25913
|
+
Z02,
|
|
25914
|
+
Q02
|
|
25930
25915
|
]
|
|
25931
|
-
}, "Parent directory"), r[63] =
|
|
25932
|
-
for (let e4 of
|
|
25916
|
+
}, "Parent directory"), r[63] = X02, r[64] = $02), H0.push($02);
|
|
25917
|
+
for (let e4 of U0) {
|
|
25933
25918
|
let r3 = e4.path;
|
|
25934
25919
|
r3.startsWith("//") && (r3 = r3.slice(1));
|
|
25935
25920
|
let c2 = e4.is_directory ? (e5) => {
|
|
25936
25921
|
let { path: r4 } = e5;
|
|
25937
|
-
return
|
|
25922
|
+
return J0(r4);
|
|
25938
25923
|
} : H2, l2 = FILE_ICON[e4.is_directory ? "directory" : guessFileIconType(e4.name)], u2 = m2.has(r3);
|
|
25939
|
-
|
|
25924
|
+
H0.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
25940
25925
|
className: cn("hover:bg-accent group select-none", {
|
|
25941
25926
|
"bg-primary/25 hover:bg-primary/35": u2
|
|
25942
25927
|
}),
|
|
@@ -25966,21 +25951,21 @@ ${c}
|
|
|
25966
25951
|
}, e4.id));
|
|
25967
25952
|
}
|
|
25968
25953
|
}
|
|
25969
|
-
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] = Z, r[25] =
|
|
25970
|
-
} else G = r[22], q = r[23], Z = r[24],
|
|
25971
|
-
if (
|
|
25972
|
-
let Z0, Q0, $0, e2, t2, n2
|
|
25973
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== Z || r[69] !== z || r[70] !==
|
|
25954
|
+
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] = Z, r[25] = H0, r[26] = U0, r[27] = G0, r[28] = K0, r[29] = J0, r[30] = Y0;
|
|
25955
|
+
} else G = r[22], q = r[23], Z = r[24], H0 = r[25], U0 = r[26], G0 = r[27], K0 = r[28], J0 = r[29], Y0 = r[30];
|
|
25956
|
+
if (Y0 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return Y0;
|
|
25957
|
+
let X0, Z0, Q0, $0, e2, t2, n2;
|
|
25958
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== Z || r[69] !== z || r[70] !== H0 || r[71] !== U0 || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== G0 || r[79] !== K0 || r[80] !== d || r[81] !== J0 || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
25974
25959
|
let { parentDirectories: e3 } = getProtocolAndParentDirectories({
|
|
25975
25960
|
path: v,
|
|
25976
25961
|
delimiter: q,
|
|
25977
25962
|
initialPath: u,
|
|
25978
25963
|
restrictNavigation: h
|
|
25979
25964
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
25980
|
-
r[92] === z ?
|
|
25965
|
+
r[92] === z ? n2 = r[93] : (n2 = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25981
25966
|
kind: "danger",
|
|
25982
25967
|
children: z.message
|
|
25983
|
-
}), r[92] = z, r[93] =
|
|
25968
|
+
}), r[92] = z, r[93] = n2), X0 = (() => {
|
|
25984
25969
|
let e4 = (0, import_jsx_runtime.jsx)(Label, {
|
|
25985
25970
|
children: renderHTML({
|
|
25986
25971
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -25997,7 +25982,7 @@ ${c}
|
|
|
25997
25982
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
25998
25983
|
size: "xs",
|
|
25999
25984
|
variant: "link",
|
|
26000
|
-
onClick: G ? Z :
|
|
25985
|
+
onClick: G ? Z : G0,
|
|
26001
25986
|
children: G ? "Deselect all" : "Select all"
|
|
26002
25987
|
})
|
|
26003
25988
|
})
|
|
@@ -26005,18 +25990,18 @@ ${c}
|
|
|
26005
25990
|
}) : e4;
|
|
26006
25991
|
})();
|
|
26007
25992
|
let _2;
|
|
26008
|
-
r[94] ===
|
|
25993
|
+
r[94] === J0 ? _2 = r[95] : (_2 = (e4) => J0(e4.target.value), r[94] = J0, r[95] = _2);
|
|
26009
25994
|
let y2 = e3.map(_temp3$5);
|
|
26010
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
25995
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (Z0 = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
26011
25996
|
className: "mt-2 w-full",
|
|
26012
25997
|
placeholder: v,
|
|
26013
25998
|
value: v,
|
|
26014
25999
|
onChange: _2,
|
|
26015
26000
|
children: y2
|
|
26016
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
26001
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = Z0) : Z0 = r[99], r[100] !== R || r[101] !== U0 ? (Q0 = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
26017
26002
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
26018
|
-
children: R.is_truncated ? `Showing ${
|
|
26019
|
-
}), r[100] = R, r[101] =
|
|
26003
|
+
children: R.is_truncated ? `Showing ${U0.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
26004
|
+
}), r[100] = R, r[101] = U0, r[102] = Q0) : Q0 = r[102];
|
|
26020
26005
|
let b2;
|
|
26021
26006
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
26022
26007
|
height: "14rem"
|
|
@@ -26035,12 +26020,12 @@ ${c}
|
|
|
26035
26020
|
]
|
|
26036
26021
|
}), r[104] = T, r[105] = S2);
|
|
26037
26022
|
let E2;
|
|
26038
|
-
r[106] ===
|
|
26023
|
+
r[106] === H0 ? E2 = r[107] : (E2 = (0, import_jsx_runtime.jsx)(Table, {
|
|
26039
26024
|
className: "cursor-pointer table-fixed",
|
|
26040
26025
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
26041
|
-
children:
|
|
26026
|
+
children: H0
|
|
26042
26027
|
})
|
|
26043
|
-
}), r[106] =
|
|
26028
|
+
}), r[106] = H0, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? ($0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26044
26029
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
26045
26030
|
style: b2,
|
|
26046
26031
|
"aria-busy": B,
|
|
@@ -26049,7 +26034,7 @@ ${c}
|
|
|
26049
26034
|
S2,
|
|
26050
26035
|
E2
|
|
26051
26036
|
]
|
|
26052
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] =
|
|
26037
|
+
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = $0) : $0 = r[111], e2 = "mt-4", t2 = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
26053
26038
|
children: [
|
|
26054
26039
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
26055
26040
|
className: "flex items-center gap-2",
|
|
@@ -26079,28 +26064,28 @@ ${c}
|
|
|
26079
26064
|
marginBlock: 0
|
|
26080
26065
|
},
|
|
26081
26066
|
className: "m-0 text-xs text-muted-foreground",
|
|
26082
|
-
children:
|
|
26067
|
+
children: K0
|
|
26083
26068
|
})
|
|
26084
26069
|
})
|
|
26085
26070
|
]
|
|
26086
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] = Z, r[69] = z, r[70] =
|
|
26087
|
-
} else
|
|
26071
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = Z, r[69] = z, r[70] = H0, r[71] = U0, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = G0, r[79] = K0, r[80] = d, r[81] = J0, r[82] = l, r[83] = T, r[84] = c.length, r[85] = X0, r[86] = Z0, r[87] = Q0, r[88] = $0, r[89] = e2, r[90] = t2, r[91] = n2;
|
|
26072
|
+
} else X0 = r[85], Z0 = r[86], Q0 = r[87], $0 = r[88], e2 = r[89], t2 = r[90], n2 = r[91];
|
|
26073
|
+
let r2;
|
|
26074
|
+
r[112] !== e2 || r[113] !== t2 ? (r2 = (0, import_jsx_runtime.jsx)("div", {
|
|
26075
|
+
className: e2,
|
|
26076
|
+
children: t2
|
|
26077
|
+
}), r[112] = e2, r[113] = t2, r[114] = r2) : r2 = r[114];
|
|
26088
26078
|
let i2;
|
|
26089
|
-
r[
|
|
26090
|
-
className: t2,
|
|
26091
|
-
children: n2
|
|
26092
|
-
}), r[112] = t2, r[113] = n2, r[114] = i2) : i2 = r[114];
|
|
26093
|
-
let a2;
|
|
26094
|
-
return r[115] !== Z0 || r[116] !== Q0 || r[117] !== $0 || r[118] !== e2 || r[119] !== i2 || r[120] !== r2 ? (a2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26079
|
+
return r[115] !== X0 || r[116] !== Z0 || r[117] !== Q0 || r[118] !== $0 || r[119] !== r2 || r[120] !== n2 ? (i2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
26095
26080
|
children: [
|
|
26096
|
-
|
|
26081
|
+
n2,
|
|
26082
|
+
X0,
|
|
26097
26083
|
Z0,
|
|
26098
26084
|
Q0,
|
|
26099
26085
|
$0,
|
|
26100
|
-
|
|
26101
|
-
i2
|
|
26086
|
+
r2
|
|
26102
26087
|
]
|
|
26103
|
-
}), r[115] =
|
|
26088
|
+
}), r[115] = X0, r[116] = Z0, r[117] = Q0, r[118] = $0, r[119] = r2, r[120] = n2, r[121] = i2) : i2 = r[121], i2;
|
|
26104
26089
|
};
|
|
26105
26090
|
function _temp$12(e) {
|
|
26106
26091
|
return e.path;
|
|
@@ -31490,55 +31475,55 @@ ${c}
|
|
|
31490
31475
|
return typeof S == "function" ? S : noop$2;
|
|
31491
31476
|
}, [
|
|
31492
31477
|
S
|
|
31493
|
-
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null),
|
|
31494
|
-
!
|
|
31495
|
-
Z.current && (Z.current.files.length || (
|
|
31478
|
+
]), q = (0, import_react.useRef)(null), Z = (0, import_react.useRef)(null), H0 = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), U0 = H0[0], W0 = H0[1], G0 = U0.isFocused, K0 = U0.isFileDialogActive, q0 = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), J0 = function() {
|
|
31479
|
+
!q0.current && K0 && setTimeout(function() {
|
|
31480
|
+
Z.current && (Z.current.files.length || (W0({
|
|
31496
31481
|
type: "closeDialog"
|
|
31497
31482
|
}), G()));
|
|
31498
31483
|
}, 300);
|
|
31499
31484
|
};
|
|
31500
31485
|
(0, import_react.useEffect)(function() {
|
|
31501
|
-
return window.addEventListener("focus",
|
|
31502
|
-
window.removeEventListener("focus",
|
|
31486
|
+
return window.addEventListener("focus", J0, false), function() {
|
|
31487
|
+
window.removeEventListener("focus", J0, false);
|
|
31503
31488
|
};
|
|
31504
31489
|
}, [
|
|
31505
31490
|
Z,
|
|
31506
|
-
|
|
31491
|
+
K0,
|
|
31507
31492
|
G,
|
|
31508
|
-
|
|
31493
|
+
q0
|
|
31509
31494
|
]);
|
|
31510
|
-
var
|
|
31511
|
-
q.current && q.current.contains(e3.target) || (e3.preventDefault(),
|
|
31495
|
+
var Y0 = (0, import_react.useRef)([]), X0 = (0, import_react.useRef)([]), Z0 = function(e3) {
|
|
31496
|
+
q.current && q.current.contains(e3.target) || (e3.preventDefault(), Y0.current = []);
|
|
31512
31497
|
};
|
|
31513
31498
|
(0, import_react.useEffect)(function() {
|
|
31514
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
31515
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
31499
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", Z0, false)), function() {
|
|
31500
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", Z0));
|
|
31516
31501
|
};
|
|
31517
31502
|
}, [
|
|
31518
31503
|
q,
|
|
31519
31504
|
O
|
|
31520
31505
|
]), (0, import_react.useEffect)(function() {
|
|
31521
31506
|
var e3 = function(e4) {
|
|
31522
|
-
|
|
31507
|
+
X0.current = [].concat(_toConsumableArray(X0.current), [
|
|
31523
31508
|
e4.target
|
|
31524
|
-
]), isEvtWithFiles(e4) &&
|
|
31509
|
+
]), isEvtWithFiles(e4) && W0({
|
|
31525
31510
|
isDragGlobal: true,
|
|
31526
31511
|
type: "setDragGlobal"
|
|
31527
31512
|
});
|
|
31528
31513
|
}, r3 = function(e4) {
|
|
31529
|
-
|
|
31514
|
+
X0.current = X0.current.filter(function(r4) {
|
|
31530
31515
|
return r4 !== e4.target && r4 !== null;
|
|
31531
|
-
}), !(
|
|
31516
|
+
}), !(X0.current.length > 0) && W0({
|
|
31532
31517
|
isDragGlobal: false,
|
|
31533
31518
|
type: "setDragGlobal"
|
|
31534
31519
|
});
|
|
31535
31520
|
}, c3 = function() {
|
|
31536
|
-
|
|
31521
|
+
X0.current = [], W0({
|
|
31537
31522
|
isDragGlobal: false,
|
|
31538
31523
|
type: "setDragGlobal"
|
|
31539
31524
|
});
|
|
31540
31525
|
}, l3 = function() {
|
|
31541
|
-
|
|
31526
|
+
X0.current = [], W0({
|
|
31542
31527
|
isDragGlobal: false,
|
|
31543
31528
|
type: "setDragGlobal"
|
|
31544
31529
|
});
|
|
@@ -31556,12 +31541,12 @@ ${c}
|
|
|
31556
31541
|
E,
|
|
31557
31542
|
l
|
|
31558
31543
|
]);
|
|
31559
|
-
var
|
|
31544
|
+
var Q0 = (0, import_react.useCallback)(function(e3) {
|
|
31560
31545
|
R ? R(e3) : console.error(e3);
|
|
31561
31546
|
}, [
|
|
31562
31547
|
R
|
|
31563
|
-
]),
|
|
31564
|
-
e3.preventDefault(), e3.persist(),
|
|
31548
|
+
]), $0 = (0, import_react.useCallback)(function(e3) {
|
|
31549
|
+
e3.preventDefault(), e3.persist(), f2(e3), Y0.current = [].concat(_toConsumableArray(Y0.current), [
|
|
31565
31550
|
e3.target
|
|
31566
31551
|
]), isEvtWithFiles(e3) && Promise.resolve(u(e3)).then(function(r3) {
|
|
31567
31552
|
if (!(isPropagationStopped(e3) && !L)) {
|
|
@@ -31574,7 +31559,7 @@ ${c}
|
|
|
31574
31559
|
maxFiles: m,
|
|
31575
31560
|
validator: z
|
|
31576
31561
|
});
|
|
31577
|
-
|
|
31562
|
+
W0({
|
|
31578
31563
|
isDragAccept: l3,
|
|
31579
31564
|
isDragReject: c3 > 0 && !l3,
|
|
31580
31565
|
isDragActive: true,
|
|
@@ -31582,12 +31567,12 @@ ${c}
|
|
|
31582
31567
|
}), h && h(e3);
|
|
31583
31568
|
}
|
|
31584
31569
|
}).catch(function(e4) {
|
|
31585
|
-
return
|
|
31570
|
+
return Q0(e4);
|
|
31586
31571
|
});
|
|
31587
31572
|
}, [
|
|
31588
31573
|
u,
|
|
31589
31574
|
h,
|
|
31590
|
-
|
|
31575
|
+
Q0,
|
|
31591
31576
|
L,
|
|
31592
31577
|
B,
|
|
31593
31578
|
f,
|
|
@@ -31595,8 +31580,8 @@ ${c}
|
|
|
31595
31580
|
p,
|
|
31596
31581
|
m,
|
|
31597
31582
|
z
|
|
31598
|
-
]),
|
|
31599
|
-
e3.preventDefault(), e3.persist(),
|
|
31583
|
+
]), e2 = (0, import_react.useCallback)(function(e3) {
|
|
31584
|
+
e3.preventDefault(), e3.persist(), f2(e3);
|
|
31600
31585
|
var r3 = isEvtWithFiles(e3);
|
|
31601
31586
|
if (r3 && e3.dataTransfer) try {
|
|
31602
31587
|
e3.dataTransfer.dropEffect = "copy";
|
|
@@ -31606,12 +31591,12 @@ ${c}
|
|
|
31606
31591
|
}, [
|
|
31607
31592
|
_,
|
|
31608
31593
|
L
|
|
31609
|
-
]),
|
|
31610
|
-
e3.preventDefault(), e3.persist(),
|
|
31611
|
-
var r3 =
|
|
31594
|
+
]), t2 = (0, import_react.useCallback)(function(e3) {
|
|
31595
|
+
e3.preventDefault(), e3.persist(), f2(e3);
|
|
31596
|
+
var r3 = Y0.current.filter(function(e4) {
|
|
31612
31597
|
return q.current && q.current.contains(e4);
|
|
31613
31598
|
}), c3 = r3.indexOf(e3.target);
|
|
31614
|
-
c3 !== -1 && r3.splice(c3, 1),
|
|
31599
|
+
c3 !== -1 && r3.splice(c3, 1), Y0.current = r3, !(r3.length > 0) && (W0({
|
|
31615
31600
|
type: "setDraggedFiles",
|
|
31616
31601
|
isDragActive: false,
|
|
31617
31602
|
isDragAccept: false,
|
|
@@ -31621,15 +31606,15 @@ ${c}
|
|
|
31621
31606
|
q,
|
|
31622
31607
|
g,
|
|
31623
31608
|
L
|
|
31624
|
-
]),
|
|
31609
|
+
]), n2 = (0, import_react.useCallback)(function(e3, r3) {
|
|
31625
31610
|
var c3 = [], l3 = [];
|
|
31626
31611
|
e3.forEach(function(e4) {
|
|
31627
|
-
var r4 = _slicedToArray(fileAccepted(e4, B), 2), u3 = r4[0], p3 = r4[1], m3 = _slicedToArray(fileMatchSize(e4, f, d), 2), h3 = m3[0],
|
|
31612
|
+
var r4 = _slicedToArray(fileAccepted(e4, B), 2), u3 = r4[0], p3 = r4[1], m3 = _slicedToArray(fileMatchSize(e4, f, d), 2), h3 = m3[0], g2 = m3[1], _2 = z ? z(e4) : null;
|
|
31628
31613
|
if (u3 && h3 && !_2) c3.push(e4);
|
|
31629
31614
|
else {
|
|
31630
31615
|
var v2 = [
|
|
31631
31616
|
p3,
|
|
31632
|
-
|
|
31617
|
+
g2
|
|
31633
31618
|
];
|
|
31634
31619
|
_2 && (v2 = v2.concat(_2)), l3.push({
|
|
31635
31620
|
file: e4,
|
|
@@ -31645,14 +31630,14 @@ ${c}
|
|
|
31645
31630
|
TOO_MANY_FILES_REJECTION
|
|
31646
31631
|
]
|
|
31647
31632
|
});
|
|
31648
|
-
}), c3.splice(0)),
|
|
31633
|
+
}), c3.splice(0)), W0({
|
|
31649
31634
|
acceptedFiles: c3,
|
|
31650
31635
|
fileRejections: l3,
|
|
31651
31636
|
isDragReject: l3.length > 0,
|
|
31652
31637
|
type: "setFiles"
|
|
31653
31638
|
}), v && v(c3, l3, r3), l3.length > 0 && b && b(l3, r3), c3.length > 0 && y && y(c3, r3);
|
|
31654
31639
|
}, [
|
|
31655
|
-
|
|
31640
|
+
W0,
|
|
31656
31641
|
p,
|
|
31657
31642
|
B,
|
|
31658
31643
|
f,
|
|
@@ -31662,22 +31647,22 @@ ${c}
|
|
|
31662
31647
|
y,
|
|
31663
31648
|
b,
|
|
31664
31649
|
z
|
|
31665
|
-
]),
|
|
31666
|
-
e3.preventDefault(), e3.persist(),
|
|
31667
|
-
isPropagationStopped(e3) && !L ||
|
|
31650
|
+
]), r2 = (0, import_react.useCallback)(function(e3) {
|
|
31651
|
+
e3.preventDefault(), e3.persist(), f2(e3), Y0.current = [], isEvtWithFiles(e3) && Promise.resolve(u(e3)).then(function(r3) {
|
|
31652
|
+
isPropagationStopped(e3) && !L || n2(r3, e3);
|
|
31668
31653
|
}).catch(function(e4) {
|
|
31669
|
-
return
|
|
31670
|
-
}),
|
|
31654
|
+
return Q0(e4);
|
|
31655
|
+
}), W0({
|
|
31671
31656
|
type: "reset"
|
|
31672
31657
|
});
|
|
31673
31658
|
}, [
|
|
31674
31659
|
u,
|
|
31675
|
-
|
|
31676
|
-
|
|
31660
|
+
n2,
|
|
31661
|
+
Q0,
|
|
31677
31662
|
L
|
|
31678
|
-
]),
|
|
31679
|
-
if (
|
|
31680
|
-
|
|
31663
|
+
]), i2 = (0, import_react.useCallback)(function() {
|
|
31664
|
+
if (q0.current) {
|
|
31665
|
+
W0({
|
|
31681
31666
|
type: "openDialog"
|
|
31682
31667
|
}), W();
|
|
31683
31668
|
var e3 = {
|
|
@@ -31687,66 +31672,66 @@ ${c}
|
|
|
31687
31672
|
window.showOpenFilePicker(e3).then(function(e4) {
|
|
31688
31673
|
return u(e4);
|
|
31689
31674
|
}).then(function(e4) {
|
|
31690
|
-
|
|
31675
|
+
n2(e4, null), W0({
|
|
31691
31676
|
type: "closeDialog"
|
|
31692
31677
|
});
|
|
31693
31678
|
}).catch(function(e4) {
|
|
31694
|
-
isAbort(e4) ? (G(e4),
|
|
31679
|
+
isAbort(e4) ? (G(e4), W0({
|
|
31695
31680
|
type: "closeDialog"
|
|
31696
|
-
})) : isSecurityError(e4) ? (
|
|
31681
|
+
})) : isSecurityError(e4) ? (q0.current = false, Z.current ? (Z.current.value = null, Z.current.click()) : Q0(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."))) : Q0(e4);
|
|
31697
31682
|
});
|
|
31698
31683
|
return;
|
|
31699
31684
|
}
|
|
31700
|
-
Z.current && (
|
|
31685
|
+
Z.current && (W0({
|
|
31701
31686
|
type: "openDialog"
|
|
31702
31687
|
}), W(), Z.current.value = null, Z.current.click());
|
|
31703
31688
|
}, [
|
|
31704
|
-
|
|
31689
|
+
W0,
|
|
31705
31690
|
W,
|
|
31706
31691
|
G,
|
|
31707
31692
|
T,
|
|
31708
|
-
|
|
31709
|
-
|
|
31693
|
+
n2,
|
|
31694
|
+
Q0,
|
|
31710
31695
|
H,
|
|
31711
31696
|
p
|
|
31712
|
-
]),
|
|
31713
|
-
!q.current || !q.current.isEqualNode(e3.target) || (e3.key === " " || e3.key === "Enter" || e3.keyCode === 32 || e3.keyCode === 13) && (e3.preventDefault(),
|
|
31697
|
+
]), a2 = (0, import_react.useCallback)(function(e3) {
|
|
31698
|
+
!q.current || !q.current.isEqualNode(e3.target) || (e3.key === " " || e3.key === "Enter" || e3.keyCode === 32 || e3.keyCode === 13) && (e3.preventDefault(), i2());
|
|
31714
31699
|
}, [
|
|
31715
31700
|
q,
|
|
31716
|
-
|
|
31717
|
-
]),
|
|
31718
|
-
|
|
31701
|
+
i2
|
|
31702
|
+
]), o2 = (0, import_react.useCallback)(function() {
|
|
31703
|
+
W0({
|
|
31719
31704
|
type: "focus"
|
|
31720
31705
|
});
|
|
31721
|
-
}, []),
|
|
31722
|
-
|
|
31706
|
+
}, []), s2 = (0, import_react.useCallback)(function() {
|
|
31707
|
+
W0({
|
|
31723
31708
|
type: "blur"
|
|
31724
31709
|
});
|
|
31725
|
-
}, []),
|
|
31726
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
31710
|
+
}, []), c2 = (0, import_react.useCallback)(function() {
|
|
31711
|
+
j || (isIeOrEdge() ? setTimeout(i2, 0) : i2());
|
|
31727
31712
|
}, [
|
|
31728
31713
|
j,
|
|
31729
|
-
|
|
31730
|
-
]),
|
|
31714
|
+
i2
|
|
31715
|
+
]), l2 = function(e3) {
|
|
31731
31716
|
return l ? null : e3;
|
|
31717
|
+
}, u2 = function(e3) {
|
|
31718
|
+
return M ? null : l2(e3);
|
|
31732
31719
|
}, d2 = function(e3) {
|
|
31733
|
-
return
|
|
31720
|
+
return I ? null : l2(e3);
|
|
31734
31721
|
}, f2 = function(e3) {
|
|
31735
|
-
return I ? null : u2(e3);
|
|
31736
|
-
}, p2 = function(e3) {
|
|
31737
31722
|
L && e3.stopPropagation();
|
|
31738
|
-
},
|
|
31723
|
+
}, p2 = (0, import_react.useMemo)(function() {
|
|
31739
31724
|
return function() {
|
|
31740
|
-
var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r3 = e3.refKey, c3 = r3 === void 0 ? "ref" : r3, u3 = e3.role, d3 = e3.onKeyDown, f3 = e3.onFocus, p3 = e3.onBlur, m3 = e3.onClick, h3 = e3.onDragEnter,
|
|
31725
|
+
var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r3 = e3.refKey, c3 = r3 === void 0 ? "ref" : r3, u3 = e3.role, d3 = e3.onKeyDown, f3 = e3.onFocus, p3 = e3.onBlur, m3 = e3.onClick, h3 = e3.onDragEnter, g2 = e3.onDragOver, _2 = e3.onDragLeave, v2 = e3.onDrop, y2 = _objectWithoutProperties$2(e3, _excluded3);
|
|
31741
31726
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
31742
|
-
onKeyDown:
|
|
31743
|
-
onFocus:
|
|
31744
|
-
onBlur:
|
|
31745
|
-
onClick:
|
|
31746
|
-
onDragEnter:
|
|
31747
|
-
onDragOver:
|
|
31748
|
-
onDragLeave:
|
|
31749
|
-
onDrop:
|
|
31727
|
+
onKeyDown: u2(composeEventHandlers(d3, a2)),
|
|
31728
|
+
onFocus: u2(composeEventHandlers(f3, o2)),
|
|
31729
|
+
onBlur: u2(composeEventHandlers(p3, s2)),
|
|
31730
|
+
onClick: l2(composeEventHandlers(m3, c2)),
|
|
31731
|
+
onDragEnter: d2(composeEventHandlers(h3, $0)),
|
|
31732
|
+
onDragOver: d2(composeEventHandlers(g2, e2)),
|
|
31733
|
+
onDragLeave: d2(composeEventHandlers(_2, t2)),
|
|
31734
|
+
onDrop: d2(composeEventHandlers(v2, r2)),
|
|
31750
31735
|
role: typeof u3 == "string" && u3 !== "" ? u3 : "presentation"
|
|
31751
31736
|
}, c3, q), !l && !M ? {
|
|
31752
31737
|
tabIndex: 0
|
|
@@ -31754,20 +31739,20 @@ ${c}
|
|
|
31754
31739
|
};
|
|
31755
31740
|
}, [
|
|
31756
31741
|
q,
|
|
31742
|
+
a2,
|
|
31757
31743
|
o2,
|
|
31758
31744
|
s2,
|
|
31759
31745
|
c2,
|
|
31760
|
-
|
|
31746
|
+
$0,
|
|
31761
31747
|
e2,
|
|
31762
31748
|
t2,
|
|
31763
|
-
|
|
31764
|
-
i2,
|
|
31749
|
+
r2,
|
|
31765
31750
|
M,
|
|
31766
31751
|
I,
|
|
31767
31752
|
l
|
|
31768
|
-
]),
|
|
31753
|
+
]), m2 = (0, import_react.useCallback)(function(e3) {
|
|
31769
31754
|
e3.stopPropagation();
|
|
31770
|
-
}, []),
|
|
31755
|
+
}, []), h2 = (0, import_react.useMemo)(function() {
|
|
31771
31756
|
return function() {
|
|
31772
31757
|
var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r3 = e3.refKey, c3 = r3 === void 0 ? "ref" : r3, l3 = e3.onChange, u3 = e3.onClick, d3 = _objectWithoutProperties$2(e3, _excluded4);
|
|
31773
31758
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -31786,8 +31771,8 @@ ${c}
|
|
|
31786
31771
|
width: "1px",
|
|
31787
31772
|
whiteSpace: "nowrap"
|
|
31788
31773
|
},
|
|
31789
|
-
onChange:
|
|
31790
|
-
onClick:
|
|
31774
|
+
onChange: l2(composeEventHandlers(l3, r2)),
|
|
31775
|
+
onClick: l2(composeEventHandlers(u3, m2)),
|
|
31791
31776
|
tabIndex: -1
|
|
31792
31777
|
}, c3, Z)), d3);
|
|
31793
31778
|
};
|
|
@@ -31795,16 +31780,16 @@ ${c}
|
|
|
31795
31780
|
Z,
|
|
31796
31781
|
c,
|
|
31797
31782
|
p,
|
|
31798
|
-
|
|
31783
|
+
r2,
|
|
31799
31784
|
l
|
|
31800
31785
|
]);
|
|
31801
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
31802
|
-
isFocused:
|
|
31803
|
-
getRootProps:
|
|
31804
|
-
getInputProps:
|
|
31786
|
+
return _objectSpread$7(_objectSpread$7({}, U0), {}, {
|
|
31787
|
+
isFocused: G0 && !l,
|
|
31788
|
+
getRootProps: p2,
|
|
31789
|
+
getInputProps: h2,
|
|
31805
31790
|
rootRef: q,
|
|
31806
31791
|
inputRef: Z,
|
|
31807
|
-
open:
|
|
31792
|
+
open: l2(i2)
|
|
31808
31793
|
});
|
|
31809
31794
|
}
|
|
31810
31795
|
function reducer$2(e, r) {
|
|
@@ -31932,7 +31917,7 @@ ${c}
|
|
|
31932
31917
|
onDrop: g
|
|
31933
31918
|
}, r[4] = l, r[5] = h, r[6] = f, r[7] = g, r[8] = _) : _ = r[8];
|
|
31934
31919
|
let { getRootProps: y, getInputProps: b, isFocused: S, isDragAccept: w, isDragReject: T } = useDropzone(_), E;
|
|
31935
|
-
r[9] === m ? E = r[10] : (E = m.map(_temp6
|
|
31920
|
+
r[9] === m ? E = r[10] : (E = m.map(_temp6), r[9] = m, r[10] = E);
|
|
31936
31921
|
let O;
|
|
31937
31922
|
r[11] === E ? O = r[12] : (O = (0, import_jsx_runtime.jsx)("ul", {
|
|
31938
31923
|
children: E
|
|
@@ -32036,47 +32021,47 @@ ${c}
|
|
|
32036
32021
|
html: I
|
|
32037
32022
|
})
|
|
32038
32023
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
32039
|
-
let q = w && "text-primary", Z = T && "text-destructive",
|
|
32040
|
-
r[48] !== q || r[49] !== Z ? (
|
|
32041
|
-
let
|
|
32042
|
-
r[51] ===
|
|
32024
|
+
let q = w && "text-primary", Z = T && "text-destructive", H0;
|
|
32025
|
+
r[48] !== q || r[49] !== Z ? (H0 = cn(q, Z), r[48] = q, r[49] = Z, r[50] = H0) : H0 = r[50];
|
|
32026
|
+
let U0;
|
|
32027
|
+
r[51] === H0 ? U0 = r[52] : (U0 = (0, import_jsx_runtime.jsx)(Upload, {
|
|
32043
32028
|
strokeWidth: 1.4,
|
|
32044
|
-
className:
|
|
32045
|
-
}), r[51] =
|
|
32046
|
-
let
|
|
32047
|
-
r[53] !==
|
|
32048
|
-
let
|
|
32049
|
-
r[56] ===
|
|
32029
|
+
className: H0
|
|
32030
|
+
}), r[51] = H0, r[52] = U0);
|
|
32031
|
+
let W0 = w && "text-primary", G0 = T && "text-destructive", K0;
|
|
32032
|
+
r[53] !== W0 || r[54] !== G0 ? (K0 = cn(W0, G0), r[53] = W0, r[54] = G0, r[55] = K0) : K0 = r[55];
|
|
32033
|
+
let q0;
|
|
32034
|
+
r[56] === K0 ? q0 = r[57] : (q0 = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
32050
32035
|
strokeWidth: 1.4,
|
|
32051
|
-
className:
|
|
32052
|
-
}), r[56] =
|
|
32053
|
-
let
|
|
32054
|
-
r[58] !==
|
|
32036
|
+
className: K0
|
|
32037
|
+
}), r[56] = K0, r[57] = q0);
|
|
32038
|
+
let J0;
|
|
32039
|
+
r[58] !== U0 || r[59] !== q0 ? (J0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32055
32040
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
32056
32041
|
children: [
|
|
32057
|
-
|
|
32058
|
-
|
|
32042
|
+
U0,
|
|
32043
|
+
q0
|
|
32059
32044
|
]
|
|
32060
|
-
}), r[58] =
|
|
32061
|
-
let
|
|
32062
|
-
r[61] !== G || r[62] !==
|
|
32045
|
+
}), r[58] = U0, r[59] = q0, r[60] = J0) : J0 = r[60];
|
|
32046
|
+
let Y0;
|
|
32047
|
+
r[61] !== G || r[62] !== J0 ? (Y0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32063
32048
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
32064
32049
|
children: [
|
|
32065
32050
|
G,
|
|
32066
|
-
|
|
32051
|
+
J0
|
|
32067
32052
|
]
|
|
32068
|
-
}), r[61] = G, r[62] =
|
|
32069
|
-
let
|
|
32070
|
-
r[64] !== W || r[65] !==
|
|
32053
|
+
}), r[61] = G, r[62] = J0, r[63] = Y0) : Y0 = r[63];
|
|
32054
|
+
let X0;
|
|
32055
|
+
r[64] !== W || r[65] !== Y0 || r[66] !== z || r[67] !== B ? (X0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32071
32056
|
className: z,
|
|
32072
32057
|
...B,
|
|
32073
32058
|
children: [
|
|
32074
32059
|
W,
|
|
32075
|
-
|
|
32060
|
+
Y0
|
|
32076
32061
|
]
|
|
32077
|
-
}), r[64] = W, r[65] =
|
|
32078
|
-
let
|
|
32079
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
32062
|
+
}), r[64] = W, r[65] = Y0, r[66] = z, r[67] = B, r[68] = X0) : X0 = r[68];
|
|
32063
|
+
let Z0;
|
|
32064
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (Z0 = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
32080
32065
|
className: "flex flex-row gap-1",
|
|
32081
32066
|
children: [
|
|
32082
32067
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -32112,17 +32097,17 @@ ${c}
|
|
|
32112
32097
|
})
|
|
32113
32098
|
})
|
|
32114
32099
|
]
|
|
32115
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
32116
|
-
let
|
|
32117
|
-
return r[75] !==
|
|
32100
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = Z0) : Z0 = r[74];
|
|
32101
|
+
let Q0;
|
|
32102
|
+
return r[75] !== X0 || r[76] !== Z0 ? (Q0 = (0, import_jsx_runtime.jsx)("section", {
|
|
32118
32103
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
32119
32104
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
32120
32105
|
children: [
|
|
32121
|
-
|
|
32122
|
-
|
|
32106
|
+
X0,
|
|
32107
|
+
Z0
|
|
32123
32108
|
]
|
|
32124
32109
|
})
|
|
32125
|
-
}), r[75] =
|
|
32110
|
+
}), r[75] = X0, r[76] = Z0, r[77] = Q0) : Q0 = r[77], Q0;
|
|
32126
32111
|
};
|
|
32127
32112
|
function _temp$11(e) {
|
|
32128
32113
|
Logger.error(e), toast({
|
|
@@ -32161,7 +32146,7 @@ ${c}
|
|
|
32161
32146
|
variant: "danger"
|
|
32162
32147
|
});
|
|
32163
32148
|
}
|
|
32164
|
-
function _temp6
|
|
32149
|
+
function _temp6(e) {
|
|
32165
32150
|
let [r] = e;
|
|
32166
32151
|
return (0, import_jsx_runtime.jsx)("li", {
|
|
32167
32152
|
children: r
|
|
@@ -32225,68 +32210,68 @@ ${c}
|
|
|
32225
32210
|
html: f
|
|
32226
32211
|
})
|
|
32227
32212
|
}), r[13] = f, r[14] = Z);
|
|
32228
|
-
let
|
|
32229
|
-
r[15] === L ?
|
|
32213
|
+
let H0;
|
|
32214
|
+
r[15] === L ? H0 = r[16] : (H0 = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
32230
32215
|
kind: "danger",
|
|
32231
32216
|
className: "rounded",
|
|
32232
32217
|
children: L ?? "Invalid input"
|
|
32233
|
-
}), r[15] = L, r[16] =
|
|
32234
|
-
let
|
|
32235
|
-
r[17] === c ?
|
|
32218
|
+
}), r[15] = L, r[16] = H0);
|
|
32219
|
+
let U0;
|
|
32220
|
+
r[17] === c ? U0 = r[18] : (U0 = (0, import_jsx_runtime.jsx)("div", {
|
|
32236
32221
|
children: c
|
|
32237
|
-
}), r[17] = c, r[18] =
|
|
32238
|
-
let
|
|
32239
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
32222
|
+
}), r[17] = c, r[18] = U0);
|
|
32223
|
+
let W0;
|
|
32224
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (W0 = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
32240
32225
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
32241
32226
|
variant: "text",
|
|
32242
32227
|
onClick: (e2) => {
|
|
32243
32228
|
e2.preventDefault(), B();
|
|
32244
32229
|
},
|
|
32245
32230
|
children: S
|
|
32246
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
32247
|
-
let
|
|
32248
|
-
r[23] === h ?
|
|
32231
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = W0) : W0 = r[22];
|
|
32232
|
+
let G0 = v || h, K0;
|
|
32233
|
+
r[23] === h ? K0 = r[24] : (K0 = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
32249
32234
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
32250
|
-
}), r[23] = h, r[24] =
|
|
32251
|
-
let
|
|
32252
|
-
r[25] !== g || r[26] !==
|
|
32235
|
+
}), r[23] = h, r[24] = K0);
|
|
32236
|
+
let q0;
|
|
32237
|
+
r[25] !== g || r[26] !== G0 || r[27] !== K0 || r[28] !== I ? (q0 = (0, import_jsx_runtime.jsxs)(Button, {
|
|
32253
32238
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
32254
32239
|
variant: I,
|
|
32255
|
-
disabled:
|
|
32240
|
+
disabled: G0,
|
|
32256
32241
|
type: "submit",
|
|
32257
32242
|
children: [
|
|
32258
|
-
|
|
32243
|
+
K0,
|
|
32259
32244
|
g
|
|
32260
32245
|
]
|
|
32261
|
-
}), r[25] = g, r[26] =
|
|
32246
|
+
}), r[25] = g, r[26] = G0, r[27] = K0, r[28] = I, r[29] = q0) : q0 = r[29];
|
|
32247
|
+
let J0;
|
|
32248
|
+
r[30] !== _ || r[31] !== q0 ? (J0 = withTooltip(q0, _), r[30] = _, r[31] = q0, r[32] = J0) : J0 = r[32];
|
|
32262
32249
|
let Y0;
|
|
32263
|
-
r[
|
|
32264
|
-
let X0;
|
|
32265
|
-
r[33] !== Y0 || r[34] !== G0 ? (X0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32250
|
+
r[33] !== J0 || r[34] !== W0 ? (Y0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32266
32251
|
className: "flex justify-end gap-2 font-code",
|
|
32267
32252
|
children: [
|
|
32268
|
-
|
|
32269
|
-
|
|
32253
|
+
W0,
|
|
32254
|
+
J0
|
|
32270
32255
|
]
|
|
32271
|
-
}), r[33] =
|
|
32272
|
-
let
|
|
32273
|
-
r[36] !==
|
|
32256
|
+
}), r[33] = J0, r[34] = W0, r[35] = Y0) : Y0 = r[35];
|
|
32257
|
+
let X0;
|
|
32258
|
+
r[36] !== Y0 || r[37] !== G || r[38] !== q || r[39] !== Z || r[40] !== H0 || r[41] !== U0 ? (X0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
32274
32259
|
className: G,
|
|
32275
32260
|
onKeyDown: q,
|
|
32276
32261
|
children: [
|
|
32277
32262
|
Z,
|
|
32263
|
+
H0,
|
|
32278
32264
|
U0,
|
|
32279
|
-
|
|
32280
|
-
X0
|
|
32265
|
+
Y0
|
|
32281
32266
|
]
|
|
32282
|
-
}), r[36] =
|
|
32283
|
-
let
|
|
32284
|
-
return r[43] !==
|
|
32267
|
+
}), r[36] = Y0, r[37] = G, r[38] = q, r[39] = Z, r[40] = H0, r[41] = U0, r[42] = X0) : X0 = r[42];
|
|
32268
|
+
let Z0;
|
|
32269
|
+
return r[43] !== X0 || r[44] !== H ? (Z0 = (0, import_jsx_runtime.jsx)("form", {
|
|
32285
32270
|
className: "contents",
|
|
32286
32271
|
ref: j,
|
|
32287
32272
|
onSubmit: H,
|
|
32288
|
-
children:
|
|
32289
|
-
}), r[43] =
|
|
32273
|
+
children: X0
|
|
32274
|
+
}), r[43] = X0, r[44] = H, r[45] = Z0) : Z0 = r[45], Z0;
|
|
32290
32275
|
};
|
|
32291
32276
|
var Form = (e) => {
|
|
32292
32277
|
let r = (0, import_compiler_runtime$42.c)(24), c, l, u, d, f, p;
|
|
@@ -34059,8 +34044,8 @@ ${c}
|
|
|
34059
34044
|
indices: c2
|
|
34060
34045
|
}));
|
|
34061
34046
|
}, r[31] = u, r[32] = Z);
|
|
34062
|
-
let
|
|
34063
|
-
r[33] === u ?
|
|
34047
|
+
let H0 = useEvent_default(Z), U0;
|
|
34048
|
+
r[33] === u ? U0 = r[34] : (U0 = (e2) => {
|
|
34064
34049
|
e2 && u((r2) => ({
|
|
34065
34050
|
...r2,
|
|
34066
34051
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -34069,9 +34054,9 @@ ${c}
|
|
|
34069
34054
|
range: e2.range,
|
|
34070
34055
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
34071
34056
|
}));
|
|
34072
|
-
}, r[33] = u, r[34] =
|
|
34073
|
-
let
|
|
34074
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
34057
|
+
}, r[33] = u, r[34] = U0);
|
|
34058
|
+
let W0 = useEvent_default(U0), G0 = m.frames ?? void 0, K0 = useEvent_default(_temp3$3), q0;
|
|
34059
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== H0 || r[42] !== W0 || r[43] !== G0 || r[44] !== K0 || r[45] !== R ? (q0 = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
34075
34060
|
...m,
|
|
34076
34061
|
layout: h,
|
|
34077
34062
|
onRelayout: R,
|
|
@@ -34079,13 +34064,13 @@ ${c}
|
|
|
34079
34064
|
onTreemapClick: W,
|
|
34080
34065
|
onSunburstClick: q,
|
|
34081
34066
|
config: L,
|
|
34082
|
-
onClick:
|
|
34083
|
-
onSelected:
|
|
34067
|
+
onClick: H0,
|
|
34068
|
+
onSelected: W0,
|
|
34084
34069
|
className: "w-full",
|
|
34085
34070
|
useResizeHandler: true,
|
|
34086
|
-
frames:
|
|
34087
|
-
onError:
|
|
34088
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
34071
|
+
frames: G0,
|
|
34072
|
+
onError: K0
|
|
34073
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = H0, r[42] = W0, r[43] = G0, r[44] = K0, r[45] = R, r[46] = q0) : q0 = r[46], q0;
|
|
34089
34074
|
});
|
|
34090
34075
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
34091
34076
|
function _temp$8(e) {
|
|
@@ -34230,8 +34215,8 @@ ${c}
|
|
|
34230
34215
|
onPointerUp: H
|
|
34231
34216
|
})
|
|
34232
34217
|
}), c[19] = L, c[20] = z, c[21] = H, c[22] = Z) : Z = c[22];
|
|
34233
|
-
let
|
|
34234
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
34218
|
+
let H0;
|
|
34219
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (H0 = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34235
34220
|
asChild: true,
|
|
34236
34221
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
34237
34222
|
"data-testid": "thumb",
|
|
@@ -34241,30 +34226,30 @@ ${c}
|
|
|
34241
34226
|
onMouseEnter: m.setTrue,
|
|
34242
34227
|
onMouseLeave: m.setFalse
|
|
34243
34228
|
})
|
|
34244
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
34245
|
-
let
|
|
34246
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
34229
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = H0) : H0 = c[25];
|
|
34230
|
+
let U0;
|
|
34231
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (U0 = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
34247
34232
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
34248
34233
|
locale: h
|
|
34249
34234
|
})
|
|
34250
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
34235
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = U0) : U0 = c[29];
|
|
34236
|
+
let W0;
|
|
34237
|
+
c[30] === U0 ? W0 = c[31] : (W0 = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
34238
|
+
children: U0
|
|
34239
|
+
}), c[30] = U0, c[31] = W0);
|
|
34251
34240
|
let G0;
|
|
34252
|
-
c[
|
|
34253
|
-
children: W0
|
|
34254
|
-
}), c[30] = W0, c[31] = G0);
|
|
34255
|
-
let K0;
|
|
34256
|
-
c[32] !== f || c[33] !== U0 || c[34] !== G0 ? (K0 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34241
|
+
c[32] !== f || c[33] !== H0 || c[34] !== W0 ? (G0 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34257
34242
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34258
34243
|
delayDuration: 0,
|
|
34259
34244
|
open: f,
|
|
34260
34245
|
children: [
|
|
34261
|
-
|
|
34262
|
-
|
|
34246
|
+
H0,
|
|
34247
|
+
W0
|
|
34263
34248
|
]
|
|
34264
34249
|
})
|
|
34265
|
-
}), c[32] = f, c[33] =
|
|
34266
|
-
let
|
|
34267
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
34250
|
+
}), c[32] = f, c[33] = H0, c[34] = W0, c[35] = G0) : G0 = c[35];
|
|
34251
|
+
let K0;
|
|
34252
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (K0 = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
34268
34253
|
asChild: true,
|
|
34269
34254
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
34270
34255
|
"data-testid": "thumb",
|
|
@@ -34274,39 +34259,39 @@ ${c}
|
|
|
34274
34259
|
onMouseEnter: m.setTrue,
|
|
34275
34260
|
onMouseLeave: m.setFalse
|
|
34276
34261
|
})
|
|
34277
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
34278
|
-
let
|
|
34279
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
34262
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = K0) : K0 = c[38];
|
|
34263
|
+
let q0;
|
|
34264
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (q0 = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
34280
34265
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
34281
34266
|
locale: h
|
|
34282
34267
|
})
|
|
34283
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
34268
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = q0) : q0 = c[42];
|
|
34269
|
+
let J0;
|
|
34270
|
+
c[43] === q0 ? J0 = c[44] : (J0 = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
34271
|
+
children: q0
|
|
34272
|
+
}), c[43] = q0, c[44] = J0);
|
|
34284
34273
|
let Y0;
|
|
34285
|
-
c[
|
|
34286
|
-
children: J0
|
|
34287
|
-
}), c[43] = J0, c[44] = Y0);
|
|
34288
|
-
let X0;
|
|
34289
|
-
c[45] !== f || c[46] !== q0 || c[47] !== Y0 ? (X0 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34274
|
+
c[45] !== f || c[46] !== K0 || c[47] !== J0 ? (Y0 = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
34290
34275
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
34291
34276
|
delayDuration: 0,
|
|
34292
34277
|
open: f,
|
|
34293
34278
|
children: [
|
|
34294
|
-
|
|
34295
|
-
|
|
34279
|
+
K0,
|
|
34280
|
+
J0
|
|
34296
34281
|
]
|
|
34297
34282
|
})
|
|
34298
|
-
}), c[45] = f, c[46] =
|
|
34299
|
-
let
|
|
34300
|
-
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !==
|
|
34283
|
+
}), c[45] = f, c[46] = K0, c[47] = J0, c[48] = Y0) : Y0 = c[48];
|
|
34284
|
+
let X0;
|
|
34285
|
+
return c[49] !== M || c[50] !== u || c[51] !== Z || c[52] !== G0 || c[53] !== Y0 || c[54] !== W ? (X0 = (0, import_jsx_runtime.jsxs)(Root$1, {
|
|
34301
34286
|
ref: M,
|
|
34302
34287
|
className: W,
|
|
34303
34288
|
...u,
|
|
34304
34289
|
children: [
|
|
34305
34290
|
Z,
|
|
34306
|
-
|
|
34307
|
-
|
|
34291
|
+
G0,
|
|
34292
|
+
Y0
|
|
34308
34293
|
]
|
|
34309
|
-
}), c[49] = M, c[50] = u, c[51] = Z, c[52] =
|
|
34294
|
+
}), c[49] = M, c[50] = u, c[51] = Z, c[52] = G0, c[53] = Y0, c[54] = W, c[55] = X0) : X0 = c[55], X0;
|
|
34310
34295
|
});
|
|
34311
34296
|
RangeSlider.displayName = Root$1.displayName;
|
|
34312
34297
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -34357,14 +34342,14 @@ ${c}
|
|
|
34357
34342
|
}, q = (e2) => {
|
|
34358
34343
|
h && l(e2);
|
|
34359
34344
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
34360
|
-
let Z,
|
|
34345
|
+
let Z, H0;
|
|
34361
34346
|
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (Z = () => {
|
|
34362
34347
|
h && !dequal(T, u) && l(T);
|
|
34363
|
-
},
|
|
34348
|
+
}, H0 = () => {
|
|
34364
34349
|
h && !dequal(T, u) && l(T);
|
|
34365
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] =
|
|
34366
|
-
let
|
|
34367
|
-
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] !== Z || r[31] !==
|
|
34350
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = Z, r[19] = H0) : (Z = r[18], H0 = r[19]);
|
|
34351
|
+
let U0;
|
|
34352
|
+
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] !== Z || r[31] !== H0 || r[32] !== b ? (U0 = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
34368
34353
|
id: S,
|
|
34369
34354
|
className: W,
|
|
34370
34355
|
value: T,
|
|
@@ -34376,35 +34361,35 @@ ${c}
|
|
|
34376
34361
|
onValueChange: G,
|
|
34377
34362
|
onValueCommit: q,
|
|
34378
34363
|
onPointerUp: Z,
|
|
34379
|
-
onMouseUp:
|
|
34364
|
+
onMouseUp: H0,
|
|
34380
34365
|
valueMap: b
|
|
34381
|
-
}), 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] = Z, r[31] =
|
|
34382
|
-
let
|
|
34383
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
34366
|
+
}), 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] = Z, r[31] = H0, r[32] = b, r[33] = U0) : U0 = r[33];
|
|
34367
|
+
let W0;
|
|
34368
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (W0 = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
34384
34369
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
34385
34370
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
34386
34371
|
locale: w
|
|
34387
34372
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
34388
34373
|
locale: w
|
|
34389
34374
|
})}`
|
|
34390
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
34391
|
-
let
|
|
34392
|
-
r[39] !==
|
|
34375
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = W0) : W0 = r[38];
|
|
34376
|
+
let G0;
|
|
34377
|
+
r[39] !== U0 || r[40] !== W0 || r[41] !== B ? (G0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
34393
34378
|
className: B,
|
|
34394
34379
|
children: [
|
|
34395
|
-
|
|
34396
|
-
|
|
34380
|
+
U0,
|
|
34381
|
+
W0
|
|
34397
34382
|
]
|
|
34398
|
-
}), r[39] =
|
|
34399
|
-
let
|
|
34400
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
34383
|
+
}), r[39] = U0, r[40] = W0, r[41] = B, r[42] = G0) : G0 = r[42];
|
|
34384
|
+
let K0;
|
|
34385
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== G0 || r[47] !== M || r[48] !== L ? (K0 = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
34401
34386
|
label: c,
|
|
34402
34387
|
id: S,
|
|
34403
34388
|
align: M,
|
|
34404
34389
|
className: L,
|
|
34405
34390
|
fullWidth: v,
|
|
34406
|
-
children:
|
|
34407
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
34391
|
+
children: G0
|
|
34392
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = G0, r[47] = M, r[48] = L, r[49] = K0) : K0 = r[49], K0;
|
|
34408
34393
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
34409
34394
|
r.exports = u;
|
|
34410
34395
|
var c = {
|
|
@@ -34640,8 +34625,8 @@ ${c}
|
|
|
34640
34625
|
let [r2] = e2;
|
|
34641
34626
|
h && l(r2);
|
|
34642
34627
|
}, r[11] = h, r[12] = l, r[13] = q, r[14] = Z) : (q = r[13], Z = r[14]);
|
|
34643
|
-
let
|
|
34644
|
-
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] !== Z || r[24] !== W || r[25] !== y ? (
|
|
34628
|
+
let H0;
|
|
34629
|
+
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] !== Z || r[24] !== W || r[25] !== y ? (H0 = (0, import_jsx_runtime.jsx)(Slider, {
|
|
34645
34630
|
id: w,
|
|
34646
34631
|
className: W,
|
|
34647
34632
|
value: G,
|
|
@@ -34653,16 +34638,16 @@ ${c}
|
|
|
34653
34638
|
onValueCommit: Z,
|
|
34654
34639
|
valueMap: y,
|
|
34655
34640
|
disabled: S
|
|
34656
|
-
}), 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] = Z, r[24] = W, r[25] = y, r[26] =
|
|
34657
|
-
let
|
|
34658
|
-
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (
|
|
34641
|
+
}), 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] = Z, r[24] = W, r[25] = y, r[26] = H0) : H0 = r[26];
|
|
34642
|
+
let U0;
|
|
34643
|
+
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (U0 = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
34659
34644
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
34660
34645
|
children: prettyScientificNumber(y(E), {
|
|
34661
34646
|
locale: T
|
|
34662
34647
|
})
|
|
34663
|
-
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] =
|
|
34664
|
-
let
|
|
34665
|
-
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 ? (
|
|
34648
|
+
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = U0) : U0 = r[31];
|
|
34649
|
+
let W0;
|
|
34650
|
+
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 ? (W0 = b && (0, import_jsx_runtime.jsx)(NumberField, {
|
|
34666
34651
|
value: y(E),
|
|
34667
34652
|
onChange: (e2) => {
|
|
34668
34653
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -34673,25 +34658,25 @@ ${c}
|
|
|
34673
34658
|
className: "w-24",
|
|
34674
34659
|
"aria-label": `${c || "Slider"} value input`,
|
|
34675
34660
|
isDisabled: S
|
|
34676
|
-
}), 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] =
|
|
34677
|
-
let
|
|
34678
|
-
r[42] !==
|
|
34661
|
+
}), 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] = W0) : W0 = r[41];
|
|
34662
|
+
let G0;
|
|
34663
|
+
r[42] !== H0 || r[43] !== U0 || r[44] !== W0 || r[45] !== B ? (G0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
34679
34664
|
className: B,
|
|
34680
34665
|
children: [
|
|
34666
|
+
H0,
|
|
34681
34667
|
U0,
|
|
34682
|
-
W0
|
|
34683
|
-
G0
|
|
34668
|
+
W0
|
|
34684
34669
|
]
|
|
34685
|
-
}), r[42] =
|
|
34686
|
-
let
|
|
34687
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
34670
|
+
}), r[42] = H0, r[43] = U0, r[44] = W0, r[45] = B, r[46] = G0) : G0 = r[46];
|
|
34671
|
+
let K0;
|
|
34672
|
+
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !== G0 || r[51] !== I || r[52] !== R ? (K0 = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
34688
34673
|
label: c,
|
|
34689
34674
|
id: w,
|
|
34690
34675
|
align: I,
|
|
34691
34676
|
fullWidth: v,
|
|
34692
34677
|
className: R,
|
|
34693
|
-
children:
|
|
34694
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
34678
|
+
children: G0
|
|
34679
|
+
}), r[47] = v, r[48] = w, r[49] = c, r[50] = G0, r[51] = I, r[52] = R, r[53] = K0) : K0 = r[53], K0;
|
|
34695
34680
|
}, import_compiler_runtime$28 = 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", {
|
|
34696
34681
|
variants: {
|
|
34697
34682
|
size: {
|
|
@@ -37683,40 +37668,40 @@ ${c}
|
|
|
37683
37668
|
areRegExpsEqual: H,
|
|
37684
37669
|
areSetsEqual: G,
|
|
37685
37670
|
createIsNestedEqual: r2
|
|
37686
|
-
}),
|
|
37687
|
-
function
|
|
37688
|
-
return
|
|
37671
|
+
}), H0 = T(q);
|
|
37672
|
+
function U0(e3, r3) {
|
|
37673
|
+
return H0(e3, r3, void 0);
|
|
37689
37674
|
}
|
|
37690
|
-
var
|
|
37675
|
+
var W0 = T(l(q, {
|
|
37691
37676
|
createIsNestedEqual: function() {
|
|
37692
37677
|
return f;
|
|
37693
37678
|
}
|
|
37694
37679
|
}));
|
|
37695
|
-
function
|
|
37696
|
-
return
|
|
37680
|
+
function G0(e3, r3) {
|
|
37681
|
+
return W0(e3, r3, void 0);
|
|
37697
37682
|
}
|
|
37698
|
-
var
|
|
37699
|
-
function
|
|
37700
|
-
return
|
|
37683
|
+
var K0 = T(Z);
|
|
37684
|
+
function q0(e3, r3) {
|
|
37685
|
+
return K0(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
37701
37686
|
}
|
|
37702
|
-
var
|
|
37687
|
+
var J0 = T(l(Z, {
|
|
37703
37688
|
createIsNestedEqual: function() {
|
|
37704
37689
|
return f;
|
|
37705
37690
|
}
|
|
37706
37691
|
}));
|
|
37707
|
-
function
|
|
37708
|
-
return
|
|
37692
|
+
function Y0(e3, r3) {
|
|
37693
|
+
return J0(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
37709
37694
|
}
|
|
37710
|
-
function
|
|
37695
|
+
function X0(e3) {
|
|
37711
37696
|
return T(l(q, e3(q)));
|
|
37712
37697
|
}
|
|
37713
|
-
function
|
|
37698
|
+
function Z0(e3) {
|
|
37714
37699
|
var r3 = T(l(Z, e3(Z)));
|
|
37715
37700
|
return (function(e4, c2, l2) {
|
|
37716
37701
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
37717
37702
|
});
|
|
37718
37703
|
}
|
|
37719
|
-
e2.circularDeepEqual =
|
|
37704
|
+
e2.circularDeepEqual = q0, e2.circularShallowEqual = Y0, e2.createCustomCircularEqual = Z0, e2.createCustomEqual = X0, e2.deepEqual = U0, e2.sameValueZeroEqual = f, e2.shallowEqual = G0, Object.defineProperty(e2, "__esModule", {
|
|
37720
37705
|
value: true
|
|
37721
37706
|
});
|
|
37722
37707
|
}));
|
|
@@ -37742,7 +37727,7 @@ ${c}
|
|
|
37742
37727
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
37743
37728
|
Object.defineProperty(e, "__esModule", {
|
|
37744
37729
|
value: true
|
|
37745
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
37730
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = r2, 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 = Y0, e.setTopLeft = Z0, e.setTransform = X0, e.sortLayoutItems = Q0, e.sortLayoutItemsByColRow = e2, e.sortLayoutItemsByRowCol = $0, e.synchronizeLayoutWithChildren = t2, e.validateLayout = n2, e.withLayoutItem = v;
|
|
37746
37731
|
var r = require_fast_equals(), c = l(require_react());
|
|
37747
37732
|
function l(e3) {
|
|
37748
37733
|
return e3 && e3.__esModule ? e3 : {
|
|
@@ -37847,7 +37832,7 @@ ${c}
|
|
|
37847
37832
|
return !(e3.i === r3.i || e3.x + e3.w <= r3.x || e3.x >= r3.x + r3.w || e3.y + e3.h <= r3.y || e3.y >= r3.y + r3.h);
|
|
37848
37833
|
}
|
|
37849
37834
|
function T(e3, r3, c2, l2) {
|
|
37850
|
-
let u2 = B(e3), d2 = h(u2), f2 =
|
|
37835
|
+
let u2 = B(e3), d2 = h(u2), f2 = Q0(e3, r3), p2 = Array(e3.length);
|
|
37851
37836
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
37852
37837
|
let h3 = y(f2[m2]);
|
|
37853
37838
|
h3.static || (h3 = M(u2, h3, r3, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e3.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -37905,7 +37890,7 @@ ${c}
|
|
|
37905
37890
|
`${r3.i}${String(c2)}${String(l2)}${r3.x}${r3.y}`;
|
|
37906
37891
|
let h2 = r3.x, _2 = r3.y;
|
|
37907
37892
|
typeof c2 == "number" && (r3.x = c2), typeof l2 == "number" && (r3.y = l2), r3.moved = true;
|
|
37908
|
-
let v2 =
|
|
37893
|
+
let v2 = Q0(e3, f2);
|
|
37909
37894
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
37910
37895
|
let y2 = z(v2, r3), b2 = y2.length > 0;
|
|
37911
37896
|
if (b2 && m2) return g(e3);
|
|
@@ -37939,61 +37924,61 @@ ${c}
|
|
|
37939
37924
|
function G(e3) {
|
|
37940
37925
|
return e3 * 100 + "%";
|
|
37941
37926
|
}
|
|
37942
|
-
var q = (e3, r3, c2, l2) => e3 + c2 > l2 ? r3 : c2, Z = (e3, r3, c2) => e3 < 0 ? r3 : c2,
|
|
37927
|
+
var q = (e3, r3, c2, l2) => e3 + c2 > l2 ? r3 : c2, Z = (e3, r3, c2) => e3 < 0 ? r3 : c2, H0 = (e3) => Math.max(0, e3), U0 = (e3) => Math.max(0, e3), W0 = (e3, r3, c2) => {
|
|
37943
37928
|
let { left: l2, height: u2, width: d2 } = r3, f2 = e3.top - (u2 - e3.height);
|
|
37944
37929
|
return {
|
|
37945
37930
|
left: l2,
|
|
37946
37931
|
width: d2,
|
|
37947
37932
|
height: Z(f2, e3.height, u2),
|
|
37948
|
-
top:
|
|
37933
|
+
top: U0(f2)
|
|
37949
37934
|
};
|
|
37950
|
-
},
|
|
37935
|
+
}, G0 = (e3, r3, c2) => {
|
|
37951
37936
|
let { top: l2, left: u2, height: d2, width: f2 } = r3;
|
|
37952
37937
|
return {
|
|
37953
37938
|
top: l2,
|
|
37954
37939
|
height: d2,
|
|
37955
37940
|
width: q(e3.left, e3.width, f2, c2),
|
|
37956
|
-
left:
|
|
37941
|
+
left: H0(u2)
|
|
37957
37942
|
};
|
|
37958
|
-
},
|
|
37943
|
+
}, K0 = (e3, r3, c2) => {
|
|
37959
37944
|
let { top: l2, height: u2, width: d2 } = r3, f2 = e3.left - (d2 - e3.width);
|
|
37960
37945
|
return {
|
|
37961
37946
|
height: u2,
|
|
37962
37947
|
width: f2 < 0 ? e3.width : q(e3.left, e3.width, d2, c2),
|
|
37963
|
-
top:
|
|
37964
|
-
left:
|
|
37948
|
+
top: U0(l2),
|
|
37949
|
+
left: H0(f2)
|
|
37965
37950
|
};
|
|
37966
|
-
},
|
|
37951
|
+
}, q0 = (e3, r3, c2) => {
|
|
37967
37952
|
let { top: l2, left: u2, height: d2, width: f2 } = r3;
|
|
37968
37953
|
return {
|
|
37969
37954
|
width: f2,
|
|
37970
37955
|
left: u2,
|
|
37971
37956
|
height: Z(l2, e3.height, d2),
|
|
37972
|
-
top:
|
|
37957
|
+
top: U0(l2)
|
|
37973
37958
|
};
|
|
37974
|
-
},
|
|
37975
|
-
n:
|
|
37959
|
+
}, J0 = {
|
|
37960
|
+
n: W0,
|
|
37976
37961
|
ne: function() {
|
|
37977
|
-
return
|
|
37962
|
+
return W0(arguments.length <= 0 ? void 0 : arguments[0], G0(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
37978
37963
|
},
|
|
37979
|
-
e:
|
|
37964
|
+
e: G0,
|
|
37980
37965
|
se: function() {
|
|
37981
|
-
return
|
|
37966
|
+
return q0(arguments.length <= 0 ? void 0 : arguments[0], G0(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
37982
37967
|
},
|
|
37983
|
-
s:
|
|
37968
|
+
s: q0,
|
|
37984
37969
|
sw: function() {
|
|
37985
|
-
return
|
|
37970
|
+
return q0(arguments.length <= 0 ? void 0 : arguments[0], K0(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
37986
37971
|
},
|
|
37987
|
-
w:
|
|
37972
|
+
w: K0,
|
|
37988
37973
|
nw: function() {
|
|
37989
|
-
return
|
|
37974
|
+
return W0(arguments.length <= 0 ? void 0 : arguments[0], K0(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
37990
37975
|
}
|
|
37991
37976
|
};
|
|
37992
|
-
function
|
|
37993
|
-
let u2 =
|
|
37977
|
+
function Y0(e3, r3, c2, l2) {
|
|
37978
|
+
let u2 = J0[e3];
|
|
37994
37979
|
return u2 ? u2(r3, d(d({}, r3), c2), l2) : c2;
|
|
37995
37980
|
}
|
|
37996
|
-
function
|
|
37981
|
+
function X0(e3) {
|
|
37997
37982
|
let { top: r3, left: c2, width: l2, height: u2 } = e3, d2 = `translate(${c2}px,${r3}px)`;
|
|
37998
37983
|
return {
|
|
37999
37984
|
transform: d2,
|
|
@@ -38006,7 +37991,7 @@ ${c}
|
|
|
38006
37991
|
position: "absolute"
|
|
38007
37992
|
};
|
|
38008
37993
|
}
|
|
38009
|
-
function
|
|
37994
|
+
function Z0(e3) {
|
|
38010
37995
|
let { top: r3, left: c2, width: l2, height: u2 } = e3;
|
|
38011
37996
|
return {
|
|
38012
37997
|
top: `${r3}px`,
|
|
@@ -38016,20 +38001,20 @@ ${c}
|
|
|
38016
38001
|
position: "absolute"
|
|
38017
38002
|
};
|
|
38018
38003
|
}
|
|
38019
|
-
function
|
|
38020
|
-
return r3 === "horizontal" ?
|
|
38004
|
+
function Q0(e3, r3) {
|
|
38005
|
+
return r3 === "horizontal" ? e2(e3) : r3 === "vertical" ? $0(e3) : e3;
|
|
38021
38006
|
}
|
|
38022
|
-
function
|
|
38007
|
+
function $0(e3) {
|
|
38023
38008
|
return e3.slice(0).sort(function(e4, r3) {
|
|
38024
38009
|
return e4.y > r3.y || e4.y === r3.y && e4.x > r3.x ? 1 : e4.y === r3.y && e4.x === r3.x ? 0 : -1;
|
|
38025
38010
|
});
|
|
38026
38011
|
}
|
|
38027
|
-
function
|
|
38012
|
+
function e2(e3) {
|
|
38028
38013
|
return e3.slice(0).sort(function(e4, r3) {
|
|
38029
38014
|
return e4.x > r3.x || e4.x === r3.x && e4.y > r3.y ? 1 : -1;
|
|
38030
38015
|
});
|
|
38031
38016
|
}
|
|
38032
|
-
function
|
|
38017
|
+
function t2(e3, r3, l2, u2, f2) {
|
|
38033
38018
|
e3 || (e3 = []);
|
|
38034
38019
|
let p2 = [];
|
|
38035
38020
|
c.default.Children.forEach(r3, (r4) => {
|
|
@@ -38050,7 +38035,7 @@ ${c}
|
|
|
38050
38035
|
});
|
|
38051
38036
|
return f2 ? m2 : T(m2, u2, l2);
|
|
38052
38037
|
}
|
|
38053
|
-
function
|
|
38038
|
+
function n2(e3) {
|
|
38054
38039
|
let r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
38055
38040
|
"x",
|
|
38056
38041
|
"y",
|
|
@@ -38067,7 +38052,7 @@ ${c}
|
|
|
38067
38052
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r3}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
38068
38053
|
}
|
|
38069
38054
|
}
|
|
38070
|
-
function
|
|
38055
|
+
function r2(e3) {
|
|
38071
38056
|
let { verticalCompact: r3, compactType: c2 } = e3 || {};
|
|
38072
38057
|
return r3 === false ? null : c2;
|
|
38073
38058
|
}
|
|
@@ -40872,7 +40857,7 @@ ${c}
|
|
|
40872
40857
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
40873
40858
|
let E = useIsDragging(), O, j;
|
|
40874
40859
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
40875
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, U0, W0, G0, K0, q0, J0, Y0, X0, Z0, Q0, $0, e2, t2, n2, r2
|
|
40860
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, Z, H0, U0, W0, G0, K0, q0, J0, Y0, X0, Z0, Q0, $0, e2, t2, n2, r2;
|
|
40876
40861
|
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) {
|
|
40877
40862
|
let e3 = Maps.keyBy(c.cells, _temp2$2), m3;
|
|
40878
40863
|
r[47] !== c || r[48] !== l ? (m3 = (e4) => (r3) => {
|
|
@@ -40891,23 +40876,23 @@ ${c}
|
|
|
40891
40876
|
});
|
|
40892
40877
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
40893
40878
|
let y2 = v2;
|
|
40894
|
-
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,
|
|
40879
|
+
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, e2 = "lg", r[58] === c.cells ? t2 = r[59] : (t2 = {
|
|
40895
40880
|
lg: c.cells
|
|
40896
|
-
}, r[58] = c.cells, r[59] =
|
|
40881
|
+
}, r[58] = c.cells, r[59] = t2), n2 = L, r2 = S, R = false;
|
|
40897
40882
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
40898
40883
|
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 ? [
|
|
40899
40884
|
20,
|
|
40900
40885
|
20
|
|
40901
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (
|
|
40886
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, Z = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (H0 = (e4) => {
|
|
40902
40887
|
f || l({
|
|
40903
40888
|
...c,
|
|
40904
40889
|
cells: e4
|
|
40905
40890
|
});
|
|
40906
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
40891
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = H0) : H0 = r[69], r[70] === g ? U0 = r[71] : (U0 = g ? {
|
|
40907
40892
|
i: g.i,
|
|
40908
40893
|
w: g.w || 2,
|
|
40909
40894
|
h: g.h || 2
|
|
40910
|
-
} : void 0, r[70] = g, r[71] =
|
|
40895
|
+
} : void 0, r[70] = g, r[71] = U0), r[72] !== O || r[73] !== c || r[74] !== l ? (W0 = (e4, r3, u3) => {
|
|
40911
40896
|
O.onDragStop(), r3 && l({
|
|
40912
40897
|
...c,
|
|
40913
40898
|
cells: [
|
|
@@ -40915,15 +40900,15 @@ ${c}
|
|
|
40915
40900
|
r3
|
|
40916
40901
|
]
|
|
40917
40902
|
});
|
|
40918
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
40903
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = W0) : W0 = r[75], r[76] === O ? (G0 = r[77], K0 = r[78], q0 = r[79]) : (G0 = (e4, r3, c3, l3, u3) => {
|
|
40919
40904
|
O.onDragStart(u3);
|
|
40920
|
-
},
|
|
40905
|
+
}, K0 = (e4, r3, c3, l3, u3) => {
|
|
40921
40906
|
O.onDragMove(u3);
|
|
40922
|
-
},
|
|
40907
|
+
}, q0 = () => {
|
|
40923
40908
|
O.onDragStop();
|
|
40924
|
-
}, r[76] = O, r[77] =
|
|
40909
|
+
}, r[76] = O, r[77] = G0, r[78] = K0, r[79] = q0), J0 = _temp3$2, Y0 = M, X0 = M, Z0 = M, Q0 = M ? `.${DRAG_HANDLE}` : "noop";
|
|
40925
40910
|
let E2;
|
|
40926
|
-
r[80] === h ? E2 = r[81] : (E2 = (e4) => h.has(e4.id), r[80] = h, r[81] = E2),
|
|
40911
|
+
r[80] === h ? E2 = r[81] : (E2 = (e4) => h.has(e4.id), r[80] = h, r[81] = E2), $0 = u.filter(E2).map((r3) => {
|
|
40927
40912
|
let u3 = e3.get(r3.id), f3 = c.scrollableCells.has(r3.id) ?? false, p = c.cellSide.get(r3.id), m4 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
40928
40913
|
code: r3.code,
|
|
40929
40914
|
mode: d,
|
|
@@ -40952,14 +40937,14 @@ ${c}
|
|
|
40952
40937
|
}, r3.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
40953
40938
|
children: m4
|
|
40954
40939
|
}, r3.id);
|
|
40955
|
-
}), 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] = Z, r[31] =
|
|
40956
|
-
} 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], Z = r[30],
|
|
40957
|
-
let
|
|
40958
|
-
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] !== Z || r[91] !==
|
|
40959
|
-
breakpoint:
|
|
40960
|
-
layouts:
|
|
40961
|
-
style:
|
|
40962
|
-
cols:
|
|
40940
|
+
}), 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] = Z, r[31] = H0, r[32] = U0, r[33] = W0, r[34] = G0, r[35] = K0, r[36] = q0, r[37] = J0, r[38] = Y0, r[39] = X0, r[40] = Z0, r[41] = Q0, r[42] = $0, r[43] = e2, r[44] = t2, r[45] = n2, r[46] = r2;
|
|
40941
|
+
} 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], Z = r[30], H0 = r[31], U0 = r[32], W0 = r[33], G0 = r[34], K0 = r[35], q0 = r[36], J0 = r[37], Y0 = r[38], X0 = r[39], Z0 = r[40], Q0 = r[41], $0 = r[42], e2 = r[43], t2 = r[44], n2 = r[45], r2 = r[46];
|
|
40942
|
+
let i2;
|
|
40943
|
+
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] !== Z || r[91] !== H0 || r[92] !== U0 || r[93] !== W0 || r[94] !== G0 || r[95] !== K0 || r[96] !== q0 || r[97] !== J0 || r[98] !== Y0 || r[99] !== X0 || r[100] !== Z0 || r[101] !== Q0 || r[102] !== $0 || r[103] !== e2 || r[104] !== t2 || r[105] !== n2 || r[106] !== r2 ? (i2 = (0, import_jsx_runtime.jsx)(I, {
|
|
40944
|
+
breakpoint: e2,
|
|
40945
|
+
layouts: t2,
|
|
40946
|
+
style: n2,
|
|
40947
|
+
cols: r2,
|
|
40963
40948
|
allowOverlap: R,
|
|
40964
40949
|
className: z,
|
|
40965
40950
|
containerPadding: B,
|
|
@@ -40968,22 +40953,22 @@ ${c}
|
|
|
40968
40953
|
compactType: G,
|
|
40969
40954
|
preventCollision: q,
|
|
40970
40955
|
rowHeight: Z,
|
|
40971
|
-
onLayoutChange:
|
|
40972
|
-
droppingItem:
|
|
40973
|
-
onDrop:
|
|
40974
|
-
onDragStart:
|
|
40975
|
-
onDrag:
|
|
40976
|
-
onDragStop:
|
|
40977
|
-
onResizeStop:
|
|
40978
|
-
isDraggable:
|
|
40979
|
-
isDroppable:
|
|
40980
|
-
isResizable:
|
|
40981
|
-
draggableHandle:
|
|
40982
|
-
children:
|
|
40983
|
-
}), 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] = Z, r[91] =
|
|
40984
|
-
let
|
|
40985
|
-
if (r[108] !== u || r[109] !==
|
|
40986
|
-
|
|
40956
|
+
onLayoutChange: H0,
|
|
40957
|
+
droppingItem: U0,
|
|
40958
|
+
onDrop: W0,
|
|
40959
|
+
onDragStart: G0,
|
|
40960
|
+
onDrag: K0,
|
|
40961
|
+
onDragStop: q0,
|
|
40962
|
+
onResizeStop: J0,
|
|
40963
|
+
isDraggable: Y0,
|
|
40964
|
+
isDroppable: X0,
|
|
40965
|
+
isResizable: Z0,
|
|
40966
|
+
draggableHandle: Q0,
|
|
40967
|
+
children: $0
|
|
40968
|
+
}), 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] = Z, r[91] = H0, r[92] = U0, r[93] = W0, r[94] = G0, r[95] = K0, r[96] = q0, r[97] = J0, r[98] = Y0, r[99] = X0, r[100] = Z0, r[101] = Q0, r[102] = $0, r[103] = e2, r[104] = t2, r[105] = n2, r[106] = r2, r[107] = i2) : i2 = r[107];
|
|
40969
|
+
let a2 = i2, o2, s2, c2, l2, u2, d2, f2;
|
|
40970
|
+
if (r[108] !== u || r[109] !== a2 || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
40971
|
+
f2 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
40987
40972
|
bb0: {
|
|
40988
40973
|
let e3;
|
|
40989
40974
|
r[125] === h ? e3 = r[126] : (e3 = (e4) => !h.has(e4.id), r[125] = h, r[126] = e3);
|
|
@@ -40991,14 +40976,14 @@ ${c}
|
|
|
40991
40976
|
if (f) {
|
|
40992
40977
|
if (c.bordered) {
|
|
40993
40978
|
let e5;
|
|
40994
|
-
r[127] !==
|
|
40979
|
+
r[127] !== a2 || r[128] !== L ? (e5 = (0, import_jsx_runtime.jsx)("div", {
|
|
40995
40980
|
className: "flex flex-1 flex-col items-center",
|
|
40996
40981
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
40997
40982
|
style: L,
|
|
40998
40983
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
40999
|
-
children:
|
|
40984
|
+
children: a2
|
|
41000
40985
|
})
|
|
41001
|
-
}), r[127] =
|
|
40986
|
+
}), r[127] = a2, r[128] = L, r[129] = e5) : e5 = r[129], a2 = e5;
|
|
41002
40987
|
}
|
|
41003
40988
|
let e4 = m3.filter(_temp4$2), l3;
|
|
41004
40989
|
r[130] === d ? l3 = r[131] : (l3 = (e5) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -41009,9 +40994,9 @@ ${c}
|
|
|
41009
40994
|
status: e5.status,
|
|
41010
40995
|
isScrollable: false,
|
|
41011
40996
|
hidden: false
|
|
41012
|
-
}, e5.id), r[130] = d, r[131] = l3),
|
|
40997
|
+
}, e5.id), r[130] = d, r[131] = l3), f2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41013
40998
|
children: [
|
|
41014
|
-
|
|
40999
|
+
a2,
|
|
41015
41000
|
(0, import_jsx_runtime.jsx)("div", {
|
|
41016
41001
|
className: "hidden",
|
|
41017
41002
|
children: e4.map(l3)
|
|
@@ -41022,31 +41007,31 @@ ${c}
|
|
|
41022
41007
|
}
|
|
41023
41008
|
if (c.bordered) {
|
|
41024
41009
|
let e4;
|
|
41025
|
-
r[132] ===
|
|
41010
|
+
r[132] === a2 ? e4 = r[133] : (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
41026
41011
|
className: "h-full overflow-auto",
|
|
41027
|
-
children:
|
|
41028
|
-
}), r[132] =
|
|
41012
|
+
children: a2
|
|
41013
|
+
}), r[132] = a2, r[133] = e4);
|
|
41029
41014
|
let c3;
|
|
41030
41015
|
r[134] !== L || r[135] !== e4 ? (c3 = (0, import_jsx_runtime.jsx)("div", {
|
|
41031
41016
|
style: L,
|
|
41032
41017
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
41033
41018
|
children: e4
|
|
41034
|
-
}), r[134] = L, r[135] = e4, r[136] = c3) : c3 = r[136],
|
|
41019
|
+
}), r[134] = L, r[135] = e4, r[136] = c3) : c3 = r[136], a2 = c3;
|
|
41035
41020
|
}
|
|
41036
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
41021
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (d2 = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
41037
41022
|
layout: c,
|
|
41038
41023
|
setLayout: l,
|
|
41039
41024
|
isLocked: v,
|
|
41040
41025
|
setIsLocked: y
|
|
41041
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
41042
|
-
let
|
|
41043
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
41044
|
-
className:
|
|
41045
|
-
children:
|
|
41046
|
-
}), r[143] =
|
|
41026
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = d2) : d2 = r[140];
|
|
41027
|
+
let g2;
|
|
41028
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l2 = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = l2, r[142] = g2) : (l2 = r[141], g2 = r[142]), r[143] === a2 ? u2 = r[144] : (u2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41029
|
+
className: g2,
|
|
41030
|
+
children: a2
|
|
41031
|
+
}), r[143] = a2, r[144] = u2), o2 = "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") ? (s2 = (0, import_jsx_runtime.jsx)("div", {
|
|
41047
41032
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
41048
41033
|
children: "Outputs"
|
|
41049
|
-
}), r[145] =
|
|
41034
|
+
}), r[145] = s2) : s2 = r[145];
|
|
41050
41035
|
let b2;
|
|
41051
41036
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e4) => (0, import_jsx_runtime.jsx)("div", {
|
|
41052
41037
|
draggable: true,
|
|
@@ -41071,34 +41056,34 @@ ${c}
|
|
|
41071
41056
|
status: e4.status,
|
|
41072
41057
|
hidden: false
|
|
41073
41058
|
})
|
|
41074
|
-
}, e4.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
41075
|
-
}
|
|
41076
|
-
r[108] = u, r[109] =
|
|
41077
|
-
} else
|
|
41078
|
-
if (
|
|
41059
|
+
}, e4.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], c2 = m3.map(b2);
|
|
41060
|
+
}
|
|
41061
|
+
r[108] = u, r[109] = a2, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = o2, r[118] = s2, r[119] = c2, r[120] = l2, r[121] = u2, r[122] = d2, r[123] = f2, r[124] = a2;
|
|
41062
|
+
} else o2 = r[117], s2 = r[118], c2 = r[119], l2 = r[120], u2 = r[121], d2 = r[122], f2 = r[123], a2 = r[124];
|
|
41063
|
+
if (f2 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return f2;
|
|
41064
|
+
let p2;
|
|
41065
|
+
r[150] !== o2 || r[151] !== s2 || r[152] !== c2 ? (p2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41066
|
+
className: o2,
|
|
41067
|
+
children: [
|
|
41068
|
+
s2,
|
|
41069
|
+
c2
|
|
41070
|
+
]
|
|
41071
|
+
}), r[150] = o2, r[151] = s2, r[152] = c2, r[153] = p2) : p2 = r[153];
|
|
41079
41072
|
let m2;
|
|
41080
|
-
r[
|
|
41081
|
-
className:
|
|
41073
|
+
r[154] !== l2 || r[155] !== u2 || r[156] !== p2 ? (m2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41074
|
+
className: l2,
|
|
41082
41075
|
children: [
|
|
41083
|
-
|
|
41084
|
-
|
|
41076
|
+
u2,
|
|
41077
|
+
p2
|
|
41085
41078
|
]
|
|
41086
|
-
}), r[
|
|
41079
|
+
}), r[154] = l2, r[155] = u2, r[156] = p2, r[157] = m2) : m2 = r[157];
|
|
41087
41080
|
let h2;
|
|
41088
|
-
|
|
41089
|
-
className: u2,
|
|
41081
|
+
return r[158] !== d2 || r[159] !== m2 ? (h2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41090
41082
|
children: [
|
|
41091
41083
|
d2,
|
|
41092
41084
|
m2
|
|
41093
41085
|
]
|
|
41094
|
-
}), r[
|
|
41095
|
-
let g2;
|
|
41096
|
-
return r[158] !== f2 || r[159] !== h2 ? (g2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
41097
|
-
children: [
|
|
41098
|
-
f2,
|
|
41099
|
-
h2
|
|
41100
|
-
]
|
|
41101
|
-
}), r[158] = f2, r[159] = h2, r[160] = g2) : g2 = r[160], g2;
|
|
41086
|
+
}), r[158] = d2, r[159] = m2, r[160] = h2) : h2 = r[160], h2;
|
|
41102
41087
|
};
|
|
41103
41088
|
var GridCell = (0, import_react.memo)((e) => {
|
|
41104
41089
|
let r = (0, import_compiler_runtime$11.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -41403,21 +41388,21 @@ ${c}
|
|
|
41403
41388
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
41404
41389
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
41405
41390
|
}), r[35] = Z) : Z = r[35];
|
|
41406
|
-
let
|
|
41407
|
-
r[36] === l ?
|
|
41391
|
+
let H0;
|
|
41392
|
+
r[36] === l ? H0 = r[37] : (H0 = (0, import_jsx_runtime.jsx)(X, {
|
|
41408
41393
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
41409
41394
|
onClick: () => l()
|
|
41410
|
-
}), r[36] = l, r[37] =
|
|
41411
|
-
let
|
|
41412
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
41395
|
+
}), r[36] = l, r[37] = H0);
|
|
41396
|
+
let U0;
|
|
41397
|
+
return r[38] !== I || r[39] !== q || r[40] !== H0 || r[41] !== w ? (U0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
41413
41398
|
className: w,
|
|
41414
41399
|
children: [
|
|
41415
41400
|
I,
|
|
41416
41401
|
q,
|
|
41417
41402
|
Z,
|
|
41418
|
-
|
|
41403
|
+
H0
|
|
41419
41404
|
]
|
|
41420
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
41405
|
+
}), r[38] = I, r[39] = q, r[40] = H0, r[41] = w, r[42] = U0) : U0 = r[42], U0;
|
|
41421
41406
|
};
|
|
41422
41407
|
function isSidebarCell(e) {
|
|
41423
41408
|
var _a3;
|
|
@@ -43361,29 +43346,29 @@ ${c}
|
|
|
43361
43346
|
M
|
|
43362
43347
|
]), 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), Z = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
43363
43348
|
j
|
|
43364
|
-
]),
|
|
43349
|
+
]), H0 = useMeasuringConfiguration(p), { droppableRects: U0, measureDroppableContainers: W0, measuringScheduled: G0 } = useDroppableMeasuring(Z, {
|
|
43365
43350
|
dragging: w,
|
|
43366
43351
|
dependencies: [
|
|
43367
43352
|
O.x,
|
|
43368
43353
|
O.y
|
|
43369
43354
|
],
|
|
43370
|
-
config:
|
|
43371
|
-
}),
|
|
43355
|
+
config: H0.droppable
|
|
43356
|
+
}), K0 = useCachedNode(E, T), q0 = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
43372
43357
|
H
|
|
43373
|
-
]),
|
|
43358
|
+
]), J0 = T2(), Y0 = useInitialRect(K0, H0.draggable.measure);
|
|
43374
43359
|
useLayoutShiftScrollCompensation({
|
|
43375
43360
|
activeNode: T == null ? null : E.get(T),
|
|
43376
|
-
config:
|
|
43377
|
-
initialRect:
|
|
43378
|
-
measure:
|
|
43361
|
+
config: J0.layoutShiftCompensation,
|
|
43362
|
+
initialRect: Y0,
|
|
43363
|
+
measure: H0.draggable.measure
|
|
43379
43364
|
});
|
|
43380
|
-
let
|
|
43365
|
+
let X0 = useRect(K0, H0.draggable.measure, Y0), Z0 = useRect(K0 ? K0.parentElement : null), Q0 = (0, import_react.useRef)({
|
|
43381
43366
|
activatorEvent: null,
|
|
43382
43367
|
active: null,
|
|
43383
|
-
activeNode:
|
|
43368
|
+
activeNode: K0,
|
|
43384
43369
|
collisionRect: null,
|
|
43385
43370
|
collisions: null,
|
|
43386
|
-
droppableRects:
|
|
43371
|
+
droppableRects: U0,
|
|
43387
43372
|
draggableNodes: E,
|
|
43388
43373
|
draggingNode: null,
|
|
43389
43374
|
draggingNodeRect: null,
|
|
@@ -43391,45 +43376,45 @@ ${c}
|
|
|
43391
43376
|
over: null,
|
|
43392
43377
|
scrollableAncestors: [],
|
|
43393
43378
|
scrollAdjustedTranslate: null
|
|
43394
|
-
}),
|
|
43395
|
-
measure:
|
|
43396
|
-
}),
|
|
43379
|
+
}), $0 = j.getNodeFor((_a3 = Q0.current.over) == null ? void 0 : _a3.id), e2 = useDragOverlayMeasuring({
|
|
43380
|
+
measure: H0.dragOverlay.measure
|
|
43381
|
+
}), t2 = e2.nodeRef.current ?? K0, n2 = w ? e2.rect ?? X0 : null, r2 = !!(e2.nodeRef.current && e2.rect), i2 = useRectDelta(r2 ? null : X0), a2 = useWindowRect(t2 ? getWindow(t2) : null), o2 = useScrollableAncestors(w ? $0 ?? K0 : null), s2 = useRects(o2), c2 = applyModifiers(m, {
|
|
43397
43382
|
transform: {
|
|
43398
|
-
x: O.x -
|
|
43399
|
-
y: O.y -
|
|
43383
|
+
x: O.x - i2.x,
|
|
43384
|
+
y: O.y - i2.y,
|
|
43400
43385
|
scaleX: 1,
|
|
43401
43386
|
scaleY: 1
|
|
43402
43387
|
},
|
|
43403
43388
|
activatorEvent: H,
|
|
43404
43389
|
active: L,
|
|
43405
|
-
activeNodeRect:
|
|
43406
|
-
containerNodeRect:
|
|
43407
|
-
draggingNodeRect:
|
|
43408
|
-
over:
|
|
43409
|
-
overlayNodeRect:
|
|
43410
|
-
scrollableAncestors:
|
|
43411
|
-
scrollableAncestorRects:
|
|
43412
|
-
windowRect:
|
|
43413
|
-
}),
|
|
43414
|
-
|
|
43415
|
-
]),
|
|
43390
|
+
activeNodeRect: X0,
|
|
43391
|
+
containerNodeRect: Z0,
|
|
43392
|
+
draggingNodeRect: n2,
|
|
43393
|
+
over: Q0.current.over,
|
|
43394
|
+
overlayNodeRect: e2.rect,
|
|
43395
|
+
scrollableAncestors: o2,
|
|
43396
|
+
scrollableAncestorRects: s2,
|
|
43397
|
+
windowRect: a2
|
|
43398
|
+
}), l2 = q0 ? add(q0, O) : null, u2 = useScrollOffsets(o2), d2 = useScrollOffsetsDelta(u2), f2 = useScrollOffsetsDelta(u2, [
|
|
43399
|
+
X0
|
|
43400
|
+
]), p2 = add(c2, d2), m2 = n2 ? getAdjustedRect(n2, c2) : null, h2 = L && m2 ? f({
|
|
43416
43401
|
active: L,
|
|
43417
|
-
collisionRect:
|
|
43418
|
-
droppableRects:
|
|
43402
|
+
collisionRect: m2,
|
|
43403
|
+
droppableRects: U0,
|
|
43419
43404
|
droppableContainers: Z,
|
|
43420
|
-
pointerCoordinates:
|
|
43421
|
-
}) : null,
|
|
43405
|
+
pointerCoordinates: l2
|
|
43406
|
+
}) : null, g2 = getFirstCollision(h2, "id"), [_2, v2] = (0, import_react.useState)(null), y2 = adjustScale(r2 ? c2 : add(c2, f2), (_2 == null ? void 0 : _2.rect) ?? null, X0), b2 = (0, import_react.useRef)(null), x2 = (0, import_react.useCallback)((e3, r3) => {
|
|
43422
43407
|
let { sensor: c3, options: l3 } = r3;
|
|
43423
43408
|
if (R.current == null) return;
|
|
43424
43409
|
let u3 = E.get(R.current);
|
|
43425
43410
|
if (!u3) return;
|
|
43426
43411
|
let d3 = e3.nativeEvent;
|
|
43427
|
-
|
|
43412
|
+
b2.current = new c3({
|
|
43428
43413
|
active: R.current,
|
|
43429
43414
|
activeNode: u3,
|
|
43430
43415
|
event: d3,
|
|
43431
43416
|
options: l3,
|
|
43432
|
-
context:
|
|
43417
|
+
context: Q0,
|
|
43433
43418
|
onAbort(e4) {
|
|
43434
43419
|
if (!E.get(e4)) return;
|
|
43435
43420
|
let { onDragAbort: r4 } = G.current, c4 = {
|
|
@@ -43474,7 +43459,7 @@ ${c}
|
|
|
43474
43459
|
}), v({
|
|
43475
43460
|
type: "onDragStart",
|
|
43476
43461
|
event: u4
|
|
43477
|
-
}), B(
|
|
43462
|
+
}), B(b2.current), W(d3);
|
|
43478
43463
|
});
|
|
43479
43464
|
},
|
|
43480
43465
|
onMove(e4) {
|
|
@@ -43488,7 +43473,7 @@ ${c}
|
|
|
43488
43473
|
});
|
|
43489
43474
|
function f3(e4) {
|
|
43490
43475
|
return async function() {
|
|
43491
|
-
let { active: r4, collisions: c4, over: l4, scrollAdjustedTranslate: u4 } =
|
|
43476
|
+
let { active: r4, collisions: c4, over: l4, scrollAdjustedTranslate: u4 } = Q0.current, f4 = null;
|
|
43492
43477
|
if (r4 && u4) {
|
|
43493
43478
|
let { cancelDrop: p3 } = G.current;
|
|
43494
43479
|
f4 = {
|
|
@@ -43502,7 +43487,7 @@ ${c}
|
|
|
43502
43487
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43503
43488
|
_({
|
|
43504
43489
|
type: e4
|
|
43505
|
-
}), S(Status.Uninitialized),
|
|
43490
|
+
}), S(Status.Uninitialized), v2(null), B(null), W(null), b2.current = null;
|
|
43506
43491
|
let r5 = e4 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
43507
43492
|
if (f4) {
|
|
43508
43493
|
let e5 = G.current[r5];
|
|
@@ -43516,7 +43501,7 @@ ${c}
|
|
|
43516
43501
|
}
|
|
43517
43502
|
}, [
|
|
43518
43503
|
E
|
|
43519
|
-
]),
|
|
43504
|
+
]), S2 = useCombineActivators(d, (0, import_react.useCallback)((e3, r3) => (c3, l3) => {
|
|
43520
43505
|
let u3 = c3.nativeEvent, d3 = E.get(l3);
|
|
43521
43506
|
if (R.current !== null || !d3 || u3.dndKit || u3.defaultPrevented) return;
|
|
43522
43507
|
let f3 = {
|
|
@@ -43524,26 +43509,26 @@ ${c}
|
|
|
43524
43509
|
};
|
|
43525
43510
|
e3(c3, r3.options, f3) === true && (u3.dndKit = {
|
|
43526
43511
|
capturedBy: r3.sensor
|
|
43527
|
-
}, R.current = l3,
|
|
43512
|
+
}, R.current = l3, x2(c3, r3));
|
|
43528
43513
|
}, [
|
|
43529
43514
|
E,
|
|
43530
|
-
|
|
43515
|
+
x2
|
|
43531
43516
|
]));
|
|
43532
43517
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
43533
|
-
|
|
43518
|
+
X0 && b === Status.Initializing && S(Status.Initialized);
|
|
43534
43519
|
}, [
|
|
43535
|
-
|
|
43520
|
+
X0,
|
|
43536
43521
|
b
|
|
43537
43522
|
]), (0, import_react.useEffect)(() => {
|
|
43538
|
-
let { onDragMove: e3 } = G.current, { active: r3, activatorEvent: c3, collisions: l3, over: u3 } =
|
|
43523
|
+
let { onDragMove: e3 } = G.current, { active: r3, activatorEvent: c3, collisions: l3, over: u3 } = Q0.current;
|
|
43539
43524
|
if (!r3 || !c3) return;
|
|
43540
43525
|
let d3 = {
|
|
43541
43526
|
active: r3,
|
|
43542
43527
|
activatorEvent: c3,
|
|
43543
43528
|
collisions: l3,
|
|
43544
43529
|
delta: {
|
|
43545
|
-
x:
|
|
43546
|
-
y:
|
|
43530
|
+
x: p2.x,
|
|
43531
|
+
y: p2.y
|
|
43547
43532
|
},
|
|
43548
43533
|
over: u3
|
|
43549
43534
|
};
|
|
@@ -43554,12 +43539,12 @@ ${c}
|
|
|
43554
43539
|
});
|
|
43555
43540
|
});
|
|
43556
43541
|
}, [
|
|
43557
|
-
|
|
43558
|
-
|
|
43542
|
+
p2.x,
|
|
43543
|
+
p2.y
|
|
43559
43544
|
]), (0, import_react.useEffect)(() => {
|
|
43560
|
-
let { active: e3, activatorEvent: r3, collisions: c3, droppableContainers: l3, scrollAdjustedTranslate: u3 } =
|
|
43545
|
+
let { active: e3, activatorEvent: r3, collisions: c3, droppableContainers: l3, scrollAdjustedTranslate: u3 } = Q0.current;
|
|
43561
43546
|
if (!e3 || R.current == null || !r3 || !u3) return;
|
|
43562
|
-
let { onDragOver: d3 } = G.current, f3 = l3.get(
|
|
43547
|
+
let { onDragOver: d3 } = G.current, f3 = l3.get(g2), p3 = f3 && f3.rect.current ? {
|
|
43563
43548
|
id: f3.id,
|
|
43564
43549
|
rect: f3.rect.current,
|
|
43565
43550
|
data: f3.data,
|
|
@@ -43575,127 +43560,127 @@ ${c}
|
|
|
43575
43560
|
over: p3
|
|
43576
43561
|
};
|
|
43577
43562
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
43578
|
-
|
|
43563
|
+
v2(p3), d3 == null ? void 0 : d3(m3), v({
|
|
43579
43564
|
type: "onDragOver",
|
|
43580
43565
|
event: m3
|
|
43581
43566
|
});
|
|
43582
43567
|
});
|
|
43583
43568
|
}, [
|
|
43584
|
-
|
|
43569
|
+
g2
|
|
43585
43570
|
]), useIsomorphicLayoutEffect(() => {
|
|
43586
|
-
|
|
43571
|
+
Q0.current = {
|
|
43587
43572
|
activatorEvent: H,
|
|
43588
43573
|
active: L,
|
|
43589
|
-
activeNode:
|
|
43590
|
-
collisionRect:
|
|
43591
|
-
collisions:
|
|
43592
|
-
droppableRects:
|
|
43574
|
+
activeNode: K0,
|
|
43575
|
+
collisionRect: m2,
|
|
43576
|
+
collisions: h2,
|
|
43577
|
+
droppableRects: U0,
|
|
43593
43578
|
draggableNodes: E,
|
|
43594
|
-
draggingNode:
|
|
43595
|
-
draggingNodeRect:
|
|
43579
|
+
draggingNode: t2,
|
|
43580
|
+
draggingNodeRect: n2,
|
|
43596
43581
|
droppableContainers: j,
|
|
43597
|
-
over:
|
|
43598
|
-
scrollableAncestors:
|
|
43599
|
-
scrollAdjustedTranslate:
|
|
43582
|
+
over: _2,
|
|
43583
|
+
scrollableAncestors: o2,
|
|
43584
|
+
scrollAdjustedTranslate: p2
|
|
43600
43585
|
}, I.current = {
|
|
43601
|
-
initial:
|
|
43602
|
-
translated:
|
|
43586
|
+
initial: n2,
|
|
43587
|
+
translated: m2
|
|
43603
43588
|
};
|
|
43604
43589
|
}, [
|
|
43605
43590
|
L,
|
|
43606
|
-
|
|
43607
|
-
g2,
|
|
43591
|
+
K0,
|
|
43608
43592
|
h2,
|
|
43593
|
+
m2,
|
|
43609
43594
|
E,
|
|
43595
|
+
t2,
|
|
43610
43596
|
n2,
|
|
43611
|
-
|
|
43612
|
-
W0,
|
|
43597
|
+
U0,
|
|
43613
43598
|
j,
|
|
43614
|
-
|
|
43615
|
-
|
|
43616
|
-
|
|
43599
|
+
_2,
|
|
43600
|
+
o2,
|
|
43601
|
+
p2
|
|
43617
43602
|
]), useAutoScroller({
|
|
43618
|
-
...
|
|
43603
|
+
...J0,
|
|
43619
43604
|
delta: O,
|
|
43620
|
-
draggingRect:
|
|
43621
|
-
pointerCoordinates:
|
|
43622
|
-
scrollableAncestors:
|
|
43623
|
-
scrollableAncestorRects:
|
|
43605
|
+
draggingRect: m2,
|
|
43606
|
+
pointerCoordinates: l2,
|
|
43607
|
+
scrollableAncestors: o2,
|
|
43608
|
+
scrollableAncestorRects: s2
|
|
43624
43609
|
});
|
|
43625
|
-
let
|
|
43610
|
+
let C2 = (0, import_react.useMemo)(() => ({
|
|
43626
43611
|
active: L,
|
|
43627
|
-
activeNode:
|
|
43628
|
-
activeNodeRect:
|
|
43612
|
+
activeNode: K0,
|
|
43613
|
+
activeNodeRect: X0,
|
|
43629
43614
|
activatorEvent: H,
|
|
43630
|
-
collisions:
|
|
43631
|
-
containerNodeRect:
|
|
43632
|
-
dragOverlay:
|
|
43615
|
+
collisions: h2,
|
|
43616
|
+
containerNodeRect: Z0,
|
|
43617
|
+
dragOverlay: e2,
|
|
43633
43618
|
draggableNodes: E,
|
|
43634
43619
|
droppableContainers: j,
|
|
43635
|
-
droppableRects:
|
|
43636
|
-
over:
|
|
43637
|
-
measureDroppableContainers:
|
|
43638
|
-
scrollableAncestors:
|
|
43639
|
-
scrollableAncestorRects:
|
|
43640
|
-
measuringConfiguration:
|
|
43641
|
-
measuringScheduled:
|
|
43642
|
-
windowRect:
|
|
43620
|
+
droppableRects: U0,
|
|
43621
|
+
over: _2,
|
|
43622
|
+
measureDroppableContainers: W0,
|
|
43623
|
+
scrollableAncestors: o2,
|
|
43624
|
+
scrollableAncestorRects: s2,
|
|
43625
|
+
measuringConfiguration: H0,
|
|
43626
|
+
measuringScheduled: G0,
|
|
43627
|
+
windowRect: a2
|
|
43643
43628
|
}), [
|
|
43644
43629
|
L,
|
|
43645
|
-
|
|
43646
|
-
|
|
43630
|
+
K0,
|
|
43631
|
+
X0,
|
|
43647
43632
|
H,
|
|
43648
|
-
|
|
43649
|
-
|
|
43650
|
-
|
|
43633
|
+
h2,
|
|
43634
|
+
Z0,
|
|
43635
|
+
e2,
|
|
43651
43636
|
E,
|
|
43652
43637
|
j,
|
|
43638
|
+
U0,
|
|
43639
|
+
_2,
|
|
43653
43640
|
W0,
|
|
43654
|
-
|
|
43655
|
-
G0,
|
|
43641
|
+
o2,
|
|
43656
43642
|
s2,
|
|
43657
|
-
|
|
43658
|
-
|
|
43659
|
-
|
|
43660
|
-
|
|
43661
|
-
]), T2 = (0, import_react.useMemo)(() => ({
|
|
43643
|
+
H0,
|
|
43644
|
+
G0,
|
|
43645
|
+
a2
|
|
43646
|
+
]), w2 = (0, import_react.useMemo)(() => ({
|
|
43662
43647
|
activatorEvent: H,
|
|
43663
|
-
activators:
|
|
43648
|
+
activators: S2,
|
|
43664
43649
|
active: L,
|
|
43665
|
-
activeNodeRect:
|
|
43650
|
+
activeNodeRect: X0,
|
|
43666
43651
|
ariaDescribedById: {
|
|
43667
43652
|
draggable: q
|
|
43668
43653
|
},
|
|
43669
43654
|
dispatch: _,
|
|
43670
43655
|
draggableNodes: E,
|
|
43671
|
-
over:
|
|
43672
|
-
measureDroppableContainers:
|
|
43656
|
+
over: _2,
|
|
43657
|
+
measureDroppableContainers: W0
|
|
43673
43658
|
}), [
|
|
43674
43659
|
H,
|
|
43675
|
-
|
|
43660
|
+
S2,
|
|
43676
43661
|
L,
|
|
43677
|
-
|
|
43662
|
+
X0,
|
|
43678
43663
|
_,
|
|
43679
43664
|
q,
|
|
43680
43665
|
E,
|
|
43681
|
-
|
|
43682
|
-
|
|
43666
|
+
_2,
|
|
43667
|
+
W0
|
|
43683
43668
|
]);
|
|
43684
43669
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
43685
43670
|
value: y
|
|
43686
43671
|
}, import_react.createElement(InternalContext.Provider, {
|
|
43687
|
-
value: T2
|
|
43688
|
-
}, import_react.createElement(PublicContext.Provider, {
|
|
43689
43672
|
value: w2
|
|
43673
|
+
}, import_react.createElement(PublicContext.Provider, {
|
|
43674
|
+
value: C2
|
|
43690
43675
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
43691
|
-
value:
|
|
43676
|
+
value: y2
|
|
43692
43677
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
43693
43678
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
43694
43679
|
})), import_react.createElement(Accessibility, {
|
|
43695
43680
|
...c,
|
|
43696
43681
|
hiddenTextDescribedById: q
|
|
43697
43682
|
}));
|
|
43698
|
-
function
|
|
43683
|
+
function T2() {
|
|
43699
43684
|
let e3 = (z == null ? void 0 : z.autoScrollEnabled) === false, r3 = typeof l == "object" ? l.enabled === false : l === false, c3 = w && !e3 && !r3;
|
|
43700
43685
|
return typeof l == "object" ? {
|
|
43701
43686
|
...l,
|
|
@@ -44223,7 +44208,7 @@ ${c}
|
|
|
44223
44208
|
updateMeasurementsFor: I,
|
|
44224
44209
|
...m
|
|
44225
44210
|
}
|
|
44226
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners:
|
|
44211
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: Z, listeners: H0, isDragging: U0, over: W0, setActivatorNodeRef: G0, transform: K0 } = useDraggable({
|
|
44227
44212
|
id: f,
|
|
44228
44213
|
data: M,
|
|
44229
44214
|
attributes: {
|
|
@@ -44231,60 +44216,60 @@ ${c}
|
|
|
44231
44216
|
...c
|
|
44232
44217
|
},
|
|
44233
44218
|
disabled: O.draggable
|
|
44234
|
-
}),
|
|
44219
|
+
}), q0 = useCombinedRefs(B, Z), J0 = !!H, Y0 = J0 && !b && isValidIndex(v) && isValidIndex(w), X0 = !T && U0, Z0 = Y0 ? (X0 && Y0 ? K0 : null) ?? (p ?? E)({
|
|
44235
44220
|
rects: S,
|
|
44236
44221
|
activeNodeRect: G,
|
|
44237
44222
|
activeIndex: v,
|
|
44238
44223
|
overIndex: w,
|
|
44239
44224
|
index: j
|
|
44240
|
-
}) : null,
|
|
44225
|
+
}) : null, Q0 = isValidIndex(v) && isValidIndex(w) ? d({
|
|
44241
44226
|
id: f,
|
|
44242
44227
|
items: g,
|
|
44243
44228
|
activeIndex: v,
|
|
44244
44229
|
overIndex: w
|
|
44245
|
-
}) : j,
|
|
44246
|
-
activeId:
|
|
44230
|
+
}) : j, $0 = H == null ? void 0 : H.id, e2 = (0, import_react.useRef)({
|
|
44231
|
+
activeId: $0,
|
|
44247
44232
|
items: g,
|
|
44248
|
-
newIndex:
|
|
44233
|
+
newIndex: Q0,
|
|
44249
44234
|
containerId: _
|
|
44250
|
-
}),
|
|
44235
|
+
}), t2 = g !== e2.current.items, n2 = r({
|
|
44251
44236
|
active: H,
|
|
44252
44237
|
containerId: _,
|
|
44253
|
-
isDragging:
|
|
44254
|
-
isSorting:
|
|
44238
|
+
isDragging: U0,
|
|
44239
|
+
isSorting: J0,
|
|
44255
44240
|
id: f,
|
|
44256
44241
|
index: j,
|
|
44257
44242
|
items: g,
|
|
44258
|
-
newIndex:
|
|
44259
|
-
previousItems:
|
|
44260
|
-
previousContainerId:
|
|
44243
|
+
newIndex: e2.current.newIndex,
|
|
44244
|
+
previousItems: e2.current.items,
|
|
44245
|
+
previousContainerId: e2.current.containerId,
|
|
44261
44246
|
transition: h,
|
|
44262
|
-
wasDragging:
|
|
44263
|
-
}),
|
|
44264
|
-
disabled: !
|
|
44247
|
+
wasDragging: e2.current.activeId != null
|
|
44248
|
+
}), r2 = useDerivedTransform({
|
|
44249
|
+
disabled: !n2,
|
|
44265
44250
|
index: j,
|
|
44266
44251
|
node: R,
|
|
44267
44252
|
rect: L
|
|
44268
44253
|
});
|
|
44269
44254
|
return (0, import_react.useEffect)(() => {
|
|
44270
|
-
|
|
44255
|
+
J0 && e2.current.newIndex !== Q0 && (e2.current.newIndex = Q0), _ !== e2.current.containerId && (e2.current.containerId = _), g !== e2.current.items && (e2.current.items = g);
|
|
44271
44256
|
}, [
|
|
44272
|
-
|
|
44273
|
-
|
|
44257
|
+
J0,
|
|
44258
|
+
Q0,
|
|
44274
44259
|
_,
|
|
44275
44260
|
g
|
|
44276
44261
|
]), (0, import_react.useEffect)(() => {
|
|
44277
|
-
if (
|
|
44278
|
-
if (
|
|
44279
|
-
|
|
44262
|
+
if ($0 === e2.current.activeId) return;
|
|
44263
|
+
if ($0 != null && e2.current.activeId == null) {
|
|
44264
|
+
e2.current.activeId = $0;
|
|
44280
44265
|
return;
|
|
44281
44266
|
}
|
|
44282
44267
|
let e3 = setTimeout(() => {
|
|
44283
|
-
|
|
44268
|
+
e2.current.activeId = $0;
|
|
44284
44269
|
}, 50);
|
|
44285
44270
|
return () => clearTimeout(e3);
|
|
44286
44271
|
}, [
|
|
44287
|
-
|
|
44272
|
+
$0
|
|
44288
44273
|
]), {
|
|
44289
44274
|
active: H,
|
|
44290
44275
|
activeIndex: v,
|
|
@@ -44292,25 +44277,25 @@ ${c}
|
|
|
44292
44277
|
data: M,
|
|
44293
44278
|
rect: L,
|
|
44294
44279
|
index: j,
|
|
44295
|
-
newIndex:
|
|
44280
|
+
newIndex: Q0,
|
|
44296
44281
|
items: g,
|
|
44297
44282
|
isOver: z,
|
|
44298
|
-
isSorting:
|
|
44299
|
-
isDragging:
|
|
44300
|
-
listeners:
|
|
44283
|
+
isSorting: J0,
|
|
44284
|
+
isDragging: U0,
|
|
44285
|
+
listeners: H0,
|
|
44301
44286
|
node: R,
|
|
44302
44287
|
overIndex: w,
|
|
44303
|
-
over:
|
|
44304
|
-
setNodeRef:
|
|
44305
|
-
setActivatorNodeRef:
|
|
44288
|
+
over: W0,
|
|
44289
|
+
setNodeRef: q0,
|
|
44290
|
+
setActivatorNodeRef: G0,
|
|
44306
44291
|
setDroppableNodeRef: B,
|
|
44307
44292
|
setDraggableNodeRef: Z,
|
|
44308
|
-
transform:
|
|
44309
|
-
transition:
|
|
44293
|
+
transform: r2 ?? Z0,
|
|
44294
|
+
transition: i2()
|
|
44310
44295
|
};
|
|
44311
|
-
function
|
|
44312
|
-
if (
|
|
44313
|
-
if (!(
|
|
44296
|
+
function i2() {
|
|
44297
|
+
if (r2 || t2 && e2.current.newIndex === j) return disabledTransition;
|
|
44298
|
+
if (!(X0 && !isKeyboardEvent(W) || !h) && (J0 || n2)) return CSS$1.Transition.toString({
|
|
44314
44299
|
...h,
|
|
44315
44300
|
property: transitionProperty
|
|
44316
44301
|
});
|
|
@@ -44588,8 +44573,8 @@ ${c}
|
|
|
44588
44573
|
}, r[18] = O, r[19] = h, r[20] = R, r[21] = E, r[22] = z) : z = r[22];
|
|
44589
44574
|
let B = z, H = T || w, W = b || S || w ? "border-blue-500" : "border-border", G = S && !w && "opacity-35", q = w && "opacity-95 shadow-lg", Z;
|
|
44590
44575
|
r[23] !== l || r[24] !== q || r[25] !== W || r[26] !== G ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden", W, G, q, l), r[23] = l, r[24] = q, r[25] = W, r[26] = G, r[27] = Z) : Z = r[27];
|
|
44591
|
-
let
|
|
44592
|
-
r[28] !== c || r[29] !== O || r[30] !== j || r[31] !== H || r[32] !== E ? (
|
|
44576
|
+
let H0;
|
|
44577
|
+
r[28] !== c || r[29] !== O || r[30] !== j || r[31] !== H || r[32] !== E ? (H0 = H && (0, import_jsx_runtime.jsx)("div", {
|
|
44593
44578
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
44594
44579
|
style: {
|
|
44595
44580
|
transform: `scale(${j})`,
|
|
@@ -44602,14 +44587,14 @@ ${c}
|
|
|
44602
44587
|
status: c.status,
|
|
44603
44588
|
output: c.output
|
|
44604
44589
|
})
|
|
44605
|
-
}), r[28] = c, r[29] = O, r[30] = j, r[31] = H, r[32] = E, r[33] =
|
|
44606
|
-
let
|
|
44607
|
-
r[34] === L ?
|
|
44590
|
+
}), r[28] = c, r[29] = O, r[30] = j, r[31] = H, r[32] = E, r[33] = H0) : H0 = r[33];
|
|
44591
|
+
let U0;
|
|
44592
|
+
r[34] === L ? U0 = r[35] : (U0 = L && (0, import_jsx_runtime.jsx)("div", {
|
|
44608
44593
|
className: "absolute inset-0 bg-muted/60 pointer-events-none",
|
|
44609
44594
|
"aria-hidden": true
|
|
44610
|
-
}), r[34] = L, r[35] =
|
|
44611
|
-
let
|
|
44612
|
-
r[36] !== L || r[37] !== I ? (
|
|
44595
|
+
}), r[34] = L, r[35] = U0);
|
|
44596
|
+
let W0;
|
|
44597
|
+
r[36] !== L || r[37] !== I ? (W0 = I && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
44613
44598
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
44614
44599
|
className: "text-xs opacity-80",
|
|
44615
44600
|
children: I.description
|
|
@@ -44621,19 +44606,19 @@ ${c}
|
|
|
44621
44606
|
className: "h-3.5 w-3.5"
|
|
44622
44607
|
})
|
|
44623
44608
|
})
|
|
44624
|
-
}), r[36] = L, r[37] = I, r[38] =
|
|
44625
|
-
let
|
|
44626
|
-
return r[39] !== B || r[40] !== d || r[41] !== f || r[42] !== Z || r[43] !==
|
|
44609
|
+
}), r[36] = L, r[37] = I, r[38] = W0) : W0 = r[38];
|
|
44610
|
+
let G0;
|
|
44611
|
+
return r[39] !== B || r[40] !== d || r[41] !== f || r[42] !== Z || r[43] !== H0 || r[44] !== U0 || r[45] !== W0 ? (G0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
44627
44612
|
ref: f,
|
|
44628
44613
|
className: Z,
|
|
44629
44614
|
style: B,
|
|
44630
44615
|
...d,
|
|
44631
44616
|
children: [
|
|
44617
|
+
H0,
|
|
44632
44618
|
U0,
|
|
44633
|
-
W0
|
|
44634
|
-
G0
|
|
44619
|
+
W0
|
|
44635
44620
|
]
|
|
44636
|
-
}), r[39] = B, r[40] = d, r[41] = f, r[42] = Z, r[43] =
|
|
44621
|
+
}), r[39] = B, r[40] = d, r[41] = f, r[42] = Z, r[43] = H0, r[44] = U0, r[45] = W0, r[46] = G0) : G0 = r[46], G0;
|
|
44637
44622
|
};
|
|
44638
44623
|
function projectDropTarget(e) {
|
|
44639
44624
|
let { active: r, over: c } = e;
|
|
@@ -44664,7 +44649,7 @@ ${c}
|
|
|
44664
44649
|
if (l && l !== "slide") return l;
|
|
44665
44650
|
if (c == null ? void 0 : c.has(e)) return "skip";
|
|
44666
44651
|
}
|
|
44667
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
44652
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CEDMcYw2.js"));
|
|
44668
44653
|
const SlidesLayoutPlugin = {
|
|
44669
44654
|
type: "slides",
|
|
44670
44655
|
name: "Slides",
|
|
@@ -44709,41 +44694,41 @@ ${c}
|
|
|
44709
44694
|
}),
|
|
44710
44695
|
Component: ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
44711
44696
|
var _a3;
|
|
44712
|
-
let u = l === "read", d = useAtomValue(numColumnsAtom) > 1, [f, p] = (0, import_react.useState)(null),
|
|
44697
|
+
let u = l === "read", d = useAtomValue(numColumnsAtom) > 1, [f, p] = (0, import_react.useState)(null), { cellsWithOutput: m, skippedIds: h, slideTypes: g, startCellIndex: _ } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
44713
44698
|
c,
|
|
44714
44699
|
e
|
|
44715
|
-
]),
|
|
44716
|
-
let r2 =
|
|
44700
|
+
]), v = f ? m.findIndex((e2) => e2.id === f) : _, y = v === -1 ? _ : v, b = useEvent_default((e2) => {
|
|
44701
|
+
let r2 = m[e2];
|
|
44717
44702
|
r2 && p(r2.id);
|
|
44718
|
-
}),
|
|
44719
|
-
cellsWithOutput:
|
|
44703
|
+
}), S = (0, import_jsx_runtime.jsx)(LazySlidesComponent, {
|
|
44704
|
+
cellsWithOutput: m,
|
|
44720
44705
|
layout: e,
|
|
44721
44706
|
setLayout: r,
|
|
44722
|
-
activeIndex:
|
|
44723
|
-
onSlideChange:
|
|
44724
|
-
|
|
44725
|
-
|
|
44726
|
-
|
|
44707
|
+
activeIndex: y,
|
|
44708
|
+
onSlideChange: b,
|
|
44709
|
+
configWidth: 300,
|
|
44710
|
+
mode: l,
|
|
44711
|
+
isEditable: l !== "read"
|
|
44727
44712
|
});
|
|
44728
44713
|
return u ? (0, import_jsx_runtime.jsx)("div", {
|
|
44729
44714
|
className: "p-4 flex flex-1 items-center justify-center min-h-0",
|
|
44730
44715
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
44731
44716
|
className: "h-full max-h-[95vh] aspect-video max-w-full flex",
|
|
44732
|
-
children:
|
|
44717
|
+
children: S
|
|
44733
44718
|
})
|
|
44734
44719
|
}) : (0, import_jsx_runtime.jsxs)("div", {
|
|
44735
44720
|
className: "pr-18 pb-2 flex flex-row gap-2 min-h-0",
|
|
44736
44721
|
children: [
|
|
44737
44722
|
(0, import_jsx_runtime.jsx)(SlidesMinimap, {
|
|
44738
|
-
cells:
|
|
44723
|
+
cells: m,
|
|
44739
44724
|
thumbnailWidth: 220,
|
|
44740
44725
|
canReorder: !d,
|
|
44741
|
-
activeCellId: f ?? ((_a3 =
|
|
44742
|
-
skippedIds:
|
|
44743
|
-
slideTypes:
|
|
44744
|
-
onSlideClick:
|
|
44726
|
+
activeCellId: f ?? ((_a3 = m[_]) == null ? void 0 : _a3.id) ?? null,
|
|
44727
|
+
skippedIds: h,
|
|
44728
|
+
slideTypes: g,
|
|
44729
|
+
onSlideClick: b
|
|
44745
44730
|
}),
|
|
44746
|
-
|
|
44731
|
+
S
|
|
44747
44732
|
]
|
|
44748
44733
|
});
|
|
44749
44734
|
},
|
|
@@ -45033,7 +45018,7 @@ ${c}
|
|
|
45033
45018
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
45034
45019
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
45035
45020
|
}, r[2] = z) : z = r[2], (0, import_react.useLayoutEffect)(z), !I && isInternalCellName(b)) return null;
|
|
45036
|
-
let B, H, W, G, q, Z, U0, W0, G0
|
|
45021
|
+
let B, H, W, G, q, Z, H0, U0, W0, G0;
|
|
45037
45022
|
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) {
|
|
45038
45023
|
let e2 = M.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), b2;
|
|
45039
45024
|
r[29] === M ? b2 = r[30] : (b2 = () => M.filter(_temp3$1).map(_temp4$1).join("\n"), r[29] = M, r[30] = b2);
|
|
@@ -45079,11 +45064,11 @@ ${c}
|
|
|
45079
45064
|
})
|
|
45080
45065
|
})
|
|
45081
45066
|
]
|
|
45082
|
-
}), 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, Z = L,
|
|
45083
|
-
let
|
|
45084
|
-
r[39] !== j || r[40] !==
|
|
45067
|
+
}), 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, Z = L, H0 = 0;
|
|
45068
|
+
let K02 = y && "marimo-output-stale", q02 = I ? "p-5" : "p-3";
|
|
45069
|
+
r[39] !== j || r[40] !== K02 || r[41] !== q02 ? (U0 = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", K02, q02, j), r[39] = j, r[40] = K02, r[41] = q02, r[42] = U0) : U0 = r[42], r[43] === d ? W0 = r[44] : (W0 = d ? {
|
|
45085
45070
|
maxHeight: "none"
|
|
45086
|
-
} : void 0, r[43] = d, r[44] =
|
|
45071
|
+
} : void 0, r[43] = d, r[44] = W0), G0 = e2.map((e3, r2) => {
|
|
45087
45072
|
if (e3.channel === "pdb") return null;
|
|
45088
45073
|
if (e3.channel === "stdin") {
|
|
45089
45074
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -45111,36 +45096,36 @@ ${c}
|
|
|
45111
45096
|
wrapText: l
|
|
45112
45097
|
})
|
|
45113
45098
|
}, r2);
|
|
45114
|
-
}), 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] = Z, r[25] =
|
|
45115
|
-
} else B = r[19], H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24],
|
|
45116
|
-
let
|
|
45117
|
-
r[45] !== S || r[46] !== b ? (
|
|
45099
|
+
}), 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] = Z, r[25] = H0, r[26] = U0, r[27] = W0, r[28] = G0;
|
|
45100
|
+
} else B = r[19], H = r[20], W = r[21], G = r[22], q = r[23], Z = r[24], H0 = r[25], U0 = r[26], W0 = r[27], G0 = r[28];
|
|
45101
|
+
let K0;
|
|
45102
|
+
r[45] !== S || r[46] !== b ? (K0 = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
45118
45103
|
value: b,
|
|
45119
45104
|
cellId: S,
|
|
45120
45105
|
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"
|
|
45121
|
-
}), r[45] = S, r[46] = b, r[47] =
|
|
45122
|
-
let
|
|
45123
|
-
r[48] !==
|
|
45106
|
+
}), r[45] = S, r[46] = b, r[47] = K0) : K0 = r[47];
|
|
45107
|
+
let q0;
|
|
45108
|
+
r[48] !== K0 || r[49] !== W || r[50] !== G || r[51] !== q || r[52] !== Z || r[53] !== H0 || r[54] !== U0 || r[55] !== W0 || r[56] !== G0 ? (q0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45124
45109
|
title: W,
|
|
45125
45110
|
"data-testid": G,
|
|
45126
45111
|
ref: q,
|
|
45127
45112
|
...Z,
|
|
45128
|
-
tabIndex:
|
|
45129
|
-
className:
|
|
45130
|
-
style:
|
|
45113
|
+
tabIndex: H0,
|
|
45114
|
+
className: U0,
|
|
45115
|
+
style: W0,
|
|
45131
45116
|
children: [
|
|
45132
|
-
|
|
45133
|
-
|
|
45117
|
+
G0,
|
|
45118
|
+
K0
|
|
45134
45119
|
]
|
|
45135
|
-
}), r[48] =
|
|
45136
|
-
let
|
|
45137
|
-
return r[58] !== B || r[59] !== H || r[60] !==
|
|
45120
|
+
}), r[48] = K0, r[49] = W, r[50] = G, r[51] = q, r[52] = Z, r[53] = H0, r[54] = U0, r[55] = W0, r[56] = G0, r[57] = q0) : q0 = r[57];
|
|
45121
|
+
let J0;
|
|
45122
|
+
return r[58] !== B || r[59] !== H || r[60] !== q0 ? (J0 = (0, import_jsx_runtime.jsxs)("div", {
|
|
45138
45123
|
className: B,
|
|
45139
45124
|
children: [
|
|
45140
45125
|
H,
|
|
45141
|
-
|
|
45126
|
+
q0
|
|
45142
45127
|
]
|
|
45143
|
-
}), r[58] = B, r[59] = H, r[60] =
|
|
45128
|
+
}), r[58] = B, r[59] = H, r[60] = q0, r[61] = J0) : J0 = r[61], J0;
|
|
45144
45129
|
}, StdInput = (e) => {
|
|
45145
45130
|
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;
|
|
45146
45131
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -45225,15 +45210,6 @@ ${c}
|
|
|
45225
45210
|
isInstantiated: false,
|
|
45226
45211
|
error: null
|
|
45227
45212
|
});
|
|
45228
|
-
function getVersionFromMountConfig() {
|
|
45229
|
-
try {
|
|
45230
|
-
return window.__MARIMO_MOUNT_CONFIG__.version;
|
|
45231
|
-
} catch {
|
|
45232
|
-
return Logger.warn("Failed to get version from mount config"), null;
|
|
45233
|
-
}
|
|
45234
|
-
}
|
|
45235
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.5-dev1"), showCodeInRunModeAtom = atom(true);
|
|
45236
|
-
atom(null);
|
|
45237
45213
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
45238
45214
|
constructor() {
|
|
45239
45215
|
__publicField(this, "virtualFiles", /* @__PURE__ */ new Map());
|
|
@@ -45327,7 +45303,7 @@ ${c}
|
|
|
45327
45303
|
}), r[12] = m, r[13] = S, r[14] = w) : w = r[14], w;
|
|
45328
45304
|
};
|
|
45329
45305
|
var import_compiler_runtime$3 = require_compiler_runtime(), VerticalLayoutRenderer = (e) => {
|
|
45330
|
-
let r = (0, import_compiler_runtime$3.c)(
|
|
45306
|
+
let r = (0, import_compiler_runtime$3.c)(33), { cells: c, appConfig: l, mode: u } = e, { invisible: d } = useDelayVisibility(c.length, u), f = useAtomValue(kioskModeAtom), m = useAtomValue(kernelStateAtom), [h] = useResolvedMarimoConfig(), g = useAtomValue(showCodeInRunModeAtom), _;
|
|
45331
45307
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = new URLSearchParams(window.location.search), r[0] = _) : _ = r[0];
|
|
45332
45308
|
let v = _, y;
|
|
45333
45309
|
r[1] !== f || r[2] !== g ? (y = () => {
|
|
@@ -45335,15 +45311,8 @@ ${c}
|
|
|
45335
45311
|
let e2 = v.get(KnownQueryParams.showCode);
|
|
45336
45312
|
return e2 === null ? isStaticNotebook() || isWasm() || f : e2 === "true";
|
|
45337
45313
|
}, r[1] = f, r[2] = g, r[3] = y) : y = r[3];
|
|
45338
|
-
let [b, S] = (0, import_react.useState)(y), w;
|
|
45339
|
-
r[4] !==
|
|
45340
|
-
let e2 = c.some(_temp$1);
|
|
45341
|
-
if (f) return true;
|
|
45342
|
-
let r2 = v.get(KnownQueryParams.includeCode);
|
|
45343
|
-
return u === "read" && r2 !== "false" && e2;
|
|
45344
|
-
})(), r[4] = c, r[5] = f, r[6] = u, r[7] = w) : w = r[7];
|
|
45345
|
-
let T = w, E;
|
|
45346
|
-
r[8] !== T || r[9] !== f || r[10] !== u || r[11] !== b || r[12] !== h ? (E = (e2) => (0, import_jsx_runtime.jsx)(VerticalCell, {
|
|
45314
|
+
let [b, S] = (0, import_react.useState)(y), w = useNotebookCodeAvailable(c), T;
|
|
45315
|
+
r[4] !== w || r[5] !== f || r[6] !== u || r[7] !== b || r[8] !== h ? (T = (e2) => (0, import_jsx_runtime.jsx)(VerticalCell, {
|
|
45347
45316
|
cellId: e2.id,
|
|
45348
45317
|
output: e2.output,
|
|
45349
45318
|
consoleOutputs: e2.consoleOutputs,
|
|
@@ -45352,7 +45321,7 @@ ${c}
|
|
|
45352
45321
|
config: e2.config,
|
|
45353
45322
|
cellOutputArea: h.display.cell_output,
|
|
45354
45323
|
stopped: e2.stopped,
|
|
45355
|
-
showCode: b &&
|
|
45324
|
+
showCode: b && w,
|
|
45356
45325
|
errored: e2.errored,
|
|
45357
45326
|
mode: u,
|
|
45358
45327
|
runStartTimestamp: e2.runStartTimestamp,
|
|
@@ -45361,15 +45330,15 @@ ${c}
|
|
|
45361
45330
|
name: e2.name,
|
|
45362
45331
|
kiosk: f,
|
|
45363
45332
|
showErrorTracebacks: h.runtime.show_tracebacks ?? false
|
|
45364
|
-
}, e2.id), r[
|
|
45365
|
-
let
|
|
45366
|
-
r[
|
|
45333
|
+
}, e2.id), r[4] = w, r[5] = f, r[6] = u, r[7] = b, r[8] = h, r[9] = T) : T = r[9];
|
|
45334
|
+
let E = T, O;
|
|
45335
|
+
r[10] !== l.width || r[11] !== c || r[12] !== d || r[13] !== m || r[14] !== E ? (O = () => l.width === "columns" ? (0, import_jsx_runtime.jsx)("div", {
|
|
45367
45336
|
className: "flex flex-row gap-8 w-full",
|
|
45368
45337
|
children: groupCellsByColumn(c).map((e2) => {
|
|
45369
45338
|
let [r2, c2] = e2;
|
|
45370
45339
|
return (0, import_jsx_runtime.jsx)("div", {
|
|
45371
45340
|
className: "flex-1 flex flex-col gap-2 w-(--content-width)",
|
|
45372
|
-
children: c2.map(
|
|
45341
|
+
children: c2.map(E)
|
|
45373
45342
|
}, r2);
|
|
45374
45343
|
})
|
|
45375
45344
|
}) : c.length === 0 && !d ? m.isInstantiated ? (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -45391,37 +45360,37 @@ ${c}
|
|
|
45391
45360
|
className: "w-8 h-8 animate-spin text-muted-foreground"
|
|
45392
45361
|
})
|
|
45393
45362
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
45394
|
-
children: c.map(
|
|
45395
|
-
}), r[
|
|
45396
|
-
let
|
|
45397
|
-
r[
|
|
45363
|
+
children: c.map(E)
|
|
45364
|
+
}), r[10] = l.width, r[11] = c, r[12] = d, r[13] = m, r[14] = E, r[15] = O) : O = r[15];
|
|
45365
|
+
let j = O, M = b && w && "gap-5", I;
|
|
45366
|
+
r[16] === M ? I = r[17] : (I = cn("flex flex-col", M), r[16] = M, r[17] = I);
|
|
45367
|
+
let L;
|
|
45368
|
+
r[18] === j ? L = r[19] : (L = j(), r[18] = j, r[19] = L);
|
|
45398
45369
|
let R;
|
|
45399
|
-
r[
|
|
45370
|
+
r[20] !== I || r[21] !== L ? (R = (0, import_jsx_runtime.jsx)("div", {
|
|
45371
|
+
className: I,
|
|
45372
|
+
children: L
|
|
45373
|
+
}), r[20] = I, r[21] = L, r[22] = R) : R = r[22];
|
|
45400
45374
|
let z;
|
|
45401
|
-
r[24] !==
|
|
45402
|
-
|
|
45403
|
-
children: R
|
|
45404
|
-
}), r[24] = L, r[25] = R, r[26] = z) : z = r[26];
|
|
45405
|
-
let B;
|
|
45406
|
-
r[27] !== T || r[28] !== u || r[29] !== b ? (B = u === "read" && (0, import_jsx_runtime.jsx)(ActionButtons, {
|
|
45407
|
-
canShowCode: T,
|
|
45375
|
+
r[23] !== w || r[24] !== u || r[25] !== b ? (z = u === "read" && (0, import_jsx_runtime.jsx)(ActionButtons, {
|
|
45376
|
+
canShowCode: w,
|
|
45408
45377
|
showCode: b,
|
|
45409
|
-
onToggleShowCode: () => S(
|
|
45410
|
-
}), r[
|
|
45378
|
+
onToggleShowCode: () => S(_temp$1)
|
|
45379
|
+
}), r[23] = w, r[24] = u, r[25] = b, r[26] = z) : z = r[26];
|
|
45380
|
+
let B;
|
|
45381
|
+
r[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = (0, import_jsx_runtime.jsx)(FloatingOutline, {}), r[27] = B) : B = r[27];
|
|
45411
45382
|
let H;
|
|
45412
|
-
r[
|
|
45413
|
-
let W;
|
|
45414
|
-
return r[32] !== l || r[33] !== d || r[34] !== B || r[35] !== z ? (W = (0, import_jsx_runtime.jsxs)(VerticalLayoutWrapper, {
|
|
45383
|
+
return r[28] !== l || r[29] !== d || r[30] !== R || r[31] !== z ? (H = (0, import_jsx_runtime.jsxs)(VerticalLayoutWrapper, {
|
|
45415
45384
|
invisible: d,
|
|
45416
45385
|
appConfig: l,
|
|
45417
45386
|
children: [
|
|
45387
|
+
R,
|
|
45418
45388
|
z,
|
|
45419
|
-
B
|
|
45420
|
-
H
|
|
45389
|
+
B
|
|
45421
45390
|
]
|
|
45422
|
-
}), r[
|
|
45391
|
+
}), r[28] = l, r[29] = d, r[30] = R, r[31] = z, r[32] = H) : H = r[32], H;
|
|
45423
45392
|
}, ActionButtons = (e) => {
|
|
45424
|
-
let r = (0, import_compiler_runtime$3.c)(26), { canShowCode: c, showCode: l, onToggleShowCode: u } = e, { readCode: d } = useRequestClient(), f =
|
|
45393
|
+
let r = (0, import_compiler_runtime$3.c)(26), { canShowCode: c, showCode: l, onToggleShowCode: u } = e, { readCode: d } = useRequestClient(), f = _temp2, m = _temp3, h;
|
|
45425
45394
|
r[0] === d ? h = r[1] : (h = async () => {
|
|
45426
45395
|
let e2 = await d();
|
|
45427
45396
|
downloadBlob(new Blob([
|
|
@@ -45588,7 +45557,7 @@ ${c}
|
|
|
45588
45557
|
consoleOutputs: l,
|
|
45589
45558
|
stale: I,
|
|
45590
45559
|
cellName: T,
|
|
45591
|
-
onSubmitDebugger:
|
|
45560
|
+
onSubmitDebugger: _temp4,
|
|
45592
45561
|
cellId: d,
|
|
45593
45562
|
debuggerActive: false
|
|
45594
45563
|
}), r[30] = d, r[31] = l, r[32] = T, r[33] = I, r[34] = S2) : S2 = r[34];
|
|
@@ -45606,27 +45575,27 @@ ${c}
|
|
|
45606
45575
|
]
|
|
45607
45576
|
}), 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;
|
|
45608
45577
|
}
|
|
45609
|
-
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(
|
|
45578
|
+
let W = isErrorMime(c == null ? void 0 : c.mimetype), G = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
45610
45579
|
if ((h || _ || m || W) && !G) return null;
|
|
45611
45580
|
let q;
|
|
45612
45581
|
r[42] !== d || r[43] !== T ? (q = cellDomProps(d, T), r[42] = d, r[43] = T, r[44] = q) : q = r[44];
|
|
45613
|
-
let Z = w === "edit",
|
|
45614
|
-
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !== Z ? (
|
|
45582
|
+
let Z = w === "edit", H0;
|
|
45583
|
+
r[45] !== d || r[46] !== R || r[47] !== c || r[48] !== I || r[49] !== Z ? (H0 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
45615
45584
|
allowExpand: Z,
|
|
45616
45585
|
output: c,
|
|
45617
45586
|
className: CSSClasses.outputArea,
|
|
45618
45587
|
cellId: d,
|
|
45619
45588
|
stale: I,
|
|
45620
45589
|
loading: R
|
|
45621
|
-
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] = Z, r[50] =
|
|
45622
|
-
let
|
|
45623
|
-
return r[51] !== H || r[52] !== q || r[53] !==
|
|
45590
|
+
}), r[45] = d, r[46] = R, r[47] = c, r[48] = I, r[49] = Z, r[50] = H0) : H0 = r[50];
|
|
45591
|
+
let U0;
|
|
45592
|
+
return r[51] !== H || r[52] !== q || r[53] !== H0 ? (U0 = (0, import_jsx_runtime.jsx)("div", {
|
|
45624
45593
|
tabIndex: -1,
|
|
45625
45594
|
ref: j,
|
|
45626
45595
|
className: H,
|
|
45627
45596
|
...q,
|
|
45628
|
-
children:
|
|
45629
|
-
}), r[51] = H, r[52] = q, r[53] =
|
|
45597
|
+
children: H0
|
|
45598
|
+
}), r[51] = H, r[52] = q, r[53] = H0, r[54] = U0) : U0 = r[54], U0;
|
|
45630
45599
|
});
|
|
45631
45600
|
VerticalCell.displayName = "VerticalCell";
|
|
45632
45601
|
const VerticalLayoutPlugin = {
|
|
@@ -45653,12 +45622,9 @@ ${c}
|
|
|
45653
45622
|
return c && l || e.trim() === "";
|
|
45654
45623
|
}
|
|
45655
45624
|
function _temp$1(e) {
|
|
45656
|
-
return !!e.code;
|
|
45657
|
-
}
|
|
45658
|
-
function _temp2(e) {
|
|
45659
45625
|
return !e;
|
|
45660
45626
|
}
|
|
45661
|
-
async function
|
|
45627
|
+
async function _temp2() {
|
|
45662
45628
|
let e = document.getElementById("App");
|
|
45663
45629
|
e && await downloadHTMLAsImage({
|
|
45664
45630
|
element: e,
|
|
@@ -45666,16 +45632,16 @@ ${c}
|
|
|
45666
45632
|
prepare: ADD_PRINTING_CLASS
|
|
45667
45633
|
});
|
|
45668
45634
|
}
|
|
45669
|
-
async function
|
|
45635
|
+
async function _temp3() {
|
|
45670
45636
|
document.getElementById("App") && await downloadAsHTML({
|
|
45671
45637
|
filename: document.title,
|
|
45672
45638
|
includeCode: true
|
|
45673
45639
|
});
|
|
45674
45640
|
}
|
|
45675
|
-
function
|
|
45641
|
+
function _temp4() {
|
|
45676
45642
|
return null;
|
|
45677
45643
|
}
|
|
45678
|
-
function
|
|
45644
|
+
function _temp5(e) {
|
|
45679
45645
|
return e.type === "exception" && "traceback" in e && e.traceback;
|
|
45680
45646
|
}
|
|
45681
45647
|
const cellRendererPlugins = [
|