@marimo-team/islands 0.23.9-dev7 → 0.23.9-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-ydMmCkzY.js → code-visibility-DgHF4q8X.js} +751 -748
- package/dist/main.js +549 -534
- package/dist/{reveal-component-DfX0NWtZ.js → reveal-component-qpHJES_u.js} +5 -5
- package/package.json +1 -1
- package/src/components/data-table/TableTopBar.tsx +7 -1
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/export-actions.tsx +17 -6
- package/src/plugins/impl/DataTablePlugin.tsx +42 -11
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +1 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +8 -6
- package/src/stories/dataframe.stories.tsx +1 -0
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as useCellActions, At as DeferredRequestRegistry, B as safeExtractSet
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BNjes6Yx.js";
|
|
27
27
|
import { o as useSize, s as Root$2, u as createLucideIcon } from "./dist-C1BYNeCR.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-a6DaqW__.js";
|
|
29
|
-
import { $ as
|
|
29
|
+
import { $ as TableHead, A as Command, At as ChartLoadingState, B as contextAwarePanelType, Bt as GripHorizontal, C as prettifyRowColumnCount, Ct as dateToLocalISOTime, D as DateRangePicker, Dt as TabsTrigger, E as DatePicker, Et as TabsList, F as CommandSeparator, Ft as HtmlOutput, Gt as Download, H as SlotNames, Ht as EyeOff, I as ContextAwarePanelItem, It as EmotionCacheProvider, J as Fill, Jt as ChevronsRight, Kt as Code, L as PANEL_TYPES, Lt as $fae977aafc393c5c$export$588937bcd60ade55, M as CommandInput, Mt as useOverflowDetection, N as CommandItem, Nt as RenderTextWithLinks, O as Combobox, Ot as ChartErrorState, P as CommandList, Pt as Kbd, Q as TableCell, Qt as ArrowDownWideNarrow, R as contextAwarePanelOpen, Rt as $fae977aafc393c5c$export$6b862160d295c8e, S as downloadSizeLimitAtom, St as dateToLocalISODateTime, T as useInternalStateWithSync, Tt as TabsContent, U as slotsController, V as isCellAwareAtom, Vt as Funnel, W as Toggle, Wt as Ellipsis, X as Table, Xt as ChevronsDownUp, Y as Provider$1, Yt as ChevronsLeft, Z as TableBody, Zt as ChevronLeft, _ as downloadBlob, _t as toFieldTypes, at as renderCellValue, b as Progress, bt as Maps, c as Slide, ct as DelayMount, d as JsonOutput, dt as getPageIndexForRow, et as TableHeader, f as OutputArea, ft as loadTableAndRawData, g as ADD_PRINTING_CLASS, gt as TOO_MANY_ROWS, h as InstallPackageButton, ht as SELECT_COLUMN_ID, it as inferFieldTypes, j as CommandEmpty, jt as LazyVegaEmbed, k as ComboboxItem, kt as ChartInfoState, l as RadioGroup, lt as useIntersectionObserver, m as DataTable, mt as INDEX_COLUMN_NAME, n as marimoVersionAtom, nt as NAMELESS_COLUMN_PREFIX, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as ColumnChartContext, p as OutputRenderer, pt as loadTableData, qt as ChevronsUpDown, r as showCodeInRunModeAtom, rt as generateColumns, st as ColumnChartSpecModel, t as useNotebookCodeAvailable, tt as TableRow, u as RadioGroupItem, ut as usePrevious$1, v as downloadByURL, vt as getMimeValues, w as prettifyRowCount, wt as Tabs, x as Filenames, xt as dateToLocalISODate, y as downloadHTMLAsImage, yt as isNullishFilter, z as contextAwarePanelOwner, zt as TextWrap, __tla as __tla_2 } from "./code-visibility-DgHF4q8X.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-BNaoJ5a4.js";
|
|
31
31
|
import { t as Check } from "./check-DTbrK0zt.js";
|
|
32
32
|
import { A as Trigger$1, C as $a916eb452884faea$export$b7a616150fdb9f44, E as $18f2051aff69b9bf$export$a54013f0d02a8f82, F as X, L as ChevronDown, M as usePrevious$2, N as useDirection, P as createCollection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as clamp$2, k as Icon, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, x as assertNever } from "./strings-Bu3vlb6W.js";
|
|
@@ -6712,7 +6712,7 @@ let __tla = Promise.all([
|
|
|
6712
6712
|
let m2 = get(l, e2);
|
|
6713
6713
|
if (m2) {
|
|
6714
6714
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
6715
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
6715
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : WU(e2, l2), f.mount && w();
|
|
6716
6716
|
}
|
|
6717
6717
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
6718
6718
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -6788,11 +6788,11 @@ let __tla = Promise.all([
|
|
|
6788
6788
|
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && $U(e2);
|
|
6789
6789
|
}
|
|
6790
6790
|
p.unMount = /* @__PURE__ */ new Set();
|
|
6791
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(JU(), u)),
|
|
6791
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(JU(), u)), UU = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
6792
6792
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
6793
6793
|
[e2]: r2
|
|
6794
6794
|
} : r2
|
|
6795
|
-
}, c2, r2),
|
|
6795
|
+
}, c2, r2), G = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), WU = (e2, r2, c2 = {}) => {
|
|
6796
6796
|
let u2 = get(l, e2), f2 = r2;
|
|
6797
6797
|
if (u2) {
|
|
6798
6798
|
let c3 = u2._f;
|
|
@@ -6806,10 +6806,10 @@ let __tla = Promise.all([
|
|
|
6806
6806
|
})));
|
|
6807
6807
|
}
|
|
6808
6808
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && qU(e2);
|
|
6809
|
-
},
|
|
6809
|
+
}, q = (e2, r2, c2) => {
|
|
6810
6810
|
for (let u2 in r2) {
|
|
6811
6811
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
6812
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
6812
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? q(f2, d2, c2) : WU(f2, d2, c2);
|
|
6813
6813
|
}
|
|
6814
6814
|
}, Z = (e2, r2, m2 = {}) => {
|
|
6815
6815
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -6822,7 +6822,7 @@ let __tla = Promise.all([
|
|
|
6822
6822
|
name: e2,
|
|
6823
6823
|
dirtyFields: getDirtyFields(u, d),
|
|
6824
6824
|
isDirty: W(e2, y2)
|
|
6825
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
6825
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? q(e2, y2, m2) : WU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
6826
6826
|
...c
|
|
6827
6827
|
}), _.values.next({
|
|
6828
6828
|
name: f.mount ? e2 : void 0,
|
|
@@ -6838,16 +6838,16 @@ let __tla = Promise.all([
|
|
|
6838
6838
|
if (E2) {
|
|
6839
6839
|
let u3, f2, M2 = O2(), z2 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT, H2 = !hasValidation(E2._f) && !r.resolver && !get(c.errors, h2) && !E2._f.deps || skipValidation(z2, get(c.touchedFields, h2), c.isSubmitted, y, v), W2 = isWatched(h2, p, z2);
|
|
6840
6840
|
set(d, h2, M2), z2 ? (E2._f.onBlur && E2._f.onBlur(e2), m && m(0)) : E2._f.onChange && E2._f.onChange(e2);
|
|
6841
|
-
let
|
|
6841
|
+
let UU2 = I(h2, M2, z2, false), G2 = !isEmptyObject(UU2) || W2;
|
|
6842
6842
|
if (!z2 && _.values.next({
|
|
6843
6843
|
name: h2,
|
|
6844
6844
|
type: e2.type,
|
|
6845
6845
|
values: {
|
|
6846
6846
|
...d
|
|
6847
6847
|
}
|
|
6848
|
-
}), H2) return g.isValid && (r.mode === "onBlur" && z2 ? w() : z2 || w()),
|
|
6848
|
+
}), H2) return g.isValid && (r.mode === "onBlur" && z2 ? w() : z2 || w()), G2 && _.state.next({
|
|
6849
6849
|
name: h2,
|
|
6850
|
-
...W2 ? {} :
|
|
6850
|
+
...W2 ? {} : UU2
|
|
6851
6851
|
});
|
|
6852
6852
|
if (!z2 && W2 && _.state.next({
|
|
6853
6853
|
...c
|
|
@@ -6864,7 +6864,7 @@ let __tla = Promise.all([
|
|
|
6864
6864
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
6865
6865
|
h2
|
|
6866
6866
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
6867
|
-
S2 && (E2._f.deps && qU(E2._f.deps), L(h2, f2, u3,
|
|
6867
|
+
S2 && (E2._f.deps && qU(E2._f.deps), L(h2, f2, u3, UU2));
|
|
6868
6868
|
}
|
|
6869
6869
|
}, KU = (e2, r2) => {
|
|
6870
6870
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
@@ -6917,8 +6917,8 @@ let __tla = Promise.all([
|
|
|
6917
6917
|
isValid: false
|
|
6918
6918
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
6919
6919
|
}, QU = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
6920
|
-
next: (c2) => e2(
|
|
6921
|
-
}) :
|
|
6920
|
+
next: (c2) => e2(UU(void 0, r2), c2)
|
|
6921
|
+
}) : UU(e2, r2, true), $U = (e2, f2 = {}) => {
|
|
6922
6922
|
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);
|
|
6923
6923
|
_.values.next({
|
|
6924
6924
|
values: {
|
|
@@ -7098,13 +7098,13 @@ let __tla = Promise.all([
|
|
|
7098
7098
|
handleSubmit: iW,
|
|
7099
7099
|
setError: ZU,
|
|
7100
7100
|
_executeSchema: R,
|
|
7101
|
-
_getWatch:
|
|
7101
|
+
_getWatch: UU,
|
|
7102
7102
|
_getDirty: W,
|
|
7103
7103
|
_updateValid: w,
|
|
7104
7104
|
_removeUnmounted: H,
|
|
7105
7105
|
_updateFieldArray: E,
|
|
7106
7106
|
_updateDisabledField: eW,
|
|
7107
|
-
_getFieldArray:
|
|
7107
|
+
_getFieldArray: G,
|
|
7108
7108
|
_reset: oW,
|
|
7109
7109
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
7110
7110
|
sW(e2, r.resetOptions), _.state.next({
|
|
@@ -9427,8 +9427,8 @@ ${c}
|
|
|
9427
9427
|
return (() => (r || (r = true, c = e()), c));
|
|
9428
9428
|
}
|
|
9429
9429
|
var Jo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Jn = K(([{ data: e, defaultItemSize: r, firstItemIndex: c, fixedItemSize: l, fixedGroupSize: u, gap: d, groupIndices: f, heightEstimates: p, itemSize: m, sizeRanges: h, sizes: g, statefulTotalCount: _, totalCount: v, trackItemSizes: y }, { initialItemFinalLocationReached: b, initialTopMostItemIndex: S, scrolledToInitialItem: w }, T, E, O, j, { scrollToIndex: M }, I, { topItemCount: L }, { groupCounts: R }, z]) => {
|
|
9430
|
-
let { listState: B, minOverscanItemCount: H, topItemsIndexes: W, rangeChanged:
|
|
9431
|
-
return F(
|
|
9430
|
+
let { listState: B, minOverscanItemCount: H, topItemsIndexes: W, rangeChanged: UU, ...G } = j;
|
|
9431
|
+
return F(UU, z.scrollSeekRangeChanged), F(x(z.windowViewportRect, k((e2) => e2.visibleHeight)), T.viewportHeight), {
|
|
9432
9432
|
data: e,
|
|
9433
9433
|
defaultItemHeight: r,
|
|
9434
9434
|
firstItemIndex: c,
|
|
@@ -9452,8 +9452,8 @@ ${c}
|
|
|
9452
9452
|
scrollToIndex: M,
|
|
9453
9453
|
statefulTotalCount: _,
|
|
9454
9454
|
trackItemSizes: y,
|
|
9455
|
-
rangeChanged:
|
|
9456
|
-
...
|
|
9455
|
+
rangeChanged: UU,
|
|
9456
|
+
...G,
|
|
9457
9457
|
...z,
|
|
9458
9458
|
...T,
|
|
9459
9459
|
sizes: g,
|
|
@@ -9740,7 +9740,7 @@ ${c}
|
|
|
9740
9740
|
tn("deviation", (e2) => {
|
|
9741
9741
|
T !== e2 && E(e2);
|
|
9742
9742
|
});
|
|
9743
|
-
let O = A("EmptyPlaceholder"), j = A("ScrollSeekPlaceholder") || sr, M = A("ListComponent"), I = A("ItemComponent"), L = A("GroupComponent"), R = A("computeItemKey"), z = A("isSeeking"), B = A("groupIndices").length > 0, H = A("alignToBottom"), W = A("initialItemFinalLocationReached"),
|
|
9743
|
+
let O = A("EmptyPlaceholder"), j = A("ScrollSeekPlaceholder") || sr, M = A("ListComponent"), I = A("ItemComponent"), L = A("GroupComponent"), R = A("computeItemKey"), z = A("isSeeking"), B = A("groupIndices").length > 0, H = A("alignToBottom"), W = A("initialItemFinalLocationReached"), UU = e ? {} : {
|
|
9744
9744
|
boxSizing: "border-box",
|
|
9745
9745
|
...S ? {
|
|
9746
9746
|
display: "inline-block",
|
|
@@ -9764,7 +9764,7 @@ ${c}
|
|
|
9764
9764
|
...Q(M, h),
|
|
9765
9765
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
9766
9766
|
ref: w,
|
|
9767
|
-
style:
|
|
9767
|
+
style: UU,
|
|
9768
9768
|
children: (e ? r.topItems : r.items).map((e2) => {
|
|
9769
9769
|
let c2 = e2.originalIndex, l2 = R(c2 + r.firstItemIndex, e2.data, h);
|
|
9770
9770
|
return z ? (0, import_react.createElement)(j, {
|
|
@@ -10338,10 +10338,10 @@ ${c}
|
|
|
10338
10338
|
}), B = C({
|
|
10339
10339
|
height: 0,
|
|
10340
10340
|
width: 0
|
|
10341
|
-
}), H = U(), W = U(),
|
|
10341
|
+
}), H = U(), W = U(), UU = C(0), G = C(null), WU = C({
|
|
10342
10342
|
column: 0,
|
|
10343
10343
|
row: 0
|
|
10344
|
-
}),
|
|
10344
|
+
}), q = U(), Z = U(), GU = C(false), KU = C(0), qU = C(true), JU = C(false), YU = C(false);
|
|
10345
10345
|
Y(x(b, $(KU), P(([e2, r2]) => !!r2)), () => {
|
|
10346
10346
|
D(qU, false);
|
|
10347
10347
|
}), 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]) => {
|
|
@@ -10354,17 +10354,17 @@ ${c}
|
|
|
10354
10354
|
]), D(qU, true);
|
|
10355
10355
|
});
|
|
10356
10356
|
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
10357
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
10357
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(WU, e2.gap), e2.scrollTop > 0 && (D(GU, true), Et(x(h, Kt(1)), (e3) => {
|
|
10358
10358
|
D(GU, false);
|
|
10359
10359
|
}), D(m, {
|
|
10360
10360
|
top: e2.scrollTop
|
|
10361
10361
|
})));
|
|
10362
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
10362
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(WU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
10363
10363
|
gap: c2,
|
|
10364
10364
|
item: r2,
|
|
10365
10365
|
scrollTop: l2,
|
|
10366
10366
|
viewport: e2
|
|
10367
|
-
}))),
|
|
10367
|
+
}))), q), F(x(ut(V(I), l, V(WU, Or), V(B, xe), V(z, xe), V(G), V(L), V(GU), V(qU), V(KU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
10368
10368
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
10369
10369
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
10370
10370
|
if (y2 === 0) {
|
|
@@ -10383,7 +10383,7 @@ ${c}
|
|
|
10383
10383
|
offsetTop: j2,
|
|
10384
10384
|
top: j2
|
|
10385
10385
|
};
|
|
10386
|
-
})), R), F(x(
|
|
10386
|
+
})), R), F(x(G, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, WU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
10387
10387
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
10388
10388
|
return [
|
|
10389
10389
|
d2,
|
|
@@ -10399,7 +10399,7 @@ ${c}
|
|
|
10399
10399
|
endIndex: e2[e2.length - 1].index,
|
|
10400
10400
|
startIndex: e2[0].index
|
|
10401
10401
|
})), J(An), Gt(0)));
|
|
10402
|
-
F($U, y.scrollSeekRangeChanged), F(x(H, $(z, B, I,
|
|
10402
|
+
F($U, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, WU), k(([e2, r2, c2, l2, u2]) => {
|
|
10403
10403
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
10404
10404
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
10405
10405
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -10414,10 +10414,10 @@ ${c}
|
|
|
10414
10414
|
width: e2.visibleWidth
|
|
10415
10415
|
}))), z), {
|
|
10416
10416
|
customScrollParent: w,
|
|
10417
|
-
data:
|
|
10418
|
-
deviation:
|
|
10417
|
+
data: G,
|
|
10418
|
+
deviation: UU,
|
|
10419
10419
|
footerHeight: u,
|
|
10420
|
-
gap:
|
|
10420
|
+
gap: WU,
|
|
10421
10421
|
headerHeight: d,
|
|
10422
10422
|
increaseViewportBy: e,
|
|
10423
10423
|
initialItemCount: L,
|
|
@@ -10447,7 +10447,7 @@ ${c}
|
|
|
10447
10447
|
propsReady: S,
|
|
10448
10448
|
rangeChanged: $U,
|
|
10449
10449
|
startReached: QU,
|
|
10450
|
-
stateChanged:
|
|
10450
|
+
stateChanged: q,
|
|
10451
10451
|
stateRestoreInProgress: GU,
|
|
10452
10452
|
...M
|
|
10453
10453
|
};
|
|
@@ -10893,15 +10893,15 @@ ${c}
|
|
|
10893
10893
|
value: u,
|
|
10894
10894
|
readOnly: true
|
|
10895
10895
|
}), r[29] = u, r[30] = m, r[31] = R, r[32] = z, r[33] = B, r[34] = H, r[35] = W) : W = r[35];
|
|
10896
|
-
let
|
|
10897
|
-
return r[36] !== W || r[37] !== T || r[38] !== E || r[39] !== I ? (
|
|
10896
|
+
let UU;
|
|
10897
|
+
return r[36] !== W || r[37] !== T || r[38] !== E || r[39] !== I ? (UU = (0, import_jsx_runtime.jsxs)("div", {
|
|
10898
10898
|
className: T,
|
|
10899
10899
|
children: [
|
|
10900
10900
|
E,
|
|
10901
10901
|
I,
|
|
10902
10902
|
W
|
|
10903
10903
|
]
|
|
10904
|
-
}), r[36] = W, r[37] = T, r[38] = E, r[39] = I, r[40] =
|
|
10904
|
+
}), r[36] = W, r[37] = T, r[38] = E, r[39] = I, r[40] = UU) : UU = r[40], UU;
|
|
10905
10905
|
});
|
|
10906
10906
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
10907
10907
|
var CopyButton = (e) => {
|
|
@@ -13710,43 +13710,43 @@ ${c}
|
|
|
13710
13710
|
r[17] === E ? B = r[18] : (B = () => E(PANEL_TYPES.ROW_VIEWER), r[17] = E, r[18] = B);
|
|
13711
13711
|
let H = R === PANEL_TYPES.ROW_VIEWER ? activeClassName : inactiveClassName, W;
|
|
13712
13712
|
r[19] === H ? W = r[20] : (W = cn(tabTriggerClassName, H), r[19] = H, r[20] = W);
|
|
13713
|
-
let
|
|
13714
|
-
r[21] !== B || r[22] !== W ? (
|
|
13713
|
+
let UU;
|
|
13714
|
+
r[21] !== B || r[22] !== W ? (UU = (0, import_jsx_runtime.jsx)(Button, {
|
|
13715
13715
|
variant: "text",
|
|
13716
13716
|
size: "xs",
|
|
13717
13717
|
onClick: B,
|
|
13718
13718
|
className: W,
|
|
13719
13719
|
children: "Rows"
|
|
13720
|
-
}), r[21] = B, r[22] = W, r[23] =
|
|
13721
|
-
let
|
|
13722
|
-
r[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
13720
|
+
}), r[21] = B, r[22] = W, r[23] = UU) : UU = r[23];
|
|
13721
|
+
let G;
|
|
13722
|
+
r[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (0, import_jsx_runtime.jsx)("span", {
|
|
13723
13723
|
className: "text-muted-foreground text-xs",
|
|
13724
13724
|
children: "|"
|
|
13725
|
-
}), r[24] =
|
|
13726
|
-
let
|
|
13727
|
-
r[25] === E ?
|
|
13728
|
-
let
|
|
13729
|
-
r[27] ===
|
|
13725
|
+
}), r[24] = G) : G = r[24];
|
|
13726
|
+
let WU;
|
|
13727
|
+
r[25] === E ? WU = r[26] : (WU = () => E(PANEL_TYPES.COLUMN_EXPLORER), r[25] = E, r[26] = WU);
|
|
13728
|
+
let q = R === PANEL_TYPES.COLUMN_EXPLORER ? activeClassName : inactiveClassName, Z;
|
|
13729
|
+
r[27] === q ? Z = r[28] : (Z = cn(tabTriggerClassName, q), r[27] = q, r[28] = Z);
|
|
13730
13730
|
let GU;
|
|
13731
|
-
r[29] !== Z || r[30] !==
|
|
13731
|
+
r[29] !== Z || r[30] !== WU ? (GU = (0, import_jsx_runtime.jsx)(Button, {
|
|
13732
13732
|
variant: "text",
|
|
13733
13733
|
size: "xs",
|
|
13734
|
-
onClick:
|
|
13734
|
+
onClick: WU,
|
|
13735
13735
|
className: Z,
|
|
13736
13736
|
children: "Columns"
|
|
13737
|
-
}), r[29] = Z, r[30] =
|
|
13737
|
+
}), r[29] = Z, r[30] = WU, r[31] = GU) : GU = r[31];
|
|
13738
13738
|
let KU;
|
|
13739
|
-
r[32] !== GU || r[33] !==
|
|
13739
|
+
r[32] !== GU || r[33] !== UU ? (KU = (0, import_jsx_runtime.jsx)(Fill, {
|
|
13740
13740
|
name: SlotNames.CONTEXT_AWARE_PANEL_HEADER,
|
|
13741
13741
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
13742
13742
|
className: "flex items-center gap-1",
|
|
13743
13743
|
children: [
|
|
13744
|
+
UU,
|
|
13744
13745
|
G,
|
|
13745
|
-
q,
|
|
13746
13746
|
GU
|
|
13747
13747
|
]
|
|
13748
13748
|
})
|
|
13749
|
-
}), r[32] = GU, r[33] =
|
|
13749
|
+
}), r[32] = GU, r[33] = UU, r[34] = KU) : KU = r[34];
|
|
13750
13750
|
let qU;
|
|
13751
13751
|
r[35] === M ? qU = r[36] : (qU = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
13752
13752
|
value: PANEL_TYPES.ROW_VIEWER,
|
|
@@ -14276,7 +14276,6 @@ ${c}
|
|
|
14276
14276
|
headerTooltip: record(string(), string()).optional(),
|
|
14277
14277
|
fieldTypes: columnToFieldTypesSchema.nullish(),
|
|
14278
14278
|
totalColumns: number(),
|
|
14279
|
-
sizeBytes: number().nullish(),
|
|
14280
14279
|
maxColumns: union([
|
|
14281
14280
|
number(),
|
|
14282
14281
|
literal("all")
|
|
@@ -14325,8 +14324,7 @@ ${c}
|
|
|
14325
14324
|
raw_data: union([
|
|
14326
14325
|
string(),
|
|
14327
14326
|
array(looseObject({}))
|
|
14328
|
-
]).nullish()
|
|
14329
|
-
size_bytes: number().nullish()
|
|
14327
|
+
]).nullish()
|
|
14330
14328
|
})),
|
|
14331
14329
|
get_row_ids: rpc.input(object({}).passthrough()).output(object({
|
|
14332
14330
|
row_ids: array(number()),
|
|
@@ -14361,6 +14359,9 @@ ${c}
|
|
|
14361
14359
|
error: string().nullable(),
|
|
14362
14360
|
missing_packages: array(string()).nullable(),
|
|
14363
14361
|
stats: columnStats.nullable()
|
|
14362
|
+
})),
|
|
14363
|
+
get_size_bytes: rpc.input(object({})).output(object({
|
|
14364
|
+
size_bytes: number().nullish()
|
|
14364
14365
|
}))
|
|
14365
14366
|
}).renderer((e) => (0, import_jsx_runtime.jsx)(TableProviders, {
|
|
14366
14367
|
children: (0, import_jsx_runtime.jsx)(LazyDataTableComponent, {
|
|
@@ -14420,7 +14421,7 @@ ${c}
|
|
|
14420
14421
|
return l;
|
|
14421
14422
|
};
|
|
14422
14423
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
14423
|
-
let r = (0, import_compiler_runtime$58.c)(
|
|
14424
|
+
let r = (0, import_compiler_runtime$58.c)(118), c;
|
|
14424
14425
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
14425
14426
|
let l = c, u = e.search, f = e.setValue, p;
|
|
14426
14427
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = [], r[2] = p) : p = r[2];
|
|
@@ -14455,36 +14456,35 @@ ${c}
|
|
|
14455
14456
|
e.pageSize
|
|
14456
14457
|
], r[18] = e.pageSize, r[19] = L, r[20] = R), (0, import_react.useEffect)(L, R);
|
|
14457
14458
|
let z;
|
|
14458
|
-
r[21] !== w || r[22] !== _.pageIndex || r[23] !== _.pageSize || r[24] !== e.cellHoverTexts || r[25] !== e.cellStyles || r[26] !== e.data || r[27] !== e.lazy || r[28] !== e.pageSize || r[29] !== e.rawData || r[30] !== e.
|
|
14459
|
+
r[21] !== w || r[22] !== _.pageIndex || r[23] !== _.pageSize || r[24] !== e.cellHoverTexts || r[25] !== e.cellStyles || r[26] !== e.data || r[27] !== e.lazy || r[28] !== e.pageSize || r[29] !== e.rawData || r[30] !== e.totalRows || r[31] !== u || r[32] !== y || r[33] !== m ? (z = async () => {
|
|
14459
14460
|
if (e.totalRows === 0) return {
|
|
14460
14461
|
rows: Arrays.EMPTY,
|
|
14461
14462
|
totalRows: 0,
|
|
14462
14463
|
cellStyles: {}
|
|
14463
14464
|
};
|
|
14464
|
-
let r2 = e.data, c2 = e.rawData, l2 = e.totalRows, d = e.
|
|
14465
|
+
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({
|
|
14465
14466
|
sort: m.length > 0 ? m.map(_temp$17) : void 0,
|
|
14466
14467
|
query: y,
|
|
14467
14468
|
page_number: _.pageIndex,
|
|
14468
14469
|
page_size: _.pageSize,
|
|
14469
14470
|
filters: filtersToFilterGroup(w)
|
|
14470
14471
|
});
|
|
14471
|
-
if (
|
|
14472
|
+
if (h2) g2.catch(_temp2$11);
|
|
14472
14473
|
else {
|
|
14473
|
-
let e2 = await
|
|
14474
|
-
r2 = e2.data, c2 = e2.raw_data, l2 = e2.total_rows, d = e2.
|
|
14474
|
+
let e2 = await g2;
|
|
14475
|
+
r2 = e2.data, c2 = e2.raw_data, l2 = e2.total_rows, d = e2.cell_styles || {}, f2 = e2.cell_hover_texts || {};
|
|
14475
14476
|
}
|
|
14476
|
-
let [
|
|
14477
|
-
return r2 =
|
|
14477
|
+
let [v2, b2] = await loadTableAndRawData(r2, c2);
|
|
14478
|
+
return r2 = v2, {
|
|
14478
14479
|
rows: r2,
|
|
14479
|
-
rawRows:
|
|
14480
|
+
rawRows: b2,
|
|
14480
14481
|
totalRows: l2,
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
cellHoverTexts: p2
|
|
14482
|
+
cellStyles: d,
|
|
14483
|
+
cellHoverTexts: f2
|
|
14484
14484
|
};
|
|
14485
|
-
}, r[21] = w, r[22] = _.pageIndex, r[23] = _.pageSize, r[24] = e.cellHoverTexts, r[25] = e.cellStyles, r[26] = e.data, r[27] = e.lazy, r[28] = e.pageSize, r[29] = e.rawData, r[30] = e.
|
|
14485
|
+
}, r[21] = w, r[22] = _.pageIndex, r[23] = _.pageSize, r[24] = e.cellHoverTexts, r[25] = e.cellStyles, r[26] = e.data, r[27] = e.lazy, r[28] = e.pageSize, r[29] = e.rawData, r[30] = e.totalRows, r[31] = u, r[32] = y, r[33] = m, r[34] = z) : z = r[34];
|
|
14486
14486
|
let B = useDeepCompareMemoize(e.fieldTypes), H;
|
|
14487
|
-
r[
|
|
14487
|
+
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 ? (H = [
|
|
14488
14488
|
m,
|
|
14489
14489
|
u,
|
|
14490
14490
|
w,
|
|
@@ -14492,15 +14492,27 @@ ${c}
|
|
|
14492
14492
|
B,
|
|
14493
14493
|
e.data,
|
|
14494
14494
|
e.totalRows,
|
|
14495
|
-
e.sizeBytes,
|
|
14496
14495
|
e.lazy,
|
|
14497
14496
|
e.cellHoverTexts,
|
|
14498
14497
|
e.cellStyles,
|
|
14499
14498
|
_.pageSize,
|
|
14500
14499
|
_.pageIndex
|
|
14501
|
-
], r[
|
|
14502
|
-
let { data: W, error:
|
|
14503
|
-
r[
|
|
14500
|
+
], 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];
|
|
14501
|
+
let { data: W, error: UU, isPending: G, isFetching: WU } = useAsyncData(z, H), q = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14502
|
+
r[48] !== q || r[49] !== e ? (Z = async () => !q || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = q, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14503
|
+
let GU = e.showDownload, KU = e.get_size_bytes, qU = e.lazy, JU = e.totalRows, YU = useDeepCompareMemoize(w), XU = useDeepCompareMemoize(m), ZU;
|
|
14504
|
+
r[51] !== q || 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 = [
|
|
14505
|
+
q,
|
|
14506
|
+
GU,
|
|
14507
|
+
KU,
|
|
14508
|
+
qU,
|
|
14509
|
+
JU,
|
|
14510
|
+
y,
|
|
14511
|
+
YU,
|
|
14512
|
+
XU
|
|
14513
|
+
], r[51] = q, 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];
|
|
14514
|
+
let { data: QU, isPending: $U } = useAsyncData(Z, ZU), eW = QU ?? null, tW = !!q && e.showDownload && $U, nW;
|
|
14515
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (nW = async (e2) => ({
|
|
14504
14516
|
rows: await loadTableData((await u({
|
|
14505
14517
|
page_number: e2,
|
|
14506
14518
|
page_size: 1,
|
|
@@ -14509,51 +14521,51 @@ ${c}
|
|
|
14509
14521
|
filters: filtersToFilterGroup(w),
|
|
14510
14522
|
max_columns: null
|
|
14511
14523
|
})).data)
|
|
14512
|
-
}), r[
|
|
14513
|
-
let
|
|
14514
|
-
r[
|
|
14524
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = nW) : nW = r[64];
|
|
14525
|
+
let rW = nW, iW;
|
|
14526
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = () => {
|
|
14515
14527
|
v(_temp4$4);
|
|
14516
|
-
}, r[
|
|
14517
|
-
let
|
|
14518
|
-
r[
|
|
14519
|
-
|
|
14520
|
-
], r[
|
|
14521
|
-
let
|
|
14522
|
-
r[
|
|
14528
|
+
}, r[65] = iW) : iW = r[65];
|
|
14529
|
+
let aW = W == null ? void 0 : W.totalRows, oW;
|
|
14530
|
+
r[66] === aW ? oW = r[67] : (oW = [
|
|
14531
|
+
aW
|
|
14532
|
+
], r[66] = aW, r[67] = oW), (0, import_react.useEffect)(iW, oW);
|
|
14533
|
+
let sW;
|
|
14534
|
+
r[68] === e ? sW = r[69] : (sW = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14523
14535
|
data: null,
|
|
14524
14536
|
stats: {},
|
|
14525
14537
|
bin_values: {},
|
|
14526
14538
|
value_counts: {},
|
|
14527
14539
|
show_charts: false
|
|
14528
|
-
} : e.get_column_summaries({}), r[
|
|
14529
|
-
let
|
|
14530
|
-
r[
|
|
14540
|
+
} : e.get_column_summaries({}), r[68] = e, r[69] = sW);
|
|
14541
|
+
let cW;
|
|
14542
|
+
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 = [
|
|
14531
14543
|
e.get_column_summaries,
|
|
14532
14544
|
e.showColumnSummaries,
|
|
14533
14545
|
w,
|
|
14534
14546
|
y,
|
|
14535
14547
|
e.totalRows,
|
|
14536
14548
|
e.data
|
|
14537
|
-
], r[
|
|
14538
|
-
let { data:
|
|
14539
|
-
if (r[
|
|
14540
|
-
|
|
14541
|
-
},
|
|
14542
|
-
|
|
14543
|
-
], r[
|
|
14549
|
+
], 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];
|
|
14550
|
+
let { data: lW, error: uW } = useAsyncData(sW, cW), dW, fW;
|
|
14551
|
+
if (r[77] === uW ? (dW = r[78], fW = r[79]) : (dW = () => {
|
|
14552
|
+
uW && Logger.error(uW);
|
|
14553
|
+
}, fW = [
|
|
14554
|
+
uW
|
|
14555
|
+
], r[77] = uW, r[78] = dW, r[79] = fW), (0, import_react.useEffect)(dW, fW), G) {
|
|
14544
14556
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14545
|
-
return r[
|
|
14557
|
+
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14546
14558
|
milliseconds: 200,
|
|
14547
14559
|
children: (0, import_jsx_runtime.jsx)(LoadingTable, {
|
|
14548
14560
|
pageSize: c2
|
|
14549
14561
|
})
|
|
14550
|
-
}), r[
|
|
14562
|
+
}), r[80] = c2, r[81] = l2), l2;
|
|
14551
14563
|
}
|
|
14552
|
-
let
|
|
14553
|
-
if (
|
|
14554
|
-
Logger.error(
|
|
14564
|
+
let pW = null;
|
|
14565
|
+
if (UU) {
|
|
14566
|
+
Logger.error(UU);
|
|
14555
14567
|
let e2;
|
|
14556
|
-
r[
|
|
14568
|
+
r[82] === UU ? e2 = r[83] : (e2 = !isStaticNotebook() && (0, import_jsx_runtime.jsxs)(Alert, {
|
|
14557
14569
|
variant: "destructive",
|
|
14558
14570
|
className: "mb-2",
|
|
14559
14571
|
children: [
|
|
@@ -14562,78 +14574,79 @@ ${c}
|
|
|
14562
14574
|
}),
|
|
14563
14575
|
(0, import_jsx_runtime.jsx)("div", {
|
|
14564
14576
|
className: "text-md",
|
|
14565
|
-
children:
|
|
14577
|
+
children: UU.message || "An unknown error occurred"
|
|
14566
14578
|
})
|
|
14567
14579
|
]
|
|
14568
|
-
}), r[
|
|
14580
|
+
}), r[82] = UU, r[83] = e2), pW = e2;
|
|
14569
14581
|
}
|
|
14570
|
-
let
|
|
14571
|
-
r[
|
|
14582
|
+
let mW;
|
|
14583
|
+
r[84] === O ? mW = r[85] : (mW = () => {
|
|
14572
14584
|
j(!O);
|
|
14573
|
-
}, r[
|
|
14574
|
-
let
|
|
14575
|
-
r[
|
|
14585
|
+
}, r[84] = O, r[85] = mW);
|
|
14586
|
+
let hW = mW, gW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, _W = W == null ? void 0 : W.rawRows, vW = WU && !G, 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;
|
|
14587
|
+
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, {
|
|
14576
14588
|
...e,
|
|
14577
|
-
data:
|
|
14578
|
-
rawData:
|
|
14579
|
-
columnSummaries:
|
|
14589
|
+
data: gW,
|
|
14590
|
+
rawData: _W,
|
|
14591
|
+
columnSummaries: lW,
|
|
14580
14592
|
sorting: m,
|
|
14581
14593
|
setSorting: h,
|
|
14582
14594
|
searchQuery: y,
|
|
14583
14595
|
setSearchQuery: b,
|
|
14584
14596
|
filters: w,
|
|
14585
14597
|
setFilters: T,
|
|
14586
|
-
reloading:
|
|
14587
|
-
totalRows:
|
|
14588
|
-
sizeBytes:
|
|
14598
|
+
reloading: vW,
|
|
14599
|
+
totalRows: yW,
|
|
14600
|
+
sizeBytes: eW,
|
|
14601
|
+
sizeBytesIsLoading: tW,
|
|
14589
14602
|
paginationState: _,
|
|
14590
14603
|
setPaginationState: v,
|
|
14591
|
-
cellStyles:
|
|
14592
|
-
cellHoverTexts:
|
|
14593
|
-
toggleDisplayHeader:
|
|
14604
|
+
cellStyles: bW,
|
|
14605
|
+
cellHoverTexts: xW,
|
|
14606
|
+
toggleDisplayHeader: hW,
|
|
14594
14607
|
isChartBuilderOpen: O,
|
|
14595
|
-
getRow:
|
|
14608
|
+
getRow: rW,
|
|
14596
14609
|
cellId: l,
|
|
14597
14610
|
maxHeight: e.maxHeight
|
|
14598
|
-
}), r[
|
|
14599
|
-
let
|
|
14600
|
-
r[
|
|
14611
|
+
}), 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];
|
|
14612
|
+
let CW = SW, wW;
|
|
14613
|
+
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, {
|
|
14601
14614
|
displayHeader: O,
|
|
14602
14615
|
onCloseChartBuilder: () => j(false),
|
|
14603
14616
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14604
14617
|
columns: e.totalColumns,
|
|
14605
14618
|
totalRows: e.totalRows,
|
|
14606
|
-
dataTable:
|
|
14619
|
+
dataTable: CW,
|
|
14607
14620
|
getDataUrl: e.get_data_url,
|
|
14608
14621
|
fieldTypes: e.fieldTypes,
|
|
14609
14622
|
cellId: l
|
|
14610
|
-
}) :
|
|
14611
|
-
let
|
|
14612
|
-
return r[
|
|
14623
|
+
}) : 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];
|
|
14624
|
+
let TW;
|
|
14625
|
+
return r[115] !== pW || r[116] !== wW ? (TW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14613
14626
|
children: [
|
|
14614
|
-
|
|
14615
|
-
|
|
14627
|
+
pW,
|
|
14628
|
+
wW
|
|
14616
14629
|
]
|
|
14617
|
-
}), r[
|
|
14630
|
+
}), r[115] = pW, r[116] = wW, r[117] = TW) : TW = r[117], TW;
|
|
14618
14631
|
});
|
|
14619
14632
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14620
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u,
|
|
14621
|
-
let
|
|
14622
|
-
if (!
|
|
14623
|
-
let e2 = toFieldTypes(
|
|
14624
|
-
return new ColumnChartSpecModel(
|
|
14625
|
-
includeCharts:
|
|
14633
|
+
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, enableSearch: W, searchQuery: UU, setSearchQuery: G, filters: WU, setFilters: q, reloading: Z, freezeColumnsLeft: GU, freezeColumnsRight: KU, hiddenColumns: qU, textJustifyColumns: JU, wrappedColumns: YU, headerTooltip: XU, totalColumns: ZU, get_row_ids: QU, cellStyles: $U, hoverTemplate: eW, cellHoverTexts: tW, toggleDisplayHeader: nW, isChartBuilderOpen: rW, calculate_top_k_rows: iW, preview_column: aW, getRow: oW, cellId: sW, maxHeight: cW }) => {
|
|
14634
|
+
let lW = (0, import_react.useId)(), [uW, dW] = (0, import_react.useState)(0), { isPanelOpen: fW, isAnyPanelOpen: pW, togglePanel: mW, panelType: hW, setPanelType: gW } = usePanelOwnership(lW, sW), _W = (0, import_react.useMemo)(() => {
|
|
14635
|
+
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14636
|
+
let e2 = toFieldTypes(O);
|
|
14637
|
+
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
14638
|
+
includeCharts: L.show_charts
|
|
14626
14639
|
});
|
|
14627
14640
|
}, [
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
]),
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
]),
|
|
14641
|
+
O,
|
|
14642
|
+
L
|
|
14643
|
+
]), vW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), yW = (0, import_react.useMemo)(() => f === "all" ? vW : vW.slice(0, f), [
|
|
14644
|
+
f,
|
|
14645
|
+
vW
|
|
14646
|
+
]), bW = (0, import_react.useMemo)(() => {
|
|
14634
14647
|
let e2 = {};
|
|
14635
14648
|
if (r && r.length > 0) {
|
|
14636
|
-
for (let [c2, l2] of
|
|
14649
|
+
for (let [c2, l2] of yW) if (l2[0] === "number") {
|
|
14637
14650
|
let l3 = 0;
|
|
14638
14651
|
for (let e3 of r) {
|
|
14639
14652
|
let r2 = e3[c2];
|
|
@@ -14648,100 +14661,100 @@ ${c}
|
|
|
14648
14661
|
return e2;
|
|
14649
14662
|
}, [
|
|
14650
14663
|
r,
|
|
14651
|
-
|
|
14652
|
-
]),
|
|
14653
|
-
|
|
14654
|
-
let
|
|
14655
|
-
rowHeaders:
|
|
14656
|
-
selection:
|
|
14657
|
-
chartSpecModel:
|
|
14658
|
-
fieldTypes:
|
|
14659
|
-
textJustifyColumns:
|
|
14660
|
-
wrappedColumns:
|
|
14661
|
-
headerTooltip:
|
|
14662
|
-
showDataTypes:
|
|
14663
|
-
calculateTopKRows:
|
|
14664
|
-
fractionDigitsByColumn:
|
|
14664
|
+
yW
|
|
14665
|
+
]), xW = useDeepCompareMemoize(T), SW = useDeepCompareMemoize(JU), CW = useDeepCompareMemoize(YU), wW = useDeepCompareMemoize(_W), TW = useDeepCompareMemoize(bW), EW = yW.length;
|
|
14666
|
+
O || (w = false);
|
|
14667
|
+
let DW = (0, import_react.useMemo)(() => generateColumns({
|
|
14668
|
+
rowHeaders: xW,
|
|
14669
|
+
selection: m,
|
|
14670
|
+
chartSpecModel: wW,
|
|
14671
|
+
fieldTypes: yW,
|
|
14672
|
+
textJustifyColumns: SW,
|
|
14673
|
+
wrappedColumns: CW,
|
|
14674
|
+
headerTooltip: XU,
|
|
14675
|
+
showDataTypes: w,
|
|
14676
|
+
calculateTopKRows: iW,
|
|
14677
|
+
fractionDigitsByColumn: TW
|
|
14665
14678
|
}), [
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
bW,
|
|
14670
|
-
vW,
|
|
14679
|
+
m,
|
|
14680
|
+
w,
|
|
14681
|
+
wW,
|
|
14671
14682
|
xW,
|
|
14683
|
+
yW,
|
|
14672
14684
|
SW,
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14685
|
+
CW,
|
|
14686
|
+
XU,
|
|
14687
|
+
iW,
|
|
14688
|
+
TW
|
|
14689
|
+
]), OW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14677
14690
|
e2,
|
|
14678
14691
|
true
|
|
14679
14692
|
])), [
|
|
14680
|
-
|
|
14681
|
-
]),
|
|
14682
|
-
if (
|
|
14693
|
+
h
|
|
14694
|
+
]), kW = useEvent_default((e2) => {
|
|
14695
|
+
if (m === "single") {
|
|
14683
14696
|
let r2 = Functions.asUpdater(e2)({});
|
|
14684
|
-
|
|
14697
|
+
z(Object.keys(r2).slice(0, 1));
|
|
14685
14698
|
}
|
|
14686
|
-
if (
|
|
14687
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14688
|
-
|
|
14699
|
+
if (m === "multi") {
|
|
14700
|
+
let r2 = Functions.asUpdater(e2)(OW);
|
|
14701
|
+
z(Object.keys(r2));
|
|
14689
14702
|
}
|
|
14690
|
-
}),
|
|
14691
|
-
if (
|
|
14692
|
-
let r2 = getPageIndexForRow(e2,
|
|
14693
|
-
r2 !== null &&
|
|
14703
|
+
}), AW = useEvent_default((e2) => {
|
|
14704
|
+
if (dW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14705
|
+
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14706
|
+
r2 !== null && M((e3) => ({
|
|
14694
14707
|
...e3,
|
|
14695
14708
|
pageIndex: r2
|
|
14696
14709
|
}));
|
|
14697
|
-
}),
|
|
14698
|
-
|
|
14699
|
-
}),
|
|
14710
|
+
}), jW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), MW = useEvent_default((e2) => {
|
|
14711
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(jW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(jW));
|
|
14712
|
+
}), NW = m === "multi" || m === "single", PW = y && !!aW, FW = isInVscodeExtension(), IW = isIslands();
|
|
14700
14713
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14701
14714
|
children: [
|
|
14702
|
-
l === "too_many" &&
|
|
14715
|
+
l === "too_many" && j.pageSize === r.length && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14703
14716
|
className: "mb-1 rounded",
|
|
14704
14717
|
children: [
|
|
14705
14718
|
"Previewing the first ",
|
|
14706
|
-
|
|
14719
|
+
j.pageSize,
|
|
14707
14720
|
" rows."
|
|
14708
14721
|
]
|
|
14709
14722
|
}),
|
|
14710
|
-
|
|
14723
|
+
EW < ZU && EW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14711
14724
|
className: "mb-1 rounded",
|
|
14712
14725
|
children: [
|
|
14713
14726
|
"Result clipped. Showing ",
|
|
14714
|
-
|
|
14727
|
+
EW,
|
|
14715
14728
|
" of ",
|
|
14716
|
-
|
|
14729
|
+
ZU,
|
|
14717
14730
|
" columns."
|
|
14718
14731
|
]
|
|
14719
14732
|
}),
|
|
14720
|
-
(
|
|
14733
|
+
(L == null ? void 0 : L.is_disabled) && (0, import_jsx_runtime.jsx)(Banner, {
|
|
14721
14734
|
className: "mb-1 rounded",
|
|
14722
14735
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14723
14736
|
}),
|
|
14724
|
-
|
|
14737
|
+
pW && (b || PW) && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14725
14738
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14726
|
-
rowIdx:
|
|
14727
|
-
setRowIdx:
|
|
14739
|
+
rowIdx: uW,
|
|
14740
|
+
setRowIdx: AW,
|
|
14728
14741
|
totalRows: l,
|
|
14729
|
-
fieldTypes:
|
|
14730
|
-
getRow:
|
|
14731
|
-
isSelectable:
|
|
14732
|
-
isRowSelected: !!
|
|
14733
|
-
handleRowSelectionChange:
|
|
14734
|
-
previewColumn:
|
|
14735
|
-
totalColumns:
|
|
14736
|
-
tableId:
|
|
14737
|
-
showRowExplorer:
|
|
14738
|
-
showColumnExplorer:
|
|
14739
|
-
activeTab:
|
|
14740
|
-
onTabChange:
|
|
14742
|
+
fieldTypes: vW,
|
|
14743
|
+
getRow: oW,
|
|
14744
|
+
isSelectable: NW,
|
|
14745
|
+
isRowSelected: !!OW[uW],
|
|
14746
|
+
handleRowSelectionChange: kW,
|
|
14747
|
+
previewColumn: aW,
|
|
14748
|
+
totalColumns: ZU,
|
|
14749
|
+
tableId: lW,
|
|
14750
|
+
showRowExplorer: b && !FW,
|
|
14751
|
+
showColumnExplorer: PW && !FW,
|
|
14752
|
+
activeTab: hW,
|
|
14753
|
+
onTabChange: gW
|
|
14741
14754
|
})
|
|
14742
14755
|
}),
|
|
14743
14756
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14744
|
-
value:
|
|
14757
|
+
value: _W,
|
|
14745
14758
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14746
14759
|
label: e,
|
|
14747
14760
|
align: "top",
|
|
@@ -14749,50 +14762,51 @@ ${c}
|
|
|
14749
14762
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14750
14763
|
data: r,
|
|
14751
14764
|
rawData: c,
|
|
14752
|
-
columns:
|
|
14753
|
-
className:
|
|
14754
|
-
maxHeight:
|
|
14755
|
-
sorting:
|
|
14765
|
+
columns: DW,
|
|
14766
|
+
className: R,
|
|
14767
|
+
maxHeight: cW,
|
|
14768
|
+
sorting: B,
|
|
14756
14769
|
totalRows: l,
|
|
14757
14770
|
sizeBytes: u,
|
|
14758
|
-
|
|
14771
|
+
sizeBytesIsLoading: d,
|
|
14772
|
+
totalColumns: ZU,
|
|
14759
14773
|
manualSorting: true,
|
|
14760
|
-
setSorting:
|
|
14761
|
-
pagination:
|
|
14774
|
+
setSorting: H,
|
|
14775
|
+
pagination: p,
|
|
14762
14776
|
manualPagination: true,
|
|
14763
|
-
selection:
|
|
14764
|
-
paginationState:
|
|
14765
|
-
setPaginationState:
|
|
14766
|
-
rowSelection:
|
|
14767
|
-
cellSelection:
|
|
14768
|
-
cellStyling:
|
|
14769
|
-
hoverTemplate:
|
|
14770
|
-
cellHoverTexts:
|
|
14771
|
-
downloadAs:
|
|
14772
|
-
enableSearch:
|
|
14773
|
-
searchQuery:
|
|
14777
|
+
selection: m,
|
|
14778
|
+
paginationState: j,
|
|
14779
|
+
setPaginationState: M,
|
|
14780
|
+
rowSelection: OW,
|
|
14781
|
+
cellSelection: jW,
|
|
14782
|
+
cellStyling: $U,
|
|
14783
|
+
hoverTemplate: eW,
|
|
14784
|
+
cellHoverTexts: tW,
|
|
14785
|
+
downloadAs: _ ? I : void 0,
|
|
14786
|
+
enableSearch: W,
|
|
14787
|
+
searchQuery: UU,
|
|
14774
14788
|
onSearchQueryChange: G,
|
|
14775
|
-
showFilters:
|
|
14776
|
-
filters:
|
|
14777
|
-
onFiltersChange:
|
|
14778
|
-
calculateTopKRows:
|
|
14779
|
-
reloading:
|
|
14780
|
-
onRowSelectionChange:
|
|
14781
|
-
freezeColumnsLeft:
|
|
14782
|
-
freezeColumnsRight:
|
|
14783
|
-
hiddenColumns:
|
|
14784
|
-
onCellSelectionChange:
|
|
14785
|
-
getRowIds:
|
|
14786
|
-
toggleDisplayHeader:
|
|
14787
|
-
showChartBuilder:
|
|
14788
|
-
isChartBuilderOpen:
|
|
14789
|
-
showPageSizeSelector:
|
|
14790
|
-
showTableExplorer: (
|
|
14791
|
-
togglePanel:
|
|
14792
|
-
isPanelOpen:
|
|
14793
|
-
isAnyPanelOpen:
|
|
14794
|
-
viewedRowIdx:
|
|
14795
|
-
onViewedRowChange: (e2) =>
|
|
14789
|
+
showFilters: g,
|
|
14790
|
+
filters: WU,
|
|
14791
|
+
onFiltersChange: q,
|
|
14792
|
+
calculateTopKRows: iW,
|
|
14793
|
+
reloading: Z,
|
|
14794
|
+
onRowSelectionChange: kW,
|
|
14795
|
+
freezeColumnsLeft: GU,
|
|
14796
|
+
freezeColumnsRight: KU,
|
|
14797
|
+
hiddenColumns: qU,
|
|
14798
|
+
onCellSelectionChange: MW,
|
|
14799
|
+
getRowIds: QU,
|
|
14800
|
+
toggleDisplayHeader: nW,
|
|
14801
|
+
showChartBuilder: S && !IW,
|
|
14802
|
+
isChartBuilderOpen: rW,
|
|
14803
|
+
showPageSizeSelector: v,
|
|
14804
|
+
showTableExplorer: (b || PW) && !FW && !IW,
|
|
14805
|
+
togglePanel: mW,
|
|
14806
|
+
isPanelOpen: fW,
|
|
14807
|
+
isAnyPanelOpen: pW,
|
|
14808
|
+
viewedRowIdx: uW,
|
|
14809
|
+
onViewedRowChange: (e2) => dW(e2)
|
|
14796
14810
|
})
|
|
14797
14811
|
})
|
|
14798
14812
|
})
|
|
@@ -16846,8 +16860,7 @@ ${c}
|
|
|
16846
16860
|
field_types: columnToFieldTypesSchema,
|
|
16847
16861
|
column_types_per_step: array(columnToFieldTypesSchema),
|
|
16848
16862
|
python_code: string().nullish(),
|
|
16849
|
-
sql_code: string().nullish()
|
|
16850
|
-
size_bytes: number().nullish()
|
|
16863
|
+
sql_code: string().nullish()
|
|
16851
16864
|
})),
|
|
16852
16865
|
get_column_values: rpc.input(object({
|
|
16853
16866
|
column: string()
|
|
@@ -16869,10 +16882,12 @@ ${c}
|
|
|
16869
16882
|
string(),
|
|
16870
16883
|
array(object({}).passthrough())
|
|
16871
16884
|
]),
|
|
16872
|
-
total_rows: number()
|
|
16873
|
-
size_bytes: number().nullish()
|
|
16885
|
+
total_rows: number()
|
|
16874
16886
|
})),
|
|
16875
|
-
download_as: DownloadAsSchema
|
|
16887
|
+
download_as: DownloadAsSchema,
|
|
16888
|
+
get_size_bytes: rpc.input(object({})).output(object({
|
|
16889
|
+
size_bytes: number().nullish()
|
|
16890
|
+
}))
|
|
16876
16891
|
}).renderer((e) => (0, import_jsx_runtime.jsx)(TableProviders, {
|
|
16877
16892
|
children: (0, import_jsx_runtime.jsx)(DataFrameComponent, {
|
|
16878
16893
|
...e.data,
|
|
@@ -16886,35 +16901,35 @@ ${c}
|
|
|
16886
16901
|
transforms: []
|
|
16887
16902
|
};
|
|
16888
16903
|
const DataFrameComponent = (0, import_react.memo)((e) => {
|
|
16889
|
-
let r = (0, import_compiler_runtime$45.c)(70), { columns: c, pageSize: l, showDownload: u, lazy: d, value: f, setValue: p, get_dataframe: m, get_column_values: h, search: g, download_as: _,
|
|
16890
|
-
r[0] === m ?
|
|
16891
|
-
let
|
|
16892
|
-
r[2] ===
|
|
16893
|
-
|
|
16894
|
-
], r[2] =
|
|
16895
|
-
let { data:
|
|
16896
|
-
r[4] ===
|
|
16897
|
-
let { url:
|
|
16904
|
+
let r = (0, import_compiler_runtime$45.c)(70), { columns: c, pageSize: l, showDownload: u, lazy: d, value: f, setValue: p, get_dataframe: m, get_column_values: h, search: g, download_as: _, get_size_bytes: v, host: y } = e, b;
|
|
16905
|
+
r[0] === m ? b = r[1] : (b = () => m({}), r[0] = m, r[1] = b);
|
|
16906
|
+
let S = f == null ? void 0 : f.transforms, w;
|
|
16907
|
+
r[2] === S ? w = r[3] : (w = [
|
|
16908
|
+
S
|
|
16909
|
+
], r[2] = S, r[3] = w);
|
|
16910
|
+
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16911
|
+
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16912
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, UU = z == null ? void 0 : z.length, [G, WU] = (0, import_react.useState)(f || EMPTY), q = (0, import_react.useRef)(null), Z;
|
|
16898
16913
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16899
16914
|
var _a3;
|
|
16900
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16915
|
+
d && e2 !== "transform" && ((_a3 = q.current) == null ? void 0 : _a3.submit());
|
|
16901
16916
|
}, r[6] = d, r[7] = Z);
|
|
16902
|
-
let GU = Z, KU = (0, import_react.useRef)(
|
|
16903
|
-
r[8] ===
|
|
16904
|
-
KU.current =
|
|
16905
|
-
}, r[8] =
|
|
16917
|
+
let GU = Z, KU = (0, import_react.useRef)(G), qU;
|
|
16918
|
+
r[8] === G ? qU = r[9] : (qU = () => {
|
|
16919
|
+
KU.current = G;
|
|
16920
|
+
}, r[8] = G, r[9] = qU), (0, import_react.useEffect)(qU);
|
|
16906
16921
|
let JU;
|
|
16907
16922
|
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (JU = () => {
|
|
16908
16923
|
let e2 = KU.current;
|
|
16909
16924
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16910
16925
|
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = JU) : JU = r[12];
|
|
16911
16926
|
let YU = f == null ? void 0 : f.transforms.length, XU;
|
|
16912
|
-
r[13] !==
|
|
16913
|
-
|
|
16927
|
+
r[13] !== T || r[14] !== p || r[15] !== YU ? (XU = [
|
|
16928
|
+
T,
|
|
16914
16929
|
YU,
|
|
16915
16930
|
KU,
|
|
16916
16931
|
p
|
|
16917
|
-
], r[13] =
|
|
16932
|
+
], r[13] = T, r[14] = p, r[15] = YU, r[16] = XU) : XU = r[16], (0, import_react.useEffect)(JU, XU);
|
|
16918
16933
|
let ZU;
|
|
16919
16934
|
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16920
16935
|
value: "transform",
|
|
@@ -16927,7 +16942,7 @@ ${c}
|
|
|
16927
16942
|
]
|
|
16928
16943
|
}), r[17] = ZU) : ZU = r[17];
|
|
16929
16944
|
let QU;
|
|
16930
|
-
r[18] ===
|
|
16945
|
+
r[18] === H ? QU = r[19] : (QU = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16931
16946
|
value: "python-code",
|
|
16932
16947
|
className: "text-xs py-1",
|
|
16933
16948
|
children: [
|
|
@@ -16936,9 +16951,9 @@ ${c}
|
|
|
16936
16951
|
}),
|
|
16937
16952
|
"Python Code"
|
|
16938
16953
|
]
|
|
16939
|
-
}), r[18] =
|
|
16954
|
+
}), r[18] = H, r[19] = QU);
|
|
16940
16955
|
let $U;
|
|
16941
|
-
r[20] ===
|
|
16956
|
+
r[20] === W ? $U = r[21] : ($U = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16942
16957
|
value: "sql-code",
|
|
16943
16958
|
className: "text-xs py-1",
|
|
16944
16959
|
children: [
|
|
@@ -16947,7 +16962,7 @@ ${c}
|
|
|
16947
16962
|
}),
|
|
16948
16963
|
"SQL Code"
|
|
16949
16964
|
]
|
|
16950
|
-
}), r[20] =
|
|
16965
|
+
}), r[20] = W, r[21] = $U);
|
|
16951
16966
|
let eW;
|
|
16952
16967
|
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW = (0, import_jsx_runtime.jsx)("div", {
|
|
16953
16968
|
className: "grow"
|
|
@@ -16963,9 +16978,9 @@ ${c}
|
|
|
16963
16978
|
]
|
|
16964
16979
|
}), r[23] = QU, r[24] = $U, r[25] = tW) : tW = r[25];
|
|
16965
16980
|
let nW;
|
|
16966
|
-
r[26] ===
|
|
16981
|
+
r[26] === j ? nW = r[27] : (nW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16967
16982
|
size: "small"
|
|
16968
|
-
}), r[26] =
|
|
16983
|
+
}), r[26] = j, r[27] = nW);
|
|
16969
16984
|
let rW;
|
|
16970
16985
|
r[28] !== tW || r[29] !== nW ? (rW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16971
16986
|
className: "flex items-center gap-2",
|
|
@@ -16976,45 +16991,45 @@ ${c}
|
|
|
16976
16991
|
}), r[28] = tW, r[29] = nW, r[30] = rW) : rW = r[30];
|
|
16977
16992
|
let iW;
|
|
16978
16993
|
r[31] !== p || r[32] !== f ? (iW = (e2) => {
|
|
16979
|
-
dequal(e2, f) || (p(e2),
|
|
16994
|
+
dequal(e2, f) || (p(e2), WU(e2));
|
|
16980
16995
|
}, r[31] = p, r[32] = f, r[33] = iW) : iW = r[33];
|
|
16981
16996
|
let oW;
|
|
16982
|
-
r[34] !==
|
|
16997
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !== iW ? (oW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16983
16998
|
value: "transform",
|
|
16984
16999
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16985
17000
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16986
|
-
ref:
|
|
16987
|
-
initialValue:
|
|
17001
|
+
ref: q,
|
|
17002
|
+
initialValue: G,
|
|
16988
17003
|
columns: c,
|
|
16989
17004
|
onChange: iW,
|
|
16990
|
-
onInvalidChange:
|
|
17005
|
+
onInvalidChange: WU,
|
|
16991
17006
|
getColumnValues: h,
|
|
16992
|
-
columnTypesPerStep:
|
|
17007
|
+
columnTypesPerStep: B,
|
|
16993
17008
|
lazy: d
|
|
16994
17009
|
})
|
|
16995
|
-
}), r[34] =
|
|
17010
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] = iW, r[40] = oW) : oW = r[40];
|
|
16996
17011
|
let sW;
|
|
16997
|
-
r[41] ===
|
|
17012
|
+
r[41] === H ? sW = r[42] : (sW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16998
17013
|
value: "python-code",
|
|
16999
17014
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
17000
17015
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
17001
17016
|
minHeight: "215px",
|
|
17002
17017
|
maxHeight: "215px",
|
|
17003
|
-
code:
|
|
17018
|
+
code: H,
|
|
17004
17019
|
language: "python"
|
|
17005
17020
|
})
|
|
17006
|
-
}), r[41] =
|
|
17021
|
+
}), r[41] = H, r[42] = sW);
|
|
17007
17022
|
let cW;
|
|
17008
|
-
r[43] ===
|
|
17023
|
+
r[43] === W ? cW = r[44] : (cW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
17009
17024
|
value: "sql-code",
|
|
17010
17025
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
17011
17026
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
17012
17027
|
minHeight: "215px",
|
|
17013
17028
|
maxHeight: "215px",
|
|
17014
|
-
code:
|
|
17029
|
+
code: W,
|
|
17015
17030
|
language: "sql"
|
|
17016
17031
|
})
|
|
17017
|
-
}), r[43] =
|
|
17032
|
+
}), r[43] = W, r[44] = cW);
|
|
17018
17033
|
let lW;
|
|
17019
17034
|
r[45] !== GU || r[46] !== rW || r[47] !== oW || r[48] !== sW || r[49] !== cW ? (lW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
17020
17035
|
defaultValue: "transform",
|
|
@@ -17027,32 +17042,32 @@ ${c}
|
|
|
17027
17042
|
]
|
|
17028
17043
|
}), r[45] = GU, r[46] = rW, r[47] = oW, r[48] = sW, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
17029
17044
|
let uW;
|
|
17030
|
-
r[51] ===
|
|
17031
|
-
error:
|
|
17032
|
-
}), r[51] =
|
|
17033
|
-
let dW =
|
|
17034
|
-
r[53] !== _ || r[54] !==
|
|
17045
|
+
r[51] === O ? uW = r[52] : (uW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
17046
|
+
error: O
|
|
17047
|
+
}), r[51] = O, r[52] = uW);
|
|
17048
|
+
let dW = I || "", fW = L ?? 0, pW = UU ?? 0, mW = R || Arrays.EMPTY, hW = L && L > 5 || false, gW;
|
|
17049
|
+
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, {
|
|
17035
17050
|
label: null,
|
|
17036
17051
|
className: "rounded-b border-x border-b",
|
|
17037
17052
|
data: dW,
|
|
17038
17053
|
hasStableRowId: false,
|
|
17039
17054
|
totalRows: fW,
|
|
17040
|
-
|
|
17041
|
-
totalColumns: mW,
|
|
17055
|
+
totalColumns: pW,
|
|
17042
17056
|
maxColumns: "all",
|
|
17043
17057
|
pageSize: l,
|
|
17044
17058
|
pagination: true,
|
|
17045
|
-
fieldTypes:
|
|
17046
|
-
rowHeaders:
|
|
17059
|
+
fieldTypes: z,
|
|
17060
|
+
rowHeaders: mW,
|
|
17047
17061
|
showDownload: u,
|
|
17048
17062
|
download_as: _,
|
|
17063
|
+
get_size_bytes: v,
|
|
17049
17064
|
enableSearch: false,
|
|
17050
17065
|
showFilters: false,
|
|
17051
17066
|
search: g,
|
|
17052
17067
|
showColumnSummaries: false,
|
|
17053
17068
|
showDataTypes: true,
|
|
17054
17069
|
get_column_summaries: getColumnSummaries,
|
|
17055
|
-
showPageSizeSelector:
|
|
17070
|
+
showPageSizeSelector: hW,
|
|
17056
17071
|
showColumnExplorer: false,
|
|
17057
17072
|
showRowExplorer: true,
|
|
17058
17073
|
showChartBuilder: false,
|
|
@@ -17060,16 +17075,16 @@ ${c}
|
|
|
17060
17075
|
setValue: Functions.NOOP,
|
|
17061
17076
|
selection: null,
|
|
17062
17077
|
lazy: false,
|
|
17063
|
-
host:
|
|
17064
|
-
}), r[53] = _, r[54] =
|
|
17065
|
-
let
|
|
17066
|
-
return r[66] !== lW || r[67] !== uW || r[68] !==
|
|
17078
|
+
host: y
|
|
17079
|
+
}), 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];
|
|
17080
|
+
let _W;
|
|
17081
|
+
return r[66] !== lW || r[67] !== uW || r[68] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
17067
17082
|
children: [
|
|
17068
17083
|
lW,
|
|
17069
17084
|
uW,
|
|
17070
|
-
|
|
17085
|
+
gW
|
|
17071
17086
|
]
|
|
17072
|
-
}), r[66] = lW, r[67] = uW, r[68] =
|
|
17087
|
+
}), r[66] = lW, r[67] = uW, r[68] = gW, r[69] = _W) : _W = r[69], _W;
|
|
17073
17088
|
});
|
|
17074
17089
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17075
17090
|
function getColumnSummaries() {
|
|
@@ -17257,7 +17272,7 @@ ${c}
|
|
|
17257
17272
|
}, W = [
|
|
17258
17273
|
B
|
|
17259
17274
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
17260
|
-
let
|
|
17275
|
+
let UU, G, WU, q, Z, KU, qU, YU, XU;
|
|
17261
17276
|
if (r[11] !== R || r[12] !== z || r[13] !== u || r[14] !== b || r[15] !== f || r[16] !== v || r[17] !== h || r[18] !== d || r[19] !== y || r[20] !== l || r[21] !== c) {
|
|
17262
17277
|
XU = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
17263
17278
|
bb0: {
|
|
@@ -17267,7 +17282,7 @@ ${c}
|
|
|
17267
17282
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
17268
17283
|
r[33] !== g2 || r[34] !== _2 ? (w = (e3) => g2 && e3.is_directory || _2 && !e3.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
17269
17284
|
let T2 = Z.filter(w);
|
|
17270
|
-
if (
|
|
17285
|
+
if (UU = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
17271
17286
|
let e3;
|
|
17272
17287
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
17273
17288
|
kind: "danger",
|
|
@@ -17276,18 +17291,18 @@ ${c}
|
|
|
17276
17291
|
break bb0;
|
|
17277
17292
|
}
|
|
17278
17293
|
let E2;
|
|
17279
|
-
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2),
|
|
17294
|
+
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), G = E2.deliminator;
|
|
17280
17295
|
let O2;
|
|
17281
17296
|
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$6), r[40] = c, r[41] = O2), qU = O2;
|
|
17282
17297
|
let j2;
|
|
17283
|
-
r[42] !==
|
|
17298
|
+
r[42] !== G || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
17284
17299
|
if (b) return;
|
|
17285
17300
|
if (S(true), e3 === PARENT_DIRECTORY) {
|
|
17286
|
-
if (v ===
|
|
17301
|
+
if (v === G) {
|
|
17287
17302
|
S(false);
|
|
17288
17303
|
return;
|
|
17289
17304
|
}
|
|
17290
|
-
e3 = Paths.dirname(v), e3 === "" && (e3 =
|
|
17305
|
+
e3 = Paths.dirname(v), e3 === "" && (e3 = G);
|
|
17291
17306
|
}
|
|
17292
17307
|
let r2 = e3.length < u.length;
|
|
17293
17308
|
if (h && r2) {
|
|
@@ -17299,7 +17314,7 @@ ${c}
|
|
|
17299
17314
|
return;
|
|
17300
17315
|
}
|
|
17301
17316
|
y(e3), S(false);
|
|
17302
|
-
}, r[42] =
|
|
17317
|
+
}, r[42] = G, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], YU = j2;
|
|
17303
17318
|
let M2;
|
|
17304
17319
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e3) {
|
|
17305
17320
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -17327,7 +17342,7 @@ ${c}
|
|
|
17327
17342
|
let H2 = B2, W2;
|
|
17328
17343
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17329
17344
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17330
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
17345
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], WU = W2, KU = function() {
|
|
17331
17346
|
let e3 = [];
|
|
17332
17347
|
for (let r2 of Z) {
|
|
17333
17348
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
@@ -17342,7 +17357,7 @@ ${c}
|
|
|
17342
17357
|
...c,
|
|
17343
17358
|
...e3
|
|
17344
17359
|
]);
|
|
17345
|
-
},
|
|
17360
|
+
}, q = [];
|
|
17346
17361
|
let ZU2;
|
|
17347
17362
|
r[59] === YU ? ZU2 = r[60] : (ZU2 = () => YU(PARENT_DIRECTORY), r[59] = YU, r[60] = ZU2);
|
|
17348
17363
|
let QU2, $U2;
|
|
@@ -17362,7 +17377,7 @@ ${c}
|
|
|
17362
17377
|
QU2,
|
|
17363
17378
|
$U2
|
|
17364
17379
|
]
|
|
17365
|
-
}, "Parent directory"), r[63] = ZU2, r[64] = eW2),
|
|
17380
|
+
}, "Parent directory"), r[63] = ZU2, r[64] = eW2), q.push(eW2);
|
|
17366
17381
|
for (let e3 of Z) {
|
|
17367
17382
|
let r2 = e3.path;
|
|
17368
17383
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
@@ -17370,7 +17385,7 @@ ${c}
|
|
|
17370
17385
|
let { path: r3 } = e4;
|
|
17371
17386
|
return YU(r3);
|
|
17372
17387
|
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17373
|
-
|
|
17388
|
+
q.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17374
17389
|
className: cn("hover:bg-accent group select-none", {
|
|
17375
17390
|
"bg-primary/25 hover:bg-primary/35": u2
|
|
17376
17391
|
}),
|
|
@@ -17400,14 +17415,14 @@ ${c}
|
|
|
17400
17415
|
}, e3.id));
|
|
17401
17416
|
}
|
|
17402
17417
|
}
|
|
17403
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] =
|
|
17404
|
-
} else
|
|
17418
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = UU, r[23] = G, r[24] = WU, r[25] = q, r[26] = Z, r[27] = KU, r[28] = qU, r[29] = YU, r[30] = XU;
|
|
17419
|
+
} else UU = r[22], G = r[23], WU = r[24], q = r[25], Z = r[26], KU = r[27], qU = r[28], YU = r[29], XU = r[30];
|
|
17405
17420
|
if (XU !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return XU;
|
|
17406
17421
|
let ZU, QU, $U, eW, tW, nW, rW;
|
|
17407
|
-
if (r[65] !==
|
|
17422
|
+
if (r[65] !== UU || r[66] !== R || r[67] !== G || r[68] !== WU || r[69] !== z || r[70] !== q || r[71] !== Z || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== KU || r[79] !== qU || r[80] !== d || r[81] !== YU || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
17408
17423
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
17409
17424
|
path: v,
|
|
17410
|
-
delimiter:
|
|
17425
|
+
delimiter: G,
|
|
17411
17426
|
initialPath: u,
|
|
17412
17427
|
restrictNavigation: h
|
|
17413
17428
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
@@ -17431,8 +17446,8 @@ ${c}
|
|
|
17431
17446
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17432
17447
|
size: "xs",
|
|
17433
17448
|
variant: "link",
|
|
17434
|
-
onClick:
|
|
17435
|
-
children:
|
|
17449
|
+
onClick: UU ? WU : KU,
|
|
17450
|
+
children: UU ? "Deselect all" : "Select all"
|
|
17436
17451
|
})
|
|
17437
17452
|
})
|
|
17438
17453
|
]
|
|
@@ -17469,12 +17484,12 @@ ${c}
|
|
|
17469
17484
|
]
|
|
17470
17485
|
}), r[104] = T, r[105] = S2);
|
|
17471
17486
|
let E2;
|
|
17472
|
-
r[106] ===
|
|
17487
|
+
r[106] === q ? E2 = r[107] : (E2 = (0, import_jsx_runtime.jsx)(Table, {
|
|
17473
17488
|
className: "cursor-pointer table-fixed",
|
|
17474
17489
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17475
|
-
children:
|
|
17490
|
+
children: q
|
|
17476
17491
|
})
|
|
17477
|
-
}), r[106] =
|
|
17492
|
+
}), r[106] = q, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17478
17493
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17479
17494
|
style: b2,
|
|
17480
17495
|
"aria-busy": B,
|
|
@@ -17517,7 +17532,7 @@ ${c}
|
|
|
17517
17532
|
})
|
|
17518
17533
|
})
|
|
17519
17534
|
]
|
|
17520
|
-
}), r[65] =
|
|
17535
|
+
}), r[65] = UU, r[66] = R, r[67] = G, r[68] = WU, r[69] = z, r[70] = q, r[71] = Z, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = KU, r[79] = qU, r[80] = d, r[81] = YU, r[82] = l, r[83] = T, r[84] = c.length, r[85] = ZU, r[86] = QU, r[87] = $U, r[88] = eW, r[89] = tW, r[90] = nW, r[91] = rW;
|
|
17521
17536
|
} else ZU = r[85], QU = r[86], $U = r[87], eW = r[88], tW = r[89], nW = r[90], rW = r[91];
|
|
17522
17537
|
let iW;
|
|
17523
17538
|
r[112] !== tW || r[113] !== nW ? (iW = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -22920,15 +22935,15 @@ ${c}
|
|
|
22920
22935
|
return typeof w == "function" ? w : noop$2;
|
|
22921
22936
|
}, [
|
|
22922
22937
|
w
|
|
22923
|
-
]),
|
|
22938
|
+
]), UU = (0, import_react.useMemo)(function() {
|
|
22924
22939
|
return typeof S == "function" ? S : noop$2;
|
|
22925
22940
|
}, [
|
|
22926
22941
|
S
|
|
22927
|
-
]),
|
|
22942
|
+
]), G = (0, import_react.useRef)(null), WU = (0, import_react.useRef)(null), q = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = q[0], GU = q[1], KU = Z.isFocused, qU = Z.isFileDialogActive, JU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), YU = function() {
|
|
22928
22943
|
!JU.current && qU && setTimeout(function() {
|
|
22929
|
-
|
|
22944
|
+
WU.current && (WU.current.files.length || (GU({
|
|
22930
22945
|
type: "closeDialog"
|
|
22931
|
-
}),
|
|
22946
|
+
}), UU()));
|
|
22932
22947
|
}, 300);
|
|
22933
22948
|
};
|
|
22934
22949
|
(0, import_react.useEffect)(function() {
|
|
@@ -22936,20 +22951,20 @@ ${c}
|
|
|
22936
22951
|
window.removeEventListener("focus", YU, false);
|
|
22937
22952
|
};
|
|
22938
22953
|
}, [
|
|
22939
|
-
|
|
22954
|
+
WU,
|
|
22940
22955
|
qU,
|
|
22941
|
-
|
|
22956
|
+
UU,
|
|
22942
22957
|
JU
|
|
22943
22958
|
]);
|
|
22944
22959
|
var XU = (0, import_react.useRef)([]), ZU = (0, import_react.useRef)([]), QU = function(e2) {
|
|
22945
|
-
|
|
22960
|
+
G.current && G.current.contains(e2.target) || (e2.preventDefault(), XU.current = []);
|
|
22946
22961
|
};
|
|
22947
22962
|
(0, import_react.useEffect)(function() {
|
|
22948
22963
|
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", QU, false)), function() {
|
|
22949
22964
|
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", QU));
|
|
22950
22965
|
};
|
|
22951
22966
|
}, [
|
|
22952
|
-
|
|
22967
|
+
G,
|
|
22953
22968
|
O
|
|
22954
22969
|
]), (0, import_react.useEffect)(function() {
|
|
22955
22970
|
var e2 = function(e3) {
|
|
@@ -22981,12 +22996,12 @@ ${c}
|
|
|
22981
22996
|
document.removeEventListener("dragenter", e2), document.removeEventListener("dragleave", r2), document.removeEventListener("dragend", c2), document.removeEventListener("drop", l2);
|
|
22982
22997
|
};
|
|
22983
22998
|
}, [
|
|
22984
|
-
|
|
22999
|
+
G
|
|
22985
23000
|
]), (0, import_react.useEffect)(function() {
|
|
22986
|
-
return !l && E &&
|
|
23001
|
+
return !l && E && G.current && G.current.focus(), function() {
|
|
22987
23002
|
};
|
|
22988
23003
|
}, [
|
|
22989
|
-
|
|
23004
|
+
G,
|
|
22990
23005
|
E,
|
|
22991
23006
|
l
|
|
22992
23007
|
]);
|
|
@@ -23043,7 +23058,7 @@ ${c}
|
|
|
23043
23058
|
]), nW = (0, import_react.useCallback)(function(e2) {
|
|
23044
23059
|
e2.preventDefault(), e2.persist(), pW(e2);
|
|
23045
23060
|
var r2 = XU.current.filter(function(e3) {
|
|
23046
|
-
return
|
|
23061
|
+
return G.current && G.current.contains(e3);
|
|
23047
23062
|
}), c2 = r2.indexOf(e2.target);
|
|
23048
23063
|
c2 !== -1 && r2.splice(c2, 1), XU.current = r2, !(r2.length > 0) && (GU({
|
|
23049
23064
|
type: "setDraggedFiles",
|
|
@@ -23052,7 +23067,7 @@ ${c}
|
|
|
23052
23067
|
isDragReject: false
|
|
23053
23068
|
}), isEvtWithFiles(e2) && g && g(e2));
|
|
23054
23069
|
}, [
|
|
23055
|
-
|
|
23070
|
+
G,
|
|
23056
23071
|
g,
|
|
23057
23072
|
L
|
|
23058
23073
|
]), rW = (0, import_react.useCallback)(function(e2, r2) {
|
|
@@ -23125,28 +23140,28 @@ ${c}
|
|
|
23125
23140
|
type: "closeDialog"
|
|
23126
23141
|
});
|
|
23127
23142
|
}).catch(function(e3) {
|
|
23128
|
-
isAbort(e3) ? (
|
|
23143
|
+
isAbort(e3) ? (UU(e3), GU({
|
|
23129
23144
|
type: "closeDialog"
|
|
23130
|
-
})) : isSecurityError(e3) ? (JU.current = false,
|
|
23145
|
+
})) : isSecurityError(e3) ? (JU.current = false, WU.current ? (WU.current.value = null, WU.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);
|
|
23131
23146
|
});
|
|
23132
23147
|
return;
|
|
23133
23148
|
}
|
|
23134
|
-
|
|
23149
|
+
WU.current && (GU({
|
|
23135
23150
|
type: "openDialog"
|
|
23136
|
-
}), W(),
|
|
23151
|
+
}), W(), WU.current.value = null, WU.current.click());
|
|
23137
23152
|
}, [
|
|
23138
23153
|
GU,
|
|
23139
23154
|
W,
|
|
23140
|
-
|
|
23155
|
+
UU,
|
|
23141
23156
|
T,
|
|
23142
23157
|
rW,
|
|
23143
23158
|
$U,
|
|
23144
23159
|
H,
|
|
23145
23160
|
p
|
|
23146
23161
|
]), oW = (0, import_react.useCallback)(function(e2) {
|
|
23147
|
-
!
|
|
23162
|
+
!G.current || !G.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), aW());
|
|
23148
23163
|
}, [
|
|
23149
|
-
|
|
23164
|
+
G,
|
|
23150
23165
|
aW
|
|
23151
23166
|
]), sW = (0, import_react.useCallback)(function() {
|
|
23152
23167
|
GU({
|
|
@@ -23182,12 +23197,12 @@ ${c}
|
|
|
23182
23197
|
onDragLeave: fW(composeEventHandlers(_2, nW)),
|
|
23183
23198
|
onDrop: fW(composeEventHandlers(v2, iW)),
|
|
23184
23199
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23185
|
-
}, c2,
|
|
23200
|
+
}, c2, G), !l && !M ? {
|
|
23186
23201
|
tabIndex: 0
|
|
23187
23202
|
} : {}), y2);
|
|
23188
23203
|
};
|
|
23189
23204
|
}, [
|
|
23190
|
-
|
|
23205
|
+
G,
|
|
23191
23206
|
oW,
|
|
23192
23207
|
sW,
|
|
23193
23208
|
cW,
|
|
@@ -23223,10 +23238,10 @@ ${c}
|
|
|
23223
23238
|
onChange: uW(composeEventHandlers(l2, iW)),
|
|
23224
23239
|
onClick: uW(composeEventHandlers(u2, hW)),
|
|
23225
23240
|
tabIndex: -1
|
|
23226
|
-
}, c2,
|
|
23241
|
+
}, c2, WU)), d2);
|
|
23227
23242
|
};
|
|
23228
23243
|
}, [
|
|
23229
|
-
|
|
23244
|
+
WU,
|
|
23230
23245
|
c,
|
|
23231
23246
|
p,
|
|
23232
23247
|
iW,
|
|
@@ -23236,8 +23251,8 @@ ${c}
|
|
|
23236
23251
|
isFocused: KU && !l,
|
|
23237
23252
|
getRootProps: mW,
|
|
23238
23253
|
getInputProps: gW,
|
|
23239
|
-
rootRef:
|
|
23240
|
-
inputRef:
|
|
23254
|
+
rootRef: G,
|
|
23255
|
+
inputRef: WU,
|
|
23241
23256
|
open: uW(aW)
|
|
23242
23257
|
});
|
|
23243
23258
|
}
|
|
@@ -23456,8 +23471,8 @@ ${c}
|
|
|
23456
23471
|
r[43] === H ? W = r[44] : (W = (0, import_jsx_runtime.jsx)("input", {
|
|
23457
23472
|
...H
|
|
23458
23473
|
}), r[43] = H, r[44] = W);
|
|
23459
|
-
let
|
|
23460
|
-
r[45] !== I || r[46] !== M ? (
|
|
23474
|
+
let UU;
|
|
23475
|
+
r[45] !== I || r[46] !== M ? (UU = M ? (0, import_jsx_runtime.jsxs)("span", {
|
|
23461
23476
|
children: [
|
|
23462
23477
|
"To re-upload: ",
|
|
23463
23478
|
renderHTML({
|
|
@@ -23469,14 +23484,14 @@ ${c}
|
|
|
23469
23484
|
children: renderHTML({
|
|
23470
23485
|
html: I
|
|
23471
23486
|
})
|
|
23472
|
-
}), r[45] = I, r[46] = M, r[47] =
|
|
23473
|
-
let
|
|
23474
|
-
r[48] !==
|
|
23487
|
+
}), r[45] = I, r[46] = M, r[47] = UU) : UU = r[47];
|
|
23488
|
+
let G = w && "text-primary", WU = T && "text-destructive", q;
|
|
23489
|
+
r[48] !== G || r[49] !== WU ? (q = cn(G, WU), r[48] = G, r[49] = WU, r[50] = q) : q = r[50];
|
|
23475
23490
|
let Z;
|
|
23476
|
-
r[51] ===
|
|
23491
|
+
r[51] === q ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23477
23492
|
strokeWidth: 1.4,
|
|
23478
|
-
className:
|
|
23479
|
-
}), r[51] =
|
|
23493
|
+
className: q
|
|
23494
|
+
}), r[51] = q, r[52] = Z);
|
|
23480
23495
|
let GU = w && "text-primary", KU = T && "text-destructive", qU;
|
|
23481
23496
|
r[53] !== GU || r[54] !== KU ? (qU = cn(GU, KU), r[53] = GU, r[54] = KU, r[55] = qU) : qU = r[55];
|
|
23482
23497
|
let JU;
|
|
@@ -23493,13 +23508,13 @@ ${c}
|
|
|
23493
23508
|
]
|
|
23494
23509
|
}), r[58] = Z, r[59] = JU, r[60] = YU) : YU = r[60];
|
|
23495
23510
|
let XU;
|
|
23496
|
-
r[61] !==
|
|
23511
|
+
r[61] !== UU || r[62] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23497
23512
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23498
23513
|
children: [
|
|
23499
|
-
|
|
23514
|
+
UU,
|
|
23500
23515
|
YU
|
|
23501
23516
|
]
|
|
23502
|
-
}), r[61] =
|
|
23517
|
+
}), r[61] = UU, r[62] = YU, r[63] = XU) : XU = r[63];
|
|
23503
23518
|
let ZU;
|
|
23504
23519
|
r[64] !== W || r[65] !== XU || r[66] !== z || r[67] !== B ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23505
23520
|
className: z,
|
|
@@ -23643,28 +23658,28 @@ ${c}
|
|
|
23643
23658
|
}
|
|
23644
23659
|
R(null), d(u), y && B();
|
|
23645
23660
|
}, r[1] = y, r[2] = u, r[3] = d, r[4] = O, r[5] = E, r[6] = H) : H = r[6];
|
|
23646
|
-
let W = !M && m,
|
|
23647
|
-
r[7] !== m || r[8] !== W ? (
|
|
23661
|
+
let W = !M && m, UU;
|
|
23662
|
+
r[7] !== m || r[8] !== W ? (UU = cn("flex flex-col gap-4 rounded-lg py-4 px-8", {
|
|
23648
23663
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
23649
23664
|
"bg-(--amber-1) border-(--amber-7)": W
|
|
23650
|
-
}), r[7] = m, r[8] = W, r[9] =
|
|
23651
|
-
let
|
|
23652
|
-
r[10] !== u || r[11] !== d ? (
|
|
23665
|
+
}), r[7] = m, r[8] = W, r[9] = UU) : UU = r[9];
|
|
23666
|
+
let G;
|
|
23667
|
+
r[10] !== u || r[11] !== d ? (G = (e2) => {
|
|
23653
23668
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23654
|
-
}, r[10] = u, r[11] = d, r[12] =
|
|
23655
|
-
let
|
|
23656
|
-
r[13] === f ?
|
|
23669
|
+
}, r[10] = u, r[11] = d, r[12] = G) : G = r[12];
|
|
23670
|
+
let WU;
|
|
23671
|
+
r[13] === f ? WU = r[14] : (WU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23657
23672
|
className: "text-center",
|
|
23658
23673
|
children: renderHTML({
|
|
23659
23674
|
html: f
|
|
23660
23675
|
})
|
|
23661
|
-
}), r[13] = f, r[14] =
|
|
23662
|
-
let
|
|
23663
|
-
r[15] === L ?
|
|
23676
|
+
}), r[13] = f, r[14] = WU);
|
|
23677
|
+
let q;
|
|
23678
|
+
r[15] === L ? q = r[16] : (q = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23664
23679
|
kind: "danger",
|
|
23665
23680
|
className: "rounded",
|
|
23666
23681
|
children: L ?? "Invalid input"
|
|
23667
|
-
}), r[15] = L, r[16] =
|
|
23682
|
+
}), r[15] = L, r[16] = q);
|
|
23668
23683
|
let Z;
|
|
23669
23684
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23670
23685
|
children: c
|
|
@@ -23704,16 +23719,16 @@ ${c}
|
|
|
23704
23719
|
]
|
|
23705
23720
|
}), r[33] = YU, r[34] = GU, r[35] = XU) : XU = r[35];
|
|
23706
23721
|
let ZU;
|
|
23707
|
-
r[36] !== XU || r[37] !==
|
|
23708
|
-
className:
|
|
23709
|
-
onKeyDown:
|
|
23722
|
+
r[36] !== XU || r[37] !== UU || r[38] !== G || r[39] !== WU || r[40] !== q || r[41] !== Z ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23723
|
+
className: UU,
|
|
23724
|
+
onKeyDown: G,
|
|
23710
23725
|
children: [
|
|
23711
|
-
UU,
|
|
23712
23726
|
WU,
|
|
23727
|
+
q,
|
|
23713
23728
|
Z,
|
|
23714
23729
|
XU
|
|
23715
23730
|
]
|
|
23716
|
-
}), r[36] = XU, r[37] =
|
|
23731
|
+
}), r[36] = XU, r[37] = UU, r[38] = G, r[39] = WU, r[40] = q, r[41] = Z, r[42] = ZU) : ZU = r[42];
|
|
23717
23732
|
let QU;
|
|
23718
23733
|
return r[43] !== ZU || r[44] !== H ? (QU = (0, import_jsx_runtime.jsx)("form", {
|
|
23719
23734
|
className: "contents",
|
|
@@ -23870,7 +23885,7 @@ ${c}
|
|
|
23870
23885
|
M,
|
|
23871
23886
|
g,
|
|
23872
23887
|
r
|
|
23873
|
-
]), B = m != null && m.length > 0, H = h != null && h.length > 0, W = O.length,
|
|
23888
|
+
]), B = m != null && m.length > 0, H = h != null && h.length > 0, W = O.length, UU = ((_a3 = O[0]) == null ? void 0 : _a3.length) ?? 0;
|
|
23874
23889
|
return (0, import_jsx_runtime.jsx)(Labeled, {
|
|
23875
23890
|
label: c,
|
|
23876
23891
|
align: "top",
|
|
@@ -23908,7 +23923,7 @@ ${c}
|
|
|
23908
23923
|
var _a4, _b3;
|
|
23909
23924
|
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = (m == null ? void 0 : m[r2]) ?? `Row ${r2 + 1}`, _2 = (h == null ? void 0 : h[c2]) ?? `Column ${c2 + 1}`;
|
|
23910
23925
|
return (0, import_jsx_runtime.jsx)("td", {
|
|
23911
|
-
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-[var(--link)] hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 ===
|
|
23926
|
+
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-[var(--link)] hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 === UU - 1 && "bracket-r", r2 === 0 && "bracket-t", r2 === W - 1 && "bracket-b"),
|
|
23912
23927
|
tabIndex: d2 ? -1 : 0,
|
|
23913
23928
|
"aria-label": `${g2}, ${_2}`,
|
|
23914
23929
|
"aria-valuenow": e3,
|
|
@@ -25473,15 +25488,15 @@ ${c}
|
|
|
25473
25488
|
points: extractTreemapPoints(e2.points)
|
|
25474
25489
|
}));
|
|
25475
25490
|
}, r[27] = u, r[28] = H);
|
|
25476
|
-
let W = useEvent_default(H),
|
|
25477
|
-
r[29] === u ?
|
|
25491
|
+
let W = useEvent_default(H), UU;
|
|
25492
|
+
r[29] === u ? UU = r[30] : (UU = (e2) => {
|
|
25478
25493
|
e2 && u((r2) => ({
|
|
25479
25494
|
...r2,
|
|
25480
25495
|
points: extractSunburstPoints(e2.points)
|
|
25481
25496
|
}));
|
|
25482
|
-
}, r[29] = u, r[30] =
|
|
25483
|
-
let
|
|
25484
|
-
r[31] === u ?
|
|
25497
|
+
}, r[29] = u, r[30] = UU);
|
|
25498
|
+
let G = useEvent_default(UU), WU;
|
|
25499
|
+
r[31] === u ? WU = r[32] : (WU = (e2) => {
|
|
25485
25500
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25486
25501
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25487
25502
|
u((e3) => ({
|
|
@@ -25492,8 +25507,8 @@ ${c}
|
|
|
25492
25507
|
points: r2,
|
|
25493
25508
|
indices: c2
|
|
25494
25509
|
}));
|
|
25495
|
-
}, r[31] = u, r[32] =
|
|
25496
|
-
let
|
|
25510
|
+
}, r[31] = u, r[32] = WU);
|
|
25511
|
+
let q = useEvent_default(WU), Z;
|
|
25497
25512
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25498
25513
|
e2 && u((r2) => ({
|
|
25499
25514
|
...r2,
|
|
@@ -25505,21 +25520,21 @@ ${c}
|
|
|
25505
25520
|
}));
|
|
25506
25521
|
}, r[33] = u, r[34] = Z);
|
|
25507
25522
|
let GU = useEvent_default(Z), KU = m.frames ?? void 0, qU = useEvent_default(_temp3$3), JU;
|
|
25508
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !==
|
|
25523
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== G || r[41] !== q || r[42] !== GU || r[43] !== KU || r[44] !== qU || r[45] !== R ? (JU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25509
25524
|
...m,
|
|
25510
25525
|
layout: h,
|
|
25511
25526
|
onRelayout: R,
|
|
25512
25527
|
onDeselect: B,
|
|
25513
25528
|
onTreemapClick: W,
|
|
25514
|
-
onSunburstClick:
|
|
25529
|
+
onSunburstClick: G,
|
|
25515
25530
|
config: L,
|
|
25516
|
-
onClick:
|
|
25531
|
+
onClick: q,
|
|
25517
25532
|
onSelected: GU,
|
|
25518
25533
|
className: "w-full",
|
|
25519
25534
|
useResizeHandler: true,
|
|
25520
25535
|
frames: KU,
|
|
25521
25536
|
onError: qU
|
|
25522
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] =
|
|
25537
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = G, r[41] = q, r[42] = GU, r[43] = KU, r[44] = qU, r[45] = R, r[46] = JU) : JU = r[46], JU;
|
|
25523
25538
|
});
|
|
25524
25539
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25525
25540
|
function _temp$8(e) {
|
|
@@ -25647,25 +25662,25 @@ ${c}
|
|
|
25647
25662
|
}, c[13] = u, c[14] = B);
|
|
25648
25663
|
let H = B, W;
|
|
25649
25664
|
c[15] === l ? W = c[16] : (W = cn("relative flex touch-none select-none hover:cursor-pointer", "data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center", "data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center", "data-disabled:cursor-not-allowed", l), c[15] = l, c[16] = W);
|
|
25650
|
-
let G;
|
|
25651
|
-
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];
|
|
25652
|
-
let q;
|
|
25653
|
-
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];
|
|
25654
25665
|
let UU;
|
|
25655
|
-
c[
|
|
25666
|
+
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UU = 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] = UU) : UU = c[17];
|
|
25667
|
+
let G;
|
|
25668
|
+
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = 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] = G) : G = c[18];
|
|
25669
|
+
let WU;
|
|
25670
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (WU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25656
25671
|
ref: E,
|
|
25657
25672
|
"data-testid": "track",
|
|
25658
|
-
className:
|
|
25673
|
+
className: UU,
|
|
25659
25674
|
children: (0, import_jsx_runtime.jsx)(Range, {
|
|
25660
25675
|
"data-testid": "range",
|
|
25661
|
-
className:
|
|
25676
|
+
className: G,
|
|
25662
25677
|
onPointerDown: L,
|
|
25663
25678
|
onPointerMove: z,
|
|
25664
25679
|
onPointerUp: H
|
|
25665
25680
|
})
|
|
25666
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25667
|
-
let
|
|
25668
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25681
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = WU) : WU = c[22];
|
|
25682
|
+
let q;
|
|
25683
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (q = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25669
25684
|
asChild: true,
|
|
25670
25685
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
25671
25686
|
"data-testid": "thumb",
|
|
@@ -25675,7 +25690,7 @@ ${c}
|
|
|
25675
25690
|
onMouseEnter: m.setTrue,
|
|
25676
25691
|
onMouseLeave: m.setFalse
|
|
25677
25692
|
})
|
|
25678
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25693
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = q) : q = c[25];
|
|
25679
25694
|
let Z;
|
|
25680
25695
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25681
25696
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
@@ -25687,16 +25702,16 @@ ${c}
|
|
|
25687
25702
|
children: Z
|
|
25688
25703
|
}), c[30] = Z, c[31] = GU);
|
|
25689
25704
|
let KU;
|
|
25690
|
-
c[32] !== f || c[33] !==
|
|
25705
|
+
c[32] !== f || c[33] !== q || c[34] !== GU ? (KU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25691
25706
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25692
25707
|
delayDuration: 0,
|
|
25693
25708
|
open: f,
|
|
25694
25709
|
children: [
|
|
25695
|
-
|
|
25710
|
+
q,
|
|
25696
25711
|
GU
|
|
25697
25712
|
]
|
|
25698
25713
|
})
|
|
25699
|
-
}), c[32] = f, c[33] =
|
|
25714
|
+
}), c[32] = f, c[33] = q, c[34] = GU, c[35] = KU) : KU = c[35];
|
|
25700
25715
|
let qU;
|
|
25701
25716
|
c[36] !== m.setFalse || c[37] !== m.setTrue ? (qU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25702
25717
|
asChild: true,
|
|
@@ -25731,16 +25746,16 @@ ${c}
|
|
|
25731
25746
|
})
|
|
25732
25747
|
}), c[45] = f, c[46] = qU, c[47] = YU, c[48] = XU) : XU = c[48];
|
|
25733
25748
|
let ZU;
|
|
25734
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25749
|
+
return c[49] !== M || c[50] !== u || c[51] !== WU || c[52] !== KU || c[53] !== XU || c[54] !== W ? (ZU = (0, import_jsx_runtime.jsxs)(Root$1, {
|
|
25735
25750
|
ref: M,
|
|
25736
25751
|
className: W,
|
|
25737
25752
|
...u,
|
|
25738
25753
|
children: [
|
|
25739
|
-
|
|
25754
|
+
WU,
|
|
25740
25755
|
KU,
|
|
25741
25756
|
XU
|
|
25742
25757
|
]
|
|
25743
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25758
|
+
}), c[49] = M, c[50] = u, c[51] = WU, c[52] = KU, c[53] = XU, c[54] = W, c[55] = ZU) : ZU = c[55], ZU;
|
|
25744
25759
|
});
|
|
25745
25760
|
RangeSlider.displayName = Root$1.displayName;
|
|
25746
25761
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25785,20 +25800,20 @@ ${c}
|
|
|
25785
25800
|
r[5] !== R || r[6] !== z ? (B = cn("flex items-center gap-2", R, z), r[5] = R, r[6] = z, r[7] = B) : B = r[7];
|
|
25786
25801
|
let H = !v && "data-[orientation=horizontal]:w-36 ", W;
|
|
25787
25802
|
r[8] === H ? W = r[9] : (W = cn("relative flex items-center select-none", H, "data-[orientation=vertical]:h-36"), r[8] = H, r[9] = W);
|
|
25788
|
-
let
|
|
25789
|
-
r[10] !== h || r[11] !== l ? (
|
|
25803
|
+
let UU, G;
|
|
25804
|
+
r[10] !== h || r[11] !== l ? (UU = (e2) => {
|
|
25790
25805
|
E(e2), h || l(e2);
|
|
25791
|
-
},
|
|
25806
|
+
}, G = (e2) => {
|
|
25792
25807
|
h && l(e2);
|
|
25793
|
-
}, r[10] = h, r[11] = l, r[12] =
|
|
25794
|
-
let
|
|
25795
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25808
|
+
}, r[10] = h, r[11] = l, r[12] = UU, r[13] = G) : (UU = r[12], G = r[13]);
|
|
25809
|
+
let WU, q;
|
|
25810
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (WU = () => {
|
|
25796
25811
|
h && !dequal(T, u) && l(T);
|
|
25797
|
-
},
|
|
25812
|
+
}, q = () => {
|
|
25798
25813
|
h && !dequal(T, u) && l(T);
|
|
25799
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25814
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = WU, r[19] = q) : (WU = r[18], q = r[19]);
|
|
25800
25815
|
let Z;
|
|
25801
|
-
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] !==
|
|
25816
|
+
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] !== UU || r[29] !== G || r[30] !== WU || r[31] !== q || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25802
25817
|
id: S,
|
|
25803
25818
|
className: W,
|
|
25804
25819
|
value: T,
|
|
@@ -25807,12 +25822,12 @@ ${c}
|
|
|
25807
25822
|
step: m,
|
|
25808
25823
|
orientation: g,
|
|
25809
25824
|
disabled: y,
|
|
25810
|
-
onValueChange:
|
|
25811
|
-
onValueCommit:
|
|
25812
|
-
onPointerUp:
|
|
25813
|
-
onMouseUp:
|
|
25825
|
+
onValueChange: UU,
|
|
25826
|
+
onValueCommit: G,
|
|
25827
|
+
onPointerUp: WU,
|
|
25828
|
+
onMouseUp: q,
|
|
25814
25829
|
valueMap: b
|
|
25815
|
-
}), 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] =
|
|
25830
|
+
}), 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] = UU, r[29] = G, r[30] = WU, r[31] = q, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25816
25831
|
let GU;
|
|
25817
25832
|
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (GU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25818
25833
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -26062,32 +26077,32 @@ ${c}
|
|
|
26062
26077
|
r[5] === z ? B = r[6] : (B = cn("flex items-center gap-2", z), r[5] = z, r[6] = B);
|
|
26063
26078
|
let H = !v && "data-[orientation=horizontal]:w-36 ", W;
|
|
26064
26079
|
r[7] === H ? W = r[8] : (W = cn("relative flex items-center select-none", H, "data-[orientation=vertical]:h-36"), r[7] = H, r[8] = W);
|
|
26065
|
-
let
|
|
26066
|
-
r[9] === E ?
|
|
26080
|
+
let UU;
|
|
26081
|
+
r[9] === E ? UU = r[10] : (UU = [
|
|
26067
26082
|
E
|
|
26068
|
-
], r[9] = E, r[10] =
|
|
26069
|
-
let
|
|
26070
|
-
r[11] !== h || r[12] !== l ? (
|
|
26083
|
+
], r[9] = E, r[10] = UU);
|
|
26084
|
+
let G, WU;
|
|
26085
|
+
r[11] !== h || r[12] !== l ? (G = (e2) => {
|
|
26071
26086
|
let [r2] = e2;
|
|
26072
26087
|
O(r2), h || l(r2);
|
|
26073
|
-
},
|
|
26088
|
+
}, WU = (e2) => {
|
|
26074
26089
|
let [r2] = e2;
|
|
26075
26090
|
h && l(r2);
|
|
26076
|
-
}, r[11] = h, r[12] = l, r[13] =
|
|
26077
|
-
let
|
|
26078
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !==
|
|
26091
|
+
}, r[11] = h, r[12] = l, r[13] = G, r[14] = WU) : (G = r[13], WU = r[14]);
|
|
26092
|
+
let q;
|
|
26093
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== UU || r[22] !== G || r[23] !== WU || r[24] !== W || r[25] !== y ? (q = (0, import_jsx_runtime.jsx)(Slider, {
|
|
26079
26094
|
id: w,
|
|
26080
26095
|
className: W,
|
|
26081
|
-
value:
|
|
26096
|
+
value: UU,
|
|
26082
26097
|
min: d,
|
|
26083
26098
|
max: f,
|
|
26084
26099
|
step: m,
|
|
26085
26100
|
orientation: g,
|
|
26086
|
-
onValueChange:
|
|
26087
|
-
onValueCommit:
|
|
26101
|
+
onValueChange: G,
|
|
26102
|
+
onValueCommit: WU,
|
|
26088
26103
|
valueMap: y,
|
|
26089
26104
|
disabled: S
|
|
26090
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] =
|
|
26105
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = UU, r[22] = G, r[23] = WU, r[24] = W, r[25] = y, r[26] = q) : q = r[26];
|
|
26091
26106
|
let Z;
|
|
26092
26107
|
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (Z = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
26093
26108
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -26109,14 +26124,14 @@ ${c}
|
|
|
26109
26124
|
isDisabled: S
|
|
26110
26125
|
}), r[32] = S, r[33] = b, r[34] = E, r[35] = c, r[36] = l, r[37] = d, r[38] = m, r[39] = f, r[40] = y, r[41] = GU) : GU = r[41];
|
|
26111
26126
|
let KU;
|
|
26112
|
-
r[42] !==
|
|
26127
|
+
r[42] !== q || r[43] !== Z || r[44] !== GU || r[45] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
26113
26128
|
className: B,
|
|
26114
26129
|
children: [
|
|
26115
|
-
|
|
26130
|
+
q,
|
|
26116
26131
|
Z,
|
|
26117
26132
|
GU
|
|
26118
26133
|
]
|
|
26119
|
-
}), r[42] =
|
|
26134
|
+
}), r[42] = q, r[43] = Z, r[44] = GU, r[45] = B, r[46] = KU) : KU = r[46];
|
|
26120
26135
|
let qU;
|
|
26121
26136
|
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !== KU || r[51] !== I || r[52] !== R ? (qU = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
26122
26137
|
label: c,
|
|
@@ -29133,7 +29148,7 @@ ${c}
|
|
|
29133
29148
|
}
|
|
29134
29149
|
}), u2;
|
|
29135
29150
|
}
|
|
29136
|
-
var
|
|
29151
|
+
var UU = c(W), G = Object.freeze({
|
|
29137
29152
|
areArraysEqual: E,
|
|
29138
29153
|
areDatesEqual: j,
|
|
29139
29154
|
areMapsEqual: M,
|
|
@@ -29141,19 +29156,19 @@ ${c}
|
|
|
29141
29156
|
areRegExpsEqual: H,
|
|
29142
29157
|
areSetsEqual: W,
|
|
29143
29158
|
createIsNestedEqual: r2
|
|
29144
|
-
}),
|
|
29159
|
+
}), WU = Object.freeze({
|
|
29145
29160
|
areArraysEqual: O,
|
|
29146
29161
|
areDatesEqual: j,
|
|
29147
29162
|
areMapsEqual: I,
|
|
29148
29163
|
areObjectsEqual: B,
|
|
29149
29164
|
areRegExpsEqual: H,
|
|
29150
|
-
areSetsEqual:
|
|
29165
|
+
areSetsEqual: UU,
|
|
29151
29166
|
createIsNestedEqual: r2
|
|
29152
|
-
}),
|
|
29167
|
+
}), q = T(G);
|
|
29153
29168
|
function Z(e3, r3) {
|
|
29154
|
-
return
|
|
29169
|
+
return q(e3, r3, void 0);
|
|
29155
29170
|
}
|
|
29156
|
-
var GU = T(l(
|
|
29171
|
+
var GU = T(l(G, {
|
|
29157
29172
|
createIsNestedEqual: function() {
|
|
29158
29173
|
return f;
|
|
29159
29174
|
}
|
|
@@ -29161,11 +29176,11 @@ ${c}
|
|
|
29161
29176
|
function KU(e3, r3) {
|
|
29162
29177
|
return GU(e3, r3, void 0);
|
|
29163
29178
|
}
|
|
29164
|
-
var qU = T(
|
|
29179
|
+
var qU = T(WU);
|
|
29165
29180
|
function JU(e3, r3) {
|
|
29166
29181
|
return qU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29167
29182
|
}
|
|
29168
|
-
var YU = T(l(
|
|
29183
|
+
var YU = T(l(WU, {
|
|
29169
29184
|
createIsNestedEqual: function() {
|
|
29170
29185
|
return f;
|
|
29171
29186
|
}
|
|
@@ -29174,10 +29189,10 @@ ${c}
|
|
|
29174
29189
|
return YU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29175
29190
|
}
|
|
29176
29191
|
function ZU(e3) {
|
|
29177
|
-
return T(l(
|
|
29192
|
+
return T(l(G, e3(G)));
|
|
29178
29193
|
}
|
|
29179
29194
|
function QU(e3) {
|
|
29180
|
-
var r3 = T(l(
|
|
29195
|
+
var r3 = T(l(WU, e3(WU)));
|
|
29181
29196
|
return (function(e4, c2, l2) {
|
|
29182
29197
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29183
29198
|
});
|
|
@@ -29208,7 +29223,7 @@ ${c}
|
|
|
29208
29223
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29209
29224
|
Object.defineProperty(e, "__esModule", {
|
|
29210
29225
|
value: true
|
|
29211
|
-
}), 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 =
|
|
29226
|
+
}), 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 = UU, 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;
|
|
29212
29227
|
var r = require_fast_equals(), c = l(require_react());
|
|
29213
29228
|
function l(e2) {
|
|
29214
29229
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29402,15 +29417,15 @@ ${c}
|
|
|
29402
29417
|
let h2 = f2 ? c2.x + 1 : void 0, g2 = p2 ? c2.y + 1 : void 0;
|
|
29403
29418
|
return h2 == null && g2 == null ? e2 : H(e2, c2, f2 ? c2.x + 1 : void 0, p2 ? c2.y + 1 : void 0, l2, m2, u2, d2);
|
|
29404
29419
|
}
|
|
29405
|
-
function
|
|
29420
|
+
function UU(e2) {
|
|
29406
29421
|
return e2 * 100 + "%";
|
|
29407
29422
|
}
|
|
29408
|
-
var
|
|
29423
|
+
var G = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, WU = (e2, r2, c2) => e2 < 0 ? r2 : c2, q = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), GU = (e2, r2, c2) => {
|
|
29409
29424
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29410
29425
|
return {
|
|
29411
29426
|
left: l2,
|
|
29412
29427
|
width: d2,
|
|
29413
|
-
height:
|
|
29428
|
+
height: WU(f2, e2.height, u2),
|
|
29414
29429
|
top: Z(f2)
|
|
29415
29430
|
};
|
|
29416
29431
|
}, KU = (e2, r2, c2) => {
|
|
@@ -29418,23 +29433,23 @@ ${c}
|
|
|
29418
29433
|
return {
|
|
29419
29434
|
top: l2,
|
|
29420
29435
|
height: d2,
|
|
29421
|
-
width:
|
|
29422
|
-
left:
|
|
29436
|
+
width: G(e2.left, e2.width, f2, c2),
|
|
29437
|
+
left: q(u2)
|
|
29423
29438
|
};
|
|
29424
29439
|
}, qU = (e2, r2, c2) => {
|
|
29425
29440
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29426
29441
|
return {
|
|
29427
29442
|
height: u2,
|
|
29428
|
-
width: f2 < 0 ? e2.width :
|
|
29443
|
+
width: f2 < 0 ? e2.width : G(e2.left, e2.width, d2, c2),
|
|
29429
29444
|
top: Z(l2),
|
|
29430
|
-
left:
|
|
29445
|
+
left: q(f2)
|
|
29431
29446
|
};
|
|
29432
29447
|
}, JU = (e2, r2, c2) => {
|
|
29433
29448
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29434
29449
|
return {
|
|
29435
29450
|
width: f2,
|
|
29436
29451
|
left: u2,
|
|
29437
|
-
height:
|
|
29452
|
+
height: WU(l2, e2.height, d2),
|
|
29438
29453
|
top: Z(l2)
|
|
29439
29454
|
};
|
|
29440
29455
|
}, YU = {
|
|
@@ -32338,7 +32353,7 @@ ${c}
|
|
|
32338
32353
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32339
32354
|
let E = useIsDragging(), O, j;
|
|
32340
32355
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32341
|
-
let M = !f && !v, I, L, R, z, B, H, W,
|
|
32356
|
+
let M = !f && !v, I, L, R, z, B, H, W, UU, G, WU, q, Z, GU, KU, qU, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW;
|
|
32342
32357
|
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) {
|
|
32343
32358
|
let e2 = Maps.keyBy(c.cells, _temp2$2), m2;
|
|
32344
32359
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32364,12 +32379,12 @@ ${c}
|
|
|
32364
32379
|
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 ? [
|
|
32365
32380
|
20,
|
|
32366
32381
|
20
|
|
32367
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false,
|
|
32382
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, UU = null, G = true, WU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (q = (e3) => {
|
|
32368
32383
|
f || l({
|
|
32369
32384
|
...c,
|
|
32370
32385
|
cells: e3
|
|
32371
32386
|
});
|
|
32372
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32387
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = q) : q = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32373
32388
|
i: g.i,
|
|
32374
32389
|
w: g.w || 2,
|
|
32375
32390
|
h: g.h || 2
|
|
@@ -32418,10 +32433,10 @@ ${c}
|
|
|
32418
32433
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32419
32434
|
children: m3
|
|
32420
32435
|
}, r2.id);
|
|
32421
|
-
}), 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] =
|
|
32422
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27],
|
|
32436
|
+
}), 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] = UU, r[29] = G, r[30] = WU, r[31] = q, r[32] = Z, 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;
|
|
32437
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], UU = r[28], G = r[29], WU = r[30], q = r[31], Z = 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];
|
|
32423
32438
|
let aW;
|
|
32424
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !==
|
|
32439
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== UU || r[89] !== G || r[90] !== WU || r[91] !== q || r[92] !== Z || 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, {
|
|
32425
32440
|
breakpoint: tW,
|
|
32426
32441
|
layouts: nW,
|
|
32427
32442
|
style: rW,
|
|
@@ -32431,10 +32446,10 @@ ${c}
|
|
|
32431
32446
|
containerPadding: B,
|
|
32432
32447
|
margin: H,
|
|
32433
32448
|
isBounded: W,
|
|
32434
|
-
compactType:
|
|
32435
|
-
preventCollision:
|
|
32436
|
-
rowHeight:
|
|
32437
|
-
onLayoutChange:
|
|
32449
|
+
compactType: UU,
|
|
32450
|
+
preventCollision: G,
|
|
32451
|
+
rowHeight: WU,
|
|
32452
|
+
onLayoutChange: q,
|
|
32438
32453
|
droppingItem: Z,
|
|
32439
32454
|
onDrop: GU,
|
|
32440
32455
|
onDragStart: KU,
|
|
@@ -32446,7 +32461,7 @@ ${c}
|
|
|
32446
32461
|
isResizable: QU,
|
|
32447
32462
|
draggableHandle: $U,
|
|
32448
32463
|
children: eW
|
|
32449
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] =
|
|
32464
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = UU, r[89] = G, r[90] = WU, r[91] = q, r[92] = Z, 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];
|
|
32450
32465
|
let oW = aW, sW, cW, lW, uW, dW, fW, pW;
|
|
32451
32466
|
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) {
|
|
32452
32467
|
pW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -32845,8 +32860,8 @@ ${c}
|
|
|
32845
32860
|
size: "sm",
|
|
32846
32861
|
onCheckedChange: h
|
|
32847
32862
|
}), r[25] = m, r[26] = h, r[27] = W) : W = r[27];
|
|
32848
|
-
let
|
|
32849
|
-
r[28] !== B || r[29] !== W ? (
|
|
32863
|
+
let UU;
|
|
32864
|
+
r[28] !== B || r[29] !== W ? (UU = (0, import_jsx_runtime.jsx)(DropdownMenuContent, {
|
|
32850
32865
|
side: "bottom",
|
|
32851
32866
|
children: (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32852
32867
|
onSelect: B,
|
|
@@ -32855,35 +32870,35 @@ ${c}
|
|
|
32855
32870
|
W
|
|
32856
32871
|
]
|
|
32857
32872
|
})
|
|
32858
|
-
}), r[28] = B, r[29] = W, r[30] =
|
|
32859
|
-
let
|
|
32860
|
-
r[31] !== L || r[32] !== R || r[33] !==
|
|
32873
|
+
}), r[28] = B, r[29] = W, r[30] = UU) : UU = r[30];
|
|
32874
|
+
let G;
|
|
32875
|
+
r[31] !== L || r[32] !== R || r[33] !== UU ? (G = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
32861
32876
|
open: L,
|
|
32862
32877
|
onOpenChange: R,
|
|
32863
32878
|
children: [
|
|
32864
32879
|
z,
|
|
32865
|
-
|
|
32880
|
+
UU
|
|
32866
32881
|
]
|
|
32867
|
-
}), r[31] = L, r[32] = R, r[33] =
|
|
32868
|
-
let UU;
|
|
32869
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32870
|
-
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32871
|
-
}), r[35] = UU) : UU = r[35];
|
|
32882
|
+
}), r[31] = L, r[32] = R, r[33] = UU, r[34] = G) : G = r[34];
|
|
32872
32883
|
let WU;
|
|
32873
|
-
r[
|
|
32884
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32885
|
+
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32886
|
+
}), r[35] = WU) : WU = r[35];
|
|
32887
|
+
let q;
|
|
32888
|
+
r[36] === l ? q = r[37] : (q = (0, import_jsx_runtime.jsx)(X, {
|
|
32874
32889
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32875
32890
|
onClick: () => l()
|
|
32876
|
-
}), r[36] = l, r[37] =
|
|
32891
|
+
}), r[36] = l, r[37] = q);
|
|
32877
32892
|
let Z;
|
|
32878
|
-
return r[38] !== I || r[39] !==
|
|
32893
|
+
return r[38] !== I || r[39] !== G || r[40] !== q || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32879
32894
|
className: w,
|
|
32880
32895
|
children: [
|
|
32881
32896
|
I,
|
|
32882
|
-
|
|
32883
|
-
|
|
32884
|
-
|
|
32897
|
+
G,
|
|
32898
|
+
WU,
|
|
32899
|
+
q
|
|
32885
32900
|
]
|
|
32886
|
-
}), r[38] = I, r[39] =
|
|
32901
|
+
}), r[38] = I, r[39] = G, r[40] = q, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32887
32902
|
};
|
|
32888
32903
|
function isSidebarCell(e) {
|
|
32889
32904
|
var _a3;
|
|
@@ -34825,25 +34840,25 @@ ${c}
|
|
|
34825
34840
|
}, [
|
|
34826
34841
|
T,
|
|
34827
34842
|
M
|
|
34828
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null),
|
|
34843
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), UU = useLatestValue(h, Object.values(h)), G = useUniqueId("DndDescribedBy", r), WU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34829
34844
|
j
|
|
34830
|
-
]),
|
|
34845
|
+
]), q = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: GU, measuringScheduled: KU } = useDroppableMeasuring(WU, {
|
|
34831
34846
|
dragging: w,
|
|
34832
34847
|
dependencies: [
|
|
34833
34848
|
O.x,
|
|
34834
34849
|
O.y
|
|
34835
34850
|
],
|
|
34836
|
-
config:
|
|
34851
|
+
config: q.droppable
|
|
34837
34852
|
}), qU = useCachedNode(E, T), JU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34838
34853
|
H
|
|
34839
|
-
]), YU = EW(), XU = useInitialRect(qU,
|
|
34854
|
+
]), YU = EW(), XU = useInitialRect(qU, q.draggable.measure);
|
|
34840
34855
|
useLayoutShiftScrollCompensation({
|
|
34841
34856
|
activeNode: T == null ? null : E.get(T),
|
|
34842
34857
|
config: YU.layoutShiftCompensation,
|
|
34843
34858
|
initialRect: XU,
|
|
34844
|
-
measure:
|
|
34859
|
+
measure: q.draggable.measure
|
|
34845
34860
|
});
|
|
34846
|
-
let ZU = useRect(qU,
|
|
34861
|
+
let ZU = useRect(qU, q.draggable.measure, XU), QU = useRect(qU ? qU.parentElement : null), $U = (0, import_react.useRef)({
|
|
34847
34862
|
activatorEvent: null,
|
|
34848
34863
|
active: null,
|
|
34849
34864
|
activeNode: qU,
|
|
@@ -34858,7 +34873,7 @@ ${c}
|
|
|
34858
34873
|
scrollableAncestors: [],
|
|
34859
34874
|
scrollAdjustedTranslate: null
|
|
34860
34875
|
}), eW = j.getNodeFor((_a3 = $U.current.over) == null ? void 0 : _a3.id), tW = useDragOverlayMeasuring({
|
|
34861
|
-
measure:
|
|
34876
|
+
measure: q.dragOverlay.measure
|
|
34862
34877
|
}), 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, {
|
|
34863
34878
|
transform: {
|
|
34864
34879
|
x: O.x - aW.x,
|
|
@@ -34882,7 +34897,7 @@ ${c}
|
|
|
34882
34897
|
active: L,
|
|
34883
34898
|
collisionRect: hW,
|
|
34884
34899
|
droppableRects: Z,
|
|
34885
|
-
droppableContainers:
|
|
34900
|
+
droppableContainers: WU,
|
|
34886
34901
|
pointerCoordinates: uW
|
|
34887
34902
|
}) : 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) => {
|
|
34888
34903
|
let { sensor: c2, options: l2 } = r2;
|
|
@@ -34898,7 +34913,7 @@ ${c}
|
|
|
34898
34913
|
context: $U,
|
|
34899
34914
|
onAbort(e3) {
|
|
34900
34915
|
if (!E.get(e3)) return;
|
|
34901
|
-
let { onDragAbort: r3 } =
|
|
34916
|
+
let { onDragAbort: r3 } = UU.current, c3 = {
|
|
34902
34917
|
id: e3
|
|
34903
34918
|
};
|
|
34904
34919
|
r3 == null ? void 0 : r3(c3), v({
|
|
@@ -34908,7 +34923,7 @@ ${c}
|
|
|
34908
34923
|
},
|
|
34909
34924
|
onPending(e3, r3, c3, l3) {
|
|
34910
34925
|
if (!E.get(e3)) return;
|
|
34911
|
-
let { onDragPending: u3 } =
|
|
34926
|
+
let { onDragPending: u3 } = UU.current, d3 = {
|
|
34912
34927
|
id: e3,
|
|
34913
34928
|
constraint: r3,
|
|
34914
34929
|
initialCoordinates: c3,
|
|
@@ -34924,7 +34939,7 @@ ${c}
|
|
|
34924
34939
|
if (r3 == null) return;
|
|
34925
34940
|
let c3 = E.get(r3);
|
|
34926
34941
|
if (!c3) return;
|
|
34927
|
-
let { onDragStart: l3 } =
|
|
34942
|
+
let { onDragStart: l3 } = UU.current, u3 = {
|
|
34928
34943
|
activatorEvent: d2,
|
|
34929
34944
|
active: {
|
|
34930
34945
|
id: r3,
|
|
@@ -34956,7 +34971,7 @@ ${c}
|
|
|
34956
34971
|
return async function() {
|
|
34957
34972
|
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = $U.current, f3 = null;
|
|
34958
34973
|
if (r3 && u3) {
|
|
34959
|
-
let { cancelDrop: p2 } =
|
|
34974
|
+
let { cancelDrop: p2 } = UU.current;
|
|
34960
34975
|
f3 = {
|
|
34961
34976
|
activatorEvent: d2,
|
|
34962
34977
|
active: r3,
|
|
@@ -34971,7 +34986,7 @@ ${c}
|
|
|
34971
34986
|
}), S(Status.Uninitialized), yW(null), B(null), W(null), xW.current = null;
|
|
34972
34987
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34973
34988
|
if (f3) {
|
|
34974
|
-
let e4 =
|
|
34989
|
+
let e4 = UU.current[r4];
|
|
34975
34990
|
e4 == null ? void 0 : e4(f3), v({
|
|
34976
34991
|
type: r4,
|
|
34977
34992
|
event: f3
|
|
@@ -35001,7 +35016,7 @@ ${c}
|
|
|
35001
35016
|
ZU,
|
|
35002
35017
|
b
|
|
35003
35018
|
]), (0, import_react.useEffect)(() => {
|
|
35004
|
-
let { onDragMove: e2 } =
|
|
35019
|
+
let { onDragMove: e2 } = UU.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = $U.current;
|
|
35005
35020
|
if (!r2 || !c2) return;
|
|
35006
35021
|
let d2 = {
|
|
35007
35022
|
active: r2,
|
|
@@ -35025,7 +35040,7 @@ ${c}
|
|
|
35025
35040
|
]), (0, import_react.useEffect)(() => {
|
|
35026
35041
|
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = $U.current;
|
|
35027
35042
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35028
|
-
let { onDragOver: d2 } =
|
|
35043
|
+
let { onDragOver: d2 } = UU.current, f2 = l2.get(_W), p2 = f2 && f2.rect.current ? {
|
|
35029
35044
|
id: f2.id,
|
|
35030
35045
|
rect: f2.rect.current,
|
|
35031
35046
|
data: f2.data,
|
|
@@ -35103,7 +35118,7 @@ ${c}
|
|
|
35103
35118
|
measureDroppableContainers: GU,
|
|
35104
35119
|
scrollableAncestors: sW,
|
|
35105
35120
|
scrollableAncestorRects: cW,
|
|
35106
|
-
measuringConfiguration:
|
|
35121
|
+
measuringConfiguration: q,
|
|
35107
35122
|
measuringScheduled: KU,
|
|
35108
35123
|
windowRect: oW
|
|
35109
35124
|
}), [
|
|
@@ -35121,7 +35136,7 @@ ${c}
|
|
|
35121
35136
|
GU,
|
|
35122
35137
|
sW,
|
|
35123
35138
|
cW,
|
|
35124
|
-
|
|
35139
|
+
q,
|
|
35125
35140
|
KU,
|
|
35126
35141
|
oW
|
|
35127
35142
|
]), TW = (0, import_react.useMemo)(() => ({
|
|
@@ -35130,7 +35145,7 @@ ${c}
|
|
|
35130
35145
|
active: L,
|
|
35131
35146
|
activeNodeRect: ZU,
|
|
35132
35147
|
ariaDescribedById: {
|
|
35133
|
-
draggable:
|
|
35148
|
+
draggable: G
|
|
35134
35149
|
},
|
|
35135
35150
|
dispatch: _,
|
|
35136
35151
|
draggableNodes: E,
|
|
@@ -35142,7 +35157,7 @@ ${c}
|
|
|
35142
35157
|
L,
|
|
35143
35158
|
ZU,
|
|
35144
35159
|
_,
|
|
35145
|
-
|
|
35160
|
+
G,
|
|
35146
35161
|
E,
|
|
35147
35162
|
vW,
|
|
35148
35163
|
GU
|
|
@@ -35159,7 +35174,7 @@ ${c}
|
|
|
35159
35174
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35160
35175
|
})), import_react.createElement(Accessibility, {
|
|
35161
35176
|
...c,
|
|
35162
|
-
hiddenTextDescribedById:
|
|
35177
|
+
hiddenTextDescribedById: G
|
|
35163
35178
|
}));
|
|
35164
35179
|
function EW() {
|
|
35165
35180
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
@@ -35689,7 +35704,7 @@ ${c}
|
|
|
35689
35704
|
updateMeasurementsFor: I,
|
|
35690
35705
|
...m
|
|
35691
35706
|
}
|
|
35692
|
-
}), { active: H, activatorEvent: W, activeNodeRect:
|
|
35707
|
+
}), { active: H, activatorEvent: W, activeNodeRect: UU, attributes: G, setNodeRef: WU, listeners: q, isDragging: Z, over: GU, setActivatorNodeRef: KU, transform: qU } = useDraggable({
|
|
35693
35708
|
id: f,
|
|
35694
35709
|
data: M,
|
|
35695
35710
|
attributes: {
|
|
@@ -35697,9 +35712,9 @@ ${c}
|
|
|
35697
35712
|
...c
|
|
35698
35713
|
},
|
|
35699
35714
|
disabled: O.draggable
|
|
35700
|
-
}), JU = useCombinedRefs(B,
|
|
35715
|
+
}), JU = useCombinedRefs(B, WU), YU = !!H, XU = YU && !b && isValidIndex(v) && isValidIndex(w), ZU = !T && Z, QU = XU ? (ZU && XU ? qU : null) ?? (p ?? E)({
|
|
35701
35716
|
rects: S,
|
|
35702
|
-
activeNodeRect:
|
|
35717
|
+
activeNodeRect: UU,
|
|
35703
35718
|
activeIndex: v,
|
|
35704
35719
|
overIndex: w,
|
|
35705
35720
|
index: j
|
|
@@ -35754,7 +35769,7 @@ ${c}
|
|
|
35754
35769
|
]), {
|
|
35755
35770
|
active: H,
|
|
35756
35771
|
activeIndex: v,
|
|
35757
|
-
attributes:
|
|
35772
|
+
attributes: G,
|
|
35758
35773
|
data: M,
|
|
35759
35774
|
rect: L,
|
|
35760
35775
|
index: j,
|
|
@@ -35763,14 +35778,14 @@ ${c}
|
|
|
35763
35778
|
isOver: z,
|
|
35764
35779
|
isSorting: YU,
|
|
35765
35780
|
isDragging: Z,
|
|
35766
|
-
listeners:
|
|
35781
|
+
listeners: q,
|
|
35767
35782
|
node: R,
|
|
35768
35783
|
overIndex: w,
|
|
35769
35784
|
over: GU,
|
|
35770
35785
|
setNodeRef: JU,
|
|
35771
35786
|
setActivatorNodeRef: KU,
|
|
35772
35787
|
setDroppableNodeRef: B,
|
|
35773
|
-
setDraggableNodeRef:
|
|
35788
|
+
setDraggableNodeRef: WU,
|
|
35774
35789
|
transform: iW ?? QU,
|
|
35775
35790
|
transition: aW()
|
|
35776
35791
|
};
|
|
@@ -36052,10 +36067,10 @@ ${c}
|
|
|
36052
36067
|
...R,
|
|
36053
36068
|
...h
|
|
36054
36069
|
}, r[18] = O, r[19] = h, r[20] = R, r[21] = E, r[22] = z) : z = r[22];
|
|
36055
|
-
let B = z, H = T || w, W = b || S || w ? "border-blue-500" : "border-border",
|
|
36056
|
-
r[23] !== l || r[24] !==
|
|
36057
|
-
let
|
|
36058
|
-
r[28] !== c || r[29] !== O || r[30] !== j || r[31] !== H || r[32] !== E ? (
|
|
36070
|
+
let B = z, H = T || w, W = b || S || w ? "border-blue-500" : "border-border", UU = S && !w && "opacity-35", G = w && "opacity-95 shadow-lg", WU;
|
|
36071
|
+
r[23] !== l || r[24] !== G || r[25] !== W || r[26] !== UU ? (WU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden", W, UU, G, l), r[23] = l, r[24] = G, r[25] = W, r[26] = UU, r[27] = WU) : WU = r[27];
|
|
36072
|
+
let q;
|
|
36073
|
+
r[28] !== c || r[29] !== O || r[30] !== j || r[31] !== H || r[32] !== E ? (q = H && (0, import_jsx_runtime.jsx)("div", {
|
|
36059
36074
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36060
36075
|
style: {
|
|
36061
36076
|
transform: `scale(${j})`,
|
|
@@ -36068,7 +36083,7 @@ ${c}
|
|
|
36068
36083
|
status: c.status,
|
|
36069
36084
|
output: c.output
|
|
36070
36085
|
})
|
|
36071
|
-
}), r[28] = c, r[29] = O, r[30] = j, r[31] = H, r[32] = E, r[33] =
|
|
36086
|
+
}), r[28] = c, r[29] = O, r[30] = j, r[31] = H, r[32] = E, r[33] = q) : q = r[33];
|
|
36072
36087
|
let Z;
|
|
36073
36088
|
r[34] === L ? Z = r[35] : (Z = L && (0, import_jsx_runtime.jsx)("div", {
|
|
36074
36089
|
className: "absolute inset-0 bg-muted/60 pointer-events-none",
|
|
@@ -36089,17 +36104,17 @@ ${c}
|
|
|
36089
36104
|
})
|
|
36090
36105
|
}), r[36] = L, r[37] = I, r[38] = GU) : GU = r[38];
|
|
36091
36106
|
let KU;
|
|
36092
|
-
return r[39] !== B || r[40] !== d || r[41] !== f || r[42] !==
|
|
36107
|
+
return r[39] !== B || r[40] !== d || r[41] !== f || r[42] !== WU || r[43] !== q || r[44] !== Z || r[45] !== GU ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36093
36108
|
ref: f,
|
|
36094
|
-
className:
|
|
36109
|
+
className: WU,
|
|
36095
36110
|
style: B,
|
|
36096
36111
|
...d,
|
|
36097
36112
|
children: [
|
|
36098
|
-
|
|
36113
|
+
q,
|
|
36099
36114
|
Z,
|
|
36100
36115
|
GU
|
|
36101
36116
|
]
|
|
36102
|
-
}), r[39] = B, r[40] = d, r[41] = f, r[42] =
|
|
36117
|
+
}), r[39] = B, r[40] = d, r[41] = f, r[42] = WU, r[43] = q, r[44] = Z, r[45] = GU, r[46] = KU) : KU = r[46], KU;
|
|
36103
36118
|
};
|
|
36104
36119
|
function projectDropTarget(e) {
|
|
36105
36120
|
let { active: r, over: c } = e;
|
|
@@ -36130,7 +36145,7 @@ ${c}
|
|
|
36130
36145
|
if (l && l !== "slide") return l;
|
|
36131
36146
|
if (c == null ? void 0 : c.has(e)) return "skip";
|
|
36132
36147
|
}
|
|
36133
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36148
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-qpHJES_u.js"));
|
|
36134
36149
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36135
36150
|
var _a3;
|
|
36136
36151
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { cellsWithOutput: h, skippedIds: g, slideTypes: _, startCellIndex: v } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -36505,7 +36520,7 @@ ${c}
|
|
|
36505
36520
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36506
36521
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36507
36522
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36508
|
-
let H, W,
|
|
36523
|
+
let H, W, UU, G, WU, q, Z, GU, KU, qU;
|
|
36509
36524
|
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) {
|
|
36510
36525
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36511
36526
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36551,7 +36566,7 @@ ${c}
|
|
|
36551
36566
|
})
|
|
36552
36567
|
})
|
|
36553
36568
|
]
|
|
36554
|
-
}), 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],
|
|
36569
|
+
}), 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], UU = y ? "This console output is stale" : void 0, G = "console-output-area", WU = c, q = R, Z = 0;
|
|
36555
36570
|
let JU2 = y && "marimo-output-stale", YU2 = L ? "p-5" : "p-3";
|
|
36556
36571
|
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 ? {
|
|
36557
36572
|
maxHeight: "none"
|
|
@@ -36584,8 +36599,8 @@ ${c}
|
|
|
36584
36599
|
wrapText: l
|
|
36585
36600
|
})
|
|
36586
36601
|
}, r2);
|
|
36587
|
-
}), 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] =
|
|
36588
|
-
} else H = r[20], W = r[21],
|
|
36602
|
+
}), 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] = UU, r[23] = G, r[24] = WU, r[25] = q, r[26] = Z, r[27] = GU, r[28] = KU, r[29] = qU;
|
|
36603
|
+
} else H = r[20], W = r[21], UU = r[22], G = r[23], WU = r[24], q = r[25], Z = r[26], GU = r[27], KU = r[28], qU = r[29];
|
|
36589
36604
|
let JU;
|
|
36590
36605
|
r[46] !== T || r[47] !== S ? (JU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36591
36606
|
value: S,
|
|
@@ -36593,11 +36608,11 @@ ${c}
|
|
|
36593
36608
|
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"
|
|
36594
36609
|
}), r[46] = T, r[47] = S, r[48] = JU) : JU = r[48];
|
|
36595
36610
|
let YU;
|
|
36596
|
-
r[49] !== JU || r[50] !==
|
|
36597
|
-
title:
|
|
36598
|
-
"data-testid":
|
|
36599
|
-
ref:
|
|
36600
|
-
...
|
|
36611
|
+
r[49] !== JU || r[50] !== UU || r[51] !== G || r[52] !== WU || r[53] !== q || r[54] !== Z || r[55] !== GU || r[56] !== KU || r[57] !== qU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36612
|
+
title: UU,
|
|
36613
|
+
"data-testid": G,
|
|
36614
|
+
ref: WU,
|
|
36615
|
+
...q,
|
|
36601
36616
|
tabIndex: Z,
|
|
36602
36617
|
className: GU,
|
|
36603
36618
|
style: KU,
|
|
@@ -36605,7 +36620,7 @@ ${c}
|
|
|
36605
36620
|
qU,
|
|
36606
36621
|
JU
|
|
36607
36622
|
]
|
|
36608
|
-
}), r[49] = JU, r[50] =
|
|
36623
|
+
}), r[49] = JU, r[50] = UU, r[51] = G, r[52] = WU, r[53] = q, r[54] = Z, r[55] = GU, r[56] = KU, r[57] = qU, r[58] = YU) : YU = r[58];
|
|
36609
36624
|
let XU;
|
|
36610
36625
|
return r[59] !== H || r[60] !== W || r[61] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36611
36626
|
className: H,
|
|
@@ -37073,27 +37088,27 @@ ${c}
|
|
|
37073
37088
|
]
|
|
37074
37089
|
}), r[36] = H, r[37] = w2, r[38] = h2, r[39] = v2, r[40] = y2, r[41] = S2, r[42] = O2) : O2 = r[42], O2;
|
|
37075
37090
|
}
|
|
37076
|
-
let W = isErrorMime(c == null ? void 0 : c.mimetype),
|
|
37077
|
-
if ((h || _ || m || W) && !
|
|
37078
|
-
let
|
|
37079
|
-
r[43] !== d || r[44] !== T ? (
|
|
37080
|
-
let
|
|
37081
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37082
|
-
allowExpand:
|
|
37091
|
+
let W = isErrorMime(c == null ? void 0 : c.mimetype), UU = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
37092
|
+
if ((h || _ || m || W) && !UU) return null;
|
|
37093
|
+
let G;
|
|
37094
|
+
r[43] !== d || r[44] !== T ? (G = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = G) : G = r[45];
|
|
37095
|
+
let WU = w === "edit", q;
|
|
37096
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== WU ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37097
|
+
allowExpand: WU,
|
|
37083
37098
|
output: c,
|
|
37084
37099
|
className: CSSClasses.outputArea,
|
|
37085
37100
|
cellId: d,
|
|
37086
37101
|
stale: I,
|
|
37087
37102
|
loading: R
|
|
37088
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37103
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = WU, r[51] = q) : q = r[51];
|
|
37089
37104
|
let Z;
|
|
37090
|
-
return r[52] !== H || r[53] !==
|
|
37105
|
+
return r[52] !== H || r[53] !== G || r[54] !== q ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37091
37106
|
tabIndex: -1,
|
|
37092
37107
|
ref: j,
|
|
37093
37108
|
className: H,
|
|
37094
|
-
...
|
|
37095
|
-
children:
|
|
37096
|
-
}), r[52] = H, r[53] =
|
|
37109
|
+
...G,
|
|
37110
|
+
children: q
|
|
37111
|
+
}), r[52] = H, r[53] = G, r[54] = q, r[55] = Z) : Z = r[55], Z;
|
|
37097
37112
|
});
|
|
37098
37113
|
VerticalCell.displayName = "VerticalCell";
|
|
37099
37114
|
const VerticalLayoutPlugin = {
|