@marimo-team/islands 0.23.9-dev44 → 0.23.9-dev46
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-D4csqHNX.js → code-visibility-5tqUgLbx.js} +1 -1
- package/dist/main.js +1095 -1071
- package/dist/{reveal-component-Cla-oeTB.js → reveal-component-8MW3DINl.js} +300 -279
- package/package.json +1 -1
- package/src/components/editor/cell/code/cell-editor.tsx +18 -1
- package/src/components/editor/renderers/slides-layout/__tests__/compute-slide-cells.test.ts +30 -17
- package/src/components/editor/renderers/slides-layout/compute-slide-cells.ts +17 -8
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +9 -11
- package/src/components/slides/minimap.tsx +45 -9
- package/src/components/slides/reveal-component.tsx +79 -34
- package/src/components/slides/slide-cell-view.tsx +12 -1
- package/src/core/codemirror/cm.ts +47 -1
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as useCellActions, An as LoaderCircle, At as DeferredRequestRegistry,
|
|
|
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-B96zNUEA.js";
|
|
29
|
-
import { $ as TableBody, $t as ChevronLeft, A as ComboboxItem, At as ChartErrorState, B as contextAwarePanelOpen, Bt as $fae977aafc393c5c$export$6b862160d295c8e, C as prettifyRowColumnCount, Ct as dateToLocalISODate, D as DatePicker, Dt as TabsContent, E as useInternalStateWithSync, Et as Tabs, F as CommandList, Ft as RenderTextWithLinks, G as slotsController, H as contextAwarePanelType, Ht as GripHorizontal, I as CommandSeparator, It as Kbd, Jt as Code, K as Toggle, Kt as Ellipsis, L as smartMatch, Lt as HtmlOutput, M as CommandEmpty, Mt as ChartLoadingState, N as CommandInput, Nt as LazyVegaEmbed, O as DateRangePicker, Ot as TabsList, P as CommandItem, Pt as useOverflowDetection, Q as Table, Qt as ChevronsDownUp, R as ContextAwarePanelItem, Rt as EmotionCacheProvider, S as downloadSizeLimitAtom, St as Maps, T as getColumnCountForDisplay, Tt as dateToLocalISOTime, U as isCellAwareAtom, Ut as Funnel, V as contextAwarePanelOwner, Vt as TextWrap, W as SlotNames, Wt as EyeOff, X as Fill, Xt as ChevronsRight, Yt as ChevronsUpDown, Z as Provider$1, Zt as ChevronsLeft, _ as downloadBlob, _t as SELECT_COLUMN_ID, at as generateColumns, b as Progress, bt as getMimeValues, c as Slide, ct as ColumnChartContext, d as JsonOutput, dt as useIntersectionObserver, en as ArrowDownWideNarrow, et as TableCell, f as OutputArea, ft as usePrevious$1, g as ADD_PRINTING_CLASS, gt as INDEX_COLUMN_NAME, h as InstallPackageButton, ht as loadTableData, it as NAMELESS_COLUMN_PREFIX, j as Command, jt as ChartInfoState, k as Combobox, kt as TabsTrigger, l as RadioGroup, lt as ColumnChartSpecModel, m as DataTable, mt as loadTableAndRawData, n as marimoVersionAtom, nt as TableHeader, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as inferFieldTypes, p as OutputRenderer, pt as getPageIndexForRow, qt as Download, r as showCodeInRunModeAtom, rt as TableRow, st as renderCellValue, t as useNotebookCodeAvailable, tt as TableHead, u as RadioGroupItem, ut as DelayMount, v as downloadByURL, vt as TOO_MANY_ROWS, w as prettifyRowCount, wt as dateToLocalISODateTime, x as Filenames, xt as isNullishFilter, y as downloadHTMLAsImage, yt as toFieldTypes, z as PANEL_TYPES, zt as $fae977aafc393c5c$export$588937bcd60ade55, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as TableBody, $t as ChevronLeft, A as ComboboxItem, At as ChartErrorState, B as contextAwarePanelOpen, Bt as $fae977aafc393c5c$export$6b862160d295c8e, C as prettifyRowColumnCount, Ct as dateToLocalISODate, D as DatePicker, Dt as TabsContent, E as useInternalStateWithSync, Et as Tabs, F as CommandList, Ft as RenderTextWithLinks, G as slotsController, H as contextAwarePanelType, Ht as GripHorizontal, I as CommandSeparator, It as Kbd, Jt as Code, K as Toggle, Kt as Ellipsis, L as smartMatch, Lt as HtmlOutput, M as CommandEmpty, Mt as ChartLoadingState, N as CommandInput, Nt as LazyVegaEmbed, O as DateRangePicker, Ot as TabsList, P as CommandItem, Pt as useOverflowDetection, Q as Table, Qt as ChevronsDownUp, R as ContextAwarePanelItem, Rt as EmotionCacheProvider, S as downloadSizeLimitAtom, St as Maps, T as getColumnCountForDisplay, Tt as dateToLocalISOTime, U as isCellAwareAtom, Ut as Funnel, V as contextAwarePanelOwner, Vt as TextWrap, W as SlotNames, Wt as EyeOff, X as Fill, Xt as ChevronsRight, Yt as ChevronsUpDown, Z as Provider$1, Zt as ChevronsLeft, _ as downloadBlob, _t as SELECT_COLUMN_ID, at as generateColumns, b as Progress, bt as getMimeValues, c as Slide, ct as ColumnChartContext, d as JsonOutput, dt as useIntersectionObserver, en as ArrowDownWideNarrow, et as TableCell, f as OutputArea, ft as usePrevious$1, g as ADD_PRINTING_CLASS, gt as INDEX_COLUMN_NAME, h as InstallPackageButton, ht as loadTableData, it as NAMELESS_COLUMN_PREFIX, j as Command, jt as ChartInfoState, k as Combobox, kt as TabsTrigger, l as RadioGroup, lt as ColumnChartSpecModel, m as DataTable, mt as loadTableAndRawData, n as marimoVersionAtom, nt as TableHeader, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as inferFieldTypes, p as OutputRenderer, pt as getPageIndexForRow, qt as Download, r as showCodeInRunModeAtom, rt as TableRow, st as renderCellValue, t as useNotebookCodeAvailable, tt as TableHead, u as RadioGroupItem, ut as DelayMount, v as downloadByURL, vt as TOO_MANY_ROWS, w as prettifyRowCount, wt as dateToLocalISODateTime, x as Filenames, xt as isNullishFilter, y as downloadHTMLAsImage, yt as toFieldTypes, z as PANEL_TYPES, zt as $fae977aafc393c5c$export$588937bcd60ade55, __tla as __tla_2 } from "./code-visibility-5tqUgLbx.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-BBO9PIph.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";
|
|
@@ -6705,7 +6705,7 @@ let __tla = Promise.all([
|
|
|
6705
6705
|
let m2 = get(l, e2);
|
|
6706
6706
|
if (m2) {
|
|
6707
6707
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
6708
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
6708
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : WU(e2, l2), f.mount && w();
|
|
6709
6709
|
}
|
|
6710
6710
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
6711
6711
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -6778,14 +6778,14 @@ let __tla = Promise.all([
|
|
|
6778
6778
|
}, H = () => {
|
|
6779
6779
|
for (let e2 of p.unMount) {
|
|
6780
6780
|
let r2 = get(l, e2);
|
|
6781
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
6781
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && $U(e2);
|
|
6782
6782
|
}
|
|
6783
6783
|
p.unMount = /* @__PURE__ */ new Set();
|
|
6784
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
6784
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(JU(), u)), UU = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
6785
6785
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
6786
6786
|
[e2]: r2
|
|
6787
6787
|
} : r2
|
|
6788
|
-
}, c2, r2), G = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
6788
|
+
}, c2, r2), G = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), WU = (e2, r2, c2 = {}) => {
|
|
6789
6789
|
let u2 = get(l, e2), f2 = r2;
|
|
6790
6790
|
if (u2) {
|
|
6791
6791
|
let c3 = u2._f;
|
|
@@ -6798,11 +6798,11 @@ let __tla = Promise.all([
|
|
|
6798
6798
|
}
|
|
6799
6799
|
})));
|
|
6800
6800
|
}
|
|
6801
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
6801
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && qU(e2);
|
|
6802
6802
|
}, q = (e2, r2, c2) => {
|
|
6803
6803
|
for (let u2 in r2) {
|
|
6804
6804
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
6805
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? q(f2, d2, c2) :
|
|
6805
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? q(f2, d2, c2) : WU(f2, d2, c2);
|
|
6806
6806
|
}
|
|
6807
6807
|
}, Z = (e2, r2, m2 = {}) => {
|
|
6808
6808
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -6815,7 +6815,7 @@ let __tla = Promise.all([
|
|
|
6815
6815
|
name: e2,
|
|
6816
6816
|
dirtyFields: getDirtyFields(u, d),
|
|
6817
6817
|
isDirty: W(e2, y2)
|
|
6818
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? q(e2, y2, m2) :
|
|
6818
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? q(e2, y2, m2) : WU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
6819
6819
|
...c
|
|
6820
6820
|
}), _.values.next({
|
|
6821
6821
|
name: f.mount ? e2 : void 0,
|
|
@@ -6823,7 +6823,7 @@ let __tla = Promise.all([
|
|
|
6823
6823
|
...d
|
|
6824
6824
|
}
|
|
6825
6825
|
});
|
|
6826
|
-
},
|
|
6826
|
+
}, GU = async (e2) => {
|
|
6827
6827
|
f.mount = true;
|
|
6828
6828
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
6829
6829
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -6831,7 +6831,7 @@ let __tla = Promise.all([
|
|
|
6831
6831
|
if (E2) {
|
|
6832
6832
|
let u3, f2, M2 = O2(), z2 = e2.type === EVENTS.BLUR || e2.type === EVENTS.FOCUS_OUT, H2 = !hasValidation(E2._f) && !r.resolver && !get(c.errors, h2) && !E2._f.deps || skipValidation(z2, get(c.touchedFields, h2), c.isSubmitted, y, v), W2 = isWatched(h2, p, z2);
|
|
6833
6833
|
set(d, h2, M2), z2 ? (E2._f.onBlur && E2._f.onBlur(e2), m && m(0)) : E2._f.onChange && E2._f.onChange(e2);
|
|
6834
|
-
let
|
|
6834
|
+
let UU2 = I(h2, M2, z2, false), G2 = !isEmptyObject(UU2) || W2;
|
|
6835
6835
|
if (!z2 && _.values.next({
|
|
6836
6836
|
name: h2,
|
|
6837
6837
|
type: e2.type,
|
|
@@ -6840,7 +6840,7 @@ let __tla = Promise.all([
|
|
|
6840
6840
|
}
|
|
6841
6841
|
}), H2) return g.isValid && (r.mode === "onBlur" && z2 ? w() : z2 || w()), G2 && _.state.next({
|
|
6842
6842
|
name: h2,
|
|
6843
|
-
...W2 ? {} :
|
|
6843
|
+
...W2 ? {} : UU2
|
|
6844
6844
|
});
|
|
6845
6845
|
if (!z2 && W2 && _.state.next({
|
|
6846
6846
|
...c
|
|
@@ -6857,11 +6857,11 @@ let __tla = Promise.all([
|
|
|
6857
6857
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
6858
6858
|
h2
|
|
6859
6859
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
6860
|
-
S2 && (E2._f.deps &&
|
|
6860
|
+
S2 && (E2._f.deps && qU(E2._f.deps), L(h2, f2, u3, UU2));
|
|
6861
6861
|
}
|
|
6862
|
-
},
|
|
6862
|
+
}, KU = (e2, r2) => {
|
|
6863
6863
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
6864
|
-
},
|
|
6864
|
+
}, qU = async (e2, u2 = {}) => {
|
|
6865
6865
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
6866
6866
|
if (r.resolver) {
|
|
6867
6867
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -6880,23 +6880,23 @@ let __tla = Promise.all([
|
|
|
6880
6880
|
isValid: d2
|
|
6881
6881
|
} : {},
|
|
6882
6882
|
errors: c.errors
|
|
6883
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
6884
|
-
},
|
|
6883
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, KU, e2 ? m2 : p.mount), f2;
|
|
6884
|
+
}, JU = (e2) => {
|
|
6885
6885
|
let r2 = {
|
|
6886
6886
|
...f.mount ? d : u
|
|
6887
6887
|
};
|
|
6888
6888
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
6889
|
-
},
|
|
6889
|
+
}, YU = (e2, r2) => ({
|
|
6890
6890
|
invalid: !!get((r2 || c).errors, e2),
|
|
6891
6891
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
6892
6892
|
error: get((r2 || c).errors, e2),
|
|
6893
6893
|
isValidating: !!get(c.validatingFields, e2),
|
|
6894
6894
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
6895
|
-
}),
|
|
6895
|
+
}), XU = (e2) => {
|
|
6896
6896
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
6897
6897
|
errors: e2 ? c.errors : {}
|
|
6898
6898
|
});
|
|
6899
|
-
},
|
|
6899
|
+
}, ZU = (e2, r2, u2) => {
|
|
6900
6900
|
let d2 = (get(l, e2, {
|
|
6901
6901
|
_f: {}
|
|
6902
6902
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -6909,9 +6909,9 @@ let __tla = Promise.all([
|
|
|
6909
6909
|
errors: c.errors,
|
|
6910
6910
|
isValid: false
|
|
6911
6911
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
6912
|
-
},
|
|
6913
|
-
next: (c2) => e2(
|
|
6914
|
-
}) :
|
|
6912
|
+
}, QU = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
6913
|
+
next: (c2) => e2(UU(void 0, r2), c2)
|
|
6914
|
+
}) : UU(e2, r2, true), $U = (e2, f2 = {}) => {
|
|
6915
6915
|
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);
|
|
6916
6916
|
_.values.next({
|
|
6917
6917
|
values: {
|
|
@@ -6923,9 +6923,9 @@ let __tla = Promise.all([
|
|
|
6923
6923
|
isDirty: W()
|
|
6924
6924
|
} : {}
|
|
6925
6925
|
}), !f2.keepIsValid && w();
|
|
6926
|
-
},
|
|
6926
|
+
}, eW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
6927
6927
|
(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));
|
|
6928
|
-
},
|
|
6928
|
+
}, tW = (e2, c2 = {}) => {
|
|
6929
6929
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
6930
6930
|
return set(l, e2, {
|
|
6931
6931
|
...d2 || {},
|
|
@@ -6939,7 +6939,7 @@ let __tla = Promise.all([
|
|
|
6939
6939
|
mount: true,
|
|
6940
6940
|
...c2
|
|
6941
6941
|
}
|
|
6942
|
-
}), p.mount.add(e2), d2 ?
|
|
6942
|
+
}), p.mount.add(e2), d2 ? eW({
|
|
6943
6943
|
field: d2,
|
|
6944
6944
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
6945
6945
|
name: e2
|
|
@@ -6956,11 +6956,11 @@ let __tla = Promise.all([
|
|
|
6956
6956
|
pattern: getRuleValue(c2.pattern)
|
|
6957
6957
|
} : {},
|
|
6958
6958
|
name: e2,
|
|
6959
|
-
onChange:
|
|
6960
|
-
onBlur:
|
|
6959
|
+
onChange: GU,
|
|
6960
|
+
onBlur: GU,
|
|
6961
6961
|
ref: (m3) => {
|
|
6962
6962
|
if (m3) {
|
|
6963
|
-
|
|
6963
|
+
tW(e2, c2), d2 = get(l, e2);
|
|
6964
6964
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
6965
6965
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
6966
6966
|
set(l, e2, {
|
|
@@ -6986,7 +6986,7 @@ let __tla = Promise.all([
|
|
|
6986
6986
|
} 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);
|
|
6987
6987
|
}
|
|
6988
6988
|
};
|
|
6989
|
-
},
|
|
6989
|
+
}, nW = () => r.shouldFocusError && iterateFieldsByAction(l, KU, p.mount), rW = (e2) => {
|
|
6990
6990
|
isBoolean(e2) && (_.state.next({
|
|
6991
6991
|
disabled: e2
|
|
6992
6992
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -6995,7 +6995,7 @@ let __tla = Promise.all([
|
|
|
6995
6995
|
r3.disabled = u2._f.disabled || e2;
|
|
6996
6996
|
}));
|
|
6997
6997
|
}, 0, false));
|
|
6998
|
-
},
|
|
6998
|
+
}, iW = (e2, u2) => async (f2) => {
|
|
6999
6999
|
let m2;
|
|
7000
7000
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
7001
7001
|
let h2 = cloneObject(d);
|
|
@@ -7017,7 +7017,7 @@ let __tla = Promise.all([
|
|
|
7017
7017
|
}
|
|
7018
7018
|
} else u2 && await u2({
|
|
7019
7019
|
...c.errors
|
|
7020
|
-
}, f2),
|
|
7020
|
+
}, f2), nW(), setTimeout(nW);
|
|
7021
7021
|
if (_.state.next({
|
|
7022
7022
|
isSubmitted: true,
|
|
7023
7023
|
isSubmitting: false,
|
|
@@ -7025,11 +7025,11 @@ let __tla = Promise.all([
|
|
|
7025
7025
|
submitCount: c.submitCount + 1,
|
|
7026
7026
|
errors: c.errors
|
|
7027
7027
|
}), m2) throw m2;
|
|
7028
|
-
},
|
|
7028
|
+
}, aW = (e2, r2 = {}) => {
|
|
7029
7029
|
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({
|
|
7030
7030
|
...c
|
|
7031
7031
|
}));
|
|
7032
|
-
},
|
|
7032
|
+
}, oW = (e2, m2 = {}) => {
|
|
7033
7033
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
7034
7034
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
7035
7035
|
if (m2.keepDirtyValues) {
|
|
@@ -7082,25 +7082,25 @@ let __tla = Promise.all([
|
|
|
7082
7082
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
7083
7083
|
isSubmitting: false
|
|
7084
7084
|
});
|
|
7085
|
-
},
|
|
7085
|
+
}, sW = (e2, r2) => oW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
7086
7086
|
return {
|
|
7087
7087
|
control: {
|
|
7088
|
-
register:
|
|
7089
|
-
unregister:
|
|
7090
|
-
getFieldState:
|
|
7091
|
-
handleSubmit:
|
|
7092
|
-
setError:
|
|
7088
|
+
register: tW,
|
|
7089
|
+
unregister: $U,
|
|
7090
|
+
getFieldState: YU,
|
|
7091
|
+
handleSubmit: iW,
|
|
7092
|
+
setError: ZU,
|
|
7093
7093
|
_executeSchema: R,
|
|
7094
|
-
_getWatch:
|
|
7094
|
+
_getWatch: UU,
|
|
7095
7095
|
_getDirty: W,
|
|
7096
7096
|
_updateValid: w,
|
|
7097
7097
|
_removeUnmounted: H,
|
|
7098
7098
|
_updateFieldArray: E,
|
|
7099
|
-
_updateDisabledField:
|
|
7099
|
+
_updateDisabledField: eW,
|
|
7100
7100
|
_getFieldArray: G,
|
|
7101
|
-
_reset:
|
|
7101
|
+
_reset: oW,
|
|
7102
7102
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
7103
|
-
|
|
7103
|
+
sW(e2, r.resetOptions), _.state.next({
|
|
7104
7104
|
isLoading: false
|
|
7105
7105
|
});
|
|
7106
7106
|
}),
|
|
@@ -7110,7 +7110,7 @@ let __tla = Promise.all([
|
|
|
7110
7110
|
...e2
|
|
7111
7111
|
};
|
|
7112
7112
|
},
|
|
7113
|
-
_disableForm:
|
|
7113
|
+
_disableForm: rW,
|
|
7114
7114
|
_subjects: _,
|
|
7115
7115
|
_proxyFormState: g,
|
|
7116
7116
|
_setErrors: j,
|
|
@@ -7151,17 +7151,17 @@ let __tla = Promise.all([
|
|
|
7151
7151
|
};
|
|
7152
7152
|
}
|
|
7153
7153
|
},
|
|
7154
|
-
trigger:
|
|
7155
|
-
register:
|
|
7156
|
-
handleSubmit:
|
|
7157
|
-
watch:
|
|
7154
|
+
trigger: qU,
|
|
7155
|
+
register: tW,
|
|
7156
|
+
handleSubmit: iW,
|
|
7157
|
+
watch: QU,
|
|
7158
7158
|
setValue: Z,
|
|
7159
|
-
getValues:
|
|
7160
|
-
reset:
|
|
7161
|
-
resetField:
|
|
7162
|
-
clearErrors:
|
|
7163
|
-
unregister:
|
|
7164
|
-
setError:
|
|
7159
|
+
getValues: JU,
|
|
7160
|
+
reset: sW,
|
|
7161
|
+
resetField: aW,
|
|
7162
|
+
clearErrors: XU,
|
|
7163
|
+
unregister: $U,
|
|
7164
|
+
setError: ZU,
|
|
7165
7165
|
setFocus: (e2, r2 = {}) => {
|
|
7166
7166
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
7167
7167
|
if (u2) {
|
|
@@ -7169,7 +7169,7 @@ let __tla = Promise.all([
|
|
|
7169
7169
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
7170
7170
|
}
|
|
7171
7171
|
},
|
|
7172
|
-
getFieldState:
|
|
7172
|
+
getFieldState: YU
|
|
7173
7173
|
};
|
|
7174
7174
|
}
|
|
7175
7175
|
function useForm(e = {}) {
|
|
@@ -9420,8 +9420,8 @@ ${c}
|
|
|
9420
9420
|
return (() => (r || (r = true, c = e()), c));
|
|
9421
9421
|
}
|
|
9422
9422
|
var Jo = Xn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Jn = K(([{ data: e, defaultItemSize: r, firstItemIndex: c, fixedItemSize: l, fixedGroupSize: u, gap: d, groupIndices: f, heightEstimates: p, itemSize: m, sizeRanges: h, sizes: g, statefulTotalCount: _, totalCount: v, trackItemSizes: y }, { initialItemFinalLocationReached: b, initialTopMostItemIndex: S, scrolledToInitialItem: w }, T, E, O, j, { scrollToIndex: M }, I, { topItemCount: L }, { groupCounts: R }, z]) => {
|
|
9423
|
-
let { listState: B, minOverscanItemCount: H, topItemsIndexes: W, rangeChanged:
|
|
9424
|
-
return F(
|
|
9423
|
+
let { listState: B, minOverscanItemCount: H, topItemsIndexes: W, rangeChanged: UU, ...G } = j;
|
|
9424
|
+
return F(UU, z.scrollSeekRangeChanged), F(x(z.windowViewportRect, k((e2) => e2.visibleHeight)), T.viewportHeight), {
|
|
9425
9425
|
data: e,
|
|
9426
9426
|
defaultItemHeight: r,
|
|
9427
9427
|
firstItemIndex: c,
|
|
@@ -9445,7 +9445,7 @@ ${c}
|
|
|
9445
9445
|
scrollToIndex: M,
|
|
9446
9446
|
statefulTotalCount: _,
|
|
9447
9447
|
trackItemSizes: y,
|
|
9448
|
-
rangeChanged:
|
|
9448
|
+
rangeChanged: UU,
|
|
9449
9449
|
...G,
|
|
9450
9450
|
...z,
|
|
9451
9451
|
...T,
|
|
@@ -9733,7 +9733,7 @@ ${c}
|
|
|
9733
9733
|
tn("deviation", (e2) => {
|
|
9734
9734
|
T !== e2 && E(e2);
|
|
9735
9735
|
});
|
|
9736
|
-
let O = A("EmptyPlaceholder"), j = A("ScrollSeekPlaceholder") || sr, M = A("ListComponent"), I = A("ItemComponent"), L = A("GroupComponent"), R = A("computeItemKey"), z = A("isSeeking"), B = A("groupIndices").length > 0, H = A("alignToBottom"), W = A("initialItemFinalLocationReached"),
|
|
9736
|
+
let O = A("EmptyPlaceholder"), j = A("ScrollSeekPlaceholder") || sr, M = A("ListComponent"), I = A("ItemComponent"), L = A("GroupComponent"), R = A("computeItemKey"), z = A("isSeeking"), B = A("groupIndices").length > 0, H = A("alignToBottom"), W = A("initialItemFinalLocationReached"), UU = e ? {} : {
|
|
9737
9737
|
boxSizing: "border-box",
|
|
9738
9738
|
...S ? {
|
|
9739
9739
|
display: "inline-block",
|
|
@@ -9757,7 +9757,7 @@ ${c}
|
|
|
9757
9757
|
...Q(M, h),
|
|
9758
9758
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
9759
9759
|
ref: w,
|
|
9760
|
-
style:
|
|
9760
|
+
style: UU,
|
|
9761
9761
|
children: (e ? r.topItems : r.items).map((e2) => {
|
|
9762
9762
|
let c2 = e2.originalIndex, l2 = R(c2 + r.firstItemIndex, e2.data, h);
|
|
9763
9763
|
return z ? (0, import_react.createElement)(j, {
|
|
@@ -10331,33 +10331,33 @@ ${c}
|
|
|
10331
10331
|
}), B = C({
|
|
10332
10332
|
height: 0,
|
|
10333
10333
|
width: 0
|
|
10334
|
-
}), H = U(), W = U(),
|
|
10334
|
+
}), H = U(), W = U(), UU = C(0), G = C(null), WU = C({
|
|
10335
10335
|
column: 0,
|
|
10336
10336
|
row: 0
|
|
10337
|
-
}), q = U(), Z = U(),
|
|
10338
|
-
Y(x(b, $(
|
|
10339
|
-
D(
|
|
10340
|
-
}), Y(x(ut(b,
|
|
10341
|
-
D(
|
|
10337
|
+
}), q = U(), Z = U(), GU = C(false), KU = C(0), qU = C(true), JU = C(false), YU = C(false);
|
|
10338
|
+
Y(x(b, $(KU), P(([e2, r2]) => !!r2)), () => {
|
|
10339
|
+
D(qU, false);
|
|
10340
|
+
}), 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]) => {
|
|
10341
|
+
D(JU, true), Ue(1, () => {
|
|
10342
10342
|
D(H, e2);
|
|
10343
10343
|
}), Et(x(h), () => {
|
|
10344
10344
|
D(r, [
|
|
10345
10345
|
0,
|
|
10346
10346
|
0
|
|
10347
|
-
]), D(
|
|
10347
|
+
]), D(qU, true);
|
|
10348
10348
|
});
|
|
10349
10349
|
}), F(x(Z, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(Z), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
10350
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
10351
|
-
D(
|
|
10350
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(WU, e2.gap), e2.scrollTop > 0 && (D(GU, true), Et(x(h, Kt(1)), (e3) => {
|
|
10351
|
+
D(GU, false);
|
|
10352
10352
|
}), D(m, {
|
|
10353
10353
|
top: e2.scrollTop
|
|
10354
10354
|
})));
|
|
10355
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
10355
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(WU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
10356
10356
|
gap: c2,
|
|
10357
10357
|
item: r2,
|
|
10358
10358
|
scrollTop: l2,
|
|
10359
10359
|
viewport: e2
|
|
10360
|
-
}))), q), F(x(ut(V(I), l, V(
|
|
10360
|
+
}))), q), F(x(ut(V(I), l, V(WU, Or), V(B, xe), V(z, xe), V(G), V(L), V(GU), V(qU), V(KU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
10361
10361
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
10362
10362
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
10363
10363
|
if (y2 === 0) {
|
|
@@ -10376,23 +10376,23 @@ ${c}
|
|
|
10376
10376
|
offsetTop: j2,
|
|
10377
10377
|
top: j2
|
|
10378
10378
|
};
|
|
10379
|
-
})), R), F(x(G, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
10379
|
+
})), R), F(x(G, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, WU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
10380
10380
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
10381
10381
|
return [
|
|
10382
10382
|
d2,
|
|
10383
10383
|
u2
|
|
10384
10384
|
];
|
|
10385
10385
|
}), J(ce)), r);
|
|
10386
|
-
let
|
|
10387
|
-
F(x(h, $(
|
|
10388
|
-
let
|
|
10386
|
+
let XU = C(false);
|
|
10387
|
+
F(x(h, $(XU), k(([e2, r2]) => r2 || e2 !== 0)), XU);
|
|
10388
|
+
let ZU = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(XU), P(([[e2, r2], c2]) => {
|
|
10389
10389
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
10390
10390
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
10391
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
10391
|
+
}), 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 }]) => ({
|
|
10392
10392
|
endIndex: e2[e2.length - 1].index,
|
|
10393
10393
|
startIndex: e2[0].index
|
|
10394
10394
|
})), J(An), Gt(0)));
|
|
10395
|
-
F(
|
|
10395
|
+
F($U, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, WU), k(([e2, r2, c2, l2, u2]) => {
|
|
10396
10396
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
10397
10397
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
10398
10398
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -10401,16 +10401,16 @@ ${c}
|
|
|
10401
10401
|
top: g2
|
|
10402
10402
|
};
|
|
10403
10403
|
})), m);
|
|
10404
|
-
let
|
|
10404
|
+
let eW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
10405
10405
|
return F(x(j, k((e2) => ({
|
|
10406
10406
|
height: e2.visibleHeight,
|
|
10407
10407
|
width: e2.visibleWidth
|
|
10408
10408
|
}))), z), {
|
|
10409
10409
|
customScrollParent: w,
|
|
10410
10410
|
data: G,
|
|
10411
|
-
deviation:
|
|
10411
|
+
deviation: UU,
|
|
10412
10412
|
footerHeight: u,
|
|
10413
|
-
gap:
|
|
10413
|
+
gap: WU,
|
|
10414
10414
|
headerHeight: d,
|
|
10415
10415
|
increaseViewportBy: e,
|
|
10416
10416
|
initialItemCount: L,
|
|
@@ -10432,16 +10432,16 @@ ${c}
|
|
|
10432
10432
|
windowViewportRect: j,
|
|
10433
10433
|
...y,
|
|
10434
10434
|
gridState: R,
|
|
10435
|
-
horizontalDirection:
|
|
10436
|
-
initialTopMostItemIndex:
|
|
10437
|
-
totalListHeight:
|
|
10435
|
+
horizontalDirection: YU,
|
|
10436
|
+
initialTopMostItemIndex: KU,
|
|
10437
|
+
totalListHeight: eW,
|
|
10438
10438
|
...v,
|
|
10439
|
-
endReached:
|
|
10439
|
+
endReached: ZU,
|
|
10440
10440
|
propsReady: S,
|
|
10441
|
-
rangeChanged:
|
|
10442
|
-
startReached:
|
|
10441
|
+
rangeChanged: $U,
|
|
10442
|
+
startReached: QU,
|
|
10443
10443
|
stateChanged: q,
|
|
10444
|
-
stateRestoreInProgress:
|
|
10444
|
+
stateRestoreInProgress: GU,
|
|
10445
10445
|
...M
|
|
10446
10446
|
};
|
|
10447
10447
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -10886,15 +10886,15 @@ ${c}
|
|
|
10886
10886
|
value: u,
|
|
10887
10887
|
readOnly: true
|
|
10888
10888
|
}), r[29] = u, r[30] = m, r[31] = R, r[32] = z, r[33] = B, r[34] = H, r[35] = W) : W = r[35];
|
|
10889
|
-
let
|
|
10890
|
-
return r[36] !== W || r[37] !== T || r[38] !== E || r[39] !== I ? (
|
|
10889
|
+
let UU;
|
|
10890
|
+
return r[36] !== W || r[37] !== T || r[38] !== E || r[39] !== I ? (UU = (0, import_jsx_runtime.jsxs)("div", {
|
|
10891
10891
|
className: T,
|
|
10892
10892
|
children: [
|
|
10893
10893
|
E,
|
|
10894
10894
|
I,
|
|
10895
10895
|
W
|
|
10896
10896
|
]
|
|
10897
|
-
}), r[36] = W, r[37] = T, r[38] = E, r[39] = I, r[40] =
|
|
10897
|
+
}), r[36] = W, r[37] = T, r[38] = E, r[39] = I, r[40] = UU) : UU = r[40], UU;
|
|
10898
10898
|
});
|
|
10899
10899
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
10900
10900
|
var CopyButton = (e) => {
|
|
@@ -14426,21 +14426,21 @@ ${c}
|
|
|
14426
14426
|
_.pageSize,
|
|
14427
14427
|
_.pageIndex
|
|
14428
14428
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = m, r[46] = B, r[47] = H) : H = r[47];
|
|
14429
|
-
let { data: W, error:
|
|
14429
|
+
let { data: W, error: UU, isPending: G, isFetching: WU } = useAsyncData(z, H), q = useAtomValue(downloadSizeLimitAtom), Z;
|
|
14430
14430
|
r[48] !== q || r[49] !== e ? (Z = async () => !q || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = q, r[49] = e, r[50] = Z) : Z = r[50];
|
|
14431
|
-
let
|
|
14432
|
-
r[51] !== q || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
14431
|
+
let GU = e.showDownload, KU = e.get_size_bytes, qU = e.lazy, JU = e.totalRows, YU = useDeepCompareMemoize(w), XU = useDeepCompareMemoize(m), ZU;
|
|
14432
|
+
r[51] !== q || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== YU || r[58] !== XU ? (ZU = [
|
|
14433
14433
|
q,
|
|
14434
|
-
HU,
|
|
14435
|
-
UU,
|
|
14436
|
-
WU,
|
|
14437
14434
|
GU,
|
|
14438
|
-
y,
|
|
14439
14435
|
KU,
|
|
14440
|
-
qU
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14436
|
+
qU,
|
|
14437
|
+
JU,
|
|
14438
|
+
y,
|
|
14439
|
+
YU,
|
|
14440
|
+
XU
|
|
14441
|
+
], r[51] = q, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = YU, r[58] = XU, r[59] = ZU) : ZU = r[59];
|
|
14442
|
+
let { data: QU, isPending: $U } = useAsyncData(Z, ZU), eW = QU ?? null, tW = !!q && e.showDownload && $U, nW;
|
|
14443
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (nW = async (e2) => ({
|
|
14444
14444
|
rows: await loadTableData((await u({
|
|
14445
14445
|
page_number: e2,
|
|
14446
14446
|
page_size: 1,
|
|
@@ -14449,38 +14449,38 @@ ${c}
|
|
|
14449
14449
|
filters: filtersToFilterGroup(w),
|
|
14450
14450
|
max_columns: null
|
|
14451
14451
|
})).data)
|
|
14452
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14453
|
-
let
|
|
14454
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14452
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = nW) : nW = r[64];
|
|
14453
|
+
let rW = nW, iW;
|
|
14454
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = () => {
|
|
14455
14455
|
v(_temp4$4);
|
|
14456
|
-
}, r[65] =
|
|
14457
|
-
let
|
|
14458
|
-
r[66] ===
|
|
14459
|
-
|
|
14460
|
-
], r[66] =
|
|
14461
|
-
let
|
|
14462
|
-
r[68] === e ?
|
|
14456
|
+
}, r[65] = iW) : iW = r[65];
|
|
14457
|
+
let aW = W == null ? void 0 : W.totalRows, oW;
|
|
14458
|
+
r[66] === aW ? oW = r[67] : (oW = [
|
|
14459
|
+
aW
|
|
14460
|
+
], r[66] = aW, r[67] = oW), (0, import_react.useEffect)(iW, oW);
|
|
14461
|
+
let sW;
|
|
14462
|
+
r[68] === e ? sW = r[69] : (sW = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14463
14463
|
data: null,
|
|
14464
14464
|
stats: {},
|
|
14465
14465
|
bin_values: {},
|
|
14466
14466
|
value_counts: {},
|
|
14467
14467
|
show_charts: false
|
|
14468
|
-
} : e.get_column_summaries({}), r[68] = e, r[69] =
|
|
14469
|
-
let
|
|
14470
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14468
|
+
} : e.get_column_summaries({}), r[68] = e, r[69] = sW);
|
|
14469
|
+
let cW;
|
|
14470
|
+
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (cW = [
|
|
14471
14471
|
e.get_column_summaries,
|
|
14472
14472
|
e.showColumnSummaries,
|
|
14473
14473
|
w,
|
|
14474
14474
|
y,
|
|
14475
14475
|
e.totalRows,
|
|
14476
14476
|
e.data
|
|
14477
|
-
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] =
|
|
14478
|
-
let { data:
|
|
14479
|
-
if (r[77] ===
|
|
14480
|
-
|
|
14481
|
-
},
|
|
14482
|
-
|
|
14483
|
-
], r[77] =
|
|
14477
|
+
], r[70] = w, r[71] = e.data, r[72] = e.get_column_summaries, r[73] = e.showColumnSummaries, r[74] = e.totalRows, r[75] = y, r[76] = cW) : cW = r[76];
|
|
14478
|
+
let { data: lW, error: uW } = useAsyncData(sW, cW), dW, fW;
|
|
14479
|
+
if (r[77] === uW ? (dW = r[78], fW = r[79]) : (dW = () => {
|
|
14480
|
+
uW && Logger.error(uW);
|
|
14481
|
+
}, fW = [
|
|
14482
|
+
uW
|
|
14483
|
+
], r[77] = uW, r[78] = dW, r[79] = fW), (0, import_react.useEffect)(dW, fW), G) {
|
|
14484
14484
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14485
14485
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14486
14486
|
milliseconds: 200,
|
|
@@ -14489,11 +14489,11 @@ ${c}
|
|
|
14489
14489
|
})
|
|
14490
14490
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14491
14491
|
}
|
|
14492
|
-
let
|
|
14493
|
-
if (
|
|
14494
|
-
Logger.error(
|
|
14492
|
+
let pW = null;
|
|
14493
|
+
if (UU) {
|
|
14494
|
+
Logger.error(UU);
|
|
14495
14495
|
let e2;
|
|
14496
|
-
r[82] ===
|
|
14496
|
+
r[82] === UU ? e2 = r[83] : (e2 = !isStaticNotebook() && (0, import_jsx_runtime.jsxs)(Alert, {
|
|
14497
14497
|
variant: "destructive",
|
|
14498
14498
|
className: "mb-2",
|
|
14499
14499
|
children: [
|
|
@@ -14502,64 +14502,64 @@ ${c}
|
|
|
14502
14502
|
}),
|
|
14503
14503
|
(0, import_jsx_runtime.jsx)("div", {
|
|
14504
14504
|
className: "text-md",
|
|
14505
|
-
children:
|
|
14505
|
+
children: UU.message || "An unknown error occurred"
|
|
14506
14506
|
})
|
|
14507
14507
|
]
|
|
14508
|
-
}), r[82] =
|
|
14508
|
+
}), r[82] = UU, r[83] = e2), pW = e2;
|
|
14509
14509
|
}
|
|
14510
|
-
let
|
|
14511
|
-
r[84] === O ?
|
|
14510
|
+
let mW;
|
|
14511
|
+
r[84] === O ? mW = r[85] : (mW = () => {
|
|
14512
14512
|
j(!O);
|
|
14513
|
-
}, r[84] = O, r[85] =
|
|
14514
|
-
let
|
|
14515
|
-
r[86] !== l || r[87] !==
|
|
14513
|
+
}, r[84] = O, r[85] = mW);
|
|
14514
|
+
let hW = mW, gW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, _W = W == null ? void 0 : W.rawRows, vW = WU && !G, yW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, bW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, xW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, SW;
|
|
14515
|
+
r[86] !== l || r[87] !== lW || r[88] !== O || r[89] !== w || r[90] !== rW || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== eW || r[95] !== tW || r[96] !== m || r[97] !== gW || r[98] !== _W || r[99] !== vW || r[100] !== yW || r[101] !== bW || r[102] !== xW || r[103] !== hW ? (SW = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
14516
14516
|
...e,
|
|
14517
|
-
data:
|
|
14518
|
-
rawData:
|
|
14519
|
-
columnSummaries:
|
|
14517
|
+
data: gW,
|
|
14518
|
+
rawData: _W,
|
|
14519
|
+
columnSummaries: lW,
|
|
14520
14520
|
sorting: m,
|
|
14521
14521
|
setSorting: h,
|
|
14522
14522
|
searchQuery: y,
|
|
14523
14523
|
setSearchQuery: b,
|
|
14524
14524
|
filters: w,
|
|
14525
14525
|
setFilters: T,
|
|
14526
|
-
reloading:
|
|
14527
|
-
totalRows:
|
|
14528
|
-
sizeBytes:
|
|
14529
|
-
sizeBytesIsLoading:
|
|
14526
|
+
reloading: vW,
|
|
14527
|
+
totalRows: yW,
|
|
14528
|
+
sizeBytes: eW,
|
|
14529
|
+
sizeBytesIsLoading: tW,
|
|
14530
14530
|
paginationState: _,
|
|
14531
14531
|
setPaginationState: v,
|
|
14532
|
-
cellStyles:
|
|
14533
|
-
cellHoverTexts:
|
|
14534
|
-
toggleDisplayHeader:
|
|
14532
|
+
cellStyles: bW,
|
|
14533
|
+
cellHoverTexts: xW,
|
|
14534
|
+
toggleDisplayHeader: hW,
|
|
14535
14535
|
isChartBuilderOpen: O,
|
|
14536
|
-
getRow:
|
|
14536
|
+
getRow: rW,
|
|
14537
14537
|
cellId: l,
|
|
14538
14538
|
maxHeight: e.maxHeight
|
|
14539
|
-
}), r[86] = l, r[87] =
|
|
14540
|
-
let
|
|
14541
|
-
r[105] !== l || r[106] !==
|
|
14539
|
+
}), r[86] = l, r[87] = lW, r[88] = O, r[89] = w, r[90] = rW, r[91] = _, r[92] = e, r[93] = y, r[94] = eW, r[95] = tW, r[96] = m, r[97] = gW, r[98] = _W, r[99] = vW, r[100] = yW, r[101] = bW, r[102] = xW, r[103] = hW, r[104] = SW) : SW = r[104];
|
|
14540
|
+
let CW = SW, wW;
|
|
14541
|
+
r[105] !== l || r[106] !== CW || r[107] !== (W == null ? void 0 : W.rows) || r[108] !== O || r[109] !== e.fieldTypes || r[110] !== e.get_data_url || r[111] !== e.showChartBuilder || r[112] !== e.totalColumns || r[113] !== e.totalRows ? (wW = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
14542
14542
|
displayHeader: O,
|
|
14543
14543
|
onCloseChartBuilder: () => j(false),
|
|
14544
14544
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14545
14545
|
columns: e.totalColumns,
|
|
14546
14546
|
totalRows: e.totalRows,
|
|
14547
|
-
dataTable:
|
|
14547
|
+
dataTable: CW,
|
|
14548
14548
|
getDataUrl: e.get_data_url,
|
|
14549
14549
|
fieldTypes: e.fieldTypes,
|
|
14550
14550
|
cellId: l
|
|
14551
|
-
}) :
|
|
14552
|
-
let
|
|
14553
|
-
return r[115] !==
|
|
14551
|
+
}) : CW, r[105] = l, r[106] = CW, r[107] = W == null ? void 0 : W.rows, r[108] = O, r[109] = e.fieldTypes, r[110] = e.get_data_url, r[111] = e.showChartBuilder, r[112] = e.totalColumns, r[113] = e.totalRows, r[114] = wW) : wW = r[114];
|
|
14552
|
+
let TW;
|
|
14553
|
+
return r[115] !== pW || r[116] !== wW ? (TW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14554
14554
|
children: [
|
|
14555
|
-
|
|
14556
|
-
|
|
14555
|
+
pW,
|
|
14556
|
+
wW
|
|
14557
14557
|
]
|
|
14558
|
-
}), r[115] =
|
|
14558
|
+
}), r[115] = pW, r[116] = wW, r[117] = TW) : TW = r[117], TW;
|
|
14559
14559
|
});
|
|
14560
14560
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14561
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, enableSearch: W, searchQuery:
|
|
14562
|
-
let
|
|
14561
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: d, maxColumns: f, pagination: p, selection: m, value: h, showFilters: g, showDownload: _, showPageSizeSelector: v, showColumnExplorer: y, showRowExplorer: b, showChartBuilder: S, showDataTypes: w, rowHeaders: T, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, enableSearch: W, searchQuery: UU, setSearchQuery: G, filters: WU, setFilters: q, reloading: Z, freezeColumnsLeft: GU, freezeColumnsRight: KU, hiddenColumns: qU, textJustifyColumns: JU, wrappedColumns: YU, headerTooltip: XU, totalColumns: ZU, get_row_ids: QU, cellStyles: $U, hoverTemplate: eW, cellHoverTexts: tW, toggleDisplayHeader: nW, isChartBuilderOpen: rW, calculate_top_k_rows: iW, preview_column: aW, getRow: oW, cellId: sW, maxHeight: cW }) => {
|
|
14562
|
+
let lW = (0, import_react.useId)(), [uW, dW] = (0, import_react.useState)(0), { isPanelOpen: fW, isAnyPanelOpen: pW, togglePanel: mW, panelType: hW, setPanelType: gW } = usePanelOwnership(lW, sW), _W = (0, import_react.useMemo)(() => {
|
|
14563
14563
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14564
14564
|
let e2 = toFieldTypes(O);
|
|
14565
14565
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14568,13 +14568,13 @@ ${c}
|
|
|
14568
14568
|
}, [
|
|
14569
14569
|
O,
|
|
14570
14570
|
L
|
|
14571
|
-
]),
|
|
14571
|
+
]), vW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), yW = (0, import_react.useMemo)(() => f === "all" ? vW : vW.slice(0, f), [
|
|
14572
14572
|
f,
|
|
14573
|
-
|
|
14574
|
-
]),
|
|
14573
|
+
vW
|
|
14574
|
+
]), bW = (0, import_react.useMemo)(() => {
|
|
14575
14575
|
let e2 = {};
|
|
14576
14576
|
if (r && r.length > 0) {
|
|
14577
|
-
for (let [c2, l2] of
|
|
14577
|
+
for (let [c2, l2] of yW) if (l2[0] === "number") {
|
|
14578
14578
|
let l3 = 0;
|
|
14579
14579
|
for (let e3 of r) {
|
|
14580
14580
|
let r2 = e3[c2];
|
|
@@ -14589,93 +14589,93 @@ ${c}
|
|
|
14589
14589
|
return e2;
|
|
14590
14590
|
}, [
|
|
14591
14591
|
r,
|
|
14592
|
-
|
|
14593
|
-
]),
|
|
14592
|
+
yW
|
|
14593
|
+
]), xW = useDeepCompareMemoize(T), SW = useDeepCompareMemoize(JU), CW = useDeepCompareMemoize(YU), wW = useDeepCompareMemoize(_W), TW = useDeepCompareMemoize(bW), EW = yW.length;
|
|
14594
14594
|
O || (w = false);
|
|
14595
|
-
let
|
|
14596
|
-
rowHeaders:
|
|
14595
|
+
let DW = (0, import_react.useMemo)(() => generateColumns({
|
|
14596
|
+
rowHeaders: xW,
|
|
14597
14597
|
selection: m,
|
|
14598
|
-
chartSpecModel:
|
|
14599
|
-
fieldTypes:
|
|
14600
|
-
textJustifyColumns:
|
|
14601
|
-
wrappedColumns:
|
|
14602
|
-
headerTooltip:
|
|
14598
|
+
chartSpecModel: wW,
|
|
14599
|
+
fieldTypes: yW,
|
|
14600
|
+
textJustifyColumns: SW,
|
|
14601
|
+
wrappedColumns: CW,
|
|
14602
|
+
headerTooltip: XU,
|
|
14603
14603
|
showDataTypes: w,
|
|
14604
|
-
calculateTopKRows:
|
|
14605
|
-
fractionDigitsByColumn:
|
|
14604
|
+
calculateTopKRows: iW,
|
|
14605
|
+
fractionDigitsByColumn: TW
|
|
14606
14606
|
}), [
|
|
14607
14607
|
m,
|
|
14608
14608
|
w,
|
|
14609
|
+
wW,
|
|
14609
14610
|
xW,
|
|
14610
|
-
vW,
|
|
14611
|
-
gW,
|
|
14612
14611
|
yW,
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14612
|
+
SW,
|
|
14613
|
+
CW,
|
|
14614
|
+
XU,
|
|
14615
|
+
iW,
|
|
14616
|
+
TW
|
|
14617
|
+
]), OW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14618
14618
|
e2,
|
|
14619
14619
|
true
|
|
14620
14620
|
])), [
|
|
14621
14621
|
h
|
|
14622
|
-
]),
|
|
14622
|
+
]), kW = useEvent_default((e2) => {
|
|
14623
14623
|
if (m === "single") {
|
|
14624
14624
|
let r2 = Functions.asUpdater(e2)({});
|
|
14625
14625
|
z(Object.keys(r2).slice(0, 1));
|
|
14626
14626
|
}
|
|
14627
14627
|
if (m === "multi") {
|
|
14628
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14628
|
+
let r2 = Functions.asUpdater(e2)(OW);
|
|
14629
14629
|
z(Object.keys(r2));
|
|
14630
14630
|
}
|
|
14631
|
-
}),
|
|
14632
|
-
if (
|
|
14631
|
+
}), AW = useEvent_default((e2) => {
|
|
14632
|
+
if (dW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14633
14633
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14634
14634
|
r2 !== null && M((e3) => ({
|
|
14635
14635
|
...e3,
|
|
14636
14636
|
pageIndex: r2
|
|
14637
14637
|
}));
|
|
14638
|
-
}),
|
|
14639
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14640
|
-
}),
|
|
14641
|
-
if (!(!
|
|
14638
|
+
}), jW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), MW = useEvent_default((e2) => {
|
|
14639
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(jW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(jW));
|
|
14640
|
+
}), NW = m === "multi" || m === "single", PW = y && !!aW, FW = isInVscodeExtension(), IW = isIslands(), LW = (0, import_react.useMemo)(() => {
|
|
14641
|
+
if (!(!pW || !(b || PW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14642
14642
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14643
|
-
rowIdx:
|
|
14644
|
-
setRowIdx:
|
|
14643
|
+
rowIdx: uW,
|
|
14644
|
+
setRowIdx: AW,
|
|
14645
14645
|
totalRows: l,
|
|
14646
|
-
fieldTypes:
|
|
14647
|
-
getRow:
|
|
14648
|
-
isSelectable:
|
|
14649
|
-
isRowSelected: !!
|
|
14650
|
-
handleRowSelectionChange:
|
|
14651
|
-
previewColumn:
|
|
14652
|
-
totalColumns:
|
|
14653
|
-
tableId:
|
|
14646
|
+
fieldTypes: vW,
|
|
14647
|
+
getRow: oW,
|
|
14648
|
+
isSelectable: NW,
|
|
14649
|
+
isRowSelected: !!OW[uW],
|
|
14650
|
+
handleRowSelectionChange: kW,
|
|
14651
|
+
previewColumn: aW,
|
|
14652
|
+
totalColumns: ZU,
|
|
14653
|
+
tableId: lW,
|
|
14654
14654
|
table: e2,
|
|
14655
|
-
showRowExplorer: b && !
|
|
14656
|
-
showColumnExplorer:
|
|
14657
|
-
activeTab:
|
|
14658
|
-
onTabChange:
|
|
14655
|
+
showRowExplorer: b && !FW,
|
|
14656
|
+
showColumnExplorer: PW && !FW,
|
|
14657
|
+
activeTab: hW,
|
|
14658
|
+
onTabChange: gW
|
|
14659
14659
|
})
|
|
14660
14660
|
});
|
|
14661
14661
|
}, [
|
|
14662
|
-
|
|
14662
|
+
pW,
|
|
14663
14663
|
b,
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
DW,
|
|
14667
|
-
l,
|
|
14668
|
-
hW,
|
|
14669
|
-
rW,
|
|
14664
|
+
PW,
|
|
14665
|
+
uW,
|
|
14670
14666
|
AW,
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
nW,
|
|
14674
|
-
JU,
|
|
14667
|
+
l,
|
|
14668
|
+
vW,
|
|
14675
14669
|
oW,
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14670
|
+
NW,
|
|
14671
|
+
OW,
|
|
14672
|
+
kW,
|
|
14673
|
+
aW,
|
|
14674
|
+
ZU,
|
|
14675
|
+
lW,
|
|
14676
|
+
FW,
|
|
14677
|
+
hW,
|
|
14678
|
+
gW
|
|
14679
14679
|
]);
|
|
14680
14680
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14681
14681
|
children: [
|
|
@@ -14687,13 +14687,13 @@ ${c}
|
|
|
14687
14687
|
" rows."
|
|
14688
14688
|
]
|
|
14689
14689
|
}),
|
|
14690
|
-
|
|
14690
|
+
EW < ZU && EW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14691
14691
|
className: "mb-1 rounded",
|
|
14692
14692
|
children: [
|
|
14693
14693
|
"Result clipped. Showing ",
|
|
14694
|
-
|
|
14694
|
+
EW,
|
|
14695
14695
|
" of ",
|
|
14696
|
-
|
|
14696
|
+
ZU,
|
|
14697
14697
|
" columns."
|
|
14698
14698
|
]
|
|
14699
14699
|
}),
|
|
@@ -14702,7 +14702,7 @@ ${c}
|
|
|
14702
14702
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14703
14703
|
}),
|
|
14704
14704
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14705
|
-
value:
|
|
14705
|
+
value: _W,
|
|
14706
14706
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14707
14707
|
label: e,
|
|
14708
14708
|
align: "top",
|
|
@@ -14710,14 +14710,14 @@ ${c}
|
|
|
14710
14710
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14711
14711
|
data: r,
|
|
14712
14712
|
rawData: c,
|
|
14713
|
-
columns:
|
|
14713
|
+
columns: DW,
|
|
14714
14714
|
className: R,
|
|
14715
|
-
maxHeight:
|
|
14715
|
+
maxHeight: cW,
|
|
14716
14716
|
sorting: B,
|
|
14717
14717
|
totalRows: l,
|
|
14718
14718
|
sizeBytes: u,
|
|
14719
14719
|
sizeBytesIsLoading: d,
|
|
14720
|
-
totalColumns:
|
|
14720
|
+
totalColumns: ZU,
|
|
14721
14721
|
manualSorting: true,
|
|
14722
14722
|
setSorting: H,
|
|
14723
14723
|
pagination: p,
|
|
@@ -14725,37 +14725,37 @@ ${c}
|
|
|
14725
14725
|
selection: m,
|
|
14726
14726
|
paginationState: j,
|
|
14727
14727
|
setPaginationState: M,
|
|
14728
|
-
rowSelection:
|
|
14729
|
-
cellSelection:
|
|
14730
|
-
cellStyling:
|
|
14731
|
-
hoverTemplate:
|
|
14732
|
-
cellHoverTexts:
|
|
14728
|
+
rowSelection: OW,
|
|
14729
|
+
cellSelection: jW,
|
|
14730
|
+
cellStyling: $U,
|
|
14731
|
+
hoverTemplate: eW,
|
|
14732
|
+
cellHoverTexts: tW,
|
|
14733
14733
|
downloadAs: _ ? I : void 0,
|
|
14734
14734
|
enableSearch: W,
|
|
14735
|
-
searchQuery:
|
|
14735
|
+
searchQuery: UU,
|
|
14736
14736
|
onSearchQueryChange: G,
|
|
14737
14737
|
showFilters: g,
|
|
14738
|
-
filters:
|
|
14738
|
+
filters: WU,
|
|
14739
14739
|
onFiltersChange: q,
|
|
14740
|
-
calculateTopKRows:
|
|
14740
|
+
calculateTopKRows: iW,
|
|
14741
14741
|
reloading: Z,
|
|
14742
|
-
onRowSelectionChange:
|
|
14743
|
-
freezeColumnsLeft:
|
|
14744
|
-
freezeColumnsRight:
|
|
14745
|
-
hiddenColumns:
|
|
14746
|
-
onCellSelectionChange:
|
|
14747
|
-
getRowIds:
|
|
14748
|
-
toggleDisplayHeader:
|
|
14749
|
-
showChartBuilder: S && !
|
|
14750
|
-
isChartBuilderOpen:
|
|
14742
|
+
onRowSelectionChange: kW,
|
|
14743
|
+
freezeColumnsLeft: GU,
|
|
14744
|
+
freezeColumnsRight: KU,
|
|
14745
|
+
hiddenColumns: qU,
|
|
14746
|
+
onCellSelectionChange: MW,
|
|
14747
|
+
getRowIds: QU,
|
|
14748
|
+
toggleDisplayHeader: nW,
|
|
14749
|
+
showChartBuilder: S && !IW,
|
|
14750
|
+
isChartBuilderOpen: rW,
|
|
14751
14751
|
showPageSizeSelector: v,
|
|
14752
|
-
showTableExplorer: (b ||
|
|
14753
|
-
togglePanel:
|
|
14754
|
-
isPanelOpen:
|
|
14755
|
-
isAnyPanelOpen:
|
|
14756
|
-
viewedRowIdx:
|
|
14757
|
-
onViewedRowChange: (e2) =>
|
|
14758
|
-
renderTableExplorerPanel:
|
|
14752
|
+
showTableExplorer: (b || PW) && !FW && !IW,
|
|
14753
|
+
togglePanel: mW,
|
|
14754
|
+
isPanelOpen: fW,
|
|
14755
|
+
isAnyPanelOpen: pW,
|
|
14756
|
+
viewedRowIdx: uW,
|
|
14757
|
+
onViewedRowChange: (e2) => dW(e2),
|
|
14758
|
+
renderTableExplorerPanel: LW
|
|
14759
14759
|
})
|
|
14760
14760
|
})
|
|
14761
14761
|
})
|
|
@@ -16858,29 +16858,29 @@ ${c}
|
|
|
16858
16858
|
], r[2] = S, r[3] = w);
|
|
16859
16859
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16860
16860
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16861
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M,
|
|
16861
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, UU = z == null ? void 0 : z.length, [G, WU] = (0, import_react.useState)(f || EMPTY), q = (0, import_react.useRef)(null), Z;
|
|
16862
16862
|
r[6] === d ? Z = r[7] : (Z = (e2) => {
|
|
16863
16863
|
var _a3;
|
|
16864
16864
|
d && e2 !== "transform" && ((_a3 = q.current) == null ? void 0 : _a3.submit());
|
|
16865
16865
|
}, r[6] = d, r[7] = Z);
|
|
16866
|
-
let
|
|
16867
|
-
r[8] === G ?
|
|
16868
|
-
|
|
16869
|
-
}, r[8] = G, r[9] =
|
|
16870
|
-
let
|
|
16871
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16872
|
-
let e2 =
|
|
16866
|
+
let GU = Z, KU = (0, import_react.useRef)(G), qU;
|
|
16867
|
+
r[8] === G ? qU = r[9] : (qU = () => {
|
|
16868
|
+
KU.current = G;
|
|
16869
|
+
}, r[8] = G, r[9] = qU), (0, import_react.useEffect)(qU);
|
|
16870
|
+
let JU;
|
|
16871
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (JU = () => {
|
|
16872
|
+
let e2 = KU.current;
|
|
16873
16873
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16874
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16875
|
-
let
|
|
16876
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16874
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = JU) : JU = r[12];
|
|
16875
|
+
let YU = f == null ? void 0 : f.transforms.length, XU;
|
|
16876
|
+
r[13] !== T || r[14] !== p || r[15] !== YU ? (XU = [
|
|
16877
16877
|
T,
|
|
16878
|
+
YU,
|
|
16878
16879
|
KU,
|
|
16879
|
-
UU,
|
|
16880
16880
|
p
|
|
16881
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16882
|
-
let
|
|
16883
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16881
|
+
], r[13] = T, r[14] = p, r[15] = YU, r[16] = XU) : XU = r[16], (0, import_react.useEffect)(JU, XU);
|
|
16882
|
+
let ZU;
|
|
16883
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16884
16884
|
value: "transform",
|
|
16885
16885
|
className: "text-xs py-1",
|
|
16886
16886
|
children: [
|
|
@@ -16889,9 +16889,9 @@ ${c}
|
|
|
16889
16889
|
}),
|
|
16890
16890
|
"Transform"
|
|
16891
16891
|
]
|
|
16892
|
-
}), r[17] =
|
|
16893
|
-
let
|
|
16894
|
-
r[18] === H ?
|
|
16892
|
+
}), r[17] = ZU) : ZU = r[17];
|
|
16893
|
+
let QU;
|
|
16894
|
+
r[18] === H ? QU = r[19] : (QU = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16895
16895
|
value: "python-code",
|
|
16896
16896
|
className: "text-xs py-1",
|
|
16897
16897
|
children: [
|
|
@@ -16900,9 +16900,9 @@ ${c}
|
|
|
16900
16900
|
}),
|
|
16901
16901
|
"Python Code"
|
|
16902
16902
|
]
|
|
16903
|
-
}), r[18] = H, r[19] =
|
|
16904
|
-
let
|
|
16905
|
-
r[20] === W ?
|
|
16903
|
+
}), r[18] = H, r[19] = QU);
|
|
16904
|
+
let $U;
|
|
16905
|
+
r[20] === W ? $U = r[21] : ($U = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16906
16906
|
value: "sql-code",
|
|
16907
16907
|
className: "text-xs py-1",
|
|
16908
16908
|
children: [
|
|
@@ -16911,54 +16911,54 @@ ${c}
|
|
|
16911
16911
|
}),
|
|
16912
16912
|
"SQL Code"
|
|
16913
16913
|
]
|
|
16914
|
-
}), r[20] = W, r[21] =
|
|
16915
|
-
let
|
|
16916
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16914
|
+
}), r[20] = W, r[21] = $U);
|
|
16915
|
+
let tW;
|
|
16916
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tW = (0, import_jsx_runtime.jsx)("div", {
|
|
16917
16917
|
className: "grow"
|
|
16918
|
-
}), r[22] =
|
|
16919
|
-
let
|
|
16920
|
-
r[23] !==
|
|
16918
|
+
}), r[22] = tW) : tW = r[22];
|
|
16919
|
+
let nW;
|
|
16920
|
+
r[23] !== QU || r[24] !== $U ? (nW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16921
16921
|
className: "h-8",
|
|
16922
16922
|
children: [
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
16923
|
+
ZU,
|
|
16924
|
+
QU,
|
|
16925
|
+
$U,
|
|
16926
|
+
tW
|
|
16927
16927
|
]
|
|
16928
|
-
}), r[23] =
|
|
16929
|
-
let
|
|
16930
|
-
r[26] === j ?
|
|
16928
|
+
}), r[23] = QU, r[24] = $U, r[25] = nW) : nW = r[25];
|
|
16929
|
+
let rW;
|
|
16930
|
+
r[26] === j ? rW = r[27] : (rW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16931
16931
|
size: "small"
|
|
16932
|
-
}), r[26] = j, r[27] =
|
|
16933
|
-
let
|
|
16934
|
-
r[28] !==
|
|
16932
|
+
}), r[26] = j, r[27] = rW);
|
|
16933
|
+
let iW;
|
|
16934
|
+
r[28] !== nW || r[29] !== rW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16935
16935
|
className: "flex items-center gap-2",
|
|
16936
16936
|
children: [
|
|
16937
|
-
|
|
16938
|
-
|
|
16937
|
+
nW,
|
|
16938
|
+
rW
|
|
16939
16939
|
]
|
|
16940
|
-
}), r[28] =
|
|
16941
|
-
let
|
|
16942
|
-
r[31] !== p || r[32] !== f ? (
|
|
16943
|
-
dequal(e2, f) || (p(e2),
|
|
16944
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16945
|
-
let
|
|
16946
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !==
|
|
16940
|
+
}), r[28] = nW, r[29] = rW, r[30] = iW) : iW = r[30];
|
|
16941
|
+
let aW;
|
|
16942
|
+
r[31] !== p || r[32] !== f ? (aW = (e2) => {
|
|
16943
|
+
dequal(e2, f) || (p(e2), WU(e2));
|
|
16944
|
+
}, r[31] = p, r[32] = f, r[33] = aW) : aW = r[33];
|
|
16945
|
+
let oW;
|
|
16946
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== G || r[38] !== d || r[39] !== aW ? (oW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16947
16947
|
value: "transform",
|
|
16948
16948
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16949
16949
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16950
16950
|
ref: q,
|
|
16951
16951
|
initialValue: G,
|
|
16952
16952
|
columns: c,
|
|
16953
|
-
onChange:
|
|
16954
|
-
onInvalidChange:
|
|
16953
|
+
onChange: aW,
|
|
16954
|
+
onInvalidChange: WU,
|
|
16955
16955
|
getColumnValues: h,
|
|
16956
16956
|
columnTypesPerStep: B,
|
|
16957
16957
|
lazy: d
|
|
16958
16958
|
})
|
|
16959
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] =
|
|
16960
|
-
let
|
|
16961
|
-
r[41] === H ?
|
|
16959
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = G, r[38] = d, r[39] = aW, r[40] = oW) : oW = r[40];
|
|
16960
|
+
let sW;
|
|
16961
|
+
r[41] === H ? sW = r[42] : (sW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16962
16962
|
value: "python-code",
|
|
16963
16963
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16964
16964
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16967,9 +16967,9 @@ ${c}
|
|
|
16967
16967
|
code: H,
|
|
16968
16968
|
language: "python"
|
|
16969
16969
|
})
|
|
16970
|
-
}), r[41] = H, r[42] =
|
|
16971
|
-
let
|
|
16972
|
-
r[43] === W ?
|
|
16970
|
+
}), r[41] = H, r[42] = sW);
|
|
16971
|
+
let cW;
|
|
16972
|
+
r[43] === W ? cW = r[44] : (cW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16973
16973
|
value: "sql-code",
|
|
16974
16974
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16975
16975
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16978,35 +16978,35 @@ ${c}
|
|
|
16978
16978
|
code: W,
|
|
16979
16979
|
language: "sql"
|
|
16980
16980
|
})
|
|
16981
|
-
}), r[43] = W, r[44] =
|
|
16982
|
-
let
|
|
16983
|
-
r[45] !==
|
|
16981
|
+
}), r[43] = W, r[44] = cW);
|
|
16982
|
+
let lW;
|
|
16983
|
+
r[45] !== GU || r[46] !== iW || r[47] !== oW || r[48] !== sW || r[49] !== cW ? (lW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16984
16984
|
defaultValue: "transform",
|
|
16985
|
-
onValueChange:
|
|
16985
|
+
onValueChange: GU,
|
|
16986
16986
|
children: [
|
|
16987
|
-
tW,
|
|
16988
|
-
rW,
|
|
16989
16987
|
iW,
|
|
16990
|
-
|
|
16988
|
+
oW,
|
|
16989
|
+
sW,
|
|
16990
|
+
cW
|
|
16991
16991
|
]
|
|
16992
|
-
}), r[45] =
|
|
16993
|
-
let
|
|
16994
|
-
r[51] === O ?
|
|
16992
|
+
}), r[45] = GU, r[46] = iW, r[47] = oW, r[48] = sW, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
16993
|
+
let uW;
|
|
16994
|
+
r[51] === O ? uW = r[52] : (uW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16995
16995
|
error: O
|
|
16996
|
-
}), r[51] = O, r[52] =
|
|
16997
|
-
let
|
|
16998
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16996
|
+
}), r[51] = O, r[52] = uW);
|
|
16997
|
+
let dW = I || "", fW = L ?? 0, pW = UU ?? 0, mW = R || Arrays.EMPTY, hW = L && L > 5 || false, gW;
|
|
16998
|
+
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !== dW || r[61] !== fW || r[62] !== pW || r[63] !== mW || r[64] !== hW ? (gW = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
16999
16999
|
label: null,
|
|
17000
17000
|
className: "rounded-b border-x border-b",
|
|
17001
|
-
data:
|
|
17001
|
+
data: dW,
|
|
17002
17002
|
hasStableRowId: false,
|
|
17003
|
-
totalRows:
|
|
17004
|
-
totalColumns:
|
|
17003
|
+
totalRows: fW,
|
|
17004
|
+
totalColumns: pW,
|
|
17005
17005
|
maxColumns: "all",
|
|
17006
17006
|
pageSize: l,
|
|
17007
17007
|
pagination: true,
|
|
17008
17008
|
fieldTypes: z,
|
|
17009
|
-
rowHeaders:
|
|
17009
|
+
rowHeaders: mW,
|
|
17010
17010
|
showDownload: u,
|
|
17011
17011
|
download_as: _,
|
|
17012
17012
|
get_size_bytes: v,
|
|
@@ -17016,7 +17016,7 @@ ${c}
|
|
|
17016
17016
|
showColumnSummaries: false,
|
|
17017
17017
|
showDataTypes: true,
|
|
17018
17018
|
get_column_summaries: getColumnSummaries,
|
|
17019
|
-
showPageSizeSelector:
|
|
17019
|
+
showPageSizeSelector: hW,
|
|
17020
17020
|
showColumnExplorer: false,
|
|
17021
17021
|
showRowExplorer: true,
|
|
17022
17022
|
showChartBuilder: false,
|
|
@@ -17025,15 +17025,15 @@ ${c}
|
|
|
17025
17025
|
selection: null,
|
|
17026
17026
|
lazy: false,
|
|
17027
17027
|
host: y
|
|
17028
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
17029
|
-
let
|
|
17030
|
-
return r[66] !==
|
|
17028
|
+
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] = dW, r[61] = fW, r[62] = pW, r[63] = mW, r[64] = hW, r[65] = gW) : gW = r[65];
|
|
17029
|
+
let _W;
|
|
17030
|
+
return r[66] !== lW || r[67] !== uW || r[68] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
17031
17031
|
children: [
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17032
|
+
lW,
|
|
17033
|
+
uW,
|
|
17034
|
+
gW
|
|
17035
17035
|
]
|
|
17036
|
-
}), r[66] =
|
|
17036
|
+
}), r[66] = lW, r[67] = uW, r[68] = gW, r[69] = _W) : _W = r[69], _W;
|
|
17037
17037
|
});
|
|
17038
17038
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17039
17039
|
function getColumnSummaries() {
|
|
@@ -17221,9 +17221,9 @@ ${c}
|
|
|
17221
17221
|
}, W = [
|
|
17222
17222
|
B
|
|
17223
17223
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
17224
|
-
let
|
|
17224
|
+
let UU, G, WU, q, Z, GU, qU, JU, XU;
|
|
17225
17225
|
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) {
|
|
17226
|
-
|
|
17226
|
+
XU = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
17227
17227
|
bb0: {
|
|
17228
17228
|
Z = (R == null ? void 0 : R.files) ?? [];
|
|
17229
17229
|
let e2;
|
|
@@ -17231,18 +17231,18 @@ ${c}
|
|
|
17231
17231
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
17232
17232
|
r[33] !== g2 || r[34] !== _2 ? (w = (e3) => g2 && e3.is_directory || _2 && !e3.is_directory, r[33] = g2, r[34] = _2, r[35] = w) : w = r[35];
|
|
17233
17233
|
let T2 = Z.filter(w);
|
|
17234
|
-
if (
|
|
17234
|
+
if (UU = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
17235
17235
|
let e3;
|
|
17236
17236
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
17237
17237
|
kind: "danger",
|
|
17238
17238
|
children: z.message
|
|
17239
|
-
}), r[36] = z.message, r[37] = e3),
|
|
17239
|
+
}), r[36] = z.message, r[37] = e3), XU = e3;
|
|
17240
17240
|
break bb0;
|
|
17241
17241
|
}
|
|
17242
17242
|
let E2;
|
|
17243
17243
|
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), G = E2.deliminator;
|
|
17244
17244
|
let O2;
|
|
17245
|
-
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$6), r[40] = c, r[41] = O2),
|
|
17245
|
+
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$6), r[40] = c, r[41] = O2), qU = O2;
|
|
17246
17246
|
let j2;
|
|
17247
17247
|
r[42] !== G || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
17248
17248
|
if (b) return;
|
|
@@ -17263,7 +17263,7 @@ ${c}
|
|
|
17263
17263
|
return;
|
|
17264
17264
|
}
|
|
17265
17265
|
y(e3), S(false);
|
|
17266
|
-
}, r[42] = G, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48],
|
|
17266
|
+
}, r[42] = G, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], JU = j2;
|
|
17267
17267
|
let M2;
|
|
17268
17268
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e3) {
|
|
17269
17269
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -17291,7 +17291,7 @@ ${c}
|
|
|
17291
17291
|
let H2 = B2, W2;
|
|
17292
17292
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17293
17293
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17294
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
17294
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], WU = W2, GU = function() {
|
|
17295
17295
|
let e3 = [];
|
|
17296
17296
|
for (let r2 of Z) {
|
|
17297
17297
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
@@ -17307,32 +17307,32 @@ ${c}
|
|
|
17307
17307
|
...e3
|
|
17308
17308
|
]);
|
|
17309
17309
|
}, q = [];
|
|
17310
|
-
let
|
|
17311
|
-
r[59] ===
|
|
17312
|
-
let
|
|
17313
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
17310
|
+
let ZU2;
|
|
17311
|
+
r[59] === JU ? ZU2 = r[60] : (ZU2 = () => JU(PARENT_DIRECTORY), r[59] = JU, r[60] = ZU2);
|
|
17312
|
+
let QU2, $U2;
|
|
17313
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (QU2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17314
17314
|
className: "w-[50px] pl-4",
|
|
17315
17315
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
17316
17316
|
size: 16
|
|
17317
17317
|
})
|
|
17318
|
-
}),
|
|
17318
|
+
}), $U2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17319
17319
|
children: PARENT_DIRECTORY
|
|
17320
|
-
}), r[61] =
|
|
17321
|
-
let
|
|
17322
|
-
r[63] ===
|
|
17320
|
+
}), r[61] = QU2, r[62] = $U2) : (QU2 = r[61], $U2 = r[62]);
|
|
17321
|
+
let eW2;
|
|
17322
|
+
r[63] === ZU2 ? eW2 = r[64] : (eW2 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17323
17323
|
className: "hover:bg-accent select-none",
|
|
17324
|
-
onClick:
|
|
17324
|
+
onClick: ZU2,
|
|
17325
17325
|
children: [
|
|
17326
|
-
|
|
17327
|
-
|
|
17326
|
+
QU2,
|
|
17327
|
+
$U2
|
|
17328
17328
|
]
|
|
17329
|
-
}, "Parent directory"), r[63] =
|
|
17329
|
+
}, "Parent directory"), r[63] = ZU2, r[64] = eW2), q.push(eW2);
|
|
17330
17330
|
for (let e3 of Z) {
|
|
17331
17331
|
let r2 = e3.path;
|
|
17332
17332
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17333
17333
|
let c2 = e3.is_directory ? (e4) => {
|
|
17334
17334
|
let { path: r3 } = e4;
|
|
17335
|
-
return
|
|
17335
|
+
return JU(r3);
|
|
17336
17336
|
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17337
17337
|
q.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17338
17338
|
className: cn("hover:bg-accent group select-none", {
|
|
@@ -17364,21 +17364,21 @@ ${c}
|
|
|
17364
17364
|
}, e3.id));
|
|
17365
17365
|
}
|
|
17366
17366
|
}
|
|
17367
|
-
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] =
|
|
17368
|
-
} else
|
|
17369
|
-
if (
|
|
17370
|
-
let
|
|
17371
|
-
if (r[65] !==
|
|
17367
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = UU, r[23] = G, r[24] = WU, r[25] = q, r[26] = Z, r[27] = GU, r[28] = qU, r[29] = JU, r[30] = XU;
|
|
17368
|
+
} else UU = r[22], G = r[23], WU = r[24], q = r[25], Z = r[26], GU = r[27], qU = r[28], JU = r[29], XU = r[30];
|
|
17369
|
+
if (XU !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return XU;
|
|
17370
|
+
let ZU, QU, $U, eW, tW, nW, rW;
|
|
17371
|
+
if (r[65] !== UU || r[66] !== R || r[67] !== G || r[68] !== WU || r[69] !== z || r[70] !== q || r[71] !== Z || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== GU || r[79] !== qU || r[80] !== d || r[81] !== JU || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
17372
17372
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
17373
17373
|
path: v,
|
|
17374
17374
|
delimiter: G,
|
|
17375
17375
|
initialPath: u,
|
|
17376
17376
|
restrictNavigation: h
|
|
17377
17377
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17378
|
-
r[92] === z ?
|
|
17378
|
+
r[92] === z ? rW = r[93] : (rW = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
17379
17379
|
kind: "danger",
|
|
17380
17380
|
children: z.message
|
|
17381
|
-
}), r[92] = z, r[93] =
|
|
17381
|
+
}), r[92] = z, r[93] = rW), ZU = (() => {
|
|
17382
17382
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17383
17383
|
children: renderHTML({
|
|
17384
17384
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -17395,26 +17395,26 @@ ${c}
|
|
|
17395
17395
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17396
17396
|
size: "xs",
|
|
17397
17397
|
variant: "link",
|
|
17398
|
-
onClick:
|
|
17399
|
-
children:
|
|
17398
|
+
onClick: UU ? WU : GU,
|
|
17399
|
+
children: UU ? "Deselect all" : "Select all"
|
|
17400
17400
|
})
|
|
17401
17401
|
})
|
|
17402
17402
|
]
|
|
17403
17403
|
}) : e3;
|
|
17404
17404
|
})();
|
|
17405
17405
|
let _2;
|
|
17406
|
-
r[94] ===
|
|
17406
|
+
r[94] === JU ? _2 = r[95] : (_2 = (e3) => JU(e3.target.value), r[94] = JU, r[95] = _2);
|
|
17407
17407
|
let y2 = e2.map(_temp3$5);
|
|
17408
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
17408
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (QU = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17409
17409
|
className: "mt-2 w-full",
|
|
17410
17410
|
placeholder: v,
|
|
17411
17411
|
value: v,
|
|
17412
17412
|
onChange: _2,
|
|
17413
17413
|
children: y2
|
|
17414
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
17414
|
+
}), 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", {
|
|
17415
17415
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17416
17416
|
children: R.is_truncated ? `Showing ${Z.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17417
|
-
}), r[100] = R, r[101] = Z, r[102] =
|
|
17417
|
+
}), r[100] = R, r[101] = Z, r[102] = $U) : $U = r[102];
|
|
17418
17418
|
let b2;
|
|
17419
17419
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
17420
17420
|
height: "14rem"
|
|
@@ -17438,7 +17438,7 @@ ${c}
|
|
|
17438
17438
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17439
17439
|
children: q
|
|
17440
17440
|
})
|
|
17441
|
-
}), r[106] = q, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (
|
|
17441
|
+
}), r[106] = q, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (eW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17442
17442
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17443
17443
|
style: b2,
|
|
17444
17444
|
"aria-busy": B,
|
|
@@ -17447,7 +17447,7 @@ ${c}
|
|
|
17447
17447
|
S2,
|
|
17448
17448
|
E2
|
|
17449
17449
|
]
|
|
17450
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] =
|
|
17450
|
+
}), 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, {
|
|
17451
17451
|
children: [
|
|
17452
17452
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17453
17453
|
className: "flex items-center gap-2",
|
|
@@ -17477,28 +17477,28 @@ ${c}
|
|
|
17477
17477
|
marginBlock: 0
|
|
17478
17478
|
},
|
|
17479
17479
|
className: "m-0 text-xs text-muted-foreground",
|
|
17480
|
-
children:
|
|
17480
|
+
children: qU
|
|
17481
17481
|
})
|
|
17482
17482
|
})
|
|
17483
17483
|
]
|
|
17484
|
-
}), r[65] =
|
|
17485
|
-
} else
|
|
17486
|
-
let
|
|
17487
|
-
r[112] !==
|
|
17488
|
-
className:
|
|
17489
|
-
children:
|
|
17490
|
-
}), r[112] =
|
|
17491
|
-
let
|
|
17492
|
-
return r[115] !==
|
|
17484
|
+
}), r[65] = UU, r[66] = R, r[67] = G, r[68] = WU, r[69] = z, r[70] = q, r[71] = Z, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = GU, r[79] = qU, r[80] = d, r[81] = JU, 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;
|
|
17485
|
+
} else ZU = r[85], QU = r[86], $U = r[87], eW = r[88], tW = r[89], nW = r[90], rW = r[91];
|
|
17486
|
+
let iW;
|
|
17487
|
+
r[112] !== tW || r[113] !== nW ? (iW = (0, import_jsx_runtime.jsx)("div", {
|
|
17488
|
+
className: tW,
|
|
17489
|
+
children: nW
|
|
17490
|
+
}), r[112] = tW, r[113] = nW, r[114] = iW) : iW = r[114];
|
|
17491
|
+
let aW;
|
|
17492
|
+
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", {
|
|
17493
17493
|
children: [
|
|
17494
|
-
|
|
17495
|
-
JU,
|
|
17496
|
-
YU,
|
|
17497
|
-
XU,
|
|
17494
|
+
rW,
|
|
17498
17495
|
ZU,
|
|
17499
|
-
|
|
17496
|
+
QU,
|
|
17497
|
+
$U,
|
|
17498
|
+
eW,
|
|
17499
|
+
iW
|
|
17500
17500
|
]
|
|
17501
|
-
}), r[115] =
|
|
17501
|
+
}), 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;
|
|
17502
17502
|
};
|
|
17503
17503
|
function _temp$12(e) {
|
|
17504
17504
|
return e.path;
|
|
@@ -22884,59 +22884,59 @@ ${c}
|
|
|
22884
22884
|
return typeof w == "function" ? w : noop$2;
|
|
22885
22885
|
}, [
|
|
22886
22886
|
w
|
|
22887
|
-
]),
|
|
22887
|
+
]), UU = (0, import_react.useMemo)(function() {
|
|
22888
22888
|
return typeof S == "function" ? S : noop$2;
|
|
22889
22889
|
}, [
|
|
22890
22890
|
S
|
|
22891
|
-
]), G = (0, import_react.useRef)(null),
|
|
22892
|
-
!
|
|
22893
|
-
|
|
22891
|
+
]), G = (0, import_react.useRef)(null), WU = (0, import_react.useRef)(null), q = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), Z = q[0], GU = q[1], KU = Z.isFocused, qU = Z.isFileDialogActive, JU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), YU = function() {
|
|
22892
|
+
!JU.current && qU && setTimeout(function() {
|
|
22893
|
+
WU.current && (WU.current.files.length || (GU({
|
|
22894
22894
|
type: "closeDialog"
|
|
22895
|
-
}),
|
|
22895
|
+
}), UU()));
|
|
22896
22896
|
}, 300);
|
|
22897
22897
|
};
|
|
22898
22898
|
(0, import_react.useEffect)(function() {
|
|
22899
|
-
return window.addEventListener("focus",
|
|
22900
|
-
window.removeEventListener("focus",
|
|
22899
|
+
return window.addEventListener("focus", YU, false), function() {
|
|
22900
|
+
window.removeEventListener("focus", YU, false);
|
|
22901
22901
|
};
|
|
22902
22902
|
}, [
|
|
22903
|
-
VU,
|
|
22904
22903
|
WU,
|
|
22905
|
-
|
|
22906
|
-
|
|
22904
|
+
qU,
|
|
22905
|
+
UU,
|
|
22906
|
+
JU
|
|
22907
22907
|
]);
|
|
22908
|
-
var
|
|
22909
|
-
G.current && G.current.contains(e2.target) || (e2.preventDefault(),
|
|
22908
|
+
var XU = (0, import_react.useRef)([]), ZU = (0, import_react.useRef)([]), QU = function(e2) {
|
|
22909
|
+
G.current && G.current.contains(e2.target) || (e2.preventDefault(), XU.current = []);
|
|
22910
22910
|
};
|
|
22911
22911
|
(0, import_react.useEffect)(function() {
|
|
22912
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22913
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22912
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", QU, false)), function() {
|
|
22913
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", QU));
|
|
22914
22914
|
};
|
|
22915
22915
|
}, [
|
|
22916
22916
|
G,
|
|
22917
22917
|
O
|
|
22918
22918
|
]), (0, import_react.useEffect)(function() {
|
|
22919
22919
|
var e2 = function(e3) {
|
|
22920
|
-
|
|
22920
|
+
ZU.current = [].concat(_toConsumableArray(ZU.current), [
|
|
22921
22921
|
e3.target
|
|
22922
|
-
]), isEvtWithFiles(e3) &&
|
|
22922
|
+
]), isEvtWithFiles(e3) && GU({
|
|
22923
22923
|
isDragGlobal: true,
|
|
22924
22924
|
type: "setDragGlobal"
|
|
22925
22925
|
});
|
|
22926
22926
|
}, r2 = function(e3) {
|
|
22927
|
-
|
|
22927
|
+
ZU.current = ZU.current.filter(function(r3) {
|
|
22928
22928
|
return r3 !== e3.target && r3 !== null;
|
|
22929
|
-
}), !(
|
|
22929
|
+
}), !(ZU.current.length > 0) && GU({
|
|
22930
22930
|
isDragGlobal: false,
|
|
22931
22931
|
type: "setDragGlobal"
|
|
22932
22932
|
});
|
|
22933
22933
|
}, c2 = function() {
|
|
22934
|
-
|
|
22934
|
+
ZU.current = [], GU({
|
|
22935
22935
|
isDragGlobal: false,
|
|
22936
22936
|
type: "setDragGlobal"
|
|
22937
22937
|
});
|
|
22938
22938
|
}, l2 = function() {
|
|
22939
|
-
|
|
22939
|
+
ZU.current = [], GU({
|
|
22940
22940
|
isDragGlobal: false,
|
|
22941
22941
|
type: "setDragGlobal"
|
|
22942
22942
|
});
|
|
@@ -22954,12 +22954,12 @@ ${c}
|
|
|
22954
22954
|
E,
|
|
22955
22955
|
l
|
|
22956
22956
|
]);
|
|
22957
|
-
var
|
|
22957
|
+
var $U = (0, import_react.useCallback)(function(e2) {
|
|
22958
22958
|
R ? R(e2) : console.error(e2);
|
|
22959
22959
|
}, [
|
|
22960
22960
|
R
|
|
22961
|
-
]),
|
|
22962
|
-
e2.preventDefault(), e2.persist(),
|
|
22961
|
+
]), eW = (0, import_react.useCallback)(function(e2) {
|
|
22962
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [].concat(_toConsumableArray(XU.current), [
|
|
22963
22963
|
e2.target
|
|
22964
22964
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22965
22965
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22972,7 +22972,7 @@ ${c}
|
|
|
22972
22972
|
maxFiles: m,
|
|
22973
22973
|
validator: z
|
|
22974
22974
|
});
|
|
22975
|
-
|
|
22975
|
+
GU({
|
|
22976
22976
|
isDragAccept: l2,
|
|
22977
22977
|
isDragReject: c2 > 0 && !l2,
|
|
22978
22978
|
isDragActive: true,
|
|
@@ -22980,12 +22980,12 @@ ${c}
|
|
|
22980
22980
|
}), h && h(e2);
|
|
22981
22981
|
}
|
|
22982
22982
|
}).catch(function(e3) {
|
|
22983
|
-
return
|
|
22983
|
+
return $U(e3);
|
|
22984
22984
|
});
|
|
22985
22985
|
}, [
|
|
22986
22986
|
u,
|
|
22987
22987
|
h,
|
|
22988
|
-
|
|
22988
|
+
$U,
|
|
22989
22989
|
L,
|
|
22990
22990
|
B,
|
|
22991
22991
|
f,
|
|
@@ -22993,8 +22993,8 @@ ${c}
|
|
|
22993
22993
|
p,
|
|
22994
22994
|
m,
|
|
22995
22995
|
z
|
|
22996
|
-
]),
|
|
22997
|
-
e2.preventDefault(), e2.persist(),
|
|
22996
|
+
]), tW = (0, import_react.useCallback)(function(e2) {
|
|
22997
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
22998
22998
|
var r2 = isEvtWithFiles(e2);
|
|
22999
22999
|
if (r2 && e2.dataTransfer) try {
|
|
23000
23000
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -23004,12 +23004,12 @@ ${c}
|
|
|
23004
23004
|
}, [
|
|
23005
23005
|
_,
|
|
23006
23006
|
L
|
|
23007
|
-
]),
|
|
23008
|
-
e2.preventDefault(), e2.persist(),
|
|
23009
|
-
var r2 =
|
|
23007
|
+
]), nW = (0, import_react.useCallback)(function(e2) {
|
|
23008
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
23009
|
+
var r2 = XU.current.filter(function(e3) {
|
|
23010
23010
|
return G.current && G.current.contains(e3);
|
|
23011
23011
|
}), c2 = r2.indexOf(e2.target);
|
|
23012
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
23012
|
+
c2 !== -1 && r2.splice(c2, 1), XU.current = r2, !(r2.length > 0) && (GU({
|
|
23013
23013
|
type: "setDraggedFiles",
|
|
23014
23014
|
isDragActive: false,
|
|
23015
23015
|
isDragAccept: false,
|
|
@@ -23019,7 +23019,7 @@ ${c}
|
|
|
23019
23019
|
G,
|
|
23020
23020
|
g,
|
|
23021
23021
|
L
|
|
23022
|
-
]),
|
|
23022
|
+
]), rW = (0, import_react.useCallback)(function(e2, r2) {
|
|
23023
23023
|
var c2 = [], l2 = [];
|
|
23024
23024
|
e2.forEach(function(e3) {
|
|
23025
23025
|
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;
|
|
@@ -23043,14 +23043,14 @@ ${c}
|
|
|
23043
23043
|
TOO_MANY_FILES_REJECTION
|
|
23044
23044
|
]
|
|
23045
23045
|
});
|
|
23046
|
-
}), c2.splice(0)),
|
|
23046
|
+
}), c2.splice(0)), GU({
|
|
23047
23047
|
acceptedFiles: c2,
|
|
23048
23048
|
fileRejections: l2,
|
|
23049
23049
|
isDragReject: l2.length > 0,
|
|
23050
23050
|
type: "setFiles"
|
|
23051
23051
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
23052
23052
|
}, [
|
|
23053
|
-
|
|
23053
|
+
GU,
|
|
23054
23054
|
p,
|
|
23055
23055
|
B,
|
|
23056
23056
|
f,
|
|
@@ -23060,22 +23060,22 @@ ${c}
|
|
|
23060
23060
|
y,
|
|
23061
23061
|
b,
|
|
23062
23062
|
z
|
|
23063
|
-
]),
|
|
23064
|
-
e2.preventDefault(), e2.persist(),
|
|
23065
|
-
isPropagationStopped(e2) && !L ||
|
|
23063
|
+
]), iW = (0, import_react.useCallback)(function(e2) {
|
|
23064
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
23065
|
+
isPropagationStopped(e2) && !L || rW(r2, e2);
|
|
23066
23066
|
}).catch(function(e3) {
|
|
23067
|
-
return
|
|
23068
|
-
}),
|
|
23067
|
+
return $U(e3);
|
|
23068
|
+
}), GU({
|
|
23069
23069
|
type: "reset"
|
|
23070
23070
|
});
|
|
23071
23071
|
}, [
|
|
23072
23072
|
u,
|
|
23073
|
-
|
|
23074
|
-
|
|
23073
|
+
rW,
|
|
23074
|
+
$U,
|
|
23075
23075
|
L
|
|
23076
|
-
]),
|
|
23077
|
-
if (
|
|
23078
|
-
|
|
23076
|
+
]), aW = (0, import_react.useCallback)(function() {
|
|
23077
|
+
if (JU.current) {
|
|
23078
|
+
GU({
|
|
23079
23079
|
type: "openDialog"
|
|
23080
23080
|
}), W();
|
|
23081
23081
|
var e2 = {
|
|
@@ -23085,66 +23085,66 @@ ${c}
|
|
|
23085
23085
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23086
23086
|
return u(e3);
|
|
23087
23087
|
}).then(function(e3) {
|
|
23088
|
-
|
|
23088
|
+
rW(e3, null), GU({
|
|
23089
23089
|
type: "closeDialog"
|
|
23090
23090
|
});
|
|
23091
23091
|
}).catch(function(e3) {
|
|
23092
|
-
isAbort(e3) ? (
|
|
23092
|
+
isAbort(e3) ? (UU(e3), GU({
|
|
23093
23093
|
type: "closeDialog"
|
|
23094
|
-
})) : isSecurityError(e3) ? (
|
|
23094
|
+
})) : isSecurityError(e3) ? (JU.current = false, WU.current ? (WU.current.value = null, WU.current.click()) : $U(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : $U(e3);
|
|
23095
23095
|
});
|
|
23096
23096
|
return;
|
|
23097
23097
|
}
|
|
23098
|
-
|
|
23098
|
+
WU.current && (GU({
|
|
23099
23099
|
type: "openDialog"
|
|
23100
|
-
}), W(),
|
|
23100
|
+
}), W(), WU.current.value = null, WU.current.click());
|
|
23101
23101
|
}, [
|
|
23102
|
-
|
|
23102
|
+
GU,
|
|
23103
23103
|
W,
|
|
23104
|
-
|
|
23104
|
+
UU,
|
|
23105
23105
|
T,
|
|
23106
|
-
|
|
23107
|
-
|
|
23106
|
+
rW,
|
|
23107
|
+
$U,
|
|
23108
23108
|
H,
|
|
23109
23109
|
p
|
|
23110
|
-
]),
|
|
23111
|
-
!G.current || !G.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23110
|
+
]), oW = (0, import_react.useCallback)(function(e2) {
|
|
23111
|
+
!G.current || !G.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), aW());
|
|
23112
23112
|
}, [
|
|
23113
23113
|
G,
|
|
23114
|
-
|
|
23115
|
-
]),
|
|
23116
|
-
|
|
23114
|
+
aW
|
|
23115
|
+
]), sW = (0, import_react.useCallback)(function() {
|
|
23116
|
+
GU({
|
|
23117
23117
|
type: "focus"
|
|
23118
23118
|
});
|
|
23119
|
-
}, []),
|
|
23120
|
-
|
|
23119
|
+
}, []), cW = (0, import_react.useCallback)(function() {
|
|
23120
|
+
GU({
|
|
23121
23121
|
type: "blur"
|
|
23122
23122
|
});
|
|
23123
|
-
}, []),
|
|
23124
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23123
|
+
}, []), lW = (0, import_react.useCallback)(function() {
|
|
23124
|
+
j || (isIeOrEdge() ? setTimeout(aW, 0) : aW());
|
|
23125
23125
|
}, [
|
|
23126
23126
|
j,
|
|
23127
|
-
|
|
23128
|
-
]),
|
|
23127
|
+
aW
|
|
23128
|
+
]), uW = function(e2) {
|
|
23129
23129
|
return l ? null : e2;
|
|
23130
|
-
},
|
|
23131
|
-
return M ? null :
|
|
23132
|
-
},
|
|
23133
|
-
return I ? null :
|
|
23134
|
-
},
|
|
23130
|
+
}, dW = function(e2) {
|
|
23131
|
+
return M ? null : uW(e2);
|
|
23132
|
+
}, fW = function(e2) {
|
|
23133
|
+
return I ? null : uW(e2);
|
|
23134
|
+
}, pW = function(e2) {
|
|
23135
23135
|
L && e2.stopPropagation();
|
|
23136
|
-
},
|
|
23136
|
+
}, mW = (0, import_react.useMemo)(function() {
|
|
23137
23137
|
return function() {
|
|
23138
23138
|
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);
|
|
23139
23139
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23140
|
-
onKeyDown:
|
|
23141
|
-
onFocus:
|
|
23142
|
-
onBlur:
|
|
23143
|
-
onClick:
|
|
23144
|
-
onDragEnter:
|
|
23145
|
-
onDragOver:
|
|
23146
|
-
onDragLeave:
|
|
23147
|
-
onDrop:
|
|
23140
|
+
onKeyDown: dW(composeEventHandlers(d2, oW)),
|
|
23141
|
+
onFocus: dW(composeEventHandlers(f2, sW)),
|
|
23142
|
+
onBlur: dW(composeEventHandlers(p2, cW)),
|
|
23143
|
+
onClick: uW(composeEventHandlers(m2, lW)),
|
|
23144
|
+
onDragEnter: fW(composeEventHandlers(h2, eW)),
|
|
23145
|
+
onDragOver: fW(composeEventHandlers(g2, tW)),
|
|
23146
|
+
onDragLeave: fW(composeEventHandlers(_2, nW)),
|
|
23147
|
+
onDrop: fW(composeEventHandlers(v2, iW)),
|
|
23148
23148
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23149
23149
|
}, c2, G), !l && !M ? {
|
|
23150
23150
|
tabIndex: 0
|
|
@@ -23152,20 +23152,20 @@ ${c}
|
|
|
23152
23152
|
};
|
|
23153
23153
|
}, [
|
|
23154
23154
|
G,
|
|
23155
|
-
rW,
|
|
23156
|
-
iW,
|
|
23157
|
-
aW,
|
|
23158
23155
|
oW,
|
|
23159
|
-
|
|
23160
|
-
|
|
23161
|
-
|
|
23156
|
+
sW,
|
|
23157
|
+
cW,
|
|
23158
|
+
lW,
|
|
23159
|
+
eW,
|
|
23162
23160
|
tW,
|
|
23161
|
+
nW,
|
|
23162
|
+
iW,
|
|
23163
23163
|
M,
|
|
23164
23164
|
I,
|
|
23165
23165
|
l
|
|
23166
|
-
]),
|
|
23166
|
+
]), hW = (0, import_react.useCallback)(function(e2) {
|
|
23167
23167
|
e2.stopPropagation();
|
|
23168
|
-
}, []),
|
|
23168
|
+
}, []), gW = (0, import_react.useMemo)(function() {
|
|
23169
23169
|
return function() {
|
|
23170
23170
|
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);
|
|
23171
23171
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23184,25 +23184,25 @@ ${c}
|
|
|
23184
23184
|
width: "1px",
|
|
23185
23185
|
whiteSpace: "nowrap"
|
|
23186
23186
|
},
|
|
23187
|
-
onChange:
|
|
23188
|
-
onClick:
|
|
23187
|
+
onChange: uW(composeEventHandlers(l2, iW)),
|
|
23188
|
+
onClick: uW(composeEventHandlers(u2, hW)),
|
|
23189
23189
|
tabIndex: -1
|
|
23190
|
-
}, c2,
|
|
23190
|
+
}, c2, WU)), d2);
|
|
23191
23191
|
};
|
|
23192
23192
|
}, [
|
|
23193
|
-
|
|
23193
|
+
WU,
|
|
23194
23194
|
c,
|
|
23195
23195
|
p,
|
|
23196
|
-
|
|
23196
|
+
iW,
|
|
23197
23197
|
l
|
|
23198
23198
|
]);
|
|
23199
23199
|
return _objectSpread$7(_objectSpread$7({}, Z), {}, {
|
|
23200
|
-
isFocused:
|
|
23201
|
-
getRootProps:
|
|
23202
|
-
getInputProps:
|
|
23200
|
+
isFocused: KU && !l,
|
|
23201
|
+
getRootProps: mW,
|
|
23202
|
+
getInputProps: gW,
|
|
23203
23203
|
rootRef: G,
|
|
23204
|
-
inputRef:
|
|
23205
|
-
open:
|
|
23204
|
+
inputRef: WU,
|
|
23205
|
+
open: uW(aW)
|
|
23206
23206
|
});
|
|
23207
23207
|
}
|
|
23208
23208
|
function reducer$2(e, r) {
|
|
@@ -23420,8 +23420,8 @@ ${c}
|
|
|
23420
23420
|
r[43] === H ? W = r[44] : (W = (0, import_jsx_runtime.jsx)("input", {
|
|
23421
23421
|
...H
|
|
23422
23422
|
}), r[43] = H, r[44] = W);
|
|
23423
|
-
let
|
|
23424
|
-
r[45] !== I || r[46] !== M ? (
|
|
23423
|
+
let UU;
|
|
23424
|
+
r[45] !== I || r[46] !== M ? (UU = M ? (0, import_jsx_runtime.jsxs)("span", {
|
|
23425
23425
|
children: [
|
|
23426
23426
|
"To re-upload: ",
|
|
23427
23427
|
renderHTML({
|
|
@@ -23433,48 +23433,48 @@ ${c}
|
|
|
23433
23433
|
children: renderHTML({
|
|
23434
23434
|
html: I
|
|
23435
23435
|
})
|
|
23436
|
-
}), r[45] = I, r[46] = M, r[47] =
|
|
23437
|
-
let G = w && "text-primary",
|
|
23438
|
-
r[48] !== G || r[49] !==
|
|
23436
|
+
}), r[45] = I, r[46] = M, r[47] = UU) : UU = r[47];
|
|
23437
|
+
let G = w && "text-primary", WU = T && "text-destructive", q;
|
|
23438
|
+
r[48] !== G || r[49] !== WU ? (q = cn(G, WU), r[48] = G, r[49] = WU, r[50] = q) : q = r[50];
|
|
23439
23439
|
let Z;
|
|
23440
23440
|
r[51] === q ? Z = r[52] : (Z = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23441
23441
|
strokeWidth: 1.4,
|
|
23442
23442
|
className: q
|
|
23443
23443
|
}), r[51] = q, r[52] = Z);
|
|
23444
|
-
let
|
|
23445
|
-
r[53] !==
|
|
23446
|
-
let
|
|
23447
|
-
r[56] ===
|
|
23444
|
+
let GU = w && "text-primary", KU = T && "text-destructive", qU;
|
|
23445
|
+
r[53] !== GU || r[54] !== KU ? (qU = cn(GU, KU), r[53] = GU, r[54] = KU, r[55] = qU) : qU = r[55];
|
|
23446
|
+
let JU;
|
|
23447
|
+
r[56] === qU ? JU = r[57] : (JU = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23448
23448
|
strokeWidth: 1.4,
|
|
23449
|
-
className:
|
|
23450
|
-
}), r[56] =
|
|
23451
|
-
let
|
|
23452
|
-
r[58] !== Z || r[59] !==
|
|
23449
|
+
className: qU
|
|
23450
|
+
}), r[56] = qU, r[57] = JU);
|
|
23451
|
+
let YU;
|
|
23452
|
+
r[58] !== Z || r[59] !== JU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23453
23453
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23454
23454
|
children: [
|
|
23455
23455
|
Z,
|
|
23456
|
-
|
|
23456
|
+
JU
|
|
23457
23457
|
]
|
|
23458
|
-
}), r[58] = Z, r[59] =
|
|
23459
|
-
let
|
|
23460
|
-
r[61] !==
|
|
23458
|
+
}), r[58] = Z, r[59] = JU, r[60] = YU) : YU = r[60];
|
|
23459
|
+
let XU;
|
|
23460
|
+
r[61] !== UU || r[62] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23461
23461
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23462
23462
|
children: [
|
|
23463
|
-
|
|
23464
|
-
|
|
23463
|
+
UU,
|
|
23464
|
+
YU
|
|
23465
23465
|
]
|
|
23466
|
-
}), r[61] =
|
|
23467
|
-
let
|
|
23468
|
-
r[64] !== W || r[65] !==
|
|
23466
|
+
}), r[61] = UU, r[62] = YU, r[63] = XU) : XU = r[63];
|
|
23467
|
+
let ZU;
|
|
23468
|
+
r[64] !== W || r[65] !== XU || r[66] !== z || r[67] !== B ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23469
23469
|
className: z,
|
|
23470
23470
|
...B,
|
|
23471
23471
|
children: [
|
|
23472
23472
|
W,
|
|
23473
|
-
|
|
23473
|
+
XU
|
|
23474
23474
|
]
|
|
23475
|
-
}), r[64] = W, r[65] =
|
|
23476
|
-
let
|
|
23477
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23475
|
+
}), r[64] = W, r[65] = XU, r[66] = z, r[67] = B, r[68] = ZU) : ZU = r[68];
|
|
23476
|
+
let QU;
|
|
23477
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (QU = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23478
23478
|
className: "flex flex-row gap-1",
|
|
23479
23479
|
children: [
|
|
23480
23480
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23510,17 +23510,17 @@ ${c}
|
|
|
23510
23510
|
})
|
|
23511
23511
|
})
|
|
23512
23512
|
]
|
|
23513
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23514
|
-
let
|
|
23515
|
-
return r[75] !==
|
|
23513
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = QU) : QU = r[74];
|
|
23514
|
+
let $U;
|
|
23515
|
+
return r[75] !== ZU || r[76] !== QU ? ($U = (0, import_jsx_runtime.jsx)("section", {
|
|
23516
23516
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23517
23517
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23518
23518
|
children: [
|
|
23519
|
-
|
|
23520
|
-
|
|
23519
|
+
ZU,
|
|
23520
|
+
QU
|
|
23521
23521
|
]
|
|
23522
23522
|
})
|
|
23523
|
-
}), r[75] =
|
|
23523
|
+
}), r[75] = ZU, r[76] = QU, r[77] = $U) : $U = r[77], $U;
|
|
23524
23524
|
};
|
|
23525
23525
|
function _temp$11(e) {
|
|
23526
23526
|
Logger.error(e), toast({
|
|
@@ -23607,15 +23607,15 @@ ${c}
|
|
|
23607
23607
|
}
|
|
23608
23608
|
R(null), d(u), y && H();
|
|
23609
23609
|
}, r[1] = y, r[2] = u, r[3] = d, r[4] = O, r[5] = E, r[6] = W) : W = r[6];
|
|
23610
|
-
let
|
|
23611
|
-
r[7] !== m || r[8] !==
|
|
23610
|
+
let UU = !M && m, G;
|
|
23611
|
+
r[7] !== m || r[8] !== UU ? (G = cn("flex flex-col gap-4 rounded-lg py-4 px-8", {
|
|
23612
23612
|
"bg-(--gray-1) shadow-md border border-input": m,
|
|
23613
|
-
"bg-(--amber-1) border-(--amber-7)":
|
|
23614
|
-
}), r[7] = m, r[8] =
|
|
23615
|
-
let
|
|
23616
|
-
r[10] !== u || r[11] !== d ? (
|
|
23613
|
+
"bg-(--amber-1) border-(--amber-7)": UU
|
|
23614
|
+
}), r[7] = m, r[8] = UU, r[9] = G) : G = r[9];
|
|
23615
|
+
let WU;
|
|
23616
|
+
r[10] !== u || r[11] !== d ? (WU = (e2) => {
|
|
23617
23617
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23618
|
-
}, r[10] = u, r[11] = d, r[12] =
|
|
23618
|
+
}, r[10] = u, r[11] = d, r[12] = WU) : WU = r[12];
|
|
23619
23619
|
let q;
|
|
23620
23620
|
r[13] === f ? q = r[14] : (q = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23621
23621
|
className: "text-center",
|
|
@@ -23629,62 +23629,62 @@ ${c}
|
|
|
23629
23629
|
className: "rounded",
|
|
23630
23630
|
children: L ?? "Invalid input"
|
|
23631
23631
|
}), r[15] = L, r[16] = Z);
|
|
23632
|
-
let
|
|
23633
|
-
r[17] === c ?
|
|
23632
|
+
let GU;
|
|
23633
|
+
r[17] === c ? GU = r[18] : (GU = (0, import_jsx_runtime.jsx)("div", {
|
|
23634
23634
|
children: c
|
|
23635
|
-
}), r[17] = c, r[18] =
|
|
23636
|
-
let
|
|
23637
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23635
|
+
}), r[17] = c, r[18] = GU);
|
|
23636
|
+
let KU;
|
|
23637
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (KU = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23638
23638
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23639
23639
|
variant: "text",
|
|
23640
23640
|
onClick: (e2) => {
|
|
23641
23641
|
e2.preventDefault(), H();
|
|
23642
23642
|
},
|
|
23643
23643
|
children: S
|
|
23644
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23645
|
-
let
|
|
23646
|
-
r[23] === h ?
|
|
23644
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = KU) : KU = r[22];
|
|
23645
|
+
let qU = v || h, JU;
|
|
23646
|
+
r[23] === h ? JU = r[24] : (JU = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23647
23647
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23648
|
-
}), r[23] = h, r[24] =
|
|
23649
|
-
let
|
|
23650
|
-
r[25] !== g || r[26] !==
|
|
23648
|
+
}), r[23] = h, r[24] = JU);
|
|
23649
|
+
let YU;
|
|
23650
|
+
r[25] !== g || r[26] !== qU || r[27] !== JU || r[28] !== I ? (YU = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23651
23651
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23652
23652
|
variant: I,
|
|
23653
|
-
disabled:
|
|
23653
|
+
disabled: qU,
|
|
23654
23654
|
type: "submit",
|
|
23655
23655
|
children: [
|
|
23656
|
-
|
|
23656
|
+
JU,
|
|
23657
23657
|
g
|
|
23658
23658
|
]
|
|
23659
|
-
}), r[25] = g, r[26] =
|
|
23660
|
-
let
|
|
23661
|
-
r[30] !== _ || r[31] !==
|
|
23662
|
-
let
|
|
23663
|
-
r[33] !==
|
|
23659
|
+
}), r[25] = g, r[26] = qU, r[27] = JU, r[28] = I, r[29] = YU) : YU = r[29];
|
|
23660
|
+
let XU;
|
|
23661
|
+
r[30] !== _ || r[31] !== YU ? (XU = withTooltip(YU, _), r[30] = _, r[31] = YU, r[32] = XU) : XU = r[32];
|
|
23662
|
+
let ZU;
|
|
23663
|
+
r[33] !== XU || r[34] !== KU ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23664
23664
|
className: "flex justify-end gap-2 font-code",
|
|
23665
23665
|
children: [
|
|
23666
|
-
|
|
23667
|
-
|
|
23666
|
+
KU,
|
|
23667
|
+
XU
|
|
23668
23668
|
]
|
|
23669
|
-
}), r[33] =
|
|
23670
|
-
let
|
|
23671
|
-
r[36] !==
|
|
23669
|
+
}), r[33] = XU, r[34] = KU, r[35] = ZU) : ZU = r[35];
|
|
23670
|
+
let QU;
|
|
23671
|
+
r[36] !== ZU || r[37] !== G || r[38] !== WU || r[39] !== q || r[40] !== Z || r[41] !== GU ? (QU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23672
23672
|
className: G,
|
|
23673
|
-
onKeyDown:
|
|
23673
|
+
onKeyDown: WU,
|
|
23674
23674
|
children: [
|
|
23675
23675
|
q,
|
|
23676
23676
|
Z,
|
|
23677
|
-
|
|
23678
|
-
|
|
23677
|
+
GU,
|
|
23678
|
+
ZU
|
|
23679
23679
|
]
|
|
23680
|
-
}), r[36] =
|
|
23681
|
-
let
|
|
23682
|
-
return r[43] !==
|
|
23680
|
+
}), r[36] = ZU, r[37] = G, r[38] = WU, r[39] = q, r[40] = Z, r[41] = GU, r[42] = QU) : QU = r[42];
|
|
23681
|
+
let $U;
|
|
23682
|
+
return r[43] !== QU || r[44] !== W ? ($U = (0, import_jsx_runtime.jsx)("form", {
|
|
23683
23683
|
className: "contents",
|
|
23684
23684
|
ref: j,
|
|
23685
23685
|
onSubmit: W,
|
|
23686
|
-
children:
|
|
23687
|
-
}), r[43] =
|
|
23686
|
+
children: QU
|
|
23687
|
+
}), r[43] = QU, r[44] = W, r[45] = $U) : $U = r[45], $U;
|
|
23688
23688
|
};
|
|
23689
23689
|
var Form = (e) => {
|
|
23690
23690
|
let r = (0, import_compiler_runtime$42.c)(24), c, l, u, d, f, p;
|
|
@@ -23834,7 +23834,7 @@ ${c}
|
|
|
23834
23834
|
M,
|
|
23835
23835
|
g,
|
|
23836
23836
|
r
|
|
23837
|
-
]), B = m != null && m.length > 0, H = h != null && h.length > 0, W = O.length,
|
|
23837
|
+
]), B = m != null && m.length > 0, H = h != null && h.length > 0, W = O.length, UU = ((_a3 = O[0]) == null ? void 0 : _a3.length) ?? 0;
|
|
23838
23838
|
return (0, import_jsx_runtime.jsx)(Labeled, {
|
|
23839
23839
|
label: c,
|
|
23840
23840
|
align: "top",
|
|
@@ -23872,7 +23872,7 @@ ${c}
|
|
|
23872
23872
|
var _a4, _b3;
|
|
23873
23873
|
let d2 = y[r2][c2], f2 = (S == null ? void 0 : S.row) === r2 && (S == null ? void 0 : S.col) === c2, g2 = (m == null ? void 0 : m[r2]) ?? `Row ${r2 + 1}`, _2 = (h == null ? void 0 : h[c2]) ?? `Column ${c2 + 1}`;
|
|
23874
23874
|
return (0, import_jsx_runtime.jsx)("td", {
|
|
23875
|
-
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-[var(--link)] hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 ===
|
|
23875
|
+
className: cn("relative text-center min-w-14 h-8 px-2 transition-colors touch-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none", d2 ? "cursor-default text-muted-foreground" : "cursor-ew-resize text-[var(--link)] hover:bg-accent", f2 && "bg-accent", c2 === 0 && "bracket-l", c2 === UU - 1 && "bracket-r", r2 === 0 && "bracket-t", r2 === W - 1 && "bracket-b"),
|
|
23876
23876
|
tabIndex: d2 ? -1 : 0,
|
|
23877
23877
|
"aria-label": `${g2}, ${_2}`,
|
|
23878
23878
|
"aria-valuenow": e3,
|
|
@@ -25437,15 +25437,15 @@ ${c}
|
|
|
25437
25437
|
points: extractTreemapPoints(e2.points)
|
|
25438
25438
|
}));
|
|
25439
25439
|
}, r[27] = u, r[28] = H);
|
|
25440
|
-
let W = useEvent_default(H),
|
|
25441
|
-
r[29] === u ?
|
|
25440
|
+
let W = useEvent_default(H), UU;
|
|
25441
|
+
r[29] === u ? UU = r[30] : (UU = (e2) => {
|
|
25442
25442
|
e2 && u((r2) => ({
|
|
25443
25443
|
...r2,
|
|
25444
25444
|
points: extractSunburstPoints(e2.points)
|
|
25445
25445
|
}));
|
|
25446
|
-
}, r[29] = u, r[30] =
|
|
25447
|
-
let G = useEvent_default(
|
|
25448
|
-
r[31] === u ?
|
|
25446
|
+
}, r[29] = u, r[30] = UU);
|
|
25447
|
+
let G = useEvent_default(UU), WU;
|
|
25448
|
+
r[31] === u ? WU = r[32] : (WU = (e2) => {
|
|
25449
25449
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25450
25450
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25451
25451
|
u((e3) => ({
|
|
@@ -25456,8 +25456,8 @@ ${c}
|
|
|
25456
25456
|
points: r2,
|
|
25457
25457
|
indices: c2
|
|
25458
25458
|
}));
|
|
25459
|
-
}, r[31] = u, r[32] =
|
|
25460
|
-
let q = useEvent_default(
|
|
25459
|
+
}, r[31] = u, r[32] = WU);
|
|
25460
|
+
let q = useEvent_default(WU), Z;
|
|
25461
25461
|
r[33] === u ? Z = r[34] : (Z = (e2) => {
|
|
25462
25462
|
e2 && u((r2) => ({
|
|
25463
25463
|
...r2,
|
|
@@ -25468,8 +25468,8 @@ ${c}
|
|
|
25468
25468
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25469
25469
|
}));
|
|
25470
25470
|
}, r[33] = u, r[34] = Z);
|
|
25471
|
-
let
|
|
25472
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== G || r[41] !== q || r[42] !==
|
|
25471
|
+
let GU = useEvent_default(Z), KU = m.frames ?? void 0, qU = useEvent_default(_temp3$3), JU;
|
|
25472
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== G || r[41] !== q || r[42] !== GU || r[43] !== KU || r[44] !== qU || r[45] !== R ? (JU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25473
25473
|
...m,
|
|
25474
25474
|
layout: h,
|
|
25475
25475
|
onRelayout: R,
|
|
@@ -25478,12 +25478,12 @@ ${c}
|
|
|
25478
25478
|
onSunburstClick: G,
|
|
25479
25479
|
config: L,
|
|
25480
25480
|
onClick: q,
|
|
25481
|
-
onSelected:
|
|
25481
|
+
onSelected: GU,
|
|
25482
25482
|
className: "w-full",
|
|
25483
25483
|
useResizeHandler: true,
|
|
25484
|
-
frames:
|
|
25485
|
-
onError:
|
|
25486
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = G, r[41] = q, r[42] =
|
|
25484
|
+
frames: KU,
|
|
25485
|
+
onError: qU
|
|
25486
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = G, r[41] = q, r[42] = GU, r[43] = KU, r[44] = qU, r[45] = R, r[46] = JU) : JU = r[46], JU;
|
|
25487
25487
|
});
|
|
25488
25488
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25489
25489
|
function _temp$8(e) {
|
|
@@ -25611,15 +25611,15 @@ ${c}
|
|
|
25611
25611
|
}, c[13] = u, c[14] = B);
|
|
25612
25612
|
let H = B, W;
|
|
25613
25613
|
c[15] === l ? W = c[16] : (W = cn("relative flex touch-none select-none hover:cursor-pointer", "data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center", "data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center", "data-disabled:cursor-not-allowed", l), c[15] = l, c[16] = W);
|
|
25614
|
-
let
|
|
25615
|
-
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
25614
|
+
let UU;
|
|
25615
|
+
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UU = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = UU) : UU = c[17];
|
|
25616
25616
|
let G;
|
|
25617
25617
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = G) : G = c[18];
|
|
25618
|
-
let
|
|
25619
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25618
|
+
let WU;
|
|
25619
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (WU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25620
25620
|
ref: E,
|
|
25621
25621
|
"data-testid": "track",
|
|
25622
|
-
className:
|
|
25622
|
+
className: UU,
|
|
25623
25623
|
children: (0, import_jsx_runtime.jsx)(Range, {
|
|
25624
25624
|
"data-testid": "range",
|
|
25625
25625
|
className: G,
|
|
@@ -25627,7 +25627,7 @@ ${c}
|
|
|
25627
25627
|
onPointerMove: z,
|
|
25628
25628
|
onPointerUp: H
|
|
25629
25629
|
})
|
|
25630
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25630
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = WU) : WU = c[22];
|
|
25631
25631
|
let q;
|
|
25632
25632
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (q = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25633
25633
|
asChild: true,
|
|
@@ -25646,23 +25646,23 @@ ${c}
|
|
|
25646
25646
|
locale: h
|
|
25647
25647
|
})
|
|
25648
25648
|
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = Z) : Z = c[29];
|
|
25649
|
-
let
|
|
25650
|
-
c[30] === Z ?
|
|
25649
|
+
let GU;
|
|
25650
|
+
c[30] === Z ? GU = c[31] : (GU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25651
25651
|
children: Z
|
|
25652
|
-
}), c[30] = Z, c[31] =
|
|
25653
|
-
let
|
|
25654
|
-
c[32] !== f || c[33] !== q || c[34] !==
|
|
25652
|
+
}), c[30] = Z, c[31] = GU);
|
|
25653
|
+
let KU;
|
|
25654
|
+
c[32] !== f || c[33] !== q || c[34] !== GU ? (KU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25655
25655
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25656
25656
|
delayDuration: 0,
|
|
25657
25657
|
open: f,
|
|
25658
25658
|
children: [
|
|
25659
25659
|
q,
|
|
25660
|
-
|
|
25660
|
+
GU
|
|
25661
25661
|
]
|
|
25662
25662
|
})
|
|
25663
|
-
}), c[32] = f, c[33] = q, c[34] =
|
|
25664
|
-
let
|
|
25665
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25663
|
+
}), c[32] = f, c[33] = q, c[34] = GU, c[35] = KU) : KU = c[35];
|
|
25664
|
+
let qU;
|
|
25665
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (qU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25666
25666
|
asChild: true,
|
|
25667
25667
|
children: (0, import_jsx_runtime.jsx)(Thumb$1, {
|
|
25668
25668
|
"data-testid": "thumb",
|
|
@@ -25672,39 +25672,39 @@ ${c}
|
|
|
25672
25672
|
onMouseEnter: m.setTrue,
|
|
25673
25673
|
onMouseLeave: m.setFalse
|
|
25674
25674
|
})
|
|
25675
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25676
|
-
let
|
|
25677
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25675
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = qU) : qU = c[38];
|
|
25676
|
+
let JU;
|
|
25677
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (JU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25678
25678
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25679
25679
|
locale: h
|
|
25680
25680
|
})
|
|
25681
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25682
|
-
let
|
|
25683
|
-
c[43] ===
|
|
25684
|
-
children:
|
|
25685
|
-
}), c[43] =
|
|
25686
|
-
let
|
|
25687
|
-
c[45] !== f || c[46] !==
|
|
25681
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = JU) : JU = c[42];
|
|
25682
|
+
let YU;
|
|
25683
|
+
c[43] === JU ? YU = c[44] : (YU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25684
|
+
children: JU
|
|
25685
|
+
}), c[43] = JU, c[44] = YU);
|
|
25686
|
+
let XU;
|
|
25687
|
+
c[45] !== f || c[46] !== qU || c[47] !== YU ? (XU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25688
25688
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25689
25689
|
delayDuration: 0,
|
|
25690
25690
|
open: f,
|
|
25691
25691
|
children: [
|
|
25692
|
-
|
|
25693
|
-
|
|
25692
|
+
qU,
|
|
25693
|
+
YU
|
|
25694
25694
|
]
|
|
25695
25695
|
})
|
|
25696
|
-
}), c[45] = f, c[46] =
|
|
25697
|
-
let
|
|
25698
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25696
|
+
}), c[45] = f, c[46] = qU, c[47] = YU, c[48] = XU) : XU = c[48];
|
|
25697
|
+
let ZU;
|
|
25698
|
+
return c[49] !== M || c[50] !== u || c[51] !== WU || c[52] !== KU || c[53] !== XU || c[54] !== W ? (ZU = (0, import_jsx_runtime.jsxs)(Root$1, {
|
|
25699
25699
|
ref: M,
|
|
25700
25700
|
className: W,
|
|
25701
25701
|
...u,
|
|
25702
25702
|
children: [
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25703
|
+
WU,
|
|
25704
|
+
KU,
|
|
25705
|
+
XU
|
|
25706
25706
|
]
|
|
25707
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25707
|
+
}), c[49] = M, c[50] = u, c[51] = WU, c[52] = KU, c[53] = XU, c[54] = W, c[55] = ZU) : ZU = c[55], ZU;
|
|
25708
25708
|
});
|
|
25709
25709
|
RangeSlider.displayName = Root$1.displayName;
|
|
25710
25710
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25749,20 +25749,20 @@ ${c}
|
|
|
25749
25749
|
r[5] !== R || r[6] !== z ? (B = cn("flex items-center gap-2", R, z), r[5] = R, r[6] = z, r[7] = B) : B = r[7];
|
|
25750
25750
|
let H = !v && "data-[orientation=horizontal]:w-36 ", W;
|
|
25751
25751
|
r[8] === H ? W = r[9] : (W = cn("relative flex items-center select-none", H, "data-[orientation=vertical]:h-36"), r[8] = H, r[9] = W);
|
|
25752
|
-
let
|
|
25753
|
-
r[10] !== h || r[11] !== l ? (
|
|
25752
|
+
let UU, G;
|
|
25753
|
+
r[10] !== h || r[11] !== l ? (UU = (e2) => {
|
|
25754
25754
|
E(e2), h || l(e2);
|
|
25755
25755
|
}, G = (e2) => {
|
|
25756
25756
|
h && l(e2);
|
|
25757
|
-
}, r[10] = h, r[11] = l, r[12] =
|
|
25758
|
-
let
|
|
25759
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25757
|
+
}, r[10] = h, r[11] = l, r[12] = UU, r[13] = G) : (UU = r[12], G = r[13]);
|
|
25758
|
+
let WU, q;
|
|
25759
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (WU = () => {
|
|
25760
25760
|
h && !dequal(T, u) && l(T);
|
|
25761
25761
|
}, q = () => {
|
|
25762
25762
|
h && !dequal(T, u) && l(T);
|
|
25763
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25763
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = WU, r[19] = q) : (WU = r[18], q = r[19]);
|
|
25764
25764
|
let Z;
|
|
25765
|
-
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] !==
|
|
25765
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== UU || r[29] !== G || r[30] !== WU || r[31] !== q || r[32] !== b ? (Z = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25766
25766
|
id: S,
|
|
25767
25767
|
className: W,
|
|
25768
25768
|
value: T,
|
|
@@ -25771,38 +25771,38 @@ ${c}
|
|
|
25771
25771
|
step: m,
|
|
25772
25772
|
orientation: g,
|
|
25773
25773
|
disabled: y,
|
|
25774
|
-
onValueChange:
|
|
25774
|
+
onValueChange: UU,
|
|
25775
25775
|
onValueCommit: G,
|
|
25776
|
-
onPointerUp:
|
|
25776
|
+
onPointerUp: WU,
|
|
25777
25777
|
onMouseUp: q,
|
|
25778
25778
|
valueMap: b
|
|
25779
|
-
}), 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] =
|
|
25780
|
-
let
|
|
25781
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25779
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = UU, r[29] = G, r[30] = WU, r[31] = q, r[32] = b, r[33] = Z) : Z = r[33];
|
|
25780
|
+
let GU;
|
|
25781
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (GU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25782
25782
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25783
25783
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25784
25784
|
locale: w
|
|
25785
25785
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25786
25786
|
locale: w
|
|
25787
25787
|
})}`
|
|
25788
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25789
|
-
let
|
|
25790
|
-
r[39] !== Z || r[40] !==
|
|
25788
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = GU) : GU = r[38];
|
|
25789
|
+
let KU;
|
|
25790
|
+
r[39] !== Z || r[40] !== GU || r[41] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25791
25791
|
className: B,
|
|
25792
25792
|
children: [
|
|
25793
25793
|
Z,
|
|
25794
|
-
|
|
25794
|
+
GU
|
|
25795
25795
|
]
|
|
25796
|
-
}), r[39] = Z, r[40] =
|
|
25797
|
-
let
|
|
25798
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25796
|
+
}), r[39] = Z, r[40] = GU, r[41] = B, r[42] = KU) : KU = r[42];
|
|
25797
|
+
let qU;
|
|
25798
|
+
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, {
|
|
25799
25799
|
label: c,
|
|
25800
25800
|
id: S,
|
|
25801
25801
|
align: M,
|
|
25802
25802
|
className: L,
|
|
25803
25803
|
fullWidth: v,
|
|
25804
|
-
children:
|
|
25805
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25804
|
+
children: KU
|
|
25805
|
+
}), 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;
|
|
25806
25806
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25807
25807
|
r.exports = u;
|
|
25808
25808
|
var c = {
|
|
@@ -26026,32 +26026,32 @@ ${c}
|
|
|
26026
26026
|
r[5] === z ? B = r[6] : (B = cn("flex items-center gap-2", z), r[5] = z, r[6] = B);
|
|
26027
26027
|
let H = !v && "data-[orientation=horizontal]:w-36 ", W;
|
|
26028
26028
|
r[7] === H ? W = r[8] : (W = cn("relative flex items-center select-none", H, "data-[orientation=vertical]:h-36"), r[7] = H, r[8] = W);
|
|
26029
|
-
let
|
|
26030
|
-
r[9] === E ?
|
|
26029
|
+
let UU;
|
|
26030
|
+
r[9] === E ? UU = r[10] : (UU = [
|
|
26031
26031
|
E
|
|
26032
|
-
], r[9] = E, r[10] =
|
|
26033
|
-
let G,
|
|
26032
|
+
], r[9] = E, r[10] = UU);
|
|
26033
|
+
let G, WU;
|
|
26034
26034
|
r[11] !== h || r[12] !== l ? (G = (e2) => {
|
|
26035
26035
|
let [r2] = e2;
|
|
26036
26036
|
O(r2), h || l(r2);
|
|
26037
|
-
},
|
|
26037
|
+
}, WU = (e2) => {
|
|
26038
26038
|
let [r2] = e2;
|
|
26039
26039
|
h && l(r2);
|
|
26040
|
-
}, r[11] = h, r[12] = l, r[13] = G, r[14] =
|
|
26040
|
+
}, r[11] = h, r[12] = l, r[13] = G, r[14] = WU) : (G = r[13], WU = r[14]);
|
|
26041
26041
|
let q;
|
|
26042
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !==
|
|
26042
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== UU || r[22] !== G || r[23] !== WU || r[24] !== W || r[25] !== y ? (q = (0, import_jsx_runtime.jsx)(Slider, {
|
|
26043
26043
|
id: w,
|
|
26044
26044
|
className: W,
|
|
26045
|
-
value:
|
|
26045
|
+
value: UU,
|
|
26046
26046
|
min: d,
|
|
26047
26047
|
max: f,
|
|
26048
26048
|
step: m,
|
|
26049
26049
|
orientation: g,
|
|
26050
26050
|
onValueChange: G,
|
|
26051
|
-
onValueCommit:
|
|
26051
|
+
onValueCommit: WU,
|
|
26052
26052
|
valueMap: y,
|
|
26053
26053
|
disabled: S
|
|
26054
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] =
|
|
26054
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = UU, r[22] = G, r[23] = WU, r[24] = W, r[25] = y, r[26] = q) : q = r[26];
|
|
26055
26055
|
let Z;
|
|
26056
26056
|
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (Z = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
26057
26057
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -26059,8 +26059,8 @@ ${c}
|
|
|
26059
26059
|
locale: T
|
|
26060
26060
|
})
|
|
26061
26061
|
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = Z) : Z = r[31];
|
|
26062
|
-
let
|
|
26063
|
-
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 ? (
|
|
26062
|
+
let GU;
|
|
26063
|
+
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, {
|
|
26064
26064
|
value: y(E),
|
|
26065
26065
|
onChange: (e2) => {
|
|
26066
26066
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -26071,25 +26071,25 @@ ${c}
|
|
|
26071
26071
|
className: "w-24",
|
|
26072
26072
|
"aria-label": `${c || "Slider"} value input`,
|
|
26073
26073
|
isDisabled: S
|
|
26074
|
-
}), 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] =
|
|
26075
|
-
let
|
|
26076
|
-
r[42] !== q || r[43] !== Z || r[44] !==
|
|
26074
|
+
}), 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];
|
|
26075
|
+
let KU;
|
|
26076
|
+
r[42] !== q || r[43] !== Z || r[44] !== GU || r[45] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
26077
26077
|
className: B,
|
|
26078
26078
|
children: [
|
|
26079
26079
|
q,
|
|
26080
26080
|
Z,
|
|
26081
|
-
|
|
26081
|
+
GU
|
|
26082
26082
|
]
|
|
26083
|
-
}), r[42] = q, r[43] = Z, r[44] =
|
|
26084
|
-
let
|
|
26085
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
26083
|
+
}), r[42] = q, r[43] = Z, r[44] = GU, r[45] = B, r[46] = KU) : KU = r[46];
|
|
26084
|
+
let qU;
|
|
26085
|
+
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, {
|
|
26086
26086
|
label: c,
|
|
26087
26087
|
id: w,
|
|
26088
26088
|
align: I,
|
|
26089
26089
|
fullWidth: v,
|
|
26090
26090
|
className: R,
|
|
26091
|
-
children:
|
|
26092
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
26091
|
+
children: KU
|
|
26092
|
+
}), 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;
|
|
26093
26093
|
}, 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", {
|
|
26094
26094
|
variants: {
|
|
26095
26095
|
size: {
|
|
@@ -29097,7 +29097,7 @@ ${c}
|
|
|
29097
29097
|
}
|
|
29098
29098
|
}), u2;
|
|
29099
29099
|
}
|
|
29100
|
-
var
|
|
29100
|
+
var UU = c(W), G = Object.freeze({
|
|
29101
29101
|
areArraysEqual: E,
|
|
29102
29102
|
areDatesEqual: j,
|
|
29103
29103
|
areMapsEqual: M,
|
|
@@ -29105,48 +29105,48 @@ ${c}
|
|
|
29105
29105
|
areRegExpsEqual: H,
|
|
29106
29106
|
areSetsEqual: W,
|
|
29107
29107
|
createIsNestedEqual: r2
|
|
29108
|
-
}),
|
|
29108
|
+
}), WU = Object.freeze({
|
|
29109
29109
|
areArraysEqual: O,
|
|
29110
29110
|
areDatesEqual: j,
|
|
29111
29111
|
areMapsEqual: I,
|
|
29112
29112
|
areObjectsEqual: B,
|
|
29113
29113
|
areRegExpsEqual: H,
|
|
29114
|
-
areSetsEqual:
|
|
29114
|
+
areSetsEqual: UU,
|
|
29115
29115
|
createIsNestedEqual: r2
|
|
29116
29116
|
}), q = T(G);
|
|
29117
29117
|
function Z(e3, r3) {
|
|
29118
29118
|
return q(e3, r3, void 0);
|
|
29119
29119
|
}
|
|
29120
|
-
var
|
|
29120
|
+
var GU = T(l(G, {
|
|
29121
29121
|
createIsNestedEqual: function() {
|
|
29122
29122
|
return f;
|
|
29123
29123
|
}
|
|
29124
29124
|
}));
|
|
29125
|
-
function
|
|
29126
|
-
return
|
|
29125
|
+
function KU(e3, r3) {
|
|
29126
|
+
return GU(e3, r3, void 0);
|
|
29127
29127
|
}
|
|
29128
|
-
var
|
|
29129
|
-
function
|
|
29130
|
-
return
|
|
29128
|
+
var qU = T(WU);
|
|
29129
|
+
function JU(e3, r3) {
|
|
29130
|
+
return qU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29131
29131
|
}
|
|
29132
|
-
var
|
|
29132
|
+
var YU = T(l(WU, {
|
|
29133
29133
|
createIsNestedEqual: function() {
|
|
29134
29134
|
return f;
|
|
29135
29135
|
}
|
|
29136
29136
|
}));
|
|
29137
|
-
function
|
|
29138
|
-
return
|
|
29137
|
+
function XU(e3, r3) {
|
|
29138
|
+
return YU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29139
29139
|
}
|
|
29140
|
-
function
|
|
29140
|
+
function ZU(e3) {
|
|
29141
29141
|
return T(l(G, e3(G)));
|
|
29142
29142
|
}
|
|
29143
|
-
function
|
|
29144
|
-
var r3 = T(l(
|
|
29143
|
+
function QU(e3) {
|
|
29144
|
+
var r3 = T(l(WU, e3(WU)));
|
|
29145
29145
|
return (function(e4, c2, l2) {
|
|
29146
29146
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29147
29147
|
});
|
|
29148
29148
|
}
|
|
29149
|
-
e2.circularDeepEqual =
|
|
29149
|
+
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", {
|
|
29150
29150
|
value: true
|
|
29151
29151
|
});
|
|
29152
29152
|
}));
|
|
@@ -29172,7 +29172,7 @@ ${c}
|
|
|
29172
29172
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29173
29173
|
Object.defineProperty(e, "__esModule", {
|
|
29174
29174
|
value: true
|
|
29175
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29175
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = iW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = UU, e.resizeItemInDirection = XU, e.setTopLeft = QU, e.setTransform = ZU, e.sortLayoutItems = $U, e.sortLayoutItemsByColRow = tW, e.sortLayoutItemsByRowCol = eW, e.synchronizeLayoutWithChildren = nW, e.validateLayout = rW, e.withLayoutItem = v;
|
|
29176
29176
|
var r = require_fast_equals(), c = l(require_react());
|
|
29177
29177
|
function l(e2) {
|
|
29178
29178
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29277,7 +29277,7 @@ ${c}
|
|
|
29277
29277
|
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);
|
|
29278
29278
|
}
|
|
29279
29279
|
function T(e2, r2, c2, l2) {
|
|
29280
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29280
|
+
let u2 = B(e2), d2 = h(u2), f2 = $U(e2, r2), p2 = Array(e2.length);
|
|
29281
29281
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29282
29282
|
let h3 = y(f2[m2]);
|
|
29283
29283
|
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;
|
|
@@ -29335,7 +29335,7 @@ ${c}
|
|
|
29335
29335
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29336
29336
|
let h2 = r2.x, _2 = r2.y;
|
|
29337
29337
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29338
|
-
let v2 =
|
|
29338
|
+
let v2 = $U(e2, f2);
|
|
29339
29339
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29340
29340
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29341
29341
|
if (b2 && m2) return g(e2);
|
|
@@ -29366,18 +29366,18 @@ ${c}
|
|
|
29366
29366
|
let h2 = f2 ? c2.x + 1 : void 0, g2 = p2 ? c2.y + 1 : void 0;
|
|
29367
29367
|
return h2 == null && g2 == null ? e2 : H(e2, c2, f2 ? c2.x + 1 : void 0, p2 ? c2.y + 1 : void 0, l2, m2, u2, d2);
|
|
29368
29368
|
}
|
|
29369
|
-
function
|
|
29369
|
+
function UU(e2) {
|
|
29370
29370
|
return e2 * 100 + "%";
|
|
29371
29371
|
}
|
|
29372
|
-
var G = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29372
|
+
var G = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, WU = (e2, r2, c2) => e2 < 0 ? r2 : c2, q = (e2) => Math.max(0, e2), Z = (e2) => Math.max(0, e2), GU = (e2, r2, c2) => {
|
|
29373
29373
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29374
29374
|
return {
|
|
29375
29375
|
left: l2,
|
|
29376
29376
|
width: d2,
|
|
29377
|
-
height:
|
|
29377
|
+
height: WU(f2, e2.height, u2),
|
|
29378
29378
|
top: Z(f2)
|
|
29379
29379
|
};
|
|
29380
|
-
},
|
|
29380
|
+
}, KU = (e2, r2, c2) => {
|
|
29381
29381
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29382
29382
|
return {
|
|
29383
29383
|
top: l2,
|
|
@@ -29385,7 +29385,7 @@ ${c}
|
|
|
29385
29385
|
width: G(e2.left, e2.width, f2, c2),
|
|
29386
29386
|
left: q(u2)
|
|
29387
29387
|
};
|
|
29388
|
-
},
|
|
29388
|
+
}, qU = (e2, r2, c2) => {
|
|
29389
29389
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29390
29390
|
return {
|
|
29391
29391
|
height: u2,
|
|
@@ -29393,37 +29393,37 @@ ${c}
|
|
|
29393
29393
|
top: Z(l2),
|
|
29394
29394
|
left: q(f2)
|
|
29395
29395
|
};
|
|
29396
|
-
},
|
|
29396
|
+
}, JU = (e2, r2, c2) => {
|
|
29397
29397
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29398
29398
|
return {
|
|
29399
29399
|
width: f2,
|
|
29400
29400
|
left: u2,
|
|
29401
|
-
height:
|
|
29401
|
+
height: WU(l2, e2.height, d2),
|
|
29402
29402
|
top: Z(l2)
|
|
29403
29403
|
};
|
|
29404
|
-
},
|
|
29405
|
-
n:
|
|
29404
|
+
}, YU = {
|
|
29405
|
+
n: GU,
|
|
29406
29406
|
ne: function() {
|
|
29407
|
-
return
|
|
29407
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29408
29408
|
},
|
|
29409
|
-
e:
|
|
29409
|
+
e: KU,
|
|
29410
29410
|
se: function() {
|
|
29411
|
-
return
|
|
29411
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29412
29412
|
},
|
|
29413
|
-
s:
|
|
29413
|
+
s: JU,
|
|
29414
29414
|
sw: function() {
|
|
29415
|
-
return
|
|
29415
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29416
29416
|
},
|
|
29417
|
-
w:
|
|
29417
|
+
w: qU,
|
|
29418
29418
|
nw: function() {
|
|
29419
|
-
return
|
|
29419
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29420
29420
|
}
|
|
29421
29421
|
};
|
|
29422
|
-
function
|
|
29423
|
-
let u2 =
|
|
29422
|
+
function XU(e2, r2, c2, l2) {
|
|
29423
|
+
let u2 = YU[e2];
|
|
29424
29424
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29425
29425
|
}
|
|
29426
|
-
function
|
|
29426
|
+
function ZU(e2) {
|
|
29427
29427
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29428
29428
|
return {
|
|
29429
29429
|
transform: d2,
|
|
@@ -29436,7 +29436,7 @@ ${c}
|
|
|
29436
29436
|
position: "absolute"
|
|
29437
29437
|
};
|
|
29438
29438
|
}
|
|
29439
|
-
function
|
|
29439
|
+
function QU(e2) {
|
|
29440
29440
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29441
29441
|
return {
|
|
29442
29442
|
top: `${r2}px`,
|
|
@@ -29446,20 +29446,20 @@ ${c}
|
|
|
29446
29446
|
position: "absolute"
|
|
29447
29447
|
};
|
|
29448
29448
|
}
|
|
29449
|
-
function
|
|
29450
|
-
return r2 === "horizontal" ?
|
|
29449
|
+
function $U(e2, r2) {
|
|
29450
|
+
return r2 === "horizontal" ? tW(e2) : r2 === "vertical" ? eW(e2) : e2;
|
|
29451
29451
|
}
|
|
29452
|
-
function
|
|
29452
|
+
function eW(e2) {
|
|
29453
29453
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29454
29454
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29455
29455
|
});
|
|
29456
29456
|
}
|
|
29457
|
-
function
|
|
29457
|
+
function tW(e2) {
|
|
29458
29458
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29459
29459
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29460
29460
|
});
|
|
29461
29461
|
}
|
|
29462
|
-
function
|
|
29462
|
+
function nW(e2, r2, l2, u2, f2) {
|
|
29463
29463
|
e2 || (e2 = []);
|
|
29464
29464
|
let p2 = [];
|
|
29465
29465
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29480,7 +29480,7 @@ ${c}
|
|
|
29480
29480
|
});
|
|
29481
29481
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29482
29482
|
}
|
|
29483
|
-
function
|
|
29483
|
+
function rW(e2) {
|
|
29484
29484
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29485
29485
|
"x",
|
|
29486
29486
|
"y",
|
|
@@ -29497,7 +29497,7 @@ ${c}
|
|
|
29497
29497
|
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})`);
|
|
29498
29498
|
}
|
|
29499
29499
|
}
|
|
29500
|
-
function
|
|
29500
|
+
function iW(e2) {
|
|
29501
29501
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29502
29502
|
return r2 === false ? null : c2;
|
|
29503
29503
|
}
|
|
@@ -32302,7 +32302,7 @@ ${c}
|
|
|
32302
32302
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32303
32303
|
let E = useIsDragging(), O, j;
|
|
32304
32304
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32305
|
-
let M = !f && !v, I, L, R, z, B, H, W,
|
|
32305
|
+
let M = !f && !v, I, L, R, z, B, H, W, UU, G, WU, q, Z, GU, KU, qU, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW;
|
|
32306
32306
|
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) {
|
|
32307
32307
|
let e2 = Maps.keyBy(c.cells, _temp2$2), m2;
|
|
32308
32308
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32321,14 +32321,14 @@ ${c}
|
|
|
32321
32321
|
});
|
|
32322
32322
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32323
32323
|
let y2 = v2;
|
|
32324
|
-
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,
|
|
32324
|
+
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 = {
|
|
32325
32325
|
lg: c.cells
|
|
32326
|
-
}, r[58] = c.cells, r[59] =
|
|
32326
|
+
}, r[58] = c.cells, r[59] = nW), rW = L, iW = S, R = false;
|
|
32327
32327
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32328
32328
|
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 ? [
|
|
32329
32329
|
20,
|
|
32330
32330
|
20
|
|
32331
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false,
|
|
32331
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, UU = null, G = true, WU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (q = (e3) => {
|
|
32332
32332
|
f || l({
|
|
32333
32333
|
...c,
|
|
32334
32334
|
cells: e3
|
|
@@ -32337,7 +32337,7 @@ ${c}
|
|
|
32337
32337
|
i: g.i,
|
|
32338
32338
|
w: g.w || 2,
|
|
32339
32339
|
h: g.h || 2
|
|
32340
|
-
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (
|
|
32340
|
+
} : void 0, r[70] = g, r[71] = Z), r[72] !== O || r[73] !== c || r[74] !== l ? (GU = (e3, r2, u2) => {
|
|
32341
32341
|
O.onDragStop(), r2 && l({
|
|
32342
32342
|
...c,
|
|
32343
32343
|
cells: [
|
|
@@ -32345,15 +32345,15 @@ ${c}
|
|
|
32345
32345
|
r2
|
|
32346
32346
|
]
|
|
32347
32347
|
});
|
|
32348
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32348
|
+
}, 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) => {
|
|
32349
32349
|
O.onDragStart(u2);
|
|
32350
|
-
},
|
|
32350
|
+
}, qU = (e3, r2, c2, l2, u2) => {
|
|
32351
32351
|
O.onDragMove(u2);
|
|
32352
|
-
},
|
|
32352
|
+
}, JU = () => {
|
|
32353
32353
|
O.onDragStop();
|
|
32354
|
-
}, r[76] = O, r[77] =
|
|
32354
|
+
}, 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";
|
|
32355
32355
|
let E2;
|
|
32356
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32356
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), eW = u.filter(E2).map((r2) => {
|
|
32357
32357
|
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, {
|
|
32358
32358
|
code: r2.code,
|
|
32359
32359
|
mode: d,
|
|
@@ -32382,38 +32382,38 @@ ${c}
|
|
|
32382
32382
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32383
32383
|
children: m3
|
|
32384
32384
|
}, r2.id);
|
|
32385
|
-
}), 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] =
|
|
32386
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27],
|
|
32387
|
-
let
|
|
32388
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !==
|
|
32389
|
-
breakpoint:
|
|
32390
|
-
layouts:
|
|
32391
|
-
style:
|
|
32392
|
-
cols:
|
|
32385
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = UU, r[29] = G, r[30] = WU, r[31] = q, r[32] = Z, r[33] = GU, r[34] = KU, r[35] = qU, r[36] = JU, r[37] = YU, r[38] = XU, r[39] = ZU, r[40] = QU, r[41] = $U, r[42] = eW, r[43] = tW, r[44] = nW, r[45] = rW, r[46] = iW;
|
|
32386
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], UU = r[28], G = r[29], WU = r[30], q = r[31], Z = r[32], GU = r[33], KU = r[34], qU = r[35], JU = r[36], YU = r[37], XU = r[38], ZU = r[39], QU = r[40], $U = r[41], eW = r[42], tW = r[43], nW = r[44], rW = r[45], iW = r[46];
|
|
32387
|
+
let aW;
|
|
32388
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== UU || r[89] !== G || r[90] !== WU || r[91] !== q || r[92] !== Z || r[93] !== GU || r[94] !== KU || r[95] !== qU || r[96] !== JU || r[97] !== YU || r[98] !== XU || r[99] !== ZU || r[100] !== QU || r[101] !== $U || r[102] !== eW || r[103] !== tW || r[104] !== nW || r[105] !== rW || r[106] !== iW ? (aW = (0, import_jsx_runtime.jsx)(I, {
|
|
32389
|
+
breakpoint: tW,
|
|
32390
|
+
layouts: nW,
|
|
32391
|
+
style: rW,
|
|
32392
|
+
cols: iW,
|
|
32393
32393
|
allowOverlap: R,
|
|
32394
32394
|
className: z,
|
|
32395
32395
|
containerPadding: B,
|
|
32396
32396
|
margin: H,
|
|
32397
32397
|
isBounded: W,
|
|
32398
|
-
compactType:
|
|
32398
|
+
compactType: UU,
|
|
32399
32399
|
preventCollision: G,
|
|
32400
|
-
rowHeight:
|
|
32400
|
+
rowHeight: WU,
|
|
32401
32401
|
onLayoutChange: q,
|
|
32402
32402
|
droppingItem: Z,
|
|
32403
|
-
onDrop:
|
|
32404
|
-
onDragStart:
|
|
32405
|
-
onDrag:
|
|
32406
|
-
onDragStop:
|
|
32407
|
-
onResizeStop:
|
|
32408
|
-
isDraggable:
|
|
32409
|
-
isDroppable:
|
|
32410
|
-
isResizable:
|
|
32411
|
-
draggableHandle:
|
|
32412
|
-
children:
|
|
32413
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] =
|
|
32414
|
-
let
|
|
32415
|
-
if (r[108] !== u || r[109] !==
|
|
32416
|
-
|
|
32403
|
+
onDrop: GU,
|
|
32404
|
+
onDragStart: KU,
|
|
32405
|
+
onDrag: qU,
|
|
32406
|
+
onDragStop: JU,
|
|
32407
|
+
onResizeStop: YU,
|
|
32408
|
+
isDraggable: XU,
|
|
32409
|
+
isDroppable: ZU,
|
|
32410
|
+
isResizable: QU,
|
|
32411
|
+
draggableHandle: $U,
|
|
32412
|
+
children: eW
|
|
32413
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = UU, r[89] = G, r[90] = WU, r[91] = q, r[92] = Z, r[93] = GU, r[94] = KU, r[95] = qU, r[96] = JU, r[97] = YU, r[98] = XU, r[99] = ZU, r[100] = QU, r[101] = $U, r[102] = eW, r[103] = tW, r[104] = nW, r[105] = rW, r[106] = iW, r[107] = aW) : aW = r[107];
|
|
32414
|
+
let oW = aW, sW, cW, lW, uW, dW, fW, pW;
|
|
32415
|
+
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) {
|
|
32416
|
+
pW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32417
32417
|
bb0: {
|
|
32418
32418
|
let e2;
|
|
32419
32419
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32421,14 +32421,14 @@ ${c}
|
|
|
32421
32421
|
if (f) {
|
|
32422
32422
|
if (c.bordered) {
|
|
32423
32423
|
let e4;
|
|
32424
|
-
r[127] !==
|
|
32424
|
+
r[127] !== oW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32425
32425
|
className: "flex flex-1 flex-col items-center",
|
|
32426
32426
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32427
32427
|
style: L,
|
|
32428
32428
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32429
|
-
children:
|
|
32429
|
+
children: oW
|
|
32430
32430
|
})
|
|
32431
|
-
}), r[127] =
|
|
32431
|
+
}), r[127] = oW, r[128] = L, r[129] = e4) : e4 = r[129], oW = e4;
|
|
32432
32432
|
}
|
|
32433
32433
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32434
32434
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32439,9 +32439,9 @@ ${c}
|
|
|
32439
32439
|
status: e4.status,
|
|
32440
32440
|
isScrollable: false,
|
|
32441
32441
|
hidden: false
|
|
32442
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32442
|
+
}, e4.id), r[130] = d, r[131] = l2), pW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32443
32443
|
children: [
|
|
32444
|
-
|
|
32444
|
+
oW,
|
|
32445
32445
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32446
32446
|
className: "hidden",
|
|
32447
32447
|
children: e3.map(l2)
|
|
@@ -32452,31 +32452,31 @@ ${c}
|
|
|
32452
32452
|
}
|
|
32453
32453
|
if (c.bordered) {
|
|
32454
32454
|
let e3;
|
|
32455
|
-
r[132] ===
|
|
32455
|
+
r[132] === oW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32456
32456
|
className: "h-full overflow-auto",
|
|
32457
|
-
children:
|
|
32458
|
-
}), r[132] =
|
|
32457
|
+
children: oW
|
|
32458
|
+
}), r[132] = oW, r[133] = e3);
|
|
32459
32459
|
let c2;
|
|
32460
32460
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32461
32461
|
style: L,
|
|
32462
32462
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32463
32463
|
children: e3
|
|
32464
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32464
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], oW = c2;
|
|
32465
32465
|
}
|
|
32466
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32466
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (fW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32467
32467
|
layout: c,
|
|
32468
32468
|
setLayout: l,
|
|
32469
32469
|
isLocked: v,
|
|
32470
32470
|
setIsLocked: y
|
|
32471
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32471
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = fW) : fW = r[140];
|
|
32472
32472
|
let g2;
|
|
32473
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32473
|
+
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", {
|
|
32474
32474
|
className: g2,
|
|
32475
|
-
children:
|
|
32476
|
-
}), r[143] =
|
|
32475
|
+
children: oW
|
|
32476
|
+
}), 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", {
|
|
32477
32477
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32478
32478
|
children: "Outputs"
|
|
32479
|
-
}), r[145] =
|
|
32479
|
+
}), r[145] = cW) : cW = r[145];
|
|
32480
32480
|
let b2;
|
|
32481
32481
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32482
32482
|
draggable: true,
|
|
@@ -32501,34 +32501,34 @@ ${c}
|
|
|
32501
32501
|
status: e3.status,
|
|
32502
32502
|
hidden: false
|
|
32503
32503
|
})
|
|
32504
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32505
|
-
}
|
|
32506
|
-
r[108] = u, r[109] =
|
|
32507
|
-
} else
|
|
32508
|
-
if (
|
|
32509
|
-
let
|
|
32510
|
-
r[150] !==
|
|
32511
|
-
className: iW,
|
|
32512
|
-
children: [
|
|
32513
|
-
aW,
|
|
32514
|
-
oW
|
|
32515
|
-
]
|
|
32516
|
-
}), r[150] = iW, r[151] = aW, r[152] = oW, r[153] = dW) : dW = r[153];
|
|
32517
|
-
let fW;
|
|
32518
|
-
r[154] !== sW || r[155] !== cW || r[156] !== dW ? (fW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32504
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], lW = m2.map(b2);
|
|
32505
|
+
}
|
|
32506
|
+
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;
|
|
32507
|
+
} 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];
|
|
32508
|
+
if (pW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return pW;
|
|
32509
|
+
let mW;
|
|
32510
|
+
r[150] !== sW || r[151] !== cW || r[152] !== lW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32519
32511
|
className: sW,
|
|
32520
32512
|
children: [
|
|
32521
32513
|
cW,
|
|
32522
|
-
|
|
32514
|
+
lW
|
|
32523
32515
|
]
|
|
32524
|
-
}), r[
|
|
32525
|
-
let
|
|
32526
|
-
|
|
32516
|
+
}), r[150] = sW, r[151] = cW, r[152] = lW, r[153] = mW) : mW = r[153];
|
|
32517
|
+
let hW;
|
|
32518
|
+
r[154] !== uW || r[155] !== dW || r[156] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32519
|
+
className: uW,
|
|
32527
32520
|
children: [
|
|
32528
|
-
|
|
32529
|
-
|
|
32521
|
+
dW,
|
|
32522
|
+
mW
|
|
32530
32523
|
]
|
|
32531
|
-
}), r[
|
|
32524
|
+
}), r[154] = uW, r[155] = dW, r[156] = mW, r[157] = hW) : hW = r[157];
|
|
32525
|
+
let gW;
|
|
32526
|
+
return r[158] !== fW || r[159] !== hW ? (gW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32527
|
+
children: [
|
|
32528
|
+
fW,
|
|
32529
|
+
hW
|
|
32530
|
+
]
|
|
32531
|
+
}), r[158] = fW, r[159] = hW, r[160] = gW) : gW = r[160], gW;
|
|
32532
32532
|
};
|
|
32533
32533
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32534
32534
|
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;
|
|
@@ -32809,8 +32809,8 @@ ${c}
|
|
|
32809
32809
|
size: "sm",
|
|
32810
32810
|
onCheckedChange: h
|
|
32811
32811
|
}), r[25] = m, r[26] = h, r[27] = W) : W = r[27];
|
|
32812
|
-
let
|
|
32813
|
-
r[28] !== B || r[29] !== W ? (
|
|
32812
|
+
let UU;
|
|
32813
|
+
r[28] !== B || r[29] !== W ? (UU = (0, import_jsx_runtime.jsx)(DropdownMenuContent, {
|
|
32814
32814
|
side: "bottom",
|
|
32815
32815
|
children: (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32816
32816
|
onSelect: B,
|
|
@@ -32819,20 +32819,20 @@ ${c}
|
|
|
32819
32819
|
W
|
|
32820
32820
|
]
|
|
32821
32821
|
})
|
|
32822
|
-
}), r[28] = B, r[29] = W, r[30] =
|
|
32822
|
+
}), r[28] = B, r[29] = W, r[30] = UU) : UU = r[30];
|
|
32823
32823
|
let G;
|
|
32824
|
-
r[31] !== L || r[32] !== R || r[33] !==
|
|
32824
|
+
r[31] !== L || r[32] !== R || r[33] !== UU ? (G = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
32825
32825
|
open: L,
|
|
32826
32826
|
onOpenChange: R,
|
|
32827
32827
|
children: [
|
|
32828
32828
|
z,
|
|
32829
|
-
|
|
32829
|
+
UU
|
|
32830
32830
|
]
|
|
32831
|
-
}), r[31] = L, r[32] = R, r[33] =
|
|
32832
|
-
let
|
|
32833
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32831
|
+
}), r[31] = L, r[32] = R, r[33] = UU, r[34] = G) : G = r[34];
|
|
32832
|
+
let WU;
|
|
32833
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32834
32834
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32835
|
-
}), r[35] =
|
|
32835
|
+
}), r[35] = WU) : WU = r[35];
|
|
32836
32836
|
let q;
|
|
32837
32837
|
r[36] === l ? q = r[37] : (q = (0, import_jsx_runtime.jsx)(X, {
|
|
32838
32838
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
@@ -32844,7 +32844,7 @@ ${c}
|
|
|
32844
32844
|
children: [
|
|
32845
32845
|
I,
|
|
32846
32846
|
G,
|
|
32847
|
-
|
|
32847
|
+
WU,
|
|
32848
32848
|
q
|
|
32849
32849
|
]
|
|
32850
32850
|
}), r[38] = I, r[39] = G, r[40] = q, r[41] = w, r[42] = Z) : Z = r[42], Z;
|
|
@@ -32959,18 +32959,24 @@ ${c}
|
|
|
32959
32959
|
cells: []
|
|
32960
32960
|
})
|
|
32961
32961
|
};
|
|
32962
|
+
function hasRenderableOutput(e) {
|
|
32963
|
+
return e.output != null && e.output.data !== "";
|
|
32964
|
+
}
|
|
32962
32965
|
function computeSlideCellsInfo(e, r) {
|
|
32963
32966
|
var _a3;
|
|
32964
|
-
let c =
|
|
32965
|
-
|
|
32966
|
-
|
|
32967
|
-
|
|
32967
|
+
let c = [
|
|
32968
|
+
...e
|
|
32969
|
+
], l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map(), f = null, p = 0;
|
|
32970
|
+
for (let [e2, m] of c.entries()) {
|
|
32971
|
+
let c2 = (_a3 = r.cells.get(m.id)) == null ? void 0 : _a3.type, h = hasRenderableOutput(m);
|
|
32972
|
+
c2 && d.set(m.id, c2), h || u.add(m.id), c2 === "skip" || !h ? l.add(m.id) : f === null && (f = m, p = e2);
|
|
32968
32973
|
}
|
|
32969
32974
|
return {
|
|
32970
|
-
|
|
32975
|
+
slideCells: c,
|
|
32971
32976
|
skippedIds: l,
|
|
32972
|
-
|
|
32973
|
-
|
|
32977
|
+
noOutputIds: u,
|
|
32978
|
+
slideTypes: d,
|
|
32979
|
+
startCellIndex: p
|
|
32974
32980
|
};
|
|
32975
32981
|
}
|
|
32976
32982
|
function useCombinedRefs() {
|
|
@@ -34789,28 +34795,28 @@ ${c}
|
|
|
34789
34795
|
}, [
|
|
34790
34796
|
T,
|
|
34791
34797
|
M
|
|
34792
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null),
|
|
34798
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), UU = useLatestValue(h, Object.values(h)), G = useUniqueId("DndDescribedBy", r), WU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34793
34799
|
j
|
|
34794
|
-
]), q = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers:
|
|
34800
|
+
]), q = useMeasuringConfiguration(p), { droppableRects: Z, measureDroppableContainers: GU, measuringScheduled: KU } = useDroppableMeasuring(WU, {
|
|
34795
34801
|
dragging: w,
|
|
34796
34802
|
dependencies: [
|
|
34797
34803
|
O.x,
|
|
34798
34804
|
O.y
|
|
34799
34805
|
],
|
|
34800
34806
|
config: q.droppable
|
|
34801
|
-
}),
|
|
34807
|
+
}), qU = useCachedNode(E, T), JU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34802
34808
|
H
|
|
34803
|
-
]),
|
|
34809
|
+
]), YU = EW(), XU = useInitialRect(qU, q.draggable.measure);
|
|
34804
34810
|
useLayoutShiftScrollCompensation({
|
|
34805
34811
|
activeNode: T == null ? null : E.get(T),
|
|
34806
|
-
config:
|
|
34807
|
-
initialRect:
|
|
34812
|
+
config: YU.layoutShiftCompensation,
|
|
34813
|
+
initialRect: XU,
|
|
34808
34814
|
measure: q.draggable.measure
|
|
34809
34815
|
});
|
|
34810
|
-
let
|
|
34816
|
+
let ZU = useRect(qU, q.draggable.measure, XU), QU = useRect(qU ? qU.parentElement : null), $U = (0, import_react.useRef)({
|
|
34811
34817
|
activatorEvent: null,
|
|
34812
34818
|
active: null,
|
|
34813
|
-
activeNode:
|
|
34819
|
+
activeNode: qU,
|
|
34814
34820
|
collisionRect: null,
|
|
34815
34821
|
collisions: null,
|
|
34816
34822
|
droppableRects: Z,
|
|
@@ -34821,48 +34827,48 @@ ${c}
|
|
|
34821
34827
|
over: null,
|
|
34822
34828
|
scrollableAncestors: [],
|
|
34823
34829
|
scrollAdjustedTranslate: null
|
|
34824
|
-
}),
|
|
34830
|
+
}), eW = j.getNodeFor((_a3 = $U.current.over) == null ? void 0 : _a3.id), tW = useDragOverlayMeasuring({
|
|
34825
34831
|
measure: q.dragOverlay.measure
|
|
34826
|
-
}),
|
|
34832
|
+
}), 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, {
|
|
34827
34833
|
transform: {
|
|
34828
|
-
x: O.x -
|
|
34829
|
-
y: O.y -
|
|
34834
|
+
x: O.x - aW.x,
|
|
34835
|
+
y: O.y - aW.y,
|
|
34830
34836
|
scaleX: 1,
|
|
34831
34837
|
scaleY: 1
|
|
34832
34838
|
},
|
|
34833
34839
|
activatorEvent: H,
|
|
34834
34840
|
active: L,
|
|
34835
|
-
activeNodeRect:
|
|
34836
|
-
containerNodeRect:
|
|
34837
|
-
draggingNodeRect:
|
|
34838
|
-
over:
|
|
34839
|
-
overlayNodeRect:
|
|
34840
|
-
scrollableAncestors:
|
|
34841
|
-
scrollableAncestorRects:
|
|
34842
|
-
windowRect:
|
|
34843
|
-
}),
|
|
34844
|
-
|
|
34845
|
-
]),
|
|
34841
|
+
activeNodeRect: ZU,
|
|
34842
|
+
containerNodeRect: QU,
|
|
34843
|
+
draggingNodeRect: rW,
|
|
34844
|
+
over: $U.current.over,
|
|
34845
|
+
overlayNodeRect: tW.rect,
|
|
34846
|
+
scrollableAncestors: sW,
|
|
34847
|
+
scrollableAncestorRects: cW,
|
|
34848
|
+
windowRect: oW
|
|
34849
|
+
}), uW = JU ? add(JU, O) : null, dW = useScrollOffsets(sW), fW = useScrollOffsetsDelta(dW), pW = useScrollOffsetsDelta(dW, [
|
|
34850
|
+
ZU
|
|
34851
|
+
]), mW = add(lW, fW), hW = rW ? getAdjustedRect(rW, lW) : null, gW = L && hW ? f({
|
|
34846
34852
|
active: L,
|
|
34847
|
-
collisionRect:
|
|
34853
|
+
collisionRect: hW,
|
|
34848
34854
|
droppableRects: Z,
|
|
34849
|
-
droppableContainers:
|
|
34850
|
-
pointerCoordinates:
|
|
34851
|
-
}) : null,
|
|
34855
|
+
droppableContainers: WU,
|
|
34856
|
+
pointerCoordinates: uW
|
|
34857
|
+
}) : 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) => {
|
|
34852
34858
|
let { sensor: c2, options: l2 } = r2;
|
|
34853
34859
|
if (R.current == null) return;
|
|
34854
34860
|
let u2 = E.get(R.current);
|
|
34855
34861
|
if (!u2) return;
|
|
34856
34862
|
let d2 = e2.nativeEvent;
|
|
34857
|
-
|
|
34863
|
+
xW.current = new c2({
|
|
34858
34864
|
active: R.current,
|
|
34859
34865
|
activeNode: u2,
|
|
34860
34866
|
event: d2,
|
|
34861
34867
|
options: l2,
|
|
34862
|
-
context:
|
|
34868
|
+
context: $U,
|
|
34863
34869
|
onAbort(e3) {
|
|
34864
34870
|
if (!E.get(e3)) return;
|
|
34865
|
-
let { onDragAbort: r3 } =
|
|
34871
|
+
let { onDragAbort: r3 } = UU.current, c3 = {
|
|
34866
34872
|
id: e3
|
|
34867
34873
|
};
|
|
34868
34874
|
r3 == null ? void 0 : r3(c3), v({
|
|
@@ -34872,7 +34878,7 @@ ${c}
|
|
|
34872
34878
|
},
|
|
34873
34879
|
onPending(e3, r3, c3, l3) {
|
|
34874
34880
|
if (!E.get(e3)) return;
|
|
34875
|
-
let { onDragPending: u3 } =
|
|
34881
|
+
let { onDragPending: u3 } = UU.current, d3 = {
|
|
34876
34882
|
id: e3,
|
|
34877
34883
|
constraint: r3,
|
|
34878
34884
|
initialCoordinates: c3,
|
|
@@ -34888,7 +34894,7 @@ ${c}
|
|
|
34888
34894
|
if (r3 == null) return;
|
|
34889
34895
|
let c3 = E.get(r3);
|
|
34890
34896
|
if (!c3) return;
|
|
34891
|
-
let { onDragStart: l3 } =
|
|
34897
|
+
let { onDragStart: l3 } = UU.current, u3 = {
|
|
34892
34898
|
activatorEvent: d2,
|
|
34893
34899
|
active: {
|
|
34894
34900
|
id: r3,
|
|
@@ -34904,7 +34910,7 @@ ${c}
|
|
|
34904
34910
|
}), v({
|
|
34905
34911
|
type: "onDragStart",
|
|
34906
34912
|
event: u3
|
|
34907
|
-
}), B(
|
|
34913
|
+
}), B(xW.current), W(d2);
|
|
34908
34914
|
});
|
|
34909
34915
|
},
|
|
34910
34916
|
onMove(e3) {
|
|
@@ -34918,9 +34924,9 @@ ${c}
|
|
|
34918
34924
|
});
|
|
34919
34925
|
function f2(e3) {
|
|
34920
34926
|
return async function() {
|
|
34921
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34927
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = $U.current, f3 = null;
|
|
34922
34928
|
if (r3 && u3) {
|
|
34923
|
-
let { cancelDrop: p2 } =
|
|
34929
|
+
let { cancelDrop: p2 } = UU.current;
|
|
34924
34930
|
f3 = {
|
|
34925
34931
|
activatorEvent: d2,
|
|
34926
34932
|
active: r3,
|
|
@@ -34932,10 +34938,10 @@ ${c}
|
|
|
34932
34938
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34933
34939
|
_({
|
|
34934
34940
|
type: e3
|
|
34935
|
-
}), S(Status.Uninitialized),
|
|
34941
|
+
}), S(Status.Uninitialized), yW(null), B(null), W(null), xW.current = null;
|
|
34936
34942
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34937
34943
|
if (f3) {
|
|
34938
|
-
let e4 =
|
|
34944
|
+
let e4 = UU.current[r4];
|
|
34939
34945
|
e4 == null ? void 0 : e4(f3), v({
|
|
34940
34946
|
type: r4,
|
|
34941
34947
|
event: f3
|
|
@@ -34946,7 +34952,7 @@ ${c}
|
|
|
34946
34952
|
}
|
|
34947
34953
|
}, [
|
|
34948
34954
|
E
|
|
34949
|
-
]),
|
|
34955
|
+
]), CW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34950
34956
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34951
34957
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34952
34958
|
let f2 = {
|
|
@@ -34954,26 +34960,26 @@ ${c}
|
|
|
34954
34960
|
};
|
|
34955
34961
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34956
34962
|
capturedBy: r2.sensor
|
|
34957
|
-
}, R.current = l2,
|
|
34963
|
+
}, R.current = l2, SW(c2, r2));
|
|
34958
34964
|
}, [
|
|
34959
34965
|
E,
|
|
34960
|
-
|
|
34966
|
+
SW
|
|
34961
34967
|
]));
|
|
34962
34968
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34963
|
-
|
|
34969
|
+
ZU && b === Status.Initializing && S(Status.Initialized);
|
|
34964
34970
|
}, [
|
|
34965
|
-
|
|
34971
|
+
ZU,
|
|
34966
34972
|
b
|
|
34967
34973
|
]), (0, import_react.useEffect)(() => {
|
|
34968
|
-
let { onDragMove: e2 } =
|
|
34974
|
+
let { onDragMove: e2 } = UU.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = $U.current;
|
|
34969
34975
|
if (!r2 || !c2) return;
|
|
34970
34976
|
let d2 = {
|
|
34971
34977
|
active: r2,
|
|
34972
34978
|
activatorEvent: c2,
|
|
34973
34979
|
collisions: l2,
|
|
34974
34980
|
delta: {
|
|
34975
|
-
x:
|
|
34976
|
-
y:
|
|
34981
|
+
x: mW.x,
|
|
34982
|
+
y: mW.y
|
|
34977
34983
|
},
|
|
34978
34984
|
over: u2
|
|
34979
34985
|
};
|
|
@@ -34984,12 +34990,12 @@ ${c}
|
|
|
34984
34990
|
});
|
|
34985
34991
|
});
|
|
34986
34992
|
}, [
|
|
34987
|
-
|
|
34988
|
-
|
|
34993
|
+
mW.x,
|
|
34994
|
+
mW.y
|
|
34989
34995
|
]), (0, import_react.useEffect)(() => {
|
|
34990
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34996
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = $U.current;
|
|
34991
34997
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34992
|
-
let { onDragOver: d2 } =
|
|
34998
|
+
let { onDragOver: d2 } = UU.current, f2 = l2.get(_W), p2 = f2 && f2.rect.current ? {
|
|
34993
34999
|
id: f2.id,
|
|
34994
35000
|
rect: f2.rect.current,
|
|
34995
35001
|
data: f2.data,
|
|
@@ -35005,127 +35011,127 @@ ${c}
|
|
|
35005
35011
|
over: p2
|
|
35006
35012
|
};
|
|
35007
35013
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
35008
|
-
|
|
35014
|
+
yW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
35009
35015
|
type: "onDragOver",
|
|
35010
35016
|
event: m2
|
|
35011
35017
|
});
|
|
35012
35018
|
});
|
|
35013
35019
|
}, [
|
|
35014
|
-
|
|
35020
|
+
_W
|
|
35015
35021
|
]), useIsomorphicLayoutEffect(() => {
|
|
35016
|
-
|
|
35022
|
+
$U.current = {
|
|
35017
35023
|
activatorEvent: H,
|
|
35018
35024
|
active: L,
|
|
35019
|
-
activeNode:
|
|
35020
|
-
collisionRect:
|
|
35021
|
-
collisions:
|
|
35025
|
+
activeNode: qU,
|
|
35026
|
+
collisionRect: hW,
|
|
35027
|
+
collisions: gW,
|
|
35022
35028
|
droppableRects: Z,
|
|
35023
35029
|
draggableNodes: E,
|
|
35024
|
-
draggingNode:
|
|
35025
|
-
draggingNodeRect:
|
|
35030
|
+
draggingNode: nW,
|
|
35031
|
+
draggingNodeRect: rW,
|
|
35026
35032
|
droppableContainers: j,
|
|
35027
|
-
over:
|
|
35028
|
-
scrollableAncestors:
|
|
35029
|
-
scrollAdjustedTranslate:
|
|
35033
|
+
over: vW,
|
|
35034
|
+
scrollableAncestors: sW,
|
|
35035
|
+
scrollAdjustedTranslate: mW
|
|
35030
35036
|
}, I.current = {
|
|
35031
|
-
initial:
|
|
35032
|
-
translated:
|
|
35037
|
+
initial: rW,
|
|
35038
|
+
translated: hW
|
|
35033
35039
|
};
|
|
35034
35040
|
}, [
|
|
35035
35041
|
L,
|
|
35036
|
-
|
|
35037
|
-
|
|
35038
|
-
|
|
35042
|
+
qU,
|
|
35043
|
+
gW,
|
|
35044
|
+
hW,
|
|
35039
35045
|
E,
|
|
35040
|
-
|
|
35041
|
-
|
|
35046
|
+
nW,
|
|
35047
|
+
rW,
|
|
35042
35048
|
Z,
|
|
35043
35049
|
j,
|
|
35044
|
-
|
|
35045
|
-
|
|
35046
|
-
|
|
35050
|
+
vW,
|
|
35051
|
+
sW,
|
|
35052
|
+
mW
|
|
35047
35053
|
]), useAutoScroller({
|
|
35048
|
-
...
|
|
35054
|
+
...YU,
|
|
35049
35055
|
delta: O,
|
|
35050
|
-
draggingRect:
|
|
35051
|
-
pointerCoordinates:
|
|
35052
|
-
scrollableAncestors:
|
|
35053
|
-
scrollableAncestorRects:
|
|
35056
|
+
draggingRect: hW,
|
|
35057
|
+
pointerCoordinates: uW,
|
|
35058
|
+
scrollableAncestors: sW,
|
|
35059
|
+
scrollableAncestorRects: cW
|
|
35054
35060
|
});
|
|
35055
|
-
let
|
|
35061
|
+
let wW = (0, import_react.useMemo)(() => ({
|
|
35056
35062
|
active: L,
|
|
35057
|
-
activeNode:
|
|
35058
|
-
activeNodeRect:
|
|
35063
|
+
activeNode: qU,
|
|
35064
|
+
activeNodeRect: ZU,
|
|
35059
35065
|
activatorEvent: H,
|
|
35060
|
-
collisions:
|
|
35061
|
-
containerNodeRect:
|
|
35062
|
-
dragOverlay:
|
|
35066
|
+
collisions: gW,
|
|
35067
|
+
containerNodeRect: QU,
|
|
35068
|
+
dragOverlay: tW,
|
|
35063
35069
|
draggableNodes: E,
|
|
35064
35070
|
droppableContainers: j,
|
|
35065
35071
|
droppableRects: Z,
|
|
35066
|
-
over:
|
|
35067
|
-
measureDroppableContainers:
|
|
35068
|
-
scrollableAncestors:
|
|
35069
|
-
scrollableAncestorRects:
|
|
35072
|
+
over: vW,
|
|
35073
|
+
measureDroppableContainers: GU,
|
|
35074
|
+
scrollableAncestors: sW,
|
|
35075
|
+
scrollableAncestorRects: cW,
|
|
35070
35076
|
measuringConfiguration: q,
|
|
35071
|
-
measuringScheduled:
|
|
35072
|
-
windowRect:
|
|
35077
|
+
measuringScheduled: KU,
|
|
35078
|
+
windowRect: oW
|
|
35073
35079
|
}), [
|
|
35074
35080
|
L,
|
|
35075
|
-
|
|
35076
|
-
|
|
35081
|
+
qU,
|
|
35082
|
+
ZU,
|
|
35077
35083
|
H,
|
|
35078
|
-
|
|
35079
|
-
YU,
|
|
35084
|
+
gW,
|
|
35080
35085
|
QU,
|
|
35086
|
+
tW,
|
|
35081
35087
|
E,
|
|
35082
35088
|
j,
|
|
35083
35089
|
Z,
|
|
35084
|
-
|
|
35085
|
-
|
|
35086
|
-
|
|
35087
|
-
|
|
35090
|
+
vW,
|
|
35091
|
+
GU,
|
|
35092
|
+
sW,
|
|
35093
|
+
cW,
|
|
35088
35094
|
q,
|
|
35089
|
-
|
|
35090
|
-
|
|
35091
|
-
]),
|
|
35095
|
+
KU,
|
|
35096
|
+
oW
|
|
35097
|
+
]), TW = (0, import_react.useMemo)(() => ({
|
|
35092
35098
|
activatorEvent: H,
|
|
35093
|
-
activators:
|
|
35099
|
+
activators: CW,
|
|
35094
35100
|
active: L,
|
|
35095
|
-
activeNodeRect:
|
|
35101
|
+
activeNodeRect: ZU,
|
|
35096
35102
|
ariaDescribedById: {
|
|
35097
35103
|
draggable: G
|
|
35098
35104
|
},
|
|
35099
35105
|
dispatch: _,
|
|
35100
35106
|
draggableNodes: E,
|
|
35101
|
-
over:
|
|
35102
|
-
measureDroppableContainers:
|
|
35107
|
+
over: vW,
|
|
35108
|
+
measureDroppableContainers: GU
|
|
35103
35109
|
}), [
|
|
35104
35110
|
H,
|
|
35105
|
-
|
|
35111
|
+
CW,
|
|
35106
35112
|
L,
|
|
35107
|
-
|
|
35113
|
+
ZU,
|
|
35108
35114
|
_,
|
|
35109
35115
|
G,
|
|
35110
35116
|
E,
|
|
35111
|
-
|
|
35112
|
-
|
|
35117
|
+
vW,
|
|
35118
|
+
GU
|
|
35113
35119
|
]);
|
|
35114
35120
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35115
35121
|
value: y
|
|
35116
35122
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35117
|
-
value:
|
|
35123
|
+
value: TW
|
|
35118
35124
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35119
|
-
value:
|
|
35125
|
+
value: wW
|
|
35120
35126
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35121
|
-
value:
|
|
35127
|
+
value: bW
|
|
35122
35128
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35123
35129
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35124
35130
|
})), import_react.createElement(Accessibility, {
|
|
35125
35131
|
...c,
|
|
35126
35132
|
hiddenTextDescribedById: G
|
|
35127
35133
|
}));
|
|
35128
|
-
function
|
|
35134
|
+
function EW() {
|
|
35129
35135
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35130
35136
|
return typeof l == "object" ? {
|
|
35131
35137
|
...l,
|
|
@@ -35653,7 +35659,7 @@ ${c}
|
|
|
35653
35659
|
updateMeasurementsFor: I,
|
|
35654
35660
|
...m
|
|
35655
35661
|
}
|
|
35656
|
-
}), { active: H, activatorEvent: W, activeNodeRect:
|
|
35662
|
+
}), { active: H, activatorEvent: W, activeNodeRect: UU, attributes: G, setNodeRef: WU, listeners: q, isDragging: Z, over: GU, setActivatorNodeRef: KU, transform: qU } = useDraggable({
|
|
35657
35663
|
id: f,
|
|
35658
35664
|
data: M,
|
|
35659
35665
|
attributes: {
|
|
@@ -35661,60 +35667,60 @@ ${c}
|
|
|
35661
35667
|
...c
|
|
35662
35668
|
},
|
|
35663
35669
|
disabled: O.draggable
|
|
35664
|
-
}),
|
|
35670
|
+
}), JU = useCombinedRefs(B, WU), YU = !!H, XU = YU && !b && isValidIndex(v) && isValidIndex(w), ZU = !T && Z, QU = XU ? (ZU && XU ? qU : null) ?? (p ?? E)({
|
|
35665
35671
|
rects: S,
|
|
35666
|
-
activeNodeRect:
|
|
35672
|
+
activeNodeRect: UU,
|
|
35667
35673
|
activeIndex: v,
|
|
35668
35674
|
overIndex: w,
|
|
35669
35675
|
index: j
|
|
35670
|
-
}) : null,
|
|
35676
|
+
}) : null, $U = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35671
35677
|
id: f,
|
|
35672
35678
|
items: g,
|
|
35673
35679
|
activeIndex: v,
|
|
35674
35680
|
overIndex: w
|
|
35675
|
-
}) : j,
|
|
35676
|
-
activeId:
|
|
35681
|
+
}) : j, eW = H == null ? void 0 : H.id, tW = (0, import_react.useRef)({
|
|
35682
|
+
activeId: eW,
|
|
35677
35683
|
items: g,
|
|
35678
|
-
newIndex:
|
|
35684
|
+
newIndex: $U,
|
|
35679
35685
|
containerId: _
|
|
35680
|
-
}),
|
|
35686
|
+
}), nW = g !== tW.current.items, rW = r({
|
|
35681
35687
|
active: H,
|
|
35682
35688
|
containerId: _,
|
|
35683
35689
|
isDragging: Z,
|
|
35684
|
-
isSorting:
|
|
35690
|
+
isSorting: YU,
|
|
35685
35691
|
id: f,
|
|
35686
35692
|
index: j,
|
|
35687
35693
|
items: g,
|
|
35688
|
-
newIndex:
|
|
35689
|
-
previousItems:
|
|
35690
|
-
previousContainerId:
|
|
35694
|
+
newIndex: tW.current.newIndex,
|
|
35695
|
+
previousItems: tW.current.items,
|
|
35696
|
+
previousContainerId: tW.current.containerId,
|
|
35691
35697
|
transition: h,
|
|
35692
|
-
wasDragging:
|
|
35693
|
-
}),
|
|
35694
|
-
disabled: !
|
|
35698
|
+
wasDragging: tW.current.activeId != null
|
|
35699
|
+
}), iW = useDerivedTransform({
|
|
35700
|
+
disabled: !rW,
|
|
35695
35701
|
index: j,
|
|
35696
35702
|
node: R,
|
|
35697
35703
|
rect: L
|
|
35698
35704
|
});
|
|
35699
35705
|
return (0, import_react.useEffect)(() => {
|
|
35700
|
-
|
|
35706
|
+
YU && tW.current.newIndex !== $U && (tW.current.newIndex = $U), _ !== tW.current.containerId && (tW.current.containerId = _), g !== tW.current.items && (tW.current.items = g);
|
|
35701
35707
|
}, [
|
|
35702
|
-
|
|
35703
|
-
|
|
35708
|
+
YU,
|
|
35709
|
+
$U,
|
|
35704
35710
|
_,
|
|
35705
35711
|
g
|
|
35706
35712
|
]), (0, import_react.useEffect)(() => {
|
|
35707
|
-
if (
|
|
35708
|
-
if (
|
|
35709
|
-
|
|
35713
|
+
if (eW === tW.current.activeId) return;
|
|
35714
|
+
if (eW != null && tW.current.activeId == null) {
|
|
35715
|
+
tW.current.activeId = eW;
|
|
35710
35716
|
return;
|
|
35711
35717
|
}
|
|
35712
35718
|
let e2 = setTimeout(() => {
|
|
35713
|
-
|
|
35719
|
+
tW.current.activeId = eW;
|
|
35714
35720
|
}, 50);
|
|
35715
35721
|
return () => clearTimeout(e2);
|
|
35716
35722
|
}, [
|
|
35717
|
-
|
|
35723
|
+
eW
|
|
35718
35724
|
]), {
|
|
35719
35725
|
active: H,
|
|
35720
35726
|
activeIndex: v,
|
|
@@ -35722,25 +35728,25 @@ ${c}
|
|
|
35722
35728
|
data: M,
|
|
35723
35729
|
rect: L,
|
|
35724
35730
|
index: j,
|
|
35725
|
-
newIndex:
|
|
35731
|
+
newIndex: $U,
|
|
35726
35732
|
items: g,
|
|
35727
35733
|
isOver: z,
|
|
35728
|
-
isSorting:
|
|
35734
|
+
isSorting: YU,
|
|
35729
35735
|
isDragging: Z,
|
|
35730
35736
|
listeners: q,
|
|
35731
35737
|
node: R,
|
|
35732
35738
|
overIndex: w,
|
|
35733
|
-
over:
|
|
35734
|
-
setNodeRef:
|
|
35735
|
-
setActivatorNodeRef:
|
|
35739
|
+
over: GU,
|
|
35740
|
+
setNodeRef: JU,
|
|
35741
|
+
setActivatorNodeRef: KU,
|
|
35736
35742
|
setDroppableNodeRef: B,
|
|
35737
|
-
setDraggableNodeRef:
|
|
35738
|
-
transform:
|
|
35739
|
-
transition:
|
|
35743
|
+
setDraggableNodeRef: WU,
|
|
35744
|
+
transform: iW ?? QU,
|
|
35745
|
+
transition: aW()
|
|
35740
35746
|
};
|
|
35741
|
-
function
|
|
35742
|
-
if (
|
|
35743
|
-
if (!(
|
|
35747
|
+
function aW() {
|
|
35748
|
+
if (iW || nW && tW.current.newIndex === j) return disabledTransition;
|
|
35749
|
+
if (!(ZU && !isKeyboardEvent(W) || !h) && (YU || rW)) return CSS$1.Transition.toString({
|
|
35744
35750
|
...h,
|
|
35745
35751
|
property: transitionProperty
|
|
35746
35752
|
});
|
|
@@ -35772,7 +35778,10 @@ ${c}
|
|
|
35772
35778
|
Icon: l
|
|
35773
35779
|
};
|
|
35774
35780
|
}
|
|
35775
|
-
var
|
|
35781
|
+
var NO_OUTPUT_VISUAL = {
|
|
35782
|
+
label: "No output",
|
|
35783
|
+
description: "Hidden because this cell has no output."
|
|
35784
|
+
}, SLIDE_ASPECT_RATIO = 16 / 9, SLIDE_BASE_WIDTH = 520;
|
|
35776
35785
|
function computeThumbnailDimensions(e) {
|
|
35777
35786
|
return {
|
|
35778
35787
|
width: e,
|
|
@@ -35824,26 +35833,26 @@ ${c}
|
|
|
35824
35833
|
function _temp$4() {
|
|
35825
35834
|
return /* @__PURE__ */ new Set();
|
|
35826
35835
|
}
|
|
35827
|
-
const SlidesMinimap = ({ cells: e, thumbnailWidth: r, canReorder: c, activeCellId: l, skippedIds: u,
|
|
35828
|
-
let
|
|
35836
|
+
const SlidesMinimap = ({ cells: e, thumbnailWidth: r, canReorder: c, activeCellId: l, skippedIds: u, noOutputIds: f, slideTypes: p, onSlideClick: m }) => {
|
|
35837
|
+
let h = useCellIds(), { moveCellToIndex: g } = useCellActions(), _ = (0, import_react.useRef)(null), v = useVisibleCellIds(_), [y, b] = (0, import_react.useState)(null), [S, w] = (0, import_react.useState)(null), T = computeThumbnailDimensions(r);
|
|
35829
35838
|
(0, import_react.useEffect)(() => {
|
|
35830
35839
|
var _a3;
|
|
35831
|
-
!l || !
|
|
35840
|
+
!l || !_.current || ((_a3 = _.current.querySelector(`[data-cell-id="${l}"]`)) == null ? void 0 : _a3.scrollIntoView({
|
|
35832
35841
|
block: "nearest",
|
|
35833
35842
|
behavior: "instant"
|
|
35834
35843
|
}));
|
|
35835
35844
|
}, [
|
|
35836
35845
|
l
|
|
35837
35846
|
]);
|
|
35838
|
-
let
|
|
35847
|
+
let E = useSensors(useSensor(PointerSensor, {
|
|
35839
35848
|
activationConstraint: {
|
|
35840
35849
|
distance: 8
|
|
35841
35850
|
}
|
|
35842
|
-
})),
|
|
35843
|
-
|
|
35844
|
-
},
|
|
35851
|
+
})), O = y ? e.find((e2) => e2.id === y) ?? null : null, j = () => {
|
|
35852
|
+
b(null), w(null);
|
|
35853
|
+
}, M = (e2) => {
|
|
35845
35854
|
let r2 = projectDropTarget(e2);
|
|
35846
|
-
|
|
35855
|
+
w((e3) => (e3 == null ? void 0 : e3.overId) === (r2 == null ? void 0 : r2.overId) && (e3 == null ? void 0 : e3.position) === (r2 == null ? void 0 : r2.position) ? e3 : r2);
|
|
35847
35856
|
};
|
|
35848
35857
|
return c ? (0, import_jsx_runtime.jsxs)(DndContext, {
|
|
35849
35858
|
autoScroll: MINIMAP_AUTO_SCROLL,
|
|
@@ -35851,64 +35860,66 @@ ${c}
|
|
|
35851
35860
|
modifiers: [
|
|
35852
35861
|
restrictToVerticalAxis
|
|
35853
35862
|
],
|
|
35854
|
-
sensors:
|
|
35863
|
+
sensors: E,
|
|
35855
35864
|
onDragStart: (e2) => {
|
|
35856
|
-
|
|
35865
|
+
w(null);
|
|
35857
35866
|
let r2 = asCellId(e2.active.id);
|
|
35858
|
-
r2 &&
|
|
35867
|
+
r2 && b(r2);
|
|
35859
35868
|
},
|
|
35860
|
-
onDragMove:
|
|
35861
|
-
onDragOver:
|
|
35869
|
+
onDragMove: M,
|
|
35870
|
+
onDragOver: M,
|
|
35862
35871
|
onDragEnd: (e2) => {
|
|
35863
35872
|
try {
|
|
35864
|
-
if (
|
|
35873
|
+
if (y && S) {
|
|
35865
35874
|
let e3 = resolveDropTarget({
|
|
35866
|
-
cellIds:
|
|
35867
|
-
activeId:
|
|
35868
|
-
target:
|
|
35875
|
+
cellIds: h,
|
|
35876
|
+
activeId: y,
|
|
35877
|
+
target: S
|
|
35869
35878
|
});
|
|
35870
|
-
e3 &&
|
|
35879
|
+
e3 && g(e3);
|
|
35871
35880
|
}
|
|
35872
35881
|
} catch (e3) {
|
|
35873
35882
|
Logger.warn("Drop failed", e3);
|
|
35874
35883
|
} finally {
|
|
35875
|
-
|
|
35884
|
+
j();
|
|
35876
35885
|
}
|
|
35877
35886
|
},
|
|
35878
|
-
onDragCancel:
|
|
35887
|
+
onDragCancel: j,
|
|
35879
35888
|
children: [
|
|
35880
35889
|
(0, import_jsx_runtime.jsx)(SlideThumbnailsContainer, {
|
|
35881
|
-
ref:
|
|
35890
|
+
ref: _,
|
|
35882
35891
|
children: (0, import_jsx_runtime.jsx)(SortableContext, {
|
|
35883
35892
|
items: e.map((e2) => e2.id),
|
|
35884
35893
|
strategy: verticalListSortingStrategy,
|
|
35885
35894
|
children: e.map((e2, r2) => (0, import_jsx_runtime.jsx)(SortableSlideThumbnail, {
|
|
35886
35895
|
cell: e2,
|
|
35887
|
-
dimensions:
|
|
35888
|
-
isActive:
|
|
35896
|
+
dimensions: T,
|
|
35897
|
+
isActive: y === e2.id,
|
|
35889
35898
|
isActiveSlide: e2.id === l,
|
|
35890
|
-
isVisible:
|
|
35899
|
+
isVisible: v.has(e2.id),
|
|
35900
|
+
isNoOutput: f == null ? void 0 : f.has(e2.id),
|
|
35891
35901
|
slideType: resolveSlideType({
|
|
35892
35902
|
cellId: e2.id,
|
|
35893
|
-
slideTypes:
|
|
35903
|
+
slideTypes: p,
|
|
35894
35904
|
skippedIds: u
|
|
35895
35905
|
}),
|
|
35896
|
-
dropIndicator: (
|
|
35897
|
-
onClick: () =>
|
|
35906
|
+
dropIndicator: (S == null ? void 0 : S.overId) === e2.id && y !== e2.id ? S.position : null,
|
|
35907
|
+
onClick: () => m(r2)
|
|
35898
35908
|
}, e2.id))
|
|
35899
35909
|
})
|
|
35900
35910
|
}),
|
|
35901
35911
|
(0, import_jsx_runtime.jsx)(DragOverlay, {
|
|
35902
|
-
children:
|
|
35903
|
-
cell:
|
|
35904
|
-
dimensions:
|
|
35912
|
+
children: O && (0, import_jsx_runtime.jsx)(SlideThumbnailCard, {
|
|
35913
|
+
cell: O,
|
|
35914
|
+
dimensions: T,
|
|
35905
35915
|
isOverlay: true,
|
|
35906
|
-
isActiveDragSource: true
|
|
35916
|
+
isActiveDragSource: true,
|
|
35917
|
+
isNoOutput: f == null ? void 0 : f.has(O.id)
|
|
35907
35918
|
})
|
|
35908
35919
|
})
|
|
35909
35920
|
]
|
|
35910
35921
|
}) : (0, import_jsx_runtime.jsxs)(SlideThumbnailsContainer, {
|
|
35911
|
-
ref:
|
|
35922
|
+
ref: _,
|
|
35912
35923
|
children: [
|
|
35913
35924
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
35914
35925
|
className: "text-xs text-gray-500 flex items-center gap-0.5",
|
|
@@ -35921,15 +35932,16 @@ ${c}
|
|
|
35921
35932
|
}),
|
|
35922
35933
|
e.map((e2, r2) => (0, import_jsx_runtime.jsx)(SlideThumbnailRow, {
|
|
35923
35934
|
cell: e2,
|
|
35924
|
-
dimensions:
|
|
35935
|
+
dimensions: T,
|
|
35925
35936
|
isActiveSlide: e2.id === l,
|
|
35926
|
-
isVisible:
|
|
35937
|
+
isVisible: v.has(e2.id),
|
|
35938
|
+
isNoOutput: f == null ? void 0 : f.has(e2.id),
|
|
35927
35939
|
slideType: resolveSlideType({
|
|
35928
35940
|
cellId: e2.id,
|
|
35929
|
-
slideTypes:
|
|
35941
|
+
slideTypes: p,
|
|
35930
35942
|
skippedIds: u
|
|
35931
35943
|
}),
|
|
35932
|
-
onClick: () =>
|
|
35944
|
+
onClick: () => m(r2)
|
|
35933
35945
|
}, e2.id))
|
|
35934
35946
|
]
|
|
35935
35947
|
});
|
|
@@ -35942,128 +35954,138 @@ ${c}
|
|
|
35942
35954
|
children: c
|
|
35943
35955
|
}), r[0] = c, r[1] = l, r[2] = u) : u = r[2], u;
|
|
35944
35956
|
}, SortableSlideThumbnail = (e) => {
|
|
35945
|
-
let r = (0, import_compiler_runtime$10.c)(
|
|
35946
|
-
r[0] === c.id ?
|
|
35957
|
+
let r = (0, import_compiler_runtime$10.c)(15), { cell: c, dimensions: l, dropIndicator: u, isActive: d, isActiveSlide: f, isVisible: p, isNoOutput: m, slideType: h, onClick: g } = e, _;
|
|
35958
|
+
r[0] === c.id ? _ = r[1] : (_ = {
|
|
35947
35959
|
id: c.id
|
|
35948
|
-
}, r[0] = c.id, r[1] =
|
|
35949
|
-
let { attributes:
|
|
35950
|
-
return r[2] !==
|
|
35951
|
-
ref:
|
|
35960
|
+
}, r[0] = c.id, r[1] = _);
|
|
35961
|
+
let { attributes: v, listeners: y, setNodeRef: b } = useSortable(_), S;
|
|
35962
|
+
return r[2] !== v || r[3] !== c || r[4] !== l || r[5] !== u || r[6] !== d || r[7] !== f || r[8] !== m || r[9] !== p || r[10] !== y || r[11] !== g || r[12] !== b || r[13] !== h ? (S = (0, import_jsx_runtime.jsx)(SlideThumbnailRow, {
|
|
35963
|
+
ref: b,
|
|
35952
35964
|
cell: c,
|
|
35953
35965
|
dimensions: l,
|
|
35954
35966
|
dropIndicator: u,
|
|
35955
35967
|
isActiveDragSource: d,
|
|
35956
35968
|
isActiveSlide: f,
|
|
35957
35969
|
isVisible: p,
|
|
35958
|
-
|
|
35959
|
-
|
|
35960
|
-
|
|
35961
|
-
...v
|
|
35962
|
-
|
|
35970
|
+
isNoOutput: m,
|
|
35971
|
+
slideType: h,
|
|
35972
|
+
onClick: g,
|
|
35973
|
+
...v,
|
|
35974
|
+
...y
|
|
35975
|
+
}), r[2] = v, r[3] = c, r[4] = l, r[5] = u, r[6] = d, r[7] = f, r[8] = m, r[9] = p, r[10] = y, r[11] = g, r[12] = b, r[13] = h, r[14] = S) : S = r[14], S;
|
|
35963
35976
|
}, SlideThumbnailRow = (e) => {
|
|
35964
|
-
let r = (0, import_compiler_runtime$10.c)(
|
|
35965
|
-
r[0] === e ? (c = r[1], l = r[2], u = r[3], d = r[4], f = r[5], m = r[6], h = r[7], g = r[8], _ = r[9], v = r[10], y = r[11], b = r[12]) : ({ cell: c, dimensions: u, className: l, style:
|
|
35966
|
-
let
|
|
35967
|
-
r[
|
|
35977
|
+
let r = (0, import_compiler_runtime$10.c)(37), c, l, u, d, f, m, h, g, _, v, y, b, S;
|
|
35978
|
+
r[0] === e ? (c = r[1], l = r[2], u = r[3], d = r[4], f = r[5], m = r[6], h = r[7], g = r[8], _ = r[9], v = r[10], y = r[11], b = r[12], S = r[13]) : ({ cell: c, dimensions: u, className: l, style: y, dropIndicator: d, isActiveSlide: b, isActiveDragSource: S, isVisible: m, isNoOutput: f, slideType: v, onClick: h, ref: _, ...g } = e, r[0] = e, r[1] = c, r[2] = l, r[3] = u, r[4] = d, r[5] = f, r[6] = m, r[7] = h, r[8] = g, r[9] = _, r[10] = v, r[11] = y, r[12] = b, r[13] = S);
|
|
35979
|
+
let w = b === void 0 ? false : b, T = S === void 0 ? false : S, E;
|
|
35980
|
+
r[14] === y ? E = r[15] : (E = {
|
|
35968
35981
|
paddingTop: MINIMAP_GAP,
|
|
35969
35982
|
paddingBottom: MINIMAP_GAP,
|
|
35970
|
-
...
|
|
35971
|
-
}, r[
|
|
35972
|
-
let
|
|
35973
|
-
r[
|
|
35974
|
-
let M;
|
|
35975
|
-
r[17] === d ? M = r[18] : (M = d && (0, import_jsx_runtime.jsx)("div", {
|
|
35976
|
-
className: cn("absolute left-2 right-2 h-0.5 rounded-full bg-blue-500 z-20 pointer-events-none", d === "after" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2")
|
|
35977
|
-
}), r[17] = d, r[18] = M);
|
|
35983
|
+
...y
|
|
35984
|
+
}, r[14] = y, r[15] = E);
|
|
35985
|
+
let O = E, j = c.id, M;
|
|
35986
|
+
r[16] === l ? M = r[17] : (M = cn("relative shrink-0 appearance-none text-left p-0 bg-transparent outline-none", l), r[16] = l, r[17] = M);
|
|
35978
35987
|
let I;
|
|
35979
|
-
r[
|
|
35988
|
+
r[18] === d ? I = r[19] : (I = d && (0, import_jsx_runtime.jsx)("div", {
|
|
35989
|
+
className: cn("absolute left-2 right-2 h-0.5 rounded-full bg-blue-500 z-20 pointer-events-none", d === "after" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2")
|
|
35990
|
+
}), r[18] = d, r[19] = I);
|
|
35991
|
+
let L;
|
|
35992
|
+
r[20] !== c || r[21] !== u || r[22] !== T || r[23] !== w || r[24] !== f || r[25] !== m || r[26] !== v ? (L = (0, import_jsx_runtime.jsx)(SlideThumbnailCard, {
|
|
35980
35993
|
cell: c,
|
|
35981
35994
|
dimensions: u,
|
|
35982
|
-
isActiveSlide:
|
|
35983
|
-
isActiveDragSource:
|
|
35984
|
-
isVisible:
|
|
35985
|
-
|
|
35986
|
-
|
|
35987
|
-
|
|
35988
|
-
|
|
35989
|
-
|
|
35995
|
+
isActiveSlide: w,
|
|
35996
|
+
isActiveDragSource: T,
|
|
35997
|
+
isVisible: m,
|
|
35998
|
+
isNoOutput: f,
|
|
35999
|
+
slideType: v
|
|
36000
|
+
}), r[20] = c, r[21] = u, r[22] = T, r[23] = w, r[24] = f, r[25] = m, r[26] = v, r[27] = L) : L = r[27];
|
|
36001
|
+
let R;
|
|
36002
|
+
return r[28] !== c.id || r[29] !== h || r[30] !== g || r[31] !== _ || r[32] !== O || r[33] !== M || r[34] !== I || r[35] !== L ? (R = (0, import_jsx_runtime.jsxs)("button", {
|
|
36003
|
+
ref: _,
|
|
35990
36004
|
type: "button",
|
|
35991
|
-
"data-cell-id":
|
|
35992
|
-
className:
|
|
35993
|
-
style:
|
|
35994
|
-
onClick:
|
|
35995
|
-
...
|
|
36005
|
+
"data-cell-id": j,
|
|
36006
|
+
className: M,
|
|
36007
|
+
style: O,
|
|
36008
|
+
onClick: h,
|
|
36009
|
+
...g,
|
|
35996
36010
|
children: [
|
|
35997
|
-
|
|
35998
|
-
|
|
36011
|
+
I,
|
|
36012
|
+
L
|
|
35999
36013
|
]
|
|
36000
|
-
}), r[
|
|
36014
|
+
}), r[28] = c.id, r[29] = h, r[30] = g, r[31] = _, r[32] = O, r[33] = M, r[34] = I, r[35] = L, r[36] = R) : R = r[36], R;
|
|
36001
36015
|
}, SlideThumbnailCard = (e) => {
|
|
36002
|
-
let r = (0, import_compiler_runtime$10.c)(
|
|
36003
|
-
r[0] === e ? (c = r[1], l = r[2], u = r[3], d = r[4], f = r[5], m = r[6], h = r[7], g = r[8], _ = r[9], v = r[10], y = r[11]) : ({ cell: c, dimensions: u, className: l, style: h, isActiveSlide: g, isActiveDragSource: _, isOverlay: v, isVisible: y, slideType: m, ref: f, ...d } = e, r[0] = e, r[1] = c, r[2] = l, r[3] = u, r[4] = d, r[5] = f, r[6] = m, r[7] = h, r[8] = g, r[9] = _, r[10] = v, r[11] = y);
|
|
36004
|
-
let
|
|
36005
|
-
r[
|
|
36006
|
-
let
|
|
36007
|
-
r[
|
|
36016
|
+
let r = (0, import_compiler_runtime$10.c)(50), c, l, u, d, f, m, h, g, _, v, y, b;
|
|
36017
|
+
r[0] === e ? (c = r[1], l = r[2], u = r[3], d = r[4], f = r[5], m = r[6], h = r[7], g = r[8], _ = r[9], v = r[10], y = r[11], b = r[12]) : ({ cell: c, dimensions: u, className: l, style: h, isActiveSlide: g, isActiveDragSource: _, isOverlay: v, isVisible: y, isNoOutput: b, slideType: m, ref: f, ...d } = e, r[0] = e, r[1] = c, r[2] = l, r[3] = u, r[4] = d, r[5] = f, r[6] = m, r[7] = h, r[8] = g, r[9] = _, r[10] = v, r[11] = y, r[12] = b);
|
|
36018
|
+
let S = g === void 0 ? false : g, w = _ === void 0 ? false : _, T = v === void 0 ? false : v, E = y === void 0 ? false : y, O = b === void 0 ? false : b, { width: j, height: M, scale: I } = u, L;
|
|
36019
|
+
r[13] !== O || r[14] !== m ? (L = O ? NO_OUTPUT_VISUAL : getSlideTypeVisual(m), r[13] = O, r[14] = m, r[15] = L) : L = r[15];
|
|
36020
|
+
let R = L, z = O || m === "skip", B;
|
|
36021
|
+
r[16] !== M || r[17] !== T || r[18] !== j ? (B = T ? null : {
|
|
36008
36022
|
contentVisibility: "auto",
|
|
36009
|
-
containIntrinsicSize: `${
|
|
36010
|
-
}, r[
|
|
36011
|
-
let
|
|
36012
|
-
r[
|
|
36013
|
-
width:
|
|
36014
|
-
height:
|
|
36023
|
+
containIntrinsicSize: `${j}px ${M}px`
|
|
36024
|
+
}, r[16] = M, r[17] = T, r[18] = j, r[19] = B) : B = r[19];
|
|
36025
|
+
let H;
|
|
36026
|
+
r[20] !== M || r[21] !== h || r[22] !== B || r[23] !== j ? (H = {
|
|
36027
|
+
width: j,
|
|
36028
|
+
height: M,
|
|
36015
36029
|
contain: "strict",
|
|
36016
|
-
...
|
|
36030
|
+
...B,
|
|
36017
36031
|
...h
|
|
36018
|
-
}, r[
|
|
36019
|
-
let
|
|
36020
|
-
r[
|
|
36021
|
-
let
|
|
36022
|
-
r[
|
|
36032
|
+
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36033
|
+
let W = H, UU = E || T, G = S || w || T ? "border-blue-500" : "border-border", WU = w && !T && "opacity-35", q = T && "opacity-95 shadow-lg", Z;
|
|
36034
|
+
r[25] !== l || r[26] !== WU || r[27] !== q || r[28] !== G ? (Z = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden", G, WU, q, l), r[25] = l, r[26] = WU, r[27] = q, r[28] = G, r[29] = Z) : Z = r[29];
|
|
36035
|
+
let GU;
|
|
36036
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== UU || r[35] !== j ? (GU = UU && (0, import_jsx_runtime.jsx)("div", {
|
|
36023
36037
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36024
36038
|
style: {
|
|
36025
|
-
transform: `scale(${
|
|
36039
|
+
transform: `scale(${I})`,
|
|
36026
36040
|
transformOrigin: "top left",
|
|
36027
|
-
width:
|
|
36028
|
-
height:
|
|
36041
|
+
width: j / I,
|
|
36042
|
+
height: M / I
|
|
36029
36043
|
},
|
|
36030
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
36044
|
+
children: O ? (0, import_jsx_runtime.jsx)(MiniCodePreview, {
|
|
36045
|
+
code: c.code
|
|
36046
|
+
}) : (0, import_jsx_runtime.jsx)(Slide, {
|
|
36031
36047
|
cellId: c.id,
|
|
36032
36048
|
status: c.status,
|
|
36033
36049
|
output: c.output
|
|
36034
36050
|
})
|
|
36035
|
-
}), r[
|
|
36036
|
-
let
|
|
36037
|
-
r[
|
|
36038
|
-
className: "absolute inset-0 bg-muted/
|
|
36051
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = UU, r[35] = j, r[36] = GU) : GU = r[36];
|
|
36052
|
+
let KU;
|
|
36053
|
+
r[37] === z ? KU = r[38] : (KU = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36054
|
+
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36039
36055
|
"aria-hidden": true
|
|
36040
|
-
}), r[
|
|
36041
|
-
let
|
|
36042
|
-
r[
|
|
36056
|
+
}), r[37] = z, r[38] = KU);
|
|
36057
|
+
let qU;
|
|
36058
|
+
r[39] !== z || r[40] !== R ? (qU = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36043
36059
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36044
36060
|
className: "text-xs opacity-80",
|
|
36045
|
-
children:
|
|
36061
|
+
children: R.description
|
|
36046
36062
|
}),
|
|
36047
36063
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
36048
|
-
className: cn("absolute top-1 right-1 flex items-center gap-1 rounded-full border p-0.5 font-medium leading-none shadow-xs cursor-help",
|
|
36049
|
-
"aria-label":
|
|
36050
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
36064
|
+
className: cn("absolute top-1 right-1 flex items-center gap-1 rounded-full border p-0.5 font-medium leading-none shadow-xs cursor-help", z ? "bg-background/90 border-border text-muted-foreground" : "bg-background/95 border-border text-foreground/80"),
|
|
36065
|
+
"aria-label": R.label,
|
|
36066
|
+
children: (0, import_jsx_runtime.jsx)(R.Icon, {
|
|
36051
36067
|
className: "h-3.5 w-3.5"
|
|
36052
36068
|
})
|
|
36053
36069
|
})
|
|
36054
|
-
}), r[
|
|
36055
|
-
let
|
|
36056
|
-
return r[
|
|
36070
|
+
}), r[39] = z, r[40] = R, r[41] = qU) : qU = r[41];
|
|
36071
|
+
let JU;
|
|
36072
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== Z || r[46] !== GU || r[47] !== KU || r[48] !== qU ? (JU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36057
36073
|
ref: f,
|
|
36058
|
-
className:
|
|
36059
|
-
style:
|
|
36074
|
+
className: Z,
|
|
36075
|
+
style: W,
|
|
36060
36076
|
...d,
|
|
36061
36077
|
children: [
|
|
36062
|
-
|
|
36063
|
-
|
|
36064
|
-
|
|
36078
|
+
GU,
|
|
36079
|
+
KU,
|
|
36080
|
+
qU
|
|
36065
36081
|
]
|
|
36066
|
-
}), r[
|
|
36082
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = Z, r[46] = GU, r[47] = KU, r[48] = qU, r[49] = JU) : JU = r[49], JU;
|
|
36083
|
+
}, MiniCodePreview = (e) => {
|
|
36084
|
+
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36085
|
+
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
36086
|
+
className: "my-auto w-full overflow-hidden whitespace-pre-wrap wrap-break-word text-lg",
|
|
36087
|
+
children: c
|
|
36088
|
+
}), r[0] = c, r[1] = l), l;
|
|
36067
36089
|
};
|
|
36068
36090
|
function projectDropTarget(e) {
|
|
36069
36091
|
let { active: r, over: c } = e;
|
|
@@ -36094,33 +36116,34 @@ ${c}
|
|
|
36094
36116
|
if (l && l !== "slide") return l;
|
|
36095
36117
|
if (c == null ? void 0 : c.has(e)) return "skip";
|
|
36096
36118
|
}
|
|
36097
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36119
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-8MW3DINl.js"));
|
|
36098
36120
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36099
36121
|
var _a3;
|
|
36100
|
-
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), {
|
|
36122
|
+
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
36101
36123
|
c,
|
|
36102
36124
|
e
|
|
36103
|
-
]),
|
|
36125
|
+
]), b = p ? h.findIndex((e2) => e2.id === p) : y, S = b === -1 ? y : b, w = useEvent_default((e2) => {
|
|
36104
36126
|
let r2 = h[e2];
|
|
36105
36127
|
r2 && m(r2.id);
|
|
36106
|
-
}),
|
|
36107
|
-
|
|
36128
|
+
}), T = (0, import_jsx_runtime.jsx)(LazySlidesComponent, {
|
|
36129
|
+
slideCells: h,
|
|
36108
36130
|
layout: e,
|
|
36109
36131
|
setLayout: r,
|
|
36110
|
-
|
|
36111
|
-
|
|
36132
|
+
noOutputIds: _,
|
|
36133
|
+
activeIndex: S,
|
|
36134
|
+
onSlideChange: w,
|
|
36112
36135
|
configWidth: 280,
|
|
36113
36136
|
mode: d ? "read" : l,
|
|
36114
36137
|
isEditable: !d
|
|
36115
36138
|
});
|
|
36116
36139
|
return d ? u ? (0, import_jsx_runtime.jsx)("div", {
|
|
36117
36140
|
className: "flex h-dvh w-dvw overflow-hidden bg-background",
|
|
36118
|
-
children:
|
|
36141
|
+
children: T
|
|
36119
36142
|
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
36120
36143
|
className: "p-4 flex flex-1 items-center justify-center min-h-0",
|
|
36121
36144
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
36122
36145
|
className: "h-full max-h-[95vh] aspect-video max-w-full flex",
|
|
36123
|
-
children:
|
|
36146
|
+
children: T
|
|
36124
36147
|
})
|
|
36125
36148
|
}) : (0, import_jsx_runtime.jsxs)("div", {
|
|
36126
36149
|
className: "flex-1 pr-18 pb-2 flex flex-row gap-2 min-h-0",
|
|
@@ -36129,12 +36152,13 @@ ${c}
|
|
|
36129
36152
|
cells: h,
|
|
36130
36153
|
thumbnailWidth: 220,
|
|
36131
36154
|
canReorder: !f,
|
|
36132
|
-
activeCellId: p ?? ((_a3 = h[
|
|
36155
|
+
activeCellId: p ?? ((_a3 = h[y]) == null ? void 0 : _a3.id) ?? null,
|
|
36133
36156
|
skippedIds: g,
|
|
36134
|
-
|
|
36135
|
-
|
|
36157
|
+
noOutputIds: _,
|
|
36158
|
+
slideTypes: v,
|
|
36159
|
+
onSlideClick: w
|
|
36136
36160
|
}),
|
|
36137
|
-
|
|
36161
|
+
T
|
|
36138
36162
|
]
|
|
36139
36163
|
});
|
|
36140
36164
|
};
|
|
@@ -36469,7 +36493,7 @@ ${c}
|
|
|
36469
36493
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36470
36494
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36471
36495
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36472
|
-
let H, W,
|
|
36496
|
+
let H, W, UU, G, WU, q, Z, GU, KU, qU;
|
|
36473
36497
|
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) {
|
|
36474
36498
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36475
36499
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36515,11 +36539,11 @@ ${c}
|
|
|
36515
36539
|
})
|
|
36516
36540
|
})
|
|
36517
36541
|
]
|
|
36518
|
-
}), 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],
|
|
36519
|
-
let
|
|
36520
|
-
r[40] !== M || r[41] !==
|
|
36542
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], UU = y ? "This console output is stale" : void 0, G = "console-output-area", WU = c, q = R, Z = 0;
|
|
36543
|
+
let JU2 = y && "marimo-output-stale", YU2 = L ? "p-5" : "p-3";
|
|
36544
|
+
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 ? {
|
|
36521
36545
|
maxHeight: "none"
|
|
36522
|
-
} : void 0, r[44] = d, r[45] =
|
|
36546
|
+
} : void 0, r[44] = d, r[45] = KU), qU = e2.map((e3, r2) => {
|
|
36523
36547
|
if (e3.channel === "pdb") return null;
|
|
36524
36548
|
if (e3.channel === "stdin") {
|
|
36525
36549
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36548,36 +36572,36 @@ ${c}
|
|
|
36548
36572
|
wrapText: l
|
|
36549
36573
|
})
|
|
36550
36574
|
}, r2);
|
|
36551
|
-
}), 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] =
|
|
36552
|
-
} else H = r[20], W = r[21],
|
|
36553
|
-
let
|
|
36554
|
-
r[46] !== T || r[47] !== S ? (
|
|
36575
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = UU, r[23] = G, r[24] = WU, r[25] = q, r[26] = Z, r[27] = GU, r[28] = KU, r[29] = qU;
|
|
36576
|
+
} else H = r[20], W = r[21], UU = r[22], G = r[23], WU = r[24], q = r[25], Z = r[26], GU = r[27], KU = r[28], qU = r[29];
|
|
36577
|
+
let JU;
|
|
36578
|
+
r[46] !== T || r[47] !== S ? (JU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36555
36579
|
value: S,
|
|
36556
36580
|
cellId: T,
|
|
36557
36581
|
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"
|
|
36558
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36559
|
-
let
|
|
36560
|
-
r[49] !==
|
|
36561
|
-
title:
|
|
36582
|
+
}), r[46] = T, r[47] = S, r[48] = JU) : JU = r[48];
|
|
36583
|
+
let YU;
|
|
36584
|
+
r[49] !== JU || r[50] !== UU || r[51] !== G || r[52] !== WU || r[53] !== q || r[54] !== Z || r[55] !== GU || r[56] !== KU || r[57] !== qU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36585
|
+
title: UU,
|
|
36562
36586
|
"data-testid": G,
|
|
36563
|
-
ref:
|
|
36587
|
+
ref: WU,
|
|
36564
36588
|
...q,
|
|
36565
36589
|
tabIndex: Z,
|
|
36566
|
-
className:
|
|
36567
|
-
style:
|
|
36590
|
+
className: GU,
|
|
36591
|
+
style: KU,
|
|
36568
36592
|
children: [
|
|
36569
|
-
|
|
36570
|
-
|
|
36593
|
+
qU,
|
|
36594
|
+
JU
|
|
36571
36595
|
]
|
|
36572
|
-
}), r[49] =
|
|
36573
|
-
let
|
|
36574
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36596
|
+
}), r[49] = JU, r[50] = UU, r[51] = G, r[52] = WU, r[53] = q, r[54] = Z, r[55] = GU, r[56] = KU, r[57] = qU, r[58] = YU) : YU = r[58];
|
|
36597
|
+
let XU;
|
|
36598
|
+
return r[59] !== H || r[60] !== W || r[61] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36575
36599
|
className: H,
|
|
36576
36600
|
children: [
|
|
36577
36601
|
W,
|
|
36578
|
-
|
|
36602
|
+
YU
|
|
36579
36603
|
]
|
|
36580
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36604
|
+
}), r[59] = H, r[60] = W, r[61] = YU, r[62] = XU) : XU = r[62], XU;
|
|
36581
36605
|
}, StdInput = (e) => {
|
|
36582
36606
|
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;
|
|
36583
36607
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37037,19 +37061,19 @@ ${c}
|
|
|
37037
37061
|
]
|
|
37038
37062
|
}), r[36] = H, r[37] = w2, r[38] = h2, r[39] = v2, r[40] = y2, r[41] = S2, r[42] = O2) : O2 = r[42], O2;
|
|
37039
37063
|
}
|
|
37040
|
-
let W = isErrorMime(c == null ? void 0 : c.mimetype),
|
|
37041
|
-
if ((h || _ || m || W) && !
|
|
37064
|
+
let W = isErrorMime(c == null ? void 0 : c.mimetype), UU = O && W && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp5);
|
|
37065
|
+
if ((h || _ || m || W) && !UU) return null;
|
|
37042
37066
|
let G;
|
|
37043
37067
|
r[43] !== d || r[44] !== T ? (G = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = G) : G = r[45];
|
|
37044
|
-
let
|
|
37045
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37046
|
-
allowExpand:
|
|
37068
|
+
let WU = w === "edit", q;
|
|
37069
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== WU ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37070
|
+
allowExpand: WU,
|
|
37047
37071
|
output: c,
|
|
37048
37072
|
className: CSSClasses.outputArea,
|
|
37049
37073
|
cellId: d,
|
|
37050
37074
|
stale: I,
|
|
37051
37075
|
loading: R
|
|
37052
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37076
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = WU, r[51] = q) : q = r[51];
|
|
37053
37077
|
let Z;
|
|
37054
37078
|
return r[52] !== H || r[53] !== G || r[54] !== q ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
37055
37079
|
tabIndex: -1,
|