@marimo-team/islands 0.23.9-dev4 → 0.23.9-dev6
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-VZebNmSs.js → code-visibility-DILs4Gug.js} +919 -766
- package/dist/main.js +842 -840
- package/dist/{reveal-component-DZtPMEoM.js → reveal-component-Pq7C0LSU.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/TableBottomBar.tsx +30 -6
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +73 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +52 -1
- package/src/components/data-table/__tests__/header-items.test.tsx +47 -1
- package/src/components/data-table/__tests__/useColumnVisibility.test.ts +42 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +7 -1
- package/src/components/data-table/column-header.tsx +2 -0
- package/src/components/data-table/columns.tsx +3 -4
- package/src/components/data-table/data-table.tsx +30 -0
- package/src/components/data-table/header-items.tsx +18 -1
- package/src/components/data-table/hooks/use-column-visibility.ts +42 -0
- package/src/components/data-table/pagination.tsx +16 -3
- package/src/components/editor/errors/mangled-local-chip.tsx +50 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +7 -2
- package/src/components/editor/output/MarimoTracebackOutput.tsx +31 -2
- package/src/plugins/impl/DataTablePlugin.tsx +4 -0
- package/src/utils/__tests__/local-variables.test.ts +132 -0
- package/src/utils/local-variables.ts +67 -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 TableHeader, A as CommandEmpty, At as LazyVegaEmbed, B as isCellAwareAtom, Bt as Funnel, C as prettifyRowCount, Ct as Tabs, D as Combobox, Dt as ChartErrorState, E as DateRangePicker, Et as TabsTrigger, F as ContextAwarePanelItem, Ft as EmotionCacheProvider, Gt as Code, H as slotsController, I as PANEL_TYPES, It as $fae977aafc393c5c$export$588937bcd60ade55, J as Provider$1, Jt as ChevronsLeft, Kt as ChevronsUpDown, L as contextAwarePanelOpen, Lt as $fae977aafc393c5c$export$6b862160d295c8e, M as CommandItem, Mt as RenderTextWithLinks, N as CommandList, Nt as Kbd, O as ComboboxItem, Ot as ChartInfoState, P as CommandSeparator, Pt as HtmlOutput, Q as TableHead, R as contextAwarePanelOwner, Rt as TextWrap, S as prettifyRowColumnCount, St as dateToLocalISOTime, T as DatePicker, Tt as TabsList, U as Toggle, Ut as Ellipsis, V as SlotNames, Vt as EyeOff, Wt as Download, X as TableBody, Xt as ChevronLeft, Y as Table, Yt as ChevronsDownUp, Z as TableCell, Zt as ArrowDownWideNarrow, _ as downloadBlob, _t as getMimeValues, at as ColumnChartContext, b as Progress, bt as dateToLocalISODate, c as Slide, ct as useIntersectionObserver, d as JsonOutput, dt as loadTableAndRawData, et as TableRow, f as OutputArea, ft as loadTableData, g as ADD_PRINTING_CLASS, gt as toFieldTypes, h as InstallPackageButton, ht as TOO_MANY_ROWS, it as renderCellValue, j as CommandInput, jt as useOverflowDetection, k as Command, kt as ChartLoadingState, l as RadioGroup, lt as usePrevious$1, m as DataTable, mt as SELECT_COLUMN_ID, n as marimoVersionAtom, nt as generateColumns, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as ColumnChartSpecModel, p as OutputRenderer, pt as INDEX_COLUMN_NAME, q as Fill, qt as ChevronsRight, r as showCodeInRunModeAtom, rt as inferFieldTypes, st as DelayMount, t as useNotebookCodeAvailable, tt as NAMELESS_COLUMN_PREFIX, u as RadioGroupItem, ut as getPageIndexForRow, v as downloadByURL, vt as isNullishFilter, w as useInternalStateWithSync, wt as TabsContent, x as Filenames, xt as dateToLocalISODateTime, y as downloadHTMLAsImage, yt as Maps, z as contextAwarePanelType, zt as GripHorizontal, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as TableHeader, A as CommandEmpty, At as LazyVegaEmbed, B as isCellAwareAtom, Bt as Funnel, C as prettifyRowCount, Ct as Tabs, D as Combobox, Dt as ChartErrorState, E as DateRangePicker, Et as TabsTrigger, F as ContextAwarePanelItem, Ft as EmotionCacheProvider, Gt as Code, H as slotsController, I as PANEL_TYPES, It as $fae977aafc393c5c$export$588937bcd60ade55, J as Provider$1, Jt as ChevronsLeft, Kt as ChevronsUpDown, L as contextAwarePanelOpen, Lt as $fae977aafc393c5c$export$6b862160d295c8e, M as CommandItem, Mt as RenderTextWithLinks, N as CommandList, Nt as Kbd, O as ComboboxItem, Ot as ChartInfoState, P as CommandSeparator, Pt as HtmlOutput, Q as TableHead, R as contextAwarePanelOwner, Rt as TextWrap, S as prettifyRowColumnCount, St as dateToLocalISOTime, T as DatePicker, Tt as TabsList, U as Toggle, Ut as Ellipsis, V as SlotNames, Vt as EyeOff, Wt as Download, X as TableBody, Xt as ChevronLeft, Y as Table, Yt as ChevronsDownUp, Z as TableCell, Zt as ArrowDownWideNarrow, _ as downloadBlob, _t as getMimeValues, at as ColumnChartContext, b as Progress, bt as dateToLocalISODate, c as Slide, ct as useIntersectionObserver, d as JsonOutput, dt as loadTableAndRawData, et as TableRow, f as OutputArea, ft as loadTableData, g as ADD_PRINTING_CLASS, gt as toFieldTypes, h as InstallPackageButton, ht as TOO_MANY_ROWS, it as renderCellValue, j as CommandInput, jt as useOverflowDetection, k as Command, kt as ChartLoadingState, l as RadioGroup, lt as usePrevious$1, m as DataTable, mt as SELECT_COLUMN_ID, n as marimoVersionAtom, nt as generateColumns, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as ColumnChartSpecModel, p as OutputRenderer, pt as INDEX_COLUMN_NAME, q as Fill, qt as ChevronsRight, r as showCodeInRunModeAtom, rt as inferFieldTypes, st as DelayMount, t as useNotebookCodeAvailable, tt as NAMELESS_COLUMN_PREFIX, u as RadioGroupItem, ut as getPageIndexForRow, v as downloadByURL, vt as isNullishFilter, w as useInternalStateWithSync, wt as TabsContent, x as Filenames, xt as dateToLocalISODateTime, y as downloadHTMLAsImage, yt as Maps, z as contextAwarePanelType, zt as GripHorizontal, __tla as __tla_2 } from "./code-visibility-DILs4Gug.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)) : UU(e2, l2), f.mount && w();
|
|
6716
6716
|
}
|
|
6717
6717
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
6718
6718
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -6785,14 +6785,14 @@ let __tla = Promise.all([
|
|
|
6785
6785
|
}, H = () => {
|
|
6786
6786
|
for (let e2 of p.unMount) {
|
|
6787
6787
|
let r2 = get(l, e2);
|
|
6788
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
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(
|
|
6791
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(JU(), u)), G = (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), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
6795
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), UU = (e2, r2, c2 = {}) => {
|
|
6796
6796
|
let u2 = get(l, e2), f2 = r2;
|
|
6797
6797
|
if (u2) {
|
|
6798
6798
|
let c3 = u2._f;
|
|
@@ -6805,11 +6805,11 @@ let __tla = Promise.all([
|
|
|
6805
6805
|
}
|
|
6806
6806
|
})));
|
|
6807
6807
|
}
|
|
6808
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
6809
|
-
},
|
|
6808
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && qU(e2);
|
|
6809
|
+
}, WU = (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) ? WU(f2, d2, c2) : UU(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) ? WU(e2, y2, m2) : UU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
6826
6826
|
...c
|
|
6827
6827
|
}), _.values.next({
|
|
6828
6828
|
name: f.mount ? e2 : void 0,
|
|
@@ -6830,7 +6830,7 @@ let __tla = Promise.all([
|
|
|
6830
6830
|
...d
|
|
6831
6831
|
}
|
|
6832
6832
|
});
|
|
6833
|
-
},
|
|
6833
|
+
}, GU = async (e2) => {
|
|
6834
6834
|
f.mount = true;
|
|
6835
6835
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
6836
6836
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -6864,11 +6864,11 @@ 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 &&
|
|
6867
|
+
S2 && (E2._f.deps && qU(E2._f.deps), L(h2, f2, u3, G2));
|
|
6868
6868
|
}
|
|
6869
|
-
},
|
|
6869
|
+
}, KU = (e2, r2) => {
|
|
6870
6870
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
6871
|
-
},
|
|
6871
|
+
}, qU = async (e2, u2 = {}) => {
|
|
6872
6872
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
6873
6873
|
if (r.resolver) {
|
|
6874
6874
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -6887,23 +6887,23 @@ let __tla = Promise.all([
|
|
|
6887
6887
|
isValid: d2
|
|
6888
6888
|
} : {},
|
|
6889
6889
|
errors: c.errors
|
|
6890
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
6891
|
-
},
|
|
6890
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, KU, e2 ? m2 : p.mount), f2;
|
|
6891
|
+
}, JU = (e2) => {
|
|
6892
6892
|
let r2 = {
|
|
6893
6893
|
...f.mount ? d : u
|
|
6894
6894
|
};
|
|
6895
6895
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
6896
|
-
},
|
|
6896
|
+
}, YU = (e2, r2) => ({
|
|
6897
6897
|
invalid: !!get((r2 || c).errors, e2),
|
|
6898
6898
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
6899
6899
|
error: get((r2 || c).errors, e2),
|
|
6900
6900
|
isValidating: !!get(c.validatingFields, e2),
|
|
6901
6901
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
6902
|
-
}),
|
|
6902
|
+
}), XU = (e2) => {
|
|
6903
6903
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
6904
6904
|
errors: e2 ? c.errors : {}
|
|
6905
6905
|
});
|
|
6906
|
-
},
|
|
6906
|
+
}, ZU = (e2, r2, u2) => {
|
|
6907
6907
|
let d2 = (get(l, e2, {
|
|
6908
6908
|
_f: {}
|
|
6909
6909
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -6916,9 +6916,9 @@ let __tla = Promise.all([
|
|
|
6916
6916
|
errors: c.errors,
|
|
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
6920
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
6921
|
-
}) : G(e2, r2, true),
|
|
6921
|
+
}) : G(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: {
|
|
@@ -6930,9 +6930,9 @@ let __tla = Promise.all([
|
|
|
6930
6930
|
isDirty: W()
|
|
6931
6931
|
} : {}
|
|
6932
6932
|
}), !f2.keepIsValid && w();
|
|
6933
|
-
},
|
|
6933
|
+
}, eW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
6934
6934
|
(isBoolean(e2) && f.mount || e2 || p.disabled.has(r2)) && (e2 ? p.disabled.add(r2) : p.disabled.delete(r2), I(r2, getFieldValue(c2 ? c2._f : get(l2, r2)._f), false, false, true));
|
|
6935
|
-
},
|
|
6935
|
+
}, tW = (e2, c2 = {}) => {
|
|
6936
6936
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
6937
6937
|
return set(l, e2, {
|
|
6938
6938
|
...d2 || {},
|
|
@@ -6946,7 +6946,7 @@ let __tla = Promise.all([
|
|
|
6946
6946
|
mount: true,
|
|
6947
6947
|
...c2
|
|
6948
6948
|
}
|
|
6949
|
-
}), p.mount.add(e2), d2 ?
|
|
6949
|
+
}), p.mount.add(e2), d2 ? eW({
|
|
6950
6950
|
field: d2,
|
|
6951
6951
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
6952
6952
|
name: e2
|
|
@@ -6963,11 +6963,11 @@ let __tla = Promise.all([
|
|
|
6963
6963
|
pattern: getRuleValue(c2.pattern)
|
|
6964
6964
|
} : {},
|
|
6965
6965
|
name: e2,
|
|
6966
|
-
onChange:
|
|
6967
|
-
onBlur:
|
|
6966
|
+
onChange: GU,
|
|
6967
|
+
onBlur: GU,
|
|
6968
6968
|
ref: (m3) => {
|
|
6969
6969
|
if (m3) {
|
|
6970
|
-
|
|
6970
|
+
tW(e2, c2), d2 = get(l, e2);
|
|
6971
6971
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
6972
6972
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
6973
6973
|
set(l, e2, {
|
|
@@ -6993,7 +6993,7 @@ let __tla = Promise.all([
|
|
|
6993
6993
|
} else d2 = get(l, e2, {}), d2._f && (d2._f.mount = false), (r.shouldUnregister || c2.shouldUnregister) && !(isNameInFieldArray(p.array, e2) && f.action) && p.unMount.add(e2);
|
|
6994
6994
|
}
|
|
6995
6995
|
};
|
|
6996
|
-
},
|
|
6996
|
+
}, nW = () => r.shouldFocusError && iterateFieldsByAction(l, KU, p.mount), rW = (e2) => {
|
|
6997
6997
|
isBoolean(e2) && (_.state.next({
|
|
6998
6998
|
disabled: e2
|
|
6999
6999
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -7002,7 +7002,7 @@ let __tla = Promise.all([
|
|
|
7002
7002
|
r3.disabled = u2._f.disabled || e2;
|
|
7003
7003
|
}));
|
|
7004
7004
|
}, 0, false));
|
|
7005
|
-
},
|
|
7005
|
+
}, iW = (e2, u2) => async (f2) => {
|
|
7006
7006
|
let m2;
|
|
7007
7007
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
7008
7008
|
let h2 = cloneObject(d);
|
|
@@ -7024,7 +7024,7 @@ let __tla = Promise.all([
|
|
|
7024
7024
|
}
|
|
7025
7025
|
} else u2 && await u2({
|
|
7026
7026
|
...c.errors
|
|
7027
|
-
}, f2),
|
|
7027
|
+
}, f2), nW(), setTimeout(nW);
|
|
7028
7028
|
if (_.state.next({
|
|
7029
7029
|
isSubmitted: true,
|
|
7030
7030
|
isSubmitting: false,
|
|
@@ -7032,11 +7032,11 @@ let __tla = Promise.all([
|
|
|
7032
7032
|
submitCount: c.submitCount + 1,
|
|
7033
7033
|
errors: c.errors
|
|
7034
7034
|
}), m2) throw m2;
|
|
7035
|
-
},
|
|
7035
|
+
}, aW = (e2, r2 = {}) => {
|
|
7036
7036
|
get(l, e2) && (isUndefined(r2.defaultValue) ? Z(e2, cloneObject(get(u, e2))) : (Z(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
7037
7037
|
...c
|
|
7038
7038
|
}));
|
|
7039
|
-
},
|
|
7039
|
+
}, oW = (e2, m2 = {}) => {
|
|
7040
7040
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
7041
7041
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
7042
7042
|
if (m2.keepDirtyValues) {
|
|
@@ -7089,25 +7089,25 @@ let __tla = Promise.all([
|
|
|
7089
7089
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
7090
7090
|
isSubmitting: false
|
|
7091
7091
|
});
|
|
7092
|
-
},
|
|
7092
|
+
}, sW = (e2, r2) => oW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
7093
7093
|
return {
|
|
7094
7094
|
control: {
|
|
7095
|
-
register:
|
|
7096
|
-
unregister:
|
|
7097
|
-
getFieldState:
|
|
7098
|
-
handleSubmit:
|
|
7099
|
-
setError:
|
|
7095
|
+
register: tW,
|
|
7096
|
+
unregister: $U,
|
|
7097
|
+
getFieldState: YU,
|
|
7098
|
+
handleSubmit: iW,
|
|
7099
|
+
setError: ZU,
|
|
7100
7100
|
_executeSchema: R,
|
|
7101
7101
|
_getWatch: G,
|
|
7102
7102
|
_getDirty: W,
|
|
7103
7103
|
_updateValid: w,
|
|
7104
7104
|
_removeUnmounted: H,
|
|
7105
7105
|
_updateFieldArray: E,
|
|
7106
|
-
_updateDisabledField:
|
|
7106
|
+
_updateDisabledField: eW,
|
|
7107
7107
|
_getFieldArray: q,
|
|
7108
|
-
_reset:
|
|
7108
|
+
_reset: oW,
|
|
7109
7109
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
7110
|
-
|
|
7110
|
+
sW(e2, r.resetOptions), _.state.next({
|
|
7111
7111
|
isLoading: false
|
|
7112
7112
|
});
|
|
7113
7113
|
}),
|
|
@@ -7117,7 +7117,7 @@ let __tla = Promise.all([
|
|
|
7117
7117
|
...e2
|
|
7118
7118
|
};
|
|
7119
7119
|
},
|
|
7120
|
-
_disableForm:
|
|
7120
|
+
_disableForm: rW,
|
|
7121
7121
|
_subjects: _,
|
|
7122
7122
|
_proxyFormState: g,
|
|
7123
7123
|
_setErrors: j,
|
|
@@ -7158,17 +7158,17 @@ let __tla = Promise.all([
|
|
|
7158
7158
|
};
|
|
7159
7159
|
}
|
|
7160
7160
|
},
|
|
7161
|
-
trigger:
|
|
7162
|
-
register:
|
|
7163
|
-
handleSubmit:
|
|
7164
|
-
watch:
|
|
7161
|
+
trigger: qU,
|
|
7162
|
+
register: tW,
|
|
7163
|
+
handleSubmit: iW,
|
|
7164
|
+
watch: QU,
|
|
7165
7165
|
setValue: Z,
|
|
7166
|
-
getValues:
|
|
7167
|
-
reset:
|
|
7168
|
-
resetField:
|
|
7169
|
-
clearErrors:
|
|
7170
|
-
unregister:
|
|
7171
|
-
setError:
|
|
7166
|
+
getValues: JU,
|
|
7167
|
+
reset: sW,
|
|
7168
|
+
resetField: aW,
|
|
7169
|
+
clearErrors: XU,
|
|
7170
|
+
unregister: $U,
|
|
7171
|
+
setError: ZU,
|
|
7172
7172
|
setFocus: (e2, r2 = {}) => {
|
|
7173
7173
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
7174
7174
|
if (u2) {
|
|
@@ -7176,7 +7176,7 @@ let __tla = Promise.all([
|
|
|
7176
7176
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
7177
7177
|
}
|
|
7178
7178
|
},
|
|
7179
|
-
getFieldState:
|
|
7179
|
+
getFieldState: YU
|
|
7180
7180
|
};
|
|
7181
7181
|
}
|
|
7182
7182
|
function useForm(e = {}) {
|
|
@@ -10338,33 +10338,33 @@ ${c}
|
|
|
10338
10338
|
}), B = C({
|
|
10339
10339
|
height: 0,
|
|
10340
10340
|
width: 0
|
|
10341
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
10341
|
+
}), H = U(), W = U(), G = C(0), q = C(null), UU = C({
|
|
10342
10342
|
column: 0,
|
|
10343
10343
|
row: 0
|
|
10344
|
-
}),
|
|
10345
|
-
Y(x(b, $(
|
|
10346
|
-
D(
|
|
10347
|
-
}), Y(x(ut(b,
|
|
10348
|
-
D(
|
|
10344
|
+
}), WU = U(), Z = U(), GU = C(false), KU = C(0), qU = C(true), JU = C(false), YU = C(false);
|
|
10345
|
+
Y(x(b, $(KU), P(([e2, r2]) => !!r2)), () => {
|
|
10346
|
+
D(qU, false);
|
|
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]) => {
|
|
10348
|
+
D(JU, true), Ue(1, () => {
|
|
10349
10349
|
D(H, e2);
|
|
10350
10350
|
}), Et(x(h), () => {
|
|
10351
10351
|
D(r, [
|
|
10352
10352
|
0,
|
|
10353
10353
|
0
|
|
10354
|
-
]), D(
|
|
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(
|
|
10358
|
-
D(
|
|
10357
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(UU, e2.gap), e2.scrollTop > 0 && (D(GU, true), Et(x(h, Kt(1)), (e3) => {
|
|
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(UU, (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
|
+
}))), WU), F(x(ut(V(I), l, V(UU, Or), V(B, xe), V(z, xe), V(q), V(L), V(GU), V(qU), V(KU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
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,23 +10383,23 @@ ${c}
|
|
|
10383
10383
|
offsetTop: j2,
|
|
10384
10384
|
top: j2
|
|
10385
10385
|
};
|
|
10386
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
10386
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, UU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
10387
10387
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
10388
10388
|
return [
|
|
10389
10389
|
d2,
|
|
10390
10390
|
u2
|
|
10391
10391
|
];
|
|
10392
10392
|
}), J(ce)), r);
|
|
10393
|
-
let
|
|
10394
|
-
F(x(h, $(
|
|
10395
|
-
let
|
|
10393
|
+
let XU = C(false);
|
|
10394
|
+
F(x(h, $(XU), k(([e2, r2]) => r2 || e2 !== 0)), XU);
|
|
10395
|
+
let ZU = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(XU), P(([[e2, r2], c2]) => {
|
|
10396
10396
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
10397
10397
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
10398
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
10398
|
+
}), k(([[, e2]]) => e2 - 1), J())), QU = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), $U = bt(x(V(R), $(GU), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
10399
10399
|
endIndex: e2[e2.length - 1].index,
|
|
10400
10400
|
startIndex: e2[0].index
|
|
10401
10401
|
})), J(An), Gt(0)));
|
|
10402
|
-
F(
|
|
10402
|
+
F($U, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, UU), 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);
|
|
@@ -10408,7 +10408,7 @@ ${c}
|
|
|
10408
10408
|
top: g2
|
|
10409
10409
|
};
|
|
10410
10410
|
})), m);
|
|
10411
|
-
let
|
|
10411
|
+
let eW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
10412
10412
|
return F(x(j, k((e2) => ({
|
|
10413
10413
|
height: e2.visibleHeight,
|
|
10414
10414
|
width: e2.visibleWidth
|
|
@@ -10417,7 +10417,7 @@ ${c}
|
|
|
10417
10417
|
data: q,
|
|
10418
10418
|
deviation: G,
|
|
10419
10419
|
footerHeight: u,
|
|
10420
|
-
gap:
|
|
10420
|
+
gap: UU,
|
|
10421
10421
|
headerHeight: d,
|
|
10422
10422
|
increaseViewportBy: e,
|
|
10423
10423
|
initialItemCount: L,
|
|
@@ -10439,16 +10439,16 @@ ${c}
|
|
|
10439
10439
|
windowViewportRect: j,
|
|
10440
10440
|
...y,
|
|
10441
10441
|
gridState: R,
|
|
10442
|
-
horizontalDirection:
|
|
10443
|
-
initialTopMostItemIndex:
|
|
10444
|
-
totalListHeight:
|
|
10442
|
+
horizontalDirection: YU,
|
|
10443
|
+
initialTopMostItemIndex: KU,
|
|
10444
|
+
totalListHeight: eW,
|
|
10445
10445
|
...v,
|
|
10446
|
-
endReached:
|
|
10446
|
+
endReached: ZU,
|
|
10447
10447
|
propsReady: S,
|
|
10448
|
-
rangeChanged:
|
|
10449
|
-
startReached:
|
|
10450
|
-
stateChanged:
|
|
10451
|
-
stateRestoreInProgress:
|
|
10448
|
+
rangeChanged: $U,
|
|
10449
|
+
startReached: QU,
|
|
10450
|
+
stateChanged: WU,
|
|
10451
|
+
stateRestoreInProgress: GU,
|
|
10452
10452
|
...M
|
|
10453
10453
|
};
|
|
10454
10454
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -13234,17 +13234,17 @@ ${c}
|
|
|
13234
13234
|
let e2 = l == null ? void 0 : l.filter(_temp$18), j2 = e2 == null ? void 0 : e2.filter((e3) => {
|
|
13235
13235
|
let [r2] = e3;
|
|
13236
13236
|
return r2.toLowerCase().includes(p.toLowerCase());
|
|
13237
|
-
});
|
|
13238
|
-
E = "mb-3";
|
|
13239
|
-
let M2;
|
|
13237
|
+
}), M2;
|
|
13240
13238
|
r[17] !== h || r[18] !== d || r[19] !== u ? (M2 = prettifyRowColumnCount({
|
|
13241
13239
|
numRows: u,
|
|
13242
13240
|
totalColumns: d,
|
|
13243
13241
|
locale: h
|
|
13244
|
-
}), r[17] = h, r[18] = d, r[19] = u, r[20] = M2) : M2 = r[20]
|
|
13242
|
+
}), r[17] = h, r[18] = d, r[19] = u, r[20] = M2) : M2 = r[20];
|
|
13243
|
+
let I2 = M2.rowsAndColumns;
|
|
13244
|
+
E = "mb-3", O = (0, import_jsx_runtime.jsxs)("span", {
|
|
13245
13245
|
className: "text-xs font-semibold ml-2 flex",
|
|
13246
13246
|
children: [
|
|
13247
|
-
|
|
13247
|
+
I2,
|
|
13248
13248
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
13249
13249
|
tooltip: "Copy column names",
|
|
13250
13250
|
value: (e2 == null ? void 0 : e2.map(_temp2$12).join(",\n")) || "",
|
|
@@ -13252,11 +13252,11 @@ ${c}
|
|
|
13252
13252
|
})
|
|
13253
13253
|
]
|
|
13254
13254
|
}), _ = Command, S = "h-5/6 bg-background", w = false;
|
|
13255
|
-
let
|
|
13256
|
-
r[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
13255
|
+
let L;
|
|
13256
|
+
r[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (e3) => m(e3), r[21] = L) : L = r[21], r[22] === p ? T = r[23] : (T = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
13257
13257
|
placeholder: "Search columns...",
|
|
13258
13258
|
value: p,
|
|
13259
|
-
onValueChange:
|
|
13259
|
+
onValueChange: L
|
|
13260
13260
|
}), r[22] = p, r[23] = T), g = CommandList, v = "max-h-full", r[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
13261
13261
|
children: "No results."
|
|
13262
13262
|
}), r[24] = y) : y = r[24], b = j2 == null ? void 0 : j2.map((e3, r2) => {
|
|
@@ -13723,53 +13723,53 @@ ${c}
|
|
|
13723
13723
|
className: "text-muted-foreground text-xs",
|
|
13724
13724
|
children: "|"
|
|
13725
13725
|
}), r[24] = q) : q = r[24];
|
|
13726
|
-
let
|
|
13727
|
-
r[25] === E ?
|
|
13728
|
-
let
|
|
13729
|
-
r[27] ===
|
|
13730
|
-
let
|
|
13731
|
-
r[29] !== Z || r[30] !==
|
|
13726
|
+
let UU;
|
|
13727
|
+
r[25] === E ? UU = r[26] : (UU = () => E(PANEL_TYPES.COLUMN_EXPLORER), r[25] = E, r[26] = UU);
|
|
13728
|
+
let WU = R === PANEL_TYPES.COLUMN_EXPLORER ? activeClassName : inactiveClassName, Z;
|
|
13729
|
+
r[27] === WU ? Z = r[28] : (Z = cn(tabTriggerClassName, WU), r[27] = WU, r[28] = Z);
|
|
13730
|
+
let GU;
|
|
13731
|
+
r[29] !== Z || r[30] !== UU ? (GU = (0, import_jsx_runtime.jsx)(Button, {
|
|
13732
13732
|
variant: "text",
|
|
13733
13733
|
size: "xs",
|
|
13734
|
-
onClick:
|
|
13734
|
+
onClick: UU,
|
|
13735
13735
|
className: Z,
|
|
13736
13736
|
children: "Columns"
|
|
13737
|
-
}), r[29] = Z, r[30] =
|
|
13738
|
-
let
|
|
13739
|
-
r[32] !==
|
|
13737
|
+
}), r[29] = Z, r[30] = UU, r[31] = GU) : GU = r[31];
|
|
13738
|
+
let KU;
|
|
13739
|
+
r[32] !== GU || r[33] !== G ? (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
13744
|
G,
|
|
13745
13745
|
q,
|
|
13746
|
-
|
|
13746
|
+
GU
|
|
13747
13747
|
]
|
|
13748
13748
|
})
|
|
13749
|
-
}), r[32] =
|
|
13750
|
-
let
|
|
13751
|
-
r[35] === M ?
|
|
13749
|
+
}), r[32] = GU, r[33] = G, r[34] = KU) : KU = r[34];
|
|
13750
|
+
let qU;
|
|
13751
|
+
r[35] === M ? qU = r[36] : (qU = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
13752
13752
|
value: PANEL_TYPES.ROW_VIEWER,
|
|
13753
13753
|
className: "flex-1 overflow-auto",
|
|
13754
13754
|
children: M
|
|
13755
|
-
}), r[35] = M, r[36] =
|
|
13756
|
-
let
|
|
13757
|
-
r[37] === L ?
|
|
13755
|
+
}), r[35] = M, r[36] = qU);
|
|
13756
|
+
let JU;
|
|
13757
|
+
r[37] === L ? JU = r[38] : (JU = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
13758
13758
|
value: PANEL_TYPES.COLUMN_EXPLORER,
|
|
13759
13759
|
className: "flex-1 overflow-auto",
|
|
13760
13760
|
children: L
|
|
13761
|
-
}), r[37] = L, r[38] =
|
|
13762
|
-
let
|
|
13763
|
-
return r[39] !== R || r[40] !==
|
|
13761
|
+
}), r[37] = L, r[38] = JU);
|
|
13762
|
+
let YU;
|
|
13763
|
+
return r[39] !== R || r[40] !== KU || r[41] !== qU || r[42] !== JU || r[43] !== z ? (YU = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
13764
13764
|
value: R,
|
|
13765
13765
|
onValueChange: z,
|
|
13766
13766
|
className: "flex flex-col min-w-[350px]",
|
|
13767
13767
|
children: [
|
|
13768
|
+
KU,
|
|
13768
13769
|
qU,
|
|
13769
|
-
JU
|
|
13770
|
-
YU
|
|
13770
|
+
JU
|
|
13771
13771
|
]
|
|
13772
|
-
}), r[39] = R, r[40] =
|
|
13772
|
+
}), r[39] = R, r[40] = KU, r[41] = qU, r[42] = JU, r[43] = z, r[44] = YU) : YU = r[44], YU;
|
|
13773
13773
|
};
|
|
13774
13774
|
var import_compiler_runtime$59 = require_compiler_runtime();
|
|
13775
13775
|
function useEffectSkipFirstRender(e, r) {
|
|
@@ -14266,6 +14266,7 @@ ${c}
|
|
|
14266
14266
|
rowHeaders: columnToFieldTypesSchema,
|
|
14267
14267
|
freezeColumnsLeft: array(string()).optional(),
|
|
14268
14268
|
freezeColumnsRight: array(string()).optional(),
|
|
14269
|
+
hiddenColumns: array(string()).optional(),
|
|
14269
14270
|
textJustifyColumns: record(string(), _enum([
|
|
14270
14271
|
"left",
|
|
14271
14272
|
"center",
|
|
@@ -14498,8 +14499,8 @@ ${c}
|
|
|
14498
14499
|
_.pageSize,
|
|
14499
14500
|
_.pageIndex
|
|
14500
14501
|
], r[36] = w, r[37] = _.pageIndex, r[38] = _.pageSize, r[39] = e.cellHoverTexts, r[40] = e.cellStyles, r[41] = e.data, r[42] = e.lazy, r[43] = e.sizeBytes, r[44] = e.totalRows, r[45] = u, r[46] = y, r[47] = m, r[48] = B, r[49] = H) : H = r[49];
|
|
14501
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14502
|
-
r[50] !== w || r[51] !== u || r[52] !== y || r[53] !== m ? (
|
|
14502
|
+
let { data: W, error: G, isPending: q, isFetching: UU } = useAsyncData(z, H), WU;
|
|
14503
|
+
r[50] !== w || r[51] !== u || r[52] !== y || r[53] !== m ? (WU = async (e2) => ({
|
|
14503
14504
|
rows: await loadTableData((await u({
|
|
14504
14505
|
page_number: e2,
|
|
14505
14506
|
page_size: 1,
|
|
@@ -14508,38 +14509,38 @@ ${c}
|
|
|
14508
14509
|
filters: filtersToFilterGroup(w),
|
|
14509
14510
|
max_columns: null
|
|
14510
14511
|
})).data)
|
|
14511
|
-
}), r[50] = w, r[51] = u, r[52] = y, r[53] = m, r[54] =
|
|
14512
|
-
let Z =
|
|
14513
|
-
r[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14512
|
+
}), r[50] = w, r[51] = u, r[52] = y, r[53] = m, r[54] = WU) : WU = r[54];
|
|
14513
|
+
let Z = WU, GU;
|
|
14514
|
+
r[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (GU = () => {
|
|
14514
14515
|
v(_temp4$4);
|
|
14515
|
-
}, r[55] =
|
|
14516
|
-
let
|
|
14517
|
-
r[56] ===
|
|
14518
|
-
|
|
14519
|
-
], r[56] =
|
|
14520
|
-
let
|
|
14521
|
-
r[58] === e ?
|
|
14516
|
+
}, r[55] = GU) : GU = r[55];
|
|
14517
|
+
let KU = W == null ? void 0 : W.totalRows, qU;
|
|
14518
|
+
r[56] === KU ? qU = r[57] : (qU = [
|
|
14519
|
+
KU
|
|
14520
|
+
], r[56] = KU, r[57] = qU), (0, import_react.useEffect)(GU, qU);
|
|
14521
|
+
let JU;
|
|
14522
|
+
r[58] === e ? JU = r[59] : (JU = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14522
14523
|
data: null,
|
|
14523
14524
|
stats: {},
|
|
14524
14525
|
bin_values: {},
|
|
14525
14526
|
value_counts: {},
|
|
14526
14527
|
show_charts: false
|
|
14527
|
-
} : e.get_column_summaries({}), r[58] = e, r[59] =
|
|
14528
|
-
let
|
|
14529
|
-
r[60] !== w || r[61] !== e.data || r[62] !== e.get_column_summaries || r[63] !== e.showColumnSummaries || r[64] !== e.totalRows || r[65] !== y ? (
|
|
14528
|
+
} : e.get_column_summaries({}), r[58] = e, r[59] = JU);
|
|
14529
|
+
let YU;
|
|
14530
|
+
r[60] !== w || r[61] !== e.data || r[62] !== e.get_column_summaries || r[63] !== e.showColumnSummaries || r[64] !== e.totalRows || r[65] !== y ? (YU = [
|
|
14530
14531
|
e.get_column_summaries,
|
|
14531
14532
|
e.showColumnSummaries,
|
|
14532
14533
|
w,
|
|
14533
14534
|
y,
|
|
14534
14535
|
e.totalRows,
|
|
14535
14536
|
e.data
|
|
14536
|
-
], r[60] = w, r[61] = e.data, r[62] = e.get_column_summaries, r[63] = e.showColumnSummaries, r[64] = e.totalRows, r[65] = y, r[66] =
|
|
14537
|
-
let { data:
|
|
14538
|
-
if (r[67] ===
|
|
14539
|
-
|
|
14540
|
-
},
|
|
14541
|
-
|
|
14542
|
-
], r[67] =
|
|
14537
|
+
], r[60] = w, r[61] = e.data, r[62] = e.get_column_summaries, r[63] = e.showColumnSummaries, r[64] = e.totalRows, r[65] = y, r[66] = YU) : YU = r[66];
|
|
14538
|
+
let { data: XU, error: ZU } = useAsyncData(JU, YU), QU, $U;
|
|
14539
|
+
if (r[67] === ZU ? (QU = r[68], $U = r[69]) : (QU = () => {
|
|
14540
|
+
ZU && Logger.error(ZU);
|
|
14541
|
+
}, $U = [
|
|
14542
|
+
ZU
|
|
14543
|
+
], r[67] = ZU, r[68] = QU, r[69] = $U), (0, import_react.useEffect)(QU, $U), q) {
|
|
14543
14544
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14544
14545
|
return r[70] === c2 ? l2 = r[71] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14545
14546
|
milliseconds: 200,
|
|
@@ -14548,7 +14549,7 @@ ${c}
|
|
|
14548
14549
|
})
|
|
14549
14550
|
}), r[70] = c2, r[71] = l2), l2;
|
|
14550
14551
|
}
|
|
14551
|
-
let
|
|
14552
|
+
let eW = null;
|
|
14552
14553
|
if (G) {
|
|
14553
14554
|
Logger.error(G);
|
|
14554
14555
|
let e2;
|
|
@@ -14564,59 +14565,59 @@ ${c}
|
|
|
14564
14565
|
children: G.message || "An unknown error occurred"
|
|
14565
14566
|
})
|
|
14566
14567
|
]
|
|
14567
|
-
}), r[72] = G, r[73] = e2),
|
|
14568
|
+
}), r[72] = G, r[73] = e2), eW = e2;
|
|
14568
14569
|
}
|
|
14569
|
-
let
|
|
14570
|
-
r[74] === O ?
|
|
14570
|
+
let tW;
|
|
14571
|
+
r[74] === O ? tW = r[75] : (tW = () => {
|
|
14571
14572
|
j(!O);
|
|
14572
|
-
}, r[74] = O, r[75] =
|
|
14573
|
-
let
|
|
14574
|
-
r[76] !== l || r[77] !==
|
|
14573
|
+
}, r[74] = O, r[75] = tW);
|
|
14574
|
+
let nW = tW, rW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, iW = W == null ? void 0 : W.rawRows, aW = UU && !q, oW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, sW = (W == null ? void 0 : W.sizeBytes) ?? e.sizeBytes ?? null, cW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, lW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, uW;
|
|
14575
|
+
r[76] !== l || r[77] !== XU || r[78] !== O || r[79] !== w || r[80] !== Z || r[81] !== _ || r[82] !== e || r[83] !== y || r[84] !== m || r[85] !== rW || r[86] !== iW || r[87] !== aW || r[88] !== oW || r[89] !== sW || r[90] !== cW || r[91] !== lW || r[92] !== nW ? (uW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14575
14576
|
...e,
|
|
14576
|
-
data:
|
|
14577
|
-
rawData:
|
|
14578
|
-
columnSummaries:
|
|
14577
|
+
data: rW,
|
|
14578
|
+
rawData: iW,
|
|
14579
|
+
columnSummaries: XU,
|
|
14579
14580
|
sorting: m,
|
|
14580
14581
|
setSorting: h,
|
|
14581
14582
|
searchQuery: y,
|
|
14582
14583
|
setSearchQuery: b,
|
|
14583
14584
|
filters: w,
|
|
14584
14585
|
setFilters: T,
|
|
14585
|
-
reloading:
|
|
14586
|
-
totalRows:
|
|
14587
|
-
sizeBytes:
|
|
14586
|
+
reloading: aW,
|
|
14587
|
+
totalRows: oW,
|
|
14588
|
+
sizeBytes: sW,
|
|
14588
14589
|
paginationState: _,
|
|
14589
14590
|
setPaginationState: v,
|
|
14590
|
-
cellStyles:
|
|
14591
|
-
cellHoverTexts:
|
|
14592
|
-
toggleDisplayHeader:
|
|
14591
|
+
cellStyles: cW,
|
|
14592
|
+
cellHoverTexts: lW,
|
|
14593
|
+
toggleDisplayHeader: nW,
|
|
14593
14594
|
isChartBuilderOpen: O,
|
|
14594
14595
|
getRow: Z,
|
|
14595
14596
|
cellId: l,
|
|
14596
14597
|
maxHeight: e.maxHeight
|
|
14597
|
-
}), r[76] = l, r[77] =
|
|
14598
|
-
let
|
|
14599
|
-
r[94] !== l || r[95] !==
|
|
14598
|
+
}), r[76] = l, r[77] = XU, r[78] = O, r[79] = w, r[80] = Z, r[81] = _, r[82] = e, r[83] = y, r[84] = m, r[85] = rW, r[86] = iW, r[87] = aW, r[88] = oW, r[89] = sW, r[90] = cW, r[91] = lW, r[92] = nW, r[93] = uW) : uW = r[93];
|
|
14599
|
+
let dW = uW, fW;
|
|
14600
|
+
r[94] !== l || r[95] !== dW || r[96] !== (W == null ? void 0 : W.rows) || r[97] !== O || r[98] !== e.fieldTypes || r[99] !== e.get_data_url || r[100] !== e.showChartBuilder || r[101] !== e.totalColumns || r[102] !== e.totalRows ? (fW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14600
14601
|
displayHeader: O,
|
|
14601
14602
|
onCloseChartBuilder: () => j(false),
|
|
14602
14603
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14603
14604
|
columns: e.totalColumns,
|
|
14604
14605
|
totalRows: e.totalRows,
|
|
14605
|
-
dataTable:
|
|
14606
|
+
dataTable: dW,
|
|
14606
14607
|
getDataUrl: e.get_data_url,
|
|
14607
14608
|
fieldTypes: e.fieldTypes,
|
|
14608
14609
|
cellId: l
|
|
14609
|
-
}) :
|
|
14610
|
-
let
|
|
14611
|
-
return r[104] !==
|
|
14610
|
+
}) : dW, r[94] = l, r[95] = dW, r[96] = W == null ? void 0 : W.rows, r[97] = O, r[98] = e.fieldTypes, r[99] = e.get_data_url, r[100] = e.showChartBuilder, r[101] = e.totalColumns, r[102] = e.totalRows, r[103] = fW) : fW = r[103];
|
|
14611
|
+
let pW;
|
|
14612
|
+
return r[104] !== eW || r[105] !== fW ? (pW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14612
14613
|
children: [
|
|
14613
|
-
|
|
14614
|
-
|
|
14614
|
+
eW,
|
|
14615
|
+
fW
|
|
14615
14616
|
]
|
|
14616
|
-
}), r[104] =
|
|
14617
|
+
}), r[104] = eW, r[105] = fW, r[106] = pW) : pW = r[106], pW;
|
|
14617
14618
|
});
|
|
14618
14619
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14619
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, maxColumns: d, pagination: f, selection: p, value: m, showFilters: h, showDownload: g, showPageSizeSelector: _, showColumnExplorer: v, showRowExplorer: y, showChartBuilder: b, showDataTypes: S, rowHeaders: w, fieldTypes: T, paginationState: O, setPaginationState: j, download_as: M, columnSummaries: I, className: L, setValue: R, sorting: z, setSorting: B, enableSearch: H, searchQuery: W, setSearchQuery: G, filters: q, setFilters:
|
|
14620
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, maxColumns: d, pagination: f, selection: p, value: m, showFilters: h, showDownload: g, showPageSizeSelector: _, showColumnExplorer: v, showRowExplorer: y, showChartBuilder: b, showDataTypes: S, rowHeaders: w, fieldTypes: T, paginationState: O, setPaginationState: j, download_as: M, columnSummaries: I, className: L, setValue: R, sorting: z, setSorting: B, enableSearch: H, searchQuery: W, setSearchQuery: G, filters: q, setFilters: UU, reloading: WU, freezeColumnsLeft: Z, freezeColumnsRight: GU, hiddenColumns: KU, textJustifyColumns: qU, wrappedColumns: JU, headerTooltip: YU, totalColumns: XU, get_row_ids: ZU, cellStyles: QU, hoverTemplate: $U, cellHoverTexts: eW, toggleDisplayHeader: tW, isChartBuilderOpen: nW, calculate_top_k_rows: rW, preview_column: iW, getRow: aW, cellId: oW, maxHeight: sW }) => {
|
|
14620
14621
|
let cW = (0, import_react.useId)(), [lW, uW] = (0, import_react.useState)(0), { isPanelOpen: dW, isAnyPanelOpen: fW, togglePanel: pW, panelType: mW, setPanelType: hW } = usePanelOwnership(cW, oW), gW = (0, import_react.useMemo)(() => {
|
|
14621
14622
|
if (!I || !T || !I.stats) return ColumnChartSpecModel.EMPTY;
|
|
14622
14623
|
let e2 = toFieldTypes(T);
|
|
@@ -14773,12 +14774,13 @@ ${c}
|
|
|
14773
14774
|
onSearchQueryChange: G,
|
|
14774
14775
|
showFilters: h,
|
|
14775
14776
|
filters: q,
|
|
14776
|
-
onFiltersChange:
|
|
14777
|
+
onFiltersChange: UU,
|
|
14777
14778
|
calculateTopKRows: rW,
|
|
14778
|
-
reloading:
|
|
14779
|
+
reloading: WU,
|
|
14779
14780
|
onRowSelectionChange: OW,
|
|
14780
14781
|
freezeColumnsLeft: Z,
|
|
14781
|
-
freezeColumnsRight:
|
|
14782
|
+
freezeColumnsRight: GU,
|
|
14783
|
+
hiddenColumns: KU,
|
|
14782
14784
|
onCellSelectionChange: jW,
|
|
14783
14785
|
getRowIds: ZU,
|
|
14784
14786
|
toggleDisplayHeader: tW,
|
|
@@ -16892,29 +16894,29 @@ ${c}
|
|
|
16892
16894
|
], r[2] = b, r[3] = S);
|
|
16893
16895
|
let { data: w, error: T, isPending: O } = useAsyncData(y, S), j;
|
|
16894
16896
|
r[4] === w ? j = r[5] : (j = w || {}, r[4] = w, r[5] = j);
|
|
16895
|
-
let { url: M, total_rows: I, row_headers: L, field_types: R, column_types_per_step: z, python_code: B, sql_code: H, size_bytes: W } = j, G = R == null ? void 0 : R.length, [q,
|
|
16897
|
+
let { url: M, total_rows: I, row_headers: L, field_types: R, column_types_per_step: z, python_code: B, sql_code: H, size_bytes: W } = j, G = R == null ? void 0 : R.length, [q, UU] = (0, import_react.useState)(f || EMPTY), WU = (0, import_react.useRef)(null), Z;
|
|
16896
16898
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16897
16899
|
var _a3;
|
|
16898
|
-
d && e2 !== "transform" && ((_a3 =
|
|
16900
|
+
d && e2 !== "transform" && ((_a3 = WU.current) == null ? void 0 : _a3.submit());
|
|
16899
16901
|
}, r[6] = d, r[7] = Z);
|
|
16900
|
-
let
|
|
16901
|
-
r[8] === q ?
|
|
16902
|
-
|
|
16903
|
-
}, r[8] = q, r[9] =
|
|
16904
|
-
let
|
|
16905
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16906
|
-
let e2 =
|
|
16902
|
+
let GU = Z, KU = (0, import_react.useRef)(q), qU;
|
|
16903
|
+
r[8] === q ? qU = r[9] : (qU = () => {
|
|
16904
|
+
KU.current = q;
|
|
16905
|
+
}, r[8] = q, r[9] = qU), (0, import_react.useEffect)(qU);
|
|
16906
|
+
let JU;
|
|
16907
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (JU = () => {
|
|
16908
|
+
let e2 = KU.current;
|
|
16907
16909
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16908
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16909
|
-
let
|
|
16910
|
-
r[13] !== w || r[14] !== p || r[15] !==
|
|
16910
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = JU) : JU = r[12];
|
|
16911
|
+
let YU = f == null ? void 0 : f.transforms.length, XU;
|
|
16912
|
+
r[13] !== w || r[14] !== p || r[15] !== YU ? (XU = [
|
|
16911
16913
|
w,
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
+
YU,
|
|
16915
|
+
KU,
|
|
16914
16916
|
p
|
|
16915
|
-
], r[13] = w, r[14] = p, r[15] =
|
|
16916
|
-
let
|
|
16917
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16917
|
+
], r[13] = w, r[14] = p, r[15] = YU, r[16] = XU) : XU = r[16], (0, import_react.useEffect)(JU, XU);
|
|
16918
|
+
let ZU;
|
|
16919
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16918
16920
|
value: "transform",
|
|
16919
16921
|
className: "text-xs py-1",
|
|
16920
16922
|
children: [
|
|
@@ -16923,9 +16925,9 @@ ${c}
|
|
|
16923
16925
|
}),
|
|
16924
16926
|
"Transform"
|
|
16925
16927
|
]
|
|
16926
|
-
}), r[17] =
|
|
16927
|
-
let
|
|
16928
|
-
r[18] === B ?
|
|
16928
|
+
}), r[17] = ZU) : ZU = r[17];
|
|
16929
|
+
let QU;
|
|
16930
|
+
r[18] === B ? QU = r[19] : (QU = B && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16929
16931
|
value: "python-code",
|
|
16930
16932
|
className: "text-xs py-1",
|
|
16931
16933
|
children: [
|
|
@@ -16934,9 +16936,9 @@ ${c}
|
|
|
16934
16936
|
}),
|
|
16935
16937
|
"Python Code"
|
|
16936
16938
|
]
|
|
16937
|
-
}), r[18] = B, r[19] =
|
|
16938
|
-
let
|
|
16939
|
-
r[20] === H ?
|
|
16939
|
+
}), r[18] = B, r[19] = QU);
|
|
16940
|
+
let $U;
|
|
16941
|
+
r[20] === H ? $U = r[21] : ($U = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16940
16942
|
value: "sql-code",
|
|
16941
16943
|
className: "text-xs py-1",
|
|
16942
16944
|
children: [
|
|
@@ -16945,54 +16947,54 @@ ${c}
|
|
|
16945
16947
|
}),
|
|
16946
16948
|
"SQL Code"
|
|
16947
16949
|
]
|
|
16948
|
-
}), r[20] = H, r[21] =
|
|
16949
|
-
let
|
|
16950
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16950
|
+
}), r[20] = H, r[21] = $U);
|
|
16951
|
+
let eW;
|
|
16952
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW = (0, import_jsx_runtime.jsx)("div", {
|
|
16951
16953
|
className: "grow"
|
|
16952
|
-
}), r[22] =
|
|
16953
|
-
let
|
|
16954
|
-
r[23] !==
|
|
16954
|
+
}), r[22] = eW) : eW = r[22];
|
|
16955
|
+
let tW;
|
|
16956
|
+
r[23] !== QU || r[24] !== $U ? (tW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16955
16957
|
className: "h-8",
|
|
16956
16958
|
children: [
|
|
16959
|
+
ZU,
|
|
16957
16960
|
QU,
|
|
16958
16961
|
$U,
|
|
16959
|
-
eW
|
|
16960
|
-
tW
|
|
16962
|
+
eW
|
|
16961
16963
|
]
|
|
16962
|
-
}), r[23] =
|
|
16963
|
-
let
|
|
16964
|
-
r[26] === O ?
|
|
16964
|
+
}), r[23] = QU, r[24] = $U, r[25] = tW) : tW = r[25];
|
|
16965
|
+
let nW;
|
|
16966
|
+
r[26] === O ? nW = r[27] : (nW = O && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16965
16967
|
size: "small"
|
|
16966
|
-
}), r[26] = O, r[27] =
|
|
16967
|
-
let
|
|
16968
|
-
r[28] !==
|
|
16968
|
+
}), r[26] = O, r[27] = nW);
|
|
16969
|
+
let rW;
|
|
16970
|
+
r[28] !== tW || r[29] !== nW ? (rW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16969
16971
|
className: "flex items-center gap-2",
|
|
16970
16972
|
children: [
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
+
tW,
|
|
16974
|
+
nW
|
|
16973
16975
|
]
|
|
16974
|
-
}), r[28] =
|
|
16975
|
-
let
|
|
16976
|
-
r[31] !== p || r[32] !== f ? (
|
|
16977
|
-
dequal(e2, f) || (p(e2),
|
|
16978
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16979
|
-
let
|
|
16980
|
-
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16976
|
+
}), r[28] = tW, r[29] = nW, r[30] = rW) : rW = r[30];
|
|
16977
|
+
let iW;
|
|
16978
|
+
r[31] !== p || r[32] !== f ? (iW = (e2) => {
|
|
16979
|
+
dequal(e2, f) || (p(e2), UU(e2));
|
|
16980
|
+
}, r[31] = p, r[32] = f, r[33] = iW) : iW = r[33];
|
|
16981
|
+
let oW;
|
|
16982
|
+
r[34] !== z || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== iW ? (oW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16981
16983
|
value: "transform",
|
|
16982
16984
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16983
16985
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16984
|
-
ref:
|
|
16986
|
+
ref: WU,
|
|
16985
16987
|
initialValue: q,
|
|
16986
16988
|
columns: c,
|
|
16987
|
-
onChange:
|
|
16988
|
-
onInvalidChange:
|
|
16989
|
+
onChange: iW,
|
|
16990
|
+
onInvalidChange: UU,
|
|
16989
16991
|
getColumnValues: h,
|
|
16990
16992
|
columnTypesPerStep: z,
|
|
16991
16993
|
lazy: d
|
|
16992
16994
|
})
|
|
16993
|
-
}), r[34] = z, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16994
|
-
let
|
|
16995
|
-
r[41] === B ?
|
|
16995
|
+
}), r[34] = z, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = iW, r[40] = oW) : oW = r[40];
|
|
16996
|
+
let sW;
|
|
16997
|
+
r[41] === B ? sW = r[42] : (sW = B && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16996
16998
|
value: "python-code",
|
|
16997
16999
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16998
17000
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -17001,9 +17003,9 @@ ${c}
|
|
|
17001
17003
|
code: B,
|
|
17002
17004
|
language: "python"
|
|
17003
17005
|
})
|
|
17004
|
-
}), r[41] = B, r[42] =
|
|
17005
|
-
let
|
|
17006
|
-
r[43] === H ?
|
|
17006
|
+
}), r[41] = B, r[42] = sW);
|
|
17007
|
+
let cW;
|
|
17008
|
+
r[43] === H ? cW = r[44] : (cW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
17007
17009
|
value: "sql-code",
|
|
17008
17010
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
17009
17011
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -17012,36 +17014,36 @@ ${c}
|
|
|
17012
17014
|
code: H,
|
|
17013
17015
|
language: "sql"
|
|
17014
17016
|
})
|
|
17015
|
-
}), r[43] = H, r[44] =
|
|
17016
|
-
let
|
|
17017
|
-
r[45] !==
|
|
17017
|
+
}), r[43] = H, r[44] = cW);
|
|
17018
|
+
let lW;
|
|
17019
|
+
r[45] !== GU || r[46] !== rW || r[47] !== oW || r[48] !== sW || r[49] !== cW ? (lW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
17018
17020
|
defaultValue: "transform",
|
|
17019
|
-
onValueChange:
|
|
17021
|
+
onValueChange: GU,
|
|
17020
17022
|
children: [
|
|
17021
|
-
|
|
17023
|
+
rW,
|
|
17024
|
+
oW,
|
|
17022
17025
|
sW,
|
|
17023
|
-
cW
|
|
17024
|
-
lW
|
|
17026
|
+
cW
|
|
17025
17027
|
]
|
|
17026
|
-
}), r[45] =
|
|
17027
|
-
let
|
|
17028
|
-
r[51] === T ?
|
|
17028
|
+
}), r[45] = GU, r[46] = rW, r[47] = oW, r[48] = sW, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
17029
|
+
let uW;
|
|
17030
|
+
r[51] === T ? uW = r[52] : (uW = T && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
17029
17031
|
error: T
|
|
17030
|
-
}), r[51] = T, r[52] =
|
|
17031
|
-
let
|
|
17032
|
-
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !==
|
|
17032
|
+
}), r[51] = T, r[52] = uW);
|
|
17033
|
+
let dW = M || "", fW = I ?? 0, pW = W ?? null, mW = G ?? 0, hW = L || Arrays.EMPTY, gW = I && I > 5 || false, _W;
|
|
17034
|
+
r[53] !== _ || r[54] !== R || r[55] !== v || r[56] !== l || r[57] !== g || r[58] !== u || r[59] !== dW || r[60] !== fW || r[61] !== pW || r[62] !== mW || r[63] !== hW || r[64] !== gW ? (_W = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
17033
17035
|
label: null,
|
|
17034
17036
|
className: "rounded-b border-x border-b",
|
|
17035
|
-
data:
|
|
17037
|
+
data: dW,
|
|
17036
17038
|
hasStableRowId: false,
|
|
17037
|
-
totalRows:
|
|
17038
|
-
sizeBytes:
|
|
17039
|
-
totalColumns:
|
|
17039
|
+
totalRows: fW,
|
|
17040
|
+
sizeBytes: pW,
|
|
17041
|
+
totalColumns: mW,
|
|
17040
17042
|
maxColumns: "all",
|
|
17041
17043
|
pageSize: l,
|
|
17042
17044
|
pagination: true,
|
|
17043
17045
|
fieldTypes: R,
|
|
17044
|
-
rowHeaders:
|
|
17046
|
+
rowHeaders: hW,
|
|
17045
17047
|
showDownload: u,
|
|
17046
17048
|
download_as: _,
|
|
17047
17049
|
enableSearch: false,
|
|
@@ -17050,7 +17052,7 @@ ${c}
|
|
|
17050
17052
|
showColumnSummaries: false,
|
|
17051
17053
|
showDataTypes: true,
|
|
17052
17054
|
get_column_summaries: getColumnSummaries,
|
|
17053
|
-
showPageSizeSelector:
|
|
17055
|
+
showPageSizeSelector: gW,
|
|
17054
17056
|
showColumnExplorer: false,
|
|
17055
17057
|
showRowExplorer: true,
|
|
17056
17058
|
showChartBuilder: false,
|
|
@@ -17059,15 +17061,15 @@ ${c}
|
|
|
17059
17061
|
selection: null,
|
|
17060
17062
|
lazy: false,
|
|
17061
17063
|
host: v
|
|
17062
|
-
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] =
|
|
17063
|
-
let
|
|
17064
|
-
return r[66] !==
|
|
17064
|
+
}), r[53] = _, r[54] = R, r[55] = v, r[56] = l, r[57] = g, r[58] = u, r[59] = dW, r[60] = fW, r[61] = pW, r[62] = mW, r[63] = hW, r[64] = gW, r[65] = _W) : _W = r[65];
|
|
17065
|
+
let vW;
|
|
17066
|
+
return r[66] !== lW || r[67] !== uW || r[68] !== _W ? (vW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17065
17067
|
children: [
|
|
17068
|
+
lW,
|
|
17066
17069
|
uW,
|
|
17067
|
-
|
|
17068
|
-
vW
|
|
17070
|
+
_W
|
|
17069
17071
|
]
|
|
17070
|
-
}), r[66] =
|
|
17072
|
+
}), r[66] = lW, r[67] = uW, r[68] = _W, r[69] = vW) : vW = r[69], vW;
|
|
17071
17073
|
});
|
|
17072
17074
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17073
17075
|
function getColumnSummaries() {
|
|
@@ -17255,9 +17257,9 @@ ${c}
|
|
|
17255
17257
|
}, W = [
|
|
17256
17258
|
B
|
|
17257
17259
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
17258
|
-
let G, q,
|
|
17260
|
+
let G, q, UU, WU, Z, KU, qU, YU, XU;
|
|
17259
17261
|
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) {
|
|
17260
|
-
|
|
17262
|
+
XU = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
17261
17263
|
bb0: {
|
|
17262
17264
|
Z = (R == null ? void 0 : R.files) ?? [];
|
|
17263
17265
|
let e2;
|
|
@@ -17270,13 +17272,13 @@ ${c}
|
|
|
17270
17272
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
17271
17273
|
kind: "danger",
|
|
17272
17274
|
children: z.message
|
|
17273
|
-
}), r[36] = z.message, r[37] = e3),
|
|
17275
|
+
}), r[36] = z.message, r[37] = e3), XU = e3;
|
|
17274
17276
|
break bb0;
|
|
17275
17277
|
}
|
|
17276
17278
|
let E2;
|
|
17277
17279
|
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), q = E2.deliminator;
|
|
17278
17280
|
let O2;
|
|
17279
|
-
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$6), r[40] = c, r[41] = O2),
|
|
17281
|
+
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$6), r[40] = c, r[41] = O2), qU = O2;
|
|
17280
17282
|
let j2;
|
|
17281
17283
|
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
17282
17284
|
if (b) return;
|
|
@@ -17297,7 +17299,7 @@ ${c}
|
|
|
17297
17299
|
return;
|
|
17298
17300
|
}
|
|
17299
17301
|
y(e3), S(false);
|
|
17300
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48],
|
|
17302
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], YU = j2;
|
|
17301
17303
|
let M2;
|
|
17302
17304
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e3) {
|
|
17303
17305
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -17325,7 +17327,7 @@ ${c}
|
|
|
17325
17327
|
let H2 = B2, W2;
|
|
17326
17328
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17327
17329
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17328
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
17330
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], UU = W2, KU = function() {
|
|
17329
17331
|
let e3 = [];
|
|
17330
17332
|
for (let r2 of Z) {
|
|
17331
17333
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
@@ -17340,35 +17342,35 @@ ${c}
|
|
|
17340
17342
|
...c,
|
|
17341
17343
|
...e3
|
|
17342
17344
|
]);
|
|
17343
|
-
},
|
|
17344
|
-
let
|
|
17345
|
-
r[59] ===
|
|
17346
|
-
let $U2
|
|
17347
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
17345
|
+
}, WU = [];
|
|
17346
|
+
let ZU2;
|
|
17347
|
+
r[59] === YU ? ZU2 = r[60] : (ZU2 = () => YU(PARENT_DIRECTORY), r[59] = YU, r[60] = ZU2);
|
|
17348
|
+
let QU2, $U2;
|
|
17349
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (QU2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17348
17350
|
className: "w-[50px] pl-4",
|
|
17349
17351
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
17350
17352
|
size: 16
|
|
17351
17353
|
})
|
|
17352
|
-
}),
|
|
17354
|
+
}), $U2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17353
17355
|
children: PARENT_DIRECTORY
|
|
17354
|
-
}), r[61] =
|
|
17355
|
-
let
|
|
17356
|
-
r[63] ===
|
|
17356
|
+
}), r[61] = QU2, r[62] = $U2) : (QU2 = r[61], $U2 = r[62]);
|
|
17357
|
+
let eW2;
|
|
17358
|
+
r[63] === ZU2 ? eW2 = r[64] : (eW2 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17357
17359
|
className: "hover:bg-accent select-none",
|
|
17358
|
-
onClick:
|
|
17360
|
+
onClick: ZU2,
|
|
17359
17361
|
children: [
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
+
QU2,
|
|
17363
|
+
$U2
|
|
17362
17364
|
]
|
|
17363
|
-
}, "Parent directory"), r[63] =
|
|
17365
|
+
}, "Parent directory"), r[63] = ZU2, r[64] = eW2), WU.push(eW2);
|
|
17364
17366
|
for (let e3 of Z) {
|
|
17365
17367
|
let r2 = e3.path;
|
|
17366
17368
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17367
17369
|
let c2 = e3.is_directory ? (e4) => {
|
|
17368
17370
|
let { path: r3 } = e4;
|
|
17369
|
-
return
|
|
17371
|
+
return YU(r3);
|
|
17370
17372
|
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17371
|
-
|
|
17373
|
+
WU.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17372
17374
|
className: cn("hover:bg-accent group select-none", {
|
|
17373
17375
|
"bg-primary/25 hover:bg-primary/35": u2
|
|
17374
17376
|
}),
|
|
@@ -17398,21 +17400,21 @@ ${c}
|
|
|
17398
17400
|
}, e3.id));
|
|
17399
17401
|
}
|
|
17400
17402
|
}
|
|
17401
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] =
|
|
17402
|
-
} else G = r[22], q = r[23],
|
|
17403
|
-
if (
|
|
17404
|
-
let QU, $U, eW, tW, nW, rW
|
|
17405
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
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] = G, r[23] = q, r[24] = UU, r[25] = WU, r[26] = Z, r[27] = KU, r[28] = qU, r[29] = YU, r[30] = XU;
|
|
17404
|
+
} else G = r[22], q = r[23], UU = r[24], WU = r[25], Z = r[26], KU = r[27], qU = r[28], YU = r[29], XU = r[30];
|
|
17405
|
+
if (XU !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return XU;
|
|
17406
|
+
let ZU, QU, $U, eW, tW, nW, rW;
|
|
17407
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== UU || r[69] !== z || r[70] !== WU || 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) {
|
|
17406
17408
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
17407
17409
|
path: v,
|
|
17408
17410
|
delimiter: q,
|
|
17409
17411
|
initialPath: u,
|
|
17410
17412
|
restrictNavigation: h
|
|
17411
17413
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17412
|
-
r[92] === z ?
|
|
17414
|
+
r[92] === z ? rW = r[93] : (rW = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
17413
17415
|
kind: "danger",
|
|
17414
17416
|
children: z.message
|
|
17415
|
-
}), r[92] = z, r[93] =
|
|
17417
|
+
}), r[92] = z, r[93] = rW), ZU = (() => {
|
|
17416
17418
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17417
17419
|
children: renderHTML({
|
|
17418
17420
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -17429,7 +17431,7 @@ ${c}
|
|
|
17429
17431
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17430
17432
|
size: "xs",
|
|
17431
17433
|
variant: "link",
|
|
17432
|
-
onClick: G ?
|
|
17434
|
+
onClick: G ? UU : KU,
|
|
17433
17435
|
children: G ? "Deselect all" : "Select all"
|
|
17434
17436
|
})
|
|
17435
17437
|
})
|
|
@@ -17437,18 +17439,18 @@ ${c}
|
|
|
17437
17439
|
}) : e3;
|
|
17438
17440
|
})();
|
|
17439
17441
|
let _2;
|
|
17440
|
-
r[94] ===
|
|
17442
|
+
r[94] === YU ? _2 = r[95] : (_2 = (e3) => YU(e3.target.value), r[94] = YU, r[95] = _2);
|
|
17441
17443
|
let y2 = e2.map(_temp3$5);
|
|
17442
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
17444
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (QU = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17443
17445
|
className: "mt-2 w-full",
|
|
17444
17446
|
placeholder: v,
|
|
17445
17447
|
value: v,
|
|
17446
17448
|
onChange: _2,
|
|
17447
17449
|
children: y2
|
|
17448
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
17450
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = QU) : QU = r[99], r[100] !== R || r[101] !== Z ? ($U = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17449
17451
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17450
17452
|
children: R.is_truncated ? `Showing ${Z.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17451
|
-
}), r[100] = R, r[101] = Z, r[102] =
|
|
17453
|
+
}), r[100] = R, r[101] = Z, r[102] = $U) : $U = r[102];
|
|
17452
17454
|
let b2;
|
|
17453
17455
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
17454
17456
|
height: "14rem"
|
|
@@ -17467,12 +17469,12 @@ ${c}
|
|
|
17467
17469
|
]
|
|
17468
17470
|
}), r[104] = T, r[105] = S2);
|
|
17469
17471
|
let E2;
|
|
17470
|
-
r[106] ===
|
|
17472
|
+
r[106] === WU ? E2 = r[107] : (E2 = (0, import_jsx_runtime.jsx)(Table, {
|
|
17471
17473
|
className: "cursor-pointer table-fixed",
|
|
17472
17474
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17473
|
-
children:
|
|
17475
|
+
children: WU
|
|
17474
17476
|
})
|
|
17475
|
-
}), r[106] =
|
|
17477
|
+
}), r[106] = WU, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17476
17478
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17477
17479
|
style: b2,
|
|
17478
17480
|
"aria-busy": B,
|
|
@@ -17481,7 +17483,7 @@ ${c}
|
|
|
17481
17483
|
S2,
|
|
17482
17484
|
E2
|
|
17483
17485
|
]
|
|
17484
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] =
|
|
17486
|
+
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = eW) : eW = r[111], tW = "mt-4", nW = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17485
17487
|
children: [
|
|
17486
17488
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17487
17489
|
className: "flex items-center gap-2",
|
|
@@ -17511,28 +17513,28 @@ ${c}
|
|
|
17511
17513
|
marginBlock: 0
|
|
17512
17514
|
},
|
|
17513
17515
|
className: "m-0 text-xs text-muted-foreground",
|
|
17514
|
-
children:
|
|
17516
|
+
children: qU
|
|
17515
17517
|
})
|
|
17516
17518
|
})
|
|
17517
17519
|
]
|
|
17518
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
17519
|
-
} else
|
|
17520
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = UU, r[69] = z, r[70] = WU, 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
|
+
} else ZU = r[85], QU = r[86], $U = r[87], eW = r[88], tW = r[89], nW = r[90], rW = r[91];
|
|
17522
|
+
let iW;
|
|
17523
|
+
r[112] !== tW || r[113] !== nW ? (iW = (0, import_jsx_runtime.jsx)("div", {
|
|
17524
|
+
className: tW,
|
|
17525
|
+
children: nW
|
|
17526
|
+
}), r[112] = tW, r[113] = nW, r[114] = iW) : iW = r[114];
|
|
17520
17527
|
let aW;
|
|
17521
|
-
r[
|
|
17522
|
-
className: nW,
|
|
17523
|
-
children: rW
|
|
17524
|
-
}), r[112] = nW, r[113] = rW, r[114] = aW) : aW = r[114];
|
|
17525
|
-
let oW;
|
|
17526
|
-
return r[115] !== QU || r[116] !== $U || r[117] !== eW || r[118] !== tW || r[119] !== aW || r[120] !== iW ? (oW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17528
|
+
return r[115] !== ZU || r[116] !== QU || r[117] !== $U || r[118] !== eW || r[119] !== iW || r[120] !== rW ? (aW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17527
17529
|
children: [
|
|
17528
|
-
|
|
17530
|
+
rW,
|
|
17531
|
+
ZU,
|
|
17529
17532
|
QU,
|
|
17530
17533
|
$U,
|
|
17531
17534
|
eW,
|
|
17532
|
-
|
|
17533
|
-
aW
|
|
17535
|
+
iW
|
|
17534
17536
|
]
|
|
17535
|
-
}), r[115] =
|
|
17537
|
+
}), r[115] = ZU, r[116] = QU, r[117] = $U, r[118] = eW, r[119] = iW, r[120] = rW, r[121] = aW) : aW = r[121], aW;
|
|
17536
17538
|
};
|
|
17537
17539
|
function _temp$12(e) {
|
|
17538
17540
|
return e.path;
|
|
@@ -22922,55 +22924,55 @@ ${c}
|
|
|
22922
22924
|
return typeof S == "function" ? S : noop$2;
|
|
22923
22925
|
}, [
|
|
22924
22926
|
S
|
|
22925
|
-
]), q = (0, import_react.useRef)(null),
|
|
22926
|
-
!
|
|
22927
|
-
|
|
22927
|
+
]), q = (0, import_react.useRef)(null), UU = (0, import_react.useRef)(null), WU = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = WU[0], GU = WU[1], KU = Z.isFocused, qU = Z.isFileDialogActive, JU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), YU = function() {
|
|
22928
|
+
!JU.current && qU && setTimeout(function() {
|
|
22929
|
+
UU.current && (UU.current.files.length || (GU({
|
|
22928
22930
|
type: "closeDialog"
|
|
22929
22931
|
}), G()));
|
|
22930
22932
|
}, 300);
|
|
22931
22933
|
};
|
|
22932
22934
|
(0, import_react.useEffect)(function() {
|
|
22933
|
-
return window.addEventListener("focus",
|
|
22934
|
-
window.removeEventListener("focus",
|
|
22935
|
+
return window.addEventListener("focus", YU, false), function() {
|
|
22936
|
+
window.removeEventListener("focus", YU, false);
|
|
22935
22937
|
};
|
|
22936
22938
|
}, [
|
|
22937
|
-
|
|
22938
|
-
|
|
22939
|
+
UU,
|
|
22940
|
+
qU,
|
|
22939
22941
|
G,
|
|
22940
|
-
|
|
22942
|
+
JU
|
|
22941
22943
|
]);
|
|
22942
|
-
var
|
|
22943
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22944
|
+
var XU = (0, import_react.useRef)([]), ZU = (0, import_react.useRef)([]), QU = function(e2) {
|
|
22945
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), XU.current = []);
|
|
22944
22946
|
};
|
|
22945
22947
|
(0, import_react.useEffect)(function() {
|
|
22946
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22947
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22948
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", QU, false)), function() {
|
|
22949
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", QU));
|
|
22948
22950
|
};
|
|
22949
22951
|
}, [
|
|
22950
22952
|
q,
|
|
22951
22953
|
O
|
|
22952
22954
|
]), (0, import_react.useEffect)(function() {
|
|
22953
22955
|
var e2 = function(e3) {
|
|
22954
|
-
|
|
22956
|
+
ZU.current = [].concat(_toConsumableArray(ZU.current), [
|
|
22955
22957
|
e3.target
|
|
22956
|
-
]), isEvtWithFiles(e3) &&
|
|
22958
|
+
]), isEvtWithFiles(e3) && GU({
|
|
22957
22959
|
isDragGlobal: true,
|
|
22958
22960
|
type: "setDragGlobal"
|
|
22959
22961
|
});
|
|
22960
22962
|
}, r2 = function(e3) {
|
|
22961
|
-
|
|
22963
|
+
ZU.current = ZU.current.filter(function(r3) {
|
|
22962
22964
|
return r3 !== e3.target && r3 !== null;
|
|
22963
|
-
}), !(
|
|
22965
|
+
}), !(ZU.current.length > 0) && GU({
|
|
22964
22966
|
isDragGlobal: false,
|
|
22965
22967
|
type: "setDragGlobal"
|
|
22966
22968
|
});
|
|
22967
22969
|
}, c2 = function() {
|
|
22968
|
-
|
|
22970
|
+
ZU.current = [], GU({
|
|
22969
22971
|
isDragGlobal: false,
|
|
22970
22972
|
type: "setDragGlobal"
|
|
22971
22973
|
});
|
|
22972
22974
|
}, l2 = function() {
|
|
22973
|
-
|
|
22975
|
+
ZU.current = [], GU({
|
|
22974
22976
|
isDragGlobal: false,
|
|
22975
22977
|
type: "setDragGlobal"
|
|
22976
22978
|
});
|
|
@@ -22988,12 +22990,12 @@ ${c}
|
|
|
22988
22990
|
E,
|
|
22989
22991
|
l
|
|
22990
22992
|
]);
|
|
22991
|
-
var
|
|
22993
|
+
var $U = (0, import_react.useCallback)(function(e2) {
|
|
22992
22994
|
R ? R(e2) : console.error(e2);
|
|
22993
22995
|
}, [
|
|
22994
22996
|
R
|
|
22995
|
-
]),
|
|
22996
|
-
e2.preventDefault(), e2.persist(),
|
|
22997
|
+
]), eW = (0, import_react.useCallback)(function(e2) {
|
|
22998
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [].concat(_toConsumableArray(XU.current), [
|
|
22997
22999
|
e2.target
|
|
22998
23000
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22999
23001
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -23006,7 +23008,7 @@ ${c}
|
|
|
23006
23008
|
maxFiles: m,
|
|
23007
23009
|
validator: z
|
|
23008
23010
|
});
|
|
23009
|
-
|
|
23011
|
+
GU({
|
|
23010
23012
|
isDragAccept: l2,
|
|
23011
23013
|
isDragReject: c2 > 0 && !l2,
|
|
23012
23014
|
isDragActive: true,
|
|
@@ -23014,12 +23016,12 @@ ${c}
|
|
|
23014
23016
|
}), h && h(e2);
|
|
23015
23017
|
}
|
|
23016
23018
|
}).catch(function(e3) {
|
|
23017
|
-
return
|
|
23019
|
+
return $U(e3);
|
|
23018
23020
|
});
|
|
23019
23021
|
}, [
|
|
23020
23022
|
u,
|
|
23021
23023
|
h,
|
|
23022
|
-
|
|
23024
|
+
$U,
|
|
23023
23025
|
L,
|
|
23024
23026
|
B,
|
|
23025
23027
|
f,
|
|
@@ -23027,8 +23029,8 @@ ${c}
|
|
|
23027
23029
|
p,
|
|
23028
23030
|
m,
|
|
23029
23031
|
z
|
|
23030
|
-
]),
|
|
23031
|
-
e2.preventDefault(), e2.persist(),
|
|
23032
|
+
]), tW = (0, import_react.useCallback)(function(e2) {
|
|
23033
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
23032
23034
|
var r2 = isEvtWithFiles(e2);
|
|
23033
23035
|
if (r2 && e2.dataTransfer) try {
|
|
23034
23036
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -23038,12 +23040,12 @@ ${c}
|
|
|
23038
23040
|
}, [
|
|
23039
23041
|
_,
|
|
23040
23042
|
L
|
|
23041
|
-
]),
|
|
23042
|
-
e2.preventDefault(), e2.persist(),
|
|
23043
|
-
var r2 =
|
|
23043
|
+
]), nW = (0, import_react.useCallback)(function(e2) {
|
|
23044
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
23045
|
+
var r2 = XU.current.filter(function(e3) {
|
|
23044
23046
|
return q.current && q.current.contains(e3);
|
|
23045
23047
|
}), c2 = r2.indexOf(e2.target);
|
|
23046
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23048
|
+
c2 !== -1 && r2.splice(c2, 1), XU.current = r2, !(r2.length > 0) && (GU({
|
|
23047
23049
|
type: "setDraggedFiles",
|
|
23048
23050
|
isDragActive: false,
|
|
23049
23051
|
isDragAccept: false,
|
|
@@ -23053,7 +23055,7 @@ ${c}
|
|
|
23053
23055
|
q,
|
|
23054
23056
|
g,
|
|
23055
23057
|
L
|
|
23056
|
-
]),
|
|
23058
|
+
]), rW = (0, import_react.useCallback)(function(e2, r2) {
|
|
23057
23059
|
var c2 = [], l2 = [];
|
|
23058
23060
|
e2.forEach(function(e3) {
|
|
23059
23061
|
var r3 = _slicedToArray(fileAccepted(e3, B), 2), u2 = r3[0], p2 = r3[1], m2 = _slicedToArray(fileMatchSize(e3, f, d), 2), h2 = m2[0], g2 = m2[1], _2 = z ? z(e3) : null;
|
|
@@ -23077,14 +23079,14 @@ ${c}
|
|
|
23077
23079
|
TOO_MANY_FILES_REJECTION
|
|
23078
23080
|
]
|
|
23079
23081
|
});
|
|
23080
|
-
}), c2.splice(0)),
|
|
23082
|
+
}), c2.splice(0)), GU({
|
|
23081
23083
|
acceptedFiles: c2,
|
|
23082
23084
|
fileRejections: l2,
|
|
23083
23085
|
isDragReject: l2.length > 0,
|
|
23084
23086
|
type: "setFiles"
|
|
23085
23087
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
23086
23088
|
}, [
|
|
23087
|
-
|
|
23089
|
+
GU,
|
|
23088
23090
|
p,
|
|
23089
23091
|
B,
|
|
23090
23092
|
f,
|
|
@@ -23094,22 +23096,22 @@ ${c}
|
|
|
23094
23096
|
y,
|
|
23095
23097
|
b,
|
|
23096
23098
|
z
|
|
23097
|
-
]),
|
|
23098
|
-
e2.preventDefault(), e2.persist(),
|
|
23099
|
-
isPropagationStopped(e2) && !L ||
|
|
23099
|
+
]), iW = (0, import_react.useCallback)(function(e2) {
|
|
23100
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23101
|
+
isPropagationStopped(e2) && !L || rW(r2, e2);
|
|
23100
23102
|
}).catch(function(e3) {
|
|
23101
|
-
return
|
|
23102
|
-
}),
|
|
23103
|
+
return $U(e3);
|
|
23104
|
+
}), GU({
|
|
23103
23105
|
type: "reset"
|
|
23104
23106
|
});
|
|
23105
23107
|
}, [
|
|
23106
23108
|
u,
|
|
23107
|
-
|
|
23108
|
-
|
|
23109
|
+
rW,
|
|
23110
|
+
$U,
|
|
23109
23111
|
L
|
|
23110
|
-
]),
|
|
23111
|
-
if (
|
|
23112
|
-
|
|
23112
|
+
]), aW = (0, import_react.useCallback)(function() {
|
|
23113
|
+
if (JU.current) {
|
|
23114
|
+
GU({
|
|
23113
23115
|
type: "openDialog"
|
|
23114
23116
|
}), W();
|
|
23115
23117
|
var e2 = {
|
|
@@ -23119,66 +23121,66 @@ ${c}
|
|
|
23119
23121
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23120
23122
|
return u(e3);
|
|
23121
23123
|
}).then(function(e3) {
|
|
23122
|
-
|
|
23124
|
+
rW(e3, null), GU({
|
|
23123
23125
|
type: "closeDialog"
|
|
23124
23126
|
});
|
|
23125
23127
|
}).catch(function(e3) {
|
|
23126
|
-
isAbort(e3) ? (G(e3),
|
|
23128
|
+
isAbort(e3) ? (G(e3), GU({
|
|
23127
23129
|
type: "closeDialog"
|
|
23128
|
-
})) : isSecurityError(e3) ? (
|
|
23130
|
+
})) : isSecurityError(e3) ? (JU.current = false, UU.current ? (UU.current.value = null, UU.current.click()) : $U(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : $U(e3);
|
|
23129
23131
|
});
|
|
23130
23132
|
return;
|
|
23131
23133
|
}
|
|
23132
|
-
|
|
23134
|
+
UU.current && (GU({
|
|
23133
23135
|
type: "openDialog"
|
|
23134
|
-
}), W(),
|
|
23136
|
+
}), W(), UU.current.value = null, UU.current.click());
|
|
23135
23137
|
}, [
|
|
23136
|
-
|
|
23138
|
+
GU,
|
|
23137
23139
|
W,
|
|
23138
23140
|
G,
|
|
23139
23141
|
T,
|
|
23140
|
-
|
|
23141
|
-
|
|
23142
|
+
rW,
|
|
23143
|
+
$U,
|
|
23142
23144
|
H,
|
|
23143
23145
|
p
|
|
23144
|
-
]),
|
|
23145
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23146
|
+
]), oW = (0, import_react.useCallback)(function(e2) {
|
|
23147
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), aW());
|
|
23146
23148
|
}, [
|
|
23147
23149
|
q,
|
|
23148
|
-
|
|
23149
|
-
]),
|
|
23150
|
-
|
|
23150
|
+
aW
|
|
23151
|
+
]), sW = (0, import_react.useCallback)(function() {
|
|
23152
|
+
GU({
|
|
23151
23153
|
type: "focus"
|
|
23152
23154
|
});
|
|
23153
|
-
}, []),
|
|
23154
|
-
|
|
23155
|
+
}, []), cW = (0, import_react.useCallback)(function() {
|
|
23156
|
+
GU({
|
|
23155
23157
|
type: "blur"
|
|
23156
23158
|
});
|
|
23157
|
-
}, []),
|
|
23158
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23159
|
+
}, []), lW = (0, import_react.useCallback)(function() {
|
|
23160
|
+
j || (isIeOrEdge() ? setTimeout(aW, 0) : aW());
|
|
23159
23161
|
}, [
|
|
23160
23162
|
j,
|
|
23161
|
-
|
|
23162
|
-
]),
|
|
23163
|
+
aW
|
|
23164
|
+
]), uW = function(e2) {
|
|
23163
23165
|
return l ? null : e2;
|
|
23166
|
+
}, dW = function(e2) {
|
|
23167
|
+
return M ? null : uW(e2);
|
|
23164
23168
|
}, fW = function(e2) {
|
|
23165
|
-
return
|
|
23169
|
+
return I ? null : uW(e2);
|
|
23166
23170
|
}, pW = function(e2) {
|
|
23167
|
-
return I ? null : dW(e2);
|
|
23168
|
-
}, mW = function(e2) {
|
|
23169
23171
|
L && e2.stopPropagation();
|
|
23170
|
-
},
|
|
23172
|
+
}, mW = (0, import_react.useMemo)(function() {
|
|
23171
23173
|
return function() {
|
|
23172
23174
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, u2 = e2.role, d2 = e2.onKeyDown, f2 = e2.onFocus, p2 = e2.onBlur, m2 = e2.onClick, h2 = e2.onDragEnter, g2 = e2.onDragOver, _2 = e2.onDragLeave, v2 = e2.onDrop, y2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
23173
23175
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23174
|
-
onKeyDown:
|
|
23175
|
-
onFocus:
|
|
23176
|
-
onBlur:
|
|
23177
|
-
onClick:
|
|
23178
|
-
onDragEnter:
|
|
23179
|
-
onDragOver:
|
|
23180
|
-
onDragLeave:
|
|
23181
|
-
onDrop:
|
|
23176
|
+
onKeyDown: dW(composeEventHandlers(d2, oW)),
|
|
23177
|
+
onFocus: dW(composeEventHandlers(f2, sW)),
|
|
23178
|
+
onBlur: dW(composeEventHandlers(p2, cW)),
|
|
23179
|
+
onClick: uW(composeEventHandlers(m2, lW)),
|
|
23180
|
+
onDragEnter: fW(composeEventHandlers(h2, eW)),
|
|
23181
|
+
onDragOver: fW(composeEventHandlers(g2, tW)),
|
|
23182
|
+
onDragLeave: fW(composeEventHandlers(_2, nW)),
|
|
23183
|
+
onDrop: fW(composeEventHandlers(v2, iW)),
|
|
23182
23184
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23183
23185
|
}, c2, q), !l && !M ? {
|
|
23184
23186
|
tabIndex: 0
|
|
@@ -23186,20 +23188,20 @@ ${c}
|
|
|
23186
23188
|
};
|
|
23187
23189
|
}, [
|
|
23188
23190
|
q,
|
|
23191
|
+
oW,
|
|
23189
23192
|
sW,
|
|
23190
23193
|
cW,
|
|
23191
23194
|
lW,
|
|
23192
|
-
|
|
23195
|
+
eW,
|
|
23193
23196
|
tW,
|
|
23194
23197
|
nW,
|
|
23195
|
-
|
|
23196
|
-
aW,
|
|
23198
|
+
iW,
|
|
23197
23199
|
M,
|
|
23198
23200
|
I,
|
|
23199
23201
|
l
|
|
23200
|
-
]),
|
|
23202
|
+
]), hW = (0, import_react.useCallback)(function(e2) {
|
|
23201
23203
|
e2.stopPropagation();
|
|
23202
|
-
}, []),
|
|
23204
|
+
}, []), gW = (0, import_react.useMemo)(function() {
|
|
23203
23205
|
return function() {
|
|
23204
23206
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, l2 = e2.onChange, u2 = e2.onClick, d2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
23205
23207
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23218,25 +23220,25 @@ ${c}
|
|
|
23218
23220
|
width: "1px",
|
|
23219
23221
|
whiteSpace: "nowrap"
|
|
23220
23222
|
},
|
|
23221
|
-
onChange:
|
|
23222
|
-
onClick:
|
|
23223
|
+
onChange: uW(composeEventHandlers(l2, iW)),
|
|
23224
|
+
onClick: uW(composeEventHandlers(u2, hW)),
|
|
23223
23225
|
tabIndex: -1
|
|
23224
|
-
}, c2,
|
|
23226
|
+
}, c2, UU)), d2);
|
|
23225
23227
|
};
|
|
23226
23228
|
}, [
|
|
23227
|
-
|
|
23229
|
+
UU,
|
|
23228
23230
|
c,
|
|
23229
23231
|
p,
|
|
23230
|
-
|
|
23232
|
+
iW,
|
|
23231
23233
|
l
|
|
23232
23234
|
]);
|
|
23233
23235
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23234
|
-
isFocused:
|
|
23235
|
-
getRootProps:
|
|
23236
|
-
getInputProps:
|
|
23236
|
+
isFocused: KU && !l,
|
|
23237
|
+
getRootProps: mW,
|
|
23238
|
+
getInputProps: gW,
|
|
23237
23239
|
rootRef: q,
|
|
23238
|
-
inputRef:
|
|
23239
|
-
open:
|
|
23240
|
+
inputRef: UU,
|
|
23241
|
+
open: uW(aW)
|
|
23240
23242
|
});
|
|
23241
23243
|
}
|
|
23242
23244
|
function reducer$2(e, r) {
|
|
@@ -23468,47 +23470,47 @@ ${c}
|
|
|
23468
23470
|
html: I
|
|
23469
23471
|
})
|
|
23470
23472
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23471
|
-
let q = w && "text-primary",
|
|
23472
|
-
r[48] !== q || r[49] !==
|
|
23473
|
+
let q = w && "text-primary", UU = T && "text-destructive", WU;
|
|
23474
|
+
r[48] !== q || r[49] !== UU ? (WU = cn(q, UU), r[48] = q, r[49] = UU, r[50] = WU) : WU = r[50];
|
|
23473
23475
|
let Z;
|
|
23474
|
-
r[51] ===
|
|
23476
|
+
r[51] === WU ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23475
23477
|
strokeWidth: 1.4,
|
|
23476
|
-
className:
|
|
23477
|
-
}), r[51] =
|
|
23478
|
-
let
|
|
23479
|
-
r[53] !==
|
|
23480
|
-
let
|
|
23481
|
-
r[56] ===
|
|
23478
|
+
className: WU
|
|
23479
|
+
}), r[51] = WU, r[52] = Z);
|
|
23480
|
+
let GU = w && "text-primary", KU = T && "text-destructive", qU;
|
|
23481
|
+
r[53] !== GU || r[54] !== KU ? (qU = cn(GU, KU), r[53] = GU, r[54] = KU, r[55] = qU) : qU = r[55];
|
|
23482
|
+
let JU;
|
|
23483
|
+
r[56] === qU ? JU = r[57] : (JU = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23482
23484
|
strokeWidth: 1.4,
|
|
23483
|
-
className:
|
|
23484
|
-
}), r[56] =
|
|
23485
|
-
let
|
|
23486
|
-
r[58] !== Z || r[59] !==
|
|
23485
|
+
className: qU
|
|
23486
|
+
}), r[56] = qU, r[57] = JU);
|
|
23487
|
+
let YU;
|
|
23488
|
+
r[58] !== Z || r[59] !== JU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23487
23489
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23488
23490
|
children: [
|
|
23489
23491
|
Z,
|
|
23490
|
-
|
|
23492
|
+
JU
|
|
23491
23493
|
]
|
|
23492
|
-
}), r[58] = Z, r[59] =
|
|
23493
|
-
let
|
|
23494
|
-
r[61] !== G || r[62] !==
|
|
23494
|
+
}), r[58] = Z, r[59] = JU, r[60] = YU) : YU = r[60];
|
|
23495
|
+
let XU;
|
|
23496
|
+
r[61] !== G || r[62] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23495
23497
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23496
23498
|
children: [
|
|
23497
23499
|
G,
|
|
23498
|
-
|
|
23500
|
+
YU
|
|
23499
23501
|
]
|
|
23500
|
-
}), r[61] = G, r[62] =
|
|
23501
|
-
let
|
|
23502
|
-
r[64] !== W || r[65] !==
|
|
23502
|
+
}), r[61] = G, r[62] = YU, r[63] = XU) : XU = r[63];
|
|
23503
|
+
let ZU;
|
|
23504
|
+
r[64] !== W || r[65] !== XU || r[66] !== z || r[67] !== B ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23503
23505
|
className: z,
|
|
23504
23506
|
...B,
|
|
23505
23507
|
children: [
|
|
23506
23508
|
W,
|
|
23507
|
-
|
|
23509
|
+
XU
|
|
23508
23510
|
]
|
|
23509
|
-
}), r[64] = W, r[65] =
|
|
23510
|
-
let
|
|
23511
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23511
|
+
}), r[64] = W, r[65] = XU, r[66] = z, r[67] = B, r[68] = ZU) : ZU = r[68];
|
|
23512
|
+
let QU;
|
|
23513
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (QU = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23512
23514
|
className: "flex flex-row gap-1",
|
|
23513
23515
|
children: [
|
|
23514
23516
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23544,17 +23546,17 @@ ${c}
|
|
|
23544
23546
|
})
|
|
23545
23547
|
})
|
|
23546
23548
|
]
|
|
23547
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23548
|
-
let
|
|
23549
|
-
return r[75] !==
|
|
23549
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = QU) : QU = r[74];
|
|
23550
|
+
let $U;
|
|
23551
|
+
return r[75] !== ZU || r[76] !== QU ? ($U = (0, import_jsx_runtime.jsx)("section", {
|
|
23550
23552
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23551
23553
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23552
23554
|
children: [
|
|
23553
|
-
|
|
23554
|
-
|
|
23555
|
+
ZU,
|
|
23556
|
+
QU
|
|
23555
23557
|
]
|
|
23556
23558
|
})
|
|
23557
|
-
}), r[75] =
|
|
23559
|
+
}), r[75] = ZU, r[76] = QU, r[77] = $U) : $U = r[77], $U;
|
|
23558
23560
|
};
|
|
23559
23561
|
function _temp$11(e) {
|
|
23560
23562
|
Logger.error(e), toast({
|
|
@@ -23650,75 +23652,75 @@ ${c}
|
|
|
23650
23652
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23651
23653
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23652
23654
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23653
|
-
let
|
|
23654
|
-
r[13] === f ?
|
|
23655
|
+
let UU;
|
|
23656
|
+
r[13] === f ? UU = r[14] : (UU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23655
23657
|
className: "text-center",
|
|
23656
23658
|
children: renderHTML({
|
|
23657
23659
|
html: f
|
|
23658
23660
|
})
|
|
23659
|
-
}), r[13] = f, r[14] =
|
|
23660
|
-
let
|
|
23661
|
-
r[15] === L ?
|
|
23661
|
+
}), r[13] = f, r[14] = UU);
|
|
23662
|
+
let WU;
|
|
23663
|
+
r[15] === L ? WU = r[16] : (WU = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23662
23664
|
kind: "danger",
|
|
23663
23665
|
className: "rounded",
|
|
23664
23666
|
children: L ?? "Invalid input"
|
|
23665
|
-
}), r[15] = L, r[16] =
|
|
23667
|
+
}), r[15] = L, r[16] = WU);
|
|
23666
23668
|
let Z;
|
|
23667
23669
|
r[17] === c ? Z = r[18] : (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
23668
23670
|
children: c
|
|
23669
23671
|
}), r[17] = c, r[18] = Z);
|
|
23670
|
-
let
|
|
23671
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23672
|
+
let GU;
|
|
23673
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (GU = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23672
23674
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23673
23675
|
variant: "text",
|
|
23674
23676
|
onClick: (e2) => {
|
|
23675
23677
|
e2.preventDefault(), B();
|
|
23676
23678
|
},
|
|
23677
23679
|
children: S
|
|
23678
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23679
|
-
let
|
|
23680
|
-
r[23] === h ?
|
|
23680
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = GU) : GU = r[22];
|
|
23681
|
+
let KU = v || h, qU;
|
|
23682
|
+
r[23] === h ? qU = r[24] : (qU = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23681
23683
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23682
|
-
}), r[23] = h, r[24] =
|
|
23683
|
-
let
|
|
23684
|
-
r[25] !== g || r[26] !==
|
|
23684
|
+
}), r[23] = h, r[24] = qU);
|
|
23685
|
+
let JU;
|
|
23686
|
+
r[25] !== g || r[26] !== KU || r[27] !== qU || r[28] !== I ? (JU = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23685
23687
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23686
23688
|
variant: I,
|
|
23687
|
-
disabled:
|
|
23689
|
+
disabled: KU,
|
|
23688
23690
|
type: "submit",
|
|
23689
23691
|
children: [
|
|
23690
|
-
|
|
23692
|
+
qU,
|
|
23691
23693
|
g
|
|
23692
23694
|
]
|
|
23693
|
-
}), r[25] = g, r[26] =
|
|
23695
|
+
}), r[25] = g, r[26] = KU, r[27] = qU, r[28] = I, r[29] = JU) : JU = r[29];
|
|
23696
|
+
let YU;
|
|
23697
|
+
r[30] !== _ || r[31] !== JU ? (YU = withTooltip(JU, _), r[30] = _, r[31] = JU, r[32] = YU) : YU = r[32];
|
|
23694
23698
|
let XU;
|
|
23695
|
-
r[
|
|
23696
|
-
let ZU;
|
|
23697
|
-
r[33] !== XU || r[34] !== KU ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23699
|
+
r[33] !== YU || r[34] !== GU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23698
23700
|
className: "flex justify-end gap-2 font-code",
|
|
23699
23701
|
children: [
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
+
GU,
|
|
23703
|
+
YU
|
|
23702
23704
|
]
|
|
23703
|
-
}), r[33] =
|
|
23704
|
-
let
|
|
23705
|
-
r[36] !==
|
|
23705
|
+
}), r[33] = YU, r[34] = GU, r[35] = XU) : XU = r[35];
|
|
23706
|
+
let ZU;
|
|
23707
|
+
r[36] !== XU || r[37] !== G || r[38] !== q || r[39] !== UU || r[40] !== WU || r[41] !== Z ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23706
23708
|
className: G,
|
|
23707
23709
|
onKeyDown: q,
|
|
23708
23710
|
children: [
|
|
23711
|
+
UU,
|
|
23709
23712
|
WU,
|
|
23710
|
-
GU,
|
|
23711
23713
|
Z,
|
|
23712
|
-
|
|
23714
|
+
XU
|
|
23713
23715
|
]
|
|
23714
|
-
}), r[36] =
|
|
23715
|
-
let
|
|
23716
|
-
return r[43] !==
|
|
23716
|
+
}), r[36] = XU, r[37] = G, r[38] = q, r[39] = UU, r[40] = WU, r[41] = Z, r[42] = ZU) : ZU = r[42];
|
|
23717
|
+
let QU;
|
|
23718
|
+
return r[43] !== ZU || r[44] !== H ? (QU = (0, import_jsx_runtime.jsx)("form", {
|
|
23717
23719
|
className: "contents",
|
|
23718
23720
|
ref: j,
|
|
23719
23721
|
onSubmit: H,
|
|
23720
|
-
children:
|
|
23721
|
-
}), r[43] =
|
|
23722
|
+
children: ZU
|
|
23723
|
+
}), r[43] = ZU, r[44] = H, r[45] = QU) : QU = r[45], QU;
|
|
23722
23724
|
};
|
|
23723
23725
|
var Form = (e) => {
|
|
23724
23726
|
let r = (0, import_compiler_runtime$42.c)(24), c, l, u, d, f, p;
|
|
@@ -25478,8 +25480,8 @@ ${c}
|
|
|
25478
25480
|
points: extractSunburstPoints(e2.points)
|
|
25479
25481
|
}));
|
|
25480
25482
|
}, r[29] = u, r[30] = G);
|
|
25481
|
-
let q = useEvent_default(G),
|
|
25482
|
-
r[31] === u ?
|
|
25483
|
+
let q = useEvent_default(G), UU;
|
|
25484
|
+
r[31] === u ? UU = r[32] : (UU = (e2) => {
|
|
25483
25485
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25484
25486
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25485
25487
|
u((e3) => ({
|
|
@@ -25490,8 +25492,8 @@ ${c}
|
|
|
25490
25492
|
points: r2,
|
|
25491
25493
|
indices: c2
|
|
25492
25494
|
}));
|
|
25493
|
-
}, r[31] = u, r[32] =
|
|
25494
|
-
let
|
|
25495
|
+
}, r[31] = u, r[32] = UU);
|
|
25496
|
+
let WU = useEvent_default(UU), Z;
|
|
25495
25497
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25496
25498
|
e2 && u((r2) => ({
|
|
25497
25499
|
...r2,
|
|
@@ -25502,8 +25504,8 @@ ${c}
|
|
|
25502
25504
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25503
25505
|
}));
|
|
25504
25506
|
}, r[33] = u, r[34] = Z);
|
|
25505
|
-
let
|
|
25506
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
25507
|
+
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] !== q || r[41] !== WU || r[42] !== GU || r[43] !== KU || r[44] !== qU || r[45] !== R ? (JU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25507
25509
|
...m,
|
|
25508
25510
|
layout: h,
|
|
25509
25511
|
onRelayout: R,
|
|
@@ -25511,13 +25513,13 @@ ${c}
|
|
|
25511
25513
|
onTreemapClick: W,
|
|
25512
25514
|
onSunburstClick: q,
|
|
25513
25515
|
config: L,
|
|
25514
|
-
onClick:
|
|
25515
|
-
onSelected:
|
|
25516
|
+
onClick: WU,
|
|
25517
|
+
onSelected: GU,
|
|
25516
25518
|
className: "w-full",
|
|
25517
25519
|
useResizeHandler: true,
|
|
25518
|
-
frames:
|
|
25519
|
-
onError:
|
|
25520
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
25520
|
+
frames: KU,
|
|
25521
|
+
onError: qU
|
|
25522
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = WU, r[42] = GU, r[43] = KU, r[44] = qU, r[45] = R, r[46] = JU) : JU = r[46], JU;
|
|
25521
25523
|
});
|
|
25522
25524
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25523
25525
|
function _temp$8(e) {
|
|
@@ -25649,8 +25651,8 @@ ${c}
|
|
|
25649
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];
|
|
25650
25652
|
let q;
|
|
25651
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];
|
|
25652
|
-
let
|
|
25653
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25654
|
+
let UU;
|
|
25655
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (UU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25654
25656
|
ref: E,
|
|
25655
25657
|
"data-testid": "track",
|
|
25656
25658
|
className: G,
|
|
@@ -25661,9 +25663,9 @@ ${c}
|
|
|
25661
25663
|
onPointerMove: z,
|
|
25662
25664
|
onPointerUp: H
|
|
25663
25665
|
})
|
|
25664
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25665
|
-
let
|
|
25666
|
-
c[23] !== m.setFalse || c[24] !== m.setTrue ? (
|
|
25666
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = UU) : UU = c[22];
|
|
25667
|
+
let WU;
|
|
25668
|
+
c[23] !== m.setFalse || c[24] !== m.setTrue ? (WU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25667
25669
|
asChild: true,
|
|
25668
25670
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
25669
25671
|
"data-testid": "thumb",
|
|
@@ -25673,30 +25675,30 @@ ${c}
|
|
|
25673
25675
|
onMouseEnter: m.setTrue,
|
|
25674
25676
|
onMouseLeave: m.setFalse
|
|
25675
25677
|
})
|
|
25676
|
-
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] =
|
|
25678
|
+
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = WU) : WU = c[25];
|
|
25677
25679
|
let Z;
|
|
25678
25680
|
c[26] !== h || c[27] !== u.value || c[28] !== d ? (Z = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25679
25681
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25680
25682
|
locale: h
|
|
25681
25683
|
})
|
|
25682
25684
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25683
|
-
let
|
|
25684
|
-
c[30] === Z ?
|
|
25685
|
+
let GU;
|
|
25686
|
+
c[30] === Z ? GU = c[31] : (GU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25685
25687
|
children: Z
|
|
25686
|
-
}), c[30] = Z, c[31] =
|
|
25687
|
-
let
|
|
25688
|
-
c[32] !== f || c[33] !==
|
|
25688
|
+
}), c[30] = Z, c[31] = GU);
|
|
25689
|
+
let KU;
|
|
25690
|
+
c[32] !== f || c[33] !== WU || c[34] !== GU ? (KU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25689
25691
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25690
25692
|
delayDuration: 0,
|
|
25691
25693
|
open: f,
|
|
25692
25694
|
children: [
|
|
25693
|
-
|
|
25694
|
-
|
|
25695
|
+
WU,
|
|
25696
|
+
GU
|
|
25695
25697
|
]
|
|
25696
25698
|
})
|
|
25697
|
-
}), c[32] = f, c[33] =
|
|
25698
|
-
let
|
|
25699
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25699
|
+
}), c[32] = f, c[33] = WU, c[34] = GU, c[35] = KU) : KU = c[35];
|
|
25700
|
+
let qU;
|
|
25701
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (qU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25700
25702
|
asChild: true,
|
|
25701
25703
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
25702
25704
|
"data-testid": "thumb",
|
|
@@ -25706,39 +25708,39 @@ ${c}
|
|
|
25706
25708
|
onMouseEnter: m.setTrue,
|
|
25707
25709
|
onMouseLeave: m.setFalse
|
|
25708
25710
|
})
|
|
25709
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25710
|
-
let
|
|
25711
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25711
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = qU) : qU = c[38];
|
|
25712
|
+
let JU;
|
|
25713
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (JU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25712
25714
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25713
25715
|
locale: h
|
|
25714
25716
|
})
|
|
25715
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25717
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = JU) : JU = c[42];
|
|
25718
|
+
let YU;
|
|
25719
|
+
c[43] === JU ? YU = c[44] : (YU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25720
|
+
children: JU
|
|
25721
|
+
}), c[43] = JU, c[44] = YU);
|
|
25716
25722
|
let XU;
|
|
25717
|
-
c[
|
|
25718
|
-
children: YU
|
|
25719
|
-
}), c[43] = YU, c[44] = XU);
|
|
25720
|
-
let ZU;
|
|
25721
|
-
c[45] !== f || c[46] !== JU || c[47] !== XU ? (ZU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25723
|
+
c[45] !== f || c[46] !== qU || c[47] !== YU ? (XU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25722
25724
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25723
25725
|
delayDuration: 0,
|
|
25724
25726
|
open: f,
|
|
25725
25727
|
children: [
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
|
+
qU,
|
|
25729
|
+
YU
|
|
25728
25730
|
]
|
|
25729
25731
|
})
|
|
25730
|
-
}), c[45] = f, c[46] =
|
|
25731
|
-
let
|
|
25732
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25732
|
+
}), c[45] = f, c[46] = qU, c[47] = YU, c[48] = XU) : XU = c[48];
|
|
25733
|
+
let ZU;
|
|
25734
|
+
return c[49] !== M || c[50] !== u || c[51] !== UU || c[52] !== KU || c[53] !== XU || c[54] !== W ? (ZU = (0, import_jsx_runtime.jsxs)(Root$1, {
|
|
25733
25735
|
ref: M,
|
|
25734
25736
|
className: W,
|
|
25735
25737
|
...u,
|
|
25736
25738
|
children: [
|
|
25737
|
-
|
|
25738
|
-
|
|
25739
|
-
|
|
25739
|
+
UU,
|
|
25740
|
+
KU,
|
|
25741
|
+
XU
|
|
25740
25742
|
]
|
|
25741
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25743
|
+
}), c[49] = M, c[50] = u, c[51] = UU, c[52] = KU, c[53] = XU, c[54] = W, c[55] = ZU) : ZU = c[55], ZU;
|
|
25742
25744
|
});
|
|
25743
25745
|
RangeSlider.displayName = Root$1.displayName;
|
|
25744
25746
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25789,14 +25791,14 @@ ${c}
|
|
|
25789
25791
|
}, q = (e2) => {
|
|
25790
25792
|
h && l(e2);
|
|
25791
25793
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25792
|
-
let
|
|
25793
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25794
|
+
let UU, WU;
|
|
25795
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (UU = () => {
|
|
25794
25796
|
h && !dequal(T, u) && l(T);
|
|
25795
|
-
},
|
|
25797
|
+
}, WU = () => {
|
|
25796
25798
|
h && !dequal(T, u) && l(T);
|
|
25797
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25799
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = UU, r[19] = WU) : (UU = r[18], WU = r[19]);
|
|
25798
25800
|
let Z;
|
|
25799
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
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] !== G || r[29] !== q || r[30] !== UU || r[31] !== WU || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25800
25802
|
id: S,
|
|
25801
25803
|
className: W,
|
|
25802
25804
|
value: T,
|
|
@@ -25807,36 +25809,36 @@ ${c}
|
|
|
25807
25809
|
disabled: y,
|
|
25808
25810
|
onValueChange: G,
|
|
25809
25811
|
onValueCommit: q,
|
|
25810
|
-
onPointerUp:
|
|
25811
|
-
onMouseUp:
|
|
25812
|
+
onPointerUp: UU,
|
|
25813
|
+
onMouseUp: WU,
|
|
25812
25814
|
valueMap: b
|
|
25813
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25814
|
-
let
|
|
25815
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== 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] = G, r[29] = q, r[30] = UU, r[31] = WU, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25816
|
+
let GU;
|
|
25817
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (GU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25816
25818
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25817
25819
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25818
25820
|
locale: w
|
|
25819
25821
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25820
25822
|
locale: w
|
|
25821
25823
|
})}`
|
|
25822
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25823
|
-
let
|
|
25824
|
-
r[39] !== Z || r[40] !==
|
|
25824
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = GU) : GU = r[38];
|
|
25825
|
+
let KU;
|
|
25826
|
+
r[39] !== Z || r[40] !== GU || r[41] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25825
25827
|
className: B,
|
|
25826
25828
|
children: [
|
|
25827
25829
|
Z,
|
|
25828
|
-
|
|
25830
|
+
GU
|
|
25829
25831
|
]
|
|
25830
|
-
}), r[39] = Z, r[40] =
|
|
25831
|
-
let
|
|
25832
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25832
|
+
}), r[39] = Z, r[40] = GU, r[41] = B, r[42] = KU) : KU = r[42];
|
|
25833
|
+
let qU;
|
|
25834
|
+
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !== KU || r[47] !== M || r[48] !== L ? (qU = (0, import_jsx_runtime.jsx)(Labeled, {
|
|
25833
25835
|
label: c,
|
|
25834
25836
|
id: S,
|
|
25835
25837
|
align: M,
|
|
25836
25838
|
className: L,
|
|
25837
25839
|
fullWidth: v,
|
|
25838
|
-
children:
|
|
25839
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25840
|
+
children: KU
|
|
25841
|
+
}), r[43] = v, r[44] = S, r[45] = c, r[46] = KU, r[47] = M, r[48] = L, r[49] = qU) : qU = r[49], qU;
|
|
25840
25842
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25841
25843
|
r.exports = u;
|
|
25842
25844
|
var c = {
|
|
@@ -26064,16 +26066,16 @@ ${c}
|
|
|
26064
26066
|
r[9] === E ? G = r[10] : (G = [
|
|
26065
26067
|
E
|
|
26066
26068
|
], r[9] = E, r[10] = G);
|
|
26067
|
-
let q,
|
|
26069
|
+
let q, UU;
|
|
26068
26070
|
r[11] !== h || r[12] !== l ? (q = (e2) => {
|
|
26069
26071
|
let [r2] = e2;
|
|
26070
26072
|
O(r2), h || l(r2);
|
|
26071
|
-
},
|
|
26073
|
+
}, UU = (e2) => {
|
|
26072
26074
|
let [r2] = e2;
|
|
26073
26075
|
h && l(r2);
|
|
26074
|
-
}, r[11] = h, r[12] = l, r[13] = q, r[14] =
|
|
26075
|
-
let
|
|
26076
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !==
|
|
26076
|
+
}, r[11] = h, r[12] = l, r[13] = q, r[14] = UU) : (q = r[13], UU = r[14]);
|
|
26077
|
+
let WU;
|
|
26078
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !== UU || r[24] !== W || r[25] !== y ? (WU = (0, import_jsx_runtime.jsx)(Slider, {
|
|
26077
26079
|
id: w,
|
|
26078
26080
|
className: W,
|
|
26079
26081
|
value: G,
|
|
@@ -26082,10 +26084,10 @@ ${c}
|
|
|
26082
26084
|
step: m,
|
|
26083
26085
|
orientation: g,
|
|
26084
26086
|
onValueChange: q,
|
|
26085
|
-
onValueCommit:
|
|
26087
|
+
onValueCommit: UU,
|
|
26086
26088
|
valueMap: y,
|
|
26087
26089
|
disabled: S
|
|
26088
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] =
|
|
26090
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] = UU, r[24] = W, r[25] = y, r[26] = WU) : WU = r[26];
|
|
26089
26091
|
let Z;
|
|
26090
26092
|
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (Z = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
26091
26093
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -26093,8 +26095,8 @@ ${c}
|
|
|
26093
26095
|
locale: T
|
|
26094
26096
|
})
|
|
26095
26097
|
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = Z) : Z = r[31];
|
|
26096
|
-
let
|
|
26097
|
-
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 ? (
|
|
26098
|
+
let GU;
|
|
26099
|
+
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 ? (GU = b && (0, import_jsx_runtime.jsx)(NumberField, {
|
|
26098
26100
|
value: y(E),
|
|
26099
26101
|
onChange: (e2) => {
|
|
26100
26102
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -26105,25 +26107,25 @@ ${c}
|
|
|
26105
26107
|
className: "w-24",
|
|
26106
26108
|
"aria-label": `${c || "Slider"} value input`,
|
|
26107
26109
|
isDisabled: S
|
|
26108
|
-
}), 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] =
|
|
26109
|
-
let
|
|
26110
|
-
r[42] !==
|
|
26110
|
+
}), 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
|
+
let KU;
|
|
26112
|
+
r[42] !== WU || r[43] !== Z || r[44] !== GU || r[45] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
26111
26113
|
className: B,
|
|
26112
26114
|
children: [
|
|
26113
|
-
|
|
26115
|
+
WU,
|
|
26114
26116
|
Z,
|
|
26115
|
-
|
|
26117
|
+
GU
|
|
26116
26118
|
]
|
|
26117
|
-
}), r[42] =
|
|
26118
|
-
let
|
|
26119
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
26119
|
+
}), r[42] = WU, r[43] = Z, r[44] = GU, r[45] = B, r[46] = KU) : KU = r[46];
|
|
26120
|
+
let qU;
|
|
26121
|
+
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, {
|
|
26120
26122
|
label: c,
|
|
26121
26123
|
id: w,
|
|
26122
26124
|
align: I,
|
|
26123
26125
|
fullWidth: v,
|
|
26124
26126
|
className: R,
|
|
26125
|
-
children:
|
|
26126
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
26127
|
+
children: KU
|
|
26128
|
+
}), r[47] = v, r[48] = w, r[49] = c, r[50] = KU, r[51] = I, r[52] = R, r[53] = qU) : qU = r[53], qU;
|
|
26127
26129
|
}, import_compiler_runtime$28 = require_compiler_runtime(), switchVariants = cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", {
|
|
26128
26130
|
variants: {
|
|
26129
26131
|
size: {
|
|
@@ -29139,7 +29141,7 @@ ${c}
|
|
|
29139
29141
|
areRegExpsEqual: H,
|
|
29140
29142
|
areSetsEqual: W,
|
|
29141
29143
|
createIsNestedEqual: r2
|
|
29142
|
-
}),
|
|
29144
|
+
}), UU = Object.freeze({
|
|
29143
29145
|
areArraysEqual: O,
|
|
29144
29146
|
areDatesEqual: j,
|
|
29145
29147
|
areMapsEqual: I,
|
|
@@ -29147,40 +29149,40 @@ ${c}
|
|
|
29147
29149
|
areRegExpsEqual: H,
|
|
29148
29150
|
areSetsEqual: G,
|
|
29149
29151
|
createIsNestedEqual: r2
|
|
29150
|
-
}),
|
|
29152
|
+
}), WU = T(q);
|
|
29151
29153
|
function Z(e3, r3) {
|
|
29152
|
-
return
|
|
29154
|
+
return WU(e3, r3, void 0);
|
|
29153
29155
|
}
|
|
29154
|
-
var
|
|
29156
|
+
var GU = T(l(q, {
|
|
29155
29157
|
createIsNestedEqual: function() {
|
|
29156
29158
|
return f;
|
|
29157
29159
|
}
|
|
29158
29160
|
}));
|
|
29159
|
-
function
|
|
29160
|
-
return
|
|
29161
|
+
function KU(e3, r3) {
|
|
29162
|
+
return GU(e3, r3, void 0);
|
|
29161
29163
|
}
|
|
29162
|
-
var
|
|
29163
|
-
function
|
|
29164
|
-
return
|
|
29164
|
+
var qU = T(UU);
|
|
29165
|
+
function JU(e3, r3) {
|
|
29166
|
+
return qU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29165
29167
|
}
|
|
29166
|
-
var
|
|
29168
|
+
var YU = T(l(UU, {
|
|
29167
29169
|
createIsNestedEqual: function() {
|
|
29168
29170
|
return f;
|
|
29169
29171
|
}
|
|
29170
29172
|
}));
|
|
29171
|
-
function
|
|
29172
|
-
return
|
|
29173
|
+
function XU(e3, r3) {
|
|
29174
|
+
return YU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29173
29175
|
}
|
|
29174
|
-
function
|
|
29176
|
+
function ZU(e3) {
|
|
29175
29177
|
return T(l(q, e3(q)));
|
|
29176
29178
|
}
|
|
29177
|
-
function
|
|
29178
|
-
var r3 = T(l(
|
|
29179
|
+
function QU(e3) {
|
|
29180
|
+
var r3 = T(l(UU, e3(UU)));
|
|
29179
29181
|
return (function(e4, c2, l2) {
|
|
29180
29182
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29181
29183
|
});
|
|
29182
29184
|
}
|
|
29183
|
-
e2.circularDeepEqual =
|
|
29185
|
+
e2.circularDeepEqual = JU, e2.circularShallowEqual = XU, e2.createCustomCircularEqual = QU, e2.createCustomEqual = ZU, e2.deepEqual = Z, e2.sameValueZeroEqual = f, e2.shallowEqual = KU, Object.defineProperty(e2, "__esModule", {
|
|
29184
29186
|
value: true
|
|
29185
29187
|
});
|
|
29186
29188
|
}));
|
|
@@ -29206,7 +29208,7 @@ ${c}
|
|
|
29206
29208
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29207
29209
|
Object.defineProperty(e, "__esModule", {
|
|
29208
29210
|
value: true
|
|
29209
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
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 = G, e.resizeItemInDirection = XU, e.setTopLeft = QU, e.setTransform = ZU, e.sortLayoutItems = $U, e.sortLayoutItemsByColRow = tW, e.sortLayoutItemsByRowCol = eW, e.synchronizeLayoutWithChildren = nW, e.validateLayout = rW, e.withLayoutItem = v;
|
|
29210
29212
|
var r = require_fast_equals(), c = l(require_react());
|
|
29211
29213
|
function l(e2) {
|
|
29212
29214
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29311,7 +29313,7 @@ ${c}
|
|
|
29311
29313
|
return !(e2.i === r2.i || e2.x + e2.w <= r2.x || e2.x >= r2.x + r2.w || e2.y + e2.h <= r2.y || e2.y >= r2.y + r2.h);
|
|
29312
29314
|
}
|
|
29313
29315
|
function T(e2, r2, c2, l2) {
|
|
29314
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29316
|
+
let u2 = B(e2), d2 = h(u2), f2 = $U(e2, r2), p2 = Array(e2.length);
|
|
29315
29317
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29316
29318
|
let h3 = y(f2[m2]);
|
|
29317
29319
|
h3.static || (h3 = M(u2, h3, r2, c2, f2, l2, d2), d2 = Math.max(d2, h3.y + h3.h), u2.push(h3)), p2[e2.indexOf(f2[m2])] = h3, h3.moved = false;
|
|
@@ -29369,7 +29371,7 @@ ${c}
|
|
|
29369
29371
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29370
29372
|
let h2 = r2.x, _2 = r2.y;
|
|
29371
29373
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29372
|
-
let v2 =
|
|
29374
|
+
let v2 = $U(e2, f2);
|
|
29373
29375
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29374
29376
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29375
29377
|
if (b2 && m2) return g(e2);
|
|
@@ -29403,61 +29405,61 @@ ${c}
|
|
|
29403
29405
|
function G(e2) {
|
|
29404
29406
|
return e2 * 100 + "%";
|
|
29405
29407
|
}
|
|
29406
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29408
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, UU = (e2, r2, c2) => e2 < 0 ? r2 : c2, WU = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), GU = (e2, r2, c2) => {
|
|
29407
29409
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29408
29410
|
return {
|
|
29409
29411
|
left: l2,
|
|
29410
29412
|
width: d2,
|
|
29411
|
-
height:
|
|
29413
|
+
height: UU(f2, e2.height, u2),
|
|
29412
29414
|
top: Z(f2)
|
|
29413
29415
|
};
|
|
29414
|
-
},
|
|
29416
|
+
}, KU = (e2, r2, c2) => {
|
|
29415
29417
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29416
29418
|
return {
|
|
29417
29419
|
top: l2,
|
|
29418
29420
|
height: d2,
|
|
29419
29421
|
width: q(e2.left, e2.width, f2, c2),
|
|
29420
|
-
left:
|
|
29422
|
+
left: WU(u2)
|
|
29421
29423
|
};
|
|
29422
|
-
},
|
|
29424
|
+
}, qU = (e2, r2, c2) => {
|
|
29423
29425
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29424
29426
|
return {
|
|
29425
29427
|
height: u2,
|
|
29426
29428
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29427
29429
|
top: Z(l2),
|
|
29428
|
-
left:
|
|
29430
|
+
left: WU(f2)
|
|
29429
29431
|
};
|
|
29430
|
-
},
|
|
29432
|
+
}, JU = (e2, r2, c2) => {
|
|
29431
29433
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29432
29434
|
return {
|
|
29433
29435
|
width: f2,
|
|
29434
29436
|
left: u2,
|
|
29435
|
-
height:
|
|
29437
|
+
height: UU(l2, e2.height, d2),
|
|
29436
29438
|
top: Z(l2)
|
|
29437
29439
|
};
|
|
29438
|
-
},
|
|
29439
|
-
n:
|
|
29440
|
+
}, YU = {
|
|
29441
|
+
n: GU,
|
|
29440
29442
|
ne: function() {
|
|
29441
|
-
return
|
|
29443
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29442
29444
|
},
|
|
29443
|
-
e:
|
|
29445
|
+
e: KU,
|
|
29444
29446
|
se: function() {
|
|
29445
|
-
return
|
|
29447
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29446
29448
|
},
|
|
29447
|
-
s:
|
|
29449
|
+
s: JU,
|
|
29448
29450
|
sw: function() {
|
|
29449
|
-
return
|
|
29451
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29450
29452
|
},
|
|
29451
|
-
w:
|
|
29453
|
+
w: qU,
|
|
29452
29454
|
nw: function() {
|
|
29453
|
-
return
|
|
29455
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29454
29456
|
}
|
|
29455
29457
|
};
|
|
29456
|
-
function
|
|
29457
|
-
let u2 =
|
|
29458
|
+
function XU(e2, r2, c2, l2) {
|
|
29459
|
+
let u2 = YU[e2];
|
|
29458
29460
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29459
29461
|
}
|
|
29460
|
-
function
|
|
29462
|
+
function ZU(e2) {
|
|
29461
29463
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29462
29464
|
return {
|
|
29463
29465
|
transform: d2,
|
|
@@ -29470,7 +29472,7 @@ ${c}
|
|
|
29470
29472
|
position: "absolute"
|
|
29471
29473
|
};
|
|
29472
29474
|
}
|
|
29473
|
-
function
|
|
29475
|
+
function QU(e2) {
|
|
29474
29476
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29475
29477
|
return {
|
|
29476
29478
|
top: `${r2}px`,
|
|
@@ -29480,20 +29482,20 @@ ${c}
|
|
|
29480
29482
|
position: "absolute"
|
|
29481
29483
|
};
|
|
29482
29484
|
}
|
|
29483
|
-
function
|
|
29484
|
-
return r2 === "horizontal" ?
|
|
29485
|
+
function $U(e2, r2) {
|
|
29486
|
+
return r2 === "horizontal" ? tW(e2) : r2 === "vertical" ? eW(e2) : e2;
|
|
29485
29487
|
}
|
|
29486
|
-
function
|
|
29488
|
+
function eW(e2) {
|
|
29487
29489
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29488
29490
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29489
29491
|
});
|
|
29490
29492
|
}
|
|
29491
|
-
function
|
|
29493
|
+
function tW(e2) {
|
|
29492
29494
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29493
29495
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29494
29496
|
});
|
|
29495
29497
|
}
|
|
29496
|
-
function
|
|
29498
|
+
function nW(e2, r2, l2, u2, f2) {
|
|
29497
29499
|
e2 || (e2 = []);
|
|
29498
29500
|
let p2 = [];
|
|
29499
29501
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29514,7 +29516,7 @@ ${c}
|
|
|
29514
29516
|
});
|
|
29515
29517
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29516
29518
|
}
|
|
29517
|
-
function
|
|
29519
|
+
function rW(e2) {
|
|
29518
29520
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29519
29521
|
"x",
|
|
29520
29522
|
"y",
|
|
@@ -29531,7 +29533,7 @@ ${c}
|
|
|
29531
29533
|
if (u3.i !== void 0 && typeof u3.i != "string") throw Error(`ReactGridLayout: ${r2}[${l2}].i must be a string! Received: ${u3.i} (${typeof u3.i})`);
|
|
29532
29534
|
}
|
|
29533
29535
|
}
|
|
29534
|
-
function
|
|
29536
|
+
function iW(e2) {
|
|
29535
29537
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29536
29538
|
return r2 === false ? null : c2;
|
|
29537
29539
|
}
|
|
@@ -32336,7 +32338,7 @@ ${c}
|
|
|
32336
32338
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32337
32339
|
let E = useIsDragging(), O, j;
|
|
32338
32340
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32339
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32341
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, UU, WU, Z, GU, KU, qU, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW;
|
|
32340
32342
|
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) {
|
|
32341
32343
|
let e2 = Maps.keyBy(c.cells, _temp2$2), m2;
|
|
32342
32344
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32355,23 +32357,23 @@ ${c}
|
|
|
32355
32357
|
});
|
|
32356
32358
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32357
32359
|
let y2 = v2;
|
|
32358
|
-
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout,
|
|
32360
|
+
r[53] !== M || r[54] !== c.columns || r[55] !== c.maxWidth || r[56] !== c.rowHeight ? (L = {}, c.maxWidth && (L.maxWidth = `${c.maxWidth}px`), M && (L.backgroundImage = "repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)", L.backgroundSize = `calc((100% / ${c.columns})) ${c.rowHeight}px`), r[53] = M, r[54] = c.columns, r[55] = c.maxWidth, r[56] = c.rowHeight, r[57] = L) : L = r[57], I = ReactGridLayout, tW = "lg", r[58] === c.cells ? nW = r[59] : (nW = {
|
|
32359
32361
|
lg: c.cells
|
|
32360
|
-
}, r[58] = c.cells, r[59] =
|
|
32362
|
+
}, r[58] = c.cells, r[59] = nW), rW = L, iW = S, R = false;
|
|
32361
32363
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32362
32364
|
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 ? [
|
|
32363
32365
|
20,
|
|
32364
32366
|
20
|
|
32365
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32367
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, UU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (WU = (e3) => {
|
|
32366
32368
|
f || l({
|
|
32367
32369
|
...c,
|
|
32368
32370
|
cells: e3
|
|
32369
32371
|
});
|
|
32370
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
32372
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = WU) : WU = r[69], r[70] === g ? Z = r[71] : (Z = g ? {
|
|
32371
32373
|
i: g.i,
|
|
32372
32374
|
w: g.w || 2,
|
|
32373
32375
|
h: g.h || 2
|
|
32374
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
32376
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (GU = (e3, r2, u2) => {
|
|
32375
32377
|
O.onDragStop(), r2 && l({
|
|
32376
32378
|
...c,
|
|
32377
32379
|
cells: [
|
|
@@ -32379,15 +32381,15 @@ ${c}
|
|
|
32379
32381
|
r2
|
|
32380
32382
|
]
|
|
32381
32383
|
});
|
|
32382
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32384
|
+
}, r[72] = O, r[73] = c, r[74] = l, r[75] = GU) : GU = r[75], r[76] === O ? (KU = r[77], qU = r[78], JU = r[79]) : (KU = (e3, r2, c2, l2, u2) => {
|
|
32383
32385
|
O.onDragStart(u2);
|
|
32384
|
-
},
|
|
32386
|
+
}, qU = (e3, r2, c2, l2, u2) => {
|
|
32385
32387
|
O.onDragMove(u2);
|
|
32386
|
-
},
|
|
32388
|
+
}, JU = () => {
|
|
32387
32389
|
O.onDragStop();
|
|
32388
|
-
}, r[76] = O, r[77] =
|
|
32390
|
+
}, r[76] = O, r[77] = KU, r[78] = qU, r[79] = JU), YU = _temp3$2, XU = M, ZU = M, QU = M, $U = M ? `.${DRAG_HANDLE}` : "noop";
|
|
32389
32391
|
let E2;
|
|
32390
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32392
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), eW = u.filter(E2).map((r2) => {
|
|
32391
32393
|
let u2 = e2.get(r2.id), f2 = c.scrollableCells.has(r2.id) ?? false, p = c.cellSide.get(r2.id), m3 = (0, import_jsx_runtime.jsx)(GridCell, {
|
|
32392
32394
|
code: r2.code,
|
|
32393
32395
|
mode: d,
|
|
@@ -32416,14 +32418,14 @@ ${c}
|
|
|
32416
32418
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32417
32419
|
children: m3
|
|
32418
32420
|
}, r2.id);
|
|
32419
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32420
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
32421
|
-
let
|
|
32422
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
32423
|
-
breakpoint:
|
|
32424
|
-
layouts:
|
|
32425
|
-
style:
|
|
32426
|
-
cols:
|
|
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] = G, r[29] = q, r[30] = UU, r[31] = WU, 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;
|
|
32422
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], UU = r[30], WU = 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
|
+
let aW;
|
|
32424
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== UU || r[91] !== WU || 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
|
+
breakpoint: tW,
|
|
32426
|
+
layouts: nW,
|
|
32427
|
+
style: rW,
|
|
32428
|
+
cols: iW,
|
|
32427
32429
|
allowOverlap: R,
|
|
32428
32430
|
className: z,
|
|
32429
32431
|
containerPadding: B,
|
|
@@ -32431,23 +32433,23 @@ ${c}
|
|
|
32431
32433
|
isBounded: W,
|
|
32432
32434
|
compactType: G,
|
|
32433
32435
|
preventCollision: q,
|
|
32434
|
-
rowHeight:
|
|
32435
|
-
onLayoutChange:
|
|
32436
|
+
rowHeight: UU,
|
|
32437
|
+
onLayoutChange: WU,
|
|
32436
32438
|
droppingItem: Z,
|
|
32437
|
-
onDrop:
|
|
32438
|
-
onDragStart:
|
|
32439
|
-
onDrag:
|
|
32440
|
-
onDragStop:
|
|
32441
|
-
onResizeStop:
|
|
32442
|
-
isDraggable:
|
|
32443
|
-
isDroppable:
|
|
32444
|
-
isResizable:
|
|
32445
|
-
draggableHandle:
|
|
32446
|
-
children:
|
|
32447
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
32448
|
-
let
|
|
32449
|
-
if (r[108] !== u || r[109] !==
|
|
32450
|
-
|
|
32439
|
+
onDrop: GU,
|
|
32440
|
+
onDragStart: KU,
|
|
32441
|
+
onDrag: qU,
|
|
32442
|
+
onDragStop: JU,
|
|
32443
|
+
onResizeStop: YU,
|
|
32444
|
+
isDraggable: XU,
|
|
32445
|
+
isDroppable: ZU,
|
|
32446
|
+
isResizable: QU,
|
|
32447
|
+
draggableHandle: $U,
|
|
32448
|
+
children: eW
|
|
32449
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = UU, r[91] = WU, 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
|
+
let oW = aW, sW, cW, lW, uW, dW, fW, pW;
|
|
32451
|
+
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
|
+
pW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32451
32453
|
bb0: {
|
|
32452
32454
|
let e2;
|
|
32453
32455
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32455,14 +32457,14 @@ ${c}
|
|
|
32455
32457
|
if (f) {
|
|
32456
32458
|
if (c.bordered) {
|
|
32457
32459
|
let e4;
|
|
32458
|
-
r[127] !==
|
|
32460
|
+
r[127] !== oW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32459
32461
|
className: "flex flex-1 flex-col items-center",
|
|
32460
32462
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32461
32463
|
style: L,
|
|
32462
32464
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32463
|
-
children:
|
|
32465
|
+
children: oW
|
|
32464
32466
|
})
|
|
32465
|
-
}), r[127] =
|
|
32467
|
+
}), r[127] = oW, r[128] = L, r[129] = e4) : e4 = r[129], oW = e4;
|
|
32466
32468
|
}
|
|
32467
32469
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32468
32470
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32473,9 +32475,9 @@ ${c}
|
|
|
32473
32475
|
status: e4.status,
|
|
32474
32476
|
isScrollable: false,
|
|
32475
32477
|
hidden: false
|
|
32476
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32478
|
+
}, e4.id), r[130] = d, r[131] = l2), pW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32477
32479
|
children: [
|
|
32478
|
-
|
|
32480
|
+
oW,
|
|
32479
32481
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32480
32482
|
className: "hidden",
|
|
32481
32483
|
children: e3.map(l2)
|
|
@@ -32486,31 +32488,31 @@ ${c}
|
|
|
32486
32488
|
}
|
|
32487
32489
|
if (c.bordered) {
|
|
32488
32490
|
let e3;
|
|
32489
|
-
r[132] ===
|
|
32491
|
+
r[132] === oW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32490
32492
|
className: "h-full overflow-auto",
|
|
32491
|
-
children:
|
|
32492
|
-
}), r[132] =
|
|
32493
|
+
children: oW
|
|
32494
|
+
}), r[132] = oW, r[133] = e3);
|
|
32493
32495
|
let c2;
|
|
32494
32496
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32495
32497
|
style: L,
|
|
32496
32498
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32497
32499
|
children: e3
|
|
32498
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32500
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], oW = c2;
|
|
32499
32501
|
}
|
|
32500
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32502
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (fW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32501
32503
|
layout: c,
|
|
32502
32504
|
setLayout: l,
|
|
32503
32505
|
isLocked: v,
|
|
32504
32506
|
setIsLocked: y
|
|
32505
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32507
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = fW) : fW = r[140];
|
|
32506
32508
|
let g2;
|
|
32507
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32509
|
+
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uW = cn("relative flex z-10 flex-1 overflow-hidden"), g2 = cn("grow overflow-auto transparent-when-disconnected"), r[141] = uW, r[142] = g2) : (uW = r[141], g2 = r[142]), r[143] === oW ? dW = r[144] : (dW = (0, import_jsx_runtime.jsx)("div", {
|
|
32508
32510
|
className: g2,
|
|
32509
|
-
children:
|
|
32510
|
-
}), r[143] =
|
|
32511
|
+
children: oW
|
|
32512
|
+
}), r[143] = oW, r[144] = dW), sW = "flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4", r[145] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cW = (0, import_jsx_runtime.jsx)("div", {
|
|
32511
32513
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32512
32514
|
children: "Outputs"
|
|
32513
|
-
}), r[145] =
|
|
32515
|
+
}), r[145] = cW) : cW = r[145];
|
|
32514
32516
|
let b2;
|
|
32515
32517
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32516
32518
|
draggable: true,
|
|
@@ -32535,34 +32537,34 @@ ${c}
|
|
|
32535
32537
|
status: e3.status,
|
|
32536
32538
|
hidden: false
|
|
32537
32539
|
})
|
|
32538
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32540
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], lW = m2.map(b2);
|
|
32539
32541
|
}
|
|
32540
|
-
r[108] = u, r[109] =
|
|
32541
|
-
} else
|
|
32542
|
-
if (
|
|
32542
|
+
r[108] = u, r[109] = oW, r[110] = h, r[111] = v, r[112] = f, r[113] = c, r[114] = d, r[115] = l, r[116] = L, r[117] = sW, r[118] = cW, r[119] = lW, r[120] = uW, r[121] = dW, r[122] = fW, r[123] = pW, r[124] = oW;
|
|
32543
|
+
} else sW = r[117], cW = r[118], lW = r[119], uW = r[120], dW = r[121], fW = r[122], pW = r[123], oW = r[124];
|
|
32544
|
+
if (pW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return pW;
|
|
32545
|
+
let mW;
|
|
32546
|
+
r[150] !== sW || r[151] !== cW || r[152] !== lW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32547
|
+
className: sW,
|
|
32548
|
+
children: [
|
|
32549
|
+
cW,
|
|
32550
|
+
lW
|
|
32551
|
+
]
|
|
32552
|
+
}), r[150] = sW, r[151] = cW, r[152] = lW, r[153] = mW) : mW = r[153];
|
|
32543
32553
|
let hW;
|
|
32544
|
-
r[
|
|
32545
|
-
className:
|
|
32554
|
+
r[154] !== uW || r[155] !== dW || r[156] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32555
|
+
className: uW,
|
|
32546
32556
|
children: [
|
|
32547
|
-
|
|
32548
|
-
|
|
32557
|
+
dW,
|
|
32558
|
+
mW
|
|
32549
32559
|
]
|
|
32550
|
-
}), r[
|
|
32560
|
+
}), r[154] = uW, r[155] = dW, r[156] = mW, r[157] = hW) : hW = r[157];
|
|
32551
32561
|
let gW;
|
|
32552
|
-
|
|
32553
|
-
className: dW,
|
|
32562
|
+
return r[158] !== fW || r[159] !== hW ? (gW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32554
32563
|
children: [
|
|
32555
32564
|
fW,
|
|
32556
32565
|
hW
|
|
32557
32566
|
]
|
|
32558
|
-
}), r[
|
|
32559
|
-
let _W;
|
|
32560
|
-
return r[158] !== pW || r[159] !== gW ? (_W = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32561
|
-
children: [
|
|
32562
|
-
pW,
|
|
32563
|
-
gW
|
|
32564
|
-
]
|
|
32565
|
-
}), r[158] = pW, r[159] = gW, r[160] = _W) : _W = r[160], _W;
|
|
32567
|
+
}), r[158] = fW, r[159] = hW, r[160] = gW) : gW = r[160], gW;
|
|
32566
32568
|
};
|
|
32567
32569
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32568
32570
|
let r = (0, import_compiler_runtime$11.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32863,25 +32865,25 @@ ${c}
|
|
|
32863
32865
|
G
|
|
32864
32866
|
]
|
|
32865
32867
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32866
|
-
let
|
|
32867
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32868
|
+
let UU;
|
|
32869
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32868
32870
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32869
|
-
}), r[35] =
|
|
32870
|
-
let
|
|
32871
|
-
r[36] === l ?
|
|
32871
|
+
}), r[35] = UU) : UU = r[35];
|
|
32872
|
+
let WU;
|
|
32873
|
+
r[36] === l ? WU = r[37] : (WU = (0, import_jsx_runtime.jsx)(X, {
|
|
32872
32874
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32873
32875
|
onClick: () => l()
|
|
32874
|
-
}), r[36] = l, r[37] =
|
|
32876
|
+
}), r[36] = l, r[37] = WU);
|
|
32875
32877
|
let Z;
|
|
32876
|
-
return r[38] !== I || r[39] !== q || r[40] !==
|
|
32878
|
+
return r[38] !== I || r[39] !== q || r[40] !== WU || r[41] !== w ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
32877
32879
|
className: w,
|
|
32878
32880
|
children: [
|
|
32879
32881
|
I,
|
|
32880
32882
|
q,
|
|
32881
|
-
|
|
32882
|
-
|
|
32883
|
+
UU,
|
|
32884
|
+
WU
|
|
32883
32885
|
]
|
|
32884
|
-
}), r[38] = I, r[39] = q, r[40] =
|
|
32886
|
+
}), r[38] = I, r[39] = q, r[40] = WU, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
32885
32887
|
};
|
|
32886
32888
|
function isSidebarCell(e) {
|
|
32887
32889
|
var _a3;
|
|
@@ -34823,28 +34825,28 @@ ${c}
|
|
|
34823
34825
|
}, [
|
|
34824
34826
|
T,
|
|
34825
34827
|
M
|
|
34826
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
34828
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), UU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34827
34829
|
j
|
|
34828
|
-
]),
|
|
34830
|
+
]), WU = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: GU, measuringScheduled: KU } = useDroppableMeasuring(UU, {
|
|
34829
34831
|
dragging: w,
|
|
34830
34832
|
dependencies: [
|
|
34831
34833
|
O.x,
|
|
34832
34834
|
O.y
|
|
34833
34835
|
],
|
|
34834
|
-
config:
|
|
34835
|
-
}),
|
|
34836
|
+
config: WU.droppable
|
|
34837
|
+
}), qU = useCachedNode(E, T), JU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34836
34838
|
H
|
|
34837
|
-
]),
|
|
34839
|
+
]), YU = EW(), XU = useInitialRect(qU, WU.draggable.measure);
|
|
34838
34840
|
useLayoutShiftScrollCompensation({
|
|
34839
34841
|
activeNode: T == null ? null : E.get(T),
|
|
34840
|
-
config:
|
|
34841
|
-
initialRect:
|
|
34842
|
-
measure:
|
|
34842
|
+
config: YU.layoutShiftCompensation,
|
|
34843
|
+
initialRect: XU,
|
|
34844
|
+
measure: WU.draggable.measure
|
|
34843
34845
|
});
|
|
34844
|
-
let
|
|
34846
|
+
let ZU = useRect(qU, WU.draggable.measure, XU), QU = useRect(qU ? qU.parentElement : null), $U = (0, import_react.useRef)({
|
|
34845
34847
|
activatorEvent: null,
|
|
34846
34848
|
active: null,
|
|
34847
|
-
activeNode:
|
|
34849
|
+
activeNode: qU,
|
|
34848
34850
|
collisionRect: null,
|
|
34849
34851
|
collisions: null,
|
|
34850
34852
|
droppableRects: Z,
|
|
@@ -34855,45 +34857,45 @@ ${c}
|
|
|
34855
34857
|
over: null,
|
|
34856
34858
|
scrollableAncestors: [],
|
|
34857
34859
|
scrollAdjustedTranslate: null
|
|
34858
|
-
}),
|
|
34859
|
-
measure:
|
|
34860
|
-
}),
|
|
34860
|
+
}), eW = j.getNodeFor((_a3 = $U.current.over) == null ? void 0 : _a3.id), tW = useDragOverlayMeasuring({
|
|
34861
|
+
measure: WU.dragOverlay.measure
|
|
34862
|
+
}), 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, {
|
|
34861
34863
|
transform: {
|
|
34862
|
-
x: O.x -
|
|
34863
|
-
y: O.y -
|
|
34864
|
+
x: O.x - aW.x,
|
|
34865
|
+
y: O.y - aW.y,
|
|
34864
34866
|
scaleX: 1,
|
|
34865
34867
|
scaleY: 1
|
|
34866
34868
|
},
|
|
34867
34869
|
activatorEvent: H,
|
|
34868
34870
|
active: L,
|
|
34869
|
-
activeNodeRect:
|
|
34870
|
-
containerNodeRect:
|
|
34871
|
-
draggingNodeRect:
|
|
34872
|
-
over:
|
|
34873
|
-
overlayNodeRect:
|
|
34874
|
-
scrollableAncestors:
|
|
34875
|
-
scrollableAncestorRects:
|
|
34876
|
-
windowRect:
|
|
34877
|
-
}),
|
|
34878
|
-
|
|
34879
|
-
]),
|
|
34871
|
+
activeNodeRect: ZU,
|
|
34872
|
+
containerNodeRect: QU,
|
|
34873
|
+
draggingNodeRect: rW,
|
|
34874
|
+
over: $U.current.over,
|
|
34875
|
+
overlayNodeRect: tW.rect,
|
|
34876
|
+
scrollableAncestors: sW,
|
|
34877
|
+
scrollableAncestorRects: cW,
|
|
34878
|
+
windowRect: oW
|
|
34879
|
+
}), uW = JU ? add(JU, O) : null, dW = useScrollOffsets(sW), fW = useScrollOffsetsDelta(dW), pW = useScrollOffsetsDelta(dW, [
|
|
34880
|
+
ZU
|
|
34881
|
+
]), mW = add(lW, fW), hW = rW ? getAdjustedRect(rW, lW) : null, gW = L && hW ? f({
|
|
34880
34882
|
active: L,
|
|
34881
|
-
collisionRect:
|
|
34883
|
+
collisionRect: hW,
|
|
34882
34884
|
droppableRects: Z,
|
|
34883
|
-
droppableContainers:
|
|
34884
|
-
pointerCoordinates:
|
|
34885
|
-
}) : null,
|
|
34885
|
+
droppableContainers: UU,
|
|
34886
|
+
pointerCoordinates: uW
|
|
34887
|
+
}) : 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) => {
|
|
34886
34888
|
let { sensor: c2, options: l2 } = r2;
|
|
34887
34889
|
if (R.current == null) return;
|
|
34888
34890
|
let u2 = E.get(R.current);
|
|
34889
34891
|
if (!u2) return;
|
|
34890
34892
|
let d2 = e2.nativeEvent;
|
|
34891
|
-
|
|
34893
|
+
xW.current = new c2({
|
|
34892
34894
|
active: R.current,
|
|
34893
34895
|
activeNode: u2,
|
|
34894
34896
|
event: d2,
|
|
34895
34897
|
options: l2,
|
|
34896
|
-
context:
|
|
34898
|
+
context: $U,
|
|
34897
34899
|
onAbort(e3) {
|
|
34898
34900
|
if (!E.get(e3)) return;
|
|
34899
34901
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34938,7 +34940,7 @@ ${c}
|
|
|
34938
34940
|
}), v({
|
|
34939
34941
|
type: "onDragStart",
|
|
34940
34942
|
event: u3
|
|
34941
|
-
}), B(
|
|
34943
|
+
}), B(xW.current), W(d2);
|
|
34942
34944
|
});
|
|
34943
34945
|
},
|
|
34944
34946
|
onMove(e3) {
|
|
@@ -34952,7 +34954,7 @@ ${c}
|
|
|
34952
34954
|
});
|
|
34953
34955
|
function f2(e3) {
|
|
34954
34956
|
return async function() {
|
|
34955
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34957
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = $U.current, f3 = null;
|
|
34956
34958
|
if (r3 && u3) {
|
|
34957
34959
|
let { cancelDrop: p2 } = G.current;
|
|
34958
34960
|
f3 = {
|
|
@@ -34966,7 +34968,7 @@ ${c}
|
|
|
34966
34968
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34967
34969
|
_({
|
|
34968
34970
|
type: e3
|
|
34969
|
-
}), S(Status.Uninitialized),
|
|
34971
|
+
}), S(Status.Uninitialized), yW(null), B(null), W(null), xW.current = null;
|
|
34970
34972
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34971
34973
|
if (f3) {
|
|
34972
34974
|
let e4 = G.current[r4];
|
|
@@ -34980,7 +34982,7 @@ ${c}
|
|
|
34980
34982
|
}
|
|
34981
34983
|
}, [
|
|
34982
34984
|
E
|
|
34983
|
-
]),
|
|
34985
|
+
]), CW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34984
34986
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34985
34987
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34986
34988
|
let f2 = {
|
|
@@ -34988,26 +34990,26 @@ ${c}
|
|
|
34988
34990
|
};
|
|
34989
34991
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34990
34992
|
capturedBy: r2.sensor
|
|
34991
|
-
}, R.current = l2,
|
|
34993
|
+
}, R.current = l2, SW(c2, r2));
|
|
34992
34994
|
}, [
|
|
34993
34995
|
E,
|
|
34994
|
-
|
|
34996
|
+
SW
|
|
34995
34997
|
]));
|
|
34996
34998
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34997
|
-
|
|
34999
|
+
ZU && b === Status.Initializing && S(Status.Initialized);
|
|
34998
35000
|
}, [
|
|
34999
|
-
|
|
35001
|
+
ZU,
|
|
35000
35002
|
b
|
|
35001
35003
|
]), (0, import_react.useEffect)(() => {
|
|
35002
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
35004
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = $U.current;
|
|
35003
35005
|
if (!r2 || !c2) return;
|
|
35004
35006
|
let d2 = {
|
|
35005
35007
|
active: r2,
|
|
35006
35008
|
activatorEvent: c2,
|
|
35007
35009
|
collisions: l2,
|
|
35008
35010
|
delta: {
|
|
35009
|
-
x:
|
|
35010
|
-
y:
|
|
35011
|
+
x: mW.x,
|
|
35012
|
+
y: mW.y
|
|
35011
35013
|
},
|
|
35012
35014
|
over: u2
|
|
35013
35015
|
};
|
|
@@ -35018,12 +35020,12 @@ ${c}
|
|
|
35018
35020
|
});
|
|
35019
35021
|
});
|
|
35020
35022
|
}, [
|
|
35021
|
-
|
|
35022
|
-
|
|
35023
|
+
mW.x,
|
|
35024
|
+
mW.y
|
|
35023
35025
|
]), (0, import_react.useEffect)(() => {
|
|
35024
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
35026
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = $U.current;
|
|
35025
35027
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
35026
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
35028
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(_W), p2 = f2 && f2.rect.current ? {
|
|
35027
35029
|
id: f2.id,
|
|
35028
35030
|
rect: f2.rect.current,
|
|
35029
35031
|
data: f2.data,
|
|
@@ -35039,127 +35041,127 @@ ${c}
|
|
|
35039
35041
|
over: p2
|
|
35040
35042
|
};
|
|
35041
35043
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35042
|
-
|
|
35044
|
+
yW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35043
35045
|
type: "onDragOver",
|
|
35044
35046
|
event: m2
|
|
35045
35047
|
});
|
|
35046
35048
|
});
|
|
35047
35049
|
}, [
|
|
35048
|
-
|
|
35050
|
+
_W
|
|
35049
35051
|
]), useIsomorphicLayoutEffect(() => {
|
|
35050
|
-
|
|
35052
|
+
$U.current = {
|
|
35051
35053
|
activatorEvent: H,
|
|
35052
35054
|
active: L,
|
|
35053
|
-
activeNode:
|
|
35054
|
-
collisionRect:
|
|
35055
|
-
collisions:
|
|
35055
|
+
activeNode: qU,
|
|
35056
|
+
collisionRect: hW,
|
|
35057
|
+
collisions: gW,
|
|
35056
35058
|
droppableRects: Z,
|
|
35057
35059
|
draggableNodes: E,
|
|
35058
|
-
draggingNode:
|
|
35059
|
-
draggingNodeRect:
|
|
35060
|
+
draggingNode: nW,
|
|
35061
|
+
draggingNodeRect: rW,
|
|
35060
35062
|
droppableContainers: j,
|
|
35061
|
-
over:
|
|
35062
|
-
scrollableAncestors:
|
|
35063
|
-
scrollAdjustedTranslate:
|
|
35063
|
+
over: vW,
|
|
35064
|
+
scrollableAncestors: sW,
|
|
35065
|
+
scrollAdjustedTranslate: mW
|
|
35064
35066
|
}, I.current = {
|
|
35065
|
-
initial:
|
|
35066
|
-
translated:
|
|
35067
|
+
initial: rW,
|
|
35068
|
+
translated: hW
|
|
35067
35069
|
};
|
|
35068
35070
|
}, [
|
|
35069
35071
|
L,
|
|
35070
|
-
|
|
35071
|
-
_W,
|
|
35072
|
+
qU,
|
|
35072
35073
|
gW,
|
|
35074
|
+
hW,
|
|
35073
35075
|
E,
|
|
35076
|
+
nW,
|
|
35074
35077
|
rW,
|
|
35075
|
-
iW,
|
|
35076
35078
|
Z,
|
|
35077
35079
|
j,
|
|
35078
|
-
|
|
35079
|
-
|
|
35080
|
-
|
|
35080
|
+
vW,
|
|
35081
|
+
sW,
|
|
35082
|
+
mW
|
|
35081
35083
|
]), useAutoScroller({
|
|
35082
|
-
...
|
|
35084
|
+
...YU,
|
|
35083
35085
|
delta: O,
|
|
35084
|
-
draggingRect:
|
|
35085
|
-
pointerCoordinates:
|
|
35086
|
-
scrollableAncestors:
|
|
35087
|
-
scrollableAncestorRects:
|
|
35086
|
+
draggingRect: hW,
|
|
35087
|
+
pointerCoordinates: uW,
|
|
35088
|
+
scrollableAncestors: sW,
|
|
35089
|
+
scrollableAncestorRects: cW
|
|
35088
35090
|
});
|
|
35089
|
-
let
|
|
35091
|
+
let wW = (0, import_react.useMemo)(() => ({
|
|
35090
35092
|
active: L,
|
|
35091
|
-
activeNode:
|
|
35092
|
-
activeNodeRect:
|
|
35093
|
+
activeNode: qU,
|
|
35094
|
+
activeNodeRect: ZU,
|
|
35093
35095
|
activatorEvent: H,
|
|
35094
|
-
collisions:
|
|
35095
|
-
containerNodeRect:
|
|
35096
|
-
dragOverlay:
|
|
35096
|
+
collisions: gW,
|
|
35097
|
+
containerNodeRect: QU,
|
|
35098
|
+
dragOverlay: tW,
|
|
35097
35099
|
draggableNodes: E,
|
|
35098
35100
|
droppableContainers: j,
|
|
35099
35101
|
droppableRects: Z,
|
|
35100
|
-
over:
|
|
35101
|
-
measureDroppableContainers:
|
|
35102
|
-
scrollableAncestors:
|
|
35103
|
-
scrollableAncestorRects:
|
|
35104
|
-
measuringConfiguration:
|
|
35105
|
-
measuringScheduled:
|
|
35106
|
-
windowRect:
|
|
35102
|
+
over: vW,
|
|
35103
|
+
measureDroppableContainers: GU,
|
|
35104
|
+
scrollableAncestors: sW,
|
|
35105
|
+
scrollableAncestorRects: cW,
|
|
35106
|
+
measuringConfiguration: WU,
|
|
35107
|
+
measuringScheduled: KU,
|
|
35108
|
+
windowRect: oW
|
|
35107
35109
|
}), [
|
|
35108
35110
|
L,
|
|
35109
|
-
|
|
35110
|
-
|
|
35111
|
+
qU,
|
|
35112
|
+
ZU,
|
|
35111
35113
|
H,
|
|
35112
|
-
|
|
35113
|
-
|
|
35114
|
-
|
|
35114
|
+
gW,
|
|
35115
|
+
QU,
|
|
35116
|
+
tW,
|
|
35115
35117
|
E,
|
|
35116
35118
|
j,
|
|
35117
35119
|
Z,
|
|
35118
|
-
|
|
35119
|
-
KU,
|
|
35120
|
-
cW,
|
|
35121
|
-
lW,
|
|
35120
|
+
vW,
|
|
35122
35121
|
GU,
|
|
35123
|
-
|
|
35124
|
-
|
|
35125
|
-
|
|
35122
|
+
sW,
|
|
35123
|
+
cW,
|
|
35124
|
+
WU,
|
|
35125
|
+
KU,
|
|
35126
|
+
oW
|
|
35127
|
+
]), TW = (0, import_react.useMemo)(() => ({
|
|
35126
35128
|
activatorEvent: H,
|
|
35127
|
-
activators:
|
|
35129
|
+
activators: CW,
|
|
35128
35130
|
active: L,
|
|
35129
|
-
activeNodeRect:
|
|
35131
|
+
activeNodeRect: ZU,
|
|
35130
35132
|
ariaDescribedById: {
|
|
35131
35133
|
draggable: q
|
|
35132
35134
|
},
|
|
35133
35135
|
dispatch: _,
|
|
35134
35136
|
draggableNodes: E,
|
|
35135
|
-
over:
|
|
35136
|
-
measureDroppableContainers:
|
|
35137
|
+
over: vW,
|
|
35138
|
+
measureDroppableContainers: GU
|
|
35137
35139
|
}), [
|
|
35138
35140
|
H,
|
|
35139
|
-
|
|
35141
|
+
CW,
|
|
35140
35142
|
L,
|
|
35141
|
-
|
|
35143
|
+
ZU,
|
|
35142
35144
|
_,
|
|
35143
35145
|
q,
|
|
35144
35146
|
E,
|
|
35145
|
-
|
|
35146
|
-
|
|
35147
|
+
vW,
|
|
35148
|
+
GU
|
|
35147
35149
|
]);
|
|
35148
35150
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35149
35151
|
value: y
|
|
35150
35152
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35151
|
-
value: EW
|
|
35152
|
-
}, import_react.createElement(PublicContext.Provider, {
|
|
35153
35153
|
value: TW
|
|
35154
|
+
}, import_react.createElement(PublicContext.Provider, {
|
|
35155
|
+
value: wW
|
|
35154
35156
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35155
|
-
value:
|
|
35157
|
+
value: bW
|
|
35156
35158
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35157
35159
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35158
35160
|
})), import_react.createElement(Accessibility, {
|
|
35159
35161
|
...c,
|
|
35160
35162
|
hiddenTextDescribedById: q
|
|
35161
35163
|
}));
|
|
35162
|
-
function
|
|
35164
|
+
function EW() {
|
|
35163
35165
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35164
35166
|
return typeof l == "object" ? {
|
|
35165
35167
|
...l,
|
|
@@ -35687,7 +35689,7 @@ ${c}
|
|
|
35687
35689
|
updateMeasurementsFor: I,
|
|
35688
35690
|
...m
|
|
35689
35691
|
}
|
|
35690
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35692
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: UU, listeners: WU, isDragging: Z, over: GU, setActivatorNodeRef: KU, transform: qU } = useDraggable({
|
|
35691
35693
|
id: f,
|
|
35692
35694
|
data: M,
|
|
35693
35695
|
attributes: {
|
|
@@ -35695,60 +35697,60 @@ ${c}
|
|
|
35695
35697
|
...c
|
|
35696
35698
|
},
|
|
35697
35699
|
disabled: O.draggable
|
|
35698
|
-
}),
|
|
35700
|
+
}), JU = useCombinedRefs(B, UU), YU = !!H, XU = YU && !b && isValidIndex(v) && isValidIndex(w), ZU = !T && Z, QU = XU ? (ZU && XU ? qU : null) ?? (p ?? E)({
|
|
35699
35701
|
rects: S,
|
|
35700
35702
|
activeNodeRect: G,
|
|
35701
35703
|
activeIndex: v,
|
|
35702
35704
|
overIndex: w,
|
|
35703
35705
|
index: j
|
|
35704
|
-
}) : null,
|
|
35706
|
+
}) : null, $U = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35705
35707
|
id: f,
|
|
35706
35708
|
items: g,
|
|
35707
35709
|
activeIndex: v,
|
|
35708
35710
|
overIndex: w
|
|
35709
|
-
}) : j,
|
|
35710
|
-
activeId:
|
|
35711
|
+
}) : j, eW = H == null ? void 0 : H.id, tW = (0, import_react.useRef)({
|
|
35712
|
+
activeId: eW,
|
|
35711
35713
|
items: g,
|
|
35712
|
-
newIndex:
|
|
35714
|
+
newIndex: $U,
|
|
35713
35715
|
containerId: _
|
|
35714
|
-
}),
|
|
35716
|
+
}), nW = g !== tW.current.items, rW = r({
|
|
35715
35717
|
active: H,
|
|
35716
35718
|
containerId: _,
|
|
35717
35719
|
isDragging: Z,
|
|
35718
|
-
isSorting:
|
|
35720
|
+
isSorting: YU,
|
|
35719
35721
|
id: f,
|
|
35720
35722
|
index: j,
|
|
35721
35723
|
items: g,
|
|
35722
|
-
newIndex:
|
|
35723
|
-
previousItems:
|
|
35724
|
-
previousContainerId:
|
|
35724
|
+
newIndex: tW.current.newIndex,
|
|
35725
|
+
previousItems: tW.current.items,
|
|
35726
|
+
previousContainerId: tW.current.containerId,
|
|
35725
35727
|
transition: h,
|
|
35726
|
-
wasDragging:
|
|
35727
|
-
}),
|
|
35728
|
-
disabled: !
|
|
35728
|
+
wasDragging: tW.current.activeId != null
|
|
35729
|
+
}), iW = useDerivedTransform({
|
|
35730
|
+
disabled: !rW,
|
|
35729
35731
|
index: j,
|
|
35730
35732
|
node: R,
|
|
35731
35733
|
rect: L
|
|
35732
35734
|
});
|
|
35733
35735
|
return (0, import_react.useEffect)(() => {
|
|
35734
|
-
|
|
35736
|
+
YU && tW.current.newIndex !== $U && (tW.current.newIndex = $U), _ !== tW.current.containerId && (tW.current.containerId = _), g !== tW.current.items && (tW.current.items = g);
|
|
35735
35737
|
}, [
|
|
35736
|
-
|
|
35737
|
-
|
|
35738
|
+
YU,
|
|
35739
|
+
$U,
|
|
35738
35740
|
_,
|
|
35739
35741
|
g
|
|
35740
35742
|
]), (0, import_react.useEffect)(() => {
|
|
35741
|
-
if (
|
|
35742
|
-
if (
|
|
35743
|
-
|
|
35743
|
+
if (eW === tW.current.activeId) return;
|
|
35744
|
+
if (eW != null && tW.current.activeId == null) {
|
|
35745
|
+
tW.current.activeId = eW;
|
|
35744
35746
|
return;
|
|
35745
35747
|
}
|
|
35746
35748
|
let e2 = setTimeout(() => {
|
|
35747
|
-
|
|
35749
|
+
tW.current.activeId = eW;
|
|
35748
35750
|
}, 50);
|
|
35749
35751
|
return () => clearTimeout(e2);
|
|
35750
35752
|
}, [
|
|
35751
|
-
|
|
35753
|
+
eW
|
|
35752
35754
|
]), {
|
|
35753
35755
|
active: H,
|
|
35754
35756
|
activeIndex: v,
|
|
@@ -35756,25 +35758,25 @@ ${c}
|
|
|
35756
35758
|
data: M,
|
|
35757
35759
|
rect: L,
|
|
35758
35760
|
index: j,
|
|
35759
|
-
newIndex:
|
|
35761
|
+
newIndex: $U,
|
|
35760
35762
|
items: g,
|
|
35761
35763
|
isOver: z,
|
|
35762
|
-
isSorting:
|
|
35764
|
+
isSorting: YU,
|
|
35763
35765
|
isDragging: Z,
|
|
35764
|
-
listeners:
|
|
35766
|
+
listeners: WU,
|
|
35765
35767
|
node: R,
|
|
35766
35768
|
overIndex: w,
|
|
35767
|
-
over:
|
|
35768
|
-
setNodeRef:
|
|
35769
|
-
setActivatorNodeRef:
|
|
35769
|
+
over: GU,
|
|
35770
|
+
setNodeRef: JU,
|
|
35771
|
+
setActivatorNodeRef: KU,
|
|
35770
35772
|
setDroppableNodeRef: B,
|
|
35771
|
-
setDraggableNodeRef:
|
|
35772
|
-
transform:
|
|
35773
|
-
transition:
|
|
35773
|
+
setDraggableNodeRef: UU,
|
|
35774
|
+
transform: iW ?? QU,
|
|
35775
|
+
transition: aW()
|
|
35774
35776
|
};
|
|
35775
|
-
function
|
|
35776
|
-
if (
|
|
35777
|
-
if (!(
|
|
35777
|
+
function aW() {
|
|
35778
|
+
if (iW || nW && tW.current.newIndex === j) return disabledTransition;
|
|
35779
|
+
if (!(ZU && !isKeyboardEvent(W) || !h) && (YU || rW)) return CSS$1.Transition.toString({
|
|
35778
35780
|
...h,
|
|
35779
35781
|
property: transitionProperty
|
|
35780
35782
|
});
|
|
@@ -36050,10 +36052,10 @@ ${c}
|
|
|
36050
36052
|
...R,
|
|
36051
36053
|
...h
|
|
36052
36054
|
}, r[18] = O, r[19] = h, r[20] = R, r[21] = E, r[22] = z) : z = r[22];
|
|
36053
|
-
let B = z, H = T || w, W = b || S || w ? "border-blue-500" : "border-border", G = S && !w && "opacity-35", q = w && "opacity-95 shadow-lg",
|
|
36054
|
-
r[23] !== l || r[24] !== q || r[25] !== W || r[26] !== G ? (
|
|
36055
|
-
let
|
|
36056
|
-
r[28] !== c || r[29] !== O || r[30] !== j || r[31] !== H || r[32] !== E ? (
|
|
36055
|
+
let B = z, H = T || w, W = b || S || w ? "border-blue-500" : "border-border", G = S && !w && "opacity-35", q = w && "opacity-95 shadow-lg", UU;
|
|
36056
|
+
r[23] !== l || r[24] !== q || r[25] !== W || r[26] !== G ? (UU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden", W, G, q, l), r[23] = l, r[24] = q, r[25] = W, r[26] = G, r[27] = UU) : UU = r[27];
|
|
36057
|
+
let WU;
|
|
36058
|
+
r[28] !== c || r[29] !== O || r[30] !== j || r[31] !== H || r[32] !== E ? (WU = H && (0, import_jsx_runtime.jsx)("div", {
|
|
36057
36059
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36058
36060
|
style: {
|
|
36059
36061
|
transform: `scale(${j})`,
|
|
@@ -36066,14 +36068,14 @@ ${c}
|
|
|
36066
36068
|
status: c.status,
|
|
36067
36069
|
output: c.output
|
|
36068
36070
|
})
|
|
36069
|
-
}), r[28] = c, r[29] = O, r[30] = j, r[31] = H, r[32] = E, r[33] =
|
|
36071
|
+
}), r[28] = c, r[29] = O, r[30] = j, r[31] = H, r[32] = E, r[33] = WU) : WU = r[33];
|
|
36070
36072
|
let Z;
|
|
36071
36073
|
r[34] === L ? Z = r[35] : (Z = L && (0, import_jsx_runtime.jsx)("div", {
|
|
36072
36074
|
className: "absolute inset-0 bg-muted/60 pointer-events-none",
|
|
36073
36075
|
"aria-hidden": true
|
|
36074
36076
|
}), r[34] = L, r[35] = Z);
|
|
36075
|
-
let
|
|
36076
|
-
r[36] !== L || r[37] !== I ? (
|
|
36077
|
+
let GU;
|
|
36078
|
+
r[36] !== L || r[37] !== I ? (GU = I && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36077
36079
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36078
36080
|
className: "text-xs opacity-80",
|
|
36079
36081
|
children: I.description
|
|
@@ -36085,19 +36087,19 @@ ${c}
|
|
|
36085
36087
|
className: "h-3.5 w-3.5"
|
|
36086
36088
|
})
|
|
36087
36089
|
})
|
|
36088
|
-
}), r[36] = L, r[37] = I, r[38] =
|
|
36089
|
-
let
|
|
36090
|
-
return r[39] !== B || r[40] !== d || r[41] !== f || r[42] !==
|
|
36090
|
+
}), r[36] = L, r[37] = I, r[38] = GU) : GU = r[38];
|
|
36091
|
+
let KU;
|
|
36092
|
+
return r[39] !== B || r[40] !== d || r[41] !== f || r[42] !== UU || r[43] !== WU || r[44] !== Z || r[45] !== GU ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36091
36093
|
ref: f,
|
|
36092
|
-
className:
|
|
36094
|
+
className: UU,
|
|
36093
36095
|
style: B,
|
|
36094
36096
|
...d,
|
|
36095
36097
|
children: [
|
|
36096
|
-
|
|
36098
|
+
WU,
|
|
36097
36099
|
Z,
|
|
36098
|
-
|
|
36100
|
+
GU
|
|
36099
36101
|
]
|
|
36100
|
-
}), r[39] = B, r[40] = d, r[41] = f, r[42] =
|
|
36102
|
+
}), r[39] = B, r[40] = d, r[41] = f, r[42] = UU, r[43] = WU, r[44] = Z, r[45] = GU, r[46] = KU) : KU = r[46], KU;
|
|
36101
36103
|
};
|
|
36102
36104
|
function projectDropTarget(e) {
|
|
36103
36105
|
let { active: r, over: c } = e;
|
|
@@ -36128,7 +36130,7 @@ ${c}
|
|
|
36128
36130
|
if (l && l !== "slide") return l;
|
|
36129
36131
|
if (c == null ? void 0 : c.has(e)) return "skip";
|
|
36130
36132
|
}
|
|
36131
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36133
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-Pq7C0LSU.js"));
|
|
36132
36134
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36133
36135
|
var _a3;
|
|
36134
36136
|
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), [
|
|
@@ -36503,7 +36505,7 @@ ${c}
|
|
|
36503
36505
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36504
36506
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36505
36507
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36506
|
-
let H, W, G, q,
|
|
36508
|
+
let H, W, G, q, UU, WU, Z, GU, KU, qU;
|
|
36507
36509
|
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) {
|
|
36508
36510
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36509
36511
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36549,11 +36551,11 @@ ${c}
|
|
|
36549
36551
|
})
|
|
36550
36552
|
})
|
|
36551
36553
|
]
|
|
36552
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36553
|
-
let
|
|
36554
|
-
r[40] !== M || r[41] !==
|
|
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], G = y ? "This console output is stale" : void 0, q = "console-output-area", UU = c, WU = R, Z = 0;
|
|
36555
|
+
let JU2 = y && "marimo-output-stale", YU2 = L ? "p-5" : "p-3";
|
|
36556
|
+
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 ? {
|
|
36555
36557
|
maxHeight: "none"
|
|
36556
|
-
} : void 0, r[44] = d, r[45] =
|
|
36558
|
+
} : void 0, r[44] = d, r[45] = KU), qU = e2.map((e3, r2) => {
|
|
36557
36559
|
if (e3.channel === "pdb") return null;
|
|
36558
36560
|
if (e3.channel === "stdin") {
|
|
36559
36561
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36582,36 +36584,36 @@ ${c}
|
|
|
36582
36584
|
wrapText: l
|
|
36583
36585
|
})
|
|
36584
36586
|
}, r2);
|
|
36585
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36586
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36587
|
-
let
|
|
36588
|
-
r[46] !== T || r[47] !== S ? (
|
|
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] = G, r[23] = q, r[24] = UU, r[25] = WU, r[26] = Z, r[27] = GU, r[28] = KU, r[29] = qU;
|
|
36588
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], UU = r[24], WU = r[25], Z = r[26], GU = r[27], KU = r[28], qU = r[29];
|
|
36589
|
+
let JU;
|
|
36590
|
+
r[46] !== T || r[47] !== S ? (JU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36589
36591
|
value: S,
|
|
36590
36592
|
cellId: T,
|
|
36591
36593
|
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"
|
|
36592
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36593
|
-
let
|
|
36594
|
-
r[49] !==
|
|
36594
|
+
}), r[46] = T, r[47] = S, r[48] = JU) : JU = r[48];
|
|
36595
|
+
let YU;
|
|
36596
|
+
r[49] !== JU || r[50] !== G || r[51] !== q || r[52] !== UU || r[53] !== WU || r[54] !== Z || r[55] !== GU || r[56] !== KU || r[57] !== qU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36595
36597
|
title: G,
|
|
36596
36598
|
"data-testid": q,
|
|
36597
|
-
ref:
|
|
36598
|
-
...
|
|
36599
|
+
ref: UU,
|
|
36600
|
+
...WU,
|
|
36599
36601
|
tabIndex: Z,
|
|
36600
|
-
className:
|
|
36601
|
-
style:
|
|
36602
|
+
className: GU,
|
|
36603
|
+
style: KU,
|
|
36602
36604
|
children: [
|
|
36603
|
-
|
|
36604
|
-
|
|
36605
|
+
qU,
|
|
36606
|
+
JU
|
|
36605
36607
|
]
|
|
36606
|
-
}), r[49] =
|
|
36607
|
-
let
|
|
36608
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36608
|
+
}), r[49] = JU, r[50] = G, r[51] = q, r[52] = UU, r[53] = WU, r[54] = Z, r[55] = GU, r[56] = KU, r[57] = qU, r[58] = YU) : YU = r[58];
|
|
36609
|
+
let XU;
|
|
36610
|
+
return r[59] !== H || r[60] !== W || r[61] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36609
36611
|
className: H,
|
|
36610
36612
|
children: [
|
|
36611
36613
|
W,
|
|
36612
|
-
|
|
36614
|
+
YU
|
|
36613
36615
|
]
|
|
36614
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36616
|
+
}), r[59] = H, r[60] = W, r[61] = YU, r[62] = XU) : XU = r[62], XU;
|
|
36615
36617
|
}, StdInput = (e) => {
|
|
36616
36618
|
let r = (0, import_compiler_runtime$6.c)(25), { value: c, setValue: l, inputHistory: u, output: d, isPassword: f, isPdb: p, onSubmit: m, onClear: h } = e, { navigateUp: g, navigateDown: _, addToHistory: v } = u, y;
|
|
36617
36619
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37075,23 +37077,23 @@ ${c}
|
|
|
37075
37077
|
if ((h || _ || m || W) && !G) return null;
|
|
37076
37078
|
let q;
|
|
37077
37079
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37078
|
-
let
|
|
37079
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37080
|
-
allowExpand:
|
|
37080
|
+
let UU = w === "edit", WU;
|
|
37081
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== UU ? (WU = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37082
|
+
allowExpand: UU,
|
|
37081
37083
|
output: c,
|
|
37082
37084
|
className: CSSClasses.outputArea,
|
|
37083
37085
|
cellId: d,
|
|
37084
37086
|
stale: I,
|
|
37085
37087
|
loading: R
|
|
37086
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37088
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = UU, r[51] = WU) : WU = r[51];
|
|
37087
37089
|
let Z;
|
|
37088
|
-
return r[52] !== H || r[53] !== q || r[54] !==
|
|
37090
|
+
return r[52] !== H || r[53] !== q || r[54] !== WU ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37089
37091
|
tabIndex: -1,
|
|
37090
37092
|
ref: j,
|
|
37091
37093
|
className: H,
|
|
37092
37094
|
...q,
|
|
37093
|
-
children:
|
|
37094
|
-
}), r[52] = H, r[53] = q, r[54] =
|
|
37095
|
+
children: WU
|
|
37096
|
+
}), r[52] = H, r[53] = q, r[54] = WU, r[55] = Z) : Z = r[55], Z;
|
|
37095
37097
|
});
|
|
37096
37098
|
VerticalCell.displayName = "VerticalCell";
|
|
37097
37099
|
const VerticalLayoutPlugin = {
|