@marimo-team/islands 0.23.12-dev7 → 0.23.12-dev9
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/{code-visibility-43gCeXKe.js → code-visibility-w2yZTVwB.js} +1 -1
- package/dist/main.js +1311 -1319
- package/dist/{reveal-component-BQHpjptH.js → reveal-component-CuqTvwmg.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +4 -4
- package/src/components/home/components.tsx +4 -4
- package/src/components/icons/github.tsx +21 -0
- package/src/components/icons/youtube.tsx +21 -0
- package/src/components/storage/components.tsx +3 -7
- package/src/plugins/impl/FileBrowserPlugin.tsx +165 -74
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +314 -0
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleA
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist--2Bqjvs0.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-Bv-XlYiv.js";
|
|
29
|
-
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-w2yZTVwB.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-AHlswLw-.js";
|
|
31
31
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Dq_j3Rxw.js";
|
|
@@ -4004,7 +4004,7 @@ let __tla = Promise.all([
|
|
|
4004
4004
|
});
|
|
4005
4005
|
}
|
|
4006
4006
|
}, NavMenuComponent = (e) => {
|
|
4007
|
-
let r = (0, import_compiler_runtime$87.c)(13), { items: c, orientation: l } = e, u = _temp$
|
|
4007
|
+
let r = (0, import_compiler_runtime$87.c)(13), { items: c, orientation: l } = e, u = _temp$27, d = _temp2$16, f = _temp3$12, p;
|
|
4008
4008
|
r[0] === l ? p = r[1] : (p = (e2) => "items" in e2 ? l === "horizontal" ? (0, import_jsx_runtime.jsx)(NavigationMenu, {
|
|
4009
4009
|
orientation: "horizontal",
|
|
4010
4010
|
children: (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
@@ -4120,7 +4120,7 @@ let __tla = Promise.all([
|
|
|
4120
4120
|
}), c[13] = f, c[14] = r, c[15] = m, c[16] = g, c[17] = _, c[18] = v) : v = c[18], v;
|
|
4121
4121
|
});
|
|
4122
4122
|
ListItem.displayName = "ListItem";
|
|
4123
|
-
function _temp$
|
|
4123
|
+
function _temp$27(e, r) {
|
|
4124
4124
|
return r ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
4125
4125
|
delayDuration: 200,
|
|
4126
4126
|
content: renderHTML({
|
|
@@ -4129,10 +4129,10 @@ let __tla = Promise.all([
|
|
|
4129
4129
|
children: e
|
|
4130
4130
|
}) : e;
|
|
4131
4131
|
}
|
|
4132
|
-
function _temp2$
|
|
4132
|
+
function _temp2$16(e) {
|
|
4133
4133
|
return e.startsWith("http") ? "_blank" : "_self";
|
|
4134
4134
|
}
|
|
4135
|
-
function _temp3$
|
|
4135
|
+
function _temp3$12(e) {
|
|
4136
4136
|
return appendQueryParams({
|
|
4137
4137
|
href: e,
|
|
4138
4138
|
queryParams: new URL(globalThis.location.href).search,
|
|
@@ -6993,33 +6993,33 @@ let __tla = Promise.all([
|
|
|
6993
6993
|
}), B = C({
|
|
6994
6994
|
height: 0,
|
|
6995
6995
|
width: 0
|
|
6996
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
6996
|
+
}), H = U(), W = U(), G = C(0), q = C(null), UU = C({
|
|
6997
6997
|
column: 0,
|
|
6998
6998
|
row: 0
|
|
6999
|
-
}), Z = U(),
|
|
7000
|
-
Y(x(b, $(
|
|
7001
|
-
D(
|
|
7002
|
-
}), Y(x(ut(b,
|
|
7003
|
-
D(
|
|
6999
|
+
}), Z = U(), WU = U(), GU = C(false), KU = C(0), qU = C(true), JU = C(false), YU = C(false);
|
|
7000
|
+
Y(x(b, $(KU), P(([e2, r2]) => !!r2)), () => {
|
|
7001
|
+
D(qU, false);
|
|
7002
|
+
}), Y(x(ut(b, qU, B, z, KU, JU), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7003
|
+
D(JU, true), Ue(1, () => {
|
|
7004
7004
|
D(H, e2);
|
|
7005
7005
|
}), Et(x(h), () => {
|
|
7006
7006
|
D(r, [
|
|
7007
7007
|
0,
|
|
7008
7008
|
0
|
|
7009
|
-
]), D(
|
|
7009
|
+
]), D(qU, true);
|
|
7010
7010
|
});
|
|
7011
|
-
}), F(x(
|
|
7012
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7013
|
-
D(
|
|
7011
|
+
}), F(x(WU, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(WU), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7012
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(UU, e2.gap), e2.scrollTop > 0 && (D(GU, true), Et(x(h, Kt(1)), (e3) => {
|
|
7013
|
+
D(GU, false);
|
|
7014
7014
|
}), D(m, {
|
|
7015
7015
|
top: e2.scrollTop
|
|
7016
7016
|
})));
|
|
7017
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7017
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(UU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7018
7018
|
gap: c2,
|
|
7019
7019
|
item: r2,
|
|
7020
7020
|
scrollTop: l2,
|
|
7021
7021
|
viewport: e2
|
|
7022
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7022
|
+
}))), Z), F(x(ut(V(I), l, V(UU, Or), V(B, xe), V(z, xe), V(q), V(L), V(GU), V(qU), V(KU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7023
7023
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7024
7024
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7025
7025
|
if (y2 === 0) {
|
|
@@ -7038,23 +7038,23 @@ let __tla = Promise.all([
|
|
|
7038
7038
|
offsetTop: j2,
|
|
7039
7039
|
top: j2
|
|
7040
7040
|
};
|
|
7041
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7041
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, UU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7042
7042
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7043
7043
|
return [
|
|
7044
7044
|
d2,
|
|
7045
7045
|
u2
|
|
7046
7046
|
];
|
|
7047
7047
|
}), J(ce)), r);
|
|
7048
|
-
let
|
|
7049
|
-
F(x(h, $(
|
|
7050
|
-
let
|
|
7048
|
+
let XU = C(false);
|
|
7049
|
+
F(x(h, $(XU), k(([e2, r2]) => r2 || e2 !== 0)), XU);
|
|
7050
|
+
let ZU = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(XU), P(([[e2, r2], c2]) => {
|
|
7051
7051
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7052
7052
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7053
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7053
|
+
}), k(([[, e2]]) => e2 - 1), J())), QU = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), $U = bt(x(V(R), $(GU), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7054
7054
|
endIndex: e2[e2.length - 1].index,
|
|
7055
7055
|
startIndex: e2[0].index
|
|
7056
7056
|
})), J(An), Gt(0)));
|
|
7057
|
-
F(
|
|
7057
|
+
F($U, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, UU), k(([e2, r2, c2, l2, u2]) => {
|
|
7058
7058
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7059
7059
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7060
7060
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7063,7 +7063,7 @@ let __tla = Promise.all([
|
|
|
7063
7063
|
top: g2
|
|
7064
7064
|
};
|
|
7065
7065
|
})), m);
|
|
7066
|
-
let
|
|
7066
|
+
let eW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7067
7067
|
return F(x(j, k((e2) => ({
|
|
7068
7068
|
height: e2.visibleHeight,
|
|
7069
7069
|
width: e2.visibleWidth
|
|
@@ -7072,13 +7072,13 @@ let __tla = Promise.all([
|
|
|
7072
7072
|
data: q,
|
|
7073
7073
|
deviation: G,
|
|
7074
7074
|
footerHeight: u,
|
|
7075
|
-
gap:
|
|
7075
|
+
gap: UU,
|
|
7076
7076
|
headerHeight: d,
|
|
7077
7077
|
increaseViewportBy: e,
|
|
7078
7078
|
initialItemCount: L,
|
|
7079
7079
|
itemDimensions: B,
|
|
7080
7080
|
overscan: c,
|
|
7081
|
-
restoreStateFrom:
|
|
7081
|
+
restoreStateFrom: WU,
|
|
7082
7082
|
scrollBy: f,
|
|
7083
7083
|
scrollContainerState: p,
|
|
7084
7084
|
scrollHeight: W,
|
|
@@ -7094,16 +7094,16 @@ let __tla = Promise.all([
|
|
|
7094
7094
|
windowViewportRect: j,
|
|
7095
7095
|
...y,
|
|
7096
7096
|
gridState: R,
|
|
7097
|
-
horizontalDirection:
|
|
7098
|
-
initialTopMostItemIndex:
|
|
7099
|
-
totalListHeight:
|
|
7097
|
+
horizontalDirection: YU,
|
|
7098
|
+
initialTopMostItemIndex: KU,
|
|
7099
|
+
totalListHeight: eW,
|
|
7100
7100
|
...v,
|
|
7101
|
-
endReached:
|
|
7101
|
+
endReached: ZU,
|
|
7102
7102
|
propsReady: S,
|
|
7103
|
-
rangeChanged:
|
|
7104
|
-
startReached:
|
|
7103
|
+
rangeChanged: $U,
|
|
7104
|
+
startReached: QU,
|
|
7105
7105
|
stateChanged: Z,
|
|
7106
|
-
stateRestoreInProgress:
|
|
7106
|
+
stateRestoreInProgress: GU,
|
|
7107
7107
|
...M
|
|
7108
7108
|
};
|
|
7109
7109
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7381,9 +7381,9 @@ let __tla = Promise.all([
|
|
|
7381
7381
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7382
7382
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7383
7383
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7384
|
-
let
|
|
7384
|
+
let UU = q, Z;
|
|
7385
7385
|
if (r[13] !== G.bulkActions) {
|
|
7386
|
-
if (Z = G.bulkActions.map(_temp$
|
|
7386
|
+
if (Z = G.bulkActions.map(_temp$26), Z.length > 0) {
|
|
7387
7387
|
let e2;
|
|
7388
7388
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7389
7389
|
"data-slot": "select-separator"
|
|
@@ -7391,12 +7391,12 @@ let __tla = Promise.all([
|
|
|
7391
7391
|
}
|
|
7392
7392
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7393
7393
|
} else Z = r[14];
|
|
7394
|
-
let
|
|
7395
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7394
|
+
let WU;
|
|
7395
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (WU = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7396
7396
|
"data-slot": "select-separator"
|
|
7397
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7398
|
-
let
|
|
7399
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7397
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = WU) : WU = r[18];
|
|
7398
|
+
let GU = WU, KU;
|
|
7399
|
+
r[19] !== Z || r[20] !== G || r[21] !== GU || r[22] !== w || r[23] !== B || r[24] !== H ? (KU = () => {
|
|
7400
7400
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7401
7401
|
"data-slot": "select-list",
|
|
7402
7402
|
style: {
|
|
@@ -7409,7 +7409,7 @@ let __tla = Promise.all([
|
|
|
7409
7409
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7410
7410
|
children: [
|
|
7411
7411
|
e3 === 0 && Z,
|
|
7412
|
-
|
|
7412
|
+
GU(e3),
|
|
7413
7413
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7414
7414
|
option: r2,
|
|
7415
7415
|
checked: G.isChecked(r2.value),
|
|
@@ -7420,7 +7420,7 @@ let __tla = Promise.all([
|
|
|
7420
7420
|
}
|
|
7421
7421
|
});
|
|
7422
7422
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7423
|
-
let c2 =
|
|
7423
|
+
let c2 = GU(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7424
7424
|
option: e3,
|
|
7425
7425
|
checked: G.isChecked(e3.value),
|
|
7426
7426
|
renderOption: w
|
|
@@ -7438,9 +7438,9 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
e2
|
|
7439
7439
|
]
|
|
7440
7440
|
});
|
|
7441
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7442
|
-
let
|
|
7443
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7441
|
+
}, r[19] = Z, r[20] = G, r[21] = GU, r[22] = w, r[23] = B, r[24] = H, r[25] = KU) : KU = r[25];
|
|
7442
|
+
let qU = KU, JU;
|
|
7443
|
+
r[26] !== G.labelOf || r[27] !== I ? (JU = (e2) => {
|
|
7444
7444
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7445
7445
|
e2
|
|
7446
7446
|
];
|
|
@@ -7451,48 +7451,48 @@ let __tla = Promise.all([
|
|
|
7451
7451
|
items: r2.map(G.labelOf),
|
|
7452
7452
|
max: 3
|
|
7453
7453
|
});
|
|
7454
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7455
|
-
let
|
|
7456
|
-
r[29] === G ?
|
|
7457
|
-
let
|
|
7458
|
-
r[31] !== b || r[32] !== R ? (
|
|
7454
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = JU) : JU = r[28];
|
|
7455
|
+
let YU = JU, XU = e["data-testid"], ZU;
|
|
7456
|
+
r[29] === G ? ZU = r[30] : (ZU = (e2) => G.labelOf(e2), r[29] = G, r[30] = ZU);
|
|
7457
|
+
let QU = M ? YU : void 0, $U;
|
|
7458
|
+
r[31] !== b || r[32] !== R ? ($U = cn({
|
|
7459
7459
|
"w-full": R
|
|
7460
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7461
|
-
let
|
|
7462
|
-
r[34] === z ?
|
|
7463
|
-
let
|
|
7464
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7460
|
+
}, b), r[31] = b, r[32] = R, r[33] = $U) : $U = r[33];
|
|
7461
|
+
let eW = G.searchQuery, tW = G.setSearchQuery, nW = G.open, rW = G.setOpen, iW;
|
|
7462
|
+
r[34] === z ? iW = r[35] : (iW = renderSlot(z), r[34] = z, r[35] = iW);
|
|
7463
|
+
let aW;
|
|
7464
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== XU || r[44] !== ZU || r[45] !== QU || r[46] !== $U || r[47] !== iW ? (aW = {
|
|
7465
7465
|
"data-slot": "select-root",
|
|
7466
|
-
"data-testid":
|
|
7467
|
-
displayValue:
|
|
7468
|
-
renderValue:
|
|
7466
|
+
"data-testid": XU,
|
|
7467
|
+
displayValue: ZU,
|
|
7468
|
+
renderValue: QU,
|
|
7469
7469
|
placeholder: I,
|
|
7470
|
-
className:
|
|
7470
|
+
className: $U,
|
|
7471
7471
|
shouldFilter: false,
|
|
7472
|
-
search:
|
|
7473
|
-
onSearchChange:
|
|
7474
|
-
open:
|
|
7475
|
-
onOpenChange:
|
|
7476
|
-
emptyState:
|
|
7472
|
+
search: eW,
|
|
7473
|
+
onSearchChange: tW,
|
|
7474
|
+
open: nW,
|
|
7475
|
+
onOpenChange: rW,
|
|
7476
|
+
emptyState: iW,
|
|
7477
7477
|
disabled: L,
|
|
7478
7478
|
id: S
|
|
7479
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7480
|
-
let
|
|
7481
|
-
return r[49] !==
|
|
7482
|
-
...
|
|
7479
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = XU, r[44] = ZU, r[45] = QU, r[46] = $U, r[47] = iW, r[48] = aW) : aW = r[48];
|
|
7480
|
+
let oW = aW, sW;
|
|
7481
|
+
return r[49] !== oW || r[50] !== UU || r[51] !== d || r[52] !== qU || r[53] !== l ? (sW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7482
|
+
...oW,
|
|
7483
7483
|
multiple: true,
|
|
7484
7484
|
value: l,
|
|
7485
|
-
onValueChange:
|
|
7486
|
-
children:
|
|
7485
|
+
onValueChange: UU,
|
|
7486
|
+
children: qU()
|
|
7487
7487
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7488
|
-
...
|
|
7488
|
+
...oW,
|
|
7489
7489
|
multiple: false,
|
|
7490
7490
|
value: l,
|
|
7491
|
-
onValueChange:
|
|
7492
|
-
children:
|
|
7493
|
-
}), r[49] =
|
|
7491
|
+
onValueChange: UU,
|
|
7492
|
+
children: qU()
|
|
7493
|
+
}), r[49] = oW, r[50] = UU, r[51] = d, r[52] = qU, r[53] = l, r[54] = sW) : sW = r[54], sW;
|
|
7494
7494
|
}
|
|
7495
|
-
function _temp$
|
|
7495
|
+
function _temp$26(e) {
|
|
7496
7496
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
7497
7497
|
return (0, import_jsx_runtime.jsx)(CommandItem, {
|
|
7498
7498
|
"data-slot": "select-bulk",
|
|
@@ -7514,7 +7514,7 @@ let __tla = Promise.all([
|
|
|
7514
7514
|
children: "Bad Data"
|
|
7515
7515
|
}), r[0] = e2) : e2 = r[0];
|
|
7516
7516
|
let d2;
|
|
7517
|
-
r[1] === c.issues ? d2 = r[2] : (d2 = c.issues.map(_temp$
|
|
7517
|
+
r[1] === c.issues ? d2 = r[2] : (d2 = c.issues.map(_temp$25), r[1] = c.issues, r[2] = d2);
|
|
7518
7518
|
let f;
|
|
7519
7519
|
r[3] === d2 ? f = r[4] : (f = (0, import_jsx_runtime.jsx)("div", {
|
|
7520
7520
|
className: "text-md prose dark:prose-invert",
|
|
@@ -7572,7 +7572,7 @@ let __tla = Promise.all([
|
|
|
7572
7572
|
shadowRoot: c
|
|
7573
7573
|
});
|
|
7574
7574
|
}
|
|
7575
|
-
function _temp$
|
|
7575
|
+
function _temp$25(e) {
|
|
7576
7576
|
let r = e.path.join(".");
|
|
7577
7577
|
return (0, import_jsx_runtime.jsxs)("li", {
|
|
7578
7578
|
children: [
|
|
@@ -8120,7 +8120,7 @@ let __tla = Promise.all([
|
|
|
8120
8120
|
let u, d;
|
|
8121
8121
|
if (r[1] !== l || r[2] !== c) {
|
|
8122
8122
|
let e2 = c.split("-");
|
|
8123
|
-
r[5] === l ? u = r[6] : (u = cn("flex gap-1", l), r[5] = l, r[6] = u), d = e2.map(prettyPrintHotkey).map(_temp$
|
|
8123
|
+
r[5] === l ? u = r[6] : (u = cn("flex gap-1", l), r[5] = l, r[6] = u), d = e2.map(prettyPrintHotkey).map(_temp$24), r[1] = l, r[2] = c, r[3] = u, r[4] = d;
|
|
8124
8124
|
} else u = r[3], d = r[4];
|
|
8125
8125
|
let f;
|
|
8126
8126
|
return r[7] !== u || r[8] !== d ? (f = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -8136,7 +8136,7 @@ let __tla = Promise.all([
|
|
|
8136
8136
|
let u, d, f;
|
|
8137
8137
|
if (r[1] !== l || r[2] !== c) {
|
|
8138
8138
|
let e2 = c.split("-");
|
|
8139
|
-
u = DropdownMenuShortcut, r[6] === l ? d = r[7] : (d = cn("flex gap-1 items-center", l), r[6] = l, r[7] = d), f = e2.map(prettyPrintHotkey).map(_temp2$
|
|
8139
|
+
u = DropdownMenuShortcut, r[6] === l ? d = r[7] : (d = cn("flex gap-1 items-center", l), r[6] = l, r[7] = d), f = e2.map(prettyPrintHotkey).map(_temp2$15), r[1] = l, r[2] = c, r[3] = u, r[4] = d, r[5] = f;
|
|
8140
8140
|
} else u = r[3], d = r[4], f = r[5];
|
|
8141
8141
|
let m;
|
|
8142
8142
|
return r[8] !== u || r[9] !== d || r[10] !== f ? (m = (0, import_jsx_runtime.jsx)(u, {
|
|
@@ -8290,7 +8290,7 @@ let __tla = Promise.all([
|
|
|
8290
8290
|
function capitalize$1(e) {
|
|
8291
8291
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
8292
8292
|
}
|
|
8293
|
-
function _temp$
|
|
8293
|
+
function _temp$24(e) {
|
|
8294
8294
|
let [r, c] = e;
|
|
8295
8295
|
return c ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
8296
8296
|
asChild: false,
|
|
@@ -8304,7 +8304,7 @@ let __tla = Promise.all([
|
|
|
8304
8304
|
children: capitalize$1(r)
|
|
8305
8305
|
}, r);
|
|
8306
8306
|
}
|
|
8307
|
-
function _temp2$
|
|
8307
|
+
function _temp2$15(e) {
|
|
8308
8308
|
let [r, c] = e;
|
|
8309
8309
|
return c ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
8310
8310
|
content: r,
|
|
@@ -8637,7 +8637,7 @@ let __tla = Promise.all([
|
|
|
8637
8637
|
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (0, import_jsx_runtime.jsx)(TableHeader, {
|
|
8638
8638
|
children: Array.from({
|
|
8639
8639
|
length: 1
|
|
8640
|
-
}).map(_temp2$
|
|
8640
|
+
}).map(_temp2$14)
|
|
8641
8641
|
}), r[4] = g) : g = r[4];
|
|
8642
8642
|
let _;
|
|
8643
8643
|
r[5] === d ? _ = r[6] : (_ = (0, import_jsx_runtime.jsxs)(Table, {
|
|
@@ -8669,21 +8669,21 @@ let __tla = Promise.all([
|
|
|
8669
8669
|
]
|
|
8670
8670
|
}), r[11] = f, r[12] = v, r[13] = b) : b = r[13], b;
|
|
8671
8671
|
};
|
|
8672
|
-
function _temp$
|
|
8672
|
+
function _temp$23(e, r) {
|
|
8673
8673
|
return (0, import_jsx_runtime.jsx)(TableHead, {
|
|
8674
8674
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
8675
8675
|
className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[70%]"
|
|
8676
8676
|
})
|
|
8677
8677
|
}, r);
|
|
8678
8678
|
}
|
|
8679
|
-
function _temp2$
|
|
8679
|
+
function _temp2$14(e, r) {
|
|
8680
8680
|
return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
8681
8681
|
children: Array.from({
|
|
8682
8682
|
length: 8
|
|
8683
|
-
}).map(_temp$
|
|
8683
|
+
}).map(_temp$23)
|
|
8684
8684
|
}, r);
|
|
8685
8685
|
}
|
|
8686
|
-
function _temp3$
|
|
8686
|
+
function _temp3$11(e, r) {
|
|
8687
8687
|
return (0, import_jsx_runtime.jsx)(TableCell, {
|
|
8688
8688
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
8689
8689
|
className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[90%]"
|
|
@@ -8694,7 +8694,7 @@ let __tla = Promise.all([
|
|
|
8694
8694
|
return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
8695
8695
|
children: Array.from({
|
|
8696
8696
|
length: 8
|
|
8697
|
-
}).map(_temp3$
|
|
8697
|
+
}).map(_temp3$11)
|
|
8698
8698
|
}, r);
|
|
8699
8699
|
}
|
|
8700
8700
|
const DATA_TYPES = [
|
|
@@ -8828,7 +8828,7 @@ let __tla = Promise.all([
|
|
|
8828
8828
|
let y, b, S, w;
|
|
8829
8829
|
r[15] === e ? (y = r[16], b = r[17], S = r[18], w = r[19]) : (y = (r2) => {
|
|
8830
8830
|
e.onEdits((e2) => {
|
|
8831
|
-
let c2 = r2.map(_temp$
|
|
8831
|
+
let c2 = r2.map(_temp$22);
|
|
8832
8832
|
return {
|
|
8833
8833
|
...e2,
|
|
8834
8834
|
edits: [
|
|
@@ -8889,7 +8889,7 @@ let __tla = Promise.all([
|
|
|
8889
8889
|
onAddColumn: w
|
|
8890
8890
|
}), r[20] = f, r[21] = l, r[22] = e.editableColumns, r[23] = e.edits.edits, r[24] = _, r[25] = v, r[26] = y, r[27] = b, r[28] = S, r[29] = w, r[30] = T) : T = r[30], T;
|
|
8891
8891
|
};
|
|
8892
|
-
function _temp$
|
|
8892
|
+
function _temp$22(e, r) {
|
|
8893
8893
|
return {
|
|
8894
8894
|
rowIdx: e - r,
|
|
8895
8895
|
type: BulkEdit.Remove
|
|
@@ -9673,7 +9673,7 @@ let __tla = Promise.all([
|
|
|
9673
9673
|
let m2 = get(l, e2);
|
|
9674
9674
|
if (m2) {
|
|
9675
9675
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9676
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9676
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : UU(e2, l2), f.mount && w();
|
|
9677
9677
|
}
|
|
9678
9678
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9679
9679
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9746,14 +9746,14 @@ let __tla = Promise.all([
|
|
|
9746
9746
|
}, H = () => {
|
|
9747
9747
|
for (let e2 of p.unMount) {
|
|
9748
9748
|
let r2 = get(l, e2);
|
|
9749
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9749
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && $U(e2);
|
|
9750
9750
|
}
|
|
9751
9751
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9752
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9752
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(JU(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9753
9753
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9754
9754
|
[e2]: r2
|
|
9755
9755
|
} : r2
|
|
9756
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9756
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), UU = (e2, r2, c2 = {}) => {
|
|
9757
9757
|
let u2 = get(l, e2), f2 = r2;
|
|
9758
9758
|
if (u2) {
|
|
9759
9759
|
let c3 = u2._f;
|
|
@@ -9766,13 +9766,13 @@ let __tla = Promise.all([
|
|
|
9766
9766
|
}
|
|
9767
9767
|
})));
|
|
9768
9768
|
}
|
|
9769
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9769
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && qU(e2);
|
|
9770
9770
|
}, Z = (e2, r2, c2) => {
|
|
9771
9771
|
for (let u2 in r2) {
|
|
9772
9772
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9773
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
9773
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : UU(f2, d2, c2);
|
|
9774
9774
|
}
|
|
9775
|
-
},
|
|
9775
|
+
}, WU = (e2, r2, m2 = {}) => {
|
|
9776
9776
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9777
9777
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9778
9778
|
name: e2,
|
|
@@ -9783,7 +9783,7 @@ let __tla = Promise.all([
|
|
|
9783
9783
|
name: e2,
|
|
9784
9784
|
dirtyFields: getDirtyFields(u, d),
|
|
9785
9785
|
isDirty: W(e2, y2)
|
|
9786
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
9786
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : UU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9787
9787
|
...c
|
|
9788
9788
|
}), _.values.next({
|
|
9789
9789
|
name: f.mount ? e2 : void 0,
|
|
@@ -9791,7 +9791,7 @@ let __tla = Promise.all([
|
|
|
9791
9791
|
...d
|
|
9792
9792
|
}
|
|
9793
9793
|
});
|
|
9794
|
-
},
|
|
9794
|
+
}, GU = async (e2) => {
|
|
9795
9795
|
f.mount = true;
|
|
9796
9796
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9797
9797
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9825,11 +9825,11 @@ let __tla = Promise.all([
|
|
|
9825
9825
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9826
9826
|
h2
|
|
9827
9827
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9828
|
-
S2 && (E2._f.deps &&
|
|
9828
|
+
S2 && (E2._f.deps && qU(E2._f.deps), L(h2, f2, u3, G2));
|
|
9829
9829
|
}
|
|
9830
|
-
},
|
|
9830
|
+
}, KU = (e2, r2) => {
|
|
9831
9831
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9832
|
-
},
|
|
9832
|
+
}, qU = async (e2, u2 = {}) => {
|
|
9833
9833
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9834
9834
|
if (r.resolver) {
|
|
9835
9835
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9848,23 +9848,23 @@ let __tla = Promise.all([
|
|
|
9848
9848
|
isValid: d2
|
|
9849
9849
|
} : {},
|
|
9850
9850
|
errors: c.errors
|
|
9851
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9852
|
-
},
|
|
9851
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, KU, e2 ? m2 : p.mount), f2;
|
|
9852
|
+
}, JU = (e2) => {
|
|
9853
9853
|
let r2 = {
|
|
9854
9854
|
...f.mount ? d : u
|
|
9855
9855
|
};
|
|
9856
9856
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9857
|
-
},
|
|
9857
|
+
}, YU = (e2, r2) => ({
|
|
9858
9858
|
invalid: !!get((r2 || c).errors, e2),
|
|
9859
9859
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9860
9860
|
error: get((r2 || c).errors, e2),
|
|
9861
9861
|
isValidating: !!get(c.validatingFields, e2),
|
|
9862
9862
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9863
|
-
}),
|
|
9863
|
+
}), XU = (e2) => {
|
|
9864
9864
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9865
9865
|
errors: e2 ? c.errors : {}
|
|
9866
9866
|
});
|
|
9867
|
-
},
|
|
9867
|
+
}, ZU = (e2, r2, u2) => {
|
|
9868
9868
|
let d2 = (get(l, e2, {
|
|
9869
9869
|
_f: {}
|
|
9870
9870
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9877,9 +9877,9 @@ let __tla = Promise.all([
|
|
|
9877
9877
|
errors: c.errors,
|
|
9878
9878
|
isValid: false
|
|
9879
9879
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9880
|
-
},
|
|
9880
|
+
}, QU = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9881
9881
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9882
|
-
}) : G(e2, r2, true),
|
|
9882
|
+
}) : G(e2, r2, true), $U = (e2, f2 = {}) => {
|
|
9883
9883
|
for (let m2 of e2 ? convertToArrayPayload(e2) : p.mount) p.mount.delete(m2), p.array.delete(m2), f2.keepValue || (unset(l, m2), unset(d, m2)), !f2.keepError && unset(c.errors, m2), !f2.keepDirty && unset(c.dirtyFields, m2), !f2.keepTouched && unset(c.touchedFields, m2), !f2.keepIsValidating && unset(c.validatingFields, m2), !r.shouldUnregister && !f2.keepDefaultValue && unset(u, m2);
|
|
9884
9884
|
_.values.next({
|
|
9885
9885
|
values: {
|
|
@@ -9891,9 +9891,9 @@ let __tla = Promise.all([
|
|
|
9891
9891
|
isDirty: W()
|
|
9892
9892
|
} : {}
|
|
9893
9893
|
}), !f2.keepIsValid && w();
|
|
9894
|
-
},
|
|
9894
|
+
}, eW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9895
9895
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
9896
|
-
},
|
|
9896
|
+
}, tW = (e2, c2 = {}) => {
|
|
9897
9897
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9898
9898
|
return set(l, e2, {
|
|
9899
9899
|
...d2 || {},
|
|
@@ -9907,7 +9907,7 @@ let __tla = Promise.all([
|
|
|
9907
9907
|
mount: true,
|
|
9908
9908
|
...c2
|
|
9909
9909
|
}
|
|
9910
|
-
}), p.mount.add(e2), d2 ?
|
|
9910
|
+
}), p.mount.add(e2), d2 ? eW({
|
|
9911
9911
|
field: d2,
|
|
9912
9912
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9913
9913
|
name: e2
|
|
@@ -9924,11 +9924,11 @@ let __tla = Promise.all([
|
|
|
9924
9924
|
pattern: getRuleValue(c2.pattern)
|
|
9925
9925
|
} : {},
|
|
9926
9926
|
name: e2,
|
|
9927
|
-
onChange:
|
|
9928
|
-
onBlur:
|
|
9927
|
+
onChange: GU,
|
|
9928
|
+
onBlur: GU,
|
|
9929
9929
|
ref: (m3) => {
|
|
9930
9930
|
if (m3) {
|
|
9931
|
-
|
|
9931
|
+
tW(e2, c2), d2 = get(l, e2);
|
|
9932
9932
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9933
9933
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9934
9934
|
set(l, e2, {
|
|
@@ -9954,7 +9954,7 @@ let __tla = Promise.all([
|
|
|
9954
9954
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
9955
9955
|
}
|
|
9956
9956
|
};
|
|
9957
|
-
},
|
|
9957
|
+
}, nW = () => r.shouldFocusError && iterateFieldsByAction(l, KU, p.mount), rW = (e2) => {
|
|
9958
9958
|
isBoolean(e2) && (_.state.next({
|
|
9959
9959
|
disabled: e2
|
|
9960
9960
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9963,7 +9963,7 @@ let __tla = Promise.all([
|
|
|
9963
9963
|
r3.disabled = u2._f.disabled || e2;
|
|
9964
9964
|
}));
|
|
9965
9965
|
}, 0, false));
|
|
9966
|
-
},
|
|
9966
|
+
}, iW = (e2, u2) => async (f2) => {
|
|
9967
9967
|
let m2;
|
|
9968
9968
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9969
9969
|
let h2 = cloneObject(d);
|
|
@@ -9985,7 +9985,7 @@ let __tla = Promise.all([
|
|
|
9985
9985
|
}
|
|
9986
9986
|
} else u2 && await u2({
|
|
9987
9987
|
...c.errors
|
|
9988
|
-
}, f2),
|
|
9988
|
+
}, f2), nW(), setTimeout(nW);
|
|
9989
9989
|
if (_.state.next({
|
|
9990
9990
|
isSubmitted: true,
|
|
9991
9991
|
isSubmitting: false,
|
|
@@ -9993,11 +9993,11 @@ let __tla = Promise.all([
|
|
|
9993
9993
|
submitCount: c.submitCount + 1,
|
|
9994
9994
|
errors: c.errors
|
|
9995
9995
|
}), m2) throw m2;
|
|
9996
|
-
},
|
|
9997
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
9996
|
+
}, aW = (e2, r2 = {}) => {
|
|
9997
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? WU(e2, cloneObject(get(u, e2))) : (WU(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
9998
9998
|
...c
|
|
9999
9999
|
}));
|
|
10000
|
-
},
|
|
10000
|
+
}, oW = (e2, m2 = {}) => {
|
|
10001
10001
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
10002
10002
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
10003
10003
|
if (m2.keepDirtyValues) {
|
|
@@ -10005,7 +10005,7 @@ let __tla = Promise.all([
|
|
|
10005
10005
|
...p.mount,
|
|
10006
10006
|
...Object.keys(getDirtyFields(u, d))
|
|
10007
10007
|
]);
|
|
10008
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
10008
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : WU(r2, get(b2, r2));
|
|
10009
10009
|
} else {
|
|
10010
10010
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10011
10011
|
let r2 = get(l, e3);
|
|
@@ -10050,25 +10050,25 @@ let __tla = Promise.all([
|
|
|
10050
10050
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10051
10051
|
isSubmitting: false
|
|
10052
10052
|
});
|
|
10053
|
-
},
|
|
10053
|
+
}, sW = (e2, r2) => oW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10054
10054
|
return {
|
|
10055
10055
|
control: {
|
|
10056
|
-
register:
|
|
10057
|
-
unregister:
|
|
10058
|
-
getFieldState:
|
|
10059
|
-
handleSubmit:
|
|
10060
|
-
setError:
|
|
10056
|
+
register: tW,
|
|
10057
|
+
unregister: $U,
|
|
10058
|
+
getFieldState: YU,
|
|
10059
|
+
handleSubmit: iW,
|
|
10060
|
+
setError: ZU,
|
|
10061
10061
|
_executeSchema: R,
|
|
10062
10062
|
_getWatch: G,
|
|
10063
10063
|
_getDirty: W,
|
|
10064
10064
|
_updateValid: w,
|
|
10065
10065
|
_removeUnmounted: H,
|
|
10066
10066
|
_updateFieldArray: E,
|
|
10067
|
-
_updateDisabledField:
|
|
10067
|
+
_updateDisabledField: eW,
|
|
10068
10068
|
_getFieldArray: q,
|
|
10069
|
-
_reset:
|
|
10069
|
+
_reset: oW,
|
|
10070
10070
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10071
|
-
|
|
10071
|
+
sW(e2, r.resetOptions), _.state.next({
|
|
10072
10072
|
isLoading: false
|
|
10073
10073
|
});
|
|
10074
10074
|
}),
|
|
@@ -10078,7 +10078,7 @@ let __tla = Promise.all([
|
|
|
10078
10078
|
...e2
|
|
10079
10079
|
};
|
|
10080
10080
|
},
|
|
10081
|
-
_disableForm:
|
|
10081
|
+
_disableForm: rW,
|
|
10082
10082
|
_subjects: _,
|
|
10083
10083
|
_proxyFormState: g,
|
|
10084
10084
|
_setErrors: j,
|
|
@@ -10119,17 +10119,17 @@ let __tla = Promise.all([
|
|
|
10119
10119
|
};
|
|
10120
10120
|
}
|
|
10121
10121
|
},
|
|
10122
|
-
trigger:
|
|
10123
|
-
register:
|
|
10124
|
-
handleSubmit:
|
|
10125
|
-
watch:
|
|
10126
|
-
setValue:
|
|
10127
|
-
getValues:
|
|
10128
|
-
reset:
|
|
10129
|
-
resetField:
|
|
10130
|
-
clearErrors:
|
|
10131
|
-
unregister:
|
|
10132
|
-
setError:
|
|
10122
|
+
trigger: qU,
|
|
10123
|
+
register: tW,
|
|
10124
|
+
handleSubmit: iW,
|
|
10125
|
+
watch: QU,
|
|
10126
|
+
setValue: WU,
|
|
10127
|
+
getValues: JU,
|
|
10128
|
+
reset: sW,
|
|
10129
|
+
resetField: aW,
|
|
10130
|
+
clearErrors: XU,
|
|
10131
|
+
unregister: $U,
|
|
10132
|
+
setError: ZU,
|
|
10133
10133
|
setFocus: (e2, r2 = {}) => {
|
|
10134
10134
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10135
10135
|
if (u2) {
|
|
@@ -10137,7 +10137,7 @@ let __tla = Promise.all([
|
|
|
10137
10137
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10138
10138
|
}
|
|
10139
10139
|
},
|
|
10140
|
-
getFieldState:
|
|
10140
|
+
getFieldState: YU
|
|
10141
10141
|
};
|
|
10142
10142
|
}
|
|
10143
10143
|
function useForm(e = {}) {
|
|
@@ -10715,7 +10715,7 @@ ${c}
|
|
|
10715
10715
|
let f;
|
|
10716
10716
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (e2) => {
|
|
10717
10717
|
var _a3;
|
|
10718
|
-
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), l(_temp$
|
|
10718
|
+
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), l(_temp$21);
|
|
10719
10719
|
}, r[2] = f) : f = r[2];
|
|
10720
10720
|
let p;
|
|
10721
10721
|
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
@@ -10729,7 +10729,7 @@ ${c}
|
|
|
10729
10729
|
p
|
|
10730
10730
|
], r[4] = c, r[5] = m), m;
|
|
10731
10731
|
}
|
|
10732
|
-
function _temp$
|
|
10732
|
+
function _temp$21(e) {
|
|
10733
10733
|
return !e;
|
|
10734
10734
|
}
|
|
10735
10735
|
var import_compiler_runtime$73 = require_compiler_runtime(), Slider = import_react.forwardRef((e, r) => {
|
|
@@ -10813,7 +10813,7 @@ ${c}
|
|
|
10813
10813
|
};
|
|
10814
10814
|
const Multiselect = (e) => {
|
|
10815
10815
|
let r = (0, import_compiler_runtime$72.c)(17), { options: c, label: l, value: u, setValue: d, fullWidth: f, maxSelections: p, disabled: m } = e, h = (0, import_react.useId)(), g;
|
|
10816
|
-
r[0] === c ? g = r[1] : (g = c.map(_temp$
|
|
10816
|
+
r[0] === c ? g = r[1] : (g = c.map(_temp$20), r[0] = c, r[1] = g);
|
|
10817
10817
|
let _ = g, v;
|
|
10818
10818
|
r[2] === d ? v = r[3] : (v = (e2) => d(e2 ?? []), r[2] = d, r[3] = v);
|
|
10819
10819
|
let y;
|
|
@@ -10837,7 +10837,7 @@ ${c}
|
|
|
10837
10837
|
children: y
|
|
10838
10838
|
}), r[12] = f, r[13] = h, r[14] = l, r[15] = y, r[16] = b) : b = r[16], b;
|
|
10839
10839
|
};
|
|
10840
|
-
function _temp$
|
|
10840
|
+
function _temp$20(e) {
|
|
10841
10841
|
return {
|
|
10842
10842
|
value: e,
|
|
10843
10843
|
label: e
|
|
@@ -11164,7 +11164,7 @@ ${c}
|
|
|
11164
11164
|
(0, import_jsx_runtime.jsx)(SelectSeparator, {})
|
|
11165
11165
|
]
|
|
11166
11166
|
}),
|
|
11167
|
-
l.map(_temp$
|
|
11167
|
+
l.map(_temp$19)
|
|
11168
11168
|
]
|
|
11169
11169
|
})
|
|
11170
11170
|
]
|
|
@@ -11202,7 +11202,7 @@ ${c}
|
|
|
11202
11202
|
}),
|
|
11203
11203
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
11204
11204
|
children: (0, import_jsx_runtime.jsx)(SelectGroup, {
|
|
11205
|
-
children: u.filter(_temp2$
|
|
11205
|
+
children: u.filter(_temp2$13).map(_temp3$10)
|
|
11206
11206
|
})
|
|
11207
11207
|
})
|
|
11208
11208
|
]
|
|
@@ -11681,7 +11681,7 @@ ${c}
|
|
|
11681
11681
|
]
|
|
11682
11682
|
}), r[7] = m, r[8] = g, r[9] = _) : _ = r[9], _;
|
|
11683
11683
|
};
|
|
11684
|
-
function _temp$
|
|
11684
|
+
function _temp$19(e) {
|
|
11685
11685
|
if (e.name.trim() === "") return null;
|
|
11686
11686
|
let r = DATA_TYPE_ICON[e.type];
|
|
11687
11687
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
@@ -11697,10 +11697,10 @@ ${c}
|
|
|
11697
11697
|
})
|
|
11698
11698
|
}, e.name);
|
|
11699
11699
|
}
|
|
11700
|
-
function _temp2$
|
|
11700
|
+
function _temp2$13(e) {
|
|
11701
11701
|
return e.value !== "";
|
|
11702
11702
|
}
|
|
11703
|
-
function _temp3$
|
|
11703
|
+
function _temp3$10(e) {
|
|
11704
11704
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
11705
11705
|
value: e.value,
|
|
11706
11706
|
children: e.display
|
|
@@ -11838,7 +11838,7 @@ ${c}
|
|
|
11838
11838
|
children: [
|
|
11839
11839
|
f,
|
|
11840
11840
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
11841
|
-
children: CHART_TYPES.map(_temp$
|
|
11841
|
+
children: CHART_TYPES.map(_temp$18)
|
|
11842
11842
|
})
|
|
11843
11843
|
]
|
|
11844
11844
|
}), r[3] = p) : p = r[3];
|
|
@@ -12088,7 +12088,7 @@ ${c}
|
|
|
12088
12088
|
]
|
|
12089
12089
|
}), e[5] = f, e[6] = p), p;
|
|
12090
12090
|
};
|
|
12091
|
-
function _temp$
|
|
12091
|
+
function _temp$18(e) {
|
|
12092
12092
|
return (0, import_jsx_runtime.jsx)(ChartSelectItem, {
|
|
12093
12093
|
chartType: e
|
|
12094
12094
|
}, e);
|
|
@@ -12243,7 +12243,7 @@ ${c}
|
|
|
12243
12243
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(SelectField, {
|
|
12244
12244
|
fieldName: "color.field",
|
|
12245
12245
|
label: "Field",
|
|
12246
|
-
options: COLOR_BY_FIELDS.map(_temp$
|
|
12246
|
+
options: COLOR_BY_FIELDS.map(_temp$17),
|
|
12247
12247
|
defaultValue: NONE_VALUE
|
|
12248
12248
|
}), e[9] = _) : _ = e[9];
|
|
12249
12249
|
let v, y;
|
|
@@ -12251,7 +12251,7 @@ ${c}
|
|
|
12251
12251
|
fieldName: "color.scheme",
|
|
12252
12252
|
label: "Color scheme",
|
|
12253
12253
|
defaultValue: DEFAULT_COLOR_SCHEME,
|
|
12254
|
-
options: COLOR_SCHEMES.map(_temp2$
|
|
12254
|
+
options: COLOR_SCHEMES.map(_temp2$12)
|
|
12255
12255
|
}), y = (0, import_jsx_runtime.jsx)(ColorArrayField, {
|
|
12256
12256
|
fieldName: "color.range",
|
|
12257
12257
|
label: "Color range"
|
|
@@ -12350,13 +12350,13 @@ ${c}
|
|
|
12350
12350
|
]
|
|
12351
12351
|
}), e[9] = h, e[10] = g), g;
|
|
12352
12352
|
};
|
|
12353
|
-
function _temp$
|
|
12353
|
+
function _temp$17(e) {
|
|
12354
12354
|
return {
|
|
12355
12355
|
display: capitalize(e),
|
|
12356
12356
|
value: e
|
|
12357
12357
|
};
|
|
12358
12358
|
}
|
|
12359
|
-
function _temp2$
|
|
12359
|
+
function _temp2$12(e) {
|
|
12360
12360
|
return {
|
|
12361
12361
|
display: capitalize(e),
|
|
12362
12362
|
value: e
|
|
@@ -12936,7 +12936,7 @@ ${c}
|
|
|
12936
12936
|
let p = f;
|
|
12937
12937
|
if (u) {
|
|
12938
12938
|
let e2;
|
|
12939
|
-
r[1] === u ? e2 = r[2] : (e2 = u.map(_temp2$
|
|
12939
|
+
r[1] === u ? e2 = r[2] : (e2 = u.map(_temp2$11), r[1] = u, r[2] = e2), p = e2;
|
|
12940
12940
|
}
|
|
12941
12941
|
let m;
|
|
12942
12942
|
r[3] !== c || r[4] !== l ? (m = () => {
|
|
@@ -13017,7 +13017,7 @@ ${c}
|
|
|
13017
13017
|
}), r[17] = S, r[18] = E);
|
|
13018
13018
|
let O;
|
|
13019
13019
|
r[19] !== h || r[20] !== E ? (O = (0, import_jsx_runtime.jsx)("form", {
|
|
13020
|
-
onSubmit: _temp3$
|
|
13020
|
+
onSubmit: _temp3$9,
|
|
13021
13021
|
onChange: h,
|
|
13022
13022
|
children: E
|
|
13023
13023
|
}), r[19] = h, r[20] = E, r[21] = O) : O = r[21];
|
|
@@ -13032,13 +13032,13 @@ ${c}
|
|
|
13032
13032
|
children: j
|
|
13033
13033
|
}), r[25] = j, r[26] = _, r[27] = M) : M = r[27], M;
|
|
13034
13034
|
};
|
|
13035
|
-
function _temp2$
|
|
13035
|
+
function _temp2$11(e) {
|
|
13036
13036
|
return {
|
|
13037
13037
|
name: e[0],
|
|
13038
13038
|
type: e[1][0]
|
|
13039
13039
|
};
|
|
13040
13040
|
}
|
|
13041
|
-
function _temp3$
|
|
13041
|
+
function _temp3$9(e) {
|
|
13042
13042
|
return e.preventDefault();
|
|
13043
13043
|
}
|
|
13044
13044
|
var import_compiler_runtime$61 = require_compiler_runtime();
|
|
@@ -14353,13 +14353,13 @@ ${c}
|
|
|
14353
14353
|
cellStyles: {}
|
|
14354
14354
|
};
|
|
14355
14355
|
let r2 = e.data, c2 = e.rawData, l2 = 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({
|
|
14356
|
-
sort: m.length > 0 ? m.map(_temp$
|
|
14356
|
+
sort: m.length > 0 ? m.map(_temp$16) : void 0,
|
|
14357
14357
|
query: y,
|
|
14358
14358
|
page_number: _.pageIndex,
|
|
14359
14359
|
page_size: _.pageSize,
|
|
14360
14360
|
filters: filtersToFilterGroup(w)
|
|
14361
14361
|
});
|
|
14362
|
-
if (h2) g2.catch(_temp2$
|
|
14362
|
+
if (h2) g2.catch(_temp2$10);
|
|
14363
14363
|
else {
|
|
14364
14364
|
let e2 = await g2;
|
|
14365
14365
|
r2 = e2.data, c2 = e2.raw_data, l2 = e2.total_rows, d = e2.cell_styles || {}, f2 = e2.cell_hover_texts || {};
|
|
@@ -14388,61 +14388,61 @@ ${c}
|
|
|
14388
14388
|
_.pageSize,
|
|
14389
14389
|
_.pageIndex
|
|
14390
14390
|
], 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];
|
|
14391
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14392
|
-
r[48] !== Z || r[49] !== e ? (
|
|
14393
|
-
let
|
|
14394
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
14391
|
+
let { data: W, error: G, isPending: q, isFetching: UU } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), WU;
|
|
14392
|
+
r[48] !== Z || r[49] !== e ? (WU = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = WU) : WU = r[50];
|
|
14393
|
+
let GU = e.showDownload, KU = e.get_size_bytes, qU = e.lazy, JU = e.totalRows, YU = useDeepCompareMemoize(w), XU = useDeepCompareMemoize(m), ZU;
|
|
14394
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== YU || r[58] !== XU ? (ZU = [
|
|
14395
14395
|
Z,
|
|
14396
|
+
GU,
|
|
14397
|
+
KU,
|
|
14398
|
+
qU,
|
|
14396
14399
|
JU,
|
|
14397
|
-
YU,
|
|
14398
|
-
XU,
|
|
14399
|
-
ZU,
|
|
14400
14400
|
y,
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] =
|
|
14404
|
-
let { data:
|
|
14405
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14401
|
+
YU,
|
|
14402
|
+
XU
|
|
14403
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = YU, r[58] = XU, r[59] = ZU) : ZU = r[59];
|
|
14404
|
+
let { data: QU, isPending: $U } = useAsyncData(WU, ZU), eW = QU ?? null, tW = !!Z && e.showDownload && $U, nW;
|
|
14405
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (nW = async (e2) => ({
|
|
14406
14406
|
rows: await loadTableData((await u({
|
|
14407
14407
|
page_number: e2,
|
|
14408
14408
|
page_size: 1,
|
|
14409
|
-
sort: m.length > 0 ? m.map(_temp3$
|
|
14409
|
+
sort: m.length > 0 ? m.map(_temp3$8) : void 0,
|
|
14410
14410
|
query: y,
|
|
14411
14411
|
filters: filtersToFilterGroup(w),
|
|
14412
14412
|
max_columns: null
|
|
14413
14413
|
})).data)
|
|
14414
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14415
|
-
let
|
|
14416
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14414
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = nW) : nW = r[64];
|
|
14415
|
+
let rW = nW, iW;
|
|
14416
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = () => {
|
|
14417
14417
|
v(_temp4$4);
|
|
14418
|
-
}, r[65] =
|
|
14419
|
-
let
|
|
14420
|
-
r[66] ===
|
|
14421
|
-
|
|
14422
|
-
], r[66] =
|
|
14423
|
-
let
|
|
14424
|
-
r[68] === e ?
|
|
14418
|
+
}, r[65] = iW) : iW = r[65];
|
|
14419
|
+
let aW = W == null ? void 0 : W.totalRows, oW;
|
|
14420
|
+
r[66] === aW ? oW = r[67] : (oW = [
|
|
14421
|
+
aW
|
|
14422
|
+
], r[66] = aW, r[67] = oW), (0, import_react.useEffect)(iW, oW);
|
|
14423
|
+
let sW;
|
|
14424
|
+
r[68] === e ? sW = r[69] : (sW = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14425
14425
|
data: null,
|
|
14426
14426
|
stats: {},
|
|
14427
14427
|
bin_values: {},
|
|
14428
14428
|
value_counts: {},
|
|
14429
14429
|
show_charts: false
|
|
14430
|
-
} : e.get_column_summaries({}), r[68] = e, r[69] =
|
|
14431
|
-
let
|
|
14432
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14430
|
+
} : e.get_column_summaries({}), r[68] = e, r[69] = sW);
|
|
14431
|
+
let cW;
|
|
14432
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (cW = [
|
|
14433
14433
|
e.get_column_summaries,
|
|
14434
14434
|
e.showColumnSummaries,
|
|
14435
14435
|
w,
|
|
14436
14436
|
y,
|
|
14437
14437
|
e.totalRows,
|
|
14438
14438
|
e.data
|
|
14439
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14440
|
-
let { data:
|
|
14441
|
-
if (r[77] ===
|
|
14442
|
-
|
|
14443
|
-
},
|
|
14444
|
-
|
|
14445
|
-
], r[77] =
|
|
14439
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = cW) : cW = r[76];
|
|
14440
|
+
let { data: lW, error: uW } = useAsyncData(sW, cW), dW, fW;
|
|
14441
|
+
if (r[77] === uW ? (dW = r[78], fW = r[79]) : (dW = () => {
|
|
14442
|
+
uW && Logger.error(uW);
|
|
14443
|
+
}, fW = [
|
|
14444
|
+
uW
|
|
14445
|
+
], r[77] = uW, r[78] = dW, r[79] = fW), (0, import_react.useEffect)(dW, fW), q) {
|
|
14446
14446
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14447
14447
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14448
14448
|
milliseconds: 200,
|
|
@@ -14451,7 +14451,7 @@ ${c}
|
|
|
14451
14451
|
})
|
|
14452
14452
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14453
14453
|
}
|
|
14454
|
-
let
|
|
14454
|
+
let pW = null;
|
|
14455
14455
|
if (G) {
|
|
14456
14456
|
Logger.error(G);
|
|
14457
14457
|
let e2;
|
|
@@ -14467,61 +14467,61 @@ ${c}
|
|
|
14467
14467
|
children: G.message || "An unknown error occurred"
|
|
14468
14468
|
})
|
|
14469
14469
|
]
|
|
14470
|
-
}), r[82] = G, r[83] = e2),
|
|
14470
|
+
}), r[82] = G, r[83] = e2), pW = e2;
|
|
14471
14471
|
}
|
|
14472
|
-
let
|
|
14473
|
-
r[84] === O ?
|
|
14472
|
+
let mW;
|
|
14473
|
+
r[84] === O ? mW = r[85] : (mW = () => {
|
|
14474
14474
|
j(!O);
|
|
14475
|
-
}, r[84] = O, r[85] =
|
|
14476
|
-
let
|
|
14477
|
-
r[86] !== l || r[87] !==
|
|
14475
|
+
}, r[84] = O, r[85] = mW);
|
|
14476
|
+
let hW = mW, gW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, _W = W == null ? void 0 : W.rawRows, vW = UU && !q, yW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, bW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, xW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, SW;
|
|
14477
|
+
r[86] !== l || r[87] !== lW || r[88] !== O || r[89] !== w || r[90] !== rW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== eW || r[95] !== tW || r[96] !== m || r[97] !== gW || r[98] !== _W || r[99] !== vW || r[100] !== yW || r[101] !== bW || r[102] !== xW || r[103] !== hW ? (SW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14478
14478
|
...e,
|
|
14479
|
-
data:
|
|
14480
|
-
rawData:
|
|
14481
|
-
columnSummaries:
|
|
14479
|
+
data: gW,
|
|
14480
|
+
rawData: _W,
|
|
14481
|
+
columnSummaries: lW,
|
|
14482
14482
|
sorting: m,
|
|
14483
14483
|
setSorting: h,
|
|
14484
14484
|
searchQuery: y,
|
|
14485
14485
|
setSearchQuery: b,
|
|
14486
14486
|
filters: w,
|
|
14487
14487
|
setFilters: T,
|
|
14488
|
-
reloading:
|
|
14489
|
-
totalRows:
|
|
14490
|
-
sizeBytes:
|
|
14491
|
-
sizeBytesIsLoading:
|
|
14488
|
+
reloading: vW,
|
|
14489
|
+
totalRows: yW,
|
|
14490
|
+
sizeBytes: eW,
|
|
14491
|
+
sizeBytesIsLoading: tW,
|
|
14492
14492
|
paginationState: _,
|
|
14493
14493
|
setPaginationState: v,
|
|
14494
|
-
cellStyles:
|
|
14495
|
-
cellHoverTexts:
|
|
14496
|
-
toggleDisplayHeader:
|
|
14494
|
+
cellStyles: bW,
|
|
14495
|
+
cellHoverTexts: xW,
|
|
14496
|
+
toggleDisplayHeader: hW,
|
|
14497
14497
|
isChartBuilderOpen: O,
|
|
14498
|
-
getRow:
|
|
14498
|
+
getRow: rW,
|
|
14499
14499
|
cellId: l,
|
|
14500
14500
|
maxHeight: e.maxHeight
|
|
14501
|
-
}), r[86] = l, r[87] =
|
|
14502
|
-
let
|
|
14503
|
-
r[105] !== l || r[106] !==
|
|
14501
|
+
}), r[86] = l, r[87] = lW, r[88] = O, r[89] = w, r[90] = rW, r[91] = _, r[92] = e, r[93] = y, r[94] = eW, r[95] = tW, r[96] = m, r[97] = gW, r[98] = _W, r[99] = vW, r[100] = yW, r[101] = bW, r[102] = xW, r[103] = hW, r[104] = SW) : SW = r[104];
|
|
14502
|
+
let CW = SW, wW;
|
|
14503
|
+
r[105] !== l || r[106] !== CW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (wW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14504
14504
|
displayHeader: O,
|
|
14505
14505
|
onCloseChartBuilder: () => j(false),
|
|
14506
14506
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14507
14507
|
columns: e.totalColumns,
|
|
14508
14508
|
totalRows: e.totalRows,
|
|
14509
|
-
dataTable:
|
|
14509
|
+
dataTable: CW,
|
|
14510
14510
|
getDataUrl: e.get_data_url,
|
|
14511
14511
|
fieldTypes: e.fieldTypes,
|
|
14512
14512
|
cellId: l
|
|
14513
|
-
}) :
|
|
14514
|
-
let
|
|
14515
|
-
return r[115] !==
|
|
14513
|
+
}) : CW, r[105] = l, r[106] = CW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = wW) : wW = r[114];
|
|
14514
|
+
let TW;
|
|
14515
|
+
return r[115] !== pW || r[116] !== wW ? (TW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14516
14516
|
children: [
|
|
14517
|
-
|
|
14518
|
-
|
|
14517
|
+
pW,
|
|
14518
|
+
wW
|
|
14519
14519
|
]
|
|
14520
|
-
}), r[115] =
|
|
14520
|
+
}), r[115] = pW, r[116] = wW, r[117] = TW) : TW = r[117], TW;
|
|
14521
14521
|
});
|
|
14522
14522
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14523
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
14524
|
-
let
|
|
14523
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: UU, setFilters: Z, reloading: WU, freezeColumnsLeft: GU, freezeColumnsRight: KU, hiddenColumns: qU, textJustifyColumns: JU, wrappedColumns: YU, columnWidths: XU, headerTooltip: ZU, totalColumns: QU, get_row_ids: $U, cellStyles: eW, hoverTemplate: tW, cellHoverTexts: nW, toggleDisplayHeader: rW, isChartBuilderOpen: iW, calculate_top_k_rows: aW, preview_column: oW, getRow: sW, cellId: cW, maxHeight: lW }) => {
|
|
14524
|
+
let uW = (0, import_react.useId)(), [dW, fW] = (0, import_react.useState)(0), { isPanelOpen: pW, isAnyPanelOpen: mW, togglePanel: hW, panelType: gW, setPanelType: _W } = usePanelOwnership(uW, cW), vW = (0, import_react.useMemo)(() => {
|
|
14525
14525
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14526
14526
|
let e2 = toFieldTypes(O);
|
|
14527
14527
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14530,13 +14530,13 @@ ${c}
|
|
|
14530
14530
|
}, [
|
|
14531
14531
|
O,
|
|
14532
14532
|
L
|
|
14533
|
-
]),
|
|
14533
|
+
]), yW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), bW = (0, import_react.useMemo)(() => f === "all" ? yW : yW.slice(0, f), [
|
|
14534
14534
|
f,
|
|
14535
|
-
|
|
14536
|
-
]),
|
|
14535
|
+
yW
|
|
14536
|
+
]), xW = (0, import_react.useMemo)(() => {
|
|
14537
14537
|
let e2 = {};
|
|
14538
14538
|
if (r && r.length > 0) {
|
|
14539
|
-
for (let [c2, l2] of
|
|
14539
|
+
for (let [c2, l2] of bW) if (l2[0] === "number") {
|
|
14540
14540
|
let l3 = 0;
|
|
14541
14541
|
for (let e3 of r) {
|
|
14542
14542
|
let r2 = e3[c2];
|
|
@@ -14551,95 +14551,95 @@ ${c}
|
|
|
14551
14551
|
return e2;
|
|
14552
14552
|
}, [
|
|
14553
14553
|
r,
|
|
14554
|
-
|
|
14555
|
-
]),
|
|
14554
|
+
bW
|
|
14555
|
+
]), SW = useDeepCompareMemoize(T), CW = useDeepCompareMemoize(JU), wW = useDeepCompareMemoize(YU), TW = useDeepCompareMemoize(XU), EW = useDeepCompareMemoize(vW), DW = useDeepCompareMemoize(xW), OW = bW.length;
|
|
14556
14556
|
O || (w = false);
|
|
14557
|
-
let
|
|
14558
|
-
rowHeaders:
|
|
14557
|
+
let kW = (0, import_react.useMemo)(() => generateColumns({
|
|
14558
|
+
rowHeaders: SW,
|
|
14559
14559
|
selection: m,
|
|
14560
|
-
chartSpecModel:
|
|
14561
|
-
fieldTypes:
|
|
14562
|
-
textJustifyColumns:
|
|
14563
|
-
wrappedColumns:
|
|
14564
|
-
columnWidths:
|
|
14565
|
-
headerTooltip:
|
|
14560
|
+
chartSpecModel: EW,
|
|
14561
|
+
fieldTypes: bW,
|
|
14562
|
+
textJustifyColumns: CW,
|
|
14563
|
+
wrappedColumns: wW,
|
|
14564
|
+
columnWidths: TW,
|
|
14565
|
+
headerTooltip: ZU,
|
|
14566
14566
|
showDataTypes: w,
|
|
14567
|
-
calculateTopKRows:
|
|
14568
|
-
fractionDigitsByColumn:
|
|
14567
|
+
calculateTopKRows: aW,
|
|
14568
|
+
fractionDigitsByColumn: DW
|
|
14569
14569
|
}), [
|
|
14570
14570
|
m,
|
|
14571
14571
|
w,
|
|
14572
|
-
kW,
|
|
14573
|
-
TW,
|
|
14574
|
-
CW,
|
|
14575
14572
|
EW,
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14573
|
+
SW,
|
|
14574
|
+
bW,
|
|
14575
|
+
CW,
|
|
14576
|
+
wW,
|
|
14577
|
+
TW,
|
|
14578
|
+
ZU,
|
|
14579
|
+
aW,
|
|
14580
|
+
DW
|
|
14581
|
+
]), AW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14582
14582
|
e2,
|
|
14583
14583
|
true
|
|
14584
14584
|
])), [
|
|
14585
14585
|
h
|
|
14586
|
-
]),
|
|
14586
|
+
]), jW = useEvent_default((e2) => {
|
|
14587
14587
|
if (m === "single") {
|
|
14588
14588
|
let r2 = Functions.asUpdater(e2)({});
|
|
14589
14589
|
z(Object.keys(r2).slice(0, 1));
|
|
14590
14590
|
}
|
|
14591
14591
|
if (m === "multi") {
|
|
14592
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14592
|
+
let r2 = Functions.asUpdater(e2)(AW);
|
|
14593
14593
|
z(Object.keys(r2));
|
|
14594
14594
|
}
|
|
14595
|
-
}),
|
|
14596
|
-
if (
|
|
14595
|
+
}), MW = useEvent_default((e2) => {
|
|
14596
|
+
if (fW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14597
14597
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14598
14598
|
r2 !== null && M((e3) => ({
|
|
14599
14599
|
...e3,
|
|
14600
14600
|
pageIndex: r2
|
|
14601
14601
|
}));
|
|
14602
|
-
}),
|
|
14603
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14604
|
-
}),
|
|
14605
|
-
if (!(!
|
|
14602
|
+
}), NW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), PW = useEvent_default((e2) => {
|
|
14603
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(NW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(NW));
|
|
14604
|
+
}), FW = m === "multi" || m === "single", IW = y && !!oW, LW = isInVscodeExtension(), RW = isIslands(), zW = (0, import_react.useMemo)(() => {
|
|
14605
|
+
if (!(!mW || !(b || IW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14606
14606
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14607
|
-
rowIdx:
|
|
14608
|
-
setRowIdx:
|
|
14607
|
+
rowIdx: dW,
|
|
14608
|
+
setRowIdx: MW,
|
|
14609
14609
|
totalRows: l,
|
|
14610
|
-
fieldTypes:
|
|
14611
|
-
getRow:
|
|
14612
|
-
isSelectable:
|
|
14613
|
-
isRowSelected: !!
|
|
14614
|
-
handleRowSelectionChange:
|
|
14615
|
-
previewColumn:
|
|
14616
|
-
totalColumns:
|
|
14617
|
-
tableId:
|
|
14610
|
+
fieldTypes: yW,
|
|
14611
|
+
getRow: sW,
|
|
14612
|
+
isSelectable: FW,
|
|
14613
|
+
isRowSelected: !!AW[dW],
|
|
14614
|
+
handleRowSelectionChange: jW,
|
|
14615
|
+
previewColumn: oW,
|
|
14616
|
+
totalColumns: QU,
|
|
14617
|
+
tableId: uW,
|
|
14618
14618
|
table: e2,
|
|
14619
|
-
showRowExplorer: b && !
|
|
14620
|
-
showColumnExplorer:
|
|
14621
|
-
activeTab:
|
|
14622
|
-
onTabChange:
|
|
14619
|
+
showRowExplorer: b && !LW,
|
|
14620
|
+
showColumnExplorer: IW && !LW,
|
|
14621
|
+
activeTab: gW,
|
|
14622
|
+
onTabChange: _W
|
|
14623
14623
|
})
|
|
14624
14624
|
});
|
|
14625
14625
|
}, [
|
|
14626
|
-
_W,
|
|
14627
|
-
b,
|
|
14628
|
-
zW,
|
|
14629
14626
|
mW,
|
|
14630
|
-
|
|
14627
|
+
b,
|
|
14628
|
+
IW,
|
|
14629
|
+
dW,
|
|
14630
|
+
MW,
|
|
14631
14631
|
l,
|
|
14632
|
-
SW,
|
|
14633
|
-
uW,
|
|
14634
|
-
RW,
|
|
14635
|
-
NW,
|
|
14636
|
-
PW,
|
|
14637
|
-
lW,
|
|
14638
|
-
tW,
|
|
14639
|
-
pW,
|
|
14640
|
-
BW,
|
|
14641
14632
|
yW,
|
|
14642
|
-
|
|
14633
|
+
sW,
|
|
14634
|
+
FW,
|
|
14635
|
+
AW,
|
|
14636
|
+
jW,
|
|
14637
|
+
oW,
|
|
14638
|
+
QU,
|
|
14639
|
+
uW,
|
|
14640
|
+
LW,
|
|
14641
|
+
gW,
|
|
14642
|
+
_W
|
|
14643
14643
|
]);
|
|
14644
14644
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14645
14645
|
children: [
|
|
@@ -14651,13 +14651,13 @@ ${c}
|
|
|
14651
14651
|
" rows."
|
|
14652
14652
|
]
|
|
14653
14653
|
}),
|
|
14654
|
-
|
|
14654
|
+
OW < QU && OW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14655
14655
|
className: "mb-1 rounded",
|
|
14656
14656
|
children: [
|
|
14657
14657
|
"Result clipped. Showing ",
|
|
14658
|
-
|
|
14658
|
+
OW,
|
|
14659
14659
|
" of ",
|
|
14660
|
-
|
|
14660
|
+
QU,
|
|
14661
14661
|
" columns."
|
|
14662
14662
|
]
|
|
14663
14663
|
}),
|
|
@@ -14666,7 +14666,7 @@ ${c}
|
|
|
14666
14666
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14667
14667
|
}),
|
|
14668
14668
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14669
|
-
value:
|
|
14669
|
+
value: vW,
|
|
14670
14670
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14671
14671
|
label: e,
|
|
14672
14672
|
align: "top",
|
|
@@ -14674,14 +14674,14 @@ ${c}
|
|
|
14674
14674
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14675
14675
|
data: r,
|
|
14676
14676
|
rawData: c,
|
|
14677
|
-
columns:
|
|
14677
|
+
columns: kW,
|
|
14678
14678
|
className: R,
|
|
14679
|
-
maxHeight:
|
|
14679
|
+
maxHeight: lW,
|
|
14680
14680
|
sorting: B,
|
|
14681
14681
|
totalRows: l,
|
|
14682
14682
|
sizeBytes: u,
|
|
14683
14683
|
sizeBytesIsLoading: d,
|
|
14684
|
-
totalColumns:
|
|
14684
|
+
totalColumns: QU,
|
|
14685
14685
|
manualSorting: true,
|
|
14686
14686
|
setSorting: H,
|
|
14687
14687
|
pagination: p,
|
|
@@ -14689,37 +14689,37 @@ ${c}
|
|
|
14689
14689
|
selection: m,
|
|
14690
14690
|
paginationState: j,
|
|
14691
14691
|
setPaginationState: M,
|
|
14692
|
-
rowSelection:
|
|
14693
|
-
cellSelection:
|
|
14694
|
-
cellStyling:
|
|
14695
|
-
hoverTemplate:
|
|
14696
|
-
cellHoverTexts:
|
|
14692
|
+
rowSelection: AW,
|
|
14693
|
+
cellSelection: NW,
|
|
14694
|
+
cellStyling: eW,
|
|
14695
|
+
hoverTemplate: tW,
|
|
14696
|
+
cellHoverTexts: nW,
|
|
14697
14697
|
downloadAs: _ ? I : void 0,
|
|
14698
14698
|
showSearch: W,
|
|
14699
14699
|
searchQuery: G,
|
|
14700
14700
|
onSearchQueryChange: q,
|
|
14701
14701
|
showFilters: g,
|
|
14702
|
-
filters:
|
|
14702
|
+
filters: UU,
|
|
14703
14703
|
onFiltersChange: Z,
|
|
14704
|
-
calculateTopKRows:
|
|
14705
|
-
reloading:
|
|
14706
|
-
onRowSelectionChange:
|
|
14707
|
-
freezeColumnsLeft:
|
|
14708
|
-
freezeColumnsRight:
|
|
14709
|
-
hiddenColumns:
|
|
14710
|
-
onCellSelectionChange:
|
|
14711
|
-
getRowIds:
|
|
14712
|
-
toggleDisplayHeader:
|
|
14713
|
-
showChartBuilder: S && !
|
|
14714
|
-
isChartBuilderOpen:
|
|
14704
|
+
calculateTopKRows: aW,
|
|
14705
|
+
reloading: WU,
|
|
14706
|
+
onRowSelectionChange: jW,
|
|
14707
|
+
freezeColumnsLeft: GU,
|
|
14708
|
+
freezeColumnsRight: KU,
|
|
14709
|
+
hiddenColumns: qU,
|
|
14710
|
+
onCellSelectionChange: PW,
|
|
14711
|
+
getRowIds: $U,
|
|
14712
|
+
toggleDisplayHeader: rW,
|
|
14713
|
+
showChartBuilder: S && !RW,
|
|
14714
|
+
isChartBuilderOpen: iW,
|
|
14715
14715
|
showPageSizeSelector: v,
|
|
14716
|
-
showTableExplorer: (b ||
|
|
14717
|
-
togglePanel:
|
|
14718
|
-
isPanelOpen:
|
|
14719
|
-
isAnyPanelOpen:
|
|
14720
|
-
viewedRowIdx:
|
|
14721
|
-
onViewedRowChange: (e2) =>
|
|
14722
|
-
renderTableExplorerPanel:
|
|
14716
|
+
showTableExplorer: (b || IW) && !LW && !RW,
|
|
14717
|
+
togglePanel: hW,
|
|
14718
|
+
isPanelOpen: pW,
|
|
14719
|
+
isAnyPanelOpen: mW,
|
|
14720
|
+
viewedRowIdx: dW,
|
|
14721
|
+
onViewedRowChange: (e2) => fW(e2),
|
|
14722
|
+
renderTableExplorerPanel: zW
|
|
14723
14723
|
})
|
|
14724
14724
|
})
|
|
14725
14725
|
})
|
|
@@ -14738,16 +14738,16 @@ ${c}
|
|
|
14738
14738
|
})
|
|
14739
14739
|
}), r[0] = c, r[1] = l), l;
|
|
14740
14740
|
};
|
|
14741
|
-
function _temp$
|
|
14741
|
+
function _temp$16(e) {
|
|
14742
14742
|
return {
|
|
14743
14743
|
by: e.id,
|
|
14744
14744
|
descending: e.desc
|
|
14745
14745
|
};
|
|
14746
14746
|
}
|
|
14747
|
-
function _temp2$
|
|
14747
|
+
function _temp2$10(e) {
|
|
14748
14748
|
Logger.error(e);
|
|
14749
14749
|
}
|
|
14750
|
-
function _temp3$
|
|
14750
|
+
function _temp3$8(e) {
|
|
14751
14751
|
return {
|
|
14752
14752
|
by: e.id,
|
|
14753
14753
|
descending: e.desc
|
|
@@ -14967,7 +14967,7 @@ ${c}
|
|
|
14967
14967
|
}, import_compiler_runtime$52 = require_compiler_runtime();
|
|
14968
14968
|
const SearchableSelect = (e) => {
|
|
14969
14969
|
let r = (0, import_compiler_runtime$52.c)(20), { options: c, value: l, setValue: u, label: d, allowSelectNone: f, fullWidth: m, disabled: h } = e, g = (0, import_react.useId)(), _;
|
|
14970
|
-
r[0] === c ? _ = r[1] : (_ = c.map(_temp$
|
|
14970
|
+
r[0] === c ? _ = r[1] : (_ = c.map(_temp$15), r[0] = c, r[1] = _);
|
|
14971
14971
|
let v = _, y;
|
|
14972
14972
|
r[2] === u ? y = r[3] : (y = (e2) => u(e2 ?? null), r[2] = u, r[3] = y);
|
|
14973
14973
|
let b;
|
|
@@ -14995,7 +14995,7 @@ ${c}
|
|
|
14995
14995
|
children: S
|
|
14996
14996
|
}), r[15] = m, r[16] = g, r[17] = d, r[18] = S, r[19] = w) : w = r[19], w;
|
|
14997
14997
|
};
|
|
14998
|
-
function _temp$
|
|
14998
|
+
function _temp$15(e) {
|
|
14999
14999
|
return {
|
|
15000
15000
|
value: e,
|
|
15001
15001
|
label: e
|
|
@@ -15233,7 +15233,7 @@ ${c}
|
|
|
15233
15233
|
placeholder: f ? `${f}: one per line` : "One value per line"
|
|
15234
15234
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
15235
15235
|
placeholder: f,
|
|
15236
|
-
displayValue: _temp$
|
|
15236
|
+
displayValue: _temp$14,
|
|
15237
15237
|
className: cn("w-full max-w-[400px]", h),
|
|
15238
15238
|
multiple: true,
|
|
15239
15239
|
value: y,
|
|
@@ -15241,7 +15241,7 @@ ${c}
|
|
|
15241
15241
|
keepPopoverOpenOnSelect: true,
|
|
15242
15242
|
chips: true,
|
|
15243
15243
|
chipsClassName: "flex-row flex-wrap min-w-[210px]",
|
|
15244
|
-
children: l.map(_temp2$
|
|
15244
|
+
children: l.map(_temp2$9)
|
|
15245
15245
|
}), r[2] = h, r[3] = u, r[4] = l, r[5] = f, r[6] = g, r[7] = m, r[8] = y, r[9] = b) : b = r[9];
|
|
15246
15246
|
let S = b, w;
|
|
15247
15247
|
r[10] === d ? w = r[11] : (w = cn("flex gap-1", d), r[10] = d, r[11] = w);
|
|
@@ -15299,10 +15299,10 @@ ${c}
|
|
|
15299
15299
|
e
|
|
15300
15300
|
].filter((e2) => e2 != null || e2 !== "");
|
|
15301
15301
|
}
|
|
15302
|
-
function _temp$
|
|
15302
|
+
function _temp$14(e) {
|
|
15303
15303
|
return e;
|
|
15304
15304
|
}
|
|
15305
|
-
function _temp2$
|
|
15305
|
+
function _temp2$9(e) {
|
|
15306
15306
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
15307
15307
|
value: e,
|
|
15308
15308
|
children: e
|
|
@@ -15617,7 +15617,7 @@ ${c}
|
|
|
15617
15617
|
let e2;
|
|
15618
15618
|
r[17] !== E || r[18] !== l || r[19] !== u || r[20] !== S || r[21] !== f || r[22] !== c ? (e2 = (e3, r2) => (0, import_jsx_runtime.jsxs)("div", {
|
|
15619
15619
|
className: "flex flex-row pl-2 ml-2 border-l-2 border-disabled hover-actions-parent relative pr-5 pt-1 items-center w-fit",
|
|
15620
|
-
onKeyDown: Events.onEnter(_temp$
|
|
15620
|
+
onKeyDown: Events.onEnter(_temp$13),
|
|
15621
15621
|
children: [
|
|
15622
15622
|
renderZodSchema(c, l, `${u}[${r2}]`, f),
|
|
15623
15623
|
E && (0, import_jsx_runtime.jsx)(Trash2, {
|
|
@@ -15900,13 +15900,13 @@ ${c}
|
|
|
15900
15900
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
15901
15901
|
className: "min-w-[180px]",
|
|
15902
15902
|
placeholder: y,
|
|
15903
|
-
displayValue: _temp2$
|
|
15903
|
+
displayValue: _temp2$8,
|
|
15904
15904
|
multiple: true,
|
|
15905
15905
|
chips: true,
|
|
15906
15906
|
keepPopoverOpenOnSelect: true,
|
|
15907
15907
|
value: c2,
|
|
15908
15908
|
onValueChange: r2.onChange,
|
|
15909
|
-
children: d.map(_temp3$
|
|
15909
|
+
children: d.map(_temp3$7)
|
|
15910
15910
|
})
|
|
15911
15911
|
}),
|
|
15912
15912
|
(0, import_jsx_runtime.jsx)(FormMessage, {})
|
|
@@ -15923,13 +15923,13 @@ ${c}
|
|
|
15923
15923
|
function joinPath(...e) {
|
|
15924
15924
|
return e.filter((e2) => e2 !== "").join(".");
|
|
15925
15925
|
}
|
|
15926
|
-
function _temp$
|
|
15926
|
+
function _temp$13(e) {
|
|
15927
15927
|
return e.preventDefault();
|
|
15928
15928
|
}
|
|
15929
|
-
function _temp2$
|
|
15929
|
+
function _temp2$8(e) {
|
|
15930
15930
|
return Strings.startCase(e);
|
|
15931
15931
|
}
|
|
15932
|
-
function _temp3$
|
|
15932
|
+
function _temp3$7(e) {
|
|
15933
15933
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
15934
15934
|
value: e,
|
|
15935
15935
|
children: e
|
|
@@ -16084,7 +16084,7 @@ ${c}
|
|
|
16084
16084
|
},
|
|
16085
16085
|
children: [
|
|
16086
16086
|
...f.entries()
|
|
16087
|
-
].map(_temp$
|
|
16087
|
+
].map(_temp$12)
|
|
16088
16088
|
})
|
|
16089
16089
|
}),
|
|
16090
16090
|
(0, import_jsx_runtime.jsx)(FormMessage, {})
|
|
@@ -16247,7 +16247,7 @@ ${c}
|
|
|
16247
16247
|
var _a3;
|
|
16248
16248
|
let r = (0, import_compiler_runtime$46.c)(25), { path: c, form: l, schema: u } = e, d;
|
|
16249
16249
|
r[0] === u.description ? d = r[1] : (d = FieldOptions.parse(u.description), r[0] = u.description, r[1] = d);
|
|
16250
|
-
let { description: m } = d, h = import_react.use(ColumnInfoContext), g = (_a3 = Objects.entries(u.shape).find(_temp2$
|
|
16250
|
+
let { description: m } = d, h = import_react.use(ColumnInfoContext), g = (_a3 = Objects.entries(u.shape).find(_temp2$7)) == null ? void 0 : _a3[1], _;
|
|
16251
16251
|
r[2] === c ? _ = r[3] : (_ = {
|
|
16252
16252
|
name: c
|
|
16253
16253
|
}, r[2] = c, r[3] = _);
|
|
@@ -16309,7 +16309,7 @@ ${c}
|
|
|
16309
16309
|
}),
|
|
16310
16310
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
16311
16311
|
children: (0, import_jsx_runtime.jsx)(SelectGroup, {
|
|
16312
|
-
children: u2.map(_temp3$
|
|
16312
|
+
children: u2.map(_temp3$6)
|
|
16313
16313
|
})
|
|
16314
16314
|
})
|
|
16315
16315
|
]
|
|
@@ -16356,7 +16356,7 @@ ${c}
|
|
|
16356
16356
|
multiColumnValuesRenderer(),
|
|
16357
16357
|
filterFormRenderer()
|
|
16358
16358
|
];
|
|
16359
|
-
function _temp$
|
|
16359
|
+
function _temp$12(e) {
|
|
16360
16360
|
let [r, c] = e;
|
|
16361
16361
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
16362
16362
|
value: r,
|
|
@@ -16382,11 +16382,11 @@ ${c}
|
|
|
16382
16382
|
})
|
|
16383
16383
|
}, r);
|
|
16384
16384
|
}
|
|
16385
|
-
function _temp2$
|
|
16385
|
+
function _temp2$7(e) {
|
|
16386
16386
|
let [r] = e;
|
|
16387
16387
|
return r === "column_id";
|
|
16388
16388
|
}
|
|
16389
|
-
function _temp3$
|
|
16389
|
+
function _temp3$6(e) {
|
|
16390
16390
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
16391
16391
|
value: e,
|
|
16392
16392
|
children: Strings.startCase(e)
|
|
@@ -16651,7 +16651,7 @@ ${c}
|
|
|
16651
16651
|
}), r[4] = c, r[5] = p);
|
|
16652
16652
|
let m;
|
|
16653
16653
|
r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
|
|
16654
|
-
onSelect: _temp3$
|
|
16654
|
+
onSelect: _temp3$5,
|
|
16655
16655
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
16656
16656
|
className: "underline text-primary text-xs cursor-pointer",
|
|
16657
16657
|
children: "Request a transform"
|
|
@@ -16694,7 +16694,7 @@ ${c}
|
|
|
16694
16694
|
unique: CopySlash,
|
|
16695
16695
|
pivot: Table2
|
|
16696
16696
|
};
|
|
16697
|
-
function _temp3$
|
|
16697
|
+
function _temp3$5(e) {
|
|
16698
16698
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
16699
16699
|
}
|
|
16700
16700
|
var import_compiler_runtime$44 = require_compiler_runtime();
|
|
@@ -16771,29 +16771,29 @@ ${c}
|
|
|
16771
16771
|
], r[2] = S, r[3] = w);
|
|
16772
16772
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16773
16773
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16774
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
16775
|
-
r[6] === d ?
|
|
16774
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, UU] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), WU;
|
|
16775
|
+
r[6] === d ? WU = r[7] : (WU = (e2) => {
|
|
16776
16776
|
var _a3;
|
|
16777
16777
|
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
16778
|
-
}, r[6] = d, r[7] =
|
|
16779
|
-
let
|
|
16780
|
-
r[8] === q ?
|
|
16781
|
-
|
|
16782
|
-
}, r[8] = q, r[9] =
|
|
16783
|
-
let
|
|
16784
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16785
|
-
let e2 =
|
|
16778
|
+
}, r[6] = d, r[7] = WU);
|
|
16779
|
+
let GU = WU, KU = (0, import_react.useRef)(q), qU;
|
|
16780
|
+
r[8] === q ? qU = r[9] : (qU = () => {
|
|
16781
|
+
KU.current = q;
|
|
16782
|
+
}, r[8] = q, r[9] = qU), (0, import_react.useEffect)(qU);
|
|
16783
|
+
let JU;
|
|
16784
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (JU = () => {
|
|
16785
|
+
let e2 = KU.current;
|
|
16786
16786
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16787
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16788
|
-
let
|
|
16789
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16787
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = JU) : JU = r[12];
|
|
16788
|
+
let YU = f == null ? void 0 : f.transforms.length, XU;
|
|
16789
|
+
r[13] !== T || r[14] !== p || r[15] !== YU ? (XU = [
|
|
16790
16790
|
T,
|
|
16791
|
-
QU,
|
|
16792
16791
|
YU,
|
|
16792
|
+
KU,
|
|
16793
16793
|
p
|
|
16794
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16795
|
-
let
|
|
16796
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16794
|
+
], r[13] = T, r[14] = p, r[15] = YU, r[16] = XU) : XU = r[16], (0, import_react.useEffect)(JU, XU);
|
|
16795
|
+
let ZU;
|
|
16796
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16797
16797
|
value: "transform",
|
|
16798
16798
|
className: "text-xs py-1",
|
|
16799
16799
|
children: [
|
|
@@ -16802,9 +16802,9 @@ ${c}
|
|
|
16802
16802
|
}),
|
|
16803
16803
|
"Transform"
|
|
16804
16804
|
]
|
|
16805
|
-
}), r[17] =
|
|
16806
|
-
let
|
|
16807
|
-
r[18] === H ?
|
|
16805
|
+
}), r[17] = ZU) : ZU = r[17];
|
|
16806
|
+
let QU;
|
|
16807
|
+
r[18] === H ? QU = r[19] : (QU = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16808
16808
|
value: "python-code",
|
|
16809
16809
|
className: "text-xs py-1",
|
|
16810
16810
|
children: [
|
|
@@ -16813,9 +16813,9 @@ ${c}
|
|
|
16813
16813
|
}),
|
|
16814
16814
|
"Python Code"
|
|
16815
16815
|
]
|
|
16816
|
-
}), r[18] = H, r[19] =
|
|
16817
|
-
let
|
|
16818
|
-
r[20] === W ?
|
|
16816
|
+
}), r[18] = H, r[19] = QU);
|
|
16817
|
+
let $U;
|
|
16818
|
+
r[20] === W ? $U = r[21] : ($U = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16819
16819
|
value: "sql-code",
|
|
16820
16820
|
className: "text-xs py-1",
|
|
16821
16821
|
children: [
|
|
@@ -16824,54 +16824,54 @@ ${c}
|
|
|
16824
16824
|
}),
|
|
16825
16825
|
"SQL Code"
|
|
16826
16826
|
]
|
|
16827
|
-
}), r[20] = W, r[21] =
|
|
16828
|
-
let
|
|
16829
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16827
|
+
}), r[20] = W, r[21] = $U);
|
|
16828
|
+
let eW;
|
|
16829
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW = (0, import_jsx_runtime.jsx)("div", {
|
|
16830
16830
|
className: "grow"
|
|
16831
|
-
}), r[22] =
|
|
16832
|
-
let
|
|
16833
|
-
r[23] !==
|
|
16831
|
+
}), r[22] = eW) : eW = r[22];
|
|
16832
|
+
let tW;
|
|
16833
|
+
r[23] !== QU || r[24] !== $U ? (tW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16834
16834
|
className: "h-8",
|
|
16835
16835
|
children: [
|
|
16836
|
-
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
|
|
16836
|
+
ZU,
|
|
16837
|
+
QU,
|
|
16838
|
+
$U,
|
|
16839
|
+
eW
|
|
16840
16840
|
]
|
|
16841
|
-
}), r[23] =
|
|
16842
|
-
let
|
|
16843
|
-
r[26] === j ?
|
|
16841
|
+
}), r[23] = QU, r[24] = $U, r[25] = tW) : tW = r[25];
|
|
16842
|
+
let nW;
|
|
16843
|
+
r[26] === j ? nW = r[27] : (nW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16844
16844
|
size: "small"
|
|
16845
|
-
}), r[26] = j, r[27] =
|
|
16846
|
-
let
|
|
16847
|
-
r[28] !==
|
|
16845
|
+
}), r[26] = j, r[27] = nW);
|
|
16846
|
+
let iW;
|
|
16847
|
+
r[28] !== tW || r[29] !== nW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16848
16848
|
className: "flex items-center gap-2",
|
|
16849
16849
|
children: [
|
|
16850
|
-
|
|
16851
|
-
|
|
16850
|
+
tW,
|
|
16851
|
+
nW
|
|
16852
16852
|
]
|
|
16853
|
-
}), r[28] =
|
|
16854
|
-
let
|
|
16855
|
-
r[31] !== p || r[32] !== f ? (
|
|
16856
|
-
dequal(e2, f) || (p(e2),
|
|
16857
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16858
|
-
let
|
|
16859
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16853
|
+
}), r[28] = tW, r[29] = nW, r[30] = iW) : iW = r[30];
|
|
16854
|
+
let aW;
|
|
16855
|
+
r[31] !== p || r[32] !== f ? (aW = (e2) => {
|
|
16856
|
+
dequal(e2, f) || (p(e2), UU(e2));
|
|
16857
|
+
}, r[31] = p, r[32] = f, r[33] = aW) : aW = r[33];
|
|
16858
|
+
let oW;
|
|
16859
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== aW ? (oW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16860
16860
|
value: "transform",
|
|
16861
16861
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16862
16862
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16863
16863
|
ref: Z,
|
|
16864
16864
|
initialValue: q,
|
|
16865
16865
|
columns: c,
|
|
16866
|
-
onChange:
|
|
16867
|
-
onInvalidChange:
|
|
16866
|
+
onChange: aW,
|
|
16867
|
+
onInvalidChange: UU,
|
|
16868
16868
|
getColumnValues: h,
|
|
16869
16869
|
columnTypesPerStep: B,
|
|
16870
16870
|
lazy: d
|
|
16871
16871
|
})
|
|
16872
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16873
|
-
let
|
|
16874
|
-
r[41] === H ?
|
|
16872
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = aW, r[40] = oW) : oW = r[40];
|
|
16873
|
+
let sW;
|
|
16874
|
+
r[41] === H ? sW = r[42] : (sW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16875
16875
|
value: "python-code",
|
|
16876
16876
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16877
16877
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16880,9 +16880,9 @@ ${c}
|
|
|
16880
16880
|
code: H,
|
|
16881
16881
|
language: "python"
|
|
16882
16882
|
})
|
|
16883
|
-
}), r[41] = H, r[42] =
|
|
16884
|
-
let
|
|
16885
|
-
r[43] === W ?
|
|
16883
|
+
}), r[41] = H, r[42] = sW);
|
|
16884
|
+
let cW;
|
|
16885
|
+
r[43] === W ? cW = r[44] : (cW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16886
16886
|
value: "sql-code",
|
|
16887
16887
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16888
16888
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16891,35 +16891,35 @@ ${c}
|
|
|
16891
16891
|
code: W,
|
|
16892
16892
|
language: "sql"
|
|
16893
16893
|
})
|
|
16894
|
-
}), r[43] = W, r[44] =
|
|
16895
|
-
let
|
|
16896
|
-
r[45] !==
|
|
16894
|
+
}), r[43] = W, r[44] = cW);
|
|
16895
|
+
let lW;
|
|
16896
|
+
r[45] !== GU || r[46] !== iW || r[47] !== oW || r[48] !== sW || r[49] !== cW ? (lW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16897
16897
|
defaultValue: "transform",
|
|
16898
|
-
onValueChange:
|
|
16898
|
+
onValueChange: GU,
|
|
16899
16899
|
children: [
|
|
16900
|
+
iW,
|
|
16901
|
+
oW,
|
|
16900
16902
|
sW,
|
|
16901
|
-
|
|
16902
|
-
uW,
|
|
16903
|
-
dW
|
|
16903
|
+
cW
|
|
16904
16904
|
]
|
|
16905
|
-
}), r[45] =
|
|
16906
|
-
let
|
|
16907
|
-
r[51] === O ?
|
|
16905
|
+
}), r[45] = GU, r[46] = iW, r[47] = oW, r[48] = sW, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
16906
|
+
let uW;
|
|
16907
|
+
r[51] === O ? uW = r[52] : (uW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16908
16908
|
error: O
|
|
16909
|
-
}), r[51] = O, r[52] =
|
|
16910
|
-
let
|
|
16911
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16909
|
+
}), r[51] = O, r[52] = uW);
|
|
16910
|
+
let dW = I || "", fW = L ?? 0, pW = G ?? 0, mW = R || Arrays.EMPTY, hW = L && L > 5 || false, gW;
|
|
16911
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== dW || r[61] !== fW || r[62] !== pW || r[63] !== mW || r[64] !== hW ? (gW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16912
16912
|
label: null,
|
|
16913
16913
|
className: "rounded-b border-x border-b",
|
|
16914
|
-
data:
|
|
16914
|
+
data: dW,
|
|
16915
16915
|
hasStableRowId: false,
|
|
16916
|
-
totalRows:
|
|
16917
|
-
totalColumns:
|
|
16916
|
+
totalRows: fW,
|
|
16917
|
+
totalColumns: pW,
|
|
16918
16918
|
maxColumns: "all",
|
|
16919
16919
|
pageSize: l,
|
|
16920
16920
|
pagination: true,
|
|
16921
16921
|
fieldTypes: z,
|
|
16922
|
-
rowHeaders:
|
|
16922
|
+
rowHeaders: mW,
|
|
16923
16923
|
showDownload: u,
|
|
16924
16924
|
download_as: _,
|
|
16925
16925
|
get_size_bytes: v,
|
|
@@ -16929,7 +16929,7 @@ ${c}
|
|
|
16929
16929
|
showColumnSummaries: false,
|
|
16930
16930
|
showDataTypes: true,
|
|
16931
16931
|
get_column_summaries: getColumnSummaries,
|
|
16932
|
-
showPageSizeSelector:
|
|
16932
|
+
showPageSizeSelector: hW,
|
|
16933
16933
|
showColumnExplorer: false,
|
|
16934
16934
|
showRowExplorer: true,
|
|
16935
16935
|
showChartBuilder: false,
|
|
@@ -16938,15 +16938,15 @@ ${c}
|
|
|
16938
16938
|
selection: null,
|
|
16939
16939
|
lazy: false,
|
|
16940
16940
|
host: y
|
|
16941
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16942
|
-
let
|
|
16943
|
-
return r[66] !==
|
|
16941
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = dW, r[61] = fW, r[62] = pW, r[63] = mW, r[64] = hW, r[65] = gW) : gW = r[65];
|
|
16942
|
+
let _W;
|
|
16943
|
+
return r[66] !== lW || r[67] !== uW || r[68] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
16944
16944
|
children: [
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16945
|
+
lW,
|
|
16946
|
+
uW,
|
|
16947
|
+
gW
|
|
16948
16948
|
]
|
|
16949
|
-
}), r[66] =
|
|
16949
|
+
}), r[66] = lW, r[67] = uW, r[68] = gW, r[69] = _W) : _W = r[69], _W;
|
|
16950
16950
|
});
|
|
16951
16951
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
16952
16952
|
function getColumnSummaries() {
|
|
@@ -17066,368 +17066,360 @@ ${c}
|
|
|
17066
17066
|
}));
|
|
17067
17067
|
var PARENT_DIRECTORY = "..";
|
|
17068
17068
|
function CheckboxOrIcon(e) {
|
|
17069
|
-
let r = (0, import_compiler_runtime$43.c)(
|
|
17070
|
-
if (
|
|
17071
|
-
let e2;
|
|
17072
|
-
r[0] ===
|
|
17073
|
-
|
|
17074
|
-
}, r[0] =
|
|
17075
|
-
let
|
|
17076
|
-
r[2] ===
|
|
17077
|
-
"hidden group-hover:flex":
|
|
17078
|
-
}), r[2] =
|
|
17079
|
-
let
|
|
17080
|
-
r[4] !==
|
|
17081
|
-
checked:
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
r[
|
|
17087
|
-
|
|
17088
|
-
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
r[
|
|
17069
|
+
let r = (0, import_compiler_runtime$43.c)(20), { name: c, isSelected: l, canSelect: u, Icon: d, onSelect: f } = e;
|
|
17070
|
+
if (u) {
|
|
17071
|
+
let e2 = `Select ${c}`, u2;
|
|
17072
|
+
r[0] === f ? u2 = r[1] : (u2 = (e3) => {
|
|
17073
|
+
f(), e3.stopPropagation();
|
|
17074
|
+
}, r[0] = f, r[1] = u2);
|
|
17075
|
+
let m2 = !l, h;
|
|
17076
|
+
r[2] === m2 ? h = r[3] : (h = cn({
|
|
17077
|
+
"hidden group-hover:flex group-focus:flex": m2
|
|
17078
|
+
}), r[2] = m2, r[3] = h);
|
|
17079
|
+
let g;
|
|
17080
|
+
r[4] !== l || r[5] !== e2 || r[6] !== u2 || r[7] !== h ? (g = (0, import_jsx_runtime.jsx)(Checkbox, {
|
|
17081
|
+
checked: l,
|
|
17082
|
+
"aria-label": e2,
|
|
17083
|
+
tabIndex: -1,
|
|
17084
|
+
onClick: u2,
|
|
17085
|
+
className: h
|
|
17086
|
+
}), r[4] = l, r[5] = e2, r[6] = u2, r[7] = h, r[8] = g) : g = r[8];
|
|
17087
|
+
let _ = !l, v;
|
|
17088
|
+
r[9] !== l || r[10] !== _ ? (v = cn("mr-2", {
|
|
17089
|
+
hidden: l,
|
|
17090
|
+
"group-hover:hidden group-focus:hidden": _
|
|
17091
|
+
}), r[9] = l, r[10] = _, r[11] = v) : v = r[11];
|
|
17092
|
+
let y;
|
|
17093
|
+
r[12] !== d || r[13] !== v ? (y = (0, import_jsx_runtime.jsx)(d, {
|
|
17092
17094
|
size: 16,
|
|
17093
|
-
className:
|
|
17094
|
-
}), r[
|
|
17095
|
-
let
|
|
17096
|
-
return r[
|
|
17095
|
+
className: v
|
|
17096
|
+
}), r[12] = d, r[13] = v, r[14] = y) : y = r[14];
|
|
17097
|
+
let b;
|
|
17098
|
+
return r[15] !== g || r[16] !== y ? (b = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17097
17099
|
children: [
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
+
g,
|
|
17101
|
+
y
|
|
17100
17102
|
]
|
|
17101
|
-
}), r[
|
|
17103
|
+
}), r[15] = g, r[16] = y, r[17] = b) : b = r[17], b;
|
|
17102
17104
|
}
|
|
17103
|
-
let
|
|
17104
|
-
return r[
|
|
17105
|
+
let m;
|
|
17106
|
+
return r[18] === d ? m = r[19] : (m = (0, import_jsx_runtime.jsx)(d, {
|
|
17105
17107
|
size: 16,
|
|
17106
17108
|
className: "mr-2"
|
|
17107
|
-
}), r[
|
|
17109
|
+
}), r[18] = d, r[19] = m), m;
|
|
17108
17110
|
}
|
|
17109
|
-
const FileBrowser = (e) => {
|
|
17111
|
+
const FileBrowser = ({ value: e, setValue: r, initialPath: c, selectionMode: l, multiple: u, label: d, restrictNavigation: f, list_directory: m, host: h }) => {
|
|
17110
17112
|
var _a3;
|
|
17111
|
-
let
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
r[5] !== v || r[6] !== j ? (I = [
|
|
17119
|
-
v,
|
|
17120
|
-
j
|
|
17121
|
-
], r[5] = v, r[6] = j, r[7] = I) : I = r[7];
|
|
17122
|
-
let { data: R, error: z, isPending: B } = useAsyncData(M, I), H, W;
|
|
17123
|
-
r[8] === B ? (H = r[9], W = r[10]) : (H = () => {
|
|
17113
|
+
let [g, _] = useInternalStateWithSync(c), [v, y] = (0, import_react.useState)(false), [b, S] = (0, import_react.useState)(false), [T, E] = (0, import_react.useState)(0), O = (0, import_react.useRef)([]), j = (0, import_react.useRef)(null), M = (0, import_react.useRef)(false), I = (_a3 = h.closest(`[${RANDOM_ID_ATTR}]`)) == null ? void 0 : _a3.getAttribute(RANDOM_ID_ATTR), { data: R, error: z, isPending: B } = useAsyncData(() => m({
|
|
17114
|
+
path: g
|
|
17115
|
+
}), [
|
|
17116
|
+
g,
|
|
17117
|
+
I
|
|
17118
|
+
]);
|
|
17119
|
+
(0, import_react.useEffect)(() => {
|
|
17124
17120
|
if (!B) {
|
|
17125
|
-
|
|
17121
|
+
S(false);
|
|
17126
17122
|
return;
|
|
17127
17123
|
}
|
|
17128
17124
|
let e2 = window.setTimeout(() => {
|
|
17129
|
-
|
|
17125
|
+
S(true);
|
|
17130
17126
|
}, 200);
|
|
17131
17127
|
return () => {
|
|
17132
17128
|
window.clearTimeout(e2);
|
|
17133
17129
|
};
|
|
17134
|
-
},
|
|
17130
|
+
}, [
|
|
17135
17131
|
B
|
|
17136
|
-
]
|
|
17137
|
-
let
|
|
17138
|
-
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17132
|
+
]);
|
|
17133
|
+
let H = `${g}::${I}`, [W, G] = (0, import_react.useState)(H);
|
|
17134
|
+
W !== H && (G(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
17135
|
+
var _a4;
|
|
17136
|
+
M.current && (M.current = false, (_a4 = O.current[0]) == null ? void 0 : _a4.focus());
|
|
17137
|
+
}, [
|
|
17138
|
+
H
|
|
17139
|
+
]);
|
|
17140
|
+
let q = (R == null ? void 0 : R.files) ?? [], UU = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", GU = l === "file" || l === "all", KU = q.filter((e2) => Z && e2.is_directory || GU && !e2.is_directory), qU = KU.length > 0 && KU.every((e2) => UU.has(e2.path));
|
|
17141
|
+
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
17142
|
+
kind: "danger",
|
|
17143
|
+
children: z.message
|
|
17144
|
+
});
|
|
17145
|
+
let JU = PathBuilder.guessDeliminator(c).deliminator, YU = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
17146
|
+
children: e2.path
|
|
17147
|
+
}, e2.id));
|
|
17148
|
+
function XU(e2) {
|
|
17149
|
+
var _a4;
|
|
17150
|
+
if (v) return;
|
|
17151
|
+
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
17152
|
+
if (g === JU) {
|
|
17153
|
+
y(false);
|
|
17154
|
+
return;
|
|
17154
17155
|
}
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
|
|
17158
|
-
|
|
17159
|
-
|
|
17160
|
-
|
|
17161
|
-
|
|
17162
|
-
|
|
17163
|
-
|
|
17164
|
-
|
|
17165
|
-
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
|
|
17172
|
-
|
|
17173
|
-
|
|
17174
|
-
|
|
17175
|
-
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
|
|
17179
|
-
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
|
|
17156
|
+
e2 = Paths.dirname(g), e2 === "" && (e2 = JU);
|
|
17157
|
+
}
|
|
17158
|
+
let r2 = e2.length < c.length;
|
|
17159
|
+
if (f && r2) {
|
|
17160
|
+
toast({
|
|
17161
|
+
title: "Access denied",
|
|
17162
|
+
description: "Access to directories outside initial path is restricted.",
|
|
17163
|
+
variant: "danger"
|
|
17164
|
+
}), y(false);
|
|
17165
|
+
return;
|
|
17166
|
+
}
|
|
17167
|
+
M.current = ((_a4 = j.current) == null ? void 0 : _a4.contains(document.activeElement)) ?? false, _(e2), y(false);
|
|
17168
|
+
}
|
|
17169
|
+
function ZU({ path: e2, name: r2, isDirectory: c2 }) {
|
|
17170
|
+
return {
|
|
17171
|
+
id: e2,
|
|
17172
|
+
name: r2,
|
|
17173
|
+
path: e2,
|
|
17174
|
+
is_directory: c2
|
|
17175
|
+
};
|
|
17176
|
+
}
|
|
17177
|
+
function QU({ path: c2, name: l2, isDirectory: d2 }) {
|
|
17178
|
+
let f2 = ZU({
|
|
17179
|
+
path: c2,
|
|
17180
|
+
name: l2,
|
|
17181
|
+
isDirectory: d2
|
|
17182
|
+
});
|
|
17183
|
+
UU.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
17184
|
+
...e,
|
|
17185
|
+
f2
|
|
17186
|
+
] : [
|
|
17187
|
+
f2
|
|
17188
|
+
]);
|
|
17189
|
+
}
|
|
17190
|
+
function $U() {
|
|
17191
|
+
r(e.filter((e2) => Paths.dirname(e2.path) !== g));
|
|
17192
|
+
}
|
|
17193
|
+
function eW() {
|
|
17194
|
+
let c2 = [];
|
|
17195
|
+
for (let e2 of q) {
|
|
17196
|
+
if (!Z && e2.is_directory || UU.has(e2.path)) continue;
|
|
17197
|
+
let r2 = ZU({
|
|
17198
|
+
path: e2.path,
|
|
17199
|
+
name: e2.name,
|
|
17200
|
+
isDirectory: e2.is_directory
|
|
17201
|
+
});
|
|
17202
|
+
c2.push(r2);
|
|
17203
|
+
}
|
|
17204
|
+
r([
|
|
17205
|
+
...e,
|
|
17206
|
+
...c2
|
|
17207
|
+
]);
|
|
17208
|
+
}
|
|
17209
|
+
let tW = [
|
|
17210
|
+
{
|
|
17211
|
+
key: "parent",
|
|
17212
|
+
name: PARENT_DIRECTORY,
|
|
17213
|
+
Icon: CornerLeftUp,
|
|
17214
|
+
isSelected: false,
|
|
17215
|
+
canSelect: false,
|
|
17216
|
+
onPrimary: () => XU(PARENT_DIRECTORY),
|
|
17217
|
+
onToggleSelect: null
|
|
17218
|
+
},
|
|
17219
|
+
...q.map((e2) => {
|
|
17220
|
+
let r2 = e2.path;
|
|
17221
|
+
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17222
|
+
let c2 = Z && e2.is_directory || GU && !e2.is_directory, l2 = UU.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => QU({
|
|
17223
|
+
path: r2,
|
|
17224
|
+
name: e2.name,
|
|
17225
|
+
isDirectory: e2.is_directory
|
|
17226
|
+
});
|
|
17227
|
+
return {
|
|
17228
|
+
key: e2.id,
|
|
17229
|
+
name: e2.name,
|
|
17230
|
+
Icon: FILE_ICON[u2],
|
|
17231
|
+
isSelected: l2,
|
|
17232
|
+
canSelect: c2,
|
|
17233
|
+
onPrimary: e2.is_directory ? () => XU(r2) : c2 ? d2 : () => {
|
|
17234
|
+
},
|
|
17235
|
+
onToggleSelect: c2 ? d2 : null
|
|
17236
|
+
};
|
|
17237
|
+
})
|
|
17238
|
+
];
|
|
17239
|
+
function nW(e2) {
|
|
17240
|
+
var _a4;
|
|
17241
|
+
E(e2), (_a4 = O.current[e2]) == null ? void 0 : _a4.focus();
|
|
17242
|
+
}
|
|
17243
|
+
function rW(e2, r2) {
|
|
17244
|
+
var _a4, _b3;
|
|
17245
|
+
let c2 = tW.length - 1;
|
|
17246
|
+
switch (e2.key) {
|
|
17247
|
+
case "ArrowDown":
|
|
17248
|
+
e2.preventDefault(), nW(Math.min(r2 + 1, c2));
|
|
17249
|
+
break;
|
|
17250
|
+
case "ArrowUp":
|
|
17251
|
+
e2.preventDefault(), nW(Math.max(r2 - 1, 0));
|
|
17252
|
+
break;
|
|
17253
|
+
case "Home":
|
|
17254
|
+
e2.preventDefault(), nW(0);
|
|
17255
|
+
break;
|
|
17256
|
+
case "End":
|
|
17257
|
+
e2.preventDefault(), nW(c2);
|
|
17258
|
+
break;
|
|
17259
|
+
case "Enter":
|
|
17260
|
+
e2.preventDefault(), tW[r2].onPrimary();
|
|
17261
|
+
break;
|
|
17262
|
+
case " ":
|
|
17263
|
+
e2.preventDefault(), (_b3 = (_a4 = tW[r2]).onToggleSelect) == null ? void 0 : _b3.call(_a4);
|
|
17264
|
+
break;
|
|
17265
|
+
}
|
|
17266
|
+
}
|
|
17267
|
+
let { parentDirectories: iW } = getProtocolAndParentDirectories({
|
|
17268
|
+
path: g,
|
|
17269
|
+
delimiter: JU,
|
|
17270
|
+
initialPath: c,
|
|
17271
|
+
restrictNavigation: f
|
|
17272
|
+
}), aW = l === "all" ? PluralWords.of("file", "folder") : l === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17273
|
+
return (0, import_jsx_runtime.jsxs)("div", {
|
|
17274
|
+
children: [
|
|
17275
|
+
z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
17276
|
+
kind: "danger",
|
|
17277
|
+
children: z.message
|
|
17278
|
+
}),
|
|
17279
|
+
(() => {
|
|
17280
|
+
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17281
|
+
children: renderHTML({
|
|
17282
|
+
html: d ?? `Select ${aW.join(" and ", 2)}...`
|
|
17283
|
+
})
|
|
17196
17284
|
});
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
p
|
|
17200
|
-
] : [
|
|
17201
|
-
p
|
|
17202
|
-
]);
|
|
17203
|
-
}, r[50] = f, r[51] = m2, r[52] = l, r[53] = c, r[54] = B2) : B2 = r[54];
|
|
17204
|
-
let H2 = B2, W2;
|
|
17205
|
-
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17206
|
-
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17207
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], KU = W2, YU = function() {
|
|
17208
|
-
let e3 = [];
|
|
17209
|
-
for (let r2 of JU) {
|
|
17210
|
-
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
17211
|
-
let c2 = I2({
|
|
17212
|
-
path: r2.path,
|
|
17213
|
-
name: r2.name,
|
|
17214
|
-
isDirectory: r2.is_directory
|
|
17215
|
-
});
|
|
17216
|
-
e3.push(c2);
|
|
17217
|
-
}
|
|
17218
|
-
l([
|
|
17219
|
-
...c,
|
|
17220
|
-
...e3
|
|
17221
|
-
]);
|
|
17222
|
-
}, Z = [];
|
|
17223
|
-
let $U2;
|
|
17224
|
-
r[59] === ZU ? $U2 = r[60] : ($U2 = () => ZU(PARENT_DIRECTORY), r[59] = ZU, r[60] = $U2);
|
|
17225
|
-
let eW2, tW2;
|
|
17226
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17227
|
-
className: "w-[50px] pl-4",
|
|
17228
|
-
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
17229
|
-
size: 16
|
|
17230
|
-
})
|
|
17231
|
-
}), tW2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17232
|
-
children: PARENT_DIRECTORY
|
|
17233
|
-
}), r[61] = eW2, r[62] = tW2) : (eW2 = r[61], tW2 = r[62]);
|
|
17234
|
-
let nW2;
|
|
17235
|
-
r[63] === $U2 ? nW2 = r[64] : (nW2 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17236
|
-
className: "hover:bg-accent select-none",
|
|
17237
|
-
onClick: $U2,
|
|
17238
|
-
children: [
|
|
17239
|
-
eW2,
|
|
17240
|
-
tW2
|
|
17241
|
-
]
|
|
17242
|
-
}, "Parent directory"), r[63] = $U2, r[64] = nW2), Z.push(nW2);
|
|
17243
|
-
for (let e3 of JU) {
|
|
17244
|
-
let r2 = e3.path;
|
|
17245
|
-
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17246
|
-
let c2 = e3.is_directory ? (e4) => {
|
|
17247
|
-
let { path: r3 } = e4;
|
|
17248
|
-
return ZU(r3);
|
|
17249
|
-
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17250
|
-
Z.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17251
|
-
className: cn("hover:bg-accent group select-none", {
|
|
17252
|
-
"bg-primary/25 hover:bg-primary/35": u2
|
|
17253
|
-
}),
|
|
17254
|
-
onClick: () => c2({
|
|
17255
|
-
path: r2,
|
|
17256
|
-
name: e3.name,
|
|
17257
|
-
isDirectory: e3.is_directory
|
|
17258
|
-
}),
|
|
17285
|
+
return u ? (0, import_jsx_runtime.jsxs)("div", {
|
|
17286
|
+
className: "flex items-center justify-between border px-2",
|
|
17259
17287
|
children: [
|
|
17260
|
-
(0, import_jsx_runtime.jsx)(
|
|
17261
|
-
className: "
|
|
17262
|
-
children:
|
|
17263
|
-
isSelected: u2,
|
|
17264
|
-
canSelect: g2 && e3.is_directory || _2 && !e3.is_directory,
|
|
17265
|
-
Icon: l2,
|
|
17266
|
-
onSelect: () => H2({
|
|
17267
|
-
path: r2,
|
|
17268
|
-
name: e3.name,
|
|
17269
|
-
isDirectory: e3.is_directory
|
|
17270
|
-
})
|
|
17271
|
-
})
|
|
17288
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
17289
|
+
className: "mb-1",
|
|
17290
|
+
children: e2
|
|
17272
17291
|
}),
|
|
17273
|
-
(0, import_jsx_runtime.jsx)(
|
|
17274
|
-
children:
|
|
17292
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
17293
|
+
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17294
|
+
size: "xs",
|
|
17295
|
+
variant: "link",
|
|
17296
|
+
onClick: qU ? $U : eW,
|
|
17297
|
+
children: qU ? "Deselect all" : "Select all"
|
|
17298
|
+
})
|
|
17275
17299
|
})
|
|
17276
17300
|
]
|
|
17277
|
-
}
|
|
17278
|
-
}
|
|
17279
|
-
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
17284
|
-
|
|
17285
|
-
|
|
17286
|
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
|
|
17295
|
-
|
|
17296
|
-
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
return f ? (0, import_jsx_runtime.jsxs)("div", {
|
|
17301
|
-
className: "flex items-center justify-between border px-2",
|
|
17301
|
+
}) : e2;
|
|
17302
|
+
})(),
|
|
17303
|
+
(0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17304
|
+
className: "mt-2 w-full",
|
|
17305
|
+
placeholder: g,
|
|
17306
|
+
value: g,
|
|
17307
|
+
onChange: (e2) => XU(e2.target.value),
|
|
17308
|
+
children: iW.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
17309
|
+
value: e2,
|
|
17310
|
+
children: e2
|
|
17311
|
+
}, e2))
|
|
17312
|
+
}),
|
|
17313
|
+
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17314
|
+
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17315
|
+
children: R.is_truncated ? `Showing ${q.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17316
|
+
}),
|
|
17317
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
17318
|
+
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17319
|
+
style: {
|
|
17320
|
+
height: "14rem"
|
|
17321
|
+
},
|
|
17322
|
+
"aria-busy": B,
|
|
17323
|
+
"aria-live": "polite",
|
|
17302
17324
|
children: [
|
|
17303
|
-
(0, import_jsx_runtime.
|
|
17304
|
-
className: "
|
|
17305
|
-
|
|
17325
|
+
b && (0, import_jsx_runtime.jsxs)("div", {
|
|
17326
|
+
className: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",
|
|
17327
|
+
role: "status",
|
|
17328
|
+
children: [
|
|
17329
|
+
(0, import_jsx_runtime.jsx)(Spinner, {
|
|
17330
|
+
size: "small"
|
|
17331
|
+
}),
|
|
17332
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
17333
|
+
children: "Listing files..."
|
|
17334
|
+
})
|
|
17335
|
+
]
|
|
17306
17336
|
}),
|
|
17307
|
-
(0, import_jsx_runtime.jsx)(
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
|
|
17337
|
+
(0, import_jsx_runtime.jsx)(Table, {
|
|
17338
|
+
ref: j,
|
|
17339
|
+
className: "cursor-pointer table-fixed",
|
|
17340
|
+
role: "grid",
|
|
17341
|
+
"aria-label": "File browser",
|
|
17342
|
+
"aria-multiselectable": u,
|
|
17343
|
+
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17344
|
+
children: tW.map((e2, r2) => (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17345
|
+
role: "row",
|
|
17346
|
+
ref: (e3) => {
|
|
17347
|
+
O.current[r2] = e3;
|
|
17348
|
+
},
|
|
17349
|
+
tabIndex: r2 === T ? 0 : -1,
|
|
17350
|
+
onFocus: () => E(r2),
|
|
17351
|
+
onKeyDown: (e3) => rW(e3, r2),
|
|
17352
|
+
className: cn("hover:bg-accent group select-none focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset", {
|
|
17353
|
+
"bg-primary/25 hover:bg-primary/35": e2.isSelected
|
|
17354
|
+
}),
|
|
17355
|
+
"aria-selected": e2.canSelect ? e2.isSelected : void 0,
|
|
17356
|
+
onClick: e2.onPrimary,
|
|
17357
|
+
children: [
|
|
17358
|
+
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
17359
|
+
role: "gridcell",
|
|
17360
|
+
className: "w-[50px] pl-4",
|
|
17361
|
+
children: (0, import_jsx_runtime.jsx)(CheckboxOrIcon, {
|
|
17362
|
+
name: e2.name,
|
|
17363
|
+
isSelected: e2.isSelected,
|
|
17364
|
+
canSelect: e2.canSelect,
|
|
17365
|
+
Icon: e2.Icon,
|
|
17366
|
+
onSelect: () => {
|
|
17367
|
+
var _a4;
|
|
17368
|
+
return (_a4 = e2.onToggleSelect) == null ? void 0 : _a4.call(e2);
|
|
17369
|
+
}
|
|
17370
|
+
})
|
|
17371
|
+
}),
|
|
17372
|
+
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
17373
|
+
role: "gridcell",
|
|
17374
|
+
children: e2.name
|
|
17375
|
+
})
|
|
17376
|
+
]
|
|
17377
|
+
}, e2.key))
|
|
17313
17378
|
})
|
|
17314
17379
|
})
|
|
17315
17380
|
]
|
|
17316
|
-
})
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
let y2 = e2.map(_temp3$5);
|
|
17321
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (eW = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17322
|
-
className: "mt-2 w-full",
|
|
17323
|
-
placeholder: v,
|
|
17324
|
-
value: v,
|
|
17325
|
-
onChange: _2,
|
|
17326
|
-
children: y2
|
|
17327
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = eW) : eW = r[99], r[100] !== R || r[101] !== JU ? (tW = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17328
|
-
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17329
|
-
children: R.is_truncated ? `Showing ${JU.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17330
|
-
}), r[100] = R, r[101] = JU, r[102] = tW) : tW = r[102];
|
|
17331
|
-
let b2;
|
|
17332
|
-
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
17333
|
-
height: "14rem"
|
|
17334
|
-
}, r[103] = b2) : b2 = r[103];
|
|
17335
|
-
let S2;
|
|
17336
|
-
r[104] === T ? S2 = r[105] : (S2 = T && (0, import_jsx_runtime.jsxs)("div", {
|
|
17337
|
-
className: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",
|
|
17338
|
-
role: "status",
|
|
17339
|
-
children: [
|
|
17340
|
-
(0, import_jsx_runtime.jsx)(Spinner, {
|
|
17341
|
-
size: "small"
|
|
17342
|
-
}),
|
|
17343
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
17344
|
-
children: "Listing files..."
|
|
17345
|
-
})
|
|
17346
|
-
]
|
|
17347
|
-
}), r[104] = T, r[105] = S2);
|
|
17348
|
-
let E2;
|
|
17349
|
-
r[106] === Z ? E2 = r[107] : (E2 = (0, import_jsx_runtime.jsx)(Table, {
|
|
17350
|
-
className: "cursor-pointer table-fixed",
|
|
17351
|
-
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17352
|
-
children: Z
|
|
17353
|
-
})
|
|
17354
|
-
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (nW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17355
|
-
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17356
|
-
style: b2,
|
|
17357
|
-
"aria-busy": B,
|
|
17358
|
-
"aria-live": "polite",
|
|
17359
|
-
children: [
|
|
17360
|
-
S2,
|
|
17361
|
-
E2
|
|
17362
|
-
]
|
|
17363
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = nW) : nW = r[111], rW = "mt-4", iW = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17364
|
-
children: [
|
|
17365
|
-
(0, import_jsx_runtime.jsxs)("div", {
|
|
17366
|
-
className: "flex items-center gap-2",
|
|
17381
|
+
}),
|
|
17382
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
17383
|
+
className: "mt-4",
|
|
17384
|
+
children: e.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17367
17385
|
children: [
|
|
17368
|
-
(0, import_jsx_runtime.jsxs)("
|
|
17369
|
-
className: "
|
|
17386
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
17387
|
+
className: "flex items-center gap-2",
|
|
17370
17388
|
children: [
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17374
|
-
|
|
17375
|
-
|
|
17389
|
+
(0, import_jsx_runtime.jsxs)("span", {
|
|
17390
|
+
className: "font-bold text-xs",
|
|
17391
|
+
children: [
|
|
17392
|
+
e.length,
|
|
17393
|
+
" ",
|
|
17394
|
+
aW.join(" or ", e.length),
|
|
17395
|
+
" ",
|
|
17396
|
+
"selected"
|
|
17397
|
+
]
|
|
17398
|
+
}),
|
|
17399
|
+
(0, import_jsx_runtime.jsx)("button", {
|
|
17400
|
+
className: cn("text-xs text-destructive hover:underline"),
|
|
17401
|
+
onClick: () => r([]),
|
|
17402
|
+
type: "button",
|
|
17403
|
+
children: "clear all"
|
|
17404
|
+
})
|
|
17376
17405
|
]
|
|
17377
17406
|
}),
|
|
17378
|
-
(0, import_jsx_runtime.jsx)("
|
|
17379
|
-
className:
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17407
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
17408
|
+
className: "markdown",
|
|
17409
|
+
children: (0, import_jsx_runtime.jsx)("ul", {
|
|
17410
|
+
style: {
|
|
17411
|
+
marginBlock: 0
|
|
17412
|
+
},
|
|
17413
|
+
className: "m-0 text-xs text-muted-foreground",
|
|
17414
|
+
children: YU
|
|
17415
|
+
})
|
|
17383
17416
|
})
|
|
17384
17417
|
]
|
|
17385
|
-
}),
|
|
17386
|
-
(0, import_jsx_runtime.jsx)("div", {
|
|
17387
|
-
className: "markdown",
|
|
17388
|
-
children: (0, import_jsx_runtime.jsx)("ul", {
|
|
17389
|
-
style: {
|
|
17390
|
-
marginBlock: 0
|
|
17391
|
-
},
|
|
17392
|
-
className: "m-0 text-xs text-muted-foreground",
|
|
17393
|
-
children: XU
|
|
17394
|
-
})
|
|
17395
17418
|
})
|
|
17396
|
-
|
|
17397
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] = KU, r[69] = z, r[70] = Z, r[71] = JU, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = YU, r[79] = XU, r[80] = d, r[81] = ZU, r[82] = l, r[83] = T, r[84] = c.length, r[85] = $U, r[86] = eW, r[87] = tW, r[88] = nW, r[89] = rW, r[90] = iW, r[91] = aW;
|
|
17398
|
-
} else $U = r[85], eW = r[86], tW = r[87], nW = r[88], rW = r[89], iW = r[90], aW = r[91];
|
|
17399
|
-
let oW;
|
|
17400
|
-
r[112] !== rW || r[113] !== iW ? (oW = (0, import_jsx_runtime.jsx)("div", {
|
|
17401
|
-
className: rW,
|
|
17402
|
-
children: iW
|
|
17403
|
-
}), r[112] = rW, r[113] = iW, r[114] = oW) : oW = r[114];
|
|
17404
|
-
let sW;
|
|
17405
|
-
return r[115] !== $U || r[116] !== eW || r[117] !== tW || r[118] !== nW || r[119] !== oW || r[120] !== aW ? (sW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17406
|
-
children: [
|
|
17407
|
-
aW,
|
|
17408
|
-
$U,
|
|
17409
|
-
eW,
|
|
17410
|
-
tW,
|
|
17411
|
-
nW,
|
|
17412
|
-
oW
|
|
17419
|
+
})
|
|
17413
17420
|
]
|
|
17414
|
-
})
|
|
17415
|
-
}
|
|
17416
|
-
function _temp$12(e) {
|
|
17417
|
-
return e.path;
|
|
17418
|
-
}
|
|
17419
|
-
function _temp2$7(e) {
|
|
17420
|
-
return (0, import_jsx_runtime.jsx)("li", {
|
|
17421
|
-
children: e.path
|
|
17422
|
-
}, e.id);
|
|
17423
|
-
}
|
|
17424
|
-
function _temp3$5(e) {
|
|
17425
|
-
return (0, import_jsx_runtime.jsx)("option", {
|
|
17426
|
-
value: e,
|
|
17427
|
-
children: e
|
|
17428
|
-
}, e);
|
|
17429
|
-
}
|
|
17430
|
-
const COMMON_MIME_TYPES = /* @__PURE__ */ new Map([
|
|
17421
|
+
});
|
|
17422
|
+
}, COMMON_MIME_TYPES = /* @__PURE__ */ new Map([
|
|
17431
17423
|
[
|
|
17432
17424
|
"1km",
|
|
17433
17425
|
"application/vnd.1000minds.decision-model+xml"
|
|
@@ -22801,55 +22793,55 @@ ${c}
|
|
|
22801
22793
|
return typeof S == "function" ? S : noop$2;
|
|
22802
22794
|
}, [
|
|
22803
22795
|
S
|
|
22804
|
-
]), q = (0, import_react.useRef)(null),
|
|
22805
|
-
!
|
|
22806
|
-
|
|
22796
|
+
]), q = (0, import_react.useRef)(null), UU = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), WU = Z[0], GU = Z[1], KU = WU.isFocused, qU = WU.isFileDialogActive, JU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), YU = function() {
|
|
22797
|
+
!JU.current && qU && setTimeout(function() {
|
|
22798
|
+
UU.current && (UU.current.files.length || (GU({
|
|
22807
22799
|
type: "closeDialog"
|
|
22808
22800
|
}), G()));
|
|
22809
22801
|
}, 300);
|
|
22810
22802
|
};
|
|
22811
22803
|
(0, import_react.useEffect)(function() {
|
|
22812
|
-
return window.addEventListener("focus",
|
|
22813
|
-
window.removeEventListener("focus",
|
|
22804
|
+
return window.addEventListener("focus", YU, false), function() {
|
|
22805
|
+
window.removeEventListener("focus", YU, false);
|
|
22814
22806
|
};
|
|
22815
22807
|
}, [
|
|
22816
|
-
|
|
22817
|
-
|
|
22808
|
+
UU,
|
|
22809
|
+
qU,
|
|
22818
22810
|
G,
|
|
22819
|
-
|
|
22811
|
+
JU
|
|
22820
22812
|
]);
|
|
22821
|
-
var
|
|
22822
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22813
|
+
var XU = (0, import_react.useRef)([]), ZU = (0, import_react.useRef)([]), QU = function(e2) {
|
|
22814
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), XU.current = []);
|
|
22823
22815
|
};
|
|
22824
22816
|
(0, import_react.useEffect)(function() {
|
|
22825
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22826
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22817
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", QU, false)), function() {
|
|
22818
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", QU));
|
|
22827
22819
|
};
|
|
22828
22820
|
}, [
|
|
22829
22821
|
q,
|
|
22830
22822
|
O
|
|
22831
22823
|
]), (0, import_react.useEffect)(function() {
|
|
22832
22824
|
var e2 = function(e3) {
|
|
22833
|
-
|
|
22825
|
+
ZU.current = [].concat(_toConsumableArray(ZU.current), [
|
|
22834
22826
|
e3.target
|
|
22835
|
-
]), isEvtWithFiles(e3) &&
|
|
22827
|
+
]), isEvtWithFiles(e3) && GU({
|
|
22836
22828
|
isDragGlobal: true,
|
|
22837
22829
|
type: "setDragGlobal"
|
|
22838
22830
|
});
|
|
22839
22831
|
}, r2 = function(e3) {
|
|
22840
|
-
|
|
22832
|
+
ZU.current = ZU.current.filter(function(r3) {
|
|
22841
22833
|
return r3 !== e3.target && r3 !== null;
|
|
22842
|
-
}), !(
|
|
22834
|
+
}), !(ZU.current.length > 0) && GU({
|
|
22843
22835
|
isDragGlobal: false,
|
|
22844
22836
|
type: "setDragGlobal"
|
|
22845
22837
|
});
|
|
22846
22838
|
}, c2 = function() {
|
|
22847
|
-
|
|
22839
|
+
ZU.current = [], GU({
|
|
22848
22840
|
isDragGlobal: false,
|
|
22849
22841
|
type: "setDragGlobal"
|
|
22850
22842
|
});
|
|
22851
22843
|
}, l2 = function() {
|
|
22852
|
-
|
|
22844
|
+
ZU.current = [], GU({
|
|
22853
22845
|
isDragGlobal: false,
|
|
22854
22846
|
type: "setDragGlobal"
|
|
22855
22847
|
});
|
|
@@ -22867,12 +22859,12 @@ ${c}
|
|
|
22867
22859
|
E,
|
|
22868
22860
|
l
|
|
22869
22861
|
]);
|
|
22870
|
-
var
|
|
22862
|
+
var $U = (0, import_react.useCallback)(function(e2) {
|
|
22871
22863
|
R ? R(e2) : console.error(e2);
|
|
22872
22864
|
}, [
|
|
22873
22865
|
R
|
|
22874
|
-
]),
|
|
22875
|
-
e2.preventDefault(), e2.persist(),
|
|
22866
|
+
]), eW = (0, import_react.useCallback)(function(e2) {
|
|
22867
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [].concat(_toConsumableArray(XU.current), [
|
|
22876
22868
|
e2.target
|
|
22877
22869
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22878
22870
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22885,7 +22877,7 @@ ${c}
|
|
|
22885
22877
|
maxFiles: m,
|
|
22886
22878
|
validator: z
|
|
22887
22879
|
});
|
|
22888
|
-
|
|
22880
|
+
GU({
|
|
22889
22881
|
isDragAccept: l2,
|
|
22890
22882
|
isDragReject: c2 > 0 && !l2,
|
|
22891
22883
|
isDragActive: true,
|
|
@@ -22893,12 +22885,12 @@ ${c}
|
|
|
22893
22885
|
}), h && h(e2);
|
|
22894
22886
|
}
|
|
22895
22887
|
}).catch(function(e3) {
|
|
22896
|
-
return
|
|
22888
|
+
return $U(e3);
|
|
22897
22889
|
});
|
|
22898
22890
|
}, [
|
|
22899
22891
|
u,
|
|
22900
22892
|
h,
|
|
22901
|
-
|
|
22893
|
+
$U,
|
|
22902
22894
|
L,
|
|
22903
22895
|
B,
|
|
22904
22896
|
f,
|
|
@@ -22906,8 +22898,8 @@ ${c}
|
|
|
22906
22898
|
p,
|
|
22907
22899
|
m,
|
|
22908
22900
|
z
|
|
22909
|
-
]),
|
|
22910
|
-
e2.preventDefault(), e2.persist(),
|
|
22901
|
+
]), tW = (0, import_react.useCallback)(function(e2) {
|
|
22902
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
22911
22903
|
var r2 = isEvtWithFiles(e2);
|
|
22912
22904
|
if (r2 && e2.dataTransfer) try {
|
|
22913
22905
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22917,12 +22909,12 @@ ${c}
|
|
|
22917
22909
|
}, [
|
|
22918
22910
|
_,
|
|
22919
22911
|
L
|
|
22920
|
-
]),
|
|
22921
|
-
e2.preventDefault(), e2.persist(),
|
|
22922
|
-
var r2 =
|
|
22912
|
+
]), nW = (0, import_react.useCallback)(function(e2) {
|
|
22913
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
22914
|
+
var r2 = XU.current.filter(function(e3) {
|
|
22923
22915
|
return q.current && q.current.contains(e3);
|
|
22924
22916
|
}), c2 = r2.indexOf(e2.target);
|
|
22925
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22917
|
+
c2 !== -1 && r2.splice(c2, 1), XU.current = r2, !(r2.length > 0) && (GU({
|
|
22926
22918
|
type: "setDraggedFiles",
|
|
22927
22919
|
isDragActive: false,
|
|
22928
22920
|
isDragAccept: false,
|
|
@@ -22932,7 +22924,7 @@ ${c}
|
|
|
22932
22924
|
q,
|
|
22933
22925
|
g,
|
|
22934
22926
|
L
|
|
22935
|
-
]),
|
|
22927
|
+
]), rW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22936
22928
|
var c2 = [], l2 = [];
|
|
22937
22929
|
e2.forEach(function(e3) {
|
|
22938
22930
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -22956,14 +22948,14 @@ ${c}
|
|
|
22956
22948
|
TOO_MANY_FILES_REJECTION
|
|
22957
22949
|
]
|
|
22958
22950
|
});
|
|
22959
|
-
}), c2.splice(0)),
|
|
22951
|
+
}), c2.splice(0)), GU({
|
|
22960
22952
|
acceptedFiles: c2,
|
|
22961
22953
|
fileRejections: l2,
|
|
22962
22954
|
isDragReject: l2.length > 0,
|
|
22963
22955
|
type: "setFiles"
|
|
22964
22956
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
22965
22957
|
}, [
|
|
22966
|
-
|
|
22958
|
+
GU,
|
|
22967
22959
|
p,
|
|
22968
22960
|
B,
|
|
22969
22961
|
f,
|
|
@@ -22973,22 +22965,22 @@ ${c}
|
|
|
22973
22965
|
y,
|
|
22974
22966
|
b,
|
|
22975
22967
|
z
|
|
22976
|
-
]),
|
|
22977
|
-
e2.preventDefault(), e2.persist(),
|
|
22978
|
-
isPropagationStopped(e2) && !L ||
|
|
22968
|
+
]), iW = (0, import_react.useCallback)(function(e2) {
|
|
22969
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22970
|
+
isPropagationStopped(e2) && !L || rW(r2, e2);
|
|
22979
22971
|
}).catch(function(e3) {
|
|
22980
|
-
return
|
|
22981
|
-
}),
|
|
22972
|
+
return $U(e3);
|
|
22973
|
+
}), GU({
|
|
22982
22974
|
type: "reset"
|
|
22983
22975
|
});
|
|
22984
22976
|
}, [
|
|
22985
22977
|
u,
|
|
22986
|
-
|
|
22987
|
-
|
|
22978
|
+
rW,
|
|
22979
|
+
$U,
|
|
22988
22980
|
L
|
|
22989
|
-
]),
|
|
22990
|
-
if (
|
|
22991
|
-
|
|
22981
|
+
]), aW = (0, import_react.useCallback)(function() {
|
|
22982
|
+
if (JU.current) {
|
|
22983
|
+
GU({
|
|
22992
22984
|
type: "openDialog"
|
|
22993
22985
|
}), W();
|
|
22994
22986
|
var e2 = {
|
|
@@ -22998,66 +22990,66 @@ ${c}
|
|
|
22998
22990
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
22999
22991
|
return u(e3);
|
|
23000
22992
|
}).then(function(e3) {
|
|
23001
|
-
|
|
22993
|
+
rW(e3, null), GU({
|
|
23002
22994
|
type: "closeDialog"
|
|
23003
22995
|
});
|
|
23004
22996
|
}).catch(function(e3) {
|
|
23005
|
-
isAbort(e3) ? (G(e3),
|
|
22997
|
+
isAbort(e3) ? (G(e3), GU({
|
|
23006
22998
|
type: "closeDialog"
|
|
23007
|
-
})) : isSecurityError(e3) ? (
|
|
22999
|
+
})) : isSecurityError(e3) ? (JU.current = false, UU.current ? (UU.current.value = null, UU.current.click()) : $U(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."))) : $U(e3);
|
|
23008
23000
|
});
|
|
23009
23001
|
return;
|
|
23010
23002
|
}
|
|
23011
|
-
|
|
23003
|
+
UU.current && (GU({
|
|
23012
23004
|
type: "openDialog"
|
|
23013
|
-
}), W(),
|
|
23005
|
+
}), W(), UU.current.value = null, UU.current.click());
|
|
23014
23006
|
}, [
|
|
23015
|
-
|
|
23007
|
+
GU,
|
|
23016
23008
|
W,
|
|
23017
23009
|
G,
|
|
23018
23010
|
T,
|
|
23019
|
-
|
|
23020
|
-
|
|
23011
|
+
rW,
|
|
23012
|
+
$U,
|
|
23021
23013
|
H,
|
|
23022
23014
|
p
|
|
23023
|
-
]),
|
|
23024
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23015
|
+
]), oW = (0, import_react.useCallback)(function(e2) {
|
|
23016
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), aW());
|
|
23025
23017
|
}, [
|
|
23026
23018
|
q,
|
|
23027
|
-
|
|
23028
|
-
]),
|
|
23029
|
-
|
|
23019
|
+
aW
|
|
23020
|
+
]), sW = (0, import_react.useCallback)(function() {
|
|
23021
|
+
GU({
|
|
23030
23022
|
type: "focus"
|
|
23031
23023
|
});
|
|
23032
|
-
}, []),
|
|
23033
|
-
|
|
23024
|
+
}, []), cW = (0, import_react.useCallback)(function() {
|
|
23025
|
+
GU({
|
|
23034
23026
|
type: "blur"
|
|
23035
23027
|
});
|
|
23036
|
-
}, []),
|
|
23037
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23028
|
+
}, []), lW = (0, import_react.useCallback)(function() {
|
|
23029
|
+
j || (isIeOrEdge() ? setTimeout(aW, 0) : aW());
|
|
23038
23030
|
}, [
|
|
23039
23031
|
j,
|
|
23040
|
-
|
|
23041
|
-
]),
|
|
23032
|
+
aW
|
|
23033
|
+
]), uW = function(e2) {
|
|
23042
23034
|
return l ? null : e2;
|
|
23043
|
-
},
|
|
23044
|
-
return M ? null :
|
|
23045
|
-
},
|
|
23046
|
-
return I ? null :
|
|
23047
|
-
},
|
|
23035
|
+
}, dW = function(e2) {
|
|
23036
|
+
return M ? null : uW(e2);
|
|
23037
|
+
}, fW = function(e2) {
|
|
23038
|
+
return I ? null : uW(e2);
|
|
23039
|
+
}, pW = function(e2) {
|
|
23048
23040
|
L && e2.stopPropagation();
|
|
23049
|
-
},
|
|
23041
|
+
}, mW = (0, import_react.useMemo)(function() {
|
|
23050
23042
|
return function() {
|
|
23051
23043
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
23052
23044
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23053
|
-
onKeyDown:
|
|
23054
|
-
onFocus:
|
|
23055
|
-
onBlur:
|
|
23056
|
-
onClick:
|
|
23057
|
-
onDragEnter:
|
|
23058
|
-
onDragOver:
|
|
23059
|
-
onDragLeave:
|
|
23060
|
-
onDrop:
|
|
23045
|
+
onKeyDown: dW(composeEventHandlers(d2, oW)),
|
|
23046
|
+
onFocus: dW(composeEventHandlers(f2, sW)),
|
|
23047
|
+
onBlur: dW(composeEventHandlers(p2, cW)),
|
|
23048
|
+
onClick: uW(composeEventHandlers(m2, lW)),
|
|
23049
|
+
onDragEnter: fW(composeEventHandlers(h2, eW)),
|
|
23050
|
+
onDragOver: fW(composeEventHandlers(g2, tW)),
|
|
23051
|
+
onDragLeave: fW(composeEventHandlers(_2, nW)),
|
|
23052
|
+
onDrop: fW(composeEventHandlers(v2, iW)),
|
|
23061
23053
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23062
23054
|
}, c2, q), !l && !M ? {
|
|
23063
23055
|
tabIndex: 0
|
|
@@ -23065,20 +23057,20 @@ ${c}
|
|
|
23065
23057
|
};
|
|
23066
23058
|
}, [
|
|
23067
23059
|
q,
|
|
23060
|
+
oW,
|
|
23061
|
+
sW,
|
|
23062
|
+
cW,
|
|
23068
23063
|
lW,
|
|
23069
|
-
|
|
23070
|
-
|
|
23071
|
-
|
|
23072
|
-
rW,
|
|
23064
|
+
eW,
|
|
23065
|
+
tW,
|
|
23066
|
+
nW,
|
|
23073
23067
|
iW,
|
|
23074
|
-
aW,
|
|
23075
|
-
sW,
|
|
23076
23068
|
M,
|
|
23077
23069
|
I,
|
|
23078
23070
|
l
|
|
23079
|
-
]),
|
|
23071
|
+
]), hW = (0, import_react.useCallback)(function(e2) {
|
|
23080
23072
|
e2.stopPropagation();
|
|
23081
|
-
}, []),
|
|
23073
|
+
}, []), gW = (0, import_react.useMemo)(function() {
|
|
23082
23074
|
return function() {
|
|
23083
23075
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
23084
23076
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23097,25 +23089,25 @@ ${c}
|
|
|
23097
23089
|
width: "1px",
|
|
23098
23090
|
whiteSpace: "nowrap"
|
|
23099
23091
|
},
|
|
23100
|
-
onChange:
|
|
23101
|
-
onClick:
|
|
23092
|
+
onChange: uW(composeEventHandlers(l2, iW)),
|
|
23093
|
+
onClick: uW(composeEventHandlers(u2, hW)),
|
|
23102
23094
|
tabIndex: -1
|
|
23103
|
-
}, c2,
|
|
23095
|
+
}, c2, UU)), d2);
|
|
23104
23096
|
};
|
|
23105
23097
|
}, [
|
|
23106
|
-
|
|
23098
|
+
UU,
|
|
23107
23099
|
c,
|
|
23108
23100
|
p,
|
|
23109
|
-
|
|
23101
|
+
iW,
|
|
23110
23102
|
l
|
|
23111
23103
|
]);
|
|
23112
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23113
|
-
isFocused:
|
|
23114
|
-
getRootProps:
|
|
23115
|
-
getInputProps:
|
|
23104
|
+
return _objectSpread$7(_objectSpread$7({}, WU), {}, {
|
|
23105
|
+
isFocused: KU && !l,
|
|
23106
|
+
getRootProps: mW,
|
|
23107
|
+
getInputProps: gW,
|
|
23116
23108
|
rootRef: q,
|
|
23117
|
-
inputRef:
|
|
23118
|
-
open:
|
|
23109
|
+
inputRef: UU,
|
|
23110
|
+
open: uW(aW)
|
|
23119
23111
|
});
|
|
23120
23112
|
}
|
|
23121
23113
|
function reducer$2(e, r) {
|
|
@@ -23347,47 +23339,47 @@ ${c}
|
|
|
23347
23339
|
html: I
|
|
23348
23340
|
})
|
|
23349
23341
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23350
|
-
let q = w && "text-primary",
|
|
23351
|
-
r[48] !== q || r[49] !==
|
|
23352
|
-
let
|
|
23353
|
-
r[51] === Z ?
|
|
23342
|
+
let q = w && "text-primary", UU = T && "text-destructive", Z;
|
|
23343
|
+
r[48] !== q || r[49] !== UU ? (Z = cn(q, UU), r[48] = q, r[49] = UU, r[50] = Z) : Z = r[50];
|
|
23344
|
+
let WU;
|
|
23345
|
+
r[51] === Z ? WU = r[52] : (WU = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23354
23346
|
strokeWidth: 1.4,
|
|
23355
23347
|
className: Z
|
|
23356
|
-
}), r[51] = Z, r[52] =
|
|
23357
|
-
let
|
|
23358
|
-
r[53] !==
|
|
23359
|
-
let
|
|
23360
|
-
r[56] ===
|
|
23348
|
+
}), r[51] = Z, r[52] = WU);
|
|
23349
|
+
let GU = w && "text-primary", KU = T && "text-destructive", qU;
|
|
23350
|
+
r[53] !== GU || r[54] !== KU ? (qU = cn(GU, KU), r[53] = GU, r[54] = KU, r[55] = qU) : qU = r[55];
|
|
23351
|
+
let JU;
|
|
23352
|
+
r[56] === qU ? JU = r[57] : (JU = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23361
23353
|
strokeWidth: 1.4,
|
|
23362
|
-
className:
|
|
23363
|
-
}), r[56] =
|
|
23364
|
-
let
|
|
23365
|
-
r[58] !==
|
|
23354
|
+
className: qU
|
|
23355
|
+
}), r[56] = qU, r[57] = JU);
|
|
23356
|
+
let YU;
|
|
23357
|
+
r[58] !== WU || r[59] !== JU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23366
23358
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23367
23359
|
children: [
|
|
23368
|
-
|
|
23369
|
-
|
|
23360
|
+
WU,
|
|
23361
|
+
JU
|
|
23370
23362
|
]
|
|
23371
|
-
}), r[58] =
|
|
23372
|
-
let
|
|
23373
|
-
r[61] !== G || r[62] !==
|
|
23363
|
+
}), r[58] = WU, r[59] = JU, r[60] = YU) : YU = r[60];
|
|
23364
|
+
let XU;
|
|
23365
|
+
r[61] !== G || r[62] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23374
23366
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23375
23367
|
children: [
|
|
23376
23368
|
G,
|
|
23377
|
-
|
|
23369
|
+
YU
|
|
23378
23370
|
]
|
|
23379
|
-
}), r[61] = G, r[62] =
|
|
23380
|
-
let
|
|
23381
|
-
r[64] !== W || r[65] !==
|
|
23371
|
+
}), r[61] = G, r[62] = YU, r[63] = XU) : XU = r[63];
|
|
23372
|
+
let ZU;
|
|
23373
|
+
r[64] !== W || r[65] !== XU || r[66] !== z || r[67] !== B ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23382
23374
|
className: z,
|
|
23383
23375
|
...B,
|
|
23384
23376
|
children: [
|
|
23385
23377
|
W,
|
|
23386
|
-
|
|
23378
|
+
XU
|
|
23387
23379
|
]
|
|
23388
|
-
}), r[64] = W, r[65] =
|
|
23389
|
-
let
|
|
23390
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23380
|
+
}), r[64] = W, r[65] = XU, r[66] = z, r[67] = B, r[68] = ZU) : ZU = r[68];
|
|
23381
|
+
let QU;
|
|
23382
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (QU = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23391
23383
|
className: "flex flex-row gap-1",
|
|
23392
23384
|
children: [
|
|
23393
23385
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23423,17 +23415,17 @@ ${c}
|
|
|
23423
23415
|
})
|
|
23424
23416
|
})
|
|
23425
23417
|
]
|
|
23426
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23427
|
-
let
|
|
23428
|
-
return r[75] !==
|
|
23418
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = QU) : QU = r[74];
|
|
23419
|
+
let $U;
|
|
23420
|
+
return r[75] !== ZU || r[76] !== QU ? ($U = (0, import_jsx_runtime.jsx)("section", {
|
|
23429
23421
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23430
23422
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23431
23423
|
children: [
|
|
23432
|
-
|
|
23433
|
-
|
|
23424
|
+
ZU,
|
|
23425
|
+
QU
|
|
23434
23426
|
]
|
|
23435
23427
|
})
|
|
23436
|
-
}), r[75] =
|
|
23428
|
+
}), r[75] = ZU, r[76] = QU, r[77] = $U) : $U = r[77], $U;
|
|
23437
23429
|
};
|
|
23438
23430
|
function _temp$11(e) {
|
|
23439
23431
|
Logger.error(e), toast({
|
|
@@ -23529,75 +23521,75 @@ ${c}
|
|
|
23529
23521
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23530
23522
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23531
23523
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23532
|
-
let
|
|
23533
|
-
r[13] === f ?
|
|
23524
|
+
let UU;
|
|
23525
|
+
r[13] === f ? UU = r[14] : (UU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23534
23526
|
className: "text-center",
|
|
23535
23527
|
children: renderHTML({
|
|
23536
23528
|
html: f
|
|
23537
23529
|
})
|
|
23538
|
-
}), r[13] = f, r[14] =
|
|
23530
|
+
}), r[13] = f, r[14] = UU);
|
|
23539
23531
|
let Z;
|
|
23540
23532
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23541
23533
|
kind: "danger",
|
|
23542
23534
|
className: "rounded",
|
|
23543
23535
|
children: L ?? "Invalid input"
|
|
23544
23536
|
}), r[15] = L, r[16] = Z);
|
|
23545
|
-
let
|
|
23546
|
-
r[17] === c ?
|
|
23537
|
+
let WU;
|
|
23538
|
+
r[17] === c ? WU = r[18] : (WU = (0, import_jsx_runtime.jsx)("div", {
|
|
23547
23539
|
children: c
|
|
23548
|
-
}), r[17] = c, r[18] =
|
|
23549
|
-
let
|
|
23550
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23540
|
+
}), r[17] = c, r[18] = WU);
|
|
23541
|
+
let GU;
|
|
23542
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (GU = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23551
23543
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23552
23544
|
variant: "text",
|
|
23553
23545
|
onClick: (e2) => {
|
|
23554
23546
|
e2.preventDefault(), B();
|
|
23555
23547
|
},
|
|
23556
23548
|
children: S
|
|
23557
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23558
|
-
let
|
|
23559
|
-
r[23] === h ?
|
|
23549
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = GU) : GU = r[22];
|
|
23550
|
+
let KU = v || h, qU;
|
|
23551
|
+
r[23] === h ? qU = r[24] : (qU = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23560
23552
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23561
|
-
}), r[23] = h, r[24] =
|
|
23562
|
-
let
|
|
23563
|
-
r[25] !== g || r[26] !==
|
|
23553
|
+
}), r[23] = h, r[24] = qU);
|
|
23554
|
+
let JU;
|
|
23555
|
+
r[25] !== g || r[26] !== KU || r[27] !== qU || r[28] !== I ? (JU = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23564
23556
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23565
23557
|
variant: I,
|
|
23566
|
-
disabled:
|
|
23558
|
+
disabled: KU,
|
|
23567
23559
|
type: "submit",
|
|
23568
23560
|
children: [
|
|
23569
|
-
|
|
23561
|
+
qU,
|
|
23570
23562
|
g
|
|
23571
23563
|
]
|
|
23572
|
-
}), r[25] = g, r[26] =
|
|
23573
|
-
let
|
|
23574
|
-
r[30] !== _ || r[31] !==
|
|
23575
|
-
let
|
|
23576
|
-
r[33] !==
|
|
23564
|
+
}), r[25] = g, r[26] = KU, r[27] = qU, r[28] = I, r[29] = JU) : JU = r[29];
|
|
23565
|
+
let YU;
|
|
23566
|
+
r[30] !== _ || r[31] !== JU ? (YU = withTooltip(JU, _), r[30] = _, r[31] = JU, r[32] = YU) : YU = r[32];
|
|
23567
|
+
let XU;
|
|
23568
|
+
r[33] !== YU || r[34] !== GU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23577
23569
|
className: "flex justify-end gap-2 font-code",
|
|
23578
23570
|
children: [
|
|
23579
|
-
|
|
23580
|
-
|
|
23571
|
+
GU,
|
|
23572
|
+
YU
|
|
23581
23573
|
]
|
|
23582
|
-
}), r[33] =
|
|
23583
|
-
let
|
|
23584
|
-
r[36] !==
|
|
23574
|
+
}), r[33] = YU, r[34] = GU, r[35] = XU) : XU = r[35];
|
|
23575
|
+
let ZU;
|
|
23576
|
+
r[36] !== XU || r[37] !== G || r[38] !== q || r[39] !== UU || r[40] !== Z || r[41] !== WU ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23585
23577
|
className: G,
|
|
23586
23578
|
onKeyDown: q,
|
|
23587
23579
|
children: [
|
|
23588
|
-
|
|
23580
|
+
UU,
|
|
23589
23581
|
Z,
|
|
23590
|
-
|
|
23591
|
-
|
|
23582
|
+
WU,
|
|
23583
|
+
XU
|
|
23592
23584
|
]
|
|
23593
|
-
}), r[36] =
|
|
23594
|
-
let
|
|
23595
|
-
return r[43] !==
|
|
23585
|
+
}), r[36] = XU, r[37] = G, r[38] = q, r[39] = UU, r[40] = Z, r[41] = WU, r[42] = ZU) : ZU = r[42];
|
|
23586
|
+
let QU;
|
|
23587
|
+
return r[43] !== ZU || r[44] !== H ? (QU = (0, import_jsx_runtime.jsx)("form", {
|
|
23596
23588
|
className: "contents",
|
|
23597
23589
|
ref: j,
|
|
23598
23590
|
onSubmit: H,
|
|
23599
|
-
children:
|
|
23600
|
-
}), r[43] =
|
|
23591
|
+
children: ZU
|
|
23592
|
+
}), r[43] = ZU, r[44] = H, r[45] = QU) : QU = r[45], QU;
|
|
23601
23593
|
};
|
|
23602
23594
|
var Form = (e) => {
|
|
23603
23595
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -25370,8 +25362,8 @@ ${c}
|
|
|
25370
25362
|
points: extractSunburstPoints(e2.points)
|
|
25371
25363
|
}));
|
|
25372
25364
|
}, r[29] = u, r[30] = G);
|
|
25373
|
-
let q = useEvent_default(G),
|
|
25374
|
-
r[31] === u ?
|
|
25365
|
+
let q = useEvent_default(G), UU;
|
|
25366
|
+
r[31] === u ? UU = r[32] : (UU = (e2) => {
|
|
25375
25367
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25376
25368
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25377
25369
|
u((e3) => ({
|
|
@@ -25382,9 +25374,9 @@ ${c}
|
|
|
25382
25374
|
points: r2,
|
|
25383
25375
|
indices: c2
|
|
25384
25376
|
}));
|
|
25385
|
-
}, r[31] = u, r[32] =
|
|
25386
|
-
let Z = useEvent_default(
|
|
25387
|
-
r[33] === u ?
|
|
25377
|
+
}, r[31] = u, r[32] = UU);
|
|
25378
|
+
let Z = useEvent_default(UU), WU;
|
|
25379
|
+
r[33] === u ? WU = r[34] : (WU = (e2) => {
|
|
25388
25380
|
e2 && u((r2) => ({
|
|
25389
25381
|
...r2,
|
|
25390
25382
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25393,9 +25385,9 @@ ${c}
|
|
|
25393
25385
|
range: e2.range,
|
|
25394
25386
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25395
25387
|
}));
|
|
25396
|
-
}, r[33] = u, r[34] =
|
|
25397
|
-
let
|
|
25398
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
25388
|
+
}, r[33] = u, r[34] = WU);
|
|
25389
|
+
let GU = useEvent_default(WU), KU = m.frames ?? void 0, qU = useEvent_default(_temp3$3), JU;
|
|
25390
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== GU || r[43] !== KU || r[44] !== qU || r[45] !== R ? (JU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25399
25391
|
...m,
|
|
25400
25392
|
layout: h,
|
|
25401
25393
|
onRelayout: R,
|
|
@@ -25404,12 +25396,12 @@ ${c}
|
|
|
25404
25396
|
onSunburstClick: q,
|
|
25405
25397
|
config: L,
|
|
25406
25398
|
onClick: Z,
|
|
25407
|
-
onSelected:
|
|
25399
|
+
onSelected: GU,
|
|
25408
25400
|
className: "w-full",
|
|
25409
25401
|
useResizeHandler: true,
|
|
25410
|
-
frames:
|
|
25411
|
-
onError:
|
|
25412
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
25402
|
+
frames: KU,
|
|
25403
|
+
onError: qU
|
|
25404
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = GU, r[43] = KU, r[44] = qU, r[45] = R, r[46] = JU) : JU = r[46], JU;
|
|
25413
25405
|
});
|
|
25414
25406
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25415
25407
|
function _temp$8(e) {
|
|
@@ -25541,8 +25533,8 @@ ${c}
|
|
|
25541
25533
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
25542
25534
|
let q;
|
|
25543
25535
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
25544
|
-
let
|
|
25545
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25536
|
+
let UU;
|
|
25537
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (UU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25546
25538
|
ref: E,
|
|
25547
25539
|
"data-testid": "track",
|
|
25548
25540
|
className: G,
|
|
@@ -25553,7 +25545,7 @@ ${c}
|
|
|
25553
25545
|
onPointerMove: z,
|
|
25554
25546
|
onPointerUp: H
|
|
25555
25547
|
})
|
|
25556
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25548
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = UU) : UU = c[22];
|
|
25557
25549
|
let Z;
|
|
25558
25550
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25559
25551
|
asChild: true,
|
|
@@ -25566,29 +25558,29 @@ ${c}
|
|
|
25566
25558
|
onMouseLeave: m.setFalse
|
|
25567
25559
|
})
|
|
25568
25560
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25569
|
-
let
|
|
25570
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25561
|
+
let WU;
|
|
25562
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (WU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25571
25563
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25572
25564
|
locale: h
|
|
25573
25565
|
})
|
|
25574
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25575
|
-
let
|
|
25576
|
-
c[30] ===
|
|
25577
|
-
children:
|
|
25578
|
-
}), c[30] =
|
|
25579
|
-
let
|
|
25580
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
25566
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = WU) : WU = c[29];
|
|
25567
|
+
let GU;
|
|
25568
|
+
c[30] === WU ? GU = c[31] : (GU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25569
|
+
children: WU
|
|
25570
|
+
}), c[30] = WU, c[31] = GU);
|
|
25571
|
+
let KU;
|
|
25572
|
+
c[32] !== f || c[33] !== Z || c[34] !== GU ? (KU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25581
25573
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25582
25574
|
delayDuration: 0,
|
|
25583
25575
|
open: f,
|
|
25584
25576
|
children: [
|
|
25585
25577
|
Z,
|
|
25586
|
-
|
|
25578
|
+
GU
|
|
25587
25579
|
]
|
|
25588
25580
|
})
|
|
25589
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
25590
|
-
let
|
|
25591
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25581
|
+
}), c[32] = f, c[33] = Z, c[34] = GU, c[35] = KU) : KU = c[35];
|
|
25582
|
+
let qU;
|
|
25583
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (qU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25592
25584
|
asChild: true,
|
|
25593
25585
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25594
25586
|
"data-testid": "thumb",
|
|
@@ -25598,39 +25590,39 @@ ${c}
|
|
|
25598
25590
|
onMouseEnter: m.setTrue,
|
|
25599
25591
|
onMouseLeave: m.setFalse
|
|
25600
25592
|
})
|
|
25601
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25602
|
-
let
|
|
25603
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25593
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = qU) : qU = c[38];
|
|
25594
|
+
let JU;
|
|
25595
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (JU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25604
25596
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25605
25597
|
locale: h
|
|
25606
25598
|
})
|
|
25607
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25608
|
-
let
|
|
25609
|
-
c[43] ===
|
|
25610
|
-
children:
|
|
25611
|
-
}), c[43] =
|
|
25612
|
-
let
|
|
25613
|
-
c[45] !== f || c[46] !==
|
|
25599
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = JU) : JU = c[42];
|
|
25600
|
+
let YU;
|
|
25601
|
+
c[43] === JU ? YU = c[44] : (YU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25602
|
+
children: JU
|
|
25603
|
+
}), c[43] = JU, c[44] = YU);
|
|
25604
|
+
let XU;
|
|
25605
|
+
c[45] !== f || c[46] !== qU || c[47] !== YU ? (XU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25614
25606
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25615
25607
|
delayDuration: 0,
|
|
25616
25608
|
open: f,
|
|
25617
25609
|
children: [
|
|
25618
|
-
|
|
25619
|
-
|
|
25610
|
+
qU,
|
|
25611
|
+
YU
|
|
25620
25612
|
]
|
|
25621
25613
|
})
|
|
25622
|
-
}), c[45] = f, c[46] =
|
|
25623
|
-
let
|
|
25624
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25614
|
+
}), c[45] = f, c[46] = qU, c[47] = YU, c[48] = XU) : XU = c[48];
|
|
25615
|
+
let ZU;
|
|
25616
|
+
return c[49] !== M || c[50] !== u || c[51] !== UU || c[52] !== KU || c[53] !== XU || c[54] !== W ? (ZU = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25625
25617
|
ref: M,
|
|
25626
25618
|
className: W,
|
|
25627
25619
|
...u,
|
|
25628
25620
|
children: [
|
|
25621
|
+
UU,
|
|
25629
25622
|
KU,
|
|
25630
|
-
|
|
25631
|
-
$U
|
|
25623
|
+
XU
|
|
25632
25624
|
]
|
|
25633
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25625
|
+
}), c[49] = M, c[50] = u, c[51] = UU, c[52] = KU, c[53] = XU, c[54] = W, c[55] = ZU) : ZU = c[55], ZU;
|
|
25634
25626
|
});
|
|
25635
25627
|
RangeSlider.displayName = Root.displayName;
|
|
25636
25628
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25681,14 +25673,14 @@ ${c}
|
|
|
25681
25673
|
}, q = (e2) => {
|
|
25682
25674
|
h && l(e2);
|
|
25683
25675
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25684
|
-
let
|
|
25685
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25676
|
+
let UU, Z;
|
|
25677
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (UU = () => {
|
|
25686
25678
|
h && !dequal(T, u) && l(T);
|
|
25687
25679
|
}, Z = () => {
|
|
25688
25680
|
h && !dequal(T, u) && l(T);
|
|
25689
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25690
|
-
let
|
|
25691
|
-
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] !==
|
|
25681
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = UU, r[19] = Z) : (UU = r[18], Z = r[19]);
|
|
25682
|
+
let WU;
|
|
25683
|
+
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] !== UU || r[31] !== Z || r[32] !== b ? (WU = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25692
25684
|
id: S,
|
|
25693
25685
|
className: W,
|
|
25694
25686
|
value: T,
|
|
@@ -25699,36 +25691,36 @@ ${c}
|
|
|
25699
25691
|
disabled: y,
|
|
25700
25692
|
onValueChange: G,
|
|
25701
25693
|
onValueCommit: q,
|
|
25702
|
-
onPointerUp:
|
|
25694
|
+
onPointerUp: UU,
|
|
25703
25695
|
onMouseUp: Z,
|
|
25704
25696
|
valueMap: b
|
|
25705
|
-
}), 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] =
|
|
25706
|
-
let
|
|
25707
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25697
|
+
}), 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] = UU, r[31] = Z, r[32] = b, r[33] = WU) : WU = r[33];
|
|
25698
|
+
let GU;
|
|
25699
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (GU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25708
25700
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25709
25701
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25710
25702
|
locale: w
|
|
25711
25703
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25712
25704
|
locale: w
|
|
25713
25705
|
})}`
|
|
25714
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25715
|
-
let
|
|
25716
|
-
r[39] !==
|
|
25706
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = GU) : GU = r[38];
|
|
25707
|
+
let KU;
|
|
25708
|
+
r[39] !== WU || r[40] !== GU || r[41] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25717
25709
|
className: B,
|
|
25718
25710
|
children: [
|
|
25719
|
-
|
|
25720
|
-
|
|
25711
|
+
WU,
|
|
25712
|
+
GU
|
|
25721
25713
|
]
|
|
25722
|
-
}), r[39] =
|
|
25723
|
-
let
|
|
25724
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25714
|
+
}), r[39] = WU, r[40] = GU, r[41] = B, r[42] = KU) : KU = r[42];
|
|
25715
|
+
let qU;
|
|
25716
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== KU || r[47] !== M || r[48] !== L ? (qU = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25725
25717
|
label: c,
|
|
25726
25718
|
id: S,
|
|
25727
25719
|
align: M,
|
|
25728
25720
|
className: L,
|
|
25729
25721
|
fullWidth: v,
|
|
25730
|
-
children:
|
|
25731
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25722
|
+
children: KU
|
|
25723
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = KU, r[47] = M, r[48] = L, r[49] = qU) : qU = r[49], qU;
|
|
25732
25724
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25733
25725
|
r.exports = u;
|
|
25734
25726
|
var c = {
|
|
@@ -29019,7 +29011,7 @@ ${c}
|
|
|
29019
29011
|
areRegExpsEqual: H,
|
|
29020
29012
|
areSetsEqual: W,
|
|
29021
29013
|
createIsNestedEqual: r2
|
|
29022
|
-
}),
|
|
29014
|
+
}), UU = Object.freeze({
|
|
29023
29015
|
areArraysEqual: O,
|
|
29024
29016
|
areDatesEqual: j,
|
|
29025
29017
|
areMapsEqual: I,
|
|
@@ -29028,39 +29020,39 @@ ${c}
|
|
|
29028
29020
|
areSetsEqual: G,
|
|
29029
29021
|
createIsNestedEqual: r2
|
|
29030
29022
|
}), Z = T(q);
|
|
29031
|
-
function
|
|
29023
|
+
function WU(e3, r3) {
|
|
29032
29024
|
return Z(e3, r3, void 0);
|
|
29033
29025
|
}
|
|
29034
|
-
var
|
|
29026
|
+
var GU = T(l(q, {
|
|
29035
29027
|
createIsNestedEqual: function() {
|
|
29036
29028
|
return f;
|
|
29037
29029
|
}
|
|
29038
29030
|
}));
|
|
29039
|
-
function
|
|
29040
|
-
return
|
|
29031
|
+
function KU(e3, r3) {
|
|
29032
|
+
return GU(e3, r3, void 0);
|
|
29041
29033
|
}
|
|
29042
|
-
var
|
|
29043
|
-
function
|
|
29044
|
-
return
|
|
29034
|
+
var qU = T(UU);
|
|
29035
|
+
function JU(e3, r3) {
|
|
29036
|
+
return qU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29045
29037
|
}
|
|
29046
|
-
var
|
|
29038
|
+
var YU = T(l(UU, {
|
|
29047
29039
|
createIsNestedEqual: function() {
|
|
29048
29040
|
return f;
|
|
29049
29041
|
}
|
|
29050
29042
|
}));
|
|
29051
|
-
function
|
|
29052
|
-
return
|
|
29043
|
+
function XU(e3, r3) {
|
|
29044
|
+
return YU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29053
29045
|
}
|
|
29054
|
-
function
|
|
29046
|
+
function ZU(e3) {
|
|
29055
29047
|
return T(l(q, e3(q)));
|
|
29056
29048
|
}
|
|
29057
|
-
function
|
|
29058
|
-
var r3 = T(l(
|
|
29049
|
+
function QU(e3) {
|
|
29050
|
+
var r3 = T(l(UU, e3(UU)));
|
|
29059
29051
|
return (function(e4, c2, l2) {
|
|
29060
29052
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29061
29053
|
});
|
|
29062
29054
|
}
|
|
29063
|
-
e2.circularDeepEqual =
|
|
29055
|
+
e2.circularDeepEqual = JU, e2.circularShallowEqual = XU, e2.createCustomCircularEqual = QU, e2.createCustomEqual = ZU, e2.deepEqual = WU, e2.sameValueZeroEqual = f, e2.shallowEqual = KU, Object.defineProperty(e2, "__esModule", {
|
|
29064
29056
|
value: true
|
|
29065
29057
|
});
|
|
29066
29058
|
}));
|
|
@@ -29086,7 +29078,7 @@ ${c}
|
|
|
29086
29078
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29087
29079
|
Object.defineProperty(e, "__esModule", {
|
|
29088
29080
|
value: true
|
|
29089
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29081
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = iW, 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 = XU, e.setTopLeft = QU, e.setTransform = ZU, e.sortLayoutItems = $U, e.sortLayoutItemsByColRow = tW, e.sortLayoutItemsByRowCol = eW, e.synchronizeLayoutWithChildren = nW, e.validateLayout = rW, e.withLayoutItem = v;
|
|
29090
29082
|
var r = require_fast_equals(), c = l(require_react());
|
|
29091
29083
|
function l(e2) {
|
|
29092
29084
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29191,7 +29183,7 @@ ${c}
|
|
|
29191
29183
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
29192
29184
|
}
|
|
29193
29185
|
function T(e2, r2, c2, l2) {
|
|
29194
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29186
|
+
let u2 = B(e2), d2 = h(u2), f2 = $U(e2, r2), p2 = Array(e2.length);
|
|
29195
29187
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29196
29188
|
let h3 = y(f2[m2]);
|
|
29197
29189
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -29249,7 +29241,7 @@ ${c}
|
|
|
29249
29241
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29250
29242
|
let h2 = r2.x, _2 = r2.y;
|
|
29251
29243
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29252
|
-
let v2 =
|
|
29244
|
+
let v2 = $U(e2, f2);
|
|
29253
29245
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29254
29246
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29255
29247
|
if (b2 && m2) return g(e2);
|
|
@@ -29283,15 +29275,15 @@ ${c}
|
|
|
29283
29275
|
function G(e2) {
|
|
29284
29276
|
return e2 * 100 + "%";
|
|
29285
29277
|
}
|
|
29286
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29278
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, UU = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), WU = (e2) => Math.max(0, e2), GU = (e2, r2, c2) => {
|
|
29287
29279
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29288
29280
|
return {
|
|
29289
29281
|
left: l2,
|
|
29290
29282
|
width: d2,
|
|
29291
|
-
height:
|
|
29292
|
-
top:
|
|
29283
|
+
height: UU(f2, e2.height, u2),
|
|
29284
|
+
top: WU(f2)
|
|
29293
29285
|
};
|
|
29294
|
-
},
|
|
29286
|
+
}, KU = (e2, r2, c2) => {
|
|
29295
29287
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29296
29288
|
return {
|
|
29297
29289
|
top: l2,
|
|
@@ -29299,45 +29291,45 @@ ${c}
|
|
|
29299
29291
|
width: q(e2.left, e2.width, f2, c2),
|
|
29300
29292
|
left: Z(u2)
|
|
29301
29293
|
};
|
|
29302
|
-
},
|
|
29294
|
+
}, qU = (e2, r2, c2) => {
|
|
29303
29295
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29304
29296
|
return {
|
|
29305
29297
|
height: u2,
|
|
29306
29298
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29307
|
-
top:
|
|
29299
|
+
top: WU(l2),
|
|
29308
29300
|
left: Z(f2)
|
|
29309
29301
|
};
|
|
29310
|
-
},
|
|
29302
|
+
}, JU = (e2, r2, c2) => {
|
|
29311
29303
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29312
29304
|
return {
|
|
29313
29305
|
width: f2,
|
|
29314
29306
|
left: u2,
|
|
29315
|
-
height:
|
|
29316
|
-
top:
|
|
29307
|
+
height: UU(l2, e2.height, d2),
|
|
29308
|
+
top: WU(l2)
|
|
29317
29309
|
};
|
|
29318
|
-
},
|
|
29319
|
-
n:
|
|
29310
|
+
}, YU = {
|
|
29311
|
+
n: GU,
|
|
29320
29312
|
ne: function() {
|
|
29321
|
-
return
|
|
29313
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29322
29314
|
},
|
|
29323
|
-
e:
|
|
29315
|
+
e: KU,
|
|
29324
29316
|
se: function() {
|
|
29325
|
-
return
|
|
29317
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29326
29318
|
},
|
|
29327
|
-
s:
|
|
29319
|
+
s: JU,
|
|
29328
29320
|
sw: function() {
|
|
29329
|
-
return
|
|
29321
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29330
29322
|
},
|
|
29331
|
-
w:
|
|
29323
|
+
w: qU,
|
|
29332
29324
|
nw: function() {
|
|
29333
|
-
return
|
|
29325
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29334
29326
|
}
|
|
29335
29327
|
};
|
|
29336
|
-
function
|
|
29337
|
-
let u2 =
|
|
29328
|
+
function XU(e2, r2, c2, l2) {
|
|
29329
|
+
let u2 = YU[e2];
|
|
29338
29330
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29339
29331
|
}
|
|
29340
|
-
function
|
|
29332
|
+
function ZU(e2) {
|
|
29341
29333
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29342
29334
|
return {
|
|
29343
29335
|
transform: d2,
|
|
@@ -29350,7 +29342,7 @@ ${c}
|
|
|
29350
29342
|
position: "absolute"
|
|
29351
29343
|
};
|
|
29352
29344
|
}
|
|
29353
|
-
function
|
|
29345
|
+
function QU(e2) {
|
|
29354
29346
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29355
29347
|
return {
|
|
29356
29348
|
top: `${r2}px`,
|
|
@@ -29360,20 +29352,20 @@ ${c}
|
|
|
29360
29352
|
position: "absolute"
|
|
29361
29353
|
};
|
|
29362
29354
|
}
|
|
29363
|
-
function
|
|
29364
|
-
return r2 === "horizontal" ?
|
|
29355
|
+
function $U(e2, r2) {
|
|
29356
|
+
return r2 === "horizontal" ? tW(e2) : r2 === "vertical" ? eW(e2) : e2;
|
|
29365
29357
|
}
|
|
29366
|
-
function
|
|
29358
|
+
function eW(e2) {
|
|
29367
29359
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29368
29360
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29369
29361
|
});
|
|
29370
29362
|
}
|
|
29371
|
-
function
|
|
29363
|
+
function tW(e2) {
|
|
29372
29364
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29373
29365
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29374
29366
|
});
|
|
29375
29367
|
}
|
|
29376
|
-
function
|
|
29368
|
+
function nW(e2, r2, l2, u2, f2) {
|
|
29377
29369
|
e2 || (e2 = []);
|
|
29378
29370
|
let p2 = [];
|
|
29379
29371
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29394,7 +29386,7 @@ ${c}
|
|
|
29394
29386
|
});
|
|
29395
29387
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29396
29388
|
}
|
|
29397
|
-
function
|
|
29389
|
+
function rW(e2) {
|
|
29398
29390
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29399
29391
|
"x",
|
|
29400
29392
|
"y",
|
|
@@ -29411,7 +29403,7 @@ ${c}
|
|
|
29411
29403
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
29412
29404
|
}
|
|
29413
29405
|
}
|
|
29414
|
-
function
|
|
29406
|
+
function iW(e2) {
|
|
29415
29407
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29416
29408
|
return r2 === false ? null : c2;
|
|
29417
29409
|
}
|
|
@@ -32216,7 +32208,7 @@ ${c}
|
|
|
32216
32208
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32217
32209
|
let E = useIsDragging(), O, j;
|
|
32218
32210
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32219
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32211
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, UU, Z, WU, GU, KU, qU, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW;
|
|
32220
32212
|
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) {
|
|
32221
32213
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32222
32214
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32235,23 +32227,23 @@ ${c}
|
|
|
32235
32227
|
});
|
|
32236
32228
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32237
32229
|
let y2 = v2;
|
|
32238
|
-
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,
|
|
32230
|
+
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, tW = "lg", r[58] === c.cells ? nW = r[59] : (nW = {
|
|
32239
32231
|
lg: c.cells
|
|
32240
|
-
}, r[58] = c.cells, r[59] =
|
|
32232
|
+
}, r[58] = c.cells, r[59] = nW), rW = L, iW = S, R = false;
|
|
32241
32233
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32242
32234
|
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 ? [
|
|
32243
32235
|
20,
|
|
32244
32236
|
20
|
|
32245
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32237
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, UU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32246
32238
|
f || l({
|
|
32247
32239
|
...c,
|
|
32248
32240
|
cells: e3
|
|
32249
32241
|
});
|
|
32250
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
32242
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? WU = r[71] : (WU = g ? {
|
|
32251
32243
|
i: g.i,
|
|
32252
32244
|
w: g.w || 2,
|
|
32253
32245
|
h: g.h || 2
|
|
32254
|
-
} : void 0, r[70] = g, r[71] =
|
|
32246
|
+
} : void 0, r[70] = g, r[71] = WU), r[72] !== O || r[73] !== c || r[74] !== l ? (GU = (e3, r2, u2) => {
|
|
32255
32247
|
O.onDragStop(), r2 && l({
|
|
32256
32248
|
...c,
|
|
32257
32249
|
cells: [
|
|
@@ -32259,15 +32251,15 @@ ${c}
|
|
|
32259
32251
|
r2
|
|
32260
32252
|
]
|
|
32261
32253
|
});
|
|
32262
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32254
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = GU) : GU = r[75], r[76] === O ? (KU = r[77], qU = r[78], JU = r[79]) : (KU = (e3, r2, c2, l2, u2) => {
|
|
32263
32255
|
O.onDragStart(u2);
|
|
32264
|
-
},
|
|
32256
|
+
}, qU = (e3, r2, c2, l2, u2) => {
|
|
32265
32257
|
O.onDragMove(u2);
|
|
32266
|
-
},
|
|
32258
|
+
}, JU = () => {
|
|
32267
32259
|
O.onDragStop();
|
|
32268
|
-
}, r[76] = O, r[77] =
|
|
32260
|
+
}, r[76] = O, r[77] = KU, r[78] = qU, r[79] = JU), YU = _temp3$2, XU = M, ZU = M, QU = M, $U = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32269
32261
|
let E2;
|
|
32270
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32262
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), eW = u.filter(E2).map((r2) => {
|
|
32271
32263
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32272
32264
|
code: r2.code,
|
|
32273
32265
|
mode: d,
|
|
@@ -32296,14 +32288,14 @@ ${c}
|
|
|
32296
32288
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32297
32289
|
children: m3
|
|
32298
32290
|
}, r2.id);
|
|
32299
|
-
}), 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] =
|
|
32300
|
-
} 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],
|
|
32301
|
-
let
|
|
32302
|
-
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] !==
|
|
32303
|
-
breakpoint:
|
|
32304
|
-
layouts:
|
|
32305
|
-
style:
|
|
32306
|
-
cols:
|
|
32291
|
+
}), 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] = UU, r[31] = Z, r[32] = WU, r[33] = GU, r[34] = KU, r[35] = qU, r[36] = JU, r[37] = YU, r[38] = XU, r[39] = ZU, r[40] = QU, r[41] = $U, r[42] = eW, r[43] = tW, r[44] = nW, r[45] = rW, r[46] = iW;
|
|
32292
|
+
} 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], UU = r[30], Z = r[31], WU = r[32], GU = r[33], KU = r[34], qU = r[35], JU = r[36], YU = r[37], XU = r[38], ZU = r[39], QU = r[40], $U = r[41], eW = r[42], tW = r[43], nW = r[44], rW = r[45], iW = r[46];
|
|
32293
|
+
let aW;
|
|
32294
|
+
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] !== UU || r[91] !== Z || r[92] !== WU || r[93] !== GU || r[94] !== KU || r[95] !== qU || r[96] !== JU || r[97] !== YU || r[98] !== XU || r[99] !== ZU || r[100] !== QU || r[101] !== $U || r[102] !== eW || r[103] !== tW || r[104] !== nW || r[105] !== rW || r[106] !== iW ? (aW = (0, import_jsx_runtime.jsx)(I, {
|
|
32295
|
+
breakpoint: tW,
|
|
32296
|
+
layouts: nW,
|
|
32297
|
+
style: rW,
|
|
32298
|
+
cols: iW,
|
|
32307
32299
|
allowOverlap: R,
|
|
32308
32300
|
className: z,
|
|
32309
32301
|
containerPadding: B,
|
|
@@ -32311,23 +32303,23 @@ ${c}
|
|
|
32311
32303
|
isBounded: W,
|
|
32312
32304
|
compactType: G,
|
|
32313
32305
|
preventCollision: q,
|
|
32314
|
-
rowHeight:
|
|
32306
|
+
rowHeight: UU,
|
|
32315
32307
|
onLayoutChange: Z,
|
|
32316
|
-
droppingItem:
|
|
32317
|
-
onDrop:
|
|
32318
|
-
onDragStart:
|
|
32319
|
-
onDrag:
|
|
32320
|
-
onDragStop:
|
|
32321
|
-
onResizeStop:
|
|
32322
|
-
isDraggable:
|
|
32323
|
-
isDroppable:
|
|
32324
|
-
isResizable:
|
|
32325
|
-
draggableHandle:
|
|
32326
|
-
children:
|
|
32327
|
-
}), 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] =
|
|
32328
|
-
let
|
|
32329
|
-
if (r[108] !== u || r[109] !==
|
|
32330
|
-
|
|
32308
|
+
droppingItem: WU,
|
|
32309
|
+
onDrop: GU,
|
|
32310
|
+
onDragStart: KU,
|
|
32311
|
+
onDrag: qU,
|
|
32312
|
+
onDragStop: JU,
|
|
32313
|
+
onResizeStop: YU,
|
|
32314
|
+
isDraggable: XU,
|
|
32315
|
+
isDroppable: ZU,
|
|
32316
|
+
isResizable: QU,
|
|
32317
|
+
draggableHandle: $U,
|
|
32318
|
+
children: eW
|
|
32319
|
+
}), 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] = UU, r[91] = Z, r[92] = WU, r[93] = GU, r[94] = KU, r[95] = qU, r[96] = JU, r[97] = YU, r[98] = XU, r[99] = ZU, r[100] = QU, r[101] = $U, r[102] = eW, r[103] = tW, r[104] = nW, r[105] = rW, r[106] = iW, r[107] = aW) : aW = r[107];
|
|
32320
|
+
let oW = aW, sW, cW, lW, uW, dW, fW, pW;
|
|
32321
|
+
if (r[108] !== u || r[109] !== oW || r[110] !== h || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
32322
|
+
pW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32331
32323
|
bb0: {
|
|
32332
32324
|
let e2;
|
|
32333
32325
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32335,14 +32327,14 @@ ${c}
|
|
|
32335
32327
|
if (f) {
|
|
32336
32328
|
if (c.bordered) {
|
|
32337
32329
|
let e4;
|
|
32338
|
-
r[127] !==
|
|
32330
|
+
r[127] !== oW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32339
32331
|
className: "flex flex-1 flex-col items-center",
|
|
32340
32332
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32341
32333
|
style: L,
|
|
32342
32334
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32343
|
-
children:
|
|
32335
|
+
children: oW
|
|
32344
32336
|
})
|
|
32345
|
-
}), r[127] =
|
|
32337
|
+
}), r[127] = oW, r[128] = L, r[129] = e4) : e4 = r[129], oW = e4;
|
|
32346
32338
|
}
|
|
32347
32339
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32348
32340
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32353,9 +32345,9 @@ ${c}
|
|
|
32353
32345
|
status: e4.status,
|
|
32354
32346
|
isScrollable: false,
|
|
32355
32347
|
hidden: false
|
|
32356
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32348
|
+
}, e4.id), r[130] = d, r[131] = l2), pW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32357
32349
|
children: [
|
|
32358
|
-
|
|
32350
|
+
oW,
|
|
32359
32351
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32360
32352
|
className: "hidden",
|
|
32361
32353
|
children: e3.map(l2)
|
|
@@ -32366,31 +32358,31 @@ ${c}
|
|
|
32366
32358
|
}
|
|
32367
32359
|
if (c.bordered) {
|
|
32368
32360
|
let e3;
|
|
32369
|
-
r[132] ===
|
|
32361
|
+
r[132] === oW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32370
32362
|
className: "h-full overflow-auto",
|
|
32371
|
-
children:
|
|
32372
|
-
}), r[132] =
|
|
32363
|
+
children: oW
|
|
32364
|
+
}), r[132] = oW, r[133] = e3);
|
|
32373
32365
|
let c2;
|
|
32374
32366
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32375
32367
|
style: L,
|
|
32376
32368
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32377
32369
|
children: e3
|
|
32378
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32370
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], oW = c2;
|
|
32379
32371
|
}
|
|
32380
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32372
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (fW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32381
32373
|
layout: c,
|
|
32382
32374
|
setLayout: l,
|
|
32383
32375
|
isLocked: v,
|
|
32384
32376
|
setIsLocked: y
|
|
32385
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32377
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = fW) : fW = r[140];
|
|
32386
32378
|
let g2;
|
|
32387
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32379
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = uW, r[142] = g2) : (uW = r[141], g2 = r[142]), r[143] === oW ? dW = r[144] : (dW = (0, import_jsx_runtime.jsx)("div", {
|
|
32388
32380
|
className: g2,
|
|
32389
|
-
children:
|
|
32390
|
-
}), r[143] =
|
|
32381
|
+
children: oW
|
|
32382
|
+
}), r[143] = oW, r[144] = dW), sW = "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") ? (cW = (0, import_jsx_runtime.jsx)("div", {
|
|
32391
32383
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32392
32384
|
children: "Outputs"
|
|
32393
|
-
}), r[145] =
|
|
32385
|
+
}), r[145] = cW) : cW = r[145];
|
|
32394
32386
|
let b2;
|
|
32395
32387
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32396
32388
|
draggable: true,
|
|
@@ -32415,34 +32407,34 @@ ${c}
|
|
|
32415
32407
|
status: e3.status,
|
|
32416
32408
|
hidden: false
|
|
32417
32409
|
})
|
|
32418
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32419
|
-
}
|
|
32420
|
-
r[108] = u, r[109] =
|
|
32421
|
-
} else
|
|
32422
|
-
if (
|
|
32423
|
-
let
|
|
32424
|
-
r[150] !==
|
|
32425
|
-
className:
|
|
32410
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], lW = m2.map(b2);
|
|
32411
|
+
}
|
|
32412
|
+
r[108] = u, r[109] = oW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = sW, r[118] = cW, r[119] = lW, r[120] = uW, r[121] = dW, r[122] = fW, r[123] = pW, r[124] = oW;
|
|
32413
|
+
} else sW = r[117], cW = r[118], lW = r[119], uW = r[120], dW = r[121], fW = r[122], pW = r[123], oW = r[124];
|
|
32414
|
+
if (pW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return pW;
|
|
32415
|
+
let mW;
|
|
32416
|
+
r[150] !== sW || r[151] !== cW || r[152] !== lW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32417
|
+
className: sW,
|
|
32426
32418
|
children: [
|
|
32427
|
-
|
|
32428
|
-
|
|
32419
|
+
cW,
|
|
32420
|
+
lW
|
|
32429
32421
|
]
|
|
32430
|
-
}), r[150] =
|
|
32431
|
-
let
|
|
32432
|
-
r[154] !==
|
|
32433
|
-
className:
|
|
32422
|
+
}), r[150] = sW, r[151] = cW, r[152] = lW, r[153] = mW) : mW = r[153];
|
|
32423
|
+
let hW;
|
|
32424
|
+
r[154] !== uW || r[155] !== dW || r[156] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32425
|
+
className: uW,
|
|
32434
32426
|
children: [
|
|
32435
|
-
|
|
32436
|
-
|
|
32427
|
+
dW,
|
|
32428
|
+
mW
|
|
32437
32429
|
]
|
|
32438
|
-
}), r[154] =
|
|
32439
|
-
let
|
|
32440
|
-
return r[158] !==
|
|
32430
|
+
}), r[154] = uW, r[155] = dW, r[156] = mW, r[157] = hW) : hW = r[157];
|
|
32431
|
+
let gW;
|
|
32432
|
+
return r[158] !== fW || r[159] !== hW ? (gW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32441
32433
|
children: [
|
|
32442
|
-
|
|
32443
|
-
|
|
32434
|
+
fW,
|
|
32435
|
+
hW
|
|
32444
32436
|
]
|
|
32445
|
-
}), r[158] =
|
|
32437
|
+
}), r[158] = fW, r[159] = hW, r[160] = gW) : gW = r[160], gW;
|
|
32446
32438
|
};
|
|
32447
32439
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32448
32440
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32743,25 +32735,25 @@ ${c}
|
|
|
32743
32735
|
G
|
|
32744
32736
|
]
|
|
32745
32737
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32746
|
-
let
|
|
32747
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32738
|
+
let UU;
|
|
32739
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32748
32740
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32749
|
-
}), r[35] =
|
|
32741
|
+
}), r[35] = UU) : UU = r[35];
|
|
32750
32742
|
let Z;
|
|
32751
32743
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32752
32744
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32753
32745
|
onClick: () => l()
|
|
32754
32746
|
}), r[36] = l, r[37] = Z);
|
|
32755
|
-
let
|
|
32756
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
32747
|
+
let WU;
|
|
32748
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (WU = (0, import_jsx_runtime.jsxs)("div", {
|
|
32757
32749
|
className: w,
|
|
32758
32750
|
children: [
|
|
32759
32751
|
I,
|
|
32760
32752
|
q,
|
|
32761
|
-
|
|
32753
|
+
UU,
|
|
32762
32754
|
Z
|
|
32763
32755
|
]
|
|
32764
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
32756
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = WU) : WU = r[42], WU;
|
|
32765
32757
|
};
|
|
32766
32758
|
function isSidebarCell(e) {
|
|
32767
32759
|
var _a3;
|
|
@@ -34765,31 +34757,31 @@ ${c}
|
|
|
34765
34757
|
}, [
|
|
34766
34758
|
T,
|
|
34767
34759
|
M
|
|
34768
|
-
]), 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),
|
|
34760
|
+
]), 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), UU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34769
34761
|
j
|
|
34770
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
34762
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: WU, measureDroppableContainers: GU, measuringScheduled: KU } = useDroppableMeasuring(UU, {
|
|
34771
34763
|
dragging: w,
|
|
34772
34764
|
dependencies: [
|
|
34773
34765
|
O.x,
|
|
34774
34766
|
O.y
|
|
34775
34767
|
],
|
|
34776
34768
|
config: Z.droppable
|
|
34777
|
-
}),
|
|
34769
|
+
}), qU = useCachedNode(E, T), JU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34778
34770
|
H
|
|
34779
|
-
]),
|
|
34771
|
+
]), YU = EW(), XU = useInitialRect(qU, Z.draggable.measure);
|
|
34780
34772
|
useLayoutShiftScrollCompensation({
|
|
34781
34773
|
activeNode: T == null ? null : E.get(T),
|
|
34782
|
-
config:
|
|
34783
|
-
initialRect:
|
|
34774
|
+
config: YU.layoutShiftCompensation,
|
|
34775
|
+
initialRect: XU,
|
|
34784
34776
|
measure: Z.draggable.measure
|
|
34785
34777
|
});
|
|
34786
|
-
let
|
|
34778
|
+
let ZU = useRect(qU, Z.draggable.measure, XU), QU = useRect(qU ? qU.parentElement : null), $U = (0, import_react.useRef)({
|
|
34787
34779
|
activatorEvent: null,
|
|
34788
34780
|
active: null,
|
|
34789
|
-
activeNode:
|
|
34781
|
+
activeNode: qU,
|
|
34790
34782
|
collisionRect: null,
|
|
34791
34783
|
collisions: null,
|
|
34792
|
-
droppableRects:
|
|
34784
|
+
droppableRects: WU,
|
|
34793
34785
|
draggableNodes: E,
|
|
34794
34786
|
draggingNode: null,
|
|
34795
34787
|
draggingNodeRect: null,
|
|
@@ -34797,45 +34789,45 @@ ${c}
|
|
|
34797
34789
|
over: null,
|
|
34798
34790
|
scrollableAncestors: [],
|
|
34799
34791
|
scrollAdjustedTranslate: null
|
|
34800
|
-
}),
|
|
34792
|
+
}), eW = j.getNodeFor((_a3 = $U.current.over) == null ? void 0 : _a3.id), tW = useDragOverlayMeasuring({
|
|
34801
34793
|
measure: Z.dragOverlay.measure
|
|
34802
|
-
}),
|
|
34794
|
+
}), nW = tW.nodeRef.current ?? qU, rW = w ? tW.rect ?? ZU : null, iW = !!(tW.nodeRef.current && tW.rect), aW = useRectDelta(iW ? null : ZU), oW = useWindowRect(nW ? getWindow(nW) : null), sW = useScrollableAncestors(w ? eW ?? qU : null), cW = useRects(sW), lW = applyModifiers(m, {
|
|
34803
34795
|
transform: {
|
|
34804
|
-
x: O.x -
|
|
34805
|
-
y: O.y -
|
|
34796
|
+
x: O.x - aW.x,
|
|
34797
|
+
y: O.y - aW.y,
|
|
34806
34798
|
scaleX: 1,
|
|
34807
34799
|
scaleY: 1
|
|
34808
34800
|
},
|
|
34809
34801
|
activatorEvent: H,
|
|
34810
34802
|
active: L,
|
|
34811
|
-
activeNodeRect:
|
|
34812
|
-
containerNodeRect:
|
|
34813
|
-
draggingNodeRect:
|
|
34814
|
-
over:
|
|
34815
|
-
overlayNodeRect:
|
|
34816
|
-
scrollableAncestors:
|
|
34817
|
-
scrollableAncestorRects:
|
|
34818
|
-
windowRect:
|
|
34819
|
-
}),
|
|
34820
|
-
|
|
34821
|
-
]),
|
|
34803
|
+
activeNodeRect: ZU,
|
|
34804
|
+
containerNodeRect: QU,
|
|
34805
|
+
draggingNodeRect: rW,
|
|
34806
|
+
over: $U.current.over,
|
|
34807
|
+
overlayNodeRect: tW.rect,
|
|
34808
|
+
scrollableAncestors: sW,
|
|
34809
|
+
scrollableAncestorRects: cW,
|
|
34810
|
+
windowRect: oW
|
|
34811
|
+
}), uW = JU ? add(JU, O) : null, dW = useScrollOffsets(sW), fW = useScrollOffsetsDelta(dW), pW = useScrollOffsetsDelta(dW, [
|
|
34812
|
+
ZU
|
|
34813
|
+
]), mW = add(lW, fW), hW = rW ? getAdjustedRect(rW, lW) : null, gW = L && hW ? f({
|
|
34822
34814
|
active: L,
|
|
34823
|
-
collisionRect:
|
|
34824
|
-
droppableRects:
|
|
34825
|
-
droppableContainers:
|
|
34826
|
-
pointerCoordinates:
|
|
34827
|
-
}) : null,
|
|
34815
|
+
collisionRect: hW,
|
|
34816
|
+
droppableRects: WU,
|
|
34817
|
+
droppableContainers: UU,
|
|
34818
|
+
pointerCoordinates: uW
|
|
34819
|
+
}) : null, _W = getFirstCollision(gW, "id"), [vW, yW] = (0, import_react.useState)(null), bW = adjustScale(iW ? lW : add(lW, pW), (vW == null ? void 0 : vW.rect) ?? null, ZU), xW = (0, import_react.useRef)(null), SW = (0, import_react.useCallback)((e2, r2) => {
|
|
34828
34820
|
let { sensor: c2, options: l2 } = r2;
|
|
34829
34821
|
if (R.current == null) return;
|
|
34830
34822
|
let u2 = E.get(R.current);
|
|
34831
34823
|
if (!u2) return;
|
|
34832
34824
|
let d2 = e2.nativeEvent;
|
|
34833
|
-
|
|
34825
|
+
xW.current = new c2({
|
|
34834
34826
|
active: R.current,
|
|
34835
34827
|
activeNode: u2,
|
|
34836
34828
|
event: d2,
|
|
34837
34829
|
options: l2,
|
|
34838
|
-
context:
|
|
34830
|
+
context: $U,
|
|
34839
34831
|
onAbort(e3) {
|
|
34840
34832
|
if (!E.get(e3)) return;
|
|
34841
34833
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34880,7 +34872,7 @@ ${c}
|
|
|
34880
34872
|
}), v({
|
|
34881
34873
|
type: "onDragStart",
|
|
34882
34874
|
event: u3
|
|
34883
|
-
}), B(
|
|
34875
|
+
}), B(xW.current), W(d2);
|
|
34884
34876
|
});
|
|
34885
34877
|
},
|
|
34886
34878
|
onMove(e3) {
|
|
@@ -34894,7 +34886,7 @@ ${c}
|
|
|
34894
34886
|
});
|
|
34895
34887
|
function f2(e3) {
|
|
34896
34888
|
return async function() {
|
|
34897
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34889
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = $U.current, f3 = null;
|
|
34898
34890
|
if (r3 && u3) {
|
|
34899
34891
|
let { cancelDrop: p2 } = G.current;
|
|
34900
34892
|
f3 = {
|
|
@@ -34908,7 +34900,7 @@ ${c}
|
|
|
34908
34900
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34909
34901
|
_({
|
|
34910
34902
|
type: e3
|
|
34911
|
-
}), S(Status.Uninitialized),
|
|
34903
|
+
}), S(Status.Uninitialized), yW(null), B(null), W(null), xW.current = null;
|
|
34912
34904
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34913
34905
|
if (f3) {
|
|
34914
34906
|
let e4 = G.current[r4];
|
|
@@ -34922,7 +34914,7 @@ ${c}
|
|
|
34922
34914
|
}
|
|
34923
34915
|
}, [
|
|
34924
34916
|
E
|
|
34925
|
-
]),
|
|
34917
|
+
]), CW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34926
34918
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34927
34919
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34928
34920
|
let f2 = {
|
|
@@ -34930,26 +34922,26 @@ ${c}
|
|
|
34930
34922
|
};
|
|
34931
34923
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34932
34924
|
capturedBy: r2.sensor
|
|
34933
|
-
}, R.current = l2,
|
|
34925
|
+
}, R.current = l2, SW(c2, r2));
|
|
34934
34926
|
}, [
|
|
34935
34927
|
E,
|
|
34936
|
-
|
|
34928
|
+
SW
|
|
34937
34929
|
]));
|
|
34938
34930
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34939
|
-
|
|
34931
|
+
ZU && b === Status.Initializing && S(Status.Initialized);
|
|
34940
34932
|
}, [
|
|
34941
|
-
|
|
34933
|
+
ZU,
|
|
34942
34934
|
b
|
|
34943
34935
|
]), (0, import_react.useEffect)(() => {
|
|
34944
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34936
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = $U.current;
|
|
34945
34937
|
if (!r2 || !c2) return;
|
|
34946
34938
|
let d2 = {
|
|
34947
34939
|
active: r2,
|
|
34948
34940
|
activatorEvent: c2,
|
|
34949
34941
|
collisions: l2,
|
|
34950
34942
|
delta: {
|
|
34951
|
-
x:
|
|
34952
|
-
y:
|
|
34943
|
+
x: mW.x,
|
|
34944
|
+
y: mW.y
|
|
34953
34945
|
},
|
|
34954
34946
|
over: u2
|
|
34955
34947
|
};
|
|
@@ -34960,12 +34952,12 @@ ${c}
|
|
|
34960
34952
|
});
|
|
34961
34953
|
});
|
|
34962
34954
|
}, [
|
|
34963
|
-
|
|
34964
|
-
|
|
34955
|
+
mW.x,
|
|
34956
|
+
mW.y
|
|
34965
34957
|
]), (0, import_react.useEffect)(() => {
|
|
34966
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34958
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = $U.current;
|
|
34967
34959
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34968
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
34960
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(_W), p2 = f2 && f2.rect.current ? {
|
|
34969
34961
|
id: f2.id,
|
|
34970
34962
|
rect: f2.rect.current,
|
|
34971
34963
|
data: f2.data,
|
|
@@ -34981,127 +34973,127 @@ ${c}
|
|
|
34981
34973
|
over: p2
|
|
34982
34974
|
};
|
|
34983
34975
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34984
|
-
|
|
34976
|
+
yW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
34985
34977
|
type: "onDragOver",
|
|
34986
34978
|
event: m2
|
|
34987
34979
|
});
|
|
34988
34980
|
});
|
|
34989
34981
|
}, [
|
|
34990
|
-
|
|
34982
|
+
_W
|
|
34991
34983
|
]), useIsomorphicLayoutEffect(() => {
|
|
34992
|
-
|
|
34984
|
+
$U.current = {
|
|
34993
34985
|
activatorEvent: H,
|
|
34994
34986
|
active: L,
|
|
34995
|
-
activeNode:
|
|
34996
|
-
collisionRect:
|
|
34997
|
-
collisions:
|
|
34998
|
-
droppableRects:
|
|
34987
|
+
activeNode: qU,
|
|
34988
|
+
collisionRect: hW,
|
|
34989
|
+
collisions: gW,
|
|
34990
|
+
droppableRects: WU,
|
|
34999
34991
|
draggableNodes: E,
|
|
35000
|
-
draggingNode:
|
|
35001
|
-
draggingNodeRect:
|
|
34992
|
+
draggingNode: nW,
|
|
34993
|
+
draggingNodeRect: rW,
|
|
35002
34994
|
droppableContainers: j,
|
|
35003
|
-
over:
|
|
35004
|
-
scrollableAncestors:
|
|
35005
|
-
scrollAdjustedTranslate:
|
|
34995
|
+
over: vW,
|
|
34996
|
+
scrollableAncestors: sW,
|
|
34997
|
+
scrollAdjustedTranslate: mW
|
|
35006
34998
|
}, I.current = {
|
|
35007
|
-
initial:
|
|
35008
|
-
translated:
|
|
34999
|
+
initial: rW,
|
|
35000
|
+
translated: hW
|
|
35009
35001
|
};
|
|
35010
35002
|
}, [
|
|
35011
35003
|
L,
|
|
35012
|
-
XU,
|
|
35013
|
-
yW,
|
|
35014
|
-
vW,
|
|
35015
|
-
E,
|
|
35016
|
-
aW,
|
|
35017
|
-
oW,
|
|
35018
35004
|
qU,
|
|
35005
|
+
gW,
|
|
35006
|
+
hW,
|
|
35007
|
+
E,
|
|
35008
|
+
nW,
|
|
35009
|
+
rW,
|
|
35010
|
+
WU,
|
|
35019
35011
|
j,
|
|
35020
|
-
|
|
35021
|
-
|
|
35022
|
-
|
|
35012
|
+
vW,
|
|
35013
|
+
sW,
|
|
35014
|
+
mW
|
|
35023
35015
|
]), useAutoScroller({
|
|
35024
|
-
...
|
|
35016
|
+
...YU,
|
|
35025
35017
|
delta: O,
|
|
35026
|
-
draggingRect:
|
|
35027
|
-
pointerCoordinates:
|
|
35028
|
-
scrollableAncestors:
|
|
35029
|
-
scrollableAncestorRects:
|
|
35018
|
+
draggingRect: hW,
|
|
35019
|
+
pointerCoordinates: uW,
|
|
35020
|
+
scrollableAncestors: sW,
|
|
35021
|
+
scrollableAncestorRects: cW
|
|
35030
35022
|
});
|
|
35031
|
-
let
|
|
35023
|
+
let wW = (0, import_react.useMemo)(() => ({
|
|
35032
35024
|
active: L,
|
|
35033
|
-
activeNode:
|
|
35034
|
-
activeNodeRect:
|
|
35025
|
+
activeNode: qU,
|
|
35026
|
+
activeNodeRect: ZU,
|
|
35035
35027
|
activatorEvent: H,
|
|
35036
|
-
collisions:
|
|
35037
|
-
containerNodeRect:
|
|
35038
|
-
dragOverlay:
|
|
35028
|
+
collisions: gW,
|
|
35029
|
+
containerNodeRect: QU,
|
|
35030
|
+
dragOverlay: tW,
|
|
35039
35031
|
draggableNodes: E,
|
|
35040
35032
|
droppableContainers: j,
|
|
35041
|
-
droppableRects:
|
|
35042
|
-
over:
|
|
35043
|
-
measureDroppableContainers:
|
|
35044
|
-
scrollableAncestors:
|
|
35045
|
-
scrollableAncestorRects:
|
|
35033
|
+
droppableRects: WU,
|
|
35034
|
+
over: vW,
|
|
35035
|
+
measureDroppableContainers: GU,
|
|
35036
|
+
scrollableAncestors: sW,
|
|
35037
|
+
scrollableAncestorRects: cW,
|
|
35046
35038
|
measuringConfiguration: Z,
|
|
35047
|
-
measuringScheduled:
|
|
35048
|
-
windowRect:
|
|
35039
|
+
measuringScheduled: KU,
|
|
35040
|
+
windowRect: oW
|
|
35049
35041
|
}), [
|
|
35050
35042
|
L,
|
|
35051
|
-
|
|
35052
|
-
|
|
35043
|
+
qU,
|
|
35044
|
+
ZU,
|
|
35053
35045
|
H,
|
|
35054
|
-
|
|
35046
|
+
gW,
|
|
35047
|
+
QU,
|
|
35055
35048
|
tW,
|
|
35056
|
-
iW,
|
|
35057
35049
|
E,
|
|
35058
35050
|
j,
|
|
35059
|
-
|
|
35060
|
-
|
|
35061
|
-
|
|
35062
|
-
|
|
35063
|
-
|
|
35051
|
+
WU,
|
|
35052
|
+
vW,
|
|
35053
|
+
GU,
|
|
35054
|
+
sW,
|
|
35055
|
+
cW,
|
|
35064
35056
|
Z,
|
|
35065
|
-
|
|
35066
|
-
|
|
35067
|
-
]),
|
|
35057
|
+
KU,
|
|
35058
|
+
oW
|
|
35059
|
+
]), TW = (0, import_react.useMemo)(() => ({
|
|
35068
35060
|
activatorEvent: H,
|
|
35069
|
-
activators:
|
|
35061
|
+
activators: CW,
|
|
35070
35062
|
active: L,
|
|
35071
|
-
activeNodeRect:
|
|
35063
|
+
activeNodeRect: ZU,
|
|
35072
35064
|
ariaDescribedById: {
|
|
35073
35065
|
draggable: q
|
|
35074
35066
|
},
|
|
35075
35067
|
dispatch: _,
|
|
35076
35068
|
draggableNodes: E,
|
|
35077
|
-
over:
|
|
35078
|
-
measureDroppableContainers:
|
|
35069
|
+
over: vW,
|
|
35070
|
+
measureDroppableContainers: GU
|
|
35079
35071
|
}), [
|
|
35080
35072
|
H,
|
|
35081
|
-
|
|
35073
|
+
CW,
|
|
35082
35074
|
L,
|
|
35083
|
-
|
|
35075
|
+
ZU,
|
|
35084
35076
|
_,
|
|
35085
35077
|
q,
|
|
35086
35078
|
E,
|
|
35087
|
-
|
|
35088
|
-
|
|
35079
|
+
vW,
|
|
35080
|
+
GU
|
|
35089
35081
|
]);
|
|
35090
35082
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35091
35083
|
value: y
|
|
35092
35084
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35093
|
-
value:
|
|
35085
|
+
value: TW
|
|
35094
35086
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35095
|
-
value:
|
|
35087
|
+
value: wW
|
|
35096
35088
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35097
|
-
value:
|
|
35089
|
+
value: bW
|
|
35098
35090
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35099
35091
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35100
35092
|
})), import_react.createElement(Accessibility, {
|
|
35101
35093
|
...c,
|
|
35102
35094
|
hiddenTextDescribedById: q
|
|
35103
35095
|
}));
|
|
35104
|
-
function
|
|
35096
|
+
function EW() {
|
|
35105
35097
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35106
35098
|
return typeof l == "object" ? {
|
|
35107
35099
|
...l,
|
|
@@ -35629,7 +35621,7 @@ ${c}
|
|
|
35629
35621
|
updateMeasurementsFor: I,
|
|
35630
35622
|
...m
|
|
35631
35623
|
}
|
|
35632
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35624
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: UU, listeners: Z, isDragging: WU, over: GU, setActivatorNodeRef: KU, transform: qU } = useDraggable({
|
|
35633
35625
|
id: f,
|
|
35634
35626
|
data: M,
|
|
35635
35627
|
attributes: {
|
|
@@ -35637,60 +35629,60 @@ ${c}
|
|
|
35637
35629
|
...c
|
|
35638
35630
|
},
|
|
35639
35631
|
disabled: O.draggable
|
|
35640
|
-
}),
|
|
35632
|
+
}), JU = useCombinedRefs(B, UU), YU = !!H, XU = YU && !b && isValidIndex(v) && isValidIndex(w), ZU = !T && WU, QU = XU ? (ZU && XU ? qU : null) ?? (p ?? E)({
|
|
35641
35633
|
rects: S,
|
|
35642
35634
|
activeNodeRect: G,
|
|
35643
35635
|
activeIndex: v,
|
|
35644
35636
|
overIndex: w,
|
|
35645
35637
|
index: j
|
|
35646
|
-
}) : null,
|
|
35638
|
+
}) : null, $U = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35647
35639
|
id: f,
|
|
35648
35640
|
items: g,
|
|
35649
35641
|
activeIndex: v,
|
|
35650
35642
|
overIndex: w
|
|
35651
|
-
}) : j,
|
|
35652
|
-
activeId:
|
|
35643
|
+
}) : j, eW = H == null ? void 0 : H.id, tW = (0, import_react.useRef)({
|
|
35644
|
+
activeId: eW,
|
|
35653
35645
|
items: g,
|
|
35654
|
-
newIndex:
|
|
35646
|
+
newIndex: $U,
|
|
35655
35647
|
containerId: _
|
|
35656
|
-
}),
|
|
35648
|
+
}), nW = g !== tW.current.items, rW = r({
|
|
35657
35649
|
active: H,
|
|
35658
35650
|
containerId: _,
|
|
35659
|
-
isDragging:
|
|
35660
|
-
isSorting:
|
|
35651
|
+
isDragging: WU,
|
|
35652
|
+
isSorting: YU,
|
|
35661
35653
|
id: f,
|
|
35662
35654
|
index: j,
|
|
35663
35655
|
items: g,
|
|
35664
|
-
newIndex:
|
|
35665
|
-
previousItems:
|
|
35666
|
-
previousContainerId:
|
|
35656
|
+
newIndex: tW.current.newIndex,
|
|
35657
|
+
previousItems: tW.current.items,
|
|
35658
|
+
previousContainerId: tW.current.containerId,
|
|
35667
35659
|
transition: h,
|
|
35668
|
-
wasDragging:
|
|
35669
|
-
}),
|
|
35670
|
-
disabled: !
|
|
35660
|
+
wasDragging: tW.current.activeId != null
|
|
35661
|
+
}), iW = useDerivedTransform({
|
|
35662
|
+
disabled: !rW,
|
|
35671
35663
|
index: j,
|
|
35672
35664
|
node: R,
|
|
35673
35665
|
rect: L
|
|
35674
35666
|
});
|
|
35675
35667
|
return (0, import_react.useEffect)(() => {
|
|
35676
|
-
|
|
35668
|
+
YU && tW.current.newIndex !== $U && (tW.current.newIndex = $U), _ !== tW.current.containerId && (tW.current.containerId = _), g !== tW.current.items && (tW.current.items = g);
|
|
35677
35669
|
}, [
|
|
35678
|
-
|
|
35679
|
-
|
|
35670
|
+
YU,
|
|
35671
|
+
$U,
|
|
35680
35672
|
_,
|
|
35681
35673
|
g
|
|
35682
35674
|
]), (0, import_react.useEffect)(() => {
|
|
35683
|
-
if (
|
|
35684
|
-
if (
|
|
35685
|
-
|
|
35675
|
+
if (eW === tW.current.activeId) return;
|
|
35676
|
+
if (eW != null && tW.current.activeId == null) {
|
|
35677
|
+
tW.current.activeId = eW;
|
|
35686
35678
|
return;
|
|
35687
35679
|
}
|
|
35688
35680
|
let e2 = setTimeout(() => {
|
|
35689
|
-
|
|
35681
|
+
tW.current.activeId = eW;
|
|
35690
35682
|
}, 50);
|
|
35691
35683
|
return () => clearTimeout(e2);
|
|
35692
35684
|
}, [
|
|
35693
|
-
|
|
35685
|
+
eW
|
|
35694
35686
|
]), {
|
|
35695
35687
|
active: H,
|
|
35696
35688
|
activeIndex: v,
|
|
@@ -35698,25 +35690,25 @@ ${c}
|
|
|
35698
35690
|
data: M,
|
|
35699
35691
|
rect: L,
|
|
35700
35692
|
index: j,
|
|
35701
|
-
newIndex:
|
|
35693
|
+
newIndex: $U,
|
|
35702
35694
|
items: g,
|
|
35703
35695
|
isOver: z,
|
|
35704
|
-
isSorting:
|
|
35705
|
-
isDragging:
|
|
35696
|
+
isSorting: YU,
|
|
35697
|
+
isDragging: WU,
|
|
35706
35698
|
listeners: Z,
|
|
35707
35699
|
node: R,
|
|
35708
35700
|
overIndex: w,
|
|
35709
|
-
over:
|
|
35710
|
-
setNodeRef:
|
|
35711
|
-
setActivatorNodeRef:
|
|
35701
|
+
over: GU,
|
|
35702
|
+
setNodeRef: JU,
|
|
35703
|
+
setActivatorNodeRef: KU,
|
|
35712
35704
|
setDroppableNodeRef: B,
|
|
35713
|
-
setDraggableNodeRef:
|
|
35714
|
-
transform:
|
|
35715
|
-
transition:
|
|
35705
|
+
setDraggableNodeRef: UU,
|
|
35706
|
+
transform: iW ?? QU,
|
|
35707
|
+
transition: aW()
|
|
35716
35708
|
};
|
|
35717
|
-
function
|
|
35718
|
-
if (
|
|
35719
|
-
if (!(
|
|
35709
|
+
function aW() {
|
|
35710
|
+
if (iW || nW && tW.current.newIndex === j) return disabledTransition;
|
|
35711
|
+
if (!(ZU && !isKeyboardEvent(W) || !h) && (YU || rW)) return CSS$1.Transition.toString({
|
|
35720
35712
|
...h,
|
|
35721
35713
|
property: transitionProperty
|
|
35722
35714
|
});
|
|
@@ -36016,15 +36008,15 @@ ${c}
|
|
|
36016
36008
|
G
|
|
36017
36009
|
]
|
|
36018
36010
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
36019
|
-
let
|
|
36020
|
-
if (!v && !g) return
|
|
36011
|
+
let UU = q;
|
|
36012
|
+
if (!v && !g) return UU;
|
|
36021
36013
|
let Z;
|
|
36022
|
-
r[46] ===
|
|
36014
|
+
r[46] === UU ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36023
36015
|
asChild: true,
|
|
36024
|
-
children:
|
|
36025
|
-
}), r[46] =
|
|
36026
|
-
let
|
|
36027
|
-
r[48] === v ?
|
|
36016
|
+
children: UU
|
|
36017
|
+
}), r[46] = UU, r[47] = Z);
|
|
36018
|
+
let WU;
|
|
36019
|
+
r[48] === v ? WU = r[49] : (WU = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36028
36020
|
onSelect: v,
|
|
36029
36021
|
children: [
|
|
36030
36022
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36032,11 +36024,11 @@ ${c}
|
|
|
36032
36024
|
}),
|
|
36033
36025
|
"Add cell"
|
|
36034
36026
|
]
|
|
36035
|
-
}), r[48] = v, r[49] =
|
|
36036
|
-
let
|
|
36037
|
-
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
36038
|
-
let
|
|
36039
|
-
r[51] === g ?
|
|
36027
|
+
}), r[48] = v, r[49] = WU);
|
|
36028
|
+
let GU;
|
|
36029
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (GU = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = GU) : GU = r[50];
|
|
36030
|
+
let qU;
|
|
36031
|
+
r[51] === g ? qU = r[52] : (qU = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36040
36032
|
variant: "danger",
|
|
36041
36033
|
onSelect: g,
|
|
36042
36034
|
children: [
|
|
@@ -36045,22 +36037,22 @@ ${c}
|
|
|
36045
36037
|
}),
|
|
36046
36038
|
"Delete cell"
|
|
36047
36039
|
]
|
|
36048
|
-
}), r[51] = g, r[52] =
|
|
36049
|
-
let
|
|
36050
|
-
r[53] !==
|
|
36040
|
+
}), r[51] = g, r[52] = qU);
|
|
36041
|
+
let JU;
|
|
36042
|
+
r[53] !== WU || r[54] !== qU ? (JU = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36051
36043
|
children: [
|
|
36052
|
-
|
|
36053
|
-
|
|
36054
|
-
|
|
36044
|
+
WU,
|
|
36045
|
+
GU,
|
|
36046
|
+
qU
|
|
36055
36047
|
]
|
|
36056
|
-
}), r[53] =
|
|
36057
|
-
let
|
|
36058
|
-
return r[56] !== Z || r[57] !==
|
|
36048
|
+
}), r[53] = WU, r[54] = qU, r[55] = JU) : JU = r[55];
|
|
36049
|
+
let YU;
|
|
36050
|
+
return r[56] !== Z || r[57] !== JU ? (YU = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36059
36051
|
children: [
|
|
36060
36052
|
Z,
|
|
36061
|
-
|
|
36053
|
+
JU
|
|
36062
36054
|
]
|
|
36063
|
-
}), r[56] = Z, r[57] =
|
|
36055
|
+
}), r[56] = Z, r[57] = JU, r[58] = YU) : YU = r[58], YU;
|
|
36064
36056
|
}, InsertCellLine = (e) => {
|
|
36065
36057
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
36066
36058
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -36114,10 +36106,10 @@ ${c}
|
|
|
36114
36106
|
...B,
|
|
36115
36107
|
...h
|
|
36116
36108
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36117
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36118
|
-
r[25] !== l || r[26] !==
|
|
36119
|
-
let
|
|
36120
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36109
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", UU = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", WU;
|
|
36110
|
+
r[25] !== l || r[26] !== UU || r[27] !== Z || r[28] !== q ? (WU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, UU, Z, l), r[25] = l, r[26] = UU, r[27] = Z, r[28] = q, r[29] = WU) : WU = r[29];
|
|
36111
|
+
let GU;
|
|
36112
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (GU = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36121
36113
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36122
36114
|
style: {
|
|
36123
36115
|
transform: `scale(${I})`,
|
|
@@ -36132,14 +36124,14 @@ ${c}
|
|
|
36132
36124
|
status: c.status,
|
|
36133
36125
|
output: c.output
|
|
36134
36126
|
})
|
|
36135
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36136
|
-
let
|
|
36137
|
-
r[37] === z ?
|
|
36127
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = GU) : GU = r[36];
|
|
36128
|
+
let KU;
|
|
36129
|
+
r[37] === z ? KU = r[38] : (KU = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36138
36130
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36139
36131
|
"aria-hidden": true
|
|
36140
|
-
}), r[37] = z, r[38] =
|
|
36141
|
-
let
|
|
36142
|
-
r[39] !== z || r[40] !== R ? (
|
|
36132
|
+
}), r[37] = z, r[38] = KU);
|
|
36133
|
+
let qU;
|
|
36134
|
+
r[39] !== z || r[40] !== R ? (qU = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36143
36135
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36144
36136
|
className: "text-xs opacity-80",
|
|
36145
36137
|
children: R.description
|
|
@@ -36151,19 +36143,19 @@ ${c}
|
|
|
36151
36143
|
className: "h-3.5 w-3.5"
|
|
36152
36144
|
})
|
|
36153
36145
|
})
|
|
36154
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36155
|
-
let
|
|
36156
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36146
|
+
}), r[39] = z, r[40] = R, r[41] = qU) : qU = r[41];
|
|
36147
|
+
let JU;
|
|
36148
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== WU || r[46] !== GU || r[47] !== KU || r[48] !== qU ? (JU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36157
36149
|
ref: f,
|
|
36158
|
-
className:
|
|
36150
|
+
className: WU,
|
|
36159
36151
|
style: W,
|
|
36160
36152
|
...d,
|
|
36161
36153
|
children: [
|
|
36162
|
-
|
|
36163
|
-
|
|
36164
|
-
|
|
36154
|
+
GU,
|
|
36155
|
+
KU,
|
|
36156
|
+
qU
|
|
36165
36157
|
]
|
|
36166
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36158
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = WU, r[46] = GU, r[47] = KU, r[48] = qU, r[49] = JU) : JU = r[49], JU;
|
|
36167
36159
|
}, MiniCodePreview = (e) => {
|
|
36168
36160
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36169
36161
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36203,7 +36195,7 @@ ${c}
|
|
|
36203
36195
|
function _temp2$2(e) {
|
|
36204
36196
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36205
36197
|
}
|
|
36206
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36198
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CuqTvwmg.js"));
|
|
36207
36199
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36208
36200
|
var _a3;
|
|
36209
36201
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -36581,7 +36573,7 @@ ${c}
|
|
|
36581
36573
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36582
36574
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36583
36575
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36584
|
-
let H, W, G, q,
|
|
36576
|
+
let H, W, G, q, UU, Z, WU, GU, KU, qU;
|
|
36585
36577
|
if (r[3] !== T || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== m || r[19] !== l) {
|
|
36586
36578
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36587
36579
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36627,11 +36619,11 @@ ${c}
|
|
|
36627
36619
|
})
|
|
36628
36620
|
})
|
|
36629
36621
|
]
|
|
36630
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36631
|
-
let
|
|
36632
|
-
r[40] !== M || r[41] !==
|
|
36622
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", UU = c, Z = R, WU = 0;
|
|
36623
|
+
let JU2 = y && "marimo-output-stale", YU2 = L ? "p-5" : "p-3";
|
|
36624
|
+
r[40] !== M || r[41] !== JU2 || r[42] !== YU2 ? (GU = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", JU2, YU2, M), r[40] = M, r[41] = JU2, r[42] = YU2, r[43] = GU) : GU = r[43], r[44] === d ? KU = r[45] : (KU = d ? {
|
|
36633
36625
|
maxHeight: "none"
|
|
36634
|
-
} : void 0, r[44] = d, r[45] =
|
|
36626
|
+
} : void 0, r[44] = d, r[45] = KU), qU = e2.map((e3, r2) => {
|
|
36635
36627
|
if (e3.channel === "pdb") return null;
|
|
36636
36628
|
if (e3.channel === "stdin") {
|
|
36637
36629
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36660,36 +36652,36 @@ ${c}
|
|
|
36660
36652
|
wrapText: l
|
|
36661
36653
|
})
|
|
36662
36654
|
}, r2);
|
|
36663
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36664
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36665
|
-
let
|
|
36666
|
-
r[46] !== T || r[47] !== S ? (
|
|
36655
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = UU, r[25] = Z, r[26] = WU, r[27] = GU, r[28] = KU, r[29] = qU;
|
|
36656
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], UU = r[24], Z = r[25], WU = r[26], GU = r[27], KU = r[28], qU = r[29];
|
|
36657
|
+
let JU;
|
|
36658
|
+
r[46] !== T || r[47] !== S ? (JU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36667
36659
|
value: S,
|
|
36668
36660
|
cellId: T,
|
|
36669
36661
|
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"
|
|
36670
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36671
|
-
let
|
|
36672
|
-
r[49] !==
|
|
36662
|
+
}), r[46] = T, r[47] = S, r[48] = JU) : JU = r[48];
|
|
36663
|
+
let YU;
|
|
36664
|
+
r[49] !== JU || r[50] !== G || r[51] !== q || r[52] !== UU || r[53] !== Z || r[54] !== WU || r[55] !== GU || r[56] !== KU || r[57] !== qU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36673
36665
|
title: G,
|
|
36674
36666
|
"data-testid": q,
|
|
36675
|
-
ref:
|
|
36667
|
+
ref: UU,
|
|
36676
36668
|
...Z,
|
|
36677
|
-
tabIndex:
|
|
36678
|
-
className:
|
|
36679
|
-
style:
|
|
36669
|
+
tabIndex: WU,
|
|
36670
|
+
className: GU,
|
|
36671
|
+
style: KU,
|
|
36680
36672
|
children: [
|
|
36681
|
-
|
|
36682
|
-
|
|
36673
|
+
qU,
|
|
36674
|
+
JU
|
|
36683
36675
|
]
|
|
36684
|
-
}), r[49] =
|
|
36685
|
-
let
|
|
36686
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36676
|
+
}), r[49] = JU, r[50] = G, r[51] = q, r[52] = UU, r[53] = Z, r[54] = WU, r[55] = GU, r[56] = KU, r[57] = qU, r[58] = YU) : YU = r[58];
|
|
36677
|
+
let XU;
|
|
36678
|
+
return r[59] !== H || r[60] !== W || r[61] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36687
36679
|
className: H,
|
|
36688
36680
|
children: [
|
|
36689
36681
|
W,
|
|
36690
|
-
|
|
36682
|
+
YU
|
|
36691
36683
|
]
|
|
36692
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36684
|
+
}), r[59] = H, r[60] = W, r[61] = YU, r[62] = XU) : XU = r[62], XU;
|
|
36693
36685
|
}, StdInput = (e) => {
|
|
36694
36686
|
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;
|
|
36695
36687
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37153,23 +37145,23 @@ ${c}
|
|
|
37153
37145
|
if ((h || _ || m || W) && !G) return null;
|
|
37154
37146
|
let q;
|
|
37155
37147
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37156
|
-
let
|
|
37157
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37158
|
-
allowExpand:
|
|
37148
|
+
let UU = w === "edit", Z;
|
|
37149
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== UU ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37150
|
+
allowExpand: UU,
|
|
37159
37151
|
output: c,
|
|
37160
37152
|
className: CSSClasses.outputArea,
|
|
37161
37153
|
cellId: d,
|
|
37162
37154
|
stale: I,
|
|
37163
37155
|
loading: R
|
|
37164
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37165
|
-
let
|
|
37166
|
-
return r[52] !== H || r[53] !== q || r[54] !== Z ? (
|
|
37156
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = UU, r[51] = Z) : Z = r[51];
|
|
37157
|
+
let WU;
|
|
37158
|
+
return r[52] !== H || r[53] !== q || r[54] !== Z ? (WU = (0, import_jsx_runtime.jsx)("div", {
|
|
37167
37159
|
tabIndex: -1,
|
|
37168
37160
|
ref: j,
|
|
37169
37161
|
className: H,
|
|
37170
37162
|
...q,
|
|
37171
37163
|
children: Z
|
|
37172
|
-
}), r[52] = H, r[53] = q, r[54] = Z, r[55] =
|
|
37164
|
+
}), r[52] = H, r[53] = q, r[54] = Z, r[55] = WU) : WU = r[55], WU;
|
|
37173
37165
|
});
|
|
37174
37166
|
VerticalCell.displayName = "VerticalCell";
|
|
37175
37167
|
const VerticalLayoutPlugin = {
|